var A_5=AdfRichUIPeer.createPeerClass(AdfDhtmlCommonFlashPeer,"AdfDhtmlThematicMapPeer",!1);A_a("AdfDhtmlThematicMapPeer",A_5);AdfPage.PAGE.getLookAndFeel().registerPeerConstructor("oracle.dss.adf.thematicMap.ThematicMap","AdfDhtmlThematicMapPeer");A_5.dP="selection";A_5.cP="disclosed";
A_5.InitSubclass=function(){AdfObject.ensureClassInitialization(A_5);AdfRichUIPeer.addSuppressedPPRAttributes(this,"panX");AdfRichUIPeer.addSuppressedPPRAttributes(this,"panY");AdfRichUIPeer.addSuppressedPPRAttributes(this,"zoom");AdfRichUIPeer.addSuppressedPPRAttributes(this,AdfRichThematicMap.Wf);AdfRichUIPeer.addSuppressedPPRAttributes(this,AdfRichThematicMap.Vf);AdfRichUIPeer.addComponentEventHandlers(this,AdfUIInputEvent.CLICK_EVENT_TYPE);AdfRichUIPeer.addSuppressedPPRAttributes(this,dvt.le.lp);
AdfRichUIPeer.addSuppressedPPRAttributes(this,dvt.Qi.CONTROL_PANEL_BEHAVIOR_KEY)};A_a("AdfDhtmlThematicMapPeer.InitSubclass",A_5.InitSubclass);
A_5.prototype.InitDomElement=function(a,b){A_5.superclass.InitDomElement.call(this,a,b);this.nk=(new Date).getTime();this.yg=AdfPage.PAGE.isStreamingDisabled?AdfPage.PAGE.isStreamingDisabled():!1;if(a.getProperty(AdfDhtmlCommonFlashPeer.Lv)&&"HTML5"==this.L(a)){var c=AdfAgent.AGENT.getComputedStyle(b);this.vg(a,Number(c.width.substring(0,c.width.length-2)),Number(c.height.substring(0,c.height.length-2)));this.Ch(a,b)}};A_5.prototype.needsResizeNotify=function(){return!0};
A_5.prototype.needsResizeNotify=A_5.prototype.needsResizeNotify;A_5.prototype.bh=function(){return!0};A_5.prototype.isStreamingDisabled=function(){return this.yg};A_5.prototype.gh=function(a,b){var c=this.getComponent();a&&(c.getDragSource()||c.setDragSource(new A_cc(AdfDnDContext.ACTION_COPY,AdfDnDContext.ACTION_COPY)),A_Ob(c.getDragSource(),a));b&&(c.getDropTarget()||c.setDropTarget(new A_A),A_Pb(c.getDropTarget(),b))};
A_5.prototype.DomReplaceNotify=function(){var a=this.getComponent(),b=A_5.Xw(a.getClientId()),c=this;window.setTimeout(function(){c.pd(b)},0)};A_5.prototype.DomReplaceNotify=A_5.prototype.DomReplaceNotify;
A_5.prototype.ResizeNotify=function(a,b,c,d){A_5.superclass.ResizeNotify.call(a,b,c,d);var e=this.getComponent(),f=this.getDomElement();this.vg(e,c,d);"HTML5"==this.L(e)?this.Ch(e,f):e.getProperty("isDynamicResize")&&(c!=a||d!=b)&&(a=(new Date).getTime(),100<=a-this.nk||!this.TG)&&(this.TG=!0,this.Ua=c,this.mb=d,AdfPage.PAGE.isStreamingRequestPending(e.getClientId())||(c=new A_Qi(e,{fetchType:"initial_content"}),c.setPartial(!0),AdfPage.PAGE.queueEventToServer(c),this.nk=a))};
A_5.prototype.ResizeNotify=A_5.prototype.ResizeNotify;A_5.wL=function(){return DvtBaseMapManager?{mapUpdates:DvtBaseMapManager.bS,hierarchyUpdates:DvtBaseMapManager.cS}:null};A_a("AdfDhtmlThematicMapPeer.getUnprocessedMaps",A_5.wL);A_5.prototype.pd=function(a){A_Lb(this);this.c.render(a,this.Ua,this.mb);a=this.c.rL();A_Jb(this,a)};
A_5.Xw=function(a){var b=A_x.be(AdfDhtmlCommonFlashPeer.ee(a,"_xmlDiv")),c=document.getElementById(a+"::content"),d=b.areaLayers;if(d&&0<d.length)for(var c=c.children,e=0;e<c.length;e++)if(c[e].getAttribute("parent")==a){var f=c[e].getAttribute("layer");if(null!=f)for(var g=0;g<d.length;g++){if(d[g].layer==f){for(var f=c[e].children,h=0;h<f.length;h++){var l=f[h].getAttribute("type"),m=A_x.be(AdfDhtmlCommonFlashPeer.ee(f[h].id,"_xmlDiv"));"Fetching"!=m&&("area"==l?d[g].areaDataLayer=m:"point"==l&&
(d[g].pointDataLayers||(d[g].pointDataLayers=[]),d[g].pointDataLayers.push(m)))}break}}else b.pointDataLayers||(b.pointDataLayers=[]),b.pointDataLayers.push(A_x.be(AdfDhtmlCommonFlashPeer.Mp(c[e])))}return b};
A_5.prototype.HandleEvent=function(a){var b=a.type;if(b==dvt.Gf.TYPE)this.Zq(a);else if("viewportChange"==b){if(a=[a.panX,a.panY,a.zoom],b=this.getComponent())b.setProperty("panX",a[0]),b.setProperty("panY",a[1]),b.setProperty("zoom",a[2])}else b==dvt.oQ.TYPE?this.wc(a):A_5.superclass.HandleEvent.call(this,a)};A_5.prototype.HandleEvent=A_5.prototype.HandleEvent;
A_5.prototype.Zq=function(a){var b=A_y("clientId");if(b=AdfPage.PAGE.findComponent(b)){var c=a.getDisclosed();b.getPeer().setDisclosedRowKeys(c);a.mT()==dvt.Gf.kD&&b.getPeer().setSelectedRowKeys(c)}};A_5.prototype.Ff=function(a){var b=AdfPage.PAGE.findComponent(a.clientId);b&&(a=a.selection,b.getPeer().setSelectedRowKeys(a))};A_5.prototype.HandleSelectionEvent=A_5.prototype.Ff;
A_5.prototype.wc=function(a){var b=A_y("clientId"),b=AdfPage.PAGE.findComponent(b);a=new A_Ri(b,a.getRowKey(),a.getClientId());a.setPartial(!0);AdfPage.PAGE.queueEventToServer(a)};A_5.prototype.wf=function(a){if(a=a.getDescendantComponents())for(var b=0;b<a.length;b++){var c=a[b];if(("oracle.dss.adf.thematicMap.AreaDataLayer"==c.getComponentType()||"oracle.dss.adf.thematicMap.PointDataLayer"==c.getComponentType())&&(c=c.getPeer())&&c.wf())return!0}return!1};
A_5.Mj=function(a){for(a=a.getSource();a&&"oracle.dss.adf.thematicMap.ThematicMap"!=a.getComponentType();)a=a.getParent();return a?a.getPeer():null};A_5.oS=function(a){(a=A_5.Mj(a))&&a.c&&a.c.$S()};A_5.pS=function(a){(a=A_5.Mj(a))&&a.c&&a.c.aT()};A_5.nS=function(a){(a=A_5.Mj(a))&&a.c&&a.c.dispatchEvent(new dvt.Gf(dvt.Gf.$O))};A_5.mS=function(a){(a=A_5.Mj(a))&&a.c&&a.c.dispatchEvent(new dvt.Gf(dvt.Gf.ZO))};A_5.yS=function(a){(a=A_5.Mj(a))&&a.c&&a.c.dispatchEvent(new dvt.Gf(dvt.Gf.kD))};
A_5.prototype.getDefaultDragRecognizer=function(){return new A_5b};
A_5.prototype.ra=function(a){var b=this.getComponent();if("PNG"==b.L()&&(b=b.getClientId(),a.isLeftButtonPressed())){var c=a.getNativeEvent();a=AdfAgent.AGENT;var d=a.getEventTarget(c),c="true"==d.getAttribute("show"),d="true"==d.getAttribute("hide");if(c||d){var e=AdfRichUIPeer.CreateSubId(b,"show"),f=AdfRichUIPeer.CreateSubId(b,"hide"),e=a.getElementById(e),f=a.getElementById(f),g=AdfRichUIPeer.CreateSubId(b,"legend"),g=a.getElementById(g),b=a.getElementById(b+"_legendDisclosureDiv");c?(e.style.display=
"none",f.style.display="inline",g.style.display="inline",b.style.right=b.getAttribute("rightVal"),b.style.left=b.getAttribute("leftVal")):d&&(e.style.display="inline",f.style.display="none",g.style.display="none",b.setAttribute("rightVal",b.style.right),b.setAttribute("leftVal",b.style.left),b.style.right&&(b.style.right="0px"),b.style.left&&(b.style.left="0px"))}}};A_5.prototype.HandleComponentClick=A_5.prototype.ra;A_a("AdfDhtmlThematicMapPeer.prototype.HandleComponentClick",A_5.prototype.ra);
A_5.prototype.Ch=function(a,b){var c=a.getClientId(),d=null;if(!this.c){var d=A_5.Xw(c),e=new dvt.Rt(b,c),f=this.HandleEvent;this.c=new dvt.HR(e,f,this);this.c.setId(c);e.getStage().addChild(this.c);(c=AdfDhtmlCommonFlashPeer.ee(a.getClientId(),"_translationsDiv"))&&(c=A_x.be(c))&&dvt.Hi.es(c)}AdfAgent.getAgent().getPlatform()==AdfAgent.GECKO_PLATFORM?(f=this.createCallback(this.pd),window.setTimeout(f,0,d)):this.pd(d);this.wf(a)&&A_Kb(this)};
A_5.prototype.vg=function(a,b,c){this.Ua=b;this.mb=c;a.setProperty(AdfRichThematicMap.Vf,c);a.setProperty(AdfRichThematicMap.Wf,b)};A_5.prototype.B=function(){return null==this.c?null:this.c.Vb()};A_5.prototype.jc=function(){return null==this.c?null:this.c.ao().jc()};