function Rh(){Rh.h.constructor.call(this,"compactTime")}m("AdfDhtmlChooseDateCompactTimeSelectionPanel",Rh);r.v(Rh,Lh);Lh.Im(Rh);Rh.prototype.isEnabled=function(a,b){return Rh.h.isEnabled.call(this,a,b)?U.jqa(a,b):!1};r.a("AdfDhtmlChooseDateCompactTimeSelectionPanel.prototype.isEnabled",{isEnabled:Rh.prototype.isEnabled});Rh.prototype.Xe=function(a,b){u.s(a,AdfRichChooseDate);u.s(b,na);return!1};r.a("AdfDhtmlChooseDateCompactTimeSelectionPanel.prototype.canProcessDomUIInputEvent",{Xe:Rh.prototype.Xe});
Rh.prototype.re=function(a,b){u.s(a,AdfRichChooseDate);u.s(b,ha);return b instanceof Eh||Rh.zn(a,b,T.KK)||Rh.zn(a,b,T.TS)||Rh.zn(a,b,T.hT)||Rh.zn(a,b,T.yK)?!0:!1};r.a("AdfDhtmlChooseDateCompactTimeSelectionPanel.prototype.canProcessComponentEvent",{re:Rh.prototype.re});
Rh.prototype.nZ=function(a,b){u.s(a,AdfRichChooseDate);u.s(b,Eh);var d=A.c,e=U.cb(a),f=b.getDate(),g=U.MY(e,f);Rh.Kpa(T.KK,g,a);Rh.Kpa(T.TS,f.getMinutes(),a);Rh.Kpa(T.hT,f.getSeconds(),a);if(!U.nY(a,e))return!0;d=d.m(I.j(a.g(),T.yK));u.s(d,G);d.setValue(12>f.getHours()?"0":"1");return!0};r.a("AdfDhtmlChooseDateCompactTimeSelectionPanel.prototype.handleComponentTimeSelection",{nZ:Rh.prototype.nZ});
Rh.prototype.ps=function(a,b){b.getSource().g();var d=U.cb(a);return Rh.zn(a,b,T.KK)?Rh.i5(a,b,d,function(a,b,d){u.s(d,AdfRichChooseDate);var h=I.j(d.g(),T.yK);if(h=A.c.m(h))u.s(h,AdfRichSelectOneRadio),a=Rh.ePa(a,h.getValue(),d);a=parseInt(a);isNaN(a)&&(a=(d=d.getDefaultValue())?d.getHours():0);b.setHours(a)}):Rh.zn(a,b,T.TS)?Rh.i5(a,b,d,function(b,d){var g=parseInt(b);isNaN(g)&&(g=(g=a.getDefaultValue())?g.getMinutes():0);d.setMinutes(g)}):Rh.zn(a,b,T.hT)?Rh.i5(a,b,d,function(b,d){var g=parseInt(b);
isNaN(g)&&(g=(g=a.getDefaultValue())?g.getSeconds():0);d.setSeconds(g)}):Rh.zn(a,b,T.yK)?Rh.i5(a,b,d,function(a,b,d){u.s(d,AdfRichChooseDate);var h=I.j(d.g(),T.KK),h=A.c.m(h);u.s(h,AdfRichInputNumberSpinbox);a=Rh.ePa(h.getValue(),a,d);b.setHours(a)}):!1};r.a("AdfDhtmlChooseDateCompactTimeSelectionPanel.prototype.handleComponentValueChange",{ps:Rh.prototype.ps});Rh.prototype.qc=function(a,b){u.s(a,AdfRichChooseDate);u.assert(null!=b);var d=A.c.H(),e=Rh.iab(d,b);Rh.N$a(a,d,e);return Rh.mbb(a)};
r.a("AdfDhtmlChooseDateCompactTimeSelectionPanel.prototype.render",{qc:Rh.prototype.qc});Rh.ePa=function(a,b,d){u.s(d,AdfRichChooseDate);if(null==a)return null;U.cb(d);12==a&&(a=0);"1"==b&&(a=+a+12);return a};Rh.i5=function(a,b,d,e){u.s(a,AdfRichChooseDate);u.s(b,lc);u.u(d);u.Ja(e);d=U.hk(a,d);u.jf(d);e(b.no(),d,a);Eh.F(a,d);b.cancel();return!0};
Rh.iab=function(a,b){var d=Qh.uc("td",{"class":a.getStyleClass("af|chooseDate::time-selectors-row")},b),d=Qh.uc("table",{cellpadding:"0",cellspacing:"0",border:"0",summary:"",role:"presentation","class":a.getStyleClass("af|chooseDate::time-selectors-table")},d);return Qh.uc("tbody",{},d)};Rh.N$a=function(a,b,d){d=Qh.uc("tr",{},d);Rh.M$a(a,b,d);Rh.DHa(b,d);Rh.R$a(a,b,d);Rh.DHa(b,d);Rh.aab(a,b,d);Rh.I$a(a,b,d)};
Rh.M$a=function(a,b,d){var e=U.cb(a),f=U.hk(a,e),g=U.h9(a,e),h=U.v9(e),l=a.g();d=Qh.uc("td",{},d);a=Qh.pY(I.j(l,T.KK),U.MY(e,f),h[0],h[1],2,1<g,b.Z("af_chooseDate.LABEL_SELECT_HOURS"),Rh.nIa(a));d.appendChild(a)};Rh.R$a=function(a,b,d){var e=U.cb(a),f=U.hk(a,e),e=U.w9(a,e),g=a.g();d=Qh.uc("td",{},d);a=Qh.pY(I.j(g,T.TS),f.getMinutes(),0,59,2,1<e,b.Z("af_chooseDate.LABEL_SELECT_MINUTES"),Rh.oIa(a));d.appendChild(a)};
Rh.aab=function(a,b,d){var e=U.cb(a),f=U.hk(a,e),g=U.F9(a,e);U.iqa(a,e);e=a.g();d=Qh.uc("td",{style:""},d);a=Qh.pY(I.j(e,T.hT),f.getSeconds(),0,59,2,1<g,b.Z("af_chooseDate.LABEL_SELECT_SECONDS"),Rh.pIa(a));d.appendChild(a)};Rh.I$a=function(a,b,d){var e=U.cb(a);U.nY(a,e)&&(U.hk(a,e),e=U.rVa(a,e),a=Rh.vbb(a,b),e?(a.setAttribute("colspan","3"),Qh.uc("tr",{},d.parentElement).appendChild(a)):d.appendChild(a))};
Rh.vbb=function(a,b){var d=Qh.ck("td",{}),e=I.j(a.g(),T.yK),f=Qh.uc("div",{id:e,"class":b.getStyleClass("af|chooseDate::ampm")},d),f=Qh.uc("div",{id:I.j(e,"content"),name:e,"class":b.getStyleClass("af|chooseDate::ampm-content")},f),g=U.cb(a),g=U.hk(a,g),h=Qh.uc("span",{"class":b.getStyleClass("af|chooseDate::ampm-content-input")},f);Qh.uc("input",{type:"radio",name:e,id:e+":_0",value:"0","class":b.getStyleClass("af|selectOneRadio::native-input"),accesskey:"",onclick:"this.focus()"},h).checked=12>
g.getHours();Qh.uc("label",{"for":e+":_0","class":b.getStyleClass("af|chooseDate::ampm-item-text")},f).textContent=A.c.H().Z("af_chooseDate.AM");h=Qh.uc("span",{"class":b.getStyleClass("af|chooseDate::ampm-content-input")},f);Qh.uc("input",{type:"radio",name:e,id:e+":_1",value:"1","class":b.getStyleClass("af|selectOneRadio::native-input"),accesskey:"",onclick:"this.focus()"},h).checked=12<=g.getHours();Qh.uc("label",{"for":e+":_1","class":b.getStyleClass("af|chooseDate::ampm-item-text")},f).textContent=
A.c.H().Z("af_chooseDate.PM");return d};Rh.DHa=function(a,b){Qh.uc("td",{"class":a.getStyleClass("af|chooseDate::time-separator")},b).textContent=":"};Rh.mbb=function(a){var b=a.g(),d=[],e=U.cb(a),f=U.v9(e);d.push(Rh.qU(I.j(b,T.KK),f[0],f[1],Rh.nIa(a)));d.push(Rh.qU(I.j(b,T.TS),0,59,Rh.oIa(a)));d.push(Rh.qU(I.j(b,T.hT),0,59,Rh.pIa(a)));U.nY(a,e)&&d.push(Rh.nbb(I.j(b,T.yK)));return d};Rh.Kpa=function(a,b,d){u.J(a);u.s(d,AdfRichChooseDate);d=d.g();a=A.c.m(I.j(d,a));u.s(a,G);a.setValue(b)};
Rh.zn=function(a,b,d){b=b.getSource().g();a=I.j(a.g(),d);return b==a};Rh.qU=function(a,b,d,e){return new AdfRichInputNumberSpinbox(a,{minimum:b,maximum:d,converter:e},1)};Rh.nbb=function(a){return new AdfRichSelectOneRadio(a,{simple:!0,layout:"horizontal"},1)};Rh.nIa=function(a){if(!Rh.DLa){var b=U.cb(a);Rh.DLa=new TrNumberConverter(null,"number",null,null,!1,!0,!1,null,null,null,null,null,U.h9(a,b),null,null)}return Rh.DLa};
Rh.oIa=function(a){if(!Rh.iNa){var b=U.cb(a);Rh.iNa=new TrNumberConverter(null,"number",null,null,!1,!0,!1,null,null,null,null,null,U.w9(a,b),null,null)}return Rh.iNa};Rh.pIa=function(a){if(!Rh.SPa){var b=U.cb(a);Rh.SPa=new TrNumberConverter(null,"number",null,null,!1,!0,!1,null,null,null,null,null,U.F9(a,b),null,null)}return Rh.SPa};