function Qh(){}m("AdfDhtmlChooseDateDOMUtils",Qh);Qh.j8=function(a){u.Uc(a);var b=q.b,d=Qh.ck(a.node,{}),e;for(e in a)switch(e){case "children":for(var f=a[e],g=0;g<f.length;g++)d.appendChild(Qh.j8(f[g]));break;case "text-content":d.textContent=a[e];break;case "node":break;default:b.setAttribute(d,e,a[e])}return d};m("AdfDhtmlChooseDateDOMUtils.buildDomFromStructure",Qh.j8);Qh.uc=function(a,b,d){u.Ya(a);u.Uc(b);u.u(d);a=Qh.ck(a,b);d.appendChild(a);return a};
m("AdfDhtmlChooseDateDOMUtils.createAndAppendElement",Qh.uc);Qh.ck=function(a,b){u.Ya(a);u.Uc(b);var d=document.createElement(a);C.eWa(d,b);return d};m("AdfDhtmlChooseDateDOMUtils.createElementWithAttributes",Qh.ck);Qh.FVa=function(a,b){u.u(a);u.u(b);var d=q.b;d.yc(a);if("gecko"==d.S()&&3.5>d.Ib()){var e=document.createElement("span");e.appendChild(b);var f=a.parentNode;f.innerHTML=e.innerHTML;d.Ia(f)}else a.parentNode.replaceChild(b,a),d.Ia(b)};m("AdfDhtmlChooseDateDOMUtils.swapElement",Qh.FVa);
Qh.hua=function(a){u.u(a);q.b.yc(a);A.c.Si(a);for(var b=!1;a.lastChild;)a.removeChild(a.lastChild),b=!0;return b};m("AdfDhtmlChooseDateDOMUtils.removeAllChildren",Qh.hua);Qh.Vu=function(a,b){u.u(b);u.u(a);for(var d=null;!d&&b&&b!=a&&1==b.nodeType;)if("TABLE"==b.tagName.toUpperCase()){d=b;break}else b=b.parentNode;return d};m("AdfDhtmlChooseDateDOMUtils.getParentTableElement",Qh.Vu);
Qh.oqa=function(a,b,d,e,f){u.Ya(a);u.J(b);u.J(d);u.assert(null!=e);u.assert(null!=f);var g=A.c.H(),h=I.j(a,"content");e=Qh.cab(e,f);a={node:"span",id:a,"class":g.getStyleClass("af|chooseDate::choice-list"),children:[{node:"select",id:h,name:a,"class":b,title:e.title,children:e.jUa},{node:"label","for":h,"class":"p_OraHiddenLabel","text-content":d}]};return Qh.j8(a)};m("AdfDhtmlChooseDateDOMUtils.buildSelectOneChoiceElement",Qh.oqa);
Qh.cab=function(a,b){for(var d={jUa:[],title:""},e=0;e<a.length;e++){var f=Qh.ty(a[e])[0],g=a[e][f],h={node:"option",value:f};b==f&&(h.selected=!0,d.title=g);h.title=g;h["text-content"]=g;d.jUa[e]=h}return d};
Qh.pY=function(a,b,d,e,f,g,h,l){u.J(a);u.Da(d);u.Da(e);u.Da(f);u.dc(g);u.J(h);u.s(l,TrNumberConverter);var n=A.c.H(),t=I.j(a,T.e1a),y=I.j(a,T.u_a),z=I.j(a,"content");g={node:"div",id:a,"class":n.getStyleClass("af|chooseDate::spinbox"),_adfinc:t,_adfdec:y,_adfLeadingZero:g?"true":"",children:[{node:"table",cellpadding:0,cellspacing:0,border:0,summary:"",role:"presentation",children:[{node:"tbody"}]}]};g.children[0].children[0].children=[{node:"tr",children:[{node:"td",children:[{node:"input",id:z,
name:a,style:"text-align: right;width:auto;","class":n.getStyleClass("af|chooseDate::spinbox-content"),size:f,autocomplete:"off",type:"text",value:l.getAsString(b),role:"spinbutton","aria-valuemax":e,"aria-valuemin":d,title:b},{node:"label","for":z,"class":"p_OraHiddenLabel","text-content":h}]},{node:"td",children:[{node:"div","class":n.getStyleClass("af|chooseDate::increment-cell"),children:[{node:"a",role:"button",tabindex:"-1","class":n.getStyleClass("af|chooseDate::spinbox-incrementor-icon-style"),
id:t,title:n.Z("af_inputNumberSpinbox.TIP_INCREMENT")}]},{node:"div","class":n.getStyleClass("af|chooseDate::decrement-cell"),children:[{node:"a",role:"button",tabindex:"-1","class":n.getStyleClass("af|chooseDate::spinbox-decrementor-icon-style"),id:y,title:n.Z("af_inputNumberSpinbox.TIP_DECREMENT")}]}]}]}];return Qh.j8(g)};m("AdfDhtmlChooseDateDOMUtils.buildNumberSpinboxElement",Qh.pY);
Qh.ty=function(a){u.assert(null!=a);var b=Object.prototype.hasOwnProperty,d=!{toString:null}.propertyIsEnumerable("toString"),e="toString toLocaleString valueOf hasOwnProperty isPrototypeOf propertyIsEnumerable constructor".split(" "),f=e.length;if("object"!==typeof a&&("function"!==typeof a||null===a))throw new TypeError("AdfDhtmlChooseDatePeer.getKeys called on non-object");var g=[],h;for(h in a)b.call(a,h)&&g.push(h);if(d)for(d=0;d<f;d++)b.call(a,e[d])&&g.push(e[d]);return g};
m("AdfDhtmlChooseDateDOMUtils.getKeys",Qh.ty);