function OverlayFrameRenderer(){this.render=function(n,t){var i=document.createElement("div"),r;n.appendChild(i);rslt="";rslt+=(this.Container.cssClass?this.Container.cssClass:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");rslt+=" cubebuild-overlay";i.setAttribute("class",rslt);r=this.Prev=i,function(n){var i=document.createElement("div"),r,u;n.appendChild(i);rslt="";rslt+="overlay-frame";i.setAttribute("class",rslt);r=this.Prev=i,function(n){var r=document.createElement("div"),u,f,e,s,i,o;n.appendChild(r);rslt="";rslt+="overlay-scroll";r.setAttribute("class",rslt);u=this.Prev=r,function(n){var t=document.createElement("i"),i,r,u,f;n.appendChild(t);rslt="";rslt+="overlay-close fa fa-times";t.setAttribute("class",rslt);i=this.Prev=t,function(){}.call(this,i);this.Prev=i;r=document.createTextNode("      ");n.appendChild(r);u=document.createTextNode("\t\t  ");n.appendChild(u);this.Prev.addEventListener("click",$.proxy(this.Container.close,this.Container),!1);f=document.createTextNode("\t  ");n.appendChild(f)}.call(this,u);this.Prev=u;f=document.createTextNode("    ");n.appendChild(f);e=document.createTextNode("\t  ");n.appendChild(e);s=this.Prev;typeof this.Frame=="function"?(i=new this.Frame,i.Container=this.Container,i.Caller=this.Caller,i.render(this.Prev,t)):$(this.Prev).append(this.Frame);o=document.createTextNode("  ");n.appendChild(o)}.call(this,r);this.Prev=r;u=document.createTextNode("\t");n.appendChild(u)}.call(this,r);this.Prev=r};this.$Dialect="dom"}function Validation(){this.render=function(n,t){var i=document.createElement("ul"),r;n.appendChild(i);rslt="";rslt+="validationMessages";i.setAttribute("class",rslt);r=this.Prev=i,function(n){var o=document.createTextNode("\t"),i,r,u,f,e;for(n.appendChild(o),i=0;i<t.length;i++)r=t[i],u=document.createElement("li"),n.appendChild(u),f=this.Prev=u,function(n){n.insertAdjacentHTML("beforeend",(r.Message!==null&&typeof r.Message!="undefined"?r.Message:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"))}.call(this,f),this.Prev=f,e=document.createTextNode("\t"),n.appendChild(e)}.call(this,r);this.Prev=r};this.$Dialect="dom"}function Alert(){this.render=function(n,t){var u=document.createElement("h2"),r,i;n.appendChild(u);i=this.Prev=u,function(n){n.insertAdjacentHTML("beforeend",(t.Headline!==null&&typeof t.Headline!="undefined"?t.Headline:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"))}.call(this,i);this.Prev=i;r=document.createElement("p");n.appendChild(r);i=this.Prev=r,function(n){n.insertAdjacentHTML("beforeend",(t.Message!==null&&typeof t.Message!="undefined"?t.Message:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"))}.call(this,i);this.Prev=i};this.$Dialect="dom"}function YesNo(){this.render=function(n,t){var e=document.createElement("h2"),r,u,f,i;n.appendChild(e);i=this.Prev=e,function(n){n.insertAdjacentHTML("beforeend",(t.Headline!==null&&typeof t.Headline!="undefined"?t.Headline:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"))}.call(this,i);this.Prev=i;r=document.createElement("p");n.appendChild(r);i=this.Prev=r,function(n){n.insertAdjacentHTML("beforeend",(t.Message!==null&&typeof t.Message!="undefined"?t.Message:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"))}.call(this,i);this.Prev=i;u=document.createElement("button");n.appendChild(u);i=this.Prev=u,function(n){var t=document.createTextNode("Yes");n.appendChild(t)}.call(this,i);this.Prev=i;this.Prev.addEventListener("click",this.Container.actions.Yes,!1);f=document.createElement("button");n.appendChild(f);i=this.Prev=f,function(n){var t=document.createTextNode("No");n.appendChild(t)}.call(this,i);this.Prev=i;this.Prev.addEventListener("click",this.Container.actions.No,!1)};this.$Dialect="dom"}function OverlayFrameYesNo(){this.render=function(n,t){var e=document.createElement("h2"),r,u,f,i;n.appendChild(e);i=this.Prev=e,function(n){n.insertAdjacentHTML("beforeend",(t.Headline!==null&&typeof t.Headline!="undefined"?t.Headline:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"))}.call(this,i);this.Prev=i;r=document.createElement("p");n.appendChild(r);i=this.Prev=r,function(n){n.insertAdjacentHTML("beforeend",(t.Message!==null&&typeof t.Message!="undefined"?t.Message:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"))}.call(this,i);this.Prev=i;u=document.createElement("button");n.appendChild(u);i=this.Prev=u,function(n){var t=document.createTextNode("Yes");n.appendChild(t)}.call(this,i);this.Prev=i;this.Prev.addEventListener("click",this.Container.actions.Yes,!1);f=document.createElement("button");n.appendChild(f);i=this.Prev=f,function(n){var t=document.createTextNode("No");n.appendChild(t)}.call(this,i);this.Prev=i;this.Prev.addEventListener("click",this.Container.actions.No,!1)};this.$Dialect="dom"}function OverlayFrameValidation(){this.render=function(n,t){var i=document.createElement("ul"),r;n.appendChild(i);rslt="";rslt+="validationMessages";i.setAttribute("class",rslt);r=this.Prev=i,function(n){var o=document.createTextNode("\t"),i,r,u,f,e;for(n.appendChild(o),i=0;i<t.length;i++)r=t[i],u=document.createElement("li"),n.appendChild(u),f=this.Prev=u,function(n){n.insertAdjacentHTML("beforeend",(r.Message!==null&&typeof r.Message!="undefined"?r.Message:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"))}.call(this,f),this.Prev=f,e=document.createTextNode("\t"),n.appendChild(e)}.call(this,r);this.Prev=r};this.$Dialect="dom"}function OverlayFrameAlert(){this.render=function(n,t){var r,u,f,i;t.Headline&&(r=document.createElement("h2"),n.appendChild(r),i=this.Prev=r,function(n){n.insertAdjacentHTML("beforeend",(t.Headline!==null&&typeof t.Headline!="undefined"?t.Headline:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"))}.call(this,i),this.Prev=i);t.Message&&(u=document.createElement("p"),n.appendChild(u),i=this.Prev=u,function(n){n.insertAdjacentHTML("beforeend",(t.Message!==null&&typeof t.Message!="undefined"?t.Message:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"))}.call(this,i),this.Prev=i);f=document.createElement("button");n.appendChild(f);i=this.Prev=f,function(n){n.insertAdjacentHTML("beforeend",(t.ButtonText||!0&&typeof(t.ButtonText||"OK")!="undefined"?t.ButtonText||"OK":"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"))}.call(this,i);this.Prev=i;this.Prev.addEventListener("click",$.proxy(this.Container.close,this.Container),!1)};this.$Dialect="dom"}function BootstrapHelpers(){this.Hidden=function(n,t,i){var r=document.createElement("input");n.appendChild(r);rslt="";rslt+=(t?t:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");r.setAttribute("name",rslt);rslt="";rslt+="hidden";r.setAttribute("type",rslt);rslt="";rslt+=(i?i:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");r.setAttribute("value",rslt);this.Prev=r};this.BootstrapHeading=function(n,t,i,r){var u,f;r=r||3;u=document.createElement("div");n.appendChild(u);f=this.Prev=u,function(n){var h=document.createTextNode("        "),e,u,f,o,s;n.appendChild(h);n.insertAdjacentHTML("beforeend",("<h"+r+">"+t+"<\/h"+r+">").toString());e=document.createTextNode("        ");n.appendChild(e);i&&(u=document.createElement("p"),n.appendChild(u),f=this.Prev=u,function(n){n.insertAdjacentHTML("beforeend",(i!==null&&typeof i!="undefined"?i:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"))}.call(this,f),this.Prev=f,o=document.createTextNode("        "),n.appendChild(o));s=document.createTextNode("    ");n.appendChild(s)}.call(this,f);this.Prev=f};this.BootstrapTextBox=function(n,t,i,r,u,f,e){var o=document.createElement("div"),s;n.appendChild(o);rslt="";rslt+="form-group";o.setAttribute("class",rslt);s=this.Prev=o,function(n){var y=document.createTextNode("\t\t"),s,h,c,l,o,a,v;n.appendChild(y);r!==""&&(s=document.createElement("label"),n.appendChild(s),rslt="",rslt+=(t?t:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),s.setAttribute("for",rslt),h=this.Prev=s,function(n){n.insertAdjacentHTML("beforeend",((r?r:t!==null&&typeof(r?r:t)!="undefined")?r?r:t:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"))}.call(this,h),this.Prev=h,c=document.createTextNode("\t\t"),n.appendChild(c));l=document.createTextNode("\t\t");n.appendChild(l);o=document.createElement("input");n.appendChild(o);rslt="";rslt+="text";o.setAttribute("type",rslt);rslt="";rslt+=((u?u:t)?u?u:t:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");o.setAttribute("id",rslt);rslt="";rslt+=(t?t:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");o.setAttribute("name",rslt);rslt="";rslt+=((i?i.toString():"")?i?i.toString():"":"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");o.setAttribute("value",rslt);rslt="";rslt+=(e||255?e||255:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");o.setAttribute("maxlength",rslt);rslt="";rslt+="form-control ";rslt+=(f?f:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");o.setAttribute("class",rslt);this.Prev=o;a=document.createTextNode("\t\t");n.appendChild(a);f=="jquery-calendar"&&$(this.Prev).datepicker({changeYear:!0,yearRange:"c-3:c+3"});v=document.createTextNode("  ");n.appendChild(v)}.call(this,s);this.Prev=s};this.BootstrapCheckBox=function(n,t,i,r,u){var f=document.createElement("div"),e;n.appendChild(f);rslt="";rslt+="checkbox";f.setAttribute("class",rslt);e=this.Prev=f,function(n){var s=document.createTextNode("\t\t"),f,e,o;n.appendChild(s);f=document.createElement("label");n.appendChild(f);e=this.Prev=f,function(n){var l=document.createTextNode("\t\t    "),f,s,h,e,o,c;n.appendChild(l);f=document.createElement("input");n.appendChild(f);rslt="";rslt+="checkbox";f.setAttribute("type",rslt);rslt="";rslt+=((u?u:t)?u?u:t:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");f.setAttribute("id",rslt);rslt="";rslt+=(t?t:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");f.setAttribute("name",rslt);rslt="";rslt+="true";f.setAttribute("value",rslt);this.Prev=f;s=document.createTextNode("\t\t\t");n.appendChild(s);i&&this.Prev.setAttribute("checked","checked");h=document.createTextNode("\t\t\t");n.appendChild(h);e=document.createElement("span");n.appendChild(e);o=this.Prev=e,function(n){n.insertAdjacentHTML("beforeend",((r?r:t!==null&&typeof(r?r:t)!="undefined")?r?r:t:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"))}.call(this,o);this.Prev=o;c=document.createTextNode("\t\t");n.appendChild(c)}.call(this,e);this.Prev=e;o=document.createTextNode("  ");n.appendChild(o)}.call(this,e);this.Prev=e};this.BootstrapDatePicker=function(n,t,i,r,u){var f=document.createElement("div"),e;n.appendChild(f);rslt="";rslt+="form-group";f.setAttribute("class",rslt);e=this.Prev=f,function(n){var c=document.createTextNode("\t\t"),o,s,f,e,h;n.appendChild(c);o=document.createElement("label");n.appendChild(o);rslt="";rslt+=((u?u:t)?u?u:t:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");o.setAttribute("for",rslt);e=this.Prev=o,function(n){n.insertAdjacentHTML("beforeend",((r?r:t!==null&&typeof(r?r:t)!="undefined")?r?r:t:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"))}.call(this,e);this.Prev=e;s=document.createTextNode("\t\t");n.appendChild(s);f=document.createElement("input");n.appendChild(f);rslt="";rslt+="text";f.setAttribute("type",rslt);rslt="";rslt+=((u?u:t)?u?u:t:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");f.setAttribute("id",rslt);rslt="";rslt+=(t?t:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");f.setAttribute("name",rslt);rslt="";rslt+=((i?moment(i).format("DD/MM/YYYY"):"")?i?moment(i).format("DD/MM/YYYY"):"":"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");f.setAttribute("value",rslt);rslt="";rslt+="form-control";f.setAttribute("class",rslt);rslt="";rslt+="12";f.setAttribute("maxlength",rslt);e=this.Prev=f,function(n){var i=document.createTextNode("\t\t\t"),t;n.appendChild(i);$(n).datepicker();t=document.createTextNode("\t\t");n.appendChild(t)}.call(this,e);this.Prev=e;h=document.createTextNode("\t");n.appendChild(h)}.call(this,e);this.Prev=e};this.BootstrapDateRange=function(n,t,i,r,u,f,e,o){var s=document.createElement("div"),h;n.appendChild(s);rslt="";rslt+="form-group";s.setAttribute("class",rslt);h=this.Prev=s,function(n){var v=document.createTextNode("\t\t"),c,l,h,s,a;n.appendChild(v);c=document.createElement("label");n.appendChild(c);s=this.Prev=c,function(n){n.insertAdjacentHTML("beforeend",((f?f:name!==null&&typeof(f?f:name)!="undefined")?f?f:name:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"))}.call(this,s);this.Prev=s;l=document.createTextNode("\t\t");n.appendChild(l);h=document.createElement("div");n.appendChild(h);rslt="";rslt+="input-group";h.setAttribute("class",rslt);s=this.Prev=h,function(n){var y=document.createTextNode("\t\t\t"),f,l,c,a,h,s,v;n.appendChild(y);f=document.createElement("input");n.appendChild(f);rslt="";rslt+="text";f.setAttribute("type",rslt);rslt="";rslt+=((e?e:t)?e?e:t:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");f.setAttribute("id",rslt);rslt="";rslt+=(t?t:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");f.setAttribute("name",rslt);rslt="";rslt+=((i?moment(i).format("DD/MM/YYYY"):"")?i?moment(i).format("DD/MM/YYYY"):"":"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");f.setAttribute("value",rslt);rslt="";rslt+="form-control";f.setAttribute("class",rslt);rslt="";rslt+="12";f.setAttribute("maxlength",rslt);s=this.Prev=f,function(n){var i=document.createTextNode("\t\t\t\t"),t;n.appendChild(i);$(n).datepicker();t=document.createTextNode("\t\t\t");n.appendChild(t)}.call(this,s);this.Prev=s;l=document.createTextNode("\t\t\t");n.appendChild(l);c=document.createElement("span");n.appendChild(c);rslt="";rslt+="input-group-addon";c.setAttribute("class",rslt);s=this.Prev=c,function(n){var t=document.createTextNode("to");n.appendChild(t)}.call(this,s);this.Prev=s;a=document.createTextNode("\t\t\t");n.appendChild(a);h=document.createElement("input");n.appendChild(h);rslt="";rslt+="text";h.setAttribute("type",rslt);rslt="";rslt+=((o?o:r)?o?o:r:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");h.setAttribute("id",rslt);rslt="";rslt+=(r?r:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");h.setAttribute("name",rslt);rslt="";rslt+=((u?moment(u).format("DD/MM/YYYY"):"")?u?moment(u).format("DD/MM/YYYY"):"":"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");h.setAttribute("value",rslt);rslt="";rslt+="form-control";h.setAttribute("class",rslt);rslt="";rslt+="12";h.setAttribute("maxlength",rslt);s=this.Prev=h,function(n){var i=document.createTextNode("\t\t\t\t"),t;n.appendChild(i);$(n).datepicker();t=document.createTextNode("\t\t\t");n.appendChild(t)}.call(this,s);this.Prev=s;v=document.createTextNode("\t\t");n.appendChild(v)}.call(this,s);this.Prev=s;a=document.createTextNode("\t");n.appendChild(a)}.call(this,h);this.Prev=h};this.BootstrapHidden=function(n,t,i,r){var u=document.createElement("input"),f;n.appendChild(u);rslt="";rslt+="hidden";u.setAttribute("type",rslt);rslt="";rslt+=(i?i:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");u.setAttribute("value",rslt);rslt="";rslt+=((r?r:t)?r?r:t:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");u.setAttribute("id",rslt);rslt="";rslt+=(t?t:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");u.setAttribute("name",rslt);this.Prev=u;f=document.createTextNode(" ");n.appendChild(f)};this.BootstrapTextArea=function(n,t,i,r,u,f){var e,o;u=u?u:5;e=document.createElement("div");n.appendChild(e);rslt="";rslt+="form-group";e.setAttribute("class",rslt);o=this.Prev=e,function(n){var l=document.createTextNode("\t\t"),s,h,e,o,c;n.appendChild(l);s=document.createElement("label");n.appendChild(s);rslt="";rslt+=((f?f:t)?f?f:t:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");s.setAttribute("for",rslt);o=this.Prev=s,function(n){n.insertAdjacentHTML("beforeend",((r?r:t!==null&&typeof(r?r:t)!="undefined")?r?r:t:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"))}.call(this,o);this.Prev=o;h=document.createTextNode("\t\t");n.appendChild(h);e=document.createElement("textarea");n.appendChild(e);rslt="";rslt+=(t?t:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");e.setAttribute("name",rslt);rslt="";rslt+=((f?f:t)?f?f:t:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");e.setAttribute("id",rslt);rslt="";rslt+=(u?u:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");e.setAttribute("rows",rslt);rslt="";rslt+="form-control";e.setAttribute("class",rslt);o=this.Prev=e,function(n){n.insertAdjacentHTML("beforeend",((i?i.toString():!0&&typeof(i?i.toString():"")!="undefined")?i?i.toString():"":"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"))}.call(this,o);this.Prev=o;c=document.createTextNode("\t");n.appendChild(c)}.call(this,o);this.Prev=o};this.BootstrapText=function(n,t,i,r,u){var f=document.createElement("div"),e;n.appendChild(f);rslt="";rslt+="form-group";f.setAttribute("class",rslt);e=this.Prev=f,function(n){var c=document.createTextNode("\t\t"),o,s,e,f,h;n.appendChild(c);o=document.createElement("label");n.appendChild(o);f=this.Prev=o,function(n){n.insertAdjacentHTML("beforeend",((r?r:t!==null&&typeof(r?r:t)!="undefined")?r?r:t:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"))}.call(this,f);this.Prev=f;s=document.createTextNode("\t\t");n.appendChild(s);e=document.createElement("div");n.appendChild(e);rslt="";rslt+=((u?u:t)?u?u:t:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");e.setAttribute("id",rslt);rslt="";rslt+="form-control-static";e.setAttribute("class",rslt);f=this.Prev=e,function(n){n.insertAdjacentHTML("beforeend",(i!==null&&typeof i!="undefined"?i:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"))}.call(this,f);this.Prev=f;h=document.createTextNode("\t");n.appendChild(h)}.call(this,e);this.Prev=e};this.BootstrapTextLink=function(n,t,i,r,u,f){var e=document.createElement("div"),o;n.appendChild(e);rslt="";rslt+="form-group";e.setAttribute("class",rslt);o=this.Prev=e,function(n){var l=document.createTextNode("\t    "),s,h,o,e,c;n.appendChild(l);s=document.createElement("label");n.appendChild(s);e=this.Prev=s,function(n){n.insertAdjacentHTML("beforeend",((r?r:t!==null&&typeof(r?r:t)!="undefined")?r?r:t:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"))}.call(this,e);this.Prev=e;h=document.createTextNode("\t    ");n.appendChild(h);o=document.createElement("div");n.appendChild(o);rslt="";rslt+=((f?f:t)?f?f:t:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");o.setAttribute("id",rslt);rslt="";rslt+="form-control-static";o.setAttribute("class",rslt);e=this.Prev=o,function(n){var t=document.createElement("a"),r;n.appendChild(t);rslt="";rslt+=(u?u:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");t.setAttribute("href",rslt);r=this.Prev=t,function(n){n.insertAdjacentHTML("beforeend",(i!==null&&typeof i!="undefined"?i:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"))}.call(this,r);this.Prev=r}.call(this,e);this.Prev=e;c=document.createTextNode("\t");n.appendChild(c)}.call(this,o);this.Prev=o};this.BootstrapDropDown=function(n,t,i,r,u,f){var e=document.createElement("div"),o;n.appendChild(e);rslt="";rslt+="form-group";e.setAttribute("class",rslt);o=this.Prev=e,function(n){var a=document.createTextNode("\t"),s,h,c,o,e,l;n.appendChild(a);r!==""&&(s=document.createElement("label"),n.appendChild(s),rslt="",rslt+=((f?f:t)?f?f:t:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),s.setAttribute("for",rslt),e=this.Prev=s,function(n){n.insertAdjacentHTML("beforeend",((r?r:t!==null&&typeof(r?r:t)!="undefined")?r?r:t:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"))}.call(this,e),this.Prev=e,h=document.createTextNode("\t"),n.appendChild(h));c=document.createTextNode("    ");n.appendChild(c);o=document.createElement("select");n.appendChild(o);rslt="";rslt+=((f?f:t)?f?f:t:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");o.setAttribute("id",rslt);rslt="";rslt+="form-control";o.setAttribute("class",rslt);rslt="";rslt+=(t?t:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");o.setAttribute("name",rslt);e=this.Prev=o,function(n){var c=document.createTextNode("\t"),r,t,f,e,o,s,h;for(n.appendChild(c),r=0;r<u.length;r++)t=u[r],f=document.createElement("option"),n.appendChild(f),rslt="",rslt+=(t.Value.toString()?t.Value.toString():"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),f.setAttribute("value",rslt),e=this.Prev=f,function(n){n.insertAdjacentHTML("beforeend",(t.Text!==null&&typeof t.Text!="undefined"?t.Text:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"))}.call(this,e),this.Prev=e,o=document.createTextNode("\t\t"),n.appendChild(o),t.Value==i&&this.Prev.setAttribute("selected","selected"),s=document.createTextNode("\t"),n.appendChild(s);h=document.createTextNode("\t");n.appendChild(h)}.call(this,e);this.Prev=e;l=document.createTextNode("  ");n.appendChild(l)}.call(this,o);this.Prev=o};this.BootstrapSubmit=function(n,t,i,r,u){var f=document.createElement("button"),e;n.appendChild(f);rslt="";rslt+=((r?r:t)?r?r:t:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");f.setAttribute("id",rslt);rslt="";rslt+=(t?t:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");f.setAttribute("name",rslt);rslt="";rslt+="btn ";rslt+=(u||"btn-primary"?u||"btn-primary":"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");f.setAttribute("class",rslt);rslt="";rslt+="submit";f.setAttribute("type",rslt);e=this.Prev=f,function(n){n.insertAdjacentHTML("beforeend",(i!==null&&typeof i!="undefined"?i:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"))}.call(this,e);this.Prev=e};this.BootstrapIcon=function(n,t){var i=document.createElement("span"),r;n.appendChild(i);rslt="";rslt+="glyphicon ";rslt+=(t?t:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");i.setAttribute("class",rslt);rslt="";rslt+="true";i.setAttribute("'aria-hidden",rslt);r=this.Prev=i,function(){}.call(this,r);this.Prev=r};this.BootstrapAlert=function(n,t,i){var r=document.createElement("div"),u;n.appendChild(r);rslt="";rslt+="alert ";rslt+=(i||"alert-info"?i||"alert-info":"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");r.setAttribute("class",rslt);u=this.Prev=r,function(n){n.insertAdjacentHTML("beforeend",(t!==null&&typeof t!="undefined"?t:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"))}.call(this,u);this.Prev=u};this.render=function(){};this.$Dialect="dom"}function BootstrapHelpers(){this.Hidden=function(n,t,i){var r=document.createElement("input");n.appendChild(r);rslt="";rslt+=(t?t:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");r.setAttribute("name",rslt);rslt="";rslt+="hidden";r.setAttribute("type",rslt);rslt="";rslt+=(i?i:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");r.setAttribute("value",rslt);this.Prev=r};this.BootstrapHeading=function(n,t,i,r){var u,f;r=r||3;u=document.createElement("div");n.appendChild(u);f=this.Prev=u,function(n){var h=document.createTextNode("        "),e,u,f,o,s;n.appendChild(h);n.insertAdjacentHTML("beforeend",("<h"+r+">"+t+"<\/h"+r+">").toString());e=document.createTextNode("        ");n.appendChild(e);i&&(u=document.createElement("p"),n.appendChild(u),f=this.Prev=u,function(n){n.insertAdjacentHTML("beforeend",(i!==null&&typeof i!="undefined"?i:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"))}.call(this,f),this.Prev=f,o=document.createTextNode("        "),n.appendChild(o));s=document.createTextNode("    ");n.appendChild(s)}.call(this,f);this.Prev=f};this.BootstrapTextBox=function(n,t,i,r,u,f){var e,o;f||(f={});f["class"]?f["class"]+=" form-control":f["class"]="form-control";f.id||(f.id=t);e=document.createElement("div");n.appendChild(e);rslt="";rslt+="form-group";e.setAttribute("class",rslt);o=this.Prev=e,function(n){var b=document.createTextNode("\t\t"),s,l,o,a,v,c,y,h,e,p,w;n.appendChild(b);r&&r!==""&&(s=document.createElement("label"),n.appendChild(s),rslt="",rslt+=(f.id?f.id:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),s.setAttribute("for",rslt),e=this.Prev=s,function(n){n.insertAdjacentHTML("beforeend",((r?r:t!==null&&typeof(r?r:t)!="undefined")?r?r:t:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"))}.call(this,e),this.Prev=e,l=document.createTextNode("\t\t"),n.appendChild(l));o=document.createElement("input");n.appendChild(o);rslt="";rslt+="text";o.setAttribute("type",rslt);rslt="";rslt+=(t?t:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");o.setAttribute("name",rslt);rslt="";rslt+=((i?i.toString():"")?i?i.toString():"":"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");o.setAttribute("value",rslt);this.Prev=o;a=document.createTextNode("\t\t");n.appendChild(a);v=document.createTextNode("\t\t");n.appendChild(v);c=$(this.Prev);$.each(f,function(n,t){c.attr(n,t);n=="class"&&t.indexOf("jquery-calendar")>=0&&c.datepicker({changeYear:!0,yearRange:"c-3:c+3"})});y=document.createTextNode("\t\t");n.appendChild(y);u&&u!==""&&u!==null&&(h=document.createElement("p"),n.appendChild(h),rslt="",rslt+="help-block",h.setAttribute("class",rslt),e=this.Prev=h,function(n){n.insertAdjacentHTML("beforeend",(u!==null&&typeof u!="undefined"?u:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"))}.call(this,e),this.Prev=e,p=document.createTextNode("\t\t"),n.appendChild(p));w=document.createTextNode("  ");n.appendChild(w)}.call(this,o);this.Prev=o};this.BootstrapCheckBox=function(n,t,i,r,u,f,e){var o,s;e||(e={});e.id||(e.id=t);o=document.createElement("div");n.appendChild(o);rslt="";rslt+="checkbox";o.setAttribute("class",rslt);s=this.Prev=o,function(n){var c=document.createElement("label"),l,a,s,v,y,h,o,p,w;n.appendChild(c);o=this.Prev=c,function(n){var u=document.createElement("input"),h,c,f,o,s,l,a;n.appendChild(u);rslt="";rslt+="checkbox";u.setAttribute("type",rslt);rslt="";rslt+=(t?t:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");u.setAttribute("name",rslt);rslt="";rslt+="true";u.setAttribute("value",rslt);this.Prev=u;h=document.createTextNode("\t\t    ");n.appendChild(h);c=document.createTextNode("\t\t\t");n.appendChild(c);f=$(this.Prev);i&&f.attr("checked","checked");$.each(e,function(n,t){f.attr(n,t)});o=document.createElement("span");n.appendChild(o);s=this.Prev=o,function(n){n.insertAdjacentHTML("beforeend",((r?r:t!==null&&typeof(r?r:t)!="undefined")?r?r:t:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"))}.call(this,s);this.Prev=s;l=document.createTextNode("\t\t\t");n.appendChild(l);a=document.createTextNode("\t\t");n.appendChild(a)}.call(this,o);this.Prev=o;l=document.createTextNode("\t\t");n.appendChild(l);a=document.createTextNode("\t\t");n.appendChild(a);f&&f!==""&&f!==null&&(s=document.createElement("p"),n.appendChild(s),rslt="",rslt+="help-block",s.setAttribute("class",rslt),o=this.Prev=s,function(n){n.insertAdjacentHTML("beforeend",(f!==null&&typeof f!="undefined"?f:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"))}.call(this,o),this.Prev=o,v=document.createTextNode("\t\t"),n.appendChild(v));y=document.createTextNode("\t\t");n.appendChild(y);u&&u!==""&&u!==null&&(h=document.createElement("p"),n.appendChild(h),o=this.Prev=h,function(n){n.insertAdjacentHTML("beforeend",(f!==null&&typeof f!="undefined"?f:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"))}.call(this,o),this.Prev=o,p=document.createTextNode("\t\t"),n.appendChild(p));w=document.createTextNode("  ");n.appendChild(w)}.call(this,s);this.Prev=s};this.BootstrapDatePicker=function(n,t,i,r,u,f){var e,o;f||(f={});f["class"]?f["class"]+=" form-control":f["class"]="form-control";f.id||(f.id=t);f.maxlength||(f.maxlength="12");e=document.createElement("div");n.appendChild(e);rslt="";rslt+="form-group";e.setAttribute("class",rslt);o=this.Prev=e,function(n){var h=document.createElement("label"),l,o,a,v,c,y,s,e,p,w;n.appendChild(h);rslt="";rslt+=(f.id?f.id:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");h.setAttribute("for",rslt);e=this.Prev=h,function(n){n.insertAdjacentHTML("beforeend",((r?r:t!==null&&typeof(r?r:t)!="undefined")?r?r:t:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"))}.call(this,e);this.Prev=e;l=document.createTextNode("\t\t");n.appendChild(l);o=document.createElement("input");n.appendChild(o);rslt="";rslt+="text";o.setAttribute("type",rslt);rslt="";rslt+=(t?t:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");o.setAttribute("name",rslt);rslt="";rslt+=((i?moment(i).format("DD/MM/YYYY"):"")?i?moment(i).format("DD/MM/YYYY"):"":"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");o.setAttribute("value",rslt);this.Prev=o;a=document.createTextNode("\t\t");n.appendChild(a);v=document.createTextNode("\t\t");n.appendChild(v);c=$(this.Prev);$.each(f,function(n,t){c.attr(n,t)});c.datepicker({changeYear:!0,yearRange:"c-3:c+3"});y=document.createTextNode("\t\t");n.appendChild(y);u&&u!=""&&u!=null&&(s=document.createElement("p"),n.appendChild(s),rslt="",rslt+="help-block",s.setAttribute("class",rslt),e=this.Prev=s,function(n){n.insertAdjacentHTML("beforeend",(u!==null&&typeof u!="undefined"?u:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"))}.call(this,e),this.Prev=e,p=document.createTextNode("\t\t"),n.appendChild(p));w=document.createTextNode("\t");n.appendChild(w)}.call(this,o);this.Prev=o};this.BootstrapDateRange=function(n,t,i,r,u,f,e,o,s){var h,c;o||(o={});o["class"]?o["class"]+=" form-control":o["class"]="form-control";o.id||(o.id=t);o.maxlength||(o.maxlength="12");s||(s={});s["class"]?s["class"]+=" form-control":s["class"]="form-control";s.id||(s.id=r);s.maxlength||(s.maxlength="12");h=document.createElement("div");n.appendChild(h);rslt="";rslt+="form-group";h.setAttribute("class",rslt);c=this.Prev=h,function(n){var a=document.createElement("label"),v,c,y,p,l,h,w,b;n.appendChild(a);h=this.Prev=a,function(n){n.insertAdjacentHTML("beforeend",((f?f:name!==null&&typeof(f?f:name)!="undefined")?f?f:name:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"))}.call(this,h);this.Prev=h;v=document.createTextNode("\t\t");n.appendChild(v);c=document.createElement("div");n.appendChild(c);rslt="";rslt+="input-group";c.setAttribute("class",rslt);h=this.Prev=c,function(n){var h=document.createElement("input"),a,v,c,l,y,e,p,w,f,b;n.appendChild(h);rslt="";rslt+="text";h.setAttribute("type",rslt);rslt="";rslt+=(t?t:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");h.setAttribute("name",rslt);rslt="";rslt+=((i?moment(i).format("DD/MM/YYYY"):"")?i?moment(i).format("DD/MM/YYYY"):"":"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");h.setAttribute("value",rslt);this.Prev=h;a=document.createTextNode("\t\t\t");n.appendChild(a);v=document.createTextNode("\t\t\t");n.appendChild(v);f=$(this.Prev);$.each(o,function(n,t){f.attr(n,t)});f.datepicker({changeYear:!0,yearRange:"c-3:c+3"});c=document.createElement("span");n.appendChild(c);rslt="";rslt+="input-group-addon";c.setAttribute("class",rslt);l=this.Prev=c,function(n){var t=document.createTextNode("to");n.appendChild(t)}.call(this,l);this.Prev=l;y=document.createTextNode("\t\t\t");n.appendChild(y);e=document.createElement("input");n.appendChild(e);rslt="";rslt+="text";e.setAttribute("type",rslt);rslt="";rslt+=(r?r:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");e.setAttribute("name",rslt);rslt="";rslt+=((u?moment(u).format("DD/MM/YYYY"):"")?u?moment(u).format("DD/MM/YYYY"):"":"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");e.setAttribute("value",rslt);this.Prev=e;p=document.createTextNode("\t\t\t");n.appendChild(p);w=document.createTextNode("\t\t\t");n.appendChild(w);f=$(this.Prev);$.each(s,function(n,t){f.attr(n,t)});f.datepicker({changeYear:!0,yearRange:"c-3:c+3"});b=document.createTextNode("\t\t");n.appendChild(b)}.call(this,h);this.Prev=h;y=document.createTextNode("\t\t");n.appendChild(y);p=document.createTextNode("\t\t");n.appendChild(p);e&&e!=""&&e!=null&&(l=document.createElement("p"),n.appendChild(l),rslt="",rslt+="help-block",l.setAttribute("class",rslt),h=this.Prev=l,function(n){n.insertAdjacentHTML("beforeend",(e!==null&&typeof e!="undefined"?e:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"))}.call(this,h),this.Prev=h,w=document.createTextNode("\t\t"),n.appendChild(w));b=document.createTextNode("\t");n.appendChild(b)}.call(this,c);this.Prev=c};this.BootstrapHidden=function(n,t,i,r){var u=document.createElement("input"),f;n.appendChild(u);rslt="";rslt+="hidden";u.setAttribute("type",rslt);rslt="";rslt+=(i?i:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");u.setAttribute("value",rslt);rslt="";rslt+=((r?r:t)?r?r:t:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");u.setAttribute("id",rslt);rslt="";rslt+=(t?t:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");u.setAttribute("name",rslt);this.Prev=u;f=document.createTextNode(" ");n.appendChild(f)};this.BootstrapTextArea=function(n,t,i,r,u,f,e,o){var s,h;o||(o={});o["class"]?o["class"]+=" form-control":o["class"]="form-control";o.id||(o.id=t);o.rows=f||"5";o.cols=e||"20";s=document.createElement("div");n.appendChild(s);rslt="";rslt+="form-group";s.setAttribute("class",rslt);h=this.Prev=s,function(n){var h=document.createElement("label"),c,e,l,a,v,y,s,f,p,w;n.appendChild(h);rslt="";rslt+=(o.id?o.id:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");h.setAttribute("for",rslt);f=this.Prev=h,function(n){n.insertAdjacentHTML("beforeend",((r?r:t!==null&&typeof(r?r:t)!="undefined")?r?r:t:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"))}.call(this,f);this.Prev=f;c=document.createTextNode("\t\t");n.appendChild(c);e=document.createElement("textarea");n.appendChild(e);rslt="";rslt+=(t?t:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");e.setAttribute("name",rslt);f=this.Prev=e,function(n){n.insertAdjacentHTML("beforeend",((i?i.toString():!0&&typeof(i?i.toString():"")!="undefined")?i?i.toString():"":"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"))}.call(this,f);this.Prev=f;l=document.createTextNode("\t\t");n.appendChild(l);a=document.createTextNode("\t\t");n.appendChild(a);v=$(this.Prev);$.each(o,function(n,t){v.attr(n,t)});y=document.createTextNode("\t\t");n.appendChild(y);u&&u!=""&&u!=null&&(s=document.createElement("p"),n.appendChild(s),rslt="",rslt+="help-block",s.setAttribute("class",rslt),f=this.Prev=s,function(n){n.insertAdjacentHTML("beforeend",(u!==null&&typeof u!="undefined"?u:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"))}.call(this,f),this.Prev=f,p=document.createTextNode("\t\t"),n.appendChild(p));w=document.createTextNode("\t");n.appendChild(w)}.call(this,h);this.Prev=h};this.BootstrapText=function(n,t,i,r,u){var f,e;u||(u={});u["class"]?u["class"]+=" form-control-static":u["class"]="form-control-static";f=document.createElement("div");n.appendChild(f);rslt="";rslt+="form-group";f.setAttribute("class",rslt);e=this.Prev=f,function(n){var s=document.createElement("label"),h,o,c,l,a,v,e,f,y,p;n.appendChild(s);f=this.Prev=s,function(n){n.insertAdjacentHTML("beforeend",((i?i:name!==null&&typeof(i?i:name)!="undefined")?i?i:name:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"))}.call(this,f);this.Prev=f;h=document.createTextNode("\t\t");n.appendChild(h);o=document.createElement("p");n.appendChild(o);f=this.Prev=o,function(n){n.insertAdjacentHTML("beforeend",(t!==null&&typeof t!="undefined"?t:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"))}.call(this,f);this.Prev=f;c=document.createTextNode("\t\t");n.appendChild(c);l=document.createTextNode("\t\t");n.appendChild(l);a=$(this.Prev);$.each(u,function(n,t){a.attr(n,t)});v=document.createTextNode("\t\t");n.appendChild(v);r&&r!=""&&r!=null&&(e=document.createElement("p"),n.appendChild(e),rslt="",rslt+="help-block",e.setAttribute("class",rslt),f=this.Prev=e,function(n){n.insertAdjacentHTML("beforeend",(r!==null&&typeof r!="undefined"?r:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"))}.call(this,f),this.Prev=f,y=document.createTextNode("\t\t"),n.appendChild(y));p=document.createTextNode("\t");n.appendChild(p)}.call(this,e);this.Prev=e};this.BootstrapTextHorizontal=function(n,t,i,r,u,f,e){var o=document.createElement("div"),s;n.appendChild(o);rslt="";rslt+="form-group";o.setAttribute("class",rslt);s=this.Prev=o,function(n){var h=document.createElement("label"),c,s,o,l,a;n.appendChild(h);rslt="";rslt+="control-label ";rslt+=((f?f:"col-xs-12 col-md-4")?f?f:"col-xs-12 col-md-4":"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");h.setAttribute("class",rslt);o=this.Prev=h,function(n){n.insertAdjacentHTML("beforeend",((r?r:t!==null&&typeof(r?r:t)!="undefined")?r?r:t:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"))}.call(this,o);this.Prev=o;c=document.createTextNode("\t\t");n.appendChild(c);s=document.createElement("div");n.appendChild(s);rslt="";rslt+=((e?e:"col-xs-12 col-md-8")?e?e:"col-xs-12 col-md-8":"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");s.setAttribute("class",rslt);o=this.Prev=s,function(n){var r=document.createElement("p"),f,e,o;n.appendChild(r);rslt="";rslt+=((u?u:t)?u?u:t:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");r.setAttribute("id",rslt);rslt="";rslt+="form-control-static";r.setAttribute("class",rslt);f=this.Prev=r,function(n){n.insertAdjacentHTML("beforeend",(i!==null&&typeof i!="undefined"?i:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"))}.call(this,f);this.Prev=f;e=document.createTextNode("\t\t\t");n.appendChild(e);o=document.createTextNode("\t\t");n.appendChild(o)}.call(this,o);this.Prev=o;l=document.createTextNode("\t\t");n.appendChild(l);a=document.createTextNode("\t");n.appendChild(a)}.call(this,s);this.Prev=s};this.BootstrapTextLink=function(n,t,i,r,u,f){var e,o;f||(f={});e=document.createElement("div");n.appendChild(e);rslt="";rslt+="form-group";e.setAttribute("class",rslt);o=this.Prev=e,function(n){var h=document.createElement("label"),c,s,l,a,o,e,v,y;n.appendChild(h);e=this.Prev=h,function(n){n.insertAdjacentHTML("beforeend",((r?r:name!==null&&typeof(r?r:name)!="undefined")?r?r:name:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"))}.call(this,e);this.Prev=e;c=document.createTextNode("\t    ");n.appendChild(c);s=document.createElement("div");n.appendChild(s);e=this.Prev=s,function(n){var r=document.createElement("p"),u,e,o;n.appendChild(r);rslt="";rslt+="form-control-static";r.setAttribute("class",rslt);u=this.Prev=r,function(n){var r=document.createElement("a"),u,e,o,s,h;n.appendChild(r);rslt="";rslt+=(i?i:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");r.setAttribute("href",rslt);u=this.Prev=r,function(n){n.insertAdjacentHTML("beforeend",(t!==null&&typeof t!="undefined"?t:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"))}.call(this,u);this.Prev=u;e=document.createTextNode("\t\t\t\t");n.appendChild(e);o=document.createTextNode("\t\t\t\t");n.appendChild(o);s=$(this.Prev);$.each(f,function(n,t){s.attr(n,t)});h=document.createTextNode("\t\t\t");n.appendChild(h)}.call(this,u);this.Prev=u;e=document.createTextNode("\t\t\t");n.appendChild(e);o=document.createTextNode("\t\t");n.appendChild(o)}.call(this,e);this.Prev=e;l=document.createTextNode("\t\t");n.appendChild(l);a=document.createTextNode("\t\t");n.appendChild(a);u&&u!=""&&u!=null&&(o=document.createElement("p"),n.appendChild(o),rslt="",rslt+="help-block",o.setAttribute("class",rslt),e=this.Prev=o,function(n){n.insertAdjacentHTML("beforeend",(u!==null&&typeof u!="undefined"?u:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"))}.call(this,e),this.Prev=e,v=document.createTextNode("\t\t"),n.appendChild(v));y=document.createTextNode("\t");n.appendChild(y)}.call(this,o);this.Prev=o};this.BootstrapDropDownList=function(n,t,i,r,u,f,e){var o,s;e||(e={});e["class"]?e["class"]+=" form-control":e["class"]="form-control";e.id||(e.id=t);o=document.createElement("div");n.appendChild(o);rslt="";rslt+="form-group";o.setAttribute("class",rslt);s=this.Prev=o,function(n){var k=document.createTextNode("\t\t"),s,l,h,a,v,y,p,c,o,w,b;n.appendChild(k);u!==""&&(s=document.createElement("label"),n.appendChild(s),rslt="",rslt+=(e.id?e.id:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),s.setAttribute("for",rslt),o=this.Prev=s,function(n){n.insertAdjacentHTML("beforeend",((u?u:t!==null&&typeof(u?u:t)!="undefined")?u?u:t:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"))}.call(this,o),this.Prev=o,l=document.createTextNode("\t\t"),n.appendChild(l));h=document.createElement("select");n.appendChild(h);rslt="";rslt+=(t?t:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");h.setAttribute("name",rslt);o=this.Prev=h,function(n){var c=document.createTextNode("\t\t"),u,t,f,e,o,s,h;for(n.appendChild(c),u=0;u<i.length;u++)t=i[u],f=document.createElement("option"),n.appendChild(f),rslt="",rslt+=(t.Value.toString()?t.Value.toString():"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),f.setAttribute("value",rslt),e=this.Prev=f,function(n){n.insertAdjacentHTML("beforeend",(t.Text!==null&&typeof t.Text!="undefined"?t.Text:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"))}.call(this,e),this.Prev=e,o=document.createTextNode("\t\t\t"),n.appendChild(o),t.Value==r&&this.Prev.setAttribute("selected","selected"),s=document.createTextNode("\t\t"),n.appendChild(s);h=document.createTextNode("\t\t");n.appendChild(h)}.call(this,o);this.Prev=o;a=document.createTextNode("\t\t");n.appendChild(a);v=document.createTextNode("\t\t");n.appendChild(v);y=$(this.Prev);$.each(e,function(n,t){y.attr(n,t)});p=document.createTextNode("\t\t");n.appendChild(p);f&&f!=""&&f!=null&&(c=document.createElement("p"),n.appendChild(c),rslt="",rslt+="help-block",c.setAttribute("class",rslt),o=this.Prev=c,function(n){n.insertAdjacentHTML("beforeend",(f!==null&&typeof f!="undefined"?f:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"))}.call(this,o),this.Prev=o,w=document.createTextNode("\t\t"),n.appendChild(w));b=document.createTextNode("\t");n.appendChild(b)}.call(this,s);this.Prev=s};this.BootstrapSubmit=function(n,t,i,r,u){var f,e,o,s;u||(u={});u["class"]?u["class"]+=" btn btn-primary":u["class"]="btn btn-primary";u.id||(u.id=i);u.type||(u.type=r||"submit");f=document.createElement("button");n.appendChild(f);rslt="";rslt+=(i||"submit"?i||"submit":"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");f.setAttribute("name",rslt);e=this.Prev=f,function(n){n.insertAdjacentHTML("beforeend",(t!==null&&typeof t!="undefined"?t:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"))}.call(this,e);this.Prev=e;o=document.createTextNode("\t");n.appendChild(o);s=$(this.Prev);$.each(u,function(n,t){s.attr(n,t)})};this.BootstrapIcon=function(n,t){var r,f,u,i,e;t&&(t.startsWith("fa-")?(r=document.createElement("i"),n.appendChild(r),rslt="",rslt+="fa ",rslt+=(t?t:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),r.setAttribute("class",rslt),rslt="",rslt+="true",r.setAttribute("aria-hidden",rslt),i=this.Prev=r,function(){}.call(this,i),this.Prev=i,f=document.createTextNode("\t\t"),n.appendChild(f)):t.startsWith("glyphicon-")&&(u=document.createElement("span"),n.appendChild(u),rslt="",rslt+="glyphicon ",rslt+=(t?t:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),u.setAttribute("class",rslt),rslt="",rslt+="true",u.setAttribute("aria-hidden",rslt),i=this.Prev=u,function(){}.call(this,i),this.Prev=i,e=document.createTextNode("\t\t"),n.appendChild(e)))};this.BootstrapAlert=function(n,t,i,r){var u,f,e,o,s;r||(r={});u="alert "+(i||"alert-info");r["class"]?r["class"]+=" "+u:r["class"]=u;f=document.createElement("div");n.appendChild(f);e=this.Prev=f,function(n){n.insertAdjacentHTML("beforeend",(t!==null&&typeof t!="undefined"?t:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"))}.call(this,e);this.Prev=e;o=document.createTextNode("\t");n.appendChild(o);s=$(this.Prev);$.each(r,function(n,t){s.attr(n,t)})};this.render=function(){};this.$Dialect="dom"}function Pines(){this.Hidden=function(n,t,i,r){var u=document.createElement("input");n.appendChild(u);rslt="";rslt+="hidden";u.setAttribute("type",rslt);rslt="";rslt+=(i?i:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");u.setAttribute("value",rslt);rslt="";rslt+=(t?t:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");u.setAttribute("name",rslt);rslt="";rslt+=(t||r?t||r:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");u.setAttribute("id",rslt);this.Prev=u};this.Heading=function(n,t,i,r){var u,f;r=r||3;u=document.createElement("div");n.appendChild(u);rslt="";rslt+="pf-element pf-heading";u.setAttribute("class",rslt);f=this.Prev=u,function(n){var h=document.createTextNode("        "),e,u,f,o,s;n.appendChild(h);n.insertAdjacentHTML("beforeend",("<h"+r+">"+t+"<\/h"+r+">").toString());e=document.createTextNode("        ");n.appendChild(e);i&&(u=document.createElement("p"),n.appendChild(u),f=this.Prev=u,function(n){n.insertAdjacentHTML("beforeend",(i!==null&&typeof i!="undefined"?i:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"))}.call(this,f),this.Prev=f,o=document.createTextNode("        "),n.appendChild(o));s=document.createTextNode("    ");n.appendChild(s)}.call(this,f);this.Prev=f};this.Text=function(n,t,i,r,u,f){var e=document.createElement("div"),o;n.appendChild(e);rslt="";rslt+="pf-element";e.setAttribute("class",rslt);o=this.Prev=e,function(n){var o=document.createElement("span"),s,h,e,c,l,a;n.appendChild(o);rslt="";rslt+="pf-label";o.setAttribute("class",rslt);s=this.Prev=o,function(n){n.insertAdjacentHTML("beforeend",((r?r:t!==null&&typeof(r?r:t)!="undefined")?r?r:t:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"))}.call(this,s);this.Prev=s;h=document.createTextNode("    ");n.appendChild(h);e=document.createElement("input");n.appendChild(e);rslt="";rslt+="text";e.setAttribute("type",rslt);rslt="";rslt+=((u?u:t)?u?u:t:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");e.setAttribute("id",rslt);rslt="";rslt+=(t?t:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");e.setAttribute("name",rslt);rslt="";rslt+=((i?i.toString():"")?i?i.toString():"":"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");e.setAttribute("value",rslt);rslt="";rslt+="pf-field ";rslt+=(f?f:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");e.setAttribute("class",rslt);this.Prev=e;c=document.createTextNode("    ");n.appendChild(c);l=document.createTextNode("\t");n.appendChild(l);f=="jquery-calendar"&&$(this.Prev).datepicker({changeYear:!0,yearRange:"c-3:c+3"});a=document.createTextNode("  ");n.appendChild(a)}.call(this,o);this.Prev=o};this.CheckBox=function(n,t,i,r,u){var f=document.createElement("div"),e;n.appendChild(f);rslt="";rslt+="pf-element";f.setAttribute("class",rslt);e=this.Prev=f,function(n){var o=document.createElement("span"),s,h,f,c,l,e,a,v;n.appendChild(o);rslt="";rslt+="pf-label";o.setAttribute("class",rslt);s=this.Prev=o,function(n){n.insertAdjacentHTML("beforeend",((r?r:t!==null&&typeof(r?r:t)!="undefined")?r?r:t:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"))}.call(this,s);this.Prev=s;h=document.createTextNode("    ");n.appendChild(h);f=document.createElement("input");n.appendChild(f);rslt="";rslt+="checkbox";f.setAttribute("type",rslt);rslt="";rslt+=((u?u:t)?u?u:t:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");f.setAttribute("id",rslt);rslt="";rslt+=(t?t:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");f.setAttribute("name",rslt);rslt="";rslt+="pf-field";f.setAttribute("class",rslt);rslt="";rslt+="true";f.setAttribute("value",rslt);this.Prev=f;c=document.createTextNode("    ");n.appendChild(c);l=document.createTextNode("\t");n.appendChild(l);i&&this.Prev.setAttribute("checked","checked");e=document.createElement("input");n.appendChild(e);rslt="";rslt+="hidden";e.setAttribute("type",rslt);rslt="";rslt+=(t?t:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");e.setAttribute("name",rslt);rslt="";rslt+="false";e.setAttribute("value",rslt);this.Prev=e;a=document.createTextNode("\t");n.appendChild(a);v=document.createTextNode("  ");n.appendChild(v)}.call(this,e);this.Prev=e};this.DatePicker=function(n,t,i,r,u){var f=document.createElement("div"),e;n.appendChild(f);rslt="";rslt+="pf-element";f.setAttribute("class",rslt);e=this.Prev=f,function(n){var o=document.createElement("span"),s,f,e,h,c;n.appendChild(o);rslt="";rslt+="pf-label";o.setAttribute("class",rslt);e=this.Prev=o,function(n){n.insertAdjacentHTML("beforeend",((r?r:t!==null&&typeof(r?r:t)!="undefined")?r?r:t:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"))}.call(this,e);this.Prev=e;s=document.createTextNode("    ");n.appendChild(s);f=document.createElement("input");n.appendChild(f);rslt="";rslt+="text";f.setAttribute("type",rslt);rslt="";rslt+=((u?u:t)?u?u:t:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");f.setAttribute("id",rslt);rslt="";rslt+=(t?t:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");f.setAttribute("name",rslt);rslt="";rslt+=(moment(i).format("DD/MM/YYYY")?moment(i).format("DD/MM/YYYY"):"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");f.setAttribute("value",rslt);rslt="";rslt+="pf-field";f.setAttribute("class",rslt);e=this.Prev=f,function(n){var i=document.createTextNode("\t\t"),t;n.appendChild(i);$(n).datepicker();t=document.createTextNode("\t");n.appendChild(t)}.call(this,e);this.Prev=e;h=document.createTextNode("    ");n.appendChild(h);c=document.createTextNode("  ");n.appendChild(c)}.call(this,e);this.Prev=e};this.Hidden=function(n,t,i,r){var u=document.createElement("input"),f;n.appendChild(u);rslt="";rslt+="hidden";u.setAttribute("type",rslt);rslt="";rslt+=(i?i:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");u.setAttribute("value",rslt);rslt="";rslt+=((r?r:t)?r?r:t:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");u.setAttribute("id",rslt);rslt="";rslt+=(t?t:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");u.setAttribute("name",rslt);this.Prev=u;f=document.createTextNode(" ");n.appendChild(f)};this.TextArea=function(n,t,i,r,u,f,e){var o,s;u=u?u:5;f=f?f:20;o=document.createElement("div");n.appendChild(o);rslt="";rslt+="pf-element";o.setAttribute("class",rslt);s=this.Prev=o,function(n){var h=document.createElement("span"),c,o,s,l,a;n.appendChild(h);rslt="";rslt+="pf-label";h.setAttribute("class",rslt);s=this.Prev=h,function(n){n.insertAdjacentHTML("beforeend",((r?r:t!==null&&typeof(r?r:t)!="undefined")?r?r:t:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"))}.call(this,s);this.Prev=s;c=document.createTextNode("    ");n.appendChild(c);o=document.createElement("textarea");n.appendChild(o);rslt="";rslt+=(t?t:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");o.setAttribute("name",rslt);rslt="";rslt+=((e?e:t)?e?e:t:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");o.setAttribute("id",rslt);rslt="";rslt+=(u?u:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");o.setAttribute("rows",rslt);rslt="";rslt+=(f?f:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");o.setAttribute("cols",rslt);rslt="";rslt+="pf-field";o.setAttribute("class",rslt);s=this.Prev=o,function(n){n.insertAdjacentHTML("beforeend",((i?i.toString():!0&&typeof(i?i.toString():"")!="undefined")?i?i.toString():"":"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"))}.call(this,s);this.Prev=s;l=document.createTextNode("    ");n.appendChild(l);a=document.createTextNode("  ");n.appendChild(a)}.call(this,s);this.Prev=s};this.Label=function(n,t,i,r,u){var f=document.createElement("div"),e;n.appendChild(f);rslt="";rslt+="pf-element";f.setAttribute("class",rslt);e=this.Prev=f,function(n){var o=document.createElement("span"),s,e,f,h,c;n.appendChild(o);rslt="";rslt+="pf-label";o.setAttribute("class",rslt);f=this.Prev=o,function(n){n.insertAdjacentHTML("beforeend",((r?r:t!==null&&typeof(r?r:t)!="undefined")?r?r:t:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"))}.call(this,f);this.Prev=f;s=document.createTextNode("    ");n.appendChild(s);e=document.createElement("span");n.appendChild(e);rslt="";rslt+=((u?u:t)?u?u:t:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");e.setAttribute("id",rslt);rslt="";rslt+="pf-field";e.setAttribute("class",rslt);f=this.Prev=e,function(n){n.insertAdjacentHTML("beforeend",(i!==null&&typeof i!="undefined"?i:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"))}.call(this,f);this.Prev=f;h=document.createTextNode("    ");n.appendChild(h);c=document.createTextNode("  ");n.appendChild(c)}.call(this,e);this.Prev=e};this.LinkLabel=function(n,t,i,r,u,f){var e=document.createElement("div"),o;n.appendChild(e);rslt="";rslt+="pf-element";e.setAttribute("class",rslt);o=this.Prev=e,function(n){var s=document.createElement("span"),h,o,e,c,l;n.appendChild(s);rslt="";rslt+="pf-label";s.setAttribute("class",rslt);e=this.Prev=s,function(n){n.insertAdjacentHTML("beforeend",((r?r:t!==null&&typeof(r?r:t)!="undefined")?r?r:t:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"))}.call(this,e);this.Prev=e;h=document.createTextNode("    ");n.appendChild(h);o=document.createElement("span");n.appendChild(o);rslt="";rslt+=((f?f:t)?f?f:t:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");o.setAttribute("id",rslt);rslt="";rslt+="pf-field";o.setAttribute("class",rslt);e=this.Prev=o,function(n){var t=document.createElement("a"),r;n.appendChild(t);rslt="";rslt+=(u?u:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");t.setAttribute("href",rslt);r=this.Prev=t,function(n){n.insertAdjacentHTML("beforeend",(i!==null&&typeof i!="undefined"?i:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"))}.call(this,r);this.Prev=r}.call(this,e);this.Prev=e;c=document.createTextNode("    ");n.appendChild(c);l=document.createTextNode("  ");n.appendChild(l)}.call(this,o);this.Prev=o};this.DropDown=function(n,t,i,r,u,f){var e=document.createElement("div"),o;n.appendChild(e);rslt="";rslt+="pf-element";e.setAttribute("class",rslt);o=this.Prev=e,function(n){var s=document.createElement("span"),h,o,e,c,l;n.appendChild(s);rslt="";rslt+="pf-label";s.setAttribute("class",rslt);e=this.Prev=s,function(n){n.insertAdjacentHTML("beforeend",((r?r:t!==null&&typeof(r?r:t)!="undefined")?r?r:t:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"))}.call(this,e);this.Prev=e;h=document.createTextNode("    ");n.appendChild(h);o=document.createElement("select");n.appendChild(o);rslt="";rslt+=((f?f:t)?f?f:t:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");o.setAttribute("id",rslt);rslt="";rslt+="pf-field";o.setAttribute("class",rslt);rslt="";rslt+=(t?t:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");o.setAttribute("name",rslt);e=this.Prev=o,function(n){var c=document.createTextNode("\t"),r,t,f,e,o,s,h;for(n.appendChild(c),r=0;r<u.length;r++)t=u[r],f=document.createElement("option"),n.appendChild(f),rslt="",rslt+=(t.Value.toString()?t.Value.toString():"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),f.setAttribute("value",rslt),e=this.Prev=f,function(n){n.insertAdjacentHTML("beforeend",(t.Text!==null&&typeof t.Text!="undefined"?t.Text:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"))}.call(this,e),this.Prev=e,o=document.createTextNode("\t\t"),n.appendChild(o),t.Value==i&&this.Prev.setAttribute("selected","selected"),s=document.createTextNode("\t"),n.appendChild(s);h=document.createTextNode("\t");n.appendChild(h)}.call(this,e);this.Prev=e;c=document.createTextNode("    ");n.appendChild(c);l=document.createTextNode("  ");n.appendChild(l)}.call(this,o);this.Prev=o};this.Submit=function(n,t,i,r,u){var f=document.createElement("div"),e;n.appendChild(f);rslt="";rslt+="pf-element pf-buttons";f.setAttribute("class",rslt);e=this.Prev=f,function(n){var f=document.createElement("button"),e,o,s;n.appendChild(f);rslt="";rslt+=((r?r:t)?r?r:t:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");f.setAttribute("id",rslt);rslt="";rslt+=(t?t:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");f.setAttribute("name",rslt);rslt="";rslt+="pf-button ";rslt+=(u?u:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");f.setAttribute("class",rslt);rslt="";rslt+="submit";f.setAttribute("type",rslt);e=this.Prev=f,function(n){n.insertAdjacentHTML("beforeend",(i!==null&&typeof i!="undefined"?i:"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"))}.call(this,e);this.Prev=e;o=document.createTextNode("    ");n.appendChild(o);s=document.createTextNode("  ");n.appendChild(s)}.call(this,e);this.Prev=e};this.render=function(){};this.$Dialect="dom"}var ValidationMessage=function(){function n(){}return n}(),Overlay=function(){function n(n,t,i,r){this.frame=n;this.parent=t||$(document.body);this.cssClass=i||"default";this.caller=r}return n.alert=function(t,i,r,u){var f=new n(OverlayFrameAlert,null,r);f.show({Headline:t,Message:i,ButtonText:u})},n.del=function(t,i,r,u){var f=this;i=i||"Delete?";r=r||"You are about to remove a record, are you sure?";n.confirm(i,r,function(){$.ajax({type:"DELETE",url:t,success:function(t){t.Success?u():n.alert(t.Headline||"Could Not Delete.",t.Message,"warning")},dataType:"json"})},null,"info")},n.confirm=function(t,i,r,u,f){var e=new n(OverlayFrameYesNo,null,f);e.actions={Yes:function(){typeof r=="function"&&r();e.close()},No:function(){typeof u=="function"&&u();e.close()}};e.show({Headline:t,Message:i})},n.prototype.open=function(t,i,r,u){var f=this;$.ajax({type:"GET",url:t,success:function(t){if(t.Success){var e=u&&u.show?u.show:null;f.show(t,i,e,u);r&&r(t)}else n.alert("Open",t.Message,"warning")},dataType:"json"})},n.prototype.show=function(n,t,i,r){var u=this,f,e;this.overlayContainer=$("<overlayFrame><\/overlayFrame>");f=new OverlayFrameRenderer;f.Frame=this.frame;f.Container=this;f.Caller=u.caller;f.render(this.overlayContainer[0],n);e=$("form.apiForm",this.overlayContainer);e.each(function(n,i){var f=$(i);f.on("submit",function(n){var s;n.preventDefault();var i=f.serialize(),e=f.attr("action"),o=f.attr("method");r&&r.teardown&&r.teardown(u.overlayContainer);s=$.ajax({type:o||"POST",url:e,dataType:"json",data:i,success:function(n){var i,e,o,s;n.Success?t?(t(n),u.close()):u.close():(i=n.Messages||[],n.Message&&(e=new ValidationMessage,e.Message=n.Message,i.push(e)),o=f.find(".validationSummary"),o.empty(),s=new OverlayFrameValidation,s.render(o[0],i),r&&r.buildup&&r.buildup(u.overlayContainer))}})})});u.parent.append(this.overlayContainer).find("input, textarea, select").first().focus();r&&r.buildup&&r.buildup(this.overlayContainer);i&&i(u.overlayContainer)},n.prototype.close=function(){var n=this;n.OnClose&&n.OnClose(n.overlayContainer);n.overlayContainer.remove()},n}()