var A_6=AdfRichUIPeer.createPeerClass(AdfDhtmlCommonFlashPeer,"AdfDhtmlThematicMapPeer",A_c);A_h("AdfDhtmlThematicMapPeer",A_6);AdfPage.PAGE.getLookAndFeel().registerPeerConstructor("oracle.dss.adf.thematicMap.ThematicMap","AdfDhtmlThematicMapPeer");A_6.fO="selection";A_6.eO="disclosed";
A_6.InitSubclass=function(){AdfObject.ensureClassInitialization(A_6);AdfRichUIPeer.addSuppressedPPRAttributes(this,"panX");AdfRichUIPeer.addSuppressedPPRAttributes(this,"panY");AdfRichUIPeer.addSuppressedPPRAttributes(this,"zoom");AdfRichUIPeer.addSuppressedPPRAttributes(this,AdfRichThematicMap.Hf);AdfRichUIPeer.addSuppressedPPRAttributes(this,AdfRichThematicMap.Gf);AdfRichUIPeer.addComponentEventHandlers(this,AdfUIInputEvent.CLICK_EVENT_TYPE);AdfRichUIPeer.addSuppressedPPRAttributes(this,dvt.ce.Fo);
AdfRichUIPeer.addSuppressedPPRAttributes(this,dvt.yi.CONTROL_PANEL_BEHAVIOR_KEY)};A_h("AdfDhtmlThematicMapPeer.InitSubclass",A_6.InitSubclass);
A_6.prototype.InitDomElement=function(a,b){A_6.superclass.InitDomElement.call(this,a,b);this.Qj=(new Date).getTime();this.jg=AdfPage.PAGE.isStreamingDisabled?AdfPage.PAGE.isStreamingDisabled():A_c;if(a.getProperty(AdfDhtmlCommonFlashPeer.Wu)&&"HTML5"==this.I(a)){var c=AdfAgent.AGENT.getComputedStyle(b);this.gg(a,Number(c.width.substring(0,c.width.length-2)),Number(c.height.substring(0,c.height.length-2)));this.mh(a,b)}};A_6.prototype.needsResizeNotify=A_f(A_b);
A_h("AdfDhtmlThematicMapPeer.prototype.needsResizeNotify",A_6.prototype.needsResizeNotify);A_6.prototype.Mg=A_f(A_b);A_6.prototype.isStreamingDisabled=A_aa("jg");A_6.prototype.Qg=function(a,b){var c=this.getComponent();a&&(c.getDragSource()||c.setDragSource(new A_dc(AdfDnDContext.ACTION_COPY,AdfDnDContext.ACTION_COPY)),A_Qb(c.getDragSource(),a));b&&(c.getDropTarget()||c.setDropTarget(new A_H),A_Rb(c.getDropTarget(),b))};
A_6.prototype.DomReplaceNotify=function(){var a=this.getComponent();if(!AdfPage.PAGE.isScreenReaderMode()){var b=A_6.iw(a.getClientId()),c=this;window.setTimeout(function(){c.gd(b)},0)}};A_h("AdfDhtmlThematicMapPeer.prototype.DomReplaceNotify",A_6.prototype.DomReplaceNotify);
A_6.prototype.ResizeNotify=function(a,b,c,d){A_6.superclass.ResizeNotify.call(a,b,c,d);var e=this.getComponent(),f=this.getDomElement();this.gg(e,c,d);if("HTML5"==this.I(e))this.mh(e,f);else if(e.getProperty("isDynamicResize")&&(c!=a||d!=b))if(a=(new Date).getTime(),100<=a-this.Qj||!this.ZF)this.ZF=A_b,this.La=c,this.eb=d,AdfPage.PAGE.isStreamingRequestPending(e.getClientId())||(c=new A_Vi(e,{fetchType:"initial_content"}),c.setPartial(A_b),AdfPage.PAGE.queueEventToServer(c),this.Qj=a)};
A_h("AdfDhtmlThematicMapPeer.prototype.ResizeNotify",A_6.prototype.ResizeNotify);A_6.FK=function(){return DvtBaseMapManager?{mapUpdates:DvtBaseMapManager.oR,hierarchyUpdates:DvtBaseMapManager.pR}:A_};A_h("AdfDhtmlThematicMapPeer.getUnprocessedMaps",A_6.FK);A_6.prototype.gd=function(a){A_Nb(this);this.c.render(a,this.La,this.eb);a=this.c.AK();A_Lb(this,a)};
A_6.iw=function(a){var b=A_E.Td(AdfDhtmlCommonFlashPeer.Wd(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(f!=A_)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_E.Td(AdfDhtmlCommonFlashPeer.Wd(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_E.Td(AdfDhtmlCommonFlashPeer.fp(c[e])))}return b};A_6.prototype.HandleEvent=function(a){var b=a.type;if(b==dvt.sf.TYPE)this.qq(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.pP.TYPE?this.oc(a):A_6.superclass.HandleEvent.call(this,a)};
A_h("AdfDhtmlThematicMapPeer.prototype.HandleEvent",A_6.prototype.HandleEvent);A_6.prototype.qq=function(a){var b=A_F("clientId");if(b=AdfPage.PAGE.findComponent(b)){var c=a.getDisclosed();b.getPeer().setDisclosedRowKeys(c);a.aT()==dvt.sf.sC&&b.getPeer().setSelectedRowKeys(c)}};A_6.prototype.rf=function(a){var b=AdfPage.PAGE.findComponent(a.clientId);b&&(a=a.selection,b.getPeer().setSelectedRowKeys(a))};A_h("AdfDhtmlThematicMapPeer.prototype.HandleSelectionEvent",A_6.prototype.rf);
A_6.prototype.oc=function(a){var b=A_F("clientId"),b=AdfPage.PAGE.findComponent(b);a=new A_Wi(b,a.getRowKey(),a.getClientId());a.setPartial(A_b);AdfPage.PAGE.queueEventToServer(a)};A_6.prototype.hf=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())if((c=c.getPeer())&&c.hf())return A_b}return A_c};
A_6.rj=function(a){for(a=a.getSource();a&&"oracle.dss.adf.thematicMap.ThematicMap"!=a.getComponentType();)a=a.getParent();return a?a.getPeer():A_};A_6.HR=function(a){(a=A_6.rj(a))&&a.c&&a.c.NS()};A_6.IR=function(a){(a=A_6.rj(a))&&a.c&&a.c.OS()};A_6.GR=function(a){(a=A_6.rj(a))&&a.c&&a.c.dispatchEvent(new dvt.sf(dvt.sf.$N))};A_6.FR=function(a){(a=A_6.rj(a))&&a.c&&a.c.dispatchEvent(new dvt.sf(dvt.sf.ZN))};A_6.bS=function(a){(a=A_6.rj(a))&&a.c&&a.c.dispatchEvent(new dvt.sf(dvt.sf.sC))};
A_6.prototype.ia=function(a){var b=this.getComponent();if("PNG"==b.I()&&(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_h("AdfDhtmlThematicMapPeer.prototype.HandleComponentClick",A_6.prototype.ia);
A_h("AdfDhtmlThematicMapPeer.prototype.HandleComponentClick",A_6.prototype.ia);
A_6.prototype.mh=function(a,b){var c=a.getClientId(),d=A_;if(!this.c){var d=A_6.iw(c),e=new dvt.dt(b,c),f=this.HandleEvent;this.c=new dvt.LQ(e,f,this);this.c.setId(c);e.getStage().addChild(this.c);if(c=AdfDhtmlCommonFlashPeer.Wd(a.getClientId(),"_translationsDiv"))(c=A_E.Td(c))&&dvt.pi.rr(c)}AdfAgent.getAgent().getPlatform()==AdfAgent.GECKO_PLATFORM?(f=this.createCallback(this.gd),window.setTimeout(f,0,d)):this.gd(d);this.hf(a)&&A_Mb(this)};
A_6.prototype.gg=function(a,b,c){this.La=b;this.eb=c;a.setProperty(AdfRichThematicMap.Gf,c);a.setProperty(AdfRichThematicMap.Hf,b)};A_6.prototype.s=function(){return this.c==A_?A_:this.c.Mb()};A_6.prototype.cc=function(){return this.c==A_?A_:this.c.vn().cc()};