function Lh(){}m("AdfDhtmlChooseDateDOMUtils",Lh);Lh.j8=function(a){u.Tc(a);var b=q.b,d=Lh.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(Lh.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",Lh.j8);Lh.uc=function(a,b,d){u.Ya(a);u.Tc(b);u.u(d);a=Lh.ck(a,b);d.appendChild(a);return a};
m("AdfDhtmlChooseDateDOMUtils.createAndAppendElement",Lh.uc);Lh.ck=function(a,b){u.Ya(a);u.Tc(b);var d=document.createElement(a);C.aWa(d,b);return d};m("AdfDhtmlChooseDateDOMUtils.createElementWithAttributes",Lh.ck);Lh.BVa=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",Lh.BVa);
Lh.dua=function(a){u.u(a);q.b.yc(a);A.c.Ri(a);for(var b=!1;a.lastChild;)a.removeChild(a.lastChild),b=!0;return b};m("AdfDhtmlChooseDateDOMUtils.removeAllChildren",Lh.dua);Lh.Uu=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",Lh.Uu);
Lh.kqa=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=Lh.aab(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.fUa},{node:"label","for":h,"class":"p_OraHiddenLabel","text-content":d}]};return Lh.j8(a)};m("AdfDhtmlChooseDateDOMUtils.buildSelectOneChoiceElement",Lh.kqa);
Lh.aab=function(a,b){for(var d={fUa:[],title:""},e=0;e<a.length;e++){var f=Lh.sy(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.fUa[e]=h}return d};
Lh.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.$0a),y=I.j(a,T.p_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 Lh.j8(g)};m("AdfDhtmlChooseDateDOMUtils.buildNumberSpinboxElement",Lh.pY);
Lh.sy=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",Lh.sy);