
;if(!dojo._hasResource["lconn.core.formutilities"]){
dojo._hasResource["lconn.core.formutilities"]=true;
dojo.provide("lconn.core.formutilities");
dojo.deprecated("lconn.core.formutilities","Replace with judicious use of dijit.Form or other base dijit classes.","3.5");
var findParentForm=function(_1){
if(_1!=null&&_1.nodeName!=null&&_1.nodeName.toLowerCase()=="form"){
return _1;
}
if(_1.form&&_1.form!=null){
return _1.form;
}
var _2=null;
if((_1.parentNode!=null)&&_1.parentNode.nodeName){
_2=_1.parentNode;
}else{
_2=_1.domNode;
}
if(_2==null){
return null;
}
if(_2.nodeName.toLowerCase()=="form"){
var _3=_2;
return _3;
}else{
return findParentForm(_2);
}
};
var setActionAndSubmit=function(_4,_5){
_4.action=_5;
_4.submit();
};
var setActionAndConfirmAndSubmit=function(_6,_7,_8){
var _9=true;
_9=window.confirm(_8);
if(!_9){
return;
}
document.forms[_6].action=_7;
document.forms[_6].submit();
};
var checkRadionButton=function(_a,_b,_c){
if(_c!=null&&_c!=""&&_c!="null"){
for(var i=0;i<_a.elements[_b].length;i++){
if(_a.elements[_b][i].value==_c){
_a.elements[_b][i].checked=true;
}
}
}
};
var getRadioGroupCheckedValue=function(_d,_e){
for(var i=0;i<_d.elements[_e].length;i++){
if(_d.elements[_e][i].checked){
return _d.elements[_e][i].value;
}
}
return null;
};
var selectAllCheckboxes=function(_f,_10){
changeAllCheckboxes(_f,_10,true);
};
var deselectAllCheckboxes=function(_11,_12){
changeAllCheckboxes(_11,_12,false);
};
var changeAllCheckboxes=function(_13,_14,_15){
for(var i=0;i<_13.elements.length;i++){
if(_13.elements[i].type=="checkbox"){
if(_14==null||_14==""){
_13.elements[i].checked=_15;
}else{
if(_13.elements[i].name==_14){
_13.elements[i].checked=_15;
}
}
}
}
};
var getCheckedBoxes=function(_16,_17){
var _18=new Array();
for(var i=0;i<_16.elements.length;i++){
var _19=_16.elements[i];
if(_19.type=="checkbox"&&_19.checked==true&&_19.name==_17){
_18.push(_19.value);
}
}
return _18;
};
var setSelectionControlVal=function(_1a,_1b){
if(_1a!=null&&_1a.options!=null){
for(var x=0;x<_1a.options.length;x++){
if(_1a.options[x].value==_1b){
_1a.selectedIndex=x;
return;
}
}
}
};
var getSelectionControlVal=function(_1c){
if(_1c!=null&&_1c.options!=null&&_1c.options[_1c.selectedIndex]!=null){
return _1c.options[_1c.selectedIndex].value;
}else{
return null;
}
};
var getMultipleSelectionControlValues=function(_1d){
var _1e=new Array();
for(var i=0;i<_1d.options.length;i++){
if(_1d.options[i].selected==true){
_1e.push(_1d.options[i].value);
}
}
return _1e;
};
var getAllSelectionControlValues=function(_1f){
var _20=new Array();
for(var i=0;i<_1f.options.length;i++){
_20.push(_1f.options[i].value);
}
return _20;
};
var getSelectionControlName=function(_21){
return _21.options[_21.selectedIndex].text;
};
var removeSelectedSelectionControlOption=function(_22){
_22.options[_22.selectedIndex]=null;
};
var removeSelectionControlOption=function(_23,_24){
for(var i=0;i<_23.options.length;i++){
if(_23.options[i].value==_24){
_23.options[i]=null;
}
}
};
var removeAllSelectionControlOption=function(_25){
for(var x=_25.options.length;x>=0;x--){
_25.options[x]=null;
}
};
var addSelectionControlVal=function(_26,_27,_28){
_26.options[_26.options.length]=new Option(_27,_28);
};
var getFormControl=function(_29,_2a){
return _29.elements[_2a];
};
var getTextBoxValue=function(_2b,_2c){
return getFormControl(_2b,_2c).value;
};
var getControlTagName=function(_2d){
var _2e=null;
if(_2d.nodeName){
_2e=_2d.nodeName;
}else{
if(_2d.tagName){
_2e=_2d.tagName;
}else{
log("getValue","unable to get the formControl tag name; returning null");
return null;
}
}
return _2e;
};
var lconn_formutilities_getValue=function(_2f){
var _30=getControlTagName(_2f);
if(_30.toLowerCase()=="input"||_30.toLowerCase()=="textarea"){
if(_2f.type=="checkbox"){
if(_2f.checked){
return true;
}else{
return false;
}
}else{
return _2f.value;
}
}else{
if(_30.toLowerCase()=="select"){
return getSelectionControlVal(_2f);
}else{
log("lconn_formutilities_getValue","returning null");
return null;
}
}
};
var setValue=function(_31,_32){
var _33=getControlTagName(_31);
if(_33.toLowerCase()=="input"||_33.toLowerCase()=="textarea"){
_31.value=_32;
}else{
if(_33.toLowerCase()=="select"){
setSelectionControlVal(_31,_32);
}else{
log("setValue",_33.toLowerCase());
}
}
};
}

if(typeof define!=="undefined"&&typeof define._packages!=="undefined")define._packages["lconn.profiles"]=true;

;if(!dojo._hasResource["lconn.profiles.popup"]){
dojo._hasResource["lconn.profiles.popup"]=true;
dojo.provide("lconn.profiles.popup");
dojo.deprecated("lconn.profiles.popup","Replace with dijit.Menu and lconn.core.MenuUtility","3.5");
var gvMenu=false;
function showMenu(_1,e,_2){
hideMenu(e);
var _3=(e.target)?e.target:e.srcElement;
var _4=document.getElementById(_1);
var _5;
if(typeof (_2)!="undefined"&&_2!=null&&_2=="rtl"){
_5=(_4.offsetWidth>0)?_4.offsetWidth:175;
_5=24-_5;
}else{
_5=_3.offsetWidth-24;
}
var _6=(menuGetOffsetTop(e)+_3.offsetHeight-10);
var _7=(menuGetOffsetLeft(e)+_5);
if(document.documentElement){
var _8=document.documentElement;
}else{
var _8=document.body;
}
if(window.innerHeight){
var _9=window.innerHeight;
var _a=window.innerWidth;
}else{
var _9=_8.clientHeight;
var _a=_8.clientWidth;
}
if((_6+_4.offsetHeight)>_8.offsetHeight){
_6-=_4.offsetHeight;
}
if((_7+_4.offsetWidth)>_8.offsetWidth){
_7-=_4.offsetWidth;
}
if(_6<0){
_6=0;
}
if(_7<0){
_7=0;
}
_4.style.top=_6+"px";
_4.style.left=_7+"px";
_4.style.display="block";
gvMenu=_4;
e.cancelBubble=true;
};
function menuGetOffsetTop(_b){
if(_b.pageY){
return _b.pageY;
}
if(navigator.userAgent.indexOf("MSIE")!=-1){
var _c=_b.clientY;
return document.body.scrollTop+_c;
}
};
function menuGetOffsetLeft(_d){
if(_d.pageX){
return _d.pageX;
}
if(navigator.userAgent.indexOf("MSIE")!=-1){
var _e=_d.clientX;
return document.body.scrollLeft+_e;
}
};
function handleClick(_f){
hideMenu(_f);
};
function hideMenu(e){
if(!gvMenu){
return;
}
gvMenu.style.display="none";
gvMenu=false;
};
}


;if(!dojo._hasResource["lconn.profiles.profiles_help"]){
dojo._hasResource["lconn.profiles.profiles_help"]=true;
dojo.provide("lconn.profiles.profiles_help");


var helpWindow;
function openHelpWindow(_1,_2,_3,_4,_5,_6){
lconn.core.help.launchHelp(_2);
};
function openDemoWindow(){
if(window.console){
console.warn("Demos are no longer available.  Opening help...");
}
openHelpWindow();
};
(function(){
var _7=function(_8,_9){
dojo.query(_8).forEach(function(_a){
dojo.style(_a,{"cursor":"pointer"});
dojo.connect(_a,"onclick",function(e){
e.preventDefault();
if(_9){
openHelpWindow(window.svcHrefHelp||null,_9);
}else{
openHelpWindow();
}
});
});
};
var _b=function(){
dojo.addOnLoad(function(){
_7(".help_link");
_7(".edit_help_link","t_pers_edit_profiles.html");
_7(".search_help_link","c_pers_search_options.html");
_7(".tags_help_link","c_pers_tags.html");
_7(".related_content_help_link","c_pers_profiles.html");
_7(".pronunciation_help_link","t_pers_audiofile_upload.html");
_7(".more_pronunciation_help_link","t_pers_audiofile_upload.html");
});
};
if(dojo.isIE&&dojo.isIE>=9){
dojo.connect(window,"load",_b);
}else{
_b();
}
})();
}


;if(!dojo._hasResource["lconn.profiles.profiles_behaviours"]){
dojo._hasResource["lconn.profiles.profiles_behaviours"]=true;
dojo.provide("lconn.profiles.profiles_behaviours");


lconn.profiles.profiles_behaviours={animImgResize:function profiles_animImgResize(id,_1,_2,_3,_4,d,r){
var c2;
if(typeof arguments[0]=="string"){
c2={"id":id,"w":_2,"h":_4,"delay":d,"rate":r};
}else{
c2=arguments[0];
c2.h=c2.h||c2.height;
c2.w=c2.w||c2.width;
}
if(!c2.id){
return;
}
var el=dojo.byId(c2.id);
if(!el){
return;
}
var c1=dojo.coords(el);
c2=dojo.mixin(dojo.clone(c1),dojo.clone(c2));
var _5={h:(c2.h-c1.h)/2,w:(c2.w-c1.w)/2};
c2.t=Math.round(c2.t-_5.h);
c2.l=Math.round(c2.l-_5.w);
dojo.animateProperty({node:el,duration:(c2.delay||500),rate:(c2.rate||10),properties:{height:{start:c1.h,end:c2.h},width:{start:c1.w,end:c2.w},top:{start:c1.t,end:c2.t},left:{start:c1.l,end:c2.l}}}).play();
},fadeIn:function profiles_fadeIn(id){
return dojo.fadeIn({node:id,duration:500,beforeBegin:function(){
var _6=dojo.byId(id);
dojo.style(_6,"opacity",0);
dojo.style(_6,"display","block");
}});
},fadeOut:function profiles_fadeOut(id){
return dojo.fadeOut({node:id,duration:500,beforeBegin:function(){
var _7=dojo.byId(id);
dojo.style(_7,"display","none");
}});
},toggleDiv:function toggleDiv(id){
if(dojo.byId(id).style.display!="none"){
var fx=lconn.profiles.profiles_behaviours.fadeOut(id);
}else{
var fx=lconn.profiles.profiles_behaviours.fadeIn(id);
}
fx.play();
},showSlimCard:function showSlimCard(_8,s){
var e=dojo.byId(s);
if(e){
SemTagPerson.renderMiniBizCard(_8,null,e);
e.style.display="block";
}
},hideSlimCard:function hideSlimCard(s){
var e=dojo.byId(s);
if(e){
e.style.display="none";
}
},setProfilesToolbarControl:function(){
var _9="lotusHeaderNavigation_UL";
if(dojo.byId(_9)){
var _a=-1;
var _b="";
var _c=window.location.href;
var _d=(profilesData.loggedInUser.loggedInUserKey==profilesData.displayedUser.key);
if(_c.indexOf("/editMyProfileView.do")!=-1||_c.indexOf("/myProfileView.do")!=-1||(_d&&(_c.indexOf("/profileView.do")!=-1||_c.indexOf("/reportingStructureView.do")!=-1))){
_b="MyProfile";
}else{
if(_d&&_c.indexOf("/networkView.do")!=-1){
_b="MyNetwork";
}else{
if(_c.indexOf("/searchProfiles.do")!=-1||_c.indexOf("/simpleSearch.do")!=-1||_c.indexOf("/simpleSearchView.do")!=-1||_c.indexOf("/advancedSearch.do")!=-1||_c.indexOf("/advancedSearchView.do")!=-1){
_b="Directory";
}
}
}
dojo.query("#"+_9+" li").forEach(function(_e,_f){
if(_e.id=="liProfileHeader_"+_b){
dojo.addClass(_e,"lotusSelected");
_a=_f;
dojo.query("a[role='button']",_e).attr("aria-pressed","true");
}else{
dojo.removeClass(_e,"lotusSelected");
dojo.query("a[role='button']",_e).attr("aria-pressed","false");
}
});
new lconn.core.aria.Toolbar(_9,{"selIdx":_a});
}
},init:function(){
var _10=function(){
dojo.addOnLoad(lconn.profiles.profiles_behaviours.setProfilesToolbarControl);
};
if(dojo.isIE&&dojo.isIE>=9){
dojo.connect(window,"load",_10);
}else{
_10();
}
}};
var profiles_animImgResize=lconn.profiles.profiles_behaviours.animImgResize;
var toggleDiv=lconn.profiles.profiles_behaviours.toggleDiv;
var profiles_fadeIn=lconn.profiles.profiles_behaviours.fadeIn;
var profiles_fadeOut=lconn.profiles.profiles_behaviours.fadeOut;
var showSlimCard=lconn.profiles.profiles_behaviours.showSlimCard;
var hideSlimCard=lconn.profiles.profiles_behaviours.hideSlimCard;
lconn.profiles.profiles_behaviours.init();
}


;if(!dojo._hasResource["lconn.core.auth.whiteListHelper"]){
dojo._hasResource["lconn.core.auth.whiteListHelper"]=true;
dojo.provide("lconn.core.auth.whiteListHelper");
dojo.declare("lconn.core.auth.whiteListHelper",null,{_list:null,_serviceJson:null,_proxyUrl:null,constructor:function(_1,_2){
if(_1==null){
throw new Error("serviceJson or proxyUrl is null");
}
this._serviceJson=_1;
if(_2!=null){
this._proxyUrl=_2;
}
this._initList();
},_initList:function(){
if(this._list==null){
this._list=[];
try{
for(var _3 in this._serviceJson){
if((this._serviceJson[_3].url!=null)&&(dojo.isString(this._serviceJson[_3].url))){
var _4=this._serviceJson[_3].url.replace("http://","");
var _4=_4.replace("https://","");
if(dojo.indexOf(this._list,_4)==-1){
this._list.push(_4);
}
}
if((this._serviceJson[_3].secureUrl!=null)&&(dojo.isString(this._serviceJson[_3].secureUrl))){
var _4=this._serviceJson[_3].secureUrl.replace("http://","");
var _4=_4.replace("https://","");
if(dojo.indexOf(this._list,_4)==-1){
this._list.push(_4);
}
}
}
}
catch(e){
console.log("Error while creating the whitelisted urls");
console.log(e);
this._list=[];
}
}
},isWhiteListedURL:function(_5){
var _6=false;
if(typeof (_5)=="undefined"){
return false;
}
if((_5.indexOf("http://")!=0)&&(_5.indexOf("https://")!=0)&&((this._proxyUrl==null)||(this._proxyUrl!=null&&_5.indexOf(this._proxyUrl)==-1))){
_6=true;
}else{
if((this._proxyUrl!=null)&&(_5.indexOf(this._proxyUrl)==0)){
_5=unescape(_5);
_5=_5.replace(this._proxyUrl,"");
}
_6=!dojo.every(this._list,function(_7){
return (_5.indexOf(_7)==-1);
});
}
return _6;
}});
}


;if(!dojo._hasResource["lconn.core.TagSlider"]){
dojo._hasResource["lconn.core.TagSlider"]=true;
dojo.provide("lconn.core.TagSlider");


lconn.core.TagSlider.showTagVis=function(_1,_2){
if(!dojo.byId(_2)){
return;
}
var _3=dojo.byId(_2).getElementsByTagName("li");
for(var i=0;i<_3.length;i++){
var _4=_3[i];
var _5=_4.className.match(/^f\d+-(\d+)/);
if(_5){
var _6=_5[1];
_4.style.display=(_6>=_1)?"inline":"none";
}
}
};
lconn.core.TagSlider.updateTagVis=function(_7,_8){
dojo.cookie("sliderVis_lconnTagSliderHandle",_7);
lconn.core.TagSlider.showTagVis(_7,_8);
};
lconn.core.TagSlider.sliderUtilGetPosition=function(_9){
var _a=dojo.cookie(_9);
if(_a==null||_a<0){
_a=0;
}else{
if(_a>100){
_a=100;
}
}
return _a;
};
}


;if(!dojo._hasResource["lconn.core.xslt"]){
dojo._hasResource["lconn.core.xslt"]=true;
dojo.provide("lconn.core.xslt");




dojo.deprecated("lconn.core.xslt","Use dojox.xml.parser instead","4.7");
lconn.core.xslt.ie={};
lconn.core.xslt.gecko={};
lconn.core.xslt.getXmlHttpRequest=function(){
var _1=null;
if(typeof ActiveXObject!="undefined"){
_1=new ActiveXObject("Microsoft.XMLHTTP");
}else{
_1=new XMLHttpRequest();
}
return _1;
};
lconn.core.xslt.loadXml=function(_2){
if(typeof ActiveXObject!="undefined"){
return lconn.core.xslt.ie.loadXml(_2);
}else{
return lconn.core.xslt.gecko.loadXml(_2);
}
};
lconn.core.xslt.loadXmlString=function(_3){
return dojox.xml.parser.parse(_3);
};
lconn.core.xslt.loadXsl=function(_4){
if(typeof ActiveXObject!="undefined"){
return lconn.core.xslt.ie.loadXsl(_4);
}else{
return lconn.core.xslt.gecko.loadXsl(_4);
}
};
lconn.core.xslt.loadXslString=function(_5){
if(typeof ActiveXObject!="undefined"){
return lconn.core.xslt.ie.loadXslString(_5);
}else{
return dojox.xml.parser.parse(_5);
}
};
lconn.core.xslt.transform=function(_6,_7,_8,_9,_a){
if(typeof ActiveXObject!="undefined"){
return lconn.core.xslt.ie.transform(_6,_7,_8,_9,_a);
}else{
return lconn.core.xslt.gecko.transform(_6,_7,_8,_9,_a);
}
};
lconn.core.xslt.transformDocument=function(_b,_c,_d){
var _e=lconn.core.xslt.loadXsl(_c);
if(_e.documentElement==null){
return null;
}
var _f=lconn.core.xslt.transform(_b,_e,null,_d,true);
return _f;
};
lconn.core.xslt.transformAndUpdate=function(_10,xml,xsl,_11,_12){
if(typeof ActiveXObject!="undefined"){
var _13=lconn.core.xslt.ie.transform(xml,xsl,_11,_12,true);
_10.innerHTML+=_13;
}else{
_13=lconn.core.xslt.gecko.transform(xml,xsl,_11,_12,false);
var _14=_13.documentElement;
if(_13.documentElement.tagName=="transformiix:result"){
_14=_13.documentElement.childNodes;
dojomum.dom.copyChildren(_13.documentElement,_10,true);
}else{
_10.appendChild(_14);
}
}
};
lconn.core.xslt.ie.loadXml=function(_15){
var _16=new ActiveXObject("MSXML2.DOMDocument");
_16.async=0;
_16.resolveExternals=0;
if(!_16.load(_15)){
throw new Error("Error loading xml file "+_15);
}
return _16;
};
lconn.core.xslt.ie.loadXsl=function(_17){
var _18=new ActiveXObject("MSXML2.FreeThreadedDOMDocument");
_18.async=0;
dojo.xhrGet({sync:true,url:_17,handleAs:"text",expectedContentType:"xml",load:function(_19,_1a){
_18.loadXML(_19);
}});
return _18;
};
lconn.core.xslt.ie.loadXslString=function(_1b){
var _1c=new ActiveXObject("MSXML2.FreeThreadedDOMDocument");
_1c.async=0;
if(!_1c.loadXML(_1b)){
throw new Error("Error loading xsl string "+_1b);
}
return _1c;
};
lconn.core.xslt.ie.transform=function(_1d,xsl,_1e,_1f,_20){
var _21=_1d;
var _22=xsl;
try{
if(!_22.documentElement){
_22=this.loadXsl(xsl);
}
}
catch(e){
var _23=e.message;
throw new Error(""+_23,""+_23);
}
var _24=new ActiveXObject("Msxml2.XSLTemplate");
_24.stylesheet=_22;
var _25=_24.createProcessor();
_25.input=_21;
for(var i=0;_1f!=null&&i<_1f.length;i++){
var _26=_1f[i][0];
var _27=_1f[i][1];
if(_26==null||_26==""){
continue;
}
try{
_25.addParameter(_26,_27);
}
catch(error){
console.debug(error);
}
}
if(_1e){
_25.addParameter("mode",_1e);
}
if(_20){
if(!_25.transform()){
throw new Error("Error transforming xml doc "+_21);
}
return _25.output;
}else{
var _28=new ActiveXObject("MSXML2.DOMDocument");
_28.async=0;
_28.validateOnParse=1;
_21.transformNodeToObject(_22,_28);
return _28;
}
};
lconn.core.xslt.gecko.loadXml=function(_29){
var _2a=dojox.data.dom.createDocument();
_2a.async=false;
if(dojo.isWebKit){
_2a.load=function(url){
var req=dojo.xhrGet({sync:true,url:url,handleAs:"xml",load:function(_2b,_2c){
_2a=_2b;
}});
};
}
_2a.load(_29);
if(_2a.documentElement&&_2a.documentElement.nodeName=="parsererror"){
console.log(dojox.data.dom.innerXML(_2a.documentElement));
return null;
}
return _2a;
};
lconn.core.xslt.gecko.loadXsl=function(_2d){
var _2e=document.implementation.createDocument("","",null);
_2e.async=false;
if(dojo.isWebKit){
_2e.load=function(url){
var req=dojo.xhrGet({sync:true,url:url,handleAs:"xml",load:function(_2f,_30){
_2e=_2f;
}});
};
}
_2e.load(_2d);
return _2e;
};
lconn.core.xslt.gecko.transform=function(_31,xsl,_32,_33,_34){
try{
var _35=xsl;
if(!_35.documentElement){
console.log("xslDoc is not a Document, loading it...");
_35=this.loadXsl(xsl);
}
var _36=new XSLTProcessor();
_36.importStylesheet(_35);
for(var i=0;_33!=null&&i<_33.length;i++){
var _37=_33[i][0];
var _38=_33[i][1];
_36.setParameter(null,_37,_38);
}
if(_32){
_36.setParameter(null,"mode",_32);
}
var _39=_36.transformToFragment(_31,document);
if(!_34){
return _39;
}
var _3a=new XMLSerializer();
resultStr=_3a.serializeToString(_39);
}
catch(exc){
throw new Error("Error transforming xml doc "+exc);
}
return resultStr;
};
lconn.core.xslt.setLayerContentByXml=function(_3b,xml,xsl,_3c,_3d){
var _3e=lconn.core.xslt.transform(xml,xsl,null,_3c,_3d);
if(_3b.innerHTML){
_3b.innerHTML=_3e;
}else{
var obj=document.getElementById(_3b);
obj.innerHTML=_3e;
}
};
lconn.core.xslt.transformAndRender=function(_3f){
var _40=function(_41){
if(lconn.core.xslt.debug){
_42("before lconn.core.xslt.transformDocument for: "+_41.xmlDocUrl);
}
var _43;
if(_41.xslDoc){
_43=lconn.core.xslt.transform(_41.xmlDoc,_41.xslDoc,null,_41.aXslParams,true);
}else{
_43=lconn.core.xslt.transformDocument(_41.xmlDoc,_41.xsltUrl,_41.aXslParams);
}
if(lconn.core.xslt.debug){
_42("after lconn.core.xslt.transformDocument for: "+_41.xmlDocUrl);
}
if(lconn.core.xslt.debug){
_42("transformDocAndRender: xslResult doc:\n"+_43+"<br/><br/><br/>");
}
if(_41.callback!=null){
_41.callback(_43);
}
if(typeof (_41.htmlContainerElemId)=="string"){
document.getElementById(_41.htmlContainerElemId).innerHTML=_43;
}else{
_41.htmlContainerElemId.innerHTML=_43;
}
};
var _44=function(_45,_46){
if(lconn.core.xslt.debug){
_42("dojoLoadCallback start");
}
try{
var _47=_46.args.xsltArgs;
if(dojo.isIE&&_45.documentElement==null){
if(lconn.core.xslt.debug){
_42("before dojox.data.dom.createDocument for: "+_47.xmlDocUrl);
}
_45=dojox.data.dom.createDocument(_45);
if(lconn.core.xslt.debug){
_42("after dojox.data.dom.createDocument for: "+_47.xmlDocUrl);
}
}
if(lconn.core.xslt.debug){
_42("transformUrlAndRender: xml doc:\n"+dojox.data.dom.innerXML(_45)+"<br/><br/><br/>");
}
_47.xmlDoc=_45;
_40(_47);
}
catch(exception){
_47.exceptionHandler("transformUrlAndRender",exception,_47);
}
if(lconn.core.xslt.debug){
_42("dojoLoadCallback end");
}
};
var _42=function(_48){
console.log(_48);
};
if(_3f.dojoErrorHandler==null){
_3f.dojoErrorHandler=lconn.core.errorhandling.DefaultXHRErrorHandler;
}
if(_3f.exceptionHandler==null){
_3f.exceptionHandler=lconn.core.errorhandling.DefaultErrorHandler;
}
if(_3f.xmlDoc!=null){
_40(_3f);
}else{
var _49="xml";
if(dojo.isIE){
_49="text";
}
if(lconn.core.xslt.debug){
_42("using: handleAs: "+_49+" for: "+_3f.xmlDocUrl);
}
var _4a={xsltArgs:_3f,url:_3f.xmlDocUrl,sync:false,handleAs:_49,expectedContentType:"xml",load:_44};
if(_3f.dojoErrorHandler!=null){
_4a.error=_3f.dojoErrorHandler;
}
dojo.xhrGet(_4a);
}
};
}

dojo.provide("lconn.profiles.nls.ui")._built=true;
dojo.provide("lconn.profiles.nls.ui.en");
lconn.profiles.nls.ui.en={"structTagsNoTags":"No Tags","personCardSendMail":"Send Email","label.tools.stplugin.about.body2":"The profiles business card also shows up when you hover a person\'s name in your buddy list. This allows you to quickly find relevant IBM Connections information for that person.","label.tools.stplugin.about.body1":"The Profiles Sametime plug-in allows your Sametime client to make use of the Profiles business card. The Profiles business card will be available in an instant message chat window.","attachment.resume.upload":"Upload a r\xe9sum\xe9","linkRollName":"*Name:","label.vcard.encoding.iso88591":"Western European (ISO-8859-1)","label.editprofile.photo.previewButton":"Preview Image","label.editprofile.pronunciation.moreinfo":"More about pronunciation files.","filesWithMeResourceId":"Shared with me","label.profile.vcard.export":"vCard","personCardProxyStatusAvailable":"I am available.","label.header.searchby.kanjiname.description":"Search by last first name","edit":"Edit","label.profile.bizcard.a11y":"Press control-enter to view the business card for {0}","label.search.profiles.profilesearch.simple.findbyname.hint":"Click here to enter name","SHOW_EDU":"Education","widgetCollapse":"Click to collapse section {0}","label.profile.view.welcome.msg4":"{0}Learn{1} the difference between inviting and following someone.","errorUnableToConnect":"Connection failed for {0}","label.profile.view.welcome.msg3":"See who is in the person\'s network. Start following one or more of the contacts or invite them to join your network.","socialTagsWhoTaggedMulti":"Tag \"{0}\" was tagged by {1} people.  See who added this tag ","label.profile.view.welcome.msg2":"Click \"Invite to My Network\" to add the person to your Network tab so their profile is easier to find. If you do not see the button, you have already invited the person.","label.badRequest.title":"Bad Request","Asia/Rangoon":"(GMT+06:30) Yangon (Rangoon)","label.search.profiles.profilesearch.adv.heading":"Advanced Profiles Search","label.profile.view.welcome.msg1":"Click \"Follow\" if you want the person\'s latest updates to be displayed in your Updates view in the Home page.","widgets_Min":"Minimize","str.msgid.ignore":"true","label.userNotFound.info":"The requested user profile does not exist or is not available.","label.feature.colleague.disabled":"The colleague feature is not enabled for this user.","label.about.searchprofiles.body":"Looking for an expert in a specific area? Search profiles to find people with the skills you need. Profiles can help you reach out to people and build up a collaborative network of connected people. You can search by different criteria, including location, experience, and interest.","label.profile.view.welcome.title":"Learn About Your Colleagues","label.profile.view.welcome.body":"Use the information in a person\'s profile to find out about their interests and skills, view their recent posts, and get in touch with them. See who is in the profile owner\'s network and find out how you are connected to them. Click \x3cb\x3eInvite to My Network\x3c/b\x3e to invite the person to join your network, or click \x3cb\x3eFollow\x3c/b\x3e  if you want to get the person\'s latest updates.","label.page.profiles.tools":"Tools - Profiles","label.phone.cell":"Cell:","tablePagingItermsPerPage":"items per page","label.login.profiles.ibmlogo":"IBM logo","label.searchresults.searchby.deptNumber":"Department Number:","label.search.profiles.search":"Search","attachment.resume.not.available":"There is no r\xe9sum\xe9 available for this profile","label.metrics.asof":"As of: ","profiles.metric.board.count.today.desc":"Number of new board posts today","label.searchresults.searchby.pagerId":"Pager ID:","personCardRemoveFromColleagues":"Remove from My Network","preference.email.comment.any.message":"Send me email when someone comments on any board message I post","commonTagsLoading":"Loading Organization\'s tags...","label.vcard.header.exportVcard":"Export vCard","label.editprofile.associatedInformation.help.body":"The About me page of your profile should describe your work background, experience, areas of expertise, and include some information about your interests or hobbies to keep it interesting.","label.editprofile.update.internalErr":"Internal error.","label.metrics.name":"Name","America/New_York":"(GMT-05:00) Eastern Time (US & Canada)","linkRollRequired":"* Required","linkRollAddLink":"Add Link","label.searchresults.searchby.tags":"Profile Tags:","personCardShareFileSuccess":"You have successfully shared the file \"{0}\" with {1}.","errors.long":"{0} must be a long.","profiles.metric.background.count.desc":"Number of employees in the profiles database who have updated their background","label.about.profiles.legal.info":"Legal Information","label.error.session.timeout":"Your session has timed out.  For security reseasons you must click the \'update\' button again in order for profile changes to be accepted.","label.statusUpdates.name":"Name:","label.header.myprofile":"My Profile","Asia/Seoul":"(GMT+09:00) Seoul","label.about.profiles.logo":"Profiles logo","linkRollCancel":"Cancel","label.about.relatedcontent.heading":"Follow the links","label.header.editmyprofile":"Edit My Profile","follow_fullPageTitle":"Follow Network","Pacific/Auckland":"(GMT+12:00) Auckland, Wellington","label.search.profiles.profilesearch.bycontactinfo.button":"Contact Info Search","label.feature.pronun.disabled":"The pronunciation feature is not enabled.","label.header.searchby.stdname":"Name (First Last)","profile_preferences":"Profile Preferences","label_following_user_unfollowed":"{0} has been removed from your following list","friendsLoadingInv":"Loading Invitations...","Asia/Singapore":"(GMT+08:00) Kuala Lumpur, Singapore","multiFeedReaderActionsFor":"Actions for Recent Posts","label.searchresults.searchby.pagerNumber":"Pager Number:","label.search.profiles.selectSearchScope":"Select search scope","warning.draft":"CLFRN1166W: Warning: Some updates may not be immediately available.","friendsFollowUser":"Follow {0}","errors.pronunciation.maxfilesize":"The pronunciation file you provided is too large.","profiles.metric.board.comment.count.desc":"Number of board posts with comments","Europe/Warsaw":"(GMT+01:00) Sarajevo, Skopje, Warsaw, Zagreb","America/Santiago":"(GMT-04:00) Santiago","socialTagsPeople":"people","label.mynetwork.welcome.following.msg3":"To stop following a person, select a name in the list of Followers and then click Stop Following.","label.mynetwork.welcome.following.msg2":"Learn about different ways to {0}start following someone{1}.","label.bizcard.document":"Business card dialog","label.mynetwork.welcome.following.msg1":"When someone\xa0you are following performs an action, such as posting a status message or adding a blog post, it displays on your Home page.","multiFeedReaderCreatedBy":"created by:","friendsRemoveSelected":"Remove Selected","label.profile.im.signin":"Sign in to Profiles to view Sametime status","friendsIsInYourNetwork":"{0} is in your network.","label.statusUpdates.recommendCaption":"{0} people recommended this.","label.searchresults.searchby.mobileNumber":"Mobile Number:","label.vcard.help.title":"Character Encoding:","label.login.profiles.button.login":"Log In","follow_tableheading_selection":"Selection box","Asia/Baku":"(GMT+04:00) Baku","Asia/Baghdad":"(GMT+03:00) Baghdad","label.search.profiles.profilesearch.bycustomfields.button":"Custom Search","label.editprofile.contactinformation.timezone":"Time zone:","label.searchresults.searchby.managerUid":"Manager UID:","RECOMMEND_SINGLE":"recommendation","REMOVE_PROFILE":"Remove LinkedIn profile","label.mynetwork.welcome.followers.msg2":"You cannot remove a follower or prevent someone from following you.","personCardMoreActionsAltText":"Click for action menu","label.mynetwork.welcome.followers.msg1":"Actions you perform, such as posting a status message in your profile or adding a blog post, are displayed on the Home page of each person following you.","errors.create":"\x3cb\x3e A system error occurred while creating a profile. \x3c/b\x3e \x3cbr /\x3e {0} \x3cdiv class=\"indent20\"\x3e {1} \x3c/div\x3e {2} \x3cdiv class=\"indent20\"\x3e {3} \x3c/div\x3e","label.network.welcome.body.followers":"View a list of the people who are following the profile owner.","friendsAlreadyFollowing":"You are already following {0}","label.search.results.refine.terms":"Enter more specific search terms to narrow the results.","label.header.searchby.phone":"Phone Number","linkRollLinkAdded":"The link has been added.","label.navigation.colleagues.heading.title":"Display the network contacts page.","loadingSTStatus":"Loading Sametime status...","label.header.searchby.description":"Search by {0}","errors.integer":"{0} must be an integer.","dw.label.editProfile.top":"The fields with an asterisk (\x3cspan class=\"ibm-required\"\x3e*\x3c/span\x3e) are required to complete your user profile; all other fields are optional. \x3cstrong\x3eInformation in your profile (your name, country/region, and company name) is displayed to the public and will accompany any content you post, unless you opt to hide your company name.\x3c/strong\x3e You may update your IBM account at any time.\x3cbr/\x3e\x3cbr/\x3eIf you do not want to provide us the required information please use the \"Back\" button on your browser to return to the previous page, or close the window or browser session that is displaying this page.","help":"Help","label.profiles.navigation":"Profiles Navigation","socialTagsExpandWidget":"Click to expand the tags section","str_component_id":"CLFRTT","search.dropdown.allconnections":"developerWorks Community","label.login.profiles.subheading":"Find out people\'s interests and activities. Contact your network contacts.","personCardChat":"Chat","error.fileContainsVirus":"CLFRN1167E: The file you uploaded contains a virus.","label.editprofile.aboutMe.tab.label":"About Me","label.welcome.learnMore":"Learn More ","label.statusUpdates.recommendCaptionYouOthers":"{0} people recommend this, including you.","Asia/Jerusalem":"(GMT+02:00) Jerusalem","actions":"Actions","America/Mexico_City":"(GMT-06:00) Guadalajara, Mexico City, Monterrey","label.editprofile.photo.current":"Current image:","search.dropdown.advanced":"Advanced","structTagsActionsFor":"Actions for Structured Tags","errors.double":"{0} must be a double.","label.vcard.encoding.cp943c":"Japanese (Cp943c)","preference.board.show.public":"Allow all users to see content on my board","label.page.profiles.home":"Directory - Profiles","label.search.profiles.jobtitle":"Job title","label.feature.pronun.edit.not.allowed":"You cannot edit the pronunciation.","tablePagingJumpToPageDesc":"By changing the value in this control, the page will automatically reload showing the items for that page.","label.header.advancedsearch":"Advanced Search","preference.board.write.network":"Allow only users in my network to write on my board","friendsInitialMsgForInv":"I\'d like to add you to my developerWorks Community network contacts list.","America/Los_Angeles":"(GMT-08:00) Pacific Time (US & Canada)","label.error.body":"Something went wrong - click the back button and try again.  If this doesn\'t work, please check with your administrator.  If someone sent you this link, check to see if you\'ve been granted permission.","PROFILE":"Public profile","friendsCancelInvAction":"Cancel","label.page.profiles.search":"Search - Profiles","search.dropdown.byname":"Profiles by Name","label.searchresults.people.tableheading.contactinfo":"Contact information","socialTagsActionsFor":"Actions for Tags","Australia/Hobart":"(GMT+10:00) Hobart","information_error_alt":"Error","friendsSendFriendRequest":"Send request","label.following.followme":"Contacts following me","tablePagingPrevious":"Previous","label.search.profiles.phone":"Telephone number","errors.invalidDisplayName":"This display name is not valid. Please choose another (between 3-31 characters). Following characters are not allowed: &lt;, \x3e, ;, \", \', and comma.","friendsInviteAddTagsFor":"Add tags for {0}:","reportStructureCollapseWidget":"Click to collapse the reporting structure section","label.searchresults.searchby.department":"Organization:","friendsInviteTagError":"An error occurred while attempting to tag {0}","label.search.profiles.heading.close.alttext":"Close the welcome to profiles section.","contactInfoActionsFor":"Actions for Contact Information","linkRollLinkRemoved":"The link has been removed.","friendsIgnoreActionA11y":"Ignore {0}","label.editprofile.pronunciation.heading":"Pronunciation","label.statusUpdates.altImage":"Image attachment","label.header.searchby.name":"Name","label.searchresults.searchby.experience":"Background:","profiles.metric.employee.count":"Total number of employees","deleteWidget":"Delete Widget","profiles.metric.user.board.count.desc":"Number of users with at least one board post","Asia/Karachi":"(GMT+05:00) Islamabad, Karachi, Tashkent","label.search.profiles.profilesearch.adv.show":"Show Advanced Search","label.searchresults.searchby.groupwareEmail":"Alternate Email:","label.editprofile.tab.content":"Edit Profile - Section Fields","feed_forPage":"Feed for this page","Africa/Lagos":"(GMT+01:00) West Central Africa","label.navigation.reporting_structure.heading.title":"Display the reporting structure page.","label.bizcard.applinks.more":"Show more","label.login.profiles.heading":"Profiles","label.searchresults.searchby.employeeNumber":"Employee Number:","friendsInvSent":"No invitation sent because an invitation is already pending.","label.about.searchprofiles.heading":"Find the expertise you need.","widgets_Max":"Maximize","label.profile.heading.otherviews":"Other views","tablePagingSortByLastNameDesc":"Sort items by family name","label.header.directory":"Directory","label.search.refine":"Refine this search","tablePagingJumpToPage":"Jump to page","error.atomDatabase":"CLFRN1119E: An error occurred while retrieving profile data.","errors.delete":"\x3cb\x3e A system error occurred while deleting part of a profile. \x3c/b\x3e \x3cbr /\x3e {0} \x3cdiv class=\"indent20\"\x3e {1} \x3c/div\x3e {2} \x3cdiv class=\"indent20\"\x3e {3} \x3c/div\x3e","label.phone.fax":"Fax:","personCardUnfollow":"Stop Following","label.about.profiles.body":"Profiles are a directory of the people in your organization as well as information you need to form and encourage effective networks. In addition to basic information captured in a business card format, profiles catalog skills such as technical expertise, familiarity with foreign languages, and areas of interest.","label.header.searchby.community.description":"Search by communities","label.page.profiles.reporting":"Reporting Structure for {0} - Profiles","label.message.information":"Information:","tablePagingSortByRelevenceDesc":"Sort items by relevance","label.page.profiles.mynetwork":"My Network - Profiles","preference.board.enable":"Enable the board","label.personcard.newslink":"News","delete_confirmation":"Are you sure you want to delete this?","label.searchresults.searchby.secretaryUid":"Secretary UID:","Atlantic/Azores":"(GMT-01:00) Azores","noStatuAvailable":"No Sametime status available","follow_tableheading_employeeinfo":"Name &amp; employee information","label.profile.blogUrl":"User\'s Blog","label.search.profiles.profilesearch.byname.button.hint":"Search using name","label.banner.logoutlink":"Logout","label.personcard.fileslink":"Files","label.page.advancedsearch.heading":"Search the Directory ","quickrResourceId":"Quickr","error.atomConnectionAlreadExists":"CLFRN1168E: A connection to this user already exists or is pending.","label.statusUpdates.message":"Message:","friendsInviteFollowHelp":"For more information, see {0}Following people{1}.","follow_email":"Email:","label.error.hidefullerrormessagelink":"Hide full error message","label.statusUpdates.recommendThis":"You recommended this.","label.editprofile.contactinformation.telephoneNumber":"Office number:","label.editprofile.pronunciation.removeaudiofile":"Remove audio file","label.statusUpdates.browse":"Browse","label.searchresults.searchby.officeNumber":"Office Number:","userActivationAriaLabel":"Activating this link will open the profile of {0} in a new window.","follow_title_ContactsFollowedBy":"Contacts Followed By {0} ","errorStackTrace":"Trace: ","label.tools.stplugin.about.heading":"What does the plug-in do?","Europe/Brussels":"(GMT+01:00) Brussels, Copenhagen, Madrid, Paris","error.atomGeneral":"CLFRN1120E: An error occurred.","friendsNoInv":"No invitations","label.searchresults.searchby.managerUserid":"Manager User ID:","America/Chihuahua":"(GMT-07:00) Chihuahua, La Paz, Mazatlan","information_warning_alt":"Warning","newsResourceId":"News","label.error.heading":"Oops, that didn\'t work","SHOW_SKILLS":"Skills","label.searchresults.pagelink.alt":"Go to page {0} of search results","search.dropdown.contacts":"Contacts","label.personcard.dogearlink.title":"Click here to see this person&#146;s bookmarks.","label.login.profiles.invalidparameters":"Your user name and/or password does not match any existing accounts. Please check and try again.","dw.label.searchresults.people.heading.champions":"IBM Champion profile search results for {0}","reportStructureExpandWidget":"Click to expand the reporting structure section","dw.label.search.all":"Search all profiles","label.footer.build":"Release {0} {1}","filesReader":"Files","errors.filetype":"{0} is a file type that is not supported.","label.editprofile.photo.previewBox":"Image Preview:","label.searchresults.searchby.surname":"Surname:","label.feature.board.message.not.allowed":"You cannot post messages on the board for this user.","label.personcard.dogearlink":"Bookmarks","label.welcome.clickPerson":"Click a person\'s name to open their profile page and find out more about them.","label.login.pageheading":"Log In","label.searchresults.people.email":"Email:","label.page.profiles.login":"Log In - Profiles","Asia/Hong_Kong":"(GMT+08:00) Beijing, Chongqing, Hong Kong, Urumqi","label.searchresults.searchby.freeBusyUrl":"Free Busy URL:","socialTagsAdvisorytitle":"Find other people with the tag &#34;{0}&#34;","structTagsCollapseWidget":"Click to collapse the structured tags section","label.required.LastName":"Last name","tablePagingSortByDisplayNameDesc":"Sort items by display name","friendsNetworkFor":"Network for {0}","label.personcard.communitieslink.title":"Click here to see this person&#146;s communities.","label.search.profiles.aboutlink":"Learn more","errors.suffix":"\x3cbr /\x3e","widgetActionsFor":"Actions for {0}","label.login.profiles.copyright":"Licensed Materials - Property of IBM Corp. \xa9 IBM Corporation 2007, 2012. IBM,  the IBM logo, ibm.com and Lotus are trademarks of IBM Corporation in the United States, other countries, or both.  U.S. Government Users Restricted Rights:  Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.  Please see the About page for further information.","toggle":"Toggle","label.myprofile.edit.welcome.msg4":"Are you seeing tags that you did not add? Other people can assign tags to your profile. {0}Learn more{1}.","label.myprofile.edit.welcome.msg3":"{0}Add tags (keywords){1} that identify your skills and interests so others can find you.","friendsRemoved":"Network contact(s) removed.","label.myprofile.edit.welcome.msg2":"{0}Track your background information{1}, including past job roles, skills, and training.","label.search.profiles.profilesearch.simple.findbykeyword.hint":"Click here to enter keyword","label.myprofile.edit.welcome.msg1":"{0}Keep your contact information up-to-date{1}  to ensure that people can get in touch with you.","multiFeedReaderUpdatedBy":"updated by:","errors.invalid":"{0} is not valid.","widgetLoading":"Loading...","Pacific/Guam":"(GMT+10:00) Guam, Port Moresby","follow_LoadingError":"Error loading follow network","label.myprofile.edit.welcome.body":"Use this page to fill out your profile. Tell people who you are and what you do by adding information about your work background, your interests and hobbies, and tags that indicate your area of expertise. Enhance your profile by adding a business-appropriate photo.","label.login.profiles.button.cancel":"Cancel","friendsInviteUpdatesDescription":"Receive updates about people you are following on the Home page and in an email summary.","tablePagingJumpToPageControl":"Jump to page {0} of {1}","profiles.metric.pronunciation.count":"Number of employees with pronunciation supplied","label_profile_otherviews_peoplemanaged":"People Managed","ERROR":"Error","socialTagsTagCloudAltText":"List tags as a tag cloud","label.personcard.activitieslink":"Activities","label.search.profiles.profilesearch.adv.hide":"Hide Advanced Search","attachment.resume.replace":"To replace your r\xe9sum\xe9, first delete the existing one, then upload a new one.","label.searchresults.people.heading":"Profile search results for {0}","REAUTHENTICATE":"Reauthenticate","feed_forBoard":"Feed for this profile board","attachment.resume.upload.failed":"Unable to upload r\xe9sum\xe9. Please try again, or contact your system administrator if problem persists.","label.feature.photo.edit.not.allowed":"You cannot edit the photo.","dw.label.editProfile.update.account":"Update your IBM account (including your privacy settings)","activitiesResourceId":"Activities","noinformation":"No information provided.","label.network.welcome.body":"View the list of the people in the profile owner\'s network.","label.searchresults.searchby.alternateLastname":"Alternate Family Name:","linkRoll":"My Links","reportStructure":"Report-to Chain","label.search.profiles.profilesearch.bycustomfields.help":"Use some or all of the fields in this section, then click the search button.","label.searchresults.pagelabel":"Page","label.search.profiles.heading":"Search your company:","personCardMoreActions":"More Actions","tablePagingNextAlt":"Go to the next page of items","label.search.profiles.profilesearch.bykeyword.help":"Enter the keyword for the person you would like to find.","personCardCall":"Call","dw.label.expertise.ibm_social_business":"IBM Social Business","SKILLS":"Skills","friendsCollapseWidget":"Click to collapse the network section","errors.photo.maxfilesize":"The photo file you provided is too large.","multiFeedReaderSeeAllFeeds":"View All","label.about.profiletags.heading":"Search with tags","friendsPersonAlreadyInYourNetwork":"Invitation to your network is not possible because the {0} is already in your network.","Asia/Colombo":"(GMT+05:30) Sri Jayawardenepura","Europe/Belgrade":"(GMT+01:00) Belgrade, Bratislava, Budapest, Ljubljana, Prague","Asia/Muscat":"(GMT+04:00) Abu Dhabi, Muscat","label.banner.tools":"Tools","label.searchresults.searchby.nativeFirstName":"Native Given Name:","errors.pronunciation.filetype":"The type of the pronunciation file you provided is not supported.","label.about.relatedcontent.body":"In addition to viewing a person\'s contact information, you can access links to related content that they make available from their profile. For example, you might find a link to a blog that the user has posted, or to an article bookmarked on a Web site.","friendsAcceptAction":"Accept","label.welcome.help":"Help","label.navigation.overview.heading.title":"Display the profile page.","label.personcard.cardreqexpired":"The request to get the business card expired","label.editprofile.photo.selectFile":"Choose a File","label.searchresults.searchby.workLocation$city":"City:","label.statusUpdates.noRecommendation":"No recommendation","label.personcard.homepagelink":"Home","label_following_not_allowed":"Following feature is not allowed","contactInfo":"Contact Information","socialTagsList":"List","tablePagingCurrentlySortedByDisplayNameDesc":"Items currently sorted by display name","errors.prefix":"","label.personcard.noprofilemsg":"A profile does not exist for this person","friendsNewInvitationsCount":"You have {0} new invitation(s)","dw.label.expertise.ibm_middleware":"IBM Middleware","Pacific/Noumea":"(GMT+11:00) Magadan, Solomon Is., New Caledonia","errorLine":"Line:","delete":"Delete","label.statusUpdates.file":"File:","label.header.searchby.phone.description":"Search by phone","label.search.profiles.profilesearch.bycustomfields.button.hint":"Search using custom field","structTags":"Structured Tags","homepageResourceId":"Home","widgetHelpClose":"Close","personCardFollow":"Follow","label.search.results.refine":"Click here to refine search results.","ERROR_WIDGET":"Widget Error","label.header.mynetwork":"My Network","label.search.results.more.available":"More than {0} results available. Displaying the first {0} only.","Asia/Yekaterinburg":"(GMT+05:00) Ekaterinburg","label.following.followers":"Followers","Asia/Bangkok":"(GMT+07:00) Bangkok, Hanoi, Jakarta","label.personcard.blogslink.title":"Click here to see this person&#146;s blog.","label.searchresults.searchby.floor":"Floor:","label.about.profiles.heading2":"Who is in your organization?","label.about.profiles.heading1":"Profiles","label.myprofile.edit.welcome.title":"Help People Get to Know You","label.search.profiles.name":"Name","label.header.searchby.kanjiname":"Name (Last First)","label.statusUpdates.post":"Post","Asia/Almaty":"(GMT+06:00) Almaty, Novosibirsk","profiles.metric.user.board.count":"Number of users with at least one board post","attachment.resume.title":"R\xe9sum\xe9","label.welcome.close":"Close welcome section","label.searchresults.people.phone":"Phone:","label.banner.help":"Help","friendsMenuTitleInCommon":"People in Common","label.search.profiles.profilesearch.byname.help":"Enter the name of the person you would like to find.","label.page.profiles.about":"About Profiles","Pacific/Pago_Pago":"(GMT-11:00) Midway Island, Samoa","label.searchresults.searchby.courtesyTitle":"Courtesy Title:","label.feature.colleague.connect.not.allowed":"You cannot invite this user to your network.","label.feature.tag.add.not.allowed":"You cannot add tags.","friendsInvitations":"Invitations","label.searchresults.searchby.pagerServiceProvider":"Pager Service Provider:","dw.label.editProfile.bottom":"We will not use the information you supply for future marketing or promotional contacts or communications beyond the scope of this report. By clicking \x3cstrong\x3eSave\x3c/strong\x3e you agree that IBM may process your data in the manner indicated above and as described in the \x3ca href=\"https://www.ibm.com/developerworks/community/terms?lang=en\"\x3edeveloperWorks terms of use\x3c/a\x3e and the \x3ca href=\"http://www.ibm.com/privacy/\"\x3eIBM privacy statement\x3c/a\x3e","errors.background":"The description you entered in the Background section is too long.","mobileResourceId":"Mobile","label.searchresults.searchby.kanjiName":"Name:","multiFeedReaderActivitiesNeedToLogIn":"You need to log in to see the activities you share with this person","label.searchresults.tagfilter.remove":"Remove the tag {0} from the search results filter","label.personcard.forumlink.title":"Click here to see this person&#146;s forum posts.","label.personcard.activitieslink.title":"Click here to see shared activities.","label.search.profiles.profilesearch.adv.findbycustomfields":"Custom Fields:","label.about.profiles.tips":"Tips","personCardRemoveFromNetworkVerify":"Are you sure you want to remove {0} from your network?","socialTagsAddTagsAltText":"Add tag(s) to this profile","errors.update":"\x3cb\x3e A system error occurred while updating a profile. \x3c/b\x3e \x3cbr /\x3e {0} \x3cdiv class=\"indent20\"\x3e {1} \x3c/div\x3e {2} \x3cdiv class=\"indent20\"\x3e {3} \x3c/div\x3e","ERROR_LINKEDIN":"LinkedIn Error","label.vcard.cancel":"Cancel","friendsSortByRecent":"Recent","label.search.profiles.profilesearch.adv.hidefull":"Hide full search options","friendsInviteMessage":"I\'d like to add you to my developerWorks Community network.","socialTagsTagCloud":"Cloud","friendsMyNetwork":"Network","label.editprofile.photo.removeimage.confirm":"Are you sure you want to remove this image from your profile?","label.header.searchby.profiletags.description":"Search by profile tags","America/St_Johns":"(GMT-03:30) Newfoundland","errors.photo.filetype":"The type of the photo file you provided is not supported.","blogsResourceId":"Blogs","multiWidgetLoading":"Loading profile information...","profiles.metric.board.comment.count":"Number of board posts with comments","attachment.resume.exceed.limit":"Unable to upload r\xe9sum\xe9. The file exceeds the size limit of {0}","label.searchresults.searchby.name":"Name:","label.searchresults.searchby.officeName":"Office Name:","label.personcard.homepagelink.title":"Click here to see this person&#146;s home page.","tablePagingInfo":"{0} - {1} of {2}","friendsInviteAlsoFollow":"Also Follow","America/Denver":"(GMT-07:00) Mountain Time (US & Canada)","label.editprofile.pronunciation.close":"Close","label.login.profiles.heading.logo":"Profiles logo","RECOMMEND_PLURAL":"recommendations","label.header.searchby.jobtitle":"Job Title","America/Godthab":"(GMT-03:00) Greenland","errors.photo.general":"An error occurred in the photo upload process.","Atlantic/Cape_Verde":"(GMT-01:00) Cape Verde Is.","label.statusUpdates.preview":"Preview","backgroundInfoActionsFor":"Actions for Background Information","friendsInviteFailed":"Due to a server error, an e-mail notification was not sent to the invitee. However the invitee will still be able to accept your invitation through the Profiles web application.","label.searchresults.searchby.state":"State:","SHOW_INTERESTS":"Interests","label.searchresults.searchby.jobTitle":"Job Title:","label.feature.tag.disabled":"The self tagging feature is not enabled.","linkRollAddLinkAltText":"Add a link to your links section. ","label.search.profiles.searchfieldlabel":"Display Name:","label.feature.not.allowed":"The feature {0} is not allowed for profile type {1}","label.editprofile.pronunciation.helplink":"How to create a name audio file","backgroundInfoLoading":"Loading background information...","label.search.profiles.location":"Location","friendsShowAllCommonFriends":"Show all...","label.home.status.update":"{0} to see status updates for your network","label.about.profiles.tip3":"Fill in the About Me section of your profile to let your network know more about you.","friendsNoFriends":"No network contacts are associated with this profile","label.metrics.value":"Value","label.about.profiles.tip2":"The Reporting Structure view for a profile lists either a person\'s full reporting hierarchy or lists peers reporting to the same manager.","label.searchresults.people.tableheading.photo":"Photo","label.searchresults.noresults":"No results found.","label.about.profiles.tip1":"Add a personal touch by including a picture with your profile.","label.statusUpdates.errorCreatingPreview":"An error occurred while creating the image preview.","label.searchresults.searchby.secretaryUserid":"Secretary User ID:","label.editprofile.pronunciation.selectFile":"Choose a File","follow_Loading":"Loading Network...","NO_CONNECT":"Cannot connect to LinkedIn","label.inactive.user.msg":"This person is no longer an active user.","friendsInCommonSingle":"You have {0} network contact in common","label.searchresults.searchby.countryDisplayValue":"Country:","information_information_close_alt":"Close information alert","friendsMenuTitleAllContacts":"All Network Contacts","Asia/Yakutsk":"(GMT+09:00) Yakutsk","label.search.profiles.country":"Country","label.search.profiles.profilesearch.byname.button":"Name Search","label.phone.other":"Other:","socialTagsSave":"Save","label.searchresults.people.tableheading.employeeinfo":"Name &amp; employee information","tablePagingShowLinkAlt":"Show {0} items per page","label.personcard.quickrlink.title":"Click here to see this person&#146;s quickr shares.","email_fromLotusConnectionsProfiles":"This is a notification sent from IBM Connections Profiles.","America/Indianapolis":"(GMT-05:00) Indiana (East)","label.search.profiles.profilesearch.adv.link":"Advanced search options","label.statusUpdates.cancel":"Cancel","label.search.profiles.profilesearch.bykeyword.button.hint":"Search using keyword ","America/Regina":"(GMT-06:00) Saskatchewan","label.editprofile.contactinformation.preferredLastName":"Preferred family name:","label.searchresults.pageinfo":"{0} - {1} of {2}","label.searchresults.searchby.country":"Country:","Asia/Tehran":"(GMT+03:30) Tehran","linkRollActionsFor":"Actions for My Links","label.login.profiles.intro.body":"Search Profiles to find and contact others in your organization with the expertise you seek. Profiles also links you to information that contacts are collecting or publishing.","personCardPendingInv":"Pending Invitation...","label.searchresults.searchby.extattr$JLCompany":"Company:","label.bizcard.applinks":"Application links","label.header.pageheading":"Profiles","tablePagingCurrentlySortedByRelevenceDesc":"Items currently sorted by relevance","Asia/Dhaka":"(GMT+06:00) Astana, Dhaka","friendsInvitePerson":"Invite {0} to your network","multiFeedReaderShow":"Show:","friendsAcceptActionA11y":"Accept {0}","label.searchresults.searchby.pagerType":"Pager Type:","label.header.searchby.stdname.description":"Search by first last name or just last name","follow_noContacts":"No followed contacts are associated with this profile","label.directory.welcome.title":"Find Out Who\'s Who In Your Organization","Africa/Nairobi":"(GMT+03:00) Nairobi","friendsExpandWidget":"Click to expand the network section","label.page.profiles.navigations":"Profiles","America/Sao_Paulo":"(GMT-03:00) Brasilia","friendsInviteReceiveUpdates":"(receive updates)","dw.label.expertise.ibm_analytics":"IBM Analytics","label.editprofile.photo.no_init":"Photo cropper not initialized!","label.searchresults.searchby.secretaryEmail":"Secretary Email:","socialTagsListAltText":"List tags as a sequential list of tags","label.following.ifollow":"Contacts I\'m following","label.myprofile.view.welcome.msg3":"Click \"Edit My Profile\" to update your contact information, upload a photo, and add information about your work and expertise. ","label.myprofile.view.welcome.msg2":"Post a message to share an idea or problem that you are working on and get immediate feedback about it from your colleagues.","label.statusUpdates.attachFile":"Attach a File","label.myprofile.view.welcome.msg1":"Your profile is visible to everyone in the organization. Use it to define who you are and what you do.","label.about.profiletags.body":"Tags are descriptive keywords you create and assign to identify particular roles or activities in your organization. For example, you might search on a tag called accessibility to find all of the users who have used that tag to indicate that they have accessibility expertise.","label.searchresults.pageinfo.alt":"Showing items {0} through {1} of {2}","Africa/Casablanca":"(GMT) Casablanca, Monrovia","label.navigation.colleagues.heading":"My Network","America/Halifax":"(GMT-04:00) Atlantic Time (Canada)","label.myprofile.view.welcome.body":"Let your colleagues know what you\'re doing by updating your personal status. View the latest posts to your message board. Add tags that indicate your interests and area of expertise. Click \"Edit My Profile\" to start filling out your profile.","label.header.searchby.phone.example":"(example: 1-222-333-4444)","socialTagsCollapseWidget":"Click to collapse the tags section","label.searchresults.searchby.email":"Email:","label.searchresults.searchby.bldgId":"Building ID:","personCardAddAsColleagues":"Invite to My Network","label.searchresults.community.tableheading":"Community","profiles.metric.tag.unique.count":"Number of unique tags","label.search.profiles.tagsUnavailable":"The tag clound is temporarily unavailable.","label.editprofile.contactInformation.tab.label":"Contact Information","linkRollRemoveLinkAltText":"Remove the link from your links section.","profiles.metric.colleage.total.count.desc":"Number of colleagues","label.about.profiles.helplink":"Help","linkedin":"LinkedIn","commonTagActions":"Actions for Organization Tags","socialTagsWhoTagged":"Tag \"{0}\" was tagged by 1 person.  See who added this tag ","attachment.resume.delete":"Delete r\xe9sum\xe9","profiles.metric.authenticated.last.30.days.desc":"Number of employees logged into the Profiles service in the last month","SHOW_CURRENT":"Current Job Experience","error.atomNoDoc":"CLFRN1121E: The requested Atom feed could not be built.","label.directory.welcome.msg3":"Learn how to {0}use tags{1} to find people.","profiles.metric.background.count":"Number of employees who have updated their background","label.directory.welcome.msg2":"Click \"Display full search options\" to perform a more advanced search. {0}Learn more{1}.","label.search.profiles.demolink":"View Demo","label.statusUpdates.openPreview":"Open preview dialog","label.statusUpdates.uploadAttachment":"Upload an attachment","label.directory.welcome.msg1":"Perform a quick search by entering a name in the field provided.","friendsViewAllFriends":"View All ({0})","label.feature.tag.others.add.not.allowed":"You cannot add tags for this user.","friends_tableheading_contactinfo":"Contact information","label.statusUpdates.thumbnailNotAvailable":"Image thumbnail not yet available.","profiles.metric.authenticated.last.30.days":"Number of employees logged in the last month","label.directory.welcome.body":"Use your company directory to search for profiles and organizational information. Click a tag in the tag cloud to display a list of people with that tag. Log in and select My Network to start building your social network and connecting with people. Let your colleagues know what you\'re doing by sharing status updates from the My Profile tab.","label.reportchain.welcome.title":"Get To Know Your Organization","friendsNetwork":"Network","label.phone.work":"Work:","label.searchresults.searchby.preferredLanguage":"Preferred Language:","errorMsg":"Message: ","close":"Close","label.search.profiles.kanjiname":"Name (Last First)","label.editprofile.rte.charsRemaining":"{0} characters remaining","attachment.resume.type.not.supported":"Unable to upload r\xe9sum\xe9. This file type is not supported.","reportStructureNameLabel":"${0}, manager of ${1}","label.search.profiles.help.close.alttext":"Close the new to profiles section.","label.page.profiles.error":"Error - Profiles","error.queryCommunities":"CLFRN1169E: There was an error querying the Communities server. If the problem persists please contact your system administrator.","activityStreamActionsFor":"Actions for Activity Stream","communityResourceId":"Communities","label.personcard.blogslink":"Blogs","SHOW_PROFILE":"Show my LinkedIn profile","personCardRemovedContact":"{0} has been removed from your network contact list.","preference.email.write.my.board":"Send me email when someone writes on my board","label.jobInformation.extattr.JLCity":"City","label.searchresults.nextlink":"Next","Australia/Brisbane":"(GMT+10:00) Brisbane","label.vcard.download":"Download","label.searchresults.searchby.preferredLastName":"Family Name:","label.search.profiles.logo":"Profiles logo","open":"Open","errors.minlength":"{0} cannot be less than {1} characters.","error.atomNotFound":"CLFRN1170E: Resource not found.","error.atomInvalidXMLContent":"CLFRN1171E: The content submitted is either invalid XML content or non-validating.","follow_title_ContactsFollowing":"Contacts Following {0} ","label.searchresults.searchby.faxNumber":"Fax Number:","LOADING":"Loading...","Asia/Tbilisi":"(GMT+03:00) Tbilisi","label.vcard.selectEncoding":"Select download character encoding","label.profile.localtime":"Local Time:","errors.email":"{0} is not a valid email address.","error.atomInvalidParameters":"CLFRN1123E: No valid parameters were specified.","label.page.profiles.editmyprofile":"Edit My Profile","label.searchresults.searchby.workLocation$state":"State:","feed_forProfiles":"Feed for these Profiles","label.badRequest.info":"The requested page is invalid.","reportStructureActionsFor":"Actions for Report-to Chain","label_profile_reportingstructure":"Reporting Structure","Europe/Athens":"(GMT+02:00) Athens, Bucharest, Istanbul","Europe/Moscow":"(GMT+03:00) Moscow, St. Petersburg, Volgograd","label.required.FirstName":"First name","label.vcard.help":"The character encoding option is available so that users can select an export option that is most appropriate for their address book reader. For most users, including users of Lotus Notes and Microsoft Outlook (but not Outlook Express), the default \'Internationalized\' option should always be used. Users of Windows Address Book, Microsoft Outlook Express or some other email tool may need to select another encoding in order to correctly import the vcard into their address book.","label.tools.stplugin.install.altText":"Install profiles plug-in","label.personcard.newslink.title":"Click here to see this person&#146;s news.","deleteWidgetMsg":"You are about to delete your widget. This will Delete all the widget content from the application. This action cannot be undone.\x3cbr/\x3e\x3cbr/\x3eIf you are sure you want to delete the widget, click the Delete button below. \x3cbr/\x3eIf Not, click cancel.","label.mynetwork.welcome.invitation.msg3":"Learn about different ways to {0}invite people to join your network{1}.","label.mynetwork.welcome.invitation.msg2":"If you choose to ignore an invitation, the person is not notified.","label.statusUpdates.noName":"No name","errorName":"Name: ","label.mynetwork.welcome.invitation.msg1":"Accept an invitation to add the person to your list of network contacts.","label.statusUpdates.recommendCaption.1":"1 person recommended this.","label.profile.pronunciation":"Play an audio file with the pronunciation of the person\'s name","socialTagsTablabel":"Tags","label.personcard.profilelink.title":"Click here to see this person&#146;s profile.","NO_PROFILE":"This user does not have a LinkedIn profile","cancel":"Cancel","label.editprofile.photo.newupload":"Upload a new image:","label.header.searchby.name.description":"Search by name","friends_tableheading_selection":"Selection box","label.page.profiles.profile":"{0} Profile","socialTagsHelpSubheading":"The tags below indicate this person\'s interests","error.atomInvalidRequest":"CLFRN1172E: The request is invalid.","label.editprofile.cancel":"Cancel","label.search.profiles.profilesearch.simple.link":"Simple search options","widgetExpand":"Click to expand the section {0}","label.about.editprofile.body":"Fill out your own profile with contact information. Let your community, company, or organization know what you can do, what your interests are, and how to get in touch with you. Apply some tags to your profiles to give others another way to find you.","profiles.metric.links.count.desc":"Number of users with links","label.editprofile.associatedInformation.heading":"Associated Information","label.searchresults.searchby.shift":"Shift:","label.searchresults.searchby.departmentTitle":"Department:","profiles.metric.tag.profile.count":"Number of profiles with tags","SHOW_PAST":"Past Job Experience","profiles.metric.colleage.total.count":"Number of colleagues","follow_sortByDisplayName":"Display Name","friendsFullPageTitle":"Network","tablePagingSortByRelevence":"Relevance","label.search.profiles.profilesearch.adv.findbycontactinfo":"Contact Info:","friendsInviteLegalNote":"By sending this invitation, you agree to allow {0} to comment on your profile board.","NO_CONFIG":"No LinkedIn profile information available.","America/Manaus":"(GMT-04:00) Manaus","label.statusUpdates.recommendedBy":"Recommended by: {0}","label.tools.stplugin.heading":"Profiles Sametime Plug-in","label.vcard.help.alt":"Character encoding help","label.editprofile.heading":"Update information that you want to change in your profile.","label.editprofile.action.toolbar":"Action Toolbar","label.search.profiles.tagsandrelatedinfo":"Tags and related information:","America/Buenos_Aires":"(GMT-03:00) Buenos Aires, Georgetown","HONORS":"Honors and Awards","search.dropdown.organizations":"Organizations","follow_selectForRemoval":"Select the contacts from the list below that you want to stop following.","label.editprofile.photoandpronunciatio.heading":"Photo and Pronunciation","friendsNewInv":"{0} new invitation","label.editprofile.update.warning":"If you leave this page, any changes will be lost.","label.about.profiles.javacompatible":"Java compatible","Pacific/Tongatapu":"(GMT+13:00) Nuku\'alofa","profiles.metric.colleage.count.user":"Number of users with at least one colleague","errors.creditcard":"{0} is not a valid credit card number.","multiWidget":"Profile Information","label.searchresults.community.tablabel":"Communities","label.searchresults.nextlink.alt":"Go to next page of search results","label.searchresults.searchby.organizationTitle":"Organization or Company:","Asia/Kuwait":"(GMT+03:00) Kuwait, Riyadh","personCardRemoveFromNetwork":"Remove From Network","label.statusUpdates.uploadImage":"Upload an Image","commonTagDiscover":"Discover experts in your organization by browsing the tags in your enterprise","socialTagsViewAs":"View as {0} ","tablePagingPageLinkAlt":"Go to page {0} of items","label.personcard.fileslink.title":"Click here to see this person&#146;s shared files.","Africa/Windhoek":"(GMT+02:00) Windhoek","label.profile.im":"IM:","label.welcome.tip":"Tip: Click {0} to see help on a specific feature or click Help to view all help topics.","preference.email.comment.after.my.message":"Send me email when someone comments after me on a board posting","multiFeedReaderCollapseWidget":"Click to collapse the recent posts section","friendsYouExceedTextLimit":"Your invite message is too long. It can be a maximum of {1} characters. There are {0} characters in this field.","label.searchresults.searchby.blogUrl":"Blog URL:","information_confirmation_alt":"Confirmation","dw.label.expertise.ibm_power_systems":"IBM Power Systems","linkRollNoLinks":"There are no links yet for this profile.","label.statusUpdates.removeFile":"Remove attachment","label.editprofile.profiletags.help.body":"Tags are keywords that you assign to indicate your interest in a particular topic. Each tag should be a single word but can have dashes or underscore characters. When you enter multiple tags, separate them with spaces or commas. Example tags: human_resources, financial_controls, emerging_technology","label.search.profiles.profilesearch.adv.help":"To find a profile, enter the information below for the person you would like to find and click the search button.","label.page.advancedsearch.description":"To find a profile, enter the information below for the person you would like to find and click the search button. ","label.error.backtoprofileslink":"Go Back to Profiles","label.editprofile.close":"Save and Close","label.metrics.title":"Profiles Metrics","Europe/Minsk":"(GMT+02:00) Minsk","commonTagsActiveTags":"Active Tags","Australia/Perth":"(GMT+08:00) Perth","Asia/Krasnoyarsk":"(GMT+07:00) Krasnoyars","label.searchresults.searchby.profileTags":"Profile Tags:","label.mynetwork.welcome.msg4":"Remove people from your network. People you remove are not notified. ","label.mynetwork.welcome.msg3":"Start following a network contact if you want the person\'s latest updates to be displayed in your Updates view in the Home page.","label.personcard.wikislink":"Wikis","commonTagsSearchTags":"Search for profiles containing this tag","label.mynetwork.welcome.msg2":"Learn about different ways to {0}add people to your network{1}.","label.mynetwork.welcome.msg1":"Quickly access the profile of a network contact by clicking the person\'s name.","tablePagingNext":"Next","Atlantic/South_Georgia":"(GMT-02:00) Mid-Atlantic","errors.personalEmail":"The alternate email address you entered is not valid.","errors.footer":"\x3c/div\x3e","attachment.resume.download":"Download r\xe9sum\xe9 for {0}","label.mynetwork.welcome.body":"Use this page to view the people in your network and the people you are following. Find out who is following you. Keep track of your network invitations and view your latest colleague recommendations. Reach out to people and connect with them. Click \"Invite to My Network\" in any profile to invite someone to join your network.","errors.maxfilesize":"{0} includes a file that is too large.","errors.short":"{0} must be a short.","friendsInvite":"Invite to My Network","label.directory.welcome.title.authed":"Looking For an Expert?","label_profile_otherviews_samemanager":"Same Manager","friendsSortByDisplayName":"Display Name","profiles.metric.authenticated.today.desc":"Number of employees logged into the Profiles service in the last day","label.banner.about":"About","label.searchresults.community.heading":"Community search results for {0}","personCardAddContactRecord":"Add Contact Record","label.profiles.search.directory":"Type a name to search","label.editprofile.background.tab.label":"Background","label.login.profiles.username":"User name:","filesResourceId":"Files","Asia/Katmandu":"(GMT+05:45) Kathmandu","friendsCannotAddYourself":"You cannot add yourself as a network contact.","personCardInviteToMeetingRoom":"Invite To My Meeting Room","Etc/GMT+12":"(GMT-12:00) International Date Line West","label.searchresults.searchby.givenName":"Given Name:","label.editprofile.update.successful":"Profile data updated successfully.","label.editprofile.photo.delay":"Updates to your photo may take a few minutes to show.","multiFeedReaderPostedBy":"posted by:","friendsColleaguesInvite":"Invite {0} to be your network contact","America/Chicago":"(GMT-06:00) Central Time (US & Canada)","friendsInvitedEmailSubject":"[Profiles] You are invited to join my network","America/La_Paz":"(GMT-04:00) Caracas, La Paz","profiles.metric.board.total.count.desc":"Number of board posts","label.error.showfullerrormessagelink":"Show full error message","multiFeedReader":"Recent Posts","label.search.profiles.body":"Use your company directory to search for profiles and organizational information. {0} and select {1} to start building your social network and connecting with people. Let your colleagues know what you are doing by sharing status updates from the {2} tab. ","AT":"at","label.statusUpdates.tabLabel":"Status Update","label.personcard.quickrlink":"Quickr","wikiResourceId":"Wiki","friendsRecentlyAdded":"People you have recently added to your network.","Africa/Cairo":"(GMT+02:00) Cairo","label.editprofile.jobinformation.secretaryUid":"Assistant number:","search.dropdown.bykeyword":"Profiles by Keyword","label.header.searchby.company.description":"Search by organization","follow_noFollowerContacts":"No follower contacts are associated with this profile","label.searchresults.itemsperpage.alt":"Show {0} items per page","profiles.metric.authenticated.last.7.days":"Number of employees logged in the last week","label.search.profiles.help.line2":"Choosing multiple options limits search results to profiles that match all criteria.","SHOW_HONORS":"Honors and Awards","label.search.profiles.help.line1":"Choose one or more of the options and then click \"Search\".","America/Tijuana":"(GMT-08:00) Tijuana, Baja California","activityStream":"Activity Stream","multiFeedReaderLoading":"Loading feed...","socialTagsLoading":"Loading profile tags...","SHOW_RECOMMEND":"Number of Recommendations","tablePagingPage":"Page","label.header.search":"Search","friendsAltEmail":"Alternate Email:","socialTagsHeading":"Profile Tags","linkRollLoading":"Loading links...","structTagsSelect":"Select a tag","friendsAllreadyInvited":"\"Invitation already sent\"","label.search.profiles.city":"City","label.editprofile.update":"Save","label.statusUpdates.shareImage":"Share an Image","friendsInvitationDoesNotExistAnyMore":"The invitation from {0} no longer exists.","label.search.profiles.profilesearch.bycontactinfo.button.hint":"Search using contact info","NOT_VISIBLE":"This user is not displaying their LinkedIn profile.","friendsNetworkInCommon":"You have {0} network connections in common.","label.jobInformation.company":"Company","preference.board.show.network":"Allow only users in my network to see my board","label.header.contacts":"Contacts","label.about.profiles.demo.transcriptlink":"Click here to read a text transcript of this tutorial.","hideWidget":"Hide Widget","label.searchresults.searchby.nativeLastName":"Native Family Name:","multiFeedReaderExpandWidget":"Click to expand the recent posts section","Australia/Darwin":"(GMT+09:30) Darwin","friendsRemovedSelected":"Remove from My Network","America/Anchorage":"(GMT-09:00) Alaska","label.metrics.dataErrMsg":"Data Error ","America/Lima":"(GMT-05:00) Bogota, Lima, Quito","socialTagsRemoveTagsAltText":"Remove tag from this profile","follow_tableheading_photo":"Photo","error.enforce.role.undefined":"CLFRN1173E: The init parameter \'enforce.role\' must be defined for this servlet filter.","label.header.searchprofiles":"Profiles Home","label.editprofile.update.unknownErr":"There was an error updating the profile data.","errors.float":"{0} must be a float.","personCardInvitedContact":"{0} has been invited to your network contact list.","label.editprofile.photo.loading":"Loading preview, please wait...","SAVE":"Save","label.statusUpdates.recommendCaptionYou":"You and {0} people recommended this.","label.editprofile.rte.charsOverLimit":"{0} characters over the limit of {0}","friendsSelectFriendForRemoval":"Select the contacts from the list below that you want to remove.","label.network.welcome.body.following":"View a list of the people who the profile owner is following.","preference.board.disable":"Disable the board","label.editprofile.photo.heading":"Photo","tablePagingPreviousAlt":"Go to the previous page of items","label.about.profiles.ibmlogo":"IBM logo","Asia/Calcutta":"(GMT+05:30) Chennai, Kolkata, Mumbai, New Delhi","label.searchresults.people.notesId":"Notes ID:","ok":"OK","label.search.profiles.internetemail":"Email address","label.tools.stplugin.install.heading":"Installing the plug-in","INTERESTS":"Interests","label.profile.vcardlink":"Download vcard information for this person","profiles.metric.board.total.count":"Number of board posts","label.myprofile.view.welcome.title":"Reasons to Update Your Profile","label.searchresults.searchby.city":"City:","label.statusUpdates.captionTextBox":"Include a status update...","friendsTelephone":"Telephone:","label.searchresults.searchby.keyword":"Keyword:","label.feature.access.warning":"You have limited access to this profile.","label.footer":"Footer","filesByUserResourceId":"{0}\'s files","label.phone.home":"Home:","Asia/Irkutsk":"(GMT+08:00) Irkutsk, Ulaan Bataar","personCardShareFile":"Share a File","label.jobInformation.companyTitle":"Company:","dw.label.search.champions.only":"Search only IBM Champion profiles","friendsIncludeMsgForInv":"Include a message with your invitation:","error.atomUnauthorized":"CLFRN1174E: You are not authorized to perform that action.","friendsPleaseLogIn":"Please log in to invite people to your network","friendsAddToMyNetwork":"I\'d like to add you to my developerWorks Community network.","label.search.profiles.company":"Organization or company","contactInfoLoading":"Loading contact information...","information_warning_close_alt":"Close warning alert","label.searchresults.previouslink.alt":"Go to previous page of search results","label.searchresults.searchby.telephoneNumber":"Phone Number:","label.profile.description.inlineedit":"Is this description up to date? You can change this as frequently as you want!","label.searchresults.previouslink":"Previous","label.search.profiles.profilesearch.simple.help":"To find a profile, enter the name or keyword of the person you would like to find and click the search button.","label.personcard.mobilelink.title":"Click here to see this person&#146;s mobile page.","Europe/Amsterdam":"(GMT+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna","follow_telephone":"Telephone:","America/Montevideo":"(GMT-03:00) Montevideo","commonTagRelatedString":"Click a related tag to further refine this search","label.feature.photo.disabled":"The photo feature is not enabled.","personCardAddAsMyColleagues":"Invite to My Network","label.header.dropdown.title":"Refine search options","label.page.profiles":"Profiles","label.profile.link":"link","friendsLoading":"Loading Network...","label.stats.value":"Value","information_confirmation_close_alt":"Close confirmation alert","commonTagsNoTags":"No Tags","socialTagsHelpHeading":"Tags","label.searchresults.searchby.countryCode":"Country Code:","label.search.profiles.profilesearch.adv.findbyname":"Name:","errors.byte":"{0} must be a byte.","label.reportchain.welcome.body.manager":"View a list of the people who share the same manager as the profile owner.","commonTagFindByTag":"Find Tags","Asia/Tokyo":"(GMT+09:00) Osaka, Sapporo, Tokyo","label.userNotFound.title":"Profile Not Available","friendsAlreadyAccepted":"You have already accepted this invitation.","error.atomNoParameters":"CLFRN1122E: No parameters were specified.","label.reportchain.welcome.body.managed":"View a list of the people managed by the profile owner.","label.searchresults.searchby.isManager":"Is Manager:","profiles.metric.links.count":"Number of users with links","profiles.metric.tag.top.5":"5 most popular tags and count","feed_forUpdates":"Feed for these updates","Europe/Helsinki":"(GMT+02:00) Helsinki, Kyiv, Riga, Sofia, Tallinn, Vilnius","label.search.profiles.close":"Close","EDIT":"Edit","label.editprofile.jobinformation.secretaryEmail":"Assistant email:","profiles.metric.tag.total.count":"Number of tags","Asia/Taipei":"(GMT+08:00) Taipei","label.login.profiles.intro.header":"What can you do with Profiles?","label.vcard.help.close":"Close character encoding help","linkRollCollapseWidget":"Click to collapse the links section","label.statusUpdates.confirmDelete":"Would you like to delete the attachment from your Files repository as well?","profiles.metric.picture.count.desc":"Number of employees in the profiles database who have supplied a picture","label.statusUpdates.recommend":"Recommend","hide":"Hide","label.personcard.forumlink":"Forums","label.feature.tag.others.disabled":"The feature to tag others is not enabled.","tablePagingSortByDisplayName":"Display name","label.search.profiles.profilesearch.adv.findbykeyword":"Keyword:","label.profile.otherviews.show":"Show:","label.search.profiles.profilesearch.bykeyword.button":"Keyword Search ","label.editprofile.contactInformation.help.body":"Update your contact information. Fields that are not editable are populated with values from your organization Directory. If a predefined value is inaccurate, contact your system administrator. You cannot update the value yourself.","friends":"Network","preference.board.write.public":"Allow all users to comment or write on my board","hideWidgetMsg":"You are about to hide your widget.\x3cbr/\x3e\x3cbr/\x3eYou can re-activate it at a later point simply by re-adding the widget to your Community. All of the Widget content will be kept intact.","label.editprofile.photo.info":"Upload a business-appropriate photo to enhance your profile.\x3cbr/\x3eThe photo must be in JPEG, GIF, or PNG format and optimally 500x500 pixels in size.\x3cbr/\x3eLarger images will take longer to upload and lose definition when they are resized.","profiles.metric.tag.unique.count.desc":"Number of unique tags in the profiles database","friendsIsYourColleague":"{0} is your network contact","linkRollSave":"Save","friendsMenuTitleMyContacts":"My Network Contacts","linkRollLink":"*Link:","label.tools.stplugin.cardimg.collapsed.caption":"profiles business card","Australia/Adelaide":"(GMT+09:30) Adelaide","tablePagingCurrentlySortedByLastNameDesc":"Items currently sorted by family name","label.feature.not.enabled":"The feature {0} is not enabled for profile type {1}.","personCardAcceptInv":"Accept Invitation","label.login.profiles.password":"Password:","label.header.searchby.company":"Organization","label.mynetwork.welcome.title":"Stay Tuned to Your Network","label.statusUpdates.goToFile":"Go to File","follow_tableheading_contactinfo":"Contact information","label.profile.description.inlineedit.cancel":"Cancel","label.personcard.profilelink":"Profile","label.feature.board.comment.not.allowed":"You cannot comment on the messages on the board for this user.","errorDefaultMsg":"Unable to display widget data.","label.search.profiles.profilesearch.adv.showfull":"Display full search options","errors.general":"\x3cb\x3e A system error has occurred. \x3c/b\x3e \x3cbr /\x3e {0} \x3cdiv class=\"indent20\"\x3e {1} \x3c/div\x3e {2} \x3cdiv class=\"indent20\"\x3e {3} \x3c/div\x3e","label.bizcard.applinks.less":"Show less","label.personcard.cardnomarkup":"The business card could not be retrieved","label.statusUpdates.previewNotAvailable":"Image preview not yet available.","errorDefaultMsg3":"Click here to show more details.","label.search.profiles.tips":"Tips","errorDefaultMsg2":"An error has occurred, contact your system administrator.","tablePagingSortByLastName":"Family name","label.searchresults.searchby.description":"About Me:","friendsSendInvAction":"Send Invitation","label.searchresults.searchby.jobResp":"Job Title:","TEST":"It\'s a test","label.page.profiles.network":"Network for {0} - Profiles","label.header.searchby.email.description":"Search by email","label.searchresults.photo.altText":"Profile photo","refresh":"Refresh","label_following_login":"Please log in to follow the user","filesMineResourceId":"My files","label.statusUpdates.altAttachment":"File attachment","search.dropdown.advancedsearch":"Directory Search","label_following_user_list_followed":"Users you are followed","label.statusUpdates.downloadImage":"Download Image","label.about.profiles.copyright":"Licensed Materials - Property of IBM, 5724-S68 &#169; Copyright IBM Corporation 2007, 2012. All Rights Reserved. IBM, the IBM logo, ibm.com and Lotus are trademarks of IBM Corporation in the United States, other countries, or both. Java and all Java-based trademarks are trademarks of Sun Microsystems, Inc. in the United States, other countries, or both. Other company, product, or service names may be trademarks or service marks of others.  A current list of IBM trademarks is available on the Web at www.ibm.com/legal/copytrade.shtml.  U.S. Government Users Restricted Rights:  Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.  This Program is licensed under the terms of the license agreement accompanying the Program.  This license agreement may be either located in a Program directory folder or library identified as \"License\" or \"Non IBM License\", if applicable, or provided as a printed license agreement. Please read this agreement carefully before using the Program. By using the Program, you agree to these terms.","label.editprofile.photo.tab.label":"Photo","friendsDate":"Date","tablePagingInfoAlt":"Showing items {0} through {1} of {2}","ERROR_DATABASE":"Cannot find preferences","linkRollNameOrLinkCannotBeEmpty":"*Name or *Link can not be empty.","label.search.profiles.help.heading":"New to Profiles?","label.statusUpdates.errorUpload":"An error occurred while uploading the attachment.","Africa/Harare":"(GMT+02:00) Harare, Pretoria","label.about.profiles.findoutmore":"Find out more","label.network.welcome.title":"Find Out Who Is Connected To Who","label.header.searchby.profiletags":"Profile Tags","socialTagsYouTagged":"My tags for this profile:","multiFeedReaderNoFeeds":"There are no items to display","profiles.metric.authenticated.today":"Number of employees logged in today","label.searchresults.searchby.calendarUrl":"Calendar URL:","friendsColleaguesFor":"Network Contacts for {0}","America/Phoenix":"(GMT-07:00) Arizona","label.banner.loginlink":"Log In","error.sessionTimeout":"CLFRN1198E: Your session timed out or a server error occurred. Please resubmit your changes.","label.search.profiles.profilesearch.simple.heading":"Search Profiles","dogearResourceId":"Bookmarks","socialTagsAddedBy":"Tag added by {0}","label_following_unfollow":"Stop Following","friendsRemoveSelectedTip":"Click to remove the selected people from your network.","profiles.metric.pronunciation.count.desc":"Number of employees in the profiles database who have supplied a pronunciation guide","commonTags":"Organization Tags","friendsNewInvs":"{0} new invitations","label.search.profiles.tip2":"","label.search.profiles.tip1":"You can use the search field at the top of the page for quick searches. Use the form at the bottom of the page for more advanced searches.","personCardSendEMail":"Send Email","Europe/London":"(GMT) Greenwich Mean Time : Dublin, Edinburgh, Lisbon, London","personCardDownloadVCard":"Download vCard","label.following.follows":"Follows","label_following_not_enabled":"Following feature is not enabled","LINKEDIN":"LinkedIn","label_following_follow":"Follow","profiles.metric.tag.top.5.desc":"Top 5 most popular tags and count in the profiles database","backgroundInfo":"Background","friendsIgnoreAction":"Ignore","label.reportingstructure.heading":"Reporting Structure for {0}","tablePagingShow":"Show:","label.following.followyou":"Contacts following","friendsInvitedEmailMsg5":"{0} has invited you to become a network contact with the following message included in the invitation:","friendsInvitedEmailMsg4":"{0} has invited you to become a network contact:","friendsInvitedEmailMsg3":"I\'d like to add you to my network.","label.searchresults.people.tablabel":"People","friendsInvitedEmailMsg2":"Open your Network Invitation page","friendsInvitedEmailMsg1":"has invited you to become a network contact with the following message included in the invitation:","label.header.searchby.community":"Community","label.stats.name":"Name","dw.label.expertise.all":"All expertise","tablePagingLabel":"Paging controls.","follow_sortByRecent":"Recent","information_information_alt":"Information","profiles.metric.employee.count.desc":"Number of employees in the profiles database","label.search.profiles.profilesearch.simple.findbyname":"Find by Name","label.searchresults.searchby.preferredFirstName":"Given Name:","friends_tableheading_photo":"Photo","label.page.typeaheadsearch.heading":"Search the Directory ","errors.maxlength":"{0} cannot be greater than {1} characters.","label.profile.description.inlineedit.save":"Save","Pacific/Honolulu":"(GMT-10:00) Hawaii","follow_altEmail":"Alternate Email:","search.dropdown.directory":"Directory","label.header.searchby.jobtitle.description":"Search by job title","label.profile.description.inlineedit.link":"Edit","WEBSITES":"Websites","sharepointResourceId":"SharePoint","label.searchresults.results":"{0} results found.","label.editprofile.pronunciation.tab.label":"Pronunciation","label.search.profiles.helplink":"Learn about how to use profiles.","label.bizcard.dismiss":"Press escape to dismiss this business card.","commonTagsHelpBody":"You can search profiles using tags. You can further filter the results view by entering another tag name or clicking another tag in the tag cloud.","label.page.profiles.directory":"Directory - Profiles","label.tools.stplugin.install.body3":"For Sametime 7.5 users, follow these steps to install this plug-in: \x3cbr /\x3e Locate this option in the Sametime system tray icon: Manage Updates -\x3e Download Plug-ins. \x3cbr /\x3e Then choose: Search for new features to install. \x3cbr /\x3e Add a new remote site named \"Profiles Plug-ins\" using this URL: {0}. \x3cbr /\x3e Select the new site and click \"Finish\". \x3cbr /\x3e Select \"Profiles Plug-ins\" and click \"Next\". \x3cbr /\x3e Follow the instructions until completed.","label.searchresults.searchby.ipTelephoneNumber":"IP Telephone Number:","label.editprofile.contactinformation.preferredFirstName":"Preferred given name:","label.tools.stplugin.install.body2":"Or follow these steps: \x3cbr /\x3e Locate this option in the Sametime Connect Menu bar: Tools \x3e Install Plug-ins. \x3cbr /\x3e Then choose: \"Search for new features to install\". \x3cbr /\x3e Add a new remote site using this URL \x3e {0}. \x3cbr /\x3e Follow the instructions in the wizard. \x3cbr /\x3e","label.tools.stplugin.install.body1":"For Sametime 7.5.1 users, click the button below to install this plug-in:","label.search.profiles.profilesearch.bycontactinfo.help":"Use some or all of the fields in this section, then click the search button.","friendsEmail":"Email:","Asia/Beirut":"(GMT+02:00) Beirut","label.tools.stplugin.cardimg.expanded.caption":"profiles business card expanded","label.profile.heading":"Profile for {0}","socialTagsHelpBody":"Discover a person\'s interests and expertise by viewing their tags. Tags are keywords that you can type into your profile to indicate your interest in a particular topic. Click a tag to see other people with the same tag.","profiles.metric.board.count.today":"Number of new board posts today","structTagsLoading":"Loading structure tags...","Asia/Yerevan":"(GMT+04:00) Yerevan","socialTagsPerson":"person","label.about.profiles.demolink":"Watch a Demo","profiles.metric.picture.count":"Number of employees with a picture supplied","label.editprofile.contactInformation.heading":"Contact Information","errors.retrieve":"\x3cb\x3e A system error occurred while retrieving a profile. \x3c/b\x3e \x3cbr /\x3e {0} \x3cdiv class=\"indent20\"\x3e {1} \x3c/div\x3e {2} \x3cdiv class=\"indent20\"\x3e {3} \x3c/div\x3e","label.editprofile.title":"Edit Profile Information For {0}","label.page.profiles.myprofile":"My Profile","label.personcard.wikislink.title":"Click here to see this person&#146;s wikis.","tableBottomPagingLabel":"Bottom Paging controls","label.searchresults.searchby.displayName":"Display Name:","label.following.youfollow":"Contacts followed","attachment.resume.search.label":"R\xe9sum\xe9 contains these keywords","socialTagsAddTags":"Add","label.following.following":"Following","profiles.metric.authenticated.last.7.days.desc":"Number of employees logged into the Profiles service in the last week","label.searchresults.directory.heading":"Directory Search Results","label.statusUpdates.openImage":"Open Image","structTagsExpandWidget":"Click to expand the structured tags section","label.vcard.encoding.utf8":"Internationalized (UTF-8)","label.page.typeaheadearch.description":"To find a profile, start typing the name of the person you would like to find and the results will display automatically. ","label.navigation.overview.heading":"Overview","errors.required":"Please complete the {0} field.","label.about.profiles.moreinfo":"Find Out More","friendsActionsFor":"Actions for Network","label.statusUpdates.errorCreatingThumbnail":"An error occurred while creating the image thumbnail.","activityStreamLoading":"Loading Activity Stream...","label.stats.title":"Server Statistics (since last server restart)","label.searchresults.searchby.secretaryName":"Secretary Name:","label.welcome.demoLink":"View Demo","errors.header":"\x3cdiv id=\"validationErrorMessage\" class=\"lotusMessage\"\x3e","profiles.metric.tag.profile.count.desc":"Number of profiles with tags in the profiles database","label.page.profiles.editprofile":"Edit Profile for {0}","linkRollInfoText":"Extend your profile by adding your favorite social networking links.","personCardViewContactRecord":"View Contact Record","label.personcard.communitieslink":"Communities","label_following_user_followed":"{0} has been added to your following list","tablePagingSortBy":"Sort by:","errors.dupeDisplayName":"This display name is taken.","error.atomUnsupportedOperation":"CLFRN1175E: This operation is not supported.","label.page.profiles.about.demomovie":"Getting Started: Profiles","label.editprofile.photo.removeimage":"Remove Image","socialTags":"Tags","linkRollExpandWidget":"Click to expand the links section","friendsInCommonMulti":"You have {0} network contacts in common","profiles.metric.tag.total.count.desc":"Total number of tags in the profiles database","personCardInNetwork":"Network Contact","label.navigation.reporting_structure.heading":"Reporting Structure","label.about.editprofile.heading":"Get the word out about what you can do.","PAST":"Past Job Experience","errors.date":"{0} is not a date.","CURRENT":"Current Job Experience","label.editprofile.photo.editPhoto":"Edit profile photo","friendsInviteFollowError":"An error occurred while attempting to follow {0}","Asia/Kabul":"(GMT+04:30) Kabul","follow_removedSelected":"Stop Following","label.about.pageheading":"About Profiles","Asia/Vladivostok":"(GMT+10:00) Vladivostok","label.search.profiles.state":"State","label.editprofile.jobinformation.secretaryName":"Assistant:","label.searchresults.searchby.phoneNumber":"Phone Number:","personCardRemoveFromContacts":"Remove From Contacts","socialTagsNoTags":"There are no tags yet for this profile. ","label_following_user_list_following":"Users you are following","label.directory.welcome.body.authed":"Use this page to find the people and expertise you need. Perform a quick search by entering a name in the field provided. Click a tag in the tag cloud to display a list of people with that tag. Click \"Display full search options\" to access additional search fields and perform a more targeted search.","errors.range":"{0} is not in the range {1} through {2}.","friends_tableheading_employeeinfo":"Name &amp; employee information","label.search.profiles.stdname":"Name (First Last)","label.editprofile.tab.toolbar":"Edit Profile - Sections","tablePagingOf":"of {0}","profiles.metric.colleage.count.user.desc":"Number of users with at least one colleague","label.editprofile.pronunciation.info":"Upload an audio file of your name. The file should be less than 100 KB in size.","America/Guatemala":"(GMT-06:00) Central America","errors.illegalcharacters":"Invalid characters : &#92; &#60; &#62; &#40; &#41; &#37; in the {0} field.","SHOW_WEBSITES":"Websites","label.statusUpdates.uploadFile":"Upload a File","information_error_close_alt":"Close error alert","Australia/Sydney":"(GMT+10:00) Canberra, Melbourne, Sydney","userActivationTitle":"Open the profile of {0}.","label_profile_otherviews_reportingstructure":"Full Report-to Chain","commonTagsRelatedTags":"Related Tags","reportStructureLoading":"Loading reporting structure...","label.searchresults.searchby.community":"Community:","label.header.searchby.email":"Email","socialTagsHelpMoreinfo":"Find out more about tags.","Pacific/Fiji":"(GMT+12:00) Fiji, Kamchatka, Marshall Is.","label.reportchain.welcome.body":"View a list of the people in the profile owner\'s report-to chain. The names are listed in order of seniority from the profile owner upwards.","label.editprofile.update.unsaved":"Profile changed.  Click the Save button to save your changes.","label.personcard.mobilelink":"Mobile","label.search.profiles.profilesearch.simple.findbykeyword":"Find by Keyword","personCardShareFileError":"An error has occurred while sharing the file \"{0}\" with {1}.","socialTagsTaggedBy":"Tagged by {0}","errorType":"Type: ","EDUCATION":"Education","personCardAddedContact":"{0} has been added to your network contact list.","errors.aboutMe":"The description you entered in the About Me section is too long.","ERROR_LINKEDINConnect":"Unable to connect to LinkedIn","Asia/Amman":"(GMT+02:00) Amman"};

;if(!dojo._hasResource["lconn.profiles.SearchBar"]){
dojo._hasResource["lconn.profiles.SearchBar"]=true;
dojo.provide("lconn.profiles.SearchBar");


dojo.requireLocalization("lconn.profiles","ui");
dojo.declare("lconn.profiles.SearchBar",[lconn.core.SearchBar],{thirdPartySearchEngines:[],globalOptions:[{}],strings:{},"class":"lotusAlignLeft",showIcons:true,_isLoading:false,allowForceFocus:true,_forceFocusParam:"forceSearchBarFocus",_baseOption:{label:"",scope:"",action:"",method:"GET",immediateAction:false,valueSearchParam:"searchFor",searchParams:{"searchBy":"name","searchFor":""},defaultOption:false,"class":"lotusAlignLeft",iconClass:"baseIcon lconnSprite lconnSprite-iconProfiles16"},selectOption:function(_1,_2){
this.inherited(arguments);
if(!this._isLoading&&_1&&_1.immediateAction){
window.location.href=_1.action;
}
return true;
},showDefaultOption:function(){
if(!this.showIcons){
for(var i=0;i<this.globalOptions.length;i++){
this.globalOptions[i].iconClass=" ";
}
}
this.inherited(arguments);
},postMixInProperties:function(){
this._isLoading=true;
this.thirdPartySearchEngines=window.lconn_core_thirdPartySearchEngines||[],this.inherited(arguments);
var _3=dojo.i18n.getLocalization("lconn.profiles","ui");
if(typeof _3!=="undefined"){
this.strings=dojo.mixin(_3,this.strings);
}else{
this.strings=dojo.mixin(generalrs||{},this.strings);
}
var _4=(window.location.href+"?").split("?")[0];
var _5=-1;
var _6=0;
for(var i=0;i<this.localOptions.length;i++){
this.localOptions[i]=dojo.mixin(dojo.clone(this._baseOption),this.localOptions[i]);
if(!this.showIcons){
this.localOptions[i].iconClass=" ";
}
var _7=(this.localOptions[i].action+"?").split("?")[0];
if(this.allowForceFocus&&this.localOptions[i].immediateAction){
var _8=dojo.queryToObject((this.localOptions[i].action+"?").split("?")[1]);
if(!_8[this._forceFocusParam]){
_8[this._forceFocusParam]=this.id;
this.localOptions[i].action=_7+"?"+dojo.objectToQuery(_8);
}
}
if(_5==-1&&_4.indexOf(_7)>-1){
_5=i;
}
if(this.localOptions[i].defaultOption==true){
_6=i;
}
}
this.localOptions[((_5==-1)?_6:_5)].defaultOption=true;
if(!this.showIcons){
for(x in this.featureIcons){
if(this.featureIcons[x]){
this.featureIcons[x]=" ";
}
}
}
},postCreate:function(){
this.inherited(arguments);
for(var i=0;i<this.localOptions.length;i++){
if(this.localOptions[i]&&this.localOptions[i].defaultOption){
var _9=window.location.search;
var _a=dojo.queryToObject((_9.indexOf("?")==0)?_9.substring(1):_9);
if(_a[this.localOptions[i].valueSearchParam]){
this.setValue(_a[this.localOptions[i].valueSearchParam]);
}
}
}
setTimeout(dojo.hitch(this,function(){
if(this.allowForceFocus){
var _b=window.location.search;
var _c=dojo.queryToObject((_b.indexOf("?")==0)?_b.substring(1):_b);
if(_c[this._forceFocusParam]==this.id){
if(this.textBox&&typeof this.textBox.focus=="function"){
this.textBox.focus();
}else{
this.scopeNode.focus();
}
}
}
if(dojo.attr(this.domNode,"role")=="search"){
dojo.attr(this.domNode,"aria-label",this.strings["label.search.profiles.profilesearch.simple.heading"]);
}
}),0);
this._isLoading=false;
},onSubmit:function(){
var _d=dojo.string.trim(this.getValue());
if(this._isLoading||!_d){
return false;
}
var _e=this.selectedOption;
if(_e.feature){
return true;
}else{
if(_e.searchParams&&_e.valueSearchParam){
var _f=dojo.clone(_e.searchParams);
_f[_e.valueSearchParam]=_d;
var _10=_e.action;
_10=_10.replace("searchProfiles.do","simpleSearch.do");
if(_e.method.toLowerCase()=="post"){
if(this._formToSubmit){
this._formToSubmit.parentNode.removeChild(this._formToSubmit);
this._formToSubmit=null;
}
this._formToSubmit=dojo.create("form",{"action":_10,"method":"post","class":"lotusHidden"});
for(x in _f){
if(_f[x]){
dojo.create("input",{"type":"hidden","name":x,"value":_f[x]},this._formToSubmit,"last");
}
}
dojo.place(this._formToSubmit,this.domNode,"last");
this._formToSubmit.submit();
}else{
window.location.href=_10+((_10.indexOf("?")==-1)?"?":"&")+dojo.objectToQuery(_f);
}
}else{
var _11=encodeURIComponent(_d);
switch(_e.scope){
case "extkeyword":
var _10=_e.action+_11;
window.location.replace(_10);
break;
default:
return true;
break;
}
}
}
return false;
}});
}


;if(!dojo._hasResource["com.ibm.mm.enabler.aggregation.javascript"]){
dojo._hasResource["com.ibm.mm.enabler.aggregation.javascript"]=true;
dojo.provide("com.ibm.mm.enabler.aggregation.javascript");
function com_ibm_enabler_aggregation_javascript_globalEvalNonIE(_1){
eval.call(self,_1);
};
dojo.declare("com.ibm.mm.enabler.aggregation.javascript.Filter",null,{doFilter:function(_2){
},evalGlobal:function(_3){
if(window.execScript){
window.execScript(this._stripHTMLComments(_3),"JavaScript");
}else{
com_ibm_enabler_aggregation_javascript_globalEvalNonIE(_3);
}
},_stripHTMLComments:function(_4){
com.ibm.mm.enabler.debug.entry("com.ibm.mm.enabler.aggregation.javascript.Filter._stripHTMLComments",_4);
var _5="";
var _6=_4.indexOf("<!--");
if(_6!=-1){
_5=_4.substring(0,_6);
}else{
_5=_4;
}
while(_6>=0){
var _7=_4.indexOf("-->");
if(_7<0){
throw new Error("Unclosed HTML comment found!!");
}
_5+=_4.substring(_7+3);
com.ibm.mm.enabler.debug.log("com.ibm.mm.enabler.aggregation.javascript.Filter._stripHTMLComments","result str = "+_5);
_6=_4.indexOf("<!--",_7+3);
}
com.ibm.mm.enabler.debug.exit("com.ibm.mm.enabler.aggregation.javascript.Filter._stripHTMLComments",_5);
return _5;
},prepareDocumentWrite:function(_8){
com.ibm.mm.enabler.debug.entry("com.ibm.mm.enabler.aggregation.javascript.Filter.prepareDocumentWrite");
var me=this;
document.write=function(){
me._documentWrite(_8,document.write.arguments);
};
document.writeln=function(_9){
me._documentWrite(_8,document.writeln.arguments);
};
com.ibm.mm.enabler.debug.exit("com.ibm.mm.enabler.aggregation.javascript.Filter.prepareDocumentWrite");
},_documentWrite:function(_a,_b){
for(var i=0;i<_b.length;i++){
_a.content+=_b[i];
}
},applyDocumentWrite:function(_c,_d){
com.ibm.mm.enabler.debug.entry("com.ibm.mm.enabler.aggregation.javascript.Filter.applyDocumentWrite",_c,_d.content);
var _e=_d.content;
var id=_c.getAttribute("id");
var _f=document.getElementById(id);
if(_e!=null&&_e.length>0){
var div=document.createElement("DIV");
div.innerHTML=_e;
var _10=div.childNodes;
if(_10!=null&&_10.length>0){
var _11=_f;
for(var i=0;i<_10.length;){
var _12=_10[_10.length-1];
dojo.dom.insertBefore(_12,_11);
_11=_12;
}
}
dojo.dom.destroyNode(div);
}
com.ibm.mm.enabler.debug.exit("com.ibm.mm.enabler.aggregation.javascript.Filter.applyDocumentWrite");
}});
dojo.declare("com.ibm.mm.enabler.aggregation.javascript.ExternalScriptFilter",com.ibm.mm.enabler.aggregation.javascript.Filter,{doFilter:function(_13){
var url=this._getScriptUrl(_13);
var _14=false;
if(url){
var _15=com.ibm.mm.enabler.services.CONFIG_SERVICE.getValue(com.ibm.mm.enabler.services.CONFIG_SERVICE.PROXY_URL);
if(_15!=null){
_15+="/";
url=this._rewriteURL(url,_15);
}
var _16={content:""};
this.prepareDocumentWrite(_16);
this._loadExternalScript(url);
this.applyDocumentWrite(_13,_16);
_14=true;
}
return _14;
},_getScriptUrl:function(_17){
var url=null;
if(_17.getAttribute){
url=_17.getAttribute("src");
}else{
var _18=_17.toLowerCase().indexOf("<script");
var end=_17.toLowerCase().indexOf(">");
var _19=_17.substring(_18,end);
var _1a=_19.toLowerCase().indexOf("src");
if(_1a!=-1){
var _1b=_19.indexOf("'",_1a);
var _1c=_19.indexOf("\"",_1a);
var _1d="\"";
var _1e=_1c;
if(_1c==-1||(_1b!=-1&&_1b<_1c)){
_1d="'";
_1e=_1b;
}
var _1f=_19.indexOf(_1d,_1e+1);
url=_19.substring(_1e+1,_1f);
}
}
return url;
},_loadExternalScript:function(url){
var me=this;
dojo.xhrGet({url:url,load:function(_20,_21){
com.ibm.mm.enabler.debug.log("com.ibm.mm.enabler.aggregation.javascript.Filter._loadExternalScript","Retrieved JS file: ",_20);
me.evalGlobal(_20);
},sync:true,handleAs:"text"});
},_rewriteURL:function(_22,_23){
var _24=_23;
var _25=window.location.host;
var _26=window.location.protocol;
if(_22.indexOf("://")<0||_22.indexOf(_26)==0&&_22.indexOf(_25)==_26.length+2){
return _22;
}
var _27=(new com.ibm.mm.enabler.iw.services.loadService)._getExtension(_22);
if(_27!==null&&_27==="css"){
return _22;
}
if(_22.indexOf("https")==0){
_24+="https/";
}else{
_24+="http/";
}
_24+=_22.substr(_22.indexOf("://")+3);
return _24;
}});
dojo.declare("com.ibm.mm.enabler.aggregation.javascript.InlineScriptFilter",com.ibm.mm.enabler.aggregation.javascript.Filter,{doFilter:function(_28){
var _29=false,_2a="";
if(!dojo.isString(_28)){
_2a=_28.innerHTML;
}else{
var _2b=_2c.indexOf(">");
var _2d=_2c.lastIndexOf("<");
var _2c=_28;
_2a=_2c.substring(_2b+1,_2d);
}
com.ibm.mm.enabler.debug.log("com.ibm.mm.enabler.aggregation.javascript.InlineScriptFilter.doFilter","Stripped HTML tags out: "+_2a,"processScriptArray");
if(_2a){
var _2e={content:""};
this.prepareDocumentWrite(_2e);
this.evalGlobal(_2a);
_29=true;
this.applyDocumentWrite(_28,_2e);
}
return _29;
}});
dojo.declare("com.ibm.mm.enabler.aggregation.javascript.FilterChain",null,{constructor:function(){
this._filters=new Array();
},addFilter:function(_2f){
if(!this._filters){
this._filters=new Array();
}
this._filters.push(_2f);
},applyFilters:function(_30){
var i=0;
var _31=false;
while(i<this._filters.length&&!_31){
_31=this._filters[i].doFilter(_30);
i=i+1;
}
return _31;
}});
dojo.declare("com.ibm.mm.enabler.aggregation.javascript.WidgetJavascriptHandler",null,{constructor:function(){
this.filterChain=new com.ibm.mm.enabler.aggregation.javascript.FilterChain();
},handle:function(_32){
com.ibm.mm.enabler.debug.entry("WidgetJavascriptHandler.handle",_32);
var val=this.filterChain.applyFilters(_32);
com.ibm.mm.enabler.debug.exit("WidgetJavascriptHandler.handle");
}});
com.ibm.mm.enabler.aggregation.javascript.JAVASCRIPT_HANDLER=new com.ibm.mm.enabler.aggregation.javascript.WidgetJavascriptHandler();
com.ibm.mm.enabler.aggregation.javascript.JAVASCRIPT_HANDLER.filterChain.addFilter(new com.ibm.mm.enabler.aggregation.javascript.ExternalScriptFilter());
com.ibm.mm.enabler.aggregation.javascript.JAVASCRIPT_HANDLER.filterChain.addFilter(new com.ibm.mm.enabler.aggregation.javascript.InlineScriptFilter());
}


;define("dojox/data/dom",["dojo/_base/kernel","dojo/_base/lang","dojox/xml/parser"],function(_1,_2,_3){
dojo.deprecated("dojox.data.dom","Use dojox.xml.parser instead.","2.0");
var _4=_2.getObject("dojox.data.dom",true);
_4.createDocument=function(_5,_6){
dojo.deprecated("dojox.data.dom.createDocument()","Use dojox.xml.parser.parse() instead.","2.0");
try{
return _3.parse(_5,_6);
}
catch(e){
return null;
}
};
_4.textContent=function(_7,_8){
dojo.deprecated("dojox.data.dom.textContent()","Use dojox.xml.parser.textContent() instead.","2.0");
if(arguments.length>1){
return _3.textContent(_7,_8);
}else{
return _3.textContent(_7);
}
};
_4.replaceChildren=function(_9,_a){
dojo.deprecated("dojox.data.dom.replaceChildren()","Use dojox.xml.parser.replaceChildren() instead.","2.0");
_3.replaceChildren(_9,_a);
};
_4.removeChildren=function(_b){
dojo.deprecated("dojox.data.dom.removeChildren()","Use dojox.xml.parser.removeChildren() instead.","2.0");
return dojox.xml.parser.removeChildren(_b);
};
_4.innerXML=function(_c){
dojo.deprecated("dojox.data.dom.innerXML()","Use dojox.xml.parser.innerXML() instead.","2.0");
return _3.innerXML(_c);
};
return _4;
});


;if(!dojo._hasResource["com.ibm.mm.enabler.utilities"]){
dojo._hasResource["com.ibm.mm.enabler.utilities"]=true;
dojo.provide("com.ibm.mm.enabler.utilities");
dojo.provide("com.ibm.mm.enabler.ArrayMap");


com.ibm.mm.enabler.utilities={rewriteURL:function(_1){
var _2=new com.ibm.mm.enabler.utilities.HttpUrl(_1);
return _2.toProxifiedString();
},inStringArray:function(_3,_4){
var rc=false;
for(var i in _4){
var _5=_4[i];
if(_5==_3){
rc=true;
break;
}
}
return rc;
},getLocale:function(_6,_7,_8){
if(typeof _6=="undefined"||_6===null){
return null;
}
var _9=_6.getLocales();
if(typeof _9=="undefined"||_9===null||!dojo.isArray(_9)){
return null;
}
if(_9.length===0){
return null;
}
var _a=null;
if(_9.length===1){
_a=_9[0];
}
var _b={};
for(var i in _9){
var _c=_9[i];
_b[_c]=_c;
}
if(_a===null){
if(typeof _7!="undefined"&&_7!==null){
_a=this.findMatchLocale(_b,_7);
if(_a===null){
var _d=_7.split(/-|_/);
if(_d.length==2){
var _e=_d[0];
if(typeof _b[_e]!="undefined"&&_b[_e]!==null){
_a=_e;
}
}
}
}
}
if(_a===null){
var _f=(dojo.isIE?navigator.userLanguage:navigator.language).toLowerCase();
if(typeof ibmConfig!="undefined"&&ibmConfig!=null&&typeof (ibmConfig.locale)!="undefined"&&ibmConfig.locale!=null){
_f=ibmConfig.locale;
}
if(_f!==null){
_a=this.findMatchLocale(_b,_f);
if(_a===null){
var _d=_f.split(/-|_/);
if(_d.length==2){
var _10=_d[0];
if(typeof _b[_10]!="undefined"&&_b[_10]!==null){
_a=_10;
}
}
}
}
}
if(_a===null){
if(typeof _8!="undefined"&&_8!=null){
_a=_8;
}
}
if(_a===null){
if(typeof _b["en"]!="undefined"&&_b["en"]!==null){
_a="en";
}
}
if(_a===null){
_a=_9[0];
}
return _a;
},findMatchLocale:function(arr,_11){
var _12=null;
if(typeof arr[_11]!="undefined"&&arr[_11]!=null){
_12=_11;
}
var _13=this.toServerLocale(_11);
if(_12===null&&(typeof arr[_13]!="undefined"&&arr[_13]!=null)){
_12=_13;
}
var _14=_13.toLowerCase();
if(_12===null&&(typeof arr[_14]!="undefined"&&arr[_14]!=null)){
_12=_14;
}
return _12;
},toServerLocale:function(_15){
if(typeof _15=="undefined"||_15==null){
return null;
}
if(_15.indexOf("-")<0){
return _15;
}
_15=_15.replace(/-/,"_");
var _16=_15.split("_");
var _17=_16[0];
var _18=_16[1].toUpperCase();
var _19=_17+"_"+_18;
return _19;
},encodeModelID4Uri:function(uri){
var pos=uri.indexOf(":");
if(pos!=-1){
var _1a=uri.slice(0,pos+1);
var end=uri.slice(pos+1);
uri=_1a+encodeURIComponent(end);
}
return encodeURIComponent(uri);
},preloadImage:function(_1b,_1c,_1d){
var _1e;
if(_1c&&_1d){
_1e=new Image(_1c,_1d);
}else{
_1e=new Image();
}
_1e.src=_1b;
return _1e;
}};
com.ibm.mm.enabler.dom={textContent:function(_1f,_20){
if(_1f==null){
return "";
}
if(arguments.length>1){
var doc=_1f.ownerDocument;
var _21=doc.createTextNode(_20);
this.replaceChildren(_1f,_21);
return;
}else{
if(_1f.textContent!="undefined"&&_1f.textContent!=null){
return _1f.textContent;
}
var _22="";
for(var i=0;i<_1f.childNodes.length;i++){
switch(_1f.childNodes[i].nodeType){
case 1:
case 3:
_22+=_1f.childNodes[i].nodeValue;
break;
case 2:
case 4:
_22+=_1f.childNodes[i].nodeValue;
break;
default:
break;
}
}
return _22;
}
},createElement:function(dom,_23,ns){
var _24;
if(dojo.isIE){
if(typeof ns!="undefined"&&ns!=null){
_24=dom.createNode(1,_23,ns);
}else{
_24=dom.createElement(_23);
}
}else{
_24=dom.createElementNS(ns,_23);
}
return _24;
},destroyNode:function(_25){
if(_25&&_25.parentNode){
return _25.parentNode.removeChild(_25);
}
if(_25.nodeType!=3){
if(dojo.isIE){
_25.outerHTML="";
}
}
},createDocument:function(str,_26){
return dojox.data.dom.createDocument(str,_26);
},replaceChildren:function(_27,_28){
return dojox.data.dom.replaceChildren(_27,_28);
},innerXML:function(_29){
return dojox.data.dom.innerXML(_29);
},removeChildren:function(_2a){
return dojox.data.dom.removeChildren(_2a);
},copyChildren:function(_2b,_2c,_2d){
var _2e=_2b.cloneNode(true);
return this.moveChildren(_2e,_2c,_2d);
},moveChildren:function(_2f,_30,_31){
var _32=0;
if(_31){
while(_2f.hasChildNodes()&&_2f.firstChild.nodeType==3){
_2f.removeChild(_2f.firstChild);
}
while(_2f.hasChildNodes()&&_2f.lastChild.nodeType==3){
_2f.removeChild(_2f.lastChild);
}
}
while(_2f.hasChildNodes()){
_30.appendChild(_2f.firstChild);
_32++;
}
return _32;
}};
dojo.declare("com.ibm.mm.enabler.utilities.HttpUrl",null,{constructor:function(_33){
this.scheme=this._extractScheme(_33);
this.server=this._extractServer(_33);
this.port=this._extractPort(_33);
this.path=this._extractPath(_33);
this.query=this._extractQuery(_33);
this.anchor=this._extractAnchor(_33);
},addParameter:function(_34,_35){
this.query+=((this.query!=null&&this.query!="")?"&":"")+_34+"="+_35;
},toProxifiedString:function(){
if(typeof ibmConfig=="undefined"){
return this.toString();
}
var _36=com.ibm.mm.enabler.services.CONFIG_SERVICE.getValue(com.ibm.mm.enabler.services.CONFIG_SERVICE.PROXY_URL);
if(_36==null){
return this.toString();
}
_36+="/";
if(window.location.protocol==this.scheme&&window.location.hostname==this.server){
if(window.location.port==this.port||this.port==""){
return this.toString();
}else{
if(this.scheme=="http:"&&window.location.port==""&&this.port=="80"){
return this.toString();
}else{
if(this.scheme=="https:"&&window.location.port==""&&this.port=="443"){
return this.toString();
}
}
}
}
var _37=(new com.ibm.mm.enabler.iw.services.loadService)._getExtension(this.toString());
if(_37!==null&&_37==="css"){
return this.toString();
}
if(this.scheme=="https:"){
_36+="https/"+this.server+((this.port!="443"&&this.port!="")?"%3A"+this.port:"");
}else{
_36+="http/"+this.server+((this.port!="80"&&this.port!="")?"%3A"+this.port:"");
}
if(this.path!=""){
_36+="/"+this.path;
}
if(this.query!=""){
_36+="?"+this.query;
}
if(this.anchor!=""){
_36+="#"+this.anchor;
}
return _36;
},toString:function(){
var str="";
if(this.server!=""){
str+=this.scheme+"//"+this.server;
if(this.port!=""){
if(this.scheme=="http:"&&this.port=="80"){
str+="";
}else{
if(this.scheme=="https:"&&this.port=="443"){
str+="";
}else{
str+=":"+this.port;
}
}
}
}
if(this.path!=""){
str+="/"+this.path;
}
if(this.query!=""){
str+="?"+this.query;
}
if(this.anchor!=""){
str+="#"+this.anchor;
}
return str;
},_extractScheme:function(_38){
var _39=_38.indexOf("://");
if(_39==-1){
return window.location.protocol;
}
return _38.substring(0,_39+1);
},_extractServer:function(_3a){
var _3b=_3a.indexOf(this.scheme);
var _3c="";
if(_3b==0){
var _3d=_3a.indexOf("/",_3b+this.scheme.length+2);
if(_3d!=-1){
var _3e=_3a.substring(_3b+this.scheme.length+2,_3d);
}else{
var _3e=_3a.substring(_3b+this.scheme.length+2);
}
_3c=_3e.split(":")[0];
}else{
_3c=window.location.hostname;
}
return _3c;
},_extractPort:function(_3f){
var _40=_3f.indexOf(this.server);
var _41="";
if(_40>=0){
var _42=_3f.indexOf("/",_40);
if(_42!=-1){
var _43=_3f.substring(_40,_42);
}else{
var _43=_3f.substring(_40);
}
var _44=_43.split(":");
if(_44.length>1){
_41=_44[1];
}
}
if(_41==""){
if(_3f.indexOf("/")==0){
_41=window.location.port;
}else{
_41="";
}
}
return _41;
},_extractPath:function(_45){
var _46=_45.indexOf(this.scheme);
var _47=0;
if(_46==0){
_47=this.scheme.length+2;
}
var _48="";
var _49=_45.indexOf("/",_47);
var _4a=_45.indexOf("?");
var _4b=_45.lastIndexOf("#");
if(_4a>=0){
_48=_45.substring(_49+1,_4a);
}else{
if(_4b>=0&&_49!=-1){
_48=_45.substring(_49+1,_4b);
}else{
if(_49!=-1){
_48=_45.substring(_49+1);
}
}
}
return _48;
},_extractQuery:function(_4c){
var _4d="";
var _4e=_4c.split("?");
if(_4e.length>1){
_4d=_4e[1].split("#")[0];
}
return _4d;
},_extractAnchor:function(_4f){
var _50="";
var _51=_4f.split("#");
if(_51.length>1){
_50=_51[_51.length-1];
}
return _50;
}});
dojo.declare("com.ibm.mm.enabler.ArrayMap",null,{constructor:function(){
this.entries=[];
this.keys={};
},values:function(){
return this.entries;
},put:function(key,_52){
var _53=this.keys[key];
if(typeof _53!="undefined"&&_53!=null){
this.entries[_53]=_52;
}else{
_53=this.entries.length;
this.entries.push(_52);
this.keys[key]=_53;
}
},getKey:function(_54){
if(_54<this.entries.length){
for(var key in this.keys){
var _55=this.keys[key];
if(_55!=null&&_55==_54){
return _55;
}
}
}else{
return null;
}
},getValue:function(_56){
if(_56<this.entries.length){
return this.entries[_56];
}else{
return null;
}
},get:function(key){
var _57=this.keys[key];
if(typeof _57!="undefined"&&_57!=null){
var _58=this.entries[_57];
return _58;
}
return null;
},remove:function(key){
var _59=this.keys[key];
if(typeof _59!="undefined"&&_59!=null){
this.entries.splice(_59,1);
this.keys[key]=null;
}
return _59;
},size:function(){
return this.entries.length;
},keySet:function(){
var arr=[];
for(var key in this.keys){
arr.push(key);
}
return arr;
}});
}


;if(!dojo._hasResource["com.ibm.mm.enabler.iw.ItemSet"]){
dojo._hasResource["com.ibm.mm.enabler.iw.ItemSet"]=true;
dojo.provide("com.ibm.mm.enabler.iw.ItemSet");
dojo.declare("com.ibm.mm.enabler.iw.ItemSet",null,{constructor:function(){
},setItemValue:function(_1,_2,_3){
return this;
},getItemValue:function(_4){
return null;
},getAllNames:function(){
return null;
},removeItem:function(_5){
return null;
},clone:function(){
return null;
},isReadOnly:function(_6){
return null;
},getItemSetDescription:function(){
return null;
}});
dojo.declare("com.ibm.mm.enabler.iw.ManagedItemSet",com.ibm.mm.enabler.iw.ItemSet,{constructor:function(){
},save:function(_7){
}});
}


;if(!dojo._hasResource["com.ibm.mm.enabler.iw.payloadDef"]){
dojo._hasResource["com.ibm.mm.enabler.iw.payloadDef"]=true;
dojo.provide("com.ibm.mm.enabler.iw.payloadDef");


dojo.declare("com.ibm.mm.enabler.iw.payloadDef",null,{constructor:function(_1,_2,_3,_4,_5){
this.name=_1;
this.attributes=_5;
if(typeof (this.attributes)=="undefined"||this.attributes==null){
this.attributes={};
}
if(typeof _2!="undefined"&&_2!=null){
this.attributes["type"]=_2;
}
if(typeof _3!="undefined"&&_3!=null){
this.attributes["defaultValue"]=_3;
}
if(typeof _4!="undefined"&&_4!=null){
this.attributes["description"]=_4;
}
this.attributeNames=[];
this.attributeNames.push("type");
this.attributeNames.push("defaultValue");
this.attributeNames.push("description");
var _6;
for(_6 in _5){
this.attributeNames.push(_6);
}
this.children=new com.ibm.mm.enabler.ArrayMap();
},setAttribute:function(_7,_8){
this.attributes[_7]=_8;
if(typeof (this.attributeNames[_7])!="undefined"){
this.attributeNames.push(_7);
}
},getAttribute:function(_9){
var _a=this.attributes[_9];
if(typeof _a=="undefined"){
_a=null;
}
return _a;
},getAttributeNames:function(){
this.attributeNames;
},getChildren:function(){
return this.children.values();
},getChild:function(_b){
return this.children.get(_b);
},setChild:function(_c,_d){
this.children.put(_c,_d);
},getChildrenNames:function(){
this.children.keySet();
},getName:function(){
return this.name;
},getType:function(){
return this.attributes["type"];
},getDefaultValue:function(){
return this.attributes["defaultValue"];
},getDescription:function(){
return this.attributes["description"];
}});
}


;if(!dojo._hasResource["com.ibm.mm.enabler.iw.utils"]){
dojo._hasResource["com.ibm.mm.enabler.iw.utils"]=true;
dojo.provide("com.ibm.mm.enabler.iw.utils");




dojo.declare("com.ibm.mm.enabler.iw.utils",null,{widgetClassRE:new RegExp("(mm:|mm_|iw-)iWidget"),findElementByAttribute:function(_1,_2,_3,_4,_5){
var _6=_3;
if(!_3.childNodes||_3.childNodes==null){
return false;
}
var _7=_6.childNodes;
for(var i=0;i<_7.length;i++){
var _8=_7[i];
if(_8.nodeType==1){
var _9=_8.className;
if(_9.match(this.widgetClassRE)){
return false;
}
var _a=_8.getAttribute(_1);
if(_1=="class"){
_a=_8.className;
}
if(_2==_a){
_4.push(_8);
if(!_5){
return true;
}
}
var rc=this.findElementByAttribute(_1,_2,_8,_4,_5);
if(!_5&&rc){
return rc;
}
}
}
if(_4.length!=0){
return true;
}
return false;
},getClass:function(_b){
var _c=_b.getAttribute("class");
_c=_c?_c:_b.getAttribute("className");
return _c;
},checkParentElement:function(_d,_e){
if(_d){
var _f=_d.parentNode;
if(_f){
if(_f.className){
if(_f.className.match(_e)){
return _f.id;
}
}
return this.checkParentElement(_f,_e);
}
}
return null;
},getWidgetParent:function(id,_10){
if(id==null){
return null;
}
if(!_10){
_10=this.widgetClassRE;
}
return this.checkParentElement(dojo.byId(id),_10);
},getParents:function(_11,arr){
var _12=_11.getParent();
if(typeof _12!="undefined"&&_12!=null){
arr.push(_12);
this.getParents(_12,arr);
}
return;
},getPayloadDef:function(_13){
var _14=_13.getAttribute("name");
var _15=new com.ibm.mm.enabler.iw.payloadDef(_14);
var _16=_13.attributes;
for(var i=0;i<_16.length;i++){
var _17=_16[i];
if(_17.name!="name"){
_15.setAttribute(_17.name,_17.value);
}
}
var _18=_13.childNodes;
for(var j=0;j<_18.length;j++){
var _19=_18[j];
if(_19.nodeType==1){
var _1a=this.getPayloadDef(_19);
_15.setChild(_1a.name,_1a);
}
}
return _15;
}});
com.ibm.mm.enabler.iw.utils=new com.ibm.mm.enabler.iw.utils();
}


;if(!dojo._hasResource["com.ibm.mm.enabler.iw.event"]){
dojo._hasResource["com.ibm.mm.enabler.iw.event"]=true;
dojo.provide("com.ibm.mm.enabler.iw.event");
dojo.declare("com.ibm.mm.enabler.iw.iEvent",null,{constructor:function(){
},name:"",type:"",payload:null,source:""});
dojo.declare("com.ibm.mm.enabler.iw.iEventDescription",null,{constructor:function(){
},name:"",type:"",aliases:null,handlingFn:"",getDescription:function(_1){
return null;
},setOnRemoveWire:function(_2){
},getOnRemoveWire:function(){
return null;
},setOnNewWire:function(_3){
},getOnNewWire:function(){
return null;
}});
dojo.declare("com.ibm.mm.enabler.iw.iEvents",null,{constructor:function(){
},publishEvent:function(_4,_5,_6){
},fireEvent:function(_7,_8,_9){
}});
dojo.declare("com.ibm.mm.enabler.iw.iEventsConstants",null,{constructor:function(){
},onLoad:"onLoad",onUnLoad:"onUnload",onModeChanged:"onModeChanged",onItemSetChanged:"onItemSetChanged",unloadWidget:"/enabler/unloadWidget",unSubscribeWire:"/enabler/unSubscribeWire",modeChanged:"modeChanged"});
}


;if(!dojo._hasResource["com.ibm.mm.enabler.status"]){
dojo._hasResource["com.ibm.mm.enabler.status"]=true;
dojo.provide("com.ibm.mm.enabler.status");
dojo.declare("com.ibm.mm.enabler.status.StatusType",null,{constructor:function(id,_1,_2,_3){
this._id=id;
this._styleClass=_1;
this._iconPath=_2;
this._color=_3;
}});
dojo.declare("com.ibm.mm.enabler.status.StatusMessage",null,{constructor:function(_4,_5,_6){
this._type=_4;
this._message=_5;
this._details=_6;
},render:function(_7){
var _8=com.ibm.mm.enabler.status.statusTypesMap[this._type];
var _9=document.createElement("div");
_9.className=_8._styleClass;
var _a=document.createElement("h5");
var _b=document.createElement("div");
_b.className="statusHeaderLHS";
var _c=document.createElement("img");
_c.src=_8._iconPath;
_b.appendChild(_c);
_b.appendChild(document.createTextNode(this._message));
_a.appendChild(_b);
_9.appendChild(_a);
var _d=document.createElement("div");
_d.className="details";
_d.appendChild(document.createTextNode(this._details));
_9.appendChild(_d);
_7.appendChild(_9);
}});
dojo.declare("com.ibm.mm.enabler.status.StatusTypesMap",null,{constructor:function(){
this._baseURL=new dojo.moduleUrl("com.ibm.mm.enabler","iw/");
this.error=new com.ibm.mm.enabler.status.StatusType(0,"error",this._baseURL+"error.gif","#FF0000");
this.warn=new com.ibm.mm.enabler.status.StatusType(1,"warning",this._baseURL+"warning.gif","FFFF00");
this.info=new com.ibm.mm.enabler.status.StatusType(2,"info",this._baseURL+"info.gif","#0077FF");
this.constants={"ERROR":"error","WARN":"warn","INFO":"info"};
}});
com.ibm.mm.enabler.status.statusTypesMap=new com.ibm.mm.enabler.status.StatusTypesMap();
}


;if(!dojo._hasResource["com.ibm.mm.enabler.debug"]){
dojo._hasResource["com.ibm.mm.enabler.debug"]=true;
dojo.provide("com.ibm.mm.enabler.debug");


com.ibm.mm.enabler.debug.Constants={MMLogging:"/mm/logging",MMStatusMsg:"/mm/statusMsg",MMTracing:"/mm/tracing",LOG:"log",INFO:"info",WARN:"warn",ERROR:"error"};
com.ibm.mm.enabler.debug.log=function(_1){
if(com.ibm.mm.enabler.debug.isLogging){
if(arguments.length>1){
arguments[0]=_1+" --> ";
}
com.ibm.mm.enabler.debug._log(com.ibm.mm.enabler.debug.Constants.LOG,arguments);
com.ibm.mm.enabler.debug._publishTracing(com.ibm.mm.enabler.debug.Constants.LOG,arguments);
}
};
com.ibm.mm.enabler.debug.entry=function(_2){
if(com.ibm.mm.enabler.debug.isLogging){
if(arguments.length>1){
arguments[0]=_2+" --> Entry ";
}
com.ibm.mm.enabler.debug._log(com.ibm.mm.enabler.debug.Constants.LOG,arguments);
com.ibm.mm.enabler.debug._publishTracing(com.ibm.mm.enabler.debug.Constants.LOG,arguments);
}
};
com.ibm.mm.enabler.debug.exit=function(_3){
if(com.ibm.mm.enabler.debug.isLogging){
if(arguments.length>1){
arguments[0]=_3+" --> Exit ";
}
com.ibm.mm.enabler.debug._log(com.ibm.mm.enabler.debug.Constants.LOG,arguments);
com.ibm.mm.enabler.debug._publishTracing(com.ibm.mm.enabler.debug.Constants.LOG,arguments);
}
};
com.ibm.mm.enabler.debug.escapeXmlForHTMLDisplay=function(_4){
_4=_4.replace(/</g,"&lt;");
_4=_4.replace(/>/g,"&gt;");
return _4;
};
com.ibm.mm.enabler.debug.info=function(_5){
try{
if(arguments.length>1){
arguments[0]=_5+" --> ";
}
com.ibm.mm.enabler.debug._log(com.ibm.mm.enabler.debug.Constants.INFO,arguments);
com.ibm.mm.enabler.debug._publishLogging(com.ibm.mm.enabler.debug.Constants.INFO,arguments);
}
catch(e){
}
};
com.ibm.mm.enabler.debug.warn=function(_6){
if(arguments.length>1){
arguments[0]=_6+" --> ";
}
com.ibm.mm.enabler.debug._log(com.ibm.mm.enabler.debug.Constants.WARN,arguments);
com.ibm.mm.enabler.debug._publishLogging(com.ibm.mm.enabler.debug.Constants.WARN,arguments);
};
com.ibm.mm.enabler.debug.error=function(_7){
if(arguments.length>1){
arguments[0]=_7+" --> ";
}
com.ibm.mm.enabler.debug._log(com.ibm.mm.enabler.debug.Constants.ERROR,arguments);
com.ibm.mm.enabler.debug._publishLogging(com.ibm.mm.enabler.debug.Constants.ERROR,arguments);
};
com.ibm.mm.enabler.debug._log=function(_8,_9){
if(com.ibm.mm.enabler.debug.isLogging){
if(_9.length>=2&&dojo.isString(_9[1])){
var _a=[];
_a.push(_9[0]+_9[1]);
for(var i=2;i<_9.length;i++){
_a.push(_9[i]);
}
console[_8].apply(window.console,_a);
}else{
console[_8].apply(window.console,_9);
}
}
};
com.ibm.mm.enabler.debug._publishTracing=function(_b,_c){
if(typeof ibmConfig!="undefined"&&ibmConfig!==null&&ibmConfig.allowPublishTracing===true){
var _d={};
_d.type=_b;
_d.args=_c;
var _e=[];
_e[0]=_d;
dojo.publish(com.ibm.mm.enabler.debug.Constants.MMTracing,_e);
}
};
com.ibm.mm.enabler.debug._publishLogging=function(_f,_10){
if(typeof ibmConfig!="undefined"&&ibmConfig!==null&&ibmConfig.allowPublishLogging===true){
var _11={};
_11.type=_f;
_11.args=_10;
var _12=[];
_12[0]=_11;
dojo.publish(com.ibm.mm.enabler.debug.Constants.MMLogging,_12);
}
};
if(typeof ibmConfig!="undefined"&&ibmConfig!==null&&ibmConfig.isDebug===true){
com.ibm.mm.enabler.debug.isLogging=true;
}else{
com.ibm.mm.enabler.debug.isLogging=false;
}
com.ibm.mm.enabler.debug.logInlineMessage=function(_13,_14,_15,_16,_17){
var _18=new com.ibm.mm.enabler.status.StatusMessage(_14,_15,_16);
if(_13){
_18.render(_13);
}
com.ibm.mm.enabler.debug._publishStatusMsg(_14,_15,_16,_17);
};
com.ibm.mm.enabler.debug._publishStatusMsg=function(_19,_1a,_1b,_1c,_1d){
if(typeof ibmConfig!="undefined"&&ibmConfig!==null&&ibmConfig.allowPublishStatusMsg===true){
var _1e={};
_1e.type=_19;
_1e.args=_1c;
_1e.message=_1a;
_1e.details=_1b;
_1e.component=_1d;
var _1f=[];
_1f[0]=_1e;
dojo.publish(com.ibm.mm.enabler.debug.Constants.MMStatusMsg,_1f);
}
};
}


;if(!dojo._hasResource["com.ibm.mm.enabler.iw.io"]){
dojo._hasResource["com.ibm.mm.enabler.iw.io"]=true;
dojo.provide("com.ibm.mm.enabler.iw.io");




dojo.declare("com.ibm.mm.enabler.iw.io",null,{constructor:function(id){
this.id=id;
var _1=iWidgetContainer.getWidgetById(this.id);
var _2=_1.getWidgetInstance().widgetXMLUrl;
this.widgetBaseUri=_2.substring(0,_2.lastIndexOf("/")+1);
this.widgetBaseUriXhr=com.ibm.mm.enabler.utilities.rewriteURL(this.widgetBaseUri);
if(this.widgetBaseUri.indexOf("://")!=-1){
var _3=this.widgetBaseUri.indexOf("://");
var _4=this.widgetBaseUri.indexOf("/",_3+3);
this.serverRoot=this.widgetBaseUri.substring(0,_4);
this.serverRootXhr=com.ibm.mm.enabler.utilities.rewriteURL(this.serverRoot);
}
},rewriteURI:function(_5,_6){
com.ibm.mm.enabler.debug.entry("com.ibm.mm.enabler.iw.io.rewriteURI",_5+" isXhr:"+_6);
if(typeof _6=="undefined"){
_6=true;
}
var _7=_5;
if(_6){
if(_5.indexOf("://")!=-1){
_7=com.ibm.mm.enabler.utilities.rewriteURL(_5);
}else{
if(_5.indexOf("/")==0){
if(typeof (this.serverRootXhr)!="undefined"){
_7=this.serverRootXhr+_5;
}
}else{
if(typeof (this.widgetBaseUriXhr)!="undefined"){
_7=this.widgetBaseUriXhr+_5;
}
}
}
}else{
if(_5.indexOf("://")==-1){
if(_5.indexOf("/")==0){
if(typeof (this.serverRootXhr)!="undefined"){
_7=this.serverRoot+_5;
}
}else{
if(typeof (this.widgetBaseUri)!="undefined"){
_7=this.widgetBaseUri+_5;
}
}
}
}
com.ibm.mm.enabler.debug.exit("com.ibm.mm.enabler.iw.io.rewriteURI",_7);
return _7;
},getWebAppRootPath:function(){
var _8="/";
if(typeof (this.widgetBaseUri)!="undefined"){
_8=this.widgetBaseUri;
if(_8.length>0){
if(_8.indexOf("://")>0){
var _9=_8.split("/");
if(_9.length>=4){
_8=_9[0]+"//"+_9[2]+"/"+_9[3]+"/";
}else{
_8="/";
}
}
}
}
return _8;
},request:function(_a,_b,_c,_d,_e){
var _f=dojo._xhrObj();
var _10=this.rewriteURI(_b);
var _11=false;
if(_c){
_f.onreadystatechange=_c;
_11=true;
}
var _12=_a;
if(typeof _a=="undefined"||_a==null){
_12=this.httpmethods.GET;
}
if(typeof _a!="undefined"&&_a!=null){
if(!this.httpmethods[_a]){
_12=this.httpmethods.GET;
}
}
_f.open(_12,_10,_11);
if(dojo.config.isDebug){
console.debug(_12+" "+_10);
}
var _13="application/x-www-form-urlencoded";
if(_e){
for(var i=0;i<_e.length;i++){
var _14=_e[i];
var _15=_14[_15];
var _16=_14[_16];
if(_15=="Content-Type"){
var _17=_16;
}else{
_f.setRequestHeader(_15,_16);
}
}
}
_f.setRequestHeader("Content-Type",(_17||_13));
if(_12==this.httpmethods.PUT||_12==this.httpmethods.POST){
if(_d){
_f.send(_d);
}
}else{
_f.send(null);
}
return _f;
},httpmethods:{GET:"GET",PUT:"PUT",POST:"POST",DELETE:"DELETE",HEAD:"HEAD",OPTIONS:"OPTIONS"}});
}


;if(!dojo._hasResource["com.ibm.mm.enabler.iw.iContext"]){
dojo._hasResource["com.ibm.mm.enabler.iw.iContext"]=true;
dojo.provide("com.ibm.mm.enabler.iw.iContext");
dojo.declare("com.ibm.mm.enabler.iw.iContext",null,{constructor:function(){
},constants:{mode:{VIEW:"view",EDIT:"edit",HELP:"help"},ATTRIBUTES:"attributes",IDESCRIPTOR:"idescriptor",USERPROFILE:"userprofile",keys:{SHIFT:1,ALT:2,CTRL:4,META:8,CAPSLOCK:16}},getRootElement:function(){
return null;
},getElementById:function(id,_1){
return null;
},getiWidgetAttributes:function(){
return {};
},getItemSet:function(_2,_3){
return null;
},requires:function(_4,_5,_6,cb,_7){
},iScope:function(){
return null;
},processMarkup:function(_8){
return null;
},processiWidgets:function(_9){
},getElementByClass:function(_a,_b){
return null;
},getUserProfile:function(){
return null;
},getiDescriptor:function(){
return null;
}});
}


;if(!dojo._hasResource["com.ibm.mm.enabler.iw.iContextImpl"]){
dojo._hasResource["com.ibm.mm.enabler.iw.iContextImpl"]=true;
dojo.provide("com.ibm.mm.enabler.iw.iContextImpl");










dojo.declare("com.ibm.mm.enabler.iw.iContextImpl",com.ibm.mm.enabler.iw.iContext,{constructor:function(id){
this.widgetId=id;
this.scope={};
this.iEvents=new com.ibm.mm.enabler.iw.iEventsImpl(this.widgetId);
this.io=new com.ibm.mm.enabler.iw.io(this.widgetId);
this.rootElement=document.getElementById(id);
this.ns=this.rootElement.className.substr(0,3);
this._mm=new com.ibm.mm.enabler.iw.iContextImpl.mmExtension(this.widgetId);
},getRootElement:function(){
return this.rootElement;
},getElementById:function(id,_1){
com.ibm.mm.enabler.debug.entry("iContext.getElementById ","id:"+id+" root:"+_1);
if(!_1){
_1=this._getContentRoot();
}
var _2=[];
var rc=com.ibm.mm.enabler.iw.utils.findElementByAttribute("id",id,_1,_2,false);
com.ibm.mm.enabler.debug.log("iContext.getElementById","found:"+rc);
if(rc){
return _2[0];
}else{
return null;
}
},getiWidgetAttributes:function(){
var _3=iWidgetContainer.getWidgetById(this.widgetId);
var _4=_3.getWidgetAttributes();
return _4;
},getItemSet:function(_5){
com.ibm.mm.enabler.debug.entry("iContext.getItemSet","name:"+_5);
if(typeof _5=="undefined"||_5==null){
return null;
}
if(_5==iwConstants.ATTRIBUTES){
return this.getiWidgetAttributes();
}
if(_5==iwConstants.USERPROFILE){
return this.getUserProfile();
}
if(_5==iwConstants.IDESCRIPTOR){
return this.getiDescriptor();
}
var _6=iWidgetContainer.getWidgetById(this.widgetId);
var _7=_6.getWidgetItemSet(_5);
if(typeof _7=="undefined"||_7==null){
_7=new com.ibm.mm.enabler.iw.DefaultItemSetImpl();
}
com.ibm.mm.enabler.debug.exit("iContext.getItemSet","object:"+_7);
return _7;
},requires:function(_8,_9,_a,cb,_b){
if(typeof _b=="undefined"||_b==null){
_b="text/plain";
}
if(typeof _a!="undefined"&&_a!=null){
serviceManager.getService("loadService").loadResource(this.widgetId,_8,_a,cb,_b);
}
},iScope:function(){
return this.scope;
},processMarkup:function(_c){
var _d=_c.replace(/_IWID_/g,"_"+this.widgetId+"_");
var _e=_d.replace(/iContext(?=\.|\s|\(|\))/g,"_"+this.widgetId+"_iContext");
return _e;
},processiWidgets:function(_f){
dojo.publish("/com/ibm/mashups/livetext/livetextchanged",[_f,true]);
},getElementByClass:function(_10,_11){
if(!_11){
_11=this._getContentRoot();
}
var _12=[];
var rc=com.ibm.mm.enabler.iw.utils.findElementByAttribute("class",_10,_11,_12,true);
com.ibm.mm.enabler.debug.log("iContext.getElementByClass","found:"+rc);
if(rc){
return _12;
}else{
return null;
}
},_getWidgetBaseUri:function(){
var _13=iWidgetContainer.getWidgetById(this.widgetId);
var _14=_13.getWidgetInstance().widgetXMLUrl;
return _14.substring(0,_14.lastIndexOf("/")+1);
},_getContentRoot:function(){
var _15=this.rootElement;
var _16=iWidgetContainer.getWidgetById(this.widgetId);
if(_16){
var _17=_16.currentMode;
}
if(!_17){
_17="view";
}
var _18=_16.windowManager[_17];
if(typeof _18!="undefined"&&_18!=null){
var _19=_18.root;
if(typeof _19!="undefined"||_19!=null){
_15=_19;
}
}
com.ibm.mm.enabler.debug.exit("iContext._getContentRoot",_15);
return _15;
},getUserProfile:function(){
var _1a=com.ibm.mashups.enabler.model.Factory.getUserModel();
var _1b=_1a.findCurrentUser();
var _1c=null;
if(typeof _1b!="undefined"&&_1b!=null){
_1c=new com.ibm.mm.enabler.iw.UserProfile(this.widgetId,_1b);
}
return _1c;
},getiDescriptor:function(){
var _1d=iWidgetContainer.getWidgetById(this.widgetId);
var _1e=_1d.getIDescriptor();
return _1e;
}});
dojo.declare("com.ibm.mm.enabler.iw.iContextImpl.mmExtension",null,{constructor:function(id){
this.widgetId=id;
},getSupportedModes:function(){
var _1f=iWidgetContainer.getWidgetById(this.widgetId);
var _20=_1f.widgetDef.getSupportedModes();
return _20;
},getPayloadDef:function(_21){
if(typeof this.widget=="undefined"||this.widget==null){
this.widget=iWidgetContainer.getWidgetById(this.widgetId);
}
var _22=this.widget.widgetDef.payloadDefs;
var _23=_22[_21];
if(typeof _23=="undefined"){
return null;
}
return _23;
},getPayloadDefNames:function(){
if(typeof this.widget=="undefined"||this.widget==null){
this.widget=iWidgetContainer.getWidgetById(this.widgetId);
}
var _24=this.widget.widgetDef.payloadDefs;
var arr=[];
var a;
for(a in _24){
arr.push(a);
}
return arr;
}});
}


;if(!dojo._hasResource["com.ibm.mm.enabler.iw.ItemSetImpl"]){
dojo._hasResource["com.ibm.mm.enabler.iw.ItemSetImpl"]=true;
dojo.provide("com.ibm.mm.enabler.iw.ItemSetImpl");


dojo.declare("com.ibm.mm.enabler.iw.Item",null,{constructor:function(_1,_2,_3,_4){
this.name=_1;
this.value=_2;
this.descriptionId=_4;
if(typeof _3=="undefined"||_3==null){
this.isReadOnly=false;
}else{
this.isReadOnly=_3;
}
}});
dojo.declare("com.ibm.mm.enabler.iw.DefaultItemSetImpl",com.ibm.mm.enabler.iw.ItemSet,{constructor:function(_5,_6,_7,_8,_9){
if(_5){
this.parent=_5.id;
this.scope=_5.iScope;
}
this.name=_6;
this.onItemSetChanged=_7;
this.description=_8;
this.isPrivate=_9;
this.items={};
this.listeners={};
if(_7){
this.listeners[_7]=_7;
}
this._debug=com.ibm.mm.enabler.debug;
},addListener:function(fn){
this.listeners[fn.toString()]=fn;
},removeListener:function(fn){
if(this.listeners[fn.toString()]){
this.listeners[fn.toString()]=null;
}
},setItemValue:function(_a,_b,_c){
this._debug.log("ItemSet.setItemValue ","itemName:"+_a,"value:"+_b,"readOnly:"+_c);
if(typeof _b=="undefined"){
return null;
}
var _d=false;
if(!(typeof _c=="undefined"||_c==null)){
_d=_c;
}
this._debug.log("ManagedItemSet.setItemValue","creating new Item ("+"itemName:"+_a+" value:"+_b+" readOnly:"+_c+")");
var _e=new com.ibm.mm.enabler.iw.Item(_a,_b,_d);
if(this.items[_a]){
this._debug.log("ManagedItemSet.setItemValue","Itemset readOnly is "+this.items[_a].isReadOnly);
if(this.items[_a].isReadOnly=="true"){
return null;
}else{
var _f={itemSetName:this.name,changeType:"changedValue"};
_f.old=this.items[_a].value;
_f["new"]=_b;
var _10=new com.ibm.mm.enabler.iw.iEventImpl("onItemSetChanged",null,_f);
this.items[_a]=_e;
this._handleOnItemSetChanged(_10);
}
}else{
var _f={itemSetName:this.name,changeType:"newItem"};
_f["new"]=_b;
var _10=new com.ibm.mm.enabler.iw.iEventImpl("onItemSetChanged",null,_f);
this.items[_a]=_e;
this._handleOnItemSetChanged(_10);
}
return this;
},getItemValue:function(_11){
var _12=this.items[_11];
if(typeof _12=="undefined"||_12==null){
return null;
}
var _13=this.items[_11].value;
if(typeof _13=="undefined"||_13==null){
return null;
}
return _13;
},getAllNames:function(){
if(typeof this.items=="undefined"||this.items==null){
return null;
}
var _14=new Array();
var _15;
var i=0;
for(_15 in this.items){
_14.push(_15);
i=i+1;
}
if(i==0){
return null;
}
return _14;
},removeItem:function(_16){
if(this.items[_16]){
if(this.items[_16].isReadOnly&&this.items[_16].isReadOnly=="true"){
return null;
}else{
if(this.items[_16]==null){
return null;
}
}
}
var _17={itemSetName:this.name,changeType:"removedItem"};
_17.old=this.items[_16].value;
var _18=new com.ibm.mm.enabler.iw.iEventImpl("onItemSetChanged",null,_17);
this.items[_16]=null;
this._handleOnItemSetChanged(_18);
return this;
},clone:function(){
var _19=new com.ibm.mm.enabler.iw.DefaultItemSetImpl(null,this.name);
var arr=this.items;
var _1a;
for(_1a in arr){
var _1b=new com.ibm.mm.enabler.iw.Item();
_1b=dojo.mixin(_1b,this.items[_1a]);
_19.items[_1b.name]=_1b;
}
return _19;
},isReadOnly:function(_1c){
this._debug.entry("ManagedItemSet.isReadOnly","itemName:"+_1c);
var _1d=this.items[_1c];
if(typeof _1d=="undefined"||_1d==null){
return false;
}
return _1d.isReadOnly;
},getItemSetDescription:function(){
return null;
},_handleOnItemSetChanged:function(_1e){
for(var i=0;i<this.listeners;i++){
var fn=this.listeners[i];
if(fn!=null&&this.scope){
dojo.hitch(this.scope,fn)(_1e);
}
}
}});
dojo.declare("com.ibm.mm.enabler.iw.iDescriptor",com.ibm.mm.enabler.iw.ManagedItemSet,{constructor:function(_1f,_20,_21){
this.widgetId=_1f;
this.defiDescriptorItems=_20;
this.instanceiDescriptorItems=_21;
},getItemValue:function(_22){
var _23=null;
if(typeof _22!="undefined"&&_22!=null&&_22==iwConstants.iDescriptorItems.mode){
var _24=this._getWidgetWrapper();
if(_24!=null){
_23=_24.currentMode;
}
}else{
_23=this._getItemValue(_22);
}
return _23;
},_getItemValue:function(_25){
if(this.defiDescriptorItems!=null){
var _26=this.defiDescriptorItems[_25];
}
if(this.instanceiDescriptorItems!=null){
var _27=this.instanceiDescriptorItems[_25].defaultValue;
}
if(typeof _27!="undefined"||_27!=null){
return _27;
}
if(typeof _26=="undefined"){
_26=null;
}
return _26;
},setItemValue:function(_28,_29,_2a){
return null;
},isReadOnly:function(_2b){
return true;
},_getWidgetWrapper:function(){
if(this.widgetId){
var _2c=iWidgetContainer.widgetArr[this.widgetId];
if(_2c&&_2c!=null){
return _2c;
}
}
return null;
},removeItem:function(_2d){
return null;
},getAllNames:function(){
var arr={};
if(this.defiDescriptorItems!=null){
for(var i in this.defiDescriptorItems){
arr[i]=true;
}
}
if(this.instanceiDescriptorItems!=null){
for(var j in this.instanceiDescriptorItems){
arr[j]=true;
}
}
var _2e=[];
for(var _2f in arr){
_2e.push(_2f);
}
return _2e;
},save:function(cb){
return null;
},getItemSetDescription:function(){
return null;
}});
dojo.declare("com.ibm.mm.enabler.iw.InternalPersistentAttributesToPreferenceModelAdapter",com.ibm.mm.enabler.iw.ManagedItemSet,{constructor:function(_30,_31){
this.xmlItems={};
this.microformatItems={};
this.serverless=(_31==true);
this.modes=com.ibm.mm.enabler.iw.ItemSet._internalIbmModes;
this.widget=_30;
},setItemValue:function(_32,_33,_34,_35){
_33=_33?_33:"";
_33=""+_33;
if(typeof _34=="string"){
_34=(_34.toLowerCase()=="true");
}else{
_34=(_34==true);
}
if(this.serverless){
var _36=this._getMode(_35);
if(_36!=this.modes.xml&&_36!=this.modes.microformat){
return null;
}
var _37=this.xmlItems[_32];
if(_37&&_37.readOnly){
return null;
}
if(_36==this.modes.xml){
this.xmlItems[_32]={value:_33,readOnly:_34};
return this;
}
var _38=this.microformatItems[_32];
if(_38&&_38.readOnly){
return null;
}
this.microformatItems[_32]={value:_33,readOnly:_34};
return (this);
}
return null;
},getItemValue:function(_39,_3a,_3b){
if(this.serverless){
var _3c=this._getMode(_3a);
if(_3c!=this.modes.xml&&_3c!=this.modes.microformat){
return null;
}
if(_3b==undefined){
_3b=true;
}
var _3d=this.xmlItems[_39];
var _3e=this.microformatItems[_39];
if(_3c==this.modes.xml){
if(!_3d){
return null;
}
return _3d.value;
}
if(_3b&&_3d&&(_3d.readOnly||(!_3e))){
return _3d.value;
}
if(!_3e){
return null;
}
var _3f=_3e.value;
return _3f;
}
return null;
},getAllNames:function(_40,_41){
if(this.serverless){
var _42=this._getMode(_40);
if(_42!=this.modes.xml&&_42!=this.modes.microformat){
return null;
}
if(_41==undefined){
_41=true;
}
if(!_41){
if(_42==this.modes.xml){
return this._getNamesArray(this.xmlItems);
}
return this._getNamesArray(this.microformatItems);
}
var _43={};
var _44;
for(_44 in this.xmlItems){
_43[_44]=true;
}
for(_44 in this.microformatItems){
_43[_44]=true;
}
return this._getNamesArray(_43);
}
return null;
},removeItem:function(_45,_46){
if(this.serverless){
var _47=this._getMode(_46);
if(_47!=this.modes.microformat){
return null;
}
if(this.microformatItems[_45]){
delete this.microformatItems[_45];
}
return this;
}
return null;
},clone:function(){
return null;
},isReadOnly:function(_48,_49,_4a){
if(this.serverless){
var _4b=this._getMode(_49);
if(_4b!=this.modes.xml&&_4b!=this.modes.microformat){
return false;
}
if(_4a==undefined){
_4a=true;
}
var _4c=this.xmlItems[_48];
var _4d=this.microformatItems[_48];
if(_4b==this.mode.xml){
if(!_4c){
return false;
}
return _4c.readOnly;
}
if(_4a&&_4c&&(_4c.readOnly||(!_4d))){
return _4c.readOnly;
}
if(!_4d){
return false;
}
return _4d.readOnly;
}
return null;
},save:function(_4e){
if(this.serverless){
this._saveMicroformat();
}else{
return null;
}
this.reload();
if(_4e){
_4e();
}
return (this);
},reload:function(){
if(this.serverless){
return this;
}
return null;
},_getNamesArray:function(_4f){
var i=0;
var _50=new Array();
var _51;
for(_51 in _4f){
_50.push(_51);
i++;
}
if(i==0){
return null;
}
return _50;
},_saveMicroformat:function(){
var _52;
var i;
var ns=this.widget.ns;
var _53=this.widget.rootElement;
_52=dojo.query("span."+ns+"ItemSet[title=\""+iwConstants.ATTRIBUTES+"\"]",_53);
for(i=0;i<_52.length;i++){
var _54=_52[i];
if(_53==_54.parentNode){
_53.removeChild(_54);
}
}
var _55=document.createElement("span");
_55.className=ns+"ItemSet";
_55.title=iwConstants.ATTRIBUTES;
_55.style.display="none";
_55.style.visibility="hidden";
_53.appendChild(_55);
var _56=this.getAllNames(this.modes.microformat,false);
if(!_56){
return;
}
for(i=0;i<_56.length;i++){
var _57=_56[i];
var _58=this.getItemValue(_57,this.modes.microformat,false);
var _59=document.createElement("a");
_59.className=ns+"Item";
_59.style.visibility="hidden";
_59.style.display="none";
_59.href="#"+_57;
_59.appendChild(document.createTextNode(_58));
_55.appendChild(_59);
}
},_setMode:function(_5a){
this._mode=_5a;
},_getMode:function(_5b){
if(_5b){
return _5b;
}
if(!this._mode){
this._mode=this.modes.microformat;
}
return this._mode;
}});
dojo.declare("com.ibm.mm.enabler.iw.PersistentAttributes",com.ibm.mm.enabler.iw.ManagedItemSet,{constructor:function(_5c,_5d,_5e){
this._internalPersistentAttributesToPreferenceModelAdapter=new com.ibm.mm.enabler.iw.InternalPersistentAttributesToPreferenceModelAdapter(_5c,_5d,_5e);
},setItemValue:function(_5f,_60,_61){
return this._internal().setItemValue(_5f,_60,_61);
},getItemValue:function(_62){
return this._internal().getItemValue(_62);
},getAllNames:function(){
return this._internal().getAllNames();
},removeItem:function(_63){
return this._internal().removeItem(_63);
},clone:function(){
return this._internal().clone();
},isReadOnly:function(_64,_65,_66){
return this._internal().isReadOnly(_64);
},save:function(_67){
return this._internal().save(_67);
},_internal:function(){
return this._internalPersistentAttributesToPreferenceModelAdapter;
}});
com.ibm.mm.enabler.iw.ItemSet._internalIbmModes={view:"view",edit:"edit",edit_default:"edit_default",microformat:"com.ibm.microformat",configure:"configure",xml:"com.ibm.xml",help:"help"};
dojo.declare("com.ibm.mm.enabler.iw.UserProfile",com.ibm.mm.enabler.iw.ManagedItemSet,{constructor:function(_68,_69){
this.widgetId=_68;
this.user=_69;
},getItemValue:function(_6a){
var _6b=this.user.getAttribute(_6a);
if(typeof _6b=="undefined"){
_6b=null;
}
return _6b;
},setItemValue:function(_6c,_6d,_6e){
return null;
},isReadOnly:function(_6f){
return true;
},removeItem:function(_70){
return null;
},getAllNames:function(){
return this.user.getAttributeNames();
},save:function(cb){
return null;
},getItemSetDescription:function(){
return null;
}});
}


;if(!dojo._hasResource["com.ibm.mm.enabler.iw.eventImpl"]){
dojo._hasResource["com.ibm.mm.enabler.iw.eventImpl"]=true;
dojo.provide("com.ibm.mm.enabler.iw.eventImpl");




dojo.declare("com.ibm.mm.enabler.iw.iEventImpl",com.ibm.mm.enabler.iw.iEvent,{constructor:function(_1,_2,_3,_4){
this.name=_1;
if(typeof _2!="undefined"){
this.type=_2;
}else{
this.type=null;
}
if(typeof _3!="undefined"){
this.payload=_3;
}else{
this.payload=null;
}
if(typeof _4!="undefined"){
this.source=_4;
}else{
this.source=null;
}
this.source=_4;
}});
dojo.declare("com.ibm.mm.enabler.iw.iEventDescriptionImpl",com.ibm.mm.enabler.iw.iEventDescription,{constructor:function(_5,_6,_7,_8,_9,_a,_b){
this.name=_5;
if(typeof _7!="undefined"){
this.type=_7;
}else{
this.type=null;
}
if(typeof _8!="undefined"){
this.description=_8;
}else{
this.description=null;
}
if(typeof _9!="undefined"){
this.aliases=_9;
}else{
this.aliases=null;
}
if(typeof _6!="undefined"){
this.handlingFn=_6;
}else{
this.handlingFn=null;
}
this.lang=_a;
this.descriptions=_b;
},getDescription:function(_c){
return this._getLocalizedAttribute("description",_c);
},getTitle:function(_d){
return this._getLocalizedAttribute("title",_d);
},_getLocalizedAttribute:function(_e,_f){
var _10=null,_11=null;
var _12=com.ibm.mm.enabler.utilities.getLocale(this,_f,this.lang);
if(typeof this.descriptions!="undefined"&&this.descriptions!=null){
_11=this.descriptions[_12];
if(typeof _11!="undefined"&&_11!=null){
_10=_11[_e];
}
}
if(typeof _10=="undefined"||_10==null){
_10=this[_e];
}
if(typeof _10=="undefined"){
_10=null;
}
return _10;
},setOnRemoveWire:function(_13){
if(typeof _13=="undefined"||_13===null){
_13="onRemoveWire";
}
this.onRemoveWire=_13;
},getOnRemoveWire:function(){
if(this.onRemoveWire){
return this.onRemoveWire;
}
return null;
},setOnNewWire:function(_14){
if(typeof _14=="undefined"||_14===null){
_14="onNewWire";
}
this.onNewWire=_14;
},getOnNewWire:function(){
if(this.onNewWire){
return this.onNewWire;
}
return null;
},getLocales:function(){
var _15=[];
if(typeof this.descriptions!="undefined"&&this.descriptions!=null){
for(var i in this.descriptions){
_15.push(i);
}
}
return _15;
}});
dojo.declare("com.ibm.mm.enabler.iw.iEventsImpl",com.ibm.mm.enabler.iw.iEvents,{constructor:function(id){
this.id=id;
},publishEvent:function(_16,_17,_18){
var _19=iWidgetContainer.getWidgetById(this.id);
var _1a=new com.ibm.mm.enabler.iw.iEventImpl(_16,_18,_17,null);
var _1b=_19.handleEvent(_16,_1a);
if(!_1b){
iWidgetContainer.eventService.publishWire(this.id,_16,_17,_18);
}
},fireEvent:function(_1c,_1d,_1e){
var _1f=iWidgetContainer.getWidgetById(this.id);
var _20=new com.ibm.mm.enabler.iw.iEventImpl(_1c,_1d,_1e,null);
var _21=_1f.handleEvent(_1c,_20);
if(!_21){
serviceManager.getService("eventService").publishWire(this.id,_1c,_1e,_1d);
}
},addWire:function(_22,_23,_24){
iWidgetContainer.eventService.addWire(this.id,_22,_23,_24);
}});
dojo.declare("com.ibm.mm.enabler.iw.eventHolder",null,{constructor:function(id,_25){
this.targetId=id;
this.data=_25;
},handleLoaded:function(){
if(this.handler){
dojo.unsubscribe(this.handler);
}
dojo.publish("/enabler/eventService/"+this.targetId,this.data);
}});
com.ibm.mm.enabler.iw.iEvents.Constants=new com.ibm.mm.enabler.iw.iEventsConstants();
}


;if(!dojo._hasResource["com.ibm.mm.enabler.services.ConfigService"]){
dojo._hasResource["com.ibm.mm.enabler.services.ConfigService"]=true;
dojo.provide("com.ibm.mm.enabler.services.ConfigService");


dojo.declare("com.ibm.mm.enabler.services.ConfigService",null,{PROXY_URL:"com.ibm.mashups.proxy.url",HUB_URL:"com.ibm.mashups.hub.url",CONTEXT_ROOT_MAIN:"com.ibm.mashups.contextroot",CONTEXT_ROOT_THEME_TEMP:"com.ibm.mashups.contextroot.theme.temp",CONTEXT_ROOT_BUILDER:"com.ibm.mashups.contextroot.builder",CONTEXT_ROOT_ENABLER:"com.ibm.mashups.contextroot.enabler",CONTENTHANDLER_PUBLIC:"com.ibm.mashups.contenthandler.public",CONTENTHANDLER_PRIVATE:"com.ibm.mashups.contenthandler.private",THEMES_FEEDS_EXPIRATION:"themes.feed.expiration",AVAILABLE_LOCALES:"available.locales",TUNNEL_MODE:"tunnel.mode",CLIENT_IS_DEBUG:"isDebug",CLIENT_ALLOW_PUBLISH_LOGGING:"allowPublishLogging",CLIENT_ALLOW_PUBLISH_TRACING:"allowPublishTracing",CLIENT_LOAD_SERVICES:"loadServices",CLIENT_POPUP_CONSOLE:"popupConsole",CLIENT_DEFAULT_THEME_ID:"com.ibm.mashups.theme.defaultThemeId",CLIENT_PAGE_SOURCE_READ_ONLY:"pageSourceReadOnly",CLIENT_AUTO_ACCEPT_SHARED_GROUPNAME:"autoAcceptSharedGroupName",CLIENT_USER_ID_KEY:"userIdKey",CLIENT_GROUP_CN_KEY:"groupCNKey",getPreferenceValue:function(_1){
return this.getValue(_1);
},getValue:function(_2){
com.ibm.mm.enabler.debug.entry("ConfigService.getValue",_2);
var _3=ibmConfig[_2];
com.ibm.mm.enabler.debug.exit("ConfigService.getValue",_3);
return _3;
}});
com.ibm.mm.enabler.services.CONFIG_SERVICE=new com.ibm.mm.enabler.services.ConfigService();
}


;if(!dojo._hasResource["com.ibm.mm.enabler.iw.widget"]){
dojo._hasResource["com.ibm.mm.enabler.iw.widget"]=true;
dojo.provide("com.ibm.mm.enabler.iw.widget");
dojo.declare("com.ibm.mm.enabler.iw.iWidgetWrapper",null,{constructor:function(id){
},getiWidgetMetadata:function(){
},getInstanceAttributes:function(){
}});
dojo.declare("com.ibm.mm.enabler.iw.iWidgetMetadata",null,{CONSTANTS:{"title":"title","icon":"icon"},constructor:function(id){
},getItemValue:function(_1){
},setItemValue:function(_2,_3){
},save:function(){
}});
}


;if(!dojo._hasResource["com.ibm.mm.enabler.iw.widgetImpl"]){
dojo._hasResource["com.ibm.mm.enabler.iw.widgetImpl"]=true;
dojo.provide("com.ibm.mm.enabler.iw.widgetImpl");


dojo.declare("com.ibm.mm.enabler.iw.iWidgetWrapperImpl",com.ibm.mm.enabler.iw.iWidgetWrapper,{constructor:function(id){
this.id=id;
},getiWidgetMetadata:function(){
return new com.ibm.mm.enabler.iw.iWidgetMetadataImpl(this.id);
},getInstanceAttributes:function(){
var _1=iWidgetContainer.getWidgetById(this.id);
if(typeof _1=="undefined"||_1===null){
return null;
}
_1.getWidgetInstance().loadItemSets();
var _2=_1.getWidgetInstance().getWidgetAttributes();
var _3=new com.ibm.mm.enabler.iw.DefaultItemSetImpl();
for(var j in _2){
var _4=j;
var _5=_2[_4]["defaultValue"];
_3.setItemValue(_4,_5,false);
}
return _3;
}});
dojo.declare("com.ibm.mm.enabler.iw.iWidgetMetadataImpl",com.ibm.mm.enabler.iw.iWidgetMetadata,{constructor:function(id){
this._id=id;
this._items={};
this._debug=com.ibm.mm.enabler.debug;
},getItemValue:function(_6){
if(typeof _6=="undefined"||_6===null){
return null;
}
if(!this.CONSTANTS[_6]){
return null;
}
var _7=this._getInternalIWidgetWrapper();
if(_7===null){
return null;
}
var _8=this._items[_6];
if(typeof _8=="undefined"||_8===null){
if(!this._loadData(_6)){
return null;
}
_8=this._items[_6];
}
if(_8["detail"]!="undefined"&&_8["detail"]!=null&&_8["detail"]["defaultValue"]!="undefined"&&_8["detail"]["defaultValue"]!=null){
return _8.detail.defaultValue;
}else{
return null;
}
},setItemValue:function(_9,_a){
if(typeof _9=="undefined"||_9==null||typeof _a=="undefined"||_a===null){
return null;
}
if(!this.CONSTANTS[_9]){
return null;
}
var _b=this._items[_9];
if(typeof _b=="undefined"||_b===null){
this._loadData(_9);
}
this._items[_9].isDirty=true;
this._items[_9].detail.defaultValue=_a;
},save:function(){
var _c=this._getInternalIWidgetWrapper().getWidgetInstance().getiDescriptor();
for(var _d in this._items){
var _e=this._items[_d];
if(_e.isDirty||_e.isDirty==true){
_e.isDirty=false;
this._updateMarkup(_e.detail);
}
}
},_getInternalIWidgetWrapper:function(){
if(typeof (this._internalWidgetWrapper)=="undefined"||this._internalWidgetWrapper===null){
var _f=iWidgetContainer.getWidgetById(this._id);
if(typeof _f=="undefined"||_f===null){
return null;
}
this._internalWidgetWrapper=_f;
}
return this._internalWidgetWrapper;
},_loadData:function(_10){
var rc=false;
var _11={};
var _12=this._getInternalIWidgetWrapper().getWidgetInstance().getiDescriptor();
if(_12!=null&&typeof (_12[_10])!="undefined"&&_12[_10]!=null){
var _13=dojo.toJson(_12[_10]);
_11.isDirty=true;
_11.detail=dojo.fromJson(_13);
rc=true;
}else{
_11.detail={};
_11.detail.itemName=_10;
_11.isDirty=false;
}
this._items[_10]=_11;
return rc;
},_updateMarkup:function(_14){
var _15=_14.itemName;
var _16=_14.defaultValue;
var _17=serviceManager.getService("iWidgetFragmentService");
var _18=_17.getItemSet(this._id,iwConstants.IDESCRIPTOR);
if(_18==null){
var _19=_17.createItemSet(iwConstants.IDESCRIPTOR);
var _1a=dojo.byId(this._id);
_1a.insertBefore(_19,_1a.firstChild.nextSibling);
_18=_17.getItemSet(this._id,iwConstants.IDESCRIPTOR);
}
var _1b=_17.getItem(_18,_15);
if(_1b==null){
var _19=_17.createItem(_15,_16);
_18.appendChild(_19);
}else{
_1b.innerHTML=_16;
}
this._getInternalIWidgetWrapper().getWidgetInstance().loadItemSets();
}});
dojo.declare("com.ibm.mm.enabler.iw.WidgetStub",null,{constructor:function(_1c){
this.id=_1c.id;
this.wires=_1c.getWires();
this.publishedEvents=_1c.getPublishedEvents();
this.handledEvents=_1c.getHandledEvents();
this.payloadDefs=_1c.widgetDef.getPayloadDefs();
this.supportedModes=_1c.widgetDef.getSupportedModes();
},getPublishedEventsNames:function(){
if(!this.publishedEvents){
return null;
}
var _1d=[];
var _1e;
for(_1e in this.publishedEvents){
_1d.push(_1e);
}
if(_1d.length==0){
return null;
}
return _1d;
},getHandledEventsNames:function(){
if(!this.handledEvents){
return null;
}
var _1f=[];
var _20;
for(_20 in this.handledEvents){
_1f.push(_20);
}
if(_1f.length==0){
return null;
}
return _1f;
},getPublishedEvent:function(_21){
if(!this.publishedEvents){
return null;
}
return this.publishedEvents[_21];
},getHandledEvent:function(_22){
if(!this.handledEvents){
return null;
}
return this.handledEvents[_22];
},getPayloadDefs:function(){
return this.payloadDefs;
},getPayloadDef:function(_23){
var _24=this.payloadDefs[_23];
if(typeof _24=="undefined"){
return null;
}
return _24;
},getPayloadDefNames:function(){
var arr=[];
var a;
for(a in this.payloadDefs){
arr.push(a);
}
if(arr.length==0){
return null;
}
return arr;
},getWires:function(){
var arr=this.wires;
if(typeof arr=="undefined"){
arr=null;
}else{
if(arr.length&&arr.length==0){
arr=null;
}
}
return arr;
},getSupportedModes:function(){
return this.supportedModes;
}});
dojo.declare("com.ibm.mm.enabler.iw.WidgetDefinition",null,{constructor:function(_25,_26,_27,_28,_29,uri,_2a,_2b,_2c,_2d,_2e,_2f){
var _30=_25;
if(dojo.isString(_30)){
this.name=_25;
this.markup=_26;
this.iScope=_27;
this.itemSetsArr=_28;
this.uri=uri;
this.widgetEvents=_29;
this.publishedEvents=_2b;
this.handledEvents=_2c;
this.supportedModes=_2a;
this.resources=_2d;
this.payloadDefs=_2e;
this.iDescriptor=_2f;
}else{
this.name=_30["name"];
this.markup=_30["markup"];
this.metaData=_30["metaData"];
this.events=_30["events"];
this.itemSets=_30["itemSets"];
this.resources=_30["resources"];
this.payloadDefs=_30["payloadDefs"];
this.iScope=this.metaData["iScope"];
this.supportedModes=this.metaData["supportedModes"];
this.uri=this.metaData["contentURI"];
var _31;
this.widgetEvents={};
for(_31 in this.metaData){
if(_31.indexOf("on")==0){
this.widgetEvents[_31]=this.metaData[_31];
}
}
var _32=_30["events"]["publishedEvents"];
this.publishedEvents={};
this.handledEvents={};
var _33;
for(_33 in _32){
var _31=_32[_33];
var _34=new com.ibm.mm.enabler.iw.iEventDescriptionImpl(_31.eventName,_31.payloadType,_31.description,_31.onEvent);
if(!this.publishedEvents[_33]){
this.publishedEvents[_33]=[];
}
this.publishedEvents[_33].push(_34);
}
var _35=_30["events"]["handledEvents"];
for(_33 in _35){
var _31=_35[_33];
var _34=new com.ibm.mm.enabler.iw.iEventDescriptionImpl(_31.eventName,_31.payloadType,_31.description,_31.onEvent);
if(!this.handledEvents[_33]){
this.handledEvents[_33]=[];
}
this.handledEvents[_33].push(_34);
}
var _36;
this.itemSetsArr={};
for(_36 in _30["itemSets"]){
var _37=_30["itemSets"][_36];
if(_36=="attributes"){
var _38=new com.ibm.mm.enabler.iw.DefaultItemSetImpl(_37.name,_37.onItemSetChanged);
}else{
var _38=new com.ibm.mm.enabler.iw.DefaultItemSetImpl(_37.name,_37.onItemSetChanged);
}
_38["itemLists"]["items"]=_37["itemLists"];
this.itemSetsArr[_36]=_38;
}
}
},getPublishedEvents:function(){
return this.publishedEvents;
},getHandledEvents:function(){
return this.handledEvents;
},getAttributes:function(){
var _39=this.itemSetsArr["attributes"];
if(typeof _39=="undefined"||_39==null){
_39={name:"attributes",items:{}};
}
if(typeof (this.uri)!="undefined"&&_39!=null){
_39.items["contentURI"]={id:"contentURI",value:this.uri,readOnly:false};
}
if(typeof (this.supportedModes)!="undefined"&&_39!=null){
_39.items["supportedModes"]={id:"supportedModes",value:this.uri,readOnly:false};
}
return _39;
},getAllItemSetNames:function(){
var _3a=new Array();
if(typeof (this.itemSetsArr)=="undefined"||this.itemSetsArr==null){
return _3a;
}
var i=0;
for(itemName in this.itemSetsArr){
var _3b=this.itemSetsArr[itemName];
if(typeof (_3b)!="undefined"){
_3a[i]=_3b.name;
}
i++;
}
return _3a;
},getItemSet:function(_3c){
if(_3c=="attributes"){
return this.getAttributes();
}
var _3d=this.itemSetsArr[_3c];
if(typeof (_3d)!="undefined"){
return _3d;
}
return null;
},getPublishedEventsNames:function(){
if(!this.publishedEvents){
return null;
}
var _3e=[];
var _3f;
for(_3f in this.publishedEvents){
_3e.push(_3f);
}
return _3e;
},getHandledEventsNames:function(){
if(!this.handledEvents){
return null;
}
var _40=[];
var _41;
for(_41 in this.handledEvents){
_40.push(_41);
}
return _40;
},getPublishedEvent:function(_42){
if(!this.publishedEvents){
return null;
}
return this.publishedEvents[_42];
},getHandledEvent:function(_43){
if(!this.handledEvents){
return null;
}
return this.handledEvents[_43];
},getWidgetName:function(){
return this.name;
},getPayloadDefs:function(){
return this.payloadDefs;
},getPayloadDef:function(_44){
var _45=this.payloadDefs[_44];
if(typeof _45=="undefined"){
return null;
}
return _45;
},getPayloadDefNames:function(){
var arr=[];
var a;
for(a in this.payloadDefs){
arr.push(a);
}
return arr;
},getSupportedModes:function(){
var _46=this.supportedModes;
if(typeof _46=="undefined"||_46==null){
return null;
}
var arr=_46.split(" ");
return arr;
},getiDescriptor:function(){
return null;
},getMarkupByMode:function(_47){
return this.markup;
},getWidgetEvents:function(){
return this.widgetEvents;
},getIScope:function(){
return this.iScope;
},getResources:function(){
return this.resources;
},getDefaultLanguage:function(){
return "en";
},getMarkup:function(){
return this.markup;
},getAllowInstanceContent:function(){
return false;
}});
dojo.declare("com.ibm.mm.enabler.iw.standardWidgetDefinition",null,{constructor:function(_48){
this.widgetDef=_48;
},getAllowInstanceContent:function(){
return this.widgetDef.allowInstanceContent;
},getResources:function(){
return this.widgetDef.resources;
},getIScope:function(){
return this.widgetDef.iScope;
},getWidgetEvents:function(){
return this.widgetDef.widgetEvents;
},getMarkupByMode:function(_49){
if(typeof this.widgetDef.markup!="undefined"&&this.widgetDef.markup!=null){
if(!_49){
_49="view";
}
var _4a=this.widgetDef.markup[_49];
return _4a;
}else{
return null;
}
},getAttributes:function(){
var _4b=this.widgetDef.itemSetsArr[iwConstants.ATTRIBUTES];
if(typeof _4b=="undefined"||_4b==null){
_4b={name:iwConstants.ATTRIBUTES};
_4b.items={};
}
_4b.isPrivate=true;
var _4c=this.widgetDef.simpleAttributes;
if(typeof _4c!="undefined"&&_4c!=null){
for(var i in _4c){
var _4d=_4c[i];
if(typeof _4d!="undefined"&&_4d!=null){
if(!_4b.items[i]){
_4b.items[i]={id:i,value:_4d,readOnly:false};
}
}
}
}
return _4b;
},getAllItemSetNames:function(){
var _4e=new Array();
if(typeof (this.widgetDef.itemSetsArr)=="undefined"||this.widgetDef.itemSetsArr==null){
return _4e;
}
var i=0;
for(itemName in this.widgetDef.itemSetsArr){
var _4f=this.widgetDef.itemSetsArr[itemName];
if(typeof (_4f)!="undefined"&&itemName!=iwConstants.ATTRIBUTES){
_4e[i]=_4f.name;
i++;
}
}
return _4e;
},getItemSet:function(_50){
if(_50=="attributes"){
return this.getAttributes();
}
var _51=this.widgetDef.itemSetsArr[_50];
if(typeof _51=="undefined"||_51==null){
return null;
}
return _51;
},getPublishedEventsNames:function(){
if(!this.widgetDef.publishedEvents){
return [];
}
var _52=[];
var _53;
for(_53 in this.widgetDef.publishedEvents){
_52.push(_53);
}
return _52;
},getHandledEventsNames:function(){
if(!this.widgetDef.handledEvents){
return [];
}
var _54=[];
var _55;
for(_55 in this.widgetDef.handledEvents){
_54.push(_55);
}
return _54;
},getPublishedEvent:function(_56){
if(!this.widgetDef.publishedEvents){
return null;
}
var _57=this.widgetDef.publishedEvents[_56];
var _58=null;
if(typeof _57!="undefined"||_57!=null){
var _59=_57.description;
var _5a=null;
if(typeof _59!="undefined"&&_59!=null){
_5a=this._getEventDescription(_59);
if(_5a!=null){
var _5b=_5a.lang;
if(typeof _5b=="undefined"||_5b==null){
_5b=this.getDefaultLanguage();
if(typeof _5b=="undefined"||_5b==null){
_5b="en";
}
}
}
}
if(_5a!=null){
_58=new com.ibm.mm.enabler.iw.iEventDescriptionImpl(_56,_57.onEvent,_5a.payloadType,_5a.description,_5a.aliases,_5b,_5a.descriptions);
}else{
_58=new com.ibm.mm.enabler.iw.iEventDescriptionImpl(_56,_57.onEvent);
}
if(_57.onRemoveWire){
_58.setOnRemoveWire(_57.onRemoveWire);
}
if(_57.onNewWire){
_58.setOnNewWire(_57.onNewWire);
}
}
return _58;
},getHandledEvent:function(_5c){
if(!this.widgetDef.handledEvents){
return null;
}
var _5d=this.widgetDef.handledEvents[_5c];
var _5e=null;
if(typeof _5d!="undefined"||_5d!=null){
var _5f=_5d.description;
var _60=null;
if(typeof _5f!="undefined"&&_5f!=null){
_60=this._getEventDescription(_5f);
if(_60!=null){
var _61=_60.lang;
if(typeof _61=="undefined"||_61==null){
_61=this.getDefaultLanguage();
if(typeof _61=="undefined"||_61==null){
_61="en";
}
}
}
}
if(_60!=null){
_5e=new com.ibm.mm.enabler.iw.iEventDescriptionImpl(_5c,_5d.onEvent,_60.payloadType,_60.description,_60.aliases,_61,_60.descriptions);
}else{
_5e=new com.ibm.mm.enabler.iw.iEventDescriptionImpl(_5c,_5d.onEvent);
}
if(_5d.onRemoveWire){
_5e.setOnRemoveWire(_5d.onRemoveWire);
}
if(_5d.onNewWire){
_5e.setOnNewWire(_5d.onNewWire);
}
}
return _5e;
},getWidgetId:function(){
return this.widgetDef.id;
},getWidgetName:function(){
return this.widgetDef.id;
},getPayloadDefs:function(){
return this.widgetDef.payloadDefs;
},getPayloadDef:function(_62){
var _63=this.widgetDef.payloadDefs[_62];
if(typeof _63=="undefined"){
return null;
}
return _63;
},getPayloadDefNames:function(){
var arr=[];
var a;
for(a in this.widgetDef.payloadDefs){
arr.push(a);
}
return arr;
},getSupportedModes:function(){
var _64=this.widgetDef.supportedModes;
if(typeof _64=="undefined"||_64==null){
return null;
}
var arr=_64.split(" ");
return arr;
},getiDescriptor:function(){
return this.widgetDef.iDescriptor;
},_getEventDescription:function(id){
var _65=null;
if(typeof this.widgetDef.eventDescriptions!="undefined"||this.widgetDef.eventDescriptions!=null){
_65=this.widgetDef.eventDescriptions[id];
}
return _65;
},getPublishedEvents:function(){
var _66={};
var _67=this.getPublishedEventsNames();
for(var i=0;i<_67.length;i++){
var _68=_67[i];
var _69=this.getPublishedEvent(_68);
if(_69!=null){
_66[_68]=[_69];
}
}
return _66;
},getHandledEvents:function(){
var _6a={};
var _6b=this.getHandledEventsNames();
for(var i=0;i<_6b.length;i++){
var _6c=_6b[i];
var _6d=this.getHandledEvent(_6c);
if(_6d!=null){
_6a[_6c]=[_6d];
}
}
return _6a;
},getDefaultLanguage:function(){
return this.widgetDef.lang;
},getMarkup:function(){
return this.widgetDef.markup;
}});
}


;define("dojox/uuid/Uuid",["dojo/_base/lang","./_base"],function(_1,_2){
dojox.uuid.Uuid=function(_3){
this._uuidString=dojox.uuid.NIL_UUID;
if(_3){
dojox.uuid.assert(_1.isString(_3));
this._uuidString=_3.toLowerCase();
dojox.uuid.assert(this.isValid());
}else{
var _4=dojox.uuid.Uuid.getGenerator();
if(_4){
this._uuidString=_4();
dojox.uuid.assert(this.isValid());
}
}
};
dojox.uuid.Uuid.compare=function(_5,_6){
var _7=_5.toString();
var _8=_6.toString();
if(_7>_8){
return 1;
}
if(_7<_8){
return -1;
}
return 0;
};
dojox.uuid.Uuid.setGenerator=function(_9){
dojox.uuid.assert(!_9||_1.isFunction(_9));
dojox.uuid.Uuid._ourGenerator=_9;
};
dojox.uuid.Uuid.getGenerator=function(){
return dojox.uuid.Uuid._ourGenerator;
};
dojox.uuid.Uuid.prototype.toString=function(){
return this._uuidString;
};
dojox.uuid.Uuid.prototype.compare=function(_a){
return dojox.uuid.Uuid.compare(this,_a);
};
dojox.uuid.Uuid.prototype.isEqual=function(_b){
return (this.compare(_b)==0);
};
dojox.uuid.Uuid.prototype.isValid=function(){
return dojox.uuid.isValid(this);
};
dojox.uuid.Uuid.prototype.getVariant=function(){
return dojox.uuid.getVariant(this);
};
dojox.uuid.Uuid.prototype.getVersion=function(){
if(!this._versionNumber){
this._versionNumber=dojox.uuid.getVersion(this);
}
return this._versionNumber;
};
dojox.uuid.Uuid.prototype.getNode=function(){
if(!this._nodeString){
this._nodeString=dojox.uuid.getNode(this);
}
return this._nodeString;
};
dojox.uuid.Uuid.prototype.getTimestamp=function(_c){
if(!_c){
_c=null;
}
switch(_c){
case "string":
case String:
return this.getTimestamp(Date).toUTCString();
break;
case "hex":
if(!this._timestampAsHexString){
this._timestampAsHexString=dojox.uuid.getTimestamp(this,"hex");
}
return this._timestampAsHexString;
break;
case null:
case "date":
case Date:
if(!this._timestampAsDate){
this._timestampAsDate=dojox.uuid.getTimestamp(this,Date);
}
return this._timestampAsDate;
break;
default:
dojox.uuid.assert(false,"The getTimestamp() method dojox.uuid.Uuid was passed a bogus returnType: "+_c);
break;
}
};
return dojox.uuid.Uuid;
});


;if(!dojo._hasResource["com.ibm.mm.enabler.xpath"]){
dojo._hasResource["com.ibm.mm.enabler.xpath"]=true;
dojo.provide("com.ibm.mm.enabler.xpath");
com.ibm.mm.enabler.xpath.evaluateXPath=function(_1,_2,_3){
if(navigator.userAgent.toLowerCase().indexOf("safari")!=-1){
return com.ibm.mm.enabler.xpath.safari.evaluateXPath(_1,_2,_3);
}else{
if(typeof ActiveXObject!="undefined"){
return com.ibm.mm.enabler.xpath.ie.evaluateXPath(_1,_2,_3);
}else{
return com.ibm.mm.enabler.xpath.gecko.evaluateXPath(_1,_2,_3);
}
}
};
dojo.provide("com.ibm.mm.enabler.xpath.safari");
com.ibm.mm.enabler.xpath.safari.evaluateXPath=function(_4,_5,_6){
var _7;
if(typeof XPathResult!="undefined"){
var _8=document.evaluate(_4,_5,function(_9){
return _6[_9]||null;
},XPathResult.ANY_TYPE,null);
var _a;
_7=[];
var _b=0;
do{
_a=_8.iterateNext();
if(_a){
_7[_b]=_a;
_b++;
}
}while(_a);
}else{
if(_5.selectNodes){
_7=_5.selectNodes(_4);
}
}
return _7;
};
dojo.provide("com.ibm.mm.enabler.xpath.ie");
com.ibm.mm.enabler.xpath.ie.evaluateXPath=function(_c,_d,_e){
if(_e){
var ns="";
for(var _f in _e){
if(_f!="xml"){
ns+="xmlns:"+_f+"='"+_e[_f]+"' ";
}
}
if(_d.ownerDocument){
_d.ownerDocument.setProperty("SelectionNamespaces",ns);
_d.ownerDocument.setProperty("SelectionLanguage","XPath");
}else{
_d.setProperty("SelectionNamespaces",ns);
_d.setProperty("SelectionLanguage","XPath");
}
}
var _10=_d.selectNodes(_c);
var _11;
var _12=[];
var len=0;
for(var i=0;i<_10.length;i++){
_11=_10[i];
if(_11){
_12[len]=_11;
len++;
}
}
return _12;
};
dojo.provide("com.ibm.mm.enabler.xpath.gecko");
com.ibm.mm.enabler.xpath.gecko.evaluateXPath=function(_13,doc,_14){
var _15;
try{
var _16=doc;
if(doc.nodeType!=9){
_16=doc.ownerDocument;
}
_15=_16.evaluate(_13,doc,function(_17){
return _14[_17]||null;
},XPathResult.ANY_TYPE,null);
}
catch(exc){
throw new Error("Error with xpath expression"+exc);
}
var _18;
var _19=[];
var len=0;
do{
_18=_15.iterateNext();
if(_18){
_19[len]=_18;
len++;
}
}while(_18);
return _19;
};
}


;if(!dojo._hasResource["com.ibm.mm.enabler.xslt"]){
dojo._hasResource["com.ibm.mm.enabler.xslt"]=true;
dojo.provide("com.ibm.mm.enabler.xslt");
com.ibm.mm.enabler.xslt.ie={};
com.ibm.mm.enabler.xslt.gecko={};
com.ibm.mm.enabler.xslt.getXmlHttpRequest=function(){
var _1=null;
if(typeof ActiveXObject!="undefined"){
_1=new ActiveXObject("Microsoft.XMLHTTP");
}else{
_1=new XMLHttpRequest();
}
return _1;
};
com.ibm.mm.enabler.xslt.loadXml=function(_2){
if(typeof ActiveXObject!="undefined"){
return com.ibm.mm.enabler.xslt.ie.loadXml(_2);
}else{
return com.ibm.mm.enabler.xslt.gecko.loadXml(_2);
}
};
com.ibm.mm.enabler.xslt.loadXmlString=function(_3){
if(typeof ActiveXObject!="undefined"){
return com.ibm.mm.enabler.xslt.ie.loadXmlString(_3);
}else{
var _4=new DOMParser();
return com.ibm.mm.enabler.xslt.gecko.loadXmlString(_3);
}
};
com.ibm.mm.enabler.xslt.loadXsl=function(_5){
if(typeof ActiveXObject!="undefined"){
return com.ibm.mm.enabler.xslt.ie.loadXsl(_5);
}else{
return com.ibm.mm.enabler.xslt.gecko.loadXsl(_5);
}
};
com.ibm.mm.enabler.xslt.transform=function(_6,_7,_8,_9,_a){
com.ibm.mm.enabler.debug.entry("xslt.transform",_6,_7,_8,_9,_a);
if(typeof ActiveXObject!="undefined"){
return com.ibm.mm.enabler.xslt.ie.transform(_6,_7,_8,_9,_a);
}else{
return com.ibm.mm.enabler.xslt.gecko.transform(_6,_7,_8,_9,_a);
}
};
com.ibm.mm.enabler.xslt.transformAndUpdate=function(_b,_c,_d,_e,_f){
com.ibm.mm.enabler.debug.entry("xslt.transformAndUpdate",_b,_c,_d,_e,_f);
if(typeof ActiveXObject!="undefined"){
var _10=com.ibm.mm.enabler.xslt.ie.transform(_c,_d,_e,_f,true);
com.ibm.mm.enabler.debug.log("xslt.transformAndUpdate","XSLT result: "+_10);
_b.innerHTML+=_10;
}else{
_10=com.ibm.mm.enabler.xslt.gecko.transform(_c,_d,_e,_f,false);
com.ibm.mm.enabler.debug.log("xslt.transformAndUpdate","XSLT result: "+(new XMLSerializer()).serializeToString(_10),"com.ibm.mm.enabler.xslt.transformAndUpdate");
var _11=_10.documentElement;
if(_10.documentElement.tagName=="transformiix:result"){
_11=_10.documentElement.childNodes;
com.ibm.mm.enabler.dom.copyChildren(_10.documentElement,_b,true);
}else{
com.ibm.mm.enabler.debug.log("xslt.transformAndUpdate","Appending2: "+(new XMLSerializer()).serializeToString(_11),"com.ibm.mm.enabler.xslt.transformAndUpdate");
_b.appendChild(_11);
}
}
com.ibm.mm.enabler.debug.exit("xslt.transformAndUpdate");
};
com.ibm.mm.enabler.xslt.ie.loadXml=function(_12){
var _13=new ActiveXObject("MSXML2.DOMDocument");
_13.async=0;
_13.resolveExternals=0;
if(!_13.load(_12)){
throw new Error("Error loading xml file "+_12);
}
return _13;
};
com.ibm.mm.enabler.xslt.ie.loadXmlString=function(_14){
var _15=new ActiveXObject("MSXML2.DOMDocument");
_15.async=0;
_15.resolveExternals=0;
if(!_15.loadXML(_14)){
throw new Error("Error loading xml string "+_14);
}
return _15;
};
com.ibm.mm.enabler.xslt.ie.loadXsl=function(_16){
var _17=new ActiveXObject("MSXML2.FreeThreadedDOMDocument");
_17.async=0;
_17.resolveExternals=0;
if(!_17.load(_16)){
throw new Error("Error loading xsl file "+_16);
}
return _17;
};
com.ibm.mm.enabler.xslt.ie.transform=function(_18,xsl,_19,_1a,_1b){
var _1c=_18;
var _1d=xsl;
try{
if(!_1d.documentElement){
_1d=this.loadXsl(xsl);
}
}
catch(e){
var _1e=e.message;
throw new Error(""+_1e,""+_1e);
}
var _1f=new ActiveXObject("Msxml2.XSLTemplate");
_1f.stylesheet=_1d;
var _20=_1f.createProcessor();
_20.input=_1c;
if(_1a){
for(var p in _1a){
_20.addParameter(p,_1a[p]);
}
}
if(_19){
_20.addParameter("mode",_19);
}
if(_1b){
if(!_20.transform()){
throw new Error("Error transforming xml doc "+_1c);
}
return _20.output;
}else{
var _21=new ActiveXObject("MSXML2.DOMDocument");
_21.async=0;
_21.validateOnParse=1;
_1c.transformNodeToObject(_1d,_21);
return _21;
}
};
com.ibm.mm.enabler.xslt.gecko.loadXml=function(_22){
};
com.ibm.mm.enabler.xslt.gecko.loadXmlString=function(_23){
var _24=new DOMParser();
try{
oXmlDoc=_24.parseFromString(_23,"text/xml");
}
catch(exc){
throw new Error("Error loading xml string "+_23);
}
return oXmlDoc;
};
com.ibm.mm.enabler.xslt.gecko.loadXsl=function(_25){
var _26=document.implementation.createDocument("","",null);
_26.async=0;
_26.load(_25);
return _26;
};
com.ibm.mm.enabler.xslt.gecko.transform=function(_27,xsl,_28,_29,_2a){
try{
var _2b=xsl;
if(!_2b.documentElement){
_2b=this.loadXsl(xsl);
}
var _2c=new XSLTProcessor();
_2c.importStylesheet(_2b);
if(_29){
for(var p in _29){
_2c.setParameter(null,p,_29[p]);
}
}
if(_28){
_2c.setParameter(null,"mode",_28);
}
var _2d=_2c.transformToDocument(_27);
if(!_2a){
return _2d;
}
resultStr=_2d.documentElement.childNodes[0].textContent;
}
catch(exc){
throw new Error("Error transforming xml doc "+exc);
}
return resultStr;
};
com.ibm.mm.enabler.xslt.setLayerContentByXml=function(_2e,xml,xsl,_2f,_30){
var _31=com.ibm.mm.enabler.xslt.transform(xml,xsl,null,_2f,_30);
if(_2e.innerHTML){
_2e.innerHTML=_31;
}else{
var obj=document.getElementById(_2e);
obj.innerHTML=_31;
}
};
}


;if(!dojo._hasResource["com.ibm.mm.enabler.iw.parserImpl"]){
dojo._hasResource["com.ibm.mm.enabler.iw.parserImpl"]=true;
dojo.provide("com.ibm.mm.enabler.iw.parserImpl");


dojo.declare("com.ibm.mm.enabler.iw.parser.WidgetParser",null,{parseWidgetDefinition:function(){
return null;
}});
dojo.declare("com.ibm.mm.enabler.iw.parser.legacyXMLParser",com.ibm.mm.enabler.iw.parser.WidgetParser,{constructor:function(_1){
this.xmlStr=_1;
},namespaces:{"iw":"http://www.ibm.com/iWidget"},parseWidgetDefinition:function(){
var _2=com.ibm.mm.enabler.xslt.loadXmlString(this.xmlStr);
var _3=this.readMarkup(_2);
var _4=this.readItemSets(_2);
var _5=this.readContentURI(_2);
var _6=this.readWidgetEvents(_2);
var _7=this.readName(_2);
var _8=this.readiScope(_2);
var _9=this.readSupportedModes(_2);
var _a=this.readPublicEvents(_2,"iw:handledEvents");
var _b=this.readPublicEvents(_2,"iw:publishedEvents");
var _c=this.readResources(_2);
var _d=this.readPayloadDefs(_2);
var _e=this.readIDescriptor(_2);
return new com.ibm.mm.enabler.iw.WidgetDefinition(_7,_3,_8,_4,_6,_5,_9,_b,_a,_c,_d,_e);
},readMarkup:function(_f){
com.ibm.mm.enabler.debug.entry("legacyXMLParser.readMarkup",_f.text);
var _10="/iw:iwidget/iw:content";
var _11=com.ibm.mm.enabler.xpath.evaluateXPath(_10,_f,this.namespaces);
var _12="";
if(_11!=null&&_11.length>0){
var _13=_11[0];
var _14=_13.childNodes;
for(var j=0;j<_14.length;j++){
var _15=_14[j];
if(_15.nodeType==4){
_12=_12.concat(_15.nodeValue);
}else{
if(_15.nodeType==3){
_12=_12.concat(_15.nodeValue);
}
}
}
}
com.ibm.mm.enabler.debug.exit("legacyXMLParser.readMarkup",_12);
return _12;
},readSupportedModes:function(_16){
var _17=_16.documentElement;
var _18=_17.getAttribute("supportedModes");
if(typeof _18=="undefined"||_18==null){
return null;
}
return _18;
},readItemSets:function(_19){
com.ibm.mm.enabler.debug.entry("legacyXMLParser.readItemSets");
var _1a={};
var _1b="/iw:iwidget/iw:itemSet";
var _1c=com.ibm.mm.enabler.xpath.evaluateXPath(_1b,_19,this.namespaces);
for(var i=0;i<_1c.length;i++){
var _1d=_1c[i];
var _1e=_1d.getAttribute("name");
var _1f=_1d.getAttribute("onItemSetChanged");
var _20={name:_1e,onItemSetChanged:_1f};
_20.items={};
var _21=_1d.childNodes;
for(var j=0;j<_21.length;j++){
var _22=_21[j];
if(_22.nodeType==1){
var _23=_22.getAttribute("readOnly");
com.ibm.mm.enabler.debug.entry("legacyXMLParser.readItemSets found attribute name:"+_22.getAttribute("name")+" value:"+_22.getAttribute("value"));
var _24={id:_22.getAttribute("name"),value:_22.getAttribute("value"),readOnly:_23};
_20.items[_24.id]=_24;
}
}
_1a[_1e]=_20;
}
com.ibm.mm.enabler.debug.exit("legacyXMLParser.readItemSets");
return _1a;
},readPayloadDefs:function(_25){
com.ibm.mm.enabler.debug.entry("legacyXMLParser.readPayloadDefs");
var _26={};
var _27="/iw:iwidget/iw:payloadDef";
var _28=com.ibm.mm.enabler.xpath.evaluateXPath(_27,_25,this.namespaces);
for(var i=0;i<_28.length;i++){
var _29=_28[i];
var _2a=com.ibm.mm.enabler.iw.utils.getPayloadDef(_29);
_26[_2a.name]=_2a;
}
com.ibm.mm.enabler.debug.exit("legacyXMLParser.readPayloadDef ",_28.length+" payloadDefs are saved ");
return _26;
},readName:function(_2b){
var _2c=_2b.documentElement;
var _2d=_2c.getAttribute("name");
if(typeof _2d=="undefined"||_2d==null){
return null;
}
return _2d;
},readContentURI:function(_2e){
var _2f=_2e.documentElement;
var uri=_2f.getAttribute("contentURI");
if(typeof uri=="undefined"||uri==null){
return null;
}
return uri;
},readiScope:function(_30){
var _31=_30.documentElement;
var _32=_31.getAttribute("iScope");
if(typeof _32=="undefined"||_32==null){
return null;
}
return _32;
},readWidgetEvents:function(_33){
var _34=_33.documentElement;
var _35={};
var _36=_34.attributes;
for(var i=0;i<_36.length;i++){
var _37=_36[i];
if(_37.name.indexOf("on")==0){
var _38=_37.value;
if(typeof _38!="undefined"&&_38!=null){
_35[_37.name]=_38;
}
}
}
return _35;
},readPublicEvents:function(_39,_3a){
var _3b="/iw:iwidget/"+_3a;
var _3c=com.ibm.mm.enabler.xpath.evaluateXPath(_3b,_39,this.namespaces);
if(typeof _3c!="undefined"&&_3c!=null&&_3c.length!=0){
var _3d={};
var _3e=_3c[0];
var _3f=_3e.childNodes;
for(var j=0;j<_3f.length;j++){
var _40=_3f[j];
if(_40.nodeType==1){
var _41=new com.ibm.mm.enabler.iw.iEventDescriptionImpl(_40.getAttribute("eventName"),_40.getAttribute("onEvent"),_40.getAttribute("payloadType"),_40.getAttribute("description"));
if(!_3d[_40.getAttribute("eventName")]){
_3d[_40.getAttribute("eventName")]=[];
}
_3d[_40.getAttribute("eventName")].push(_41);
}
}
}
if(!_3d){
return null;
}
return _3d;
},readResources:function(_42){
var _43="/iw:iwidget/iw:resource";
var _44=[];
var _45=com.ibm.mm.enabler.xpath.evaluateXPath(_43,_42,this.namespaces);
if(typeof _45!="undefined"&&_45!=null&&_45.length!=0){
for(var i=0;i<_45.length;i++){
var _46=_45[i];
var _47={};
_47["name"]=_46.getAttribute("resourceName");
_47["src"]=_46.getAttribute("uri");
_47["version"]=_46.getAttribute("version");
_47["callback"]=_46.getAttribute("callback");
_47["mimetype"]=_46.getAttribute("mimetype");
_44[i]=_47;
}
}
return _44;
},readIDescriptor:function(_48){
return null;
}});
dojo.declare("com.ibm.mm.enabler.iw.parser.standardXMLParser",com.ibm.mm.enabler.iw.parser.WidgetParser,{constructor:function(_49){
this.xmlStr=_49;
},namespaces:{"iw":"http://www.ibm.com/xmlns/prod/iWidget"},reservedAttributes:{iScope:"iScope",supportedModes:"supportedModes",id:"id",allowInstanceContent:"allowInstanceContent",lang:"language","xmlns:iw":"xmlns:iw"},parseWidgetDefinition:function(){
var _4a=com.ibm.mm.enabler.xslt.loadXmlString(this.xmlStr);
var _4b=this.readRootElement(_4a);
_4b.markup=this.readMarkup(_4a);
_4b.itemSetsArr=this.readItemSets(_4a);
_4b.handledEvents=this.readPublicEvents(_4a,"handled");
_4b.publishedEvents=this.readPublicEvents(_4a,"published");
_4b.resources=this.readResources(_4a);
_4b.payloadDefs=this.readPayloadDefs(_4a);
_4b.eventDescriptions=this.readEventDescriptions(_4a);
return new com.ibm.mm.enabler.iw.standardWidgetDefinition(_4b);
},readRootElement:function(_4c){
var _4d={};
var _4e=_4c.documentElement;
var _4f=_4e.getAttribute("supportedModes");
if(typeof _4f=="undefined"||_4f==null){
_4f="view";
}
_4d.supportedModes=_4f;
var _50=_4e.getAttribute("id");
if(typeof _50=="undefined"||_50==null){
_50=null;
}
_4d.id=_50;
_4d.name=_50;
var _51=_4e.getAttribute("allowInstanceContent");
var _52=false;
if(typeof _51!="undefined"&&_51!=null&&_51=="true"){
_52=true;
}
_4d.allowInstanceContent=_52;
var _53=_4e.getAttribute("language");
if(typeof _53=="undefined"||_53==null){
_53="en";
}
_4d.lang=_53;
var _54={};
var _55=_4e.attributes;
for(var i=0;i<_55.length;i++){
var _56=_55[i];
if(_56.name.indexOf("on")==0){
var _57=_56.value;
if(typeof _57!="undefined"&&_57!=null){
_54[_56.name]=_57;
}
}
}
_4d.widgetEvents=_54;
var _58=_4e.getAttribute("iScope");
if(typeof _58=="undefined"||_58==null){
_58=null;
}
_4d.iScope=_58;
var _59=iwConstants.iDescriptorItems;
var _5a={};
for(var i in _59){
var _50=_59[i];
var _5b=_4e.getAttribute(_50);
_5a[_50]=_5b;
}
_4d.iDescriptor=_5a;
var _5c={};
var _55=_4e.attributes;
for(var i=0;i<_55.length;i++){
var att=_55[i];
if(att.name.indexOf("on")!=0&&!iwConstants.iDescriptorItems[att.name]&&!this.reservedAttributes[att.name]){
var _5b=att.value;
if(typeof _5b!="undefined"&&_5b!=null){
_5c[att.name]=_5b;
}
}
}
_4d.simpleAttributes=_5c;
return _4d;
},readMarkup:function(_5d){
com.ibm.mm.enabler.debug.entry("standardXMLParser.readMarkup",_5d.text);
var _5e="/iw:iwidget/iw:content";
var _5f=com.ibm.mm.enabler.xpath.evaluateXPath(_5e,_5d,this.namespaces);
var _60={};
var _61="";
var _62=null;
if(_5f!=null&&_5f.length>0){
for(var i=0;i<_5f.length;i++){
var _63=_5f[i];
var _64=_63.childNodes;
for(var j=0;j<_64.length;j++){
var _65=_64[j];
if(_65.nodeType==4){
_61=_61.concat(_65.nodeValue);
}else{
if(_65.nodeType==3){
_61=_61.concat(_65.nodeValue);
}
}
}
_62=_63.getAttribute("mode");
if(typeof _62=="undefined"||_62==null){
_62="view";
break;
}
_60[_62]=_61;
_61="";
}
}
com.ibm.mm.enabler.debug.exit("standardXMLParser.readMarkup",_60);
return _60;
},readItemSets:function(_66){
com.ibm.mm.enabler.debug.entry("standardXMLParser.readItemSets");
var _67={};
var _68="/iw:iwidget/iw:itemSet";
var _69=com.ibm.mm.enabler.xpath.evaluateXPath(_68,_66,this.namespaces);
for(var i=0;i<_69.length;i++){
var _6a=_69[i];
var _6b=_6a.getAttribute("id");
var _6c=_6a.getAttribute("onItemSetChanged");
var _6d=_6a.getAttribute("private");
var _6e=false;
if(typeof _6d!="undefined"&&_6d!=null&&_6d=="true"){
_6e=true;
}
var _6f=_6a.getAttribute("description");
var _70={name:_6b,onItemSetChanged:_6c,isPrivate:_6e};
_70.items={};
var _71=_6a.childNodes;
for(var j=0;j<_71.length;j++){
var _72=_71[j];
if(_72.nodeType==1){
var _73=_72.getAttribute("readOnly");
com.ibm.mm.enabler.debug.entry("standardXMLParser.readItemSets found attribute name:"+_72.getAttribute("name")+" value:"+_72.getAttribute("value"));
if(typeof _73!="undefined"&&_73!=null&&_73=="true"){
_73=true;
}else{
_73=false;
}
var id=_72.getAttribute("id");
var _74=_72.getAttribute("value");
var _75={id:id,value:_74,readOnly:_73};
_70.items[id]=_75;
}
}
_67[_6b]=_70;
}
com.ibm.mm.enabler.debug.exit("standardXMLParser.readItemSets");
return _67;
},readPayloadDefs:function(_76){
com.ibm.mm.enabler.debug.entry("standardXMLParser.readPayloadDefs");
var _77={};
var _78="/iw:iwidget/iw:payloadDef";
var _79=com.ibm.mm.enabler.xpath.evaluateXPath(_78,_76,this.namespaces);
for(var i=0;i<_79.length;i++){
var _7a=_79[i];
var _7b=com.ibm.mm.enabler.iw.utils.getPayloadDef(_7a);
_77[_7b.name]=_7b;
}
com.ibm.mm.enabler.debug.exit("standardXMLParser.readPayloadDef ",_79.length+" payloadDefs are saved ");
return _77;
},readPublicEvents:function(_7c,_7d){
var _7e="/iw:iwidget/iw:event[@"+_7d+"]";
var _7f=com.ibm.mm.enabler.xpath.evaluateXPath(_7e,_7c,this.namespaces);
if(typeof _7f!="undefined"&&_7f!=null&&_7f.length!=0){
var _80={};
for(var j=0;j<_7f.length;j++){
var _81=_7f[j];
if(_81.nodeType==1){
var _82={};
_82.id=_81.getAttribute("id");
var _83=_81.getAttribute("eventDescName");
if(typeof _83=="undefined"||_83==null){
_83=_81.getAttribute("description");
}
_82.description=_83;
_82.onEvent=_81.getAttribute("onEvent");
_82.onNewWire=_81.getAttribute("onNewWire");
_82.onRemoveWire=_81.getAttribute("onRemoveWire");
_80[_82.id]=_82;
}
}
}
if(!_80){
return {};
}
return _80;
},readResources:function(_84){
var _85="/iw:iwidget/iw:resource";
var _86=[];
var _87=com.ibm.mm.enabler.xpath.evaluateXPath(_85,_84,this.namespaces);
if(typeof _87!="undefined"&&_87!=null&&_87.length!=0){
for(var i=0;i<_87.length;i++){
var _88=_87[i];
var _89={};
_89[iwConstants.RESOURCE.id]=_88.getAttribute("id");
var src=_88.getAttribute("src");
if(typeof src=="undefined"||src==null){
src=_88.getAttribute("uri");
}
_89[iwConstants.RESOURCE.src]=src;
_89[iwConstants.RESOURCE.version]=_88.getAttribute("version");
_89[iwConstants.RESOURCE.callback]=_88.getAttribute("callback");
_89[iwConstants.RESOURCE.mimetype]=_88.getAttribute("mimeType");
_86[i]=_89;
}
}
return _86;
},readEventDescriptions:function(_8a){
var _8b="iw:iwidget/iw:eventDescription";
var _8c={};
var _8d=com.ibm.mm.enabler.xpath.evaluateXPath(_8b,_8a,this.namespaces);
if(typeof _8d!="undefined"&&_8d!=null&&_8d.length!=0){
for(var i=0;i<_8d.length;i++){
var _8e=_8d[i];
var _8f={};
var id=_8e.getAttribute("id");
_8f["id"]=id;
_8f["payloadType"]=_8e.getAttribute("payloadType");
_8f["description"]=_8e.getAttribute("description");
_8f["descriptionURI"]=_8e.getAttribute("descriptionURI");
_8f["lang"]=_8e.getAttribute("lang");
_8f["aliases"]=_8e.getAttribute("aliases");
_8f["descriptions"]={};
var _90=_8e.childNodes;
for(var j=0;j<_90.length;j++){
var _91=_90[j];
if(_91.nodeType==1){
var _92={};
_92["lang"]=_91.getAttribute("lang");
_92["description"]=_91.getAttribute("description");
_92["title"]=_91.getAttribute("title");
_92["descriptionURI"]=_91.getAttribute("descriptionURI");
_8f["descriptions"][_91.getAttribute("lang")]=_92;
}
}
_8c[id]=_8f;
}
}
return _8c;
}});
}


;if(!dojo._hasResource["com.ibm.mm.enabler.iw.parser"]){
dojo._hasResource["com.ibm.mm.enabler.iw.parser"]=true;
dojo.provide("com.ibm.mm.enabler.iw.parser");


dojo.declare("com.ibm.mm.enabler.iw.parser.WidgetParserFactory",null,{getWidgetParser:function(_1){
var _2=_1.replace(/^\s+/,"").replace(/\s+$/,"");
var _3=this._isXML(_2);
var _4=this._isLegacy(_2);
if(_3&&_4){
return new com.ibm.mm.enabler.iw.parser.legacyXMLParser(_2);
}else{
if(_3&&!_4){
return new com.ibm.mm.enabler.iw.parser.standardXMLParser(_2);
}
}
return null;
},_isXML:function(_5){
var _6=true;
var _7=_5.indexOf("=\"http://www.w3.org/1999/xhtml\"");
if(_7!=-1){
_6=false;
}
com.ibm.mm.enabler.debug.log("parser._isXML",_6);
return _6;
},_isLegacy:function(_8){
var _9=true;
var _a=_8.indexOf("=\"http://www.ibm.com/xmlns/prod/iWidget\"");
if(_a!=-1){
_9=false;
}
com.ibm.mm.enabler.debug.log("parser._isLegacy",_9);
return _9;
}});
com.ibm.mm.enabler.iw.parser.WidgetParserFactory=new com.ibm.mm.enabler.iw.parser.WidgetParserFactory();
}


;if(!dojo._hasResource["com.ibm.mm.enabler.iw.services"]){
dojo._hasResource["com.ibm.mm.enabler.iw.services"]=true;
dojo.provide("com.ibm.mm.enabler.iw.services");


















dojo.declare("com.ibm.mm.enabler.iw.services.iWidgetFragmentService",null,{createItem:function(_1,_2,_3,ns){
if(typeof ns=="undefined"||ns==null){
ns="mm_";
}
var _4=document.createElement("a");
dojo.addClass(_4,ns+iwConstants.CSSCLASS_INSTANCE.iwItem);
dojo.style(_4,"visibility","hidden");
dojo.style(_4,"display","none");
_4.setAttribute("href","#"+_1);
if(_3){
_4.setAttribute("lang",_3);
}
if(_2&&!_3){
_4.innerHTML=_2;
}
return _4;
},createItemSet:function(_5,ns){
if(typeof ns=="undefined"||ns==null){
ns="mm_";
}
var _6=document.createElement("span");
dojo.addClass(_6,ns+iwConstants.CSSCLASS_INSTANCE.iwItemSet);
_6.setAttribute("title",_5);
dojo.style(_6,"visibility","hidden");
dojo.style(_6,"display","none");
return _6;
},createWidgetDefRef:function(_7,ns){
if(typeof ns=="undefined"||ns==null){
ns="mm_";
}
var _8=document.createElement("a");
dojo.addClass(_8,ns+iwConstants.CSSCLASS_INSTANCE.iwDefinition);
_8.setAttribute("href",_7);
dojo.style(_8,"visibility","hidden");
dojo.style(_8,"display","none");
return _8;
},getItemSet:function(_9,_a,ns){
if(typeof ns=="undefined"||ns==null){
ns="mm_";
}
var rc=null;
var _b=dojo.byId(_9);
var _c=dojo.query("."+ns+iwConstants.CSSCLASS_INSTANCE.iwItemSet,_b);
for(var i=0;i<_c.length;i++){
var _d=_c[i];
var _e=_d.getAttribute("title");
if(_a==_e){
rc=_d;
break;
}
}
return rc;
},getItem:function(_f,_10,ns){
if(typeof ns=="undefined"||ns==null){
ns="mm_";
}
var rc=null;
var _11=dojo.query("."+ns+iwConstants.CSSCLASS_INSTANCE.iwItem,_f);
for(var i=0;i<_11.length;i++){
var _12=_11[i];
var _13=this.getKeyFromHref(_12);
if(_13!=null&&_13==_10){
rc=_12;
break;
}
}
return rc;
},getItems:function(_14,ns){
if(typeof ns=="undefined"||ns==null){
ns="mm_";
}
var _15=dojo.query("."+ns+iwConstants.CSSCLASS_INSTANCE.iwItem,_14);
if(typeof _15=="undefined"||_15==null||_15.length==0){
_15=null;
}
return _15;
},getWidgetDefRef:function(_16,ns){
if(typeof ns=="undefined"||ns==null){
ns="mm_";
}
var rc=null;
var _17=dojo.byId(_16);
var def=dojo.query("."+ns+iwConstants.CSSCLASS_INSTANCE.iwDefinition,_17)[0];
var ref=def.getAttribute("href");
if(typeof ref!="undefined"&&ref!=null){
rc=ref;
}
return rc;
},getKeyFromHref:function(_18){
var _19=_18.getAttribute("href");
if(_19==null){
return null;
}
var pos=_19.indexOf("#");
if(pos<0){
return null;
}
return _19.substring(pos+1);
}});
dojo.declare("com.ibm.mm.enabler.iw.services.persistentAttributesFactoryService",null,{createPersistentAttributes:function(_1a){
return new com.ibm.mm.enabler.iw.PersistentAttributes(_1a,true);
}});
dojo.declare("com.ibm.mm.enabler.iw.services.eventService",null,{constructor:function(){
this.wires={};
},subscribeWire:function(_1b,_1c,_1d,_1e){
com.ibm.mm.enabler.debug.entry("eventService.subscribeWire","source:"+_1b+" sourceEvent:"+_1c+" targetWidget:"+_1d+" targetEvent:"+_1e);
if(typeof _1b=="undefined"||_1b===null){
return false;
}
if(typeof _1c=="undefined"||_1c===null){
return false;
}
if(typeof _1d=="undefined"||_1d===null){
return false;
}
if(typeof _1e=="undefined"||_1e===null){
return false;
}
var rc=true;
if(typeof (this.wires[_1b])=="undefined"||this.wires[_1b]===null){
this.wires[_1b]={};
}
if(typeof (this.wires[_1b][_1c])=="undefined"||this.wires[_1b][_1c]===null){
this.wires[_1b][_1c]={};
}
var _1f=this.wires[_1b][_1c][_1d];
if(typeof _1f=="undefined"||_1f===null){
this.wires[_1b][_1c][_1d]=[];
}else{
if(com.ibm.mm.enabler.utilities.inStringArray(_1e,_1f)){
rc=false;
}
}
if(rc){
this.wires[_1b][_1c][_1d].push(_1e);
}
var _20={};
_20.targetWidget=_1d;
_20.sourceEvent=_1c;
_20.sourceWidget=_1b;
_20.targetEvent=_1e;
serviceManager.getService("eventService").fireEvent(_1b,"onNewWire",_20);
com.ibm.mm.enabler.debug.exit("eventService.subscribeWire","wire is added "+this.wires[_1b][_1c][_1d].length);
return rc;
},publishWire:function(_21,_22,_23,_24){
com.ibm.mm.enabler.debug.entry("eventService.publishWire","source:"+_21+" sourceEvent:"+_22+" payload:"+_23+" payloadType:"+_24);
if(typeof _21=="undefined"||_21===null){
return false;
}
if(typeof _22=="undefined"||_22===null){
return false;
}
var _25=this.wires[_21];
if(typeof (_25)=="undefined"||_25===null){
return false;
}
var _26=_25[_22];
if(typeof (_26)=="undefined"||_26===null){
return false;
}
var _27;
for(_27 in _26){
com.ibm.mm.enabler.debug.log("eventService.publishWire targetWidget:"+_27);
var _28=_26[_27];
for(var i=0;i<_28.length;i++){
this.fireEvent(_27,_28[i],_23,_24,_21);
}
}
return true;
},unSubscribeWidgetWires:function(_29){
if(typeof this.wires[_29]!="undefined"){
var _2a=this.wires[_29];
}
if(typeof (_2a)=="undefined"||_2a===null){
return false;
}
var arr=[];
for(var _2b in _2a){
var _2c=_2a[_2b];
if(typeof _2c!="undefined"&&_2c!==null){
for(var _2d in _2c){
var _2e=_2c[_2d];
if(typeof _2e!="undefined"&&_2e!==null){
for(var i in _2e){
var _2f={sourceWidget:_29,sourceEvent:_2b,targetWidget:_2d,targetEvent:_2e[i]};
arr.push(_2f);
serviceManager.getService("eventService").fireEvent(_2d,"onRemoveWire",_2f);
}
}
}
}
}
if(arr.length!==0){
this.publishEvent(com.ibm.mm.enabler.iw.iEvents.Constants.unSubscribeWire,{wires:arr});
}
this.wires[_29]=null;
},unSubscribeWire:function(_30,_31,_32,_33){
if(typeof _30=="undefined"||_30===null){
return false;
}
if(typeof _31=="undefined"||_31===null){
return false;
}
if(typeof _32=="undefined"||_32===null){
return false;
}
if(typeof _33=="undefined"||_33===null){
return false;
}
var _34=this.wires[_30];
if(typeof (_34)=="undefined"||_34===null){
return false;
}
if(_34[_31]){
var _35=_34[_31];
}else{
return false;
}
var _36=this.wires[_30][_31][_32];
if(typeof _36!="undefined"&&_36!==null){
for(var i=0;i<_36.length;i++){
if(_33==_36[i]){
_36.splice(i,1);
var _37={};
_37.targetWidget=_32;
_37.targetEvent=_33;
_37.sourceWidget=_30;
_37.sourceEvent=_31;
serviceManager.getService("eventService").fireEvent(_32,"onRemoveWire",_37);
this.publishEvent(com.ibm.mm.enabler.iw.iEvents.Constants.unSubscribeWire,{wires:[_37]});
}
}
return true;
}else{
return false;
}
},addWire:function(_38,_39,_3a,_3b){
com.ibm.mm.enabler.debug.entry("eventService.addWire","source:"+_38+" sourceEvent:"+_39+" targetWidget:"+_3a+" targetEvent:"+_3b);
if(typeof _38=="undefined"||_38===null){
return false;
}
if(typeof _39=="undefined"||_39===null){
return false;
}
if(typeof _3a=="undefined"||_3a===null){
return false;
}
if(typeof _3b=="undefined"||_3b===null){
return false;
}
var rc=this.subscribeWire(_38,_39,_3a,_3b);
if(rc){
var _3c=iWidgetContainer.getWidgetById(_3a);
if(typeof _3c!="undefined"&&_3c!==null){
var _3d={};
_3d.SourceWidget=_38;
_3d.SourceEvent=_39;
_3d.TargetEvent=_3b;
if(typeof _3c.wires=="undefined"){
_3c.wires=[];
}
_3c.wires.push(_3d);
}
}
return rc;
},removeWire:function(_3e,_3f,_40,_41){
com.ibm.mm.enabler.debug.entry("eventService.removeWire","source:"+_3e+" sourceEvent:"+_3f+" targetWidget:"+_40+" targetEvent:"+_41);
if(typeof _3e=="undefined"||_3e===null){
return false;
}
if(typeof _3f=="undefined"||_3f===null){
return false;
}
if(typeof _40=="undefined"||_40===null){
return false;
}
if(typeof _41=="undefined"||_41===null){
return false;
}
var rc=this.unSubscribeWire(_3e,_3f,_40,_41);
if(rc){
var _42=iWidgetContainer.getWidgetById(_40);
if(typeof _42!="undefined"&&_42!==null){
var arr=_42.wires;
if(typeof arr!="undefined"&&arr!==null){
for(var i=0;i<arr.length;i++){
var _43=arr[i];
if(_43.SourceWidget==_3e&&_43.SourceEvent==_3f&&_43.TargetEvent==_41){
arr.splice(i,1);
rc=true;
break;
}
}
}
}
}
return rc;
},fireEvent:function(_44,_45,_46,_47,_48){
com.ibm.mm.enabler.debug.entry("eventService.fireEvent","sourceWidget:"+_48+" targetWidget:"+_44+" targetEvent:"+_45+" payload:"+_46+" payloadType:"+_47);
var _49=new com.ibm.mm.enabler.iw.iEventImpl(_45,_47,_46,_48);
var _4a=[];
_4a[0]=_45;
_4a[1]=_49;
var _4b=iWidgetContainer.getWidgetById(_44);
if(typeof _4b!="undefined"&&_4b!==null&&typeof _4b.loaded!="undefined"&&_4b.loaded==true){
com.ibm.mm.enabler.debug.log("eventService.fireEvent","targetWidget is loaded");
dojo.publish("/enabler/eventService/"+_44,_4a);
}else{
com.ibm.mm.enabler.debug.log("eventService.fireEvent","targetWidget is not loaded");
var _4c=new com.ibm.mm.enabler.iw.eventHolder(_44,_4a);
_4c.handler=dojo.subscribe("/enabler/widgetLoaded/"+_44,_4c,"handleLoaded");
}
},publishEvent:function(_4d,_4e){
com.ibm.mm.enabler.debug.entry("eventService.publishEvent"," sourceEvent:"+_4d);
if(typeof _4d=="undefined"||_4d===null){
return;
}
if(typeof _4e=="undefined"||_4e===null){
dojo.publish(_4d);
}
var _4f=[];
if(dojo.isArray(_4e)){
_4f=_4e;
}else{
_4f.push(_4e);
}
dojo.publish(_4d,_4f);
},subscribeEvent:function(_50,_51,_52){
dojo.subscribe(_50,_51,_52);
}});
dojo.declare("com.ibm.mm.enabler.iw.services.queryService",null,{getiWidgetWrapperById:function(id){
var _53=iWidgetContainer.getWidgetById(id);
if(typeof _53=="undefined"||_53===null){
return null;
}
return new com.ibm.mm.enabler.iw.iWidgetWrapperImpl(id);
},getWidgetById:function(id,obj,cb){
com.ibm.mm.enabler.debug.entry("queryService.getWidgetById","id:",id,"obj:",obj,"cb",cb);
var _54=iWidgetContainer.getWidgetById(id);
if(typeof _54=="undefined"||_54===null){
return null;
}
if(_54.loaded){
com.ibm.mm.enabler.debug.log("queryService.getWidgetById","widget is loaded");
if(typeof obj!="undefined"&&typeof cb!="undefined"){
obj[cb](new com.ibm.mm.enabler.iw.WidgetStub(_54));
}else{
return new com.ibm.mm.enabler.iw.WidgetStub(_54);
}
}else{
com.ibm.mm.enabler.debug.log("queryService.getWidgetById","widget is  not loaded");
if(typeof obj!="undefined"&&typeof cb!="undefined"){
var _55={};
_55.widget=_54;
_55.obj=obj;
_55.cb=cb;
_55.handleLoaded=function(){
this.obj[this.cb](new com.ibm.mm.enabler.iw.WidgetStub(this.widget));
};
dojo.subscribe("/enabler/widgetLoaded/"+id,_55,"handleLoaded");
}else{
return null;
}
}
},getWidgetsByDefUrl:function(url){
com.ibm.mm.enabler.debug.entry("queryService.getWidgetsByDefUrl","url:",url);
var arr=[];
for(id in iWidgetContainer.widgetArr){
var _56=iWidgetContainer.widgetArr[id];
if(_56&&_56!==null){
var _57=_56.getWidgetInstance().widgetXMLUrl;
if(typeof _57!="undefined"&&_57!==null&&url==_57){
arr.push(id);
}
}
}
com.ibm.mm.enabler.debug.exit("queryService.getWidgetsByDefUrl",arr);
return arr;
}});
dojo.declare("com.ibm.mm.enabler.iw.services.ServiceManager",null,{constructor:function(){
this.serviceEntries={};
this.services={};
var _58;
if(com.ibm.mm.enabler.services.CONFIG_SERVICE){
_58=com.ibm.mm.enabler.services.CONFIG_SERVICE.getPreferenceValue(com.ibm.mm.enabler.services.CONFIG_SERVICE.CONTEXT_ROOT_ENABLER);
}
if(typeof _58=="undefined"||_58===null){
_58="/mashupmaker";
}
this.serviceEntries["eventService"]=_58+"/js/com/ibm/enabler/iw/services.js";
this.serviceEntries["queryService"]=_58+"/js/com/ibm/enabler/iw/services.js";
this.serviceEntries["persistentAttributesFactoryService"]=_58+"/js/com/ibm/enabler/iw/services.js";
this.serviceEntries["iwidgetFragmentService"]=_58+"/js/com/ibm/enabler/iw/services.js";
if(typeof ibmConfig!="undefined"&&ibmConfig!=null&&typeof ibmConfig.loadServices!="undefined"&&ibmConfig.loadServices!=null&&ibmConfig.loadServices==true){
_58=_58+this.serviceEntriesConfig;
var me=this;
var _59={url:_58,load:function(_5a,_5b){
var _5c=dojo.fromJson(_5a);
var _5d;
var i=0;
for(_5d in _5c){
me.serviceEntries[_5d]=_5c[_5d];
i++;
}
},error:function(_5e,_5f){
com.ibm.mm.enabler.debug.error("com.ibm.mm.enabler.iw.services.ServiceManager","error loading data",_5e);
}};
dojo.xhrGet(_59);
}
},serviceEntriesConfig:"/js/com/ibm/enabler/iw/serviceEntries.json",serviceNS:"com.ibm.mm.enabler.iw.services.",setService:function(_60,_61){
this.serviceEntries[_60]=_61;
},removeService:function(_62){
var _63=this.services[_62];
var _64=this.serviceEntries[_62];
if(typeof _63!="undefined"||_63!==null){
this.services[_62]=null;
}
if(typeof _64!="undefined"||_64!==null){
this.serviceEntries[_62]=null;
}
},getService:function(_65){
var _66=this.services[_65];
var _67=this.serviceEntries[_65];
if(typeof _66=="undefined"||_66===null){
_66=this._createService(_65);
if(typeof _66=="undefined"||_66===null){
if(typeof _67!="undefined"&&_67!==null){
this._loadScript(_67);
_66=this._createService(_65);
if(typeof _66!="undefined"&&_66!==null){
this.services[_65]=_66;
}
}
}else{
this.services[_65]=_66;
}
}
return this.services[_65];
},_loadScript:function(_68){
var _69=document.createElement("script");
_69.src=_68;
document.body.insertBefore(_69,document.body.firstChild);
},_createService:function(_6a){
var _6b;
try{
_6b=eval("new "+this.serviceNS+_6a+"();");
}
catch(err){
com.ibm.mm.enabler.debug.log("services.getService"," failed to create service error detail: "+err.description);
}
return _6b;
}});
window.serviceManager=new com.ibm.mm.enabler.iw.services.ServiceManager();
}


;if(!dojo._hasResource["com.ibm.mm.enabler.iw.internalservices"]){
dojo._hasResource["com.ibm.mm.enabler.iw.internalservices"]=true;
dojo.provide("com.ibm.mm.enabler.iw.internalservices");










dojo.declare("com.ibm.mm.enabler.iw.services.loadService",null,{constructor:function(){
this.modules={};
},loadResource:function(_1,_2,_3,cb,_4){
com.ibm.mm.enabler.debug.entry("loadService.loadResource","uri:"+_3+" mimetype:"+_4+" widgetId:"+_1);
var _5;
if(typeof _2=="undefined"||_2===null){
_2=_3;
}
if(typeof _2!="undefined"&&_2!==null){
var _6=this.modules[_2];
if(typeof _6!="undefined"&&_6!==null){
_5=true;
}
}
if(_5){
return;
}
_6={};
_6.id=_2;
_6.src=_3;
_6.callback=cb;
_6.mimetype=_4;
path=this._rewriteUrl(_3,_1);
var _7=this._getExtension(_3);
if(_7!==null&&_7=="css"){
return this._loadCSS(path);
}
var _8=dojo._xhrObj();
var me=this;
_8.open("GET",path,false);
try{
_8.send(null);
if(_8.status==200){
var _9=_8.responseText;
var _a=_9.replace(/_IWID_/g,"_"+_1+"_");
if(cb){
}
}
}
catch(e){
return false;
}
if(!_a){
return false;
}
if(_7==="js"||_4=="text/javascript"){
var _b=dojo.eval(_a);
}
this.modules[_2]=_6;
return true;
},_rewriteUrl:function(_c,id){
var _d=iWidgetContainer.getWidgetById(id);
var _e=_d.getWidgetInstance().widgetXMLUrl;
var _f=_e.substring(0,_e.lastIndexOf("/")+1);
if(_f.indexOf("://")!=-1){
var _10=_c.indexOf("://");
var _11=_c.indexOf("/",_10+1);
var _12=_c.substring(0,_11);
}
var _13=_c;
if(_c.indexOf("://")==-1){
if(_c.indexOf("/")===0){
if(typeof (_12)!="undefined"){
_13=_12+_c;
}
}else{
if(typeof (_f)!="undefined"){
_13=_f+_c;
}
}
}
if(_13.indexOf("http")===0){
_13=com.ibm.mm.enabler.utilities.rewriteURL(_13);
}
return _13;
},_getExtension:function(uri){
return uri.substring(uri.lastIndexOf(".")+1,uri.length);
},_loadCSS:function(_14){
var _15=document.createElement("link");
_15.setAttribute("rel","stylesheet");
_15.setAttribute("type","text/css");
_15.setAttribute("href",_14);
document.getElementsByTagName("head")[0].appendChild(_15);
}});
dojo.declare("com.ibm.mm.enabler.iw.services.widgetLoadService",null,{getWidgetXML:function(_16,_17){
com.ibm.mm.enabler.debug.entry("widgetLoadService.getWidgetXML","widgetUrl:"+_16+" widgetId:"+_17);
this.widgetId=_17;
var me=this;
var _18=_16;
if(_18.indexOf("http")===0){
_18=com.ibm.mm.enabler.utilities.rewriteURL(_18);
}
var _19={url:_18,load:function(_1a,_1b){
me.handleLoad(_1a,_1b.xhr);
},error:function(_1c,_1d){
com.ibm.mm.enabler.debug.error("widgetLoadService.getWidgetXML","Error widgetLoadService.getWidgetXML error loading!"+_1c);
var _1e=[];
_1e.push("error");
var _1f=dojo.i18n.getLocalization("com.ibm.mm.enabler","iwMessages");
_1e.push(dojo.string.substitute(_1f.E_IWIDGETDEF_NOTAVAILABLE_1,[_18]));
_1e.push(_1c.message);
dojo.publish("/enabler/inlineMessage/"+me.widgetId,_1e);
},handleAs:"text"};
dojo.xhrGet(_19);
},handleLoad:function(_20,xhr){
var _21=com.ibm.mm.enabler.iw.parser.WidgetParserFactory.getWidgetParser(xhr.responseText);
var _22=_21.parseWidgetDefinition();
this._fireEvents(_22);
},_fireEvents:function(_23){
this._fireIndividualWidgetStateChange(_23);
},_fireIndividualWidgetStateChange:function(_24){
var _25=[];
_25.push(_24);
dojo.publish("/enabler/widgetXmlRetrieved/"+this.widgetId,_25);
}});
}

dojo.provide("com.ibm.mm.enabler.nls.iwStr")._built=true;
dojo.provide("com.ibm.mm.enabler.nls.iwStr.en");
com.ibm.mm.enabler.nls.iwStr.en={"LOAD":"Loading....."};
dojo.provide("com.ibm.mm.enabler.nls.iwMessages")._built=true;
dojo.provide("com.ibm.mm.enabler.nls.iwMessages.en");
com.ibm.mm.enabler.nls.iwMessages.en={"E_IWIDGETDEF_CONTENTNOTAVAILABLE_1":"BMWIW0002E:Unable to find content for mode -- ${0}.","E_IWIDGETDEF_NOTAVAILABLE_1":"BMWIW0001E:Unable to load iWidget ${0}."};

;if(!dojo._hasResource["com.ibm.mm.enabler.iw"]){
dojo._hasResource["com.ibm.mm.enabler.iw"]=true;
dojo.provide("com.ibm.mm.enabler.iw");




















dojo.requireLocalization("com.ibm.mm.enabler","iwStr",null,"de,en,es,fr,it,ROOT,ja,ko,pt-br,zh,zh-tw");
dojo.requireLocalization("com.ibm.mm.enabler","iwMessages",null,"de,en,es,fr,it,ROOT,ja,ko,pt-br,zh,zh-tw");
dojo.declare("com.ibm.mm.enabler.iWidgetWrapperDefaultImpl",null,{constructor:function(_1,id){
this._internalIbmModes=com.ibm.mm.enabler.iw.ItemSet._internalIbmModes;
this.rootElement=_1;
if(typeof (id)!="undefined"&&id!=null){
this.id=id;
}else{
this.id=_1.getAttribute("id");
}
this.simpleWidgetEvents={};
this.loaded=false;
this.widgetAttributes=null;
this.widgetItemSets=null;
this.xmlRetrievedHandler=dojo.subscribe("/enabler/widgetXmlRetrieved/"+this.id,this,"handleWidgetInfoRetrieved");
this.eventServiceHandler=dojo.subscribe("/enabler/eventService/"+this.id,this,"handleEvent");
this.ns=_1.className.substr(0,3);
this.inlineMessageHandler=dojo.subscribe("/enabler/inlineMessage/"+this.id,this,"_handleInlineMessage");
this.windowManager={};
this.iwStr=dojo.i18n.getLocalization("com.ibm.mm.enabler","iwStr");
this.iwMessages=dojo.i18n.getLocalization("com.ibm.mm.enabler","iwMessages");
},getWidgetInstance:function(){
if(typeof this.widgetInstance!="undefined"||this.widgetInstance!=null){
return this.widgetInstance;
}
this.widgetInstance=new com.ibm.mm.enabler.iWidgetInstanceStandard(this.rootElement,this.id);
return this.widgetInstance;
},_resourceBaseURL:new dojo.moduleUrl("com.ibm.mm.enabler","iw/"),_jsHandler:com.ibm.mm.enabler.aggregation.javascript.JAVASCRIPT_HANDLER,_setLoading:function(){
var _2=document.createElement("div");
_2.className=this.ns+"content";
if(ibmConfig&&ibmConfig.loadingHTML){
_2.innerHTML=ibmConfig.loadingHTML;
}else{
_2.innerHTML="<img src='"+dijit._Widget.prototype._blankGif+"'"+" class='lotusLoading' alt='"+this.iwStr.LOAD+"' />&nbsp;"+this.iwStr.LOAD;
}
this.rootElement.appendChild(_2);
},_handleInlineMessage:function(_3,_4,_5){
var _6=[];
com.ibm.mm.enabler.iw.utils.findElementByAttribute("class",this.ns+"content",this.rootElement,_6,false);
var _7=_6[0];
_7.innerHTML="";
com.ibm.mm.enabler.debug.logInlineMessage(_7,_3,_4,_5);
},loadWidgetDefinition:function(){
com.ibm.mm.enabler.debug.entry("iWidget.loadWidgetDefinition");
var _8=this.rootElement;
if(this.loaded){
return false;
}
this._setLoading();
if(this.getWidgetInstance().widgetXMLUrl!==null){
var _9=new com.ibm.mm.enabler.iw.services.widgetLoadService();
_9.getWidgetXML(this.getWidgetInstance().widgetXMLUrl,this.id);
}else{
return false;
}
com.ibm.mm.enabler.debug.entry("iWidget.loadWidgetDefinition",true);
return true;
},render:function(){
com.ibm.mm.enabler.debug.entry("iWidget.render");
this.prepare();
this.loadWidgetDefinition();
com.ibm.mm.enabler.debug.exit("iWidget.render");
},prepare:function(){
com.ibm.mm.enabler.debug.entry("iWidget.prepare");
variableName="_"+this.id+"_"+"iContext";
dojo.global[variableName]=new com.ibm.mm.enabler.iw.iContextImpl(this.id,this.ns);
com.ibm.mm.enabler.debug.exit("iWidget.prepare");
},_updateMarkup:function(_a,_b){
com.ibm.mm.enabler.debug.entry("iWidget._updateMarkup");
var _c=this.widgetDef;
var _d=_c.getMarkupByMode(_a);
if(_a==iwConstants.mode_view){
if(this.widgetDef.getAllowInstanceContent()){
var _e=this.getWidgetInstance().getDefaultViewContent();
if(_e&&_e!==null){
_d=_e;
}
}
}
if(typeof _d=="undefined"||_d===null){
var _f=dojo.string.substitute(this.iwMessages.E_IWIDGETDEF_CONTENTNOTAVAILABLE_1,[_a]);
com.ibm.mm.enabler.debug.info("iWidget._updateMarkup",_f);
return false;
}
var _10=this._prepareMarkup(_d);
var _11=document.createElement("DIV");
_11.innerHTML=_10;
var _12=_11.getElementsByTagName("script");
if(_12!==null){
for(var i=0;i<_12.length;i++){
var _13=_12[i];
var id=_13.getAttribute("id");
if(id===null||id==""){
_13.setAttribute("id","_scr#"+i);
}
}
}
dojo.addClass(_b,_a);
_b.innerHTML=_11.innerHTML;
com.ibm.mm.enabler.dom.destroyNode(_11);
com.ibm.mm.enabler.debug.exit("iWidget._updateMarkup");
return true;
},_prepareMarkup:function(_14){
com.ibm.mm.enabler.debug.entry("iWidget._prepareMarkup");
var _15=_14.replace(/_IWID_/g,"_"+this.id+"_");
var _16=_15.replace(/iContext(?=\.|\s|\(|\))/g,"_"+this.id+"_iContext");
com.ibm.mm.enabler.debug.exit("iWidget._updateMarkup",_16);
return _16;
},destroy:function(){
dojo.unsubscribe(this.xmlRetrievedHandler);
dojo.unsubscribe(this.eventServiceHandler);
dojo.unsubscribe(this.inlineMessageHandler);
dojo.global["_"+this.id+"_"+"iContext"]=null;
var arr=this.wires;
var _17=serviceManager.getService("eventService");
if(typeof arr!="undefined"&&arr!=null){
for(var i=0;i<arr.length;i++){
var _18=arr[i];
_17.unSubscribeWire(_18["SourceWidget"],_18["SourceEvent"],this.id,_18["TargetEvent"]);
}
}
_17.unSubscribeWidgetWires(this.id);
},handleWidgetInfoRetrieved:function(_19){
com.ibm.mm.enabler.debug.entry("iWidget.handleWidgetInfoRetrieved");
this.widgetDef=_19;
this.update();
this.onLoad();
com.ibm.mm.enabler.debug.exit("iWidget.handleWidgetInfoRetrieved",this.id);
},update:function(){
this._initialize();
var _1a=this.rootElement.lastChild;
this._updateMarkup(this.currentMode,_1a);
this._loadWidgetSharedResource();
this._createiScope();
this._evalScripts(_1a);
this.windowManager[this.currentMode]={id:this.currentMode,root:_1a,active:true,external:false};
},_initialize:function(){
com.ibm.mm.enabler.debug.entry("iWidget._initialize");
var _1b=this.widgetDef.getDefaultLanguage();
if(typeof _1b!="undefined"&&_1b!=null){
this.defaultLanguage=_1b;
}else{
this.defaultLanguage="en";
}
var _1c=this._getDefaultMode();
if(_1c==null){
_1c=iwConstants.mode_view;
}
this.currentMode=_1c;
this.getPublishedEvents();
this.getHandledEvents();
this.getWires();
com.ibm.mm.enabler.debug.exit("iWidget._initialize");
},_evalScripts:function(_1d){
var _1e=_1d.getElementsByTagName("script");
for(var i=0;i<_1e.length;i++){
this._jsHandler.handle(_1e[i]);
}
},onLoad:function(){
this._handleEventInternal(com.ibm.mm.enabler.iw.iEvents.Constants.onLoad);
this._handleEventInternal("on"+this.currentMode);
this.loaded=true;
dojo.publish("/enabler/widgetLoaded/"+this.id);
},_getSimpleEventHandler:function(_1f){
com.ibm.mm.enabler.debug.entry("iWidget._getSimpleEventHandler",_1f);
if(this.simpleWidgetEvents&&this.simpleWidgetEvents[_1f]){
return this.simpleWidgetEvents[_1f];
}
var _20=this.widgetDef.getWidgetEvents()[_1f];
if(_20==null){
_20=_1f;
}
var _21=this._getHandlerScope(_20);
var _22=null;
if(_21!=null){
_22=dojo.hitch(_21,_20);
this.simpleWidgetEvents[_1f]=_22;
}else{
if(_20.indexOf("on")==0){
var _23="on"+_20.substr(2,1).toUpperCase()+_20.substr(3);
if(_23!=_20){
_21=this._getHandlerScope(_23);
if(_21!=null){
_22=dojo.hitch(_21,_23);
this.simpleWidgetEvents[_1f]=_22;
}
}
}
}
com.ibm.mm.enabler.debug.exit("iWidget._getSimpleEventHandler",_22);
return _22;
},_getHandlerScope:function(_24){
com.ibm.mm.enabler.debug.entry("iWidget._getHandlerScope",_24);
var fn=dojo.global["_"+this.id+"_"+_24];
if(typeof (fn)=="undefined"){
widgetScope=dojo.global["_"+this.id+"_iContext"].iScope();
if(widgetScope&&widgetScope[_24]){
fn=widgetScope;
}
}
if(typeof fn=="undefined"||fn==null){
fn=dojo.global[_24];
}
if(typeof fn=="undefined"||fn==null){
return null;
}else{
com.ibm.mm.enabler.debug.exit("iWidget._getHandlerScope",fn);
return fn;
}
},handleEvent:function(_25,_26){
if(typeof _25=="undefined"||_25==null){
return false;
}
if(_25==com.ibm.mm.enabler.iw.iEvents.Constants.onModeChanged){
return this._handleModeChange(_26);
}
if(_25=="onNewWire"){
return this._handleNewWire(_26);
}
if(_25=="onRemoveWire"){
return this._handleRemoveWire(_26);
}
return this._handleEventInternal(_25,_26);
},_handleNewWire:function(_27){
var _28=_27.payload;
var _29=_28.sourceEvent;
var _2a=this.publishedEvents[_29];
if(typeof _2a!="undefined"&&_2a!=null){
var _2b=_2a[0].getOnNewWire();
if(_2b!=null){
var _2c=this._getHandlerScope(_2b);
if(_2c!=null&&dojo.isFunction(_2c)){
_2c(_27);
}else{
if(_2c!=null&&dojo.isObject(_2c)){
_2c[_2b](_27);
}
}
return true;
}
}
return false;
},_handleRemoveWire:function(_2d){
var _2e=_2d.payload;
var _2f=_2e.targetEvent;
var _30=this.handledEvents[_2f];
if(typeof _30!="undefined"&&_30!=null){
var _31=_30[0].getOnRemoveWire();
if(_31!=null){
var _32=this._getHandlerScope(_31);
if(_32!=null&&dojo.isFunction(_32)){
_32(_2d);
}else{
if(_32!=null&&dojo.isObject(_32)){
_32[_31](_2d);
}
}
return true;
}
}
return false;
},_handleModeChange:function(_33){
var _34=false;
var _35=this.currentMode;
var _36=_33.payload;
if(typeof _36=="undefined"||_36==null){
return false;
}
if(dojo.isString(_36)){
_36=dojo.fromJson(_36);
}
if(typeof _36=="undefined"||_36==null){
return false;
}
var _37=_36.newMode;
if(typeof _37=="undefined"){
_37=null;
}
var _38=_36.rootElementId;
if(typeof _38=="undefined"){
_38=null;
}
if(_37!=null&&_37==this.currentMode){
return false;
}
if(_37==null){
return false;
}
var _39=false;
if(_38!=null){
_39=true;
}
var _3a=_38;
var _3b=this.windowManager[_37];
var _3c=false;
if(typeof _3b!="undefined"&&_3b!==null){
var _3d=_3b.root;
if(!_3b.external&&_3d!=null&&_38===null){
_3a=_3d;
_3c=true;
_34=true;
dojo.style(_3d,"display","");
}
}
if(!_3c){
if(_3a===null){
var _3e=document.createElement("div");
_3e.className=this.ns+"content";
this.rootElement.appendChild(_3e);
_3a=this.rootElement.lastChild;
}
_34=this._updateMarkup(_37,_3a);
}
if(_34){
var _3f=this.windowManager[this.currentMode];
var _40=_3f.root;
if(_3f.external){
dojo.style(_40,"display","none");
this.windowManager[this.currentMode]=null;
}else{
if(_38!=null){
_3f.active=false;
}else{
_3f.active=false;
dojo.style(_40,"display","none");
}
}
this.currentMode=_37;
this.windowManager[_37]={id:_37,root:_3a,active:true,external:_39};
if(!_3c){
this._evalScripts(_3a);
}
this._handleOnModeEvent(_37);
}
if(_34){
serviceManager.getService("eventService").publishEvent(com.ibm.mm.enabler.iw.iEvents.Constants.modeChanged,[this.id,_35,_37]);
}
return _34;
},_handleOnModeEvent:function(_41){
var _42=false;
var _43="on"+_41;
var _44=this._getSimpleEventHandler(_43);
if(_44!==null){
_44();
_42=true;
}
return _42;
},_handleEventInternal:function(_45,_46){
com.ibm.mm.enabler.debug.entry("iWidget._handleEventInternal",_45,_46);
if(typeof _45=="undefined"||_45===null){
return false;
}
var _47=false;
var _48=null;
if(_45.indexOf("on")===0){
var _49=this._getSimpleEventHandler(_45);
if(_49!==null){
_48=_49;
}
}
if(_48===null){
_48=this.getPublicEventHandler(_45);
}
if(_48!==null){
com.ibm.mm.enabler.debug.log("iWidget._handleEventInternal","handlerFn:",_48);
if(_46!="undefined"&&_46!==null){
_48(_46);
}else{
_48();
}
_47=true;
}
com.ibm.mm.enabler.debug.exit("iWidget._handleEventInternal",_47);
return _47;
},getPublicEventHandler:function(_4a){
com.ibm.mm.enabler.debug.entry("iWidget.getPublicEventHandler",_4a);
if(this.getHandledEvents()==null){
return null;
}
var _4b=this.getHandledEvents()[_4a];
if(!_4b){
return null;
}
var _4c=_4b[0].handlingFn;
if(_4c!=null){
var _4d=this._getHandlerScope(_4c);
var _4e=null;
if(_4d!=null){
_4e=dojo.hitch(_4d,_4c);
}
}
com.ibm.mm.enabler.debug.exit("iWidget._getPublicEventHandler",_4e);
return _4e;
},getParent:function(){
if(!this.parent){
this.parent=com.ibm.mm.enabler.iw.utils.getWidgetParent(this.id);
}
return this.parent;
},getWidgetAttributes:function(){
if(typeof (this.widgetAttributes)=="undefined"||this.widgetAttributes==null){
var _4f=serviceManager.getService("persistentAttributesFactoryService");
this.widgetAttributes=_4f.createPersistentAttributes(this);
this._loadWidgetAttributes();
}
return this.widgetAttributes;
},_loadDefWidgetAttributes:function(){
com.ibm.mm.enabler.debug.entry("iWidget:_loadDefWidgetAttributes");
if(typeof (this.widgetDef)!="undefined"){
var _50=this.widgetDef.getAttributes();
if(typeof _50!="undefined"&&_50!=null){
var _51=_50.items;
if(typeof _51!="undefined"&&_51!=null){
for(var i in _51){
var _52=_51[i];
if(typeof _52!="undefined"&&_52!=null){
var _53=_52.id;
var _54=_52.value;
var _55=_52.readOnly;
this.widgetAttributes._internal().setItemValue(_53,_54,_55,this._internalIbmModes.xml);
}
}
}
}
}
com.ibm.mm.enabler.debug.exit("iWidget:_loadDefWidgetAttributes");
},_loadWidgetInstanceAttributesFromRootElement:function(){
com.ibm.mm.enabler.debug.entry("iWidget._loadWidgetInstanceAttributesFromRootElement");
var _56=this.rootElement.attributes;
for(var i=0;i<_56.length;i++){
var att=_56[i];
var _57=this.rootElement.getAttribute(att.name);
if(typeof _57!="undefined"&&_57!=null&&_57!=""){
this.widgetAttributes._internal().setItemValue(att.name,_57,false,this._internalIbmModes.microformat);
com.ibm.mm.enabler.debug.log("iWidget._loadWidgetInstanceAttributesFromRootElement","name:"+att.name+" value:"+_57);
}
}
com.ibm.mm.enabler.debug.exit("iWidget._loadWidgetInstanceAttributesFromRootElement");
},getWidgetItemSet:function(_58){
if(typeof (this.widgetItemSets)=="undefined"||this.widgetItemSets==null){
this._loadItemSets();
}
var _59=this.widgetItemSets[_58];
if(typeof _59=="undefined"){
_59=new com.ibm.mm.enabler.iw.DefaultItemSetImpl(parent,_58);
this.widgetItemSets[_58]=_59;
}
return _59;
},_loadWidgetDefItemSets:function(){
com.ibm.mm.enabler.debug.entry("iWidget._loadWidgetDefItemSets");
if(typeof (this.widgetDef)!="undefined"){
var _5a=this.widgetDef.getAllItemSetNames();
for(var i=0;i<_5a.length;i++){
var _5b=_5a[i];
var _5c=this.widgetDef.getItemSet(_5b);
var _5d=new com.ibm.mm.enabler.iw.DefaultItemSetImpl(parent,_5c.name,_5c.onItemSetChanged,null,_5c.isPrivate);
var _5e=_5c.items;
for(var j in _5e){
var _5f=_5e[j];
_5d.setItemValue(_5f.id,_5f.value,_5f.isReadOnly);
}
this.widgetItemSets[_5b]=_5d;
}
}
com.ibm.mm.enabler.debug.exit("iWidget._loadWidgetDefItemSets");
},_loadWidgetSharedResource:function(){
var _60=this.widgetDef.getResources();
com.ibm.mm.enabler.debug.entry("iWidget._loadWidgetSharedResource",_60);
if(typeof _60!="undefined"&&_60!=null){
for(var i in _60){
var _61=_60[i];
var _62=_61[iwConstants.RESOURCE.id];
var uri=_61[iwConstants.RESOURCE.src];
var _63=_61[iwConstants.RESOURCE.mimetype];
var _64=_61[iwConstants.RESOURCE.callback];
if(typeof _63=="undefined"||_63==null){
_63="text/plain";
}
if(typeof uri!="undefined"&&uri!=null){
serviceManager.getService("loadService").loadResource(this.id,null,uri,_64,_63);
}
}
}
com.ibm.mm.enabler.debug.exit("iWidget._loadWidgetSharedResource");
},_createiScope:function(){
var _65=this.widgetDef.getIScope();
com.ibm.mm.enabler.debug.entry("iWidget._createiScope",_65);
if(typeof _65!=undefined&&_65!=null){
try{
this.iScope=eval("new "+_65+"();");
}
catch(err){
com.ibm.mm.enabler.debug.log("iWidget._createiScope","iScope"+_65,"Error",err);
}
}
if(typeof this.iScope=="undefined"||this.iScope==null){
this.iScope={};
}
dojo.global["_"+this.id+"_iContext"].scope=this.iScope;
this.iScope.iContext=dojo.global["_"+this.id+"_iContext"];
},getIDescriptor:function(){
if(this.iDescriptor){
return this.iDescriptor;
}
this.iDescriptor=new com.ibm.mm.enabler.iw.iDescriptor(this.id,this.widgetDef.getiDescriptor(),this.getWidgetInstance().getiDescriptor());
return this.iDescriptor;
},getPublishedEvents:function(){
com.ibm.mm.enabler.debug.entry("com.ibm.mm.enabler.iWidgetWrapperStandardImpl.getPublishedEvents");
if(!this.publishedEvents){
this.publishedEvents=this.widgetDef.getPublishedEvents();
}
com.ibm.mm.enabler.debug.exit("iWidget.getPublishedEvents",this.publishedEvents);
return this.publishedEvents;
},getHandledEvents:function(){
com.ibm.mm.enabler.debug.entry("iWidget.getHandledEvents");
if(!this.handledEvents){
this.handledEvents=this.widgetDef.getHandledEvents();
}
com.ibm.mm.enabler.debug.exit("iWidget.getHandledEvents",this.handledEvents);
return this.handledEvents;
},_loadWidgetAttributes:function(){
com.ibm.mm.enabler.debug.entry("iWidget:_loadWidgetAttributes");
this._loadDefWidgetAttributes();
var _66=this.getWidgetInstance().getWidgetAttributes();
if(_66!=null){
for(var i in _66){
var _67=i;
var _68=_66[_67].defaultValue;
_68=_68.replace(/&lt;/gi,"<");
_68=_68.replace(/&gt;/gi,">");
_68=_68.replace(/&amp;/gi,"&");
this.widgetAttributes._internal().setItemValue(_67,_68,false,this._internalIbmModes.microformat);
}
}
com.ibm.mm.enabler.debug.exit("iWidget:_loadWidgetAttributes");
},_loadItemSets:function(){
com.ibm.mm.enabler.debug.entry("iWidget._loadItemSets");
this.widgetItemSets={};
this._loadWidgetDefItemSets();
var _69=this.getWidgetInstance().getItemSets();
if(_69!=null){
for(var i in _69){
if(i==iwConstants.ATTRIBUTES||i==iwConstants.USERPROFILE||i==iwConstants.IDESCRIPTOR){
continue;
}
var _6a=_69[i];
var _6b=this.widgetItemSets[i];
if(typeof _6b=="undefined"||_6b==null){
_6b=new com.ibm.mm.enabler.iw.DefaultItemSetImpl(this,i);
this.widgetItemSets[i]=_6b;
}
for(var j in _6a){
var _6c=j;
var _6d=_6a[_6c]["defaultValue"];
this.widgetItemSets[i].setItemValue(_6c,_6d,false);
}
}
}
com.ibm.mm.enabler.debug.exit("iWidget._loadItemSets");
},_getDefaultMode:function(){
var _6e=this.getWidgetInstance().getiDescriptor();
if(typeof _6e!="undefined"&&_6e!=null){
var _6f=_6e[iwConstants.iDescriptorItems.mode];
if(typeof _6f!="undefined"||_6f!=null){
return _6f.defaultValue;
}
}
var _70=this.widgetDef.getiDescriptor();
var _71=null;
if(typeof _70!="undefined"&&_70!=null){
_71=_70[iwConstants.iDescriptorItems.mode];
if(typeof _71=="undefined"){
_71=null;
}
}
return _71;
},getWires:function(){
if(typeof (this.wires)=="undefined"||this.wires===null){
this.wires=this.getWidgetInstance().getWires();
for(var i=0;i<this.wires.length;i++){
var _72=this.wires[i];
serviceManager.getService("eventService").subscribeWire(_72.SourceWidget,_72.SourceEvent,this.id,_72.TargetEvent);
}
}
return this.wires;
}});
dojo.declare("com.ibm.mm.enabler.iWidgetContainer",null,{constructor:function(){
this.widgetArr={};
this.eventService=serviceManager.getService("eventService");
this.queryService=serviceManager.getService("queryService");
dojo.subscribe("/enabler/pageChanged",this,"_unloadWidgets");
dojo.subscribe("/enabler/widgetDeleted",this,"_unloadWidgets");
dojo.subscribe("/enabler/unloadWidget",this,"_unloadWidgets");
var img=document.createElement("img");
img.src=dijit._Widget.prototype._blankGif;
img.className="lotusLoading";
this.processAnim=img;
},createWidget:function(_73){
com.ibm.mm.enabler.debug.entry("iWidgetContainer.createWidget",_73);
var id=_73.getAttribute("id");
if(typeof (id)=="undefined"){
return;
}
var _74=this.widgetArr[id];
if(typeof _74!="undefined"&&_74!==null){
var _75=_74.rootElement;
if(_75==_73){
return _74;
}else{
this._unloadWidget(id);
}
}
var _76=new com.ibm.mm.enabler.iWidgetWrapperDefaultImpl(_73,id);
this.widgetArr[id]=_76;
com.ibm.mm.enabler.debug.exit("iWidgetContainer.createWidget",_76);
return _76;
},renderWidget:function(_77){
if(typeof _77=="undefined"){
return;
}
if(_77.loaded&&_77.loaded==true){
return;
}
_77.render();
},getWidgetById:function(id){
com.ibm.mm.enabler.debug.entry("iWidgetContainer.getWidgetById",id);
var _78=this.widgetArr[id];
if(typeof _78!="undefined"){
com.ibm.mm.enabler.debug.exit("iWidgetContainer.getWidgetById",_78);
return _78;
}
return null;
},_unloadWidgets:function(arr){
com.ibm.mm.enabler.debug.entry("iWidgetContainer._unloadWidgets");
var _79;
if(typeof arr!="undefined"||arr!==null){
if(dojo.isArray(arr)){
for(var i in arr){
_79=arr[i];
this._unloadWidget(_79);
}
dojo.publish("/enabler/widgetsUnloaded");
}else{
if(dojo.isString(arr)){
this._unloadWidget(arr);
}
}
}
},_unloadWidget:function(_7a){
if(typeof this.widgetArr[_7a]!="undefined"&&this.widgetArr[_7a]!==null){
var _7b=this.widgetArr[_7a];
if(_7b.loaded){
_7b.handleEvent(com.ibm.mm.enabler.iw.iEvents.Constants.onUnLoad);
_7b.destroy();
delete this.widgetArr[_7a];
}else{
_7b.destroy();
delete this.widgetArr[_7a];
}
}
}});
iWidgetContainer=new com.ibm.mm.enabler.iWidgetContainer();
dojo.declare("com.ibm.mm.enabler.iWidgetInstanceStandard",null,{constructor:function(_7c,id){
this.rootElement=_7c;
this.id=id;
this.ns=_7c.className.substr(0,3);
var _7d=[];
className=this.ns+"Definition";
com.ibm.mm.enabler.iw.utils.findElementByAttribute("class",className,this.rootElement,_7d,false);
var _7e=_7d[0];
var url=_7e.getAttribute("href");
if(typeof (url)!="undefined"&&url!==null){
this.widgetXMLUrl=url;
}
},getDefaultViewContent:function(){
if(this.defaultViewContent){
return this.defaultViewContent;
}
var _7f=this.ns+"Content";
var _80=dojo.query("span."+_7f,this.rootElement);
if(typeof _80!="undefined"&&_80!==null){
var _81=_80[0];
}
if(_81){
this.defaultViewContent=_81.innerHTML;
return this.defaultViewContent;
}else{
return null;
}
},getWidgetEvents:function(){
if(this.widgetEvents){
return this.widgetEvents;
}
var _82={};
var _83=this.rootElement.attributes;
for(var i=0;i<_83.length;i++){
var _84=_83[i];
if(_84.name!==null&&_84.name.indexOf("on")===0){
var _85=this.rootElement.getAttribute(_84.name);
if(typeof _85!="undefined"&&_85!==null){
_82[_84.name]=_85;
com.ibm.mm.enabler.debug.log("iWidgetInstance.getWidgetEvents","eventName:"+_84.name+" handler:"+_82[_84.name]);
}
}
}
this.widgetEvents=_82;
return this.widgetEvents;
},getWires:function(){
var _86=[];
var ns=this.ns;
var _87="ReceivedEvent";
var _88=[];
com.ibm.mm.enabler.iw.utils.findElementByAttribute("class",ns+_87,this.rootElement,_88,true);
var _89=["SourceWidget","SourceEvent","TargetEvent"];
var _8a=["SourceEvent","TargetEvent"];
for(var i=0;i<_88.length;i++){
var _8b=_88[i];
var _8c={};
var _8d=true;
for(var j=0;j<2;j++){
var _8e=[];
com.ibm.mm.enabler.iw.utils.findElementByAttribute("class",ns+_8a[j],_8b,_8e,false);
if(_8e.length==0){
_8d=false;
}else{
if(j==0){
var _8f=_8e[0].getAttribute("href");
if(typeof _8f!="undefined"||_8f!=null){
var _90=_8f.indexOf("#");
if(_90!=-1){
_8f=_8f.substring(_90+1);
}
_8c[_89[0]]=_8f;
_8c[_89[1]]=_8e[0].innerHTML;
}
}else{
_8c[_89[2]]=_8e[0].innerHTML;
}
}
}
if(_8d){
_86.push(_8c);
}
}
return _86;
},getWidgetAttributes:function(){
var _91=this.getItemSets()[iwConstants.ATTRIBUTES];
if(typeof _91=="undefined"){
_91=null;
}
return _91;
},getiDescriptor:function(){
var _92=this.getItemSets()[iwConstants.IDESCRIPTOR];
if(typeof _92=="undefined"){
_92=null;
}
return _92;
},getItemSets:function(){
if(this.itemSets){
return this.itemSets;
}
this.loadItemSets();
return this.itemSets;
},loadItemSets:function(){
delete this.itemSets;
this.itemSets={};
var _93=[];
com.ibm.mm.enabler.iw.utils.findElementByAttribute("class",this.ns+"ItemSet",this.rootElement,_93,true);
if(_93.length>0){
for(var i=0;i<_93.length;i++){
var _94=_93[i];
var _95=_94.getAttribute("title");
if(typeof (_95)!="undefined"){
aItemSet=this.itemSets[_95];
if(typeof aItemSet=="undefined"||aItemSet===null){
this.itemSets[_95]={};
}
var _96=[];
com.ibm.mm.enabler.iw.utils.findElementByAttribute("class",this.ns+"Item",_94,_96,true);
if(_96.length!=0){
for(var j=0;j<_96.length;j++){
var _97=_96[j];
var _98=this._loadLocalizedItem(_97);
var _99=_98.itemName;
this.itemSets[_95][_99]=_98;
}
}
}
}
}
},_loadLocalizedItem:function(_9a){
var _9b={};
var _9c=_9a.getAttribute("href");
var _9d=_9c.indexOf("#");
if(_9d!=-1){
_9c=_9c.substring(_9d+1);
}
_9b.itemName=_9c;
var _9e=_9a.getAttribute("lang");
if(typeof _9e=="undefined"){
_9e=null;
}
if(_9e!=null){
_9b.defaultLang=_9e;
}
var _9f=_9a.innerHTML;
if(typeof _9f!="undefined"||_9f!=null){
_9b.defaultValue=_9f;
}
com.ibm.mm.enabler.debug.exit("com.ibm.mm.enabler.iWidgetInstanceStandard._loadLocalizedItem","item:"+_9b);
return _9b;
}});
iwConstants={mode_view:"view",mode_edit:"edit",mode_help:"help",ATTRIBUTES:"attributes",IDESCRIPTOR:"idescriptor",USERPROFILE:"userprofile",iDescriptorItems:{title:"title",name:"name",description:"description",defaultHeight:"defaultHeight",defaultWidth:"defaultWidth",locales:"locales",mode:"mode",size:"size",author:"author",email:"email",website:"website",version:"version",globalAttributes:"globalAttributes",icon:"icon"},CSSCLASS_INSTANCE:{iwiWidget:"iWidget",iwDefinition:"Definition",iwHandler:"Handler",iwItemDescription:"ItemDescription",iwReadOnly:"ReadOnly",iwItemSet:"ItemSet",iwItemSetDescRef:"ItemSetDescRef",iwResource:"Resource",iwSrc:"iwSrc",iwmime:"mime",iwversion:"version",iwcallback:"callback",iwContent:"Content",iwAllowInstanceContent:"AllowInstanceContent",iwReceivedEvent:"ReceivedEvent",iwSourceEvent:"SourceEvent",iwTargetEvent:"TargetEvent",iwItem:"Item",iwValue:"Value"},RESOURCE:{src:"src",id:"id",mimetype:"mimetype",callback:"callback",version:"version"}};
}


;if(!dojo._hasResource["com.ibm.mm.livetext.widgets"]){
dojo._hasResource["com.ibm.mm.livetext.widgets"]=true;
dojo.provide("com.ibm.mm.livetext.widgets");
dojo.provide("tagservices.widgets");


dojo.declare("tagservices.widgets",null,{processTag:function(_1){
com.ibm.mm.enabler.debug.entry("tagservices.widgets.processTag","Tag:"+_1);
com.ibm.mm.enabler.debug.log("tagservices.widgets.processTag","widgets:process IWidget");
var _2=iWidgetContainer.createWidget(_1);
if(_2){
iWidgetContainer.renderWidget(_2);
}
}});
}


;if(!dojo._hasResource["lconn.core.dynamiciwidget"]){
dojo._hasResource["lconn.core.dynamiciwidget"]=true;
(function(){
dojo.provide("lconn.core.dynamiciwidget");




var _1;
function _2(_3){
_3.src=dijit._Widget.prototype._blankGif;
};
lconn.core.dynamiciwidget.create=function(_4,_5){
var _6=dojo.getObject(_4);
if(!_6){
_6=dojo.declare(_4,null,{loadPromise:(function(){
var _7=new lconn.core.util.LCDeferred();
_7.resolve();
return _7;
})(),onLoad:function(){
this.loadPromise=new lconn.core.util.LCDeferred();
var _8=this.iContext;
var _9=_8.getRootElement();
dojo.query("img.lotusLoading",_9).forEach(_2);
var _a=_8.getiWidgetAttributes();
var _b=_5||_4+"Impl";
if(!_1){
_1=[];
for(var i=0;i<window._js_modules.length;i++){
var m=window._js_modules[i];
if(m.lastIndexOf(".js")!=-1&&m.lastIndexOf(".js")==m.length-3){
m=m.substring(0,m.length-3);
}
_1[i]=m;
}
}
net.jazz.ajax.xdloader.load_layer_async(_b,[].concat(_1),dojo.hitch(this,"_onModuleLoaded",this.onLoad));
},_onModuleLoaded:function(_c){
if(!this._isUnloaded&&_c!=this.onLoad){
this.onLoad();
this.loadPromise.resolve();
}
},onUnload:function(){
this._isUnloaded=true;
},onsearch:function(){
var _d=this.onsearch;
this.loadPromise.then(dojo.hitch(this,function(){
if(this.onsearch!=_d){
this.onsearch();
}else{
if(dojo.isFunction(this.onSearch)){
this.onsearch=null;
this.onSearch();
}
}
}));
},onview:function(){
var _e=this.onview;
this.loadPromise.then(dojo.hitch(this,function(){
if(this.onview!=_e){
this.onview();
}else{
if(dojo.isFunction(this.onView)){
this.onview=null;
this.onView();
}
}
}));
},onfullpage:function(){
var _f=this.onfullpage;
this.loadPromise.then(dojo.hitch(this,function(){
if(this.onfullpage!=_f){
this.onfullpage();
}else{
if(dojo.isFunction(this.onFullpage)){
this.onfullpage=null;
this.onFullpage();
}
}
}));
},onedit:function(){
var _10=this.onedit;
this.loadPromise.then(dojo.hitch(this,function(){
if(this.onedit!=_10){
this.onedit();
}else{
if(dojo.isFunction(this.onEdit)){
this.onedit=null;
this.onEdit();
}
}
}));
}});
}
return _6;
};
})();
}


;if(!dojo._hasResource["lconn.core.mumOverride"]){
dojo._hasResource["lconn.core.mumOverride"]=true;
dojo.provide("lconn.core.mumOverride");










var url=ibmConfig.proxyURL;
ibmConfig["com.ibm.mashups.proxy.url"]=url.replace(/\/$/,"");
com.ibm.mm.enabler.iw.InternalPersistentAttributesToPreferenceModelAdapter.prototype.save=function(_1){
if(this.serverless){
this._saveMicroformat();
}else{
return null;
}
this.reload();
var _2=null;
if(_1){
_2=function(_3,_4){
if(_1){
_1(_3,_4);
}
};
}
lconn.core.mumOverride.saveAttributes(this.widget,this.microformatItems,_2);
return (this);
};
com.ibm.mm.enabler.iw.iContextImpl.prototype.getUserProfile=function(){
var _5=new com.ibm.mm.enabler.iw.ManagedItemSetImpl();
if(window.widgetUserInfo!=null){
_5.setUserInfo(widgetUserInfo);
}else{
if(WidgetPlacementConfig.userInfoXML==null){
var _6=function(_7,_8){
WidgetPlacementConfig.userInfoXML=_7;
_5.setXmlDoc(_7);
};
var _9={url:WidgetPlacementConfig.userInfoUrl,handleAs:"xml",load:_6,sync:true,error:lconn.core.errorhandling.DefaultXHRErrorHandler};
dojo.xhrGet(_9);
}else{
_5.setXmlDoc(WidgetPlacementConfig.userInfoXML);
}
}
return _5;
};
dojo.declare("com.ibm.mm.enabler.iw.ManagedItemSetImpl",com.ibm.mm.enabler.iw.ManagedItemSet,{constructor:function(){
},getItemValue:function(_a){
if(this.widgetUserInfo!=null){
return this.widgetUserInfo[_a];
}else{
if(this.xmlDoc!=null){
return this.xmlDoc.documentElement.getAttribute(_a);
}else{
return null;
}
}
},setXmlDoc:function(_b){
this.xmlDoc=_b;
},setUserInfo:function(_c){
this.widgetUserInfo=_c;
}});
com.ibm.mm.enabler.iWidgetWrapperDefaultImpl.prototype.update=function(){
this._initialize();
var _d;
var _e=dojo.query("div.mm_content",this.rootElement);
if(_e.length>0){
_d=_e[0];
}else{
_d=this.rootElement.lastChild;
}
this._updateMarkup(this.currentMode,_d);
this._loadWidgetSharedResource();
this._createiScope();
this._evalScripts(_d);
this.windowManager[this.currentMode]={id:this.currentMode,root:_d,active:true,external:false};
};
com.ibm.mm.enabler.iWidgetWrapperDefaultImpl.prototype.handleEvent=function(_f,_10){
if(typeof _f=="undefined"||_f==null){
return false;
}
if(_f==com.ibm.mm.enabler.iw.iEvents.Constants.onModeChanged){
if(WidgetPlacementConfig.isTabbedFullPageWidgetRendering){
handleModeExit();
}else{
if(_10.payload!=null&&_10.payload.indexOf("fullpage")!=-1){
changeHash("fullpageWidgetId="+this.id);
}
return this._handleModeChange(_10);
}
}
if(_f=="onNewWire"){
return this._handleNewWire(_10);
}
if(_f=="onRemoveWire"){
return this._handleRemoveWire(_10);
}
return this._handleEventInternal(_f,_10);
};
com.ibm.mm.enabler.iWidgetWrapperDefaultImpl.prototype._handleInlineMessage=function(_11,_12,_13){
var _14=[];
com.ibm.mm.enabler.iw.utils.findElementByAttribute("class",this.ns+"content",this.rootElement,_14,false);
var _15=_14[0];
if(_15!=null){
_15.innerHTML="";
_15.style.padding="5px";
lconn.core.errorhandling.DefaultErrorHandler(_12,_13,{htmlContainerElemId:_15});
}
};
com.ibm.mm.enabler.iw.services.widgetLoadService.prototype.getWidgetXML=function(_16,_17){
com.ibm.mm.enabler.debug.entry("widgetLoadService.getWidgetXML","widgetUrl:"+_16+" widgetId:"+_17);
this.widgetId=_17;
var me=this;
var _18=_16;
if(_18.indexOf("http")===0){
_18=com.ibm.mm.enabler.utilities.rewriteURL(_18);
}
var _19={url:_18,load:function(_1a,_1b){
me.handleLoad(_1a,_1b.xhr);
},error:function(_1c,_1d){
com.ibm.mm.enabler.debug.error("widgetLoadService.getWidgetXML","Error widgetLoadService.getWidgetXML error loading!"+_1c);
var _1e=[];
_1e.push("error");
var _1f=dojo.i18n.getLocalization("com.ibm.mm.enabler","iwMessages");
_1e.push(dojo.string.substitute(_1f.E_IWIDGETDEF_NOTAVAILABLE_1,[_18]));
_1e.push(_1c.message);
dojo.publish("/enabler/inlineMessage/"+me.widgetId,_1e);
},handleAs:"text",expectedContentType:"xml"};
dojo.xhrGet(_19);
};
lconn.core.mumOverride.registerLoadedResource=function(_20){
var res={};
res[iwConstants.RESOURCE.src]=_20;
serviceManager.getService("loadService").modules[_20]=res;
};
lconn.core.mumOverride.destroyWidget=function(_21){
eval("if(window._"+_21+"_iContext != null && _"+_21+"_iContext.iScope().onDestroyWidget != null) _"+_21+"_iContext.iScope().onDestroyWidget();");
serviceManager.getService("eventService").publishEvent("/enabler/unloadWidget",[_21]);
window["_"+_21+"_iContext"]=null;
};
lconn.core.mumOverride.renderSingleWidget=function(_22){
if(lconn.core.WidgetPlacement.URLChangeCallBack==null){
lconn.core.WidgetPlacement.URLChangeCallBack=[lconn.core.WidgetPlacement.URLChange];
registerBackButtonSupport();
}
var _23=dojo.byId(_22);
if(_23!=null){
var _24=iWidgetContainer.createWidget(_23);
if(_24){
iWidgetContainer.renderWidget(_24);
}
}
};
lconn.core.mumOverride.saveAttributes=function(_25,_26,_27){
var _28=_25.id;
if(_25.iScope.iContext.getUserProfile().getItemValue("canPersonalize")=="true"){
var _29="";
var _2a=[];
var _2b="/tns:widgets/tns:layout/tns:page/tns:widgetInstance[@instanceId = '"+_28+"']";
var _2c=lconn.core.xpath.selectSingleNode(_2b,WidgetPlacementConfig.widgetConfigXMLDocument);
var _2d=null;
if(_2c!=null){
_2d=_2c.getAttribute("defIdRef");
}else{
_2d=instanceId;
}
var _2e="/tns:widgets/tns:layout/tns:page/tns:widgetInstance[@instanceId = '"+_28+"']/tns:itemSet/tns:item";
var _2f=lconn.core.xpath.selectNodes(_2e,WidgetPlacementConfig.widgetConfigXMLDocument);
for(var i=0;_2f.length!=null&&i<_2f.length;i++){
var _30=_2f[i].getAttribute("name");
var _31=_26[_30];
var _32=_2f[i].getAttribute("value");
_32=lconn.core.i18nOverrider.replaceParams(_32,WidgetPlacementConfig.params);
_2a.push({entryName:_2f[i].getAttribute("name"),entryValue:_32});
if(_31!=null&&_30!="resourceId"&&_30!="resourceType"){
_2f[i].setAttribute("value",_31.value);
}
}
for(_30 in _26){
var _33=_26[_30];
var _34=true;
if(_34){
_29+=_30+"=_="+_33.value+",_,";
}
}
if(WidgetPlacementConfig.debug){
console.log("lconn.core.mumOverride.saveAttributes: putContent: "+_29);
}
var url=WidgetPlacementConfig.applicationContext+"/saveWidgetPreferences.do?resourceId="+WidgetPlacementConfig.resourceId;
url+="&widgetInstanceId="+_28;
var _35=new Date().getTime();
WidgetPlacementConfig.lastMod=_35+"saveAttributes";
lconn.core.mumOverride.saveAttributes.callback=_27;
var _36=function(){
WidgetPlacementConfig.widgetConfigXMLDocument=null;
var _37=function(_38,_39){
WidgetPlacementConfig.widgetConfigXMLDocument=_38;
lconn.core.WidgetPlacement.refreshTitleAndMicroformat(_28,_38,_26);
if(lconn.core.mumOverride.saveAttributes.callback!=null){
lconn.core.mumOverride.saveAttributes.callback("attributes",true);
}
};
var _3a=function(_3b,_3c){
if(lconn.core.mumOverride.saveAttributes.callback!=null){
lconn.core.mumOverride.saveAttributes.callback("attributes",false);
}
lconn.core.errorhandling.DefaultXHRErrorHandler(_3b,_3c);
};
dojo.xhrGet({url:WidgetPlacementConfig.layoutInfoUrl+"&lastMod="+WidgetPlacementConfig.lastMod,error:_3a,handleAs:"xml",sync:true,load:_37});
};
dojo.xhrPut({url:url,headers:{"X-Update-Nonce":window.dangerousurlnonce},putData:_29,load:_36,error:lconn.core.errorhandling.DefaultXHRErrorHandler,sync:true});
}else{
throw new Error("user cannot edit preferences");
}
};
}


;if(!dojo._hasResource["lconn.profiles.api"]){
dojo._hasResource["lconn.profiles.api"]=true;
dojo.provide("lconn.profiles.api");
lconn.profiles.api.isUserLoggedIn=function(){
return lconn.profiles.ProfilesCore.isUserLoggedIn();
};
lconn.profiles.api.getLoggedInUserUid=function(){
return lconn.profiles.ProfilesCore.getLoggedInUserUid();
};
lconn.profiles.api.getDisplayedUserInfo=function(){
profilesData.displayedUser.profileLastModDate=profilesData.config.profileLastMod;
return profilesData.user;
};
lconn.profiles.api.getCurrentPageId=function(){
return profilesData.config.pageId;
};
lconn.profiles.api.loadWidgetFullPage=function(_1,_2){
alert("* replace with widget framework *");
lconn.core.WidgetPlacement.loadFullpageView(_1);
};
lconn.profiles.api.semanticTag=function(){
this.parse=function(_3){
profiles_AddLiveNameSupport(_3);
};
};
}


;if(!dojo._hasResource["lconn.profiles.formBasedUtility"]){
dojo._hasResource["lconn.profiles.formBasedUtility"]=true;




dojo.provide("lconn.profiles.formBasedUtility");
dojo.declare("lconn.profiles.formBasedUtility",null,{_contextRoot:null,REDIRECT_PATH:null,COOKIE_NAME:"ProfilesReqURL",constructor:function(_1){
if(!lconn.profiles.formBasedUtility.prototype._init){
lconn.profiles.formBasedUtility.prototype._init=true;
this._contextRoot=_1;
this.REDIRECT_PATH="/auth/loginRedirect.do?loginReturnPage="+profilesData.config.loginReturnPageEnc;
this._overrideXhrCalls();
}else{
throw new Error("lconn.profiles.formBasedUtility is a singleton. It cannot be instantiated twice");
}
},_checkHeaders:function(_2,_3,_4){
var _5=_4.xhr.getResponseHeader("X-LConn-Auth");
var _6=("true"==_5||"false"==_5);
if(_6){
return false;
}else{
if(_4.args.checkAuthHeader){
return true;
}
}
return false;
},_check302:function(_7,_8,_9){
if(!_9.args._profilesRequest){
return false;
}
if(typeof _9.xhr.status=="unknown"){
return true;
}
var _a=_9.xhr.status;
if(_a==302||(dojo.isIE&&(_a==0||_a==12150))){
return true;
}
return false;
},_check401:function(_b,_c,_d){
if(!_d.args._profilesRequest){
return false;
}
return (_d.xhr.status==401);
},_overrideXhrCalls:function(){
var _e=com.ibm.ajax.auth;
_e.addAuthenticationCheck(this._checkHeaders);
_e.addAuthenticationCheck(this._check302);
_e.addAuthenticationCheck(this._check401);
var _f=this._contextRoot+this.REDIRECT_PATH;
var _10=this;
var _11={url:_f,authenticationRequired:function(_12,_13,_14){
if(_13.args[1].noLoginRedirect&&_13.args[1]._profilesRequest){
lconn.profiles.ProfilesCore.showInfoMsg("profileInfoMsgDiv","error",generalrs["error.sessionTimeout"]);
}else{
var _15=window.location.href.replace(/,/g,"%2C");
document.cookie=_10.COOKIE_NAME+"="+_15+"; path="+_10._contextRoot;
location.href=this.url;
}
},onSuccess:function(_16,_17){
console.log("Successfully loaded");
}};
var _18=function(_19,_1a){
_1a.args._profilesRequest=true;
return this._check302(null,_19,_1a);
};
var _1b=_18;
if(typeof (CUSTOM_AUTH_JS_CLASS)!=="undefined"){
var _1c=eval("new "+CUSTOM_AUTH_JS_CLASS+"()");
if(typeof (_1c.isAuthenticationRequired)!=="undefined"){
_e.setDefaultAuthenticationTests(true,false,true);
_1b=_1c.isAuthenticationRequired;
if(typeof (_1c.handler)!=="undefined"){
_e.setAuthenticationHandler(dojo.hitch(_1c.handler,_1c.handler.authenticationRequired));
}else{
_e.setAuthenticationHandler(dojo.hitch(_11,_11.authenticationRequired));
}
}
}else{
_e.setDefaultAuthenticationTests(true,false,true);
_e.setAuthenticationHandler(dojo.hitch(_11,_11.authenticationRequired));
}
var _1d=new lconn.core.auth.whiteListHelper(profilesGlobalServices,ibmConfig.proxyURL);
originaldojoxhr=dojo.xhr;
dojo.xhr=function(){
var _1e=arguments[1];
var _1f=false;
var _20=false;
if(_1e.checkAuthHeader){
_1f=_1e.checkAuthHeader;
_20=true;
}
if(_1d.isWhiteListedURL(_1e.url)){
if(typeof _1e.handleAs=="undefined"){
_1e.handleAs="text";
}
try{
_1e[1]=_e.prepareSecure(_1e);
_1e[1]._checkAuthHeader=_1f;
_1e[1]._profilesRequest=_20;
}
catch(e){
console.log("exception in overriden lconn.profiles.xhr (form-based auth");
console.log(e);
}
}
return originaldojoxhr(arguments[0],arguments[1],arguments[2]);
};
}});
lconn.profiles.formBasedUtility.prototype._init=false;
}


;if(!dojo._hasResource["lconn.profiles.LocalCache"]){
dojo._hasResource["lconn.profiles.LocalCache"]=true;
(function(_1,_2){
var _3=dojo.provide("lconn.profiles.LocalCache");
var _4="icprofilecache";
function _5(){
return dojo.fromJson(localStorage.getItem(_4))||{};
};
function _6(_7){
localStorage.setItem(_4,dojo.toJson(_7));
};
function _8(){
localStorage.removeItem(_4);
};
dojo.mixin(_3,{set:function set(_9,_a){
var o={};
o[_9]=_a;
_6(dojo.mixin(_5(),o));
},unset:function unset(_b){
var p=_5();
delete p[_b];
_6(p);
},get:function get(_c){
return _5()[_c];
},clear:function clear(){
_8();
}});
})(window,document);
}


;if(!dojo._hasResource["lconn.profiles.ProfilesCore"]){
dojo._hasResource["lconn.profiles.ProfilesCore"]=true;












dojo.provide("lconn.profiles.ProfilesCore");
lconn.profiles.ProfilesCore.showAlert=function(_1){
var _2=dijit.byId("lotusAlertDialog");
if(_2){
dojo.byId("lotusAlertDialogContent").innerHTML=_1;
dojo.attr(dojo.byId("lotusAlertDialog"),"aria-describedby","lotusAlertDialogContent");
_2.show();
dojo.style(_2.domNode,"zIndex",20000);
}else{
alert(_1);
}
return;
};
var dojoOriginalFindWidgets=dijit.findWidgets;
dijit.findWidgets=function(){
return dojo.filter(dojoOriginalFindWidgets.apply(this,arguments),function(_3){
return !!_3;
});
};
var blankImg=dojo.config.blankGif||dijit._Widget.prototype._blankGif;
var versionStamp=ibmConfig.versionStamp;
var proxyURL=ibmConfig.proxyURL;
lconn.profiles.ProfilesCore._proxyHelper=new lconn.core.url.ProxyUrlHelper(proxyURL);
lconn.profiles.ProfilesCore.getProxifiedURL=function(_4){
return lconn.profiles.ProfilesCore._proxyHelper.getProxifiedURL(_4);
};
lconn.profiles.ProfilesCore.confirm=function confirm(_5,_6){
var _7=function(_8){
if(_8){
_6();
}
};
if(!_5){
_7(true);
}else{
if(dojo.exists("lconn.core.DialogUtil")){
lconn.core.DialogUtil.prompt(generalrs["information_confirmation_alt"],_5,generalrs["ok"],generalrs["cancel"],_7);
}else{
_7(_9(_5));
}
}
};
lconn.profiles.ProfilesCore.replacePlaceHolders=function(_a,_b){
_a=_a.replace(/\'\'/g,"'");
if(_b.length>0){
_a=_a.replace(/\{0\}/,_b[0]);
}
if(_b.length>1){
_a=_a.replace(/\{1\}/,_b[1]);
}
if(_b.length>2){
_a=_a.replace(/\{2\}/,_b[2]);
}
return _a;
};
lconn.profiles.ProfilesCore.isUserLoggedIn=function(){
return profilesData.loggedInUser.isLoggedIn;
};
lconn.profiles.ProfilesCore.getLoggedInUserKey=function(){
return profilesData.loggedInUser.loggedInUserKey;
};
lconn.profiles.ProfilesCore.getLoggedInUserUid=function(){
return profilesData.loggedInUser.loggedInUserUID;
};
lconn.profiles.ProfilesCore.getXMLDoc=function(_c){
var _d=null;
var _e=function(_f){
_d=_f;
};
lconn.profiles.xhrGet({checkAuthHeader:true,url:_c,error:lconn.profiles.ProfilesCore.DefaultXHRErrorHandler,handleAs:"xml",load:_e,sync:true});
return _d;
};
lconn.profiles.ProfilesCore.DefaultXHRErrorHandler=function(_10,_11){
var _12=null;
var msg=null;
if(_10.status==404){
if(_11.args!=null&&_11.args.url!=null){
if(_11.args.url.indexOf("roller-ui/feed")!=-1||_11.args.url.indexOf("files/basic/anonymous/api/userlibrary")!=-1||_11.args.url.indexOf("wikis/basic/anonymous/api/userlibrary")!=-1){
msg=generalrs.multiFeedReaderNoFeeds;
lconn.profiles.ProfilesCore.displayError(_11,msg,_10);
return;
}
}
}
if(_10.status==400){
if(_11.args!=null&&_11.args.url!=null){
if(_11.args.url.indexOf("service/atom/communities")!=-1){
msg=generalrs.multiFeedReaderNoFeeds;
lconn.profiles.ProfilesCore.displayError(_11,msg,_10);
return;
}
}
}
if(_10.documentElement!=null){
if(_10.documentElement.nodeName=="error"||_10.documentElement.nodeName=="parsererror"){
var _13=(dojox.data.dom.innerXML(_10.documentElement));
msg=lconn.profiles.ProfilesCore.getErrorHTML(null,null,null,null,_13);
}
}else{
var _14=generalrs.errorUnableToConnect;
_14=lconn.profiles.ProfilesCore.replacePlaceHolders(_14,[_11.args.url]);
if(_10.message!=null&&_10.name!=null){
return lconn.profiles.ProfilesCore.DefaultErrorHandler(_14,_10,_11.args.xsltArgs);
}else{
msg=lconn.profiles.ProfilesCore.getErrorHTML(_14,null,null,null,_10);
}
}
if(msg==null){
msg=lconn.profiles.ProfilesCore.getErrorHTML(null,null,null,null,_10);
}
lconn.profiles.ProfilesCore.displayError(_11,msg,_10);
};
lconn.profiles.ProfilesCore.displayError=function(_15,msg,_16){
if(_15!=null&&_15.args!=null&&_15.args.xsltArgs!=null&&_15.args.xsltArgs.htmlContainerElemId!=null){
document.getElementById(_15.args.xsltArgs.htmlContainerElemId).innerHTML=msg;
}else{
if(_15!=null&&_15.args!=null&&_15.args.htmlContainerElemId!=null){
document.getElementById(_15.args.htmlContainerElemId).innerHTML=msg;
}else{
if(typeof (nativeAlert)!="undefined"){
alert(msg+"<br/><br/>"+(typeof (_15)!="object"?"Arguments: ["+_15+"]"+"<br/>":"")+(_16?"Response: ["+_16+"]":""));
}else{
alert(msg+"\n\n"+(typeof (_15)!="object"?"Arguments: ["+_15+"]"+"\n":"")+(_16?"Response: ["+_16+"]":""));
}
}
}
};
lconn.profiles.ProfilesCore.DefaultErrorHandler=function(_17,_18,_19){
var _1a=function(_1b){
var _1c=_1b.name;
if(_1b.tempName!=null&&_1b.tempName!=""){
_1c=_1b.tempName;
}
if(_1c==null||_1c==""){
var _1d=_1b.toString();
var _1e=_1d.match(/function (\w*)/);
if(_1e!=null){
_1c=_1e[1];
}
if(_1c==null||_1c==""){
_1c="anonymous-function";
}
}
return _1c;
};
var _1f=function(){
var _20=_1f.caller;
var _21=new Error();
if(_21.stack!=null){
return _21.stack;
}else{
var _22="";
while(_20!=null){
_22+="\n"+_1a(_20);
var _23=_20.caller;
if(_23==null&&_20.arguments!=null&&_20.arguments.caller!=null){
_23=_20.arguments.caller;
}
_20=_23;
}
return _22;
}
};
var log=function(_24,_25,_26){
var msg="";
if(_25 instanceof (Error)){
var _27=null;
if(_25.lineNumber!=null){
_27=_25.lineNumber;
}
if(_27!=null){
msg+=generalrs.errorLine+" "+_27+"<br/>";
}
var _28=_1f();
msg=lconn.profiles.ProfilesCore.getErrorHTML(_24,_25.message,_25.name,_27,_28);
}else{
var _28=_1f();
msg=lconn.profiles.ProfilesCore.getErrorHTML(_24,_25,null,null,_28);
}
var _29={args:{xsltArgs:{htmlContainerElemId:(_26?_26:null)}}};
lconn.profiles.ProfilesCore.displayError(_29,msg);
};
log(_17,_18,(typeof (_19)=="object"&&_19.htmlContainerElemId?_19.htmlContainerElemId:null));
};
lconn.profiles.ProfilesCore.getErrorHTML=function(_2a,_2b,_2c,_2d,_2e){
var _2f=new Date().getTime();
var msg="";
msg+="<span style='font-size: x-small;vertical-align: top;'>";
msg+="\t<img class='iconsMessages16 iconsMessages16-msgError16' src='"+blankImg+"'/><b>"+generalrs.errorDefaultMsg+"</b><br/>";
msg+="\t"+generalrs.errorDefaultMsg2+"<br/><br/>";
msg+="\t<a href='javascript:void(0);' onclick=\"lconn.profiles.ProfilesCore.toggleVisibility('trace_"+_2f+"');\">"+generalrs.errorDefaultMsg3+"</a>";
msg+="\t<div id='trace_"+_2f+"' style='visibility: hidden; display: none;'>";
msg+="<br/>";
if(_2a!=null){
msg+=generalrs.errorName+" "+_2a+"<br/>";
}
if(_2b!=null){
msg+=generalrs.errorMsg+" "+_2b+"<br/>";
}
if(_2c!=null){
msg+=generalrs.errorType+""+_2c+"<br/>";
}
if(_2d!=null){
msg+=generalrs.errorLine+" "+_2d+"<br/>";
}
if(_2e!=null){
msg+=generalrs.errorStackTrace+"<br/><pre>"+_2e+"</pre><br/>";
}
msg+="\t</div>";
msg+=" </span>";
return msg;
};
lconn.profiles.ProfilesCore.loadResourceStrings=function(_30,_31){
dojo.deprecated("lconn.profiles.ProfilesCore.loadResourceStrings","Replace with direct references to dojo message bundles","3.5");
if(_30==null){
_30=new Array;
}
for(var i=0;_31!=null&&i<_31.length;i++){
var _32=generalrs[_31[i]];
if(_32){
var _33=_32.replace(/\'\'/g,"'");
if(_33==null||_33==""){
_30.push([_31[i],_31[i]+" resourceKey not found"]);
}else{
_30.push([_31[i],_33]);
}
}
}
return _30;
};
lconn.profiles.ProfilesCore.loadContent=function(_34,_35,_36,_37,_38,_39,_3a){
if(!_34){
return false;
}
if(_3a&&_34.indexOf("lastMod=")==-1){
_34+=((_34.indexOf("?")==-1)?"?lastMod=":"&lastMod=")+profilesData.config.profileLastMod;
}
var _3b={xmlDocUrl:_34};
return lconn.profiles.ProfilesCore._loadContent(_3b,_35,_36,_37,_38,_39);
};
lconn.profiles.ProfilesCore.loadContentObj=function(_3c,_3d,_3e,_3f,_40,_41,_42){
if(_42&&dataUrl.indexOf("lastMod=")==-1){
dataUrl+=((dataUrl.indexOf("?")==-1)?"?lastMod=":"&lastMod=")+profilesData.config.profileLastMod;
}
var _43={xmlDoc:_3c};
return lconn.profiles.ProfilesCore._loadContent(_43,_3d,_3e,_3f,_40,_41);
};
lconn.profiles.ProfilesCore._loadContent=function(_44,_45,_46,_47,_48,_49){
var _4a=false;
var _4b=function(_4c,_4d,_4e){
if(_4d==null){
_4d=new Array;
}
_4d.push(["etag",versionStamp]);
_4d.push(["blankImg",blankImg]);
_4d.push(["appLang",(appLang?appLang:"")]);
if(lconn.profiles.ProfilesCore.isUserLoggedIn()){
_4d.push(["loggedIn","true"]);
_4d.push(["loggedInUserUid",lconn.profiles.ProfilesCore.getLoggedInUserUid()]);
_4d.push(["loggedInUserKey",lconn.profiles.ProfilesCore.getLoggedInUserKey()]);
}else{
_4d.push(["loggedIn","false"]);
}
if(_4e!=null){
_4d.push(["displayedUserKey",_4e]);
}
_4d.push(["applicationContext",applicationContext]);
_4d.push(["profImageDir",applicationContext+"/static/images/"+profilesData.config.appChkSum]);
_4d=lconn.profiles.ProfilesCore.loadResourceStrings(_4d,_4c);
return _4d;
};
var _4f=_4b(_47,_48,_49);
if(_44){
try{
_44.xsltUrl=_45;
_44.htmlContainerElemId=_46;
_44.aXslParams=_4f;
_44.dojoErrorHandler=lconn.profiles.ProfilesCore.DefaultXHRErrorHandler;
_44.exceptionHandler=lconn.profiles.ProfilesCore.DefaultErrorHandler;
lconn.core.xslt.transformAndRender(_44);
_4a=true;
}
catch(e){
var _50=e.message;
throw new Error("lconn.profiles.ProfilesCore._loadContent:\n"+"exception: "+_50+"\n"+"for XSL: ["+_45+"]");
}
}else{
throw new Error("lconn.profiles.ProfilesCore._loadContent: xsltArgs is null for XSL: ["+_45+"]");
}
return _4a;
};
function profiles_goBack(){
if(history.length>1){
history.back();
}else{
profiles_goto(applicationContext);
}
};
function profiles_setProfilesLastMod(_51){
if(_51.documentElement.nodeName=="success"){
profilesData.config.profileLastMod=_51.documentElement.getAttribute("time");
}
};
(function(){
var _52="lastElement";
lconn.profiles.ProfilesCore.setLastElement=function setLastElement(id){
if(dojo.exists("lconn.profiles.LocalCache")&&typeof id==="string"){
return lconn.profiles.LocalCache.set(_52,id);
}
};
lconn.profiles.ProfilesCore.getLastElement=function getLastElement(){
if(dojo.exists("lconn.profiles.LocalCache")){
return lconn.profiles.LocalCache.get(_52);
}else{
return null;
}
};
lconn.profiles.ProfilesCore.clearLastElement=function getLastElement(){
if(dojo.exists("lconn.profiles.LocalCache")){
return lconn.profiles.LocalCache.unset(_52);
}else{
return null;
}
};
})();
function profiles_goto(url,_53,_54){
if(url==""||typeof (url)!="string"){
return;
}
if(_53==null){
if(url.indexOf("?")!=-1){
url+="&acs="+profilesData.config.appChkSum+"&lastMod="+profilesData.config.profileLastMod;
}else{
url+="?acs="+profilesData.config.appChkSum+"&lastMod="+profilesData.config.profileLastMod;
}
}
if(_54){
lconn.profiles.ProfilesCore.setLastElement(_54);
}
SideBar_RedirectUrl=url;
setTimeout(function(){
if(dojo.isIE){
try{
eval("window.location.href = SideBar_RedirectUrl;");
}
catch(e){
}
}else{
window.location.assign(SideBar_RedirectUrl);
}
},100);
};
lconn.profiles.ProfilesCore.loadTime=function(){
};
lconn.profiles.ProfilesCore.showProgressMsg=function(_55,msg){
var e=dojo.byId(_55);
if(e){
e.innerHTML="<img class=\"lotusLoading\" alt=\""+msg+"\" src=\""+blankImg+"\" />&nbsp;"+msg;
}
};
lconn.profiles.ProfilesCore.getInfoMsgMarkup=function(_56,msg,_57){
if(typeof _57=="undefined"){
_57=true;
}
var _58="lotusMessage lotusConfirm";
var _59="iconsMessages16 iconsMessages16-msgSuccess16";
var _5a=generalrs.information_confirmation_alt;
var _5b=generalrs.information_confirmation_close_alt;
switch(_56){
case "error":
_5a=generalrs.information_error_alt;
_5b=generalrs.information_error_close_alt;
_59="iconsMessages16 iconsMessages16-msgError16";
_58="lotusMessage";
break;
case "warning":
_5a=generalrs.information_warning_alt;
_5b=generalrs.information_warning_close_alt;
_59="iconsMessages16 iconsMessages16-msgWarning16";
_58="lotusMessage lotusWarning";
break;
case "info":
_5a=generalrs.information_information_alt;
_5b=generalrs.information_information_close_alt;
_59="iconsMessages16 iconsMessages16-msgInfo16";
_58="lotusMessage lotusInfo";
break;
}
var _5c=dojo.create("div");
_5c.id="profilesInfoMsg_"+new String(Math.random()).replace(".","");
_5c.className=_58;
var msg="<img role=\"presentation\" alt=\"\" src=\""+blankImg+"\" class=\""+_59+"\">"+"<span class=\"lotusAltText\">"+_5a+"</span>"+"<span>"+msg+"</span>";
if(_57){
msg+="<a title=\""+_5b+"\" role=\"button\" class=\"lotusDelete\" href=\"javascript:void lconn.profiles.ProfilesCore.hideInfoMsg(&quot;"+_5c.id+"&quot;);\">"+"<img src=\""+blankImg+"\" alt=\"\">"+"<span class=\"lotusAltText\">X</span>"+"</a>";
}
_5c.innerHTML=msg;
return _5c;
};
lconn.profiles.ProfilesCore.showInfoMsg=function(id,_5d,msg,_5e,_5f,_60){
var el=(typeof (id)=="string"?document.getElementById(id):(typeof (id)=="object"?id:""));
if(el&&_5d&&msg){
var _61=lconn.profiles.ProfilesCore.getInfoMsgMarkup(_5d,msg,_60);
el.innerHTML="";
el.appendChild(_61);
el.className=el.className.replace(/lotusHidden/g,"");
if(typeof (_5f)=="number"&&_5f){
window.setTimeout("lconn.profiles.ProfilesCore.hideInfoMsg('"+_61.id+"')",_5f*1000);
}
return true;
}else{
if(_5e&&msg){
alert(msg);
return true;
}
}
return false;
};
lconn.profiles.ProfilesCore.hideInfoMsg=function(id){
var el=null;
if(typeof (id)=="string"){
el=document.getElementById(id);
}else{
if(typeof (id)=="object"){
el=id;
}
}
if(el){
el.className+=" lotusHidden";
return true;
}
return false;
};
lconn.profiles.ProfilesCore.toggleVisibility=function(_62,_63){
var _64=null;
if((typeof _62)=="string"){
_64=document.getElementById(_62);
}else{
_64=_62;
}
if(_64){
if(_64.style.visibility=="hidden"){
lconn.profiles.ProfilesCore.show(_64,_63);
}else{
lconn.profiles.ProfilesCore.hide(_64,_63);
}
}
return false;
};
lconn.profiles.ProfilesCore.hide=function(_65,_66){
var _67=null;
if((typeof _65)=="string"){
_67=document.getElementById(_65);
}else{
_67=_65;
}
if(_67){
_67.style.visibility="hidden";
if(!_66){
_67.style.display="none";
}
}
return false;
};
lconn.profiles.ProfilesCore.show=function(_68,_69,_6a){
var _6b=null;
if((typeof _68)=="string"){
_6b=document.getElementById(_68);
}else{
_6b=_68;
}
if(_6a){
var _6c="";
_6c=window.setInterval(function(){
if(_6b){
show(_6b,_69);
window.clearInterval(_6c);
}
},500);
}else{
if(_6b){
_6b.style.visibility="visible";
if(!_69){
_6b.style.display="block";
}
}
}
return false;
};
lconn.profiles.ProfilesCore.getParam=function(_6d){
dojo.deprecated("lconn.profiles.ProfilesCore.getParam","Use lconn.core.url to parse URLs","3.5");
var obj={};
var loc=window.location.href.split("?");
if(loc.length>1){
obj=dojo.queryToObject(loc[1].split("#")[0]);
}
return (obj[_6d]||null);
};
lconn.profiles.ProfilesCore.addParam=function(_6e,_6f){
dojo.deprecated("lconn.profiles.ProfilesCore.addParam","Use lconn.core.url to parse and rewrite URLs","3.5");
var obj={};
var loc=window.location.href.split("?");
if(loc.length>1){
obj=dojo.queryToObject(loc[1].split("#")[0]);
}
obj[_6e]=_6f;
retval=loc[0]+"?"+dojo.objectToQuery(obj);
profiles_goto(retval,true);
};
lconn.profiles.ProfilesCore.handleKeyPress=function(_70,_71){
var _72=null;
if(_71){
_72=_71.keyCode;
}else{
if(window.event){
_72=window.event.keyCode;
}
}
if(_72==13){
lconn.profiles.ProfilesCore.invoke_onclick(_70);
}
};
lconn.profiles.ProfilesCore.invoke_onclick=function(_73){
var evt=null;
if(document.createEvent){
evt=document.createEvent("MouseEvents");
}
if(evt&&evt.initMouseEvent){
evt.initMouseEvent("click",true,true,document.defaultView,1,0,0,0,0,false,false,false,false,0,null);
}
_73.dispatchEvent(evt);
};
lconn.profiles.ProfilesCore.hasLatinChars=function(_74){
for(var i=0;i<_74.length;i++){
if(lconn.core.globalization.bidiUtil.isLatinChar(_74.charCodeAt(i))){
return true;
}
}
return false;
};
lconn.profiles.ProfilesCore.hasBidiChars=function(_75){
for(var i=0;i<_75.length;i++){
if(lconn.core.globalization.bidiUtil.isBidiChar(_75.charCodeAt(i))){
return true;
}
}
return false;
};
lconn.profiles.ProfilesCore.getUploadFileName=function(_76){
var _77="";
if(dojo.isIE&&_76.value){
var _78=_76.value;
var _79=_78.lastIndexOf("\\");
var _7a=_78.substring(_79+1);
_77=_7a;
}else{
if(!dojo.isIE&&_76.files.length){
_77=_76.files[0].name;
}
}
try{
if(!dojo.isBodyLtr()&&lconn.profiles.ProfilesCore.hasLatinChars(_77)){
_77=lconn.core.globalization.bidiUtil.enforceTextDirection(_77,lconn.core.globalization.config.TEXT_DIRECTION.LEFT_TO_RIGHT);
}
}
catch(e){
}
return _77;
};
dojo.addOnLoad(function(){
if(typeof window.formbasedutility=="undefined"||window.formbasedutility==null){
window.formbasedutility=new lconn.profiles.formBasedUtility(applicationContext);
}
});
var processUntilElementIsFound=function(_7b,_7c,_7d,_7e,_7f,_80,_81){
lconn.core.utilities.processUntilElementIsFound(_7b,_7c,_7d,_7e,_7f,_80,_81);
};
lconn.profiles.xhr=function(_82,_83){
if(dojo.getObject("com.ibm.ajax.auth")){
com.ibm.ajax.auth.prepareSecure(_83);
}
return dojo.xhr(_82,_83);
};
lconn.profiles.xhrGet=function(_84){
return lconn.profiles.xhr("GET",_84);
};
lconn.profiles.xhrPost=function(_85){
return lconn.profiles.xhr("POST",_85);
};
lconn.profiles.xhrDelete=function(_86){
return lconn.profiles.xhr("DELETE",_86);
};
lconn.profiles.xhrPut=function(_87){
return lconn.profiles.xhr("PUT",_87);
};
lconn.profiles.xhrError=function(_88,_89){
if(typeof (_89)=="undefined"){
_89="";
}
var _8a="";
var _8b=false;
if(_88){
if(_88.dojoType=="cancel"){
}else{
_8a+=(_88.name)?_88.name+"\n":"";
_8a+=(_88.status)?_88.status+"\n":"";
_8a+=(_88.message)?"\n"+_88.message+"\n":"";
_8a+=(_88.fileName)?"\n"+_88.fileName+"\n":"";
if(console){
console.error(_8a);
}
lconn.profiles.ProfilesCore.showInfoMsg("profileInfoMsgDiv","error",generalrs["error.sessionTimeout"]);
}
}
};
lconn.profiles.ProfilesCore.getObject=function(nom){
if(typeof nom=="string"){
var arr=nom.split(".");
var obj=window;
for(var n=0;n<arr.length;n++){
if(typeof obj[arr[n]]=="undefined"){
obj[arr[n]]={};
}
obj=obj[arr[n]];
}
return obj;
}
return nom;
};
lconn.profiles.init=function(){
if(document.getElementById("searchResultsTable")!=null){
profiles_AddVCard("searchResultsTable");
}
if(document.getElementById("rptStructTable")!=null){
profiles_AddVCard("rptStructTable");
}
var _8c=document.getElementById("editProfile");
if(_8c!=null){
window.onbeforeunload=onBeforeUnloadHandler;
}
if(typeof (dojo)!="undefined"){
if(typeof (MenuPopup)!="undefined"){
dojo.connect(document,"onclick",null,function(){
MenuPopup.hideMenu();
});
}
}else{
if(typeof (MenuPopup)!="undefined"){
if(document.addEventListener){
document.addEventListener("click",function(){
MenuPopup.hideMenu();
},false);
}else{
if(document.attachEvent){
document.attachEvent("onclick",function(){
MenuPopup.hideMenu();
});
}
}
}
}
document.body.className+=(typeof (appLang)!="undefined"&&appLang.toUpperCase()=="JA")?" lotusJapanese":"";
lconn.core.auth.setAuthCheck(dojo.partial(function(app){
return app.isUserLoggedIn();
},lconn.profiles.ProfilesCore));
var _8d=lconn.profiles.ProfilesCore.getLastElement();
if(_8d){
try{
dojo.byId(_8d).focus();
}
catch(e){
if(window.console){
console.log("Unable to set the focus to element: "+_8d);
console.log(e);
}
}
lconn.profiles.ProfilesCore.clearLastElement();
}
};
if(typeof (dojo)!="undefined"&&lconn.profiles.init){
dojo.addOnLoad(function(){
if(dojo.isIE){
setTimeout(lconn.profiles.init,0);
}else{
lconn.profiles.init();
}
});
}
}


;if(!dojo._hasResource["lconn.core.util._XSLCache"]){
dojo._hasResource["lconn.core.util._XSLCache"]=true;
dojo.provide("lconn.core.util._XSLCache");


dojo.declare("lconn.core.util._XSLCache",null,{xslDocs:null,xslStrings:{},constructor:function(){
this.xslDocs={};
},getXslDoc:function(_1){
if(_1 in this.xslStrings){
if(_1 in this.xslDocs){
return this.xslDocs[_1];
}
var _2=null;
try{
_2=lconn.core.xslt.loadXslString(dojo.cache(this.xslStrings[_1].templatePath));
}
catch(e){
return null;
}
this.xslDocs[_1]=_2;
return _2;
}
return null;
}});
}


;dojo.cache("lconn.profiles", "xslt/reportChain/report-chain.xsl", "<?xml version=\"1.0\" encoding=\"UTF-8\"?><xsl:stylesheet version=\"1.0\" xmlns=\"http://www.w3.org/1999/xhtml\" xmlns:html=\"http://www.w3.org/1999/xhtml\" xmlns:atom=\"http://www.w3.org/2005/Atom\" xmlns:snx=\"http://www.ibm.com/xmlns/prod/sn\" xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\" exclude-result-prefixes=\"snx xsl html atom\"> <xsl:output method=\"html\" omit-xml-declaration=\"yes\" indent=\"no\" /> <xsl:param name=\"applicationContext\" select=\"'/profiles'\"/> <xsl:param name=\"loggedIn\"/> <xsl:param name=\"loggedInUserUid\"/> <xsl:param name=\"loggedInUserKey\" /> <xsl:param name=\"displayedUserKey\" /> <xsl:param name=\"bidiIsRTL\" select=\"false()\"/> <xsl:param name=\"numberOfNameToDisplay\" select=\"5\" /> <xsl:variable name=\"isManager\" select=\"/atom:feed/atom:entry[1]/atom:content/html:div/html:span/html:div[@class='x-is-manager']/text()\"/> <xsl:variable name=\"profileKey\" select=\"/atom:feed/atom:entry[1]/atom:content/html:div/html:span/html:div[@class='x-profile-key']/text()\"/> <xsl:variable name=\"managerKey\" select=\"/atom:feed/atom:entry[2]/atom:content/html:div/html:span/html:div[@class='x-profile-key']/text()\"/> <xsl:param name=\"label_profile_otherviews_reportingstructure\"/> <xsl:param name=\"label_profile_otherviews_samemanager\"/> <xsl:param name=\"label_profile_otherviews_peoplemanaged\"/> <xsl:template match=\"/atom:feed\"> <div id=\"report-chain-sub\"> <xsl:variable name=\"isManager\" select=\"false\" /> <div class=\"lotusChunk\"> <xsl:choose> <xsl:when test=\"system-property('xsl:vendor')='Microsoft'\"> <xsl:attribute name=\"style\">margin-top: 5px; padding-bottom: 15px; overflow-x: auto; overflow-y: hidden;</xsl:attribute> </xsl:when> <xsl:otherwise> <xsl:attribute name=\"style\">margin-top: 5px; overflow-x: auto; overflow-y: hidden;</xsl:attribute> </xsl:otherwise> </xsl:choose> <ul class=\"lotusTree\" role=\"list\"> <xsl:choose> <xsl:when test=\"count(atom:entry) &lt;= $numberOfNameToDisplay\"> <xsl:call-template name=\"entry\"> <xsl:with-param name=\"node\" select=\"atom:entry[count(/atom:feed/atom:entry)]\" /> <xsl:with-param name=\"relativePosition\" select=\"0\" /> <xsl:with-param name=\"nodePosition\" select=\"count(/atom:feed/atom:entry)\" /> </xsl:call-template> </xsl:when> <xsl:otherwise> <xsl:call-template name=\"entry\"> <xsl:with-param name=\"node\" select=\"atom:entry[($numberOfNameToDisplay+1-1)]\" /> <xsl:with-param name=\"relativePosition\" select=\"0\" /> <xsl:with-param name=\"nodePosition\" select=\"$numberOfNameToDisplay\" /> </xsl:call-template> </xsl:otherwise> </xsl:choose> </ul> </div> <div class=\"lotusChunk lotusLast\"> <a class=\"lotusAction\" href=\"{$applicationContext}/html/reportingStructureView.do?key={$profileKey}\"> <xsl:value-of select=\"$label_profile_otherviews_reportingstructure\" /> </a> <xsl:if test=\"string-length($managerKey) > 0\"> <div> <a class=\"lotusAction\" href=\"{$applicationContext}/html/reportingStructureView.do?key={$profileKey}&amp;subAction=sameManager&amp;managerKey={$managerKey}&amp;2\"> <xsl:value-of select=\"$label_profile_otherviews_samemanager\" /> </a> </div> </xsl:if> <xsl:if test=\"/atom:feed/atom:entry[1]/atom:content/html:div/html:span/html:div[@class='x-is-manager']/text() = 'Y'\"> <div> <a class=\"lotusAction\" href=\"{$applicationContext}/html/reportingStructureView.do?key={$profileKey}&amp;subAction=peopleManaged\"> <xsl:value-of select=\"$label_profile_otherviews_peoplemanaged\" /> </a> </div> </xsl:if> </div> </div> </xsl:template> <xsl:template name=\"entry\"> <xsl:param name=\"node\"/> <xsl:param name=\"relativePosition\"/> <xsl:param name=\"nodePosition\"/> <xsl:variable name=\"marginSize\" select=\"$relativePosition*11+2\" /> <li role=\"listitem\"> <xsl:attribute name=\"aria-level\"><xsl:value-of select=\"$relativePosition\" /></xsl:attribute> <xsl:choose> <xsl:when test=\"$nodePosition = 1\"> <div class=\"lotusOrgChartBottom lotusBottom bidiAware\" style=\"padding-top: 0px;\"> <xsl:choose> <xsl:when test=\"$bidiIsRTL = 'true'\"> <xsl:attribute name=\"style\">margin-right: <xsl:value-of select=\"$marginSize\" />px; padding-right:20px;</xsl:attribute> </xsl:when> <xsl:otherwise> <xsl:attribute name=\"style\">margin-left: <xsl:value-of select=\"$marginSize\" />px; padding-left:20px;</xsl:attribute> </xsl:otherwise> </xsl:choose> <xsl:value-of select=\"$node/atom:contributor/atom:name\" /> </div> </xsl:when> <xsl:when test=\"$relativePosition = 0\"> <div class=\"lotusOrgChartTop\"> <xsl:choose> <xsl:when test=\"$bidiIsRTL = 'true'\"> <xsl:attribute name=\"style\">margin-right:<xsl:value-of select=\"$marginSize\" />px; padding-right:20px;</xsl:attribute> </xsl:when> <xsl:otherwise> <xsl:attribute name=\"style\">margin-left:<xsl:value-of select=\"$marginSize\" />px; padding-left:20px;</xsl:attribute> </xsl:otherwise> </xsl:choose> <xsl:call-template name=\"renderPerson\"> <xsl:with-param name=\"node\" select=\"$node\" /> <xsl:with-param name=\"additionalClassName\" select=\"'lotusTop'\" /> </xsl:call-template> </div> </xsl:when> <xsl:otherwise> <div class=\"lotusOrgChartMiddle\"> <xsl:choose> <xsl:when test=\"$bidiIsRTL = 'true'\"> <xsl:attribute name=\"style\">margin-right: <xsl:value-of select=\"$marginSize\" />px; padding-right:20px;</xsl:attribute> </xsl:when> <xsl:otherwise> <xsl:attribute name=\"style\">margin-left: <xsl:value-of select=\"$marginSize\" />px; padding-left:20px;</xsl:attribute> </xsl:otherwise> </xsl:choose> <xsl:call-template name=\"renderPerson\"> <xsl:with-param name=\"node\" select=\"$node\" /> </xsl:call-template> </div> </xsl:otherwise> </xsl:choose> </li> <xsl:if test=\"$nodePosition &gt; 0 and count(/atom:feed/atom:entry[$nodePosition - 1 ]) = 1\"> <xsl:call-template name=\"entry\"> <xsl:with-param name=\"node\" select=\"/atom:feed/atom:entry[($nodePosition - 1)]\"/> <xsl:with-param name=\"relativePosition\" select=\"$relativePosition + 1\"/> <xsl:with-param name=\"nodePosition\" select=\"$nodePosition - 1\"/> </xsl:call-template> </xsl:if> </xsl:template> <xsl:template name=\"renderPerson\"> <xsl:param name=\"node\"/> <xsl:param name=\"additionalClassName\"/> <xsl:variable name=\"contributor\" select=\"$node/atom:contributor\" /> <xsl:variable name=\"profileUserId\" select=\"$node/atom:content/html:div/html:span/html:div[@class='x-lconn-userid']/text()\" /> <div id=\"profilesReportChain_{$profileUserId}\"> <xsl:choose> <xsl:when test=\"$contributor/snx:userState = 'inactive'\"> <xsl:attribute name=\"class\">lotusDim</xsl:attribute> </xsl:when> <xsl:otherwise> <xsl:attribute name=\"class\"></xsl:attribute> </xsl:otherwise> </xsl:choose> <span class=\"vcard\"> <a href=\"{$node/atom:link[@rel='related' and @type='text/html']/@href}\" class=\"fn lotusPerson {$additionalClassName} bidiAware\"> <xsl:value-of select=\"$contributor/atom:name\" /> </a> <span class=\"x-lconn-userid\" style=\"display: none;\"> <xsl:value-of select=\"$profileUserId\"/> </span> </span> </div> </xsl:template> </xsl:stylesheet>");

;dojo.cache("lconn.profiles", "xslt/linkroll/linkroll.xsl", "<?xml version=\"1.0\" encoding=\"UTF-8\"?><xsl:stylesheet version=\"1.0\" xmlns=\"http://www.w3.org/1999/xhtml\" xmlns:html=\"http://www.w3.org/1999/xhtml\" xmlns:snx=\"http://www.ibm.com/xmlns/prod/sn/profiles/ext/profile-links\" xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\" exclude-result-prefixes=\"snx xsl\"> <xsl:output method=\"html\" omit-xml-declaration=\"yes\" indent=\"no\" /> <xsl:param name=\"applicationContext\" select=\"'/profiles'\"/> <xsl:param name=\"blankImg\"/> <xsl:param name=\"loggedIn\"/> <xsl:param name=\"loggedInUserUid\"/> <xsl:param name=\"loggedInUserKey\"/> <xsl:param name=\"displayedUserKey\" /> <xsl:param name=\"dogear\" select=\"'http://dogear'\"/> <xsl:param name=\"dogearEnabled\" select=\"false()\"/> <xsl:variable name=\"isCurrentUser\" select=\"$loggedIn = 'true' and $loggedInUserKey = $displayedUserKey\" /> <xsl:param name=\"linkRollAddLink\" select=\"'[Add Link]'\" /> <xsl:param name=\"linkRollNoLinks\" select=\"'No Links'\" /> <xsl:param name=\"linkRollRemoveLinkAltText\" select=\"'Remove the link from your links section.'\" /> <xsl:param name=\"linkRollAddLinkAltText\" select=\"'Add a link to your links section.'\" /> <xsl:template match=\"/\"> <div> <div class=\"lotusChunk\"> <xsl:choose> <xsl:when test=\"count(snx:linkroll/snx:link) > 0\"> <ul class=\"lotusList lotusEditable lotusMeta\" role=\"list\"> <xsl:for-each select=\"snx:linkroll/snx:link\"> <xsl:choose> <xsl:when test=\"starts-with(@url, 'http://') or starts-with(@url, 'https://') or starts-with(@url, 'ftp://') or starts-with(@url, 'Notes://') or starts-with(@url, 'file:/') or starts-with(@url, 'mailto:')\"> <xsl:call-template name=\"writeLink\"> <xsl:with-param name=\"url\" select=\"@url\"/> <xsl:with-param name=\"name\" select=\"@name\"/> </xsl:call-template> </xsl:when> <xsl:when test=\"starts-with(@url, 'http:')\"> <xsl:call-template name=\"writeLink\"> <xsl:with-param name=\"url\" select=\"concat('http://',substring-after(@url,'http:'))\"/> <xsl:with-param name=\"name\" select=\"@name\"/> </xsl:call-template> </xsl:when> <xsl:when test=\"starts-with(@url, 'https:')\"> <xsl:call-template name=\"writeLink\"> <xsl:with-param name=\"url\" select=\"concat('https://',substring-after(@url,'https:'))\"/> <xsl:with-param name=\"name\" select=\"@name\"/> </xsl:call-template> </xsl:when> <xsl:otherwise> <xsl:call-template name=\"writeLink\"> <xsl:with-param name=\"url\" select=\"concat('http://',@url)\"/> <xsl:with-param name=\"name\" select=\"@name\"/> </xsl:call-template> </xsl:otherwise> </xsl:choose> </xsl:for-each> </ul> </xsl:when> <xsl:otherwise><xsl:value-of select=\"$linkRollNoLinks\"/></xsl:otherwise> </xsl:choose> </div> <xsl:if test=\"$isCurrentUser\"> <div class=\"lotusChunk\"><div> <a href=\"javascript:void(0);\" id=\"addLinkLinkRollButton\" class=\"lotusAction\" role=\"button\" onclick=\"profiles_displayAddLinkUI('{$displayedUserKey}')\" title=\"{$linkRollAddLinkAltText}\"> <xsl:value-of select=\"$linkRollAddLink\"/> </a> </div></div> </xsl:if> <div id=\"add-link-view\" class=\"lotusChunk\"></div> </div> </xsl:template> <xsl:variable name=\"escapeApos\">\'</xsl:variable> <xsl:variable name=\"escapeSlash\">\\</xsl:variable> <xsl:template name=\"writeLink\"> <xsl:param name=\"url\"/> <xsl:param name=\"name\"/> <li role=\"listitem\"> <p> <xsl:call-template name=\"show-icon\"> <xsl:with-param name=\"url\" select=\"$url\" /> </xsl:call-template> <span style=\"padding:2px\"> </span> <xsl:variable name=\"noSlashName\"> <xsl:call-template name=\"replace\"> <xsl:with-param name=\"inputString\" select=\"$name\" /> <xsl:with-param name=\"searchFor\" select=\"&quot;\\&quot;\" /> <xsl:with-param name=\"replaceText\" select=\"$escapeSlash\" /> </xsl:call-template> </xsl:variable> <xsl:variable name=\"noQuoteName\"> <xsl:call-template name=\"valueOfEscape\"> <xsl:with-param name=\"inputString\" select=\"$noSlashName\" /> </xsl:call-template> </xsl:variable> <xsl:variable name=\"noSlashUrl\"> <xsl:call-template name=\"replace\"> <xsl:with-param name=\"inputString\" select=\"$url\" /> <xsl:with-param name=\"searchFor\" select=\"&quot;\\&quot;\" /> <xsl:with-param name=\"replaceText\" select=\"$escapeSlash\" /> </xsl:call-template> </xsl:variable> <xsl:variable name=\"noQuoteUrl\"> <xsl:call-template name=\"valueOfEscape\"> <xsl:with-param name=\"inputString\" select=\"$noSlashUrl\" /> </xsl:call-template> </xsl:variable> <a href=\"javascript:void(0);\" class=\"lotusLeft bidiAware\" style=\"width:80%;overflow:hidden;\" onclick=\"window.open('{$noQuoteUrl}');\"><xsl:value-of select=\"$name\" /></a> <xsl:if test=\"$isCurrentUser\"> <a href=\"javascript:void(0);\" role=\"button\" class=\"lotusDelete\" onclick=\"profiles_removeLink('{$noQuoteName}', '{$noQuoteUrl}', '{$displayedUserKey}')\" title=\"{$linkRollRemoveLinkAltText}\"> <img width=\"12\" height=\"12\" src=\"{$blankImg}\" alt=\"{$linkRollRemoveLinkAltText}\"> </img> </a> </xsl:if> </p> </li> </xsl:template> <xsl:template name=\"show-icon\"> <xsl:param name=\"url\">none</xsl:param> <xsl:if test=\"$dogearEnabled\"> <xsl:choose> <xsl:when test=\"starts-with($url, 'http:')\"> <xsl:variable name=\"host\" select=\"substring-after($url,'http://')\"/> <xsl:call-template name=\"parseHostMinusTransport\"> <xsl:with-param name=\"host\" select=\"$host\"/> </xsl:call-template> </xsl:when> <xsl:when test=\"starts-with($url, 'https:')\"> <xsl:variable name=\"host\" select=\"substring-after($url,'https://')\"/> <xsl:call-template name=\"parseHostMinusTransport\"> <xsl:with-param name=\"host\" select=\"$host\"/> </xsl:call-template> </xsl:when> </xsl:choose> </xsl:if> </xsl:template> <xsl:template name=\"parseHostMinusTransport\"> <xsl:param name=\"host\"/> <xsl:choose> <xsl:when test=\"contains($host,':')\"> <xsl:variable name=\"hostName\" select=\"substring-before($host,':')\"/> <img src=\"{$dogear}/favicon?host={$hostName}\" width=\"16\" height=\"16\" class=\"lotusLeft\" alt=\"\"/> </xsl:when> <xsl:when test=\"contains($host,'/')\"> <xsl:variable name=\"hostName\" select=\"substring-before($host,'/')\"/> <img src=\"{$dogear}/favicon?host={$hostName}\" width=\"16\" height=\"16\" class=\"lotusLeft\" alt=\"\"/> </xsl:when> <xsl:when test=\"contains($host,'?')\"> <xsl:variable name=\"hostName\" select=\"substring-before($host,'?')\"/> <img src=\"{$dogear}/favicon?host={$hostName}\" width=\"16\" height=\"16\" class=\"lotusLeft\" alt=\"\"/> </xsl:when> <xsl:otherwise> <img src=\"{$dogear}/favicon?host={$host}\" width=\"16\" height=\"16\" class=\"lotusLeft\" alt=\"\"/> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template name=\"valueOfEscape\"> <xsl:param name=\"inputString\" /> <xsl:variable name=\"noQuote_ves1\"> <xsl:call-template name=\"valueOfBackslash\"> <xsl:with-param name=\"inputString\" select=\"$inputString\" /> </xsl:call-template> </xsl:variable> <xsl:variable name=\"noQuote_ves2\"> <xsl:call-template name=\"valueOfEscapeApos\"> <xsl:with-param name=\"inputString\" select=\"$noQuote_ves1\" /> </xsl:call-template> </xsl:variable> <xsl:value-of select=\"$noQuote_ves2\" /> </xsl:template> <xsl:template name=\"valueOfEscapeApos\"> <xsl:param name=\"inputString\" /> <xsl:param name=\"searchFor\" select='\"&apos;\"' /> <xsl:choose> <xsl:when test=\"contains($inputString, $searchFor)\"> <xsl:value-of select=\"substring-before($inputString,$searchFor)\" /> <xsl:text>\\\'</xsl:text> <xsl:call-template name=\"valueOfEscapeApos\"> <xsl:with-param name=\"inputString\" select=\"substring-after($inputString,$searchFor)\" /> </xsl:call-template> </xsl:when> <xsl:otherwise> <xsl:value-of select=\"$inputString\" /> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template name=\"valueOfBackslash\"> <xsl:param name=\"inputString\" /> <xsl:param name=\"searchFor\" select='\"\\\"' /> <xsl:choose> <xsl:when test=\"contains($inputString, $searchFor)\"> <xsl:value-of select=\"substring-before($inputString,$searchFor)\" /> <xsl:text>\\\\</xsl:text> <xsl:call-template name=\"valueOfBackslash\"> <xsl:with-param name=\"inputString\" select=\"substring-after($inputString,$searchFor)\" /> </xsl:call-template> </xsl:when> <xsl:otherwise> <xsl:value-of select=\"$inputString\" /> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template name=\"replacePlaceHolders\"> <xsl:param name=\"inputString\" /> <xsl:param name=\"value\" /> <xsl:call-template name=\"replace\"> <xsl:with-param name=\"inputString\" select=\"$inputString\" /> <xsl:with-param name=\"searchFor\" select=\"'{0}'\" /> <xsl:with-param name=\"replaceText\" select=\"$value\" /> </xsl:call-template> </xsl:template> <xsl:template name=\"replace\"> <xsl:param name=\"inputString\" /> <xsl:param name=\"searchFor\" /> <xsl:param name=\"replaceText\" /> <xsl:choose> <xsl:when test=\"contains($inputString,$searchFor)\"> <xsl:value-of select=\"substring-before($inputString,$searchFor)\" /> <xsl:value-of select=\"$replaceText\" /> <xsl:call-template name=\"replace\"> <xsl:with-param name=\"inputString\" select=\"substring-after($inputString,$searchFor)\" /> <xsl:with-param name=\"searchFor\" select=\"$searchFor\" /> <xsl:with-param name=\"replaceText\" select=\"$replaceText\" /> </xsl:call-template> </xsl:when> <xsl:otherwise> <xsl:value-of select=\"$inputString\" /> </xsl:otherwise> </xsl:choose> </xsl:template></xsl:stylesheet>");

;dojo.cache("lconn.profiles", "xslt/linkroll/add-link.xsl", "<?xml version=\"1.0\" encoding=\"UTF-8\"?><xsl:stylesheet version=\"1.0\" xmlns=\"http://www.w3.org/1999/xhtml\" xmlns:html=\"http://www.w3.org/1999/xhtml\" xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\" exclude-result-prefixes=\"xsl html\"> <xsl:output method=\"html\" omit-xml-declaration=\"yes\" indent=\"no\" /> <xsl:param name=\"loggedIn\"/> <xsl:param name=\"loggedInUserUid\"/> <xsl:param name=\"loggedInUserKey\"/> <xsl:variable name=\"displayedUserKey\" select=\"user-info/@displayedUserKey\" /> <xsl:param name=\"linkRollName\"/> <xsl:param name=\"linkRollLink\"/> <xsl:param name=\"linkRollSave\"/> <xsl:param name=\"linkRollCancel\"/> <xsl:param name=\"linkRollRequired\"/> <xsl:template match=\"/\"> <form id=\"add-link\" name=\"add-link\" class=\"lotusForm\" aria-labelledby=\"addLinkLinkRollButton\"> <table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" class=\"lotusFormTable\" role=\"presentation\"> <tbody> <tr> <td class=\"lotusFormFieldRow\"> <div><label for=\"name\"><xsl:value-of select=\"$linkRollName\" /></label></div> <div><input type=\"text\" name=\"name\" id=\"name\" class=\"lotusText\" aria-required=\"true\"></input></div> </td> </tr> <tr> <td class=\"lotusFormFieldRow\"> <div><label for=\"url\"><xsl:value-of select=\"$linkRollLink\" /></label></div> <div><input type=\"text\" name=\"url\" id=\"url\" class=\"lotusText\" aria-required=\"true\"></input></div> </td> </tr> <tr> <td> <div class=\"lotusFormField lotusMeta\" title=\"Legend\"><xsl:value-of select=\"$linkRollRequired\" /></div> </td> </tr> <tr> <td class=\"lotusFormFooter\"> <input type=\"button\" value=\"{$linkRollSave}\" class=\"lotusFormButton\" onclick=\"profiles_saveNewLink(this,'{$displayedUserKey}')\"/> <wbr> <input type=\"button\" value=\"{$linkRollCancel}\" class=\"lotusFormButton\" onclick=\"profiles_cancelAddLink()\"/> </wbr> </td> </tr> </tbody> </table> </form> </xsl:template> </xsl:stylesheet>");

;dojo.cache("lconn.profiles", "xslt/tags/tags.xsl", "<?xml version=\"1.0\" encoding=\"UTF-8\"?><xsl:stylesheet version=\"1.0\" xmlns=\"http://www.w3.org/1999/xhtml\" xmlns:html=\"http://www.w3.org/1999/xhtml\" xmlns:atom=\"http://www.w3.org/2005/Atom\" xmlns:app=\"http://www.w3.org/2007/app\" xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\" xmlns:snx=\"http://www.ibm.com/xmlns/prod/sn\" exclude-result-prefixes=\"xsl atom app snx\"> <xsl:output method=\"html\" omit-xml-declaration=\"yes\" indent=\"no\" /> <xsl:param name=\"applicationContext\" select=\"'/profiles'\"/> <xsl:param name=\"blankImg\"/> <xsl:param name=\"appLang\" select=\"en_us\"/> <xsl:param name=\"loggedIn\" /> <xsl:param name=\"loggedInUserUid\"/> <xsl:param name=\"loggedInUserKey\" /> <xsl:param name=\"displayedUserKey\" /> <xsl:param name=\"defaultView\" /> <xsl:variable name=\"isCurrentUser\" select=\"$loggedIn = 'true' and $loggedInUserKey = $displayedUserKey\" /> <xsl:variable name=\"canAddTag\" select=\"/app:categories/@snx:canAddTag = 'true'\"/> <xsl:variable name=\"tagOthersEnabled\" select=\"/app:categories/@snx:tagOthersEnabled = 'true'\"/> <xsl:variable name=\"numOfContributors\" select=\"/app:categories/@snx:numberOfContributors\" /> <xsl:param name=\"socialTagsAddTags\" select=\"'[Add profile tags]'\"/> <xsl:param name=\"socialTagsNoTags\" select=\"'No tags'\"/> <xsl:param name=\"socialTagsYouTagged\" select=\"'My tags for this profile'\"/> <xsl:param name=\"socialTagsViewAs\" select=\"'View as '\"/> <xsl:param name=\"socialTagsList\" select=\"'List'\"/> <xsl:param name=\"socialTagsTagCloud\" select=\"'Cloud'\"/> <xsl:param name=\"socialTagsAddTagsAltText\" select=\"'Add tag(s) to this profile'\"/> <xsl:param name=\"socialTagsRemoveTagsAltText\" select=\"'Remove tag from this profile'\"/> <xsl:param name=\"socialTagsListAltText\" select=\"'List tags as a sequential list of tags'\"/> <xsl:param name=\"socialTagsTagCloudAltText\" select=\"'List tags as a tag cloud'\"/> <xsl:param name=\"socialTagsTaggedBy\" select=\"'Tagged by '\"/> <xsl:param name=\"socialTagsPeople\" select=\"' people '\"/> <xsl:param name=\"socialTagsPerson\" select=\"' person '\"/> <xsl:param name=\"socialTagsAddedBy\" select=\"'Tag added by '\"/> <xsl:param name=\"socialTagsWhoTagged\" select=\"'Tag {0} was tagged by 1 person. See who added this tag '\"/> <xsl:param name=\"socialTagsWhoTaggedMulti\" select=\"'Tag {0} was tagged {1} people. See who added this tag '\"/> <xsl:template match=\"/\"> <div id=\"social_tags\" aria-live=\"polite\"> <xsl:if test=\"$loggedIn = 'true'\"> <xsl:if test=\"$canAddTag\"> <div id=\"add-tag-view\" class=\"lotusChunk lotusSearch\"> <form id=\"tagInputForm\" onsubmit=\"lconn.profiles.SocialTags.saveNewTag( '{$displayedUserKey}', this); return false;\"> <span dojoType=\"lconn.core.TypeAheadDataStore\" jsId=\"tagTypeAheadStore\" queryParam=\"tag\" url=\"{$applicationContext}/html/tagTypeahead.do?useJson=true&amp;lang={$appLang}\"> </span> <input style=\"width:80%;\" dojoType=\"lconn.profiles.ProfilesTypeAhead\" minChars=\"2\" maxChars=\"255\" searchDelay=\"400\" title=\"{$socialTagsAddTagsAltText}\" multipleValues=\"true\" token=\" \" store=\"tagTypeAheadStore\" hasDownArrow=\"false\" autoComplete=\"false\" name=\"socialTagName\" id=\"socialTagName\" class=\"tagTypeAhead\"> </input> <span class=\"lotusBtnImg\" style=\"padding: 4px 1px;\"> <a id=\"addTagButtonId\" role=\"button\" class=\"lotusAdd\" href=\"javascript:;\" title=\"{$socialTagsAddTagsAltText}\" onclick=\"lconn.profiles.SocialTags.saveNewTag( '{$displayedUserKey}', this); return false;\"> <img alt=\"{$socialTagsAddTagsAltText}\" src=\"{$blankImg}\"/> <span class=\"lotusAltText\">&#43;</span> </a> </span> </form> </div> </xsl:if> </xsl:if> <xsl:if test=\"$loggedIn = 'true' and $tagOthersEnabled and count(/app:categories/atom:category[@snx:flagged='true']) > 0\"> <div id=\"tagsYouAddedView\"> <xsl:if test=\"not($defaultView = 'list')\"> <xsl:attribute name=\"style\">display: none;</xsl:attribute> </xsl:if> <div id=\"tagsYouAddedListHeader_div\" class=\"lotusChunk\"> <h3><xsl:value-of select=\"$socialTagsYouTagged\" /></h3> </div> <div id=\"tagsYouAddedList_div\"> <ul class=\"lotusList lotusEditable lotusTags lotusMeta\"> <xsl:for-each select=\"/app:categories/atom:category[@snx:flagged='true']\"> <xsl:if test=\"not(@scheme)\"> <xsl:variable name=\"noQuote1\"> <xsl:call-template name=\"valueOfEscape\"> <xsl:with-param name=\"inputString\" select=\"@term\" /> </xsl:call-template> </xsl:variable> <li class=\"lotusAlignLeft\"> <span class=\"lotusRight\"> <xsl:choose> <xsl:when test=\"$canAddTag = 'true'\"> <a role=\"button\" href=\"javascript:void(0);\" class=\"lotusDelete lconnTagCount\" onclick=\"profiles_removeTag('{$displayedUserKey}','{$noQuote1}')\" title=\"{$socialTagsRemoveTagsAltText}\"> <img width=\"12\" height=\"12\" src=\"{$blankImg}\" alt=\"{$socialTagsRemoveTagsAltText}\"> </img> <span class=\"lotusAltText\">x</span> </a> </xsl:when> <xsl:otherwise> <img width=\"12\" height=\"12\" src=\"{$blankImg}\" alt=\"\" role=\"presentation\"> </img> </xsl:otherwise> </xsl:choose> </span> <a class=\"profileTag lotusLeft bidiAware\" title=\"{@term}\" href=\"javascript:void(0);\" onclick=\"profiles_searchTag('{$noQuote1}')\"> <xsl:value-of select=\"@term\" /> </a> </li> </xsl:if> </xsl:for-each> </ul> </div> </div> </xsl:if> <xsl:choose> <xsl:when test=\"count(/app:categories/atom:category) > 0\"> <div id=\"tagsList\"> <xsl:if test=\"not($defaultView = 'list')\"> <xsl:attribute name=\"style\">display: none;</xsl:attribute> </xsl:if> <xsl:if test=\"$tagOthersEnabled\"> <div id=\"tagsListHeader_div\" class=\"lotusChunk\"> <h3> <xsl:call-template name=\"replacePlaceHolders\"> <xsl:with-param name=\"inputString\" select=\"$socialTagsTaggedBy\"/> <xsl:with-param name=\"value\" select=\"$numOfContributors\"/> </xsl:call-template> <xsl:text>&#x20;</xsl:text> <xsl:choose> <xsl:when test=\"$numOfContributors > 1\"> <xsl:value-of select=\"$socialTagsPeople\" /> </xsl:when> <xsl:otherwise> <xsl:value-of select=\"$socialTagsPerson\" /> </xsl:otherwise> </xsl:choose> <xsl:text>:</xsl:text> </h3> </div> </xsl:if> <div id=\"tagsListTags_div\"> <ul class=\"lotusList lotusEditable lotusTags lotusMeta\"> <xsl:for-each select=\"/app:categories/atom:category\"> <xsl:variable name=\"noQuote\"> <xsl:call-template name=\"valueOfEscape\"> <xsl:with-param name=\"inputString\" select=\"@term\" /> </xsl:call-template> </xsl:variable> <xsl:if test=\"not(@scheme)\"> <li class=\"lotusAlignLeft\"> <xsl:choose> <xsl:when test=\"$tagOthersEnabled\"> <span class=\"lotusRight\"> <xsl:variable name=\"_tagCountTitle\"> <xsl:choose> <xsl:when test=\"@snx:frequency != 1\"> <xsl:call-template name=\"replace\"> <xsl:with-param name=\"inputString\" select=\"$socialTagsWhoTaggedMulti\" /> <xsl:with-param name=\"searchFor\" select=\"'{1}'\" /> <xsl:with-param name=\"replaceText\" select=\"@snx:frequency\" /> </xsl:call-template> </xsl:when> <xsl:otherwise> <xsl:value-of select=\"$socialTagsWhoTagged\" /> </xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name=\"tagCountTitle\"> <xsl:call-template name=\"replacePlaceHolders\"> <xsl:with-param name=\"inputString\" select=\"$_tagCountTitle\"/> <xsl:with-param name=\"value\" select=\"@term\"/> </xsl:call-template> </xsl:variable> <a href=\"javascript:void(0);\" class=\"lconnTagCount\" onclick=\"toggleDiv('SocialTaggerList{$noQuote}');\" title=\"{$tagCountTitle}\"> <xsl:value-of select=\"@snx:frequency\" /> </a> <xsl:choose> <xsl:when test=\"$isCurrentUser and $canAddTag\"> <a role=\"button\" href=\"javascript:void(0);\" class=\"lotusDelete lconnTagCount\" onclick=\"profiles_deleteInstancesOfTagForSelf('{$displayedUserKey}','{$noQuote}')\" title=\"{$socialTagsRemoveTagsAltText}\"> <img width=\"12\" height=\"12\" src=\"{$blankImg}\" alt=\"{$socialTagsRemoveTagsAltText}\"> </img> <span class=\"lotusAltText\">x</span> </a> </xsl:when> <xsl:otherwise> <img width=\"12\" height=\"12\" src=\"{$blankImg}\" alt=\"\" role=\"presentation\"> </img> </xsl:otherwise> </xsl:choose> </span> </xsl:when> <xsl:when test=\"$canAddTag and $isCurrentUser\"> <span class=\"lotusRight\"> <a role=\"button\" href=\"javascript:void(0);\" class=\"lotusDelete lconnTagCount\" onclick=\"profiles_removeTag('{$displayedUserKey}','{$noQuote}')\" title=\"{$socialTagsRemoveTagsAltText}\"> <img width=\"12\" height=\"12\" src=\"{$blankImg}\" alt=\"{$socialTagsRemoveTagsAltText}\"> </img> <span class=\"lotusAltText\">x</span> </a> </span> </xsl:when> <xsl:otherwise> <span class=\"lotusRight\"> <img width=\"12\" height=\"12\" src=\"{$blankImg}\" alt=\"\" role=\"presentation\"> </img> </span> </xsl:otherwise> </xsl:choose> <a class=\"profileTag lotusLeft bidiAware\" href=\"javascript:void(0);\" title=\"{@term}\"> <xsl:attribute name=\"onclick\">profiles_searchTag('<xsl:call-template name=\"valueOfEscape\"><xsl:with-param name=\"inputString\" select=\"@term\" /></xsl:call-template>')</xsl:attribute> <xsl:if test=\"@snx:flagged='true'\"> <xsl:attribute name=\"flagged\">true</xsl:attribute> </xsl:if> <xsl:value-of select=\"@term\" /> </a> <div class=\"lotusCommentBubble lotusClear\" id=\"SocialTaggerList{@term}\"> <xsl:attribute name=\"style\">display: none;</xsl:attribute> <div class=\"lotusCommentBubbleBody lotusLeft\"> <div class=\"lotusMeta lotusTiny\"> <xsl:call-template name=\"replacePlaceHolders\"> <xsl:with-param name=\"inputString\" select=\"$socialTagsAddedBy\"/> <xsl:with-param name=\"value\" select=\"@snx:frequency\"/> </xsl:call-template> &#xA0; <xsl:choose> <xsl:when test=\"@snx:frequency > 1\"> <xsl:value-of select=\"$socialTagsPeople\" /> </xsl:when> <xsl:otherwise> <xsl:value-of select=\"$socialTagsPerson\" /> </xsl:otherwise> </xsl:choose> </div> <ul class=\"lotusList lotusEditable lotusTags lotusMeta\"> <xsl:for-each select=\"atom:contributor\"> <li> <a href=\"javascript:void(0);\" onclick=\"profiles_goToProfile('{@snx:profileKey}');\"> <xsl:value-of select=\"atom:name\" /> </a> </li> </xsl:for-each> </ul> </div> </div> </li> </xsl:if> </xsl:for-each> </ul> </div> <div class=\"lotusChunk lotusTiny\"> <ul class=\"lotusInlinelist\" role=\"list\"> <li class=\"lotusFirst\" role=\"listitem\"> <a id=\"tagCloudActionBt\" class=\"lotusAction\" role=\"button\" title=\"{$socialTagsTagCloudAltText}\" href=\"javascript:void(0);\" onclick=\"profiles_showTagCloud()\" > <xsl:value-of select=\"$socialTagsTagCloud\" /> </a> </li> <li role=\"listitem\"> <span tabindex=\"0\" aria-pressed=\"true\" aria-disabled=\"true\" role=\"button\" class=\"lotusBold\"> <xsl:value-of select=\"$socialTagsList\"/> </span> </li> </ul> </div> </div> <div id=\"tagCloud\"> <xsl:if test=\"not($defaultView = 'cloud')\"> <xsl:attribute name=\"style\">display: none;</xsl:attribute> </xsl:if> <div class=\"lotusTagCloud lotusChunk\"> <ul role=\"list\"> <xsl:for-each select=\"/app:categories/atom:category\"> <xsl:if test=\"not(@scheme)\"> <li style=\"padding-right: 2px;\" role=\"listitem\"> <xsl:attribute name=\"class\">f<xsl:value-of select=\"position()\" />-<xsl:value-of select=\"@snx:visibilityBin\" /></xsl:attribute> <a href=\"javascript:void(0);\"> <xsl:attribute name=\"onclick\">profiles_searchTag('<xsl:call-template name=\"valueOfEscape\"><xsl:with-param name=\"inputString\" select=\"@term\" /></xsl:call-template>')</xsl:attribute> <xsl:attribute name=\"class\">bidiAware lotusF<xsl:value-of select=\"@snx:intensityBin\" /></xsl:attribute> <xsl:attribute name=\"title\"><xsl:value-of select=\"@snx:frequency\" /></xsl:attribute> <xsl:value-of select=\"@term\" /> <xsl:text> </xsl:text> </a> </li> </xsl:if> </xsl:for-each> </ul> </div> <div class=\"lotusChunk lotusTiny\"> <ul class=\"lotusInlinelist\" role=\"list\"> <li class=\"lotusFirst\" role=\"listitem\"> <span tabindex=\"0\" aria-pressed=\"true\" aria-disabled=\"true\" role=\"button\" class=\"lotusBold\"> <xsl:value-of select=\"$socialTagsTagCloud\"/> </span> </li> <li role=\"listitem\"> <a id=\"tagListActionBt\" onclick=\"profiles_showTagList()\" class=\"lotusAction\" role=\"button\" title=\"{$socialTagsListAltText}\" href=\"javascript:void(0);\"><xsl:value-of select=\"$socialTagsList\" /> </a> </li> </ul> </div> </div> </xsl:when> <xsl:otherwise> <div id=\"tagCloud\"></div> <div class=\"lotusChunk\"> <xsl:value-of select=\"$socialTagsNoTags\" /> </div> </xsl:otherwise> </xsl:choose> </div> </xsl:template> <xsl:template name=\"valueOfEscape\"> <xsl:param name=\"inputString\" /> <xsl:variable name=\"noQuote_ves1\"> <xsl:call-template name=\"valueOfBackslash\"> <xsl:with-param name=\"inputString\" select=\"$inputString\" /> </xsl:call-template> </xsl:variable> <xsl:variable name=\"noQuote_ves2\"> <xsl:call-template name=\"valueOfEscapeApos\"> <xsl:with-param name=\"inputString\" select=\"$noQuote_ves1\" /> </xsl:call-template> </xsl:variable> <xsl:value-of select=\"$noQuote_ves2\" /> </xsl:template> <xsl:template name=\"valueOfEscapeApos\"> <xsl:param name=\"inputString\" /> <xsl:param name=\"searchFor\" select='\"&apos;\"' /> <xsl:choose> <xsl:when test=\"contains($inputString, $searchFor)\"> <xsl:value-of select=\"substring-before($inputString,$searchFor)\" /> <xsl:text>\\\'</xsl:text> <xsl:call-template name=\"valueOfEscapeApos\"> <xsl:with-param name=\"inputString\" select=\"substring-after($inputString,$searchFor)\" /> </xsl:call-template> </xsl:when> <xsl:otherwise> <xsl:value-of select=\"$inputString\" /> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template name=\"valueOfBackslash\"> <xsl:param name=\"inputString\" /> <xsl:param name=\"searchFor\" select='\"\\\"' /> <xsl:choose> <xsl:when test=\"contains($inputString, $searchFor)\"> <xsl:value-of select=\"substring-before($inputString,$searchFor)\" /> <xsl:text>\\\\</xsl:text> <xsl:call-template name=\"valueOfBackslash\"> <xsl:with-param name=\"inputString\" select=\"substring-after($inputString,$searchFor)\" /> </xsl:call-template> </xsl:when> <xsl:otherwise> <xsl:value-of select=\"$inputString\" /> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template name=\"replacePlaceHolders\"> <xsl:param name=\"inputString\" /> <xsl:param name=\"value\" /> <xsl:call-template name=\"replace\"> <xsl:with-param name=\"inputString\" select=\"$inputString\" /> <xsl:with-param name=\"searchFor\" select=\"'{0}'\" /> <xsl:with-param name=\"replaceText\" select=\"$value\" /> </xsl:call-template> </xsl:template> <xsl:template name=\"replace\"> <xsl:param name=\"inputString\" /> <xsl:param name=\"searchFor\" /> <xsl:param name=\"replaceText\" /> <xsl:choose> <xsl:when test=\"contains($inputString,$searchFor)\"> <xsl:value-of select=\"substring-before($inputString,$searchFor)\" /> <xsl:value-of select=\"$replaceText\" /> <xsl:call-template name=\"replace\"> <xsl:with-param name=\"inputString\" select=\"substring-after($inputString,$searchFor)\" /> <xsl:with-param name=\"searchFor\" select=\"$searchFor\" /> <xsl:with-param name=\"replaceText\" select=\"$replaceText\" /> </xsl:call-template> </xsl:when> <xsl:otherwise> <xsl:value-of select=\"$inputString\" /> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template name=\"replacePlaceHoldersOnLink\"> <xsl:param name=\"inputString\" /> <xsl:param name=\"title\" /> <xsl:param name=\"value\" /> <xsl:call-template name=\"replaceOnLink\"> <xsl:with-param name=\"inputString\" select=\"$inputString\" /> <xsl:with-param name=\"searchFor\" select=\"'{0}'\" /> <xsl:with-param name=\"linkTitle\" select=\"$title\" /> <xsl:with-param name=\"linkValue\" select=\"$value\" /> </xsl:call-template> </xsl:template> <xsl:template name=\"replaceOnLink\"> <xsl:param name=\"inputString\" /> <xsl:param name=\"searchFor\" /> <xsl:param name=\"linkTitle\" /> <xsl:param name=\"linkValue\" /> <xsl:choose> <xsl:when test=\"contains($inputString,$searchFor)\"> <xsl:value-of select=\"substring-before($inputString,$searchFor)\" /> <a id=\"tagListActionBt\" class=\"lotusAction\" href=\"javascript:void(0);\" title=\"{$linkTitle}\" onclick=\"profiles_showTagCloud()\"> <xsl:value-of select=\"$linkValue\" /> </a> <xsl:call-template name=\"replaceOnLink\"> <xsl:with-param name=\"inputString\" select=\"substring-after($inputString,$searchFor)\" /> <xsl:with-param name=\"searchFor\" select=\"$searchFor\" /> <xsl:with-param name=\"linkTitle\" select=\"$linkTitle\" /> <xsl:with-param name=\"linkValue\" select=\"$linkValue\" /> </xsl:call-template> </xsl:when> <xsl:otherwise> <xsl:value-of select=\"$inputString\" /> </xsl:otherwise> </xsl:choose> </xsl:template></xsl:stylesheet>");

;dojo.cache("lconn.profiles", "xslt/follow/view-all-following.xsl", "<?xml version=\"1.0\" encoding=\"UTF-8\"?><xsl:stylesheet version=\"1.0\" xmlns=\"http://www.w3.org/1999/xhtml\" xmlns:html=\"http://www.w3.org/1999/xhtml\" xmlns:snx=\"http://www.ibm.com/xmlns/prod/sn/profiles\" xmlns:atom=\"http://www.w3.org/2005/Atom\" xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\" exclude-result-prefixes=\"snx xsl html atom\"> <xsl:output method=\"html\" omit-xml-declaration=\"yes\" indent=\"no\" /> <xsl:param name=\"applicationContext\" select=\"'/profiles'\"/> <xsl:param name=\"blankImg\"/> <xsl:param name=\"loggedIn\"/> <xsl:param name=\"loggedInUserUid\"/> <xsl:param name=\"loggedInUserKey\" /> <xsl:param name=\"displayedUserKey\" /> <xsl:param name=\"displayName\" select=\"''\"/> <xsl:variable name=\"isCurrentUser\" select=\"$loggedIn = 'true' and $loggedInUserKey = $displayedUserKey\" /> <xsl:variable name=\"total-items-count\" select=\"atom:feed/@snx:total-count\" /> <xsl:variable name=\"items-per-page\" select=\"atom:feed/@snx:items-per-page\" /> <xsl:variable name=\"sortBy\" select=\"atom:feed/@snx:sort-by\" /> <xsl:variable name=\"current-page\" select=\"atom:feed/@snx:current-page\" /> <xsl:variable name=\"js-app-prefix\" select=\"'lconn.profiles.Following'\" /> <xsl:param name=\"follow_noContacts\" /> <xsl:param name=\"follow_noFollowerContacts\" /> <xsl:param name=\"follow_fullPageTitle\"/> <xsl:param name=\"label_inactive_user_msg\"/> <xsl:param name=\"follow_title_ContactsFollowing\" select=\"'Contacts Following {0}'\"/> <xsl:param name=\"follow_title_ContactsFollowedBy\" select=\"'Contacts Followed By {0}'\"/> <xsl:param name=\"showEmail\"/> <xsl:param name=\"action\"/> <xsl:template match=\"/\"> <xsl:choose> <xsl:when test=\"contains(atom:feed/@snx:ui-level,'second')\"> <div> <div id=\"followTabContent\"> <form onsubmit=\"return {$js-app-prefix}.removeContacts(this);\"> <input type=\"submit\" style=\"display:none;\"/> <xsl:call-template name=\"third-level-content\" /> </form> </div> </div> </xsl:when> <xsl:otherwise> <xsl:call-template name=\"third-level-content\" /> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:param name=\"tablePagingSortBy\"/> <xsl:param name=\"follow_sortByDisplayName\"/> <xsl:param name=\"follow_sortByRecent\"/> <xsl:param name=\"follow_telephone\"/> <xsl:param name=\"follow_email\"/> <xsl:param name=\"follow_altEmail\"/> <xsl:param name=\"follow_removedSelected\"/> <xsl:param name=\"follow_tableheading_selection\"/> <xsl:param name=\"follow_tableheading_photo\"/> <xsl:param name=\"follow_tableheading_employeeinfo\"/> <xsl:param name=\"follow_tableheading_contactinfo\"/> <xsl:template name=\"third-level-content\"> <div id=\"followsThirdLevel\" class=\"lotusChunk\"> <xsl:choose> <xsl:when test=\"$total-items-count > 0\"> <xsl:if test=\"$isCurrentUser\"> <xsl:if test=\"$action = 'in'\"> <div id=\"follow_removeContactsDiv\" class=\"lotusChunk lotusBtnContainer\"> <span class=\"lotusBtn lotusBtnAction lotusLeft\"> <a href=\"javascript:void(0);\" role=\"button\" onclick=\"{$js-app-prefix}.removeContacts(this);\"> <xsl:value-of select=\"$follow_removedSelected\"/> </a> </span> <br/><br/> </div> </xsl:if> </xsl:if> <xsl:call-template name=\"table-paging-header\"/> <div id=\"pageItemsMainRegion\" aria-label=\"\" role=\"region\"> <table id=\"follow_mainContentTable\" class=\"lotusTable\" border=\"0\" cellspacing=\"0\" width=\"100%\"> <tbody> <tr class=\"lotusHidden\"> <th><xsl:value-of select=\"$follow_tableheading_selection\"/></th> <th><xsl:value-of select=\"$follow_tableheading_photo\"/></th> <th><xsl:value-of select=\"$follow_tableheading_employeeinfo\"/></th> <th><xsl:value-of select=\"$follow_tableheading_contactinfo\"/></th> </tr> <xsl:for-each select=\"atom:feed/atom:entry\"> <xsl:variable name=\"pos\" select=\"position()\" /> <tr> <xsl:choose> <xsl:when test=\"position() = 1\"> <xsl:attribute name=\"class\">lotusFirstRow</xsl:attribute> </xsl:when> <xsl:when test=\"position() mod 2 = 0\"> <xsl:attribute name=\"class\">lotusAltRow</xsl:attribute> </xsl:when> <xsl:otherwise> <xsl:attribute name=\"class\"></xsl:attribute> </xsl:otherwise> </xsl:choose> <xsl:if test=\"$isCurrentUser\"> <xsl:if test=\"$action = 'in'\"> <td class=\"lotusFirstCell\" style=\"width:25px\"> <input type=\"checkbox\" value=\"{@snx:key}\" id=\"select_contact_{$pos}\" aria-label=\"{atom:title/text()}\"/> </td> </xsl:if> </xsl:if> <td style=\"width:70px\"> <xsl:choose> <xsl:when test=\"$isCurrentUser\"> <xsl:attribute name=\"class\"> </xsl:attribute> </xsl:when> <xsl:otherwise> <xsl:attribute name=\"class\">lotusFirstCell</xsl:attribute> </xsl:otherwise> </xsl:choose> <div> <img src=\"{@snx:imageUrl}\" width=\"55\" height=\"55\" alt=\"{atom:title/text()}\" /> <xsl:if test=\"$sortBy='0'\"> <span style=\"padding-right: 5px;\">&#160;</span> </xsl:if> </div> </td> <td> <div> <h4><span class=\"vcard\"> <span class=\"x-lconn-userid\" style=\"display: none;\"><xsl:value-of select=\"@snx:userid\"/></span> <a href=\"{$applicationContext}/html/profileView.do?key={@snx:key}\" class=\"fn url lotusPerson bidiAware\"> <xsl:value-of select=\"atom:title/text()\"/> </a> </span></h4> <div> <xsl:value-of select=\"@snx:name\" /> </div> <div> <xsl:if test=\"@snx:city != '' and @snx:city != 'null'\"> <xsl:value-of select=\"@snx:city\" /> , </xsl:if> <xsl:if test=\"@snx:state != '' and @snx:state != 'null'\"> <xsl:value-of select=\"@snx:state\" /> , </xsl:if> <xsl:if test=\"@snx:country != '' and @snx:country != 'null'\"> <xsl:value-of select=\"@snx:country\" /> </xsl:if> </div> <xsl:if test=\"@snx:company != '' and @snx:company != 'null'\"> <div><xsl:value-of select=\"@snx:company\" /></div> </xsl:if> <xsl:if test=\"@snx:expertise != '' and @snx:expertise != 'null'\"> <div><strong><xsl:value-of select=\"@snx:expertise\" /></strong></div> </xsl:if> <xsl:if test=\"@snx:isActive = 'false'\"> <div><xsl:value-of select=\"$label_inactive_user_msg\" /></div> </xsl:if> </div> </td> <td class=\"lotusLastCell\"> </td> </tr> </xsl:for-each> </tbody> </table> </div> <img src=\"{$blankImg}\" width='650' height=\"0\" alt=\"\" role=\"presentation\"/> <xsl:call-template name=\"table-paging-footer\"/> </xsl:when> <xsl:otherwise> <xsl:choose> <xsl:when test=\"$action = 'in'\"> <xsl:value-of select=\"$follow_noContacts\" /> </xsl:when> <xsl:otherwise> <xsl:value-of select=\"$follow_noFollowerContacts\" /> </xsl:otherwise> </xsl:choose> <img src=\"{$blankImg}\" width='650' height=\"0\" alt=\"\" role=\"presentation\"/> </xsl:otherwise> </xsl:choose> </div> </xsl:template> <xsl:param name=\"tablePagingJumpToPage\" select=\"'Jump to page'\"/> <xsl:param name=\"tablePagingPage\" select=\"'Page'\"/> <xsl:param name=\"tablePagingPageLinkAlt\" select=\"'Go to page {0} of items'\"/> <xsl:param name=\"tablePagingItermsPerPage\" select=\"'items per page'\"/> <xsl:param name=\"tablePagingShow\" select=\"'Show:'\"/> <xsl:param name=\"tablePagingShowLinkAlt\" select=\"'Show {0} items per page'\"/> <xsl:param name=\"tablePagingPrevious\" select=\"'Previous'\"/> <xsl:param name=\"tablePagingNext\" select=\"'Next'\"/> <xsl:param name=\"tablePagingPreviousAlt\" select=\"'Go to the previous page of items'\"/> <xsl:param name=\"tablePagingNextAlt\" select=\"'Go to the next page of items '\"/> <xsl:param name=\"tablePagingOf\" select=\"'of'\"/> <xsl:param name=\"tablePagingLabel\" select=\"'Paging controls.'\"/> <xsl:param name=\"tableBottomPagingLabel\" select=\"'Bottom paging controls.'\"/> <xsl:param name=\"tablePagingInfo\" select=\"'{0} - {1} of {2}'\"/> <xsl:param name=\"tablePagingInfoAlt\" select=\"'Showing items {0} through {1} of {2}'\"/> <xsl:param name=\"tablePagingJumpToPageControl\" select=\"'Jump to page {0} of {1}'\"/> <xsl:param name=\"tablePagingJumpToPageDesc\" select=\"'By changing the value in this control, the page will automatically reload showing the items for that page.'\"/> <xsl:variable name=\"first-item-number\" select=\"($items-per-page * $current-page + 1)\" /> <xsl:variable name=\"last-item-number\"> <xsl:choose> <xsl:when test=\"$total-items-count &lt; (($items-per-page * $current-page) + $items-per-page)\"> <xsl:value-of select=\"$total-items-count\"/> </xsl:when> <xsl:otherwise> <xsl:value-of select=\"(($items-per-page * $current-page) + $items-per-page)\"/> </xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name=\"total-pages\" select=\"ceiling(($total-items-count) div ($items-per-page))\" /> <xsl:variable name=\"paging-info\"> <xsl:call-template name=\"replacePlaceHolders\"> <xsl:with-param name=\"searchFor\" select=\"'{2}'\" /> <xsl:with-param name=\"value\" select=\"$total-items-count\" /> <xsl:with-param name=\"inputString\"> <xsl:call-template name=\"replacePlaceHolders\"> <xsl:with-param name=\"searchFor\" select=\"'{1}'\" /> <xsl:with-param name=\"value\" select=\"$last-item-number\" /> <xsl:with-param name=\"inputString\"> <xsl:call-template name=\"replacePlaceHolders\"> <xsl:with-param name=\"inputString\" select=\"$tablePagingInfo\" /> <xsl:with-param name=\"searchFor\" select=\"'{0}'\" /> <xsl:with-param name=\"value\" select=\"$first-item-number\" /> </xsl:call-template> </xsl:with-param> </xsl:call-template> </xsl:with-param> </xsl:call-template> </xsl:variable> <xsl:variable name=\"paging-info-alt\"> <xsl:call-template name=\"replacePlaceHolders\"> <xsl:with-param name=\"searchFor\" select=\"'{2}'\" /> <xsl:with-param name=\"value\" select=\"$total-items-count\" /> <xsl:with-param name=\"inputString\"> <xsl:call-template name=\"replacePlaceHolders\"> <xsl:with-param name=\"searchFor\" select=\"'{1}'\" /> <xsl:with-param name=\"value\" select=\"$last-item-number\" /> <xsl:with-param name=\"inputString\"> <xsl:call-template name=\"replacePlaceHolders\"> <xsl:with-param name=\"inputString\" select=\"$tablePagingInfoAlt\"/> <xsl:with-param name=\"searchFor\" select=\"'{0}'\" /> <xsl:with-param name=\"value\" select=\"$first-item-number\" /> </xsl:call-template> </xsl:with-param> </xsl:call-template> </xsl:with-param> </xsl:call-template> </xsl:variable> <xsl:template name=\"table-paging-header\"> <div class=\"lotusPaging\" role=\"region\" aria-label=\"{$tablePagingLabel} {$paging-info-alt}\"> <div class=\"lotusLeft\" aria-hidden=\"true\"> <xsl:call-template name=\"display-items-info\"/> </div> <ul class=\"lotusRight lotusInlinelist\" role=\"list\"> <xsl:call-template name=\"next-previous-links\"/> </ul> <xsl:if test=\"$total-pages &gt; 1\"> <xsl:call-template name=\"display-pages\"/> </xsl:if> </div> </xsl:template> <xsl:template name=\"pagecount-alttext\"> <xsl:param name=\"count\">5</xsl:param> <xsl:call-template name=\"replacePlaceHolders\"> <xsl:with-param name=\"inputString\" select=\"$tablePagingShowLinkAlt\"/> <xsl:with-param name=\"value\" select=\"$count\" /> </xsl:call-template> </xsl:template> <xsl:template name=\"items-per-page-link\"> <xsl:param name=\"count\">5</xsl:param> <xsl:param name=\"class\"></xsl:param> <xsl:choose> <xsl:when test=\"$items-per-page = $count\"> <li class=\"{$class}\" role=\"listitem\" aria-disabled=\"true\"><xsl:value-of select=\"$count\"/></li> </xsl:when> <xsl:otherwise> <xsl:variable name=\"alt_itemsperpage\"> <xsl:call-template name=\"replacePlaceHolders\"> <xsl:with-param name=\"inputString\" select=\"$tablePagingShowLinkAlt\"/> <xsl:with-param name=\"value\" select=\"$count\" /> </xsl:call-template> </xsl:variable> <li class=\"{$class}\" role=\"listitem\"> <a href=\"javascript:void(0);\" onclick=\"{$js-app-prefix}.setItemsPerPage(this,{$count})\" title=\"{$alt_itemsperpage}\" aria-label=\"{$alt_itemsperpage}\"><xsl:value-of select=\"$count\"/></a> </li> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template name=\"table-paging-footer\"> <div class=\"lotusPaging\" role=\"region\" aria-label=\"{$tableBottomPagingLabel} {$paging-info-alt}\"> <xsl:call-template name=\"output-hidden-fields\"/> <div class=\"lotusLeft\"> <span aria-hidden=\"true\"><xsl:value-of select=\"$tablePagingShow\"/>&#160;</span> <ul class=\"lotusInlinelist\" role=\"list\"> <xsl:call-template name=\"items-per-page-link\"> <xsl:with-param name=\"count\">5</xsl:with-param> <xsl:with-param name=\"class\">lotusFirst</xsl:with-param> </xsl:call-template> <xsl:call-template name=\"items-per-page-link\"> <xsl:with-param name=\"count\">10</xsl:with-param> </xsl:call-template> <xsl:call-template name=\"items-per-page-link\"> <xsl:with-param name=\"count\">50</xsl:with-param> </xsl:call-template> <xsl:call-template name=\"items-per-page-link\"> <xsl:with-param name=\"count\">100</xsl:with-param> </xsl:call-template> </ul> <span aria-hidden=\"true\"><xsl:value-of select=\"$tablePagingItermsPerPage\"/></span> </div> <ul class=\"lotusRight lotusInlinelist\" role=\"list\"> <xsl:call-template name=\"next-previous-links\"/> </ul> <xsl:if test=\"$total-pages &gt; 1\"> <span class=\"lotusInlinelist\"> <label for=\"jumpToPageNumber\" class=\"lotusHidden\"><xsl:value-of select=\"$tablePagingJumpToPage\"/></label> <span id=\"jumpToPageNumberDesc\" class=\"lotusHidden\"><xsl:value-of select=\"$tablePagingJumpToPageDesc\"/></span> <xsl:variable name=\"mainJumpText\"> <xsl:call-template name=\"replacePlaceHolders\"> <xsl:with-param name=\"searchFor\" select=\"'{1}'\" /> <xsl:with-param name=\"value\" select=\"$total-pages\" /> <xsl:with-param name=\"inputString\" select=\"$tablePagingJumpToPageControl\"/> </xsl:call-template> </xsl:variable> <xsl:value-of select=\"substring-before($mainJumpText,'{0}')\" /> <input id=\"jumpToPageNumber\" aria-describedby=\"jumpToPageNumberDesc\" type=\"text\" name=\"pageNumber\" value=\"{$current-page + 1}\" onblur=\"{$js-app-prefix}.pageTo(this,(this.value - 1))\" onkeypress=\"{$js-app-prefix}.handlePageToEnterKey(event, this,(this.value - 1))\" /> <xsl:value-of select=\"substring-after($mainJumpText,'{0}')\" /> </span> </xsl:if> </div> </xsl:template> <xsl:template name=\"output-hidden-fields\"> <input type=\"hidden\" name=\"key\" id=\"displayedUserKey\" value=\"{$displayedUserKey}\"/> <input type=\"hidden\" name=\"items-per-page\" id=\"items-per-page\" value=\"{$items-per-page}\"/> <input type=\"hidden\" name=\"sortBy\" id=\"sortBy\" value=\"{$sortBy}\"/> <input type=\"hidden\" name=\"current-page\" id=\"current-page\" value=\"{$current-page}\"/> <input type=\"hidden\" name=\"total-pages\" id=\"total-pages\" value=\"{$total-pages}\"/> </xsl:template> <xsl:template name=\"next-previous-links\"> <xsl:choose> <xsl:when test=\"$current-page = 0\"> <li class=\"lotusFirst\" role=\"listitem\" aria-disabled=\"true\"><xsl:value-of select=\"$tablePagingPrevious\"/></li> </xsl:when> <xsl:otherwise> <li class=\"lotusFirst\" role=\"listitem\"> <a href=\"javascript:void(0);\" onclick=\"{$js-app-prefix}.pageTo(this,{$current-page - 1})\" title=\"{$tablePagingPreviousAlt}\" aria-label=\"{$tablePagingPreviousAlt}\"> <xsl:value-of select=\"$tablePagingPrevious\"/> </a> </li> </xsl:otherwise> </xsl:choose> <xsl:choose> <xsl:when test=\"$current-page = $total-pages - 1\"> <li role=\"listitem\" aria-disabled=\"true\"><xsl:value-of select=\"$tablePagingNext\"/></li> </xsl:when> <xsl:otherwise> <li role=\"listitem\"> <a href=\"javascript:void(0);\" onclick=\"{$js-app-prefix}.pageTo(this,{$current-page + 1})\" title=\"{$tablePagingNextAlt}\" aria-label=\"{$tablePagingNextAlt}\"> <xsl:value-of select=\"$tablePagingNext\"/> </a> </li> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template name=\"display-items-info\"> <xsl:value-of select=\"$paging-info\"/> </xsl:template> <xsl:template name=\"render-list-item\"> <xsl:param name=\"linkPage\">-1</xsl:param> <xsl:param name=\"className\"></xsl:param> <xsl:param name=\"prefix\"></xsl:param> <xsl:if test=\"$linkPage &gt;= 0\"> <xsl:variable name=\"realLinkPage\" select=\"$linkPage + 1\"/> <xsl:variable name=\"listItemLinkAlt\"> <xsl:call-template name=\"replacePlaceHolders\"> <xsl:with-param name=\"inputString\" select=\"$tablePagingPageLinkAlt\" /> <xsl:with-param name=\"value\" select=\"$realLinkPage\" /> </xsl:call-template> </xsl:variable> <xsl:if test=\"$prefix != ''\"><span aria-hidden=\"true\"><xsl:value-of select=\"$prefix\"/></span></xsl:if> <li role=\"listitem\" class=\"{$className}\"> <xsl:choose> <xsl:when test=\"$current-page = $linkPage\"> <xsl:attribute name=\"aria-disabled\">true</xsl:attribute> <xsl:value-of select=\"$realLinkPage\"/> </xsl:when> <xsl:otherwise> <a href=\"javascript:void(0);\" onclick=\"{$js-app-prefix}.pageTo(this,{$linkPage})\" title=\"{$listItemLinkAlt}\" aria-label=\"{$listItemLinkAlt}\"> <xsl:value-of select=\"$realLinkPage\"/> </a> </xsl:otherwise> </xsl:choose> </li> </xsl:if> </xsl:template> <xsl:template name=\"render-list-loop\"> <xsl:param name=\"linkPage\">-1</xsl:param> <xsl:param name=\"className\"></xsl:param> <xsl:param name=\"ubound\">-1</xsl:param> <xsl:if test=\"$linkPage &lt;= $ubound\"> <xsl:call-template name=\"render-list-item\"> <xsl:with-param name=\"linkPage\" select=\"$linkPage\"/> <xsl:with-param name=\"className\" select=\"$className\"/> </xsl:call-template> <xsl:call-template name=\"render-list-loop\"> <xsl:with-param name=\"linkPage\" select=\"$linkPage + 1\"/> <xsl:with-param name=\"ubound\" select=\"$ubound\"/> </xsl:call-template> </xsl:if> </xsl:template> <xsl:template name=\"display-pages\"> <xsl:variable name=\"cpage\" select=\"$current-page\" /> <xsl:variable name=\"tpage\" select=\"$total-pages - 1\" /> <xsl:variable name=\"lbound1\"> <xsl:choose> <xsl:when test=\"$cpage = 0 or $cpage = 1\">1</xsl:when> <xsl:when test=\"$cpage = $tpage or $cpage = $tpage - 1\"><xsl:value-of select=\"$tpage - 2\"/></xsl:when> <xsl:otherwise><xsl:value-of select=\"$cpage - 1\"/></xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name=\"lbound\"> <xsl:choose> <xsl:when test=\"$lbound1 &lt;= 0\">1</xsl:when> <xsl:otherwise><xsl:value-of select=\"$lbound1\"/></xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name=\"ubound1\"> <xsl:choose> <xsl:when test=\"$cpage = 0 or $cpage = 1\">2</xsl:when> <xsl:when test=\"$cpage = $tpage or $cpage = $tpage - 1\"><xsl:value-of select=\"$tpage - 1\"/></xsl:when> <xsl:otherwise><xsl:value-of select=\"$cpage + 1\"/></xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name=\"ubound\"> <xsl:choose> <xsl:when test=\"$ubound1 &gt;= $tpage\"><xsl:value-of select=\"$tpage - 1\"/></xsl:when> <xsl:otherwise><xsl:value-of select=\"$ubound1\"/></xsl:otherwise> </xsl:choose> </xsl:variable> <nobr> <span aria-hidden=\"true\"><xsl:value-of select=\"$tablePagingPage\"/>&#160;</span> <ul class=\"lotusInlinelist\" role=\"list\"> <xsl:call-template name=\"render-list-item\"> <xsl:with-param name=\"className\">lotusFirst</xsl:with-param> <xsl:with-param name=\"linkPage\" select=\"0\"/> </xsl:call-template> <xsl:if test=\"$lbound &gt; 1\"> <li aria-disabled=\"true\" role=\"listitem\">...</li> </xsl:if> <xsl:call-template name=\"render-list-loop\"> <xsl:with-param name=\"linkPage\" select=\"$lbound\"/> <xsl:with-param name=\"ubound\" select=\"$ubound\"/> </xsl:call-template> <xsl:if test=\"$ubound &lt; $tpage - 1\"> <li aria-disabled=\"true\" role=\"listitem\">...</li> </xsl:if> <xsl:call-template name=\"render-list-item\"> <xsl:with-param name=\"linkPage\" select=\"$tpage\"/> </xsl:call-template> </ul> </nobr> </xsl:template> <xsl:template name=\"replacePlaceHolders\"> <xsl:param name=\"inputString\" /> <xsl:param name=\"value\" /> <xsl:param name=\"searchFor\" select=\"'{0}'\" /> <xsl:call-template name=\"replace\"> <xsl:with-param name=\"inputString\" select=\"$inputString\" /> <xsl:with-param name=\"searchFor\" select=\"$searchFor\" /> <xsl:with-param name=\"replaceText\" select=\"$value\" /> </xsl:call-template> </xsl:template> <xsl:template name=\"replace\"> <xsl:param name=\"inputString\" /> <xsl:param name=\"searchFor\" /> <xsl:param name=\"replaceText\" /> <xsl:choose> <xsl:when test=\"contains($inputString,$searchFor)\"> <xsl:value-of select=\"substring-before($inputString,$searchFor)\" /> <xsl:value-of select=\"$replaceText\" /> <xsl:call-template name=\"replace\"> <xsl:with-param name=\"inputString\" select=\"substring-after($inputString,$searchFor)\" /> <xsl:with-param name=\"searchFor\" select=\"$searchFor\" /> <xsl:with-param name=\"replaceText\" select=\"$replaceText\" /> </xsl:call-template> </xsl:when> <xsl:otherwise> <xsl:value-of select=\"$inputString\" /> </xsl:otherwise> </xsl:choose> </xsl:template></xsl:stylesheet>");

;dojo.cache("lconn.profiles", "xslt/friends/view-all-friends.xsl", "<?xml version=\"1.0\" encoding=\"UTF-8\"?><xsl:stylesheet version=\"1.0\" xmlns=\"http://www.w3.org/1999/xhtml\" xmlns:html=\"http://www.w3.org/1999/xhtml\" xmlns:snx=\"http://www.ibm.com/xmlns/prod/sn/profiles\" xmlns:atom=\"http://www.w3.org/2005/Atom\" xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\" exclude-result-prefixes=\"snx xsl html atom\"> <xsl:output method=\"html\" omit-xml-declaration=\"yes\" indent=\"no\" /> <xsl:param name=\"applicationContext\" select=\"'/profiles'\"/> <xsl:param name=\"blankImg\"/> <xsl:param name=\"etag\"/> <xsl:param name=\"loggedIn\"/> <xsl:param name=\"loggedInUserUid\"/> <xsl:param name=\"loggedInUserKey\" /> <xsl:param name=\"displayedUserKey\" /> <xsl:variable name=\"isCurrentUser\" select=\"$loggedIn = 'true' and $loggedInUserKey = $displayedUserKey\" /> <xsl:variable name=\"total-items-count\" select=\"atom:feed/@snx:total-friends\" /> <xsl:variable name=\"items-per-page\" select=\"atom:feed/@snx:items-per-page\" /> <xsl:variable name=\"sortBy\" select=\"atom:feed/@snx:sort-by\" /> <xsl:variable name=\"current-page\" select=\"atom:feed/@snx:current-page\" /> <xsl:variable name=\"js-app-prefix\" select=\"'lconn.profiles.Friending'\" /> <xsl:param name=\"friendsNoFriends\" select=\"'No network contacts are associated with this profile'\"/> <xsl:param name=\"friendsFullPageTitle\"/> <xsl:param name=\"friendsInvitations\"/> <xsl:param name=\"friendsLoadingInv\"/> <xsl:param name=\"label_inactive_user_msg\"/> <xsl:param name=\"showEmail\"/> <xsl:template match=\"/\"> <xsl:choose> <xsl:when test=\"contains(atom:feed/@snx:ui-level,'second')\"> <div> <div id=\"friendsTabContent\"> <form onsubmit=\"return {$js-app-prefix}.lconn.profiles.Friending.RemoveFriends(this, '{$displayedUserKey}');\"> <input type=\"submit\" style=\"display:none;\"/> <xsl:call-template name=\"third-level-content\" /> </form> </div> <div id=\"invitationsTabContent\" style=\"display: none\" empty=\"true\"> <img class=\"lotusLoading\" src=\"{$blankImg}\"></img> <xsl:value-of select=\"$friendsLoadingInv\" /> </div> </div> </xsl:when> <xsl:otherwise> <xsl:call-template name=\"third-level-content\" /> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:param name=\"tablePagingSortBy\"/> <xsl:param name=\"friendsSortByDisplayName\"/> <xsl:param name=\"friendsSortByRecent\"/> <xsl:param name=\"friendsRemovedSelected\"/> <xsl:param name=\"friendsTelephone\"/> <xsl:param name=\"friendsEmail\"/> <xsl:param name=\"friendsAltEmail\"/> <xsl:param name=\"friends_tableheading_selection\"/> <xsl:param name=\"friends_tableheading_photo\"/> <xsl:param name=\"friends_tableheading_employeeinfo\"/> <xsl:param name=\"friends_tableheading_contactinfo\"/> <xsl:template name=\"third-level-content\"> <div id=\"friendsThirdLevel\" class=\"lotusChunk\"> <xsl:choose> <xsl:when test=\"$total-items-count > 0\"> <xsl:if test=\"$isCurrentUser\"> <div id=\"frinds_removeFriendsDiv\" class=\"lotusChunk lotusBtnContainer\"> <span class=\"lotusBtn lotusBtnAction lotusLeft\"> <a href=\"javascript:void(0);\" role=\"button\" onclick=\"lconn.profiles.Friending.RemoveFriends(this, '{$displayedUserKey}')\"> <xsl:value-of select=\"$friendsRemovedSelected\"/> </a> </span> <br/><br/> </div> </xsl:if> <xsl:call-template name=\"table-paging-header\"/> <div id=\"friends_sortDiv\" class=\"lotusChunk lotusSort\"> <ul class=\"lotusInlinelist\" role=\"list\"> <li class=\"lotusFirst\" role=\"listitem\"><xsl:value-of select=\"$tablePagingSortBy\"/></li> <li class=\"lotusFirst\" role=\"listitem\"> <a role=\"button\" onclick=\"lconn.profiles.Friending.sortFriends(this, 0)\" title=\"{$tablePagingSortBy} {$friendsSortByDisplayName}\" href=\"javascript:void(0);\"> <xsl:if test=\"$sortBy='0'\"> <xsl:attribute name=\"class\">lotusActiveSort lotusAscending</xsl:attribute> <span class=\"lotusAltText\">&#9650;</span> </xsl:if> <xsl:value-of select=\"$friendsSortByDisplayName\"/> </a> </li> <li role=\"listitem\"> <a role=\"button\" onclick=\"lconn.profiles.Friending.sortFriends(this, 3)\" title=\"{$tablePagingSortBy} {$friendsSortByRecent}\" href=\"javascript:void(0);\" class=\"lotusActiveSort\"> <xsl:if test=\"$sortBy='3'\"> <xsl:attribute name=\"class\">lotusActiveSort lotusDescending</xsl:attribute> <span class=\"lotusAltText\">&#9660;</span> </xsl:if> <xsl:value-of select=\"$friendsSortByRecent\"/> </a> </li> </ul> </div> <table id=\"friends_mainContentTable\" class=\"lotusTable\" border=\"0\" cellspacing=\"0\" width=\"100%\"> <tbody> <tr class=\"lotusHidden\"> <th><xsl:value-of select=\"$friends_tableheading_selection\"/></th> <th><xsl:value-of select=\"$friends_tableheading_photo\"/></th> <th><xsl:value-of select=\"$friends_tableheading_employeeinfo\"/></th> <th><xsl:value-of select=\"$friends_tableheading_contactinfo\"/></th> </tr> <xsl:for-each select=\"atom:feed/atom:entry\"> <xsl:variable name=\"pos\" select=\"position()\" /> <tr> <xsl:choose> <xsl:when test=\"position() = 1\"> <xsl:attribute name=\"class\">lotusFirstRow</xsl:attribute> </xsl:when> <xsl:when test=\"position() mod 2 = 0\"> <xsl:attribute name=\"class\">lotusAltRow</xsl:attribute> </xsl:when> <xsl:otherwise> <xsl:attribute name=\"class\"></xsl:attribute> </xsl:otherwise> </xsl:choose> <xsl:if test=\"$isCurrentUser\"> <td style=\"width:25px\" class=\"lotusFirstCell\"> <div> <input type=\"checkbox\" value=\"{atom:id/text()}\" id=\"select_friend_{$pos}\" aria-label=\"{atom:title/text()}\"/> </div> </td> </xsl:if> <td style=\"width:70px\"> <xsl:choose> <xsl:when test=\"$isCurrentUser\"> <xsl:attribute name=\"class\"></xsl:attribute> </xsl:when> <xsl:otherwise> <xsl:attribute name=\"class\">lotusFirstCell</xsl:attribute> </xsl:otherwise> </xsl:choose> <div> <img src=\"{@snx:imageUrl}\" width=\"55\" height=\"55\" alt=\"{atom:title/text()}\" /> <xsl:if test=\"$sortBy='0'\"> <span style=\"padding-right: 5px;\">&#160;</span> </xsl:if> </div> </td> <td> <div> <h4><span class=\"vcard\"> <span class=\"x-lconn-userid\" style=\"display: none;\"><xsl:value-of select=\"@snx:userid\"/></span> <a href=\"{$applicationContext}/html/profileView.do?key={@snx:key}\" class=\"fn url lotusPerson bidiAware\"> <xsl:value-of select=\"atom:title/text()\"/> </a> </span></h4> <div> <xsl:value-of select=\"@snx:name\" /> </div> <div> <xsl:if test=\"@snx:city != '' and @snx:city != 'null'\"> <xsl:value-of select=\"@snx:city\" /> , </xsl:if> <xsl:if test=\"@snx:state != '' and @snx:state != 'null'\"> <xsl:value-of select=\"@snx:state\" /> , </xsl:if> <xsl:if test=\"@snx:country != '' and @snx:country != 'null'\"> <xsl:value-of select=\"@snx:country\" /> </xsl:if> </div> <xsl:if test=\"@snx:company != '' and @snx:company != 'null'\"> <div><xsl:value-of select=\"@snx:company\" /></div> </xsl:if> <xsl:if test=\"@snx:expertise != '' and @snx:expertise != 'null'\"> <div><strong><xsl:value-of select=\"@snx:expertise\" /></strong></div> </xsl:if> <xsl:if test=\"@snx:isActive = 'false'\"> <div><xsl:value-of select=\"$label_inactive_user_msg\" /></div> </xsl:if> </div> </td> <td class=\"lotusLastCell\"> </td> </tr> </xsl:for-each> </tbody> </table> <img src=\"{$blankImg}\" width='650' height=\"0\" alt=\"\" role=\"presentation\"/> <xsl:call-template name=\"table-paging-footer\"/> <span id=\"friends_count\"/> </xsl:when> <xsl:otherwise> <span id=\"friends_count\"><p><xsl:value-of select=\"$friendsNoFriends\" /></p></span> </xsl:otherwise> </xsl:choose> </div> </xsl:template> <xsl:param name=\"tablePagingJumpToPage\" select=\"'Jump to page'\"/> <xsl:param name=\"tablePagingPage\" select=\"'Page'\"/> <xsl:param name=\"tablePagingPageLinkAlt\" select=\"'Go to page {0} of items'\"/> <xsl:param name=\"tablePagingItermsPerPage\" select=\"'items per page'\"/> <xsl:param name=\"tablePagingShow\" select=\"'Show:'\"/> <xsl:param name=\"tablePagingShowLinkAlt\" select=\"'Show {0} items per page'\"/> <xsl:param name=\"tablePagingPrevious\" select=\"'Previous'\"/> <xsl:param name=\"tablePagingNext\" select=\"'Next'\"/> <xsl:param name=\"tablePagingPreviousAlt\" select=\"'Go to the previous page of items'\"/> <xsl:param name=\"tablePagingNextAlt\" select=\"'Go to the next page of items '\"/> <xsl:param name=\"tablePagingOf\" select=\"'of'\"/> <xsl:param name=\"tablePagingLabel\" select=\"'Paging controls.'\"/> <xsl:param name=\"tableBottomPagingLabel\" select=\"'Bottom paging controls.'\"/> <xsl:param name=\"tablePagingInfo\" select=\"'{0} - {1} of {2}'\"/> <xsl:param name=\"tablePagingInfoAlt\" select=\"'Showing items {0} through {1} of {2}'\"/> <xsl:param name=\"tablePagingJumpToPageControl\" select=\"'Jump to page {0} of {1}'\"/> <xsl:param name=\"tablePagingJumpToPageDesc\" select=\"'By changing the value in this control, the page will automatically reload showing the items for that page.'\"/> <xsl:variable name=\"first-item-number\" select=\"($items-per-page * $current-page + 1)\" /> <xsl:variable name=\"last-item-number\"> <xsl:choose> <xsl:when test=\"$total-items-count &lt; (($items-per-page * $current-page) + $items-per-page)\"> <xsl:value-of select=\"$total-items-count\"/> </xsl:when> <xsl:otherwise> <xsl:value-of select=\"(($items-per-page * $current-page) + $items-per-page)\"/> </xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name=\"total-pages\" select=\"ceiling(($total-items-count) div ($items-per-page))\" /> <xsl:variable name=\"paging-info\"> <xsl:call-template name=\"replacePlaceHolders\"> <xsl:with-param name=\"searchFor\" select=\"'{2}'\" /> <xsl:with-param name=\"value\" select=\"$total-items-count\" /> <xsl:with-param name=\"inputString\"> <xsl:call-template name=\"replacePlaceHolders\"> <xsl:with-param name=\"searchFor\" select=\"'{1}'\" /> <xsl:with-param name=\"value\" select=\"$last-item-number\" /> <xsl:with-param name=\"inputString\"> <xsl:call-template name=\"replacePlaceHolders\"> <xsl:with-param name=\"inputString\" select=\"$tablePagingInfo\" /> <xsl:with-param name=\"searchFor\" select=\"'{0}'\" /> <xsl:with-param name=\"value\" select=\"$first-item-number\" /> </xsl:call-template> </xsl:with-param> </xsl:call-template> </xsl:with-param> </xsl:call-template> </xsl:variable> <xsl:variable name=\"paging-info-alt\"> <xsl:call-template name=\"replacePlaceHolders\"> <xsl:with-param name=\"searchFor\" select=\"'{2}'\" /> <xsl:with-param name=\"value\" select=\"$total-items-count\" /> <xsl:with-param name=\"inputString\"> <xsl:call-template name=\"replacePlaceHolders\"> <xsl:with-param name=\"searchFor\" select=\"'{1}'\" /> <xsl:with-param name=\"value\" select=\"$last-item-number\" /> <xsl:with-param name=\"inputString\"> <xsl:call-template name=\"replacePlaceHolders\"> <xsl:with-param name=\"inputString\" select=\"$tablePagingInfoAlt\"/> <xsl:with-param name=\"searchFor\" select=\"'{0}'\" /> <xsl:with-param name=\"value\" select=\"$first-item-number\" /> </xsl:call-template> </xsl:with-param> </xsl:call-template> </xsl:with-param> </xsl:call-template> </xsl:variable> <xsl:template name=\"table-paging-header\"> <div class=\"lotusPaging\" role=\"region\" aria-label=\"{$tablePagingLabel} {$paging-info-alt}\"> <div class=\"lotusLeft\" aria-hidden=\"true\"> <xsl:call-template name=\"display-items-info\"/> </div> <ul class=\"lotusRight lotusInlinelist\" role=\"list\"> <xsl:call-template name=\"next-previous-links\"/> </ul> <xsl:if test=\"$total-pages &gt; 1\"> <xsl:call-template name=\"display-pages\"/> </xsl:if> </div> </xsl:template> <xsl:template name=\"pagecount-alttext\"> <xsl:param name=\"count\">5</xsl:param> <xsl:call-template name=\"replacePlaceHolders\"> <xsl:with-param name=\"inputString\" select=\"$tablePagingShowLinkAlt\"/> <xsl:with-param name=\"value\" select=\"$count\" /> </xsl:call-template> </xsl:template> <xsl:template name=\"items-per-page-link\"> <xsl:param name=\"count\">5</xsl:param> <xsl:param name=\"class\"></xsl:param> <xsl:choose> <xsl:when test=\"$items-per-page = $count\"> <li class=\"{$class}\" role=\"listitem\" aria-disabled=\"true\"><xsl:value-of select=\"$count\"/></li> </xsl:when> <xsl:otherwise> <xsl:variable name=\"alt_itemsperpage\"> <xsl:call-template name=\"replacePlaceHolders\"> <xsl:with-param name=\"inputString\" select=\"$tablePagingShowLinkAlt\"/> <xsl:with-param name=\"value\" select=\"$count\" /> </xsl:call-template> </xsl:variable> <li class=\"{$class}\" role=\"listitem\"> <a href=\"javascript:void(0);\" onclick=\"{$js-app-prefix}.setItemsPerPage(this,{$count})\" title=\"{$alt_itemsperpage}\" aria-label=\"{$alt_itemsperpage}\"><xsl:value-of select=\"$count\"/></a> </li> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template name=\"table-paging-footer\"> <div class=\"lotusPaging\" role=\"region\" aria-label=\"{$tableBottomPagingLabel} {$paging-info-alt}\"> <xsl:call-template name=\"output-hidden-fields\"/> <div class=\"lotusLeft\"> <span aria-hidden=\"true\"><xsl:value-of select=\"$tablePagingShow\"/>&#160;</span> <ul class=\"lotusInlinelist\" role=\"list\"> <xsl:call-template name=\"items-per-page-link\"> <xsl:with-param name=\"count\">5</xsl:with-param> <xsl:with-param name=\"class\">lotusFirst</xsl:with-param> </xsl:call-template> <xsl:call-template name=\"items-per-page-link\"> <xsl:with-param name=\"count\">10</xsl:with-param> </xsl:call-template> <xsl:call-template name=\"items-per-page-link\"> <xsl:with-param name=\"count\">50</xsl:with-param> </xsl:call-template> <xsl:call-template name=\"items-per-page-link\"> <xsl:with-param name=\"count\">100</xsl:with-param> </xsl:call-template> </ul> <span aria-hidden=\"true\"><xsl:value-of select=\"$tablePagingItermsPerPage\"/></span> </div> <ul class=\"lotusRight lotusInlinelist\" role=\"list\"> <xsl:call-template name=\"next-previous-links\"/> </ul> <xsl:if test=\"$total-pages &gt; 1\"> <span class=\"lotusInlinelist\"> <label for=\"jumpToPageNumber\" class=\"lotusHidden\"><xsl:value-of select=\"$tablePagingJumpToPage\"/></label> <span id=\"jumpToPageNumberDesc\" class=\"lotusHidden\"><xsl:value-of select=\"$tablePagingJumpToPageDesc\"/></span> <xsl:variable name=\"mainJumpText\"> <xsl:call-template name=\"replacePlaceHolders\"> <xsl:with-param name=\"searchFor\" select=\"'{1}'\" /> <xsl:with-param name=\"value\" select=\"$total-pages\" /> <xsl:with-param name=\"inputString\" select=\"$tablePagingJumpToPageControl\"/> </xsl:call-template> </xsl:variable> <xsl:value-of select=\"substring-before($mainJumpText,'{0}')\" /> <input id=\"jumpToPageNumber\" aria-describedby=\"jumpToPageNumberDesc\" type=\"text\" name=\"pageNumber\" value=\"{$current-page + 1}\" onblur=\"{$js-app-prefix}.pageTo(this,(this.value - 1))\" onkeypress=\"{$js-app-prefix}.handlePageToEnterKey(event, this,(this.value - 1))\" /> <xsl:value-of select=\"substring-after($mainJumpText,'{0}')\" /> </span> </xsl:if> </div> </xsl:template> <xsl:template name=\"output-hidden-fields\"> <input type=\"hidden\" name=\"key\" id=\"displayedUserKey\" value=\"{$displayedUserKey}\"/> <input type=\"hidden\" name=\"items-per-page\" id=\"items-per-page\" value=\"{$items-per-page}\"/> <input type=\"hidden\" name=\"sortBy\" id=\"sortBy\" value=\"{$sortBy}\"/> <input type=\"hidden\" name=\"current-page\" id=\"current-page\" value=\"{$current-page}\"/> <input type=\"hidden\" name=\"total-pages\" id=\"total-pages\" value=\"{$total-pages}\"/> </xsl:template> <xsl:template name=\"next-previous-links\"> <xsl:choose> <xsl:when test=\"$current-page = 0\"> <li class=\"lotusFirst\" role=\"listitem\" aria-disabled=\"true\"><xsl:value-of select=\"$tablePagingPrevious\"/></li> </xsl:when> <xsl:otherwise> <li class=\"lotusFirst\" role=\"listitem\"> <a href=\"javascript:void(0);\" onclick=\"{$js-app-prefix}.pageTo(this,{$current-page - 1})\" title=\"{$tablePagingPreviousAlt}\" aria-label=\"{$tablePagingPreviousAlt}\"> <xsl:value-of select=\"$tablePagingPrevious\"/> </a> </li> </xsl:otherwise> </xsl:choose> <xsl:choose> <xsl:when test=\"$current-page = $total-pages - 1\"> <li role=\"listitem\" aria-disabled=\"true\"><xsl:value-of select=\"$tablePagingNext\"/></li> </xsl:when> <xsl:otherwise> <li role=\"listitem\"> <a href=\"javascript:void(0);\" onclick=\"{$js-app-prefix}.pageTo(this,{$current-page + 1})\" title=\"{$tablePagingNextAlt}\" aria-label=\"{$tablePagingNextAlt}\"> <xsl:value-of select=\"$tablePagingNext\"/> </a> </li> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template name=\"display-items-info\"> <xsl:value-of select=\"$paging-info\"/> </xsl:template> <xsl:template name=\"render-list-item\"> <xsl:param name=\"linkPage\">-1</xsl:param> <xsl:param name=\"className\"></xsl:param> <xsl:param name=\"prefix\"></xsl:param> <xsl:if test=\"$linkPage &gt;= 0\"> <xsl:variable name=\"realLinkPage\" select=\"$linkPage + 1\"/> <xsl:variable name=\"listItemLinkAlt\"> <xsl:call-template name=\"replacePlaceHolders\"> <xsl:with-param name=\"inputString\" select=\"$tablePagingPageLinkAlt\" /> <xsl:with-param name=\"value\" select=\"$realLinkPage\" /> </xsl:call-template> </xsl:variable> <xsl:if test=\"$prefix != ''\"><span aria-hidden=\"true\"><xsl:value-of select=\"$prefix\"/></span></xsl:if> <li role=\"listitem\" class=\"{$className}\"> <xsl:choose> <xsl:when test=\"$current-page = $linkPage\"> <xsl:attribute name=\"aria-disabled\">true</xsl:attribute> <xsl:value-of select=\"$realLinkPage\"/> </xsl:when> <xsl:otherwise> <a href=\"javascript:void(0);\" onclick=\"{$js-app-prefix}.pageTo(this,{$linkPage})\" title=\"{$listItemLinkAlt}\" aria-label=\"{$listItemLinkAlt}\"> <xsl:value-of select=\"$realLinkPage\"/> </a> </xsl:otherwise> </xsl:choose> </li> </xsl:if> </xsl:template> <xsl:template name=\"render-list-loop\"> <xsl:param name=\"linkPage\">-1</xsl:param> <xsl:param name=\"className\"></xsl:param> <xsl:param name=\"ubound\">-1</xsl:param> <xsl:if test=\"$linkPage &lt;= $ubound\"> <xsl:call-template name=\"render-list-item\"> <xsl:with-param name=\"linkPage\" select=\"$linkPage\"/> <xsl:with-param name=\"className\" select=\"$className\"/> </xsl:call-template> <xsl:call-template name=\"render-list-loop\"> <xsl:with-param name=\"linkPage\" select=\"$linkPage + 1\"/> <xsl:with-param name=\"ubound\" select=\"$ubound\"/> </xsl:call-template> </xsl:if> </xsl:template> <xsl:template name=\"display-pages\"> <xsl:variable name=\"cpage\" select=\"$current-page\" /> <xsl:variable name=\"tpage\" select=\"$total-pages - 1\" /> <xsl:variable name=\"lbound1\"> <xsl:choose> <xsl:when test=\"$cpage = 0 or $cpage = 1\">1</xsl:when> <xsl:when test=\"$cpage = $tpage or $cpage = $tpage - 1\"><xsl:value-of select=\"$tpage - 2\"/></xsl:when> <xsl:otherwise><xsl:value-of select=\"$cpage - 1\"/></xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name=\"lbound\"> <xsl:choose> <xsl:when test=\"$lbound1 &lt;= 0\">1</xsl:when> <xsl:otherwise><xsl:value-of select=\"$lbound1\"/></xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name=\"ubound1\"> <xsl:choose> <xsl:when test=\"$cpage = 0 or $cpage = 1\">2</xsl:when> <xsl:when test=\"$cpage = $tpage or $cpage = $tpage - 1\"><xsl:value-of select=\"$tpage - 1\"/></xsl:when> <xsl:otherwise><xsl:value-of select=\"$cpage + 1\"/></xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name=\"ubound\"> <xsl:choose> <xsl:when test=\"$ubound1 &gt;= $tpage\"><xsl:value-of select=\"$tpage - 1\"/></xsl:when> <xsl:otherwise><xsl:value-of select=\"$ubound1\"/></xsl:otherwise> </xsl:choose> </xsl:variable> <nobr> <span aria-hidden=\"true\"><xsl:value-of select=\"$tablePagingPage\"/>&#160;</span> <ul class=\"lotusInlinelist\" role=\"list\"> <xsl:call-template name=\"render-list-item\"> <xsl:with-param name=\"className\">lotusFirst</xsl:with-param> <xsl:with-param name=\"linkPage\" select=\"0\"/> </xsl:call-template> <xsl:if test=\"$lbound &gt; 1\"> <li aria-disabled=\"true\" role=\"listitem\">...</li> </xsl:if> <xsl:call-template name=\"render-list-loop\"> <xsl:with-param name=\"linkPage\" select=\"$lbound\"/> <xsl:with-param name=\"ubound\" select=\"$ubound\"/> </xsl:call-template> <xsl:if test=\"$ubound &lt; $tpage - 1\"> <li aria-disabled=\"true\" role=\"listitem\">...</li> </xsl:if> <xsl:call-template name=\"render-list-item\"> <xsl:with-param name=\"linkPage\" select=\"$tpage\"/> </xsl:call-template> </ul> </nobr> </xsl:template> <xsl:template name=\"replacePlaceHolders\"> <xsl:param name=\"inputString\" /> <xsl:param name=\"value\" /> <xsl:param name=\"searchFor\" select=\"'{0}'\" /> <xsl:call-template name=\"replace\"> <xsl:with-param name=\"inputString\" select=\"$inputString\" /> <xsl:with-param name=\"searchFor\" select=\"$searchFor\" /> <xsl:with-param name=\"replaceText\" select=\"$value\" /> </xsl:call-template> </xsl:template> <xsl:template name=\"replace\"> <xsl:param name=\"inputString\" /> <xsl:param name=\"searchFor\" /> <xsl:param name=\"replaceText\" /> <xsl:choose> <xsl:when test=\"contains($inputString,$searchFor)\"> <xsl:value-of select=\"substring-before($inputString,$searchFor)\" /> <xsl:value-of select=\"$replaceText\" /> <xsl:call-template name=\"replace\"> <xsl:with-param name=\"inputString\" select=\"substring-after($inputString,$searchFor)\" /> <xsl:with-param name=\"searchFor\" select=\"$searchFor\" /> <xsl:with-param name=\"replaceText\" select=\"$replaceText\" /> </xsl:call-template> </xsl:when> <xsl:otherwise> <xsl:value-of select=\"$inputString\" /> </xsl:otherwise> </xsl:choose> </xsl:template></xsl:stylesheet>");

;dojo.cache("lconn.profiles", "xslt/friends/accept-invitations.xsl", "<?xml version=\"1.0\" encoding=\"UTF-8\"?><xsl:stylesheet version=\"1.0\" xmlns=\"http://www.w3.org/1999/xhtml\" xmlns:html=\"http://www.w3.org/1999/xhtml\" xmlns:snx=\"http://www.ibm.com/xmlns/prod/sn/profiles\" xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\" exclude-result-prefixes=\"snx xsl\"> <xsl:output method=\"html\" omit-xml-declaration=\"yes\" indent=\"no\" /> <xsl:param name=\"applicationContext\" select=\"'/profiles'\"/> <xsl:param name=\"blankImg\"/> <xsl:param name=\"etag\"/> <xsl:param name=\"loggedIn\" /> <xsl:param name=\"loggedInUserUid\" /> <xsl:param name=\"loggedInUserKey\" /> <xsl:variable name=\"userLoggedIn\" select=\"$loggedIn = 'true'\" /> <xsl:param name=\"friendsFullPageTitle\"/> <xsl:param name=\"friendsInvitations\"/> <xsl:param name=\"friendsNewInv\"/> <xsl:param name=\"friendsNewInvs\"/> <xsl:param name=\"friendsInCommonSingle\"/> <xsl:param name=\"friendsInCommonMulti\"/> <xsl:param name=\"friendsDate\"/> <xsl:param name=\"friendsAcceptAction\"/> <xsl:param name=\"friendsIgnoreAction\"/> <xsl:param name=\"friendsNoInv\"/> <xsl:param name=\"friendsLoading\"/> <xsl:param name=\"friendsShowAllCommonFriends\"/> <xsl:template match=\"/\"> <xsl:choose> <xsl:when test=\"contains(snx:invitations/@ui-level,'second')\"> <div> <div id=\"friendsTabContent\" style=\"display: none\" empty=\"true\"> <img class=\"lotusLoading\" src=\"{$blankImg}\"></img> <xsl:value-of select=\"$friendsLoading\" /> </div> <div id=\"invitationsTabContent\"> <xsl:call-template name=\"third-level-content\" /> </div> </div> </xsl:when> <xsl:otherwise> <xsl:call-template name=\"third-level-content\" /> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template name=\"third-level-content\"> <xsl:variable name=\"activeInvites\" select=\"count(snx:invitations/snx:invitation)\" /> <div id=\"accept-invitations-section\" class=\"lotusChunk\"> <span id=\"friends_count\"> <xsl:choose> <xsl:when test=\"$activeInvites=1\"> <h3> <xsl:call-template name=\"replacePlaceHolders\"> <xsl:with-param name=\"inputString\" select=\"$friendsNewInv\" /> <xsl:with-param name=\"value\" select=\"$activeInvites\" /> </xsl:call-template> </h3> </xsl:when> <xsl:when test=\"$activeInvites &gt; 1\"> <h3> <xsl:call-template name=\"replacePlaceHolders\"> <xsl:with-param name=\"inputString\" select=\"$friendsNewInvs\" /> <xsl:with-param name=\"value\" select=\"$activeInvites\" /> </xsl:call-template> </h3> </xsl:when> <xsl:otherwise> <p> <xsl:call-template name=\"replacePlaceHolders\"> <xsl:with-param name=\"inputString\" select=\"$friendsNewInvs\" /> <xsl:with-param name=\"value\" select=\"$activeInvites\" /> </xsl:call-template> </p> </xsl:otherwise> </xsl:choose> </span> <table class=\"lotusTable\" role=\"presentation\"> <xsl:choose> <xsl:when test=\"$activeInvites &gt; 0\"> <xsl:for-each select=\"snx:invitations/snx:invitation\"> <xsl:variable name=\"pos\" select=\"position()\" /> <xsl:variable name=\"inviterKey\" select=\"@key\" /> <tr> <xsl:choose> <xsl:when test=\"position() = 1\"> <xsl:attribute name=\"class\">lotusResultRow lotusFirst</xsl:attribute> </xsl:when> <xsl:when test=\"position() mod 2 = 0\"> <xsl:attribute name=\"class\">lotusResultRow lotusAltRow</xsl:attribute> </xsl:when> <xsl:otherwise> <xsl:attribute name=\"class\">lotusResultRow</xsl:attribute> </xsl:otherwise> </xsl:choose> <td class=\"lotusFirst\"> <div> <xsl:if test=\"@isActive = 'false'\"> <xsl:attribute name=\"class\">lotusDim</xsl:attribute> </xsl:if> <img src=\"{$applicationContext}/photo.do?key={@key}&amp;lastMod={@lastMod}\" width=\"45\" length=\"45\" alt=\"{@inviter-name}\" /> </div> </td> <td style=\"width: 100%\"> <div> <xsl:if test=\"@isActive = 'false'\"> <xsl:attribute name=\"class\">lotusDim</xsl:attribute> </xsl:if> <h4> <span class=\"vcard\"> <a href=\"{$applicationContext}/html/profileView.do?key={@key}\" class=\"fn lotusPerson bidiAware\"><xsl:value-of select=\"@inviter-name\" /></a> <span class=\"x-lconn-userid\" style=\"display: none;\"><xsl:value-of select=\"@userid\"/></span> </span> </h4> <xsl:if test=\"not(@msg = '')\"> <div class=\"bidiAware\"> <xsl:call-template name=\"valueOfUnescapeXML\"> <xsl:with-param name=\"inputString\" select=\"@msg\"/> </xsl:call-template> </div> </xsl:if> <xsl:if test=\"@common-friends=1\"> <div style=\"padding-top:10px;\"> <xsl:call-template name=\"replacePlaceHolders\"> <xsl:with-param name=\"inputString\" select=\"$friendsInCommonSingle\" /> <xsl:with-param name=\"value\" select=\"@common-friends\" /> </xsl:call-template> </div> </xsl:if> <xsl:if test=\"not(@common-friends=1)\"> <div style=\"padding-top:10px;\"> <xsl:call-template name=\"replacePlaceHolders\"> <xsl:with-param name=\"inputString\" select=\"$friendsInCommonMulti\" /> <xsl:with-param name=\"value\" select=\"@common-friends\" /> </xsl:call-template> </div> </xsl:if> <xsl:if test=\"not(@common-friends=0)\"> <div id=\"friendsInCommon_div_{$inviterKey}\" class=\"\"> <xsl:for-each select=\"snx:common-friend\"> <xsl:choose> <xsl:when test=\"position() &lt; 10\"> <div class=\"lotusLeft lotusNetworkPerson\" > <span class=\"vcard\"> <a href=\"{$applicationContext}/html/profileView.do?key={@key}\"> <img src=\"{$applicationContext}/photo.do?key={@key}&amp;lastMod={@lastMod}\" width=\"32\" length=\"32\" alt=\"{@displayName}\" title=\"{@displayName}\" class=\"fn lotusPerson\" /> <span class=\"x-lconn-userid\" style=\"display: none;\"><xsl:value-of select=\"@userid\" /></span> </a> </span> </div> </xsl:when> <xsl:when test=\"position() &gt;= 10\"> <div class=\"lotusLeft lotusNetworkPerson lotusHidden\" > <span class=\"vcard\"> <a href=\"{$applicationContext}/html/profileView.do?key={@key}\"> <img src=\"{$applicationContext}/photo.do?key={@key}&amp;lastMod={@lastMod}\" width=\"32\" length=\"32\" alt=\"{@displayName}\" title=\"{@displayName}\" class=\"fn lotusPerson\" /> <span class=\"x-lconn-userid\" style=\"display: none;\"><xsl:value-of select=\"@userid\" /></span> </a> </span> </div> </xsl:when> </xsl:choose> <xsl:if test=\"position() = 10\"> <div id=\"frindsInCommonShowAll_div_{$inviterKey}\" class=\"lotusLeft lotusNetworkPerson\"> <a href=\"javascript:;\" title=\"{$friendsShowAllCommonFriends}\" onclick=\"lconn.profiles.Friending.showAllCommonFriends('{$inviterKey}');\"> <br/><xsl:value-of select=\"$friendsShowAllCommonFriends\" /> </a> </div> </xsl:if> </xsl:for-each> </div> </xsl:if> </div> </td> </tr> <tr class=\"lotusDetails\"> <td></td> <td> <div style=\"padding-top:10px;\"> <xsl:if test=\"@isActive = 'false'\"> <xsl:attribute name=\"class\">lotusDim</xsl:attribute> </xsl:if> <ul class=\"lotusInlinelist lotusLinks\" role=\"list\"> <li class=\"lotusFirst\" role=\"listitem\"> <a id=\"accept_link_{$pos}\" href=\"javascript:;\" aria-label=\"{$friendsAcceptAction} {@inviter-name}\" title=\"{$friendsAcceptAction} {@inviter-name}\" onclick=\"lconn.profiles.Friending.acceptFriendRequest('{@connectionId}', '{$loggedInUserKey}') \"><xsl:value-of select=\"$friendsAcceptAction\" /></a> </li> <li role=\"listitem\"> <a id=\"reject_link_{$pos}\" href=\"javascript:;\" aria-label=\"{$friendsIgnoreAction} {@inviter-name}\" title=\"{$friendsIgnoreAction} {@inviter-name}\" onclick=\"lconn.profiles.Friending.rejectFriendRequest('{@connectionId}', '{$loggedInUserKey}')\"><xsl:value-of select=\"$friendsIgnoreAction\" /></a> </li> </ul> </div> <img src=\"{$blankImg}\" width='650' height=\"0\" alt=\"\"/> </td> </tr> </xsl:for-each> </xsl:when> <xsl:otherwise> </xsl:otherwise> </xsl:choose> </table> <img src=\"{$blankImg}\" width='650' height=\"0\" alt=\"\"/> </div> </xsl:template> <xsl:template name=\"valueOfUnescapeXML\"> <xsl:param name=\"inputString\" /> <xsl:param name=\"searchFor\" select=\"'&lt;br/&gt;'\" /> <xsl:choose> <xsl:when test=\"contains($inputString, $searchFor)\"> <xsl:value-of select=\"substring-before($inputString,$searchFor)\" /> <br/> <xsl:call-template name=\"valueOfUnescapeXML\"> <xsl:with-param name=\"inputString\" select=\"substring-after($inputString,$searchFor)\" /> </xsl:call-template> </xsl:when> <xsl:otherwise> <xsl:value-of select=\"$inputString\" /> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template name=\"replacePlaceHolders\"> <xsl:param name=\"inputString\" /> <xsl:param name=\"value\" /> <xsl:call-template name=\"replace\"> <xsl:with-param name=\"inputString\" select=\"$inputString\" /> <xsl:with-param name=\"searchFor\" select=\"'{0}'\" /> <xsl:with-param name=\"replaceText\" select=\"$value\" /> </xsl:call-template> </xsl:template> <xsl:template name=\"replace\"> <xsl:param name=\"inputString\" /> <xsl:param name=\"searchFor\" /> <xsl:param name=\"replaceText\" /> <xsl:choose> <xsl:when test=\"contains($inputString,$searchFor)\"> <xsl:value-of select=\"substring-before($inputString,$searchFor)\" /> <xsl:value-of select=\"$replaceText\" /> <xsl:call-template name=\"replace\"> <xsl:with-param name=\"inputString\" select=\"substring-after($inputString,$searchFor)\" /> <xsl:with-param name=\"searchFor\" select=\"$searchFor\" /> <xsl:with-param name=\"replaceText\" select=\"$replaceText\" /> </xsl:call-template> </xsl:when> <xsl:otherwise> <xsl:value-of select=\"$inputString\" /> </xsl:otherwise> </xsl:choose> </xsl:template></xsl:stylesheet>");

;dojo.cache("lconn.profiles", "xslt/friends/send-request.xsl", "<?xml version=\"1.0\" encoding=\"UTF-8\"?><xsl:stylesheet version=\"1.0\" xmlns=\"http://www.w3.org/1999/xhtml\" xmlns:html=\"http://www.w3.org/1999/xhtml\" xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\" exclude-result-prefixes=\"xsl html\"> <xsl:output method=\"html\" omit-xml-declaration=\"yes\" indent=\"no\" /> <xsl:param name=\"applicationContext\" select=\"'/profiles'\"/> <xsl:param name=\"friendsInitialMsgForInv\"/> <xsl:param name=\"friendsIncludeMsgForInv\"/> <xsl:param name=\"friendsSendInvAction\"/> <xsl:param name=\"friendsCancelInvAction\"/> <xsl:template match=\"/\"> <form id=\"invitation\" class=\"lotusForm\"> <br/> <fieldset> <legend><label for=\"invitation_text\"><xsl:value-of select=\"$friendsIncludeMsgForInv\"/></label></legend><%-- a11y --%> <br /> <textarea cols=\"40\" rows=\"8\" name=\"invitation_text\" id=\"invitation_text\" class=\"bidiAware\"><xsl:if test=\"/xml-root/@showInviteUI = 'disabled'\"> <xsl:attribute name=\"disabled\">true</xsl:attribute> </xsl:if><xsl:value-of select=\"$friendsInitialMsgForInv\"/></textarea> <br /> </fieldset> <div class=\"lotusBtnContainer\"> <input type=\"button\" value=\"{$friendsSendInvAction}\" class=\"lotusBtn lotusBtnSpecial lotusLeft\" onclick=\"lconn.profiles.Friending.sendFriendRequest(this,'{xml-root/@targetKey}', '', 'back')\"> <xsl:if test=\"/xml-root/@showInviteUI = 'false'\"> <xsl:attribute name=\"disabled\">disabled</xsl:attribute> </xsl:if> </input> <span style=\"padding-left: 5px;\"> <a href=\"javascript:void(0);\" onclick=\"profiles_goBack();\" class=\"lotusAction\"><xsl:value-of select=\"$friendsCancelInvAction\"/></a> </span> </div> </form> </xsl:template></xsl:stylesheet>");

;dojo.cache("lconn.profiles", "xslt/friends/recent-friends.xsl", "<?xml version=\"1.0\" encoding=\"UTF-8\"?><xsl:stylesheet version=\"1.0\" xmlns=\"http://www.w3.org/1999/xhtml\" xmlns:html=\"http://www.w3.org/1999/xhtml\" xmlns:snx=\"http://www.ibm.com/xmlns/prod/sn/profiles\" xmlns:atom=\"http://www.w3.org/2005/Atom\" xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\" exclude-result-prefixes=\"snx xsl html atom\"> <xsl:output method=\"html\" omit-xml-declaration=\"yes\" indent=\"no\" /> <xsl:param name=\"applicationContext\" select=\"'/profiles'\"/> <xsl:param name=\"loggedIn\"/> <xsl:param name=\"loggedInUserUid\"/> <xsl:param name=\"loggedInUserKey\" /> <xsl:param name=\"displayedUserKey\" /> <xsl:variable name=\"isCurrentUser\" select=\"$loggedIn = 'true' and $loggedInUserKey = $displayedUserKey\" /> <xsl:param name=\"friendsViewAllFriends\" select=\"'See All'\"/> <xsl:param name=\"friendsNoFriends\" select=\"'No network contacts are associated with this profile'\"/> <xsl:param name=\"friendsNewInv\"/> <xsl:param name=\"friendsNewInvs\"/> <xsl:template match=\"/\"> <div id=\"recent-friends-container\"> <xsl:if test=\"atom:feed/@snx:new-invitations-count > 0 and $isCurrentUser\"> <div class=\"lotusChunk\"> <p><b> <a href=\"javascript:void(0);\" onclick=\"lconn.profiles.Friending.viewAllInvitations()\"> <xsl:if test=\"atom:feed/@snx:new-invitations-count = 1\"> <xsl:call-template name=\"replacePlaceHolders\"> <xsl:with-param name=\"inputString\" select=\"$friendsNewInv\" /> <xsl:with-param name=\"value\" select=\"atom:feed/@snx:new-invitations-count\" /> </xsl:call-template> </xsl:if> <xsl:if test=\"not( atom:feed/@snx:new-invitations-count = 1 )\"> <xsl:call-template name=\"replacePlaceHolders\"> <xsl:with-param name=\"inputString\" select=\"$friendsNewInvs\" /> <xsl:with-param name=\"value\" select=\"atom:feed/@snx:new-invitations-count\" /> </xsl:call-template> </xsl:if> </a> </b></p> </div> </xsl:if> <div class=\"lotusChunk\" role=\"list\"> <xsl:choose> <xsl:when test=\"count(atom:feed/atom:entry) > 0\"> <xsl:for-each select=\"atom:feed/atom:entry\"> <div class=\"lotusLeft lotusNetworkPerson\" role=\"listitem\"> <span class=\"vcard\"> <a href=\"{atom:link/@href}\" class=\"fn lotusPerson hasHover url\" title=\"{atom:title/text()}\" aria-label=\"{atom:title/text()}\"> <img height=\"32\" width=\"32\" alt=\"{atom:title/text()}\" src=\"{@snx:imageUrl}\" tabindex=\"-1\"/> <span class=\"x-lconn-userid\" style=\"display: none;\"><xsl:value-of select=\"@snx:userid\"/></span> </a> </span> </div> </xsl:for-each> </xsl:when> <xsl:otherwise> <div class=\"lotusChunk\" role=\"listitem\" tabindex=\"-1\"> <xsl:value-of select=\"$friendsNoFriends\"/> </div> </xsl:otherwise> </xsl:choose> </div> <div class=\"lotusClear\"></div> </div> <div class=\"lotusChunk\" style=\"padding-top:5px;\"> <p> <a class=\"lotusAction\" href=\"javascript:void(0);\"> <xsl:attribute name=\"onclick\"> lconn.profiles.Friending.viewAllColleagues('<xsl:value-of select=\"$displayedUserKey\"/>'); </xsl:attribute> <xsl:call-template name=\"replacePlaceHolders\"> <xsl:with-param name=\"inputString\" select=\"$friendsViewAllFriends\" /> <xsl:with-param name=\"value\" select=\"atom:feed/@snx:total-friends\" /> </xsl:call-template> </a> </p> </div> </xsl:template> <xsl:template name=\"replacePlaceHolders\"> <xsl:param name=\"inputString\" /> <xsl:param name=\"value\" /> <xsl:call-template name=\"replace\"> <xsl:with-param name=\"inputString\" select=\"$inputString\" /> <xsl:with-param name=\"searchFor\" select=\"'{0}'\" /> <xsl:with-param name=\"replaceText\" select=\"$value\" /> </xsl:call-template> </xsl:template> <xsl:template name=\"replace\"> <xsl:param name=\"inputString\" /> <xsl:param name=\"searchFor\" /> <xsl:param name=\"replaceText\" /> <xsl:choose> <xsl:when test=\"contains($inputString,$searchFor)\"> <xsl:value-of select=\"substring-before($inputString,$searchFor)\" /> <xsl:value-of select=\"$replaceText\" /> <xsl:call-template name=\"replace\"> <xsl:with-param name=\"inputString\" select=\"substring-after($inputString,$searchFor)\" /> <xsl:with-param name=\"searchFor\" select=\"$searchFor\" /> <xsl:with-param name=\"replaceText\" select=\"$replaceText\" /> </xsl:call-template> </xsl:when> <xsl:otherwise> <xsl:value-of select=\"$inputString\" /> </xsl:otherwise> </xsl:choose> </xsl:template></xsl:stylesheet>");

;if(!dojo._hasResource["lconn.profiles.ProfilesXSL"]){
dojo._hasResource["lconn.profiles.ProfilesXSL"]=true;
dojo.provide("lconn.profiles.ProfilesXSL");




lconn.profiles.ProfilesXSL.cachedXSLs=new (dojo.declare("",[lconn.core.util._XSLCache],{xslStrings:{"report-chain.xsl":{templatePath:dojo.moduleUrl("lconn.profiles","xslt/reportChain/report-chain.xsl")},"linkroll.xsl":{templatePath:dojo.moduleUrl("lconn.profiles","xslt/linkroll/linkroll.xsl")},"add-link.xsl":{templatePath:dojo.moduleUrl("lconn.profiles","xslt/linkroll/add-link.xsl")},"tags.xsl":{templatePath:dojo.moduleUrl("lconn.profiles","xslt/tags/tags.xsl")},"view-all-following.xsl":{templatePath:dojo.moduleUrl("lconn.profiles","xslt/follow/view-all-following.xsl")},"view-all-friends.xsl":{templatePath:dojo.moduleUrl("lconn.profiles","xslt/friends/view-all-friends.xsl")},"accept-invitations.xsl":{templatePath:dojo.moduleUrl("lconn.profiles","xslt/friends/accept-invitations.xsl")},"send-request.xsl":{templatePath:dojo.moduleUrl("lconn.profiles","xslt/friends/send-request.xsl")},"recent-friends.xsl":{templatePath:dojo.moduleUrl("lconn.profiles","xslt/friends/recent-friends.xsl")}}}));
lconn.profiles.ProfilesXSL.getCachedXSL=function(_1){
return lconn.profiles.ProfilesXSL.cachedXSLs.getXslDoc(_1);
};
lconn.profiles.ProfilesXSL.loadResourceStrings=function(_2,_3){
dojo.deprecated("lconn.profiles.ProfilesXSL.loadResourceStrings","Replace with direct references to dojo message bundles","3.5");
if(_2==null){
_2=new Array;
}
for(var i=0;_3!=null&&i<_3.length;i++){
var _4=generalrs[_3[i]];
if(_4){
var _5=_4.replace(/\'\'/g,"'");
if(_5==null||_5==""){
_2.push([_3[i],_3[i]+" resourceKey not found"]);
}else{
_2.push([_3[i],_5]);
}
}
}
return _2;
};
lconn.profiles.ProfilesXSL.loadContent=function(_6,_7,_8,_9,_a,_b,_c){
if(!_6){
return false;
}
if(_c&&_6.indexOf("lastMod=")==-1){
_6+=((_6.indexOf("?")==-1)?"?lastMod=":"&lastMod=")+profilesData.config.profileLastMod;
}
if(_6.indexOf("viewallfriends.xml")>0||_6.indexOf("viewallfollowers.xml")>0||_6.indexOf("viewfollowedprofiles.xml")>0){
var _d=dojo.locale;
if(_d=="pt-br"||_d=="pt"){
_d="pt_br";
}
_6+=((_6.indexOf("?")==-1)?"?ts=":"&ts=")+new Date().getTime()+"&lang="+_d;
}
var _e={xmlDocUrl:_6};
return lconn.profiles.ProfilesXSL._loadContent(_e,_7,_8,_9,_a,_b);
};
lconn.profiles.ProfilesXSL._loadContent=function(_f,_10,_11,_12,_13,_14){
var _15=false;
var _16=function(_17,_18,_19){
if(_18==null){
_18=new Array;
}
_18.push(["etag",versionStamp]);
_18.push(["blankImg",blankImg]);
_18.push(["appLang",(appLang?appLang:"")]);
if(lconn.profiles.ProfilesCore.isUserLoggedIn()){
_18.push(["loggedIn","true"]);
_18.push(["loggedInUserUid",lconn.profiles.ProfilesCore.getLoggedInUserUid()]);
_18.push(["loggedInUserKey",lconn.profiles.ProfilesCore.getLoggedInUserKey()]);
}else{
_18.push(["loggedIn","false"]);
}
if(_19!=null){
_18.push(["displayedUserKey",_19]);
}
_18.push(["applicationContext",applicationContext]);
_18.push(["profImageDir",applicationContext+"/static/images/"+profilesData.config.appChkSum]);
_18=lconn.profiles.ProfilesCore.loadResourceStrings(_18,_17);
return _18;
};
var _1a=_16(_12,_13,_14);
if(_f){
try{
_f.htmlContainerElemId=_11;
_f.aXslParams=_1a;
_f.dojoErrorHandler=lconn.profiles.ProfilesCore.DefaultXHRErrorHandler;
_f.exceptionHandler=lconn.profiles.ProfilesCore.DefaultErrorHandler;
if(lconn.profiles.ProfilesXSL.cachedXSLs.getXslDoc(_10)){
_f.xslDoc=lconn.profiles.ProfilesXSL.cachedXSLs.getXslDoc(_10);
}
lconn.core.xslt.transformAndRender(_f);
_15=true;
}
catch(e){
var _1b=e.message;
throw new Error("lconn.profiles.ProfilesXSL._loadContent:\n"+"exception: "+_1b+"\n"+"for XSL: ["+XSLViewURL+"]");
}
}else{
throw new Error("lconn.profiles.ProfilesXSL._loadContent: xsltArgs is null for XSL: ["+XSLViewURL+"]");
}
return _15;
};
}


;if(!dojo._hasResource["lconn.profiles.PersonTag"]){
dojo._hasResource["lconn.profiles.PersonTag"]=true;
dojo.provide("lconn.profiles.PersonTag");


function profiles_AddVCard(_1){
profiles_AddLiveNameSupport(_1);
};
function profiles_AddLiveNameSupport(_2){
var _3=function(){
setTimeout("SemTagSvc.parseDom(null, '"+_2+"')",1500);
lconn.core.globalization.bidiUtil.enforceTextDirectionOnPage(dojo.byId(_2));
};
processUntilElementIsFound(_2,_3);
};
}


;if(!dojo._hasResource["lconn.profiles.Friending"]){
dojo._hasResource["lconn.profiles.Friending"]=true;
dojo.provide("lconn.profiles.Friending");








(function(){
var _1="view-all-friends.xsl";
var _2="recent-friends.xsl";
var _3="accept-invitations.xsl";
var _4="send-request.xsl";
var _5=[];
lconn.profiles.Friending.instance=function(){
this.nDisplayRecentFriends=12;
this.onLoad=function(){
var _6=this.iContext.getiWidgetAttributes();
this.resourceId=_6.getItemValue("resourceId");
generalrs.label_inactive_user_msg=generalrs["label.inactive.user.msg"];
for(rName in generalrs){
if(rName&&generalrs[rName]&&rName.indexOf(".")==-1&&rName.indexOf("/")==-1){
_5.push(rName);
}
}
var _7=this.iContext.getiDescriptor().getItemValue("mode");
var _8="normal";
if(_7=="fullpage"){
_8="maximize";
lconn.profiles.Friending.currentViewDomNode="recent_colleagues_widgetId_fullpage_container";
}else{
lconn.profiles.Friending.currentViewDomNode="recent_colleagues_widgetId_container";
}
document.getElementById(lconn.profiles.Friending.currentViewDomNode).innerHTML+=generalrs.friendsLoading;
var _9="_"+this.iContext.widgetId+"_";
var _6=this.iContext.getiWidgetAttributes();
var _a=_6.getItemValue("profileDisplayedUserKey");
lconn.profiles.Friending.loadWidgetContent(_8,_a,this.iContext);
};
};
lconn.profiles.Friending.AddPageSubTitle=function(_b,_c){
var _d=document.getElementById("pageSubTitle");
if(_d){
var _e=generalrs[_b];
if(!_c){
_e=lconn.profiles.ProfilesCore.replacePlaceHolders(_e,["<span class='vcard'><a href='javascript:void(0);' onclick='lconn.core.WidgetPlacement.reloadOverviewPage()' class='fn url'>"+lconn.core.globalization.bidiUtil.enforceTextDirection(profilesData.displayedUser.displayName)+"</a><span class='x-lconn-userid' style='display: none;'>"+profilesData.displayedUser.userid+"</span></span>"]);
}else{
_e=lconn.profiles.ProfilesCore.replacePlaceHolders(_e,["<span class='vcard'><a href='"+applicationContext+"/html/profileView.do?key="+profilesData.displayedUser.key+"' class='fn url'>"+lconn.core.globalization.bidiUtil.enforceTextDirection(profilesData.displayedUser.displayName)+"</a><span class='x-lconn-userid' style='display: none;'>"+profilesData.displayedUser.userid+"</span></span>"]);
}
_d.innerHTML=_e;
profiles_AddLiveNameSupport("pageSubTitle");
}
};
lconn.profiles.Friending.setItemsPerPage=function(_f,_10){
var _11=findParentForm(_f);
var _12=_11.elements["displayedUserKey"].value;
var _13=0;
var _14=_11.elements["sortBy"].value;
lconn.profiles.Friending.loadFullFriends(_12,_13,_14,_10);
};
lconn.profiles.Friending.pageTo=function(_15,_16){
var _17=findParentForm(_15);
var _18=_17.elements["displayedUserKey"].value;
var _19=_17.elements["items-per-page"].value;
var _1a=_17.elements["sortBy"].value;
var _1b=_17.elements["total-pages"].value;
var _1c=Math.max(0,Math.min(_16,_1b-1));
lconn.profiles.Friending.loadFullFriends(_18,(isNaN(_1c)?0:_1c),_1a,_19);
return false;
};
lconn.profiles.Friending.sortFriends=function(_1d,_1e){
var _1f=findParentForm(_1d);
var _20=_1f.elements["displayedUserKey"].value;
var _21=_1f.elements["items-per-page"].value;
var _22=_1f.elements["current-page"].value;
var _23=null;
if(_1e==null){
_23=lconn_formutilities_getValue(_1d);
}else{
_23=_1e;
}
lconn.profiles.Friending.loadFullFriends(_20,_22,_23,_21);
};
lconn.profiles.Friending.loadWidgetContent=function(_24,_25,_26){
var _27=function(){
var _28=applicationContext+"/atom2/forms/invitations.xml?ui-level=second";
lconn.profiles.ProfilesXSL.loadContent(_28,_3,lconn.profiles.Friending.currentViewDomNode,_5,null,null,true);
profiles_AddLiveNameSupport("accept-invitations-section");
};
var _29=function(_2a){
var _2b=lconn.profiles.ProfilesCore.getLoggedInUserKey();
var _2c=(_2b!=_2a);
var _2d=lconn.profiles.ProfilesCore.loadResourceStrings(null,["friendsInitialMsgForInv","friendsIncludeMsgForInv","friendsSendInvAction","friendsCancelInvAction"]);
_2d.push(["applicationContext",applicationContext]);
var _2e=dojox.data.dom.createDocument("<xml-root ui-level='second' targetKey='"+_2a+"' showInviteUI='"+_2c+"'/>");
lconn.core.xslt.transformAndRender({xmlDoc:_2e,xslDoc:lconn.profiles.ProfilesXSL.getCachedXSL(_4),htmlContainerElemId:lconn.profiles.Friending.currentViewDomNode,aXslParams:_2d});
if(_2b==_2a&&_2a!=null){
lconn.profiles.ProfilesCore.showInfoMsg("profileInfoMsgDiv","error",generalrs.friendsCannotAddYourself,true);
}
};
var _2f=function(_30,_31,_32){
var _33=applicationContext+"/atom2/forms/recentfriends.xml?key="+_30;
var _34=_32.iScope();
_33+=((_34&&_34.nDisplayRecentFriends)?"&pageSize="+_34.nDisplayRecentFriends:"");
try{
lconn.profiles.ProfilesXSL.loadContent(_33,_2,_31,["friendsViewAllFriends","friendsNoFriends","friendsNewInv","friendsNewInvs"],null,_30,true);
profiles_AddLiveNameSupport(lconn.profiles.Friending.currentViewDomNode);
}
catch(exception){
lconn.profiles.ProfilesCore.DefaultErrorHandler("_loadRecentFriends",exception,_31);
}
};
var _35=lconn.profiles.Friending.currentViewDomNode;
if(_24=="maximize"){
var _36=lconn.profiles.ProfilesCore.getParam("action");
if(_36==null||_36=="rc"){
lconn.profiles.Friending.AddPageSubTitle("friendsColleaguesFor",true);
lconn.profiles.Friending.loadFullFriends(_25);
}else{
if(_36=="in"){
lconn.profiles.Friending.AddPageSubTitle("friendsColleaguesFor",true);
_27();
}else{
if(_36=="fr"){
lconn.profiles.Friending.AddPageSubTitle("friendsColleaguesInvite",true);
var _37=lconn.profiles.ProfilesCore.getParam("targetKey");
_29(_25);
}
}
}
}else{
_2f(_25,_35,_26);
}
};
lconn.profiles.Friending.handlePageToEnterKey=function(_38,_39,_3a){
var evt=_38||window.event;
if(evt.keyCode==13){
dojo.stopEvent(evt);
lconn.profiles.Friending.pageTo(_39,_3a);
return false;
}
return true;
};
lconn.profiles.Friending.loadFullFriends=function(_3b,_3c,_3d,_3e){
var _3f=applicationContext+"/atom2/forms/viewallfriends.xml"+"?key="+_3b+"&ui-level=second"+((_3c!=null)?"&pageNumber="+_3c:"")+((_3d!=null)?"&sortBy="+_3d:"")+((_3e!=null)?"&pageSize="+_3e:"")+((bShowEmail)?"&showEmail":"");
var _40=new Array();
_40.push(["showEmail",((bShowEmail)?"true":"false")]);
var _41=_40;
lconn.profiles.ProfilesXSL.loadContent(_3f,_1,lconn.profiles.Friending.currentViewDomNode,_5,_41,_3b,true);
profiles_AddLiveNameSupport("friendsThirdLevel");
lconn.core.utilities.processUntilElementIsFound("friends_mainContentTable",function(){
lconn.core.globalization.bidiUtil.enforceTextDirectionOnPage(dojo.byId("friends_mainContentTable"));
},null,null,false);
};
lconn.profiles.Friending.viewAllColleagues=function(key){
var _42=lconn.profiles.ProfilesCore.getLoggedInUserKey();
var _43=(_42==key);
var url=applicationContext+"/html/networkView.do"+"?widgetId=friends"+"&key="+key+(_43?"&requireAuth=true":"");
profiles_goto(url,true);
};
lconn.profiles.Friending.viewAllInvitations=function(){
var url=applicationContext+"/html/networkView.do"+"?widgetId=friends"+"&action=in"+(self?"&requireAuth=true":"");
profiles_goto(url,true);
};
lconn.profiles.Friending.viewSendRequest=function(_44){
if(dijit.byId("networkInviteDialog")){
lconn.profiles.Friending.showNetworkInvite(_44);
}else{
var url=applicationContext+"/html/wc.do?action=fr&requireAuth=true&widgetId=friends&targetKey="+_44;
profiles_goto(url);
}
};
lconn.profiles.Friending.showNetworkInvite=function(key){
var _45=dijit.byId("networkInviteDialog");
if(_45){
_45.show();
}
};
lconn.profiles.Friending.hideNetworkInvite=function(){
var _46=dijit.byId("networkInviteDialog");
if(_46){
_46.hide();
}else{
if(dojo.byId("networkInviteDialogWindow")){
window.close();
}
}
return false;
};
lconn.profiles.Friending.showColleagues=function(_47,_48){
lconn.profiles.ProfilesCore.hide("invitationsTabContent");
lconn.profiles.ProfilesCore.show("friendsTabContent");
var _49=dojo.byId("friendsTabContent");
if(_49){
var _4a=_49.getAttribute("empty");
if(_4a=="true"||_48){
_49.innerHTML+="<img src='"+applicationContext+"/images/blank.gif' width='500' height='0'/>";
var _4b=applicationContext+"/atom2/forms/viewallfriends.xml?key="+_47;
lconn.profiles.ProfilesXSL.loadContent(_4b,_1,"friendsTabContent",_5,null,_47,true);
_49.setAttribute("empty","false");
}
return true;
}
return false;
};
lconn.profiles.Friending.showInvitations=function(_4c){
lconn.profiles.ProfilesCore.hide("friendsTabContent");
lconn.profiles.ProfilesCore.show("invitationsTabContent");
var _4d=dojo.byId("invitationsTabContent");
if(_4d){
var _4e=_4d.getAttribute("empty");
if(_4e=="true"||_4c){
_4d.innerHTML+="<img src='"+applicationContext+"/images/blank.gif' width='500' height='0'/>";
var _4f=applicationContext+"/atom2/forms/invitations.xml"+"?lastMod="+profilesData.config.profileLastMod;
lconn.profiles.ProfilesXSL.loadContent(_4f,_3,"invitationsTabContent",_5);
_4d.setAttribute("empty","false");
}
window.setTimeout("lconn.profiles.Friending.setFocus('accept_link_1');",1000);
return true;
}
return false;
};
lconn.profiles.Friending.RemoveFriends=function(_50,_51){
if(_50&&_50.tagName.toLowerCase()!=="form"){
_50=findParentForm(_50);
}
var _52="";
dojo.query("input[id^='select_friend_']:checked",_50).forEach(function(_53){
if(_53&&_53.value&&_53.value.length>0){
_52+=_53.value+",";
}
});
if(_52==""){
lconn.profiles.ProfilesCore.showInfoMsg("profileInfoMsgDiv","info",generalrs.friendsSelectFriendForRemoval,true);
return;
}
var _54=applicationContext+"/atom2/forms/friends.xml?connectionIds="+_52+"&lastMod="+profilesData.config.profileLastMod;
lconn.profiles.xhrDelete({url:_54,handleAs:"xml",htmlContainerElemId:lconn.profiles.Friending.currentViewDomNode,error:lconn.profiles.ProfilesCore.DefaultXHRErrorHandler,load:function(_55,_56){
profiles_setProfilesLastMod(_55);
lconn.profiles.Friending.loadFullFriends(_51);
if(_55.documentElement.nodeName=="success"){
lconn.profiles.ProfilesCore.showInfoMsg("profileInfoMsgDiv","confirmation",generalrs.friendsRemoved);
}
},checkAuthHeader:true});
window.setTimeout("lconn.profiles.Friending.setFocus('select_friend_1');",1000);
};
lconn.profiles.Friending.sendFriendRequest=function(_57,_58,_59,_5a){
if(typeof (_5a)=="undefined"){
var _5a="";
}
var _5b=applicationContext+"/atom2/forms/friendrequest"+(_58?"?targetKey="+_58:(_59?"?targetUserId="+_59:"?"))+"&lastMod="+profilesData.config.profileLastMod;
var msg=_57.form.elements["invitation_text"].value;
var _5c=lconn.profiles.ProfilesCore.getLoggedInUserKey();
if(_58&&_5c==_58){
lconn.profiles.ProfilesCore.showInfoMsg("profileInfoMsgDiv","error",generalrs.friendsCannotAddYourself,true);
return false;
}
if(msg!=null&&msg!=""){
}
if(msg.length>500){
var _5d=lconn.profiles.ProfilesCore.replacePlaceHolders(generalrs.friendsYouExceedTextLimit,[msg.length,"500"]);
lconn.profiles.ProfilesCore.showInfoMsg("profileInfoMsgDiv","error",_5d,true);
return false;
}
msg=msg.replace(new RegExp("\\n","g"),"<br/>");
dojo.rawXhrPut({url:_5b,handleAs:"xml",putData:msg,htmlContainerElemId:lconn.profiles.Friending.currentViewDomNode,error:lconn.profiles.ProfilesCore.DefaultXHRErrorHandler,load:function(_5e,_5f){
try{
if(dojo.byId("networkInviteDialogWindow")){
window.close();
}
if(_5e.documentElement.nodeName=="error"&&_5e.documentElement.getAttribute("code")=="connection-exist"){
lconn.profiles.ProfilesCore.showInfoMsg("profileInfoMsgDiv","error",generalrs.friendsInvSent,true);
}else{
if(_5e.documentElement.nodeName=="error"&&_5e.documentElement.getAttribute("code")=="notification-error"){
lconn.profiles.ProfilesCore.showInfoMsg("profileInfoMsgDiv","error",generalrs.errorDefaultMsg2,true);
}else{
if(_5e.documentElement.nodeName=="error"||_5e.documentElement.nodeName=="parsererror"){
lconn.profiles.ProfilesCore.DefaultXHRErrorHandler(_5e,_5f);
}else{
profiles_setProfilesLastMod(_5e);
if(_5a){
if(_5a=="back"){
profiles_goBack();
}else{
profiles_goto(_5a);
}
}
}
}
}
}
catch(exception){
lconn.profiles.ProfilesCore.DefaultErrorHandler("WidgetMgmt.loadWidgets",exception,"invitation");
}
}});
};
lconn.profiles.Friending.acceptFriendRequest=function(_60,_61,_62){
var _63=applicationContext+"/atom2/forms/acceptrequest?connectionId="+_60+"&lastMod="+profilesData.config.profileLastMod;
lconn.profiles.Friending.FriendRequestAction(_63,_60,_61,_62);
};
lconn.profiles.Friending.rejectFriendRequest=function(_64,_65,_66){
var _67=applicationContext+"/atom2/forms/rejectrequest?connectionId="+_64+"&lastMod="+profilesData.config.profileLastMod;
lconn.profiles.Friending.FriendRequestAction(_67,_64,_65,_66);
};
lconn.profiles.Friending.FriendRequestAction=function(_68,_69,_6a,_6b){
if(typeof (_6b)=="function"){
_callback=_6b;
}else{
_callback=function(_6c,_6d){
try{
profiles_setProfilesLastMod(_6c);
var _6e=document.getElementById("friendsTabContent");
_6e.setAttribute("empty","true");
_6e=document.getElementById("invitationsTabContent");
_6e.setAttribute("empty","true");
if(_6a!=null){
lconn.profiles.Friending.showInvitations();
}
}
catch(exception){
lconn.profiles.ProfilesCore.DefaultErrorHandler("lconn.profiles.Friending.FriendRequestAction",exception,lconn.profiles.Friending.currentViewDomNode);
}
};
}
lconn.profiles.xhrPost({url:_68,handleAs:"xml",htmlContainerElemId:lconn.profiles.Friending.currentViewDomNode,error:lconn.profiles.ProfilesCore.DefaultXHRErrorHandler,load:_callback,checkAuthHeader:true});
};
lconn.profiles.Friending.setFocus=function(_6f){
var _70=document.getElementById(_6f);
if(_70){
_70.focus();
}else{
_70=document.getElementById("friends_count");
if(_70){
_70.focus();
}
}
};
lconn.profiles.Friending.showAllCommonFriends=function(_71){
dojo.query(".lotusHidden","friendsInCommon_div_"+_71).forEach(function(_72,_73,arr){
dojo.removeClass(_72,"lotusHidden");
});
dojo.addClass("frindsInCommonShowAll_div_"+_71,"lotusHidden");
};
})();
}


;if(!dojo._hasResource["lconn.profiles.ReportingStructure"]){
dojo._hasResource["lconn.profiles.ReportingStructure"]=true;
dojo.provide("lconn.profiles.ReportingStructure");








var profiles_reportChainXSLT="report-chain.xsl";
var bidiUtil=lconn.core.globalization.bidiUtil;
function profiles_loadReportChain(_1,_2,_3){
var _4=applicationContext+"/atom/forms/reportingChain.do?key="+_1;
var _5=new Array;
if(typeof (_3)=="string"){
_3=parseInt(_3);
}
_5.push(["numberOfNameToDisplay",_3]);
_5.push(["bidiIsRTL",profiles_isBidiRTL]);
lconn.profiles.ProfilesXSL.loadContent(_4,profiles_reportChainXSLT,_2,["label_profile_otherviews_reportingstructure","label_profile_otherviews_samemanager","label_profile_otherviews_peoplemanaged"],_5,null,true);
profiles_AddLiveNameSupport("report-chain-sub");
lconn.core.utilities.processUntilAvailable(function(){
try{
var _6=function(_7){
var _8="";
var _9=dojo.query("a",_7);
if(_9.length==0){
_9=dojo.query("div",_7);
}
if(_9.length>0){
_8=bidiUtil.enforceTextDirection(_9[0].innerHTML);
}
return _8;
};
dojo.query("li","report-chain-sub").forEach(function(_a,_b,_c){
if(_b>_c.length-2){
return;
}
var _d=generalrs["reportStructureNameLabel"]||"${0}, manager of ${1}";
var _e=profiles_isBidiRTL?"rtl":"ltr";
_d=bidiUtil.enforceTextDirection(dojo.string.substitute(_d,[_6(_a),_6(_c[_b+1])]),_e);
dojo.query("a",_a).attr({"aria-label":_d,"title":_d});
});
bidiUtil.enforceTextDirectionOnPage("report-chain-sub");
}
catch(ee){
console.error(ee);
}
},"dojo.query(\"li\", \"report-chain-sub\").length > 0",null,false);
};
var lastActionParams_={};
var showManagementAction=function(_f,_10){
dojo.forEach(_f,function(x){
_f[x]=encodeURIComponent(_f[x]);
});
var _11=dojo.queryToObject(((location.href+"?").split("?"))[1]);
_11=dojo.mixin(_11,lastActionParams_);
var _12=dojo.mixin(_11,_f);
var _13;
if(_12.subAction=="sameManager"){
_13="rptChainSameMgr_li";
_12.appAction="profileSameManager";
}else{
if(_12.subAction=="peopleManaged"){
_13="rptChainPeopleMged_li";
_12.appAction="profilePeopleManaged";
}else{
_13="rptChain_li";
_12.appAction="profileFullReportToChain";
}
}
lastActionParams_=_12;
profilesRptStructure_menuSelect(_13);
var _14=applicationContext+"/html/"+_12.appAction+".do?"+dojo.objectToQuery(_12);
var _15="reportStructureArea";
var _16=dojo.byId(_15);
_16.innerHTML=generalrs.reportStructureLoading;
setTimeout(function(){
lconn.profiles.xhrGet({url:_14,htmlContainerElemId:"reportStructureArea",error:lconn.profiles.ProfilesCore.DefaultXHRErrorHandler,load:function(_17,_18){
_16.innerHTML=_17;
dojo.query("script",_16).forEach(function(_19){
try{
if(_19.innerHTML.length>0){
dojo.eval(_19.innerHTML);
}
}
catch(ee){
console.error(ee);
}
});
profiles_AddLiveNameSupport("rptStructTable");
if(typeof _10==="function"){
_10(lastActionParams_);
}
},checkAuthHeader:true});
},10);
return false;
};
}


;if(!dojo._hasResource["lconn.profiles.SocialTags"]){
dojo._hasResource["lconn.profiles.SocialTags"]=true;
dojo.provide("lconn.profiles.SocialTags");












var profiles_tagsXSLT="tags.xsl";
var socialTagsIContext=null;
function profiles_loadTags(_1,_2,_3,_4){
var _5=dijit.byId("socialTagName");
if(_5!=null){
_5.destroy();
}
socialTagsIContext=_3;
var _6=applicationContext+"/atom/forms/profileTags.do?targetKey="+_1+"&format=full";
if(lconn.profiles.ProfilesCore.isUserLoggedIn()){
_6+="&flagByKey="+lconn.profiles.ProfilesCore.getLoggedInUserKey();
}
if(typeof (profilesData.config.appChkSum)!="undefined"){
_6+=("&acs="+profilesData.config.appChkSum);
}
lconn.core.widgetUtils.handleRefresh(_6,_3);
var _7=["socialTagsAddTags","socialTagsNoTags","socialTagsYouTagged","socialTagsViewAs","socialTagsList","socialTagsTagCloud","socialTagsAddTagsAltText","socialTagsRemoveTagsAltText","socialTagsListAltText","socialTagsTagCloudAltText","socialTagsPeople","socialTagsPerson","socialTagsTaggedBy","socialTagsWhoTagged","socialTagsWhoTaggedMulti","socialTagsAddedBy"];
var _8=new Array();
_8.push(["defaultView",((dojo.cookie("profiles.socialTags.view")=="list")?"list":"cloud")]);
var _9=_8;
lconn.profiles.ProfilesXSL.loadContent(_6,profiles_tagsXSLT,_2,_7,_9,_1,true);
if(lconn.profiles.ProfilesCore.isUserLoggedIn()){
lconn.core.utilities.processUntilElementIsFound("add-tag-view",function(){
var _a=dijit.byId("socialTagName");
if(_a==null){
dojo.parser.parse(dojo.byId("add-tag-view"));
_a=dijit.byId("socialTagName");
}
_a.hintText=generalrs.socialTagsAddTagsAltText;
_a.updateHintText();
try{
if(typeof _4==="string"){
_4=dojo.byId(_4);
}
_4.focus();
}
catch(e){
}
profiles_checkSearchTagsPermissions();
},null,null,false);
}
lconn.core.utilities.processUntilElementIsFound("tagCloud",function(){
var _b=dojo.byId("tagCloud");
if(typeof (_b)!="undefined"&&_b!=null){
lconn.core.TagSlider.showTagVis(0,"tagCloud");
}
lconn.core.globalization.bidiUtil.enforceTextDirectionOnPage(dojo.byId("socialTags"));
profiles_checkSearchTagsPermissions();
},null,null,false);
};
function profiles_showTagCloud(){
lconn.profiles.ProfilesCore.hide("tagsList");
lconn.profiles.ProfilesCore.hide("tagsYouAddedView");
lconn.profiles.ProfilesCore.show("tagCloud");
setTimeout(function(){
try{
var el=document.getElementById("tagListActionBt");
if(el!=null){
el.focus();
}
}
catch(e){
}
},1);
dojo.cookie("profiles.socialTags.view","cloud",{expires:9999});
};
function profiles_showTagList(){
lconn.profiles.ProfilesCore.hide("tagCloud");
lconn.profiles.ProfilesCore.show("tagsYouAddedView");
lconn.profiles.ProfilesCore.show("tagsList");
setTimeout(function(){
try{
var el=document.getElementById("tagCloudActionBt");
if(el!=null){
el.focus();
}
}
catch(e){
}
},1);
dojo.cookie("profiles.socialTags.view","list",{expires:9999});
};
lconn.profiles.SocialTags.saveNewTag=function(_c,_d){
var _e=findParentForm(_d).elements["socialTagName"].value;
if(_e!=null&&_e!=""&&_e!=generalrs.socialTagsAddTagsAltText){
_e=profiles_cleanupTag(_e);
profiles_putTags(_c,profiles_getCurrentTagsCSV(_e));
document.getElementById("social_tags").innerHTML=generalrs.socialTagsLoading;
dojo.attr("social_tags",{"role":"alert"});
}
};
function profiles_removeTag(_f,_10){
_10=profiles_cleanupTag(_10);
if(_10!=null&&_10!=""){
profiles_putTags(_f,profiles_getCurrentTagsCSV("",_10));
document.getElementById("social_tags").innerHTML=generalrs.socialTagsLoading;
dojo.attr("social_tags",{"role":"alert"});
}
};
function profiles_deleteInstancesOfTagForSelf(_11,_12){
_12=encodeURIComponent(_12);
if(_12!=null&&_12!=""&&_11==lconn.profiles.ProfilesCore.getLoggedInUserKey()){
var _13=applicationContext+"/atom/forms/profileTags.do?targetKey="+_11+"&tag="+_12;
lconn.profiles.xhrDelete({url:_13,load:function(res,_14){
profilesData.config.profileLastMod=new Date().getTime();
profiles_loadTags(_11,"socialTags_widgetId_container",socialTagsIContext);
return res;
},checkAuthHeader:true});
document.getElementById("social_tags").innerHTML=generalrs.socialTagsLoading;
}
};
function profiles_getCurrentTagsCSV(_15,_16){
if(typeof (_15)=="undefined"){
_15="";
}
if(typeof (_16)=="undefined"){
_16="";
}
var _17=new Array;
var ul=document.getElementById("tagsList");
if(ul!=null){
var _18=ul.getElementsByTagName("a");
if(typeof (_18.length)!="undefined"){
for(var i=0;i<_18.length;++i){
if(_18[i].className.indexOf("profileTag")!=-1&&_18[i].getAttribute("flagged")=="true"){
var t=_18[i].innerText;
if(t==undefined){
t=_18[i].textContent;
}
t=profiles_cleanupTag(t);
if(_16!=""&&t==_16){
continue;
}
_17.push(t);
}
}
}
}
var _19=_15.split(new RegExp("[, \u3000]{1}","g"));
_17=_17.concat(_19);
return _17;
};
function profiles_putTags(_1a,_1b){
var _1c="<app:categories xmlns:atom='http://www.w3.org/2005/Atom' xmlns:app='http://www.w3.org/2007/app' xmlns:snx='http://www.ibm.com/xmlns/prod/sn'>";
for(var i=0;i<_1b.length;++i){
if(_1b[i]!=null&&_1b[i]!=""){
_1c+="<atom:category term=\""+_1b[i]+"\"/>";
}
}
_1c+="</app:categories>";
var _1d=applicationContext+"/atom/forms/profileTags.do?targetKey="+_1a+"&sourceKey="+lconn.profiles.ProfilesCore.getLoggedInUserKey();
lconn.profiles.xhrPut({url:_1d,putData:_1c,load:function(res,_1e){
profilesData.config.profileLastMod=new Date().getTime();
profiles_loadTags(_1a,"socialTags_widgetId_container",socialTagsIContext,"addTagButtonId");
return res;
},checkAuthHeader:true});
};
function profiles_cleanupTag(tag){
var _1f=tag;
_1f=_1f.replace(/&/g,"&amp;");
_1f=_1f.replace(/"/g,"&quot;");
_1f=_1f.replace(/'/g,"&apos;");
_1f=_1f.replace(/</g,"&lt;");
_1f=_1f.replace(/>/g,"&gt;");
return _1f;
};
function profiles_canSearchTags(){
var ok=false;
try{
if(dojo.exists("profilesData.loggedInUser.enabledPermissions")){
for(var ii=0;ii<profilesData.loggedInUser.enabledPermissions.length;ii++){
if(profilesData.loggedInUser.enabledPermissions[ii]=="profile.search$profile.search.view"){
ok=true;
break;
}
}
}
}
catch(e){
}
return ok;
};
function profiles_checkSearchTagsPermissions(){
if(!profiles_canSearchTags()){
try{
dojo.query("a[onclick^=\"profiles_searchTag\"]",dojo.byId("social_tags")).attr("aria-disabled","true");
}
catch(e){
}
}
};
function profiles_searchTag(tag){
if(profiles_canSearchTags()){
var url=applicationContext+"/html/simpleSearch.do?profileTags="+encodeURIComponent(tag)+"&lang="+appLang+"&isSimpleSearch=true";
profiles_goto(url,true);
}
};
function profiles_goToProfile(_20){
var url=applicationContext+"/html/profileView.do?key="+_20+"&lang="+appLang;
profiles_goto(url);
};
}


;if(!dojo._hasResource["lconn.profiles.MultiFeedReader"]){
dojo._hasResource["lconn.profiles.MultiFeedReader"]=true;
dojo.provide("lconn.profiles.MultiFeedReader");




(function(){
var _1=[];
lconn.profiles.MultiFeedReader.loadWidgetContent=function(_2){
var _3=function(_4){
var _5=_4.indexOf("{");
var _6=_4.indexOf("SvcRef}");
var _7=null;
if(_5!=-1&&_6!=-1){
_7=_4.substring(_5+1,_6);
if(WidgetPlacementConfig.availableServices[_7]==true){
return true;
}else{
return false;
}
}
return true;
};
var _8=function(_9){
var _a=null;
for(var i=0;i<_1.length;i++){
lconn.profiles.ProfilesCore.hide(_1[i].name+"FeedContentContainer");
dojo.removeClass(dojo.byId(_1[i].name+"MultiFeedReaderTab"),"lotusSelected");
if(_1[i].name==_9){
_a=_1[i];
}
}
lconn.profiles.ProfilesCore.show(_9+"FeedContentContainer");
var _b=dojo.byId(_9+"MultiFeedReaderTab");
dojo.addClass(_b,"lotusSelected");
if(_b&&_b.getAttribute("loaded")!="true"){
_c(_a);
_b.setAttribute("loaded","true");
}
};
var _d=function(_e,_f,_10,_11){
var _12=document.getElementById("multiFeedReaderLotusTabs");
var li=document.createElement("li");
li.id=_e+"MultiFeedReaderTab";
if(_11){
li.className="lotusFirst ";
}
if(_10){
li.className+="lotusSelected";
li.setAttribute("loaded","true");
}
var _13=generalrs[_f];
if(_13.indexOf("{0}")>-1&&dojo.exists("profilesData.displayedUser.displayName")){
_13=_13.replace("{0}",profilesData.displayedUser.displayName);
}
var a=document.createElement("a");
a.id="a"+li.id;
a.href="javascript:void(0);";
a.onclick=function(){
_8(_e);
};
_14("stringT: "+_13);
a.appendChild(document.createTextNode(_13));
li.appendChild(a);
_12.appendChild(li);
dojo.attr(dojo.byId(a.id),{role:"tab"});
};
var _15=function(_16,_17){
_14("svcName: "+_16);
var _18=document.getElementById("multiFeedReaderContentContainer");
var div=document.createElement("div");
div.id=_16+"FeedContentContainer";
if(!_17){
div.style.display="none";
div.style.visibility="hidden";
}
var _19=generalrs.widgetLoading;
div.appendChild(document.createTextNode(_19));
_18.appendChild(div);
};
var _c=function(_1a){
var _1b=_1a.url;
var _1c=_1a.alternateUrl||"";
var _1d=_1a.name+"FeedContentContainer";
var _1e=lconn.profiles.ProfilesCore.getProxifiedURL(_1b);
var _1f=["multiFeedReaderSeeAllFeeds","multiFeedReaderNoFeeds","multiFeedReaderUpdatedBy","multiFeedReaderCreatedBy"];
var _20=new Array;
_20.push(["containerId",_1d]);
_20.push(["alternateUrl",_1c]);
_20.push(["blankGif",(dojo.config.blankGif||dojo.moduleUrl("dojo","resources/blank.gif?etag=20150310.220517")).toString()]);
var _21={dataObj:null,noContent:false};
var _22=function(){
if(_21.noContent){
dojo.byId(_1d).innerHTML=generalrs.multiFeedReaderNoFeeds;
}else{
lconn.profiles.ProfilesCore.loadContentObj(_21.dataObj,xsltPath+"/multifeedreader/feedreader.xsl",_1d,_1f,_20);
var _23=function(){
if(dojo.registerModulePath){
dojo.registerModulePath("lconn.core",applicationContext+"/js_build/lconn/core");
}
dojo.requireLocalization("dojo.cldr","gregorian");
dojo.requireLocalization("lconn.core","strings");
var _24=_1d+"FeedTableContainer";
var _25=document.getElementById(_24);
var _26=_25.getElementsByTagName("span");
for(var i=0;_26!=null&&i<_26.length;i++){
var _27=_26[i];
if(_27.getAttribute("lcNodeType")=="AtomFeedDate"){
try{
var _28=lconn.core.DateUtil.AtomDateToString(_27.innerHTML);
_27.innerHTML=_28;
}
catch(exception){
}
}
}
profiles_AddLiveNameSupport(_24);
};
processUntilElementIsFound(_1d+"FeedTableContainer",_23,null,null,false);
}
};
lconn.profiles.xhrGet({sync:false,url:_1e,handleAs:"text",expectedContentType:"xml",load:function(_29,_2a){
_21.dataObj=lconn.core.xslt.loadXmlString(_29);
_22();
},error:function(_2b,_2c){
if(_2c.xhr.status==404){
_21.noContent=true;
}else{
if(_2c.xhr.status==400&&_2c.args.url.indexOf("service/atom/communities")!=-1){
_21.noContent=true;
}else{
lconn.profiles.ProfilesCore.DefaultXHRErrorHandler(_2b,_2c);
}
}
_22();
}});
};
var _14=function(_2d){
if(window.debugWidgets){
console.log(_2d);
}
};
var _2e=function(_2f,_30){
var _31=document.getElementById(_2f);
if(_31){
var li=document.createElement("li");
li.className="lotusFirst";
li.appendChild(document.createTextNode(_30));
_31.appendChild(li);
}
};
var _32=_2.getiWidgetAttributes();
var _33=_32.getAllNames();
_1=[];
for(var i=0;_33!=null&&i<_33.length;i++){
var _34=_33[i];
var idx=_34.indexOf("FeedUrl");
if(idx!=-1){
var _35=_32.getItemValue(_34);
if(_3(_35)){
var _36=_34.substring(0,idx);
var _37={name:_36,url:_35,resourceId:_32.getItemValue(_36+"ResourceId"),eval:_32.getItemValue(_36+"Eval"),alternateUrl:_32.getItemValue(_36+"FeedAlternateUrl")};
var yn=true;
if(_37.eval){
try{
yn=false;
eval("yn = ("+_37.eval+")");
}
catch(e){
}
}
if(yn){
_1.push(_37);
}
}
}
}
if(_1.length>0){
for(var i=0;i<_1.length;i++){
var _38=(i==0);
var _37=_1[i];
if(_38){
_2e("multiFeedReaderLotusTabs",generalrs["multiFeedReaderShow"]);
}
_d(_37.name,_37.resourceId,_38,_38);
_15(_37.name,_38);
}
_c(_1[0]);
}else{
_2e("multiFeedReaderLotusTabs",generalrs["multiFeedReaderNoFeeds"]);
}
if(lconn.core.aria&&typeof (lconn.core.aria.TabPanel)=="function"){
new lconn.core.aria.TabPanel("multiFeedReaderLotusTabs");
}
};
})();
}


;if(!dojo._hasResource["lconn.profiles.LinkRoll"]){
dojo._hasResource["lconn.profiles.LinkRoll"]=true;
dojo.provide("lconn.profiles.LinkRoll");




var profiles_linkrollXSLT="linkroll.xsl";
var profiles_addlinkXSLT="add-link.xsl";
var bidiUtil=lconn.core.globalization.bidiUtil;
function profiles_loadLinkRoll(_1,_2){
document.getElementById(_2).innerHTML=generalrs.linkRollLoading;
document.getElementById(_2).setAttribute("aria-busy","true");
var _3=applicationContext+"/atom2/forms/linkroll.xml?userKey="+encodeURIComponent(_1);
var _4=new Array;
if(WidgetPlacementConfig.availableServices["dogear"]){
_4.push(["dogearEnabled","true()"]);
_4.push(["dogear",WidgetPlacementConfig.params["dogearSvcRef"]]);
}
lconn.profiles.ProfilesXSL.loadContent(_3,profiles_linkrollXSLT,_2,["linkRollAddLink","linkRollNoLinks","linkRollAddLinkAltText","linkRollRemoveLinkAltText"],_4,_1,true);
var _5=dojo.byId(_2);
if(_5){
if(dojo.hasAttr(_5,"profile_widget_already_loaded")){
lconn.core.utilities.processUntilElementIsFound("addLinkLinkRollButton",function(){
var a=dojo.byId("addLinkLinkRollButton");
if(a){
a.focus();
}
},null,null,false,500,5);
}else{
dojo.attr(_5,{"profile_widget_already_loaded":"true"});
}
dojo.attr(_5,{"aria-busy":"false"});
lconn.core.utilities.processUntilElementIsFound("addLinkLinkRollButton",function(){
bidiUtil.enforceTextDirectionOnPage(dojo.byId("linkrollcontent"));
},null,null,false,500,5);
}
};
function profiles_displayAddLinkUI(_6){
var _7=lconn.profiles.ProfilesCore.loadResourceStrings(null,["linkRollName","linkRollLink","linkRollSave","linkRollCancel","linkRollRequired"]);
_7.push(["applicationContext",applicationContext]);
var _8=dojox.data.dom.createDocument("<user-info displayedUserKey='"+_6+"'/>");
lconn.core.xslt.transformAndRender({xmlDoc:_8,xslDoc:lconn.profiles.ProfilesXSL.getCachedXSL(profiles_addlinkXSLT),htmlContainerElemId:"add-link-view",aXslParams:_7});
document.forms["add-link"].elements["name"].focus();
document.forms["add-link"].elements["name"].select();
var _9=document.forms["add-link"];
dojo.addClass(_9.elements["name"],"bidiAware");
dojo.addClass(_9.elements["url"],"bidiSTT_URL");
bidiUtil.enforceTextDirectionOnPage(_9);
};
function profiles_cleanupLinkName(_a){
var _b=_a;
_b=_b.replace(/&/g,"&amp;");
_b=_b.replace(/"/g,"&quot;");
_b=_b.replace(/'/g,"&apos;");
_b=_b.replace(/</g,"&lt;");
_b=_b.replace(/>/g,"&gt;");
return _b;
};
function profiles_saveNewLink(_c,_d){
var _e=_c.form;
var _f=[_e.elements["name"],_e.elements["url"]];
var _10=[];
dojo.forEach(_f,function(f){
if(f&&typeof f.value!="undefined"&&(f.value==null||f.value=="")){
dojo.attr(f,"aria-invalid","true");
_10.push(f);
}else{
dojo.removeAttr(f,"aria-invalid");
}
});
if(_10.length>0){
try{
_10[0].focus();
}
catch(ee){
}
lconn.profiles.ProfilesCore.showAlert(generalrs.linkRollNameOrLinkCannotBeEmpty);
return;
}
bidiUtil.stripSpecialCharacters(_e);
var _11=profiles_cleanupLinkName(_e.elements["name"].value);
var url=_e.elements["url"].value;
if(url.indexOf("http://")!=0&&url.indexOf("https://")!=0&&url.indexOf("ftp://")!=0&&url.indexOf("Notes://")!=0&&url.indexOf("mailto:")!=0&&url.indexOf("file:/")!=0){
url="http://"+url;
}
var _12=applicationContext+"/atom2/forms/linkroll.xml"+"?lastMod="+profilesData.config.profileLastMod;
var _13=profiles_buildLinkXml(_11,url);
lconn.profiles.xhrPut({url:_12,putData:profiles_buildLinkXml(_11,url),htmlContainerElemId:"linkrollcontent",error:lconn.profiles.ProfilesCore.DefaultXHRErrorHandler,load:function(_14,_15){
profilesData.config.profileLastMod=new Date().getTime();
profiles_loadLinkRoll(_d,"linkrollcontent");
var el=dojo.byId("profileInfoMsgDiv");
if(el){
lconn.profiles.ProfilesCore.showInfoMsg(el,"confirmation",generalrs.linkRollLinkAdded);
}
},checkAuthHeader:true});
return false;
};
function profiles_removeLink(_16,url,_17){
if(_17==null||_17==""){
if(window.console){
console.error("profiles_removeLink: userKey cannot be null");
}
return;
}
var _18=applicationContext+"/atom2/forms/linkroll.xml?action=delete"+"&lastMod="+profilesData.config.profileLastMod;
_16=profiles_cleanupLinkName(_16);
var _19=profiles_buildLinkXml(_16,url);
lconn.profiles.xhrPut({url:_18,putData:_19,htmlContainerElemId:"linkrollcontent",error:lconn.profiles.ProfilesCore.DefaultXHRErrorHandler,load:function(_1a,_1b){
profilesData.config.profileLastMod=new Date().getTime();
profiles_loadLinkRoll(_17,"linkrollcontent");
var el=dojo.byId("profileInfoMsgDiv");
if(el){
lconn.profiles.ProfilesCore.showInfoMsg(el,"confirmation",generalrs.linkRollLinkRemoved);
}
}});
return false;
};
function profiles_buildLinkXml(_1c,url){
var _1d=function(str){
return str.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;");
};
var _1e="<?xml version=\"1.0\" encoding=\"UTF-8\"?>";
_1e+="<linkroll xmlns=\"http://www.ibm.com/xmlns/prod/sn/profiles/ext/profile-links\" xmlns:snx=\"http://www.ibm.com/xmlns/prod/sn/profiles/ext/profile-links\">";
_1e+="<link name=\""+_1c+"\"";
_1e+=" url=\""+_1d(encodeURI(url));
_1e+="\"/></linkroll>";
return _1e;
};
function profiles_cancelAddLink(){
document.getElementById("add-link-view").innerHTML="";
document.getElementById("addLinkLinkRollButton").focus();
};
}


;if(!dojo._hasResource["lconn.profiles.PhotoCrop"]){
dojo._hasResource["lconn.profiles.PhotoCrop"]=true;
dojo.provide("lconn.profiles.PhotoCrop");


lconn.profiles.PhotoCrop.Cropper=function(_1){
this.drag=new Object();
this.oldPos;
this.mouseStart;
this.crop=true;
this.containerEdges=null;
this.boxParent=null;
this.correctionFactor;
this.isDebug=false;
this.divCropper=null;
this.div1=null;
this.img1=null;
this.cDiv=null;
this.cImg=null;
this.nwDiv=null;
this.neDiv=null;
this.swDiv=null;
this.seDiv=null;
this.box=null;
this.RESIZABLE_EDGE_SIZE=4;
this.CORNER_SIZE=15;
this.FRAME_SIZE={x:300,y:300};
this.MIN_DIMENSION=25;
this.FORCE_SQUARE=true;
this.CROPPER={x:155,y:155,top:((this.FRAME_SIZE.y-155)/2),left:((this.FRAME_SIZE.x-155)/2),border:{active:{width:3,style:"solid",color:"black"},inactive:{width:3,style:"dotted",color:"gray"}}};
this.photoFileName=null;
this.init=function(_2,_3,_4){
if(typeof (_3)=="object"&&_3.x&&_3.y){
this.FRAME_SIZE.x=(_3.x?_3.x:this.FRAME_SIZE.x);
this.FRAME_SIZE.y=(_3.y?_3.y:this.FRAME_SIZE.y);
}
if(typeof (_4)=="object"){
this.CROPPER.x=(_4.x?_4.x:this.CROPPER.x);
this.CROPPER.y=(_4.y?_4.y:this.CROPPER.y);
this.CROPPER.top=(_4.top?_4.top:this.CROPPER.top);
this.CROPPER.left=(_4.left?_4.left:this.CROPPER.left);
}
this.divCropper=dojo.byId(_2);
this.div1=document.createElement("div");
this.div1.id="imgPreviewContainer";
this.img1=document.createElement("img");
this.img1.id="backgroundImg";
this.img1.src="";
this.img1.width=this.FRAME_SIZE.x;
this.img1.height=this.FRAME_SIZE.y;
this.cDiv=document.createElement("div");
this.cDiv.id="cropperBox";
this.cImg=document.createElement("img");
this.cImg.id="cropperImg";
this.cImg.src="";
this.cImg.width=this.FRAME_SIZE.x;
this.cImg.height=this.FRAME_SIZE.y;
this.nwDiv=document.createElement("div");
this.neDiv=document.createElement("div");
this.swDiv=document.createElement("div");
this.seDiv=document.createElement("div");
this.resetImage(true);
this.cDiv.appendChild(this.cImg);
var _5=this.CROPPER.top+this.CROPPER.border.inactive.width;
var _6=this.CROPPER.left+this.CROPPER.border.inactive.width;
dojo.style(this.cImg,{position:"absolute",top:"-"+_5+"px",left:"-"+_6+"px"});
this.div1.appendChild(this.img1);
dojo.style(this.img1,{position:"relative",display:"block",margin:"0px",padding:"0px",opacity:"1"});
this.div1.appendChild(this.cDiv);
dojo.style(this.cDiv,{left:this.CROPPER.left+"px",top:this.CROPPER.top+"px",width:this.CROPPER.x+"px",height:this.CROPPER.y+"px",position:"absolute",overflow:"hidden","float":"left",padding:"0px","border":this.CROPPER.border.inactive.width+"px "+this.CROPPER.border.inactive.style+" "+this.CROPPER.border.inactive.color,cursor:"move"});
this.div1.appendChild(this.nwDiv);
dojo.style(this.nwDiv,{cursor:"nw-resize",opacity:"0.5",position:"absolute",width:"0px",height:"0px",background:"#D8DFEA",padding:"0px",margin:"0px",left:"0px",top:"0px"});
this.div1.appendChild(this.neDiv);
dojo.style(this.neDiv,{cursor:"ne-resize",opacity:"0.5",position:"absolute",width:"0px",height:"0px",background:"#D8DFEA",padding:"0px",margin:"0px",left:"0px",top:"0px"});
this.div1.appendChild(this.swDiv);
dojo.style(this.swDiv,{cursor:"sw-resize",opacity:"0.5",position:"absolute",width:"0px",height:"0px",background:"#D8DFEA",padding:"0px",margin:"0px",left:"0px",top:"0px"});
this.div1.appendChild(this.seDiv);
dojo.style(this.seDiv,{cursor:"se-resize",opacity:"0.5",position:"absolute",width:"0px",height:"0px",background:"#D8DFEA",padding:"0px",margin:"0px",left:"0px",top:"0px"});
this.setCorners(this.CROPPER.top,this.CROPPER.left,this.CROPPER.x,this.CROPPER.y);
this.divCropper.appendChild(this.div1);
dojo.style(this.div1,{position:"relative",padding:"0px",background:"black",visibility:"hidden",margin:"0px auto",display:"block",zoom:1,width:this.FRAME_SIZE.x+"px",height:this.FRAME_SIZE.y+"px"});
this.setBox(this.cDiv);
},this.resetImage=function(_7){
this.cImg.src="";
this.img1.src="";
var _8=applicationContext+"/html/tempPhoto.do?lang="+appLang+"&resize=true&xsize="+this.FRAME_SIZE.x+"&ysize="+this.FRAME_SIZE.y+"&time="+(new Date()).getTime();
this.cImg.src=_8;
this.img1.src=_8;
if(_7){
this.crop=false;
this.active=false;
dojo.style(this.cDiv,{"border":this.CROPPER.border.inactive.width+"px "+this.CROPPER.border.inactive.style+" "+this.CROPPER.border.inactive.color});
dojo.style(this.img1,{"opacity":"1"});
}
},this.reset=function(){
this.drag=new Object();
document.body.style.cursor="default";
document.onmousemove=this.mouseMovePointer;
},this.display=function(){
dojo.removeClass(this.divCropper,"lotusHidden");
},this.hide=function(){
dojo.addClass(this.divCropper,"lotusHidden");
},this.pxToInt=function(_9){
if(_9!=""){
var _a=/(\d+)\D*/;
return +_a.exec(_9)[1];
}else{
return 0;
}
},this.getContainerEdges=function(_b){
var _c={left:0,top:0};
var _d=_b;
while(_d){
_c.left+=_d.offsetLeft;
_c.top+=_d.offsetTop;
_d=_d.offsetParent;
}
_c.right=_c.left+this.pxToInt(_b.style.width);
_c.bottom=_c.top+this.pxToInt(_b.style.height);
return _c;
},this.getEdges=function(_e){
var _f=new Object();
if(_e.x<this.left()-this.RESIZABLE_EDGE_SIZE||_e.y<this.top()-this.RESIZABLE_EDGE_SIZE||_e.x>this.right()+this.RESIZABLE_EDGE_SIZE||_e.y>this.bottom()+this.RESIZABLE_EDGE_SIZE){
_f.outside=true;
}else{
if(_e.x>this.left()+this.RESIZABLE_EDGE_SIZE&&_e.y>this.top()+this.RESIZABLE_EDGE_SIZE&&_e.x<this.right()-this.RESIZABLE_EDGE_SIZE&&_e.y<this.bottom()-this.RESIZABLE_EDGE_SIZE){
_f.move=true;
}else{
_f.E=Math.abs(_e.x-this.right())<=this.RESIZABLE_EDGE_SIZE;
_f.W=Math.abs(_e.x-this.left())<=this.RESIZABLE_EDGE_SIZE;
_f.N=Math.abs(_e.y-this.top())<=this.RESIZABLE_EDGE_SIZE||(Math.abs(_e.y-this.top())<this.CORNER_SIZE&&(_f.E||_f.W));
_f.S=!_f.N&&(Math.abs(_e.y-this.bottom())<=this.RESIZABLE_EDGE_SIZE||(Math.abs(_e.y-this.bottom())<this.CORNER_SIZE&&(_f.E||_f.W)));
_f.E=_f.E||(Math.abs(_e.x-this.right())<this.CORNER_SIZE&&(_f.N||_f.S));
_f.W=!_f.E&&(_f.W||(Math.abs(_e.x-this.left())<this.CORNER_SIZE&&(_f.N||_f.S)));
}
}
return _f;
},this.left=function(){
return this.pxToInt(this.box.style.left);
},this.right=function(){
return this.pxToInt(this.box.style.left)+this.pxToInt(this.box.offsetWidth);
},this.top=function(){
return this.pxToInt(this.box.style.top);
},this.bottom=function(){
return this.pxToInt(this.box.style.top)+this.pxToInt(this.box.offsetHeight);
},this.styleRight=function(){
return this.pxToInt(this.box.style.left)+this.pxToInt(this.box.style.width);
},this.styleBottom=function(){
return this.pxToInt(this.box.style.top)+this.pxToInt(this.box.style.height);
},this.mouseCoords=function(ev){
ev=ev||window.event;
var _10;
if(ev.pageX!=null){
_10={x:ev.pageX-this.containerEdges.left,y:ev.pageY-this.containerEdges.top};
if(this.isDebug){
console.debug("photoCropper:\n"+"X: "+ev.pageX+" - "+this.containerEdges.left+" = "+_10.x+"\n"+"Y: "+ev.pageY+" - "+this.containerEdges.top+" = "+_10.y);
}
}else{
_10={x:(ev.clientX+document.documentElement.scrollLeft)-(document.documentElement.clientLeft+this.containerEdges.left),y:(ev.clientY+document.documentElement.scrollTop)-(document.documentElement.clientTop+this.containerEdges.top)};
if(this.isDebug){
console.debug("photoCropper:\n"+"X: ("+ev.clientX+" + "+document.documentElement.scrollLeft+") - ("+document.documentElement.clientLeft+" + "+this.containerEdges.left+") = "+_10.x+"\n"+"Y: ("+ev.clientY+" + "+document.documentElement.scrollTop+") - ("+document.documentElement.clientTop+" + "+this.containerEdges.top+") = "+_10.y);
}
}
return _10;
},this.mouseMove=function(ev){
var _11=lconn.profiles.PhotoCrop.getCropper();
if(_11&&_11.active){
if(this.isDebug){
console.debug("photoCropper: Mouse Moved");
}
return _11._mouseMove(ev);
}
},this._mouseMove=function(ev){
try{
ev=ev||window.event;
var _12=lconn.profiles.PhotoCrop.getCropper();
var _13=this.mouseCoords(ev);
var _14=curHeight=this.pxToInt(this.box.style.height);
var _15=curWidth=this.pxToInt(this.box.style.width);
var _16=curLeft=this.pxToInt(this.box.style.left);
var _17=curTop=this.pxToInt(this.box.style.top);
if(this.drag.move){
_17=this.oldPos.top+(_13.y-this.mouseStart.y);
_16=this.oldPos.left+(_13.x-this.mouseStart.x);
_17=(_17<0?0:_17);
_17=(_17>this.boxParent.offsetHeight-this.box.offsetHeight?this.boxParent.offsetHeight-this.box.offsetHeight:_17);
_16=(_16<0?0:_16);
_16=(_16>this.boxParent.offsetWidth-this.box.offsetWidth?this.boxParent.offsetWidth-this.box.offsetWidth:_16);
this.box.style.top=_17+"px";
this.box.style.left=_16+"px";
if(document.body.style.cursor!="move"){
document.body.style.cursor="move";
}
}else{
if(this.drag.E){
if(this.isDebug){
console.debug("photoCropper: EAST SIDE DRAG");
}
_15=(_13.x-this.oldPos.left)-(2*this.correctionFactor);
}else{
if(this.drag.W){
if(this.isDebug){
console.debug("photoCropper: WEST SIDE DRAG");
}
_16=this.oldPos.left+(_13.x-this.mouseStart.x);
if(_16<0){
_16=0;
}else{
if(this.right()-_16<this.MIN_DIMENSION){
_16=this.right()-this.MIN_DIMENSION;
}
}
_15=this.oldPos.width+this.oldPos.left-_16;
}
}
if(this.drag.N){
if(this.isDebug){
console.debug("photoCropper: NORTH SIDE DRAG");
}
_17=this.oldPos.top+(_13.y-this.mouseStart.y);
if(_17<0){
_17=0;
}else{
if(this.bottom()-_17<this.MIN_DIMENSION){
_17=this.bottom()-this.MIN_DIMENSION;
}
}
_14=this.oldPos.height+(this.oldPos.top-_17);
}else{
if(this.drag.S){
if(this.isDebug){
console.debug("photoCropper: SOUTH SIDE DRAG");
}
_14=(_13.y-this.oldPos.top)-(2*this.correctionFactor);
}
}
if(this.FORCE_SQUARE){
if(this.isDebug){
console.debug("photoCropper: FORCING SQUARE");
}
if(!(this.drag.N||this.drag.S)){
_14=_15;
}else{
if(!(this.drag.E||this.drag.W)){
_15=_14;
}else{
if(this.isDebug){
console.debug("photoCropper: DIAGONAL DRAG");
}
if(_15<_14){
newDim=_15;
if(this.drag.N){
_17=this.oldPos.top+this.oldPos.height-newDim;
}
}else{
newDim=_14;
if(this.drag.W){
_16=this.oldPos.left+this.oldPos.width-newDim;
}
}
_15=_14=newDim;
}
}
}
var _18=function(_19){
if(_14<_19.MIN_DIMENSION){
if(this.isDebug){
console.debug("photoCropper: MIN SOUTH SIZE REACHED");
}
_14=_19.MIN_DIMENSION;
if(this.FORCE_SQUARE){
_15=_14;
_16=curLeft+curWidth-_15;
}
}else{
if(_17+_14+2*_19.correctionFactor>_19.boxParent.offsetHeight){
_14=_19.boxParent.offsetHeight-(_17+2*_19.correctionFactor);
if(_19.FORCE_SQUARE){
_15=_14;
_16=curLeft+curWidth-_15;
}
}
}
};
var _1a=function(_1b){
if(_15<_1b.MIN_DIMENSION){
if(this.isDebug){
console.debug("photoCropper: MIN EAST SIZE REACHED");
}
_15=_1b.MIN_DIMENSION;
if(_1b.FORCE_SQUARE){
_14=_15;
_17=curTop+curHeight-_14;
}
}else{
if(_16+_15+2*_1b.correctionFactor>_1b.boxParent.offsetWidth){
if(this.isDebug){
console.debug("photoCropper: MAX EAST SIZE REACHED");
}
_15=_1b.boxParent.offsetWidth-(_16+2*_1b.correctionFactor);
if(_1b.FORCE_SQUARE){
_14=_15;
_17=curTop+curHeight-_14;
}
}
}
};
if(this.drag.S){
_18(this);
_1a(this);
}else{
_1a(this);
_18(this);
}
if(_16!=curLeft&&_15==curWidth){
_16=curLeft;
}
if(_17!=curTop&&_14==curHeight){
_17=curTop;
}
this.box.style.height=_14+"px";
this.box.style.width=_15+"px";
this.box.style.top=_17+"px";
this.box.style.left=_16+"px";
}
var top=_17+this.CROPPER.border.active.width;
var _1c=_16+this.CROPPER.border.active.width;
this.cImg.style.top="-"+top+"px";
this.cImg.style.left="-"+_1c+"px";
this.setCorners(_17,_16,_15,_14);
}
catch(exc){
alert(exc);
}
return false;
},this.setCorners=function(top,_1d,_1e,_1f){
top-=3;
_1d-=3;
dojo.style(this.nwDiv,"left",_1d+"px");
dojo.style(this.nwDiv,"top",top+"px");
dojo.style(this.neDiv,"left",_1d+_1e+"px");
dojo.style(this.neDiv,"top",top+"px");
dojo.style(this.swDiv,"left",_1d+"px");
dojo.style(this.swDiv,"top",top+_1f+"px");
dojo.style(this.seDiv,"left",_1d+_1e+"px");
dojo.style(this.seDiv,"top",top+_1f+"px");
},this.mouseDown=function(ev){
var _20=lconn.profiles.PhotoCrop.getCropper();
if(_20){
_20.beginCrop(ev);
return _20._mouseDown(ev);
}
},this.beginCrop=function(ev){
var _21=this.cDiv;
this.crop=true;
this.active=true;
dojo.style(this.cDiv,{"border":this.CROPPER.border.active.width+"px "+this.CROPPER.border.active.style+" "+this.CROPPER.border.active.color});
dojo.style(this.img1,{"opacity":"0.2"});
},this._mouseDown=function(ev){
ev=ev||window.event;
this.containerEdges=this.getContainerEdges(this.boxParent);
this.mouseStart=this.mouseCoords(ev);
this.drag=this.getEdges(this.mouseStart);
if(this.isDebug){
console.debug("photoCropper:\n"+"X: "+this.mouseStart.x+" Y: "+this.mouseStart.y);
}
this.oldPos=new lconn.profiles.PhotoCrop.BoxPosition(this.pxToInt(this.box.style.left),this.pxToInt(this.box.style.top),this.pxToInt(this.box.style.width),this.pxToInt(this.box.style.height));
document.onmousemove=this.mouseMove;
this.boxParent.onmousemove=null;
return false;
},this.mouseMovePointer=function(ev){
var _22=lconn.profiles.PhotoCrop.getCropper();
if(_22&&_22.active){
if(this.isDebug){
console.debug("photoCropper: Mouse Move Pointer");
}
return _22._mouseMovePointer(ev);
}
},this._mouseMovePointer=function(ev){
ev=ev||window.event;
var _23=this.mouseCoords(ev);
mousePos=this.getEdges(_23);
if(mousePos.E||mousePos.W||mousePos.N||mousePos.S){
document.body.style.cursor=(mousePos.N?"n":"")+(mousePos.S?"s":"")+(mousePos.E?"e":"")+(mousePos.W?"w":"")+"-resize";
}else{
if(document.body.style.cursor!="default"){
document.body.style.cursor="default";
}
}
},this.mouseUp=function(ev){
var _24=lconn.profiles.PhotoCrop.getCropper();
if(_24){
return _24._mouseUp(ev);
}
},this._mouseUp=function(ev){
ev=ev||window.event;
if(ev.type==="mouseup"){
this.reset();
this.mouseMovePointer(ev);
}
return true;
},this.mouseOut=function(ev){
var _25=lconn.profiles.PhotoCrop.getCropper();
if(_25){
return _25._mouseOut(ev);
}
},this._mouseOut=function(ev){
ev=ev||window.event;
src=ev.srcElement||ev.target;
if(src.nodeName==="BODY"||src.nodeName==="HTML"||src.id==="imagePreview"){
this.reset();
}
},this.setBox=function(div){
this.box=div;
this.box.onmousedown=this.mouseDown;
this.box.style.top=this.CROPPER.top;
this.box.style.left=this.CROPPER.left;
this.box.style.width=this.CROPPER.x;
this.box.style.height=this.CROPPER.y;
if(this.boxParent==null){
this.boxParent=this.box.parentNode;
}
this.boxParent.onmouseout=this.mouseUp;
},this.getRectCoords=function(){
return {startX:left(),endX:right()-(2*correctionFactor),startY:top(),endY:bottom()-(2*correctionFactor)};
},this.getRelativeCoords=function(){
var w=this.pxToInt(this.boxParent.style.width);
var h=this.pxToInt(this.boxParent.style.height);
return {startX:(this.left()+this.correctionFactor)/w,endX:(this.right()-this.correctionFactor)/w,startY:(this.top()+this.correctionFactor)/h,endY:(this.bottom()-this.correctionFactor)/h};
},-this.init(_1);
this.containerEdges=this.getContainerEdges(this.boxParent);
this.boxParent.onmousedown=this.mouseDown;
document.onmouseup=this.mouseUp;
document.onmouseout=this.mouseOut;
this.boxParent.onmouseout=this.mouseOut;
this.correctionFactor=((this.box.offsetHeight-this.pxToInt(this.box.style.height))/2)+(dojo.isIE?2:1);
if(this.isDebug){
console.debug("photoCropper: boxParent.id: "+this.boxParent.id);
console.debug("photoCropper: containerEdges.left: "+this.containerEdges.left);
console.debug("photoCropper: boxParent.offsetHeight: "+this.boxParent.offsetHeight);
console.debug("photoCropper: box.offsetTop: "+this.box.offsetTop);
}
this.reset();
};
lconn.profiles.PhotoCrop.BoxPosition=function(_26,top,_27,_28){
this.left=+_26;
this.top=+top;
this.width=+_27;
this.height=+_28;
};
var cropper=null;
lconn.profiles.PhotoCrop.cropSingleton=null;
lconn.profiles.PhotoCrop.initCropper=function(_29){
if(typeof (_29)!="object"){
return false;
}
lconn.profiles.PhotoCrop.cropSingleton=new lconn.profiles.PhotoCrop.Cropper(_29);
return lconn.profiles.PhotoCrop.getCropper();
};
lconn.profiles.PhotoCrop.getCropper=function(){
if(lconn.profiles.PhotoCrop.cropSingleton==null){
lconn.profiles.ProfilesCore.showAlert(generalrs["label.editprofile.photo.no_init"]);
}
return lconn.profiles.PhotoCrop.cropSingleton;
};
lconn.profiles.PhotoCrop.goToMyProfile=function(){
profiles_goto(applicationContext+"/html/myProfileView.do?lang="+appLang);
};
lconn.profiles.PhotoCrop.goToEditProfile=function(_2a){
profiles_goto(applicationContext+"/html/editMyProfileView.do?tab=photo"+(_2a?"&success":"")+"&lang="+appLang);
};
lconn.profiles.PhotoCrop.saveNclosePressed=function(_2b,_2c){
if(dojo.hasClass(_2b,"lotusBtnDisabled")){
return;
}
lconn.profiles.PhotoCrop.disableSaveButtons();
lconn.profiles.PhotoCrop.submitImage(false,function(_2d,_2e,evt){
if(lconn.profiles.PhotoCrop.uploadCallback(_2d,_2e,evt)){
editProfile_saveForm(_2b.form,_2c);
}
lconn.profiles.PhotoCrop.enableSaveButtons();
});
};
lconn.profiles.PhotoCrop.savePressed=function(_2f){
if(dojo.hasClass(_2f,"lotusBtnDisabled")){
return;
}
lconn.profiles.PhotoCrop.disableSaveButtons();
lconn.profiles.PhotoCrop.submitImage(false,function(_30,_31,evt){
if(lconn.profiles.PhotoCrop.uploadCallback(_30,_31,evt)){
editProfile_saveForm(_2f.form);
}
lconn.profiles.PhotoCrop.enableSaveButtons();
});
};
lconn.profiles.PhotoCrop.removePressed=function(_32){
var cb_=function(){
lconn.profiles.xhrPost({url:applicationContext+"/html/uploadPhoto.do?lang="+appLang,load:function(_33){
if(_32){
profiles_goto(_32);
}else{
window.location.reload();
lconn.profiles.PhotoCrop.hide("imgPreviewOutterContainer");
lconn.profiles.PhotoCrop.reloadPhoto("imgProfilePhoto");
lconn.profiles.PhotoCrop.reloadPhoto("imgProfilePhotoCurrent");
if(cropper){
cropper.resetImage(true);
}
}
},error:function(_34,_35){
editProfile_xhrError(_34,_35);
},content:{removePhoto:"true"},checkAuthHeader:true});
};
lconn.profiles.ProfilesCore.confirm(generalrs["label.editprofile.photo.removeimage.confirm"],cb_);
};
lconn.profiles.PhotoCrop.uploadCallback=function(_36,_37,evt){
var _38=true;
try{
if(cropper){
cropper.active=false;
}
if(_36=="error.fileContainsVirus"){
lconn.profiles.ProfilesCore.showInfoMsg("profileInfoMsgDiv","error",generalrs["error.fileContainsVirus"]);
_38=false;
}else{
if(_36=="errors.photo.filetype"){
lconn.profiles.PhotoCrop.hide("imgPreviewLoading");
lconn.profiles.ProfilesCore.showInfoMsg("profileInfoMsgDiv","error",generalrs["errors.photo.filetype"]);
_38=false;
}else{
if(_36=="errors.photo.maxfilesize"){
lconn.profiles.ProfilesCore.showInfoMsg("profileInfoMsgDiv","error",generalrs["errors.photo.maxfilesize"]);
_38=false;
}else{
if(_36=="error"){
lconn.profiles.ProfilesCore.showInfoMsg("profileInfoMsgDiv","error",generalrs["errors.photo.general"]);
_38=false;
}else{
if(_36=="Photo OK"){
lconn.profiles.PhotoCrop.reloadPhoto("imgProfilePhoto");
lconn.profiles.PhotoCrop.reloadPhoto("imgProfilePhotoCurrent");
_38=true;
}else{
if(_36.indexOf("Photo Cropped OK")!=-1){
lconn.profiles.PhotoCrop.reloadPhoto("imgProfilePhoto");
lconn.profiles.PhotoCrop.reloadPhoto("imgProfilePhotoCurrent");
lconn.profiles.PhotoCrop.previewImage();
_38=true;
}else{
if(_36.indexOf("Temp Photo OK")!=-1){
if(!cropper){
cropper=lconn.profiles.PhotoCrop.initCropper(dojo.byId("imgPreview"));
}else{
cropper.resetImage(true);
}
var _39=window.setInterval(function(){
if(dojo.byId("backgroundImg")!=null&&dojo.byId("backgroundImg").complete){
window.clearInterval(_39);
cropper.active=true;
dojo.style("imgPreviewContainer","visibility","visible");
lconn.profiles.PhotoCrop.hide("imgPreviewLoading");
lconn.profiles.PhotoCrop.enableSaveButtons();
}
},500);
_38=true;
}else{
lconn.profiles.ProfilesCore.showInfoMsg("profileInfoMsgDiv","error",generalrs["errors.photo.general"]);
_38=false;
}
}
}
}
}
}
}
}
catch(e){
alert(e);
}
return (_38);
};
lconn.profiles.PhotoCrop.submitImage=function(_3a,_3b){
try{
gbDataSaved=true;
var _3c={checkAuthHeader:true,preventCache:true,url:applicationContext+"/html/uploadPhoto.do?key="+profilesData.displayedUser.key+"&lang="+appLang,form:dojo.byId("editProfile"),load:function(_3d){
if(typeof (_3b)=="function"){
_3b(_3d,{});
}else{
lconn.profiles.PhotoCrop.uploadCallback(_3d,{});
}
},error:function(err){
editProfile_xhrError(data,ioargs||{});
}};
if(dojo.getObject("com.ibm.ajax.auth")){
com.ibm.ajax.auth.prepareSecure(_3c);
}
if(_3a){
_3c.content={temp:"true"};
}
if(cropper&&cropper.crop){
var c=cropper.getRelativeCoords();
_3c.content={crop:true,startx:c.startX,endx:c.endX,starty:c.startY,endy:c.endY};
lconn.profiles.xhrPost(_3c);
}else{
if(typeof require==="function"){
_3c.data=_3c.content;
require(["dojo/request/iframe"],function(_3e){
_3e(_3c.url,_3c).then(_3c.load,_3c.error);
});
}else{
dojo.io.frame.send(_3c);
}
}
}
catch(e){
alert(e);
}
};
lconn.profiles.PhotoCrop.reloadPhoto=function(el){
if(!el){
return;
}
var _3f=dojo.byId(el);
if(_3f&&_3f.src){
_3f.src+=(_3f.src.indexOf("&")==-1?"?":"&")+"lastMod="+(new Date()).getTime();
}
};
lconn.profiles.PhotoCrop.show=function(el){
if(!el){
return;
}
var el=dojo.byId(el);
if(el){
dojo.removeClass(el,"lotusHidden");
}
};
lconn.profiles.PhotoCrop.hide=function(el){
if(!el){
return;
}
var el=dojo.byId(el);
if(el){
dojo.addClass(el,"lotusHidden");
}
};
lconn.profiles.PhotoCrop.previewImage=function(_40){
if(_40&&_40.value==""){
lconn.profiles.PhotoCrop.disableSaveButtons();
lconn.profiles.PhotoCrop.hide("imgPreviewOutterContainer");
lconn.profiles.PhotoCrop.hide("imgPreviewLoading");
if(cropper){
cropper.reset();
cropper.resetImage(true);
}
}else{
lconn.profiles.PhotoCrop.disableSaveButtons();
lconn.profiles.PhotoCrop.show("lotusFormFieldRow");
lconn.profiles.PhotoCrop.show("imgPreviewOutterContainer");
lconn.profiles.PhotoCrop.show("imgPreviewLoading");
if(cropper){
cropper.allowFormSubmit=false;
cropper.active=false;
cropper.crop=false;
}
lconn.profiles.PhotoCrop.submitImage(true);
if(_40&&cropper&&_40.value!=cropper.photoFileName){
cropper.photoFileName=_40.value;
cropper.resetImage(true);
}else{
if(cropper){
cropper.allowFormSubmit=true;
cropper.active=true;
cropper.crop=true;
}
}
}
};
lconn.profiles.PhotoCrop.enableSaveButtons=function(){
lconn.profiles.PhotoCrop.enableButton("lconn_savePhotoButton");
lconn.profiles.PhotoCrop.enableButton("lconn_saveNclosePhotoButton");
};
lconn.profiles.PhotoCrop.disableSaveButtons=function(){
lconn.profiles.PhotoCrop.disableButton("lconn_savePhotoButton");
lconn.profiles.PhotoCrop.disableButton("lconn_saveNclosePhotoButton");
};
lconn.profiles.PhotoCrop.enableButton=function(id){
var el=dojo.byId(id);
if(el){
dojo.removeClass(el,"lotusBtnDisabled");
}
};
lconn.profiles.PhotoCrop.disableButton=function(id){
var el=dojo.byId(id);
if(el){
dojo.addClass(el,"lotusBtnDisabled");
}
};
lconn.profiles.PhotoCrop.updateFileSelectedTextField=function(_41){
var _42=dojo.byId("photoUploadFileSelected");
if(_42){
_42.value=lconn.profiles.ProfilesCore.getUploadFileName(_41);
}
};
lconn.profiles.PhotoCrop.invokeFileSelect=function(_43){
if(_43){
var _44=dojo.byId(_43);
if(_44){
_44.click();
}
}
};
}


;if(!dojo._hasResource["lconn.profiles.Following"]){
dojo._hasResource["lconn.profiles.Following"]=true;
dojo.provide("lconn.profiles.Following");






lconn.profiles.Following.instance=function(){
this.onLoad=function(){
var _1="_"+this.iContext.widgetId+"_";
var _2=this.iContext.getiWidgetAttributes();
this.resourceId=_2.getItemValue("resourceId");
var _3=_2.getItemValue("profileDisplayedUserKey");
var _4=this.iContext.getiDescriptor().getItemValue("mode");
var _5="normal";
if(_4=="fullpage"){
_5="maximize";
lconn.profiles.Following.currentViewDomNode="following_widgetId_fullpage_container";
}else{
lconn.profiles.Following.currentViewDomNode="following_widgetId_container";
}
lconn.profiles.Following.xslName="view-all-following.xsl";
lconn.profiles.Following.followResourcesKeyArray=[];
generalrs.label_inactive_user_msg=generalrs["label.inactive.user.msg"];
for(rName in generalrs){
if(rName&&generalrs[rName]&&rName.indexOf(".")==-1&&rName.indexOf("/")==-1){
lconn.profiles.Following.followResourcesKeyArray.push(rName);
}
}
lconn.profiles.ProfilesCore.showProgressMsg(lconn.profiles.Following.currentViewDomNode,generalrs.follow_Loading);
lconn.profiles.Following.loadFollow(_3,lconn.profiles.Following.currentViewDomNode);
};
};
lconn.profiles.Following.loadFollow=function(_6,_7,_8,_9,_a){
if(typeof (_8)=="undefined"){
_8=0;
}
if(typeof (_9)=="undefined"){
_9=0;
}
if(typeof (_a)=="undefined"){
_a="";
}
var _b="";
var _c=lconn.profiles.ProfilesCore.getParam("action");
if(_c==null||_c=="in"){
lconn.profiles.Following.AddPageSubTitle("follow_title_ContactsFollowedBy",true);
followLoaded=lconn.profiles.Following.loadFollowing(_6,_7,_8,_9,_a);
}else{
if(_c=="out"){
lconn.profiles.Following.AddPageSubTitle("follow_title_ContactsFollowing",true);
followLoaded=lconn.profiles.Following.loadFollowers(_6,_7,_8,_9,_a);
}
}
if(followLoaded){
profiles_AddLiveNameSupport(_7);
}else{
lconn.profiles.ProfilesCore.showInfoMsg("divNetworkFollowInfo","error",generalrs.follow_LoadingError);
}
if(followLoaded){
lconn.core.utilities.processUntilElementIsFound("follow_mainContentTable",function(){
lconn.core.globalization.bidiUtil.enforceTextDirectionOnPage(dojo.byId("follow_mainContentTable"));
},null,null,false);
}
};
lconn.profiles.Following.loadFollowing=function(_d,_e,_f,_10,_11){
var _12=applicationContext+"/atom2/forms/viewfollowedprofiles.xml"+"?key="+_d+"&pageSize="+_11+"&pageNumber="+_f+"&sortBy="+_10+"&ui-level=second"+((bShowEmail)?"&showEmail":"")+(profilesData.config.appChkSum!=null?"&acs="+profilesData.config.appChkSum:"");
var _13=lconn.profiles.Following.xslName;
var _14=lconn.profiles.Following.followResourcesKeyArray;
var _15=new Array();
_15.push(["showEmail",((bShowEmail)?"true":"false")]);
_15.push(["action","in"]);
return lconn.profiles.ProfilesXSL.loadContent(_12,_13,_e,_14,_15,_d,true);
};
lconn.profiles.Following.loadFollowers=function(key,_16,_17,_18,_19){
var _1a=applicationContext+"/atom2/forms/viewallfollowers.xml"+"?key="+key+"&pageSize="+_19+"&pageNumber="+_17+"&sortBy="+_18+"&ui-level=second"+((bShowEmail)?"&showEmail":"")+(profilesData.config.appChkSum!=null?"&acs="+profilesData.config.appChkSum:"");
var _1b=lconn.profiles.Following.xslName;
var _1c=lconn.profiles.Following.followResourcesKeyArray;
var _1d=new Array();
_1d.push(["showEmail",((bShowEmail)?"true":"false")]);
_1d.push(["action","out"]);
return lconn.profiles.ProfilesXSL.loadContent(_1a,_1b,_16,_1c,null,key,true);
};
lconn.profiles.Following.removeContacts=function(_1e){
if(_1e&&_1e.tagName.toLowerCase()!=="form"){
_1e=findParentForm(_1e);
}
var _1f=lconn.profiles.ProfilesCore.getLoggedInUserKey();
if(_1f){
var _20=[];
dojo.query("input[id^='select_contact_']:checked",_1e).forEach(function(_21){
if(_21&&_21.value&&_21.value.length>0){
_20.push(_21.value);
}
});
if(_20.length==0){
lconn.profiles.ProfilesCore.showInfoMsg("profileInfoMsgDiv","info",generalrs.follow_selectForRemoval,true);
return;
}
var _22=false;
dojo.forEach(_20,function(val){
if(val){
_22=true;
var _23=applicationContext+"/html/following.do"+"?targetKey="+val+"&sourceKey="+_1f+"&action=unfollow";
lconn.profiles.Following.xhrPost(_23,null,function(){
return;
},true);
}
});
if(_22){
window.location.reload();
}
}
};
lconn.profiles.Following.AddPageSubTitle=function(_24,_25){
var _26=generalrs[_24];
if(_26){
if(!_25){
_26=lconn.profiles.ProfilesCore.replacePlaceHolders(_26,["<span class='vcard'><a href='javascript:void(0);' onclick='lconn.core.WidgetPlacement.reloadOverviewPage()' class='fn url'>"+lconn.core.globalization.bidiUtil.enforceTextDirection(profilesData.displayedUser.displayName)+"</a><span class='x-lconn-userid' style='display: none;'>"+profilesData.displayedUser.userid+"</span></span>"]);
}else{
_26=lconn.profiles.ProfilesCore.replacePlaceHolders(_26,["<span class='vcard'><a href='"+applicationContext+"/html/profileView.do?key="+profilesData.displayedUser.key+"' class='fn url'>"+lconn.core.globalization.bidiUtil.enforceTextDirection(profilesData.displayedUser.displayName)+"</a><span class='x-lconn-userid' style='display: none;'>"+profilesData.displayedUser.userid+"</span></span>"]);
}
if(dojo.byId("pageSubTitle")){
dojo.byId("pageSubTitle").innerHTML=_26;
profiles_AddLiveNameSupport("pageSubTitle");
}
setTimeout(function(){
if(dojo.byId("pageItemsMainRegion")){
dojo.attr(dojo.byId("pageItemsMainRegion"),"aria-label",lconn.profiles.ProfilesCore.replacePlaceHolders(generalrs[_24],[lconn.core.globalization.bidiUtil.enforceTextDirection(profilesData.displayedUser.displayName)]));
}
},2000);
}
};
lconn.profiles.Following.sort=function(_27,_28){
var _29=findParentForm(_27);
var _2a=_29.elements["displayedUserKey"].value;
var _2b=_29.elements["items-per-page"].value;
var _2c=_29.elements["current-page"].value;
var _2d=null;
if(_28==null){
_2d=lconn_formutilities_getValue(_27);
}else{
_2d=_28;
}
lconn.profiles.Following.loadFollow(_2a,lconn.profiles.Following.currentViewDomNode,_2c,_2d,_2b);
};
lconn.profiles.Following.setItemsPerPage=function(_2e,_2f){
var _30=findParentForm(_2e);
var _31=_30.elements["displayedUserKey"].value;
var _32=0;
var _33=_30.elements["sortBy"].value;
lconn.profiles.Following.loadFollow(_31,lconn.profiles.Following.currentViewDomNode,_32,_33,_2f);
};
lconn.profiles.Following.pageTo=function(_34,_35){
var _36=findParentForm(_34);
var _37=_36.elements["displayedUserKey"].value;
var _38=_36.elements["items-per-page"].value;
var _39=_36.elements["sortBy"].value;
var _3a=_36.elements["total-pages"].value;
var _3b=Math.max(0,Math.min(_35,_3a-1));
lconn.profiles.Following.loadFollow(_37,lconn.profiles.Following.currentViewDomNode,(isNaN(_3b)?0:_3b),_39,_38);
return false;
};
lconn.profiles.Following.handlePageToEnterKey=function(_3c,_3d,_3e){
var evt=_3c||window.event;
if(evt.keyCode==13){
dojo.stopEvent(evt);
lconn.profiles.Following.pageTo(_3d,_3e);
return false;
}
return true;
};
lconn.profiles.Following.xhrError=function(_3f){
var _40="";
var _41="";
var _42=false;
if(_3f){
var _43=_3f.status;
if(_43==302||(dojo.isIE&&(_43==0||_43==12150))){
_42=true;
}else{
if(_3f.dojoType=="cancel"){
_42=true;
}else{
if(_3f.responseText){
var rt=_3f.responseText;
var _44="<message>";
var _45="</message>";
var msg=rt.slice(rt.indexOf(_44)+_44.length,rt.indexOf(_45)-1);
var el=dojo.byId("profileInfoMsgDiv");
if(el&&msg){
lconn.profiles.ProfilesCore.showInfoMsg(el,"error",msg);
}
}
_40+=(_3f.name)?_3f.name+"\n":"";
_40+=(_3f.status)?_3f.status+"\n":"";
_40+=(_3f.message)?"\n"+_3f.message+"\n":"";
_40+=(_3f.fileName)?"\n"+_3f.fileName+"\n":"";
alert(_40);
}
}
}
return _42;
};
lconn.profiles.Following.xhrGet=function(_46,_47){
if(_46){
var kw={url:_46,load:_47,error:function(_48){
lconn.profiles.Following.xhrError(_48);
},timeout:30000,checkAuthHeader:true};
lconn.profiles.xhrGet(kw);
return true;
}
return false;
};
lconn.profiles.Following.xhrPost=function(_49,_4a,_4b,_4c){
return lconn.profiles.Following._xhrPostDelete(_49,_4a,_4b,true,_4c);
};
lconn.profiles.Following.xhrDelete=function(_4d,_4e,_4f){
return lconn.profiles.Following._xhrPostDelete(_4d,_4e,_4f,false);
};
lconn.profiles.Following._xhrPostDelete=function(_50,_51,_52,_53,_54){
if(typeof (_54)=="undefined"||_54==""){
_54=false;
}
if(_50){
var kw={url:_50,load:_52,error:function(_55){
lconn.profiles.Following.xhrError(_55);
},timeout:30000,checkAuthHeader:true,sync:_54};
if(_51!=null&&_51!=""){
var _56=dojo.formToObject(_51);
if(_53){
kw.headers={"Content-Type":"text/json"};
kw.postData=dojo.formToJson(_51);
}else{
kw.form=_51;
}
}
if(_53){
lconn.profiles.xhrPost(kw);
}else{
lconn.profiles.xhrDelete(kw);
}
return true;
}
return false;
};
lconn.profiles.Following.followUser=function(){
lconn.profiles.Following.followUserByKey(profilesData.displayedUser.key);
};
lconn.profiles.Following.unfollowUser=function(){
lconn.profiles.Following.unfollowUserByKey(profilesData.displayedUser.key);
};
lconn.profiles.Following.followUserByKey=function(key,_57,obj){
var _58=lconn.profiles.ProfilesCore.getLoggedInUserKey();
if(_58&&key){
if(typeof obj!=="undefined"){
dojo.style(obj,"cursor","wait");
}
var _59=function(_5a){
if(typeof obj!=="undefined"){
dojo.style(obj,"cursor","default");
}
if(typeof (_57)!="function"){
_57=function(_5b){
lconn.profiles.Following.userFollowed(_5b);
};
}
_57(_5a);
};
var _5c=applicationContext+"/html/following.do"+"?targetKey="+key+"&sourceKey="+_58+"&action=follow";
lconn.profiles.Following.xhrPost(_5c,null,_59);
}
};
lconn.profiles.Following.unfollowUserByKey=function(key,_5d,obj){
var _5e=lconn.profiles.ProfilesCore.getLoggedInUserKey();
if(_5e&&key){
if(typeof obj!=="undefined"){
dojo.style(obj,"cursor","wait");
}
var _5f=function(_60){
if(typeof obj!=="undefined"){
dojo.style(obj,"cursor","default");
}
if(typeof (_5d)!="function"){
_5d=function(_61){
lconn.profiles.Following.userUnfollowed(_61);
};
}
_5d(_60);
};
var _62=applicationContext+"/html/following.do"+"?targetKey="+key+"&sourceKey="+_5e+"&action=unfollow";
lconn.profiles.Following.xhrPost(_62,null,_5f);
}
};
lconn.profiles.Following.userFollowed=function(_63){
var _64=applicationContext+"/html/unfollow.do?key="+profilesData.displayedUser.key+"&lastMod="+profilesData.config.profileLastMod+"&lang="+appLang;
lconn.profiles.Following.xhrGet(_64,function(_65){
lconn.profiles.Following.displayFollowedMessage();
var _66=dojo.byId("liProfileActionFollowing");
if(_66){
_66.innerHTML=_65;
}
setTimeout(function(){
var _67=dojo.byId("inputProfileActionFollowing");
if(_67){
_67.focus();
}
},1);
});
};
lconn.profiles.Following.userUnfollowed=function(_68){
var _69=applicationContext+"/html/follow.do?key="+profilesData.displayedUser.key+"&lastMod="+profilesData.config.profileLastMod+"&lang="+appLang;
lconn.profiles.Following.xhrGet(_69,function(_6a){
lconn.profiles.Following.displayUnfollowedMessage();
var _6b=dojo.byId("liProfileActionFollowing");
if(_6b){
_6b.innerHTML=_6a;
}
setTimeout(function(){
var _6c=dojo.byId("inputProfileActionFollowing");
if(_6c){
_6c.focus();
}
},1);
});
};
lconn.profiles.Following.displayFollowedMessage=function(){
var msg=lconn.profiles.ProfilesCore.replacePlaceHolders(generalrs.label_following_user_followed,[profilesData.displayedUser.displayName]);
lconn.profiles.Following.displayMessage(msg);
};
lconn.profiles.Following.displayUnfollowedMessage=function(){
var msg=lconn.profiles.ProfilesCore.replacePlaceHolders(generalrs.label_following_user_unfollowed,[profilesData.displayedUser.displayName]);
lconn.profiles.Following.displayMessage(msg);
};
lconn.profiles.Following.displayMessage=function(msg){
var el=dojo.byId("profileInfoMsgDiv");
if(el){
lconn.profiles.ProfilesCore.showInfoMsg(el,"confirmation",msg);
}else{
alert(msg);
}
};
}


;dojo.cache("lconn.profiles", "templates/typeAhead.html", "<span> <input type=\"text\" id=\"widget_${id}\" class=\"lotusText\" autocomplete=\"off\" name=\"${name}\" dojoAttachEvent=\"onkeypress:_onKeyPress, onkeyup:_onKeyUp\" dojoAttachPoint=\"domNode,comboNode,textbox,focusNode\" waiState=\"haspopup-true,autocomplete-list,expanded-false\" role=\"combobox\"/> <span style=\"display:none\" dojoAttachPoint=\"_buttonNode\"></span></span>");

;if(!dojo._hasResource["lconn.profiles.ProfilesTypeAhead"]){
dojo._hasResource["lconn.profiles.ProfilesTypeAhead"]=true;
dojo.provide("lconn.profiles.ProfilesTypeAhead");


dojo.declare("lconn.profiles.ProfilesTypeAhead",[lconn.core.TypeAhead],{hideEmptyResults:true,submitFormOnNonSelectingEnter:true,submitFormOnKey:true,templatePath:dojo.moduleUrl("lconn.profiles","templates/typeAhead.html"),postMixInProperties:function(){
this.inherited(arguments);
if(typeof this.compositionend!=="function"){
this.compositionend=function(){
};
}
},postCreate:function(){
this.inherited(arguments);
if(dojo.style(this.focusNode,"display")=="none"){
dojo.style(this.focusNode,"display","inline");
}
}});
}


;if(!dojo._hasResource["lconn.profiles.PeopleTypeAhead"]){
dojo._hasResource["lconn.profiles.PeopleTypeAhead"]=true;
dojo.provide("lconn.profiles.PeopleTypeAhead");










dojo.declare("lconn.profiles.PeopleTypeAhead",[lconn.core.PeopleTypeAhead],{submitFormOnNonSelectingEnter:true,_openResultList:function(_1,_2){
if(this.disabled||this.readOnly||(_2.query!=this._lastQuery)){
return;
}
this._popupWidget.clearResultList();
if(_1.length){
var _3=new String(this.formatItem(_1[0]));
if(_3&&this.autoComplete&&!this._prev_key_backspace&&(_2.query!="")){
this._autoCompleteText(_3);
}
}
_2._maxOptions=this._maxOptions;
this._showResultGrid(_1,_2);
},_showResultGrid:function(_4,_5){
}});
}


;dojo.cache("lconn.profiles", "templates/SearchTile.html", "<li class=\"lotusLeft\"> <div> <span class=\"lotusContentColOne\"> <a aria-hidden=\"true\" href=\"${profilesSvcLocation}/html/profileView.do?userid=${person.encoded_userid}\" class=\"vcard\" tabindex=\"-1\"> <img id=\"${id}_photo\" dojoAttachPoint=\"photoNode\" class=\"lotusPhoto\" alt=\"${messages.photoAltText}\" src=\"${profilesSvcLocation}/photo.do?userid=${person.encoded_userid}&lastMod=${lastMod}\" /> </a> </span> <span class=\"lotusContentColTwo lotusContentColTwoTop\"> <span class=\"vcard\"> <a dojoAttachPoint=\"linkNode\" href=\"${profilesSvcLocation}/html/profileView.do?userid=${person.encoded_userid}\" class=\"fn url lotusPerson\">${person.name}</a> <span class=\"lotusHidden x-lconn-userid\">${person.escape_userid}</span> <p class=\"lotusHidden\" dojoAttachPoint=\"inactiveNode\">${messages.inactiveText}</p> </span> </span> <span class=\"lotusContentColTwo\" dojoAttachPoint=\"emailNode\"> <a class='lotusEmail' href=\"mailto:\"></a> </span> <span class=\"lotusContentColTwo\" dojoAttachPoint=\"jobRespNode\"></span> </div></li> ");

;if(!dojo._hasResource["lconn.profiles.SearchTile"]){
dojo._hasResource["lconn.profiles.SearchTile"]=true;
dojo.provide("lconn.profiles.SearchTile");






dojo.declare("lconn.profiles.SearchTile",[dijit._Widget,dijit._Templated],{templatePath:dojo.moduleUrl("lconn.profiles","templates/SearchTile.html"),messages:{},_tileConnects:[],profilesSvcLocation:"/profiles",person:{},_inactive:false,showEmail:true,expandThumbnails:true,lastMod:"",postMixInProperties:function(){
this.inherited(arguments);
this.person.encoded_userid=encodeURIComponent(this.person.userid);
this.person.escape_userid=lconn.core.HTMLUtil.escapeText(this.person.userid);
this.person.member=this.person.member||"";
this.person.escape_member=lconn.core.HTMLUtil.escapeText(this.person.member);
this.person.ext.escape_jobResp=((!this.person.ext.jobResp)?"&nbsp;":lconn.core.HTMLUtil.escapeText(this.person.ext.jobResp));
if(this.person.ext&&this.person.ext.state==="INACTIVE"){
this._inactive=true;
}
if(this.person.ext.lastUpdate){
this.lastMod=encodeURIComponent(this.person.ext.lastUpdate);
}
},postCreate:function(){
this.inherited(arguments);
if(this._inactive||(!this.showEmail)){
dojo.addClass(this.emailNode,"lotusHidden");
}
if(this._inactive){
dojo.attr(this.linkNode,"aria-label",this.messages.inactiveText);
dojo.addClass(this.jobRespNode,"lotusHidden");
dojo.removeClass(this.inactiveNode,"lotusHidden");
}
if(this.expandThumbnails){
this._tileConnects.push(dojo.connect(this.photoNode,"mouseover",this,"_growPhoto"));
this._tileConnects.push(dojo.connect(this.photoNode,"mouseout",this,"_resetPhoto"));
}
},destroy:function(){
while(this._tileConnects.length>0){
dojo.disconnect(this._tileConnects.pop());
}
this.inherited(arguments);
},_growTimeout:"",_growPhoto:function(){
if(!this.expandThumbnails){
return;
}
this._growTimeout=setTimeout(dojo.hitch(this,function(){
if(dojo.exists("lconn.profiles.profiles_behaviours")){
dojo.style(this.photoNode,"zIndex","100000");
lconn.profiles.profiles_behaviours.animImgResize({id:this.photoNode.id,width:155,height:155,delay:100});
}
}),500);
return;
},_resetPhoto:function(){
if(!this.expandThumbnails){
return;
}
clearTimeout(this._growTimeout);
if(this.photoNode.style.width!="55px"){
if(dojo.exists("lconn.profiles.profiles_behaviours")){
dojo.style(this.photoNode,"zIndex","auto");
lconn.profiles.profiles_behaviours.animImgResize({id:this.photoNode.id,width:55,height:55,delay:1});
}
}
}});
}


;dojo.cache("lconn.profiles", "templates/SearchTiles.html", "<div class=\"lotusChunk lotusViewControl\" role=\"region\" aria-label=\"${messages.noResultsText}\"> <span id=\"${_styleNodeId}\" aria-live=\"polite\" aria-relevant=\"text\"> <style> #${_styleNodeId} ul { width:99%; list-style:none outside none; display:inline-table; } #${_styleNodeId} ul li { clear: none; } #${_styleNodeId} ul li div { display:block; overflow:hidden; float:inherit; width:300px; height:59px; padding-bottom:5px; padding-left:5px; margin-right:5px; } #${_styleNodeId} ul li div span.lotusContentColOne { width: 55px; height: 55px; margin-top: 3px; } #${_styleNodeId} ul li div span.lotusContentColOne img { width:55px; height:55px; position:absolute; z-index:0; } #${_styleNodeId} ul li div span.lotusContentColTwo, #${_styleNodeId} ul li div span.lotusContentColTwo span { margin-top: 1px; } #${_styleNodeId}_infoNode { position: absolute; left: 0; top: -100px; } </style> <span id=\"${_styleNodeId}_infoNode\" dojoAttachPoint=\"infoNode\"></span> <ul class=\"lotusList lotusLeft\" dojoAttachPoint=\"baseNode\"></ul> </span></div>");

;if(!dojo._hasResource["lconn.profiles.SearchTiles"]){
dojo._hasResource["lconn.profiles.SearchTiles"]=true;
dojo.provide("lconn.profiles.SearchTiles");






dojo.declare("lconn.profiles.SearchTiles",[dijit._Widget,dijit._Templated],{templatePath:dojo.moduleUrl("lconn.profiles","templates/SearchTiles.html"),profilesSvcLocation:"/profiles",expandThumbnails:true,_value:"",_count:0,_results:[],_styleNodeId:null,_tiles:[],postMixInProperties:function(){
this.inherited(arguments);
if(!this._styleNodeId){
this._styleNodeId=this.id+"_searchTiles";
}
},postCreate:function(){
this.inherited(arguments);
if(dojo.isIE<9){
var _1=dijit._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache);
if(dojo.isString(_1)){
dojo.forEach((this._stringRepl(_1)).split("</style>"),dojo.hitch(this,function(_2){
try{
var _3=_2.split("<style");
if(_3.length>1){
_2=_3[1].substring(_3[1].indexOf(">")+1);
var _4=dojo.create("style",{type:"text/css"});
_4.styleSheet.cssText=_2;
dojo.place(_4,this.domNode,"first");
}
}
catch(ee){
if(window.console){
console.error("Error parsing style tag in template for: "+this.id);
console.log(ee);
}
}
}));
}
}
},reset:function(){
while(this._tiles.length>0){
var _5=this._tiles.pop();
_5.destroy();
}
while(this.baseNode.lastChild){
this.baseNode.removeChild(this.baseNode.lastChild);
}
dojo.place(document.createTextNode(""),this.infoNode,"only");
},setValue:function(_6){
this._value=_6;
},setResults:function(_7){
this._results=_7;
this._count=this._results.length;
this.reset();
if(this._count==0){
dojo.attr(this.domNode,"aria-label",this.messages.noResultsText);
}else{
dojo.attr(this.domNode,"aria-label",(this.messages.resultsHeadingText).replace(/{0\}/,this._value));
for(var n=0;n<this._count;n++){
this._addItem(this._results[n],n);
}
}
dojo.place(document.createTextNode(dojo.attr(this.domNode,"aria-label")),this.infoNode,"only");
},_addItem:function(p,i){
var _8=dojo.create("div");
dojo.place(_8,this.baseNode,"last");
var _9={messages:this.messages,person:p,showEmail:this.showEmail,expandThumbnails:this.expandThumbnails,profilesSvcLocation:this.profilesSvcLocation};
this._tiles.push(new lconn.profiles.SearchTile(_9,_8));
}});
}


;dojo.cache("lconn.profiles", "templates/PeopleTypeAheadTiles.html", "<input type=\"text\" class=\"lotusText\" autocomplete=\"off\" name=\"${name}\" style=\"width: auto;\" size=\"40\" dojoAttachEvent=\"onkeypress:_onKeyPress\" dojoAttachPoint=\"comboNode,textbox,focusNode\" aria-controls=\"${resultsSectionId}\"/>");

;if(!dojo._hasResource["lconn.profiles.PeopleTypeAheadTiles"]){
dojo._hasResource["lconn.profiles.PeopleTypeAheadTiles"]=true;
dojo.provide("lconn.profiles.PeopleTypeAheadTiles");






dojo.declare("lconn.profiles.PeopleTypeAheadTiles",[lconn.core.PeopleTypeAhead],{templatePath:dojo.moduleUrl("lconn.profiles","templates/PeopleTypeAheadTiles.html"),submitFormOnNonSelectingEnter:true,autoComplete:false,profilesSvcLocation:"/profiles",count:21,minChars:3,searchDelay:250,hasDownArrow:false,autocomplete:true,multipleValues:false,liveNameSupport:true,expandThumbnails:true,showEmail:true,lang:"",lastMod:"",messages:{},defaultValue:"",resultsSectionId:null,_tilesWidget:null,_resultsNode:null,postMixInProperties:function(){
var _1=dojo.clone(this.messages);
this.inherited(arguments);
this.store=new lconn.core.PeopleDataStore({jsId:"peopleTypeAheadStore",queryParam:"name",url:this.profilesSvcLocation+"/html/dw/nameTypeahead.do"+"?count="+this.count+"&profileType=champion"+"&extended=true"+((this.lastMod!="")?"&lastMod="+this.lastMod:"")+((this.lang!="")?"&lang="+this.lang:"")});
if(!this.resultsSectionId){
this.resultsSectionId=this.id+"_popup";
}
this.messages=dojo.mixin(dojo.clone(this.messages),_1);
if(!this.searchDelay){
this.searchDelay=250;
}
if(typeof this.compositionend!=="function"){
this.compositionend=function(){
};
}
},postCreate:function(){
this.inherited(arguments);
this._resultsNode=dojo.byId(this.resultsSectionId);
if(!this._resultsNode){
var _2=dojo.create("div",{id:this.resultsSectionId});
dojo.place(_2,this.domNode,"after");
}
if(this.defaultValue&&this.defaultValue.length>0){
this.focusNode.focus();
this.setValue(this.defaultValue.replace(/\*/g,""));
}
dojo.removeAttr(this.domNode,"lang");
},getTextBoxValue:function(){
var _3=this.inherited(arguments);
if(_3==this.hintText){
return "";
}
return _3;
},_hideResultList:function(){
if(this.getTextBoxValue().length==0){
this.reset();
}
},reset:function(){
if(this._tilesWidget){
this._tilesWidget.reset();
}
},_openResultList:function(_4,_5){
if(this._resultsNode){
if(!this._tilesWidget){
this._tilesWidget=new lconn.profiles.SearchTiles({profilesSvcLocation:this.profilesSvcLocation,expandThumbnails:this.expandThumbnails,showEmail:this.showEmail,messages:this.messages},this._resultsNode);
}
this._tilesWidget.setValue(this.getTextBoxValue());
this._tilesWidget.setResults(_4);
if(this.liveNameSupport&&typeof profiles_AddLiveNameSupport=="function"){
profiles_AddLiveNameSupport(this._resultsNode.id);
}
}
},_onKeyPress:function(_6){
var _7=_6.charOrCode;
if(_6.altKey||((_6.ctrlKey||_6.metaKey)&&(_7!="x"&&_7!="v"))||_7==dojo.keys.SHIFT){
return;
}
var _8=false;
var _9="_startSearchFromInput";
var pw=this._popupWidget;
var dk=dojo.keys;
var _a=null;
this._prev_key_backspace=false;
this._abortQuery();
if(this._isShowingNow){
pw.handleKey(_7);
_a=pw.getHighlightedOption();
}
switch(_7){
case dk.PAGE_DOWN:
case dk.DOWN_ARROW:
if(!this._isShowingNow){
this._arrowPressed();
_8=true;
_9="_startSearchAll";
}
dojo.stopEvent(_6);
break;
case dk.PAGE_UP:
case dk.UP_ARROW:
if(!this._isShowingNow){
this._arrowPressed();
_8=true;
_9="_startSearchAll";
}
dojo.stopEvent(_6);
break;
case dk.ENTER:
if(_a){
if(_a==pw.nextButton){
this._nextSearch(1);
dojo.stopEvent(_6);
break;
}else{
if(_a==pw.previousButton){
this._nextSearch(-1);
dojo.stopEvent(_6);
break;
}else{
if(_a==pw.searchButton){
pw.searchDirectory();
dojo.stopEvent(_6);
return;
}else{
if(_a.item&&parseInt(_a.item.type)<0){
dojo.stopEvent(_6);
break;
}
}
}
}
pw.attr("value",{target:_a});
}else{
this._setBlurValue();
this._setCaretPos(this.focusNode,this.focusNode.value.length);
if(this.submitFormOnNonSelectingEnter){
if(this.searchTimer){
clearTimeout(this.searchTimer);
this.searchTimer=null;
}
this._lastQuery=null;
break;
}
}
if(this._isShowingNow){
this._lastQuery=null;
this._hideResultList();
}
if(!this.submitFormOnKey){
_6.preventDefault();
}
break;
case dk.TAB:
var _b=this.attr("displayedValue");
if(pw&&(_b==pw._messages["previousMessage"]||_b==pw._messages["nextMessage"])){
break;
}
if(_a){
pw.attr("value",{target:_a});
}
if(this._isShowingNow){
this._lastQuery=null;
this._hideResultList();
}
break;
case " ":
if(_a){
dojo.stopEvent(_6);
this._selectOption();
this._hideResultList();
}else{
_8=true;
}
break;
case dk.ESCAPE:
if(this._isShowingNow){
dojo.stopEvent(_6);
this._hideResultList();
if(this._currentInput){
this.focusNode.value=this._currentInput;
delete this._currentInput;
}
}
break;
case dk.DELETE:
case dk.BACKSPACE:
this._prev_key_backspace=true;
_8=true;
break;
default:
this.focusNode.focus();
_8=typeof _7=="string"||_7==229;
}
if(_8){
this.item=undefined;
this.searchTimer=setTimeout(dojo.hitch(this,_9),1);
}
},_startSearch:function(_c,_d){
_d=_d||{};
if(_d.searchImmediately){
_d.searchBoth=true;
}
var _e=this.id+"_popup";
if(!this._popupWidget){
this._popupWidget={handleKey:function(){
},getHighlightedOption:function(){
},searchDirectory:function(){
},attr:function(){
},_messages:{},domNode:this._resultsNode};
var _f=this.textbox.getAttribute("wairole");
if(_f){
dijit.setWaiRole(this.textbox,_f);
}
dijit.setWaiState(this._popupWidget.domNode,"live","polite");
dijit.removeWaiState(this.focusNode,"activedescendant");
dijit.setWaiState(this.textbox,"owns",_e);
}else{
}
this.item=null;
var _10=dojo.clone(this.query);
this._lastQuery=_10=_c;
this.searchTimer=setTimeout(dojo.hitch(this,function(_11,_12){
var _13=this.store.fetch({queryOptions:dojo.mixin({ignoreCase:this.ignoreCase,deep:true},_d),query:_11,onComplete:dojo.hitch(this,"_openResultList"),onError:function(_14){
console.error("dijit.form.ComboBox: "+_14);
dojo.hitch(_12,"_hideResultList")();
},start:0,count:this.pageSize});
var _15=function(_16,_17){
_16.start+=_16.count*_17;
_16.direction=_17;
this.store.fetch(_16);
};
this._nextSearch=this._popupWidget.onPage=dojo.hitch(this,_15,_13);
this._popupWidget.searchDirectory=dojo.hitch(this,dojo.hitch(this,function(){
_13.queryOptions.searchDirectory=true;
this.store.fetch(_13);
}));
},_10,this),_d.searchImmediately?1:this.searchDelay);
}});
}


;if(!dojo._hasResource["lconn.profiles.contactInfo"]){
dojo._hasResource["lconn.profiles.contactInfo"]=true;
dojo.provide("lconn.profiles.contactInfo");
lconn.profiles.contactInfo.instance=function(){
this.onLoad=function(){
var _1="_"+this.iContext.widgetId+"_";
var _2=this.iContext.getiDescriptor().getItemValue("mode");
var _3=(_2=="fullpage")?"maximize":"normal";
var _4=(_2=="fullpage")?"contactInfo_widgetId_fullpage_container":"contactInfo_widgetId_container";
var el=document.getElementById(_4);
if(el){
el.innerHTML=generalrs.contactInfoLoading;
}
var _5=applicationContext+"/html/profileDetails.do?key="+profilesData.displayedUser.key+"&lastMod="+profilesData.config.profileLastMod+"&lang="+appLang+"&section=contactInformation";
lconn.profiles.xhrGet({url:_5,load:function(_6,_7){
try{
var el=document.getElementById(_4);
if(el){
el.innerHTML=_6;
}
}
catch(exception){
lconn.profiles.ProfilesCore.DefaultErrorHandler(_1,exception,_4);
}
},error:lconn.profiles.ProfilesCore.DefaultXHRErrorHandler,checkAuthHeader:true});
};
};
}


;if(!dojo._hasResource["lconn.profiles.backgroundInfo"]){
dojo._hasResource["lconn.profiles.backgroundInfo"]=true;
dojo.provide("lconn.profiles.backgroundInfo");
lconn.profiles.backgroundInfo.instance=function(){
this.onLoad=function(){
var _1="_"+this.iContext.widgetId+"_";
var _2=this.iContext.getiDescriptor().getItemValue("mode");
var _3=(_2=="fullpage")?"maximize":"normal";
var _4=(_2=="fullpage")?"backgroundInfo_widgetId_fullpage_container":"backgroundInfo_widgetId_container";
var el=document.getElementById(_4);
if(el){
el.innerHTML=generalrs.backgroundInfoLoading;
}
var _5=applicationContext+"/html/profileDetails.do?key="+profilesData.displayedUser.key+"&lastMod="+profilesData.config.profileLastMod+"&lang="+appLang+"&section=associatedInformation";
lconn.profiles.xhrGet({url:_5,load:function(_6,_7){
try{
var el=document.getElementById(_4);
if(el){
el.innerHTML=_6;
}
}
catch(exception){
lconn.profiles.ProfilesCore.DefaultErrorHandler(_1,exception,_4);
}
},error:lconn.profiles.ProfilesCore.DefaultXHRErrorHandler,checkAuthHeader:true});
};
};
}


;if(!dojo._hasResource["lconn.profiles.profileDetails"]){
dojo._hasResource["lconn.profiles.profileDetails"]=true;
dojo.provide("lconn.profiles.profileDetails");
lconn.profiles.profileDetails.instance=function(){
this.onLoad=function(){
var _1="_"+this.iContext.widgetId+"_";
var _2=this.iContext.getiDescriptor().getItemValue("mode");
var _3=(_2=="fullpage")?"maximize":"normal";
var _4=(_2=="fullpage")?_1+"profileDetails_fullpage_container":_1+"profileDetails_widget_container";
var _5=this.iContext.widgetId+"Loading";
var _6=document.getElementById(_1+"pageSubTitle");
var _7=document.getElementById(_4);
if(_7){
_7.innerHTML=generalrs[_5];
}
var _8=this.iContext.getiWidgetAttributes();
var _9=_8.getItemValue("section");
var _a=applicationContext+"/html/profileDetails.do?key="+profilesData.displayedUser.key+"&lastMod="+profilesData.config.profileLastMod+"&lang="+appLang+"&section="+_9;
lconn.profiles.xhrGet({url:_a,load:function(_b,_c){
try{
if(_7){
_7.innerHTML=_b;
dojo.style(_7,"overflow","auto");
}
if(_6&&_6.innerHTML.length==0){
_6.parentNode.removeChild(_6);
}
}
catch(exception){
lconn.profiles.ProfilesCore.DefaultErrorHandler(_1,exception,_4);
}
},error:lconn.profiles.ProfilesCore.DefaultXHRErrorHandler,checkAuthHeader:true});
};
};
}


;if(!dojo._hasResource["lconn.profiles.multiWidget"]){
dojo._hasResource["lconn.profiles.multiWidget"]=true;
dojo.provide("lconn.profiles.multiWidget");
(function(){
lconn.profiles.multiWidget=function(){
this.onLoad=function(){
var _1=this.iContext.widgetId;
var _2=this.iContext.getiDescriptor().getItemValue("mode");
var _3="normal";
var _4=this.iContext.getRootElement();
if(_4){
dojo.create("div",{innerHTML:"<div id=\""+_1+"_widgetId_container\" style=\"clear: both;\">"+"<div id=\"lconn_"+_1+"_CenterTabsDiv\" class=\"lotusTabContainer\" style=\"height: auto;\">"+"<ul id=\"lconn_"+_1+"_CenterTabsUL\" class=\"lotusTabs\" role=\"tablist\" style=\"min-width: 700px;\">"+"</ul>"+"</div>"+"<div id=\""+_1+"_widgetId_moreActions\" class=\"lotusWidget2\" style=\"position: absolute; z-index: 100; display: none; border-width: 0px;\">"+"<h2>"+"<a id=\""+_1+"_widgetId_moreActionsLink\" aria-haspopup=\"true\" role=\"button\" href=\"javascript:void(0);\" class=\"lotusIcon lotusActionMenu\">"+"<img alt=\"\" src=\""+dijit._Widget.prototype._blankGif+"\">"+"<span class=\"lotusAltText\"></span>"+"</a>"+"</h2>"+"</div>"+"<div id=\"lconn_"+_1+"_CenterTabContent\" class=\"profileContents\" tabindex=\"0\">"+"<span id=\"widget-container-"+_1+"\"></span>"+"</div>"+"</div>"},_4);
WidgetPlacementConfig.TabContainerDomId="lconn_"+_1+"_CenterTabsUL";
WidgetPlacementConfig.TempWidgetContainerDomId=null;
WidgetPlacementConfig.firstWidget=null;
WidgetPlacementConfig.defaultPageId=profilesData.config.pageId;
var _5=lconn.core.WidgetPlacement.addTabsWithOnclickCalls("lconn_"+_1+"_CenterTabsUL",_1,null,null,null,null,[{moreActionsContainerNode:dojo.byId(_1+"_widgetId_moreActions")}]);
if(_5){
dojo.connect(_5,"_selectItem",dojo.hitch(_5,function(){
this.allItems[this.selIdx].focus();
}));
}
if(WidgetPlacementConfig.firstWidget!=null){
activateTabbedWidget(WidgetPlacementConfig.firstWidget.widgetDefinitionNode,WidgetPlacementConfig.firstWidget.widgetInstanceNode,"view",null,"lconn_"+_1+"_CenterTabsUL",false,null);
}
this._startResizeMonitor();
}
};
this._oldAttr={};
this._startResizeMonitor=function(){
var _6=dojo.byId(this.iContext.widgetId+"_widgetId_container");
var _7=dojo.byId(this.iContext.widgetId+"_widgetId_moreActions");
setInterval(dojo.hitch(this,function(){
try{
var _8=dojo.marginBox(_6);
var _9={display:"inline",top:parseInt(_8.t,10)+"px"};
if(dojo.isBodyLtr()){
_9.left=parseInt(_8.l+_8.w-dojo.position(_7).w,10)+"px";
}else{
_9.left=parseInt(_8.l,10)+"px";
}
if(dojo.toJson(_9)!==dojo.toJson(this._oldAttr)){
dojo.style(_7,_9);
this._oldAttr=_9;
}
}
catch(e){
}
}),500);
};
};
})();
}


;if(!dojo._hasResource["lconn.profiles.ProfilesTagWidget"]){
dojo._hasResource["lconn.profiles.ProfilesTagWidget"]=true;
dojo.provide("lconn.profiles.ProfilesTagWidget");


dojo.declare("lconn.profiles.ProfilesTagWidget",[lconn.core.CommonTags.TagWidget],{removeUrl:null,appLang:null,_createTypeAhead:function(){
this.inherited(arguments);
var _1=dijit.byId(this.id+"commonTagsTypeAhead");
if(_1!=null){
_1.submitFormOnKey=true;
}
},prepareData:function(){
this.inherited(arguments);
if(this.selectedTags){
if(this.selectedTags.indexOf(" ")==-1&&this.selectedTags.indexOf("+")>-1){
this.selectedTags=this.selectedTags.replace(/\+/g," ");
this._selectedTagsArr=(this.selectedTags.split(" ")).sort();
}
}
},_preProcessTag:function(){
if(this.appLang||appLang){
if(this.appLang==null&&appLang){
this.appLang=appLang;
}
dojo.mixin(this.ajaxCall.URL_PARAMETERS,{lang:this.appLang});
}
try{
if(this.ajaxCall.URL_PARAMETERS.page){
delete this.ajaxCall.URL_PARAMETERS.page;
}
}
catch(e){
}
},_postProcessTag:function(){
try{
if(this.ajaxCall.URL_PARAMETERS.lang){
delete this.ajaxCall.URL_PARAMETERS.lang;
}
}
catch(e){
}
},_removeSelectedTag:function(_2){
if(this.removeUrl){
this.ajaxCall.REDIRECT_URL=this.removeUrl;
}
this._preProcessTag();
this.inherited(arguments);
this.ajaxCall.REDIRECT_URL=this.redirectUrl;
this._postProcessTag();
},_addSelectedTag:function(_3){
this._preProcessTag();
this.inherited(arguments);
this._postProcessTag();
}});
}


;define("dojox/encoding/digests/_base",["dojo/_base/lang"],function(_1){
var _2=_1.getObject("dojox.encoding.digests",true);
_2.outputTypes={Base64:0,Hex:1,String:2,Raw:3};
_2.addWords=function(a,b){
var l=(a&65535)+(b&65535);
var m=(a>>16)+(b>>16)+(l>>16);
return (m<<16)|(l&65535);
};
var _3=8;
var _4=(1<<_3)-1;
_2.stringToWord=function(s){
var wa=[];
for(var i=0,l=s.length*_3;i<l;i+=_3){
wa[i>>5]|=(s.charCodeAt(i/_3)&_4)<<(i%32);
}
return wa;
};
_2.wordToString=function(wa){
var s=[];
for(var i=0,l=wa.length*32;i<l;i+=_3){
s.push(String.fromCharCode((wa[i>>5]>>>(i%32))&_4));
}
return s.join("");
};
_2.wordToHex=function(wa){
var h="0123456789abcdef",s=[];
for(var i=0,l=wa.length*4;i<l;i++){
s.push(h.charAt((wa[i>>2]>>((i%4)*8+4))&15)+h.charAt((wa[i>>2]>>((i%4)*8))&15));
}
return s.join("");
};
_2.wordToBase64=function(wa){
var p="=",_5="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=[];
for(var i=0,l=wa.length*4;i<l;i+=3){
var t=(((wa[i>>2]>>8*(i%4))&255)<<16)|(((wa[i+1>>2]>>8*((i+1)%4))&255)<<8)|((wa[i+2>>2]>>8*((i+2)%4))&255);
for(var j=0;j<4;j++){
if(i*8+j*6>wa.length*32){
s.push(p);
}else{
s.push(_5.charAt((t>>6*(3-j))&63));
}
}
}
return s.join("");
};
_2.stringToUtf8=function(_6){
var _7="";
var i=-1;
var x,y;
while(++i<_6.length){
x=_6.charCodeAt(i);
y=i+1<_6.length?_6.charCodeAt(i+1):0;
if(55296<=x&&x<=56319&&56320<=y&&y<=57343){
x=65536+((x&1023)<<10)+(y&1023);
i++;
}
if(x<=127){
_7+=String.fromCharCode(x);
}else{
if(x<=2047){
_7+=String.fromCharCode(192|((x>>>6)&31),128|(x&63));
}else{
if(x<=65535){
_7+=String.fromCharCode(224|((x>>>12)&15),128|((x>>>6)&63),128|(x&63));
}else{
if(x<=2097151){
_7+=String.fromCharCode(240|((x>>>18)&7),128|((x>>>12)&63),128|((x>>>6)&63),128|(x&63));
}
}
}
}
}
return _7;
};
return _2;
});


;define("dojox/encoding/digests/MD5",["./_base"],function(_1){
var _2=8;
function R(n,c){
return (n<<c)|(n>>>(32-c));
};
function C(q,a,b,x,s,t){
return _1.addWords(R(_1.addWords(_1.addWords(a,q),_1.addWords(x,t)),s),b);
};
function FF(a,b,c,d,x,s,t){
return C((b&c)|((~b)&d),a,b,x,s,t);
};
function GG(a,b,c,d,x,s,t){
return C((b&d)|(c&(~d)),a,b,x,s,t);
};
function HH(a,b,c,d,x,s,t){
return C(b^c^d,a,b,x,s,t);
};
function II(a,b,c,d,x,s,t){
return C(c^(b|(~d)),a,b,x,s,t);
};
function _3(x,_4){
x[_4>>5]|=128<<((_4)%32);
x[(((_4+64)>>>9)<<4)+14]=_4;
var a=1732584193;
var b=-271733879;
var c=-1732584194;
var d=271733878;
for(var i=0;i<x.length;i+=16){
var _5=a;
var _6=b;
var _7=c;
var _8=d;
a=FF(a,b,c,d,x[i+0],7,-680876936);
d=FF(d,a,b,c,x[i+1],12,-389564586);
c=FF(c,d,a,b,x[i+2],17,606105819);
b=FF(b,c,d,a,x[i+3],22,-1044525330);
a=FF(a,b,c,d,x[i+4],7,-176418897);
d=FF(d,a,b,c,x[i+5],12,1200080426);
c=FF(c,d,a,b,x[i+6],17,-1473231341);
b=FF(b,c,d,a,x[i+7],22,-45705983);
a=FF(a,b,c,d,x[i+8],7,1770035416);
d=FF(d,a,b,c,x[i+9],12,-1958414417);
c=FF(c,d,a,b,x[i+10],17,-42063);
b=FF(b,c,d,a,x[i+11],22,-1990404162);
a=FF(a,b,c,d,x[i+12],7,1804603682);
d=FF(d,a,b,c,x[i+13],12,-40341101);
c=FF(c,d,a,b,x[i+14],17,-1502002290);
b=FF(b,c,d,a,x[i+15],22,1236535329);
a=GG(a,b,c,d,x[i+1],5,-165796510);
d=GG(d,a,b,c,x[i+6],9,-1069501632);
c=GG(c,d,a,b,x[i+11],14,643717713);
b=GG(b,c,d,a,x[i+0],20,-373897302);
a=GG(a,b,c,d,x[i+5],5,-701558691);
d=GG(d,a,b,c,x[i+10],9,38016083);
c=GG(c,d,a,b,x[i+15],14,-660478335);
b=GG(b,c,d,a,x[i+4],20,-405537848);
a=GG(a,b,c,d,x[i+9],5,568446438);
d=GG(d,a,b,c,x[i+14],9,-1019803690);
c=GG(c,d,a,b,x[i+3],14,-187363961);
b=GG(b,c,d,a,x[i+8],20,1163531501);
a=GG(a,b,c,d,x[i+13],5,-1444681467);
d=GG(d,a,b,c,x[i+2],9,-51403784);
c=GG(c,d,a,b,x[i+7],14,1735328473);
b=GG(b,c,d,a,x[i+12],20,-1926607734);
a=HH(a,b,c,d,x[i+5],4,-378558);
d=HH(d,a,b,c,x[i+8],11,-2022574463);
c=HH(c,d,a,b,x[i+11],16,1839030562);
b=HH(b,c,d,a,x[i+14],23,-35309556);
a=HH(a,b,c,d,x[i+1],4,-1530992060);
d=HH(d,a,b,c,x[i+4],11,1272893353);
c=HH(c,d,a,b,x[i+7],16,-155497632);
b=HH(b,c,d,a,x[i+10],23,-1094730640);
a=HH(a,b,c,d,x[i+13],4,681279174);
d=HH(d,a,b,c,x[i+0],11,-358537222);
c=HH(c,d,a,b,x[i+3],16,-722521979);
b=HH(b,c,d,a,x[i+6],23,76029189);
a=HH(a,b,c,d,x[i+9],4,-640364487);
d=HH(d,a,b,c,x[i+12],11,-421815835);
c=HH(c,d,a,b,x[i+15],16,530742520);
b=HH(b,c,d,a,x[i+2],23,-995338651);
a=II(a,b,c,d,x[i+0],6,-198630844);
d=II(d,a,b,c,x[i+7],10,1126891415);
c=II(c,d,a,b,x[i+14],15,-1416354905);
b=II(b,c,d,a,x[i+5],21,-57434055);
a=II(a,b,c,d,x[i+12],6,1700485571);
d=II(d,a,b,c,x[i+3],10,-1894986606);
c=II(c,d,a,b,x[i+10],15,-1051523);
b=II(b,c,d,a,x[i+1],21,-2054922799);
a=II(a,b,c,d,x[i+8],6,1873313359);
d=II(d,a,b,c,x[i+15],10,-30611744);
c=II(c,d,a,b,x[i+6],15,-1560198380);
b=II(b,c,d,a,x[i+13],21,1309151649);
a=II(a,b,c,d,x[i+4],6,-145523070);
d=II(d,a,b,c,x[i+11],10,-1120210379);
c=II(c,d,a,b,x[i+2],15,718787259);
b=II(b,c,d,a,x[i+9],21,-343485551);
a=_1.addWords(a,_5);
b=_1.addWords(b,_6);
c=_1.addWords(c,_7);
d=_1.addWords(d,_8);
}
return [a,b,c,d];
};
function _9(_a,_b){
var wa=_1.stringToWord(_b);
if(wa.length>16){
wa=_3(wa,_b.length*_2);
}
var l=[],r=[];
for(var i=0;i<16;i++){
l[i]=wa[i]^909522486;
r[i]=wa[i]^1549556828;
}
var h=_3(l.concat(_1.stringToWord(_a)),512+_a.length*_2);
return _3(r.concat(h),640);
};
_1.MD5=function(_c,_d){
var _e=_d||_1.outputTypes.Base64;
var wa=_3(_1.stringToWord(_c),_c.length*_2);
switch(_e){
case _1.outputTypes.Raw:
return wa;
case _1.outputTypes.Hex:
return _1.wordToHex(wa);
case _1.outputTypes.String:
return _1.wordToString(wa);
default:
return _1.wordToBase64(wa);
}
};
_1.MD5._hmac=function(_f,key,_10){
var out=_10||_1.outputTypes.Base64;
var wa=_9(_f,key);
switch(out){
case _1.outputTypes.Raw:
return wa;
case _1.outputTypes.Hex:
return _1.wordToHex(wa);
case _1.outputTypes.String:
return _1.wordToString(wa);
default:
return _1.wordToBase64(wa);
}
};
return _1.MD5;
});

dojo.provide("lconn.profiles.directory.nls.common")._built=true;
dojo.provide("lconn.profiles.directory.nls.common.en");
lconn.profiles.directory.nls.common.en={"DISPLAY_FULL_OPTIONS":"Display full search options","ALL_RESULTS":"Showing all ${count} results","LOADING":"Loading...","TOTAL_RESULTS_A11Y":"Over ${count} results","NO_RESULTS_TIP1":"Double check the spelling of your terms.","NO_RESULTS_TIP2":"Try using various synonyms or more general terms.","SEARCH_ALL_PROFILES":"Search all profiles","NO_RESULTS_TIP3":"Consider performing a \x3ca href=\'javascript:;\'\x3efull search\x3c/a\x3e to find results that match content beyond names, emails, job titles, organizations, departments, tags, and addresses.","SEARCH_TITLE":"Directory Search","SEARCH_CHAMPIONS_PROFILES":"Search only IBM Champion profiles","NO_RESULTS_TIP_MSG":"Some suggestions:","ONE_RESULT":"Showing 1 result","NO_RESULTS_MSG":"Sorry, no results containing your search term(s) were found.","TOTAL_RESULTS":"Over ${count} results - Scroll for more"};

;if(!dojo._hasResource["lconn.profiles.directory.Localization"]){
dojo._hasResource["lconn.profiles.directory.Localization"]=true;
dojo.provide("lconn.profiles.directory.Localization");


dojo.requireLocalization("lconn.profiles.directory","common");
dojo.declare("lconn.profiles.directory.Localization",null,{commonStrings:null,postMixInProperties:function(){
this.commonStrings=dojo.i18n.getLocalization("lconn.profiles.directory","common");
dojo.mixin(this,this.commonStrings);
this.inherited(arguments);
},getString:function(_1,_2){
return dojo.string.substitute(this.commonStrings[_1],_2);
}});
}


;dojo.cache("lconn.profiles", "directory/templates/ResultsWidget.html", "<div class=\"lconnSearchResults\"> <div id=\"directory_resultCountA11y\" class=\"lotusOffScreen\" dojoAttachPoint=\"resultCountA11y\" aria-live=\"assertive\"></div> <div dojoAttachPoint=\"noResultsMessage\" class=\"lconn_noResultsMessage lotusHidden\"> <div class=\"lconn_message\">${NO_RESULTS_MSG}</div> <div class=\"lconn_tips\"> <div class=\"lconn_tipMessage\">${NO_RESULTS_TIP_MSG}</div> <ul> <li>${NO_RESULTS_TIP1}</li> <li>${NO_RESULTS_TIP2}</li> <li>${NO_RESULTS_TIP3}</li> </ul> </div> </div> <div dojoAttachPoint=\"resultContainer\" class=\"lconn_resultContainer lconnSearchHighlight\"> <div dojoAttachPoint=\"loadingFrame\" class=\"lconnApplicationLoading\"> <img class=\"lotusLoading\" src=\"${blankGif}\" role=\"presentation\" alt=\"\"> <div tabindex=\"0\" dojoAttachPoint=\"loadingFrameFocusable\">${LOADING}</div> </div> </div></div>");

;if(!dojo._hasResource["lconn.profiles.directory.ResultsWidget"]){
dojo._hasResource["lconn.profiles.directory.ResultsWidget"]=true;
dojo.provide("lconn.profiles.directory.ResultsWidget");










dojo.declare("lconn.profiles.directory.ResultsWidget",[dijit._Widget,dijit._Templated,lconn.profiles.directory.Localization],{templatePath:dojo.moduleUrl("lconn.profiles","directory/templates/ResultsWidget.html"),widgetsInTemplate:false,blankGif:"",createdWidgets:null,lastRow:null,lastRowConfidence:"",lowElementsPerRow:3,mediumElementsPerRow:2,highElementsPerRow:1,maxRowsPerPage:5,lastRowId:"DirectoryResultWidgetLastRow",resultCount:0,toGiveFocus:null,topFixedElement:null,allowAdvancedSearch:true,constructor:function(){
this.inherited(arguments);
this.blankGif=lconn.core.widgetUtils.addVersionNumber(djConfig.blankGif.substr(0,djConfig.blankGif.indexOf("?")));
},startup:function(){
this.inherited(arguments);
this.domNode.style.display="none";
this.createdWidgets=[];
this.connect(window,"onscroll","_onContainerScroll");
var _1=this.noResultsMessage.getElementsByTagName("a")[0];
if(this.allowAdvancedSearch){
_1.setAttribute("role","button");
this.connect(_1,"onclick","onFullSearchClicked");
}else{
dojo.addClass(_1.parentElement,"lotusHidden");
}
this.connect(this.loadingFrameFocusable,"onfocus",dojo.hitch(this,"_onEntryFocused",this.loadingFrame));
},uninitialize:function(){
this._cleanAll();
this.inherited(arguments);
},_cleanAll:function(){
window.scroll(0,0);
this.resultContainer.innerHTML="";
if(this.createdWidgets){
for(var i=this.createdWidgets.length-1;i>=0;i--){
this.createdWidgets[i].destroyRecursive();
}
}
this.createdWidgets=[];
this.domNode.style.display="none";
this.resultCountA11y.innerHTML="";
dojo.addClass(this.noResultsMessage,"lotusHidden");
this.resultContainer.appendChild(this.loadingFrame);
},setResults:function(_2,_3,_4){
this._cleanAll();
this.resultCount=_3;
if(!_2||!_3){
this.domNode.style.display="";
dojo.removeClass(this.noResultsMessage,"lotusHidden");
dojo.addClass(this.resultCountNode,"lotusHidden");
this._checkLastPage(0,0,0);
this.resultCount=0;
this.updateA11yResultCount("");
this.onResultSet();
return;
}
this.domNode.style.display="";
this.totalResults.innerHTML=this.getString("TOTAL_RESULTS",{count:_3});
this.allResults.innerHTML=_3==1?this.getString("ONE_RESULT"):this.getString("ALL_RESULTS",{count:_3});
dojo.removeClass(this.resultCountNode,"lotusHidden");
this.appendResults(_2,_3,_4);
this._checkMoreResultsNeeded();
this.onResultSet();
},appendResults:function(_5,_6,_7){
var _8=[];
var _9=[];
var _a=[];
this._checkLastPage(_5.length,_6,_7);
for(var i=0;i<_5.length;i++){
if(_5[i].confidence=="high"){
_8.push(_5[i]);
}else{
if(_5[i].confidence=="medium"){
_9.push(_5[i]);
}else{
_a.push(_5[i]);
}
}
}
this._insertRows(_8,this.highElementsPerRow,"high");
this._insertRows(_9,this.mediumElementsPerRow,"medium");
this._insertRows(_a,this.lowElementsPerRow,"low");
if(typeof SemTagSvc!=="undefined"){
SemTagSvc.parseDom(null,this.resultContainer);
}
if(document.activeElement==this.loadingFrameFocusable&&this.toGiveFocus){
this.toGiveFocus.focus();
this.toGiveFocus=null;
}
this.domNode.style.display="";
},_createNewRow:function(){
var _b=document.createElement("div");
_b.style.margin="20px 0px";
return _b;
},_insertRows:function(_c,_d,_e){
if(_c.length>0){
this.lastRow=document.getElementById(this.lastRowId);
if(!this.lastRow){
this.lastRow=this._createNewRow();
}else{
this.lastRow.removeAttribute("id");
if(this.lastRowConfidence!=_e){
this.lastRow=this._createNewRow();
}
}
this.lastRowConfidence=_e;
}else{
return;
}
for(var i=0;i<_c.length;i++){
var _f=new com.ibm.social.personcard.widget.PersonWidget({userId:(_c[i].id?_c[i].id:""),displayName:(_c[i].name?_c[i].name:""),preferredName:(_c[i].preferredFirstName?_c[i].preferredFirstName:""),givenNames:(_c[i].givenNames?_c[i].givenNames:null),jobResponsibility:(_c[i].jobResponsibility?_c[i].jobResponsibility:""),mail:(_c[i].email?_c[i].email:""),address:(_c[i].city?_c[i].city:"")+(_c[i].city&&_c[i].country?", ":"")+(_c[i].country?_c[i].country:""),phone:(_c[i].workPhone?_c[i].workPhone:""),tags:(_c[i].tag?_c[i].tag:null),confidence:_c[i].confidence});
_f.startup();
this.createdWidgets.push(_f);
_f.domNode.style.display="inline-block";
_f.domNode.style.width=(100/_d)+"%";
_f.domNode.style.cursor="pointer";
this.connect(_f.domNode,"onmouseover",dojo.hitch(this,"_switchResultSelection",_f.domNode,true));
this.connect(_f.domNode,"onmouseout",dojo.hitch(this,"_switchResultSelection",_f.domNode,false));
this.connect(_f,"onTagClicked","onTagClicked");
this.connect(_f,"onNameFocused","_onEntryFocused");
_f.connect(_f.domNode,"onclick",dojo.hitch(_f,"personClick"));
if(document.activeElement==this.loadingFrameFocusable&&!this.toGiveFocus){
this.toGiveFocus=_f.linkNode;
}
if(this.lastRow.children.length>=_d){
if(this.lastRow.parentNode!=this.resultContainer){
if(this.resultContainer.contains(this.loadingFrame)){
this.resultContainer.insertBefore(this.lastRow,this.loadingFrame);
}else{
this.resultContainer.appendChild(this.lastRow);
}
}
this.lastRow=this._createNewRow();
}
this.lastRow.appendChild(_f.domNode);
}
if(this.lastRow&&this.lastRow.children.length>0){
if(this.lastRow.children.length<_d){
this.lastRow.id=this.lastRowId;
}
if(this.lastRow.parentNode!=this.resultContainer){
if(this.resultContainer.contains(this.loadingFrame)){
this.resultContainer.insertBefore(this.lastRow,this.loadingFrame);
}else{
this.resultContainer.appendChild(this.lastRow);
}
}
}
},_checkLastPage:function(_10,_11,_12){
if(_11<=_12||_10<_12){
if(this.resultContainer.contains(this.loadingFrame)){
this.resultContainer.removeChild(this.loadingFrame);
}
}
},_setContentHeight:function(){
var _13=0;
for(var i=0;i<this.maxRowsPerPage&&i<this.resultContainer.children.length;i++){
if(this.resultContainer.children[i].getAttribute("dojoattachpoint")!="loadingFrame"){
_13+=this.resultContainer.children[i].offsetHeight+20;
}
}
_13+=20;
this.resultContainerScroller.style.height=_13+"px";
setTimeout(dojo.hitch(this,this._checkMoreResultsNeeded),1);
},_checkElementIsDisplayed:function(){
if(!this.resultContainer.contains(this.loadingFrame)){
return false;
}
var _14=dojo.isIE<=8?document.documentElement.clientHeight:window.innerHeight;
var _15=dojo.position(this.loadingFrame);
return (_15.y<_14);
},_checkEndScrolling:function(){
var _16=dojo.isChrome?document.body.scrollTop:document.documentElement.scrollTop;
var _17=dojo.isChrome?document.body.scrollHeight:document.documentElement.scrollHeight;
var _18=dojo.isIE<=8?document.documentElement.clientHeight:window.innerHeight;
if(_16<0){
_16=_17-_18;
}
var _19=dojo.position(this.resultCountNode);
var _1a="";
if((_19.y<=_18&&!this.resultContainer.contains(this.loadingFrame))||(_18+_16>=_17&&(!this.loadingFrame||!this.resultContainer.contains(this.loadingFrame)))){
this.totalResults.style.display="none";
this.allResults.style.display="";
_1a="ALL_RESULTS";
}else{
this.totalResults.style.display="";
this.allResults.style.display="none";
_1a="TOTAL_RESULTS_A11Y";
}
this.updateA11yResultCount(_1a);
},_checkMoreResultsNeeded:function(){
setTimeout(dojo.hitch(this,"_checkEndScrolling"),1);
if(!this.loadingFrame){
return;
}
setTimeout(dojo.hitch(this,function(){
if(this._checkElementIsDisplayed()){
this.onScrollToUpdate();
}
}),1);
},_switchResultSelection:function(_1b,_1c,evt){
if(_1c){
dojo.addClass(_1b,"pfSelected");
}else{
dojo.removeClass(_1b,"pfSelected");
}
},_onContainerScroll:function(){
this._checkMoreResultsNeeded();
},_onEntryFocused:function(_1d){
var _1e=this.resultCountNode;
var _1f=dojo.position(_1e);
var _20=dojo.position(this.topFixedElement);
var _21=dojo.position(_1d);
var _22=window.pageXOffset||dojo.doc.documentElement.scrollLeft;
if((_21.y+_21.h)>_1f.y){
window.scrollBy(_22,(_21.y+_21.h)-_1f.y);
}else{
if(_21.y<(_20.y+_20.h)){
window.scrollBy(_22,_21.y-(_20.y+_20.h));
}
}
},onScrollToUpdate:function(){
},onResultSet:function(){
},onFullSearchClicked:function(){
},onTagClicked:function(tag){
},setTopFixedElement:function(_23){
this.topFixedElement=_23;
},setCountNodes:function(_24,_25,all){
this.resultCountNode=_24;
this.totalResults=_25;
this.allResults=all;
},updateA11yResultCount:function(_26){
if(this.resultCount==1){
_26="ONE_RESULT";
}
this.resultCountA11y.innerHTML=this.resultCount>0?this.getString(_26,{count:this.resultCount}):this.NO_RESULTS_MSG;
}});
}


;if(!dojo._hasResource["lconn.profiles.directory.DataReader"]){
dojo._hasResource["lconn.profiles.directory.DataReader"]=true;
dojo.provide("lconn.profiles.directory.DataReader");




dojo.declare("lconn.profiles.directory.DataReader",[dijit._Widget],{lastQuery:null,additionalFields:{low:["city","country"],medium:["workPhone"],high:["tag"]},pageSize:18,basicAuthentication:"/basic",anonymousAuthentication:"/anonymous",path:"/people/typeahead",queryRunning:false,_xhr:null,startup:function(){
this.inherited(arguments);
var _1=lconn.core.url.getServiceUrl(lconn.core.config.services.search);
var _2=(lconn.core.auth.isAuthenticated()?this.basicAuthentication:this.anonymousAuthentication);
this.lastQuery={url:_1+_2+this.path,query:"",pageSize:this.pageSize,page:1,additionalFields:JSON.stringify(this.additionalFields)};
},executeQuery:function(_3,_4,_5){
if(_3){
this.lastQuery.query=_3;
this.lastQuery.page=1;
}else{
if(!this.lastQuery.query){
return;
}
}
this.abortLastRequest();
var _6={url:this._constructLastQueryString(),content:"",handleAs:"json",load:dojo.hitch(this,"_querySuccess",_4),error:dojo.hitch(this,"_queryError",_5)};
this._xhr=dojo.xhrGet(_6);
},getNextPage:function(_7,_8){
if(!this.queryRunning){
this.queryRunning=true;
this.lastQuery.page++;
this.executeQuery(null,_7,_8);
}
},resetQuery:function(){
this.lastQuery.query="";
this.lastQuery.page=1;
},_constructLastQueryString:function(){
return lconn.core.url.rewrite(this.lastQuery.url,{query:this.lastQuery.query,pageSize:this.lastQuery.pageSize,page:(this.lastQuery.page>1?this.lastQuery.page:undefined),additionalFields:this.lastQuery.additionalFields,source:"ic_dir_page"});
},_querySuccess:function(_9,_a,_b){
this._xhr=null;
this.queryRunning=false;
if(_b.xhr.status==200){
if(_9){
_9(_a.persons,_a.totalResults,this.pageSize);
}
}else{
this._queryError(null,{status:_b.xhr.status});
}
},_queryError:function(_c,_d){
this._xhr=null;
this.queryRunning=false;
if(_d.dojoType=="cancel"){
console.debug(_d);
return;
}
console.log(_d);
if(_c){
_c(_d);
}
},abortLastRequest:function(){
if(this._xhr){
this._xhr.cancel();
}
}});
}


;dojo.cache("lconn.profiles", "directory/templates/SearchBoxWidget.html", "<div><fieldset><legend class=\"lotusHidden\">Champions Search toggle</legend><input type=\"radio\" name=\"switchSimpleChampionSearch\" value=\"0\" id=\"radioSimpleSearchAll\" checked=\"checked\" onclick=\"dwProfilesSearch_SwitchProfileType(this)\" /><label class=\"dw-ic-strong\" for=\"radioSimpleSearchAll\">${SEARCH_ALL_PROFILES}</label>&nbsp;&nbsp;&nbsp;<input type=\"radio\" name=\"switchSimpleChampionSearch\" value=\"1\" id=\"radioSimpleSearchChampions\" onclick=\"dwProfilesSearch_SwitchProfileType(this)\" /><label class=\"dw-ic-strong\" for=\"radioSimpleSearchChampions\">${SEARCH_CHAMPIONS_PROFILES}</label><br/><br/></fieldset><div class=\"lotusSearch lconn_directorySearchBox\"> <span class=\"lotusBtnImg lconn_searchIcon\"> <input type=\"image\" alt=\"${SEARCH_TITLE}\" role=\"presentation\" tabindex=\"-1\" class=\"lotusSearchButton\" src=\"/developerworks/community/connections/resources/web/com.ibm.lconn.core.styles.oneui3/images/blank.gif?etag=20140819.070447\" aria-describedby=\"directory_resultCountA11y\" /> </span> <div class=\"lconn_searchBox\" title=\"${SEARCH_TITLE}\" dojoType=\"dijit.form.TextBox\" dojoAttachPoint=\"searchBox\" placeholder=\"${SEARCH_TITLE}\"></div> <div dojoAttachPoint=\"containerNode\" class=\"lconn_loadingIcon\"></div></div></div>");

;if(!dojo._hasResource["lconn.profiles.directory.SearchBoxWidget"]){
dojo._hasResource["lconn.profiles.directory.SearchBoxWidget"]=true;
dojo.provide("lconn.profiles.directory.SearchBoxWidget");










dojo.declare("lconn.profiles.directory.SearchBoxWidget",[dijit._Widget,dijit._Templated,lconn.profiles.directory.Localization],{templatePath:dojo.moduleUrl("lconn.profiles","directory/templates/SearchBoxWidget.html"),widgetsInTemplate:true,blankGif:"",constructor:function(){
this.inherited(arguments);
this.blankGif=lconn.core.widgetUtils.addVersionNumber(djConfig.blankGif.substr(0,djConfig.blankGif.indexOf("?")));
},postCreate:function(){
this.connect(this.searchBox.textbox,"onkeypress","keyPress");
},getQuery:function(){
return this.searchBox.textbox.value;
},keyPress:function(){
setTimeout(dojo.hitch(this,this.onQueryChanged),1);
},onQueryChanged:function(){
}});
}


;dojo.cache("lconn.profiles", "directory/templates/DirectoryController.html", "<div class=\"lconn_directoryPage\"> <div dojoAttachPoint=\"containerNode\"></div> <div dojoAttachPoint=\"searchPlaceholder\" style=\"visibility: hidden\" class=\"lotusHidden\"></div> <div dojoAttachPoint=\"searchNode\" class=\"lconn_searchNode\"> <div dojoType=\"lconn.profiles.directory.SearchBoxWidget\" dojoAttachPoint=\"searchTextNode\" dojoAttachEvent=\"onQueryChanged: _startQuery\" style=\"margin-bottom: 10px;\"> <div dojoAttachPoint=\"loadingIcon\" class=\"lotusHidden\"> <img class=\"lotusLoading\" src=\"${blankGif}\" role=\"presentation\"> </div> </div> <div style=\"margin-bottom: 20px;\"> <a dojoAttachPoint=\"advancedSearchLinkNode\" href=\"javascript:;\" role=\"button\" dojoAttachEvent=\"onclick: showAdvancedUI\">${DISPLAY_FULL_OPTIONS}</a> </div> </div> <div dojoAttachPoint=\"content\" class=\"lconn_content lotusHidden\"> <div dojoType=\"lconn.profiles.directory.ResultsWidget\" dojoAttachPoint=\"searchResultsNode\" dojoAttachEvent=\"onScrollToUpdate: _requestNextQueryPage, onResultSet: _showContent, onFullSearchClicked: showAdvancedUI, onTagClicked: _tagClicked\" allowAdvancedSearch=\"${allowAdvancedSearch}\"></div> </div> <div dojoAttachPoint=\"resultCountNode\" class=\"lconn_resultCount lotusHidden\"> <span dojoAttachPoint=\"totalResults\"></span> <span dojoAttachPoint=\"allResults\" style=\"display: none;\"></span> </div></div>");

;if(!dojo._hasResource["lconn.profiles.directory.DirectoryController"]){
dojo._hasResource["lconn.profiles.directory.DirectoryController"]=true;
dojo.provide("lconn.profiles.directory.DirectoryController");


















dojo.declare("lconn.profiles.directory.DirectoryController",[dijit._Widget,dijit._Templated,lconn.profiles.directory.Localization],{templatePath:dojo.moduleUrl("lconn.profiles","directory/templates/DirectoryController.html"),widgetsInTemplate:true,dataReader:null,_queryRunning:false,_queryTimeout:150,advancedSeachSection:null,footer:null,blankGif:"",cookieName:"lconn.profiles.directory",scrollHandler:null,allowAdvancedSearch:true,constructor:function(){
this.inherited(arguments);
this.blankGif=lconn.core.widgetUtils.addVersionNumber(djConfig.blankGif);
},postCreate:function(){
this.advancedSeachSection=dojo.byId("divProfilesAdvancedSearch");
this.containerNode.removeChild(this.advancedSeachSection);
this.content.appendChild(this.advancedSeachSection);
lconn.profiles.profilesSearchPage.showSimpleUI=dojo.hitch(this,"showSimpleUI");
dojo.addOnUnload(dojo.hitch(this,"updateCookie"));
this.inherited(arguments);
},startup:function(){
this.inherited(arguments);
this.dataReader=new lconn.profiles.directory.DataReader();
this.dataReader.startup();
this.connect(window,"onscroll","_checkTopBarFixed");
this.searchResultsNode.setCountNodes(this.resultCountNode,this.totalResults,this.allResults);
this.searchResultsNode.setTopFixedElement(this.searchNode);
var _1=this._splitHash(dojo.hash()).q;
if(_1){
this.searchTextNode.searchBox.textbox.value=_1;
}
if(typeof this._splitHash(dojo.hash()).advancedSearch!="undefined"&&this.allowAdvancedSearch){
this.showAdvancedUI();
return;
}else{
var _2=this._splitHash(dojo.hash());
_2.advancedSearch=undefined;
_2.simpleSearch="";
dojo.hash(this._writeHash(_2),true);
}
var _3=this.getCookieScroll();
if(_3>0){
this.scrollHandler=this.connect(this,"_showContent",dojo.hitch(this,"_scrollTo",_3));
}
this.searchTextNode.searchBox.focus();
if(_1){
this.searchTextNode.keyPress();
}
if(!this.allowAdvancedSearch){
dojo.addClass(this.advancedSearchLinkNode,"lotusHidden");
}
},uninitialize:function(){
if(this.dataReader){
this.dataReader.destroyRecursive();
}
this.inherited(arguments);
},_startQuery:function(){
if(!this._queryRunning&&this._checkQueryChanged()){
this._queryRunning=true;
dojo.removeClass(this.loadingIcon,"lotusHidden");
setTimeout(dojo.hitch(this,function(){
var _4=this.searchTextNode.getQuery();
_4=dojo.string.trim(_4);
this._queryRunning=false;
this._updateHash(_4);
if(!_4){
this.searchResultsNode._cleanAll();
this.dataReader.resetQuery();
this._hideContent();
return;
}
if(_4===this.dataReader.lastQuery.query){
dojo.addClass(this.loadingIcon,"lotusHidden");
return;
}
if(!dojo.byId("radioSimpleSearchAll").checked){
dojo.byId("profilesNameSearchField").value=_4;
dijit.byId("profilesNameSearchField")._startSearchFromInput();
setTimeout(dojo.hitch(this,function(){
dojo.addClass(this.loadingIcon,"lotusHidden");
}),500);
}else{
this.dataReader.executeQuery(_4,dojo.hitch(this.searchResultsNode,"setResults"),null);
}
}),(this._shouldDoubleTimeout()?(this._queryTimeout*2):this._queryTimeout));
}
},_requestNextQueryPage:function(){
if(typeof this._splitHash(dojo.hash()).advancedSearch!="undefined"){
return;
}
this.dataReader.getNextPage(dojo.hitch(this.searchResultsNode,"appendResults"),null);
},_shouldDoubleTimeout:function(){
return (this.searchTextNode.getQuery().length<=2);
},_checkQueryChanged:function(){
var q1=this.searchTextNode.getQuery();
var q2=this.dataReader.lastQuery.query;
return !(q1===q2);
},_tagClicked:function(_5){
if(_5){
this.searchTextNode.searchBox.textbox.value=_5;
this.searchTextNode.keyPress();
}
},_showContent:function(){
dojo.addClass(this.loadingIcon,"lotusHidden");
dojo.removeClass(this.content,"lotusHidden");
},_hideContent:function(){
dojo.addClass(this.loadingIcon,"lotusHidden");
dojo.addClass(this.content,"lotusHidden");
dojo.addClass(this.resultCountNode,"lotusHidden");
},_checkTopBarFixed:function(){
if((this.domNode.offsetWidth+"px")!=this.searchNode.style.maxWidth){
this.searchNode.style.maxWidth=this.domNode.offsetWidth+"px";
this.searchPlaceholder.style.height=this.searchNode.offsetHeight+15+"px";
}
if(typeof this._splitHash(dojo.hash()).advancedSearch!="undefined"){
return;
}
var de=dojo.doc.documentElement;
var _6=window.pageYOffset||de.scrollTop;
var _7=dojo.position(this.searchNode,true);
if(!dojo.hasClass(this.searchNode,"fixed")){
_7.y+=-15;
}
var _8=!dojo.hasClass(this.searchPlaceholder,"lotusHidden")?dojo.position(this.searchPlaceholder,true):_7;
if(_6>_8.y){
dojo.removeClass(this.searchPlaceholder,"lotusHidden");
dojo.addClass(this.searchNode,"fixed");
dojo.addClass(this.searchNode,"scrolling");
}else{
dojo.addClass(this.searchPlaceholder,"lotusHidden");
dojo.removeClass(this.searchNode,"fixed");
dojo.removeClass(this.searchNode,"scrolling");
}
},showSimpleUI:function(){
this.searchResultsNode._cleanAll();
this.dataReader.resetQuery();
this._hideContent();
if(dijit.byId("profilesNameSearchField")!==undefined){
dijit.byId("profilesNameSearchField").reset();
}
this._showContent();
dojo.addClass(this.advancedSeachSection,"lotusHidden");
dojo.removeClass(this.searchResultsNode.domNode,"lotusHidden");
dojo.removeClass(this.searchNode,"lotusHidden");
var _9=this._splitHash(dojo.hash());
_9.advancedSearch=undefined;
_9.simpleSearch="";
dojo.hash(this._writeHash(_9),true);
var _a=dojo.byId("advancedSearchForm").displayName.value;
if(_a){
this.searchTextNode.searchBox.textbox.value=_a;
if(this.searchResultsNode.resultCount>0){
dojo.removeClass(this.resultCountNode,"lotusHidden");
}
this.searchTextNode.keyPress();
}else{
this.searchTextNode.searchBox.textbox.value="";
this._hideContent();
}
setTimeout(dojo.hitch(this,function(){
this.searchTextNode.searchBox.focus();
}),1);
},showAdvancedUI:function(){
if(!this.allowAdvancedSearch){
this.showSimpleUI();
return;
}
this.searchResultsNode._cleanAll();
this.dataReader.resetQuery();
this._hideContent();
if(dijit.byId("profilesNameSearchField")!==undefined){
dijit.byId("profilesNameSearchField").reset();
}
dojo.removeClass(this.content,"lotusHidden");
dojo.addClass(this.resultCountNode,"lotusHidden");
dojo.addClass(this.searchResultsNode.domNode,"lotusHidden");
dojo.addClass(this.searchNode,"lotusHidden");
dojo.removeClass(this.advancedSeachSection,"lotusHidden");
var _b=this._splitHash(dojo.hash());
_b.advancedSearch="";
_b.simpleSearch=undefined;
dojo.hash(this._writeHash(_b),true);
dojo.byId("advancedSearchForm").displayName.value=this.searchTextNode.searchBox.textbox.value;
setTimeout(function(){
dojo.byId("advancedSearchForm").keyword.focus();
},1);
},_splitHash:function(_c){
var _d={};
if(!_c){
return _d;
}
if(_c.charAt(0)=="#"){
_c=query.substring(1);
}
var _e=_c.split("&");
for(var i=0;i<_e.length;i++){
var _f=_e[i].split("=");
var key=decodeURIComponent(_f[0]);
var _10=_d[key];
var _11="";
if(_f.length>1){
_11=decodeURIComponent(_f[1]);
}
if(dojo.isArray(_10)){
_10.push(_11);
}else{
if(_10){
_d[key]=[_10,_11];
}else{
_d[key]=_11;
}
}
}
return _d;
},_writeHash:function(map){
var out=[];
for(var key in map){
var _12=map[key];
key=encodeURIComponent(key);
if(_12){
out.push(key+"="+encodeURIComponent(_12));
}else{
if(_12!==undefined){
out.push(key);
}
}
}
return out.join("&");
},_updateHash:function(_13){
var _14=this._splitHash(dojo.hash());
_14.q=_13?_13:undefined;
dojo.hash(this._writeHash(_14),true);
},getCookieScroll:function(){
var _15=0;
var _16=lconn.core.auth.getUser();
var id=dojox.encoding.digests.MD5(window.location.href+(_16?_16.id:"anonymous"));
var _17=JSON.parse(dojo.cookie(this.cookieName)||null);
if(_17&&_17.id===id){
_15=_17.scrollTop;
dojo.cookie(this.cookieName,null,{expires:-1});
}
return _15;
},updateCookie:function(){
var _18=dojo.isChrome?document.body.scrollTop:document.documentElement.scrollTop;
if(_18<=0){
return;
}
var _19=lconn.core.auth.getUser();
var _1a={id:dojox.encoding.digests.MD5(window.location.href+(_19?_19.id:"anonymous")),scrollTop:_18};
dojo.cookie(this.cookieName,JSON.stringify(_1a));
},_scrollTo:function(_1b){
if(this.scrollHandler){
this.scrollHandler.remove();
this.scrollHandler=null;
}
var _1c=dojo.isChrome?document.body.scrollTop:document.documentElement.scrollTop;
if(_1c<_1b){
window.scrollTo(0,_1b);
setTimeout(dojo.hitch(this,"_scrollTo",_1b),1);
}
}});
}


;define("dojo/data/ItemFileReadStore",["../_base/kernel","../_base/lang","../_base/declare","../_base/array","../_base/xhr","../Evented","./util/filter","./util/simpleFetch","../date/stamp"],function(_1,_2,_3,_4,_5,_6,_7,_8,_9){
var _a=_3("dojo.data.ItemFileReadStore",[_6],{constructor:function(_b){
this._arrayOfAllItems=[];
this._arrayOfTopLevelItems=[];
this._loadFinished=false;
this._jsonFileUrl=_b.url;
this._ccUrl=_b.url;
this.url=_b.url;
this._jsonData=_b.data;
this.data=null;
this._datatypeMap=_b.typeMap||{};
if(!this._datatypeMap["Date"]){
this._datatypeMap["Date"]={type:Date,deserialize:function(_c){
return _9.fromISOString(_c);
}};
}
this._features={"dojo.data.api.Read":true,"dojo.data.api.Identity":true};
this._itemsByIdentity=null;
this._storeRefPropName="_S";
this._itemNumPropName="_0";
this._rootItemPropName="_RI";
this._reverseRefMap="_RRM";
this._loadInProgress=false;
this._queuedFetches=[];
if(_b.urlPreventCache!==undefined){
this.urlPreventCache=_b.urlPreventCache?true:false;
}
if(_b.hierarchical!==undefined){
this.hierarchical=_b.hierarchical?true:false;
}
if(_b.clearOnClose){
this.clearOnClose=true;
}
if("failOk" in _b){
this.failOk=_b.failOk?true:false;
}
},url:"",_ccUrl:"",data:null,typeMap:null,clearOnClose:false,urlPreventCache:false,failOk:false,hierarchical:true,_assertIsItem:function(_d){
if(!this.isItem(_d)){
throw new Error(this.declaredClass+": Invalid item argument.");
}
},_assertIsAttribute:function(_e){
if(typeof _e!=="string"){
throw new Error(this.declaredClass+": Invalid attribute argument.");
}
},getValue:function(_f,_10,_11){
var _12=this.getValues(_f,_10);
return (_12.length>0)?_12[0]:_11;
},getValues:function(_13,_14){
this._assertIsItem(_13);
this._assertIsAttribute(_14);
return (_13[_14]||[]).slice(0);
},getAttributes:function(_15){
this._assertIsItem(_15);
var _16=[];
for(var key in _15){
if((key!==this._storeRefPropName)&&(key!==this._itemNumPropName)&&(key!==this._rootItemPropName)&&(key!==this._reverseRefMap)){
_16.push(key);
}
}
return _16;
},hasAttribute:function(_17,_18){
this._assertIsItem(_17);
this._assertIsAttribute(_18);
return (_18 in _17);
},containsValue:function(_19,_1a,_1b){
var _1c=undefined;
if(typeof _1b==="string"){
_1c=_7.patternToRegExp(_1b,false);
}
return this._containsValue(_19,_1a,_1b,_1c);
},_containsValue:function(_1d,_1e,_1f,_20){
return _4.some(this.getValues(_1d,_1e),function(_21){
if(_21!==null&&!_2.isObject(_21)&&_20){
if(_21.toString().match(_20)){
return true;
}
}else{
if(_1f===_21){
return true;
}
}
});
},isItem:function(_22){
if(_22&&_22[this._storeRefPropName]===this){
if(this._arrayOfAllItems[_22[this._itemNumPropName]]===_22){
return true;
}
}
return false;
},isItemLoaded:function(_23){
return this.isItem(_23);
},loadItem:function(_24){
this._assertIsItem(_24.item);
},getFeatures:function(){
return this._features;
},getLabel:function(_25){
if(this._labelAttr&&this.isItem(_25)){
return this.getValue(_25,this._labelAttr);
}
return undefined;
},getLabelAttributes:function(_26){
if(this._labelAttr){
return [this._labelAttr];
}
return null;
},filter:function(_27,_28,_29){
var _2a=[],i,key;
if(_27.query){
var _2b,_2c=_27.queryOptions?_27.queryOptions.ignoreCase:false;
var _2d={};
for(key in _27.query){
_2b=_27.query[key];
if(typeof _2b==="string"){
_2d[key]=_7.patternToRegExp(_2b,_2c);
}else{
if(_2b instanceof RegExp){
_2d[key]=_2b;
}
}
}
for(i=0;i<_28.length;++i){
var _2e=true;
var _2f=_28[i];
if(_2f===null){
_2e=false;
}else{
for(key in _27.query){
_2b=_27.query[key];
if(!this._containsValue(_2f,key,_2b,_2d[key])){
_2e=false;
}
}
}
if(_2e){
_2a.push(_2f);
}
}
_29(_2a,_27);
}else{
for(i=0;i<_28.length;++i){
var _30=_28[i];
if(_30!==null){
_2a.push(_30);
}
}
_29(_2a,_27);
}
},_fetchItems:function(_31,_32,_33){
var _34=this;
if(this._loadFinished){
this.filter(_31,this._getItemsArray(_31.queryOptions),_32);
}else{
if(this._jsonFileUrl!==this._ccUrl){
_1.deprecated(this.declaredClass+": ","To change the url, set the url property of the store,"+" not _jsonFileUrl.  _jsonFileUrl support will be removed in 2.0");
this._ccUrl=this._jsonFileUrl;
this.url=this._jsonFileUrl;
}else{
if(this.url!==this._ccUrl){
this._jsonFileUrl=this.url;
this._ccUrl=this.url;
}
}
if(this.data!=null){
this._jsonData=this.data;
this.data=null;
}
if(this._jsonFileUrl){
if(this._loadInProgress){
this._queuedFetches.push({args:_31,filter:_2.hitch(_34,"filter"),findCallback:_2.hitch(_34,_32)});
}else{
this._loadInProgress=true;
var _35={url:_34._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,failOk:this.failOk};
var _36=_5.get(_35);
_36.addCallback(function(_37){
try{
_34._getItemsFromLoadedData(_37);
_34._loadFinished=true;
_34._loadInProgress=false;
_34.filter(_31,_34._getItemsArray(_31.queryOptions),_32);
_34._handleQueuedFetches();
}
catch(e){
_34._loadFinished=true;
_34._loadInProgress=false;
_33(e,_31);
}
});
_36.addErrback(function(_38){
_34._loadInProgress=false;
_33(_38,_31);
});
var _39=null;
if(_31.abort){
_39=_31.abort;
}
_31.abort=function(){
var df=_36;
if(df&&df.fired===-1){
df.cancel();
df=null;
}
if(_39){
_39.call(_31);
}
};
}
}else{
if(this._jsonData){
try{
this._loadFinished=true;
this._getItemsFromLoadedData(this._jsonData);
this._jsonData=null;
_34.filter(_31,this._getItemsArray(_31.queryOptions),_32);
}
catch(e){
_33(e,_31);
}
}else{
_33(new Error(this.declaredClass+": No JSON source data was provided as either URL or a nested Javascript object."),_31);
}
}
}
},_handleQueuedFetches:function(){
if(this._queuedFetches.length>0){
for(var i=0;i<this._queuedFetches.length;i++){
var _3a=this._queuedFetches[i],_3b=_3a.args,_3c=_3a.filter,_3d=_3a.findCallback;
if(_3c){
_3c(_3b,this._getItemsArray(_3b.queryOptions),_3d);
}else{
this.fetchItemByIdentity(_3b);
}
}
this._queuedFetches=[];
}
},_getItemsArray:function(_3e){
if(_3e&&_3e.deep){
return this._arrayOfAllItems;
}
return this._arrayOfTopLevelItems;
},close:function(_3f){
if(this.clearOnClose&&this._loadFinished&&!this._loadInProgress){
if(((this._jsonFileUrl==""||this._jsonFileUrl==null)&&(this.url==""||this.url==null))&&this.data==null){
console.debug(this.declaredClass+": WARNING!  Data reload "+" information has not been provided."+"  Please set 'url' or 'data' to the appropriate value before"+" the next fetch");
}
this._arrayOfAllItems=[];
this._arrayOfTopLevelItems=[];
this._loadFinished=false;
this._itemsByIdentity=null;
this._loadInProgress=false;
this._queuedFetches=[];
}
},_getItemsFromLoadedData:function(_40){
var _41=false,_42=this;
function _43(_44){
return (_44!==null)&&(typeof _44==="object")&&(!_2.isArray(_44)||_41)&&(!_2.isFunction(_44))&&(_44.constructor==Object||_2.isArray(_44))&&(typeof _44._reference==="undefined")&&(typeof _44._type==="undefined")&&(typeof _44._value==="undefined")&&_42.hierarchical;
};
function _45(_46){
_42._arrayOfAllItems.push(_46);
for(var _47 in _46){
var _48=_46[_47];
if(_48){
if(_2.isArray(_48)){
var _49=_48;
for(var k=0;k<_49.length;++k){
var _4a=_49[k];
if(_43(_4a)){
_45(_4a);
}
}
}else{
if(_43(_48)){
_45(_48);
}
}
}
}
};
this._labelAttr=_40.label;
var i,_4b;
this._arrayOfAllItems=[];
this._arrayOfTopLevelItems=_40.items;
for(i=0;i<this._arrayOfTopLevelItems.length;++i){
_4b=this._arrayOfTopLevelItems[i];
if(_2.isArray(_4b)){
_41=true;
}
_45(_4b);
_4b[this._rootItemPropName]=true;
}
var _4c={},key;
for(i=0;i<this._arrayOfAllItems.length;++i){
_4b=this._arrayOfAllItems[i];
for(key in _4b){
if(key!==this._rootItemPropName){
var _4d=_4b[key];
if(_4d!==null){
if(!_2.isArray(_4d)){
_4b[key]=[_4d];
}
}else{
_4b[key]=[null];
}
}
_4c[key]=key;
}
}
while(_4c[this._storeRefPropName]){
this._storeRefPropName+="_";
}
while(_4c[this._itemNumPropName]){
this._itemNumPropName+="_";
}
while(_4c[this._reverseRefMap]){
this._reverseRefMap+="_";
}
var _4e;
var _4f=_40.identifier;
if(_4f){
this._itemsByIdentity={};
this._features["dojo.data.api.Identity"]=_4f;
for(i=0;i<this._arrayOfAllItems.length;++i){
_4b=this._arrayOfAllItems[i];
_4e=_4b[_4f];
var _50=_4e[0];
if(!Object.hasOwnProperty.call(this._itemsByIdentity,_50)){
this._itemsByIdentity[_50]=_4b;
}else{
if(this._jsonFileUrl){
throw new Error(this.declaredClass+":  The json data as specified by: ["+this._jsonFileUrl+"] is malformed.  Items within the list have identifier: ["+_4f+"].  Value collided: ["+_50+"]");
}else{
if(this._jsonData){
throw new Error(this.declaredClass+":  The json data provided by the creation arguments is malformed.  Items within the list have identifier: ["+_4f+"].  Value collided: ["+_50+"]");
}
}
}
}
}else{
this._features["dojo.data.api.Identity"]=Number;
}
for(i=0;i<this._arrayOfAllItems.length;++i){
_4b=this._arrayOfAllItems[i];
_4b[this._storeRefPropName]=this;
_4b[this._itemNumPropName]=i;
}
for(i=0;i<this._arrayOfAllItems.length;++i){
_4b=this._arrayOfAllItems[i];
for(key in _4b){
_4e=_4b[key];
for(var j=0;j<_4e.length;++j){
_4d=_4e[j];
if(_4d!==null&&typeof _4d=="object"){
if(("_type" in _4d)&&("_value" in _4d)){
var _51=_4d._type;
var _52=this._datatypeMap[_51];
if(!_52){
throw new Error("dojo.data.ItemFileReadStore: in the typeMap constructor arg, no object class was specified for the datatype '"+_51+"'");
}else{
if(_2.isFunction(_52)){
_4e[j]=new _52(_4d._value);
}else{
if(_2.isFunction(_52.deserialize)){
_4e[j]=_52.deserialize(_4d._value);
}else{
throw new Error("dojo.data.ItemFileReadStore: Value provided in typeMap was neither a constructor, nor a an object with a deserialize function");
}
}
}
}
if(_4d._reference){
var _53=_4d._reference;
if(!_2.isObject(_53)){
_4e[j]=this._getItemByIdentity(_53);
}else{
for(var k=0;k<this._arrayOfAllItems.length;++k){
var _54=this._arrayOfAllItems[k],_55=true;
for(var _56 in _53){
if(_54[_56]!=_53[_56]){
_55=false;
}
}
if(_55){
_4e[j]=_54;
}
}
}
if(this.referenceIntegrity){
var _57=_4e[j];
if(this.isItem(_57)){
this._addReferenceToMap(_57,_4b,key);
}
}
}else{
if(this.isItem(_4d)){
if(this.referenceIntegrity){
this._addReferenceToMap(_4d,_4b,key);
}
}
}
}
}
}
}
},_addReferenceToMap:function(_58,_59,_5a){
},getIdentity:function(_5b){
var _5c=this._features["dojo.data.api.Identity"];
if(_5c===Number){
return _5b[this._itemNumPropName];
}else{
var _5d=_5b[_5c];
if(_5d){
return _5d[0];
}
}
return null;
},fetchItemByIdentity:function(_5e){
var _5f,_60;
if(!this._loadFinished){
var _61=this;
if(this._jsonFileUrl!==this._ccUrl){
_1.deprecated(this.declaredClass+": ","To change the url, set the url property of the store,"+" not _jsonFileUrl.  _jsonFileUrl support will be removed in 2.0");
this._ccUrl=this._jsonFileUrl;
this.url=this._jsonFileUrl;
}else{
if(this.url!==this._ccUrl){
this._jsonFileUrl=this.url;
this._ccUrl=this.url;
}
}
if(this.data!=null&&this._jsonData==null){
this._jsonData=this.data;
this.data=null;
}
if(this._jsonFileUrl){
if(this._loadInProgress){
this._queuedFetches.push({args:_5e});
}else{
this._loadInProgress=true;
var _62={url:_61._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,failOk:this.failOk};
var _63=_5.get(_62);
_63.addCallback(function(_64){
var _65=_5e.scope?_5e.scope:_1.global;
try{
_61._getItemsFromLoadedData(_64);
_61._loadFinished=true;
_61._loadInProgress=false;
_5f=_61._getItemByIdentity(_5e.identity);
if(_5e.onItem){
_5e.onItem.call(_65,_5f);
}
_61._handleQueuedFetches();
}
catch(error){
_61._loadInProgress=false;
if(_5e.onError){
_5e.onError.call(_65,error);
}
}
});
_63.addErrback(function(_66){
_61._loadInProgress=false;
if(_5e.onError){
var _67=_5e.scope?_5e.scope:_1.global;
_5e.onError.call(_67,_66);
}
});
}
}else{
if(this._jsonData){
_61._getItemsFromLoadedData(_61._jsonData);
_61._jsonData=null;
_61._loadFinished=true;
_5f=_61._getItemByIdentity(_5e.identity);
if(_5e.onItem){
_60=_5e.scope?_5e.scope:_1.global;
_5e.onItem.call(_60,_5f);
}
}
}
}else{
_5f=this._getItemByIdentity(_5e.identity);
if(_5e.onItem){
_60=_5e.scope?_5e.scope:_1.global;
_5e.onItem.call(_60,_5f);
}
}
},_getItemByIdentity:function(_68){
var _69=null;
if(this._itemsByIdentity){
if(Object.hasOwnProperty.call(this._itemsByIdentity,_68)){
_69=this._itemsByIdentity[_68];
}
}else{
if(Object.hasOwnProperty.call(this._arrayOfAllItems,_68)){
_69=this._arrayOfAllItems[_68];
}
}
if(_69===undefined){
_69=null;
}
return _69;
},getIdentityAttributes:function(_6a){
var _6b=this._features["dojo.data.api.Identity"];
if(_6b===Number){
return null;
}else{
return [_6b];
}
},_forceLoad:function(){
var _6c=this;
if(this._jsonFileUrl!==this._ccUrl){
_1.deprecated(this.declaredClass+": ","To change the url, set the url property of the store,"+" not _jsonFileUrl.  _jsonFileUrl support will be removed in 2.0");
this._ccUrl=this._jsonFileUrl;
this.url=this._jsonFileUrl;
}else{
if(this.url!==this._ccUrl){
this._jsonFileUrl=this.url;
this._ccUrl=this.url;
}
}
if(this.data!=null){
this._jsonData=this.data;
this.data=null;
}
if(this._jsonFileUrl){
var _6d={url:this._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,failOk:this.failOk,sync:true};
var _6e=_5.get(_6d);
_6e.addCallback(function(_6f){
try{
if(_6c._loadInProgress!==true&&!_6c._loadFinished){
_6c._getItemsFromLoadedData(_6f);
_6c._loadFinished=true;
}else{
if(_6c._loadInProgress){
throw new Error(this.declaredClass+":  Unable to perform a synchronous load, an async load is in progress.");
}
}
}
catch(e){
console.log(e);
throw e;
}
});
_6e.addErrback(function(_70){
throw _70;
});
}else{
if(this._jsonData){
_6c._getItemsFromLoadedData(_6c._jsonData);
_6c._jsonData=null;
_6c._loadFinished=true;
}
}
}});
_2.extend(_a,_8);
return _a;
});


;define("dojo/data/ItemFileWriteStore",["../_base/lang","../_base/declare","../_base/array","../_base/json","../_base/kernel","./ItemFileReadStore","../date/stamp"],function(_1,_2,_3,_4,_5,_6,_7){
return _2("dojo.data.ItemFileWriteStore",_6,{constructor:function(_8){
this._features["dojo.data.api.Write"]=true;
this._features["dojo.data.api.Notification"]=true;
this._pending={_newItems:{},_modifiedItems:{},_deletedItems:{}};
if(!this._datatypeMap["Date"].serialize){
this._datatypeMap["Date"].serialize=function(_9){
return _7.toISOString(_9,{zulu:true});
};
}
if(_8&&(_8.referenceIntegrity===false)){
this.referenceIntegrity=false;
}
this._saveInProgress=false;
},referenceIntegrity:true,_assert:function(_a){
if(!_a){
throw new Error("assertion failed in ItemFileWriteStore");
}
},_getIdentifierAttribute:function(){
return this.getFeatures()["dojo.data.api.Identity"];
},newItem:function(_b,_c){
this._assert(!this._saveInProgress);
if(!this._loadFinished){
this._forceLoad();
}
if(typeof _b!="object"&&typeof _b!="undefined"){
throw new Error("newItem() was passed something other than an object");
}
var _d=null;
var _e=this._getIdentifierAttribute();
if(_e===Number){
_d=this._arrayOfAllItems.length;
}else{
_d=_b[_e];
if(typeof _d==="undefined"){
throw new Error("newItem() was not passed an identity for the new item");
}
if(_1.isArray(_d)){
throw new Error("newItem() was not passed an single-valued identity");
}
}
if(this._itemsByIdentity){
this._assert(typeof this._itemsByIdentity[_d]==="undefined");
}
this._assert(typeof this._pending._newItems[_d]==="undefined");
this._assert(typeof this._pending._deletedItems[_d]==="undefined");
var _f={};
_f[this._storeRefPropName]=this;
_f[this._itemNumPropName]=this._arrayOfAllItems.length;
if(this._itemsByIdentity){
this._itemsByIdentity[_d]=_f;
_f[_e]=[_d];
}
this._arrayOfAllItems.push(_f);
var _10=null;
if(_c&&_c.parent&&_c.attribute){
_10={item:_c.parent,attribute:_c.attribute,oldValue:undefined};
var _11=this.getValues(_c.parent,_c.attribute);
if(_11&&_11.length>0){
var _12=_11.slice(0,_11.length);
if(_11.length===1){
_10.oldValue=_11[0];
}else{
_10.oldValue=_11.slice(0,_11.length);
}
_12.push(_f);
this._setValueOrValues(_c.parent,_c.attribute,_12,false);
_10.newValue=this.getValues(_c.parent,_c.attribute);
}else{
this._setValueOrValues(_c.parent,_c.attribute,_f,false);
_10.newValue=_f;
}
}else{
_f[this._rootItemPropName]=true;
this._arrayOfTopLevelItems.push(_f);
}
this._pending._newItems[_d]=_f;
for(var key in _b){
if(key===this._storeRefPropName||key===this._itemNumPropName){
throw new Error("encountered bug in ItemFileWriteStore.newItem");
}
var _13=_b[key];
if(!_1.isArray(_13)){
_13=[_13];
}
_f[key]=_13;
if(this.referenceIntegrity){
for(var i=0;i<_13.length;i++){
var val=_13[i];
if(this.isItem(val)){
this._addReferenceToMap(val,_f,key);
}
}
}
}
this.onNew(_f,_10);
return _f;
},_removeArrayElement:function(_14,_15){
var _16=_3.indexOf(_14,_15);
if(_16!=-1){
_14.splice(_16,1);
return true;
}
return false;
},deleteItem:function(_17){
this._assert(!this._saveInProgress);
this._assertIsItem(_17);
var _18=_17[this._itemNumPropName];
var _19=this.getIdentity(_17);
if(this.referenceIntegrity){
var _1a=this.getAttributes(_17);
if(_17[this._reverseRefMap]){
_17["backup_"+this._reverseRefMap]=_1.clone(_17[this._reverseRefMap]);
}
_3.forEach(_1a,function(_1b){
_3.forEach(this.getValues(_17,_1b),function(_1c){
if(this.isItem(_1c)){
if(!_17["backupRefs_"+this._reverseRefMap]){
_17["backupRefs_"+this._reverseRefMap]=[];
}
_17["backupRefs_"+this._reverseRefMap].push({id:this.getIdentity(_1c),attr:_1b});
this._removeReferenceFromMap(_1c,_17,_1b);
}
},this);
},this);
var _1d=_17[this._reverseRefMap];
if(_1d){
for(var _1e in _1d){
var _1f=null;
if(this._itemsByIdentity){
_1f=this._itemsByIdentity[_1e];
}else{
_1f=this._arrayOfAllItems[_1e];
}
if(_1f){
for(var _20 in _1d[_1e]){
var _21=this.getValues(_1f,_20)||[];
var _22=_3.filter(_21,function(_23){
return !(this.isItem(_23)&&this.getIdentity(_23)==_19);
},this);
this._removeReferenceFromMap(_17,_1f,_20);
if(_22.length<_21.length){
this._setValueOrValues(_1f,_20,_22,true);
}
}
}
}
}
}
this._arrayOfAllItems[_18]=null;
_17[this._storeRefPropName]=null;
if(this._itemsByIdentity){
delete this._itemsByIdentity[_19];
}
this._pending._deletedItems[_19]=_17;
if(_17[this._rootItemPropName]){
this._removeArrayElement(this._arrayOfTopLevelItems,_17);
}
this.onDelete(_17);
return true;
},setValue:function(_24,_25,_26){
return this._setValueOrValues(_24,_25,_26,true);
},setValues:function(_27,_28,_29){
return this._setValueOrValues(_27,_28,_29,true);
},unsetAttribute:function(_2a,_2b){
return this._setValueOrValues(_2a,_2b,[],true);
},_setValueOrValues:function(_2c,_2d,_2e,_2f){
this._assert(!this._saveInProgress);
this._assertIsItem(_2c);
this._assert(_1.isString(_2d));
this._assert(typeof _2e!=="undefined");
var _30=this._getIdentifierAttribute();
if(_2d==_30){
throw new Error("ItemFileWriteStore does not have support for changing the value of an item's identifier.");
}
var _31=this._getValueOrValues(_2c,_2d);
var _32=this.getIdentity(_2c);
if(!this._pending._modifiedItems[_32]){
var _33={};
for(var key in _2c){
if((key===this._storeRefPropName)||(key===this._itemNumPropName)||(key===this._rootItemPropName)){
_33[key]=_2c[key];
}else{
if(key===this._reverseRefMap){
_33[key]=_1.clone(_2c[key]);
}else{
_33[key]=_2c[key].slice(0,_2c[key].length);
}
}
}
this._pending._modifiedItems[_32]=_33;
}
var _34=false;
if(_1.isArray(_2e)&&_2e.length===0){
_34=delete _2c[_2d];
_2e=undefined;
if(this.referenceIntegrity&&_31){
var _35=_31;
if(!_1.isArray(_35)){
_35=[_35];
}
for(var i=0;i<_35.length;i++){
var _36=_35[i];
if(this.isItem(_36)){
this._removeReferenceFromMap(_36,_2c,_2d);
}
}
}
}else{
var _37;
if(_1.isArray(_2e)){
_37=_2e.slice(0,_2e.length);
}else{
_37=[_2e];
}
if(this.referenceIntegrity){
if(_31){
var _35=_31;
if(!_1.isArray(_35)){
_35=[_35];
}
var map={};
_3.forEach(_35,function(_38){
if(this.isItem(_38)){
var id=this.getIdentity(_38);
map[id.toString()]=true;
}
},this);
_3.forEach(_37,function(_39){
if(this.isItem(_39)){
var id=this.getIdentity(_39);
if(map[id.toString()]){
delete map[id.toString()];
}else{
this._addReferenceToMap(_39,_2c,_2d);
}
}
},this);
for(var rId in map){
var _3a;
if(this._itemsByIdentity){
_3a=this._itemsByIdentity[rId];
}else{
_3a=this._arrayOfAllItems[rId];
}
this._removeReferenceFromMap(_3a,_2c,_2d);
}
}else{
for(var i=0;i<_37.length;i++){
var _36=_37[i];
if(this.isItem(_36)){
this._addReferenceToMap(_36,_2c,_2d);
}
}
}
}
_2c[_2d]=_37;
_34=true;
}
if(_2f){
this.onSet(_2c,_2d,_31,_2e);
}
return _34;
},_addReferenceToMap:function(_3b,_3c,_3d){
var _3e=this.getIdentity(_3c);
var _3f=_3b[this._reverseRefMap];
if(!_3f){
_3f=_3b[this._reverseRefMap]={};
}
var _40=_3f[_3e];
if(!_40){
_40=_3f[_3e]={};
}
_40[_3d]=true;
},_removeReferenceFromMap:function(_41,_42,_43){
var _44=this.getIdentity(_42);
var _45=_41[this._reverseRefMap];
var _46;
if(_45){
for(_46 in _45){
if(_46==_44){
delete _45[_46][_43];
if(this._isEmpty(_45[_46])){
delete _45[_46];
}
}
}
if(this._isEmpty(_45)){
delete _41[this._reverseRefMap];
}
}
},_dumpReferenceMap:function(){
var i;
for(i=0;i<this._arrayOfAllItems.length;i++){
var _47=this._arrayOfAllItems[i];
if(_47&&_47[this._reverseRefMap]){
console.log("Item: ["+this.getIdentity(_47)+"] is referenced by: "+_4.toJson(_47[this._reverseRefMap]));
}
}
},_getValueOrValues:function(_48,_49){
var _4a=undefined;
if(this.hasAttribute(_48,_49)){
var _4b=this.getValues(_48,_49);
if(_4b.length==1){
_4a=_4b[0];
}else{
_4a=_4b;
}
}
return _4a;
},_flatten:function(_4c){
if(this.isItem(_4c)){
return {_reference:this.getIdentity(_4c)};
}else{
if(typeof _4c==="object"){
for(var _4d in this._datatypeMap){
var _4e=this._datatypeMap[_4d];
if(_1.isObject(_4e)&&!_1.isFunction(_4e)){
if(_4c instanceof _4e.type){
if(!_4e.serialize){
throw new Error("ItemFileWriteStore:  No serializer defined for type mapping: ["+_4d+"]");
}
return {_type:_4d,_value:_4e.serialize(_4c)};
}
}else{
if(_4c instanceof _4e){
return {_type:_4d,_value:_4c.toString()};
}
}
}
}
return _4c;
}
},_getNewFileContentString:function(){
var _4f={};
var _50=this._getIdentifierAttribute();
if(_50!==Number){
_4f.identifier=_50;
}
if(this._labelAttr){
_4f.label=this._labelAttr;
}
_4f.items=[];
for(var i=0;i<this._arrayOfAllItems.length;++i){
var _51=this._arrayOfAllItems[i];
if(_51!==null){
var _52={};
for(var key in _51){
if(key!==this._storeRefPropName&&key!==this._itemNumPropName&&key!==this._reverseRefMap&&key!==this._rootItemPropName){
var _53=this.getValues(_51,key);
if(_53.length==1){
_52[key]=this._flatten(_53[0]);
}else{
var _54=[];
for(var j=0;j<_53.length;++j){
_54.push(this._flatten(_53[j]));
_52[key]=_54;
}
}
}
}
_4f.items.push(_52);
}
}
var _55=true;
return _4.toJson(_4f,_55);
},_isEmpty:function(_56){
var _57=true;
if(_1.isObject(_56)){
var i;
for(i in _56){
_57=false;
break;
}
}else{
if(_1.isArray(_56)){
if(_56.length>0){
_57=false;
}
}
}
return _57;
},save:function(_58){
this._assert(!this._saveInProgress);
this._saveInProgress=true;
var _59=this;
var _5a=function(){
_59._pending={_newItems:{},_modifiedItems:{},_deletedItems:{}};
_59._saveInProgress=false;
if(_58&&_58.onComplete){
var _5b=_58.scope||_5.global;
_58.onComplete.call(_5b);
}
};
var _5c=function(err){
_59._saveInProgress=false;
if(_58&&_58.onError){
var _5d=_58.scope||_5.global;
_58.onError.call(_5d,err);
}
};
if(this._saveEverything){
var _5e=this._getNewFileContentString();
this._saveEverything(_5a,_5c,_5e);
}
if(this._saveCustom){
this._saveCustom(_5a,_5c);
}
if(!this._saveEverything&&!this._saveCustom){
_5a();
}
},revert:function(){
this._assert(!this._saveInProgress);
var _5f;
for(_5f in this._pending._modifiedItems){
var _60=this._pending._modifiedItems[_5f];
var _61=null;
if(this._itemsByIdentity){
_61=this._itemsByIdentity[_5f];
}else{
_61=this._arrayOfAllItems[_5f];
}
_60[this._storeRefPropName]=this;
for(var key in _61){
delete _61[key];
}
_1.mixin(_61,_60);
}
var _62;
for(_5f in this._pending._deletedItems){
_62=this._pending._deletedItems[_5f];
_62[this._storeRefPropName]=this;
var _63=_62[this._itemNumPropName];
if(_62["backup_"+this._reverseRefMap]){
_62[this._reverseRefMap]=_62["backup_"+this._reverseRefMap];
delete _62["backup_"+this._reverseRefMap];
}
this._arrayOfAllItems[_63]=_62;
if(this._itemsByIdentity){
this._itemsByIdentity[_5f]=_62;
}
if(_62[this._rootItemPropName]){
this._arrayOfTopLevelItems.push(_62);
}
}
for(_5f in this._pending._deletedItems){
_62=this._pending._deletedItems[_5f];
if(_62["backupRefs_"+this._reverseRefMap]){
_3.forEach(_62["backupRefs_"+this._reverseRefMap],function(_64){
var _65;
if(this._itemsByIdentity){
_65=this._itemsByIdentity[_64.id];
}else{
_65=this._arrayOfAllItems[_64.id];
}
this._addReferenceToMap(_65,_62,_64.attr);
},this);
delete _62["backupRefs_"+this._reverseRefMap];
}
}
for(_5f in this._pending._newItems){
var _66=this._pending._newItems[_5f];
_66[this._storeRefPropName]=null;
this._arrayOfAllItems[_66[this._itemNumPropName]]=null;
if(_66[this._rootItemPropName]){
this._removeArrayElement(this._arrayOfTopLevelItems,_66);
}
if(this._itemsByIdentity){
delete this._itemsByIdentity[_5f];
}
}
this._pending={_newItems:{},_modifiedItems:{},_deletedItems:{}};
return true;
},isDirty:function(_67){
if(_67){
var _68=this.getIdentity(_67);
return new Boolean(this._pending._newItems[_68]||this._pending._modifiedItems[_68]||this._pending._deletedItems[_68]).valueOf();
}else{
return !this._isEmpty(this._pending._newItems)||!this._isEmpty(this._pending._modifiedItems)||!this._isEmpty(this._pending._deletedItems);
}
},onSet:function(_69,_6a,_6b,_6c){
},onNew:function(_6d,_6e){
},onDelete:function(_6f){
},close:function(_70){
if(this.clearOnClose){
if(!this.isDirty()){
this.inherited(arguments);
}else{
throw new Error("dojo.data.ItemFileWriteStore: There are unsaved changes present in the store.  Please save or revert the changes before invoking close.");
}
}
}});
});


;dojo.cache("lconn.profiles", "actionBar/templates/ActionBar.html", "<span style=\"overflow:visible; height:auto;\"> <span dojoAttachPoint=\"stylesNode\" class=\"${hiddenClassName}\"> <style type=\"text/css\"> .AEMenuItemIcon_${id} { width: 13px; height: 13px; } </style> </span> <span dojoAttachPoint=\"buttonsNode\" class=\"${hiddenClassName}\"></span> <button dojoAttachPoint=\"singleButtonNode\" class=\"lotusBtn ${hiddenClassName}\" title=\"\"> <img dojoAttachPoint=\"singleButtonImageNode\" alt=\"\" class=\"AEMenuItemIcon_${id} ${hiddenClassName}\" src=\"${blankGif}\" /> <span dojoAttachPoint=\"singleButtonTextNode\">&nbsp;</span> </button> <button dojoAttachPoint=\"moreActionsNode\" dojoAttachEvent=\"onclick: _showMoreActions\" class=\"lotusBtn ${hiddenClassName}\" title=\"${strings.personCardMoreActions}\" aria-haspopup=\"true\" id=\"moreActionsBtn_${id}\"> <span>${strings.personCardMoreActions}<span> <img alt=\"\" class=\"lotusArrow lotusDropDownSprite\" src=\"${blankGif}\" /><span class=\"lotusAltText\">&#9660;</span> </button> <div dojoAttachPoint=\"menuNode\" class=\"${hiddenClassName}\" id=\"AEMenu_${id}\"></div></span>");

;if(!dojo._hasResource["lconn.profiles.actionBar.ActionBar"]){
dojo._hasResource["lconn.profiles.actionBar.ActionBar"]=true;
dojo.provide("lconn.profiles.actionBar.ActionBar");














dojo.requireLocalization("lconn.profiles","ui");
(function(){
dojo.declare("lconn.profiles.actionBar.ActionBar",[dijit._Widget,dijit._Templated],{maxButtons:5,templatePath:dojo.moduleUrl("lconn.profiles","actionBar/templates/ActionBar.html"),blankGif:this._blankGif||dojo.config.blankGif||dijit._Widget.prototype._blankGif,strings:{},hiddenClassName:"lotusHidden",disabledClassName:"lotusBtnDisabled",_moreActionsShown:false,focusIdx:-1,_stores:[],_actions:[],_actionBarConnects:[],actions:[],_menu:null,postMixInProperties:function(){
this.inherited(arguments);
this._stores=[];
this._actions=[];
this._actionBarConnects=[];
var _1=dojo.i18n.getLocalization("lconn.profiles","ui");
if(typeof _1!=="undefined"){
this.strings=dojo.mixin(_1,this.strings);
}else{
this.strings=dojo.mixin(generalrs||{},this.strings);
}
},postCreate:function(){
this.inherited(arguments);
this._loadStylesFromTemplate();
},addStore:function addStore(_2,_3){
if(typeof _3!=="function"){
_3=function(){
};
}
var _4=dojo.hitch(this,function(){
_2.fetch({onComplete:dojo.hitch(this,function(_5,_6){
dojo.forEach(_5,dojo.hitch(this,function(_7){
this._storeChangeHandler(_7,_2);
}));
_3();
}),onError:dojo.hitch(this,function(_8,_9){
this.onError(_8);
_3();
})});
});
if(typeof _2.loadData==="function"){
_2.loadData(_4);
}else{
_4();
}
},_renderActionItem:function(_a,_b,_c){
var _d=_b.getLabel(_a);
var _e=_d;
if(_b.hasAttribute(_a,"tooltip")){
_e=_b.getValue(_a,"tooltip");
}
var id=_b.getValue(_a,"id");
var _f=false;
if(_b.hasAttribute(_a,"disabled")){
_f=!!(_b.getValue(_a,"disabled"));
}
var _10="";
if(_b.hasAttribute(_a,"icon")){
_10=_b.getValue(_a,"icon");
}
_a.focusIdx=this._actions.length;
var _11=(this.focusIdx>-1&&this.focusIdx===_a.focusIdx);
if(this._moreActionsShown){
if(!this._menu){
this._menu=new dijit.Menu({targetNodeIds:[this.menuNode.id]});
this._menu.onCancel=function(){
this.hide();
this.destroy();
};
dojo.removeClass(this.moreActionsNode,this.hiddenClassName);
}
this._menu.addChild(new dijit.MenuItem({"label":_d,"title":_e,"disabled":_f,"onClick":((_f)?function(){
}:dojo.hitch(this,this._actionClick,_a,_b,this.moreActionsNode.id)),"iconClass":"AEMenuItemIcon_"+this.id+" AEMenuItemIcon_"+id}));
if(_10&&_10.length>0){
dojo.query("img",this._menu.domNode).forEach(function(_12){
if(dojo.hasClass(_12,"AEMenuItemIcon_"+id)){
dojo.attr(_12,{src:_10});
}
});
}
if(_11){
this.moreActionsNode.focus();
}
}else{
dojo.attr(this.singleButtonNode,{"title":_e});
dojo.place(dojo.doc.createTextNode(_d),this.singleButtonTextNode,"only");
if(_10&&_10.length>0){
dojo.attr(this.singleButtonImageNode,{src:_10});
dojo.removeClass(this.singleButtonImageNode,this.hiddenClassName);
}else{
dojo.attr(this.singleButtonImageNode,{src:this.blankGif});
dojo.addClass(this.singleButtonImageNode,this.hiddenClassName);
}
var _13=dojo.clone(this.singleButtonNode);
dojo.attr(_13,{id:"btn_"+id});
dojo.removeClass(_13,this.hiddenClassName);
if(_f){
dojo.addClass(_13,this.disabledClassName);
}
dojo.removeAttr(_13,"dojoattachpoint");
dojo.query("[dojoattachpoint]",_13).forEach(function(_14){
dojo.removeAttr(_14,"dojoattachpoint");
});
this._actionBarConnects.push(dojo.connect(_13,"onclick",((_f)?function(){
}:dojo.hitch(this,this._actionClick,_a,_b,_13.id))));
dojo.place(_13,this.buttonsNode,"last");
dojo.removeClass(this.buttonsNode,this.hiddenClassName);
if(_11){
_13.focus();
}
_15._lastSingleButton=_13;
_15._lastSingleItem=_a;
_15._lastSingleStore=_b;
}
if(typeof _c==="function"){
_c();
}
},_storeChangeHandler:function(_16,_17){
if(!this._moreActionsShown&&this._actions.length>=this.maxButtons){
this._moreActionsShown=true;
if(_15._lastSingleButton&&_15._lastSingleItem&&_15._lastSingleStore){
_15._lastSingleButton.parentNode.removeChild(_15._lastSingleButton);
this._renderActionItem(_15._lastSingleItem,_15._lastSingleStore,function(){
delete _15._lastSingleButton;
delete _15._lastSingleItem;
delete _15._lastSingleStore;
});
}
}
this._renderActionItem(_16,_17);
this._actions.push(_16);
},_getItemValue:function(_18,_19,nam,def){
var ret=def;
if(_19.hasAttribute(_18,nam)){
ret=_19.getValue(_18,nam);
}
return ret;
},_lastActionClicked:null,getLastActionId:function(){
return _15.lastActionClicked;
},_actionClick:function(_1a,_1b,_1c){
_15.lastActionClicked=_1c;
var f=this._getItemValue(_1a,_1b,"onClick",null);
var url=this._getItemValue(_1a,_1b,"url",null);
if(typeof f==="function"){
f(_1a);
}else{
if(typeof url==="string"){
if(this._getItemValue(_1a,_1b,"new_window",false)){
var _1d=this._getItemValue(_1a,_1b,"window_name",("win_"+_1a.id).replace(/\W/g,"_"));
var _1e=this._getItemValue(_1a,_1b,"window_features","");
open(url,_1d,_1e);
}else{
location.href=url;
}
}
}
},_showMoreActions:function(evt){
menuUtility.openMenu(evt,this._menu.id);
},_loadStylesFromTemplate:function(){
if(dojo.isIE<9){
var _1f=this.templateString;
try{
if(!_1f){
_1f=dijit._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache);
}
}
catch(e){
}
if(dojo.isString(_1f)){
dojo.forEach((this._stringRepl(_1f)).split("</style>"),dojo.hitch(this,function(str){
try{
var arr=str.split("<style");
if(arr.length>1){
str=arr[1].substring(arr[1].indexOf(">")+1);
this._loadStylesheet(str);
}
}
catch(ee){
if(window.console){
console.error("Error parsing style tag in template for: "+this.id);
console.log(ee);
}
}
}));
}
}
},_loadStylesheet:function(_20){
var _21=dojo.create("style",{type:"text/css"});
if(_21.styleSheet){
_21.styleSheet.cssText=_20;
}else{
dojo.place(dojo.doc.createTextNode(_20),_21);
}
dojo.place(_21,this.stylesNode,"last");
},destroy:function(){
this.inherited(arguments);
if(this._menu&&typeof this._menu.destroy==="function"){
this._menu.destroy();
}
for(var i=this._actionBarConnects.length-1;i>=0;i--){
dojo.disconnect(this._actionBarConnects[i]);
}
},onError:function(err){
if(console){
console.error(err);
}
}});
var _15=lconn.profiles.actionBar.ActionBar._runtime={};
})();
}


;if(!dojo._hasResource["lconn.profiles.actionBar.store.BaseStore"]){
dojo._hasResource["lconn.profiles.actionBar.store.BaseStore"]=true;
dojo.provide("lconn.profiles.actionBar.store.BaseStore");


dojo.declare("lconn.profiles.actionBar.store.BaseStore",[dojo.data.ItemFileReadStore],{profile:{},connection:{},strings:{},caller:null,isLoggedIn:false,isMyProfile:false,enabledPermissions:[],dataObj:{label:"menu_text",identifier:"id",items:[]},appContext:"/profiles",ACTION_ID_PREFIX:"actn__",constructor:function(_1){
dojo.safeMixin(this,_1);
},checkAcl:function checkAcl(_2){
try{
for(var i=0;i<this.enabledPermissions.length;i++){
if(this.enabledPermissions[i]==_2){
return true;
}
}
}
catch(e){
if(console){
console.error("Unable to read permission information for this user.");
console.info(["lconn.profiles.actionBar.store.BaseStore.enabledPermissions=",this.enabledPermissions]);
console.info(["profilesData.enabledPermissions=",profilesData.enabledPermissions]);
}
this.onError(e);
}
return false;
},loadData:function(_3){
_3();
},fetch:function(){
if(!this.data){
this.data=dojo.clone(this.dataObj);
}
this.inherited(arguments);
},addDataItem:function(_4){
if(!this.data){
this.data=dojo.clone(this.dataObj);
}
if(!this.data.items){
this.data.items=[];
}
if(!_4.id||_4.id==""){
_4.id="_"+Math.random();
}
this.data.items.push(_4);
},onError:function(_5){
if(console){
console.error(_5);
}
}});
}

if(typeof define!=="undefined"&&typeof define._packages!=="undefined")define._packages["lconn.profiles.invite"]=true;

;dojo.cache("lconn.profiles.invite", "templates/Invite.html", "<div class=\"lotusDialogBorder\" style=\"width:450px;\"> <form id=\"${id}_networkInviteForm\" class=\"lotusDialog lotusForm\" dojoAttachEvent=\"onsubmit:formSubmitted\"> <div class=\"lotusDialogHeader\"> <h1 class=\"lotusHeading\">${friendsInviteTitle}</h1> <a title=\"${friendsCancelInvActionMessage}\" role=\"button\" class=\"lotusRight lotusDialogClose\" href=\"javascript:;\" dojoAttachEvent=\"onclick:friendsCancelInvAction\"> <img role=\"presentation\" src=\"${blankGif}\" alt=\"\" /> <span class=\"lotusAltText\">X</span> </a> </div> <div class=\"lotusDialogContent\" style=\"max-height:400px;\"> <fieldset> <legend class=\"lotusHidden\">${friendsInviteTitle}</legend> <table class=\"lotusFormTable\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" role=\"presentation\"> <tbody> <tr class=\"lotusFormFieldRow\"> <td> <div class=\"profilePhoto\"> <img src=\"${profilePhotoSrc}\" alt=\"${displayName}\" height=\"96\" width=\"96\" style=\"top:5px; position: relative;\" />&nbsp; </div> </td> <td style=\"width:3px;\"> </td> <td> <div> <big dojoAttachPoint=\"friendsColleaguesInviteMessageControl\">${friendsColleaguesInviteMessage}</big> </div> <div style=\"margin-top:5px;\"> <label for=\"${id}_invitation_text\">${invitationMessageLabel}</label> <br /> <textarea id=\"${id}_invitation_text\" dojoAttachPoint=\"invitationMessageControl\" dojoAttachEvent=\"focus:_invitationMessageControlFocus, blur:_invitationMessageControlBlur\" style=\"width:275px;\" cols=\"40\" rows=\"4\" name=\"invitation_text\" class=\"bidiAware\">${invitationMessage}</textarea> </div> <div style=\"margin-top:5px;\" dojoAttachPoint=\"invitationTagsControlDiv\"> <label for=\"${id}_invitation_tags\" dojoAttachPoint=\"invitationTagsLabelControl\">${invitationTagsLabel}</label> <br /> <input id=\"${id}_invitation_tags\" dojoType=\"lconn.core.CommonTags.CommonTagsTypeAhead\" dojoAttachPoint=\"invitationTagsControl\" multipleValues=\"true\" token=\" \" minChars=\"2\" maxChars=\"255\" style=\"width:275px;\" /> </div> <div dojoAttachPoint=\"invitationFollowControlDiv\"> <table class=\"lotusTable\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" role=\"presentation\" style=\"margin-top:15px;\"> <tr> <td> <input type=\"checkbox\" id=\"${id}_invitation_follow\" name=\"invitation_follow\" value=\"true\" checked=\"checked\" dojoAttachPoint=\"invitationFollowControl\"> </td> <td> <label for=\"${id}_invitation_follow\">${invitationFollowLabel}</label> <br /> <div style=\"margin-top:3px;\">${invitationFollowDescription}</div> <div style=\"margin-top:3px;\">${invitationFollowHelp}</div> </td> </tr> </table> </div> </td> </tr> </tbody> </table> </fieldset> </div> <div class=\"lotusDialogFooter\"> <div class=\"lotusBtnContainer\"> <input type=\"button\" value=\"${friendsSendInvActionMessage}\" class=\"lotusBtn lotusBtnSpecial\" dojoAttachEvent=\"onclick:friendsSendInvAction\" /> <span style=\"padding-left: 5px;\"> <input type=\"button\" value=\"${friendsCancelInvActionMessage}\" class=\"lotusBtn\" dojoAttachEvent=\"onclick:friendsCancelInvAction\" /> </span> </div> </div> </form></div>");

;if(!dojo._hasResource["lconn.profiles.invite.Invite"]){
dojo._hasResource["lconn.profiles.invite.Invite"]=true;
dojo.provide("lconn.profiles.invite.Invite");






















dojo.requireLocalization("lconn.profiles.bizCard","ui");
lconn.profiles.invite.Invite={_isDebug:false,_status:{general:-1,invite:-1,follow:-1,tag:-1},messages:dojo.i18n.getLocalization("lconn.profiles.bizCard","ui"),LONG_PARAM_NAMES:{sourceKey:"sourceKey",targetKey:"targetKey",sourceUserid:"sourceUserid",targetUserid:"targetUserid"},SHORT_PARAM_NAMES:{sourceKey:"",targetKey:"key",sourceUserid:"",targetUserid:"userid"},_getUrlParamsProto:function(_1,_2){
var _3={};
if(_1.byKey){
_3.sourceParam=_2.sourceKey;
_3.sourceValue=_1.loggedInUserKey;
_3.targetParam=_2.targetKey;
_3.targetValue=_1.targetKey;
}else{
_3.sourceParam=_2.sourceUserid;
_3.sourceValue=_1.loggedInUserid;
_3.targetParam=_2.targetUserid;
_3.targetValue=_1.targetUserid;
}
return _3;
},_getHaveConnectionUrl:function(_4){
var _5="${applicationContext}/atom/connection.do?connectionType=colleague&${sourceParam}=${sourceValue}&${targetParam}=${targetValue}&returnNoContent=true";
return dojo.string.substitute(_5,dojo.mixin(this._getUrlParamsProto(_4,this.LONG_PARAM_NAMES),_4));
},_getAccessCheckUrl:function(_6){
var _7="${applicationContext}/ajax/invitationAccess.do?${targetParam}=${targetValue}";
return dojo.string.substitute(_7,dojo.mixin(this._getUrlParamsProto(_6,this.SHORT_PARAM_NAMES),_6));
},_getFriendRequestUrl:function(_8){
var _9="${applicationContext}/atom2/forms/friendrequest?${targetParam}=${targetValue}&lastMod=${lastMod}";
return dojo.string.substitute(_9,dojo.mixin(this._getUrlParamsProto(_8,this.LONG_PARAM_NAMES),_8));
},_getFollowRequestUrl:function(_a){
if(_a&&!_a.action){
_a.action="follow";
}
var _b="${applicationContext}/html/following.do?${targetParam}=${targetValue}&${sourceParam}=${sourceValue}&action=${action}&lastMod=${lastMod}";
return dojo.string.substitute(_b,dojo.mixin(this._getUrlParamsProto(_a,this.LONG_PARAM_NAMES),_a));
},_getProfileTagsGetterUrl:function(_c){
var _d="${applicationContext}/atom/forms/profileTags.do?${targetParam}=${targetValue}&${sourceParam}=${sourceValue}&format=full&lastMod=${lastMod}";
return dojo.string.substitute(_d,dojo.mixin(this._getUrlParamsProto(_c,this.LONG_PARAM_NAMES),_c));
},_getProfileTagsSetterUrl:function(_e){
var _f="${applicationContext}/atom/forms/profileTags.do?${targetParam}=${targetValue}&${sourceParam}=${sourceValue}&lastMod=${lastMod}";
return dojo.string.substitute(_f,dojo.mixin(this._getUrlParamsProto(_e,this.LONG_PARAM_NAMES),_e));
},_getPanelTypeaheadUrl:function(_10){
var url="${applicationContext}/html/tagTypeahead.do?useJson=true";
return dojo.string.substitute(url,dojo.mixin({},_10));
},_getPanelPhotoUrl:function(_11){
var url="${applicationContext}/photo.do?${targetParam}=${targetValue}";
return dojo.string.substitute(url,dojo.mixin(this._getUrlParamsProto(_11,this.SHORT_PARAM_NAMES),_11));
},inviteDialog:null,inviteDialogLinked:false,invitePanelIsReady:false,inviteDialogIsReady:false,_destroyOldPanel:function(){
if(this._isDebug){
console.debug("in Invite._destroyOldPanel");
}
if(this.inviteDialog&&this.inviteDialog.containerNode&&this.inviteDialog.containerNode.firstChild){
var _12=dijit.byNode(this.inviteDialog.containerNode.firstChild);
if(_12){
_12.destroyRecursive();
}
}
},_createPanel:function(_13){
if(this._isDebug){
console.debug("in Invite._createPanel");
}
if(this.inviteDialog&&!this.inviteDialogIsReady){
var _14=new lconn.profiles.invite.InvitePanel(this._prepareArgs(_13));
this.inviteDialog.titleNode.innerHTML=_14.friendsInviteTitle;
dojo.addClass(this.inviteDialog.titleNode,"lotusAltText");
if(!this.inviteDialogIsLinked){
dojo.body().appendChild(this.inviteDialog.domNode);
this.inviteDialogIsLinked=true;
}
if(this.inviteDialog.containerNode){
this.inviteDialog.containerNode.appendChild(_14.domNode);
}
this.inviteDialog.startup();
this.invitePanelIsReady=true;
this.inviteDialogIsReady=true;
dojo.connect(this.inviteDialog,"hide",dojo.hitch(this,function(){
this.invitePanelIsReady=false;
this.inviteDialogIsReady=false;
}));
}
},_getString:function(key){
var _15=null;
_15=this.messages[key];
return _15;
},_initializeData:function(_16){
if(this._isDebug){
console.debug("in Invite._initializeData");
}
this._status.general=this._status.invite=this._status.follow=this._status.tag=-1;
_16=_16||{};
_16.lastMod=_16.lastMod||((new Date().getTime())+"");
_16.xhrErrorHandlerCallback=_16.xhrErrorHandlerCallback||function(){
};
_16.errorHandlerCallback=_16.errorHandlerCallback||function(){
};
_16.xhrDoneCallback=_16.xhrDoneCallback||function(){
};
if(!_16.loggedInUserKey&&!_16.loggedInUserid){
alert(lconn.profiles.invite.Invite._getString("friendsPleaseLogIn"));
this._status.general=0;
}else{
if((_16.loggedInUserKey&&_16.loggedInUserKey==_16.targetKey)||(_16.loggedInUserUserid&&_16.loggedInUserUserid==_16.targetUserid)){
alert(lconn.profiles.invite.Invite._getString("friendsCannotAddYourself"));
this._status.invite=0;
}else{
this._sendCanFriendRequest(_16,dojo.hitch(this,function(){
if(_16.canTag===null||_16.canTag===undefined||_16.canFollow===null||_16.canFollow===undefined){
this._sendAccessCheckRequest(_16,dojo.hitch(this,function(_17){
_16.canTag=_17.canTag;
_16.canFollow=_17.canFollow;
_16.isFollowed=_17.isFollowed;
_16.canFriend=_17.canFriend;
this._createPanel(_16);
}));
}else{
this._createPanel(_16);
}
}));
}
}
},_initializePanel:function(_18){
if(this.inviteDialog&&this.inviteDialog.containerNode){
this._destroyOldPanel();
this._initializeData(_18);
}
},_initializeDialog:function(_19){
if(!this.inviteDialog){
this.inviteDialog=new dijit.Dialog({content:"",style:""});
this._initializePanel(_19);
}
},_prepareArgs:function(_1a){
_1a=_1a||{};
_1a.sendInviteCallback=_1a.sendInviteCallback||function(){
};
_1a._xhrDoneCallback=dojo.hitch(this,function(){
if(this._isDebug){
console.debug("in Invite._xhrDoneCallback");
}
this.hide();
_1a.xhrDoneCallback();
});
var _1b={onClose:dojo.hitch(this,function(){
this.hide();
})};
_1b.cancelInviteCallback=_1a.cancelInviteCallback||function(){
};
_1b.displayName=_1a.displayName||"";
_1b.canFriend=_1a.canFriend;
_1b.canTag=_1a.canTag;
_1b.canFollow=_1a.canFollow;
_1b.isFollowed=_1a.isFollowed;
_1b.tagTypeaheadUrl=this._getPanelTypeaheadUrl(_1a);
_1b.profilePhotoSrc=this._getPanelPhotoUrl(_1a);
_1b.sendInviteCallback=dojo.hitch(this,function(msg,_1c,_1d){
if(this._isDebug){
console.debug("in Invite.sendInviteCallback");
}
this._status.general=this._status.invite=this._status.follow=this._status.tag=-1;
if((_1a.loggedInUserKey&&_1a.loggedInUserKey==_1a.targetKey)||(_1a.loggedInUserUserid&&_1a.loggedInUserUserid==_1a.targetUserid)){
alert(lconn.profiles.invite.Invite._getString("friendsCannotAddYourself"));
this._status.invite=0;
}else{
var _1e=dojo.hitch(this,function(_1f,_20,_21){
if(this._isDebug){
console.debug("in Invite.getTagsDoneCallback");
}
var _22=false;
dojo.forEach(_1d,function(tag){
if(dojo.indexOf(_21,tag)<0){
_22=true;
_21.push(tag);
}
});
if(_22){
this._sendTagsReplaceRequest(_21,_1a,_1a._xhrDoneCallback);
}else{
_1a._xhrDoneCallback();
}
});
var _23=dojo.hitch(this,function(){
if(this._isDebug){
console.debug("in Invite.followDoneCallback");
}
if(_1d&&_1d.length>0){
this._sendGetTagsRequest(_1a,_1e);
}else{
_1a._xhrDoneCallback();
}
});
var _24=dojo.hitch(this,function(){
if(this._isDebug){
console.debug("in Invite.friendingDoneCallback");
}
if(_1c){
this._sendFollowRequest(_1a,_23);
}else{
_23();
}
});
this._sendFriendRequest(msg,_1a,_24);
}
_1a.sendInviteCallback();
});
return _1b;
},showDialog:function(_25,_26,_27,_28,_29,_2a,_2b,_2c,_2d,_2e,_2f,_30){
if(this._isDebug){
console.debug("in Invite.showDialog");
}
if(this.inviteDialogIsReady){
return;
}
var _31={byKey:_26,displayName:lconn.core.globalization.bidiUtil.enforceTextDirection(_27),canFriend:null,canTag:null,canFollow:_30,isFollowed:null,applicationContext:_25,errorNodeId:_2a,xhrErrorHandlerCallback:_2b,errorHandlerCallback:_2c,xhrDoneCallback:_2d,sendInviteCallback:_2e,cancelInviteCallback:_2f};
if(_26){
_31.targetKey=_28;
_31.loggedInUserKey=_29;
}else{
_31.targetUserid=_28;
_31.loggedInUserid=_29;
}
this.show(_31);
},_delayedDialog:function(){
if(this._isDebug){
console.debug("in Invite._delayedDialog");
}
if(this.inviteDialog){
if(this._delayedDialogTimeout){
clearTimeout(this._delayedDialogTimeout);
this._delayedDialogTimeout=null;
}
if(this.invitePanelIsReady){
this.inviteDialog.show();
lconn.core.globalization.bidiUtil.enforceTextDirectionOnPage(this.inviteDialog.containerNode);
}else{
this._delayedDialogTimeout=setTimeout(dojo.hitch(this,this._delayedDialog),1000);
}
}
},show:function(_32){
if(this._delayedDialogTimeout){
clearTimeout(this._delayedDialogTimeout);
this._delayedDialogTimeout=null;
}
if(!this.inviteDialog){
this._initializeDialog(_32);
}else{
if(_32!=null){
this._initializePanel(_32);
}
}
this._delayedDialog();
},hide:function(){
if(this._isDebug){
console.debug("in Invite.hide");
}
if(this._delayedDialogTimeout){
clearTimeout(this._delayedDialogTimeout);
this._delayedDialogTimeout=null;
}
this.invitePanelIsReady=false;
this.inviteDialogIsReady=false;
if(this.inviteDialog){
this.inviteDialog.hide();
}
},_sendAccessCheckRequest:function(_33,_34){
if(this._isDebug){
console.debug("in Invite.Invite._sendAccessCheckRequest");
}
_34=_34||function(_35){
};
var url=this._getAccessCheckUrl(_33);
this._sendRequestArgs("GET","json",url,_33,dojo.hitch(this,function(_36){
if(this._isDebug){
console.debug("in Invite.Invite._sendAccessCheckRequest's callback");
}
if(_36){
_34(_36);
}else{
alert(lconn.profiles.invite.Invite._getString("errorDefaultMsg2"));
this._status.invite=0;
_33.xhrErrorHandlerCallback(_36,ioArgs);
}
}));
},_sendCanFriendRequest:function(_37,_38){
if(this._isDebug){
console.debug("in Invite._sendCanFriendRequest");
}
_38=_38||function(_39){
};
var url=this._getHaveConnectionUrl(_37);
this._sendRequestArgs("GET","xml",url,_37,dojo.hitch(this,function(_3a,_3b){
if(this._isDebug){
console.debug("in Invite._sendCanFriendRequest's callback");
}
if(this._isDebug){
console.debug("_sendCanFriendRequest: xhr.status = "+_3b.xhr.status);
}
if(_3b&&_3b.xhr&&(_3b.xhr.status==204||(dojo.isIE&&_3b.xhr.status==1223))){
_38();
}else{
var str=lconn.profiles.invite.Invite._getString("friendsPersonAlreadyInYourNetwork");
if(_3b&&_3b.xhr&&_3b.xhr.getResponseHeader("X-Profiles-Connection-Status")!="accepted"){
str=lconn.profiles.invite.Invite._getString("friendsInvSent");
}
if(str){
str=lconn.core.i18nOverrider.replaceParams(str,[_37.displayName]);
}
alert(str);
this._status.invite=0;
}
}),{error:dojo.hitch(this,function(_3c,_3d,ex){
if(this._isDebug){
console.debug("in Invite._sendCanFriendRequest's error handler");
}
if(_3c.status+""=="404"){
_38();
}else{
this._status.invite=0;
_37.xhrErrorHandlerCallback.apply(null,arguments);
}
})});
},_sendGetTagsRequest:function(_3e,_3f){
if(this._isDebug){
console.debug("in Invite._sendGetTagsRequest");
}
var url=this._getProfileTagsGetterUrl(_3e);
this._sendRequestArgs("GET","xml",url,_3e,function(_40,_41){
if(this._isDebug){
console.debug("in Invite._sendGetTagsRequest callback");
}
var _42=[];
dojo.forEach(lconn.core.xpath.selectNodes("//atom:category",_40),function(_43){
var tag=_43.getAttribute("term");
if(tag){
_42.push(tag);
}
});
_3f(_40,_41,_42);
},{error:dojo.hitch(this,function(_44,_45){
if(this._isDebug){
console.debug("in Invite._sendGetTagsRequest's error handler");
}
this._status.tag=0;
var str=lconn.profiles.invite.Invite._getString("friendsInviteTagError");
if(str){
str=lconn.core.i18nOverrider.replaceParams(str,[_3e.displayName]);
}
alert(str);
this._status.tag=0;
_3e.xhrErrorHandlerCallback(_44,_45);
})});
},_sendTagsReplaceRequest:function(_46,_47,_48){
if(this._isDebug){
console.debug("in Invite._sendTagsReplaceRequest");
}
this._status.tag=1;
var _49="<app:categories xmlns:atom='http://www.w3.org/2005/Atom'";
_49+=" xmlns:app='http://www.w3.org/2007/app'";
_49+=" xmlns:snx='http://www.ibm.com/xmlns/prod/sn'>";
for(var i=0;i<_46.length;++i){
if(_46[i]!=null&&_46[i]!=""){
_49+="<atom:category term=\""+_46[i]+"\"/>";
}
}
_49+="</app:categories>";
var url=this._getProfileTagsSetterUrl(_47);
this._sendRequestArgs("PUT","text",url,_47,_48,{putData:_49,checkAuthHeader:true,error:dojo.hitch(this,function(_4a,_4b){
if(this._isDebug){
console.debug("in Invite._sendTagsReplaceRequest's error handler");
}
this._status.tag=0;
var str=lconn.profiles.invite.Invite._getString("friendsInviteTagError");
if(str){
str=lconn.core.i18nOverrider.replaceParams(str,[_47.displayName]);
}
alert(str);
this._status.tag=0;
_47.xhrErrorHandlerCallback(_4a,_4b);
})});
},followUser:function(_4c,_4d,_4e,ele){
if(this._isDebug){
console.debug("in Invite.followUser");
}
var _4f=lconn.profiles.bizCard.bizCard.currentPerson;
_4d=_4d||_4f.key;
_4e=_4e||_4f.X_loggedInUserKey;
if(_4f.X_loggedInUserKey&&_4e==_4f.X_loggedInUserKey){
var _50={byKey:true,targetValue:_4d,sourceValue:_4e,applicationContext:_4c,lastMod:((new Date().getTime())+""),action:_4f.X_isFollowed!="false"?"unfollow":"follow"};
var _51=this.messages;
var _52=dojo.hitch(this,function(){
var nls=_51;
var _53=lconn.profiles.bizCard.bizCard.currentPerson;
_53.X_isFollowed=_53.X_isFollowed!="false"?"false":"true";
var _54=_53.X_isFollowed!="false"?nls.personCardUnfollow:nls.personCardFollow;
ele.innerHTML=_54;
});
this._sendFollowRequest(_50,_52);
}else{
}
},_sendFollowRequest:function(_55,_56){
if(this._isDebug){
console.debug("in Invite._sendFollowRequest");
}
this._status.follow=1;
var _57=this._getFollowRequestUrl(_55);
this._sendRequestArgs("POST","text",_57,_55,_56,{error:dojo.hitch(this,function(_58,_59){
if(this._isDebug){
console.debug("in Invite._sendFollowRequest's error handler");
}
var str=lconn.profiles.invite.Invite._getString("friendsInviteFollowError");
if(str){
str=lconn.core.i18nOverrider.replaceParams(str,[_55.displayName]);
}
alert(str);
this._status.follow=0;
_55.xhrErrorHandlerCallback(_58,_59);
})});
},_sendFriendRequest:function(msg,_5a,_5b){
if(this._isDebug){
console.debug("in Invite._sendFriendRequest");
}
this._status.invite=1;
var url=this._getFriendRequestUrl(_5a);
if(msg!=null&&msg!=""){
if(msg.length>500){
var _5c=lconn.profiles.invite.Invite._getString("friendsYouExceedTextLimit");
if(_5c){
_5c=_5c.replace(/\'\'/g,"'");
_5c=lconn.core.i18nOverrider.replaceParams(_5c,[msg.length,"500"]);
}
alert(_5c);
this._status.invite=0;
return false;
}
msg=msg.replace(new RegExp("\\n","g"),"<br/>");
}
this._sendRequestArgs("PUT","xml",url,_5a,dojo.hitch(this,function(_5d,_5e){
if(this._isDebug){
console.debug("in Invite._sendFriendRequest's callback");
}
if(_5d.documentElement.nodeName=="error"&&_5d.documentElement.getAttribute("code")=="connection-exist"){
this._status.invite=0;
alert(lconn.profiles.invite.Invite._getString("friendsInvSent"));
}else{
if(_5d.documentElement.nodeName=="error"&&_5d.documentElement.getAttribute("code")=="notification-error"){
this._status.invite=0;
alert(lconn.profiles.invite.Invite._getString("errorDefaultMsg2"));
}else{
if(_5d.documentElement.nodeName=="error"||_5d.documentElement.nodeName=="parsererror"){
this._status.invite=0;
_5a.xhrErrorHandlerCallback(_5d,_5e);
}else{
this._status.invite=1;
_5b(_5d,_5e);
}
}
}
}),{putData:msg});
},_sendRequestArgs:function(_5f,_60,url,_61,_62,_63){
this._sendRequest(_5f,_60,url,_61.errorNodeId,_62,_61.xhrErrorHandlerCallback,_61.errorHandlerCallback,_63);
},_sendRequest:function(_64,_65,url,_66,_67,_68,_69,_6a){
_6a=_6a||{};
if((url.indexOf("http:")==0||url.indexOf("https:")==0)&&window.SemTagSvcConfig!=null&&SemTagSvcConfig.proxyURL!=null){
var ph=new lconn.core.url.ProxyUrlHelper(SemTagSvcConfig.proxyURL);
url=ph.getProxifiedURL(url);
}
var _6b={url:url,handleAs:_65,htmlContainerElemId:_66,error:_68,load:dojo.hitch(this,function(_6c,_6d){
try{
_67(_6c,_6d);
}
catch(exception){
this._status.general=0;
console.warn("Invite->_sendRequest",exception);
_69("lconn.profiles.invite.Invite._sendRequest",exception,{htmlContainerElemId:_66});
}
})};
dojo.mixin(_6b,_6a);
var _6e=true;
if(_64=="GET"||_64=="DELETE"){
_6e=false;
}
dojo.xhr(_64,_6b,_6e);
},openHelpWindow:function(url,_6f,_70,_71,_72){
if(typeof (url)=="undefined"){
return;
}
svcHrefHelp=lconn.core.url.getServiceUrl(lconn.core.config.services.help).toString();
_6f=(_6f?_6f:Math.max(window.screen.width/2,950));
_70=(_70?_70:Math.max(window.screen.height/2,650));
var _73=(window.screen.width-_6f)/2;
var top=(window.screen.height-_70)/2;
var _74="height="+_70+",width="+_6f+",left="+_73+",top="+top+",status=yes,toolbar=yes,menubar=no,location=yes,scrollbars=yes,resizable=yes";
if(typeof (_71)!="undefined"&&_71!=true&&typeof (_75)!="undefined"){
_75.close();
}
var _75=window.open(svcHrefHelp+url,(typeof (_72)!="undefined")?_72:"help",_74);
if(_75&&window.focus){
_75.focus();
}
}};
dojo.declare("lconn.profiles.invite.InvitePanel",[dijit._Widget,dijit._Templated,dijit._Container],{widgetsInTemplate:true,templatePath:dojo.moduleUrl("lconn.profiles.invite","templates/Invite.html"),blankGif:djConfig.blankGif,defaultInvitationMessageColor:"#666666",appLang:null,profilePhotoSrc:"/PROFILE_PHOTO_URL",tagTypeaheadUrl:"/TAG_TYPEAHEAD_URL",displayName:null,canFollow:true,closeOnXhrDone:true,friendsInviteTitle:"friendsInvite",friendsColleaguesInviteMessage:"friendsColleaguesInvite",invitationMessageLabel:"friendsIncludeMsgForInv",invitationMessage:"friendsInitialMsgForInv",friendsSendInvActionMessage:"friendsSendInvAction",friendsCancelInvActionMessage:"friendsCancelInvAction",invitationTagsLabel:"invitationTagsLabel",invitationFollowLabel:"invitationFollowLabel",invitationFollowExtLabel:"invitationFollowExtLabel",invitationFollowDescription:"invitationFollowDescription",invitationFollowHelp:"invitationFollowHelp",_langPatch:function(_76){
var _77="&rlm;";
var _78="&lrm;";
var _79=_76&&_76.substr(0,2).toUpperCase();
var _7a=(_79&&(_79=="AR"||_79=="HE"||_79=="IW"));
var _7b=(_7a?_77:_78);
return _7b;
},postMixInProperties:function(){
this.appLang=this.appLang||dojo.getObject("appLang");
this.friendsInviteTitle=lconn.profiles.invite.Invite._getString("friendsInvite");
this.friendsColleaguesInviteMessage=lconn.profiles.invite.Invite._getString("friendsColleaguesInvite");
if(this.friendsColleaguesInviteMessage){
this.friendsColleaguesInviteMessage=lconn.core.i18nOverrider.replaceParams(this.friendsColleaguesInviteMessage,[this.displayName]);
}
this.invitationMessageLabel=lconn.profiles.invite.Invite._getString("friendsIncludeMsgForInv");
this.invitationMessage=lconn.profiles.invite.Invite._getString("friendsInitialMsgForInv");
this.friendsSendInvActionMessage=lconn.profiles.invite.Invite._getString("friendsSendInvAction");
this.friendsCancelInvActionMessage=lconn.profiles.invite.Invite._getString("friendsCancelInvAction");
this.invitationTagsLabel=lconn.profiles.invite.Invite._getString("friendsInviteAddTagsFor");
if(this.invitationTagsLabel){
this.invitationTagsLabel=lconn.core.i18nOverrider.replaceParams(this.invitationTagsLabel,[this.displayName]);
}
this.invitationFollowLabel=lconn.profiles.invite.Invite._getString("friendsInviteAlsoFollow");
var _7c=this._langPatch(this.appLang);
this.invitationFollowExtLabel=_7c+lconn.profiles.invite.Invite._getString("friendsInviteReceiveUpdates");
this.invitationFollowDescription=lconn.profiles.invite.Invite._getString("friendsInviteUpdatesDescription");
this.invitationFollowHelp=lconn.profiles.invite.Invite._getString("friendsInviteFollowHelp");
if(this.invitationFollowHelp){
this.invitationFollowHelp=lconn.core.i18nOverrider.replaceParams(this.invitationFollowHelp,["<a href=javascript:lconn.profiles.invite.Invite.openHelpWindow('/topic/com.ibm.lotus.connections.profiles.help/t_pers_follow.html');>","</a>"]);
}
},postCreate:function(){
if(this.displayName==null||this.displayName==""){
dojo.style(this.friendsColleaguesInviteMessageControl,"display","none");
dojo.style(this.invitationTagsLabelControl,"display","none");
}
if(this.invitationFollowControl){
this.invitationFollowControl.disabled=(!this.canFollow||this.isFollowed);
this.invitationFollowControl.checked=(this.isFollowed||this.canFollow);
}
this._invitationTagsDataStore=new lconn.core.TypeAheadDataStore({queryParam:"tag",url:this.tagTypeaheadUrl});
if(this.invitationTagsControl){
this.invitationTagsControl.store=this._invitationTagsDataStore;
if(!this.canTag&&this.invitationTagsControlDiv){
dojo.style(this.invitationTagsControlDiv,"display","none");
}
}
if(this.invitationMessageControl){
dojo.style(this.invitationMessageControl,"color",this.defaultInvitationMessageColor);
}
},_invitationMessageControlFocus:function(){
dojo.style(this.invitationMessageControl,"color","");
},_invitationMessageControlBlur:function(){
if(this.invitationMessageControl.value==this.invitationMessage||this.invitationMessageControl.value==""){
dojo.style(this.invitationMessageControl,"color",this.defaultInvitationMessageColor);
this.invitationMessageControl.value=this.invitationMessage;
}
},onClose:function(){
},sendInviteCallback:function(){
},cancelInviteCallback:function(){
},_getTagsArray:function(str){
var arr=[];
if(str){
arr=str.match(/[^\s,]+/g);
arr=arr||[];
}
for(var i=0;i<arr.length;++i){
var _7d=arr[i];
_7d=_7d.replace(/&/g,"&amp;");
_7d=_7d.replace(/"/g,"&quot;");
_7d=_7d.replace(/'/g,"&apos;");
_7d=_7d.replace(/</g,"&lt;");
_7d=_7d.replace(/>/g,"&gt;");
arr[i]=_7d;
}
return arr;
},_getTagsString:function(){
if(this.invitationTagsControl&&this.invitationTagsControl.focusNode&&this.invitationTagsControl.focusNode.hasInput){
return this.invitationTagsControl.getValue();
}
return "";
},friendsSendInvAction:function(){
var _7e=this._getTagsArray(this._getTagsString());
if(this.invitationMessageControl&&this.invitationFollowControl){
this.sendInviteCallback(this.invitationMessageControl.value,(this.invitationFollowControl.checked&&!this.invitationFollowControl.disabled),_7e);
}
if(!this.closeOnXhrDone){
this.onClose();
}
return false;
},friendsCancelInvAction:function(){
this.cancelInviteCallback();
this.onClose();
return false;
},formSubmitted:function(evt){
this.friendsSendInvAction();
dojo.stopEvent(evt);
return false;
}});
}


;if(!dojo._hasResource["lconn.profiles.actionBar.store.MainPageStore"]){
dojo._hasResource["lconn.profiles.actionBar.store.MainPageStore"]=true;
dojo.provide("lconn.profiles.actionBar.store.MainPageStore");










(function(){
dojo.declare("lconn.profiles.actionBar.store.MainPageStore",[lconn.profiles.actionBar.store.BaseStore],{shareFileXmlTemplate:"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\t\t\t\t<cmis:acl xmlns:cmis=\"http://docs.oasis-open.org/ns/cmis/core/200908/\">\n\t\t\t\t\t<cmis:permission>\n\t\t\t\t\t\t<cmis:principal>\n\t\t\t\t\t\t\t<cmis:principalId>{userid}</cmis:principalId>\n\t\t\t\t\t\t</cmis:principal>\n\t\t\t\t\t\t<cmis:permission>cmis:read</cmis:permission>\n\t\t\t\t\t\t<cmis:direct>true</cmis:direct>\n\t\t\t\t\t</cmis:permission>\n\t\t\t\t</cmis:acl>\n\t\t\t",loadData:function(_1){
if(this.profile.isActive){
if(this.profile.showEmail&&this.profile.email&&this.profile.email!==""){
this.addDataItem({id:this.ACTION_ID_PREFIX+"personCardSendEMail",menu_text:this.strings["personCardSendEMail"],onClick:dojo.hitch(this,this.sendEmail)});
}
if(this.isLoggedIn){
if(this.checkAcl("profile.colleague$profile.colleague.connect")){
if(this.connection.canFriend){
this.addDataItem({id:this.ACTION_ID_PREFIX+"personCardAddAsMyColleagues",menu_text:this.strings["personCardAddAsMyColleagues"],onClick:dojo.hitch(this,this.addColleague)});
try{
if(location.search&&location.search.indexOf("?")==0&&dojo.queryToObject(location.search.substring(1))["invite"]=="true"){
this.addColleague();
}
}
catch(e){
}
}
if(this.connection.canUnfriend){
this.addDataItem({id:this.ACTION_ID_PREFIX+"personCardRemoveFromNetwork",menu_text:this.strings["personCardRemoveFromNetwork"],onClick:dojo.hitch(this,this.removeColleague)});
}
if(this.connection.status===this.connection.TYPES.INVITED){
this.addDataItem({id:this.ACTION_ID_PREFIX+"personCardAcceptInv",menu_text:this.strings["personCardAcceptInv"],onClick:dojo.hitch(this,this.acceptColleague)});
}
}
if(this.checkAcl("profile.following$profile.following.view")){
if(this.connection.canFollow){
this.addDataItem({id:this.ACTION_ID_PREFIX+"label_following_follow",menu_text:this.strings["label_following_follow"],onClick:dojo.hitch(this,this.follow)});
}
}
}
}
if(this.connection.canUnfollow&&this.isLoggedIn&&this.checkAcl("profile.following$profile.following.view")){
this.addDataItem({id:this.ACTION_ID_PREFIX+"label_following_unfollow",menu_text:this.strings["label_following_unfollow"],onClick:dojo.hitch(this,this.unfollow)});
}
if(this.profile.isActive){
if(this.isLoggedIn&&!this.isMyProfile&&this.checkAcl("profile.colleague$profile.colleague.connect")){
if(dojo.exists("lconn.core.config.services.files")){
this.addDataItem({id:this.ACTION_ID_PREFIX+"personCardShareFile",menu_text:this.strings["personCardShareFile"],onClick:dojo.hitch(this,this.shareFile)});
}
}
this.addDataItem({id:this.ACTION_ID_PREFIX+"personCardDownloadVCard",menu_text:this.strings["personCardDownloadVCard"],onClick:dojo.hitch(this,this.downloadVCard)});
}
_1();
},sendEmail:function(){
profiles_goto("mailto: "+this.profile.email);
return false;
},shareFile:function(){
if(dojo.exists("lconn.core.config.services.files")){
var _2=dojo.getObject("lconn.core.config.services.files");
var _3=this.shareFileXmlTemplate.replace("{userid}",profilesData.displayedUser.userid);
this._filesSharedRetryCount=0;
this._filesSharedCount=0;
this._filesSharedTotal=0;
this._filesSharedMessage="";
this._filesShareMessageType=null;
var _4=dojo.hitch(this,function(_5,_6){
if(typeof _6==="undefined"){
_6=true;
}
this._filesSharedCount++;
if(!_6){
this._filesShareMessageType="error";
}
if(this._filesSharedMessage.length>0){
this._filesSharedMessage+="<br/>&nbsp;";
}
this._filesSharedMessage+=this.strings[(_6)?"personCardShareFileSuccess":"personCardShareFileError"].replace("{0}",_5).replace("{1}",profilesData.displayedUser.displayName);
if(this._filesSharedTotal==this._filesSharedCount&&this._filesSharedMessage.length>0){
this.showMessage(this._filesSharedMessage,[],null,this._filesShareMessageType);
}
});
var _7=dojo.hitch(this,function(_8){
var _9=decodeURIComponent(_8.getName());
var _a=(_2.secureEnabled&&_2.secureUrl&&lconn.core.url.parse(location.href).scheme.toLowerCase()==="https"?_2.secureUrl:_2.url)+"/basic/cmis/repository/p!"+encodeURIComponent(profilesData.loggedInUser.userid)+"/acl/snx:file!"+_8.getId();
dojo.xhrPut({url:com.ibm.oneui.util.proxy(_a),handleAs:"xml",headers:{"Content-Type":"application/cmisacl+xml"},preventCache:true,postData:_3,load:dojo.hitch(this,function(_b,_c){
if(dojo.config.isDebug&&window.console){
console.log("PUT of new ACL for file "+_9+" to cmis returned an http status of: "+_c.xhr.status);
}
_4(_9);
}),error:dojo.hitch(this,function(_d,_e){
if(this._filesSharedRetryCount++<10&&_e.xhr.status===409){
setTimeout(function(){
_7(_8);
},200);
}else{
if(dojo.config.isDebug&&window.console){
console.error("An unexpected error occurred attempting to change ACL on file "+_9+": "+_d);
console.log(_d);
}
_4(_9,false);
}
})});
});
lconn.core.filepicker.open({filesService:_2,publicOnly:false,externalOnly:false,shareableOnly:true,onSave:dojo.hitch(this,function(_f){
this._filesSharedTotal=_f.length;
dojo.forEach(_f,dojo.hitch(this,function(_10){
_7(_10);
}));
})});
}
},downloadVCard:function(){
showVcardExport();
return false;
},follow:function(){
if(this.connection.canFollow){
lconn.profiles.Following.followUserByKey(this.profile.key,dojo.hitch(this,function(){
lconn.profiles.Following.displayFollowedMessage();
this.refreshWidgets(["sand_thingsInCommon","sand_socialPath"]);
this.reloadActionBar({connection:{canFollow:false,canUnfollow:true}});
}));
}
},unfollow:function(){
if(this.connection.canUnfollow){
lconn.profiles.Following.unfollowUserByKey(this.profile.key,dojo.hitch(this,function(){
lconn.profiles.Following.displayUnfollowedMessage();
this.refreshWidgets(["sand_thingsInCommon","sand_socialPath"]);
this.reloadActionBar({connection:{canFollow:true,canUnfollow:false}});
}));
}
return false;
},addColleague:function(){
if(this.connection.canFriend){
lconn.profiles.invite.Invite.showDialog(this.appContext,true,this.profile.displayName,this.profile.key,lconn.profiles.ProfilesCore.getLoggedInUserKey(),dojo.getObject("lconn.profiles.Friending.currentViewDomNode"),null,null,dojo.hitch(this,function(){
var _11={connection:{}};
var _12=[];
if(lconn.profiles.invite.Invite._status.invite==1){
_11.connection.status=this.connection.TYPES.PENDING;
if(dojo.byId("connectionIndicator")){
dojo.place(dojo.doc.createTextNode(this.strings["personCardPendingInv"]),dojo.byId("connectionIndicator"),"only");
}
this.showMessage("personCardInvitedContact");
}
if(lconn.profiles.invite.Invite._status.follow==1&&this.connection.canFollow){
_11.connection.canUnfollow=true;
_11.connection.canFollow=false;
this.refreshWidgets(["sand_thingsInCommon","sand_socialPath"]);
}
this.reloadActionBar(_11);
}),null,null,null);
}
return false;
},removeColleague:function(){
var _13=this.appContext+"/atom2/forms/friends.xml?connectionIds="+this.connection.id;
lconn.profiles.xhrDelete({url:_13,handleAs:"xml",error:lconn.profiles.ProfilesCore.DefaultXHRErrorHandler,load:dojo.hitch(this,function(_14,_15){
try{
if(dojo.exists("profilesData.displayedUser")){
profilesData.displayedUser.inNetwork=false;
}
this.refreshWidgets(["sand_thingsInCommon","sand_socialPath","friends"]);
this.reloadActionBar({connection:{status:"",id:""}});
if(dojo.byId("connectionIndicator")){
dojo.byId("connectionIndicator").innerHTML="";
}
this.showMessage("personCardRemovedContact");
}
catch(exception){
lconn.profiles.ProfilesCore.DefaultErrorHandler("lconn.profiles.Friending.FriendRequestAction",exception);
}
}),checkAuthHeader:true});
return false;
},acceptColleague:function(){
lconn.profiles.Friending.acceptFriendRequest(this.connection.id,this.profile.key,dojo.hitch(this,function(_16,_17){
try{
if(dojo.exists("profilesData.displayedUser")){
profilesData.displayedUser.inNetwork=true;
}
this.refreshWidgets(["sand_thingsInCommon","sand_socialPath","friends"]);
this.reloadActionBar({connection:{status:this.connection.TYPES.CONNECTED}});
if(dojo.byId("connectionIndicator")){
dojo.place(dojo.doc.createTextNode(this.strings["personCardInNetwork"]),dojo.byId("connectionIndicator"),"only");
}
this.showMessage("personCardAddedContact");
}
catch(exception){
lconn.profiles.ProfilesCore.DefaultErrorHandler("lconn.profiles.Friending.FriendRequestAction",exception);
}
}));
return false;
},refreshWidgets:function(_18){
if(this.caller){
return this.caller.refreshWidgets(_18);
}
},reloadActionBar:function(_19){
if(this.caller){
return this.caller.reloadActionBar(_19);
}
},showMessage:function(key,_1a,_1b,typ){
if(this.caller){
return this.caller.showMessage(key,_1a,_1b,typ);
}
}});
})();
}


;if(!dojo._hasResource["lconn.profiles.actionBar.store.OrgExtensionStore"]){
dojo._hasResource["lconn.profiles.actionBar.store.OrgExtensionStore"]=true;
dojo.provide("lconn.profiles.actionBar.store.OrgExtensionStore");






dojo.declare("lconn.profiles.actionBar.store.OrgExtensionStore",[lconn.profiles.actionBar.store.BaseStore],{loadData:function(_1){
var _2=lconn.core.url.getServiceUrl(lconn.core.config.services.bss);
if(_2){
var _3={};
if(dojo.cookie){
_3["csrfToken"]=dojo.cookie("token");
}
if(dojo.exists("lconn.share.config.services.maxAge")){
_3["max-age"]=dojo.getObject("lconn.share.config.services.maxAge");
}
var _4=dojo.objectToQuery(_3);
if(_4.length>0){
_4="?"+_4;
}
dojo.xhrGet({url:_2.toString()+"/extensions/getExtensions/byExtensionPoint/person_component"+_4,handleAs:"json",load:dojo.hitch(this,function(_5){
var _6=["url","menu_text","tooltip"];
var _7=this.profile;
_7.user_id=_7.userid;
dojo.forEach(_5,dojo.hitch(this,function(_8,_9){
if(_8.type=="action"){
dojo.forEach(_6,dojo.hitch(this,function(_a){
if(_8[_a]){
for(var _b in _7){
if(_7.hasOwnProperty(_b)){
_8[_a]=_8[_a].replace(new RegExp("\\$\\{"+_b+"\\}","g"),_7[_b]);
}
}
}
}));
this.addDataItem(_8);
}
}));
_1();
}),error:dojo.hitch(this,function(_c){
this.onError(_c);
_1();
}),sync:false});
}else{
_1();
}
}});
}


;if(!dojo._hasResource["lconn.profiles.actionBar.store.SocialContactsStore"]){
dojo._hasResource["lconn.profiles.actionBar.store.SocialContactsStore"]=true;
dojo.provide("lconn.profiles.actionBar.store.SocialContactsStore");


dojo.declare("lconn.profiles.actionBar.store.SocialContactsStore",[lconn.profiles.actionBar.store.BaseStore],{_searchUrl:null,_homeUrl:null,_viewUrl:null,_entryId:null,loadData:function(_1){
if(this.isLoggedIn&&!this.isMyProfile&&this.profile.email&&this.profile.email.length>0){
if(dojo.exists("gllConnectionsData.srvUrls.sc-contacts-search")){
this._searchUrl=gllConnectionsData.srvUrls.sc-contacts-search;
}
if(dojo.exists("gllConnectionsData.srvUrls.sc-contacts-home")){
this._homeUrl=gllConnectionsData.srvUrls.sc-contacts-home;
}
if(dojo.exists("gllConnectionsData.srvUrls.sc-contacts-view")){
this._viewUrl=gllConnectionsData.srvUrls.sc-contacts-view;
}
if(dojo.exists("gllConnectionsData.srvUrls")){
if(!this._searchUrl){
this._searchUrl="/com.ibm.sc.server/api/contacts/?filterValue={query}";
}
if(!this._homeUrl){
this._homeUrl="/mycontacts/home.html";
}
if(!this._viewUrl){
this._viewUrl="/mycontacts/home.html#/contact/{contactId}";
}
}
if(this._searchUrl&&this._homeUrl&&this._viewUrl){
var _2=this._searchUrl.toString();
if(_2.indexOf("count=")==-1){
_2+="&count={count}";
}
if(_2.indexOf("fields=")==-1){
_2+="&fields={fields}";
}
if(_2.indexOf("filterBy=")==-1){
_2+="&filterBy={filterBy}";
}
var _3={"count":"1","filterBy":"search","fields":"id","query":encodeURIComponent(this.profile.email)};
dojo.xhrGet({url:dojo.replace(_2,_3),handleAs:"json",load:dojo.hitch(this,function(_4){
if(_4&&_4.entry&&_4.entry[0]&&_4.entry[0].id&&_4.entry[0].id!==""){
this._entryId=_4.entry[0].id;
this.addDataItem({id:this.ACTION_ID_PREFIX+"personCardViewContactRecord",menu_text:this.strings["personCardViewContactRecord"],onClick:dojo.hitch(this,this._viewContact)});
}else{
this.addDataItem({id:this.ACTION_ID_PREFIX+"personCardAddContactRecord",menu_text:this.strings["personCardAddContactRecord"],onClick:dojo.hitch(this,this._addContact)});
}
_1();
}),error:dojo.hitch(this,function(_5){
this.onError(_5);
_1();
}),sync:false});
}else{
_1();
}
}else{
_1();
}
},_viewContact:function(){
if(this._viewUrl&&this._entryId){
location.href=dojo.replace(this._viewUrl.toString(),{"contactId":encodeURIComponent(this._entryId)});
}
},_addContact:function(){
if(this._homeUrl){
var _6={displayName:this.profile.displayName,primaryemail:this.profile.email||""};
location.href=this._homeUrl.toString()+"#/contact/new?"+dojo.objectToQuery(_6);
}
}});
}


;if(!dojo._hasResource["lconn.profiles.profilesMainPage"]){
dojo._hasResource["lconn.profiles.profilesMainPage"]=true;
dojo.provide("lconn.profiles.profilesMainPage");










dojo.requireLocalization("lconn.profiles","ui");
(function(){
lconn.profiles.profilesMainPage={strings:{},profile:{displayName:"",key:"",userId:"",email:"",showEmail:true,isActive:true},enabledPermissions:[],isMyProfile:false,isLoggedIn:false,actionBarNode:null,_actionBar:null,connection:{id:null,status:null,canFriend:false,canUnfriend:false,canFollow:false,canUnfollow:false,TYPES:{PENDING:"0",CONNECTED:"1",INVITED:"2"}},appContext:"/profiles",init:function(_1){
_1=_1||{};
this.strings=_1.strings||window.generalrs||this.strings;
var _2=dojo.i18n.getLocalization("lconn.profiles","ui");
if(typeof _2!=="undefined"){
this.strings=dojo.mixin(_2,this.strings);
}
this.appContext=_1.appContext||applicationContext||this.appContext;
this.connection=dojo.mixin(dojo.clone(this.connection),dojo.clone(_1.connection||{}));
this.profile=dojo.mixin(dojo.clone(this.profile),dojo.clone(_1.profile||{}));
this.enabledPermissions=_1.enabledPermissions;
this.isLoggedIn=(dojo.exists("profilesData.loggedInUser")&&profilesData.loggedInUser.isLoggedIn);
setTimeout(dojo.hitch(this,function(){
this.isMyProfile=(lconn.profiles.ProfilesCore.getLoggedInUserKey()==this.profile.key);
this._setInactive();
this._loadSametimeStatus();
this._loadActionBar();
this._loadConfirmationMessages();
}),100);
},_setInactive:function(){
if(!this.profile.isActive){
dojo.addOnLoad(dojo.hitch(this,function(){
try{
dojo.addClass(dojo.byId("profilePaneLeft"),"lotusDim");
dojo.addClass(dojo.byId("businessCardContent"),"lotusDim");
dojo.addClass(dojo.byId("profilePaneRight"),"lotusDim");
dojo.addClass(dojo.byId("centerWidgetContainer"),"lotusDim");
this.showMessage("label.inactive.user.msg",[],"inactiveUserMsgDiv","info");
}
catch(e){
if(window.console){
console.warn("Unable to dim all screen elements.",e);
}
}
}));
}
},showMessage:function(_3,_4,_5,_6){
if(!_4){
_4=[this.profile.displayName];
}else{
if(typeof _4==="string"){
_4=[_4];
}
}
if(typeof _5!=="string"){
_5="profileInfoMsgDiv";
}
if(typeof _6!=="string"){
_6="confirmation";
}
var _7=_3;
if(this.strings[_3]){
_7=this.strings[_3];
}
for(var i=0;i<_4.length;i++){
_7=_7.replace("{"+i+"}",_4[i]);
}
if(dojo.byId(_5)){
lconn.profiles.ProfilesCore.showInfoMsg(_5,_6,_7);
}
},_loadConfirmationMessages:function(){
dojo.addOnLoad(dojo.hitch(this,function(){
var _8=null;
switch(window.location.hash){
case "#inputProfileActionInvited":
_8="personCardInvitedContact";
break;
case "#inputProfileActionAcceptedInvite":
_8="personCardAddedContact";
break;
case "#inputProfileActionRemovedFromNetwork":
_8="personCardRemovedContact";
break;
case "#inputProfileActionFollowing":
dijit.focus(dojo.byId("inputProfileActionFollowing"));
default:
break;
}
if(_8){
this.showMessage(_8);
}
if(dojo.exists("lconn.core.globalization.bidiUtil")){
lconn.core.globalization.bidiUtil.enforceTextDirectionOnPage();
}
}));
},reloadActionBar:function(_9){
this.connection=dojo.mixin(dojo.clone(this.connection),dojo.clone(_9.connection||{}));
if(this._actionBar&&typeof this._actionBar.getLastActionId=="function"){
var _a=-1;
var id=this._actionBar.getLastActionId();
dojo.query("#businessCardActions>.lotusActionBar button").some(function(_b,_c){
if(_b.id===id){
_a=_c;
return true;
}
});
}
setTimeout(dojo.hitch(this,this._loadActionBar,_a),0);
},refreshWidgets:function(_d){
_d=_d||[];
if(dojo.exists("lconn.core.WidgetPlacement")){
for(var i=0;i<_d.length;i++){
try{
lconn.core.WidgetPlacement.refresh(_d[i],null,false);
}
catch(e1){
}
}
}
},_resetActionBar:function(){
if(this._actionBar&&typeof this._actionBar.destroy==="function"){
this._actionBar.destroy();
dojo.empty(this.actionBarNode);
}
},_loadActionBar:function(_e){
if(this.connection.canUnfollow){
this.connection.canFollow=false;
}
if(this.connection.canFollow){
this.connection.canUnfollow=false;
}
if(this.connection.status===this.connection.TYPES.PENDING||this.connection.status===this.connection.TYPES.INVITED){
this.connection.canFriend=false;
this.connection.canUnfriend=false;
}else{
if(this.connection.status===this.connection.TYPES.CONNECTED){
this.connection.canFriend=false;
this.connection.canUnfriend=true;
}else{
this.connection.canFriend=true;
this.connection.canUnfriend=false;
}
}
if(this.isMyProfile){
this.connection.canFriend=false;
this.connection.canUnfriend=false;
this.connection.canFollow=false;
this.connection.canUnfollow=false;
}
dojo.query("#businessCardActions>.lotusActionBar").some(dojo.hitch(this,function(_f){
this.actionBarNode=_f;
return _f;
}));
if(this.actionBarNode){
this._resetActionBar();
var _10=dojo.create("span");
dojo.place(_10,this.actionBarNode,"first");
var _11={};
if(_e>-1){
_11.focusIdx=_e;
}
this._actionBar=new lconn.profiles.actionBar.ActionBar(_11,_10);
var _12={profile:this.profile,connection:this.connection,strings:this.strings,isLoggedIn:this.isLoggedIn,enabledPermissions:this.enabledPermissions,appContext:this.appContext,isMyProfile:this.isMyProfile,caller:this};
this._actionBar.addStore(new lconn.profiles.actionBar.store.MainPageStore(dojo.clone(_12)),dojo.hitch(this,this.loadSupplementaleStores,dojo.clone(_12)));
}
},loadSupplementaleStores:function(_13){
var _14=dojo.hitch(this,function(){
this._actionBar.addStore(new lconn.profiles.actionBar.store.OrgExtensionStore(dojo.clone(_13)));
});
this._actionBar.addStore(new lconn.profiles.actionBar.store.SocialContactsStore(dojo.clone(_13)),_14);
},_loadSametimeStatus:function(){
try{
if(dojo.byId("awarenessArea")){
if(typeof lconn.core.config.services.sametimeProxy!="undefined"){
var _15=dojo.byId("headerUserName");
var _16=null;
if(_15!=null){
_16=_15.innerHTML;
}
if(_16!=null&&_16!=""){
dojo.addOnLoad(function(){
lconn.core.utilities.show("awarenessArea");
});
setTimeout(dojo.hitch(this,function(){
if(!dojo.hasClass(dojo.byId("StatusIMAwarenessDisplayedUser"),"hasSTStatus")){
dojo.byId("IMcontent").innerHTML=this.strings.noStatuAvailable;
}
}),15000);
}else{
dojo.addOnLoad(dojo.hitch(this,function(){
var el=dojo.byId("IMcontent");
if(el){
lconn.core.utilities.show("awarenessArea");
el.innerHTML=this.strings["label.profile.im.signin"];
}
}));
}
}else{
if(typeof (sametimeAwarenessConfig)=="object"&&(sametimeAwarenessConfig.secureUse||sametimeAwarenessConfig.unsecureUse)){
profilesData.displayedUser.loadAwarenessInto="IMcontent";
lconn.profiles.sametime.sametimeAwareness.initIMService(sametimeAwarenessConfig);
lconn.profiles.sametime.sametimeAwareness.loadProfilesIMStatus(applicationContext,profilesData.displayedUser);
dojo.addOnLoad(function(){
lconn.core.utilities.show("awarenessArea");
});
}
}
}
}
catch(e){
if(console){
console.warn("Unabled to load sametime status.",e);
}
}
},onError:function(err){
if(console){
console.error(err);
}
}};
})();
}


;if(!dojo._hasResource["lconn.profiles.profilesSearchPage"]){
dojo._hasResource["lconn.profiles.profilesSearchPage"]=true;
dojo.provide("lconn.profiles.profilesSearchPage");
(function(){
var _1=null;
lconn.profiles.profilesSearchPage={loadSearchTilesControl:function(_2){
var _3={lang:"",lastMod:profilesData.config.profileLastMod,profilesSvcLocation:"/profiles",count:21,minChars:1,searchDelay:250,liveNameSupport:true,expandThumbnails:true,showEmail:true,messages:{photoAltText:"",inactiveText:"",noResultsText:"",resultsHeadingText:""}};
if(dojo.exists("lconn.profiles.PeopleTypeAheadTiles")){
_1=new lconn.profiles.PeopleTypeAheadTiles(dojo.mixin(dojo.clone(_3),dojo.clone(_2||{})),dojo.byId("profilesNameSearchField"));
}
if(dojo.exists("lconn.core.globalization.bidiUtil")){
lconn.core.globalization.bidiUtil.enforceTextDirectionOnPage(dojo.byId("formProfilesSimpleSearch"));
}
},init:function(_4){
var _5=function(){
if((_4&&_4.showAdvanced=="true")||document.location.hash=="#advancedSearch"){
dojo.addClass(dojo.byId("divProfilesTypeaheadSearch"),"lotusHidden");
dojo.removeClass(dojo.byId("divProfilesAdvancedSearch"),"lotusHidden");
}else{
if(document.location.hash=="#simpleSearch"){
dojo.addClass(dojo.byId("divProfilesAdvancedSearch"),"lotusHidden");
dojo.removeClass(dojo.byId("divProfilesTypeaheadSearch"),"lotusHidden");
}
}
};
if(dojo.isIE){
setTimeout(function(){
_5();
dojo.query("input[type='text']","advancedSearchForm").connect("onkeypress",function(_6){
if((_6||window.event).keyCode==13){
dojo.byId("advancedSearchForm").submit();
}
});
},0);
}else{
_5();
}
if(dojo.exists("lconn.core.globalization.bidiUtil")){
dojo.query(".bidiAware").forEach(function(_7){
var _8=_7.id?_7.id:"";
if(_8.indexOf("Number")>-1||_8.indexOf("email")>-1){
dojo.removeClass(_7,"bidiAware");
}
});
lconn.core.globalization.bidiUtil.enforceTextDirectionOnPage();
}
},submitSimpleSearch:function(_9){
if(typeof _9=="undefined"){
_9=dojo.byId("formProfilesSimpleSearch");
}
if(_9){
_9.searchFor.value=_1.getTextBoxValue();
if(/\S/.test(_9.searchFor.value)){
document.location.href=_9.action+"?"+dojo.formToQuery(_9);
}
}
return false;
},submitAdvancedSearch:function(_a){
if(typeof _a=="undefined"){
_a=dojo.byId("advancedSearchForm");
}
if(_a){
var _b=document.location.href+"?#";
_b=_b.split("?")[1].split("#")[0];
var _c=dojo.queryToObject(_b);
if(typeof _c=="object"&&_c.lang){
var _d="lang="+_c.lang+"&";
}else{
var _d="";
}
document.location.href=_a.action+"?"+_d+dojo.formToQuery(_a);
}
return false;
},showSimpleUI:function(){
dojo.addClass(dojo.byId("divProfilesAdvancedSearch"),"lotusHidden");
dojo.removeClass(dojo.byId("divProfilesTypeaheadSearch"),"lotusHidden");
window.location.hash="#simpleSearch";
dojo.byId("profilesNameSearchField").value=dojo.byId("advancedSearchForm").displayName.value;
if(_1){
_1.reset();
var _e=_1.getTextBoxValue();
if(_e.length>0){
_1._startSearchFromInput(_e);
}
}
setTimeout(function(){
dojo.byId("profilesNameSearchField").focus();
},0);
},showAdvancedUI:function(){
dojo.addClass(dojo.byId("divProfilesTypeaheadSearch"),"lotusHidden");
dojo.removeClass(dojo.byId("divProfilesAdvancedSearch"),"lotusHidden");
window.location.hash="#advancedSearch";
if(_1){
_1.reset();
dojo.byId("advancedSearchForm").displayName.value=_1.getTextBoxValue();
}
setTimeout(function(){
dojo.byId("advancedSearchForm").keyword.focus();
},0);
}};
})();
}


;if(!dojo._hasResource["lconn.profiles.ckeditor"]){
dojo._hasResource["lconn.profiles.ckeditor"]=true;
dojo.provide("lconn.profiles.ckeditor");


(function(){
var _1={};
var _2=0;
lconn.profiles.ckeditor={getAllInstances:function(){
if(window.CKEDITOR&&CKEDITOR.instances){
return CKEDITOR.instances;
}else{
return {};
}
},getInstance:function(_3){
return this.getAllInstances()[_3];
},getData:function(_4){
var _5=function(_6){
try{
var _7=dojo.trim(_6.replace(/\&nbsp;|\n|\t/g,""));
if(_7.indexOf("<p")===0&&_7.indexOf("</p>",_7.length-4)!==-1){
_7=_7.substring(2,_7.length-4);
if(_7.indexOf(">")>-1){
_7=_7.substring(_7.indexOf(">")+1);
}
return (dojo.trim(_7)=="");
}
}
catch(e){
}
return false;
};
var _8=this.getInstance(_4);
if(_8&&typeof _8.getData==="function"){
var _9=_8.getData();
if(_5(_9)){
return "";
}else{
return _9;
}
}else{
return null;
}
},checkDirty:function(_a){
var _b=this.getInstance(_a);
if(_b&&typeof _b.checkDirty==="function"){
return _b.checkDirty();
}else{
return false;
}
},resetDirty:function(_c){
var _d=this.getInstance(_c);
if(_d&&typeof _d.resetDirty==="function"){
_d.resetDirty();
_1[_c]=false;
return true;
}else{
return false;
}
},canRenderEditors:function(){
return (window.profilesData&&profilesData.config&&profilesData.config.pageId&&profilesData.config.pageId=="editProfileView");
},init:function(){
if(this.canRenderEditors()){
var _e=this._getNodesToProcess();
if(_e.length>0){
lconn.core.ckeditor.async(dojo.hitch(this,this._loadAllInstances));
if(dojo.isIE){
dojo.query(".rte").addClass("lotusJapanese");
}
}else{
if(_2++<400){
setTimeout(dojo.hitch(this,this.init),250);
}
}
}
},_loadAllInstances:function(){
var _f=this._getNodesToProcess();
for(var i=0;i<_f.length;i++){
editor=CKEDITOR.replace(_f[i].id,dojo.mixin(CKEDITOR.config,lconn.profiles.ckeditor.config));
editor.on("instanceReady",dojo.hitch(this,function(e){
var _10=e.editor.name;
_1[_10]=false;
setInterval(function(){
if(_1[_10]===false&&e.editor.checkDirty()){
_1[_10]=true;
dataChange(e);
}
},500);
if(dojo.byId(_10+"_RTE_loading")){
dojo.addClass(_10+"_RTE_loading","lotusHidden");
}
}));
}
},_getNodesToProcess:function(){
var _11=dojo.query(".rte textarea");
if(_11.length==0){
_11=dojo.query(".rte div._ckeditorvalue");
}
return _11;
},config:{toolbar_ProfilesToolbar:[{name:"tools",items:["Undo","Redo","MenuPaste","Find","LotusSpellChecker","ShowBlocks"]},{name:"styleboxes",items:["Format","Font","FontSize"]},{name:"stylebuttons",items:["Bold","Italic","Underline","Strike","TextColor","BGColor","Subscript","Superscript","RemoveFormat"]},{name:"paragraph",items:["JustifyLeft","JustifyCenter","JustifyRight","JustifyBlock","NumberedList","BulletedList","Indent","Outdent","Blockquote","BidiLtr","BidiRtl","Language"]},{name:"insert",items:["Table","Image","Link","PageBreak","HorizontalRule","SpecialChar"]}],language:djConfig.locale,toolbar:"ProfilesToolbar",ibmMentionDisabled:true,resize_maxWidth:850,height:400}};
dojo.addOnLoad(dojo.hitch(lconn.profiles.ckeditor,lconn.profiles.ckeditor.init));
})();
}


;define("dojox/date/posix",["dojo/_base/kernel","dojo/date","dojo/date/locale","dojo/string","dojo/cldr/supplemental"],function(_1,_2,_3,_4,_5){
var _6=_1.getObject("date.posix",true,dojox);
_6.strftime=function(_7,_8,_9){
var _a=null;
var _b=function(s,n){
return _4.pad(s,n||2,_a||"0");
};
var _c=_3._getGregorianBundle(_9);
var $=function(_d){
switch(_d){
case "a":
return _3.getNames("days","abbr","format",_9)[_7.getDay()];
case "A":
return _3.getNames("days","wide","format",_9)[_7.getDay()];
case "b":
case "h":
return _3.getNames("months","abbr","format",_9)[_7.getMonth()];
case "B":
return _3.getNames("months","wide","format",_9)[_7.getMonth()];
case "c":
return _3.format(_7,{formatLength:"full",locale:_9});
case "C":
return _b(Math.floor(_7.getFullYear()/100));
case "d":
return _b(_7.getDate());
case "D":
return $("m")+"/"+$("d")+"/"+$("y");
case "e":
if(_a==null){
_a=" ";
}
return _b(_7.getDate());
case "f":
if(_a==null){
_a=" ";
}
return _b(_7.getMonth()+1);
case "g":
break;
case "G":
console.warn("unimplemented modifier 'G'");
break;
case "F":
return $("Y")+"-"+$("m")+"-"+$("d");
case "H":
return _b(_7.getHours());
case "I":
return _b(_7.getHours()%12||12);
case "j":
return _b(_3._getDayOfYear(_7),3);
case "k":
if(_a==null){
_a=" ";
}
return _b(_7.getHours());
case "l":
if(_a==null){
_a=" ";
}
return _b(_7.getHours()%12||12);
case "m":
return _b(_7.getMonth()+1);
case "M":
return _b(_7.getMinutes());
case "n":
return "\n";
case "p":
return _c["dayPeriods-format-wide-"+(_7.getHours()<12?"am":"pm")];
case "r":
return $("I")+":"+$("M")+":"+$("S")+" "+$("p");
case "R":
return $("H")+":"+$("M");
case "S":
return _b(_7.getSeconds());
case "t":
return "\t";
case "T":
return $("H")+":"+$("M")+":"+$("S");
case "u":
return String(_7.getDay()||7);
case "U":
return _b(_3._getWeekOfYear(_7));
case "V":
return _b(_6.getIsoWeekOfYear(_7));
case "W":
return _b(_3._getWeekOfYear(_7,1));
case "w":
return String(_7.getDay());
case "x":
return _3.format(_7,{selector:"date",formatLength:"full",locale:_9});
case "X":
return _3.format(_7,{selector:"time",formatLength:"full",locale:_9});
case "y":
return _b(_7.getFullYear()%100);
case "Y":
return String(_7.getFullYear());
case "z":
var _e=_7.getTimezoneOffset();
return (_e>0?"-":"+")+_b(Math.floor(Math.abs(_e)/60))+":"+_b(Math.abs(_e)%60);
case "Z":
return _2.getTimezoneName(_7);
case "%":
return "%";
}
};
var _f="",i=0,_10=0,_11=null;
while((_10=_8.indexOf("%",i))!=-1){
_f+=_8.substring(i,_10++);
switch(_8.charAt(_10++)){
case "_":
_a=" ";
break;
case "-":
_a="";
break;
case "0":
_a="0";
break;
case "^":
_11="upper";
break;
case "*":
_11="lower";
break;
case "#":
_11="swap";
break;
default:
_a=null;
_10--;
break;
}
var _12=$(_8.charAt(_10++));
switch(_11){
case "upper":
_12=_12.toUpperCase();
break;
case "lower":
_12=_12.toLowerCase();
break;
case "swap":
var _13=_12.toLowerCase();
var _14="";
var ch="";
for(var j=0;j<_12.length;j++){
ch=_12.charAt(j);
_14+=(ch==_13.charAt(j))?ch.toUpperCase():ch.toLowerCase();
}
_12=_14;
break;
default:
break;
}
_11=null;
_f+=_12;
i=_10;
}
_f+=_8.substring(i);
return _f;
};
_6.getStartOfWeek=function(_15,_16){
if(isNaN(_16)){
_16=_5.getFirstDayOfWeek?_5.getFirstDayOfWeek():0;
}
var _17=_16;
if(_15.getDay()>=_16){
_17-=_15.getDay();
}else{
_17-=(7-_15.getDay());
}
var _18=new Date(_15);
_18.setHours(0,0,0,0);
return _2.add(_18,"day",_17);
};
_6.setIsoWeekOfYear=function(_19,_1a){
if(!_1a){
return _19;
}
var _1b=_6.getIsoWeekOfYear(_19);
var _1c=_1a-_1b;
if(_1a<0){
var _1d=_6.getIsoWeeksInYear(_19);
_1c=(_1d+_1a+1)-_1b;
}
return _2.add(_19,"week",_1c);
};
_6.getIsoWeekOfYear=function(_1e){
var _1f=_6.getStartOfWeek(_1e,1);
var _20=new Date(_1e.getFullYear(),0,4);
_20=_6.getStartOfWeek(_20,1);
var _21=_1f.getTime()-_20.getTime();
if(_21<0){
return _6.getIsoWeeksInYear(_1f);
}
return Math.ceil(_21/604800000)+1;
};
_6.getIsoWeeksInYear=function(_22){
function p(y){
return y+Math.floor(y/4)-Math.floor(y/100)+Math.floor(y/400);
};
var y=_22.getFullYear();
return (p(y)%7==4||p(y-1)%7==3)?53:52;
};
return _6;
});

dojo.provide("lconn.sand.nls.ImageStream")._built=true;
dojo.provide("lconn.sand.nls.ImageStream.en");
lconn.sand.nls.ImageStream.en={"NEXT":"Show next person","PREVIOUS":"Show previous person"};
if(typeof define!=="undefined"&&typeof define._packages!=="undefined")define._packages["lconn.sand"]=true;

;dojo.cache("lconn.sand", "templates/ImageStream.html", "<div> <div align=\"center\" style=\"padding-top: 10px\"> <span> <a role=\"button\" href=\"javascript:void(0);\" style=\"display: none\" dojoAttachPoint=\"StreamButtonPrev\" dojoAttachEvent=\"onclick:_previous\" aria-label=\"${strings.PREVIOUS}\" title=\"${strings.PREVIOUS}\"> <img dojoAttachPoint=\"StreamImgPrev\" alt=\"\" src=\"${_blankIcon}\" width=\"40\" height=\"40\" style=\"padding-top: 10px;\"/> </a> </span> <span> <img dojoAttachPoint=\"StreamImgMain\" alt=\"\" src=\"${_blankIcon}\" width=\"60\" height=\"60\"/> </span> <span> <a role=\"button\" href=\"javascript:void(0);\" style=\"display: none\" dojoAttachPoint=\"StreamButtonNext\" dojoAttachEvent=\"onclick:_next\" aria-label=\"${strings.NEXT}\" title=\"${strings.NEXT}\"> <img dojoAttachPoint=\"StreamImgNext\" alt=\"\" src=\"${_blankIcon}\" width=\"40\" height=\"40\" style=\"padding-top: 10px;\"/> </a> </span> </div> <div class=\"vcard\" align=\"center\" style=\"margin-top:5px;\" aria-live=\"assertive\" aria-relevant=\"all\"> <span dojoAttachPoint=\"StreamMainName\"></span> <span class=\"x-lconn-userid\" style=\"display:none;\" dojoAttachPoint=\"StreamMainId\"></span> </div></div>");

;if(!dojo._hasResource["lconn.sand.ImageStream"]){
dojo._hasResource["lconn.sand.ImageStream"]=true;
dojo.provide("lconn.sand.ImageStream");




dojo.requireLocalization("lconn.sand","ImageStream");
dojo.declare("lconn.sand.ImageStream",[dijit._Widget,dijit._Templated],{_blankIcon:dojo.config.blankGif,data:[],_position:0,templatePath:dojo.moduleUrl("lconn.sand","templates/ImageStream.html"),strings:null,postMixInProperties:function(){
if(!this.strings){
this.strings=dojo.i18n.getLocalization("lconn.sand","ImageStream");
}
},postCreate:function(){
this._position=0;
this._update();
},_getPhotoUrl:function(_1){
return com.ibm.social.layout.people.getImageUrl({userid:_1.uid},32);
},getCurrentItem:function(){
if(this.data&&this._position<this.data.length){
return this.data[this._position];
}
},_getProfileLink:function(_2){
var _3=dojo.create("span");
var _4=com.ibm.social.layout.people.createLink({name:_2.name,userid:_2.uid});
var _5=dojo.query(".x-lconn-userid",_4);
if(_5.length>0){
dojo.place(dojo.clone(_5[0]),_3);
_5[0].parentNode.removeChild(_5[0]);
}
dojo.place(_4,_3);
return _3;
},_next:function(){
if(this._position+1===this.data.length){
this._position=0;
}else{
this._position++;
}
this._update();
this.onNext();
},_previous:function(){
if(this._position===0){
this._position=this.data.length-1;
}else{
this._position--;
}
this._update();
this.onNext();
},_update:function(){
if(!this.data||this.data.length<this._position){
return;
}
var _6=this.getCurrentItem();
dojo.attr(this.StreamImgMain,"src",this._getPhotoUrl(_6));
dojo.attr(this.StreamImgMain,"alt",_6.name);
dojo.place(this._getProfileLink(_6),this.StreamMainName,"only");
if(this.data.length>1){
var _7;
if(this._position===0){
_7=this.data.length-1;
}else{
_7=this._position-1;
}
dojo.attr(this.StreamImgPrev,"src",this._getPhotoUrl(this.data[_7]));
dojo.attr(this.StreamImgPrev,"alt",this.data[_7].name);
dojo.style(this.StreamButtonPrev,"display","");
}else{
dojo.attr(this.StreamImgPrev,"src",this._blankIcon);
dojo.style(this.StreamButtonPrev,"display","none");
}
if(this.data.length>1){
var _8;
if(this._position+1===this.data.length){
_8=0;
}else{
_8=this._position+1;
}
dojo.attr(this.StreamImgNext,"src",this._getPhotoUrl(this.data[_8]));
dojo.attr(this.StreamImgNext,"alt",this.data[_8].name);
dojo.style(this.StreamButtonNext,"display","");
}else{
dojo.attr(this.StreamImgNext,"src",this._blankIcon);
dojo.style(this.StreamButtonNext,"display","none");
}
try{
SemTagSvc.parseDom(null,this.domNode);
}
catch(e){
}
},onNext:function(){
},onPrevious:function(){
}});
}

dojo.provide("lconn.sand.nls.ui")._built=true;
dojo.provide("lconn.sand.nls.ui.en");
lconn.sand.nls.ui.en={"sand_Blogs":"Blog entries","sand_SIsTManager":"%s is %t\'s manager","sand_TCommentedOnPostsOnSBoard":"%t commented on posts on %s\'s board.","sand_TSharedFilesWithYou":"%t shared files with you","sand_theyShareCommunity2":"They share ${tagA1}a community${tagA2}","sand_theyShareCollegue":"They share ${tagA1}a colleague${tagA2}","sand_theyShareCommunity1":"They share ${tagA1}a community${tagA2}","wikiCoCommenting":"You commented within the same wiki.","sand_TCommentedOnPostOnYourBoard":"%t commented on a post on your board.","sand_theyShareBookmarks":"They share ${tagA1}%c bookmarks${tagA2}","sand_TSharedAFileToYou":"%t shared a file with you","sand_theyWereBothTaggedWithTags":"They were both tagged with ${tagA1}%c tags${tagA2} ","sand_Communities":"Communities","sand_youShareActivity":"You share ${tagA1}an activity${tagA2}","lm1":"You are this person\'s manager","sand_youShareActivities":"You share ${tagA1}%c activities${tagA2}","sdm":"You share the same manager","sand_ForumThread":"Forum thread","sand_Bookmarks":"Bookmarks","sand_Forums":"Discussion topics","sand_TCommentedOnPostOnSBoard":"%t commented on a post on %s\'s board.","statusUpdatesOwnerPostedTo":"This person wrote on your board.","sand_SCommentedOnTPost":"%s commented on %t\'s post.","sand_SCommentedOnPostsOnTBoard":"%s commented on posts on %t\'s board.","sand_SWroteOnTBoard":"%s wrote on %t\'s board.","coFileCommenting":"You commented on the same files","sand_youBothTaggedPeople":"You both tagged ${tagA1}%c people${tagA2} ","sand_Activities":"Activities","sand_commentedCTimesOnYourBlog":"%t commented %c times on your ${tagA1}blog${tagA2}","sand_YouCommentedOnThePosts":"You commented on the same posts.","sand_theyBothTaggedSamePerson":"They both tagged the same ${tagA1}person${tagA2}","sand_theySameDepartment":"They are in the same department","TAGS":"Tags: ","sand_YouCommentedOnPostOnTBoard":"You commented on a post on %t\'s board.","sand_youCollegues":"You are colleagues","sand_Discussion":"Discussion","DYKRemove":"Remove","sand_ExpandSection":"Expand section","sand_DYK":"Do You Know","sand_commentedCTimesOnTBlog":"%s commented %c times on %t\'s ${tagA1}blog${tagA2}","numTagInCommon":"${0} related tags","sand_PersonIsConnectedToTarget":"${person} is connected to ${target}","sand_theyBothCommentedOnSameBlogEntry":"They both commented on the same ${tagA1}blog entry${tagA2}","sand_commentedOnTBlog":"%s commented on %t\'s ${tagA1}blog${tagA2}","statusUpdatesCommentedTo":"This person commented on your status update post.","sand_youWereBothTaggedWithTags":"You were both tagged with ${tagA1}%c tags${tagA2} ","sand_YouEditedTFiles":"You were an editor of files authored by %t.","fileShared":"This person shared one or more files with you","sand_theyShareCollegues":"They share ${tagA1}%c colleagues${tagA2}","sand_youCommentedOnTBlog":"You commented on %t\'s ${tagA1}blog${tagA2}","sand_previous":"Previous","sand_YouCommentedOnTPosts":"You commented on %t\'s posts.","pctg":"You have both tagged the same person","sand_LogInTIC":"Log in to see common things between you.","sand_noRecomForNow":"There are no recommendations for you.","RESTORE_ACTION":"Restore removed recommendations","sand_youBothCommentedOnSameBlogEntryCTimes":"You both commented on the same ${tagA1}blog entry${tagA2} %c times","NDYK1":"No more people to recommend","sand_Blog":"Blog entry","forumthreaddiscussion":"You share a forum thread","sand_theyShareActivities":"They share ${tagA1}%c activities${tagA2}","str_component_id":"CLFRTT","sand_TwistyAccessHint":"Use the Enter key on the twisty to switch between the expanded and collapsed.","sand_theyShareActivity":"They share ${tagA1}an activity${tagA2}","numPeopleInCommon":"${0} related people","sand_youCoCommentedWiki":"You both commented within the same ${tagA1}wiki${tagA2}","sand_TWroteOnSBoard":"%t wrote on %s\'s board.","recommendErrorGeneric":"An error occurred while displaying content. Contact your system administrator.","sand_thingsInCommon_actionsFor":"Actions for Things in Common","sand_TCommentedOnPostsOnYourBoard":"%t commented on posts on your board.","sand_youShareDirectManager":"You share a ${tagA1}direct manager${tagA2}","sand_you":"you","ticUnavailable":"The items in common for you and this profile cannot currently be retrieved.","tgw":"You are tagged the same","sand_Tag":"Tag","sand_SEditedTFile":"%s was an editor of a file authored by %t.","sand_theyCoeditedWiki":"They co-edited a ${tagA1}wiki${tagA2}","numTagsInCommon":"${0} related tags","sand_Wikis":"Wiki pages","sand_Community":"Community","statusUpdatesCoCommenting":"You have commented on the same status update post.","acm":"You share activities","sand_youCoeditedWiki":"You co-edited a ${tagA1}wiki${tagA2}","sand_youAreTManager":"You are %t\'s manager","CANCEL_ACTION":"Cancel","SEND_ACTION":"Send","tgb":"The same people have tagged you both","sand_theyShareForumThread":"They share ${tagA1}a forum thread${tagA2}","sand_TSharedFilesWithS":"%t shared files with %s","sand_Tags":"Tags","sand_CollapseSection":"Collapse section","sand_YouWroteOnTBoard":"You wrote on %t\'s board.","sand_theyShareActivities120":"They share more than ${tagA1}120 activities${tagA2}","sand_youSharedAFileToT":"You shared a file with %t","LOADING":"Loading...","sand_recomItems_actionsFor":"Actions for Recommendations","sand_theyCollegues":"They are colleagues","sand_howAreConnected":"How are ${0} and ${1} connected","statusUpdatesOwnerCommentedBy":"You commented on one or more posts on this person\'s board.","sand_Bookmark":"Bookmark","sand_SSharedFilesToT":"%s shared files with %t","NEXT":"Next","sand_theyCoCommentedWiki":"They both commented within the same ${tagA1}wiki${tagA2}","sand_noSocialPath":"There are no connections between you and ${person}.","sand_youBothTaggedSamePerson":"You both tagged the same ${tagA1}person${tagA2}","sand_YouAreConnectedToPerson":"You are connected to ${person}","sand_commentedCTimesOnSBlog":"%t commented %c times on %s\'s ${tagA1}blog${tagA2}","dykUnavailable":"Suggestions for people you could invite to your network cannot currently be retrieved.","sand_theyShareFiles":"They share ${tagA1}%c files${tagA2}","sand_commentedOnSBlog":"%t commented on %s\'s ${tagA1}blog${tagA2}","sand_theyBothUsedTags":"There are ${tagA1}%c tags${tagA2} which They both used","sand_thereArePeopleThatTaggedThemBoth":"There are ${tagA1}%c people${tagA2} that tagged them both","sand_youBothCommentedOnSameBlogEntry":"You both commented on the same ${tagA1}blog entry${tagA2}","sand_STaggedT":"%s tagged %t","sand_youBothUsedSameTag":"You both used the ${tagA1}same tag${tagA2}","sand_youBothUsedTags":"There are ${tagA1}%c tags${tagA2} which You both used","sand_SCoSharesFileWithT":"They have been shared the same file","sand_youShareFile":"You share ${tagA1}a file${tagA2}","sand_TWroteOnYourBoard":"%t wrote on your board.","sand_theyShareCommunities2":"They share ${tagA1}%c communities${tagA2}","statusUpdatesOwnerPostedBy":"You posted to this person\'s board.","sand_theyShareCommunities1":"They share ${tagA1}%c communities${tagA2}","NR2":"As you create content and connect to people recommendations will start to appear.","NR1":"There are no current recommendations for you.","sand_recomItems":"Recommendations","DYKRemovePerson":"Remove ${personName}","sand_youCoeditedWikis":"You co-edited ${tagA1}%c wikis${tagA2}","sand_theyBothTaggedPeople":"They both tagged ${tagA1}%c people${tagA2}","sand_YouCommentedOnPostsOnTBoard":"You commented on posts on %t\'s board.","sand_TopItemsComm":"Top Items in Common","sand_youShareBookmarks":"You share ${tagA1}%c bookmarks${tagA2}","todoout":"This person assigned todos to you","fileSharing":"You shared one or more files with this person.","sand_TModifiedSFile":"%t was an editor of a file authored by %s.","sand_youCoCommentedWikis":"You commented within the same ${tagA1}%c wikis${tagA2}","sand_youCommentedCTimesOnTBlog":"You commented %c times on %t\'s ${tagA1}blog${tagA2}","sand_theyBothCommentedOnSameBlogEntryCTimes":"They both commented on the same ${tagA1}blog entry${tagA2} %c times","sand_theyShareForumThreads":"They share ${tagA1}%c forum threads${tagA2}","sand_next":"Next","sand_YouEditedTFile":"You were an editor of a file authored by %t.","recommendError":"An error has occured, the recommendation system may not be available.","sand_You":"You","sand_someoneTaggedThemBoth":"${tagA1}Someone${tagA2} tagged them both","INVITE_TITLE":"Send invitation to connect","sand_SEditedTFiles":"%s was an editor of files authored by %t.","sand_TCommentedOnSPost":"%t commented on %s\'s post.","sand_youShareForumThreads":"You share ${tagA1}%c forum threads${tagA2}","sand_TheyCommentedOnTheSamePost":"They commented on the same post.","statusUpdatesCommentedBy":"You commented on this person\'s status update post.","sand_fileCoSharing":"You have been shared the same file","tcu":"You have used the same tag","sand_DYK_actionsFor":"Actions for Do You Know","sand_youShareBookmark":"You share ${tagA1}a bookmark${tagA2}","sand_TTaggedYou":"%t tagged you","sand_youShareCommunities2":"You share ${tagA1}%c communities${tagA2}","sand_youShareCommunities1":"You share ${tagA1}%c communities${tagA2}","pt":"This person tagged you","sand_Wiki":"Wiki page","sand_TModifiedSFiles":"%t was an editor of files authored by %s.","sand_OneOfOne":"1 of 1","sand_youWereBothTaggedBySameTag":"You were both tagged by the same ${tagA1}tag${tagA2}","sand_personIsInYourNetwork":"${person} is in your network. ","sand_theyBothUsedSameTag":"They both used the ${tagA1}same tag${tagA2}","CONNECT_TO_PERSON":"Invite ${personName} to connect","sand_YouCommentedOnTPost":"You commented on %t\'s post.","sand_NothingInCommon":"There are no items in common for you and this profile.","sand_commentedOnYourBlog":"%t commented on your ${tagA1}blog${tagA2}","str.msgid.ignore":"true","sand_ActionsFor":"Actions for {0}","le1":"This person is your manager","sand_youShareCollegues":"You share ${tagA1}%c colleagues${tagA2}","sand_theyCoeditedWikis":"They co-edited ${tagA1}%c wikis${tagA2}","sand_theyShareBookmark":"They share ${tagA1}a bookmark${tagA2}","RECOMMENDATIONS_TITLE":"Your Recommendations","sand_loadingString":"Loading...","sand_TheyCommentedOnTheSamePosts":"They commented on the same posts.","DYK_TITLE":"Do You Know","pbt":"You tagged this person","sand_socialPath":"Who Connects Us?","sand_youSameDepartment":"You are in the same department","sand_TTaggedS":"%t tagged %s","sand_Login":"Log in","sand_theyShareFile":"They share ${tagA1}a file${tagA2}","PREV":"Previous","TITLE_RECOMMEND":"Recommendations:","sand_theyShareDirectManager":"They share a ${tagA1}direct manager${tagA2}","sand_TSharedAFileWithS":"%t shared a file with %s","sand_TCommentedOnYourPost":"%t commented on your post.","sand_TIsSManager":"%t is %s\'s manager","lpfr":"Is your colleague","wikiCoContribution":"You both edited the same wiki","sameDepartment":"You are in the same department","sand_youShareCollegue":"You share ${tagA1}a colleague${tagA2}","sand_Discussions":"Discussions","sand_youShareForumThread":"You share ${tagA1}a forum thread${tagA2}","sand_andMore":"and ${0} more","sand_thereArePeopleThatTaggedYouBoth":"There are ${tagA1}%c people${tagA2} that tagged you both","sand_TIsYourManager":"%t is your manager","sand_youSharedFilesToT":"You shared files with %t","sand_youShareCommunity2":"You share ${tagA1}a community${tagA2}","sand_youShareCommunity1":"You share ${tagA1}a community${tagA2}","sand_recomComm":"Recommendations","sand_Activity":"Activity","sand_SCoSharesFilesWithT":"They have been shared the same files","sand_More":"More (${restItemsNum})","sand_simComm":"Similar Communities","lpcfr":"You share some colleagues","CONNECT_TO":"Invite to Connect","sand_youShareActivities120":"You share more than ${tagA1}120 activities${tagA2}","sand_TEditedYourFile":"%t was an editor of a file that you authored.","sand_thingsInCommon":"Things in Common","fileAuthorEditedBy":"You were an editor of one or more files authored by this person.","sand_they":"They","sand_File":"File","sand_Forum":"Discussion topic","sand_someoneTaggedYouBoth":"${tagA1}Someone${tagA2} tagged you both","sand_TCommentedOnSPosts":"%t commented on %s\'s posts.","bpct":"Has commented on your blog","sand_youShareFiles":"You share ${tagA1}%c files${tagA2}","sand_XtoXofX":"${fromItem} - ${toItem} of ${totalItems}","sand_TEditedYourFiles":"%t was an editor of files that you authored.","sand_YouCommentedOnTheSamePost":"You commented on the same post.","sand_Files":"Files","fileCoSharing":"This person and you were shared the same file or files","ccms":"You are in a community together","sand_theyWereBothTaggedBySameTag":"They were both tagged by the same ${tagA1}tag${tagA2}","sand_ForumThreads":"Forum threads","TAGS_IN_COMMON":"Tags in common: ","sand_TCommentedOnYourPosts":"%t commented on your posts.","fileEditorAuthoredBy":"This person was an editor of one or more files authored by you.","bpcc":"You have commented on the same blog","bpcb":"You commented on their blog","ctb":"You share a bookmark","sand_filesCoSharing":"You have been shared the same files","ccmf":"You are in a community together","sand_SSharedAFileToT":"%s shared a file with %t","sand_youTaggedT":"You tagged %t","todoin":"You assigned todos to this person","socialPathUnavailable":"The connections between you and other people cannot currently be retrieved.","statusUpdatesOwnerCommentedTo":"This person commented on one or more posts on your board.","numPersonInCommon":"${0} related person","sand_theyCoCommentedWikis":"They commented within the same ${tagA1}%c wikis${tagA2}","sand_SCommentedOnPostOnTBoard":"%t commented on a post on %s\'s board.","sand_SCommentedOnTPosts":"%s commented on %t\'s posts."};
dojo.provide("lconn.sand.nls.DoYouKnowWidget")._built=true;
dojo.provide("lconn.sand.nls.DoYouKnowWidget.en");
lconn.sand.nls.DoYouKnowWidget.en={"pbt":"You tagged this person","INVITE_TITLE":"Send invitation to connect","pt":"This person tagged you","ccms":"You are in a commnuity together","acm":"You share activities","SEND_ACTION":"Send","DYK_TITLE":"Do You Know","tgb":"The same people have tagged you both","lm1":"You are this persons manager","lpfr":"Is a colleague of someone you know","CONNECT_TO":"Invite to Connect","ctb":"You share a bookmark","forumthreaddiscussion":"You share a forum thread","le1":"This person is your manager","CANCEL_ACTION":"Cancel","LOADING":"loading","filesharing":"You share some files","tgw":"You have matching tags","tcu":"You have used the same tag","pctg":"You have both tagged the same person","NDYK1":"No more people to recommend","lpcfr":"You share some colleagues","wikiCoContribution":"You both edited the same wiki","bpcb":"You commented on their blog","bpcc":"You have commented on the same blog","NEXT":"Next","PREV":"Previous","ccmf":"You are in a commnuity together","sdm":"You share the same manager","bpct":"Has commented on your blog"};

;dojo.cache("lconn.sand", "templates/DYKProfiles.html", "<div dojoAttachPoint=\"root\" class=\"topContainer\"> <span aria-live=\"assertive\"> <div dojoAttachPoint=\"DYKLoading\"> <center>${loading}</center> </div> <div dojoAttachPoint=\"welcomeNode\" style=\"display:none;\"> <span>${noDYKEntry1}</span> </div> <div dojoAttachPoint=\"DYKContainer\" style=\"display: none;\"> <div> <div dojoAttachPoint=\"DYKNode\"> <div dojoAttachPoint=\"imageStream\"> </div> <div class=\"actions\" align=\"center\" style=\"padding-top:10px;padding-bottom:10px;margin-bottom:10px;border-bottom:1px solid #e8ecee;\"> <button type=\"button\" class=\"lotusFormButton\" style=\"max-width: 100%;\" role=\"button\" dojoAttachPoint=\"DYKMainInvitePerson\" dojoAttachEvent=\"onclick:invite\" >${connectString}</button> <div><a href=\"javascript:void(0);\" dojoAttachPoint=\"DYKMainRemovePerson\" dojoAttachEvent=\"onclick:removePerson\">${remove}</a></div> </div> <div dojoAttachPoint=\"DYKEvidence\"></div> </div> </div> </div> </span></div> ");

;dojo.cache("lconn.sand", "xslt/doYouKnow.xsl", "<?xml version=\"1.0\" encoding=\"utf-8\"?><xsl:stylesheet version=\"1.0\" xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\" xmlns:atom=\"http://www.w3.org/2005/Atom\" xmlns:ibmss=\"http://www.ibm.com/search/social/2011\" xmlns:ibmsc=\"http://www.ibm.com/search/content/2010\" xmlns:openSearch=\"http://a9.com/-/spec/opensearch/1.1/\" xmlns:relevance=\"http://a9.com/-/opensearch/extensions/relevance/1.0/\" xmlns:snx=\"http://www.ibm.com/xmlns/prod/sn\" xmlns:spelling=\"http://a9.com/-/opensearch/extensions/spelling/1.0/\" exclude-result-prefixes=\"atom\"> <xsl:output method=\"text\" encoding=\"utf-8\" /> <xsl:template match=\"/atom:feed\"> <xsl:call-template name=\"doYouKnow\"/> </xsl:template> <xsl:template name=\"doYouKnow\"> <xsl:if test=\"count(atom:entry)&gt;0\"> [<xsl:for-each select=\"atom:entry\"> { name:\"<xsl:value-of select=\"normalize-space(atom:author/atom:name/text())\"/>\", uid:\"<xsl:value-of select=\"atom:author/snx:userid\"/>\", evidence: [ <xsl:for-each select=\"ibmss:association_evidence\"> {ename:\"<xsl:value-of select=\"@type\"/>\", evalue:\"<xsl:value-of select=\"@count\"/>\" }<xsl:if test=\"not(position()=last())\">,</xsl:if> </xsl:for-each> ] }<xsl:if test=\"not(position()=last())\">,</xsl:if> </xsl:for-each>] </xsl:if> </xsl:template> </xsl:stylesheet>");

;if(!dojo._hasResource["lconn.sand.DYKProfiles"]){
dojo._hasResource["lconn.sand.DYKProfiles"]=true;
dojo.provide("lconn.sand.DYKProfiles");


























dojo.requireLocalization("lconn.sand","ui");
dojo.requireLocalization("lconn.sand","DoYouKnowWidget");
var bidiUtil=lconn.core.globalization.bidiUtil;
dojo.declare("lconn.sand.DYKProfiles",[dijit._Widget,dijit._Templated,dijit._Container],{_blankIcon:dojo.config.blankGif,_resourceBundle:null,widgetTitle:"",inviteTitle:"",sendAction:"",cancelAction:"",connectString:"",remove:"",prev:"",next:"",noDYKEntry1:"",loading:"",templatePath:dojo.moduleUrl("lconn.sand","templates/DYKProfiles.html"),feedbackUrl:"",remoteUrl:"",profilesRoot:"",currentData:null,currentUserId:null,inviteErrorHandler:null,inviteXHRErrorHandler:null,lastMod:"",_xslCache:new (dojo.declare("",[lconn.core.util._XSLCache],{xslStrings:{"doYouKnow.xsl":{templatePath:dojo.moduleUrl("lconn.sand","xslt/doYouKnow.xsl")}}})),postMixInProperties:function(){
this._resourceBundle=dojo.i18n.getLocalization("lconn.sand","ui");
this.widgetTitle=this._resourceBundle.DYK_TITLE;
this.noDYKEntry1=this._resourceBundle.NDYK1;
this.loading=this._resourceBundle.LOADING;
this.inviteTitle=this._resourceBundle.INVITE_TITLE;
this.cancelAction=this._resourceBundle.CANCEL_ACTION;
this.sendAction=this._resourceBundle.SEND_ACTION;
this.connectString=this._resourceBundle.CONNECT_TO;
this.prev=this._resourceBundle.PREV;
this.next=this._resourceBundle.NEXT;
this.remove=this._resourceBundle.DYKRemove;
if(this.remoteUrl==""){
this.remoteUrl="/developerworks/community/search/atom/social/graph/list";
}
if(this.feedbackUrl==""){
this.feedbackUrl="/developerworks/community/search/api/feedback";
}
},postCreate:function(){
dojo.style(this.DYKLoading,"display","");
var _1=dojo.cookie("lconn.sand.lastmod");
if(_1){
this.lastMod=_1;
}else{
this.lastMod=new Date().getTime();
dojo.cookie("lconn.sand.lastmod",this.lastMod,{expires:7});
}
this._fetchPeople();
},_handleAsyncRequest:function(_2,_3){
if(_2!=null){
var _4=dojox.xml.parser.parse(_2);
var _5=this._xslCache.getXslDoc("doYouKnow.xsl");
var _6=lconn.core.xslt.transform(_4,_5,null,null,true);
if(_6!=null&&_6!=""){
try{
this.currentData=eval("("+_6+")");
if(this.currentData!=null){
dojo.style(this.welcomeNode,"display","none");
dojo.style(this.DYKLoading,"display","none");
this._translateEvidence();
this._setContent();
this.DYKContainer.style.display="";
dojo.style(this.DYKContainer,"display","");
dojo.style(this.DYKNode,"display","");
}
}
catch(jsonException){
dojo.style(this.DYKLoading,"display","none");
dojo.style(this.welcomeNode,"display","");
}
}else{
dojo.style(this.DYKLoading,"display","none");
dojo.style(this.welcomeNode,"display","");
}
}
},_fetchPeople:function(){
dojo.style(this.DYKLoading,"display","");
dojo.style(this.welcomeNode,"display","none");
dojo.style(this.DYKContainer,"display","none");
var _7={url:com.ibm.oneui.util.proxy(this.remoteUrl),handleAs:"text",timeout:30000,content:{lastMod:this.lastMod,pageSize:"15",uid:this.currentUserId}};
var _8=dojo.xhrGet(_7);
_8.addCallback(dojo.hitch(this,"_handleAsyncRequest"));
_8.addErrback(dojo.hitch(this,"_handleError"));
},_setContent:function(){
if(this.imageStream instanceof lconn.sand.ImageStream){
this.imageStream.data=this.currentData;
this.imageStream.postCreate();
}else{
this.imageStream=new lconn.sand.ImageStream({data:this.currentData,onNext:dojo.hitch(this,"_nextDYK"),onPrevious:dojo.hitch(this,"_previousDYK")},this.imageStream);
}
this._updateEvidenceAndActions();
},_updateEvidenceAndActions:function(){
var _9=this.imageStream.getCurrentItem();
this._updateEvidence(_9);
this._updateActions(_9);
},_updateActions:function(_a){
var _b=dojo.string.substitute(this._resourceBundle.CONNECT_TO_PERSON,{personName:bidiUtil.enforceTextDirection(_a.name)});
var _c=dojo.string.substitute(this._resourceBundle.DYKRemovePerson,{personName:bidiUtil.enforceTextDirection(_a.name)});
dojo.attr(this.DYKMainInvitePerson,"aria-label",_b);
dojo.attr(this.DYKMainInvitePerson,"title",_b);
dojo.attr(this.DYKMainRemovePerson,"aria-label",_c);
dojo.attr(this.DYKMainRemovePerson,"title",_c);
},_updateEvidence:function(_d){
if(_d.evidence.length>0){
var ul=dojo.create("ul",{"style":"margin-left: 0px; padding-left: 15px;"},this.DYKEvidence,"only");
for(var i=0;i<_d.evidence.length;i++){
dojo.create("li",{"style":"margin-left: 0px; padding-left: 0px;","innerHTML":"<span tabindex='0'>"+_d.evidence[i].ename+"</span>"},ul);
}
}else{
this.DYKEvidence.innerHTML="";
}
bidiUtil.enforceTextDirectionOnPage(this.DYKContainer);
},_translateEvidence:function(){
for(var i=0;i<this.currentData.length;i++){
if(this.currentData[i].evidence!=null&&this.currentData[i].evidence.length>0){
for(var j=0;j<this.currentData[i].evidence.length;j++){
this.currentData[i].evidence[j].ename=this._resourceBundle[this.currentData[i].evidence[j].ename];
}
}
}
},_handleError:function(_e,_f){
this._displayError(_e);
},_displayError:function(_10){
dojo.style(this.DYKLoading,"display","none");
dojo.style(this.DYKContainer,"display","none");
if(_10&&_10.status===503){
dojo.create("span",{"class":"lotusMeta","innerHTML":this._resourceBundle.dykUnavailable},this.welcomeNode,"only");
}
dojo.style(this.welcomeNode,"display","");
},_previousDYK:function(){
setTimeout(dojo.hitch(this,this._updateEvidenceAndActions),0);
},_nextDYK:function(){
setTimeout(dojo.hitch(this,this._updateEvidenceAndActions),0);
},invite:function(){
var _11=this.imageStream.getCurrentItem();
lconn.profiles.invite.Invite.showDialog(this.profilesRoot,false,_11.name,_11.uid,this.currentUserId,this.root.id,this.inviteXHRErrorHandler,this.inviteErrorHandler,null,dojo.hitch(this,this.sendInvite),dojo.hitch(this,this.cancelInvite));
},sendInvite:function(){
this.removePerson();
},cancelInvite:function(){
},removePerson:function(){
var _12=this.imageStream.getCurrentItem();
var _13=_12.uid;
this._feedbackRequest(_13);
},_feedbackRequest:function(_14){
var _15=[];
for(var i=0;i<this.currentData.length;i++){
if(this.currentData[i].uid!==_14){
_15.push(this.currentData[i]);
}
}
this.currentData=_15;
if(this.currentData.length===0){
dojo.style(this.DYKLoading,"display","none");
dojo.style(this.DYKContainer,"display","none");
dojo.style(this.welcomeNode,"display","");
}else{
this._setContent();
}
var _16={url:com.ibm.oneui.util.proxy(this.feedbackUrl),handleAs:"text",timeout:30000,content:{client:"lconn.sand.DYKProfiles",itemid:_14,action:"remove"}};
var req=dojo.xhrGet(_16);
this.lastMod=new Date().getTime();
dojo.cookie("lconn.sand.lastmod",this.lastMod,{expires:7});
if(this.currentData.length===0){
this._fetchPeople();
}
},DEFAULT_AMOUNT:5});
}


;if(!dojo._hasResource["lconn.sand.DYKWrapped"]){
dojo._hasResource["lconn.sand.DYKWrapped"]=true;
dojo.provide("lconn.sand.DYKWrapped");


dojo.requireLocalization("lconn.sand","ui");
dojo.declare("lconn.sand.DYKWrapped",null,{userid:null,getProxy:function(){
return com.ibm.mm.enabler.services.CONFIG_SERVICE.getValue(com.ibm.mm.enabler.services.CONFIG_SERVICE.PROXY_URL);
},onLoad:function(){
var _1=this.iContext.getiWidgetAttributes();
var _2=dojo.i18n.getLocalization("lconn.sand","ui");
this.sandUIRoot=this.iContext.io.rewriteURI(_1.getItemValue("sandUIRoot"));
this.sandBackEndRoot=this.iContext.io.rewriteURI(_1.getItemValue("sandBackEndRoot"));
var _3=_1.getItemValue("profilesRoot");
var _4=_1.getItemValue("inviteErrorHandler");
if(_4){
_4=dojo.getObject(_4);
}
var _5=_1.getItemValue("inviteXHRErrorHandler");
if(_5){
_5=dojo.getObject(_5);
}
dojo.global.proxyUrl=this.getProxy();
var _6=this.sandUIRoot+"js_src";
var _7=(_6)+"/lconn/sand";
if(!dojo.exists("lconn.sand.DYKProfiles")){
if(dojo.exists("dojo.registerModulePath")){
dojo.registerModulePath("lconn.sand",_7);
}else{
if(dojo.exists("require")){
require({paths:{"lconn.sand":_7}});
}
}


}
var _8="_"+this.iContext.widgetId+"_root";
var _9=this.iContext.getElementById(_8);
this.userid=this.iContext.getUserProfile().getItemValue("userid");
var _a=new lconn.sand.DYKProfiles({remoteUrl:this.sandBackEndRoot+"/atom/social/graph/list",profilesRoot:_3,currentUserId:this.userid,inviteErrorHandler:_4,inviteXHRErrorHandler:_5});
dojo.place(_a.domNode,_9,"last");
}});
}


;if(!dojo._hasResource["lconn.sand.sandAll"]){
dojo._hasResource["lconn.sand.sandAll"]=true;
dojo.provide("lconn.sand.sandAll");
dojo.requireLocalization("lconn.sand","ui");
lconn.sand.sandAll.loadAllStringIntoObject=function(_1){
var _2=dojo.i18n.getLocalization("lconn.sand","ui");
for(var i in _2){
_1[i]=_2[i];
}
};
}


;if(!dojo._hasResource["lconn.sand.PersistTooltip"]){
dojo._hasResource["lconn.sand.PersistTooltip"]=true;
dojo.provide("lconn.sand.PersistTooltip");
dojo.declare("lconn.sand.PersistTooltip",[dijit.Tooltip],{postCreate:function(){
if(!dijit._masterTT){
dijit._masterTT=new dijit._MasterTooltip();
}
dijit._masterTT.connect(dijit._masterTT.domNode,"onmouseover",this.ttPersist);
dijit._masterTT.connect(dijit._masterTT.domNode,"onmouseout",this.ttFade);
this.inherited("postCreate",arguments);
},open:function(_1){
this.inherited("open",arguments);
},ttPersist:function(_2){
this.fadeOut.stop();
this.fadeIn.play();
},ttFade:function(_3){
this.fadeOut.play();
}});
}


;if(!dojo._hasResource["lconn.sand.sandConsts"]){
dojo._hasResource["lconn.sand.sandConsts"]=true;
dojo.provide("lconn.sand.sandConsts");
sandConsts={NAME_SPACES:[{prefix:"atom",nameSpaceURI:"http://www.w3.org/2005/Atom"},{prefix:"sn",nameSpaceURI:"http://www.ibm.com/xmlns/prod/sn"},{prefix:"sand",nameSpaceURI:"http://www.example.org/sand"},{prefix:"xhtml",nameSpaceURI:"http://www.w3.org/1999/xhtml"},{prefix:"ass",nameSpaceURI:"http://www.ibm.com/xmlns/ass"},{prefix:"app",nameSpaceURI:"http://www.w3.org/2007/app"},{prefix:"ibmss",nameSpaceURI:"http://www.ibm.com/search/social/2011"},{prefix:"ibmsc",nameSpaceURI:"http://www.ibm.com/search/content/2010"},{prefix:"openSearch",nameSpaceURI:"http://a9.com/-/spec/opensearch/1.1/"},{prefix:"relevance",nameSpaceURI:"http://a9.com/-/opensearch/extensions/relevance/1.0/"},{prefix:"snx",nameSpaceURI:"http://www.ibm.com/xmlns/prod/sn"},{prefix:"spelling",nameSpaceURI:"http://a9.com/-/opensearch/extensions/spelling/1.0/"}]};
}


;dojo.cache("lconn.sand", "templates/Evidence.html", "<div dojoattachpoint=\"evArea\" style=\"clear: both\"> <div dojoattachpoint=\"evAreaTitle\"> <a href=\"javascript:;\" dojoAttachPoint=\"twisty\" aria-labelledby=\"${id}_evidenceTitle\" aria-expanded=\"false\" role=\"button\"> <span class=\"lotusAltText\" dojoAttachPoint=\"twistySymbol\" role=\"presentation\"> &gt;</span> <img class=\"lotusSprite lotusArrow lotusTwistyClosed\" dojoAttachPoint=\"twistyImg\" src=\"${_blankGif}\" role=\"presentation\" alt=\"\"/> <b dojoAttachPoint=\"evidenceTitle\" id=\"${id}_evidenceTitle\"></b> </a> </div> <div style=\"display: none;\" dojoAttachPoint=\"evSubArea\"> <span dojoAttachPoint=\"evList\"></span> </div></div>");

;if(!dojo._hasResource["lconn.sand.Evidence"]){
dojo._hasResource["lconn.sand.Evidence"]=true;
dojo.provide("lconn.sand.Evidence");










dojo.requireLocalization("lconn.sand","ui");
dojo.declare("lconn.sand.Evidence",[dijit._Widget,dijit._Templated],{templateString:"",templatePath:dojo.moduleUrl("lconn.sand","templates/Evidence.html"),widgetsInTemplate:true,_blankGif:(dojo.config.blankGif||dojo.moduleUrl("dojo","resources/blank.gif?etag=20150310.220517")),baseURL:window.location.protocol+"//"+window.location.host+applicationContext,evMax:25,LINK_TEMPLATE:{tagA1:"",tagA2:""},RELATIONSHIP_TEMPLATES:null,uid:null,userid:null,targetUid:null,targetUserid:null,iContext:null,meLoaded:false,targetLoaded:false,twistyEvent:null,twistyTitleEvent:null,foundRels:[],isBulletedList:false,lcSS:null,clear:function(){
dojo.disconnect(this.twistyTitleEvent);
dojo.empty(this.evList);
},constructor:function(){
this.lcSS=dojo.i18n.getLocalization("lconn.sand","ui");
this.RELATIONSHIP_TEMPLATES=[{relcode:"lpfr",getStr:function(_1,_2){
return _1?this.str1:this.str2;
},str1:this.lcSS.sand_youCollegues,str2:this.lcSS.sand_theyCollegues,isCanBePlural:false},{relcode:"lm1",getStr:function(_3,_4){
return _3?this.str1:this.str2;
},str1:this.lcSS.sand_youAreTManager,str2:this.lcSS.sand_SIsTManager,isCanBePlural:false},{relcode:"le1",getStr:function(_5,_6){
return _5?this.str1:this.str2;
},str1:this.lcSS.sand_TIsYourManager,str2:this.lcSS.sand_TIsSManager,isCanBePlural:false},{relcode:"sdm",getStr:function(_7,_8){
return _7?this.str1:this.str2;
},str1:this.lcSS.sand_youShareDirectManager,str2:this.lcSS.sand_theyShareDirectManager,isCanBePlural:false},{relcode:"pt",getStr:function(_9,_a){
return (_9?this.str2:this.str1);
},str1:this.lcSS.sand_TTaggedS,str2:this.lcSS.sand_TTaggedYou,isCanBePlural:false},{relcode:"pbt",getStr:function(_b,_c){
return (_b?this.str2:this.str1);
},str1:this.lcSS.sand_STaggedT,str2:this.lcSS.sand_youTaggedT,isCanBePlural:false},{relcode:"acm",getStr:function(_d,_e){
return _e?(_d?this.pluralStr1:this.pluralStr2):(_d?this.str1:this.str2);
},str1:this.lcSS.sand_youShareActivity,str2:this.lcSS.sand_theyShareActivity,pluralStr1:this.lcSS.sand_youShareActivities,pluralStr2:this.lcSS.sand_theyShareActivities,isCanBePlural:true,specialAction:function(_f,c){
return parseInt(c)>120?(_f?this.special1:this.special2):null;
},special1:this.lcSS.sand_youShareActivities120,special2:this.lcSS.sand_theyShareActivities120},{relcode:"sameDepartment",getStr:function(_10,_11){
return _11?(_10?this.pluralStr1:this.pluralStr2):(_10?this.str1:this.str2);
},str1:this.lcSS.sand_youSameDepartment,str2:this.lcSS.sand_theySameDepartment,isCanBePlural:false},{relcode:"wikiCoCommenting",getStr:function(_12,_13){
return _13?(_12?this.pluralStr1:this.pluralStr2):(_12?this.str1:this.str2);
},str1:this.lcSS.sand_youCoCommentedWiki,str2:this.lcSS.sand_theyCoCommentedWiki,pluralStr1:this.lcSS.sand_youCoCommentedWikis,pluralStr2:this.lcSS.sand_theyCoCommentedWikis,isCanBePlural:true},{relcode:"wikiCoContribution",getStr:function(_14,_15){
return _15?(_14?this.pluralStr1:this.pluralStr2):(_14?this.str1:this.str2);
},str1:this.lcSS.sand_youCoeditedWiki,str2:this.lcSS.sand_theyCoeditedWiki,pluralStr1:this.lcSS.sand_youCoeditedWikis,pluralStr2:this.lcSS.sand_theyCoeditedWikis,isCanBePlural:true},{relcode:"bpct",getStr:function(_16,_17){
return _17?(_16?this.pluralStr1:this.pluralStr2):(_16?this.str1:this.str2);
},str1:this.lcSS.sand_commentedOnYourBlog,str2:this.lcSS.sand_commentedOnSBlog,pluralStr1:this.lcSS.sand_commentedCTimesOnYourBlog,pluralStr2:this.lcSS.sand_commentedCTimesOnSBlog,isCanBePlural:true},{relcode:"bpcb",getStr:function(_18,_19){
return _19?(_18?this.pluralStr2:this.pluralStr1):(_18?this.str2:this.str1);
},str1:this.lcSS.sand_commentedOnTBlog,str2:this.lcSS.sand_youCommentedOnTBlog,pluralStr1:this.lcSS.sand_commentedCTimesOnTBlog,pluralStr2:this.lcSS.sand_youCommentedCTimesOnTBlog,isCanBePlural:true},{relcode:"lpcfr",getStr:function(_1a,_1b){
return _1b?(_1a?this.pluralStr1:this.pluralStr2):(_1a?this.str1:this.str2);
},str1:this.lcSS.sand_youShareCollegue,str2:this.lcSS.sand_theyShareCollegue,pluralStr1:this.lcSS.sand_youShareCollegues,pluralStr2:this.lcSS.sand_theyShareCollegues,isCanBePlural:true},{relcode:"ccmf",getStr:function(_1c,_1d){
return _1d?(_1c?this.pluralStr1:this.pluralStr2):(_1c?this.str1:this.str2);
},str1:this.lcSS.sand_youShareCommunity1,str2:this.lcSS.sand_theyShareCommunity1,pluralStr1:this.lcSS.sand_youShareCommunities1,pluralStr2:this.lcSS.sand_theyShareCommunities1,isCanBePlural:true},{relcode:"ccms",getStr:function(_1e,_1f){
return _1f?(_1e?this.pluralStr1:this.pluralStr2):(_1e?this.str1:this.str2);
},str1:this.lcSS.sand_youShareCommunity2,str2:this.lcSS.sand_theyShareCommunity2,pluralStr1:this.lcSS.sand_youShareCommunities2,pluralStr2:this.lcSS.sand_theyShareCommunities2,isCanBePlural:true},{relcode:"fileSharing",getStr:function(_20,_21){
return _21?(_20?this.pluralStr1:this.pluralStr2):(_20?this.str1:this.str2);
},pluralStr1:this.lcSS.sand_youSharedFilesToT,pluralStr2:this.lcSS.sand_SSharedFilesToT,str1:this.lcSS.sand_youSharedAFileToT,str2:this.lcSS.sand_SSharedAFileToT,isCanBePlural:true},{relcode:"fileShared",getStr:function(_22,_23){
return _23?(_22?this.pluralStr1:this.pluralStr2):(_22?this.str1:this.str2);
},pluralStr1:this.lcSS.sand_TSharedFilesWithYou,pluralStr2:this.lcSS.sand_TSharedFilesWithS,str1:this.lcSS.sand_TSharedAFileToYou,str2:this.lcSS.sand_TSharedAFileWithS,isCanBePlural:true},{relcode:"fileCoSharing",getStr:function(_24,_25){
return _25?(_24?this.pluralStr1:this.pluralStr2):(_24?this.str1:this.str2);
},pluralStr1:this.lcSS.sand_filesCoSharing,pluralStr2:this.lcSS.sand_SCoSharesFilesWithT,str1:this.lcSS.sand_fileCoSharing,str2:this.lcSS.sand_SCoSharesFileWithT,isCanBePlural:true},{relcode:"forumthreaddiscussion",getStr:function(_26,_27){
return _27?(_26?this.pluralStr1:this.pluralStr2):(_26?this.str1:this.str2);
},str1:this.lcSS.sand_youShareForumThread,str2:this.lcSS.sand_theyShareForumThread,pluralStr1:this.lcSS.sand_youShareForumThreads,pluralStr2:this.lcSS.sand_theyShareForumThreads,isCanBePlural:true},{relcode:"ctb",getStr:function(_28,_29){
return _29?(_28?this.pluralStr1:this.pluralStr2):(_28?this.str1:this.str2);
},str1:this.lcSS.sand_youShareBookmark,str2:this.lcSS.sand_theyShareBookmark,pluralStr1:this.lcSS.sand_youShareBookmarks,pluralStr2:this.lcSS.sand_theyShareBookmarks,isCanBePlural:true},{relcode:"bpcc",getStr:function(_2a,_2b){
return _2b?(_2a?this.pluralStr1:this.pluralStr2):(_2a?this.str1:this.str2);
},str1:this.lcSS.sand_youBothCommentedOnSameBlogEntry,str2:this.lcSS.sand_theyBothCommentedOnSameBlogEntry,pluralStr1:this.lcSS.sand_youBothCommentedOnSameBlogEntryCTimes,pluralStr2:this.lcSS.sand_theyBothCommentedOnSameBlogEntryCTimes,isCanBePlural:true},{relcode:"tgw",getStr:function(_2c,_2d){
return _2d?(_2c?this.pluralStr1:this.pluralStr2):(_2c?this.str1:this.str2);
},str1:this.lcSS.sand_youWereBothTaggedBySameTag,str2:this.lcSS.sand_theyWereBothTaggedBySameTag,pluralStr1:this.lcSS.sand_youWereBothTaggedWithTags,pluralStr2:this.lcSS.sand_theyWereBothTaggedWithTags,isCanBePlural:true},{relcode:"tcu",getStr:function(_2e,_2f){
return _2f?(_2e?this.pluralStr1:this.pluralStr2):(_2e?this.str1:this.str2);
},str1:this.lcSS.sand_youBothUsedSameTag,str2:this.lcSS.sand_theyBothUsedSameTag,pluralStr1:this.lcSS.sand_youBothUsedTags,pluralStr2:this.lcSS.sand_theyBothUsedTags,isCanBePlural:true},{relcode:"pctg",getStr:function(_30,_31){
return _31?(_30?this.pluralStr1:this.pluralStr2):(_30?this.str1:this.str2);
},str1:this.lcSS.sand_youBothTaggedSamePerson,str2:this.lcSS.sand_theyBothTaggedSamePerson,pluralStr1:this.lcSS.sand_youBothTaggedPeople,pluralStr2:this.lcSS.sand_theyBothTaggedPeople,isCanBePlural:true},{relcode:"tgb",getStr:function(_32,_33){
return _33?(_32?this.pluralStr1:this.pluralStr2):(_32?this.str1:this.str2);
},str1:this.lcSS.sand_someoneTaggedYouBoth,str2:this.lcSS.sand_someoneTaggedThemBoth,pluralStr1:this.lcSS.sand_thereArePeopleThatTaggedYouBoth,pluralStr2:this.lcSS.sand_thereArePeopleThatTaggedThemBoth,isCanBePlural:true},{relcode:"statusUpdatesCoCommenting",getStr:function(_34,_35){
return _35?(_34?this.pluralStr1:this.pluralStr2):(_34?this.str1:this.str2);
},str1:this.lcSS.sand_YouCommentedOnTheSamePost,str2:this.lcSS.sand_TheyCommentedOnTheSamePost,pluralStr1:this.lcSS.sand_YouCommentedOnTheSamePosts,pluralStr2:this.lcSS.sand_TheyCommentedOnTheSamePosts,isCanBePlural:true},{relcode:"statusUpdatesCommentedBy",getStr:function(_36,_37){
return _37?(_36?this.pluralStr1:this.pluralStr2):(_36?this.str1:this.str2);
},str1:this.lcSS.sand_YouCommentedOnTPost,str2:this.lcSS.sand_SCommentedOnTPost,pluralStr1:this.lcSS.sand_YouCommentedOnTPosts,pluralStr2:this.lcSS.sand_SCommentedOnTPosts,isCanBePlural:true},{relcode:"statusUpdatesCommentedTo",getStr:function(_38,_39){
return _39?(_38?this.pluralStr1:this.pluralStr2):(_38?this.str1:this.str2);
},str1:this.lcSS.sand_TCommentedOnYourPost,str2:this.lcSS.sand_TCommentedOnSPost,pluralStr1:this.lcSS.sand_TCommentedOnYourPosts,pluralStr2:this.lcSS.sand_TCommentedOnTSosts,isCanBePlural:true},{relcode:"statusUpdatesOwnerCommentedBy",getStr:function(_3a,_3b){
return _3b?(_3a?this.pluralStr1:this.pluralStr2):(_3a?this.str1:this.str2);
},str1:this.lcSS.sand_YouCommentedOnPostOnTBoard,str2:this.lcSS.sand_SCommentedOnPostOnTBoard,pluralStr1:this.lcSS.sand_YouCommentedOnPostsOnTBoard,pluralStr2:this.lcSS.sand_SCommentedOnPostsOnTBoard,isCanBePlural:true},{relcode:"statusUpdatesOwnerCommentedTo",getStr:function(_3c,_3d){
return _3d?(_3c?this.pluralStr1:this.pluralStr2):(_3c?this.str1:this.str2);
},str1:this.lcSS.sand_TCommentedOnPostOnYourBoard,str2:this.lcSS.sand_SCommentedOnPostOnTBoard,pluralStr1:this.lcSS.sand_TCommentedOnPostsOnYourBoard,pluralStr2:this.lcSS.sand_TCommentedOnPostsOnSBoard,isCanBePlural:true},{relcode:"statusUpdatesOwnerPostedBy",getStr:function(_3e,_3f){
return _3f?(_3e?this.pluralStr1:this.pluralStr2):(_3e?this.str1:this.str2);
},str1:this.lcSS.sand_YouWroteOnTBoard,str2:this.lcSS.sand_SWroteOnTBoard,pluralStr1:this.lcSS.sand_YouWroteOnTBoard,pluralStr2:this.lcSS.sand_SWroteOnTBoard,isCanBePlural:true},{relcode:"statusUpdatesOwnerPostedTo",getStr:function(_40,_41){
return _41?(_40?this.pluralStr1:this.pluralStr2):(_40?this.str1:this.str2);
},str1:this.lcSS.sand_TWroteOnYourBoard,str2:this.lcSS.sand_TWroteOnSBoard,pluralStr1:this.lcSS.sand_YouWroteOnTBoard,pluralStr2:this.lcSS.sand_TWroteOnSBoard,isCanBePlural:true},{relcode:"fileAuthorEditedBy",getStr:function(_42,_43){
return _43?(_42?this.pluralStr1:this.pluralStr2):(_42?this.str1:this.str2);
},str1:this.lcSS.sand_YouEditedTFile,str2:this.lcSS.sand_SEditedTFile,pluralStr1:this.lcSS.sand_YouEditedTFiles,pluralStr2:this.lcSS.sand_SEditedTFiles,isCanBePlural:true},{relcode:"fileEditorAuthoredBy",getStr:function(_44,_45){
return _45?(_44?this.pluralStr1:this.pluralStr2):(_44?this.str1:this.str2);
},str1:this.lcSS.sand_TEditedYourFile,str2:this.lcSS.sand_TModifiedSFile,pluralStr1:this.lcSS.sand_TEditedYourFiles,pluralStr2:this.lcSS.sand_TModifiedSFiles,isCanBePlural:true}];
for(var i=0;i<this.RELATIONSHIP_TEMPLATES.length;i++){
if(this.RELATIONSHIP_TEMPLATES[i].str1){
this.RELATIONSHIP_TEMPLATES[i].str1=dojo.string.substitute(this.RELATIONSHIP_TEMPLATES[i].str1,this.LINK_TEMPLATE);
}
if(this.RELATIONSHIP_TEMPLATES[i].str2){
this.RELATIONSHIP_TEMPLATES[i].str2=dojo.string.substitute(this.RELATIONSHIP_TEMPLATES[i].str2,this.LINK_TEMPLATE);
}
if(this.RELATIONSHIP_TEMPLATES[i].pluralStr1){
this.RELATIONSHIP_TEMPLATES[i].pluralStr1=dojo.string.substitute(this.RELATIONSHIP_TEMPLATES[i].pluralStr1,this.LINK_TEMPLATE);
}
if(this.RELATIONSHIP_TEMPLATES[i].pluralStr2){
this.RELATIONSHIP_TEMPLATES[i].pluralStr2=dojo.string.substitute(this.RELATIONSHIP_TEMPLATES[i].pluralStr2,this.LINK_TEMPLATE);
}
if(this.RELATIONSHIP_TEMPLATES[i].special1){
this.RELATIONSHIP_TEMPLATES[i].special1=dojo.string.substitute(this.RELATIONSHIP_TEMPLATES[i].special1,this.LINK_TEMPLATE);
}
if(this.RELATIONSHIP_TEMPLATES[i].special2){
this.RELATIONSHIP_TEMPLATES[i].special2=dojo.string.substitute(this.RELATIONSHIP_TEMPLATES[i].special2,this.LINK_TEMPLATE);
}
}
},populate:function(_46,_47,_48,_49,_4a,_4b,_4c,_4d,_4e,_4f){
this.iContext=_4f;
this.clear();
if(_4d){
dojo.style(this.evAreaTitle,"display","");
this.twistyTitleEvent=dojo.connect(this.evAreaTitle,"onclick",this,"toggleEvidence");
this.evidenceTitle.innerHTML=dojo.string.substitute(this.lcSS.sand_howAreConnected,[_48,_49]);
dojo.attr(this.twisty,"title",this.lcSS.sand_ExpandSection);
}else{
dojo.style(this.evAreaTitle,"display","none");
dojo.style(this.evSubArea,"display","");
}
var r,s,t;
var _50="sp-";
var _51="";
if(_4c){
r=this.lcSS.sand_You;
s=this.lcSS.sand_You;
t=_49;
_50+="1-";
}else{
_51="../../ibmss:association_evidence[@to='"+_47+"']/";
r=this.lcSS.sand_they;
s=_48;
t=_49;
_50+="2-";
}
var _52;
var _53;
var _54;
var _55;
if(this.isBulletedList){
_52="<ul>";
_53="</ul>";
_54="<li>";
_55="</li>";
}else{
_52="";
_53="";
_54="<div>";
_55="</div>";
}
for(var i=0;i<this.RELATIONSHIP_TEMPLATES.length;i++){
var _56=this.RELATIONSHIP_TEMPLATES[i];
var rel=lconn.core.xpath.selectSingleNode("./ibmss:association_evidence[@type='"+_56.relcode+"'][@from='"+_46+"']",_4b,sandConsts.NAME_SPACES,_4a.obj);
if(rel){
this.foundRels.push(_56.relcode);
var _57=lconn.core.xpath.selectSingleNode("@count",_4b,sandConsts.NAME_SPACES,rel).nodeValue;
var _58=_56.isCanBePlural;
var _59=_56.getStr(_4c,false);
if(_58){
var _5a=_56.getStr(_4c,true);
if(_57!="1"){
_59=this.replaceMicro(_5a,"c",_57);
}
}
if(_56.specialAction&&dojo.isFunction(_56.specialAction)){
var _5b=_56.specialAction(_4c,_57);
if(_5b){
_59=_5b;
}
}
_59=this.replaceMicro(_59,"i",_50+_56.relcode);
_59=this.replaceMicro(_59,"s",s,_4c);
_59=this.replaceMicro(_59,"t",t);
this.evList.innerHTML+=_54+_59+_55;
}
}
if(this.evList.innerHTML.length>0){
this.evList.innerHTML=_52+this.evList.innerHTML+_53;
}
},replaceMicro:function(str,rep,sub,_5c){
var ind=str.indexOf("%"+rep);
if(ind>-1){
if(_5c&&ind>0){
sub=sub.substring(0,1).toLowerCase()+sub.substring(1);
}
return str.substring(0,ind)+sub+str.substring(ind+2);
}else{
return str;
}
},toggleEvidence:function(){
if(dojo.hasClass(this.twistyImg,"lotusTwistyClosed")){
dojo.style(this.evSubArea,"display","");
dojo.removeClass(this.twistyImg,"lotusTwistyClosed");
dojo.addClass(this.twistyImg,"lotusTwistyOpen");
dojo.attr(this.twisty,"aria-expanded","true");
dojo.attr(this.twistySymbol,"innerHTML","v");
dojo.attr(this.twisty,"title",this.lcSS.sand_CollapseSection);
}else{
dojo.style(this.evSubArea,"display","none");
dojo.removeClass(this.twistyImg,"lotusTwistyOpen");
dojo.addClass(this.twistyImg,"lotusTwistyClosed");
dojo.attr(this.twisty,"aria-expanded","false");
dojo.attr(this.twistySymbol,"innerHTML","&gt;");
dojo.attr(this.twisty,"title",this.lcSS.sand_ExpandSection);
}
}});
}


;dojo.cache("lconn.sand", "templates/socialPath.html", "<div class=\"socialPath\" role=\"presentation\"> <div dojoAttachPoint=\"loadingContainer\" class=\"lotusChunk\" role=\"presentation\"> <img role=\"presentation\" class=\"lotusLoading\" src=\"${_blankGif}\" alt=\"\"/> ${lcSandStrings.sand_loadingString} </div> <div dojoAttachPoint=\"msgContainer\" class=\"lotusChunk\" role=\"presentation\"></div> <div dojoAttachPoint=\"pathContainer\" style=\"display:none;\" role=\"presentation\"> <div class=\"lotusCenter\" role=\"presentation\"> <div role=\"img\" aria-hidden=\"true\" dojoAttachPoint=\"msgPersonSelf\"></div> <p role=\"presentation\"> <img class=\"otherFramework16 otherFramework16-ArrowDown12\" src=\"${_blankGif}\" dojoAttachPoint=\"youAreConnectedToPerson\"/> <span class=\"lotusAltText\">&#8595;</span> </p> </div> <div class=\"lotusCenter\" dojoAttachPoint=\"spCenterSection\" role=\"presentation\"> <div dojoAttachPoint=\"imageStream\"></div> <p role=\"presentation\"> <img class=\"otherFramework16 otherFramework16-ArrowDown12\" src=\"${_blankGif}\" dojoAttachPoint=\"personIsConnectedToTarget\"/> <span class=\"lotusAltText\">&#8595;</span> </p> </div> <div class=\"lotusCenter\" role=\"presentation\"> <p role=\"img\" aria-hidden=\"true\" dojoAttachPoint=\"target\"></p> </div> <p role=\"presentation\"></p> <div dojoAttachPoint=\"personInNetwork\" class=\"attributeTitle\" style=\"display:none;\" role=\"presentation\"></div> <div dojoAttachPoint=\"evidenceContainer\" class=\"lotusTiny lotusBorderTop\"> <div dojoAttachPoint=\"_evidence1\" tabindex=\"0\" role=\"presentation\"></div> <div dojoAttachPoint=\"_evidence2\" class=\"lotusBorderTop\" tabindex=\"0\" role=\"presentation\"></div> </div> </div></div>");

;if(!dojo._hasResource["lconn.sand.socialPath"]){
dojo._hasResource["lconn.sand.socialPath"]=true;
dojo.provide("lconn.sand.socialPath");










dojo.requireLocalization("lconn.sand","ui");
dojo.declare("lconn.sand.socialPath",[dijit._Widget,dijit._Templated],{_blankGif:dojo.config.blankGif,templatePath:dojo.moduleUrl("lconn.sand","templates/socialPath.html"),CLIENT:"lconn.sand.socialPath",userid:null,targetUserid:null,meLoaded:false,targetLoaded:false,iContext:null,lcSandStrings:null,postMixInProperties:function(){
this.lcSandStrings=dojo.i18n.getLocalization("lconn.sand","ui");
},postCreate:function(){
this._evidence1=new lconn.sand.Evidence({},this._evidence1);
this._evidence2=new lconn.sand.Evidence({},this._evidence2);
},populate:function(){
this.msgPersonSelf.innerHTML=this.lcSandStrings.sand_You;
this.personInNetwork.innerHTML=dojo.string.substitute(this.lcSandStrings.sand_personIsInYourNetwork,{person:profilesData.displayedUser.displayName});
var _1=this.iContext.getiWidgetAttributes();
this.sandBackEndRoot=this.iContext.io.rewriteURI(_1.getItemValue("sandBackEndRoot"));
var _2=(this.sandBackEndRoot+"/atom/social/graph/path?maxLength=2&target={\"type\":\"personUserID\",\"id\":\""+this.targetUserid+"\"}");
this.target.innerHTML=profilesData.displayedUser.displayName;
if(window.profilesData!=null&&window.profilesData.displayedUser&&window.profilesData.displayedUser.inNetwork){
this.loadingContainer.style.display="none";
this.pathContainer.style.display="block";
this.spCenterSection.style.display="none";
this.evidenceContainer.style.display="none";
this.personInNetwork.style.display="block";
dojo.attr(this.youAreConnectedToPerson,"alt",dojo.string.substitute(this.lcSandStrings.sand_YouAreConnectedToPerson,{person:profilesData.displayedUser.displayName}));
}else{
dojo.xhrGet({url:_2,handleAs:"text",htmlContainerElemId:this.iContext.getElementById("_"+this.iContext.widgetId+"_root"),load:dojo.hitch(this,this._load),error:dojo.hitch(this,this._xhrError)});
}
},_showEvidence:function(){
try{
var _3=this.imageStream.getCurrentItem();
var _4=this.lcSandStrings.sand_you;
if(_3.uid==this.targetUserid){
this.spCenterSection.style.display="none";
this.evidenceContainer.style.display="none";
}else{
this._evidence1.isBulletedList=true;
this._evidence1.populate(this.userid,_3.uid,_4,_3.name,_3,this.sonarData,true,true,this.CLIENT,this.iContext);
this._evidence2.isBulletedList=true;
this._evidence2.populate(_3.uid,this.targetUserid,_3.name,profilesData.displayedUser.displayName,_3,this.sonarData,false,true,this.CLIENT,this.iContext);
}
}
catch(error1){
console.log(error1);
}
},areFriends:function(_5){
var _6=lconn.core.xpath.selectNodes("/atom:feed/atom:entry/atom:author/snx:userid[text()=\""+this.targetUserid+"\"]",_5,sandConsts.NAME_SPACES);
return (_6&&_6.length>0);
},noConnection:function(_7){
var _8=lconn.core.xpath.selectNodes("/atom:feed/atom:entry/atom:author/snx:userid[text()=\""+this.targetUserid+"\"]",_7,sandConsts.NAME_SPACES);
return (_8&&_8.length==0);
},showMessage:function(_9){
this.msgContainer.innerHTML=_9;
this.pathContainer.style.display="none";
},hide:function(){
dojo.byId("socialPathSection").style.display="none";
},_load:function(_a,_b){
_a=lconn.core.xslt.loadXmlString(_a);
var _c=lconn.core.xpath.selectNodes("/atom:feed/atom:entry/ibmss:entity_evidence",_a,sandConsts.NAME_SPACES);
this.loadingContainer.style.display="none";
if(_c==null||_c.length==0){
this.msgContainer.innerHTML=dojo.string.substitute(this.lcSandStrings.sand_noSocialPath,{person:profilesData.displayedUser.displayName});
return;
}
this.sonarData=_a;
var _d=[];
for(var i=0;_c!=null&&_c.length!=0&&i<_c.length;i++){
var _e={};
var _f=_c[i];
_e.obj=_f;
_e.uid=lconn.core.xpath.selectSingleNode("atom:author/snx:userid/text()",_a,sandConsts.NAME_SPACES,_f).nodeValue;
_e.name=lconn.core.xpath.selectSingleNode("atom:author/atom:name/text()",_a,sandConsts.NAME_SPACES,_f).nodeValue;
if(_e.uid!=this.targetUserid){
_d.push(_e);
}
}
if(_d.length!=0){
dojo.style(this.pathContainer,"display","block");
if(this.imageStream instanceof lconn.sand.ImageStream){
this.imageStream.data=_d;
this.imageStream.postCreate();
}else{
this.imageStream=new lconn.sand.ImageStream({data:_d,onNext:dojo.hitch(this,"_selectedPersonUpdated"),onPrevious:dojo.hitch(this,"_selectedPersonUpdated")},this.imageStream);
}
this._selectedPersonUpdated();
}else{
this.msgContainer.innerHTML=dojo.string.substitute(this.lcSandStrings.sand_noSocialPath,{person:profilesData.displayedUser.displayName});
}
},_selectedPersonUpdated:function(){
this._updateAssociationLabels();
this._showEvidence();
},_updateAssociationLabels:function(){
var _10=this.imageStream.getCurrentItem();
if(_10){
var _11=_10.name;
var _12=profilesData.displayedUser.displayName;
var _13=dojo.string.substitute(this.lcSandStrings.sand_YouAreConnectedToPerson,{person:_11});
var _14=dojo.string.substitute(this.lcSandStrings.sand_PersonIsConnectedToTarget,{person:_11,target:_12});
dojo.attr(this.youAreConnectedToPerson,"aria-label",_13);
dojo.attr(this.personIsConnectedToTarget,"aria-label",_14);
dojo.attr(this.youAreConnectedToPerson,"alt",_13);
dojo.attr(this.personIsConnectedToTarget,"alt",_14);
}
},_xhrError:function(_15,_16){
if(_15&&_15.status===503){
dojo.style(this.loadingContainer,"display","none");
this.showMessage(this.lcSandStrings.socialPathUnavailable);
return;
}
lconn.core.errorhandling.DefaultXHRErrorHandler(_15,_16);
}});
}


;if(!dojo._hasResource["lconn.sand.socialPathWrapped"]){
dojo._hasResource["lconn.sand.socialPathWrapped"]=true;
dojo.provide("lconn.sand.socialPathWrapped");
dojo.requireLocalization("lconn.sand","ui");
dojo.declare("lconn.sand.socialPathWrapped",null,{onLoad:function(){
var _1="_"+this.iContext.widgetId+"_root";
var _2=this.iContext.getiWidgetAttributes();
var me=this.iContext.getUserProfile().getItemValue("userid");
this.sandUIRoot=this.iContext.io.rewriteURI(_2.getItemValue("sandUIRoot"));
this.sandBackEndRoot=this.iContext.io.rewriteURI(_2.getItemValue("sandBackEndRoot"));
window.lcSandUIRoot=this.sandUIRoot;
var _3=_2.getItemValue("resourceId");
var _4=this.sandUIRoot+"js_src";
var _5=dojo.i18n.getLocalization("lconn.sand","ui");
if(me&&me!=""){
var _6=(_4)+"/lconn/sand";
if(!dojo.exists("lconn.sand.sandAll")||!dojo.exists("lconn.sand.socialPath")){
if(dojo.exists("dojo.registerModulePath")){
dojo.registerModulePath("lconn.sand",_6);
}else{
if(dojo.exists("require")){
require({paths:{"lconn.sand":_6}});
}
}




}
if(me==profilesData.displayedUser.userid){
document.getElementById(this.iContext.widgetId+"Section").style.display="none";
}else{
socialPathWidget=new lconn.sand.socialPath({userid:me,targetUserid:profilesData.displayedUser.userid,iContext:this.iContext});
dojo.place(socialPathWidget.domNode,this.iContext.getElementById(_1),"last");
socialPathWidget.populate();
}
}else{
logInHREF=dojo.byId("logoutLink").href;
this.iContext.getElementById(_1).innerHTML="<a href=\""+logInHREF+"\">"+_5.sand_Login+"</a> "+_5.sand_LogInTIC;
dojo.addClass(_1,"lotusMeta");
dojo.addClass(_1,"lotusChunk");
}
}});
}


;dojo.cache("lconn.sand", "templates/Subject.html", "<div dojoattachpoint=\"subjectArea\" style=\"display: none; clear: both\" role=\"presentation\"> <div dojoattachpoint=\"twistyArea\"> <a href=\"javascript:;\" dojoAttachPoint=\"twisty\" aria-labelledby=\"${id}_twistyTitle\" aria-expanded=\"false\" role=\"button\"> <span class=\"lotusAltText\" dojoAttachPoint=\"twistySymbol\" role=\"presentation\"> &gt;</span> <img class=\"lotusSprite lotusArrow lotusTwistyClosed\" dojoAttachPoint=\"twistyImg\" src=\"${_blankGif}\" role=\"presentation\" alt=\"\"/> <b dojoAttachPoint=\"twistyTitle\" id=\"${id}_twistyTitle\"></b> </a> </div> <div style=\"display: none;\" dojoAttachPoint=\"subjectItemsArea\"> <ul dojoAttachPoint=\"subjectItems\" class=\"lotusList\" style=\"margin-top: 0px; margin-left: 1.5em\" ></ul> <ul dojoAttachPoint=\"restSubjectItems\" class=\"lotusList\" style=\"display: none; margin-top: 0px; margin-left: 1.5em\" ></ul> </div></div>");

;if(!dojo._hasResource["lconn.sand.Subject"]){
dojo._hasResource["lconn.sand.Subject"]=true;
dojo.provide("lconn.sand.Subject");






dojo.requireLocalization("lconn.sand","ui");
dojo.declare("lconn.sand.Subject",[dijit._Widget,dijit._Templated],{templateString:"",templatePath:dojo.moduleUrl("lconn.sand","templates/Subject.html"),widgetsInTemplate:true,_blankGif:(dojo.config.blankGif||dojo.moduleUrl("dojo","resources/blank.gif?etag=20150310.220517")),itemsNum:null,itemsNumDefault:15,itemNumsMax:20,itemTitleLengthMax:20,titleString:null,itemPrefix:"<li class=\"lotusBorderBottom\">",itemSuffix:"</li>",itemSeperator:"",twistySymbol_Closed:"&gt;",twistySymbol_Opened:"v",lcSandStrings:null,KEY_ENTER:13,postCreate:function(){
this.lcSandStrings=dojo.i18n.getLocalization("lconn.sand","ui");
},setSubject:function(_1,_2,_3){
var _4=false;
if(typeof (_3)!="undefined"){
_4=(_3==true);
}
if(_2.itemPrefix!=null&&_2.itemSuffix!=null){
this.itemPrefix=_2.itemPrefix;
this.itemSuffix=_2.itemSuffix;
}
if(_2.itemSeperator!=null){
this.itemSeperator=_2.itemSeperator;
}
this.xmlData=_2.xmlData;
this.xmlDataSubset=lconn.core.xpath.selectNodes("/atom:feed/atom:entry/atom:category[@term='"+_2.typeString+"']",this.xmlData,sandConsts.NAME_SPACES);
this.itemsNum=this.xmlDataSubset.length;
if(this.itemsNum>1){
this.titleString=_1[1];
}else{
this.titleString=_1[0];
}
dojo.attr(this.subjectArea,"id",this.titleString+"Area");
dojo.attr(this.subjectItemsArea,"id",this.titleString+"SubArea");
dojo.attr(this.subjectItems,"id",this.titleString+"SubItems");
dojo.attr(this.twistyArea,"title",this.lcSandStrings.sand_ExpandSection);
dojo.attr(this.twistyTitle,"innerHTML",this.titleString+"&nbsp;("+this.itemsNum.toString()+")");
var _5="";
this.subjectItems.innerHTML="";
for(var i=0;i<this.itemsNum;i++){
var _6=null;
if(lconn.core.xpath.selectSingleNode("../atom:link",this.xmlData,sandConsts.NAME_SPACES,this.xmlDataSubset[i])){
_6=lconn.core.xpath.selectSingleNode("../atom:link",this.xmlData,sandConsts.NAME_SPACES,this.xmlDataSubset[i]).getAttribute("href");
}
var _7=lconn.core.xpath.selectSingleNode("../atom:title/text()",this.xmlData,sandConsts.NAME_SPACES,this.xmlDataSubset[i]).nodeValue;
if(_6){
_5=this.itemPrefix+"<a href=\""+_6+"\" title=\""+_7+"\">"+(_4?_7:this.shortenString(_7,this.itemTitleLengthMax))+"</a>"+this.itemSuffix;
}else{
_5=this.itemPrefix+"<span role=\"presentation\" title=\""+_7+"\">"+(_4?_7:this.shortenString(_7,this.itemTitleLengthMax))+"</span>"+this.itemSuffix;
}
if(i!=(this.itemsNum-1)&&i!=(this.itemsNumDefault-1)){
_5+=this.itemSeperator;
}
var _8=function(el){
try{
dojo.query("*[role='group']",el).forEach(function(_9){
if(!dojo.hasAttr(_9,"aria-label")&&!dojo.hasAttr(_9,"aria-labelledby")){
dojo.removeAttr(_9,"role");
}
});
}
catch(e){
}
};
if(i<this.itemsNumDefault||(this.itemsNum==(this.itemsNumDefault+1))){
this.subjectItems.innerHTML+=_5;
_8(this.subjectItems);
}else{
this.restSubjectItems.innerHTML+=_5;
_8(this.restSubjectItems);
}
}
if(this.restSubjectItems.innerHTML.length>0){
var _a=dojo.create("li",{"id":this.id+"restLink","class":"lotusTiny"},this.subjectItems);
dojo.create("a",{"href":"javascript:;","innerHTML":dojo.string.substitute(this.lcSandStrings.sand_More,{restItemsNum:(this.itemsNum-this.itemsNumDefault)})},_a);
dojo.connect(_a,"onclick",dojo.hitch(this,"_showRestItems"));
if(this.itemSeperator!=""){
this.restSubjectItems.innerHTML=this.itemSeperator+this.restSubjectItems.innerHTML;
}
}
dojo.connect(this.twistyArea,"onclick",dojo.hitch(this,"toggle"));
dojo.attr(this.twistySymbol,"innerHTML",this.twistySymbol_Closed);
if(this.restSubjectItems.children.length>1){
this.restSubjectItems.children[0].className+=" lotusFirst";
}
if(this.restSubjectItems.children.length>0){
var _b=this.restSubjectItems.children.length-1;
this.restSubjectItems.children[_b].className+=" lotusLast";
}
if(this.subjectItems.children.length>1){
this.subjectItems.children[0].className+=" lotusFirst";
}
if(this.subjectItems.children.length>0){
var _b=this.subjectItems.children.length-1;
this.subjectItems.children[_b].className+=" lotusLast";
}
},toggle:function(){
setTimeout(dojo.hitch(this,this._toggleTwisty));
},_toggleTwisty:function(){
if(dojo.hasClass(this.twistyImg,"lotusTwistyClosed")){
dojo.style(this.subjectItemsArea,"display","");
dojo.removeClass(this.twistyImg,"lotusTwistyClosed");
dojo.addClass(this.twistyImg,"lotusTwistyOpen");
dojo.attr(this.twisty,"aria-expanded","true");
dojo.attr(this.twistySymbol,"innerHTML",this.twistySymbol_Opened);
dojo.attr(this.twisty,"title",this.lcSandStrings.sand_CollapseSection);
}else{
dojo.style(this.subjectItemsArea,"display","none");
dojo.removeClass(this.twistyImg,"lotusTwistyOpen");
dojo.addClass(this.twistyImg,"lotusTwistyClosed");
dojo.attr(this.twisty,"aria-expanded","false");
dojo.attr(this.twistySymbol,"innerHTML",this.twistySymbol_Closed);
dojo.attr(this.twisty,"title",this.lcSandStrings.sand_ExpandSection);
}
},_showRestItems:function(){
dojo.style(this.id+"restLink","display","none");
dojo.style(this.subjectItems,"margin-bottom","0px");
dojo.style(this.restSubjectItems,"display","");
},shortenString:function(_c,_d){
if(_c.length>_d){
return (_c.substr(0,_d)+"...");
}else{
return _c;
}
}});
}


;dojo.cache("lconn.sand", "templates/SharedLC.html", "<div> <div role=\"presentation\" dojoAttachPoint=\"message\" class=\"lotusChunk lotusMeta\"> ${sand_LogInTIC} </div> <div role=\"presentation\" dojoAttachPoint=\"loading\" class=\"lotusChunk lotusMeta\" style=\"display:none;\" > <img role=\"presentation\" class=\"lotusLoading\" src=\"${_blankIcon}\" alt=\"\"/> ${sand_loadingString} </div> <div role=\"presentation\" dojoAttachPoint=\"container\" style=\"display:none;\"> <div id=\"subject0\" dojoType=\"lconn.sand.Subject\"></div> <div id=\"subject1\" dojoType=\"lconn.sand.Subject\"></div> <div id=\"subject2\" dojoType=\"lconn.sand.Subject\"></div> <div id=\"subject3\" dojoType=\"lconn.sand.Subject\"></div> <div id=\"subject4\" dojoType=\"lconn.sand.Subject\"></div> <div id=\"subject5\" dojoType=\"lconn.sand.Subject\"></div> <div id=\"subject6\" dojoType=\"lconn.sand.Subject\"></div> <div id=\"subject7\" dojoType=\"lconn.sand.Subject\"></div> </div></div>");

;if(!dojo._hasResource["lconn.sand.sharedLC"]){
dojo._hasResource["lconn.sand.sharedLC"]=true;
dojo.provide("lconn.sand.sharedLC");








dojo.requireLocalization("lconn.sand","ui");
dojo.declare("lconn.sand.sharedLC",[dijit._Widget,dijit._Templated],{_blankIcon:dojo.config.blankGif,templateString:"",templatePath:dojo.moduleUrl("lconn.sand","templates/SharedLC.html"),widgetsInTemplate:true,profileSelfUid:null,profileTargetUid:null,serviceUrl:null,previousData:null,xmlDoc:null,targetName:null,isEmpty:true,constructor:function(){
lconn.sand.sandAll.loadAllStringIntoObject(this);
},populate:function(){
if(!this.profileSelfUid){
dojo.style(this.message,"display","block");
dojo.style(this.loading,"display","none");
return;
}
dojo.style(this.message,"display","none");
dojo.style(this.loading,"display","block");
if(this.profileSelfUid==this.profileTargetUid){
this.hide();
return;
}
dojo.xhrGet({url:this.serviceUrl,handleAs:"text",htmlContainerElemId:this.iContext.getElementById("_"+this.iContext.widgetId+"_root"),load:dojo.hitch(this,this.onSandDataLoaded),error:dojo.hitch(this,this._xhrError),content:{social:["{\"type\": \"personUserID\", \"id\": \""+this.profileSelfUid+"\"}","{\"type\": \"personUserID\", \"id\": \""+this.profileTargetUid+"\"}"]}});
},onSandDataLoaded:function(_1,_2){
_1=lconn.core.xslt.loadXmlString(_1);
var _3=dojo.i18n.getLocalization("lconn.sand","ui");
dojo.style(this.loading,"display","none");
dojo.style(this.container,"display","");
this.subjects=[[[_3.sand_Community,_3.sand_Communities],"Util/Community"],[[_3.sand_Discussion,_3.sand_Discussions],"Document/ForumThread"],[[_3.sand_Blog,_3.sand_Blogs],"Document/Blog"],[[_3.sand_Wiki,_3.sand_Wikis],"Document/Wiki"],[[_3.sand_Activity,_3.sand_Activities],"Group/Activity"],[[_3.sand_File,_3.sand_Files],"Document/File"],[[_3.sand_Bookmark,_3.sand_Bookmarks],"Document"],[[_3.sand_Tag,_3.sand_Tags],"Tag","<span class=\"subject-item lotusTags\"><a href=\"javascript:;\">","</a></span>",", "]];
var _4;
var _5=null;
var _6=(dojo.byId(this.iContext.widgetId+"_TabItem")!=null);
for(var i=0,_7=this.subjects.length;i<_7;i++){
_4=dijit.byId("subject"+i);
_4.setSubject(this.subjects[i][0],{typeString:this.subjects[i][1],itemPrefix:this.subjects[i][2],itemSuffix:this.subjects[i][3],itemSeperator:this.subjects[i][4],xmlData:_1},_6);
if(_4.itemsNum>0){
dojo.style(_4.domNode,"display","");
this.isEmpty=false;
if(_5==null){
_5=_4;
}
}
}
if(_5!=null){
_5.toggle();
}
if(this.isEmpty==true){
this.showMessage(_3.sand_NothingInCommon);
}
},showMessage:function(_8){
dojo.attr(this.message,{innerHTML:_8});
dojo.style(this.message,"display","");
},hide:function(){
dojo.style(this.domNode,"display","none");
},_xhrError:function(_9,_a){
if(_9&&_9.status===503){
dojo.style(this.loading,"display","none");
this.showMessage(this.ticUnavailable);
return;
}
if(this.iContext){
_a.args.htmlContainerElemId=dojo.byId("_"+this.iContext.widgetId+"_root");
}
lconn.core.errorhandling.DefaultXHRErrorHandler(_9,_a);
}});
}


;if(!dojo._hasResource["lconn.sand.sandSharedLC"]){
dojo._hasResource["lconn.sand.sandSharedLC"]=true;
dojo.provide("lconn.sand.sandSharedLC");


dojo.declare("lconn.sand.sandSharedLC",null,{onLoad:function(){
var _1=this.iContext.getiWidgetAttributes();
this.sandUIRoot=this.iContext.io.rewriteURI(_1.getItemValue("sandUIRoot"));
this.sandBackEndRoot=this.iContext.io.rewriteURI(_1.getItemValue("sandBackEndRoot"));
window.lcSandUIRoot=this.sandUIRoot;
var _2=this.sandUIRoot+"js_src";
var me=lconn.profiles.api.isUserLoggedIn()?this.iContext.getUserProfile().getItemValue("userid"):null;
var _3=(this.sandBackEndRoot+"/atomfba/mysearch");
var _4=(_2)+"/lconn/sand";
if(!dojo.exists("lconn.sand.sharedLC")){
if(dojo.exists("dojo.registerModulePath")){
dojo.registerModulePath("lconn.sand",_4);
}else{
if(dojo.exists("require")){
require({paths:{"lconn.sand":_4}});
}
}


}
var _5="_"+this.iContext.widgetId+"_root";
var _6=false;
if(typeof (sharedLCWidget)=="undefined"||sharedLCWidget==null){
_6=true;
sharedLCWidget=new lconn.sand.sharedLC({profileSelfUid:me,profileTargetUid:profilesData.displayedUser.userid,serviceUrl:_3,iContext:this.iContext});
}
dojo.place(sharedLCWidget.domNode,this.iContext.getElementById(_5),"last");
sharedLCWidget.populate();
}});
}

dojo.provide("lconn.profiles.nls.attributes")._built=true;
dojo.provide("lconn.profiles.nls.attributes.en");
lconn.profiles.nls.attributes.en={"label.advanced.searchForm.attribute.description":"About Me:","label.searchResult.attribute.email":"Email:","label.searchResult.attribute.workLocation.state":"State:","label.associatedInformation.tagMyProfile":"Tag my profile","label.searchResult.attribute.workLocation.city":"City:","label.advanced.searchForm.legend":"Search Fields","label.advanced.searchForm.attribute.faxNumber":"Fax Number:","label.advanced.searchForm.attribute.groupwareEmail":"Alternate Email:","label.contactInformation.preferredFirstName":"Preferred given name:","label.jobInformation.jobResp":"Job title:","label.jobInformation.deptNumber":"Department number:","label.advanced.searchForm.attribute.secretaryUserid":"Secretary User ID:","label.contactInformation.pagerNumber":"Pager number:","label.advanced.searchForm.attribute.isManager":"Is Manager:","label.contactInformation.telephoneNumber":"Office number:","label.associatedInformation.experience.title.collapse":"Click to collapse the Background section.","label.advanced.searchForm.attribute.deptNumber":"Department Number:","label.associatedInformation.experience":"Background","label.advanced.searchForm.description.jobResp":"E.G. \"Marketing Manager\"","label.jobInformation.workLocation.countryDisplayValue":"Country:","label.advanced.searchForm.attribute.floor":"Floor:","label.contactInformation.freeBusyUrl":"Free/Busy time link:","label.associatedInformation.description.title.collapse":"Click to collapse the About Me section.","label.jobInformation.floor":"Floor:","label.contactInformation.extattr.Customers_Supported":"Customers:","label.advanced.searchForm.attribute.nativeLastName":"Native Family Name:","label.jobInformation.workLocation.city":"City:","label.advanced.searchForm.attribute.bldgId":"Building ID:","str_component_id":"CLFRN","label.contactInformation.nativeLastName":"Native family name:","label.contactInformation.groupwareEmail":"Alternate email:","label.jobInformation.countryCode":"Country code:","label.advanced.searchForm.attribute.secretaryUid":"Secretary UID:","label.contactInformation.blogUrl.info":"","label.associatedInformation.experience.info":"(The content of this field cannot exceed 1,500 characters)","label.associatedInformation.blogUrl":"Blog link:","label.jobInformation.countryDisplayValue":"Country:","label.advanced.searchForm.attribute.workLocation$state":"State:","label.contactInformation.displayName":"Name:","label.contactInformation.surname":"Surname:","label.contactInformation.pagerType":"Pager type:","label.advanced.searchForm.attribute.email":"Email address:","label.contactInformation.timezone":"Time zone:","label.jobInformation.email":"Office email:","label.advanced.searchForm.attribute.telephoneNumber":"Phone Number:","label.contactInformation.alternateLastname":"Alternate family name:","label.advanced.searchForm.attribute.managerUserid":"Manager User ID:","label.advanced.searchForm.attribute.alternateLastname":"Alternate Family Name:","label.advanced.searchForm.attribute.pagerServiceProvider":"Pager Service Provider:","label.searchResult.attribute.tags":"Tags:","label.contactInformation.blogUrl":"Blog link:","label.advanced.searchForm.description.profileTags":"Can be used for expertise / skillset search. E.G. \"developer\" or \"javascript\"","label.advanced.searchForm.attribute.calendarUrl":"Calendar URL:","label.advanced.searchForm.attribute.surname":"Last Name:","label.associatedInformation.description.title":"Click to expand or collapse the About Me section.","label.advanced.searchForm.attribute.includeInactiveUsers":"Include inactive users in search results","label.jobInformation.departmentTitle":"Department title:","label.contactInformation.ipTelephoneNumber":"IP telephony number:","label.jobInformation.bldgId":"Building:","label.jobInformation.employeeNumber":"Employee number:","label.advanced.searchForm.attribute.mobileNumber":"Mobile Number:","label.contactInformation.officeName":"Office:","label.associatedInformation.contactinfo.title.collapse":"Click to collapse the contact information section.","label.advanced.searchForm.attribute.ipTelephoneNumber":"IP Telephone Number:","label.contactInformation.preferredLastName":"Preferred family name:","label.searchResult.attribute.countryDisplayValue":"Country:","label.advanced.searchForm.attribute.shift":"Shift:","label.jobInformation.shift":"Shift:","label.advanced.searchForm.attribute.preferredLastName":"Family Name:","label.searchResult.attribute.groupwareEmail":"Alternate Email:","label.advanced.searchForm.attribute.secretaryEmail":"Secretary Email:","label.advanced.searchForm.attribute.preferredFirstName":"Given Name:","label.advanced.searchForm.attribute.blogUrl":"Blog URL:","label.contactInformation.extattr.jobCategory":"Job category:","label.contactInformation.nativeFirstName":"Native given name:","label.associatedInformation.contactinfo.title.expand":"Click to expand the contact information section.","label.contactInformation.extattr.spokenLanguages":"Spoken languages:","label.contactInformation.managerUid":"Manager number:","label.advanced.searchForm.attribute.pagerType":"Pager Type:","label.contactInformation.secretaryEmail":"Assistant email: ","label.associatedInformation.lastUpdate":"Last update:","label.contactInformation.workLocationCode":"Work Location Code:","label.contactInformation.floor":"Floor:","label.advanced.searchForm.description.displayName":"Given or Family Name E.G. \"Jane\" or \"Doe\"","label.contactInformation.extattr.Personal_System_Code_(PSC)":"PSC:","label.contactInformation.extattr.Education_(List)":"Education (List):","label.associatedInformation.experience.title":"Click to expand or collapse the Background section.","label.associatedInformation.experience.title.expand":"Click to expand the Background section.","label.searchResult.attribute.jobResp":"Title:","label.associatedInformation.contactinfo.title":"Click to expand or collapse the contact information section.","label.advanced.searchForm.description.organizationTitle":"E.G \"IBM\" or \"Sales\"","label.contactInformation.bldgId":"Building:","label.jobInformation.workLocationCode":"Work Location Code:","label.jobInformation.workLocation.postalCode":"Postal code:","label.advanced.searchForm.attribute.nativeFirstName":"Native Given Name:","label.contactInformation.secretaryUid":"Assistant number:","label.advanced.searchForm.attribute.profileTags":"Tags:","label.associatedInformation.description.title.expand":"Click to expand the About Me section.","label.contactInformation.extattr.ITN":"ITN:","label.contactInformation.extattr.property3":"Extension 3:","label.contactInformation.pagerId":"Pager ID:","label.contactInformation.extattr.property2":"Extension 2:","label.advanced.searchForm.attribute.pagerNumber":"Pager Number:","label.contactInformation.extattr.property1":"Extension 1:","label.contactInformation.email":"Office email:","label.advanced.searchForm.attribute.organizationTitle":"Organization or Company:","label.contactInformation.deptNumber":"Department number:","label.contactInformation.departmentTitle":"Department title:","label.searchResult.attribute.organizationTitle":"Organization:","label.contactInformation.extattr.AddtionalSpokenLanguages":"Additional spoken languages:","label.contactInformation.pagerServiceProvider":"Pager service provider:","label.contactInformation.extattr.Department_Name":"Dept name:","label.contactInformation.preferredLanguage":"Preferred language:","label.contactInformation.courtesyTitle":"Courtesy title:","label.associatedInformation.blogUrl.info":"","label.contactInformation.secretaryName":"Assistant:","label.associatedInformation.contactinfo":"Contact Information","label.contactInformation.calendarUrl":"Calendar link:","label.advanced.searchForm.attribute.preferredLanguage":"Preferred Language:","label.jobInformation.employeeTypeDesc":"Employee type:","label.contactInformation.givenName":"Given name:","label.advanced.searchForm.attribute.extattr$spokenLanguages":"Spoken Languages:","label.advanced.searchForm.attribute.pagerId":"Pager ID:","label.advanced.searchForm.attribute.countryCode":"Country Code:","label.searchResult.attribute.displayName":"Name:","label.contactInformation.cn":"Common name:","label.searchResult.attribute.telephoneNumber":"Phone:","label.jobInformation.secretaryUid":"Assistant number:","label.contactInformation.shift":"Shift:","label.advanced.searchForm.attribute.experience":"About Me:","label.contactInformation.mobileNumber":"Mobile number:","label.advanced.searchForm.attribute.countryDisplayValue":"Country/Region:","label.associatedInformation.description.info":"(The content of this field cannot exceed 1,500 characters)","label.advanced.searchForm.attribute.freeBusyUrl":"Free Busy URL:","label.searchResult.attribute.extattr.spokenLanguages":"Languages:","label.advanced.searchForm.attribute.displayName":"Display Name:","label.associatedInformation.pronunciation":"Pronunciation","label.contactInformation.extattr.Team_Summary":"Team summary:","label.jobInformation.isManager":"Is manager:","label.jobInformation.officeName":"Office:","label.associatedInformation.description":"About Me","label.jobInformation.telephoneNumber":"Phone:","label.advanced.searchForm.attribute.departmentTitle":"Department:","label.contactInformation.jobResp":"Job title:","label.advanced.searchForm.attribute.givenName":"First Name:","label.jobInformation.organizationTitle":"Organization:","label.jobInformation.workLocation.state":"State:","label.advanced.searchForm.attribute.managerUid":"Manager UID:","label.advanced.searchForm.attribute.officeName":"Office Name:","label.advanced.searchForm.attribute.courtesyTitle":"Courtesy Title:","label.advanced.searchForm.attribute.employeeNumber":"Employee Number:","label.advanced.searchForm.attribute.secretaryName":"Secretary Name:","label.contactInformation.faxNumber":"Fax number:","label.advanced.searchForm.attribute.workLocation$city":"City:","label.jobInformation.managerUid":"Manager number:","label.advanced.searchForm.attribute.keyword":"Keyword:","label.jobInformation.workLocation.address2":"","label.contactInformation.isManager":"Is manager:","label.contactInformation.employeeNumber":"Employee number: ","label.jobInformation.workLocation.address1":"Address:","label.advanced.searchForm.attribute.jobResp":"Job Title:","label.jobInformation.secretaryEmail":"Assistant email:","label.jobInformation.secretaryName":"Assistant:"};

;if(!dojo._hasResource["lconn.profiles.profilesApp"]){
dojo._hasResource["lconn.profiles.profilesApp"]=true;
dojo.provide("lconn.profiles.profilesApp");






























































































































dojo.requireLocalization("lconn.profiles","ui");
dojo.requireLocalization("lconn.profiles","attributes");
dojo.deprecated("generalrs","generalrs is deprecated, all accesses to messages should be through dojo.i18n.getLocalization(...)","3.5");
window["generalrs"]=window["lc_default"]=dojo.i18n.getLocalization("lconn.profiles","ui");
}


window['_js_modules']=(window['_js_modules']||[]).concat(["lconn.profiles.profilesApp"]);
