"undefined"==typeof AdfDhtmlDvtToolkitPeer&&AdfRichUIPeer.createPeerClass(AdfDhtmlCommonFlashPeer,"AdfDhtmlDvtToolkitPeer",A_c);AdfDhtmlDvtToolkitPeer.InitSubclass=function(){AdfObject.ensureClassInitialization(AdfDhtmlDvtToolkitPeer);AdfRichUIPeer.addSuppressedPPRAttributes(this,AdfDvtToolkitComponent.Hf);AdfRichUIPeer.addSuppressedPPRAttributes(this,AdfDvtToolkitComponent.Gf)};A_h("AdfDhtmlDvtToolkitPeer.InitSubclass",AdfDhtmlDvtToolkitPeer.InitSubclass);AdfDhtmlDvtToolkitPeer.ED="\x3cfetch/\x3e";
AdfDhtmlDvtToolkitPeer.prototype.InitDomElement=function(a,b){AdfDhtmlDvtToolkitPeer.superclass.InitDomElement.call(this,a,b);var c=AdfDhtmlDvtToolkitPeer.pG(a.getClientId());c&&(c=A_E.Td(c))&&dvt.pi.rr(c);if(c=AdfDhtmlDvtToolkitPeer.qG(a.getClientId()))if(c=A_E.Td(c)){var d={},e=document.createElement("div"),f;f="display:none;"+("font-family:"+A_Sb.$t+";");f+="font-size:"+A_Sb.KD+";";f+="color:"+A_Sb.zp+";";f+="font-weight:"+A_Sb.bu+";";f+="font-style:"+A_Sb.au+";";e.setAttribute("style",f);b.appendChild(e);
for(f=0;f<c.length;f++){var g=c[f],h=g[0],l=g[1];l&&(h=h+" "+l);l=document.createElement("div");l.className=h;l.setAttribute("style","display:none;");e.appendChild(l);for(h=2;h<g.length;h+=2){var m=l,n=g[h+1],p=new A_Tb(d,g[h]),q=A_a;n&&(q=(q=A_Sb[n])?q(m,p.getValue()):A_Sb.jJ(m,n));q!=A_&&!("string"==typeof q&&""==q.replace(/^\s+/g,""))&&p.setValue(q)}e.removeChild(l)}b.removeChild(e);this.fS=d}"ATTACHMENT"==this.I(a)&&this.kl(a);a.getProperty(AdfDhtmlCommonFlashPeer.Wu)&&"HTML5"==this.I(a)&&(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));AdfAgent.AGENT.getPlatform()!=AdfAgent.IE_PLATFORM&&(c=this.createCallback(this.Oo),this.Uv={touchend:c,mouseup:c},AdfAgent.AGENT.startMouseEventCapture(this.Uv))};A_h("AdfDhtmlDvtToolkitPeer.prototype.InitDomElement",AdfDhtmlDvtToolkitPeer.prototype.InitDomElement);
AdfDhtmlDvtToolkitPeer.prototype.ComponentRemoved=function(a){AdfDhtmlDvtToolkitPeer.superclass.ComponentRemoved.call(this,a);AdfAgent.AGENT.getPlatform()!=AdfAgent.IE_PLATFORM&&AdfAgent.AGENT.stopMouseEventCapture(this.Uv)};A_h("AdfDhtmlDvtToolkitPeer.prototype.ComponentRemoved",AdfDhtmlDvtToolkitPeer.prototype.ComponentRemoved);AdfDhtmlDvtToolkitPeer.prototype.Oo=function(){this.c&&(this.c.oy&&this.c.oy().ve)&&this.c.oy().ve()};
AdfDhtmlDvtToolkitPeer.prototype.ResizeNotify=function(a,b,c,d){AdfDhtmlDvtToolkitPeer.superclass.ResizeNotify.call(a,b,c,d);if(!this.getComponent().getProperty(AdfDhtmlCommonFlashPeer.TE))if(a=this.getComponent(),b=this.I(a),"HTML5"==b)if(this.c){if((c!=this.La||d!=this.eb)&&5<=Math.abs(this.La-c)+Math.abs(this.eb-d))this.gg(a,c,d),this.gd(a,A_)}else this.gg(a,c,d),this.mh(a,this.getDomElement());else if("PNG"==b){b=a.getProperty(AdfDvtToolkitComponent.Hf);var e=a.getProperty(AdfDvtToolkitComponent.Gf);
if(5<Math.abs(b-c)||5<Math.abs(e-d))this.gg(a,c,d),c=new A_Fb(a),c.setPartial(A_b),AdfPage.PAGE.queueEventToServer(c)}};A_h("AdfDhtmlDvtToolkitPeer.prototype.ResizeNotify",AdfDhtmlDvtToolkitPeer.prototype.ResizeNotify);AdfDhtmlDvtToolkitPeer.prototype.DomReplaceNotify=function(a){AdfDhtmlDvtToolkitPeer.superclass.DomReplaceNotify.call(a);a=this.getComponent();var b=AdfDhtmlDvtToolkitPeer.jw(a.getClientId());this.gd(a,b)};A_h("AdfDhtmlDvtToolkitPeer.prototype.DomReplaceNotify",AdfDhtmlDvtToolkitPeer.prototype.DomReplaceNotify);
AdfDhtmlDvtToolkitPeer.prototype.zb=A_d();A_h("AdfDhtmlDvtToolkitPeer.prototype.CreateView",AdfDhtmlDvtToolkitPeer.prototype.zb);A_g=AdfDhtmlDvtToolkitPeer.prototype;A_g.uo=function(){return[]};function A_Ub(a,b){var c=a.uo();if(b&&!(0>=c.length)){for(var d={},e=0;e<c.length;e++){var f=c[e];d[f]=b[f]}A_t(a,d)}}function A_t(a,b){if(!a.Zm&&"HTML5"==a.I(a.getComponent())&&(a.c.jS(b),!a.uv)){var c=a.createCallback(a.PF);window.setTimeout(c,0);a.uv=A_b}}
A_g.gg=function(a,b,c){this.La=b;this.eb=c;a.setProperty(AdfDvtToolkitComponent.Gf,c);a.setProperty(AdfDvtToolkitComponent.Hf,b)};
A_g.mh=function(a,b){var c=a.getClientId(),d=new dvt.dt(b,c);d.GT();d.yU({numberConverterFactory:{createConverter:function(a){return"percent"==a.style?(a=dvt.pi.getTranslatedString(dvt.pi.QQ,"PERCENT_CONVERTER_"+a.maximumFractionDigits),A_qb.Nj(a)):A_}}});this.c=this.zb(d,this.HandleEvent,this);d.getStage().addChild(this.c);c=AdfDhtmlDvtToolkitPeer.jw(c);AdfAgent.AGENT.getPlatform()==AdfAgent.GECKO_PLATFORM?(d=this.createCallback(this.gd),window.setTimeout(d,0,a,c)):this.gd(a,c)};
A_g.PF=function(){this.yl();this.uv=A_c};A_g.gd=function(a,b){if(b===AdfDhtmlDvtToolkitPeer.ED)A_Mb(this);else if(A_Nb(this),"HTML5"==this.I(a)){A_E.Hn("0"+a.getClientId()+": Begin Render");var c=A_E.Td(b);c&&(c=dvt.DO.Vy());c=this.Ro(c);this.yl(c);A_E.Hn("0"+a.getClientId()+": End Render")}};A_g.yl=function(a){this.c.render(a,this.La,this.eb)};A_g.Ro=function(a){return a};AdfDhtmlDvtToolkitPeer.jw=function(a){return AdfDhtmlCommonFlashPeer.Wd(a,"_xmlDiv")};
AdfDhtmlDvtToolkitPeer.pG=function(a){return AdfDhtmlCommonFlashPeer.Wd(a,"_resourcesDiv")};AdfDhtmlDvtToolkitPeer.qG=function(a){return AdfDhtmlCommonFlashPeer.Wd(a,"_styleClassesDiv")};