function $h(){$h.h.constructor.call(this,"time")}m("AdfDhtmlChooseDateTimeSelectionPanel",$h);r.v($h,Lh);Lh.Im($h);$h.prototype.TP=function(a){u.s(a,AdfRichChooseDate);return!0};r.a("AdfDhtmlChooseDateTimeSelectionPanel.prototype.isTogglePanel",{TP:$h.prototype.TP});$h.prototype.isEnabled=function(a,b){return $h.h.isEnabled.call(this,a,b)?U.jqa(a,b):!1};r.a("AdfDhtmlChooseDateTimeSelectionPanel.prototype.isEnabled",{isEnabled:$h.prototype.isEnabled});
$h.prototype.kb=function(a,b){u.s(a,AdfRichChooseDate);u.assert(null!=b);return this.isEnabled(a,b)&&U.as(a,b,T.Sw)};r.a("AdfDhtmlChooseDateTimeSelectionPanel.prototype.isVisible",{kb:$h.prototype.kb});$h.prototype.Xe=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",{Xe:$h.prototype.Xe});
$h.prototype.re=function(a,b){u.s(a,AdfRichChooseDate);u.s(b,ha);return b instanceof lc?b.getSource()instanceof AdfRichChooseNumberSpinwheel:b instanceof Eh};r.a("AdfDhtmlChooseDateTimeSelectionPanel.prototype.canProcessComponentEvent",{re:$h.prototype.re});
$h.prototype.nZ=function(a,b){u.s(a,AdfRichChooseDate);u.s(b,Eh);var d=A.c,e=a.g(),f=U.cb(a),g=b.getDate(),h=I.la(e,T.Xea);d.m(h).setValue(U.MY(f,g));f=I.la(e,T.ufa);d.m(f).setValue(g.getMinutes());f=I.la(e,T.oga);(f=d.m(f))&&f.setValue(g.getSeconds());e=I.la(e,T.sfa);(d=d.m(e))&&d.setValue(12>g.getHours()?0:1);return!0};r.a("AdfDhtmlChooseDateTimeSelectionPanel.prototype.handleComponentTimeSelection",{nZ:$h.prototype.nZ});
$h.prototype.ps=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($h.Reb(e));var g=I.la(e,T.ufa),g=d.m(g);f.setMinutes(g.getValue());e=I.la(e,T.oga);d=d.m(e);f.setSeconds(d?d.getValue():0);Eh.F(a,f);return!0};r.a("AdfDhtmlChooseDateTimeSelectionPanel.prototype.handleComponentValueChange",{ps:$h.prototype.ps});
$h.prototype.Oi=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.ce(f,f.parentElement):e==w.ub&&(d?J.ce(f,f.parentElement):J.ni(f,f.parentElement));b.cancel();return!0};r.a("AdfDhtmlChooseDateTimeSelectionPanel.prototype.handleComponentKeyDown",{Oi:$h.prototype.Oi});
$h.prototype.qc=function(a,b){u.s(a,AdfRichChooseDate);u.assert(null!=b);var d=Qh.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($h.O$a(a,e,d,f));g.push($h.S$a(a,e,d,f));U.iqa(a,e)&&g.push($h.bab(a,e,d,f));U.nY(a,e)&&g.push($h.Q$a(a,d,f));return g};r.a("AdfDhtmlChooseDateTimeSelectionPanel.prototype.render",{qc:$h.prototype.qc});
$h.O$a=function(a,b,d,e){var f=a.g(),f=I.la(f,T.Xea);Qh.uc("div",{id:f},d);d=U.v9(b);f=new AdfRichChooseNumberSpinwheel(f);f.setMinimum(d[0]);f.setMaximum(d[1]);f.SUa(U.h9(a,b));f.setLabel(A.c.H().Z("af_chooseDate.LABEL_SELECT_HOURS"));f.setValue(U.MY(b,e));return f};
$h.S$a=function(a,b,d,e){var f=a.g(),f=I.la(f,T.ufa);Qh.uc("div",{id:f},d);d=new AdfRichChooseNumberSpinwheel(f);d.setMinimum(0);d.setMaximum(59);d.SUa(U.w9(a,b));d.setLabel(A.c.H().Z("af_chooseDate.LABEL_SELECT_MINUTES"));d.setValue(e.getMinutes());return d};
$h.bab=function(a,b,d,e){var f=a.g(),f=I.la(f,T.oga);Qh.uc("div",{id:f},d);d=new AdfRichChooseNumberSpinwheel(f);d.setMinimum(0);d.setMaximum(59);d.SUa(U.F9(a,b));d.setLabel(A.c.H().Z("af_chooseDate.LABEL_SELECT_SECONDS"));d.setValue(e.getSeconds());return d};
$h.Q$a=function(a,b,d){a=a.g();a=I.la(a,T.sfa);Qh.uc("div",{id:a},b);b=new AdfRichChooseNumberSpinwheel(a);a=A.c.H();b.Iwb([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};$h.Reb=function(a){var b=A.c,d=I.la(a,T.Xea),d=b.m(d).getValue();a=I.la(a,T.sfa);if(b=b.m(a))12===d&&(d=0),1===b.getValue()&&(d+=12);return d};