function Mh(){Mh.h.constructor.call(this,"compactTime")}m("AdfDhtmlChooseDateCompactTimeSelectionPanel",Mh);r.v(Mh,Jh);Jh.Im(Mh);Mh.prototype.isEnabled=function(a,b){return Mh.h.isEnabled.call(this,a,b)?U.fqa(a,b):!1};r.a("AdfDhtmlChooseDateCompactTimeSelectionPanel.prototype.isEnabled",{isEnabled:Mh.prototype.isEnabled});Mh.prototype.We=function(a,b){u.s(a,AdfRichChooseDate);u.s(b,na);return!1};r.a("AdfDhtmlChooseDateCompactTimeSelectionPanel.prototype.canProcessDomUIInputEvent",{We:Mh.prototype.We});
Mh.prototype.re=function(a,b){u.s(a,AdfRichChooseDate);u.s(b,ha);return b instanceof Ch||Mh.zn(a,b,T.KK)||Mh.zn(a,b,T.TS)||Mh.zn(a,b,T.hT)||Mh.zn(a,b,T.yK)?!0:!1};r.a("AdfDhtmlChooseDateCompactTimeSelectionPanel.prototype.canProcessComponentEvent",{re:Mh.prototype.re});
Mh.prototype.nZ=function(a,b){u.s(a,AdfRichChooseDate);u.s(b,Ch);var d=A.c,e=U.cb(a),f=b.getDate(),g=U.MY(e,f);Mh.Gpa(T.KK,g,a);Mh.Gpa(T.TS,f.getMinutes(),a);Mh.Gpa(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:Mh.prototype.nZ});
Mh.prototype.os=function(a,b){b.getSource().g();var d=U.cb(a);return Mh.zn(a,b,T.KK)?Mh.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=Mh.$Oa(a,h.getValue(),d);a=parseInt(a);isNaN(a)&&(a=(d=d.getDefaultValue())?d.getHours():0);b.setHours(a)}):Mh.zn(a,b,T.TS)?Mh.i5(a,b,d,function(b,d){var g=parseInt(b);isNaN(g)&&(g=(g=a.getDefaultValue())?g.getMinutes():0);d.setMinutes(g)}):Mh.zn(a,b,T.hT)?Mh.i5(a,b,d,function(b,d){var g=parseInt(b);
isNaN(g)&&(g=(g=a.getDefaultValue())?g.getSeconds():0);d.setSeconds(g)}):Mh.zn(a,b,T.yK)?Mh.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=Mh.$Oa(h.getValue(),a,d);b.setHours(a)}):!1};r.a("AdfDhtmlChooseDateCompactTimeSelectionPanel.prototype.handleComponentValueChange",{os:Mh.prototype.os});Mh.prototype.qc=function(a,b){u.s(a,AdfRichChooseDate);u.assert(null!=b);var d=A.c.H(),e=Mh.gab(d,b);Mh.L$a(a,d,e);return Mh.lbb(a)};
r.a("AdfDhtmlChooseDateCompactTimeSelectionPanel.prototype.render",{qc:Mh.prototype.qc});Mh.$Oa=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};Mh.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);Ch.F(a,d);b.cancel();return!0};
Mh.gab=function(a,b){var d=Lh.uc("td",{"class":a.getStyleClass("af|chooseDate::time-selectors-row")},b),d=Lh.uc("table",{cellpadding:"0",cellspacing:"0",border:"0",summary:"",role:"presentation","class":a.getStyleClass("af|chooseDate::time-selectors-table")},d);return Lh.uc("tbody",{},d)};Mh.L$a=function(a,b,d){d=Lh.uc("tr",{},d);Mh.K$a(a,b,d);Mh.zHa(b,d);Mh.P$a(a,b,d);Mh.zHa(b,d);Mh.Z$a(a,b,d);Mh.G$a(a,b,d)};
Mh.K$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=Lh.uc("td",{},d);a=Lh.pY(I.j(l,T.KK),U.MY(e,f),h[0],h[1],2,1<g,b.Z("af_chooseDate.LABEL_SELECT_HOURS"),Mh.iIa(a));d.appendChild(a)};Mh.P$a=function(a,b,d){var e=U.cb(a),f=U.hk(a,e),e=U.w9(a,e),g=a.g();d=Lh.uc("td",{},d);a=Lh.pY(I.j(g,T.TS),f.getMinutes(),0,59,2,1<e,b.Z("af_chooseDate.LABEL_SELECT_MINUTES"),Mh.jIa(a));d.appendChild(a)};
Mh.Z$a=function(a,b,d){var e=U.cb(a),f=U.hk(a,e),g=U.E9(a,e);U.eqa(a,e);e=a.g();d=Lh.uc("td",{style:""},d);a=Lh.pY(I.j(e,T.hT),f.getSeconds(),0,59,2,1<g,b.Z("af_chooseDate.LABEL_SELECT_SECONDS"),Mh.kIa(a));d.appendChild(a)};Mh.G$a=function(a,b,d){var e=U.cb(a);U.nY(a,e)&&(U.hk(a,e),e=U.nVa(a,e),a=Mh.ubb(a,b),e?(a.setAttribute("colspan","3"),Lh.uc("tr",{},d.parentElement).appendChild(a)):d.appendChild(a))};
Mh.ubb=function(a,b){var d=Lh.ck("td",{}),e=I.j(a.g(),T.yK),f=Lh.uc("div",{id:e,"class":b.getStyleClass("af|chooseDate::ampm")},d),f=Lh.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=Lh.uc("span",{"class":b.getStyleClass("af|chooseDate::ampm-content-input")},f);Lh.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();Lh.uc("label",{"for":e+":_0","class":b.getStyleClass("af|chooseDate::ampm-item-text")},f).textContent=A.c.H().Z("af_chooseDate.AM");h=Lh.uc("span",{"class":b.getStyleClass("af|chooseDate::ampm-content-input")},f);Lh.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();Lh.uc("label",{"for":e+":_1","class":b.getStyleClass("af|chooseDate::ampm-item-text")},f).textContent=
A.c.H().Z("af_chooseDate.PM");return d};Mh.zHa=function(a,b){Lh.uc("td",{"class":a.getStyleClass("af|chooseDate::time-separator")},b).textContent=":"};Mh.lbb=function(a){var b=a.g(),d=[],e=U.cb(a),f=U.v9(e);d.push(Mh.qU(I.j(b,T.KK),f[0],f[1],Mh.iIa(a)));d.push(Mh.qU(I.j(b,T.TS),0,59,Mh.jIa(a)));d.push(Mh.qU(I.j(b,T.hT),0,59,Mh.kIa(a)));U.nY(a,e)&&d.push(Mh.mbb(I.j(b,T.yK)));return d};Mh.Gpa=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)};
Mh.zn=function(a,b,d){b=b.getSource().g();a=I.j(a.g(),d);return b==a};Mh.qU=function(a,b,d,e){return new AdfRichInputNumberSpinbox(a,{minimum:b,maximum:d,converter:e},1)};Mh.mbb=function(a){return new AdfRichSelectOneRadio(a,{simple:!0,layout:"horizontal"},1)};Mh.iIa=function(a){if(!Mh.yLa){var b=U.cb(a);Mh.yLa=new TrNumberConverter(null,"number",null,null,!1,!0,!1,null,null,null,null,null,U.h9(a,b),null,null)}return Mh.yLa};
Mh.jIa=function(a){if(!Mh.dNa){var b=U.cb(a);Mh.dNa=new TrNumberConverter(null,"number",null,null,!1,!0,!1,null,null,null,null,null,U.w9(a,b),null,null)}return Mh.dNa};Mh.kIa=function(a){if(!Mh.NPa){var b=U.cb(a);Mh.NPa=new TrNumberConverter(null,"number",null,null,!1,!0,!1,null,null,null,null,null,U.E9(a,b),null,null)}return Mh.NPa};