var H=I.ea(wp,"AdfDhtmlInputFilePeer",!1);m("AdfDhtmlInputFilePeer",H);
H.C=function(){this.wFa="upBtn";this.gL="uplBtn";this.Vo="cnlBtn";this.Ht="rtBtn";this.aL="stpBtn";this.Wo="delBtn";this.yFa="upVal";this.fL="dlg";this.xFa="dlgCont";this.cCa="if";this.e0a="iff";this.RK="p";this.wea="da";this.MS="icn";this.$Ba="icn_ovr";this.A6a="t";this.ZDa="r";this.Dea="fn";this.B1="fs";this.IK="fd";this.pA="ff";this.IAa="dc";this.JAa="df";this.Ol="_afrProgressDet";this.Mw="_afrProgressIndet";this.Wfa="_afrProgressItemId";this.SS="maximumFiles";this.a5a="rows";this.Ida="autoHeightRows";
this.zFa="uploadType";this.aha="submit";this.$ga="auto";this.L7a="autoIfMultiple";this.M7a="manual";this.Ai="displayMode";this.GK="none";this.FK="dropArea";this.$i="_afrItemId";this.gT="_afrRowUploaded";this.UK="_afrFilename";this.YDa="_afrFilesize";this.mS="_adfFileBtn";this.K_a="dlgAddBtn";this.M_a="dlgUpdBtn";this.L_a="dlgDelBtn";this.O0a="UPDATE";this.M0a="ADD";this.N0a="DELETE";this.bL="none";this.A2="inline";this.Dga="visible";this.B2="hidden";this.Et="display";this.vE="visibility";this.r1=
"overflowY";this.g6a="af|inputFile::multiple-upload-drag";this.pT="af|inputFile::multiple-upload-dropzone";this.f2a="_afrFileSize";this.e2a="_afrDiskSpace";this.mF;I.ra(this,D.wb,Za.ua);this.Dp="old"!=A.c.H().qa("af|dialog-tr-button-type");this.Dp=!1};m("AdfDhtmlInputFilePeer.InitSubclass",H.C);
H.prototype.G=function(a,b){H.h.G.call(this,a,b);if(H.vx(a)){var d=q.b,e=A.c.H(),f=a.g(),g=I.j(f,H.RK),h=I.j(f,H.wea),l=I.j(g,H.MS),f=I.j(g,H.$Ba),g=d.getElementById(g),h=d.getElementById(h),l=d.getElementById(l),d=d.getElementById(f);l&&(this.gf=l);d&&(this.Ok=d);this.On=g;this.zF=h;this.Vk=[];this.Oj=a.K(H.Ida);this.Oj||(this.Oj=0);this.UX=H.lfb(a);this.wW=a.K(H.SS);this.Ag=a.K(H.a5a);a.getAutoSubmit()&&(a.setProperty("autoSubmit",!1,!1,G.ud),this.YT=!0);this.Cp="undefined"!=typeof File?!0:!1;void 0===
q.b.slice()?this.EL=!1:this.EL=!0;this.Yk="undefined"!=typeof FormData?!0:!1;(this.xu="draggable"in b&&this.Yk&&this.EL?!0:!1)&&!a.getDisabled()&&(this.gja=e.getStyleClass(H.g6a),null!=this.On?(q.b.ba(this.On,"dragenter",this.D(this.dLa)),q.b.ba(this.On,"dragleave",this.D(this.Hka)),q.b.ba(this.On,"dragover",this.D(this.fLa))):null!=this.zF&&(q.b.ba(this.zF,"dragenter",this.D(this.dLa)),q.b.ba(this.zF,"dragleave",this.D(this.Hka)),q.b.ba(this.zF,"dragover",this.D(this.fLa))));A.c.qUa(a,"always");
xp(this,a,b)}this.SIa=!1;this.s4=[]};r.a("AdfDhtmlInputFilePeer.prototype.InitDomElement",{G:H.prototype.G});H.prototype.ya=function(){return!0};r.a("AdfDhtmlInputFilePeer.prototype.needsResizeNotify",{ya:H.prototype.ya});H.prototype.Qe=function(a){var b=this.i();H.vx(a)&&xp(this,a,b)};r.a("AdfDhtmlInputFilePeer.prototype.resizeNotify",{Qe:H.prototype.Qe});H.prototype.Af=function(){};r.a("AdfDhtmlInputFilePeer.prototype.getConvertedValue",{Af:H.prototype.Af});
H.prototype.UO=function(){null==this.BJa&&(this.BJa=new fd(this.f()));return this.BJa};r.a("AdfDhtmlInputFilePeer.prototype.getFileUploadManager",{UO:H.prototype.UO});H.prototype.kc=function(){return this.CJa};r.a("AdfDhtmlInputFilePeer.prototype.getFileUploadUtils",{kc:H.prototype.kc});H.prototype.zc=function(a){return yp(this)?!1:H.h.zc.call(this,a)};r.a("AdfDhtmlInputFilePeer.prototype.isEmpty",{zc:H.prototype.zc});H.prototype.q$=function(){return 0<this.kc().qy().length?!1:!0};
r.a("AdfDhtmlInputFilePeer.prototype.isUploadQueueEmpty",{q$:H.prototype.q$});H.prototype.r$=function(){for(var a=this.kc().js(),b=0;b<a.length;b++)if(!a.item(b).$G)return!0;return!1};r.a("AdfDhtmlInputFilePeer.prototype.isUploadResultFailed",{r$:H.prototype.r$});H.prototype.fd=function(a,b){H.h.fd.call(this,a,b);if(a.K(H.Ai)!=H.GK){var d=null;H.vx(a)||(d=O.da(a,b),yp(this)&&(this.mF=d.cloneNode(!0)),I.ZB(H,d,"change"))}};r.a("AdfDhtmlInputFilePeer.prototype.LazyInitialize",{fd:H.prototype.fd});
H.prototype.Ff=function(){return!0};r.a("AdfDhtmlInputFilePeer.prototype.ComponentValueChanged",{Ff:H.prototype.Ff});H.prototype.fh=function(){var a=yp(this);null!=a?J.va(a):H.h.fh.call(this)};r.a("AdfDhtmlInputFilePeer.prototype.Focus",{fh:H.prototype.fh});H.prototype.Xd=function(a,b){var d=a.g(),d=I.j(d,H.yFa),d=q.b.getElementById(d);return null!=d?d:H.h.Xd.call(this,a,b)};r.a("AdfDhtmlInputFilePeer.prototype.GetNoteWindowAlignmentNode",{Xd:H.prototype.Xd});
H.prototype.M=function(a){H.h.M.call(this,a);var b=this.f(),d=b.o(),e=q.b,f=A.c;if(!b.getDisabled()&&a.ec()){a=a.U();var g=e.ca(a),h=e.getAttribute(g,H.$i),l=b.g(),n=I.j(l,H.wFa),t=I.j(l,H.gL),y=I.j(l,H.aL);if("LABEL"==e.Na(g))return this.focus(b),e.Ea(a),!0;if(g.id==n){d=I.j(l,H.fL);if(d=e.getElementById(d)){for(d=d.firstChild;d&&1!=d.nodeType;)d=d.nextSibling;if(null!=d&&(this.Vm(),f.Ne(l),0==b.getValid()&&b.setProperty("valid",!0),this.He(b,d,null,H.fL),!this.SIa)){this.SIa=!0;var z=zp(this);if(z&&
(b=Ui.hx(z,Ui.Gfa))){var B=this;e.ba(b,D.wb,function(){if(q.b.getElementById(z).getElementsByTagName("input")[0].value){f.Ne(l);var a=B.f();0==a.getValid()&&a.setProperty("valid",!0)}})}}}e.Ea(a);return!0}if(g.id==t)return f.Ne(l),Ap(this,b),e.Ea(a),!0;if(g.id==y)return H.YM(b,H.aL),"auto"!=this.UX&&H.S7(b,H.gL),d.kc().oH(!0),e.Ea(a),!0;if(null!=h){f.Ne(l);var n=H.En(l,h),t=I.j(n,H.Vo),y=I.j(n,H.Wo),F=I.j(n,H.Ht);if(g.id==t)d.kc().bC(!1);else if(g.id==y){b=e.getElementById(y);if(null!=b&&b.getAttribute("disabled"))return;
b=e.getElementById(n);(g=e.getAttribute(b,H.gT))&&"false"!=g?d.kc().wH(e.getAttribute(b,H.UK)):d.kc().hy(e.getAttribute(b,H.UK))}else g.id!=F||null==this.rM(h)||this.rM(h).$G||(d.kc().Upa(this.rM(h)),H.lg(b,H.Ht,h),H.ao(b,H.Wo,h),H.lg(b,H.Vo,h),H.lg(b,H.pA,h),Bp(this,h),d.kc().td()||H.fY(b));e.Ea(a);return!0}null!=g.getAttribute(H.mS)&&(e=g.getAttribute(H.mS),a=this.U4(b))&&(e==H.M_a?a.value=H.O0a:e==H.K_a?a.value=H.M0a:e==H.L_a&&(a.value=H.N0a))}};
r.a("AdfDhtmlInputFilePeer.prototype.HandleComponentClick",{M:H.prototype.M});function zp(a){a=a.f().g();return H.Dp?a+"_"+H.xFa:I.j(a,H.xFa)}
H.prototype.eg=function(a){var b=this.f(),d=a.ll(),e=q.b;this.IZ(b,this.QY(b));if(b.getValid()){if(d==Za.Zm){b.g();var d=zp(this),f=e.getElementById(d).getElementsByTagName("input")[0];if(f.value){var d=I.j(b.g(),H.yFa),d=e.getElementById(d),f=f.value,g=-1;if(0<=(g=f.lastIndexOf("\\"))||0<=(g=f.lastIndexOf("/")))f=f.substr(g+1);"INPUT"==q.b.Na(d)?d.value=f:e.bc(d,f);Cp(this,b,f)}else return}else d==Za.Mo&&(b=O.da(b,this.i()),d=b.parentNode,d.removeChild(b),d.appendChild(this.mF),e.Ia(this.mF),this.mF=
this.mF.cloneNode(!0));a.cancel();this.Jb(this.f(),H.fL)}};r.a("AdfDhtmlInputFilePeer.prototype.HandleComponentDialog",{eg:H.prototype.eg});H.prototype.Yb=function(a){var b=a.U(),b=q.b.na(b),d=O.da(this.f());A.c.wd==d&&b!==w.tf&&a.cancel();b==w.jb&&(q.b.S()==q.ia?v.l.info("Due to a bug in IE, the enter key press will not invoke the 'Choose File to Upload' dialog."):a.X().click())};r.a("AdfDhtmlInputFilePeer.prototype.HandleComponentKeyPress",{Yb:H.prototype.Yb});
function Dp(a,b){var d=a.f();if(b&&b.files&&1===b.files.length&&b.files[0]instanceof File&&void 0!==b.files[0].size){var e=b.files[0].size;if(!Ep.Nva(d,e,e,function(a){A.c.bo(d.g(),a)}))return!1}return!0}
H.prototype.JJ=function(a,b){var d=q.b,e=q.b.ca(b);a.focus();this.IZ(a,this.QY(a));if(a.getValid())if(H.vx(a))if(this.Yk&&this.Cp){for(var d=e.files,f=0;f<d.length;f++)g=d[f],this.kc().Ur(g);this.WL!=H.GK&&Fp(this.kc(),e)}else this.kc().Ur(e);else{d.S()==q.ia&&(d=yp(this),f=O.da(a),(null==d?f:d).select());var g=e.value;Dp(this,e)&&Cp(this,a,g)}};r.a("AdfDhtmlInputFilePeer.prototype.HandleDomChange",{JJ:H.prototype.JJ});
H.prototype.mca=function(a,b){var d=q.b,e=b.dataTransfer.files;this.IZ(a,this.QY(a));if(a.getValid()){if(e)for(var f=0;f<e.length;f++){var g=e[f];this.kc().Ur(g)}this.WL!=H.GK&&this.Hka(b);d.Ea(b)}};r.a("AdfDhtmlInputFilePeer.prototype.HandleDomDrop",{mca:H.prototype.mca});H.prototype.kta=function(){if(A.c.sx)return!1;var a=this.kc().js();if(null!=a)for(var b=0;b<a.length;b++)if(a.item(b).$G)return!0;return this.kc().td()};r.a("AdfDhtmlInputFilePeer.prototype.isDataDirty",{kta:H.prototype.kta});
H.prototype.l$=function(){return H.vx(this.f())};r.a("AdfDhtmlInputFilePeer.prototype.isMultipleUpload",{l$:H.prototype.l$});H.prototype.ob=function(a,b,d){H.h.ob.call(this,a,b);if(d==H.fL){d=a.g();d=I.j(d,H.fL);d=q.b.getElementById(d);var e=yp(this);J.va(e);d&&d.appendChild(b);H.vx(a)||(a=O.da(a))&&Dp(this,a)}};r.a("AdfDhtmlInputFilePeer.prototype.PopupClosed",{ob:H.prototype.ob});H.prototype.Wq=function(){return!0};r.a("AdfDhtmlInputFilePeer.prototype.VetoBlurValidation",{Wq:H.prototype.Wq});
H.prototype.Te=function(a){return this.Za(a,H.fL)?!0:H.h.Te.call(this)};r.a("AdfDhtmlInputFilePeer.prototype.VetoShowNoteWindow",{Te:H.prototype.Te});
function xp(a,b,d){var e=q.b,f=b.g();a.CJa||(a.CJa=new Ep(a,b,d));1!=Ep.bW(b)||a.yG||(a.yG=Ep.IKa(b),a.yG.addEventListener(Xb.Hl,a.D(a.Nka)),a.yG.addEventListener(Zb.IR,a.D(a.sgb)));a.WL=b.K(H.Ai);if(a.WL!=H.GK)if(a.WL==H.FK){var g=I.j(f,H.wea),e=e.getElementById(g);Gp(a,b);Hp(a,g,e.offsetWidth,e.offsetHeight)}else{var g=I.j(f,H.RK),h=a.gf.children[0].height;"auto"==a.UX&&H.YM(b,H.gL);H.YM(b,H.aL);for(var l=0;l<a.Oj;l++){var n=H.En(f,l),n=e.getElementById(n);if(null!=n){var t=e.getAttribute(n,H.$i);
null==t&&H.ahb(b,l)}}H.lg(b,H.Mw,null);H.lg(b,H.Vo,null);H.lg(b,H.Ht,null);H.lg(b,H.IK,null);t=H.En(f,null);n=e.getElementById(t);l=0;0<n.offsetWidth&&(l=n.offsetWidth);!a.Slb&&0<n.offsetHeight&&(a.Slb=n.offsetHeight);a.AL||(0<a.Oj?0<n.offsetHeight&&(a.AL=n.offsetHeight*a.Oj):a.AL=0);0<l&&H.Vx(t,H.Et,H.bL);a.AL&&0<a.AL&&a.AL>h?a.bN=a.AL:0<h&&(a.bN=h);H.Vx(g,H.r1,"scroll");t=a.On.offsetWidth-a.On.clientWidth;if(0<l)0===t?(l=I.j(f,"pane"),a.Gr=e.getElementById(l).offsetWidth):a.Gr=l+t;else if(b.getVisible()&&
(!a.Gr||0==a.Gr||!a.bN)){setTimeout(function(){xp(a,b,d)},1E3);return}H.Vx(g,H.r1,"auto");t=e.getAttribute(a.On,H.$i);a.u9a||(a.kc().addEventListener(fd.Qv,function(b){if(null!=b.Sp()){var d=b.Sp().Bf();b=b.Vp();var e=a.f(),d=Ip(a,d).getAttribute(H.$i),d=A.c.m(H.sV(e,d));null!=d&&d.o().uda(b)}}),a.kc().addEventListener(fd.Ng,function(b){if(b.tj()==fd.vw&&b.se()!=fd.Gba){var d=b.Sp().Bf(),e=b.se()==fd.Aj,f=q.b;b=a.f();var d=Ip(a,d),g=d.getAttribute(H.$i);e?(H.YF(b,H.Ol,g),H.YF(b,H.Mw,g),H.ao(b,H.IK,
g),H.lg(b,H.Vo,g),H.ao(b,H.Wo,g),e=q.b,g=H.yg(b,H.Wo,g),e=e.getElementById(g),null!=e&&(e.setAttribute("disabled","disabled"),a.s4.push(g)),f.setAttribute(d,H.gT,"true"),A.c.NUa(!0)):(H.lg(b,H.Vo,g),H.ao(b,H.Ht,g),H.YF(b,H.Ol,g),H.ao(b,H.pA,g));H.fY(b)}else b.tj()==fd.mt?(f=b.Sp().Bf(),b=b.se()==fd.Aj,d=a.f(),f=Ip(a,f),b&&H.GOa(d,f)):b.tj()==fd.Lo?Jp(a,b.Sp().Bf(),b.se()==fd.Aj,!0):b.tj()==fd.v0&&Jp(a,b.Sp().Bf(),b.se()==fd.Aj,!1)}),a.kc().addEventListener(fd.Jh,function(d){if(d.jsa()==fd.Ez){var e=
d.Sp();d.tj()==fd.mt?H.GOa(b,Ip(a,e.Bf())):d.tj()==fd.bE&&(null!=d.getMessage()?(d=d.getMessage(),db.bqa(f,b,d)):(d=H.j9a(b,e.Bf(),e.Jra(),e.jl()),a.Vk.push(d)))}}),a.u9a=!0);Gp(a,b);if(null!=t)for(l=0;l<=t;l++)if(n=H.En(f,l),n=e.getElementById(n),H.lg(b,H.Vo,l),H.lg(b,H.Ht,l),H.YF(b,H.Ol,l),H.lg(b,H.Mw,l),H.lg(b,H.pA,l),g=H.kM(b,H.Wo,l),e.setAttribute(g,H.$i,l),g=e.getAttribute(n,H.UK),h=e.getAttribute(n,H.YDa),a.Vk.push(n),"true"==e.getAttribute(n,H.gT)){n=!0;if(null==h||0>h)n=!1,H.ao(b,H.pA,l),
H.lg(b,H.IK,l),H.lg(b,H.B1,l);H.k3(b,new fd.Kba(l,g,h,null,n))}a.Gr&&0<a.Gr&&Kp(b)}}function Kp(a){var b=q.b,d=A.c.H(),e=a.o();a=a.g();a=I.j(a,H.RK);var f=I.j(a,H.MS),g=b.getElementById(a),f=b.getElementById(f);H.Wx(g,"height:"+e.bN+"px;width:"+e.Gr+"px;overflow-y:hidden");Hp(e,a,e.Gr,e.bN);e.Cla=0<e.Oj?e.Oj:0;e.xu&&C.w(g,d.getStyleClass(H.pT));if(0<Lp(e.kc())||!e.xu)f&&f.parentNode&&(f.parentNode.removeChild(f),b.yc(f)),C.O(g,d.getStyleClass(H.pT))}
function Hp(a,b,d,e){var f=q.b,g=I.j(b,H.MS);b=I.j(b,H.$Ba);g=f.getElementById(g);b=f.getElementById(b);if(g){var h=g.children[0],l=h.width,h=h.height,n=e/2-h/2,n=0>n?0:n,t=d/2-l/2,t=0>t?0:t;a.WL==H.FK?H.Wx(g,"width:"+l+"px;height:"+h+"px;position:relative;top:"+n+"px;left:"+t+"px"):H.Wx(g,"width:"+l+"px;height:"+h+"px;position:absolute;top:"+n+"px;left:"+t+"px")}b&&(h=b.children[0],l=h.width,h=h.height,n=e/2-h/2,n=0>n?0:n,t=d/2-l/2,t=0>t?0:t,a.WL==H.FK?H.Wx(b,"width:"+l+"px;height:"+h+"px;position:relative;top:"+
n+"px;left:"+t+"px"):H.Wx(b,"width:"+l+"px;height:"+h+"px;position:absolute;top:"+n+"px;left:"+t+"px"),b&&b.parentNode&&(b.parentNode.removeChild(b),f.yc(b)))}function Ip(a,b){var d=q.b;if(a.Vk)for(var e=0;e<a.Vk.length;e++)if(d.getAttribute(a.Vk[e],H.UK)==b)return a.Vk[e];return null}k=H.prototype;k.U4=function(a){a=I.j(a.g(),"hiddendata");return q.b.getElementsByName(a)[0]};function yp(a){a=a.f().g();a=I.j(a,H.wFa);return q.b.getElementById(a)}
k.rM=function(a){for(var b=this.kc().js(),d=0;d<b.length;d++)if(b.item(d).jl()==a)return b.item(d);return null};k.dLa=function(a){var b=q.b;if(null!=a&&!this.A4){var d=null==this.On?this.zF:this.On;C.w(d,this.gja);this.Ok&&this.xu&&(this.gf&&this.gf.parentNode&&(this.gf.parentNode.removeChild(this.gf),b.yc(this.gf)),d.appendChild(this.Ok),b.Ia(this.Ok));this.A4=!0}b.Ea(a)};
k.Hka=function(a){var b=q.b;if(null!=a){var d=null==this.On?this.zF:this.On,e=Lp(this.kc());C.O(d,this.gja);this.gf&&(0<e?(this.gf.parentNode&&(this.gf.parentNode.removeChild(this.gf),b.yc(this.gf)),this.Ok.parentNode&&(this.Ok.parentNode.removeChild(this.Ok),b.yc(this.Ok))):this.gf&&this.xu&&(d.appendChild(this.gf),b.Ia(this.gf)));this.A4=!1}b.Ea(a)};
k.fLa=function(a){var b=q.b;if(null!=a&&!this.A4){var d=null==this.On?this.zF:this.On;C.w(d,this.gja);this.Ok&&this.xu&&(this.gf&&this.gf.parentNode&&(this.gf.parentNode.removeChild(this.gf),b.yc(this.gf)),d.appendChild(this.Ok),b.Ia(this.Ok));this.A4=!0}b.Ea(a)};function Cp(a,b,d){var e=-1;if(d&&0<=(e=d.lastIndexOf("\\"))||0<=(e=d.lastIndexOf("/")))d=d.substr(e+1);d&&" "==d.charAt(0)?(b.setProperty("valid",!1),db.g8(b.g())):a.cc(b,d)}
k.Nka=function(){this.f().g();var a=this.vU;null!=a&&(this.ON=!0,this.tub(a,!0,!0),Mp(this));this.kc().Eva()};k.sgb=function(){xp(this,this.f(),this.i())};function Jp(a,b,d,e){var f=a.f();b=Ip(a,b).getAttribute(H.$i);d?(a.Wna(b),Mp(a)):(H.ao(f,H.Wo,b),H.lg(f,H.Vo,b));e&&H.fY(f)}k.Wna=function(a){var b=q.b,d=this.f();0==d.getValid()&&d.setProperty("valid",!0);for(d=0;d<this.Vk.length;d++)if(this.Vk[d].getAttribute(H.$i)==a){this.kc().hy(b.getAttribute(this.Vk[d],H.UK));break}};
function Gp(a,b){var d=b.g(),e=null;if(a.Koa)e=a.Koa;else{a.Koa=[];var e=a.Koa,f=null;b.K(H.Ai)==H.FK?(f=I.j(d,H.wea),e.dropAreaId=f,e.fallbackInputId=I.j(d,H.e0a)):f=I.j(d,H.RK);b.K(H.Ai)!=H.FK&&(e.inputId=I.j(d,H.cCa));e.dropAreaId=f}a.kc().load(e)}function Bp(a,b){var d=null,d=a.Cp&&a.Yk?H.Ol:H.Mw;H.Pmb(a.f(),d,b)}
function Ap(a,b,d){var e=q.b,f=b.g();if(Lp(a.kc())>a.wW&&0<a.wW)db.mY(f,b,"af_inputFile.MSG_UPLOAD_MAXIMUM_FILES_ERROR","af_inputFile.MSG_UPLOAD_MAXIMUM_FILES_ERROR_DETAIL");else{H.YM(b,H.gL);a.ON=!1;for(f=0;f<a.Vk.length;f++){var g=e.getAttribute(a.Vk[f],H.gT);g&&"false"!=g||(g=a.Vk[f].getAttribute(H.$i),Bp(a,g))}H.S7(b,H.aL);null!=d?H.wu(b,d):H.fY(b)}}H.k3=function(a,b){var d=a.o();0==a.getValid()&&a.setProperty("valid",!0);d.rM(b.jl())||d.kc().Vpa(b)};
H.j9a=function(a,b,d,e){var f=q.b,g=A.c.H(),h=a.o(),l=h.R(),n=a.g(),t=H.UKa(n);h.gf&&h.gf.parentNode&&(h.gf.parentNode.removeChild(h.gf),f.yc(h.gf),C.O(t,g.getStyleClass(H.pT)));h.Ok&&h.Ok.parentNode&&(h.Ok.parentNode.removeChild(h.Ok),f.yc(h.Ok),C.O(t,g.getStyleClass(H.pT)));null==e&&(e=f.getAttribute(t,H.$i),e=null!=e?parseInt(e)+1:0);f.setAttribute(t,H.$i,e);n=H.En(n,e);n=f.getElementById(n);null==n&&(n=H.Cbb(a,e));H.Qmb(a,e);var y=H.kM(a,H.Vo,e),z=H.kM(a,H.Wo,e),B=H.kM(a,H.Ht,e);f.setAttribute(n,
H.$i,e);f.setAttribute(n,H.UK,b);f.setAttribute(y,H.$i,e);f.setAttribute(z,H.$i,e);f.setAttribute(B,H.$i,e);f.setAttribute(y,"aria-label",g.Z("af_inputFile.LABEL_FILE_CANCEL_BUTTON_ACC",b));f.setAttribute(z,"aria-label",g.Z("af_inputFile.LABEL_FILE_CANCEL_BUTTON_ACC",b));f.setAttribute(B,"aria-label",g.Z("af_inputFile.LABEL_FILE_RETRY_BUTTON_ACC",b));g=H.kM(a,H.Dea,e);y=H.kM(a,H.B1,e);z=l.createElement("a");g.appendChild(z);z.setAttribute("title",b);16<b.length?z.appendChild(l.createTextNode(b.substr(0,
15)+"...")):z.appendChild(l.createTextNode(b));null!=d&&(y.appendChild(l.createTextNode(H.peb(d))),f.setAttribute(n,H.YDa,d));f.setAttribute(n,H.gT,"false");H.ao(a,H.Wo,e);H.lg(a,H.Vo,e);H.lg(a,H.Ht,e);H.lg(a,H.IK,e);H.lg(a,H.pA,e);h.Cp&&h.Yk?(H.lg(a,H.Mw,e),h.kc().td()||H.YF(a,H.Ol,e)):(H.lg(a,H.Ol,e),H.ao(a,H.Mw,e),h.kc().td()||H.YF(a,H.Mw,e));a=Lp(h.kc())+1;b=n.offsetHeight;d=a*parseInt(b);a>h.Cla&&a<=h.Ag?(d=1==a?parseInt(b):a*parseInt(b),H.Wx(t,"height:"+d+"px;width:"+h.Gr+"px;overflow-y:hidden")):
a>h.Ag&&(d=h.Ag*parseInt(b),H.Wx(t,"height:"+d+"px;width:"+h.Gr+"px;overflow-y:auto;margin-right: 0px;"));return n};
H.Cbb=function(a,b){var d=q.b,e=a.g(),f=H.En(e,null),g=d.getElementById(f),h=H.En(e,b),l=g.cloneNode(g),n=H.yg(a,H.Dea,null),t=H.yg(a,H.B1,null),y=H.yg(a,H.IK,null),z=H.yg(a,H.pA,null),B=H.yg(a,H.Vo,null),F=H.yg(a,H.Wo,null),K=H.yg(a,H.Ht,null),P=H.yg(a,H.Ol,null),Q=H.yg(a,H.Mw,null);d.setAttribute(g,"id",h);d.setAttribute(g,H.$i,b);var da=H.yg(a,H.Dea,b),ba=H.yg(a,H.B1,b),ta=H.yg(a,H.IK,b),Ha=H.yg(a,H.pA,b),Eb=H.yg(a,H.Vo,b),fb=H.yg(a,H.Wo,b),Ya=H.yg(a,H.Ht,b),e=e+H.Ol+b,Lb=H.yg(a,H.Mw,b),n=d.getElementById(n),
t=d.getElementById(t),y=d.getElementById(y),Kc=d.getElementById(z),z=d.getElementById(P),Q=d.getElementById(Q),B=d.getElementById(B),F=d.getElementById(F),K=d.getElementById(K);d.setAttribute(n,"id",da);d.setAttribute(t,"id",ba);d.setAttribute(y,"id",ta);d.setAttribute(Kc,"id",Ha);d.setAttribute(B,"id",Eb);d.setAttribute(F,"id",fb);d.setAttribute(K,"id",Ya);d.setAttribute(z,"id",e);d.setAttribute(z,H.Wfa,e);d.setAttribute(Q,"id",Lb);da=I.j(P,Np.cT);ta=I.j(P,"content");Ha=I.j(e,Np.cT);ba=I.j(e,"content");
da=d.getElementById(da);d.setAttribute(da,"id",Ha);ta=d.getElementById(ta);d.setAttribute(ta,"id",ba);d=A.c.m(P);P=d.clone(e);P.Init(d.getComponentType(),e);A.c.CZ(P.g(),P);q.b.Ia(z);q.b.Ia(da);q.b.Ia(ta);P.HQ();g.parentNode.appendChild(l);q.b.Ia(l);q.b.Ia(g);H.Vx(f,H.Et,H.bL);H.Vx(h,H.Et,null);return g};
H.peb=function(a){var b=A.c.H(),d=b.Z("af_inputFile.TEXT_FILE_SIZE_GB"),e=b.Z("af_inputFile.TEXT_FILE_SIZE_MB"),f=b.Z("af_inputFile.TEXT_FILE_SIZE_KB"),b=[b.Z("af_inputFile.TEXT_FILE_SIZE_B"),f,e,d],d=null;return 0<a?(e=Math.floor(Math.log(a)/Math.log(1024)),d=3<e?b[3]:b[e],(a/Math.pow(1024,Math.floor(e))).toFixed(2)+" "+d):null!=a?a+" "+b[0]:null};H.kM=function(a,b,d){return q.b.getElementById(this.yg(a,b,d))};H.yg=function(a,b,d){var e=a.g(),e=H.En(e,d),f=null;return f=b!=H.Ol?I.j(e,b):H.sV(a,d)};
H.sV=function(a,b){var d=a.g(),e=q.b,f=a.o().R(),g=null,g=null!=b?f.querySelector("["+H.Wfa+"\x3d'"+d+H.Ol+b+"']"):f.querySelector("["+H.Wfa+"\x3d'"+d+H.Ol+"']");return e.getAttribute(g,"id")};H.lfb=function(a){var b=a.K(H.zFa);a=a.K(H.SS);return H.$ga==b||(1>a||1<a)&&H.L7a==b?H.$ga:H.aha};H.En=function(a,b){var d=null,d=I.j(a,H.RK),d=I.j(d,H.A6a);return d=null!=b?I.j(d,H.ZDa)+b:I.j(d,H.ZDa)};H.UKa=function(a){var b=q.b;a=I.j(a,H.RK);return b.getElementById(a)};
H.YF=function(a,b,d){var e=q.b,f=null,f=b==H.Ol?H.sV(a,d):H.yg(a,b,d);null!=e.getElementById(f)&&H.l7(a,b,d,H.vE,H.B2)};H.Kub=function(a,b){var d=q.b,e=a.g(),e=H.En(e,b);null!=d.getElementById(e)&&H.m7(a,b,H.vE,H.B2)};H.ahb=function(a,b){var d=q.b,e=a.g(),e=H.En(e,b);null!=d.getElementById(e)&&H.Vx(e,H.vE,H.B2)};H.vx=function(a){var b=a.K(H.zFa),d=a.K(H.SS);return(1>d||1<d)&&H.aha!=b||1==d&&(H.$ga==b||H.M7a==b)||H.Thb(a)&&H.aha!=b?!0:!1};H.Thb=function(a){a=a.K(H.Ai);return a==H.GK||a==H.FK?!0:!1};
H.lg=function(a,b,d){var e=q.b,f=null,f=b==H.Ol?H.sV(a,d):H.yg(a,b,d);null!=e.getElementById(f)&&H.l7(a,b,d,H.Et,H.bL)};H.Oub=function(a,b){var d=q.b,e=a.g(),e=H.En(e,b);null!=d.getElementById(e)&&H.m7(a,b,H.Et,H.bL)};H.YM=function(a,b){H.xPa(a,b,H.bL)};
H.GOa=function(a,b){var d=q.b,e=a.o();if(b){var f=b.offsetHeight,g=b.getAttribute(H.$i),g=H.sV(a,g);b.parentNode.removeChild(b);d.yc(b);A.c.nz(g);for(d=0;d<e.Vk.length;d++)if(e.Vk[d]==b){e.Vk.splice(d,1);break}d=H.UKa(a.g());g=Lp(e.kc());if(g>e.Cla||0==e.Cla)f=g*parseInt(f),f>=e.bN?H.Wx(d,"height:"+f+"px;width:"+e.Gr+"px"):H.Wx(d,"height:"+e.bN+"px;width:"+e.Gr+"px");1>g&&(e.gf&&e.xu&&(d.appendChild(e.gf),f=A.c.H(),C.w(d,f.getStyleClass(H.pT))),H.YM(a,H.aL),"auto"!=e.UX&&H.S7(a,H.gL))}};
H.xPa=function(a,b,d){var e=H.Et;a=a.g();H.Vx(I.j(a,b),e,d)};H.Vx=function(a,b,d){a=q.b.getElementById(a);null==d&&(d="");if(null!=a)switch(b){case H.Et:a.style.display=d;break;case H.vE:a.style.visibility=d;break;case H.r1:a.style.overflowY=d}};H.Wx=function(a,b){var d=q.b;d.S()==q.ia?a.style.cssText=b:d.setAttribute(a,"style",b)};H.l7=function(a,b,d,e,f){var g=q.b,h=a.g(),h=H.En(h,d);null!=g.getElementById(h)&&H.Vx(this.yg(a,b,d),e,f)};
H.m7=function(a,b,d,e){var f=q.b;a=a.g();b=H.En(a,b);null!=f.getElementById(b)&&H.Vx(b,d,e)};H.Pmb=function(a,b,d){H.l7(a,b,d,H.vE,H.Dga)};H.Qmb=function(a,b){H.m7(a,b,H.vE,H.Dga)};H.ao=function(a,b,d){H.l7(a,b,d,H.Et,H.A2)};H.bvb=function(a,b){H.m7(a,b,H.Et,H.A2)};H.S7=function(a,b){H.xPa(a,b,H.A2)};
H.wu=function(a,b){var d=a.o(),e=d.kc().qy();d.gU=!1;if(0<e.length){for(var f=null,g=0;g<e.length;g++)if(e.item(g).Bf()==b){f=e.item(g);break}null!=f&&(e=f.jl(),(g=f.getData())&&d.Yk&&d.Cp&&g.size!=f.Jra()?(H.ao(a,H.pA,e),H.ao(a,H.Ht,e),H.YF(a,H.Ol,e),H.fY(a)):(d.kc().EI(f.Bf()),H.lg(a,H.Wo,e),H.ao(a,H.Vo,e)))}};
H.fY=function(a){var b=a.o(),d=b.kc().qy(),e=b.kc().js();b.gU=!1;if(0<d.length)b=d.item(0),H.wu(a,b.Bf());else{"auto"!=b.UX&&H.S7(a,H.gL);H.YM(a,H.aL);for(d=0;d<e.length;d++)if(!e.item(d).$G){var f=e.item(d).jl();H.ao(a,H.Wo,f)}Mp(b)}};function Mp(a){var b=q.b;for(i=0;i<a.s4.length;i++){var d=b.getElementById(a.s4[i]);null!=d&&d.removeAttribute("disabled")}a.s4=[]}H.prototype.IZ=function(a,b){var d=a.K("validators");a.setProperty("valid",!0);d&&0<d.length&&(A.c.Ne(a.g()),this.dA(a,b))};
r.a("AdfDhtmlInputFilePeer.prototype.preValidate",{IZ:H.prototype.IZ});H.prototype.dA=function(a,b){if(a.getValid()){var d=a.Pb(b);d&&a.getRequired()&&(Op(a),a.setProperty("valid",!1));if(!d||A.c.gY)if(d=a.K("validators"),null!=d)for(var e=0;e<d.length;e++){var f=d[e];try{f.Wi(b,a.K("label"),a.getConverter())}catch(g){a.setProperty("valid",!1),Pp(a,g.Svb(),a.getLabel())}}}};r.a("AdfDhtmlInputFilePeer.prototype.ValidateValue",{dA:H.prototype.dA});
H.prototype.QY=function(a){var b=null;H.vx(a)?(a=I.j(a.g(),H.cCa),b=q.b.getElementById(a)):b=O.da(this.f());return b.files||E.wD};r.a("AdfDhtmlInputFilePeer.prototype.getFileList",{QY:H.prototype.QY});H.prototype.Ba=function(){};r.a("AdfDhtmlInputFilePeer.prototype.SetDisplayValue",{Ba:H.prototype.Ba});H.prototype.mH=function(a){var b=new Wg(a);b.Xc(!0);b.H$();a.Hg(b)};r.a("AdfDhtmlInputFilePeer.prototype.autoSubmit",{mH:H.prototype.mH});