////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////
///// WGGJSCoreCompressed-05-06-2009_17-05-56.js
///// generated by /jscore/utilities/obfuscate.php5 at 05-06-2009_17-05-56
///// 
///// 
///// Autor: Katarina Golbang
///// (c) WIGeoGIS 2007-2009
////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////

/**********jsiner.js.tmp**********/
var COMMONS={};
COMMONS.isObject=function(_1){
return _1!==null&&typeof (_1)==="object";
};
COMMONS.isArray=function(_2){
return _2 instanceof Array;
};
COMMONS.isString=function(_3){
return typeof (_3)==="string";
};
COMMONS.isFunction=function(_4){
return typeof (_4)==="function";
};
COMMONS.isUndefined=function(_5){
return _5===undefined;
};
COMMONS.isDefined=function(_6){
return _6!==null&&_6!==undefined;
};
COMMONS.isRegExp=function(_7){
return _7 instanceof RegExp;
};
var JSINER={scriptPrefix:"script/",scriptSuffix:".js",version:0.98};
JSINER.fDependency={};
JSINER.getConstructor=function(_8){
var _9=null;
if(COMMONS.isString(_8)){
_9=window[_8];
}else{
if(COMMONS.isFunction(_8)){
_9=_8;
}else{
if(COMMONS.isObject(_8)){
_9=_8.constructor;
}
}
}
return _9;
};
JSINER.getType=function(_a){
var _b=(typeof _a);
if(COMMONS.isObject(_a)){
if(COMMONS.isRegExp(_a)){
_b="RegExp";
}else{
var _c=this.getConstructor(_a);
if(COMMONS.isDefined(_c)){
var _d=_c.toString();
var _e=_d.indexOf("(");
_b=((_e>0)?_d.substring(_d.indexOf(" ")+1,_e):_d);
}
}
}
return _b;
};
JSINER.getScriptURI=function(_f){
throw {message:"The JSINER.getScriptURI must be implemented before"};
};
JSINER.isScriptLoaded=function(_10){
throw {message:"The JSINER.isScriptLoaded must be implemented before"};
};
JSINER.inject=function(_11,_12){
throw {message:"The JSINER.inject must be implemented before"};
};
JSINER.addDependency=function(_13){
if(COMMONS.isDefined(_13)){
for(var _14 in _13){
var _15=this.fDependency[_14];
if(!COMMONS.isArray(_15)){
this.fDependency[_14]=[];
_15=this.fDependency[_14];
}
var _16=_13[_14];
if(COMMONS.isArray(_16)){
for(var i=0;i<_16.length;i++){
_15.push(_16[i]);
}
}else{
_15.push(_16);
}
}
}
};
JSINER.getDependency=function(_18,_19){
var _1a=this.getType(_18);
return this.fDependency[_1a];
};
JSINER.createInstance=function(_1b,_1c){
var _1d=null;
if(COMMONS.isFunction(_1b)&&COMMONS.isFunction(_1c)&&_1c!==Object){
var _1e=_1b.prototype;
var _1f=_1b.prototype.toString;
_1b.prototype=new _1c();
_1b.prototype.constructor=_1b;
_1b.superClass=_1c.prototype;
for(var _20 in _1e){
_1b.prototype[_20]=_1e[_20];
}
_1b.prototype.toString=_1f;
_1b.$extend=true;
_1d=new _1b();
}
return _1d;
};
JSINER.extend=function(_21,_22){
var _23=function(_24,_25){
var _26=_24;
var _27=_24.constructor;
if(COMMONS.isUndefined(_27.$extend)){
var _28=this.getDependency(_24,_25);
if(COMMONS.isArray(_28)){
var _29=this;
this.inject(_28,function(){
var _2a=_29.getConstructor(_25);
_26=_29.createInstance(_27,_2a)||_26;
});
}else{
var _2b=this.getConstructor(_25);
_26=this.createInstance(_27,_2b)||_26;
}
}
return _26;
};
var _2c=_23.call(this,_21,_22);
var _2d=this.getConstructor(_22);
if(COMMONS.isFunction(_2d)){
_2d.call(_2c);
}
return _2c;
};


/**********jsoner.commons.js.tmp**********/
var COMMONS={version:1.024,userAgent:navigator.userAgent.toLowerCase()};
COMMONS.isIE=COMMONS.userAgent.indexOf("msie")>-1;
COMMONS.isOpera=COMMONS.userAgent.indexOf("opera")>-1;
COMMONS.isSafari=(!COMMONS.isOpera&&COMMONS.userAgent.indexOf("safari")>-1);
COMMONS.isGecko=(!COMMONS.isOpera&&!COMMONS.isSafari&&COMMONS.userAgent.indexOf("gecko")>-1);
COMMONS.isWin32=(COMMONS.userAgent.indexOf("windows")>-1);
COMMONS.isMacOs=(COMMONS.userAgent.indexOf("mac")>-1);
COMMONS.returnFalse=function returnFalse(){
return false;
};
COMMONS.returnTrue=function returnTrue(){
return true;
};
COMMONS.proxy=function(_1){
return _1;
};
COMMONS.isObject=function(_2){
return _2!==null&&typeof (_2)==="object";
};
COMMONS.isArray=function(_3){
return _3 instanceof Array;
};
COMMONS.isRegExp=function(_4){
return _4 instanceof RegExp;
};
COMMONS.isDate=function(_5){
return _5 instanceof Date;
};
COMMONS.isNumber=function(_6){
return typeof (_6)==="number";
};
COMMONS.isBoolean=function(_7){
return typeof (_7)==="boolean";
};
COMMONS.isString=function(_8){
return typeof (_8)==="string";
};
COMMONS.isFunction=function(_9){
return typeof (_9)==="function";
};
COMMONS.isUndefined=function(_a){
return _a===undefined;
};
COMMONS.isDefined=function(_b){
return _b!==null&&_b!==undefined;
};
COMMONS.toInteger=function(_c){
var _d=0;
if(_c){
_d=this.isNumber(_c)?_c:parseInt(_c,10);
}
return _d;
};
COMMONS.toFloat=function(_e){
var _f=0;
if(_e){
_f=this.isNumber(_e)?_e:parseFloat(_e);
}
return _f;
};
COMMONS.BOOLEAN_TRUE={"true":true,"yes":true,"ok":true};
COMMONS.toBoolean=function(_10){
var _11=false;
if(_10){
_11=this.isBoolean(_10)?_10:this.BOOLEAN_TRUE[_10.toString().toLowerCase()];
}
return _11;
};
function Logger(_12){
this.fPrefix=_12;
};
Logger.TRACE=20;
Logger.DEBUG=50;
Logger.INFO=70;
Logger.WARN=80;
Logger.ERROR=90;
Logger.FATAL=100;
Logger.prototype.trace=function(_13,_14){
this.log(Logger.TRACE,_13,_14);
};
Logger.prototype.debug=function(_15,_16){
this.log(Logger.DEBUG,_15,_16);
};
Logger.prototype.info=function(_17,_18){
this.log(Logger.INFO,_17,_18);
};
Logger.prototype.warning=function(_19,_1a){
this.log(Logger.WARN,_19,_1a);
};
Logger.prototype.error=function(_1b,_1c,_1d){
this.log(Logger.ERROR,_1b,_1c,_1d);
};
Logger.prototype.fatal=function(_1e,_1f,_20){
this.log(Logger.FATAL,_1e,_1f,_20);
};
Logger.prototype.log=function(_21,_22,_23,_24){
var txt=COMMONS.isDefined(this.fPrefix)?"["+this.fPrefix+"] "+_22:_22;
if(COMMONS.isDefined(_23)){
txt+=": "+_23.name+", "+_23.message;
}
if(COMMONS.isDefined(_24)){
txt+="\n"+_24.toString();
}
this.printLog(_21,txt);
};
Logger.prototype.printLog=function(_26,_27){
if(_26>Logger.WARN){
alert(_27);
}
};
COMMONS.fLogger=new Logger("Common");
var JSINER={scriptPrefix:"script/",scriptSuffix:".js",version:1};
JSINER.fDependency={};
JSINER.fLogger=new Logger("JSINER");
JSINER.getConstructor=function(_28){
var _29=null;
if(COMMONS.isString(_28)){
_29=window[_28];
}else{
if(COMMONS.isFunction(_28)){
_29=_28;
}else{
if(COMMONS.isObject(_28)){
_29=_28.constructor;
}
}
}
return _29;
};
JSINER.getType=function(_2a){
var _2b=(typeof _2a);
if(COMMONS.isObject(_2a)){
if(COMMONS.isRegExp(_2a)){
_2b="RegExp";
}else{
var _2c=this.getConstructor(_2a);
if(COMMONS.isDefined(_2c)){
var _2d=_2c.toString();
var _2e=_2d.indexOf("(");
_2b=((_2e>0)?_2d.substring(_2d.indexOf(" ")+1,_2e):_2d);
}
}
}
return _2b;
};
JSINER.getScriptURI=function(_2f){
var _30=null;
if(COMMONS.isString(_2f)){
_30=this.scriptPrefix;
if(/js[i|o]ner/.test(_2f)){
_30+=_2f;
}else{
_30+=_2f.replace(/[.]/g,"/");
}
_30=Transporter.addParameter(_30+this.scriptSuffix,"ver",this.version);
}
return _30;
};
JSINER.isScriptLoaded=function(_31){
var _32=this.fScripts.isContains(_31);
if(!_32){
var uri=this.getScriptURI(_31);
var _34=uri.indexOf("?");
if(_34>0){
uri=uri.substring(0,_34);
}
var _35=document.getElementsByTagName("script");
for(var i=0;i<_35.length;i++){
var src=_35[i].src;
if(src.indexOf(uri)>=0){
_32=true;
break;
}
}
}
this.fLogger.info("The script ["+_31+"] are "+(_32?"loaded":"not loaded"));
return _32;
};
JSINER.setDependency=function(_38){
this.fDependency=COMMONS.isDefined(_38)?_38:{};
};
JSINER.addDependency=function(_39){
if(COMMONS.isDefined(_39)){
for(var _3a in _39){
var _3b=this.fDependency[_3a];
if(!COMMONS.isArray(_3b)){
this.fDependency[_3a]=[];
_3b=this.fDependency[_3a];
}
var _3c=_39[_3a];
if(COMMONS.isArray(_3c)){
for(var i=0;i<_3c.length;i++){
_3b.push(_3c[i]);
}
}else{
_3b.push(_3c);
}
}
}
};
JSINER.getDependency=function(_3e,_3f){
var _40=this.getType(_3e);
return this.fDependency[_40];
};
JSINER.createInstance=function(_41,_42){
var _43=null;
if(COMMONS.isFunction(_41)&&COMMONS.isFunction(_42)&&_42!==Object){
var _44=_41.prototype;
var _45=_41.prototype.toString;
_41.prototype=new _42();
_41.prototype.constructor=_41;
_41.superClass=_42.prototype;
for(var _46 in _44){
_41.prototype[_46]=_44[_46];
}
_41.prototype.toString=_45;
_41.$extend=true;
_43=new _41();
}
return _43;
};
JSINER.extend=function(_47,_48){
var _49=function(_4a,_4b){
var _4c=_4a;
var _4d=_4a.constructor;
if(COMMONS.isUndefined(_4d.$extend)){
var _4e=this.getDependency(_4a,_4b);
if(COMMONS.isArray(_4e)){
var _4f=this;
this.inject(_4e,function(){
var _50=_4f.getConstructor(_4b);
_4c=_4f.createInstance(_4d,_50)||_4c;
});
}else{
var _51=this.getConstructor(_4b);
_4c=this.createInstance(_4d,_51)||_4c;
}
}
return _4c;
};
var _52=_49.call(this,_47,_48);
var _53=this.getConstructor(_48);
if(COMMONS.isFunction(_53)){
_53.call(_52);
}
return _52;
};
JSINER.INTERCEPT_BEFORE=0;
JSINER.INTERCEPT_AFTER=1;
JSINER.INTERCEPT_INSTEAD=2;
JSINER.INTERCEPT_ON_ERROR=3;
JSINER.fMethods=new HashMap();
JSINER.registerInterceptor=function(_54,_55,_56,_57){
var _58=this.getConstructor(_54);
if(_58!==null&&COMMONS.isFunction(_57)){
var key=this.getType(_58)+"."+_55;
var _5a=_58.prototype[_55];
if(!this.fMethods.isContains(key)){
this.fMethods.put(key,_5a);
}
if(this.isUndefined(_5a)){
_56=this.INTERCEPT_INSTEAD;
}
var _5b=null;
switch(_56){
case this.INTERCEPT_BEFORE:
_5b=function(){
_57.apply(this,arguments);
return _5a.apply(this,arguments);
};
break;
case this.INTERCEPT_AFTER:
_5b=function(){
var _5c=_5a.apply(this,arguments);
_57.apply(this,arguments);
return _5c;
};
break;
case this.INTERCEPT_INSTEAD:
_5b=function(){
var _5d=_57.apply(this,arguments);
return _5d;
};
break;
case this.INTERCEPT_ON_ERROR:
_5b=function(){
var _5e=null;
try{
_5e=_5a.apply(this,arguments);
}
catch(ex){
_5e=_57.apply(this,arguments);
}
return _5e;
};
break;
default:
this.fLogger.error("register interceptor, unsupported type "+_56);
break;
}
_58.prototype[_55]=_5b;
}else{
this.fLogger.error("register interceptor, unsupported arguments "+_54);
}
};
JSINER.unregisterInterceptor=function(_5f,_60){
var _61=this.getConstructor(_5f);
if(_61!==null){
var key=this.getType(_61)+"."+_60;
if(this.fMethods.isContains(key)){
_61.prototype[_60]=this.fMethods.get(key);
this.fMethods.remove(key);
}else{
this.fLogger.warning("unregister interceptor, "+key+" never was registered.");
}
}else{
this.fLogger.error("unregister interceptor, unable to obtain object constructor "+_5f);
}
};
JSINER.getInfo=function(_63,_64){
var _65=typeof (_63);
if(COMMONS.isObject(_63)){
_65+="["+this.getType(_63)+"]\n";
if(!_64){
var _66=[];
var _67;
for(var _68 in _63){
try{
_67=_63[_68];
_66.push(COMMONS.isFunction(_67)?(_68+"()"):(_68+"="+_67));
}
catch(ex){
_66.push(_68);
}
}
if(_66.length>0){
_65+=_66.sort().join(", ");
}
}
if(COMMONS.isArray(Object.attributes)){
var _69=[];
var _6a;
try{
for(var j=0;j<_63.attributes.length;j++){
_6a=_63.attributes[j];
if(_6a.nodeValue!==null&&_6a.nodeValue!==""){
_69.push(_6a.name+"="+_6a.nodeValue);
}
}
}
catch(ex){
}
if(_69.length>0){
_65+="\n ["+_69.sort().join(", ")+"]";
}
}
}
return _65;
};
function HashMap(_6c){
this.fObject=_6c||{};
this.fSize=0;
for(var _6d in this.fObject){
if(this.fObject.hasOwnProperty(_6d)){
this.fSize++;
}
}
};
HashMap.prototype.isEmpty=function(){
return this.getSize()===0;
};
HashMap.prototype.getSize=function(){
return this.fSize;
};
HashMap.prototype.get=function(_6e){
return this.fObject[_6e];
};
HashMap.prototype.isContains=function(_6f){
return COMMONS.isDefined(this.get(_6f));
};
HashMap.prototype.put=function(_70,_71){
if(!this.isContains(_70)){
this.fSize++;
}
this.fObject[_70]=_71;
};
HashMap.prototype.remove=function(_72){
if(this.isContains(_72)){
this.fObject[_72]=undefined;
delete this.fObject[_72];
if(!this.isContains(_72)){
this.fSize--;
}
}
};
HashMap.prototype.clear=function(){
this.fSize=0;
this.fObject={};
};
function KeySet(){
var _73=JSINER.extend(this,HashMap);
for(var i=0;i<arguments.length;i++){
_73.add(arguments[i]);
}
return _73;
};
KeySet.prototype.add=function(_75){
KeySet.superClass.put.call(this,_75,true);
};
KeySet.prototype.getSize=function(){
return this.fSize;
};
JSINER.fScripts=new KeySet();
function Transporter(_76,_77,_78,_79,_7a){
this.fAsynch=COMMONS.isBoolean(_7a)?_7a:true;
this.fTaskID=_77;
this.fCounter=COMMONS.isNumber(_79)?Math.max(_79,0):1;
this.fMethod=_78;
this.onLoad=_76;
this.fLogger=new Logger("Transporter");
this.fTimeout=1000;
this.fURI=null;
this.fQueryString=null;
this.fTaskCounter=this.fCounter;
this.fReq=null;
this.fReqTaskID=null;
this.fResponseHandlers=new HashMap();
this.registerDefaults();
};
Transporter.fTaskSet=new KeySet();
Transporter.setTaskAlive=function(_7b,_7c){
if(COMMONS.isDefined(_7b)){
if(_7c){
Transporter.fTaskSet.add(_7b);
}else{
Transporter.fTaskSet.remove(_7b);
}
}
};
Transporter.isLoaderAlive=function(_7d){
var _7e=!Transporter.fTaskSet.isEmpty();
return _7e;
};
Transporter.isTaskAlive=function(_7f){
var _80=false;
if(COMMONS.isDefined(_7f)){
_80=Transporter.fTaskSet.isContains(_7f);
}
return _80;
};
Transporter.addParameter=function(_81,_82,_83){
var _84=_81;
if(COMMONS.isString(_81)&&COMMONS.isString(_82)&&COMMONS.isDefined(_83)){
var _85=_82+"=";
var _86=_81.indexOf(_85);
if(_86>0){
_84=_81.substring(0,_86+_85.length)+_83;
var _87=_81.indexOf("&",_86+_85.length);
if(_87>0){
_84+=_81.substring(_87,_81.length);
}
}else{
_84+=(_84.indexOf("?")>0)?"&":"?";
_84+=_85+_83;
}
}
return _84;
};
Transporter.ActiveX_TRANSPORT=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.5.0","Msxml2.XMLHTTP.4.0","MSXML2.XMLHTTP.3.0"];
Transporter.prototype.getQueryString=function(_88,_89){
var _8a=null;
var _8b=COMMONS.isNumber(_89)?Math.max(_89,0):0;
if(COMMONS.isArray(_88)&&_88.length>=_8b){
_8a=_88[_8b];
if(_88.length>=_8b){
for(var i=_8b+1;i<_88.length;i++){
_8a+=((i%2===1)?"=":"&")+_88[i];
}
}
}
return _8a;
};
Transporter.prototype.getDefaultHandler=function(){
return this.errorHandler();
};
Transporter.prototype.getResponseHandler=function(_8d){
var _8e=this.fResponseHandlers.get(_8d);
if(!COMMONS.isDefined(_8e)){
_8e=this.getDefaultHandler();
}
return _8e;
};
Transporter.prototype.registerDefaults=function(){
this.setResponseHandeler(400,this.fatalErrorHandler);
this.setResponseHandeler(500,this.fatalErrorHandler);
this.setResponseHandeler(0,this.okHandler);
this.setResponseHandeler(200,this.okHandler);
};
Transporter.prototype.setResponseHandeler=function(_8f,_90){
this.fResponseHandlers.put(_8f,_90);
};
Transporter.prototype.customizeHeaders=function(_91){
var _92=(this.fMethod==="POST")?"application/x-www-form-urlencoded;charset=\"utf-8\"":"text/xml;charset=\"utf-8\"";
_91.setRequestHeader("Content-type",_92);
if(COMMONS.isGecko){
_91.setRequestHeader("Connection","close");
}
};
Transporter.prototype.request=function(_93,_94,_95){
this.fURI=_93;
this.fTaskCounter=this.fCounter;
this.fQueryString=_95;
this.fMethod=_94;
Transporter.setTaskAlive(this.fTaskID,true);
try{
this.doLoadData();
}
catch(ex){
this.fLogger.warning("doLoadData error happened",ex);
}
};
Transporter.prototype.sendData=function(_96){
var _97=this.getQueryString(arguments,1);
this.request(_96,"POST",_97);
};
Transporter.prototype.loadData=function(_98){
var _99=this.getQueryString(arguments,1);
this.request(_98,"GET",_99);
};
Transporter.prototype.doLoadData=function(){
if(window.XMLHttpRequest){
this.fReq=new XMLHttpRequest();
}else{
if(window.ActiveXObject){
if(COMMONS.isDefined(Transporter.ActiveX_TRANSPORT.transport)){
this.fReq=new ActiveXObject(Transporter.ActiveX_TRANSPORT.transport);
}else{
var _9a;
for(var i=0;i<Transporter.ActiveX_TRANSPORT.length;i++){
_9a=Transporter.ActiveX_TRANSPORT[i];
try{
this.fReq=new ActiveXObject(_9a);
Transporter.ActiveX_TRANSPORT.transport=_9a;
break;
}
catch(ex){
}
}
}
}
}
if(COMMONS.isDefined(this.fReq)){
this.fProcessed=false;
var _9c=this;
this.fReq.onreadystatechange=function(){
_9c.onReadyState.call(_9c);
};
try{
this.fReq.open(this.fMethod,this.fURI,this.fAsynch);
this.customizeHeaders(this.fReq);
this.fReq.send(this.fQueryString);
this.fLogger.info("Open request: "+this.fURI+(this.fQueryString?"?"+this.fQueryString:""));
if(!this.fAsynch&&COMMONS.isGecko&&this.fReq.readyState===4){
this.onReadyState();
}
}
catch(ex){
this.fatalErrorHandler();
}
}else{
this.fLogger.error("Browser not supported XMLHttpRequest");
}
};
Transporter.prototype.onReadyState=function(){
var _9d=this.fReq.readyState;
if(_9d===4){
if(!this.fProcessed){
var _9e=this.getResponseHandler(this.fReq.status);
_9e.call(this);
this.fReq.onreadystatechange=COMMONS.returnTrue;
this.fProcessed=true;
}
}
};
Transporter.prototype.okHandler=function(){
this.fLogger.info("Request successfully: "+this.fURI);
if(COMMONS.isFunction(this.onLoad)){
try{
this.onLoad.call(this);
}
catch(ex){
this.fLogger.error("Callback error: "+this.fURI,ex,this.onLoad);
}
}
Transporter.setTaskAlive(this.fTaskID,false);
};
Transporter.prototype.fatalErrorHandler=function(){
if(this.fReqTaskID!==null){
window.clearTimeout(this.fReqTaskID);
this.fReqTaskID=null;
}
Transporter.setTaskAlive(this.fTaskID,false);
if(COMMONS.isDefined(this.fReq)){
this.fLogger.error(this.fReq.status+", request "+this.fURI+" error. Headers: "+this.fReq.getAllResponseHeaders());
this.fReq.onreadystatechange=COMMONS.returnTrue;
this.fReq.abort();
}
};
Transporter.prototype.errorHandler=function(){
if(this.fReqTaskID!==null){
window.clearTimeout(this.fReqTaskID);
this.fReqTaskID=null;
}
if(this.fTaskCounter<=0){
Transporter.setTaskAlive(this.fTaskID,false);
this.fLogger.error(this.fReq.status+", request  "+this.fURI+" error. Headers: "+this.fReq.getAllResponseHeaders());
}else{
var _9f=this;
this.fTaskCounter=this.fTaskCounter-1;
this.fReqTaskID=window.setTimeout(function(){
_9f.doLoadData();
},this.fTimeout);
this.fLogger.info(this.fReq.status+", trying to request "+this.fURI+" again....");
}
};
Transporter.prototype.getResponsedText=function(){
var _a0=null;
if(COMMONS.isDefined(this.fReq)){
_a0=this.fReq.responseText;
}
return _a0;
};
Transporter.prototype.getResponsedXML=function(){
var _a1=null;
if(COMMONS.isDefined(this.fReq)){
try{
_a1=this.fReq.responseXML;
}
catch(ex){
this.fLogger.error("Unable to parse responsed XML",ex);
}
}
return _a1;
};
JSINER.inject=function(_a2,_a3){
var _a4=function(_a5,_a6){
var _a7=null;
for(var i=_a5.fIndex;i<_a6.length;i++){
var _a9=_a6[_a5.fIndex];
if(!JSINER.isScriptLoaded(_a9)){
_a7=JSINER.getScriptURI(_a9);
if(_a7!==null){
_a5.fIndex=i;
break;
}
}
}
return _a7;
};
if(COMMONS.isDefined(_a2)){
if(!COMMONS.isArray(_a2)){
_a2=[_a2];
}
var _aa=new Transporter(function(){
var _ab=this.getResponsedText();
if(window.execScript){
window.execScript(_ab,"javascript");
}else{
if(COMMONS.isSafari){
var _ac=document.getElementsByTagName("head");
var _ad=_ac.length>0?_ac[0]:document.body;
var _ae=document.createElement("script");
_ae.type="text/javascript";
_ae.innerHTML=_ab;
_ad.appendChild(_ae);
}else{
window.eval(_ab);
}
}
JSINER.fScripts.add(_a2[this.fIndex]);
this.fIndex++;
var uri=_a4(this,_a2);
if(uri!==null){
this.loadData(uri);
}else{
if(COMMONS.isFunction(_a3)){
_a3();
}
}
});
_aa.fAsynch=false;
_aa.fIndex=0;
var uri=_a4(_aa,_a2);
if(uri!==null){
_aa.loadData(uri);
}else{
if(COMMONS.isFunction(_a3)){
_a3();
}
}
}
};


/**********jsoner_commons.js.tmp**********/
var COMMONS={version:1.024,userAgent:navigator.userAgent.toLowerCase()};
COMMONS.isIE=COMMONS.userAgent.indexOf("msie")>-1;
COMMONS.isOpera=COMMONS.userAgent.indexOf("opera")>-1;
COMMONS.isSafari=(!COMMONS.isOpera&&COMMONS.userAgent.indexOf("safari")>-1);
COMMONS.isGecko=(!COMMONS.isOpera&&!COMMONS.isSafari&&COMMONS.userAgent.indexOf("gecko")>-1);
COMMONS.isWin32=(COMMONS.userAgent.indexOf("windows")>-1);
COMMONS.isMacOs=(COMMONS.userAgent.indexOf("mac")>-1);
COMMONS.returnFalse=function returnFalse(){
return false;
};
COMMONS.returnTrue=function returnTrue(){
return true;
};
COMMONS.proxy=function(_1){
return _1;
};
COMMONS.isObject=function(_2){
return _2!==null&&typeof (_2)==="object";
};
COMMONS.isArray=function(_3){
return _3 instanceof Array;
};
COMMONS.isRegExp=function(_4){
return _4 instanceof RegExp;
};
COMMONS.isDate=function(_5){
return _5 instanceof Date;
};
COMMONS.isNumber=function(_6){
return typeof (_6)==="number";
};
COMMONS.isBoolean=function(_7){
return typeof (_7)==="boolean";
};
COMMONS.isString=function(_8){
return typeof (_8)==="string";
};
COMMONS.isFunction=function(_9){
return typeof (_9)==="function";
};
COMMONS.isUndefined=function(_a){
return _a===undefined;
};
COMMONS.isDefined=function(_b){
return _b!==null&&_b!==undefined;
};
COMMONS.toInteger=function(_c){
var _d=0;
if(_c){
_d=this.isNumber(_c)?_c:parseInt(_c,10);
}
return _d;
};
COMMONS.toFloat=function(_e){
var _f=0;
if(_e){
_f=this.isNumber(_e)?_e:parseFloat(_e);
}
return _f;
};
COMMONS.BOOLEAN_TRUE={"true":true,"yes":true,"ok":true};
COMMONS.toBoolean=function(_10){
var _11=false;
if(_10){
_11=this.isBoolean(_10)?_10:this.BOOLEAN_TRUE[_10.toString().toLowerCase()];
}
return _11;
};
function Logger(_12){
this.fPrefix=_12;
};
Logger.TRACE=20;
Logger.DEBUG=50;
Logger.INFO=70;
Logger.WARN=80;
Logger.ERROR=90;
Logger.FATAL=100;
Logger.prototype.trace=function(_13,_14){
this.log(Logger.TRACE,_13,_14);
};
Logger.prototype.debug=function(_15,_16){
this.log(Logger.DEBUG,_15,_16);
};
Logger.prototype.info=function(_17,_18){
this.log(Logger.INFO,_17,_18);
};
Logger.prototype.warning=function(_19,_1a){
this.log(Logger.WARN,_19,_1a);
};
Logger.prototype.error=function(_1b,_1c,_1d){
this.log(Logger.ERROR,_1b,_1c,_1d);
};
Logger.prototype.fatal=function(_1e,_1f,_20){
this.log(Logger.FATAL,_1e,_1f,_20);
};
Logger.prototype.log=function(_21,_22,_23,_24){
var txt=COMMONS.isDefined(this.fPrefix)?"["+this.fPrefix+"] "+_22:_22;
if(COMMONS.isDefined(_23)){
txt+=": "+_23.name+", "+_23.message;
}
if(COMMONS.isDefined(_24)){
txt+="\n"+_24.toString();
}
this.printLog(_21,txt);
};
Logger.prototype.printLog=function(_26,_27){
if(_26>Logger.WARN){
alert(_27);
}
};
COMMONS.fLogger=new Logger("Common");
var JSINER={scriptPrefix:"script/",scriptSuffix:".js",version:1};
JSINER.fDependency={};
JSINER.fLogger=new Logger("JSINER");
JSINER.getConstructor=function(_28){
var _29=null;
if(COMMONS.isString(_28)){
_29=window[_28];
}else{
if(COMMONS.isFunction(_28)){
_29=_28;
}else{
if(COMMONS.isObject(_28)){
_29=_28.constructor;
}
}
}
return _29;
};
JSINER.getType=function(_2a){
var _2b=(typeof _2a);
if(COMMONS.isObject(_2a)){
if(COMMONS.isRegExp(_2a)){
_2b="RegExp";
}else{
var _2c=this.getConstructor(_2a);
if(COMMONS.isDefined(_2c)){
var _2d=_2c.toString();
var _2e=_2d.indexOf("(");
_2b=((_2e>0)?_2d.substring(_2d.indexOf(" ")+1,_2e):_2d);
}
}
}
return _2b;
};
JSINER.getScriptURI=function(_2f){
var _30=null;
if(COMMONS.isString(_2f)){
_30=this.scriptPrefix;
if(/js[i|o]ner/.test(_2f)){
_30+=_2f;
}else{
_30+=_2f.replace(/[.]/g,"/");
}
_30=Transporter.addParameter(_30+this.scriptSuffix,"ver",this.version);
}
return _30;
};
JSINER.isScriptLoaded=function(_31){
var _32=this.fScripts.isContains(_31);
if(!_32){
var uri=this.getScriptURI(_31);
var _34=uri.indexOf("?");
if(_34>0){
uri=uri.substring(0,_34);
}
var _35=document.getElementsByTagName("script");
for(var i=0;i<_35.length;i++){
var src=_35[i].src;
if(src.indexOf(uri)>=0){
_32=true;
break;
}
}
}
this.fLogger.info("The script ["+_31+"] are "+(_32?"loaded":"not loaded"));
return _32;
};
JSINER.setDependency=function(_38){
this.fDependency=COMMONS.isDefined(_38)?_38:{};
};
JSINER.addDependency=function(_39){
if(COMMONS.isDefined(_39)){
for(var _3a in _39){
var _3b=this.fDependency[_3a];
if(!COMMONS.isArray(_3b)){
this.fDependency[_3a]=[];
_3b=this.fDependency[_3a];
}
var _3c=_39[_3a];
if(COMMONS.isArray(_3c)){
for(var i=0;i<_3c.length;i++){
_3b.push(_3c[i]);
}
}else{
_3b.push(_3c);
}
}
}
};
JSINER.getDependency=function(_3e,_3f){
var _40=this.getType(_3e);
return this.fDependency[_40];
};
JSINER.createInstance=function(_41,_42){
var _43=null;
if(COMMONS.isFunction(_41)&&COMMONS.isFunction(_42)&&_42!==Object){
var _44=_41.prototype;
var _45=_41.prototype.toString;
_41.prototype=new _42();
_41.prototype.constructor=_41;
if(!_41.superClass){
_41.superClass=_42.prototype;
}
if(!_41.superClasses){
_41.superClasses=[];
}
_41.superClasses.push(_42.prototype);
for(var _46 in _44){
_41.prototype[_46]=_44[_46];
}
_41.prototype.toString=_45;
var _47=JSINER.getClassName(_42);
var _48="$extend"+_47;
_41[_48]=true;
_43=new _41();
}
return _43;
};
JSINER.getClassName=function(_49){
if(COMMONS.isString(_49)){
return _49;
}
var _4a=new String(_49);
var _4b=_4a.indexOf("{");
if(_4b==-1){
return "";
}
_4a=_4a.substring(0,_4b);
var _4c=function(){
return new RegExp("(function)( [a-zA-Z0-9_]+)?(.*)","g");
};
var _4d=new _4c().exec(_4a);
if(!_4d){
return "";
}
if(_4d.length<3){
return "";
}
if(typeof _4d[2]=="undefined"){
return "";
}
return _4d[2].replace(/^\s+/,"").replace(/\s+$/,"");
};
JSINER.extend=function(_4e,_4f){
var _50=function(_51,_52){
var _53=_51;
var _54=_51.constructor;
var _55=JSINER.getClassName(_52);
var _56="$extend"+_55;
if(COMMONS.isUndefined(_54[_56])){
var _57=this.getDependency(_51,_52);
if(COMMONS.isArray(_57)){
var _58=this;
this.inject(_57,function(){
var _59=_58.getConstructor(_52);
_53=_58.createInstance(_54,_59)||_53;
});
}else{
var _5a=this.getConstructor(_52);
_53=this.createInstance(_54,_5a)||_53;
}
}
return _53;
};
var _5b=_50.call(this,_4e,_4f);
var _5c=this.getConstructor(_4f);
if(COMMONS.isFunction(_5c)){
_5c.call(_5b);
}
return _5b;
};
JSINER.INTERCEPT_BEFORE=0;
JSINER.INTERCEPT_AFTER=1;
JSINER.INTERCEPT_INSTEAD=2;
JSINER.INTERCEPT_ON_ERROR=3;
JSINER.fMethods=new HashMap();
JSINER.registerInterceptor=function(_5d,_5e,_5f,_60){
var _61=this.getConstructor(_5d);
if(_61!==null&&COMMONS.isFunction(_60)){
var key=this.getType(_61)+"."+_5e;
var _63=_61.prototype[_5e];
if(!this.fMethods.isContains(key)){
this.fMethods.put(key,_63);
}
if(this.isUndefined(_63)){
_5f=this.INTERCEPT_INSTEAD;
}
var _64=null;
switch(_5f){
case this.INTERCEPT_BEFORE:
_64=function(){
_60.apply(this,arguments);
return _63.apply(this,arguments);
};
break;
case this.INTERCEPT_AFTER:
_64=function(){
var _65=_63.apply(this,arguments);
_60.apply(this,arguments);
return _65;
};
break;
case this.INTERCEPT_INSTEAD:
_64=function(){
var _66=_60.apply(this,arguments);
return _66;
};
break;
case this.INTERCEPT_ON_ERROR:
_64=function(){
var _67=null;
try{
_67=_63.apply(this,arguments);
}
catch(ex){
_67=_60.apply(this,arguments);
}
return _67;
};
break;
default:
this.fLogger.error("register interceptor, unsupported type "+_5f);
break;
}
_61.prototype[_5e]=_64;
}else{
this.fLogger.error("register interceptor, unsupported arguments "+_5d);
}
};
JSINER.unregisterInterceptor=function(_68,_69){
var _6a=this.getConstructor(_68);
if(_6a!==null){
var key=this.getType(_6a)+"."+_69;
if(this.fMethods.isContains(key)){
_6a.prototype[_69]=this.fMethods.get(key);
this.fMethods.remove(key);
}else{
this.fLogger.warning("unregister interceptor, "+key+" never was registered.");
}
}else{
this.fLogger.error("unregister interceptor, unable to obtain object constructor "+_68);
}
};
JSINER.getInfo=function(_6c,_6d){
var _6e=typeof (_6c);
if(COMMONS.isObject(_6c)){
_6e+="["+this.getType(_6c)+"]\n";
if(!_6d){
var _6f=[];
var _70;
for(var _71 in _6c){
try{
_70=_6c[_71];
_6f.push(COMMONS.isFunction(_70)?(_71+"()"):(_71+"="+_70));
}
catch(ex){
_6f.push(_71);
}
}
if(_6f.length>0){
_6e+=_6f.sort().join(", ");
}
}
if(COMMONS.isArray(Object.attributes)){
var _72=[];
var _73;
try{
for(var j=0;j<_6c.attributes.length;j++){
_73=_6c.attributes[j];
if(_73.nodeValue!==null&&_73.nodeValue!==""){
_72.push(_73.name+"="+_73.nodeValue);
}
}
}
catch(ex){
}
if(_72.length>0){
_6e+="\n ["+_72.sort().join(", ")+"]";
}
}
}
return _6e;
};
function HashMap(_75){
this.fObject=_75||{};
this.fSize=0;
for(var _76 in this.fObject){
if(this.fObject.hasOwnProperty(_76)){
this.fSize++;
}
}
};
HashMap.prototype.isEmpty=function(){
return this.getSize()===0;
};
HashMap.prototype.getSize=function(){
return this.fSize;
};
HashMap.prototype.get=function(_77){
return this.fObject[_77];
};
HashMap.prototype.isContains=function(_78){
return COMMONS.isDefined(this.get(_78));
};
HashMap.prototype.put=function(_79,_7a){
if(!this.isContains(_79)){
this.fSize++;
}
this.fObject[_79]=_7a;
};
HashMap.prototype.remove=function(_7b){
if(this.isContains(_7b)){
this.fObject[_7b]=undefined;
delete this.fObject[_7b];
if(!this.isContains(_7b)){
this.fSize--;
}
}
};
HashMap.prototype.clear=function(){
this.fSize=0;
this.fObject={};
};
function KeySet(){
var _7c=JSINER.extend(this,HashMap);
for(var i=0;i<arguments.length;i++){
_7c.add(arguments[i]);
}
return _7c;
};
KeySet.prototype.add=function(_7e){
KeySet.superClass.put.call(this,_7e,true);
};
KeySet.prototype.getSize=function(){
return this.fSize;
};
JSINER.fScripts=new KeySet();
function Transporter(_7f,_80,_81,_82,_83){
this.fAsynch=COMMONS.isBoolean(_83)?_83:true;
this.fTaskID=_80;
this.fCounter=COMMONS.isNumber(_82)?Math.max(_82,0):1;
this.fMethod=_81;
this.onLoad=_7f;
this.fLogger=new Logger("Transporter");
this.fTimeout=1000;
this.fURI=null;
this.fQueryString=null;
this.fTaskCounter=this.fCounter;
this.fReq=null;
this.fReqTaskID=null;
this.fResponseHandlers=new HashMap();
this.registerDefaults();
};
Transporter.fTaskSet=new KeySet();
Transporter.setTaskAlive=function(_84,_85){
if(COMMONS.isDefined(_84)){
if(_85){
Transporter.fTaskSet.add(_84);
}else{
Transporter.fTaskSet.remove(_84);
}
}
};
Transporter.isLoaderAlive=function(_86){
var _87=!Transporter.fTaskSet.isEmpty();
return _87;
};
Transporter.isTaskAlive=function(_88){
var _89=false;
if(COMMONS.isDefined(_88)){
_89=Transporter.fTaskSet.isContains(_88);
}
return _89;
};
Transporter.addParameter=function(_8a,_8b,_8c){
var _8d=_8a;
if(COMMONS.isString(_8a)&&COMMONS.isString(_8b)&&COMMONS.isDefined(_8c)){
var _8e=_8b+"=";
var _8f=_8a.indexOf(_8e);
if(_8f>0){
_8d=_8a.substring(0,_8f+_8e.length)+_8c;
var _90=_8a.indexOf("&",_8f+_8e.length);
if(_90>0){
_8d+=_8a.substring(_90,_8a.length);
}
}else{
_8d+=(_8d.indexOf("?")>0)?"&":"?";
_8d+=_8e+_8c;
}
}
return _8d;
};
Transporter.ActiveX_TRANSPORT=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.5.0","Msxml2.XMLHTTP.4.0","MSXML2.XMLHTTP.3.0"];
Transporter.prototype.getQueryString=function(_91,_92){
var _93=null;
var _94=COMMONS.isNumber(_92)?Math.max(_92,0):0;
if(COMMONS.isArray(_91)&&_91.length>=_94){
_93=_91[_94];
if(_91.length>=_94){
for(var i=_94+1;i<_91.length;i++){
_93+=((i%2===1)?"=":"&")+_91[i];
}
}
}
return _93;
};
Transporter.prototype.getDefaultHandler=function(){
return this.errorHandler();
};
Transporter.prototype.getResponseHandler=function(_96){
var _97=this.fResponseHandlers.get(_96);
if(!COMMONS.isDefined(_97)){
_97=this.getDefaultHandler();
}
return _97;
};
Transporter.prototype.registerDefaults=function(){
this.setResponseHandeler(400,this.fatalErrorHandler);
this.setResponseHandeler(500,this.fatalErrorHandler);
this.setResponseHandeler(0,this.okHandler);
this.setResponseHandeler(200,this.okHandler);
};
Transporter.prototype.setResponseHandeler=function(_98,_99){
this.fResponseHandlers.put(_98,_99);
};
Transporter.prototype.customizeHeaders=function(_9a){
var _9b=(this.fMethod==="POST")?"application/x-www-form-urlencoded;charset=\"utf-8\"":"text/xml;charset=\"utf-8\"";
_9a.setRequestHeader("Content-type",_9b);
if(COMMONS.isGecko){
_9a.setRequestHeader("Connection","close");
}
};
Transporter.prototype.request=function(_9c,_9d,_9e){
this.fURI=_9c;
this.fTaskCounter=this.fCounter;
this.fQueryString=_9e;
this.fMethod=_9d;
Transporter.setTaskAlive(this.fTaskID,true);
try{
this.doLoadData();
}
catch(ex){
this.fLogger.warning("doLoadData error happened",ex);
}
};
Transporter.prototype.sendData=function(_9f){
var _a0=this.getQueryString(arguments,1);
this.request(_9f,"POST",_a0);
};
Transporter.prototype.loadData=function(_a1){
var _a2=this.getQueryString(arguments,1);
this.request(_a1,"GET",_a2);
};
Transporter.prototype.doLoadData=function(){
if(window.XMLHttpRequest){
this.fReq=new XMLHttpRequest();
}else{
if(window.ActiveXObject){
if(COMMONS.isDefined(Transporter.ActiveX_TRANSPORT.transport)){
this.fReq=new ActiveXObject(Transporter.ActiveX_TRANSPORT.transport);
}else{
var _a3;
for(var i=0;i<Transporter.ActiveX_TRANSPORT.length;i++){
_a3=Transporter.ActiveX_TRANSPORT[i];
try{
this.fReq=new ActiveXObject(_a3);
Transporter.ActiveX_TRANSPORT.transport=_a3;
break;
}
catch(ex){
}
}
}
}
}
if(COMMONS.isDefined(this.fReq)){
this.fProcessed=false;
var _a5=this;
this.fReq.onreadystatechange=function(){
_a5.onReadyState.call(_a5);
};
try{
this.fReq.open(this.fMethod,this.fURI,this.fAsynch);
this.customizeHeaders(this.fReq);
this.fReq.send(this.fQueryString);
this.fLogger.info("Open request: "+this.fURI+(this.fQueryString?"?"+this.fQueryString:""));
if(!this.fAsynch&&COMMONS.isGecko&&this.fReq.readyState===4){
this.onReadyState();
}
}
catch(ex){
this.fatalErrorHandler();
}
}else{
this.fLogger.error("Browser not supported XMLHttpRequest");
}
};
Transporter.prototype.onReadyState=function(){
var _a6=this.fReq.readyState;
if(_a6===4){
if(!this.fProcessed){
var _a7=this.getResponseHandler(this.fReq.status);
_a7.call(this);
this.fReq.onreadystatechange=COMMONS.returnTrue;
this.fProcessed=true;
}
}
};
Transporter.prototype.okHandler=function(){
this.fLogger.info("Request successfully: "+this.fURI);
if(COMMONS.isFunction(this.onLoad)){
try{
this.onLoad.call(this);
}
catch(ex){
this.fLogger.error("Callback error: "+this.fURI,ex,this.onLoad);
}
}
Transporter.setTaskAlive(this.fTaskID,false);
};
Transporter.prototype.fatalErrorHandler=function(){
if(this.fReqTaskID!==null){
window.clearTimeout(this.fReqTaskID);
this.fReqTaskID=null;
}
Transporter.setTaskAlive(this.fTaskID,false);
if(COMMONS.isDefined(this.fReq)){
this.fLogger.error(this.fReq.status+", request "+this.fURI+" error. Headers: "+this.fReq.getAllResponseHeaders());
this.fReq.onreadystatechange=COMMONS.returnTrue;
this.fReq.abort();
}
};
Transporter.prototype.errorHandler=function(){
if(this.fReqTaskID!==null){
window.clearTimeout(this.fReqTaskID);
this.fReqTaskID=null;
}
if(this.fTaskCounter<=0){
Transporter.setTaskAlive(this.fTaskID,false);
this.fLogger.error(this.fReq.status+", request  "+this.fURI+" error. Headers: "+this.fReq.getAllResponseHeaders());
}else{
var _a8=this;
this.fTaskCounter=this.fTaskCounter-1;
this.fReqTaskID=window.setTimeout(function(){
_a8.doLoadData();
},this.fTimeout);
this.fLogger.info(this.fReq.status+", trying to request "+this.fURI+" again....");
}
};
Transporter.prototype.getResponsedText=function(){
var _a9=null;
if(COMMONS.isDefined(this.fReq)){
_a9=this.fReq.responseText;
}
return _a9;
};
Transporter.prototype.getResponsedXML=function(){
var _aa=null;
if(COMMONS.isDefined(this.fReq)){
try{
_aa=this.fReq.responseXML;
}
catch(ex){
this.fLogger.error("Unable to parse responsed XML",ex);
}
}
return _aa;
};
JSINER.inject=function(_ab,_ac){
var _ad=function(_ae,_af){
var _b0=null;
for(var i=_ae.fIndex;i<_af.length;i++){
var _b2=_af[_ae.fIndex];
if(!JSINER.isScriptLoaded(_b2)){
_b0=JSINER.getScriptURI(_b2);
if(_b0!==null){
_ae.fIndex=i;
break;
}
}
}
return _b0;
};
if(COMMONS.isDefined(_ab)){
if(!COMMONS.isArray(_ab)){
_ab=[_ab];
}
var _b3=new Transporter(function(){
var _b4=this.getResponsedText();
if(window.execScript){
window.execScript(_b4,"javascript");
}else{
if(COMMONS.isSafari){
var _b5=document.getElementsByTagName("head");
var _b6=_b5.length>0?_b5[0]:document.body;
var _b7=document.createElement("script");
_b7.type="text/javascript";
_b7.innerHTML=_b4;
_b6.appendChild(_b7);
}else{
window.eval(_b4);
}
}
JSINER.fScripts.add(_ab[this.fIndex]);
this.fIndex++;
var uri=_ad(this,_ab);
if(uri!==null){
this.loadData(uri);
}else{
if(COMMONS.isFunction(_ac)){
_ac();
}
}
});
_b3.fAsynch=false;
_b3.fIndex=0;
var uri=_ad(_b3,_ab);
if(uri!==null){
_b3.loadData(uri);
}else{
if(COMMONS.isFunction(_ac)){
_ac();
}
}
}
};


/**********WGGAbstractDataLayer.js.tmp**********/
function WGGAbstractDataLayer(_1,_2){
var _3=JSINER.extend(this,WGGVisitable);
if(_1==null){
return _3;
}
_3.layerIdentifier=_1;
_3.lngName=_2;
_3.options=null;
_3.providerInfo=null;
_3.parent=null;
_3.children=[];
_3.symbologyHashMap=null;
_3.debugInterface=null;
try{
if(WGGDataTypeUtils.isObject(WGGAbstractDebugInterface.gDebugInterface)){
_3.debugInterface=WGGAbstractDebugInterface.gDebugInterface;
}else{
throw "WGGAbstractDebugInterface.gDebugInterface probably undefined";
}
}
catch(e){
_3.debugInterface=new WGGNullDebugInterface();
}
return _3;
};
WGGAbstractDataLayer.prototype.setProviderInfo=function(_4){
this.providerInfo=_4;
};
WGGAbstractDataLayer.prototype.getProviderInfo=function(){
return this.providerInfo;
};
WGGAbstractDataLayer.prototype.setOptions=function(_5){
this.options=_5;
};
WGGAbstractDataLayer.prototype.hasOption=function(_6){
if(this.options==null){
return false;
}
return typeof this.options[_6]!="undefined";
};
WGGAbstractDataLayer.prototype.getParent=function(){
return this.parent;
};
WGGAbstractDataLayer.prototype.addChild=function(_7){
if(_7==null){
return false;
}
if(!(WGGDataTypeUtils.instanceOf(_7,WGGAbstractDataLayer)||WGGDataTypeUtils.instanceOf(_7,WGGDataLayerLeaf))){
return false;
}
if(this==_7){
return false;
}
this.children.push(_7);
_7.parent=this;
return true;
};
WGGAbstractDataLayer.prototype.getChildren=function(){
return this.children;
};
WGGAbstractDataLayer.prototype.setChildren=function(_8){
this.children=_8;
};
WGGAbstractDataLayer.prototype.hasChildren=function(){
return (this.children!=null&&this.children.length>0);
};
WGGAbstractDataLayer.prototype.getChildByIdentifier=function(_9,_a){
if(this.children==null){
return null;
}
if(this.children.length==0){
return null;
}
var _b=null;
for(var i=0;i<this.children.length;i++){
var _d=this.children[i];
if(_d==null){
continue;
}
if(_d.layerIdentifier==_9){
_b=_d;
break;
}else{
if(_a){
_b=_d.getChildByIdentifier(_9,_a);
if(_b!=null){
break;
}
}
}
}
return _b;
};
WGGAbstractDataLayer.prototype.addSymbology=function(_e,_f){
if(this.symbologyHashMap==null){
this.symbologyHashMap=new WGGHashMap();
}
switch(_e){
case "visibility":
if(!WGGDataTypeUtils.isArray(_f)){
return false;
}
if(_f.length!=2){
return false;
}
this.symbologyHashMap.put(_e,_f);
break;
}
return true;
};
WGGAbstractDataLayer.prototype.getSymbology=function(_10){
if(this.symbologyHashMap==null){
this.symbologyHashMap=new WGGHashMap();
}
return this.symbologyHashMap.get(_10);
};
WGGAbstractDataLayer.prototype.toString=function(){
return this.layerIdentifier;
};


/**********WGGAbstractDebugInterface.js.tmp**********/
function WGGAbstractDebugInterface(_1){
this.changeListeners=new Array();
};
WGGAbstractDebugInterface.prototype.createMessage=function(_2,_3){
return null;
};
WGGAbstractDebugInterface.prototype.info=function(_4){
};
WGGAbstractDebugInterface.prototype.debug=function(_5){
};
WGGAbstractDebugInterface.prototype.error=function(_6){
};
WGGAbstractDebugInterface.prototype.warn=function(_7){
};
WGGAbstractDebugInterface.prototype.addChangeListener=function(_8){
if(_8==null){
return;
}
try{
if(!_8.stateChanged){
throw "implementation error: listener does not implement stateChanged method";
}
}
catch(e){
throw e;
}
this.changeListeners.push(_8);
};
WGGAbstractDebugInterface.prototype.removeChangeListener=function(_9){
if(this.changeListeners==null){
return;
}
for(var i=0;i<this.changeListeners.length;i++){
if(this.changeListeners[i]==_9){
var _b=this.changeListeners.slice(0,i);
var _c=new Array();
if(i<(this.changeListeners.length-1)){
_c=this.changeListeners.slice(i+1);
}
this.changeListeners=_b.concat(_c);
}
}
};
WGGAbstractDebugInterface.prototype.notifyChangeListeners=function(_d){
var _e=new WGGChangeEvent(_d);
for(var i=0;i<this.changeListeners.length;i++){
this.changeListeners[i].stateChanged(_e);
}
};
WGGAbstractDebugInterface.gDebugInterface=null;
WGGAbstractDebugInterface.MESSAGE_TYPE_INFO="INFO";
WGGAbstractDebugInterface.MESSAGE_TYPE_DEBUG="DEBUG";
WGGAbstractDebugInterface.MESSAGE_TYPE_WARN="WARN";
WGGAbstractDebugInterface.MESSAGE_TYPE_ERROR="ERROR";
WGGAbstractDebugInterface.MESSAGE_TYPES=[WGGAbstractDebugInterface.MESSAGE_TYPE_INFO,WGGAbstractDebugInterface.MESSAGE_TYPE_DEBUG,WGGAbstractDebugInterface.MESSAGE_TYPE_WARN,WGGAbstractDebugInterface.MESSAGE_TYPE_ERROR];


/**********WGGAbstractDetailBox.js.tmp**********/
function WGGAbstractDetailBox(_1,_2,_3){
this.app=_1;
this.domElement=_2;
this.nativeBox=null;
this.eventController=_3;
this.initialize();
};
WGGAbstractDetailBox.prototype.getNativeDetailBox=function(){
return this.nativeBox;
};
WGGAbstractDetailBox.prototype.initialize=function(){
};
WGGAbstractDetailBox.prototype.update=function(){
};
WGGAbstractDetailBox.prototype.registerEvents=function(){
};


/**********WGGAbstractGeometry.js.tmp**********/
function WGGAbstractGeometry(){
};
WGGAbstractGeometry.prototype.contains=function(x,y,w,h){
return false;
};
WGGAbstractGeometry.prototype.getBounds=function(){
return null;
};
WGGAbstractGeometry.prototype.intersects=function(x,y,w,h){
return false;
};
WGGAbstractGeometry.prototype.toString=function(){
return "";
};


/**********WGGAbstractGUIStuffFactory.js.tmp**********/
function WGGAbstractGUIStuffFactory(){
};
WGGAbstractGUIStuffFactory.createFactory=function(_1){
if(_1=="bb"){
return new WGGBackbaseGUIStuffFactory();
}else{
if(_1=="simple0"){
return new WGGSimpleGUIStuffFactory();
}
}
return null;
};
WGGAbstractGUIStuffFactory.prototype.createTreeNode=function(_2,_3,_4){
return null;
};
WGGAbstractGUIStuffFactory.prototype.createEventsManager=function(){
return null;
};
WGGAbstractGUIStuffFactory.prototype.createTreeModel=function(){
return null;
};
WGGAbstractGUIStuffFactory.prototype.createTree=function(){
return null;
};


/**********WGGAbstractLocationList.js.tmp**********/
function WGGAbstractLocationList(_1,_2,_3){
this.app=_1;
this.domElement=_2;
this.nativeList=null;
this.eventController=_3;
this.initialize();
};
WGGAbstractLocationList.prototype.initialize=function(){
};
WGGAbstractLocationList.prototype.update=function(_4,_5,_6){
};
WGGAbstractLocationList.prototype.getNativeList=function(){
return this.nativeList;
};
WGGAbstractLocationList.prototype.registerEvents=function(){
};


/**********WGGAbstractMap.js.tmp**********/
function WGGAbstractMap(_1,_2,_3){
this.app=_1;
this.domElement=_2;
this.eventController=_3;
this.nativeMap=null;
this.markersCache=null;
this.initialize();
};
WGGAbstractMap.prototype.getApp=function(){
return this.app;
};
WGGAbstractMap.prototype.getNativeMap=function(){
return this.nativeMap;
};
WGGAbstractMap.prototype.initialize=function(){
this.initializeNativeMap();
if(this.nativeMap!=null){
var _4=this.app.getConfig();
this.setCenter(_4.centerPoint.getX(),_4.centerPoint.getY(),_4.scale);
this.nativeMap.wggNextDoorApp=this.app;
this.markersCache=new WGGHashMap();
}
};
WGGAbstractMap.prototype.initializeNativeMap=function(){
this.createNativeMapObject();
this.addControls();
};
WGGAbstractMap.prototype.createNativeMapObject=function(){
};
WGGAbstractMap.prototype.addControls=function(){
};
WGGAbstractMap.prototype.getDomElement=function(){
return this.domElement;
};
WGGAbstractMap.prototype.update=function(_5){
};
WGGAbstractMap.prototype.setCenter=function(x,y,_8){
};
WGGAbstractMap.prototype.getCenter=function(){
};
WGGAbstractMap.prototype.getZoom=function(){
};
WGGAbstractMap.prototype.panTo=function(x,y){
};
WGGAbstractMap.prototype.getExtent=function(){
return null;
};
WGGAbstractMap.prototype.setExtent=function(_b){
};
WGGAbstractMap.prototype.onMarkersAdded=function(){
};
WGGAbstractMap.prototype.onAllMarkersShown=function(){
};
WGGAbstractMap.prototype.onMapClick=function(e){
};
WGGAbstractMap.prototype.onMapMoveEnd=function(e){
};
WGGAbstractMap.prototype.getPixelPosition=function(){
return WGGGUIUtils.getPosition(this.domElement);
};
WGGAbstractMap.prototype.getPixelDimension=function(){
return WGGGUIUtils.getDimension(this.domElement);
};


/**********WGGAbstractMarker.js.tmp**********/
function WGGAbstractMarker(_1,_2,_3,_4){
this.map=_1;
this.point=_3;
this.content=_4;
this.nativeMarker=null;
this.index=_2;
};
WGGAbstractMarker.prototype.registerEvents=function(){
};
WGGAbstractMarker.prototype.getPoint=function(){
return this.point;
};
WGGAbstractMarker.prototype.getMap=function(){
return this.map;
};
WGGAbstractMarker.prototype.getMarkerProperties=function(){
var _5=this.map.getApp().getConfig().markerProperties[this.index];
if(!_5){
throw "markerProperties for "+this.index+" not defined";
}
return _5;
};
WGGAbstractMarker.prototype.buildIcon=function(){
return null;
};
WGGAbstractMarker.prototype.setImageUrl=function(_6){
return null;
};
WGGAbstractMarker.prototype.buildTooltipContent=function(){
return null;
};
WGGAbstractMarker.prototype.showTooltip=function(){
};
WGGAbstractMarker.prototype.show=function(){
};
WGGAbstractMarker.prototype.destroy=function(){
};
WGGAbstractMarker.prototype.onMouseDownLeft=function(){
};
WGGAbstractMarker.prototype.onMouseDownRight=function(){
};
WGGAbstractMarker.prototype.getPixelPosition=function(){
};


/**********WGGAbstractModuleDescriptor.js.tmp**********/
function WGGAbstractModuleDescriptor(){
};
WGGAbstractModuleDescriptor.prototype.getName=function(){
};
WGGAbstractModuleDescriptor.prototype.getVersion=function(){
};
WGGAbstractModuleDescriptor.prototype.getMainClass=function(){
};


/**********WGGAbstractModuleMain.js.tmp**********/
function WGGAbstractModuleMain(){
this.moduleDescriptor=null;
this.cmdDefs=null;
};
WGGAbstractModuleMain.prototype.processStandardResponse=function(){
if(arguments.length==0){
return;
}
var _1=arguments[0];
var _2=WGGXmlUtils.selectNodes(_1,"//RESPONSE/HEAD/CMD/NAME",null);
if(_2==null||_2.length==0){
throw "command name (//RESPONSE/HEAD/CMD/NAME) of the command response must not be unknown";
}
var _3=_2[0];
var _4=WGGXmlUtils.selectNodes(_1,"//RESPONSE/BODY/RETVAL",null);
if(_4==null){
return null;
}
if(_4.length==0){
return null;
}
var _5=WGGXmlUtils.getChildValue(_4[0]);
var _6={};
_6["RETVAL"]=_5;
if(_5=="ERR"||_5=="CRITICAL"){
var _7=WGGXmlUtils.selectNodes(_1,"//RESPONSE/BODY/ERRMSG",null);
if(_7==null||_7.length==0){
throw "return value of the command "+_3+" was ERR or CRITICAL but the error message (//RESPONSE/BODY/ERRMSG) is not available";
}
_6["ERRMSG"]=_7[0];
return _6;
}
var _8=WGGXmlUtils.selectNodes(_1,"//RESPONSE/BODY/DATA",null);
if(_8==null||_8.length==0){
throw "return value of the command "+_3+" was OK but the data (//RESPONSE/BODY/DATA) is not available";
}
var _9=_8[0];
if(!_9.hasChildNodes()){
_6["DATA"]=null;
return _6;
}
var _a=null;
var _b=WGGXmlUtils.getChildValue(_9);
if(_b!=null){
_a=_b;
}else{
var _c=WGGXmlUtils.selectNodes(_9,"KVP",null);
var _d=(_c!=null&&_c.length!=0);
var _e=false;
if(_c==null||_c.length==0){
_c=WGGXmlUtils.selectNodes(_9,"V",null);
_e=(_c!=null&&_c.length!=0);
}
if(_d){
var _f={};
for(var i=0;i<_c.length;i++){
var _11=_c[i];
var k=_11.getAttribute("K");
if(k==null){
throw "key value for a map element (//RESPONSE/BODY/DATA/KVP@K) must not be null";
}
var v=WGGXmlUtils.getChildValue(_11);
_f[k]=v;
}
_a=_f;
}
if(_e){
var _14=[];
for(var i=0;i<_c.length;i++){
var _11=_c[i];
_14[i]=WGGXmlUtils.getChildValue(_11);
}
_a=_14;
}
}
_6["DATA"]=_a;
return _6;
};
WGGAbstractModuleMain.prototype.getCmdDefs=function(){
return this.cmdDefs;
};
WGGAbstractModuleMain.prototype.getCmdDef=function(_15){
if(this.cmdDefs==null){
return null;
}
if(_15==null){
return null;
}
for(var i=0;i<this.cmdDefs.length;i++){
if(this.cmdDefs[i].name==_15){
return this.cmdDefs[i];
}
}
return null;
};


/**********WGGAbstractStuffFactory.js.tmp**********/
function WGGAbstractStuffFactory(){
};
WGGAbstractStuffFactory.createFactory=function(_1){
if(_1=="native_google"){
return new WGGGoogleStuffFactory();
}else{
if(_1=="openlayers"){
return new WGGOpenLayersStuffFactory();
}
}
return null;
};
WGGAbstractStuffFactory.prototype.createModel=function(_2,_3){
return new WGGNextDoorModel(_2,_3);
};
WGGAbstractStuffFactory.prototype.createEventController=function(_4,_5){
return new WGGDefaultEventController(_4,_5);
};
WGGAbstractStuffFactory.prototype.createMap=function(){
return null;
};
WGGAbstractStuffFactory.prototype.createList=function(_6,_7,_8){
return new WGGBackbaseLocationList(_6,_7,_8);
};
WGGAbstractStuffFactory.prototype.createDetailBox=function(_9,_a,_b){
return new WGGBackbaseDetailBox(_9,_a,_b);
};
WGGAbstractStuffFactory.prototype.createMarker=function(){
return null;
};


/**********WGGAbstractTooltip.js.tmp**********/
function WGGAbstractTooltip(_1,_2){
this.marker=_1;
this.content=_2;
this.show();
};
WGGAbstractTooltip.prototype.show=function(){
};
WGGAbstractTooltip.prototype.destroy=function(){
};


/**********WGGAjaxAddressSearchComboBox.js.tmp**********/
function WGGAjaxAddressSearchComboBox(_1,_2,_3,_4,_5,_6,_7,_8){
this.input=_1;
this.button=_2;
this.list=_3;
this.wrapper=_4;
this.checkbox=_5;
this.addressProcessingIndicator=_6;
this.addressXCO=_7;
this.addressYCO=_8;
this.arr=new Array();
this.activeItemInList=-1;
this.geocoder=null;
this.inputEntry="";
this.outputEntries=new Array();
this.otherAjaxAddressSearchComboBoxObjects=new Array();
this.input.comboBoxRef=this;
this.button.comboBoxRef=this;
this.keyUpTimestamp=null;
this.keyUpGap=400;
this.inputObserverHandle=null;
this.status=0;
this.acc="AUTO";
this.aObjTemplate=new Object();
this.aObjTemplate.backRef=this;
this.aObjTemplate.handleClick=function(){
var _9=(isIE)?this.innerText:this.firstChild.nodeValue;
this.backRef.setWrapperVisible(false);
if((this.backRef.addressXCO.value=="")||(this.backRef.addressXCO.value!=this.xco||this.backRef.addressYCO.value!=this.yco)){
WGGAjaxAddressSearchComboBox.addressParamsHashMap.put(this.backRef.inputEntry,_9);
if(this.backRef.addressXCO){
this.backRef.addressXCO.value=this.xco;
}
if(this.backRef.addressYCO){
this.backRef.addressYCO.value=this.yco;
}
this.backRef.input.value=_9;
this.backRef.deactivate();
this.className="activeItem";
this.backRef.resetAll();
}
};
if(this.input!=null){
inherits(new Observer(),this.input);
this.input.update=function(){
this.comboBoxRef.wrapper.style.visibility="visible";
};
this.input.setValue=function(_a){
this.value=_a;
};
if(this.wrapper!=null){
var _b=getPosition(this.input);
this.wrapper.style.left=_b.left+"px";
this.wrapper.style.top=(_b.top+20)+"px";
this.wrapper.style.zIndex=1000;
}
this.input.onfocus=function(e){
window.document.comboBoxRef=this.comboBoxRef;
};
this.input.onkeyup=function(e){
if(!this.comboBoxRef.checkbox){
return true;
}
if(this.comboBoxRef.checkbox.checked==false){
return true;
}
var _e=this;
var _f=getKeyboardKey(e);
if(_f<41&&_f!=8){
return;
}
this.comboBoxRef.keyUpTimestamp=new Date().getTime();
if(_e.comboBoxRef.inputObserverHandle==null){
_e.comboBoxRef.inputObserverHandle=window.setInterval(function(){
if(_e.value.length==0){
_e.comboBoxRef.reset();
_e.comboBoxRef.wrapper.style.visibility="hidden";
_e.comboBoxRef.status=0;
_e.comboBoxRef.addressXCO.value="";
_e.comboBoxRef.addressYCO.value="";
_e.comboBoxRef.resetAll();
window.clearInterval(_e.comboBoxRef.inputObserverHandle);
_e.comboBoxRef.inputObserverHandle=null;
_e.comboBoxRef.addressProcessingIndicator.style.visibility="hidden";
return;
}else{
if(_e.comboBoxRef.status==1){
var _10=_e.comboBoxRef.fillList(_e.value);
_e.comboBoxRef.wrapper.style.visibility="visible";
if(_10==0){
_e.comboBoxRef.reset();
_e.comboBoxRef.resetAll();
WGGAjaxAddressSearchComboBox.addressParamsHashMap.put(_e.comboBoxRef.inputEntry,_e.value+"*");
WGGAjaxAddressSearchComboBox.addressParamsHashMap.put("ACC",_e.comboBoxRef.acc);
_e.comboBoxRef.geocoder.geocode(WGGAjaxAddressSearchComboBox.addressParamsHashMap);
_e.comboBoxRef.addressProcessingIndicator.style.visibility="visible";
_e.comboBoxRef.status=2;
}
_e.comboBoxRef.addressProcessingIndicator.style.visibility="hidden";
window.clearInterval(_e.comboBoxRef.inputObserverHandle);
_e.comboBoxRef.inputObserverHandle=null;
_e.comboBoxRef.status=0;
return;
}
if(_e.comboBoxRef.status==2){
return;
}
}
var now=new Date().getTime();
var _12=now-_e.comboBoxRef.keyUpTimestamp;
if(_12<_e.comboBoxRef.keyUpGap*0.95){
return;
}
_e.comboBoxRef.reset();
_e.comboBoxRef.resetAll();
WGGAjaxAddressSearchComboBox.addressParamsHashMap.put(_e.comboBoxRef.inputEntry,_e.value+"*");
WGGAjaxAddressSearchComboBox.addressParamsHashMap.put("ACC",_e.comboBoxRef.acc);
_e.comboBoxRef.status=2;
_e.comboBoxRef.geocoder.geocode(WGGAjaxAddressSearchComboBox.addressParamsHashMap);
_e.comboBoxRef.addressProcessingIndicator.style.visibility="visible";
},_e.comboBoxRef.keyUpGap);
}
};
}
window.document.onkeydown=function(e){
if(this.comboBoxRef==null){
return;
}
var key=getKeyboardKey(e);
if(key!=38&&key!=40&&key!=35&&key!=36){
return;
}
var _15=null;
for(var i=0;i<this.comboBoxRef.list.childNodes.length;i++){
if(this.comboBoxRef.list.childNodes[i].tagName=="TABLE"){
var _17=this.comboBoxRef.activeItemInList;
var _18=-1;
if(_17==-1&&(key==35||key==36)){
return;
}
switch(key){
case 40:
if(this.comboBoxRef.wrapper.style.visibility=="hidden"){
this.comboBoxRef.wrapper.style.visibility="visible";
break;
}
_17++;
_18=_17-1;
break;
case 38:
_17--;
_18=_17+1;
break;
case 36:
if(this.comboBoxRef.wrapper.style.visibility=="hidden"){
break;
}
_18=_17;
_17=0;
break;
case 35:
if(this.comboBoxRef.wrapper.style.visibility=="hidden"){
break;
}
_18=_17;
_17=this.comboBoxRef.arr.length-1;
break;
}
var _19=this.comboBoxRef.list.childNodes[i].firstChild;
if(_17==-1){
if(_18>=0&&_18<_19.childNodes.length){
var _1a=_19.childNodes[_18].childNodes[0].firstChild;
_1a.className="inactiveItem";
try{
this.comboBoxRef.input.focus();
}
catch(e){
}
this.comboBoxRef.activeItemInList=_17;
}
}else{
var _1b=false;
if(_17>=0&&_17<_19.childNodes.length){
var _1c=_19.childNodes[_17].childNodes[0].firstChild;
_1c.className="activeItem";
try{
_1c.focus();
}
catch(e){
}
_1b=true;
this.comboBoxRef.activeItemInList=_17;
}
if(_18>=0&&_18<_19.childNodes.length){
var _1a=_19.childNodes[_18].childNodes[0].firstChild;
if(_1b){
_1a.className="inactiveItem";
}else{
_1a.className="activeItem";
try{
_1a.focus();
}
catch(e){
}
}
}
}
break;
}
}
};
window.document.onclick=function(e){
if(!e&&isIE){
e=window.event;
}
if(this.comboBoxRef==null){
return;
}
var pos=getPosition(this.comboBoxRef.wrapper);
pos.height+=20;
pos.top-=20;
if(!(e.clientX>pos.left&&e.clientX<(pos.left+pos.width)&&e.clientY>pos.top&&e.clientY<(pos.top+pos.height))){
this.comboBoxRef.wrapper.style.visibility="hidden";
}
};
this.button.onclick=function(e){
if(window.document.comboBoxRef!=null){
if(window.document.comboBoxRef!=this.comboBoxRef){
window.document.comboBoxRef.setWrapperVisible(false);
}
}
this.comboBoxRef.setWrapperVisible(!this.comboBoxRef.isWrapperVisible());
window.document.comboBoxRef=this.comboBoxRef;
};
this.setGeocoder=function(_20){
this.geocoder=_20;
this.geocoder.addObserver(this);
this.geocoder.addObserver(this.input);
};
this.setInputEntry=function(_21){
this.inputEntry=_21;
};
this.setOutputEntries=function(_22){
this.outputEntries=_22;
};
this.setOtherAjaxAddressSearchComboBoxObjects=function(_23){
this.otherAjaxAddressSearchComboBoxObjects=_23;
};
this.getArr=function(){
return this.arr;
};
this.setAcc=function(acc){
this.acc=acc;
};
this.getAcc=function(){
return this.acc;
};
this.getArrAsCookieValue=function(){
var _25="";
for(var i=0;i<this.arr.length;i++){
if(_25!=""){
_25+="\n";
}
_25+=this.arr[i].getAddressAsCookieValue();
}
return _25;
};
this.setArrFromCookieValue=function(_27){
if(this.input.value==""){
return;
}
if(_27==null){
this.input.value="";
return;
}
var _28=_27.split("\n");
var _29=-1;
for(var i=0;i<_28.length;i++){
var _2b=_28[i];
var _2c=new Address(0,0);
_2c.setAddressFromCookieValue(_2b);
this.arr.push(_2c);
this.addItem2List(_2c);
if(_29==-1){
var _2d=_2c.getAddressHashMap().toString(this.outputEntries,true," ");
if(_2d.toLowerCase().indexOf(this.input.value.toLowerCase())==0){
_29=i;
}
}
}
if(_29!=-1){
this.changeList("activate",_29,_29+1);
}
this.status=1;
WGGAjaxAddressSearchComboBox.addressParamsHashMap.put(this.inputEntry,this.input.value+"*");
};
this.reset=function(){
this.arr=new Array();
this.changeList("delete",0);
this.activeItemInList=-1;
};
this.resetAll=function(){
if(this.otherAjaxAddressSearchComboBoxObjects.length!=0){
for(var k=0;k<this.otherAjaxAddressSearchComboBoxObjects.length;k++){
this.otherAjaxAddressSearchComboBoxObjects[k].reset();
this.otherAjaxAddressSearchComboBoxObjects[k].input.value="";
if(this.otherAjaxAddressSearchComboBoxObjects[k].addressXCO){
this.otherAjaxAddressSearchComboBoxObjects[k].addressXCO.value="";
}
if(this.otherAjaxAddressSearchComboBoxObjects[k].addressYCO){
this.otherAjaxAddressSearchComboBoxObjects[k].addressYCO.value="";
}
AjaxAddressSearchComboBox.addressParamsHashMap.remove(this.otherAjaxAddressSearchComboBoxObjects[k].inputEntry);
}
}
};
this.deactivate=function(){
this.changeList("deactivate",0);
};
this.createTable=function(){
var _2f=null;
for(var i=0;i<this.list.childNodes.length;i++){
if(this.list.childNodes[i].tagName=="TABLE"){
_2f=this.list.childNodes[i];
break;
}
}
if(_2f==null){
_2f=thisDoc.createElement("table");
this.list.appendChild(_2f);
var _31=thisDoc.createElement("tbody");
_2f.appendChild(_31);
}
return _2f;
};
this.update=function(){
if(arguments.length<2){
return;
}
var acc=arguments[0];
if(this.acc!="AUTO"){
if(this.acc!=acc){
this.status=1;
return;
}
}
var _33=arguments[1];
if(_33){
var _34=_33.getAddressHashMap();
this.arr.push(_33);
this.addItem2List(_33);
this.status=1;
}else{
this.status=1;
}
};
this.addItem2List=function(_35){
var _36=this.createTable();
var _37=_36.firstChild;
var _38=thisDoc.createElement("tr");
_37.appendChild(_38);
var _39=thisDoc.createElement("td");
_38.appendChild(_39);
var _3a=thisDoc.createElement("a");
inherits(this.aObjTemplate,_3a);
_3a.onclick=_3a.handleClick;
_39.appendChild(_3a);
_3a.href="#";
var _3b=_35.getAddressHashMap();
var _3c=_3b.toString(this.outputEntries,true," ");
var _3d=_3b.toString(this.outputEntries,false," ");
_3a.xco=_35.x;
_3a.yco=_35.y;
if(isIE){
_3a.innerText=_3c;
}else{
var _3e=thisDoc.createTextNode(_3c);
_3a.appendChild(_3e);
}
_3a.title=_3d;
return _3c;
};
this.fillList=function(_3f){
var _40=this.createTable();
var _41=0;
var _42=_40.firstChild;
if(_42){
_41=_42.childNodes.length;
}
var _43=this.arr.length;
var i=0;
var j=0;
while(i<_43){
var _46=this.arr[i].getAddressHashMap();
var _47=_46.toString(this.outputEntries,true," ");
var _48=_46.toString(this.outputEntries,false," ");
var _49=_47.toLowerCase();
var _4a=_42.childNodes[j];
if(!_4a){
_4a=thisDoc.createElement("tr");
_42.appendChild(_4a);
var _4b=thisDoc.createElement("td");
_4a.appendChild(_4b);
var _4c=thisDoc.createElement("a");
inherits(this.aObjTemplate,_4c);
_4c.onclick=_4c.handleClick;
_4b.appendChild(_4c);
_4c.href="#";
}
var _4b=_4a.firstChild;
var _4c=_4b.firstChild;
_4c.className="inactiveItem";
_4c.xco=this.arr[i].x;
_4c.yco=this.arr[i].y;
if(isIE){
_4c.innerText=_47;
}else{
var _4d=_4c.firstChild;
if(!_4d){
_4d=thisDoc.createTextNode(_47);
_4c.appendChild(_4d);
}else{
_4d.nodeValue=_47;
}
}
_4c.title=_48;
j++;
i++;
}
this.changeList("delete",j);
return j;
};
this.changeList=function(_4e,_4f,end){
if(_4e!="delete"&&_4e!="deactivate"&&_4e!="activate"){
return;
}
var _51=this.createTable();
var _52=_51.firstChild;
if(_52){
if(end<=_4f||end>_52.childNodes.length){
end=_52.childNodes.length;
}
if(!end){
end=_52.childNodes.length;
}
for(var i=(end-1);i>=_4f;i--){
switch(_4e){
case "delete":
_52.removeChild(_52.childNodes[_52.childNodes.length-1]);
break;
case "deactivate":
case "activate":
var _54=_52.childNodes[i];
if(_54){
for(var j=0;j<_54.childNodes.length;j++){
var _56=_54.firstChild;
if(_56){
var _57=_56.firstChild;
if(_4e=="deactivate"){
_57.className="inactiveItem";
}else{
_57.className="activeItem";
}
}
}
}
break;
default:
}
}
}
};
this.setWrapperVisible=function(_58){
var _59=this.wrapper.style;
if(_59){
_59.visibility=(_58==true)?"visible":"hidden";
}
};
this.isWrapperVisible=function(){
var _5a=this.wrapper.style;
return (_5a.visibility=="visible");
};
};
WGGAjaxAddressSearchComboBox.addressParamsHashMap=null;


/**********WGGAjaxLoader.js.tmp**********/
function WGGAjaxLoader(){
var _1=JSINER.extend(this,"WGGSubject");
var _2=true;
switch(arguments.length){
case 1:
if(WGGDataTypeUtils.isBoolean(arguments[0])){
_2=arguments[0];
}
break;
default:
}
_1.xmlHttp=false;
_1.observers=[];
_1.debugInterface=null;
try{
if(WGGDataTypeUtils.isObject(WGGAbstractDebugInterface.gDebugInterface)){
_1.debugInterface=WGGAbstractDebugInterface.gDebugInterface;
}else{
throw "WGGAbstractDebugInterface.gDebugInterface probably undefined";
}
}
catch(e){
_1.debugInterface=new WGGNullDebugInterface();
}
_1.processRequest=function(){
this.debugInterface.debug("WGGAjaxLoader.processRequest");
if(!this.xmlHttp){
return null;
}
try{
this.debugInterface.debug("xmlHttp.readyState:"+this.xmlHttp.readyState);
if(this.xmlHttp.readyState==4){
this.debugInterface.debug("xmlHttp.status:"+this.xmlHttp.status);
if(this.xmlHttp.status==200||this.xmlHttp.status==0){
var _3=this.xmlHttp.getResponseHeader("Content-Type");
if(_3==null){
_3="";
}
var _4=(_3.indexOf("text/xml")==-1&&_3.indexOf("application/xml")==-1)?this.xmlHttp.responseText:this.xmlHttp.responseXML;
this.debugInterface.debug("xml received");
this.debugInterface.debug(_4);
return _4;
}else{
throw "there was a problem retrieving the XML data:\n"+this.xmlHttp.statusText;
}
}
}
catch(e){
this.debugInterface.debug("error during xml processing");
this.debugInterface.debug(e);
return e;
}
return null;
};
_1.asyncHandler=function(){
var _5=this.processRequest();
this.debugInterface.debug("WGGAjaxLoader is notifying observer about receiving xmlDoc");
this.notify(_5);
};
_1.bAvoidCacheTimeStamp=_2;
_1.avoidCacheTimeStampParamName="avoidCacheTimeStamp";
return _1;
};
WGGAjaxLoader.prototype.initialize=function(){
if(window.XMLHttpRequest){
try{
netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead");
}
catch(e){
}
try{
this.xmlHttp=new XMLHttpRequest();
}
catch(e){
this.xmlHttp=false;
}
}else{
if(window.ActiveXObject){
try{
this.xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
}
catch(e){
try{
this.xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
}
catch(e){
this.xmlHttp=false;
}
}
}else{
throw "AJAX not supported";
}
}
};
WGGAjaxLoader.prototype.sendRequest=function(_6,_7,_8,_9){
this.debugInterface.debug("WGGAjaxLoader.sendRequest");
if(_6==null){
this.debugInterface.error("url is null");
this.notify();
return false;
}
if(!this.xmlHttp){
this.debugInterface.error("xmlHttp is null or undefined");
this.notify();
return false;
}
if(typeof _9=="undefined"){
_9=true;
}
if(!WGGDataTypeUtils.isBoolean(_9)){
_9=true;
}
try{
if(_7!=null){
this.debugInterface.debug("method POST");
this.xmlHttp.open("POST",_6,_9);
var _a="application/x-www-form-urlencoded";
if(_8!=null){
_a+="; charset="+_8;
}else{
}
this.xmlHttp.setRequestHeader("Content-Type",_a);
this.xmlHttp.setRequestHeader("Cache-Control","no-cache, must-revalidate");
}else{
this.debugInterface.debug("method GET");
if(this.bAvoidCacheTimeStamp==true){
if(_6.indexOf(this.avoidCacheTimeStampParamName)!=-1){
throw "the parameter "+_b.avoidCacheTimeStampParamName+" is reserved; please use an another identifier";
}
var _c=_6.indexOf("?");
_6+=(_c!=-1)?"&":"?";
_6+=this.avoidCacheTimeStampParamName+"="+new Date().getTime();
}
this.xmlHttp.open("GET",_6,_9);
}
var _b=this;
if(_9==true){
if(WGGBrowserDetector.IS_IE){
this.xmlHttp.onreadystatechange=function(){
_b.asyncHandler();
};
}else{
this.xmlHttp.onload=function(){
_b.asyncHandler();
};
}
}
this.debugInterface.debug("xmlHttp.send");
this.xmlHttp.send(_7);
if(_9==false){
this.asyncHandler();
}
return true;
}
catch(e){
this.debugInterface.error("exception: "+e);
this.notify();
}
return false;
};
WGGAjaxLoader.prototype.postXML=function(_d,_e){
if(_d==null){
this.notify();
return false;
}
if(!this.xmlHttp){
this.notify();
return false;
}
try{
this.xmlHttp.open("POST",_d,true);
this.xmlHttp.onreadystatechange=function(){
var _f=processRequest();
self.notify(_f);
};
this.xmlHttp.setRequestHeader("Man","POST "+_d+" HTTP/1.1");
this.xmlHttp.setRequestHeader("MessageType","CALL");
this.xmlHttp.setRequestHeader("Content-Type","text/xml");
this.xmlHttp.send(_e);
return true;
}
catch(e){
}
this.notify();
return false;
};
WGGAjaxLoader.extractServerName=function(){
var _10=/http:\\\\.*\\/gi;
_10.exec(location.href);
return RegExp.$1;
};
WGGAjaxLoader.extractPort=function(){
};


/**********WGGArray.js.tmp**********/
function WGGArray(_1){
this.data=new Array();
if(WGGDataTypeUtils.isArray(_1)){
this.data=_1;
}
};
WGGArray.NUM_ASC_FUNC=function(a,b){
return a-b;
};
WGGArray.NUM_DESC_FUNC=function(a,b){
return b-a;
};
WGGArray.prototype.set=function(_6,_7){
if(_6<0){
return false;
}
if(_6>this.data.length){
return false;
}
this.data[_6]=_7;
return true;
};
WGGArray.prototype.getCapacity=function(){
return this.length();
};
WGGArray.prototype.add=function(_8){
this.data[this.data.length]=_8;
};
WGGArray.prototype.reset=function(){
this.data=new Array();
};
WGGArray.prototype.length=function(){
return this.data.length;
};
WGGArray.prototype.getArray=function(){
return this.data;
};
WGGArray.prototype.getNormalizedArray=function(_9){
var _a=0;
var _b=this.clone();
try{
_b.sort(_9);
}
catch(e){
_b.sort();
}
var _c=new Array();
for(var i=_b.length-1;i>0;i--){
var _e=false;
try{
_e=_b[i].equals(_b[i-1]);
}
catch(e){
_e=_b[i]==_b[i-1];
}
if(_e){
_c[i]=false;
_a++;
}else{
_c[i]=true;
}
}
_c[0]=true;
var _f=new Array();
var j=0;
for(var i=0;i<_b.length;i++){
if(_c[i]){
_f[j]=_b[i];
j++;
}
}
return _f;
};
WGGArray.prototype.get=function(_11){
if(_11<0||_11>this.data.length){
throw "Invalid index: "+_11;
}
return this.data[_11];
};
WGGArray.prototype.clone=function(){
var c=new Array();
for(var i=0;i<this.data.length;i++){
c[i]=this.data[i];
}
return c;
};
WGGArray.prototype.contains=function(_14){
for(var i=0;i<this.data.length;i++){
var _16=false;
try{
_16=this.data[i].equals(_14);
}
catch(e){
_16=this.data[i]==_14;
}
if(_16){
return true;
}
}
return false;
};
WGGArray.prototype.indexOf=function(_17){
for(var i=0;i<this.data.length;i++){
var _19=false;
try{
_19=this.data[i].equals(_17);
}
catch(e){
_19=this.data[i]==_17;
}
if(_19){
return i;
}
}
return -1;
};
WGGArray.prototype.remove=function(_1a){
for(var i=0;i<this.data.length;i++){
var _1c=null;
var _1d=false;
try{
_1d=this.data[i].equals(_1a);
}
catch(e){
_1d=this.data[i]==_1a;
}
if(_1d){
_1c=this.data[i];
var _1e=this.data.slice(0,i);
var _1f=new Array();
if(i<(this.data.length-1)){
_1f=this.data.slice(i+1);
}
this.data=_1e.concat(_1f);
return _1c;
}
}
return null;
};
WGGArray.prototype.removeAt=function(_20){
if(_20<0){
throw "OutOfBoundsException: index must not be negative";
}
if(_20>(this.data.length-1)){
throw "OutOfBoundsException: index must not be greater than last index";
}
var _21=this.data[_20];
var _22=this.data.slice(0,_20);
var _23=new Array();
if(_20<(this.data.length-1)){
_23=this.data.slice(_20+1);
}
this.data=_22.concat(_23);
return _21;
};
WGGArray.prototype.containsAll=function(arr){
if(!WGGDataTypeUtils.instanceOf(arr,WGGArray)){
return false;
}
for(var i=0;i<arr.length();i++){
if(!this.contains(arr.get(i))){
return false;
}
}
return true;
};
WGGArray.prototype.retainAll=function(arr){
if(!WGGDataTypeUtils.instanceOf(arr,WGGArray)){
return;
}
var _27=[];
for(var i=0;i<arr.length();i++){
if(!this.contains(arr.get(i))){
continue;
}
_27.push(arr.get(i));
}
this.reset();
this.data=_27;
};
WGGArray.prototype.addAll=function(arr){
if(!WGGDataTypeUtils.instanceOf(arr,WGGArray)){
return;
}
for(var i=0;i<arr.length();i++){
if(this.contains(arr.get(i))){
continue;
}
this.add(arr.get(i));
}
};
WGGArray.prototype.swap=function(a,b,_2d){
if(a==b){
return;
}
var tmp=this.data[a];
this.data[a]=this.data[b];
this.data[b]=tmp;
if(WGGDataTypeUtils.isFunction(_2d)){
_2d.call(null,a,b);
}
};
WGGArray.prototype.partition=function(_2f,end,_31,_32){
var piv=this.data[_31];
this.swap(_31,end-1,_32);
var _34=_2f;
for(var ix=_2f;ix<end-1;++ix){
if(this.data[ix]<=piv){
this.swap(_34,ix,_32);
++_34;
}
}
this.swap(end-1,_34,_32);
return _34;
};
WGGArray.prototype.qsort=function(_36,end,_38){
if(end-1>_36){
var _39=_36+Math.floor(Math.random()*(end-_36));
_39=this.partition(_36,end,_39,_38);
this.qsort(_36,_39,_38);
this.qsort(_39+1,end,_38);
}
};
WGGArray.prototype.toString=function(){
return this.data.toString();
};


/**********WGGBackbaseClassificationForm.js.tmp**********/
function WGGBackbaseClassificationForm(){
var _1=JSINER.extend(this,"WGGSubject");
var _2=null;
var _3=null;
var _4=null;
switch(arguments.length){
case 0:
return;
case 1:
case 2:
throw "count of arguments not sufficient to initialize this widget (WGGBackbaseClassificationForm)";
case 3:
_2=arguments[0];
_3=arguments[1];
_4=arguments[2];
if(_2==null){
throw "cfg must not be null";
}
if(!WGGDataTypeUtils.instanceOf(_2,WGGWigeowebCfg)){
throw "cfg should be instance of WGGWigeowebCfg";
}
if(_3==null){
throw "parentDomElement must not be null";
}
if(_4==null){
throw "dataLayer must not be null";
}
if(!WGGDataTypeUtils.instanceOf(_4,WGGAbstractDataLayer)){
throw "dataLayer should be instance of WGGAbstractDataLayer";
}
break;
default:
throw "count of arguments not sufficient to initialize this widget (WGGBackbaseClassificationForm)";
}
var _5=_1;
_1.observerImpl=new function MyObserver(){
var _6=JSINER.extend(this,"WGGObserver");
_6.update=function(){
_5.notify();
};
return _6;
};
_1.bbElement=null;
_1.cfg=_2;
_1.dataLayer=_4;
_1.parentDomElement=_3;
_1.dataHashMap=null;
_1.boxDef="<b:box xmlns:b=\"http://www.backbase.com/2006/btl\" id=\"box_{{autoid0}}\" class=\"wgg-box-without-border\" visibility=\"hidden\" width=\"100%\" height=\"100%\"></b:box>";
_1.classFieldBoxDef="<b:box xmlns:b=\"http://www.backbase.com/2006/btl\" xmlns=\"http://www.w3.org/1999/xhtml\" class=\"wgg-box-without-border\">"+"{{lng_classification_field}}"+"<br/>"+"<b:comboBox id=\"classFieldComboBox_{{autoid0}}\" width=\"200px\" readonly=\"true\"></b:comboBox>"+"</b:box>";
_1.classFieldComboBoxItemDef="<b:comboBoxOption xmlns:b=\"http://www.backbase.com/2006/btl\" value=\"{{field_id}}\">{{lng_usecasespecific__field_name}}</b:comboBoxOption>";
_1.classTypeBoxDef="<b:box xmlns:b=\"http://www.backbase.com/2006/btl\" xmlns=\"http://www.w3.org/1999/xhtml\" class=\"wgg-box-without-border\">"+"{{lng_classification_type}}"+"<br/>"+"<b:comboBox id=\"classTypeComboBox_{{autoid0}}\" width=\"200px\" readonly=\"true\"></b:comboBox>"+"</b:box>";
_1.classTypeComboBoxItemDef="<b:comboBoxOption xmlns:b=\"http://www.backbase.com/2006/btl\" value=\"{{type_id}}\">{{type_name}}</b:comboBoxOption>";
_1.rangeClassSpecificBoxDef="<b:box xmlns:b=\"http://www.backbase.com/2006/btl\" xmlns=\"http://www.w3.org/1999/xhtml\" id=\"rangeClassSpecificBox_{{autoid0}}\" class=\"wgg-box-without-border\" display=\"none\">"+"{{lng_specify_range_class_borders}}"+"<br/>"+"<input type=\"text\" id=\"rangeStartInput_{{autoid1}}\" style=\"width:50px;\"/>&nbsp;&nbsp;-&nbsp;&nbsp;<input type=\"text\" id=\"rangeEndInput_{{autoid2}}\" style=\"width:50px;\"/>"+"</b:box>";
_1.quantileClassSpecificBoxDef="<b:box xmlns:b=\"http://www.backbase.com/2006/btl\" xmlns=\"http://www.w3.org/1999/xhtml\" id=\"quantileClassSpecificBox_{{autoid0}}\" class=\"wgg-box-without-border\" display=\"none\">"+"{{lng_specify_quantile_class_borders}}"+"<br/>"+"<b:comboBox id=\"classCountComboBox_{{autoid1}}\" width=\"50px\">"+"<b:comboBoxOption>3</b:comboBoxOption>"+"<b:comboBoxOption>5</b:comboBoxOption>"+"<b:comboBoxOption>7</b:comboBoxOption>"+"</b:comboBox>"+"</b:box>";
_1.buttonBoxDef="<b:box xmlns:b=\"http://www.backbase.com/2006/btl\" xmlns=\"http://www.w3.org/1999/xhtml\" id=\"box_{{autoid0}}\" class=\"wgg-box-without-border\">"+"<br/><br/>"+"<b:button id=\"buttonReset_{{autoid1}}\" width=\"100px\">{{lng_button_reset}}</b:button>&nbsp;"+"<b:button id=\"buttonOkay_{{autoid2}}\" width=\"100px\">{{lng_button_okay}}</b:button>&nbsp;"+"<b:button id=\"buttonPreview_{{autoid3}}\" width=\"100px\">{{lng_button_preview}}</b:button>&nbsp;"+"<b:button id=\"buttonCancel_{{autoid4}}\" width=\"100px\">{{lng_button_cancel}}</b:button>"+"</b:box>";
_1.defTemplates=null;
_1.debugInterface=null;
try{
if(WGGDataTypeUtils.isObject(WGGAbstractDebugInterface.gDebugInterface)){
_1.debugInterface=WGGAbstractDebugInterface.gDebugInterface;
}else{
throw "WGGAbstractDebugInterface.gDebugInterface probably undefined";
}
}
catch(e){
_1.debugInterface=new WGGNullDebugInterface();
}
_1.eventsManagers=[];
_1.__onClassFieldSelected=function __classFieldSelected(){
var _7=arguments[0];
var _8=_7.currentTarget;
var _9=_8.getProperty("selectedOption").getAttribute("value");
var _a=WGGBackbaseGUIUtils.getChildNodes(this.bbElement,"comboBox",/classTypeComboBox_/,true)[0];
while(_a.hasChildNodes()){
_a.removeChild(_a.getProperty("firstChild"));
}
var _b=this.dataHashMap.get(_9);
for(var i=0;i<_b.length();i++){
var _d=_b.get(i);
var _e=this.defTemplates.get(this.classTypeComboBoxItemDef);
_e.reset();
_e.assign(_d.id,"type_id");
_e.assign(_d.name,"type_name");
bb.command.create(_e.getResult(),_a,"appendChild");
}
var _f=WGGBackbaseGUIUtils.getChildNodes(this.bbElement,"box",/rangeClassSpecificBox_/,true)[0];
var _10=WGGBackbaseGUIUtils.getChildNodes(this.bbElement,"box",/quantileClassSpecificBox_/,true)[0];
_f.setAttribute("display","none");
_10.setAttribute("display","none");
};
_1.__onClassTypeSelected=function __classTypeSelected(){
var evt=arguments[0];
var _12=evt.currentTarget;
var _13=_12.getProperty("selectedOption").getAttribute("value");
var _14=WGGBackbaseGUIUtils.getChildNodes(this.bbElement,"comboBox",/classFieldComboBox_/,true)[0];
var _15=_14.getProperty("selectedOption").getAttribute("value");
var _16=this.getClassificationType(_15,_13);
var _17=WGGBackbaseGUIUtils.getChildNodes(this.bbElement,"box",/rangeClassSpecificBox_/,true)[0];
var _18=WGGBackbaseGUIUtils.getChildNodes(this.bbElement,"box",/quantileClassSpecificBox_/,true)[0];
switch(_16){
case WGGEnumClassificationType.CLS_RANGE.type:
_17.setAttribute("display","block");
_18.setAttribute("display","none");
break;
case WGGEnumClassificationType.CLS_QUANTILE.type:
_18.setAttribute("display","block");
_17.setAttribute("display","none");
break;
default:
_17.setAttribute("display","none");
_18.setAttribute("display","none");
}
};
_1.__onClassificationReset=function __classificationReset(){
var _19=this.cfg.getModuleContainer();
var _1a=_19.getModuleByName("MODULE_DATALAYOUT");
var cmd=_19.getCmdDef("MODULE_DATALAYOUT.RESET_CLASSIFICATION");
cmd.addObserver(this.observerImpl);
cmd.execute(_1a,[this.dataLayer.layerIdentifier]);
};
_1.__onClassificationSet=function __classificationSet(){
var evt=arguments[0];
var _1d=WGGBackbaseGUIUtils.getChildNodes(this.bbElement,"comboBox",/classFieldComboBox_/,true)[0];
var _1e=WGGBackbaseGUIUtils.getChildNodes(this.bbElement,"comboBox",/classTypeComboBox_/,true)[0];
var _1f=this.cfg.getCurrentLngSource();
if(_1d.getProperty("selectedOption")==null||_1e.getProperty("selectedOption")==null){
WGGBackbaseOptionPane.showMessageDialog(this.cfg,this.bbElement,_1f.lookupByName(WGGBackbaseClassificationForm.LNG_MESSAGE_CHOOSE_CLASS_FIELD_AND_TYPE,WGGBackbaseClassificationForm.LNG_MESSAGE_CHOOSE_CLASS_FIELD_AND_TYPE),_1f.lookupByName(WGGBackbaseClassificationForm.LNG_TITLE_ERROR,WGGBackbaseClassificationForm.LNG_TITLE_ERROR),WGGBackbaseOptionPane.ERROR_MESSAGE,null);
return;
}
var _20=_1d.getProperty("selectedOption").getAttribute("value");
var _21=this.dataHashMap.get(_20);
var _22=_21.get(0);
var _23=_22.fId;
var _24=_1e.getProperty("selectedOption").getAttribute("value");
var _25=_1e.getProperty("selectedOption").getAttribute("text");
var _26=this.getClassificationType(_20,_24);
var _27=[this.dataLayer.layerIdentifier,_23,_24];
var _28=null;
switch(_26){
case WGGEnumClassificationType.CLS_UNIQUE.type:
_28="MODULE_DATALAYOUT.UPDATETOUNIQUECLASSIFICATION";
break;
case WGGEnumClassificationType.CLS_FIXED.type:
_28="MODULE_DATALAYOUT.UPDATETOFIXEDCLASSIFICATION";
break;
case WGGEnumClassificationType.CLS_RANGE.type:
_28="MODULE_DATALAYOUT.UPDATETORANGECLASSIFICATION";
var _29=WGGBackbaseGUIUtils.getStandardDOMChildNodes(this.bbElement,"input",/rangeStartInput_/,true);
var _2a=WGGBackbaseGUIUtils.getStandardDOMChildNodes(this.bbElement,"input",/rangeEndInput_/,true);
if(_29&&_2a){
if(_29.length>0){
rangeStartInputValue=_29[0].viewNode.value;
}
if(_2a.length>0){
rangeEndInputValue=_2a[0].viewNode.value;
}
if(rangeStartInputValue==""||rangeEndInputValue==""){
WGGBackbaseOptionPane.showMessageDialog(this.cfg,this.bbElement,_1f.lookupByName(WGGBackbaseClassificationForm.LNG_MESSAGE_CHOOSE_CLASS_RANGE,WGGBackbaseClassificationForm.LNG_MESSAGE_CHOOSE_CLASS_RANGE),_1f.lookupByName(WGGBackbaseClassificationForm.LNG_TITLE_ERROR,WGGBackbaseClassificationForm.LNG_TITLE_ERROR),WGGBackbaseOptionPane.ERROR_MESSAGE,null);
return;
}
if(!(WGGDataTypeUtils.isNumeric(rangeStartInputValue)&&WGGDataTypeUtils.isNumeric(rangeEndInputValue))){
WGGBackbaseOptionPane.showMessageDialog(this.cfg,this.bbElement,_1f.lookupByName(WGGBackbaseClassificationForm.LNG_MESSAGE_CLASS_RANGE_INVALID,WGGBackbaseClassificationForm.LNG_MESSAGE_CLASS_RANGE_INVALID),_1f.lookupByName(WGGBackbaseClassificationForm.LNG_TITLE_ERROR,WGGBackbaseClassificationForm.LNG_TITLE_ERROR),WGGBackbaseOptionPane.ERROR_MESSAGE,null);
return;
}
_27.push(parseInt(rangeStartInputValue));
_27.push(parseInt(rangeEndInputValue));
}
break;
case WGGEnumClassificationType.CLS_QUANTILE.type:
_28="MODULE_DATALAYOUT.UPDATETOQUANTILECLASSIFICATION";
var _2b=WGGBackbaseGUIUtils.getChildNodes(this.bbElement,"comboBox",/classCountComboBox_/,true)[0];
if(_2b){
var _2c=_2b.getProperty("selectedOption");
var _2d=(_2c!=null)?_2c.getProperty("value"):_2b.getProperty("value");
if(_2d==""){
WGGBackbaseOptionPane.showMessageDialog(this.cfg,this.bbElement,_1f.lookupByName(WGGBackbaseClassificationForm.LNG_MESSAGE_CHOOSE_CLASS_COUNT,WGGBackbaseClassificationForm.LNG_MESSAGE_CHOOSE_CLASS_COUNT),_1f.lookupByName(WGGBackbaseClassificationForm.LNG_TITLE_ERROR,WGGBackbaseClassificationForm.LNG_TITLE_ERROR),WGGBackbaseOptionPane.ERROR_MESSAGE,null);
return;
}
if(!WGGDataTypeUtils.isNumeric(_2d)){
WGGBackbaseOptionPane.showMessageDialog(this.cfg,this.bbElement,_1f.lookupByName(WGGBackbaseClassificationForm.LNG_MESSAGE_CLASS_COUNT_INVALID,WGGBackbaseClassificationForm.LNG_MESSAGE_CLASS_COUNT_INVALID),_1f.lookupByName(WGGBackbaseClassificationForm.LNG_TITLE_ERROR,WGGBackbaseClassificationForm.LNG_TITLE_ERROR),WGGBackbaseOptionPane.ERROR_MESSAGE,null);
return;
}
_27.push(parseInt(_2d));
}
break;
default:
}
if(_28==null){
throw new Error("classification type '"+_26+"' is not defined by the client");
}
var _2e=this.cfg.getModuleContainer();
var _2f=_2e.getModuleByName("MODULE_DATALAYOUT");
var cmd=_2e.getCmdDef(_28);
cmd.addObserver(this.observerImpl);
cmd.execute(_2f,_27);
};
_1.__onClassificationPreviewed=function __classificationPreviewed(){
alert("not yet implemented");
};
_1.__onClassificationCancelled=function __classificationCancelled(){
var _31=WGGBackbaseGUIUtils.getParentNode(this.bbElement,"window",null);
if(_31==null){
return;
}
_31.close();
};
_1.getClassificationType=function(_32,_33){
if(this.dataHashMap==null){
return null;
}
var _34=this.dataHashMap.get(_32);
for(var i=0;i<_34.length();i++){
var _36=_34.get(i);
if(_36.id==_33){
return _36.type;
}
}
return null;
};
_1.initializeBbElement=function(){
this.debugInterface.info("initializeBbElement");
var _37=this.cfg.getCurrentLngSource();
var _38=this.defTemplates.get(this.boxDef);
this.bbElement=bb.command.create(_38.getResult(),this.parentDomElement,"appendChild");
var _39=this.defTemplates.get(this.classFieldBoxDef);
var _3a=bb.command.create(_39.getResult(),this.bbElement,"appendChild");
var _3b=_3a.getProperty("childNodes");
var _3c=null;
for(var i=0;i<_3b.length;i++){
if(!bb.instanceOf(_3b[i],btl.namespaceURI,"comboBox")){
continue;
}
_3c=_3b[i];
break;
}
this.debugInterface.error(this.dataHashMap);
var _3e=this.defTemplates.get(this.classFieldComboBoxItemDef);
var _3f=this.dataHashMap.keyIterator();
while(_3f.hasNext()){
var _40=_3f.next();
if(_40==null){
continue;
}
_3e.reset();
var _41=this.dataHashMap.get(_40);
if(_41.length()==0){
continue;
}
var _42=_41.get(0);
var _43=_42.fName;
_3e.assign(_43,"field_id");
_3e.assign(_37.lookupByName("lng_label_"+_43,_43),WGGBackbaseClassificationForm.LNG_USECASESPECIFIC__FIELD_NAME);
var _44=bb.command.create(_3e.getResult(),_3c,"appendChild");
}
var _45=this.defTemplates.get(this.classTypeBoxDef);
var _46=bb.command.create(_45.getResult(),this.bbElement,"appendChild");
var _47=this.defTemplates.get(this.rangeClassSpecificBoxDef);
var _48=bb.command.create(_47.getResult(),this.bbElement,"appendChild");
var _49=this.defTemplates.get(this.quantileClassSpecificBoxDef);
var _4a=bb.command.create(_49.getResult(),this.bbElement,"appendChild");
var _4b=this.defTemplates.get(this.buttonBoxDef);
var _4c=bb.command.create(_4b.getResult(),this.bbElement,"appendChild");
this.bbElement.setAttribute("visibility","visible");
};
_1.preInitialize=function(){
this.defTemplates=new WGGHashMap();
var _4d=WGGIdGenerator.getInstance();
var _4e=this.cfg.getCurrentLngSource();
var _4f=new WGGSimpleTemplate(this.boxDef);
_4f.assign(_4d.generateId(),"autoid0");
var _50=new WGGSimpleTemplate(this.classFieldBoxDef);
_50.assign(_4d.generateId(),"autoid0");
_50.assign(_4e.lookupByName(WGGBackbaseClassificationForm.LNG_CLASSIFICATION_FIELD,WGGBackbaseClassificationForm.LNG_CLASSIFICATION_FIELD),WGGBackbaseClassificationForm.LNG_CLASSIFICATION_FIELD);
var _51=new WGGSimpleTemplate(this.classFieldComboBoxItemDef);
var _52=new WGGSimpleTemplate(this.classTypeBoxDef);
_52.assign(_4d.generateId(),"autoid0");
_52.assign(_4e.lookupByName(WGGBackbaseClassificationForm.LNG_CLASSIFICATION_TYPE,WGGBackbaseClassificationForm.LNG_CLASSIFICATION_TYPE),WGGBackbaseClassificationForm.LNG_CLASSIFICATION_TYPE);
var _53=new WGGSimpleTemplate(this.classTypeComboBoxItemDef);
var _54=new WGGSimpleTemplate(this.rangeClassSpecificBoxDef);
_54.assign(_4d.generateId(),"autoid0");
_54.assign(_4d.generateId(),"autoid1");
_54.assign(_4d.generateId(),"autoid2");
_54.assign(_4e.lookupByName(WGGBackbaseClassificationForm.LNG_SPECIFY_RANGE_CLASS_BORDERS,WGGBackbaseClassificationForm.LNG_SPECIFY_RANGE_CLASS_BORDERS),WGGBackbaseClassificationForm.LNG_SPECIFY_RANGE_CLASS_BORDERS);
var _55=new WGGSimpleTemplate(this.quantileClassSpecificBoxDef);
_55.assign(_4d.generateId(),"autoid0");
_55.assign(_4d.generateId(),"autoid1");
_55.assign(_4e.lookupByName(WGGBackbaseClassificationForm.LNG_SPECIFY_QUANTILE_CLASS_BORDERS,WGGBackbaseClassificationForm.LNG_SPECIFY_QUANTILE_CLASS_BORDERS),WGGBackbaseClassificationForm.LNG_SPECIFY_QUANTILE_CLASS_BORDERS);
var _56=new WGGSimpleTemplate(this.buttonBoxDef);
_56.assign(_4d.generateId(),"autoid0");
_56.assign(_4d.generateId(),"autoid1");
_56.assign(_4d.generateId(),"autoid2");
_56.assign(_4d.generateId(),"autoid3");
_56.assign(_4d.generateId(),"autoid4");
_56.assign(_4e.lookupByName(WGGBackbaseClassificationForm.LNG_BUTTON_RESET,WGGBackbaseClassificationForm.LNG_BUTTON_RESET),WGGBackbaseClassificationForm.LNG_BUTTON_RESET);
_56.assign(_4e.lookupByName(WGGBackbaseClassificationForm.LNG_BUTTON_OKAY,WGGBackbaseClassificationForm.LNG_BUTTON_OKAY),WGGBackbaseClassificationForm.LNG_BUTTON_OKAY);
_56.assign(_4e.lookupByName(WGGBackbaseClassificationForm.LNG_BUTTON_PREVIEW,WGGBackbaseClassificationForm.LNG_BUTTON_PREVIEW),WGGBackbaseClassificationForm.LNG_BUTTON_PREVIEW);
_56.assign(_4e.lookupByName(WGGBackbaseClassificationForm.LNG_BUTTON_CANCEL,WGGBackbaseClassificationForm.LNG_BUTTON_CANCEL),WGGBackbaseClassificationForm.LNG_BUTTON_CANCEL);
this.defTemplates.put(this.boxDef,_4f);
this.defTemplates.put(this.classFieldBoxDef,_50);
this.defTemplates.put(this.classFieldComboBoxItemDef,_51);
this.defTemplates.put(this.classTypeBoxDef,_52);
this.defTemplates.put(this.classTypeComboBoxItemDef,_53);
this.defTemplates.put(this.rangeClassSpecificBoxDef,_54);
this.defTemplates.put(this.quantileClassSpecificBoxDef,_55);
this.defTemplates.put(this.buttonBoxDef,_56);
};
_1.postInitialize=function(){
var _57=WGGBackbaseGUIUtils.getChildNodes(this.bbElement,"comboBox",/^classFieldComboBox_/,true);
var _58=_57[0];
var _59=new WGGBackbaseEventsManager(this,_58);
_59.addEventListener("change",this.__onClassFieldSelected,false);
this.eventsManagers.push(_59);
var _5a=WGGBackbaseGUIUtils.getChildNodes(this.bbElement,"comboBox",/^classTypeComboBox_/,true);
var _5b=_5a[0];
var _5c=new WGGBackbaseEventsManager(this,_5b);
_5c.addEventListener("change",this.__onClassTypeSelected,false);
this.eventsManagers.push(_5c);
var _5d=WGGBackbaseGUIUtils.getChildNodes(this.bbElement,"button",/^buttonReset_/,true)[0];
var _5e=new WGGBackbaseEventsManager(this,_5d);
_5e.addEventListener("click",this.__onClassificationReset,false);
this.eventsManagers.push(_5e);
var _5f=WGGBackbaseGUIUtils.getChildNodes(this.bbElement,"button",/^buttonOkay_/,true)[0];
var _60=new WGGBackbaseEventsManager(this,_5f);
_60.addEventListener("click",this.__onClassificationSet,false);
this.eventsManagers.push(_60);
var _61=WGGBackbaseGUIUtils.getChildNodes(this.bbElement,"button",/^buttonPreview_/,true)[0];
var _62=new WGGBackbaseEventsManager(this,_61);
_62.addEventListener("click",this.__onClassificationPreviewed,false);
this.eventsManagers.push(_62);
var _63=WGGBackbaseGUIUtils.getChildNodes(this.bbElement,"button",/^buttonCancel_/,true)[0];
var _64=new WGGBackbaseEventsManager(this,_63);
_64.addEventListener("click",this.__onClassificationCancelled,false);
this.eventsManagers.push(_64);
};
_1.initialize=function(){
this.preInitialize();
this.initializeBbElement();
this.postInitialize();
};
_1.update=function(){
this.observerImpl.update.apply(this,arguments);
};
var _65=_1.cfg.getModuleContainer();
var _66=_65.getModuleByName("MODULE_DATALAYOUT");
var _67=_65.getCmdDef("MODULE_DATALAYOUT.GET_AVAILABLE_CLASSIFICATIONS");
var _68=new WGGObserver();
_68.update=function(){
var _69=null;
var fqn=null;
var _6b=null;
var _6c=null;
try{
_69=_5.cfg.getCurrentLngSource();
if(arguments.length!=4){
throw new Error("Implementation error: 4 arguments from command notifying mechanism expected");
}
fqn=arguments[1];
_6b=arguments[2];
if(_6b==WGGEnumCmdStatus.STATUS_STARTED){
return;
}
if(_6b!=WGGEnumCmdStatus.STATUS_DONE_SUCCESS){
throw new Error("WGGBackbaseClassificationForm could not be initialized; error while executing command "+fqn);
}
_6c=arguments[3];
_5.dataHashMap=_6c["DATA"];
var _6d=_5.dataHashMap.keyIterator();
var i=0;
while(_6d.hasNext()){
var _6f=_6d.next();
if(_6f==null){
continue;
}
var _70=_5.dataLayer.getDataFieldByName(_6f);
if(_70==null){
continue;
}
i++;
}
if(i==0){
var msg=_69.lookupByName(WGGBackbaseClassificationForm.LNG_MESSAGE_NO_CLASSIFICATION_AVAILABLE_FOR_LAYER,WGGBackbaseClassificationForm.LNG_MESSAGE_NO_CLASSIFICATION_AVAILABLE_FOR_LAYER);
throw msg;
}
_5.initialize.apply(_5,arguments);
}
catch(e){
var dlg=WGGBackbaseOptionPane.showMessageDialog(_5.cfg,_5.parentDomElement,e,_69.lookupByName(WGGBackbaseClassificationForm.LNG_TITLE_ERROR,WGGBackbaseClassificationForm.LNG_TITLE_ERROR),WGGBackbaseOptionPane.ERROR_MESSAGE,null);
dlg.__onOkayButtonClicked=function __okayButtonClicked(){
this.bbElement.close();
_5.parentDomElement.close();
};
}
finally{
if(_6b!=null){
if(_6b.isDone()){
_67.removeObserver(this);
}
}
}
};
_67.addObserver(_68);
_67.execute(_66,[_1.dataLayer.layerIdentifier]);
return _1;
};
WGGBackbaseClassificationForm.LNG_CLASSIFICATION_FIELD="lng_classification_field";
WGGBackbaseClassificationForm.LNG_CLASSIFICATION_TYPE="lng_classification_type";
WGGBackbaseClassificationForm.LNG_USECASESPECIFIC__FIELD_NAME="lng_usecasespecific__field_name";
WGGBackbaseClassificationForm.LNG_SINGLE_VALUE_CLASSIFICATION_TYPE="lng_single_value_classification_type";
WGGBackbaseClassificationForm.LNG_VALUE_RANGE_CLASSIFICATION_TYPE="lng_value_range_classification_type";
WGGBackbaseClassificationForm.LNG_QUANTILE_CLASSIFICATION_TYPE="lng_quantile_classification_type";
WGGBackbaseClassificationForm.LNG_SPECIFY_RANGE_CLASS_BORDERS="lng_specify_range_class_borders";
WGGBackbaseClassificationForm.LNG_SPECIFY_QUANTILE_CLASS_BORDERS="lng_specify_quantile_class_borders";
WGGBackbaseClassificationForm.LNG_BUTTON_RESET="lng_button_reset";
WGGBackbaseClassificationForm.LNG_BUTTON_OKAY="lng_button_okay";
WGGBackbaseClassificationForm.LNG_BUTTON_PREVIEW="lng_button_preview";
WGGBackbaseClassificationForm.LNG_BUTTON_CANCEL="lng_button_cancel";
WGGBackbaseClassificationForm.LNG_TITLE_ERROR="lng_title_error";
WGGBackbaseClassificationForm.LNG_MESSAGE_CHOOSE_CLASS_FIELD_AND_TYPE="lng_message_choose_class_field_and_type";
WGGBackbaseClassificationForm.LNG_MESSAGE_CHOOSE_CLASS_COUNT="lng_message_choose_class_count";
WGGBackbaseClassificationForm.LNG_MESSAGE_CLASS_COUNT_INVALID="lng_message_class_count_invalid";
WGGBackbaseClassificationForm.LNG_MESSAGE_CHOOSE_CLASS_RANGE="lng_message_choose_class_range";
WGGBackbaseClassificationForm.LNG_MESSAGE_CLASS_RANGE_INVALID="lng_message_class_range_invalid";
WGGBackbaseClassificationForm.LNG_MESSAGE_NO_CLASSIFICATION_AVAILABLE_FOR_LAYER="lng_message_no_classification_available_for_layer";


/**********WGGBackbaseDataTable.js.tmp**********/
function WGGBackbaseDataTable(){
var _1=JSINER.extend(this,"WGGSubject");
var _2=null;
var _3=null;
var _4=null;
var _5=null;
var _6=null;
switch(arguments.length){
case 0:
return;
case 2:
_2=arguments[0];
_3=arguments[1];
if(_2==null){
throw "cfg must not be null";
}
if(_3==null){
throw "bbElement must not be null";
}
if(!WGGDataTypeUtils.instanceOf(_2,WGGWigeowebCfg)){
throw "cfg should be instance of WGGWigeowebCfg";
}
if(!bb.instanceOf(_3,"http://www.backbase.com/2006/btl","dataGrid")){
throw "bbElement not compatible to this decorator; should be of type b:dataGrid";
}
break;
case 4:
_2=arguments[0];
_4=arguments[1];
_5=arguments[2];
_6=arguments[3];
if(_2==null){
throw "cfg must not be null";
}
if(!WGGDataTypeUtils.instanceOf(_2,WGGWigeowebCfg)){
throw "cfg should be instance of WGGWigeowebCfg";
}
if(_4==null){
throw "parentDomElement must not be null";
}
if(_5==null){
throw "dataLayer must not be null";
}
if(!WGGDataTypeUtils.instanceOf(_5,WGGAbstractDataLayer)){
throw "dataLayer should be instance of WGGAbstractDataLayer";
}
if(_6==null){
throw "geometry must not be null";
}
break;
default:
throw "count of arguments not sufficient to initialize this widget (WGGBackbaseDataTable)";
}
var _7=_1;
_1.observerImpl=new function Observer(){
var _8=JSINER.extend(this,"WGGObserver");
_8.update=function(){
};
return _8;
};
_1.bbElement=_3;
_1.cfg=_2;
_1.parentDomElement=_4;
_1.dataLayer=_5;
_1.geometry=_6;
_1.aggregationRuleHashMap=null;
_1.dataGridDef="<b:dataGrid xmlns:b=\"http://www.backbase.com/2006/btl\" xmlns:e=\"http://www.backbase.com/2006/xel\" id=\"{{dataGridId}}\" width=\"100%\" height=\"250px\" rows=\"50\" e:behavior=\"b:dataGridSortOneColumn b:gridColumnDnD b:dataGridRowFocusAndSelect\">"+"<b:dataSource name=\"{{dataSourceId}}\" e:behavior=\"b:remoteData\" dataType=\"text/xml\" url=\"{{url}}\" method=\"GET\">"+"<b:dataSchema identifier=\"{{identifier}}\">"+"</b:dataSchema>"+"</b:dataSource>"+"<b:dataGridColGroup title=\"{{lng_data_table_colgroup_title}}\">"+"</b:dataGridColGroup>"+"</b:dataGrid>";
_1.dataGridXmlNode=null;
_1.dataFieldDef="<b:dataField xmlns:b=\"http://www.backbase.com/2006/btl\" name=\"{{name}}\" select=\"{{select}}\" />";
_1.dataGridColDef="<b:dataGridCol xmlns:b=\"http://www.backbase.com/2006/btl\" dataField=\"{{dataField}}\" label=\"{{lng_usecasespecific__label}}\" title=\"{{lng_usecasespecific__title}}\"/>";
_1.dataGridColDummyDef="<b:dataGridCol xmlns:b=\"http://www.backbase.com/2006/btl\" id=\"dummyGridCol_{{autoid0}}\"/>";
_1.columnSettingsContextMenuDef="<b:contextMenu xmlns:b=\"http://www.backbase.com/2006/btl\" xmlns=\"http://www.w3.org/1999/xhtml\" id=\"columnSettingsContextMenu_{{autoid0}}\">"+"<b:menuPopUp id=\"columnSettingsMenuPopUp_{{autoid1}}\">"+"<b:menuPopUpItem label=\"{{lng_generate_report}}\" icon=\"wgg-dataTable-generateReport\" disabled=\"true\">"+"</b:menuPopUpItem>"+"</b:menuPopUp>"+"</b:contextMenu>";
_1.checkboxDef="<input xmlns=\"http://www.w3.org/1999/xhtml\" type=\"checkbox\"/>";
_1.rowCommandsContextMenuDef="<b:contextMenu xmlns:b=\"http://www.backbase.com/2006/btl\" xmlns=\"http://www.w3.org/1999/xhtml\" id=\"rowCommandsContextMenu_{{autoid0}}\">"+"<b:menuPopUp id=\"rowCommandsMenuPopUp_{{autoid1}}\">"+"<b:menuPopUpItem label=\"{{lng_generate_report}}\" icon=\"wgg-dataTable-generateReport\" disabled=\"true\">"+"</b:menuPopUpItem>"+"<b:menuPopUpItem label=\"{{lng_edit_record}}\" icon=\"wgg-dataTable-editRecord\" disabled=\"true\">"+"</b:menuPopUpItem>"+"<b:menuPopUpItem label=\"{{lng_move_record_location}}\" icon=\"wgg-dataTable-moveRecordLocation\" disabled=\"true\">"+"</b:menuPopUpItem>"+"<b:menuPopUpItem label=\"{{lng_zoom_to_record_location}}\" icon=\"wgg-dataTable-zoomToRecordLocation\">"+"</b:menuPopUpItem>"+"<b:menuPopUpItem label=\"{{lng_copy_record_to_clipboard}}\" icon=\"wgg-dataTable-copyRecordToClipboard\" disabled=\"{{copy_record_to_clipboard_disabled}}\">"+"</b:menuPopUpItem>"+"<b:menuPopUpItem label=\"{{lng_use_for_catchment_area}}\" icon=\"wgg-dataTable-useForCatchmentArea\">"+"</b:menuPopUpItem>"+"<b:menuPopUpItem label=\"{{lng_use_for_selection}}\" icon=\"wgg-dataTable-useForSelection\">"+"</b:menuPopUpItem>"+"</b:menuPopUp>"+"</b:contextMenu>";
_1.columnAggregationDivDef="<div xmlns=\"http://www.w3.org/1999/xhtml\" id=\"aggrDiv_{{autoid0}}\" class=\"wgg-dataTable-columnAggregationDiv\">{{aggregate}}</div>";
_1.columnAggregationDivIdRegExp=/^aggrDiv_/;
_1.dummyDataGridColLabelRegExp=/^dummyGridCol_/;
_1.debugInterface=null;
try{
if(WGGDataTypeUtils.isObject(WGGAbstractDebugInterface.gDebugInterface)){
_1.debugInterface=WGGAbstractDebugInterface.gDebugInterface;
}else{
throw "WGGAbstractDebugInterface.gDebugInterface probably undefined";
}
}
catch(e){
_1.debugInterface=new WGGNullDebugInterface();
}
_1.origColumnWidthHashMap=null;
_1.lastSelectedItems=null;
_1.eventsManagers=[];
_1.__onGenerateReportStarted=function __generateReportStarted(){
var _9=this.getSelectedRecordId();
alert("generating report started: "+_9);
};
_1.__onEditRecordStarted=function __editRecordStarted(){
var _a=this.getSelectedRecordId();
alert("editing record started: "+_a);
};
_1.__onMoveRecordStarted=function __moveRecordStarted(){
var _b=this.getSelectedRecordId();
alert("moving record started: "+_b);
};
_1.__onUseForCatchmentAreaStarted=function __useForCatchmentAreaStarted(){
var _c=this.getSelectedRecordId();
alert("using record for catchment area started: "+_c);
};
_1.__onUseForSelectionStarted=function __useForSelectionStarted(){
var _d=this.getSelectedRecordId();
alert("using record for selection started: "+_d);
};
_1.__onZoomToRecordStarted=function __zoomToRecordStarted(){
var _e=this.getSelectedRecordIds();
alert("zooming to the record started: "+_e);
};
_1.__onCopyRecordToClipboard=function __copyRecordToClipboard(){
var _f=this.bbElement.getProperty("selectedItems");
if(_f.length==0){
return;
}
var _10=this.bbElement.getProperty("dataSource");
var _11=this.getSelectedRecordIds(_f);
var txt="";
for(var i=0;i<_11.length;i++){
var _14=_f[i];
var _15=_11[i];
var _16=this.dataLayer.getDataFields();
for(var j=0;j<_16.length;j++){
var _18=_16[j];
if(_18==null){
continue;
}
if(j>0){
txt+="\t";
}
var _19=_18.name;
if(_18.isIdentifier()){
_19="@"+_19;
}
txt+=btl.dataSource.getValue(_10,_15,_19);
}
txt+=WGGStringUtils.LINE_SEP;
}
var _1a=WGGGUIUtils.copyToClipboard(txt);
};
_1.__onBbElementLayoutUpdated=function __bbElementLayoutUpdated(){
if(this.origColumnWidthHashMap!=null){
return;
}
var _1b=this.getColumnIndexById(this.dummyDataGridColLabelRegExp);
if(_1b!=-1){
this.bbElement.setColumnSize(_1b,"0px");
}
var _1c=this.bbElement.getProperty("columns");
this.origColumnWidthHashMap=new WGGHashMap();
for(var i=0;i<_1c.length;i++){
var _1e=_1c[i];
var _1f=_1e.getAttribute("label");
var _20=WGGGUIUtils.getDimension(_1e.viewNode);
if(this.isDummyColumn(_1e)){
_20.width=0;
}
this.origColumnWidthHashMap.put(_1f,_20.width);
}
this.debugInterface.debug(this.origColumnWidthHashMap);
};
_1.__onBbElementPageRefreshed=function __bbElementPageRefreshed(){
this.refreshAggregations();
};
_1.__onBbElementMouseDown=function __bbElementClicked(){
var evt=arguments[0];
var _22=evt.target;
if(evt.button==2){
this.lastSelectedItems=this.bbElement.getProperty("selectedItems");
}
};
_1.__onBbElementContextMenu=function __bbElementContextMenu(){
var evt=arguments[0];
var _24=evt.target;
if(evt.button==2){
if(this.lastSelectedItems!=null){
this.bbElement.setProperty("selectedItems",this.lastSelectedItems);
}
}
};
_1.__onColGroupContextMenu=function __colGroupContextMenu(){
var evt=arguments[0];
var _26=evt.currentTarget;
var _27=_26.getProperty("columns");
var _28=WGGBackbaseGUIUtils.getChildNodes(_26,"contextMenu",/columnSettingsContextMenu_/,true)[0];
var _29=_28.getProperty("firstChild");
while(_29.hasChildNodes()){
_29.removeChild(_29.getProperty("firstChild"));
}
var _2a=[];
for(var j=0;j<_27.length;j++){
var _2c=_27[j];
_2a[_2c.getProperty("index")]=_2c;
}
for(var j=0;j<_2a.length;j++){
var _2c=_2a[j];
var _2d=_2c.getAttribute("label");
if(this.isDummyColumn(_2c)){
continue;
}
var _2e=_2c.getProperty("hidden");
var _2f=bb.document.createElementNS(btl.namespaceURI,"menuPopUpItem");
var _30=bb.document.createElement("div");
bb.command.setStyle(_30,{"white-space":"nowrap"});
var _31=bb.command.create(this.checkboxDef,_30,"firstChild");
if(WGGBrowserDetector.IS_IE){
_31.viewNode.checked=((!_2e)?true:false);
}else{
_31.setAttribute("checked",((!_2e)?"checked":""));
}
_31.colGroupColRef=_2c;
var _32=new WGGBackbaseEventsManager(this,_31);
_32.addEventListenersMap({"click":this.__onCheckBoxClicked},false);
this.eventsManagers.push(_32);
_30.appendChild(bb.document.createTextNode(_2d));
_2f.appendChild(_30);
_29.appendChild(_2f);
}
};
_1.__onCheckBoxClicked=function __checkBoxClicked(){
var evt=arguments[0];
var _34=evt.target;
if(!_34.colGroupColRef){
return;
}
if(_34.colGroupColRef.getProperty("hidden")==true){
_34.colGroupColRef.show();
}else{
_34.colGroupColRef.hide();
}
this.postLayoutUpdated();
};
_1.getSelectedRecordId=function(_35){
var _36=(_35)?_35:this.bbElement.getProperty("selectedItems");
if(_36.length==0){
return;
}
return this.bbElement.getRecordId(_36[0]);
};
_1.getSelectedRecordIds=function(_37){
var _38=(_37)?_37:this.bbElement.getProperty("selectedItems");
if(_38.length==0){
return;
}
var ids=[];
for(var i=0;i<_38.length;i++){
ids[i]=this.bbElement.getRecordId(_38[i]);
}
return ids;
};
_1.addRowCommandsContextMenu=function(){
var _3b=new WGGSimpleTemplate(this.rowCommandsContextMenuDef);
var _3c=WGGIdGenerator.getInstance();
_3b.assign(_3c.generateId(),"autoid0");
_3b.assign(_3c.generateId(),"autoid1");
var _3d=this.cfg.getCurrentLngSource();
_3b.assign(_3d.lookupByName(WGGBackbaseDataTable.LNG_GENERATE_REPORT),WGGBackbaseDataTable.LNG_GENERATE_REPORT);
_3b.assign(_3d.lookupByName(WGGBackbaseDataTable.LNG_EDIT_RECORD),WGGBackbaseDataTable.LNG_EDIT_RECORD);
_3b.assign(_3d.lookupByName(WGGBackbaseDataTable.LNG_MOVE_RECORD_LOCATION),WGGBackbaseDataTable.LNG_MOVE_RECORD_LOCATION);
_3b.assign(_3d.lookupByName(WGGBackbaseDataTable.LNG_ZOOM_TO_RECORD_LOCATION),WGGBackbaseDataTable.LNG_ZOOM_TO_RECORD_LOCATION);
_3b.assign(_3d.lookupByName(WGGBackbaseDataTable.LNG_USE_FOR_CATCHMENT_AREA),WGGBackbaseDataTable.LNG_USE_FOR_CATCHMENT_AREA);
_3b.assign(_3d.lookupByName(WGGBackbaseDataTable.LNG_USE_FOR_SELECTION),WGGBackbaseDataTable.LNG_USE_FOR_SELECTION);
_3b.assign(_3d.lookupByName(WGGBackbaseDataTable.LNG_COPY_RECORD_TO_CLIPBOARD),WGGBackbaseDataTable.LNG_COPY_RECORD_TO_CLIPBOARD);
if(!WGGBrowserDetector.IS_IE){
_3b.assign("true","copy_record_to_clipboard_disabled");
}else{
_3b.assign("false","copy_record_to_clipboard_disabled");
}
bb.command.create(_3b.getResult(),this.bbElement,"appendChild");
};
_1.addColumnSettingsContextMenu=function(){
var _3e=this.getColGroup(this.bbElement);
if(_3e==null){
return;
}
var _3f=new WGGSimpleTemplate(this.columnSettingsContextMenuDef);
var _40=WGGIdGenerator.getInstance();
_3f.assign(_40.generateId(),"autoid0");
_3f.assign(_40.generateId(),"autoid1");
bb.command.create(_3f.getResult(),_3e,"firstChild");
};
_1.postLayoutUpdated=function(){
var _41=this.bbElement.getProperty("columns");
var _42=this.bbElement.getProperty("width");
if(_42=="100%"||_42==""||_42=="auto"){
_42=WGGGUIUtils.getDimension(this.bbElement.viewNode).width;
}else{
_42=parseInt(_42);
}
var _43=[];
var _44=0;
for(var i=0;i<_41.length;i++){
var _46=_41[i];
if(_46.getProperty("hidden")==true){
continue;
}
var _47=_46.getAttribute("label");
_43.push(_47);
_44+=this.origColumnWidthHashMap.get(_47);
}
for(var i=0;i<_43.length;i++){
var _47=_43[i];
var _48=this.origColumnWidthHashMap.get(_47);
var _49=Math.ceil(_42/_44*_48);
var _4a=this.getColumnIndexByLabel(_47);
this.bbElement.setColumnSize(_4a,_49+"px");
}
var _4b=WGGHtmlUtils.getElementsByClassName(this.bbElement.viewNode,"div","btl-grid-port");
if(_4b.length==2){
bb.html.setStyle(_4b[0],"width",(_42-20)+"px");
bb.html.setStyle(_4b[1],"width",(_42-20)+"px");
}
};
_1.getColGroup=function(_4c){
if(!bb.instanceOf(_4c,btl.namespaceURI,"dataGrid")){
return null;
}
var _4d=_4c.getProperty("columns");
for(var i=0;i<_4d.length;i++){
var _4f=_4d[i].getProperty("parentNode");
if(!bb.instanceOf(_4f,btl.namespaceURI,"dataGridColGroup")){
continue;
}
return _4f;
}
return null;
};
_1.getColumnByDataField=function(_50){
var _51=this.getColGroup(this.bbElement);
if(_51==null){
return null;
}
var _52=_51.getProperty("columns");
for(var i=0;i<_52.length;i++){
var _54=_52[i];
var _55=_54.getAttribute("dataField");
if(_55==_50.name){
return _54;
}
}
return null;
};
_1.getColumns=function(){
var _56=this.getColGroup(this.bbElement);
if(_56==null){
return null;
}
return _56.getProperty("columns");
};
_1.getColumnIndexByLabel=function(_57){
var _58=this.bbElement.getProperty("columns");
for(var i=0;i<_58.length;i++){
var _5a=_58[i];
var _5b=_5a.getAttribute("label");
if(WGGDataTypeUtils.isRegExp(_57)){
if(_57.exec(_5b)){
return i;
}
}else{
if(_5b==_57){
return i;
}
}
}
return -1;
};
_1.getColumnIndexById=function(id){
var _5d=this.bbElement.getProperty("columns");
for(var i=0;i<_5d.length;i++){
var _5f=_5d[i];
var _60=_5f.getAttribute("id");
if(WGGDataTypeUtils.isRegExp(id)){
if(id.exec(_60)){
return i;
}
}else{
if(_60==id){
return i;
}
}
}
return -1;
};
_1.isDummyColumn=function(_61){
if(_61==null){
return false;
}
var id=_61.getAttribute("id");
if(id==""){
return false;
}
return this.dummyDataGridColLabelRegExp.exec(id);
};
_1.getAggregationDivByColumn=function(_63){
if(_63==null){
return null;
}
var _64=_63.viewNode.childNodes;
for(var i=0;i<_64.length;i++){
var _66=_64[i];
if(_66.tagName.toUpperCase()!="DIV"){
continue;
}
if(this.columnAggregationDivIdRegExp.exec(_66.id)){
return _66;
}
}
return null;
};
_1.generateDataGridURL=function(_67){
if(_67==null){
_67=this.geometry;
}
if(_67==null){
throw "geometry must not be null; dataGrid cannot be loaded without geometry parameter";
}
var _68="";
if(WGGDataTypeUtils.instanceOf(_67,WGGExtent)){
_68="CREATEDATATABLE_BOUNDS";
}else{
throw "geometry of type "+new WGGField(_67).getName()+" not (yet) supported";
}
var url=WGGHtmlUtils.buildURL(this.cfg.getServerRequestHandlerURL(),{"cmd":(_68+",returndatatable"),"activeLayerIdentifier":this.dataLayer.layerIdentifier,"returnDataTable":"true","storeInSession":"true","bounds":_67.toString()});
url=url.replace(/\&/g,"&amp;");
return url;
};
_1.buildDataGridXmlNode=function(_6a,_6b){
if(_6a==null){
return null;
}
if(_6b==null){
return null;
}
var _6c=WGGIdGenerator.getInstance();
var _6d=this.cfg.getCurrentLngSource();
_6a.reset();
_6a.assign(_6c.generateId("dataGrid_"),"dataGridId");
_6a.assign(_6c.generateId("dataSource_"),"dataSourceId");
var url=this.generateDataGridURL();
this.debugInterface.debug(url);
_6a.assign(url,"url");
var _6f="@ID";
_6a.assign(_6f,"identifier");
_6a.assign(_6d.lookupByName(WGGBackbaseDataTable.LNG_DATA_TABLE_COLGROUP_TITLE),WGGBackbaseDataTable.LNG_DATA_TABLE_COLGROUP_TITLE);
if(_6a.hasEmptyPlaceholders()){
throw "template "+_6a.getEmptyTemplate()+" should not contain empty placeholders";
}
this.dataGridXmlNode=bb.xml.parse(_6a.getResult());
};
_1.buildDataFieldXmlNode=function(_70,_71){
if(_70==null){
return;
}
if(_71==null){
return;
}
_70.reset();
var _72="";
if(_71.isIdentifier()){
_72="@"+_71.name;
}else{
_72=_71.name;
}
_70.assign(_71.name,"name");
_70.assign(_72,"select");
if(_70.hasEmptyPlaceholders()){
throw "template "+_70.getEmptyTemplate()+" should not contain empty placeholders";
}
var _73=WGGXmlUtils.selectNodes(this.dataGridXmlNode,"//b:dataSchema[1]",WGGBackbaseNamespaceResolver);
if(WGGDataTypeUtils.isArray(_73)){
_73=_73[0];
}
return bb.command.create(_70.getResult(),_73,"appendChild");
};
_1.buildDataGridColXmlNode=function(_74,_75){
if(_74==null){
return;
}
if(_75==null){
return;
}
var _76=this.cfg.getCurrentLngSource();
_74.reset();
_74.assign((_75.isIdentifier()?"@".concat(_75.name):_75.name),"dataField");
var _77=_75.name;
if(WGGLanguageSource.isCorrectLanguagePlaceholder(_75.name)){
_77=_76.lookupByName(_75.name);
}
_74.assign(_77,WGGBackbaseDataTable.LNG_USECASESPECIFIC__LABEL);
var _78=_75.longTitle;
if(WGGLanguageSource.isCorrectLanguagePlaceholder(_75.longTitle)){
_78=_76.lookupByName(_75.longTitle);
}
if(!_78){
_78=_77;
}
_74.assign(_78,WGGBackbaseDataTable.LNG_USECASESPECIFIC__TITLE);
if(_74.hasEmptyPlaceholders()){
throw "template "+_74.getEmptyTemplate()+" should not contain empty placeholders";
}
var _79=WGGXmlUtils.selectNodes(this.dataGridXmlNode,"//b:dataGridColGroup[1]",WGGBackbaseNamespaceResolver);
if(WGGDataTypeUtils.isArray(_79)){
_79=_79[0];
}
return bb.command.create(_74.getResult(),_79,"appendChild");
};
_1.buildDataGridColDummyXmlNode=function(_7a){
if(_7a==null){
return;
}
var _7b=WGGIdGenerator.getInstance();
_7a.reset();
_7a.assign(_7b.generateId(),"autoid0");
if(_7a.hasEmptyPlaceholders()){
throw "template "+_7a.getEmptyTemplate()+" should not contain empty placeholders";
}
var _7c=WGGXmlUtils.selectNodes(this.dataGridXmlNode,"//b:dataGridColGroup[1]",WGGBackbaseNamespaceResolver);
if(WGGDataTypeUtils.isArray(_7c)){
_7c=_7c[0];
}
return bb.command.create(_7a.getResult(),_7c,"appendChild");
};
_1.initializeBbElement=function(){
this.debugInterface.info("initializeBbElement");
if(this.dataLayer==null){
return;
}
var _7d=this.dataLayer.getDataFields();
if(_7d==null){
return;
}
if(_7d.length==0){
return;
}
var _7e=new WGGSimpleTemplate(this.dataGridDef);
this.debugInterface.info(_7e);
this.buildDataGridXmlNode(_7e,this.dataLayer);
var _7f=new WGGSimpleTemplate(this.dataFieldDef);
var _80=new WGGSimpleTemplate(this.dataGridColDef);
this.debugInterface.info(_7f);
this.debugInterface.info(_80);
for(var i=0;i<_7d.length;i++){
var _82=_7d[i];
this.buildDataFieldXmlNode(_7f,_82);
this.buildDataGridColXmlNode(_80,_82);
}
this.buildDataGridColDummyXmlNode(new WGGSimpleTemplate(this.dataGridColDummyDef));
this.bbElement=bb.command.create(bb.xml.serialize(this.dataGridXmlNode),this.parentDomElement,"appendChild");
var _83=this.bbElement.getProperty("dataSource");
_83.acceptRawData=function(){
if(arguments.length!=2){
throw "number of arguments for dataSource.acceptRawData not sufficient; should be 2 (was "+arguments.length+")";
}
var _84=arguments[0];
var _85=arguments[1];
function getRegExp(){
return /\<(RECORDS)\>(.*)\<\/(RECORDS)\>/g;
};
var _86=getRegExp().exec(_84);
if(!_86){
throw "implementation error: xml document does not contain <RECORDS>...</RECORDS>";
}
_84=_86[0];
var _87=this.typeHandler.unserialize(_84,btl.dataSource.getDataField(this,"identifier"),this);
this.acceptData(_87,_85);
};
};
_1.addFieldAggregationRules=function(){
var _88=this.dataLayer.getDataFields();
for(var i=0;i<_88.length;i++){
var _8a=_88[i];
if(!_8a.options){
continue;
}
var agg=_8a.options["agg"];
if(!agg){
continue;
}
var _8c=WGGDataAggregationUtils[agg]||null;
if(_8c!=null){
this.addAggregationRule(_8a,_8c,WGGDataFormatUtils.RoundDownwardsFormatter());
}
}
};
_1.preInitialize=function(){
this.aggregationRuleHashMap=new WGGHashMap();
};
_1.postInitialize=function(){
var _8d=new WGGBackbaseEventsManager(this,this.bbElement);
_8d.addEventListenersMap({"layoutUpdated":this.__onBbElementLayoutUpdated,"pageRefreshed":this.__onBbElementPageRefreshed,"mousedown":this.__onBbElementMouseDown,"contextmenu":this.__onBbElementContextMenu},false);
this.eventsManagers.push(_8d);
var _8e=WGGBackbaseGUIUtils.getChildNodes(this.bbElement,"contextMenu",/rowCommandsContextMenu_/,true)[0];
var _8f=_8e.getProperty("firstChild");
var _90=_8f.getProperty("menuItems");
for(var i=0;i<_90.length;i++){
var _92=_90[i];
switch(i){
case 0:
aEventsManager=new WGGBackbaseEventsManager(this,_92);
aEventsManager.addEventListenersMap({"click":this.__onGenerateReportStarted},false);
break;
case 1:
aEventsManager=new WGGBackbaseEventsManager(this,_92);
aEventsManager.addEventListenersMap({"click":this.__onEditRecordStarted},false);
break;
case 2:
aEventsManager=new WGGBackbaseEventsManager(this,_92);
aEventsManager.addEventListenersMap({"click":this.__onMoveRecordStarted},false);
break;
case 3:
aEventsManager=new WGGBackbaseEventsManager(this,_92);
aEventsManager.addEventListenersMap({"click":this.__onZoomToRecordStarted},false);
break;
case 4:
aEventsManager=new WGGBackbaseEventsManager(this,_92);
aEventsManager.addEventListenersMap({"click":this.__onCopyRecordToClipboard},false);
break;
case 5:
aEventsManager=new WGGBackbaseEventsManager(this,_92);
aEventsManager.addEventListenersMap({"click":this.__onUseForCatchmentAreaStarted},false);
break;
case 6:
aEventsManager=new WGGBackbaseEventsManager(this,_92);
aEventsManager.addEventListenersMap({"click":this.__onUseForSelectionStarted},false);
break;
}
this.eventsManagers.push(aEventsManager);
}
var _93=this.getColGroup(this.bbElement);
var _94=new WGGBackbaseEventsManager(this,_93);
_94.addEventListenersMap({"contextmenu":this.__onColGroupContextMenu},false);
this.eventsManagers.push(_94);
};
_1.initialize=function(){
this.preInitialize();
this.initializeBbElement();
this.addRowCommandsContextMenu();
this.addColumnSettingsContextMenu();
this.addFieldAggregationRules();
this.postInitialize();
};
_1.update=function(){
this.observerImpl.update.apply(this,arguments);
};
_1.initialize();
return _1;
};
WGGBackbaseDataTable.prototype.refreshAggregations=function(){
this.debugInterface.debug("refreshing aggregations");
var _95=this.bbElement.getProperty("dataSource");
var _96=_95._.oRecords;
var _97=_96.getRecordIds();
var _98=this.dataLayer.getDataFields();
for(var i=0;i<_98.length;i++){
var _9a=_98[i];
if(_9a==null){
continue;
}
if(!this.aggregationRuleHashMap.containsKey(_9a.name)){
continue;
}
var _9b=this.getColumnByDataField(_9a);
if(_9b==null){
continue;
}
var _9c=this.getAggregationDivByColumn(_9b);
if(_9c==null){
continue;
}
while(_9c.hasChildNodes()){
_9c.removeChild(_9c.childNodes[_9c.childNodes.length-1]);
}
var _9d=_9c.parentNode;
if(_9d.childNodes[_9d.childNodes.length-1]!=_9c){
var tmp=_9d.removeChild(_9c);
_9d.appendChild(tmp);
}
var _9f=[];
for(var j=0;j<_97.length;j++){
var _a1=_97[j];
var _a2=btl.dataSource.getValue(_95,_a1,_9a.name);
_9f.push(_a2);
}
var _a3=this.aggregationRuleHashMap.get(_9a.name)[0];
var _a4=_a3.apply(null,_9f);
var _a5=this.aggregationRuleHashMap.get(_9a.name)[1];
var _a6=_a4;
if(_a5!=null){
_a6=_a5.format.apply(_a5,[_a4]);
}
_9c.appendChild(document.createTextNode(_a6));
}
};
WGGBackbaseDataTable.prototype.addAggregationRule=function(_a7,_a8,_a9){
if(_a7==null){
return false;
}
if(!this.dataLayer.hasDataField(_a7.name)){
return false;
}
if(_a8==null){
return false;
}
if(!WGGDataTypeUtils.isFunction(_a8)){
return false;
}
this.debugInterface.debug("adding aggregation rule for dataField "+_a7.name);
this.aggregationRuleHashMap.put(_a7.name,[_a8,_a9]);
var _aa=this.getColumnByDataField(_a7);
if(_aa==null){
return false;
}
var _ab=this.getAggregationDivByColumn(_aa);
if(!_ab){
this.debugInterface.debug("aggregation div not yet available; needs to be created");
var _ac=new WGGSimpleTemplate(this.columnAggregationDivDef);
var _ad=WGGIdGenerator.getInstance();
_ac.assign(_ad.generateId(),"autoid0");
_ac.assign("","aggregate");
var _ae=bb.html.createElementFromString(_ac.getResult());
var _af=_aa.viewNode;
_af.appendChild(_ae);
}
this.refreshAggregations();
return true;
};
WGGBackbaseDataTable.LNG_DATA_TABLE_COLGROUP_TITLE="lng_data_table_colgroup_title";
WGGBackbaseDataTable.LNG_USECASESPECIFIC__LABEL="lng_usecasespecific__label";
WGGBackbaseDataTable.LNG_USECASESPECIFIC__TITLE="lng_usecasespecific__title";
WGGBackbaseDataTable.LNG_GENERATE_REPORT="lng_generate_report";
WGGBackbaseDataTable.LNG_EDIT_RECORD="lng_edit_record";
WGGBackbaseDataTable.LNG_MOVE_RECORD_LOCATION="lng_move_record_location";
WGGBackbaseDataTable.LNG_USE_FOR_CATCHMENT_AREA="lng_use_for_catchment_area";
WGGBackbaseDataTable.LNG_USE_FOR_SELECTION="lng_use_for_selection";
WGGBackbaseDataTable.LNG_ZOOM_TO_RECORD_LOCATION="lng_zoom_to_record_location";
WGGBackbaseDataTable.LNG_COPY_RECORD_TO_CLIPBOARD="lng_copy_record_to_clipboard";
WGGBackbaseDataTable.LNG_DATA_TABLE_COLGROUP_TITLE="lng_data_table_colgroup_title";


/**********WGGBackbaseDataTableContainer.js.tmp**********/
function WGGBackbaseDataTableContainer(){
var _1=JSINER.extend(this,"WGGSubject");
var _2=null;
var _3=null;
var _4=null;
var _5=null;
switch(arguments.length){
case 0:
return;
case 4:
_2=arguments[0];
_3=arguments[1];
_4=arguments[2];
_5=arguments[3];
if(_2==null){
throw "cfg must not be null";
}
if(!WGGDataTypeUtils.instanceOf(_2,WGGWigeowebCfg)){
throw "cfg should be instance of WGGWigeowebCfg";
}
if(_3==null){
throw "dataLayer must not be null";
}
if(!WGGDataTypeUtils.isArray(_3)){
throw "dataLayers should be an Array";
}
if(_3.length==0){
throw "dataLayers.length must not be 0";
}
var _6=_3[0];
if(!WGGDataTypeUtils.instanceOf(_6,WGGAbstractDataLayer)){
throw "dataLayer should be instance of WGGDataLayerLeaf";
}
if(_4==null){
throw "parentDomElement must not be null";
}
if(_5==null){
throw "geometry must not be null";
}
break;
default:
throw "count of arguments not sufficient to initialize this widget (WGGBackbaseDataTableContainer)";
}
var _7=_1;
_1.cfg=_2;
_1.dataLayers=_3;
_1.parentDomElement=_4;
_1.geometry=_5;
_1.observerImpl=new function MyObserver(){
var _8=JSINER.extend(this,"WGGObserver");
_8.update=function(){
var _9=[];
for(var i=0;i<arguments.length;i++){
_9.push(arguments[i]);
}
_7.debugInterface.warn(_9);
};
return _8;
};
_1.outerTabBoxDef="<b:tabBox class=\"wgg-dataTableContainer-outerTabBox\" xmlns:b=\"http://www.backbase.com/2006/btl\"></b:tabBox>";
_1.innerTabBoxDef="<b:tabBox class=\"wgg-dataTableContainer-innerTabBox\" xmlns:b=\"http://www.backbase.com/2006/btl\"></b:tabBox>";
_1.allDataLayerLeafsTabDef="<b:tab xmlns:b=\"http://www.backbase.com/2006/btl\" label=\"{{lng_usecasespecific__layer_name}}\" title=\"{{lng_usecasespecific__layer_title}}\" id=\"{{autoid0}}\" icon=\"{{css_class_name}}\"></b:tab>";
_1.visibleDataLayerLeafsTabDef="<b:tab xmlns:b=\"http://www.backbase.com/2006/btl\" label=\"{{lng_usecasespecific__layer_name}}\" title=\"{{lng_usecasespecific__layer_title}}\" id=\"{{autoid0}}\" icon=\"{{css_class_name}}\"></b:tab>";
_1.certainDataLayerGroupTabDef="<b:tab xmlns:b=\"http://www.backbase.com/2006/btl\" label=\"{{lng_usecasespecific__layer_name}}\" title=\"{{lng_usecasespecific__layer_title}}\" id=\"{{autoid0}}\" icon=\"{{css_class_name}}\"></b:tab>";
_1.certainDataLayerLeafTabDef="<b:tab xmlns:b=\"http://www.backbase.com/2006/btl\" label=\"{{lng_usecasespecific__layer_name}}\" title=\"{{lng_usecasespecific__layer_title}}\" id=\"{{autoid0}}\" icon=\"{{css_class_name}}\"></b:tab>";
_1.dataTableToolBarDef="<b:toolBar xmlns:b=\"http://www.backbase.com/2006/btl\" id=\"dataTableToolBar_{{autoid0}}\">"+"<b:toolBarButton icon=\"wgg-dataTableContainer-reset\" disabled=\"false\">{{lng_data_table_reset}}</b:toolBarButton>"+"<b:toolBarButton icon=\"wgg-dataTableContainer-excelreport\" disabled=\"false\">{{lng_data_table_excelreport}}</b:toolBarButton>"+"<b:toolBarButton icon=\"wgg-dataTableContainer-excelreport\" disabled=\"false\">{{lng_data_table_excelreport_all}}</b:toolBarButton>"+"<b:toolBarButton icon=\"wgg-dataTableContainer-resetselection\" disabled=\"false\">{{lng_data_table_resetselection}}</b:toolBarButton>"+"</b:toolBar>";
_1.defTemplates=null;
_1.bbElement=null;
_1.debugInterface=null;
try{
if(WGGDataTypeUtils.isObject(WGGAbstractDebugInterface.gDebugInterface)){
_1.debugInterface=WGGAbstractDebugInterface.gDebugInterface;
}else{
throw "WGGAbstractDebugInterface.gDebugInterface probably undefined";
}
}
catch(e){
_1.debugInterface=new WGGNullDebugInterface();
}
_1.eventsManagers=[];
_1.__onTabSelected=function __tabSelected(){
var _b=arguments[0];
var _c=_b.target;
if(_c.modelNode.tagName!="b:tab"){
return;
}
var _d=this.cfg.getModuleContainer();
var _e=_d.getModuleByName("MODULE_LAYER");
var _f=_d.getCmdDef("MODULE_LAYER.ACTIVATELAYER");
_f.execute(_e,[_c._._dataLayerRef.layerIdentifier]);
if(!_c._._dataLayerRef.hasChildren()){
if(!_c._._dataTableRef){
var _10=new WGGBackbaseDataTable(this.cfg,_c,_c._._dataLayerRef,this.geometry);
_c._._dataTableRef=_10;
}
}
};
_1.__onDataTableToolBarResetButtonClicked=function __dataTableToolBarResetButtonClicked(){
var evt=arguments[0];
var _12=evt.target;
var _13=_12.getProperty("parentNode");
var _14=this.cfg.getModuleContainer();
var _15=_14.getModuleByName("MODULE_DATALAYOUT");
var _16=_14.getCmdDef("MODULE_DATALAYOUT.RESETDATATABLELAYOUT");
_16.execute(_15,[_13._._dataLayerRef.layerIdentifier]);
};
_1.__onDataTableToolBarExcelExportButtonClicked=function __dataTableToolBarExcelExportButtonClicked(){
alert("not yet implemented");
};
_1.__onDataTableToolBarSelectRemoveButtonClicked=function __dataTableToolBarSelectRemoveButtonClicked(){
alert("not yet implemented");
};
_1.insertLayerTabBox=function(_17,_18){
var _19=(_17==this.parentDomElement);
var _1a=_19?this.outerTabBoxDef:this.innerTabBoxDef;
var _1b=bb.command.create(_1a,_17,"appendChild");
if(this.bbElement==null){
this.bbElement=_1b;
}
var _1c=this.cfg.getCurrentLngSource();
var _1d=WGGIdGenerator.getInstance();
for(var i=0;i<_18.length;i++){
var _1f=_18[i];
if(!_1f.hasChildren()){
if(_1f.dataFields==null){
continue;
}
}
var _20=null;
var _21="";
if(_1f.hasChildren()){
_20=this.certainDataLayerGroupTabDef;
_21=["wgg-dataTableContainer-concreteLayerGroupView-visible","wgg-dataTableContainer-concreteLayerGroupView-invisible"];
}else{
if(WGGDataTypeUtils.instanceOf(_1f,WGGSpecialAllDataLayerLeaf)){
_20=this.allDataLayerLeafsTabDef;
_21=["wgg-dataTableContainer-allLayersView-visible","wgg-dataTableContainer-allLayersView-invvisible"];
}else{
if(WGGDataTypeUtils.instanceOf(_1f,WGGSpecialVisibleDataLayerLeaf)){
_20=this.visibleDataLayerLeafsTabDef;
_21=["wgg-dataTableContainer-visibleLayersView-visible","wgg-dataTableContainer-visibleLayersView-invisible"];
}else{
if(WGGDataTypeUtils.instanceOf(_1f,WGGDataLayerLeaf)){
_20=this.certainDataLayerLeafTabDef;
_21=["wgg-dataTableContainer-concreteLayerLeafView-visible","wgg-dataTableContainer-concreteLayerLeafView-invisible"];
}
}
}
}
var _22=this.defTemplates.get(_20);
_22.reset();
_22.assign(_1f.layerIdentifier+_1d.generateId(),"autoid0");
var _23=_1f.lngName;
if(WGGLanguageSource.isCorrectLanguagePlaceholder(_1f.lngName)){
_23=_1c.lookupByName(_1f.lngName);
}
if(!_23){
_23=_1f.layerIdentifier;
}
_22.assign(_23,WGGBackbaseDataTableContainer.LNG_USECASESPECIFIC__LAYER_NAME);
var _24=null;
if(_1f.hasOption("longTitle")){
_24=_1f.options["longTitle"];
if(WGGLanguageSource.isCorrectLanguagePlaceholder(_24)){
_24=_1c.lookupByName(_24);
}
}
if(!_24){
_24=_23;
}
_22.assign(_24,WGGBackbaseDataTableContainer.LNG_USECASESPECIFIC__LAYER_TITLE);
var _25=_1f.getSymbology("visibility");
var _26=true;
if(WGGDataTypeUtils.isArray(_25)){
if(_25.length==2){
_22.assign(_25[0],"css_class_name");
_26=false;
}
}
if(_26){
_22.assign(_21[0],"css_class_name");
}
var _20=_22.getResult();
var _27=bb.command.create(_20,_1b,"appendChild");
_27._._dataLayerRef=_1f;
if(_1f.hasChildren()){
this.insertLayerTabBox(_27,_1f.getChildren());
}else{
this.addDataTableToolBar(_27,_1f);
}
}
};
_1.addDataTableToolBar=function(_28,_29){
var _2a=this.defTemplates.get(this.dataTableToolBarDef);
if(_2a==null){
return;
}
var _2b=WGGIdGenerator.getInstance();
_2a.reset();
_2a.assign(_2b.generateId(),"autoid0");
_2a.assign(this.cfg.getCurrentLngSource().lookupByName(WGGBackbaseDataTableContainer.LNG_DATA_TABLE_RESET),WGGBackbaseDataTableContainer.LNG_DATA_TABLE_RESET);
_2a.assign(this.cfg.getCurrentLngSource().lookupByName(WGGBackbaseDataTableContainer.LNG_DATA_TABLE_EXCELREPORT),WGGBackbaseDataTableContainer.LNG_DATA_TABLE_EXCELREPORT);
_2a.assign(this.cfg.getCurrentLngSource().lookupByName(WGGBackbaseDataTableContainer.LNG_DATA_TABLE_EXCELREPORT_ALL),WGGBackbaseDataTableContainer.LNG_DATA_TABLE_EXCELREPORT_ALL);
_2a.assign(this.cfg.getCurrentLngSource().lookupByName(WGGBackbaseDataTableContainer.LNG_DATA_TABLE_RESETSELECTION),WGGBackbaseDataTableContainer.LNG_DATA_TABLE_RESETSELECTION);
var _2c=bb.command.create(_2a.getResult(),_28,"appendChild");
_2c._._dataLayerRef=_29;
};
_1.preInitialize=function(){
this.defTemplates=new WGGHashMap();
var _2d=new WGGSimpleTemplate(this.allDataLayerLeafsTabDef);
_2d.assign(this.cfg.getCurrentLngSource().lookupByName(WGGBackbaseDataTableContainer.LNG_ALL_LAYER),WGGBackbaseDataTableContainer.LNG_ALL_LAYER);
var _2e=new WGGSimpleTemplate(this.visibleDataLayerLeafsTabDef);
_2e.assign(this.cfg.getCurrentLngSource().lookupByName(WGGBackbaseDataTableContainer.LNG_VISIBLE_LAYER),WGGBackbaseDataTableContainer.LNG_VISIBLE_LAYER);
var _2f=new WGGSimpleTemplate(this.certainDataLayerGroupTabDef);
var _30=new WGGSimpleTemplate(this.certainDataLayerGroupTabDef);
var _31=new WGGSimpleTemplate(this.dataTableToolBarDef);
this.defTemplates.put(this.allDataLayerLeafsTabDef,_2d);
this.defTemplates.put(this.visibleDataLayerLeafsTabDef,_2e);
this.defTemplates.put(this.certainDataLayerGroupTabDef,_2f);
this.defTemplates.put(this.certainDataLayerLeafTabDef,_30);
this.defTemplates.put(this.dataTableToolBarDef,_31);
};
_1.postInitialize=function(){
var _32=WGGBackbaseGUIUtils.getChildNodes(this.bbElement,"tab",null,true);
if(_32==null){
return;
}
for(var i=0;i<_32.length;i++){
var tab=_32[i];
var _35=new WGGBackbaseEventsManager(this,tab);
_35.addEventListenersMap({"select":this.__onTabSelected},false);
this.eventsManagers.push(_35);
}
var _36=WGGBackbaseGUIUtils.getChildNodes(this.bbElement,"toolBar",/dataTableToolBar_/,true);
if(_36==null){
return;
}
for(var i=0;i<_36.length;i++){
var _37=_36[i];
var _38=_37.getProperty("childNodes");
for(var j=0;j<_38.length;j++){
var _3a=_38[j];
switch(j){
case 0:
var _3b=new WGGBackbaseEventsManager(this,_3a);
_3b.addEventListener("click",this.__onDataTableToolBarResetButtonClicked,false);
this.eventsManagers.push(_3b);
break;
case 1:
var _3b=new WGGBackbaseEventsManager(this,_3a);
_3b.addEventListener("click",this.__onDataTableToolBarExcelExportButtonClicked,false);
this.eventsManagers.push(_3b);
break;
case 2:
var _3b=new WGGBackbaseEventsManager(this,_3a);
_3b.addEventListener("click",this.__onDataTableToolBarSelectRemoveButtonClicked,false);
this.eventsManagers.push(_3b);
break;
}
}
}
};
_1.initializeBbElement=function(){
this.insertLayerTabBox(this.parentDomElement,this.dataLayers);
};
_1.initialize=function(){
this.preInitialize();
this.initializeBbElement();
this.postInitialize();
};
_1.update=function(){
this.observerImpl.update.apply(this,arguments);
};
if(_1.parentDomElement!=null){
_1.initialize();
}
return _1;
};
WGGBackbaseDataTableContainer.prototype.getActiveLayer=function(_3c){
if(_3c==null){
_3c=this.bbElement;
}
var _3d=_3c.getProperty("childNodes");
if(_3d==null){
return null;
}
var _3e=null;
for(var i=0;i<_3d.length;i++){
var _40=_3d[i];
if(bb.instanceOf(_40,btl.namespaceURI,"tab")){
var _41=WGGBackbaseGUIUtils.getChildNodes(_40,"tab",null,true);
var _42=(_41==null||_41.length==0);
if(_42&&_40.getProperty("selected")){
_3e=_40._._dataLayerRef;
break;
}
}
if(_3e==null){
var _43=this.getActiveLayer(_40);
if(_43!=null){
_3e=_43;
}
}
}
return _3e;
};
WGGBackbaseDataTableContainer.LNG_USECASESPECIFIC__LAYER_NAME="lng_usecasespecific__layer_name";
WGGBackbaseDataTableContainer.LNG_USECASESPECIFIC__LAYER_TITLE="lng_usecasespecific__layer_title";
WGGBackbaseDataTableContainer.LNG_DATA_TABLE_RESET="lng_data_table_reset";
WGGBackbaseDataTableContainer.LNG_DATA_TABLE_EXCELREPORT="lng_data_table_excelreport";
WGGBackbaseDataTableContainer.LNG_DATA_TABLE_EXCELREPORT_ALL="lng_data_table_excelreport_all";
WGGBackbaseDataTableContainer.LNG_DATA_TABLE_RESETSELECTION="lng_data_table_resetselection";
WGGBackbaseDataTableContainer.LNG_ALL_LAYER="lng_all_layer";
WGGBackbaseDataTableContainer.LNG_VISIBLE_LAYER="lng_visible_layer";


/**********WGGBackbaseDetailBox.js.tmp**********/
function WGGBackbaseDetailBox(_1,_2,_3){
var _4=JSINER.extend(this,"WGGAbstractDetailBox");
_4.app=_1;
_4.domElement=_2;
_4.nativeBox=null;
_4.eventController=_3;
_4.initialize();
return _4;
};
WGGBackbaseDetailBox.prototype.initialize=function(){
if(this.domElement!=null){
if(this.domElement.controller||this.domElement._){
this.nativeBox=this.domElement._?this.domElement:this.domElement.controller;
this.nativeBox.wggNextDoorApp=this.app;
}
}
};
WGGBackbaseDetailBox.prototype.update=function(_5,_6,_7){
var _8=null;
if(_7!=null){
if(WGGDataTypeUtils.isFunction(_7.getElementsByTagName)){
}else{
_8=[this.app.getModel().getLocationById(_7)];
}
}
switch(_6){
case "show":
if(!this.nativeBox.getProperty("open")){
this.nativeBox.open();
}
if(_8!=null){
for(var i=0;i<_8.length;i++){
var _a=_8[i];
var _b=bb.evaluateSmart("text()",this.nativeBox);
if(_b!=null){
this.nativeBox.removeChild(_b);
}
var _c=bb.document.createTextNode(_a.toString());
this.nativeBox.appendChild(_c);
}
}
break;
default:
}
};


/**********WGGBackbaseEventsManager.js.tmp**********/
function WGGBackbaseEventsManager(_1,_2){
var _3=JSINER.extend(this,"WGGEventsManager");
_3.initialize(_1);
_3.bbObject=_2;
return _3;
};
WGGBackbaseEventsManager.prototype.addEventListener=function(){
this.debugInterface.debug("WGGBackbaseEventsManager.prototype.addEventListener");
if(arguments==null){
throw "arguments must not be null";
}
if(arguments.length!=3){
throw "arguments.length should be 3; see backbase specification for further details about addEventListener method";
}
var _4=arguments[0];
if(!WGGDataTypeUtils.isString(_4)){
throw "type should be a String object";
}
var _5=arguments[1];
if(!WGGDataTypeUtils.isFunction(_5)){
throw "handler should be a Function object";
}
var _6=arguments[2];
if(!WGGDataTypeUtils.isBoolean(_6)){
throw "useCapture should be a Boolean object";
}
var _7=this;
this.bbObject.addEventListener(_4,function(){
var _8=null;
var _9=new WGGMethod(_5).getName();
try{
if(_7.handlerObject!=null&&_9!=null&&_9!=""){
for(var _a in _7.handlerObject){
var _b=_7.handlerObject[_a];
if(typeof _b!="function"){
continue;
}
var _c=new WGGMethod(_b);
var _d=_c.getName();
if(_d==null||_d==""){
continue;
}
if(_d!=_9){
continue;
}
_8=_b;
break;
}
}
}
catch(e){
_7.debugInterface.debug("Exception thrown while detecting a new implementation of the handler ("+_4+")");
}
finally{
(_8||_5).apply(_7.handlerObject,arguments);
}
},_6);
this.debugInterface.debug("Listener '"+_4+"' registered for '"+this.bbObject.modelNode.nodeName+"'."+"The handler object is of type '"+new WGGField(this.handlerObject).getType()+"'.");
return true;
};
WGGBackbaseEventsManager.prototype.addEventListenersMap=function(_e,_f){
this.debugInterface.debug("WGGBackbaseEventsManager.prototype.addEventListenersMap");
if(_e==null){
return false;
}
for(var _10 in _e){
this.debugInterface.debug("..evtName: "+_10);
var _11=_e[_10];
if(WGGDataTypeUtils.isString(_11)){
this.debugInterface.debug("..evtHandlerFunction is String");
if(this.handlerObject==null){
this.debugInterface.debug("..this.handlerObject is null --> continue");
continue;
}
if(!this.handlerObject[_11]){
this.debugInterface.debug("..this.handlerObject["+_11+"] is undefined --> continue");
continue;
}
_11=this.handlerObject[_11];
this.debugInterface.info("evtHandlerFunction found");
}else{
if(WGGDataTypeUtils.isFunction(_11)){
}else{
throw "handler function associated with event "+_10+" is neither String (name of the Function) nor Function object";
}
}
this.addEventListener(_10,_11,_f);
}
};


/**********WGGBackbaseFrame.js.tmp**********/
function WGGBackbaseFrame(){
var _1=null;
var _2=null;
var _3=null;
var _4=null;
var _5=null;
var _6=null;
var _7=null;
switch(arguments.length){
case 0:
return;
case 7:
_1=arguments[0];
_2=arguments[1];
_3=arguments[2];
_4=arguments[3];
_5=arguments[4];
_6=arguments[5];
_7=arguments[6];
if(_1==null){
throw "cfg must not be null";
}
if(!WGGDataTypeUtils.instanceOf(_1,WGGWigeowebCfg)){
throw "cfg should be instance of WGGWigeowebCfg";
}
if(_2==null){
throw "parentDomElement must not be null";
}
if(_5!=null){
if(!WGGDataTypeUtils.isNumeric(_5)){
throw "buttonFlags should be numeric (was "+_5+")";
}
}
break;
default:
throw "count of arguments not sufficient to initialize this widget (WGGBackbaseClassificationForm)";
}
this.bbElement=null;
this.cfg=_1;
this.parentDomElement=_2;
this.label=_3;
this.cssClassName=_4;
this.buttonFlags=_5;
this.position=_6;
this.dimension=_7;
this.windowDef="<b:window xmlns:b=\"http://www.backbase.com/2006/btl\" id=\"window_{{autoid0}}\" label=\"{{lng_usecasespecific__label}}\" icon=\"{{css_class_name}}\" top=\"30px\" left=\"80px\" buttons=\"{{buttons}}\">"+"</b:window>";
this.debugInterface=null;
try{
if(WGGDataTypeUtils.isObject(WGGAbstractDebugInterface.gDebugInterface)){
this.debugInterface=WGGAbstractDebugInterface.gDebugInterface;
}else{
throw "WGGAbstractDebugInterface.gDebugInterface probably undefined";
}
}
catch(e){
this.debugInterface=new WGGNullDebugInterface();
}
this.eventsManagers=[];
this.__onWindowDragEnd=function __windowDragEnd(){
var _8=arguments[0];
var _9=_8.target;
var _a=_9.getProperty("parentNode");
if(!bb.instanceOf(_a,btl.namespaceURI,"windowArea")){
return;
}
var _b=WGGBackbaseGUIUtils.getChildNodes(_a,"taskBar",null,true);
if(_b==null){
return;
}
if(_b.length==0){
return;
}
_b=_b[0];
var _c=WGGGUIUtils.getDimension(_b.viewNode).height;
var _d=WGGGUIUtils.getRelativePosition(_9.viewNode).top;
if(_d<_c){
_9.viewNode.style.top=_c+"px";
}
};
this.__onWindowResizeEnd=function __windowResizeEnd(){
var _e=arguments[0];
var _f=_e.target;
var _10=_e.viewTarget;
var _11=_f.getProperty("parentNode");
if(!bb.instanceOf(_11,btl.namespaceURI,"windowArea")){
return;
}
var _12=WGGBackbaseGUIUtils.getChildNodes(_11,"taskBar",null,true);
if(_12==null){
return;
}
if(_12.length==0){
return;
}
_12=_12[0];
var _13=WGGGUIUtils.getDimension(_12.viewNode).height;
if(_10){
var _14=WGGGUIUtils.getRelativePosition(_10).top;
if(_14<_13){
btl.resize.cancelResize();
btl.resize.stopAndClean();
_f.viewNode.style.top=_13+"px";
}
}
};
this.isMaximizeable=function(){
if(this.buttonFlags==null){
return true;
}
return this.buttonFlags&4;
};
this.isMinimizeable=function(){
if(this.buttonFlags==null){
return true;
}
return this.buttonFlags&2;
};
this.isCloseable=function(){
if(this.buttonFlags==null){
return true;
}
return this.buttonFlags&1;
};
this.initializeBbElement=function(){
this.debugInterface.info("initializeBbElement");
var _15=this.cfg.getCurrentLngSource();
var _16=WGGIdGenerator.getInstance();
var _17=new WGGSimpleTemplate(this.windowDef);
_17.assign(_16.generateId(),"autoid0");
_17.assign(this.label,WGGBackbaseFrame.LNG_USECASESPECIFIC__LABEL);
_17.assign(this.cssClassName,"css_class_name");
var _18="";
if(this.isCloseable()){
_18+=" close";
}
if(this.isMaximizeable()){
_18+=" maximize";
}
if(this.isMinimizeable()){
_18+=" minimize";
}
_17.assign(WGGStringUtils.trim(_18),"buttons");
this.bbElement=bb.command.create(_17.getResult(),this.parentDomElement,"appendChild");
if(this.position!=null){
if(this.position["top"]){
this.bbElement.setAttribute("top",this.position["top"]);
}
if(this.position["left"]){
this.bbElement.setAttribute("left",this.position["left"]);
}
}
if(this.dimension!=null){
if(this.dimension["width"]){
this.bbElement.setAttribute("width",this.dimension["width"]);
}
if(this.dimension["height"]){
this.bbElement.setAttribute("height",this.dimension["height"]);
}
}
};
this.preInitialize=function(){
};
this.postInitialize=function(){
var _19=new WGGBackbaseEventsManager(this,this.bbElement);
_19.addEventListenersMap({"dragEnd":this.__onWindowDragEnd,"resizeEnd":this.__onWindowResizeEnd},false);
this.eventsManagers.push(_19);
};
this.initialize=function(){
this.preInitialize();
this.initializeBbElement();
this.postInitialize();
};
this.initialize();
};
WGGBackbaseFrame.prototype.addComponent=function(_1a){
if(bbElement==null){
return;
}
this.bbElement.appendChild(_1a);
};
WGGBackbaseFrame.LNG_USECASESPECIFIC__LABEL="lng_usecasespecific__label";


/**********WGGBackbaseFrameArea.js.tmp**********/
function WGGBackbaseFrameArea(_1,_2){
this.bbElement=null;
this.cfg=_1;
this.parentDomElement=_2;
this.windowAreaDef="<b:windowArea xmlns:b=\"http://www.backbase.com/2006/btl\" id=\"windowArea_{{autoid0}}\" height=\"100%\" width=\"100%\" class=\"wgg-frame-area\"></b:windowArea>";
this.debugInterface=null;
try{
if(WGGDataTypeUtils.isObject(WGGAbstractDebugInterface.gDebugInterface)){
this.debugInterface=WGGAbstractDebugInterface.gDebugInterface;
}else{
throw "WGGAbstractDebugInterface.gDebugInterface probably undefined";
}
}
catch(e){
this.debugInterface=new WGGNullDebugInterface();
}
this.eventsManagers=[];
this.taskBar=null;
this.__onGlobalWindowElementResized=function __globalWindowElementResized(){
var ap=WGGGUIUtils.getPosition(this.bbElement.viewNode);
var h=WGGGUIUtils.getClientHeight(document,true);
var s=WGGGUIUtils.getScrollTop(document,true);
this.bbElement.setAttribute("height",(h-s-ap.top)+"px");
};
this.initializeBbElement=function(){
this.debugInterface.info("initializeBbElement");
var _6=this.cfg.getCurrentLngSource();
var _7=WGGIdGenerator.getInstance();
var _8=new WGGSimpleTemplate(this.windowAreaDef);
_8.assign(_7.generateId(),"autoid0");
this.bbElement=bb.command.create(_8.getResult(),this.parentDomElement,"appendChild");
};
this.preInitialize=function(){
};
this.postInitialize=function(){
var _9=this.bbElement.getProperty("parentNode");
var id=_9.getAttribute("id");
if(id=="mainAppRootBox"){
var _b=new WGGEventsManager(this,window);
_b.addEventListener("resize",this,this.__onGlobalWindowElementResized);
this.eventsManagers.push(_b);
}
};
this.initialize=function(){
this.preInitialize();
this.initializeBbElement();
this.postInitialize();
};
this.initialize();
};
WGGBackbaseFrameArea.prototype.addFrame=function(_c){
if(_c==null){
return;
}
if(!_c.bbElement){
return;
}
this.frameArea.appendChild(_c.bbElement);
};


/**********WGGBackbaseGUIUtils.js.tmp**********/
function WGGBackbaseGUIUtils(){
};
WGGBackbaseGUIUtils.getChildNodesFromNamespace=function(_1,_2,_3,_4,_5){
if(_1==null){
return null;
}
var _6=[];
var _7=_1.getProperty("childNodes");
for(var i=0;i<_7.length;i++){
var _9=_7[i];
if(!bb.instanceOf(_9,_5,_2)){
if(_4){
var _a=WGGBackbaseGUIUtils.getChildNodes(_9,_2,_3,_4,_5);
if(_a!=null){
_6=_6.concat(_a);
}
}
}else{
if(_3==null){
_6.push(_9);
}else{
var id=_9.getAttribute("id");
if(id!=""){
if(_3.exec(id)){
_6.push(_9);
}
}
}
if(_4){
var _a=WGGBackbaseGUIUtils.getChildNodes(_9,_2,_3,_4,_5);
if(_a!=null){
_6=_6.concat(_a);
}
}
}
}
return _6;
};
WGGBackbaseGUIUtils.getParentNodeFromNamespace=function(_c,_d,_e,_f){
if(_c==null){
return null;
}
var _10=null;
var _11=_c.getProperty("parentNode");
while(_11!=null){
if(bb.instanceOf(_11,_f,_d)){
if(_e==null){
_10=_11;
break;
}else{
var id=_11.getAttribute("id");
if(_e.exec(id)){
_10=_11;
break;
}
}
}
_11=_11.getProperty("parentNode");
}
return _10;
};
WGGBackbaseGUIUtils.getParentNode=function(_13,_14,_15){
return WGGBackbaseGUIUtils.getParentNodeFromNamespace(_13,_14,_15,btl.namespaceURI);
};
WGGBackbaseGUIUtils.getChildNodes=function(_16,_17,_18,_19){
return WGGBackbaseGUIUtils.getChildNodesFromNamespace(_16,_17,_18,_19,btl.namespaceURI);
};
WGGBackbaseGUIUtils.getFirstChildNode=function(_1a,_1b,_1c,_1d){
var _1e=WGGBackbaseGUIUtils.getChildNodesFromNamespace(_1a,_1b,_1c,_1d,btl.namespaceURI);
if(_1e==null){
return null;
}
if(_1e.length==0){
return null;
}
return _1e[0];
};
WGGBackbaseGUIUtils.getStandardDOMChildNodes=function(_1f,_20,_21,_22){
if(_1f==null){
return null;
}
var _23=[];
var _24=_1f.getElementsByTagName(_20);
for(var i=0;i<_24.length;i++){
var _26=_24[i];
var id=_26.getAttribute("id")||_26.id;
if(_21==null){
_23.push(_26);
}else{
if(!id){
if(_22){
var _28=WGGBackbaseGUIUtils.getStandardDOMChildNodes(_26,_20,_21,_22);
if(_28!=null){
_23=_23.concat(_28);
}
}
}else{
if(_21.exec(id)){
_23.push(_26);
}
}
}
}
return _23;
};
WGGBackbaseGUIUtils.getFirstStandardDOMChildNode=function(_29,_2a,_2b,_2c){
var _2d=WGGBackbaseGUIUtils.getStandardDOMChildNodes(_29,_2a,_2b,_2c,btl.namespaceURI);
if(_2d==null){
return null;
}
if(_2d.length==0){
return null;
}
return _2d[0];
};


/**********WGGBackbaseHint.js.tmp**********/
function WGGBackbaseHint(){
var _1=JSINER.extend(this,"WGGSubject");
var _2=null;
var _3=null;
var _4=null;
switch(arguments.length){
case 3:
_2=arguments[0];
_3=arguments[1];
_4=arguments[2];
if(!WGGDataTypeUtils.instanceOf(_2,WGGWigeowebCfg)){
throw "cfg should be instance of WGGWigeowebCfg";
}
if(!WGGDataTypeUtils.isString(_3)){
throw "label should be a string";
}
if(!WGGDataTypeUtils.isString(_4)){
throw "label should be a string";
}
break;
default:
return;
}
var _5=_1;
_1.observerImpl=new function MyObserver(){
var _6=JSINER.extend(this,"WGGObserver");
_6.update=function(){
};
return _6;
};
_1.label=_3;
_1.text=_4;
_1.bConfirmed=false;
_1.bbElement=null;
_1.cfg=_2;
_1.balloonDef="<b:balloon xmlns:b=\"http://www.backbase.com/2006/btl\" xmlns=\"http://www.w3.org/1999/xhtml\" class=\"wgg-hint\" id=\"balloon_{{autoid0}}\" label=\"{{"+WGGBackbaseHint.LNG_USECASESPECIFIC__HINT_LABEL+"}}\"> "+"{{"+WGGBackbaseHint.LNG_USECASESPECIFIC__HINT_TEXT+"}}"+"<br/><input xmlns=\"http://www.w3.org/1999/xhtml\" type=\"checkbox\"/>{{"+WGGBackbaseHint.LNG_DONT_SHOW_ME_AGAIN+"}}"+"</b:balloon>";
_1.defTemplates=null;
_1.debugInterface=null;
try{
if(WGGDataTypeUtils.isObject(WGGAbstractDebugInterface.gDebugInterface)){
_1.debugInterface=WGGAbstractDebugInterface.gDebugInterface;
}else{
throw "WGGAbstractDebugInterface.gDebugInterface probably undefined";
}
}
catch(e){
_1.debugInterface=new WGGNullDebugInterface();
}
_1.initialize=function(_7,_8){
this.defTemplates=new WGGHashMap();
var _9=new WGGSimpleTemplate(this.balloonDef);
var _a=WGGIdGenerator.getInstance();
_9.assign(_a.generateId(),"autoid0");
_9.assign(_7,WGGBackbaseHint.LNG_USECASESPECIFIC__HINT_LABEL);
_9.assign(_8,WGGBackbaseHint.LNG_USECASESPECIFIC__HINT_TEXT);
var _b=this.cfg.getCurrentLngSource();
_9.assign(_b.lookupByName(WGGBackbaseHint.LNG_DONT_SHOW_ME_AGAIN,WGGBackbaseHint.LNG_DONT_SHOW_ME_AGAIN),WGGBackbaseHint.LNG_DONT_SHOW_ME_AGAIN);
this.defTemplates.put(this.balloonDef,_9);
};
_1.update=function(){
this.observerImpl.update.apply(this,arguments);
};
_1.initialize(_3,_4);
return _1;
};
WGGBackbaseHint.hintCache=null;
WGGBackbaseHint.createHint=function(_c,_d,_e,_f){
_d=_d||"null";
var _10=WGGBackbaseHint.getHintFromCache(_d);
if(_10==null){
_10=new WGGBackbaseHint(_c,_d,_e);
_10.bbElement=bb.command.create(_10.defTemplates.get(_10.balloonDef).getResult(),_f,"appendChild");
_10.bbElement.setAttribute("open","true");
var _11=_10.bbElement.selectNodes("//input");
if(_11.length>0){
var _12=_11[0];
_12.addEventListener("click",function(){
_10.bConfirmed=true;
},false);
}
WGGBackbaseHint.addHintToCache(_10);
}else{
if(_10.bConfirmed==true){
return;
}
if(_10.bbElement==null){
throw "bbElement of existing hint must not be null";
}
var _13=_10.bbElement.getProperty("parentNode").removeChild(_10.bbElement);
_f.appendChild(_13);
_13.setAttribute("open","true");
}
};
WGGBackbaseHint.getHintFromCache=function(_14){
if(WGGBackbaseHint.hintCache==null){
return null;
}
if(_14==null){
return null;
}
return WGGBackbaseHint.hintCache.get(_14);
};
WGGBackbaseHint.addHintToCache=function(_15){
if(_15==null){
return false;
}
if(WGGBackbaseHint.hintCache==null){
WGGBackbaseHint.hintCache=new WGGHashMap();
}
var _16=_15.label||"null";
WGGBackbaseHint.hintCache.put(_15.label,_15);
return true;
};
WGGBackbaseHint.LNG_USECASESPECIFIC__HINT_LABEL="lng_usecasespecific__hint_label";
WGGBackbaseHint.LNG_USECASESPECIFIC__HINT_TEXT="lng_usecasespecific__hint_text";
WGGBackbaseHint.LNG_DONT_SHOW_ME_AGAIN="lng_dont_show_me_again";


/**********WGGBackbaseLayerContainer.js.tmp**********/
function WGGBackbaseLayerContainer(){
var _1=JSINER.extend(this,"WGGSubject");
var _2=null;
var _3=null;
var _4=null;
switch(arguments.length){
case 0:
return;
case 1:
case 2:
throw "count of arguments not sufficient to initialize this widget (WGGBackbaseDataTableContainer)";
case 3:
_2=arguments[0];
_3=arguments[1];
_4=arguments[2];
if(_2==null){
throw "cfg must not be null";
}
if(!WGGDataTypeUtils.instanceOf(_2,WGGWigeowebCfg)){
throw "cfg should be instance of WGGWigeowebCfg";
}
if(_3==null){
throw "dataLayer must not be null";
}
if(!WGGDataTypeUtils.isArray(_3)){
throw "dataLayers should be an Array";
}
if(_3.length==0){
throw "dataLayers.length must not be 0";
}
var _5=_3[0];
if(!WGGDataTypeUtils.instanceOf(_5,WGGAbstractDataLayer)){
throw "dataLayer should be instance of WGGDataLayerLeaf";
}
if(_4==null){
throw "parentDomElement must not be null";
}
break;
}
var _6=_1;
_1.cfg=_2;
_1.dataLayers=_3;
_1.parentDomElement=_4;
_1.eventsManagers=[];
_1.observerImpl=new function MyObserver(){
var _7=JSINER.extend(this,"WGGObserver");
_7.update=function(){
var _8=[];
for(var i=0;i<arguments.length;i++){
_8.push(arguments[i]);
}
};
return _7;
};
_1.treeDef="<b:layerTree xmlns:b=\"http://www.backbase.com/2006/btl\" height=\"auto\" class=\"wgg-layerContainer-treeRoot\"/>";
_1.certainDataLayerGroupNodeDef="<b:layerTreeBranch xmlns:b=\"http://www.backbase.com/2006/btl\" id=\"{{layer_id}}\" label=\"{{lng_usecasespecific__layer_name}}\" title=\"{{lng_usecasespecific__layer_title}}\" open=\"true\" visibilityClasses=\"{{visibility_classes}}\"/>";
_1.certainDataLayerLeafNodeDef="<b:layerTreeLeaf xmlns:b=\"http://www.backbase.com/2006/btl\" id=\"{{layer_id}}\" label=\"{{lng_usecasespecific__layer_name}}\" title=\"{{lng_usecasespecific__layer_title}}\" visibilityClasses=\"{{visibility_classes}}\"/>";
_1.allDataLayerLeafsNodeDef="<b:layerTreeLeaf xmlns:b=\"http://www.backbase.com/2006/btl\" id=\"{{layer_id}}\" label=\"{{lng_usecasespecific__layer_name}}\" title=\"{{lng_usecasespecific__layer_title}}\" visibilityClasses=\"{{visibility_classes}}\"/>";
_1.visibleDataLayerLeafsNodeDef="<b:layerTreeLeaf xmlns:b=\"http://www.backbase.com/2006/btl\" id=\"{{layer_id}}\" label=\"{{lng_usecasespecific__layer_name}}\" title=\"{{lng_usecasespecific__layer_title}}\" visibilityClasses=\"{{visibility_classes}}\"/>";
_1.layerCommandsContextMenuDef="<b:contextMenu xmlns:b=\"http://www.backbase.com/2006/btl\" xmlns=\"http://www.w3.org/1999/xhtml\">"+"<b:menuPopUp id=\"layerCommandsMenuPopUp_{{autoid0}}\">"+"<b:menuPopUpItem label=\"{{lng_show_layer_in_map}}\" icon=\"wgg-layerContainer-showLayerInMap\">"+"</b:menuPopUpItem>"+"<b:menuPopUpItem label=\"{{lng_set_labeling}}\" icon=\"wgg-layerContainer-setLabeling\">"+"</b:menuPopUpItem>"+"<b:menuPopUpItem label=\"{{lng_set_classification}}\" icon=\"wgg-layerContainer-setClassification\">"+"</b:menuPopUpItem>"+"<b:menuPopUpItem label=\"{{lng_set_filter}}\" icon=\"wgg-layerContainer-setFilter\">"+"</b:menuPopUpItem>"+"<b:menuPopUpItem label=\"{{lng_open_datatable}}\" icon=\"wgg-layerContainer-openDataTable\">"+"</b:menuPopUpItem>"+"<b:menuPopUpItem label=\"{{lng_set_transparency}}\" icon=\"wgg-layerContainer-setTransparency\">"+"<b:menuPopUp>"+"<b:menuPopUpItem>"+"<b:slider id=\"transparencySlider_{{autoid1}}\" min=\"0.1\" max=\"1\" step=\"0.1\" width=\"100px\" value=\"0.5\" showLabels=\"true\"/>"+"</b:menuPopUpItem>"+"</b:menuPopUp>"+"</b:menuPopUpItem>"+"</b:menuPopUp>"+"</b:contextMenu>";
_1.defTemplates=null;
_1.bbElement=null;
_1.dataLayerHashMap=null;
_1.debugInterface=null;
try{
if(WGGDataTypeUtils.isObject(WGGAbstractDebugInterface.gDebugInterface)){
_1.debugInterface=WGGAbstractDebugInterface.gDebugInterface;
}else{
throw "WGGAbstractDebugInterface.gDebugInterface probably undefined";
}
}
catch(e){
_1.debugInterface=new WGGNullDebugInterface();
}
_1.__onBbElementClicked=function __bbElementClicked(){
var _a=arguments[0];
if(_a.button==2){
var _b=this.bbElement.getProperty("selectedNode");
if(_b==null){
_a.preventDefault();
return;
}
if(!_b.isVisible()){
var _c=this.cfg.getCurrentLngSource();
var _d=WGGBackbaseHint.createHint(this.cfg,_c.lookupByName(WGGBackbaseLayerContainer.LNG_INVISIBLE_LAYER_HINT_LABEL,WGGBackbaseLayerContainer.LNG_INVISIBLE_LAYER_HINT_LABEL),_c.lookupByName(WGGBackbaseLayerContainer.LNG_INVISIBLE_LAYER_HINT_TEXT,WGGBackbaseLayerContainer.LNG_INVISIBLE_LAYER_HINT_TEXT),_b);
_a.preventDefault();
return;
}
}
};
_1.__onTreeElementVisibilityChanged=function __treeElementVisibilityChanged(){
var _e=arguments[0];
var _f=_e.target;
var _10=_f.isVisible();
if(bb.instanceOf(_f,btl.namespaceURI,"layerTreeBranch")){
cmd=(_10)?"SELECTLAYERGROUP":"DESELECTLAYERGROUP";
}else{
if(bb.instanceOf(_f,btl.namespaceURI,"layerTreeLeaf")){
cmd=(_10)?"SELECTLAYER":"DESELECTLAYER";
}
}
var _12=this.cfg.getModuleContainer();
var _13=_12.getModuleByName("MODULE_LAYER");
var cmd=_12.getCmdDef("MODULE_LAYER."+cmd);
cmd.addObserver(this.observerImpl);
cmd.execute(_13,[_f._._dataLayerIdentifier]);
};
_1.__onShowLayerInMapStarted=function __showLayerInMapStarted(){
if(arguments.length==0){
return;
}
var _14=this.bbElement.getProperty("selectedNode");
alert("operation 'show layer in map' for '"+_14.getProperty("label")+"' started");
};
_1.__onSetLabelingStarted=function __setLabelingStarted(){
if(arguments.length==0){
return;
}
var _15=this.bbElement.getProperty("selectedNode");
alert("operation 'set labeling' for '"+_15.getProperty("label")+"' started");
};
_1.__onSetClassificationStarted=function __setClassificationStarted(){
if(arguments.length==0){
return;
}
var _16=this.bbElement.getProperty("selectedNode");
var _17=WGGBackbaseGUIUtils.getParentNode(this.bbElement,"windowArea",null);
if(_17==null){
return;
}
var _18=new WGGDataLayerGroup("dummy",null);
_18.setChildren(this.dataLayers);
var _19=_18.getChildByIdentifier(_16._._dataLayerIdentifier,true);
_18=null;
var _1a=this.cfg.getCurrentLngSource();
var _1b=new WGGBackbaseFrame(this.cfg,_17,_1a.lookupByName(WGGBackbaseLayerContainer.LNG_WINDOW_LABEL_CLASSIFICATION),"wgg-window-classification",1,{"top":"100px","left":"400px"},{"width":"440px","height":"200px"});
var _1c=new WGGBackbaseClassificationForm(this.cfg,_1b.bbElement,_19);
};
_1.__onSetFilterStarted=function __setFilterStarted(){
if(arguments.length==0){
return;
}
var _1d=this.bbElement.getProperty("selectedNode");
alert("operation 'set filter' for '"+_1d.getProperty("label")+"' started");
};
_1.__onOpenDataTableStarted=function __openDataTableStarted(){
if(arguments.length==0){
return;
}
var _1e=this.bbElement.getProperty("selectedNode");
alert("operation 'open data table' for '"+_1e.getProperty("label")+"' started");
};
_1.__onSetTransparencyStarted=function __setTransparencyStarted(){
if(arguments.length==0){
return;
}
var evt=arguments[0];
var _20=this.bbElement.getProperty("selectedNode");
var _21=evt.currentTarget;
alert("operation 'set transparency' for '"+_20.getProperty("label")+"' started (value is "+_21.getProperty("value")+")");
};
_1.insertLayerTreeRoot=function(_22,_23){
if(_22==this.parentDomElement){
this.bbElement=bb.command.create(this.treeDef,_22,"appendChild");
_22=this.bbElement;
}
var _24=this.cfg.getCurrentLngSource();
for(var i=0;i<_23.length;i++){
var _26=_23[i];
var _27=null;
if(_26.hasChildren()){
_27=this.certainDataLayerGroupNodeDef;
}else{
if(WGGDataTypeUtils.instanceOf(_26,WGGSpecialAllDataLayerLeaf)){
_27=this.allDataLayerLeafsNodeDef;
}else{
if(WGGDataTypeUtils.instanceOf(_26,WGGSpecialVisibleDataLayerLeaf)){
_27=this.visibleDataLayerLeafsNodeDef;
}else{
if(WGGDataTypeUtils.instanceOf(_26,WGGDataLayerLeaf)){
_27=this.certainDataLayerLeafNodeDef;
}
}
}
}
var _28=this.defTemplates.get(_27);
_28.reset();
_28.assign(_26.layerIdentifier,"layer_id");
var _29=_26.lngName;
if(WGGLanguageSource.isCorrectLanguagePlaceholder(_26.lngName)){
_29=_24.lookupByName(_26.lngName);
}
if(!_29){
_29=_26.layerIdentifier;
}
_28.assign(_29,WGGBackbaseLayerContainer.LNG_USECASESPECIFIC__LAYER_NAME);
var _2a=null;
if(_26.hasOption("longTitle")){
_2a=_26.options["longTitle"];
if(WGGLanguageSource.isCorrectLanguagePlaceholder(_2a)){
_2a=_24.lookupByName(_2a);
}
}
if(!_2a){
_2a=_29;
}
_28.assign(_2a,WGGBackbaseLayerContainer.LNG_USECASESPECIFIC__LAYER_TITLE);
var _2b=_26.getSymbology("visibility");
var _2c=true;
if(WGGDataTypeUtils.isArray(_2b)){
if(_2b.length==2){
_28.assign(_2b[0]+","+_2b[1],"visibility_classes");
_2c=false;
}
}
if(_2c){
_28.assign("wgg-layer-default-visible,wgg-layer-default-invisible","visibility_classes");
}
var _2d=_28.getResult();
var _2e=bb.command.create(_2d,_22,"appendChild");
if(_26.hasOption("defaultVisible")){
var _2f=_26.options["defaultVisible"];
_2e.setVisibility(_2f);
}else{
_2e.setVisibility(false);
}
_2e._._dataLayerIdentifier=_26.layerIdentifier;
if(_26.hasChildren()){
this.insertLayerTreeRoot(_2e,_26.getChildren());
}
}
};
_1.addLayerCommandsContextMenu=function(){
var _30=this.defTemplates.get(this.layerCommandsContextMenuDef);
bb.command.create(_30.getResult(),this.bbElement,"appendChild");
};
_1.initializeBbElement=function(){
this.insertLayerTreeRoot(this.parentDomElement,this.dataLayers);
};
_1.preInitialize=function(){
this.defTemplates=new WGGHashMap();
var _31=new WGGSimpleTemplate(this.treeDef);
var _32=new WGGSimpleTemplate(this.certainDataLayerGroupNodeDef);
var _33=new WGGSimpleTemplate(this.certainDataLayerLeafNodeDef);
var _34=new WGGSimpleTemplate(this.allDataLayerLeafsNodeDef);
var _35=new WGGSimpleTemplate(this.visibleDataLayerLeafsNodeDef);
var _36=new WGGSimpleTemplate(this.layerCommandsContextMenuDef);
var _37=WGGIdGenerator.getInstance();
_36.assign(_37.generateId(),"autoid0");
_36.assign(_37.generateId(),"autoid1");
var _38=this.cfg.getCurrentLngSource();
_36.assign(_38.lookupByName(WGGBackbaseLayerContainer.LNG_SHOW_LAYER_IN_MAP,WGGBackbaseLayerContainer.LNG_SHOW_LAYER_IN_MAP),WGGBackbaseLayerContainer.LNG_SHOW_LAYER_IN_MAP);
_36.assign(_38.lookupByName(WGGBackbaseLayerContainer.LNG_SET_LABELING,WGGBackbaseLayerContainer.LNG_SET_LABELING),WGGBackbaseLayerContainer.LNG_SET_LABELING);
_36.assign(_38.lookupByName(WGGBackbaseLayerContainer.LNG_SET_CLASSIFICATION,WGGBackbaseLayerContainer.LNG_SET_CLASSIFICATION),WGGBackbaseLayerContainer.LNG_SET_CLASSIFICATION);
_36.assign(_38.lookupByName(WGGBackbaseLayerContainer.LNG_SET_FILTER,WGGBackbaseLayerContainer.LNG_SET_FILTER),WGGBackbaseLayerContainer.LNG_SET_FILTER);
_36.assign(_38.lookupByName(WGGBackbaseLayerContainer.LNG_OPEN_DATATABLE,WGGBackbaseLayerContainer.LNG_OPEN_DATATABLE),WGGBackbaseLayerContainer.LNG_OPEN_DATATABLE);
_36.assign(_38.lookupByName(WGGBackbaseLayerContainer.LNG_SET_TRANSPARENCY,WGGBackbaseLayerContainer.LNG_SET_TRANSPARENCY),WGGBackbaseLayerContainer.LNG_SET_TRANSPARENCY);
this.defTemplates.put(this.treeDef,_31);
this.defTemplates.put(this.certainDataLayerGroupNodeDef,_32);
this.defTemplates.put(this.certainDataLayerLeafNodeDef,_33);
this.defTemplates.put(this.allDataLayerLeafsNodeDef,_34);
this.defTemplates.put(this.visibleDataLayerLeafsNodeDef,_35);
this.defTemplates.put(this.layerCommandsContextMenuDef,_36);
};
_1.postInitialize=function(){
var _39=new WGGBackbaseEventsManager(this,this.bbElement);
_39.addEventListenersMap({"click":this.__onBbElementClicked},false);
this.eventsManagers.push(_39);
var _3a=WGGBackbaseGUIUtils.getChildNodes(this.bbElement,"layerTreeLeaf",null,true);
var _3b=WGGBackbaseGUIUtils.getChildNodes(this.bbElement,"layerTreeBranch",null,true);
var _3c=[].concat(_3a).concat(_3b);
for(var i=0;i<_3c.length;i++){
var _3e=_3c[i];
var _3f=new WGGBackbaseEventsManager(this,_3e);
_3f.addEventListenersMap({"visibilityChanged":this.__onTreeElementVisibilityChanged},false);
this.eventsManagers.push(_3f);
}
var _40=WGGBackbaseGUIUtils.getChildNodes(this.bbElement,"contextMenu",null,true);
var _41=(_40!=null&&_40.length>0)?_40[0]:null;
if(_41==null){
return;
}
var _42=_41.getProperty("menuPopUp");
var _43=_42.getProperty("menuItems");
for(var i=0;i<_43.length;i++){
var _44=_43[i];
var _45=null;
switch(i){
case 0:
_45=new WGGBackbaseEventsManager(this,_44);
_45.addEventListenersMap({"click":this.__onShowLayerInMapStarted},false);
break;
case 1:
_45=new WGGBackbaseEventsManager(this,_44);
_45.addEventListenersMap({"click":this.__onSetLabelingStarted},false);
break;
case 2:
_45=new WGGBackbaseEventsManager(this,_44);
_45.addEventListenersMap({"click":this.__onSetClassificationStarted},false);
break;
case 3:
_45=new WGGBackbaseEventsManager(this,_44);
_45.addEventListenersMap({"click":this.__onSetFilterStarted},false);
break;
case 4:
_45=new WGGBackbaseEventsManager(this,_44);
_45.addEventListenersMap({"click":this.__onOpenDataTableStarted},false);
break;
case 5:
var _46=_44.selectNodes("//slider",WGGBackbaseNamespaceResolver);
var _47=(_46!=null&&_46.length>0)?_46[0]:null;
if(_47==null){
break;
}
_45=new WGGBackbaseEventsManager(this,_47);
_45.addEventListenersMap({"change":this.__onSetTransparencyStarted},false);
break;
}
this.eventsManagers.push(_45);
}
};
_1.initialize=function(){
this.preInitialize();
this.initializeBbElement();
this.addLayerCommandsContextMenu();
this.postInitialize();
};
_1.update=function(){
this.observerImpl.update.apply(this,arguments);
};
if(_1.parentDomElement!=null){
_1.initialize();
}
return _1;
};
WGGBackbaseLayerContainer.LNG_USECASESPECIFIC__LAYER_NAME="lng_usecasespecific__layer_name";
WGGBackbaseLayerContainer.LNG_USECASESPECIFIC__LAYER_TITLE="lng_usecasespecific__layer_title";
WGGBackbaseLayerContainer.LNG_INVISIBLE_LAYER_HINT_LABEL="lng_invisible_layer_hint_label";
WGGBackbaseLayerContainer.LNG_INVISIBLE_LAYER_HINT_TEXT="lng_invisible_layer_hint_text";
WGGBackbaseLayerContainer.LNG_SHOW_LAYER_IN_MAP="lng_show_layer_in_map";
WGGBackbaseLayerContainer.LNG_SET_LABELING="lng_set_labeling";
WGGBackbaseLayerContainer.LNG_SET_CLASSIFICATION="lng_set_classification";
WGGBackbaseLayerContainer.LNG_SET_FILTER="lng_set_filter";
WGGBackbaseLayerContainer.LNG_OPEN_DATATABLE="lng_open_datatable";
WGGBackbaseLayerContainer.LNG_SET_TRANSPARENCY="lng_set_transparency";
WGGBackbaseLayerContainer.LNG_WINDOW_LABEL_CLASSIFICATION="lng_window_label_classification";


/**********WGGBackbaseLocationList.js.tmp**********/
function WGGBackbaseLocationList(_1,_2,_3){
var _4=JSINER.extend(this,"WGGAbstractLocationList");
_4.app=_1;
_4.domElement=_2;
_4.nativeList=null;
_4.eventController=_3;
_4.initialize();
return _4;
};
WGGBackbaseLocationList.prototype.initialize=function(){
if(this.domElement!=null){
if(this.domElement.controller||this.domElement._){
this.nativeList=this.domElement._?this.domElement:this.domElement.controller;
this.nativeList.wggNextDoorApp=this.app;
}
}
};
WGGBackbaseLocationList.prototype.update=function(_5,_6,_7){
var _8=null;
if(_7!=null){
if(WGGDataTypeUtils.isArray(_7)){
_8=_7;
}else{
if(WGGDataTypeUtils.isObject(_7)){
_8=new Array();
_8.push(_7);
}
}
}else{
_8=_5.getLocations();
}
var _9=this.nativeList.getProperty("dataSource");
if(_9==null){
return;
}
switch(_6){
case "add":
if(_8==null){
break;
}
for(var i=0;i<_8.length;i++){
var _b=_8[i];
var _c=_b.getDesc();
var _d={};
_d["@id"]=_b.getId();
if(WGGDataTypeUtils.isArray(_c)){
for(var j=0;j<_c.length;j++){
_d["@col"+j]=_c[j];
}
}else{
if(WGGDataTypeUtils.isObject(_c)){
var j=0;
for(var _f in _c){
_d["@col"+j]=_c[_f];
j++;
}
}
}
btl.dataSource.actionRequest(_9,"create",[_d]);
}
break;
case "show":
break;
case "clear":
var _10=this.nativeList.getProperty("localRecords");
for(var id in _10){
btl.dataSource.actionRequest(_9,"delete",[id]);
}
break;
}
};
WGGBackbaseLocationList.prototype.registerEvents=function(){
if(this.app!=null){
if(this.nativeList!=null){
this.nativeList.addEventListener("click",this.onListClick,false);
this.nativeList.addEventListener("selectionChanged",this.onListSelectionChanged,false);
}
}
};
WGGBackbaseLocationList.prototype.onListClick=function(){
};
WGGBackbaseLocationList.prototype.onListSelectionChanged=function(){
var _12=arguments[0];
if(_12.type!="selectionChanged"){
return;
}
var _13=_12.target.wggNextDoorApp;
var _14=_13.getModel();
_14.notify(_14,"show",_12.recordId);
};


/**********WGGBackbaseMainApp.js.tmp**********/
function WGGBackbaseMainApp(_1){
this.frameArea=null;
this.masterTools=null;
this.mapControl=null;
this.taskBar=null;
this.dataLayerContainer=null;
this.toolBar=null;
this.dataTableContainer=null;
this.progressBar=null;
this.cfg=_1;
this.dataLayers=null;
this.debugInterface=null;
try{
if(WGGDataTypeUtils.isObject(WGGAbstractDebugInterface.gDebugInterface)){
this.debugInterface=WGGAbstractDebugInterface.gDebugInterface;
}else{
throw "WGGAbstractDebugInterface.gDebugInterface probably undefined";
}
}
catch(e){
this.debugInterface=new WGGNullDebugInterface();
}
this.eventsManagers=[];
this.preInitialize=function(){
var _2=this.cfg.getModuleContainer();
var _3=_2.getModuleByName("MODULE_LAYER");
var _4=_2.getCmdDef("MODULE_LAYER.GET_LAYERS");
var _5=_4.execute(_3,[],false);
if(_5==null){
throw "Critical Error: MODULE_LAYER.GET_LAYERS does not return any value (was null)";
}
var _6=_5["DATA"];
if(_6==null){
throw "Critical Error: MODULE_LAYER.GET_LAYERS does not return WGGAbstractDataLayer array (was null)";
}
this.dataLayers=_6;
};
this.postInitialize=function(){
var _7=this.cfg.getModuleContainer();
var _8=_7.getModules();
for(var i=0;i<_8.length;i++){
var _a=_8[i];
var _b=_a.getCmdDefs();
for(var j=0;j<_b.length;j++){
var _d=_b[j];
_d.addObserver(this.progressBar);
}
}
this.toolBar.addObserver(this.mapControl);
window.moveTo(0,0);
window.resizeTo(screen.width,screen.height);
};
this.initialize=function(){
this.preInitialize();
var _e=this.cfg.getCurrentLngSource();
var _f=WGGBackbaseGUIUtils.getChildNodes(bb.document,"box",/mainAppRootBox/,true);
this.masterTools=new WGGBackbaseMasterTools(this.cfg,_f[0]);
this.frameArea=new WGGBackbaseFrameArea(this.cfg,_f[0]);
var _10=new WGGBackbaseFrame(this.cfg,this.frameArea.bbElement,_e.lookupByName(WGGBackbaseMainApp.LNG_WINDOW_LABEL_MAP,WGGBackbaseMainApp.LNG_WINDOW_LABEL_MAP),"wgg-window-map",6,{"top":"40px","left":"40px"},{"width":"1000px","height":"800px"});
this.mapControl=new WGGMapControl(this.cfg,this.dataLayers,_10.bbElement,new WGGDefaultAppContext());
var _11=new WGGBackbaseFrame(this.cfg,this.frameArea.bbElement,_e.lookupByName(WGGBackbaseMainApp.LNG_WINDOW_LABEL_LAYER,WGGBackbaseMainApp.LNG_WINDOW_LABEL_LAYER),"wgg-window-layer",6,{"top":"40px","left":"1100px"},{"width":"300px","height":"500px"});
this.dataLayerContainer=new WGGBackbaseLayerContainer(this.cfg,this.dataLayers,_11.bbElement);
var _12=new WGGBackbaseFrame(this.cfg,this.frameArea.bbElement,_e.lookupByName(WGGBackbaseMainApp.LNG_WINDOW_LABEL_DATATABLE,WGGBackbaseMainApp.LNG_WINDOW_LABEL_DATATABLE),"wgg-window-datatable",6,{"top":"600px","left":"560px"},{"width":"640px","height":"260px"});
this.dataTableContainer=new WGGBackbaseDataTableContainer(this.cfg,this.dataLayers,_12.bbElement,this.mapControl.getExtent());
this.progressBar=new WGGBackbaseProgressBar(this.cfg,this.frameArea.bbElement);
this.toolBar=new WGGBackbaseToolBar(this.cfg,this.frameArea.bbElement);
this.taskBar=new WGGBackbaseTaskBar(this.cfg,this.frameArea.bbElement);
this.taskBar.iconize();
this.taskBar.optimize(WGGBackbaseTaskBar.WIDTH_COMPUTATION_RULE_MAX);
this.postInitialize();
};
this.initialize();
};
WGGBackbaseMainApp.LNG_WINDOW_LABEL_LAYER="lng_window_label_layer";
WGGBackbaseMainApp.LNG_WINDOW_LABEL_DATATABLE="lng_window_label_datatable";
WGGBackbaseMainApp.LNG_WINDOW_LABEL_MAP="lng_window_label_map";


/**********WGGBackbaseMasterTools.js.tmp**********/
function WGGBackbaseMasterTools(){
var _1=JSINER.extend(this,"WGGSubject");
var _2=null;
var _3=null;
switch(arguments.length){
case 0:
return;
case 2:
_2=arguments[0];
_3=arguments[1];
if(_2==null){
throw "cfg must not be null";
}
if(!WGGDataTypeUtils.instanceOf(_2,WGGWigeowebCfg)){
throw "cfg should be instance of WGGWigeowebCfg";
}
if(_3==null){
throw "parentDomElement must not be null";
}
break;
default:
throw "count of arguments not sufficient to initialize this widget (WGGBackbaseMasterTools)";
}
var _4=_1;
_1.observerImpl=new function MyObserver(){
var _5=JSINER.extend(this,"WGGObserver");
_5.update=function(){
_4.notify();
};
return _5;
};
_1.bbElement=null;
_1.cfg=_2;
_1.parentDomElement=_3;
_1.outerBoxDef="<b:box xmlns:b=\"http://www.backbase.com/2006/btl\" id=\"box_{{autoid0}}\" class=\"wgg-mastertools-outer-box\" visibility=\"hidden\" width=\"100%\"></b:box>";
_1.innerBoxDef="<b:box xmlns=\"http://www.w3.org/1999/xhtml\" xmlns:b=\"http://www.backbase.com/2006/btl\" id=\"box_{{autoid0}}\" class=\"wgg-mastertools-inner-box\" width=\"100%\">"+"<div class=\"wgg-app-info\"/>"+"<table style=\"padding:0px;border-collapse:collapse;width:100%;\">"+"<tr>"+"<td style=\"width:90%;padding-left:150px;\"/>"+"<td style=\"width:10%;\"/>"+"</tr>"+"</table>"+"</b:box>";
_1.shortcutsMenuBarDef="<b:menuBar xmlns:b=\"http://www.backbase.com/2006/btl\" class=\"wgg-mastertools-shortcuts\" id=\"menuBar_shortcuts_{{autoid0}}\"></b:menuBar>";
_1.menuBarDef="<b:menuBar xmlns:b=\"http://www.backbase.com/2006/btl\" id=\"menuBar_{{autoid0}}\" class=\"wgg-mastertools\"/>";
_1.menuBarItemDef="<b:menuBarItem xmlns:b=\"http://www.backbase.com/2006/btl\" label=\"{{lng_usecasespecific__label}}\" icon=\"{{css_class_name}}\" id=\"menuBarItem_{{autoid0}}\"></b:menuBarItem>";
_1.menuPopUpDef="<b:menuPopUp xmlns:b=\"http://www.backbase.com/2006/btl\" id=\"menuPopUp_{{autoid0}}\"/>";
_1.menuPopUpItemDef="<b:menuPopUpItem xmlns:b=\"http://www.backbase.com/2006/btl\" label=\"{{lng_usecasespecific__label}}\" icon=\"{{css_class_name}}\" id=\"menuPopUpItem_{{autoid0}}\"/>";
_1.checkboxDef="<input xmlns=\"http://www.w3.org/1999/xhtml\" id=\"checkBox_{{autoid0}}\" type=\"checkbox\"/>";
_1.defTemplates=null;
_1.debugInterface=null;
try{
if(WGGDataTypeUtils.isObject(WGGAbstractDebugInterface.gDebugInterface)){
_1.debugInterface=WGGAbstractDebugInterface.gDebugInterface;
}else{
throw "WGGAbstractDebugInterface.gDebugInterface probably undefined";
}
}
catch(e){
_1.debugInterface=new WGGNullDebugInterface();
}
_1.eventsManagers=[];
_1.__onHistoryBackSelected=function __historyBackSelected(){
alert("onHistoryBackSelected not yet implemented");
};
_1.__onHistoryForwardSelected=function __historyForwardSelected(){
alert("onHistoryForwardSelected not yet implemented");
};
_1.__onLogoutSelected=function __logoutSelected(){
alert("onLogoutSelected not yet implemented");
};
_1.__onBookmarkSaveSelected=function __bookmarkSaveSelected(){
alert("onBookmarkSaveSelected not yet implemented");
};
_1.__onBookmarksOrganizeSelected=function __bookmarksOrganizeSelected(){
alert("onBookmarksOrganizeSelected not yet implemented");
};
_1.__onBookmarkLoadSelected=function __bookmarkLoadSelected(){
alert("onBookmarkLoadSelected not yet implemented");
};
_1.__onWindowOpenItemSelected=function __windowOpenItemSelected(){
var _6=arguments[0];
var _7=_6.target;
if(_7._._windowRef){
_7._._windowRef.restore();
}
};
_1.__onWindowAllOpenItemSelected=function __windowAllOpenItemSelected(){
var _8=arguments[0];
var _9=_8.target;
if(_9._._windowRefs){
for(var i=0;i<_9._._windowRefs.length;i++){
var w=_9._._windowRefs[i];
w.restore();
}
}
};
_1.__onWindowMinimizeItemSelected=function __windowMinimizeItemSelected(){
var _c=arguments[0];
var _d=_c.target;
if(_d._._windowRef){
_d._._windowRef.minimize();
}
};
_1.__onWindowAllCloseItemSelected=function __windowAllCloseItemSelected(){
var _e=arguments[0];
var _f=_e.target;
if(_f._._windowRefs){
for(var i=0;i<_f._._windowRefs.length;i++){
var w=_f._._windowRefs[i];
w.minimize();
}
}
};
_1.__onLayoutMngSelected=function __layoutMngSelected(){
var evt=arguments[0];
var tgt=evt.target;
if(!bb.instanceOf(tgt,btl.namespaceURI,"menuBarItem")){
return;
}
var _14=WGGBackbaseGUIUtils.getFirstChildNode(tgt,"menuPopUpItem",/layoutMngOpen_/,true);
this.updateOpenWindowListMenuPopUp(_14);
var _15=WGGBackbaseGUIUtils.getFirstChildNode(tgt,"menuPopUpItem",/layoutMngMinimize_/,true);
this.updateMinimizedWindowListMenuPopUp(_15);
var _16=WGGBackbaseGUIUtils.getFirstChildNode(tgt,"menuPopUpItem",/layoutMngTaskbarSetVisibility_/,true);
this.updateTaskBarVisibilityCheckBox(_16);
};
_1.__onLayoutMngTaskBarVisibilityCheckBoxClicked=function __layoutMngTaskBarVisibilityCheckBoxClicked(){
var evt=arguments[0];
var tgt=evt.target;
var _19=WGGBackbaseGUIUtils.getFirstChildNode(this.parentDomElement,"windowArea",null,true);
if(_19==null){
throw "Implementation error: there is no windowArea as child element of my parent node ("+((this.parentDomElement.modelNode)?this.parentDomElement.modelNode.nodeName:this.parentDomElement.tagName)+")";
}
var _1a=WGGBackbaseGUIUtils.getFirstChildNode(_19,"taskBar",null,true);
if(_1a==null){
return;
}
_1a.viewNode.style.visibility=tgt.viewNode.checked?"visible":"hidden";
};
_1.__onLanguageSelected=function __languageSelected(){
alert("not yet implemented");
};
_1.__onLayoutManagerSelected=function __layoutManagerSelected(){
alert("not yet implemented");
};
_1.updateOpenWindowListMenuPopUp=function(tgt){
var _1c=WGGBackbaseGUIUtils.getFirstChildNode(this.parentDomElement,"windowArea",null,true);
if(_1c==null){
throw "Implementation error: there is no windowArea as child element of my parent node ("+((this.parentDomElement.modelNode)?this.parentDomElement.modelNode.nodeName:this.parentDomElement.tagName)+")";
}
var _1d=_1c.getProperty("windows");
var _1e=WGGBackbaseGUIUtils.getFirstChildNode(tgt,"menuPopUp",null,true);
if(_1e==null){
_1e=this.buildMenuPopUp(tgt);
}else{
while(true){
var _1f=_1e.getProperty("childNodes");
if(_1f.length==0){
break;
}
_1e.removeChild(_1e.getProperty("lastChild"));
}
}
var _20=this.cfg.getCurrentLngSource();
var _21=this.buildMenuPopUpItem(_20.lookupByName(WGGBackbaseMasterTools.LNG_WINDOWS_ALL),"wgg-mastertools-layout-mng-open-window-all","layoutMngOpenWindowAll",_1e);
var _22=false;
for(var i=0;i<_1d.length;i++){
var w=_1d[i];
var _25=this.buildMenuPopUpItem(w.getProperty("label"),"wgg-mastertools-layout-mng-open-window-"+i,"layoutMngOpenWindow",_1e);
if(!w.getProperty("minimized")){
_25.setAttribute("disabled",true);
}else{
_22=true;
}
_25._._windowRef=w;
var _26=new WGGBackbaseEventsManager(this,_25);
_26.addEventListener("click",this.__onWindowOpenItemSelected,false);
}
_21.setAttribute("disabled",!_22);
_21._._windowRefs=_1d;
var _27=new WGGBackbaseEventsManager(this,_21);
_27.addEventListener("click",this.__onWindowAllOpenItemSelected,false);
};
_1.updateMinimizedWindowListMenuPopUp=function(tgt){
var _29=WGGBackbaseGUIUtils.getFirstChildNode(this.parentDomElement,"windowArea",null,true);
if(_29==null){
throw "Implementation error: there is no windowArea as child element of my parent node ("+((this.parentDomElement.modelNode)?this.parentDomElement.modelNode.nodeName:this.parentDomElement.tagName)+")";
}
var _2a=_29.getProperty("windows");
var _2b=WGGBackbaseGUIUtils.getFirstChildNode(tgt,"menuPopUp",null,true);
if(_2b==null){
_2b=this.buildMenuPopUp(tgt);
}else{
while(true){
var _2c=_2b.getProperty("childNodes");
if(_2c.length==0){
break;
}
_2b.removeChild(_2b.getProperty("lastChild"));
}
}
var _2d=this.cfg.getCurrentLngSource();
var _2e=this.buildMenuPopUpItem(_2d.lookupByName(WGGBackbaseMasterTools.LNG_WINDOWS_ALL),"wgg-mastertools-layout-mng-open-window-all","layoutMngOpenWindowAll",_2b);
var _2f=false;
for(var i=0;i<_2a.length;i++){
var w=_2a[i];
var _32=this.buildMenuPopUpItem(w.getProperty("label"),"wgg-mastertools-layout-mng-minimize-window-"+i,"layoutMngMinimizeWindow",_2b);
if(w.getProperty("minimized")){
_32.setAttribute("disabled",true);
}else{
_2f=true;
}
_32._._windowRef=w;
var _33=new WGGBackbaseEventsManager(this,_32);
_33.addEventListener("click",this.__onWindowMinimizeItemSelected,false);
}
_2e.setAttribute("disabled",!_2f);
_2e._._windowRefs=_2a;
var _34=new WGGBackbaseEventsManager(this,_2e);
_34.addEventListener("click",this.__onWindowAllCloseItemSelected,false);
};
_1.updateTaskBarVisibilityCheckBox=function(tgt){
var _36=WGGBackbaseGUIUtils.getFirstChildNode(this.parentDomElement,"windowArea",null,true);
if(_36==null){
throw "Implementation error: there is no windowArea as child element of my parent node ("+((this.parentDomElement.modelNode)?this.parentDomElement.modelNode.nodeName:this.parentDomElement.tagName)+")";
}
var _37=WGGBackbaseGUIUtils.getFirstChildNode(_36,"taskBar",null,true);
if(_37==null){
return;
}
var _38=WGGBackbaseGUIUtils.getStandardDOMChildNodes(tgt,"input",null,true)[0];
var _39=WGGGUIUtils.isVisible(_37.viewNode);
_38.viewNode.checked=_39;
};
_1.buildOuterBox=function(){
var _3a=WGGIdGenerator.getInstance();
var _3b=new WGGSimpleTemplate(this.outerBoxDef);
_3b.assign(_3a.generateId(),"autoid0");
return bb.command.create(_3b.getResult(),this.parentDomElement,"appendChild");
};
_1.buildInnerBox=function(box){
var _3d=WGGIdGenerator.getInstance();
var _3e=new WGGSimpleTemplate(this.innerBoxDef);
_3e.assign(_3d.generateId(),"autoid0");
return bb.command.create(_3e.getResult(),box,"appendChild");
};
_1.buildMenuBar=function(box){
var _40=WGGIdGenerator.getInstance();
var _41=new WGGSimpleTemplate(this.menuBarDef);
_41.assign(_40.generateId(),"autoid0");
return bb.command.create(_41.getResult(),box,"appendChild");
};
_1.buildShortcutsMenuBar=function(box){
var _43=WGGIdGenerator.getInstance();
var _44=new WGGSimpleTemplate(this.shortcutsMenuBarDef);
_44.assign(_43.generateId(),"autoid0");
return bb.command.create(_44.getResult(),box,"appendChild");
};
_1.buildMenuBarItem=function(_45,_46,_47,_48){
var _49=WGGIdGenerator.getInstance();
var _4a=new WGGSimpleTemplate(this.menuBarItemDef);
_4a.assign(_47+_49.generateId(),"autoid0");
_4a.assign(_45,WGGBackbaseMasterTools.LNG_USECASESPECIFIC__LABEL);
_4a.assign(_46||"","css_class_name");
return bb.command.create(_4a.getResult(),_48,"appendChild");
};
_1.buildMenuPopUp=function(_4b){
var _4c=WGGIdGenerator.getInstance();
var _4d=new WGGSimpleTemplate(this.menuPopUpDef);
_4d.assign(_4c.generateId(),"autoid0");
bb.html.addClass(_4b.viewNode,"btl-menuPopUpItem-expand");
return bb.command.create(_4d.getResult(),_4b,"appendChild");
};
_1.buildMenuPopUpItem=function(_4e,_4f,_50,_51){
var _52=WGGIdGenerator.getInstance();
var _53=new WGGSimpleTemplate(this.menuPopUpItemDef);
_53.assign(_50+_52.generateId(),"autoid0");
_53.assign(_4e,WGGBackbaseMasterTools.LNG_USECASESPECIFIC__LABEL);
_53.assign(_4f||"","css_class_name");
return bb.command.create(_53.getResult(),_51,"appendChild");
};
_1.buildCheckboxMenuPopUpItem=function(_54,_55,_56,_57){
var _58=this.buildMenuPopUpItem(_54,_55,_56,_57);
var _59=WGGIdGenerator.getInstance();
var _5a=new WGGSimpleTemplate(this.checkboxDef);
_5a.assign(_59.generateId(),"autoid0");
bb.command.create(_5a.getResult(),_58,"appendChild");
return _58;
};
_1.initializeBbElement=function(){
this.debugInterface.info("initializeBbElement");
var _5b=WGGIdGenerator.getInstance();
var _5c=this.cfg.getCurrentLngSource();
var _5d=this.cfg.getPrivilegeSource();
var _5e=this.buildOuterBox();
this.bbElement=_5e;
var _5f=this.buildInnerBox(_5e);
var _60=WGGBackbaseGUIUtils.getStandardDOMChildNodes(_5f,"td",null,true);
var _61=_60[0];
var _62=_60[1];
var _63=this.buildMenuBar(_61);
if(_5d.hasPrivilege("gui.file",true)){
var _64=this.buildMenuBarItem(_5c.lookupByName(WGGBackbaseMasterTools.LNG_FILE),"wgg-mastertools-file","file_",_63);
var _65=this.buildMenuPopUp(_64);
if(_5d.hasPrivilege("gui.file.print")){
var _66=this.buildMenuPopUpItem(_5c.lookupByName(WGGBackbaseMasterTools.LNG_FILE_PRINT_PLAIN),"wgg-mastertools-file-print-plain","filePrint_",_65);
}
if(_5d.hasPrivilege("gui.file.logout")){
var _67=this.buildMenuPopUpItem(_5c.lookupByName(WGGBackbaseMasterTools.LNG_FILE_LOGOUT),"wgg-mastertools-file-logout","fileLogout_",_65);
}
}
if(_5d.hasPrivilege("gui.bookmarks",true)){
var _68=this.buildMenuBarItem(_5c.lookupByName(WGGBackbaseMasterTools.LNG_BOOKMARKS),"wgg-mastertools-bookmarks","bookmarks_",_63);
var _69=this.buildMenuPopUp(_68);
if(_5d.hasPrivilege("gui.bookmarks.save")){
var _6a=this.buildMenuPopUpItem(_5c.lookupByName(WGGBackbaseMasterTools.LNG_BOOKMARK_SAVE),"wgg-mastertools-bookmark-save","bookmarkSave_",_69);
}
if(_5d.hasPrivilege("gui.bookmarks.alter")){
var _6b=this.buildMenuPopUpItem(_5c.lookupByName(WGGBackbaseMasterTools.LNG_BOOKMARKS_ORGANIZE),"wgg-mastertools-bookmarks-organize","bookmarksOrganize_",_69);
}
if(_5d.hasPrivilege("gui.bookmarks.load")){
var _6b=this.buildMenuPopUpItem(_5c.lookupByName(WGGBackbaseMasterTools.LNG_BOOKMARK_LOAD),"wgg-mastertools-bookmark-load","bookmarkLoad_",_69);
}
}
if(_5d.hasPrivilege("gui.windows.layoutManager",true)){
var _6c=this.buildMenuBarItem(_5c.lookupByName(WGGBackbaseMasterTools.LNG_WINDOWS_LAYOUT_MNG),"wgg-mastertools-layout-mng","layoutMng_",_63);
var _6d=this.buildMenuPopUp(_6c);
if(_5d.hasPrivilege("gui.windows.layoutManager.change")){
var _6e=this.buildMenuPopUpItem(_5c.lookupByName(WGGBackbaseMasterTools.LNG_WINDOWS_LAYOUT_MNG_ARRANGE),"wgg-mastertools-layout-mng-arrange","layoutMngArrange_",_6d);
var _6f=this.buildMenuPopUp(_6e);
var _70=this.buildMenuPopUpItem(_5c.lookupByName(WGGBackbaseMasterTools.LNG_WINDOWS_LAYOUT_MNG_0),"wgg-mastertools-layout-mng-0","layoutMng0_",_6f);
var _71=this.buildMenuPopUpItem(_5c.lookupByName(WGGBackbaseMasterTools.LNG_WINDOWS_LAYOUT_MNG_1),"wgg-mastertools-layout-mng-1","layoutMng1_",_6f);
}
if(_5d.hasPrivilege("gui.windows.layoutManager.open")){
var _72=this.buildMenuPopUpItem(_5c.lookupByName(WGGBackbaseMasterTools.LNG_WINDOWS_LAYOUT_MNG_OPEN),"wgg-mastertools-layout-mng-open","layoutMngOpen_",_6d);
}
if(_5d.hasPrivilege("gui.windows.layoutManager.minimize")){
var _73=this.buildMenuPopUpItem(_5c.lookupByName(WGGBackbaseMasterTools.LNG_WINDOWS_LAYOUT_MNG_MINIMIZE),"wgg-mastertools-layout-mng-minimize","layoutMngMinimize_",_6d);
}
if(_5d.hasPrivilege("gui.windows.taskBar.visibility.set")){
var _74=this.buildCheckboxMenuPopUpItem(_5c.lookupByName(WGGBackbaseMasterTools.LNG_WINDOWS_LAYOUT_TASKBAR_SET_VISIBILITY),"wgg-mastertools-layout-taskbar-set-visibility","layoutMngTaskbarSetVisibility_",_6d);
}
}
var _75=this.buildShortcutsMenuBar(_62);
if(_5d.hasPrivilege("gui.language.change")){
var _76=this.buildMenuBarItem(_5c.lookupByName(WGGBackbaseMasterTools.LNG_LANGUAGE_SHORTCUT),"wgg-mastertools-shortcuts-language","shourtcutsLanguage_",_75);
var _77=this.buildMenuPopUp(_76);
for(var i=0;i<this.cfg.lngSources.length;i++){
var _79=this.cfg.lngSources[i];
var _7a=_79.getEnumLanguageISOCode();
var _7b=this.buildMenuPopUpItem(_7a.getName(),"wgg-mastertools-shortcuts-language-"+_7a.getIso3Code(),"language_",_77);
}
}
if(_5d.hasPrivilege("gui.file.print")){
this.buildMenuBarItem(_5c.lookupByName(WGGBackbaseMasterTools.LNG_FILE_PRINT_PLAIN_SHORTCUT),"wgg-mastertools-shortcuts-print-plain","shourtcutsPrintPlain_",_75);
}
if(_5d.hasPrivilege("gui.file.logout")){
this.buildMenuBarItem(_5c.lookupByName(WGGBackbaseMasterTools.LNG_FILE_LOGOUT_SHORTCUT),"wgg-mastertools-shortcuts-logout","shourtcutsLogout_",_75);
}
_5e.setAttribute("visibility","visible");
};
_1.preInitialize=function(){
};
_1.postInitialize=function(){
var _7c=WGGBackbaseGUIUtils.getFirstChildNode(this.bbElement,"menuPopUpItem",/_bookmarkSave/,true);
var _7d=new WGGBackbaseEventsManager(this,_7c);
_7d.addEventListener("click",this.__onBookmarkSaveSelected,false);
this.eventsManagers.push(_7d);
var _7e=WGGBackbaseGUIUtils.getFirstChildNode(this.bbElement,"menuPopUpItem",/_bookmarksOrganize/,true);
var _7f=new WGGBackbaseEventsManager(this,_7e);
_7f.addEventListener("click",this.__onBookmarksOrganizeSelected,false);
this.eventsManagers.push(_7f);
var _80=WGGBackbaseGUIUtils.getFirstChildNode(this.bbElement,"menuPopUpItem",/_bookmarkLoad/,true);
var _81=new WGGBackbaseEventsManager(this,_80);
_81.addEventListener("click",this.__onBookmarkLoadSelected,false);
this.eventsManagers.push(_81);
var _82=WGGBackbaseGUIUtils.getFirstChildNode(this.bbElement,"menuBarItem",/menuBarItem_layoutMng_/,true);
var _83=new WGGBackbaseEventsManager(this,_82);
_83.addEventListener("click",this.__onLayoutMngSelected,false);
this.eventsManagers.push(_83);
var _84=WGGBackbaseGUIUtils.getFirstStandardDOMChildNode(_82,"input",null,true);
var _85=new WGGBackbaseEventsManager(this,_84);
_85.addEventListener("click",this.__onLayoutMngTaskBarVisibilityCheckBoxClicked,false);
this.eventsManagers.push(_83);
var _86=WGGBackbaseGUIUtils.getChildNodes(this.bbElement,"menuPopUpItem",/_layoutMng[0-9]+_/,true);
for(var i=0;i<_86.length;i++){
var _82=_86[i];
var _83=new WGGBackbaseEventsManager(this,_82);
_83.addEventListener("click",this.__onLayoutManagerSelected,false);
this.eventsManagers.push(_83);
}
};
_1.initialize=function(){
this.preInitialize();
this.initializeBbElement();
this.postInitialize();
};
_1.update=function(){
this.observerImpl.update.apply(this,arguments);
};
_1.initialize();
return _1;
};
WGGBackbaseMasterTools.LNG_USECASESPECIFIC__LABEL="lng_usecasespecific__label";
WGGBackbaseMasterTools.LNG_USECASESPECIFIC__TITLE="lng_usecasespecific__title";
WGGBackbaseMasterTools.LNG_FILE_LOGOUT_SHORTCUT="lng_file_logout_shortcut";
WGGBackbaseMasterTools.LNG_FILE_PRINT_PLAIN_SHORTCUT="lng_file_print_plain_shortcut";
WGGBackbaseMasterTools.LNG_LANGUAGE_SHORTCUT="lng_language_shortcut";
WGGBackbaseMasterTools.LNG_HISTORY_BACK="lng_history_back";
WGGBackbaseMasterTools.LNG_HISTORY_FORWARD="lng_history_forward";
WGGBackbaseMasterTools.LNG_BOOKMARKS="lng_bookmarks";
WGGBackbaseMasterTools.LNG_BOOKMARK_SAVE="lng_bookmark_save";
WGGBackbaseMasterTools.LNG_BOOKMARKS_ORGANIZE="lng_bookmarks_organize";
WGGBackbaseMasterTools.LNG_BOOKMARK_LOAD="lng_bookmark_load";
WGGBackbaseMasterTools.LNG_LANGUAGE="lng_language";
WGGBackbaseMasterTools.LNG_WINDOWS_LAYOUT_MNG_ARRANGE="lng_windows_layout_mng_arrange";
WGGBackbaseMasterTools.LNG_WINDOWS_LAYOUT_MNG_OPEN="lng_windows_layout_mng_open";
WGGBackbaseMasterTools.LNG_WINDOWS_ALL="lng_windows_all";
WGGBackbaseMasterTools.LNG_WINDOWS_LAYOUT_MNG_MINIMIZE="lng_windows_layout_mng_minimize";
WGGBackbaseMasterTools.LNG_WINDOWS_LAYOUT_TASKBAR_SET_VISIBILITY="lng_windows_layout_taskbar_set_visibility";
WGGBackbaseMasterTools.LNG_WINDOWS_LAYOUT_MNG="lng_windows_layout_mng";
WGGBackbaseMasterTools.LNG_WINDOWS_LAYOUT_MNG_0="lng_windows_layout_mng_0";
WGGBackbaseMasterTools.LNG_WINDOWS_LAYOUT_MNG_1="lng_windows_layout_mng_1";
WGGBackbaseMasterTools.LNG_SETTINGS="lng_settings";
WGGBackbaseMasterTools.LNG_LOGOUT="lng_logout";
WGGBackbaseMasterTools.LNG_FILE="lng_file";
WGGBackbaseMasterTools.LNG_FILE_PRINT_PLAIN="lng_file_print_plain";
WGGBackbaseMasterTools.LNG_FILE_LOGOUT="lng_file_logout";
WGGBackbaseMasterTools.LNG_MASTERTOOLS_SHORTCUTS_PRINT_PLAIN="lng_mastertools_shortcuts_print_plain";
WGGBackbaseMasterTools.LNG_MASTERTOOLS_SHORTCUTS_LOGOUT="lng_mastertools_shortcuts_logout";


/**********WGGBackbaseNamespaceResolver.js.tmp**********/
function WGGBackbaseNamespaceResolver(_1){
return WGGBackbaseNamespaceResolver.possibleNamespaces[_1]||null;
};
WGGBackbaseNamespaceResolver.possibleNamespaces={"xi":"http://www.w3.org/2001/XInclude","b":"http://www.backbase.com/2006/btl","c":"http://www.backbase.com/2006/command","d":"http://www.backbase.com/2006/tdl","e":"http://www.backbase.com/2006/xel","bf":"http://www.backbase.com/2007/forms","f":"http://www.backbase.com/2007/demos/forms","smil":"http://www.w3.org/2005/SMIL21/BasicAnimation","xs":"http://www.w3.org/2001/XMLSchema"};


/**********WGGBackbaseOptionPane.js.tmp**********/
function WGGBackbaseOptionPane(){
var _1=JSINER.extend(this,"WGGSubject");
var _2=arguments;
var _3=[];
for(var i=0;i<_2.length;i++){
var _5=_2[i];
switch(i){
case 0:
if(!WGGDataTypeUtils.instanceOf(_5,WGGWigeowebCfg)){
throw "cfg should be instance of WGGWigeowebCfg";
}
break;
case 1:
if(!_5){
_5="Dummy message text";
}
break;
case 2:
if(!_5){
_5="Dummy message title";
}
break;
case 3:
if(!WGGBackbaseOptionPane.isMessageTypeValid(_5)){
_5=WGGBackbaseOptionPane.PLAIN_MESSAGE;
}
break;
case 4:
if(!WGGBackbaseOptionPane.isOptionTypeValid(_5)){
_5=WGGBackbaseOptionPane.DEFAULT_OPTION;
}
break;
case 5:
if(!_5){
_5=null;
}
break;
case 6:
if(_5!=null){
if(!WGGDataTypeUtils.isArray(_5)){
throw "choises (arguments[5]) should be an array";
}
}
break;
case 7:
if(!_5){
if(_3[6]!=null){
if(_3[6].length>0){
_5=_3[6][0];
}
}
}else{
var _6=false;
if(_3[6]!=null){
for(var j=0;j<_3[6].length;j++){
var _8=_3[6][j];
if(_8==_5){
var _6=true;
break;
}
}
}
if(!_6){
_5=null;
}
}
break;
}
_3[i]=_5;
}
var _9=this;
_1.cfg=_3[0];
_1.bbElement=null;
_1.eventsManagers=[];
_1.debugInterface=null;
try{
if(WGGDataTypeUtils.isObject(WGGAbstractDebugInterface.gDebugInterface)){
_1.debugInterface=WGGAbstractDebugInterface.gDebugInterface;
}else{
throw "WGGAbstractDebugInterface.gDebugInterface probably undefined";
}
}
catch(e){
_1.debugInterface=new WGGNullDebugInterface();
}
_1.__onOkayButtonClicked=function __okayButtonClicked(){
var _a=arguments[0];
var _b=_a.currentTarget;
this.bbElement.close();
};
_1.__onYesButtonClicked=function __yesButtonClicked(){
var _c=arguments[0];
var _d=_c.currentTarget;
this.bbElement.close();
};
_1.__onNoButtonClicked=function __noButtonClicked(){
var _e=arguments[0];
var _f=_e.currentTarget;
this.bbElement.close();
};
_1.__onCancelButtonClicked=function __cancelButtonClicked(){
var evt=arguments[0];
var tgt=evt.currentTarget;
this.bbElement.close();
};
_1.getMessage=function(){
return _3[1];
};
_1.getTitle=function(){
return _3[2];
};
_1.getMessageType=function(){
return _3[3];
};
_1.getOptionType=function(){
return _3[4];
};
_1.getCssClassName=function(){
return _3[5];
};
_1.getOptions=function(){
return _3[6];
};
_1.getInitialValue=function(){
return _3[7];
};
_1.addOkayButton=function(_12){
if(this.bbElement==null){
return;
}
if(!WGGDataTypeUtils.isArray(_12)){
_12=[null];
}
var _13=this.cfg.getCurrentLngSource();
var _14=new WGGSimpleTemplate(WGGBackbaseOptionPane.modalButtonDef);
var _15=WGGIdGenerator.getInstance();
_14.assign(_15.generateId(),"autoid0");
var _16=_12[0]||_13.lookupByName(WGGBackbaseOptionPane.LNG_MESSAGE_DIALOG_BUTTON_OKAY,WGGBackbaseOptionPane.LNG_MESSAGE_DIALOG_BUTTON_OKAY);
_14.assign(_16,"lng_usecasespecific__message_button_text");
var _17=this.bbElement.getProperty("childNodes");
var _18=_17[_17.length-1];
var _19=bb.command.create(_14.getResult(),_18,"appendChild");
var _1a=new WGGBackbaseEventsManager(this,_19);
_1a.addEventListenersMap({"click":this.__onOkayButtonClicked},false);
this.eventsManagers.push(_1a);
return _19;
};
_1.addCancelButton=function(_1b){
if(this.bbElement==null){
return;
}
if(!WGGDataTypeUtils.isArray(_1b)){
_1b=[null];
}
var _1c=this.cfg.getCurrentLngSource();
var _1d=new WGGSimpleTemplate(WGGBackbaseOptionPane.modalButtonDef);
var _1e=WGGIdGenerator.getInstance();
_1d.assign(_1e.generateId(),"autoid0");
var _1f=_1b[0]||_1c.lookupByName(WGGBackbaseOptionPane.LNG_MESSAGE_DIALOG_BUTTON_CANCEL,WGGBackbaseOptionPane.LNG_MESSAGE_DIALOG_BUTTON_CANCEL);
_1d.assign(_1f,"lng_usecasespecific__message_button_text");
var _20=this.bbElement.getProperty("childNodes");
var _21=_20[_20.length-1];
var _22=bb.command.create(_1d.getResult(),_21,"appendChild");
var _23=new WGGBackbaseEventsManager(this,_22);
_23.addEventListenersMap({"click":this.__onCancelButtonClicked},false);
this.eventsManagers.push(_23);
return _22;
};
_1.addYesButton=function(_24){
if(this.bbElement==null){
return;
}
if(!WGGDataTypeUtils.isArray(_24)){
_24=[null];
}
var _25=this.cfg.getCurrentLngSource();
var _26=new WGGSimpleTemplate(WGGBackbaseOptionPane.modalButtonDef);
var _27=WGGIdGenerator.getInstance();
_26.assign(_27.generateId(),"autoid0");
var _28=_24[0]||_25.lookupByName(WGGBackbaseOptionPane.LNG_MESSAGE_DIALOG_BUTTON_YES,WGGBackbaseOptionPane.LNG_MESSAGE_DIALOG_BUTTON_YES);
_26.assign(_28,"lng_usecasespecific__message_button_text");
var _29=this.bbElement.getProperty("childNodes");
var _2a=_29[_29.length-1];
var _2b=bb.command.create(_26.getResult(),_2a,"appendChild");
var _2c=new WGGBackbaseEventsManager(this,_2b);
_2c.addEventListenersMap({"click":this.__onYesButtonClicked},false);
this.eventsManagers.push(_2c);
return _2b;
};
_1.addNoButton=function(_2d){
if(this.bbElement==null){
return;
}
if(!WGGDataTypeUtils.isArray(_2d)){
_2d=[null];
}
var _2e=this.cfg.getCurrentLngSource();
var _2f=new WGGSimpleTemplate(WGGBackbaseOptionPane.modalButtonDef);
var _30=WGGIdGenerator.getInstance();
_2f.assign(_30.generateId(),"autoid0");
var _31=_2d[0]||_2e.lookupByName(WGGBackbaseOptionPane.LNG_MESSAGE_DIALOG_BUTTON_NO,WGGBackbaseOptionPane.LNG_MESSAGE_DIALOG_BUTTON_NO);
_2f.assign(_31,"lng_usecasespecific__message_button_text");
var _32=this.bbElement.getProperty("childNodes");
var _33=_32[_32.length-1];
var _34=bb.command.create(_2f.getResult(),_33,"appendChild");
var _35=new WGGBackbaseEventsManager(this,_34);
_35.addEventListenersMap({"click":this.__onNoButtonClicked},false);
this.eventsManagers.push(_35);
return _34;
};
_1.addOkayCancelButtons=function(_36,_37){
if(!WGGDataTypeUtils.isArray(_36)){
_36=[null,null];
}
while(_36.length<2){
_36.push(null);
}
var _38=this.addOkayButton([_36[0]]);
var _39=this.addCancelButton([_36[1]]);
};
_1.addYesNoButtons=function(_3a,_3b){
if(!WGGDataTypeUtils.isArray(_3a)){
_3a=[null,null];
}
while(_3a.length<2){
_3a.push(null);
}
var _3c=this.addYesButton([_3a[0]]);
var _3d=this.addNoButton([_3a[1]]);
};
_1.addYesNoCancelButtons=function(_3e,_3f){
if(!WGGDataTypeUtils.isArray(_3e)){
_3e=[null,null];
}
while(_3e.length<3){
_3e.push(null);
}
var _40=this.addYesButton([_3e[0]]);
var _41=this.addNoButton([_3e[1]]);
var _42=this.addCancelButton([_3e[2]]);
};
_1.show=function(_43){
if(_43==null){
return;
}
var _44=WGGIdGenerator.getInstance();
var _45=this.cfg.getCurrentLngSource();
var _46=new WGGSimpleTemplate(WGGBackbaseOptionPane.modalDialogDef);
_46.assign(_44.generateId(),"autoid0");
_46.assign(this.getTitle(),"lng_usecasespecific__message_label");
var _47=this.getMessage();
var _48=false;
if(!WGGDataTypeUtils.isString(_47)){
var _49=WGGReflection.createMember(_47);
var _4a=_49.getType();
if(_47.message){
_4a+=": "+_47.message;
}
_48=true;
}
_46.assign(_47,"lng_usecasespecific__message_text");
var _4b=this.getMessageType();
var _4c=this.getCssClassName();
if(_4c==null){
switch(_4b){
case WGGBackbaseOptionPane.PLAIN_MESSAGE:
_4c="wgg-plain-message-window";
break;
case WGGBackbaseOptionPane.ERROR_MESSAGE:
_4c="wgg-error-message-window";
break;
case WGGBackbaseOptionPane.INFORMATION_MESSAGE:
_4c="wgg-information-message-window";
break;
case WGGBackbaseOptionPane.WARNING_MESSAGE:
_4c="wgg-warning-message-window";
break;
case WGGBackbaseOptionPane.QUESTION_MESSAGE:
_4c="wgg-question-message-window";
break;
}
}
this.bbElement=bb.command.create(_46.getResult(),_43,"appendChild");
var _4d=WGGHtmlUtils.getElementsByClassName(this.bbElement.viewNode,"div","btl-modal-content");
if(_4d!=null){
bb.html.addClass(_4d[0],_4c);
}
var _4e=this.getOptionType();
var _4f=this.getOptions();
var _50=this.getInitialValue();
if(_4e==null){
_4e=WGGBackbaseOptionPane.DEFAULT_OPTION;
}
switch(_4e){
case WGGBackbaseOptionPane.DEFAULT_OPTION:
this.addOkayButton(_4f,_50);
break;
case WGGBackbaseOptionPane.YES_NO_OPTION:
this.addYesNoButtons(_4f,_50);
break;
case WGGBackbaseOptionPane.YES_NO_CANCEL_OPTION:
this.addYesNoCancelButtons(_4f,_50);
break;
case WGGBackbaseOptionPane.OK_CANCEL_OPTION:
this.addOkayCancelButtons(_4f,_50);
break;
default:
throw "implementation error: option type is not valid ("+_4e+")";
}
this.bbElement.open();
return this;
};
return _1;
};
WGGBackbaseOptionPane.showMessageDialog=function(cfg,_52,_53,_54,_55,_56){
var _57=new WGGBackbaseOptionPane(cfg,_53,_54,_55,null,_56,null,null);
return _57.show(_52);
};
WGGBackbaseOptionPane.showOptionDialog=function(cfg,_59,_5a,_5b,_5c,_5d,_5e,_5f,_60){
var _61=new WGGBackbaseOptionPane(cfg,_5a,_5b,_5d,_5c,_5e,_5f,_60);
return _61.show(_59);
};
WGGBackbaseOptionPane.showConfirmDialog=function(){
};
WGGBackbaseOptionPane.isMessageTypeValid=function(_62){
if(_62==null){
return false;
}
if(!WGGDataTypeUtils.isNumber(_62)){
return false;
}
return (_62>=-1&&_62<=3);
};
WGGBackbaseOptionPane.isOptionTypeValid=function(_63){
if(_63==null){
return false;
}
if(!WGGDataTypeUtils.isNumber(_63)){
return false;
}
return (_63>=-1&&_63<=2);
};
WGGBackbaseOptionPane.modalDialogDef="<b:modal xmlns:b=\"http://www.backbase.com/2006/btl\" xmlns=\"http://www.w3.org/1999/xhtml\" label=\"{{lng_usecasespecific__message_label}}\" id=\"messageDialog_{{autoid0}}\" for=\"..\" dragConstraint=\"..\" resizeConstraint=\"..\">"+"{{lng_usecasespecific__message_text}}"+"<br/><br/>"+"<div style=\"text-align:center; margin-bottom: 12px;\"/>"+"</b:modal>";
WGGBackbaseOptionPane.modalButtonDef="<b:button xmlns:b=\"http://www.backbase.com/2006/btl\" id=\"button_{{autoid0}}\" style=\"margin-left:5px;margin-right:5px;\">"+"{{lng_usecasespecific__message_button_text}}"+"</b:button>";
WGGBackbaseOptionPane.PLAIN_MESSAGE=-1;
WGGBackbaseOptionPane.ERROR_MESSAGE=0;
WGGBackbaseOptionPane.INFORMATION_MESSAGE=1;
WGGBackbaseOptionPane.WARNING_MESSAGE=2;
WGGBackbaseOptionPane.QUESTION_MESSAGE=3;
WGGBackbaseOptionPane.DEFAULT_OPTION=-1;
WGGBackbaseOptionPane.YES_NO_OPTION=0;
WGGBackbaseOptionPane.YES_NO_CANCEL_OPTION=1;
WGGBackbaseOptionPane.OK_CANCEL_OPTION=2;
WGGBackbaseOptionPane.LNG_MESSAGE_DIALOG_BUTTON_OKAY="lng_message_dialog_button_okay";
WGGBackbaseOptionPane.LNG_MESSAGE_DIALOG_BUTTON_YES="lng_message_dialog_button_yes";
WGGBackbaseOptionPane.LNG_MESSAGE_DIALOG_BUTTON_NO="lng_message_dialog_button_no";
WGGBackbaseOptionPane.LNG_MESSAGE_DIALOG_BUTTON_CANCEL="lng_message_dialog_button_cancel";


/**********WGGBackbaseProgressBar.js.tmp**********/
function WGGBackbaseProgressBar(_1,_2){
this.bbElement=null;
this.cfg=_1;
this.parentDomElement=_2;
this.boxDef="<b:box xmlns:b=\"http://www.backbase.com/2006/btl\" xmlns=\"http://www.w3.org/1999/xhtml\" id=\"box_{{autoid0}}\" position=\"absolute\" class=\"wgg-progress-bar\" visibility=\"hidden\" height=\"15px\" width=\"100%\" style=\"color:darkblue;font-size:7pt;padding-left:5px;bottom:0px;\">"+"<div style=\"position:absolute;left:0px;width:0px;height:0px;background-color:#CDE9FF;-moz-opacity:0.5;filter:alpha(opacity=50);opacity: 0.5;-khtml-opacity: 0.5;\"/>"+"</b:box>";
this.animateHandle=null;
this.debugInterface=null;
try{
if(WGGDataTypeUtils.isObject(WGGAbstractDebugInterface.gDebugInterface)){
this.debugInterface=WGGAbstractDebugInterface.gDebugInterface;
}else{
throw "WGGAbstractDebugInterface.gDebugInterface probably undefined";
}
}
catch(e){
this.debugInterface=new WGGNullDebugInterface();
}
this.eventsManagers=[];
this.initializeBbElement=function(){
this.debugInterface.info("initializeBbElement");
var _3=this.cfg.getCurrentLngSource();
var _4=WGGIdGenerator.getInstance();
var _5=new WGGSimpleTemplate(this.boxDef);
_5.assign(_4.generateId(),"autoid0");
this.bbElement=bb.command.create(_5.getResult(),this.parentDomElement,"appendChild");
};
this.preInitialize=function(){
};
this.postInitialize=function(){
};
this.initialize=function(){
this.preInitialize();
this.initializeBbElement();
this.postInitialize();
};
this.simulate=function(){
var _6=WGGBackbaseGUIUtils.getStandardDOMChildNodes(this.bbElement.viewNode,"div",null,true);
if(_6==null){
return;
}
if(_6.length==0){
return;
}
_6=_6[0];
if(this.animateHandle){
return;
}
var _7=WGGGUIUtils.getDimension(this.bbElement.viewNode);
var _8=_7.width;
var _9=_7.height;
_6.style.height=(_9-2)+"px";
this.bbElement.setAttribute("visibility","visible");
var _a=50;
var _b=this;
function __animate(_c){
_6.style.width=_c+"px";
if(_c>=_8){
clearTimeout(_b.animateHandle);
_b.animateHandle=null;
setTimeout(function(){
_b.bbElement.setAttribute("visibility","hidden");
},1);
return;
}
_c+=_a;
_b.animateHandle=setTimeout(function(){
__animate(_c);
},2);
};
__animate(0);
};
this.update=function(){
if(arguments.length!=4){
throw new Error("implementation error: 4 arguments from command notifying mechanism expected");
}
var _d=WGGBackbaseGUIUtils.getStandardDOMChildNodes(this.bbElement.viewNode,"div",null,true);
if(_d==null){
return;
}
if(_d.length==0){
return;
}
_d=_d[0];
var _e=this.bbElement.getProperty("lastChild");
if(_e.getProperty("nodeType")==3){
this.bbElement.removeChild(_e);
}
var _f=arguments[1];
var _10=arguments[2];
switch(_10){
case WGGEnumCmdStatus.STATUS_STARTED:
this.bbElement.appendChild(bb.document.createTextNode(_f+" started..."));
this.simulate();
break;
case WGGEnumCmdStatus.STATUS_DONE_SUCCESS:
case WGGEnumCmdStatus.STATUS_DONE_FAILURE:
this.bbElement.appendChild(bb.document.createTextNode(_f+" done..."));
break;
}
};
this.initialize();
};


/**********WGGBackbaseTaskBar.js.tmp**********/
function WGGBackbaseTaskBar(){
var _1=JSINER.extend(this,"WGGSubject");
var _2=null;
var _3=null;
switch(arguments.length){
case 0:
return;
case 1:
throw "count of arguments not sufficient to initialize this widget (WGGBackbaseTaskBar)";
case 2:
_2=arguments[0];
_3=arguments[1];
if(_2==null){
throw "cfg must not be null";
}
if(!WGGDataTypeUtils.instanceOf(_2,WGGWigeowebCfg)){
throw "cfg should be instance of WGGWigeowebCfg";
}
if(_3==null){
throw "parentDomElement must not be null";
}
break;
}
var _4=this;
_1.taskBarDef="<b:taskBar xmlns:b=\"http://www.backbase.com/2006/btl\" orientation=\"top\"/>";
_1.bbElement=null;
_1.parentDomElement=_3;
_1.eventsManagers=[];
_1.defaultWidthComputationRule=WGGBackbaseTaskBar.WIDTH_COMPUTATION_RULE_AVG;
_1.currentWidthComputationRule=null;
_1.itemControllersArr=new WGGArray();
_1.optTextStrategies={"WIDTH_AVG":function __computeAvgWidth(){
var _5=arguments[0];
var _6=0;
var _7=0;
var _8=0;
for(var i=0;i<_5.length;i++){
if(_5[i].innerWidth==0&&_5[i].textLength==0){
continue;
}
_6+=_5[i].innerWidth;
_7+=_5[i].textLength;
_8++;
}
var _a=Math.ceil(_6/_8);
var _b=Math.floor(_7/_8);
var _c=[];
for(var i=0;i<_5.length;i++){
_c[i]={};
var _d="";
if(_5[i].textLength>_b){
if(_b>4){
_d=_5[i].text.substr(0,_b-3)+"...";
}else{
_d=_5[i].text.substr(0,_b);
}
}else{
_d=_5[i].text;
}
_c[i].width=_a;
_c[i].text=_d;
}
return _c;
},"WIDTH_MIN":function __computeMinWidth(){
var _e=arguments[0];
var _f=-1;
var _10=-1;
for(var i=0;i<_e.length;i++){
if(_f==-1){
_f=_e[i].innerWidth;
_10=_e[i].textLength;
continue;
}
if(_e[i].innerWidth==0&&_e[i].textLength==0){
continue;
}
if(_e[i].innerWidth<_f){
_f=_e[i].innerWidth;
_10=_e[i].textLength;
}
}
var _12=[];
for(var i=0;i<_e.length;i++){
_12[i]={};
var _13="";
if(_e[i].textLength>_10){
if(_10>3){
_13=_e[i].text.substr(0,_10-3)+"...";
}else{
_13=_e[i].text.substr(0,_10);
}
}else{
_13=_e[i].text;
}
_12[i].width=_f;
_12[i].text=_13;
}
return _12;
},"WIDTH_MAX":function __computeMaxWidth(){
WGGAbstractDebugInterface.gDebugInterface.debug("///////////////////////////////////////");
WGGAbstractDebugInterface.gDebugInterface.debug("STRATEGY: __computeMaxWidth");
var _14=arguments[0];
var _15=-1;
var _16=-1;
for(var i=0;i<_14.length;i++){
if(_15==-1){
_15=_14[i].innerWidth;
_16=_14[i].textLength;
continue;
}
if(_14[i].innerWidth==0&&_14[i].textLength==0){
continue;
}
if(_14[i].innerWidth>_15){
_15=_14[i].innerWidth;
_16=_14[i].textLength;
}
}
WGGAbstractDebugInterface.gDebugInterface.debug("maxWidth: "+_15);
WGGAbstractDebugInterface.gDebugInterface.debug("maxTextLength: "+_16);
WGGAbstractDebugInterface.gDebugInterface.debug("textDimensions");
var _18=[];
for(var i=0;i<_14.length;i++){
_18[i]={};
var _19="";
if(_14[i].textLength>_16){
if(_16>3){
_19=_14[i].text.substr(0,_16-3)+"...";
}else{
_19=_14[i].text.substr(0,_16);
}
}else{
_19=_14[i].text;
}
_18[i].width=_15;
_18[i].text=_19;
WGGAbstractDebugInterface.gDebugInterface.debug("..... "+i);
WGGAbstractDebugInterface.gDebugInterface.debug(_18[i]);
}
WGGAbstractDebugInterface.gDebugInterface.debug("///////////////////////////////////////");
return _18;
}};
_1.TaskBarItemController=function(_1a){
this.bbSubElement=_1a;
this.getItem=function(){
return this.bbSubElement;
};
this.iconize=function(){
var w=this.bbSubElement.getProperty("window");
var _1c=w.getProperty("iconElement");
var _1d=_1c.className;
var _1e=_1d.split(/ /g);
if(_1e.length>0){
bb.html.addClass(this.bbSubElement.viewGate,[_1e[_1e.length-1]]);
}
};
this.optimize=function(_1f,_20){
if(this.bbSubElement==null){
return;
}
var _21=15;
this.bbSubElement.viewGate.replaceChild(document.createTextNode(_20),this.bbSubElement.viewGate.firstChild);
bb.html.setStyle(this.bbSubElement.viewNode,"width",(_1f+_21)+"px");
WGGAbstractDebugInterface.gDebugInterface.warn(this.bbSubElement.viewNode.tagName+" wird "+(_1f+_21)+"px breit sein (text is "+this.bbSubElement.viewGate.firstChild.nodeValue+")");
};
};
_1.__onDomNodeInserted=function __domNodeInserted(){
this.iconize();
if(this.currentWidthComputationRule==null){
this.automate();
}else{
this.optimize(this.currentWidthComputationRule);
}
};
_1.patch=function(){
if(WGGDataTypeUtils.isFunction(btl.taskBar.updateWidth)){
btl.taskBar.updateWidth=function(_22){
WGGAbstractDebugInterface.gDebugInterface.debug("//////////////////////////////////////////////");
WGGAbstractDebugInterface.gDebugInterface.debug("btl.taskBar.updateWidth");
var _23=_22.getProperty("items");
var _24="auto";
var _25=_23.length;
if(_4){
if(_4.currentWidthComputationRule!=null){
_24=null;
}
}
WGGAbstractDebugInterface.gDebugInterface.debug(_25);
var _26=0;
for(var i=0;i<_25.length;i++){
_26+=parseInt(bb.html.getStyle(_25[i].viewNode,"width"));
}
var _28=_22.getProperty("orientation");
if(_28==="top"||_28==="bottom"||_28==="horizontal"){
var _29=bb.html.getBoxObject(_22.viewNode).width-(_25*2+5);
if(_29<_26){
bb.html.setStyle(_22.viewNode,"width",_26);
}
}
for(var i=_25-1;i>=0;i--){
if(_24!=="auto"){
}else{
WGGAbstractDebugInterface.gDebugInterface.debug("auto");
_23[i].viewNode.style.width="auto";
if(WGGBrowserDetector.IS_IE){
var _2a=_23[i].viewGate.parentNode;
var _2b=document.createElement("span");
_2b.appendChild(document.createTextNode(_23[i].viewNode.title));
_2b.style.visibility="hidden";
_2a.appendChild(_2b);
var _2c=WGGGUIUtils.estimateFontDimensions(_2b,_23[i].viewNode.title);
_2a.removeChild(_2b);
var _2d=_2c.width+40;
_23[i].viewNode.style.width=_2d+"px";
}
}
}
};
}
};
_1.getItems=function(){
if(this.bbElement==null){
return;
}
var _2e=this.bbElement.getProperty("items");
return _2e;
};
_1.getItemController=function(_2f){
if(this.itemControllersArr==null){
return;
}
for(var i=0;i<this.itemControllersArr.length();i++){
var _31=this.itemControllersArr.get(i);
if(_31.getItem()==_2f){
return _31;
}
}
var _31=new this.TaskBarItemController(_2f);
this.itemControllersArr.add(_31);
return _31;
};
_1.removeItemController=function(_32){
if(this.itemControllersArr==null){
return;
}
for(var i=0;i<this.itemControllersArr.length();i++){
var _34=this.itemControllersArr.get(i);
if(_34.getItem()==_32){
return this.itemControllersArr.remove(_34);
}
}
};
_1.automate=function(){
WGGAbstractDebugInterface.gDebugInterface.debug("//////////////////////////////////////////////");
WGGAbstractDebugInterface.gDebugInterface.debug("automate");
var _35=this.getItems();
if(_35==null){
return;
}
if(_35.length==0){
return;
}
this.currentWidthComputationRule=null;
for(var i=0;i<_35.length;i++){
var _37=_35[i];
_37.viewGate.replaceChild(document.createTextNode(_37.viewNode.title),_37.viewGate.firstChild);
bb.html.setStyle(_37.viewNode,"width","auto");
}
btl.taskBar.updateWidth(this.bbElement);
WGGAbstractDebugInterface.gDebugInterface.debug("//////////////////////////////////////////////");
};
_1.optimize=function(_38){
var _39=this.getItems();
if(_39==null){
return;
}
if(_39.length==0){
return;
}
if(!WGGBackbaseTaskBar.isWidthComputationRuleValid(_38)){
_38=this.defaultWidthComputationRule;
}
this.automate();
this.currentWidthComputationRule=_38;
var _3a=[];
for(var i=0;i<_39.length;i++){
var _3c=_39[i];
var _3d=WGGGUIUtils.estimateFontDimensions(_3c.viewGate,_3c.viewNode.title);
WGGAbstractDebugInterface.gDebugInterface.info(_3d);
_3a[i]=_3d;
}
var _3e=this.optTextStrategies[_38];
var _3f=_3e.call(this,_3a);
for(var i=0;i<_39.length;i++){
var _3c=_39[i];
var _40=_3f[i];
var _41=this.getItemController(_3c);
_41.optimize(_40.width,_40.text);
}
};
_1.iconize=function(){
var _42=this.getItems();
for(var i=0;i<_42.length;i++){
var _44=_42[i];
var _45=this.getItemController(_44);
_45.iconize();
}
};
_1.initializeBbElement=function(){
this.bbElement=bb.command.create(this.taskBarDef,this.parentDomElement,"appendChild");
this.patch();
};
_1.preInitialize=function(){
};
_1.postInitialize=function(){
var _46=new WGGBackbaseEventsManager(this,this.bbElement);
_46.addEventListenersMap({"DOMNodeInserted":this.__onDomNodeInserted,"DOMNodeRemoved":this.__onDomNodeInserted},false);
this.eventsManagers.push(_46);
};
_1.initialize=function(){
this.preInitialize();
this.initializeBbElement();
this.postInitialize();
};
_1.initialize();
return _1;
};
WGGBackbaseTaskBar.WIDTH_COMPUTATION_RULE_AVG="WIDTH_AVG";
WGGBackbaseTaskBar.WIDTH_COMPUTATION_RULE_MIN="WIDTH_MIN";
WGGBackbaseTaskBar.WIDTH_COMPUTATION_RULE_MAX="WIDTH_MAX";
WGGBackbaseTaskBar.VALID_WIDTH_COMPUTATION_RULES=[WGGBackbaseTaskBar.WIDTH_COMPUTATION_RULE_AVG,WGGBackbaseTaskBar.WIDTH_COMPUTATION_RULE_MIN,WGGBackbaseTaskBar.WIDTH_COMPUTATION_RULE_MAX];
WGGBackbaseTaskBar.isWidthComputationRuleValid=function(_47){
for(var i=0;i<WGGBackbaseTaskBar.VALID_WIDTH_COMPUTATION_RULES.length;i++){
if(WGGBackbaseTaskBar.VALID_WIDTH_COMPUTATION_RULES[i]==_47){
return true;
}
}
return false;
};


/**********WGGBackbaseToolBar.js.tmp**********/
function WGGBackbaseToolBar(){
var _1=JSINER.extend(this,"WGGSubject");
var _2=null;
var _3=null;
switch(arguments.length){
case 0:
return;
case 1:
throw "count of arguments not sufficient to initialize this widget (WGGBackbseToolBar)";
case 2:
_2=arguments[0];
_3=arguments[1];
if(_2==null){
throw "cfg must not be null";
}
if(!WGGDataTypeUtils.instanceOf(_2,WGGWigeowebCfg)){
throw "cfg should be instance of WGGWigeowebCfg";
}
if(_3==null){
throw "parentDomElement must not be null";
}
break;
}
_1.cfg=_2;
_1.bbElement=null;
_1.parentDomElement=_3;
_1.bbWindowIndicator=null;
_1.windowDef="<b:window xmlns:b=\"http://www.backbase.com/2006/btl\" class=\"wgg-toolBarExt-frame\" buttons=\"none\" "+"icon=\"wgg-toolBarExt-frame\" title=\"{{lng_toolbox_title}}\" label=\"{{lng_toolbox_label}}\" id=\"toolbar_{{autoid0}}\" "+"top=\"50px\" left=\"50px\" visibility=\"hidden\" dragConstraint=\"..\" resizeConstraint=\"..\" "+"padding=\"0px\" overflow=\"hidden\"></b:window>";
_1.toolBarExtDef="<b:toolBarExt xmlns:b=\"http://www.backbase.com/2006/btl\">"+"<b:toolBarExtButton height=\"10px\" title=\"{{lng_click_here_to_toggle}}\" class=\"wgg-toolBarExt-toggle\">&nbsp;</b:toolBarExtButton>"+"<b:toolBarExtSwitch icon=\"wgg-toolBarExt-zoom-in\" title=\"{{lng_zoom_in}}\" active=\"false\">&nbsp;</b:toolBarExtSwitch>"+"<b:toolBarExtSwitch icon=\"wgg-toolBarExt-zoom-out\" title=\"{{lng_zoom_out}}\" active=\"false\">&nbsp;</b:toolBarExtSwitch>"+"<b:toolBarExtSwitch icon=\"wgg-toolBarExt-pan\" active=\"false\" title=\"{{lng_pan}}\">&nbsp;</b:toolBarExtSwitch>"+"<b:toolBarExtButton icon=\"wgg-toolBarExt-zoom-max-extent\" title=\"{{lng_zoom_max_extent}}\">&nbsp;</b:toolBarExtButton>"+"<b:toolBarExtSwitch icon=\"wgg-toolBarExt-point-identify\" title=\"{{lng_point_identify}}\" active=\"false\">&nbsp;</b:toolBarExtSwitch>"+"<b:toolBarExtSwitch icon=\"wgg-toolBarExt-rect-identify\" title=\"{{lng_rect_identify}}\" active=\"false\">&nbsp;</b:toolBarExtSwitch>"+"<b:toolBarExtSwitch icon=\"wgg-toolBarExt-polygon-identify\" title=\"{{lng_polygon_identify}}\" active=\"false\">&nbsp;</b:toolBarExtSwitch>"+"</b:toolBarExt>";
_1.bbWindow=null;
_1.toolBarSwitchesArr=new WGGArray();
_1.animateHandle=null;
_1.bExpanded=true;
_1.defTemplates=null;
_1.eventsManagers=[];
_1.debugInterface=null;
try{
if(WGGDataTypeUtils.isObject(WGGAbstractDebugInterface.gDebugInterface)){
_1.debugInterface=WGGAbstractDebugInterface.gDebugInterface;
}else{
throw "WGGAbstractDebugInterface.gDebugInterface probably undefined";
}
}
catch(e){
_1.debugInterface=new WGGNullDebugInterface();
}
var _4=_1;
_1.__onFlapClicked=function __flapClicked(){
if(this.animateHandle!=null){
return;
}
var _5=this.bbElement.viewNode;
bb.command.setStyle(_5,{"position":"relative"});
var _6=WGGGUIUtils.getRelativePosition(_5);
var _7=WGGGUIUtils.getDimension(this.bbElement.getProperty("barViewNode"));
var _8=_6.left;
var _9=_8;
var _a=0;
if(this.bExpanded){
_8-=_7.width+2;
_a=-1;
}else{
_8+=_7.width+2;
_a=1;
}
var _b=this;
function __animate(_c){
bb.command.setStyle(_5,{"left":_c+"px"});
if(_c==_8){
clearTimeout(_b.animateHandle);
_b.animateHandle=null;
return;
}
_c+=_a;
_b.animateHandle=setTimeout(function(){
__animate(_c);
},1);
};
__animate(_9);
this.bExpanded=!this.bExpanded;
};
_1.__onWindowIndicatorClicked=function __windowIndicatorClicked(){
this.bbWindowIndicator.setProperty("disabled",true);
var _d=this.getOriginalElementParent();
var _e=this.bbElement.getProperty("parentNode");
var _f=WGGGUIUtils.getRelativePosition(this.bbElement.viewNode);
if(this.bbWindow==null){
var _10=this.defTemplates.get(this.windowDef);
this.bbWindow=bb.command.create(_10.getResult(),_d,"appendChild");
}
var _11=(_e==_d)?this.bbWindow:_d;
var _12=_e.removeChild(this.bbElement);
_11.appendChild(_12);
if(this.bbWindow.getAttribute("visibility")=="hidden"){
this.bbWindow.setAttribute("visibility","visible");
if(this.bbWindow.getProperty("open")==false){
this.bbWindow.open();
}
_12.hideFlap();
}else{
this.bbWindow.setAttribute("visibility","hidden");
if(this.bbWindow.getProperty("open")==true){
this.bbWindow.close();
}
_12.showFlap();
}
var _13=WGGGUIUtils.getDimension(this.bbElement.viewNode);
var _14=this.bbWindow.viewNode.firstChild.firstChild.firstChild;
var _15=WGGGUIUtils.getDimension(_14);
var _16=this.bbWindow.viewNode.childNodes[1];
var _17=parseInt(bb.html.getStyle(_16,"padding-right"));
var _18=parseInt(bb.html.getStyle(_16,"padding-bottom"));
var _19=_13.width+2*_17+(WGGBrowserDetector.IS_IE?2:8);
var _1a=_13.height+_15.height+2*_18-3;
var _1b=_f.top;
var _1c=_f.left;
this.bbWindow.setAttribute("top",_1b+"px");
this.bbWindow.setAttribute("left",_1c+"px");
var _1d=["width","resizeMinWidth","resizeMaxWidth"];
var _1e=["height","resizeMinHeight","resizeMaxHeight"];
for(var i=0;i<_1d.length;i++){
this.bbWindow.setAttribute(_1d[i],_19+"px");
this.bbWindow.setAttribute(_1e[i],_1a+"px");
}
this.bbWindowIndicator.setProperty("disabled",false);
};
_1.__onSwitchActivated=function __switchActivated(){
var evt=arguments[0];
var _21=evt.target;
var _22=this.bbElement.getProperty("childNodes");
for(var i=0;i<_22.length;i++){
var _24=_22[i];
if(bb.instanceOf(_24,"http://www.backbase.com/2006/btl","toolBarExtSwitch")){
if(_24==_21){
continue;
}
_24.setProperty("active",false);
}
}
};
_1.__onSwitchInactivated=function __switchInactivated(){
};
_1.__onSwitchClicked=function __switchClicked(){
var evt=arguments[0];
var tgt=evt.target;
var _27=tgt.getAttribute("icon");
switch(_27){
case "wgg-toolBarExt-zoom-in":
this.notify(this,"zoom-in",null);
break;
case "wgg-toolBarExt-zoom-out":
this.notify(this,"zoom-out",null);
break;
case "wgg-toolBarExt-pan":
this.notify(this,"pan",null);
break;
case "wgg-toolBarExt-point-identify":
this.notify(this,"point-identify",null);
break;
case "wgg-toolBarExt-rect-identify":
this.notify(this,"rect-identify",null);
break;
case "wgg-toolBarExt-polygon-identify":
this.notify(this,"polygon-identify",null);
break;
}
};
_1.__onButtonClicked=function __buttonClicked(){
var evt=arguments[0];
var tgt=evt.target;
var _2a=tgt.getAttribute("icon");
switch(_2a){
case "wgg-toolBarExt-zoom-max-extent":
this.notify(this,"zoom-max-extent",null);
break;
}
};
_1.getOriginalElementParent=function(){
return this.parentDomElement;
};
_1.initializeBbElement=function(){
var _2b=this.defTemplates.get(this.toolBarExtDef);
if(_2b==null){
return;
}
this.bbElement=bb.command.create(_2b.getResult(),this.parentDomElement,"appendChild");
};
_1.preInitialize=function(){
this.defTemplates=new WGGHashMap();
var _2c=new WGGSimpleTemplate(this.windowDef);
_2c.assign(this.cfg.getCurrentLngSource().lookupByName(WGGBackbaseToolBar.LNG_TOOLBOX_LABEL),WGGBackbaseToolBar.LNG_TOOLBOX_LABEL);
_2c.assign(this.cfg.getCurrentLngSource().lookupByName(WGGBackbaseToolBar.LNG_TOOLBOX_TITLE),WGGBackbaseToolBar.LNG_TOOLBOX_TITLE);
var _2d=WGGIdGenerator.getInstance();
_2c.assign(_2d.generateId(),"autoid0");
var _2e=new WGGSimpleTemplate(this.toolBarExtDef);
_2e.assign(this.cfg.getCurrentLngSource().lookupByName(WGGBackbaseToolBar.LNG_CLICK_HERE_TO_TOGGLE),WGGBackbaseToolBar.LNG_CLICK_HERE_TO_TOGGLE);
_2e.assign(this.cfg.getCurrentLngSource().lookupByName(WGGBackbaseToolBar.LNG_ZOOM_IN),WGGBackbaseToolBar.LNG_ZOOM_IN);
_2e.assign(this.cfg.getCurrentLngSource().lookupByName(WGGBackbaseToolBar.LNG_ZOOM_OUT),WGGBackbaseToolBar.LNG_ZOOM_OUT);
_2e.assign(this.cfg.getCurrentLngSource().lookupByName(WGGBackbaseToolBar.LNG_PAN),WGGBackbaseToolBar.LNG_PAN);
_2e.assign(this.cfg.getCurrentLngSource().lookupByName(WGGBackbaseToolBar.LNG_ZOOM_MAX_EXTENT),WGGBackbaseToolBar.LNG_ZOOM_MAX_EXTENT);
_2e.assign(this.cfg.getCurrentLngSource().lookupByName(WGGBackbaseToolBar.LNG_POINT_IDENTIFY),WGGBackbaseToolBar.LNG_POINT_IDENTIFY);
_2e.assign(this.cfg.getCurrentLngSource().lookupByName(WGGBackbaseToolBar.LNG_RECT_IDENTIFY),WGGBackbaseToolBar.LNG_RECT_IDENTIFY);
_2e.assign(this.cfg.getCurrentLngSource().lookupByName(WGGBackbaseToolBar.LNG_POLYGON_IDENTIFY),WGGBackbaseToolBar.LNG_POLYGON_IDENTIFY);
this.defTemplates.put(this.windowDef,_2c);
this.defTemplates.put(this.toolBarExtDef,_2e);
};
_1.postInitialize=function(){
var _2f=this.bbElement.getProperty("flapViewGate");
var _30=new WGGEventsManager(this,_2f);
_30.addEventListener("click",this,this.__onFlapClicked);
this.eventsManagers.push(_30);
var _31=this.bbElement.getProperty("childNodes");
this.debugInterface.debug(_31);
for(var i=0;i<_31.length;i++){
var _33=_31[i];
if(bb.instanceOf(_33,"http://www.backbase.com/2006/btl","toolBarExtSwitch")){
var _34=new WGGBackbaseEventsManager(this,_33);
_34.addEventListenersMap({"active":this.__onSwitchActivated,"inactive":this.__onSwitchInactivated,"click":this.__onSwitchClicked},false);
this.eventsManagers.push(_34);
}else{
if(bb.instanceOf(_33,"http://www.backbase.com/2006/btl","toolBarExtButton")){
if(i==0){
this.bbWindowIndicator=_33;
var _35=new WGGBackbaseEventsManager(this,this.bbWindowIndicator);
_35.addEventListener("click",this.__onWindowIndicatorClicked,false);
this.eventsManagers.push(_35);
}else{
var _36=new WGGBackbaseEventsManager(this,_33);
_36.addEventListener("click",this.__onButtonClicked,false);
this.eventsManagers.push(_36);
}
}
}
}
};
_1.initialize=function(){
this.preInitialize();
this.initializeBbElement();
this.postInitialize();
};
_1.initialize();
return _1;
};
WGGBackbaseToolBar.LNG_TOOLBOX_TITLE="lng_toolbox_title";
WGGBackbaseToolBar.LNG_TOOLBOX_LABEL="lng_toolbox_label";
WGGBackbaseToolBar.LNG_CLICK_HERE_TO_TOGGLE="lng_click_here_to_toggle";
WGGBackbaseToolBar.LNG_ZOOM_IN="lng_zoom_in";
WGGBackbaseToolBar.LNG_ZOOM_OUT="lng_zoom_out";
WGGBackbaseToolBar.LNG_PAN="lng_pan";
WGGBackbaseToolBar.LNG_ZOOM_MAX_EXTENT="lng_zoom_max_extent";
WGGBackbaseToolBar.LNG_POINT_IDENTIFY="lng_point_identify";
WGGBackbaseToolBar.LNG_RECT_IDENTIFY="lng_rect_identify";
WGGBackbaseToolBar.LNG_POLYGON_IDENTIFY="lng_polygon_identify";


/**********WGGBalloonTooltip1.js.tmp**********/
function WGGBalloonTooltip1(_1,_2,_3){
var _4=JSINER.extend(this,"WGGAbstractTooltip");
_4.marker=_1;
_4.content=_2;
_4.options=_3;
_4.tGeoDimension=null;
if(_4.options&&_4.marker){
var _5=_4.marker.getMap();
var _6=_5.getNativeMap();
var _7=_6.getLonLatFromPixel(new OpenLayers.Pixel(0,0));
var _8=_6.getLonLatFromPixel(new OpenLayers.Pixel(_4.options["tPixelDimension"][0],_4.options["tPixelDimension"][1]));
_4.tGeoDimension=[Math.abs(_8.lon-_7.lon),Math.abs(_8.lat-_7.lat)];
if(WGGBalloonTooltip1.cSegmentClassName!=_4.options["cSegmentClass"]){
var _9=new WGGCssRulesManager(document);
var _a=_9.getStyleSheets();
var _b=new Array();
var _c=new Array();
for(var k=0;k<_a.length;k++){
_9.getPropertyValue(_a[k].href,"."+_4.options["cSegmentClass"],"width",_b,_c);
_9.getPropertyValue(_a[k].href,"."+_4.options["cSegmentClass"],"height",_b,_c);
if(_b.length>0){
break;
}
}
var _e=(_c.length>0)?parseInt(_c[0]):2;
var _f=(_c.length>1)?parseInt(_c[1]):2;
_4.options["cSegmentPixelDimension"]=[_e,_f];
WGGBalloonTooltip1.cSegmentClassName=_4.options["cSegmentClass"];
WGGBalloonTooltip1.cWidth=_e;
WGGBalloonTooltip1.cHeight=_f;
}
_4.options["cSegmentPixelDimension"]=[WGGBalloonTooltip1.cWidth,WGGBalloonTooltip1.cHeight];
}
_4.olBox=null;
_4.createSegmentAnimationHandle=null;
_4.createSegmentIteration=0;
_4.show();
return _4;
};
WGGBalloonTooltip1.prototype.createConnectionSegment=function(_10){
var _11=_10["startPoint"];
var _12=_10["cSegmentIndex"];
var _13=_10["cMultiplicator"];
var _14=document.createElement("div");
_14.style.position="absolute";
_14.style.zIndex=1000;
_14.className=this.options["cSegmentClass"];
_14.style.fontSize="1px";
_14.style.lineHeight=0;
var _15=this.options["cSegmentPixelDimension"][0];
var _16=this.options["cSegmentPixelDimension"][1];
_14.style.width=_15+"px";
_14.style.height=_16+"px";
_14.style.top=Math.round(_11.y+(_12*_16*_13["top"]))+"px";
_14.style.left=Math.round(_11.x+(_12*_15*_13["left"]))+"px";
return _14;
};
WGGBalloonTooltip1.prototype.createInfoWindow=function(_17){
var _18=_17["startPoint"];
var _19=_17["mIndex"];
var _1a=_17["tPixelWidth"];
var _1b=_17["tPixelHeight"];
var _1c=[function(_1d,_1e,_1f,_20){
return {x:Math.abs(_1d-_1f),y:0};
},function(_21,_22,_23,_24){
return {x:0,y:0};
},function(_25,_26,_27,_28){
return {x:0,y:Math.abs(_26-_28)};
},function(_29,_2a,_2b,_2c){
return {x:Math.abs(_29-_2b),y:Math.abs(_2a-_2c)};
},];
var _2d=document.createElement("div");
_2d.style.position="absolute";
_2d.style.zIndex=1000;
var _2e=this.options["cSegmentPixelDimension"][0];
var _2f=this.options["cSegmentPixelDimension"][1];
var _30=this.options["cSegmentLength"];
var _31=_1a-(_30*_2e);
var _32=_1b-(_30*_2f);
var _33=_1c[_19](_1a,_1b,_31,_32);
_2d.className=this.options["iWindowClass"];
_2d.style.width=(_31-2)+"px";
_2d.style.height=(_32-2)+"px";
_2d.style.top=_33.y+"px";
_2d.style.left=_33.x+"px";
_2d.innerHTML=this.content;
return _2d;
};
WGGBalloonTooltip1.prototype.onActionPerformed=function(){
var _34=new WGGBalloonTooltip1(this.marker,this.content,this.options);
};
WGGBalloonTooltip1.prototype.show=function(){
if(this.marker==null){
return;
}
var map=this.marker.getMap();
var _36=map.getNativeMap();
_36.events.register("moveend",this,this.onActionPerformed);
var _37=this.marker.getPixelPosition();
var _38=map.getPixelPosition();
var _39=map.getPixelDimension();
var _3a=map.getDomElement();
var _3b=this.marker.getMarkerProperties();
var _3c=new WGGPoint(_37.left-_38.left+_3b["locWindowAnchor"][0],_37.top-_38.top+_3b["locWindowAnchor"][1]);
var _3d=this.marker.nativeMarker.lonlat;
var _3e=this.tGeoDimension[0];
var _3f=this.tGeoDimension[1];
var _40=this.options["cSegmentPixelDimension"][0];
var _41=this.options["cSegmentPixelDimension"][1];
var _42=this.options["cSegmentLength"];
var _43=[{left:1,top:-1},{left:-1,top:-1},{left:-1,top:1},{left:1,top:1}];
var _44=[{left:0,top:-1},{left:-1,top:-1},{left:-1,top:0},{left:0,top:0}];
var _45=[function(_46){
var div=_46.div;
return {x:0,y:parseInt(div.style.height)-_41};
},function(_48){
var div=_48.div;
return {x:parseInt(div.style.width)-_40,y:parseInt(div.style.height)-_41};
},function(_4a){
var div=_4a.div;
return {x:parseInt(div.style.width)-_40,y:0};
},function(_4c){
var div=_4c.div;
return {x:0,y:0};
}];
var _4e=-1;
var _4f=null;
var _50=-1;
for(var i=0;i<4;i++){
var _52=-1;
var _53=null;
switch(i){
case 0:
_52=(_39.width-_3c.getX())*_3c.getY();
_53=new OpenLayers.Bounds(_3d.lon,_3d.lat,_3d.lon+_3e,_3d.lat+_3f);
break;
case 1:
_52=_3c.getX()*_3c.getY();
_53=new OpenLayers.Bounds(_3d.lon-_3e,_3d.lat,_3d.lon,_3d.lat+_3f);
break;
case 2:
_52=_3c.getX()*(_39.height-_3c.getY());
_53=new OpenLayers.Bounds(_3d.lon-_3e,_3d.lat-_3f,_3d.lon,_3d.lat);
break;
case 3:
_52=(_39.width-_3c.getX())*(_39.height-_3c.getY());
_53=new OpenLayers.Bounds(_3d.lon,_3d.lat-_3f,_3d.lon+_3e,_3d.lat);
break;
}
if(_4e==-1||(_52>_4e)){
_4e=_52;
_4f=_53;
_50=i;
}
}
if(WGGBalloonTooltip1.lastBalloonTooltip!=null){
WGGBalloonTooltip1.lastBalloonTooltip.destroy();
}
this.olBox=new OpenLayers.Marker.Box(_4f,"transparent",1);
var _54=map.getNativeMap().getLayersByName("boxes")[0];
_54.addMarker(this.olBox);
WGGBalloonTooltip1.lastBalloonTooltip=this;
var _55=parseInt(this.olBox.div.style.width);
var _56=parseInt(this.olBox.div.style.height);
var _57=_43[_50];
var _58=_44[_50];
var _59=_45[_50](this.olBox);
var _5a=_42+1;
var _5b={"startPoint":_59,"cSegmentIndex":0,"cMultiplicator":_57,"mIndex":_50,"tPixelWidth":_55,"tPixelHeight":_56};
this.createSegments(_5b);
};
WGGBalloonTooltip1.prototype.destroy=function(){
var map=this.marker.getMap();
var _5d=map.getNativeMap();
_5d.events.unregister("moveend",this,this.onActionPerformed);
var _5e=map.getNativeMap().getLayersByName("boxes")[0];
_5e.removeMarker(this.olBox);
};
WGGBalloonTooltip1.prototype.createSegments=function(_5f){
WGGAbstractDebugInterface.gDebugInterface.debug("this.createSegmentIteration: "+this.createSegmentIteration);
this.terminateInsertingSegment();
var _60=this.options["cSegmentLength"];
if(this.createSegmentIteration==(_60+1)){
return;
}
var _61=null;
if(this.createSegmentIteration<_60){
_5f["cSegmentIndex"]=this.createSegmentIteration;
WGGAbstractDebugInterface.gDebugInterface.debug(_5f);
_61=this.createConnectionSegment(_5f);
}else{
_61=this.createInfoWindow(_5f);
}
this.olBox.div.appendChild(_61);
var _62=this;
window.setTimeout(function(){
_62.startInsertingSegment(_5f);
},50);
this.createSegmentIteration++;
};
WGGBalloonTooltip1.prototype.startInsertingSegment=function(_63){
if(this.createSegmentAnimationHandle!=null){
return;
}
var _64=this;
WGGAbstractDebugInterface.gDebugInterface.debug(_63);
this.createSegmentAnimationHandle=window.setInterval(function(){
_64.createSegments(_63);
},50);
};
WGGBalloonTooltip1.prototype.terminateInsertingSegment=function(){
window.clearInterval(this.createSegmentAnimationHandle);
this.createSegmentAnimationHandle=null;
};
WGGBalloonTooltip1.lastBalloonTooltip=null;
WGGBalloonTooltip1.cSegmentClassName=null;
WGGBalloonTooltip1.cWidth=null;
WGGBalloonTooltip1.cHeight=null;


/**********WGGBilling.js.tmp**********/
function WGGBilling(_1,_2){
var _3=JSINER.extend(this,"WGGServerRequest");
_3.url=_1;
_3.ajaxLoader=null;
_3.setAjaxLoader(_2);
if(_3.ajaxLoader!=null){
_3.ajaxLoader.initialize();
}
_3.observers=[];
_3.paramsHashMap=new WGGHashMap();
_3.debugInterface=null;
try{
if(WGGDataTypeUtils.isObject(WGGAbstractDebugInterface.gDebugInterface)){
_3.debugInterface=WGGAbstractDebugInterface.gDebugInterface;
}else{
throw "WGGAbstractDebugInterface.gDebugInterface probably undefined";
}
}
catch(e){
_3.debugInterface=new WGGNullDebugInterface();
}
this.bBillingOk=false;
return _3;
};
WGGBilling.prototype.update=function(){
this.debugInterface.debug("WGGBilling.update");
if(arguments.length==0){
return;
}
var _4=arguments[0];
if(_4==null){
return;
}
this.debugInterface.debug(_4);
try{
var _5=_4.getElementsByTagName("CHECKKEY")[0];
if(!_5){
this.debugInterface.warn("checkkeyNode must not be null or undefined");
return;
}
var _6=_5.getElementsByTagName("RESULT")[0];
if(!_6){
this.debugInterface.warn("resultNode must not be null or undefined");
return;
}
var _7=_6.getElementsByTagName("STATUS")[0];
if(_7){
var _8=_7.firstChild.nodeValue;
if(WGGBrowserDetector.IS_OPERA){
this.ajaxLoader.initialize();
}
if(_8!="TRUE"){
var _9=_6.getElementsByTagName("REASON")[0];
var _a=(_9!=null)?_9.firstChild.nodeValue:null;
this.notify({"STATUS":_8,"REASON":_a});
}else{
this.bBillingOk=true;
this.notify({"STATUS":_8});
}
}
this.onUpdate();
}
catch(e){
this.debugInterface.error("error while processing xmlDoc, xmlDoc is probably not a XMLDocument-instance, see description:");
this.debugInterface.error(e);
}
};


/**********WGGBrowserDetector.js.tmp**********/
var WGGBrowserDetector=new function _WGGBrowserDetector(){
this.OS="";
this.browser="";
this.version="";
this.theString="";
this.theUserAgent=navigator.userAgent.toLowerCase();
this.checkIt=function(_1){
place=this.theUserAgent.indexOf(_1)+1;
this.theString=_1;
return place;
};
this.toString=function(){
return "OS: "+this.OS+",Browser: "+this.browser+",version: "+this.version;
};
this.detect=function(){
if(this.checkIt("konqueror")){
this.browser="Konqueror";
this.OS="Linux";
}else{
if(this.checkIt("safari")){
this.browser="Safari";
}else{
if(this.checkIt("omniweb")){
this.browser="OmniWeb";
}else{
if(this.checkIt("opera")){
this.browser="Opera";
}else{
if(this.checkIt("webtv")){
this.browser="WebTV";
}else{
if(this.checkIt("icab")){
this.browser="iCab";
}else{
if(this.checkIt("msie")){
this.browser="Internet Explorer";
}else{
if(this.checkIt("firefox")){
this.browser="Firefox";
}else{
if(!this.checkIt("compatible")){
this.browser="Netscape Navigator";
this.version=this.theUserAgent.charAt(8);
}else{
this.browser="An unknown browser";
}
}
}
}
}
}
}
}
}
if(!this.version){
this.version="";
var _2="0123456789";
var _3=place+this.theString.length;
var j=_3;
while(j<this.theUserAgent.length){
var ch=this.theUserAgent.charAt(j);
if(ch=="."||_2.search(ch)!=-1){
this.version+=ch;
}else{
break;
}
j++;
}
}
if(!this.OS){
if(this.checkIt("linux")){
this.OS="Linux";
}else{
if(this.checkIt("x11")){
this.OS="Unix";
}else{
if(this.checkIt("mac")){
this.OS="Mac";
}else{
if(this.checkIt("win")){
this.OS="Windows";
}else{
this.OS="an unknown operating system";
}
}
}
}
}
};
};
WGGBrowserDetector.detect();
WGGBrowserDetector.IS_NAV=false;
WGGBrowserDetector.IS_IE=(WGGBrowserDetector.browser=="Internet Explorer");
WGGBrowserDetector.IS_OPERA=(WGGBrowserDetector.browser=="Opera");
if(!(WGGBrowserDetector.IS_IE||WGGBrowserDetector.IS_OPERA)){
WGGBrowserDetector.IS_NAV=true;
}
var isNav=false;
var isIE=(WGGBrowserDetector.browser=="Internet Explorer");
var isOpera=(WGGBrowserDetector.browser=="Opera");
if(!isIE){
isNav=true;
}


/**********WGGCaretDetector.js.tmp**********/
function WGGCaretDetector(_1){
this.input=null;
if(_1){
var _2=document.getElementsByName(_1);
if(_2==null){
return;
}
if(_2.length==0){
return;
}
this.input=_2[0];
}
};
WGGCaretDetector.prototype.doGetCaretPosition=function(){
var _3=0;
if(document.selection){
this.input.focus();
var _4=document.selection.createRange();
_4.moveStart("character",-this.input.value.length);
_3=_4.text.length;
}else{
if(this.input.selectionStart||this.input.selectionStart=="0"){
_3=this.input.selectionStart;
}
}
return (_3);
};
WGGCaretDetector.prototype.doSetCaretPosition=function(_5){
if(document.selection){
this.input.focus();
var _6=this.input.createTextRange();
_6.moveStart("character",_5);
_6.moveEnd("character",_5-this.input.value.length);
_6.select();
}else{
if(this.input.selectionStart||this.input.selectionStart=="0"){
this.input.selectionStart=_5;
this.input.selectionEnd=_5;
this.input.focus();
}
}
};


/**********WGGChangeEvent.js.tmp**********/
function WGGChangeEvent(_1){
this.source=_1;
};
WGGChangeEvent.prototype.getSource=function(){
return this.source;
};


/**********WGGChangeListener.js.tmp**********/
function WGGChangeListener(){
};
WGGChangeListener.prototype.stateChanged=function(_1){
};


/**********WGGClassificationItem.js.tmp**********/
function WGGClassificationItem(id,_2,_3,_4,_5){
this.id=id;
this.type=_2;
this.name=_3;
this.fId=_4;
this.fName=_5;
};


/**********WGGCmdDef.js.tmp**********/
function WGGCmdDef(_1,_2,_3,_4,_5){
var _6=JSINER.extend(this,"WGGSubject");
_6.name=_1;
_6.ppIdentifier=_2;
_6.paramDefs=_3;
_6.retValHandler=_4;
_6.enumTarget=_5;
_6.observers=[];
return _6;
};
WGGCmdDef.prototype.getFQN=function(_7){
if(_7==null){
return null;
}
if(_7.moduleDescriptor==null){
return null;
}
var _8=_7.moduleDescriptor.getName();
return _8+"."+this.name;
};
WGGCmdDef.prototype.validateArgs=function(){
if(arguments.length==0){
if(this.paramDefs==null){
return true;
}
if(this.paramDefs.length==0){
return true;
}
throw new Error("arguments.length == 0 but this.paramDefs.length > 0");
}
if(this.paramDefs==null){
throw new Error("arguments.length > 0 but this.paramDefs == null");
}
if(this.paramDefs.length==0){
throw new Error("arguments.length > 0 but this.paramDefs.length == 0");
}
if(arguments.length!=this.paramDefs.length){
throw new Error("arguments.length ("+arguments.length+") != this.paramDefs.length ("+this.paramDefs.length+")");
}
var _9=[];
var i=0;
for(var i=0;i<arguments.length;i++){
var _b=arguments[i];
var _c=this.paramDefs[i];
var _d=[];
var _e=_c.isParamValid(_b,_d);
if(!_e){
_9.push("Parameter "+i+" is not valid: "+_d.toString());
}
i++;
}
if(_9.length>0){
throw new Error(_9.toString());
}
return true;
};
WGGCmdDef.prototype.execute=function(_f,_10,_11){
var fqn=this.getFQN(_f);
this.notify(this,fqn,WGGEnumCmdStatus.STATUS_STARTED,null);
if(_f==null){
this.notify(this,fqn,WGGEnumCmdStatus.STATUS_DONE_FAILURE,null);
throw new Error("Error while executing command; module must not be null");
}
if(!WGGDataTypeUtils.instanceOf(_f,WGGAbstractModuleMain)){
this.notify(this,fqn,WGGEnumCmdStatus.STATUS_DONE_FAILURE,null);
throw new Error("Error while executing command; module is not instance of WGGAbstractModuleMain");
}
try{
this.validateArgs.apply(this,_10);
}
catch(e){
throw e;
}
if(typeof _11=="undefined"){
_11=true;
}
if(!WGGDataTypeUtils.isBoolean(_11)){
_11=true;
}
var _13=null;
if(this.enumTarget==WGGEnumCmdTarget.TGT_SERVER){
if(WGGCmdDef.wigeowebCfg==null){
this.notify(this,fqn,WGGEnumCmdStatus.STATUS_DONE_FAILURE,null);
throw new Error("Error while executing command; WGGCmdDef.wigeowebCfg must not be null");
}
var _14=WGGCmdDef.wigeowebCfg.createServerRequest();
_14.addParam("cmd",this.name+","+this.ppIdentifier);
if(this.paramDefs){
for(var i=0;i<this.paramDefs.length;i++){
_14.addParam(this.paramDefs[i].name,_10[i]);
}
}
var _16=this.retValHandler;
var _17=this;
_14.update=function(){
var _18=arguments[0];
if(_18==null){
return;
}
if(_17.retValHandler!=null){
_18=_17.retValHandler.apply(_17,arguments);
}
_17.notify(_17,fqn,WGGEnumCmdStatus.STATUS_DONE_SUCCESS,_18);
_13=_18;
};
_14.send(WGGServerRequest.StandardGETRequestSerializer(),_11);
}else{
if(this.enumTarget==WGGEnumCmdTarget.TGT_INTERNAL){
var _19=_f[this.name];
if(!_19){
this.notify(this,fqn,WGGEnumCmdStatus.STATUS_DONE_FAILURE,null);
throw new Error("Error while executing command; method "+this.name+" not defined on this module");
}
_13=_19.apply(_f,_10);
if(this.retValHandler!=null){
_13=this.retValHandler.apply(this,[_13]);
}
this.notify(this,fqn,WGGEnumCmdStatus.STATUS_DONE_SUCCESS,_13);
}else{
this.notify(this,fqn,WGGEnumCmdStatus.STATUS_DONE_FAILURE,null);
throw new Error("Error while executing command; enumTarget of the command unknown");
}
}
return _13;
};
WGGCmdDef.ParamDef=function(_1a,_1b,_1c){
this.name=_1a;
this.type=_1b;
this.bRequired=_1c;
};
WGGCmdDef.ParamDef.prototype.isParamValid=function(_1d,_1e){
if(!_1e||_1e==null){
_1e=[];
}
if(_1d==null||WGGDataTypeUtils.isUndefined(_1d)){
if((!this.bRequired)==false){
_1e[0]="param was null but this.bRequired is true";
}
return !this.bRequired;
}
if(this.type==null){
return true;
}
if(WGGDataTypeUtils.instanceOf(_1d,this.type)){
return true;
}
if(WGGDataTypeUtils.couldBeInstanceOf(_1d,this.type)){
return true;
}
_1e[0]="param's type was not the required type "+WGGReflection.createMember(this.type).getName();
return false;
};
WGGCmdDef.wigeowebCfg=null;


/**********WGGCmdHistory.js.tmp**********/
function WGGCommandHistory(){
this.history=new WGGHashMap();
};
WGGCommandHistory.prototype.undo=function(){
};
WGGCommandHistory.prototype.redo=function(){
};


/**********WGGCssRulesManager.js.tmp**********/
function WGGCssRulesManager(_1){
this.styleSheets=null;
this.doc=_1;
this.initialize=function(_2){
this.styleSheets=_2.styleSheets;
};
this.initialize(_1);
};
WGGCssRulesManager.prototype.getStyleSheetByName=function(_3){
if(_3==null||_3==""){
return null;
}
var _4=_3.toLowerCase();
if(this.styleSheets!=null){
for(var i=0;i<this.styleSheets.length;i++){
if(this.styleSheets[i].href==null){
continue;
}
var _6=this.styleSheets[i].href.toLowerCase();
if(_6.lastIndexOf(_4)==(_6.length-_4.length)){
return this.styleSheets[i];
}
}
}
return null;
};
WGGCssRulesManager.prototype.getStyleSheets=function(){
return this.styleSheets;
};
WGGCssRulesManager.prototype.getStyleSheetRules=function(_7){
var _8=this.getStyleSheetByName(_7);
if(_8==null){
return null;
}
var _9=new Array();
if(_8.cssRules){
_9=_8.cssRules;
}else{
if(_8.rules){
_9=_8.rules;
}
}
WGGAbstractDebugInterface.gDebugInterface.debug(_9);
return _9;
};
WGGCssRulesManager.prototype.getStyleSheetRule=function(_a,_b){
WGGAbstractDebugInterface.gDebugInterface.debug("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  method getStyleSheetRule ");
if(_b==null){
return null;
}
WGGAbstractDebugInterface.gDebugInterface.debug("styleSheetName: "+_a);
if(_a==null){
return null;
}
var _c=this.getStyleSheetRules(_a);
if(_c==null){
return null;
}
WGGAbstractDebugInterface.gDebugInterface.debug("rules: "+_c.length);
var _d=_b;
if(WGGBrowserDetector.IS_IE){
_d=_b.replace(/(^|,|, |\\s)([a-zA-Z]+\.)/g,function($0,$1){
return ($1!=-1)?$0.toUpperCase():$2;
});
}
WGGAbstractDebugInterface.gDebugInterface.debug("soundexRuleName: "+_d);
var _10=new Array();
for(var i=0;i<_c.length;i++){
var _12=_c[i];
var _13=_12.selectorText.split(",");
for(var j=0;j<_13.length;j++){
var _15=WGGStringUtils.trim(_13[j]);
if(_15==_d){
_10.push(_c[i]);
WGGAbstractDebugInterface.gDebugInterface.debug("------------------ selectedRule:");
WGGAbstractDebugInterface.gDebugInterface.debug(_c[i]);
}
}
}
return _10;
};
WGGCssRulesManager.prototype.insertStyleSheetRule=function(_16,_17,_18){
var _19=null;
if(_16!=null){
_19=this.getStyleSheetByName(_16);
}
if(_19==null){
var _1a=this.doc.createElement("style");
_1a.type="text/css";
this.doc.getElementsByTagName("head")[0].appendChild(_1a);
_19=this.doc.styleSheets[this.doc.styleSheets.length-1];
}
mediaType=typeof _19.media;
var _1b=(mediaType=="string")?_19.rules:_19.cssRules;
function __alterExistingRule(_1c,_1d){
for(i=0;i<_1b.length;i++){
if(_1b[i].selectorText.toLowerCase()==_1c.toLowerCase()){
_1b[i].style.cssText=_1d;
return true;
}
}
return false;
};
var _1e=__alterExistingRule(_17,_18);
if(!_1e){
if(mediaType=="string"){
_19.addRule(_17,_18);
}else{
_19.insertRule(_17+" { "+_18+" }",_1b.length);
}
}
};
WGGCssRulesManager.prototype.getPropertyValue=function(_1f,_20,_21,_22,_23){
var _24=this.getStyleSheetRule(_1f,_20);
if(_24==null){
return;
}
for(var i=0;i<_24.length;i++){
var _26=_24[i];
var _27=_26.style;
var _28=_27[_21];
_22.push(_26);
_23.push(_28);
}
};
WGGCssRulesManager.prototype.setPropertyValue=function(_29,_2a,_2b,_2c){
var _2d=new Array();
var _2e=new Array();
this.getPropertyValue(_29,_2a,_2b,_2d,_2e);
for(var i=0;i<_2d.length;i++){
var _30=_2d[i];
_30.style[_2b]=_2c;
}
};


/**********WGGCustomLocationList.js.tmp**********/
function WGGCustomLocationList(_1,_2,_3){
var _4=JSINER.extend(this,"WGGAbstractLocationList");
_4.app=_1;
_4.domElement=_2;
_4.nativeList=null;
_4.eventController=_3;
_4.initialize();
return _4;
};
WGGCustomLocationList.prototype.initialize=function(){
if(this.domElement!=null){
this.nativeList=this.domElement;
this.nativeList.wggNextDoorApp=this.app;
}
};


/**********WGGDataAggregationUtils.js.tmp**********/
function WGGDataAggregationUtils(){
};
WGGDataAggregationUtils.SUM=function(){
if(arguments.length==0){
return null;
}
var _1=0;
for(var i=0;i<arguments.length;i++){
var _3=arguments[i];
try{
_3=parseFloat(_3);
_1+=_3;
}
catch(e){
throw "Cannot compute sum because "+_3+" cannot be convert to the data type float";
}
}
return _1;
};
WGGDataAggregationUtils.AVG=function(){
if(arguments.length==0){
return null;
}
var _4=null;
try{
_4=WGGDataAggregationUtils.SUM.apply(null,arguments);
}
catch(e){
throw e;
}
return _4/arguments.length;
};
WGGDataAggregationUtils.COUNT=function(){
return arguments.length;
};
WGGDataAggregationUtils.MIN=function(){
if(arguments.length==0){
return null;
}
var _5=0;
for(var i=0;i<arguments.length;i++){
var _7=arguments[i];
try{
_7=parseFloat(_7);
if(i==0){
_5=_7;
continue;
}
if(_7<_5){
_5=_7;
}
}
catch(e){
throw "Cannot compute minimum value because "+_7+" cannot be convert to the data type float";
}
}
return _5;
};
WGGDataAggregationUtils.MAX=function(){
if(arguments.length==0){
return null;
}
var _8=0;
for(var i=0;i<arguments.length;i++){
var _a=arguments[i];
try{
_a=parseFloat(_a);
if(i==0){
_8=_a;
continue;
}
if(_a>_8){
_8=_a;
}
}
catch(e){
throw "Cannot compute maximum value because "+_a+" cannot be convert to the data type float";
}
}
return _8;
};


/**********WGGDataFormatUtils.js.tmp**********/
function WGGDataFormatUtils(){
};
WGGDataFormatUtils.AbstractFormatter=function(){
this.args=[];
this.format=function(){
return null;
};
};
WGGDataFormatUtils.CustomTemplateFormatter=function(){
var _1=JSINER.extend(this,WGGDataFormatUtils.AbstractFormatter);
_1.args=[];
for(var i=0;i<arguments.length;i++){
_1.args[i]=arguments[i];
}
_1.format=function(_3){
if(_3==null){
return null;
}
var _4=(this.args.length>0)?this.args[0]:null;
if(_4==null){
return _3;
}
var _5=(this.args.length>1)?this.args[1]:null;
var _6=new WGGSimpleTemplate(_4);
var _7=[_3];
if(_5!=null){
_7=_3.split(_5);
}
var i=0;
while(_6.hasEmptyPlaceholders()&&i<_7.length){
_6.assign(_7[i]);
i++;
}
return _6.getResult();
};
return _1;
};
WGGDataFormatUtils.RoundDownwardsFormatter=function(){
var _9=JSINER.extend(this,WGGDataFormatUtils.AbstractFormatter);
_9.args=[];
for(var i=0;i<arguments.length;i++){
_9.args[i]=arguments[i];
}
_9.format=function(_b,dp){
if(_b==null){
return null;
}
try{
var _d=parseFloat(_b);
if(!dp){
dp=2;
}
if(dp<1||dp>14){
return _d;
}
var _e=Math.pow(10,dp);
var _f=(Math.round(_d*_e)/_e).toString();
if(_f.indexOf(".")==-1){
_f+=".";
}
_f+=_e.toString().substring(1);
return _f.substring(0,_f.indexOf(".")+dp+1);
}
catch(e){
throw e;
}
};
return _9;
};


/**********WGGDataLayerGroup.js.tmp**********/
function WGGDataLayerGroup(_1,_2){
var _3=JSINER.extend(this,"WGGAbstractDataLayer");
_3.layerIdentifier=_1;
_3.lngName=_2;
_3.children=[];
return _3;
};
WGGDataLayerGroup.prototype.accept=function(_4){
if(_4==null){
return;
}
if(!WGGDataTypeUtils.isFunction(_4.visit)){
return;
}
if(this.children==null){
return;
}
for(var i=0;i<this.children.length;i++){
_4.visit(this.children[i]);
}
};


/**********WGGDataLayerLeaf.js.tmp**********/
function WGGDataLayerLeaf(_1,_2,_3,_4){
var _5=JSINER.extend(this,"WGGAbstractDataLayer");
if(_1==null){
return _5;
}
if(!WGGDataTypeUtils.instanceOf(_3,WGGEnumLayerType)){
return _5;
}
_5.layerIdentifier=_1;
_5.lngName=_2;
_5.children=[];
_5.layerType=_3;
_5.dataFields=null;
if(WGGDataTypeUtils.isArray(_4)){
if(_4.length>0){
if(WGGDataTypeUtils.instanceOf(_4[0],WGGDataLayerLeaf.DataField)){
_5.dataFields=_4;
}
}
}
return _5;
};
WGGDataLayerLeaf.prototype.getDataFields=function(){
return this.dataFields;
};
WGGDataLayerLeaf.prototype.hasDataField=function(_6){
for(var i=0;i<this.dataFields.length;i++){
if(this.dataFields[i].name==_6){
return true;
}
}
return false;
};
WGGDataLayerLeaf.prototype.getDataFieldByName=function(_8){
for(var i=0;i<this.dataFields.length;i++){
if(this.dataFields[i].name==_8){
return this.dataFields[i];
}
}
return null;
};
WGGDataLayerLeaf.prototype.getDataFieldByMeaning=function(_a){
for(var i=0;i<this.dataFields.length;i++){
if(this.dataFields[i].enumDataMeaning==_a){
return this.dataFields[i];
}
}
return null;
};
WGGDataLayerLeaf.prototype.isRasterLayer=function(){
return this.layerType==WGGEnumLayerType.LYR_RASTER;
};
WGGDataLayerLeaf.prototype.toString=function(){
return "WGGDataLayerLeaf "+this.layerIdentifier+"("+((this.layerType!=null)?this.layerType.type:"unknown")+") with "+((this.dataFields!=null)?this.dataFields.length:0)+" fields";
};
WGGDataLayerLeaf.DataField=function(id,_d,_e,_f,_10,_11){
this.id=id;
this.name=_d;
this.longTitle=_e;
this.enumDataType=_f;
this.enumDataMeaning=_10;
this.bNullable=_11;
this.options=null;
};
WGGDataLayerLeaf.DataField.prototype.setOptions=function(_12){
this.options=_12;
};
WGGDataLayerLeaf.DataField.prototype.hasOption=function(_13){
if(this.options==null){
return false;
}
return typeof this.options[_13]!="undefined";
};
WGGDataLayerLeaf.DataField.prototype.isIdentifier=function(){
return (this.enumDataMeaning==WGGEnumDataFieldMeaning.DM_UNIQUEID);
};
WGGDataLayerLeaf.DataField.prototype.isNullable=function(){
return this.bNullable;
};


/**********WGGDatalayoutModuleDescriptor.js.tmp**********/
function WGGDatalayoutModuleDescriptor(){
var _1=JSINER.extend(this,"WGGAbstractModuleDescriptor");
_1.getName=function(){
return "MODULE_DATALAYOUT";
};
_1.getVersion=function(){
return "0.1";
};
_1.getMainClass=function(){
return WGGDatalayoutModuleMain;
};
return _1;
};


/**********WGGDatalayoutModuleMain.js.tmp**********/
function WGGDatalayoutModuleMain(){
var _1=JSINER.extend(this,"WGGAbstractModuleMain");
_1.cmdDefs=[new WGGCmdDef("RESETDATATABLELAYOUT","stdpp",[new WGGCmdDef.ParamDef("activeLayerIdentifier",String,true)],function(){
return _1.processStandardResponse.apply(_1,arguments);
},WGGEnumCmdTarget.TGT_SERVER),new WGGCmdDef("UPDATETOUNIQUECLASSIFICATION","stdpp_ok",[new WGGCmdDef.ParamDef("activeLayerIdentifier",String,true),new WGGCmdDef.ParamDef("classifyColumnID",String,true),new WGGCmdDef.ParamDef("classifyTypeID",String,true)],function(){
return _1.processStandardResponse.apply(_1,arguments);
},WGGEnumCmdTarget.TGT_SERVER),new WGGCmdDef("UPDATETOFIXEDCLASSIFICATION","stdpp_ok",[new WGGCmdDef.ParamDef("activeLayerIdentifier",String,true),new WGGCmdDef.ParamDef("classifyColumnID",String,true),new WGGCmdDef.ParamDef("classifyTypeID",String,true)],function(){
return _1.processStandardResponse.apply(_1,arguments);
},WGGEnumCmdTarget.TGT_SERVER),new WGGCmdDef("UPDATETORANGECLASSIFICATION","stdpp_ok",[new WGGCmdDef.ParamDef("activeLayerIdentifier",String,true),new WGGCmdDef.ParamDef("classifyColumnID",String,true),new WGGCmdDef.ParamDef("classifyTypeID",String,true),new WGGCmdDef.ParamDef("borderMin",Number,true),new WGGCmdDef.ParamDef("borderMax",Number,true)],function(){
return _1.processStandardResponse.apply(_1,arguments);
},WGGEnumCmdTarget.TGT_SERVER),new WGGCmdDef("UPDATETOQUANTILECLASSIFICATION","stdpp_ok",[new WGGCmdDef.ParamDef("activeLayerIdentifier",String,true),new WGGCmdDef.ParamDef("classifyColumnID",String,true),new WGGCmdDef.ParamDef("classifyTypeID",String,true),new WGGCmdDef.ParamDef("classCount",Number,true)],function(){
return _1.processStandardResponse.apply(_1,arguments);
},WGGEnumCmdTarget.TGT_SERVER),new WGGCmdDef("RESET_CLASSIFICATION","stdpp_ok",[new WGGCmdDef.ParamDef("activeLayerIdentifier",String,true)],function(){
return _1.processStandardResponse.apply(_1,arguments);
},WGGEnumCmdTarget.TGT_SERVER),new WGGCmdDef("GET_AVAILABLE_CLASSIFICATIONS","getclassifications",[new WGGCmdDef.ParamDef("layerIdentifier",String,true)],function(){
if(arguments.length==0){
return;
}
var _2=arguments[0];
var _3=_1.processStandardResponse.apply(_1,arguments);
if(_3["RETVAL"]!="OK"){
return _3;
}
var _4=WGGXmlUtils.selectNodes(_2,"//RESPONSE/BODY/DATA/FIELD",null);
var _5=new WGGHashMap();
for(var i=0;i<_4.length;i++){
var _7=_4[i];
var _8=WGGXmlUtils.selectNodes(_7,"@NAME",null)[0];
var _9=WGGXmlUtils.getChildValue(_8);
var _a=WGGXmlUtils.selectNodes(_7,"@ID",null)[0];
var _b=WGGXmlUtils.getChildValue(_a);
if(!_5.containsKey(_9)){
_5.put(_9,null);
}
var _c=WGGXmlUtils.selectNodes(_7,"CLS",null);
for(var j=0;j<_c.length;j++){
var _e=_c[j];
var _f=_5.get(_9);
if(_f==null){
_f=new WGGArray();
_5.put(_9,_f);
}
var _10=new WGGClassificationItem(null,null,null);
var _11=WGGXmlUtils.selectNodes(_e,"@TYPE",null)[0];
_10.type=WGGXmlUtils.getChildValue(_11);
var _12=WGGXmlUtils.selectNodes(_e,"@ID",null)[0];
_10.id=WGGXmlUtils.getChildValue(_12);
_10.name=WGGXmlUtils.getChildValue(_e);
_10.fId=_b;
_10.fName=_9;
_f.add(_10);
}
}
_3["DATA"]=_5;
return _3;
},WGGEnumCmdTarget.TGT_SERVER)];
return _1;
};


/**********WGGDataTypeUtils.js.tmp**********/
function WGGDataTypeUtils(){
};
WGGDataTypeUtils.isObject=function(a){
return (a&&typeof a=="object")||WGGDataTypeUtils.isFunction(a);
};
WGGDataTypeUtils.isFunction=function(a){
return typeof a=="function";
};
WGGDataTypeUtils.isArray=function(a){
return WGGDataTypeUtils.isObject(a)&&a.constructor==Array;
};
WGGDataTypeUtils.isString=function(a){
return (typeof a=="string"||a instanceof String);
};
WGGDataTypeUtils.isNumeric=function(a){
var _6=/^(-)?(\d*)(\.?)(\d*)$/;
return ((new String(a)).search(_6)!=-1);
};
WGGDataTypeUtils.isNumber=function(a){
return typeof a=="number";
};
WGGDataTypeUtils.isUndefined=function(a){
return typeof a=="undefined";
};
WGGDataTypeUtils.isBoolean=function(a){
return (a==false||a==true);
};
WGGDataTypeUtils.isRegExp=function(a){
return a instanceof RegExp;
};
WGGDataTypeUtils.instanceOf=function(_b,_c){
var _d=new WGGNullDebugInterface();
_d.info("WGGDataTypeUtils.instanceOf");
_d.info(_b);
if(_b==null||_c==null){
_d.warn("obj or fClass is null; return false");
return false;
}
if(_b.constructor==null){
_d.warn("obj.constructor is null; return false");
return false;
}
if(_c.prototype!=null){
if(_b.constructor==_c.prototype.constructor){
_d.info("constructors are equal; return true");
return true;
}
}
var _e=WGGReflection.createMember(_c).getName();
_d.info("is obj subtyp of class "+_e+"?");
var _f=_b.constructor;
if(_f){
var _10=_f.toString();
var _11=_10.split("\n");
for(var i=0;i<_11.length;i++){
var _13=_11[i];
var _14=/JSINER.extend((.+),(.*)\);)/.exec(_13);
if(!_14){
continue;
}
if(!_14[3]){
continue;
}
var _15=WGGStringUtils.trim(_14[3].replace(/\"/g,""));
if(_e==_15){
_d.info("YES; return true");
return true;
}
}
}
_d.warn("return false");
return false;
};
WGGDataTypeUtils.couldBeInstanceOf=function(obj,_17){
var _18=new WGGNullDebugInterface();
_18.info("WGGDataTypeUtils.couldBeInstanceOf");
_18.info(obj);
if(obj==null||_17==null){
_18.warn("obj or fClass is null; return false");
return false;
}
if(!WGGReflection.isMethod(_17)){
_18.warn("fClass is not a Function object");
return false;
}
var _19=new _17();
var _1a=new WGGArray();
for(var _1b in _19){
_1a.add(_1b);
}
var _1c=0;
for(var _1b in obj){
if(_1a.contains(_1b)){
_1c++;
}
}
_18.info("number of fClass members is "+_1a.length()+"; matched members are "+_1c);
_18.warn("return "+((_1c!=0)&&(_1c==_1a.length())));
return ((_1c!=0)&&(_1c==_1a.length()));
};
WGGDataTypeUtils.extend=function(_1d,_1e){
_1e=_1e||{};
if(!_1d){
return _1e;
}
for(var _1f in _1d){
var _20=_1d[_1f];
if(typeof _20!="undefined"){
_1e[_1f]=_20;
}
}
return _1e;
};


/**********WGGDateInputValidator.js.tmp**********/
function WGGDateInputValidator(_1,_2,_3,_4){
this.input=null;
this.format=_2;
this.onInsertInvalidValue=null;
if(_4!=null){
if(!WGGDataTypeUtils.isFunction(_4)){
throw "invalidValueInserted should be a Function";
}
this.onInsertInvalidValue=_4;
}
var _5=this;
var _6=new WGGCaretDetector(_1);
var _7=function(_8){
for(var i=0;i<WGGDateInputValidator.sepPlaceholders.length;i++){
var _a=WGGDateInputValidator.sepPlaceholders[i];
var _b=_8.split(_a);
if(_b.length>1){
return _b;
}
}
return [_8];
};
var _c=function(_d){
var _e=_7(_d);
return (_e.length==3);
};
var _f=function(){
var _10=[];
for(var i=0;i<arguments.length;i++){
_10[i]=arguments[i];
}
if(_5.onInsertInvalidValue!=null){
_5.onInsertInvalidValue.apply(_5,_10);
}
};
var _12=function(_13){
if(_13==null){
return null;
}
if(_13.length==_5.format.length){
return _13;
}
WGGAbstractDebugInterface.gDebugInterface.debug("///////////////////////////////////////////////////////////////");
WGGAbstractDebugInterface.gDebugInterface.debug("format:"+_5.format);
WGGAbstractDebugInterface.gDebugInterface.debug("userInput:"+_13);
WGGAbstractDebugInterface.gDebugInterface.debug("appended:"+_13+_5.format.substring(_13.length));
WGGAbstractDebugInterface.gDebugInterface.debug("///////////////////////////////////////////////////////////////");
return _13+_5.format.substring(_13.length);
};
if(_1){
var _14=document.getElementsByName(_1);
if(_14==null){
return;
}
if(_14.length==null){
return;
}
this.input=_14[0];
if(this.input!=null){
var _15=false;
for(var i=0;i<WGGDateInputValidator.validFormats.length;i++){
if(WGGDateInputValidator.validFormats[i]==this.format){
_15=true;
break;
}
}
if(!_15){
_2=WGGDateInputValidator.validFormats[0];
}
if(_3==null||_3==""){
this.input.onfocus=function(e){
if(this.value==""){
this.value=_5.format;
}
_6.doSetCaretPosition(0);
};
this.input.onblur=function(e){
if(this.value==_5.format){
this.value="";
}else{
if(this.value==""){
}else{
var _19=_7(this.value);
if(!_c(this.value)){
_f(this.value,{"day":null,"month":null,"year":null});
return;
}
var _1a=Number(_19[1]);
var day=(_19[0].length==4)?Number(_19[2]):Number(_19[0]);
var _1c=(_19[0].length==4)?Number(_19[0]):Number(_19[2]);
if(_1a<1||_1a>12){
_f(this.value,{"day":day,"month":_1a,"year":_1c});
return;
}
if(day<1||day>31){
_f(this.value,{"day":day,"month":_1a,"year":_1c});
return;
}
}
}
};
}
this.input.onkeyup=function(e){
};
this.input.onkeydown=function(e){
var _1f=window.event||e;
var _20=_1f.keyCode||_1f.which;
return (!(_20==46&&WGGBrowserDetector.IS_IE));
};
this.input.onkeypress=function(e){
WGGAbstractDebugInterface.gDebugInterface.debug("~~~~~~~~~~~ onKeyPress");
var _22=window.event||e;
var obj=_22.srcElement||_22.target;
var _24=_22.keyCode||_22.which;
var _25=WGGBrowserDetector.IS_IE?_22.keyCode:_22.charCode;
var _26=WGGStringUtils.chr(_25);
WGGAbstractDebugInterface.gDebugInterface.debug("usrKeyCode => usrCharCode => usrChar : "+_24+"=>"+_25+"=>"+_26);
if(this.value.length>_5.format.length){
return false;
}
if(_24==8||_24==36||_24==39||_24==37){
return true;
}else{
if(WGGDateInputValidator.isSepPlaceholderValid(_26)){
if(_5.format.indexOf(_26)!=-1){
var _27=_6.doGetCaretPosition();
if(_5.format.charAt(_27)==_26){
if(this.value.charAt(_27)==_26){
_6.doSetCaretPosition(_27+1);
return false;
}
}
}
}else{
if(!(_24>47&&_24<58)){
return false;
}
}
}
var _27=_6.doGetCaretPosition();
var _28=_5.format.charAt(_27);
if(WGGDateInputValidator.isSepPlaceholderValid(_28)){
var tmp=this.value.substring(0,_27+1);
if((_27+2)<this.value.length){
tmp+=this.value.substring(_27+2);
}else{
if(!WGGDateInputValidator.isSepPlaceholderValid(_26)){
tmp+=_28;
}
}
this.value=tmp;
_6.doSetCaretPosition(_27+1);
}else{
if(WGGDateInputValidator.isSepPlaceholderValid(_26)){
return false;
}
var tmp=this.value.substring(0,_27);
if((_27+1)<this.value.length){
tmp+=this.value.substring(_27+1);
}
this.value=tmp;
_6.doSetCaretPosition(_27);
}
if(this.value.length>=_5.format.length){
return false;
}
return true;
};
}
}
};
WGGDateInputValidator.isSepPlaceholderValid=function(_2a){
if(_2a==null){
return false;
}
for(var i=0;i<WGGDateInputValidator.sepPlaceholders.length;i++){
if(WGGDateInputValidator.sepPlaceholders[i]==_2a){
return true;
}
}
return false;
};
WGGDateInputValidator.numPlaceholder="_";
WGGDateInputValidator.sepPlaceholders=["-",".","/"];
WGGDateInputValidator.validFormats=["____-__-__","__.__.____","__-__-____","__/__/____"];


/**********WGGDebugWindow.js.tmp**********/
function WGGDebugWindow(_1,_2){
this.name=_1;
this.options=_2;
if(this.name==null){
this.name="debugWindow";
}
this.name=this.name.replace(/[^a-zA-Z_]+/g,"")+"_"+(new Date()).getTime();
this.win=null;
this.doc=null;
this.body=null;
this.popupBlockerHintShown=false;
this.menue=null;
var _3={};
_3[WGGAbstractDebugInterface.MESSAGE_TYPE_ERROR]="red";
_3[WGGAbstractDebugInterface.MESSAGE_TYPE_WARN]="blue";
_3[WGGAbstractDebugInterface.MESSAGE_TYPE_DEBUG]="green";
_3[WGGAbstractDebugInterface.MESSAGE_TYPE_INFO]="brown";
var _4=function(_5,_6,_7,_8){
var _9=new RegExp(_6,_7);
return _5.replace(_9,_8);
};
this.prepareTypeView=function(_a){
return "<font color=\""+_3[_a]+"\" size=\"+1\"><b>"+_4(WGGStringUtils.leftPad(_a," ",5)+": "," ","g","&nbsp;")+"</b></font>";
};
this.prepareStrategies={"string":function __prepareString(_b,_c,_d){
var _e=_c;
_e=_4(_e," ","g","&nbsp;");
_e=_4(_e,"\\<","gm","&lt;");
_e=_4(_e,"\\>","gm","&gt;");
_e=_4(_e,"\n|\r\n","gm","<br>");
var _f=new RegExp("(caller:)((&nbsp;)?\\[\\[\\[.*\\]\\]\\])","gm");
var _e=_e.replace(_f,function(_10,_11,_12,_13,str){
if(_10==""){
return str;
}
return "<div style=\"margin-left:70px;\"><b>"+_11+"</b>"+_12+"</div>";
},"gmi");
var _15=new RegExp("\\[\\[\\[.*?\\]\\]\\]","g");
_e=_e.replace(_15,function($0,$1){
return ($1!=-1)?"<input type=\"button\" style=\"padding:0px;width:20px;height:20px;display:inline;\" value=\"+\" onclick=\"javascript: var s = this.nextSibling.style; var d = s.display; s.display = ((d =='none') ? 'block' : 'none'); this.value=((this.value =='+') ? '-' : '+')\"><pre style=\"display:none; background:lightyellow;\">"+$0+"</pre>":$2;
});
_d.innerHTML+=_e;
},"object":function __prepareObject(_18,obj,_1a){
var _1b=obj["object"];
var _1c=obj["caller"];
var _1d=this.doc.createElement("div");
_1d.style.marginLeft="70px";
_1a.appendChild(_1d);
var _1e=WGGAbstractGUIStuffFactory.createFactory("simple0");
_1e.createTree(this.doc,_1d,_1b);
var _1f=this.doc.createElement("div");
this.prepareStrategies["string"].call(this,_18,_1c,_1f);
_1a.appendChild(_1f);
}};
this.initialize();
};
WGGDebugWindow.prototype.showPopupHint=function(){
if(!this.popupBlockerHintShown){
alert("please, deactivate the popup blocker in order to use WGGDebugWindow");
this.popupBlockerHintShown=true;
}
};
WGGDebugWindow.prototype.initialize=function(){
var _20=this;
this.win=window.open("",this.name,this.options);
if(!(this.win&&!this.win.closed)){
this.showPopupHint();
return;
}
this.doc=this.win.document;
if(!this.doc.getElementsByTagName){
this.showPopupHint();
return;
}
this.doc.title=this.win.name;
var _21=this.doc.getElementsByTagName("BODY");
if(_21!=null){
this.body=_21[0];
WGGGUIUtils.extendStyle(this.body,{"fontFamily":"monospace","fontSize":"8pt","padding":"0px"});
if(!WGGBrowserDetector.IS_IE){
this.body.innerHTML="<style type=\"text/css\">div.simpleTreeDiv{margin-left:10px;border-left:1px dotted red;padding-left:10px;} a {cursor:pointer;} a:hover{background-color:lightblue;}</style>";
}else{
var _22=this.doc.createStyleSheet();
_22.cssText="DIV.simpleTreeDiv{ margin-left: 10px; border-left: 1px dotted red; padding-left: 10px; } A {cursor:pointer;} A:hover {background-color:lightblue;}";
}
}
this.menue=new WGGDebugWindow.DebugMenue(this);
var _23=function(){
_20.menue.repaint();
};
if(WGGBrowserDetector.IS_IE){
this.body.onscroll=_23;
this.body.onresize=_23;
}else{
this.win.onscroll=_23;
this.win.onresize=_23;
}
};
WGGDebugWindow.prototype.stateChanged=function(_24){
var _25=_24.getSource();
var _26=_25["type"];
var _27=_25["text"];
if(this.win==null){
this.initialize();
}
if(this.win!=null){
if(this.win.closed){
this.initialize();
}
}
if(this.win==null){
return;
}
var div=this.doc.createElement("div");
this.body.appendChild(div),div.name=_26;
div.style.borderTop="1px dashed orange";
div.innerHTML=this.prepareTypeView(_26);
var _29=null;
if(WGGDataTypeUtils.isString(_27)){
_29=this.prepareStrategies["string"];
}else{
var _2a=_27["object"];
var _2b=_27["caller"];
if(typeof _2b!="string"){
alert("sorry cannot handle callers of type "+(typeof _2b)+" (should be a string)");
}
if(typeof _2a=="string"){
_29=this.prepareStrategies["string"];
_27=_2a+";"+_2b;
}else{
_29=this.prepareStrategies["object"];
}
}
_29.call(this,_26,_27,div);
};
WGGDebugWindow.DebugMenue=function(_2c){
this.parent=_2c;
this.win=this.parent.win;
this.doc=this.parent.doc;
this.body=this.parent.body;
this.menueDiv=null;
this.searchTextRange=null;
this.foundTextHighlightDiv=null;
var _2d=this;
this.defineMenueDivStyle=function(){
return {"fontFamily":"Arial","fontSize":"8pt","position":"absolute","width":"430px","padding":"5px","border":"5px solid #DCE4EE","background":"#EAEEF2","MozOpacity":"0.8","filter":"alpha(opacity=80)"};
};
this.defineFoundTextHighlightDivStyle=function(){
return {"position":"absolute","zIndex":-1,"backgroundColor":"green","border":"1px solid green","MozOpacity":"0.6","filter":"alpha(opacity=60)","display":"none"};
};
this.defineHeaderDivStyle=function(){
return {"fontSize":"10px","fontWeight":"bold","cssFloat":"left","styleFloat":"left","width":"85%"};
};
this.defineShowHideMenueButtonDivStyle=function(){
return {"cssFloat":"right","styleFloat":"right","width":"26px"};
};
this.defineShowHideMenueButtonStyle=function(){
return {"width":"25px","fontSize":"8pt","width":"20px","height":"70px","verticalAlign":"middle"};
};
this.defineCopyToClipboardButtonStyle=function(){
return {"fontSize":"8pt"};
};
this.hideFoundTextHighlightDivStyle=function(){
WGGGUIUtils.extendStyle(_2d.foundTextHighlightDiv,{"display":"none","zIndex":-1});
};
this.getKeyPressSearchStrategy=function(){
if(WGGBrowserDetector.IS_IE){
return function __ieSpecificSearch(_2e){
if(_2e==null){
return;
}
var _2f=_2e.value;
if(_2f==null){
return;
}
if(_2f.length==0){
return;
}
if(this.searchTextRange==null){
this.searchTextRange=this.body.createTextRange();
}else{
this.searchTextRange.moveStart("character",_2f.length);
this.searchTextRange.moveEnd("textedit");
}
var _30=this.searchTextRange.findText(_2f);
if(_30){
this.searchTextRange.scrollIntoView();
var _31=this.searchTextRange.getBoundingClientRect();
var _32=WGGGUIUtils.getScrollLeft(this.doc);
var _33=WGGGUIUtils.getScrollTop(this.doc);
WGGGUIUtils.extendStyle(this.foundTextHighlightDiv,{"top":(_31.top+_33-2)+"px","left":(_31.left+_32-2)+"px","width":(_31.right-_31.left+2)+"px","height":(_31.bottom-_31.top+2)+"px","zIndex":1,"display":"block"});
}else{
this.searchTextRange=this.body.createTextRange();
var _34=confirm("End of document reached; do you want to start the search again?");
this.win.focus();
_2e.focus();
if(_34){
_35.call(_2d,_2e);
}
}
};
}
return null;
};
this.getKeyDownSearchStrategy=function(){
if(WGGBrowserDetector.IS_NAV){
return function __navSpecificSearch(_36){
if(_36==null){
return;
}
_2d.win.find(_36.value,false);
};
}
return null;
};
this.initialize=function(){
this.menueDiv=this.doc.createElement("div");
this.menueDiv.name="menue";
WGGGUIUtils.extendStyle(this.menueDiv,this.defineMenueDivStyle());
this.body.appendChild(this.menueDiv);
var _37=this.doc.createElement("div");
WGGGUIUtils.extendStyle(_37,this.defineHeaderDivStyle());
_37.appendChild(this.doc.createTextNode("DEBUGGING WINDOW '"+this.win.name+"' at "+new Date().toLocaleString()));
this.menueDiv.appendChild(_37);
var _38=this.doc.createElement("div");
WGGGUIUtils.extendStyle(_38,this.defineShowHideMenueButtonDivStyle());
var _39=this.doc.createElement("button");
WGGGUIUtils.extendStyle(_39,this.defineShowHideMenueButtonStyle());
_39.innerHTML="&#8594;";
_39.hidden=false;
_39.onclick=function(e){
var _3b=(this.hidden)?430:80;
var _3c=(this.hidden)?80:430;
var _3d=(this.hidden)?50:-50;
var _3e=null;
function __setVisibility(_3f){
var _40=_2d.menueDiv.childNodes;
for(var i=0;i<_40.length;i++){
if(!_40[i]){
continue;
}
if(_40[i]==_3f||_40[i]==_3f.parentNode){
continue;
}
WGGGUIUtils.extendStyle(_40[i],{"display":(_3f.hidden)?"inline":"none"});
}
};
function __animate(_42,_43){
WGGGUIUtils.extendStyle(_2d.menueDiv,{"width":_43+"px"});
_2d.repaint();
if(_43==_3b){
if(_42.hidden){
__setVisibility(_42);
}
_42.hidden=!_42.hidden;
_42.innerHTML=(_42.hidden)?"&#8592;":"&#8594;";
clearTimeout(_3e);
return;
}
_43+=_3d;
_3e=setTimeout(function(){
__animate(_42,_43);
},5);
};
if(!this.hidden){
__setVisibility(this);
}
__animate(this,_3c);
};
_38.appendChild(_39);
this.menueDiv.appendChild(_38);
this.menueDiv.appendChild(this.doc.createElement("br"));
this.menueDiv.appendChild(this.doc.createElement("br"));
this.menueDiv.appendChild(this.doc.createElement("br"));
var _44=this.doc.createElement("input");
_44.type="text";
_44.onkeydown=function(e){
var f=_2d.getKeyDownSearchStrategy();
if(f!=null){
f.call(_2d,this);
}
return true;
};
_44.onkeypress=function(e){
var _48=_2d.win.event||e;
var _49=_48.keyCode||_48.which;
var f=_2d.getKeyPressSearchStrategy();
if(_49==13){
if(f!=null){
f.call(_2d,this);
}else{
}
}
return true;
};
var _4b=this.doc.createElement("span");
_4b.appendChild(this.doc.createTextNode("Search text:"));
this.menueDiv.appendChild(_4b);
this.menueDiv.appendChild(_44);
this.foundTextHighlightDiv=this.doc.createElement("div");
WGGGUIUtils.extendStyle(this.foundTextHighlightDiv,this.defineFoundTextHighlightDivStyle());
this.body.appendChild(this.foundTextHighlightDiv);
var _4c=this.doc.createElement("select");
var _4d=["[all]"].concat(WGGAbstractDebugInterface.MESSAGE_TYPES);
var _4e=new WGGArray(_4d);
for(var i in _4d){
var _50=_4d[i];
var _51=this.doc.createElement("option");
_51.appendChild(this.doc.createTextNode(_50));
_51.value=_50;
_4c.appendChild(_51);
}
_4c.onchange=function(){
_2d.hideFoundTextHighlightDivStyle();
var _52=this.options[this.selectedIndex].value;
var _53=_2d.doc.getElementsByTagName("div");
for(var i=0;i<_53.length;i++){
var _55=_53[i];
if(!_4e.contains(_55.name)){
continue;
}
if(_52=="[all]"){
WGGGUIUtils.extendStyle(_55,{"display":"block"});
continue;
}
if(_55.name==_52){
WGGGUIUtils.extendStyle(_55,{"display":"block"});
}else{
WGGGUIUtils.extendStyle(_55,{"display":"none"});
}
}
};
var _56=this.doc.createElement("span");
_56.appendChild(this.doc.createTextNode(" | Filter:"));
this.menueDiv.appendChild(_56);
this.menueDiv.appendChild(_4c);
var _57=this.doc.createElement("span");
_57.appendChild(this.doc.createTextNode(" | "));
this.menueDiv.appendChild(_57);
var _58=this.doc.createElement("button");
WGGGUIUtils.extendStyle(_58,this.defineCopyToClipboardButtonStyle());
_58.appendChild(this.doc.createTextNode("Copy"));
_58.onclick=function(){
var _59=WGGGUIUtils.copyToClipboard(_2d.body.innerHTML);
if(_59){
alert("code copied into the clipboard");
}
};
this.menueDiv.appendChild(_58);
this.repaint();
};
this.repaint=function(){
try{
var _5a=WGGGUIUtils.getClientWidth(this.doc,false);
var _5b=WGGGUIUtils.getClientHeight(this.doc,false);
var _5c=WGGGUIUtils.getScrollLeft(this.doc,false);
var _5d=WGGGUIUtils.getScrollTop(this.doc,false);
var _5e=WGGGUIUtils.getDimension(this.menueDiv);
var _5f=_5a+_5c-_5e.width;
var _60=_5d;
WGGGUIUtils.extendStyle(this.menueDiv,{"left":_5f+"px","top":_60+"px"});
}
catch(e){
}
};
this.initialize();
};


/**********WGGDefaultAppContext.js.tmp**********/
function WGGDefaultAppContext(){
this.context={"mapping-general-attributes":{"options":{"maxExtent":{"left":-285313,"bottom":1931651,"right":346270,"top":2786544},"maxResolution":"3339.42578125","projection":"EPSG:40103","units":"m"}},"wms-mapping-providers-defaults":{"providerType":"WMS","params":{"height":550,"width":456,"crs":"EPSG:40103","srs":"EPSG:40103","format":"image/png","layers":"wigeostreet"},"options":{"singleTile":"true"}}};
};
WGGDefaultAppContext.prototype.getValue=function(_1){
var _2=_1.split(/\./);
var _3=this.context;
for(var i=0;i<_2.length;i++){
var _5=_2[i];
_3=_3[_5];
if(typeof _3=="undefined"){
return null;
}
}
return _3;
};


/**********WGGDefaultEventController.js.tmp**********/
function WGGDefaultEventController(_1,_2){
this.app=_1;
this.domElements=_2;
this.viewHashMap=null;
this.initialize();
};
WGGDefaultEventController.prototype.initialize=function(){
if(this.app!=null){
if(this.domElements!=null){
this.viewHashMap=new WGGHashMap();
for(var _3 in this.domElements){
this.addDomElement(_3,this.domElements[_3]);
}
}
}
};
WGGDefaultEventController.prototype.registerEvents=function(){
if(this.app!=null){
var _4=this.viewHashMap.entryIterator();
while(_4.hasNext()){
var _5=_4.next();
if(_5!=null){
_5.registerEvents();
}
}
}
};
WGGDefaultEventController.prototype.getMap=function(){
if(this.viewHashMap==null){
return null;
}
return this.viewHashMap.get(WGGDefaultEventController.VIEW_TYPE_MAP);
};
WGGDefaultEventController.prototype.getLocationList=function(){
if(this.viewHashMap==null){
return null;
}
return this.viewHashMap.get(WGGDefaultEventController.VIEW_TYPE_LIST);
};
WGGDefaultEventController.prototype.getDetailBox=function(){
if(this.viewHashMap==null){
return null;
}
return this.viewHashMap.get(WGGDefaultEventController.VIEW_TYPE_DETAIL);
};
WGGDefaultEventController.prototype.addDomElement=function(_6,_7){
if(_6==null){
return;
}
if(this.viewHashMap.get(_6)!=null){
return;
}
if(this.app.getModel().getObserverByProperty("domElement",_7)!=null){
return;
}
var _8=WGGAbstractStuffFactory.createFactory(this.app.getConfig().type);
var _9=null;
switch(_6){
case WGGDefaultEventController.VIEW_TYPE_MAP:
_9=_8.createMap(this.app,_7,this);
break;
case WGGDefaultEventController.VIEW_TYPE_LIST:
_9=_8.createList(this.app,_7,this);
break;
case WGGDefaultEventController.VIEW_TYPE_DETAIL:
_9=_8.createDetailBox(this.app,_7,this);
break;
default:
throw "unknown view type '"+_6+"'";
}
this.viewHashMap.put(_6,_9);
this.app.getModel().addObserver(_9);
this.registerEvents();
};
WGGDefaultEventController.VIEW_TYPE_MAP="MAP";
WGGDefaultEventController.VIEW_TYPE_LIST="LIST";
WGGDefaultEventController.VIEW_TYPE_DETAIL="DETAIL";
WGGDefaultEventController.VIEW_TYPES=[WGGDefaultEventController.VIEW_TYPE_MAP,WGGDefaultEventController.VIEW_TYPE_LIST,WGGDefaultEventController.VIEW_TYPE_DETAIL];


/**********WGGEnumClassificationType.js.tmp**********/
function WGGEnumClassificationType(_1){
this.type=_1;
};
WGGEnumClassificationType.CLS_UNIQUE=new WGGEnumClassificationType("UniqueClassification");
WGGEnumClassificationType.CLS_RANGE=new WGGEnumClassificationType("RangeClassification");
WGGEnumClassificationType.CLS_QUANTILE=new WGGEnumClassificationType("QuantileClassification");
WGGEnumClassificationType.CLS_FIXED=new WGGEnumClassificationType("FixedClassification");


/**********WGGEnumCmdStatus.js.tmp**********/
function WGGEnumCmdStatus(_1){
this.status=_1;
};
WGGEnumCmdStatus.prototype.isDone=function(){
return (this.status==WGGEnumCmdStatus.STATUS_DONE_FAILURE.status||this.status==WGGEnumCmdStatus.STATUS_DONE_SUCCESS.status);
};
WGGEnumCmdStatus.STATUS_DONE_SUCCESS=new WGGEnumCmdStatus("SUCCESS");
WGGEnumCmdStatus.STATUS_DONE_FAILURE=new WGGEnumCmdStatus("FAILURE");
WGGEnumCmdStatus.STATUS_STARTED=new WGGEnumCmdStatus("STARTED");


/**********WGGEnumCmdTarget.js.tmp**********/
function WGGEnumCmdTarget(_1){
this.tgt=_1;
};
WGGEnumCmdTarget.TGT_INTERNAL=new WGGEnumCmdTarget("INTERNAL");
WGGEnumCmdTarget.TGT_SERVER=new WGGEnumCmdTarget("SERVER");


/**********WGGEnumDataFieldMeaning.js.tmp**********/
function WGGEnumDataFieldMeaning(_1){
this.meaning=_1;
};
WGGEnumDataFieldMeaning.getAllEnumDataFieldMeanings=function(){
var _2=[];
for(var _3 in WGGEnumDataFieldMeaning){
var _4=WGGEnumDataFieldMeaning[_3];
if(!WGGDataTypeUtils.instanceOf(_4,WGGEnumDataFieldMeaning)){
continue;
}
_2.push(_4);
}
return _2;
};
WGGEnumDataFieldMeaning.lookupEnumDataFieldMeaningByMeaning=function(_5){
var _6=WGGEnumDataFieldMeaning.getAllEnumDataFieldMeanings();
for(var i=0;i<_6.length;i++){
if(_6[i].meaning==_5){
return _6[i];
}
}
return null;
};
WGGEnumDataFieldMeaning.DM_UNKNOWN=new WGGEnumDataFieldMeaning(-1);
WGGEnumDataFieldMeaning.DM_UNIQUEID=new WGGEnumDataFieldMeaning(0);
WGGEnumDataFieldMeaning.DM_SYNCTIMESTAMP=new WGGEnumDataFieldMeaning(1);
WGGEnumDataFieldMeaning.DM_SYNCFLAGS=new WGGEnumDataFieldMeaning(2);
WGGEnumDataFieldMeaning.DM_SYNCMULTIREFS=new WGGEnumDataFieldMeaning(3);
WGGEnumDataFieldMeaning.DM_GEOCOORX=new WGGEnumDataFieldMeaning(4);
WGGEnumDataFieldMeaning.DM_GEOCOORY=new WGGEnumDataFieldMeaning(5);
WGGEnumDataFieldMeaning.DM_EDITUSER=new WGGEnumDataFieldMeaning(6);
WGGEnumDataFieldMeaning.DM_EDITGROUP=new WGGEnumDataFieldMeaning(7);
WGGEnumDataFieldMeaning.DM_EDITDATE=new WGGEnumDataFieldMeaning(8);
WGGEnumDataFieldMeaning.DM_EDITREASON=new WGGEnumDataFieldMeaning(9);
WGGEnumDataFieldMeaning.DM_EDITNOTE=new WGGEnumDataFieldMeaning(10);
WGGEnumDataFieldMeaning.DM_GEOCLUSTER=new WGGEnumDataFieldMeaning(11);
WGGEnumDataFieldMeaning.DM_GEOCOORQUALITY=new WGGEnumDataFieldMeaning(12);


/**********WGGEnumDataFieldType.js.tmp**********/
function WGGEnumDataFieldType(_1,f,_3){
this.type=_1;
this.f=f;
this.fTypeCheck=_3;
};
WGGEnumDataFieldType.getAllEnumDataFieldTypes=function(){
var _4=[];
for(var _5 in WGGEnumDataFieldType){
var _6=WGGEnumDataFieldType[_5];
if(!WGGDataTypeUtils.instanceOf(_6,WGGEnumDataFieldType)){
continue;
}
_4.push(_6);
}
return _4;
};
WGGEnumDataFieldType.lookupEnumDataFieldTypeByType=function(_7){
var _8=WGGEnumDataFieldType.getAllEnumDataFieldTypes();
for(var i=0;i<_8.length;i++){
if(_8[i].type==_7){
return _8[i];
}
}
return null;
};
WGGEnumDataFieldType.DT_NUMBER=new WGGEnumDataFieldType("number",Number,null);
WGGEnumDataFieldType.DT_INTEGER=new WGGEnumDataFieldType("integer",Number,function(_a){
return parseInt(_a);
});
WGGEnumDataFieldType.DT_FLOAT=new WGGEnumDataFieldType("float",Number,function(_b){
return parseFloat(_b);
});
WGGEnumDataFieldType.DT_DOUBLE=new WGGEnumDataFieldType("double",Number,function(_c){
return parseFloat(_c);
});
WGGEnumDataFieldType.DT_STRING=new WGGEnumDataFieldType("string",String,null);
WGGEnumDataFieldType.DT_BOOLEAN=new WGGEnumDataFieldType("boolean",Boolean,null);
WGGEnumDataFieldType.DT_DERIVEDDATA=new WGGEnumDataFieldType("deriveddata",String,null);


/**********WGGEnumLanguageISOCode.js.tmp**********/
function WGGEnumLanguageISOCode(_1,_2,_3){
if(_1==null){
throw "iso2Code must not be null";
}
if(_2==null){
throw "iso3Code must not be null";
}
if(_1.length!=2){
throw "iso2Code must have two characters";
}
if(_2.length!=3){
throw "iso3Code must have three characters";
}
this.iso2Code=_1;
this.iso3Code=_2;
this.name=_3;
};
WGGEnumLanguageISOCode.getAllEnumLanguageISOCodes=function(){
var _4=[];
for(var _5 in WGGEnumLanguageISOCode){
var _6=WGGEnumLanguageISOCode[_5];
if(!WGGDataTypeUtils.instanceOf(_6,WGGEnumLanguageISOCode)){
continue;
}
_4.push(_6);
}
return _4;
};
WGGEnumLanguageISOCode.lookupEnumLanguageISOCodeByISO2=function(_7){
var _8=this.getAllEnumLanguageISOCodes();
for(var i=0;i<_8.length;i++){
if(_8[i].iso2Code==_7){
return _8[i];
}
}
return null;
};
WGGEnumLanguageISOCode.lookupEnumLanguageISOCodeByISO3=function(_a){
var _b=this.getAllEnumLanguageISOCodes();
for(var i=0;i<_b.length;i++){
if(_b[i].iso3Code==_a){
return _b[i];
}
}
return null;
};
WGGEnumLanguageISOCode.prototype.getIso2Code=function(){
return this.iso2Code;
};
WGGEnumLanguageISOCode.prototype.getIso3Code=function(){
return this.iso3Code;
};
WGGEnumLanguageISOCode.prototype.getName=function(){
return this.name;
};
WGGEnumLanguageISOCode.prototype.toString=function(){
return "iso2Code:"+this.iso2Code+",iso3Code:"+this.iso3Code+",name:"+this.name;
};
WGGEnumLanguageISOCode.LANGUAGE_ISO_GERMAN=new WGGEnumLanguageISOCode("de","deu","German");
WGGEnumLanguageISOCode.LANGUAGE_ISO_FRENCH=new WGGEnumLanguageISOCode("fr","fra","French");
WGGEnumLanguageISOCode.LANGUAGE_ISO_ENGLISH=new WGGEnumLanguageISOCode("en","eng","English");


/**********WGGEnumLayerType.js.tmp**********/
function WGGEnumLayerType(_1){
this.type=_1;
};
WGGEnumLayerType.getAllEnumLayerTypes=function(){
var _2=[];
for(var _3 in WGGEnumLayerType){
var _4=WGGEnumLayerType[_3];
if(!WGGDataTypeUtils.instanceOf(_4,WGGEnumLayerType)){
continue;
}
_2.push(_4);
}
return _2;
};
WGGEnumLayerType.lookupEnumLayerTypeByType=function(_5){
var _6=WGGEnumLayerType.getAllEnumLayerTypes();
for(var i=0;i<_6.length;i++){
if(_6[i].type==_5){
return _6[i];
}
}
return null;
};
WGGEnumLayerType.LYR_POINT=new WGGEnumLayerType("point");
WGGEnumLayerType.LYR_LINE=new WGGEnumLayerType("line");
WGGEnumLayerType.LYR_POLYGON=new WGGEnumLayerType("polygon");
WGGEnumLayerType.LYR_RASTER=new WGGEnumLayerType("raster");


/**********WGGEventsManager.js.tmp**********/
function WGGEventsManager(_1,_2){
this.handlerObject=null;
this.handledObject=null;
this.listenersMap=null;
this.debugInterface=null;
this.isEventNameArgValid=function(_3){
return WGGDataTypeUtils.isString(_3);
};
this.isMethodArgValid=function(_4){
return WGGDataTypeUtils.isFunction(_4);
};
this.isObjArgValid=function(_5){
return (_5==null||WGGDataTypeUtils.isObject(_5));
};
this.initialize(_1,_2);
};
WGGEventsManager.prototype.setHandledObject=function(_6){
this.handledObject=_6;
};
WGGEventsManager.prototype.initialize=function(_7,_8){
this.handlerObject=_7;
this.handledObject=_8;
this.listenersMap=new WGGHashMap();
try{
if(WGGDataTypeUtils.isObject(WGGAbstractDebugInterface.gDebugInterface)){
this.debugInterface=WGGAbstractDebugInterface.gDebugInterface;
WGGEventsManager.debugInterface=WGGAbstractDebugInterface.gDebugInterface;
}else{
throw "WGGAbstractDebugInterface.gDebugInterface probably undefined";
}
}
catch(e){
this.debugInterface=new WGGNullDebugInterface();
WGGEventsManager.debugInterface=new WGGNullDebugInterface();
}
};
WGGEventsManager.prototype.supportsEvent=function(_9){
if(_9==null){
return false;
}
if(!this.isEventNameArgValid(_9)){
return false;
}
return this.listenersMap.containsKey(_9);
};
WGGEventsManager.prototype.addEventListener=function(_a,_b,_c){
if(_a==null){
return false;
}
if(_c==null){
return false;
}
if(!this.isEventNameArgValid(_a)){
return false;
}
if(!this.isMethodArgValid(_c)){
return false;
}
if(!this.isObjArgValid(_b)){
return false;
}
this.listenersMap.put(_a,function(){
_c.apply(_b,arguments);
});
var _d=this;
this.handledObject["on"+_a]=function(){
_d.triggerEvent(_a);
};
return true;
};
WGGEventsManager.prototype.addEventListenersMap=function(){
var _e=Array.prototype.slice.call(arguments);
if(_e.length<2){
throw "arguments.length should be >= 2";
}
var _f=_e[0];
var _10=_e[1];
var _11=(_e.length>2)?_e.slice(2,_e.length):null;
if(_10==null){
return false;
}
for(var _12 in _10){
var _13=_10[_12];
var _14=WGGEventsManager.findHandler([_f,this.handlerObject],_13);
if(_14==null){
continue;
}
if(!WGGDataTypeUtils.isArray(_14)){
continue;
}
if(_14.length!=2){
continue;
}
var _15=_14[0];
var _16=_14[1];
var _17=[_12,_15,_16].concat(_11);
this.addEventListener.apply(this,_17);
}
};
WGGEventsManager.prototype.removeEventListener=function(_18){
if(_18==null){
return false;
}
if(!this.supportsEvent(_18)){
return false;
}
if(!this.hasEventListener(_18)){
return false;
}
this.listenersMap.remove(_18);
return true;
};
WGGEventsManager.prototype.hasEventListener=function(_19){
if(_19==null){
return false;
}
if(!this.supportsEvent(_19)){
return false;
}
return (this.listenersMap.get(_19)!=null);
};
WGGEventsManager.prototype.triggerEvent=function(){
var _1a=Array.prototype.slice.call(arguments);
if(_1a==null){
return;
}
if(_1a.length==0){
return;
}
var _1b=_1a[0];
if(!this.supportsEvent(_1b)){
return;
}
if(!this.hasEventListener(_1b)){
return;
}
var _1c=this.listenersMap.get(_1b);
_1c.apply(null,((_1a.length<2)?[]:_1a.slice(1,_1a.length)));
};
WGGEventsManager.findHandler=function(_1d,_1e){
if(_1e==null){
return [null,null];
}
if(_1d==null||_1d.length==0){
if(WGGDataTypeUtils.isFunction(_1e)){
return [null,_1e];
}else{
return [null,null];
}
}
var _1f=null;
var _20=null;
for(var i=0;i<_1d.length;i++){
var _22=_1d[i];
if(WGGDataTypeUtils.isString(_1e)){
var _23=_22[_1e];
if(WGGDataTypeUtils.isFunction(_23)){
_1f=_22;
_20=_23;
break;
}
}else{
if(WGGDataTypeUtils.isFunction(_1e)){
var _24=new WGGMethod(_1e).getName();
if(_24.length>0){
if(_22[_24]==_1e){
_1f=_22;
_20=_1e;
break;
}
}else{
for(var _25 in _22){
if(_22[_25]==_1e){
_1f=_22;
_20=_1e;
break;
}
}
}
}else{
continue;
}
}
}
return [_1f,_20];
};


/**********WGGExtent.js.tmp**********/
function WGGExtent(_1,_2,_3,_4){
var _5=JSINER.extend(this,WGGAbstractGeometry);
if(!WGGDataTypeUtils.isNumber(_1)){
return _5;
}
if(!WGGDataTypeUtils.isNumber(_2)){
return _5;
}
if(!WGGDataTypeUtils.isNumber(_3)){
return _5;
}
if(!WGGDataTypeUtils.isNumber(_4)){
return _5;
}
if(_1>_3){
throw "minx must not be greater than maxx";
}
if(_2>_4){
throw "miny must not be greater than maxy";
}
_5.minx=_1;
_5.miny=_2;
_5.maxx=_3;
_5.maxy=_4;
return _5;
};
WGGExtent.prototype.getCenter=function(){
return new WGGPoint((this.minx+this.maxx)/2,(this.miny+this.maxy)/2);
};
WGGExtent.prototype.getMinx=function(){
return this.minx;
};
WGGExtent.prototype.getMaxx=function(){
return this.maxx;
};
WGGExtent.prototype.getMiny=function(){
return this.miny;
};
WGGExtent.prototype.getMaxy=function(){
return this.maxy;
};
WGGExtent.prototype.addPoint=function(_6){
if(_6==null){
return;
}
var x=_6.getX();
var y=_6.getY();
if(x<this.minx){
this.minx=x;
}
if(x>this.maxx){
this.maxx=x;
}
if(y<this.miny){
this.miny=y;
}
if(y>this.maxy){
this.maxy=y;
}
};
WGGExtent.prototype.toGLatLngBounds=function(){
if(WGGDataTypeUtils.isFunction(GLatLngBounds)){
return new GLatLngBounds(new GLatLng(this.minx,this.miny),new GLatLng(this.maxx,this.maxy));
}
return null;
};
WGGExtent.prototype.toOpenLayersBounds=function(){
if(WGGDataTypeUtils.isFunction(OpenLayers.Bounds)){
return new OpenLayers.Bounds(this.minx,this.miny,this.maxx,this.maxy);
}
return null;
};
WGGExtent.prototype.toString=function(){
return this.minx+","+this.miny+","+this.maxx+","+this.maxy;
};


/**********WGGField.js.tmp**********/
function WGGField(_1){
var _2=JSINER.extend(this,"WGGMember");
if(_1!=null){
if(WGGDataTypeUtils.isFunction(_1)){
throw new Error("Parameter '"+_1+"' is not a field but function, use WGGMethod class to reflect it");
}
}
_2.field=_1;
return _2;
};
WGGField.prototype.getType=function(){
var _3=null;
try{
var c=this.field.constructor;
var _3=new String(c);
var _5=_3.split(/ /g);
if(_5!=null){
if(_5.length>1){
var _6=_5[1].indexOf("(");
if(_6!=-1){
_3=_5[1].substring(0,_6);
}
}
}
}
catch(e){
_3="UNKNOWN ("+e.message+")";
}
return _3;
};
WGGField.prototype.getName=function(){
return null;
};
WGGField.prototype.getValue=function(){
if(!WGGDataTypeUtils.isObject(this.field)){
return this.field;
}
var _7="";
try{
var i=0;
for(var _9 in this.field){
try{
if(i>0){
_7+=",";
}
_7+=WGGStringUtils.LINE_SEP;
_7+="---["+_9+"="+this.field[_9]+"]";
i++;
}
catch(e){
_7+="---[error while fetching information about "+_9+":"+e.message+"]";
}
}
}
catch(e){
var _a="";
try{
_a=WGGDataTypeUtils.isString(e)?e:e.message;
}
catch(ex){
}
return "exception ("+_a+") thrown during fetching information about value: "+_7;
}
return _7;
};
WGGField.prototype.toString=function(){
return "type="+this.getType()+";"+WGGStringUtils.LINE_SEP+"value="+this.getValue();
};


/**********WGGGeneralModuleDescriptor.js.tmp**********/
function WGGGeneralModuleDescriptor(){
var _1=JSINER.extend(this,"WGGAbstractModuleDescriptor");
_1.getName=function(){
return "MODULE_GENERAL";
};
_1.getVersion=function(){
return "0.1";
};
_1.getMainClass=function(){
return WGGGeneralModuleMain;
};
return _1;
};


/**********WGGGeneralModuleMain.js.tmp**********/
function WGGGeneralModuleMain(){
var _1=JSINER.extend(this,"WGGAbstractModuleMain");
_1.cmdDefs=[new WGGCmdDef("GET_GUILOCALIZATIONSTRIDS","stdpp",[],function(){
return _1.processStandardResponse.apply(_1,arguments);
},WGGEnumCmdTarget.TGT_SERVER),new WGGCmdDef("GET_GUIPRIVILEGES","stdpp",[],function(){
return _1.processStandardResponse.apply(_1,arguments);
},WGGEnumCmdTarget.TGT_SERVER)];
return _1;
};


/**********WGGGeocoder.js.tmp**********/
function WGGGeocoder(_1,_2){
var _3=JSINER.extend(this,"WGGServerRequest");
_3.url=_1;
_3.ajaxLoader=null;
_3.setAjaxLoader(_2);
if(_3.ajaxLoader!=null){
_3.ajaxLoader.initialize();
}
_3.observers=[];
_3.paramsHashMap=new WGGHashMap();
_3.debugInterface=null;
try{
if(WGGDataTypeUtils.isObject(WGGAbstractDebugInterface.gDebugInterface)){
_3.debugInterface=WGGAbstractDebugInterface.gDebugInterface;
}else{
throw "WGGAbstractDebugInterface.gDebugInterface probably undefined";
}
}
catch(e){
_3.debugInterface=new WGGNullDebugInterface();
}
return _3;
};
WGGGeocoder.prototype.update=function(){
this.debugInterface.debug("WGGGeocoder.update");
if(arguments.length==0){
return;
}
var _4=arguments[0];
if(_4==null){
return;
}
this.debugInterface.debug(_4);
try{
var _5=_4.getElementsByTagName("GEOCODE")[0];
if(!_5){
throw "geocodeNode must not be null or undefined";
}
var _6=_5.getElementsByTagName("INPUT");
if(_6==null){
this.notify();
return;
}
var _7=_5.getElementsByTagName("SUMMARY");
if(_7==null){
this.notify();
return;
}
var _8=_5.getElementsByTagName("OUTPUT");
if(_8==null){
this.notify();
return;
}
var _9=_6[0];
var _a=WGGXmlUtils.parseChildNodes(_9);
var _b=_7[0];
var _c=WGGXmlUtils.parseChildNodes(_b);
var _d=_8[0];
var _e=false;
if(_d){
var _f=_d.getElementsByTagName("SET");
if(_f!=null){
var _10=new Array();
for(var i=0;i<_f.length;i++){
var _12=_f[i];
var _13=_12.childNodes;
var _14=new WGGLocation();
var _15=new Object();
for(var j=0;j<_13.length;j++){
var _17=_13[j];
if(_17==null){
continue;
}
var _18=null;
if(_17.nodeType==3){
_18=_17.nodeValue;
}else{
if(_17.firstChild!=null){
_18=_17.firstChild.nodeValue;
}
}
var _19=_17.nodeName;
switch(_19){
case "XCOOR":
_14.setX(parseFloat(_18));
break;
case "YCOOR":
_14.setY(parseFloat(_18));
break;
default:
_15[_19]=_18;
_14.setDesc(_15);
}
}
_10[i]=_14;
}
this.notify({"INPUT":_a,"SUMMARY":_c,"OUTPUT":_10});
_e=true;
}
}
if(!_e){
this.notify({"INPUT":_a,"SUMMARY":_c});
}
}
catch(e){
this.debugInterface.error("error while processing xmlDoc, xmlDoc is probably not a XMLDocument-instance, see description:");
this.debugInterface.error(e);
}
};


/**********WGGGetRouteRequest.js.tmp**********/
function WGGGetRouteRequest(_1,_2){
var _3=JSINER.extend(this,"WGGServerRequest");
_3.url=_1;
_3.ajaxLoader=null;
_3.setAjaxLoader(_2);
if(_3.ajaxLoader!=null){
_2.initialize();
}
_3.observers=[];
_3.paramsHashMap=new WGGHashMap();
_3.debugInterface=null;
try{
if(WGGDataTypeUtils.isObject(WGGAbstractDebugInterface.gDebugInterface)){
_3.debugInterface=WGGAbstractDebugInterface.gDebugInterface;
}else{
throw "WGGAbstractDebugInterface.gDebugInterface probably undefined";
}
}
catch(e){
_3.debugInterface=new WGGNullDebugInterface();
}
_3.source=null;
_3.extent=null;
_3.points=null;
_3.locations=null;
return _3;
};
WGGGetRouteRequest.prototype.getPoints=function(){
return this.points;
};
WGGGetRouteRequest.prototype.getLocations=function(){
return this.locations;
};
WGGGetRouteRequest.prototype.update=function(){
this.debugInterface.debug("WGGGetRouteRequest.update");
if(arguments.length==0){
return;
}
var _4=arguments[0];
if(_4==null){
return;
}
try{
var _5=_4.getElementsByTagName("ROUTING")[0];
var _6=_5.getElementsByTagName("SUMMARY")[0];
var _7=_6.getElementsByTagName("SEGMENTS")[0];
if(_7){
var _8=_7.firstChild.nodeValue;
if(_8==0){
throw "error while computing route: segments of a route must not be 0";
}
sourceNode=_6.getElementsByTagName("SOURCE")[0];
this.source=sourceNode.firstChild.nodeValue;
this.debugInterface.debug("source: "+this.source);
var _9=_6.getElementsByTagName("EXTENT")[0];
var _a=_9.getElementsByTagName("LEFT")[0];
var _b=_9.getElementsByTagName("RIGHT")[0];
var _c=_9.getElementsByTagName("TOP")[0];
var _d=_9.getElementsByTagName("BOTTOM")[0];
this.extent=[_a,_d,_b,_c];
var _e=_5.getElementsByTagName("RESULTS")[0].getElementsByTagName("RESULT");
var _f=_e.length;
this.debugInterface.debug("RESULT nodes count: "+_f);
this.locations=[];
for(var i=0;i<_e.length;i++){
var _11=_e[i];
var _12=_11.getElementsByTagName("TURN")[0];
var _13=WGGXmlUtils.getChildValue(_12);
var _14=WGGXmlUtils.getChildValue(_12.getAttributeNode("X"));
var _15=WGGXmlUtils.getChildValue(_12.getAttributeNode("Y"));
var _16=WGGXmlUtils.getChildValue(_11.getElementsByTagName("TURN2")[0]);
var tcd=WGGXmlUtils.getChildValue(_11.getElementsByTagName("TCD")[0]);
var arn=WGGXmlUtils.getChildValue(_11.getElementsByTagName("ARN")[0]);
var rdc=WGGXmlUtils.getChildValue(_11.getElementsByTagName("RDC")[0]);
var frc=WGGXmlUtils.getChildValue(_11.getElementsByTagName("FRC")[0]);
var km=WGGXmlUtils.getChildValue(_11.getElementsByTagName("KM")[0]);
var _1c=WGGXmlUtils.getChildValue(_11.getElementsByTagName("KMTOTAL")[0]);
var _1d=WGGXmlUtils.getChildValue(_11.getElementsByTagName("TIME")[0]);
var _1e=WGGXmlUtils.getChildValue(_11.getElementsByTagName("TIMETOTAL")[0]);
var _1f=_11.getElementsByTagName("EXTENT")[0];
var _20=WGGXmlUtils.getChildValue(_1f.getElementsByTagName("LEFT")[0]);
var _21=WGGXmlUtils.getChildValue(_1f.getElementsByTagName("RIGHT")[0]);
var top=WGGXmlUtils.getChildValue(_1f.getElementsByTagName("TOP")[0]);
var _23=WGGXmlUtils.getChildValue(_1f.getElementsByTagName("BOTTOM")[0]);
var _24={"SET":(i+1),"TURN":_13,"X":((_14)?_14.replace(",","."):null),"Y":((_15)?_15.replace(",","."):null),"TURN2":_16,"TCD":tcd,"ARN":arn,"RDC":rdc,"FRC":frc,"KM":km,"KMTOTAL":_1c,"TIME":_1d,"TIMETOTAL":_1e,"EXTENT":new WGGExtent(_20,_23,_21,top)};
this.locations[i]=new WGGLocation(_14,_15,i,_24);
}
var _25=_5.getElementsByTagName("VERTICES")[0].getElementsByTagName("V");
var _26=_25.length;
this.debugInterface.debug("V nodes count: "+_26);
this.points=[];
for(var i=0;i<_26;i++){
var _27=_25[i];
var _14=_27.getAttributeNode("X");
var _15=_27.getAttributeNode("Y");
attrXValue=WGGXmlUtils.getChildValue(_14);
attrYValue=WGGXmlUtils.getChildValue(_15);
var x=parseFloat(attrXValue.replace(",","."));
var y=parseFloat(attrYValue.replace(",","."));
this.points[i]=new WGGPoint(x,y);
}
this.notify({"POINTS":this.points});
}
}
catch(e){
this.debugInterface.error("error while processing xmlDoc, xmlDoc is probably not a XMLDocument-instance, see description:");
this.debugInterface.error(e);
}
};


/**********WGGGlobals.js.tmp**********/
var thisDoc=document;
function inherits(_1,_2){
for(var _3 in _1){
try{
_2[_3]=_1[_3];
}
catch(e){
}
}
};
function getMouseKey(e){
if(!e&&isIE){
e=window.event;
}
var _5=(e.button)?e.button:e.which;
return _5;
};
function getKeyboardKey(e){
if(!e&&isIE){
e=window.event;
}
var _7=e.which;
if(!_7){
_7=e.keyCode;
}
return _7;
};
function getPosition(_8){
if(_8==null){
return null;
}
var _9={left:0,top:0,width:0,height:0};
_9.toString=function(){
return this.left+","+this.top+","+this.width+","+this.height;
};
_9.width=_8.offsetWidth;
_9.height=_8.offsetHeight;
if(typeof _8.offsetLeft!="undefined"){
while(_8){
_9.left+=_8.offsetLeft;
_9.top+=_8.offsetTop;
_8=_8.offsetParent;
}
}else{
_9.left=_8.left;
_9.top=_8.top;
}
return _9;
};


/**********WGGGoogleGeocoder.js.tmp**********/
function WGGGoogleGeocoder(){
var _1=JSINER.extend(this,"WGGSubject");
_1.observers=[];
_1.nativeGeocoder=new GClientGeocoder();
_1.debugInterface=null;
try{
if(WGGDataTypeUtils.isObject(WGGAbstractDebugInterface.gDebugInterface)){
_1.debugInterface=WGGAbstractDebugInterface.gDebugInterface;
}else{
throw "WGGAbstractDebugInterface.gDebugInterface probably undefined";
}
}
catch(e){
_1.debugInterface=new WGGNullDebugInterface();
}
return _1;
};
WGGGoogleGeocoder.prototype.geocode=function(_2){
if(_2==null){
return;
}
for(var _3 in _2){
var _4=_2[_3];
if(!/\*$/.test(_4)){
_2[_3]=_4+"*";
}
}
this.debugInterface.debug(_2);
var _5="";
if(_2["ZIP"]){
_5+=_2["ZIP"];
}
if(_2["CITY"]){
_5+=" "+_2["CITY"];
}
if(_5!=""){
_5+=", ";
}
if(_2["STR"]){
_5+=_2["STR"];
}
if(_2["HNR"]){
_5+=" "+_2["HNR"];
}
if(_5==""){
return;
}
if(_2["CTRISO"]){
_5+=", "+_2["CTRISO"];
}
var _6=this;
function callback(){
_6.update.apply(_6,arguments);
};
this.nativeGeocoder.getLocations(_5,callback);
};
WGGGoogleGeocoder.prototype.update=function(){
this.debugInterface.debug("WGGGoogleGeocoder.update");
var _7=[];
for(var i=0;i<arguments.length;i++){
_7[i]=arguments[i];
}
this.debugInterface.debug(_7);
var _9=arguments[0];
var _a={};
_a["INPUT"]=_9["name"];
_a["SUMMARY"]={"STATUS":_9["Status"]["code"]};
var _b=null;
var _c=null;
var _d=_9["Placemark"];
var _e=[];
if(WGGDataTypeUtils.isArray(_d)){
for(var i=0;i<_d.length;i++){
var _f=_d[i];
var id=_f["id"];
var _11=_f["address"];
var _12=_f["AddressDetails"];
_b=_12["Accuracy"];
_c=_12["Country"]["CountryNameCode"];
var _13=_f["Point"];
var _14=_13["coordinates"];
var lat=_14[0];
var lng=_14[1];
_e[i]=new WGGLocation(lat,lng,id,_11);
}
}
_a["OUTPUT"]=_e;
_a["SUMMARY"]["ACC"]=_b;
_a["SUMMARY"]["CTRISO"]=WGGGoogleGeocoder.countryNameCodesMap[_c];
this.notify(_a);
};
WGGGoogleGeocoder.countryNameCodesMap={"DE":"DEU","AT":"AUT","AR":"ARG"};


/**********WGGGoogleMap.js.tmp**********/
function WGGGoogleMap(_1,_2,_3){
var _4=JSINER.extend(this,"WGGAbstractMap");
_4.app=_1;
_4.domElement=_2;
_4.eventController=_3;
_4.nativeMap=null;
_4.markersCache=null;
_4.initialize();
return _4;
};
WGGGoogleMap.prototype.createNativeMapObject=function(){
if(this.domElement!=null){
this.nativeMap=new GMap2(this.domElement);
}
};
WGGGoogleMap.prototype.addControls=function(){
if(this.nativeMap!=null){
this.nativeMap.addControl(new GLargeMapControl());
this.nativeMap.addControl(new GMapTypeControl());
this.nativeMap.enableDoubleClickZoom();
this.nativeMap.enableContinuousZoom();
this.nativeMap.enableScrollWheelZoom();
}
};
WGGGoogleMap.prototype.setCenter=function(x,y,_7){
this.nativeMap.setCenter(new GLatLng(y,x),_7);
};
WGGGoogleMap.prototype.getZoom=function(){
var _8=this.nativeMap.getZoom();
return _8;
};
WGGGoogleMap.prototype.panTo=function(x,y){
this.nativeMap.panTo(new GLatLng(y,x));
};
WGGGoogleMap.prototype.update=function(_b,_c,_d){
if(WGGDataTypeUtils.instanceOf(_b,WGGNextDoorModel)){
var _e=WGGAbstractStuffFactory.createFactory(this.app.getConfig().type);
var _f=null;
if(_d!=null){
if(WGGDataTypeUtils.isArray(_d)){
_f=_d;
}else{
if(WGGDataTypeUtils.isObject(_d)){
_f=new Array();
_f.push(_d);
}
}
}else{
_f=_b.getLocations();
}
switch(_c){
case "add":
if(_f==null){
break;
}
var _10=_b.currentMarkerIndex;
if(_10==null){
_10=0;
}
for(var i=0;i<_f.length;i++){
var _12=_f[i];
if(this.markersCache.get(_12.getId())!=null){
continue;
}
var _13=_e.createMarker(this,_10,_12,_12.getDesc());
this.markersCache.put(_12.getId(),_13);
_13.show();
}
this.onMarkersAdded();
break;
case "showAll":
if(_f==null){
break;
}
if(_f.length==0){
break;
}
var _14=null;
for(var i=0;i<_f.length;i++){
var _12=_f[i];
if(_14==null){
_14=new GLatLngBounds(new GLatLng(_12.getY(),_12.getX()),new GLatLng(_12.getY(),_12.getX()));
continue;
}
_14.extend(new GLatLng(_12.getY(),_12.getX()));
}
var _15=this.nativeMap.getBoundsZoomLevel(_14);
this.nativeMap.setCenter(_14.getCenter(),_15);
this.onAllMarkersShown();
break;
case "show":
if(_d==null){
break;
}
var _13=this.markersCache.get(_d);
if(_13!=null){
this.setCenter(_13.getPoint().getY(),_13.getPoint().getX(),12);
_13.showTooltip();
}
break;
case "clear":
if(_f==null){
break;
}
for(var i=0;i<_f.length;i++){
var _16=_f[i].getId();
var _13=this.markersCache.get(_16);
if(_13!=null){
_13.destroy();
}
}
this.markersCache.clear();
break;
case "remove":
if(_d==null){
break;
}
var _16=_d.getId();
var _13=this.markersCache.get(_16);
if(_13!=null){
_13.destroy();
}
this.markersCache.remove(_16);
break;
}
}
};
WGGGoogleMap.prototype.getCenter=function(){
var c=this.nativeMap.getCenter();
return new WGGPoint(c.lat(),c.lng());
};
WGGGoogleMap.prototype.getExtent=function(){
if(this.nativeMap==null){
return null;
}
var _18=this.nativeMap.getBounds();
var sw=_18.getSouthWest();
var ne=_18.getNorthEast();
return new WGGExtent(sw.lat(),sw.lng(),ne.lat(),ne.lng());
};
WGGGoogleMap.prototype.setExtent=function(_1b){
if(_1b==null){
return;
}
var _1c=_1b.toGLatLngBounds();
var _1d=this.nativeMap.getBoundsZoomLevel(_1c);
this.nativeMap.setCenter(_1c.getCenter(),_1d);
};
WGGGoogleMap.prototype.registerEvents=function(){
if(this.nativeMap!=null){
var _1e=this;
GEvent.clearListeners(this.nativeMap,"click");
GEvent.clearListeners(this.nativeMap,"moveend");
GEvent.addListener(this.nativeMap,"click",function(){
_1e.onMapClick.apply(_1e,arguments);
});
GEvent.addListener(this.nativeMap,"moveend",function(){
_1e.onMapMoveEnd.apply(_1e,arguments);
});
}
};
WGGGoogleMap.prototype.onMarkersAdded=function(){
};
WGGGoogleMap.prototype.onAllMarkersShown=function(){
};
WGGGoogleMap.prototype.onMapClick=function(e){
};
WGGGoogleMap.prototype.onMapMoveEnd=function(e){
};


/**********WGGGoogleMarker.js.tmp**********/
function WGGGoogleMarker(_1,_2,_3,_4){
var _5=JSINER.extend(this,"WGGAbstractMarker");
_5.map=_1;
_5.point=_3;
_5.content=_4;
_5.nativeMarker=null;
_5.index=_2;
return _5;
};
WGGGoogleMarker.prototype.registerEvents=function(){
if(this.nativeMarker!=null){
var _6=this;
GEvent.addListener(this.nativeMarker,"click",function(){
_6.showTooltip(arguments[0]);
});
}
};
WGGGoogleMarker.prototype.getPixelPosition=function(){
throw "not yet implemented";
};
WGGGoogleMarker.prototype.buildIcon=function(){
if(this.map==null){
return null;
}
try{
var _7=this.getMarkerProperties();
var _8=new GIcon();
_8.image=_7["locIconPath"];
_8.shadow=_7["locShadowPath"];
_8.iconSize=new GSize(_7["locIconSize"][0],_7["locIconSize"][1]);
_8.shadowSize=new GSize(_7["locShadowSize"][0],_7["locShadowSize"][1]);
_8.iconAnchor=new GPoint(_7["locIconAnchor"][0],_7["locIconAnchor"][1]);
_8.infoWindowAnchor=new GPoint(_7["locWindowAnchor"][0],_7["locWindowAnchor"][1]);
return _8;
}
catch(e){
throw e;
}
return null;
};
WGGGoogleMarker.prototype.buildTooltipContent=function(){
return WGGGoogleMarker.superClass.buildTooltipContent.call(this);
};
WGGGoogleMarker.prototype.showTooltip=function(){
var e=(arguments.length>0)?arguments[0]:null;
var _a=false;
if(e!=null){
if(WGGBrowserDetector.IS_IE){
_a=(e.button==2);
}else{
_a=(e.which==3);
}
}
if(_a){
this.onMouseDownRight();
}else{
var _b=this.buildTooltipContent();
this.nativeMarker.openInfoWindowHtml(_b,null);
this.onMouseDownLeft();
}
};
WGGGoogleMarker.prototype.show=function(){
var _c=this.buildIcon();
if(_c!=null){
this.nativeMarker=new GMarker(this.point.toGLatLng(),_c);
this.map.getNativeMap().addOverlay(this.nativeMarker);
this.registerEvents();
}
};
WGGGoogleMarker.prototype.destroy=function(){
if(this.nativeMarker!=null){
this.map.getNativeMap().removeOverlay(this.nativeMarker);
}
};
WGGGoogleMarker.prototype.setImageUrl=function(_d){
this.nativeMarker.setImage(_d);
};


/**********WGGGoogleStuffFactory.js.tmp**********/
function WGGGoogleStuffFactory(){
return JSINER.extend(this,"WGGAbstractStuffFactory");
};
WGGGoogleStuffFactory.prototype.createMap=function(_1,_2,_3){
return new WGGGoogleMap(_1,_2,_3);
};
WGGGoogleStuffFactory.prototype.createMarker=function(_4,_5,_6,_7){
return new WGGGoogleMarker(_4,_5,_6,_7);
};


/**********WGGGUIUtils.js.tmp**********/
function WGGGUIUtils(){
};
WGGGUIUtils.getPosition=function(_1){
var _2={left:0,top:0};
if(typeof _1.offsetLeft!="undefined"){
while(_1){
_2.left+=_1.offsetLeft;
_2.top+=_1.offsetTop;
_1=_1.offsetParent;
}
}else{
_2.left=_1.left;
_2.top=_1.top;
}
return _2;
};
WGGGUIUtils.getRelativePosition=function(_3){
var _4={left:0,top:0};
_4.left=_3.offsetLeft;
_4.top=_3.offsetTop;
return _4;
};
WGGGUIUtils.getDimension=function(_5){
var _6={width:0,height:0};
_6.width=_5.offsetWidth;
_6.height=_5.offsetHeight;
return _6;
};
WGGGUIUtils.getClientCoordinates=function(_7){
var _8=0;
var _9=0;
if(_7.pageX||_7.pageY){
_8=_7.pageX;
_9=_7.pageY;
}else{
if(_7.clientX||_7.clientY){
_8=_7.clientX+document.body.scrollLeft+document.documentElement.scrollLeft;
_9=_7.clientY+document.body.scrollTop+document.documentElement.scrollTop;
}
}
return {x:_8,y:_9};
};
WGGGUIUtils.copyToClipboard=function(_a){
if(window.clipboardData){
return window.clipboardData.setData("text",_a);
}else{
if(window.netscape){
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
var _b=Components.classes["@mozilla.org/widget/clipboard;1"].createInstance(Components.interfaces.nsIClipboard);
if(!_b){
return;
}
var _c=Components.classes["@mozilla.org/widget/transferable;1"].createInstance(Components.interfaces.nsITransferable);
if(!_c){
return;
}
_c.addDataFlavor("text/unicode");
var _d=new Object();
var _e=new Object();
var _d=Components.classes["@mozilla.org/supports-string;1"].createInstance(Components.interfaces.nsISupportsString);
var _f=_a;
_d.data=_f;
_c.setTransferData("text/unicode",_d,_f.length*2);
var _10=Components.interfaces.nsIClipboard;
if(!_b){
return;
}
_b.setData(_c,null,_10.kGlobalClipboard);
}
}
};
WGGGUIUtils.isVisible=function(obj){
if(obj==document){
return true;
}
if(!obj){
return false;
}
if(!obj.parentNode){
return false;
}
if(obj.style){
if(obj.style.display=="none"){
return false;
}
if(obj.style.visibility=="hidden"){
return false;
}
}
if(window.getComputedStyle){
var _12=window.getComputedStyle(obj,"");
if(_12.display=="none"){
return false;
}
if(_12.visibility=="hidden"){
return false;
}
}
var _12=obj.currentStyle;
if(_12){
if(_12["display"]=="none"){
return false;
}
if(_12["visibility"]=="hidden"){
return false;
}
}
return WGGGUIUtils.isVisible(obj.parentNode);
};
WGGGUIUtils.DimensionsHelper=function(){
};
WGGGUIUtils.DimensionsHelper._filterResults=function(_13,_14,_15,_16){
var _17=_13?_13:0;
if(_14&&(!_17)){
_17=_14;
}
if(!_15){
return _17;
}
if(!_17){
return _15;
}
var _18=null;
if(_16==false){
_18=(_17<_15)?_17:_15;
}else{
_18=(_17>_15)?_17:_15;
}
return _18;
};
WGGGUIUtils.getClientWidth=function(doc,_1a){
if(!doc){
doc=document;
}
if(!_1a){
_1a=false;
}
return WGGGUIUtils.DimensionsHelper._filterResults(window.innerWidth?window.innerWidth:0,doc.documentElement?doc.documentElement.clientWidth:0,doc.body?doc.body.clientWidth:0,_1a);
};
WGGGUIUtils.getClientHeight=function(doc,_1c){
if(!doc){
doc=document;
}
if(!_1c){
_1c=false;
}
return WGGGUIUtils.DimensionsHelper._filterResults(window.innerHeight?window.innerHeight:0,doc.documentElement?doc.documentElement.clientHeight:0,doc.body?doc.body.clientHeight:0,_1c);
};
WGGGUIUtils.getScrollLeft=function(doc,_1e){
if(!doc){
doc=document;
}
if(!_1e){
_1e=false;
}
return WGGGUIUtils.DimensionsHelper._filterResults(window.pageXOffset?window.pageXOffset:0,doc.documentElement?doc.documentElement.scrollLeft:0,doc.body?doc.body.scrollLeft:0,_1e);
};
WGGGUIUtils.getScrollTop=function(doc,_20){
if(!doc){
doc=document;
}
if(!_20){
_20=false;
}
return WGGGUIUtils.DimensionsHelper._filterResults(window.pageYOffset?window.pageYOffset:0,doc.documentElement?doc.documentElement.scrollTop:0,doc.body?doc.body.scrollTop:0,_20);
};
WGGGUIUtils.extendStyle=function(obj,_22){
if(obj==null){
return;
}
if(obj.style==null){
return;
}
if(_22==null){
return;
}
for(var _23 in _22){
obj.style[_23]=_22[_23];
}
};
WGGGUIUtils.estimateFontDimensions=function(){
if(arguments.length==0){
return;
}
var obj=arguments[0];
if(obj==null){
return;
}
if(obj.firstChild==null){
return;
}
if(obj.firstChild.nodeType!=3){
return;
}
var _25=parseInt(obj.offsetWidth);
var _26=parseInt(obj.offsetHeight);
var _27=obj.parentNode;
if(_27!=null){
while(true){
if(_27==null){
break;
}
if(_27.tagName=="BODY"){
break;
}
var _28=parseInt(_27.offsetWidth);
var _29=parseInt(_27.offsetHeigth);
if(_28<_25){
_25=_28;
}
if(_29<_26){
_26=_29;
}
_27=_27.parentNode;
}
}
var _2a=null;
if(arguments.length>1){
if(arguments[1]!=null){
if(WGGDataTypeUtils.isString(arguments[1])){
_2a=arguments[1];
}else{
_2a=obj.firstChild.nodeValue;
}
}
}
if(_2a==null){
throw "WGGGUIUtils.estimateFontDimensions: no text found for the element ("+obj.nodeName+")";
}
var len=_2a.length;
var _2c=0,_2d=0,_2e=0,_2f=0;
if(!WGGDataTypeUtils.isUndefined(obj.style.paddingLeft)){
_2c=parseInt(obj.style.paddingLeft);
if(isNaN(_2c)){
_2c=0;
}
}
if(!WGGDataTypeUtils.isUndefined(obj.style.paddingRight)){
_2d=parseInt(obj.style.paddingRight);
if(isNaN(_2d)){
_2d=0;
}
}
if(!WGGDataTypeUtils.isUndefined(obj.style.paddingTop)){
_2e=parseInt(obj.style.paddingTop);
if(isNaN(_2e)){
_2e=0;
}
}
if(!WGGDataTypeUtils.isUndefined(obj.style.paddingBottom)){
_2f=parseInt(obj.style.paddingBottom);
if(isNaN(_2f)){
_2f=0;
}
}
var _30=_25-_2c-_2d;
var _31=_26-_2e-_2f;
var _32=0;
if(len!=0){
_32=Math.floor(_30/len);
}
var _33=_31;
var _34=0;
if(_32!=0){
_34=Math.floor(_30/_32);
}
return {"width":_25,"height":_26,"innerWidth":_30,"innerHeight":_31,"text":_2a,"textLength":len,"optLength":_34,"charWidth":_32,"charHeight":_33};
};


/**********WGGHashMap.js.tmp**********/
function WGGHashMap(){
this.hashMap=new Array(new Object());
this.length=0;
this.currentIndex=-1;
};
WGGHashMap.prototype.isKeyValid=function(_1){
return (WGGDataTypeUtils.isString(_1)||WGGDataTypeUtils.isNumeric(_1));
};
WGGHashMap.prototype.clear=function(){
this.hashMap=new Array(new Object());
this.length=0;
this.currentIndex=-1;
};
WGGHashMap.prototype.containsKey=function(_2){
if(!this.isKeyValid(_2)){
return false;
}
for(var _3 in this.hashMap[0]){
if(_3==_2){
return true;
}
}
return false;
};
WGGHashMap.prototype.containsValue=function(_4){
for(var _5 in this.hashMap[0]){
if(this.hashMap[0][_5]==_4){
return true;
}
}
return false;
};
WGGHashMap.prototype.entryIterator=function(){
var _6=new Array();
for(var _7 in this.hashMap[0]){
_6.push(this.hashMap[0][_7]);
}
var _8=new WGGListIterator();
_8.setInternalArray(_6);
return _8;
};
WGGHashMap.prototype.get=function(_9){
if(!this.isKeyValid(_9)){
return null;
}
return this.hashMap[0][_9];
};
WGGHashMap.prototype.isEmpty=function(){
var _a=0;
for(var _b in this.hashMap[0]){
if(_a>0){
break;
}
_a++;
}
return (_a==0);
};
WGGHashMap.prototype.keyIterator=function(){
var _c=new Array();
for(var _d in this.hashMap[0]){
_c.push(_d);
}
var _e=new WGGListIterator();
_e.setInternalArray(_c);
return _e;
};
WGGHashMap.prototype.put=function(_f,_10){
if(!this.isKeyValid(_f)){
return false;
}
var _11=this.hashMap[0][_f];
if(!this.containsKey(_f)){
this.length++;
}
this.hashMap[0][_f]=_10;
if(WGGDataTypeUtils.isArray(_10)){
var arr=new Array();
for(var i=0;i<_10.length;i++){
arr.push(_10[i]);
}
this.hashMap[0][_f]=arr;
}
return _11;
};
WGGHashMap.prototype.remove=function(key){
if(!this.isKeyValid(key)){
return null;
}
try{
oldEntry=this.hashMap[0][key];
delete this.hashMap[0][key];
this.length--;
return oldEntry;
}
catch(e){
return null;
}
};
WGGHashMap.prototype.size=function(){
return this.length;
};
WGGHashMap.prototype.toString=function(){
if(arguments.length==3){
var _15=arguments[0];
var _16=new Boolean(arguments[1]);
var _17=new String(arguments[2]);
var _18="";
for(var i=0;i<_15.length;i++){
var _1a=this.get(_15[i]);
if(_1a){
if(_18!=""){
_18+=_17;
}
_18+=_1a;
if(_16==true){
break;
}
}
}
return _18;
}
var str="";
if(this.length!=0){
var arr=this.hashMap[0];
for(var key in arr){
if(str!=""){
str+=";";
}
var val=this.hashMap[0][key];
if(typeof val=="object"){
val=val.toString();
}
str+=key+"="+val;
}
}
return str;
};
WGGHashMap.prototype.sortByKey=function(){
};
WGGHashMap.prototype.sortByEntry=function(){
var _1f=new Array();
var _20=new WGGArray();
for(var _21 in this.hashMap[0]){
_1f.push(_21);
_20.add(this.hashMap[0][_21]);
}
_20.qsort(0,_20.length(),function(a,b){
var tmp=_1f[a];
_1f[a]=_1f[b];
_1f[b]=tmp;
});
var _25=new Array(new Object());
for(var i=0;i<_1f.length;i++){
_25[0][_1f[i]]=_20.get(i);
}
this.hashMap=_25;
this.currentIndex=-1;
};


/**********WGGHtmlUtils.js.tmp**********/
function WGGHtmlUtils(){
};
WGGHtmlUtils.htmlSpecialChars=function(_1){
if(_1==null||_1==""){
return _1;
}
if(!WGGDataTypeUtils.isString(_1)){
return _1;
}
_1=_1.replace(/&/g,"&amp;");
_1=_1.replace(/\"/g,"&quot;");
_1=_1.replace(/\'/g,"&#039;");
_1=_1.replace(/</g,"&lt;");
_1=_1.replace(/>/g,"&gt;");
return _1;
};
WGGHtmlUtils.buildURLFromCurrentPath=function(_2){
var _3=location.protocol+"//"+location.host;
if(_2==null){
return _3;
}
if(_2.indexOf("/")==0){
_3+=_2;
}else{
var _4=location.pathname.lastIndexOf("/");
var _5=(_4!=-1)?location.pathname.substring(0,_4):location.pathname;
_3+=_5+"/"+_2;
}
return _3;
};
WGGHtmlUtils.buildURL=function(_6,_7){
if(_6==null){
return "";
}
var _8=_6;
var i=0;
for(var _a in _7){
if(i==0){
if(_8.length>0){
_8+="?";
}
}else{
_8+="&";
}
_8+=_a+"="+encodeURIComponent(_7[_a]);
i++;
}
return _8;
};
WGGHtmlUtils.extractQueryString=function(_b){
if(_b==null){
return null;
}
var _c=_b.indexOf("?");
var _d="";
if(_c==-1){
_d=_b;
}else{
if(_c<_b.length-1){
_d=_b.substr(_c+1);
}
}
return _d;
};
WGGHtmlUtils.explodeGetParams=function(_e){
var _f=WGGHtmlUtils.extractQueryString(_e);
var _10={};
var _11=_f.split("&");
for(var i=0;i<_11.length;i++){
var _13=_11[i];
var _14=_13.split("=");
if(_14.length<2){
_10[_14[0]]=null;
continue;
}
_10[_14[0]]=decodeURIComponent(_14[1]);
}
return _10;
};
WGGHtmlUtils.getCurrentScriptName=function(){
var pos=location.pathname.lastIndexOf("/");
if(pos==-1){
return location.pathname;
}
if((pos+1)<location.pathname.length){
return location.pathname.substring(pos+1);
}
return "";
};
WGGHtmlUtils.getElementsByClassName=function(_16,_17,_18){
if(document.getElementsByClassName){
return _16.getElementsByClassName(_18,function(_19){
if(_17==null||_17=="*"){
return true;
}
return _19.nodeName==_17;
});
}
var _1a=(_17=="*"&&_16.all)?_16.all:_16.getElementsByTagName(_17);
var _1b=[];
_18=_18.replace(/\-/g,"\\-");
var _1c=new RegExp("(^|\\s)"+_18+"(\\s|$)");
var _1d;
for(var i=0;i<_1a.length;i++){
_1d=_1a[i];
if(_1c.test(_1d.className)){
_1b.push(_1d);
}
}
return (_1b);
};
WGGHtmlUtils.getParentFromPath=function(_1f){
if(_1f==null){
return null;
}
var _20=_1f;
var _21=_20.indexOf("?");
if(_21!=-1){
_20=_20.substring(0,_21);
}
var _22=_20.lastIndexOf("/");
if(_22==-1){
return _20;
}
return _20.substring(0,_22);
};


/**********WGGIdGenerator.js.tmp**********/
var WGGIdGenerator=(function(){
var _1=null;
function __WGGIdGenerator(){
this.generateId=function(){
var _2=arguments.length>0?arguments[0]:"";
return _2+Math.round(Math.random()*100000);
};
};
return new function __invoke_constructor__WGGIdGenerator(){
this.getInstance=function(){
if(_1==null){
_1=new __WGGIdGenerator();
_1.constructor=null;
}
return _1;
};
};
})();


/**********WGGInputValidator.js.tmp**********/
function WGGInputValidator(_1,_2){
this.changeListeners=new Array();
this.input=_3;
this.regexp=_2;
this.oldValue="";
if(_1){
var _3=document.getElementsByName(_1);
if(_3==null){
return;
}
if(_3.length==null){
return;
}
this.input=_3[0];
if(this.input!=null){
this.input.validatorRef=this;
this.input.onkeyup=function(e){
if(this.validatorRef.regexp==""){
this.validatorRef.notifyChangeListeners();
return;
}
var _5=document.all?event:e;
var _6=document.all?_5.srcElement:_5.target;
var _7=document.all?_5.keyCode:_5.which;
if(_7==0||_7==8||_7==13||_7==44||_7==45||_7==46){
this.validatorRef.oldValue=this.value;
this.validatorRef.notifyChangeListeners();
return;
}
var _8=this.value.match(this.validatorRef.regexp);
if(!_8){
this.value=this.validatorRef.oldValue;
}else{
if(_8[0]!=this.value){
this.value=this.validatorRef.oldValue;
}else{
this.validatorRef.oldValue=this.value;
}
}
this.validatorRef.notifyChangeListeners();
};
}
}
};
WGGInputValidator.prototype.addChangeListener=function(_9){
if(_9==null){
return;
}
if(!_9.stateChanged){
return;
}
this.changeListeners.push(_9);
};
WGGInputValidator.prototype.removeChangeListener=function(_a){
if(this.changeListeners==null){
return;
}
for(var i=0;i<this.changeListeners.length;i++){
if(this.changeListeners[i]==_a){
var _c=this.changeListeners.slice(0,i);
var _d=new Array();
if(i<(this.changeListeners.length-1)){
_d=this.changeListeners.slice(i+1);
}
this.changeListeners=_c.concat(_d);
}
}
};
WGGInputValidator.prototype.notifyChangeListeners=function(){
var _e=new WGGChangeEvent(this);
for(var i=0;i<this.changeListeners.length;i++){
this.changeListeners[i].stateChanged(_e);
}
};


/**********WGGIterator.js.tmp**********/
function WGGIterator(){
};
WGGIterator.prototype.hasNext=function(){
};
WGGIterator.prototype.next=function(){
};


/**********WGGJsCore.js.tmp**********/


/**********WGGLanguageSource.js.tmp**********/
function WGGLanguageSource(_1){
this.enumLanguageISOCode=_1;
this.src={};
};
WGGLanguageSource.prototype.setSrc=function(_2){
this.src=_2;
};
WGGLanguageSource.prototype.lookupByName=function(){
if(arguments.length==0){
return null;
}
var _3=arguments[0];
var _4=_3;
if(arguments.length>1){
_4=arguments[1];
}
return (typeof this.src[_3]=="undefined")?_4:this.src[_3];
};
WGGLanguageSource.prototype.getEnumLanguageISOCode=function(){
return this.enumLanguageISOCode;
};
WGGLanguageSource.isCorrectLanguagePlaceholder=function(_5){
if(!_5){
return false;
}
return (_5.indexOf("lng_")==0);
};


/**********WGGLayerModuleDescriptor.js.tmp**********/
function WGGLayerModuleDescriptor(){
var _1=JSINER.extend(this,"WGGAbstractModuleDescriptor");
_1.getName=function(){
return "MODULE_LAYER";
};
_1.getVersion=function(){
return "0.1";
};
_1.getMainClass=function(){
return WGGLayerModuleMain;
};
return _1;
};


/**********WGGLayerModuleMain.js.tmp**********/
function WGGLayerModuleMain(){
var _1=JSINER.extend(this,"WGGAbstractModuleMain");
_1.cmdDefs=[new WGGCmdDef("GET_LAYERS","getlayers",[],function(){
if(arguments.length==0){
return;
}
var _2=arguments[0];
var _3=_1.processStandardResponse.apply(_1,arguments);
if(_3["RETVAL"]!="OK"){
return _3;
}
var _4=WGGXmlUtils.selectNodes(_2,"/RESPONSE/BODY/DATA/LAYERLIST",null);
if(_4.length>1){
throw "/RESPONSE/BODY/DATA should have one node with name LAYERLIST only";
}
var _5=_4[0];
var _6=new WGGCssRulesManager(document);
function __parse(_7,_8){
if(_7==null){
_7=[];
}
var _9=WGGXmlUtils.selectNodes(_8,"LAYER",null);
for(var i=0;i<_9.length;i++){
var _b=_9[i];
var id=WGGXmlUtils.getChildValue(WGGXmlUtils.selectNodes(_b,"ID",null)[0]);
var _d=WGGXmlUtils.getChildValue(WGGXmlUtils.selectNodes(_b,"TITLE",null)[0]);
var _e=WGGXmlUtils.getChildValue(WGGXmlUtils.selectNodes(_b,"TYPE",null)[0]);
var _f=WGGEnumLayerType.lookupEnumLayerTypeByType(_e);
var _10=WGGXmlUtils.getChildValue(WGGXmlUtils.selectNodes(_b,"DVISIBLE",null)[0]);
var _11=WGGXmlUtils.getChildValue(WGGXmlUtils.selectNodes(_b,"MINSCALE",null)[0]);
var _12=WGGXmlUtils.getChildValue(WGGXmlUtils.selectNodes(_b,"MAXSCALE",null)[0]);
var _13=WGGXmlUtils.getChildValue(WGGXmlUtils.selectNodes(_b,"SYMBOL",null)[0]);
var _14={};
if(_10){
_14["defaultVisible"]=((_10=="true")?true:false);
}
if(_11){
_14["minScale"]=_11;
}
if(_12){
_14["maxScale"]=_12;
}
if(_13){
_14["symbol"]=_13;
}
var _15=WGGXmlUtils.getChildValue(WGGXmlUtils.selectNodes(_b,"SPECIALTYPE",null)[0]);
var _16=WGGXmlUtils.selectNodes(_b,"PROVIDERINFO",null);
if(_16!=null){
if(_16.length!=0){
var _17=_16[0];
var _18={};
var _19=WGGXmlUtils.getChildValue(WGGXmlUtils.selectNodes(_17,"TYPE",null)[0]);
var _1a=WGGXmlUtils.getChildValue(WGGXmlUtils.selectNodes(_17,"URL",null)[0]);
_18["type"]=_19;
_18["url"]=_1a;
var _1b={};
var _1c=WGGXmlUtils.selectNodes(_17,"PARAMS",null);
if(_1c!=null){
providerInfoParamsNode=_1c[0];
var _1d=WGGXmlUtils.selectNodes(providerInfoParamsNode,"PARAM",null);
for(var j=0;j<_1d.length;j++){
var _1f=_1d[j];
var _20=_1f.getAttribute("NAME");
var _21=WGGXmlUtils.getChildValue(_1f);
_1b[_20]=_21;
}
}
_18["params"]=_1b;
var _22={};
var _23=WGGXmlUtils.selectNodes(_17,"OPTIONS",null);
if(_23!=null){
providerInfoOptionsNode=_23[0];
var _24=WGGXmlUtils.selectNodes(providerInfoOptionsNode,"OPTION",null);
for(var j=0;j<_24.length;j++){
var _25=_24[j];
var _26=_25.getAttribute("NAME");
var _27=WGGXmlUtils.getChildValue(_25);
_22[_26]=_27;
}
}
_18["options"]=_22;
}
}
var _28=[];
var _29=WGGXmlUtils.selectNodes(_b,"FIELDS",null);
if(_29!=null&&_29.length>0){
var _2a=_29[0];
var _2b=_2a.getElementsByTagName("FIELD");
for(var j=0;j<_2b.length;j++){
var _2c=_2b[j];
var fId=_2c.getAttribute("ID");
var _2e=_2c.getAttribute("NAME");
var _2f=_2c.getAttribute("TITLE");
var _30=_2c.getAttribute("TYPE");
var _31=_2c.getAttribute("MEANING");
var _32=_2c.getAttribute("NULLABLE");
var _33=_2c.getAttribute("LTITLE");
var _34=_2c.getAttribute("AGG");
var _35={};
if(_33){
_35["longTitle"]=_33;
}
if(_34){
_35["agg"]=_34;
}
var _36=WGGEnumDataFieldType.lookupEnumDataFieldTypeByType(_30);
var _37=WGGEnumDataFieldMeaning.lookupEnumDataFieldMeaningByMeaning(_31);
_28[j]=new WGGDataLayerLeaf.DataField(fId,_2e,_2f,_36,_37,_32);
_28[j].setOptions(_35);
}
}
var _38=null;
var _39=WGGXmlUtils.selectNodes(_b,"LAYERLIST",null);
if(_39!=null&&_39.length>0){
_38=new WGGDataLayerGroup(id,_d);
__parse(_38,_39[0]);
}else{
var _3a=null;
switch(_15){
case "SUM_ALL":
_3a=WGGSpecialAllDataLayerLeaf;
break;
case "SUM_VISIBLE":
_3a=WGGSpecialVisibleDataLayerLeaf;
break;
default:
_3a=WGGDataLayerLeaf;
}
_38=new _3a(id,_d,_f,_28);
}
_38.setOptions(_14);
_38.setProviderInfo(_18);
if(_13){
var _3b=new WGGServerRequest.StandardGETRequestSerializer();
var _3c=_3b.deserialize(_13);
if(_3c==null){
var _3d=WGGHtmlUtils.getParentFromPath(WGGCmdDef.wigeowebCfg.getAbsoluteServerRequestHandlerURL());
_13=_3d+"/"+_13;
}
var _3e="wgg-"+_38.layerIdentifier+"-layer-default-visible";
var _3f="wgg-"+_38.layerIdentifier+"-layer-default-invisible";
_6.insertStyleSheetRule(null,"."+_3e,"background-image:url("+_13+");background-repeat:no-repeat;background-position:left center;");
_6.insertStyleSheetRule(null,"."+_3f,"background-image:url("+_13+");background-repeat:no-repeat;background-position:left center;-moz-opacity:0.5;filter:alpha(opacity=50);opacity: 0.5;-khtml-opacity: 0.5;");
_38.addSymbology("visibility",[_3e,_3f]);
}
if(WGGDataTypeUtils.isArray(_7)){
_7.push(_38);
}else{
_7.addChild(_38);
}
}
};
var _40=[];
__parse(_40,_5);
_3["DATA"]=_40;
return _3;
},WGGEnumCmdTarget.TGT_SERVER),new WGGCmdDef("SELECTLAYER","stdpp",[new WGGCmdDef.ParamDef("layerIdentifier",String,true)],function(){
return _1.processStandardResponse.apply(_1,arguments);
},WGGEnumCmdTarget.TGT_SERVER),new WGGCmdDef("DESELECTLAYER","stdpp",[new WGGCmdDef.ParamDef("layerIdentifier",String,true)],function(){
return _1.processStandardResponse.apply(_1,arguments);
},WGGEnumCmdTarget.TGT_SERVER),new WGGCmdDef("SELECTLAYERGROUP","stdpp",[new WGGCmdDef.ParamDef("layerGroupIdentifier",String,true)],function(){
return _1.processStandardResponse.apply(_1,arguments);
},WGGEnumCmdTarget.TGT_SERVER),new WGGCmdDef("DESELECTLAYERGROUP","stdpp",[new WGGCmdDef.ParamDef("layerGroupIdentifier",String,true)],function(){
return _1.processStandardResponse.apply(_1,arguments);
},WGGEnumCmdTarget.TGT_SERVER),new WGGCmdDef("ACTIVATELAYER","stdpp",[new WGGCmdDef.ParamDef("layerIdentifier",String,true)],function(){
return _1.processStandardResponse.apply(_1,arguments);
},WGGEnumCmdTarget.TGT_SERVER)];
return _1;
};


/**********WGGListIterator.js.tmp**********/
function WGGListIterator(){
var _1=JSINER.extend(this,"WGGIterator");
_1.array=null;
_1.index=-1;
return _1;
};
WGGListIterator.prototype.setInternalArray=function(_2){
if(!WGGDataTypeUtils.isArray(_2)){
return;
}
this.array=_2;
};
WGGListIterator.prototype.hasNext=function(){
if(!WGGDataTypeUtils.isArray(this.array)){
return false;
}
if(this.array==null){
return false;
}
if(this.array.length==0){
return false;
}
if(this.index>=this.array.length-1){
return false;
}
return true;
};
WGGListIterator.prototype.hasPrevious=function(){
if(!WGGDataTypeUtils.isArray(this.array)){
return false;
}
if(this.array==null){
return false;
}
if(this.array.length==0){
return false;
}
if(this.index<=0){
return false;
}
return true;
};
WGGListIterator.prototype.next=function(){
if(!WGGDataTypeUtils.isArray(this.array)){
return null;
}
var _3=(this.index==-1)?0:(this.index+1);
if(_3<0||_3>(this.array.length-1)){
return null;
}
this.index=_3;
return this.array[this.index];
};
WGGListIterator.prototype.previous=function(){
if(!WGGDataTypeUtils.isArray(this.array)){
return null;
}
var _4=(this.index==-1)?0:(this.index-1);
if(_4<0||_4>(this.array.length-1)){
return null;
}
this.index=_4;
return this.array[this.index];
};
WGGListIterator.prototype.current=function(){
if(!WGGDataTypeUtils.isArray(this.array)){
return null;
}
var _5=(this.index==-1)?0:this.index;
if(_5<0||_5>(this.array.length-1)){
return null;
}
return this.array[_5];
};
WGGListIterator.prototype.reset=function(){
this.index=-1;
};


/**********WGGLocation.js.tmp**********/
function WGGLocation(x,y,id,_4){
var _5=JSINER.extend(this,"WGGPoint");
_5.x=x;
_5.y=y;
_5.id=id;
_5.desc=_4;
return _5;
};
WGGLocation.prototype.setId=function(id){
this.id=id;
};
WGGLocation.prototype.getId=function(){
return this.id;
};
WGGLocation.prototype.setDesc=function(_7){
this.desc=_7;
};
WGGLocation.prototype.getDesc=function(){
return this.desc;
};
WGGLocation.prototype.toString=function(){
var _8="id="+this.id;
if(WGGDataTypeUtils.isObject(this.desc)){
for(var a in this.desc){
_8+=";"+a+"="+this.desc[a];
}
}
return _8;
};
WGGLocation.prototype.equals=function(_a){
if(_a==null){
return false;
}
if(typeof _a.id=="undefined"){
return false;
}
return (this.id==_a.id);
};


/**********WGGMakeRouteRequest.js.tmp**********/
function WGGMakeRouteRequest(_1,_2){
var _3=JSINER.extend(this,"WGGServerRequest");
_3.url=_1;
_3.ajaxLoader=null;
_3.setAjaxLoader(_2);
if(_3.ajaxLoader!=null){
_3.ajaxLoader.initialize();
}
_3.observers=[];
_3.paramsHashMap=new WGGHashMap();
_3.debugInterface=null;
try{
if(WGGDataTypeUtils.isObject(WGGAbstractDebugInterface.gDebugInterface)){
_3.debugInterface=WGGAbstractDebugInterface.gDebugInterface;
}else{
throw "WGGAbstractDebugInterface.gDebugInterface probably undefined";
}
}
catch(e){
_3.debugInterface=new WGGNullDebugInterface();
}
_3.source=null;
return _3;
};
WGGMakeRouteRequest.prototype.update=function(){
this.debugInterface.debug("WGGMakeRouteRequest.update");
if(arguments.length==0){
return;
}
var _4=arguments[0];
if(_4==null){
return;
}
try{
var _5=_4.getElementsByTagName("ROUTING")[0];
if(!_5){
this.debugInterface.warn("routingNode is null or undefined");
return;
}
var _6=_5.getElementsByTagName("SUMMARY")[0];
var _7=_6.getElementsByTagName("SEGMENTS")[0];
if(_7){
var _8=_7.firstChild.nodeValue;
if(_8==0){
throw "error while computing route: segments of a route must not be 0";
}
sourceNode=_6.getElementsByTagName("SOURCE")[0];
this.source=sourceNode.firstChild.nodeValue;
this.debugInterface.debug("source: "+this.source);
this.notify({"SOURCE":this.source});
}
}
catch(e){
this.debugInterface.error("error while processing xmlDoc, xmlDoc is probably not a XMLDocument-instance, see description:");
this.debugInterface.error(e);
}
};


/**********WGGMapControl.js.tmp**********/
function WGGMapControl(){
var _1=JSINER.extend(this,"WGGSubject");
_1=JSINER.extend(_1,"WGGVisitor");
var _2=null;
var _3=null;
var _4=null;
var _5=null;
switch(arguments.length){
case 0:
return;
case 4:
_2=arguments[0];
_3=arguments[1];
_4=arguments[2];
_5=arguments[3];
if(_2==null){
throw "cfg must not be null";
}
if(!WGGDataTypeUtils.instanceOf(_2,WGGWigeowebCfg)){
throw "cfg should be instance of WGGWigeowebCfg";
}
if(_3==null){
throw "dataLayer must not be null";
}
if(!WGGDataTypeUtils.isArray(_3)){
throw "dataLayers should be an Array";
}
if(_3.length==0){
throw "dataLayers.length must not be 0";
}
var _6=_3[0];
if(!WGGDataTypeUtils.instanceOf(_6,WGGAbstractDataLayer)){
throw "dataLayer should be instance of WGGDataLayerLeaf";
}
if(_4==null){
throw "parentDomElement must not be null";
}
if(_5==null){
throw "appContext must not be null";
}
break;
default:
throw "count of arguments not sufficient to initialize this widget (WGGMapControl)";
}
_1.mapContainerDef="<div xmlns=\"http://www.w3.org/1999/xhtml\" id=\"mapContainer_{{autoid0}}\" style=\"position:absolute;width:100%;height:100%;\"/>";
_1.mapContainer=null;
_1.cfg=_2;
_1.parentDomElement=_4;
_1.dataLayers=_3;
_1.appContext=_5;
_1.nativeMap=null;
_1.markersCache=null;
_1.debugInterface=null;
try{
if(WGGDataTypeUtils.isObject(WGGAbstractDebugInterface.gDebugInterface)){
_1.debugInterface=WGGAbstractDebugInterface.gDebugInterface;
}else{
throw "WGGAbstractDebugInterface.gDebugInterface probably undefined";
}
}
catch(e){
_1.debugInterface=new WGGNullDebugInterface();
}
_1.preInitialize=function(){
var _7=WGGIdGenerator.getInstance();
var _8=new WGGSimpleTemplate(this.mapContainerDef);
_8.assign(_7.generateId(),"autoid0");
this.mapContainer=bb.command.create(_8.getResult(),this.parentDomElement,"appendChild");
};
_1.postInitialize=function(){
this.addControls();
this.nativeMap.zoomToMaxExtent();
};
_1.initialize=function(){
this.preInitialize();
this.createNativeMapObject();
this.postInitialize();
};
_1.initialize();
return _1;
};
WGGMapControl.prototype.getDataLayerById=function(id){
if(name==null){
return null;
}
if(this.dataLayers==null){
return null;
}
for(var i=0;i<this.dataLayers.length;i++){
if(this.dataLayers[i].layerIdentifier==id){
return this.dataLayers[i];
}
}
return null;
};
WGGMapControl.prototype.visit=function(_b){
if(!WGGDataTypeUtils.instanceOf(_b,WGGDataLayerLeaf)){
return;
}
var _c=_b;
if(!_c.isRasterLayer()){
return;
}
var _d=_c.getProviderInfo();
var _e=_c.layerIdentifier;
var _f=null;
var _10=null;
var _11=null;
var _12=null;
if(_d==null){
_f="WMS";
_10=this.cfg.getAbsoluteServerRequestHandlerURL();
if(this.appContext==null){
throw new Error("appContext must not be null");
}
var _13=this.appContext.getValue("wms-mapping-providers-defaults.params");
if(!_13){
throw new Error("defaults about WMS (wms-mapping-providers-defaults.params) must not be null");
}
_11={"cmd":"CREATEMAP,createmap"};
_11=WGGDataTypeUtils.extend(_13,_11);
_12=this.appContext.getValue("wms-mapping-providers-defaults.options");
}else{
_f=(_d.type)?_d.type:"WMS";
_10=_d.url||null;
_11=_d.params||null;
_12=_d.options||null;
for(var _14 in _12){
var _15=_12[_14];
if(_14!="type"){
continue;
}
if(WGGDataTypeUtils.isString(_15)){
eval("providerOptions['"+_14+"'] = "+_15+";");
break;
}
}
}
var _16=OpenLayers.Layer[_f];
if(typeof _16=="undefined"){
var _17="";
for(var _18 in OpenLayers.Layer){
if(!WGGDataTypeUtils.isFunction(OpenLayers.Layer[_18])){
continue;
}
var _19=OpenLayers.Layer[_18].prototype;
if(!_19.CLASS_NAME){
continue;
}
if(_17!=""){
_17+=", ";
}
_17+=_18;
}
throw new Error("providerType "+_f+" is undefined; mapping-provider.providerType should be a value from the following list of values: \n"+_17);
}
var _1a=null;
if(_10){
_1a=new _16(_c.layerIdentifier,_10,_11,_12);
}else{
_1a=new _16(_c.layerIdentifier,_12);
}
this.olProviderLayers.push(_1a);
};
WGGMapControl.prototype.createNativeMapObject=function(){
var _1b=this.appContext.getValue("mapping-general-attributes.options");
var _1c={};
for(var _1d in _1b){
var _1e=_1b[_1d];
if(_1d=="maxExtent"){
var _1f=new OpenLayers.Bounds(_1e.left,_1e.bottom,_1e.right,_1e.top);
_1e=_1f;
}
_1c[_1d]=_1e;
}
_1c["controls"]=[];
this.mapOptions=_1c;
this.nativeMap=new OpenLayers.Map(this.mapContainer.viewNode.id,_1c);
this.olProviderLayers=[];
for(var i=0;i<this.dataLayers.length;i++){
var _21=this.dataLayers[i];
if(!WGGDataTypeUtils.isFunction(_21.accept)){
continue;
}
_21.accept(this);
}
this.nativeMap.addLayers(this.olProviderLayers);
};
WGGMapControl.prototype.addControls=function(){
if(this.nativeMap!=null){
var _22=new OpenLayers.Control.PanZoomBar();
this.nativeMap.addControl(_22);
this.nativeMap.addControl(new OpenLayers.Control.KeyboardDefaults());
this.nativeMap.addControl(new OpenLayers.Control.MouseDefaults());
}
};
WGGMapControl.prototype.addZoomInControl=function(){
var _23=this.nativeMap.getControlsByClass("OpenLayers.Control.ZoomIn");
if(_23.length==0){
var _24=new OpenLayers.Control.ZoomIn();
var _25=this;
OpenLayers.Util.extend(_24,{draw:function(){
this.box=new OpenLayers.Handler.Box(_24,{"done":this.notice});
this.box.activate();
},notice:function(_26){
var _27=_25.nativeMap.getLonLatFromPixel(new OpenLayers.Pixel(_26.left,_26.bottom));
var _28=_25.nativeMap.getLonLatFromPixel(new OpenLayers.Pixel(_26.right,_26.top));
_25.nativeMap.zoomToExtent(new OpenLayers.Bounds(_27.lon,_27.lat,_28.lon,_28.lat));
}});
this.nativeMap.addControl(_24);
return _24;
}
return _23[0];
};
WGGMapControl.prototype.addZoomOutControl=function(){
var _29=this.nativeMap.getControlsByClass("OpenLayers.Control.ZoomOut");
if(_29.length==0){
var _2a=new OpenLayers.Control.ZoomOut();
var _2b=this;
OpenLayers.Util.extend(_2a,{draw:function(){
this.box=new OpenLayers.Handler.Box(_2a,{"done":this.notice});
this.box.activate();
},notice:function(_2c){
var _2d=_2b.nativeMap.getLonLatFromPixel(new OpenLayers.Pixel(_2c.left,_2c.bottom));
var _2e=_2b.nativeMap.getLonLatFromPixel(new OpenLayers.Pixel(_2c.right,_2c.top));
var _2c=new OpenLayers.Bounds(_2d.lon,_2d.lat,_2e.lon,_2e.lat);
var _2f=_2b.nativeMap.getZoomForExtent(_2c);
_2b.nativeMap.setCenter(_2c.getCenterLonLat());
_2b.nativeMap.zoomOut(_2f);
}});
this.nativeMap.addControl(_2a);
return _2a;
}
return _29[0];
};
WGGMapControl.prototype.setCenter=function(x,y,_32){
if(!_32){
_32=this.nativeMap.getNumZoomLevels()-1;
}
this.nativeMap.setCenter(new OpenLayers.LonLat(x,y),_32,false,false);
};
WGGMapControl.prototype.getCenter=function(){
var c=this.nativeMap.getCenter();
return new WGGPoint(c.lat,c.lon);
};
WGGMapControl.prototype.getZoom=function(){
var _34=this.nativeMap.getZoom();
return _34;
};
WGGMapControl.prototype.panTo=function(x,y){
this.nativeMap.panTo(new OpenLayers.LonLat(x,y));
};
WGGMapControl.prototype.update=function(_37,_38,_39){
switch(_38){
case "zoom-in":
var _3a=this.addZoomOutControl();
_3a.box.deactivate();
var _3b=this.addZoomInControl();
_3b.box.activate();
break;
case "zoom-out":
var _3b=this.addZoomInControl();
_3b.box.deactivate();
var _3a=this.addZoomOutControl();
_3a.box.activate();
break;
case "pan":
var _3a=this.addZoomOutControl();
_3a.box.deactivate();
var _3b=this.addZoomInControl();
_3b.box.deactivate();
break;
case "zoom-max-extent":
this.nativeMap.zoomToMaxExtent();
break;
case "point-identify":
case "rect-identify":
case "polygon-identify":
alert("not yet implemented");
break;
}
};
WGGMapControl.prototype.getExtent=function(){
if(this.nativeMap==null){
return null;
}
var _3c=this.nativeMap.getExtent();
if(_3c==null){
this.nativeMap.zoomToMaxExtent();
}
var arr=this.nativeMap.getExtent().toArray();
return new WGGExtent(arr[0],arr[1],arr[2],arr[3]);
};
WGGMapControl.prototype.setExtent=function(_3e){
if(_3e==null){
return;
}
this.nativeMap.zoomToExtent(_3e.toOpenLayersBounds());
};
WGGMapControl.prototype.registerEvents=function(){
if(this.nativeMap!=null){
this.nativeMap.events.register("click",this,this.onMapClick);
this.nativeMap.events.register("moveend",this,this.onMapMoveEnd);
}
};
WGGMapControl.prototype.onMarkersAdded=function(e){
};
WGGMapControl.prototype.onAllMarkersShown=function(){
};
WGGMapControl.prototype.onMapClick=function(e){
};
WGGMapControl.prototype.onMapMoveEnd=function(e){
};


/**********WGGMapRequestModuleDescriptor.js.tmp**********/
function WGGMapRequestModuleDescriptor(){
var _1=JSINER.extend(this,"WGGAbstractModuleDescriptor");
_1.getName=function(){
return "MODULE_MAPREQUEST";
};
_1.getVersion=function(){
return "0.1";
};
_1.getMainClass=function(){
return WGGMapRequestModuleMain;
};
return _1;
};


/**********WGGMapRequestModuleMain.js.tmp**********/
function WGGMapRequestModuleMain(){
var _1=JSINER.extend(this,"WGGAbstractModuleMain");
_1.cmdDefs=[];
return _1;
};


/**********WGGMarkerUtils.js.tmp**********/
function WGGMarkerUtils(){
};
WGGMarkerUtils.addMarker=function(_1,_2,_3,_4){
if(_1==null){
throw "WGGMarkerUtils.addMarker: olMarkerLayer must not be null";
}
if(_2==null){
throw "WGGMarkerUtils.addMarker: olLonLat must not be null";
}
if(_3==null){
throw "WGGMarkerUtils.addMarker: image must not be null";
}
if(_1.map==null){
throw "olMarkerLayer.map must not be null";
}
var _5=_1.map;
var _6=new OpenLayers.Size(_3.width,_3.height);
var _7=new OpenLayers.Pixel(-(_6.w/2),-_6.h);
var _8=new OpenLayers.Icon(_3.src,_6,_7);
var _9=new OpenLayers.Marker(_2,_8);
try{
if(WGGDataTypeUtils.isArray(_4)){
_9.__attributes=_4;
}else{
_9.__attributes=new Array(_4);
}
}
catch(e){
throw e;
}
_1.addMarker(_9);
};


/**********WGGMember.js.tmp**********/
function WGGMember(_1){
};
WGGMember.prototype.getType=function(){
};
WGGMember.prototype.getValue=function(){
};
WGGMember.prototype.getName=function(){
};
WGGMember.prototype.toString=function(){
};


/**********WGGMessageBox.js.tmp**********/
function WGGMessageBox(_1,_2,_3,_4,_5){
if(!WGGMessageBox.isTypeValid(_1)){
return;
}
this.type=_1;
this.title=(_2!=null)?_2:WGGMessageBox.TITLE;
this.message=(_3!=null)?_3:WGGMessageBox.MESSAGE;
this.messageBoxClassName=_4;
this.functionNames=_5;
this.showMessage=function(){
var d=document;
if(d.getElementById("messageBox")){
return;
}
var _7=d.getElementsByTagName("body")[0].appendChild(d.createElement("div"));
_7.id="messageBox";
_7.style.height=document.documentElement.scrollHeight+"px";
_7.className=this.messageBoxClassName;
var _8=_7.appendChild(d.createElement("div"));
_8.id="alertBox";
var _9=_8.appendChild(d.createElement("h1"));
_9.appendChild(d.createTextNode(this.title));
var _a=_8.appendChild(d.createElement("p"));
alert(_a.tagName);
var _b=d.createTextNode(this.message);
_a.appendChild(_b);
alert("msg.offsetWidth: "+_a.offsetWidth);
_8.style.width=(_a.offsetWidth+100)+"px";
alert("alertObj.style.width: "+_8.style.width);
if(d.all&&!window.opera){
_8.style.top=document.documentElement.scrollTop+"px";
}
_8.style.left=(d.documentElement.scrollWidth-_8.offsetWidth)/2+"px";
_8.style.top=(d.documentElement.offsetHeight-_8.offsetHeight)/2+"px";
switch(this.type){
case WGGMessageBox.TYPE_CONFIRM:
var _c=_8.appendChild(d.createElement("span"));
var _d=_c.appendChild(d.createElement("a"));
_d.id="btnOk";
_d.appendChild(d.createTextNode(WGGMessageBox.BTN_OK));
_d.href="#";
_d.messageBoxRef=this;
_d.onclick=function(){
document.getElementsByTagName("body")[0].removeChild(document.getElementById("messageBox"));
this.messageBoxRef.callFunction(0);
return false;
};
var _e="";
for(var i=0;i<5;i++){
_e+=String.fromCharCode(160);
}
_c.appendChild(d.createTextNode(_e));
var _10=_c.appendChild(d.createElement("a"));
_10.id="btnCancel";
_10.appendChild(d.createTextNode(WGGMessageBox.BTN_CANCEL));
_10.href="#";
_10.messageBoxRef=this;
_10.onclick=function(){
document.getElementsByTagName("body")[0].removeChild(document.getElementById("messageBox"));
this.messageBoxRef.callFunction(1);
return false;
};
break;
case WGGMessageBox.TYPE_ALERT:
var _c=_8.appendChild(d.createElement("span"));
var _d=_c.appendChild(d.createElement("a"));
_d.id="btnOk";
_d.appendChild(d.createTextNode(WGGMessageBox.BTN_OK));
_d.href="#";
_d.style.display="block";
_10.messageBoxRef=this;
_d.onclick=function(){
document.getElementsByTagName("body")[0].removeChild(document.getElementById("messageBox"));
this.messageBoxRef.callFunction(0);
return false;
};
break;
}
};
this.callFunction=function(_11){
if(this.functionNames!=null){
if(DataTypeUtils.isArray(this.functionNames)){
if(_11<this.functionNames.length){
window.setTimeout(this.functionNames[_11]+"()",0);
}
}
}
};
};
WGGMessageBox.TYPE_CONFIRM=1;
WGGMessageBox.TYPE_ALERT=2;
WGGMessageBox.VALID_TYPES=new Array(WGGMessageBox.TYPE_CONFIRM,WGGMessageBox.TYPE_ALERT);
WGGMessageBox.isTypeValid=function(_12){
for(var i=0;i<WGGMessageBox.VALID_TYPES.length;i++){
if(WGGMessageBox.VALID_TYPES[i]==_12){
return true;
}
}
return false;
};
WGGMessageBox.TITLE="MessageBox";
WGGMessageBox.MESSAGE="This is a message!";
WGGMessageBox.BTN_OK="Ok";
WGGMessageBox.BTN_CANCEL="Cancel";


/**********WGGMethod.js.tmp**********/
function WGGMethod(_1){
var _2=JSINER.extend(this,"WGGMember");
if(_1!=null){
if(!WGGDataTypeUtils.isFunction(_1)){
throw new Error("Parameter '"+_1+"' is not a function/method; use WGGField class to reflect it");
}
}
_2.method=_1;
return _2;
};
WGGMethod.prototype.getName=function(){
if(this.method==null){
return "";
}
var _3=new String(this.method);
var _4=_3.indexOf("{");
if(_4==-1){
return "";
}
_3=_3.substring(0,_4);
var _5=function(){
return new RegExp("(function)( [a-zA-Z0-9_]+)?(.*)","g");
};
var _6=new _5().exec(_3);
if(!_6){
return "";
}
if(_6.length<3){
return "";
}
if(typeof _6[2]=="undefined"){
return "";
}
return WGGStringUtils.trim(_6[2]);
};
WGGMethod.prototype.getType=function(){
return "Function";
};
WGGMethod.prototype.getValue=function(){
return this.method;
};
WGGMethod.prototype.toString=function(){
var _7=this.getName();
return "methodName="+_7+";methodBody="+this.method;
};


/**********WGGModuleContainer.js.tmp**********/
function WGGModuleContainer(){
this.regDescriptors=null;
this.regModules=null;
this.initialize=function(){
this.regDescriptors=new WGGArray();
this.regModules=new WGGArray();
};
this.initModule=function(_1){
var _2=_1.getMainClass();
if(_2==null){
throw new Error("The main class of the deployed module descriptor must not be null; module could not be instantiated");
}
if(!WGGDataTypeUtils.isFunction(_2)){
throw new Error("The main class of the deployed module descriptor seems to be not a Function; module could not be instantiated");
}
var _3=null;
try{
_3=new _2();
_3.moduleDescriptor=_1;
}
catch(e){
var _4="Error while instantiating module main class: "+((typeof e!="string")?e.message:e);
_4+=WGGStringUtils.LINE_SEP+new WGGField(_1).toString();
throw new Error(_4);
}
if(!WGGDataTypeUtils.instanceOf(_3,WGGAbstractModuleMain)){
throw new Error("Error while instantiating module main class: main class is probably not a subclass of WGGAbstractModuleName");
}
return _3;
};
this.isFQN=function(_5){
return /(\w+)\.(\w+)/.exec(_5);
};
this.getModuleNameFromFQN=function(_6){
if(!this.isFQN(_6)){
return null;
}
var _7=_6.indexOf(".");
return _6.substring(0,_7);
};
this.getMethodNameFromFQN=function(_8){
if(!this.isFQN(_8)){
return null;
}
var _9=_8.indexOf(".");
return _8.substr(_9+1);
};
this.initialize();
};
WGGModuleContainer.prototype.registerModule=function(_a){
if(_a==null){
throw new Error("The parameter moduleDescriptor must not be null");
}
if(!WGGDataTypeUtils.instanceOf(_a,WGGAbstractModuleDescriptor)){
throw new Error("The parameter moduleDescriptor seems to be not a instance of WGGAbstractModuleDescriptor");
}
var _b=_a.getName();
if(this.getModuleByName(_b)!=null){
var _c="Error while adding module main object to the repository: a module descriptor with name '"+_b+"' already contained";
_c+=WGGStringUtils.LINE_SEP+new WGGField(_a).toString();
throw new Error(_c);
}
var _d=this.initModule(_a);
if(this.regModules.contains(_d)){
var _c="Error while adding module main object to the repository: the object is already contained";
_c+=WGGStringUtils.LINE_SEP+new WGGField(_a).toString();
throw new Error(_c);
}
this.regDescriptors.add(_a);
this.regModules.add(_d);
};
WGGModuleContainer.prototype.getModules=function(){
return this.regModules.getArray();
};
WGGModuleContainer.prototype.getModuleByName=function(_e){
if(_e==null){
return null;
}
for(var i=0;i<this.regDescriptors.length();i++){
var _10=this.regDescriptors.get(i);
if(_10.getName()==_e){
return this.regModules.get(i);
}
}
return null;
};
WGGModuleContainer.prototype.hasModule=function(_11){
return (this.getModuleByName(_11)!=null);
};
WGGModuleContainer.prototype.getCmdDef=function(fqn){
if(fqn==null){
return null;
}
if(!WGGDataTypeUtils.isString(fqn)){
return null;
}
var _13=this.getModuleNameFromFQN(fqn);
if(_13==null){
return null;
}
var _14=this.getMethodNameFromFQN(fqn);
var _15=this.getModuleByName(_13);
if(_15==null){
return null;
}
return _15.getCmdDef(_14);
};
WGGModuleContainer.prototype.executeCmd=function(fqn,_17){
var _18=this.getModuleNameFromFQN(fqn);
if(_18==null){
throw new Error("moduleName cannot be detected from fqn="+fqn);
}
var _19=this.getModuleByName(_18);
if(_19==null){
throw new Error("module must not be null");
}
var _1a=this.getCmdDef(fqn);
if(_1a==null){
throw new Error("cmdDef must not be null");
}
return _1a.execute.apply(_1a,[_19,_17]);
};


/**********WGGNestedNextDoorApp.js.tmp**********/
function WGGNestedNextDoorApp(_1){
this.throwException=function(_2){
var _3="";
if(typeof _2=="object"){
_3=_2.message;
}else{
_3=_2;
}
var _4="";
try{
if(_2.fileName){
_4+=_2.fileName;
}
if(_2.lineNumber){
_4+=", row "+_2.lineNumber;
}
if(_4.length>0){
_4=" ("+_4+")";
}
}
catch(e){
}
throw "{WGGNestedNextDoorApp} "+_2+_4;
};
if(_1==null){
this.throwException("args must not be null");
}
if(!(_1&&typeof _1=="object")){
this.throwException("args should be of type 'Object'");
}
var _5=_1["appURL"];
if(_5==null){
this.throwException("parameter appURL may not have been defined");
}
var _6=_1["srcTagNameGUI"];
if(_6==null){
this.throwException("parameter srcTagNameGUI may not have been defined");
}
var _7=_1["domElementGUI"];
if(_7==null){
this.throwException("parameter domElementGUI may not have been defined");
}
this.GUIPreprocessor=function(_8,_9,_a){
this.isIE=this.constructor.outerClass.isIE;
this.xmlDoc=_8;
this.srcTagNameGUI=_9;
this.domElementGUI=_a;
this.possibleNamespaces={"xi":"http://www.w3.org/2001/XInclude","b":"http://www.backbase.com/2006/btl","c":"http://www.backbase.com/2006/command","d":"http://www.backbase.com/2006/tdl","e":"http://www.backbase.com/2006/xel","bf":"http://www.backbase.com/2007/forms","f":"http://www.backbase.com/2007/demos/forms","smil":"http://www.w3.org/2005/SMIL21/BasicAnimation","xs":"http://www.w3.org/2001/XMLSchema"};
this.throwException=this.constructor.outerClass.throwException;
this.serializeNode=function(_b){
try{
if(typeof XMLSerializer!="undefined"){
var _c=new XMLSerializer();
return _c.serializeToString(_b);
}else{
if(_b.xml){
return _b.xml;
}else{
this.throwException("no serialization of XML supported");
}
}
}
catch(e){
this.throwException(e);
}
return null;
};
this.preprocessGUI=function(){
var _d=null;
var _e=this.srcTagNameGUI.indexOf(":");
var _f=(_e!=-1);
if(!this.isIE){
var _10=this;
function CustomNSResolver(_11){
var _12=_10.possibleNamespaces;
return _12[_11]||null;
};
var _13=this.xmlDoc.evaluate(this.srcTagNameGUI,this.xmlDoc,CustomNSResolver,XPathResult.ANY_TYPE,null);
while(foundNode=_13.iterateNext()){
_d=foundNode;
break;
}
}else{
_d=this.xmlDoc.selectSingleNode(this.srcTagNameGUI);
}
if(_d==null){
this.throwException("node for gui element '"+this.srcTagNameGUI+"' not found. Please check your configuration.");
}
var _14=this.serializeNode(_d);
if(_f){
if(!bb){
this.throwException("srcTagNameGUI '"+this.srcTagNameGUI+" seems to be a Backbase tag."+" in order to use it in your application you should include the Backbase library");
}
bb.command.create(_14,this.domElementGUI);
}else{
this.domElementGUI.innerHTML=_14;
}
};
};
this.GUIPreprocessor.outerClass=this;
this.isIE=(navigator.userAgent.toLowerCase().indexOf("msie")!=-1);
this.appURL=_5;
this.srcTagNameGUI=_6;
this.domElementGUI=_7;
this.xmlHttp=false;
this.observers=[];
this.addObserver(this);
this.numberScriptsIncluded=0;
this.numberScriptsLoaded=0;
this.processRequest=function(){
if(!this.xmlHttp){
return null;
}
try{
if(this.xmlHttp.readyState==4){
if(this.xmlHttp.status==200){
var _15=(this.xmlHttp.responseXML==null)?this.xmlHttp.responseText:this.xmlHttp.responseXML;
return _15;
}else{
this.throwException("there was a problem retrieving the XML data:\n"+this.xmlHttp.statusText);
}
}
}
catch(e){
return e;
}
return null;
};
this.convertXMLNode2DOMNode=function(_16){
var _17=null;
if(_16.nodeType==1){
if(_16.tagName){
_17=document.createElement(_16.tagName);
}else{
return null;
}
}else{
if(_16.nodeType==3){
return document.createTextNode(_16.nodeValue);
}else{
return null;
}
}
if(_16.attributes){
for(var i=0;i<_16.attributes.length;i++){
_17.setAttribute(_16.attributes[i].nodeName,_16.attributes[i].nodeValue);
}
}
if(_16.childNodes){
for(var i=0;i<_16.childNodes.length;i++){
var _19=this.convertXMLNode2DOMNode(_16.childNodes[i]);
if(_19!=null){
if(this.isIE&&(_17.tagName=="STYLE"||_17.tagName=="SCRIPT")){
_17.text=_19.nodeValue;
}else{
_17.appendChild(_19);
}
}
}
}
return _17;
};
this.extractTagArea=function(_1a,_1b){
var _1c=new RegExp("\\<"+_1b+".*\\/\\>|\\<("+_1b+").*?\\>[\\s\\S]*\\<\\/\\1\\>","g");
var _1d=[];
while(tagAreaMatch=_1c.exec(_1a)){
_1d.push(tagAreaMatch[0]);
}
return _1d;
};
this.initialize();
};
WGGNestedNextDoorApp.prototype.notify=function(){
var _1e=[];
for(var i=0;i<arguments.length;i++){
_1e[i]=arguments[i];
}
var _20=this.observers.length;
for(var i=0;i<_20;i++){
this.observers[i].update.apply(this.observers[i],_1e);
}
};
WGGNestedNextDoorApp.prototype.addObserver=function(_21){
if(!_21.update){
return false;
}
if(this.getObserver(_21)==null){
this.observers.push(_21);
return true;
}
return false;
};
WGGNestedNextDoorApp.prototype.getObserver=function(_22){
if(!_22.update){
return null;
}
var _23=this.observers.length;
for(var i=0;i<_23;i++){
if(this.observers[i]==_22){
return _22;
}
}
return null;
};
WGGNestedNextDoorApp.prototype.removeObserver=function(_25){
var _26=this.observers.length;
for(var i=0;i<_26;i++){
if(this.observers[i]==_25){
switch(i){
case 0:
this.observers.shift();
break;
case _26-1:
this.observers.pop();
break;
default:
var _28=this.observers.slice(0,i);
var _29=this.observers.slice(i+1);
this.observers=_28.concat(_29);
break;
}
return true;
}
}
return false;
};
WGGNestedNextDoorApp.prototype.initialize=function(){
if(window.XMLHttpRequest){
try{
netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead");
}
catch(e){
}
try{
this.xmlHttp=new XMLHttpRequest();
if(this.xmlHttp.overrideMimeType){
this.xmlHttp.overrideMimeType("text/xml");
}
}
catch(e){
this.xmlHttp=false;
this.throwException(e);
}
}else{
if(window.ActiveXObject){
try{
this.xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
}
catch(e){
try{
this.xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
}
catch(ex){
this.xmlHttp=false;
this.throwException(ex);
}
}
}else{
this.throwException("AJAX not supported");
}
}
};
WGGNestedNextDoorApp.prototype.startApp=function(){
var url=this.appURL;
var _2b=null;
var _2c=null;
if(url==null){
this.notify();
return false;
}
if(!this.xmlHttp){
this.notify();
return false;
}
try{
if(_2b!=null){
this.xmlHttp.open("POST",url,true);
var _2d="application/x-www-form-urlencoded";
if(_2c!=null){
_2d+="; charset="+_2c;
}else{
}
this.xmlHttp.setRequestHeader("Content-Type",_2d);
}else{
this.xmlHttp.open("GET",url,true);
}
var _2e=this;
this.xmlHttp.onreadystatechange=function(){
var _2f=_2e.processRequest();
_2e.notify(_2f);
};
this.xmlHttp.send(_2b);
return true;
}
catch(e){
this.notify();
}
return false;
};
WGGNestedNextDoorApp.prototype.update=function(){
var _30=this;
if(arguments==null){
return;
}
if(arguments.length==0){
return;
}
if(typeof arguments[0]!="object"){
return;
}
var _31=arguments[0];
if(_31==null){
return;
}
try{
if(typeof _31.getElementsByTagName=="undefined"){
return;
}
}
catch(e){
return;
}
var _32=_31.getElementsByTagName("head");
if(_32){
_32=_32[0];
for(var i=0;i<_32.childNodes.length;i++){
var _34=_32.childNodes[i];
if(_34.nodeType==1){
if(_34.tagName=="title"||_34.tagName=="meta"){
continue;
}
var _35=this.convertXMLNode2DOMNode(_34);
try{
if(_35.src){
var _36=_35.src.toLowerCase();
if(_36.indexOf("init.js")!=-1||_36.indexOf("openlayers.js")!=-1||_36.indexOf("google")!=-1){
if(this.isIE){
_35.onreadystatechange=function(){
if(this.readyState=="complete"||this.readyState=="loaded"){
if(typeof __wggJsCoreInitialized=="function"){
__wggJsCoreInitialized();
}
_30.numberScriptsLoaded++;
_30.preprocessGUI(_31);
}
};
}else{
_35.onload=function(){
if(typeof __wggJsCoreInitialized=="function"){
__wggJsCoreInitialized();
}
_30.numberScriptsLoaded++;
_30.preprocessGUI(_31);
};
}
this.numberScriptsIncluded++;
}
}
}
catch(e){
}
document.getElementsByTagName("head")[0].appendChild(_35);
}
}
}
};
WGGNestedNextDoorApp.prototype.preprocessGUI=function(_37){
if(this.numberScriptsIncluded==this.numberScriptsLoaded){
var _38=new this.GUIPreprocessor(_37,this.srcTagNameGUI,this.domElementGUI);
_38.preprocessGUI();
}
};


/**********WGGNextDoorApp.js.tmp**********/
function WGGNextDoorApp(_1,_2){
this.config=_1;
this.domElements=_2;
this.debugInterface=null;
this.model=null;
this.controller=null;
this.initialize();
};
WGGNextDoorApp.prototype.initialize=function(){
try{
if(WGGDataTypeUtils.isObject(WGGAbstractDebugInterface.gDebugInterface)){
this.debugInterface=WGGAbstractDebugInterface.gDebugInterface;
}else{
throw "WGGAbstractDebugInterface.gDebugInterface probably undefined";
}
}
catch(e){
this.debugInterface=new WGGNullDebugInterface();
}
var _3=WGGAbstractStuffFactory.createFactory(this.config.type);
this.model=_3.createModel(this,null);
this.controller=_3.createEventController(this,this.domElements);
};
WGGNextDoorApp.prototype.getConfig=function(){
return this.config;
};
WGGNextDoorApp.prototype.getModel=function(){
return this.model;
};
WGGNextDoorApp.prototype.getController=function(){
return this.controller;
};
function WGGNextDoorAppConfig(){
};


/**********WGGNextDoorModel.js.tmp**********/
function WGGNextDoorModel(_1,_2){
var _3=JSINER.extend(this,"WGGSubject");
_3.app=_1;
_3.observers=[];
_3.locations=null;
_3.verifierURL=null;
_3.nextLocatorURL=null;
_3.verifierServerRequestClass=null;
_3.nextLocatorServerRequestClass=null;
_3.currentMarkerIndex=null;
_3.initialize(_2);
return _3;
};
WGGNextDoorModel.prototype.initialize=function(_4){
this.locations=new WGGArray();
if(_4!=null){
for(var i=0;i<_4.length;i++){
this.locations.add(_4[i]);
}
}
var _6=function(_7){
if(_7==null){
return null;
}
return _7.match(/^(http(s)\:\/\/)/)?_7:WGGHtmlUtils.buildURLFromCurrentPath(_7);
};
if(this.app!=null){
var _8=this.app.getConfig();
this.verifierURL=_6(_8.verifierURL);
this.nextLocatorURL=_6(_8.nextLocatorURL);
if(_8.verifierServerRequestClass!=null){
this.verifierServerRequestClass=_8.verifierServerRequestClass;
}
if(_8.nextLocatorServerRequestClass!=null){
this.nextLocatorServerRequestClass=_8.nextLocatorServerRequestClass;
}
}
};
WGGNextDoorModel.prototype.getLocations=function(){
return this.locations.getArray();
};
WGGNextDoorModel.prototype.loadLocations=function(_9){
var _a=new WGGServerRequestQueue(this,this.locationsLoaded,_9);
var _b=this.app.getConfig();
if(this.verifierURL!=null&&this.verifierServerRequestClass!=null){
var _c=new this.verifierServerRequestClass(this.verifierURL,new WGGAjaxLoader());
if(_b!=null){
for(var _d in _b.verifierOptions){
_c.addParam(_d,verifierOptions[_d]);
}
}
_a.addServerRequest(_c);
}
if(this.nextLocatorURL!=null&&this.nextLocatorServerRequestClass!=null){
var _e=new this.nextLocatorServerRequestClass(this.nextLocatorURL,new WGGAjaxLoader());
if(_b!=null){
for(var _d in _b.nextLocatorOptions){
_e.addParam(_d,_b.nextLocatorOptions[_d]);
}
}
_a.addServerRequest(_e);
}
_a.start();
};
WGGNextDoorModel.prototype.locationsLoaded=function(){
if(arguments==null){
return;
}
var _f=arguments[0];
var _10=_f["LOCATIONS"];
var _11=true;
if(arguments.length>1){
arg1=arguments[1];
if(!WGGDataTypeUtils.isUndefined(arg1)){
if(!WGGDataTypeUtils.isUndefined(arg1["bZoomToTotalExtent"])){
_11=arg1["bZoomToTotalExtent"];
}
}
}
this.addLocations(_10,_11);
};
WGGNextDoorModel.prototype.getLocationById=function(id){
if(this.locations==null){
return null;
}
for(var i=0;i<this.locations.length();i++){
var _14=this.locations.get(i);
if(_14==null){
continue;
}
if(_14.getId()==id){
return _14;
}
}
return null;
};
WGGNextDoorModel.prototype.getLocationByIndex=function(_15){
if(this.locations==null){
return null;
}
if(this.locations.length()==0){
return null;
}
if(_15<0||_15>this.locations.length()-1){
return null;
}
return this.locations.get(_15);
};
WGGNextDoorModel.prototype.addLocation=function(_16,_17){
if(_16==null){
return;
}
this.currentMarkerIndex=_17;
this.locations.add(_16);
this.notify(this,"add",_16);
this.currentMarkerIndex=null;
};
WGGNextDoorModel.prototype.addLocations=function(_18,_19,_1a){
if(_18!=null){
this.currentMarkerIndex=_1a;
for(var i=0;i<_18.length;i++){
if(this.locations.contains(_18[i])){
continue;
}
this.locations.add(_18[i]);
}
this.notify(this,"add",_18);
if(_19){
this.notify(this,"showAll",_18);
}
this.currentMarkerIndex=null;
}
};
WGGNextDoorModel.prototype.removeLocation=function(_1c){
if(_1c!=null){
this.locations.remove(_1c);
this.notify(this,"remove",_1c);
}
};
WGGNextDoorModel.prototype.clear=function(){
this.notify(this,"clear");
this.locations.reset();
};
WGGNextDoorModel.prototype.getExtent=function(){
var arr=this.locations.getArray();
var _1e=null;
for(var i=0;i<arr.length;i++){
var _20=arr[i];
if(_1e==null){
_1e=new WGGExtent(_20.getX(),_20.getY(),_20.getX(),_20.getY());
continue;
}
_1e.addPoint(_20);
}
return _1e;
};


/**********WGGNextLocator.js.tmp**********/
function WGGNextLocator(_1,_2){
var _3=JSINER.extend(this,"WGGServerRequest");
_3.url=_1;
_3.ajaxLoader=null;
_3.setAjaxLoader(_2);
if(_3.ajaxLoader!=null){
_3.ajaxLoader.initialize();
}
_3.observers=[];
_3.paramsHashMap=new WGGHashMap();
_3.debugInterface=null;
try{
if(WGGDataTypeUtils.isObject(WGGAbstractDebugInterface.gDebugInterface)){
_3.debugInterface=WGGAbstractDebugInterface.gDebugInterface;
}else{
throw "WGGAbstractDebugInterface.gDebugInterface probably undefined";
}
}
catch(e){
_3.debugInterface=new WGGNullDebugInterface();
}
return _3;
};
WGGNextLocator.prototype.update=function(){
this.debugInterface.debug("WGGNextLocator.update");
if(arguments.length==0){
return;
}
var _4=arguments[0];
if(_4==null){
return;
}
this.debugInterface.debug(_4);
try{
var _5=_4.getElementsByTagName("NEXTDOORXML")[0];
if(!_5){
throw "nextdoorXmlNode must not be null or undefined";
}
var _6=_5.getElementsByTagName("RESULTS");
if(_6==null){
this.notify(new Array());
return;
}
var _7=_6[0];
if(_7){
var _8=_7.getElementsByTagName("RESULT");
if(_8!=null){
var _9=new Array();
for(var i=0;i<_8.length;i++){
var _b=_8[i];
var _c=_b.childNodes;
var _d=new WGGLocation();
var _e=new Object();
for(var j=0;j<_c.length;j++){
var _10=_c[j];
if(_10.firstChild==null){
continue;
}
var _11=_10.firstChild.nodeValue;
var _12=_10.nodeName;
switch(_12){
case "XCO":
_d.setX(parseFloat(_11));
break;
case "YCO":
_d.setY(parseFloat(_11));
break;
case "SID":
_d.setId(_11);
case "SET":
break;
default:
_e[_12]=_11;
_d.setDesc(_e);
}
}
_9[i]=_d;
}
this.notify({"LOCATIONS":_9});
}
}
}
catch(e){
this.debugInterface.error("error while processing xmlDoc, xmlDoc is probably not a XMLDocument-instance, see description:");
this.debugInterface.error(e);
}
};


/**********WGGNullDebugInterface.js.tmp**********/
function WGGNullDebugInterface(_1){
var _2=JSINER.extend(this,"WGGAbstractDebugInterface");
return _2;
};


/**********WGGNumberRangeIterator.js.tmp**********/
function WGGNumberRangeIterator(_1,_2,_3){
var _4=JSINER.extend(this,"WGGIterator");
if(_1>_2){
return;
}
if(_3<0){
return;
}
if((_2-_1)%_3!=0){
return;
}
_4.minimum=_1;
_4.maximum=_2;
_4.stepSize=_3;
_4.bInitialized=true;
_4.value=null;
return _4;
};
WGGNumberRangeIterator.prototype.hasNext=function(){
if(!this.bInitialized){
return false;
}
if(this.value>=this.maximum){
return false;
}
return true;
};
WGGNumberRangeIterator.prototype.hasPrevious=function(){
if(!this.bInitialized){
return false;
}
if(this.value<=this.minimum){
return false;
}
return true;
};
WGGNumberRangeIterator.prototype.next=function(){
var _5=(this.value==null)?this.minimum:(this.value+this.stepSize);
if(_5<0||_5>this.maximum){
return null;
}
this.value=_5;
return this.value;
};
WGGNumberRangeIterator.prototype.previous=function(){
var _6=(this.value==null)?this.minimum:(this.value-this.stepSize);
if(_6<0||_6>this.maximum){
return null;
}
this.value=_6;
return this.value;
};
WGGNumberRangeIterator.prototype.current=function(){
return this.value;
};
WGGNumberRangeIterator.prototype.setValue=function(_7){
if(!DataTypeUtils.isNumeric(_7)){
return;
}
if(!(_7>=this.minimum&&_7<=this.maximum)){
return;
}
if(this.value%this.stepSize!=0){
return;
}
this.value=_7;
};
WGGNumberRangeIterator.prototype.reset=function(){
this.value=this.minimum;
};


/**********WGGNumberValidator.js.tmp**********/
function WGGNumberValidator(){
};
WGGNumberValidator.isNumeric=function(_1,_2){
if(_2==null||_2==""){
_2="0123456789.";
}
for(var i=0;i<_1.length;i++){
var ch=_1.charAt(i);
if(_2.indexOf(ch)==-1){
return false;
}
}
return true;
};


/**********WGGObjectDebugInterface.js.tmp**********/
function WGGObjectDebugInterface(_1){
var _2=JSINER.extend(this,"WGGAbstractDebugInterface");
_2.verbose=_1;
_2.lineSep=String.fromCharCode(13)+String.fromCharCode(10);
_2.changeListeners=new Array();
return _2;
};
WGGObjectDebugInterface.prototype.createMessage=function(_3,_4){
var _5={"object":_4};
if(this.verbose){
var _6="caller: [[["+new WGGMethod(_3).toString()+"]]]"+this.lineSep;
_5["caller"]=_6;
}
return _5;
};
WGGObjectDebugInterface.prototype.info=function(_7){
var _8=this.createMessage(this.info.caller,_7);
this.notifyChangeListeners({"type":WGGAbstractDebugInterface.MESSAGE_TYPE_INFO,"text":_8});
};
WGGObjectDebugInterface.prototype.debug=function(_9){
var _a=this.createMessage(this.debug.caller,_9);
this.notifyChangeListeners({"type":WGGAbstractDebugInterface.MESSAGE_TYPE_DEBUG,"text":_a});
};
WGGObjectDebugInterface.prototype.error=function(_b){
var _c=this.createMessage(this.error.caller,_b);
this.notifyChangeListeners({"type":WGGAbstractDebugInterface.MESSAGE_TYPE_ERROR,"text":_c});
};
WGGObjectDebugInterface.prototype.warn=function(_d){
var _e=this.createMessage(this.warn.caller,_d);
this.notifyChangeListeners({"type":WGGAbstractDebugInterface.MESSAGE_TYPE_WARN,"text":_e});
};


/**********WGGObserver.js.tmp**********/
function WGGObserver(){
};
WGGObserver.prototype.update=function(){
return;
};


/**********WGGOpenLayersMap.js.tmp**********/
function WGGOpenLayersMap(_1,_2,_3){
var _4=JSINER.extend(this,"WGGAbstractMap");
_4.app=_1;
_4.domElement=_2;
_4.eventController=_3;
_4.nativeMap=null;
_4.markersCache=null;
_4.initialize();
return _4;
};
WGGOpenLayersMap.prototype.createNativeMapObject=function(){
if(this.domElement!=null){
var _5={projection:"+proj=lcc +lat_1=40 +lat_2=60 +lat_0=30 +lon_0=10 +x_0=0 +y_0=0 +ellps=WGS84 +datum=WGS84 +units=m +no_defs",units:"m",maxResolution:"auto",buffer:"2",scales:[28181180,14290590,7145295,5730295,4660295,2818529,2270145,1136764,554846,282999,113497,56798,28478,11346,5668,2833],numZoomLevels:16,maxExtent:new OpenLayers.Bounds(-2300000,600000,2500000,5000000),isBaseLayer:"true",isFixed:"true",transparent:"true",controls:[]};
this.nativeMap=new OpenLayers.Map(this.domElement.id,_5);
var _6=new OpenLayers.Layer.MapServer("map","http://wigeoapi2.wigeogis.com/cgi-bin/mapserv_422",{layers:"basic",map:"/wigeoapi/map/eu07_ms.map"},{tileSize:new OpenLayers.Size(500,500),buffer:"2",format:"png",singleTile:true});
var _7=new OpenLayers.Layer.Markers("markers");
var _8=new OpenLayers.Layer.Boxes("boxes");
this.nativeMap.addLayers([_6,_7,_8]);
}
};
WGGOpenLayersMap.prototype.addControls=function(){
if(this.nativeMap!=null){
this.nativeMap.addControl(new OpenLayers.Control.PanZoomBar());
this.nativeMap.addControl(new OpenLayers.Control.MousePosition());
this.nativeMap.addControl(new OpenLayers.Control.LayerSwitcher({"ascending":false}));
this.nativeMap.addControl(new OpenLayers.Control.MouseDefaults());
}
};
WGGOpenLayersMap.prototype.setCenter=function(x,y,_b){
if(!_b){
_b=this.nativeMap.getNumZoomLevels()-1;
}
this.nativeMap.setCenter(new OpenLayers.LonLat(x,y),_b,false,false);
};
WGGOpenLayersMap.prototype.getCenter=function(){
var c=this.nativeMap.getCenter();
return new WGGPoint(c.lat,c.lon);
};
WGGOpenLayersMap.prototype.getZoom=function(){
var _d=this.nativeMap.getZoom();
return _d;
};
WGGOpenLayersMap.prototype.panTo=function(x,y){
this.nativeMap.panTo(new OpenLayers.LonLat(x,y));
};
WGGOpenLayersMap.prototype.update=function(_10,_11,_12){
if(WGGDataTypeUtils.instanceOf(_10,WGGNextDoorModel)){
var _13=WGGAbstractStuffFactory.createFactory(this.app.getConfig().type);
var _14=null;
if(_12!=null){
if(WGGDataTypeUtils.isArray(_12)){
_14=_12;
}else{
if(WGGDataTypeUtils.isObject(_12)){
_14=new Array();
_14.push(_12);
}
}
}else{
_14=_10.getLocations();
}
switch(_11){
case "add":
if(_14==null){
break;
}
var _15=_10.currentMarkerIndex;
if(_15==null){
_15=0;
}
for(var i=0;i<_14.length;i++){
var _17=_14[i];
if(this.markersCache.get(_17.getId())!=null){
continue;
}
var _18=_13.createMarker(this,_15,_17,_17.getDesc());
WGGAbstractDebugInterface.gDebugInterface.debug("adding "+_17.getId());
this.markersCache.put(_17.getId(),_18);
_18.show();
}
this.onMarkersAdded();
break;
case "showAll":
if(_14==null){
break;
}
if(_14.length==0){
break;
}
var _19=null;
for(var i=0;i<_14.length;i++){
var _17=_14[i];
if(_19==null){
_19=new OpenLayers.Bounds(_17.getX(),_17.getY(),_17.getX(),_17.getY());
continue;
}
_19.extend(_17.toOpenLayersLonLat());
}
this.nativeMap.zoomToExtent(_19);
this.onAllMarkersShown();
break;
case "show":
if(_12==null){
break;
}
var _18=this.markersCache.get(_12);
if(_18!=null){
this.setCenter(_18.getPoint().getX(),_18.getPoint().getY(),14);
_18.showTooltip();
}
break;
case "clear":
if(_14==null){
break;
}
for(var i=0;i<_14.length;i++){
var _1a=_14[i].getId();
WGGAbstractDebugInterface.gDebugInterface.debug("removing "+_1a);
var _18=this.markersCache.get(_1a);
if(_18!=null){
_18.destroy();
}
}
this.markersCache.clear();
break;
}
}
};
WGGOpenLayersMap.prototype.getExtent=function(){
if(this.nativeMap==null){
return null;
}
var _1b=this.nativeMap.getExtent();
var arr=_1b.toArray();
return new WGGExtent(arr[0],arr[1],arr[2],arr[3]);
};
WGGOpenLayersMap.prototype.setExtent=function(_1d){
if(_1d==null){
return;
}
this.nativeMap.zoomToExtent(_1d.toOpenLayersBounds());
};
WGGOpenLayersMap.prototype.registerEvents=function(){
if(this.nativeMap!=null){
this.nativeMap.events.register("click",this,this.onMapClick);
this.nativeMap.events.register("moveend",this,this.onMapMoveEnd);
}
};
WGGOpenLayersMap.prototype.onMarkersAdded=function(e){
};
WGGOpenLayersMap.prototype.onAllMarkersShown=function(){
};
WGGOpenLayersMap.prototype.onMapClick=function(e){
};
WGGOpenLayersMap.prototype.onMapMoveEnd=function(e){
};


/**********WGGOpenLayersMarker.js.tmp**********/
function WGGOpenLayersMarker(_1,_2,_3,_4){
var _5=JSINER.extend(this,"WGGAbstractMarker");
_5.map=_1;
_5.point=_3;
_5.content=_4;
_5.nativeMarker=null;
_5.index=_2;
return _5;
};
WGGOpenLayersMarker.prototype.registerEvents=function(){
if(this.nativeMarker!=null){
var _6=this;
this.nativeMarker.events.register("mousedown",this.nativeMarker.icon.imageDiv,function(){
_6.showTooltip(arguments[0]);
});
}
};
WGGOpenLayersMarker.prototype.getPixelPosition=function(){
if(this.nativeMarker!=null&&this.nativeMarker.icon!=null){
return WGGGUIUtils.getPosition(this.nativeMarker.icon.imageDiv);
}
return null;
};
WGGOpenLayersMarker.prototype.buildIcon=function(){
if(this.map==null){
return null;
}
try{
var _7=this.getMarkerProperties();
var _8=new OpenLayers.Size(_7["locIconSize"][0],_7["locIconSize"][1]);
var _9=new OpenLayers.Pixel(_7["locIconAnchor"][0]*(-1),_7["locIconAnchor"][1]*(-1));
var _a=new OpenLayers.Icon(_7["locIconPath"],_8,_9);
return _a;
}
catch(e){
throw e;
}
return null;
};
WGGOpenLayersMarker.prototype.buildTooltipContent=function(){
if(WGGDataTypeUtils.isString(this.content)){
var _b=this.content;
}else{
var _b=this.content["tooltip"];
}
return _b;
};
WGGOpenLayersMarker.prototype.showTooltip=function(){
var _c=this.buildTooltipContent();
var e=arguments[0];
var _e=false;
if(e){
if(WGGBrowserDetector.IS_IE){
_e=(e.button==2);
}else{
_e=(e.which==3);
}
if(_e){
this.onMouseDownRight();
}else{
this.onMouseDownLeft();
}
}
};
WGGOpenLayersMarker.prototype.show=function(){
WGGAbstractDebugInterface.gDebugInterface.debug("WGGOpenLayersMarker.prototype.show");
var _f=this.buildIcon();
if(_f!=null){
var _10=null;
try{
_10=this.map.getNativeMap().getLayersByName("markers");
_10=_10[0];
}
catch(e){
throw "markers must not be null:"+e;
}
this.nativeMarker=new OpenLayers.Marker(this.point.toOpenLayersLonLat(),_f);
_10.addMarker(this.nativeMarker);
this.registerEvents();
}
};
WGGOpenLayersMarker.prototype.destroy=function(){
if(this.nativeMarker!=null){
var _11=null;
try{
_11=this.map.getNativeMap().getLayersByName("markers");
_11=_11[0];
}
catch(e){
throw "markers must not be null:"+e;
}
_11.removeMarker(this.nativeMarker);
this.nativeMarker.destroy();
}
};
WGGOpenLayersMarker.prototype.setImageUrl=function(url){
this.nativeMarker.icon.setUrl(url);
};


/**********WGGOpenLayersPatches.js.tmp**********/
function WGGOpenLayersPatches(){
};
WGGOpenLayersPatches.injectMethods=function(){
if(!OpenLayers.Map.prototype.getLayersByName){
OpenLayers.Map.prototype.getLayersByName=function(_1){
var _2=new RegExp("\\b"+_1+"\\b","g");
var _3=new Array();
for(var i=0;i<this.layers.length;i++){
if(_2.test(this.layers[i].name)){
_3.push(this.layers[i]);
}
}
return _3;
};
}
};


/**********WGGOpenLayersStuffFactory.js.tmp**********/
function WGGOpenLayersStuffFactory(){
WGGOpenLayersPatches.injectMethods();
return JSINER.extend(this,"WGGAbstractStuffFactory");
};
WGGOpenLayersStuffFactory.prototype.createMap=function(_1,_2,_3){
return new WGGOpenLayersMap(_1,_2,_3);
};
WGGOpenLayersStuffFactory.prototype.createMarker=function(_4,_5,_6,_7){
return new WGGOpenLayersMarker(_4,_5,_6,_7);
};


/**********WGGPerformanceProtocol.js.tmp**********/
function WGGPerformanceProtocol(){
this.history=[];
this.lastEntry=null;
};
WGGPerformanceProtocol.prototype.perform=function(o,f,_3,_4,_5){
if(!WGGDataTypeUtils.isFunction(f)){
return;
}
var _6="";
var _7=f.toString();
if(_4!=null){
var _8=_7.split("\n");
for(var i=0;i<_8.length;i++){
var _a=_8[i];
var _b=false;
for(var j=0;j<_4.length;j++){
var _d=WGGStringUtils.trim(_a);
var _e=_d.indexOf(_4[j]);
if(_e==0){
_6+=_5+".start( '"+_d+"' );\r\n";
_6+=_a+"\r\n";
_6+=_5+".end();\r\n";
_b=true;
}
}
if(!_b){
_6+=_a+"\r\n";
}
}
var _f=_6.split(/ /g);
var _10=_f[1].substring(0,_f[1].indexOf("("));
if(_10==null||_10.length==0){
_10="__anonymous";
}
_6=_6.replace(/^function.*\(.*\)(\s)*\{/gm,"");
var _11=_6.lastIndexOf("}");
if(_11!=-1){
_6=_6.substring(0,_11);
}
var _f=new Function("",_6);
eval(_5+".start( '"+_10+"')");
_f.call(o,_3);
eval(_5+".end( '"+_10+"')");
}else{
f.call(o,_3);
}
};
WGGPerformanceProtocol.prototype.start=function(_13){
var s=new Date().getTime();
var _15=new WGGPerformanceProtocol.Entry(_13,s,-1);
if(this.lastEntry==null){
this.history.push(_15);
}else{
this.lastEntry.entries.push(_15);
}
_15.parent=this.lastEntry;
this.lastEntry=_15;
};
WGGPerformanceProtocol.prototype.end=function(){
this.lastEntry.end=new Date().getTime();
this.lastEntry=this.lastEntry.parent;
};
WGGPerformanceProtocol.prototype.clear=function(){
while(this.history.length>0){
this.history.pop();
}
this.history=[];
this.lastEntry=null;
};
WGGPerformanceProtocol.prototype.toString=function(){
var str="";
for(var i=0;i<this.history.length;i++){
str+=this.history[i].toString();
}
return str;
};
WGGPerformanceProtocol.Entry=function(_18,_19,end){
this.name=_18;
this.start=_19;
this.end=end;
this.entries=[];
this.parent=null;
};
WGGPerformanceProtocol.Entry.prototype.hasEntries=function(){
return (this.entries.length>0);
};
WGGPerformanceProtocol.Entry.prototype.addEntry=function(_1b){
this.entries.push(_1b);
};
WGGPerformanceProtocol.Entry.prototype.isComplete=function(){
return (this.end!=-1&&this.end>=this.start);
};
WGGPerformanceProtocol.Entry.prototype._toString=function(lvl,ch){
var str="";
for(var i=0;i<lvl;i++){
str+=ch;
}
str+=this.name+"|"+this.start+"|"+this.end+"|"+(this.end-this.start)+"|";
str+=(this.parent!=null)?this.parent.name:null;
str+="\r\n";
for(var i=0;i<this.entries.length;i++){
var _20=this.entries[i];
str+=_20._toString(lvl+1,ch);
}
return str;
};
WGGPerformanceProtocol.Entry.prototype.toString=function(){
return this._toString(0,".");
};


/**********WGGPoint.js.tmp**********/
function WGGPoint(x,y){
this.x=x;
this.y=y;
};
WGGPoint.prototype.setX=function(x){
this.x=x;
};
WGGPoint.prototype.getX=function(){
return this.x;
};
WGGPoint.prototype.setY=function(y){
this.y=y;
};
WGGPoint.prototype.getY=function(){
return this.y;
};
WGGPoint.prototype.translate=function(x,y){
this.x+=x;
this.y+=y;
};
WGGPoint.prototype.equals=function(_7){
if(this.x==_7.x&&this.y==_7.y){
return true;
}
return false;
};
WGGPoint.prototype.toString=function(){
return "["+this.x+", "+this.y+"]";
};
WGGPoint.prototype.toGLatLng=function(){
if(WGGDataTypeUtils.isFunction(GLatLng)){
return new GLatLng(this.y,this.x);
}
return null;
};
WGGPoint.prototype.toOpenLayersLonLat=function(){
if(WGGDataTypeUtils.isFunction(OpenLayers.LonLat)){
return new OpenLayers.LonLat(this.x,this.y);
}
return null;
};


/**********WGGPrivilegeSource.js.tmp**********/
function WGGPrivilegeSource(){
this.src={};
};
WGGPrivilegeSource.prototype.setSrc=function(_1){
this.src=_1;
};
WGGPrivilegeSource.prototype.hasPrivilege=function(){
if(arguments.length==0){
return false;
}
var _2=arguments[0];
var _3=(arguments.length>1)?arguments[1]:false;
if(typeof this.src[_2]!="undefined"){
return this.src[_2];
}
if(!_3){
return false;
}
var _4=false;
var _5=_2+".";
for(var _6 in this.src){
if(_6.indexOf(_5)==-1){
continue;
}
if(_6.indexOf(_5)==0){
_4=this.src[_6];
if(_4==true){
break;
}
}
}
return _4;
};


/**********WGGProprietaryRoute.js.tmp**********/
function WGGProprietaryRoute(_1,_2,_3,_4){
this.options=_1;
this.olVectorLayer=_2;
this.layerStyleOptions=null;
if(!WGGDataTypeUtils.isUndefined(_3)){
this.layerStyleOptions=_3;
}
this.bBill=true;
if(!WGGDataTypeUtils.isUndefined(_4)){
this.bBill=_4;
}
this.verifier=null;
this.makeRouteRequest=null;
this.getRouteRequest=null;
this.onAnimate=null;
this.debugInterface=null;
try{
if(WGGDataTypeUtils.isObject(WGGAbstractDebugInterface.gDebugInterface)){
this.debugInterface=WGGAbstractDebugInterface.gDebugInterface;
}else{
throw "WGGAbstractDebugInterface.gDebugInterface probably undefined";
}
}
catch(e){
this.debugInterface=new WGGNullDebugInterface();
}
this.activ=null;
this.pointsOnLine=null;
this.currentIndex=0;
};
WGGProprietaryRoute.prototype.buildURL=function(_5){
return "http://"+location.host+_5;
};
WGGProprietaryRoute.prototype.getGetRouteRequest=function(){
return this.getRouteRequest;
};
WGGProprietaryRoute.prototype.getMakeRouteRequest=function(){
return this.makeRouteRequest;
};
WGGProprietaryRoute.prototype.compute=function(){
var _6=new WGGServerRequestQueue(this,this.show);
this.verifier=new WGGVerifier(this.buildURL("/getkey.php5"),new WGGAjaxLoader());
this.verifier.addParam("USR",this.options.USR);
this.verifier.addParam("CID",this.options.CID);
_6.addServerRequest(this.verifier);
this.makeRouteRequest=new WGGMakeRouteRequest(this.buildURL("/rel3/routing/makeroute.asp"),new WGGAjaxLoader());
for(var _7 in this.options){
this.makeRouteRequest.addParam(_7,this.options[_7]);
}
_6.addServerRequest(this.makeRouteRequest);
this.getRouteRequest=new WGGGetRouteRequest(this.buildURL("/rel3/routing/getroute.asp"),new WGGAjaxLoader());
_6.addServerRequest(this.getRouteRequest);
_6.start();
};
WGGProprietaryRoute.prototype.onShown=function(){
};
WGGProprietaryRoute.prototype.show=function(){
var _8=this.getRouteRequest.points;
var _9=new Array();
for(var i=0;i<_8.length;i++){
_9.push(new OpenLayers.Geometry.Point(_8[i].x,_8[i].y));
}
WGGAbstractDebugInterface.gDebugInterface.debug(_9);
var _b=OpenLayers.Util.extend({},OpenLayers.Feature.Vector.style["default"]);
if(this.layerStyleOptions){
_b=OpenLayers.Util.extend(_b,this.layerStyleOptions);
}else{
_b.fillOpacity=0.7;
_b.strokeWidth=5;
_b.strokeOpacity=0.7;
_b.markerOpacity=0.7;
_b.strokeColor="#5457E0";
}
if(this.bBill==true){
var _c=new WGGBilling(this.buildURL("/accounting/checkkey.php5"),new WGGAjaxLoader());
_c.addParam("USR",this.options["USR"]);
_c.addParam("APP","WGGProprietaryRoute");
_c.addParam("BLG","ROUTEMAP");
_c.addParam("KEY",this.verifier.lastKey);
_c.send();
_c.onUpdate=function(){
if(this.bBill==true){
WGGAbstractDebugInterface.gDebugInterface.debug("billing for WGGProprietaryRoute successful");
}else{
WGGAbstractDebugInterface.gDebugInterface.error("billing for WGGProprietaryRoute failed");
}
};
}
this.olVectorLayer.style=_b;
var _d=new OpenLayers.Geometry.LineString(_9);
this.olVectorLayer.addFeatures(new OpenLayers.Feature.Vector(_d));
this.olVectorLayer.map.zoomToExtent(_d.getBounds());
this.onShown();
};
WGGProprietaryRoute.prototype.getPointsOnLine=function(_e,_f,_10){
var a=(_f.y-_e.y)/(_f.x-_e.x);
var b=_e.y-a*_e.x;
if(Math.abs(_e.x-_f.x)<2){
_e.x=_f.x;
}
if(Math.abs(_e.y-_f.y)<2){
_e.y=_f.y;
}
var _13=new Array();
if(a==Number.POSITIVE_INFINITY||a==Number.NEGATIVE_INFINITY){
var _14=((_f.y-_e.y)>0)?1:-1;
yDistPart=1;
_10=Math.abs(_e.y-_f.y);
for(var i=0;i<=_10;i++){
var _16=_e.x;
var _17=_e.y+_14*yDistPart*i;
_13.push(new WGGPoint(_16,_17));
}
}else{
if(a==0){
var _18=((_f.x-_e.x)>0)?1:-1;
_19=1;
_10=Math.abs(_e.x-_f.x);
for(var i=0;i<=_10;i++){
var _16=_e.x+_18*_19*i;
var _17=_e.y;
_13.push(new WGGPoint(_16,_17));
}
}else{
var _1a=Math.abs(_e.x-_f.x);
var _18=((_f.x-_e.x)>0)?1:-1;
if(_1a>0&&_1a<_10){
_10=_1a;
}
var _19=parseInt(_1a/_10);
if(_19==0){
_13.push(_e);
_13.push(_f);
}else{
while(_19>0){
_10=parseInt(_1a/_19);
for(var i=0;i<=_10;i++){
var _16=_e.x+_18*_19*i;
var _17=parseInt(a*_16+b);
_13.push(new WGGPoint(_16,_17));
}
_1a=_1a-((_10+2)*_19);
_19=parseInt(_1a/_10);
}
}
}
}
return _13;
};
WGGProprietaryRoute.prototype.animate=function(){
if(this.getRouteRequest==null){
return;
}
if(this.getRouteRequest.points==null){
return;
}
if(this.getRouteRequest.points.length==0){
return;
}
if(this.pointsOnLine==null){
this.pointsOnLine=this.getRouteRequest.points;
}
var _1b=this;
this.terminateAnimation();
if(!(this.currentIndex<this.pointsOnLine.length)){
this.currentIndex=0;
return;
}
this.olVectorLayer.map.setCenter(new OpenLayers.LonLat(this.pointsOnLine[this.currentIndex].x,this.pointsOnLine[this.currentIndex].y));
this.debugInterface.debug("setCenter");
window.setTimeout(function(){
_1b.startAnimation();
},100);
if(this.onAnimate!=null){
this.onAnimate.call(this);
}
this.currentIndex++;
};
WGGProprietaryRoute.prototype.startAnimation=function(){
var _1c=this;
if(this.activ!=null){
return;
}
this.activ=window.setInterval(function(){
_1c.animate();
},40);
};
WGGProprietaryRoute.prototype.terminateAnimation=function(){
var _1d=this;
window.clearInterval(this.activ);
this.activ=null;
};


/**********WGGRectangle.js.tmp**********/
function WGGRectangle(x,y,_3,_4){
if(!WGGDataTypeUtils.isNumber(x)){
return;
}
if(!WGGDataTypeUtils.isNumber(y)){
return;
}
if(!WGGDataTypeUtils.isNumber(_3)){
return;
}
if(!WGGDataTypeUtils.isNumber(_4)){
return;
}
this.x=x;
this.y=y;
this.width=(_3>0)?_3:0;
this.height=(_4>0)?_4:0;
};
WGGRectangle.prototype.add=function(x,y){
var _7=this.x;
var _8=this.x+width;
var _9=this.y;
var _a=this.y+height;
if(x<_7){
this.x=x;
}
if(x>_8){
this.width=x-_7;
}
if(y<_9){
this.y=y;
}
if(y>_a){
this.height=y-_9;
}
};
WGGRectangle.prototype.contains=function(x,y){
var _d=this.x;
var _e=this.x+width;
var _f=this.y;
var _10=this.y+height;
return (x>_d&&x<_e&&y>_f&&y<_10);
};
WGGRectangle.prototype.equals=function(_11){
if(_11==null){
return false;
}
return (this.x==_11.x&&this.y==_11.y&&this.width==_11.width&&this.height==_11.height);
};
WGGRectangle.prototype.intersects=function(_12){
if(_12==null){
return false;
}
var _13=this.x;
var _14=this.y;
var _15=this.x+this.width;
var _16=this.y+this.height;
var _17=_12.x;
var _18=_12.y;
var _19=_12.x+_12.width;
var _1a=_12.y+_12.height;
if(((_13>=_17)&&(_13<=_19))||((_15>=_17)&&(_15<=_19))){
if(((_14>=_18)&&(_14<=_1a))||((_16>=_18)&&(_16<=_1a))){
return true;
}
}
if(((_17>=_13)&&(_17<=_15))||((_19>=_13)&&(_19<=_15))){
if(((_18>=_14)&&(_18<=_16))||((_1a>=_14)&&(_1a<=_16))){
return true;
}
}
return false;
};
WGGRectangle.prototype.overlaps=function(_1b){
if(_1b==null){
return false;
}
var _1c=this.x;
var _1d=this.y;
var _1e=this.x+this.width;
var _1f=this.y+this.height;
var _20=_1b.x;
var _21=_1b.y;
var _22=_1b.x+_1b.width;
var _23=_1b.y+_1b.height;
if(((_1c>_20)&&(_1c<_22))||((_1e>_20)&&(_1e<_22))){
if(((_1d>_21)&&(_1d<_23))||((_1f>_21)&&(_1f<_23))){
return true;
}
}
if(((_20>_1c)&&(_20<_1e))||((_22>_1c)&&(_22<_1e))){
if(((_21>_1d)&&(_21<_1f))||((_23>_1d)&&(_23<_1f))){
return true;
}
}
return false;
};
WGGRectangle.prototype.setLocation=function(x,y){
if(!WGGDataTypeUtils.isNumber(x)){
return;
}
if(!WGGDataTypeUtils.isNumber(y)){
return;
}
this.x=x;
this.y=y;
};
WGGRectangle.prototype.setSize=function(_26,_27){
if(!WGGDataTypeUtils.isNumber(_26)){
return;
}
if(!WGGDataTypeUtils.isNumber(_27)){
return;
}
this.width=_26;
this.height=_27;
};
WGGRectangle.prototype.toString=function(){
return "[x="+this.x+",y="+this.y+",width="+this.width+",height="+this.height+"]";
};


/**********WGGReflection.js.tmp**********/
function WGGReflection(){
};
WGGReflection.isMethod=function(_1){
return WGGDataTypeUtils.isFunction(_1);
};
WGGReflection.isField=function(_2){
return !WGGDataTypeUtils.isFunction(_2);
};
WGGReflection.createMember=function(_3){
if(WGGReflection.isMethod(_3)){
return new WGGMethod(_3);
}
return new WGGField(_3);
};


/**********WGGServerRequest.js.tmp**********/
function WGGServerRequest(_1,_2){
var _3=JSINER.extend(this,"WGGSubject");
_3.url=_1;
_3.ajaxLoader=null;
_3.observers=[];
_3.debugInterface=null;
try{
if(WGGDataTypeUtils.isObject(WGGAbstractDebugInterface.gDebugInterface)){
_3.debugInterface=WGGAbstractDebugInterface.gDebugInterface;
}else{
throw "WGGAbstractDebugInterface.gDebugInterface probably undefined";
}
}
catch(e){
_3.debugInterface=new WGGNullDebugInterface();
}
_3.debugInterface.debug(_3);
_3.setAjaxLoader(_2);
if(_3.ajaxLoader!=null){
_2.initialize();
}
_3.paramsHashMap=new WGGHashMap();
return _3;
};
WGGServerRequest.prototype.setAjaxLoader=function(_4){
if(_4!=null){
if(WGGDataTypeUtils.instanceOf(_4,WGGAjaxLoader)){
this.ajaxLoader=_4;
_4.addObserver(this);
}
}
};
WGGServerRequest.prototype.addParam=function(_5,_6){
this.debugInterface.debug("adding parameter: "+_5+"="+_6+" to request with url '"+this.url+"'");
if(_5!=null){
this.paramsHashMap.put(_5,_6);
}
};
WGGServerRequest.prototype.removeParam=function(_7){
this.debugInterface.debug("removing parameter: "+_7);
if(_7!=null){
this.paramsHashMap.remove(_7);
}
};
WGGServerRequest.prototype.removeParams=function(){
this.debugInterface.debug("removing all parameters");
this.paramsHashMap.clear();
};
WGGServerRequest.prototype.send=function(){
this.debugInterface.debug("WGGServerRequest.send");
if(this.url==null){
throw "this.url of WGGServerRequest object must not be null";
}
var _8=(arguments.length>0)?arguments[0]:null;
if(_8==null||!WGGDataTypeUtils.isObject(_8)){
_8=new WGGServerRequest.StandardGETRequestSerializer();
}
var _9=_8.serialize("http",this.url,null,null,this.paramsHashMap);
this.debugInterface.debug("request:"+_9);
var _a=true;
if(arguments.length>1){
_a=arguments[1];
}
this.ajaxLoader.sendRequest(_9,null,null,_a);
};
WGGServerRequest.prototype.update=function(){
this.debugInterface.warn("WGGServerRequest.update called (should be overwritten)");
};
WGGServerRequest.prototype.onUpdate=function(){
};
WGGServerRequest.AbstractRequestSerializer=function(){
this.serialize=function(){
};
this.deserialize=function(){
};
};
WGGServerRequest.StandardGETRequestSerializer=function(){
var _b=JSINER.extend(this,WGGServerRequest.AbstractRequestSerializer);
_b.serialize=function(_c,_d,_e,_f,_10){
var _11=(_c==null)?"http":_c;
_11+="://";
var _12="";
if(_d==null){
_d="localhost";
}
if(_d.indexOf(_11)==0){
_12=_d;
}else{
_12+=_11;
_12+=_d;
_12+=(_e!=null&&_e>=0&&_e<=65535)?(":"+_e):"";
}
if(_f!=null){
if(_f.indexOf("/")!=0){
_12+="/";
}
_12+=_f;
}
if(_10!=null&&WGGDataTypeUtils.instanceOf(_10,WGGHashMap)){
var _13=_10.keyIterator();
var i=0;
while(_13.hasNext()){
_12+=(i==0)?"?":"&";
var key=_13.next();
_12+=key+"="+encodeURI(_10.get(key));
i++;
}
}
return _12;
};
_b.deserialize=function(str){
function getRegExp(){
return /^(http|https|[a-z]+):\/\/(([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)|([_a-zA-Z0-9]+))?((:)([0-9]+))?([^\?]*)?(\?.*)?/g;
};
var _17=getRegExp().exec(str);
if(!_17){
return null;
}
var _18=_17[1];
var _19=_17[2]||null;
var _1a=_17[7]||null;
if(_1a!=null&&_1a>=0&&_1a<=65535){
_1a=parseInt(_1a);
}
var _1b=_17[8]||null;
var _1c=_17[9]||null;
var _1d=null;
if(_1c){
var pos=_1c.indexOf("?");
if(pos==0&&_1c.length>1){
_1c=_1c.substr(1);
}
var _1f=_1c.split("&");
if(_1f){
_1d=new WGGHashMap();
for(var i=0;i<_1f.length;i++){
var _21=_1f[i];
var _22=_21.indexOf("=");
if(_22!=-1){
var _23=_21.substr(0,_22);
var _24=decodeURIComponent((_22+1<_21.length)?_21.substr(_22+1):"");
_1d.put(_23,_24);
}
}
}
}
return {"protocol":_18,"host":_19,"port":_1a,"path":_1b,"paramsHashMap":_1d};
};
return _b;
};


/**********WGGServerRequestQueue.js.tmp**********/
function WGGServerRequestQueue(_1,_2,_3){
var _4=JSINER.extend(this,"WGGObserver");
_4.debugInterface=null;
try{
if(WGGDataTypeUtils.isObject(WGGAbstractDebugInterface.gDebugInterface)){
_4.debugInterface=WGGAbstractDebugInterface.gDebugInterface;
}else{
throw "WGGAbstractDebugInterface.gDebugInterface probably undefined";
}
}
catch(e){
_4.debugInterface=new WGGNullDebugInterface();
}
_4.serverRequests=new Array();
_4.callbackObject=_1;
_4.callbackMethod=_2;
_4.callbackParams=_3;
return _4;
};
WGGServerRequestQueue.prototype.setCallbackObject=function(_5){
if(_5==null){
throw "passed parameter callbackObject is not a Object";
}
this.callbackObject=_5;
};
WGGServerRequestQueue.prototype.setCallbackMethod=function(_6){
if(!WGGDataTypeUtils.isFunction(_6)){
throw "passed parameter callbackMethod is not a Function";
}
this.callbackMethod=_6;
};
WGGServerRequestQueue.prototype.addServerRequest=function(_7){
if(_7==null){
throw "serverRequest parameter must not be null";
}
if(!_7.addObserver){
throw "MethodNotFound: method addObserver does not exist";
}
if(!_7.send){
throw "MethodNotFound: method send does not exist";
}
this.serverRequests.push(_7);
_7.addObserver(this);
};
WGGServerRequestQueue.prototype.update=function(){
this.debugInterface.debug("WGGServerRequestQueue.update");
if(arguments==null){
return;
}
var _8=(arguments.length>0)?arguments[0]:null;
if(this.serverRequests.length==0){
this.callbackMethod.call(this.callbackObject,_8,this.callbackParams);
return;
}
var _9=this.serverRequests.shift();
this.debugInterface.debug("got the next element from the queue with url: "+_9.url);
for(var _a in _8){
_9.addParam(_a,_8[_a]);
}
_9.send();
};
WGGServerRequestQueue.prototype.start=function(){
this.debugInterface.debug("WGGServerRequestQueue.start");
if(this.serverRequests==null){
return;
}
var _b=this.serverRequests.shift();
_b.send();
};


/**********WGGSimpleGUIStuffFactory.js.tmp**********/
function WGGSimpleGUIStuffFactory(){
return JSINER.extend(this,"WGGAbstractGUIStuffFactory");
};
WGGSimpleGUIStuffFactory.prototype.createTreeNode=function(_1,_2,_3){
return new WGGSimpleTree.TreeNode(_1,_2,_3);
};
WGGSimpleGUIStuffFactory.prototype.createEventsManager=function(){
var _4=arguments[0];
var _5=arguments[1];
return new WGGEventsManager(_4,_5);
};
WGGSimpleGUIStuffFactory.prototype.createTreeModel=function(){
var _6=arguments[0];
var _7=arguments[1];
if(WGGDataTypeUtils.isString(_6)){
return new WGGSimpleTree.SimpleTreeModel_0(_6,_7);
}else{
return new WGGSimpleTree.SimpleTreeModel_1(_6,_7);
}
};
WGGSimpleGUIStuffFactory.prototype.createTree=function(_8,_9,_a){
return new WGGSimpleTree(_8,_9,_a);
};


/**********WGGSimpleTemplate.js.tmp**********/
function WGGSimpleTemplate(){
this.emptyTemplate=(arguments.length>0)?arguments[0]:null;
this.bAutoReset=(arguments.length>1)?arguments[1]:null;
this.placeholderArray=new Array();
this.placeholderNumberedIterator=null;
this.compile=function(_1){
for(i=0;i<WGGSimpleTemplate.PlaceholderTypesEnum.PLACEHOLDER_TYPES.length;i++){
var _2=WGGSimpleTemplate.PlaceholderTypesEnum.PLACEHOLDER_TYPES[i];
var _3=_2.patternStr;
var _4=_2.pattern;
while((resultMatcher=_4.exec(this.emptyTemplate))!=null){
var _5=resultMatcher[0];
var _6=resultMatcher.index;
var _7=this.emptyTemplate.substring(_6,_6+_5.length);
var _8=WGGSimpleTemplate.createPlaceholder(_7,_6,_2,this);
this.placeholderArray.push(_8);
}
}
};
this.createNumberedIterator=function(_9){
var _a=new Array();
for(var i=0;i<_9.length;i++){
var _c=_9[i];
_a[_c.getPriority()]=_c;
}
var _d=new WGGArray(_a);
for(var i=0;i<_d.length();i++){
if(typeof _d.get(i)=="undefined"){
_d.removeAt(i);
}
}
_a=_d.getArray();
this.placeholderNumberedIterator=new WGGListIterator();
this.placeholderNumberedIterator.setInternalArray(_a);
};
this.compile();
};
WGGSimpleTemplate.prototype.getPlaceholders=function(_e){
var _f=[];
for(var i=0;i<this.placeholderArray.length;i++){
var _11=this.placeholderArray[i];
if(_11.placeholderType==_e){
_f.push(_11);
}
}
return _f;
};
WGGSimpleTemplate.prototype.hasEmptyPlaceholder=function(_12){
if(_12==null){
return false;
}
if(_12==WGGSimpleTemplate.PlaceholderTypesEnum.ORDERED_PLACEHOLDER_TYPE){
if(this.placeholderNumberedIterator==null){
var _13=this.getPlaceholders(WGGSimpleTemplate.PlaceholderTypesEnum.ORDERED_PLACEHOLDER_TYPE);
this.createNumberedIterator(_13);
}
return this.placeholderNumberedIterator.hasNext();
}else{
if(_12==WGGSimpleTemplate.PlaceholderTypesEnum.NAMED_PLACEHOLDER_TYPE){
var _13=this.getPlaceholders(WGGSimpleTemplate.PlaceholderTypesEnum.NAMED_PLACEHOLDER_TYPE);
for(var i=0;i<_13.length;i++){
var _15=_13[i];
if(_15.getValue()==null){
return true;
}
}
}
}
return false;
};
WGGSimpleTemplate.prototype.hasEmptyPlaceholders=function(){
return (this.hasEmptyPlaceholder(WGGSimpleTemplate.PlaceholderTypesEnum.ORDERED_PLACEHOLDER_TYPE)||this.hasEmptyPlaceholder(WGGSimpleTemplate.PlaceholderTypesEnum.NAMED_PLACEHOLDER_TYPE));
};
WGGSimpleTemplate.createPlaceholder=function(_16,_17,_18,_19){
if(_18==WGGSimpleTemplate.PlaceholderTypesEnum.ORDERED_PLACEHOLDER_TYPE){
return new WGGSimpleTemplate.OrderedPlaceholder(_16,_17,_18,_19);
}else{
if(_18==WGGSimpleTemplate.PlaceholderTypesEnum.NAMED_PLACEHOLDER_TYPE){
return new WGGSimpleTemplate.NamedPlaceholder(_16,_17,_18,_19);
}
}
return null;
};
WGGSimpleTemplate.prototype.getEmptyTemplate=function(){
return this.emptyTemplate;
};
WGGSimpleTemplate.prototype.setAutoReset=function(_1a){
this.bAutoReset=_1a;
};
WGGSimpleTemplate.prototype.isAutoReset=function(){
return this.bAutoReset;
};
WGGSimpleTemplate.prototype.reset=function(){
this.resetPlaceholderType(WGGSimpleTemplate.PlaceholderTypesEnum.ORDERED_PLACEHOLDER_TYPE);
this.resetPlaceholderType(WGGSimpleTemplate.PlaceholderTypesEnum.NAMED_PLACEHOLDER_TYPE);
};
WGGSimpleTemplate.prototype.resetPlaceholderType=function(_1b){
if(_1b==null){
throw "placeholderType must not be null";
}
var _1c=null;
if(_1b==WGGSimpleTemplate.PlaceholderTypesEnum.ORDERED_PLACEHOLDER_TYPE){
_1c=this.getPlaceholders(WGGSimpleTemplate.PlaceholderTypesEnum.ORDERED_PLACEHOLDER_TYPE);
this.createNumberedIterator(_1c);
}else{
if(_1b==WGGSimpleTemplate.PlaceholderTypesEnum.NAMED_PLACEHOLDER_TYPE){
_1c=this.getPlaceholders(WGGSimpleTemplate.PlaceholderTypesEnum.NAMED_PLACEHOLDER_TYPE);
}
}
if(_1c!=null){
for(var i=0;i<_1c.length;i++){
_1c[i].value=null;
}
}
};
WGGSimpleTemplate.prototype.assign=function(){
var _1e=arguments[0];
var _1f=null;
var _20=false;
if(arguments.length==2){
_1f=arguments[1];
}
if(arguments.length==3){
_20=arguments[2];
}
if(this.bAutoReset){
if(_1f==null){
if(!this.hasEmptyPlaceholder(WGGSimpleTemplate.PlaceholderTypesEnum.ORDERED_PLACEHOLDER_TYPE)){
this.reset(WGGSimpleTemplate.PlaceholderTypesEnum.ORDERED_PLACEHOLDER_TYPE);
}
}else{
if(!this.hasEmptyPlaceholder(WGGSimpleTemplate.PlaceholderTypesEnum.NAMED_PLACEHOLDER_TYPE)){
this.reset(WGGSimpleTemplate.PlaceholderTypesEnum.NAMED_PLACEHOLDER_TYPE);
}
}
}else{
if(_1f==null){
if(!this.hasEmptyPlaceholder(WGGSimpleTemplate.PlaceholderTypesEnum.ORDERED_PLACEHOLDER_TYPE)){
throw "no empty placeholder for placeholderValue '"+_1e+"' (ORDERED_PLACEHOLDER_TYPE)";
}
}else{
if(!this.hasEmptyPlaceholder(WGGSimpleTemplate.PlaceholderTypesEnum.NAMED_PLACEHOLDER_TYPE)){
throw "no empty placeholder for placeholderValue '"+_1e+"' (NAMED_PLACEHOLDER_TYPE)";
}
}
}
if(_1f==null){
if(this.placeholderNumberedIterator.hasNext()){
var _21=this.placeholderNumberedIterator.next();
_21.setValue(_1e,_20);
return true;
}
}else{
for(var i=0;i<this.placeholderArray.length;i++){
var _21=this.placeholderArray[i];
if(_1f==_21.getName()){
if(_21.getValue()!=null){
continue;
}
_21.setValue(_1e,_20);
return true;
}
}
}
return false;
};
WGGSimpleTemplate.prototype.getResult=function(){
var _23=new Array();
for(var i=0;i<this.placeholderArray.length;i++){
var _25=this.placeholderArray[i];
_23[_25.position]=_25;
}
var _26="";
var j=0;
for(var i=0;i<_23.length;i++){
var _25=_23[i];
if(_25==null){
continue;
}
_26+=this.emptyTemplate.substring(j,_25.position);
if(_25.value!=null){
_26+=_25.value;
}else{
_26+=_25.getName();
}
j=_25.position+_25.definition.length;
}
_26+=this.emptyTemplate.substring(j,this.emptyTemplate.length);
return _26;
};
WGGSimpleTemplate.PLH_ORDERED=1;
WGGSimpleTemplate.PLH_NAMED=2;
WGGSimpleTemplate.LEADING_MARKER="\\{\\{";
WGGSimpleTemplate.TRAILING_MARKER="\\}\\}";
WGGSimpleTemplate.PlaceholderTypesEnum=function(_28,_29){
if(_29==null){
throw "patternStr must not be null";
}
if(_28!=1&&_28!=2){
throw "type not valid";
}
this.type=_28;
this.patternStr=_29;
this.pattern=new RegExp(this.patternStr,"g");
};
WGGSimpleTemplate.PlaceholderTypesEnum.ORDERED_PLACEHOLDER_TYPE=new WGGSimpleTemplate.PlaceholderTypesEnum(WGGSimpleTemplate.PLH_ORDERED,WGGSimpleTemplate.LEADING_MARKER+"[\\d]+"+WGGSimpleTemplate.TRAILING_MARKER);
WGGSimpleTemplate.PlaceholderTypesEnum.NAMED_PLACEHOLDER_TYPE=new WGGSimpleTemplate.PlaceholderTypesEnum(WGGSimpleTemplate.PLH_NAMED,WGGSimpleTemplate.LEADING_MARKER+"([a-zA-Z]+[\\w]*)"+WGGSimpleTemplate.TRAILING_MARKER);
WGGSimpleTemplate.PlaceholderTypesEnum.PLACEHOLDER_TYPES=[WGGSimpleTemplate.PlaceholderTypesEnum.ORDERED_PLACEHOLDER_TYPE,WGGSimpleTemplate.PlaceholderTypesEnum.NAMED_PLACEHOLDER_TYPE];
WGGSimpleTemplate.AbstractPlaceholder=function(_2a,_2b,_2c,_2d){
this.definition=null;
this.position=null;
this.placeholderType=null;
this.template=null;
this.name=null;
this.value=null;
this.bFinal=false;
this.initialize=function(_2e,_2f,_30,_31){
this.definition=_2e;
this.position=_2f;
this.placeholderType=_30;
this.template=_31;
};
};
WGGSimpleTemplate.AbstractPlaceholder.prototype.getValue=function(){
return this.value;
};
WGGSimpleTemplate.AbstractPlaceholder.prototype.setValue=function(){
if(arguments.length==0){
return;
}
var _32=arguments[0];
var _33=false;
if(arguments.length==2){
_33=arguments[1];
}
if(!this.bFinal){
this.value=_32;
this.bFinal=_33;
}
};
WGGSimpleTemplate.AbstractPlaceholder.prototype.getName=function(){
};
WGGSimpleTemplate.OrderedPlaceholder=function(_34,_35,_36,_37){
var _38=JSINER.extend(this,WGGSimpleTemplate.AbstractPlaceholder);
if(_34!=null){
_38.initialize(_34,_35,_36,_37);
}
return _38;
};
WGGSimpleTemplate.OrderedPlaceholder.prototype.getPriority=function(){
return parseInt(this.getName());
};
WGGSimpleTemplate.OrderedPlaceholder.prototype.getName=function(){
if(this.name==null){
var _39=new RegExp("[\\d]+","g");
var _3a=_39.exec(this.definition);
if(_3a){
if(_3a.length>0){
this.name=_3a[0];
}
}
}
return this.name;
};
WGGSimpleTemplate.NamedPlaceholder=function(_3b,_3c,_3d,_3e){
var _3f=JSINER.extend(this,WGGSimpleTemplate.AbstractPlaceholder);
if(_3b!=null){
_3f.initialize(_3b,_3c,_3d,_3e);
}
return _3f;
};
WGGSimpleTemplate.NamedPlaceholder.prototype.getName=function(){
if(this.name==null){
var _40=new RegExp("[a-zA-Z]+[\\w]*","g");
var _41=_40.exec(this.definition);
if(_41){
if(_41.length>0){
this.name=_41[0];
}
}
}
return this.name;
};


/**********WGGSimpleTree.js.tmp**********/
function WGGSimpleTree(_1,_2,_3){
this.doc=null;
this.domElement=null;
this.model=null;
this.treeStuffFactory=WGGAbstractGUIStuffFactory.createFactory("simple0");
this._rootElement=null;
this._rootTreeItem=null;
if(_3!=null){
this.initialize(_1,_2,_3,this.treeStuffFactory);
}
};
WGGSimpleTree.TreeNode=function(_4,_5,_6,_7){
this.parentTree=_4;
this.parentNode=_5;
this.handledObj=_6;
this.value=_7;
this.evtMng=this.parentTree.treeStuffFactory.createEventsManager(this,this.handledObj);
if(this.evtMng){
this.evtMng.setHandledObject(this.handledObj.firstChild);
}
this.childNodes=[];
this.getChildNodes=function(){
return this.childNodes;
};
this.hasParentNode=function(){
return (this.parentNode!=null);
};
this.appendChild=function(_8){
this.childNodes[this.childNodes.length]=_8;
};
this.getLevel=function(){
if(this.parentNode==null){
return 0;
}
var _9=this.parentNode;
var _a=0;
while(_9!=null){
_a++;
_9=_9.parentNode;
}
return _a;
};
this.expand=function(){
this.onExpand();
};
this.onExpand=function(){
if(this.handledObj==null){
return;
}
var _b=this.handledObj.firstChild;
if(_b==null){
return;
}
var _c=_b.style;
if(_c==null){
return;
}
var _d=_b.nextSibling;
if(_d==null){
if(!WGGSimpleTree.__isPrimitive(this.value)){
try{
for(var _e in this.value){
var _f=this.parentTree.model.processNode(this,this.value,_e);
var _10=null;
try{
_10=this.value[_e];
}
catch(e){
_10="DENIED";
}
this.parentTree.model.processNode(_f,null,_10);
}
}
catch(ex){
alert(new WGGField(ex));
}
}
_d=_b.nextSibling;
}
if(_d==null){
return;
}
var _11=_d.style.display;
var _12=null;
if(_11=="none"){
_b.firstChild.nodeValue=_b.firstChild.nodeValue.replace("[+]","[-]");
_12="block";
}else{
_b.firstChild.nodeValue=_b.firstChild.nodeValue.replace("[-]","[+]");
_12="none";
}
while(_d){
_d.style.display=_12;
_d=_d.nextSibling;
}
};
this.EVT_TYPES={"click":"expand"};
this.evtMng.addEventListenersMap(this,this.EVT_TYPES);
};
WGGSimpleTree.ObjectVisitor=function(){
this.visit=function(_13,obj){
};
};
WGGSimpleTree.prototype.nodeFound=function(_15,_16,_17,_18){
var div=this.doc.createElement("div");
div.className="simpleTreeDiv";
if(_15==null){
div.style.display="block";
}else{
div.style.display="none";
}
var _1a=this.doc.createElement("a");
_1a.style.display="block";
var _1b=(_17)?"&nbsp;&nbsp;&nbsp;":"[+]";
var _1c=this.model.serialize(_16);
_1a.appendChild(this.doc.createTextNode(_1c));
_1a.innerHTML=_1b+" "+_1a.innerHTML;
div.appendChild(_1a);
var _1d=null;
if(this._rootElement==null&&this._rootTreeItem==null){
this._rootElement=div;
_1d=new WGGSimpleTree.TreeNode(this,null,this._rootElement,_16);
this.domElement.appendChild(this._rootElement);
this._rootTreeItem=_1d;
}else{
var _1e=_15;
var _1f=_15.handledObj;
_1d=new WGGSimpleTree.TreeNode(this,_1e,div,_16);
_1f.appendChild(div);
_1e.appendChild(_1d);
}
return _1d;
};
WGGSimpleTree.SimpleTreeModel_0=function(_20,_21){
this.modelDescription=_20;
this.xmlDoc=(WGGXmlUtils.createDOMParser()).parseFromString(_20,"text/xml");
this.observerObject=null;
if(_21!=null){
if(WGGDataTypeUtils.isFunction(_21["nodeFound"])){
this.observerObject=_21;
}
}else{
this.observerObject={"nodeFound":function(){
alert("node "+arguments[1]+" found on lvl "+arguments[0]);
}};
}
function CustomNSResolver(_22){
return null;
};
this.getRoot=function(){
var _23="/"+WGGSimpleTree.SimpleTreeModel_0.NODE_NAME;
if(typeof XPathResult=="undefined"){
return this.xmlDoc.selectSingleNode(_23);
}else{
var _24=this.xmlDoc.evaluate(_23,this.xmlDoc,CustomNSResolver,XPathResult.ANY_TYPE,null);
return _24.iterateNext();
}
};
this.serialize=function(_25){
return _25;
};
this.process=function(){
this.processNode(0,this.getRoot());
};
this.processNode=function(lvl,_27){
if(_27==null){
return;
}
if(_27.attributes!=null){
if(_27.attributes.length!=0){
if(_27.attributes[0].nodeName==WGGSimpleTree.SimpleTreeModel_0.ATTR_NAME){
this.observerObject.nodeFound(lvl,_27.attributes[0].nodeValue,false);
}
}else{
if(_27.childNodes.length>0){
var _28=false;
for(var i=0;i<_27.childNodes.length;i++){
if(_27.childNodes[i].nodeType==1){
_28=true;
break;
}
}
if(_28){
this.observerObject.nodeFound(lvl,"UNNAMED!",false);
}
}
}
}
var _2a=_27.childNodes;
if(_2a==null){
return;
}
if(_2a.length==0){
return;
}
lvl++;
for(var i=0;i<_2a.length;i++){
var _2b=_2a[i];
var _2c=_2b.nodeType;
switch(_2c){
case 1:
case 9:
try{
var _2d=_2b.firstChild;
if(_2d.nodeType==3){
this.observerObject.nodeFound(lvl,_2d.nodeValue,true);
}else{
throw "firstChild of the node "+_2b.nodeName+" may not be of the type 3";
}
}
catch(e){
this.processNode(lvl,_2b);
}
break;
case 3:
this.observerObject.nodeFound(lvl,_2b.nodeValue,true);
break;
}
}
};
};
WGGSimpleTree.SimpleTreeModel_0.NODE_NAME="node";
WGGSimpleTree.SimpleTreeModel_0.ATTR_NAME="attr";
WGGSimpleTree.SimpleTreeModel_1=function(_2e,_2f){
this.obj=_2e;
this.observerObject=null;
if(_2f!=null){
if(WGGDataTypeUtils.isFunction(_2f["nodeFound"])){
this.observerObject=_2f;
}
}else{
this.observerObject={"nodeFound":function(){
alert("node "+arguments[1]+" found on lvl "+arguments[0]);
}};
}
this.getRoot=function(){
return this.obj;
};
this.serialize=function(_30){
if(_30==null){
return null;
}
if(WGGSimpleTree.__isPrimitive(_30)){
return _30;
}
var _31="";
if(WGGDataTypeUtils.isFunction(_30)){
var _32=new WGGMethod(_30);
_31=_32.getValue()+" ("+_32.getType()+")";
}else{
var _33=new WGGField(_30);
if(WGGSimpleTree.__isPrimitive(_30)){
_31=_33.getValue();
}
_31+=" ("+_33.getType()+")";
}
return _31;
};
this.process=function(){
this.processNode(null,null,this.getRoot());
};
this.cache=new WGGArray();
this.processNode=function(_34,_35,_36){
if(_36==null){
return null;
}
if(_34!=null&&(_36==this.getRoot())){
return null;
}
var _37=WGGSimpleTree.__isPrimitive(_36);
if(_37&&_35!=null){
try{
_37=(_35[_36]==null);
}
catch(e){
_37=true;
}
}
var _38=false;
try{
}
catch(e){
_38=false;
}
if(!_37){
try{
}
catch(e){
alert("modelNode cannot be accessed: "+e.message);
}
}
return this.observerObject.nodeFound(_34,_36,_37,_38);
};
};
WGGSimpleTree.prototype.initialize=function(doc,_3a,_3b,_3c){
if(doc==null){
doc=document;
}
if(_3a==null){
return;
}
if(_3b==null){
return;
}
if(_3c==null){
return;
}
this.doc=doc;
this.domElement=_3a;
try{
if(WGGDataTypeUtils.isObject(WGGAbstractDebugInterface.gDebugInterface)){
this.debugInterface=WGGAbstractDebugInterface.gDebugInterface;
}else{
throw "WGGAbstractDebugInterface.gDebugInterface probably undefined";
}
}
catch(e){
this.debugInterface=new WGGNullDebugInterface();
}
if(_3b){
this.model=_3c.createTreeModel(_3b,this);
this.model.process();
}
};
WGGSimpleTree.prototype.dummy=function(){
};
WGGSimpleTree.__isPrimitive=function(obj){
try{
if(typeof obj=="object"){
var i=0;
try{
for(var _3f in obj){
if(i==0){
return false;
}
}
}
catch(e){
return false;
}
return true;
}
return (typeof obj=="string"||typeof obj=="number"||typeof obj=="boolean");
}
catch(ex){
return true;
}
};


/**********WGGSpecialAllDataLayerLeaf.js.tmp**********/
function WGGSpecialAllDataLayerLeaf(_1,_2,_3,_4){
var _5=JSINER.extend(this,WGGAbstractDataLayer);
_5.__dataLayerLeaf=new WGGDataLayerLeaf(_1,_2,_3,_4);
_5.layerIdentifier=_5.__dataLayerLeaf.layerIdentifier;
_5.lngName=_5.__dataLayerLeaf.lngName;
_5.children=[];
_5.layerType=_5.__dataLayerLeaf.layerType;
_5.dataFields=_5.__dataLayerLeaf.dataFields;
return _5;
};
WGGSpecialAllDataLayerLeaf.prototype.getDataFields=function(){
return this.__dataLayerLeaf.getDataFields();
};
WGGSpecialAllDataLayerLeaf.prototype.hasDataField=function(_6){
return this.__dataLayerLeaf.hasDataField(_6);
};
WGGSpecialAllDataLayerLeaf.prototype.getDataFieldByName=function(_7){
return this.__dataLayerLeaf.getDataFieldByName(_7);
};
WGGSpecialAllDataLayerLeaf.prototype.getDataFieldByMeaning=function(_8){
return this.__dataLayerLeaf.getDataFieldByMeaning(_8);
};
WGGSpecialAllDataLayerLeaf.prototype.toString=function(){
return "WGGSpecialAllDataLayerLeaf "+this.__dataLayerLeaf.layerIdentifier+"("+this.__dataLayerLeaf.layerType.type+") with "+this.__dataLayerLeaf.dataFields.length+" fields";
};


/**********WGGSpecialVisibleDataLayerLeaf.js.tmp**********/
function WGGSpecialVisibleDataLayerLeaf(_1,_2,_3,_4){
var _5=JSINER.extend(this,WGGAbstractDataLayer);
_5.__dataLayerLeaf=new WGGDataLayerLeaf(_1,_2,_3,_4);
_5.layerIdentifier=_5.__dataLayerLeaf.layerIdentifier;
_5.lngName=_5.__dataLayerLeaf.lngName;
_5.children=[];
_5.layerType=_5.__dataLayerLeaf.layerType;
_5.dataFields=_5.__dataLayerLeaf.dataFields;
return _5;
};
WGGSpecialVisibleDataLayerLeaf.prototype.getDataFields=function(){
return this.__dataLayerLeaf.getDataFields();
};
WGGSpecialVisibleDataLayerLeaf.prototype.hasDataField=function(_6){
return this.__dataLayerLeaf.hasDataField(_6);
};
WGGSpecialVisibleDataLayerLeaf.prototype.getDataFieldByName=function(_7){
return this.__dataLayerLeaf.getDataFieldByName(_7);
};
WGGSpecialVisibleDataLayerLeaf.prototype.getDataFieldByMeaning=function(_8){
return this.__dataLayerLeaf.getDataFieldByMeaning(_8);
};
WGGSpecialVisibleDataLayerLeaf.prototype.toString=function(){
return "WGGSpecialVisibleDataLayerLeaf "+this.__dataLayerLeaf.layerIdentifier+"("+this.__dataLayerLeaf.layerType.type+") with "+this.__dataLayerLeaf.dataFields.length+" fields";
};


/**********WGGSpinner.js.tmp**********/
function WGGSpinner(_1,_2,_3,_4,_5,_6,_7,_8,_9,_a,_b){
var _c=JSINER.extend(this,"WGGChangeListener");
if(_1==null){
return;
}
_c.spinnerModel=_2;
_c.spinnerModel.addChangeListener(_c);
_c.textField=null;
_c.changeable=_7;
_c.align=_8;
_c.width=_9;
_c.position=_a;
_c.label=_b;
_c.imgPreviousSrcArray=_5;
_c.imgNextSrcArray=_6;
_c.editor=WGGSpinner.EditorFactory.createEditor(_c.spinnerModel);
var _d=thisDoc.createElement("div");
if(_c.align!=null){
if(_c.align=="center"||_c.align=="left"||_c.align=="right"){
if(WGGBrowserDetector.IS_IE){
_d.style.styleFloat=_c.align;
}else{
_d.style.cssFloat=_c.align;
}
}
}
_d.style.display="inline";
_d.style.margin="0px";
_d.className=_4;
_3.appendChild(_d);
var _e=thisDoc.createElement("table");
_e.style.display="inline";
_e.style.margin="0px";
_d.appendChild(_e);
var _f=thisDoc.createElement("tbody");
_e.appendChild(_f);
var _10=thisDoc.createElement("tr");
_f.appendChild(_10);
var _11=thisDoc.createElement("td");
_11.style.verticalAlign="middle";
_11.style.padding="0px";
_10.appendChild(_11);
var _12=null;
if(isIE){
_12=thisDoc.createElement("<input type=\"text\" name=\""+_1+"\" value=\""+_c.spinnerModel.getValue()+"\">");
}else{
_12=thisDoc.createElement("input");
}
if(_c.width>0){
_12.style.width=_c.width+"px";
var _13=new Image();
_13.alreadyLoaded=false;
_13.src=_c.imgNextSrcArray[0];
var _14=new Image();
_14.alreadyLoaded=false;
_14.src=_c.imgPreviousSrcArray[0];
if(_c.position==WGGSpinner.POSITION_BUTTON_VERTICAL){
if(_13.complete){
if(!_13.alreadyLoaded){
var _15=(parseInt(_12.style.width)-_13.width);
if(_15>0){
_12.style.width=_15+"px";
}
_13.alreadyLoaded=true;
}
}else{
_13.onload=function(){
var _16=(parseInt(_12.style.width)-_c.width);
if(_16>0){
_12.style.width=_16+"px";
}
this.alreadyLoaded=true;
};
}
}else{
if(_13.complete){
if(!_13.alreadyLoaded){
var _15=(parseInt(_12.style.width)-2*_13.width);
if(_15>0){
_12.style.width=_15+"px";
}
_13.alreadyLoaded=true;
}
}else{
_13.onload=function(){
var _17=(parseInt(_12.style.width)-2*this.width);
if(_17>0){
_12.style.width=_17+"px";
}
this.alreadyLoaded=true;
};
}
}
}
_12.name=_1;
_12.type="text";
_12.spinnerRef=_c;
_12.value=_c.spinnerModel.getValue();
_12.oldValue=_12.value;
_11.appendChild(_12);
if(_c.changeable==true){
_12.onfocus=function(){
_c.oldValue=this.value;
};
_12.onchange=function(){
var _18=this.spinnerRef.editor.validate(this.spinnerRef,this.value);
if(_18!=null){
this.value=_18;
this.spinnerRef.spinnerModel.setValue(_18);
}else{
this.value=_c.oldValue;
}
};
}else{
_12.disabled=true;
}
_c.textField=_12;
var _19=thisDoc.createElement("td");
_19.style.verticalAlign="middle";
_19.style.textAlign="left";
_19.style.padding="0px";
_10.appendChild(_19);
var _1a=thisDoc.createElement("img");
_1a.src=_c.imgNextSrcArray[0];
_1a.spinnerRef=_c;
_1a.onmousedown=function(){
this.src=this.spinnerRef.imgNextSrcArray[1];
if(!this.spinnerRef.changeable){
return true;
}
var _1b=this.spinnerRef.spinnerModel.getKeyIterator();
if(_1b.hasNext()){
var key=_1b.next();
this.spinnerRef.textField.value=this.spinnerRef.spinnerModel.getValue();
this.spinnerRef.spinnerModel.notifyChangeListeners();
}
};
_1a.onmouseup=function(){
this.src=this.spinnerRef.imgNextSrcArray[0];
};
_19.appendChild(_1a);
if(_c.position==WGGSpinner.POSITION_BUTTON_VERTICAL){
var _1d=thisDoc.createElement("br");
_19.appendChild(_1d);
}
var _1e=thisDoc.createElement("img");
_1e.src=_5[0];
_1e.spinnerRef=_c;
_1e.onmousedown=function(){
this.src=this.spinnerRef.imgPreviousSrcArray[1];
if(!this.spinnerRef.changeable){
return true;
}
var _1f=this.spinnerRef.spinnerModel.getKeyIterator();
if(_1f.hasPrevious()){
_1f.previous();
this.spinnerRef.textField.value=this.spinnerRef.spinnerModel.getValue();
this.spinnerRef.spinnerModel.notifyChangeListeners();
}
};
_1e.onmouseup=function(){
this.src=this.spinnerRef.imgPreviousSrcArray[0];
};
_19.appendChild(_1e);
if(_c.label){
var _20=thisDoc.createElement("td");
_20.style.verticalAlign="middle";
_20.style.textAlign="left";
_20.style.padding="0px";
_10.appendChild(_20);
_20.appendChild(document.createTextNode(_c.label));
}
return _c;
};
WGGSpinner.prototype.stateChanged=function(_21){
var _22=_21.getSource();
this.textField.value=_22.getValue();
};
WGGSpinner.prototype.getModel=function(){
return this.spinnerModel;
};
WGGSpinner.prototype.setDefaultItem=function(key){
var _24="";
var _25=this.spinnerModel.getKeyIterator();
var _26=false;
while(_25.hasNext()){
var _27=_25.next();
_24+=_27+" != "+key+";";
if(_27==key){
this.textField.value=this.spinnerModel.getValue();
_26=true;
break;
}
}
if(!_26){
_25.reset();
var _27=_25.next();
this.textField.value=this.spinnerModel.getValue();
}
};
WGGSpinner.prototype.chooseAndShowValue=function(_28){
var _29=this.spinnerModel.getKeyIterator();
_29.reset();
var _2a=false;
while(_29.hasNext()){
var _2b=_29.next();
if(this.spinnerModel.getValue()==_28){
this.textField.value=this.spinnerModel.getValue();
_2a=true;
break;
}
}
};
WGGSpinner.prototype.setChangeable=function(_2c){
this.changeable=_2c;
if(this.changeable){
this.textField.disabled=false;
}
};
WGGSpinner.prototype.isChangeable=function(){
return this.changeable;
};
WGGSpinner.POSITION_BUTTON_VERTICAL=1;
WGGSpinner.POSITION_BUTTON_HORIZONTAL=2;
WGGSpinner.DefaultEditor=function(){
this.validate=function(_2d,_2e){
return _2e;
};
};
WGGSpinner.NumberEditor=function(){
this.validate=function(_2f,_30){
var _31=Number(_30);
if(isNaN(_31)){
return null;
}
if(_31>=_2f.spinnerModel.keyIterator.minimum&&_31<=_2f.spinnerModel.keyIterator.maximum){
return _31;
}
return null;
};
};
WGGSpinner.ListEditor=function(){
this.validate=function(_32,_33){
var _34=String(_33);
if(_32.spinnerModel.hashMap.containsValue(_34)){
return _34;
}
return null;
};
};
WGGSpinner.EditorFactory=function(){
};
WGGSpinner.EditorFactory.createEditor=function(_35){
if(_35==null){
return new WGGSpinner.DefaultEditor();
}
if(WGGDataTypeUtils.instanceOf(_35,WGGSpinnerDefaultModel)){
return new WGGSpinner.DefaultEditor();
}else{
if(WGGDataTypeUtils.instanceOf(_35,WGGSpinnerListModel)||WGGDataTypeUtils.instanceOf(_35,WGGSpinnerMixedModel)){
return new WGGSpinner.ListEditor();
}else{
if(WGGDataTypeUtils.instanceOf(_35,WGGSpinnerNumberModel)){
return new WGGSpinner.NumberEditor();
}
}
}
return new WGGSpinner.DefaultEditor();
};


/**********WGGSpinnerDefaultModel.js.tmp**********/
function WGGSpinnerDefaultModel(_1,_2){
this.changeListeners=null;
this.hashMap=_1;
this.keyIterator=null;
this.editable=_2;
};
WGGSpinnerDefaultModel.prototype.initialize=function(){
this.changeListeners=new Array();
if(this.hashMap!=null){
this.keyIterator=this.hashMap.keyIterator();
this.keyIterator.next();
}
};
WGGSpinnerDefaultModel.prototype.getKeyIterator=function(){
return this.keyIterator;
};
WGGSpinnerDefaultModel.prototype.addChangeListener=function(_3){
if(_3==null){
return;
}
if(!_3.stateChanged){
return;
}
this.changeListeners.push(_3);
};
WGGSpinnerDefaultModel.prototype.getNextValue=function(){
if(this.keyIterator.hasNext()){
var _4=this.keyIterator.next();
this.keyIterator.previous();
return this.hashMap.get(_4);
}
return null;
};
WGGSpinnerDefaultModel.prototype.getPreviousValue=function(){
if(this.keyIterator.hasPrevious()){
var _5=this.keyIterator.previous();
this.keyIterator.next();
return this.hashMap.get(_5);
}
return null;
};
WGGSpinnerDefaultModel.prototype.getValue=function(){
var _6=this.keyIterator.current();
if(_6==null){
return null;
}
return this.hashMap.get(_6);
};
WGGSpinnerDefaultModel.prototype.removeChangeListener=function(_7){
if(this.changeListeners==null){
return;
}
for(var i=0;i<this.changeListeners.length;i++){
if(this.changeListeners[i]==_7){
var _9=this.changeListeners.slice(0,i);
var _a=new Array();
if(i<(this.changeListeners.length-1)){
_a=this.changeListeners.slice(i+1);
}
this.changeListeners=_9.concat(_a);
}
}
};
WGGSpinnerDefaultModel.prototype.notifyChangeListeners=function(){
var _b=new WGGChangeEvent(this);
for(var i=0;i<this.changeListeners.length;i++){
this.changeListeners[i].stateChanged(_b);
}
};
WGGSpinnerDefaultModel.prototype.setValue=function(_d){
if(this.editable==false){
entryIterator=this.hashMap.entryIterator();
var i=0;
var _f=true;
while(entryIterator.hasNext()){
var _10=entryIterator.next();
if(_10==_d){
_f=true;
break;
}
i++;
}
if(_f){
keyIterator=this.keyIterator;
keyIterator.reset();
var j=0;
var _12=null;
while(keyIterator.hasNext()){
_12=keyIterator.next();
if(j==i){
break;
}
j++;
}
this.hashMap.put(_12,_d);
}
}else{
var _12=this.keyIterator.current();
if(_12==null){
return null;
}
this.hashMap.put(_12,_d);
}
this.notifyChangeListeners();
};


/**********WGGSpinnerListModel.js.tmp**********/
function WGGSpinnerListModel(_1){
var _2=JSINER.extend(this,"WGGSpinnerDefaultModel");
if(_1==null){
return;
}
_2.hashMap=_1;
_2.initialize();
return _2;
};


/**********WGGSpinnerMixedModel.js.tmp**********/
function WGGSpinnerMixedModel(_1,_2,_3,_4,_5){
var _6=JSINER.extend(this,"WGGSpinnerDefaultModel");
if(_1==null){
return;
}
_6.spinnerListModel=new WGGSpinnerListModel(_4);
_6.spinnerNumberModel=new WGGSpinnerNumberModel(_1,_2,_3);
_6.initialize(_5);
return _6;
};
WGGSpinnerMixedModel.prototype.initialize=function(_7){
this.changeListeners=new Array();
var _8=new Array(this.spinnerListModel,this.spinnerNumberModel);
var _9=new WGGHashMap();
for(var i=0;i<_8.length;i++){
var _b=_8[i];
var _c=_b.getKeyIterator();
_c.reset();
while(_c.hasNext()){
var _d=_c.next();
if(WGGDataTypeUtils.isNumber(_d)){
_d=_d.toString();
}
_9.put(_d,_b.getValue());
}
}
this.hashMap=_9;
this.keyIterator=_9.keyIterator();
this.editable=_7;
};


/**********WGGSpinnerNumberModel.js.tmp**********/
function WGGSpinnerNumberModel(_1,_2,_3){
var _4=JSINER.extend(this,"WGGSpinnerDefaultModel");
if(_1==null){
return;
}
_4.keyIterator=new WGGNumberRangeIterator(_1,_2,_3);
_4.initialize();
return _4;
};
WGGSpinnerNumberModel.prototype.initialize=function(){
this.changeListeners=new Array();
};
WGGSpinnerNumberModel.prototype.getNextValue=function(){
if(this.keyIterator.hasNext()){
var _5=this.keyIterator.next();
this.keyIterator.previous();
return _5;
}
return null;
};
WGGSpinnerNumberModel.prototype.getPreviousValue=function(){
if(this.keyIterator.hasPrevious()){
var _6=this.keyIterator.previous();
this.keyIterator.next();
return _6;
}
return null;
};
WGGSpinnerNumberModel.prototype.getValue=function(){
return this.keyIterator.current();
};
WGGSpinnerNumberModel.prototype.setValue=function(_7){
this.keyIterator.setValue(_7);
this.notifyChangeListeners();
};


/**********WGGStack.js.tmp**********/
function WGGStack(){
this.arr=new WGGArray();
};
WGGStack.prototype.push=function(_1){
if(_1==null){
return false;
}
this.arr.add(_1);
return true;
};
WGGStack.prototype.poll=function(){
if(this.arr.length==0){
return null;
}
return this.arr.removeAt(this.arr.length-1);
};
WGGStack.prototype.peek=function(){
if(this.arr.lenght==0){
return null;
}
return this.arr.get(this.arr.length-1);
};


/**********WGGStringUtils.js.tmp**********/
function WGGStringUtils(){
};
WGGStringUtils.leftTrim=function(_1){
return _1.replace(/^\s+/,"");
};
WGGStringUtils.rightTrim=function(_2){
return _2.replace(/\s+$/,"");
};
WGGStringUtils.trim=function(_3){
_3=WGGStringUtils.leftTrim(_3);
_3=WGGStringUtils.rightTrim(_3);
return _3;
};
WGGStringUtils.ord=function(_4){
if(_4==null){
return 0;
}
if(_4==""){
return 0;
}
return _4.charCodeAt(0);
};
WGGStringUtils.chr=function(_5){
if(_5==null){
return null;
}
return String.fromCharCode(_5);
};
WGGStringUtils.escape=function(_6){
var _7=["/",".","*","+","?","|","(",")","[","]","{","}","\\"];
var _8=new RegExp("(\\"+specials.join("|\\")+")","g");
return _6.replace(_8,"\\$1");
};
WGGStringUtils.explode=function(_9,_a,_b){
if(_a==null){
return null;
}
if(_9==null){
return [_a];
}
if(!WGGDataTypeUtils.isString(_9)){
return null;
}
if(!WGGDataTypeUtils.isString(_a)){
return null;
}
var _c=_a.split(_9);
if(!_b){
return _c;
}
if(_b<0){
if(_b*(-1)<=_c.length){
return _c.slice(0,_c.length-(_b*(-1)));
}
}else{
return _c.slice(0,_b);
}
return null;
};
WGGStringUtils.leftPad=function(_d,ch,_f){
while(_d.length<_f){
_d=ch+_d;
}
return _d;
};
WGGStringUtils.rightPad=function(str,ch,_12){
while(str.length<_12){
str=str+ch;
}
return str;
};
WGGStringUtils.hashCode=function(str){
var _14=0;
for(var i=0;i<str.length;i++){
var ch=str.charCodeAt(i);
_14=31*_14+ch;
}
alert("h_"+_14.toString());
return "h_"+_14.toString();
};
WGGStringUtils.LINE_SEP=String.fromCharCode(13)+String.fromCharCode(10);


/**********WGGSubject.js.tmp**********/
function WGGSubject(){
this.observers=[];
};
WGGSubject.prototype.notify=function(){
var _1=[];
for(var i=0;i<arguments.length;i++){
_1[i]=arguments[i];
}
var _3=this.observers.length;
for(var i=0;i<_3;i++){
this.observers[i].update.apply(this.observers[i],_1);
}
};
WGGSubject.prototype.addObserver=function(_4){
if(_4==null){
return false;
}
if(!_4.update){
return false;
}
if(this.getObserver(_4)==null){
this.observers.push(_4);
return true;
}
return false;
};
WGGSubject.prototype.getObserver=function(_5){
if(!_5.update){
return null;
}
var _6=this.observers.length;
for(var i=0;i<_6;i++){
if(this.observers[i]==_5){
return _5;
}
}
return null;
};
WGGSubject.prototype.getObserverByProperty=function(_8,_9){
if(_8==null){
return;
}
var _a=this.observers.length;
for(var i=0;i<_a;i++){
var _c=this.observers[i];
try{
if(_c[_8]==_9){
return _c;
}
}
catch(e){
}
}
return null;
};
WGGSubject.prototype.removeObserver=function(_d){
var _e=this.observers.length;
for(var i=0;i<_e;i++){
if(this.observers[i]==_d){
switch(i){
case 0:
this.observers.shift();
break;
case _e-1:
this.observers.pop();
break;
default:
var _10=this.observers.slice(0,i);
var _11=this.observers.slice(i+1);
this.observers=_10.concat(_11);
break;
}
return true;
}
}
return false;
};


/**********WGGTextDebugInterface.js.tmp**********/
function WGGTextDebugInterface(_1){
var _2=JSINER.extend(this,"WGGAbstractDebugInterface");
_2.verbose=_1;
_2.lineSep=String.fromCharCode(13)+String.fromCharCode(10);
_2.changeListeners=new Array();
return _2;
};
WGGTextDebugInterface.prototype.createMessage=function(_3,_4){
var _5="";
if(_4!=null){
_5+=new WGGField(_4).toString();
}else{
_5+="[null]";
}
if(this.verbose){
if(_3!=null){
_5+=";";
_5+="caller: [[["+new WGGMethod(_3).toString()+"]]]"+this.lineSep;
}
}
_5+=this.lineSep;
return _5;
};
WGGTextDebugInterface.prototype.info=function(_6){
var _7=this.createMessage(this.info.caller,_6);
this.notifyChangeListeners({"type":WGGAbstractDebugInterface.MESSAGE_TYPE_INFO,"text":_7});
};
WGGTextDebugInterface.prototype.debug=function(_8){
var _9=this.createMessage(this.debug.caller,_8);
this.notifyChangeListeners({"type":WGGAbstractDebugInterface.MESSAGE_TYPE_DEBUG,"text":_9});
};
WGGTextDebugInterface.prototype.error=function(_a){
var _b=this.createMessage(this.error.caller,_a);
this.notifyChangeListeners({"type":WGGAbstractDebugInterface.MESSAGE_TYPE_ERROR,"text":_b});
};
WGGTextDebugInterface.prototype.warn=function(_c){
var _d=this.createMessage(this.warn.caller,_c);
this.notifyChangeListeners({"type":WGGAbstractDebugInterface.MESSAGE_TYPE_WARN,"text":_d});
};


/**********WGGVerifier.js.tmp**********/
function WGGVerifier(_1,_2){
var _3=JSINER.extend(this,"WGGServerRequest");
_3.url=_1;
_3.ajaxLoader=null;
_3.setAjaxLoader(_2);
if(_3.ajaxLoader!=null){
_3.ajaxLoader.initialize();
}
_3.observers=[];
_3.paramsHashMap=new WGGHashMap();
_3.debugInterface=null;
try{
if(WGGDataTypeUtils.isObject(WGGAbstractDebugInterface.gDebugInterface)){
_3.debugInterface=WGGAbstractDebugInterface.gDebugInterface;
}else{
throw "WGGAbstractDebugInterface.gDebugInterface probably undefined";
}
}
catch(e){
_3.debugInterface=new WGGNullDebugInterface();
}
_3.lastKey="";
_3.lastKeyTimeStamp=0;
_3.timeRange=300000;
return _3;
};
WGGVerifier.prototype.send=function(){
if(this.lastKeyTimeStamp!=0){
if((new Date().getTime()-this.lastKeyTimeStamp)<this.timeRange){
this.debugInterface.debug("the key "+this.lastKey+" is not yet expired");
this.notify({"KEY":this.lastKey});
this.onUpdate();
return;
}
}
WGGVerifier.superClass.send.call(this);
};
WGGVerifier.prototype.update=function(){
this.debugInterface.debug("WGGVerifier.update");
if(arguments.length==0){
return;
}
var _4=arguments[0];
if(_4==null){
return;
}
this.debugInterface.debug(_4);
try{
var _5=_4.getElementsByTagName("GETKEY")[0];
if(!_5){
this.debugInterface.warn("getkeyNode must not be null or undefined");
return;
}
var _6=_5.getElementsByTagName("STATUS")[0];
if(_6){
var _7=_6.firstChild.nodeValue;
if(_7!="OK"){
throw "verifier doesnt return OK on requesting a key";
}
var _8=_5.getElementsByTagName("KEY")[0];
this.lastKey=_8.firstChild.nodeValue;
this.debugInterface.debug("lastKey: "+this.lastKey);
this.lastKeyTimeStamp=new Date().getTime();
if(isOpera){
this.ajaxLoader.initialize();
}
this.notify({"KEY":this.lastKey});
}
this.onUpdate();
}
catch(e){
this.debugInterface.error("error while processing xmlDoc, xmlDoc is probably not a XMLDocument-instance, see description:");
this.debugInterface.error(e);
}
};


/**********WGGVisitable.js.tmp**********/
function WGGVisitable(){
};
WGGVisitable.prototype.accept=function(_1){
if(_1==null){
return;
}
if(!WGGDataTypeUtils.isFunction(_1.visit)){
return;
}
_1.visit(this);
};


/**********WGGVisitor.js.tmp**********/
function WGGVisitor(){
};
WGGVisitor.prototype.visit=function(_1){
};


/**********WGGWaitMessageBox.js.tmp**********/
function WGGWaitMessageBox(_1,_2,_3,_4){
this.message=(_1!=null)?_1:WGGWaitMessageBox.MESSAGE;
this.messageBoxClassName=_2;
this.iframes=[];
this.debugInterface=null;
try{
if(WGGDataTypeUtils.isObject(WGGAbstractDebugInterface.gDebugInterface)){
this.debugInterface=WGGAbstractDebugInterface.gDebugInterface;
}else{
throw "WGGAbstractDebugInterface.gDebugInterface probably undefined";
}
}
catch(e){
this.debugInterface=new WGGNullDebugInterface();
}
this.doc=_4||document;
this.showMessage=function(){
if(this.doc.getElementById("waitMessageBox")){
return;
}
var _5=this.doc.getElementsByTagName("body")[0];
var _6=_5.appendChild(this.doc.createElement("DIV"));
_6.id="waitMessageBox";
_6.style.position="absolute";
_6.style.overflow="hidden";
var _7=_6.appendChild(this.doc.createElement("DIV"));
_7.id="waitMessageBox2";
_7.style.position="absolute";
_7.style.top="50%";
_7.style.verticalAlign="middle";
_7.style.textAlign="center";
_7.style.width="100%";
var _8=_7.appendChild(this.doc.createElement("DIV"));
_8.id="waitMessageBox3";
_8.style.position="relative";
_8.style.top="-50%";
_8.style.textAlign="center";
_8.style.marginLeft="auto";
_8.style.marginRight="auto";
_8.style.width="200px";
var _9=this.doc.createTextNode(this.message);
_8.appendChild(_9);
if(_3!=null){
var _a=this.doc.createElement("BR");
_8.appendChild(_a);
_8.appendChild(_3);
}
if(this.messageBoxClassName==null){
_6.style.MozOpacity="0.3";
_6.style.filter="alpha(opacity=30)";
_8.style.fontSize="100px";
}else{
_6.className=this.messageBoxClassName;
}
_5.style.overflow="hidden";
if(WGGBrowserDetector.IS_IE&&WGGBrowserDetector.version=="6.0"){
var _b=document.getElementsByTagName("SELECT");
if(_b.length!=0){
for(var i=0;i<_b.length;i++){
var _d=_b[i];
var _e=this.doc.createElement("IFRAME");
this.iframes.push(_e);
_e.className="waitMessageBoxIframe";
_e.style.position="absolute";
_e.style.width=_d.offsetWidth;
_e.style.height=_d.offsetHeight;
var _f=WGGGUIUtils.getPosition(_d);
_e.style.top=_f.top+"px";
_e.style.left=_f.left+"px";
_e.src="javascript:'';";
_e.scrolling="no";
_e.frameBorder=0;
_e.style.border="none";
_e.style.display="block";
_e.style.zIndex=(_d.zIndex!=-1)?_d.zIndex+1:1;
_e.style.filter="alpha(opacity=0)";
this.doc.body.appendChild(_e);
}
}
}
var _10=WGGGUIUtils.getClientWidth();
var _11=WGGGUIUtils.getClientHeight();
var _12=WGGGUIUtils.getScrollLeft();
var _13=WGGGUIUtils.getScrollTop();
_6.style.top=_13+"px";
_6.style.left=_12+"px";
_6.style.height=_11+"px";
_6.style.width=_10+"px";
};
this.hideMessage=function(){
var _14=this.doc.getElementById("waitMessageBox");
if(_14==null){
return;
}
_14.parentNode.removeChild(_14);
if(WGGBrowserDetector.IS_IE){
var _15=this.doc.getElementsByTagName("body")[0];
_15.style.overflow="auto";
if(WGGBrowserDetector.version=="6.0"){
var i=this.iframes.length-1;
while(this.iframes.length>0){
this.iframes[i].parentNode.removeChild(this.iframes[i]);
this.iframes.pop();
i--;
}
}
}
};
};
WGGWaitMessageBox.MESSAGE="Wait please";


/**********WGGWigeowebCfg.js.tmp**********/
function WGGWigeowebCfg(){
this.serverRequestHandlerURL="/wgsweb/ProcessCmd";
this.moduleContainer=null;
this.privilegeSource=null;
this.lngSources=[];
this.currentLng=null;
this.bLngChanged=false;
this.currentLngSource=null;
this.registerModules=function(){
this.moduleContainer=new WGGModuleContainer();
this.moduleContainer.registerModule(new WGGGeneralModuleDescriptor());
this.moduleContainer.registerModule(new WGGLayerModuleDescriptor());
this.moduleContainer.registerModule(new WGGDatalayoutModuleDescriptor());
this.moduleContainer.registerModule(new WGGDatarequestModuleDescriptor());
};
this.fillPrivilegeSource=function(){
this.privilegeSource=new WGGPrivilegeSource();
this.privilegeSource.setSrc({"gui.history.back":true,"gui.history.forward":true,"gui.bookmarks.load":true,"gui.bookmarks.save":true,"gui.bookmarks.alter":true,"gui.bookmarks.delete":true,"gui.language.change":true,"gui.windows.layoutManager.change":true,"gui.windows.layoutManager.open":true,"gui.windows.layoutManager.minimize":true,"gui.windows.taskBar.visibility.set":true,"gui.file":true,"gui.file.print":true,"gui.file.logout":true});
};
this.fillLngSources=function(){
var _1=new WGGLanguageSource(WGGEnumLanguageISOCode.LANGUAGE_ISO_GERMAN);
_1.setSrc({"lng_history_back":"Zur&uuml;ck","lng_history_forward":"Vorw&auml;rts","lng_file":"Datei","lng_file_print_plain":"Druck","lng_file_logout":"Ausloggen","lng_windows_layout_mng_arrange":"Fenster","lng_windows_layout_mng_open":"&Ouml;ffnen","lng_windows_layout_mng_minimize":"Schlie&szlig;en","lng_windows_layout_taskbar_set_visibility":"Taskbar ein-/ausblenden","lng_bookmarks":"Bookmarks","lng_bookmark_save":"Als Bookmark speichern","lng_bookmarks_organize":"Bookmarks verwalten","lng_bookmark_load":"Bookmark laden","lng_language":"Sprache w&auml;hlen","lng_windows_all":"Alle Fenster","lng_windows_layout_mng":"Fensterlayout","lng_windows_layout_mng_0":"Kartenfenster gro&szlig;","lng_windows_layout_mng_1":"Nebeneinander","lng_file_logout_shortcut":"","lng_file_print_plain_shortcut":"","lng_language_shortcut":"","lng_window_label_layer":"Layer-Fenster","lng_window_label_classification":"Klassifizierungen","lng_window_label_datatable":"Datentabelle","lng_window_label_map":"Karte","lng_toolbox_title":"Toolbox","lng_toolbox_label":"Toolbox","lng_click_here_to_toggle":"Zum an/abdocken hier klicken","lng_zoom_in":"Zoom-In","lng_zoom_out":"Zoom-Out","lng_pan":"Karte verschieben","lng_zoom_max_extent":"Auf max. Extent zoomen","lng_point_identify":"Punktselektion","lng_rect_identify":"Rechteckselektion","lng_polygon_identify":"Polygonselektion","lng_all_layer":"Alle Layer","lng_visible_layer":"Sichtbare Layer","lng_layer_contacts":"Alle Kontakte","lng_layer_customers":"Kunden","lng_layer_pharmacies":"Apotheken","lng_layer_suppliers":"Lieferanten","lng_layer_sales_areas":"Vertriebsgebiete","lng_layer_mbr":"Rasterzellen","lng_layer_poi":"Filialen","lng_generate_report":"Erstelle einen Report","lng_edit_record":"Editiere diesen Record","lng_move_record_location":"Verschiebe diesen Record","lng_zoom_to_record_location":"Zoom auf diesen Record","lng_use_for_catchment_area":"Standort als Startpunkt f&uuml;r EZG-Berechnung","lng_use_for_selection":"Verwende Objekt f&uuml;r geom. Selektion","lng_copy_record_to_clipboard":"In die Zwischenablage kopieren","lng_data_table_reset":"Tabelle zur&#252;cksetzen","lng_data_table_excelreport":"Tabelle als XLS exportieren","lng_data_table_excelreport_all":"Alle Tabellen als XLS exportieren","lng_data_table_resetselection":"Selektion aufheben","lng_data_table_colgroup_title":"Klick hier f&#252;r Spalteneinstellungen","lng_title_lastName":"Nachname","lng_title_middleInitial":"Mittlere Initiale","lng_title_firstName":"Vorname","lng_title_gender":"Geschlecht","lng_title_email":"E-Mail","lng_title_country":"Land","lng_title_status":"Status","lng_title_birthdate":"Geburtsdatum","lng_title_testscore":"Score","lng_title_liedetector":"L&uuml;gendetektor","lng_title_origin":"Herkunft","lng_title_name":"Name","lng_title_age":"Alter","lng_label_lastName":"Nachname","lng_label_middleInitial":"Mittlere Initiale","lng_label_firstName":"Vorname","lng_label_gender":"Geschlecht","lng_label_email":"E-Mail","lng_label_country":"Land","lng_label_status":"Status","lng_label_birthdate":"Geburtsdatum","lng_label_testscore":"Score","lng_label_liedetector":"L&#252;gendetektor","lng_label_origin":"Herkunft","lng_label_name":"Name","lng_label_age":"Alter","lng_show_layer_in_map":"Auf Layer zoomen","lng_set_labeling":"Beschriftung festlegen","lng_set_classification":"Klassifizierung festlegen","lng_set_filter":"Filter setzen","lng_open_datatable":"Datentabelle &ouml;ffnen","lng_set_transparency":"Transparenz setzen","lng_invisible_layer_hint_label":"Layer unsichbar","lng_invisible_layer_hint_text":"Diese Operation sollte nur auf sichtbaren Layern ausgef&uuml;hrt werden.","lng_dont_show_me_again":"Nicht mehr anzeigen","lng_classification_field":"Klassifizierungsfeld","lng_classification_type":"Klassifizierungstyp","lng_single_value_classification_type":"Einzelwerte","lng_value_range_classification_type":"Intervall","lng_quantile_classification_type":"Quantil","lng_specify_range_class_borders":"Intervallwerte festlegen:","lng_specify_quantile_class_borders":"Anzahl der Klassen festlegen:","lng_button_reset":"Zur&uuml;cksetzen","lng_button_okay":"Okay","lng_button_preview":"Vorschau","lng_button_cancel":"Abbrechen","lng_message_dialog_button_okay":"Okay","lng_message_dialog_button_cancel":"Abbrechen","lng_message_dialog_button_yes":"Ja","lng_message_dialog_button_no":"Nein","lng_title_error":"Fehler","lng_message_choose_class_field_and_type":"Bitte, w&auml;hlen Sie ein Klassifizierungsfeld bzw. -typ aus.","lng_message_choose_class_count":"Bitte, w&auml;hlen Sie die Anzahl der Klassen aus.","lng_message_class_count_invalid":"Ihre Eingabe der Anzahl der Klassen ist nicht g&uuml;ltig (nur numerische Werte zul&auml;ssig).","lng_message_choose_class_range":"Bitte, tragen Sie die Klassengrenze ein.","lng_message_class_range_invalid":"Ihre Eingabe der Klassengrenzen ist nicht g&uuml;ltig (nur numerische Werte zul&auml;ssig).","lng_message_no_classification_available_for_layer":"Keine Klassifizierungen verf&uuml;gbar."});
this.lngSources.push(_1);
};
this.initialize=function(){
WGGCmdDef.wigeowebCfg=this;
this.registerModules();
this.fillLngSources();
this.setCurrentLngCode("deu");
this.fillPrivilegeSource();
};
this.initialize();
};
WGGWigeowebCfg.prototype.getModuleContainer=function(){
return this.moduleContainer;
};
WGGWigeowebCfg.prototype.getServerRequestHandlerURL=function(){
return this.serverRequestHandlerURL;
};
WGGWigeowebCfg.prototype.getAbsoluteServerRequestHandlerURL=function(){
return WGGHtmlUtils.buildURLFromCurrentPath(this.serverRequestHandlerURL);
};
WGGWigeowebCfg.prototype.setServerRequestHandlerURL=function(_2){
this.serverRequestHandlerURL=_2;
};
WGGWigeowebCfg.prototype.createServerRequest=function(){
return new WGGServerRequest(this.getAbsoluteServerRequestHandlerURL(),new WGGAjaxLoader(false));
};
WGGWigeowebCfg.prototype.setCurrentLngCode=function(_3){
this.currentLng=_3;
this.bLngChanged=true;
};
WGGWigeowebCfg.prototype.getCurrentLngSource=function(){
if(!this.bLngChanged&&this.currentLngSource!=null){
return this.currentLngSource;
}
if(this.currentLng==null){
this.currentLng="eng";
}
var _4=WGGEnumLanguageISOCode.lookupEnumLanguageISOCodeByISO3(this.currentLng);
for(var i=0;i<this.lngSources.length;i++){
var _6=this.lngSources[i];
if(_6.enumLanguageISOCode==_4){
this.currentLngSource=_6;
}
}
this.bLngChanged=false;
return this.currentLngSource;
};
WGGWigeowebCfg.prototype.getPrivilegeSource=function(){
return this.privilegeSource;
};


/**********WGGXmlUtils.js.tmp**********/
function WGGXmlUtils(){
};
WGGXmlUtils.parseChildNodes=function(_1){
var _2=new Object();
var _3=_1.childNodes;
if(_3!=null){
for(var i=0;i<_3.length;i++){
var _5=_3[i];
var _6=_5.nodeType;
var _7=null;
var _8=null;
switch(_6){
case 1:
case 9:
var _9=null;
try{
var _a=_5.firstChild;
if(_a.nodeType==3){
_9=_a.nodeValue;
}else{
throw "firstChild of the node "+_5.nodeName+" may not be of the type 3";
}
}
catch(e){
_9=WGGXmlUtils.parseChildNodes(_5);
}
_7=_5.nodeName;
_8=_9;
break;
case 3:
_7=_5.parentNode.nodeName;
_8=_5.nodeValue;
break;
}
if(_2[_7]){
if(!WGGDataTypeUtils.isArray(_2[_7])){
var _b=_2[_7];
_2[_7]=[];
_2[_7].push(_b);
_2[_7].push(_8);
}else{
_2[_7].push(_8);
}
}else{
_2[_7]=_8;
}
}
}
return _2;
};
WGGXmlUtils.getChildValue=function(_c){
if(_c==null){
return null;
}
var _d=null;
if(_c.nodeValue){
return _c.nodeValue;
}
if(_c.firstChild&&(_c.firstChild.nodeType==3||_c.firstChild.nodeType==4)){
return _c.firstChild.nodeValue;
}
return null;
};
WGGXmlUtils.createDOMParser=function(){
if(typeof DOMParser=="undefined"){
var _e=function(){
};
_e.prototype.parseFromString=function(_f,_10){
if(typeof ActiveXObject!="undefined"){
var _11=new ActiveXObject("MSXML.DomDocument");
_11.async=false;
_11.loadXML(_f);
return _11;
}else{
if(typeof XMLHttpRequest!="undefined"){
var req=new XMLHttpRequest();
req.open("GET","data:"+(_10||"application/xml")+";charset=utf-8,"+encodeURIComponent(_f),false);
if(req.overrideMimeType){
req.overrideMimeType(_10);
}
req.send(null);
return req.responseXML;
}
}
};
return new _e();
}else{
return new DOMParser();
}
};
WGGXmlUtils.selectNodes=function(_13,_14,_15){
if(_13==null){
return null;
}
if(typeof _13.getElementsByTagName=="undefined"){
return null;
}
var _16=_13.ownerDocument;
if(_16==null){
_16=_13;
}
if(typeof XPathResult=="undefined"){
var _17="";
if(_15!=null){
if(!_15.possibleNamespaces){
throw "namespaceResolver should define a static member possibleNamespaces { 'b' : 'http://www.backbase.com/2006/btl', ... }";
}
for(var _18 in _15.possibleNamespaces){
if(_17!=""){
_17+=" ";
}
_17+="xmlns:"+_18+"=\""+_15.possibleNamespaces[_18]+"\"";
}
}
_16.setProperty("SelectionLanguage","XPath");
_16.setProperty("SelectionNamespaces",_17);
if(/^\/\/.+\[([0-9]+)\]$/g.exec(_14)){
return _13.selectSingleNode(_14);
}else{
return _13.selectNodes(_14);
}
}else{
var _19=_16.evaluate(_14,_13,_15,XPathResult.ANY_TYPE,null);
var _1a=[];
var _1b=_19.iterateNext();
var i=0;
while(_1b){
_1a[i]=_1b;
_1b=_19.iterateNext();
i++;
}
return _1a;
}
};
WGGXmlUtils.serialize=function(_1d){
try{
if(typeof XMLSerializer!="undefined"){
var _1e=new XMLSerializer();
return _1e.serializeToString(_1d);
}else{
if(_1d.xml){
return _1d.xml;
}else{
throw "no serialization of XML supported";
}
}
}
catch(e){
throw e;
}
};

/********** __wggJsCoreInitialized signal **********/
			//-- set the bDebug flag
			try {
				if( ! __DEBUG__ ) throw "__DEBUG__ global variable not defined by the client";
				var __DEBUG__ = new Boolean(__DEBUG__);
			} catch(e) {
				var __DEBUG__ = false;
			}
			try {
				if( WGGDebugWindow ) {
					if( __DEBUG__ == true ) {
						//WGGAbstractDebugInterface.gDebugInterface = new WGGTextDebugInterface(true);
						WGGAbstractDebugInterface.gDebugInterface = new WGGObjectDebugInterface(true);
						var debugWindow = new WGGDebugWindow("debugWindow_jscore", "menubar=yes,resizable=yes,scrollbars=yes,width=500,height=700");
						WGGAbstractDebugInterface.gDebugInterface.addChangeListener( debugWindow );
					} else {
						WGGAbstractDebugInterface.gDebugInterface = new WGGNullDebugInterface(false);
					}
				} else {
					throw "Class WGGDebugWindow has not been loaded";
				}
			} catch( e ) {
				ex = "Critical error while loading jscore framework: ";
				if( typeof e != "string" ) ex += e.message;
				alert( ex );
			}

			//-- b) print debug info about the initialization of the framework
			if( __DEBUG__ ) {
				WGGAbstractDebugInterface.gDebugInterface.info( "all script of the framework 'jscore' loaded" );
			}

			//-- c) call the client global function __wggJsCoreInitialized
			//--    (client can react to the initialization of the framework)
			try {
				if( WGGDataTypeUtils.isFunction( __wggJsCoreInitialized ) )
					__wggJsCoreInitialized();
			} catch( e ) {
			}
