function Yh(){Yh.h.constructor.call(this,"time")}m("AdfDhtmlChooseDateTimeSelectionPanel",Yh);r.v(Yh,Jh);Jh.Im(Yh);Yh.prototype.TP=function(a){u.s(a,AdfRichChooseDate);return!0};r.a("AdfDhtmlChooseDateTimeSelectionPanel.prototype.isTogglePanel",{TP:Yh.prototype.TP});Yh.prototype.isEnabled=function(a,b){return Yh.h.isEnabled.call(this,a,b)?U.fqa(a,b):!1};r.a("AdfDhtmlChooseDateTimeSelectionPanel.prototype.isEnabled",{isEnabled:Yh.prototype.isEnabled});
Yh.prototype.kb=function(a,b){u.s(a,AdfRichChooseDate);u.assert(null!=b);return this.isEnabled(a,b)&&U.$r(a,b,T.Rw)};r.a("AdfDhtmlChooseDateTimeSelectionPanel.prototype.isVisible",{kb:Yh.prototype.kb});Yh.prototype.We=function(a,b){u.s(a,AdfRichChooseDate);u.s(b,ha);var d=b.na();return"keyDown"==b.getType()&&b.getSource()instanceof AdfRichChooseNumberSpinwheel&&(d==w.vb||d==w.ub)};r.a("AdfDhtmlChooseDateTimeSelectionPanel.prototype.canProcessDomUIInputEvent",{We:Yh.prototype.We});
Yh.prototype.re=function(a,b){u.s(a,AdfRichChooseDate);u.s(b,ha);return b instanceof lc?b.getSource()instanceof AdfRichChooseNumberSpinwheel:b instanceof Ch};r.a("AdfDhtmlChooseDateTimeSelectionPanel.prototype.canProcessComponentEvent",{re:Yh.prototype.re});
Yh.prototype.nZ=function(a,b){u.s(a,AdfRichChooseDate);u.s(b,Ch);var d=A.c,e=a.g(),f=U.cb(a),g=b.getDate(),h=I.la(e,T.Vea);d.m(h).setValue(U.MY(f,g));f=I.la(e,T.sfa);d.m(f).setValue(g.getMinutes());f=I.la(e,T.mga);(f=d.m(f))&&f.setValue(g.getSeconds());e=I.la(e,T.qfa);(d=d.m(e))&&d.setValue(12>g.getHours()?0:1);return!0};r.a("AdfDhtmlChooseDateTimeSelectionPanel.prototype.handleComponentTimeSelection",{nZ:Yh.prototype.nZ});
Yh.prototype.os=function(a,b){u.s(a,AdfRichChooseDate);u.s(b,lc);var d=A.c,e=a.g(),f=U.cb(a),f=U.hk(a,f);f.setHours(Yh.Qeb(e));var g=I.la(e,T.sfa),g=d.m(g);f.setMinutes(g.getValue());e=I.la(e,T.mga);d=d.m(e);f.setSeconds(d?d.getValue():0);Ch.F(a,f);return!0};r.a("AdfDhtmlChooseDateTimeSelectionPanel.prototype.handleComponentValueChange",{os:Yh.prototype.os});
Yh.prototype.Ni=function(a,b){u.s(a,AdfRichChooseDate);u.s(b,D);var d=A.c.Ka().La(),e=b.na(),f=document.activeElement;e==w.vb?d?J.ni(f,f.parentElement):J.be(f,f.parentElement):e==w.ub&&(d?J.be(f,f.parentElement):J.ni(f,f.parentElement));b.cancel();return!0};r.a("AdfDhtmlChooseDateTimeSelectionPanel.prototype.handleComponentKeyDown",{Ni:Yh.prototype.Ni});
Yh.prototype.qc=function(a,b){u.s(a,AdfRichChooseDate);u.assert(null!=b);var d=Lh.uc("div",{"class":A.c.H().getStyleClass("af|chooseDate::spinwheel-time-selectors-row")},b),e=U.cb(a),f=U.hk(a,e),g=[];g.push(Yh.M$a(a,e,d,f));g.push(Yh.Q$a(a,e,d,f));U.eqa(a,e)&&g.push(Yh.$$a(a,e,d,f));U.nY(a,e)&&g.push(Yh.O$a(a,d,f));return g};r.a("AdfDhtmlChooseDateTimeSelectionPanel.prototype.render",{qc:Yh.prototype.qc});
Yh.M$a=function(a,b,d,e){var f=a.g(),f=I.la(f,T.Vea);Lh.uc("div",{id:f},d);d=U.v9(b);f=new AdfRichChooseNumberSpinwheel(f);f.setMinimum(d[0]);f.setMaximum(d[1]);f.OUa(U.h9(a,b));f.setLabel(A.c.H().Z("af_chooseDate.LABEL_SELECT_HOURS"));f.setValue(U.MY(b,e));return f};
Yh.Q$a=function(a,b,d,e){var f=a.g(),f=I.la(f,T.sfa);Lh.uc("div",{id:f},d);d=new AdfRichChooseNumberSpinwheel(f);d.setMinimum(0);d.setMaximum(59);d.OUa(U.w9(a,b));d.setLabel(A.c.H().Z("af_chooseDate.LABEL_SELECT_MINUTES"));d.setValue(e.getMinutes());return d};
Yh.$$a=function(a,b,d,e){var f=a.g(),f=I.la(f,T.mga);Lh.uc("div",{id:f},d);d=new AdfRichChooseNumberSpinwheel(f);d.setMinimum(0);d.setMaximum(59);d.OUa(U.E9(a,b));d.setLabel(A.c.H().Z("af_chooseDate.LABEL_SELECT_SECONDS"));d.setValue(e.getSeconds());return d};
Yh.O$a=function(a,b,d){a=a.g();a=I.la(a,T.qfa);Lh.uc("div",{id:a},b);b=new AdfRichChooseNumberSpinwheel(a);a=A.c.H();b.Gwb([a.Z("af_chooseDate.AM"),a.Z("af_chooseDate.PM")]);b.setLabel(a.Z("af_chooseDate.AMPM"));b.setValue(12>d.getHours()?0:1);return b};Yh.Qeb=function(a){var b=A.c,d=I.la(a,T.Vea),d=b.m(d).getValue();a=I.la(a,T.qfa);if(b=b.m(a))12===d&&(d=0),1===b.getValue()&&(d+=12);return d};