Ext.getBody().on("click",function(d){var b=d.target.id;var a=d.target.className;if(b!=undefined&&b!=null&&b.trim().length>0&&!(b.indexOf("mapfilter")!=-1)&&a!=undefined&&a!=null&&a.trim().length>0&&!(a.indexOf("x-form-check-group")!=-1)){try{var c=$("#filtermenu");if(!Ext.isEmpty(c)){c.hide();}}catch(e){console.log("er=-=-=->",e);
}}});Ext.define("citrixDashboard.view.GeoPanel",{extend:"Ext.ux.GMapPanel",alias:"widget.geopanel",markers:new Array(),controllersShow:true,jsonData:"",jsonData1:"",infoBoxArray:[],markerArray:[],feauturesArray:[],stateArray:[],listenerArray:[],access:null,mapMode:"Country",zoomLevel:0,initComponent:function(){var a=this;
Ext.applyIf(this,{plain:true,gmapType:"map",mapType:"satellite",border:false,});this.callParent(arguments);},mapStyle:"default",styleMap:function(){var c=this,b;switch(c.mapStyle){case"light":b=lightStyle;break;case"dark":b=darkStyle;break;}var a=new google.maps.StyledMapType(b,{name:"Styled Map"});this.gmap.mapTypes.set("styled_map",a);
this.gmap.setMapTypeId("styled_map");},zoom:1,updateData:function(c,b){this.jsonData=c;this.access=null;this.closeAllInfoBox();this.clearMap(this);this.removeAllListeners(this);var a=c.mapMode;this.mapMode=a;if(a==undefined||a==null||a=="Country"){this.refreshMapDetails(this);Ext.getCmp("world_icon").setVisible(false);
Ext.getCmp("region_icon").setVisible(false);Ext.getCmp("region_label").setVisible(false);Ext.getCmp("city_icon").setVisible(false);}else{if(this.mapMode=="Region"){Ext.getCmp("world_icon").setVisible(true);Ext.getCmp("region_label").setVisible(true);Ext.getCmp("region_icon").setVisible(false);Ext.getCmp("city_icon").setVisible(false);
}else{if(this.mapMode=="City"){Ext.getCmp("world_icon").setVisible(true);Ext.getCmp("region_label").setVisible(false);Ext.getCmp("region_icon").setVisible(true);Ext.getCmp("city_icon").setVisible(true);}}this.loadRegionDetails(this,b);}},stateCheck:function(k,f){var l=k.stateArray;try{var o=[];var h=[];
if(!Ext.isEmpty(f)&&!Ext.isEmpty(l)){for(var j in l){var e=l[j];if(f.indexOf(e)==-1){h.push(e);}}for(var j in f){var e=f[j];if(l.indexOf(e)==-1){o.push(e);}}}else{if(!Ext.isEmpty(f)&&Ext.isEmpty(l)){for(var j in f){o.push(f[j]);}}else{if(Ext.isEmpty(f)&&!Ext.isEmpty(l)){for(var j in l){h.push(f[j]);}}}}if(!Ext.isEmpty(o)){for(var m in o){var q=o[m];
if(q=="GOOD"){var d=Ext.getCmp("filtermenu_Normal");if(d.isDisabled()){d.setValue(true);d.setDisabled(false);}}else{if(q=="UNKNOWN"){var g=Ext.getCmp("filtermenu_Unknown");if(g.isDisabled()){g.setValue(true);g.setDisabled(false);}}else{if(q=="LOW"){var p=Ext.getCmp("filtermenu_Minor");if(p.isDisabled()){p.setValue(true);
p.setDisabled(false);}}else{if(q=="INTERMEDIATE"){var b=Ext.getCmp("filtermenu_Major");if(b.isDisabled()){b.setValue(true);b.setDisabled(false);}}else{if(q=="HIGH"){var i=Ext.getCmp("filtermenu_Critical");if(i.isDisabled()){i.setValue(true);i.setDisabled(false);}}}}}}}}if(!Ext.isEmpty(h)){for(var m in h){var q=h[m];
if(q=="GOOD"){var d=Ext.getCmp("filtermenu_Normal");d.setValue(false);d.setDisabled(true);}else{if(q=="UNKNOWN"){var g=Ext.getCmp("filtermenu_Unknown");g.setValue(false);g.setDisabled(true);}else{if(q=="LOW"){var p=Ext.getCmp("filtermenu_Minor");p.setValue(false);p.setDisabled(true);}else{if(q=="INTERMEDIATE"){var b=Ext.getCmp("filtermenu_Major");
b.setValue(false);b.setDisabled(true);}else{if(q=="HIGH"){var i=Ext.getCmp("filtermenu_Critical");i.setValue(false);i.setDisabled(true);}}}}}}}}catch(n){console.log("w------>",n);}},clearMap:function(d){try{var b=[];var f=[];if(!Ext.isEmpty(d)){b=d.feauturesArray;f=d.markerArray;if(!Ext.isEmpty(b)){for(var h in b){for(var a in b[h]){b[h][a].setMap(null);
}}d.feauturesArray=[];}if(!Ext.isEmpty(f)){for(var h in f){f[h].setMap(null);}d.markerArray=[];}d.infoBoxArray=[];}}catch(g){console.log("e------>",g);}},createMap:function(b,c){var d=this;options=Ext.apply({},this.mapOptions);options=Ext.applyIf(options,{zoom:d.zoom,center:b,disableDefaultUI:true,mapTypeControl:false,scaleControl:false,backgroundColor:"none",minZoom:1,draggable:true,zoomControl:false,zoomControlOptions:{style:google.maps.ZoomControlStyle.LARGE},mapTypeControlOptions:{mapTypeIds:[]},mapTypeId:d.mapType});
d.gmap=new google.maps.Map(d.body.dom,options);d.styleMap();if(d.controllersShow){Ext.create("citrixDashboard.view.GeoMapControls",{id:"geoMapControls-"+d.id,margin:"-35px 10px 0 10px",renderTo:"geo_map_header_id"});$("#"+this.id+"-body").append('<div class="gmap_control"><div id="zoomout" title="Zoom in" class="zoombt">+</div><div title="Zoom out" id="zoomin" class="zoombt">-</div></div><div title="Filters" id="mapfilter" class="gmap_filters"><span class="geomap_filter_menu"></span></div><div class="filter_menu" id="filter_menu"></div>');
d.mapControl();}try{google.maps.event.addListener(d.gmap,"click",function(i){var h=$("#filtermenu");if(!Ext.isEmpty(h)){h.hide();}});}catch(g){console.log(g);}var f=d.jsonData;var a=f.mapMode;if(a!=undefined&&a!=null&&a!=""&&a!="Country"){d.updateData(f);}else{d.loadMapDetails(d);}},mapControl:function(){var b=this,c=this.gmap,a=Ext.create("citrixDashboard.view.GeoMapFliters",{renderTo:"filter_menu",id:"filtermenu",hidden:true,map:b,});
$("body").on("click","#zoomin",function(){var d=c.getZoom();if(d!=0){c.setZoom(d-1);}});$("body").on("click","#zoomout",function(){var d=c.getZoom();if(d!=21){c.setZoom(d+1);}});$("#mapfilter").click(function(){$("#filtermenu").slideToggle("slow");});},refreshMapDetails:function(A){try{var B=A.jsonData;
var g=[];if(!Ext.isEmpty(B)&&!Ext.isEmpty(B.colorArray)){g=B.colorArray;}var v=[];if(!Ext.isEmpty(B)&&!Ext.isEmpty(B.resultArray)){v=B.resultArray;}var h=[];if(!Ext.isEmpty(B)&&!Ext.isEmpty(B.stateArray)){h=B.stateArray;}A.stateCheck(A,h);A.stateArray=h;var m=[];if(!Ext.isEmpty(v)){var n;var c;if(v.length>0){Ext.getCmp("filtermenu_Response_Time").setValue(true);
Ext.getCmp("filtermenu_Requests").setValue(true);Ext.getCmp("filtermenu_Response_Time").setDisabled(false);Ext.getCmp("filtermenu_Requests").setDisabled(false);}for(var z=0;z<v.length;z++){var a=v[z];var i=new Array();i.push(a.DispInfo);i.push(a.CountryCode);i.push(a.magnitude);i.push(a.RealInfo);i.push(a.State);
i.push(a.CountryLAT);i.push(a.CountryLNG);i.push(a.LocDetails);i.push(a.BottomLocDetails);try{n=g[a.Info];}catch(o){}if(a.CountryCode=="NIL"){continue;}c=null;c={lat:parseFloat(a.CountryLAT),lng:parseFloat(a.CountryLNG)};m.push(c);var b=new InfoBox({content:"",pixelOffset:new google.maps.Size(-230,-20),zIndex:null,boxStyle:{border:"0px solid orange",opacity:1,width:"474px",margin:"25 0 0 0"},closeBoxMargin:"7px 7px 0px 0px",closeBoxURL:"",infoBoxClearance:new google.maps.Size(1,1)});
A.infoBoxArray.push(b);var l="";var t=" onclick=\"loadUED('"+a.Info+"','"+A.selectedView+"')\" ";var q="";if(A.selectedView!=undefined&&A.selectedView!=null&&A.selectedView=="Overview_View"){l=" onclick=\"loadGeoCountry('"+a.CountryCode+"','"+A.id+"')\" ";}if(A.selectedView!=undefined&&A.selectedView!=null&&A.selectedView=="Geo_View"){l=" onclick=\"moveNext('"+A.mapMode+"','"+a.CountryCode+"','"+a.Info+"')\" ";
}var j="";var s="height:100px";if(a.BottomLocDetails.length>3){s="height:150px";}j=j+"<div id='infobox' >";j=j+"<div style='position: absolute;top: -10px;left: 219px;'><img src='/final/images/Light/iconMapArrow.png'/></div><ul class='rumMapData' style='	list-style:none;margin:0px;padding:3px 0 10px 0;height:20px;border-bottom:1px solid #cccccc'>";
j=j+"<li><div  data-qclass='yellowTip' "+l+" data-qtip='"+a.DispInfo+"' ><table cellspacing='0' cellpadding='0' border='0' style='table-layout:auto;width:auto'><tr><td class='header' style='padding:1px 0 0 5px;text-align:left;color:"+a.StateCode+" !important;white-space: nowrap'><div class='mouse' title='"+a.DispInfo+"' style='margin-top:-3px;text-overflow:ellipsis;width:185px;overflow:hidden;text-align:left !important'>"+a.DispInfo+"</div></td><td class='header' style='padding:1px 0 0 5px;width:47px;text-align:left;white-space: nowrap'><div title='Click here to Users View' data-qtip='Click here to Users View' data-qclass='yellowTip' class='mouse iconUxUser' "+t+" style='position:absolute;margin-top:-8px;left:91.5%;text-overflow:ellipsis;overflow:hidden;text-align:left !important;display:none !important;'>&nbsp;</div></td></tr></table></div></li>";
if(a.HeaderMeasureName!=null&&a.HeaderMeasureName!=undefined&&a.HeaderMeasureName!=""){if(!Ext.isEmpty(a.DD_URL)&&a.DD_URL!=null&&a.DD_URL!=undefined){j=j+"<li style='padding-top:4px;white-space:normal;display:inline-block;float:left;text-align:right'><span style='font-size:17px;text-transform:lowercase;color:#000;font-weight:bold' class='rumVisitsText'>"+a.HeaderMeasureValue+"</span>&nbsp;"+a.HeaderMeasureDispName+"</li>";
}else{j=j+"<li style='padding-top:4px;white-space:normal;display:inline-block;float:left;text-align:right'><span style='font-size:17px;text-transform:lowercase;color:#000;font-weight:bold' > "+a.HeaderMeasureValue+"</span>&nbsp;"+a.HeaderMeasureDispName+"</li>";}}j=j+"</ul><br/>";j=j+"<ul class='rumMapData' style='	list-style:none;margin:0px;padding:0px;display:inline-block;line-height:1.5em;'>";
for(var y=0;y<a.BottomLocDetails.length;y++){var p=a.BottomLocDetails[y];if(p!=null&&p!=undefined){var r=p.MeasureDispName;if(p.MeasureUnit=="milliseconds"){p.MeasureUnit="ms";}if(p.MeasureUnit=="Seconds"){p.MeasureUnit="S";}if(!Ext.isEmpty(p.DD_URL)&&p.DD_URL!=null&&p.DD_URL!=undefined){j=j+"<li style='text-align:center;padding:3px 8px 10px 8px;white-space:normal;display:inline-block;float:left'><div style='display:table;margin:auto'><div style='float:left' class='stateSymbol_"+p.State+"'></div><span class ='value' style='text-transform:lowercase;' class='rumVisitsText'>"+p.MeasureValue+"</span><span class ='unit'>"+p.MeasureUnit+" </span></div><div class='url'></div><span style='margin-top:10px;display:block'>"+p.MeasureDispName+"</span></li>";
}else{j=j+"<li style='text-align:center;padding:0px 8px 0px 8px;white-space:normal;display:inline-block;float:left'><div style='display:table;margin:auto'><div style='float:left' class='stateSymbol_"+p.State+"'></div><span class ='value' style='text-transform:lowercase;'> "+p.MeasureValue+"</span><span class ='unit'>"+p.MeasureUnit+" </span></div><div class='url'></div><span style='margin-top:10px;display:block'>"+p.MeasureDispName+"</span></li>";
}}}j=j+"</ul>";j=j+"</div>";if(Ext.isEmpty(a.CountryCode)){i.push("No_Code");}else{i.push(a.CountryCode);var k=new XMLHttpRequest();var f="geojson/"+a.CountryCode+".geojson";k.open("GET",f,false);var u=GRAY;if(a.State=="HIGH"){u=HIGH;}else{if(a.State=="INTERMEDIATE"){u=INTERMEDIATE;}else{if(a.State=="LOW"){u=LOW;
}else{if(a.State=="UNKNOWN"){u=UNKNOWN;}else{if(a.State=="GOOD"){u=GOOD;}}}}}k.onload=function(){if(k.status==200){A.loadGeoJSON(A,k.responseText,u,b,c,j,i,n,m,a);}};k.send();}}}}catch(x){console.log("aa==>",x);}A.zoomLevel=A.gmap.getZoom();},loadMapDetails:function(D){try{D.removeAllListeners(D);var E=D.jsonData;
var f=E.mapMode;D.mapMode=f;var i=[];if(!Ext.isEmpty(E)&&!Ext.isEmpty(E.colorArray)){i=E.colorArray;}var y=[];if(!Ext.isEmpty(E)&&!Ext.isEmpty(E.resultArray)){y=E.resultArray;}var j=[];if(!Ext.isEmpty(E)&&!Ext.isEmpty(E.stateArray)){j=E.stateArray;}D.stateArray=j;var o=[];if(!Ext.isEmpty(y)){var p;var g;
if(y.length>0){Ext.getCmp("filtermenu_Response_Time").setValue(true);Ext.getCmp("filtermenu_Requests").setValue(true);Ext.getCmp("filtermenu_Response_Time").setDisabled(false);Ext.getCmp("filtermenu_Requests").setDisabled(false);}if(!Ext.isEmpty(j)){for(var C in j){var u=j[C];if(u=="GOOD"){Ext.getCmp("filtermenu_Normal").setValue(true);
Ext.getCmp("filtermenu_Normal").setDisabled(false);}else{if(u=="UNKNOWN"){Ext.getCmp("filtermenu_Unknown").setValue(true);Ext.getCmp("filtermenu_Unknown").setDisabled(false);}else{if(u=="LOW"){Ext.getCmp("filtermenu_Minor").setValue(true);Ext.getCmp("filtermenu_Minor").setDisabled(false);}else{if(u=="INTERMEDIATE"){Ext.getCmp("filtermenu_Major").setValue(true);
Ext.getCmp("filtermenu_Major").setDisabled(false);}else{if(u=="HIGH"){Ext.getCmp("filtermenu_Critical").setValue(true);Ext.getCmp("filtermenu_Critical").setDisabled(false);}}}}}}}for(var B=0;B<y.length;B++){var b=y[B];var k=new Array();k.push(b.DispInfo);k.push(b.CountryCode);k.push(b.magnitude);k.push(b.RealInfo);
k.push(b.State);k.push(b.CountryLAT);k.push(b.CountryLNG);k.push(b.LocDetails);k.push(b.BottomLocDetails);try{p=i[b.Info];}catch(q){}if(b.CountryCode=="NIL"){continue;}g=null;g={lat:parseFloat(b.CountryLAT),lng:parseFloat(b.CountryLNG)};o.push(g);var c=new InfoBox({content:"",pixelOffset:new google.maps.Size(-230,-20),zIndex:null,boxStyle:{border:"0px solid red",opacity:1,width:"550px",margin:"25 0 0 0"},closeBoxMargin:"7px 7px 0px 0px",closeBoxURL:"",infoBoxClearance:new google.maps.Size(1,1)});
D.infoBoxArray.push(c);var n="";var v=" onclick=\"loadUED('"+b.Info+"','"+D.selectedView+"')\" ";if(D.selectedView!=undefined&&D.selectedView!=null&&D.selectedView=="Overview_View"){n=" onclick=\"loadGeoCountry('"+b.CountryCode+"','"+D.id+"')\" ";}if(D.selectedView!=undefined&&D.selectedView!=null&&D.selectedView=="Geo_View"){n=" onclick=\"moveNext('"+D.mapMode+"','"+b.CountryCode+"','"+b.combo+"')\" ";
}var l="";var t="height:100px";if(b.BottomLocDetails.length>3){t="height:150px";}l=l+"<div id='infobox'>";l=l+"<div style='position: absolute;top: -10px;left: 219px;'><img src='/final/images/Light/iconMapArrow.png'/></div><ul class='rumMapData' style='list-style:none;margin:0px;padding:0px 0 10px 0;height:20px;border-bottom:1px solid #cccccc'>";
l=l+"<li><div  data-qclass='yellowTip' "+n+" data-qtip='"+b.DispInfo+"' ><table cellspacing='0' cellpadding='0' border='0' style='table-layout:auto;width:auto'><tr><td class='header' style='width:100%;display:inline-block;float:left;padding:4px 0 0 5px;text-align:left;color:"+b.StateCode+" !important;white-space: nowrap'><div class='mouse' title='"+b.DispInfo+"' style='margin-top:-3px;text-overflow:ellipsis;overflow:hidden;text-align:left !important'>"+b.DispInfo+"</div></td><td class='header' style='display:inline-block;float:left;padding:4px 0 0 0px;width:47px;white-space: nowrap'><div title='Click here to Users View' data-qtip='Click here to Users View' data-qclass='yellowTip' class='mouse iconUxUser' "+v+" style='position:absolute;left:91.5%;float:right;margin-top:-17px;text-overflow:ellipsis;overflow:hidden;text-align:left !important;display:none !important;'>&nbsp;</div></td></tr></table></div></li>";
if(b.HeaderMeasureName!=null&&b.HeaderMeasureName!=undefined&&b.HeaderMeasureName!=""){if(!Ext.isEmpty(b.DD_URL)&&b.DD_URL!=null&&b.DD_URL!=undefined){l=l+"<li style='padding-top:4px;white-space:normal;display:inline-block;float:left;text-align:right'><span style='font-size:17px;text-transform:lowercase;font-weight:bold' class='rumVisitsText'>"+b.HeaderMeasureValue+"</span>&nbsp;"+b.HeaderMeasureDispName+"</li>";
}else{l=l+"<li style='padding-top:4px;white-space:normal;display:inline-block;float:left;text-align:right'><span style='font-size:17px;text-transform:lowercase;font-weight:bold' > "+b.HeaderMeasureValue+"</span>&nbsp;"+b.HeaderMeasureDispName+"</li>";}}l=l+"</ul><br/>";l=l+"<ul class='rumMapData' style='	list-style:none;margin:0px;padding:0px;display:inline-block;line-height:1.5em;'>";
for(var A=0;A<b.BottomLocDetails.length;A++){var r=b.BottomLocDetails[A];if(r!=null&&r!=undefined){var s=r.MeasureDispName;if(r.MeasureUnit=="milliseconds"){r.MeasureUnit="ms";}if(r.MeasureUnit=="Seconds"){r.MeasureUnit="S";}if(!Ext.isEmpty(r.DD_URL)&&r.DD_URL!=null&&r.DD_URL!=undefined){l=l+"<li style='text-align:center;padding:3px 8px 10px 8px;white-space:normal;display:inline-block;float:left'><div style='display:table;margin:auto'><div style='float:left' class='stateSymbol_"+r.State+"'></div><span class ='value' style='text-transform:lowercase;' class='rumVisitsText'>"+r.MeasureValue+"</span><span class ='unit'>"+r.MeasureUnit+" </span></div><div class='crl'>span style='margin-top:10px;display:block'>"+r.MeasureDispName+"</span></li>";
}else{l=l+"<li style='text-align:center;padding:0px 8px 0px 8px;white-space:normal;display:inline-block;float:left'><div style='display:table;margin:auto'><div style='float:left' class='stateSymbol_"+r.State+"'></div><span class ='value' style='text-transform:lowercase;'> "+r.MeasureValue+"</span><span class ='unit'>"+r.MeasureUnit+" </span></div><div class='crl'></div><span style='margin-top:10px;display:block'>"+r.MeasureDispName+"</span></li>";
}}}l=l+"</ul>";l=l+"</div>";if(Ext.isEmpty(b.CountryCode)){k.push("No_Code");}else{k.push(b.CountryCode);var m=new XMLHttpRequest();var h="geojson/"+b.CountryCode+".geojson";m.open("GET",h,false);var x=GRAY;if(b.State=="HIGH"){x=HIGH;}else{if(b.State=="INTERMEDIATE"){x=INTERMEDIATE;}else{if(b.State=="LOW"){x=LOW;
}else{if(b.State=="UNKNOWN"){x=UNKNOWN;}else{if(b.State=="GOOD"){x=GOOD;}}}}}m.onload=function(){if(m.status==200){D.loadGeoJSON(D,m.responseText,x,c,g,l,k,p,o,b);}};m.send();}}}D.setmapBounds(o,D);}catch(z){console.log("aa==>",z);}D.zoomLevel=D.gmap.getZoom();},loadRegionDetails:function(B,x){try{var C=B.jsonData;
var h=[];if(!Ext.isEmpty(C)&&!Ext.isEmpty(C.colorArray)){h=C.colorArray;}var v=[];if(!Ext.isEmpty(C)&&!Ext.isEmpty(C.resultArray)){v=C.resultArray;}var i=[];if(!Ext.isEmpty(C)&&!Ext.isEmpty(C.stateArray)){i=C.stateArray;}B.stateArray=i;var m=[];if(!Ext.isEmpty(v)){var n;var g;for(var A=0;A<v.length;A++){var a=v[A];
var j=new Array();j.push(a.DispInfo);j.push(a.magnitude);j.push(a.RealInfo);j.push(a.State);j.push(a.CountryLAT);j.push(a.CountryLNG);j.push(a.LocDetails);j.push(a.BottomLocDetails);try{n=h[a.Info];}catch(o){}if(a.CountryCode=="NIL"){continue;}var l=" onclick=\"moveNext('"+B.mapMode+"','"+a.CountryCode+"','"+a.combo+"')\" ";
var c="mouse";if(B.mapMode!=undefined&&B.mapMode=="City"){l="";c="";}var f=new InfoBox({content:"",pixelOffset:new google.maps.Size(-230,-20),zIndex:null,boxStyle:{border:"0px solid blue",opacity:1,width:"550px",margin:"25 0 0 0"},closeBoxMargin:"7px 7px 0px 0px",closeBoxURL:"",infoBoxClearance:new google.maps.Size(1,1)});
B.infoBoxArray.push(f);var k="";var u="height:100px";var q="onclick=\"loadUED('"+a.Info+"','"+B.selectedView+"')\"";if(a.BottomLocDetails.length>3){u="height:150px";}k=k+"<div id='infobox' style='width:100%'>";k=k+"<div style='position: absolute;top: -10px;left: 219px;'><img src='/final/images/Light/iconMapArrow.png'/></div><ul class='rumMapData' style='list-style:none;margin:0px;padding:0px 0 10px 0;height:20px;border-bottom:1px solid #cccccc'>";
k=k+"<li><div "+l+" data-qtip='"+a.DispInfo+"' ><table cellspacing='0' cellpadding='0' border='0' style='table-layout:auto;width:auto'><tr><td class='header' style='width:100%;display:inline-block;float:left;padding:4px 0 0 5px;text-align:left;color:"+a.StateCode+" !important;white-space: nowrap'><div class='"+c+"' title='"+a.DispInfo+"' style='margin-top:-3px;text-overflow:ellipsis;overflow:hidden;text-align:left !important'>"+a.DispInfo+"</div></td><td class='header' style='display:inline-block;float:left;padding:4px 0 0 5px;text-align:left;white-space: nowrap'><div title='Click here to Users View' data-qtip='Click here to Users View' data-qclass='yellowTip' class='mouse iconUxUser' "+q+" style='position:absolute;left:91.5%;float:right;margin-top:-17px;text-overflow:ellipsis;overflow:hidden;text-align:left !important;display:none !important'>&nbsp;</div></td></tr></table></div></li>";
if(a.HeaderMeasureName!=null&&a.HeaderMeasureName!=undefined&&a.HeaderMeasureName!=""){if(!Ext.isEmpty(a.DD_URL)&&a.DD_URL!=null&&a.DD_URL!=undefined){k=k+"<li style='padding-top:4px;white-space:normal;display:inline-block;float:left;text-align:right'><span style='font-size:17px;text-transform:lowercase;color:#000;font-weight:bold' class='rumVisitsText'>"+a.HeaderMeasureValue+"</span>&nbsp;"+a.HeaderMeasureDispName+"</li>";
}else{k=k+"<li style='padding-top:4px;white-space:normal;display:inline-block;float:left;text-align:right'><span style='font-size:17px;text-transform:lowercase;color:#000;font-weight:bold' > "+a.HeaderMeasureValue+"</span>&nbsp;"+a.HeaderMeasureDispName+"</li>";}}k=k+"</ul><br/>";k=k+"<ul class='rumMapData' style='	list-style:none;margin:0px;padding:0px;display:inline-block;line-height:1.5em;'>";
for(var z=0;z<a.BottomLocDetails.length;z++){var p=a.BottomLocDetails[z];if(p!=null&&p!=undefined){var t=p.MeasureDispName;if(p.MeasureUnit=="milliseconds"){p.MeasureUnit="ms";}if(p.MeasureUnit=="Seconds"){p.MeasureUnit="S";}if(!Ext.isEmpty(p.DD_URL)&&p.DD_URL!=null&&p.DD_URL!=undefined){k=k+"<li style='text-align:center;padding:0px 8px 0px 8px;white-space:normal;display:inline-block;float:left'><div style='display:table;margin:auto'><div style='float:left' class='stateSymbol_"+p.State+"'></div><span class ='value' style='text-transform:lowercase;'> "+p.MeasureValue+"</span><span class ='unit'>"+p.MeasureUnit+" </span></div><div class='crl'><span style='margin-top:10px;display:block'>"+p.MeasureDispName+"</span></li>";
}else{k=k+"<li style='text-align:center;padding:0px 8px 0px 8px;white-space:normal;display:inline-block;float:left'><div style='display:table;margin:auto'><div style='float:left' class='stateSymbol_"+p.State+"'></div><span class ='value' style='text-transform:lowercase;'> "+p.MeasureValue+"</span><span class ='unit'>"+p.MeasureUnit+" </span></div<div class='crl'><span style='margin-top:10px;display:block'>"+p.MeasureDispName+"</span></li>";
}}}k=k+"</ul>";k=k+"</div>";this.doGeoCoding(B,n,a,m,v,f,k);}}else{var b=Ext.getCmp("countryComboId");var r=Ext.getCmp("regionComboId");var s=b.getValue();if(B.mapMode=="City"){moveNext("Country",s,null,x);}else{if(B.mapMode=="Region"){b.setValue("World");citrixDashboard.app.getController("Main").geoComboOnChange(b,null,x);
}}}B.setmapBounds(m,B);}catch(y){console.log("aa==>",y);}B.zoomLevel=B.gmap.getZoom();},doGeoCoding:function(s,m,a,j,q,c,h){var k,p;var n=getStyle(m);if(n!=null&&n!=undefined){k=n.width;p=n.height;}var b=true;if(isNaN(a.CountryLAT)||isNaN(a.CountryLNG)){b=false;}if(b){var f=null;f={lat:parseFloat(a.CountryLAT),lng:parseFloat(a.CountryLNG)};
j.push(f);var e=new MarkerWithLabel({position:f,map:s.gmap,icon:image,draggable:false,labelAnchor:new google.maps.Point(k,p),labelContent:"",info:a.combo,test_org:a.test_name,measure_org:a.measure_name,session_val:a.BottomLocDetails[0].MeasureValue,labelClass:m});s.markerArray.push(e);var d=new MarkerWithLabel({position:f,draggable:false,raiseOnDrag:false,map:s.gmap,labelAnchor:new google.maps.Point(2,8),labelClass:"labels",labelStyle:{opacity:0.9,color:labelColor},icon:image});
var l=0;var i=google.maps.event.addListener(e,"dblclick",function(u){l=1;if(!Ext.isEmpty(s.fullJson)&&s.fullJson.length>0&&s.fullJson[1].hasOwnProperty("Geo_Block_1_Value")){var v=s.fullJson[1].Geo_Block_1_Value[1];if(!Ext.isEmpty(v)&&v.title.toLowerCase()=="unique users"){loadView(v.changeTabView,this.session_val,this.info,this.test_org,this.measure_org,v.linkurl,"true");
}}});s.listenerArray.push(i);var g=google.maps.event.addListener(e,"click",function(u){l=0;update_timeout=setTimeout(function(){if(l==0){if(s.mapMode!=undefined&&s.mapMode=="Region"){loadDetailsOnClick(s.access,"regionComboId");}}},300);});s.listenerArray.push(g);var r=google.maps.event.addListener(e,"mouseover",function(u){s.access=this.info;
c.setContent(h);c.open(s.gmap,d);});s.listenerArray.push(r);var t=google.maps.event.addListener(e,"mouseodown",function(u){s.access=this.info;});s.listenerArray.push(t);var o=google.maps.event.addListener(e,"mouseout",function(u){s.access=undefined;setTimeout(function(){c.close();},200);});s.listenerArray.push(o);
if(j.length==q.length){s.setmapBounds(j,s);s.addZoomChangeListener(s);}}},removeAllListeners:function(c){var a=c.listenerArray;if(a!=undefined&&a!=null){for(var b=0;b<a.length;b++){google.maps.event.removeListener(a[b]);}}c.listenerArray=[];},addZoomChangeListener:function(a){return;a.zoomLevel=a.gmap.getZoom();
},setmapFixedView:function(a){try{var b=new google.maps.LatLng(40.378,10.4359);a.gmap.setCenter(b);a.gmap.setZoom(1);}catch(c){a.gmap.setZoom(1);}},setmapBounds:function(f,d){try{if(f!=null&&f!=undefined&&f.length>0){var c=new google.maps.LatLngBounds();for(var b=0;b<f.length;b++){c.extend(f[b]);}var a=true;
for(var b=0;b<f.length;b++){if(isNaN(f[b].lat)||isNaN(f[b].lng)){a=false;break;}}if(f.length==1){if(d.mapMode=="Region"){d.gmap.setZoom(3);}else{if(d.mapMode=="City"){d.gmap.setZoom(4);}else{d.gmap.setZoom(2);}}if(a){d.gmap.setCenter(c.getCenter());}}else{Ext.defer(function(){if(a){d.gmap.fitBounds(c);
d.gmap.setCenter(c.getCenter());}else{if(d.mapMode=="Region"){d.gmap.setZoom(3);}else{if(d.mapMode=="City"){d.gmap.setZoom(4);}else{d.gmap.setZoom(2);}}}},1000);}}else{d.gmap.setZoom(1);}}catch(g){d.gmap.setZoom(1);}},loadGeoJSON:function(A,r,u,b,f,j,p,o,l,a){try{var m,v;var q=getStyle(o);if(q!=null&&q!=undefined){m=q.width;
v=q.height;}var d=new MarkerWithLabel({position:f,map:A.gmap,icon:image,draggable:false,labelAnchor:new google.maps.Point(m,v),labelContent:"",info:p[1],test_org:a.test_name,measure_org:a.measure_name,session_val:a.BottomLocDetails[0].MeasureValue,realInfo:p[0],labelClass:o,});A.markerArray.push(d);var c=new MarkerWithLabel({position:f,draggable:false,raiseOnDrag:false,map:A.gmap,labelAnchor:new google.maps.Point(2,8),labelClass:"labels",labelStyle:{opacity:0.9,color:labelColor},icon:image,});
var n=0;var k=google.maps.event.addListener(d,"dblclick",function(i){n=1;if(!Ext.isEmpty(A.fullJson)&&A.fullJson.length>0&&A.fullJson[1].hasOwnProperty("Geo_Block_1_Value")){var x=A.fullJson[1].Geo_Block_1_Value[1];if(!Ext.isEmpty(x)&&x.title.toLowerCase()=="unique users"){loadView(x.changeTabView,this.session_val,this.realInfo,this.test_org,this.measure_org,x.linkurl,"true");
}}});A.listenerArray.push(k);var g=google.maps.event.addListener(d,"click",function(i){n=0;update_timeout=setTimeout(function(){if(n==0){if(A.selectedView!=undefined&&A.selectedView!=null&&A.selectedView=="Overview_View"){loadGeoCountry(this.info,A.id);}else{loadDetailsOnClick(A.access,"countryComboId");
}}},300);});A.listenerArray.push(g);var z=google.maps.event.addListener(d,"mouseover",function(i){A.access=this.info;b.setContent(j);b.open(A.gmap,c);});A.listenerArray.push(z);var B=google.maps.event.addListener(d,"mousedown",function(i){A.access=this.info;});A.listenerArray.push(B);var s=google.maps.event.addListener(d,"mouseout",function(i){A.access=undefined;
setTimeout(function(){b.close();},200);});A.listenerArray.push(s);var y=JSON.parse(r);var h=new GeoJSON(y,u);A.feauturesArray.push(h);for(var t=0;t<h.length;t++){h[t].info=p[1];h[t].colorClass=o;h[t].setMap(A.gmap);google.maps.event.addListener(h[t],"click",function(i){if(A.selectedView!=undefined&&A.selectedView!=null&&A.selectedView=="Overview_View"){loadGeoCountry(this.info,A.id);
}else{loadDetailsOnClick(A.access,"countryComboId");}});}A.setmapBounds(l,A);A.addZoomChangeListener(A);}catch(w){console.log("e-->",w);}},closeAllInfoBox:function(){try{var c=this.infoBoxArray;for(var b in c){c[b].close();}}catch(d){}},filterCheck:function(k){try{var n=[];var p=[];if(!Ext.isEmpty(k)){n=k.feauturesArray;
p=k.markerArray;var f=Ext.getCmp("filtermenu_Response_Time").getValue();var a=Ext.getCmp("filtermenu_Requests").getValue();var h=Ext.getCmp("filtermenu_Normal").getValue();var b=Ext.getCmp("filtermenu_Unknown").getValue();var g=Ext.getCmp("filtermenu_Minor").getValue();var j=Ext.getCmp("filtermenu_Major").getValue();
var m=Ext.getCmp("filtermenu_Critical").getValue();if(!Ext.isEmpty(n)){for(var i in n){for(var e in n[i]){if(f){var o=n[i][e].colorClass;o=o.substring(o.indexOf("_")+1);switch(o){case"GOOD":if(h){n[i][e].setMap(k.gmap);}else{n[i][e].setMap(null);}break;case"UNKNOWN":if(b){n[i][e].setMap(k.gmap);}else{n[i][e].setMap(null);
}break;case"LOW":if(g){n[i][e].setMap(k.gmap);}else{n[i][e].setMap(null);}break;case"INTERMEDIATE":if(j){n[i][e].setMap(k.gmap);}else{n[i][e].setMap(null);}break;case"HIGH":if(m){n[i][e].setMap(k.gmap);}else{n[i][e].setMap(null);}break;default:n[i][e].setMap(k.gmap);break;}}else{n[i][e].setMap(null);
}}}}if(!Ext.isEmpty(p)){for(var i in p){if(a){var o=p[i].labelClass;o=o.substring(o.indexOf("_")+1);switch(o){case"GOOD":if(h){p[i].setMap(k.gmap);}else{p[i].setMap(null);}break;case"UNKNOWN":if(b){p[i].setMap(k.gmap);}else{p[i].setMap(null);}break;case"LOW":if(g){p[i].setMap(k.gmap);}else{p[i].setMap(null);
}break;case"INTERMEDIATE":if(j){p[i].setMap(k.gmap);}else{p[i].setMap(null);}break;case"HIGH":if(m){p[i].setMap(k.gmap);}else{p[i].setMap(null);}break;default:p[i].setMap(k.gmap);break;}}else{p[i].setMap(null);}}}}}catch(d){}}});function loadGeoCountry(f,c){try{var g=Ext.getCmp("dashmenu_model_id");var i=Ext.getCmp(c);
var h=g.getStore();var a="";var j=0;for(var d=0;d<h.getCount();d++){var b=h.getAt(d).data.name;if(b!=null&&b!=undefined&&b=="Geo_View"){j=d;break;}}try{g.getSelectionModel().select(j);g.forceClickIndex=j;g.forceClickKey=f;g.cnCombo=i.jsonData.countryArray;g.fireEvent("itemclick",g,g.getSelectionModel().getLastSelected());
}catch(l){}}catch(e){alert(e);}}function loadUED(g,c){var b="/final/monitor/endUserDashboard.jsp?access=allusers&userType=XenApp7&fromGeo=true&enableBackButton=true&filterFlag=true&filterBy=All&isFromZone="+isFromZone+"&iszoneName="+iszoneName+"&parentZone="+parentZone;b+="&iniName="+iniName;b+="&user_name="+user_name;
b+="&isUserBased="+isUserBased;b+="&dashboard_name="+dashboard;b+="&view_name="+c;b+="&ginfo="+g;var a=Ext.getCmp("TimeLineId").getValue();if(a!=null&&a!=undefined&&a!=""){b+="&time_line="+encodeURI(a);}if(!Ext.isEmpty(g)&&g!=null&&g!=undefined){if(g.indexOf("+")==0){g=g.substring(1);}if(g.indexOf("(")>0){var h=g.substring(0,g.indexOf("("));
var f=g.substring(g.indexOf("(")+1,g.indexOf(")"));if(f!=null&&f.indexOf("-")>0){var e=f.substring(0,f.indexOf("-"));var d=f.substring(f.indexOf("-")+1);b+="&searchFilter="+d+"&nextSearch="+e+"&nextSubSearch="+h;}else{if(!Ext.isEmpty(f)&&f!=null&&f!=undefined){b+="&searchFilter="+f+"&nextSearch="+h;}}}else{b+="&searchFilter="+g;
}}window.location.href=b;}function moveNext(b,a,g,c){var f=Ext.getCmp("countryComboId");var e=Ext.getCmp("regionComboId");try{if(b=="Country"){f.setValue(a);citrixDashboard.app.getController("Main").geoComboOnChange(f,null,c);}else{if(b=="Region"){if(g.indexOf("+")==0){g=g.substring(1);}e.setValue(g);
citrixDashboard.app.getController("Main").geoComboOnChange(e,null,c);}}}catch(d){alert(d);}}function loadDetailsOnClick(d,a){if(Ext.isEmpty(d)){return;}var h=Ext.getCmp(a);try{h.setValue(d);try{if(a=="countryComboId"){var m=Ext.getCmp("region_label");var f=Ext.getCmp("countryComboId");var g=f.getRawValue();
if(g!=undefined&&g!=null){m.setText(g);}}if(a=="regionComboId"){var i=Ext.getCmp("region_icon");var f=Ext.getCmp("countryComboId");var k=f.getRawValue();if(k!=undefined&&k!=null){i.setText('<span style="float:left" class="geoDrilldownLink">'+k+'</span><div class="geoDrilldownArrow"></div>');}var l=Ext.getCmp("city_icon");
var b=Ext.getCmp("regionComboId");var c=b.getRawValue();if(c!=undefined&&c!=null){l.setText(c);}}}catch(n){}citrixDashboard.app.getController("Main").geoComboOnChange(h);}catch(j){}}