
;define("dojox/timing/_base",["dojo/_base/kernel","dojo/_base/lang"],function(_1){
_1.experimental("dojox.timing");
_1.getObject("timing",true,dojox);
dojox.timing.Timer=function(_2){
this.timer=null;
this.isRunning=false;
this.interval=_2;
this.onStart=null;
this.onStop=null;
};
_1.extend(dojox.timing.Timer,{onTick:function(){
},setInterval:function(_3){
if(this.isRunning){
window.clearInterval(this.timer);
}
this.interval=_3;
if(this.isRunning){
this.timer=window.setInterval(_1.hitch(this,"onTick"),this.interval);
}
},start:function(){
if(typeof this.onStart=="function"){
this.onStart();
}
this.isRunning=true;
this.timer=window.setInterval(_1.hitch(this,"onTick"),this.interval);
},stop:function(){
if(typeof this.onStop=="function"){
this.onStop();
}
this.isRunning=false;
window.clearInterval(this.timer);
}});
return dojox.timing;
});


;define("dojox/timing",["./timing/_base"],function(_1){
return _1;
});

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

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










lconn.share0.util.uri.parseUri=function(_1){
if(!_1){
return null;
}
_1=new dojo._Url(_1);
var _2=lconn.share0.util.uri.getRequestParameters(_1);
_1.queryParameters=_2;
return _1;
};
lconn.share0.util.uri.writeUri=function(_3,_4){
if(!_3){
return null;
}
var _5="";
if(_3.scheme){
_5+=_3.scheme+":";
}
if(_3.authority){
_5+="//"+_3.authority;
}
_5+=_3.path;
if(_3.queryParameters){
_5+=lconn.share0.util.uri.writeParameters(_3.queryParameters);
}else{
if(_3.query){
_5+=((_3.query.charAt(0)!="?")?"?":"")+_3.query;
}
}
if(_3.fragment){
if(true===_4){
if(_3.fragment.indexOf("%21")==0){
_3.fragment="!"+_3.fragment.substring(3);
}
}
_5+="#"+_3.fragment;
}
return _5;
};
dojo._Url.prototype.toCanonicalString=function(){
return lconn.share0.util.uri.writeUri(this);
};
lconn.share0.util.uri.makeAtomUrlIESafe=function(_6){
if(dojo.isIE&&_6){
_6=lconn.share0.util.uri.parseUri(_6);
_6.queryParameters.format="xml";
_6=lconn.share0.util.uri.writeUri(_6);
}
return _6;
};
lconn.share0.util.uri.rewriteUri=function(_7,p,_8){
if(_7&&p){
_7=lconn.share0.util.uri.parseUri(_7);
dojo.mixin(_7.queryParameters,p);
_7=lconn.share0.util.uri.writeUri(_7,_8);
}
return _7;
};
lconn.share0.util.uri.splitQuery=function(_9){
var _a={};
if(!_9){
return _a;
}
if(_9.charAt(0)=="?"){
_9=_9.substring(1);
}
var _b=_9.split("&");
for(var i=0;i<_b.length;i++){
if(_b[i].length>0){
var _c=_b[i].indexOf("=");
if(_c==-1){
var _d=decodeURIComponent(_b[i]);
var _e=_a[_d];
if(dojo.isArray(_e)){
_e.push("");
}else{
if(_e){
_a[_d]=[_e,""];
}else{
_a[_d]="";
}
}
}else{
if(_c>0){
var _d=decodeURIComponent(_b[i].substring(0,_c));
var _f=decodeURIComponent(_b[i].substring(_c+1));
var _e=_a[_d];
if(dojo.isArray(_e)){
_e.push(_f);
}else{
if(_e){
_a[_d]=[_e,_f];
}else{
_a[_d]=_f;
}
}
}
}
}
}
return _a;
};
lconn.share0.util.uri.getRequestParameters=function(uri){
var _10={};
if(!uri){
return _10;
}
if(typeof uri=="string"){
uri=new dojo._Url(uri);
}
return lconn.share0.util.uri.splitQuery(uri.query);
};
lconn.share0.util.uri.writeParameters=function(map){
var out=[];
for(var key in map){
var _11=map[key];
if(typeof _11!="undefined"&&_11!=null){
key=encodeURIComponent(key);
if(dojo.isArray(_11)){
for(var i=0;i<_11.length;i++){
if(_11[i]){
out.push(out.length==0?"?":"&");
out.push(key);
out.push("=");
out.push(encodeURIComponent(_11[i]));
}
}
}else{
out.push(out.length==0?"?":"&");
out.push(key);
out.push("=");
out.push(encodeURIComponent(_11));
}
}
}
return out.join("");
};
lconn.share0.util.uri.toAnchorForm=function(uri,_12,_13){
var url=new dojo._Url(uri);
var _14=url.path;
if(_14){
var _15;
for(var i=0;i<_12.length;i++){
var _16=lconn.share0.util.uri.parseUri(_12[i]).path;
if(_14.indexOf(_16)==0){
var p={};
_15=_14.substring(_16.length);
if(url.query){
var q=lconn.share0.util.uri.splitQuery(url.query);
if(_13){
for(var key in _13){
p[key]=q[key]||_13[key];
delete q[key];
}
_15+=lconn.share0.util.uri.writeParameters(q);
}else{
_15+="?"+url.query;
}
}else{
for(var key in _13){
p[key]=_13[key];
}
}
url.path=_16;
url.fragment=(_15.length>0)?_15:"/";
url.query=lconn.share0.util.uri.writeParameters(p);
uri=lconn.share0.util.uri.writeUri(url);
break;
}
}
}
return uri;
};
lconn.share0.util.uri.fromAnchorForm=function(uri,_17){
if(!uri){
return uri;
}
var url=new dojo._Url(uri);
var _18=url.path;
if(url.fragment&&_18){
var _19;
for(var i=0;i<_17.length;i++){
var _1a=lconn.share0.util.uri.parseUri(_17[i]).path;
if(_18==_1a){
_19=url.fragment;
var p=lconn.share0.util.uri.splitQuery(url.query);
url.query=null;
url.fragment=null;
url.path=_1a+_19;
uri=lconn.share0.util.uri.writeUri(url);
url=new dojo._Url(uri);
dojo.mixin(p,lconn.share0.util.uri.splitQuery(url.query));
url.query=lconn.share0.util.uri.writeParameters(p);
uri=lconn.share0.util.uri.writeUri(url);
break;
}
}
}
return uri;
};
lconn.share0.util.uri.encodeUriComponent=function(uri){
return uri?encodeURIComponent(uri):null;
};
lconn.share0.util.uri.decodeUriComponent=function(uri){
return uri?decodeURIComponent(uri.replace(/\+/g,"%20")):null;
};
}


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




dojo.declare("lconn.share0.AbstractApp",null,{loadRecursion:0,_busy:0,constructor:function constructor(){
},destroy:function(){
lconn.share0.util.misc.destroy(this.globalActions);
this.globalActions=null;
},onApplicationStart:function(){
},getAuthenticatedUser:function(){
return this.authenticatedUser;
},getAuthenticatedUserId:function(){
return this.authenticatedUser?this.authenticatedUser.id:null;
},isAuthenticated:function(){
var u=this.authenticatedUser;
return (u&&typeof u!="undefined");
},getNonce:function(_1){
var u=this.authenticatedUser;
if(u){
_1(u.nonce,null);
}else{
var _2=new Error("unauthenticated");
_2.code="unauthenticated";
_1(_2,null);
}
return null;
},onNavigate:function(_3,_4){
},_load:function(_5){
this.sceneAvailable=false;
if(this.loadRecursion>10){
this.loadRecursion=0;
throw "Scenes have recursed "+this.loadRecursion+" times, url is "+_5;
}
try{
this.working();
var _6=this._decodeState(_5);
if(_6 instanceof dojo.Deferred){
_6.addCallback(dojo.hitch(this,this._loadFinal,_5)).addErrback(this,"showError");
}else{
this._loadFinal(_5,_6);
}
}
catch(e){
if(!e._handled){
console.error(e);
this.showError(e);
}
if(dojo.isIE){
throw e;
}
}
},_loadFinal:function(_7,_8){
try{
if(this.scene&&this.scene.refresh){
this.loadRecursion++;
if(this.scene.refresh(_8)){
this.loadRecursion=0;
this.onNavigate(null,_9);
this.sceneAvailable=true;
return;
}
}
var id=_8.id;
if(!id){
throw "No scene identifier from _decodeState()";
}
var dj=dojo;
dj.require(id);
var _a=dojo.getObject(id);
if(!id){
throw "No object defined for '"+id+"'";
}
var _9=new _a(this,_8);
var _b={};
for(var _c in dijit.registry._hash){
_b[_c]=dijit.registry._hash[_c];
}
var _d=this.scene;
this._endScene(_9);
this.onBeforeSceneChange(_d,_9);
this.scene=_9;
var _e=_9.begin(_d);
if(_e){
this.loadRecursion++;
var _f=this.resolveUri(_e);
this._load(_f);
return;
}else{
this.loadRecursion=0;
}
this.hasScene=true;
this.onSceneChange(_d,_9);
this.onNavigate(_d,_9);
for(var _c in _b){
delete _b[_c];
}
this.sceneAvailable=true;
}
catch(e){
try{
e._handled=true;
}
catch(e1){
}
console.error(e);
this.showError(e);
if(dojo.isIE){
throw e;
}
}
finally{
this.idle();
}
},_endScene:function(arg){
if(this.scene){
try{
this.scene.end(arg);
}
catch(e){
console.error(e);
}
this.scene=null;
}
},onBeforeSceneChange:function(_10,_11){
},onSceneChange:function(_12,_13){
},JS_HREF:/^javascript:/,onClick:function(e){
if(e.target){
var t=e.target;
if(t.getAttribute&&t.getAttribute("_lconn_focus")==="true"){
this._focusNode=t.id;
}
var nn=t.nodeName.toLowerCase();
if("input"==nn||"select"==nn||"option"==nn){
return;
}
if("a"!=nn){
do{
t=t.parentNode;
if(!t||t._nolink){
t=e.target.parentNode;
while(t&&!t._nolink){
t._nolink=true;
t=t.parentNode;
}
return;
}
}while(t.nodeName.toLowerCase()!="a");
}
if(dojo.hasClass(t,"_qkrDownload")){
if(dojo.isIE&&this.history){
this.history.resetHash();
}
}else{
if(t.href&&t.href.indexOf(this.uriApp)!=-1&&!t.ignore&&!this.JS_HREF.exec(t.href)){
var uri;
try{
uri=lconn.share0.util.uri.parseUri(t.href);
}
catch(e){
}
if(uri&&uri.path&&uri.path.indexOf(this.uriApp)==0){
dojo.stopEvent(e);
this.navigate(t.href);
return;
}
}
}
}
},getGlobalActions:function(){
if(!this.globalActions){
this.initGlobalActions();
}
return this.globalActions;
},initGlobalActions:function(){
this.globalActions=[];
},working:function(_14){
if(this._busy++>=0){
if(this.hasScene){
this.showWorking(_14);
}
}
},idle:function(_15){
if(--this._busy<1||_15==true){
this._busy=0;
this.showIdle();
}
},showWorking:function(_16){
},showIdle:function(){
},activateHelp:function(){
},showLoading:function(){
},showAuthenticationError:function(){
},showError:function(){
}});
}


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


;if(!dojo._hasResource["lconn.share0.util.dom"]){
dojo._hasResource["lconn.share0.util.dom"]=true;
dojo.provide("lconn.share0.util.dom");
lconn.share0.util.dom.XML_DECLARATION="<?xml version=\"1.0\" encoding=\"UTF-8\"?>";
lconn.share0.util.dom.XML_DECLARATION_WITH_ENTITIES="<?xml version=\"1.0\" encoding=\"UTF-8\"?><!DOCTYPE html [<!ENTITY amp \"&#38;#38;\"><!ENTITY lt \"&#60;#60;\"><!ENTITY gt \"&#62;#62;\"><!ENTITY nbsp \"&#160;\"><!ENTITY apos \"&#39;\"><!ENTITY quot \"&#34;\">]>";
lconn.share0.util.dom.NAMESPACES={XML:{LONG:"http://www.w3.org/XML/1998/namespace",SHORT:"xml"},ATOM:{LONG:"http://www.w3.org/2005/Atom",SHORT:"atom"},DOCUMENTS_ATOM:{LONG:"urn:ibm.com/td",SHORT:"td"},DOCUMENTS_ATOM_BATCH:{LONG:"urn:ibm.com/td/batch",SHORT:"batch"},OPENSEARCH:{LONG:"http://a9.com/-/spec/opensearch/1.1/",SHORT:"opensearch"},THREAD_ATOM:{LONG:"http://purl.org/syndication/thread/1.0",SHORT:"thr"},CA:{LONG:"http://www.ibm.com/xmlns/prod/composite-applications/v1.0",SHORT:"ca"},SNX:{LONG:"http://www.ibm.com/xmlns/prod/sn",SHORT:"snx"}};
lconn.share0.util.dom.NAMESPACE_PREFIX={};
for(var key in lconn.share0.util.dom.NAMESPACES){
var value=lconn.share0.util.dom.NAMESPACES[key];
lconn.share0.util.dom[key+"_NAMESPACE"]=value;
lconn.share0.util.dom.NAMESPACE_PREFIX[value.SHORT]=value.LONG;
}
lconn.share0.util.dom.prependXmlProlog=function(_1){
if(/^\s*<\?xml\s/.test(_1)){
_1=_1.substring(_1.indexOf("?>")+2);
}
return lconn.share0.util.dom.XML_DECLARATION+_1;
};
lconn.share0.util.dom.serializeXMLDocument=function(_2,_3){
var s;
if(_2.xml){
s=_2.xml;
}else{
s=new XMLSerializer().serializeToString(_2);
}
if(!_3){
if(/^\s*<\?xml\s/.test(s)){
s=s.substring(s.indexOf("?>")+2);
}
}else{
s=lconn.share0.util.dom.prependXmlProlog(s);
}
return s;
};
lconn.share0.util.dom.newXMLDocument=function(_4,_5,_6){
if(!_4){
_4="";
}
var _7="";
if(_5){
if(_5.LONG){
_7=_5.LONG;
}else{
_7=_5;
}
}
if(document.implementation&&document.implementation.createDocument&&!dojo.isIE){
return document.implementation.createDocument(_7,_4,null);
}else{
var _8=new ActiveXObject("MSXML2.DOMDocument");
if(_4){
var _9="";
var _a=_4;
var p=_4.indexOf(":");
if(p!=-1){
_9=_4.substring(0,p);
_a=_4.substring(p+1);
}
if(!_9&&_5&&_5.SHORT){
_9=_5.SHORT;
}else{
_9=null;
}
var _b="<"+(_9?(_9+":"):"")+_a+(_7?(" xmlns"+(_9?(":"+_9):"")+"=\""+_7+"\""):"");
if(_6){
for(var i=0;i<_6.length;i++){
if(_6[i].LONG!==_7){
_b+=" xmlns:"+_6[i].SHORT+"=\""+_6[i].LONG+"\"";
}
}
}
_b+="/>";
_8.loadXML(_b);
}
return _8;
}
};
lconn.share0.util.dom.getElementByLanguage=function(_c,_d){
var c;
var i;
var _e=[_d];
while((i=_d.lastIndexOf("-"))!=-1){
_e.push(_d=_d.substring(0,i));
}
if(dojo.indexOf(_e,"en-us")==-1){
_e.push("en-us");
}
if(dojo.indexOf(_e,"en")==-1){
_e.push("en");
}
if(dojo.indexOf(_e,"")==-1){
_e.push("");
}
for(var i=0;i<_e.length;i++){
for(var j=0;c=_c[j];j++){
var _f=(dojo.isIE)?c.getAttribute(lconn.share0.util.dom.XML_NAMESPACE.SHORT+":lang"):c.getAttributeNS(lconn.share0.util.dom.XML_NAMESPACE.LONG,"lang");
_f=_f?_f:"";
if(_f==_e[i]){
return c;
}
}
}
return null;
};
lconn.share0.util.dom.xmlText=function(_10){
var _11;
if(_10){
if(dojo.isIE){
_11=_10.text?_10.text:_10.innerText;
_11=_11?_11:_10.textContent;
}else{
_11=_10.textContent;
}
}else{
_11=_10;
}
return _11;
};
lconn.share0.util.dom.isNamedNS=function(el,_12,_13){
if(dojo.isIE){
var _14=el.baseName?el.baseName:el.localName;
if(_13){
return _14==_12&&_13.LONG==el.namespaceURI;
}
return el.nodeName==_12;
}
if(_13){
return el.localName==_12&&_13.LONG==el.namespaceURI;
}
return el.nodeName==_12;
};
lconn.share0.util.dom.getAttributeNS=function(el,_15,_16){
return (dojo.isIE)?el.getAttribute(_16.SHORT+":"+_15):el.getAttributeNS(_16.LONG,_15);
};
lconn.share0.util.dom.getElementsByTagName=function(el,_17){
var _18=el.baseName?el.baseName:el.localName;
return (dojo.isIE&&(_18!=el.tagName))?lconn.share0.util.dom.getElementsByTagNameNS(el,_17,lconn.share0.util.dom.ATOM_NAMESPACE):el.getElementsByTagName(_17);
};
lconn.share0.util.dom.getElementsByTagNameNS=function(el,_19,_1a){
if(dojo.isIE){
var ret=el.getElementsByTagName(_1a.SHORT+":"+_19);
if(!ret||ret.length<1){
ret=el.getElementsByTagName(_19);
}
return ret;
}
return el.getElementsByTagNameNS(_1a.LONG,_19);
};
lconn.share0.util.dom.createElementNS=function(d,_1b,_1c){
var _1d=(dojo.isIE)?d.createElement(_1c.SHORT+":"+_1b):d.createElementNS(_1c.LONG,_1b);
return _1d;
};
lconn.share0.util.dom.setAttributeNS=function(el,_1e,_1f,_20){
if(dojo.isIE){
el.setAttribute(_20.SHORT+":"+_1e,_1f);
}else{
el.setAttributeNS(_20.LONG,_20.SHORT+":"+_1e,_1f);
}
};
lconn.share0.util.dom.insertBefore=function(el,_21,_22){
if(_22){
el.insertBefore(_21,_22);
}else{
el.appendChild(_21);
}
return _21;
};
lconn.share0.util.dom.getChildElement=function(el,_23){
var arr=el.childNodes;
for(var i=0,c;c=arr[i];i++){
if(c.nodeName==_23||c.localName==_23){
return c;
}
}
};
lconn.share0.util.dom.getChildElementNS=function(el,_24,_25){
var arr=(dojo.isIE)?el.getElementsByTagName(_25.SHORT+":"+_24):el.getElementsByTagNameNS(_25.LONG,_24);
for(var i=0,c;c=arr[i];i++){
if(c.parentNode==el){
return c;
}
}
};
lconn.share0.util.dom.getChildElementTextContent=function(el,_26){
if(!el){
return null;
}
var _27=el.baseName?el.baseName:el.localName;
if(dojo.isIE&&(_27!=el.tagName)){
return lconn.share0.util.dom.getChildElementTextContentNS(el,_26,lconn.share0.util.dom.ATOM_NAMESPACE);
}
var arr=el.getElementsByTagName(_26);
for(var i=0,c;c=arr[i];i++){
if(c.parentNode==el){
if(c.textContent){
return c.textContent;
}
if(c.innerText){
return c.innerText;
}
var a=[];
for(var j=0;c2=c.childNodes[j];j++){
if(c2.nodeType==3){
a.push(c2.nodeValue);
}
}
return a.join("");
}
}
return null;
};
lconn.share0.util.dom.getChildElementTextContentNS=function(el,_28,_29){
if(!el){
return null;
}
var c;
var arr=el.childNodes;
if(dojo.isIE){
var _2a=_29==null?_28:_29.SHORT+":"+_28;
for(var i=0;c=arr[i];i++){
var _2b=c.baseName?c.baseName:c.localName;
if((_2b==_28&&(_29==null||c.namespaceURI==_29.LONG))||c.tagName==_2a){
if(c.innerText){
return c.innerText;
}
var a=[];
for(var j=0;c2=c.childNodes[j];j++){
if(c2.nodeType==3){
a.push(c2.nodeValue);
}
}
return a.join("");
}
}
}else{
var arr=el.getElementsByTagNameNS(_29.LONG,_28);
for(var i=0,c;c=arr[i];i++){
if(c.parentNode==el){
if(c.textContent){
return c.textContent;
}
var a=[];
for(var j=0;c2=c.childNodes[j];j++){
if(c2.nodeType==3){
a.push(c2.nodeValue);
}
}
return a.join("");
}
}
}
return null;
};
lconn.share0.util.dom.getChildElementAttribute=function(_2c,_2d,_2e){
if(!_2c){
return null;
}
if(_2e=="class"&&dojo.isIE){
_2e="className";
}
var arr=_2c.getElementsByTagName(_2d);
for(var i=0,c;c=arr[i];i++){
if(c.parentNode==_2c){
return c.getAttribute(_2e);
}
}
return null;
};
lconn.share0.util.dom.getChildElementAttributeNS=function(_2f,_30,_31,_32,_33){
if(!_2f){
return null;
}
var c;
if(dojo.isIE){
if(_32=="class"){
_32="className";
}
var _34=_31==null?_30:_31.SHORT+":"+_30;
for(var i=0;c=_2f.childNodes[i];i++){
if(_34==c.tagName){
return c.getAttribute(_33.SHORT+":"+_32);
}
}
}else{
if(_31){
var arr=_2f.getElementsByTagNameNS(_31.LONG,_30);
for(var i=0,c;c=arr[i];i++){
if(c.parentNode==_2f){
return c.getAttributeNS(_33.LONG,_32);
}
}
}else{
var arr=_2f.getElementsByTagName(_30);
for(var i=0,c;c=arr[i];i++){
if(c.parentNode==_2f){
return c.getAttributeNS(_33.LONG,_32);
}
}
}
}
return null;
};
lconn.share0.util.dom.getChildElementAttributeMatching=function(_35,_36,_37,_38,_39){
if(!_35){
return null;
}
if(_37=="class"&&dojo.isIE){
_37="className";
}
if(_39=="class"&&document.all){
_39="className";
}
var arr=_35.getElementsByTagName(_36);
for(var i=0;child=arr[i];i++){
if(child.getAttribute(_37)==_38){
return child.getAttribute(_39);
}
}
return null;
};
lconn.share0.util.dom.getChildElementAttributeMatchingNS=function(_3a,_3b,_3c,_3d,_3e,_3f,_40,_41){
if(!_3a){
return null;
}
if(_3d=="class"&&dojo.isIE){
_3d="className";
}
if(_40=="class"&&document.all){
_40="className";
}
if(dojo.isIE){
var _42=_3c?_3c.SHORT+":"+_3b:_3b;
var _43=_3e?_3e.SHORT+":"+_3d:_3d;
var _44=_41?_41.SHORT+":"+_40:_40;
var arr=_3a.getElementsByTagName(_42);
for(var i=0;c=arr[i];i++){
if(c.getAttribute(_43)==_3f){
return c.getAttribute(_44);
}
}
}else{
if(_3c){
var arr=_3a.getElementsByTagNameNS(_3c.LONG,_3b);
if(_3e){
for(var i=0,c;c=arr[i];i++){
if(c.getAttributeNS(_3e.LONG,_3d)==_3f){
return c.getAttributeNS(_41.LONG,_40);
}
}
}else{
for(var i=0,c;c=arr[i];i++){
if(c.getAttribute(_3d)==_3f){
return c.getAttributeNS(_41.LONG,_40);
}
}
}
}else{
var arr=_3a.getElementsByTagName(_3b);
if(_3e){
for(var i=0;child=arr[i];i++){
if(child.getAttributeNS(_3e.LONG,_3d)==_3f){
return child.getAttributeNS(_41.LONG,_40);
}
}
}else{
for(var i=0;child=arr[i];i++){
if(child.getAttribute(_3d)==_3f){
return child.getAttributeNS(_41.LONG,_40);
}
}
}
}
}
return null;
};
lconn.share0.util.dom.getChildElementMatchingAttribute=function(_45,_46,_47,_48){
if(!_45){
return null;
}
if(_47=="class"&&dojo.isIE){
_47="className";
}
var arr=_45.getElementsByTagName(_46);
for(var i=0;child=arr[i];i++){
if(child.getAttribute(_47)==_48){
return child;
}
}
return null;
};
lconn.share0.util.dom.getChildElementMatchingAttributeTextContent=function(_49,_4a,_4b,_4c){
if(!_49){
return null;
}
if(_4b=="class"&&dojo.isIE){
_4b="className";
}
var arr=_49.getElementsByTagName(_4a);
for(var i=0;child=arr[i];i++){
if(child.getAttribute(_4b)==_4c){
return lconn.share0.util.dom.xmlText(child);
}
}
return null;
};
lconn.share0.util.dom.getChildElementMatchingAttributeTextContentNS=function(_4d,_4e,_4f,_50,_51,_52){
if(!_4d){
return null;
}
var arr=_4d.childNodes;
var _53;
if(dojo.isIE){
if(_50=="class"){
_50="className";
}
var _54=_4f==null?_4e:_4f.SHORT+":"+_4e;
var _55=_51==null?_50:_51.SHORT+":"+_50;
var arr=_4d.getElementsByTagName(_54);
for(var i=0;_53=arr[i];i++){
if(_53.getAttribute(_55)==_52){
return lconn.share0.util.dom.xmlText(_53);
}
}
}else{
if(_4f){
var arr=_4d.getElementsByTagNameNS(_4f.LONG,_4e);
if(_51){
for(var i=0;_53=arr[i];i++){
if(_53.getAttributeNS(_51.LONG,_50)==_52){
return lconn.share0.util.dom.xmlText(_53);
}
}
}else{
for(var i=0;_53=arr[i];i++){
if(_53.getAttribute(_50)==_52){
return lconn.share0.util.dom.xmlText(_53);
}
}
}
}else{
var arr=_4d.getElementsByTagName(_4e);
if(_51){
for(var i=0;_53=arr[i];i++){
if(_53.getAttributeNS(_51.LONG,_50)==_52){
return lconn.share0.util.dom.xmlText(_53);
}
}
}else{
for(var i=0;_53=arr[i];i++){
if(_53.getAttribute(_50)==_52){
return lconn.share0.util.dom.xmlText(_53);
}
}
}
}
}
return null;
};
lconn.share0.util.dom.domNodesToXml=function(_56){
var doc;
var _57;
if(_56&&_56.length>0){
if(_56.length>1){
doc=lconn.share0.util.dom.newXMLDocument("div");
_57=doc.documentElement;
}
for(var i=0;i<_56.length;i++){
var _58=_56.item(i);
doc=lconn.share0.util.dom.domToXml(_58,_57,doc);
}
}else{
doc=lconn.share0.util.dom.newXMLDocument("div");
}
var _59=lconn.share0.util.dom.XML_DECLARATION_WITH_ENTITIES+lconn.share0.util.dom.serializeXMLDocument(doc);
return _59;
};
lconn.share0.util.dom.domToXml=function(_5a,_5b,doc){
if(_5a.nodeType==3){
if(!_5b){
doc=lconn.share0.util.dom.newXMLDocument("div");
_5b=doc.documentElement;
}
_5b.appendChild(doc.createTextNode(_5a.nodeValue));
return doc;
}
var _5c;
var _5d=_5a.nodeName.toLowerCase();
if(!doc){
doc=lconn.share0.util.dom.newXMLDocument(_5d);
_5c=doc.documentElement;
}else{
_5c=doc.createElement(_5d);
_5b.appendChild(_5c);
}
var _5e=_5a.attributes;
if(_5e&&_5e.length>0){
var isA=_5d=="a";
var _5f=_5d=="img";
for(var i=0;i<_5e.length;i++){
var _60=_5e.item(i);
if(_60.specified){
if((_5f&&_60.name=="src")||(isA&&_60.name=="href")){
var _61=_5a.getAttribute("_fcksavedurl");
_5c.setAttribute(_60.name,_61);
}else{
_5c.setAttribute(_60.name,_60.value);
}
}
}
}
var _62=_5a.childNodes;
if(_62&&_62.length>0){
for(var i=0;i<_62.length;i++){
var _63=_62.item(i);
lconn.share0.util.dom.domToXml(_63,_5c,doc);
}
}
return doc;
};
}


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








dojo.j=dojo.getObject("Jiffy")||{mark:function(){
},measure:function(){
}};
lconn.share0.util.misc={indexById:function(_1,_2,_3){
if(_1){
for(var i=0;i<_1.length;i++){
if(_1[i]&&_1[i][_2]==_3){
return _1[i];
}
}
}
},initFromArray:function(_4,a,b,c,d,e,f,g){
if(_4==null){
return null;
}
var _5=typeof _4;
if(_5=="function"){
return _4(a,b,c,d,e,f,g);
}
var _6=[];
if(dojo.isArray(_4)){
for(var i=0;i<_4.length;i++){
var o=_4[i];
var _5=typeof o;
if(_5=="function"){
_6[i]=o(a,b,c,d,e,f,g);
}
if(_5=="string"){
_6[i]=new dojo.getObject(o)(a,b,c,d,e,f,g);
}
}
}
return _6;
},sort:function(_7){
if(!dojo.isArray(_7)||_7.length<2){
return _7;
}
if(arguments.length==1){
return _7.sort();
}
var _8=arguments;
var _9=[];
for(var i=1;i<_8.length;i++){
var _a=_8[i];
var _b=1;
if(dojo.isArray(_a)){
_b=_a[1];
_a=_a[0];
}
var f=(typeof _7[0][_a]=="string"&&"".localeCompare)?lconn.share0.util.misc.orderLocale:lconn.share0.util.misc.order;
_9.push(dojo.partial(f,_a,_b));
}
if(_9.length==1){
return _7.sort(_9[0]);
}
return _7.sort(function(a,b){
var l=_9.length;
for(var i=0;i<l;i++){
var c=_9[i](a,b);
if(c!=0){
return c;
}
}
return 0;
});
},orderLocale:function(_c,_d,a,b){
return a[_c].localeCompare(b[_c])*_d;
},order:function(_e,_f,a,b){
a=a[_e];
b=b[_e];
if(a==b){
return 0;
}
return (a>b?1:-1)*_f;
},destroy:function(){
if(arguments.length>1){
for(var i=0;i<arguments.length;i++){
lconn.share0.util.misc.destroy(arguments[i]);
}
}else{
if(arguments.length==1){
var arg=arguments[0];
if(arg&&typeof arg=="object"&&arg.length>0){
for(var i=0;i<arg.length;i++){
lconn.share0.util.misc.destroy(arg[i]);
}
}else{
var s=arg,w;
if(typeof s=="string"){
w=dijit.byId(s);
}
if(w){
if(w.destroyRecursive){
w.destroyRecursive();
}else{
if(w.destroy){
w.destroy();
}
}
}
if(s&&typeof s.destroy=="function"){
s.destroy();
}
}
}
}
},first:function(o){
return (o&&dojo.isArrayLike(o))?o[0]:o;
},last:function(o){
return (o&&dojo.isArrayLike(o))?o[o.length-1]:o;
},size:function(o){
var c=0;
if(o){
for(var i in o){
c++;
}
}
return c;
},date:{convertAtomDate:dojo.date.stamp.fromISOString},hasListeners:function(f){
return (f._listeners&&dojo.some(f._listeners,function(l){
return l;
}));
}};
}


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


lconn.share0.util.text={possessive:function(s){
if(s&&s.charAt(s.length-1)!="s"){
s+="'s";
}else{
s+="'";
}
return s;
},getExtension:function(s){
if(!s){
return "";
}
var i=s.lastIndexOf(".");
if(i!=-1){
return s.substring(i+1).toLowerCase();
}
return "";
},trimExtension:function(s){
if(!s){
return "";
}
var i=s.lastIndexOf(".");
if(i!=-1){
return s.substring(0,i);
}
return s;
},getFilename:function(s){
if(!s){
return "";
}
var i=s.lastIndexOf("\\");
var j=s.lastIndexOf("/");
if(i==j){
return s;
}
i=Math.max(i,j);
return s.substring(i+1);
},trimToLength:function(s,_1,_2){
if(!s){
return "";
}
s=lconn.share0.util.text.trimEnd(s);
var _3="...";
if(_2>0){
var _4=s.split(/\s/);
for(var i=0;i<_4.length;i++){
if(_4[i].length>_2){
var l=s.indexOf(_4[i])+_2;
if(l>_1){
break;
}
return lconn.share0.util.text.trimEnd(s.substring(0,l-_3.length))+_3;
}
}
}
if(s.length>_1){
s=lconn.share0.util.text.trimEnd(s.substring(0,_1-_3.length))+_3;
}
return s;
},trim:function(s){
if(!s){
return "";
}
var e=/^\s*(.*?)\s*$/.exec(s+"");
return e?e[1]:s;
},trimEnd:function(s){
if(!s){
return "";
}
s+="";
s=/^(.*?)\s*$/.exec(s)[1];
return s;
},parseInt:function(s,_5){
_5=_5||0;
if(!s){
return _5;
}
var a=parseInt(s);
return isNaN(a)?_5:a;
},parseFloat:function(s,_6){
_6=_6||0;
if(!s){
return _6;
}
var a=parseFloat(s);
return isNaN(a)?_6:a;
},formatSize:function(){
var _7,_8;
if(arguments.length==2){
_7=arguments[0];
_8=arguments[1];
}else{
_8=arguments[0];
}
if(typeof _8=="undefined"||_8==null||typeof _8=="string"){
return _8;
}
var _7=_7||dojo.i18n.getLocalization("lconn.wikis","ui").SIZE;
if(_8>10*1024*1024){
return dojo.string.substitute(_7.MB,[dojo.number.format(Math.floor(_8*10/(1024*1024))/10)]);
}else{
if(_8>1*1024*1024){
return dojo.string.substitute(_7.MB,[dojo.number.format(Math.floor(_8*100/(1024*1024))/100)]);
}else{
if(_8>1*1024){
return dojo.string.substitute(_7.KB,[dojo.number.format(Math.floor(_8/1024))]);
}
}
}
return dojo.string.substitute(_7.B,[dojo.number.format(_8)]);
},lengthUtf8:function(s){
if(!s){
return 0;
}
var _9=0;
var _a=s.length;
for(var i=0;i<_a;i++){
var c=s.charCodeAt(i);
if(c<=127){
_9++;
}else{
if(c<=2047){
_9+=2;
}else{
if(c<=65535){
_9+=3;
if((c>>11)==27){
_9++;
i++;
}
}else{
_9+=4;
}
}
}
}
return _9;
},getCharIndexForUtf8Index:function(s,_b){
var _c=0;
var _d=s.length;
for(var i=0;i<_d;i++){
var c=s.charCodeAt(i);
if(c<=127){
_c++;
}else{
if(c<=2047){
_c+=2;
}else{
if(c<=65535){
_c+=3;
if((c>>11)==27){
_c++;
i++;
}
}else{
_c+=4;
}
}
}
if(_c>_b){
return i;
}
}
return -1;
}};
}


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






lconn.share0.util.atom.getMultiErrorCodes=function(_1,_2){
var _3=lconn.share0.util.atom.getMultiErrors(_1,_2);
if(dojo.isArray(_3)){
return dojo.map(_3,function(_4){
return _4.code;
});
}
return _3?_3.code:null;
};
lconn.share0.util.atom.getMultiErrors=function(_5,_6){
if(_6&&_6.xhr&&_6.xhr.responseXML){
var el=_6.xhr.responseXML.documentElement;
var _7=lconn.share0.util.dom.getElementsByTagNameNS(el,"error",lconn.share0.util.dom.DOCUMENTS_ATOM_NAMESPACE);
if(_7.length){
var _8=[];
dojo.forEach(_7,function(el){
var _9=lconn.share0.util.dom.getChildElementTextContentNS(el,"errorCode",lconn.share0.util.dom.DOCUMENTS_ATOM_NAMESPACE);
var _a=lconn.share0.util.text.trim(_9);
var _b=new Error();
if(_a.length>0){
_b.message=_b.code=_a;
_b.el=el;
_b.message=lconn.share0.util.dom.getChildElementTextContentNS(el,"errorMessage",lconn.share0.util.dom.DOCUMENTS_ATOM_NAMESPACE);
}
_8.push(_b);
});
return _8;
}
}
return lconn.share0.util.atom.getError(_5,_6);
};
lconn.share0.util.atom.getErrorCode=function(_c,_d){
var _e=lconn.share0.util.atom.getError(_c,_d);
return (_e?_e.code:null);
};
lconn.share0.util.atom.getError=function(_f,_10,_11){
if(_f instanceof Error&&_f.code){
return _f;
}
var _12=null;
var _13;
try{
if(_10&&_10.xhr){
_13=_10.xhr.status;
}
}
catch(e){
}
_f=_f||{};
var _14=false;
_14=_14||_f instanceof Error;
_14=_14||(_13>0&&!(_13>=200&&_13<300));
_14=_14||(dojo.isIE&&_f.number==-2147024891);
if(_11&&_11.requireData){
_14=_14||(_10.handleAs=="xml"&&!_f.documentElement);
_14=_14||(dojo.indexOf(["json","json-comment-filtered"],_10.handleAs)!=-1&&typeof _f!="object");
}
if(_14){
_12=new Error();
if(_f&&dojo.indexOf(["cancel","timeout","unauthenticated"],_f.dojoType)!=-1){
_12.message=_12.code=_12.dojoType=_f.dojoType;
}
if(!_12.code&&dojo.isIE&&_f.number==-2147024891){
_12.message=_12.code="InvalidRequest";
}
if(!_12.code&&_13==412&&_10.xhr&&_10.xhr.responseXML&&_10.xhr.responseXML.documentElement&&lconn.share0.util.dom.isNamedNS(_10.xhr.responseXML.documentElement,"entry",lconn.share0.util.dom.NAMESPACES.ATOM)){
_12.message=_12.code="ConcurrentModification";
var _15=new lconn.share0.bean.File(_10.xhr.responseXML.documentElement);
_12.date=_15.getUpdated();
_12.user=_15.getModifier();
}
if(!_12.code&&_10.xhr&&_10.xhr.responseXML&&_10.xhr.responseXML.documentElement){
var el=_10.xhr.responseXML.documentElement;
var _16=lconn.share0.util.dom.getChildElementTextContentNS(el,"errorCode",lconn.share0.util.dom.DOCUMENTS_ATOM_NAMESPACE);
var _17=lconn.share0.util.text.trim(_16);
if(_17.length>0){
_12.message=_12.code=_17;
_12.el=el;
_12.message=lconn.share0.util.dom.getChildElementTextContentNS(el,"errorMessage",lconn.share0.util.dom.DOCUMENTS_ATOM_NAMESPACE);
if(_17=="QuotaViolation"){
_12.libraryQuota=lconn.share0.util.text.parseInt(lconn.share0.util.dom.getChildElementTextContentNS(el,"libraryQuota",lconn.share0.util.dom.DOCUMENTS_ATOM_NAMESPACE));
_12.librarySize=lconn.share0.util.text.parseInt(lconn.share0.util.dom.getChildElementTextContentNS(el,"librarySize",lconn.share0.util.dom.DOCUMENTS_ATOM_NAMESPACE));
_12.uploadSize=lconn.share0.util.text.parseInt(lconn.share0.util.dom.getChildElementTextContentNS(el,"uploadSize",lconn.share0.util.dom.DOCUMENTS_ATOM_NAMESPACE));
}else{
if(_17=="ExtensionViolation"){
_12.extension=lconn.share0.util.dom.getChildElementTextContentNS(el,"extension",lconn.share0.util.dom.DOCUMENTS_ATOM_NAMESPACE);
}
}
}
}
if(!_12.code&&_13==404){
_12.message=_12.code="ItemNotFound";
}
if(!_12.code){
_12.message=_12.code="unknown";
}
if(_13==412&&_12.code=="InvalidUser"){
_12.message=_12.code="SessionInvalidated";
}
if(dojo.isIE&&_13==1223){
_13=204;
_14=false;
_12=null;
}
}
return _12;
};
lconn.share0.util.atom.getJsonResponseFromHtml=function(d){
var r={};
try{
if(d&&d.body){
var _18=dojo.filter(d.getElementsByTagName("meta"),function(el){
return el.name=="status";
})[0];
r.status=_18?parseInt(_18.content):200||200;
try{
var _19=dojo.fromJson(d.body.innerHTML);
if(typeof _19=="object"){
r.contents=_19;
}
}
catch(e){
console.log("util::getJsonResponseFromHtml DEBUG innerHTML not JSON");
}
}
}
catch(e){
console.log("util::getJsonResponseFromHtml DEBUG unable to access body");
}
return r;
};
lconn.share0.util.atom.getJsonError=function(r){
if(r&&r.status==404){
var _1a=new Error();
_1a.message=_1a.code="ItemNotFound";
return _1a;
}
if(!r||typeof r.contents!="object"){
var _1a=new Error();
_1a.message=_1a.code="unknown";
return _1a;
}
if(r.status==412){
var _1b={};
var _1c=null;
var c=r.contents;
for(var i=0;i<c.extensions.length;i++){
var ext=c.extensions[i];
if(ext.name=="td:modifier"){
for(var j=0;j<ext.children.length;j++){
var _1d=ext.children[j];
if(_1d.name=="snx:userid"){
_1b.id=_1d.children[0];
}else{
if(_1d.name=="td:name"){
_1b.name=_1d.children[0];
}
}
}
}else{
if(ext.name=="td:modified"){
_1c=lconn.share0.util.misc.date.convertAtomDate(ext.children[0]);
}
}
}
var _1a=new Error();
_1a.message=_1a.code="ConcurrentModification";
_1a.user=_1b;
_1a.date=_1c;
return _1a;
}else{
if(typeof r.contents.errorCode=="string"){
var _1a=new Error();
_1a.message=r.contents.errorMessage;
_1a.code=r.contents.errorCode;
for(var key in r.contents){
if(key!="errorCode"&&key!="errorMessage"){
_1a[key]=r.contents[key];
}
}
return _1a;
}else{
if(r.status<200||r.status>=300){
var _1a=new Error();
_1a.message=_1a.code="unknown";
return _1a;
}
}
}
return null;
};
lconn.share0.util.atom.detectLoginForMultipartResponse=function(_1e,_1f){
var _20=false;
if(_1e&&!(_1e instanceof Error)){
var _21;
try{
_21=_1e.body;
}
catch(e){
}
if(_21&&_21.childNodes){
var arr=_21.childNodes;
console.log("util::detectLoginForMultipartAtomResponse DEBUG scan child nodes");
for(var i=0;i<arr.length;i++){
if(arr[i]&&arr[i].nodeType!=3){
_20=true;
console.log("util::detectLoginForMultipartAtomResponse DEBUG is a login");
break;
}
}
}
}
return _20;
};
lconn.share0.util.atom.createOperationId=function(){
var s=dojo._toArray(arguments).join("_");
if(s.length>256){
s=s.substring(0,256);
}
return lconn.share0.util.text.trim(s);
};
}


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


lconn.share0.util.history={_getHash:function(){
var _1="";
if(dojo.isIE&&dojo.isIE<7){
var _2=window.location.toString();
var _3=_2.indexOf("#");
if(_3!=-1){
_1=_2.substring(_3);
}
}else{
_1=window.location.hash;
}
return _1;
},fromUrlState:null,toUrlState:null,_resetHashTimeout:null,resetHash:function(_4,_5){
if(lconn.share0.util.history.preventLocationAssign){
return;
}
if(this._resetHashTimeout){
window.clearTimeout(this._resetHashTimeout);
this._resetHashTimeout=null;
}
if(_5){
window.location.hash=lconn.share0.util.history._getHash();
}
_4=_4||[2,5,5,5];
var _6=_4.shift();
if(_6>0){
this._resetHashTimeout=window.setTimeout(function(){
lconn.share0.util.history.resetHash(_4,true);
},_6*1000);
}
},init:function(){
if(this.inited){
return;
}
this.inited=true;
if(dojo.isIE){
var _7=dojo.body();
var d=_7.ownerDocument;
var _8=d.getElementById("history");
if(_8){
if(_8._ready){
this.setFirstState(_8);
}
}else{
var _9="javascript:''";
if(dojo.isIE<9){
_8=document.createElement("<iframe onload=\"lconn.share0.util.history.onload(this);\" style=\"border:0;width:1px;height:1px;position:absolute;visibility:hidden;bottom:0;right:0;\" name=\"history\" id=\"history\" src=\""+_9+"\">");
_8.name=_8.id="history";
_7.appendChild(_8);
}else{
_8=dojo.create("iframe",{style:"border:0;width:1px;height:1px;position:absolute;visibility:hidden;bottom:0;right:0;",name:"history",id:"history",src:_9},dojo.body());
dojo.connect(_8,"onload",dojo.hitch(this,this.onload,_8));
}
}
}else{
var _a=this.pending;
if(_a){
this.pending=null;
setTimeout(function(){
lconn.share0.util.history.add(_a);
},0);
}
}
this.start();
dojo.connect(window,"onunload",this,"stop");
},setFirstState:function(_b){
_b._init=true;
try{
_b.writingState=true;
var _c=_b.contentWindow.document;
_c.open();
_c.write("<html><head><title>"+document.title+"</title></head><body><div id=\"state\">"+this._getHash()+"</div></body></html>");
_c.close();
}
catch(e){
console.log("unable to write the original state to the history iframe");
}
},preventLocationAssign:false,onload:function(){
if(!this.inited){
console.log("history.js not initialized");
return;
}
var _d=document.getElementById("history");
if(_d.writingState){
_d.writingState=false;
var _e=this.pending;
if(_e){
this.pending=null;
setTimeout(function(){
lconn.share0.util.history.add(_e);
},0);
}
return;
}
if(!_d._init){
setTimeout(function(){
lconn.share0.util.history.setFirstState(_d);
},0);
return;
}
var _f=_d.contentWindow;
var _10=_f.document;
var _11=_10.getElementById("state");
if(_11){
var _12="";
if(!lconn.share0.util.history.preventLocationAssign){
this._trackHash=window.location.hash=_11.innerText;
_12=window.location.href;
}else{
var uri=lconn.share0.util.uri.parseUri(window.location.href);
uri.fragment=(_11.innerText.charAt(0)=="#")?_11.innerText.substring(1):_11.innerText;
_12=lconn.share0.util.uri.writeUri(uri);
}
this.onchange(_12);
}
},add:function(url){
if(!this.inited){
this.pending=url;
this.init();
return;
}
var _13=!lconn.share0.util.history.isUrlEqual(url,window.location.href);
if(!lconn.share0.util.history.preventLocationAssign||_13){
window.location.href=url;
}
if(dojo.isIE&&dojo.isIE<8){
var _14=document.getElementById("history");
if(_14){
_14.writingState=true;
var _15=_14.contentWindow.document;
_15.title=document.title;
_15.open();
_15.write("<html><head><title></title></head><body><div id=\"state\">"+this._getHash()+"</div></body></html>");
_15.close();
}else{
console.log("history.js not initialized");
}
}
this.start();
if(!_13){
this.onchange(url);
}
},reload:function(url){
lconn.share0.util.history.stop();
window.location.assign(url);
window.location.reload(false);
},isUrlEqual:function(a,b){
var a=lconn.share0.util.uri.parseUri(a);
var b=lconn.share0.util.uri.parseUri(b);
return ((a.scheme==null||b.scheme==null||a.scheme==b.scheme)&&(a.host==null||b.host==null||a.host==b.host)&&a.path==b.path&&a.query==b.query);
},start:function(){
if(!this.inited){
console.log("history.js not initialized");
return;
}
if(!this.urlTracker){
this._trackHash=this._getHash();
this.toUrlState=this._trackHash;
this._trackCallback=dojo.hitch(this,this.checkUrl);
this._trackTimeout=setInterval(this._trackCallback,75);
}
},stop:function(){
if(!this.inited){
console.log("history.js not initialized");
return;
}
if(this._trackTimeout){
clearInterval(this._trackTimeout);
}
this._trackTimeout=null;
},checkUrl:function(){
if(!this.inited){
console.log("history.js not initialized");
return;
}
var _16=this._getHash();
if(_16!=this._trackHash){
if(dojo.isIE==6){
this.preventLocationAssign=true;
}
this._trackHash=_16;
this.onchange(window.location.href);
}
},onchange:function(url){
this.saveState(url);
},saveState:function(_17){
this.fromUrlState=this.toUrlState;
this.toUrlState=(new dojo._Url(_17)).fragment;
},restore:function(){
if(this.fromUrlState){
lconn.share0.util.history.stop();
window.location.hash=this.fromUrlState;
lconn.share0.util.history.start();
}
},rewrite:function(_18,_19){
var _1a=false;
if(!_18||!_19||_18.length!=_19.length){
return _1a;
}
this.stop();
var _1b=window.location.hash;
if(_1b&&_1b.length>0){
for(i=0;i<_18.length;i++){
var s=_18[i];
var d=_19[i];
if(s&&s.length>0&&d&&d.length>0){
_1b=_1b.replace(s,d);
_1a=true;
}
}
}
if(_1b&&_1b.length>0){
window.location.hash=_1b;
}
this.start();
return _1a;
},replace:function(uri){
window.location.replace(uri);
}};
}


;if(!dojo._hasResource["lconn.share0.util.OperationMonitor"]){
dojo._hasResource["lconn.share0.util.OperationMonitor"]=true;
dojo.provide("lconn.share0.util.OperationMonitor");
dojo.declare("lconn.share0.util.OperationMonitor",null,{url:null,timeout:10,interval:30,maxFailures:1,attempts:2,maxAttempts:-1,validStatusCodes:[200],constructor:function(_1){
dojo.mixin(this,_1);
},start:function(){
this.cancel();
this.failed=this.attempts=0;
this._scheduled=setTimeout(dojo.hitch(this,this._connect),this.interval*1000);
},cancel:function(){
if(this._xhr){
this._xhr.cancel();
}
this._xhr=null;
if(this._scheduled){
clearTimeout(this._scheduled);
this._scheduled=null;
}
},onInterval:function(_2,_3){
},onFailure:function(_4){
},isCancel:function(_5,_6){
return (_5&&_5.dojoType=="cancel");
},isFailure:function(_7,_8){
if(_8.xhr&&dojo.indexOf(this.validStatusCodes,_8.xhr.status)!=-1){
return false;
}
return (!_7||_7 instanceof Error);
},_connect:function(){
this.cancel();
this.attempts++;
var _9={url:this.url,handleAs:"text",noStatus:true,timeout:this.timeout*1000,handle:dojo.hitch(this,this._complete)};
dojo.mixin(_9,this.ioArgs||{});
this._xhr=this.net.get(_9);
},_complete:function(_a,_b){
if(this.isCancel(_a,_b)){
return;
}else{
if(this.isFailure(_a,_b)){
this.failed++;
if(this.failed>=this.maxFailures){
this.onFailure(this.failed);
return;
}
}else{
this.failed=0;
if(this.onInterval){
this.onInterval(_a,_b);
}
}
}
if(this.maxAttempts>0&&this.attempts>=this.maxAttempts&&this.failed<1){
return;
}
this._scheduled=setTimeout(dojo.hitch(this,this._connect),this.interval*1000);
}});
}


;if(!dojo._hasResource["lconn.share0.util.Preferences"]){
dojo._hasResource["lconn.share0.util.Preferences"]=true;
dojo.provide("lconn.share0.util.Preferences");
dojo.declare("lconn.share0.util.Preferences",null,{name:"qpfs",expiration:40*1000*60*60*24,path:"/",constructor:function(_1){
dojo.mixin(this,_1);
},get:function(_2){
this._init();
return this.prefs[_2];
},put:function(_3,_4){
this._init();
if(typeof _4=="undefined"||_4==null){
delete this.prefs[_3];
}else{
this.prefs[_3]=_4;
}
this._store();
},_init:function(){
if(!this._initialized){
var _5=dojo.cookie(this.name);
try{
this.prefs=dojo.fromJson(_5);
}
catch(e){
}
this.prefs=this.prefs||{};
this._initialized=true;
}
},_store:function(){
dojo.cookie(this.name,dojo.toJson(this.prefs),{expires:30,path:this.path});
},reset:function(){
this.prefs={};
dojo.cookie(this.name,"",{expires:30,path:this.path});
},getListPageSize:function(_6,_7){
_6=_6||"itemsPerPage";
var i=this.get(_6);
return (i>0?i:(_7?_7:10));
},setListPageSize:function(_8,_9){
_9=_9||"itemsPerPage";
this.put(_9,_8);
}});
}


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
















dojo.declare("lconn.share0.App",lconn.share0.AbstractApp,{activeTipSet:1,isSemTagSvcInited:false,baseParams:null,constructor:function constructor(_1,_2){
this.document=this.d=_1;
var _3=this.routes=this.initRoutes();
_3.getAuthenticatedUser=dojo.hitch(this,this.getAuthenticatedUser);
this.prefs=new lconn.share0.util.Preferences({path:dojo.getObject("lconn.share0.config.baseUriPath")||"/"});
this.baseParams={};
var _4=this.language=dojo.getObject("lconn.share0.config.formattingLanguageParam")||dojo.getObject("djConfig.locale")||"en";
this.routes.globalParameters={lang:_4};
this.uriApp=_3.getAppPath();
dojo.connect(dojo,"xhrBegin",this,"working");
dojo.connect(dojo,"xhrEnd",this,"idle");
dojo.connect(lconn.share0.util.history,"onchange",this,"load");
dojo.connect(dojo.doc.documentElement,"onclick",this,"onClick");
this.urlState=_2;
},start:function(_5){
this.onApplicationStart();
if(this.history){
this.history.init();
}
try{
this.authenticatedUser=this.initAuthentication();
}
catch(e){
this.showAuthenticationError(e);
return;
}
var _6=this.resolveUri(_5);
if(!this.authenticatedUser&&this.isProtectedUri(_6)){
this.login(_6.toCanonicalString(),{redirect:true});
return;
}
var _7=lconn.share0.util.misc.first(_6.queryParameters.debug);
if(_7){
this.baseParams.debug=_7;
}
this.baseParams.lang=this.language;
this.load(_6);
},onBeforeApplicationStart:function(){
},onApplicationStart:function(){
},initRoutes:function(){
},initAuthentication:function(){
return this._loadAuthentication();
},_loadAuthentication:function(){
var _8,_9;
dojo.xhrGet({url:this.routes.getUserInfoServiceUrl(),handleAs:"json-comment-optional",auth:{secured:false},handle:function(r,io){
_8=r;
_9=io;
},sync:true});
var _a=lconn.share0.util.atom.getError(_8,_9);
if(_a&&_a.code!="unknown"){
console.log("App::_loadAuthentication DEBUG user is not authenticated code="+_a.code);
throw _a;
}else{
if(!_8||!_8.items||_8.items.length==0){
console.log("App::_loadAuthentication DEBUG user is not authenticated");
return null;
}else{
var _b=lconn.share0.scenes.createUser(this,_8.items[0]);
console.log("App::_loadAuthentication DEBUG user is authenticated id="+_b.id);
return _b;
}
}
},getUrl:function(){
return this.urlState;
},_initScene:function(_c,_d){
if(_c){
this.load(_c);
}else{
this.load((this._getDefaultSceneFunction(_d.id))(this));
}
},login:function(s){
var e=lconn.share0.util.misc.last(arguments);
if(lconn.share0.util.html.isEvent(e)){
dojo.stopEvent(e);
}
if(this.scene&&this.scene.onlogin&&this.scene.onlogin()){
return;
}
var _e=this.routes.getLoginUrl(typeof s=="string"?s:this.getUrl());
var f=dojo.getObject("lconn.share0.config.login");
if(typeof f=="function"){
f(_e);
}else{
window.location.href=_e;
}
},logout:function(s){
var e=lconn.share0.util.misc.last(arguments);
if(lconn.share0.util.html.isEvent(e)){
dojo.stopEvent(e);
}
if(this.scene&&this.scene.onBack){
this.removeOnBackHandler();
}
if(this.scene&&this.scene.onlogout&&this.scene.onlogout()){
return;
}
var _f=this.routes.getLogoutUrl((typeof s=="string")?s:null);
var f=dojo.getObject("lconn.share0.config.logout");
if(typeof f=="function"){
f(_f);
}else{
window.location.href=_f;
}
},onLogin:function(){
var _10=this.authenticatedUser;
try{
this.authenticatedUser=this.initAuthentication();
}
catch(e){
this.showAuthenticationError(e);
return;
}
var _11=this.authenticatedUser;
if(!_11){
console.log("App::onLogin DEBUG got notified of authentication, but somehow failed");
this.onUserReset.apply(this,arguments);
}else{
if(_10){
if(_10.id!=_11.id){
console.log("App::onLogin DEBUG authenticated user has changed, return to welcome page");
this.onUserReset.apply(this,arguments);
}else{
console.log("App::onLogin DEBUG authenticated user is same as old user, no action necessary");
this.onUserReauthenticated.apply(this,arguments);
}
}else{
console.log("App::onLogin DEBUG authenticated user has changed, not authenticated before");
this.onUserLogin.apply(this,arguments);
}
}
},onLogout:function(){
var _12=this.authenticatedUser;
try{
this.authenticatedUser=this.initAuthentication();
}
catch(e){
this.showAuthenticationError(e);
return;
}
var _13=this.authenticatedUser;
if(_13){
console.log("App::onLogout DEBUG user logged out but is now reported as logged in");
return;
}
this.onUserReset();
},onLoginError:function(){
console.log("App::onLogin DEBUG authentication error");
},onUserLogin:function(){
},onUserReauthenticated:function(){
},onUserReset:function(){
},waitingForLogin:function(){
return this._waitingForLogin;
},_load:function(url){
this.sceneAvailable=false;
if(this.loadRecursion>10){
this.loadRecursion=0;
throw "Scenes have recursed "+this.loadRecursion+" times, url is "+url;
}
try{
var _14=this._decodeState(url);
this.working();
if(_14 instanceof dojo.Deferred){
_14.addCallback(dojo.hitch(this,this._loadFinal,url)).addErrback(this,"showError");
}else{
this._loadFinal(url,_14);
}
}
catch(e){
if(!e._handled){
console.error(e);
this.showError(e);
}
if(dojo.isIE){
throw e;
}
}
},_loadFinal:function(url,_15){
try{
if(dojo.isFunction(this._checkSceneRedirects)&&this._checkSceneRedirects(_15)){
return;
}
if(dojo.isFunction(this._loadSceneCode)){
this._loadSceneCode(_15);
}
if(this.scene&&this.scene.onnavigate&&this.scene.onnavigate(url)){
this.loadRecursion=0;
this.onNavigate(null,_16);
this.sceneAvailable=true;
lconn.share0.util.history.restore();
return;
}
if(this.scene&&this.scene.refresh){
this.loadRecursion++;
if(this.scene.refresh(_15)){
this.loadRecursion=0;
this.onNavigate(null,_16);
this.sceneAvailable=true;
return;
}
}
var id=_15.id;
var dj=dojo;
dj.require(id);
var _17=dojo.getObject(id);
if(!id){
throw "No object defined for '"+id+"'";
}
var _16=new _17(this,_15);
this.onAfterSceneInstantiated(_16);
var _18={};
for(var key in dijit.registry._hash){
_18[key]=dijit.registry._hash[key];
}
var _19=this.scene;
this._endScene(_16);
this.onBeforeSceneChange(_19,_16);
this.scene=_16;
var _1a=_16.begin(_19);
if(_1a){
this.loadRecursion++;
var _1b=this.resolveUri(_1a);
this._load(_1b);
return;
}else{
this.loadRecursion=0;
}
this.hasScene=true;
this.onSceneChange(_19,_16);
this.onNavigate(_19,_16);
for(var key in _18){
delete _18[key];
}
if(this._focusNode){
dijit.focus(dojo.byId(this._focusNode));
}
this.sceneAvailable=true;
if(this.scene&&this.scene.onBack){
this.addOnBackHandler();
}
}
catch(e){
try{
e._handled=true;
}
catch(e1){
}
console.error(e);
this.showError(e);
if(dojo.isIE){
throw e;
}
}
finally{
this.idle();
}
},onAfterSceneInstantiated:function(){
},protectedLoad:function(_1c){
if(!this.authenticatedUser){
this.showLoginRequiredError();
}else{
this.load(_1c);
}
},_getSceneFunction:function(id){
if(!id){
return null;
}
var dj=dojo;
dj.require(id);
var _1d=dojo.getObject(id);
return _1d;
},showAuthenticationError:function(e){
var _1e=this.nls.APP.ERRORS.UNABLE_TO_LOGIN;
switch(e.code){
case "InvalidUser":
_1e=this.nls.APP.ERRORS.INVALID_USER;
break;
case "DuplicateUserAccount":
_1e=this.nls.APP.ERRORS.DUPLICATE_USER;
break;
}
var _1f=[[_1e.ACT_OUT,this.getUrl(),"logout"]];
lconn.share0.scenes.applyGenericWarning(this,_1e.TITLE,_1e.MESSAGES,_1f);
},showLoginRequiredError:function(){
var _20=this.nls.APP.ERRORS.LOGIN;
var _21=[[_20.ACT,this.getUrl(),"login"]];
lconn.share0.scenes.applyGenericWarning(this,_20.TITLE,_20.MESSAGES,_21);
},showError:function(){
},reload:function(){
this.load(this.urlState);
}});
lconn.share0.App.onload=function onload(_22,app){
var dj=_22["dojo"];
lconn.share0.util.history.init();
if(!app){
throw "Unable to find an application to load";
}
try{
var _23=dj.getObject(app);
var _24=_22.location.href;
var app=new _23(document,_24);
if(!_22["pe"]){
_22.pe=app;
}
app.onBeforeApplicationStart();
app.start(_24);
}
catch(e){
console.log("unable to load application");
throw e;
}
};
}


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


(function(){
var _1=window.wikisConfig;
var _2=_1._webUri;
var _3=_1._webCommonUri;
var _4=_1._svc;
var _5=_4+"anonymous/api/";
var _6=_4+"api/";
var _7=_1._feedSvc;
var _8=_7+"anonymous/api/";
var _9=_7+"api/";
var _a=_6+"wiki/{libraryId}/draft/";
var _b=_5+"userlibrary/{userId}/draft/";
var _c=_2+"follow/atomfba/";
lconn.share0.config=dojo.mixin(_1,{baseUri:_2,baseCommonUri:_3,baseUriPath:new dojo._Url(_2).path,homeUri:"http://quickr.tap.ibm.com",demoUri:"http://ibmtvdemo.edgesuite.net/software/lotus/uxid/connections/wikis40/wikis_demo.html",proxyUri:_2+"ajaxProxy/",application:"lconn.wikis.WikisApp",wikiTextEnabled:_1.wikiTextEnabled,editorType:"ck",disablePages:false,disableLinkNavigation:true,disableOpenInNewPage:false,detailedDownloads:false,useFriendlyUrls:false,htmlDiff:true,lotusSupportForumsUri:"//www-10.lotus.com/ldd/lcforum.nsf",productFeedbackUri:"//www.lotus.com/ldd/doc/cct/nextgen.nsf/feedback_choice?OpenForm&Context=footer+ventura+2.0",deployment:"connections",validImageExtensions:["jpeg","jpg","bmp","png","tif","tiff","gif","raw"],validation:{warnForDownload:150},type:{isImage:function(_d){
return dojo.indexOf(["jpg","bmp","png","tiff","jpeg","gif"],_d)!=-1;
}},autosave:{regularTimerLength:300000,onPauseTimerLength:15000,numRetrievedUnsavedChanges:20},siteLinks:[{home:true,generateUri:function(_e){
return "#";
},getName:function(_f){
var nls=dojo.i18n.getLocalization("lconn.share0.wiki","wiki");
return nls.HEADER.WIKIS;
},getTitle:function(){
var nls=dojo.i18n.getLocalization("lconn.share0.wiki","wiki");
return nls.HEADER.WIKIS;
}}],logout:function(url){
var url=(typeof url=="string")?url:"/";
lconn.core.auth.logout(url);
},login:function(url){
var url=(typeof url=="string")?url:"/";
lconn.core.auth.login(url);
},templates:{"lconn.wikis.scenes.About":"templates/about.jsp","lconn.wikis.scenes.Toolbox":"templates/toolbox.jsp","lconn.wikis.scenes.Statistics":"templates/statistics.jsp"},actions:{myWikiCreatePage:function(app,_10,opt){
return [new lconn.wikis.action.CreatePage(app,_10,opt)];
},draftList:function(app,_11){
return [new lconn.wikis.action.EditDraft(app,_11),new lconn.wikis.action.DiscardDraft(app,_11)];
},wikiPage:function(app,_12,opt){
return [new lconn.wikis.action.EditWikiPage(app,_12,opt)];
},wikiPageMenuActions:function(app,_13,opt){
return [new lconn.wikis.action.CreateChildPage(app,_13,opt),new lconn.wikis.action.CreateSiblingPage(app,_13,opt),new lconn.wikis.action.PrintPage(app,_13,opt),new lconn.wikis.action.MoveWikiPage(app,_13),new lconn.wikis.action.DownloadPage(app,_13),new lconn.wikis.action.DeletePage(app,_13)];
},publicWikis:function(app,_14){
return [new lconn.wikis.action.CreateWiki(app,_14)];
},myWikis:function(app,_15){
return [new lconn.wikis.action.CreateWiki(app,_15)];
},members:function(app,_16,opt){
return [new lconn.wikis.action.AddMembers(app,_16,opt),new lconn.wikis.action.RemoveMembers(app,_16,opt),new lconn.wikis.action.ManageWikiAccess(app,_16,opt)];
},memberItem:function(app,_17,opt){
return [new lconn.wikis.action.EditMember(app,_17,opt)];
},navigationContextMenu:function(app,_18,opt){
return [new lconn.wikis.action.CreateChildPage(app,_18,opt),new lconn.wikis.action.CreateSiblingPage(app,_18,opt),new lconn.wikis.action.OpenInNewWindow(app,_18,opt)];
},wiki:function(app,_19,opt){
return [new lconn.share0.action.Login(app,_19,opt)];
},recycleBin:function(app,_1a,opt){
return [new lconn.wikis.action.RestorePages(app,_1a,opt),new lconn.wikis.action.RestoreAllPages(app,_1a,opt),new lconn.wikis.action.PurgePages(app,_1a,opt),new lconn.wikis.action.PurgeAllPages(app,_1a,opt)];
},followMenuActions:function(app,_1b,opt){
return [new lconn.wikis.action.FollowPage(app,_1b,opt),new lconn.wikis.action.FollowWiki(app,_1b,opt)];
},wikiMenuActions:function(app,_1c,opt){
if(app.isCloudMode){
return [];
}else{
return [new lconn.wikis.action.EditWiki(app,_1c,opt),new lconn.wikis.action.DeleteWiki(app,_1c,opt)];
}
}},iWidgets:function(app){
return [{"name":app.nls.INSERT_WIDGET.BLUE_STOCK_WIDGET,"code":"<div class=\"PageiWidget\"><script>dojo.require(\"dojo.i18n\");dojo.require(\"com.ibm.enabler\");<"+"/script><SPAN class=\"mm_iWidget\" style=\"color: blue; font-size: 12pt; font-family: courier;\" id=\"1\"><A class=\"mm_Definition\" href=\"/wikis/iwidgets/stocksample/stock.xml\" _fcksavedurl=\"/quickrshare/iwidgets/stocksample/stock.xml\" style=\"visibility: hidden;\"> <"+"/A><SPAN class=\"mm_ItemSet\" title=\"attributes\"><A class=\"mm_Item\" href=\"#company\" style=\"visibility: hidden;\">IBM<"+"/A><A class=\"mm_Item\" href=\"#stock\" style=\"visibility: hidden;\">125<"+"/A><"+"/SPAN><"+"/SPAN><"+"/div>"},{"name":app.nls.INSERT_WIDGET.GREEN_STOCK_WIDGET,"code":"<div class=\"PageiWidget\"><script>dojo.require(\"dojo.i18n\");dojo.require(\"com.ibm.enabler\");<"+"/script><SPAN class=\"mm_iWidget\" style=\"color: green; font-size: 12pt; font-family: courier;\" id=\"2\"><A class=\"mm_Definition\" href=\"/wikis/iwidgets/stocksample/stock.xml\" _fcksavedurl=\"/quickrshare/iwidgets/stocksample/stock.xml\" style=\"visibility: hidden;\"> <"+"/A><SPAN class=\"mm_ItemSet\" title=\"attributes\"><A class=\"mm_Item\" href=\"#company\" style=\"visibility: hidden;\">IBM<"+"/A><A class=\"mm_Item\" href=\"#stock\" style=\"visibility: hidden;\">125<"+"/A><"+"/SPAN><"+"/SPAN><"+"/div>"}];
}});
dojo.mixin(lconn.share0.config.services,{basic:{auth:_9,anon:_8},form:{auth:_6,anon:_5},authenticationUri:_4+"authenticated",introspectionUri:_6+"introspection",timeout:{request:100,update:200,upload:0,retrieveFiles:100,userSearch:200,userTypeahead:10},uploadMonitor:{url:_6+"myop/feed?format=json",ioArgs:{handleAs:"json-comment-optional",secured:false},validStatusCodes:[200,404],timeout:30,interval:4,maxInterval:30,queries:25,maxAttempts:-1,maxFailures:3},comments:{pageSize:20},shareInfo:{pageSize:100}});
lconn.share0.config.securedUrls=[_6,_9,_c];
lconn.share0.config.helpUri=(dojo.getObject("lconn.share0.config.services.connections.uri.help")||"/help")+"/topic/com.ibm.lotus.connections.wikis.help/";
})();
dojo.addOnLoad(function(){
lconn.share0.App.onload(window,lconn.share0.config.application);
});
}


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












var bidiDateUtil={getDateComponent:function(_1,_2){
if(lconn.core.globalization.api.getCalendar()==lconn.core.globalization.config.CALENDAR.HIJRI){
return dojox.date.islamic.locale.getNames(_1,_2);
}else{
if(lconn.core.globalization.api.getCalendar()==lconn.core.globalization.config.CALENDAR.HEBREW){
return dojox.date.hebrew.locale.getNames(_1,_2);
}
}
},fromGregorian:function(d){
if(lconn.core.globalization.api.getCalendar()==lconn.core.globalization.config.CALENDAR.HIJRI){
var _3=new dojox.date.islamic.Date();
return _3.fromGregorian(d);
}else{
if(lconn.core.globalization.api.getCalendar()==lconn.core.globalization.config.CALENDAR.HEBREW){
var _3=new dojox.date.hebrew.Date();
return _3.fromGregorian(d);
}
}
},formatBidiDate:function(d,_4){
if(lconn.core.globalization.api.getCalendar()==lconn.core.globalization.config.CALENDAR.HIJRI){
var _5=new dojox.date.islamic.Date();
return dojox.date.islamic.locale.format(_5.fromGregorian(d),_4);
}else{
if(lconn.core.globalization.api.getCalendar()==lconn.core.globalization.config.CALENDAR.HEBREW){
var _5=new dojox.date.hebrew.Date();
return dojox.date.hebrew.locale.format(_5.fromGregorian(d),_4);
}
}
}};
dojo.declare("lconn.share0.util.DateFormat",null,{MILLS_IN_DAY:86400000,constructor:function(_6,_7){
this.dt=_6||new Date();
if(_7){
for(var _8 in _7){
this[_8]=_7[_8];
}
}
this._transform=dojo.hitch(this,this.substitute);
},nls:function(){
if(!this._nls){
this._nls=dojo.i18n.getLocalization("lconn.wikis","ui");
}
return this._nls;
},substitute:function(_9,_a){
var _9=this[_a];
if(typeof _9=="function"){
_9=_9.apply(this,[]);
}
if(typeof _9=="undefined"||_9==null){
_9="${"+_a+"}";
}
return _9;
},toTimestamp:function(){
return this.format(this.nls().DATE.FULL);
},format:function(s){
return dojo.string.substitute(s,null,this._transform);
},_formatByAge:function(_b){
_b=_b||this.nls().DATE.RELATIVE_TIME;
var _c=this.delta();
if(_c<2&&_c>=-1){
if(_c==1){
return this.format(_b.YESTERDAY);
}else{
if(_c==0){
return this.format(_b.TODAY);
}else{
if(_c==-1&&_b.TOMORROW){
return this.format(_b.TOMORROW);
}
}
}
}
return this.date_long();
},formatByAge:function(_d){
_d=_d||this.nls().DATE.RELATIVE_TIME;
var _e=this.delta();
if(_e<7&&_e>=-1){
if(_e>=2){
return this.format(_d.DAY);
}else{
if(_e==1){
return this.format(_d.YESTERDAY);
}else{
if(_e==0){
return this.format(_d.TODAY);
}else{
if(_e==-1&&_d.TOMORROW){
return this.format(_d.TOMORROW);
}
}
}
}
}else{
if(new Date().getFullYear()==this.dt.getFullYear()){
return this.format(_d.MONTH);
}
}
return this.format(_d.YEAR);
},formatByAgeToHtml:function(_f,d){
var _10=this.formatByAge(_f);
var _11=d.createElement("SPAN");
_11.appendChild(d.createTextNode(_10?_10:this.dt.toString()));
_11.title=(_f&&_f.FULL)?this.format(_f.FULL):this.format(this.nls().DATE.RELATIVE_TIME.FULL);
return _11;
},delta:function(){
if(typeof this._delta!="undefined"){
return this._delta;
}
this._delta=lconn.share0.util.DateFormat.delta(this.dt,new Date());
return this._delta;
},getDays:function(){
if(!this._days){
lconn.share0.util.DateFormat.prototype._days=dojo.date.locale.getNames("days","wide");
}
return this._days;
},getDaysAbbr:function(){
if(!this._daysAbbr){
lconn.share0.util.DateFormat.prototype._daysAbbr=dojo.date.locale.getNames("days","abbr");
}
return this._daysAbbr;
},getMonths:function(){
if(!this._months){
lconn.share0.util.DateFormat.prototype._months=dojo.date.locale.getNames("months","abbr");
}
if(lconn.core.globalization.api.getCalendar()==lconn.core.globalization.config.CALENDAR.GREGORIAN){
return this._months;
}else{
return bidiDateUtil.getDateComponent("months","abbr");
}
},getMonthsWide:function(){
if(!this._monthsWide){
lconn.share0.util.DateFormat.prototype._monthsWide=dojo.date.locale.getNames("months","wide");
}
if(lconn.core.globalization.api.getCalendar()==lconn.core.globalization.config.CALENDAR.GREGORIAN){
return this._monthsWide;
}else{
return bidiDateUtil.getDateComponent("months","wide");
}
},getMonthsShort:function(){
if(!this._monthsShort){
lconn.share0.util.DateFormat.prototype._monthsShort=this.nls().DATE.MONTHS_ABBR;
}
if(lconn.core.globalization.api.getCalendar()==lconn.core.globalization.config.CALENDAR.GREGORIAN){
return this._monthsShort;
}else{
return bidiDateUtil.getDateComponent("months","abbr");
}
},Z:function(){
if(!this._Z){
var _12="-";
var _13=this.dt.getTimezoneOffset();
if(_13<0){
_13=Math.abs(_13);
_12="+";
}
var _14=Math.floor(_13/60);
_13%=60;
if(_14<10){
_14="0"+_14;
}
if(_13<10){
_13="0"+_13;
}
_12+=_14+""+_13;
this._Z=_12;
}
return this._Z;
},ZZZZ_REGEX:/\(([^\)]+)\)/,ZZZZ:function(){
if(!this._ZZ){
if(dojo.isIE){
var _15=this.dt.toString().split(" ");
this._ZZ=(_15.length>2)?_15[_15.length-2]:this.Z();
}else{
var r=this.ZZZZ_REGEX.exec(this.dt.toString());
this._ZZ=r?r[1]:this.Z();
}
}
return this._ZZ;
},YYYY:function(){
if(lconn.core.globalization.api.getCalendar()==lconn.core.globalization.config.CALENDAR.GREGORIAN){
return this.dt.getFullYear();
}else{
return bidiDateUtil.fromGregorian(this.dt).getFullYear();
}
},EEE:function(_16){
var day=this.dt.getDay();
if(_16>0){
day=(day+7-_16)%7;
}
return this.getDaysAbbr()[day];
},EEEE:function(_17){
var day=this.dt.getDay();
if(_17>0){
day=(day+7-_17)%7;
}
return this.getDays()[day];
},EEee:function(_18){
var _19=this.delta()+(_18?_18:0);
return (_19==0)?this.nls().DATE.TODAY_U:(_19==1)?this.nls().DATE.YESTERDAY_U:this.EEEE(_18);
},eeEE:function(_1a){
var _1b=this.delta()+(_1a?_1a:0);
return (_1b==0)?this.nls().DATE.TODAY:(_1b==1)?this.nls().DATE.YESTERDAY:this.EEEE(_1a);
},MMMM:function(){
if(lconn.core.globalization.api.getCalendar()==lconn.core.globalization.config.CALENDAR.GREGORIAN){
return this.getMonthsWide()[this.dt.getMonth()];
}else{
return this.getMonthsWide()[bidiDateUtil.fromGregorian(this.dt).getMonth()];
}
},MMM:function(){
if(lconn.core.globalization.api.getCalendar()==lconn.core.globalization.config.CALENDAR.GREGORIAN){
return this.getMonths()[this.dt.getMonth()];
}else{
return this.getMonths()[bidiDateUtil.fromGregorian(this.dt).getMonth()];
}
},MM:function(){
if(lconn.core.globalization.api.getCalendar()==lconn.core.globalization.config.CALENDAR.GREGORIAN){
var i=this.dt.getMonth()+1;
}else{
var i=bidiDateUtil.fromGregorian(this.dt).getMonth()+1;
}
return (i>9)?i:("0"+i);
},Mmm:function(){
if(lconn.core.globalization.api.getCalendar()==lconn.core.globalization.config.CALENDAR.GREGORIAN){
return this.dt.getMonthsShort()[this.dt.getMonth()];
}else{
return this.getMonthsShort()[bidiDateUtil.fromGregorian(this.dt).getMonth()];
}
},d:function(){
if(lconn.core.globalization.api.getCalendar()==lconn.core.globalization.config.CALENDAR.GREGORIAN){
return this.dt.getDate();
}else{
return bidiDateUtil.fromGregorian(this.dt).getDate();
}
},dd:function(){
if(lconn.core.globalization.api.getCalendar()==lconn.core.globalization.config.CALENDAR.GREGORIAN){
var i=this.dt.getDate();
}else{
var i=bidiDateUtil.fromGregorian(this.dt).getDate();
}
return (i>9)?i:("0"+i);
},a:function(){
return this.dt.getHours()<12?this.nls().DATE.AM:this.nls().DATE.PM;
},HH:function(){
var i=this.dt.getHours();
return (i>9)?i:("0"+i);
},hh:function(){
var _1c=this.dt.getHours();
if(_1c>12){
_1c-=12;
}else{
if(_1c==0){
_1c=12;
}
}
return (_1c>9)?_1c:("0"+_1c);
},mm:function(){
var _1d=this.dt.getMinutes();
return (_1d<10)?"0"+_1d:_1d;
},ss:function(){
var _1e=this.dt.getSeconds();
return (_1e<10)?"0"+_1e:_1e;
},date:function(){
if(lconn.core.globalization.api.getCalendar()==lconn.core.globalization.config.CALENDAR.GREGORIAN){
return dojo.date.locale.format(this.dt,{selector:"date",formatLength:"medium",locale:djConfig.locale});
}else{
return bidiDateUtil.formatBidiDate(this.dt,{selector:"date",formatLength:"medium",locale:djConfig.locale});
}
},date_long:function(){
if(lconn.core.globalization.api.getCalendar()==lconn.core.globalization.config.CALENDAR.GREGORIAN){
return dojo.date.locale.format(this.dt,{selector:"date",formatLength:"long",locale:djConfig.locale});
}else{
return bidiDateUtil.formatBidiDate(this.dt,{selector:"date",formatLength:"long",locale:djConfig.locale});
}
},time:function(){
return dojo.date.locale.format(this.dt,{selector:"time",formatLength:"short",locale:djConfig.locale});
},time_long:function(){
return dojo.date.locale.format(this.dt,{selector:"time",formatLength:"long",locale:djConfig.locale});
}});
lconn.share0.util.date={REPLACE:/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,MILLS_IN_DAY:86400000,toTimestamp:function(_1f,nls){
return lconn.share0.util.date.format(_1f,nls.FULL,nls);
},format:function(_20,_21,nls){
var qud=lconn.share0.util.date;
return _21.replace(qud.REPLACE,function(_22,key,_23){
var f=qud[key];
var s=f?f(_20,nls):"${"+key+"}";
return s;
});
},delta:function(_24,nls){
return lconn.share0.util.DateFormat.delta(_24,new Date());
},getDays:function(){
var qud=lconn.share0.util.date;
if(!qud._days){
qud._days=dojo.date.locale.getNames("days","wide");
}
return qud._days;
},getDaysAbbr:function(){
var qud=lconn.share0.util.date;
if(!qud._daysAbbr){
qud._daysAbbr=dojo.date.locale.getNames("days","abbr");
}
return qud._daysAbbr;
},getMonths:function(){
var qud=lconn.share0.util.date;
if(!qud._months){
qud._months=dojo.date.locale.getNames("months","abbr");
}
if(lconn.core.globalization.api.getCalendar()==lconn.core.globalization.config.CALENDAR.GREGORIAN){
return qud._months;
}else{
return bidiDateUtil.getDateComponent("months","abbr");
}
},getMonthsWide:function(){
var qud=lconn.share0.util.date;
if(!qud._monthsWide){
qud._monthsWide=dojo.date.locale.getNames("months","wide");
}
if(lconn.core.globalization.api.getCalendar()==lconn.core.globalization.config.CALENDAR.GREGORIAN){
return qud._monthsWide;
}else{
return bidiDateUtil.getDateComponent("months","wide");
}
},Z:function(_25,nls){
var _26="-";
var _27=_25.getTimezoneOffset();
if(_27<0){
_27=Math.abs(_27);
_26="+";
}
var _28=Math.floor(_27/60);
_27%=60;
if(_28<10){
_28="0"+_28;
}
if(_27<10){
_27="0"+_27;
}
_26+=_28+""+_27;
return _26;
},ZZZZ_REGEX:/\(([^\)]+)\)/,ZZZZ:function(_29,nls){
var _2a;
var qud=lconn.share0.util.date;
if(dojo.isIE){
var _2b=_29.toString().split(" ");
_2a=(_2b.length>2)?_2b[_2b.length-2]:qud.Z(_29,nls);
}else{
var r=qud.ZZZZ_REGEX.exec(_29.toString());
_2a=r?r[1]:qud.Z(_29,nls);
}
return _2a;
},YYYY:function(_2c,nls){
return _2c.getFullYear();
},EEE:function(_2d,nls,_2e){
var day=this.dt.getDay();
if(_2e>0){
day=(day+7-_2e)%7;
}
return lconn.share0.util.date.getDaysAbbr()[day];
},EEEE:function(_2f,nls,_30){
var day=_2f.getDay();
if(_30>0){
day=(day+7-_30)%7;
}
return lconn.share0.util.date.getDays()[day];
},EEee:function(_31,nls,_32){
var _33=lconn.share0.util.date.delta(_31)+(_32?_32:0);
return (_33==0)?nls.TODAY_U:(_33==1)?nls.YESTERDAY_U:lconn.share0.util.date.EEEE(_31,nls,_32);
},eeEE:function(_34,nls,_35){
var _36=lconn.share0.util.date.delta(_34)+(_35?_35:0);
return (_36==0)?nls.TODAY:(_36==1)?nls.YESTERDAY:lconn.share0.util.date.EEEE(_34,nls,_35);
},MMMM:function(_37,nls){
if(lconn.core.globalization.api.getCalendar()==lconn.core.globalization.config.CALENDAR.GREGORIAN){
return lconn.share0.util.date.getMonthsWide()[_37.getMonth()];
}else{
return lconn.share0.util.date.getMonthsWide()[bidiDateUtil.fromGregorian(_37).getMonth()];
}
},MMM:function(_38,nls){
if(lconn.core.globalization.api.getCalendar()==lconn.core.globalization.config.CALENDAR.GREGORIAN){
return lconn.share0.util.date.getMonths()[_38.getMonth()];
}else{
return lconn.share0.util.date.getMonthsWide()[bidiDateUtil.fromGregorian(_38).getMonth()];
}
},MM:function(_39,nls){
if(lconn.core.globalization.api.getCalendar()==lconn.core.globalization.config.CALENDAR.GREGORIAN){
var i=_39.getMonth()+1;
}else{
var i=bidiDateUtil.fromGregorian(_39).getMonth()+1;
}
return (i>9)?i:("0"+i);
},Mmm:function(_3a,nls){
if(lconn.core.globalization.api.getCalendar()==lconn.core.globalization.config.CALENDAR.GREGORIAN){
return nls.MONTHS_ABBR[_3a.getMonth()];
}else{
return lconn.share0.util.date.getMonths()[bidiDateUtil.fromGregorian(_3a).getMonth()];
}
},d:function(_3b,nls){
if(lconn.core.globalization.api.getCalendar()==lconn.core.globalization.config.CALENDAR.GREGORIAN){
return _3b.getDate();
}else{
return bidiDateUtil.fromGregorian(_3b).getDate();
}
},dd:function(_3c,nls){
if(lconn.core.globalization.api.getCalendar()==lconn.core.globalization.config.CALENDAR.GREGORIAN){
var i=_3c.getDate();
}else{
var i=bidiDateUtil.fromGregorian(_3c).getDate();
}
return (i>9)?i:("0"+i);
},a:function(_3d,nls){
return _3d.getHours()<12?nls.AM:nls.PM;
},HH:function(_3e,nls){
var i=_3e.getHours();
return (i>9)?i:("0"+i);
},hh:function(_3f,nls){
var _40=_3f.getHours();
if(_40>12){
_40-=12;
}else{
if(_40==0){
_40=12;
}
}
return (_40>9)?_40:("0"+_40);
},mm:function(_41,nls){
var _42=_41.getMinutes();
return (_42<10)?"0"+_42:_42;
},ss:function(_43,nls){
var _44=_43.getSeconds();
return (_44<10)?"0"+_44:_44;
},date:function(_45,nls){
if(lconn.core.globalization.api.getCalendar()==lconn.core.globalization.config.CALENDAR.GREGORIAN){
return dojo.date.locale.format(_45,{selector:"date",formatLength:"medium",locale:djConfig.locale});
}else{
return bidiDateUtil.formatBidiDate(_45,{selector:"date",formatLength:"medium",locale:djConfig.locale});
}
},date_long:function(_46,nls){
if(lconn.core.globalization.api.getCalendar()==lconn.core.globalization.config.CALENDAR.GREGORIAN){
return dojo.date.locale.format(_46,{selector:"date",formatLength:"long",locale:djConfig.locale});
}else{
return bidiDateUtil.formatBidiDate(_46,{selector:"date",formatLength:"long",locale:djConfig.locale});
}
},time:function(_47,nls){
return dojo.date.locale.format(_47,{selector:"time",formatLength:"short",locale:djConfig.locale});
},time_long:function(_48,nls){
return dojo.date.locale.format(_48,{selector:"time",formatLength:"long",locale:djConfig.locale});
}};
lconn.share0.util.DateFormat.delta=function(_49,to){
var _4a=_49.getTime();
var _4b=new Date(to.getTime());
_4b.setHours(0);
_4b.setMinutes(0);
_4b.setSeconds(0);
_4b.setMilliseconds(0);
var _4c=_4b.getTime()-_4a;
var _4d=Math.ceil(_4c/(lconn.share0.util.DateFormat.prototype.MILLS_IN_DAY));
return _4d;
};
}


;define("dojo/request/script",["module","./watch","./util","../_base/array","../_base/lang","../on","../dom","../dom-construct","../has","../_base/window"],function(_1,_2,_3,_4,_5,on,_6,_7,_8,_9){
_8.add("script-readystatechange",function(_a,_b){
var _c=_b.createElement("script");
return typeof _c["onreadystatechange"]!=="undefined"&&(typeof _a["opera"]==="undefined"||_a["opera"].toString()!=="[object Opera]");
});
var _d=_1.id.replace(/[\/\.\-]/g,"_"),_e=0,_f=_8("script-readystatechange")?"readystatechange":"load",_10=/complete|loaded/,_11=this[_d+"_callbacks"]={},_12=[];
function _13(id,url,_14){
var doc=(_14||_9.doc),_15=doc.createElement("script");
_15.type="text/javascript";
_15.src=url;
_15.id=id;
_15.async=true;
_15.charset="utf-8";
return doc.getElementsByTagName("head")[0].appendChild(_15);
};
function _16(id,_17,_18){
_7.destroy(_6.byId(id,_17));
if(_11[id]){
if(_18){
_11[id]=function(){
delete _11[id];
};
}else{
delete _11[id];
}
}
};
function _19(dfd){
var _1a=dfd.response.options,_1b=_1a.ioArgs?_1a.ioArgs.frameDoc:_1a.frameDoc;
_12.push({id:dfd.id,frameDoc:_1b});
if(_1a.ioArgs){
_1a.ioArgs.frameDoc=null;
}
_1a.frameDoc=null;
};
function _1c(dfd,_1d){
if(dfd.canDelete){
_1e._remove(dfd.id,_1d.options.frameDoc,true);
}
};
function _1f(_20){
if(_12&&_12.length){
_4.forEach(_12,function(_21){
_1e._remove(_21.id,_21.frameDoc);
_21.frameDoc=null;
});
_12=[];
}
return _20.options.jsonp?!_20.data:true;
};
function _22(_23){
return !!this.scriptLoaded;
};
function _24(_25){
var _26=_25.options.checkString;
return _26&&eval("typeof("+_26+") !== \"undefined\"");
};
function _27(_28,_29){
if(this.canDelete){
_19(this);
}
if(_29){
this.reject(_29);
}else{
this.resolve(_28);
}
};
function _1e(url,_2a,_2b){
var _2c=_3.parseArgs(url,_3.deepCopy({},_2a));
url=_2c.url;
_2a=_2c.options;
var dfd=_3.deferred(_2c,_1c,_1f,_2a.jsonp?null:(_2a.checkString?_24:_22),_27);
_5.mixin(dfd,{id:_d+(_e++),canDelete:false});
if(_2a.jsonp){
var _2d=new RegExp("[?&]"+_2a.jsonp+"=");
if(!_2d.test(url)){
url+=(~url.indexOf("?")?"&":"?")+_2a.jsonp+"="+(_2a.frameDoc?"parent.":"")+_d+"_callbacks."+dfd.id;
}
dfd.canDelete=true;
_11[dfd.id]=function(_2e){
_2c.data=_2e;
dfd.handleResponse(_2c);
};
}
if(_3.notify){
_3.notify.emit("send",_2c,dfd.promise.cancel);
}
if(!_2a.canAttach||_2a.canAttach(dfd)){
var _2f=_1e._attach(dfd.id,url,_2a.frameDoc);
if(!_2a.jsonp&&!_2a.checkString){
var _30=on(_2f,_f,function(evt){
if(evt.type==="load"||_10.test(_2f.readyState)){
_30.remove();
dfd.scriptLoaded=evt;
}
});
}
}
_2(dfd);
return _2b?dfd:dfd.promise;
};
_1e.get=_1e;
_1e._attach=_13;
_1e._remove=_16;
_1e._callbacksProperty=_d+"_callbacks";
return _1e;
});


;define("dojo/io/script",["../_base/connect","../_base/kernel","../_base/lang","../sniff","../_base/window","../_base/xhr","../dom","../dom-construct","../request/script","../aspect"],function(_1,_2,_3,_4,_5,_6,_7,_8,_9,_a){
_2.deprecated("dojo/io/script","Use dojo/request/script.","2.0");
var _b={get:function(_c){
var _d;
var _e=this._makeScriptDeferred(_c,function(_f){
_d&&_d.cancel();
});
var _10=_e.ioArgs;
_6._ioAddQueryToUrl(_10);
_6._ioNotifyStart(_e);
_d=_9.get(_10.url,{timeout:_c.timeout,jsonp:_10.jsonp,checkString:_c.checkString,ioArgs:_10,frameDoc:_c.frameDoc,canAttach:function(_11){
_10.requestId=_11.id;
_10.scriptId=_11.scriptId;
_10.canDelete=_11.canDelete;
return _b._canAttach(_10);
}},true);
_a.around(_d,"isValid",function(_12){
return function(_13){
_b._validCheck(_e);
return _12.call(this,_13);
};
});
_d.then(function(){
_e.resolve(_e);
}).otherwise(function(_14){
_e.ioArgs.error=_14;
_e.reject(_14);
});
return _e;
},attach:_9._attach,remove:_9._remove,_makeScriptDeferred:function(_15,_16){
var dfd=_6._ioSetArgs(_15,_16||this._deferredCancel,this._deferredOk,this._deferredError);
var _17=dfd.ioArgs;
_17.id=_2._scopeName+"IoScript"+(this._counter++);
_17.canDelete=false;
_17.jsonp=_15.callbackParamName||_15.jsonp;
if(_17.jsonp){
_17.query=_17.query||"";
if(_17.query.length>0){
_17.query+="&";
}
_17.query+=_17.jsonp+"="+(_15.frameDoc?"parent.":"")+_2._scopeName+".io.script.jsonp_"+_17.id+"._jsonpCallback";
_17.frameDoc=_15.frameDoc;
_17.canDelete=true;
dfd._jsonpCallback=this._jsonpCallback;
this["jsonp_"+_17.id]=dfd;
}
dfd.addBoth(function(_18){
if(_17.canDelete){
if(_18 instanceof Error){
_b["jsonp_"+_17.id]._jsonpCallback=function(){
delete _b["jsonp_"+_17.id];
if(_17.requestId){
_2.global[_9._callbacksProperty][_17.requestId]();
}
};
}else{
_b._addDeadScript(_17);
}
}
});
return dfd;
},_deferredCancel:function(dfd){
dfd.canceled=true;
},_deferredOk:function(dfd){
var _19=dfd.ioArgs;
return _19.json||_19.scriptLoaded||_19;
},_deferredError:function(_1a,dfd){
console.log("dojo.io.script error",_1a);
return _1a;
},_deadScripts:[],_counter:1,_addDeadScript:function(_1b){
_b._deadScripts.push({id:_1b.id,frameDoc:_1b.frameDoc});
_1b.frameDoc=null;
},_validCheck:function(dfd){
var _1c=_b._deadScripts;
if(_1c&&_1c.length>0){
for(var i=0;i<_1c.length;i++){
_b.remove(_1c[i].id,_1c[i].frameDoc);
delete _b["jsonp_"+_1c[i].id];
_1c[i].frameDoc=null;
}
_b._deadScripts=[];
}
return true;
},_ioCheck:function(dfd){
var _1d=dfd.ioArgs;
if(_1d.json||(_1d.scriptLoaded&&!_1d.args.checkString)){
return true;
}
var _1e=_1d.args.checkString;
return _1e&&eval("typeof("+_1e+") != 'undefined'");
},_resHandle:function(dfd){
if(_b._ioCheck(dfd)){
dfd.callback(dfd);
}else{
dfd.errback(new Error("inconceivable dojo.io.script._resHandle error"));
}
},_canAttach:function(){
return true;
},_jsonpCallback:function(_1f){
this.ioArgs.json=_1f;
if(this.ioArgs.requestId){
_2.global[_9._callbacksProperty][this.ioArgs.requestId](_1f);
}
}};
_3.setObject("dojo.io.script",_b);
return _b;
});


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


lconn.share0.util.html={comparePosition:function(a,b){
return a.compareDocumentPosition?a.compareDocumentPosition(b):a.contains?(a!=b&&a.contains(b)&&16)+(a!=b&&b.contains(a)&&8)+(a.sourceIndex>=0&&b.sourceIndex>=0?(a.sourceIndex<b.sourceIndex&&4)+(a.sourceIndex>b.sourceIndex&&2):1)+0:0;
},getElementsByTagNames:function(_1,_2){
_2=_2||document;
var _3=_1.split(","),_4=[];
for(var i=0;i<_3.length;i++){
var _5=_2.getElementsByTagName(_3[i]);
for(var j=0;j<_5.length;j++){
_4.push(_5[j]);
}
}
return _4.sort(function(a,b){
return 3-(lconn.share0.util.html.comparePosition(a,b)&6);
});
},destroy:function(_6,d){
if(!d||!_6){
return;
}
var _7=_6.split(",");
for(var i=0;i<_7.length;i++){
var _8=d.getElementById(_7[i]);
if(_8){
lconn.share0.util.html.removeChildren(_8);
dojo.destroy(_8);
}
}
},getDirectionCode:function(){
return dojo._isBodyLtr()?"":"\u200f";
},destroyWidgets:function(el){
if(!el){
return;
}
dojo.forEach(dijit.findWidgets(el),function(_9){
if(_9&&!_9._destroyed){
if(_9.destroyRecursive){
_9.destroyRecursive();
}else{
if(_9.destroy){
_9.destroy();
}
}
}
});
},removeChildren:function(el){
if(!el){
return;
}
lconn.share0.util.html.destroyWidgets(el);
while(el.firstChild){
el.removeChild(el.firstChild);
}
},isEvent:function(e){
return (e&&(typeof e.target!="undefined"||typeof e.bubbles!="undefined"));
},append:function(el,_a){
var d=document;
if(dojo.isArray(_a)){
for(var i=0;i<_a.length;i++){
var c=_a[i];
el.appendChild((typeof c=="string")?d.createTextNode(c):c);
}
}else{
el.appendChild((typeof _a=="string")?d.createTextNode(_a):_a);
}
},createTable:function(d,_b){
var _c=d.createElement("table");
_c.cellPadding=_c.cellSpacing=0;
var _d=d.createElement("tbody");
var tr=d.createElement("tr");
var td=d.createElement("td");
if(_b){
td.appendChild(_b);
}
tr.appendChild(td);
_d.appendChild(tr);
_c.appendChild(_d);
return _c;
},countCells:function(tr){
var td=tr.firstChild;
var c=0;
while(td){
if(td.nodeName.toUpperCase()=="TD"){
c+=(dojo.attr(td,"colSpan")||1);
}
td=td.nextSibling;
}
return c;
},formatFilename:function(s){
if(dojo._isBodyLtr()){
return lconn.share0.util.html.encodeSpaces(s);
}
return "\u202a"+lconn.share0.util.html.encodeSpaces(s)+"\u202c";
},breakString:function(s,d,el,_e){
if(!s){
return;
}
_e=_e||10;
var b=new RegExp("[^\\s]{"+(_e+1)+"}","g");
var r;
var _f=0,end;
if(dojo.isIE||dojo.isWebKit){
while(r=b.exec(s)){
end=--b.lastIndex;
el.appendChild(d.createTextNode(s.substring(_f,end)));
el.appendChild(d.createElement("wbr"));
_f=end;
}
}else{
while(r=b.exec(s)){
end=--b.lastIndex;
el.appendChild(d.createTextNode(s.substring(_f,end)+"\u200b"));
_f=end;
}
}
el.appendChild(d.createTextNode(s.substring(end)));
},breakWordString:function(s,d,el){
if(!s){
return;
}
el.appendChild(d.createTextNode(s));
dojo.addClass(el,"lotusBreakWord");
},encodeHtmlAttribute:function(s){
return lconn.share0.util.html.encodeHtml(s).replace(/\"/g,"&quot;");
},encodeHtml:function(s){
if(!s){
return "";
}
var e=lconn.share0.util.html._encoder;
if(!e){
e=lconn.share0.util.html._encoder=dojo.doc.createElement("div");
}
e.innerHTML="";
e.appendChild(dojo.doc.createTextNode(s));
return e.innerHTML;
},getFrameDocument:function(_10){
var _11;
if(_10){
try{
if(dojo.isIE||dojo.isSafari>2||dojo.isWebKit){
_11=_10.contentWindow.document;
}else{
if(dojo.isSafari){
_11=_10.document;
}else{
_11=_10.contentWindow.document;
}
}
}
catch(e){
}
}
return _11;
},UNICODE_SPACE:/[\s\u3000]/g,encodeSpaces:function(s){
if(!s){
return s;
}
return s.replace(lconn.share0.util.html.UNICODE_SPACE,"\xa0");
},htmlText:function(el){
if(!el){
return null;
}
var a=[];
for(var j=0;c=el.childNodes[j];j++){
if(c.nodeType==3){
a.push(c.nodeValue);
}
}
return a.length>0?a.join(""):null;
},SUBSTITUTION:/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,substitute:function(d,el,_12,map,_13,_14){
var re=lconn.share0.util.html.SUBSTITUTION;
var _15=0;
while(r=re.exec(_12)){
el.appendChild(d.createTextNode(_12.substring(_15,r.index)));
_15=r.index+r[0].length;
var key=r[1];
var _16=r[2];
var _17=dojo.getObject(key,false,map);
if(typeof _17=="function"){
_17=_17.apply(_14||map,[key,_16]);
}
if(_16){
_17=dojo.getObject(_16,false,_14)(_17);
}
if(_13){
_17=_13(_17,key);
}
if(typeof _17!="undefined"&&_17!=null){
if(_17.nodeType>0){
el.appendChild(_17);
}else{
el.appendChild(d.createTextNode(_17.toString()));
}
}
}
el.appendChild(d.createTextNode(_12.substring(_15)));
return el;
},createWrappableText:function(d,el,_18,_19){
_18=_18||"";
_19=_19||1;
if(_18.length<=_19){
el.appendChild(d.createTextNode(_18));
}else{
var _1a=false;
var _1b=dojo.isSafari;
var ff2=dojo.isFF&&Math.floor(dojo.isFF)==2;
for(var i=0;i<_18.length;i+=1){
var c=_18.substring(i,i+1);
var _1a=c=="-";
if(i!=0&&!_1c&&!_1a){
if(ff2||_1b){
el.appendChild(d.createElement("wbr"));
}else{
el.appendChild(d.createTextNode("\xad"));
}
}
var _1c=_1a;
el.appendChild(d.createTextNode(c));
}
}
},EMBEDDED_URL_PATTERN:/(^|[\s])(([a-zA-Z]+:\/\/|www\.|mailto:)[^\s]+)/i,URL_PUNCTUATION_BACKTRACK:/[\.,\!\-;\:\'\"]+$/,createTextNode:function(d,el,_1d,_1e){
if(!_1d){
return;
}
_1d=dojo.trim(_1d);
if(_1d.length>0){
var _1f=_1d.split("\n");
dojo.forEach(_1f,function(_20){
var _21,_22;
while(_21=lconn.share0.util.html.EMBEDDED_URL_PATTERN.exec(_20)){
var _23=_20.substring(0,_21.index)+_21[1];
var _24=_21[2];
if(_22=lconn.share0.util.html.URL_PUNCTUATION_BACKTRACK.exec(_24)){
_24=_24.substring(0,_22.index);
}
_20=_20.substring(_23.length+_24.length);
var _25=(_21[3]&&_21[3].toLowerCase()=="www.");
var _26=(_21[3]&&_21[3].toLowerCase()=="mailto:");
var _27=_25?"http://"+_24:_24;
if(_26){
_24=_24.substring(7);
}
if(_23.length>0){
el.appendChild(d.createTextNode(_23));
}
var a=d.createElement("a");
a.href=_27;
a.appendChild(d.createTextNode(_24));
el.appendChild(a);
}
if(_20.length>0){
el.appendChild(d.createTextNode(_20));
}
el.appendChild(!_1e?d.createElement("br"):d.createTextNode(" "));
});
}
},generateiWidgetEnablerCodeIfRequired:function(_28,doc){
if(_28.indexOf("mm_iWidget")>-1){
console.log("update generateiWidgetEnablerCodeIfRequired for MM1.1");
}
return null;
},evalScriptTag:function(tag){
if(tag.src){
var h=document.getElementsByTagName("head")[0];
var _29=document.createElement("SCRIPT");
_29.src=tag.src;
h.appendChild(_29);
}else{
if(tag.text&&tag.text.length>0){
if(window.execScript){
window.execScript(tag.text);
}else{
if(dojo.isWebKit){
window.setTimeout(tag.text,0);
}else{
eval.call(window,tag.text);
}
}
}
}
},xhtmlToHtml:function(d,_2a,_2b,_2c,ids){
lconn.core.util.html.xhtmlToHtml(d,_2a,_2b,_2c,ids);
},alert:function(msg){
alert(msg);
},confirm:function(msg,_2d,_2e){
lconn.core.util.html.confirm(msg,_2d,_2e);
},createElement:function(d,_2f,_30,_31){
var el=d.createElement(_2f);
if(_30){
el.appendChild(_30);
}
return el;
},checkFeedSubscription:function(msg,url,e){
lconn.core.util.html.checkFeedSubscription(msg,url,e);
}};
}

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

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






dojo.declare("lconn.core0.PeopleTypeAhead",[lconn.core.PeopleTypeAhead],{});
dojo.declare("lconn.core0.PeopleTypeAheadMenu",[lconn.core.PeopleTypeAheadMenu],{});
lconn.core0.PeopleTypeAhead.getUserTypeAheadArguments=function(_1,_2){
var _3={isGroup:false,isCommunity:false,nameAttr:"name",minChars:2,searchDelay:400,pageSize:25,multipleValues:false,store:_1,noUpdateOnSelect:true,"class":""};
if(_2){
dojo.mixin(_3,_2);
}
return _3;
};
}


;if(!dojo._hasResource["lconn.share0.widget.QuickTips"]){
dojo._hasResource["lconn.share0.widget.QuickTips"]=true;
dojo.provide("lconn.share0.widget.QuickTips");












dojo.declare("lconn.share0.widget.QuickTips",[dijit._Widget],{url:(dojo.getObject("lconn.share0.config.baseUri")||"/")+"tips.xml",tips:null,_strings:{},strings:null,prefs:null,firstTip:null,newestTip:-1,allowHide:false,postMixInProperties:function(){
this._strings=this.strings||this._strings;
if(this.prefs){
this.hidden=this.hidden||this.prefs.get("ntp");
}
if(!this.hidden){
this.load();
}
},buildRendering:function(){
var d=document;
var el=this.domNode=this.srcNodeRef;
if(this.baseClass){
dojo.addClass(el,this.baseClass);
}
this.update();
},load:function(){
this.net.getXml({url:this.url,timeout:(dojo.getObject("lconn.share0.config.services.timeout.request")||10)*1000,handle:dojo.hitch(this,this.handleLoad)});
},handleLoad:function(_1,_2){
if(_1 instanceof Error||!_1||!_1.documentElement){
this.tips=[];
this.update();
}else{
var _3=_1.documentElement.getElementsByTagName("entry");
this.tips=[];
for(var i=0,e;e=_3[i];i++){
var t={id:lconn.share0.util.text.parseInt(lconn.share0.util.dom.getChildElementTextContent(e,"id"),0),published:lconn.share0.util.misc.date.convertAtomDate(lconn.share0.util.dom.getChildElementTextContent(e,"published")),e:e};
this.tips.push(t);
}
if(this.tips.length>0){
lconn.share0.util.misc.sort(this.tips,["id",-1]);
var _4=this.tips.length-1;
var _5=this.prefs?this.prefs.get("tip"):null;
var _6=this.prefs?this.prefs.get("ttp"):null;
if(_6&&_6!=this.tips[0].id){
for(var i=0;i<this.tips.length;i++){
if(this.tips[i].id==_6){
_4=Math.max(0,i-1);
break;
}
}
}else{
if(_5){
for(var i=0;i<this.tips.length;i++){
if(this.tips[i].id==_5){
_4=i;
break;
}
}
}
}
this.setActiveIndex(_4);
}else{
this.setActiveIndex(-1);
}
this.update();
}
},newer:function(){
if(!this.tips){
return;
}
var _7=this.getActiveIndex();
if(_7>0){
this.setActiveIndex(_7-1);
this.update();
}
},older:function(){
if(!this.tips){
return;
}
var _8=this.getActiveIndex();
if(_8<0){
this.setActiveIndex(1);
this.update();
}else{
if(_8<(this.tips.length-1)){
this.setActiveIndex(_8+1);
this.update();
}
}
},getActiveIndex:function(){
return this.activeIndex;
},setActiveIndex:function(_9){
this.activeIndex=_9;
if(this.prefs){
var _a=this.tips[_9];
this.prefs.put("tip",_a?_a.id:null);
this.prefs.put("ttp",this.tips[0].id);
}
},setActiveTip:function(_b){
var _b=_b.id;
this.activeTip=_b;
if(this.prefs){
this.prefs.put("tip",_b);
}
},update:function(){
var d=document;
var el=this.domNode;
if(this.hidden){
while(el.firstChild){
el.removeChild(el.firstChild);
}
}else{
if(this.tips&&this.tips.length>0){
while(el.firstChild){
el.removeChild(el.firstChild);
}
var _c=this.tips.length;
var _d=this.getActiveIndex();
var t=this.tips[_d];
var e=lconn.share0.util.dom.getElementByLanguage(t.e.getElementsByTagName("title"),djConfig.locale||"en");
var _e=lconn.share0.util.text.trim(lconn.share0.util.dom.xmlText(e));
if(_e.length>0){
var h3=d.createElement("h3");
h3.appendChild(d.createTextNode(_e));
el.appendChild(h3);
}
var _f=dojo.filter(t.e.getElementsByTagName("content"),function(e){
return e.getAttribute("type")=="text/xhtml";
});
var _10=lconn.share0.util.dom.getElementByLanguage(_f,djConfig.locale||"en");
lconn.share0.util.html.xhtmlToHtml(d,_10,el,true);
if(_c>1){
var div=d.createElement("p");
div.className="lotusTiny";
if(this.allowHide){
var a=d.createElement("a");
a.className="lotusRight";
a.href="javascript:;";
dojo.connect(a,"onclick",this,"hide");
a.appendChild(d.createTextNode(this._strings.HIDE_TIPS));
div.appendChild(a);
}
var ul=d.createElement("ul");
ul.className="lotusInlinelist";
dijit.setWaiRole(ul,"presentation");
if(_d>0){
var li=d.createElement("li");
li.className="lotusFirst";
var a=d.createElement("a");
a.href="javascript:;";
dojo.connect(a,"onclick",this,"newer");
a.appendChild(d.createTextNode(this._strings.NEWER));
li.appendChild(a);
ul.appendChild(li);
}
if(_d<(_c-1)){
var li=d.createElement("li");
li.className=(!ul.firstChild)?"lotusFirst":"";
var a=d.createElement("a");
a.href="javascript:;";
dojo.connect(a,"onclick",this,"older");
a.appendChild(d.createTextNode(this._strings.OLDER));
li.appendChild(a);
ul.appendChild(li);
}
div.appendChild(ul);
el.appendChild(div);
}
}else{
if(!this._empty){
while(el.firstChild){
el.removeChild(el.firstChild);
}
var h3=d.createElement("h3");
h3.appendChild(d.createTextNode(this._strings.H));
el.appendChild(h3);
var p=d.createElement("p");
p.appendChild(d.createTextNode(this._strings.P1));
el.appendChild(p);
var p=d.createElement("p");
p.appendChild(d.createTextNode(this._strings.P2));
el.appendChild(p);
}
this._empty=true;
}
}
}});
}


;if(!dojo._hasResource["lconn.share0.widget.Dialog"]){
dojo._hasResource["lconn.share0.widget.Dialog"]=true;
dojo.provide("lconn.share0.widget.Dialog");


dojo.declare("lconn.share0.widget.Dialog",[dijit.Dialog],{initialFocusNode:null,_IE6FixTags:"object, embed, select",show:function(){
var _1=this.autofocus;
this.autofocus=false;
this.inherited(arguments);
this.autofocus=_1;
if(this.autofocus){
this._getFocusItems(this.domNode);
setTimeout(dojo.hitch(dijit,"focus",this.initialFocusNode||this._firstFocusItem),50);
}
},onShow:function(){
if(dojo.isIE<=6){
dojo.forEach(dojo.query(this._IE6FixTags,dojo.byId("lotusFrame")),this._hideControl);
}
this.inherited(arguments);
},onHide:function(){
this.inherited(arguments);
if(dojo.isIE<=6){
dojo.forEach(dojo.query(this._IE6FixTags,dojo.byId("lotusFrame")),this._showControl);
}
},_hideControl:function(_2){
dojo.style(_2,"visibility","hidden");
},_showControl:function(_3){
dojo.style(_3,"visibility","");
},onOpen:function(_4){
this.orient(this.domNode,_4.aroundCorner,_4.corner);
this._loadCheck();
if(this.autofocus){
this._getFocusItems(this.containerNode);
dijit.focus(this.initialFocusNode||this._firstFocusItem);
}
},_setup:function(){
this.inherited(arguments);
if(this.zIndex>0){
var _5=dijit._underlay;
if(!_5){
_5=dijit._underlay=new dijit.DialogUnderlay(this.underlayAttrs);
}else{
_5.attr(this.underlayAttrs);
}
_5.domNode.style.zIndex=this.zIndex;
this.domNode.style.zIndex=this.zIndex+1;
}
if(this._moveable){
var _6=this._moveable.onMoving;
this._moveable.onMoving=function(_7,_8){
_8.l=Math.max(_8.l,_7.marginBox.l+5);
_8.t=Math.max(_8.t,_7.marginBox.t+5);
if(_6){
return _6.apply(this,arguments);
}
};
}
},_size:function(){
},_position:function(){
var _9=dijit.getViewport();
var mb=dojo.marginBox(this.domNode);
if(this._compact){
this._compact(_9,mb);
mb=dojo.marginBox(this.domNode);
}
if(!dojo.hasClass(dojo.body(),"dojoMove")){
var p=this._relativePosition;
var _a=Math.floor(_9.l+(p?p.l:(_9.w-mb.w)/2));
var _b=Math.floor(_9.t+(p?p.t:(_9.h-mb.h)/2));
if(!p){
_a=Math.max(_a,0);
_b=Math.max(_b,0);
}
dojo.style(this.domNode,{left:_a+"px",top:_b+"px"});
}
},_compact:function(_c,md){
var el=dojo.query("div.lotusDialogContent",this.domNode)[0];
if(el){
var _d;
if(!dojo.hasClass(el,"_qkrDialogCompact")){
_d=document.createElement("div");
el.parentNode.insertBefore(_d,el);
el.parentNode.removeChild(el);
_d.appendChild(el);
dojo.addClass(el,"_qkrDialogCompact");
}else{
_d=el.parentNode;
}
var ms=dojo.marginBox(_d);
var mc=dojo.marginBox(el);
if(ms.h==0||md.h==0){
return;
}
var _e=md.h-ms.h;
var _f=false;
if((_e+mc.h)>_c.h){
_f=true;
}
var _10=dojo.query("div.lotusDialogBorder",this.domNode)[0];
if(_10&&el.firstChild){
var _11=dojo.marginBox(_10).w;
var _12=this.savedBorderPadding;
if(!_12){
this.savedBorderPadding=_12=Math.min(20,_11-dojo.marginBox(_d).w);
}
var _13=this.savedContentPadding;
if(!_13){
this.savedContentPadding=_13=_11-_12-dojo.contentBox(el).w;
}
var _14=0;
var _15=0;
while(!_15&&el.childNodes[_14]){
_15=Math.max(_15,dojo.marginBox(el.childNodes[_14++]).w);
}
if(_11==0||_15==0){
return;
}
var _16=_15+_13+_12;
if(_f&&dojo.isIE&&dojo.isIE<7){
_12+=16;
}
if(_f){
var _17=Math.max(_c.h,185);
dojo.addClass(_d,"qkrDialogScrolledY");
dojo.marginBox(_d,{h:_17-_e});
dojo.marginBox(this.domNode,{h:_17});
}else{
dojo.removeClass(_d,"qkrDialogScrolledY");
_d.style.height="";
this.domNode.style.height="";
}
if(_11<_16||(dojo.isIE&&dojo.isIE<7)){
dojo.marginBox(_d,{w:_16-_12});
dojo.marginBox(_10,{w:_16});
dojo.marginBox(this.domNode,{w:_16});
}
}
}
}});
}


;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;
});


;define("dojo/text!dijit/templates/ProgressBar.html", '<div class="dijitProgressBar dijitProgressBarEmpty" role="progressbar"\n	><div  data-dojo-attach-point="internalProgress" class="dijitProgressBarFull"\n		><div class="dijitProgressBarTile" role="presentation"></div\n		><span style="visibility:hidden">&#160;</span\n	></div\n	><div data-dojo-attach-point="labelNode" class="dijitProgressBarLabel" id="${id}_label"></div\n	><span data-dojo-attach-point="indeterminateHighContrastImage"\n		   class="dijitInline dijitProgressBarIndeterminateHighContrastImage"></span\n></div>\n');

;define("dijit/ProgressBar",["require","dojo/_base/declare","dojo/dom-class","dojo/_base/lang","dojo/number","./_Widget","./_TemplatedMixin","dojo/text!./templates/ProgressBar.html"],function(_1,_2,_3,_4,_5,_6,_7,_8){
return _2("dijit.ProgressBar",[_6,_7],{progress:"0",value:"",maximum:100,places:0,indeterminate:false,label:"",name:"",templateString:_8,_indeterminateHighContrastImagePath:_1.toUrl("dijit/themes/a11y/indeterminate_progress.gif?etag=Zq7dRMc"),postMixInProperties:function(){
this.inherited(arguments);
if(!(this.params&&"value" in this.params)){
this.value=this.indeterminate?Infinity:this.progress;
}
},buildRendering:function(){
this.inherited(arguments);
this.indeterminateHighContrastImage.setAttribute("src",this._indeterminateHighContrastImagePath.toString());
this.update();
},_setDirAttr:function(_9){
_3.toggle(this.domNode,"dijitProgressBarRtl",_9=="rtl");
this.inherited(arguments);
},update:function(_a){
_4.mixin(this,_a||{});
var _b=this.internalProgress,ap=this.domNode;
var _c=1;
if(this.indeterminate){
ap.removeAttribute("aria-valuenow");
}else{
if(String(this.progress).indexOf("%")!=-1){
_c=Math.min(parseFloat(this.progress)/100,1);
this.progress=_c*this.maximum;
}else{
this.progress=Math.min(this.progress,this.maximum);
_c=this.maximum?this.progress/this.maximum:0;
}
ap.setAttribute("aria-valuenow",this.progress);
}
ap.setAttribute("aria-labelledby",this.labelNode.id);
ap.setAttribute("aria-valuemin",0);
ap.setAttribute("aria-valuemax",this.maximum);
this.labelNode.innerHTML=this.report(_c);
_3.toggle(this.domNode,"dijitProgressBarIndeterminate",this.indeterminate);
_b.style.width=(_c*100)+"%";
this.onChange();
},_setValueAttr:function(v){
this._set("value",v);
if(v==Infinity){
this.update({indeterminate:true});
}else{
this.update({indeterminate:false,progress:v});
}
},_setLabelAttr:function(_d){
this._set("label",_d);
this.update();
},_setIndeterminateAttr:function(_e){
this._set("indeterminate",_e);
this.update();
},report:function(_f){
return this.label?this.label:(this.indeterminate?"&#160;":_5.format(_f,{type:"percent",places:this.places,locale:this.lang}));
},onChange:function(){
}});
});


;if(!dojo._hasResource["lconn.share0.widget.ProgressBar"]){
dojo._hasResource["lconn.share0.widget.ProgressBar"]=true;
dojo.provide("lconn.share0.widget.ProgressBar");


dojo.declare("lconn.share0.widget.ProgressBar",dijit.ProgressBar,{postCreate:function(){
this.inherited(arguments);
this.indeterminateHighContrastImage.setAttribute("alt","");
}});
}


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




lconn.share0.actions={createCancelButton:function(d,_1,_2){
var a=d.createElement("a");
a.title=_1;
a.className=(_2&&_2.className)?_2.className:"lotusDialogClose";
a.href="javascript:;";
dijit.setWaiRole(a,"button");
var _3=d.createElement("img");
_3.src=dijit._Widget.prototype._blankGif;
_3.setAttribute("alt",_1);
dijit.setWaiRole(_3,"presentation");
a.appendChild(_3);
var _4=d.createElement("span");
_4.className="lotusAltText";
_4.appendChild(d.createTextNode("X"));
a.appendChild(_4);
return a;
},createProgressNode:function(d,_5){
var _6=d.createElement("span");
_6.style.display="none";
_6.className="lotusRight qkrStatus";
var _7=d.createElement("img");
_7.className="lotusLoading";
_7.src=dijit._Widget.prototype._blankGif;
_7.setAttribute("alt",_5.LOADING||"");
_6.appendChild(_7);
_6.appendChild(d.createTextNode(_5.BUSY));
return _6;
},createProgressBarNode:function(d,_8){
var _9=_8.progressNode=d.createElement("div");
_9.style.display="none";
_9.className="lotusLeft lconnDijit tundra";
var _a=d.createElement("div");
_9.appendChild(_a);
var _b=_8.progress=new lconn.share0.widget.ProgressBar({},_a);
var _c=_b.domNode.style;
_c.width="175px";
_c.overflow="hidden";
var _d=_b.indeterminateHighContrastImage;
if(_d){
_d.alt="";
}
return _9;
},createInvisibleLabel:function(d,_e,_f,id){
var _10=d.createElement("label");
_10.appendChild(d.createTextNode(_f));
_10.className=id?"lotusHidden":"lotusOffScreen";
if(id){
_10.setAttribute("id",id);
}
_e.appendChild(_10);
return _10;
},surroundWithInvisibleLabels:function(d,_11,_12,_13){
var _14=d.createElement("label");
_14.appendChild(d.createTextNode(_12));
_14.className="lotusOffScreen";
_11.parentNode.insertBefore(_14,_11);
_14=d.createElement("label");
_14.appendChild(d.createTextNode(_13));
_14.className="lotusOffScreen";
var _15=_11.nextSibling;
while(_15!=null&&_15.parentNode==_11.parentNode&&_15.nodeType!=1){
_15=_15.nextSibling;
}
(_15&&(_15.parentNode))==_11.parentNode?_11.parentNode.insertBefore(_14,_15):_11.parentNode.appendChild(_14);
},handleFocusCookie:function(){
var _16=dojo.cookie("focusCookie");
if(_16){
dojo.cookie("focusCookie",null,{expires:-1,path:"/"});
var _17=dojo.byId(_16);
if(_17){
dijit.focus(_17);
}
}
},createFocusCookie:function(_18){
var _19=function(e){
if(e&&e.target&&e.target.id){
dojo.cookie("focusCookie",e.target.id,{expires:1,path:"/"});
}
};
return dojo.connect(_18,"onclick",this,_19);
}};
}


;dojo.cache("lconn.share0", "widget/templates/Stream.html", "<div class=\"${baseClass}\"> <div class=\"lotusPaging\" dojoAttachPoint=\"topPageNode\" style=\"${_initPageStyle}\"> <div class=\"lotusLeft\" style=\"display:none;\" dojoAttachPoint=\"pageInfoNode\"></div> <ul class=\"lotusRight lotusInlinelist\" dojoAttachPoint=\"topPageNavigateNode\" style=\"display:none;\"> <li dojoAttachPoint=\"tPreviousLinkNode\" class=\"lotusFirst\"><a href=\"#\" dojoAttachEvent=\"onclick:previous\">${_strings.PREVIOUS}</a></li> <li dojoAttachPoint=\"tPreviousTextNode\" class=\"lotusFirst\">${_strings.PREVIOUS}</li> <li dojoAttachPoint=\"tNextLinkNode\"><a href=\"#\" dojoAttachEvent=\"onclick:next\">${_strings.NEXT}</a></li> <li dojoAttachPoint=\"tNextTextNode\">${_strings.NEXT}</li> </ul> <ul class=\"lotusInlinelist\" style=\"display:none\" dojoAttachPoint=\"pageListNode\">${_strings.PAGE}</ul> </div> <div dojoAttachPoint=\"streamNode\"></div> <div class=\"lotusPaging\" dojoAttachPoint=\"bottomPageNode\" style=\"${_initPageStyle}\"> <label class=\"lotusLeft lotusFirst qkrPagingShow\" dojoAttachPoint=\"pageShowNode\" style=\"display: none;\">${_strings.SHOW}</label> <ul class=\"lotusLeft lotusInlinelist qkrInline\" dojoAttachPoint=\"pageSizeListNode\" style=\"display: none;\"> <li class=\"lotusFirst\"><a href=\"#\" id=\"s10L\" role=\"button\" aria-label=\"${_a11yStrings.STREAMS.SHOW10}\">10</a></li> <li class=\"lotusFirst\" style=\"display: none;\" id=\"s10\">10</li> <li><a href=\"#\" id=\"s25L\" role=\"button\" aria-label=\"${_a11yStrings.STREAMS.SHOW25}\">25</a></li> <li style=\"display: none;\" id=\"s25\">25</li> <li><a href=\"#\" id=\"s50L\" role=\"button\" aria-label=\"${_a11yStrings.STREAMS.SHOW50}\">50</a></li> <li style=\"display: none;\" id=\"s50\">50</li> <li role=\"presentation\" aria-hidden=\"true\" class=\"lotusLast\">${_strings.ITEMS_PER_PAGE}</li> </ul> <ul class=\"lotusRight lotusInlinelist\" dojoAttachPoint=\"bottomPageNavigateNode\" style=\"display: none;\"> <li dojoAttachPoint=\"bPreviousLinkNode\" class=\"lotusFirst\"><a href=\"#\" dojoAttachEvent=\"onclick:previous\">${_strings.PREVIOUS}</a></li> <li dojoAttachPoint=\"bPreviousTextNode\" class=\"lotusFirst\">${_strings.PREVIOUS}</li> <li dojoAttachPoint=\"bNextLinkNode\"><a href=\"#\" dojoAttachEvent=\"onclick:next\">${_strings.NEXT}</a></li> <li dojoAttachPoint=\"bNextTextNode\">${_strings.NEXT}</li> </ul> <div style=\"display:none;\" dojoAttachPoint=\"jumpPageNode\"></div> </div> </div>");

;if(!dojo._hasResource["lconn.share0.widget.Stream"]){
dojo._hasResource["lconn.share0.widget.Stream"]=true;
dojo.provide("lconn.share0.widget.Stream");
















dojo.declare("lconn.share0.widget.StreamPaging",null,{checkForMore:false,constructor:function(_1){
dojo.mixin(this,_1);
},detect:function(_2,_3,_4){
var _5,p,_6=-1,_7=0;
if(_2){
_5=lconn.share0.util.uri.parseUri(_2);
p=_5.queryParameters;
if(p.page){
_6=lconn.share0.util.text.parseInt(p.ps,10);
_7=(lconn.share0.util.text.parseInt(p.page,1)-1)*_6;
}else{
if(p.sI){
_6=lconn.share0.util.text.parseInt(p.ps,-1);
_7=lconn.share0.util.text.parseInt(p.sI,1)-1;
}else{
_6=lconn.share0.util.text.parseInt(p.ps,-1);
}
}
}
var _8,_9,_a,_b;
if(_4=="json"){
_8=(_3.items)?_3.items.length:0;
_9=-1;
if(typeof _3.totalItems=="number"){
_9=_3.totalItems;
}else{
if(typeof _3.totalSize=="number"){
_9=_3.totalSize;
}
}
_a=_3.previousUrl;
_b=_3.nextUrl;
}else{
_8=lconn.share0.util.dom.getElementsByTagName(_3,"entry").length;
_9=lconn.share0.util.text.parseInt(lconn.share0.util.dom.getChildElementTextContentNS(_3,"totalResults",lconn.share0.util.dom.OPENSEARCH_NAMESPACE),-1);
_a=lconn.share0.util.dom.getChildElementAttributeMatching(_3,"link","rel","prev","href");
_b=lconn.share0.util.dom.getChildElementAttributeMatching(_3,"link","rel","next","href");
}
this.items=_8;
if(_3){
if(_9!=-1){
this.mode="index";
this.total=(_7==0&&_8<_6)?_8:_9;
this.startIndex=_7;
this.uri=_5;
}else{
if(_7==0){
this.mode="index";
this.total=(_8<_6)?_8:-1;
this.startIndex=0;
this.uri=_5;
}
}
if(!this.mode){
if(_a||_b){
this.mode="url";
this.next=_b;
this.previous=_a;
this.startIndex=-1;
this.total=-1;
}else{
this.mode="index";
this.total=(_8<_6)?(_7+_8):-1;
this.startIndex=_7;
this.uri=_5;
}
}
if(!this.mode){
this.mode="unpaged";
this.startIndex=0;
this.total=-1;
}
this.hasMore=(this.total!=-1&&(this.startIndex+_8)<this.total)||this.next||(this.total==-1&&_8==_6);
this.pastEnd=(_8==0&&(this.total>0||this.startIndex>0));
if(_6==-1){
_6=_8;
}else{
if(this.checkForMore&&_6>0){
_6=_6-1;
}
}
this.size=_6;
}else{
if(_6!=-1){
if(this.checkForMore){
_6=_6-1;
}
this.mode="index";
this.startIndex=_7;
this.size=_6;
this.parameters=p;
}else{
this.mode="unpaged";
this.startIndex=0;
this.size=-1;
}
this.total=-1;
this.visible=0;
}
},getPageUrl:function(_c,_d){
if(_c<1){
return null;
}
if(this.mode=="index"){
var _e=this.uri.queryParameters;
var p=dojo.clone(_e);
if(typeof _c!="undefined"){
p.sI=this.size*(_c-1)+1;
if(p.page){
p.page=_c;
}
}
if(typeof _d!="undefined"){
p.ps=_d+(this.checkForMore?1:0);
}
this.uri.queryParameters=p;
var _f=lconn.share0.util.uri.writeUri(this.uri);
this.uri.queryParameters=_e;
return _f;
}
return null;
},getNextUrl:function(){
if(this.mode=="url"){
return this.next;
}
if(this.mode=="index"){
var _10=this.uri.queryParameters;
var p=dojo.clone(_10);
p.sI=this.startIndex+this.size+1;
delete p.page;
this.uri.queryParameters=p;
var url=lconn.share0.util.uri.writeUri(this.uri);
this.uri.queryParameters=_10;
return url;
}
return null;
},getNextPage:function(){
if(this.mode=="index"){
var _11=Math.floor(this.startIndex/this.size)+1;
return _11+1;
}
return -1;
},getPreviousUrl:function(){
if(this.mode=="url"){
return this.next;
}
if(this.mode=="index"){
var _12=this.uri.queryParameters;
var p=dojo.clone(_12);
if(this.startIndex<1){
return null;
}
p.sI=Math.max(this.startIndex-this.size+1,1);
delete p.page;
this.uri.queryParameters=p;
var url=lconn.share0.util.uri.writeUri(this.uri);
this.uri.queryParameters=_12;
return url;
}
return null;
},getPreviousPage:function(){
if(this.mode=="index"){
var _13=Math.floor(this.startIndex/this.size)+1;
return (_13>1)?_13-1:-1;
}
return -1;
},getLastPageUrl:function(){
if(this.mode=="url"){
return this.previous;
}
if(this.mode=="index"){
var _14;
if(this.total!=-1){
var _15=this.getLastPage();
_14=(_15-1)*this.size;
}else{
_14=this.startIndex-this.size;
}
var _16=this.uri.queryParameters;
var p=dojo.clone(_16);
p.sI=Math.max(_14+1,1);
this.uri.queryParameters=p;
var url=lconn.share0.util.uri.writeUri(this.uri);
this.uri.queryParameters=_16;
return url;
}
return null;
},getLastPage:function(){
if(this.mode=="index"){
var _17;
return (this.total!=-1)?Math.ceil(this.total/this.size):Math.floor(this.startIndex/this.size);
}
return -1;
},isPastEnd:function(){
return this.pastEnd;
},hasNext:function(){
return this.hasMore;
},hasPrevious:function(){
if(this.mode=="url"){
return (this.previous&&this.previous!=null);
}
return (this.startIndex>0);
},isFullPage:function(){
return (this.size>0&&this.size==this.items);
}});
dojo.declare("lconn.share0.widget.StreamRenderer",null,{minimalPaging:false,marker:"",previousSort:-1,constructor:function(_18){
this.widgets=[];
this.sorts=[];
dojo.mixin(this,_18);
},destroy:function(){
this.cleanup();
},cleanup:function(){
lconn.share0.util.misc.destroy(this.widgets);
this.widgets=[];
},render:function(_19,el,_1a){
_1a.itemByPosition=[];
var _1b=(_1a.json)?_1a.json.items:lconn.share0.util.dom.getElementsByTagName(_1a.xml,"entry");
var _1c=(_1a.paging)?Math.min(_1a.paging.size,_1b.length):_1b.length;
if(_1c==0){
this.renderEmpty(_19,el,_1a);
}else{
this.updatePaging(_19,el,_1a);
lconn.share0.util.html.removeChildren(el);
this.renderSorting(_19,el,_1a);
for(var i=0;i<_1c;i++){
this.renderItem(_19,el,_1a,_1b[i],i,i==0,(i==_1c-1));
}
}
this.onRendered();
},onRendered:function(){
if(this.focusNode!==null){
dijit.focus(this.focusNode);
var tb=this.toolbarHelper;
while(tb&&tb.allItems.indexOf(this.focusNode)!=-1&&tb.allItems[tb.selIdx]!==this.focusNode){
tb.focusNextItem();
}
}
},getSortInfo:function(){
var _1d=this.sortId;
var _1e=this.sortReversed;
var _1f=this.getSorts(_1d,_1e);
if(_1f&&_1f.length>0){
var _20=lconn.share0.util.misc.indexById(_1f,"id",_1d);
if(!_20){
for(var i=0;i<_1f.length;i++){
if(_1f[i].isDefault){
_20=_1f[i];
break;
}
}
if(!_20){
_20=_1f[0];
}
_1e=false;
}
return {list:_1f,active:_20,reversed:_1e};
}
},renderSorting:function(_21,el,_22){
var _23=this.getSortInfo();
if(_23){
var _24=_23.list;
var _25=_23.active;
var _26=_23.reversed;
var d=document;
var div=d.createElement("div");
div.className="lotusSort";
var _27=d.createElement("label");
_27.className="lotusLeft lotusFirst";
_27.id="qkrSortControlsLabel";
_27.appendChild(d.createTextNode(_21._strings.SORT_BY));
div.appendChild(_27);
var ul=d.createElement("ul");
ul.className="lotusInlinelist";
dijit.setWaiRole(ul,"toolbar");
dijit.setWaiState(ul,"label",_21._a11yStrings.STREAMS.SORT);
for(var i=0,_28;_28=_24[i];i++){
var li=d.createElement("li");
if(i==0){
li.className="lotusFirst";
}
var a=d.createElement("a");
a.id="link_qkrSort"+_28.id;
dijit.setWaiRole(a,"button");
if(_28==_25){
var asc=(_28.lowToHigh)?!_26:_26;
dojo.addClass(a,"lotusActiveSort");
dojo.addClass(a,asc?"lotusAscending":"lotusDescending");
if(i!==this.previousSort){
this.focusNode=a;
}else{
this.focusNode=null;
}
this.previousSort=i;
var _29=(asc)?dojo.string.substitute(_21._a11yStrings.STREAMS.ASCENDING,[_28.name]):dojo.string.substitute(_21._a11yStrings.STREAMS.DESCENDING,[_28.name]);
dijit.setWaiState(a,"label",_29);
dijit.setWaiState(a,"pressed","true");
}else{
dijit.setWaiState(a,"pressed","false");
dijit.setWaiState(a,"label",_28.name);
}
this.generateSortLink(_21,_28,(_28!=_25||_26)?true:false,a);
a.appendChild(d.createTextNode(_28.name));
if(_28==_25){
var _2a=d.createElement("span");
_2a.className="lotusAltText";
_2a.appendChild(d.createTextNode(asc?" \u25b4 ":" \u25be "));
a.appendChild(_2a);
}
li.appendChild(a);
ul.appendChild(li);
}
var tb=this.toolbarHelper=new lconn.core.aria.Toolbar(ul);
if(this.widgets){
this.widgets.push(tb);
}
div.appendChild(ul);
el.appendChild(div);
}
},renderItem:function(_2b,el,_2c,_2d,_2e,_2f,_30){
},renderLoading:function(_31,el){
var d=document;
lconn.share0.util.html.removeChildren(el);
var div=d.createElement("DIV");
div.className="qkrLoading";
var img=d.createElement("IMG");
img.className="lotusLoading";
img.src=dijit._Widget.prototype._blankGif;
img.setAttribute("alt",_31._strings.LOADING);
div.appendChild(img);
div.appendChild(d.createTextNode(_31._strings.LOADING));
el.appendChild(div);
},renderError:function(_32,el,_33,_34){
if(_34.type!="noFiles"){
var d=document;
lconn.share0.util.html.removeChildren(el);
this.updatePaging(_32,el,{});
this.renderSorting(_32,el,_33);
var div=d.createElement("DIV");
div.className="qkrError";
div.appendChild(d.createTextNode(_34.message));
dijit.setWaiState(div,"label",_34.message);
div.tabIndex=0;
el.appendChild(div);
}else{
this.renderEmpty(_32,el,_33);
}
},renderEmpty:function(_35,el,_36){
var d=document;
lconn.share0.util.html.removeChildren(el);
this.updatePaging(_35,el,_36);
this.renderTypes(_35,el,_36);
this.renderSorting(_35,el,_36);
var div=d.createElement("DIV");
div.className="lconnEmpty";
var _37=_35.msgNoData||"Empty";
div.appendChild(d.createTextNode(_37));
dijit.setWaiState(div,"label",_37);
dijit.setWaiRole(div,"document");
div.tabIndex=0;
el.appendChild(div);
},renderTypes:function(_38,el,_39){
var d=document;
if(this.types){
var div=d.createElement("div");
div.className="lotusSort";
var ul=d.createElement("ul");
ul.className="lotusInlinelist";
dijit.setWaiRole(ul,"presentation");
var li=d.createElement("li");
li.className="lotusFirst";
li.appendChild(d.createTextNode(_38.typeLabel));
ul.appendChild(li);
for(var i=0,_3a;_3a=this.types[i];i++){
var li=d.createElement("li");
if(i==0){
li.className="lotusFirst";
}
var a=d.createElement("a");
if(_3a==this.activeType){
dojo.addClass(a,"lotusActiveSort");
}
this.generateLinkToTypes(_38,_3a,a);
a.appendChild(d.createTextNode(_3a.name));
li.appendChild(a);
ul.appendChild(li);
}
div.appendChild(ul);
el.appendChild(div);
}
},allowMultipleExpand:function(_3b){
return true;
},forceExpandItem:function(_3c,_3d,e){
if(e){
dojo.stopEvent(e);
}
var _3e=_3c.data.itemByPosition[_3d];
if(!_3e._isExpanded){
this.toggleItem(_3c,_3d);
}
},toggleItem:function(_3f,_40,e){
if(e){
dojo.stopEvent(e);
}
var _41=_3f.data.itemByPosition[_40];
if(_41._isExpanded){
this.collapseItem(_3f,_3f.data,_41,_40);
_41._isExpanded=false;
if(!this.allowMultipleExpand()){
_3f._expandItem=null;
}
}else{
if(!_41._isRendered){
if(!this.allowMultipleExpand()&&_3f._expandItem){
this.collapseItem(_3f,_3f.data,_3f._expandItem,_3f._expandItem._position);
_3f._expandItem._isExpanded=false;
_3f._expandItem=null;
}
this.renderItemExpand(_3f,_3f.data,_41,_40);
_41._isRendered=true;
_41._isExpanded=true;
if(!this.allowMultipleExpand()){
_3f._expandItem=_41;
}
}else{
if(!this.allowMultipleExpand()&&_3f._expandItem){
this.collapseItem(_3f,_3f.data,_3f._expandItem,_3f._expandItem._position);
_3f._expandItem._isExpanded=false;
_3f._expandItem=null;
}
this.expandItem(_3f,_3f.data,_41,_40);
_41._isExpanded=true;
if(!this.allowMultipleExpand()){
_3f._expandItem=_41;
}
}
}
},getElementId:function(_42){
return this.marker?"s"+this.marker+_42:"s"+_42;
},updatePaging:function(s,el,_43,_44,_45,_46){
var d=document;
if(s.topPageNode){
s.topPageNode.className="lotusPaging";
if(_44){
dijit.setWaiRole(s.topPageNode,_44);
if(_45){
dijit.setWaiState(s.topPageNode,"label",_45);
}
}
}
if(s.bottomPageNode){
s.bottomPageNode.className="lotusPaging";
if(_44){
dijit.setWaiRole(s.bottomPageNode,_44);
}
if(_46){
dijit.setWaiState(s.bottomPageNode,"label",_46);
}
}
var _47=_43.paging;
if(_47&&_47.size>0&&_47.total!=0){
var _48=_47.hasPrevious();
var _49=_47.hasNext();
if(this.minimalPaging&&!_49&&!_48){
this._h(s.topPageNode);
this._h(s.bottomPageNode);
}else{
var id;
if(s.pageSizeListNode){
var _4a=s.pageSizeListNode.getElementsByTagName("A");
dojo.forEach(_4a,function(_4b){
_4b.parentNode.style.display="";
_4b.value=lconn.share0.util.text.parseInt(_4b.innerHTML,-1);
id=dojo.byId(this.getElementId(_4b.value.toString()));
if(id){
id.style.display="none";
}
},this);
for(var i=0;i<_4a.length;i++){
var _4c=_4a[i];
if(_4c.value==_47.size){
_4c.parentNode.style.display="none";
id=dojo.byId(this.getElementId(_4c.value.toString()));
if(id){
id.style.display="";
}
}else{
if(_4c.value!=-1){
dojo.connect(_4c,"onclick",dojo.hitch(this,this.setPageSize,_4c.value));
}
}
}
}
this._d(s.tPreviousLinkNode,_48);
this._d(s.bPreviousLinkNode,_48);
this._d(s.tPreviousTextNode,!_48);
this._d(s.bPreviousTextNode,!_48);
this._d(s.tNextLinkNode,_49);
this._d(s.bNextLinkNode,_49);
this._d(s.tNextTextNode,!_49);
this._d(s.bNextTextNode,!_49);
if(this.minimalPaging){
var _4d=(_49||_48)?"":"none";
this._s(s.topPageNode,_4d);
this._s(s.bottomPageNode,_4d);
}else{
this._s(s.topPageNode,"");
this._s(s.bottomPageNode,"");
}
this._s(s.topPageNavigateNode);
this._s(s.bottomPageNavigateNode);
if(s.topPageNavigateNode){
dijit.setWaiRole(s.topPageNavigateNode,"presentation");
}
if(s.bottomPageNavigateNode){
dijit.setWaiRole(s.bottomPageNavigateNode,"presentation");
}
if(s.pageListNode){
dijit.setWaiRole(s.pageListNode,"presentation");
}
if(s.pageSizeListNode){
dijit.setWaiRole(s.pageSizeListNode,"presentation");
}
this.createPageCount(d,s,s.pageInfoNode,_47);
if(_47.total!=-1){
var _4e=Math.floor((_47.startIndex)/_47.size)+1;
var _4f=Math.ceil(_47.total/_47.size);
this.createPageList(d,s,s.pageListNode,_4e,_4f);
this.createJumpTo(d,s,s.jumpPageNode,_4e,_4f);
}else{
this._h(s.pageListNode);
}
var ps=_47.size!=-1;
this._d(s.pageSizeListNode,ps);
this._d(s.pageShowNode,ps);
}
}else{
if(this.minimalPaging){
this._h(s.topPageNode);
this._h(s.bottomPageNode);
}else{
if(undefined==_47||_47.total==0){
this._h(s.topPageNode);
this._h(s.bottomPageNode);
}
}
this._h(s.topPageNavigateNode);
this._h(s.bottomPageNavigateNode);
this._h(s.pageShowNode);
this._h(s.pageSizeListNode);
this._h(s.pageInfoNode);
this._h(s.pageListNode);
}
},_d:function(el,_50){
if(!el){
return;
}
el.style.display=_50?"":"none";
},_h:function(el){
if(!el){
return;
}
el.style.display="none";
},_s:function(el,_51){
if(!el){
return;
}
el.style.display=_51||"";
},createPageCount:function(d,s,el,_52){
if(!el){
return;
}
if(_52.startIndex!=-1){
var _53=_52.total!=-1?dojo.number.format(_52.total):"??";
var _54=_52.startIndex+1;
var end=_52.size+_52.startIndex;
if(_52.total!=-1){
end=Math.min(end,_52.total);
}
while(el.firstChild){
el.removeChild(el.firstChild);
}
el.appendChild(d.createTextNode(dojo.string.substitute(s._strings.COUNT,[dojo.number.format(_54),dojo.number.format(end),_53])));
el.style.display="";
}else{
el.style.display="none";
}
},createJumpTo:function(d,s,el,_55,_56){
if(!el){
return;
}
if(_56>1){
while(el.firstChild){
el.removeChild(el.firstChild);
}
var _57=d.createElement("input");
_57.type="text";
_57.id="qkrJumpToInput";
_57.value=_55;
_57.setAttribute("autocomplete","OFF");
dijit.setWaiState(_57,"label",(dojo.string.substitute(s._strings.JUMP_TO_PAGE_BETWEEN,[dojo.number.format(_55),dojo.number.format(_56)])));
var _58=lconn.share0.actions.createInvisibleLabel(d,el,s._strings.REFRESH_INPUT);
_58.id=_57.id+"_desc";
dijit.setWaiState(_57,"describedBy",_58.id);
var _59=d.createElement("label");
_59.appendChild(d.createTextNode(s._strings.JUMP_TO_PAGE));
el.appendChild(_59);
el.appendChild(_57);
el.appendChild(d.createTextNode(dojo.string.substitute(s._strings.OF_PAGES,[dojo.number.format(_56)])));
el.style.display="";
dojo.connect(_57,"onkeypress",function(e){
if(e.charOrCode==dojo.keys.ENTER){
dojo.stopEvent(e);
s.jumpInitiated=true;
s.switchPage(this.value>=_56?_56:this.value);
}
});
dojo.connect(_57,"onfocus",function(e){
dijit.selectInputText(this);
});
dojo.connect(_57,"onblur",dojo.hitch(null,function(_5a,e){
this.value=_5a;
},_55));
}else{
el.style.display="none";
}
},createPageList:function(d,s,el,_5b,_5c){
if(!el){
return;
}
while(el.firstChild){
el.removeChild(el.firstChild);
}
el.style.display="none";
if(_5c>1){
var _5d=false;
var _5e=3;
for(var i=1;i<=_5c;i++){
var _5f=Math.abs(_5b-i);
if(_5f<=_5e){
this.createSpecificPageLinks(d,s,el,i,i,_5b);
_5d=false;
}else{
if(i==1){
this.createSpecificPageLinks(d,s,el,i,i,_5b);
_5d=false;
}else{
if(i==_5c){
this.createSpecificPageLinks(d,s,el,i,i,_5b);
_5d=false;
}else{
if(!_5d){
if(i+1==_5c){
this.createSpecificPageLinks(d,s,el,i,i,_5b);
_5d=false;
}else{
if(i-1==1&&_5f<=(_5e+1)){
this.createSpecificPageLinks(d,s,el,i,i,_5b);
_5d=false;
}else{
var li=d.createElement("li");
li.appendChild(d.createTextNode(s._strings.ELLIPSIS));
el.appendChild(li);
_5d=true;
}
}
}
}
}
}
}
el.style.display="";
}else{
el.style.display="none";
}
},createSpecificPageLinks:function(d,_60,el,_61,_62,_63){
for(var i=_61;i<=_62;i++){
var li=d.createElement("li");
if(i==1){
li.className="lotusFirst";
}
if(i!=_63){
var a=d.createElement("a");
this.generatePagingLink(_60,i,a);
a.appendChild(d.createTextNode(i));
li.appendChild(a);
}else{
var _64=d.createElement("span");
_64.appendChild(d.createTextNode(dojo.number.format(i)));
li.appendChild(_64);
}
el.appendChild(li);
}
},getSorts:function(_65,_66){
return this.sorts;
},changeSort:function(_67,_68){
if(this.sortId){
this.isSortReversed=(this.sortId==_68)?!this.isSortReversed:false;
}else{
this.isSortReversed=false;
}
this.sortId=_68;
_67.update();
},generateSortLink:function(_69,_6a,_6b,a){
a.href="javascript:;";
dojo.connect(a,"onclick",dojo.hitch(this,this.changeSort,_69,_6a.id));
},generatePagingLink:function(_6c,_6d,a){
a.href="javascript:;";
dojo.connect(a,"onclick",dojo.hitch(_6c,_6c.switchPage,_6d));
}});
dojo.declare("lconn.share0.widget.Stream",[dijit._Widget,dijit._Templated],{templatePath:dojo.moduleUrl("lconn.share0","widget/templates/Stream.html"),url:null,data:null,view:"summary",baseClass:"",baseUrl:dojo.getObject("lconn.share0.config.baseUri")||"/",renderer:new lconn.share0.widget.StreamRenderer(),timeoutRetrieve:10,proxyServlet:null,msgNoData:null,_strings:{},postMixInProperties:function(){
if(this.oldWidget){
var _6e=this.oldWidget.data;
if(_6e&&_6e.fromUrl&&(_6e.xml||_6e.json)){
this.data={fromUrl:_6e.fromUrl,xml:_6e.xml,json:_6e.json,paging:_6e.paging};
}
delete this.oldWidget;
}
if(this.renderer){
this._initPageStyle=(this.renderer.minimalPaging)?"display: none":"";
if(this.renderer.templatePath){
this.templatePath=this.renderer.templatePath;
}
if(this.renderer.templateString){
this.templateString=this.renderer.templateString;
}
}
},postCreate:function(){
this.msgNoData=this.msgNoData||this._strings.EMPTY;
this.inherited(arguments);
if(this.pageSizeListNode){
var _6f=this.pageSizeListNode.getElementsByTagName("A");
for(var i=0;i<_6f.length;i++){
var _70=_6f[i];
var _71=lconn.share0.util.text.parseInt(_70.innerHTML,-1);
if(_71!=-1){
dojo.connect(_70,"onclick",dojo.hitch(this,this.setPageSize,_71));
}
}
}
this.renderer.renderLoading(this,this.streamNode);
},destroy:function(){
if(this.req&&!this.req.ioArgs._finished){
this.req.cancel();
}
if(this.renderer){
this.renderer.destroy();
this.renderer=null;
}
this.inherited(arguments);
},setPageSize:function(_72,e){
if(e){
dojo.stopEvent(e);
}
if(this.data){
if(this.data.fromUrl){
var _73=this.data.paging;
if(_73.size!=_72&&_72>0){
var url=_73.getPageUrl(1,_72);
if(url){
this.url=url;
this.refresh();
}
}
}
}
},switchPage:function(_74,e){
if(e){
dojo.stopEvent(e);
}
if(isNaN(_74)||_74<1){
_74=1;
}
if(this.data){
if(this.data.fromUrl){
var _75=this.data.paging;
var url=_75.getPageUrl(_74);
if(url){
this.url=url;
this.refresh();
}
}
}
},next:function(e){
if(e){
dojo.stopEvent(e);
}
if(this.data){
if(this.data.fromUrl){
var _76=this.data.paging;
var url=_76.getNextUrl();
if(url){
this.url=url;
this.refresh();
}
}
}
},previous:function(e){
if(e){
dojo.stopEvent(e);
}
if(this.data){
if(this.data.fromUrl){
var _77=this.data.paging;
var url=_77.getPreviousUrl();
if(url){
this.url=url;
this.refresh();
}
}
}
},refresh:function(){
if(this.data){
if(this.data.fromUrl){
this.update(null);
}else{
this.update();
}
}
},update:function(_78){
if(_78){
if(!_78.paging&&(_78.xml||_78.json)){
_78.paging=this.getPaging();
if(_78.xml){
_78.paging.detect(_78.url,_78.xml);
}else{
if(_78.json){
_78.paging.detect(_78.url,_78.json,"json");
}
}
if(this.handlePastLastPage(_78.paging)){
return;
}
}
}
if(arguments.length>0){
this.data=_78;
}
if(!this.data){
this._loadFromUrl(this.url);
}else{
if(this.data.error){
if(typeof this.data.error.message!="undefined"){
this._updateWithError(this.data.error);
}else{
this._updateWithError({type:"unknown",message:this._strings.ERROR});
}
}else{
if(this.data.xml){
if(this.handleAsXsl){
var _79=this._cleanFeed(response);
_79=this._renderXSLT(_79);
this.streamNode.innerHTML=_79;
this.renderer.postRender(this,this.streamNode,this.data);
}else{
this.renderer.render(this,this.streamNode,this.data);
}
this.onUpdate(this.data);
}else{
if(this.data.json){
this.renderer.render(this,this.streamNode,this.data);
this.onUpdate(this.data);
}else{
this.renderer.renderEmpty(this,this.streamNode,this.data);
this.onUpdate(this.data);
}
}
}
}
},updateItem:function(_7a,_7b){
this.renderer.updateItem(this,this.data,this.streamNode,_7a,_7b);
},_updateWithError:function(_7c){
this.data={fromUrl:true,error:_7c};
this.renderer.renderError(this,this.streamNode,this.data,_7c);
},_loadFromUrl:function(url){
if(!url||url==""){
this._updateWithError({message:"No URL specified",type:"noUrl"});
}else{
if(this.req&&!this.req.ioArgs._finished){
this.req.cancel();
}
var _7d=this.handleAs||"xml";
if(this.handleAsXsl){
_7d="text";
}
if(this.proxyServlet){
this.req=this.net.get({url:this.proxyServlet,handleAs:_7d,timeout:this.timeoutRetrieve*1000,handle:dojo.hitch(this,this._loadFromUrlComplete),content:{url:url}});
}else{
this.req=this.net.get({url:url,handleAs:_7d,timeout:this.timeoutRetrieve*1000,handle:dojo.hitch(this,this._loadFromUrlComplete)});
}
}
},getPaging:function(){
return new lconn.share0.widget.StreamPaging({checkForMore:this.checkForMore});
},resetData:function(){
if(this.data){
delete this.data.xml;
delete this.data.json;
}
},_loadFromUrlComplete:function(_7e,_7f){
_7f._finished=true;
if(_7e instanceof Error){
if(_7e.dojoType=="cancel"){
console.log("Request cancelled.");
this._updateWithError({message:this._strings.ERROR_REQUEST_CANCELLED,type:"requestCancelled"});
}else{
if(_7e.dojoType=="timeout"){
console.log("Request timed out.");
this._updateWithError({message:this._strings.ERROR_REQUEST_TIMEOUT,type:"serverNotResponding"});
}else{
if(_7f.xhr.status==404){
console.error(_7e);
this._updateWithError({message:this._strings.EMPTY,type:"noFiles"});
}else{
console.error(_7e);
this._updateWithError({message:this._strings.ERROR,type:"unknown"});
}
}
}
if(this.jumpInitiated){
this.jumpInitiated=null;
}
}else{
var _80={url:_7f.url,fromUrl:true};
_80.paging=this.getPaging();
if(_7f.handleAs=="xml"){
_80.xml=_7e.documentElement;
_80.paging.detect(_7f.url,_7e.documentElement);
}else{
if(_7f.handleAs=="json-comment-optional"){
_80.json=_7e;
_80.paging.detect(_7f.url,_7e,"json");
}
}
if(this.handlePastLastPage(_80.paging)){
return;
}
this.data=_80;
if(this.handleAsXsl){
var _81=this._cleanFeed(_7e);
_81=this._renderXSLT(_81);
this.streamNode.innerHTML=_81;
this.renderer.postRender(this,this.streamNode,_80);
}else{
this.renderer.render(this,this.streamNode,_80);
}
this.onUpdate(this.data);
if(this.jumpInitiated){
var _82=dijit._getTabNavigable(this.domNode);
dijit.focus(_82.lowest||_82.first);
this.jumpInitiated=null;
}
}
this.req=null;
return _7e;
},handlePastLastPage:function(_83){
if(_83.isPastEnd()){
var url=_83.getLastPageUrl();
this.url=url;
this.update();
return true;
}
return false;
},onUpdate:function(_84){
},_renderXSLT:function(xml){
return xml;
}});
}


;dojo.cache("lconn.share0", "widget/templates/TagStream.html", "<div class=\"${baseClass}\"> <div class=\"lotusDialogContent\" dojoAttachPoint=\"streamNode\"></div> <div class=\"lotusPaging\" dojoAttachPoint=\"bottomPageNode\" style=\"${_initPageStyle}\"> <div class=\"lotusLeft\" dojoAttachPoint=\"loadingNode\"></div> <ul class=\"lotusRight lotusInlinelist\" dojoAttachPoint=\"bottomPageNavigateNode\" style=\"display: none;\"> <li dojoAttachPoint=\"bPreviousLinkNode\" class=\"lotusFirst\"><a href=\"#\" dojoAttachEvent=\"onclick:previous\">${_strings.PREVIOUS}</a></li> <li dojoAttachPoint=\"bPreviousTextNode\" class=\"lotusFirst\">${_strings.PREVIOUS}</li> <li dojoAttachPoint=\"bNextLinkNode\"><a href=\"#\" dojoAttachEvent=\"onclick:next\">${_strings.NEXT}</a></li> <li dojoAttachPoint=\"bNextTextNode\">${_strings.NEXT}</li> </ul> </div></div>");

;if(!dojo._hasResource["lconn.share0.widget.TagStream"]){
dojo._hasResource["lconn.share0.widget.TagStream"]=true;
dojo.provide("lconn.share0.widget.TagStream");




dojo.declare("lconn.share0.widget.TagStreamRenderer",[lconn.share0.widget.StreamRenderer],{minimalPaging:true,displayCloud:function(_1,_2){
},render:function(_3,el,_4,_5){
this.updatePaging(_3,el,_4);
this.cleanup();
lconn.share0.util.html.removeChildren(el);
dojo.addClass(el,"lotusDialogContent");
dojo.addClass(el,"lotusTagCloud");
dijit.setWaiRole(el,"navigation");
dijit.setWaiState(el,"controls","lotusContent");
if(_4.json.items.length==0){
this.renderEmpty(_3,el,_4);
}else{
this.displayCloud(el,_4.json.items);
}
}});
dojo.declare("lconn.share0.widget.TagStream",[lconn.share0.widget.Stream],{handleAs:"json",templatePath:dojo.moduleUrl("lconn.share0","widget/templates/TagStream.html"),url:null,displayCloud:function(_6,_7){
},renderer:new lconn.share0.widget.TagStreamRenderer(),_loaded:false,postMixInProperties:function(){
this.renderer.displayCloud=this.displayCloud;
this.inherited(arguments);
},_loadFromUrl:function(_8){
if(_8&&_8!=""&&this._loaded){
this.renderer.renderLoading(this,this.loadingNode);
}
this.inherited(arguments);
},_loadFromUrlComplete:function(){
this._loaded=true;
lconn.share0.util.html.removeChildren(this.loadingNode);
this.inherited(arguments);
}});
}


;define("dojo/text!dijit/form/templates/HorizontalSlider.html", '<table class="dijit dijitReset dijitSlider dijitSliderH" cellspacing="0" cellpadding="0" border="0" rules="none" data-dojo-attach-event="onkeydown:_onKeyDown, onkeyup:_onKeyUp"\n	role="presentation"\n	><tr class="dijitReset"\n		><td class="dijitReset" colspan="2"></td\n		><td data-dojo-attach-point="topDecoration" class="dijitReset dijitSliderDecoration dijitSliderDecorationT dijitSliderDecorationH"></td\n		><td class="dijitReset" colspan="2"></td\n	></tr\n	><tr class="dijitReset"\n		><td class="dijitReset dijitSliderButtonContainer dijitSliderButtonContainerH"\n			><div class="dijitSliderDecrementIconH" style="display:none" data-dojo-attach-point="decrementButton"><span class="dijitSliderButtonInner">-</span></div\n		></td\n		><td class="dijitReset"\n			><div class="dijitSliderBar dijitSliderBumper dijitSliderBumperH dijitSliderLeftBumper" data-dojo-attach-event="press:_onClkDecBumper"></div\n		></td\n		><td class="dijitReset"\n			><input data-dojo-attach-point="valueNode" type="hidden" ${!nameAttrSetting}\n			/><div class="dijitReset dijitSliderBarContainerH" role="presentation" data-dojo-attach-point="sliderBarContainer"\n				><div role="presentation" data-dojo-attach-point="progressBar" class="dijitSliderBar dijitSliderBarH dijitSliderProgressBar dijitSliderProgressBarH" data-dojo-attach-event="press:_onBarClick"\n					><div class="dijitSliderMoveable dijitSliderMoveableH"\n						><div data-dojo-attach-point="sliderHandle,focusNode" class="dijitSliderImageHandle dijitSliderImageHandleH" data-dojo-attach-event="press:_onHandleClick" role="slider"></div\n					></div\n				></div\n				><div role="presentation" data-dojo-attach-point="remainingBar" class="dijitSliderBar dijitSliderBarH dijitSliderRemainingBar dijitSliderRemainingBarH" data-dojo-attach-event="press:_onBarClick"></div\n			></div\n		></td\n		><td class="dijitReset"\n			><div class="dijitSliderBar dijitSliderBumper dijitSliderBumperH dijitSliderRightBumper" data-dojo-attach-event="press:_onClkIncBumper"></div\n		></td\n		><td class="dijitReset dijitSliderButtonContainer dijitSliderButtonContainerH"\n			><div class="dijitSliderIncrementIconH" style="display:none" data-dojo-attach-point="incrementButton"><span class="dijitSliderButtonInner">+</span></div\n		></td\n	></tr\n	><tr class="dijitReset"\n		><td class="dijitReset" colspan="2"></td\n		><td data-dojo-attach-point="containerNode,bottomDecoration" class="dijitReset dijitSliderDecoration dijitSliderDecorationB dijitSliderDecorationH"></td\n		><td class="dijitReset" colspan="2"></td\n	></tr\n></table>\n');

;define("dijit/form/HorizontalSlider",["dojo/_base/array","dojo/_base/declare","dojo/dnd/move","dojo/_base/fx","dojo/dom-geometry","dojo/dom-style","dojo/keys","dojo/_base/lang","dojo/sniff","dojo/dnd/Moveable","dojo/dnd/Mover","dojo/query","dojo/mouse","dojo/on","../_base/manager","../focus","../typematic","./Button","./_FormValueWidget","../_Container","dojo/text!./templates/HorizontalSlider.html"],function(_1,_2,_3,fx,_4,_5,_6,_7,_8,_9,_a,_b,_c,on,_d,_e,_f,_10,_11,_12,_13){
var _14=_2("dijit.form._SliderMover",_a,{onMouseMove:function(e){
var _15=this.widget;
var _16=_15._abspos;
if(!_16){
_16=_15._abspos=_4.position(_15.sliderBarContainer,true);
_15._setPixelValue_=_7.hitch(_15,"_setPixelValue");
_15._isReversed_=_15._isReversed();
}
var _17=e[_15._mousePixelCoord]-_16[_15._startingPixelCoord];
_15._setPixelValue_(_15._isReversed_?(_16[_15._pixelCount]-_17):_17,_16[_15._pixelCount],false);
},destroy:function(e){
_a.prototype.destroy.apply(this,arguments);
var _18=this.widget;
_18._abspos=null;
_18._setValueAttr(_18.value,true);
}});
var _19=_2("dijit.form.HorizontalSlider",[_11,_12],{templateString:_13,value:0,showButtons:true,minimum:0,maximum:100,discreteValues:Infinity,pageIncrement:2,clickSelect:true,slideDuration:_d.defaultDuration,_setIdAttr:"",_setNameAttr:"valueNode",baseClass:"dijitSlider",cssStateNodes:{incrementButton:"dijitSliderIncrementButton",decrementButton:"dijitSliderDecrementButton",focusNode:"dijitSliderThumb"},_mousePixelCoord:"pageX",_pixelCount:"w",_startingPixelCoord:"x",_handleOffsetCoord:"left",_progressPixelSize:"width",_onKeyUp:function(e){
if(this.disabled||this.readOnly||e.altKey||e.ctrlKey||e.metaKey){
return;
}
this._setValueAttr(this.value,true);
},_onKeyDown:function(e){
if(this.disabled||this.readOnly||e.altKey||e.ctrlKey||e.metaKey){
return;
}
switch(e.keyCode){
case _6.HOME:
this._setValueAttr(this.minimum,false);
break;
case _6.END:
this._setValueAttr(this.maximum,false);
break;
case ((this._descending||this.isLeftToRight())?_6.RIGHT_ARROW:_6.LEFT_ARROW):
case (this._descending===false?_6.DOWN_ARROW:_6.UP_ARROW):
case (this._descending===false?_6.PAGE_DOWN:_6.PAGE_UP):
this.increment(e);
break;
case ((this._descending||this.isLeftToRight())?_6.LEFT_ARROW:_6.RIGHT_ARROW):
case (this._descending===false?_6.UP_ARROW:_6.DOWN_ARROW):
case (this._descending===false?_6.PAGE_UP:_6.PAGE_DOWN):
this.decrement(e);
break;
default:
return;
}
e.stopPropagation();
e.preventDefault();
},_onHandleClick:function(e){
if(this.disabled||this.readOnly){
return;
}
if(!_8("ie")){
_e.focus(this.sliderHandle);
}
e.stopPropagation();
e.preventDefault();
},_isReversed:function(){
return !this.isLeftToRight();
},_onBarClick:function(e){
if(this.disabled||this.readOnly||!this.clickSelect){
return;
}
_e.focus(this.sliderHandle);
e.stopPropagation();
e.preventDefault();
var _1a=_4.position(this.sliderBarContainer,true);
var _1b=e[this._mousePixelCoord]-_1a[this._startingPixelCoord];
this._setPixelValue(this._isReversed()?(_1a[this._pixelCount]-_1b):_1b,_1a[this._pixelCount],true);
this._movable.onMouseDown(e);
},_setPixelValue:function(_1c,_1d,_1e){
if(this.disabled||this.readOnly){
return;
}
var _1f=this.discreteValues;
if(_1f<=1||_1f==Infinity){
_1f=_1d;
}
_1f--;
var _20=_1d/_1f;
var _21=Math.round(_1c/_20);
this._setValueAttr(Math.max(Math.min((this.maximum-this.minimum)*_21/_1f+this.minimum,this.maximum),this.minimum),_1e);
},_setValueAttr:function(_22,_23){
this._set("value",_22);
this.valueNode.value=_22;
this.focusNode.setAttribute("aria-valuenow",_22);
this.inherited(arguments);
var _24=(_22-this.minimum)/(this.maximum-this.minimum);
var _25=(this._descending===false)?this.remainingBar:this.progressBar;
var _26=(this._descending===false)?this.progressBar:this.remainingBar;
if(this._inProgressAnim&&this._inProgressAnim.status!="stopped"){
this._inProgressAnim.stop(true);
}
if(_23&&this.slideDuration>0&&_25.style[this._progressPixelSize]){
var _27=this;
var _28={};
var _29=parseFloat(_25.style[this._progressPixelSize]);
var _2a=this.slideDuration*(_24-_29/100);
if(_2a==0){
return;
}
if(_2a<0){
_2a=0-_2a;
}
_28[this._progressPixelSize]={start:_29,end:_24*100,units:"%"};
this._inProgressAnim=fx.animateProperty({node:_25,duration:_2a,onAnimate:function(v){
_26.style[_27._progressPixelSize]=(100-parseFloat(v[_27._progressPixelSize]))+"%";
},onEnd:function(){
delete _27._inProgressAnim;
},properties:_28});
this._inProgressAnim.play();
}else{
_25.style[this._progressPixelSize]=(_24*100)+"%";
_26.style[this._progressPixelSize]=((1-_24)*100)+"%";
}
},_bumpValue:function(_2b,_2c){
if(this.disabled||this.readOnly){
return;
}
var s=_5.getComputedStyle(this.sliderBarContainer);
var c=_4.getContentBox(this.sliderBarContainer,s);
var _2d=this.discreteValues;
if(_2d<=1||_2d==Infinity){
_2d=c[this._pixelCount];
}
_2d--;
var _2e=(this.value-this.minimum)*_2d/(this.maximum-this.minimum)+_2b;
if(_2e<0){
_2e=0;
}
if(_2e>_2d){
_2e=_2d;
}
_2e=_2e*(this.maximum-this.minimum)/_2d+this.minimum;
this._setValueAttr(_2e,_2c);
},_onClkBumper:function(val){
if(this.disabled||this.readOnly||!this.clickSelect){
return;
}
this._setValueAttr(val,true);
},_onClkIncBumper:function(){
this._onClkBumper(this._descending===false?this.minimum:this.maximum);
},_onClkDecBumper:function(){
this._onClkBumper(this._descending===false?this.maximum:this.minimum);
},decrement:function(e){
this._bumpValue(e.keyCode==_6.PAGE_DOWN?-this.pageIncrement:-1);
},increment:function(e){
this._bumpValue(e.keyCode==_6.PAGE_UP?this.pageIncrement:1);
},_mouseWheeled:function(evt){
evt.stopPropagation();
evt.preventDefault();
this._bumpValue(evt.wheelDelta<0?-1:1,true);
},startup:function(){
if(this._started){
return;
}
_1.forEach(this.getChildren(),function(_2f){
if(this[_2f.container]!=this.containerNode){
this[_2f.container].appendChild(_2f.domNode);
}
},this);
this.inherited(arguments);
},_typematicCallback:function(_30,_31,e){
if(_30==-1){
this._setValueAttr(this.value,true);
}else{
this[(_31==(this._descending?this.incrementButton:this.decrementButton))?"decrement":"increment"](e);
}
},buildRendering:function(){
this.inherited(arguments);
if(this.showButtons){
this.incrementButton.style.display="";
this.decrementButton.style.display="";
}
var _32=_b("label[for=\""+this.id+"\"]");
if(_32.length){
if(!_32[0].id){
_32[0].id=this.id+"_label";
}
this.focusNode.setAttribute("aria-labelledby",_32[0].id);
}
this.focusNode.setAttribute("aria-valuemin",this.minimum);
this.focusNode.setAttribute("aria-valuemax",this.maximum);
},postCreate:function(){
this.inherited(arguments);
if(this.showButtons){
this.own(_f.addMouseListener(this.decrementButton,this,"_typematicCallback",25,500),_f.addMouseListener(this.incrementButton,this,"_typematicCallback",25,500));
}
this.own(on(this.domNode,_c.wheel,_7.hitch(this,"_mouseWheeled")));
var _33=_2(_14,{widget:this});
this._movable=new _9(this.sliderHandle,{mover:_33});
this._layoutHackIE7();
},destroy:function(){
this._movable.destroy();
if(this._inProgressAnim&&this._inProgressAnim.status!="stopped"){
this._inProgressAnim.stop(true);
}
this.inherited(arguments);
}});
_19._Mover=_14;
return _19;
});


;define("dojo/text!dijit/form/templates/VerticalSlider.html", '<table class="dijit dijitReset dijitSlider dijitSliderV" cellspacing="0" cellpadding="0" border="0" rules="none" data-dojo-attach-event="onkeydown:_onKeyDown,onkeyup:_onKeyUp"\n	role="presentation"\n	><tr class="dijitReset"\n		><td class="dijitReset"></td\n		><td class="dijitReset dijitSliderButtonContainer dijitSliderButtonContainerV"\n			><div class="dijitSliderIncrementIconV" style="display:none" data-dojo-attach-point="decrementButton"><span class="dijitSliderButtonInner">+</span></div\n		></td\n		><td class="dijitReset"></td\n	></tr\n	><tr class="dijitReset"\n		><td class="dijitReset"></td\n		><td class="dijitReset"\n			><center><div class="dijitSliderBar dijitSliderBumper dijitSliderBumperV dijitSliderTopBumper" data-dojo-attach-event="press:_onClkIncBumper"></div></center\n		></td\n		><td class="dijitReset"></td\n	></tr\n	><tr class="dijitReset"\n		><td data-dojo-attach-point="leftDecoration" class="dijitReset dijitSliderDecoration dijitSliderDecorationL dijitSliderDecorationV"></td\n		><td class="dijitReset dijitSliderDecorationC" style="height:100%;"\n			><input data-dojo-attach-point="valueNode" type="hidden" ${!nameAttrSetting}\n			/><center class="dijitReset dijitSliderBarContainerV" role="presentation" data-dojo-attach-point="sliderBarContainer"\n				><div role="presentation" data-dojo-attach-point="remainingBar" class="dijitSliderBar dijitSliderBarV dijitSliderRemainingBar dijitSliderRemainingBarV" data-dojo-attach-event="press:_onBarClick"><!--#5629--></div\n				><div role="presentation" data-dojo-attach-point="progressBar" class="dijitSliderBar dijitSliderBarV dijitSliderProgressBar dijitSliderProgressBarV" data-dojo-attach-event="press:_onBarClick"\n					><div class="dijitSliderMoveable dijitSliderMoveableV" style="vertical-align:top;"\n						><div data-dojo-attach-point="sliderHandle,focusNode" class="dijitSliderImageHandle dijitSliderImageHandleV" data-dojo-attach-event="press:_onHandleClick" role="slider"></div\n					></div\n				></div\n			></center\n		></td\n		><td data-dojo-attach-point="containerNode,rightDecoration" class="dijitReset dijitSliderDecoration dijitSliderDecorationR dijitSliderDecorationV"></td\n	></tr\n	><tr class="dijitReset"\n		><td class="dijitReset"></td\n		><td class="dijitReset"\n			><center><div class="dijitSliderBar dijitSliderBumper dijitSliderBumperV dijitSliderBottomBumper" data-dojo-attach-event="press:_onClkDecBumper"></div></center\n		></td\n		><td class="dijitReset"></td\n	></tr\n	><tr class="dijitReset"\n		><td class="dijitReset"></td\n		><td class="dijitReset dijitSliderButtonContainer dijitSliderButtonContainerV"\n			><div class="dijitSliderDecrementIconV" style="display:none" data-dojo-attach-point="incrementButton"><span class="dijitSliderButtonInner">-</span></div\n		></td\n		><td class="dijitReset"></td\n	></tr\n></table>\n');

;define("dijit/form/VerticalSlider",["dojo/_base/declare","./HorizontalSlider","dojo/text!./templates/VerticalSlider.html"],function(_1,_2,_3){
return _1("dijit.form.VerticalSlider",_2,{templateString:_3,_mousePixelCoord:"pageY",_pixelCount:"h",_startingPixelCoord:"y",_handleOffsetCoord:"top",_progressPixelSize:"height",_descending:true,_isReversed:function(){
return this._descending;
}});
});


;define("dijit/form/HorizontalRule",["dojo/_base/declare","../_Widget","../_TemplatedMixin"],function(_1,_2,_3){
return _1("dijit.form.HorizontalRule",[_2,_3],{templateString:"<div class=\"dijitRuleContainer dijitRuleContainerH\"></div>",count:3,container:"containerNode",ruleStyle:"",_positionPrefix:"<div class=\"dijitRuleMark dijitRuleMarkH\" style=\"left:",_positionSuffix:"%;",_suffix:"\"></div>",_genHTML:function(_4){
return this._positionPrefix+_4+this._positionSuffix+this.ruleStyle+this._suffix;
},_isHorizontal:true,buildRendering:function(){
this.inherited(arguments);
var _5;
if(this.count==1){
_5=this._genHTML(50,0);
}else{
var i;
var _6=100/(this.count-1);
if(!this._isHorizontal||this.isLeftToRight()){
_5=this._genHTML(0,0);
for(i=1;i<this.count-1;i++){
_5+=this._genHTML(_6*i,i);
}
_5+=this._genHTML(100,this.count-1);
}else{
_5=this._genHTML(100,0);
for(i=1;i<this.count-1;i++){
_5+=this._genHTML(100-_6*i,i);
}
_5+=this._genHTML(0,this.count-1);
}
}
this.domNode.innerHTML=_5;
}});
});


;define("dijit/form/VerticalRule",["dojo/_base/declare","./HorizontalRule"],function(_1,_2){
return _1("dijit.form.VerticalRule",_2,{templateString:"<div class=\"dijitRuleContainer dijitRuleContainerV\"></div>",_positionPrefix:"<div class=\"dijitRuleMark dijitRuleMarkV\" style=\"top:",_isHorizontal:false});
});


;define("dijit/form/HorizontalRuleLabels",["dojo/_base/declare","dojo/has","dojo/number","dojo/query","dojo/_base/lang","./HorizontalRule"],function(_1,_2,_3,_4,_5,_6){
var _7=_1("dijit.form.HorizontalRuleLabels",_6,{templateString:"<div class=\"dijitRuleContainer dijitRuleContainerH dijitRuleLabelsContainer dijitRuleLabelsContainerH\"></div>",labelStyle:"",labels:[],numericMargin:0,minimum:0,maximum:1,constraints:{pattern:"#%"},_positionPrefix:"<div class=\"dijitRuleLabelContainer dijitRuleLabelContainerH\" style=\"left:",_labelPrefix:"\"><div class=\"dijitRuleLabel dijitRuleLabelH\">",_suffix:"</div></div>",_calcPosition:function(_8){
return _8;
},_genHTML:function(_9,_a){
var _b=this.labels[_a];
return this._positionPrefix+this._calcPosition(_9)+this._positionSuffix+this.labelStyle+this._genDirectionHTML(_b)+this._labelPrefix+_b+this._suffix;
},_genDirectionHTML:function(_c){
return "";
},getLabels:function(){
var _d=this.labels;
if(!_d.length&&this.srcNodeRef){
_d=_4("> li",this.srcNodeRef).map(function(_e){
return String(_e.innerHTML);
});
}
if(!_d.length&&this.count>1){
var _f=this.minimum;
var inc=(this.maximum-_f)/(this.count-1);
for(var i=0;i<this.count;i++){
_d.push((i<this.numericMargin||i>=(this.count-this.numericMargin))?"":_3.format(_f,this.constraints));
_f+=inc;
}
}
return _d;
},postMixInProperties:function(){
this.inherited(arguments);
this.labels=this.getLabels();
this.count=this.labels.length;
}});
if(_2("dojo-bidi")){
_7.extend({_setTextDirAttr:function(_10){
if(this.textDir!=_10){
this._set("textDir",_10);
_4(".dijitRuleLabelContainer",this.domNode).forEach(_5.hitch(this,function(_11){
_11.style.direction=this.getTextDir(_11.innerText||_11.textContent||"");
}));
}
},_genDirectionHTML:function(_12){
return (this.textDir?("direction:"+this.getTextDir(_12)+";"):"");
}});
}
return _7;
});


;define("dijit/form/VerticalRuleLabels",["dojo/_base/declare","./HorizontalRuleLabels"],function(_1,_2){
return _1("dijit.form.VerticalRuleLabels",_2,{templateString:"<div class=\"dijitRuleContainer dijitRuleContainerV dijitRuleLabelsContainer dijitRuleLabelsContainerV\"></div>",_positionPrefix:"<div class=\"dijitRuleLabelContainer dijitRuleLabelContainerV\" style=\"top:",_labelPrefix:"\"><span class=\"dijitRuleLabel dijitRuleLabelV\">",_calcPosition:function(_3){
return 100-_3;
},_isHorizontal:false});
});


;define("dijit/form/Slider",["dojo/_base/kernel","./HorizontalSlider","./VerticalSlider","./HorizontalRule","./VerticalRule","./HorizontalRuleLabels","./VerticalRuleLabels"],function(_1){
_1.deprecated("Call require() for HorizontalSlider / VerticalRule, explicitly rather than 'dijit.form.Slider' itself","","2.0");
});


;if(!dojo._hasResource["lconn.share0.widget.TagList"]){
dojo._hasResource["lconn.share0.widget.TagList"]=true;
dojo.provide("lconn.share0.widget.TagList");














dojo.declare("lconn.share0.widget.TagList",[dijit._Widget],{additionalClasses:"",minimumVisible:dojo.getObject("lconn.share0.config.services.tagList.minResults")||10,_minimumVisibleRank:0,defaultVisible:dojo.getObject("lconn.share0.config.services.tagList.defaultResults")||50,_defaultVisibleRank:0,selectedVisibleRank:-1,initialTagList:15,initialTagCloud:dojo.getObject("lconn.share0.config.services.tagList.maxResults")||200,initialAllTagCount:dojo.getObject("lconn.share0.config.services.tagList.pageSize")||100,loadOnStartup:true,hideEmptyResults:false,hasTags:false,tags:null,tagScope:{},tagStore:null,url:null,activeTags:null,defaultView:"cloud",tagCloudFontSize:5,wDialog:"650px",baseImageUri:(dojo.getObject("lconn.share0.config.baseUri")||"/")+"images/",stylesImageUri:(dojo.getObject("lconn.share0.config.baseCommonUri")||"/")+"styles/images/",_strings:{},postMixInProperties:function(){
this.activeTags=this.activeTags||{};
this._jsonTagScope=dojo.toJson(this.tagScope||{});
this.loadRank();
},loadRank:function(){
if(this.tagStore){
var _1=this.tagStore.scopes=this.tagStore.scopes||{};
if(_1[this._jsonTagScope]>=0){
this.selectedVisibleRank=_1[this._jsonTagScope];
}
}
},saveRank:function(){
if(this.tagStore){
var _2=this.tagStore.scopes=this.tagStore.scopes||{};
_2[this._jsonTagScope]=this.selectedVisibleRank;
}
},buildRendering:function(){
var d=document;
var el=this.domNode=this.srcNodeRef;
if(this.baseClass){
dojo.addClass(el,this.baseClass);
}
var _3=this.loadingNode=d.createElement("div");
_3.className="qkrLoading";
var _4=d.createElement("img");
_4.alt="";
_4.className="lotusLoading";
_4.src=dijit._Widget.prototype._blankGif;
_3.appendChild(_4);
_3.appendChild(d.createTextNode("\xa0"));
_3.appendChild(d.createTextNode(this._strings.LOADING));
el.appendChild(_3);
if(this.loadOnStartup){
this.load();
}else{
this.hasTags=false;
this.tags=[];
this.addActiveTags();
this.update();
}
},reload:function(){
if(this.listNode){
this.listNode.parentNode.removeChild(this.listNode);
this.listNode=null;
}
if(this.cloudNode){
this.cloudNode.parentNode.removeChild(this.cloudNode);
this.cloudNode=null;
}
if(this.menuNode){
this.menuNode.parentNode.removeChild(this.menuNode);
this.menuNode=null;
}
if(this.loadingNode){
this.loadingNode.style.display="";
}
this.tags=null;
this.cloudTags=null;
if(this.tagStore){
this.tagStore.clear();
}
this.load();
},load:function(){
if(!this.tagStore){
this.loadTags([]);
}else{
this.tagStore.fetch({queryOptions:this.tagScope,count:Math.max(this.initialTagList,this.initialTagCloud),key:"weight",order:"dsc",onComplete:dojo.hitch(this,this.loadTags),onError:dojo.hitch(this,this.loadError)});
}
},loadError:function(){
this.hasTags=false;
this.tags=[];
this.addActiveTags();
this.update();
},loadTags:function(_5){
if(_5){
var _6=dojo.clone(_5);
this.hasTags=_6.length>0;
this.cloudTags=_6.slice(0,Math.min(_6.length,this.initialTagCloud));
this.tags=lconn.share0.util.misc.sort(_6,["weight",-1],"name");
var _7=this.tags.length;
this._minimumVisibleRank=0;
this._defaultVisibleRank=0;
for(var i=0;i<_7;i++){
var _8=Math.floor(((i+1)*100)/_7);
if(i<this.minimumVisible&&_8>this._minimumVisibleRank){
this._minimumVisibleRank=_8;
}
if(i<this.defaultVisible&&_8>this._defaultVisibleRank){
this._defaultVisibleRank=_8;
}
this.tags[i].rank=_8;
}
if(this.selectedVisibleRank==-1){
this.selectedVisibleRank=this._defaultVisibleRank;
if(this.tagslider){
this.tagslider.setValue(this.selectedVisibleRank);
}
}
this.addActiveTags();
this.update();
}
},updateError:function(){
var d=document;
var el=this.domNode;
while(el.firstChild){
el.removeChild(el.firstChild);
}
var _9=d.createElement("div");
_9.className="qkrError";
_9.appendChild(d.createTextNode(this._strings.ERROR));
el.appendChild(_9);
},addActiveTags:function(){
var _a=this.cloudTags;
var _b=this.tags;
var _c=[];
for(var _d in this.activeTags){
var _e=false;
dojo.forEach(this.tags,function(_f){
if(_f.name==_d){
_e=true;
}
});
if(!_e){
_c.push({name:_d,rank:0});
}
}
_c=lconn.share0.util.misc.sort(_c,["name",-1]);
dojo.forEach(_c,function(_10){
_b.unshift(_10);
_a.unshift(_10);
});
},update:function(op,e){
if(e){
dojo.stopEvent(e);
}
if(op){
this.defaultView=op;
this.onviewchange(op);
}else{
op=this.hasTags?this.defaultView:"list";
}
if(op=="list"){
this.renderList();
}else{
if(op=="cloud"){
this.renderCloud();
}
}
},updateVisibility:function(){
var _11=/qkrTagRank([0-9]+)([^0-9]|$)/;
var _12=this;
dojo.forEach(dojo.query("li",this.cloudNode),function(li){
if(!dojo.hasClass(li,"lotusSelected")){
var _13=_11.exec(li.className);
if(_13&&_13[1]){
var _14=parseInt(_13[1]);
if(_12.isRankVisible(_14)){
dojo.removeClass(li,"lotusHidden");
}else{
dojo.addClass(li,"lotusHidden");
}
}
}
});
},isRankVisible:function(_15){
return _15<=this._minimumVisibleRank||_15<=this.selectedVisibleRank;
},onviewchange:function(_16){
},renderTag:function(d,el,tag,_17,_18){
var li=d.createElement("li");
dijit.setWaiState(li,"selected","false");
li.className="qkrTagRank"+tag.rank;
if(_18){
dojo.addClass(li,"lotusSelected");
dijit.setWaiState(li,"selected","true");
}else{
if(!this.isRankVisible(tag.rank)){
dojo.addClass(li,"lotusHidden");
}
}
if(this.generateLinkToTag){
var a=d.createElement("a");
a.className="lotusLeft";
this.generateLinkToTag(tag.name,a);
a.appendChild(d.createTextNode(tag.name));
a.title=tag.name;
li.appendChild(a);
}else{
var _19=d.createElement("span");
_19.className="lotusLeft";
_19.appendChild(d.createTextNode(tag.name));
_19.title=tag.name;
li.appendChild(_19);
}
li.appendChild(d.createTextNode((tag.weight||tag.weight==0)?dojo.number.format(Math.max(tag.weight,0)):"\xa0"));
el.appendChild(li);
},renderList:function(){
var d=document;
var _1a=this.tags;
if(this.sliderNode){
this.sliderNode.style.display="none";
}
if(this.cloudNode){
this.cloudNode.style.display="none";
}
if(!this.listNode){
var el=this.domNode;
var div=this.listNode=d.createElement("div");
if(_1a.length==0){
if(!this.hideEmptyResults){
var _1b=d.createElement("div");
_1b.className="lotusMeta lotusTiny qkrEmpty";
_1b.appendChild(d.createTextNode(this.msgNoTags?this.msgNoTags:this._strings.NO_TAGS));
div.appendChild(_1b);
el.appendChild(div);
}
this.loadingNode.style.display="none";
}else{
if(_1a.length>0){
var ul=d.createElement("ul");
ul.className="lotusList lotusEditable lotusTags lotusMeta";
for(var i=0;i<_1a.length;i++){
var _1c=(this.activeTags&&this.activeTags[_1a[i].name]);
if(_1c||i<this.initialTagList){
this.renderTag(d,ul,_1a[i],i,_1c);
}
}
div.appendChild(ul);
var ul=d.createElement("li");
}
this.loadingNode.style.display="none";
el.appendChild(div);
this.renderMenu(true);
}
}else{
this.listNode.style.display="";
this.loadingNode.style.display="none";
this.renderMenu(true);
}
},renderCloud:function(){
if(!this.domNode){
return;
}
var d=document;
var _1d=this.cloudTags;
if(this.listNode){
this.listNode.style.display="none";
}
if(!this.sliderNode){
var _1e=this.sliderNode=d.createElement("div");
this.domNode.appendChild(_1e);
var _1f=this;
this.tagslider=new dijit.form.HorizontalSlider({name:"tagslider",discreteValues:101,pageIncrement:5,value:this.selectedVisibleRank==-1?0:this.selectedVisibleRank,minimum:100,maximum:0,intermediateChanges:true,onChange:function(_20){
_20=Math.round(_20);
if(_1f.selectedVisibleRank!=_20){
_1f.selectedVisibleRank=_20;
_1f.updateVisibility();
}
_1f.saveRank();
},showButtons:false},_1e);
this.sliderNode=this.tagslider.domNode;
this.sliderNode.style.paddingTop="3px";
this.sliderNode.style.display="none";
}
if(!this.cloudNode){
var el=this.domNode;
var div=this.cloudNode=d.createElement("p");
if(_1d.length==0){
var _21=d.createElement("div");
_21.className="qkrEmpty";
_21.appendChild(d.createTextNode(this.msgNoTags?this.msgNoTags:this._strings.NO_TAGS));
div.appendChild(_21);
el.appendChild(div);
this.sliderNode.style.display="none";
this.loadingNode.style.display="none";
}else{
dojo.addClass(div,"lotusTagCloud");
dijit.setWaiRole(div,"navigation");
dijit.setWaiState(div,"controls","lotusContent");
this.sliderNode.style.display=_1d.length>this.minimumVisible?"":"none";
this.displayCloud(div,_1d);
this.loadingNode.style.display="none";
el.appendChild(div);
this.renderMenu(false);
}
}else{
this.sliderNode.style.display=_1d.length>this.minimumVisible?"":"none";
this.cloudNode.style.display="";
this.loadingNode.style.display="none";
this.renderMenu(false);
}
},renderTagForCloud:function(d,el,tag,_22,_23,tc){
var li=d.createElement("li");
dijit.setWaiState(li,"selected","false");
li.className="qkrTagRank"+tag.rank;
if(_23){
dojo.addClass(li,"lotusSelected");
dijit.setWaiState(li,"selected","true");
}else{
if(!this.isRankVisible(tag.rank)){
dojo.addClass(li,"lotusHidden");
}
}
var _24="lotusF"+tc;
if(this.generateLinkToTag){
var a=d.createElement("a");
dojo.addClass(a,_24);
this.generateLinkToTag(tag.name,a);
if(this.dialog){
dojo.connect(a,"onclick",this,"cancel");
}
a.appendChild(d.createTextNode(tag.name));
a.title=tag.name;
li.appendChild(a);
}else{
var _25=d.createElement("span");
dojo.addClass(_25,_24);
_25.className="lotusLeft";
_25.appendChild(d.createTextNode(tag.name));
_25.title=tag.name;
li.appendChild(_25);
}
el.appendChild(li);
el.appendChild(d.createTextNode(" "));
},renderMenu:function(_26){
var d=document;
var _27=this.tags;
var el=this.domNode;
if(this.menuNode){
while(this.menuNode.firstChild){
this.menuNode.removeChild(this.menuNode.firstChild);
}
this.menuNode.parentNode.removeChild(this.menuNode);
this.menuNode=null;
}
if(!this.hasTags){
return;
}
var div=this.menuNode=d.createElement("p");
div.className="lotusChunk";
var ul=d.createElement("ul");
ul.className="lotusActions lotusInlinelist";
dijit.setWaiRole(ul,"presentation");
var li=d.createElement("li");
li.className="lotusFirst";
li.appendChild(d.createTextNode(this._strings.VIEW_AS));
li.appendChild(d.createTextNode(" "));
if(!_26){
ul.appendChild(li);
var li=d.createElement("li");
li.appendChild(d.createTextNode(this._strings.CLOUD));
li.className="qkrActiveTagView lotusFirst";
}else{
var a=d.createElement("a");
a.href="javascript:;";
dojo.connect(a,"onclick",dojo.hitch(this,this.update,"cloud"));
a.appendChild(d.createTextNode(this._strings.CLOUD));
a.title=this._strings.CLOUD_TITLE;
li.appendChild(a);
}
ul.appendChild(li);
var li=d.createElement("li");
if(_26){
li.appendChild(d.createTextNode(this._strings.LIST));
li.className="qkrActiveTagView";
}else{
var a=d.createElement("a");
a.href="javascript:;";
dojo.connect(a,"onclick",dojo.hitch(this,this.update,"list"));
a.appendChild(d.createTextNode(this._strings.LIST));
a.title=this._strings.LIST_TITLE;
li.appendChild(a);
}
ul.appendChild(li);
div.appendChild(ul);
el.appendChild(div);
},renderAllPopup:function(){
if(!_28){
var d=document;
var div=d.createElement("DIV");
d.body.appendChild(div);
var _28=this.dialog=new lconn.share0.widget.Dialog({duration:100},div);
this.createDialog(_28);
}
_28.show();
},createDialog:function(_29){
var d=document;
var _2a=this.tags;
var _2b=d.createElement("div");
_2b.className="lotusDialogBorder";
_2b.style.width=this.wDialog;
dijit.setWaiRole(_2b,"alert");
var el=d.createElement("div");
el.className="lotusDialog";
var h1=d.createElement("h1");
var a=lconn.share0.actions.createCancelButton(d,this._strings.CANCEL);
dijit.setWaiRole(a,"button");
dojo.connect(a,"onclick",this,"cancel");
h1.appendChild(a);
h1.appendChild(d.createTextNode(this._strings.POPUPTITLE));
el.appendChild(h1);
var _2c=d.createElement("div");
var _2d=d.createElement("div");
_2c.appendChild(_2d);
el.appendChild(_2c);
_2b.appendChild(el);
_29.setContent(_2b);
var opt=dojo.mixin({sK:"name",sO:"asc",includeCount:true,pageSize:this.initialAllTagCount},this.tagScope);
var url=lconn.share0.util.uri.rewriteUri(this.url,opt);
this.tagStream=new lconn.share0.widget.TagStream({_strings:this._strings,url:url,net:this.net,displayCloud:dojo.hitch(this,this.displayCloud),onUpdate:dojo.hitch(_29,_29.layout)},_2d);
this.tagStream.update();
},destroy:function(){
this.cancel();
this.inherited(arguments);
},cancel:function(e){
if(e){
dojo.stopEvent(e);
}
var _2e=this.dialog;
if(_2e){
_2e.onCancel();
this.dialog.destroyRecursive();
this.dialog=null;
}
if(this.tagStream){
lconn.share0.util.misc.destroy(this.tagStream);
this.tagStream=null;
}
},displayCloud:function(div,_2f){
var d=document;
var min;
var max;
for(var i=0;i<_2f.length;i++){
if(_2f[i].weight>=0){
if(!(min>=0)||min>_2f[i].weight){
min=_2f[i].weight;
}
if(!(max>=0)||max<_2f[i].weight){
max=_2f[i].weight;
}
}
}
var _30=max-min;
var _31=_30==0?0:(1/_30);
var _32=1;
var _33=this.tagCloudFontSize;
while(_30<_33-_32){
if(_30<_33-++_32){
_33--;
}
}
var ul=d.createElement("ul");
for(var i=0;i<_2f.length;i++){
var _34=_2f[i].weight>=0?((_2f[i].weight-min)*_31):0.5;
var _35=_32+Math.round((_33-_32)*_34);
this.renderTagForCloud(d,ul,_2f[i],i,(this.activeTags&&this.activeTags[_2f[i].name]),_35);
}
div.appendChild(ul);
}});
}


;if(!dojo._hasResource["lconn.share0.widget.ImagePop"]){
dojo._hasResource["lconn.share0.widget.ImagePop"]=true;
dojo.provide("lconn.share0.widget.ImagePop");


dojo.declare("lconn.share0.widget.ImagePop",[dijit._Widget],{showDelay:100,hideDelay:100,orient:"tl",buildRendering:function(){
var d=document;
var el=this.domNode=this.srcNodeRef;
if(this.baseClass){
dojo.addClass(el,this.baseClass);
}
var t=this.target;
dojo.forEach(["onMouseOver","onMouseOut","onHover","onUnHover"],function(_1){
this.connect(t,_1.toLowerCase(),"_"+_1);
},this);
},uninitialize:function(){
this.close();
if(this.largeImage){
this.largeImage.parentNode.removeChild(this.largeImage);
this.largeImage=null;
}
if(this.listeners){
dojo.forEach(this._listeners,dojo.disconnect);
delete this._listeners;
}
},_onMouseOver:function(e){
this._onHover(e);
},_onMouseOut:function(e){
if(dojo.isDescendant(e.relatedTarget,e.target)){
return;
}
this._onUnHover(e);
},_onHover:function(e){
if(this._hideTimer){
clearTimeout(this._hideTimer);
delete this._hideTimer;
}
if(!this._showTimer){
var _2=e.target;
this._showTimer=setTimeout(dojo.hitch(this,function(){
this.open(_2);
}),this.showDelay);
}
},_onUnHover:function(e){
if(this._focus){
return;
}
if(this._showTimer){
clearTimeout(this._showTimer);
delete this._showTimer;
}
if(!this._hideTimer){
this._hideTimer=setTimeout(dojo.hitch(this,"close"),this.hideDelay);
}
},_onMouseOverT:function(){
if(this._connectNode){
this._onMouseOver({target:this._connectNode});
}
},_onMouseOutT:function(e){
if(dojo.isDescendant(e.relatedTarget,e.target)){
return;
}
this._onUnHover({target:this._connectNode});
},_onHoverT:function(){
if(this._connectNode){
this._onHover({target:this._connectNode});
}
},_onUnHoverT:function(){
if(this._connectNode){
this._onUnHover({target:this._connectNode});
}
},_getImage:function(){
var _3=this.largeImage;
if(!_3){
_3=this.largeImage=document.createElement("img");
_3.src=this.target.src;
dijit.popup.prepare(_3);
this._listeners=[dojo.connect(_3,"onmouseover",this,"_onMouseOverT"),dojo.connect(_3,"onmouseout",this,"_onMouseOutT"),dojo.connect(_3,"onhover",this,"_onHoverT"),dojo.connect(_3,"onunhover",this,"_onUnHoverT")];
}
return _3;
},_disconnectTooltip:function(){
dojo.forEach(this._listeners||[],function(l){
dojo.disconnect(l);
});
delete this._listeners;
},left:function(_4,_5){
var l=_4.x;
if(this.orient.charAt(1)==(this.isLeftToRight()?"r":"l")){
l-=(_5.w-_4.w);
}
return l;
},top:function(_6,_7){
var t=_6.y;
if(this.orient.charAt(0)=="b"){
t-=(_7.h-_6.h);
}
return t;
},open:function(_8){
_8=_8||this.target;
if(!_8){
return;
}
if(this._showTimer){
clearTimeout(this._showTimer);
delete this._showTimer;
}
var _9=this._connectNode=this._getImage();
_9.style.display="";
var a=dojo.coords(this.target,true);
var c=dojo.contentBox(this.target);
a.h=c.h;
a.w=c.w;
var b=dojo.contentBox(_9);
dojo.marginBox(_9,{l:this.left(a,b),t:this.top(a,b)});
_9.style.visibility="";
},close:function(){
if(this._showTimer){
clearTimeout(this._showTimer);
delete this._showTimer;
}
delete this._connectNode;
var _a=this._getImage();
_a.style.display="none";
_a.style.visibility="hidden";
}});
}


;if(!dojo._hasResource["lconn.share0.action.Action"]){
dojo._hasResource["lconn.share0.action.Action"]=true;
dojo.provide("lconn.share0.action.Action");
dojo.declare("lconn.share0.action.Action",null,{_prerequisites:[],constructor:function(_1){
if(arguments.length==1){
dojo.mixin(this,arguments[0]);
}
},_addPrerequisite:function(pr){
if(!dojo.some(this._prerequisites,function(_2){
return _2.id==pr.id;
})){
this._prerequisites.push(pr);
}
},isValid:function(_3,_4){
return true;
},getName:function(_5,_6){
return this.name||"";
},getTooltip:function(_7,_8){
return this.tooltip||"";
},_checkPrerequisites:function(_9){
var _a=this;
return dojo.some(this._prerequisites,function(pr){
var f=pr.isValid(_a,_9);
if(!f){
if(pr._errorTopic){
dojo.publish(pr._errorTopic,[{src:_a,action:_a.name,errorId:pr.id,scene:_a.scene}]);
}
return true;
}
});
},execute:function(_b,_c,e){
if(e){
dojo.stopEvent(e);
}
if(this._checkPrerequisites(arguments)){
return false;
}
this._execute(_b,_c,e);
},_execute:function(_d,_e,e){
},getUrlResource:function(_f,opt){
return null;
},addExtra:function(_10,el){
}});
}


;if(!dojo._hasResource["lconn.share0.action.EditDraft"]){
dojo._hasResource["lconn.share0.action.EditDraft"]=true;
dojo.provide("lconn.share0.action.EditDraft");




dojo.declare("lconn.share0.action.EditDraft",[lconn.share0.action.Action],{constructor:function(_1,_2){
this.app=_1;
this.name=_1.nls.CONTENT.EDIT;
this.tooltip=_1.nls.CONTENT.EDIT_DRAFT_TOOLTIP;
},isValid:function(_3,_4){
return true;
},execute:function(_5,_6,e){
if(e){
dojo.stopEvent(e);
}
var _7;
var _8=null;
var _9=null;
if(_5.getDraftId){
_7=_5.getDraftId();
_9=_5.getAuthor();
_8=true;
}else{
_7=_5.getId();
_9=_5.getDocumentAuthor();
_8=_5.getDocumentId();
}
if(_8){
this.app.navigate(this.app.routes.getEditDraftSummaryUrl(_9?_9.id:this.app.authenticatedUser.id,_7));
}else{
this.app.navigate(this.app.routes.getUserCreatePagesUrl(this.app.authenticatedUser.id,{draftId:_7}));
}
},complete:function(_a,_b){
if(_a instanceof Error){
this.onerror("unknown");
}else{
this.onsuccess();
}
},onsuccess:function(){
},ondelete:function(){
},onerror:function(_c){
lconn.share0.util.html.alert(this.app.nls.CONTENT.EDIT_PAGE_ERROR);
}});
}


;if(!dojo._hasResource["lconn.share0.action.DiscardDraft"]){
dojo._hasResource["lconn.share0.action.DiscardDraft"]=true;
dojo.provide("lconn.share0.action.DiscardDraft");




dojo.declare("lconn.share0.action.DiscardDraft",[lconn.share0.action.Action],{_stringsPrefix:"DISCARD_DRAFT",constructor:function(_1,_2,_3){
this.app=_1;
this.scene=_2;
this.nls=_1.nls[this._stringsPrefix];
this.name=this.nls.ACTION;
this.tooltip=this.nls.ACTION_TOOLTIP;
},isValid:function(_4,_5){
return true;
},execute:function(_6,_7,e){
if(e){
dojo.stopEvent(e);
}
var _8=true;
if(_7&&_7.doConfirm!=null){
_8=_7.doConfirm;
}
var f=dojo.hitch(this,this._execute,_6,_7);
if(_8){
lconn.share0.util.html.confirm(this.nls.CONFIRM,f);
}else{
f();
}
},_execute:function(_9,_a){
var _b;
var _c;
var _d=null;
var _e=this.app;
if(!_9.getUrlEntry&&_9.id){
_b=_9.id;
_d=_9.docAuthor;
_c=true;
}else{
if(_9.getDraftId){
_b=_9.getDraftId();
_d=_9.getAuthor();
_c=false;
}else{
_b=_9.getId();
_d=_9.getDocumentAuthor();
_c=false;
}
}
_e.net.deleteXml({url:_e.routes.getDraftInfoServiceUrl(_d?_d.id:_e.authenticatedUser.id,_b),handle:dojo.hitch(this,this.complete,_9,_b,_c)});
},complete:function(_f,_10,_11,_12,_13){
if(_12 instanceof Error){
this.onerror(_12.code,_11);
return false;
}
dojo.publish("lconn/wikis/draft/discarded");
var e={draftDiscarded:true,messages:{info:true,message:this.nls.INFO_SUCCESS}};
dojo.publish("lconn/share/action/completed",[e,this]);
this.ondeletedraft(_10);
return true;
},ondeletedraft:function(_14){
},onerror:function(_15,_16){
if(!_16){
var msg;
if(_15=="cancel"){
msg=this.nls.ERROR_CANCEL;
}else{
if(_15=="timeout"){
msg=this.nls.ERROR_TIMEOUT;
}else{
if(_15=="ItemNotFound"){
msg=this.nls.ERROR_NOT_FOUND;
if(this.app.resetUnsavedChanges){
this.app.resetUnsavedChanges();
}
this.ondeletedraft();
}else{
if(!(_15=="unauthenticated"&&this.app.useStandardLogin)){
msg=this.nls.ERROR;
}
}
}
}
if(msg){
lconn.share0.util.html.alert(msg);
}
}
}});
}

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

;if(!dojo._hasResource["lconn.wikis.action.DiscardDraft"]){
dojo._hasResource["lconn.wikis.action.DiscardDraft"]=true;
dojo.provide("lconn.wikis.action.DiscardDraft");


dojo.declare("lconn.wikis.action.DiscardDraft",[lconn.share0.action.DiscardDraft],{_execute:function(_1,_2){
var _3=this.app;
var _4;
var _5;
var _6=_2.libraryId?_2.libraryId:null;
if(!_1.getUrlEntry&&_1.id){
_4=_1.id;
_5=true;
}else{
if(_1.getDraftId){
_4=_1.getDraftId();
_5=false;
}else{
_4=_1.getId();
_5=false;
}
}
_3.net.deleteXml({url:_3.routes.getDraftEntryServiceUrl(_6,_4),handle:dojo.hitch(this,this.complete,_1,_4,_5)});
},ondeletedraft:function(){
var q=this.app.getQuota();
if(q){
q.expire();
}
}});
}


;if(!dojo._hasResource["lconn.share0.bean.StreamPermissions"]){
dojo._hasResource["lconn.share0.bean.StreamPermissions"]=true;
dojo.provide("lconn.share0.bean.StreamPermissions");
dojo.declare("lconn.share0.bean.StreamPermissions",null,{constructor:function(_1){
dojo.mixin(this,_1);
},canTag:function(_2){
return this.isAuthenticated();
},canRate:function(_3){
return this.isAuthenticated();
},canEdit:function(_4){
return _4&&this.isAuthenticated()&&(this.isOwner(_4)||_4.getPermissions().Edit||this.isAdministrator());
},canAdd:function(_5){
return _5&&this.isAuthenticated()&&(this.isOwner(_5)||_5.getPermissions().AddChild||this.isAdministrator());
},canShare:function(_6){
return _6&&this.isAuthenticated()&&(_6.isPublic()||_6.isViralShareAllowed()||_6.getPermissions().GrantAccess);
},canDelete:function(_7){
return this.isAuthenticated()&&(this.isOwner(_7)||this.isAdministrator());
},canChangeVisibility:function(_8){
return this.isAuthenticated()&&(this.isOwner(_8)||this.isAdministrator());
},canDemote:function(_9){
return this.isAuthenticated()&&(_9.getPermissions().GrantAccess||this.isOwner(_9)||this.isAdministrator());
},canPromote:function(_a){
return this.canShareWithEdit(_a);
},canShareWithEdit:function(_b){
return this.isAuthenticated()&&(this.isOwner(_b)||this.isAdministrator());
},canDeleteShare:function(_c){
return this.isAuthenticated()&&(_c.getPermissions().GrantAccess||this.isOwner(_c)||this.isAdministrator());
},isOwner:function(_d){
return this.owner||(_d&&this.authenticatedId&&this.authenticatedId==_d.getAuthor().id);
},isShareOwner:function(_e,_f){
return this.owner||(_f&&this.authenticatedId&&this.authenticatedId==_f.getAuthor().id)||(_e&&this.authenticatedId&&this.authenticatedId==_e.getOwner().id);
},isAuthenticated:function(s){
return (s?(s==this.authenticatedId):(typeof this.authenticatedId=="string"));
},isAdministrator:function(){
return this.admin;
}});
}


;if(!dojo._hasResource["lconn.share0.bean.Library"]){
dojo._hasResource["lconn.share0.bean.Library"]=true;
dojo.provide("lconn.share0.bean.Library");






dojo.declare("lconn.share0.bean.Library",null,{constructor:function(e){
this.e=e;
},getUrlEntry:function(){
return lconn.share0.util.uri.makeAtomUrlIESafe(lconn.share0.util.dom.getChildElementAttributeMatching(this.e,"link","rel","self","href"));
},getOwner:function(){
if(!this.author){
var _1=lconn.share0.util.dom.getElementsByTagName(this.e,"author")[0];
this.author={id:decodeURIComponent(lconn.share0.util.dom.getChildElementTextContent(_1,"uri")),name:lconn.share0.util.dom.getChildElementTextContent(_1,"name"),email:lconn.share0.util.dom.getChildElementTextContent(_1,"email")};
}
return this.author;
},getSize:function(){
return lconn.share0.util.text.parseInt(lconn.share0.util.dom.getChildElementTextContentNS(this.e,"librarySize",lconn.share0.util.dom.DOCUMENTS_ATOM_NAMESPACE),0);
},getQuota:function(){
return lconn.share0.util.text.parseInt(lconn.share0.util.dom.getChildElementTextContentNS(this.e,"libraryQuota",lconn.share0.util.dom.DOCUMENTS_ATOM_NAMESPACE),-1);
},hasQuota:function(){
return (this.getQuota()>0);
},getDefaultDocumentUuid:function(){
var d=this.getDefaultDocument();
if(d){
return d.getId();
}
return lconn.share0.util.dom.getChildElementTextContentNS(this.e,"defaultDocumentUuid",lconn.share0.util.dom.DOCUMENTS_ATOM_NAMESPACE);
},getDefaultDocument:function(){
var d=this.defaultDocument;
if(!d){
var el=lconn.share0.util.dom.getElementsByTagNameNS(this.e,"defaultDocument",lconn.share0.util.dom.DOCUMENTS_ATOM_NAMESPACE)[0];
if(el){
el=el.getElementsByTagName("entry")[0];
if(el){
d=this.defaultDocument=new lconn.share0.bean.Page(el);
}
}
}
return d;
}});
dojo.declare("lconn.share0.bean.LibraryFromFeed",[lconn.share0.bean.Library],{constructor:function(e){
},getUrlEntry:function(){
var _2=this.urlEntry;
if(!_2){
_2=lconn.share0.util.uri.makeAtomUrlIESafe(lconn.share0.util.dom.getChildElementAttributeMatching(this.e,"link","rel","self","href"));
_2=lconn.share0.util.uri.parseUri(_2);
_2.path=_2.path.replace(/\/feed$/,"/entry");
_2=this.urlEntry=lconn.share0.util.uri.writeUri(_2);
}
return _2;
}});
}


;define("dojox/html/_base",["dojo/_base/declare","dojo/Deferred","dojo/dom-construct","dojo/html","dojo/_base/kernel","dojo/_base/lang","dojo/ready","dojo/_base/sniff","dojo/_base/url","dojo/_base/xhr","dojo/when","dojo/_base/window"],function(_1,_2,_3,_4,_5,_6,_7,_8,_9,_a,_b,_c){
var _d=_5.getObject("dojox.html",true);
if(_8("ie")){
var _e=/(AlphaImageLoader\([^)]*?src=(['"]))(?![a-z]+:|\/)([^\r\n;}]+?)(\2[^)]*\)\s*[;}]?)/g;
}
var _f=/(?:(?:@import\s*(['"])(?![a-z]+:|\/)([^\r\n;{]+?)\1)|url\(\s*(['"]?)(?![a-z]+:|\/)([^\r\n;]+?)\3\s*\))([a-z, \s]*[;}]?)/g;
var _10=_d._adjustCssPaths=function(_11,_12){
if(!_12||!_11){
return;
}
if(_e){
_12=_12.replace(_e,function(_13,pre,_14,url,_15){
return pre+(new _9(_11,"./"+url).toString())+_15;
});
}
return _12.replace(_f,function(_16,_17,_18,_19,_1a,_1b){
if(_18){
return "@import \""+(new _9(_11,"./"+_18).toString())+"\""+_1b;
}else{
return "url("+(new _9(_11,"./"+_1a).toString())+")"+_1b;
}
});
};
var _1c=/(<[a-z][a-z0-9]*\s[^>]*)(?:(href|src)=(['"]?)([^>]*?)\3|style=(['"]?)([^>]*?)\5)([^>]*>)/gi;
var _1d=_d._adjustHtmlPaths=function(_1e,_1f){
var url=_1e||"./";
return _1f.replace(_1c,function(tag,_20,_21,_22,_23,_24,_25,end){
return _20+(_21?(_21+"="+_22+(new _9(url,_23).toString())+_22):("style="+_24+_10(url,_25)+_24))+end;
});
};
var _26=_d._snarfStyles=function(_27,_28,_29){
_29.attributes=[];
_28=_28.replace(/<[!][-][-](.|\s)*?[-][-]>/g,function(_2a){
return _2a.replace(/<(\/?)style\b/ig,"&lt;$1Style").replace(/<(\/?)link\b/ig,"&lt;$1Link").replace(/@import "/ig,"@ import \"");
});
return _28.replace(/(?:<style([^>]*)>([\s\S]*?)<\/style>|<link\s+(?=[^>]*rel=['"]?stylesheet)([^>]*?href=(['"])([^>]*?)\4[^>\/]*)\/?>)/gi,function(_2b,_2c,_2d,_2e,_2f,_30){
var i,_31=(_2c||_2e||"").replace(/^\s*([\s\S]*?)\s*$/i,"$1");
if(_2d){
i=_29.push(_27?_10(_27,_2d):_2d);
}else{
i=_29.push("@import \""+_30+"\";");
_31=_31.replace(/\s*(?:rel|href)=(['"])?[^\s]*\1\s*/gi,"");
}
if(_31){
_31=_31.split(/\s+/);
var _32={},tmp;
for(var j=0,e=_31.length;j<e;j++){
tmp=_31[j].split("=");
_32[tmp[0]]=tmp[1].replace(/^\s*['"]?([\s\S]*?)['"]?\s*$/,"$1");
}
_29.attributes[i-1]=_32;
}
return "";
});
};
var _33=_d._snarfScripts=function(_34,_35){
_35.code="";
_34=_34.replace(/<[!][-][-](.|\s)*?[-][-]>/g,function(_36){
return _36.replace(/<(\/?)script\b/ig,"&lt;$1Script");
});
function _37(src){
if(_35.downloadRemote){
src=src.replace(/&([a-z0-9#]+);/g,function(m,_38){
switch(_38){
case "amp":
return "&";
case "gt":
return ">";
case "lt":
return "<";
default:
return _38.charAt(0)=="#"?String.fromCharCode(_38.substring(1)):"&"+_38+";";
}
});
_a.get({url:src,sync:true,load:function(_39){
_35.code+=_39+";";
},error:_35.errBack});
}
};
return _34.replace(/<script\s*(?![^>]*type=['"]?(?:dojo\/|text\/html\b))[^>]*?(?:src=(['"]?)([^>]*?)\1[^>]*)?>([\s\S]*?)<\/script>/gi,function(_3a,_3b,src,_3c){
if(src){
_37(src);
}else{
_35.code+=_3c;
}
return "";
});
};
var _3d=_d.evalInGlobal=function(_3e,_3f){
_3f=_3f||_c.doc.body;
var n=_3f.ownerDocument.createElement("script");
n.type="text/javascript";
_3f.appendChild(n);
n.text=_3e;
};
_d._ContentSetter=_1(_4._ContentSetter,{adjustPaths:false,referencePath:".",renderStyles:false,executeScripts:false,scriptHasHooks:false,scriptHookReplacement:null,_renderStyles:function(_40){
this._styleNodes=[];
var st,att,_41,doc=this.node.ownerDocument;
var _42=doc.getElementsByTagName("head")[0];
for(var i=0,e=_40.length;i<e;i++){
_41=_40[i];
att=_40.attributes[i];
st=doc.createElement("style");
st.setAttribute("type","text/css");
for(var x in att){
st.setAttribute(x,att[x]);
}
this._styleNodes.push(st);
_42.appendChild(st);
if(st.styleSheet){
st.styleSheet.cssText=_41;
}else{
st.appendChild(doc.createTextNode(_41));
}
}
},empty:function(){
this.inherited("empty",arguments);
this._styles=[];
},onBegin:function(){
this.inherited("onBegin",arguments);
var _43=this.content,_44=this.node;
var _45=this._styles;
if(_6.isString(_43)){
if(this.adjustPaths&&this.referencePath){
_43=_1d(this.referencePath,_43);
}
if(this.renderStyles||this.cleanContent){
_43=_26(this.referencePath,_43,_45);
}
if(this.executeScripts){
var _46=this;
var _47={downloadRemote:true,errBack:function(e){
_46._onError.call(_46,"Exec","Error downloading remote script in \""+_46.id+"\"",e);
}};
_43=_33(_43,_47);
this._code=_47.code;
}
}
this.content=_43;
},onEnd:function(){
var _48=this._code,_49=this._styles;
if(this._styleNodes&&this._styleNodes.length){
while(this._styleNodes.length){
_3.destroy(this._styleNodes.pop());
}
}
if(this.renderStyles&&_49&&_49.length){
this._renderStyles(_49);
}
var d=new _2();
var _4a=this.getInherited(arguments),_4b=arguments,_4c=_6.hitch(this,function(){
_4a.apply(this,_4b);
_b(this.parseDeferred,function(){
d.resolve();
});
});
if(this.executeScripts&&_48){
if(this.cleanContent){
_48=_48.replace(/(<!--|(?:\/\/)?-->|<!\[CDATA\[|\]\]>)/g,"");
}
if(this.scriptHasHooks){
_48=_48.replace(/_container_(?!\s*=[^=])/g,this.scriptHookReplacement);
}
try{
_3d(_48,this.node);
}
catch(e){
this._onError("Exec","Error eval script in "+this.id+", "+e.message,e);
}
_7(_4c);
}else{
_4c();
}
return d.promise;
},tearDown:function(){
this.inherited(arguments);
delete this._styles;
if(this._styleNodes&&this._styleNodes.length){
while(this._styleNodes.length){
_3.destroy(this._styleNodes.pop());
}
}
delete this._styleNodes;
_6.mixin(this,_d._ContentSetter.prototype);
}});
_d.set=function(_4d,_4e,_4f){
if(!_4f){
return _4._setNodeContent(_4d,_4e,true);
}else{
var op=new _d._ContentSetter(_6.mixin(_4f,{content:_4e,node:_4d}));
return op.set();
}
};
return _d;
});


;define("dojox/layout/ContentPane",["dojo/_base/lang","dojo/_base/xhr","dijit/layout/ContentPane","dojox/html/_base","dojo/_base/declare"],function(_1,_2,_3,_4,_5){
return _5("dojox.layout.ContentPane",_3,{adjustPaths:false,cleanContent:false,renderStyles:false,executeScripts:true,scriptHasHooks:false,ioMethod:_2.get,ioArgs:{},onExecError:function(e){
},_setContent:function(_6){
var _7=this._contentSetter;
if(!(_7&&_7 instanceof _4._ContentSetter)){
_7=this._contentSetter=new _4._ContentSetter({node:this.containerNode,_onError:_1.hitch(this,this._onError),onContentError:_1.hitch(this,function(e){
var _8=this.onContentError(e);
try{
this.containerNode.innerHTML=_8;
}
catch(e){
console.error("Fatal "+this.id+" could not change content due to "+e.message,e);
}
})});
}
this._contentSetterParams={adjustPaths:Boolean(this.adjustPaths&&(this.href||this.referencePath)),referencePath:this.href||this.referencePath,renderStyles:this.renderStyles,executeScripts:this.executeScripts,scriptHasHooks:this.scriptHasHooks,scriptHookReplacement:"dijit.byId('"+this.id+"')"};
this.inherited("_setContent",arguments);
}});
});


;if(!dojo._hasResource["lconn.share0.widget.TooltipDialog"]){
dojo._hasResource["lconn.share0.widget.TooltipDialog"]=true;
dojo.provide("lconn.share0.widget.TooltipDialog");


dojo.declare("lconn.share0.widget.TooltipDialog",dijit.TooltipDialog,{closeOnLinkClick:true,_attachTemplateNodes:function(){
this.inherited(arguments);
this.connect(this.domNode,"onmouseover","onMouseOver");
this.connect(this.domNode,"onmouseout","onMouseOut");
if(this.closeOnLinkClick){
this.connect(this.domNode,"onclick","onTooltipClick");
}
},orient:function(_1,_2,_3){
var s=this["class"]+" dijitTooltipAB"+(_3.charAt(1)=="L"?"Left":"Right");
if(_2.charAt(0)!=_3.charAt(0)){
s+=" dijitTooltip"+(_3.charAt(0)=="T"?"Below":"Above");
}
this.domNode.className=s;
},onTooltipClick:function(e){
if(e){
dojo.stopEvent(e);
}
var el=e.target;
for(var i=0;el&&i<5;i++){
if(el.nodeName.toLowerCase()=="a"){
this.onCancel();
return;
}else{
el=el.parentNode;
}
}
}});
}


;if(!dojo._hasResource["lconn.share0.widget.tooltip.DialogBase"]){
dojo._hasResource["lconn.share0.widget.tooltip.DialogBase"]=true;
dojo.provide("lconn.share0.widget.tooltip.DialogBase");


dojo.declare("lconn.share0.widget.tooltip.DialogBase",lconn.share0.widget.TooltipDialog,{"class":"lotusTooltipDialog",placement:{"BL":"TL","TL":"BL","BR":"TR","TR":"BR"},placementRTL:{"BR":"TR","TR":"BR","BL":"TL","TL":"BL"},parseOnLoad:false,loadEarly:true,baseWidth:200,postMixInProperties:function(){
this.inherited(arguments);
this.ioMethod=dojo.hitch(this,this._ioMethod);
this.nls=this._strings=this.nls||this._strings;
},postCreate:function(){
this.inherited(arguments);
if(this.role){
dijit.setWaiRole(this.containerNode,this.role);
}
},destroy:function(){
dijit.popup.close(this);
this.inherited(arguments);
},_ioMethod:function(_1){
_1.handle=dojo.hitch(this,this.handleLoad);
return this.net.get(_1);
},handleLoad:function(_2,_3){
if(_2 instanceof Error){
return _2;
}
return this.renderHtml(_2,_3);
},renderLoading:function(){
var d=document;
var _4=d.createElement("div");
_4.className="lotusHelp";
if(dojo.isIE){
_4.style.width=this.baseWidth/2+"px";
}
var _5=d.createElement("div");
_5.className="lotusInfoBox";
if(this.header){
var h3=d.createElement("h3");
h3.appendChild(d.createTextNode(this.header));
_5.appendChild(h3);
}
_5.appendChild(d.createTextNode(this.label));
_4.appendChild(_5);
return _4;
},onDownloadStart:function(){
return this.renderLoading();
},onDownloadError:function(_6){
var _7=this.getErrorMessage(_6);
var d=document;
var _8=d.createElement("div");
_8.className="lotusHelp";
if(dojo.isIE){
_8.style.width=this.baseWidth/2+"px";
}
var _9=d.createElement("div");
_9.className="lotusInfoBox";
if(this.header){
var h3=d.createElement("h3");
h3.appendChild(d.createTextNode(this.header));
_9.appendChild(h3);
}
_9.appendChild(d.createTextNode(_7));
_8.appendChild(_9);
return _8;
},getErrorMessage:function(_a){
if(_a.msg){
return _a.msg;
}
var _b;
var _c=_a.code;
if(this.nls){
if(_c=="cancel"){
_b=this.nls.ERROR_CANCEL;
}else{
if(_c=="timeout"){
_b=this.nls.ERROR_TIMEOUT;
}else{
if(_c=="AccessDenied"){
_b=this.nls.ERROR_ACCESS_DENIED;
}else{
if(_c=="ItemNotFound"){
_b=this.nls.ERROR_NOT_FOUND;
}
}
}
}
if(!_b){
_b=this.nls.ERROR;
}
}
return _b||this.msgError;
},updatePosition:function(){
}});
}


;if(!dojo._hasResource["lconn.share0.widget.tooltip.HelpText"]){
dojo._hasResource["lconn.share0.widget.tooltip.HelpText"]=true;
dojo.provide("lconn.share0.widget.tooltip.HelpText");


dojo.declare("lconn.share0.widget.tooltip.HelpText",lconn.share0.widget.tooltip.DialogBase,{autofocus:false,label:"Loading...",width:200,maxWidth:400,ioArgs:{auth:{preventReload:true},handleAs:"json",noStatus:true},renderHtml:function(_1,_2){
var d=document;
var el=d.createElement("div");
el.className="lotusHelp";
var w=this.width+Math.min(Math.max(0,(_1.message.length-200)/125),1)*(this.maxWidth-this.width);
el.style.width=w+"px";
var _3=d.createElement("div");
_3.className="lotusInfoBox";
dijit.setWaiRole(_3,"document");
var _4;
if(this.labelClose){
var _5=d.createElement("div");
_5.className="lotusRight";
_4=this.closeLink=d.createElement("a");
_4.title=this.labelClose;
dijit.setWaiState(_4,"label",this.labelClose);
_4.className="lotusDelete";
_4.href="javascript:;";
dijit.setWaiRole(_4,"button");
var _6=d.createElement("img");
_6.src=this._blankGif;
_6.setAttribute("alt",this.labelClose);
dijit.setWaiRole(_6,"presentation");
_4.appendChild(_6);
var _7=d.createElement("span");
_7.className="lotusAltText";
_7.appendChild(d.createTextNode("X"));
_4.appendChild(_7);
_5.appendChild(_4);
_3.appendChild(_5);
}
if(_1.message){
var _8=document.createElement("div");
if(_4){
_8.id=this.id+"_content";
_8.className="lotusHelpHeader";
dijit.setWaiState(_4,"describedBy",_8.id);
}
if(_1.title){
var h3=d.createElement("h3");
dijit.setWaiRole(h3,"heading");
dijit.setWaiState(h3,"level","1");
h3.appendChild(d.createTextNode(_1.title));
_3.appendChild(h3);
}
var p=d.createElement("p");
p.appendChild(d.createTextNode(_1.message));
_8.appendChild(p);
_3.appendChild(_8);
}else{
_3.appendChild(d.createTextNode(this.msgEmpty));
}
el.appendChild(_3);
return el;
}});
}


;if(!dojo._hasResource["lconn.wikis.widget.HelpLauncher"]){
dojo._hasResource["lconn.wikis.widget.HelpLauncher"]=true;
dojo.provide("lconn.wikis.widget.HelpLauncher");




dojo.declare("lconn.wikis.widget.HelpLauncher",lconn.core.widget.MenuLauncher,{openDelay:250,hideDelay:400,orient:{"TR":"TL","TL":"TR","BR":"BL","BL":"BR"},orientRTL:{"TL":"TR","TR":"TL","BL":"BR","BR":"BL"},_initMenu:function(){
this.menu=new lconn.share0.widget.tooltip.HelpText(dojo.mixin({id:this.menuId},this.optMenu));
},onOpen:function(){
this.inherited(arguments);
this.menu.containerNode.appendChild(document.createTextNode(""));
}});
}

dojo.provide("lconn.wikis.nls.ui")._built=true;
dojo.provide("lconn.wikis.nls.ui.en");
lconn.wikis.nls.ui.en={"PRINT_PAGE":{"ACTION":"Print Page","ACTION_TOOLTIP":"Print this page"},"UPLOAD":{"NAME":"Name","DESCRIPTION":"Description","FILE":"File"},"SIZE":{"B":"${0} B","MB":"${0} MB","KB":"${0} KB","GB":"${0} GB"},"APP":{"WINDOW":{"STATUSBAR":"Wikis - Ready","TITLE":"Wikis"},"ERRORS":{"CANTMANAGEMEMBERS":{"ACT":"Back to Wiki","TITLE":"You can\'t manage members","MESSAGES":"You have insufficient privileges to manage members in this Wiki.  You may have to request owner privileges to one of the owners of this wiki. "},"UNABLE_TO_LOGIN":{"ACT_OUT":"Log Out","TITLE":"Unable to log in","MESSAGES":"An error occurred when logging in to Wikis.  Please try again or contact your administrator."},"INVALID_USER":{"ACT_OUT":"Log Out","TITLE":"Access to developerWorks community is restricted","MESSAGES":"You do not have permission to use developerWorks community.  If this is unexpected or incorrect, report the problem to your administrator.   "},"LOGIN":{"ACT":"Log In","TITLE":"Log In Now","MESSAGES":"Certain portions of Wikis can only be accessed when you are logged in.  You may browse anonymously, but this page will not be visible until you authenticate."},"SEARCH_UNAVAILABLE":{"TITLE":"Search is not available","MESSAGES":"Search cannot be successful because the Search application is not available. Contact your administrator about resolving this issue.   "},"SERVER_ERROR":"An unexpected error has occurred. Please contact your system administrator.","CANTEDITPAGE":{"ACT":"Back to Page","TITLE":"You can\'t edit this page","MESSAGES":"You have insufficient privileges to edit pages in this wiki.  You may have to request editor privileges to one of the owners of this wiki. "},"CANTCREATEPAGE":{"ACT":"Back to Page","TITLE":"You can\'t create a new page","MESSAGES":"You have insufficient privileges to create new pages in this wiki.  You may have to request editor privileges to the administrator(s) of this Wiki. "},"DUPLICATE_USER":{"ACT_OUT":"Log Out","TITLE":"Your account has changed","MESSAGES":"You cannot access developerWorks community because your login information has changed. Contact your administrator about resolving this issue.   "}}},"DOWNLOAD_INFO":{"FILE":{"ERROR":"Unable to load download information","LOADING":"Loading...","EMPTY":"Anonymous users only"},"PAGE":{"ERROR":"Unable to load page view information","LOADING":"Loading...","EMPTY":"Anonymous users only"}},"LOGINHELP":{"ACT2":"Share and collaborate on files with your colleagues","ACT3":"Discuss files by leaving comments","P1":"You\'re currently logged out of Wikis.  You can still view public files and pages, but you won\'t be able to interact with other people.","ACT4":"Recommend content to others","P2":"Here\'s what you can do while logged in:","ACT5":"Follow what your favorite people are doing","NOW":"Log in now!","TITLE":"Log in to Participate!","ACT1":"Upload files and create pages"},"WIKI_UPDATED":{"SHOW":"Show Changes"},"EDIT_DRAFT":{"ACTION":"Edit Draft","ACTION_TOOLTIP":"Edit this unsaved draft"},"JAVASCRIPT_DISABLED":{"0":"JavaScript has been disabled in your web browser.  Wikis requires JavaScript in order to function.  Once you have turned it on, please refresh the page.","1":"Refresh the page to continue."},"WIKI_HOME":{"HAS_CREATED":"${0} created ${1} ${time}","HAS_UPDATED":"${0} updated ${1} ${time}","CREATED":"Created ${time}","NODESCRIPTION":"No description","SIDEBAR":{"POPULARTAGS":"Tags","NO_ITEMS":"No items found","SEARCHBOX":"Find tags","CLICKTOCOLLAPSESECTION":"click to collapse section","MOSTRECOMMENDED":"Most Liked","RECOMMENDED":"Liked","MOSTCOMMENTED":"Most Comments","MOSTVISITS":"Most Visits","ITEM_TITLE":"${0} (${1})"}},"DELETE_PAGES":{"DIALOG_TITLE":"Delete Pages","CANCEL_ERROR":"The selected pages have not been deleted because the request was cancelled.  Click \'OK\' to try again.","QUESTION":"The selected pages will be deleted.","ERROR":"The selected pages could not be deleted.  Please try again later.","TIMEOUT_ERROR":"The selected pages have not been deleted because the server could not be contacted.  Click \'OK\' to try again.   ","DISABLED_LABEL":"Delete button is disabled","INFO_SUCCESS":"The selected pages were deleted.","ENABLED_LABEL":"Delete button is enabled","ACTION":"Delete","CLOSE":"Close","BUSY":"Deleting...","CANCEL":"Cancel","ACTION_TOOLTIP":"Delete selected pages in the trash.","OK":"OK","ACCESS_DENIED_ERROR":"You no longer have permission to delete the selected pages.","NOT_LOGGED_IN_ERROR":"You must be logged in to delete pages.  Click \'OK\' to be prompted to log in.","NOT_FOUND_ERROR":"Some or all of the selected pages have either been already restored, deleted, or are no longer visible to you."},"WIKI_ACCESS_OPTIONS":{"READER":{"MEMBERS_ONLY":"Wiki members only","TITLE":"Read access:","ALL_USERS":"All users"},"EDITOR":{"EDITORS_AND_OWNERS":"Wiki editors and owners only","ALL_LOGGED_IN":"All logged in users","TITLE":"Edit access:"}},"CREATE_WIKI":{"WARN_LONG_TAGS":"The specified tags are too long.","ERROR_TITLE_TOO_LONG":"The wiki name is too long. ","ERROR_SHORTEN_DESCRIPTION":"Shorten wiki description?","TITLE_LABEL":"Name:","ERROR_EMPTY_TITLE":"The wiki name is empty. ","WARN_LONG_TAG":"The tag \'${0}\' is too long.","INFO_SUCCESS":"The wiki was created successfully.","FIX_INVALID_CHARS_IN_TITLE":"Replace invalid characters with \'_\'?","TRIM_TAGS":"Shorten tags?","CLOSE":"Close","ACTION_TOOLTIP":"Start a new wiki.","OK":"Save","NAVIGATE_AWAY_CONFIRM":"Are you sure you want to discard these unsaved changes?","TRIM_TAG":"Shorten tag?","NOT_LOGGED_IN_ERROR":"You must be logged in to create this wiki.  Click \'Save\' to be prompted to log in.","WARN_INVALID_CHARS_IN_TITLE":"Wiki names may not contain the following characters: \\ / : * ? \" \x3c \x3e | [ ] ^ ","ERROR_DESCRIPTION_TOO_LONG":"The description you entered is too long. ","CANCEL_ERROR":"The wiki was not created because the request was cancelled.  Click \'Save\' to try again.","ERROR_PROVIDE_TITLE":"Please provide a name for the wiki","ERROR_SHORTEN_TITLE":"Shorten wiki name?","ERROR":"The wiki could not be created.  Please try again later.","TIMEOUT_ERROR":"The wiki was not created because the server could not be contacted.  Click \'Save\' to try again.","FIX_RESERVED_TITLE":"Reset wiki name?","ERROR_TITLE_END_BY_EXCLAMATION_NOTALLOWED":"Please do not place the following characters at the end of title: . !","TAGS_LABEL":"Tags:","DESCRIPTION_LABEL":"Description:","ACTION":"Start a Wiki","BUSY":"Saving...","WARN_RESERVED_TITLE":"The wiki name you entered is reserved and cannot be used ","ERROR_TITLE_EXISTS":"A wiki with this name already exists, please choose another.","CANCEL":"Cancel","FORM_TITLE":"Start a Wiki"},"NAVIGATION":{"ERROR":"The page may have been deleted."},"CREATE_CHILD_PAGE":{"ACTION":"Create Child","ACTION_TOOLTIP":"Create a new child page."},"MEMBERSHIP_OPTIONS":{"SELF_REFERENCE_ERROR":"You cannot add yourself as a member.","GROUPS_LINK":"Add Groups","READERS_LABEL":"Readers:","OWNER_REFERENCE_ERROR":"You cannot add the creator of the wiki as a member.","GROUPS_LABEL":"Groups:","ROLE_OWNER":"Owner","REMOVE_USER_TOOLTIP":"Remove member","INACTIVE":"(inactive)","ROLE_READER":"Reader","CONTRIBUTORS_LABEL":"Contributors:","ROLE_CONTRIBUTOR":"Contributor","ROLES_LABEL":"Roles:","OWNERS_LABEL":"Owners:","ROLE_EDITOR":"Editor","EDITORS_LABEL":"Editors:","USERS_LABEL":"Members:"},"MOVE_PAGE_TO_TRASH":{"CONFIRM":"Are you sure you want to move page ${0} to the trash?","DIALOG_TITLE":"Move to Trash","CANCEL_ERROR":"The page has not been sent to the trash because the request was cancelled.  Click \'OK\' to try again.","ERROR":"The page could not be sent to the trash.  Please try again later.","TIMEOUT_ERROR":"The page has not been sent to the trash because the server could not be contacted.  Click \'OK\' to try again.","INFO_SUCCESS":"The page was moved to the trash.","ACTION":"Move to Trash","CLOSE":"Close","BUSY":"Moving...","ACTION_TOOLTIP":"Move this page to the trash.","CANCEL":"Cancel","OK":"OK","NOT_FOUND_ERROR":"The page has been deleted or is no longer visible to you.","ACCESS_DENIED_ERROR":"You no longer have permission to send this page to the trash.","NOT_LOGGED_IN_ERROR":"You must be logged in to send this page to the trash.  Click \'OK\' to be prompted to log in."},"WIKI_SEARCH":{"SEARCH_USERS_BUTTON":"Search","ERROR_LINK":"Search for Wikis","PLACEHOLDER":"Type a title","LABEL":"Start typing part of the title of a wiki to see suggested matches.","TITLE_BLURB":"Need to find someone\'s wiki?  Enter the person\'s name or email address in the search field, below.  As you type, we\'ll show you a list of possible matches. If you can\'t find the person you are searching for in the list, just click the Search button to see a list of all the possible matches in the directory.","NO_MATCHES":"No matches","SEARCH_DIRECTORY":"Person not listed? Use full search...","NO_RESULTS":"No results for \'${0}\'","TITLE":"Find a Wiki","INACTIVE":"(inactive)","LOADING":"Loading..."},"TAGLIST":{"ALL":"all","ERROR":"Error loading tags","OPEN":"Open","ERROR_REQUEST_CANCELLED":"Tags could not be loaded because the request was cancelled.","POPUPTITLE":"All Tags","VIEW_AS":"View as","EMPTY":"No tags found","CLOUD_TITLE":"View a tag cloud of the most popular tags.","NEXT":"Next","CLOUD":"cloud","SHOW_MORE":"Show less popular tags","NO_TAGS":"No tags found","LIST_TITLE":"View a list of the most popular tags.","PREVIOUS":"Previous","CANCEL":"Cancel","ALL_TITLE":"View all tags.","ERROR_REQUEST_TIMEOUT":"Tags could not be loaded because the server could not be contacted.","LOADING":"Loading...","LIST":"list"},"PAGEEDIT":{"DRAFT":"Draft","WARN_INVALID_CHARS_IN_NAME":"Page names may not contain the following characters: \\ / : * ? \" \x3c \x3e | [ ] ^","WARN_LONG_TAGS":"The specified tags are too long.","ERROR_QUOTA_VIOLATION":"There is not enough space in the wiki to save the page. Before uploading you must delete ${0} of pages, attachments, or versions to create space.","SHARE_PROPAGATE":"Sharing:","TITLE_LABEL":"Page title:","SAVE_AND_CLOSE":"Save and Close","INFO_CHANGES":{"MONTH":"Recent unsaved draft from ${date} is loaded. You can save this version or cancel to discard","TODAY":"Recent unsaved draft at ${time} is loaded. You can save this version or cancel to discard","YESTERDAY":"Recent unsaved draft at ${time} is loaded. You can save this version or cancel to discard","DAY":"Recent unsaved draft from ${date} at ${time} is loaded. You can save this version or cancel to discard","YEAR":"Recent unsaved draft from ${date_long} is loaded. You can save this version or cancel to discard","FULL":"Recent unsaved draft from ${date_long} at ${time_long} is loaded. You can save this version or cancel to discard"},"SAVE_LABEL":"Save","ERROR_EMPTY_NAME":"Please enter a name.","TRIM_TAGS":"Shorten tags?","WIKI_MARKUP":"Wiki Text","ERROR_QUOTA_VIOLATION_WITH_TRASH":"There is not enough space in the wiki to save the page. Before uploading you must delete ${0} of pages, attachments, or versions to create space. Consider deleting pages in Trash.","TAGS":"Tags:","SHOW_GUIDE":"Show Guide","MINOR_CHANGE":"Minor change (no notifications will be sent)?","INVALID_XHTML":"Please ensure the page source is valid XHTML.  Switching to rich text mode from source mode will convert HTML to XHTML.","ERROR_SHORTEN_PAGE_DESCRIPTION":"Shorten page description?","PROPAGATE_LABEL":"Allow this page to be shared by other people?","QUICKLINK_TOO_LONG":"The selected link name is too long and needs to be shortened.","HIDE_GUIDE":"Hide Guide","ERROR_DESCRIPTION_TOO_LONG":"The page description is too long. ","PREVIEW":"Preview","HTML_SOURCE":"HTML Source","RICH_TEXT":"Rich Text","BREADCRUMBS":{"LAST":"Editing"},"FIX_INVALID_CHARS_IN_NAME":"Replace invalid characters with \'_\'?","ERROR_CANCEL":"The page was not edited because the request was cancelled.  Click \'Save\' to try your request again.","ACTION":"Edit","TITLE":"Edit title","ERROR_NAME_EXISTS":"The page cannot be renamed because another page or file has the same name.","ERROR_MAX_CONTENT_SIZE":"The page could not be edited because it is larger than the maximum allowed page size of ${0}","WARN_RESERVED_TITLE":"The page title you entered is reserved and cannot be used ","ERROR_ACCESS_DENIED":"The page could not be edited because you are not a contributor.","ERROR_NOT_FOUND":"The page could not be edited because it has been deleted or is no longer visible to you.","MENTIONS_COMM":"The following people mentioned will not be able to view the message because they cannot access this wiki:","EDIT_TITLE":"Click to edit title","ERROR_NAME_TOO_LONG":"The page name is too long. ","NAVIGATE_AWAY_CHOICE":"Are you sure you want to abandon your changes?  Press OK to continue or cancel to return to editing.","NOTE_LABEL":"Note: ","CONVERT_TO_RICHTEXT_ERROR":"Error converting wiki text to rich text","WARNING_LAYOUT":"Your content exceeds the maximum display width.  Do you want to reformat automatically to fit the available space?","ERROR_CONCURRENT_MODIFICATION":"This page was edited by ${user} on ${date_long} ${time_long}. Saving the page will overwrite those edits.   ","CANCEL_LABEL":"Cancel","WARN_LONG_TAG":"The tag \'${0}\' is too long.","CREATE_LABEL":"Create","INFO_SUCCESS":"The page \"${0}\" was saved.","MINOR_CHANGE_TITLE":"Notification:","CONVERT_TO_WIKIMARKUP_ERROR":"Error converting to wiki text","ACTION_TOOLTIP":"Click to edit this page","MAKE_PUBLIC":"Make this page public (visible to everyone)?","TRIM_TAG":"Shorten tag?","ERROR_EXCLAMATION_NOTALLOWED":"Please do not place the following characters at the end of title: . !","ERROR_NOT_LOGGED_IN":"You must be logged in to edit this page.  Click \'Save\' to be prompted to log in.","SAVE_AND_CLOSE_LABEL":"Save and Close","MENTIONS_WIKI":"The following people mentioned will not be able to view the message because they cannot access this wiki:","VISIBILITY_LABEL":"Visibility:","ERROR_SHORTEN_PAGE_NAME":"Shorten page name?","ERROR_TIMEOUT":"The page was not edited because the server could not be contacted.  Click \'Save\' to try your request again.","FIX_RESERVED_TITLE":"Reset original page title?","SUBMIT_LABEL":"Save","CONTENT_LABEL":"Page content:","CREATE_PAGE":"Create a Page","CHANGE_SUMMARY":"Summary of changes:"},"RECYCLE_BIN":{"JUMP_TO_PAGE":"Jump to a page between \xa0","REFRESH_INPUT":"Changing the value will refresh page results","COLUMN_SIZE":"Size","JUMP_TO_PAGE_BETWEEN":"Jump to a page between ${0} and ${1}","EMPTY":"There are no pages in the trash.","SUBSCRIBE_TO_FEED":"Feed for these trashed pages","PAGE":"Page","COUNT":"${0}-${1} of ${2}","ITEMS_PER_PAGE":" items per page","SUBSCRIBE_TO_FEED_TOOLTIP":"Follow changes to these trashed pages through your feed reader","COLUMN_DATE_DELETED":"Date Deleted","DESC":"Trash contains pages removed from the wiki.","ELLIPSIS":"...","NEXT":"Next","COLUMN_NAME":"Name","FEED_LINK_TITLE":"Trash of ${0}","SELECT_ITEM":"Select page ${0}","PREVIOUS":"Previous","COLUMN_LAST_UPDATED_BY":"Last Updated By","LOADING":"Loading...","NOHYPHENCOUNT":"${0} of ${1}","OF_PAGES":" and ${0}","SHOW":"Show"},"LOADING":"Loading...","APP_LOAD_BLURB":"Please wait while the application loads...","UPLOAD_ATTACHMENT":{"DIALOG_TITLE":"Upload Attachment","WARN_INVALID_CHARS_IN_NAME":"File names may not contain the following characters: \\ / : * ? \" \x3c \x3e | [ ]","SUMMARY":"Add an attachment","NOTE_LABEL":"Note: ","ERROR_QUOTA_VIOLATION":"There is not enough space in the wiki to upload the attachment. Before uploading you must delete ${0} of pages, attachments, or versions to create space. ","WARN_NO_FILENAME":"File name is a required field.","TRIM_LONG_FILENAME":"Shorten file name?","ERROR_EXTENSION_VIOLATION":"Files with the extension ${0} are not allowed to be uploaded.","INFO_SUCCESS":"The attachment was uploaded.","TRIM_LONG_DESCRIPTION":"Shorten description?","ERROR_QUOTA_VIOLATION_WITH_TRASH":"There is not enough space in the wiki to upload the attachment. Before uploading you must delete ${0} of pages, attachments, or versions to create space. Consider deleting pages in Trash.","CLOSE":"Close","INFO_SCAN_ESTIMATE":"The process will complete in approximately ${0} ${1}","INFO_SCAN_ESTIMATE_MINUTES":"minutes","INFO_SCAN_ESTIMATE_SECOND":"second","OK":"OK","SELECT_FILE":"Please select a file to upload","ERROR_NOT_LOGGED_IN":"You must be logged in to upload this attachment.  Click \'OK\' to be prompted to log in.","NAME_LABEL":"File name: ","INFO_SCAN_ESTIMATE_SOON":"The process will complete soon.","TRANSFER_TIME":{"SEC":"${0} seconds remaining - ${1} (${2}/s)","MIN":"${0} minutes remaining - ${1} (${2}/s)","HOUR":"${0} hours remaining - ${1} (${2}/s)"},"LIMIT_HELP":"Files must be smaller than ${limit}.","WARN_QUOTA_VIOLATION":"There is not enough space in the wiki to upload the attachment. Before uploading you must delete ${0} of pages, attachments, or versions to create space.","ERROR":"The attachment could not be uploaded.  Please try again later","FILE_DOES_NOT_EXIST":"This file does not exist.  Please select a file using the browse button.","ERROR_VIRUS_FOUND":"A virus was detected in your uploaded file.  Please run a local virus scan on this file before uploading it again.","ERROR_TIMEOUT":"The attachment could not be uploaded because the server could not be contacted.  Click \'OK\' to try your request again.","TRANSFER":"Uploading ${0} @ ${1}/s","INFO_SCAN":"File is uploaded successfully. Virus scan in progress. ","TAGS_LABEL":"Tags: ","CONTENTS_LABEL":"File: ","FIX_INVALID_CHARS_IN_NAME":"Replace invalid characters with \'_\'?","WARN_LONG_FILENAME":"The file name is too long. ","ERROR_CANCEL":"The attachment could not uploaded because the request was cancelled.  Click \'OK\' to try your request again.","DESCRIPTION_LABEL":"Description: ","WARN_LONG_DESCRIPTION":"The description is too long.","ERROR_FILENAME_INVALID_CHARACTERS":"The file name may not contain the characters: % & \\ \"","INFO_SCAN_SAFE_TO_CLOSE":"You can safely close this dialog and check back later.","CONFIRM_REPLACE":"Another attachment to this page with the same name already exists.  Do you want to replace the contents of the existing attachment?","INFO_SCAN_ESTIMATE_SECONDS":"seconds","WARN_QUOTA_VIOLATION_WITH_TRASH":"There is not enough space in the wiki to upload the attachment. Before uploading you must delete ${0} of pages, attachments, or versions to create space. Consider deleting pages in Trash.","ERROR_MAX_CONTENT_SIZE":"The attachment could not be uploaded because it is larger than the maximum allowed attachment size of ${0}","INFO_SCAN_ESTIMATE_MINUTE":"minute","CANCEL":"Cancel","ERROR_ACCESS_DENIED":"The attachment could not be uploaded because you are not a contributor."},"OFFLINEHOME":{"NOTAVAILABLE":"Offline mode is not available unless Google Gears is installed and you have granted it access to the current domain.","USERS":"Users you have access to offline:"},"COMMUNITIES":{"COMMUNITY_WIKI":"Community Wiki","COMMUNITY_WIKI_TITLE":"This wiki is associated with a Community."},"MACROS":{"RICHCOMBO":{"TITLE":"Insert macros, widgets, gadgets and external data","MAIN":"Macros","MENU":"Macros..."},"TOC":{"TITLE":"Table of Contents"},"JSPROCESSTEST":{"TOOLTIP":"Macro Context Info Tooltip","MODIFIER":"Last updated by","DOWNLOAD":"Number of views","TITLE":"Title","TAGS":"Tags","WIKI_LINK":"Macro Wiki Link","PAGE_LINK":"Macro Page Link","DESCRIPTION":"Macro to test the client side macro framework","WIKI_INFO_TABLE":"Wiki Information","PAGE_INFO_TABLE":"Page Information","RATING":"Number of likes"},"TEMPLATES":{"TITLE":"Insert a full page template in a page","MAIN":"Templates","MENU":"Templates..."},"TABLE_OF_CONTENTS_HEADING_TITLE":"Heading ${0}","DATE":{"DESCRIPTION":"Outputs a human readable date at the location the macro is inserted, for test purposes."},"IDENTITY":{"PARAMS":{"STRING":"Input a String here and it will be output directly in the document when viewed.","PERSON":"Input a Person here and it will be output directly in the document when viewed.","PRINTMARKUP":"Input \"true\" or \"false\" here to indicate if you want the existing content within the macro element to be passed through and all other parameters ignored.","BOOLEAN":"Input a Boolean here and it will be output directly in the document when viewed.","MARKUP":"Input text content you want to be contained within the macro element here.","NUMBER":"Input a Number here and it will be output directly in the document when viewed.","DATE":"Input a Date here and it will be output directly in the document when viewed."},"DESCRIPTION":"Outputs either the input macro parameters or unchanged macro element content, for test purposes."}},"CONTINUE_LOGIN_TITLE":"You have logged in","FOLLOW_MENU":{"ACTION_TOOLTIP_COMMUNITY":"Follow or unfollow this community, this wiki, or this wiki page.","ACTION":"Following Actions","ACTION_TOOLTIP":"Follow or unfollow this wiki or this wiki page."},"ACCESSIBILITY":{"ANNOUNCEMENT":{"MYWIKIS_WELCOME_CLOSED":"New to Wikis box closed","PUBLICWIKIS_WELCOME_CLOSED":"New to Wikis box closed"},"LABELS":{"WELCOME":"Welcome to Wikis. Click Learn More to read more about Wikis. Click Watch Demo to visit an accessible video demonstration of Wikis. Click X to close this welcome section.","BREADCRUMB":"Wiki Breadcrumbs.","SECTION":{"COLLAPSED":"Collapsed section","EXPANDED":"Expanded section"},"EDIT":{"TAGS_COMBOBOX":"Add or remove tags"},"WIKIS_MAIN_NAVIGATION_PUBLIC":"Wikis navigation tab list. Selected item one of two : Public Wikis","CREATEPAGE":{"MAIN":"The page ready to be created."},"WIKIS_MAIN_NAVIGATION_MY":"Wikis navigation tab list. Selected item two of two : My Wikis","PAGESINDEX":{"USER_COMBOBOX":"Edited by","MAIN":"List of all pages.","PAGE_COMBOBOX":"Go to page"},"TOOLTIPS":{"BUTTON":"Tooltip help","DIALOG":"Tooltip help"},"STREAMS":{"SHOW25":"Show 25 items per page","DISPLAY":"Display Options","SHOW16":"Show 16 items per page","ASCENDING":"${0} Ascending","DESCENDING":"${0} Descending","SHOW50":"Show 50 items per page","SHOW64":"Show 64 items per page","SHOW10":"Show 10 items per page","SHOW32":"Show 32 items per page","SORT":"Sort by"},"WIKIS_MAIN_NAVIGATION_UNSELECTED":"Wikis navigation tab list. Two items, none selected.","EDITPAGE":{"RICHTEXTEDITOR":"Rich Text editor description","MAIN":"The page ready for editing."},"PUBLICWIKIS":{"COMPLEMENTARY_STATS":"Lists of most popular wikis and most visited wikis.","MAIN":"A list of public wikis."},"VERSIONS":{"COMPARE_FROM":"First version","VIEW":{"MAIN":"Previous version of the page."},"COMPARE":{"MAIN":"Comparison of page versions."},"COMPARE_TO":"Second version","DELETED_STARTS":"Deleted text starts:","INSERTED_STARTS":"Inserted text starts:","DELETED_ENDS":"Deleted text ends.","DELETE_FROM":"Delete","KEY":"Deleted text is surrounded with labels \'Deleted text starts\' and \'Deleted text ends\'. New or changed text is surrounded with labels \'Inserted text starts\' and \'Inserted text ends\'.","INSERTED_ENDS":"Inserted text ends."},"REQUIRED":"* Required","GROUP":{"ROLE":"New group role"},"PERSONALPAGES":{"MAIN":"List of pages edited by a specified user."},"EDITOR":{"HTMLGUIDE":"Basic HTML guide.","HIDESHOWBUTTON":"Hides or shows a guide in a complementary section after the editor.","TABLIST":"Preview and editing tabs","SUMMARY":"CKEditor","HTMLEDITOR":"HTML source editor","WIKITEXTEDITOR":"Wiki Text editor","WIKITEXTGUIDE":"Basic wiki markup guide."},"BREADCRUMBS":"Breadcrumb trail of links","MYWIKIS":{"BOTTOM_PAGE_NAVIGATION":"Secondary paging","NAVIGATION":"Navigation box with links to different views: wikis you own, wikis you can edit, wikis you can read, and wikis you\'re following.","MAIN":"Wikis you own, are a member of, or are following.","TOP_PAGE_NAVIGATION":"Primary paging"},"MYPAGES":{"MAIN":"List of pages you edited."},"MEMBERS":{"ADDED":{"READER":"Selected ${0} as a Reader","OWNER":"Selected ${0} as an Owner","CONTRIBUTOR":"Selected ${0} as a Contributor","EDITOR":"Selected ${0} as an Editor"},"REMOVED":{"OWNER":"Removed ${0} from Owners","READER":"Removed ${0} from Readers","CONTRIBUTOR":"Removed ${0} from Contributors","EDITOR":"Removed ${0} from Editors"},"BOTTOM_PAGE_NAVIGATION":"Secondary paging","REMOVE":{"READER":"Remove Reader","OWNER":"Remove Owner","CONTRIBUTOR":"Remove Contributor","EDITOR":"Remove Editor"},"USERS_COMBOBOX":"Add Users","REMOVE_MEMBER":"Remove ${0}","ROLE":"New member role","GROUPS_COMBOBOX_DESC":"Type to find a group","GROUPS_COMBOBOX":"Add Groups","MAIN":"A list of all wiki members. Owners can add or remove members, and change their access rights.","TOP_PAGE_NAVIGATION":"Primary paging","USERS_COMBOBOX_DESC":"Type to find a person"},"CREATE":{"TAGS_COMBOBOX":"Add tags"},"WIKIS_MAIN_NAVIGATION":"Wikis navigation tab list. Selected item one of one : Wikis.","WIKIPAGE":{"BOTTOM_PAGE_NAVIGATION":"Secondary paging","TABLIST":"Comments, Versioning, Attachments, and About tabs","NAVIGATION":"Wiki Navigation Tree","WELCOME_PAGE_NAVIGATION":"Navigate to the parent page of this wiki.","MAIN":"Wiki page content","TOP_PAGE_NAVIGATION":"Primary paging","COMPLEMENTARY_TABS":"Additional page information","ACTIONSMENU":"Following Actions and Wiki Actions"}}},"SHARE_INFO":{"ERROR":"Unable to load share information","SHOW_INVOLVED":"Which shares apply to me?","LOADING":"Loading...","FILE":{"DOWNLOADED_CURRENT":"${0} has downloaded the most recent version of this file.","DOWNLOADED_NEVER":"${0} has not yet downloaded this file.","DOWNLOADED_OLDER":"${0} has downloaded an older version of this file."},"PAGE":{"DOWNLOADED_CURRENT":"${0} has viewed the most recent version of this page.","DOWNLOADED_NEVER":"${0} has not yet viewed this page.","DOWNLOADED_OLDER":"${0} has viewed an older version of this page."}},"USERSEARCH":{"SEARCH_USERS_BUTTON":"Search","ERROR_LINK":"Search for People","TITLE_BLURB":"Need to find someone\'s wiki?  Enter the person\'s name or email address in the search field, below.  As you type, we\'ll show you a list of possible matches. If you can\'t find the person you are searching for in the list, just click the Search button to see a list of all the possible matches in the directory.","NO_MATCHES":"No matches","SEARCH_DIRECTORY":"Person not listed? Use full search...","NO_RESULTS":"No results for \'${0}\'","USER_EMAIL":"Email","TITLE":"Search for People","INACTIVE":"(inactive)","LOADING":"Loading...","USER_NAME":"Name"},"INSERTLINK":{"DIALOG_TITLE_WIKI_PAGE":"Insert/Edit Wiki Page Link","WARN_INVALID_CHARS_IN_NAME":"File names may not contain the following characters: \\ / : * ? \" \x3c \x3e | [ ]","FROM_FILES":"From Files","ERROR_QUOTA_VIOLATION":"There is not enough space in the wiki to upload the attachment. Before uploading you must delete ${0} of pages, attachments, or versions to create space.","IMAGE_TITLE_LABEL":"Alternate text:","OPEN_IN_NEW_WINDOW_LABEL":"Open link in new window","OPTION_IMAGE_FILE":"Image file","VALIDATE_LINK_MISSING":"Select a page or file","LINK_TO_EXISTING":"Link to an existing attachment of this page","WARN_NO_FILENAME":"File name is a required field.","TRIM_LONG_FILENAME":"Shorten file name?","TITLE_LABEL":"Link display text:","NO_IMAGE_ATTACHMENTS":"This page has no existing image attachments","ERROR_EXTENSION_VIOLATION":"Files with the extension ${0} are not allowed to be uploaded.","CONTEXT_MENU_WIKI_PAGE":"Edit Wiki Page Link","TYPE_LABEL":"Type:","EDIT_LINK":"Edit Link","NO_ATTACHMENTS":"This page has no existing attachments","TYPE_FILES":"Files","WIKI_ATTACHMENT":"Wiki Attachment Link","TRIM_LONG_DESCRIPTION":"Shorten description?","ERROR_QUOTA_VIOLATION_WITH_TRASH":"There is not enough space in the wiki to upload the attachment. Before uploading you must delete ${0} of pages, attachments, or versions to create space. Consider deleting pages in Trash.","CURRENT_LINK_NAME_NOT_VALID":"The new link name is not valid","NAME_LABEL":"File name:","CONFIRM":"Confirm","TRANSFER_TIME":{"SEC":"${0} seconds remaining - ${1} (${2}/s)","MIN":"${0} minutes remaining - ${1} (${2}/s)","HOUR":"${0} hours remaining - ${1} (${2}/s)"},"NO_ITEMS":"There are no items in this wiki","SAME_AS_PAGE":"Same place as this page","WARN_QUOTA_VIOLATION":"There is not enough space in the wiki to upload the attachment. Before uploading you must delete ${0} of pages, attachments, or versions to create space. ","FROM_LIST_LABEL":"Select from the page list","ERROR_VIRUS_FOUND":"A virus was detected in your uploaded file.  Please run a local virus scan on this file before uploading it again.","ANOTHER_PERSONS_PLACE":"Another person\'s wiki","VALIDATE_URL_MISSING":"Enter a URL","OPTION_ATTACHMENT":"Attachment","DESCRIPTION_LABEL":"Description:","FIX_INVALID_CHARS_IN_NAME":"Replace invalid characters with \'_\'?","ERROR_CANCEL":"The attachment could not uploaded because the request was cancelled.  Click \'OK\' to try your request again.","WARN_LONG_DESCRIPTION":"The description is too long.","OPTION_PAGE_OR_FILE":"Page or file","IMAGE_TITLE":"Insert/Edit Image","TITLE":"Insert/Edit Link","WARN_QUOTA_VIOLATION_WITH_TRASH":"There is not enough space in the wiki to upload the attachment. Before uploading you must delete ${0} of pages, attachments, or versions to create space. Consider deleting pages in Trash.","ERROR_MAX_CONTENT_SIZE":"The attachment could not be uploaded because it is larger than the maximum allowed attachment size of ${0}","ERROR_ICON_ALT":"Error","WARN_RESERVED_PAGE_NAME":"The names \'..\' and \'.\' cannot be used as page names. You must type a different name.","ERROR_LABEL":"Error:","WIKI_PAGE":"Wiki Page Link","VALIDATE_URL_INVALID":"Enter a valid URL","LINK_TO_UPLOAD":"Upload a new attachment and link to it","EDIT_IMAGE":"Edit Image","LINK_TO_EXISTING_IMAGE":"Link to an existing image attachment of this page","INVALID_CHARS_LIST":"\\ / : * ? \" \x3c \x3e | [ ]","CHOOSE_PAGE_LABEL":"Choose a page:","VALIDATE_IMAGE_LINK_MISSING":"Select a file","ENTER_MANUALLY_LABEL":"Enter the page name manually","PAGE_NAME_LABEL":"Page name: ","FILE_LABEL":"File:","INFO_SUCCESS":"The attachment was uploaded.","VALIDATE_UPLOAD_IMAGE_TYPE":"Select an image file","DIALOG_TITLE_WIKI_ATTACHMENT":"Insert/Edit Wiki Attachment Link","NO_IMAGE_FILES":"There are no image files in this wiki","IMAGE_FILE_LABEL":"Image file:","REMOVE_LINK":"Remove Link","ATTACHMENT_TYPE":"Attachment type:","PAGENAME_MANDATORY_FIELD_MESSAGE":"Page Name is a required field","CLOSE":"Close","SEARCH_FOR_USER":"Search for a person:","INVALID_CHARS_MESSAGE_PART1":"Plus (\'+\') characters in the link name will be replaced with underscores (\'_\').","OK":"OK","SELECT_FILE":"Please select a file to upload","IMAGE_TOOLTIP":"Insert or edit an image","TYPE_PAGES":"Pages","CONTEXT_MENU_WIKI_ATTACHMENT":"Edit Wiki Attachment Link","TOOLTIP":"Insert or edit a link","URL_LABEL":"URL:","LIMIT_HELP":"Files must be smaller than ${limit}.","OPTION_EXTERNAL_URL":"External URL","WIKI_TAB":"Wiki Page","ERROR":"The attachment could not be uploaded.  Please try again later","ERROR_TIMEOUT":"The attachment could not be uploaded because the server could not be contacted.  Click \'OK\' to try your request again.","PLACE_WHERE_IMAGE":"Place where the image file is located:","TRANSFER":"Uploading ${0} @ ${1}/s","PLACE_WHERE":"Place where the page or file is located:","WARN_RESERVED_FILE_NAME":"The names \'..\' and \'.\' cannot be used as file names. You must type a different name.","WARN_LONG_FILENAME":"The file name is too long. ","VALIDATE_ATTACHMENT_MISSING":"Select an attachment","CONFIRM_REPLACE":"Another attachment to this page with the same name already exists.  Do you want to replace the contents of the existing attachment?","CONFIRM_CLOSE":"The information you have entered on the other tabs will be lost if you continue with the current action. Press OK to continue or Cancel to return.","CANCEL":"Cancel","TYPE_ALL":"All","LINK_TO_UPLOAD_IMAGE":"Upload a new image attachment and link to it","INVALID_CHARS_MESSAGE":"Page name contains invalid characters"},"MENUBAR":{"HELP":"Help","HELP_TITLE":"Help"},"TIPS":{"P1":"Wikis make it easy to keep all your important files online.","P2":"Check back frequently - new help and new features are constantly being added.","OLDER":"Older","HIDE_TIPS":"Hide Tips","ERROR":"Unable to load help","H":"Welcome to Wikis","NEWER":"Newer"},"ADD_MEMBERS":{"OWNERS":"Owners:","DIALOG_TITLE":"Add Members","CANCEL_ERROR":"Members were not added because the request was cancelled.  Click \'OK\' to try again.","NO_MEMBERS_ERROR":"Please select one or more people to add.","EDITORS":"Editors:","CAPTION":"Who do you want to add to this wiki?","ERROR":"Members could not be added.  Please try again later.","TIMEOUT_ERROR":"Members were not added because the server could not be contacted.  Click \'OK\' to try again.","READERS":"Readers:","INFO_SUCCESS":"Successfully added members.","ACTION":"Add Members","CONTRIBUTORS":"Contributors:","CLOSE":"Close","BUSY":"Adding...","CANCEL":"Cancel","ACTION_TOOLTIP":"Add people or groups as members of this wiki","OK":"OK","NOT_FOUND_ERROR":"The wiki has been deleted or is no longer visible to you.","ACCESS_DENIED_ERROR":"You no longer have permission to add members to this wiki.","NOT_LOGGED_IN_ERROR":"You must be logged in to add members to this wiki.  Click \'OK\' to be prompted to log in."},"STOP_SHARING_FILE":{"CONFIRM":"Are you sure you want to remove all shares on this file?\n\n${0}","TOOLTIP":"Remove all shares on this file","CANCEL_ERROR":"The file could not be shared because the request was cancelled.  Click \'Stop Sharing\' to try again.","TITLE":"Stop Sharing","ERROR":"The shares on this file could not be removed.  Please try again later.","CONFIRM_PUBLIC":"Are you sure you want to remove all shares on this file?\nNote: Because this file is public, everyone will still be able to see the file.\n\n${0}","TIMEOUT_ERROR":"The file could not be shared because the server could not be contacted.  Click \'Stop Sharing\' to try again.","NOT_FOUND_ERROR":"The file has been deleted or is no longer visible to you."},"ALERT":{"DIALOG_TITLE":"Alert","BUSY":"Busy...","OK":"OK"},"SIDEBAR":{"SHOW_TOOLTIP":"Resize the sidebar","HIDE":"Hide Sidebar \xbb","HIDE_TOOLTIP":"Click to hide the sidebar","ALERT":"The sidebar will now be collapsed by default when you use Wikis.\n\nTo see the sidebar again, move your mouse to the far right edge of the page.  You will see a gray bar appear with an arrow.  Clicking on this bar will restore the sidebar."},"REMOVE_MEMBERS":{"DIALOG_TITLE":"Remove Members","CANCEL_ERROR":"Members have not been removed because the request was cancelled.  Click \'OK\' to try again.","QUESTION":"Are you sure you want to remove selected members?","ERROR":"Members could not be removed.  Please try again later.","TIMEOUT_ERROR":"Members have not been removed because the server could not be contacted.  Click \'OK\' to try again.   ","DISABLED_LABEL":"Remove Members button is disabled","INFO_SUCCESS":"The members were removed.","CANT_REMOVE_SELF_ERROR":"You cannot remove yourself from the membership of a wiki.","ACTION":"Remove Members","ENABLED_LABEL":"Remove Members button is enabled","CLOSE":"Close","BUSY":"Removing...","ACTION_TOOLTIP":"Remove selected members from this wiki","CANCEL":"Cancel","OK":"OK","ACCESS_DENIED_ERROR":"You no longer have permission to remove members from this wiki.","NOT_LOGGED_IN_ERROR":"You must be logged in to remove members from this wiki.  Click \'OK\' to be prompted to log in.","NOT_FOUND_ERROR":"Some or all of the selected members might have been already removed from the wiki."},"DOWNLOAD_PAGE_AS_HTML":{"ACTION":"Download Page","ACTION_TOOLTIP":"Download this page as an HTML file."},"WIKIPAGE":{"MODE":{"CONFIRMNEW":"Confirm New Page","ATTACHMENTS":"Page Attachments","COMMENTS":"Comments","COMPARE":"Version Comparison","VERSIONS":"Versions","INFO":"Page Info"},"SECTION":{"COMPARE":"Wiki text comparison","HIERARCHY":{"MOVE":"Move Page"},"VERSION":"Version","REFRESH":"Refresh","RESTORE":"Restore this version","CHILDREN":{"NONE":"No children exist","LINK":"Create new child page"},"INFOSIZE":"${0} (${1} including page, attachments, and all versions)"},"ERROR":{"WIKI":{"WINDOWTITLE":"Wiki Not Found","TITLE":"We can\'t find that wiki","MESSAGES":"The wiki can\'t be found - click the back button and try again.  If this doesn\'t work the wiki may have been deleted."},"DEFAULT":{"TITLE":"That page cannot be displayed.","WINDOWTITLE":"Cannot Display Page","MESSAGES":"Please contact a wiki member or the person who sent you the link and verify it is correct."},"ACCESS_DENIED_ANON":{"TITLE":"You do not have access to this wiki.","WINDOWTITLE":"Access Denied","MESSAGES":"You do not have permission to view this page.  You may have access if you log in. "},"ACCESS_DENIED":{"WINDOWTITLE":"Access Denied","TITLE":"You do not have access to this wiki.","MESSAGES":"Please contact a wiki owner or the person who sent you the link and request that you be added to the membership of this wiki."},"GENERAL":{"MESSAGES":"Something went wrong - click the back button and try again. "}},"HEADER":{"MODE":{"CONFIRMNEW":"${0}: Confirm New Page","ATTACHMENTS":"${0}: Page Attachments","COMMENTS":"${0}: Comments","COMPARE":"${0}: Version Comparison","VERSION":"${0}: Version ${1}","VERSIONS":"${0}: Version ${1}","INFO":"${0}: Page Info"}},"ACTIONS":{"TOOLTIP":{"OWNER":"Create a child page or peer page, print the page, move the page, download the page as an HTML file, or delete the page.","READER":"Print the page, or download the page as an HTML file.","EDITOR":"Create a child page or peer page, print the page, move the page, or download the page as an HTML file."},"TEXT":"Page Actions"}},"MEMBERS_SUMMARY":{"LOADERROR_TIMEOUT":"Members could not be retrieved because the server could not be contacted. Please try again later.","ERROR_LOADING":"Members could not be retrieved. Please try again later.","ACCESS_DENIED":"Members could not be retrieved because the wiki has been deleted or is no longer visible to you.","NOT_FOUND":"Members could not be retrieved because the wiki has been deleted or is no longer visible to you.","LOADERROR_CANCEL":"Members could not be retrieved because the request was cancelled.","VIEW_ALL":"View All","TITLE":"Members","VIEW_ALL_1":"View All (${0})","INACTIVE":"${0} (inactive)","LOADING":"Loading..."},"HELP":"Help","WELCOME":{"MYWIKIS":{"LEARN_MORE":"Learn More","TAKE_TOUR":"View Demo","L1":"Click \"Start a Wiki\" to get started.","L2":"Tip: Click ${helpLink} to see help on a specific feature or click Help to view all help topics.","BLURB1":"{0}Start a wiki{1} and invite people to participate.","BLURB2":"{0}Create and organize{1} pages.","TITLE":"New to Wikis?","CLOSE":"Close the \"New to Wikis?\" section","BLURB3":"{0}Find wikis{1} about things you\'re interested in.","BLURB":"Create and collaborate on content with colleagues. Learn how to:","DEMO_ALT":"Screenshot of Demo Movie"},"PUBLICWIKIS":{"LEARN_MORE":"Learn More","TAKE_TOUR":"View Demo","L1":"Log in to start using Wikis.  Then click \"Start a Wiki\" to get started.","L2":"Tip: Click ${helpLink} to see help on a specific feature or click Help to view all help topics.","TITLE":"New to Wikis?","CLOSE":"Close the \"New to Wikis?\" section","BLURB":"Use Wikis to easily create content on a particular subject and build up that content with others.  Share the wiki with a small group, or make it public.  Find wikis that are already out there and read or contribute to them.  Follow wikis or wiki pages to track changes.","DEMO_ALT":"Screenshot of Demo Movie"}},"APP_ONBACK":"Are you sure you want to leave this page? Data you have entered might not be saved.","QUICKLINK":{"DIALOG_TITLE":"Quick Link","LINK_NAME_LABEL":"Link name: ","WARN_LONG_LINK_NAME":"The link name is too long.","BUTTON_LABEL":"Quick Link","TRIM_LONG_LINK_NAME":"Shorten link name?","WARN_NO_LINK_NAME":"You must provide a valid link name.","FIX_INVALID_CHARS":"Replace invalid characters with \'_\'?","CLOSE":"Close","BUSY":"Saving...","WARN_RESERVED_TITLE":"The names \'..\' and \'.\' cannot be used as link names. You must type a different name.","CANCEL":"Cancel","OK":"OK","WARN_INVALID_CHARS":"Link names cannot contain these characters: \\ / : * ? \" \x3c \x3e | [ ] +"},"WIKI_TAGS":{"PAGES_WITH_TAGS":"${0} with tags ${1}","PAGES_COUNT_MANY":"${0} pages","NOTAGS":"Not Tagged Yet","PAGES_COUNT_ONE":"1 page","WHATTAGS":"Tagged with:","TAGS_ICON":"Tags icon","WITHTAGS":"Wikis with tags:"},"WINDOWTITLE":{"WELCOME":"Welcome to Wikis","OFFLINE":"Offline","PAGESHOME":"${0} - Wiki for ${1}","PAGEINDEX":"Index of ${0} ","OFFLINEERROR":"Error - Offline","EDIT_WIKI":"Edit Wiki","FINDPEOPLE":"Find People","LOGIN":"Log in","WIKIPAGEERROR":"Error - Cannot display page","USERNOTFOUNDERROR":"We can\'t find that person","CREATE_WIKI":"Start a Wiki","WIKI_ACCESS":"Wiki Access","WIKIPAGE2":"Wiki: ${0} - Page: ${1}","WIKIPAGE3":"${1} : ${0}","PUBLICWIKIS":"Public Wikis","RECYCLE_BIN":"Trash of ${title}","STATISTICS":"Statistics","PERSONALPAGES":"Edited by ${0} in ${1}","FILEERROR":"Error - Wiki for ${0}","ABOUT":"About Wikis","FAQ":"Frequently Asked Questions (FAQ)","MYWIKIS":"My Wikis","USERCHANNEL":"${0} - Wiki for ${1}","MYPAGES":"I Edited in ${0}","MEMBERS":"Members of ${0} ","PAGEERROR":"Error - Wiki for ${0}","DOCUMENTHOME":"${0} - Wiki for ${1}","TOOLS":"Tools","USERHOMEERROR":"Error - Wiki","WIKIPAGE":"${0} - ${1}","USERSHARES":"My Shares"},"NOTIFY":{"ENABLE_SUCCESS":"Email notification enabled.","SUCCESS_IMG":"Success","DELETE":{"TIMEOUT":"Notification could not be disabled because the server could not be contacted. Please try again later.","ERROR":"Notification could not be disabled. Please try again later.","CANCEL":"Notification was not disabled because the request was cancelled."},"CREATE":{"TIMEOUT":"Notification could not be enabled because the server could not be contacted. Please try again later.","ERROR":"Notification could not be enabled. Please try again later.","CANCEL":"Notification was not enabled because the request was cancelled."},"DISABLE_SUCCESS":"Email notification disabled.","FILE":{"UNSUBSCRIBE":"You will no longer receive notifications about this file.","NOTIFY":"Notify me when this file is modified.","SUBSCRIBE":"You will now receive notifications about modifications and comments on this file."},"NO_EMAIL":"You must have an email address defined in order to receive notifications","PAGE":{"UNSUBSCRIBE":"You will no longer receive notifications about this page.","NOTIFY":"Notify me when this page is modified.","SUBSCRIBE":"You will now receive notifications about modifications and comments on this page."}},"LOGIN":{"USER_LABEL":"User name:","ACTION_TEMPLATE":"${action} to participate","ERROR":"Your user name and/or password does not match any existing accounts.  Please check and try again.","PRODUCT_BLURB":"The easy way to create content together.","PRODUCT":"Wikis","PASSWORD_LABEL":"Password:","BUTTON":"Log In","ICON_TITLE":"Wikis icon","DESCRIPTION_TITLE":"What can you do with Wikis?","ACTION":"Log in","TITLE":"Log in to Wikis","LEGAL":"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.","ACTION_TOOLTIP":"Log in to like pages, comment, and receive notifications about modifications and comments.","DESCRIPTION":"Create a central, collaborative place to manage knowledge and content with your team. With Wikis, everyone on your team can quickly contribute and share information."},"NOTIFY_COMMENT":{"NOTIFY":"Comments","DELETE":{"TIMEOUT":"Notification could not be disabled because the server could not be contacted. Please try again later.","ERROR":"Notification could not be disabled. Please try again later.","CANCEL":"Notification was not disabled because the request was cancelled."},"CREATE":{"TIMEOUT":"Notification could not be enabled because the server could not be contacted. Please try again later.","ERROR":"Notification could not be enabled. Please try again later.","CANCEL":"Notification was not enabled because the request was cancelled."},"NOTIFY_TOOLTIP":"Send me emails when people comment on this page","NO_EMAIL":"You must have an email address defined in order to receive notifications"},"PAGECREATE":{"ERROR_QUOTA_VIOLATION":"There is not enough space in the wiki to create the page. Before uploading you must delete ${0} of pages, attachments, or versions to create space.","ERROR_TIMEOUT":"The page was not created because the server could not be contacted.  Click \'Create\' to try your request again.","FIX_RESERVED_TITLE":"Reset default page title?","WARNING_LAYOUT":"Your content exceeds the maximum display width.  Do you want to reformat automatically to fit the available space?","BREADCRUMBS":{"LAST":"New Page"},"ERROR_CANCEL":"The page was not created because the request was cancelled.  Click \'Create\' to try your request again.","INFO_SUCCESS":"The page was created.","ERROR_QUOTA_VIOLATION_WITH_TRASH":"There is not enough space in the wiki to create the page. Before uploading you must delete ${0} of pages, attachments, or versions to create space. Consider deleting pages in Trash.","ERROR_MAX_CONTENT_SIZE":"The page could not be created because it is larger than the maximum allowed page size of ${0}","WARN_RESERVED_TITLE":"The page title you entered is reserved and cannot be used ","INVALID_XHTML":"Please ensure the page source is valid XHTML.  Switching to rich text mode from source mode will convert HTML to XHTML.","WILLBECHILDOF":"This page will be created as a child of: $(0} ","ERROR_BAD_ENTRIES":"There were problems with some of your entries.","ERROR_ACCESS_DENIED":"The page could not be created because you are not a contributor.","ERROR_NOT_LOGGED_IN":"You must be logged in to create this page.  Click \'Create\' to be prompted to log in."},"VIEWS":{"MEMBERS_DETAILS_TOOLTIP":"Details for all entries","MAP_TOOLTIP":"Files arranged according to their relevance","DETAILS":"Details","MEDIA":"Tiles","MEMBERS_SUMMARY_TOOLTIP":"Summary of all entries","SUMMARY":"Summary","DETAILS_TOOLTIP":"Details for all entries","MEDIA_TOOLTIP":"Each file is shown with a large icon and a pop-up","SUMMARY_TOOLTIP":"Summary of all entries","PAGE_DETAILS_TOOLTIP":"Details for all entries","WIKI_DETAILS_TOOLTIP":"Details for all entries","PAGE_SUMMARY_TOOLTIP":"Summary of all entries","WIKI_SUMMARY_TOOLTIP":"Summary of all entries","MAP":"Map"},"WIKI_ACTIONS":{"TOOLTIP":"Edit settings of this wiki, or delete the wiki.","TEXT":"Wiki Actions"},"STOP_SHARING_PAGE":{"CONFIRM":"Are you sure you want to remove all shares on this page?\n\n${0}","CANCEL_ERROR":"The page could not be shared because the request was cancelled.  Click \'Stop Sharing\' to try again.","TOOLTIP":"Remove all shares on this page","TITLE":"Stop Sharing","ERROR":"The shares on this pages could not be removed.  Please try again later.","CONFIRM_PUBLIC":"Are you sure you want to remove all shares on this page?\nNote: Because this page is public, everyone will still be able to see the page.\n\n${0}","TIMEOUT_ERROR":"The page could not be shared because the server could not be contacted.  Click \'Stop Sharing\' to try again.","NOT_FOUND_ERROR":"The page has been deleted or is no longer visible to you."},"QUOTA":{"WIKI":{"LABEL_UNLIMITED":"This wiki is using ${size}.","LOADING":"Loading...","LABEL_ERROR":"The free space in this wiki could not be retrieved, please try again later.","LABEL_QUOTA":"This wiki is using ${size} (${fraction}%) of the ${total} limit."},"INFO_WIKI":"How much space is this wiki using?","ALERT_WARN_WITH_TRASH":"You have ${2} remaining out of an available ${1} of space. Delete old pages, page versions, unused attachments, or pages in Trash to create space.","ALERT_OVER":"You are over the maximum size for your wiki.  You have used ${0} of the allowed ${1}.","ALERT_WARN":"You have ${2} remaining out of an available ${1} of space. Delete old pages, page versions or unused attachments."},"CONTINUE_LOGIN_MESSAGE":"You have successfully logged in to developerWorks community.","CONTENT":{"EDIT_PAGE_EXISTS_ERROR":"A page with the name you have specified already exists. Please choose a different name.","ERROR_REQUEST_UNKNOWN":"An unknown error has occurred.","EDIT":"Edit","COLUMN_DN":"Distinguished Name","DELETEPAGE_ERROR_CANCEL":"The page was not deleted because the request was cancelled.  Click delete to try again.","ERROR_REQUEST_TIMEOUT":"The server could not be contacted.","DELETEPAGE_CONFIRM":"Are you sure you want to delete this page?\n\n${0}","LOADING":"Loading... ","DELETEERROR":"The file was not deleted due to an error.","TAG_TOOLTIP":"Filter by tag \'${0}\'","EDIT_PAGE_PARSING_ERROR":"The page could not be edited because it contains invalid characters.","COLUMN_DOWNLOADS":"Page Views","DELETEPAGE_ERROR":"The page was not deleted due to an error.","DELETEPAGE_ERROR_TIMEOUT":"The page was not deleted because the server could not be contacted.  Click delete to try again.","REFRESH_INPUT":"Changing the value will refresh page results","REMOVE_FILTER_LABEL":"Click to remove","COLUMN_LAST_MODIFIED":"Updated","DELETESHARECONFIRM":"Are you sure you want to stop sharing with ${0}?","COLUMN_LAST_MODIFIED_BY":"Updated By","EMPTY":{"MYWIKIS_ICONTRIBUTEDTO":{"NORMAL":"There are no wikis where you have contributed content."},"DEFAULT":"There are no files or pages in this wiki.","MYWIKIS_PUBLIC":{"FILTERED":"There are no public wikis that match your filters.","NORMAL":"There are no public wikis."},"MYWIKIS_IFOLLOW":{"NORMAL":"You are not following any wikis.","FILTERED":"You are not following any wikis that match your filters."},"MYWIKIS_ICANREAD":{"NORMAL":"There are no wikis where you can read contents.","FILTERED":"There are no wikis where you can read contents that match your filters."},"MYWIKIS_IOWN":{"FILTERED":"There are no wikis that you own that match your filters.","NORMAL":"There are no wikis that you own."},"MYWIKIS_ICANEDIT":{"NORMAL":"There are no wikis where you can edit contents.","FILTERED":"There are no wikis where you can edit contents that match your filters."},"MYWIKIS_CREATEDBYME":{"NORMAL":"There are no wikis created by you.","FILTERED":"There are no wikis created by you that match your filters."}},"TAGS_LABEL":"Tags:","REMOVE_FILTER_TOOLTIP":"Remove this filter","OF_PAGES":" and ${0}","HITS":"Page hits","HIDE":"Hide","REVERT_CONFIRM":"You are about to replace the current version of this page with version ${0}, which was created ${1} by ${2}. Do you want to proceed?","EDIT_PAGE_TOOLTIP":"Change the name, description, or contents of this page","COLUMN_SIZE":"Size","USERERROR_MESSAGES":"The wiki can\'t be found - click the back button and try again.  If this doesn\'t work the wiki may have been archived or disabled.","ITEMS_PER_PAGE":" items per page","COLUMN_DOWNLOAD":"Downloads","VIEW_SELECTION":"Display:","COLUMN_EMAIL":"Email","MORE":"More","DELETE_ERROR_TIMEOUT":"The file was not deleted because the server could not be contacted.  Click delete to try again.","CREATE_PAGE_ERROR":"The page could not be created due to an error","OTHER_PEOPLE_FILE":"Other people who have shared this file","ONE_DOWNLOAD":"1","SHARE_TOOLTIP":"Allow others to read or contribute to this file","PRIVATE":"Private","OPEN_PAGE":"Open Page","SHARED":{"BASE":"Shared with you","MANY_1":"${0} people","COUNT_ONE":"1 person","ONE":"Shared with ${0}","ONE_1":"1 person","COUNT_MANY":"${0} people","MANY":"Shared with ${0}"},"SHARE_MESSAGE":{"LIST_SEP":",\xa0"},"PUBLIC":{"MANY_1":"${0} people","BASE":"Public","ONE":"Public and shared with ${0}","ONE_1":"1 person","MANY":"Public and shared with ${0}"},"JUMP_TO_PAGE_BETWEEN":"Jump to a page between ${0} and ${1}","EDIT_PAGE_ERROR_CANCEL":"The page was not edited because the request was cancelled.  Click \'OK\' to try your request again.","CREATE_PAGE_EXISTS_ERROR":"A page with the name you have specified already exists. Please choose a different name.","USER_HAS_NO_FILES":"There are no files in this wiki","DELETESHAREERROR":"The share could not be removed","DELETESHAREERROR_TIMEOUT":"The share was not deleted because the server could not be contacted.  Click \'X\' to try again.","USERERROR_TITLE":"We can\'t find that wiki","VIEWS_TOOLTIP_ONE":"${0} view","FILTERED_BY":"Filtered by: ","COLUMN_TYPE":"Type","OPEN_WIKI":"Open Wiki","DOWNLOAD":"Download","VIEWS_TOOLTIP_MANY":"${0} views","REMOVE_FILTER_TITLE":"Remove","EDIT_PAGE_ERROR":"The page could not be edited due to an error","PAGE":"Page","EDIT_PAGE_ERROR_TIMEOUT":"The page was not edited because the server could not be contacted.  Click \'OK\' to try your request again.","COLUMN_VISITS":"Visits","DOWNLOAD_TOOLTIP_MANY":"${0} downloads","REPLACE":"Replace","DELETECONFIRM":"Are you sure you want to delete this file?\n\n${0}","SORT_BY":"Sort by: ","DELETESHARE_TOOLTIP":"Stop sharing with this person","RECOMMEND":"Like","NOHYPHENCOUNT":"${0} of ${1}","SHOWING":"Showing ","DELETESHAREERROR_CANCEL":"The share was not deleted because the request was cancelled.  Click \'X\' to try again.","VIEW":"View","COLUMN_RATING":"Most Liked","DELETE_ERROR_NOT_FOUND":"This file has already been deleted or is no longer visible to you.","DELETE":"Delete","EDIT_TOOLTIP":"Change the name, description, or contents of this file","EDIT_DRAFT_TOOLTIP":"Work with these unsaved changes","HIDE_EXTRA":"Hide extra information","DOWNLOAD_TOOLTIP_ONE":"${0} download","SHARE_PAGE_TOOLTIP":"Allow others to read or contribute to this page","COLUMN_ADDED":"Added","TAGGED_WITH":"Tagged with \'${0}\' ","DELETEPAGE_ERROR_NOT_FOUND":"This page has already been deleted or is no longer visible to you.","RECOMMENDATIONS":"Likes","SHARE":"Share","USER_HAS_NO_PAGES":"There are no pages in this wiki","COLUMN_ROLE":"Role","JUMP_TO_PAGE":"Jump to a page between \xa0","DELETE_ERROR_CANCEL":"The file was not deleted because the request was cancelled.  Click delete to try again.","COMPARE":"Compare","ERROR_REQUEST_CANCELLED":"The request was cancelled.","DELETESHAREERROR_NOT_FOUND":"The share was not deleted because the file has been deleted or is no longer visible to you.","DOWNLOADS":"${0}","ELLIPSIS":"...","COLUMN_NAME":"Name","PAGE_SUMMARY":"List of wiki pages","VIEW_EXTRA":"View more information","COLUMN_CREATED":"Created","REVERT":"Restore","ERROR":"An unknown error has occurred.","CREATE_PAGE_PARSING_ERROR":"The page could not be created because it contains invalid characters.","COMPARE_ERROR":"Could not compare this page.  Please try again.","COUNT":"${0}-${1} of ${2}","NEXT":"Next","COMMENTS":"Comments","DELETESHARE":"Remove this share","PREVIOUS":"Previous","SHOW":"Show: ","USERERROR":"The wiki you have requested cannot be displayed."},"MM_TAG":{"ADD":"Add another tag","FIND":"Find a tag","TYPE":"Type a tag","SELECTED":"Selected Tags","WARNING":"More than 3 tag filters can not be applied. Remove at least one filter before filtering by another tag. "},"FOLLOW_PAGE":{"TIMEOUT":"We were unable to change your following settings because the server could not be contacted. Please try again later.","INFO_SUCCESS_OFF":"You are following this page.","OFF_LABEL":"Click this button to stop receiving updates for changes to this wiki page.","ACTION_DISABLED":"Wiki page updates are included with the wiki updates.","ACTION_OFF":"Stop Following this Page","ERROR":"We were unable to change your following settings. Please try again later.","ACTION_ON":"Follow this Page","ACTION_DISABLED_TOOLTIP":"Wiki page updates are included with the wiki updates.","ACTION_OFF_TOOLTIP":"Stop receiving updates for changes to this wiki page.","ACTION_ON_TOOLTIP":"Receive updates for changes to this wiki page.","INFO_SUCCESS_ON":"You stopped following this page.","ON_LABEL":"Click this button to receive updates for changes to this wiki page.","CANCEL":"We were unable to change your following settings because the request was cancelled."},"PARAMETERISE_MACRO":{"DIALOG_TITLE":"Macro Parameters","PARAM_LABEL":"${0}:","DIALOG_BLURB":"Fill out the macro\'s parameters and insert it into the document.","BUTTON_LABEL":"Macro Parameters","CLOSE":"Close","BUSY":"Saving...","CANCEL":"Cancel","ERROR_ICON_ALT":"Error","ERROR_MACRO_CONFIG":"An error occurred when reading the configuration for this macro.  Please try again or contact your administrator.","OK":"OK","ERROR_LABEL":"Error:"},"FIXLAYOUT":{"BTN_LABEL":"Reformat","REFORMAT_SAVE":"Reformat and Save","SAVE_AS_IS":"Save as Is","TITLE":"Reformat Contents","CANCEL":"Cancel","SHOWWIDESCREEN":"Show widescreen view","WARNING":"Warning","EXITWIDESCREEN":"Exit widescreen view","REMEMBER_DECISION":"Remember my decision "},"SUBSCRIBE_TO_PAGE_TOOLTIP":"Follow changes to this page through your feed reader","NOTIFY_CONTENT":{"NOTIFY":"Page changes","DELETE":{"TIMEOUT":"Notification could not be disabled because the server could not be contacted. Please try again later.","ERROR":"Notification could not be disabled. Please try again later.","CANCEL":"Notification was not disabled because the request was cancelled."},"CREATE":{"TIMEOUT":"Notification could not be enabled because the server could not be contacted. Please try again later.","ERROR":"Notification could not be enabled. Please try again later.","CANCEL":"Notification was not enabled because the request was cancelled."},"NOTIFY_TOOLTIP":"Send me emails when the contents of this page change","NO_EMAIL":"You must have an email address defined in order to receive notifications"},"APP_LOAD":"Welcome to Wikis","PERSONALPAGES":{"FEED_LINK_TITLE":"Edited by ${0} in ${1}","SUBSCRIBE_TO_PERSONALPAGES":"Feed for these edited pages","ERROR":{"DEFAULT":{"TITLE":"That page cannot be displayed.","MESSAGES":"That page cannot be displayed.   "},"USERNOTFOUND":{"TITLE":"We can\'t find that person","MESSAGES":"This person has never logged in to Wikis - click the back button and try with a different person."}},"SUBSCRIBE_TO_PERSONALPAGES_TOOLTIP":"Follow changes to these edited pages through your feed reader","EMPTY":"${0} has not edited any pages in this wiki."},"DISMISS":"Hide this message","OVERWRITE":{"DIALOG_TITLE":"Warning - Save Conflict","CLOSE":"Close","BUSY":"Busy...","CANCEL":"Cancel","MESSAGE1":"While you were editing this page, someone else edited and saved it. If you save now, your version of the page will become the current version and replace their version. Their version will become a previous version.","MESSAGE2":"Click OK to continue editing, or click Cancel and then Discard to discard your edits.","OK":"OK"},"CREATE_SIBLING_PAGE":{"ACTION":"Create Peer","ACTION_TOOLTIP":"Create a new peer page."},"EDIT_MEMBER":{"EDITROLE":"Change the role for user ${0}","DIALOG_TITLE":"Edit Member","CANCEL_ERROR":"The member was not edited because the request was cancelled.  Click \'OK\' to try again.","READER":"Reader","ERROR":"The member could not be edited.  Please try again later.","TIMEOUT_ERROR":"The member was not edited because the server could not be contacted.  Click \'OK\' to try again.","EDITOR":"Editor","INFO_SUCCESS":"The member was edited.","OWNER":"Owner","ACTION":"Edit","CLOSE":"Close","BUSY":"Saving...","CANCEL":"Cancel","ACTION_TOOLTIP":"Change the role for this member of the wiki","OK":"Save","NOT_FOUND_ERROR":"The member has been removed.","ACCESS_DENIED_ERROR":"You no longer have permission to edit members of this wiki.","NOT_LOGGED_IN_ERROR":"You must be logged in to edit this member.  Click \'OK\' to be prompted to log in."},"EDIT_WIKI_TIPS":{"HEADING":"Tips","CONSIDERATION":"Consider the width of the displays on which people read the wiki. Choose appropriate image and table widths.","DESCRIPTION":"The rich text editor lets you easily create polished wiki articles that get the attention of readers. Format text and add images or links to create wiki pages that are visually interesting. Hover over the icons at the top of the editor to learn more about the features that can help to create engaging wiki content."},"WIKI_SERVICE_TITLE_BAR":"Wikis","TOGGLE_SECTION_NAMED":"Expand and collapse ${0} section","FEEDS":{"IE6SUBSCRIBE":"Warning: This link is meant for feed readers and may display incorrectly in your browser, click OK to continue, Cancel to return to page."},"SORTS":{"MOSTRECENT_TOOLTIP":"Sort from most recently updated to least recently updated","ADDED_TOOLTIP":"Sort from most recently added to least recently added","MOSTRECENT_TOOLTIP_REVERSE":"Sort from least recently updated to most recently updated","ADDED_TOOLTIP_REVERSE":"Sort from least recently added to most recently added","MOSTVISITED_TOOLTIP":"Sort from most visited to least visited","DATE_DELETED_TOOLTIP":"Sort the pages by deleted time in ascending order","MOSTDOWNLOADED_TOOLTIP":"Sort from most downloaded to least downloaded","MOSTVISITED_TOOLTIP_REVERSE":"Sort from least visited to most visited","DATE_DELETED_TOOLTIP_REVERSE":"Sort the pages by deleted time in descending order","MOSTDOWNLOADED_TOOLTIP_REVERSE":"Sort from least downloaded to most downloaded","HIGHESTRECOMMENDED_TOOLTIP":"Sort from most liked to least liked","TITLE_TOOLTIP":"Sort by name in alphabetical order","SHARED_ON_TOOLTIP":"Sort from most recently shared to least recently shared","MOSTRECENT_SHARE":"Most Recently Shared","HIGHESTRECOMMENDED_TOOLTIP_REVERSE":"Sort from least liked to most liked","TYPE_TOOLTIP":"Sort by type in alphabetical order","MOSTRECENT":"Updated","MOSTCOMMENTED_TOOLTIP":"Sort from most commented to least commented","TITLE_TOOLTIP_REVERSE":"Sort by name in reverse alphabetical order","SHARED_ON_TOOLTIP_REVERSE":"Sort from least recently shared to most recently shared","EMAIL_TOOLTIP":"Sort by email in alphabetical order","TYPE_TOOLTIP_REVERSE":"Sort by type in reverse alphabetical order","MOSTCOMMENTED_TOOLTIP_REVERSE":"Sort from least commented to most commented","EMAIL_TOOLTIP_REVERSE":"Sort by email in reverse alphabetical order","SIZE_TOOLTIP":"Sort by size from largest to smallest","MOSTVISITED":"Visits","SIZE_TOOLTIP_REVERSE":"Sort by size from smallest to largest","DATE_DELETED":"Date Deleted","MOSTDOWNLOADED":"Downloads","CREATED_TOOLTIP":"Sort from most recently created to least recently created","DN_TOOLTIP":"Sort by distinguished name in alphabetical order","CREATED_TOOLTIP_REVERSE":"Sort from least recently created to most recently created","DN_TOOLTIP_REVERSE":"Sort by distinguished name in reverse alphabetical order","HIGHESTRECOMMENDED":"Likes","TITLE":"Name","MOSTCOMMENTED":"Comments"},"MYWIKIS":{"PIVOTS":{"ICANREAD_FEED":{"SUBSCRIBE_TO_FEED_TOOLTIP":"Follow changes to wikis you can read through your feed reader","FEED_LINK_TITLE":"Wikis I Can Read","SUBSCRIBE_TO_FEED":"Feed for wikis you can read"},"CREATEDBYME_WINDOWTITLE":"Wikis I Created","ICANREAD_TOOLTIP":"View wikis whose contents you can read","IFOLLOW_WINDOWTITLE":"Wikis I\'m Following","IFOLLOW_FEED":{"SUBSCRIBE_TO_FEED_TOOLTIP":"Follow changes to wikis you are following through your feed reader","FEED_LINK_TITLE":"Wikis I\'m Following","SUBSCRIBE_TO_FEED":"Feed for wikis you are following"},"CREATEDBYME_LONG":"I Created","IOWN_WINDOWTITLE":"Wikis I Own","ICONTRIBUTEDTO_DESC":"Wikis I added content to","ICONTRIBUTEDTO":"I\'m a Contributor","ICANEDIT_FEED":{"SUBSCRIBE_TO_FEED_TOOLTIP":"Follow changes to wikis you can edit through your feed reader","FEED_LINK_TITLE":"Wikis I Can Edit","SUBSCRIBE_TO_FEED":"Feed for wikis you can edit"},"PUBLIC_TOOLTIP":"View public wikis","ICANEDIT":"I\'m an Editor","ICONTRIBUTEDTO_WINDOWTITLE":"Wikis I Contributed To","PUBLIC_LONG":"Public Wikis","IOWN_DESC":"Wikis I own","ICONTRIBUTEDTO_FEED":{"SUBSCRIBE_TO_FEED_TOOLTIP":"Follow changes to wikis you added content to through your feed reader","FEED_LINK_TITLE":"Wikis I Contributed to","SUBSCRIBE_TO_FEED":"Feed for wikis you added content to"},"CREATEDBYME_DESC":"Wikis you created","ICANEDIT_WINDOWTITLE":"Wikis I Can Edit","CREATEDBYME_TOOLTIP":"View wikis you created","ICANREAD":"I\'m a Reader","IFOLLOW_TOOLTIP":"View wikis you are following","ICANREAD_LONG":"I\'m a Reader","IOWN_FEED":{"SUBSCRIBE_TO_FEED_TOOLTIP":"Follow changes to wikis you own through your feed reader","FEED_LINK_TITLE":"Wikis I Own","SUBSCRIBE_TO_FEED":"Feed for wikis you own"},"IFOLLOW_LONG":"I\'m Following","IOWN_TOOLTIP":"View wikis you own","ICANREAD_WINDOWTITLE":"Wikis I Can Read","CREATEDBYME_FEED":{"SUBSCRIBE_TO_FEED_TOOLTIP":"Follow changes to wikis you created through your feed reader","FEED_LINK_TITLE":"Wikis I Created","SUBSCRIBE_TO_FEED":"Feed for wikis you created"},"PUBLIC_DESC":"Public Wikis","PUBLIC":"Public Wikis","ICANEDIT_LONG":"I\'m an Editor","ICONTRIBUTEDTO_TOOLTIP":"View wikis you added content to","PUBLIC_WINDOWTITLE":"Public Wikis","ICONTRIBUTEDTO_LONG":"I\'m a Contributor","ICANREAD_DESC":"Wikis whose contents I can read","PUBLIC_FEED":{"SUBSCRIBE_TO_FEED_TOOLTIP":"Follow changes to public wikis","FEED_LINK_TITLE":"Public Wikis","SUBSCRIBE_TO_FEED":"Feed for public wikis"},"ICANEDIT_TOOLTIP":"View wikis whose contents you can edit","IFOLLOW_DESC":"Wikis I\'m following","CREATEDBYME":"I Created","IFOLLOW":"I\'m Following","IOWN":"I\'m an Owner","IOWN_LONG":"I\'m an Owner","ICANEDIT_DESC":"Wikis whose contents I can edit"},"NODESCRIPTION":"No description"},"SESSION_TIMEOUT":"Your Connections session has expired.  Click \'OK\' to log in again.","MYPAGES":{"FEED_LINK_TITLE":"I Edited in ${0}","SUBSCRIBE_TO_MYPAGES":"Feed for my edited pages","EMPTY":"You have not edited any pages in this wiki.","SUBSCRIBE_TO_MYPAGES_TOOLTIP":"Follow changes to your edited pages through your feed reader"},"EDIT_ATTACHMENT":{"DIALOG_TITLE":"Edit Attachment","ERROR_QUOTA_VIOLATION":"There is not enough space in the wiki to upload the attachment. Before uploading you must delete ${0} of pages, attachments, or versions to create space.","ERROR_CONCURRENT_MODIFICATION":"This attachment was edited by ${user} on ${date_long} ${time_long}. Clicking \'OK\' will overwrite the changes.   ","INFO_SUCCESS":"The attachment was updated.","REPLACEERROR":"The attachment\'s contents were not replaced due to an error.","ERROR_QUOTA_VIOLATION_WITH_TRASH":"There is not enough space in the wiki to upload the attachment. Before uploading you must delete ${0} of pages, attachments, or versions to create space. Consider deleting pages in Trash.","CLOSE":"Close","INFO_SCAN_ESTIMATE_MINUTES":"minutes","INFO_SCAN_ESTIMATE":"The process will complete in approximately ${0} ${1}","INFO_SCAN_ESTIMATE_SECOND":"second","OK":"OK","EDITERROR":"The attachment\'s metadata was not edited due to an error","ERROR_NOT_LOGGED_IN":"You must be logged in to edit this attachment.  Click \'OK\' to be prompted to log in.","NAME_LABEL":"File name: ","INFO_SCAN_ESTIMATE_SOON":"The process will complete soon.","TRANSFER_TIME":{"SEC":"${0} seconds remaining - ${1} (${2}/s)","MIN":"${0} minutes remaining - ${1} (${2}/s)","HOUR":"${0} hours remaining - ${1} (${2}/s)"},"WARN_SPECIFY_NAME":"File name is a required field. ","LIMIT_HELP":"You can replace the contents of this attachment by selecting a different file.  You must choose a file that is smaller than ${limit} - attachments above this size are not allowed.","WARN_QUOTA_VIOLATION":"There is not enough space in the wiki to upload the attachment. Before uploading you must delete ${0} of pages, attachments, or versions to create space.","WARN_EXTENSION":"The file you are replacing must have the same extension.","FILE_DOES_NOT_EXIST":"This file does not exist.  Please select a file using the browse button.","ERROR_VIRUS_FOUND":"A virus was detected in your attachment.  Please run a local virus scan on this file before uploading it again.","REPLACE_LABEL":"Replace contents:","ERROR_TIMEOUT":"The attachment was not edited because the server could not be contacted.  Click \'OK\' to try your request again.","TRANSFER":"Uploading ${0} @ ${1}/s","INFO_SCAN":"File is uploaded successfully. Virus scan in progress. ","ERROR_CANCEL":"The attachment was not edited because the request was cancelled.  Click \'OK\' to try your request again.","DESCRIPTION_LABEL":"Description: ","ERROR_FILENAME_INVALID_CHARACTERS":"The file name may not contain the characters: % & \\ \"","INFO_SCAN_SAFE_TO_CLOSE":"You can safely close this dialog and check back later.","REPLACE_CONFIRM":"The attachment you have selected has a different extension than the existing attachment.  Click \'OK\' to proceed with changing the file type.  To select a different file, click \'Cancel\'","INFO_SCAN_ESTIMATE_SECONDS":"seconds","ERROR_NAME_EXISTS":"The attachment cannot be renamed because another attachment has the same name.","WARN_QUOTA_VIOLATION_WITH_TRASH":"There is not enough space in the wiki to upload the attachment. Before uploading you must delete ${0} of pages, attachments, or versions to create space. Consider deleting pages in Trash.","ERROR_MAX_CONTENT_SIZE":"The attachment could not be replaced because it is larger than the maximum allowed attachment size of ${0}","INFO_SCAN_ESTIMATE_MINUTE":"minute","CANCEL":"Cancel","ERROR_ACCESS_DENIED":"The attachment could not be edited because you are not a contributor."},"MACRO_PARAMS":{"MACRO_PARAMS_DIALOG_TITLE":"Macro Parameters","MACRO_PARAMS_DIALOG_DESCRIPTION":"Fill out the macro\'s parameters and insert it into the document.","SUBMIT_BUTTON_LABEL":"OK"},"CANCEL":"Cancel","TAGGER":{"CREATEERROR_ACCESS_DENIED":"The tag could not be created because you do not have permission to contribute to this document.","CREATEERROR_NOT_FOUND":"The tag could not be created because the document has been deleted or is no longer visible.","WARN_LONG_TAGS":"The specified tags are too long.","LOADERROR_TIMEOUT":"The tags could not be loaded: request timed out.","REMOVE":"Remove tag","ERROR_LOADING":"An error has occured loading the tags.","SEPARATOR":",","WARN_LONG_TAG":"The tag \'${0}\' is too long.","INVALID_CHAR_WARN_LONG":"One or more tags you have entered contain invalid characters: ${0}","TRIM_TAGS":"Shorten tags?","LOADERROR_CANCEL":"The tags could not be loaded: request cancelled.","ADD_TAGS":"Add tags","NO_RESULTS":"No results for \'${0}\'","ADD_REMOVE_TAGS_TOOLTIP":"Add or remove tags on this item","NOTAGS":"No Tags","REMOVECONFIRM":"Are you sure you want to remove the tag ${0}?","OK":"OK","LOADING":"Loading tags...","TRIM_TAG":"Shorten tag?","REMOVE_NAMED":"Remove tag ${0}","CANCEL_TOOLTIP":"Cancel tag editing","REMOVEERROR":"The tag could not be removed.","REMOVEERROR_TIMEOUT":"The tag could not be removed because the server could not be contacted.  Click \'OK\' to try again.","INVALID_CHAR_WARN":"!","LOADERROR_NOTFOUND":"The tags could not be loaded: file not found.","CREATEERROR":"The tag could not be created.  Please try again later.","CREATEERROR_CANCEL":"The tag could not be created because the request was cancelled.  Click \'OK\' to try again.","CREATEERROR_TIMEOUT":"The tag could not be created because the server could not be contacted.  Click \'OK\' to try again.","REMOVEERROR_CANCEL":"The tag could not be removed because the request was cancelled.  Click \'OK\' to try again.","ADD_REMOVE_TAGS":"Add or remove tags","NONE":"None","CANCEL":"Cancel","REMOVEERROR_NOT_FOUND":"The tag could not be removed because the document has been deleted or is no longer visible.","REMOVEERROR_ACCESS_DENIED":"The tag could not be removed because you do not have permission to contribute to this document.","SAVE":"Save"},"BACK_TO_PAGE":"Back to Page","WARNING":"Warning","FILE":{"EXPAND_ERROR":{"TIMEOUT":"The details of this file could not be loaded because the request was cancelled by the server.","NOT_FOUND":"The details of this file could not be loaded because file has been deleted or is no longer visible.","GENERIC":"An error prevented the details of this file from being displayed.  Please try again later.","CANCEL":"The details of this file could not be loaded because the server could not be contacted."}},"FOLLOW_WIKI":{"TIMEOUT":"We were unable to change your following settings because the server could not be contacted. Please try again later.","INFO_SUCCESS_OFF":"You are following this wiki.","OFF_LABEL":"Click this button to stop receiving updates for changes to this wiki and all of its pages.","ACTION_DISABLED":"Wiki updates are included with the community updates. ","ACTION_OFF":"Stop Following this Wiki","ERROR":"We were unable to change your following settings. Please try again later.","ACTION_ON":"Follow this Wiki","ACTION_DISABLED_TOOLTIP":"Wiki updates are included with the community updates.","ACTION_OFF_TOOLTIP":"Stop receiving updates for changes to this wiki and all of its pages.","ACTION_ON_TOOLTIP":"Receive updates for changes to this wiki and all of its pages.","INFO_SUCCESS_ON":"You stopped following this wiki.","ON_LABEL":"Click this button to receive updates for changes to this wiki and all of its pages.","CANCEL":"We were unable to change your following settings because the request was cancelled."},"STATS":{"ERROR_TITLE":"Metrics are unavailable","ERROR_MSG":"The system metrics are not available at this time.  Access to system metrics may be restricted to developerWorks community administrators."},"DISCARD_DRAFT":{"CONFIRM":"Are you sure you want to discard these unsaved changes?","ERROR_CANCEL":"These unsaved changes were not discarded because the request was cancelled.  Click discard to try again.","INFO_SUCCESS":"The draft was discarded.","ACTION":"Discard","ERROR":"These unsaved changes were not discarded due to an error.","ERROR_TIMEOUT":"These unsaved changes were not discarded because the server could not be contacted.  Click discard to try again.","ACTION_TOOLTIP":"Discard these unsaved changes","ERROR_NOT_FOUND":"These unsaved changes have already been discarded."},"EMPTY_TRASH":{"DIALOG_TITLE":"Empty Trash","CANCEL_ERROR":"The trash has not been emptied because the request was cancelled.  Click \'OK\' to try again.","QUESTION":"Are you sure you want to permanently delete all pages in the trash?","ERROR":"The trash could not be emptied.  Please try again later.","TIMEOUT_ERROR":"The trash has not been emptied because the server could not be contacted.  Click \'OK\' to try again.","DISABLED_LABEL":"Empty Trash button is disabled","INFO_SUCCESS":"The trash was emptied.","ACTION":"Empty Trash","ENABLED_LABEL":"Empty Trash button is enabled","CLOSE":"Close","BUSY":"Deleting...","ACTION_TOOLTIP":"Delete all pages in the trash.","CANCEL":"Cancel","OK":"OK","ACCESS_DENIED_ERROR":"You no longer have permission to empty the trash.","NOT_LOGGED_IN_ERROR":"You must be logged in to empty the trash.  Click \'OK\' to be prompted to log in.","NOT_FOUND_ERROR":"The wiki has been deleted or is no longer visible to you."},"REAUTHENTICATE":{"NAME_LABEL":"User name:","PASSWORD_LABEL":"Password:","DIALOG_TITLE":"Log In Again","GO_TO_LOGIN_PAGE":"Or, discard any unsaved changes and go to the full log in page.","ACTION":"Re-authenticate","ERROR":"The user name or password was not valid.","BUSY":"Authenticating...","ACTION_TOOLTIP":"Log In Again","CANCEL":"Cancel","OK":"Log In","INFO":"You are no longer logged in to developerWorks community.  To continue your current work and preserve any input you have entered please re-authenticate. "},"INSERT_WIDGET":{"WIDGET_PROPERTIES_INVALID_HEIGHT":"Please enter a numeric height","DIALOG_TITLE":"Insert iWidget or IFrame","CAPTION":"Please provide copy of your script tag into the text field below.","LOAD":"Load...","BUTTON_LABEL":"Insert iWidget","WIDGET_PROPERTIES_RT_CLK_MENU":"iWidget Properties","GREEN_STOCK_WIDGET":"Green Stock Widget","WIDGET_TOOLBAR_BUTTON_TITLE":"Insert iWidget","WIDGET_PROPERTIES_INVALID_WIDTH":"Please enter a numeric width","WIDGET_PROPERTIES_DIALOG_TITLE":"iWidget Properties","BLUE_STOCK_WIDGET":"Blue Stock Widget","WIDGET_PROPERTIES_WIDTH":"Width","CLOSE":"Close","WIDGET_PROPERTIES_HEIGHT":"Height","BUSY":"Adding...","NOTASCRIPT":"Entered text doesn\'t appear to be a script","CANCEL":"Cancel","OK":"OK"},"CONSRECOMMEND":{"RECOMMEND_TOOLTIP":"Recommend this page to your colleagues","YOU_AND_ONE_HAVE_RECOMMENDED":"You and 1 other","UNRECOMMEND_TOOLTIP":"Remove your recommendation from this page","LABEL_FALSE":"Recommend this page.","LABEL_TRUE":"You have recommended this page.","RECOMMEND":"Recommend","LOADING":"Loading...","LABEL_A_ONE":"1 person recommended this:","UNRECOMMEND":"Undo","ALT_TEXT":"Recommendations","YOU_HAVE_RECOMMENDED":"You have recommended","SAVE_ERROR":"Your recommendation could not be saved.  Please try again later.","ERROR":"An error has occurred.","SAVE_ERROR_TIMEOUT":"Your recommendation could not be saved because the server could not be contacted.  Click the button to try again.","LABEL_A_MANY":"${0} people recommended this:","LABEL_HIDDEN_MANY":"${0} others not shown","X_HAVE_RECOMMENDED":"${0} people","LABEL_R_ONE":"1 other person recommended this:","NOT_RECOMMENDED":"No recommendations","ERROR_RETRIEVE":"Unable to retrieve recommendations at this time.","SAVE_ERROR_CANCEL":"Your recommendation could not be saved because the request was cancelled.  Click the button to try again.","YOU_AND_X_HAVE_RECOMMENDED":"You and ${0} others","LABEL_R_MANY":"${0} other people recommended this:","CANCEL":"Cancel","LABEL_HIDDEN_ONE":"1 other not shown","SAVE_ERROR_NOT_FOUND":"Your recommendation could not be saved because the page has been deleted or is no longer visible.","ONE_HAS_RECOMMENDED":"1 person","SAVE_ERROR_ACCESS_DENIED":"Your recommendation could not be saved because the page has been deleted or is no longer visible."},"PAGING":{"NEXT":"Next","PREVIOUS":"Previous","COUNT":"${0}-${1} of ${2}"},"EMOTICONS":{"HAPPY":"Happy","ANGRY":"Angry","TONGUE":"Tongue","THUMBS_DOWN":"Thumbs down","GREEN_FLAG":"Green flag","EYEBROW":"Eyebrow","BIG_SMILE":"Big smile","COOL":"Cool","WINK":"Wink","STAR":"Star","TICK":"Tick","CROSS":"Cross","ANGEL":"Angel","CONFUSED":"Confused","LAUGH":"Laugh","HYSTERICAL":"Hysterical","SHY":"Shy","QUESTION":"Question","BLOCK":"Block","INFO":"Info","LIGHT_BULB":"Light bulb","SAD":"Sad","CRYING":"Crying","GOOFY":"Goofy","RED_FLAG":"Red flag","SURPRISED":"Surprised","WARNING":"Warning","THUMBS_UP":"Thumbs up"},"HEADER":{"COMMUNITY_WIKIS_LABEL":"Go to the Communities home page","LOGIN_TITLE":"Click to log in to Wikis","PAGEINDEX":"Index","LOGOUT_TITLE":"Click to log out of Wikis","WIKIS":"Wikis","UPDATES_TITLE":"Click to view the list of updated wikis","PERSONALPAGES":"Edited by ${0}","WIKICREATE_TITLE":"Click to start a wiki","COMMUNITIES":"Communities","LOGIN":"Log in","UPDATES":"Latest Updates","LOGOUT":"Log out","LOGO":"developerWorks community","WIKICREATE":"Start a Wiki","MYWIKIS_TITLE":"Click to view the list of wikis you are a member of","PUBLICWIKIS_TITLE":"Click to view the list of public wikis","MYWIKIS":"My Wikis","MYPAGES":"I Edited","WIKIS_LABEL":"Navigate to home page of wikis app","MEMBERS":"Members of ${0}","PUBLICWIKIS":"Public Wikis","RECYCLE_BIN":"Trash (${size})","WIKIS_TITLE":"Click to view the list of wikis","WIKIPAGE":{"VERSION":"${0}: Version ${1}","COMPARISON":"${0}: Comparison of versions ${1}-${2}"}},"PAGESINDEX":{"SUBSCRIBE_TO_PAGESINDEX_TOOLTIP":"Follow changes to this page index through your feed reader","FEED_LINK_TITLE":"Page Index of ${0}","EMPTY":"There are no pages in this wiki.","SUBSCRIBE_TO_PAGESINDEX":"Feed for this page index"},"PAGE":{"EXPAND_ERROR":{"TIMEOUT":"The details of this page could not be loaded because the request was cancelled by the server.","NOT_FOUND":"The details of this page could not be loaded because the page has been deleted or is no longer visible.","GENERIC":"An error prevented the details of this page from being displayed.  Please try again later.","CANCEL":"The details of this page could not be loaded because the server could not be contacted."}},"ATTACHMENTS":{"SUBSCRIBE_TO_ATTACHMENTS":"Feed for these attachments","HIDE":"Hide","JUMP_TO_PAGE":"Jump to a page between \xa0","DELETE_ERROR_CANCEL":"The attachment was not deleted because the request was cancelled.  Click delete to try again.","JUMP_TO_LAST":"Most recent","EDIT":"Edit","PAGE":"Page","ITEMS_PER_PAGE":" items per page","ELLIPSIS":"...","NO_ATTACHMENTS":"No attachments exist","MORE":"More","DELETE_ERROR_TIMEOUT":"The attachment was not deleted because the server could not be contacted.  Click delete to try again.","VIEW_EXTRA":"View full description","LOADING":"Loading attachments...","DELETEERROR":"The attachment was not deleted due to an error.","ATTACHMENT":"Attachment","ADDATTACHMENT":"Add an attachment","SUBSCRIBE_TO_ATTACHMENTS_TOOLTIP":"Follow changes to these attachments through your feed reader","REFRESH_INPUT":"Changing the value will refresh page results","DELETE_INFO_SUCCESS":"The attachment was deleted.","ERROR":"An error occurred","JUMP_TO_PAGE_BETWEEN":"Jump to a page between ${0} and ${1}","DELETE":"Delete","DATE":{"RELATIVE_TIME":{"MONTH":"${date}","TODAY":"Today at ${time}","YESTERDAY":"Yesterday at ${time}","DAY":"${date} at ${time}","YEAR":"${date_long}","FULL":"${date_long} ${time_long}"},"UPDATED":{"MONTH":"Updated ${date}","TODAY":"Updated today at ${time}","YESTERDAY":"Updated yesterday at ${time}","DAY":"Updated ${date} at ${time}","YEAR":"Updated ${date_long}","FULL":"${date_long} ${time_long}"},"AM":"AM"},"COUNT":"${0}-${1} of ${2}","NEXT":"Next","HIDE_EXTRA":"Hide full description","FEED_LINK_TITLE":"Attachments of ${0}","PREVIOUS":"Previous","OF_PAGES":" and ${0}","SHOW":"Show"},"EDIT_FILE":{"DIALOG_TITLE":"Edit File","SHARE_PROPAGATE":"Sharing:","ERROR_CONCURRENT_MODIFICATION":"This file was edited by ${user} on ${date_long} ${time_long}. Clicking \'OK\' will overwrite the changes.   ","REPLACEERROR":"The file\'s contents were not replaced due to an error.","CLOSE":"Close","OK":"OK","EDITERROR":"The file\'s metadata was not edited due to an error","PROPAGATE_LABEL":"Allow this file to be shared by other people","ERROR_NOT_LOGGED_IN":"You must be logged in to edit this file.  Click \'OK\' to be prompted to log in.","NAME_LABEL":"Filename: ","WARN_SPECIFY_NAME":"File name is a required field.","VISIBILITY_LABEL":"Visibility: ","FILE_DOES_NOT_EXIST":"This file does not exist.  Please select a file using the browse button.","REPLACE_LABEL":"Replace contents: ","ERROR_TIMEOUT":"The file was not edited because the server could not be contacted.  Click \'OK\' to try your request again.","TRANSFER":"Uploading ${0} @ ${1}/s","ERROR_CANCEL":"The file was not edited because the request was cancelled.  Click \'OK\' to try your request again.","DESCRIPTION_LABEL":"Description: ","ERROR_FILENAME_INVALID_CHARACTERS":"The file name may not contain the characters: % & \\ \"","REPLACE_CONFIRM":"The file you have selected has a different extension than the current file.  Click \'OK\' to proceed with changing the file type.  To select a different file, click \'Cancel\'","BUSY":"Saving...","ERROR_NAME_EXISTS":"The file cannot be renamed because another file has the same name.","ERROR_MAX_CONTENT_SIZE":"The file could not be replaced because it is larger than the maximum allowed file size of ${0}","CANCEL":"Cancel","PUBLIC_LABEL":"Make this file public (visible to everyone)","ERROR_NOT_FOUND":"The file could not be edited because it has been deleted or is no longer visible to you.","ERROR_ACCESS_DENIED":"The file could not be edited because you are not a contributor."},"WIKI_NAVLIST":{"NEW":"New Wikis","GOTOPAGE":"Go to Page...","USERSEARCH":"Name or email","PERSONALPAGES":"Edited by...","OWNED":"Owned By Me","ACTIVE":"Most Active","PAGESEARCH":"Title","TITLE":"Pages","EDITED":"I Edited","UPDATED":"Recently Updated","PERSONALPAGES_ERROR":{"USER_NOT_FOUND":"No user was found. Try typing the name and selecting a user from the list provided.","MULTIPLE_USERS":"Multiple users were found. Try typing the name and selecting a user from the list provided. "}},"WIKI_DETAILS":{"ATTACHMENTS":"Attachments","HISTORY":"History of Changes","ABOUT":"About","PAGEINFO":"Page Info"},"RESTORE_PAGES":{"DIALOG_TITLE":"Restore Pages","CANCEL_ERROR":"The selected pages have not been restored because the request was cancelled.  Click \'OK\' to try again.","PAGES_EXIST_ERROR":"No pages were restored because pages with the same names already exist. Rename the existing pages before restoring.","QUESTION":"The selected pages will be restored to the wiki.","ERROR":"The selected pages could not be restored.  Please try again later.","TIMEOUT_ERROR":"The selected pages have not been restored because the server could not be contacted.  Click \'OK\' to try again.   ","DISABLED_LABEL":"Restore button is disabled","INFO_SUCCESS":"The selected pages were restored.","PAGE_EXISTS_ERROR":"The page was not restored because another page with this name already exists. Rename the existing page before restoring.","ACTION":"Restore","ENABLED_LABEL":"Restore button is enabled","CLOSE":"Close","BUSY":"Restoring...","PAGES_EXIST_WARNING":"Some of the selected pages were not restored because pages with the same name already exist. Rename the existing pages before restoring.","ACTION_TOOLTIP":"Restore selected pages in the trash.","CANCEL":"Cancel","OK":"OK","ACCESS_DENIED_ERROR":"You no longer have permission to restore the selected pages.","NOT_FOUND_ERROR":"Some or all of the selected pages have either been already restored, deleted, or are no longer visible to you.","NOT_LOGGED_IN_ERROR":"You must be logged in to restore pages.  Click \'OK\' to be prompted to log in."},"BACK_TO_APP":"Return to Application","ADD_FAVORITE":{"ACTION":"Add To Favorites"},"FOOTER":{"FILE_BUG":"File a Bug Report","HELP":{"HELP":"Help","FORUMS":"Support forums","HEADING":"Help"},"CONNECTIONS":{"HEADING":"developerWorks community","DEMO":"Demo","HOME":"Home"},"TOOLS":{"HEADING":"Tools","METRICS":"System metrics","BROWSERPLUGINS":"Browser plugins","ADMINPAGE":"Admin"},"ABOUT":{"HEADING":"About","CONNECTIONSONLINE":"developerWorks community on ibm.com","ABOUT":"About","SUBMITFEEDBACK":"Submit feedback"},"DOWNLOAD_CONNECTORS":"Download Connectors"},"VERSIONS":{"REVERT_DESCRIPTION":"Restored from version ${0}","COMPARING":"Comparing wiki text of:","JUMP_TO_PAGE":"Jump to a page between \xa0","ERROR_REQUEST_UNKNOWN":"An unknown error has occurred.","REVERT_CONFIRM":"You are about to replace the current version of this page with version ${0}, which was created ${1} by ${2}. Do you want to proceed?","SUMMARY":"Version history","JUMP_TO_LAST":"Most recent","SUBSCRIBE_TO_VERSIONS":"Feed for these page versions","ERROR_REQUEST_CANCELLED":"The request was cancelled.","SHOW_COMPARISON":"Show comparison","DELETE_ALL_CONFIRM":"Are you sure you want to delete all versions prior to ${0}?","PAGE":"Page","ITEMS_PER_PAGE":" items per page","ELLIPSIS":"...","CURRENT_VERSION":"Current Version","COMPARE_RECENT":"Compare to most recent","NEW_CHANGED":"New/Changed","BY":"by ","MOST_RECENT":"(most recent)","CONTENT":{"REVERT":"Restore","VIEW":"View","DOWNLOAD":"Download (${0})"},"NO_VERSIONS":"No versions","ERROR_REQUEST_TIMEOUT":"The server could not be contacted.","LOADING":"Loading versions...","DELETEERROR":"The version was not deleted due to an error.","REVERT_VERSION":"Restore version ${0}","DELETE_ALL_INFO_SUCCESS":"The versions were deleted.","REVERT":{"GENERIC_ERROR":"The version could not be restored because of an unknown error.  Click \'Restore\' again to try your request again.","ERROR_CANCEL":"The version was not restored because the request was cancelled.  Click \'Restore\' again to try your request again.","INFO_SUCCESS":"The version was restored.","ERROR_QUOTA_VIOLATION":"The version could not be restored because it would cause the wiki to exceed its size quota.","ERROR_MAX_CONTENT_SIZE":"The version could not be restored because it is larger than the maximum allowed page size of ${0}","ERROR_NAME_EXISTS":"The version could not be restored because another page or file has the same name.","ERROR_TIMEOUT":"The version was not restored because the server could not be contacted.  Click \'Restore\' again to retry your request.","ERROR_ACCESS_DENIED":"The version could not be restored because you are not a contributor.   ","ERROR_NOT_FOUND":"The version could not be restored because it has been deleted or is no longer visible to you."},"DELETE_INFO_SUCCESS":"The version was deleted.","REFRESH_INPUT":"Changing the value will refresh page results","ERROR":"Unable to load version information.","JUMP_TO_PAGE_BETWEEN":"Jump to a page between ${0} and ${1}","DELETE":"Delete","DELETE_ALL":"Delete all versions prior to version","DATE":{"RELATIVE_TIME":{"MONTH":"${date}","TODAY":"Today at ${time}","YESTERDAY":"Yesterday at ${time}","DAY":"${date} at ${time}","YEAR":"${date_long}","FULL":"${date_long} ${time_long}"},"REVERT":{"MONTH":"${date}","TODAY":"today at ${time}","YESTERDAY":"yesterday at ${time}","DAY":"${date} at ${time}","YEAR":"${date_long}","FULL":"${date_long} ${time_long}"},"UPDATED":{"MONTH":"Updated ${date}","TODAY":"Updated today at ${time}","YESTERDAY":"Updated yesterday at ${time}","DAY":"Updated ${date} at ${time}","YEAR":"Updated ${date_long}","FULL":"${date_long} ${time_long}"},"AM":"AM"},"SUBSCRIBE_TO_VERSIONS_TOOLTIP":"Follow changes to these page versions through your feed reader","INFO":"Version ${0} created ${1} by","COUNT":"${0}-${1} of ${2}","VERSION_NUMBER":"Version ${0} ","NEXT":"Next","FEED_LINK_TITLE":"Versions of ${0}","PREVIOUS":"Previous","DELETED":"Deleted","TO":"to:","OF_PAGES":" and ${0}","SHOW":"Show","VIEW_MOST_RECENT":"View most recent","COMPARE_VERSION":"Compare version","KEY":"Key:"},"BACK_TO_WIKI":"\x3c Back to ${0} Wiki","ERROR_OCCURRED":"An error occurred.  Contact your administrator.","RECOMMEND":{"RECOMMEND_TOOLTIP":"Recommend this page to your colleagues","ADD_REMOVE":"Add or remove your liking","ONE":"1 person","UNRECOMMEND_TOOLTIP":"Remove your likes from this file","NOT_RECOMMENDED_ICON":"Not liked icon","FIRST_TO_RECOMMEND_TOOLTIP":"Recommend this file to your colleagues","PAGE":{"RECOMMEND_TOOLTIP":"Recommend this page to your colleagues","ADD_REMOVE":"Add or remove your liking","UNRECOMMEND":"Remove your likes.","YOU_HAVE_RECOMMENDED":"You liked this page.","YOU_AND_ONE_HAVE_RECOMMENDED":"2 people, including you, liked this page.","FIRST_TO_RECOMMEND":"Be the first to like this page.","UNRECOMMEND_TOOLTIP":"Remove your liking from this page","ERROR_TIMEOUT":"Your recommendation could not be saved because the server could not be contacted.  Click the button to try again.","FIRST_TO_RECOMMEND_TOOLTIP":"Recommend this page to your colleagues","X_HAVE_RECOMMENDED":"${0} people liked this page.","NOT_RECOMMENDED":"This page has not been liked.","ERROR_CANCEL":"Your recommendation could not be saved because the request was cancelled.  Click the button to try again.","RECOMMEND_COUNT_MANY":"${0} likes","YOU_AND_X_HAVE_RECOMMENDED":"${0} people, including you, liked this page.","ERROR_RETRIEVE":"Unable to retrieve recommendations at this time.","RECOMMEND_COUNT_ONE":"1 like","ERROR_SAVE":"Your recommendation could not be saved.  Please try again later.","ACCESS_DENIED":"Your recommendation could not be saved because the page has been deleted or is no longer visible.","NOT_FOUND":"Your recommendation could not be saved because the page has been deleted or is no longer visible.","CANCEL":"Cancel","LOADING":"Loading...","OK":"OK","RECOMMEND":"Like this page.","ONE_HAS_RECOMMENDED":"1 person liked this page."},"RECOMMEND_COUNT_ONE":"1 like","NOT_FOUND":"Your recommendation could not be saved because the page has been deleted or is no longer visible.","ACCESS_DENIED":"Your recommendation could not be saved because the page has been deleted or is no longer visible.","RECOMMEND":"Like this page.","OK":"OK","LOADING":"Loading...","MANY":"${0} people","UNRECOMMEND":"Remove your liking.","YOU_HAVE_RECOMMENDED":"You have liked this file.","FIRST_TO_RECOMMEND":"Be the first to like this file.","ERROR_TIMEOUT":"Your recommendation could not be saved because the server could not be contacted.  Click the button to try again.","X_HAVE_RECOMMENDED":"${0} have liked this file.","NOT_RECOMMENDED":"This file has not been liked.","ERROR_CANCEL":"Your recommendation could not be saved because the request was cancelled.  Click the button to try again.","RECOMMEND_COUNT_MANY":"${0} likes","YOU_AND_X_HAVE_RECOMMENDED":"${0}, including you, have liked this file.","ERROR_RETRIEVE":"Unable to retrieve recommendations at this time.","ERROR_SAVE":"Your recommendation could not be saved.  Please try again later.","CANCEL":"Cancel","RECOMMENDED_ICON":"Liked icon","ONE_HAS_RECOMMENDED":"${0} has liked this file."},"CONFIRM":{"DIALOG_TITLE":"Confirm","CLOSE":"Close","BUSY":"Busy...","CANCEL":"Cancel","OK":"OK"},"WIKI_BREADCRUMBS":{"YOUAREHERE":"You are in:","CONFIRMNEWPAGE":"Confirm new page"},"DELETE_PAGE":{"CONFIRM":"Are you sure you want to delete page ${0}?","DIALOG_TITLE":"Delete Page","CANCEL_ERROR":"The page has not been deleted because the request was cancelled.  Click \'OK\' to try again.","ERROR":"The page could not be deleted.  Please try again later.","TIMEOUT_ERROR":"The page has not been deleted because the server could not be contacted.  Click \'OK\' to try again.","INFO_SUCCESS":"The page was deleted.","ACTION":"Delete Page","CLOSE":"Close","BUSY":"Deleting...","CANCEL":"Cancel","ACTION_TOOLTIP":"Delete this page from the wiki.","OK":"Delete","NOT_LOGGED_IN_ERROR":"You must be logged in to delete this page.  Click \'OK\' to be prompted to log in.","NOT_FOUND_ERROR":"The page has been deleted or is no longer visible to you.","ACCESS_DENIED_ERROR":"You no longer have permission to delete this page."},"EDIT_PAGE":{"ACTION":"Edit","ACTION_TOOLTIP":"Click to edit this page"},"INSERT_MACRO":{"DIALOG_TITLE":"Insert Macro","BUTTON_LABEL":"Insert Macro","CLOSE":"Close","BUSY":"Inserting...","CANCEL":"Cancel","OK":"OK"},"SEARCH":{"ALL":"All Areas","SUMMARY":"Simple table showing App specific search filters and search bar","PEOPLE":"People","REL_PEOPLE":"Related People","ALL_LABEL":"Search All","FILES":"Search Files","TAGS":"Tags","DOGEAR":"Search Bookmarks","HEADING_THIS":"Search Results within ${0}","REL_TAGS":"Related Tags","REL_DATES":"Related Dates","USER_RESULTS":"People search results for name and email: ${0}","WIKIS":"Search Wikis","HEADING_ALL":"Search Results within All Wikis","DATES":"Dates","HEADING_PUBLIC":"Search Results within Public Wikis","COMMUNITIES":"Search Communities","SEARCH":"Search","HEADING_MY":"Search Results within My Wikis","PROFILES":"Search Profiles","ACTIVITIES":"Search Activities","BLOGS":"Search Blogs","ADD_TO_FAVORITES":"Add to Favorite People","PEOPLE_DEFAULT":"Name or email","SEARCH_ALT":"Search"},"HTML":{"REFERENCE":{"CENTERED_PARAGRAPH":"\x3cdiv style=\"text-align: center\"\x3ecentered paragraph\x3c/div\x3e","ITALICS":"\x3cem\x3eitalics\x3c/em\x3e","BOLD":"\x3cstrong\x3ebold\x3c/strong\x3e","H1":"\x3ch1\x3eLarge heading\x3c/h1\x3e","H2":"\x3ch2\x3eMedium heading\x3c/h2\x3e","H3":"\x3ch3\x3eSmall heading\x3c/h3\x3e","UNDERLINE":"\x3cu\x3eunderline\x3c/u\x3e","TABLE":{"CELL2":"\x3ctd\x3ecell 2\x3c/td\x3e","HEADER1":"\x3cth\x3eheader 1\x3c/th\x3e","HEADER2":"\x3cth\x3eheader 2\x3c/th\x3e","TBODY":{"CLOSE":"\x3c/tbody\x3e","OPEN":"\x3ctbody\x3e"},"CLOSE":"\x3c/table\x3e","OPEN":"\x3ctable\x3e","TR":{"CLOSE":"\x3c/tr\x3e","OPEN":"\x3ctr\x3e"},"CELL1":"\x3ctd\x3ecell 1\x3c/td\x3e"},"STRIKE":"\x3cstrike\x3estrikethrough\x3c/strike\x3e","INDENT_ONCE":"\x3cdiv style=\"margin-left: 40px\"\x3eindent once\x3c/div\x3e ","MARKUP_REFERENCE":"HTML guide","INDENT_TWICE":"\x3cdiv style=\"margin-left: 80px\"\x3eindent twice\x3c/div\x3e","LINK":{"URL":"\x3ca href=\"http://www.example.com\"\x3eExample link\x3c/a\x3e"},"LIST":{"UNORDERED":{"TITLE":"Unordered list:","CLOSE":"\x3c/ul\x3e","OPEN":"\x3cul\x3e"},"CLOSE":"\x3c/li\x3e","NUMBER":{"FIRST":"\x3cli\x3e1\x3c/li\x3e","SUB1":"\x3cli\x3e2.1\x3c/li\x3e","SUB2":"\x3cli\x3e2.2\x3c/li\x3e","SECOND":"\x3cli\x3e2","THIRD":"\x3cli\x3e3\x3c/li\x3e"},"ORDERED":{"TITLE":"Ordered list:","CLOSE":"\x3c/ol\x3e","OPEN":"\x3col\x3e"},"ALPHA":{"FIRST":"\x3cli\x3ea\x3c/li\x3e","SUB1":"\x3cli\x3eb.a\x3c/li\x3e","SUB2":"\x3cli\x3eb.b\x3c/li\x3e","SECOND":"\x3cli\x3eb","THIRD":"\x3cli\x3ec\x3c/li\x3e"}}}},"AUTOSAVE":{"FAILED":"Autosave failed"},"PLACEBAR":{"SHAREDEXTERNAL":{"IMG":"This community can have members from outside your organization."}},"INFO":"Info","DATE":{"ADDED":{"MONTH":"Added ${date}","TODAY":"Added today at ${time}","YESTERDAY":"Added yesterday at ${time}","DAY":"Added ${date} at ${time}","YEAR":"Added ${date_long}","FULL":"${date_long} ${time_long}"},"RELATIVE_TIME":{"MONTH":"${date}","TODAY":"Today at ${time}","YESTERDAY":"Yesterday at ${time}","DAY":"${date} at ${time}","YEAR":"${date_long}","FULL":"${date_long} ${time_long}"},"TODAY":"today","YESTERDAY":"yesterday","CREATED":{"MONTH":"Created ${date}","TODAY":"Created today at ${time}","YESTERDAY":"Created yesterday at ${time}","DAY":"Created ${date} at ${time}","YEAR":"Created ${date_long}","FULL":"${date_long} ${time_long}"},"AM":"AM","FULL":"${date_long} ${time_long}","AUTOSAVED_SHORT":{"MONTH":"Autosaved ${date}","TODAY":"Autosaved at ${time}","YESTERDAY":"Autosaved yesterday at ${time}","DAY":"Autosaved ${date} at ${time}","YEAR":"Autosaved ${date_long}","FULL":"${date_long} ${time_long}"},"TODAY_U":"Today","YESTERDAY_U":"Yesterday","WIKI_CREATED":{"MONTH":"${date}","TODAY":"today at ${time}","YESTERDAY":"yesterday at ${time}","DAY":"${date} at ${time}","YEAR":"${date_long}"},"UPDATED":{"MONTH":"Updated ${date}","TODAY":"Updated today at ${time}","YESTERDAY":"Updated yesterday at ${time}","DAY":"Updated ${date} at ${time}","YEAR":"Updated ${date_long}","FULL":"${date_long} ${time_long}"},"PM":"PM","MONTHS_ABBR":{"11":"DEC","0":"JAN","1":"FEB","2":"MAR","3":"APR","4":"MAY","5":"JUN","6":"JUL","7":"AUG","8":"SEP","9":"OCT","10":"NOV"}},"BREADCRUMBS":{"COMMUNITYTITLE2":"Community: ${0}","YOUAREHERE":"You are in:","SEPARATOR":"\x3e","WIKITITLE":"${0} Wiki","PAGETITLE2":"Page: ${0}","WIKITITLE2":"Wiki: ${0}","LOADING":"Loading...","COMMUNITYTITLE":"${0} Community"},"WIKI":{"REFERENCE":{"BULLETED":{"FIRST":"* bulleted item","SUB":"** indented bulleted item"},"ITALICS":"//italics//","CENTERED_PARAGRAPH":"%%(text-align: center)centered paragraph%%","HORIZONTAL":"---- horizontal line","BOLD":"**bold**","TABLES":"Tables:","NUMBERED":{"SUB":"## indented numbered item","FIRST":"# numbered item"},"LINKING":"Linking:","H1":"= Head 1 =","H2":"== Head 2 ==","H3":"=== Head 3 ===","FULL_GUIDE":"Full guide","UNDERLINE":"__underline__","TABLE":{"CELL":"|table cell|cell 2|","HEADER":"|=table head|=head 2|"},"HEADINGS":"Headings:","TEXTFORMATTING":"Text formatting:","STRIKE":"--strikethrough--","MARKUP_REFERENCE":"Wiki markup guide","INDENT_ONCE":"\x3e indent once","INDENT_TWICE":"\x3e\x3e indent twice","LISTS":"Lists:","LINK":{"ANOTHER_PLACE_FILE":"[[/personalplace/userid/file/file_link]]","ANOTHER_PLACE_PAGE":"[[/personalplace/userid/page_link]]","ATTACHMENT":"[[^attachment_link]]","CURRENT_PLACE_FILE":"[[/file/same_place_file_link]]","IMAGE":"{{imageURL|alt_text}}","CURRENT_PLACE_PAGE":"[[/same_place_page_link]]","PAGE":"[[wiki_page_link]]","URL":"[[URL|link_text]]"}}},"NOTIFY_FILE":{"UNSUBSCRIBE":{"ALL":"You will no longer recieve notifications when this file is changed or commented on.","CONTENT":"You will no longer recieve notifications when this file is changed.","COMMENT":"You will no longer recieve notifications when this file is commented on."},"LABEL":"Notify me of: ","ERROR":"Your notification settings were not changed due to an error.  Please try again.","SUBSCRIBE":{"ALL":"You will now recieve notifications when this file is changed or commented on.","CONTENT":"You will now recieve notifications when this file is changed.","COMMENT":"You will now recieve notifications when this file is commented on."}},"OPEN_IN_NEW_WINDOW":{"ACTION":"Open In New Window","ACTION_TOOLTIP":"Open page in a new window."},"ROLE_OPTIONS":{"ROLE":"Role:"},"EDIT_CHECK_DRAFT":{"EDIT_PAGE_DRAFT_CONFIRM_LIST_TIME":"${date_long} at ${time} by ${user}","EDIT_PAGE_DRAFT_CONFIRM_LIST":"These people have unsaved drafts of this page:","EDIT_PAGE_DRAFT_CONFIRM":"You have a draft of this page with unsaved edits. Click OK to edit the draft. To edit the current version of the page instead, click Cancel and then click Discard to discard the draft. Then click Edit again."},"APP_NAME_TITLE_BAR":"Wikis","TITLEBAR":{"MYCHANNEL_TITLE":"All of your files","ALLUSERS_TITLE":"Search for other people","OFFLINE":"Offline","SHARES":"My Shares","ALLUSERS":"Find People","MYCHANNEL":"My Place","SEARCH":"Search","HOME_TITLE":"See what\'s happening in wikis","GO":"Go","SHARES_TITLE":"All of the shares that you are involved in","HOME":"Wikis"},"SHARING":{"SHARED_WITH":{"MONTH":"Shared with ${user} on ${date}","TODAY":"Shared with ${user} today at ${time}","YESTERDAY":"Shared with ${user} yesterday at ${time}","DAY":"Shared with ${user} on ${date} at ${time}","YEAR":"Shared with ${user} on ${date_long}"},"EXPAND_ERROR":{"TIMEOUT":"The details of this share could not be loaded because the request was cancelled by the server.","NOT_FOUND":"The details of this share could not be loaded because the document has been deleted or is no longer visible.","GENERIC":"An error prevented the details of this share from being displayed.  Please try again later.","CANCEL":"The details of this share could not be loaded because the server could not be contacted."},"USERS_POPUP_FILE":{"READERS_LABEL":"Readers:\xa0","ERROR":"The server could not be contacted.","EMPTY_CONTRIBUTORS":"No one else may contribute to this file","ERROR_TIMEOUT":"The server could not be contacted.","EMPTY":"Not shared with anyone","CONTRIBUTORS_LABEL":"Contributors:\xa0","ERROR_CANCEL":"The request was cancelled.  Please try again.","DEMOTE":"Make this person a reader","DEMOTE_ERROR_ACCESS_DENIED":"The selected person was not made a reader because the file has been deleted or is no longer visible to you.","DEMOTE_ERROR_NOT_FOUND":"The selected person was not made a reader because the file has been deleted or is no longer visible to you.","DEMOTE_ERROR_CANCEL":"The selected person was not made a reader because the request was cancelled.  Please try again.","DEMOTE_ERROR":"An error prevented making the selected person a reader.","EMPTY_READERS":"Not shared with anyone as a reader","DEMOTE_ERROR_TIMEOUT":"The selected person was not made a reader because the server could not be contacted.  Please try again.","ERROR_NOT_FOUND":"This information can not be displayed because the file has been deleted or is no longer visible to you.","ERROR_ACCESS_DENIED":"This information can not be displayed because the file has been deleted or is no longer visible to you."},"EVT_VIEW_ONE":{"MONTH":"${user} shared with ${list} on ${date}","TODAY":"${user} shared with ${list} today at ${time}","YESTERDAY":"${user} shared with ${list} yesterday at ${time}","DAY":"${user} shared with ${list} on ${date} at ${time}","YEAR":"${user} shared with ${list} on ${date_long}"},"SHARED_WITH_TWO":{"MONTH":"Shared with ${user} and ${count} on ${date}","TODAY":"Shared with ${user} and ${count} today at ${time}","YESTERDAY":"Shared with ${user} and ${count} yesterday at ${time}","DAY":"Shared with ${user} and ${count} on ${date} at ${time}","YEAR":"Shared with ${user} and ${count} on ${date_long}"},"EVT_EDIT_ONE":{"MONTH":"${user} added ${list} as a contributor on ${date}","TODAY":"${user} added ${list} as a contributor today at ${time}","YESTERDAY":"${user} added ${list} as a contributor yesterday at ${time}","DAY":"${user} added ${list} as a contributor on ${date} at ${time}","YEAR":"${user} added ${list} as a contributor on ${date_long}"},"SHARED_WITH_MANY_1":"${0} others","SHARED_BY":{"MONTH":"Shared by ${user} on ${date}","TODAY":"Shared by ${user} today at ${time}","YESTERDAY":"Shared by ${user} yesterday at ${time}","DAY":"Shared by ${user} on ${date} at ${time}","YEAR":"Shared by ${user} on ${date_long}"},"EVT_EDIT_MANY":{"MONTH":"${user} added ${list} as contributors on ${date}","TODAY":"${user} added ${list} as contributors today at ${time}","YESTERDAY":"${user} added ${list} as contributors yesterday at ${time}","DAY":"${user} added ${list} as contributors on ${date} at ${time}","YEAR":"${user} added ${list} as contributors on ${date_long}"},"USERS_POPUP_PAGE":{"READERS_LABEL":"Readers:\xa0","ERROR":"The server could not be contacted.","EMPTY_CONTRIBUTORS":"No one else may contribute to this page","ERROR_TIMEOUT":"The server could not be contacted.","EMPTY":"Not shared with anyone","CONTRIBUTORS_LABEL":"Contributors:\xa0","ERROR_CANCEL":"The request was cancelled.  Please try again.","DEMOTE":"Make this person a reader","DEMOTE_ERROR_NOT_FOUND":"The selected person was not made a reader because the page has been deleted or is no longer visible to you.","DEMOTE_ERROR_ACCESS_DENIED":"The selected person was not made a reader because the page has been deleted or is no longer visible to you.","DEMOTE_ERROR_CANCEL":"The selected person was not made a reader because the request was cancelled.  Please try again.","DEMOTE_ERROR":"An error prevented making the selected person a reader.","EMPTY_READERS":"Not shared with anyone as a reader","DEMOTE_ERROR_TIMEOUT":"The selected person was not made a reader because the server could not be contacted.  Please try again.","ERROR_NOT_FOUND":"This information can not be displayed because the page has been deleted or is no longer visible to you.","ERROR_ACCESS_DENIED":"This information can not be displayed because the page has been deleted or is no longer visible to you."},"EVT_VIEW_MANY":{"MONTH":"${user} shared with ${list} on ${date}","TODAY":"${user} shared with ${list} today at ${time}","YESTERDAY":"${user} shared with ${list} yesterday at ${time}","DAY":"${user} shared with ${list} on ${date} at ${time}","YEAR":"${user} shared with ${list} on ${date_long}"},"SHARED_WITH_MANY":{"MONTH":"Shared with ${user} and ${count} on ${date}","TODAY":"Shared with ${user} and ${count} today at ${time}","YESTERDAY":"Shared with ${user} and ${count} yesterday at ${time}","DAY":"Shared with ${user} and ${count} on ${date} at ${time}","YEAR":"Shared with ${user} and ${count} on ${date_long}"},"SHARED_WITH_TWO_1":"one other"},"SUBSCRIBE_TO_PAGE":"Feed for this page","RESTORE_PAGE":{"INFO_SUCCESS":"The page was restored.","CANCEL_ERROR":"The page has not been restored because the request was cancelled.  Click \'OK\' to try again.","PAGE_EXISTS_ERROR":"The page was not restored because another page with this name already exists. Rename or delete the existing page before restoring.","ACTION":"Restore Page","ERROR":"The page could not be restored.  Please try again later.","ACTION_TOOLTIP":"Restore this page.","TIMEOUT_ERROR":"The page has not been restored because the server could not be contacted.  Click \'OK\' to try again.","NOT_LOGGED_IN_ERROR":"You must be logged in to restore this page.  Click \'OK\' to be prompted to log in.","ACCESS_DENIED_ERROR":"You no longer have permission to restore this page.","NOT_FOUND_ERROR":"The page has either been already restored, deleted, or is no longer visible to you."},"VERSIONCOMPARISON":{"ERRORS":{"DEFAULT":{"TITLE":"Unable to show version comparison","MESSAGES":"Version ${0} cannot be used for a comparison because there is a problem converting it to wiki text.  Return to the page and try comparing other versions."},"TWO":{"TITLE":"Unable to show version comparison","MESSAGES":"Versions ${0} and ${1} cannot be used for a comparison because there is a problem converting them to wiki text.  Return to the page and try comparing other versions."}}},"SITE_TOOLS":{"INDEX":{"LABEL":"Index","HOVER":"View a list of pages of this wiki."},"MEMBERS":{"LABEL":"Members","HOVER":"View a list of members and roles of this wiki."},"RECYCLE_BIN":{"LABEL":"Trash","HOVER":"View a list of deleted pages of this wiki."}},"DELETE_WIKI":{"NAME_LABEL":"Name:","CONFIRM":"Permanently delete this wiki?","DIALOG_TITLE":"Delete Wiki","CANCEL_ERROR":"The wiki has not been deleted because the request was cancelled.  Click \'OK\' to try again.","ERROR":"The wiki could not be deleted.  Please try again later.","ACK":"I understand that the wiki and all data associated with it will be deleted and cannot be recovered.","TIMEOUT_ERROR":"The wiki has not been deleted because the server could not be contacted.  Click \'OK\' to try again.","TEXT":"The wiki and all data associated with it will be permanently deleted.","SIGNATURE_LABEL":"Your signature:","INVALID_SIGN_MESSAGE":"The name entered does not match the logged in user.  Verify the name.","INFO_SUCCESS":"The wiki was deleted.","ACTION":"Delete Wiki","CLOSE":"Close","BUSY":"Deleting...","CANCEL":"Cancel","ACTION_TOOLTIP":"Delete this wiki.","WARNING":"Warning: The following wiki and all data associated with it will be permanently deleted:","OK":"Delete","SIGN":"Sign by typing your name that you are authorized to delete this entire wiki and knowingly accept permanent deletion. This value is case-sensitive so be sure to enter your name with the correct capitalization.","NOT_LOGGED_IN_ERROR":"You must be logged in to delete this wiki.  Click \'OK\' to be prompted to log in.","ACCESS_DENIED_ERROR":"You no longer have permission to delete this wiki.","NOT_FOUND_ERROR":"The wiki has been deleted or is no longer visible to you."},"WIKI_MEMBERSHIP":{"COUNT_NONE_PUBLIC":"This wiki is public and you are not required to add members.","DIALOG_TITLE":"Add members to this wiki","COUNT_OTHERS_SINGLE_1":"1 person","COUNT_NONE":"This wiki has no members other than yourself.","PROPAGATE":"Allow this page to be shared by other people","AUTHENTICATED":"Authenticated Users","OWNER":"Owner","TRIM_LONG_DESCRIPTION":"Shorten description?","SELECT_USER_ERROR":"Please select a person to share with.","EXPAND_SECTION":"Add people as members of the wiki...","TRIM_LONG_MESSAGE":"Shorten message?","COUNT_OTHERS_1":"${0} people","OWNER_REFERENCE_ERROR":"You cannot add the owner of the wiki as a member.","SELECT_USER":"Members:","WARN_LONG_DESCRIPTION":"The description is too long.","COUNT_OTHERS":"${0} is a member of this wiki.","COUNT_OTHERS_SINGLE_PUBLIC":"This page is public and is shared with ${0}.","WARN_LONG_MESSAGE":"The message is too long.","TRIM_LONG_DESCRIPTION_MESSAGE":"Shortening will remove the text beyond the message limit.  Click \'OK\' to shorten or \'Cancel\' to edit the message yourself.","NOT_FOUND_ERROR":"The page has been deleted or is no longer visible to you and cannot be shared.","ACCESS_DENIED_ERROR":"You no longer have permission to share this page.","READER":"Reader","SHARE_WITH":"Share with:","REMOVE_USER_TOOLTIP":"Remove member","USER":"User","SEARCH_TOOLTIP":"Person not listed? Use full search...","ANONYMOUS":"Anonymous Users","SHARE_PERMISSION":"Make these people contributors to this page","COUNT_OTHERS_SINGLE":"This page is shared with ${0}.","CLOSE":"Close","PROPAGATE_SHARED":"All members can add other members","OK":"OK","PROPAGATE_OWNER":"Only you can add members","GROUP":"Group","NOT_LOGGED_IN_ERROR":"You must be logged in to share this page.  Click \'OK\' to be prompted to log in.","PROPAGATE_PUBLIC":"Everyone can add members","ADD_FROM_FAVORITES":"Add a person from your favorite wikis","SELF_REFERENCE_ERROR":"You cannot add yourself as a member.","CANCEL_ERROR":"The page was not shared because the request was cancelled.  Click \'OK\' to try again.","SHARE_TOOLTIP":"Allow others to read or contribute to this page","COUNT_OTHERS_SINGLE_PUBLIC_1":"1 person","COUNT_OTHERS_PUBLIC_1":"${0} people","ERROR":"The page could not be shared.  Please try again later.","TIMEOUT_ERROR":"The page was not shared because the server could not be contacted.  Click \'OK\' to try again.","EDITOR":"Editor","COUNT_OTHERS_PUBLIC":"This page is public and is shared with ${0}.","MAX_SHARES_ERROR":"The maximum number of shares has been exceeded.","BUSY":"Applying...","CANCEL":"Cancel","SELECT":"Select user ${0}","MESSAGE_LABEL":"Message:"},"EDIT_WIKI":{"ERROR_TITLE_TOO_LONG":"The wiki name is too long. ","WIKITITLE":"Name:","ERROR_SHORTEN_DESCRIPTION":"Shorten wiki description?","CREATOR":"Created by:","ERROR_EMPTY_TITLE":"The wiki name is empty. ","WARN_LONG_TAG":"The specified tags are too long. ","INFO_SUCCESS":"The wiki was edited.","FIX_INVALID_CHARS_IN_TITLE":"Replace invalid characters with \'_\'?","TRIM_TAGS":"Shorten tags?","CLOSE":"Close","ACTION_TOOLTIP":"Edit settings of this wiki.","OK":"Save","TRIM_TAG":"Shorten tag?","ERROR_LOAD":{"CANCEL_ERROR":"The wiki could not be edited because the request was cancelled.  Click \'OK\' to try again.","ERROR":"The wiki could not be edited.  Please try again later.","TIMEOUT_ERROR":"The wiki could not be edited because the server could not be contacted.  Click \'OK\' to try again.","NOT_LOGGED_IN_ERROR":"You must be logged in to edit this wiki.  Click \'OK\' to be prompted to log in.","NOT_FOUND_ERROR":"The wiki has been deleted or is no longer visible to you.","ACCESS_DENIED_ERROR":"You no longer have permission to edit this wiki."},"NAVIGATE_AWAY_CONFIRM":"Are you sure you want to discard these unsaved changes?","WARN_INVALID_CHARS_IN_TITLE":"Wiki names may not contain the following characters: \\ / : * ? \" \x3c \x3e | [ ] ^ ","ERROR_DESCRIPTION_TOO_LONG":"The wiki description is too long. ","CREATOR_LABEL":"Created by: ${0}","ERROR_PROVIDE_TITLE":"Please provide a name for the wiki","ERROR_SHORTEN_TITLE":"Shorten wiki name?","FIX_RESERVED_TITLE":"Reset original wiki name?","ERROR_TITLE_END_BY_EXCLAMATION_NOTALLOWED":"Please do not place the following characters at the end of title: . !","TAGS_LABEL":"Tags:","DESCRIPTION_LABEL":"Description:","ERROR_SAVE":{"CANCEL_ERROR":"The wiki has not been edited because the request was cancelled.  Click \'OK\' to try again.","ERROR":"The wiki could not be edited.  Please try again later.","TIMEOUT_ERROR":"The wiki has not been edited because the server could not be contacted.  Click \'OK\' to try again.","NOT_LOGGED_IN_ERROR":"You must be logged in to edit this wiki.  Click \'OK\' to be prompted to log in.","NOT_FOUND_ERROR":"The wiki has been deleted or is no longer visible to you.","ACCESS_DENIED_ERROR":"You no longer have permission to edit this wiki."},"ACTION":"Edit Wiki","BUSY":"Saving...","WARN_RESERVED_TITLE":"The wiki name you entered is reserved and cannot be used","CANCEL":"Cancel","FORM_TITLE":"Edit Wiki"},"ERROR_IN_APP_MESSAGE":"Click the browser back button to return to the previous page and try again.  If this error persists, report the problem to your administrator.","JAVASCRIPT_DISABLED_TITLE":"Turn on JavaScript","EDIT_WIKI_PAGE":{"ERROR_GENERIC":"The page could not be edited please contact your administrator.","ERROR_CANCEL":"The page could not be edited because the request was cancelled.","ERROR_TIMEOUT":"The page could not be edited because the server could not be contacted. Please try again later.","ERROR_NOT_LOGGED_IN":"You must be logged in to edit this page."},"WATCHLIST":{"HELP":"Watchlist Help","MYWATCHLIST":"My Watchlist","REMOVE":"Remove from Watchlist","TIP1":"The watchlist displays the names of people you add to your list. Click the name to view that person\'s files.","TIP2":"To add someone to your watchlist, go to the wiki of the person whose name you want to add, and then click the link Add to Watchlist.","CLOSE":"Close Watchlist","OPEN":"Open Watchlist","REMOVECONFIRM":"Are you sure you want to remove this person from your watchlist?","LOADING":"Loading...","ADDUSER":"Add ${0} to Watchlist...","EMPTY":"There are no people being watched."},"ELLIPSIS":"...","UNSAVED_CHANGES":{"PAGE_AUTOSAVED_GENERAL":"You have a draft of this page with unsaved edits. You can edit your draft, or discard the draft and edit the current page.","EXPIRES":{"MONTH":"Will be deleted ${date}","TODAY":"Will be deleted today at ${time}","YESTERDAY":"Scheduled for deletion","DAY":"Will be deleted ${date} at ${time}","YEAR":"Will be deleted ${date_long}","FULL":"${date_long} ${time_long}"},"AUTOSAVED":{"MONTH":"${pagetitle} page in the ${wikititle} wiki autosaved ${date}","TODAY":"${pagetitle} page in the ${wikititle} wiki autosaved today at ${time}","YESTERDAY":"${pagetitle} page in the ${wikititle} wiki autosaved yesterday at ${time}","DAY":"${pagetitle} page in the ${wikititle} wiki autosaved ${date} at ${time}","YEAR":"${pagetitle} page in the ${wikititle} wiki autosaved ${date_long}","FULL":"${date}, ${date_long} ${time_long}"},"PAGE_AUTOSAVED":{"MONTH":"This page has unsaved changes that were autosaved ${date}","TODAY":"This page has unsaved changes that were autosaved today at ${time}","YESTERDAY":"This page has unsaved changes that were autosaved yesterday at ${time} ","DAY":"This page has unsaved changes that were autosaved ${date} at ${time}","YEAR":"This page has unsaved changes that were autosaved ${date_long}","FULL":"This page has unsaved changes that were autosaved ${date_long} ${time_long}"},"ALERT":"You have unsaved changes to the following pages:","AUTOSAVED_EXPIRES":{"MONTH":"${pagetitle} page in the ${wikititle} wiki autosaved ${date}. ${expires}","TODAY":"${pagetitle} page in the ${wikititle} wiki autosaved today at ${time}. ${expires}","YESTERDAY":"${pagetitle} page in the ${wikititle} wiki autosaved yesterday at ${time}. ${expires}","DAY":"${pagetitle} page in the ${wikititle} wiki autosaved ${date} at ${time}. ${expires}","YEAR":"${pagetitle} page in the ${wikititle} wiki autosaved ${date_long}. ${expires}","FULL":"${date}, ${date_long} ${time_long}"}},"WIKI_ACCESS":{"DIALOG_TITLE":"Manage Access","INFO_SUCCESS":"The access settings were changed.","ERROR_SAVE":{"CANCEL_ERROR":"The access settings were not changed because the request was cancelled.  Click \'OK\' to try again.","ERROR":"The access settings could not be changed.  Please try again later.","TIMEOUT_ERROR":"The access settings were not changed because the server could not be contacted.  Click \'OK\' to try again.   ","NOT_LOGGED_IN_ERROR":"You must be logged in to change access settings for this wiki.  Click \'OK\' to be prompted to log in.","NOT_FOUND_ERROR":"The wiki has been deleted or is no longer visible to you and the changes to access settings cannot be saved.","ACCESS_DENIED_ERROR":"You no longer have permission to change the access settings for this wiki."},"ACTION":"Manage Access","CLOSE":"Close","BUSY":"Saving...","CANCEL":"Cancel","ACTION_TOOLTIP":"Manage access to this wiki","OK":"Save","ERROR_READ":{"CANCEL_ERROR":"The access settings were not retrieved because the request was cancelled.  Click \'OK\' to try again.","ERROR":"The access settings could not be retrieved.  Please try again later.","TIMEOUT_ERROR":"The access settings were not retrieved because the server could not be contacted.  Click \'OK\' to try again.   ","NOT_LOGGED_IN_ERROR":"You must be logged in to view access settings for this wiki.  Click \'OK\' to be prompted to log in.","ACCESS_DENIED_ERROR":"You no longer have permission to view the access settings for this wiki.","NOT_FOUND_ERROR":"The wiki has been deleted or is no longer visible to you and the access settings cannot be retrieved."}},"CONNSEARCH":{"SCOPE_CONNECTIONS_FILES":{"LABEL":"Files","HOVER":"Search Files"},"HINT":"Search","INTERESTED":"People interested in...","SCOPE_CONNECTIONS_DOGEAR":{"LABEL":"Bookmarks","HOVER":"Search Bookmarks"},"PEOPLE":"People","SCOPE_PUBLICWIKIS":{"LABEL":"Public Wikis","HOVER":"Search Public Wikis"},"SCOPE_CONNECTIONS_COMMUNITIES":{"LABEL":"Communities","HOVER":"Search Communities"},"FILES":"Files belonging to...","SCOPE_CONNECTIONS_ADVANCED":{"LABEL":"Advanced","HOVER":"Go to the advanced search page"},"SCOPE_CONNECTIONS_BLOGS":{"LABEL":"Blogs","HOVER":"Search Blogs"},"HOVER":"Refine search options","SCOPE_CONNECTIONS_PROFILES":{"LABEL":"Profiles","HOVER":"Search Profiles"},"SCOPE_CONNECTIONS_ACTIVITIES":{"LABEL":"Activities","HOVER":"Search Activities"},"USER_RESULTS":"People search results for name and email: ${0}","SCOPE_CONNECTIONS_FORUMS":{"LABEL":"Forums","HOVER":"Search Forums"},"COMMUNITIES":"Communities","SEARCH":"Search","SCOPE_MYWIKIS":{"LABEL":"My Wikis","HOVER":"Search My Wikis"},"SCOPE_CONNECTIONS_ALL":{"LABEL":"developerWorks community","HOVER":"Search all content"},"SCOPE_ALLWIKIS":{"LABEL":"All Wikis","HOVER":"Search All Wikis"},"PEOPLE_DEFAULT":"Name or email","SEARCH_ALT":"Search","FAVORITES":"Favorites for...","SCOPE_THISWIKI":{"LABEL":"This Wiki","HOVER":"Search This Wiki"},"SCOPE_GOTOWIKI":{"LABEL":"Go to Wiki...","HINT":"Name","HOVER":"Search for a Wiki"}},"CONTINUE_TO_APP":"Continue to Wikis","RESTORE_ALL_PAGES":{"DIALOG_TITLE":"Restore All","CANCEL_ERROR":"The pages have not been restored because the request was cancelled.  Click \'OK\' to try again.","QUESTION":"All pages will be restored to the wiki.","ERROR":"The pages could not be restored.  Please try again later.","TIMEOUT_ERROR":"The pages have not been restored because the server could not be contacted.  Click \'OK\' to try again.","INFO_SUCCESS":"The pages were restored.","ACTION":"Restore All","CLOSE":"Close","BUSY":"Restoring...","ACTION_TOOLTIP":"Restore all pages in the trash.","CANCEL":"Cancel","OK":"OK","ACCESS_DENIED_ERROR":"You no longer have permission to restore pages in the trash.","NOT_FOUND_ERROR":"The wiki has been deleted or is no longer visible to you.","NOT_LOGGED_IN_ERROR":"You must be logged in to restore pages.  Click \'OK\' to be prompted to log in."},"ERROR_IN_APP_TITLE":"We are unable to process your request","CLOSE":"Close","TOGGLE_SECTION":"Expand and collapse this section","PUBLICWIKIS":{"SUBSCRIBE_TO_FEED_TOOLTIP":"Follow changes to public wikis through your feed reader","FEED_LINK_TITLE":"Public Wikis","EMPTY":{"FILTERED":"There are no public wikis that match your filters.","NORMAL":"There are no public wikis."},"SUBSCRIBE_TO_FEED":"Feed for public wikis"},"FILTERS":{"ALL_TAGS":{"TITLE":"Public tags","EXPAND":"Expand the public tags filter","COLLAPSE":"Collapse the public tags filter"},"MEMBER_ROLE":{"READER":"Reader","EDITOR_TITLE":"Editor","READER_TOOLTIP":"Members who are readers of the wiki","OWNER_LONG":"Owners","OWNER_TITLE":"Owner","EDITOR":"Editor","EDITOR_LONG":"Editors","EDITOR_TOOLTIP":"Members who are editors of the wiki","OWNER":"Owner","OWNER_TOOLTIP":"Members who are owners of the wiki","TITLE":"Role","READER_LONG":"Readers","READER_TITLE":"Reader"},"MY_TAGS":{"TITLE":"Tags","EXPAND":"Expand the tags filter","COLLAPSE":"Collapse the tags filter"},"USER_TAGS":{"TITLE":"Tags","EXPAND":"Expand the tags filter","COLLAPSE":"Collapse the tags filter"},"DATE":{"TODAY":"Today","TODAY_TOOLTIP":"Since midnight today","LASTYEAR_LONG":"Only updated in the last year ","LASTMONTH":"Last 30 days","LASTWEEK":"Last week","LASTMONTH_TOOLTIP":"Last 30 days","LASTWEEK_TOOLTIP":"Last 7 days","LASTMONTH_LONG":"Only updated in the last thirty days ","LASTWEEK_LONG":"Only updated in the last seven days ","LASTYEAR":"Last year","LASTYEAR_TOOLTIP":"Last 365 days","TITLE":"Date","TODAY_LONG":"Only updated since midnight today "},"PERMISSION":{"VIEW":"read","TITLE":"Permission","EDIT":"contribute"},"MEMBER_TYPE":{"USER_LONG":"People","GROUP_TOOLTIP":"Groups which are members of the wiki ","USER_TITLE":"Person","TITLE":"Kind","GROUP_TITLE":"Group","USER":"Person","GROUP_LONG":"Groups","USER_TOOLTIP":"People who are members of the wiki","GROUP":"Group"}},"OK":"OK","WIKI_EDITOR":{"STYLE":{"LTR_LANG":"LTR Language","RTL_LANG":"RTL Language"}},"DOCUMENTCONTENT":{"SIZE":"Size: ","CREATED":"Created:","DOWNLOAD":"Download (${0})","NAME":"Name:","PAGE":{"TIMES_DOWNLOADED":"Page views: ","DOWNLOADS":"${0} (${1} anonymously)","NO_DOWNLOADS":"None","DOWNLOADED_BY":"Page viewed by: "},"ATTACHMENTS":"Attachments (${0})","CREATE_NEW_PAGE":"Create New Page","HIERARCHY":"Hierarchy:","SHARE_PROPAGATE_ON":"All readers can share this file.","SHARE_PROPAGATE_OFF":"Only the owner can share this file.","TAGS":"Tags: ","VERSIONS":"Versions (${0})","UPDATED":"Updated: ","DESCRIPTION":"Description:","DOWNLOAD_LABEL":"Download as: ","SHARE_PROPAGATE_OWNER":"Allow other people to share this file?  When checked, everyone who can see the file will be able to share it.","DOWNLOAD_WARN":"!","DOWNLOAD_WARN_LONG":"This file may not download properly because it has a long file name.  To ensure a successful download, use your browser\'s Save As feature.","SHARE_PROPAGATE_PUBLIC":"Everyone can share this file.","ADDED":"Added: ","PRIVATE":"This file is visible only to you.","NODESCRIPFILE":"No description for this file","SHARED":{"BASE":"This file is visible to the owner and is shared with you.","WITH":{"MANY_1":"${0} others","ONE":"This file is visible to the owner and is shared with ${0}.","ONE_1":"1 person","MANY":"This file is visible to the owner and is shared with ${0}."},"BY":{"MANY_1":"${0} people","ONE":"This file is visible to you and is shared with ${0}.","ONE_1":"1 person","MANY":"This file is visible to you and is shared with ${0}."}},"CHILDPAGES":"Child pages (${0}):","ABOUTFILE":"About this file","PUBLIC":{"BASE":"This file is visible to everyone.","WITH":{"MANY_1":"${0} people","ONE":"This file is visible to everyone and is shared with ${0}.","ONE_1":"1 person","MANY":"This file is visible to everyone and is shared with ${0}."},"BY":{"MANY_1":"${0} people","ONE":"This file is visible to everyone and is shared with ${0}.","ONE_1":"1 person","MANY":"This file is visible to everyone and is shared with ${0}."}},"ERRORS":{"DEFAULT":{"TITLE":"The file could not be displayed","MESSAGES":"The file you have requested cannot be displayed - click the back button and try again. If this doesn\'t work report the problem to the support forum."},"AUTH_REQUIRED_ANON":{"TITLE":"Log in to Wikis","MESSAGES":"To change your notification settings on this file you must be logged in to Wikis. "},"ACCESS_DENIED_ANON":{"TITLE":"This file is not public","MESSAGES":"You do not have permission to view this file.  If this is your file or it has been shared with you, you must log in to Wikis first. "},"SERVICE_ERROR_NOT_FOUND":{"TITLE":"The item could not be found.","MESSAGES":"The item you have requested could not be located. It may have been deleted or moved."},"NOT_FOUND_ANON":{"TITLE":"The file could not be displayed","MESSAGES":"The file you have requested cannot be displayed.  You may need to log in to view this file or the owner may have deleted it."},"ACCESS_DENIED":{"TITLE":"This file is not public or shared with you.","MESSAGES":"You do not have permission to view this file.  The file is not public and is not shared with you."},"NOT_FOUND":{"TITLE":"The file could not be displayed","MESSAGES":"The file you have requested cannot be displayed.  Check that you have permission to view this file and that the owner has not deleted it."},"LOGIN":"Log in now","OWNER_NOT_FOUND":{"TITLE":"The file could not be found","MESSAGES":"The file you have requested has been deleted."}},"REQUIRED_NAME":"*Name: ","SHAREDWITH":"Sharing","DOWNLOAD_TOOLTIP":"Download ${0} (${1})","COMMENTS":"Comments (${0})","TIMESTAMP":"${date_long} ${time_long} by ${user}","NODESCRIPPAGE":"No description for this page","BROWSE_OTHER":"Browse other files from ${0}","ABOUTPAGE":"About this page","FILE":{"TIMES_DOWNLOADED":"Downloads: ","DOWNLOADS":"${0} (${1} anonymously)","NO_DOWNLOADS":"None","DOWNLOADED_BY":"Downloaded by: "}},"WIKI_CONFIRMNEWPAGE":{"HASNOTBEENCREATED":"has not been created yet","NOPAGES":"No pages have been created in this wiki.","CREATEAPAGE":"Create A Page","CREATETHISPAGE":"Create This Page","FOLLOWEDLINK":"You have followed a link to or entered the address of a page that has not been created yet.","NOTHANKS":"No thanks - take me back","BENOTIFIED":"Click Following Actions-\x3eFollow this wiki to be notified when a page is created."},"MOVEPAGE":{"MOVEPAGEINTO":"Move this page into: ","DIALOG_TITLE":"Move Page","REORDER_LABEL2":"Reorder top level","LIST_TEXT1":"Choose a parent page from the list of pages in this wiki or ","LIST_TEXT2":"choose a parent page from the list of pages in this wiki","REORDERWITHIN":"Reorder within: ","TOPLEVEL":"top level","NONEXISTING_PARENT":"The page you typed does not exist. Type an existing page, or click \"Browse...\" to select an existing page.","REORDER_TAB":"Reorder Peer Pages","INFO_SUCCESS":"The page was moved.","LIST_TITLE":"Reorder pages with the arrow keys","CLOSE":"Close","CHOOSE_BUTTON":"Browse...","ACTION_TOOLTIP":"Click to move this page","UP":"Move Up","OK":"OK","PARENT_TAB":"Find Parent Page","DOWN":"Move Down","MANUAL_TEXT1":"enter the page name manually","CURRENTPAGELABEL":"${0} (current page)","MANUAL_TEXT2":"Enter a parent page name manually or ","MOVETHIS":"Move this page: ","CANNOTCHOOSEASCHILD":"You cannot choose a descendant of the current page as a parent","REORDER_LABEL":"Reorder children of ${0}:","CANNOTCHOOSEASPARENT":"You cannot choose the current page as a parent","ACTION":"Move Page","BUSY":"Saving...","CANCEL":"Cancel","LOADMORE":"Load more...","MAKETOPLEVEL":"Make this a top level page","CHOOSE_BUTTON_TOOLTIP":"Browse pages","INPUT_LABEL":"Type or browse for a parent page: "},"SUCCESS":"Success","ERROR":"Error","PAGECONTENT":{"DOWNLOAD_PAGE_AS_PDF_TOOLTIP":"Download ${0} (${1}) as a pdf","DOWNLOAD_HTML":"HTML","DOWNLOAD_PAGE_AS_HTML_TOOLTIP":"Download ${0} (${1}) as html","PRIVATE":"This page is visible only to you.","SHARED":{"BASE":"This page is visible to the owner and is shared with you.","WITH":{"MANY_1":"${0} others","ONE":"This page is visible to the owner and is shared with ${0}.","ONE_1":"1 person","MANY":"This page is visible to the owner and is shared with ${0}."},"BY":{"MANY_1":"${0} people","ONE":"This page is visible to you and is shared with ${0}.","ONE_1":"1 person","MANY":"This page is visible to you and is shared with ${0}."}},"NODESCRIP":"No description for this page","PUBLIC":{"BASE":"This page is visible to everyone.","WITH":{"MANY_1":"${0} people","ONE":"This page is visible to everyone and is shared with ${0}.","ONE_1":"1 person","MANY":"This page is visible to everyone and is shared with ${0}."},"BY":{"MANY_1":"${0} people","ONE":"This page is visible to everyone and is shared with ${0}.","ONE_1":"1 person","MANY":"This page is visible to everyone and is shared with ${0}."}},"ERRORS":{"DEFAULT":{"TITLE":"The page could not be displayed","MESSAGES":"The page you have requested cannot be displayed - click the back button and try again. If this doesn\'t work report the problem to the support forum."},"NOT_FOUND_ANON":{"TITLE":"The page could not be displayed","MESSAGES":"The page you have requested cannot be displayed.  You may need to log in to view this page or the owner may have deleted it."},"AUTH_REQUIRED_ANON":{"TITLE":"Log in to Wikis","MESSAGES":"To change your notification settings on this page you must be logged in to Wikis. "},"ACCESS_DENIED_ANON":{"TITLE":"This page is not public","MESSAGES":"You do not have permission to view this page.  If this is your page or it has been shared with you, you must log in to Wikis first. "},"ACCESS_DENIED":{"TITLE":"This page is not public or shared with you.","MESSAGES":"You do not have permission to view this page.  The page is not public and is not shared with you."},"NOT_FOUND":{"TITLE":"The page could not be displayed","MESSAGES":"The page you have requested cannot be displayed.  Check that you have permission to view this page, and that the owner has not deleted it."},"LOGIN":"Log in now","OWNER_NOT_FOUND":{"TITLE":"The page could not be found","MESSAGES":"The page you have requested has been deleted."}},"DOWNLOAD_RTF":"RTF","DOWNLOAD_PAGE_AS_RTF_TOOLTIP":"Download ${0} (${1}) as rich text","SHARE_PROPAGATE_ON":"All readers can share this page.","SHARE_PROPAGATE_OFF":"Only the owner can share this page.","NO_CONTENT":"No Content","DOWNLOAD_PDF":"PDF","DOWNLOAD_WARN":"!","SHARE_PROPAGATE_OWNER":"Allow other people to share this page?  When checked, everyone who can see the page will be able to share it.","DOWNLOAD_WARN_LONG":"This page may not download properly because it has a long name.  To ensure a successful download, use your browser\'s Save As feature.","SHARE_PROPAGATE_PUBLIC":"Everyone can share this page."},"ATOMPUB":{"TITLE":"Atom Publishing Protocol Service Document"},"CREATE_PAGE":{"ACTION":"New Page","ACTION_TOOLTIP":"Create a new page"},"COMMENTS":{"ADD_COMMENT":"Add a comment","ERROR_EDIT":"Your comment could not be updated.  Please try again later.","ERROR_EDIT_TIMEOUT":"Your comment could not be updated because the server could not be contacted.  Click \'Save\' to try again.","ERROR_CREATE_CANCEL":"Your comment could not be saved because the request was cancelled.  Click \'Save\' to try again.","EDIT":"Edit","ERROR_VALIDATE":"Your mentioned user in comment could not be validated.  Please try again later.","WARNING_PRIVATE_COMMUNITY_TOOLTIP":"Note: Only community members will see the comment.","PAGE":"Page","ERROR_VALIDATE_TIMEOUT":"Your mentioned user in comment could not be validated because the server could not be contacted.  Please try again later.","ERROR_NO_CONTENT":"Please enter your comment and click \'Save.\'  If you no longer want to leave a comment click \'Cancel.\'","WARNING_PRIVATE_WIKI_TOOLTIP":"Note: Only wiki members will see the comment.","DELETECONFIRM":"Are you sure you want to delete this comment?","WARN_LONG_COMMENT":"The comment is too long.","ERROR_NO_CONTENT_EDIT":"Please enter your comment and click \'Save.\'  If you no longer want to edit your comment click \'Cancel.\'","ERROR_EDIT_NOT_FOUND":"Your comment could not be updated because the page has been deleted or is no longer visible to you.","ERROR_EDIT_ACCESS_DENIED":"Your comment could not be updated because the page has been deleted or is no longer visible to you.","LOADING":"Loading comments...","NOHYPHENCOUNT":"${0} of ${1}","SUBSCRIBE_TO_COMMENTS":"Feed for these comments","ERROR_VALIDATE_ACCESS_DENIED":"Your mentioned user in comment could not be validated because the page has been deleted or is no longer visible to you.","ERROR_VALIDATE_NOT_FOUND":"Your mentioned user in comment could not be validated because the page has been deleted or is no longer visible to you.","REFRESH_INPUT":"Changing the value will refresh page results","COMMENT_EDITED":{"MONTH":"Edited on ${date}","TODAY":"Edited today at ${time}","YESTERDAY":"Edited yesterday at ${time}","DAY":"Edited on ${date}","YEAR":"Edited on ${date_long}"},"DELETE":"Delete","EMPTY":"There are no comments.","COMMENT_COUNT_MANY":"${0} comments","DELETEREASON":"Reason for deleting this comment:","ERROR_CREATE":"Your comment could not be saved.  Please try again later.","ERROR_CREATE_TIMEOUT":"Your comment could not be saved because the server could not be contacted.  Click \'Save\' to try again.","ERROR_EDIT_NOT_LOGGED_IN":"You must be logged in to edit this comment.  Click \'Save\' to be prompted to log in.","ERROR_DELETE_ACCESS_DENIED":"Your comment could not be deleted because the page is no longer visible to you.","ERROR_DELETE_NOT_FOUND":"Your comment could not be deleted because the comment or the page has already been deleted.","ERROR_EDIT_DELETED":"Your comment could not be updated because it has been deleted. Click \'Save\' to save it as a new comment.","OF_PAGES":" and ${0}","JUMP_TO_PAGE":"Jump to a page between \xa0","SUBSCRIBE_TO_COMMENTS_TOOLTIP":"Follow changes to these comments through your feed reader","COMMENT_CREATED":{"MONTH":"${user} commented on ${timestamp}","TODAY":"${user} commented ${timestamp}","YESTERDAY":"${user} commented ${timestamp}","DAY":"${user} commented on ${timestamp}","YEAR":"${user} commented on ${timestamp}"},"JUMP_TO_LAST":"Most recent","ERROR_CREATE_ACCESS_DENIED":"Your comment could not be saved because the page has been deleted or is no longer visible to you.","ERROR_CREATE_NOT_FOUND":"Your comment could not be saved because the page has been deleted or is no longer visible to you.","PERMALINK":"Permalink","ADD_INFO_SUCCESS":"The comment was added.","ITEMS_PER_PAGE":" items per page","ELLIPSIS":"...","COMMENT_LABEL":"Comment:","ERROR_DELETE_NOT_LOGGED_IN":"You must be logged in to delete this comment.  Click \'Delete\' to be prompted to log in.","TRIM_LONG_COMMENT_CONFIRM":"Shortening will remove the text beyond the comment limit.  Click \'OK\' to shorten or \'Cancel\' to edit the comment yourself.","VIEW_COMMENTS_PAGE":"View comments on this page","ERROR_DELETE":"Your comment could not be deleted.  Please try again later.","ERROR_DELETE_TIMEOUT":"Your comment could not be deleted because the server could not be contacted.  Click \'Delete\' to try again.","COMMENT_CREATED_TIME":{"MONTH":"${date}","TODAY":"today at ${time}","YESTERDAY":"yesterday at ${time}","DAY":"${date} at ${time}","YEAR":"${date_long}"},"DELETE_INFO_SUCCESS":"The comment was deleted.","EDIT_INFO_SUCCESS":"The comment was edited.","ERROR_CREATE_NOT_LOGGED_IN":"You must be logged in to create this comment.  Click \'Save\' to be prompted to log in.","WARNING_PRIVATE_COMMUNITY":"The following people mentioned will not be able to view the message because they cannot access this wiki:","JUMP_TO_PAGE_BETWEEN":"Jump to a page between ${0} and ${1}","ERROR_VALIDATE_CANCEL":"Your mentioned user in comment could not be validated because the request was cancelled.  Please try again later.","WARNING_PRIVATE_WIKI":"The following people mentioned will not be able to view the message because they cannot access this wiki:","COUNT":"${0}-${1} of ${2}","NEXT":"Next","FEED_LINK_TITLE":"Comments of ${0}","COMMENT_COUNT_ONE":"${0} comment","PREVIOUS":"Previous","ERROR_DELETE_CANCEL":"Your comment could not be deleted because the request was cancelled.  Click \'Delete\' to try again.","ERROR_EDIT_CANCEL":"Your comment could not be updated because the request was cancelled.  Click \'Save\' to try again.","TRIM_LONG_COMMENT":"Shorten comment to fit a maximum length of 51200 characters?","COMMENT_DELETED":{"MONTH":"Comment deleted by ${user} on ${date}","TODAY":"Comment deleted by ${user} today at ${time}","YESTERDAY":"Comment deleted by ${user} yesterday at ${time}","DAY":"Comment deleted by ${user} on ${date} at ${time}","YEAR":"Comment deleted by ${user} on ${date_long}"},"LINK":"Link","CANCEL":"Cancel","SHOW":"Show","SAVE":"Save"},"MEMBERS":{"SUBSCRIBE_TO_FEED_TOOLTIP":"Follow changes to these members through your feed reader","COMMUNITY_INFO":"You manage community wiki membership and roles in the community that owns the wiki. You edit community membership and roles by opening its business card and accessing its Members page.","FEED_LINK_TITLE":"Members of ${0}","INACTIVE":"${0} (inactive)","EMPTY":"No members found. ","SUBSCRIBE_TO_FEED":"Feed for these members"},"UPLOAD_FILE":{"DIALOG_TITLE":"Upload File","TRIM_LONG_MESSAGE_CONFIRM":"Shortening will remove the text beyond the message limit.  Click \'OK\' to shorten or \'Cancel\' to edit the message yourself.","WARN_INVALID_CHARS_IN_NAME":"File names may not contain the following characters: \\ / : * ? \" \x3c \x3e | [ ]","WARN_LONG_TAGS":"The specified tags are too long.","NOTE_LABEL":"Note: ","WARN_NO_FILENAME":"File name is a required field.","TRIM_LONG_FILENAME":"Shorten file name?","WARN_LONG_TAG":"The tag \'${0}\' is too long.","TRIM_LONG_DESCRIPTION":"Shorten description?","TRIM_TAGS":"Shorten tags?","CLOSE":"Close","ACTION_TOOLTIP":"","OK":"OK","TRIM_TAG":"Shorten tag?","ERROR_NOT_LOGGED_IN":"You must be logged in to upload this file.  Click \'OK\' to be prompted to log in.","SELECT_FILE":"Please select a file to upload","NAME_LABEL":"File name: ","TRIM_LONG_MESSAGE":"Shorten message?","VISIBILITY_LABEL":"Visibility: ","ERROR":"The file could not be uploaded.  Please try again later","FILE_DOES_NOT_EXIST":"This file does not exist.  Please select a file using the browse button.","ERROR_TIMEOUT":"The file could not be uploaded because the server could not be contacted.  Click \'OK\' to try again.","TRANSFER":"Uploading ${0} @ ${1}/s ","TAGS_LABEL":"Tags:","SELECT_USER":"Please select one or more people to share with","CONTENTS_LABEL":"File: ","FIX_INVALID_CHARS_IN_NAME":"Replace invalid characters with \'_\'?","DESCRIPTION_LABEL":"Description: ","WARN_LONG_FILENAME":"The file name is too long. ","ERROR_CANCEL":"The file could not be uploaded because the request was cancelled.  Click \'OK\' to try again.","WARN_LONG_DESCRIPTION":"The description is too long. ","ERROR_FILENAME_INVALID_CHARACTERS":"The file name may not contain the characters: % & \\ \"","CONFIRM_REPLACE":"Another file with the same name already exists in this file stream.  Do you want to replace the contents of the existing file?\nNote: Only the contents of the file will be changed, all other information will remain the same.","ACTION":"Upload a File","BUSY":"Uploading...","ERROR_MAX_CONTENT_SIZE":"The file could not be uploaded because it is larger than the maximum allowed file size of ${0}","CANCEL":"Cancel","WARN_LONG_MESSAGE":"The message is too long.","PUBLIC_LABEL":"Make this file public (visible to everyone)","ERROR_ACCESS_DENIED":"The file could not be replaced because you are not a contributor to this wiki."}};

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








































dojo.provide("com.ibm.lconn.layout.people");
dojo.requireLocalization("lconn.wikis","ui");
var _nls=lconn.share0.scenes.nls=dojo.i18n.getLocalization("lconn.wikis","ui");
lconn.share0.scenes.getPivotMsgNoData=function(_1){
var p=this.msgNoData;
var _2;
if(dojo.some(_1.activeFilters,function(a){
return a.id=="files";
})){
p=(_1.activeFilters.length>1)?p.FILTERED:p.NORMAL;
_2=p.FILES;
}else{
if(dojo.some(_1.activeFilters,function(a){
return a.id=="pages";
})){
p=(_1.activeFilters.length>1)?p.FILTERED:p.NORMAL;
_2=p.PAGES;
}else{
p=(_1.activeFilters.length>0)?p.FILTERED:p.NORMAL;
_2=p.MEDIA;
}
}
return _2;
};
lconn.share0.scenes.CHANNEL_VIEWS=[{id:"details",name:_nls.VIEWS.DETAILS,tooltip:_nls.VIEWS.DETAILS_TOOLTIP,img:"Details"},{id:"summary",name:_nls.VIEWS.SUMMARY,tooltip:_nls.VIEWS.SUMMARY_TOOLTIP,img:"Summary"}];
lconn.share0.scenes.CHANNEL_FILTERS={DATE:[{id:"today",name:_nls.FILTERS.DATE.TODAY,longName:_nls.FILTERS.DATE.TODAY_LONG,tooltip:_nls.FILTERS.DATE.TODAY_TOOLTIP,setServiceOptions:function(_3){
var _4=new Date();
_4.setHours(0);
_4.setMinutes(0);
_4.setSeconds(0);
_4.setMilliseconds(0);
_3.startDate=_4.getTime();
},removeAppParams:function(_5){
delete _5.date;
}},{id:"lastweek",name:_nls.FILTERS.DATE.LASTWEEK,longName:_nls.FILTERS.DATE.LASTWEEK_LONG,tooltip:_nls.FILTERS.DATE.LASTWEEK_TOOLTIP,interval:7*24*60*60*1000,setServiceOptions:function(_6){
var _7=new Date().getTime()-this.interval;
_6.startDate=_7;
},removeAppParams:function(_8){
delete _8.date;
}},{id:"lastmonth",name:_nls.FILTERS.DATE.LASTMONTH,longName:_nls.FILTERS.DATE.LASTMONTH_LONG,tooltip:_nls.FILTERS.DATE.LASTMONTH_TOOLTIP,interval:31*24*60*60*1000,setServiceOptions:function(_9){
var _a=new Date().getTime()-this.interval;
_9.startDate=_a;
},removeAppParams:function(_b){
delete _b.date;
}},{id:"lastyear",name:_nls.FILTERS.DATE.LASTYEAR,longName:_nls.FILTERS.DATE.LASTYEAR_LONG,tooltip:_nls.FILTERS.DATE.LASTYEAR_TOOLTIP,interval:365*24*60*60*1000,setServiceOptions:function(_c){
var _d=new Date().getTime()-this.interval;
_c.startDate=_d;
},removeAppParams:function(_e){
delete _e.date;
}}]};
lconn.share0.scenes.hideLotusFrame=function(d,_f){
var _10=d.body;
var _11=d.getElementById("lotusFrame");
if(_11){
_10=_11.parentNode;
if(dojo.hasClass(_11,"_qkrInitial")){
lconn.share0.scenes.prepStorage(d,_11);
}else{
lconn.share0.scenes.saveCustomTemplate(d,"qkrStorage");
lconn.share0.util.html.destroyWidgets(_11);
_10.removeChild(_11);
}
}
var el=d.createElement("div");
el.className="lotusFrame lotusui30_layout";
el.id="lotusFrame";
_10.appendChild(el);
return {frame:el};
};
lconn.share0.scenes.resetLotusFrame=function(d,app){
var old=lconn.share0.scenes.detachCustomTemplate(d,app);
var _12=d.body;
var _13=d.getElementById("lotusFrame");
if(_13){
_12=_13.parentNode;
if(dojo.hasClass(_13,"_qkrInitial")){
lconn.share0.scenes.prepStorage(d,_13);
}else{
lconn.share0.util.html.destroyWidgets(_13);
_12.removeChild(_13);
}
}
var el=old.frame=d.createElement("div");
el.className="lotusFrame lotusui30_layout";
el.id="lotusFrame";
_12.appendChild(el);
return old;
};
lconn.share0.scenes.prepStorage=function(d,el){
el.style.display="none";
el.id="qkrStorage";
el.className="";
var _14=dojo.byId("lconnApplicationLoading");
if(_14&&_14.parentNode==el){
el.removeChild(_14);
}
};
lconn.share0.scenes.detachCustomTemplate=function(d,app){
var _15={};
dojo.forEach(["lotusBanner","lotusFooter","lconnWikisNavTree"],function(id){
var el=d.getElementById(id);
if(el){
if(el.reusable&&!el.reusable(app,app.scene)){
return;
}
this[id]=el;
if(!el.fixedLinks){
dojo.forEach(el.getElementsByTagName("A"),lconn.share0.scenes.applyLinkRulesForConnections,app);
el.fixedLinks=true;
}
if(!el.movedStyleNodes){
dojo.forEach(["LINK","STYLE"],function(_16){
dojo.forEach(el.getElementsByTagName(_16),function(el1){
if(el1){
d.body.appendChild(el1);
}else{
console.log("Ignoring invalid or malformed node");
}
});
});
if(dojo.isIE){
dojo.query("SCRIPT",el).forEach(function(el){
if(el.src){
el.oldSrc=el.src;
el.removeAttribute("src");
}
});
}
el.movedStyleNodes=true;
}
el.parentNode.removeChild(el);
el.style.display="";
}
},_15);
return _15;
};
lconn.share0.scenes.saveCustomTemplate=function(d,_17){
var s=dojo.byId(_17);
if(!s){
throw "saveCustomTemplate called but the save node was not found";
}
dojo.forEach(["lotusBanner","lotusFooter"],function(id){
var el=dojo.byId(id);
if(el){
el.parentNode.removeChild(el);
s.appendChild(el);
}
});
};
lconn.share0.scenes.applyConnectionsTemplate=function(id,d,el,app){
var url=dojo.getObject("lconn.share0.config.templates.base.connections");
if(!url){
return false;
}
var _18=(app.authenticatedUser?app.authenticatedUser.name:null);
var _19=(app.authenticatedUser&&app.authenticatedUser.roles&&dojo.indexOf(app.authenticatedUser.roles,"admin")!=-1);
url=lconn.share0.util.uri.rewriteUri(url,{user:_18,admin:_19});
var _1a=_18+"_"+_19;
el.reusable=dojo.hitch(null,lconn.share0.scenes.reusable,_1a);
var _1b=app.templates.getHtml(url);
if(_1b){
var _1c=dojo.query("div[id="+id+"]",_1b)[0];
if(_1c){
var _1d;
if(dojo.isIE||dojo.isSafari){
_1d=dojo._toArray(_1c.getElementsByTagName("SCRIPT"));
}
dojo.forEach(_1c.getElementsByTagName("A"),lconn.share0.scenes.applyLinkRulesForConnections,app);
var arr=dojo._toArray(_1c.childNodes);
for(var i=0;i<arr.length;i++){
el.appendChild(arr[i]);
}
if(dojo.isIE||dojo.isSafari){
dojo.forEach(_1d,lconn.share0.util.html.evalScriptTag);
}
return true;
}
}
};
lconn.share0.scenes.reusable=function(_1e,app){
var _1f=(app.authenticatedUser?app.authenticatedUser.name:null);
var _20=(app.authenticatedUser&&app.authenticatedUser.roles&&dojo.indexOf(app.authenticatedUser.roles,"admin")!=-1);
return (_1f+"_"+_20)==_1e;
};
lconn.share0.scenes.applyLinkRulesForConnections=function(a){
if(a.href){
if(/login_app_replace$/.test(a.href)){
lconn.share0.scenes.setOnClick(a,this,this.getUrl(),this.login);
}else{
if(/logout_app_replace$/.test(a.href)){
lconn.share0.scenes.setOnClick(a,this,this.routes.getGlobalHomeUrl({authenticated:false}),this.logout);
}else{
if(/help_app_replace$/.test(a.href)){
a.href="javascript:;";
dojo.connect(a,"onclick",dojo.hitch(this,"activateHelp"));
}else{
if(!a.getAttribute("onclick")){
lconn.share0.scenes.setOnClick(a,this,a.href);
}
}
}
}
}
};
lconn.share0.scenes.applyLoading=function(app){
var d=app.document;
var old=lconn.share0.scenes.hideLotusFrame(d,app);
var _21=old.frame;
var el=d.createElement("div");
el.id=el.className="lconnApplicationLoading";
el.appendChild(d.createTextNode(app.nls.LOADING));
_21.appendChild(el);
};
lconn.share0.scenes.applyHomeTemplate=function(d,_22,app,_23,opt){
var old=lconn.share0.scenes.resetLotusFrame(d,app);
var _24=old.frame;
if(old["lotusBanner"]){
_24.appendChild(old["lotusBanner"]);
}else{
throw "Header was not in the DOM when applyHomeTemplate was called";
}
var el=d.createElement("div");
el.id="lotusTitleBar";
el.className="lotusTitleBar";
lconn.share0.scenes.applyTitleBar(d,el,app,opt);
_24.appendChild(el);
var el=d.createElement("div");
el.id="lotusPlaceBar";
el.className="lotusPlaceBar";
el.style.display="none";
_24.appendChild(el);
var el=d.createElement("div");
el.id="lotusMain";
el.className="lotusMain";
_24.appendChild(el);
if(old["lotusFooter"]){
_24.appendChild(old["lotusFooter"]);
}else{
throw "Footer was not in the DOM when applyHomeTemplate was called";
}
window.scroll(0,0);
app.reusable=old;
return old;
};
lconn.share0.scenes.applyNavigationSection=function(app,el,_25,_26,_27,_28){
var d=app.d;
var div=_26.navigationSection;
if(!div){
div=_26.navigationSection=d.createElement("div");
div.id="lotusSidenav";
div.className="lotusMenu";
el.appendChild(div);
dojo.addClass(el.firstChild,"lotusFirst");
}else{
lconn.share0.util.html.removeChildren(div);
}
var _29=d.createElement("div");
_29.className="lotusBottomCorner";
var _2a=d.createElement("div");
_2a.className="lotusInner";
var _2b=d.createElement("div");
dijit.setWaiRole(_2b,"navigation");
var ul=d.createElement("ul");
dijit.setWaiRole(ul,"toolbar");
dijit.setWaiState(ul,"controls","lotusContent");
dijit.setWaiState(ul,"label",_28);
var _2c;
for(var i=0;i<_25.length;i++){
if(_25[i].hidden){
continue;
}
var _2d=_25[i].group;
if(_2d&&_2c&&_2c!=_2d){
_2b.className="lotusMenuSection";
_2b.appendChild(ul);
_2a.appendChild(_2b);
_2b=d.createElement("div");
ul=d.createElement("ul");
}
_2c=_2d;
var _2e=_25[i];
var li=d.createElement("li");
if(_2e.className){
dojo.addClass(li,_2e.className);
}
var a=d.createElement("a");
a.appendChild(d.createTextNode(_2e.name));
if(_2e.tooltip){
a.title=_2e.tooltip;
dijit.setWaiState(a,"label",_2e.tooltip);
}else{
if(_2e.description){
a.title=_2e.description;
dijit.setWaiState(a,"label",_2e.description);
}
}
var url=(_2e.getUrl)?_2e.getUrl(app,_26,_27):null;
if(url){
lconn.share0.scenes.setOnClick(a,app,url);
}
li.appendChild(a);
dijit.setWaiRole(a,"button");
if(_25.active==_2e){
dojo.addClass(li,"lotusSelected");
dijit.setWaiState(a,"pressed","true");
}else{
dijit.setWaiState(a,"pressed","false");
}
if(typeof _2e.decorate=="function"){
_2e.decorate(app,_26,_27,li);
}
li.appendChild(d.createTextNode(" "));
ul.appendChild(li);
}
_2b.appendChild(ul);
_2a.appendChild(_2b);
_29.appendChild(_2a);
div.appendChild(_29);
var _2f=new lconn.core.aria.Toolbar(ul);
if(_26.widgets){
_26.widgets.push(_2f);
}
};
lconn.share0.scenes.applyFilterList=function(app,ul,_30,_31,f,_32){
var d=app.d;
var li=d.createElement("li");
if(_31){
dojo.addClass(li,"lotusSelected");
}
var e=d.createElement("a");
e.className=_32||"";
e.appendChild(d.createTextNode(_30.name));
e.title=_30.tooltip;
dijit.setWaiRole(e,"button");
f(e,_30);
dijit.setWaiState(e,"pressed",_31?"true":"false");
li.appendChild(e);
if(_31){
var a=d.createElement("a");
a.title=app.nls.CONTENT.REMOVE_FILTER_TOOLTIP;
dijit.setWaiRole(a,"button");
f(a);
var img=d.createElement("img");
dijit.setWaiRole(img,"presentation");
img.alt=a.title;
img.className="lconnSprite lconnSprite-iconDelete12";
img.src=dijit._Widget.prototype._blankGif;
a.appendChild(img);
var _33=d.createElement("span");
_33.className="lotusAltText";
_33.appendChild(d.createTextNode("X"));
a.appendChild(_33);
li.appendChild(a);
}
ul.appendChild(li);
};
lconn.share0.scenes.findFilter=function(_34,_35){
var _36=-1;
for(var i=0;i<_35.length;i++){
if(dojo.indexOf(_34,_35[i])!=-1){
_36=i;
break;
}
}
return _36;
};
lconn.share0.scenes.findFilters=function(_37,_38){
var _39=[];
for(var i=0;i<_38.length;i++){
if(dojo.indexOf(_37,_38[i])!=-1){
_39.push(i);
}
}
return _39;
};
lconn.share0.scenes.createFilterSection=function(app,el,_3a,_3b,_3c,f,_3d,_3e,_3f){
var d=app.d;
var div=this.createFilterFrame(app,el,_3a,_3b,_3e,_3f);
var ul=d.createElement("ul");
ul.className="lotusList lotusEditable lotusMeta lotusTags";
for(var i=0;i<_3c.length;i++){
this.applyFilterList(app,ul,_3c[i],(i==_3d),f,"lotusLeft lotusTag");
ul.lastChild.appendChild(d.createTextNode("\xa0"));
}
div.appendChild(ul);
return div;
};
lconn.share0.scenes.createFilterFrame=function(app,el,_40,_41,_42,_43,_44,_45){
var d=app.d;
var _46=d.createElement("div");
_46.id="filter_"+_41;
_46.className="lotusSection";
dijit.setWaiRole(_46,"region");
dijit.setWaiState(_46,"expanded",_42?"false":"true");
if(!el.firstChild){
dojo.addClass(_46,"lotusFirst");
}
var _47=lconn.share0.actions.createInvisibleLabel(d,_46,_42?app.nls.ACCESSIBILITY.LABELS.SECTION.COLLAPSED:app.nls.ACCESSIBILITY.LABELS.SECTION.EXPANDED);
dijit.setWaiState(_47,"live","polite");
_47.id="label_"+_46.id;
var h3=d.createElement("h2");
var _48=dojo.string.substitute(app.nls.TOGGLE_SECTION_NAMED,[_40]);
dojo.connect(h3,"onclick",h3,dojo.partial(lconn.share0.scenes.toggleSection,app.nls.ACCESSIBILITY.LABELS.SECTION,_44?_44:_41,_45));
var a=d.createElement("A");
a.title=_48;
a.href="javascript:;";
dijit.setWaiRole(a,"button");
a.className="lotusSprite lotusArrow"+(_42?" lotusTwistyClosed":" lotusTwistyOpen");
var _49=d.createElement("span");
_49.className="lotusHidden";
_49.appendChild(d.createTextNode(_48));
a.appendChild(_49);
var _4a=d.createElement("span");
_4a.className="lotusAltText";
_4a.appendChild(d.createTextNode(_42?(dojo._isBodyLtr()?"\u25b6":"\u25c0"):"\u25bc"));
a.appendChild(_4a);
h3.appendChild(a);
var _4b=d.createElement("SPAN");
_4b.className="lotusLeft";
_4b.style.cursor="pointer";
_4b.id="span_"+_46.id;
dijit.setWaiState(_46,"label",_41);
_4b.appendChild(d.createTextNode(_40));
_4b.title=lconn.share0.scenes.nls.TOGGLE_SECTION;
h3.appendChild(_4b);
if(_41){
var a=lconn.share0.scenes.createHelpLink(app,h3,_41);
a.className="lotusRight";
}
_46.appendChild(h3);
var div=d.createElement("div");
div.style.display=_42?"none":"";
div.className="lotusSectionBody";
_46.appendChild(div);
if(_43){
lconn.share0.util.dom.insertBefore(el,_46,_43);
}else{
el.appendChild(_46);
}
if(_45&&!_42){
_45(div);
div._decorated=true;
}
return div;
};
lconn.share0.scenes.createHelpLink=function(app,el,_4c){
var d=document;
var a=d.createElement("A");
a.href="javascript:;";
if(_4c){
dijit.setWaiRole(a,"button");
var img=d.createElement("IMG");
img.className=lconn.core.locale.getLanguage()==="ar"?"lconnSprite lconnSprite-iconHelp16-ar":"lconnSprite lconnSprite-iconHelp16";
img.src=dijit._Widget.prototype._blankGif;
img.setAttribute("alt",app.nls.HELP);
a.appendChild(img);
var _4d=d.createElement("span");
_4d.className="lotusAltText";
_4d.appendChild(d.createTextNode("?"));
a.appendChild(_4d);
lconn.share0.scenes.applyTipPopup(app,el,a,_4c);
}
el.appendChild(a);
return a;
};
lconn.share0.scenes.createSortLink=function(app,_4e,_4f,_50,el,_51){
var p=dojo.clone(_50);
p.sort=_51.id;
var url=_4e.getUserChannelUrl(_4f,p);
lconn.share0.scenes.setOnClick(el,app,url);
};
lconn.share0.scenes.createNavigationLink=function(app,_52,_53,_54,el,_55){
var p=dojo.clone(_54);
p.visibility=_55.id;
var url=_52.getUserChannelUrl(_53,p);
lconn.share0.scenes.setOnClick(el,app,url);
};
lconn.share0.scenes.createTypeFilterLink=function(app,_56,_57,_58,el,_59){
var p=dojo.clone(_58);
p.type=_59.id;
var url=_56.getUserChannelUrl(_57,p);
lconn.share0.scenes.setOnClick(el,app,url);
};
lconn.share0.scenes.createSharingFilterLink=function(app,_5a,_5b,_5c,el,_5d){
var p=dojo.clone(_5c);
p.visibility=_5d.id;
var url=_5a.getUserChannelUrl(_5b,p);
lconn.share0.scenes.setOnClick(el,app,url);
};
lconn.share0.scenes.createDateFilterLink=function(app,_5e,_5f,_60,el,_61){
var p=dojo.clone(_60);
p.date=_61.id;
var url=_5e.getUserChannelUrl(_5f,p);
lconn.share0.scenes.setOnClick(el,app,url);
};
lconn.share0.scenes.applyInlinePersonCard=function(d,c,_62,_63,app,_64){
var _65=d.createElement("table");
_65.className="lotusFirst";
var _66=d.createElement("tbody");
var tr=d.createElement("tr");
var td=d.createElement("td");
if(dojo.isIE){
td.style.width="85px";
td.style.height="64px";
}
var el=d.createElement("div");
el.className="lotusVCardController";
var img=d.createElement("IMG");
img.style.height="50px";
img.style.width="50px";
img.src=_62.photoURL;
img.setAttribute("alt",_62.name);
el.appendChild(img);
td.appendChild(el);
tr.appendChild(td);
var td=d.createElement("td");
var h5=d.createElement("h5");
h5.appendChild(d.createTextNode(_62.name));
td.appendChild(h5);
tr.appendChild(td);
_66.appendChild(tr);
_65.appendChild(_66);
c.appendChild(_65);
};
lconn.share0.scenes.applyTitleBar=function(d,el,_67,app){
var _68=app.authenticatedUser;
var _69=app.routes;
var _6a=opt&&opt.scene?opt.scene:app.scene;
var _6b=d.createElement("div");
_6b.className="lotusRightCorner";
var _6c=d.createElement("div");
_6c.className="lotusInner";
var ul=d.createElement("UL");
ul.className="lotusTabs";
dijit.setWaiRole(ul,"toolbar navigation");
dijit.setWaiState(ul,"controls","lotusMain");
var li=d.createElement("LI");
li.className="lotusFirst";
var a=d.createElement("A");
var url=_69.getGlobalHomeUrl();
lconn.share0.scenes.setOnClick(a,null,url,dojo.partial(lconn.wikis.scenes.clickSecondLevelNav,_6a));
a.appendChild(d.createTextNode(app.nls.TITLEBAR.HOME));
a.title=app.nls.TITLEBAR.HOME_TITLE;
dijit.setWaiState(a,"label",app.nls.TITLEBAR.HOME_TITLE);
dijit.setWaiRole(a,"button");
li.appendChild(a);
if(_67=="home"){
if(_6a&&_6a.focusSecondLevelNav){
_6a.focusNode=a;
}
dojo.addClass(li,"lotusSelected");
dijit.setWaiState(a,"pressed","true");
}else{
dijit.setWaiState(a,"pressed","false");
}
ul.appendChild(li);
var li=d.createElement("LI");
var a=d.createElement("A");
if(_68){
var url=_69.getUserChannelUrl(_68.id);
lconn.share0.scenes.setOnClick(a,null,url,dojo.partial(lconn.wikis.scenes.clickSecondLevelNav,_6a));
}else{
var url=_69.getPersonalUserChannelUrl();
lconn.share0.scenes.setOnClick(a,null,url,dojo.partial(lconn.wikis.scenes.clickSecondLevelNav,_6a));
}
a.appendChild(d.createTextNode(app.nls.TITLEBAR.MYCHANNEL));
a.title=app.nls.TITLEBAR.MYCHANNEL_TITLE;
dijit.setWaiState(a,"label",app.nls.TITLEBAR.MYCHANNEL_TITLE);
dijit.setWaiRole(a,"button");
li.appendChild(a);
if(_67=="mychannel"){
if(_6a&&_6a.focusSecondLevelNav){
_6a.focusNode=a;
}
dojo.addClass(li,"lotusSelected");
dijit.setWaiState(a,"pressed","true");
}else{
dijit.setWaiState(a,"pressed","false");
}
ul.appendChild(li);
var li=d.createElement("li");
var a=d.createElement("A");
if(_68){
var url=_69.getUserChannelUrl(_68.id,{pivot:"favorites"});
lconn.share0.scenes.setOnClick(a,null,url,dojo.partial(lconn.wikis.scenes.clickSecondLevelNav,_6a));
}else{
var url=_69.getPersonalUserWatchlistUrl();
lconn.share0.scenes.setOnClick(a,null,url,dojo.partial(lconn.wikis.scenes.clickSecondLevelNav,_6a));
}
a.appendChild(d.createTextNode(app.nls.TITLEBAR.WATCHLIST));
a.title=app.nls.TITLEBAR.WATCHLIST_TITLE;
li.appendChild(a);
if(_67=="myfavorites"){
if(_6a&&_6a.focusSecondLevelNav){
_6a.focusNode=a;
}
dojo.addClass(li,"lotusSelected");
dijit.setWaiState(a,"pressed","true");
}else{
dijit.setWaiState(a,"pressed","false");
}
ul.appendChild(li);
var li=d.createElement("LI");
var a=d.createElement("A");
if(_68){
lconn.share0.scenes.setOnClick(a,app,_69.getUserSharesUrl());
}else{
lconn.share0.scenes.setOnClick(a,app,_69.getPersonalUserSharesUrl());
}
a.appendChild(d.createTextNode(app.nls.TITLEBAR.SHARES));
a.title=app.nls.TITLEBAR.SHARES_TITLE;
li.appendChild(a);
if(_67=="myshares"){
dojo.addClass(li,"lotusSelected");
dijit.setWaiState(a,"pressed","true");
}else{
dijit.setWaiState(a,"pressed","false");
}
ul.appendChild(li);
var li=d.createElement("LI");
var a=d.createElement("A");
lconn.share0.scenes.setOnClick(a,app,_69.getUserSearchUrl());
a.appendChild(d.createTextNode(app.nls.TITLEBAR.ALLUSERS));
a.title=app.nls.TITLEBAR.ALLUSERS_TITLE;
li.appendChild(a);
if(_67=="usersearch"){
if(_6a&&_6a.focusSecondLevelNav){
_6a.focusNode=a;
}
dojo.addClass(li,"lotusSelected");
dijit.setWaiState(a,"pressed","true");
}else{
dijit.setWaiState(a,"pressed","false");
}
ul.appendChild(li);
if(_67&&_67.url){
var li=d.createElement("LI");
li.className="lotusSelected";
var a=d.createElement("A");
lconn.share0.scenes.setOnClick(a,app,_67.url);
a.appendChild(d.createTextNode(_67.name));
li.appendChild(a);
dijit.setWaiState(a,"pressed","true");
ul.appendChild(li);
}
_6c.appendChild(ul);
var tb=new lconn.core.aria.Toolbar(ul);
if(_6a.widgets){
_6a.widgets.push(tb);
}
var _6d=d.createElement("FORM");
_6d.id="searchForm";
_6d.className="lotusSearch";
_6d.name="simpleSearchForm";
dijit.setWaiRole(_6d,"search");
_6d.action=_69.getUserSearchUrl();
var _6e=d.createElement("INPUT");
_6e.value=app.nls.SEARCH.PEOPLE_DEFAULT;
_6e.size="30";
_6d.appendChild(_6e);
var _6f=d.createElement("label");
_6f.className="lotusHidden";
_6d.appendChild(_6f);
var _70=lconn.core0.PeopleTypeAhead.getUserTypeAheadArguments(app.getUserTypeAheadStore(true),{_strings:app.nls.USERSEARCH,id:"searchFor",name:"usersearch","class":"lotusText",orient:{"BR":"TR","TR":"BR"}});
var _71=new lconn.core0.PeopleTypeAhead(_70,_6e);
_71.textbox.style.color="#aaa";
_71.textbox.value=dojo.getObject("lconn.share0.config.services.typeahead.hintText")||app.nls.SEARCH.PEOPLE_DEFAULT;
dojo.connect(_71,"onSelect",app,lconn.share0.scenes.onSelectTypeAheadUser);
dojo.connect(_71.textbox,"onfocus",_71.textbox,function(){
if(!this.old){
this.old=true;
this.style.color="#000";
this.value="";
}
});
dojo.connect(_71.textbox,"onblur",_71.textbox,function(){
if(this.value==""){
this.old=false;
this.style.color="#aaa";
this.value=dojo.getObject("lconn.share0.config.services.typeahead.hintText")||app.nls.SEARCH.PEOPLE_DEFAULT;
}
});
dojo.connect(_6d,"onsubmit",null,dojo.hitch(_6d,lconn.share0.scenes.onSearchUser,app,_69,_71.textbox));
_6f.setAttribute("for",_70.id);
var _72=d.createElement("span");
_72.className="lotusBtnImg";
_72.setAttribute("title",app.nls.SEARCH.SEARCH);
var _6e=d.createElement("input");
_6e.id="simpleSearchSubmit";
_6e.className="lotusSearchButton";
_6e.type="image";
_6e.src=dijit._Widget.prototype._blankGif;
_6e.name="submit";
_6e.setAttribute("alt",app.nls.SEARCH.SEARCH_ALT);
_72.appendChild(_6e);
dojo.connect(_6e,"onclick",null,dojo.hitch(_6d,lconn.share0.scenes.onSearchUser,app,_69,_71.textbox));
var _73=d.createElement("a");
_73.className="lotusAltText";
_73.appendChild(d.createTextNode(app.nls.SEARCH.SEARCH_ALT));
_73.href="javascript:;";
dojo.connect(_73,"onclick",function(){
try{
_6e.click();
}
catch(e){
}
});
_72.appendChild(_73);
_6d.appendChild(_72);
_6c.appendChild(_6d);
_6b.appendChild(_6c);
el.appendChild(_6b);
};
lconn.share0.scenes.onSearchUser=function(app,_74,_75,e){
dojo.stopEvent(e);
app.navigate(_74.getUserSearchUrl(_75.value));
};
lconn.share0.scenes.onSelectUser=function(_76,_77){
if(_76){
this.navigate(this.routes.getUserChannelUrl(_76));
}else{
if(_77){
this.navigate(this.routes.getUserSearchUrl(userSearch));
}
}
};
lconn.share0.scenes.onSelectTypeAheadUser=function(_78){
if(_78&&_78.id){
this.navigate(this.routes.getUserChannelUrl(_78.id));
}
};
lconn.share0.scenes.generateUserImage=function(app,_79,el,_7a){
return lconn.share0.scenes.createUserImage(_79,-1,true);
};
lconn.share0.scenes.getUserImage=function(app,_7b,_7c,_7d,_7e){
return lconn.share0.scenes.createUserImage(_7c,-1,false);
};
lconn.share0.scenes.createUserImage=function(_7f,_80,_81){
if(!_7f.state){
_7f.state=_7f.userState;
}
return com.ibm.lconn.layout.people.createImage(_7f,_80,_81);
};
lconn.share0.scenes.createCloudModeUserImage=function(app,_82,_83){
var img;
if(app.isCloudMode){
if(!_83.state){
_83.state=_83.userState;
}
var _84=dojo.hitch(_82,_82.getUserPhotoUrl);
var src=_84(_83);
if(src){
img=dojo.doc.createElement("img");
img.className="lotusPostAvatar";
img.src=src;
img.style.width=img.style.height="35px";
img.setAttribute("alt",_83.name);
dijit.setWaiRole(img,"presentation");
}
}
return img;
};
lconn.share0.scenes.applyApplicationError=function(app){
this.applyGenericError(app);
};
lconn.share0.scenes.applyGenericError=function(app,_85,_86,_87){
lconn.share0.scenes.applyMessageBox(app,"error",_85,_86,_87);
};
lconn.share0.scenes.applyGenericWarning=function(app,_88,_89,_8a){
lconn.share0.scenes.applyMessageBox(app,"warning",_88,_89,_8a);
};
lconn.share0.scenes.applyMessageBox=function(app,_8b,_8c,_8d,_8e){
var d=app.document;
var _8f=app.authenticatedUser;
var _90=app.routes;
var _8c=_8c||app.nls.ERROR_IN_APP_TITLE;
if(!_8d){
_8d=[app.nls.ERROR_IN_APP_MESSAGE];
}else{
if(!dojo.isArray(_8d)){
_8d=[_8d];
}
}
var _8e=_8e||[];
_8e.push([app.nls.BACK_TO_APP,_90.getWelcomeUrl()]);
var old=lconn.share0.scenes.hideLotusFrame(d,app);
var el=old.frame;
var div=d.createElement("div");
div.className="lotusErrorBox lotusError";
var _91=d.createElement("div");
_91.className="lotusErrorContent";
dijit.setWaiRole(_91,"main");
var img=d.createElement("img");
if(_8b==="warning"){
img.className="iconsMessages48 iconsMessages48-msgWarning48";
}else{
img.className="iconsMessages48 iconsMessages48-msgError48";
}
img.src=dijit._Widget.prototype._blankGif;
img.setAttribute("alt",_8c);
_91.appendChild(img);
var _92=d.createElement("div");
_92.className="lotusErrorForm";
dijit.setWaiState(_92,"label",_8c);
var h1=d.createElement("h1");
h1.className="lotusHeading";
h1.appendChild(d.createTextNode(_8c));
_92.appendChild(h1);
for(var i=0;i<_8d.length;i++){
var p=d.createElement("p");
p.appendChild(d.createTextNode(_8d[i]));
_92.appendChild(p);
}
if(_8e&&_8e.length>0){
var _93=d.createElement("div");
_93.className="lotusBtnContainer";
dijit.setWaiRole(_93,"presentation");
for(var i=0;i<_8e.length;i++){
var _94=d.createElement("span");
_94.className="lotusBtn lotusBtnAction";
if(i==0){
dojo.addClass(_94,"lotusFirst");
}
var a=d.createElement("a");
a.appendChild(d.createTextNode(_8e[i][0]));
dijit.setWaiState(a,"label",_8e[i][0]);
dijit.setWaiRole(a,"button");
lconn.share0.scenes.setOnClick(a,app,_8e[i][1],_8e[i][2]);
_94.appendChild(a);
_93.appendChild(_94);
}
_92.appendChild(_93);
}
_91.appendChild(_92);
div.appendChild(_91);
el.appendChild(div);
dijit.setWaiRole(_92,"alert");
if(app._waitingForLoginConfirm){
div.style.display="none";
}
};
lconn.share0.scenes.applyUserHomeError=function(d,_95,app,_96,_97){
var c=d.getElementById("lotusMain");
if(c.activeTemplate!="userhome-error"){
lconn.share0.util.html.removeChildren(c);
var el=d.createElement("div");
el.id="lotusColLeft";
el.className="lotusColLeft";
el.innerHTML="<!-- IE -->";
c.appendChild(el);
var el=d.createElement("div");
el.id="lotusContent";
el.className="lotusContent";
dijit.setWaiRole(el,"main");
var div=d.createElement("div");
div.appendChild(d.createTextNode(_97));
el.appendChild(div);
c.appendChild(el);
c.activeTemplate="userhome-error";
}
};
lconn.share0.scenes.generateFileLink=function(app,_98,_99,a,opt){
var _9a=_99.getAuthor().id;
var _9b=_99.getId();
lconn.share0.scenes.setOnClick(a,app,_98.getFileSummaryUrl(_9a,_9b,{section:(opt)?opt.section:null}));
};
lconn.share0.scenes.generateFileCommentLink=function(app,_9c,doc,_9d,a){
var _9e=doc.getAuthor().id;
var _9f=doc.getId();
var _a0=_9d.getId();
lconn.share0.scenes.setOnClick(a,app,_9c.getFileSummaryUrl(_9e,_9f,{comment:_a0}));
};
lconn.share0.scenes.generatePageCommentLink=function(app,_a1,doc,_a2,a){
var _a3=doc.getAuthor().id;
var _a4=doc.getId();
var _a5=_a2.getId();
lconn.share0.scenes.setOnClick(a,app,_a1.getPageSummaryUrl(_a3,_a4,null,{comment:_a5}));
};
lconn.share0.scenes.generateSharedFileLink=function(app,_a6,_a7,a){
var _a8=_a7.getSharedResourceOwner().id;
var _a9=_a7.getSharedResourceId();
lconn.share0.scenes.setOnClick(a,app,_a6.getFileSummaryUrl(_a8,_a9));
};
lconn.share0.scenes.generateSharedPageLink=function(app,_aa,_ab,a){
var _ac=_ab.getSharedResourceOwner().id;
var _ad=_ab.getSharedResourceId();
lconn.share0.scenes.setOnClick(a,app,_aa.getPageSummaryUrl(_ac,_ad));
};
lconn.share0.scenes.generatePageLink=function(app,_ae,_af,a,opt){
var _b0;
var _b1=_af.getAuthor().id;
var _b2=lconn.share0.util.dom.getChildElementAttribute(_af.getEntry(),"category","term");
if(_b2=="share"){
throw "generatePageLink called on a share, should be dereferenced first";
var url=lconn.share0.util.dom.getChildElementAttributeMatching(_af.getEntry(),"link","rel","enclosure","href"),_b0=/\/document\/(.+?)\/media$/.exec(url)[1];
}else{
_b0=_af.getId();
}
lconn.share0.scenes.setOnClick(a,app,_ae.getPageSummaryUrl(_b1,_b0,null,{section:(opt)?opt.section:null}));
};
lconn.share0.scenes.generateUploadUrl=function(_b3,_b4){
return _b3.getUploadServiceUrl(_b4);
};
lconn.share0.scenes.generateTagLink=function(app,_b5,_b6,_b7,tag,a){
a.href="javascript:;";
a.title=dojo.string.substitute(app.nls.CONTENT.TAG_TOOLTIP,[tag]),lconn.share0.scenes.setOnClick(a,app,_b5.getUserChannelTaggedMediaUrl(_b6,tag,{sort:(_b7?_b7.sortId:null)}));
};
lconn.share0.scenes.setOnClick=function(a,obj,_b8,_b9){
if(!(a.href==_b8&&dojo.isIE==8)){
a.href=_b8;
}
if(!a._registered){
var tgt=a.getAttribute("target");
if(_b9){
dojo.connect(a,"onclick",obj,_b9);
}else{
if(_b9==false||(tgt&&tgt.toUpperCase()!="_SELF")){
a.ignore=true;
}
}
a._registered=true;
}
};
lconn.share0.scenes.linkOnClick=function(){
var e=arguments[2];
var _ba=arguments[1];
if(typeof _ba=="string"){
_ba=this[_ba];
}
if(e.ctrlKey||e.altKey||e.shiftKey){
return;
}
if(e){
dojo.stopEvent(e);
}
_ba.apply(this,arguments);
};
lconn.share0.scenes.isSectionCollapsed=function(_bb,_bc,_bd){
var _be=(_bc===undefined||_bc===null||_bc===-1)?true:false;
var _bf=dojo.cookie("section.collapsed:"+_bb);
if(_bd){
return (_bf==="true")&&_be;
}else{
return (_bf!=="false")&&_be;
}
};
lconn.share0.scenes.addSectionCookie=function(_c0,_c1){
dojo.cookie("section.collapsed:"+_c0,_c1,{expires:365});
};
lconn.share0.scenes.toggleSection=function(_c2,_c3,_c4){
var _c5=this.nextSibling;
var _c6=this.firstChild;
var _c7=_c6.firstChild;
var _c8=_c7.nextSibling;
var div=this.parentNode;
var _c9=div.firstChild;
var _ca=dojo.hasClass(_c6,"lotusTwistyOpen");
var me=this;
if(_ca){
_c8.innerHTML=dojo._isBodyLtr()?"&#9654;":"&#9664;";
if(dojo.isIE==6){
if(this.beforeBegin){
var f=(typeof (this.beforeBegin)=="function")?this.beforeBegin:dojo.getObject(this.beforeBegin);
if(f){
f();
}
}
lconn.share0.scenes._toggleOpen(_c6,_c5,div,_c7,_c9,_c2,_c3,me);
}else{
this.anim=dojo.fx.wipeOut({node:_c5,duration:100});
dojo.connect(this.anim,"onEnd",dojo.hitch(null,lconn.share0.scenes._toggleOpen,_c6,_c5,div,_c7,_c9,_c2,_c3,me));
if(this.beforeBegin){
var f=(typeof (this.beforeBegin)=="function")?this.beforeBegin:dojo.getObject(this.beforeBegin);
if(f){
f();
}
}
this.anim.play();
}
}else{
if(_c4&&!_c5._decorated){
_c4(_c5);
_c5._decorated=true;
}
_c8.innerHTML="&#9660;";
if(dojo.isIE==6){
if(this.beforeBegin){
var f=(typeof (this.beforeBegin)=="function")?this.beforeBegin:dojo.getObject(this.beforeBegin);
if(f){
f();
}
}
lconn.share0.scenes._toggleClose(_c6,_c5,div,_c7,_c9,_c2,_c3,me);
}else{
this.anim=dojo.fx.wipeIn({node:_c5,duration:100});
dojo.connect(this.anim,"onEnd",dojo.hitch(null,lconn.share0.scenes._toggleClose,_c6,_c5,div,_c7,_c9,_c2,_c3,me));
if(this.beforeBegin){
var f=(typeof (this.beforeBegin)=="function")?this.beforeBegin:dojo.getObject(this.beforeBegin);
if(f){
f();
}
}
this.anim.play();
}
}
};
lconn.share0.scenes._toggleOpen=function(_cb,_cc,div,_cd,_ce,_cf,_d0,me){
dojo.removeClass(_cb,"lotusTwistyOpen");
dojo.addClass(_cb,"lotusTwistyClosed");
lconn.share0.scenes.addSectionCookie(_d0,true);
dijit.setWaiState(div,"expanded","false");
if(dojo.isIE==6){
while(_cc){
if(_cc.style){
_cc.style.display="none";
}
_cc=_cc.nextSibling;
}
}
if(_cd){
_cd.innerHTML=_cf.COLLAPSED;
}
if(_ce){
_ce.innerHTML=_cf.COLLAPSED;
}
if(me.onClose){
me.onClose();
}
if(me.onEnd){
var f=(typeof (me.onEnd)=="function")?me.onEnd:dojo.getObject(me.onEnd);
if(f){
f();
}
}
};
lconn.share0.scenes._toggleClose=function(_d1,_d2,div,_d3,_d4,_d5,_d6,me){
dojo.removeClass(_d1,"lotusTwistyClosed");
dojo.addClass(_d1,"lotusTwistyOpen");
lconn.share0.scenes.addSectionCookie(_d6,false);
dijit.setWaiState(div,"expanded","true");
if(dojo.isIE==6){
while(_d2){
if(_d2.style){
_d2.style.display="";
}
_d2=_d2.nextSibling;
}
}
if(_d3){
_d3.innerHTML=_d5.EXPANDED;
}
if(_d4){
_d4.innerHTML=_d5.EXPANDED;
}
if(me.onClose){
me.onClose();
}
if(me.onEnd){
var f=(typeof (me.onEnd)=="function")?me.onEnd:dojo.getObject(me.onEnd);
if(f){
f();
}
}
};
lconn.share0.scenes.applyPivotList=function(app,ul,_d7,_d8,f,_d9){
var d=app.d;
var li=d.createElement("li");
if(_d8){
dojo.addClass(li,"lotusSelected");
dijit.setWaiState(li,"selected","true");
}else{
dijit.setWaiState(li,"selected","false");
}
var e=d.createElement("a");
e.className=_d9||"";
e.appendChild(d.createTextNode(_d7.name));
e.title=_d7.tooltip;
f(e,_d7);
li.appendChild(e);
li.appendChild(d.createTextNode(" "));
ul.appendChild(li);
};
lconn.share0.scenes.applyCheckedFilterList=function(app,ul,_da,_db,_dc,_dd,_de){
var d=app.d;
var li=d.createElement("li");
var _df=d.createElement("input");
_df.id=dijit.getUniqueId("filter");
_df.type="checkbox";
_df.className="qkrCheckbox";
_df.defaultChecked=_df.checked=_db;
_df.value=_da.id;
dojo.connect(_df,"onchange",dojo.hitch(_dc,"onfilterchange",_dd));
li.appendChild(_df);
var _e0=d.createElement("label");
_e0.setAttribute("for",_df.id);
_e0.appendChild(d.createTextNode(_da.name));
li.appendChild(_e0);
ul.appendChild(li);
};
lconn.share0.fx={swipeIn:function(_e1){
_e1.node=dojo.byId(_e1.node);
var _e2=_e1.node,s=_e2.style;
var _e3=dojo.animateProperty(dojo.mixin({properties:{width:{start:function(){
s.overflow="hidden";
if(s.visibility=="hidden"||s.display=="none"){
s.width="1px";
s.display="";
s.visibility="";
return 1;
}else{
var _e4=dojo.style(_e2,"width");
return Math.max(_e4,1);
}
},end:function(){
return _e2.scrollWidth;
}}}},_e1));
dojo.connect(_e3,"onEnd",function(){
s.width="";
});
return _e3;
},swipeOut:function(_e5){
var _e6=_e5.node=dojo.byId(_e5.node);
var s=_e6.style;
var _e7=dojo.animateProperty(dojo.mixin({properties:{width:{end:1}}},_e5));
dojo.connect(_e7,"beforeBegin",function(){
s.overflow="hidden";
s.display="";
});
dojo.connect(_e7,"onEnd",function(){
s.width="";
s.display="none";
});
return _e7;
}};
lconn.share0.scenes.applyCommonUnauthenticatedSection=function(app,el){
var d=app.d;
var nls=app.nls.LOGINHELP;
var div=d.createElement("div");
div.className="lotusSection lotusFirst";
var h2=d.createElement("h2");
h2.appendChild(d.createTextNode(nls.TITLE));
div.appendChild(h2);
var p=d.createElement("p");
p.className="lotusSectionBody lotusChunk";
p.appendChild(d.createTextNode(nls.P1));
div.appendChild(p);
var p=d.createElement("p");
p.className="lotusSectionBody lotusChunk";
p.appendChild(d.createTextNode(nls.P2));
div.appendChild(p);
var ul=d.createElement("ul");
ul.className="lotusSectionBody lotusChunk";
var li=d.createElement("li");
li.appendChild(d.createTextNode(nls.ACT1));
ul.appendChild(li);
var li=d.createElement("li");
li.appendChild(d.createTextNode(nls.ACT2));
ul.appendChild(li);
var li=d.createElement("li");
li.appendChild(d.createTextNode(nls.ACT3));
ul.appendChild(li);
var li=d.createElement("li");
li.appendChild(d.createTextNode(nls.ACT4));
ul.appendChild(li);
var li=d.createElement("li");
li.appendChild(d.createTextNode(nls.ACT5));
ul.appendChild(li);
div.appendChild(ul);
var p=d.createElement("p");
p.className="lotusSectionBody lotusChunk";
p.style.marginTop="10px";
var a=d.createElement("a");
a.style.fontWeight="bold";
a.style.fontSize="1.1em";
lconn.share0.scenes.setOnClick(a,app,app.getUrl(),app.login);
a.appendChild(d.createTextNode(nls.NOW));
p.appendChild(a);
div.appendChild(p);
el.appendChild(div);
};
lconn.share0.scenes.applySidebar=function(d,c,_e8,app,_e9){
var _ea=_e8.sidebar={id:"lotusColRight","class":"lotusColRight","role":"complementary","label":app.nls.ACCESSIBILITY.LABELS.PUBLICWIKIS.COMPLEMENTARY_STATS,idBar:"lotusCollapseBar",idArrow:"lotusCollapseArrow",prefs:app.prefs,visible:_e9,msgAlert:app.nls.SIDEBAR.ALERT,toggle:lconn.share0.scenes.sidebarToggle,hover:lconn.share0.scenes.sidebarHover,unhover:lconn.share0.scenes.sidebarUnHover};
var _eb;
var el=d.getElementById(_ea.id);
if(el){
el.style.display=(_e9)?"":"none";
_eb=d.createElement("div");
while(el.firstChild){
var _ec=el.firstChild;
el.removeChild(_ec);
_eb.appendChild(_ec);
}
el.appendChild(_eb);
}else{
el=d.createElement("div");
el.style.display=(_e9)?"":"none";
el.id=_ea.id;
el.className=_ea["class"];
_eb=el;
c.appendChild(el);
}
dijit.setWaiRole(el,_ea.role);
dijit.setWaiState(el,"label",_ea.label);
return _eb;
};
lconn.share0.scenes.sidebarToggle=function(){
var el=dojo.byId(this.id);
var bar=dojo.byId(this.idBar);
dojo.byId(this.idArrow).off();
if(this.visible){
var _ed=this.prefs.get("sbc");
if(_ed!=0&&_ed!=1){
lconn.share0.util.html.alert(this.msgAlert);
}
el.style.display="none";
bar.style.display="";
this.prefs.put("sbc",1);
if(this.anim){
this.anim.stop();
}
this.anim=dojo.animateProperty({duration:900,node:this.idBar,properties:{backgroundColor:{start:"#ffff66",end:"white"}},onEnd:function(){
var s=dojo.byId(this.node).style;
s.backgroundColor="";
}}).play();
}else{
if(this.anim){
this.anim.stop();
delete this.anim;
}
el.style.display="";
bar.style.display="none";
this.prefs.put("sbc",0);
}
this.visible=!this.visible;
};
lconn.share0.scenes.sidebarHover=function(e){
this._overBar=true;
dojo.addClass(dojo.byId(this.idBar),"lotusCollapseHover");
dojo.byId(this.idArrow).on(!this.isVisible,e);
};
lconn.share0.scenes.sidebarUnHover=function(){
this._overBar=false;
dojo.removeClass(dojo.byId(this.idBar),"lotusCollapseHover");
dojo.byId(this.idArrow).off();
};
lconn.share0.scenes.sidebarArrowUpdate=function(e){
var x=e.pageX;
var y=e.pageY;
var lx=e.layerX;
var ly=e.layerY;
var s=this.style;
s.left=(x-lx)+"px";
s.top=(y)+"px";
};
lconn.share0.scenes.sidebarArrowOn=function(_ee,e){
this.className=(_ee)?"left":"right";
if(e){
this.update(e);
}
this.style.display="block";
};
lconn.share0.scenes.sidebarArrowOff=function(){
this.style.display="";
};
lconn.share0.scenes.applyTipPopup=function(app,el,a,_ef){
var d=app.d;
a.href="javascript:;";
return new lconn.wikis.widget.HelpLauncher({optMenu:{net:app.net,href:app.routes.getHelpTopicUrl(_ef),label:app.nls.LOADING,labelClose:app.nls.CLOSE,title:app.nls.FOOTER.HELP.HELP,msgError:app.nls.TIPS.ERROR,msgEmpty:app.nls.TIPS.ERROR}},a);
};
lconn.share0.scenes.applyGenericPopup=function(app,el,a,_f0){
var _f1={HELP:app.nls.HELP,CLOSE:app.nls.CLOSE};
return lconn.core.HelpLauncher.createHelpLink(a,null,_f0,_f1);
};
lconn.share0.scenes.createUser=function(app,_f2){
if(!_f2){
return null;
}
if(!_f2.photoURL){
_f2.photoURL=app.routes.getUserPhotoUrl(_f2);
}
return _f2;
};
lconn.share0.scenes.applyUnsavedChangesAlert=function(app,el,_f3){
if(!app.authenticatedUser){
return;
}
var _f4=app.routes;
var d=app.document;
var div=d.createElement("div");
div.className="lotusMessage lotusWarning";
dijit.setWaiRole(div,"alert");
div.style.display="none";
div.style.marginBottom="20px";
el.appendChild(div);
var _f5=app.getUnsavedChangesList();
if(_f5.length>0){
var d=app.document;
var opt={permissions:new lconn.share0.bean.StreamPermissions({authenticatedId:(app.authenticatedUser?app.authenticatedUser.id:null)})};
var img=d.createElement("img");
img.alt=app.nls.WARNING;
img.className="lconnSprite lconnSprite-iconWarning16";
img.src=dijit._Widget.prototype._blankGif;
div.appendChild(img);
div.appendChild(d.createTextNode(app.nls.UNSAVED_CHANGES.ALERT));
for(var j=0;j<_f5.length&&j<6;j++){
var _f6=_f5[j];
var _f7=d.createElement("div");
var _f8=d.createElement("span");
_f8.className="lotusLeft";
_f8.style.marginRight="10px";
_f8.style.marginLeft="20px";
var df=new lconn.share0.util.DateFormat(_f6.getUpdated());
var _f9=df.formatByAge(app.nls.UNSAVED_CHANGES.AUTOSAVED);
lconn.share0.util.html.substitute(d,_f8,_f9,{pagetitle:function(){
var _fa=d.createElement("span");
_fa.style.fontWeight="bold";
_fa.style.margin="0";
_fa.style.display="inline";
_fa.appendChild(d.createTextNode(_f6.getTitle()));
return _fa;
},wikititle:function(){
var _fb=d.createElement("span");
_fb.style.fontWeight="bold";
_fb.style.margin="0";
_fb.style.display="inline";
var _fc=_f6.getLibrary();
_fb.appendChild(d.createTextNode(_fc.libraryTitle));
return _fb;
},expires:function(){
var dfe=new lconn.share0.util.DateFormat(_f6.getExpiration());
var _fd=dfe.formatByAge(app.nls.UNSAVED_CHANGES.EXPIRES);
var _fe=d.createElement("span");
_fe.style.color="red";
_fe.style.margin="0";
_fe.style.display="inline";
_fe.appendChild(d.createTextNode(_fd));
return _fe;
}});
_f7.appendChild(_f8);
var ul=d.createElement("ul");
ul.className="lotusActions lotusInlinelist";
dijit.setWaiRole(ul,"presentation");
for(var i=0;i<_f3.length;i++){
var _ff=_f3[i];
if(_ff.isValid(_f6,opt)){
var li=d.createElement("li");
if(!ul.firstChild){
li.className="lotusFirst";
}
var a=d.createElement("a");
var url=_ff.getUrlResource(_f6,opt);
a.href=url||"javascript:;";
dojo.connect(a,"onclick",dojo.hitch(_ff,_ff.execute,_f6,opt));
a.appendChild(d.createTextNode(_ff.getName(_f6,opt)));
a.title=_ff.getTooltip(_f6,opt);
li.appendChild(a);
ul.appendChild(li);
}
}
if(ul.firstChild){
_f7.appendChild(ul);
}
div.appendChild(_f7);
}
div.style.display="";
}
};
lconn.share0.scenes.applyDivider=function(d,el){
var _100=d.createElement("span");
_100.className="lotusDivider";
dijit.setWaiRole(_100,"img");
dijit.setWaiState(_100,"hidden","true");
_100.appendChild(d.createTextNode("|"));
el.appendChild(_100);
return _100;
};
}


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










dojo.declare("lconn.share0.Network",null,{csrf:{cookie:"X-Update-Nonce",header:"X-Update-Nonce",param:"nonce"},_handleAsMap:{"text":"Text","html":"Text","xml":"Xml","json":"Json","json-embedded":"Json","json-comment-optional":"Json","json-comment-filtered":"Json"},constructor:function(_1){
if(_1){
dojo.mixin(this,_1);
}
},_validate:function(_2){
if(!_2){
throw "opts is a required argument";
}
if(!_2.url){
throw "url is a required argument";
}
},_getNonce:function(_3){
var _4=null;
if(_3&&_3.nonce){
_4=_3.nonce;
}
var _5=this.getAuthenticatedUser();
if(!_4&&_5&&_5.nonce){
_4=_5.nonce;
}
var _6=dojo.cookie(this.csrf.cookie);
if(!_4&&_6){
_4=_6;
}
return _4||"true";
},_setDefaults:function(_7,_8){
var _9=this.getAuthenticatedUser();
_8.verb=_7=_7.toLowerCase();
switch(_7){
case "put":
case "post":
case "delete":
_8.auth=_8.auth||{};
if(typeof _8.auth.preventReload=="undefined"){
_8.auth.preventReload=true;
}
if(typeof _8.timeout=="undefined"){
_8.timeout=(dojo.getObject("lconn.share0.config.services.timeout.update")||10)*1000;
}
break;
default:
if(typeof _8.timeout=="undefined"){
_8.timeout=(dojo.getObject("lconn.share0.config.services.timeout.request")||10)*1000;
}
}
_8.nonce=this._getNonce(_8);
_8.failOk=true;
if(_7=="get"&&_8.requireData!==false){
_8.requireData=true;
}
var _a=_8.ifMatch;
_8.headers=_8.headers||{};
if(!_a&&_8.headers["If-Match"]){
_a=_8.headers["If-Match"];
}
delete _8.headers["If-Match"];
_a=dojo.trim(_a||"");
var _b=(_8.auth?_8.auth.secured:undefined);
if(_9&&_b!=false&&(_b==true||this.isSecuredUrl(_8.url))){
if(_a.length>0){
_a+=":";
}
_a+="uid="+_9.id;
}
if(_a.length>0){
_8.ifMatch=_a;
}else{
delete _8.ifMatch;
}
if(_8.handleAs=="xml"&&dojo.isIE){
var _c=lconn.share0.util.uri.parseUri(_8.url);
if(!_c.queryParameters.format){
_c.queryParameters.format="xml";
_8.url=lconn.share0.util.uri.writeUri(_c);
}
}
},_setXmlDefaults:function(_d,_e){
this._validate(_e);
_e.handleAs="xml";
this._setDefaults(_d,_e);
},_setJsonDefaults:function(_f,_10){
this._validate(_10);
_10.handleAs=_10.handleAs||"json";
this._setDefaults(_f,_10);
},_setTextDefaults:function(_11,_12){
this._validate(_12);
_12.handleAs=_12.handleAs||"text";
this._setDefaults(_11,_12);
},_setMultipartDefaults:function(_13,_14){
this._validate(_14);
if(typeof _14.timeout=="undefined"){
_14.timeout=(dojo.getObject("lconn.share0.config.services.timeout.upload")*1000);
}
_14.handleAs=_14.handleAs||"json-embedded";
this._setDefaults(_13,_14);
},_addDirectives:function(_15,_16,_17,_18,_19){
if(_17){
_15.headers=_15.headers||{};
_15.headers[this.csrf.header]=_15.nonce;
}
if(_18){
var uri=lconn.share0.util.uri.parseUri(_15.url);
uri.queryParameters[this.csrf.param]=_15.nonce;
}
if(_19){
_15.content=_15.content||{};
_15.content[this.csrf.param]=_15.nonce;
}
for(var key in _16){
var _1a=_16[key];
if(typeof (_1a)!="undefined"&&_16.hasOwnProperty(key)){
if(_17){
_15.headers[key]=_1a;
}
if(_18){
uri.queryParameters[key]=_1a;
}
if(_19){
_15.content[key]=_1a;
}
}
}
if(_18){
_15.url=lconn.share0.util.uri.writeUri(uri);
}
},_decorateHandler:function(_1b){
var _1c={};
_1c.handle=_1b.handle;
_1c.handleAs=_1b.handleAs;
_1c.requireData=_1b.requireData;
if(_1b.handleAs=="json-embedded"){
_1b.handleAs="html";
}
_1b.handle=dojo.hitch(this,"_handle",_1c);
},get:function(_1d){
return this._delegate("get",_1d);
},head:function(_1e){
return this._delegate("head",_1e);
},put:function(_1f){
return this._delegate("put",_1f);
},post:function(_20){
return this._delegate("post",_20);
},_delegate:function(_21,_22){
this._validate(_22);
var _23=this._handleAsMap[_22.handleAs];
if(!_23){
throw ("Unsupported handleAs type "+_22.handleAs);
}
var op=this[_21.toLowerCase()+_23];
if(typeof (op)!="function"){
throw ("Unsupported operation "+_21+" for handleAs type "+_22.handleAs);
}
return op.apply(this,[_22]);
},getXml:function(_24){
this._setXmlDefaults("get",_24);
this._addDirectives(_24,{"If-Match":_24.ifMatch},true,false,false);
this._decorateHandler(_24);
this.onNetwork(_24);
try{
return dojo.xhrGet(_24);
}
catch(e){
this._openFailure(e,_24);
}
},headXml:function(_25){
this._setXmlDefaults("head",_25);
this._addDirectives(_25,{"If-Match":_25.ifMatch},true,false,false);
this._decorateHandler(_25);
this.onNetwork(_25);
try{
return dojo.xhr("HEAD",_25);
}
catch(e){
this._openFailure(e,_25);
}
},postXml:function(_26){
this._setXmlDefaults("post",_26);
this._addDirectives(_26,{"If-Match":_26.ifMatch,"X-Update-Nonce":_26.nonce},true,false,false);
this._decorateHandler(_26);
this.onNetwork(_26);
try{
return dojo.rawXhrPost(_26);
}
catch(e){
this._openFailure(e,_26);
}
},putXml:function(_27){
this._setXmlDefaults("put",_27);
this._addDirectives(_27,{"X-Method-Override":"PUT","If-Match":_27.ifMatch,"X-Update-Nonce":_27.nonce},true,false,false);
this._decorateHandler(_27);
this.onNetwork(_27);
try{
return dojo.rawXhrPost(_27);
}
catch(e){
this._openFailure(e,_27);
}
},deleteXml:function(_28){
this._setXmlDefaults("delete",_28);
this._addDirectives(_28,{"X-Method-Override":"DELETE","If-Match":_28.ifMatch,"X-Update-Nonce":_28.nonce},true,false,false);
this._decorateHandler(_28);
this.onNetwork(_28);
try{
return dojo.rawXhrPost(_28);
}
catch(e){
this._openFailure(e,_28);
}
},getJson:function(_29){
this._setJsonDefaults("get",_29);
this._addDirectives(_29,{"If-Match":_29.ifMatch},true,false,false);
this._decorateHandler(_29);
this.onNetwork(_29);
try{
return dojo.xhrGet(_29);
}
catch(e){
this._openFailure(e,_29);
}
},getText:function(_2a){
this._setTextDefaults("get",_2a);
this._addDirectives(_2a,{"If-Match":_2a.ifMatch},true,false,false);
this._decorateHandler(_2a);
this.onNetwork(_2a);
try{
return dojo.xhrGet(_2a);
}
catch(e){
this._openFailure(e,_2a);
}
},putMultipart:function(_2b){
this._setMultipartDefaults("put",_2b);
this._addDirectives(_2b,{"X-Method-Override":"PUT","If-Match":_2b.ifMatch,"X-Update-Nonce":_2b.nonce},false,true,true);
this._decorateHandler(_2b);
this.onNetwork(_2b);
try{
return dojo.io.iframe.send(_2b);
}
catch(e){
this._openFailure(e,_2b);
}
},postMultipart:function(_2c){
this._setMultipartDefaults("post",_2c);
this._addDirectives(_2c,{"If-Match":_2c.ifMatch,"X-Update-Nonce":_2c.nonce},false,true,true);
this._decorateHandler(_2c);
this.onNetwork(_2c);
try{
return dojo.io.iframe.send(_2c);
}
catch(e){
this._openFailure(e,_2c);
}
},onNetwork:function(_2d){
},onNetworkEnd:function(_2e){
},_handle:function(_2f,_30,_31){
try{
this.onNetworkEnd(_2f);
var _32=lconn.share0.util.atom.getError(_30,_31,_2f);
if(_32){
return _2f.handle(_32,_31);
}
if(_2f.handleAs=="json-embedded"){
var _33=lconn.share0.util.atom.getJsonResponseFromHtml(_30);
var _32=lconn.share0.util.atom.getJsonError(_33);
if(_32){
return _2f.handle(_32,_31);
}
return _2f.handle(_33,_31);
}
return _2f.handle(_30,_31);
}
catch(e){
console.error(e);
throw e;
}
},_openFailure:function(e,_34){
console.error(e);
this.onNetworkEnd(_34);
e=new Error(e);
e.dojoType="init";
var f=_34.error||_34.handle;
if(f){
f.apply(_34,[e,{args:_34}]);
}else{
throw e;
}
},getAuthenticatedUser:function(){
return null;
},isSecuredUrl:function(url){
return false;
},onError:function(_35,_36){
return _35;
}});
}


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


dojo.declare("lconn.share0.AbstractRoutes",null,{getQueryString:function(_1){
var _2=lconn.share0.util.uri;
var _3=this.globalParameters;
if(_1){
if(_3){
var p=dojo.clone(_3);
for(var _4 in _1){
p[_4]=_1[_4];
}
return _2.writeParameters(p);
}
return _2.writeParameters(_1);
}else{
if(_3){
return _2.writeParameters(_3);
}
}
return "";
},getAuthenticatedUser:function(){
return null;
},isAuthenticatedUser:function(_5){
var u=this.getAuthenticatedUser();
if(!_5){
return typeof u=="object"&&u!=null;
}
return u&&u.id==_5;
},_getSB:function(_6,_7,_8){
var _9=_7&&_7.anonymous;
var _a=_7&&_7.basicAuth;
var _b=_7&&_7.nonPersonal;
if(_b){
_8=null;
}
if(_a){
if(!_9&&this.isAuthenticatedUser()){
return this._basic+(_8||_6);
}
return this._basicAnon+_6;
}
if(!_9&&this.isAuthenticatedUser()){
return this._form+(_8||_6);
}
return this._formAnon+_6;
},_getUSB:function(_c,_d,_e,_f){
var _10=_f&&_f.anonymous;
var _11=_f&&_f.basicAuth;
var _12=_f&&_f.nonPersonal;
if(_12){
_e=null;
}
var s;
if(_11){
if(!_10&&this.isAuthenticatedUser()){
if(_e&&this.getAuthenticatedUser().id==_c){
s=this._basic+_e;
}else{
s=this._basic+_d.replace("{userId}",encodeURIComponent(_c));
}
}else{
s=this._basicAnon+_d.replace("{userId}",encodeURIComponent(_c));
}
}else{
if(!_10&&this.isAuthenticatedUser()){
if(_e&&this.getAuthenticatedUser().id==_c){
s=this._form+_e;
}else{
s=this._form+_d.replace("{userId}",encodeURIComponent(_c));
}
}else{
s=this._formAnon+_d.replace("{userId}",encodeURIComponent(_c));
}
}
return s;
},getProxiedUrl:function(url){
var uri=lconn.share0.util.uri.parseUri(url);
var _13=lconn.share0.util.uri.parseUri(dojo.getObject("lconn.share0.config.applicationUri")||"/");
if((uri.scheme==null||uri.scheme==_13.scheme)&&(uri.authority==null||uri.authority==_13.authority)){
return url;
}else{
return dojo.getObject("ibmConfig.proxyURL")+url.replace("://","/");
}
}});
}


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






dojo.declare("lconn.wikis.WikisServicesRoutes",lconn.share0.AbstractRoutes,{constructor:function(_1,_2){
this.lsu=lconn.share0.util.uri;
this._base=(dojo.getObject("lconn.share0.config.baseUri")||"/");
this._basic=dojo.getObject("lconn.share0.config.services.basic.auth");
this._basicAnon=dojo.getObject("lconn.share0.config.services.basic.anon");
this._form=dojo.getObject("lconn.share0.config.services.form.auth");
this._formAnon=dojo.getObject("lconn.share0.config.services.form.anon");
this._maxTagFilters=dojo.getObject("lconn.share0.config.services.maxTagFilters")||3;
this.lang=_1;
this.globalParameters=_2;
},_getSB:function(_3,_4,_5){
var _6=_4&&_4.anonymous;
var _7=_4&&_4.basicAuth;
var _8=_4&&_4.nonPersonal;
if(_8){
_5=null;
}
if(_7){
if(!_6&&this.isAuthenticatedUser()){
return this._basic+(_5||_3);
}
return this._basicAnon+_3;
}
if(!_6&&this.isAuthenticatedUser()){
return this._form+(_5||_3);
}
return this._formAnon+_3;
},_getUSB:function(_9,_a,_b,_c){
var _d=_c&&_c.anonymous;
var _e=_c&&_c.basicAuth;
var _f=_c&&_c.nonPersonal;
if(_f){
_b=null;
}
var s;
if(_e){
if(!_d&&this.isAuthenticatedUser()){
if(_b&&this.getAuthenticatedUser().id==_9){
s=this._basic+_b;
}else{
s=this._basic+_a.replace("{userId}",this.lsu.encodeUriComponent(_9));
}
}else{
s=this._basicAnon+_a.replace("{userId}",this.lsu.encodeUriComponent(_9));
}
}else{
if(!_d&&this.isAuthenticatedUser()){
if(_b&&this.getAuthenticatedUser().id==_9){
s=this._form+_b;
}else{
s=this._form+_a.replace("{userId}",this.lsu.encodeUriComponent(_9));
}
}else{
s=this._formAnon+_a.replace("{userId}",this.lsu.encodeUriComponent(_9));
}
}
return s;
},getOperationMonitorUrl:function(){
return dojo.getObject("lconn.share0.config.services.uploadMonitor.url")||(this._form+"myop/feed?format=json");
},getUserPhotoUrl:function(_10){
var url;
if(_10.isGroup){
url=dojo.getObject("lconn.share0.config.services.groupPhotoUri");
}else{
url=dojo.getObject("lconn.share0.config.services.userPhotoUri");
}
if(!url){
return null;
}
if(url.indexOf("{email}")!=-1&&lconn.share0.util.text.trim(_10.email).length==0){
return null;
}
return url.replace("{userId}",this.lsu.encodeUriComponent(_10.id)).replace("{uid}",this.lsu.encodeUriComponent(_10.id)).replace("{email}",this.lsu.encodeUriComponent(_10.email));
},generateFileTypeImage:function(img,_11,_12){
_12=_12||16;
_11=_11.toLowerCase().replace(/[^a-z0-9]/g,"-");
var _13;
if(_12==16){
_13=this._fileTypeClassName16;
}else{
if(_12==32){
_13=this._fileTypeClassName32;
}
}
_13=_13||"lconn-ftype{size} lconn-ftype{size}-{ext}";
var _14=_13.replace(/\{size\}/g,_12).replace(/\{ext\}/g,_11);
img.src=dijit._Widget.prototype._blankGif;
img.className=_14;
img.width=img.height=_12;
},getUserInfoServiceUrl:function(_15,opt){
if(_15){
var url=this._getSB("people/feed",opt);
var p={userid:_15,format:"json"};
return url+this.getQueryString(p);
}
var url=this._form+"people/feed";
var p={self:true,format:"json",sortBy:"relevanceByName"};
return url+this.getQueryString(p);
},getTypeAheadUserServiceUrl:function(_16){
return this.getUserSearchServiceUrl(_16,{useAnon:true});
},getUserSearchServiceUrl:function(_17,opt){
var url=this._getSB("people/feed",opt);
var p={searchString:_17,format:"json",sortBy:"relevanceByName"};
if(opt){
if(opt.directory){
p.searchType="directory";
}
if(opt.pageSize){
p.ps=opt.pageSize;
}
if(opt.page){
p.page=opt.page;
}else{
if(opt.start){
p.sI=opt.start;
}
}
if(opt.includeExtendedAttributes){
p.includeExtendedAttributes=true;
}
}
return url+this.getQueryString(p);
},getRecommendServiceUrl:function(_18,_19,opt){
var _1a=this.getAuthenticatedUser();
if(!_1a){
return null;
}
var s=_1a.id==_18?this._getSB("library/document/{fileId}/recommendation/{userId}/entry",opt):this._getSB("wiki/{libraryId}/page/{fileId}/recommendation/{userId}/entry",opt);
s=s.replace("{libraryId}",this.lsu.encodeUriComponent(_18));
s=s.replace("{fileId}",this.lsu.encodeUriComponent(_19));
s=s.replace("{userId}",this.lsu.encodeUriComponent(_1a.id));
return s;
},getTagServiceUrl:function(opt){
var p={format:"json",sK:"cloud",sO:"dsc",locale:pe.language};
if(opt&&opt.wikiLabel){
var url=this._getSB("wiki/{wikiLabel}/tags",opt);
url=url.replace("{wikiLabel}",this.lsu.encodeUriComponent(opt.wikiLabel));
}else{
if(opt&&opt.isMine){
var url=this._getSB("mytags/feed",opt);
}else{
var url=this._getSB("tags/feed",opt);
}
p.scope="library";
}
if(opt){
if(opt.page){
p.page=opt.page;
}else{
if(opt.start){
p.sI=opt.start;
}
}
if(opt.pageSize){
p.ps=opt.pageSize;
}
if(opt.userLibrary){
p.userLibrary=opt.userLibrary;
}
if(opt.libraryId){
p.libraryId=opt.libraryId;
}
if(opt.filter){
p.filter=opt.filter;
}
}
return url+this.lsu.writeParameters(p);
},getRecommendByFeedServiceUrl:function(_1b,_1c,opt){
var url=this._getSB("wiki/{libraryId}/page/{fileId}/recommendedby/feed",opt);
url=url.replace("{libraryId}",this.lsu.encodeUriComponent(_1b)).replace("{fileId}",this.lsu.encodeUriComponent(_1c));
var p={};
if(opt){
if(opt.pageSize){
p.ps=opt.pageSize;
}
if(opt.includeRecommendation){
p.includeRecommendation=true;
}
if(opt.format){
p.format=opt.format;
}
if(opt.sortKey){
p.sK=opt.sortKey;
}
}
return url+this.lsu.writeParameters(p);
},getMyDraftsFeedServiceUrl:function(opt){
var url=this._getSB("mydrafts/feed",opt);
var p={};
if(opt){
if(opt.page){
p.page=opt.page;
}else{
if(opt.start){
p.sI=opt.start;
}
}
if(opt.pageSize){
p.ps=opt.pageSize;
}else{
p.ps=dojo.getObject("lconn.share0.config.autosave.numRetrievedUnsavedChanges");
}
if(opt.sortKey){
p.sK=opt.sortKey;
p.sO=opt.sortDescending?"dsc":"asc";
}
if(opt.includeDocumentAuthorInfo){
p.includeDocumentAuthorInfo=true;
}
if(typeof opt.format!="undefined"){
p.format=opt.format;
}
}
if(dojo.isIE){
p.format=p.format||"xml";
}
return url+this.getQueryString(p);
},getWikiConversionServiceUrl:function(opt){
var url=this._getSB("wikiconvert",opt);
var p={};
if(dojo.isIE){
p.format="xml";
}
return url+this.getQueryString(p);
},getDraftEntryServiceUrl:function(_1d,_1e,opt){
var url=this._getSB("wiki/{wikiLabel}/draft/{draftId}/entry",opt);
url=url.replace("{wikiLabel}",this.lsu.encodeUriComponent(_1d)).replace("{draftId}",this.lsu.encodeUriComponent(_1e));
var p={};
if(opt){
if(opt.fetchAcl){
p.acls=true;
}
if(opt.includeNotification){
p.includeNotification=true;
}
if(typeof opt.format!="undefined"){
p.format=opt.format;
}
if(opt.includeRecommendation){
p.includeRecommendation=true;
}
if(opt.includeTags){
p.includeTags=true;
}
if(opt.submit){
p.submit=true;
}
if(opt.inline){
p.inline=true;
}
if(opt.shares){
p.metadata="full";
}
if(opt.includeDocumentModifiedInfo){
p.includeDocumentModifiedInfo=true;
}
if(opt.includeDocumentAuthorInfo){
p.includeDocumentAuthorInfo=true;
}
if(opt.source){
p.source=opt.source;
}
if(opt.ignoreExpired){
p.ignoreExpired=opt.ignoreExpired;
}
}
if(dojo.isIE){
p.format=p.format||"xml";
}
return url+this.lsu.writeParameters(p);
},getWikiPageCreateDraftInfoServiceUrl:function(_1f,opt){
dojo.deprecated("WikisServicesRoutes.getWikiPageCreateDraftInfoServiceUrl(draftId, opt)","Will be removed","3.5");
var url=this._getSB("wiki/{wikiLabel}/draft/entry",opt);
url=url.replace("{wikiLabel}",this.lsu.encodeUriComponent(_1f));
return url+this.getQueryString(opt);
},getWikiEntryServiceUrl:function(_20,opt){
var url=this._getSB("wiki/{wikiLabel}/entry",opt);
url=url.replace("{wikiLabel}",this.lsu.encodeUriComponent(_20));
var p={};
if(opt){
if(opt.fetchAcl){
p.acls=true;
}
if(opt.includeTags){
p.includeTags=true;
}
if(opt.includeFollowing){
p.includeFollowing=true;
}
}
if(dojo.isIE){
p.format=p.format||"xml";
}
if(dojo.isIE==6){
p.ts=new Date().getTime();
}
return url+this.getQueryString(p);
},getWikisFeedServiceUrl:function(opt){
var url=this._getSB("wikis/feed",opt);
var p={};
if(opt){
if(opt.format&&(dojo.indexOf(["xml","json"],opt.format)!=-1)){
p.format=opt.format;
}
if(opt.sortKey){
p.sK=opt.sortKey;
p.sO=opt.sortDescending?"dsc":"asc";
}
}
if(dojo.isIE){
p.format=p.format||"xml";
}
return url+this.lsu.writeParameters(p);
},getCommentListServiceUrl:function(_21,_22,opt){
var url=this._getFileFeedServiceUrl(_21,_22,opt);
var p={};
if(opt){
if(opt.fetchAcl){
p.acls=true;
}
if(opt.pageSize){
p.ps=opt.pageSize;
}
if(opt.page){
p.page=opt.page;
}else{
if(opt.start){
p.sI=opt.start;
}
}
if(opt.sortKey){
p.sK=opt.sortKey;
}
if(opt.sortOrder){
p.sO=opt.sortOrder;
}
if(opt.category){
p.category=opt.category;
}
if(opt.fileType){
p.fileType=opt.fileType;
}
if(typeof opt.format!="undefined"){
p.format=opt.format;
}
if(opt.contentFormat){
p.contentFormat=opt.contentFormat;
}
}
if(dojo.isIE){
p.format=p.format||"xml";
}
return url+this.getQueryString(p);
},getWikiPageInfoServiceUrl:function(_23,_24,opt){
dojo.deprecated("WikisServicesRoutes.getWikiPageInfoServiceUrl(wikiLabel, pageLabel, opt)","Use WikisServicesRoutes.getPageEntryServiceUrl(wikiLabel, pageLabel, opt)","3.5");
return this.getPageEntryServiceUrl(_23,_24,opt);
},getPageEntryServiceUrl:function(_25,_26,opt){
var url=null;
if(_26){
url=this._getSB("wiki/{wikiLabel}/page/{pageLabel}/entry",opt);
url=url.replace("{pageLabel}",this.lsu.encodeUriComponent(_26));
}else{
url=this._getSB("wiki/{wikiLabel}/homepage/entry",opt);
}
url=url.replace("{wikiLabel}",this.lsu.encodeUriComponent(_25));
var p={};
if(opt){
if(opt.includeWorkingDraftInfo&&this.isAuthenticatedUser()){
p.includeWorkingDraftInfo=true;
}
if(opt.fetchAcl){
p.acls=true;
}
if(opt.includeNotification){
p.includeNotification=true;
}
if(typeof opt.format!="undefined"){
p.format=opt.format;
}
if(opt.includeRecommendation){
p.includeRecommendation=true;
}
if(opt.includeTags){
p.includeTags=true;
}
if(opt.submit){
p.submit=true;
}
if(opt.identifier&&(dojo.indexOf(["uuid","label"],opt.identifier)!=-1)){
p.identifier=opt.identifier;
}
if(opt.inline){
p.inline=true;
}
if(opt.shares){
p.metadata="full";
}
if(opt.createVersion){
p.createVersion=true;
}
if(opt.draft){
p.draft=opt.draft;
}
if(opt.sendNotification){
p.sendNotification=opt.sendNotification;
}
if(opt.source&&(dojo.indexOf(["external","internal"],opt.source)!=-1)){
p.source=opt.source;
}
if(opt.dontLogDownload){
p.dontLogDownload=true;
}
}
if(dojo.isIE){
p.format=p.format||"xml";
}
return url+this.lsu.writeParameters(p);
},getMyWikisFeedServiceUrl:function(opt){
var url=this._getSB("mywikis/feed",opt);
var p={};
if(opt){
if(opt.page&&opt.page>1){
p.page=opt.page;
}
if(opt.pageSize){
p.ps=opt.pageSize;
}
if(opt.sortKey){
p.sK=opt.sortKey;
p.sO=opt.sortDescending?"dsc":"asc";
}
if(opt.includeTags){
p.includeTags=true;
}
if(opt.role){
p.role=opt.role;
}
if(opt.creator){
p.owner=opt.creator;
}
}
if(dojo.isIE){
p.format=p.format||"xml";
}
return url+this.getQueryString(p);
},getFollowedWikisFeedServiceUrl:function(opt){
var url=this._base;
if(opt&&opt.basicAuth){
url+="follow/atom/resources";
}else{
url+="follow/atomfba/resources";
}
var p={source:"wikis",type:"wiki",ps:10};
if(opt){
if(opt.page&&opt.page>1){
p.page=opt.page;
}
if(opt.pageSize){
p.ps=opt.pageSize;
}
}
return url+this.getQueryString(p);
},getPublicWikisFeedServiceUrl:function(opt){
var opt=dojo.clone(opt)||{};
opt.anonymous=(typeof opt.anonymous!=="undefined")?opt.anonymous:true;
var url=this._getSB("wikis/public",opt);
var p={};
if(opt){
if(opt.page&&opt.page>1){
p.page=opt.page;
}
if(opt.pageSize){
p.ps=opt.pageSize;
}
if(opt.sortKey){
p.sK=opt.sortKey;
p.sO=opt.sortDescending?"dsc":"asc";
}
if(opt.includeTags){
p.includeTags=true;
}
}
if(dojo.isIE){
p.format=p.format||"xml";
}
return url+this.getQueryString(p);
},getTaggedWikisFeedServiceUrl:function(opt){
dojo.deprecated("WikisServicesRoutes.getTaggedWikisFeedServiceUrl()","Will be removed","3.5");
var url=this._getSB("wikis/tagged",opt);
var p={};
if(opt){
if(opt.includeTags){
p.includeTags=true;
}
if(opt.page&&opt.page>1){
p.page=opt.page;
}
if(opt.pageSize){
p.ps=opt.pageSize;
}
if(opt.tag){
if(typeof opt.tag=="string"){
p.tag=[opt.tag];
}else{
p.tag=opt.tag;
}
}
if(opt.sortKey){
p.sK=opt.sortKey;
p.sO=opt.sortDescending?"dsc":"asc";
}
if(dojo.indexOf(["public","private"],opt.visibility)!=-1){
p.visibility=opt.visibility;
}
}
if(dojo.isIE){
p.format=p.format||"xml";
}
return url+this.getQueryString(p);
},getMyTaggedWikisFeedServiceUrl:function(opt){
dojo.deprecated("WikisServicesRoutes.getMyTaggedWikisFeedServiceUrl()","Will be removed","3.5");
var url=this._getSB("mywikis/tagged",opt);
var p={};
if(opt){
if(opt.includeTags){
p.includeTags=true;
}
if(opt.page&&opt.page>1){
p.page=opt.page;
}
if(opt.pageSize){
p.ps=opt.pageSize;
}
if(opt.tag){
if(typeof opt.tag=="string"){
p.tag=[opt.tag];
}else{
p.tag=opt.tag;
}
}
if(opt.sortKey){
p.sK=opt.sortKey;
p.sO=opt.sortDescending?"dsc":"asc";
}
}
if(dojo.isIE){
p.format=p.format||"xml";
}
return url+this.getQueryString(p);
},getTaggedPagesTooltipServiceUrl:function(_27,tag){
dojo.deprecated("WikisServicesRoutes.getTaggedPagesTooltipServiceUrl()","Will be removed","3.5");
var p={};
p.wikiLabel=_27;
if(tag){
if(typeof tag=="string"){
p.tag=[tag];
}else{
p.tag=tag;
}
}
return this.getPageIndexUrl(_27,p);
},getMostVisitedWikisFeedServiceUrl:function(opt){
var url=this._getSB("wikis/mostvisited",opt);
var p={};
if(opt){
if(opt.page&&opt.page>1){
p.page=opt.page;
}
if(opt.pageSize){
p.ps=opt.pageSize;
}
if(opt.includeTags){
p.includeTags=true;
}
}
if(dojo.isIE){
p.format=p.format||"xml";
}
return url+this.getQueryString(p);
},getMostCommentedWikisFeedServiceUrl:function(opt){
var url=this._getSB("wikis/mostcommented",opt);
var p={};
if(opt){
if(opt.page&&opt.page>1){
p.page=opt.page;
}
if(opt.pageSize){
p.ps=opt.pageSize;
}
if(opt.includeTags){
p.includeTags=true;
}
}
if(dojo.isIE){
p.format=p.format||"xml";
}
return url+this.getQueryString(p);
},getMostRecommendedWikisFeedServiceUrl:function(opt){
var url=this._getSB("wikis/mostrecommended",opt);
var p={};
if(opt){
if(opt.page&&opt.page>1){
p.page=opt.page;
}
if(opt.pageSize){
p.ps=opt.pageSize;
}
if(opt.includeTags){
p.includeTags=true;
}
}
if(dojo.isIE){
p.format=p.format||"xml";
}
return url+this.getQueryString(p);
},getFileDownloadInfoServiceUrl:function(_28,_29,opt){
var url=this._getSB("wiki/{libraryId}/page/{fileId}/downloadedby/entry",opt);
url=url.replace("{libraryId}",this.lsu.encodeUriComponent(_28)).replace("{fileId}",this.lsu.encodeUriComponent(_29));
return url;
},getFileInfoServiceUrl:function(_2a,_2b,opt){
var url=this._getSB("wiki/{libraryId}/page/{fileId}/entry",opt);
url=url.replace("{libraryId}",this.lsu.encodeUriComponent(_2a)).replace("{fileId}",this.lsu.encodeUriComponent(_2b));
var p={};
if(opt){
if(opt.includeWorkingDraftInfo){
p.includeWorkingDraftInfo=true;
}
if(opt.fetchAcl){
p.acls=true;
}
if(opt.includeNotification){
p.includeNotification=true;
}
if(typeof opt.format!="undefined"){
p.format=opt.format;
}
if(opt.includeRecommendation){
p.includeRecommendation=true;
}
if(opt.includeTags){
p.includeTags=true;
}
if(opt.submit){
p.submit=true;
}
if(opt.inline){
p.inline=true;
}
if(opt.shares){
p.metadata="full";
}
if(opt.createVersion){
p.createVersion=true;
}
}
if(dojo.isIE){
p.format=p.format||"xml";
}
return url+this.lsu.writeParameters(p);
},getAttachmentListServiceUrl:function(_2c,_2d,opt){
var url=this._getFileFeedServiceUrl(_2c,_2d,opt);
var p={};
if(opt){
if(opt.page){
p.page=opt.page;
}else{
if(opt.start){
p.sI=opt.start;
}
}
if(opt.pageSize){
p.ps=opt.pageSize;
}
if(opt.category){
p.category=opt.category;
}
if(opt.fileType){
p.fileType=opt.fileType;
}
if(typeof opt.format!="undefined"){
p.format=opt.format;
}
if(opt.sortKey){
p.sK=opt.sortKey;
p.sO=opt.sortDescending?"dsc":"asc";
}
}
if(dojo.isIE){
p.format=p.format||"xml";
}
if(dojo.isIE==6){
p.ts=new Date().getTime();
}
return url+this.lsu.writeParameters(p);
},getDraftAttachmentListServiceUrl:function(_2e,_2f,opt,_30){
var url=this._getDraftFeedServiceUrl(_2e,_2f,_30);
var p={};
if(opt){
if(opt.page){
p.page=opt.page;
}else{
if(opt.start){
p.sI=opt.start;
}
}
if(opt.pageSize){
p.ps=opt.pageSize;
}
if(opt.category){
p.category=opt.category;
}
if(opt.fileType){
p.fileType=opt.fileType;
}
if(typeof opt.format!="undefined"){
p.format=opt.format;
}
if(opt.sortKey){
p.sK=opt.sortKey;
p.sO=opt.sortDescending?"dsc":"asc";
}
}
if(dojo.isIE){
p.format=p.format||"xml";
}
return url+this.lsu.writeParameters(p);
},_getDraftFeedServiceUrl:function(_31,_32,_33){
var s=this._getSB("wiki/{libraryId}/draft/{draftId}/feed");
s=s.replace("{libraryId}",this.lsu.encodeUriComponent(_31));
s=s.replace("{draftId}",this.lsu.encodeUriComponent(_32));
return s;
},getWikiPageVersionInfoServiceUrl:function(_34,_35,_36,opt){
var url=this._getSB("wiki/{wikiLabel}/page/{pageId}/entry",opt);
url=url.replace("{wikiLabel}",this.lsu.encodeUriComponent(_34));
if(_35){
url=url.replace("{pageId}",this.lsu.encodeUriComponent(_35));
}
var p={};
if(opt){
if(typeof opt.format!="undefined"){
p.format=opt.format;
}
if(opt.fetchAcl){
p.acls=true;
}
if(opt.inline){
p.inline=true;
}
}
p.versionUuid=this.lsu.encodeUriComponent(_36);
if(dojo.isIE){
p.format=p.format||"xml";
}
return url+this.lsu.writeParameters(p);
},getWikiPageVersionMediaServiceUrl:function(_37,_38,_39,opt){
var url=this._getSB("wiki/{wikiLabel}/page/{pageId}/version/{versionId}/media/{filename}",opt);
url=url.replace("{wikiLabel}",this.lsu.encodeUriComponent(_37));
url=url.replace("{pageId}",this.lsu.encodeUriComponent(_38));
url=url.replace("{versionId}",this.lsu.encodeUriComponent(_39));
if(opt&&opt.filename){
url=url.replace("{filename}",this.lsu.encodeUriComponent(opt.filename));
}
var p={};
if(opt){
if(typeof opt.format!="undefined"){
p.format=opt.format;
}
if(opt.convertTo){
p.convertTo=opt.convertTo;
}
}
if(dojo.isIE){
p.format=p.format||"xml";
}
return url+this.lsu.writeParameters(p);
},getWikiFileListServiceUrl:function(_3a,opt){
return this.getWikiDocumentsFeedServiceUrl(_3a,opt);
},getPersonalWikiDocumentsFeedServiceUrl:function(_3b,_3c,opt){
var url=this._getUSB(_3b,"wiki/{wikiLabel}/userpages/{userId}/feed","wiki/{wikiLabel}/mypages",opt);
url=url.replace("{wikiLabel}",this.lsu.encodeUriComponent(_3c));
var p={};
if(opt){
if(opt.fetchAcl){
p.acls=true;
}
if(opt.page){
p.page=opt.page;
}else{
if(opt.start){
p.sI=opt.start;
}
}
if(opt.tag){
if(typeof opt.tag=="string"){
p.tag=[opt.tag];
}else{
p.tag=opt.tag;
}
}
if(opt.sharing=="withme"){
p.direction="inbound";
}else{
if(opt.sharing=="byme"){
p.direction="outbound";
}
}
if(dojo.indexOf(["public","shared","private"],opt.visibility)!=-1){
p.visibility=opt.visibility;
}
if(opt.pageSize){
p.ps=opt.pageSize;
}
if(dojo.indexOf(["view","edit"],opt.sharePermission)!=-1){
p.sharePermission=opt.sharePermission;
}
if(opt.startDate){
p.dF=opt.startDate;
}
if(opt.includeTags){
p.includeTags=true;
}
if(opt.sortKey){
p.sK=opt.sortKey;
p.sO=opt.sortDescending?"dsc":"asc";
}
if(opt.notification===true||opt.notification=="on"){
p.notification="on";
}else{
if(opt.notification===false||opt.notification=="off"){
p.notification="off";
}
}
if(opt.defaultContents){
p.includeDefaultDocument=true;
}
if(opt.category){
p.category=opt.category;
}
if(opt.fileType){
p.fileType=opt.fileType;
}
if(typeof opt.format!="undefined"){
p.format=opt.format;
}
if(opt.createVersion){
p.createVersion=true;
}
if(opt.source){
p.source=opt.source;
}
if(opt.draft){
p.draft=opt.draft;
}
}
if(dojo.isIE){
p.format=p.format||"xml";
}
return url+this.lsu.writeParameters(p);
},getMyWikiDocumentsFeedServiceUrl:function(_3d,opt){
var url=this._getSB("wiki/{wikiLabel}/mypages",opt);
url=url.replace("{wikiLabel}",this.lsu.encodeUriComponent(_3d));
var p={};
if(opt){
if(opt.fetchAcl){
p.acls=true;
}
if(opt.page){
p.page=opt.page;
}else{
if(opt.start){
p.sI=opt.start;
}
}
if(opt.tag){
if(typeof opt.tag=="string"){
p.tag=[opt.tag];
}else{
p.tag=opt.tag;
}
}
if(opt.sharing=="withme"){
p.direction="inbound";
}else{
if(opt.sharing=="byme"){
p.direction="outbound";
}
}
if(dojo.indexOf(["public","shared","private"],opt.visibility)!=-1){
p.visibility=opt.visibility;
}
if(opt.pageSize){
p.ps=opt.pageSize;
}
if(dojo.indexOf(["view","edit"],opt.sharePermission)!=-1){
p.sharePermission=opt.sharePermission;
}
if(opt.startDate){
p.dF=opt.startDate;
}
if(opt.includeTags){
p.includeTags=true;
}
if(opt.sortKey){
p.sK=opt.sortKey;
p.sO=opt.sortDescending?"dsc":"asc";
}
if(opt.notification===true||opt.notification=="on"){
p.notification="on";
}else{
if(opt.notification===false||opt.notification=="off"){
p.notification="off";
}
}
if(opt.defaultContents){
p.includeDefaultDocument=true;
}
if(opt.category){
p.category=opt.category;
}
if(opt.fileType){
p.fileType=opt.fileType;
}
if(typeof opt.format!="undefined"){
p.format=opt.format;
}
if(opt.createVersion){
p.createVersion=true;
}
if(opt.source){
p.source=opt.source;
}
if(opt.draft){
p.draft=opt.draft;
}
}
if(dojo.isIE){
p.format=p.format||"xml";
}
return url+this.lsu.writeParameters(p);
},getWikiDocumentsFeedServiceUrl:function(_3e,opt){
var url=this._getSB("wiki/{wikiLabel}/feed",opt);
url=url.replace("{wikiLabel}",this.lsu.encodeUriComponent(_3e));
var p={};
if(opt){
if(opt.fetchAcl){
p.acls=true;
}
if(opt.page){
p.page=opt.page;
}else{
if(opt.start){
p.sI=opt.start;
}
}
if(opt.tag){
if(typeof opt.tag=="string"){
p.tag=[opt.tag];
}else{
p.tag=opt.tag;
}
}
if(opt.sharing=="withme"){
p.direction="inbound";
}else{
if(opt.sharing=="byme"){
p.direction="outbound";
}
}
if(dojo.indexOf(["public","shared","private"],opt.visibility)!=-1){
p.visibility=opt.visibility;
}
if(opt.pageSize){
p.ps=opt.pageSize;
}
if(dojo.indexOf(["view","edit"],opt.sharePermission)!=-1){
p.sharePermission=opt.sharePermission;
}
if(opt.startDate){
p.dF=opt.startDate;
}
if(opt.includeTags){
p.includeTags=true;
}
if(opt.sortKey){
p.sK=opt.sortKey;
p.sO=opt.sortDescending?"dsc":"asc";
}
if(opt.notification===true||opt.notification=="on"){
p.notification="on";
}else{
if(opt.notification===false||opt.notification=="off"){
p.notification="off";
}
}
if(opt.defaultContents){
p.includeDefaultDocument=true;
}
if(opt.category){
p.category=opt.category;
}
if(opt.fileType){
p.fileType=opt.fileType;
}
if(typeof opt.format!="undefined"){
p.format=opt.format;
}
if(opt.createVersion){
p.createVersion=true;
}
if(opt.source){
p.source=opt.source;
}
if(opt.draft){
p.draft=opt.draft;
}
}
if(dojo.isIE){
p.format=p.format||"xml";
}
return url+this.lsu.writeParameters(p);
},getWikiComparisonServiceUrl:function(_3f,_40,_41,_42,opt){
var url=this._getSB("diff",opt);
var p={diffParent:_3f,input1:Math.max(_41,_42),input2:Math.min(_41,_42),library:_40,htmlDiff:dojo.getObject("lconn.share0.config.htmlDiff")};
if(dojo.isIE){
p.format="xml";
}
return url+this.getQueryString(p);
},getVersionListServiceUrl:function(_43,_44,opt){
var url=this._getFileFeedServiceUrl(_43,_44,opt);
var p={};
if(opt){
if(opt.page){
p.page=opt.page;
}else{
if(opt.start){
p.sI=opt.start;
}
}
if(opt.pageSize){
p.ps=opt.pageSize;
}
if(opt.category){
p.category=opt.category;
}
if(typeof opt.format!="undefined"){
p.format=opt.format;
}
if(opt.deleteFrom){
p.deleteFrom=opt.deleteFrom;
}
}
if(dojo.isIE){
p.format=p.format||"xml";
}
return url+this.lsu.writeParameters(p);
},_getFileFeedServiceUrl:function(_45,_46,opt){
var s=this._getSB("wiki/{libraryId}/page/{fileId}/feed",opt);
s=s.replace("{libraryId}",this.lsu.encodeUriComponent(_45));
s=s.replace("{fileId}",this.lsu.encodeUriComponent(_46));
return s;
},_getTagParam:function(opt){
var _47=this._maxTagFilters;
if(opt.tag){
if(dojo.isArray(opt.tag)&&opt.tag.length>_47&&_47>=1){
return opt.tag.slice(0,_47-1).concat(opt.tag.slice(opt.tag.length-1));
}else{
return opt.tag;
}
}
return null;
},getNavigationEntryServiceUrl:function(_48,_49,opt){
var url=this._getSB("wiki/{wikiId}/navigation/{pageId}/entry",opt);
url=url.replace("{wikiId}",this.lsu.encodeUriComponent(_48));
url=url.replace("{pageId}",this.lsu.encodeUriComponent(_49));
var p={};
if(opt){
}
return url+this.getQueryString(p);
},getNavigationFeedServiceUrl:function(_4a,opt){
if(opt&&(opt.page||opt.pivot)){
var url=this._getSB("wiki/{wikiId}/nav/{pageId}/feed",opt);
url=url.replace("{wikiId}",this.lsu.encodeUriComponent(_4a||opt.library));
url=url.replace("{pageId}",this.lsu.encodeUriComponent(opt.pivot||opt.page));
}else{
var url=this._getSB("wiki/{wikiId}/nav/feed",opt);
url=url.replace("{wikiId}",this.lsu.encodeUriComponent(_4a));
}
var p={};
if(opt){
if(opt.parent){
if(opt.parent.id){
p.parent=opt.parent.id;
}else{
p.parent=opt.parent;
}
}
if(opt.breadcrumbs){
p.breadcrumbs=opt.breadcrumbs;
}
if(opt.timestamp){
p.timestamp=opt.timestamp;
}
if(opt.above){
p.above=opt.above;
}
if(opt.below){
p.below=opt.below;
}
if(opt.postFeed==true){
p.postFeed=opt.postFeed;
}
}
return url+this.getQueryString(p);
},getGroupSearchServiceUrl:function(_4b,opt){
var url=this._getSB("groups/feed",opt);
var p={searchString:_4b,format:"json",includeVirtualGroups:"false"};
if(opt){
if(opt.directory){
p.searchType="directory";
}
if(opt.pageSize){
p.ps=opt.pageSize;
}
if(opt.page){
p.page=opt.page;
}else{
if(opt.start){
p.sI=opt.start;
}
}
if(opt.includeExtendedAttributes){
p.includeExtendedAttributes=true;
}
}
return url+this.getQueryString(p);
},getRecycledDocumentsFeedServiceUrl:function(_4c,opt){
var url=this._getSB("wiki/{wikiLabel}/recyclebin/feed",opt);
url=url.replace("{wikiLabel}",encodeURIComponent(_4c));
var p={};
if(opt){
if(opt.pageSize){
p.ps=opt.pageSize;
}
if(opt.page){
p.page=opt.page;
}else{
if(opt.start){
p.sI=opt.start;
}
}
if(opt.sortKey){
p.sK=opt.sortKey;
p.sO=opt.sortDescending?"dsc":"asc";
}
if(opt.uuid){
p.uuid=opt.uuid;
}
if(opt.undelete){
p.undelete=opt.undelete;
}
}
return url+this.getQueryString(p);
},getApplicationRoleMembersServiceUrl:function(_4d,_4e,opt){
var url=this._getSB("wiki/{libraryId}/roles/{role}/members",opt);
url=url.replace("{libraryId}",this.lsu.encodeUriComponent(_4d));
url=url.replace("{role}",this.lsu.encodeUriComponent(_4e));
p={};
if(opt){
}
if(dojo.isIE){
p.format=p.format||"xml";
}
return url+this.getQueryString(p);
},getApplicationRolesServiceUrl:function(_4f,opt){
var url=this._getSB("wiki/{libraryId}/roles",opt);
url=url.replace("{libraryId}",this.lsu.encodeUriComponent(_4f));
p={"resolve-membership":true};
if(opt){
if(opt.memberId){
p.memberId=opt.memberId;
}
}
if(dojo.isIE){
p.format=p.format||"xml";
}
return url+this.getQueryString(p);
},getApplicationMembersServiceUrl:function(_50,opt){
var url=this._getSB("wiki/{libraryId}/members",opt);
url=url.replace("{libraryId}",this.lsu.encodeUriComponent(_50));
p={rep:"full",ts:new Date().getTime()};
if(opt){
if(typeof opt.start!="undefined"){
p.sI=opt.start;
}
if(opt.sortKey){
p.sK=opt.sortKey;
p.sO=opt.sortDescending?"dsc":"asc";
}
if(opt.filter){
p.filter=opt.filter;
}
if(opt.pageSize){
p.ps=opt.pageSize;
}
if(opt.memberId){
p.memberId=opt.memberId;
}
}
if(dojo.isIE){
p.format=p.format||"xml";
}
return url+this.getQueryString(p);
},getWikiMembersServiceUrl:function(_51,opt){
var url=this._getSB("wiki/{wikiLabel}/members",opt);
url=url.replace("{wikiLabel}",this.lsu.encodeUriComponent(_51));
p={rep:"full",ts:new Date().getTime()};
if(opt){
if(typeof opt.start!="undefined"){
p.sI=opt.start;
}
if(opt.sortKey){
p.sK=opt.sortKey;
p.sO=opt.sortDescending?"dsc":"asc";
}
if(opt.pageSize){
p.ps=opt.pageSize;
}
if(opt.memberId){
p.memberId=opt.memberId;
}
if(opt.type){
p.type=opt.type;
}
if(opt.role){
p.role=opt.role;
}
if(opt.format){
p.format=opt.format;
}
}
if(dojo.isIE){
p.format=p.format||"xml";
}
return url+this.getQueryString(p);
},getConnectionsSearchServiceUrl:function(){
return this.getProxiedUrl(dojo.getObject("lconn.share0.config.services.connections.uri.search"));
},getProxiedUrl:function(url){
var uri=this.lsu.parseUri(url);
var _52=this.lsu.parseUri(dojo.getObject("lconn.share0.config.applicationUri")||"/");
if(uri.scheme==_52.scheme&&uri.authority==_52.authority){
return url;
}else{
return dojo.getObject("lconn.share0.config.proxyUri")+url.replace("://","/");
}
},getPageDraftsFeedServiceUrl:function(_53,_54,opt){
var url=this._getSB("wiki/{wikiId}/page/{pageId}/drafts/feed",opt);
url=url.replace("{wikiId}",this.lsu.encodeUriComponent(_53));
url=url.replace("{pageId}",this.lsu.encodeUriComponent(_54));
var p={};
if(opt){
if(opt.start){
p.sI=opt.start;
}else{
p.sI=1;
}
if(opt.pageSize){
p.ps=opt.pageSize;
}else{
p.ps=dojo.getObject("lconn.share0.config.autosave.numRetrievedUnsavedChanges");
}
if(opt.excludeOwn){
p.excludeOwn=opt.excludeOwn;
}
}
if(dojo.isIE){
p.format=p.format||"xml";
}
return url+this.lsu.writeParameters(p);
},getWikiACLValidationURL:function(_55,_56,_57,opt){
var url=this._getSB("wiki/{wikiId}/permission/{permission}/person/{personId}",opt);
url=url.replace("{wikiId}",this.lsu.encodeUriComponent(_55));
url=url.replace("{permission}",this.lsu.encodeUriComponent(_56));
url=url.replace("{personId}",this.lsu.encodeUriComponent(_57));
return url;
}});
}


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






dojo.declare("lconn.wikis.WikisRoutes",[lconn.wikis.WikisServicesRoutes],{constructor:function(_1,_2){
this.lsu=lconn.share0.util.uri;
this._baseCommon=(dojo.getObject("lconn.share0.config.baseCommonUri")||"/nav/common/");
var _3=this.lsu.parseUri(this._base);
this._basePath=_3.path;
this._root="home";
this._app=this._base+this._root;
this.lang=_1;
this.globalParameters=_2;
},getWelcomeUrl:function(){
return this._app+this.getQueryString();
},getAppPath:function(){
return this._basePath+this._root;
},getLoginUrl:function(s){
var _4=dojo.getObject("lconn.share0.config.services.loginUri");
var _5=this.lsu.parseUri(_4);
_5.queryParameters.redirect=s||this.getWelcomeUrl();
_4=this.lsu.writeUri(_5);
return _4;
},getLogoutUrl:function(s){
var _6=dojo.getObject("lconn.share0.config.services.logoutUri");
var _7=this.lsu.parseUri(_6);
if(!_7.queryParameters.logoutExitPage){
_7.queryParameters.logoutExitPage=s||this.getWelcomeUrl();
_6=this.lsu.writeUri(_7);
}
return _6;
},getAuthenticationUrl:function(){
return dojo.getObject("lconn.share0.config.services.authenticationUri");
},getHelpTopicUrl:function(_8){
var p={topic:_8};
return this._base+"service/tip"+this.getQueryString(p);
},getGlobalHomeUrl:function(_9){
var p={};
var _a=this.isAuthenticatedUser();
if(_9){
if(typeof _9.authenticated!="undefined"){
_a=_9.authenticated==true;
}
if(dojo.indexOf(["global"],_9.pivot)!=-1){
p.pivot=_9.pivot;
}
}
return this._app+this.getQueryString(p);
},getStatisticsUrl:function(){
return this._app+"/statistics"+this.getQueryString();
},getAboutUrl:function(){
return this._app+"/about"+this.getQueryString();
},getConnectionsHomepageUrl:function(_b){
var s=dojo.getObject("lconn.share0.config.services.connections.uri.homepage");
var p={};
if(_b){
}
return s+this.getQueryString(p);
},getLotusSupportForumsUrl:function(){
return lconn.share0.config.lotusSupportForumsUri;
},getProductFeedbackUrl:function(){
return lconn.share0.config.productFeedbackUri;
},getManageMembersUrl:function(_c,_d){
dojo.deprecated("WikisRoutes.getManageMembersUrl()","Use WikisRoutes.getMembersUrl()","3.5");
return this.getMembersUrl(_c,_d);
},getMembersUrl:function(_e,_f){
var _10=this._app;
_10+="/wiki/"+this.lsu.encodeUriComponent(_e)+"/members";
var p={};
if(_f){
if(_f.type){
p.type=_f.type;
}
if(_f.role){
p.role=_f.role;
}
if(_f.sort){
p.sort=_f.sort;
}
if(_f.sortReversed){
p.reverse="1";
}
if(_f.pageSize){
p.pageSize=_f.pageSize;
}
if(typeof _f.start!="undefined"){
p.start=_f.start;
}
}
return _10+this.lsu.writeParameters(p);
},_getWikiPageBaseUrl:function(_11,_12){
var _13=this._app;
if(_11){
_13+="/wiki/"+this.lsu.encodeUriComponent(_11);
if(_12){
_13+="/page/"+this.lsu.encodeUriComponent(_12);
}
}
return _13;
},getWikiPageEditUrl:function(_14,_15,opt,_16){
var url=this._getWikiPageBaseUrl(_14,_15);
url=url+"/edit";
var p={};
if(opt){
if(opt.section){
p.section=opt.section;
}
if(opt.pageview){
p.pv=1;
}
}
if(_16!=true){
url=url+this.getQueryString(p);
}
return url;
},getWikiPageCreateUrl:function(_17,_18){
dojo.deprecated("WikisRoutes.getWikiPageCreateUrl()","Will be removed","3.5");
var s="/wiki/"+this.lsu.encodeUriComponent(_17)+"/pages/create";
return s;
},getWikiUrl:function(_19,opt){
return this.getWikiPageUrl(_19,null,opt);
},getWikiPageUrl:function(_1a,_1b,opt,_1c){
var url=this._getWikiPageBaseUrl(_1a,_1b);
var p={};
if(opt){
if(opt.section){
p.section=opt.section;
}
if(opt.pageview){
p.pv=1;
}
}
if(_1c!=true){
url=url+this.getQueryString(p);
}
return url;
},getConfirmNewPageUrl:function(_1d,_1e,opt){
dojo.deprecated("WikisRoutes.getConfirmNewPageUrl()","Will be removed","3.5");
var url=this._getWikiPageBaseUrl(_1d,_1e);
var p={};
if(opt){
}
var s="/confirm";
return url+s+this.getQueryString(p);
},getWikiPageCommentUrl:function(_1f,_20,opt,_21){
var url=this._getWikiPageBaseUrl(_1f,_20);
var p={};
if(opt){
}
var s="/comment"+((_21)?"/"+_21:"");
return url+s+this.getQueryString(p);
},getWikiPageCreateDraftSummaryUrl:function(_22,_23,opt){
dojo.deprecated("WikisRoutes.getWikiPageCreateDraftSummaryUrl()","Use WikisRoutes.getPageCreateFromDraftUrl()","3.5");
return this.getPageCreateFromDraftUrl(_22,_23,opt);
},getPageCreateFromDraftUrl:function(_24,_25,opt){
var url=this._app+"/wiki/{wikiLabel}/draft/{draftid}/create";
url=url.replace("{wikiLabel}",this.lsu.encodeUriComponent(_24)).replace("{draftid}",this.lsu.encodeUriComponent(_25));
var p={};
if(opt){
if(opt.ignoreExpired){
p.ignoreExpired=opt.ignoreExpired;
}
}
return url+this.getQueryString(p);
},getWikiPageEditDraftSummaryUrl:function(_26,_27,opt){
dojo.deprecated("WikisRoutes.getWikiPageEditDraftSummaryUrl()","Use WikisRoutes.getEditDraftUrl()","3.5");
return this.getEditDraftUrl(_26,_27,opt);
},getEditDraftUrl:function(_28,_29,opt){
var url=this._app+"/wiki/{wikiLabel}/draft/{draftid}/edit";
url=url.replace("{wikiLabel}",this.lsu.encodeUriComponent(_28)).replace("{draftid}",this.lsu.encodeUriComponent(_29));
var p={};
if(opt){
if(opt.ignoreExpired){
p.ignoreExpired=opt.ignoreExpired;
}
}
return url+this.getQueryString(p);
},getWikiPageInfoUrl:function(_2a,_2b,opt){
var url=this._getWikiPageBaseUrl(_2a,_2b);
var p={};
if(opt){
}
var s="/info";
return url+s+this.getQueryString(p);
},getWikiPageVersionsUrl:function(_2c,_2d,opt){
var url=this._getWikiPageBaseUrl(_2c,_2d);
var p={};
if(opt){
}
var s="/versions";
return url+s+this.getQueryString(p);
},getWikiPageAttachmentsUrl:function(_2e,_2f,opt){
var url=this._getWikiPageBaseUrl(_2e,_2f);
var p={};
if(opt){
}
var s="/attachments";
return url+s+this.getQueryString(p);
},getWikiPageVersionUrl:function(_30,_31,_32,opt){
var url=this._getWikiPageBaseUrl(_30,_31);
var p={};
if(opt){
}
var s="/version/"+this.lsu.encodeUriComponent(_32);
return url+((_32!=null)?s:"")+this.getQueryString(p);
},getUserCreatePagesUrl:function(_33,_34,opt){
dojo.deprecated("WikisRoutes.getUserCreatePagesUrl()","Use WikisRoutes.getPageCreateUrl()","3.5");
return this.getPageCreateUrl(_33,opt);
},getPageCreateUrl:function(_35,opt){
var p={};
if(opt){
if(opt.parentId){
p.parentId=opt.parentId;
}
if(opt.rel){
p.rel=opt.rel;
}
if(opt.contextMenu){
p.contextMenu=opt.contextMenu;
}
if(opt.section){
p.section=opt.section;
}
}
return this._app+"/wiki/"+this.lsu.encodeUriComponent(_35)+"/pages/create"+this.getQueryString(p);
},getWikiComparisonUrl:function(_36,_37,opt){
var to,_38;
to=Math.max(opt.to,opt.from);
_38=Math.min(opt.to,opt.from);
var p={from:_38,to:to};
return this._getWikiPageBaseUrl(_36,_37)+"/compare"+this.getQueryString(p);
},getPublicWikisUrl:function(opt){
var url=this._app+"/public";
var p={};
if(opt){
if(opt.sort){
p.sort=opt.sort;
}
if(opt.sortReversed){
p.reverse="1";
}
if(opt.tag){
p.tag=this._getTagParam(opt);
}
}
return url+this.getQueryString(p);
},getMyWikisUrl:function(opt){
var url=this._app+"/mywikis";
var p={};
if(opt){
if(opt.sort){
p.sort=opt.sort;
}
if(opt.sortReversed){
p.reverse="1";
}
if(opt.tag){
p.tag=this._getTagParam(opt);
}
if(opt.role){
p.role=opt.role;
}
if(opt.creator){
p.creator=opt.creator;
}
if(opt.following){
p.following=opt.following;
}
}
return url+this.getQueryString(p);
},getCreateWikiUrl:function(opt){
var url=this._app+"/mywikis/create";
var p={};
if(opt){
}
return url+this.getQueryString(p);
},getEditWikiUrl:function(_39,opt){
var url=null;
if(_39){
url=this._app+("/wiki/{wikiLabel}/edit");
url=url.replace("{wikiLabel}",this.lsu.encodeUriComponent(_39));
}
if(opt){
}
return url;
},getMyPagesUrl:function(_3a,opt){
var _3b=this._app+"/wiki/"+this.lsu.encodeUriComponent(_3a)+"/mypages";
var p={};
if(opt){
if(opt.sort){
p.sort=opt.sort;
}
if(opt.sortReversed){
p.reverse="1";
}
if(opt.tag){
p.tag=this._getTagParam(opt);
}
if(opt.date){
p.date=opt.date;
}
}
return _3b+this.getQueryString(p);
},getPersonalPagesUrl:function(_3c,_3d,opt){
var _3e=this._app+"/wiki/"+this.lsu.encodeUriComponent(_3d)+"/person/"+this.lsu.encodeUriComponent(_3c)+"/pages";
var p={};
if(opt){
if(opt.sort){
p.sort=opt.sort;
}
if(opt.sortReversed){
p.reverse="1";
}
if(opt.tag){
p.tag=this._getTagParam(opt);
}
if(opt.date){
p.date=opt.date;
}
}
return _3e+this.getQueryString(p);
},getPageIndexUrl:function(_3f,opt){
var _40=this._app+"/wiki/"+this.lsu.encodeUriComponent(_3f)+"/index";
var p={};
if(opt){
if(opt.sort&&typeof opt.sort=="string"){
p.sort=opt.sort;
}
if(opt.sortReversed){
p.reverse="1";
}
if(opt.tag){
p.tag=this._getTagParam(opt);
}
if(opt.date){
p.date=opt.date;
}
}
return _40+this.getQueryString(p);
},getRecycleBinUrl:function(_41,opt){
var _42=this._app+"/wiki/"+this.lsu.encodeUriComponent(_41)+"/trash";
var p={};
if(opt){
if(opt.sort&&typeof opt.sort=="string"){
p.sort=opt.sort;
}
if(opt.sortReversed){
p.reverse="1";
}
}
return _42+this.getQueryString(p);
},getSearchUrl:function(_43,_44,_45){
var url=this._app+"/search";
var p={"query":_43};
if(_44){
p.mode=_44;
}
if(_45){
p.wikiLabel=_45;
}
return url+this.getQueryString(p);
},getPersonSearchUrl:function(id,_46){
var url=this._app+"/search";
if(id){
var p={"uid":id};
}else{
return;
}
if(_46){
p.name=_46;
}
return url+this.getQueryString(p);
},getConnectionsSearchUrl:function(_47,opt){
var p={};
var _48=dojo.getObject("lconn.share0.config.services.connections.uri.search");
var _49=(opt&&opt.advanced)?"/web/jsp/advancedSearch.jsp":"/web/search";
if(_47){
p.query=_47;
}
if(opt&&opt.component){
p.component=opt.component;
}
return _48+_49+this.getQueryString(p);
},getConnectionsCommunityUrlRoot:function(){
return dojo.getObject("lconn.share0.config.services.connections.uri.communities");
},getConnectionsCommunityUrl:function(q,opt){
var p={};
var _4a=this.getConnectionsCommunityUrlRoot();
var _4b="/service/html/communityview";
if(q){
p.communityUuid=q.communityUuid;
}
return _4a+_4b+this.getQueryString(p);
}});
}


;if(!dojo._hasResource["lconn.share0.widget.ProtectedAction"]){
dojo._hasResource["lconn.share0.widget.ProtectedAction"]=true;
dojo.provide("lconn.share0.widget.ProtectedAction");
dojo.declare("lconn.share0.widget.ProtectedAction",null,{startAction:function(){
if(this._actionInProgress){
return false;
}
this._actionInProgress=true;
return true;
},endAction:function(){
this._actionInProgress=false;
},isActing:function(){
return this._actionInProgress;
},enableInput:function(el){
this._toggleInput(el,true);
},disableInput:function(el){
this._toggleInput(el,false);
},_toggleInput:function(el,_1){
dojo.forEach(dojo.query("INPUT",el),function(el){
if(el.type!="file"&&el.type!="hidden"){
el.disabled=!_1;
}
});
dojo.forEach(dojo.query("TEXTAREA",el),function(el){
el.disabled=!_1;
});
dojo.forEach(dojo.query("BUTTON",el),function(el){
el.disabled=!_1;
});
dojo.forEach(dojo.query("SELECT",el),function(el){
el.disabled=!_1;
});
}});
}


;if(!dojo._hasResource["lconn.share0.action.DialogAction"]){
dojo._hasResource["lconn.share0.action.DialogAction"]=true;
dojo.provide("lconn.share0.action.DialogAction");










dojo.declare("lconn.share0.action.DialogAction",[lconn.share0.action.Action,lconn.share0.widget.ProtectedAction],{constructor:function(_1,_2,_3){
this.listeners=[];
this._requests=[];
},execute:function(_4,_5,e){
if(e){
dojo.stopEvent(e);
}
var _6=this.dialog;
if(_6&&_6.open){
return;
}
this.endAction();
if(this.alwaysRecreate&&_6){
_6.cancel();
_6.hide();
_6.destroyRecursive();
_6=this.dialog=null;
}
if(!_6){
var d=document;
var _7=d.createElement("DIV");
d.body.appendChild(_7);
var _6=new lconn.share0.widget.Dialog({duration:1,zIndex:this.zIndex},_7);
dojo.connect(_6,"onCancel",this,"cancel");
this.dialog=_6;
this.createDialog(_4,_5,_6);
}else{
this.updateDialog(_4,_5,_6);
}
var _8=lconn.share0.action.DialogAction._modal;
var _9=_8[_8.length-1];
if(_9){
_9.hide();
}
if(_9!=_6){
_8.push(_6);
}
_6.show();
if(_6.focusNode&&!_6.autofocus){
dijit.focus(_6.focusNode);
}
},close:function(){
var _a=this.dialog;
if(_a){
var _b=lconn.share0.action.DialogAction._modal;
var _c=_b[_b.length-1];
if(_c==_a){
_b.pop();
}
_a.hide();
var _d=_b[_b.length-1];
if(_d){
_d.show();
}
}
},cancelDialog:function(e){
dojo.deprecated("lconn.share0.action.DialogAction.cancelDialog()","use dialog.cancel() instead","3.0");
this.cancel(e);
},cancel:function(e){
if(e){
dojo.stopEvent(e);
}
var _e=this.isActing();
this.cancelRequest();
if(_e){
console.log("Cancel while action is in process");
this.endAction();
this.enableInput();
return;
}
this.close();
this.onCancel();
},onCancel:function(){
},cancelRequest:function(){
if(this._requests){
dojo.forEach(this._requests,function(r){
if(!(r&&r.ioArgs)){
return;
}
r.ioArgs.explicitCancel=true;
if(!r.ioArgs._finished){
r.cancel();
}
});
}
this._requests=[];
},destroy:function(){
dojo.forEach(this.listeners,dojo.disconnect);
this.listeners=[];
this.cancelRequest();
if(this.dialog){
this.dialog.destroyRecursive();
}
this.dialog=null;
},enableInput:function(_f){
_f=_f||this.dialog;
if(_f){
if(_f.progressNode){
_f.progressNode.style.display="none";
}
this._toggleInput(_f.domNode,true);
}
},disableInput:function(_10){
_10=_10||this.dialog;
if(_10){
if(_10.progress){
_10.progress.update({indeterminate:true});
}
if(_10.progressNode){
_10.progressNode.style.display="";
}
this._toggleInput(_10.domNode,false);
}
},resize:function(){
if(this.dialog){
this.dialog._position();
}
},beforeSave:function(){
},protectedSave:function(){
if(!this.startAction()||!this.dialog||!this.dialog.open){
return;
}
this.beforeSave();
try{
if(this.save.apply(this,arguments)){
if(this.isActing()){
this.disableInput();
}
}else{
this.endAction();
}
}
catch(e){
console.error(e);
this.endAction();
this.enableInput();
}
},beforeComplete:function(){
},protectedComplete:function(){
var _11=false;
try{
var _12=arguments[arguments.length-1];
_12._finished=true;
this.beforeComplete();
if(_12.explicitCancel){
return;
}
_11=this.complete.apply(this,arguments);
}
finally{
if(!_11){
this.endAction();
this.enableInput();
}
}
if(_11){
this.close();
}
},createMessage:function(s,_13){
if(!_13){
return {message:s};
}
var d=document;
var el=d.createDocumentFragment();
lconn.share0.util.html.substitute(d,el,s,_13,null,this);
return {message:el};
},createDialogFrame:function(d,_14,opt){
opt=opt||{};
if(_14.titleBar){
_14.domNode.removeChild(_14.titleBar);
}
dijit.setWaiRole(_14.containerNode,"presentation");
var _15=d.createElement("div");
_15.className="lotusDialogBorder";
_15.style.width=this.wDialog;
dijit.setWaiRole(_15,"presentation");
var el=_14.formNode=d.createElement("form");
el.tabIndex=-1;
dijit.setWaiRole(el,"presentation");
el.method="POST";
if(opt.isMultipart){
dojo.attr(el,"enctype","multipart/form-data");
dojo.attr(el,"encoding","multipart/form-data");
}
var _16=[this,this.protectedSave].concat(opt.saveArguments||[]);
dojo.connect(el,"onsubmit",dojo.hitch.apply(dojo,_16));
el.className="lotusDialog lotusForm";
var _17=_14.titleBar=d.createElement("div");
_17.style.cursor="move";
_17.className="lotusDialogHeader";
dijit.setWaiRole(_17,"presentation");
var _18=d.createElement("h1");
_18.className="lotusHeading";
_18.appendChild(d.createTextNode(opt.title||this.nls.DIALOG_TITLE));
_17.appendChild(_18);
_17.id=(_14.titleNode.id)?_14.titleNode.id:_14.domNode.id+"_qkrDialogTitle";
var a=lconn.share0.actions.createCancelButton(d,this.nls.CLOSE);
dojo.connect(a,"onclick",this,"cancel");
_17.appendChild(a);
if(opt.imgSrc){
var img=d.createElement("img");
img.style.verticalAlign="bottom";
img.src=opt.imgSrc;
img.alt=opt.imgAlt||"";
_17.appendChild(img);
_17.appendChild(d.createTextNode(" "));
}
el.appendChild(_17);
var _19=d.createElement("div");
_19.className="lotusDialogContent";
dijit.setWaiRole(_19,"presentation");
dijit.setWaiState(_19,"labelledby",_17.id);
el.appendChild(_19);
var div=d.createElement("div");
div.className="lotusDialogFooter";
dijit.setWaiRole(div,"presentation");
if(opt.showProgressBar){
var _1a=lconn.share0.actions.createProgressBarNode(d,_14,this);
div.appendChild(_1a);
}else{
var _1b=_14.progressNode=lconn.share0.actions.createProgressNode(d,this.nls);
div.appendChild(_1b);
}
var _1c=_14.saveNode=d.createElement("input");
_1c.className="lotusFormButton";
_1c.type="submit";
_1c.value=_1c.title=opt.btnOk||this.nls.OK;
dijit.setWaiRole(_1c,"button");
div.appendChild(_1c);
if(!opt.hideCancel){
_1c=_14.cancelNode=d.createElement("input");
_1c.className="lotusFormButton";
_1c.type="button";
_1c.value=_1c.title=opt.btnCancel||this.nls.CANCEL;
dijit.setWaiRole(_1c,"button");
dojo.connect(_1c,"onclick",this,"cancel");
div.appendChild(_1c);
}
el.appendChild(div);
_15.appendChild(el);
_14.focusNode=_14.saveNode;
_14.domNode.removeAttribute("aria-describedby");
_14.domNode.removeAttribute("aria-labelledby");
dijit.setWaiState(_14.domNode,"labelledby",_17.id);
return {border:_15,form:el,content:_19,footer:div};
},onerror:function(_1d){
lconn.share0.util.html.alert(this.nls.ERROR_OCCURRED);
},onsuccess:function(){
this.close();
this.onSuccess({});
},onSuccess:function(e){
}});
lconn.share0.action.DialogAction._modal=[];
}


;if(!dojo._hasResource["lconn.share0.action.PromptAction"]){
dojo._hasResource["lconn.share0.action.PromptAction"]=true;
dojo.provide("lconn.share0.action.PromptAction");










dojo.declare("lconn.share0.action.PromptAction",[lconn.share0.action.DialogAction],{wDialog:"350px",alwaysRecreate:true,constructor:function(_1,_2,_3){
this.app=_1;
this.net=_1.net;
if(_3){
dojo.mixin(this,_3);
}
this.nls=this.nls||_1.nls[this._stringsPrefix];
this.name=this.nls.ACTION;
this.tooltip=this.nls.ACTION_TOOLTIP;
},getFrameOptions:function(_4,_5){
var _6=dojo.mixin({},_5);
_6.hideCancel=this.hideCancel;
return _6;
},createDialog:function(_7,_8,_9){
var d=document;
_8=_8||{};
var _a=this.getFrameOptions(_7,_8);
var _b=this.createDialogFrame(d,_9,_a);
var _c=_b.border;
var _d=_b.content;
var _e=d.createElement("table");
_e.className="lotusFormTable";
dijit.setWaiRole(_e,"presentation");
_e.cellPadding=_e.cellPadding=0;
var _f=d.createElement("tbody");
var tr=d.createElement("tr");
tr.className="lotusFormFieldRow";
var td=d.createElement("td");
var div=td.appendChild(d.createElement("div"));
var _10=div.id=_9.id+"dialogContentNode";
this.renderQuestion(d,div,_7,_8);
tr.appendChild(td);
_f.appendChild(tr);
_e.appendChild(_f);
_d.appendChild(_e);
_9.setContent(_c);
dojo.attr(_9.domNode,"aria-describedby",_10);
_9.item=_7;
if(_8&&_8.focusConfirm){
_9.initialFocusNode=_9.saveNode;
}
this.enableInput(_9);
},renderQuestion:function(d,el,_11,opt){
var q=this.question||this.nls.QUESTION;
if(dojo.isIE){
q=q.replace(/\n+/g," ");
}
el.appendChild(d.createTextNode(q));
},save:function(e){
if(e){
dojo.stopEvent(e);
}
this.close();
this.onSuccess();
return false;
}});
}


;if(!dojo._hasResource["lconn.core0.PeopleDataStore"]){
dojo._hasResource["lconn.core0.PeopleDataStore"]=true;
dojo.provide("lconn.core0.PeopleDataStore");
dojo.declare("lconn.core0.PeopleDataStore",null,{constructor:function(_1,_2){
this.queryParam=(_1.queryParam?_1.queryParam:_2.getAttribute("queryParam"));
this.userState=_1.userState;
this.url=_1.url;
this.getUrl=_1.getUrl;
},queryParam:"",internalOnly:"",maxResults:100,pageSize:25,fastCache:[],dirCache:[],bothCache:[],clear:function(){
this.fastCache=[];
this.dirCache=[];
this.bothCache=[];
},fetch:function(_3){
var _4={};
var _5;
var _6=(_3.queryOptions.searchDirectory?true:false);
var _7=(_3.queryOptions.searchBoth?true:false);
if(_7){
_5=this.bothCache;
}else{
if(_6){
_5=this.dirCache;
}else{
_5=this.fastCache;
}
}
var _8=_3.start||1;
var _9=this.pageSize;
if(_3.count&&_3.count!=Infinity){
if(_7||_6){
_9=(_3.count+1);
}else{
_9=_3.count;
}
}
var _a=_3.query.toLowerCase();
if(_5[_a]){
_3.searchType=_5[_a].searchType;
_3.onComplete(_5[_a].items.slice(_8-1,_8-1+_9),_3);
return _3;
}
if(this.queryParam){
_4[this.queryParam]=_3.query;
}
if(this.userState){
_4["userState"]=this.userState;
}
if(this.internalOnly){
_4["internalOnly"]=this.internalOnly;
}
if(_7){
_4.searchType=["fastlist","directory"];
}else{
if(_6){
_4.searchType="directory";
}else{
_4.searchType="fastlist";
}
}
_4.pageSize=this.maxResults;
dojo.xhrGet({url:this.url||this.getUrl(),content:_4,handleAs:"json-comment-optional",timeout:5000,load:dojo.hitch(this,function(_b){
if(_b instanceof Error){
console.log("There was an error");
return;
}
_5[_a]=_b;
_3.searchType=_b.searchType;
if(_3.onComplete){
_3.onComplete(_b.items.slice(_8-1,_8-1+_9),_3);
}
}),error:function(){
console.log("There was an error");
}});
return _3;
},getValue:function(_c,_d,_e){
if(_c[_d]){
return _c[_d];
}else{
return _e;
}
}});
}


;if(!dojo._hasResource["lconn.share0.util.TagDataStore"]){
dojo._hasResource["lconn.share0.util.TagDataStore"]=true;
dojo.provide("lconn.share0.util.TagDataStore");
dojo.declare("lconn.share0.util.TagDataStore",null,{constructor:function(_1,_2){
this.queryParam=(_1.queryParam?_1.queryParam:_2.getAttribute("queryParam"));
this.url=_1.url;
this.getUrl=_1.getUrl;
this.net=_1.net;
},queryParam:"",cache:[],clear:function(){
this.cache=[];
},fetch:function(_3){
var _4={};
var _5=this.cache;
var _6=_3.queryOptions.libraryId;
var _7=_3.queryOptions.userLibrary;
var _8=(_6||"")+"\n"+(_7||"")+"\n"+(_3.key||"")+"\n"+(_3.order||"")+"\n"+(_3.count||"")+"\n"+(_3.start||"")+"\n"+(_3.query||"").toLowerCase();
if(_5[_8]){
_3.onComplete(_5[_8],_3);
return _3;
}
if(_6){
_4.libraryId=_6;
}
if(_7){
_4.userLibrary=_7;
}
if(this.queryParam&&_3.query){
_4[this.queryParam]=_3.query;
}
if(_3.key){
_4.sK=_3.key;
}
if(_3.order){
_4.sO=_3.order;
}
if(_3.start){
_4.sI=_3.start;
}
if(_3.count&&_3.count!=Infinity){
_4.pageSize=_3.count;
}
var _9=this.getUrl(_4);
this.net.getJson({url:_9,noStatus:true,preventLogin:true,auth:{preventReload:true},headers:{"Content-Type":"text/plain; charset=UTF-8"},handle:dojo.hitch(this,function(_a,_b){
if(_a instanceof Error){
if(_3.onError){
_3.onError();
}else{
console.log("Error fetching tags");
}
}else{
_5[_8]=_a.items;
if(_3.onComplete){
_3.onComplete(_a.items,_3);
}
}
})});
return _3;
},getValue:function(_c,_d,_e){
if(_c[_d]){
return _c[_d];
}else{
return _e;
}
},getUrl:function(){
return this.url;
}});
}


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


dojo.declare("lconn.share0.util.Messages",null,{constructor:function(){
this.messages=[];
this.factories=[];
},addFactory:function(o){
if(o&&typeof o.get=="function"){
this.factories.push(o);
}
},getMessages:function(){
var _1=[];
for(var i=0;i<this.factories.length;i++){
_1=_1.concat(this.factories[i].get());
}
_1=dojo.filter(_1,this.onlyVisible);
this.messages=dojo.filter(this.messages,this.onlyVisible);
return _1.concat(this.messages);
},onlyVisible:function(m){
if(m.closed){
return false;
}
m.visible=true;
return true;
},onlyNew:function(m){
return !m.visible;
},_deferSingle:function(m){
if(m.canClose!==false){
m.canClose=true;
}
this.messages.push(m);
},defer:function(m){
if(!m){
return;
}
if(dojo.isArray(m)){
dojo.forEach(m,this._deferSingle,this);
}else{
this._deferSingle(m);
}
},_addSingle:function(m){
if(m.canClose!==false){
m.canClose=true;
}
return m;
},add:function(m){
if(!m){
return;
}
if(dojo.isArray(m)){
var _2=dojo.map(m,this._addSingle,this);
this.messages=_2;
this.onClear();
dojo.forEach(this.messages,this.onNew,this);
}else{
this._addSingle(m);
this.messages=[m];
this.onClear();
this.onNew(m);
}
},resetVisible:function(){
this.messages=dojo.filter(this.messages,this.onlyNew);
},onNew:function(m){
m.visible=true;
},onClear:function(){
}});
}


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


dojo.declare("lconn.share0.util.SceneTemplates",null,{constructor:function(_1,_2){
dojo.mixin(this,_2||{});
this.defaultParameters=this.defaultParameters||{};
var _3=this.cache={};
if(_1){
for(var id in _1){
var _4=_1[id];
if(!_4){
continue;
}
if(typeof _4=="object"&&_4.documentElement){
_3[id]={xml:_4};
}else{
if(typeof _4=="string"){
if(/^<?xml/.exec(_4)){
_3[id]={text:_4};
}else{
if(_4[0]=="/"||/^http/i.exec(_4)){
_3[id]={url:_4};
}else{
_3[id]={url:(dojo.getObject("lconn.share0.config.baseUri")||"/")+_4};
}
}
}
}
}
}
},getXhtml:function(id,_5){
var _6;
var _7=this.cache[id];
if(_7){
if(!_7.xml||(_5&&_5.bypassCache)||_7.error){
this.loadXml(_7,_5);
}
_6=_7.xml;
}
return _6;
},loadXml:function(_8,_9){
if(!_8){
return;
}
if(_8.text){
var _a=this.createDocument(_8.text);
_8.xml=_a;
}else{
if(_8.url){
var r,io;
var _b=lconn.share0.util.uri.rewriteUri(_8.url,dojo.mixin((_9&&_9.parameters)?_9.parameters:{},this.defaultParameters));
this.net.getXml({url:_b,handle:function(_c,_d){
r=_c;
io=_d;
},sync:true});
if(r instanceof Error){
console.log("SceneTemplates::loadXml DEBUG unable to load template from url");
_8.xml=null;
}else{
_8.xml=r;
}
}
}
if(!_8.xml){
_8.error=true;
}
},getHtml:function(id,_e){
var _f=(id.charAt(0)=="/"||/^http/i.exec(id))?id:(dojo.getObject("lconn.share0.config.baseUri")||"/")+id;
var _10={url:_f};
this.loadHtml(_10,_e);
return _10.html;
},loadHtml:function(_11,_12){
if(!_11){
return;
}
if(_11.text){
_11.html=this.createHtmlFragment(_11.text);
}else{
if(_11.url){
var r,io;
var url=lconn.share0.util.uri.rewriteUri(_11.url,dojo.mixin((_12&&_12.parameters)?_12.parameters:{},this.defaultParameters));
this.net.getText({url:url,handle:function(_13,_14){
r=_13;
io=_14;
},sync:true});
if(r instanceof Error){
console.log("SceneTemplates::loadXml DEBUG unable to load template from url");
}else{
_11.html=this.createHtmlFragment(r);
}
}
}
if(!_11.html){
_11.error=true;
}
},createHtmlFragment:function(s){
if(dojo.isIE&&s){
s=s.replace(/\<link\s/ig,"<div class=\"lotusHidden\">&nbsp;</div><link ");
}
var d=document.createDocumentFragment();
var div=document.createElement("div");
div.innerHTML=s;
d.appendChild(div);
return div;
},createDocument:function(s){
var doc;
if(typeof DOMParser!="undefined"){
var _15=new DOMParser();
doc=_15.parseFromString(s,"text/xml");
}else{
if(typeof ActiveXObject!="undefined"){
doc=new ActiveXObject("Microsoft.XMLDOM");
doc.async="false";
doc.loadXML(s);
}
}
return doc;
}});
}


;if(!dojo._hasResource["lconn.core0.TypeAheadDataStore"]){
dojo._hasResource["lconn.core0.TypeAheadDataStore"]=true;
dojo.provide("lconn.core0.TypeAheadDataStore");
dojo.declare("lconn.core0.TypeAheadDataStore",null,{constructor:function(_1,_2){
this.queryParam=(_1.queryParam?_1.queryParam:_2.getAttribute("queryParam"));
this.url=(_1.url?_1.url:_2.getAttribute("url"));
this.usePost=_1?_1.usePost:false;
},queryParam:"",maxQueryLength:255,usePost:false,cache:[],clear:function(){
this.cache=[];
},fetch:function(_3){
var _4={};
this.searchDirectory=(_3.searchDirectory||_3.queryOptions.searchDirectory?true:false);
if(typeof this.cache[_3.query.toLowerCase()]=="object"){
_3.onComplete(this.cache[_3.query.toLowerCase()],_3);
return _3;
}
if(this.queryParam){
if(this.getUTF8Length(_3.query)>this.maxQueryLength){
var _5=this.getUTF8Substring(_3.query);
_4[this.queryParam]=_5;
}else{
_4[this.queryParam]=_3.query;
}
}
if(this.usePost){
dojo.xhrPost({url:this.url,content:_4,handleAs:"json-comment-optional",timeout:5000,contentType:"application/x-www-form-urlencoded;charset=UTF-8",load:dojo.hitch(this,function(_6){
this.cache[_3.query.toLowerCase()]=_6;
if(_3.onComplete){
_3.onComplete(_6,_3);
}
}),error:function(){
console.log("There was an error");
}});
}else{
dojo.xhrGet({url:this.url,content:_4,handleAs:"json-comment-optional",timeout:5000,load:dojo.hitch(this,function(_7){
this.cache[_3.query.toLowerCase()]=_7.items;
if(_3.onComplete){
_3.onComplete(_7.items,_3);
}
}),error:function(){
console.log("There was an error");
}});
}
return _3;
},getUTF8Length:function(_8){
var _9=0;
if(_8!=null){
for(var i=0;i<_8.length;i++){
var c=_8.charCodeAt(i);
if(c<127){
_9+=1;
}else{
if((128<=c)&&(c<=2047)){
_9+=2;
}else{
if((2048<=c)&&(c<=65535)){
_9+=3;
}
}
}
}
}
return _9;
},getUTF8Substring:function(_a){
var _b=_a;
var i=0;
while(this.getUTF8Length(_b)>this.maxQueryLength){
_b=_a.substring(0,_a.length-i);
i++;
}
return _b;
},getValue:function(_c,_d,_e){
return _c;
}});
}


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










dojo.declare("lconn.core.FollowMenu",dijit._Widget,{_subscriptions:[],disableContained:false,FOLLOW_TOPIC:"lconn.comm.commFollowed",UNFOLLOW_TOPIC:"lconn.comm.commUnFollowed",menuId:"followDropDownMenu",items:[{_strings:{OFF_LABEL:"Follow this <Item>",ON_LABEL:"Stop Following this <Item>",DISABLED_LABEL:"<Item> updates are included with the <Container> updates."},enabled:true|false,activate:function(){
return new dojo.Deferred();
},deactivate:function(){
return new dojo.Deferred();
},on:true|false}],_menuItems:[],wrapperClass:"lconn.core._FollowMenuItem",disableMenuItemsContained:true,postMixInProperties:function(_1){
this._validateItems();
if(this.disableContained){
this._subscriptions.push(dojo.subscribe(this.FOLLOW_TOPIC,dojo.hitch(this,this._handleFollowCommunityTopic)));
this._subscriptions.push(dojo.subscribe(this.UNFOLLOW_TOPIC,dojo.hitch(this,this._handleUnfollowCommunityTopic)));
}
},buildRendering:function(){
var d=document;
this.domNode=this.srcNodeRef;
this.menu=new dijit.Menu({id:this.menuId});
dojo.addClass(this.menu.domNode,"lotusPlain");
dojo.forEach(this.items,dojo.hitch(this,function(_2,i){
var _3=dojo.getObject(this.wrapperClass);
var _4=new _3(_2);
var _5=new dijit.MenuItem({label:_4.label,_item:_4,disabled:!_4.enabled});
dojo.connect(_5,"onClick",dojo.hitch(_4,_4.execute));
if(this.disableMenuItemsContained){
dojo.connect(_4,"onActivate",dojo.hitch(this,this._toggleMenuItems,false,i));
dojo.connect(_4,"onDeactivate",dojo.hitch(this,this._toggleMenuItems,true,i));
}
if(_4.setMenuItem){
_4.setMenuItem(_5);
}
this._menuItems.push(_5);
this.menu.addChild(_5);
}));
var _6=this.domNode.appendChild(d.createElement("span"));
_6.style.display="none";
_6.setAttribute("widgetid",this.menu.id);
dojo.connect(this.domNode,"onclick",dojo.partial(function(_7,a,e){
try{
var _8={orient:(dojo._isBodyLtr()?{"BR":"TR","BL":"TL","TR":"BR","TL":"BL"}:{"BL":"TL","BR":"TR","TL":"BL","TR":"BR"})};
menuUtility.openMenu(e,_7.id,a,_8);
dojo.stopEvent(e);
}
catch(e){
console.log(e);
}
},this.menu,this.domNode));
},destroy:function(_9){
dojo.forEach(this._subscriptions,dojo.hitch(dojo,dojo.unsubscribe));
this._subscriptions=[];
if(this.menu){
this.menu.destroyRecursive(_9);
}
this.menu=null;
this.inherited(arguments);
},_handleFollowCommunityTopic:function(_a){
this._handleCommunityTopic(false);
},_handleUnfollowCommunityTopic:function(_b){
this._handleCommunityTopic(true);
},_handleCommunityTopic:function(_c){
dojo.forEach(this._menuItems,dojo.partial(function(_d,_e){
_e._item.setEnabled(_d);
},_c));
},_toggleMenuItems:function(_f,n){
dojo.forEach(this._menuItems,function(_10,i){
if(i>=n){
return;
}
_10._item.setEnabled(_f);
});
},_validateItems:function(){
var _11=false;
for(var i=this.items.length-1;i>=0;i--){
if(!_11&&this.items[i].on){
_11=true;
continue;
}
if(_11&&this.items[i].enabled){
throw "Invalid items array. When following a container, the action to follow content must be disabled";
}
}
}});
dojo.declare("lconn.core._FollowMenuItem",null,{enabled:true,menuItem:null,constructor:function(_12){
dojo.safeMixin(this,_12||{});
this.label=this.enabled?this.isOn()?this._strings.ON_LABEL:this._strings.OFF_LABEL:this._strings.DISABLED_LABEL;
},isOn:function(){
return this.on;
},activate:function(){
console.warn("Implementors must override activate()");
var _13=new dojo.Deferred();
setTimeout(function(){
_13.callback();
},100);
return _13;
},deactivate:function(){
console.warn("Implementors must override deactivate()");
var _14=new dojo.Deferred();
setTimeout(function(){
_14.callback();
},100);
return _14;
},execute:function(e){
if(e){
dojo.stopEvent(e);
}
if(!this.enabled){
return;
}
try{
if(this.isOn()){
var d=this.deactivate();
d.addCallback(dojo.hitch(this,this.onDeactivate));
d.addErrback(dojo.hitch(this,this.onerror));
this.on=false;
}else{
var d=this.activate();
d.addCallback(dojo.hitch(this,this.onActivate));
d.addErrback(dojo.hitch(this,this.onerror));
this.on=true;
}
}
catch(e){
console.error("lconn.core.FollowMenu: exception: "+e);
}
finally{
this._updateLabel();
}
},onerror:function(){
this.on=!this.on;
this._updateLabel();
this.onError();
},onActivate:function(){
},onDeactivate:function(){
},onError:function(){
},setEnabled:function(_15){
this.enabled=_15;
this._updateLabel();
},setMenuItem:function(_16){
this.menuItem=_16;
this._updateLabel();
},_updateLabel:function(){
this.label=this.enabled?this.isOn()?this._strings.ON_LABEL:this._strings.OFF_LABEL:this._strings.DISABLED_LABEL;
if(this.menuItem){
dojo.attr(this.menuItem,"label",this.label);
this.menuItem.attr("disabled",!this.enabled);
}
}});
}


;if(!dojo._hasResource["lconn.share0.action.Login"]){
dojo._hasResource["lconn.share0.action.Login"]=true;
dojo.provide("lconn.share0.action.Login");




dojo.declare("lconn.share0.action.Login",[lconn.share0.action.Action],{constructor:function(_1){
this.app=_1;
this.nls=this.app.nls.LOGIN;
this.name=this.nls.ACTION;
this.id="loginLinkToParticipate";
this.template=this.nls.ACTION_TEMPLATE;
this.tooltip=this.nls.ACTION_TOOLTIP;
},isValid:function(_2,_3){
return !this.app.authenticatedUser;
},execute:function(_4,_5,e){
if(e){
dojo.stopEvent(e);
}
if(!this.app.authenticatedUser){
this.app.login();
}
},setNode:function(_6){
var d=this.app.document;
var _7=_6.parentNode;
_7.removeChild(_6);
var _8=d.createElement("span");
_7.appendChild(_8);
lconn.share0.util.html.substitute(d,_8,this.template,{action:dojo.hitch(this,function(a){
a.innerHTML="";
a.appendChild(d.createTextNode(this.name));
return a;
},_6)});
dijit.setWaiState(_6,"label",dojo.string.substitute(this.template,{action:this.name}));
}});
}


;if(!dojo._hasResource["lconn.share0.widget.QuotaText"]){
dojo._hasResource["lconn.share0.widget.QuotaText"]=true;
dojo.provide("lconn.share0.widget.QuotaText");






dojo.declare("lconn.share0.widget.QuotaText",[dijit._Widget],{defer:false,labelDefer:null,delayClick:200,size:NaN,totalSize:NaN,buildRendering:function(){
var d=document;
var el=this.domNode=this.srcNodeRef;
lconn.share0.util.html.removeChildren(el);
this.updateText();
},onClick:function(e){
if(this.defer){
this.load();
}
this.defer=false;
if(!this._clickDelay){
if(isNaN(this.size)){
this._clickDelay=setTimeout(dojo.hitch(this,"updateText"),this.delayClick);
}else{
this.updateText();
}
}
},clearTimer:function(){
clearTimeout(this._clickDelay);
this._clickDelay=null;
},update:function(_1,_2){
this.clearTimer();
this.size=_1;
this.totalSize=_2;
this.showError=false;
this.updateText();
},error:function(_3){
this.clearTimer();
this.size=this.totalSize=NaN;
this.err=_3;
this.showError=true;
this.updateText();
},updateText:function(){
this.clearTimer();
var d=document;
var _4=this._strings;
var _5=this.size;
var _6=this.totalSize;
var el=this.domNode;
var _4=this._strings;
lconn.share0.util.html.removeChildren(el);
if(!isNaN(_5)){
if(_6>0){
var _7=_5/_6;
s=dojo.string.substitute(_4.LABEL_QUOTA,{person:this.userName,fraction:Math.round(_7*100),size:lconn.share0.util.text.formatSize(this._sizeStrings,_5),total:lconn.share0.util.text.formatSize(this._sizeStrings,_6)});
el.appendChild(d.createTextNode(s));
}else{
if(!this.hideUnlimited){
s=dojo.string.substitute(_4.LABEL_UNLIMITED,{person:this.userName,size:lconn.share0.util.text.formatSize(this._sizeStrings,_5)});
el.appendChild(d.createTextNode(s));
}
}
}else{
if(this.showError){
el.appendChild(d.createTextNode(_4.LABEL_ERROR));
}else{
if(this.defer){
var a=d.createElement("a");
a.href="javascript:;";
a.appendChild(d.createTextNode(this.labelDefer));
this.connect(a,"onclick","onClick");
el.appendChild(a);
}else{
el.appendChild(d.createTextNode(_4.LOADING));
}
}
}
}});
}


;dojo.cache("lconn.wikis", "widget/templates/WikiTypeAhead.html", "<input type=\"text\" autocomplete=\"off\" name=\"${name}\" id=\"widget_${id}\" size=\"${size}\" dojoAttachEvent=\"onkeypress:_onKeyPress, onkeyup:_onKeyUp\" dojoAttachPoint=\"domNode,textbox,focusNode,comboNode\" waiRole=\"combobox\" waiState=\"haspopup-true,autocomplete-list,expanded-false\" />");

;if(!dojo._hasResource["lconn.wikis.widget.WikiTypeAhead"]){
dojo._hasResource["lconn.wikis.widget.WikiTypeAhead"]=true;
dojo.provide("lconn.wikis.widget.WikiTypeAhead");




dojo.declare("lconn.wikis.widget.WikiTypeAhead",[lconn.core.TypeAhead],{size:"",pageSize:15,templateString:null,multipleValues:false,submitFormOnKey:true,hideEmptyResults:true,autoSelectChars:[","],templatePath:dojo.moduleUrl("lconn.wikis","widget/templates/WikiTypeAhead.html"),formatItem:function(_1){
if(_1.title){
return _1.title;
}else{
return _1;
}
},_getLabelFromItem:function(_2){
var _3=[];
if(_2){
if(typeof _2=="string"){
return _2;
}
if(_2.label){
_3.push(_2.label);
}
}
return _3.join(" ");
},_showResultList:function(){
this.inherited(arguments);
if(this.width&&this.height){
dojo.marginBox(this._popupWidget.domNode,{h:this.height,w:this.width});
}
},_startSearch:function(_4,_5){
_5=_5||{};
if(_5.searchImmediately){
_5.searchBoth=true;
}
if(!this._popupWidget){
var _6=this.id+"_popup";
this._popupWidget=this.dropDown=new lconn.wikis.widget.WikiTypeAheadMenu({_strings:this._strings,onChange:dojo.hitch(this,this._selectOption),id:_6});
dijit.removeWaiState(this.focusNode,"activedescendant");
dijit.setWaiState(this.textbox,"owns",_6);
}
this.item=null;
var _7=dojo.clone(this.query);
this._lastQuery=_7=_4;
if(this.searchTimer){
this.searchTimer.remove();
}
var _8=dojo.hitch(this,function(_9,_a){
var _b=this.store.fetch({queryOptions:dojo.mixin({ignoreCase:this.ignoreCase,deep:true},_5),query:_9,onComplete:dojo.hitch(this,"_openResultList"),onError:function(_c){
console.error("dijit.form.ComboBox: "+_c);
dojo.hitch(_a,"_hideResultList")();
},start:0,count:this.pageSize});
var _d=function(_e,_f){
_e.start+=_e.count*_f;
_e.direction=_f;
this.store.fetch(_e);
};
this._nextSearch=this._popupWidget.onPage=dojo.hitch(this,_d,_b);
},_7,this);
var _10=_5.searchImmediately?1:this.searchDelay;
this.searchTimer=this.defer(_8,_10);
}});
dojo.declare("lconn.wikis.widget.WikiTypeAheadMenu",[dijit.form._ComboBoxMenu],{templateString:"<ul role='listbox' class='dijitReset dijitMenu' data-dojo-attach-point='containerNode' dojoAttachEvent='onmousedown:_onMouseDown,onmouseup:_onMouseUp,onmouseover:_onMouseOver,onmouseout:_onMouseOut' tabIndex='-1' style='overflow:\"auto\";'>"+"<li class='dijitMenuItem dijitMenuPreviousButton' dojoAttachPoint='previousButton'></li>"+"<li class='dijitMenuItem resultsNode' dojoAttachPoint='resultsNode'></li>"+"<li class='dijitMenuItem dijitMenuNextButton' dojoAttachPoint='nextButton'></li>"+"</ul>",_messages:null,postCreate:function(){
this.resultsNode.selectHandler=dojo.hitch(this,function(evt){
dojo.stopEvent(evt);
return true;
});
this.inherited("postCreate",arguments);
},setValue:function(_11){
if(_11.target.item){
this.value=_11;
this.onChange(_11);
}
},_onMouseOver:function(evt){
if(evt.target===this.domNode){
return;
}
var tgt=evt.target;
if(!(tgt==this.previousButton||tgt==this.nextButton||tgt==this.searchButton||tgt==this.resultsNode)){
var _12=this.items[tgt.getAttribute("item")];
while(!_12&&tgt){
tgt=tgt.parentNode;
_12=this.items[tgt.getAttribute("item")];
}
}
this._focusOptionNode(tgt);
},_focusOptionNode:function(_13){
if(this._highlighted_option!=_13){
this._blurOptionNode();
this._highlighted_option=_13;
dojo.addClass(this._highlighted_option,"dijitMenuItemHover");
}
},_blurOptionNode:function(){
if(this._highlighted_option){
dojo.removeClass(this._highlighted_option,"dijitMenuItemHover");
this._highlighted_option=null;
}
},clearResultList:function(){
var _14=this.previousButton;
var _15=this.nextButton;
while(_14.nextSibling&&_14.nextSibling!=_15){
this.domNode.removeChild(_14.nextSibling);
}
},getListLength:function(){
return this.domNode.childNodes.length-2-(this.searchButton.parentNode?1:0)-(this.resultsNode.parentNode?1:0);
}});
lconn.wikis.widget.WikiTypeAhead.getWikiTypeAheadArguments=function(_16,opt){
var _17={nameAttr:"name",minChars:2,searchDelay:400,pageSize:30,multipleValues:false,store:_16,formatItem:function(_18,_19){
if(_18.title){
return _18.title;
}else{
return _18;
}
}};
if(opt){
dojo.mixin(_17,opt);
}
return _17;
};
}


;if(!dojo._hasResource["lconn.share0.widget.SearchBox"]){
dojo._hasResource["lconn.share0.widget.SearchBox"]=true;
dojo.provide("lconn.share0.widget.SearchBox");


















dojo.declare("lconn.share0.widget.SearchBox",[dijit._Widget,lconn.core.peopleFinder.PeopleFinderSearchBox],{postMixInProperties:function(){
this.scopes=this.scopes||[];
if(this.app){
this.userStore=this.userStore||this.app.getUserTypeAheadStore(true);
this.wikisStore=this.wikisStore||this.app.getWikiTypeAheadStore();
this._stringsUser=this._stringsUser||this.app.nls.USERSEARCH;
this._strings=this._strings||this.app.nls.SEARCH;
var _1=this.app.scene.query;
if(_1&&_1.length>0){
this.searchQuery=_1;
}
}
},buildRendering:function(){
var _2=this;
var d=document;
var el=this.domNode=this.srcNodeRef;
if(this.baseClass){
dojo.addClass(el,this.baseClass);
}
var _3=dojo.filter(this.scopes,function(s){
return !s.isValid||s.isValid(_2.app,_2.app.scene);
});
this.currentScope=_3[0];
var _4=this.PFdropdownAnchor=el;
_4.className="lotusSearch";
dijit.setWaiRole(_4,"search");
dojo.connect(_4,"onsubmit",this,"search");
var _5,_6,_7;
var _8=d.createElement("table");
_8.className="lotusLayout";
_8.cellSpacing="0";
dijit.setWaiRole(_8,"presentation");
var _9=d.createElement("tbody");
var tr=d.createElement("tr");
var td=d.createElement("td");
_5=d.createElement("div");
td.appendChild(_5);
tr.appendChild(td);
var td=_6=d.createElement("td");
tr.appendChild(td);
var td=_7=d.createElement("td");
tr.appendChild(td);
_9.appendChild(tr);
_8.appendChild(_9);
_4.appendChild(_8);
var _a=this.scopeLink=d.createElement("a");
_a.className="lotusScope";
_a.title=this._strings.HOVER;
_a.href="javascript:;";
dijit.setWaiRole(_a,"button");
dijit.setWaiState(_a,"haspopup",true);
var _b=this.scopeIcon=d.createElement("img");
_b.className="lconnSprite";
_b.alt="";
_b.src=dijit._Widget.prototype._blankGif;
_a.appendChild(_b);
var _c=this.scopeLabel=this.PFscopeLabelNode=d.createElement("span");
_a.appendChild(_c);
var _d=d.createElement("span");
_d.className="lotusAltText";
_d.appendChild(d.createTextNode("\u25bc"));
_a.appendChild(_d);
_5.appendChild(_a);
var _e=new dijit.Menu();
dojo.forEach(_3,function(_f){
if(_f.separator){
_e.addChild(new dijit.MenuSeparator());
}else{
if(_2.defaultSearchScope&&_f.id==_2.defaultSearchScope){
_2.currentScope=_f;
}
var _10=new dijit.MenuItem({baseClass:"dijitMenuItemRtl qkrSearchScope",iconClass:_f.iconClass,label:_f.label,title:_f.title,onClick:dojo.hitch(_2,_2.changeScope,_f)});
if(_f.onClick){
dojo.connect(_10,"onClick",null,dojo.hitch(_f,_f.onClick,_2.app));
}
_e.addChild(_10);
}
});
var _11=el.appendChild(d.createElement("span"));
_11.style.display="none";
_11.setAttribute("widgetid",_e.id);
dojo.addClass(_e.domNode,"lotusNavMenu lconnSearchScope");
var _8=_e.domNode;
var _12=d.createElement("colgroup");
var col=d.createElement("col");
col.width="25";
_12.appendChild(col);
var col=d.createElement("col");
_12.appendChild(col);
_8.insertBefore(_12,_8.firstChild);
dojo.connect(_a,"onclick",function(){
if(_e.domNode.originalWidth){
dojo.marginBox(_e.domNode,{w:_e.domNode.originalWidth});
}
lconn.core.MenuUtility.openAround(_e,_a);
if(!_e.domNode.originalWidth){
_e.domNode.originalWidth=_e.domNode.offsetWidth;
}
var _13=_e.domNode.offsetWidth;
var _14=_a.offsetWidth;
if(_14>_13){
var _15=null;
if(!dojo._isBodyLtr()){
_15=_e.domNode.parentNode;
}
dojo.marginBox(_e.domNode,{w:_14});
if(_15){
_15.style.left=(_15.offsetLeft+_13-_14)+"px";
}
}
});
if(!_2.app.isCloudMode){
if(_3.length<=1){
_5.style.display="none";
}
}
var _16=this.currentScope.hintText||"";
if(dojo.some(_3,function(a){
return a.typeahead=="people";
})){
var _17=d.createElement("INPUT");
_17.style.display=(this.currentScope.typeahead=="people")?"":"none";
_17.title=_17.value=_16;
_17.size="30";
_6.appendChild(_17);
var _18=lconn.core0.PeopleTypeAhead.getUserTypeAheadArguments(this.userStore,{_strings:this._stringsUser,id:this.id+"_people","class":"lotusText",orient:dojo._isBodyLtr()?{"BR":"TR","TR":"BR"}:{"BL":"TL","TL":"BL"}});
var _19=this.people=new lconn.core0.PeopleTypeAhead(_18,_17);
var _1a=_19.textbox;
_1a.title=_16;
dojo.connect(_19,"onSelect",this,"selectPerson");
dojo.connect(_1a,"onfocus",_1a,this.onTextFocus);
dojo.connect(_1a,"onblur",_1a,this.onTextBlur);
}
if(dojo.some(_3,function(a){
return a.typeahead=="wikis";
})){
var _17=d.createElement("INPUT");
_17.style.display=(this.currentScope.typeahead=="wikis")?"":"none";
_17.size="30";
_6.appendChild(_17);
var _1b=this.wikis=new lconn.wikis.widget.WikiTypeAhead({_strings:this._stringsUser,id:this.id+"_wikis","class":"lotusText",orient:dojo._isBodyLtr()?{"BR":"TR","TR":"BR"}:{"BL":"TL","TL":"BL"},store:this.wikisStore,hintText:_16},_17);
var _1a=_1b.textbox;
_1a.title=_16;
dojo.connect(_1b,"onSelect",this,"selectPerson");
dojo.connect(_1a,"onfocus",_1a,this.onTextFocus);
dojo.connect(_1a,"onblur",_1a,this.onTextBlur);
}
if(dojo.some(_3,function(a){
return !a.typeahead;
})){
var _17=this.simpleInputNode=this.PFtextField=d.createElement("INPUT");
_17.className="lotusText";
_17.style.display=(dojo.indexOf(["people","wikis"],this.currentScope.typeahead)==-1)?"":"none";
_17.size="30";
_17.id=this.id+"_simpleInput";
_17.title=_17.value=_16;
_6.appendChild(_17);
dojo.connect(_17,"onfocus",_17,this.onTextFocus);
dojo.connect(_17,"onblur",_17,this.onTextBlur);
lconn.core.globalization.bidiUtil.inputRTLProcessing(_17);
dojo.connect(_17,"onkeyup",function(){
lconn.core.globalization.bidiUtil.inputRTLProcessing(_17);
});
}
lconn.share0.scenes.createSearchButton(d,_7,this.id+"_submit",this._strings.SEARCH_ALT);
this.changeScope(this.currentScope);
},onTextFocus:function(){
if(!this.hasInput){
this.hasInput=true;
this.style.color="#000";
this.value="";
}
},setSearchQuery:function(){
if(this.searchQuery&&this.simpleInputNode){
dijit.focus(this.simpleInputNode);
this.simpleInputNode.value=this.searchQuery;
}
},onTextBlur:function(){
if(this.value==""){
this.hasInput=false;
this.value=this.defaultText||"";
}
},getCurrentScope:function(){
return this.currentScope;
},changeScope:function(_1c){
var i;
var d=document;
var ip=this.people;
var iw=this.wikis;
var is=this.simpleInputNode;
this.currentScope=_1c;
lconn.share0.util.html.removeChildren(this.scopeLabel);
this.scopeLabel.appendChild(d.createTextNode(_1c.label));
this.scopeIcon.className="lotusIcon "+_1c.iconClass;
if(_1c.typeahead=="people"){
this.PFdisable=true;
ip.domNode.style.display="";
if(is){
is.style.display="none";
}
if(iw){
iw.domNode.style.display="none";
}
i=this.inputNode=ip.textbox;
}else{
if(_1c.typeahead=="wikis"){
this.PFdisable=true;
iw.domNode.style.display="";
if(is){
is.style.display="none";
}
if(ip){
ip.domNode.style.display="none";
}
i=this.inputNode=iw.textbox;
}else{
this.PFdisable=false;
is.style.display="";
if(ip){
ip.domNode.style.display="none";
}
if(iw){
iw.domNode.style.display="none";
}
i=this.inputNode=is;
}
}
i.defaultText=_1c.hintText||"";
i.title=_1c.hintText;
if(!i.hasInput){
i.value=i.defaultText;
}
this.setSearchQuery();
},selectPerson:function(){
var _1d=this.getCurrentScope();
if(_1d.onSelect){
_1d.onSelect.apply(_1d,arguments);
}
},search:function(e){
if(e){
dojo.stopEvent(e);
}
var _1e=this.inputNode;
var _1f=_1e.value;
if(!_1e.hasInput||lconn.share0.util.text.trim(_1f).length==0){
return;
}
var _20=this.getCurrentScope();
if(_20.onSearch){
_20.onSearch(this.inputNode.value);
}
},PFisPlaceholderActive:function(){
return !this.PFtextField.hasInput;
}});
}


;if(!dojo._hasResource["lconn.share0.bean.User"]){
dojo._hasResource["lconn.share0.bean.User"]=true;
dojo.provide("lconn.share0.bean.User");


dojo.declare("lconn.share0.bean.User",null,{constructor:function(e){
this.id=lconn.share0.bean.User.decodeUserUri(lconn.share0.util.dom.getChildElementTextContentNS(e,"userid",lconn.share0.util.dom.SNX_NAMESPACE)||lconn.share0.util.dom.getChildElementTextContent(e,"userid"));
this.name=lconn.share0.util.dom.getChildElementTextContentNS(e,"name",lconn.share0.util.dom.DOCUMENTS_ATOM_NAMESPACE)||lconn.share0.util.dom.getChildElementTextContent(e,"name");
this.email=lconn.share0.util.dom.getChildElementTextContentNS(e,"email",lconn.share0.util.dom.DOCUMENTS_ATOM_NAMESPACE)||lconn.share0.util.dom.getChildElementTextContent(e,"email");
this.userState=lconn.share0.util.dom.getChildElementTextContentNS(e,"userState",lconn.share0.util.dom.SNX_NAMESPACE)||lconn.share0.util.dom.getChildElementTextContent(e,"userState");
},isActive:function(){
return this.userState!="inactive";
}});
lconn.share0.bean.User.decodeUserUri=function(s){
return decodeURIComponent(s.replace("+"," "));
};
}


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






lconn.wikis.util.NAMESPACES={CA:{LONG:"http://www.ibm.com/xmlns/prod/composite-applications/v1.0",SHORT:"ca"}};
lconn.wikis.util.NAMESPACE_PREFIX={};
for(var key in lconn.wikis.util.NAMESPACES){
var value=lconn.wikis.util.NAMESPACES[key];
lconn.wikis.util[key+"_NAMESPACE"]=value;
lconn.wikis.util.NAMESPACE_PREFIX[value.SHORT]=value.LONG;
}
lconn.wikis.util.serializeObject=function(_1,_2){
_2=typeof _2=="undefined"?0:_2;
var s="{";
var p=[];
for(var i in _1){
var t=typeof (_1[i]);
if(t!="function"){
if(t!="object"){
p.push(i+":\""+_1[i]+"\"");
}else{
if(_2<10){
p.push(i+":"+lconn.wikis.util.serializeObject(_1[i]),++_2);
}
}
}
}
return s+p.join(",")+"}";
};
lconn.wikis.util.getWikiPostBody=function(id,_3,_4,_5,_6,_7){
var _8=lconn.share0.util.dom.newXMLDocument("entry",lconn.share0.util.dom.ATOM_NAMESPACE,[lconn.share0.util.dom.DOCUMENTS_ATOM_NAMESPACE,lconn.wikis.util.CA_NAMESPACE]);
var _9=_8.documentElement;
var _a=lconn.share0.util.dom.createElementNS(_8,"category",lconn.share0.util.dom.ATOM_NAMESPACE);
_a.setAttribute("term","wiki");
_a.setAttribute("label","wiki");
_a.setAttribute("scheme","tag:ibm.com,2006:td/type");
_9.appendChild(_a);
var _b=lconn.share0.util.dom.createElementNS(_8,"title",lconn.share0.util.dom.ATOM_NAMESPACE);
_b.setAttribute("type","text");
_b.appendChild(_8.createTextNode(_3));
_9.appendChild(_b);
var _c=lconn.share0.util.dom.createElementNS(_8,"sharedResourceType",lconn.share0.util.dom.DOCUMENTS_ATOM_NAMESPACE);
_c.appendChild(_8.createTextNode("wiki"));
_9.appendChild(_c);
var _d=lconn.share0.util.dom.createElementNS(_8,"sharedWith",lconn.share0.util.dom.DOCUMENTS_ATOM_NAMESPACE);
for(var i=0;i<_5.length;i++){
var _e=lconn.share0.util.dom.createElementNS(_8,"member",lconn.wikis.util.CA_NAMESPACE);
lconn.share0.util.dom.setAttributeNS(_e,"id",_5[i][0],lconn.wikis.util.CA_NAMESPACE);
lconn.share0.util.dom.setAttributeNS(_e,"type","user",lconn.wikis.util.CA_NAMESPACE);
lconn.share0.util.dom.setAttributeNS(_e,"role",_5[i][1],lconn.wikis.util.CA_NAMESPACE);
_d.appendChild(_e);
}
for(var i=0;i<_6.length;i++){
var _e=lconn.share0.util.dom.createElementNS(_8,"member",lconn.wikis.util.CA_NAMESPACE);
lconn.share0.util.dom.setAttributeNS(_e,"id",_6[i][0],lconn.wikis.util.CA_NAMESPACE);
lconn.share0.util.dom.setAttributeNS(_e,"type",_6[i][2]?"virtual":"group",lconn.wikis.util.CA_NAMESPACE);
lconn.share0.util.dom.setAttributeNS(_e,"role",_6[i][1],lconn.wikis.util.CA_NAMESPACE);
_d.appendChild(_e);
}
_9.appendChild(_d);
for(var i=0;i<_7.length;i++){
var _a=lconn.share0.util.dom.createElementNS(_8,"category",lconn.share0.util.dom.ATOM_NAMESPACE);
_a.setAttribute("term",_7[i]);
_a.setAttribute("label",_7[i]);
_9.appendChild(_a);
}
var _f=lconn.share0.util.dom.createElementNS(_8,"summary",lconn.share0.util.dom.ATOM_NAMESPACE);
_f.setAttribute("type","text");
_f.appendChild(_8.createTextNode(_4));
_9.appendChild(_f);
var _10=lconn.share0.util.dom.createElementNS(_8,"content",lconn.share0.util.dom.ATOM_NAMESPACE);
_10.setAttribute("type","application/atom+xml");
_9.appendChild(_10);
var _11=lconn.wikis.util.prependXMLDeclaration(lconn.share0.util.dom.serializeXMLDocument(_8));
return _11;
};
lconn.wikis.util.getPagePostBodyWithParent=function(id,_12,_13,_14,_15,_16,_17,_18,_19,_1a,_1b,_1c){
var doc=lconn.share0.util.dom.newXMLDocument("entry",lconn.share0.util.dom.ATOM_NAMESPACE,[lconn.share0.util.dom.DOCUMENTS_ATOM_NAMESPACE]);
var _1d=doc.documentElement;
var _1e=lconn.share0.util.dom.createElementNS(doc,"category",lconn.share0.util.dom.ATOM_NAMESPACE);
_1e.setAttribute("term",_19?"draft":"page");
_1e.setAttribute("label",_19?"draft":"page");
_1e.setAttribute("scheme","tag:ibm.com,2006:td/type");
dojo.forEach(_1c,function(tag){
var _1f=lconn.share0.util.dom.createElementNS(doc,"category",lconn.share0.util.dom.ATOM_NAMESPACE);
_1f.setAttribute("term",tag);
_1f.setAttribute("label",tag);
_1d.appendChild(_1f);
});
_1d.appendChild(_1e);
if(_1a){
var _20=lconn.share0.util.dom.createElementNS(doc,"draftUuid",lconn.share0.util.dom.DOCUMENTS_ATOM_NAMESPACE);
_20.appendChild(doc.createTextNode(_1a));
_1d.appendChild(_20);
}
if(_1b){
var _21=lconn.share0.util.dom.createElementNS(doc,"parentUuid",lconn.share0.util.dom.DOCUMENTS_ATOM_NAMESPACE);
_21.appendChild(doc.createTextNode(_1b));
_1d.appendChild(_21);
}
var _22=lconn.share0.util.dom.createElementNS(doc,"title",lconn.share0.util.dom.ATOM_NAMESPACE);
_22.appendChild(doc.createTextNode(_13));
_1d.appendChild(_22);
var _23=lconn.share0.util.dom.createElementNS(doc,"label",lconn.share0.util.dom.DOCUMENTS_ATOM_NAMESPACE);
_23.appendChild(doc.createTextNode(_13));
_1d.appendChild(_23);
var _24=lconn.share0.util.dom.createElementNS(doc,"visibility",lconn.share0.util.dom.DOCUMENTS_ATOM_NAMESPACE);
_24.appendChild(doc.createTextNode((_16)?"public":"private"));
_1d.appendChild(_24);
if(_17==true||_17==false){
var _25=lconn.share0.util.dom.createElementNS(doc,"propagation",lconn.share0.util.dom.DOCUMENTS_ATOM_NAMESPACE);
_25.appendChild(doc.createTextNode(_17?"true":"false"));
_1d.appendChild(_25);
}
var _26=lconn.share0.util.dom.createElementNS(doc,"summary",lconn.share0.util.dom.ATOM_NAMESPACE);
_26.appendChild(doc.createTextNode(_14));
_1d.appendChild(_26);
if(_15){
var _27=lconn.share0.util.dom.createElementNS(doc,"changeSummary",lconn.share0.util.dom.DOCUMENTS_ATOM_NAMESPACE);
_27.appendChild(doc.createTextNode(_15));
_1d.appendChild(_27);
}
var _28=lconn.share0.util.dom.createElementNS(doc,"content",lconn.share0.util.dom.ATOM_NAMESPACE);
_28.setAttribute("type",_18);
_28.appendChild(doc.createTextNode(_12));
_1d.appendChild(_28);
var _29=lconn.wikis.util.prependXMLDeclaration(lconn.share0.util.dom.serializeXMLDocument(doc));
return _29;
};
lconn.wikis.util.getPagePostBody=function(id,_2a,_2b,_2c,_2d,_2e,_2f,_30,_31,_32,_33){
return lconn.wikis.util.getPagePostBodyWithParent(id,_2a,_2b,_2c,_2d,_2e,_2f,_30,_31,_32,null,_33);
};
lconn.wikis.util.wrapWithQuotes=function(_34){
return "\u201c"+_34+"\u201d";
};
lconn.wikis.util.shallowClone=function(obj){
if(typeof (obj)=="object"){
var _35=null;
if(obj instanceof Array){
_35=[];
}else{
_35={};
}
for(var i in obj){
_35[i]=obj[i];
}
return _35;
}else{
return obj;
}
};
lconn.wikis.util.getFormElementValue=function(frm,_36){
if(!frm||!frm.elements||!frm.elements[_36]){
return null;
}
var el=frm.elements[_36];
if(el.length){
for(var i=0;i<el.length;i++){
if(el[i].checked){
return el[i].value;
}
}
}
return el.value;
};
lconn.wikis.util.getPageDescription=function(_37,_38){
var _39=lconn.wikis.util.stripXMLPreamble(_37);
_39=lconn.wikis.util.stripTags(_39);
_39=lconn.wikis.util.stripEntities(_39);
_39=lconn.wikis.util.trim(_39,true);
return _39.substr(0,_38/4);
};
lconn.wikis.util.trim=function(s){
if(!s){
return "";
}
return s.replace(/^\s*/,"").replace(/\s*$/,"");
};
lconn.wikis.util.stripEntities=function(_3a){
return _3a.replace(/&[^;]+;/g,"");
};
lconn.wikis.util.substringUtf8=function(s,_3b){
s=s.substring(0,s.length);
while(lconn.share0.util.text.lengthUtf8(s)>_3b){
s=s.substring(0,s.length-1);
}
return s;
};
lconn.wikis.util.stripXMLPreamble=function(_3c){
var c=0;
if((c=_3c.indexOf("<?"))!=-1){
_3c=_3c.substring(_3c.indexOf("?>",c)+2);
}
if((c=_3c.indexOf("<!DOCTYPE"))!=-1){
_3c=_3c.substring(_3c.indexOf(">]>",c)+3);
}
return _3c;
};
lconn.wikis.util.stripTags=function(_3d){
var a=0,b=0,c=0,s="";
while(a<_3d.length){
if((a=_3d.indexOf("<",c))!=-1){
s+=_3d.substring(c,a);
if((b=_3d.indexOf(">",a))!=-1){
c=b+1;
}
}else{
s+=_3d.substring(c);
break;
}
}
return s;
};
lconn.wikis.util.prependXMLDeclaration=function(xml){
if(xml.indexOf("<?xml ")==0){
xml=xml.substr(xml.indexOf("?>")+2);
}
return lconn.share0.util.dom.XML_DECLARATION+xml;
};
lconn.wikis.util.compareObjects=function(a,b,_3e){
var key;
for(key in a){
if(a[key]!==b[key]&&_3e[key]===undefined){
return false;
}
}
for(key in b){
if(a[key]!==b[key]&&_3e[key]===undefined){
return false;
}
}
return true;
};
}


;if(!dojo._hasResource["lconn.wikis.bean.AtomEntry"]){
dojo._hasResource["lconn.wikis.bean.AtomEntry"]=true;
dojo.provide("lconn.wikis.bean.AtomEntry");






dojo.declare("lconn.wikis.bean.AtomEntry",null,{constructor:function(_1){
this.e=_1;
},getEditLink:function(){
},getSelfLink:function(){
},getDeleteLink:function(){
},getAuthor:function(){
if(!this.author){
this.author=new lconn.share0.bean.User(lconn.share0.util.dom.getElementsByTagName(this.e,"author")[0]);
}
return this.author;
},getId:function(){
if(!this.id){
this.id=lconn.share0.util.dom.getChildElementTextContent(this.e,"id");
}
return this.id;
},getTitle:function(){
if(!this.title){
this.title=lconn.share0.util.dom.getChildElementTextContent(this.e,"title");
}
return this.title;
},getContent:function(){
if(!this.content){
this.content=lconn.share0.util.dom.getChildElementTextContent(this.e,"content");
}
return this.content;
},getEntry:function(){
return this.e;
}});
}


;if(!dojo._hasResource["lconn.wikis.bean.Wiki"]){
dojo._hasResource["lconn.wikis.bean.Wiki"]=true;
dojo.provide("lconn.wikis.bean.Wiki");












dojo.declare("lconn.wikis.bean.Wiki",lconn.wikis.bean.AtomEntry,{getLabel:function(){
return lconn.share0.util.dom.getChildElementTextContentNS(this.e,"label",lconn.share0.util.dom.DOCUMENTS_ATOM_NAMESPACE);
},getDescription:function(){
return lconn.share0.util.dom.getChildElementTextContent(this.e,"summary");
},getPermissions:function(){
if(!this.permissions){
var s=lconn.share0.util.dom.getChildElementTextContentNS(this.e,"permissions",lconn.share0.util.dom.DOCUMENTS_ATOM_NAMESPACE);
var p={};
if(s){
dojo.forEach(s.split(", "),function(a){
if(a&&a.length>0){
p[a]=true;
}
});
}
this.permissions=p;
}
return this.permissions;
},getCategory:function(){
return "wiki";
},getAtomId:function(){
return lconn.share0.util.dom.getChildElementTextContent(this.e,"id");
},getId:function(){
return lconn.share0.util.dom.getChildElementTextContentNS(this.e,"uuid",lconn.share0.util.dom.DOCUMENTS_ATOM_NAMESPACE);
},getTags:function(){
if(!this.tags){
var _1=[];
for(var i=0;i<this.e.childNodes.length;i++){
var _2=this.e.childNodes[i];
if(_2.nodeName=="category"&&_2.getAttribute("scheme")==null){
_1.push(_2.getAttribute("term"));
}
}
this.tags=_1;
}
return this.tags;
},getUpdated:function(){
if(!this.updated){
this.updated=lconn.share0.util.misc.date.convertAtomDate(lconn.share0.util.dom.getChildElementTextContentNS(this.e,"modified",lconn.share0.util.dom.DOCUMENTS_ATOM_NAMESPACE))||this.getSystemLastModified();
}
return this.updated;
},getPublished:function(){
if(!this.published){
this.published=lconn.share0.util.misc.date.convertAtomDate(lconn.share0.util.dom.getChildElementTextContentNS(this.e,"created",lconn.share0.util.dom.DOCUMENTS_ATOM_NAMESPACE))||this.getSystemCreated();
}
return this.published;
},getSystemLastModified:function(){
if(!this.systemLastModified){
this.systemLastModified=lconn.share0.util.misc.date.convertAtomDate(lconn.share0.util.dom.getChildElementTextContent(this.e,"updated"));
}
return this.systemLastModified;
},getSystemCreated:function(){
if(!this.systemCreated){
this.systemCreated=lconn.share0.util.misc.date.convertAtomDate(lconn.share0.util.dom.getChildElementTextContent(this.e,"published"));
}
return this.systemCreated;
},getModifier:function(){
if(!this.modifier){
var e=lconn.share0.util.dom.getElementsByTagNameNS(this.e,"modifier",lconn.share0.util.dom.DOCUMENTS_ATOM_NAMESPACE)[0];
if(e){
this.modifier=new lconn.share0.bean.User(e);
}
}
return this.modifier;
},getModifiedItem:function(){
if(!this.modifiedItem){
this.modifiedItem=lconn.share0.util.dom.getChildElementTextContentNS(this.e,"modifiedItem",lconn.share0.util.dom.DOCUMENTS_ATOM_NAMESPACE);
}
return this.modifiedItem;
},getRecommendationsCount:function(){
return lconn.share0.util.text.parseInt(lconn.share0.util.dom.getChildElementMatchingAttributeTextContentNS(this.e,"rank",lconn.share0.util.dom.SNX_NAMESPACE,"scheme",null,"http://www.ibm.com/xmlns/prod/sn/recommendations"));
},getCommentsCount:function(){
return lconn.share0.util.text.parseInt(lconn.share0.util.dom.getChildElementMatchingAttributeTextContentNS(this.e,"rank",lconn.share0.util.dom.SNX_NAMESPACE,"scheme",null,"http://www.ibm.com/xmlns/prod/sn/comment"));
},getVisitsCount:function(){
return lconn.share0.util.text.parseInt(lconn.share0.util.dom.getChildElementMatchingAttributeTextContentNS(this.e,"rank",lconn.share0.util.dom.SNX_NAMESPACE,"scheme",null,"http://www.ibm.com/xmlns/prod/sn/hit"));
},getUrlEntry:function(){
return lconn.share0.util.uri.makeAtomUrlIESafe(lconn.share0.util.dom.getChildElementAttributeMatching(this.e,"link","rel","self","href"));
},getUrlFeed:function(){
return lconn.share0.util.uri.makeAtomUrlIESafe(lconn.share0.util.dom.getChildElementAttributeMatching(this.e,"link","rel","replies","href"));
},getSize:function(){
return lconn.share0.util.text.parseInt(lconn.share0.util.dom.getChildElementTextContentNS(this.e,"librarySize",lconn.share0.util.dom.DOCUMENTS_ATOM_NAMESPACE),0);
},getTrashSize:function(){
return lconn.share0.util.text.parseInt(lconn.share0.util.dom.getChildElementTextContentNS(this.e,"totalRemovedSize",lconn.share0.util.dom.DOCUMENTS_ATOM_NAMESPACE));
},getQuota:function(){
return lconn.share0.util.text.parseInt(lconn.share0.util.dom.getChildElementTextContentNS(this.e,"libraryQuota",lconn.share0.util.dom.DOCUMENTS_ATOM_NAMESPACE),-1);
},hasQuota:function(){
return (this.getQuota()>0);
},getThemeName:function(){
return lconn.share0.util.dom.getChildElementTextContentNS(this.e,"themeName",lconn.share0.util.dom.DOCUMENTS_ATOM_NAMESPACE);
},getVisibilityComputed:function(){
return lconn.share0.util.dom.getChildElementTextContentNS(this.e,"visibilityComputed",lconn.share0.util.dom.DOCUMENTS_ATOM_NAMESPACE);
},getCommunityId:function(){
if(!this.communityId){
var l=lconn.share0.util.dom.getElementsByTagNameNS(this.e,"library",lconn.share0.util.dom.DOCUMENTS_ATOM_NAMESPACE)[0];
var _3=l?l:this.e;
this.communityId=lconn.share0.util.dom.getChildElementTextContentNS(_3,"communityUuid",lconn.share0.util.dom.SNX_NAMESPACE);
}
return this.communityId;
},isCommunityWiki:function(){
return !!this.getCommunityId();
},isContentFollowingAllowed:function(){
if(this.policy==undefined&&this.e){
this.policy=lconn.share0.util.dom.getElementsByTagNameNS(this.e,"policy",lconn.share0.util.dom.DOCUMENTS_ATOM_NAMESPACE)[0];
}
if(this.contentFollowing==undefined&&this.policy){
this.contentFollowing=lconn.share0.util.dom.getChildElementTextContentNS(this.policy,"contentFollowing",lconn.share0.util.dom.DOCUMENTS_ATOM_NAMESPACE)=="true";
}
return this.contentFollowing;
},getOrgId:function(){
if(this.orgId==undefined){
this.orgId=lconn.share0.util.dom.getChildElementTextContentNS(this.e,"orgId",lconn.share0.util.dom.SNX_NAMESPACE);
}
return this.orgId;
},isFollowing:function(){
if(typeof this.following=="undefined"&&this.e){
this.following=false;
var c=lconn.share0.util.dom.getChildElementNS(this.e,"following",lconn.share0.util.dom.DOCUMENTS_ATOM_NAMESPACE);
if(c){
this.following=lconn.share0.util.dom.xmlText(c)=="on";
}
}
return this.following;
},hasFollowing:function(){
if(typeof this.following!=="undefined"){
return true;
}
return (this.e&&lconn.share0.util.dom.getChildElementNS(this.e,"following",lconn.share0.util.dom.DOCUMENTS_ATOM_NAMESPACE));
}});
}


;if(!dojo._hasResource["lconn.wikis.action.DeleteWiki"]){
dojo._hasResource["lconn.wikis.action.DeleteWiki"]=true;
dojo.provide("lconn.wikis.action.DeleteWiki");








dojo.declare("lconn.wikis.action.DeleteWiki",[lconn.share0.action.PromptAction],{wDialog:"620px",_stringsPrefix:"DELETE_WIKI",constructor:function(_1,_2,_3){
this.wikiLabel=_2.wikiLabel||_2.sceneInfo.wikiLabel;
this.question=this.nls.TEXT;
this.wiki=null;
},execute:function(_4,_5,e){
if(e){
dojo.stopEvent(e);
}
var _6=this.wiki=this.wiki||this.app.getWiki();
if(_6!=null){
this.inherited(arguments);
}else{
this.app.net.getXml({url:this.app.routes.getWikiEntryServiceUrl(this.wikiLabel,{fetchAcl:true,includeFollowing:true}),handle:dojo.hitch(this,this.loadWiki,_5)});
}
},loadWiki:function(_7,_8,_9){
if(_8 instanceof Error){
var _a=lconn.share0.util.atom.getErrorCode(_8,_9);
var _b;
if(_a=="ItemNotFound"){
_b=this.nls.NOT_FOUND_ERROR;
}else{
if(_a=="AccessDenied"){
_b=this.nls.ACCESS_DENIED_ERROR;
}else{
if(_a=="cancel"){
_b=this.nls.CANCEL_ERROR;
}else{
if(_a=="timeout"){
_b=this.nls.TIMEOUT_ERROR;
}else{
if(_a=="unauthenticated"){
_b=this.nls.NOT_LOGGED_IN_ERROR;
}else{
_b=this.nls.ERROR;
}
}
}
}
}
lconn.share0.util.html.alert(_b);
}else{
var _c=this.wiki=new lconn.wikis.bean.Wiki(_8.documentElement);
this.execute(_c,_7);
}
},createDialog:function(_d,_e,_f){
var d=document;
var app=this.app;
var _10=this.createDialogFrame(d,_f,{hideCancel:this.hideCancel});
dojo.addClass(_f.saveNode,"lotusBtnDisabled");
var _11=_10.border;
var _12=_10.content;
dojo.removeClass(_10.form,"lotusForm");
dojo.addClass(_10.form,"lotusForm2 lotusLeftLabels _lotusDelete");
var _13=d.createElement("div");
_13.className="lotusFormHeader";
dijit.setWaiRole(_13,"alert");
var _14=d.createElement("img");
_14.src=dijit._Widget.prototype._blankGif;
_14.className="iconsMessages48 iconsMessages48-msgWarning48";
_14.alt="";
dijit.setWaiRole(_14,"presentation");
_13.appendChild(_14);
var p1=d.createElement("p");
p1.id="lconn_wikis_action_DeleteWiki_warning1";
p1.appendChild(d.createTextNode(this.nls.WARNING));
p1.appendChild(d.createTextNode(" "));
var str=d.createElement("strong");
str.appendChild(d.createTextNode(this.wiki.getTitle()));
p1.appendChild(str);
_13.appendChild(p1);
_12.appendChild(_13);
_f.messages=new lconn.share0.util.Messages();
_f.messageContainer=new lconn.share0.widget.MessageContainer({messages:_f.messages,nls:app.nls},_12.appendChild(d.createElement("div")));
var _15=d.createElement("div");
_15.className="lotusFormTitle";
var _16=d.createElement("div");
_16.className="lotusMeta";
_16.id="lconn_wikis_action_DeleteWiki_warning2";
_16.appendChild(d.createTextNode(this.nls.SIGN));
_15.appendChild(_16);
_12.appendChild(_15);
var _17=d.createElement("div");
_17.className="lotusFormBody";
var _18=d.createElement("div");
_18.className="lotusFormField";
var _19=d.createElement("label");
_19.id="lconn_wikis_action_DeleteWiki_label_name";
_19.appendChild(d.createTextNode(this.nls.NAME_LABEL));
dijit.setWaiRole(_19,"presentation");
_18.appendChild(_19);
var dv1=d.createElement("div");
dv1.id="lconn_wikis_action_DeleteWiki_name";
dv1.className="lotusFieldWrapper";
dijit.setWaiRole(dv1,"presentation");
dv1.appendChild(d.createTextNode(app.authenticatedUser.name));
_18.appendChild(dv1);
_17.appendChild(_18);
var _1a=d.createElement("div");
_1a.className="lotusFormField";
var _1b=d.createElement("label");
lconn.share0.validation.addRequiredIndicator(_1b);
_1b.appendChild(d.createTextNode(this.nls.SIGNATURE_LABEL));
_1a.appendChild(_1b);
var dv2=d.createElement("div");
dv2.className="lotusFieldWrapper";
var _1c=_f.signNode=d.createElement("input");
_1c.type="text";
_1c.className="lotusText";
_1c.id="lconn_wikis_action_DeleteWiki_signature";
_1b.htmlFor=_1c.id;
dijit.setWaiState(_1c,"required","true");
dijit.setWaiState(_1c,"describedby","lconn_wikis_action_DeleteWiki_warning1 lconn_wikis_action_DeleteWiki_warning2 lconn_wikis_action_DeleteWiki_label_name lconn_wikis_action_DeleteWiki_name");
dv2.appendChild(_1c);
_1a.appendChild(dv2);
var sp2=_f.signErrorMark=d.createElement("span");
sp2.className="lotusFormErrorIcon";
dojo.style(sp2,"visibility","hidden");
var _1d=d.createElement("img");
_1d.src=dijit._Widget.prototype._blankGif;
_1d.className="lotusIconMsgError";
_1d.alt=app.nls.ERROR;
sp2.appendChild(_1d);
var _1e=d.createElement("span");
_1e.className="lotusAltText";
_1e.appendChild(d.createTextNode("X"));
sp2.appendChild(_1e);
_1a.appendChild(sp2);
_17.appendChild(_1a);
var _1f=d.createElement("div");
_1f.className="lotusFormField";
var dv3=d.createElement("div");
dv3.className="lotusFieldWrapper";
var _20=d.createElement("input");
_20.type="checkbox";
_20.className="lotusCheckbox";
_20.name=this.nls.CONFIRM;
_20.id="lconn_wikis_action_DeleteWiki_confirm";
dv3.appendChild(_20);
var _21=d.createElement("label");
_21.className="lotusCheckbox";
_21.appendChild(d.createTextNode(this.nls.ACK));
_21.htmlFor=_20.id;
dv3.appendChild(_21);
_1f.appendChild(dv3);
_17.appendChild(_1f);
var _22=d.createElement("div");
_22.className="lotusFormField";
var _23=d.createElement("div");
_23.className="lotusFormLabel";
var _24=d.createElement("label");
_24.className="lotusMeta";
_24.appendChild(d.createTextNode(app.nls.ACCESSIBILITY.LABELS.REQUIRED));
_23.appendChild(_24);
_22.appendChild(_23);
_17.appendChild(_22);
_12.appendChild(_17);
_f.setContent(_11);
_f.item=_d;
if(_e&&_e.focusConfirm){
_f.initialFocusNode=_f.saveNode;
}
this.enableInput(_f);
_f.saveNode.disabled=true;
dojo.attr(_f.saveNode,"aria-disabled","true");
dojo.connect(_20,"onclick",dojo.hitch(this,this._confirmDelete,_20,this.dialog.saveNode));
},_confirmDelete:function(_25,_26){
_26.disabled=!_25.checked;
if(_25.checked){
dojo.removeAttr(_26,"aria-disabled");
}else{
dojo.attr(_26,"aria-disabled","true");
}
dojo[_25.checked?"removeClass":"addClass"](_26,"lotusBtnDisabled");
},destroy:function(){
if(this.dialog){
this.dialog.messageContainer.destroyRecursive();
this.dialog.messageContainer=null;
}
this.inherited(arguments);
},isValid:function(_27){
if(typeof (_27)!="object"){
return false;
}
var _28=_27.getPermissions();
return (this.app.authenticatedUser&&_28&&_28.GrantAccess&&!_27.isCommunityWiki());
},save:function(e){
if(e){
dojo.stopEvent(e);
}
var _29=this.dialog;
lconn.share0.validation.removeFormErrors(_29.formNode);
if(!this.validateSignature()){
dijit.focus(_29.signNode);
return false;
}
var url=this.app.routes.getWikiEntryServiceUrl(this.wikiLabel);
this._requests.push(this.app.net.deleteXml({url:url,handle:dojo.hitch(this,this.protectedComplete)}));
return true;
},complete:function(_2a,_2b){
if(_2a instanceof Error){
var _2c=lconn.share0.util.atom.getErrorCode(_2a,_2b);
this.onerror(_2c);
return false;
}else{
this.onsuccess();
dojo.publish("lconn/wikis/wiki/deleted");
var e={wikiDelete:true,messages:{info:true,message:this.nls.INFO_SUCCESS}};
dojo.publish("lconn/share/action/completed",[e,this]);
return true;
}
},onSuccess:function(){
delete this.wiki;
this.app.navigate(this.app.routes.getWelcomeUrl());
},onerror:function(_2d){
var msg;
if(_2d=="ItemNotFound"){
msg=this.nls.NOT_FOUND_ERROR;
}else{
if(_2d=="AccessDenied"){
msg=this.nls.ACCESS_DENIED_ERROR;
}else{
if(_2d=="cancel"){
msg=this.nls.CANCEL_ERROR;
}else{
if(_2d=="timeout"){
msg=this.nls.TIMEOUT_ERROR;
}else{
if(_2d=="unauthenticated"){
msg=this.nls.NOT_LOGGED_IN_ERROR;
}else{
msg=this.nls.ERROR;
}
}
}
}
}
if(msg){
var _2e=this.dialog;
lconn.share0.validation.setFormError(_2e.formNode,msg);
}
},validateSignature:function(){
var _2f=this.dialog;
var el=_2f.signNode;
var d=document;
var app=this.app;
var _30=app.authenticatedUser;
if(lconn.share0.util.text.trim(el.value)!==_30.name){
_2f.messages.add({message:this.nls.INVALID_SIGN_MESSAGE,error:true,canClose:false});
dojo.addClass(el,"lotusFormErrorField");
dojo.style(_2f.signErrorMark,"visibility","visible");
return false;
}else{
_2f.messages.resetVisible();
dojo.removeClass(el,"lotusFormErrorField");
dojo.style(_2f.signErrorMark,"visibility","hidden");
}
return true;
}});
}


;if(!dojo._hasResource["lconn.share0.action.InlineAction"]){
dojo._hasResource["lconn.share0.action.InlineAction"]=true;
dojo.provide("lconn.share0.action.InlineAction");








dojo.declare("lconn.share0.action.InlineAction",[lconn.share0.action.Action,lconn.share0.widget.ProtectedAction],{isOpening:false,isOpen:false,eyecandy:false,constructor:function(_1,_2,_3){
this.listeners=[];
this._requests=[];
},execute:function(_4,_5,e){
if(e){
dojo.stopEvent(e);
}
var _6=this.containerNode;
this.endAction();
if(_6&&this.alwaysRecreate){
this.isOpen=this.isOpening=false;
lconn.share0.util.html.removeChildren(_6);
_6=this.containerNode=null;
}
if(!_6){
_6=this.containerNode=this.findContainerNode(_4,_5);
dojo.style(_6,"display","none");
this.createForm(_4,_5,_6);
}else{
this.updateForm(_4,_5,_6);
}
this.open();
},findContainerNode:function(_7,_8){
var d=document;
var _9=d.createElement("DIV");
d.body.appendChild(_9);
return _9;
},open:function(){
if(this.containerNode&&!this.isOpen){
if(this.eyecandy){
this.isOpening=true;
this.anim=dojo.fx.wipeIn({node:this.containerNode,duration:100});
dojo.connect(this.anim,"onEnd",dojo.hitch(this,function(){
this.isOpening=false;
this.openComplete();
}));
this.anim.play();
}else{
dojo.style(this.containerNode,"display","block");
this.openComplete();
}
}
},openComplete:function(){
this.isOpen=true;
this.focusInitialNode();
if(this.onOpen){
this.onOpen();
}
},focusInitialNode:function(){
if(this.initialFocusNode){
setTimeout(dojo.hitch(dijit,dijit.focus,this.initialFocusNode),150);
}
},close:function(){
if(this.containerNode&&this.isOpen){
if(this.eyecandy){
this.anim=dojo.fx.wipeOut({node:this.containerNode,duration:100});
dojo.connect(this.anim,"onEnd",this,this.closeComplete);
this.anim.play();
}else{
dojo.style(this.containerNode,"display","none");
this.closeComplete();
}
}
},closeComplete:function(){
this.isOpen=false;
if(this.onClose){
this.onClose();
}
},cancel:function(e){
if(e){
dojo.stopEvent(e);
}
var _a=this.isActing();
this.cancelRequest();
if(_a){
console.log("Cancel while action is in process");
this.endAction();
this.enableInput();
return;
}
this.close();
this.onCancel();
},onCancel:function(){
},cancelRequest:function(){
if(this._requests){
dojo.forEach(this._requests,function(r){
r.ioArgs.explicitCancel=true;
if(!r.ioArgs._finished){
r.cancel();
}
});
}
this._requests=[];
},destroy:function(){
dojo.forEach(this.listeners,dojo.disconnect);
this.listeners=[];
this.cancelRequest();
if(this.containerNode){
lconn.share0.util.html.removeChildren(this.containerNode);
this.containerNode.parentNode.removeChild(this.containerNode);
}
this.containerNode=null;
},enableInput:function(_b){
_b=_b||this.containerNode;
if(_b){
if(_b.progressNode){
_b.progressNode.style.display="none";
}
this._toggleInput(_b,true);
}
},disableInput:function(_c){
_c=_c||this.containerNode;
if(_c){
if(_c.progress){
_c.progress.update({indeterminate:true});
}
if(_c.progressNode){
_c.progressNode.style.display="";
}
this._toggleInput(_c,false);
}
},beforeSave:function(){
},protectedSave:function(){
if(!this.startAction()||!this.containerNode){
return;
}
this.beforeSave();
try{
if(this.save.apply(this,arguments)){
if(this.isActing()){
this.disableInput();
}
}else{
this.endAction();
}
}
catch(e){
console.error(e);
this.endAction();
this.enableInput();
}
},beforeComplete:function(){
},protectedComplete:function(){
var _d=false;
try{
var _e=arguments[arguments.length-1];
_e._finished=true;
this.beforeComplete();
if(_e.explicitCancel){
return;
}
_d=this.complete.apply(this,arguments);
}
finally{
if(!_d){
this.endAction();
this.enableInput();
}
}
if(_d){
this.close();
}
},createMessage:function(s,_f){
if(!_f){
return {message:s};
}
var d=document;
var el=d.createDocumentFragment();
lconn.share0.util.html.substitute(d,el,s,_f,null,this);
return {message:el};
},createFormLayout:function(d,opt){
opt=opt||{};
var el=this.formNode=d.createElement("form");
el.className=opt.useDivs?"lotusForm2":"lotusForm";
el.method="POST";
if(opt.isMultipart){
dojo.attr(el,"enctype","multipart/form-data");
dojo.attr(el,"encoding","multipart/form-data");
}
var _10=[this,this.protectedSave].concat(opt.saveArguments||[]);
dojo.connect(el,"onsubmit",dojo.hitch.apply(dojo,_10));
this.containerNode.appendChild(el);
return this[opt.useDivs?"createDivFormLayout":"createTableFormLayout"](d,el,opt);
},createDivFormLayout:function(d,el,opt){
},createTableFormLayout:function(d,el,opt){
var _11=this.table=d.createElement("table");
_11.className="lotusFormTable lotusFixedTable";
dojo.attr(_11,"border",0);
dojo.attr(_11,"cellspacing",0);
dojo.attr(_11,"cellpadding",0);
_11.width="99%";
dijit.setWaiRole(_11,"presentation");
var _12=d.createElement("tbody");
var _13=d.createElement("colgroup");
var col=d.createElement("col");
col.className="qkrInlineTC1";
_13.appendChild(col);
var col=d.createElement("col");
col.className="qkrInlineTC2";
_13.appendChild(col);
var col=d.createElement("col");
col.className="qkrInlineTC3";
_13.appendChild(col);
_11.appendChild(_13);
var tr=d.createElement("tr");
var td=this.titleNode=d.createElement("td");
td.colSpan=3;
var h2=this.titleBar=d.createElement("h2");
dijit.setWaiRole(h2,"heading");
dijit.setWaiState(h2,"level","1");
h2.appendChild(d.createTextNode(opt.title||this.nls.FORM_TITLE));
if(opt.description){
var _14=d.createElement("div");
_14.className="lotusMeta";
_14.appendChild(d.createTextNode(opt.description));
h2.appendChild(_14);
}
td.appendChild(h2);
tr.appendChild(td);
_12.appendChild(tr);
var tr=footer=d.createElement("tr");
var td=d.createElement("td");
td.className="lotusFormFooter";
td.colSpan=3;
if(opt.showProgressBar){
var _15=lconn.share0.actions.createProgressBarNode(d,null,this);
td.appendChild(_15);
}else{
var _16=this.progressNode=lconn.share0.actions.createProgressNode(d,this.nls);
td.appendChild(_16);
}
var _17=this.saveNode=d.createElement("input");
_17.className="lotusFormButton";
_17.type="submit";
_17.value=_17.title=opt.btnOk||this.nls.OK;
dijit.setWaiRole(_17,"button");
td.appendChild(_17);
if(!opt.hideCancel){
_17=this.cancelNode=d.createElement("input");
_17.className="lotusFormButton";
_17.type="button";
_17.value=_17.title=opt.btnCancel||this.nls.CANCEL;
dijit.setWaiRole(_17,"button");
dojo.connect(_17,"onclick",this,"cancel");
td.appendChild(_17);
}
tr.appendChild(td);
_12.appendChild(tr);
_11.appendChild(_12);
el.appendChild(_11);
return {form:el,footer:footer};
},onerror:function(_18){
lconn.share0.util.html.alert(this.nls.ERROR_OCCURRED);
},onsuccess:function(){
this.close();
this.onSuccess({});
},onSuccess:function(e){
}});
}


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




lconn.share0.validation.TAG_LENGTH=100;
lconn.share0.validation.FILENAME_LENGTH=252;
lconn.share0.validation.DESCRIPTION_LENGTH=1020;
lconn.share0.validation.COMMENT_LENGTH=50*1024;
lconn.share0.validation.INVALID_TITLE_CHARS=/[\\\/\:\*\?\<\>\|\[\]\"\^]/g;
lconn.share0.validation.INVALID_FILENAME_CHARS=/[\\\/\:\*\?\<\>\|\[\]\"]/g;
lconn.share0.validation.INVALID_ATTACHMENT_FILENAME_CHARS=/[\\\/\:\*\?\<\>\|\"]/g;
lconn.share0.validation.SPLIT_TAGS=/[,\s]+/;
lconn.share0.validation.validateTextLength=function(s,_1){
if(!s){
return true;
}
var _2=s.length;
var _3=lconn.share0.util.text.lengthUtf8(s);
return (_3<=_1);
};
lconn.share0.validation.addRequiredIndicator=function(el){
var d=document;
var _4=d.createElement("span");
_4.className="lotusFormRequired";
_4.appendChild(d.createTextNode("*"));
el.appendChild(_4);
};
lconn.share0.validation.addInlineErrorRow=function(_5,_6,id,_7){
var d=document;
dojo.addClass(_6,"lotusFormErrorField");
var _8=(_5.previousSibling&&dojo.hasClass(_5.previousSibling,"_qkrErrorRow"))?_5.previousSibling:null;
var _9;
if(_8){
var td=dojo.query("TD.lotusFormError",_8)[0];
var ul=td.getElementsByTagName("UL")[0];
if(!ul){
if(td.errorId==id){
return;
}
ul=d.createElement("ul");
var li=d.createElement("li");
li.errorId=td.errorId;
while(td.firstChild){
var a=td.firstChild;
td.removeChild(a);
li.appendChild(a);
}
ul.appendChild(li);
td.appendChild(ul);
td.errorId=null;
}else{
if(dojo.some(td.getElementsByTagName("li"),function(a){
return a.errorId==id;
})){
return;
}
}
var li=d.createElement("li");
ul.appendChild(li);
_9=li;
}else{
var _a=_6;
var _b;
while(_a&&!(_a.nodeName=="TR"&&dojo.hasClass(_a,"lotusFormFieldRow"))){
_b=_a;
_a=_a.parentNode;
}
var _c=lconn.share0.validation.countCells(_5);
var _d=lconn.share0.validation.countCells(_5,_b);
var _e=(isNaN(_c-_d))?0:(_c-_d);
var tr=d.createElement("tr");
tr.className="_qkrErrorRow";
dijit.setWaiRole(tr,"alert");
if(_d>0){
var td=d.createElement("td");
dojo.attr(td,"colSpan",_d);
tr.appendChild(td);
}
var td=d.createElement("td");
dojo.attr(td,"colSpan",_e);
td.className="lotusFormError";
dijit.setWaiRole(td,"alert");
tr.appendChild(td);
_5.parentNode.insertBefore(tr,_5);
_9=td;
}
_9.errorId=id;
if(dojo.isArray(_7)){
for(var i=0;i<_7.length;i++){
if(i>0){
_9.appendChild(d.createTextNode("\xa0"));
}
_9.appendChild(_7[i]);
}
}else{
if(typeof _7=="string"){
_9.appendChild(d.createTextNode(_7));
}else{
_9.appendChild(_7);
}
}
};
lconn.share0.validation.removeInlineErrorRow=function(_f,_10,id){
if(dojo.hasClass(_10,"lotusFormErrorField")){
if(id){
var _11=_f.previousSibling;
var _12=_11.getElementsByTagName("LI");
for(var i=0;i<_12.length;i++){
var li=_12[i];
if(li.errorId==id){
li.parentNode.removeChild(li);
break;
}
}
var td=dojo.query("TD.lotusFormError",_11)[0];
if(_12.length==1){
var li=_12[0];
td.errorId=li.errorId;
while(td.firstChild){
td.removeChild(td.firstChild);
}
while(li.firstChild){
var el=li.firstChild;
li.removeChild(el);
td.appendChild(el);
}
}else{
if(_12.length==0&&td.errorId==id){
dojo.removeClass(_10,"lotusFormErrorField");
_f.parentNode.removeChild(_f.previousSibling);
}
}
}else{
dojo.removeClass(_10,"lotusFormErrorField");
_f.parentNode.removeChild(_f.previousSibling);
}
}else{
if(_f.previousSibling&&dojo.hasClass(_f.previousSibling,"_qkrErrorRow")){
_f.parentNode.removeChild(_f.previousSibling);
}
}
};
lconn.share0.validation.countCells=function(tr,td){
var _13=0;
for(var i=0;i<tr.cells.length;i++){
if(td==tr.cells[i]){
break;
}
_13+=Math.max(lconn.share0.util.text.parseInt(dojo.attr(tr.cells[i],"colSpan")),1);
}
return _13;
};
lconn.share0.validation.setFormError=function(_14,_15){
var _16=dojo.query("table.lotusFormTable:first-child > tbody",_14)[0];
if(_16){
var d=document;
var div=dojo.query("tr.lotusFormErrorSummary:first-child > div",_16)[0];
if(!div){
var _17=_16.getElementsByTagName("tr")[0];
var _18=(_17?lconn.share0.validation.countCells(_17):1);
var tr=d.createElement("tr");
tr.className="lotusFormErrorSummary";
dijit.setWaiRole(tr,"alert");
var td=d.createElement("td");
dojo.attr(td,"colSpan",_18);
div=d.createElement("div");
div.className="lotusFormError";
td.appendChild(div);
tr.appendChild(td);
if(_17){
_16.insertBefore(tr,_17);
}else{
_16.appendChild(tr);
}
}else{
lconn.share0.util.html.removeChildren(div);
}
if(dojo.isArray(_15)){
for(var i=0;i<_15.length;i++){
div.appendChild(_15[i]);
}
}else{
if(typeof _15=="string"){
div.appendChild(d.createTextNode(_15));
}else{
div.appendChild(_15);
}
}
div.appendChild(d.createElement("ul"));
}
};
lconn.share0.validation.removeFormErrors=function(_19){
dojo.forEach(dojo.query("tr.lotusFormErrorSummary",_19),function(el){
el.parentNode.removeChild(el);
});
dojo.forEach(dojo.query("td.lotusFormError",_19),function(el){
el.parentNode.parentNode.removeChild(el.parentNode);
});
dojo.forEach(dojo.query(".lotusFormErrorField",_19),function(el){
dojo.removeClass(el,"lotusFormErrorField");
});
};
lconn.share0.validation.splitTags=function(_1a){
_1a=(_1a.toLowerCase()||"").replace(/["']/g,"");
var _1b=_1a.split(lconn.share0.validation.SPLIT_TAGS);
var _1c={};
return dojo.filter(_1b,function(s){
if(s.length>0&&!_1c[s]){
_1c[s]=1;
return true;
}else{
return false;
}
});
};
}


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




lconn.wikis.validation.RESERVED_TITLE=/^\s*([\.]{1,2}|.*(ibm_security_logout|j_security_check).*)\s*$/g;
lconn.wikis.validation.addRequiredIndicator=function(el){
var d=document;
var _1=d.createElement("span");
_1.className="lotusFormRequired";
_1.appendChild(d.createTextNode("*"));
el.parentNode.insertBefore(_1,el);
};
lconn.wikis.validation.addWikiTitleErrorMessage=function(_2,id,_3){
var _4=false;
var _5=_2.previousSibling;
while(!_4){
if(_5==null){
break;
}else{
if(_5.errorId==id){
_4=true;
break;
}else{
_5=_5.previousSibling;
}
}
}
if(!_4){
var d=document;
var _6=d.createElement("div");
_6.className="lotusFormError";
dijit.setWaiRole(_6,"alert");
_6.errorId=id;
_2.parentNode.insertBefore(_6,_2);
if(dojo.isArray(_3)){
for(var i=0;i<_3.length;i++){
_6.appendChild(_3[i]);
}
}else{
if(typeof _3=="string"){
_6.appendChild(d.createTextNode(_3));
}else{
_6.appendChild(_3);
}
}
}
};
lconn.wikis.validation.removeWikiTitleErrorMessage=function(_7,id){
var _8=false;
var _9=_7.previousSibling;
while(!_8){
if(_9==null){
break;
}else{
if(_9.errorId==id){
_8=true;
break;
}else{
_9=_9.previousSibling;
}
}
}
if(_8){
_7.parentNode.removeChild(_9);
}
};
lconn.wikis.validation.removeAllWikiTitleErrorMessages=function(_a,_b){
var _c=_a.previousSibling;
while(_c!=null){
var _d=null;
for(var i=0;i<_b.length;i++){
if(_c.errorId==_b[i]){
_d=_c;
break;
}
}
_c=_c.previousSibling;
if(_d!=null){
_a.parentNode.removeChild(_d);
}
}
};
lconn.wikis.validation.setFormError=function(_e,_f){
var _10=dojo.query("table.wikiPageTable:first-child > tbody",_e)[0];
if(_10){
var d=document;
var div=dojo.query("tr.lotusFormErrorSummary:first-child > div",_10)[0];
if(!div){
var _11=_10.getElementsByTagName("tr")[0];
var _12=(_11?lconn.share0.validation.countCells(_11):1);
var tr=d.createElement("tr");
tr.className="lotusFormErrorSummary";
dijit.setWaiRole(tr,"alert");
var td=d.createElement("td");
dojo.attr(td,"colSpan",_12);
div=d.createElement("div");
div.className="lotusFormRequired";
td.appendChild(div);
tr.appendChild(td);
if(_11){
_10.insertBefore(tr,_11);
}else{
_10.appendChild(tr);
}
}else{
lconn.share0.util.html.removeChildren(div);
}
dijit.setWaiRole(div,"alert");
if(dojo.isArray(_f)){
for(var i=0;i<_f.length;i++){
div.appendChild(_f[i]);
}
}else{
if(typeof _f=="string"){
div.appendChild(d.createTextNode(_f));
}else{
div.appendChild(_f);
}
}
div.appendChild(d.createElement("ul"));
}
};
}


;define("dijit/tree/TreeStoreModel",["dojo/_base/array","dojo/aspect","dojo/_base/declare","dojo/_base/lang"],function(_1,_2,_3,_4){
return _3("dijit.tree.TreeStoreModel",null,{store:null,childrenAttrs:["children"],newItemIdAttr:"id",labelAttr:"",root:null,query:null,deferItemLoadingUntilExpand:false,constructor:function(_5){
_4.mixin(this,_5);
this.connects=[];
var _6=this.store;
if(!_6.getFeatures()["dojo.data.api.Identity"]){
throw new Error("dijit.tree.TreeStoreModel: store must support dojo.data.Identity");
}
if(_6.getFeatures()["dojo.data.api.Notification"]){
this.connects=this.connects.concat([_2.after(_6,"onNew",_4.hitch(this,"onNewItem"),true),_2.after(_6,"onDelete",_4.hitch(this,"onDeleteItem"),true),_2.after(_6,"onSet",_4.hitch(this,"onSetItem"),true)]);
}
},destroy:function(){
var h;
while(h=this.connects.pop()){
h.remove();
}
},getRoot:function(_7,_8){
if(this.root){
_7(this.root);
}else{
this.store.fetch({query:this.query,onComplete:_4.hitch(this,function(_9){
if(_9.length!=1){
throw new Error("dijit.tree.TreeStoreModel: root query returned "+_9.length+" items, but must return exactly one");
}
this.root=_9[0];
_7(this.root);
}),onError:_8});
}
},mayHaveChildren:function(_a){
return _1.some(this.childrenAttrs,function(_b){
return this.store.hasAttribute(_a,_b);
},this);
},getChildren:function(_c,_d,_e){
var _f=this.store;
if(!_f.isItemLoaded(_c)){
var _10=_4.hitch(this,arguments.callee);
_f.loadItem({item:_c,onItem:function(_11){
_10(_11,_d,_e);
},onError:_e});
return;
}
var _12=[];
for(var i=0;i<this.childrenAttrs.length;i++){
var _13=_f.getValues(_c,this.childrenAttrs[i]);
_12=_12.concat(_13);
}
var _14=0;
if(!this.deferItemLoadingUntilExpand){
_1.forEach(_12,function(_15){
if(!_f.isItemLoaded(_15)){
_14++;
}
});
}
if(_14==0){
_d(_12);
}else{
_1.forEach(_12,function(_16,idx){
if(!_f.isItemLoaded(_16)){
_f.loadItem({item:_16,onItem:function(_17){
_12[idx]=_17;
if(--_14==0){
_d(_12);
}
},onError:_e});
}
});
}
},isItem:function(_18){
return this.store.isItem(_18);
},fetchItemByIdentity:function(_19){
this.store.fetchItemByIdentity(_19);
},getIdentity:function(_1a){
return this.store.getIdentity(_1a);
},getLabel:function(_1b){
if(this.labelAttr){
return this.store.getValue(_1b,this.labelAttr);
}else{
return this.store.getLabel(_1b);
}
},newItem:function(_1c,_1d,_1e){
var _1f={parent:_1d,attribute:this.childrenAttrs[0]},_20;
if(this.newItemIdAttr&&_1c[this.newItemIdAttr]){
this.fetchItemByIdentity({identity:_1c[this.newItemIdAttr],scope:this,onItem:function(_21){
if(_21){
this.pasteItem(_21,null,_1d,true,_1e);
}else{
_20=this.store.newItem(_1c,_1f);
if(_20&&(_1e!=undefined)){
this.pasteItem(_20,_1d,_1d,false,_1e);
}
}
}});
}else{
_20=this.store.newItem(_1c,_1f);
if(_20&&(_1e!=undefined)){
this.pasteItem(_20,_1d,_1d,false,_1e);
}
}
},pasteItem:function(_22,_23,_24,_25,_26){
var _27=this.store,_28=this.childrenAttrs[0];
if(_23){
_1.forEach(this.childrenAttrs,function(_29){
if(_27.containsValue(_23,_29,_22)){
if(!_25){
var _2a=_1.filter(_27.getValues(_23,_29),function(x){
return x!=_22;
});
_27.setValues(_23,_29,_2a);
}
_28=_29;
}
});
}
if(_24){
if(typeof _26=="number"){
var _2b=_27.getValues(_24,_28).slice();
_2b.splice(_26,0,_22);
_27.setValues(_24,_28,_2b);
}else{
_27.setValues(_24,_28,_27.getValues(_24,_28).concat(_22));
}
}
},onChange:function(){
},onChildrenChange:function(){
},onDelete:function(){
},onNewItem:function(_2c,_2d){
if(!_2d){
return;
}
this.getChildren(_2d.item,_4.hitch(this,function(_2e){
this.onChildrenChange(_2d.item,_2e);
}));
},onDeleteItem:function(_2f){
this.onDelete(_2f);
},onSetItem:function(_30,_31){
if(_1.indexOf(this.childrenAttrs,_31)!=-1){
this.getChildren(_30,_4.hitch(this,function(_32){
this.onChildrenChange(_30,_32);
}));
}else{
this.onChange(_30);
}
}});
});


;define("dijit/tree/ForestStoreModel",["dojo/_base/array","dojo/_base/declare","dojo/_base/kernel","dojo/_base/lang","./TreeStoreModel"],function(_1,_2,_3,_4,_5){
return _2("dijit.tree.ForestStoreModel",_5,{rootId:"$root$",rootLabel:"ROOT",query:null,constructor:function(_6){
this.root={store:this,root:true,id:_6.rootId,label:_6.rootLabel,children:_6.rootChildren};
},mayHaveChildren:function(_7){
return _7===this.root||this.inherited(arguments);
},getChildren:function(_8,_9,_a){
if(_8===this.root){
if(this.root.children){
_9(this.root.children);
}else{
this.store.fetch({query:this.query,onComplete:_4.hitch(this,function(_b){
this.root.children=_b;
_9(_b);
}),onError:_a});
}
}else{
this.inherited(arguments);
}
},isItem:function(_c){
return (_c===this.root)?true:this.inherited(arguments);
},fetchItemByIdentity:function(_d){
if(_d.identity==this.root.id){
var _e=_d.scope||_3.global;
if(_d.onItem){
_d.onItem.call(_e,this.root);
}
}else{
this.inherited(arguments);
}
},getIdentity:function(_f){
return (_f===this.root)?this.root.id:this.inherited(arguments);
},getLabel:function(_10){
return (_10===this.root)?this.root.label:this.inherited(arguments);
},newItem:function(_11,_12,_13){
if(_12===this.root){
this.onNewRootItem(_11);
return this.store.newItem(_11);
}else{
return this.inherited(arguments);
}
},onNewRootItem:function(){
},pasteItem:function(_14,_15,_16,_17,_18){
if(_15===this.root){
if(!_17){
this.onLeaveRoot(_14);
}
}
this.inherited(arguments,[_14,_15===this.root?null:_15,_16===this.root?null:_16,_17,_18]);
if(_16===this.root){
this.onAddToRoot(_14);
}
},onAddToRoot:function(_19){
console.log(this,": item ",_19," added to root");
},onLeaveRoot:function(_1a){
console.log(this,": item ",_1a," removed from root");
},_requeryTop:function(){
var _1b=this.root.children||[];
this.store.fetch({query:this.query,onComplete:_4.hitch(this,function(_1c){
this.root.children=_1c;
if(_1b.length!=_1c.length||_1.some(_1b,function(_1d,idx){
return _1c[idx]!=_1d;
})){
this.onChildrenChange(this.root,_1c);
}
})});
},onNewItem:function(_1e,_1f){
this._requeryTop();
this.inherited(arguments);
},onDeleteItem:function(_20){
if(_1.indexOf(this.root.children,_20)!=-1){
this._requeryTop();
}
this.inherited(arguments);
},onSetItem:function(_21,_22,_23,_24){
this._requeryTop();
this.inherited(arguments);
}});
});


;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/text!dijit/templates/TreeNode.html", '<div class="dijitTreeNode" role="presentation"\n	><div data-dojo-attach-point="rowNode" class="dijitTreeRow" role="presentation"\n		><span data-dojo-attach-point="expandoNode" class="dijitInline dijitTreeExpando" role="presentation"></span\n		><span data-dojo-attach-point="expandoNodeText" class="dijitExpandoText" role="presentation"></span\n		><span data-dojo-attach-point="contentNode"\n			class="dijitTreeContent" role="presentation">\n			<span role="presentation" class="dijitInline dijitIcon dijitTreeIcon" data-dojo-attach-point="iconNode"></span\n			><span data-dojo-attach-point="labelNode,focusNode" class="dijitTreeLabel" role="treeitem" tabindex="-1" aria-selected="false"></span>\n		</span\n	></div>\n	<div data-dojo-attach-point="containerNode" class="dijitTreeNodeContainer" role="presentation" style="display: none;"></div>\n</div>\n');

;define("dojo/text!dijit/templates/Tree.html", '<div role="tree">\n	<div class="dijitInline dijitTreeIndent" style="position: absolute; top: -9999px" data-dojo-attach-point="indentDetector"></div>\n	<div class="dijitTreeExpando dijitTreeExpandoLoading" data-dojo-attach-point="rootLoadingIndicator"></div>\n	<div data-dojo-attach-point="containerNode" class="dijitTreeContainer" role="presentation">\n	</div>\n</div>\n');

;define("dijit/tree/_dndContainer",["dojo/aspect","dojo/_base/declare","dojo/dom-class","dojo/_base/lang","dojo/on","dojo/touch"],function(_1,_2,_3,_4,on,_5){
return _2("dijit.tree._dndContainer",null,{constructor:function(_6,_7){
this.tree=_6;
this.node=_6.domNode;
_4.mixin(this,_7);
this.containerState="";
_3.add(this.node,"dojoDndContainer");
this.events=[on(this.node,_5.enter,_4.hitch(this,"onOverEvent")),on(this.node,_5.leave,_4.hitch(this,"onOutEvent")),_1.after(this.tree,"_onNodeMouseEnter",_4.hitch(this,"onMouseOver"),true),_1.after(this.tree,"_onNodeMouseLeave",_4.hitch(this,"onMouseOut"),true),on(this.node,"dragstart, selectstart",function(_8){
_8.preventDefault();
})];
},destroy:function(){
var h;
while(h=this.events.pop()){
h.remove();
}
this.node=this.parent=null;
},onMouseOver:function(_9){
this.current=_9;
},onMouseOut:function(){
this.current=null;
},_changeState:function(_a,_b){
var _c="dojoDnd"+_a;
var _d=_a.toLowerCase()+"State";
_3.replace(this.node,_c+_b,_c+this[_d]);
this[_d]=_b;
},_addItemClass:function(_e,_f){
_3.add(_e,"dojoDndItem"+_f);
},_removeItemClass:function(_10,_11){
_3.remove(_10,"dojoDndItem"+_11);
},onOverEvent:function(){
this._changeState("Container","Over");
},onOutEvent:function(){
this._changeState("Container","");
}});
});


;define("dijit/tree/_dndSelector",["dojo/_base/array","dojo/_base/connect","dojo/_base/declare","dojo/_base/kernel","dojo/_base/lang","dojo/dom","dojo/mouse","dojo/on","dojo/touch","../a11yclick","./_dndContainer"],function(_1,_2,_3,_4,_5,_6,_7,on,_8,_9,_a){
return _3("dijit.tree._dndSelector",_a,{constructor:function(){
this.selection={};
this.anchor=null;
this.events.push(on(this.tree.domNode,_8.press,_5.hitch(this,"onMouseDown")),on(this.tree.domNode,_8.release,_5.hitch(this,"onMouseUp")),on(this.tree.domNode,_8.move,_5.hitch(this,"onMouseMove")),on(this.tree.domNode,_9.press,_5.hitch(this,"onClickPress")),on(this.tree.domNode,_9.release,_5.hitch(this,"onClickRelease")));
},singular:false,getSelectedTreeNodes:function(){
var _b=[],_c=this.selection;
for(var i in _c){
_b.push(_c[i]);
}
return _b;
},selectNone:function(){
this.setSelection([]);
return this;
},destroy:function(){
this.inherited(arguments);
this.selection=this.anchor=null;
},addTreeNode:function(_d,_e){
this.setSelection(this.getSelectedTreeNodes().concat([_d]));
if(_e){
this.anchor=_d;
}
return _d;
},removeTreeNode:function(_f){
var _10=_1.filter(this.getSelectedTreeNodes(),function(_11){
return !_6.isDescendant(_11.domNode,_f.domNode);
});
this.setSelection(_10);
return _f;
},isTreeNodeSelected:function(_12){
return _12.id&&!!this.selection[_12.id];
},setSelection:function(_13){
var _14=this.getSelectedTreeNodes();
_1.forEach(this._setDifference(_14,_13),_5.hitch(this,function(_15){
_15.setSelected(false);
if(this.anchor==_15){
delete this.anchor;
}
delete this.selection[_15.id];
}));
_1.forEach(this._setDifference(_13,_14),_5.hitch(this,function(_16){
_16.setSelected(true);
this.selection[_16.id]=_16;
}));
this._updateSelectionProperties();
},_setDifference:function(xs,ys){
_1.forEach(ys,function(y){
y.__exclude__=true;
});
var ret=_1.filter(xs,function(x){
return !x.__exclude__;
});
_1.forEach(ys,function(y){
delete y["__exclude__"];
});
return ret;
},_updateSelectionProperties:function(){
var _17=this.getSelectedTreeNodes();
var _18=[],_19=[],_1a=[];
_1.forEach(_17,function(_1b){
var ary=_1b.getTreePath(),_1c=this.tree.model;
_19.push(_1b);
_18.push(ary);
ary=_1.map(ary,function(_1d){
return _1c.getIdentity(_1d);
},this);
_1a.push(ary.join("/"));
},this);
var _1e=_1.map(_19,function(_1f){
return _1f.item;
});
this.tree._set("paths",_18);
this.tree._set("path",_18[0]||[]);
this.tree._set("selectedNodes",_19);
this.tree._set("selectedNode",_19[0]||null);
this.tree._set("selectedItems",_1e);
this.tree._set("selectedItem",_1e[0]||null);
},onClickPress:function(e){
if(this.current&&this.current.isExpandable&&this.tree.isExpandoNode(e.target,this.current)){
return;
}
if(_7.isLeft(e)){
e.preventDefault();
}
var _20=e.type=="keydown"?this.tree.focusedChild:this.current;
if(!_20){
return;
}
var _21=_2.isCopyKey(e),id=_20.id;
if(!this.singular&&!e.shiftKey&&this.selection[id]){
this._doDeselect=true;
return;
}else{
this._doDeselect=false;
}
this.userSelect(_20,_21,e.shiftKey);
},onClickRelease:function(e){
if(!this._doDeselect){
return;
}
this._doDeselect=false;
this.userSelect(e.type=="keyup"?this.tree.focusedChild:this.current,_2.isCopyKey(e),e.shiftKey);
},onMouseMove:function(){
this._doDeselect=false;
},onMouseDown:function(){
},onMouseUp:function(){
},_compareNodes:function(n1,n2){
if(n1===n2){
return 0;
}
if("sourceIndex" in document.documentElement){
return n1.sourceIndex-n2.sourceIndex;
}else{
if("compareDocumentPosition" in document.documentElement){
return n1.compareDocumentPosition(n2)&2?1:-1;
}else{
if(document.createRange){
var r1=doc.createRange();
r1.setStartBefore(n1);
var r2=doc.createRange();
r2.setStartBefore(n2);
return r1.compareBoundaryPoints(r1.END_TO_END,r2);
}else{
throw Error("dijit.tree._compareNodes don't know how to compare two different nodes in this browser");
}
}
}
},userSelect:function(_22,_23,_24){
if(this.singular){
if(this.anchor==_22&&_23){
this.selectNone();
}else{
this.setSelection([_22]);
this.anchor=_22;
}
}else{
if(_24&&this.anchor){
var cr=this._compareNodes(this.anchor.rowNode,_22.rowNode),_25,end,_26=this.anchor;
if(cr<0){
_25=_26;
end=_22;
}else{
_25=_22;
end=_26;
}
var _27=[];
while(_25!=end){
_27.push(_25);
_25=this.tree._getNext(_25);
}
_27.push(end);
this.setSelection(_27);
}else{
if(this.selection[_22.id]&&_23){
this.removeTreeNode(_22);
}else{
if(_23){
this.addTreeNode(_22,true);
}else{
this.setSelection([_22]);
this.anchor=_22;
}
}
}
}
},getItem:function(key){
var _28=this.selection[key];
return {data:_28,type:["treeNode"]};
},forInSelectedItems:function(f,o){
o=o||_4.global;
for(var id in this.selection){
f.call(o,this.getItem(id),id,this);
}
}});
});


;define("dijit/Tree",["dojo/_base/array","dojo/aspect","dojo/_base/connect","dojo/cookie","dojo/_base/declare","dojo/Deferred","dojo/promise/all","dojo/dom","dojo/dom-class","dojo/dom-geometry","dojo/dom-style","dojo/errors/create","dojo/fx","dojo/has","dojo/_base/kernel","dojo/keys","dojo/_base/lang","dojo/on","dojo/topic","dojo/touch","dojo/when","./a11yclick","./focus","./registry","./_base/manager","./_Widget","./_TemplatedMixin","./_Container","./_Contained","./_CssStateMixin","./_KeyNavMixin","dojo/text!./templates/TreeNode.html","dojo/text!./templates/Tree.html","./tree/TreeStoreModel","./tree/ForestStoreModel","./tree/_dndSelector"],function(_1,_2,_3,_4,_5,_6,_7,_8,_9,_a,_b,_c,_d,_e,_f,_10,_11,on,_12,_13,_14,_15,_16,_17,_18,_19,_1a,_1b,_1c,_1d,_1e,_1f,_20,_21,_22,_23){
function _24(d){
return _11.delegate(d.promise||d,{addCallback:function(_25){
this.then(_25);
},addErrback:function(_26){
this.otherwise(_26);
}});
};
var _27=_5("dijit._TreeNode",[_19,_1a,_1b,_1c,_1d],{item:null,isTreeNode:true,label:"",_setLabelAttr:function(val){
this.labelNode[this.labelType=="html"?"innerHTML":"innerText" in this.labelNode?"innerText":"textContent"]=val;
this._set("label",val);
},labelType:"text",isExpandable:null,isExpanded:false,state:"NotLoaded",templateString:_1f,baseClass:"dijitTreeNode",cssStateNodes:{rowNode:"dijitTreeRow"},_setTooltipAttr:{node:"rowNode",type:"attribute",attribute:"title"},buildRendering:function(){
this.inherited(arguments);
this._setExpando();
this._updateItemClasses(this.item);
if(this.isExpandable){
this.labelNode.setAttribute("aria-expanded",this.isExpanded);
}
this.setSelected(false);
},_setIndentAttr:function(_28){
var _29=(Math.max(_28,0)*this.tree._nodePixelIndent)+"px";
_b.set(this.domNode,"backgroundPosition",_29+" 0px");
_b.set(this.rowNode,this.isLeftToRight()?"paddingLeft":"paddingRight",_29);
_1.forEach(this.getChildren(),function(_2a){
_2a.set("indent",_28+1);
});
this._set("indent",_28);
},markProcessing:function(){
this.state="Loading";
this._setExpando(true);
},unmarkProcessing:function(){
this._setExpando(false);
},_updateItemClasses:function(_2b){
var _2c=this.tree,_2d=_2c.model;
if(_2c._v10Compat&&_2b===_2d.root){
_2b=null;
}
this._applyClassAndStyle(_2b,"icon","Icon");
this._applyClassAndStyle(_2b,"label","Label");
this._applyClassAndStyle(_2b,"row","Row");
this.tree._startPaint(true);
},_applyClassAndStyle:function(_2e,_2f,_30){
var _31="_"+_2f+"Class";
var _32=_2f+"Node";
var _33=this[_31];
this[_31]=this.tree["get"+_30+"Class"](_2e,this.isExpanded);
_9.replace(this[_32],this[_31]||"",_33||"");
_b.set(this[_32],this.tree["get"+_30+"Style"](_2e,this.isExpanded)||{});
},_updateLayout:function(){
var _34=this.getParent();
if(!_34||!_34.rowNode||_34.rowNode.style.display=="none"){
_9.add(this.domNode,"dijitTreeIsRoot");
}else{
_9.toggle(this.domNode,"dijitTreeIsLast",!this.getNextSibling());
}
},_setExpando:function(_35){
var _36=["dijitTreeExpandoLoading","dijitTreeExpandoOpened","dijitTreeExpandoClosed","dijitTreeExpandoLeaf"],_37=["*","-","+","*"],idx=_35?0:(this.isExpandable?(this.isExpanded?1:2):3);
_9.replace(this.expandoNode,_36[idx],_36);
this.expandoNodeText.innerHTML=_37[idx];
},expand:function(){
if(this._expandDeferred){
return _24(this._expandDeferred);
}
if(this._collapseDeferred){
this._collapseDeferred.cancel();
delete this._collapseDeferred;
}
this.isExpanded=true;
this.labelNode.setAttribute("aria-expanded","true");
if(this.tree.showRoot||this!==this.tree.rootNode){
this.containerNode.setAttribute("role","group");
}
_9.add(this.contentNode,"dijitTreeContentExpanded");
this._setExpando();
this._updateItemClasses(this.item);
if(this==this.tree.rootNode&&this.tree.showRoot){
this.tree.domNode.setAttribute("aria-expanded","true");
}
var _38=_d.wipeIn({node:this.containerNode,duration:_18.defaultDuration});
var def=(this._expandDeferred=new _6(function(){
_38.stop();
}));
_2.after(_38,"onEnd",function(){
def.resolve(true);
},true);
_38.play();
return _24(def);
},collapse:function(){
if(this._collapseDeferred){
return _24(this._collapseDeferred);
}
if(this._expandDeferred){
this._expandDeferred.cancel();
delete this._expandDeferred;
}
this.isExpanded=false;
this.labelNode.setAttribute("aria-expanded","false");
if(this==this.tree.rootNode&&this.tree.showRoot){
this.tree.domNode.setAttribute("aria-expanded","false");
}
_9.remove(this.contentNode,"dijitTreeContentExpanded");
this._setExpando();
this._updateItemClasses(this.item);
var _39=_d.wipeOut({node:this.containerNode,duration:_18.defaultDuration});
var def=(this._collapseDeferred=new _6(function(){
_39.stop();
}));
_2.after(_39,"onEnd",function(){
def.resolve(true);
},true);
_39.play();
return _24(def);
},indent:0,setChildItems:function(_3a){
var _3b=this.tree,_3c=_3b.model,_3d=[];
var _3e=this.getChildren();
_1.forEach(_3e,function(_3f){
_1b.prototype.removeChild.call(this,_3f);
},this);
this.defer(function(){
_1.forEach(_3e,function(_40){
if(!_40._destroyed&&!_40.getParent()){
_3b.dndController.removeTreeNode(_40);
function _41(_42){
var id=_3c.getIdentity(_42.item),ary=_3b._itemNodesMap[id];
if(ary.length==1){
delete _3b._itemNodesMap[id];
}else{
var _43=_1.indexOf(ary,_42);
if(_43!=-1){
ary.splice(_43,1);
}
}
_1.forEach(_42.getChildren(),_41);
};
_41(_40);
if(_3b.persist){
var _44=_1.map(_40.getTreePath(),function(_45){
return _3b.model.getIdentity(_45);
}).join("/");
for(var _46 in _3b._openedNodes){
if(_46.substr(0,_44.length)==_44){
delete _3b._openedNodes[_46];
}
}
_3b._saveExpandedNodes();
}
_40.destroyRecursive();
}
});
});
this.state="Loaded";
if(_3a&&_3a.length>0){
this.isExpandable=true;
_1.forEach(_3a,function(_47){
var id=_3c.getIdentity(_47),_48=_3b._itemNodesMap[id],_49;
if(_48){
for(var i=0;i<_48.length;i++){
if(_48[i]&&!_48[i].getParent()){
_49=_48[i];
_49.set("indent",this.indent+1);
break;
}
}
}
if(!_49){
_49=this.tree._createTreeNode({item:_47,tree:_3b,isExpandable:_3c.mayHaveChildren(_47),label:_3b.getLabel(_47),labelType:(_3b.model&&_3b.model.labelType)||"text",tooltip:_3b.getTooltip(_47),ownerDocument:_3b.ownerDocument,dir:_3b.dir,lang:_3b.lang,textDir:_3b.textDir,indent:this.indent+1});
if(_48){
_48.push(_49);
}else{
_3b._itemNodesMap[id]=[_49];
}
}
this.addChild(_49);
if(this.tree.autoExpand||this.tree._state(_49)){
_3d.push(_3b._expandNode(_49));
}
},this);
_1.forEach(this.getChildren(),function(_4a){
_4a._updateLayout();
});
}else{
this.isExpandable=false;
}
if(this._setExpando){
this._setExpando(false);
}
this._updateItemClasses(this.item);
var def=_7(_3d);
this.tree._startPaint(def);
return _24(def);
},getTreePath:function(){
var _4b=this;
var _4c=[];
while(_4b&&_4b!==this.tree.rootNode){
_4c.unshift(_4b.item);
_4b=_4b.getParent();
}
_4c.unshift(this.tree.rootNode.item);
return _4c;
},getIdentity:function(){
return this.tree.model.getIdentity(this.item);
},removeChild:function(_4d){
this.inherited(arguments);
var _4e=this.getChildren();
if(_4e.length==0){
this.isExpandable=false;
this.collapse();
}
_1.forEach(_4e,function(_4f){
_4f._updateLayout();
});
},makeExpandable:function(){
this.isExpandable=true;
this._setExpando(false);
},setSelected:function(_50){
this.labelNode.setAttribute("aria-selected",_50?"true":"false");
_9.toggle(this.rowNode,"dijitTreeRowSelected",_50);
},focus:function(){
_16.focus(this.focusNode);
}});
if(_e("dojo-bidi")){
_27.extend({_setTextDirAttr:function(_51){
if(_51&&((this.textDir!=_51)||!this._created)){
this._set("textDir",_51);
this.applyTextDir(this.labelNode);
_1.forEach(this.getChildren(),function(_52){
_52.set("textDir",_51);
},this);
}
}});
}
var _53=_5("dijit.Tree",[_19,_1e,_1a,_1d],{baseClass:"dijitTree",store:null,model:null,query:null,label:"",showRoot:true,childrenAttr:["children"],paths:[],path:[],selectedItems:null,selectedItem:null,openOnClick:false,openOnDblClick:false,templateString:_20,persist:false,autoExpand:false,dndController:_23,dndParams:["onDndDrop","itemCreator","onDndCancel","checkAcceptance","checkItemAcceptance","dragThreshold","betweenThreshold"],onDndDrop:null,itemCreator:null,onDndCancel:null,checkAcceptance:null,checkItemAcceptance:null,dragThreshold:5,betweenThreshold:0,_nodePixelIndent:19,_publish:function(_54,_55){
_12.publish(this.id,_11.mixin({tree:this,event:_54},_55||{}));
},postMixInProperties:function(){
this.tree=this;
if(this.autoExpand){
this.persist=false;
}
this._itemNodesMap={};
if(!this.cookieName&&this.id){
this.cookieName=this.id+"SaveStateCookie";
}
this.expandChildrenDeferred=new _6();
this.pendingCommandsPromise=this.expandChildrenDeferred.promise;
this.inherited(arguments);
},postCreate:function(){
this._initState();
var _56=this;
this.own(on(this.containerNode,on.selector(".dijitTreeNode",_13.enter),function(evt){
_56._onNodeMouseEnter(_17.byNode(this),evt);
}),on(this.containerNode,on.selector(".dijitTreeNode",_13.leave),function(evt){
_56._onNodeMouseLeave(_17.byNode(this),evt);
}),on(this.containerNode,on.selector(".dijitTreeRow",_15.press),function(evt){
_56._onNodePress(_17.getEnclosingWidget(this),evt);
}),on(this.containerNode,on.selector(".dijitTreeRow",_15),function(evt){
_56._onClick(_17.getEnclosingWidget(this),evt);
}),on(this.containerNode,on.selector(".dijitTreeRow","dblclick"),function(evt){
_56._onDblClick(_17.getEnclosingWidget(this),evt);
}));
if(!this.model){
this._store2model();
}
this.own(_2.after(this.model,"onChange",_11.hitch(this,"_onItemChange"),true),_2.after(this.model,"onChildrenChange",_11.hitch(this,"_onItemChildrenChange"),true),_2.after(this.model,"onDelete",_11.hitch(this,"_onItemDelete"),true));
this.inherited(arguments);
if(this.dndController){
if(_11.isString(this.dndController)){
this.dndController=_11.getObject(this.dndController);
}
var _57={};
for(var i=0;i<this.dndParams.length;i++){
if(this[this.dndParams[i]]){
_57[this.dndParams[i]]=this[this.dndParams[i]];
}
}
this.dndController=new this.dndController(this,_57);
}
this._load();
this.onLoadDeferred=_24(this.pendingCommandsPromise);
this.onLoadDeferred.then(_11.hitch(this,"onLoad"));
},_store2model:function(){
this._v10Compat=true;
_f.deprecated("Tree: from version 2.0, should specify a model object rather than a store/query");
var _58={id:this.id+"_ForestStoreModel",store:this.store,query:this.query,childrenAttrs:this.childrenAttr};
if(this.params.mayHaveChildren){
_58.mayHaveChildren=_11.hitch(this,"mayHaveChildren");
}
if(this.params.getItemChildren){
_58.getChildren=_11.hitch(this,function(_59,_5a,_5b){
this.getItemChildren((this._v10Compat&&_59===this.model.root)?null:_59,_5a,_5b);
});
}
this.model=new _22(_58);
this.showRoot=Boolean(this.label);
},onLoad:function(){
},_load:function(){
this.model.getRoot(_11.hitch(this,function(_5c){
var rn=(this.rootNode=this.tree._createTreeNode({item:_5c,tree:this,isExpandable:true,label:this.label||this.getLabel(_5c),labelType:this.model.labelType||"text",textDir:this.textDir,indent:this.showRoot?0:-1}));
if(!this.showRoot){
rn.rowNode.style.display="none";
this.domNode.setAttribute("role","presentation");
this.domNode.removeAttribute("aria-expanded");
this.domNode.removeAttribute("aria-multiselectable");
if(this["aria-label"]){
rn.containerNode.setAttribute("aria-label",this["aria-label"]);
this.domNode.removeAttribute("aria-label");
}else{
if(this["aria-labelledby"]){
rn.containerNode.setAttribute("aria-labelledby",this["aria-labelledby"]);
this.domNode.removeAttribute("aria-labelledby");
}
}
rn.labelNode.setAttribute("role","presentation");
rn.containerNode.setAttribute("role","tree");
rn.containerNode.setAttribute("aria-expanded","true");
rn.containerNode.setAttribute("aria-multiselectable",!this.dndController.singular);
}else{
this.domNode.setAttribute("aria-multiselectable",!this.dndController.singular);
this.rootLoadingIndicator.style.display="none";
}
this.containerNode.appendChild(rn.domNode);
var _5d=this.model.getIdentity(_5c);
if(this._itemNodesMap[_5d]){
this._itemNodesMap[_5d].push(rn);
}else{
this._itemNodesMap[_5d]=[rn];
}
rn._updateLayout();
this._expandNode(rn).then(_11.hitch(this,function(){
this.rootLoadingIndicator.style.display="none";
this.expandChildrenDeferred.resolve(true);
}));
}),_11.hitch(this,function(err){
console.error(this,": error loading root: ",err);
}));
},getNodesByItem:function(_5e){
if(!_5e){
return [];
}
var _5f=_11.isString(_5e)?_5e:this.model.getIdentity(_5e);
return [].concat(this._itemNodesMap[_5f]);
},_setSelectedItemAttr:function(_60){
this.set("selectedItems",[_60]);
},_setSelectedItemsAttr:function(_61){
var _62=this;
return this.pendingCommandsPromise=this.pendingCommandsPromise.always(_11.hitch(this,function(){
var _63=_1.map(_61,function(_64){
return (!_64||_11.isString(_64))?_64:_62.model.getIdentity(_64);
});
var _65=[];
_1.forEach(_63,function(id){
_65=_65.concat(_62._itemNodesMap[id]||[]);
});
this.set("selectedNodes",_65);
}));
},_setPathAttr:function(_66){
if(_66.length){
return _24(this.set("paths",[_66]).then(function(_67){
return _67[0];
}));
}else{
return _24(this.set("paths",[]).then(function(_68){
return _68[0];
}));
}
},_setPathsAttr:function(_69){
var _6a=this;
function _6b(_6c,_6d){
var _6e=_6c.shift();
var _6f=_1.filter(_6d,function(_70){
return _70.getIdentity()==_6e;
})[0];
if(!!_6f){
if(_6c.length){
return _6a._expandNode(_6f).then(function(){
return _6b(_6c,_6f.getChildren());
});
}else{
return _6f;
}
}else{
throw new _53.PathError("Could not expand path at "+_6e);
}
};
return _24(this.pendingCommandsPromise=this.pendingCommandsPromise.always(function(){
return _7(_1.map(_69,function(_71){
_71=_1.map(_71,function(_72){
return _11.isString(_72)?_72:_6a.model.getIdentity(_72);
});
if(_71.length){
return _6b(_71,[_6a.rootNode]);
}else{
throw new _53.PathError("Empty path");
}
}));
}).then(function setNodes(_73){
_6a.set("selectedNodes",_73);
return _6a.paths;
}));
},_setSelectedNodeAttr:function(_74){
this.set("selectedNodes",[_74]);
},_setSelectedNodesAttr:function(_75){
this.dndController.setSelection(_75);
},expandAll:function(){
var _76=this;
function _77(_78){
return _76._expandNode(_78).then(function(){
var _79=_1.filter(_78.getChildren()||[],function(_7a){
return _7a.isExpandable;
});
return _7(_1.map(_79,_77));
});
};
return _24(_77(this.rootNode));
},collapseAll:function(){
var _7b=this;
function _7c(_7d){
var _7e=_1.filter(_7d.getChildren()||[],function(_7f){
return _7f.isExpandable;
}),_80=_7(_1.map(_7e,_7c));
if(!_7d.isExpanded||(_7d==_7b.rootNode&&!_7b.showRoot)){
return _80;
}else{
return _80.then(function(){
return _7b._collapseNode(_7d);
});
}
};
return _24(_7c(this.rootNode));
},mayHaveChildren:function(){
},getItemChildren:function(){
},getLabel:function(_81){
return this.model.getLabel(_81);
},getIconClass:function(_82,_83){
return (!_82||this.model.mayHaveChildren(_82))?(_83?"dijitFolderOpened":"dijitFolderClosed"):"dijitLeaf";
},getLabelClass:function(){
},getRowClass:function(){
},getIconStyle:function(){
},getLabelStyle:function(){
},getRowStyle:function(){
},getTooltip:function(){
return "";
},_onDownArrow:function(evt,_84){
var _85=this._getNext(_84);
if(_85&&_85.isTreeNode){
this.focusNode(_85);
}
},_onUpArrow:function(evt,_86){
var _87=_86.getPreviousSibling();
if(_87){
_86=_87;
while(_86.isExpandable&&_86.isExpanded&&_86.hasChildren()){
var _88=_86.getChildren();
_86=_88[_88.length-1];
}
}else{
var _89=_86.getParent();
if(!(!this.showRoot&&_89===this.rootNode)){
_86=_89;
}
}
if(_86&&_86.isTreeNode){
this.focusNode(_86);
}
},_onRightArrow:function(evt,_8a){
if(_8a.isExpandable&&!_8a.isExpanded){
this._expandNode(_8a);
}else{
if(_8a.hasChildren()){
_8a=_8a.getChildren()[0];
if(_8a&&_8a.isTreeNode){
this.focusNode(_8a);
}
}
}
},_onLeftArrow:function(evt,_8b){
if(_8b.isExpandable&&_8b.isExpanded){
this._collapseNode(_8b);
}else{
var _8c=_8b.getParent();
if(_8c&&_8c.isTreeNode&&!(!this.showRoot&&_8c===this.rootNode)){
this.focusNode(_8c);
}
}
},focusLastChild:function(){
var _8d=this._getLast();
if(_8d&&_8d.isTreeNode){
this.focusNode(_8d);
}
},_getFirst:function(){
return this.showRoot?this.rootNode:this.rootNode.getChildren()[0];
},_getLast:function(){
var _8e=this.rootNode;
while(_8e.isExpanded){
var c=_8e.getChildren();
if(!c.length){
break;
}
_8e=c[c.length-1];
}
return _8e;
},_getNext:function(_8f){
if(_8f.isExpandable&&_8f.isExpanded&&_8f.hasChildren()){
return _8f.getChildren()[0];
}else{
while(_8f&&_8f.isTreeNode){
var _90=_8f.getNextSibling();
if(_90){
return _90;
}
_8f=_8f.getParent();
}
return null;
}
},childSelector:".dijitTreeRow",isExpandoNode:function(_91,_92){
return _8.isDescendant(_91,_92.expandoNode)||_8.isDescendant(_91,_92.expandoNodeText);
},_onNodePress:function(_93,e){
_93.focus();
},__click:function(_94,e,_95,_96){
var _97=e.target,_98=this.isExpandoNode(_97,_94);
if(_94.isExpandable&&(_95||_98)){
this._onExpandoClick({node:_94});
}else{
this._publish("execute",{item:_94.item,node:_94,evt:e});
this[_96](_94.item,_94,e);
this.focusNode(_94);
}
e.stopPropagation();
e.preventDefault();
},_onClick:function(_99,e){
this.__click(_99,e,this.openOnClick,"onClick");
},_onDblClick:function(_9a,e){
this.__click(_9a,e,this.openOnDblClick,"onDblClick");
},_onExpandoClick:function(_9b){
var _9c=_9b.node;
this.focusNode(_9c);
if(_9c.isExpanded){
this._collapseNode(_9c);
}else{
this._expandNode(_9c);
}
},onClick:function(){
},onDblClick:function(){
},onOpen:function(){
},onClose:function(){
},_getNextNode:function(_9d){
_f.deprecated(this.declaredClass+"::_getNextNode(node) is deprecated. Use _getNext(node) instead.","","2.0");
return this._getNext(_9d);
},_getRootOrFirstNode:function(){
_f.deprecated(this.declaredClass+"::_getRootOrFirstNode() is deprecated. Use _getFirst() instead.","","2.0");
return this._getFirst();
},_collapseNode:function(_9e){
if(_9e._expandNodeDeferred){
delete _9e._expandNodeDeferred;
}
if(_9e.state=="Loading"){
return;
}
if(_9e.isExpanded){
var ret=_9e.collapse();
this.onClose(_9e.item,_9e);
this._state(_9e,false);
this._startPaint(ret);
return ret;
}
},_expandNode:function(_9f){
if(_9f._expandNodeDeferred){
return _9f._expandNodeDeferred;
}
var _a0=this.model,_a1=_9f.item,_a2=this;
if(!_9f._loadDeferred){
_9f.markProcessing();
_9f._loadDeferred=new _6();
_a0.getChildren(_a1,function(_a3){
_9f.unmarkProcessing();
_9f.setChildItems(_a3).then(function(){
_9f._loadDeferred.resolve(_a3);
});
},function(err){
console.error(_a2,": error loading "+_9f.label+" children: ",err);
_9f._loadDeferred.reject(err);
});
}
var def=_9f._loadDeferred.then(_11.hitch(this,function(){
var _a4=_9f.expand();
this.onOpen(_9f.item,_9f);
this._state(_9f,true);
return _a4;
}));
this._startPaint(def);
return def;
},focusNode:function(_a5){
this.focusChild(_a5);
},_onNodeMouseEnter:function(){
},_onNodeMouseLeave:function(){
},_onItemChange:function(_a6){
var _a7=this.model,_a8=_a7.getIdentity(_a6),_a9=this._itemNodesMap[_a8];
if(_a9){
var _aa=this.getLabel(_a6),_ab=this.getTooltip(_a6);
_1.forEach(_a9,function(_ac){
_ac.set({item:_a6,label:_aa,tooltip:_ab});
_ac._updateItemClasses(_a6);
});
}
},_onItemChildrenChange:function(_ad,_ae){
var _af=this.model,_b0=_af.getIdentity(_ad),_b1=this._itemNodesMap[_b0];
if(_b1){
_1.forEach(_b1,function(_b2){
_b2.setChildItems(_ae);
});
}
},_onItemDelete:function(_b3){
var _b4=this.model,_b5=_b4.getIdentity(_b3),_b6=this._itemNodesMap[_b5];
if(_b6){
_1.forEach(_b6,function(_b7){
this.dndController.removeTreeNode(_b7);
var _b8=_b7.getParent();
if(_b8){
_b8.removeChild(_b7);
}
_b7.destroyRecursive();
},this);
delete this._itemNodesMap[_b5];
}
},_initState:function(){
this._openedNodes={};
if(this.persist&&this.cookieName){
var _b9=_4(this.cookieName);
if(_b9){
_1.forEach(_b9.split(","),function(_ba){
this._openedNodes[_ba]=true;
},this);
}
}
},_state:function(_bb,_bc){
if(!this.persist){
return false;
}
var _bd=_1.map(_bb.getTreePath(),function(_be){
return this.model.getIdentity(_be);
},this).join("/");
if(arguments.length===1){
return this._openedNodes[_bd];
}else{
if(_bc){
this._openedNodes[_bd]=true;
}else{
delete this._openedNodes[_bd];
}
this._saveExpandedNodes();
}
},_saveExpandedNodes:function(){
if(this.persist&&this.cookieName){
var ary=[];
for(var id in this._openedNodes){
ary.push(id);
}
_4(this.cookieName,ary.join(","),{expires:365});
}
},destroy:function(){
if(this._curSearch){
this._curSearch.timer.remove();
delete this._curSearch;
}
if(this.rootNode){
this.rootNode.destroyRecursive();
}
if(this.dndController&&!_11.isString(this.dndController)){
this.dndController.destroy();
}
this.rootNode=null;
this.inherited(arguments);
},destroyRecursive:function(){
this.destroy();
},resize:function(_bf){
if(_bf){
_a.setMarginBox(this.domNode,_bf);
}
this._nodePixelIndent=_a.position(this.tree.indentDetector).w||this._nodePixelIndent;
this.expandChildrenDeferred.then(_11.hitch(this,function(){
this.rootNode.set("indent",this.showRoot?0:-1);
this._adjustWidths();
}));
},_outstandingPaintOperations:0,_startPaint:function(p){
this._outstandingPaintOperations++;
if(this._adjustWidthsTimer){
this._adjustWidthsTimer.remove();
delete this._adjustWidthsTimer;
}
var oc=_11.hitch(this,function(){
this._outstandingPaintOperations--;
if(this._outstandingPaintOperations<=0&&!this._adjustWidthsTimer&&this._started){
this._adjustWidthsTimer=this.defer("_adjustWidths");
}
});
_14(p,oc,oc);
},_adjustWidths:function(){
if(this._adjustWidthsTimer){
this._adjustWidthsTimer.remove();
delete this._adjustWidthsTimer;
}
this.containerNode.style.width="auto";
this.containerNode.style.width=this.domNode.scrollWidth>this.domNode.offsetWidth?"auto":"100%";
},_createTreeNode:function(_c0){
return new _27(_c0);
},focus:function(){
if(this.lastFocusedChild){
this.focusNode(this.lastFocusedChild);
}else{
this.focusFirstChild();
}
}});
if(_e("dojo-bidi")){
_53.extend({_setTextDirAttr:function(_c1){
if(_c1&&this.textDir!=_c1){
this._set("textDir",_c1);
this.rootNode.set("textDir",_c1);
}
}});
}
_53.PathError=_c("TreePathError");
_53._TreeNode=_27;
return _53;
});


;dojo.cache("com.ibm.social.layout", "widget/templates/NavigationTreeNode.html", "<div class=\"dijitTreeNode\" waiRole=\"presentation\" ><div dojoAttachPoint=\"rowNode\" class=\"dijitTreeRow\" waiRole=\"presentation\" dojoAttachEvent=\"onmouseenter:_onMouseEnter, onmouseleave:_onMouseLeave, onclick:_onClick, ondblclick:_onDblClick\" ><img src=\"${_blankGif}\" alt=\"\" dojoAttachPoint=\"expandoNode\" class=\"dijitTreeExpando\" waiRole=\"presentation\" ><span dojoAttachPoint=\"expandoNodeText\" class=\"dijitExpandoText\" waiRole=\"presentation\" ></span ><span dojoAttachPoint=\"contentNode\" class=\"dijitTreeContent\" waiRole=\"presentation\"> <img src=\"${_blankGif}\" alt=\"\" dojoAttachPoint=\"iconNode\" class=\"dijitTreeIcon\" waiRole=\"presentation\" ><a href=\"javascript:;\" dojoAttachPoint=\"labelNode\" class=\"dijitTreeLabel\" wairole=\"treeitem\" tabindex=\"-1\" waiState=\"selected-false\" dojoAttachEvent=\"onfocus:_onLabelFocus, onblur:_onLabelBlur\"></a> </span ></div> <div dojoAttachPoint=\"containerNode\" class=\"dijitTreeContainer\" waiRole=\"presentation\" style=\"display: none;\"></div></div>");

;if(!dojo._hasResource["com.ibm.social.layout.widget.NavigationTree"]){
dojo._hasResource["com.ibm.social.layout.widget.NavigationTree"]=true;
dojo.provide("com.ibm.social.layout.widget.NavigationTree");


dojo.declare("com.ibm.social.layout.widget.NavigationTree",[dijit.Tree],{persist:false,showRoot:false,openOnDblClick:true,selectOnClick:true,expandOnClick:true,_nodePixelIndent:10,constructor:function(_1){
},postCreate:function(){
dojo.addClass(this.domNode,"lotusTree");
this.inherited(arguments);
},onClick:function(_2,_3,e){
if(e){
dojo.stopEvent(e);
}
if(_3&&_3.item.url){
document.location=_3.item.url;
if(this.selectOnClick){
this.attr("lotusSelectedNode",_3);
}
}
if(this.expandOnClick&&_3.isExpandable&&!_3.isExpanded){
this._expandNode(_3);
}
return this.inherited(arguments);
},expandToPath:function(_4){
var _5=new dojo.Deferred();
if(!_4||!_4.length){
_5.error({code:"path_missing",message:"Invalid path"});
return _5;
}
this._loadDeferred.addCallback(dojo.hitch(this,function(){
if(!this.rootNode){
if(dojo.config.isDebug){
console.debug("!this.rootNode");
}
_5.error({code:"root",message:"No root node"});
return;
}
if(_4[0]!==this.rootNode.item&&(dojo.isString(_4[0])&&_4[0]!=this.model.getIdentity(this.rootNode.item))){
console.error(this,":path[0] doesn't match this.rootNode.item.  Maybe you are using the wrong tree.");
_5.error({code:"path_invalid",message:"First path segment doesn't match the root node item"});
return;
}
_4.shift();
var _6=this.rootNode;
function _7(_8){
_5.error(_8);
};
function _9(){
var _a=_4.shift(),_b=dojo.isString(_a)?_a:this.model.getIdentity(_a);
var _c=this._itemNodesMap[_b];
dojo.some(_c||[],function(n){
if(n.getParent()==_6){
_6=n;
return true;
}
return false;
});
if(_4.length){
this._expandNode(_6).addCallback(dojo.hitch(this,_9)).addErrback(_7);
}else{
_5.callback(_6);
}
};
this._expandNode(_6).addCallback(dojo.hitch(this,_9)).addErrback(_7);
}));
return _5;
},_setLotusSelectedPathAttr:function(_d){
var _e=this;
_e.expandToPath(_d).addCallback(function(_f){
_e.attr("lotusSelectedNode",_f);
}).addErrback(function(_10){
_e.attr("lotusSelectedNode",null);
});
},_getLotusSelectedPathAttr:function(){
var _11=this.attr("lotusSelectedNode");
if(!_11){
return;
}
var res=[];
while(_11&&_11!==this.rootNode){
res.unshift(_11.item);
_11=_11.getParent();
}
res.unshift(this.rootNode.item);
return res;
},_setLotusSelectedNodeAttr:function(_12){
var old=this._lotusSelectedNode;
if(old!=_12){
if(old){
if(old.rowNode){
dojo.removeClass(old.rowNode,"lotusSelected");
}
if(old.labelNode){
dijit.setWaiState(old.labelNode,"selected",false);
}
}
if(_12){
if(_12.rowNode){
dojo.addClass(_12.rowNode,"lotusSelected");
}
if(_12.labelNode){
dijit.setWaiState(_12.labelNode,"selected",true);
}
}
}
this._lotusSelectedNode=_12;
},_getLotusSelectedNodeAttr:function(){
return this._lotusSelectedNode;
},_createTreeNode:function(_13){
_13=_13||{};
_13.url=_13.url||_13.item.url||"javascript:;";
return new com.ibm.social.layout.widget.NavigationTreeNode(_13);
}});
dojo.declare("com.ibm.social.layout.widget.NavigationTreeNode",[dijit._TreeNode],{templatePath:dojo.moduleUrl("com.ibm.social.layout","widget/templates/NavigationTreeNode.html"),attributeMap:dojo.delegate(dijit._TreeNode.prototype.attributeMap,{url:{node:"labelNode",type:"attribute",attribute:"href"}}),expand:function(){
this._wipeOut&&this._wipeOut.stop();
this.isExpanded=true;
dijit.setWaiState(this.labelNode,"expanded","true");
dijit.setWaiRole(this.containerNode,"group");
dojo.addClass(this.contentNode,"dijitTreeContentExpanded");
this._setExpando();
this._updateItemClasses(this.item);
if(this==this.tree.rootNode){
dijit.setWaiState(this.tree.domNode,"expanded","true");
}
this.containerNode.style.display="";
var dfd=new dojo.Deferred();
dfd.callback();
return dfd;
},setSelected:function(_14){
var _15=this.labelNode;
_15.setAttribute("tabIndex",_14?"0":"-1");
dojo.toggleClass(this.rowNode,"dijitTreeNodeSelected",_14);
}});
}


;if(!dojo._hasResource["com.ibm.lconn.layout.page"]){
dojo._hasResource["com.ibm.lconn.layout.page"]=true;
dojo.provide("com.ibm.lconn.layout.page");






com.ibm.lconn.layout.page={scrollToY:function(y){
var x=dojo._isBodyLtr()?0:document.body.clientWidth;
window.scrollTo(x,y);
},actions:{buckets:{},add:function(_1,_2,_3){
_1=_1||null;
var _4=this.buckets[_1]=this.buckets[_1]||[];
if(_3){
_4.unshift(_2);
}else{
_4.push(_2);
}
}},communityInfo:null,setCommunityInfo:function(_5){
if(_5&&!_5.id){
throw "Community id is required";
}
this.communityInfo=_5;
},search:{init:function(f,id){
if(this.widget){
return;
}
var w=this.widget=new com.ibm.social.layout.widget.Search(f(),dojo.byId(id||"globalSearch"));
w.connect(w,"onSearch",function(_6,_7){
alert("search for '"+_6+"' in scope '"+_7.label+"'");
});
w.connect(w,"onSelect",function(_8){
alert("selected '"+_8+"'");
});
}},navigation:{show:function(){
dojo.byId("lotusMenu").style.display="";
},hide:function(){
dojo.byId("lotusMenu").style.display="none";
},init:function(_9){
if(this._tree){
this._tree.destroyRecursive();
this._tree=null;
}
_9=_9||{};
_9.model=_9.model||this._model||new dijit.tree.ForestStoreModel({store:new dojo.data.ItemFileReadStore({data:[]})});
this._tree=new com.ibm.social.layout.widget.NavigationTree(_9,dojo.byId("lotusMenuTree"));
this.show();
return this._tree;
},getTree:function(){
return this._tree;
},setModel:function(_a){
this._model=_a;
if(this._tree){
this._tree.attr("model",_a);
}
}},showLoading:function(){
dojo.addClass(document.body,"lconnHideContent");
dojo.removeClass(document.body,"lconnHideLoading");
},showContent:function(){
dojo.addClass(document.body,"lconnHideLoading");
dojo.removeClass(document.body,"lconnHideContent");
},_deferreds:{},showWhen:function(_b,id){
page.when(_b,function(){
dojo.byId(id).style.display="";
});
},ready:function(_c){
var _d=page._deferreds;
var _e=_d[_c];
if(!_e){
_e=_d[_c]=new dojo.Deferred();
}
_e.callback(true);
},when:function(_f,_10,_11){
if(!dojo.isArray(_f)){
_f=[_f];
}
var _12=[];
var map=page._deferreds;
for(var i=0,l=_f.length;i<l;i++){
var _13=_f[i];
var _14;
if(_13 instanceof dojo.Deferred){
_14=_13;
}else{
if(typeof _13=="string"){
var _15=map[_13];
if(_15){
_14=_15;
}else{
if(_13.charAt(0)=="!"){
_14=map[_13]=new dojo.Deferred();
}else{
_15=page.data[_13];
if(_15 instanceof dojo.Deferred){
_14=_15;
}else{
_14=map[_13]=new dojo.Deferred();
_14.callback(_15);
}
}
}
}
}
if(_14){
_12.push(_14);
}
}
var _16=new dojo.DeferredList(_12);
if(_11){
_16.addCallback(_10).addErrback(_11);
}else{
_16.addBoth(_10);
}
return _16;
}};
}


;if(!dojo._hasResource["lconn.wikis.action.AbstractCreateWiki"]){
dojo._hasResource["lconn.wikis.action.AbstractCreateWiki"]=true;
dojo.provide("lconn.wikis.action.AbstractCreateWiki");












dojo.declare("lconn.wikis.action.AbstractCreateWiki",null,{lastTitleChecked:null,lastTitleCheckedUnique:null,onerror:function(_1){
var d=document;
var _2;
if(_1=="ItemExists"||_1=="AccessDenied"){
lconn.share0.validation.addInlineErrorRow(this.titleRow,this.title,"duplicate",[d.createTextNode(this.nls.ERROR_TITLE_EXISTS)]);
}else{
if(_1=="cancel"){
_2=this.nls.CANCEL_ERROR;
}else{
if(_1=="timeout"){
_2=this.nls.TIMEOUT_ERROR;
}else{
if(_1=="unauthenticated"){
_2=this.nls.NOT_LOGGED_IN_ERROR;
}else{
_2=this.nls.ERROR;
}
}
}
}
if(_2){
var _3=this.dialog?this.dialog.formNode:this.formNode;
lconn.share0.validation.setFormError(_3,_2);
}
},onSuccess:function(){
if(this.wiki){
if(this.tagsSet){
this.app.tagsChanged=true;
}
this.app.navigate(this.app.routes.getWikiPageUrl(this.wiki.getLabel(),null,null));
}
},_save:function(e){
if(e){
dojo.stopEvent(e);
}
var _4=null;
var _5=null;
if(!this.validateTitle()){
com.ibm.lconn.layout.page.scrollToY(0);
dijit.focus(this.title);
return;
}
_4=this.trimTitle(false);
if(!this.validateDescription()){
com.ibm.lconn.layout.page.scrollToY(0);
dijit.focus(this.description);
return;
}
_5=this.trimDescription(false);
if(!this.validateTags()){
dijit.focus(this.tagLoc);
return;
}
this.disableInput();
var _6=lconn.share0.validation.splitTags(this.tagCombo.textbox.value);
var _7=this.membershipOptions.getUsers();
var _8=[];
for(var id in _7){
_8.push([id,_7[id][1]]);
}
var _9=this.membershipOptions.getGroups();
var _a=[];
for(var id in _9){
_a.push([id,_9[id][1],_9[id][2]]);
}
var _b=this.accessOptions;
if(_b.isPublicViewingAllowed()){
_a.push(["anonymous-user","reader",true]);
}
if(_b.isAuthenticatedEditingAllowed()){
_a.push(["all-authenticated-users","editor",true]);
}
this.title.value=lconn.share0.util.text.trim(this.title.value);
var _c=lconn.wikis.util.getWikiPostBody(null,_4?_4:this.title.value,_5?_5:this.description.value,_8,_a,_6);
this._requests.push(this.app.net.postXml({url:this.app.routes.getWikisFeedServiceUrl(),timeout:(dojo.getObject("lconn.share0.config.services.timeout.update")||10)*1000,postData:_c,detectHtmlLogin:lconn.share0.util.atom.detectLoginForMultipartResponse,headers:{"Content-Type":"application/atom+xml: charset=\"UTF-8\""},handle:dojo.hitch(this,this.protectedComplete)}));
return true;
},complete:function(_d,_e){
if(_d instanceof Error){
this.onerror(lconn.share0.util.atom.getErrorCode(_d,_e));
this.enableInput();
return false;
}else{
if(_d!=null&&lconn.share0.util.dom.isNamedNS(_d.documentElement,"redirect")){
var _f=_d.documentElement.innerHTML;
if(_f===undefined){
_f=_d.documentElement.text;
}
window.onbeforeunload=null;
window.location.href=_f;
return;
}else{
if(_d==null&&_e.xhr.responseText){
var _10=_e.xhr.responseText;
if(_10.indexOf("<redirect>")>=0&&_10.indexOf("</redirect>")>=0){
var _f=_10.substring(_10.indexOf("<redirect>")+10,_10.indexOf("</redirect>"));
window.onbeforeunload=null;
window.location.href=_f;
return;
}
}else{
var _11=this.wiki=new lconn.wikis.bean.Wiki(_d.documentElement);
this.onsuccess();
dojo.publish("lconn/wikis/wiki/created");
var e={wikiCreate:true,messages:{success:true,message:this.nls.INFO_SUCCESS}};
dojo.publish("lconn/share/action/completed",[e,this]);
return true;
}
}
}
},_titleChanged:function(){
this.titleSet=this._valueChanged(this.title);
},_descriptionChanged:function(){
this.descriptionSet=this._valueChanged(this.description);
},_tagsChanged:function(){
this.tagsSet=this._valueChanged(this.tagLoc);
},_valueChanged:function(el){
return el.defaultValue!=el.value;
},trimTitle:function(_12,e){
if(e){
dojo.stopEvent(e);
}
var el=this.title;
var _13;
var i=lconn.share0.util.text.getCharIndexForUtf8Index(el.value,this.titleMaxLength);
if(i!=-1){
_13=el.value.substring(0,i);
if(_12){
el.value=_13;
}
}
if(_12){
lconn.share0.validation.removeInlineErrorRow(this.titleRow,el,"length");
}
return _13;
},fixTitleCharacters:function(e){
if(e){
dojo.stopEvent(e);
}
var el=this.title;
el.value=el.value.replace(lconn.share0.validation.INVALID_FILENAME_CHARS,"_");
lconn.share0.validation.removeInlineErrorRow(this.titleRow,el,"chars");
},focusTitle:function(_14,e){
if(e){
dojo.stopEvent(e);
}
if(_14){
lconn.share0.validation.removeInlineErrorRow(this.titleRow,this.title,"empty");
}
this.title.focus();
},validateTitle:function(_15,e){
if(dojo.isFF&&!_15&&e&&e.type=="change"&&e.explicitOriginalTarget&&e.explicitOriginalTarget==this.saveNode){
dojo.stopEvent(e);
return;
}
var el=this.title;
if(!el){
return true;
}
var d=document;
var _16=true;
if((!e||e.keyCode==dojo.keys.BACKSPACE||e.keyCode==dojo.keys.CLEAR||e.keyCode==dojo.keys.DELETE)&&lconn.share0.util.text.trim(el.value).length==0){
var _17=[d.createTextNode(this.nls.ERROR_EMPTY_TITLE)];
var a=d.createElement("a");
a.href="javascript:;";
dojo.connect(a,"onclick",dojo.hitch(this,this.focusTitle,true));
a.appendChild(d.createTextNode(this.nls.ERROR_PROVIDE_TITLE));
_17.push(a);
lconn.share0.validation.addInlineErrorRow(this.titleRow,el,"empty",_17);
this.setAriaInvalid();
_16=false;
}else{
lconn.share0.validation.removeInlineErrorRow(this.titleRow,el,"empty");
}
if(!lconn.share0.validation.validateTextLength(el.value,this.titleMaxLength)){
var _17=[d.createTextNode(this.nls.ERROR_TITLE_TOO_LONG)];
var a=d.createElement("a");
a.href="javascript:;";
dojo.connect(a,"onclick",dojo.hitch(this,this.trimTitle,true));
a.appendChild(d.createTextNode(this.nls.ERROR_SHORTEN_TITLE));
_17.push(a);
lconn.share0.validation.addInlineErrorRow(this.titleRow,el,"length",_17);
this.setAriaInvalid();
_16=false;
}else{
lconn.share0.validation.removeInlineErrorRow(this.titleRow,el,"length");
}
if(el.value.match(lconn.share0.validation.INVALID_FILENAME_CHARS)){
var _17=[d.createTextNode(this.nls.WARN_INVALID_CHARS_IN_TITLE)];
var a=d.createElement("a");
a.href="javascript:;";
dojo.connect(a,"onclick",this,"fixTitleCharacters");
a.appendChild(d.createTextNode(this.nls.FIX_INVALID_CHARS_IN_TITLE));
_17.push(a);
lconn.share0.validation.addInlineErrorRow(this.titleRow,el,"chars",_17);
this.setAriaInvalid();
_16=false;
}else{
lconn.share0.validation.removeInlineErrorRow(this.titleRow,el,"chars");
}
if(el.value.match(lconn.wikis.validation.RESERVED_TITLE)){
var _17=[d.createTextNode(this.nls.WARN_RESERVED_TITLE)];
var a=d.createElement("a");
a.href="javascript:;";
dojo.connect(a,"onclick",this,"fixReservedTitle");
a.appendChild(d.createTextNode(this.nls.FIX_RESERVED_TITLE));
_17.push(a);
lconn.share0.validation.addInlineErrorRow(this.titleRow,el,"reserved",_17);
this.setAriaInvalid();
_16=false;
}else{
lconn.share0.validation.removeInlineErrorRow(this.titleRow,el,"reserved");
}
if(_16&&!(_15||this.skipDuplicateTitleCheck)&&lconn.share0.util.text.trim(el.value).length>0){
var _18;
this.app.net.headXml({url:this.app.routes.getWikiEntryServiceUrl(el.value),handle:function(r,i){
_18=i.xhr.status;
},sync:true,auth:{preventReload:true}});
this.lastTitleChecked=el.value;
if(_18==200){
var _17=[d.createTextNode(this.nls.ERROR_TITLE_EXISTS)];
lconn.share0.validation.addInlineErrorRow(this.titleRow,el,"duplicate",_17);
this.setAriaInvalid();
this.lastTitleCheckedUnique=false;
}else{
this.lastTitleCheckedUnique=true;
lconn.share0.validation.removeInlineErrorRow(this.titleRow,el,"duplicate");
}
}
if(el.value===this.lastTitleChecked){
_16=_16&&this.lastTitleCheckedUnique;
}else{
this.lastTitleChecked=this.lastTitleCheckedUnique=null;
lconn.share0.validation.removeInlineErrorRow(this.titleRow,el,"duplicate");
}
return _16;
},fixReservedTitle:function(e){
if(e){
dojo.stopEvent(e);
}
var el=this.title;
el.value=el.defaultValue;
lconn.share0.validation.removeInlineErrorRow(this.titleRow,el,"reserved");
},trimDescription:function(_19,e){
if(e){
dojo.stopEvent(e);
}
var el=this.description;
var _1a;
var i=lconn.share0.util.text.getCharIndexForUtf8Index(el.value,lconn.share0.validation.DESCRIPTION_LENGTH);
if(i!=-1){
_1a=el.value.substring(0,i);
if(_19){
el.value=_1a;
}
}
if(_19){
lconn.share0.validation.removeInlineErrorRow(this.descriptionRow,el,"length");
}
return _1a;
},validateDescription:function(e){
if(e){
dojo.stopEvent(e);
}
var el=this.description;
var d=document;
if(!lconn.share0.validation.validateTextLength(el.value,lconn.share0.validation.DESCRIPTION_LENGTH)){
var _1b=[d.createTextNode(this.nls.ERROR_DESCRIPTION_TOO_LONG)];
var a=d.createElement("a");
a.href="javascript:;";
dojo.connect(a,"onclick",dojo.hitch(this,this.trimDescription,true));
a.appendChild(d.createTextNode(this.nls.ERROR_SHORTEN_DESCRIPTION));
_1b.push(a);
lconn.share0.validation.addInlineErrorRow(this.descriptionRow,el,"length",_1b);
var _1c=d.getElementById("createWiki_description");
dijit.setWaiState(this.description,"invalid","true");
return false;
}else{
lconn.share0.validation.removeInlineErrorRow(this.descriptionRow,el,"length");
}
return true;
},validateTags:function(_1d,e){
if(e){
dojo.stopEvent(e);
}
var _1e=true;
if(this.tagCombo){
var d=document;
var el=this.tagCombo.textbox;
var _1f=lconn.share0.validation.splitTags(el.value);
var _20=[];
var _21=this.nls.WARN_LONG_TAG;
dojo.forEach(_1f,function(tag,i){
if(!lconn.share0.validation.validateTextLength(tag,lconn.share0.validation.TAG_LENGTH)){
_20.push(d.createTextNode(dojo.string.substitute(_21,[lconn.share0.util.text.trimToLength(tag,10)])));
_1e=false;
}
});
this.tagCombo.staticClass="lotusText";
lconn.share0.validation.removeInlineErrorRow(this.tagsRow,el,"length");
if(!_1e){
var _22=_20.length>1;
if(_22){
_20=[d.createTextNode(this.nls.WARN_LONG_TAGS)];
}
_20.push(d.createTextNode(" "));
var a=d.createElement("a");
a.href="javascript:;";
dojo.connect(a,"onclick",this,"trimTags");
a.appendChild(d.createTextNode(_22?this.nls.TRIM_TAGS:this.nls.TRIM_TAG));
_20.push(a);
this.tagCombo.staticClass="lotusText lotusFormErrorField";
lconn.share0.validation.addInlineErrorRow(this.tagsRow,el,"length",_20);
var _23=d.getElementById(_1d);
dijit.setWaiState(_23,"invalid","true");
dijit.focus(a);
}
}
return _1e;
},trimTags:function(e){
if(e){
dojo.stopEvent(e);
}
if(this.tagCombo){
var el=this.tagCombo.textbox;
var _24=lconn.share0.validation.splitTags(el.value);
_24=dojo.map(_24,function(tag){
var i=lconn.share0.util.text.getCharIndexForUtf8Index(tag,lconn.share0.validation.TAG_LENGTH);
if(i!=-1){
tag=tag.substring(0,i);
}
return tag;
});
el.value=_24.join(" ");
this.tagCombo.staticClass="lotusText";
lconn.share0.validation.removeInlineErrorRow(this.tagsRow,el,"length");
}
},getMembershipOptions:function(){
return {canChangeVisibility:false,canShareWithEdit:false,canPropagate:false,groupsEnabled:!dojo.getObject("lconn.share0.config.disableGroups"),ownerId:this.ownerId,authenticatedUser:this.app.authenticatedUser,startCollapsed:false,renderTip:dojo.partial(lconn.share0.scenes.createHelpLink,this.app),topicShareWith:"wiki.addmembers",wInput:this.wInput,wInputUser:this.wInputUser,_strings:this.app.nls.MEMBERSHIP_OPTIONS,_userstrings:this.app.nls.USERSEARCH,peopleStore:this.peopleStore,groupStore:this.groupStore,defaultUsers:{},defaultGroups:{},defaultRole:"editor",app:this.app};
},setAriaInvalid:function(){
dijit.setWaiState(this.title,"invalid","true");
}});
}


;if(!dojo._hasResource["lconn.share0.widget.ShareOptions"]){
dojo._hasResource["lconn.share0.widget.ShareOptions"]=true;
dojo.provide("lconn.share0.widget.ShareOptions");










dojo.declare("lconn.share0.widget.ShareOptions",[dijit._Widget],{canShareWithEdit:false,canChangeVisibility:false,canPropagate:false,isPublic:false,ownerId:null,authenticatedUser:null,startCollapsed:false,showFavorites:false,users:null,availableUsers:null,_strings:{},stylesImageUri:(dojo.getObject("lconn.share0.config.baseCommonUri")||"/")+"styles/images/",postMixInProperties:function(){
this.users={};
this.availableUsers={};
this.isCollapsed=this.startCollapsed;
},buildRendering:function(){
var _1=this.canShareWithEdit;
var _2=this.canChangeVisibility;
var _3=this.canPropagate;
var _4=this.isCollapsed;
var _5=this.isPublic;
this.trLast=this.trFirst=this.userNode=this.canContributeNode=this.canPropagateNode=this.summaryNode=this.displayPropagateNode=null;
var d=document;
var _6=this.domNode=this.trFirst=this.srcNodeRef;
var el=_6.parentNode;
while(_6.firstChild){
_6.removeChild(_6.firstChild);
}
_6.style.display=(_4)?"":"none";
var td=d.createElement("td");
td.className="lotusFormLabel";
td.style.width="15%";
_6.appendChild(td);
var td=d.createElement("td");
var a=d.createElement("a");
a.href="javascript:;";
a.appendChild(d.createTextNode(this._strings.EXPAND_SECTION));
dojo.connect(a,"onclick",this,this.toggleShareSection);
td.appendChild(a);
_6.appendChild(td);
var tr=d.createElement("tr");
tr.style.display=(_4)?"none":"";
tr.className="lotusFormFieldRow";
var td=d.createElement("td");
td.style.width="18%";
td.className="lotusFormLabel";
var _7=d.createElement("label");
if(!this.startCollapsed){
lconn.share0.validation.addRequiredIndicator(_7);
}
_7.appendChild(d.createTextNode(this._strings.SELECT_USER));
td.appendChild(_7);
tr.appendChild(td);
var td=d.createElement("td");
var ul=this.userNode=d.createElement("ul");
ul.style.display="none";
ul.className="qkrInlineSelection lotusInlinelist";
if(this.wInput){
ul.style.width=this.wInput;
}
td.appendChild(ul);
var _8=d.createElement("input");
var _9=lconn.share0.util.html.createTable(d,_8);
_9.style.width="97%";
var _a=lconn.core0.PeopleTypeAhead.getUserTypeAheadArguments(this.peopleStore,{_strings:(this._appstrings)?this._appstrings.USERSEARCH:this._userstrings,id:this.id+"_selectUser",name:"_shareFileActionDialogSelectUser",size:"30","class":"lotusText",multipleValues:false});
var _b=this.peopleCombo=new lconn.core0.PeopleTypeAhead(_a,_8);
if(dojo.isIE&&this.wInputUser){
_b.textbox.style.width=this.wInputUser;
}
dojo.connect(_b,"onSelect",this,"selectUser");
if(this.showFavorites){
var _c=_9.firstChild.firstChild;
var _d=d.createElement("td");
_d.style.verticalAlign="top";
var a=d.createElement("a");
a.href="javascript:;";
a.title=this._strings.ADD_FROM_FAVORITES;
var _e=d.createElement("img");
_e.src=dijit._Widget.prototype._blankGif;
_e.className="otherPeople16 otherPeople16-NoPhotoGroup16";
_e.alt="";
a.appendChild(_e);
dojo.connect(a,"onclick",this,"toggleFavorites");
_d.appendChild(a);
_c.appendChild(_d);
}
td.appendChild(_9);
tr.appendChild(td);
if(this.showFavorites&&this.topicShareWith&&this.renderTip){
var td=d.createElement("td");
this.renderTip(td,this.topicShareWith);
tr.appendChild(td);
}
el.appendChild(tr);
if(_1){
var tr=d.createElement("tr");
tr.style.display=(_4)?"none":"";
tr.className="lotusFormFieldRow";
var td=d.createElement("td");
td.className="lotusFormLabel";
tr.appendChild(td);
var td=d.createElement("td");
var _8=this.canContributeNode=d.createElement("input");
_8.type="checkbox";
_8.checked=_8.defaultChecked=false;
_8.className="lotusCheckbox";
_8.id=this.id+"_canContribute";
_8.name="_canContribute";
td.appendChild(_8);
var _7=d.createElement("label");
_7.className="lotusCheckbox";
_7.appendChild(d.createTextNode(this._strings.SHARE_PERMISSION));
_7.setAttribute("for",_8.id);
td.appendChild(_7);
tr.appendChild(td);
if(this.topicPermission&&this.renderTip){
var td=d.createElement("td");
this.renderTip(td,this.topicPermission);
tr.appendChild(td);
}
el.appendChild(tr);
}
var tr=this.trLast=d.createElement("tr");
tr.style.display=(_4)?"none":"";
tr.className="lotusFormFieldRow";
var td=d.createElement("td");
td.className="lotusFormLabel";
var _7=d.createElement("label");
_7.appendChild(d.createTextNode(this._strings.MESSAGE_LABEL));
td.appendChild(_7);
tr.appendChild(td);
var td=d.createElement("td");
var _f=this.summaryNode=d.createElement("textarea");
_f.className="lotusText";
if(dojo.isIE&&this.wInput){
_f.style.width=this.wInput;
}
td.appendChild(_f);
tr.appendChild(td);
el.appendChild(tr);
var tr=this.trLast=d.createElement("tr");
tr.style.display=(_4)?"none":"";
tr.className="lotusFormFieldRow";
var td=d.createElement("td");
td.className="lotusFormLabel";
tr.appendChild(td);
var td=d.createElement("td");
if(_2){
var div=this.changePropagateNode=d.createElement("div");
div.style.display=(!_5)?"":"none";
var _8=this.canPropagateNode=d.createElement("input");
_8.type="checkbox";
_8.checked=_8.defaultChecked=_3;
_8.className="lotusCheckbox";
_8.id=this.id+"_canPropagate";
_8.name="_canPropagate";
div.appendChild(_8);
var _7=d.createElement("label");
_7.className="lotusCheckbox";
_7.appendChild(d.createTextNode(this._strings.PROPAGATE));
_7.setAttribute("for",_8.id);
div.appendChild(_7);
td.appendChild(div);
}
var div=this.displayPropagateNode=d.createElement("div");
if(_2){
div.style.display=(_2)?"none":"";
}
var _10=d.createElement("span");
var _11=this._strings.PROPAGATE_OWNER;
if(_5){
_11=this._strings.PROPAGATE_PUBLIC;
}else{
if(_3){
_11=this._strings.PROPAGATE_SHARED;
}
}
_10.appendChild(d.createTextNode(_11));
div.appendChild(_10);
td.appendChild(div);
tr.appendChild(td);
if(this.changePropagate&&this.topicPropagation&&this.renderTip){
var td=d.createElement("td");
this.renderTip(td,this.topicPropagation);
tr.appendChild(td);
}
el.appendChild(tr);
},hasUsers:function(){
var _12=false;
for(var key in this.users){
_12=true;
break;
}
return _12;
},getUsers:function(){
return dojo.clone(this.users);
},getUserList:function(){
var a=[];
for(var key in this.users){
a.push(this.users[key]);
}
return a;
},getDescription:function(){
return (this.summaryNode)?this.summaryNode.value:"";
},isContributionAllowed:function(){
return (this.canContributeNode)?this.canContributeNode.checked:this.canShareWithEdit;
},isPropagationAllowed:function(){
return (this.canPropagateNode)?this.canPropagateNode.checked:this.canPropagate;
},hasUserChangedFields:function(){
if(this.canContributeNode&&this.canContributeNode.checked!=false){
return true;
}
if(this.summaryNode&&this.summaryNode.value!=""){
return true;
}
if(this.canPropagateNode&&this.canPropagateNode.checked!=this.canPropagate){
return true;
}
if(this.hasUsers()){
return true;
}
return false;
},reset:function(_13,_14){
var _15={canShareWithEdit:this.canShareWithEdit,canChangeVisibility:this.canChangeVisibility,isPublic:this.isPublic,showPropagate:this.showPropagate,owner:this.owner,canPropagate:this.canPropagate};
for(var key in _15){
if(_13[key]!=_15[key]){
_15[key]=_13[key];
}
}
lconn.share0.util.misc.destroy(this.peopleCombo);
this.peopleCombo=null;
var tr=this.trFirst.nextSibling;
while(tr){
var _16=tr.nextSibling;
tr.parentNode.removeChild(tr);
if(tr==this.trLast){
break;
}
tr=_16;
}
dojo.mixin(this,_15);
this.isCollapsed=this.startCollapsed;
this.users={};
this.buildRendering();
},changeVisibility:function(_17){
this.isPublic=_17;
var _18=this.canChangeVisibility;
var _19=this._strings.PROPAGATE_OWNER;
if(_17){
_19=this._strings.PROPAGATE_PUBLIC;
}else{
if(_18){
_19=this._strings.PROPAGATE_SHARED;
}
}
var d=document;
var _1a=this.displayPropagateNode.firstChild;
_1a.removeChild(_1a.firstChild);
_1a.appendChild(d.createTextNode(_19));
if(this.changePropagateNode){
this.changePropagateNode.style.display=(_18&&!_17)?"":"none";
}
this.displayPropagateNode.style.display=(_18&&!_17)?"none":"";
this.onResize();
},toggleShareSection:function(){
this.isCollapsed=false;
this.updateShareType();
},updateShareType:function(){
var d=document;
var el=this.domNode;
var _1b=this.formNode;
this.userNode.style.display="none";
var tr=this.trFirst;
tr.style.display=(this.isCollapsed)?"":"none";
tr=tr.nextSibling;
while(tr){
tr.style.display=(this.isCollapsed)?"none":"";
if(tr==this.trLast){
break;
}
tr=tr.nextSibling;
}
this.onResize();
},onResize:function(){
},selectUser:function(_1c,e){
if(e){
dojo.stopEvent(e);
}
var id=_1c.id;
var _1d=_1c.name;
var d=document;
var _1e=dojo.query(".lotusFormError",this.trFirst)[0];
if(_1e){
_1e.parentNode.removeChild(_1e);
}
if(this.authenticatedUser&&id==this.authenticatedUser.id){
_1e=d.createElement("span");
_1e.className="lotusFormError";
_1e.setAttribute("style","padding-left: 10px; padding-right: 10px;");
_1e.appendChild(d.createTextNode(this._strings.SELF_REFERENCE_ERROR));
this.trFirst.getElementsByTagName("label")[0].appendChild(_1e);
}else{
if(this.ownerId&&id==this.ownerId){
_1e=d.createElement("span");
_1e.className="lotusFormError";
_1e.setAttribute("style","padding-left: 10px; padding-right: 10px;");
_1e.appendChild(d.createTextNode(this._strings.OWNER_REFERENCE_ERROR));
this.trFirst.getElementsByTagName("label")[0].appendChild(_1e);
}else{
if(!this.users[id]){
this.users[id]=_1d;
var ul=this.userNode;
ul.style.display="";
var li=d.createElement("li");
li.userId=id;
if(!ul.firstChild){
li.className="lotusFirst";
}
var a=d.createElement("a");
a.appendChild(d.createTextNode(_1d));
a.href="javascript:;";
a.title=this._strings.REMOVE_USER_TOOLTIP;
var img=d.createElement("img");
img.src=dijit._Widget.prototype._blankGif;
img.className="otherFramework16 otherFramework16-DeleteDark12";
img.alt="";
a.appendChild(img);
dojo.connect(a,"onclick",dojo.hitch(this,this.removeUser,id));
li.appendChild(a);
ul.appendChild(li);
ul.appendChild(d.createTextNode(" "));
}
}
}
this.peopleCombo.setValue("");
},removeUser:function(_1f,e){
if(e){
dojo.stopEvent(e);
}
var id=(typeof _1f=="string")?_1f:((typeof _1f=="object")?_1f.id:null);
var _20=this.userNode;
for(var i=0,_21;_21=_20.childNodes[i];i++){
if(_21.nodeType==1&&_21.userId==id){
_20.removeChild(_21);
delete this.users[id];
break;
}
}
if(_20.childNodes.length==0){
_20.style.display="none";
}
},toggleFavorites:function(){
},showFavorites:function(){
},hideFavorites:function(){
}});
}


;if(!dojo._hasResource["lconn.share0.widget.PeopleTypeAheadMenu"]){
dojo._hasResource["lconn.share0.widget.PeopleTypeAheadMenu"]=true;
dojo.provide("lconn.share0.widget.PeopleTypeAheadMenu");


dojo.declare("lconn.share0.widget.PeopleTypeAheadMenu",[lconn.core0.PeopleTypeAheadMenu],{createOptions:function(_1,_2,_3){
this.clearResultList();
this.previousButton.style.display=(!_2.start||_2.start==0)?"none":"";
dojo.attr(this.previousButton,"id",this.id+"_prev");
dojo.forEach(_1,function(_4,i){
if(_2.count&&i>=_2.count){
return;
}
var _5=this._createOption(_4,_3);
if(_4.userState=="inactive"){
_5.className="dijitMenuItemDisabled";
}else{
_5.className="dijitMenuItem";
}
dojo.attr(_5,"id",this.id+i);
this.domNode.insertBefore(_5,this.nextButton);
},this);
this.nextButton.style.display=(_2.count&&_2.count<_1.length)?"":"none";
dojo.attr(this.nextButton,"id",this.id+"_next");
var el=this.resultsNode;
if(_1.length==0){
var _6=dojo.string.substitute(this._strings.NO_RESULTS,[_2.query]);
while(el.firstChild){
el.removeChild(el.firstChild);
}
el.appendChild(document.createTextNode(_6));
el.item=_6;
this.domNode.insertBefore(el,this.nextButton);
}
if(!_2.queryOptions.searchDirectory&&_2.searchType!="directory"){
this.domNode.insertBefore(this.searchButton,this.nextButton);
}
}});
}


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




dojo.declare("lconn.share0.widget.PeopleTypeAhead",[lconn.core0.PeopleTypeAhead],{_selectOption:function(_1){
if(_1&&!this.noUpdateOnSelect){
this._announceOption(_1);
}
var _2=this.dropDown.items[_1.getAttribute("item")];
if(_2&&_2.userState=="inactive"){
return;
}
this._hideResultList();
this._setCaretPos(this.focusNode,this.focusNode.value.length);
if(_1&&_2){
this.onSelect(_2);
}
dijit.form._FormValueWidget.prototype._setValueAttr.call(this,this.value,true);
},formatItem:function(_3,_4){
var _5="";
if(_3){
if(_3.userState==="inactive"){
if(_3.name.indexOf(",")!=-1&&_3.name.length>1&&_3.name[0]!="\""&&_3.name[_3.name.length-1]!="\""){
if(_4){
_5+="&quot;"+this._htmlify(_3.name)+"&quot;"+this._strings.INACTIVE;
}else{
_5+="\""+_3.name+"\" "+this._strings.INACTIVE;
}
}else{
if(_4){
_5+=""+this._htmlify(_3.name)+" "+this._strings.INACTIVE;
}else{
_5+=""+_3.name+""+this._strings.INACTIVE;
}
}
if(_3.email){
if(_4){
_5+=" &lt;"+this._htmlify(_3.email)+"&gt;&lrm;&nbsp;"+this._strings.INACTIVE;
}else{
_5+=" <"+_3.email+">\u200e "+this._strings.INACTIVE;
}
}
return _5;
}else{
_5=this.inherited(arguments);
if(_3.email){
if(_4){
_5+=" &lt;"+this._htmlify(_3.email)+"&gt;&lrm;";
}else{
_5+=" <"+_3.email+">\u200e";
}
}
return _5;
}
}else{
return _5;
}
}});
lconn.share0.widget.PeopleTypeAhead.getUserTypeAheadArguments=function(_6,_7){
var _8={nameAttr:"name",minChars:2,searchDelay:400,pageSize:25,multipleValues:false,store:_6,noUpdateOnSelect:true,"class":""};
if(_7){
dojo.mixin(_8,_7);
}
return _8;
};
}


;if(!dojo._hasResource["lconn.wikis.widget.MembershipOptions"]){
dojo._hasResource["lconn.wikis.widget.MembershipOptions"]=true;
dojo.provide("lconn.wikis.widget.MembershipOptions");












dojo.declare("lconn.wikis.widget.MembershipOptions",[lconn.share0.widget.ShareOptions],{includeMessage:false,groups:null,groupsEnabled:true,helpTopicUsers:"",helpTopicGroups:"",useDivs:true,editorCount:-1,ariaStringRoles:{"manager":"OWNER","reader":"READER","editor":"EDITOR","contributor":"CONTRIBUTOR"},ariaMemberLabel:null,postMixInProperties:function(){
this.inherited(arguments);
this._initUsersAndGroups();
},_initUsersAndGroups:function(){
this.users=(this.defaultUsers)?dojo.clone(this.defaultUsers):{};
if(this.groupsEnabled){
this.groups=(this.defaultGroups)?dojo.clone(this.defaultGroups):{};
}
this.roles={"manager":this._strings.ROLE_OWNER,"editor":this._strings.ROLE_EDITOR,"reader":this._strings.ROLE_READER};
},buildRendering:function(){
var _1=this.app;
var d=_1.document;
this.rowNode=null;
this.roleNodes=[];
var _2=this.rowNode=this.domNode=this.srcNodeRef;
var el=_2.parentNode;
while(_2.firstChild){
_2.removeChild(_2.firstChild);
}
var _3={};
if(this.useDivs){
_3=this.renderDivLayout();
}else{
_3=this.renderTableLayout();
}
var _4=_3.userLabel;
_4.appendChild(d.createTextNode(this._strings.USERS_LABEL));
_4.setAttribute("for",this.id+"_userTextbox");
var _5=_3.userHelp;
lconn.share0.scenes.createHelpLink(_1,_5,"wiki.addmembers");
var _6=_3.userNode;
var _7=this.userRoleSel=d.createElement("select");
_7.className="wikiRoles";
_7.id="qkrMemRoleSel";
_7.style.display="inline";
dijit.setWaiState(_7,"label",_1.nls.ACCESSIBILITY.LABELS.MEMBERS.ROLE);
var _8=0;
var _9=this.roles;
for(var _a in _9){
_7.options[_8]=new Option(_9[_a],_a);
if(_a==this.defaultRole){
_7.selectedIndex=_8;
}
_8++;
}
var _b=lconn.share0.util.html.createTable(d,_7);
_b.style.width="100%";
if(dojo.isIE){
_7.parentNode.setAttribute("width","10%");
}
var _c=_b.firstChild.firstChild;
var _d=d.createElement("td");
_d.setAttribute("width","97%");
var _e=d.createElement("label");
_e.className="lotusOffScreen";
_e.appendChild(d.createTextNode(_1.nls.ACCESSIBILITY.LABELS.MEMBERS.USERS_COMBOBOX_DESC));
_e.id=this.id+"_userInputDescLabel";
_d.appendChild(_e);
var _f=d.createElement("input");
_d.appendChild(_f);
_c.appendChild(_d);
var _10=lconn.share0.widget.PeopleTypeAhead.getUserTypeAheadArguments(this.peopleStore,{_strings:(this._appstrings)?this._appstrings.USERSEARCH:this._userstrings,id:this.id+"_selectUser",name:"_membersDialogSelectUser",size:"30","class":"lotusText wikiMembers",multipleValues:false});
var _11=this.peopleCombo=new lconn.share0.widget.PeopleTypeAhead(_10,_f);
this.peopleCombo._setBlurValue=function(){
this.attr("displayedValue","");
};
if(dojo.isIE&&this.wInputUser){
_11.textbox.style.width=this.wInputUser;
}
_11.textbox.id=this.id+"_userTextbox";
dijit.setWaiState(_11.textbox,"label",_1.nls.ACCESSIBILITY.LABELS.MEMBERS.USERS_COMBOBOX);
dijit.setWaiState(_11.textbox,"describedBy",this.id+"_userInputDescLabel");
dojo.connect(_11,"onSelect",this,"selectUser");
_6.appendChild(_b);
if(this.groupsEnabled){
var _12=_3.groupLabel;
_12.appendChild(d.createTextNode(this._strings.GROUPS_LABEL));
_12.setAttribute("for",this.id+"_groupTextbox");
var _13=_3.groupHelp;
lconn.share0.scenes.createHelpLink(_1,_13,"wiki.addmembers");
var _14=_3.groupNode;
var _15=this.groupRoleSel=d.createElement("select");
_15.className="wikiRoles";
_15.id="qkrGroupRoleSel";
_15.style.display="inline";
dijit.setWaiState(_15,"label",_1.nls.ACCESSIBILITY.LABELS.GROUP.ROLE);
var _8=0;
var _9=this.roles;
for(var _a in _9){
_15.options[_8]=new Option(_9[_a],_a);
if(_a==this.defaultRole){
_15.selectedIndex=_8;
}
_8++;
}
var _16=lconn.share0.util.html.createTable(d,_15);
_16.style.width="100%";
_16.summary=this._strings.GROUPS_LINK;
if(dojo.isIE){
_15.parentNode.setAttribute("width","10%");
}
var _17=_16.firstChild.firstChild;
var _18=d.createElement("td");
_18.setAttribute("width","97%");
var _19=d.createElement("label");
_19.className="lotusOffScreen";
_19.appendChild(d.createTextNode(_1.nls.ACCESSIBILITY.LABELS.MEMBERS.GROUPS_COMBOBOX_DESC));
_19.id=this.id+"_groupInputDescLabel";
_18.appendChild(_19);
var _1a=d.createElement("input");
_18.appendChild(_1a);
_17.appendChild(_18);
var _1b=(this._appstrings)?this._appstrings.USERSEARCH:this._userstrings;
var _10=lconn.core0.PeopleTypeAhead.getUserTypeAheadArguments(this.groupStore,{isGroup:true,_strings:_1b,NoResultsMessage:_1b.NO_RESULTS,id:this.id+"_selectGroup",name:"_membersDialogSelectGroup",size:"30","class":"lotusText wikiMembers",multipleValues:false});
var _11=this.groupCombo=new lconn.core0.PeopleTypeAhead(_10,_1a);
this.groupCombo._setBlurValue=function(){
this.attr("displayedValue","");
};
if(dojo.isIE&&this.wInputUser){
_11.textbox.style.width=this.wInputUser;
}
_11.textbox.id=this.id+"_groupTextbox";
dijit.setWaiState(_11.textbox,"label",_1.nls.ACCESSIBILITY.LABELS.MEMBERS.GROUPS_COMBOBOX);
dijit.setWaiState(_11.textbox,"describedBy",this.id+"_groupInputDescLabel");
var _1c=_3.groupToggler;
dojo.connect(_11,"onSelect",this,"selectGroup");
_14.appendChild(_16);
}
for(var _a in this.roles){
var _1d=_3[_a+"Row"];
_1d.style.display="none";
var _1e=_3[_a+"Label"];
var _1f="";
if(_a=="manager"){
_1f=this._strings.OWNERS_LABEL;
}else{
if(_a=="editor"){
_1f=this._strings.EDITORS_LABEL;
}else{
if(_a=="reader"){
_1f=this._strings.READERS_LABEL;
}
}
}
_1e.appendChild(d.createTextNode(_1f));
var _20=_3[_a+"Node"];
dojo.connect(_20,"onkeypress",null,dojo.hitch(this,"keyPress",_20));
dojo.connect(_20,"onfocus",this,"resetCount");
var _21=this.roleNodes[_a]=d.createElement("div");
_21.className="lotusFilters2";
if(dojo.isIE&&this.wInput){
_21.style.width=this.wInput;
}
_20.appendChild(_21);
_20.setAttribute("id",_a+"_list");
_1e.setAttribute("for",_20.getAttribute("id"));
_1e.setAttribute("id",_20.getAttribute("id")+"_label");
dijit.setWaiState(_20,"labelledBy",_1e.getAttribute("id"));
_20.tabIndex=0;
dijit.setWaiRole(_20,"listbox");
}
this.initUsersAndGroups(el);
},initUsersAndGroups:function(){
},renderDivLayout:function(){
var app=this.app;
var d=app.document;
var _22={};
var div=this.userRow=this.rowNode;
var el=div.parentNode;
var _23=div.nextSibling;
div.className="lotusFormField";
var _24=_22.memberRolesLabel=lconn.share0.actions.createInvisibleLabel(d,div,this._strings.ROLES_LABEL);
var _25=_22.userLabel=_22.userHelp=d.createElement("label");
div.appendChild(_25);
var _26=_22.userNode=d.createElement("div");
div.appendChild(_26);
if(this.groupsEnabled){
var div=this.groupTogglerRow=_22.groupToggler=d.createElement("div");
div.className="lotusFormField";
lconn.share0.util.dom.insertBefore(el,div,_23);
var div=this.groupRow=this.groupLabelRow=d.createElement("div");
div.className="lotusFormField";
div.style.display="none";
var _27=_22.groupRolesLabel=lconn.share0.actions.createInvisibleLabel(d,div,this._strings.ROLES_LABEL);
var _25=_22.groupLabel=_22.groupHelp=d.createElement("label");
div.appendChild(_25);
var _26=_22.groupNode=d.createElement("div");
div.appendChild(_26);
lconn.share0.util.dom.insertBefore(el,div,_23);
}
for(var i in this.roles){
var div=_22[i+"Row"]=d.createElement("div");
div.className="lotusFormField";
div.style.display="none";
var lbl=_22[i+"Label"]=d.createElement("label");
div.appendChild(lbl);
var _26=_22[i+"Node"]=d.createElement("div");
div.appendChild(_26);
lconn.share0.util.dom.insertBefore(el,div,_23);
}
var _28=this.ariaMemberLabel=d.createElement("div");
_28.className="lotusOffScreen";
dijit.setWaiRole(_28,"alert");
div.appendChild(_28);
return _22;
},renderTableLayout:function(){
var app=this.app;
var d=app.document;
var _29={};
var tr=this.userRow=this.rowNode;
var el=tr.parentNode;
var _2a=tr.nextSibling;
tr.className="lotusFormFieldRow";
var td=d.createElement("td");
td.className="lotusFormLabel";
dojo.attr(td,"width","15%");
var _2b=_29.memberRolesLabel=lconn.share0.actions.createInvisibleLabel(d,td,this._strings.ROLES_LABEL);
var _2c=_29.userLabel=d.createElement("label");
td.appendChild(_2c);
tr.appendChild(td);
var td=_29.userNode=d.createElement("td");
tr.appendChild(td);
var td=_29.userHelp=d.createElement("td");
dojo.style(td,"width","20px");
tr.appendChild(td);
if(this.groupsEnabled){
var tr=this.groupTogglerRow=d.createElement("tr");
tr.className="lotusFormFieldRow";
var td=d.createElement("td");
td.className="lotusFormLabel";
dojo.attr(td,"width","15%");
tr.appendChild(td);
var td=_29.groupToggler=d.createElement("td");
tr.appendChild(td);
var td=d.createElement("td");
tr.appendChild(td);
lconn.share0.util.dom.insertBefore(el,tr,_2a);
var tr=this.groupRow=this.groupLabelRow=d.createElement("tr");
tr.className="lotusFormFieldRow";
tr.style.display="none";
var td=d.createElement("td");
td.className="lotusFormLabel";
dojo.attr(td,"width","15%");
var _2d=_29.groupRolesLabel=lconn.share0.actions.createInvisibleLabel(d,td,this._strings.ROLES_LABEL);
var _2c=_29.groupLabel=d.createElement("label");
td.appendChild(_2c);
tr.appendChild(td);
var td=_29.groupNode=d.createElement("td");
td.style.padding="0px";
tr.appendChild(td);
var td=_29.groupHelp=d.createElement("td");
dojo.style(td,"width","20px");
tr.appendChild(td);
lconn.share0.util.dom.insertBefore(el,tr,_2a);
}
for(var i in this.roles){
var tr=_29[i+"Row"]=d.createElement("tr");
tr.className="lotusFormFieldRow";
tr.style.display="none";
var td=d.createElement("td");
td.className="lotusFormLabel";
dojo.attr(td,"width","15%");
var lbl=_29[i+"Label"]=d.createElement("label");
td.appendChild(lbl);
tr.appendChild(td);
var td=_29[i+"Node"]=d.createElement("td");
tr.appendChild(td);
lconn.share0.util.dom.insertBefore(el,tr,_2a);
}
var tr=d.createElement("tr");
var td=d.createElement("td");
tr.appendChild(td);
var td=d.createElement("td");
var _2e=this.ariaMemberLabel=d.createElement("div");
_2e.className="lotusOffScreen";
dijit.setWaiRole(_2e,"alert");
td.appendChild(_2e);
tr.appendChild(td);
lconn.share0.util.dom.insertBefore(el,tr,_2a);
return _29;
},reset:function(_2f,_30){
this.peopleCombo.setValue("");
this.groupCombo.setValue("");
this._hideGroupPicker();
for(var _31 in this.roleNodes){
var _32=this.roleNodes[_31];
if(_32){
lconn.share0.util.html.removeChildren(_32);
_32.parentNode.parentNode.style.display="none";
}
}
this._initUsersAndGroups();
},selectUser:function(_33,e){
if(_33.userState=="inactive"){
return;
}
if(e){
dojo.stopEvent(e);
}
var app=this.app;
var d=app.document;
var id=_33.id;
var _34=_33.name;
lconn.share0.validation.removeInlineErrorRow(this.userRow,this.peopleCombo.textbox,"reference");
if(this.authenticatedUser&&id==this.authenticatedUser.id){
lconn.share0.validation.addInlineErrorRow(this.userRow,this.peopleCombo.textbox,"reference",[d.createTextNode(this._strings.SELF_REFERENCE_ERROR)]);
}else{
if(this.ownerId&&id==this.ownerId){
lconn.share0.validation.addInlineErrorRow(this.userRow,this.peopleCombo.textbox,"reference",[d.createTextNode(this._strings.OWNER_REFERENCE_ERROR)]);
}else{
var _35=this.userRoleSel.options[this.userRoleSel.selectedIndex].value;
if(!(this.users[id]&&this.users[id][1]==_35)){
if(this.users[id]&&this.users[id][1]!=_35){
this.removeUser(id);
}
this.users[id]=[_34,_35];
var _36=this.roleNodes[_35];
_36.parentNode.parentNode.style.display="";
lconn.wikis.scenes.createUserAvatar(_36,_33,{strings:this._strings,app:app,onremove:dojo.hitch(this,this.removeUser,id),role:_35,ariaLabel:this.ariaMemberLabel,roles:this.ariaStringRoles});
}
}
}
this.peopleCombo.setValue("");
this.onresize();
},selectGroup:function(_37,e){
if(e){
dojo.stopEvent(e);
}
var app=this.app;
var d=app.document;
var id=_37.id;
if(dojo.indexOf(["anonymous-user","all-authenticated-users"],id)!=-1){
this.groupCombo.setValue("");
return;
}
var _38=_37.name;
var _39=this.groupRoleSel.options[this.groupRoleSel.selectedIndex].value;
if(!(this.groups[id]&&this.groups[id][1]==_39)){
if(this.groups[id]&&this.groups[id][1]!=_39){
this.removeGroup(id);
}
this.groups[id]=[_38,_39,_37.type=="virtual"];
var _3a=this.roleNodes[_39];
_3a.parentNode.parentNode.style.display="";
lconn.wikis.scenes.createGroupAvatar(_3a,_37,{strings:this._strings,app:app,onremove:dojo.hitch(this,this.removeGroup,id),role:_39,ariaLabel:this.ariaMemberLabel,roles:this.ariaStringRoles});
}
this.groupCombo.setValue("");
this.onresize();
},removeUser:function(_3b,e){
if(e){
dojo.stopEvent(e);
}
this._removeMember(_3b);
},_removeMember:function(_3c,_3d){
var _3e=false;
var id=(typeof _3c=="string")?_3c:((typeof _3c=="object")?_3c.id:null);
var _3f=_3d?this.groups[id][0]:this.users[id][0];
var _40=this.roleNodes;
var _41=null;
for(var _42 in _40){
var _43=_40[_42];
if(_3e&&_43.childNodes.length>0){
dijit.focus(dojo.isIE?_43.children[0]:_43.childNodes[0]);
_3e=false;
}
for(var i=0,_44;_44=dojo.isIE?_43.children[i]:_43.childNodes[i];i++){
if((_3d?_44.groupId:_44.userId)==id){
_43.removeChild(_44);
_41=_42;
if(_3d){
delete this.groups[id];
}else{
delete this.users[id];
}
if(_43.childNodes.length>0){
var _45=(i===_43.childNodes.length)?i-1:i;
dijit.focus(dojo.isIE?_43.children[_45]:_43.childNodes[_45]);
}else{
_3e=true;
}
break;
}
}
if(_43.childNodes.length==0){
_43.parentNode.parentNode.style.display="none";
}
}
if(_3e){
if(this.defaultFocusNode){
dijit.focus(this.defaultFocusNode);
}
}
if(_41){
var _46=this.app.nls.ACCESSIBILITY.LABELS.MEMBERS.REMOVED[this.ariaStringRoles[_41]];
this.ariaMemberLabel.innerHTML=dojo.string.substitute(_46,[_3f]);
setTimeout(dojo.partial(function(_47){
_47.innerHTML="";
},this.ariaMemberLabel),200);
}
this.onresize();
},removeGroup:function(_48,e){
if(e){
dojo.stopEvent(e);
}
this._removeMember(_48,true);
},getGroups:function(){
return dojo.clone(this.groups);
},_showGroupPicker:function(sel,a){
var e=lconn.share0.util.misc.last(arguments);
if(lconn.share0.util.html.isEvent(e)){
dojo.stopEvent(e);
}
this._toggleGroupPicker(true);
if(a){
dijit.setWaiState(a,"pressed","true");
}
if(sel){
sel.focus();
}
},_hideGroupPicker:function(){
this._toggleGroupPicker(false);
},_toggleGroupPicker:function(_49){
dojo.style(this.groupRow,"display",_49?"":"none");
dojo.style(this.groupLabelRow,"display",_49?"":"none");
dojo.style(this.groupTogglerRow,"display",_49?"none":"");
this.onresize();
},onresize:function(){
},applyGroupToggler:function(el,inp){
var app=this.app;
var d=app.document;
var _4a=d.createElement("span");
_4a.className="lotusMeta";
var a=d.createElement("a");
a.href="javascript:;";
dijit.setWaiRole(a,"button");
a.appendChild(d.createTextNode(this._strings.GROUPS_LINK));
_4a.appendChild(a);
dojo.connect(a,"onclick",dojo.hitch(this,this._showGroupPicker,inp,a));
el.appendChild(_4a);
},keyPress:function(_4b,e){
key=e.keyCode;
_4b=_4b.firstChild;
if((key==dojo.keys.DOWN_ARROW)||(key==dojo.keys.RIGHT_ARROW)){
if(this.editorCount<_4b.childNodes.length-1){
this.editorCount++;
}
if(this.editorCount==-1){
this.editorCount=0;
}
this.keyPressFocus(_4b);
dojo.stopEvent(e);
}else{
if((key==dojo.keys.UP_ARROW)||(key==dojo.keys.LEFT_ARROW)){
if(this.editorCount>0){
this.editorCount--;
}
if(this.editorCount==-1){
this.editorCount=0;
}
this.keyPressFocus(_4b);
dojo.stopEvent(e);
}else{
if(key==dojo.keys.TAB){
this.resetCount();
}
}
}
},keyPressFocus:function(_4c){
var _4d=_4c.childNodes[this.editorCount];
if(_4d){
dijit.focus(_4d);
dijit.setWaiState(_4d,"selected","true");
}
},resetCount:function(){
this.editorCount=-1;
}});
}


;if(!dojo._hasResource["lconn.wikis.widget.WikiAccessOptions"]){
dojo._hasResource["lconn.wikis.widget.WikiAccessOptions"]=true;
dojo.provide("lconn.wikis.widget.WikiAccessOptions");






dojo.declare("lconn.wikis.widget.WikiAccessOptions",[dijit._Widget],{_strings:{},useDivs:true,defaultPublicViewingAllowed:false,defaultAuthenticatedEditingAllowed:false,postMixInProperties:function(){
},buildRendering:function(){
this.rowNode=null;
var _1=this.app;
var d=_1.document;
var _2=this.domNode=this.rowNode=this.srcNodeRef;
lconn.share0.util.html.removeChildren(_2);
var _3={};
if(this.useDivs){
_3=this.renderDivLayout();
}else{
_3=this.renderTableLayout();
}
this.applyRadioControlGroup({name:"publicViewing",strings:{allowed:this._strings.READER.ALL_USERS,disabled:this._strings.READER.MEMBERS_ONLY},title:this._strings.READER.TITLE,helpTopic:"wikiaccess.reading",enabled:this.defaultPublicViewingAllowed,clickHandler:"_handlePublicViewingConstraint"},_3.readNode,_3.readLabel);
this.applyRadioControlGroup({name:"authenticatedEditing",strings:{allowed:this._strings.EDITOR.ALL_LOGGED_IN,disabled:this._strings.EDITOR.EDITORS_AND_OWNERS},title:this._strings.EDITOR.TITLE,helpTopic:"wikiaccess.editing",enabled:this.defaultAuthenticatedEditingAllowed,clickHandler:"_handleAuthenticatedEditingConstraint"},_3.editNode,_3.editLabel);
},renderDivLayout:function(){
var _4=this.app;
var d=_4.document;
var _5={};
var _6=this.rowNode;
_6.className="lotusFormField";
var el=_6.parentNode;
var _7=_6.nextSibling;
var _8=this._renderDivRow(_6);
_5.readLabel=_8.labelNode;
_5.readNode=_8.valueNode;
dijit.setWaiRole(_5.readNode,"radiogroup");
_5.readNode.setAttribute("id","readAccessNode");
_5.readLabel.setAttribute("for","readAccessNode");
_5.readLabel.setAttribute("id","readAccessLabel");
dijit.setWaiState(_5.readNode,"labelledby","readAccessLabel");
var _6=d.createElement("div");
_6.className="lotusFormField";
lconn.share0.util.dom.insertBefore(el,_6,_7);
var _8=this._renderDivRow(_6);
_5.editLabel=_8.labelNode;
_5.editNode=_8.valueNode;
dijit.setWaiRole(_5.editNode,"radiogroup");
_5.editNode.setAttribute("id","editAccessNode");
_5.editLabel.setAttribute("for","editAccessNode");
_5.editLabel.setAttribute("id","editAccessLabel");
dijit.setWaiState(_5.editNode,"labelledby","editAccessLabel");
return _5;
},_renderDivRow:function(_9){
var _a=this.app;
var d=_a.document;
var _b={};
var _c=_b.valueNode=d.createElement("fieldset");
_c.className="lotusFieldset";
_9.appendChild(_c);
var _d=_b.labelNode=d.createElement("legend");
_c.appendChild(_d);
return _b;
},renderTableLayout:function(){
var _e=this.app;
var d=_e.document;
var _f={};
var _10=this.rowNode;
_10.className="lotusFormFieldRow";
var el=_10.parentNode;
var _11=_10.nextSibling;
var _12=this._renderTableRow(_10);
_f.readNode=_12.valueNode;
_f.readLabel=_12.labelNode;
dijit.setWaiRole(_f.readNode,"radiogroup");
_f.readNode.setAttribute("id","readAccessNode");
_f.readNode.setAttribute("id","readAccessNode");
_f.readLabel.setAttribute("id","readAccessLabel");
dijit.setWaiState(_f.readNode,"labelledby","readAccessLabel");
var _10=d.createElement("tr");
_10.className="lotusFormFieldRow";
lconn.share0.util.dom.insertBefore(el,_10,_11);
var _12=this._renderTableRow(_10);
_f.editNode=_12.valueNode;
_f.editLabel=_12.labelNode;
dijit.setWaiRole(_f.editNode,"radiogroup");
_f.editNode.setAttribute("id","editAccessNode");
_f.editLabel.setAttribute("id","editAccessLabel");
dijit.setWaiState(_f.editNode,"labelledby","editAccessLabel");
return _f;
},_renderTableRow:function(_13){
var app=this.app;
var d=app.document;
var _14={};
var td=d.createElement("td");
td.className="lotusFormLabel";
dojo.attr(td,"width","15%");
var lbl=_14.labelNode=d.createElement("label");
td.appendChild(lbl);
_13.appendChild(td);
var td=_14.valueNode=d.createElement("td");
_13.appendChild(td);
var td=d.createElement("td");
_13.appendChild(td);
return _14;
},_handlePublicViewingConstraint:function(){
if(!this.isPublicViewingAllowed()){
this.setAuthenticatedEditingAllowed(false);
}
},_handleAuthenticatedEditingConstraint:function(){
if(this.isAuthenticatedEditingAllowed()){
this.setPublicViewingAllowed(true);
}
},setPublicViewingAllowed:function(_15){
this.publicViewingAllowed.checked=_15;
this.publicViewingDisabled.checked=!_15;
if(!_15){
this.setAuthenticatedEditingAllowed(false);
}
},setAuthenticatedEditingAllowed:function(_16){
this.authenticatedEditingAllowed.checked=_16;
this.authenticatedEditingDisabled.checked=!_16;
if(_16){
this.setPublicViewingAllowed(true);
}
},isPublicViewingAllowed:function(){
return this.publicViewingAllowed.checked;
},isAuthenticatedEditingAllowed:function(){
return this.authenticatedEditingAllowed.checked;
},reset:function(_17,_18){
this.setPublicViewingAllowed(this.defaultPublicViewingAllowed);
this.setAuthenticatedEditingAllowed(this.defaultAuthenticatedEditingAllowed);
},applyRadioControlGroup:function(opt,_19,_1a,_1b){
var app=this.app;
var d=app.document;
var _1c=opt.name;
var _1d=opt.strings;
var _1e=opt.title;
var _1f=opt.helpTopic;
var _20=opt.clickHandler;
var _21=opt.enabled;
var _22={allowed:_1c+"Allowed",disabled:_1c+"Disabled"};
_1a.appendChild(d.createTextNode(_1e));
var div=d.createElement("div");
div.className="lotusFieldWrapper";
var inp=this.applyRadioControl(_1c,_22.allowed,_21);
this[_22.allowed]=inp;
div.appendChild(inp);
dojo.connect(inp,"onclick",this,_20);
var _23=d.createElement("label");
_23.className="lotusCheckbox";
_23.setAttribute("for",this.id+"_"+_22.allowed);
_23.appendChild(d.createTextNode(_1d.allowed));
div.appendChild(_23);
_19.appendChild(div);
var div=d.createElement("div");
var inp=this.applyRadioControl(_1c,_22.disabled,!_21);
this[_22.disabled]=inp;
div.appendChild(inp);
dojo.connect(inp,"onclick",this,_20);
var _23=d.createElement("label");
_23.className="lotusCheckbox";
_23.setAttribute("for",this.id+"_"+_22.disabled);
_23.appendChild(d.createTextNode(_1d.disabled));
div.appendChild(_23);
_19.appendChild(div);
},applyRadioControl:function(_24,_25,_26){
var inp=null;
var app=this.app;
var d=app.document;
try{
var _27="<input id=\""+this.id+"_"+_25+"\" type=\"radio\" name=\""+this.id+_24+"\""+(_26?" checked=\"checked\"":"")+" role=\"radio\" >";
inp=d.createElement(_27);
}
catch(e){
}
if(!inp||inp.nodeName!="INPUT"){
inp=d.createElement("input");
inp.setAttribute("type","radio");
dijit.setWaiRole(inp,"radio");
inp.setAttribute("name",this.id+_24);
inp.checked=_26;
dijit.setWaiState(inp,"checked",inp.checked);
inp.id=this.id+"_"+_25;
}
inp.className="lotusCheckbox";
return inp;
}});
}


;if(!dojo._hasResource["lconn.wikis.action.CreateWiki"]){
dojo._hasResource["lconn.wikis.action.CreateWiki"]=true;
dojo.provide("lconn.wikis.action.CreateWiki");














dojo.declare("lconn.wikis.action.CreateWiki",[lconn.share0.action.InlineAction,lconn.wikis.action.AbstractCreateWiki],{_stringsPrefix:"CREATE_WIKI",fire:false,constructor:function(_1,_2,_3){
this.app=_1;
this.scene=_2;
this.nls=_1.nls[this._stringsPrefix];
this.name=this.nls.ACTION;
this.tooltip=this.nls.ACTION_TOOLTIP;
this.tagStore=_1.getTagTypeAheadStore();
this.peopleStore=_1.getUserTypeAheadStore(true);
this.titleSet=false;
this.descriptionSet=false;
this.tagsSet=false;
this.groupStore=_1.getGroupTypeAheadStore();
this.titleMaxLength=241;
if(_3){
dojo.mixin(this,_3);
}
},getUrlResource:function(){
return this.app.routes.getCreateWikiUrl();
},isValid:function(){
return (this.app.authenticatedUser&&(dojo.indexOf(this.app.authenticatedUser.roles,"wiki-creator")!=-1));
},isDirty:function(){
return this.titleSet||this.descriptionSet||this.tagsSet;
},resetDirty:function(){
this.titleSet=this.descriptionSet=this.tagsSet=false;
},execute:function(_4,_5,e){
if(e){
dojo.stopEvent(e);
}
if(this.fire){
this.inherited(arguments);
}else{
this.app.navigate(this.getUrlResource());
}
},createForm:function(){
var _6=this.app;
var d=_6.document;
var _7=this.createFormLayout(d);
var _8=_7.footer;
var tr=this.titleRow=d.createElement("tr");
tr.className="lotusFormFieldRow";
var td=d.createElement("td");
td.className="lotusFormLabel";
var _9=d.createElement("label");
dojo.attr(_9,"for","createWiki_title");
lconn.share0.validation.addRequiredIndicator(_9);
_9.appendChild(d.createTextNode(this.nls.TITLE_LABEL));
td.appendChild(_9);
tr.appendChild(td);
var td=d.createElement("td");
var _a=this.title=d.createElement("input");
_a.className="lotusText bidiAware";
_a.id=dojo.attr(_9,"for");
dojo.attr(_a,"type","text");
dojo.attr(_a,"name","title");
dojo.attr(_a,"autocomplete","off");
dijit.setWaiState(_a,"required","true");
dojo.connect(_a,"onchange",dojo.hitch(this,this.validateTitle,false));
dojo.connect(_a,"onkeyup",dojo.hitch(this,this.validateTitle,true));
dojo.connect(_a,"onkeyup",this,"_titleChanged");
td.appendChild(_a);
tr.appendChild(td);
var td=d.createElement("td");
lconn.share0.scenes.createHelpLink(_6,td,"wikicreate.title");
tr.appendChild(td);
lconn.share0.util.dom.insertBefore(_8.parentNode,tr,_8);
var tr=this.tagsRow=d.createElement("tr");
tr.className="lotusFormFieldRow";
var td=d.createElement("td");
td.className="lotusFormLabel";
var _9=d.createElement("label");
_9.appendChild(d.createTextNode(this.nls.TAGS_LABEL));
td.appendChild(_9);
tr.appendChild(td);
var td=d.createElement("td");
var _b=d.createElement("input");
_b.className="lotusText bidiAware";
dojo.attr(_b,"name","tags");
dojo.attr(_b,"type","text");
td.appendChild(_b);
var _c=lconn.share0.widget.TagTypeAhead.getTagTypeAheadArguments(this.tagStore,{name:"createWiki_TaggerTypeAhead",multipleValues:true,token:" ",hideEmptyResults:true,"class":"lotusText bidiAware",_strings:_6.nls.TAGGER,autoSelectChars:[]});
var _d=this.tagCombo=new lconn.share0.widget.TagTypeAhead(_c,_b);
_b=_d.textbox;
lconn.core.globalization.bidiUtil.inputRTLProcessing(_b);
dojo.connect(_b,"onkeyup",function(){
lconn.core.globalization.bidiUtil.inputRTLProcessing(_b);
});
dojo.connect(_b,"onchange",dojo.hitch(this,this.validateTags,_b.id));
dojo.connect(_b,"onkeyup",dojo.hitch(this,this.validateTags,_b.id));
dojo.connect(_b,"onkeyup",this,"_tagsChanged");
this.tagLoc=_b;
dijit.setWaiState(_b,"label",_6.nls.ACCESSIBILITY.LABELS.CREATE.TAGS_COMBOBOX);
tr.appendChild(td);
dojo.attr(_9,"for",_b.id);
var td=d.createElement("td");
lconn.share0.scenes.createHelpLink(_6,td,"wikicreate.tags");
tr.appendChild(td);
lconn.share0.util.dom.insertBefore(_8.parentNode,tr,_8);
var tr=d.createElement("tr");
lconn.share0.util.dom.insertBefore(_8.parentNode,tr,_8);
var _e=this.accessOptions=new lconn.wikis.widget.WikiAccessOptions({_strings:_6.nls.WIKI_ACCESS_OPTIONS,app:_6,useDivs:false,defaultPublicViewingAllowed:true,defaultAuthenticatedEditingAllowed:false},tr);
var tr=d.createElement("tr");
lconn.share0.util.dom.insertBefore(_8.parentNode,tr,_8);
var _f=this.getMembershipOptions();
_f.useDivs=false;
var _10=this.membershipOptions=new lconn.wikis.widget.MembershipOptions(_f,tr);
var tr=this.descriptionRow=d.createElement("tr");
tr.className="lotusFormFieldRow";
var td=d.createElement("td");
td.className="lotusFormLabel";
var _9=d.createElement("label");
dojo.attr(_9,"for","createWiki_description");
_9.appendChild(d.createTextNode(this.nls.DESCRIPTION_LABEL));
td.appendChild(_9);
tr.appendChild(td);
var td=d.createElement("td");
var _a=this.description=d.createElement("textarea");
_a.className="lotusText bidiAware";
_a.id=dojo.attr(_9,"for");
dojo.attr(_a,"name","description");
td.appendChild(_a);
dojo.connect(_a,"onchange",this,"validateDescription");
dojo.connect(_a,"onkeyup",this,"validateDescription");
dojo.connect(_a,"onkeyup",this,"_descriptionChanged");
tr.appendChild(td);
this.membershipOptions.defaultFocusNode=this.description;
var td=d.createElement("td");
lconn.share0.scenes.createHelpLink(_6,td,"wikicreate.description");
tr.appendChild(td);
lconn.share0.util.dom.insertBefore(_8.parentNode,tr,_8);
var tr=d.createElement("tr");
tr.className="lotusFormFieldRow";
var td=d.createElement("td");
td.className="lotusFormLabel";
var _11=d.createElement("label");
_11.className="lotusFormField lotusMeta";
_11.appendChild(d.createTextNode(this.app.nls.ACCESSIBILITY.LABELS.REQUIRED));
td.appendChild(_11);
tr.appendChild(td);
lconn.share0.util.dom.insertBefore(_8.parentNode,tr,_8);
this.initialFocusNode=this.title;
lconn.core.globalization.bidiUtil.enforceTextDirectionOnPage(this.domNode);
},findContainerNode:function(){
var cnt=dojo.query("div.qkrCreateWikiContainer")[0];
if(!cnt){
var d=this.app.document;
cnt=d.createElement("div");
cnt.className="qkrCreateWikiContainer lotusClear";
var _12=dojo.byId("list");
lconn.share0.util.dom.insertBefore(_12.parentNode,cnt,_12);
}
return cnt;
},updateForm:function(_13,opt,_14){
lconn.share0.validation.removeFormErrors(this.formNode);
this.membershipOptions.reset();
this.accessOptions.reset();
this.descriptionSet=false;
this.titleSet=false;
this.tagsSet=false;
this.title.value="";
this.description.value="";
this.tagLoc.value="";
},save:function(e){
if(e){
dojo.stopEvent(e);
}
lconn.share0.validation.removeFormErrors(this.formNode);
return this._save();
},onSuccess:function(){
this.resetDirty();
this.inherited(arguments);
},cancel:function(e){
if(e){
dojo.stopEvent(e);
}
if(this.isDirty()){
lconn.share0.util.html.confirm(this.nls.NAVIGATE_AWAY_CONFIRM,dojo.hitch(this,function(){
this.resetDirty();
this.cancel();
}),dojo.hitch(this,function(){
dijit.focus(this.saveNode);
}));
}else{
this.inherited(arguments);
}
}});
}


;dojo.cache("lconn.share0", "widget/templates/TagComboBox.html", "<span> <input type=\"text\" autocomplete=\"off\" name=\"${name}\" id=\"widget_${id}\" size=\"${size}\" dojoAttachEvent=\"onkeyup:_onKeyUp\" dojoAttachPoint=\"domNode,textbox,focusNode,comboNode,_popupStateNode\" waiRole=\"combobox\" waiState=\"haspopup-true,autocomplete-list,expanded-false\" /> <span style=\"display:none\" dojoAttachPoint=\"_buttonNode\"></span></span>");

;if(!dojo._hasResource["lconn.share0.widget.TagTypeAhead"]){
dojo._hasResource["lconn.share0.widget.TagTypeAhead"]=true;
dojo.provide("lconn.share0.widget.TagTypeAhead");




dojo.declare("lconn.share0.widget.TagTypeAhead",[lconn.core.TypeAhead],{size:"",pageSize:15,autoReplace:/[\s,]+/g,autoSelectChars:[" ",","],libraryId:null,userLibrary:null,templateString:null,templatePath:dojo.moduleUrl("lconn.share0","widget/templates/TagComboBox.html"),postMixInProperties:function(){
this.inherited(arguments);
this.baseClass="lotusText";
if(!this.orient){
this.orient=dojo._isBodyLtr()?{"BL":"TL","TL":"BL"}:{"BR":"TR","TR":"BR"};
}
},formatItem:function(_1){
if(_1.name){
return _1.name;
}else{
return _1;
}
},decorateItem:function(el,_2){
},_startSearch:function(_3,_4){
_4=_4||{};
_4.userLibrary=_4.userLibrary||this.userLibrary;
_4.libraryId=_4.libraryId||this.libraryId;
if(!this._popupWidget){
var _5=this.id+"_popup";
this._popupWidget=this.dropDown=new lconn.share0.widget.TagTypeAheadMenu({_strings:this._strings,onChange:dojo.hitch(this,this._selectOption),decorateItem:dojo.hitch(this,this.decorateItem),id:_5});
dijit.removeWaiState(this.focusNode,"activedescendant");
dijit.setWaiState(this.textbox,"owns",_5);
}
this.item=null;
var _6=dojo.clone(this.query);
this._lastQuery=_6=_3;
this.searchTimer=this.defer(dojo.hitch(this,function(_7,_8){
var _9=this.store.fetch({queryOptions:dojo.mixin({ignoreCase:this.ignoreCase,deep:true},_4),query:_7,onComplete:dojo.hitch(this,"_openResultList"),onError:function(_a){
dojo.hitch(_8,"_hideResultList")();
},start:0,count:this.pageSize});
var _b=function(_c,_d){
_c.start+=_c.count*_d;
_c.direction=_d;
this.store.fetch(_c);
};
this._nextSearch=this._popupWidget.onPage=dojo.hitch(this,_b,_9);
},_6,this),_4.searchImmediately?1:this.searchDelay);
}});
dojo.declare("lconn.share0.widget.TagTypeAheadMenu",[dijit.form._ComboBoxMenu],{templateString:"<ul role='listbox' class='dijitReset dijitMenu' data-dojo-attach-point='containerNode' dojoAttachEvent='onmousedown:_onMouseDown,onmouseup:_onMouseUp,onmouseover:_onMouseOver,onmouseout:_onMouseOut' tabIndex='-1' style='overflow: \"auto\"; overflow-x: \"hidden\";'>"+"<li class='dijitMenuItem dijitMenuPreviousButton' dojoAttachPoint='previousButton' waiRole='option'></li>"+"<li class='dijitMenuItem resultsNode' dojoAttachPoint='resultsNode' waiRole='option'></li>"+"<li class='dijitMenuItem dijitMenuNextButton' dojoAttachPoint='nextButton' waiRole='option'></li>"+"</ul>",_messages:null,postCreate:function(){
this.resultsNode.selectHandler=dojo.hitch(this,function(_e){
dojo.stopEvent(_e);
return true;
});
this.inherited("postCreate",arguments);
},setValue:function(_f){
if(_f.target.item){
this.value=_f;
this.onChange(_f);
}
},_onMouseUp:function(evt){
if(evt.target!=this.resultsNode){
this.inherited("_onMouseUp",arguments);
}
},_onMouseOver:function(evt){
if(evt.target===this.domNode){
return;
}
var tgt=evt.target;
if(!(tgt==this.previousButton||tgt==this.nextButton||tgt==this.resultsNode)){
while(!tgt.item){
tgt=tgt.parentNode;
}
}
this._focusOptionNode(tgt);
},_focusOptionNode:function(_10){
if(this._highlighted_option!=_10){
this._blurOptionNode();
this._highlighted_option=_10;
dojo.addClass(this._highlighted_option,"dijitMenuItemHover");
}
},_blurOptionNode:function(){
if(this._highlighted_option){
dojo.removeClass(this._highlighted_option,"dijitMenuItemHover");
this._highlighted_option=null;
}
},createOptions:function(_11,_12,_13){
this.clearResultList();
this.items=_11;
this.previousButton.style.display=(!_12.start||_12.start==0)?"none":"";
dojo.attr(this.previousButton,"id",this.id+"_prev");
dojo.forEach(_11,function(_14,i){
if(_12.count&&i>=_12.count){
return;
}
var _15=this._createOption(_14,_13);
_15.className="dijitMenuItem";
dojo.attr(_15,"id",this.id+i);
_15.setAttribute("item",i);
if(this.decorateItem){
this.decorateItem(_15,_14);
}
this.domNode.insertBefore(_15,this.nextButton);
},this);
this.nextButton.style.display=(_12.count&&_12.count<_11.length)?"":"none";
dojo.attr(this.nextButton,"id",this.id+"_next");
var el=this.resultsNode;
if(_11.length==0){
var _16=dojo.string.substitute(this._strings.NO_RESULTS,[_12.query]);
while(el.firstChild){
el.removeChild(el.firstChild);
}
el.appendChild(document.createTextNode(_16));
el.item=_16;
this.domNode.insertBefore(el,this.nextButton);
}
},clearResultList:function(){
var _17=this.previousButton;
var _18=this.nextButton;
while(_17.nextSibling&&_17.nextSibling!=_18){
this.domNode.removeChild(_17.nextSibling);
}
},getListLength:function(){
return this.domNode.childNodes.length-2-(this.resultsNode.parentNode?1:0);
}});
lconn.share0.widget.TagTypeAhead.getTagTypeAheadArguments=function(_19,opt){
var _1a={nameAttr:"name",minChars:1,searchDelay:400,multipleValues:false,store:_19,"class":"",_getLabelFromItem:function(_1b){
if(_1b.name){
return _1b.name;
}else{
return _1b;
}
}};
if(opt){
dojo.mixin(_1a,opt);
}
return _1a;
};
}


;if(!dojo._hasResource["lconn.wikis.action.EditWiki"]){
dojo._hasResource["lconn.wikis.action.EditWiki"]=true;
dojo.provide("lconn.wikis.action.EditWiki");






















dojo.declare("lconn.wikis.action.EditWiki",[lconn.wikis.action.CreateWiki],{_stringsPrefix:"EDIT_WIKI",skipDuplicateTitleCheck:true,constructor:function(_1,_2,_3){
this.wiki=null;
this.wikiLabel=this.scene.wikiLabel||this.scene.sceneInfo.wikiLabel;
this.url=this.app.routes.getWikiEntryServiceUrl(this.wikiLabel,{includeTags:true});
this.oldTags=null;
this.tags=null;
this.errorOccured=false;
this.tagStore=this.createTagTypeAheadStore();
},createTagTypeAheadStore:function(){
var d=document;
var _4=d.createElement("div");
_4.style.display="none";
d.body.appendChild(_4);
var _5=new lconn.share0.util.TagDataStore({net:this.app.net,getUrl:dojo.hitch(this,this.getTagTypeAheadStoreUrl),queryParam:"filter"},_4);
return _5;
},getTagTypeAheadStoreUrl:function(_6){
var _7={sortKey:"weight",sortDescending:true,isMine:false,wikiLabel:null};
dojo.mixin(_6,_7);
return this.app.routes.getTagServiceUrl(_6);
},isValid:function(_8){
if(typeof (_8)!="object"){
return false;
}
var _9=_8.getPermissions();
return _9&&_9.GrantAccess;
},getUrlResource:function(){
return this.app.routes.getEditWikiUrl(this.wikiLabel);
},execute:function(_a,_b,e){
if(e){
dojo.stopEvent(e);
}
if(this.wiki){
if(this.wiki instanceof Error){
var _c={};
this.onerror(_c);
return;
}
this.inherited(arguments);
}else{
this.app.net.getXml({url:this.url,handle:dojo.hitch(this,this.loadWiki,_b)});
}
},loadWiki:function(_d,_e,_f){
if(_e instanceof Error){
var _10=lconn.share0.util.atom.getErrorCode(_e);
var msg;
if(_10=="ItemNotFound"){
msg=this.nls.ERROR_LOAD.NOT_FOUND_ERROR;
}else{
if(_10=="AccessDenied"){
msg=this.nls.ERROR_LOAD.ACCESS_DENIED_ERROR;
}else{
if(_10=="cancel"){
msg=this.nls.ERROR_LOAD.CANCEL_ERROR;
}else{
if(_10=="timeout"){
msg=this.nls.ERROR_LOAD.TIMEOUT_ERROR;
}else{
if(_10=="unauthenticated"){
msg=this.nls.ERROR_LOAD.NOT_LOGGED_IN_ERROR;
}else{
msg=this.nls.ERROR_LOAD.ERROR;
}
}
}
}
}
if(msg){
lconn.share0.util.html.alert(msg);
}
}else{
var _11=this.wiki=new lconn.wikis.bean.Wiki(_e.documentElement);
this.oldTags=this.wiki.getTags();
this.execute(_11,_d);
}
},createForm:function(){
var app=this.app;
var d=app.document;
var _12=this.createFormLayout(d);
var _13=_12.footer;
var tr=this.titleRow=d.createElement("tr");
tr.className="lotusFormFieldRow";
var td=d.createElement("td");
td.className="lotusFormLabel";
var lbl=d.createElement("label");
dojo.attr(lbl,"for","editWiki_title");
lconn.share0.validation.addRequiredIndicator(lbl);
lbl.appendChild(d.createTextNode(this.nls.WIKITITLE));
td.appendChild(lbl);
tr.appendChild(td);
if(this.wiki.isCommunityWiki()){
var td=d.createElement("td");
var _14=d.createElement("span");
_14.id="wiki_title";
_14.appendChild(d.createTextNode(this.wiki.getTitle()));
td.appendChild(_14);
tr.appendChild(td);
}else{
var td=d.createElement("td");
var inp=this.title=d.createElement("input");
inp.className="lotusText";
inp.id=dojo.attr(lbl,"for");
inp.value=inp.defaultValue=this.wiki.getTitle();
dojo.attr(inp,"type","text");
dojo.attr(inp,"name","title");
dojo.attr(inp,"autocomplete","off");
dijit.setWaiState(inp,"required","true");
dojo.connect(inp,"onchange",dojo.hitch(this,this.validateTitle,false));
dojo.connect(inp,"onkeyup",dojo.hitch(this,this.validateTitle,true));
dojo.connect(inp,"onkeyup",this,"_titleChanged");
td.appendChild(inp);
tr.appendChild(td);
var td=d.createElement("td");
lconn.share0.scenes.createHelpLink(app,td,"wikicreate.title");
tr.appendChild(td);
}
lconn.share0.util.dom.insertBefore(_13.parentNode,tr,_13);
var tr=this.tagsRow=d.createElement("tr");
this.applyTagsRow(tr,this,app,this.wiki);
lconn.share0.util.dom.insertBefore(_13.parentNode,tr,_13);
var tr=this.ownerRow=d.createElement("tr");
this.applyCreatorRow(tr,app,this.scene.wiki);
lconn.share0.util.dom.insertBefore(_13.parentNode,tr,_13);
var tr=this.descriptionRow=d.createElement("tr");
tr.className="lotusFormFieldRow";
var td=d.createElement("td");
td.className="lotusFormLabel";
var lbl=d.createElement("label");
dojo.attr(lbl,"for","editWiki_description");
lbl.appendChild(d.createTextNode(this.nls.DESCRIPTION_LABEL));
td.appendChild(lbl);
tr.appendChild(td);
var td=d.createElement("td");
var inp=this.description=d.createElement("textarea");
inp.className="lotusText";
inp.id=dojo.attr(lbl,"for");
inp.value=inp.defaultValue=this.wiki.getDescription();
dojo.attr(inp,"name","description");
td.appendChild(inp);
dojo.connect(inp,"onchange",this,"validateDescription");
dojo.connect(inp,"onkeyup",this,"validateDescription");
dojo.connect(inp,"onkeyup",this,"_descriptionChanged");
tr.appendChild(td);
var td=d.createElement("td");
lconn.share0.scenes.createHelpLink(app,td,"wikicreate.description");
tr.appendChild(td);
lconn.share0.util.dom.insertBefore(_13.parentNode,tr,_13);
var tr=d.createElement("tr");
tr.className="lotusFormFieldRow";
var td=d.createElement("td");
td.className="lotusFormLabel";
var _15=d.createElement("label");
_15.className="lotusMeta";
_15.appendChild(d.createTextNode(this.app.nls.ACCESSIBILITY.LABELS.REQUIRED));
td.appendChild(_15);
tr.appendChild(td);
td=d.createElement("td");
tr.appendChild(td);
lconn.wikis.scenes.applyQuota(app,td);
lconn.share0.util.dom.insertBefore(_13.parentNode,tr,_13);
this.initialFocusNode=this.wiki.isCommunityWiki()?this.tagLoc:this.title;
},applyCreatorRow:function(tr,app,_16){
if(_16.isCommunityWiki()){
dojo.style(tr,"display","none");
}else{
var d=app.d;
tr.className="lotusFormFieldRow";
var td=d.createElement("td");
td.className="lotusFormLabel";
var _17=d.createElement("label");
_17.appendChild(d.createTextNode(this.nls.CREATOR));
td.appendChild(_17);
tr.appendChild(td);
var td=d.createElement("td");
var a=d.createElement("a");
a.setAttribute("id","wiki_creator");
a.className="lotusPerson";
a.appendChild(d.createTextNode(_16.getAuthor().name));
lconn.share0.scenes.generateUserLink(app,app.routes,this.wiki.getAuthor(),a);
dijit.setWaiState(a,"label",dojo.string.substitute(this.nls.CREATOR_LABEL,[_16.getAuthor().name]));
td.appendChild(a);
tr.appendChild(td);
}
},updateTags:function(){
var _18=this.tagCombo.textbox.value;
if(_18==""||_18==" "){
this.tags=null;
}else{
this.tags=lconn.share0.validation.splitTags(_18);
}
},applyTagsRow:function(tr,_19,app,doc){
var d=app.document;
var _1a={};
tr.className="lotusFormFieldRow";
var td=d.createElement("td");
td.className="lotusFormLabel";
var _1b=d.createElement("label");
_1b.appendChild(d.createTextNode(this.nls.TAGS_LABEL));
td.appendChild(_1b);
tr.appendChild(td);
var td=d.createElement("td");
var _1c=d.createElement("input");
_1c.className="lotusText";
dojo.attr(_1c,"name","tags");
dojo.attr(_1c,"type","text");
td.appendChild(_1c);
var _1d=lconn.share0.widget.TagTypeAhead.getTagTypeAheadArguments(this.tagStore,{name:"editWiki_TaggerTypeAhead",size:"30",multipleValues:true,token:" ",hideEmptyResults:true,"class":"lotusText",_strings:app.nls.TAGGER,autoSelectChars:[]});
var _1e=_19.tagCombo=new lconn.share0.widget.TagTypeAhead(_1d,_1c);
_1c=_1e.textbox;
var _1f="";
dojo.forEach(this.oldTags,function(tag){
_1f=(!_1f)?tag:_1f+" "+tag;
});
_1c.value=_1c.defaultValue=_1f;
_1c.id="qkrTagTextbox";
lconn.core.globalization.bidiUtil.inputRTLProcessing(_1c);
dojo.connect(_1c,"onkeyup",function(){
lconn.core.globalization.bidiUtil.inputRTLProcessing(_1c);
});
dojo.connect(_1c,"onchange",dojo.hitch(this,this.validateTags,_1c.id));
dojo.connect(_1c,"onkeyup",dojo.hitch(this,this.validateTags,_1c.id));
dojo.connect(_1c,"onkeyup",this,"_tagsChanged");
_19.tagLoc=_1c;
dijit.setWaiState(_1e.textbox,"label",this.app.nls.ACCESSIBILITY.LABELS.EDIT.TAGS_COMBOBOX);
tr.appendChild(td);
dojo.attr(_1b,"for",_1c.getAttribute("id"));
var td=d.createElement("td");
lconn.share0.scenes.createHelpLink(app,td,"wikicreate.tags");
tr.appendChild(td);
},_save:function(){
this.disableInput();
if(!this.validateTitle()){
com.ibm.lconn.layout.page.scrollToY(0);
this.enableInput();
dijit.focus(this.title);
return false;
}
if(!this.validateTags()){
com.ibm.lconn.layout.page.scrollToY(0);
this.enableInput();
dijit.focus(this.tagLoc);
return;
}
if(!this.validateDescription()){
com.ibm.lconn.layout.page.scrollToY(0);
this.enableInput();
dijit.focus(this.description);
return false;
}
if(this.title){
this.title.value=lconn.share0.util.text.trim(this.title.value);
}
this.updateTags();
dojo.forEach(this.tags,dojo.hitch(this,function(tag){
var _20=dojo.indexOf(this.oldTags,tag);
if(_20!=-1){
this.oldTags.splice(_20,1);
}
}));
if(this.oldTags&&this.oldTags.length>0){
this.url=lconn.share0.util.uri.rewriteUri(this.url,{removeTag:this.oldTags,includeTags:true});
}
postBody=this.createPostBody();
this._requests.push(this.app.net.putXml({url:this.url,timeout:(dojo.getObject("lconn.share0.config.services.timeout.update")||10)*1000,postData:postBody,detectHtmlLogin:lconn.share0.util.atom.detectLoginForMultipartResponse,headers:{"Content-Type":"application/atom+xml: charset=\"UTF-8\""},handle:dojo.hitch(this,this.protectedComplete)}));
return true;
},createPostBody:function(){
var doc=lconn.share0.util.dom.newXMLDocument("entry",lconn.share0.util.dom.ATOM_NAMESPACE,[lconn.share0.util.dom.DOCUMENTS_ATOM_NAMESPACE,lconn.share0.util.dom.SNX_NAMESPACE]);
var _21=doc.documentElement;
var id=lconn.share0.util.dom.createElementNS(doc,"id",lconn.share0.util.dom.ATOM_NAMESPACE);
id.appendChild(doc.createTextNode(this.wiki.getId()));
_21.appendChild(id);
var _22=lconn.share0.util.dom.createElementNS(doc,"category",lconn.share0.util.dom.ATOM_NAMESPACE);
_22.setAttribute("term","wiki");
_22.setAttribute("label","wiki");
_22.setAttribute("scheme","tag:ibm.com,2006:td/type");
_21.appendChild(_22);
if(this.tags){
dojo.forEach(this.tags,function(tag){
var _23=lconn.share0.util.dom.createElementNS(doc,"category",lconn.share0.util.dom.ATOM_NAMESPACE);
_23.setAttribute("term",tag);
_23.setAttribute("label",tag);
_21.appendChild(_23);
});
}
var _24=lconn.share0.util.dom.createElementNS(doc,"label",lconn.share0.util.dom.DOCUMENTS_ATOM_NAMESPACE);
_24.appendChild(doc.createTextNode(this.wiki.getLabel()));
_21.appendChild(_24);
if(!this.wiki.isCommunityWiki()){
var _25=this.title.value;
if(_25!=this.wiki.getTitle()){
this.titleChanged=true;
var _26=lconn.share0.util.dom.createElementNS(doc,"title",lconn.share0.util.dom.ATOM_NAMESPACE);
_26.appendChild(doc.createTextNode(this.title.value));
_21.appendChild(_26);
}
}
var _27=lconn.share0.util.dom.createElementNS(doc,"summary",lconn.share0.util.dom.ATOM_NAMESPACE);
_27.setAttribute("type","text");
_27.appendChild(doc.createTextNode(this.description.value));
_21.appendChild(_27);
return lconn.wikis.util.prependXMLDeclaration(lconn.share0.util.dom.serializeXMLDocument(doc));
},complete:function(_28,_29){
if(_28 instanceof Error){
var _2a=lconn.share0.util.atom.getErrorCode(_28);
this.onerror(_2a);
return false;
}else{
this.onsuccess();
var _2b=new lconn.wikis.bean.Wiki(_28.documentElement);
dojo.publish("lconn/wikis/wiki/edited",[_2b]);
var e={wikiEdited:true,wiki:_2b,messages:{info:true,message:this.nls.INFO_SUCCESS}};
dojo.publish("lconn/share/action/completed",[e,this]);
return true;
}
},onerror:function(_2c){
var msg,_2d=false;
if(_2c=="ItemNotFound"){
msg=this.nls.ERROR_SAVE.NOT_FOUND_ERROR;
_2d=true;
}else{
if(_2c=="AccessDenied"){
msg=this.nls.ERROR_SAVE.ACCESS_DENIED_ERROR;
_2d=true;
}else{
if(_2c=="cancel"){
msg=this.nls.ERROR_SAVE.CANCEL_ERROR;
}else{
if(_2c=="timeout"){
msg=this.nls.ERROR_SAVE.TIMEOUT_ERROR;
}else{
if(_2c=="unauthenticated"){
msg=this.nls.ERROR_SAVE.NOT_LOGGED_IN_ERROR;
}else{
msg=this.nls.ERROR_SAVE.ERROR;
}
}
}
}
}
if(msg){
lconn.share0.util.html.alert(msg);
}
if(_2d){
var app=this.app;
app.messages.add({error:true,message:msg});
app.navigate(app.routes.getGlobalHomeUrl());
return;
}
this.enableInput();
},onSuccess:function(){
this.app.expireWikiCache();
this.inherited(arguments);
}});
}


;if(!dojo._hasResource["lconn.share0.action.ToggleAction"]){
dojo._hasResource["lconn.share0.action.ToggleAction"]=true;
dojo.provide("lconn.share0.action.ToggleAction");


dojo.declare("lconn.share0.action.ToggleAction",null,{state:"ON",execute:function(_1,_2,e){
this.inherited(arguments);
return this.toggle();
},toggle:function(_3,_4,e){
if(this.isOn()){
return this.deactivate();
}else{
return this.activate();
}
},activate:function(){
this.state="ON";
this.onOn();
this.onToggle();
},deactivate:function(){
this.state="OFF";
this.onOff();
this.onToggle();
},onToggle:function(){
},onOn:function(){
},onOff:function(){
},isOn:function(){
return this.state=="ON";
},setNode:function(_5){
var d=this.app.document;
this.node=_5;
this.spanNode=_5.parentNode;
var _6=this.nls.OFF_LABEL;
if(this.isOn()){
_6=this.nls.ON_LABEL;
}
var _7=this.label=lconn.share0.actions.createInvisibleLabel(d,this.spanNode,_6);
_7.id="describedBy_"+this.declaredClass;
dijit.setWaiState(_5,"describedBy",_7.id);
dijit.setWaiState(_7,"live","polite");
dijit.setWaiState(_7,"relevant","text");
},setMenuItem:function(_8){
var d=this.app.document;
this.menuItem=_8;
},_updateLabel:function(_9){
var d=this.app.document;
var _a=this.label;
var _b=_9?this.nls.ON_LABEL:this.nls.OFF_LABEL;
if(_a&&_a.hasChildNodes){
_a.replaceChild(d.createTextNode(_b),_a.firstChild);
}
var _c=this.node;
if(_c){
if(_c.hasChildNodes){
_c.replaceChild(d.createTextNode(this.name),_c.firstChild);
}
_c.title=this.tooltip;
}
var _d=this.menuItem;
if(_d){
dojo.attr(_d,"label",this.name);
}
}});
}


;if(!dojo._hasResource["lconn.share0.action.DisabledAction"]){
dojo._hasResource["lconn.share0.action.DisabledAction"]=true;
dojo.provide("lconn.share0.action.DisabledAction");
dojo.declare("lconn.share0.action.DisabledAction",null,{enabled:true,execute:function(_1,_2,e){
if(e){
dojo.stopEvent(e);
}
if(this.enabled){
return this.inherited(arguments);
}
},enable:function(){
var en=this.enabled;
this.enabled=true;
if(!en){
this.onEnable();
}
},disable:function(){
var en=this.enabled;
this.enabled=false;
if(en){
this.onDisable();
}
},isEnabled:function(){
return this.enabled;
},onEnable:function(){
},onDisable:function(){
}});
}


;if(!dojo._hasResource["lconn.wikis.action.AbstractFollow"]){
dojo._hasResource["lconn.wikis.action.AbstractFollow"]=true;
dojo.provide("lconn.wikis.action.AbstractFollow");






dojo.declare("lconn.wikis.action.AbstractFollow",[lconn.share0.action.Action,lconn.share0.action.ToggleAction,lconn.share0.action.DisabledAction],{constructor:function(_1,_2,_3){
this.state=_3&&_3.following?"OFF":"ON";
this.app=_1;
this.enabled=!(_3&&_3.disabled);
this.nls=_1.nls[this._stringsPrefix];
},postscript:function(){
this.tooltip=this.enabled?(this.isOn()?this.nls.ACTION_ON_TOOLTIP:this.nls.ACTION_OFF_TOOLTIP):this.nls.ACTION_DISABLED_TOOLTIP;
this.name=this.enabled?(this.isOn()?this.nls.ACTION_ON:this.nls.ACTION_OFF):this.nls.ACTION_DISABLED;
},isValid:function(_4,_5){
return this.app.authenticatedUser;
},onOn:function(){
this.name=this.nls.ACTION_ON;
this.tooltip=this.nls.ACTION_ON_TOOLTIP;
this._updateLabel(true);
},onOff:function(){
this.name=this.nls.ACTION_OFF;
this.tooltip=this.nls.ACTION_OFF_TOOLTIP;
this._updateLabel(false);
},setNode:function(_6){
this.inherited(arguments);
if(this.enabled){
if(this.spanNode){
dojo.removeClass(this.spanNode,"lotusBtnDisabled");
}
if(this.node){
dijit.setWaiState(this.node,"disabled","false");
}
}else{
if(this.spanNode){
dojo.addClass(this.spanNode,"lotusBtnDisabled");
}
if(this.node){
dijit.setWaiState(this.node,"disabled","true");
}
}
},setMenuItem:function(_7){
this.inherited(arguments);
this.menuItem.attr("disabled",!this.enabled);
},onEnable:function(){
this.tooltip=this.isOn()?this.nls.ACTION_ON_TOOLTIP:this.nls.ACTION_OFF_TOOLTIP;
if(this.spanNode){
dojo.removeClass(this.spanNode,"lotusBtnDisabled");
}
if(this.node){
dijit.setWaiState(this.node,"disabled","false");
}
if(this.menuItem){
this.menuItem.attr("disabled",false);
}
this._updateLabel(this.isOn());
},onDisable:function(){
this.tooltip=this.nls.ACTION_DISABLED_TOOLTIP;
if(this.spanNode){
dojo.addClass(this.spanNode,"lotusBtnDisabled");
}
if(this.node){
dijit.setWaiState(this.node,"disabled","true");
}
if(this.menuItem){
this.menuItem.attr("disabled",true);
}
this._updateLabel(this.isOn());
},_updateLabel:function(_8){
var d=this.app.document;
var _9=this.label;
var _a=this.enabled?(_8?this.nls.ON_LABEL:this.nls.OFF_LABEL):this.nls.ACTION_DISABLED_TOOLTIP;
if(_9&&_9.hasChildNodes){
_9.replaceChild(d.createTextNode(_a),_9.firstChild);
}
var _b=this.enabled?(_8?this.nls.ACTION_ON:this.nls.ACTION_OFF):this.nls.ACTION_DISABLED;
var _c=this.node;
if(_c){
if(_c.hasChildNodes){
_c.replaceChild(d.createTextNode(_b),_c.firstChild);
}
_c.title=this.tooltip;
}
var _d=this.menuItem;
if(_d){
dojo.attr(_d,"label",_b);
}
},activate:function(_e){
if(!this.isOn()){
this.state="ON";
return this.app.net.putXml({url:this.url,timeout:(dojo.getObject("lconn.share0.config.services.timeout.request")||10)*1000,contentType:"application/atom+xml",postData:this._getEntryText(true),handle:dojo.hitch(this,this.handle,true,_e)});
}
},deactivate:function(_f){
if(this.isOn()){
this.state="OFF";
return this.app.net.putXml({url:this.url,timeout:(dojo.getObject("lconn.share0.config.services.timeout.request")||10)*1000,contentType:"application/atom+xml",postData:this._getEntryText(false),handle:dojo.hitch(this,this.handle,false,_f)});
}
},handle:function(_10,opt,_11,_12){
if(_11 instanceof Error){
this.handleError(_10,opt,_11);
}else{
this.handleLoad(_10,opt);
}
},handleLoad:function(_13,opt){
var msg;
if(_13){
msg={info:true,message:this.nls.INFO_SUCCESS_ON};
this.onOn();
}else{
msg={success:true,message:this.nls.INFO_SUCCESS_OFF};
this.onOff();
}
var e={following:!_13,messages:msg};
dojo.publish("lconn/share/action/completed",[e,this]);
this.onToggle();
},handleError:function(_14,opt,_15){
if(_14){
this.state="OFF";
this.onOff();
}else{
this.state="ON";
this.onOn();
}
if(_15 instanceof Error){
var _16=_15.code;
if(_16=="cancel"){
lconn.share0.util.html.alert(this.nls.CANCEL);
}else{
if(_16=="timeout"){
lconn.share0.util.html.alert(this.nls.TIMEOUT);
}else{
if(_16=="unauthenticated"){
}else{
lconn.share0.util.html.alert(this.nls.ERROR);
}
}
}
}
}});
}


;if(!dojo._hasResource["lconn.wikis.action.FollowPage"]){
dojo._hasResource["lconn.wikis.action.FollowPage"]=true;
dojo.provide("lconn.wikis.action.FollowPage");








dojo.declare("lconn.wikis.action.FollowPage",[lconn.wikis.action.AbstractFollow],{_stringsPrefix:"FOLLOW_PAGE",types:["media","comment"],constructor:function(_1,_2,_3){
this.state=_3&&_3.page&&_3.page.getNotifications&&_3.page.getNotifications().media&&_3.page.getNotifications().comment?"OFF":"ON";
this.enabled=true;
},postscript:function(){
this.inherited(arguments);
this.subscription=dojo.subscribe("lconn/wikis/follow/wiki",dojo.hitch(this,this.handleFollowWiki));
},destroy:function(){
dojo.unsubscribe(this.subscription);
},isValid:function(_4,_5){
var _6=false;
if(_5&&_5.page&&_5.page.isContentFollowingAllowed){
_6=_5.page.isContentFollowingAllowed();
}else{
if(_4&&_4.length&&_4.length>0){
for(var i=0;i<_4.length;i++){
if(_4[i].page&&_4[i].page.isContentFollowingAllowed){
_6=_4[i].page.isContentFollowingAllowed();
break;
}
}
}
}
return (_5&&_5.page&&(this.app.scene.declaredClass=="lconn.wikis.scenes.WikiPage")&&this.inherited(arguments)&&(!this.app.isCloudMode)||(this.app.isCloudMode&&_6));
},handleFollowWiki:function(_7){
},execute:function(_8,_9,e){
if(e){
dojo.stopEvent(e);
}
this.url=_9.page.getUrlEntry();
return this.inherited(arguments);
},handleLoad:function(_a,_b){
dojo.publish("lconn/wikis/follow/page",[{following:!_a}]);
this.inherited(arguments);
},_getEntryText:function(_c){
var _d=lconn.share0.util.dom.newXMLDocument("entry",lconn.share0.util.dom.ATOM_NAMESPACE,[lconn.share0.util.dom.DOCUMENTS_ATOM_NAMESPACE]);
var _e=_d.documentElement;
var _f=lconn.share0.util.dom.createElementNS(_d,"notifications",lconn.share0.util.dom.DOCUMENTS_ATOM_NAMESPACE);
dojo.forEach(this.types,dojo.hitch(this,this._setNotification,_d,_f,_c));
_e.appendChild(_f);
return lconn.wikis.util.prependXMLDeclaration(lconn.share0.util.dom.serializeXMLDocument(_d));
},_setNotification:function(doc,el,_10,_11){
var _12=lconn.share0.util.dom.createElementNS(doc,_11,lconn.share0.util.dom.DOCUMENTS_ATOM_NAMESPACE);
_12.appendChild(doc.createTextNode(_10?"off":"on"));
el.appendChild(_12);
}});
}


;if(!dojo._hasResource["lconn.wikis.action.FollowWiki"]){
dojo._hasResource["lconn.wikis.action.FollowWiki"]=true;
dojo.provide("lconn.wikis.action.FollowWiki");


dojo.declare("lconn.wikis.action.FollowWiki",[lconn.wikis.action.AbstractFollow],{_stringsPrefix:"FOLLOW_WIKI",constructor:function(_1,_2,_3){
this.state=_3&&_3.wiki&&_3.wiki.isFollowing()?"OFF":"ON";
},execute:function(_4,_5,e){
if(e){
dojo.stopEvent(e);
}
this.url=_4.getUrlEntry();
this.wikiLabel=_4.getLabel();
return this.inherited(arguments);
},handleLoad:function(_6,_7){
dojo.publish("lconn/wikis/follow/wiki",[{following:!_6,wikiLabel:this.wikiLabel}]);
this.inherited(arguments);
},onToggle:function(){
this.app.expireWikiCache();
},isValid:function(_8,_9){
var _a=false;
if(_8&&_8.isContentFollowingAllowed){
_a=_8.isContentFollowingAllowed();
}else{
if(_8&&_8.length&&_8.length>0){
for(var i=0;i<_8.length;i++){
if(_8[i].isContentFollowingAllowed){
_a=_8[i].isContentFollowingAllowed();
break;
}
}
}
}
return (!this.app.isCloudMode||(this.app.isCloudMode&&_a));
},_getEntryText:function(_b){
var _c=lconn.share0.util.dom.newXMLDocument("entry",lconn.share0.util.dom.ATOM_NAMESPACE,[lconn.share0.util.dom.DOCUMENTS_ATOM_NAMESPACE]);
var _d=_c.documentElement;
var _e=lconn.share0.util.dom.createElementNS(_c,"label",lconn.share0.util.dom.DOCUMENTS_ATOM_NAMESPACE);
_e.appendChild(_c.createTextNode(this.wikiLabel));
_d.appendChild(_e);
var _f=lconn.share0.util.dom.createElementNS(_c,"following",lconn.share0.util.dom.DOCUMENTS_ATOM_NAMESPACE);
_f.appendChild(_c.createTextNode(_b?"off":"on"));
_d.appendChild(_f);
return lconn.wikis.util.prependXMLDeclaration(lconn.share0.util.dom.serializeXMLDocument(_c));
}});
}


;if(!dojo._hasResource["lconn.wikis.FollowMenuItem"]){
dojo._hasResource["lconn.wikis.FollowMenuItem"]=true;
dojo.provide("lconn.wikis.FollowMenuItem");
dojo.declare("lconn.wikis.FollowMenuItem",null,{enabled:true,menuItem:null,action:null,constructor:function(_1){
var _2=this.action=_1.action;
this.item=_1.item;
this.opt=_1.opt;
this.enabled=_2.isEnabled();
this._strings={ON_LABEL:_2.nls.ACTION_OFF,OFF_LABEL:_2.nls.ACTION_ON,DISABLED_LABEL:_2.nls.ACTION_DISABLED};
this.label=this.enabled?this.isOn()?this._strings.ON_LABEL:this._strings.OFF_LABEL:this._strings.DISABLED_LABEL;
},isOn:function(){
return !this.action.isOn();
},activate:function(){
var _3=this.action.execute(this.item,this.opt);
return _3;
},deactivate:function(){
var _4=this.action.execute(this.item,this.opt);
return _4;
},execute:function(e){
if(e){
dojo.stopEvent(e);
}
if(!this.isEnabled()){
return;
}
try{
if(this.isOn()){
var d=this.deactivate();
d.addCallback(dojo.hitch(this,this.onDeactivate));
d.addErrback(dojo.hitch(this,this.onerror));
}else{
var d=this.activate();
d.addCallback(dojo.hitch(this,this.onActivate));
d.addErrback(dojo.hitch(this,this.onerror));
}
}
catch(e){
console.error("lconn.wikis.FollowMenuItem: exception: "+e);
}
finally{
this._updateLabel();
}
},onerror:function(){
this._updateLabel();
this.onError();
},onActivate:function(){
},onDeactivate:function(){
},onError:function(){
},setEnabled:function(_5){
this.enabled=_5;
this._updateLabel();
},setMenuItem:function(_6){
this.menuItem=_6;
if(this.action.setMenuItem){
this.action.setMenuItem(_6);
}
this._updateLabel();
},isEnabled:function(){
return this.action?this.action.isEnabled():this.enabled;
},_updateLabel:function(){
this.label=this.isEnabled()?this.isOn()?this._strings.ON_LABEL:this._strings.OFF_LABEL:this._strings.DISABLED_LABEL;
if(this.menuItem){
dojo.attr(this.menuItem,"label",this.label);
this.menuItem.attr("disabled",!this.isEnabled());
}
}});
}


;if(!dojo._hasResource["lconn.share0.scenes.ChannelTagList"]){
dojo._hasResource["lconn.share0.scenes.ChannelTagList"]=true;
dojo.provide("lconn.share0.scenes.ChannelTagList");




dojo.declare("lconn.share0.scenes.ChannelTagList",[lconn.share0.widget.TagList],{renderTag:function(d,el,_1,_2,_3){
var li=d.createElement("li");
dijit.setWaiState(li,"selected","false");
li.className="qkrTagRank"+_1.rank;
if(_3){
dojo.addClass(li,"lotusSelected");
dijit.setWaiState(li,"selected","true");
}else{
if(!this.isRankVisible(_1.rank)){
dojo.addClass(li,"lotusHidden");
}
}
if(this.generateLinkToTag){
var _4=d.createElement("span");
_4.className="lotusLeft";
var a=d.createElement("a");
this.generateLinkToTag(_1.name,a);
a.appendChild(d.createTextNode(_1.name));
a.title=_1.name;
_4.appendChild(a);
li.appendChild(_4);
li.appendChild(d.createTextNode((_1.weight||_1.weight===0)?dojo.number.format(Math.max(_1.weight,0)):"\xa0"));
if(_3&&this.generateLinkWithoutTag){
var a=d.createElement("a");
a.title=this._appstrings.CONTENT.REMOVE_FILTER_TOOLTIP;
this.generateLinkWithoutTag(_1.name,a);
var _5=d.createElement("img");
_5.className="lconnSprite lconnSprite-iconDelete12";
dijit.setWaiRole(_5,"presentation");
_5.alt=a.title;
_5.src=dijit._Widget.prototype._blankGif;
a.appendChild(_5);
var _6=d.createElement("span");
_6.className="lotusAltText";
_6.appendChild(d.createTextNode("X"));
a.appendChild(_6);
li.appendChild(a);
}
}else{
var _7=d.createElement("span");
_7.className="lotusLeft";
_7.appendChild(d.createTextNode(_1.name));
_7.title=_1.name;
li.appendChild(_7);
li.appendChild(d.createTextNode((_1.weight||_1.weight==0)?dojo.number.format(Math.max(_1.weight,0)):"\xa0"));
}
el.appendChild(li);
},renderTagForCloud:function(d,el,_8,_9,_a,tc){
var li=d.createElement("li");
dijit.setWaiState(li,"selected","false");
li.className="qkrTagRank"+_8.rank;
if(_a){
dojo.addClass(li,"lotusSelected");
dijit.setWaiState(li,"selected","true");
}else{
if(!this.isRankVisible(_8.rank)){
dojo.addClass(li,"lotusHidden");
}
}
var _b=12;
var _c="lotusF"+tc;
if(this.generateLinkToTag){
if(!_a){
var a=d.createElement("a");
dojo.addClass(a,_c);
this.generateLinkToTag(_8.name,a);
if(this.dialog){
dojo.connect(a,"onclick",this,"cancel");
}
lconn.share0.util.html.createWrappableText(d,a,_8.name,_b);
a.title=_8.name;
li.appendChild(a);
li.appendChild(d.createTextNode(" "));
}else{
var _d=d.createElement("span");
if(_8.name.length<_b){
_d.className="lotusNowrap";
}
var a=d.createElement("a");
dojo.addClass(a,_c);
dojo.addClass(a,"lotusTag");
this.generateLinkToTag(_8.name,a,true);
if(this.dialog){
dojo.connect(a,"onclick",this,"cancel");
}
lconn.share0.util.html.createWrappableText(d,a,_8.name,_b);
a.title=_8.name;
_d.appendChild(a);
if(this.generateLinkWithoutTag){
_d.appendChild(d.createTextNode(lconn.share0.util.html.getDirectionCode()));
var a=d.createElement("a");
a.title=this._appstrings.CONTENT.REMOVE_FILTER_TOOLTIP;
this.generateLinkWithoutTag(_8.name,a);
var _e=d.createElement("img");
_e.className="lconnSprite lconnSprite-iconDelete12";
dijit.setWaiRole(_e,"presentation");
_e.alt=a.title;
_e.src=dijit._Widget.prototype._blankGif;
a.appendChild(_e);
var _f=d.createElement("span");
_f.className="lotusAltText";
_f.appendChild(d.createTextNode("X"));
a.appendChild(_f);
_d.appendChild(a);
}
li.appendChild(_d);
li.appendChild(d.createTextNode(" "));
}
}else{
var _d=d.createElement("span");
dojo.addClass(_d,className);
_d.className="lotusLeft";
lconn.share0.util.html.createWrappableText(d,_d,_8.name,_b);
_d.title=_8.name;
li.appendChild(_d);
}
el.appendChild(li);
}});
}


;if(!dojo._hasResource["lconn.wikis.widget.TagStream"]){
dojo._hasResource["lconn.wikis.widget.TagStream"]=true;
dojo.provide("lconn.wikis.widget.TagStream");




dojo.declare("lconn.wikis.widget.TagStreamRenderer",[lconn.share0.widget.TagStreamRenderer],{minimalPaging:true,initialTagCloud:dojo.getObject("lconn.share0.config.services.tagList.maxResults")||200,displayCloud:function(_1,_2){
},render:function(_3,el,_4,_5){
this.updatePaging(_3,el,_4);
this.cleanup();
lconn.share0.util.html.removeChildren(el);
dojo.addClass(el,"lotusDialogContent");
dojo.addClass(el,"lotusTagCloud");
dijit.setWaiRole(el,"navigation");
dijit.setWaiState(el,"controls","lotusContent");
if(_4.json.items.length==0){
this.renderEmpty(_3,el,_4);
}else{
this.loadTags(_4.json.items);
this.displayCloud(el,this.tags);
}
},loadTags:function(_6){
if(_6){
var _7=dojo.clone(_6);
this.tags=_7.slice(0,Math.min(_7.length,this.initialTagCloud));
var _8=this.tags.length;
this._minimumVisibleRank=0;
this._defaultVisibleRank=0;
for(var i=0;i<_8;i++){
var _9=Math.floor(((i+1)*100)/_8);
if(i<this.minimumVisible&&_9>this._minimumVisibleRank){
this._minimumVisibleRank=_9;
}
if(i<this.defaultVisible&&_9>this._defaultVisibleRank){
this._defaultVisibleRank=_9;
}
this.tags[i].rank=_9;
}
}
}});
dojo.declare("lconn.wikis.widget.TagStream",[lconn.share0.widget.TagStream],{renderer:new lconn.wikis.widget.TagStreamRenderer()});
}


;if(!dojo._hasResource["lconn.wikis.widget.TagList"]){
dojo._hasResource["lconn.wikis.widget.TagList"]=true;
dojo.provide("lconn.wikis.widget.TagList");








dojo.declare("lconn.wikis.widget.TagList",[lconn.share0.scenes.ChannelTagList],{initialTagList:10,renderMenu:function(_1){
var d=document;
var _2=this.tags;
var el=this.domNode;
if(this.menuNode){
while(this.menuNode.firstChild){
this.menuNode.removeChild(this.menuNode.firstChild);
}
this.menuNode.parentNode.removeChild(this.menuNode);
this.menuNode=null;
}
if(!this.hasTags){
return;
}
var _3=this.menuNode=d.createElement("p");
_3.className="lotusChunk";
var ul=d.createElement("ul");
ul.className="lotusActions lotusInlinelist";
dijit.setWaiRole(ul,"presentation");
var li=d.createElement("li");
li.className="lotusFirst";
li.appendChild(d.createTextNode(this._strings.VIEW_AS));
li.appendChild(d.createTextNode(" "));
if(!_1){
ul.appendChild(li);
var li=d.createElement("li");
li.appendChild(d.createTextNode(this._strings.CLOUD));
li.className="qkrActiveTagView lotusFirst";
}else{
var a=d.createElement("a");
a.href="javascript:;";
dojo.connect(a,"onclick",dojo.hitch(this,this.update,"cloud"));
a.appendChild(d.createTextNode(this._strings.CLOUD));
a.title=this._strings.CLOUD_TITLE;
li.appendChild(a);
}
ul.appendChild(li);
var li=d.createElement("li");
if(_1){
li.appendChild(d.createTextNode(this._strings.LIST));
li.className="qkrActiveTagView";
}else{
var a=d.createElement("a");
a.href="javascript:;";
dojo.connect(a,"onclick",dojo.hitch(this,this.update,"list"));
a.appendChild(d.createTextNode(this._strings.LIST));
a.title=this._strings.LIST_TITLE;
li.appendChild(a);
}
ul.appendChild(li);
var li=d.createElement("li");
var _4=d.createElement("img");
_4.className="lconnSprite lconnSprite-iconPopup16";
_4.src=dijit._Widget.prototype._blankGif;
_4.setAttribute("alt",this._strings.OPEN);
li.appendChild(_4);
var a=d.createElement("a");
a.href="javascript:;";
dojo.connect(a,"onclick",dojo.hitch(this,this.renderAllPopup));
a.appendChild(d.createTextNode(this._strings.ALL));
a.title=this._strings.ALL_TITLE;
li.appendChild(a);
ul.appendChild(li);
_3.appendChild(ul);
el.appendChild(_3);
},createDialog:function(_5){
var d=document;
var _6=this.tags;
var _7=d.createElement("div");
_7.className="lotusDialogBorder";
_7.style.width=this.wDialog;
var el=d.createElement("div");
el.className="lotusDialog";
var h1=d.createElement("h1");
var a=lconn.share0.actions.createCancelButton(d,this._strings.CANCEL);
dojo.connect(a,"onclick",this,"cancel");
h1.appendChild(a);
h1.appendChild(d.createTextNode(this._strings.POPUPTITLE));
el.appendChild(h1);
var _8=d.createElement("div");
var _9=d.createElement("div");
_8.appendChild(_9);
el.appendChild(_8);
_7.appendChild(el);
_5.setContent(_7);
var _a=dojo.mixin({sK:"name",sO:"asc",includeCount:true,pageSize:this.initialAllTagCount},this.tagScope);
var _b=lconn.share0.util.uri.rewriteUri(this.url,_a);
this.tagStream=new lconn.wikis.widget.TagStream({_strings:this._strings,url:_b,net:this.net,handleAs:"json-comment-optional",displayCloud:dojo.hitch(this,this.displayCloud),onUpdate:dojo.hitch(_5,_5.layout)},_9);
this.tagStream.update();
}});
}


;if(!dojo._hasResource["lconn.wikis.widget.WikisTagCloud"]){
dojo._hasResource["lconn.wikis.widget.WikisTagCloud"]=true;
dojo.provide("lconn.wikis.widget.WikisTagCloud");


dojo.declare("lconn.wikis.widget.WikisTagCloud",[lconn.core.CommonTags.TagWidget],{postCreate:function(){
dojo.attr(this._noTags,"tabindex",0);
dijit.setWaiRole(this._noTags,"document");
dijit.setWaiState(this._noTags,"label",this._noTags.innerHTML);
dijit.setWaiRole(this._normalTagsSection,"navigation");
this.inherited(arguments);
},_createTypeAhead:function(){
var _1=dijit.byId(this.id+"commonTagsTypeAhead");
if(_1!=null){
_1.destroy();
}
var _2={minChars:2,searchDelay:400,multipleValues:true,hideEmptyResults:true,hint:this.rs_searchInputDefault,store:this.typeAheadDataStore,token:" ","name":this.id+"commonTagsTypeAhead","id":this.id+"commonTagsTypeAhead",formatItem:function(_3,_4){
if(_3.name){
return _3.name;
}else{
return _3;
}
}};
var _5=new lconn.core.CommonTags.CommonTagsTypeAhead(_2,this._typeAheadDom);
},destroy:function(){
dijit.focus(document.body);
this.inherited(arguments);
}});
dojo.declare("lconn.wikis.widget.WikisTagCloud.WikisAjaxCall",null,{TAG_URL:"",REDIRECT_URL:"",TAG_TEMPLATE:"",URL_PARAMETERS:null,HANDLE_AS:"json",wikiLabel:null,isMine:null,isGlobal:null,net:null,sceneParams:null,routes:null,userId:null,app:null,constructor:function(_6){
dojo.mixin(this,_6);
},getTags:function(_7,_8,_9){
var _a={wikiLabel:this.wikiLabel,isMine:this.isMine,isGlobal:this.isGlobal,pageSize:50};
this.net.getJson({url:this.routes.getTagServiceUrl(_a),timeout:30000,handle:dojo.hitch(this,this.processTags,_7),error:dojo.hitch(this,this.handleError)});
},processTags:function(_b,_c){
var _d=_c.items;
var _e,_f;
for(var i=0,tag;tag=_d[i++];){
tag.frequency=tag.weight;
if(tag.weight>=0){
if(!(_e>=0)||_e>tag.weight){
_e=tag.weight;
}
if(!(_f>=0)||_f<tag.weight){
_f=tag.weight;
}
}
}
var _10=_f-_e;
var _11=_10==0?0:(1/_10);
var _12=1;
var _13=5;
while(_10<_13-_12){
if(_10<_13-++_12){
_13--;
}
}
for(var i=0,tag;tag=_d[i++];){
var _14=tag.weight>=0?((tag.weight-_e)*_11):0.5;
tag.intensityBin=_12+Math.round((_13-_12)*_14);
}
_b(_d||[]);
},redirect:function(_15){
var p=this.sceneParams||{};
p.tag=_15.split(" ");
var app=this.app;
var _16=this.routes;
p.wikiLabel=p.wikiLabel||app.scene.wikiLabel;
var url=this.isGlobal?(this.isMine?_16.getMyWikisUrl(p):_16.getPublicWikisUrl(p)):_16.getPageIndexUrl(p.wikiLabel,p);
app.navigate(url);
},handleError:function(){
}});
}


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












































dojo.requireLocalization("lconn.wikis","ui");
var _nls=lconn.share0.scenes.nls=dojo.i18n.getLocalization("lconn.wikis","ui");
lconn.wikis.scenes.WIKI_VIEWS=[{id:"summary",name:_nls.VIEWS.SUMMARY,tooltip:_nls.VIEWS.WIKI_SUMMARY_TOOLTIP,img:"Summary"},{id:"details",name:_nls.VIEWS.DETAILS,tooltip:_nls.VIEWS.WIKI_DETAILS_TOOLTIP,img:"Details"}];
lconn.wikis.scenes.WIKIPAGE_VIEWS=[{id:"summary",name:_nls.VIEWS.SUMMARY,tooltip:_nls.VIEWS.PAGE_SUMMARY_TOOLTIP,img:"Summary"},{id:"details",name:_nls.VIEWS.DETAILS,tooltip:_nls.VIEWS.PAGE_DETAILS_TOOLTIP,img:"Details"}];
lconn.wikis.scenes.MEMBER_VIEWS=[{id:"summary",name:_nls.VIEWS.SUMMARY,tooltip:_nls.VIEWS.MEMBERS_SUMMARY_TOOLTIP,img:"Summary"},{id:"details",name:_nls.VIEWS.DETAILS,tooltip:_nls.VIEWS.MEMBERS_DETAILS_TOOLTIP,img:"Details"}];
lconn.wikis.scenes.SEARCH_MENU_ITEMS=[["ALL","searchAllAreas"],["ACTIVITIES","searchActivities"],["PROFILES","searchProfiles"],["BLOGS","searchBlogs"],["DOGEAR","searchDogear"],["COMMUNITIES","searchCommunities"],["WIKIS","searchWikis"],["FILES","searchFiles"]];
lconn.wikis.scenes.MEMBER_FILTERS={TYPE:[{id:"user",name:_nls.FILTERS.MEMBER_TYPE.USER,longName:_nls.FILTERS.MEMBER_TYPE.USER_LONG,tooltip:_nls.FILTERS.MEMBER_TYPE.USER_TOOLTIP,setServiceOptions:function(_1){
_1.type="user";
},removeAppParams:function(_2){
_2.type=["user","group"];
}},{id:"group",name:_nls.FILTERS.MEMBER_TYPE.GROUP,longName:_nls.FILTERS.MEMBER_TYPE.GROUP_LONG,tooltip:_nls.FILTERS.MEMBER_TYPE.GROUP_TOOLTIP,setServiceOptions:function(_3){
_3.type="group";
},removeAppParams:function(_4){
_4.type=["user","group"];
}}],ROLE:[{id:"reader",name:_nls.FILTERS.MEMBER_ROLE.READER,longName:_nls.FILTERS.MEMBER_ROLE.READER_LONG,tooltip:_nls.FILTERS.MEMBER_ROLE.READER_TOOLTIP,setServiceOptions:function(_5){
_5.role="reader";
},removeAppParams:function(_6){
delete _6.role;
}},{id:"editor",name:_nls.FILTERS.MEMBER_ROLE.EDITOR,longName:_nls.FILTERS.MEMBER_ROLE.EDITOR_LONG,tooltip:_nls.FILTERS.MEMBER_ROLE.EDITOR_TOOLTIP,setServiceOptions:function(_7){
_7.role="editor";
},removeAppParams:function(_8){
delete _8.role;
}},{id:"owner",name:_nls.FILTERS.MEMBER_ROLE.OWNER,longName:_nls.FILTERS.MEMBER_ROLE.OWNER_LONG,tooltip:_nls.FILTERS.MEMBER_ROLE.OWNER_TOOLTIP,setServiceOptions:function(_9){
_9.role="manager";
},removeAppParams:function(_a){
delete _a.role;
}}]};
lconn.wikis.scenes.getSiteTools=function(_b){
if(!lconn.wikis.scenes.SITE_TOOLS){
var _c=_b.nls.SITE_TOOLS;
lconn.wikis.scenes.SITE_TOOLS=[{id:"index",label:_c.INDEX.LABEL,title:_c.INDEX.HOVER,isActive:function(_d,_e){
return (_e.declaredClass=="lconn.wikis.scenes.PagesIndex"||_e.declaredClass=="lconn.wikis.scenes.MyPages"||_e.declaredClass=="lconn.wikis.scenes.PersonalPages");
},isValid:function(_f,_10){
return true;
},func:function(app,_11,_12){
return _12.getPageIndexUrl(_11.wikiLabel);
}},{id:"members",label:_c.MEMBERS.LABEL,title:_c.MEMBERS.HOVER,isActive:function(app,_13){
return _13.declaredClass=="lconn.wikis.scenes.Members";
},isValid:function(app,_14){
return _14.wiki&&!_14.wiki.isCommunityWiki();
},func:function(app,_15,_16){
return _16.getManageMembersUrl(_15.wikiLabel);
}},{id:"trash",label:_c.RECYCLE_BIN.LABEL,title:_c.RECYCLE_BIN.HOVER,isActive:function(app,_17){
return _17.declaredClass=="lconn.wikis.scenes.RecycleBin";
},iconClass:"lconnSprite lconnSprite-iconRecycle",isValid:function(app,_18){
return dojo.getObject("lconn.share0.config.features.trash");
},func:function(app,_19,_1a){
return _1a.getRecycleBinUrl(_19.wikiLabel);
}}];
}
return lconn.wikis.scenes.SITE_TOOLS;
};
lconn.wikis.scenes.applySiteTools=function(d,el,app,_1b){
var _1c=lconn.wikis.scenes.getSiteTools(app);
var _1d=dojo.filter(_1c,function(_1e){
return _1e.isValid(app,_1b);
});
if(_1d.length>0){
var ul=d.createElement("ul");
ul.className="lotusMeta";
dijit.setWaiRole(ul,"toolbar");
dijit.setWaiState(ul,"label","toolbar container");
for(var i=0;i<_1d.length;i++){
var _1f=_1d[i];
var _20=(_1f.onclick)?dojo.hitch(null,_1f.onclick,app,_1b):null;
var li=d.createElement("li");
var e=d.createElement("a");
e.id="lconn_wikis_scenes_SiteTools_"+_1f.id;
e.appendChild(d.createTextNode(_1f.label));
e.className="lotusLink bidiAware";
e.setAttribute("_lconn_focus","true");
dijit.setWaiRole(e,"button");
dijit.setWaiState(e,"label",_1f.label);
if(_1f.func!=null){
lconn.share0.scenes.setOnClick(e,app,_1f.func(app,_1b,app.routes),_20);
}else{
if(_20){
lconn.share0.scenes.setOnClick(e,app,"",_20);
}
e.href="javascript:;";
}
li.appendChild(e);
if(_1f.isActive(app,_1b)){
dojo.addClass(li,"lotusSelected");
dijit.setWaiState(e,"pressed","true");
}else{
dijit.setWaiState(e,"pressed","false");
}
ul.appendChild(li);
}
el.appendChild(ul);
var tb=new lconn.core.aria.Toolbar(ul);
if(_1b.widgets){
_1b.widgets.push(tb);
}
}
return _1d.length>0;
};
lconn.share0.scenes.getSearchScopes=function(app){
if(lconn.share0.scenes.SEARCH_SCOPES){
return lconn.share0.scenes.SEARCH_SCOPES;
}
var nls=app.nls.CONNSEARCH;
var lss=lconn.share0.scenes.SEARCH_SCOPES=[{id:"thiswiki",label:nls.SCOPE_THISWIKI.LABEL,title:nls.SCOPE_THISWIKI.HOVER,iconClass:"lconnSprite lconnSprite-iconWikis16",hintText:nls.HINT,isValid:function(app,_21){
if(_21&&_21.wikiLabel){
this.wikiLabel=_21.wikiLabel;
}
return _21.wikiLabel&&lconn.share0.config.services.connections.enabled.search;
},onSearch:function(_22){
app.navigate(app.routes.getSearchUrl(_22,"this",this.wikiLabel));
}},{id:"mywikis",label:nls.SCOPE_MYWIKIS.LABEL,title:nls.SCOPE_MYWIKIS.HOVER,iconClass:"lconnSprite lconnSprite-iconWikis16",hintText:nls.HINT,isValid:function(app,_23){
return app.authenticatedUser&&lconn.share0.config.services.connections.enabled.search&&!app.isCloudMode;
},onSearch:function(_24){
app.navigate(app.routes.getSearchUrl(_24,"my"));
}},{id:"publicwikis",label:nls.SCOPE_PUBLICWIKIS.LABEL,title:nls.SCOPE_PUBLICWIKIS.HOVER,iconClass:"lconnSprite lconnSprite-iconWikis16",hintText:nls.HINT,isValid:function(app,_25){
return lconn.share0.config.services.connections.enabled.search&&!app.isCloudMode;
},onSearch:function(_26,_27){
app.navigate(app.routes.getSearchUrl(_26,"public"));
}},{id:"allwikis",label:nls.SCOPE_ALLWIKIS.LABEL,title:nls.SCOPE_ALLWIKIS.HOVER,iconClass:"lconnSprite lconnSprite-iconWikis16",hintText:nls.HINT,isValid:function(app,_28){
return app.authenticatedUser&&lconn.share0.config.services.connections.enabled.search&&!app.isCloudMode;
},onSearch:function(_29){
app.navigate(app.routes.getSearchUrl(_29,"all"));
}},{id:"gotowiki",typeahead:"wikis",label:nls.SCOPE_GOTOWIKI.LABEL,title:nls.SCOPE_GOTOWIKI.HOVER,iconClass:"lconnSprite lconnSprite lconnSprite-iconWikis16",hintText:nls.SCOPE_GOTOWIKI.HINT,onSelect:dojo.partial(lconn.share0.scenes.onSelectWiki,app),isValid:function(app,_2a){
return !app.isCloudMode;
},onSearch:dojo.partial(lconn.share0.scenes.onSearchWiki,app)},{separator:true,isValid:function(app,_2b){
return lconn.share0.config.services.connections.enabled.search;
}},{id:"all",label:nls.SCOPE_CONNECTIONS_ALL.LABEL,title:nls.SCOPE_CONNECTIONS_ALL.HOVER,iconClass:"lconnSprite lconnSprite-iconConnections16",hintText:nls.HINT,onSearch:dojo.partial(lconn.share0.scenes.onSearchConnectionsComponent,app),isValid:function(app,_2c){
return lconn.share0.config.services.connections.enabled.search;
}}];
var _2d=dojo.getObject("lconn.share0.config.services.connections.search.externalSearchScopes")||[];
if(_2d.length){
lss.push({separator:true,isValid:function(app,_2e){
return true;
}});
for(var i=0;i<_2d.length;i++){
var se=_2d[i];
lss.push({id:"custom"+i,label:se.label||"",title:se.label||"",iconClass:se.iconClass||"",onSearch:dojo.partial(lconn.share0.scenes.onExternalScopeSearch,app,se.action,se.param||"query"),isValid:function(app,_2f){
return true;
}});
}
}
lss.push({separator:true,isValid:function(app,_30){
return lconn.share0.config.services.connections.enabled.search;
}},{id:"advanced",label:nls.SCOPE_CONNECTIONS_ADVANCED.LABEL,title:nls.SCOPE_CONNECTIONS_ADVANCED.HOVER,iconClass:"",onClick:function(app){
app.navigate(app.routes.getConnectionsSearchUrl(null,{advanced:true}));
},isValid:function(app,_31){
return lconn.share0.config.services.connections.enabled.search;
}});
return lss;
};
lconn.wikis.scenes.showWikiError=function(app,_32,_33){
var _34=app.routes;
var _35=app.authenticatedUser;
var d=app.document;
d.title=app.nls.WINDOWTITLE.WIKIPAGEERROR;
var _36=[];
if(!_35){
_36.push([dojo.string.substitute(app.nls.DOCUMENTCONTENT.ERRORS.LOGIN),app.getUrl(),"login"]);
}
var _37=false;
var _38=true;
var _39=app.nls.WIKIPAGE.ERROR.DEFAULT;
if(_33){
if(_33.code=="AccessDenied"){
if(!_35){
_32.clearBeforeNavigate=false;
_38=false;
app.login(null,{redirect:true});
}else{
_39=app.nls.WIKIPAGE.ERROR.ACCESS_DENIED;
}
_37=true;
}else{
if(_33.code=="ItemNotFound"){
_39=app.nls.WIKIPAGE.ERROR.WIKI;
}
}
}
if(_38){
if(_37){
lconn.share0.scenes.applyGenericWarning(app,_39.TITLE,_39.MESSAGES,_36);
}else{
lconn.share0.scenes.applyGenericError(app,_39.TITLE,_39.MESSAGES,_36);
}
}
d.body.style.visibility="visible";
};
lconn.share0.scenes.createSearchButton=function(d,el,id,_3a){
var _3b=d.createElement("span");
_3b.className="lotusBtnImg";
_3b.title=_3a;
var _3c=d.createElement("INPUT");
if(id){
_3c.id=id;
}
_3c.className="lotusSearchButton";
_3c.type="image";
_3c.title=_3c.alt=_3a;
_3c.src=dijit._Widget.prototype._blankGif;
_3b.appendChild(_3c);
var _3d=d.createElement("a");
_3d.className="lotusAltText";
_3d.appendChild(d.createTextNode(_3a));
_3d.href="javascript:;";
dojo.connect(_3d,"onclick",function(){
try{
_3c.click();
}
catch(e){
}
});
_3b.appendChild(_3d);
if(el){
el.appendChild(_3b);
}
return _3c;
};
lconn.share0.scenes.onSearchWiki=function(app,_3e,opt){
var _3f={searchString:_3e};
dojo.xhrGet({url:app.wikiTypeAheadStore.url,content:_3f,handleAs:"json-comment-optional",timeout:5000,load:dojo.hitch(app,function(_40){
var _41=_40.items[0];
if(_41&&_41.label){
app.navigate(app.routes.getWikiUrl(_41.label));
}else{
var msg={info:true,message:this.nls.EDIT_WIKI.ERROR_LOAD.NOT_FOUND_ERROR};
var e={search:true,messages:msg};
dojo.publish("lconn/share/action/completed",[e,this]);
}
}),error:function(){
var msg={info:true,message:this.nls.EDIT_WIKI.ERROR_LOAD.NOT_FOUND_ERROR};
var e={search:true,messages:msg};
dojo.publish("lconn/share/action/completed",[e,this]);
}});
};
lconn.share0.scenes.onSelectWiki=function(app,_42){
if(_42&&_42.label){
app.navigate(app.routes.getWikiUrl(_42.label));
}
};
lconn.share0.scenes.onSearchConnectionsComponent=function(app,_43){
app.navigate(app.routes.getConnectionsSearchUrl(_43,{component:this.component}));
};
lconn.share0.scenes.onExternalScopeSearch=function(app,url,_44,_45){
app.navigate(url+lconn.share0.util.uri.encodeUriComponent(_45));
};
lconn.wikis.scenes.addFrame=function(_46,_47){
_46.appendChild(_47);
};
lconn.wikis.scenes.applyHomeTemplate=function(d,_48,app,_49,opt){
if(lconn.core.config.services.connectionsmail){
if(lconn.wikis.scenes.resetLotusMainForICM(d,app)){
return;
}
}
var old=lconn.share0.scenes.resetLotusFrame(d,app);
var _4a=old.frame;
var _4b=d.createElement("div");
if(!app.isCloudMode){
dijit.setWaiRole(_4b,"banner");
}
if(old["lotusBanner"]){
_4b.appendChild(old["lotusBanner"]);
}else{
throw "Header was not in the DOM when wiki.scenes.applyHomeTemplate was called";
}
var el=d.createElement("div");
el.id="lotusTitleBar";
el.className="lotusTitleBar";
lconn.wikis.scenes.applyTitleBar(d,el,app,opt);
_4b.appendChild(el);
var el=d.createElement("div");
el.id="lotusPlaceBar";
el.className="lotusPlaceBar";
el.style.display="none";
_4b.appendChild(el);
_4a.appendChild(_4b);
var el=d.createElement("div");
el.id=el.className="lotusMain";
_4a.appendChild(el);
if(old["lotusColLeft"]){
el.appendChild(old["lotusColLeft"]);
}
if(old["lotusFooter"]){
_4a.appendChild(old["lotusFooter"]);
}else{
throw "Footer was not in the DOM when wiki.scenes.applyHomeTemplate was called";
}
var _4c=app.getWiki();
if(_4c){
lconn.wikis.scenes.applyTheme(app,_4c.getThemeName());
}else{
lconn.wikis.scenes.applyTheme(app,null);
}
window.scroll(0,0);
app.reusable=old;
};
lconn.wikis.scenes.itemClicked=function(_4d){
lconn.wikis.scenes.searchComponent=_4d;
var _4e=dijit.byId("searchCombo");
if(_4e){
_4e.setLabel(_nls.SEARCH[_4d]);
dojo.removeClass(_4e.iconNode,_4e.iconNode.getAttribute("class"));
dojo.addClass(_4e.iconNode,"baseIcon search"+_4d.toLowerCase());
}
};
lconn.wikis.scenes.createFilterSectionBefore=function(app,el,_4f,_50,_51,f,_52,_53,_54){
var d=app.d;
var div=this.createFilterFrameBefore(app,el,_4f,_50,_53,_54);
var ul=d.createElement("ul");
ul.className="lotusList lotusEditable lotusMeta lotusTags";
for(var i=0;i<_51.length;i++){
lconn.share0.scenes.applyFilterList(app,ul,_51[i],(i==_52),f,"lotusLeft lotusTag");
ul.lastChild.appendChild(d.createTextNode("\xa0"));
}
div.appendChild(ul);
return div;
};
lconn.wikis.scenes.createFilterFrameBefore=function(app,el,_55,_56,_57,_58){
var d=app.d;
var _59=d.createElement("div");
_59.id="filter_"+_56;
_59.className="lotusSection";
dijit.setWaiRole(_59,"region");
dijit.setWaiState(_59,"expanded",_57?"false":"true");
if(!el.firstChild){
dojo.addClass(_59,"lotusFirst");
}
var _5a=lconn.share0.actions.createInvisibleLabel(d,_59,_57?app.nls.ACCESSIBILITY.LABELS.SECTION.COLLAPSED:app.nls.ACCESSIBILITY.LABELS.SECTION.EXPANDED);
dijit.setWaiState(_5a,"live","polite");
_5a.id="label_"+_59.id;
var h3=d.createElement("h2");
var _5b=dojo.string.substitute(app.nls.TOGGLE_SECTION_NAMED,[_55]);
var a=d.createElement("A");
a.title=_5b;
a.href="javascript:;";
a.className="lotusSprite lotusArrow"+(_57?" lotusTwistyClosed":" lotusTwistyOpen");
dojo.connect(a,"onclick",dojo.hitch(null,lconn.share0.scenes.toggleSection,app.nls.ACCESSIBILITY.LABELS.SECTION,_56));
var _5c=d.createElement("span");
_5c.className="lotusHidden";
_5c.appendChild(d.createTextNode(_5b));
a.appendChild(_5c);
var _5d=d.createElement("span");
_5d.className="lotusAltText";
_5d.appendChild(d.createTextNode(_57?(dojo._isBodyLtr()?"\u25b6":"\u25c0"):"\u25bc"));
a.appendChild(_5d);
h3.appendChild(a);
var _5e=d.createElement("SPAN");
_5e.className="lotusLeft";
_5e.style.cursor="pointer";
_5e.id="label_"+_55;
dijit.setWaiState(_59,"labelledBy",_5e.id);
_5e.appendChild(d.createTextNode(_55));
dojo.connect(_5e,"onclick",dojo.hitch(null,lconn.share0.scenes.toggleSection,app.nls.ACCESSIBILITY.LABELS.SECTION,_56));
_5e.title=lconn.share0.scenes.nls.TOGGLE_SECTION;
h3.appendChild(_5e);
if(_56){
var a=lconn.share0.scenes.createHelpLink(app,h3,_56);
a.className="lotusRight";
}
_59.appendChild(h3);
var div=d.createElement("div");
div.style.display=_57?"none":"";
div.className="lotusSectionBody";
_59.appendChild(div);
lconn.share0.util.dom.insertBefore(el,_59,_58);
return div;
};
lconn.wikis.scenes.applyTitleBar=function(d,el,app,opt){
var _5f=app.authenticatedUser;
var _60=app.routes;
var _61=opt&&opt.activeTab?opt.activeTab:null;
var _62=opt&&opt.scene?opt.scene:app.scene;
var _63=d.createElement("div");
_63.className="lotusRightCorner";
var _64=d.createElement("div");
_64.className="lotusInner";
var h2=d.createElement("h2");
h2.className="lotusHeading";
var img=d.createElement("img");
if(_62.wiki&&_62.wiki.isCommunityWiki()){
img.className="iconsComponentsBlue24 iconsComponentsBlue24-CommunitiesBlue24 ";
}else{
img.className="iconsComponentsBlue24 iconsComponentsBlue24-WikisBlue24 ";
}
img.src=dijit._Widget.prototype._blankGif;
img.setAttribute("alt","");
dijit.setWaiRole(img,"presentation");
h2.appendChild(img);
var a=d.createElement("a");
if(_62.wiki&&_62.wiki.isCommunityWiki()){
a.appendChild(d.createTextNode(app.nls.HEADER.COMMUNITIES));
}else{
a.appendChild(d.createTextNode(app.nls.HEADER.WIKIS));
}
a.href=_60.getGlobalHomeUrl();
h2.appendChild(a);
_64.appendChild(h2);
var _65=d.createElement("FORM");
_64.appendChild(_65);
if(lconn.share0.config.services.connections.enabled.search){
var _66=lconn.share0.scenes.getSearchScopes(app);
var _67=_66[0].id;
if(opt&&opt.defaultSearchScope){
_67=opt.defaultSearchScope;
}
new lconn.share0.widget.SearchBox({app:app,scene:app.scene,defaultSearchScope:_67,scopes:_66,_strings:app.nls.CONNSEARCH},_65);
}
_63.appendChild(_64);
el.appendChild(_63);
};
lconn.wikis.scenes.search=function(app,_68,inp,e){
dojo.stopEvent(e);
var _69=inp.value;
var _6a=lconn.wikis.scenes.searchComponent.toLowerCase();
if(_6a=="wikis"){
app.navigate(_68.getSearchUrl(_69));
}else{
app.navigate(_68.getConnectionsSearchUrl(_69,{component:_6a}));
}
};
lconn.wikis.scenes.applyPlaceBar=function(d,_6b,_6c,_6d,_6e,app,_6f,_70,_71){
var _72=d.getElementById("lotusPlaceBar");
_72.style.display="";
var _73=d.createElement("div");
_73.className="lotusRightCorner";
var _74=d.createElement("div");
_74.className="lotusInner";
var _75=d.createElement("H2");
if(_71){
var a=d.createElement("a");
a.className="bidiAware";
a.appendChild(d.createTextNode(_6e));
var url=_6f.getWikiUrl(app.scene.wikiLabel,{});
lconn.share0.scenes.setOnClick(a,app,url);
_75.appendChild(a);
}else{
_75.appendChild(d.createTextNode(_6e));
}
_74.appendChild(_75);
var _76=_70.wiki;
if(_76){
var _77=d.createElement("div");
dijit.setWaiRole(_77,"region");
dojo.addClass(_77,"lotusTitleBarExt");
dijit.setWaiState(_77,"label",app.nls.ACCESSIBILITY.LABELS.WIKIPAGE.ACTIONSMENU);
var _78=d.createElement("ul");
dojo.addClass(_78,"lotusInlinelist lotusRight lotusActions");
dijit.setWaiRole(_78,"toolbar");
dijit.setWaiState(_78,"label","Page title toolbar container");
var opt={};
var _79=dojo.getObject("lconn.share0.config.actions.wiki");
var _7a=_70.wikiActions=(_79)?_79(app,_70,{following:_76.isFollowing()}):[];
for(var i=0;i<_7a.length;i++){
var _7b=_7a[i];
if(_7b.isValid(_76,opt)){
li=d.createElement("li");
dojo.addClass(li,"lotusFirst lotusNowrap");
var a=d.createElement("a");
dijit.setWaiRole(a,"button");
a.href=_7b.getUrlResource(app.authenticatedUser,opt)||"javascript:;";
dojo.connect(a,"onclick",dojo.hitch(_7b,_7b.execute,_76,opt));
a.appendChild(d.createTextNode(_7b.getName(_76,opt)));
var _7c=a.title=_7b.getTooltip(_76,opt);
if(_7b.id){
a.id=_7b.id;
}
li.appendChild(a);
if(_7b.setNode){
_7b.setNode(a);
}
_78.appendChild(li);
}
}
lconn.wikis.scenes.applyFollowMenu(d,_78,app,_70,_76);
var _79=dojo.getObject("lconn.share0.config.actions.wikiMenuActions");
var _7a=(_79)?_79(app,_70,{wiki:_76}):[];
_70.wikiActions.push(_7a);
var _7d=dojo.filter(_7a,function(_7e){
return _7e.isValid(_76);
});
if(_7d.length>0){
var _7f=new dijit.Menu();
dojo.addClass(_7f.domNode,"lotusPlain");
var li=_78.appendChild(d.createElement("li"));
li.style.display="none";
li.setAttribute("widgetid",_7f.id);
dojo.forEach(_7d,function(_80){
var opt={};
var _81=new dijit.MenuItem({label:_80.getName(null,opt),title:_80.getTooltip(null,opt)});
dojo.connect(_81,"onClick",dojo.hitch(_80,_80.execute,null,opt));
_7f.addChild(_81);
});
var li=d.createElement("li");
dojo.addClass(li,"lotusNowrap");
var a=d.createElement("a");
dijit.setWaiRole(a,"button");
dijit.setWaiState(a,"haspopup","true");
dijit.setWaiState(a,"label",app.nls.WIKI_ACTIONS.TEXT);
a.appendChild(d.createTextNode(app.nls.WIKI_ACTIONS.TEXT));
a.href="javascript:;";
a.title=app.nls.WIKI_ACTIONS.TOOLTIP;
a.id="wikiActionMenuLink";
a.appendChild(d.createTextNode(" "));
var img=d.createElement("img");
img.className="lotusArrow lotusDropDownSprite";
img.setAttribute("alt","");
img.src=dijit._Widget.prototype._blankGif;
a.appendChild(img);
var _82=d.createElement("span");
_82.className="lotusAltText";
_82.appendChild(d.createTextNode("\u25bc"));
a.appendChild(_82);
li.appendChild(a);
dojo.connect(a,"onclick",function(e){
try{
var opt={orient:(dojo._isBodyLtr()?{"BR":"TR","BL":"TL","TR":"BR","TL":"BL"}:{"BL":"TL","BR":"TR","TL":"BL","TR":"BR"})};
menuUtility.openMenu(e,_7f.id,a,opt);
dojo.stopEvent(e);
}
catch(e){
console.log(e);
}
});
_78.appendChild(li);
}
if(_76.isCommunityWiki()){
var _83=d.createElement("span");
_83.id="communityActionBar";
_78.appendChild(_83);
}
_77.appendChild(_78);
_74.appendChild(_77);
if(!_76.isCommunityWiki()){
var _84=new lconn.core.aria.Toolbar(_78);
if(_70.widgets){
_70.widgets.push(_84);
}
}else{
_70._commActionBarSub=dojo.subscribe("CommunityActionBar",dojo.partial(function(_85,_86,obj){
if(obj.type=="Created"){
var _87=new lconn.core.aria.Toolbar(_85);
if(_86.widgets){
_86.widgets.push(_87);
}
if(_86._commActionBarSub){
dojo.unsubscribe(_86._commActionBarSub);
_86._commActionBarSub=null;
}
}
},_78,_70));
}
}
_73.appendChild(_74);
_72.appendChild(_73);
if(_70.wiki&&_70.wiki.isCommunityWiki()){
lconn.core.utilities.processUntilAvailable(dojo.hitch(_72,function(){
var _88=false;
_88=lconn.communities.bizCard.bizCard.currentCommunity.externalAllowed;
if(_88){
var _89=d.createElement("img");
_89.className="lotusui30 lconnIconListSharedExternal";
_89.src=dijit._Widget.prototype._blankGif;
_89.setAttribute("alt",app.nls.PLACEBAR.SHAREDEXTERNAL.IMG);
_89.setAttribute("title",app.nls.PLACEBAR.SHAREDEXTERNAL.IMG);
_89.style.display="inline";
_89.style.marginTop="-5px";
dijit.setWaiRole(_89,"presentation");
var _8a=_72.getElementsByTagName("H2")[0];
if(_8a){
_8a.insertBefore(_89,_8a.firstChild);
}
_72.className="lotusPlaceBar lconnSharedExternalPlaceBar";
}
}),"dojo.exists(\"lconn.communities.bizCard.bizCard.currentCommunity\")",null,false);
}
if(_76&&_76.isCommunityWiki()){
var _8b=lconn.communities.bizCard.core;
if(_8b.community){
if(_8b._communityActionsNode){
lconn.share0.util.html.removeChildren(_8b._communityActionsNode);
dojo.destroy(_8b._communityActionsNode);
delete _8b._communityActionsNode;
}
if(_70.isReused){
_8b.addCommunityActionsMenuUI(_8b.community);
}
}
}
lconn.core.globalization.bidiUtil.enforceTextDirectionOnPage(this.domNode);
if(_70.wiki&&_70.wiki.isCommunityWiki()){
var _8c=dojo.byId("lotusBannerApps");
if(_8c){
dojo.removeClass(_8c,"lotusSelected");
}
var _8d=dojo.byId("lotusBannerCommunities");
if(_8d){
dojo.addClass(_8d,"lotusSelected");
}
var _8e=dojo.byId("lotusBannerCommunitiesExternal");
if(_8e){
dojo.addClass(_8e,"lotusSelected");
}
}
};
lconn.wikis.scenes.applyFollowMenu=function(d,_8f,app,_90,_91){
var _92=dojo.getObject("lconn.share0.config.actions.followMenuActions");
var _93=(_92)?_92(app,_90,{wiki:_91,page:_90.page}):[];
_90.wikiActions.push(_93);
var _94=dojo.filter(_93,function(_95){
return _95.isValid(_91,{page:_90.page});
});
if(_94.length>0){
var _96=[];
dojo.forEach(_94,function(_97){
var opt={page:_90.page};
_96.push({action:_97,item:_91,opt:opt});
});
var li=d.createElement("li");
dojo.addClass(li,"lotusFirst lotusNowrap");
var a=d.createElement("a");
dijit.setWaiRole(a,"button");
dijit.setWaiState(a,"haspopup","true");
dijit.setWaiState(a,"label",app.nls.FOLLOW_MENU.ACTION);
a.appendChild(d.createTextNode(app.nls.FOLLOW_MENU.ACTION));
a.href="javascript:;";
a.title=app.nls.FOLLOW_MENU.ACTION_TOOLTIP;
a.appendChild(d.createTextNode(" "));
var img=d.createElement("img");
img.className="lotusArrow lotusDropDownSprite";
img.setAttribute("alt","");
img.src=dijit._Widget.prototype._blankGif;
a.appendChild(img);
var _98=d.createElement("span");
_98.className="lotusAltText";
_98.appendChild(d.createTextNode("\u25bc"));
a.appendChild(_98);
li.appendChild(a);
_8f.appendChild(li);
var _99=new lconn.core.FollowMenu({items:_96,wrapperClass:"lconn.wikis.FollowMenuItem"},a);
}
};
lconn.wikis.scenes.applyTagCloud=function(d,el,app,_9a,_9b,_9c,_9d){
var _9e=d.createElement("div");
el.appendChild(_9e);
var opt={isGlobal:_9c,isMine:_9d,wikiLabel:_9a.wikiLabel,sortKey:"cloud"};
var _9f=_9a.taglist=new lconn.wikis.widget.TagList({id:"userTagList",baseClass:"lotusChunk",url:app.routes.getTagServiceUrl(opt),tagStore:app.getTagTypeAheadStore(),tagScope:{},activeTags:_9a.activeTags,defaultView:app.prefs.get("tagView")||"cloud",onviewchange:function(_a0){
app.prefs.put("tagView",_a0);
},_strings:app.nls.TAGLIST,_appstrings:app.nls,net:app.net,generateLinkToTag:dojo.hitch(null,lconn.wikis.scenes.generateTagLink,app,app.routes,_9a.userId,_9a.params,true,_9c,_9d),generateLinkWithoutTag:dojo.hitch(null,lconn.wikis.scenes.generateTagLink,app,app.routes,_9a.userId,_9a.params,false,_9c,_9d)},_9e);
if(app.tagsChanged){
app.tagsChanged=false;
_9f.reload();
}
};
lconn.wikis.scenes.applyCommonTagCloud=function(d,el,app,_a1,_a2,_a3,_a4){
var _a5=d.createElement("div");
el.appendChild(_a5);
var _a6=(_a1.params&&_a1.params.wikiLabel)||app.scene.wikiLabel;
var _a7=new lconn.wikis.widget.WikisTagCloud.WikisAjaxCall({wikiLabel:_a6,net:app.net,sceneParams:_a1.params,routes:app.routes,userId:_a2,app:app,isGlobal:_a3,isMine:_a4});
var _a8=(_a1.params&&_a1.params.tag)?_a1.params.tag.join(" "):"";
var _a9=_a4?{fetch:lconn.wikis.scenes._noop}:app.getTagTypeAheadStore();
var _aa={id:"lconnTagWidget",contextPath:lconn.share0.config.baseUri,selectedTags:_a8,tagUrl:null,typeAheadFeedUrl:app.routes.getTagServiceUrl({wikiLabel:_a6,isMine:_a4}),urlParameters:{},tagTemplate:null,typeAheadTemplate:"filter",redirectUrl:null,disableRelated:true,tagDialogEnabled:false,handleAs:"json",redirectWhenClickTag:true,ajaxCall:_a7,typeAheadDataStore:_a9};
var _ab=_a1.taglist=new lconn.wikis.widget.WikisTagCloud(_aa,_a5);
};
lconn.wikis.scenes._noop=function(){
};
lconn.wikis.scenes.generateTagLink=function(app,_ac,_ad,_ae,_af,_b0,_b1,tag,a){
var p=(_ae)?dojo.clone(_ae):[];
p.tag=p.tag||[];
var _b2=dojo.indexOf(p.tag,tag);
if(_af&&_b2==-1){
if(p.tag.length<3){
p.tag.push(tag);
}else{
p.tag[2]=tag;
}
}else{
if(!_af&&_b2!=-1){
delete p.tag[_b2];
}
}
p.wikiLabel=p.wikiLabel||app.scene.wikiLabel;
var url=_b0?(_b1?_ac.getMyWikisUrl(p):_ac.getPublicWikisUrl(p)):_ac.getPageIndexUrl(p.wikiLabel,p);
lconn.share0.scenes.setOnClick(a,app,url);
};
lconn.wikis.scenes.createLink=function createLink(el,_b3,_b4,_b5){
if(el){
var _b6=_b3.replace("{0}","<a href=\"javascript:;\">");
_b6=_b6.replace("{1}","</a>");
el.innerHTML=_b6;
var _b7=_b4.replace("{0}","");
_b7=_b7.replace("{1}","");
var _b8=el.getElementsByTagName("a")[0];
_b8.setAttribute("aria-label",_b7);
_b8.onclick=function(){
openHelpWindow(_b5);
return false;
};
}
};
lconn.wikis.scenes.applyWelcome=function(app,el,_b9,_ba,nls){
return;
if(app.prefs.get(_ba)){
return;
}
var d=app.d;
var _bb=app.routes;
nls=nls||app.nls.WELCOME.PUBLICWIKIS;
var _bc=app.nls.WELCOME.MYWIKIS;
var div=d.createElement("div");
div.id="welcome";
div.className="lotusWelcomeBox";
dijit.setWaiRole(div,"region");
var h2=d.createElement("h2");
h2.appendChild(d.createTextNode(nls.TITLE));
h2.id="label_welcome";
dijit.setWaiState(div,"labelledBy",h2.id);
div.appendChild(h2);
var p=d.createElement("p");
p.className="lotusFirst";
p.appendChild(d.createTextNode(_bc.BLURB));
div.appendChild(p);
var ul=d.createElement("ul");
var li1=document.createElement("li");
li1.id="wikisWelcomeMsg1";
var li2=document.createElement("li");
li2.id="wikisWelcomeMsg2";
var li3=document.createElement("li");
li3.id="wikisWelcomeMsg3";
ul.appendChild(li1);
ul.appendChild(li2);
ul.appendChild(li3);
div.appendChild(ul);
var a=lconn.share0.actions.createCancelButton(d,app.nls.CLOSE,{className:"lotusBtnImg lotusClose"});
dijit.setWaiState(a,"controls",div.id);
dijit.setWaiRole(a,"button");
dojo.connect(a,"onclick",_b9,"hideWelcome");
div.appendChild(a);
el.appendChild(div);
lconn.wikis.scenes.createLink(li1,_bc.BLURB1,_bc.BLURB1,"t_wikis_create_wikis.html");
lconn.wikis.scenes.createLink(li2,_bc.BLURB2,_bc.BLURB2,"t_wikis_create_pages.html");
lconn.wikis.scenes.createLink(li3,_bc.BLURB3,_bc.BLURB3,"t_wikis_find_wikis.html");
};
lconn.wikis.scenes.showUnauthenticatedWarning=function(app,_bd){
app.login();
_bd=(_bd||[]);
lconn.share0.scenes.applyGenericWarning(app,app.nls.APP.ERRORS.LOGIN.TITLE,app.nls.APP.ERRORS.LOGIN.MESSAGES,_bd);
};
lconn.wikis.scenes.applyBackToWikiLink=function(d,el,app,_be){
var wk=_be.wiki;
var _bf={communityId:wk.isCommunityWiki()?wk.getCommunityId():null,extra:{contentTitle:wk.title,contentContainerId:wk.getId(),contentCreatorId:wk.getAuthor().id,contentCreateTs:wk.getSystemCreated(),contentLink:app.routes.getWikiUrl(_be.wikiLabel)}};
var _c0;
var _c1;
if(_be.sceneInfo.id=="lconn.wikis.scenes.Members"){
_c0="MEMBERSHIP";
_c1=wk.getId()+_c0;
}else{
_c0="LIBRARY";
_c1=wk.getId();
}
app.trackRead(_c1,_c0,_bf);
var _c2=_be.wiki?dojo.string.substitute(app.nls.BACK_TO_WIKI,[_be.wiki.getTitle()]):app.nls.BACK_TO_APP;
var div=d.createElement("DIV");
div.className="lotusBreadcrumbs";
dijit.setWaiRole(div,"navigation");
dijit.setWaiState(div,"label",app.nls.ACCESSIBILITY.LABELS.BREADCRUMB);
var a=d.createElement("A");
lconn.share0.scenes.setOnClick(a,app,app.routes.getWikiUrl(_be.wikiLabel));
a.appendChild(d.createTextNode(_c2));
div.appendChild(a);
el.appendChild(div);
};
lconn.wikis.scenes.createUserAvatar=function(el,_c3,opt){
lconn.wikis.scenes._createMemberAvatar(el,_c3,opt);
};
lconn.wikis.scenes.createGroupAvatar=function(el,_c4,opt){
lconn.wikis.scenes._createMemberAvatar(el,_c4,opt,true);
};
lconn.wikis.scenes._createMemberAvatar=function(el,_c5,opt,_c6){
var id=_c5.id;
var _c7=opt.strings;
var app=opt.app;
var d=app.document;
var _c8=opt.onremove;
var _c9=opt.ariaLabel;
var _ca=opt.roles;
var _cb=opt.role;
var a=d.createElement("a");
a.className="lotusFilter";
a.title=_c7.REMOVE_USER_TOOLTIP;
if(_ca&&_cb){
var _cc=app.nls.ACCESSIBILITY.LABELS.MEMBERS.REMOVE[_ca[_cb]];
var _cd=lconn.share0.actions.createInvisibleLabel(d,a,_cc);
}
dijit.setWaiRole(a,"option");
a.tabIndex=-1;
lconn.share0.util.html.breakString(_c5.name,d,a);
a.href="javascript:;";
var img=d.createElement("img");
img.className="lotusDelete";
dijit.setWaiRole(img,"presentation");
img.src=dijit._Widget.prototype._blankGif;
img.setAttribute("alt",_c7.REMOVE_USER_TOOLTIP);
a.appendChild(img);
var _ce=d.createElement("span");
_ce.className="lotusAltText";
_ce.appendChild(d.createTextNode("X"));
a.appendChild(_ce);
if(_c6){
a.groupId=id;
}else{
a.userId=id;
}
dojo.connect(a,"onclick",_c8);
el.appendChild(a);
if(_ca&&_cb&&_c9){
var _cf=app.nls.ACCESSIBILITY.LABELS.MEMBERS.ADDED[_ca[_cb]];
_c9.innerHTML=dojo.string.substitute(_cf,[_c5.name]);
setTimeout(dojo.partial(function(_d0){
_d0.innerHTML="";
},_c9),200);
}
};
lconn.wikis.scenes.renderFeedLink=function(el,_d1,_d2,_d3,_d4,opt){
var app=opt.app;
var _d5=app.scene;
var d=app.document;
var div=_d5.feedLinkNode=d.createElement("div");
div.className=opt.className?opt.className:"lotusFeeds lotusMeta lotusLeft";
el.appendChild(div);
lconn.wikis.scenes.appendFeedLink(div,_d1,_d2,_d3,_d4,opt);
return div;
};
lconn.wikis.scenes.appendFeedLink=function(el,_d6,_d7,_d8,_d9,opt){
var app=opt.app;
var d=app.document;
var _da="lotusAction";
if(el.childNodes&&el.childNodes.length>0){
lconn.share0.scenes.applyDivider(d,el);
}else{
_da="lotusFeed "+_da;
}
var a=d.createElement("a");
a.className=_da;
a.href=_d6;
a.title=_d8;
dijit.setWaiState(a,"label",_d8);
a.appendChild(d.createTextNode(_d7));
dojo.connect(a,"onclick",null,dojo.hitch(null,lconn.share0.util.html.checkFeedSubscription,app.nls.FEEDS.IE6SUBSCRIBE,_d6));
el.appendChild(a);
var _db=d.createElement("link");
_db.setAttribute("rel","alternate");
_db.setAttribute("type","application/atom+xml");
_db.title=_d9;
_db.href=_d6;
el.appendChild(_db);
};
lconn.wikis.scenes.applyQuota=function(app,el,_dc){
var _dd=app.authenticatedUser;
var _de=(_dd&&dojo.indexOf(_dd.roles,"admin")!=-1);
var _df=_dd||_de;
var d=app.d;
if(_df){
var q=app.getQuota();
var _e0=d.createElement("div");
_e0.className="qkrQuota";
el.appendChild(_e0);
var qw=new lconn.share0.widget.QuotaText({_strings:app.nls.QUOTA.WIKI,_sizeStrings:app.nls.SIZE,defer:false,labelDefer:app.nls.QUOTA.INFO_WIKI,size:q.size,totalSize:q.totalSize,hideUnlimited:!_de},_e0);
qw.connect(q,"onUpdate","update");
qw.connect(q,"onError","error");
dojo.connect(qw,"onClick",q,"load");
if(q.isExpired()){
q.load();
}
}
};
lconn.wikis.scenes.sendAppMessage=function(opt){
dojo.publish("lconn/wikis/app/message/add",opt);
};
lconn.wikis.scenes.getQuotaAlertMsg=function(nls,_e1,_e2){
var fs=lconn.share0.util.text.formatSize;
var p=[(_e1),fs(_e2),fs(_e2-_e1)];
var ds=dojo.string.substitute;
return dojo.getObject("lconn.share0.config.features.trash")?ds(nls.QUOTA.ALERT_WARN_WITH_TRASH,p):ds(nls.QUOTA.ALERT_WARN,p);
};
lconn.wikis.scenes.applyQuotaAlert=function(app,_e3,_e4){
var q=app.getQuota();
if(q.isQuotaWarn()&&!app.usercache["_prevent_quota_alert"]){
lconn.wikis.scenes.sendAppMessage([{message:lconn.wikis.scenes.getQuotaAlertMsg(app.nls,q.size,q.totalSize),warning:true,onClose:function(){
app.usercache["_prevent_quota_alert"]=true;
}}]);
}
};
lconn.wikis.scenes.applyQuotaError=function(app){
var q=app.getQuota();
if(q.isQuotaError()){
lconn.wikis.scenes.sendAppMessage([{message:lconn.wikis.scenes.getQuotaAlertMsg(app.nls,q.size,q.totalSize),error:true,onClose:function(){
}}]);
}
};
lconn.share0.scenes.generateUserLink=function(app,_e5,_e6,a){
var _e7=lconn.core.config.services.profiles?true:false;
var _e8=dojo.getObject("lconn.share0.config.isCloudMode")?true:false;
var id=(typeof _e6=="object")?_e6.id:_e6;
if(_e6&&_e6.name){
a.title=_e6.name;
dijit.setWaiState(a,"label",_e6.name);
}
if(_e6&&id&&window["SemTagSvc"]){
dojo.addClass(a,"vcard");
var _e9=a.getElementsByTagName("img");
if(_e9.length){
dojo.forEach(_e9,function(img){
dojo.addClass(img,"fn");
if(dojo.hasClass(img,"lotusLeft")){
dojo.removeClass(img,"lotusLeft");
}
});
}
if(_e7){
dojo.addClass(a,"fn");
var _ea=document.createElement("span");
_ea.className="x-lconn-userid";
_ea.style.display="none";
_ea.appendChild(document.createTextNode(id));
a.appendChild(_ea);
if(dojo.getObject("SemTagSvc.add")){
SemTagSvc.add(a);
}
com.ibm.lconn.layout.people.createLink(_e6,_ea,a);
}else{
if(_e8){
dojo.addClass(a,"lotusPerson");
if(_e6&&window["SemTagSvc"]){
dojo.addClass(a,"vcard");
var _eb=document.createElement("span");
dojo.addClass(_eb,"fn");
_eb.style.display="none";
_eb.appendChild(document.createTextNode(_e6.name));
a.appendChild(_eb);
if(lconn.share.util.text.trim(_e6.email).length>0){
var _ea=document.createElement("span");
_ea.className="x-lconn-email";
_ea.style.display="none";
_ea.appendChild(document.createTextNode(_e6.email));
a.appendChild(_ea);
}
var _ea=document.createElement("span");
_ea.className="x-lconn-userid";
_ea.style.display="none";
_ea.appendChild(document.createTextNode(_e6.id));
a.appendChild(_ea);
com.ibm.lconn.layout.people.createLink(_e6,_eb,a);
if(dojo.getObject("SemTagSvc.onTagChanged")){
SemTagSvc.onTagChanged(a,true);
}
}
}else{
var _ec=app.routes.getPersonSearchUrl(_e6.id,_e6.name);
dojo.attr(a,"href",_ec);
}
}
}
};
lconn.share0.scenes.revealFindBox=function(el,fb){
dojo.style(el,"display","");
fb.focus();
};
lconn.wikis.scenes.applyTheme=function(app,_ed){
var _ee=app&&app.themeName&&(app.themeName==_ed);
if(!_ee){
app.themeName=_ed;
lconn.core.header.switchTheme(_ed);
}
};
lconn.wikis.scenes.applyUnsavedChangesAlert=function(app,_ef,_f0){
if(!app.authenticatedUser){
return;
}
var _f1=app.routes;
var d=app.document;
var _f2=app.scene;
var _f3=app.getUnsavedChangesList();
if(_f3.length>0){
var opt={permissions:new lconn.share0.bean.StreamPermissions({authenticatedId:(app.authenticatedUser?app.authenticatedUser.id:null)}),libraryId:_f2.libraryId};
var div=d.createElement("div");
div.appendChild(d.createTextNode(app.nls.UNSAVED_CHANGES.ALERT));
for(var j=0;j<_f3.length&&j<6;j++){
var _f4=_f3[j];
var _f5=d.createElement("div");
_f5.style.clear="both";
var _f6=d.createElement("span");
_f6.className="lotusLeft";
_f6.style.marginRight="10px";
_f6.style.marginLeft="0px";
var df=new lconn.share0.util.DateFormat(_f4.getUpdated());
var _f7=df.formatByAge(app.nls.UNSAVED_CHANGES.AUTOSAVED);
lconn.share0.util.html.substitute(d,_f6,_f7,{pagetitle:function(){
var _f8=d.createElement("span");
_f8.style.fontWeight="bold";
_f8.style.margin="0";
_f8.style.display="inline";
_f8.appendChild(d.createTextNode(_f4.getTitle()));
return _f8;
},wikititle:function(){
var _f9=d.createElement("span");
_f9.style.fontWeight="bold";
_f9.style.margin="0";
_f9.style.display="inline";
var _fa=_f4.getLibrary();
_f9.appendChild(d.createTextNode(_fa.libraryTitle));
return _f9;
},expires:function(){
var dfe=new lconn.share0.util.DateFormat(_f4.getExpiration());
var _fb=dfe.formatByAge(app.nls.UNSAVED_CHANGES.EXPIRES);
var _fc=d.createElement("span");
_fc.style.color="red";
_fc.style.margin="0";
_fc.style.display="inline";
_fc.appendChild(d.createTextNode(_fb));
return _fc;
}});
_f5.appendChild(_f6);
var ul=d.createElement("ul");
ul.className="lotusActions lotusInlinelist";
dijit.setWaiRole(ul,"presentation");
for(var i=0;i<_f0.length;i++){
var _fd=_f0[i];
if(_fd.isValid(_f4,opt)){
var li=d.createElement("li");
var a=d.createElement("a");
if(!ul.firstChild){
li.className="lotusFirst";
}else{
dijit.setWaiRole(a,"button");
}
var url=_fd.getUrlResource(_f4,opt);
a.href=url||"javascript:;";
dojo.connect(a,"onclick",dojo.hitch(_fd,_fd.execute,_f4,opt));
a.appendChild(d.createTextNode(_fd.getName(_f4,opt)));
a.title=_fd.getTooltip(_f4,opt);
li.appendChild(a);
ul.appendChild(li);
}
}
if(ul.firstChild){
_f5.appendChild(ul);
}
div.appendChild(_f5);
}
div.style.display="";
_ef.add({message:div,warning:true,canClose:false});
}else{
_ef.add([]);
}
};
lconn.wikis.scenes.clickSortLink=function(_fe){
_fe.sortOrderChanged=true;
};
lconn.wikis.scenes.clickSecondLevelNav=function(_ff){
_ff.secondLevelNavClicked=true;
};
lconn.wikis.scenes.resetLotusMainForICM=function(d,app){
var _100=false;
if(window["NavigationHandler"]){
if(window["NavigationHandler"].gadgetReady.inbox){
var span=dojo.query(".os-site-mail-notify",d.getElementById("lotusBanner"))[0];
if(span){
if(span.firstChild){
_100=true;
}
}
}
}
if(_100){
var old={};
dojo.forEach(["lconnWikisNavTree"],function(id){
var el=d.getElementById(id);
if(el){
if(el.reusable&&!el.reusable(app,app.scene)){
return;
}
this[id]=el;
if(!el.fixedLinks){
dojo.forEach(el.getElementsByTagName("A"),lconn.share0.scenes.applyLinkRulesForConnections,app);
el.fixedLinks=true;
}
if(!el.movedStyleNodes){
dojo.forEach(["LINK","STYLE"],function(type){
dojo.forEach(el.getElementsByTagName(type),function(el1){
if(el1){
d.body.appendChild(el1);
}else{
console.log("Ignoring invalid or malformed node");
}
});
});
if(dojo.isIE){
dojo.query("SCRIPT",el).forEach(function(el){
if(el.src){
el.oldSrc=el.src;
el.removeAttribute("src");
}
});
}
el.movedStyleNodes=true;
}
el.parentNode.removeChild(el);
el.style.display="";
}
},old);
old["lotusBanner"]=d.getElementById("lotusBanner");
old["lotusFooter"]=d.getElementById("lotusFooter");
var _101=d.getElementById("lotusPlaceBar");
var _102=_101.parentNode;
var _103=d.getElementById("lotusMain");
var _104=_103.parentNode;
if(_101){
lconn.share0.util.html.destroyWidgets(_101);
_102.removeChild(_101);
var el=d.createElement("div");
el.id="lotusPlaceBar";
el.className="lotusPlaceBar";
el.style.display="none";
_102.appendChild(el);
}
if(_103){
lconn.share0.util.html.destroyWidgets(_103);
_104.removeChild(_103);
}
var el=d.createElement("div");
el.id=el.className="lotusMain";
_104.insertBefore(el,_104.lastChild);
old.frame=d.getElementById("lotusFrame");
var wiki=app.getWiki();
if(wiki){
lconn.wikis.scenes.applyTheme(app,wiki.getThemeName());
}else{
lconn.wikis.scenes.applyTheme(app,null);
}
window.scroll(0,0);
app.reusable=old;
}
return _100;
};
}


;if(!dojo._hasResource["lconn.share0.scenes.AbstractScene"]){
dojo._hasResource["lconn.share0.scenes.AbstractScene"]=true;
dojo.provide("lconn.share0.scenes.AbstractScene");


dojo.declare("lconn.share0.scenes.AbstractScene",null,{constructor:function constructor(_1,_2){
this.app=_1;
},end:function(){
dojo.forEach(this._connects||[],function(_3){
dojo.forEach(_3,dojo.disconnect);
});
dojo.forEach(this._subs||[],dojo.unsubscribe);
},isCurrentScene:function(){
return this.app&&this.app.scene==this;
},connect:function(){
if(!this._connects){
this._connects=[];
}
dijit._Widget.prototype.connect.apply(this,arguments);
},subscribe:function(e,f){
if(!this._subs){
this._subs=[];
}
this._subs.push(dojo.subscribe(e,this,f));
},onActionSuccess:function(e){
this.app.messages.add(e.messages);
},onKeypress:function(e){
var _4=this.globalActions;
if(_4){
for(var i=0;i<_4.length;i++){
var _5=_4[i];
if(_5.keyboardShortcut==e.keyChar&&_5.isValid(this.authenticatedUser,{})){
_5.execute(this.authenticatedUser,{});
return;
}
}
}
},onComplete:function(_6){
if(!this.completed){
this.completed={};
}
this.completed[_6||"scene"]=true;
}});
}


;if(!dojo._hasResource["lconn.wikis.scenes.AbstractTemplate"]){
dojo._hasResource["lconn.wikis.scenes.AbstractTemplate"]=true;
dojo.provide("lconn.wikis.scenes.AbstractTemplate");








dojo.declare("lconn.wikis.scenes.AbstractTemplate",[lconn.share0.scenes.AbstractScene],{getOpt:function(){
return {app:this.app,scene:this};
},getTemplateOpt:function(){
return {bypassCache:this.bypassCache};
},begin:function(_1){
var _2=this.app;
var d=_2.document;
var _3=_2.authenticatedUser;
d.title=this.getWindowTitle();
lconn.wikis.scenes.applyHomeTemplate(d,_3,_2,_2.routes,{activeTab:this.activeTab,defaultSearchScope:this.defaultSearchScope});
var _4=_2.getTemplate(this,this.getTemplateOpt());
if(!_4){
this.showError();
return;
}
var _5=this.getOpt();
var _6=d.createDocumentFragment();
var _7=_4.getElementsByTagName("body")[0];
var _8={};
lconn.share0.util.html.xhtmlToHtml(d,_7,_6,false,_8);
var el=_8["lotusMain"];
if(el){
var _9=d.getElementById("lotusMain");
while(el.firstChild){
_9.appendChild(el.firstChild);
}
_9.className=el.className;
this.updateTemplate(_2,d,_6,el,_8);
window["template"]=_5;
dojo.parser.parse(el);
window["template"]=null;
d.body.style.visibility="visible";
}else{
this.showError();
}
this.app.trackRead();
},updateTemplate:function(_a,d,_b,_c,_d){
var _e=d.getElementById("lotusMessageContainer");
if(_e){
new lconn.share0.widget.MessageContainer({messages:_a.messages,nls:_a.nls},_e);
}
},showError:function(){
var _f=this.app;
_f.document.title=this.getWindowTitle();
lconn.share0.scenes.applyGenericError(_f,_f.nls.ERROR_IN_APP_TITLE,_f.nls.ERROR_IN_APP_MESSAGES,[]);
_f.document.body.style.visibility="visible";
},getWindowTitle:function(){
return;
}});
}


;if(!dojo._hasResource["lconn.wikis.scenes.About"]){
dojo._hasResource["lconn.wikis.scenes.About"]=true;
dojo.provide("lconn.wikis.scenes.About");


dojo.declare("lconn.wikis.scenes.About",[lconn.wikis.scenes.AbstractTemplate],{getWindowTitle:function(){
return this.app.nls.WINDOWTITLE.ABOUT;
},begin:function(){
dojo.addClass(document.body,"lotusAbout");
return this.inherited(arguments);
},end:function(){
dojo.removeClass(document.body,"lotusAbout");
return this.inherited(arguments);
},updateTemplate:function(_1,d,_2,_3,_4){
this.inherited(arguments);
var _5=dojo.query(".lotusLegal",_4["lotusFrame"])[0];
if(_5){
var _6=d.getElementById("lotusFooter").parentNode;
_6.appendChild(_5);
}
}});
}


;if(!dojo._hasResource["lconn.wikis.scenes.Toolbox"]){
dojo._hasResource["lconn.wikis.scenes.Toolbox"]=true;
dojo.provide("lconn.wikis.scenes.Toolbox");


dojo.declare("lconn.wikis.scenes.Toolbox",[lconn.wikis.scenes.AbstractTemplate],{getWindowTitle:function(){
return this.app.nls.WINDOWTITLE.TOOLS;
}});
}


;if(!dojo._hasResource["lconn.wikis.scenes.Statistics"]){
dojo._hasResource["lconn.wikis.scenes.Statistics"]=true;
dojo.provide("lconn.wikis.scenes.Statistics");


dojo.declare("lconn.wikis.scenes.Statistics",[lconn.wikis.scenes.AbstractTemplate],{getWindowTitle:function(){
return this.app.nls.WINDOWTITLE.STATISTICS;
},showError:function(){
var _1=this.app;
_1.document.title=this.getWindowTitle();
lconn.wikis.scenes.applyTheme(_1,null);
lconn.share0.scenes.applyGenericError(_1,_1.nls.STATS.ERROR_TITLE,_1.nls.STATS.ERROR_MSG,[]);
_1.document.body.style.visibility="visible";
}});
}


;if(!dojo._hasResource["lconn.share0.bean.File"]){
dojo._hasResource["lconn.share0.bean.File"]=true;
dojo.provide("lconn.share0.bean.File");










dojo.declare("lconn.share0.bean.File",null,{constructor:function(_1){
this.e=_1;
},getEntry:function(){
return this.e;
},getAtomId:function(){
return lconn.share0.util.dom.getChildElementTextContent(this.e,"id");
},getId:function(){
return lconn.share0.util.dom.getChildElementTextContentNS(this.e,"uuid",lconn.share0.util.dom.DOCUMENTS_ATOM_NAMESPACE);
},getName:function(){
return this.getLabel();
},getTitle:function(){
return lconn.share0.util.dom.getChildElementTextContent(this.e,"title");
},getLabel:function(){
var s=lconn.share0.util.dom.getChildElementTextContentNS(this.e,"label",lconn.share0.util.dom.DOCUMENTS_ATOM_NAMESPACE);
if(!s||s.length==0){
s=lconn.share0.util.dom.getChildElementAttributeMatching(this.e,"link","rel","enclosure","title");
}
if(!s||s.length==0){
s=this.getTitle();
}
return s;
},getDescription:function(){
return lconn.share0.util.dom.getChildElementTextContent(this.e,"summary");
},getChangeSummary:function(){
return lconn.share0.util.dom.getChildElementTextContent(this.e,"changeSummary");
},getCategory:function(){
return "document";
},getAuthor:function(){
if(!this.author&&this.e){
this.author=new lconn.share0.bean.User(lconn.share0.util.dom.getElementsByTagName(this.e,"author")[0]);
}
return this.author;
},getLibraryId:function(){
var s=lconn.share0.util.dom.getChildElementTextContentNS(this.e,"libraryId",lconn.share0.util.dom.DOCUMENTS_ATOM_NAMESPACE);
if(!s){
throw "Library id not returned in element";
}
return s;
},getLibraryAuthor:function(){
if(!this.libraryAuthor&&this.e){
var e=lconn.share0.util.dom.getElementsByTagNameNS(this.e,"libraryAuthor",lconn.share0.util.dom.DOCUMENTS_ATOM_NAMESPACE)[0];
if(e){
this.libraryAuthor=new lconn.share0.bean.User(e);
}
}
return this.libraryAuthor;
},getModifier:function(){
if(!this.modifier&&this.e){
var e=lconn.share0.util.dom.getElementsByTagNameNS(this.e,"modifier",lconn.share0.util.dom.DOCUMENTS_ATOM_NAMESPACE)[0];
if(e){
this.modifier=new lconn.share0.bean.User(e);
}
}
return this.modifier;
},getUpdated:function(){
if(!this.updated){
this.updated=lconn.share0.util.misc.date.convertAtomDate(lconn.share0.util.dom.getChildElementTextContentNS(this.e,"modified",lconn.share0.util.dom.DOCUMENTS_ATOM_NAMESPACE))||this.getSystemLastModified();
}
return this.updated;
},getPublished:function(){
if(!this.published){
this.published=lconn.share0.util.misc.date.convertAtomDate(lconn.share0.util.dom.getChildElementTextContentNS(this.e,"created",lconn.share0.util.dom.DOCUMENTS_ATOM_NAMESPACE))||this.getSystemCreated();
}
return this.published;
},getSystemLastModified:function(){
if(!this.systemLastModified){
this.systemLastModified=lconn.share0.util.misc.date.convertAtomDate(lconn.share0.util.dom.getChildElementTextContent(this.e,"updated"));
}
return this.systemLastModified;
},getSystemCreated:function(){
if(!this.systemCreated){
this.systemCreated=lconn.share0.util.misc.date.convertAtomDate(lconn.share0.util.dom.getChildElementTextContent(this.e,"published"));
}
return this.systemCreated;
},getRating:function(){
return lconn.share0.util.text.parseInt(lconn.share0.util.dom.getChildElementTextContentNS(this.e,"rating",lconn.share0.util.dom.DOCUMENTS_ATOM_NAMESPACE));
},getAverageRating:function(){
return lconn.share0.util.text.parseFloat(lconn.share0.util.dom.getChildElementTextContentNS(this.e,"averageRating",lconn.share0.util.dom.DOCUMENTS_ATOM_NAMESPACE));
},getRatingCount:function(){
return lconn.share0.util.text.parseInt(lconn.share0.util.dom.getChildElementMatchingAttributeTextContentNS(this.e,"rank",lconn.share0.util.dom.SNX_NAMESPACE,"scheme",null,"http://www.ibm.com/xmlns/prod/sn/recommendations"));
},getUrlRecommendation:function(){
if(!this.urlRecommendation){
this.urlRecommendation=lconn.share0.util.dom.getChildElementAttributeMatching(this.e,"link","rel","recommendation","href");
this.urlRecommendation=this.urlRecommendation?lconn.share0.util.uri.makeAtomUrlIESafe(this.urlRecommendation):null;
}
return this.urlRecommendation;
},isUserRecommended:function(){
return this.getUrlRecommendation()?true:false;
},getPermissions:function(){
if(!this.permissions){
var s=lconn.share0.util.dom.getChildElementTextContentNS(this.e,"permissions",lconn.share0.util.dom.DOCUMENTS_ATOM_NAMESPACE);
var p={};
if(s){
dojo.forEach(s.split(", "),function(a){
if(a&&a.length>0){
p[a]=true;
}
});
}
this.permissions=p;
}
return this.permissions;
},hasFullPermissions:function(){
return this.getPermissions().View;
},getVisibility:function(){
if(!this.visibility){
this.visibility=lconn.share0.util.dom.getChildElementTextContentNS(this.e,"visibility",lconn.share0.util.dom.DOCUMENTS_ATOM_NAMESPACE);
}
return this.visibility;
},getAllSharesCount:function(){
return this.getShareCount()+this.getCollectionCount();
},isPublic:function(){
return this.getVisibility()=="public";
},isPrivate:function(){
return this.getVisibility()=="private";
},isViralShareAllowed:function(){
return (lconn.share0.util.dom.getChildElementTextContentNS(this.e,"propagation",lconn.share0.util.dom.DOCUMENTS_ATOM_NAMESPACE)=="true");
},isNotificationEnabled:function(){
if(typeof this.notificationEnabled=="undefined"){
this.notificationEnabled=(lconn.share0.util.dom.getChildElementTextContentNS(this.e,"notification",lconn.share0.util.dom.DOCUMENTS_ATOM_NAMESPACE)=="on");
}
return this.notificationEnabled;
},getNotifications:function(){
if(typeof this.notifications=="undefined"&&this.e){
var n=this.notifications={};
var e=lconn.share0.util.dom.getChildElementNS(this.e,"notifications",lconn.share0.util.dom.DOCUMENTS_ATOM_NAMESPACE);
if(e){
var c;
for(var i=0;c=e.childNodes[i];i++){
if(c.nodeType==1){
n[c.localName||c.baseName]=lconn.share0.util.dom.xmlText(c)=="on";
}
}
}
}
return this.notifications;
},hasNotifications:function(){
if(this.notifications){
return true;
}
return (this.e&&lconn.share0.util.dom.getChildElementNS(this.e,"notifications",lconn.share0.util.dom.DOCUMENTS_ATOM_NAMESPACE));
},isContentFollowingAllowed:function(){
if(this.policy==undefined){
this.policy=lconn.share0.util.dom.getElementsByTagNameNS(this.e,"policy",lconn.share0.util.dom.DOCUMENTS_ATOM_NAMESPACE)[0];
}
if(this.contentFollowing==undefined&&this.policy){
this.contentFollowing=lconn.share0.util.dom.getChildElementTextContentNS(this.policy,"contentFollowing",lconn.share0.util.dom.DOCUMENTS_ATOM_NAMESPACE)=="true";
}
return this.contentFollowing;
},getOrgId:function(){
if(this.orgId==undefined){
this.orgId=lconn.share0.util.dom.getChildElementTextContentNS(this.e,"orgId",lconn.share0.util.dom.SNX_NAMESPACE);
}
return this.orgId;
},getTimesDownloaded:function(){
if(typeof this.downloadCount=="undefined"){
this.downloadCount=lconn.share0.util.text.parseInt(lconn.share0.util.dom.getChildElementMatchingAttributeTextContentNS(this.e,"rank",lconn.share0.util.dom.SNX_NAMESPACE,"scheme",null,"http://www.ibm.com/xmlns/prod/sn/hit"));
}
return this.downloadCount;
},getTimesDownloadedAnonymously:function(){
return lconn.share0.util.text.parseInt(lconn.share0.util.dom.getChildElementMatchingAttributeTextContentNS(this.e,"rank",lconn.share0.util.dom.SNX_NAMESPACE,"scheme",null,"http://www.ibm.com/xmlns/prod/sn/anonymous_hit"));
},getUrlDownload:function(){
if(!this.urlDownload){
this.urlDownload=lconn.share0.util.dom.getChildElementAttributeMatching(this.e,"link","rel","enclosure","href");
}
return this.urlDownload;
},getUrlEntry:function(){
return lconn.share0.util.uri.makeAtomUrlIESafe(lconn.share0.util.dom.getChildElementAttributeMatching(this.e,"link","rel","self","href"));
},getUrlEdit:function(){
return lconn.share0.util.uri.makeAtomUrlIESafe(lconn.share0.util.dom.getChildElementAttributeMatching(this.e,"link","rel","edit","href"));
},getUrlFeed:function(){
return lconn.share0.util.uri.makeAtomUrlIESafe(lconn.share0.util.dom.getChildElementAttributeMatching(this.e,"link","rel","replies","href"));
},getTags:function(){
if(!this.tags){
var _2=[];
if(this.e){
for(var i=0;i<this.e.childNodes.length;i++){
var _3=this.e.childNodes[i];
if(_3.nodeName=="category"&&_3.getAttribute("scheme")==null){
_2.push(_3.getAttribute("term"));
}
}
}
this.tags=_2;
}
return this.tags;
},getSize:function(){
if(typeof this.size=="undefined"){
this.size=parseInt(lconn.share0.util.dom.getChildElementAttributeMatching(this.e,"link","rel","enclosure","length"));
}
return this.size;
},getTotalSize:function(){
if(typeof this.totalSize=="undefined"){
this.totalSize=parseInt(lconn.share0.util.dom.getChildElementTextContentNS(this.e,"totalMediaSize",lconn.share0.util.dom.DOCUMENTS_ATOM_NAMESPACE));
}
return this.totalSize;
},getMimeType:function(){
return lconn.share0.util.dom.getChildElementAttributeMatching(this.e,"link","rel","enclosure","type");
},getDocumentId:function(){
lconn.share0.util.dom.getChildElementTextContentNS(this.e,"documentId",lconn.share0.util.dom.DOCUMENTS_ATOM_NAMESPACE);
},getVersionId:function(){
return lconn.share0.util.dom.getChildElementTextContentNS(this.e,"versionUuid",lconn.share0.util.dom.DOCUMENTS_ATOM_NAMESPACE);
},getVersionLabel:function(){
return lconn.share0.util.dom.getChildElementTextContentNS(this.e,"versionLabel",lconn.share0.util.dom.DOCUMENTS_ATOM_NAMESPACE);
},getDocumentVersionId:function(){
return lconn.share0.util.dom.getChildElementTextContentNS(this.e,"documentVersionUuid",lconn.share0.util.dom.DOCUMENTS_ATOM_NAMESPACE);
},getDocumentVersionLabel:function(){
return lconn.share0.util.dom.getChildElementTextContentNS(this.e,"documentVersionLabel",lconn.share0.util.dom.DOCUMENTS_ATOM_NAMESPACE);
},getCurrentVersionId:function(){
return this.getVersionId()||this.getDocumentVersionId();
},getCurrentVersionLabel:function(){
return this.getVersionLabel()||this.getDocumentVersionLabel();
},getLatestVersionId:function(){
return this.getDocumentVersionId()||this.getVersionId();
},getLatestVersionLabel:function(){
return this.getDocumentVersionLabel()||this.getVersionLabel();
},getCommentCount:function(){
if(typeof this.commentCount=="undefined"){
this.commentCount=lconn.share0.util.text.parseInt(lconn.share0.util.dom.getChildElementAttributeMatchingNS(this.e,"link",null,"rel",null,"replies","count",lconn.share0.util.dom.THREAD_ATOM_NAMESPACE));
}
return this.commentCount;
},getShareCount:function(){
if(typeof this.shareCount=="undefined"){
this.shareCount=lconn.share0.util.text.parseInt(lconn.share0.util.dom.getChildElementMatchingAttributeTextContentNS(this.e,"rank",lconn.share0.util.dom.SNX_NAMESPACE,"scheme",null,"http://www.ibm.com/xmlns/prod/sn/share"),0);
}
return this.shareCount;
},getCollectionCount:function(){
if(typeof this.collectionCount=="undefined"){
this.collectionCount=lconn.share0.util.text.parseInt(lconn.share0.util.dom.getChildElementMatchingAttributeTextContentNS(this.e,"rank",lconn.share0.util.dom.SNX_NAMESPACE,"scheme",null,"http://www.ibm.com/xmlns/prod/sn/collections"),0);
}
return this.collectionCount;
},getAttachmentCount:function(){
if(typeof this.attachmentCount=="undefined"){
this.attachmentCount=lconn.share0.util.text.parseInt(lconn.share0.util.dom.getChildElementMatchingAttributeTextContentNS(this.e,"rank",lconn.share0.util.dom.SNX_NAMESPACE,"scheme",null,"http://www.ibm.com/xmlns/prod/sn/attachments"));
}
return this.attachmentCount;
},getVersionCount:function(){
if(typeof this.versionCount=="undefined"){
this.versionCount=lconn.share0.util.text.parseInt(lconn.share0.util.dom.getChildElementMatchingAttributeTextContentNS(this.e,"rank",lconn.share0.util.dom.SNX_NAMESPACE,"scheme",null,"http://www.ibm.com/xmlns/prod/sn/versions"));
}
return this.versionCount;
}});
dojo.declare("lconn.share0.bean.FileFromJson",null,{constructor:function(_4){
this.d=_4;
},getName:function(){
return this.getLabel();
},getLabel:function(){
if(!this.label){
this.label=lconn.share0.util.misc.indexById(this.d.links,"rel","enclosure").title;
}
return this.label;
},getId:function(){
return this.d.id;
},getSize:function(){
if(!this.length){
this.length=lconn.share0.util.misc.indexById(this.d.links,"rel","enclosure").length;
}
return this.length;
},getTotalSize:function(){
if(!this.totalSize){
this.totalSize=parseInt(lconn.share0.util.misc.indexById(this.d.extensions,"name","td:totalMediaSize").children[0]);
}
return this.totalSize;
},getUpdated:function(){
if(!this.updated){
this.updated=lconn.share0.util.misc.date.convertAtomDate(lconn.share0.util.misc.indexById(this.d.extensions,"name","td:modified").children[0]);
}
return this.updated;
},getAuthor:function(){
if(!this.author){
this.author=new lconn.share0.bean.UserFromJson(this.d.authors[0]);
}
return this.author;
},getModifier:function(){
if(!this.modifier){
this.modifier=new lconn.share0.bean.UserFromJson(lconn.share0.util.misc.indexById(this.d.extensions,"name","td:modifier").children);
}
return this.modifier;
},getCategory:function(){
if(!this.category){
this.category=this.d.categories[0].term;
}
return this.category;
},getVersionNumber:function(){
if(!this.version){
this.version=lconn.share0.util.text.parseInt(lconn.share0.util.misc.indexById(this.d.extensions,"name","td:versionNumber").children[0],1);
}
return this.version;
},getVisibility:function(){
if(!this.vis){
this.vis=lconn.share0.util.misc.indexById(this.d.extensions,"name","td:visibility").children[0];
}
return this.vis;
},getAllSharesCount:function(){
return this.getShareCount()+this.getCollectionCount();
},getShareCount:function(){
if(typeof this.shareCount=="undefined"){
this.shareCount=0;
var _5=this.d.extensions;
for(var i=0;i<_5.length;i++){
var _6=_5[i];
if(_6.name=="snx:rank"&&_6.attributes.scheme=="http://www.ibm.com/xmlns/prod/sn/share"){
this.shareCount=lconn.share0.util.text.parseInt(_6.children[0]);
break;
}
}
}
return this.shareCount;
},getCollectionCount:function(){
if(typeof this.collectionCount=="undefined"){
this.collectionCount=0;
var _7=this.d.extensions;
for(var i=0;i<_7.length;i++){
var _8=_7[i];
if(_8.name=="snx:rank"&&_8.attributes.scheme=="http://www.ibm.com/xmlns/prod/sn/collections"){
this.collectionCount=lconn.share0.util.text.parseInt(_8.children[0]);
break;
}
}
}
return this.collectionCount;
}});
dojo.declare("lconn.share0.bean.FileCopy",null,{hardcoded:["isPublic","isPrivate","isUserRecommended","getName"],baseClass:lconn.share0.bean.File,constructor:function(_9){
_9=_9||new this.baseClass(null);
var m;
for(var _a in _9){
var f=_9[_a];
if(!this[_a]){
if(typeof f=="function"){
if(dojo.indexOf(this.hardcoded,_a)!=-1){
this[_a]=f;
}else{
if(m=/^get([A-Z])(.*)/.exec(_a)){
var _b=m[1].toLowerCase()+m[2];
var _c=f.apply(_9);
if(_c&&_c.nodeType){
this[_b]=_c;
}else{
if(typeof _c!="undefined"){
this[_b]=dojo.clone(_c);
}
}
this[_a]=dojo.partial(this.get,_b);
}else{
if(m=/^is([A-Z])(.*)/.exec(_a)){
var _b=m[1].toLowerCase()+m[2];
var _c=f.apply(_9);
if(_c&&_c.nodeType){
this[_b]=_c;
}else{
if(typeof _c!="undefined"){
this[_b]=dojo.clone(_c);
}
}
this[_a]=dojo.partial(this.get,_b);
}
}
}
}
}
}
},get:function(s){
return this[s];
}});
lconn.share0.bean.File.TRIMMED_FILENAME_LENGTH=24;
lconn.share0.bean.File.isFilenameTooLong=function(s){
var i=dojo.getObject("lconn.share0.config.validation.warnForDownload");
if(i>0){
return lconn.share0.util.text.lengthUtf8(s)>i;
}
return false;
};
}


;if(!dojo._hasResource["lconn.share0.bean.Draft"]){
dojo._hasResource["lconn.share0.bean.Draft"]=true;
dojo.provide("lconn.share0.bean.Draft");






dojo.declare("lconn.share0.bean.Draft",lconn.share0.bean.File,{getCategory:function(){
return "draft";
},getContent:function(){
return this.content||lconn.share0.util.dom.getChildElementTextContent(this.e,"content");
},getDocumentAuthor:function(){
if(!this.documentAuthor){
this.documentAuthor=new lconn.share0.bean.User(lconn.share0.util.dom.getElementsByTagNameNS(this.e,"documentOwner",lconn.share0.util.dom.DOCUMENTS_ATOM_NAMESPACE)[0]);
}
return this.documentAuthor;
},getDocumentId:function(){
return lconn.share0.util.dom.getChildElementTextContentNS(this.e,"documentUuid",lconn.share0.util.dom.DOCUMENTS_ATOM_NAMESPACE);
},getDocumentUpdated:function(){
if(!this.documentUpdated){
this.documentUpdated=lconn.share0.util.misc.date.convertAtomDate(lconn.share0.util.dom.getChildElementTextContentNS(this.e,"documentModified",lconn.share0.util.dom.DOCUMENTS_ATOM_NAMESPACE))||this.getSystemLastModified();
}
return this.documentUpdated;
},getDocumentPublished:function(){
if(!this.documentPublished){
this.documentPublished=lconn.share0.util.misc.date.convertAtomDate(lconn.share0.util.dom.getChildElementTextContentNS(this.e,"documentCreated",lconn.share0.util.dom.DOCUMENTS_ATOM_NAMESPACE))||this.getSystemLastModified();
}
return this.documentPublished;
},getDocumentSystemLastModified:function(){
if(!this.documentLastModified){
this.documentLastModified=lconn.share0.util.misc.date.convertAtomDate(lconn.share0.util.dom.getChildElementTextContentNS(this.e,"documentUpdated",lconn.share0.util.dom.DOCUMENTS_ATOM_NAMESPACE))||this.getSystemLastModified();
}
return this.documentLastModified;
},getDocumentSystemCreated:function(){
if(!this.documentCreated){
this.documentCreated=lconn.share0.util.misc.date.convertAtomDate(lconn.share0.util.dom.getChildElementTextContentNS(this.e,"documentPublished",lconn.share0.util.dom.DOCUMENTS_ATOM_NAMESPACE))||this.getSystemLastModified();
}
return this.documentCreated;
},getDocumentModifier:function(){
if(!this.modifier){
var _1=lconn.share0.util.dom.getElementsByTagNameNS(this.e,"documentModifier",lconn.share0.util.dom.DOCUMENTS_ATOM_NAMESPACE)[0];
if(_1){
this.modifier={id:decodeURIComponent(lconn.share0.util.dom.getChildElementTextContentNS(_1,"uri",lconn.share0.util.dom.DOCUMENTS_ATOM_NAMESPACE)),name:lconn.share0.util.dom.getChildElementTextContentNS(_1,"name",lconn.share0.util.dom.DOCUMENTS_ATOM_NAMESPACE),email:lconn.share0.util.dom.getChildElementTextContentNS(_1,"email",lconn.share0.util.dom.DOCUMENTS_ATOM_NAMESPACE)};
}
}
return this.modifier;
},getLibrary:function(){
if(!this.library){
var _2=lconn.share0.util.dom.getElementsByTagNameNS(this.e,"library",lconn.share0.util.dom.DOCUMENTS_ATOM_NAMESPACE)[0];
if(_2){
this.library={libraryId:lconn.share0.util.dom.getChildElementTextContentNS(_2,"libraryUuid",lconn.share0.util.dom.DOCUMENTS_ATOM_NAMESPACE),libraryTitle:lconn.share0.util.dom.getChildElementTextContentNS(_2,"libraryTitle",lconn.share0.util.dom.DOCUMENTS_ATOM_NAMESPACE),label:lconn.share0.util.dom.getChildElementTextContentNS(_2,"label",lconn.share0.util.dom.DOCUMENTS_ATOM_NAMESPACE)};
}
}
return this.library;
},getWikiLabel:function(){
if(!this.wikiLabel){
var l=this.getLibrary();
this.wikiLabel=l.label;
}
return this.wikiLabel;
}});
}


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


dojo.declare("lconn.share0.util.QuotaCache",null,{lastUpdate:-1,expiration:300000,net:null,url:null,size:NaN,totalSize:NaN,constructor:function(_1){
dojo.mixin(this,_1);
},update:function(_2,_3){
this.lastUpdate=new Date().getTime();
this.size=_2;
this.totalSize=_3;
this.onUpdate(_2,_3);
},isExpired:function(){
return (isNaN(this.lastUpdate)||(new Date().getTime()-this.expiration)>this.lastUpdate);
},expire:function(){
this.lastUpdate=-1;
this.size=this.totalSize=NaN;
var _4=lconn.share0.util.misc;
if(_4.hasListeners(this.onUpdate)||_4.hasListeners(this.onError)){
this.load();
}
},load:function(){
url=lconn.share0.util.uri.rewriteUri(this.url,{expireWikiCache:true});
this.net.getXml({url:url,handle:dojo.hitch(this,"handleLoad")});
},handleLoad:function(_5,_6){
if(_5 instanceof Error){
this.onError(_5);
return;
}
var _7=new lconn.share0.bean.Library(_5.documentElement);
this.libraryId=_7.getId();
this.update(_7.getSize(),_7.getQuota());
},changeSize:function(_8){
if(!isNaN(this.size)){
this.size+=_8;
this.onUpdate(this.size,this.totalSize);
}
},onUpdate:function(_9,_a){
},onError:function(_b){
}});
}


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




dojo.declare("lconn.wikis.util.QuotaCache",[lconn.share0.util.QuotaCache],{_quotaThresholdError:dojo.getObject("lconn.share0.config.services.quota.thresholdError")||0,_quotaThresholdWarn:dojo.getObject("lconn.share0.config.services.quota.thresholdAlert")||0,label:"",topic:"lconn/wikis/wiki/{label}/quota/change",constructor:function(){
dojo.subscribe(this.topic.replace("{label}",this.label),this,this._update);
},isQuotaError:function(){
return !isNaN(this.totalSize)&&this.totalSize>0&&this._quotaThresholdError>0&&(this.totalSize-this.size<this._quotaThresholdError);
},isQuotaWarn:function(){
return !isNaN(this.totalSize)&&this.totalSize>0&&this._quotaThresholdWarn>0&&(this.totalSize-this.size<this._quotaThresholdWarn);
},handleLoad:function(_1,_2){
if(_1 instanceof Error){
this.onError(_1);
return;
}
var _3=new lconn.wikis.bean.Wiki(_1.documentElement);
this.update(_3.getSize(),_3.getQuota());
this.onwikiupdated(_3);
},_update:function(_4){
this.size+=_4;
this.update(this.size,this.totalSize);
},onwikiupdated:function(_5){
}});
}


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


dojo.declare("lconn.wikis.util.WikiCache",null,{label:"",url:"",wiki:null,constructor:function(_1){
dojo.mixin(this,_1);
this.load();
},load:function(){
this.net.getXml({url:this.url,handle:dojo.hitch(this,"handleLoad"),sync:true});
},handleLoad:function(_2,_3){
if(_2 instanceof Error){
this.wiki=null;
this.error=_2;
this.onError(_2);
return;
}
var _4=new lconn.wikis.bean.Wiki(_2.documentElement);
if(_4&&_4.isCommunityWiki()){
window.isCommunityWiki=true;
}else{
window.isCommunityWiki=false;
}
this.update(_4);
},update:function(_5){
this.wiki=_5;
},onError:function(){
}});
}


;if(!dojo._hasResource["lconn.wikis.widget.WikiPeopleDataStore"]){
dojo._hasResource["lconn.wikis.widget.WikiPeopleDataStore"]=true;
dojo.provide("lconn.wikis.widget.WikiPeopleDataStore");


dojo.declare("lconn.wikis.widget.WikiPeopleDataStore",[lconn.core0.PeopleDataStore],{constructor:function(_1,_2){
this.inherited(arguments);
this.internalOnly=_1.internalOnly;
}});
}


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


lconn.share0.util.urifragment={isAnchorForm:function(_1,_2){
var _3=_1.path;
return _3==_2;
},toAnchorForm:function(_4,_5,_6){
var _7=_4.path;
if(_7){
if(_7.indexOf(_5)==0){
var p={};
var _8=_7.substring(_5.length);
var _9=dojo.clone(_4);
if(_9.queryParameters){
var q=_9.queryParameters;
if(_6){
for(var _a in _6){
p[_a]=q[_a]||_6[_a];
delete q[_a];
}
}
_8+=lconn.share0.util.uri.writeParameters(q);
}else{
for(var _a in _6){
p[_a]=_6[_a];
}
}
_9.path=_5;
_9.fragment="!"+((_8.length>0)?_8:"/");
_9.queryParameters=p;
_9.query=null;
_4=_9;
}
}
return _4;
},fromAnchorForm:function(_b,_c){
if(!_b){
return _b;
}
var _d=_b.path;
if(_b.fragment&&_d){
if(_d==_c){
var _e=(_b.fragment.indexOf("!")==0)?_b.fragment.substring(1):_b.fragment;
var _f=dojo.clone(_b);
var p=_f.queryParameters;
_f.queryParameters=null;
_f.query=null;
_f.fragment=null;
_f.path=_d+_e;
var url=lconn.share0.util.uri.writeUri(_f);
var _10=new dojo._Url(url);
dojo.mixin(p,lconn.share0.util.uri.splitQuery(_10.query));
_10.queryParameters=p;
_10.query=null;
_b=_10;
}
}
return _b;
}};
}


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




var _1=dojo;
var _2=dojo.getObject("lconn.share0",true);
var _3=_2.bundleDfd={};
_2.bundles={};
function _4(_5){
var d=document;
var _6=d.getElementsByTagName("head")[0];
var s=d.createElement("script");
s.type="text/javascript";
s.src=_5;
if(dojo.isIE){
setTimeout(function(){
_6.appendChild(s);
},0);
}else{
_6.appendChild(s);
}
};
function _7(s){
var _8=_3[s];
if(!_8){
_8=_3[s]=new dojo.Deferred();
}
_8.modules=_8.modules||{};
_8.ready=true;
_8.callback(dojo.getObject(s));
for(var _9 in _8.modules){
if(!dojo.exists(_9)){
console.error("The module '"+_9+"' was missing from an async require of module '"+s+"'");
}
}
};
dojo.subscribe("lconn/share/require/available",_7);
_2.require=function(s,b){
var e=dojo.getObject(s);
if(e){
return e;
}
if(!b){
b=_2.bundles[s];
}
if(b){
if(dojo.isArray(b)){
for(var i=0,l=b.length;i<l;i++){
_1.require(b[i],true);
}
}else{
_1.require(b,true);
}
e=dojo.getObject(s);
if(e){
return e;
}
}
_1.require(s);
return dojo.getObject(s);
};
_2.requireAsync=function(b,_a,_b){
var _c=new dojo.Deferred();
net.jazz.ajax.xdloader.load_async(b,dojo.hitch(_c,"callback",{}),_b);
return _c;
};
_2.whenRequired=function(b){
var _d=_3[b];
if(!_d){
_d=_3[b]=new dojo.Deferred();
}
return _d;
};
})();
}


;if(!dojo._hasResource["lconn.share0.widget.MessageContainer"]){
dojo._hasResource["lconn.share0.widget.MessageContainer"]=true;
dojo.provide("lconn.share0.widget.MessageContainer");




dojo.declare("lconn.share0.widget.MessageContainer",[dijit._Widget],{nls:{},postMixInProperties:function(){
if(this.messages){
this.items=this.messages.getMessages();
if(this.filter){
this.items=dojo.filter(this.items,this.filter);
}
this.connect(this.messages,"onNew","add");
this.connect(this.messages,"onClear","update");
}else{
this.items=this.items||[];
}
},buildRendering:function(){
var d=document;
var el=this.domNode=this.srcNodeRef;
if(this.baseClass){
dojo.addClass(this.domNode,this.baseClass);
}
this.update(this.items);
},renderItem:function(el,_1){
var d=document;
var _2=this.nls.INFO;
var _3="lconnSprite lconnSprite-iconAttention16";
var _4="lotusMessage lotusInfo";
if(_1.error){
_2=this.nls.ERROR;
_3="lconnSprite lconnSprite-iconError16";
_4="lotusMessage lotusError";
}else{
if(_1.warning){
_2=this.nls.WARNING;
_3="lconnSprite lconnSprite-iconWarning16";
_4="lotusMessage lotusWarning";
}else{
if(_1.success){
_2=this.nls.SUCCESS;
_3="lconnSprite lconnSprite-iconConfirmation16";
_4="lotusMessage lotusConfirm";
}
}
}
dijit.setWaiRole(el,"alert");
var _5=d.createElement("div");
_5._id=_1._id;
_5.className=_4;
var _6=d.createElement("img");
_6.alt=_6.title=(_1.warning||_1.error)?_2:"";
_6.className=_3;
_6.src=dijit._Widget.prototype._blankGif;
_5.appendChild(_6);
if(_1.warning||_1.error){
var _7=d.createElement("span");
_7.className="lotusAltText";
_7.appendChild(d.createTextNode(_2));
_5.appendChild(_7);
}
var _7=d.createElement("span");
var _8=_1.message;
if(_8){
if(typeof _8=="function"){
_8=_8.apply(_1,[d]);
}
if(typeof _8=="string"){
lconn.share0.util.html.breakString(_1.message,d,_7,15);
}else{
if(_8.nodeType){
_7.appendChild(_8);
}
}
}
_5.appendChild(_7);
if(_1.canClose){
var a=d.createElement("a");
a.href="javascript:;";
a.className="lotusDelete";
dojo.connect(a,"onclick",dojo.hitch(this,"remove",_1));
dijit.setWaiRole(a,"button");
var _6=d.createElement("img");
_6.alt=_6.title=this.nls.DISMISS;
_6.src=dijit._Widget.prototype._blankGif;
_6.style.marginTop="2px";
a.appendChild(_6);
var _7=d.createElement("span");
_7.className="lotusAltText";
_7.title=this.nls.DISMISS;
_7.appendChild(d.createTextNode("X"));
a.appendChild(_7);
_5.appendChild(a);
}
el.appendChild(_5);
dijit.setWaiRole(_5,"alert");
return _5;
},update:function(m,_9){
var el=this.domNode;
lconn.share0.util.html.removeChildren(el);
if(m&&this.filter){
m=dojo.filter(m,this.filter,this);
}
this.items=m=m||[];
for(var i=0;i<m.length;i++){
var _a=m[i];
_a._id=i;
this.renderItem(el,_a);
}
el.style.display=(m.length==0)?"none":"";
if(_9){
dijit.scrollIntoView(this.domNode);
}
},remove:function(id,e){
if(e){
dojo.stopEvent(e);
}
if(typeof id=="object"){
id=id._id;
}
var el=this.domNode;
if(!el){
return;
}
var _b=el.childNodes;
for(var i=0;i<_b.length;i++){
if(_b[i]._id==id){
lconn.share0.util.html.removeChildren(_b[i]);
this.domNode.removeChild(_b[i]);
break;
}
}
var _c=this.items;
for(var i=0;i<_c.length;i++){
if(this.items[i]._id==id){
var _d=this.items.splice(i,1)[0];
_d.closed=true;
if(typeof _d.onClose=="function"){
_d.onClose();
}
break;
}
}
el.style.display=(this.items.length==0)?"none":"";
},add:function(_e,_f){
if(this.filter&&!this.filter(_e)){
return;
}
this.items.push(_e);
_e._id=this.items.length-1;
var div=this.renderItem(this.domNode,_e);
this.domNode.style.display="";
if(_f){
dijit.scrollIntoView(this.domNode);
}
}});
}


;if(!dojo._hasResource["lconn.wikis.action.Reauthenticate"]){
dojo._hasResource["lconn.wikis.action.Reauthenticate"]=true;
dojo.provide("lconn.wikis.action.Reauthenticate");








dojo.declare("lconn.wikis.action.Reauthenticate",[lconn.share0.action.DialogAction],{wInput:"330px",wDialog:"450px",_stringsPrefix:"REAUTHENTICATE",messages:null,messageContainer:null,alwaysRecreate:true,constructor:function(_1,_2,_3){
this.app=_1;
this.nls=_1.nls[this._stringsPrefix];
this._nls=_1.nls;
this.name=this.nls.ACTION;
this.tooltip=this.nls.ACTION_TOOLTIP;
},createDialog:function(_4,_5,_6){
var d=document;
var _7=this.createDialogFrame(d,_6);
var _8=_7.border;
var _9=_7.content;
var _a=d.createElement("table");
var _b=d.createElement("colgroup");
_b.appendChild(d.createElement("col"));
var _c=d.createElement("col");
_c.width="100%";
_b.appendChild(_c);
_a.appendChild(_b);
_a.className="lotusFormTable";
_a.cellPadding=_a.cellPadding=0;
var _d=d.createElement("tbody");
var tr=d.createElement("tr");
tr.className="lotusFormFieldRow";
var td=d.createElement("td");
td.colSpan=2;
this.msgSpan=td.appendChild(d.createElement("span"));
tr.appendChild(td);
_d.appendChild(tr);
tr=d.createElement("tr");
tr.className="lotusFormFieldRow";
td=d.createElement("td");
td.colSpan=2;
var _e=_6.infoNode=td.appendChild(d.createElement("div"));
_e.appendChild(d.createTextNode(this.nls.INFO));
_e.id="lconn.wikis.action.Reauthenticate.info";
tr.appendChild(td);
_d.appendChild(tr);
var tr=d.createElement("tr");
tr.className="lotusFormFieldRow";
var td=d.createElement("td");
td.colSpan=2;
td.className="lotusNowrap";
var _f=d.createElement("label");
lconn.share0.validation.addRequiredIndicator(_f);
_f.appendChild(d.createTextNode(this.nls.NAME_LABEL));
td.appendChild(_f);
var _e=d.createElement("div");
var _10=_6.nameNode=d.createElement("input");
this.userInput=_10;
_10.id=_6.id+"_username";
dojo.attr(_f,"for",_10.id);
_10.className="lotusText";
_10.name="j_username";
dijit.setWaiState(_10,"required",true);
dijit.setWaiState(_10,"describedby","lconn.wikis.action.Reauthenticate.info");
_e.appendChild(_10);
td.appendChild(_e);
tr.appendChild(td);
_d.appendChild(tr);
var tr=d.createElement("tr");
tr.className="lotusFormFieldRow";
var td=d.createElement("td");
td.colSpan=2;
td.className="lotusNowrap";
var _f=d.createElement("label");
lconn.share0.validation.addRequiredIndicator(_f);
_f.appendChild(d.createTextNode(this.nls.PASSWORD_LABEL));
td.appendChild(_f);
var _e=d.createElement("div");
var _10=_6.passwordNode=d.createElement("input");
this.pwdInput=_10;
_10.type="password";
_10.id=_6.id+"_password";
dojo.attr(_f,"for",_10.id);
_10.className="lotusText";
_10.name="j_password";
dijit.setWaiState(_10,"required",true);
_e.appendChild(_10);
td.appendChild(_e);
_e=d.createElement("div");
var _10=_6.secureInput=d.createElement("input");
this.secureInput=_10;
_10.type="hidden";
_10.id=_6.id+"_secure";
dojo.attr(_f,"for",_10.id);
_10.className="lotusText";
_10.name="secure";
_10.value=(window.location.protocol=="https:")?"true":"false";
_e.appendChild(_10);
td.appendChild(_e);
_e=d.createElement("div");
_10=_6.redirectInput=d.createElement("input");
this.redirectInput=_10;
_10.type="hidden";
_10.id=_6.id+"_secure";
dojo.attr(_f,"for",_10.id);
_10.className="lotusText";
_10.name="redirect";
_10.value=this.app.routes.getAuthenticationUrl();
_e.appendChild(_10);
td.appendChild(_e);
tr.appendChild(td);
_d.appendChild(tr);
var tr=d.createElement("tr");
tr.className="lotusFormFieldRow";
var td=d.createElement("td");
td.colSpan=2;
var _e=td.appendChild(d.createElement("p"));
var a=d.createElement("a");
a.href="javascript:;";
dojo.connect(a,"onclick",this,"goToLogingUrl");
a.appendChild(d.createTextNode(this.nls.GO_TO_LOGIN_PAGE));
_e.appendChild(a);
tr.appendChild(td);
_d.appendChild(tr);
tr=d.createElement("tr");
tr.className="lotusFormField lotusMeta";
td=d.createElement("td");
td.colSpan=2;
var _f=td.appendChild(d.createElement("label"));
_f.appendChild(d.createTextNode(this.app.nls.ACCESSIBILITY.LABELS.REQUIRED));
tr.appendChild(td);
_d.appendChild(tr);
_a.appendChild(_d);
_9.appendChild(_a);
_6.setContent(_8);
_6.initialFocusNode=_6.nameNode;
_6.formNode.id="reloginForm";
if(!this.messages){
this.messages=new lconn.share0.util.Messages({onClear:function(){
this.messages=[];
}});
}
this.messageContainer=new lconn.share0.widget.MessageContainer({id:"lconn.wikis.action.Reauthenticate.msg",messages:this.messages,nls:{ERROR:this.nls.ERROR}},this.msgSpan);
this.updateDialog(_4,_5,_6);
},goToLogingUrl:function(e){
if(e){
dojo.stopEvent(e);
}
var app=this.app;
if(app.removeOnBackHandler){
app.removeOnBackHandler();
}
app.load(app.routes.getLoginUrl());
},updateDialog:function(_11,opt,_12){
_12.nameNode.value="";
_12.passwordNode.value="";
this.messages.onClear();
dijit.setWaiRole(_12.infoNode,"alert");
},validate:function(){
return true;
},save:function(e){
if(e){
dojo.stopEvent(e);
}
var _13=this.dialog;
this._requests.push(dojo.io.iframe.send({url:dojo.getObject("lconn.share0.config.services.loginPostUri"),handleAs:"html",noStatus:true,form:"reloginForm",auth:{secured:false},handle:dojo.hitch(this,this.protectedComplete),method:"POST"}));
return true;
},complete:function(_14,_15){
var _16=false;
try{
_16=(_14 instanceof Error)||!_14||!_14.getElementById("X-Qkr-Authenticated");
}
catch(e){
_16=true;
}
if(_16){
this.onError();
return false;
}
this.close();
this.app.onLogin();
return true;
},onError:function(_17){
if(this.pwdInput&&this.userInput){
dijit.setWaiState(this.pwdInput,"invalid","true");
dijit.setWaiState(this.userInput,"invalid","true");
}
this.messages.onClear();
this.messages.add({error:true,canClose:true,message:this.nls.ERROR});
}});
}


;if(!dojo._hasResource["lconn.share0.util.configUtil"]){
dojo._hasResource["lconn.share0.util.configUtil"]=true;
(function(){
var _1=function(_2,_3,_4){
var _5=null;
if(_2){
_5=dojo.getObject(_3,false,_2);
}
if(_5==null){
_5=dojo.getObject(_4);
}
return _5;
};
dojo.mixin(dojo.provide("lconn.share0.util.configUtil"),{canViewPublicWikis:function(_6){
return dojo.getObject("policy.capabilities.canView.wikis.public",false,_6);
},canViewInternalWikis:function(_7){
return dojo.getObject("policy.capabilities.canView.wikis.internal",false,_7);
}});
})();
}


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




lconn.wikis.routes={decode:function(_1,_2,_3){
var _4={};
_4.parameters=_2.queryParameters;
delete _4.parameters.lang;
var _5=lconn.wikis.routes;
var f=_5.executeRegex;
var r=[];
var _6;
if(f(_5.ROUTE_WIKI,_1,r)){
_6=r[4]||r[3];
_4.wikiLabel=r[2]?lconn.share0.util.uri.decodeUriComponent(r[2]):null;
if(f(_5.ROUTE_WIKIPAGE_SUBPATH,_6,r)){
_6=r[4]||r[3];
_4.pageId=_4.pageLabel=r[2]?lconn.share0.util.uri.decodeUriComponent(r[2]):null;
if(f(_5.ROUTE_WIKIPAGE_COMMENT_SUBPATH,_6,r)){
_4.mode="comments";
_4.commentId=r[1];
}else{
if(f(_5.ROUTE_WIKIPAGE_INFO_SUBPATH,_6,r)){
_4.mode="info";
}else{
if(f(_5.ROUTE_WIKIPAGE_VERSIONS_SUBPATH,_6,r)){
_4.mode="versions";
}else{
if(f(_5.ROUTE_WIKIPAGE_ATTACHMENTS_SUBPATH,_6,r)){
_4.mode="attachments";
}else{
if(f(_5.ROUTE_WIKIPAGE_VERSION_SUBPATH,_6,r)){
_4.mode="version";
_4.versionId=r[1];
}else{
if(f(_5.ROUTE_WIKIPAGE_COMPARE_SUBPATH,_6,r)){
_4.mode="compare";
}else{
if(f(_5.ROUTE_WIKIPAGE_CONFIRM_SUBPATH,_6,r)){
_4.id="lconn.wikis.scenes.ConfirmNewPage";
return _4;
}else{
if(f(_5.ROUTE_WIKIPAGE_EDIT_SUBPATH,_6,r)){
_4.id="lconn.wikis.scenes.WikiPageEdit";
return _4;
}
}
}
}
}
}
}
}
if(_4.parameters.pv){
_4.id="lconn.wikis.scenes.PageView";
}else{
_4.id="lconn.wikis.scenes.WikiPage";
}
}else{
if(f(_5.ROUTE_EDITWIKI_SUBPATH,_6,r)){
_4.id="lconn.wikis.scenes.EditWiki";
}else{
if(f(_5.ROUTE_PAGECREATE_SUBPATH,_6,r)){
_4.id="lconn.wikis.scenes.PageCreate";
}else{
if(f(_5.ROUTE_EDIT_DRAFT_SUBPATH,_6,r)){
_4.draftId=r[1];
_4.id="lconn.wikis.scenes.WikiPageEdit";
}else{
if(f(_5.ROUTE_CREATE_DRAFT_SUBPATH,_6,r)){
_4.draftId=r[1];
_4.id="lconn.wikis.scenes.PageCreate";
}else{
if(f(_5.ROUTE_MEMBERS_SUBPATH,_6,r)){
_4.id="lconn.wikis.scenes.Members";
}else{
if(f(_5.ROUTE_RECYCLEBIN_SUBPATH,_6,r)){
_4.id="lconn.wikis.scenes.RecycleBin";
}else{
if(f(_5.ROUTE_MYPAGES_SUBPATH,_6,r)){
_4.id="lconn.wikis.scenes.MyPages";
}else{
if(f(_5.ROUTE_PERSONALPAGES_SUBPATH,_6,r)){
_4.userId=lconn.share0.util.uri.decodeUriComponent(r[1]);
_4.id="lconn.wikis.scenes.PersonalPages";
}else{
_4.id="lconn.wikis.scenes.PagesIndex";
}
}
}
}
}
}
}
}
}
}else{
if(f(_5.ROUTE_MYWIKIS,_1,r)){
_6=r[2];
if(f(_5.ROUTE_CREATEWIKI_SUBPATH,_6,r)){
_4.id="lconn.wikis.scenes.CreateWiki";
}else{
_4.id="lconn.wikis.scenes.MyWikis";
}
}else{
if(f(_5.ROUTE_PUBLICWIKIS,_1,r)){
_4.id="lconn.wikis.scenes.PublicWikis";
}else{
if(f(_5.ROUTE_SEARCH,_1,r)){
_4.id="lconn.wikis.scenes.WikiSearch";
}else{
if(f(_5.ROUTE_ABOUT,_1,r)){
_4.id="lconn.wikis.scenes.About";
}else{
if(f(_5.ROUTE_STATISTICS,_1,r)){
_4.id="lconn.wikis.scenes.Statistics";
}else{
if(f(_5.ROUTE_TOOLS,_1,r)){
_4.id="lconn.wikis.scenes.Toolbox";
}else{
_4.id=this._getDefaultScene(_3);
}
}
}
}
}
}
}
_4._bundle=_5._bundles[_4.id]||"lconn.wikis.bundle_other";
return _4;
},_getDefaultScene:function(_7){
return _7?"lconn.wikis.scenes.PublicWikis":"lconn.wikis.scenes.MyWikis";
},isProtectedUri:function(_8,_9){
var _a=lconn.wikis.routes;
var f=_a.executeRegex;
var r=[];
var _b;
if(f(_a.ROUTE_WIKI,_8,r)){
_b=r[4]||r[3];
if(f(_a.ROUTE_WIKIPAGE_SUBPATH,_b,r)){
_b=r[4]||r[3];
if(f(_a.ROUTE_WIKIPAGE_CONFIRM_SUBPATH,_b,r)){
return true;
}else{
if(f(_a.ROUTE_WIKIPAGE_EDIT_SUBPATH,_b,r)){
return true;
}
}
}else{
if(f(_a.ROUTE_EDITWIKI_SUBPATH,_b,r)){
return true;
}else{
if(f(_a.ROUTE_PAGECREATE_SUBPATH,_b,r)){
return true;
}else{
if(f(_a.ROUTE_EDIT_DRAFT_SUBPATH,_b,r)){
return true;
}else{
if(f(_a.ROUTE_CREATE_DRAFT_SUBPATH,_b,r)){
return true;
}else{
if(f(_a.ROUTE_MYPAGES_SUBPATH,_b,r)){
return true;
}
}
}
}
}
}
}else{
if(f(_a.ROUTE_MYWIKIS,_8,r)){
return true;
}
}
return false;
},executeRegex:function(_c,_d,_e){
_e.splice(0,_e.length);
var r=_c.exec(_d);
if(r){
for(var i=0,l=r.length;i<l;i++){
_e.push(r[i]);
}
return true;
}
return false;
},isForbidden4User:function(_f,_10){
if(_10){
return !lconn.share0.util.configUtil.canViewInternalWikis(_10)&&_f&&dojo.some(lconn.wikis.routes.CM_DISABLED_ROUTES,function(_11){
return _11==_f.id;
});
}
return false;
},isForbidden:function(_12,_13){
return _13&&_12&&dojo.some(lconn.wikis.routes.CM_DISABLED_ROUTES,function(_14){
return _14==_12.id;
});
},_bundles:{},ROUTE_PUBLICWIKIS:/^(home)\/public\/?/,ROUTE_MYWIKIS:/^(home)\/mywikis\/?(.+)?/,ROUTE_CREATEWIKI_SUBPATH:/^create$/,ROUTE_WIKI:/^(home)\/wiki\/([^\/]+)(\/?(.+)?)$/,ROUTE_WIKIPAGE_SUBPATH:/^(\/?|page\/([^\/]+)(\/?(.+)?))$/,ROUTE_WIKIPAGE_ATTACHMENTS_SUBPATH:/^attachments\/?$/,ROUTE_WIKIPAGE_COMMENT_SUBPATH:/^comment\/?([^\/]+)?\/?$/,ROUTE_WIKIPAGE_CONFIRM_SUBPATH:/^confirm\/?$/,ROUTE_WIKIPAGE_INFO_SUBPATH:/^info\/?$/,ROUTE_WIKIPAGE_VERSIONS_SUBPATH:/^versions\/?$/,ROUTE_WIKIPAGE_VERSION_SUBPATH:/^version\/?([^\/]+)?\/?$/,ROUTE_WIKIPAGE_COMPARE_SUBPATH:/^compare\/?$/,ROUTE_WIKIPAGE_EDIT_SUBPATH:/^edit\/?$/,ROUTE_EDITWIKI_SUBPATH:/^edit\/?$/,ROUTE_EDIT_DRAFT_SUBPATH:/^draft\/([^\/]+)\/edit\/?$/,ROUTE_CREATE_DRAFT_SUBPATH:/^draft\/([^\/]+)\/create\/?$/,ROUTE_MEMBERS_SUBPATH:/^members\/?$/,ROUTE_RECYCLEBIN_SUBPATH:/^trash\/?$/,ROUTE_PAGESINDEX_SUBPATH:/^index\/?$/,ROUTE_MYPAGES_SUBPATH:/^mypages\/?$/,ROUTE_PERSONALPAGES_SUBPATH:/^person\/([^\/]+)\/pages\/?$/,ROUTE_PAGECREATE_SUBPATH:/^pages\/create\/?$/,ROUTE_SEARCH:/^(home)\/search\/?$/,ROUTE_ABOUT:/^(home)\/about\/?$/,ROUTE_STATISTICS:/^(home)\/statistics\/?$/,ROUTE_TOOLS:/^(home)\/toolbox\/?$/,CM_DISABLED_ROUTES:["lconn.wikis.scenes.PublicWikis","lconn.wikis.scenes.MyWikis"]};
}

dojo.provide("com.ibm.oneui.recommend.nls.Recommender")._built=true;
dojo.provide("com.ibm.oneui.recommend.nls.Recommender.en");
com.ibm.oneui.recommend.nls.Recommender.en={"ERROR":{"TITLE":"Alert","RECOMMEND_LOAD_FAILED":"This item has been deleted or is no longer visible."},"INLINE":{"RECOMMENDED_BYMANY":{"TEXT":"${recommendCount}","TOOLTIP":"${recommendCount} people like this","READONLYTEXT":"${recommendCount}"},"UNRECOMMENDED":{"TEXT":"\x3ca class=\'lotusLikeAction\' role=\'button\' href=\'javascript:;\' id=\'TOGGLE_${id}\'\x3eLike\x3c/a\x3e","TOOLTIP":"Like this","READONLYTEXT":""},"RECOMMENDED_BYONE":{"TEXT":"${recommendCount}","TOOLTIP":"1 person likes this","READONLYTEXT":"${recommendCount}"},"RECOMMENDED_BYNONE":{"TEXT":"${recommendCount}","TOOLTIP":"0 people like this","READONLYTEXT":"${recommendCount}"},"RECOMMENDED":{"TEXT":"\x3cspan class=\'lotusLikeDescription\'\x3eYou like this\x3c/span\x3e \x3cspan class=\'lotusDivider\' role=\'separator\'\x3e-\x3c/span\x3e \x3ca class=\'lotusLikeAction\' role=\'button\' aria-label=\'You like this\' href=\'javascript:;\' id=\'TOGGLE_${id}\'\x3eUnlike\x3c/a\x3e","TOOLTIP":"Unlike","READONLYTEXT":"\x3cspan class=\'lotusLikeDescription\'\x3eYou like this\x3c/span\x3e"}},"POPUP":{"RECOMMENDED_ME_MANY":{"TEXT":"\x3cspan class=\'lotusLikeDescription\'\x3eYou like this\x3c/span\x3e\x3cspan class=\'lotusDivider\' role=\'separator\'\x3e-\x3c/span\x3e\x3ca class=\'lotusLikeAction\' role=\'button\' aria-label=\'You like this\' href=\'javascript:;\' id=\'TOGGLE_${id}\'\x3eUnlike\x3c/a\x3e","TOOLTIP":"Unlike","READONLYTEXT":"\x3cspan class=\'lotusLikeDescription\'\x3eYou like this\x3c/span\x3e"},"RECOMMENDED_ME_ONE":{"TEXT":"\x3cspan class=\'lotusLikeDescription\'\x3eYou like this\x3c/span\x3e\x3cspan class=\'lotusDivider\' role=\'separator\'\x3e-\x3c/span\x3e\x3ca class=\'lotusLikeAction\' role=\'button\' aria-label=\'You like this\' href=\'javascript:;\' id=\'TOGGLE_${id}\'\x3eUnlike\x3c/a\x3e","TOOLTIP":"Unlike","READONLYTEXT":"\x3cspan class=\'lotusLikeDescription\'\x3eYou like this\x3c/span\x3e"},"RECOMMENDED_NOTME_MANY":{"TEXT":"\x3ca class=\'lotusLikeAction\' role=\'button\' href=\'javascript:;\' id=\'TOGGLE_${id}\'\x3eLike\x3c/a\x3e","TOOLTIP":"Like this","READONLYTEXT":""},"RECOMMENDED_HEADER_SHOWING_ALL":"People who like this...","RECOMMENDED_HEADER_SHOWING_SOME":"People who like this... (sorted by name)","RECOMMENDED_CLOSE_TITLE":"Close list of people who like this.","RECOMMENDED_NOTME_ONE":{"TEXT":"\x3ca class=\'lotusLikeAction\' role=\'button\' href=\'javascript:;\' id=\'TOGGLE_${id}\'\x3eLike\x3c/a\x3e","TOOLTIP":"Like this","READONLYTEXT":""},"RECOMMENDED_ME_ONLY":{"TEXT":"\x3cspan class=\'lotusLikeDescription\'\x3eYou like this\x3c/span\x3e\x3cspan class=\'lotusDivider\' role=\'separator\'\x3e-\x3c/span\x3e\x3ca class=\'lotusLikeAction\' role=\'button\' aria-label=\'You like this\' href=\'javascript:;\' id=\'TOGGLE_${id}\'\x3eUnlike\x3c/a\x3e","TOOLTIP":"Unlike","READONLYTEXT":"\x3cspan class=\'lotusLikeDescription\'\x3eYou like this\x3c/span\x3e"}},"LOADING":"Loading...","TEMPLATE_STRINGS":{"LIKES":"Likes"}};
dojo.provide("com.ibm.oneui.controls.nls.HoverPopup")._built=true;
dojo.provide("com.ibm.oneui.controls.nls.HoverPopup.en");
com.ibm.oneui.controls.nls.HoverPopup.en={"help":"Help","close":"Close","popup":"Popup","closeHint":"Click here to close this pop-up window"};
dojo.provide("lconn.search.nls.searchResults")._built=true;
dojo.provide("lconn.search.nls.searchResults.en");
lconn.search.nls.searchResults.en={"ACTIVITIES_LABEL":"Activities","BLOGS_LABEL":"Blogs","FORUMS_LABEL":"Forums","ERROR_PREFIX":"Error:","ALLCONNECTIONS_TITLE":"Show results from all of Connections","FILES_TITLE":"Show results from Files","DOGEAR_TITLE":"Show results from Bookmarks","STATUS_UPDATES_TITLE":"Show results from Status Updates","WIKIS_TITLE":"Show results from Wikis","LOADING":"Loading...","COMMUNITIES_TITLE":"Show results from Communities","PROFILES_TITLE":"Show results from Profiles","ACTIVITIES_TITLE":"Show results from Activities","SEARCH_INPUT_LABEL":"Enter a keyword here to refine your search results","ERROR":"Error","ALLCONNECTIONS_LABEL":"All Results","BLOGS_TITLE":"Show results from Blogs","FORUMS_TITLE":"Show results from Forums","FILES_LABEL":"Files","COMPONENT_FILTER_LABEL":"Filter results to content from a specific area","DOGEAR_LABEL":"Bookmarks","STATUS_UPDATES_LABEL":"Status Updates","WIKIS_LABEL":"Wikis","FILTERS_DESCRIPTION":"You can filter your search results to specific criteria. This will cause the search results to be reloaded.","FILTERS_SUBMIT":"Apply","COMMUNITIES_LABEL":"Communities","PROFILES_LABEL":"Profiles"};
dojo.provide("lconn.search.nls.searchData")._built=true;
dojo.provide("lconn.search.nls.searchData.en");
lconn.search.nls.searchData.en={"ALLTYPESSTATUSUPDATES":"All Types of Status Updates","MATCHING_DOC_TYPE":"Matching Document Type:","ENTRY_ALONE":"Entry","ALLBLOGS":"All Blogs","STATUSUPDATE_PREFIX":"Status Update:","TAGS":"Tags:","BLOGSONLY":"Blogs","COMMUNITYIDEATIONBLOGS":"Ideation Blogs from Communities","PUBLICCOMMUNITIES":"Public Communities","MYFORUMS":"My Forums","EXCLUDEINACTIVE":"Exclude Inactive People","NUMDOWNLOADS":"{0} Downloads","PUBLICBLOGS":"Public Blogs","IDEATIONBLOG_ALONE":"Ideation Blog","MYFILES":"My Files","ALLACTIVITIES":"All Activities","COMMUNITYFILES":"Files from Communities","TYPE_FILTER_LABEL":"Filter by type","COMMUNITY_FILE":"Community File","ALLFORUMS":"All Forums","COMMUNITYBOOKMARKS":"Bookmarks from Communities","EVENT_ALONE":"Event","TAGS_ARE_FROM":"This search result may include tags from:","SEP":"September","SEARCH_RESULTS":"All Content Search Results","SORT_DATE_LABEL":"Click to sort by date","TODO":"To Do:","BOOKMARKERS":"{0} people bookmarked","ACTIVITYCOMMENT":"Activity comment:","ENTRY":"Entry:","COMMUNITIESCONTENT":"Content from Communities","STANDALONESTATUSUPDATES":"Status Updates from Profiles","COMMUNITY_FEED":"Community Feed","BOOKMARKED":"This Wiki was bookmarked by a number of users","SORT_TITLE":"Title","GRADUATED":"Graduated","BLOGCOMMENT":"Blog comment:","ENTRIESACTIVITIES":"Entries from Activities","JUL":"July","JUN":"June","INACTIVE":"{0} (inactive)","SORT_POPULARITY":"Popularity","COMMUNITYACTIVITIES":"Activities from Communities","MYWIKIS":"My Wikis","ALLTYPESBLOGS":"All Types of Blogs","SORT_RECOMMENDATION":"Likes","TODOSACTIVITIES":"To Dos from Activities","COMMUNITYWIKIS":"Wikis from Communities","COMMUNITYFORUMS":"Forums from Communities","EVENTISALLDAY":"All-day event","FILESFORUMS":"Attachments from Forums","ALLSTATUSUPDATES":"All Status Updates","DOGEAR":"Bookmarks","SECTIONSACTIVITIES":"Sections from Activities","SHAREDCOMMUNITIES":"Shared with these communities","BOOKMARK_HELP":"Bookmark Help","FORUMS_SEARCH_RESULTS":"Forums Search Results","IDEATIONBLOG":"Ideation Blog:","FORUMTOPIC":"Forum topic:","PUBLICSTATUSUPDATES":"Public Status Updates","SORT_DUE_DATE":"Due Date","PARENT_FILTER_LABEL":"Filter by container","COMMUNITYFILE":"This is an File within a community","SORT_LAST_NAME_LABEL":"Click to sort by last name","XCOMMUNITIES_ALONE":"{0} Communities","WIKISONLY":"Wikis","ACTIVITYSECTION":"Activity section:","BOOKMARKEDURL":"This URL was bookmarked by a number of users","VIEW_ALL":"View All ({0})","ALLTYPESFORUMS":"All Types of Forums","COMMUNITY_BOOKMARK":"Community Bookmark","WIKI_ALONE":"Wiki","BLOGS":"Blogs","MATCHING_ONE_OF":"Matching one of:","SORT_LAST_UPDATED":"Last Updated","FILESBLOGS":"Attachments from Blogs","MYCOMMUNITIES":"My Communities","CATEGORY":"Category:","FORUMCATEGORY":"Forum category:","OCT":"October","FORUM":"Forum:","ACL_FILTER_LABEL":"Filter by visibility","EVENTDATEON":"On: {0}","COMMUNITY_FORUM":"Community Forum","ACTIVITY_ALONE":"Activity","TOPIC":"Topic:","EVENTS":"Events","ACTIVITIESONLY":"Activities","ONEPERSON":"1 Person","ATTACHMENT":"Attachment:","WIKIFILE":"Wiki attachment:","MYCONTENT":"My Content","STANDALONEFILES":"Stand-alone Files","PROFILES_SEARCH_RESULTS":"Profiles Search Results","BOOKMARK":"Bookmark:","ONECOMMENT":"1 comment","SORT_TYPE":"Type","MAR":"March","MAY":"May","LASTUPDATED":"Search index was last updated:","ACTIVITYBOOKMARK":"Activity bookmark:","BLOGS_SEARCH_RESULTS":"Blogs Search Results","PHONE":"Phone:","SORT_UPDATED_LABEL":"Click to sort by last updated","BOOKMARKS_TITLE":"Bookmarks","COMMUNITIES_SEARCH_RESULTS":"Communities Search Results","WIKIS_SEARCH_RESULTS":"Wikis Search Results","STATUS_UPDATES":"Status Updates","SORT_VISITS_LABEL":"Click to sort by number of visits","PRIVATE":"Private","ALLTYPESACTIVITIES":"All Types of Activities","ALLTYPESBOOKMARKS":"All Types of Bookmarks","FROMANACTIVITY":"from an Activity","EVERYTHINGIDEATIONBLOGS":"Everything from Ideation Blogs","ALLFILES":"All Files","BOOKMARKEDBLOG":"This Blog was bookmarked by a number of users","FILE":"File:","ALLBOOKMARKS":"All Bookmarks","FORUM_ALONE":"Forum","MULTIPLETEMPDIFFICULTIES":"Note: Due to temporary indexing difficulties, your search didn\'t include {0} that were recently changed","STANDALONEWIKIS":"Stand-alone Wikis","PAGESWIKIS":"Wiki Pages","FILESACTIVITIES":"Attachments from Activities","PROFILE":"Profile:","SORT_COMMENTS_LABEL":"Click to sort by number of comments","FROMAFORUM":"from a Forum","BOOKMARKSACTIVITIES":"Bookmarks from Activities","PUBLICFILES":"Public Files","PAGE_COLON":"Page:","EVERYTHINGCOMMUNITIES":"Everything from Communities","PUBLICBOOKMARKS":"Public Bookmarks","TOPICSFORUMS":"Forum Topics","RATING":"Likes","FEED":"Feed:","SEARCH":"Search:","SORT_RELEVANCE_LABEL":"Click to sort by relevance","SORT_DATE":"Date","SORT_FIRST_NAME_LABEL":"Click to sort by given name","TRYLATER":"Please try again later.","MYBOOKMARKS":"My Bookmarks","ALLWIKIS":"All Wikis","SORT_POPULARITY_LABEL":"Click to sort by popularity","BOOKMARKEDFORUM":"This Forum was bookmarked by a number of users","FILTERBY":"Filter by:","PUBLICCONTENT":"Public Content","SORT_RELEVANCE":"Relevance","COMMUNITYACTIVITY":"This is an Activity within a community","PUBLICWIKIS":"Public Wikis","BOOKMARKS":"Bookmarks","FORUMCATEGORIES":"Forum Categories","ALLTYPESFILES":"All Types of Files","BLOGSIDEAS":"Ideas","SERVER_ERROR":"The search was not performed due to a server error","BLOGENTRY":"Blog entry:","STANDALONEACTIVITIES":"Stand-alone Activities","COMMENTS":"{0} comments","JAN":"January","FROMABLOG":"from a Blog","CALENDAREVENT":"Event:","PAGING_TOP":"Primary paging","SORT_SIZE":"Size","APR":"April","ALLCOMMUNITIES":"All Communities","FROMAWIKI":"from a Wiki","DOCUMENT_TYPE_PREFIX":"Document type:","FORUMSONLY":"Forums","EVERYTHINGBLOGS":"Everything from Blogs","COMMUNITIES_TITLE":"Communities","COMMUNITIES":"Communities","ALLTYPESWIKIS":"All Types of Wikis","SORT_RECOMMENDATIONS_LABEL":"Click to sort by number of likes","ONEVOTE":"1 vote","PAGING_BOTTOM":"Secondary paging","COMMENT":"Comment:","WIKIPAGE":"Wiki page:","COMMUNITY_ALONE":"Community","SORT_VISITS":"Visits","MYSTATUSUPDATES":"My Status Updates","COMMUNITIESONLY":"Communities","FILES":"Files","COMMUNITY_BLOG":"Community Blog","EVENTREPEATS":"Repeats","EXPAND_MONTHS_FILTER":"Expand the months filter of year {0}","BOOKMARKEDACTIVITY":"This Activity was bookmarked by a number of users","COMMUNITY_WIKI":"Community Wiki","FEEDS":"Feeds","TITLE_PREFIX":"title:","ENTRIESBLOGS":"Blog Entries","CLOSE_BOOKMARK_HELP":"Close Bookmark Help","REMOVE_FILTER_TITLE":"Remove","PAGE":"Page:","PEOPLE":"{0} People","AUG":"August","SORT_BY":"Sort by:","MYACTIVITIES":"My Activities","EXPAND":"Expand","WIKIS":"Wikis","ACTIVITYENTRY":"Activity entry:","VOTES":"{0} votes","FILESWIKIS":"Attachments from Wikis","NOV":"November","COMMUNITY_ACTIVITY":"Community Activity","SECTION":"Section:","MYBLOGS":"My Blogs","COMMUNITYBLOGS":"Blogs from Communities","NO_PEOPLE":"No people yet","ACTIVITIES_SEARCH_RESULTS":"Activities Search Results","COMMUNITYFORUM":"This is a Forum within a community","EVERYTHINGACTIVITIES":"Everything from Activities","BOOKMARKS_SEARCH_RESULTS":"Bookmarks Search Results","MYNETWORK":"My Network","LATEST_COMMUNITIES_STATUS_UPDATE":"Latest Communities Status Update","WIKITYPE":"Wiki:","COMMUNITYBLOG":"This is a blog within a community","TAGSMORE":"and {0} more","NEXT":"Next","PREVIOUS":"Previous","IDEA":"Idea:","COMMUNITYWIKI":"This is a Wiki within a community","SHOW":"Show:","LATEST_STATUS_UPDATE":"Latest Status Update","ALLTAGANDTTILE":"To see all titles and tags for this URL click this button","LATEST_COMMUNITY_STATUS_UPDATE":"Latest Community Status Update","ACTIVITY":"Activity:","BOOKMARKEDCOMMUNITY":"This community was bookmarked by a number of users","PUBLICACTIVITIES":"Public Activities","PUBLICFORUMS":"Public Forums","FILES_SEARCH_RESULTS":"Files Search Results","REMOVE_FILTER_LABEL":"Click to remove","LATEST_MESSAGE":"Latest Message","ALLRESULTS":"All Results","REMOVE_FILTER_TOOLTIP":"Remove this filter","STANDALONEBOOKMARKS":"Stand-alone Bookmarks","STATUSUPDATE":"Status Update","CALENDAR":"Calendar","HELP":"Help","MORESTATUSUPDATES":"View more status update matches","SORT_DUE_LABEL":"Click to sort by due date","COMMUNITYSTATUSUPDATES":"Status Updates from Communities","ALLPEOPLE":"All People","BOOKMARKEDFILE":"This File was bookmarked by a number of users","NORESULTSMESSAGE":"No results were found for that search","BOOKMARK_THIS_RESULT":"Bookmark this","BLOG_ALONE":"Blog","STATUS_UPDATES_SEARCH_RESULTS":"Status Updates Search Results","FEB":"February","ACTIVITIES_TITLE":"Activities","IDEACOMMENT":"Idea comment:","SORT_DOWNLOADS":"Downloads","NO_DATE":"No dates yet","TEMPDIFFICULTIES":"Note: Due to temporary indexing difficulties, your search didn\'t include {0} that were changed in the last {1} day(s).","FORUMS":"Forums","SORT_COMMENTS":"Comments","FROMXCOMMUNITIES":"from {0} Communities","NODESCRIPTION":"No description or summary for this result.","EMAIL":"Email:","NO_CONTACT":"The search was not performed because the server could not be contacted","FROMANEVENT":"from an Event","FROMANIDEATIONBLOG":"from an Ideation Blog","INACOMMUNITY":"in a Community","BOOKMARKEDPROFILE":"This Profile was bookmarked by a number of users","ITEMS":"{0} items","MODERATED":"Moderated","SORT_LASTNAME":"Last Name","BLOG":"Blog:","RESULTNOTFOUND":"Didn\'t find what you were looking for?","COLLAPSE":"Collapse","WIKI":"Wikis","EXPAND_COLLAPSE":"Click to expand / collapse","SORT_FIRSTNAME":"First Name","COMMUNITY":"Community:","STANDALONEBLOGS":"Stand-alone Blogs","EVERYTHINGWIKIS":"Everything from Wikis","FROMACOMMUNITY":"from a Community","ACTIVITYTODO":"Activity to-do:","RESULTS":"{0}-{1} of {2}","MATCHING_ALL_OF":"Matching all of:","COMMENT_ON":"Comment on:","DEC":"December","EVERYTHINGFORUMS":"Everything from Forums","PROFILES":"Profiles","ACTIVITIES":"Activities","BLOGSIDEATIONBLOGS":"Ideation Blogs","STANDALONEFORUMS":"Stand-alone Forums","NO_TAG":"No tags yet","MATCHING":"Matching:"};
dojo.provide("lconn.search.nls.Sorting")._built=true;
dojo.provide("lconn.search.nls.Sorting.en");
lconn.search.nls.Sorting.en={"SORT_ACTIVE_ASCENDING":"Sorted by [${0}], ascending. Click to sort in descending order","SORT_DESCENDING_DISABLED":"Descending.","SORT_VOTES":"Votes","SORT_ASCENDING":"Ascending. Click to sort in descending order","SORT_BY":"Sort by:","SORT_RELEVANCE":"Relevance","SORT_ACTIVE_ASCENDING_DISABLED":"Sorted by [${0}], ascending.","SORT_LASTNAME":"Last Name","SORT_ASCENDING_DISABLED":"Ascending.","SORT_ACTIVE_DESCENDING_DISABLED":"Sorted by [${0}], descending.","SORT_INACTIVE":"Sort by [${0}]","SORT_DATE":"Date","SORT_ACTIVE_DESCENDING":"Sorted by [${0}], descending. Click to sort in ascending order","SORT_LAST_UPDATED":"Last Updated","SORT_COMMENTS":"Comments","SORT_POPULARITY":"Popularity","SORT_DESCENDING":"Descending. Click to sort in ascending order","SORT_DUE_DATE":"Due Date","SORT_FIRSTNAME":"First Name","SORT_LIKES":"Likes"};
dojo.provide("lconn.search.nls.Trend")._built=true;
dojo.provide("lconn.search.nls.Trend.en");
lconn.search.nls.Trend.en={"rs_removeTagTitle":"Remove the trend ${0} from the selected filter trends","rs_viewAsCloud":"Cloud","rs_tagDialogPageInfo":"${0} - ${1} of ${2} trends","rs_tagCloudViewAll":"Browse","rs_tagCloudNavigationLabel":"Trends","rs_tagCloudRelatedTagsDescription":"Add a related trend to further refine your search","rs_clearAll":"Clear all","rs_tagCloudNoTags":"No trends yet","rs_tagCloudToggleHint":"Click to hide or show","rs_tagCloudViewAllTitle":"Browse all trends","rs_viewAsCloudDescription":"Viewing trends as a trend cloud","rs_searchInputDefault":"Type to find a trend","rs_normalTags":"Active Trends","rs_addTagTitle":"Filter by the trend ${0}","rs_tagDialogCloseTile":"Close","rs_relatedTagTitle":"Add the trend ${0}","rs_tagCloudRelatedTags":"Related Trends","rs_tagCloudSeachDesc":"Find a Trend","rs_tagCloudSelectedTags":"Selected Trends","rs_tagCloudHelpAlt":"Get help with trends","rs_searchInputTagSelected":"Type another trend","rs_tagDialogTitle":"All Trends","rs_removeTag":"Remove the trend from the selected filter trends","rs_viewAsCloudTitle":"List trends as a trend cloud","rs_tagLoadingTags":"Loading Content","rs_tagCloudSeach":"Search"};

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




























































dojo.requireLocalization("lconn.wikis","ui");
dojo.requireLocalization("com.ibm.oneui.recommend","Recommender");
dojo.requireLocalization("com.ibm.oneui.controls","HoverPopup");
dojo.requireLocalization("lconn.search","searchResults");
dojo.requireLocalization("lconn.search","searchData");
dojo.requireLocalization("lconn.search","Sorting");
dojo.requireLocalization("lconn.search","Trend");
dojo.declare("lconn.wikis.WikisApp",[lconn.share0.App],{nls:dojo.i18n.getLocalization("lconn.wikis","ui"),usercache:{},globalcache:{},reusable:{},tagsChanged:false,useNavCookie:false,themeName:"defaultTheme",defaultOnBackHandler:"undefined",listenersToRemove:[],constructor:function(_1,_2){
this.isCloudMode=dojo.getObject("lconn.share0.config.isCloudMode");
this.isMultiTenant=dojo.getObject("lconn.share0.config.isMultiTenant");
this.securedUrls=dojo.map(dojo.getObject("lconn.share0.config.securedUrls")||[],function(s){
return new dojo._Url(s);
});
var _3=this.auth=com.ibm.ajax.auth;
_3.checkByXLConnAuth=true;
_3.setAuthenticationHandler(dojo.hitch(this,this.onAuthenticationRequestDetected));
_3.addAuthenticationCheck(lconn.wikis.WikisApp.isSessionInvalidated);
var _4=dojo.hitch(this,"_isSecureUrl");
_3.interceptDojoXhr(_4);
lconn.core.auth.setAuthCheck(dojo.partial(function(_5){
return _5&&!!_5.authenticatedUser;
},this));
this.net=new lconn.share0.Network({getAuthenticatedUser:dojo.hitch(this,this.getAuthenticatedUser),isSecuredUrl:_4});
dojo.connect(this.net,"onNetwork",this,"onNetwork");
dojo.connect(this.net,"onNetworkEnd",this,"onNetworkEnd");
this.messages=new lconn.share0.util.Messages();
dojo.connect(this,"onBeforeSceneChange",this.messages,"resetVisible");
dojo.connect(this,"onBeforeSceneChange",this,"_handleGlobalToLocalTransition");
dojo.connect(this,"onBeforeSceneChange",this,"_refreshWikiCache");
var _6=dojo.hitch(this,this.updateMembers,null);
dojo.subscribe("lconn/wikis/members/added",_6);
dojo.subscribe("lconn/wikis/members/removed",_6);
var _7=dojo.hitch(this,this.addMessage,null);
dojo.subscribe("lconn/wikis/app/message/add",_7);
var _7=dojo.hitch(this,this.addMessage,null);
dojo.subscribe("lconn/wikis/app/message/add",_7);
var _8=dojo.hitch(this,this.onSceneReady);
dojo.subscribe("lconn/wikis/scene/ready",this,_8);
this.templates=new lconn.share0.util.SceneTemplates(dojo.getObject("lconn.share0.config.templates")||{},{net:this.net,defaultParameters:{lang:this.language,ver:dojo.getObject("lconn.share0.config.version")}});
dojo.subscribe("lconn/share/action/completed",this,"onActionSuccess");
this.useStandardLogin=dojo.getObject("lconn.share0.config.auth.standardLogin");
this.useFriendlyUrl=dojo.getObject("lconn.share0.config.useFriendlyUrls");
},addOnBackHandler:function(){
if(!this.defaultOnBackHandler){
this.defaultOnBackHandler=window.onbeforeunload;
}
window.onbeforeunload=dojo.hitch(this,function(){
return this.nls.APP_ONBACK;
});
},removeOnBackHandler:function(){
window.onbeforeunload="undefined";
},onActionSuccess:function(_9,_a){
if(this.scene&&this.scene.onActionSuccess){
this.scene.onActionSuccess(_9,_a);
return;
}
if(_9.messages){
this.messages.add(_9.messages);
}
},onSceneReady:function(){
var _b=dojo.hitch(this,function(){
var _c=this.scene.titleMessagesWidget;
if(_c&&_c.buildRendering){
_c.buildRendering();
}
});
setTimeout(_b,10);
},addMessage:function(_d,_e){
if(this.messages){
this.messages.add({message:_e.message,error:_e.error,warning:_e.warning,onClose:_e.onClose});
}
},addMessage:function(_f,opt){
if(this.messages){
this.messages.add({message:opt.message,error:opt.error,warning:opt.warning,onClose:opt.onClose});
}
},login:function(s,opt){
var e=lconn.share0.util.misc.last(arguments);
if(lconn.share0.util.html.isEvent(e)){
dojo.stopEvent(e);
}
if(this.scene&&this.scene.onBack){
this.removeOnBackHandler();
}
if(this.scene&&this.scene.onlogin&&this.scene.onlogin()){
return;
}
var f=dojo.getObject("lconn.share0.config.services.login");
if(f){
f();
}
var url=this.routes.getLoginUrl(typeof s=="string"?s:this.getUrl());
window.location=url;
},getNonce:function(_10){
var app=this;
return this.checkAuthentication(function(_11,_12){
if(_11 instanceof Error){
_10(_11,_12);
}else{
if(_11==false){
var _13=new Error("unauthenticated");
_13.code="unauthenticated";
_10(_13,_12);
}else{
_10(app.authenticatedUser.nonce,_12);
}
}
});
},checkAuthentication:function(_14){
var _15=this.net.getJson({url:this.routes.getUserInfoServiceUrl(),auth:{secured:false},handle:dojo.hitch(this,"_handleCheckAuth",_14),noStatus:true});
return _15;
},_handleCheckAuth:function(_16,_17,_18){
_18=_18||{};
dojo.setObject("args.auth.preventReload",true,_18);
if(this.auth.isAuthenticationRequired(_17,_18)){
this.onAuthenticationRequestDetected(_17,_18,null);
_16(false,_18);
}else{
if(_17 instanceof Error){
_16(_17,_18);
}else{
var _19=lconn.share0.scenes.createUser(this,_17.items[0]);
var _1a=(_19&&typeof _19=="object"&&this.authenticatedUser&&this.authenticatedUser.id==_19.id);
if(_1a){
this.authenticatedUser=_19;
}else{
this.onAuthenticationRequestDetected(_17,_18,null);
}
_16(_1a,_18);
}
}
},initRoutes:function(){
return new lconn.wikis.WikisRoutes();
},_beforeLoadAuth:function(){
},onSceneChange:function(_1b,_1c){
var x=dojo._isBodyLtr()?0:document.body.clientWidth;
window.scrollTo(x,0);
},initAuthentication:function(){
var el=document.getElementById("userInfo");
var _1d;
if(el){
_1d=lconn.share0.scenes.createUser(this,dojo.fromJson(lconn.share0.util.html.htmlText(el)));
}
return _1d;
},_loadAuthentication:function(){
var _1e,_1f;
this._beforeLoadAuth();
this.net.getJson({url:this.routes.getUserInfoServiceUrl(),auth:{secured:false},handle:function(r,io){
_1e=r;
_1f=io;
},sync:true,noStatus:true});
if(this.auth.isAuthenticationRequired(_1e,_1f)){
return null;
}
if(_1e instanceof Error){
console.log("WikisApp::_loadAuthentication DEBUG user is authenticated to WAS, but services cannot create a user - code="+_1e.code);
throw _1e;
}
return lconn.share0.scenes.createUser(this,_1e.items[0]);
},onAuthenticationRequestDetected:function(_20,_21,_22){
if(this.waitingForLogin()||this._waitingForLoginConfirm){
console.log("WikisApp::onAuthenticationRequestDetected DEBUG login already in progress");
this._pendingRequests.push([_21,_22]);
}else{
if(!_21.args.auth||!_21.args.auth.preventLogin){
this._pendingRequests=[[_21,_22]];
this._waitingForLoginConfirm=true;
this.promptLogin();
}
}
},_onLoginPromptConfirm:function(){
console.log("WikisApp::_onLoginPromptConfirm DEBUG user requested login");
this.login();
this._waitingForLoginConfirm=false;
},_onLoginPromptCancel:function(){
this._pendingRequests=[];
this._waitingForLoginConfirm=false;
},promptLogin:function(){
var _23=this.scene;
if(_23&&_23.onlogin&&_23.onlogin()){
this._waitingForLoginConfirm=false;
return;
}
if(this.useStandardLogin){
var e=lconn.share0.util.misc.last(arguments);
if(lconn.share0.util.html.isEvent(e)){
dojo.stopEvent(e);
}
lconn.share0.requireAsync("lconn.wikis.action.Reauthenticate").addCallback(this,function(){
if(!this.loginAction){
this.loginAction=new lconn.wikis.action.Reauthenticate(this,null,{});
dojo.connect(this.loginAction,"onCancel",this,"_onLoginPromptCancel");
}
this.loginAction.execute();
});
}else{
this.confirm(this.nls.SESSION_TIMEOUT,dojo.hitch(this,"_onLoginPromptConfirm"),dojo.hitch(this,"_onLoginPromptCancel"),true);
}
},onNetwork:function(_24){
if(_24&&_24.verb&&!_24.statusText){
switch(_24.verb){
case "put":
case "post":
case "delete":
_24.statusText=this.nls.SAVING;
break;
default:
_24.statusText=this.nls.LOADING;
}
}
if(_24&&!_24.noStatus){
this.working(_24.statusText);
}
},onNetworkEnd:function(_25){
if(_25&&!_25.noStatus){
this.idle();
}
},onApplicationStart:function(){
if(window["doSemTagSvcOnload"]){
try{
doSemTagSvcOnload();
}
catch(e){
console.log(e);
}
}
if(window["SemTagSvc"]){
SemTagSvc.add=this._addElementToSemanticTagging;
}
if(window["loadConnectionsLanguageSelector"]){
loadConnectionsLanguageSelector();
}
if(window["doUIExtensionConfigOnload"]){
doUIExtensionConfigOnload();
}
lconn.share0.util.html.alert=dojo.hitch(this,this.alert);
lconn.share0.util.html.confirm=dojo.hitch(this,this.confirm);
},_getDefaultSceneFunction:function(){
return this._getSceneFunction(this._getDefaultScene());
},activateHelp:function(){
openHelpWindow();
},_addElementToSemanticTagging:function(el){
if(window["SemTagSvc"]&&dojo.getObject("lconn.core.bizCard.bizCardUtils.initiated")){
SemTagSvc.onTagChanged(el,true);
}
},_hideSemTagMenu:function(){
var _26=dojo.byId("semtagmenu");
if(_26){
_26.style.display="none";
}
},navigate:function(url,opt){
this._hideSemTagMenu();
if(this.listenersToRemove){
dojo.forEach(this.listenersToRemove,dojo.disconnect);
}
this.listenersToRemove=[];
if(this.scene&&this.scene.onBack){
this.removeOnBackHandler();
}
if(this.scene&&this.scene.onnavigate&&this.scene.onnavigate(url)){
return;
}
lconn.share0.util.history.stop();
var uri=this.resolveUri(url);
if(!this.authenticatedUser&&this.isProtectedUri(uri)){
this.login(url,{redirect:true});
return;
}
var _27=this.toAnchorForm(uri);
url=_27.toCanonicalString();
if(opt&&opt.forceReload){
lconn.share0.util.history.reload(url);
}else{
lconn.share0.util.history.add(url);
}
},showLoading:function(){
lconn.share0.scenes.applyLoading(this);
},rewriteHash:function(_28,_29){
if(this.useFriendlyUrl){
return lconn.share0.util.history.rewrite(_28,_29);
}else{
return false;
}
},load:function(url){
var uri=this.resolveUri(url);
this.urlState=uri.toCanonicalString();
if(!this.authenticatedUser&&this.isProtectedUri(uri)){
this.login(newUrl,{redirect:true});
return;
}
this._load(uri);
},_load:function(){
return this.inherited(arguments);
},_checkSceneRedirects:function(_2a){
if(lconn.wikis.routes.isForbidden(_2a,this.isCloudMode)){
lconn.share0.util.history.replace(this.routes.getConnectionsCommunityUrlRoot());
return true;
}
if(this.authenticatedUser){
if(lconn.wikis.routes.isForbidden4User(_2a,this.authenticatedUser)){
lconn.share0.util.history.replace(this.routes.getConnectionsCommunityUrlRoot());
return true;
}
}
return false;
},resolveUri:function(url){
var uri;
if(typeof url=="string"){
uri=lconn.share0.util.uri.parseUri(url);
uri=this.fromAnchorForm(uri);
}else{
if(url instanceof dojo._Url){
uri=url;
}else{
throw "resolveUri requires a string or dojo._Url";
}
}
return uri;
},toAnchorForm:function(uri){
return lconn.share0.util.urifragment.toAnchorForm(uri,this.routes.getAppPath(),this.baseParams);
},fromAnchorForm:function(uri){
return lconn.share0.util.urifragment.fromAnchorForm(uri,this.routes.getAppPath());
},_handleGlobalToLocalTransition:function(_2b,_2c){
if(!_2b){
return;
}
if(_2b.isGlobal^_2c.isGlobal||_2b.isMine^_2c.isMine){
if(this.tagTypeAheadStore){
this.tagTypeAheadStore.clear();
}
}
if(_2b.wikiLabel&&_2b.wiki&&(_2c.isGlobal||!_2c.wikiLabel||_2c.wikiLabel!=_2b.wikiLabel)){
lconn.share0.util.misc.destroy(_2b.wiki);
delete this.usercache.quota;
delete this.usercache.members;
}
},_refreshWikiCache:function(_2d,_2e){
if(typeof (_2e.wikiLabel)=="undefined"){
this.expireWikiCache();
return;
}
var _2f=false;
if(!_2d||(typeof (_2d)=="undefined")||(typeof (_2d.wikiLabel)=="undefined")||(_2e.wikiLabel!=_2d.wikiLabel)){
_2f=true;
}
if(_2f||!this.usercache.wiki){
this.usercache.wiki=new lconn.wikis.util.WikiCache({label:_2e.wikiLabel,net:this.net,url:this.routes.getWikiEntryServiceUrl(_2e.wikiLabel,{fetchAcl:true,includeFollowing:true}),onError:dojo.hitch(this,this._handleWikiCacheError)});
}
},_handleWikiCacheError:function(_30){
var _31=lconn.share0.util.atom.getError(_30,{});
if(_31.code=="unauthenticated"){
this.login();
}
},expireWikiCache:function(){
delete this.usercache.wiki;
},getWiki:function(){
if(!this.usercache.wiki){
console.log("wiki not loaded");
return null;
}
return (this.usercache.wiki.wiki)?this.usercache.wiki.wiki:this.usercache.wiki.error;
},_preprocessPath:function(uri){
var _32=uri.path;
var _33=lconn.share0.util.uri.parseUri(dojo.getObject("lconn.share0.config.baseUri")||"/");
var _34=_33.path;
if(_32.indexOf(_34)==0){
_32=_32.substring(_34.length);
}
return _32;
},_decodeState:function(uri){
var _35=lconn.wikis.routes.decode(this._preprocessPath(uri),uri,!this.authenticatedUser);
if(!dojo.exists(_35.id)){
var dfd=new dojo.Deferred();
lconn.share0.requireAsync(_35.id).addCallback(dfd,"callback",_35);
return dfd;
}
return _35;
},isProtectedUri:function(uri){
var _36=this._preprocessPath(uri);
return lconn.wikis.routes.isProtectedUri(_36,uri);
},getMonitor:function(opt){
opt=opt||{};
opt.net=opt.net||this.net;
opt.url=opt.url||dojo.getObject("lconn.share0.config.services.introspectionUri");
return new lconn.share0.util.OperationMonitor(opt);
},getTemplate:function(_37,_38){
if(!_37){
return null;
}
var doc=this.templates.getXhtml(_37.declaredClass,_38);
return (doc?doc.documentElement:null);
},onUserLogin:function(){
this.clearUserCache();
this._clearTypeAheadStores();
this._clearWikiProperties();
this._endScene();
if(typeof arguments[0]=="function"){
arguments[0]();
}else{
this.hasScene=false;
lconn.share0.scenes.applyLoading(this);
setTimeout(dojo.hitch(this,"navigate",this.urlState,{forceReload:true}),1);
}
},onUserReauthenticated:function(){
this._waitingForLoginConfirm=false;
var _39=this._pendingRequests||[];
this._pendingRequests=[];
if(_39.length>0&&(dojo.every(_39,function(p){
return !!p[1];
})||dojo.some(_39,function(p){
var a=p[0].args.auth;
return a&&a.preventReload;
}))){
var f=function(p){
if(p[1]){
p[1](p[0].args);
}
};
setTimeout(dojo.partial(dojo.forEach,_39,f),1);
}else{
this._endScene();
this.hasScene=false;
this.clearUserCache();
this._clearTypeAheadStores();
this._clearWikiProperties();
if(this._avoidRefresh){
if(this._pendingRetries){
for(var i=0;i<this._pendingRetries.length;i++){
this._pendingRetries[i].apply(null,[]);
}
}
this._pendingRetries=[];
}else{
this.load(this.urlState);
}
this._avoidRefresh=false;
}
},onUserReset:function(){
this.clearUserCache();
this._clearTypeAheadStores();
this._clearWikiProperties();
this.resetUnsavedChanges();
this.navigate(this.routes.getGlobalHomeUrl());
},clearUserCache:function(){
var c=this.usercache;
for(var key in c){
lconn.share0.util.misc.destroy(c[key]);
delete c[key];
}
},_clearWikiProperties:function(){
if(this.scene&&this.scene.wiki){
delete this.scene.wiki;
}
},_clearTypeAheadStores:function(){
if(this.tagTypeAheadStore){
this.tagTypeAheadStore.clear();
}
if(this.userTypeAheadStore){
this.userTypeAheadStore.clear();
}
if(this.wikiTypeAheadStore){
this.wikiTypeAheadStore.clear();
}
if(this.groupTypeAheadStore){
this.groupTypeAheadStore.clear();
}
},clearNavigationStore:function(_3a){
if(this.scene&&this.scene.navStore){
delete this.scene.navStore;
}
if(this.reusable){
var _3b=dijit.byId("lconnWikisNavTree");
if(_3b){
_3b.destroyRecursive();
}
delete this.reusable.lconnWikisNavTree;
}
},getUserTypeAheadStore:function(_3c){
if(!this.userTypeAheadStore){
var d=document;
var div=d.createElement("div");
div.style.display="none";
d.body.appendChild(div);
this.userTypeAheadStore=new lconn.wikis.widget.WikiPeopleDataStore({getUrl:dojo.hitch(this.routes,this.routes.getTypeAheadUserServiceUrl),queryParam:"searchString",userState:"active",internalOnly:_3c?"true":"false",maxResults:dojo.getObject("lconn.share0.config.peopleSearch.maxResults"),pageSize:dojo.getObject("lconn.share0.config.peopleSearch.pageSize")},div);
this.userTypeAheadStore.clear();
}else{
this.userTypeAheadStore.internalOnly=_3c?"true":"false";
this.userTypeAheadStore.clear();
}
return this.userTypeAheadStore;
},getWikiTypeAheadStore:function(){
if(!this.wikiTypeAheadStore){
var d=this.document;
var div=d.createElement("div");
div.style.display="none";
d.body.appendChild(div);
this.wikiTypeAheadStore=new lconn.core0.TypeAheadDataStore({url:this.routes.getWikisFeedServiceUrl({format:"json",sortKey:"title"}),queryParam:"searchString",maxResults:dojo.getObject("lconn.share0.config.wikisSearch.maxResults"),pageSize:dojo.getObject("lconn.share0.config.wikisSearch.pageSize")},div);
}
return this.wikiTypeAheadStore;
},getWikiPageTypeAheadStore:function(_3d){
if(!this.wikiPageTypeAheadStore){
var d=this.document;
var div=d.createElement("div");
div.style.display="none";
d.body.appendChild(div);
this.wikiPageTypeAheadStore=new lconn.core0.TypeAheadDataStore({url:this.routes.getWikiFileListServiceUrl(_3d.wikiLabel,{format:"json",sortKey:"title"}),queryParam:"searchString",maxResults:dojo.getObject("lconn.share0.config.peopleSearch.maxResults"),pageSize:dojo.getObject("lconn.share0.config.peopleSearch.pageSize")},div);
this.wikiPageTypeAheadStore.wikiLabel=_3d.wikiLabel;
}
if(_3d.wikiLabel!=this.wikiPageTypeAheadStore.wikiLabel||_3d.declaredClass=="lconn.wikis.scenes.ConfirmNewPage"){
this.wikiPageTypeAheadStore.url=this.routes.getWikiFileListServiceUrl(_3d.wikiLabel,{format:"json"});
this.wikiPageTypeAheadStore.clear();
}
return this.wikiPageTypeAheadStore;
},getGroupTypeAheadStore:function(){
if(!this.groupTypeAheadStore){
var d=document;
var div=d.createElement("div");
div.style.display="none";
d.body.appendChild(div);
this.groupTypeAheadStore=new lconn.core0.PeopleDataStore({getUrl:dojo.hitch(this.routes,this.routes.getGroupSearchServiceUrl),queryParam:"searchString",maxResults:dojo.getObject("lconn.share0.config.peopleSearch.maxResults"),pageSize:dojo.getObject("lconn.share0.config.peopleSearch.pageSize")},div);
this.groupTypeAheadStore.clear();
}
return this.groupTypeAheadStore;
},getTagTypeAheadStore:function(){
if(!this.tagTypeAheadStore){
var d=document;
var div=d.createElement("div");
div.style.display="none";
d.body.appendChild(div);
this.tagTypeAheadStore=new lconn.share0.util.TagDataStore({net:this.net,getUrl:dojo.hitch(this,this.getTagTypeAheadStoreUrl),queryParam:"filter"},div);
}
return this.tagTypeAheadStore;
},getTagTypeAheadStoreUrl:function(opt){
var _3e={sortKey:"weight",sortDescending:true,isGlobal:this.scene.isGlobal,isMine:false,wikiLabel:this.scene.wikiLabel};
dojo.mixin(opt,_3e);
return this.routes.getTagServiceUrl(opt);
},getQuota:function(){
var q=this.usercache.quota;
if(!q&&this.authenticatedUser){
var _3f=this.scene;
if(!_3f.wikiLabel){
return null;
}
var w=_3f.wiki;
var _40=(w&&w.hasQuota());
q=new lconn.wikis.util.QuotaCache({lastUpdate:_40?new Date().getTime():-1,size:_40?w.getSize():NaN,totalSize:_40?w.getQuota():NaN,net:this.net,url:this.routes.getWikiEntryServiceUrl(_3f.wikiLabel,{fetchAcl:true,includeFollowing:true})});
this.usercache.quota=q;
dojo.connect(q,"onwikiupdated",this,"onWikiUpdated");
dojo.connect(q,"onError",this,"onUserReset");
}
return q;
},onWikiUpdated:function(_41){
var _42=this.scene;
if(_42&&!_42.isGlobal&&_42.wiki&&_42.wiki.getLabel()==_41.getLabel()){
_42.wiki=_41;
}
if(this.usercache.wiki){
this.usercache.wiki.update(_41);
}
},getMembers:function(){
return this.usercache.members;
},updateMembers:function(_43){
this.usercache.members=_43;
},_loadUnsavedChanges:function(){
this._loadUnsavedChangesRequest(true);
},_loadUnsavedChangesAsync:function(){
this._loadUnsavedChangesRequest(false);
},_loadUnsavedChangesRequest:function(_44){
var url=this.routes.getMyDraftsFeedServiceUrl({sortKey:"modified",sortDescending:true,includeDocumentAuthorInfo:true});
this.net.getXml({url:url,sync:_44,handle:dojo.hitch(this,this._loadUnsavedChangesComplete)});
},_loadUnsavedChangesComplete:function(_45,_46){
var _47=[];
if(_45 instanceof Error||!_45||!_45.documentElement){
var _48=lconn.share0.util.atom.getErrorCode(_45,_46);
if(_48=="unauthenticated"){
this.login();
}
}else{
var xml=_45.documentElement;
var _49=xml.getElementsByTagName("entry");
for(var j=0;j<_49.length;j++){
var _4a=new lconn.share0.bean.Draft(_49[j]);
_47.push(_4a);
}
}
this.unsavedChanges=_47;
dojo.publish("lconn/wikis/app/drafts/loaded");
},resetUnsavedChanges:function(){
delete this.unsavedChanges;
dojo.publish("lconn/wikis/app/drafts/deleted");
},getUnsavedChangesList:function(){
if(!this.unsavedChanges){
this._loadUnsavedChanges();
}
return this.unsavedChanges;
},refreshUnsavedChangesList:function(){
if(!this.unsavedChanges){
this._loadUnsavedChangesAsync();
}
},showError:function(){
lconn.share0.scenes.applyApplicationError(this);
},showWorking:function(_4b){
_4b=_4b||this.nls.LOADING;
var div=this.busyNode;
if(!div){
div=this.busyNode=document.createElement("div");
div.style.display="none";
div.className="lotusInfoBox qkrWorking";
document.body.appendChild(div);
}
lconn.share0.util.html.removeChildren(div);
div.appendChild(document.createTextNode(_4b));
if(div.style.display!=""&&!div._timeout){
div._timeOut=setTimeout(dojo.hitch(null,this.setWorkingTimeout,div),200);
}
},setWorkingTimeout:function(div){
if(div._timeout){
div._timeout=null;
div.style.display="";
}
},showIdle:function(){
var div=this.busyNode;
if(div){
clearTimeout(div._timeout);
div._timeout=null;
div.style.display="none";
}
},invalidateWiki:function(){
if(this.scene.wiki){
delete this.scene.wiki;
delete this.usercache.wiki;
}
},confirm:function(msg,_4c,_4d,_4e){
if(this.modalAction){
throw "Another modal action is active";
}
var act=this.modalAction=new lconn.share0.action.PromptAction(this,null,{_stringsPrefix:"CONFIRM",question:msg,_onCancel:_4d,_onSuccess:_4c,wDialog:"350px",zIndex:2000,onCancel:function(){
this.app._endModal();
if(this._onCancel){
this._onCancel();
}
},onSuccess:function(){
this.app._endModal();
if(this._onSuccess){
this._onSuccess();
}
}});
act.execute(null,{focusConfirm:_4e});
},alert:function(msg,_4f){
if(this.modalAction){
throw "Another modal action is active";
}
var f=dojo.hitch(this,"_endModal");
var act=this.modalAction=new lconn.share0.action.PromptAction(this,null,{hideCancel:true,_stringsPrefix:"ALERT",question:msg,_onSuccess:_4f,wDialog:"350px",zIndex:2000,onCancel:f,onSuccess:function(){
this.app._endModal();
if(this._onSuccess){
this._onSuccess();
}
}});
act.execute(null,{focusConfirm:true});
},_endModal:function(){
lconn.share0.util.misc.destroy(this.modalAction);
this.modalAction=null;
},_isSecureUrl:function(s){
if(!s){
return false;
}
var url=new dojo._Url(s);
return dojo.some(this.securedUrls,function(_50){
return url.path.indexOf(_50.path)==0;
});
},trackRead:function(_51,_52,_53){
_53=_53||{};
_52=_52||"WIKIS";
_51=_51?_51:_52;
var _54={source:"WIKIS",userId:this.authenticatedUser?this.authenticatedUser.id:null,extra:{contentLink:this.routes.getWelcomeUrl()}};
if(_53.extra){
dojo.mixin(_54.extra,_53.extra);
delete _53.extra;
}
dojo.mixin(_54,_53);
var _55=com.ibm.lconn.layout.track;
if(dojo.config.isDebug){
console.debug("Send read event with itemType = "+_52+", contentId = "+_51);
console.debug("Options="+dojo.toJson(_54,true));
}
_55.read(_51,_52,_54);
}});
lconn.wikis.App={getInstance:function(){
return dojo.getObject("pe");
}};
lconn.wikis.WikisApp.isSessionInvalidated=function(_56,_57,_58){
try{
if(_58&&_58.xhr){
var _59=_58.xhr.status;
if(_59==412&&_58.xhr.responseXML&&_58.xhr.responseXML.documentElement){
var el=_58.xhr.responseXML.documentElement;
var _5a=lconn.share0.util.dom.getChildElementTextContentNS(el,"errorCode",lconn.share0.util.dom.DOCUMENTS_ATOM_NAMESPACE);
var _5b=lconn.share0.util.text.trim(_5a);
return ("InvalidUser"==_5b);
}
}
}
catch(e){
}
return false;
};
window.openHelpWindow=function(_5c){
if(window.isCommunityWiki){
lconn.core.help.launchHelp(_5c,"communities");
}else{
lconn.core.help.launchHelp(_5c);
}
};
window.openDemoWindow=function(){
var _5d=dojo.getObject("lconn.share0.config.demoUri");
if(!_5d){
return;
}
lconn.core.help.launchDemo(_5d);
};
}


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








dojo.declare("lconn.wikis._bootstrap",[lconn.wikis.WikisApp],{});
}


window['_js_modules']=(window['_js_modules']||[]).concat(["lconn.wikis._bootstrap"]);
