profoundjs 7.1.1 → 7.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,15 +1,15 @@
1
1
  function ka(){return function(b){return b}}function la(){return function(){}}function ta(b){return function(){return b}}var ua,O="dspf",xa="dspfDesigner0",za="OFF";var Ca=0,Fa=-20,Ga=[],Va=[];O=="genie"&&window.parent==window&&window.history.forward(1);window.pui={};var Wa=navigator.userAgent.toLowerCase();pui.is_edge=Wa.indexOf("edg/")!=-1;pui.is_ie=false;pui.is_opera=Wa.indexOf("opera")!=-1||Wa.indexOf("opr/")!=-1;pui.is_chrome=!pui.is_edge&&Wa.indexOf("chrome")!=-1;pui.is_safari=!pui.is_edge&&!pui.is_chrome&&Wa.indexOf("safari")!=-1;pui.is_firefox=Wa.indexOf("firefox")!=-1;pui.is_android=Wa.indexOf("android")!=-1;pui.is_quirksmode=document.compatMode=="BackCompat";
2
- pui.is_ios=Wa.indexOf("iphone")!=-1||Wa.indexOf("ipad")!=-1||Wa.indexOf("ipod")!=-1;var fb,kb,nb,ob;fb=/trident\/([0-9]{1,}[.0-9]{0,})/;ob=fb.exec(Wa);if(ob!=null)kb=parseFloat(ob[1]);if(!pui.is_opera){fb=/msie ([0-9]{1,}[.0-9]{0,})/;ob=fb.exec(Wa);if(ob!=null)nb=parseFloat(ob[1])}if(kb||nb){pui.is_ie=true;pui.ie_mode=nb||kb+4;if(pui.ie_mode<11)pui.is_old_ie=true;pui.ie_version=kb?kb+4:nb}pui.secLevel=0;pui.Hc=null;pui.tl=null;pui.ul=null;pui.defaultDateFormat="MM/DD/YY";
2
+ pui.is_ios=Wa.indexOf("iphone")!=-1||Wa.indexOf("ipad")!=-1||Wa.indexOf("ipod")!=-1;var fb,kb,nb,ob;fb=/trident\/([0-9]{1,}[.0-9]{0,})/;ob=fb.exec(Wa);if(ob!=null)kb=parseFloat(ob[1]);if(!pui.is_opera){fb=/msie ([0-9]{1,}[.0-9]{0,})/;ob=fb.exec(Wa);if(ob!=null)nb=parseFloat(ob[1])}if(kb||nb){pui.is_ie=true;pui.ie_mode=nb||kb+4;if(pui.ie_mode<11)pui.is_old_ie=true;pui.ie_version=kb?kb+4:nb}pui.secLevel=0;pui.Ic=null;pui.tl=null;pui.ul=null;pui.defaultDateFormat="MM/DD/YY";
3
3
  pui.is_touch="ontouchstart"in window;pui.touchDevice=pui.is_touch;pui.is_mouse_capable=false;pui.designer={};pui.designer["initial keywords"]=[];pui.designer.currentDisplay={};pui.ide={};pui.cloud={};pui.cloud.views={};pui.social={};pui.cnv={};pui.cnv.Pz={};pui.Df={};pui.toolbox={};pui.toolbox.add=la();pui["field exit key"]=107;pui["no connection status"]=false;pui["client side timeout"]=true;pui.uq={"*ISO":1,"*USA":2,"*EUR":3,"*JIS":4,"*MDY":5,"*DMY":6,"*YMD":7,"*JUL":8,"*JOB":10};
4
4
  pui.vq={"/":1,"-":2,".":3,",":4," ":5,"*BLANK":5,"*JOB":7};pui.wq={"*ISO":1,"*USA":2,"*EUR":3,"*JIS":4,"*HMS":9};pui.xq={".":3,",":4," ":5,"*BLANK":5,":":6,"*JOB":7};pui.fa=false;pui.zz=null;pui["function key pattern"]="^(F|CA|CF|CK|CMD)([0-9]{1,2})([=:-])(.*)$";pui["special key pattern"]="^(Enter|PageUp|PageDown|Rollup|RollDown|RollDn|PgUp|PgDn|Help|Print)([=-])(.*)$";pui.Op=0;pui["session timeout retries"]=0;pui.sz=0;pui.bj=false;pui.mz="profoundjs.com";pui.dz="http://www.w3.org/2000/svg";
5
5
  pui.tp={};pui["text file name pattern"]=/.+\.(css|js|json|html|htm|xml|txt|csv|sh|md|sql|scn|lst|xml|conf|php|log|ts|less|scss|cpp|ejs|vue|ts|jsx)$/i;pui["always allow field exit"]=false;pui.dup={};pui.dup["char"]="\u25cf";pui.dup.keyCode=45;pui.dup.shift=true;pui.dup.ctrl=false;pui.dup.alt=false;pui.wf={kA:{},wA:{},plugins:{},addPlugin:function(b){var a=pui.wf.plugins,c=b.category;a[c]||(a[c]={});a[c][b.name]=b}};pui["add combo style properties to choice list"]=true;pui.viewdesigner=false;pui.nodedesigner=false;if(window.pui_cloud_designer)pui.nodedesigner=true;else if(location.pathname.match(/^\/ide/i))pui.nodedesigner=true;else{var pb=location.pathname.match(/\/([^\/]+)\/?$/i);if(pb&&pb[1].toLowerCase()==="viewdesigner")pui.viewdesigner=true;else if(pb&&pb[1].toLowerCase()==="nodedesigner")pui.nodedesigner=true}pui.Kn=false;window.pui||(window.pui={});window.pui.baseVersion="6";window.pui.fixPackVersion="22.0";window.pui.version=window.pui.baseVersion+"."+window.pui.fixPackVersion;function wb(b){var a;if(!b)b=window.event;if(b.touches!=null&&b.touches.length==1)return b.touches[0].target;if(b.target)a=b.target;else if(b.srcElement)a=b.srcElement;if(a.nodeType==3)a=a.parentNode;return a}function xb(b){if(!b)b=window.event;if(window.event){window.event.cancelBubble=true;window.event.returnValue=false}if(b.preventDefault){b.cancelBubble=true;b.preventDefault()}}pui.Ce=function(b){xb(b);return false};
6
6
  function yb(b){if(pui.is_old_ie&&pui.ie_mode>=5){b.cancelBubble=true;b.returnValue=false;b.preventDefault&&b.preventDefault();b.stopPropagation&&b.stopPropagation()}else{b.preventDefault();b.stopPropagation()}}function zb(b){for(var a=Array(256),c=0;c<=255;c++)a[c]=c;if(!b)b=window.event;Cb(a,b)}
7
7
  function Db(b){var a;if(typeof b=="string")b=Eb(b);if(b==null)return-1;if(b.tagName!="INPUT"||!pui.Si(b))return-1;if(document.selection!=null){if(b==null)b=document.activeElement;a=document.selection.createRange()}var c=0;if(b!=null&&a!=null&&b.createTextRange!=null)try{var e=b.createTextRange();if(e){for(;a.compareEndPoints("StartToStart",e)>0;){e.moveStart("character",1);c++}return c}}catch(f){return-1}else if(b!=null)try{if(b.selectionStart!=null)return b.selectionStart}catch(h){}return-1}
8
8
  function Fb(){if(pui.ide&&pui.ide.tz)return true;if(Hb==null)return false;if(Hb.designer==null)return false;return true}
9
- function Jb(b,a){var c,e="",f="",h,g=false;if(b.tf()!=200){c="HTTP "+b.tf();e=b.us()+"."}else{g=b.xc().indexOf("<?xml")!=-1;if(g==false)try{h=eval("("+b.xc()+")");if(h.success!=true){c=h.errorId;e=h.errorText;f=h.errorText2}}catch(l){c="CPF9897";e="The server response is missing or invalid."}}if(c!=null){Va.push({Cl:a,id:c,text:e,tm:f});return false}else return g==true?b.xc():h.response}
9
+ function Jb(b,a){var c,e="",f="",h,g=false;if(b.tf()!=200){c="HTTP "+b.tf();e=b.us()+"."}else{g=b.yc().indexOf("<?xml")!=-1;if(g==false)try{h=eval("("+b.yc()+")");if(h.success!=true){c=h.errorId;e=h.errorText;f=h.errorText2}}catch(l){c="CPF9897";e="The server response is missing or invalid."}}if(c!=null){Va.push({Cl:a,id:c,text:e,tm:f});return false}else return g==true?b.yc():h.response}
10
10
  pui.vr=function(b,a,c){function e(h,g){var l=Kb(b.style[h]),o=l.lastIndexOf(")");if(o!=-1){l=l.substr(0,o);l+=g+"px)";c.style[h]=l}}var f=true;if(c==null){f=false;c=document.createElement("div");c.style.position="absolute";c.style.borderStyle="none";c.style.backgroundColor="transparent"}c.innerHTML='<label title="'+b.title+'" for="'+b.id+'">'+a+"</label>";c.className="label-for";a=Kb(b.className.split(" ")[0]);a!=""&&pui.Q(c,"label-for-"+a);c.style.zIndex=b.currentStyle?b.currentStyle.zIndex:window.getComputedStyle?
11
11
  document.defaultView.getComputedStyle(b,null).getPropertyValue("z-index"):20;if(b.style.top!="")c.style.top=b.style.top;else if(b.style.bottom!="")c.style.bottom=b.style.bottom;c.style.zIndex=b.style.zIndex;c.style.visibility=b.style.visibility;c.style.filter=b.style.filter;c.style.opacity=b.style.opacity;c.style.color=b.style.color;c.style.fontFamily=b.style.fontFamily;c.style.fontSize=b.style.fontSize;c.style.fontStyle=b.style.fontStyle;c.style.fontWeight=b.style.fontWeight;c.style.backgroundColor=
12
- b.style.backgroundColor;if(!f){c.style.cursor=b.style.cursor?b.style.cursor:"pointer";c.Ps=true;b.Jd!=null&&b.parentNode.removeChild(b.Jd);b.Jd=c;b.wc=[];b.wc.push(c);b.parentNode!=null&&b.parentNode.appendChild(c)}a=b.offsetWidth;if(a<20)a=20;if(b.style.left!="")if(b.style.left.indexOf("calc")!=-1)e("left"," + "+a);else{f=pui.vs(b.style.left);c.style.left=f[1]=="px"?f[0]+a+"px":"calc("+b.style.left+" + "+a+"px)"}else if(b.style.right!=""){c.style.left="";a=c.getBoundingClientRect().width;if(a<10)a=
12
+ b.style.backgroundColor;if(!f){c.style.cursor=b.style.cursor?b.style.cursor:"pointer";c.Ps=true;b.Jd!=null&&b.parentNode.removeChild(b.Jd);b.Jd=c;b.xc=[];b.xc.push(c);b.parentNode!=null&&b.parentNode.appendChild(c)}a=b.offsetWidth;if(a<20)a=20;if(b.style.left!="")if(b.style.left.indexOf("calc")!=-1)e("left"," + "+a);else{f=pui.vs(b.style.left);c.style.left=f[1]=="px"?f[0]+a+"px":"calc("+b.style.left+" + "+a+"px)"}else if(b.style.right!=""){c.style.left="";a=c.getBoundingClientRect().width;if(a<10)a=
13
13
  10;if(b.style.right.indexOf("calc")!=-1)e("right"," - "+a);else{f=pui.vs(b.style.right);c.style.right=f[1]=="px"?f[0]-a+"px":"calc("+b.style.right+" - "+a+"px)"}}if(b.style.top==""&&b.style.bottom!="")c.style.top=""};
14
14
  Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(b,a){if(this==null)throw TypeError('"this" is null or not defined');var c=Object(this),e=c.length>>>0;if(typeof b!=="function")throw TypeError("predicate must be a function");for(var f=0;f<e;){var h=c[f];if(b.call(a,h,f,c))return h;f++}},configurable:true});
15
15
  Array.prototype.findIndex||Object.defineProperty(Array.prototype,"findIndex",{value:function(b,a){if(this==null)throw new TypeError('"this" is null or not defined');var c=Object(this),e=c.length>>>0;if(typeof b!=="function")throw new TypeError("predicate must be a function");for(var f=0;f<e;){if(b.call(a,c[f],f,c))return f;f++}return-1},configurable:true,writable:true});
@@ -48,7 +48,7 @@ pui.cx=function(b){return typeof pui.Iy[b]!="undefined"};pui.Wc=function(b){var
48
48
  pui.ld=function(b,a,c){function e(){var w=pui.ss(),A=pui.ts(),C=encodeURIComponent(w.Hi);l+=o+"datfmt="+encodeURIComponent(C);c!=null&&c.append("datfmt",C);C=encodeURIComponent(w.Ij);l+="&datsep="+C;c!=null&&c.append("datsep",C);C=encodeURIComponent(A.Hi);l+="&timfmt="+C;c!=null&&c.append("timfmt",C);C=encodeURIComponent(A.Ij);l+="&timsep="+C;c!=null&&c.append("timsep",C);return l}var f=b["field type"]=="textbox",h=1,g="",l="",o="";g=/^(choices |blob )?(parameter value)( \d+)?/;var n="",r=1,p;for(var t in b){var s=
49
49
  g.exec(t);if(s){if(p==null)p=(s[1]?s[1]:"")+s[2];if(s[3]!=null)r=Math.max(r,parseInt(s[3],10))}}if(p==null)return e();do{g=Zb(b[p+n]);if(g!=""){t=h;if(f)t+=1;n=encodeURIComponent(g);l+=o+"p"+t+"="+n;c!=null&&c.append("p"+t,n);if(a!=null)a["p"+t]=g;o="&"}h++;n=" "+h}while(h<=r);return e()};pui.uh=function(b){if(b==null)return false;if(typeof b!="string")return false;if(b=="")return false;if(b.substr(b.length-1,1)=="%")return true;return false};
50
50
  pui.Ri=function(b){if(b==null)return false;if(typeof b!="string")return false;var a=Number(b);if(isNaN(a))return false;if(String(a)===b)return true;return false};pui.ps=function(b,a){if(b=="top"||b=="left"||b=="height"||b=="width")if(pui.Ri(a))return a+"px";return a};pui.vs=function(b){var a="",c="";if(typeof b=="string"){var e=/^([0-9.,-]+)(cm|mm|in|px|pt|pc|em|ex|ch|rem|vw|vh|vmin|vmax|%)$/i.exec(b);if(e!=null){b=Number(e[1]);if(isNaN(b))b=0;c=b;a=e[2]}else c=b}return[c,a]};
51
- pui.xs=function(){var b=0;if(typeof window.pageYOffset=="number")b=window.pageYOffset;else if(document.body&&document.body.scrollTop)b=document.body.scrollTop;else if(document.documentElement&&document.documentElement.scrollTop)b=document.documentElement.scrollTop;return b};pui.Ji=function(b){var a=pui.getLanguageText("runtimeMsg","no connection message");if(pui["no connection status"]==true)a+="\n"+b.Ni();if(pui.isCloud)if(b=b.xc())a+="\n\nError details:\n"+b;return a};
51
+ pui.xs=function(){var b=0;if(typeof window.pageYOffset=="number")b=window.pageYOffset;else if(document.body&&document.body.scrollTop)b=document.body.scrollTop;else if(document.documentElement&&document.documentElement.scrollTop)b=document.documentElement.scrollTop;return b};pui.Ji=function(b){var a=pui.getLanguageText("runtimeMsg","no connection message");if(pui["no connection status"]==true)a+="\n"+b.Ni();if(pui.isCloud)if(b=b.yc())a+="\n\nError details:\n"+b;return a};
52
52
  pui.ss=function(){var b=null,a=null;if(typeof pui["sql date format"]=="string")b=pui.uq[pui["sql date format"].toUpperCase()];if(b==null)b=pui.uq["*ISO"];if(typeof pui["sql date separator"]=="string")a=pui.vq[pui["sql date separator"].toUpperCase()];if(a==null)a=pui.vq["/"];return{Hi:b,Ij:a}};
53
53
  pui.ts=function(){var b=null,a=null;if(typeof pui["sql time format"]=="string")b=pui.wq[pui["sql time format"].toUpperCase()];if(b==null)b=pui.wq["*ISO"];if(typeof pui["sql time separator"]=="string")a=pui.xq[pui["sql time separator"].toUpperCase()];if(a==null)a=pui.xq[":"];return{Hi:b,Ij:a}};pui.ks=function(){var b=location.href.split("://"),a="",c="";if(b.length>1){a=b[0]+"://";b.splice(0,1);c=b.join("://")}else c=location.href;return c=a+c.split("/")[0]};
54
54
  pui.wo=function(b){var a=document.getElementsByTagName("head")[0];if(a==null)return null;var c=pui.ks();a=a.getElementsByTagName("link");for(var e=0;e<a.length;e++){var f=a[e];if(f.href==b)return f;if(f.href==c+b)return f}return null};pui.yo=function(b){var a=document.getElementsByTagName("head")[0];if(a==null)return null;var c=pui.ks();a=a.getElementsByTagName("script");for(var e=0;e<a.length;e++){var f=a[e];if(f.src==b)return f;if(f.src==c+b)return f}return null};
@@ -86,7 +86,7 @@ pui.$q=function(b,a,c,e){if(b!=null){var f=b["field type"]||b.field_type;if(f!=n
86
86
  if(n!=null&&n.length==2)o=n[1];for(n=0;n<f.length;n++){var r=f[n],p=false;if(typeof f[n]=="object"&&f[n]!=null&&typeof f[n].condition=="function"){if(f[n].condition(b,c,e)){r=f[n].script;p=true}}else if(typeof f[n]=="string")p=true;if(p){r=pui.normalizeURL(r);p=pui.normalizeURL(o+r);for(var t=false,s=0;s<g.length;s++)if(g[s].type.toLowerCase()=="text/javascript"&&(g[s].src==p||g[s].src==r)){t=true;break}if(l&&!t)for(s=0;s<l.length;s++)if(l[s].type.toLowerCase()=="text/css"&&(l[s].href==p||l[s].href==
87
87
  r)){t=true;break}!t&&pui.ge(a,r)<0&&a.push(r)}}}}}};
88
88
  pui.ml=function(b,a){function c(){if(pui.Xn.length<=0){pui.Xn=null;f()}else{var s=pui.Xn.shift();if(s!=null&&s.length>0){var w=document.getElementsByTagName("head")[0],A,C=s.substr(-4,4).toLowerCase();if(C===".css"){A=document.createElement("link");A.setAttribute("type","text/css");A.setAttribute("rel","stylesheet")}else{A=document.createElement("script");A.setAttribute("type","text/javascript")}A.onload=c;A.onerror=e;C===".css"?A.setAttribute("href",s):A.setAttribute("src",s);w.appendChild(A)}else c()}}
89
- function e(s){if(s!=null&&s.target!=null)console.log("Failed to load widget dependency file ",s.target.src||s.target.href);c()}function f(){if(pui.lg instanceof Array&&pui.lg.length>0){var s=pui.lg.shift(),w=new pui.Ajax({url:s.url,method:"get",suppressAlert:true,async:true,onsuccess:g,onfail:h});w.rm=s.rm;w.send()}else{pui.lg!==undefined&&delete pui.lg;a()}}function h(s){console.log("Failed to load custom layout template:",s.rm);f()}function g(s){pui.layout.templates[s.rm]=s.xc();f()}var l=[];if(b!=
89
+ function e(s){if(s!=null&&s.target!=null)console.log("Failed to load widget dependency file ",s.target.src||s.target.href);c()}function f(){if(pui.lg instanceof Array&&pui.lg.length>0){var s=pui.lg.shift(),w=new pui.Ajax({url:s.url,method:"get",suppressAlert:true,async:true,onsuccess:g,onfail:h});w.rm=s.rm;w.send()}else{pui.lg!==undefined&&delete pui.lg;a()}}function h(s){console.log("Failed to load custom layout template:",s.rm);f()}function g(s){pui.layout.templates[s.rm]=s.yc();f()}var l=[];if(b!=
90
90
  null)if(b.items!=null&&b.items.length>0)for(var o=0;o<b.items.length;o++)pui.$q(b.items[o],l,null,b.designer);else if(b.layers!=null&&b.layers.length>0)for(var n=0;n<b.layers.length;n++){var r=b.layers[n];if(r!=null&&r.formats!=null&&r.formats.length>0)for(var p=0;p<r.formats.length;p++){var t=r.formats[p];if(t!=null&&t.metaData!=null&&t.metaData.items!=null&&t.metaData.items.length>0)for(o=0;o<t.metaData.items.length;o++)pui.$q(t.metaData.items[o],l,t.data,false)}}pui.Xn=l;c()};
91
91
  pui.ix=function(b,a){function c(e){e.length===0&&a();e.forEach(function(f){function h(){var o=e.indexOf(f);o>=0&&e.splice(o,1);e.length==0&&a()}var g=false,l=f.split("?")[0];if(l.substr(-3).toLowerCase()==".js")g=pui.loadJS({path:f,callback:h,onerror:function(){console.log("Failed to load "+f);h()}});else l.substr(-4).toLowerCase()==".css"&&pui.loadCSS(f);if(!g||g==false)setTimeout(h,0)})}b?bc({url:Vb("PUI0009120.pgm?r="+Date.now()),method:"GET",suppressAlert:true,sendAsBinary:false,handler:function(e){e&&
92
92
  e.status==="success"?c(e.data.files):a()},onfail:function(){a()}}):a()};pui.round=function(b,a){var c=Math.pow(10,a);return Math.round(b*c)/c};
@@ -94,15 +94,15 @@ pui.Nk=function(b){if(b.indexOf("<%")<0)return b;if(typeof window.ejs!=="object"
94
94
  l;a[g]=l}}if(h.subfiles)for(var n in h.subfiles){l=h.subfiles[n].data;for(var r=h.subfiles[n]["field names"],p=[],t=0;t<l.length;t++){for(var s=l[t],w={},A=0;A<r.length;A++){o=r[A];if(o.substr(0,3).toUpperCase()==="*IN"){o=o.substr(3);isNaN(Number(o))||(o=Number(o));c[o]=s[A]}else{w[o.toLowerCase()]=s[A];w[o.toUpperCase()]=s[A];w[o]=s[A]}}p.push(w)}a[n.toLowerCase()]=p;a[n.toUpperCase()]=p;a[n]=p}}g=false;for(var C in c){g=true;break}if(g)a.xz=c;pui.ho=a}try{b=window.ejs.render(b,pui.ho)}catch(F){console.error(F)}return b};
95
95
  pui.Wt=function(b,a){if(pui.io)setTimeout(function(){pui.Wt(b,a)},100);else if(pui.gw)b.innerHTML=pui.Nk(a);else{pui.io=true;b.innerHTML="";pui.loadJS({path:pui.normalizeURL("/ejs/ejs.min.js"),callback:function(){b.innerHTML=pui.Nk(a);pui.gw=true;pui.io=false},onerror:function(){pui.io=false}})}};pui.xd=Object.create(pui.Xd.prototype,{Zd:{value:'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'},Pg:{value:"http://schemas.openxmlformats.org"},Lm:{value:"application/vnd.openxmlformats"}});
96
96
  Object.defineProperties(pui.xd,{ai:{value:pui.xd.Lm+"-officedocument.spreadsheetml"},jk:{value:pui.xd.Pg+"/spreadsheetml/2006/main"},ik:{value:pui.xd.Pg+"/package/2006/relationships"},Yd:{value:pui.xd.Pg+"/officeDocument/2006/relationships"}});
97
- pui.Cm=function(b){this.Bm=b;this.Bm.Kg=this;this.Ic=this.Uc=null;this.nm={};this.Jy=0;this.Zg=[{cj:0,Ii:0,Fi:0,ri:0,ak:0},{cj:2,Ii:0,Fi:0,ri:0,ak:0,rn:1}];this.yr=1;this.Nv={cj:0,Ii:1,Fi:0,ri:0,ak:1};this.Gn=-1;this.Ov={cj:0,Ii:0,Fi:0,ri:0,ak:0,jr:1,alignment:{Au:1}};this.Hn=-1;this.xl={};this.yl=0};pui.Cm.prototype=Object.create(pui.xd);
98
- function cc(b,a,c){var e=b.nm[a];if(e==null){e=b.nm[a]={value:b.Jy++,isString:true};if(c){a=e;if(b.Gn<0)b.Gn=b.Zg.push(b.Nv)-1;a.Fc=b.Gn}else if(/[\n\r]/.test(a)){a=e;if(b.Hn<0)b.Hn=b.Zg.push(b.Ov)-1;a.Fc=b.Hn}}return e}
99
- function dc(b,a,c){var e;if(typeof a!=="string")a="";if(typeof c!=="string")c="";var f=b.xl[c+a];if(f!=null)e=f.Fc;else{var h=-1;switch(a){case "m-d-y":h=14;break;case "j-M-y":h=15;break;case "j-M":h=16;break;case "M-y":h=17;break;case "g:i A":h=18;break;case "g:i:s A":h=19;break;case "g:i:s":h=19;break;case "G:i":h=20;break;case "G:i:s":h=21;break;case "m/d/y G:i":h=22;break;case "i:s":h=45;break;case "isu":h=47;break}if(h>=0)e=ec(b,h);else{f="";if(c==="he_IL")f+="[$-101040D]";switch(a){case "R:i:s":f=
97
+ pui.Cm=function(b){this.Bm=b;this.Bm.Kg=this;this.Jc=this.Uc=null;this.nm={};this.Jy=0;this.Zg=[{cj:0,Ii:0,Fi:0,ri:0,ak:0},{cj:2,Ii:0,Fi:0,ri:0,ak:0,rn:1}];this.yr=1;this.Nv={cj:0,Ii:1,Fi:0,ri:0,ak:1};this.Gn=-1;this.Ov={cj:0,Ii:0,Fi:0,ri:0,ak:0,jr:1,alignment:{Au:1}};this.Hn=-1;this.xl={};this.yl=0};pui.Cm.prototype=Object.create(pui.xd);
98
+ function cc(b,a,c){var e=b.nm[a];if(e==null){e=b.nm[a]={value:b.Jy++,isString:true};if(c){a=e;if(b.Gn<0)b.Gn=b.Zg.push(b.Nv)-1;a.Gc=b.Gn}else if(/[\n\r]/.test(a)){a=e;if(b.Hn<0)b.Hn=b.Zg.push(b.Ov)-1;a.Gc=b.Hn}}return e}
99
+ function dc(b,a,c){var e;if(typeof a!=="string")a="";if(typeof c!=="string")c="";var f=b.xl[c+a];if(f!=null)e=f.Gc;else{var h=-1;switch(a){case "m-d-y":h=14;break;case "j-M-y":h=15;break;case "j-M":h=16;break;case "M-y":h=17;break;case "g:i A":h=18;break;case "g:i:s A":h=19;break;case "g:i:s":h=19;break;case "G:i":h=20;break;case "G:i:s":h=21;break;case "m/d/y G:i":h=22;break;case "i:s":h=45;break;case "isu":h=47;break}if(h>=0)e=ec(b,h);else{f="";if(c==="he_IL")f+="[$-101040D]";switch(a){case "R:i:s":f=
100
100
  "hh:mm:ss";break;case "R.i.s":f="hh\\.mm\\.ss";break;case "g:i:s":f="h:mm:ss am/pm";break;case "h:i:s":f="hh:mm:ss am/pm";break;case "R":f="ddd\\,\\ dd\\ mmm\\ yyyy\\ hh:mm:ss";break;case "Y-m-d-H.i.s.uu":f="yyyy\\-mm\\-dd\\-hh\\.mm\\.ss.0";break;default:e=0;for(h=a.length;e<h;e++){var g=a.charAt(e);switch(g){case "d":f+="dd";break;case "D":f+="ddd";break;case "j":f+="d";break;case "l":f+="dddd";break;case "S":f+="\\S";break;case "z":f+="\\z";break;case "F":f+="mmmm";break;case "m":f+="mm";break;
101
101
  case "M":f+="mmm";break;case "n":f+="m";break;case "Y":f+="yyyy";break;case "y":f+="yy";break;case "g":f+="h";break;case "h":f+="hh";break;case "G":f+="h";break;case "H":f+="hh";break;case "i":f+="mm";break;case "s":f+="ss";break;case "u":f+=".0";break;case "a":f+="am/pm";break;case "A":f+="AM/PM";break;case '"':f+="&quot;";break;case " ":f+="\\ ";break;case "-":f+="\\-";break;case ".":f+="\\.";break;case ",":f+="\\,";break;case "/":f+="/";break;case ":":f+=":";break;default:f+="\\"+g;break}}break}h=
102
- 164+b.yl;b.yl++;e=ec(b,h);f={id:h,Fc:e,code:f};b.xl[c+a]=f}}return e}function ec(b,a){return b.Zg.push({cj:a,Ii:0,Fi:0,ri:0,ak:0,rn:1})-1}function fc(b,a){b.fileName=a||"sheet";if(typeof JSZip=="function")b.Oq();else{var c=b.mk.bind(b);pui.loadJS({path:"/jszip/jszip.min.js",callback:b.Oq.bind(b),onerror:function(){console.log("Failed to load /jszip/jszip.min.js");c()}})}}ua=pui.Cm.prototype;
102
+ 164+b.yl;b.yl++;e=ec(b,h);f={id:h,Gc:e,code:f};b.xl[c+a]=f}}return e}function ec(b,a){return b.Zg.push({cj:a,Ii:0,Fi:0,ri:0,ak:0,rn:1})-1}function fc(b,a){b.fileName=a||"sheet";if(typeof JSZip=="function")b.Oq();else{var c=b.mk.bind(b);pui.loadJS({path:"/jszip/jszip.min.js",callback:b.Oq.bind(b),onerror:function(){console.log("Failed to load /jszip/jszip.min.js");c()}})}}ua=pui.Cm.prototype;
103
103
  ua.Oq=function(){if(typeof saveAs=="function"||pui.yo(pui.normalizeURL("/jszip/FileSaver.min.js"))!=null)this.Nq();else{var b=this.mk.bind(this);pui.loadJS({path:"/jszip/FileSaver.min.js",callback:this.Nq.bind(this),onerror:function(){console.log("Failed to load /jszip/FileSaver.min.js");b()}})}};
104
- ua.Nq=function(){if(this.Uc){var b=this.Uc,a=this.Iq.bind(this),c=this.Ic;if(b.ta.length<1)a();else{b.ao=0;b.Ic=c;c=b.Qu.bind(b);b.Mv=a;for(a=0;a<b.ta.length;a++){b.ta[a].Uf=new XMLHttpRequest;b.ta[a].Uf.open("GET",b.ta[a].uri,true);b.ta[a].Uf.responseType="blob";b.ta[a].Uf.onload=c;b.ta[a].Uf.send()}}}else this.Iq()};
105
- ua.Iq=function(){this.Ic&&typeof this.Ic.fm=="function"&&this.Ic.fm(pui.getLanguageText("runtimeMsg","compressing"));var b=pui.xd.Zd+'<Types xmlns="'+pui.xd.Pg+'/package/2006/content-types"><Default Extension="rels" ContentType="'+pui.xd.Lm+'-package.relationships+xml"/><Default Extension="xml" ContentType="application/xml"/>';if(this.Uc){var a=this.Uc.$r;for(var c in a)b+='<Default Extension="'+c+'" ContentType="'+a[c]+'"/>'}b+='<Override PartName="/xl/workbook.xml" ContentType="'+this.ai+'.sheet.main+xml"/><Override PartName="/xl/worksheets/sheet1.xml" ContentType="'+
104
+ ua.Nq=function(){if(this.Uc){var b=this.Uc,a=this.Iq.bind(this),c=this.Jc;if(b.ta.length<1)a();else{b.ao=0;b.Jc=c;c=b.Qu.bind(b);b.Mv=a;for(a=0;a<b.ta.length;a++){b.ta[a].Uf=new XMLHttpRequest;b.ta[a].Uf.open("GET",b.ta[a].uri,true);b.ta[a].Uf.responseType="blob";b.ta[a].Uf.onload=c;b.ta[a].Uf.send()}}}else this.Iq()};
105
+ ua.Iq=function(){this.Jc&&typeof this.Jc.fm=="function"&&this.Jc.fm(pui.getLanguageText("runtimeMsg","compressing"));var b=pui.xd.Zd+'<Types xmlns="'+pui.xd.Pg+'/package/2006/content-types"><Default Extension="rels" ContentType="'+pui.xd.Lm+'-package.relationships+xml"/><Default Extension="xml" ContentType="application/xml"/>';if(this.Uc){var a=this.Uc.$r;for(var c in a)b+='<Default Extension="'+c+'" ContentType="'+a[c]+'"/>'}b+='<Override PartName="/xl/workbook.xml" ContentType="'+this.ai+'.sheet.main+xml"/><Override PartName="/xl/worksheets/sheet1.xml" ContentType="'+
106
106
  this.ai+'.worksheet+xml"/><Override PartName="/xl/styles.xml" ContentType="'+this.ai+'.styles+xml"/><Override PartName="/xl/sharedStrings.xml" ContentType="'+this.ai+'.sharedStrings+xml"/>';if(this.Uc!=null)b+='<Override PartName="/xl/drawings/drawing1.xml" ContentType="'+this.Lm+'-officedocument.drawing+xml"/>';b+="</Types>";var e=this.Zd+'<Relationships xmlns="'+this.ik+'"><Relationship Id="rId1" Type="'+this.Yd+'/officeDocument" Target="xl/workbook.xml"/></Relationships>',f='<?xml version="1.0" encoding="UTF-8" standalone="yes"?><workbook xmlns="'+
107
107
  this.jk+'" xmlns:r="'+this.Yd+'"><sheets><sheet name="Sheet1" sheetId="1" r:id="rId1"/></sheets></workbook>',h=this.Zd+'<Relationships xmlns="'+this.ik+'"><Relationship Id="rId3" Type="'+this.Yd+'/styles" Target="styles.xml"/><Relationship Id="rId1" Type="'+this.Yd+'/worksheet" Target="worksheets/sheet1.xml"/><Relationship Id="rId4" Type="'+this.Yd+'/sharedStrings" Target="sharedStrings.xml"/></Relationships>',g=this.Zd+'<styleSheet xmlns="'+this.jk+'">';if(this.yl>0){g+='<numFmts count="'+this.yl+
108
108
  '">';for(var l in this.xl){a=this.xl[l];if(a.id>0)g+='<numFmt numFmtId="'+a.id+'" formatCode="'+a.code+'"/>'}g+="</numFmts>"}g+='<fonts count="2"><font><sz val="11"/><color theme="1"/><name val="Calibri"/><family val="2"/><scheme val="minor"/></font><font><u/><sz val="11"/><color rgb="0563C1"/><name val="Calibri"/><family val="2"/><scheme val="minor"/></font></fonts><fills count="1"><fill><patternFill patternType="none"/></fill></fills><borders count="1"><border><left/><right/><top/><bottom/><diagonal/></border></borders><cellStyleXfs count="2"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/><xf numFmtId="0" fontId="1" fillId="0" borderId="0"/></cellStyleXfs>';
@@ -111,29 +111,29 @@ b);l.file("_rels/.rels",e);l.file("xl/workbook.xml",f);l.file("xl/styles.xml",g)
111
111
  c[f].col+"</xdr:col><xdr:colOff>"+Math.round(c[f].left*9525)+"</xdr:colOff><xdr:row>"+c[f].row+"</xdr:row><xdr:rowOff>"+Math.round(c[f].top*9525)+"</xdr:rowOff></xdr:from><xdr:to><xdr:col>"+c[f].col+"</xdr:col><xdr:colOff>"+Math.round((c[f].width+c[f].left)*9525)+"</xdr:colOff><xdr:row>"+c[f].row+"</xdr:row><xdr:rowOff>"+Math.round((c[f].height+c[f].top)*9525)+'</xdr:rowOff></xdr:to><xdr:pic><xdr:nvPicPr><xdr:cNvPr id="'+(f+1)+'" name="Picture '+(f+1)+'"/><xdr:cNvPicPr><a:picLocks noChangeAspect="1" noChangeArrowheads="1"/></xdr:cNvPicPr></xdr:nvPicPr><xdr:blipFill><a:blip xmlns:r="'+
112
112
  a.Yd+'" r:embed="rId'+(c[f].rel+1)+'"></a:blip><a:srcRect/><a:stretch><a:fillRect/></a:stretch></xdr:blipFill><xdr:spPr bwMode="auto"><a:xfrm></a:xfrm><a:prstGeom prst="rect"><a:avLst/></a:prstGeom><a:noFill/></xdr:spPr></xdr:pic><xdr:clientData/></xdr:twoCellAnchor>';e+="</xdr:wsDr>";l.file("xl/drawings/drawing1.xml",e);a=this.Uc;c=a.Zd+'<Relationships xmlns="'+a.ik+'">';for(e=0;e<a.ta.length;e++)c+='<Relationship Id="rId'+(e+1)+'" Type="'+a.Yd+'/image" Target="../media/'+a.ta[e].name+'"/>';c+="</Relationships>";
113
113
  l.file("xl/drawings/_rels/drawing1.xml.rels",c);c=this.Uc.ta;for(a=0;a<c.length;a++)c[a].Gs&&l.file("xl/media/"+c[a].name,c[a].Gs,{binary:true})}if(b.length>0){e=this.Zd+'<Relationships xmlns="'+this.ik+'">';a=0;for(c=b.length;a<c;a++){f=b[a];h="";if(f.type==="hyperlink")h=' TargetMode="External"';e+='<Relationship Id="rId'+(a+1)+'" Type="'+this.Yd+"/"+f.type+'" Target="'+pui.Xh(f.target)+'"'+h+"/>"}e+="</Relationships>";l.file("xl/worksheets/_rels/sheet1.xml.rels",e)}l.generateAsync({type:"blob",
114
- compression:"DEFLATE",mimeType:this.ai+".sheet"}).then(this.nv.bind(this),this.mk.bind(this))};ua.mk=function(){this.Ic&&typeof this.Ic.ds=="function"&&this.Ic.ds();Yb(this.Bm);this.Uc&&Yb(this.Uc);Yb(this)};ua.nv=function(b){saveAs(b,this.fileName+".xlsx");this.mk()};
114
+ compression:"DEFLATE",mimeType:this.ai+".sheet"}).then(this.nv.bind(this),this.mk.bind(this))};ua.mk=function(){this.Jc&&typeof this.Jc.ds=="function"&&this.Jc.ds();Yb(this.Bm);this.Uc&&Yb(this.Uc);Yb(this)};ua.nv=function(b){saveAs(b,this.fileName+".xlsx");this.mk()};
115
115
  function jc(b){var a=[];for(var c in b.nm)a[b.nm[c].value]=c;b=b.Zd+'<sst xmlns="'+b.jk+'" count="'+String(a.length+1)+'" uniqueCount="'+String(a.length)+'">';c=0;for(var e=a.length;c<e;c++)b+="<si><t>"+pui.Xh(a[c])+"</t></si>";b+="</sst>";return b}
116
116
  pui.Dm=function(b){this.Hf=b;this.rows=[];this.nd=-1;this.Wn=20;this.colWidths=[];this.xu=false;this.formats=[];this.ie=[];this.es=7;this.ta=[];this.Es=[];b=pui.ss();this.Ta=null;switch(b.Ij){case 1:this.Ta="/";break;case 2:this.Ta="-";break;case 3:this.Ta=".";break;case 4:this.Ta=",";break;case 5:this.Ta=" ";break;case 7:this.Ta=pui.appJob&&pui.appJob.dateSeparator?pui.appJob.dateSeparator:null;break}this.yb={dateFormat:"Y-m-d",timeFormat:"H.i.s"};switch(b.Hi){case 1:this.yb.dateFormat="Y-m-d";this.Ta=
117
117
  "-";break;case 2:this.yb.dateFormat="m/d/Y";this.Ta="/";break;case 3:this.yb.dateFormat="d.m.Y";this.Ta=".";break;case 4:this.yb.dateFormat="Y-m-d";this.Ta="-";break;case 5:if(typeof this.Ta==="string")this.yb.dateFormat="m"+this.Ta+"d"+this.Ta+"y";break;case 6:if(typeof this.Ta==="string")this.yb.dateFormat="d"+this.Ta+"m"+this.Ta+"y";break;case 7:if(typeof this.Ta==="string")this.yb.dateFormat="y"+this.Ta+"m"+this.Ta+"d";break;case 8:if(typeof this.Ta==="string")this.yb.dateFormat="y"+this.Ta+"z";
118
118
  break}b=pui.ts();var a=null;switch(b.Ij){case 3:a=".";break;case 4:a=",";break;case 5:a=" ";break;case 6:a=":";break;case 7:a=pui.appJob&&pui.appJob.timeSeparator?pui.appJob.timeSeparator:null;break}switch(b.Hi){case 1:this.yb.timeFormat="H.i.s";break;case 2:this.yb.timeFormat="h:m A";break;case 3:this.yb.timeFormat="h.m.s";break;case 4:this.yb.timeFormat="h:m:s";break;case 9:if(typeof a==="string")this.yb.timeFormat="h"+a+"m"+a+"s";break}this.yb.timeStampFormat=this.yb.dateFormat+this.Ta+this.yb.timeFormat+
119
119
  ".uu";this.locale=pui.locale&&pui.locales[pui.locale]?pui.locales[pui.locale]:"en_US";this.Pr=pui.appJob!=null&&(pui.appJob.decimalFormat=="I"||pui.appJob.decimalFormat=="J")};pui.Dm.prototype=Object.create(pui.xd);function lc(b){b.nd=b.rows.push([])-1}pui.Dm.prototype.Pf=function(b){this.colWidths=b};
120
120
  function mc(b,a,c){if(typeof b.formats[c]!=="object"||b.formats[c]===null)b.formats[c]={dataType:"char"};b.Hf=Math.max(b.Hf,c);var e="char";if(typeof a.dataType==="string"){if(a.dataType.length==1)switch(a.dataType){case "L":e="date";break;case "T":e="time";break;case "Z":e="timestamp";break;case "G":e="graphic";break;case "F":e="floating";break;case "P":e="packed";break;case "B":case "I":case "S":case "U":case "Y":e="zoned";break}else e=a.dataType;b.formats[c].dataType=e}if(typeof a.decPos==="string"){b.formats[c].decPos=
121
- a.decPos;if(a.decPos==="2")b.formats[c].Fc=b.Kg.yr}e=false;if(typeof a.dateFormat==="string"&&a.dateFormat.length>0)e="dateFormat";else if(typeof a.timeFormat==="string"&&a.timeFormat.length>0)e="timeFormat";else if(typeof a.timeStampFormat==="string"&&a.timeStampFormat.length>0)e="timeStampFormat";if(typeof e==="string"){b.formats[c].locale=typeof a.locale==="string"?a.locale:b.locale;var f=a[e];if(typeof f!=="string")f=b.yb[e];b.formats[c][e]=f;b.formats[c].Fc=dc(b.Kg,f,b.formats[c].locale)}if(typeof a.formatting===
121
+ a.decPos;if(a.decPos==="2")b.formats[c].Gc=b.Kg.yr}e=false;if(typeof a.dateFormat==="string"&&a.dateFormat.length>0)e="dateFormat";else if(typeof a.timeFormat==="string"&&a.timeFormat.length>0)e="timeFormat";else if(typeof a.timeStampFormat==="string"&&a.timeStampFormat.length>0)e="timeStampFormat";if(typeof e==="string"){b.formats[c].locale=typeof a.locale==="string"?a.locale:b.locale;var f=a[e];if(typeof f!=="string")f=b.yb[e];b.formats[c][e]=f;b.formats[c].Gc=dc(b.Kg,f,b.formats[c].locale)}if(typeof a.formatting===
122
122
  "string")b.formats[c].formatting=a.formatting}
123
123
  function nc(b,a,c,e,f){if(typeof a!=="string"&&typeof a!=="number"||typeof a==="string"&&a.length===0)b.rows[b.nd][c]={value:null};else{var h=b.formats[c];if(h==null)b.formats[c]=h={dataType:"char"};b.Hf=Math.max(b.Hf,c);var g=0;if(typeof a==="string")g=a.length;if(b.rows.length==1||b.ie[c]==null)b.ie[c]=g;else{b.ie[c]=Math.max(b.ie[c],g);if(b.formats[c].dataType==="date")b.ie[c]=Math.max(b.ie[c],10)}if(typeof h.dateFormat==="string"&&h.dateFormat.length>0){if(pc(b,a,c,"dateFormat"))return;if(uc(b,
124
124
  a,c))return;if(vc(b,a,c))return}else if(typeof h.timeFormat==="string"&&h.timeFormat.length>0){if(wc(b,a,c,"timeFormat"))return}else if(typeof h.timeStampFormat==="string"&&h.timeStampFormat.length>0){if(pc(b,a,c,"timeStampFormat"))return;if(uc(b,a,c))return;if(vc(b,a,c))return}switch(h.dataType){case "floating":if(uc(b,a,c))return;break;case "packed":case "zoned":if(vc(b,a,c))return;break;case "date":if(pc(b,a,c,"dateFormat"))return;if(uc(b,a,c))return;if(vc(b,a,c))return;break;case "timestamp":if(pc(b,
125
125
  a,c,"timeStampFormat"))return;if(uc(b,a,c))return;if(vc(b,a,c))return;break;case "time":if(wc(b,a,c,"timeFormat"))return;break}switch(h.formatting){case "Date":case "Time Stamp":case "Number":if(vc(b,a,c))return;if(uc(b,a,c))return;break}if(f){if(pc(b,a,c,"timeStampFormat"))return;if(pc(b,a,c,"dateFormat"))return;if(wc(b,a,c,"timeFormat"))return;if(uc(b,a,c))return;if(vc(b,a,c))return}if(typeof e==="string"&&e.length>0){f=-1;h=0;for(g=b.ta.length;h<g;h++){var l=b.ta[h];if(l.type==="hyperlink"&&l.target===
126
- e){f=h;break}}if(f<0)f=b.ta.push({type:"hyperlink",target:e})-1;b.Es.push({row:b.nd,col:c,Sx:f})}else e=false;b.rows[b.nd][c]=cc(b.Kg,a,e!==false)}}function vc(b,a,c){if(typeof a==="string")if(b.Pr&&/^[-+]?[0-9]*,?[0-9]+$/.test(a))a=Number(a.replace(",","."));else if(/^[-+]?[0-9]*\.?[0-9]+$/.test(a))a=Number(a);if(typeof a==="number"&&!isNaN(a)){b.rows[b.nd][c]={value:a,Fc:b.formats[c].decPos==="2"?b.Kg.yr:0};return true}return false}
127
- function uc(b,a,c){if(typeof a==="string")if(b.Pr&&/^[-+]?[0-9]*,?[0-9]+([eE][-+]?[0-9]+)?$/.test(a))a=Number(a.replace(",","."));else if(/^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$/.test(a))a=Number(a);if(typeof a==="number"&&!isNaN(a)){b.rows[b.nd][c]={value:a,Fc:0};return true}return false}
126
+ e){f=h;break}}if(f<0)f=b.ta.push({type:"hyperlink",target:e})-1;b.Es.push({row:b.nd,col:c,Sx:f})}else e=false;b.rows[b.nd][c]=cc(b.Kg,a,e!==false)}}function vc(b,a,c){if(typeof a==="string")if(b.Pr&&/^[-+]?[0-9]*,?[0-9]+$/.test(a))a=Number(a.replace(",","."));else if(/^[-+]?[0-9]*\.?[0-9]+$/.test(a))a=Number(a);if(typeof a==="number"&&!isNaN(a)){b.rows[b.nd][c]={value:a,Gc:b.formats[c].decPos==="2"?b.Kg.yr:0};return true}return false}
127
+ function uc(b,a,c){if(typeof a==="string")if(b.Pr&&/^[-+]?[0-9]*,?[0-9]+([eE][-+]?[0-9]+)?$/.test(a))a=Number(a.replace(",","."));else if(/^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$/.test(a))a=Number(a);if(typeof a==="number"&&!isNaN(a)){b.rows[b.nd][c]={value:a,Gc:0};return true}return false}
128
128
  function xc(b,a,c,e){if(typeof a!=="string")a=String(a);var f=b.formats[c].locale;if(typeof f!=="string")f=b.locale;c=b.formats[c][e];if(typeof c!=="string")c=b.yb[e];return[pui.formatting.Date.parse(a,c,f),c,f]}
129
- function pc(b,a,c,e){e=xc(b,a,c,e);if(e[1]==="Y-z")return false;if(e[0]instanceof Date){var f=e[0],h=f.getFullYear(),g=f.getMonth(),l=f.getDate();if(h===1&&g===0&&l===1){b.rows[b.nd][c]={value:null};return true}if(h<1900||h===1900&&g<2){b.rows[b.nd][c]=cc(b.Kg,a);return true}a=new Date(f);a.setHours(0,0,0,0);a=Number(Math.round((a-new Date(1899,11,30))/864E5)+(Math.abs((f-a)%864E5)/864E5).toFixed(10).substr(1));if(!isNaN(a)&&a>=2){b.rows[b.nd][c]={value:a,Fc:dc(b.Kg,e[1],e[2])};return true}}return false}
130
- function wc(b,a,c,e){a=xc(b,a,c,e);if(a[0]instanceof Date){b.rows[b.nd][c]={value:a[0].getHours()/24+a[0].getMinutes()/1440+a[0].getSeconds()/86400+a[0].getMilliseconds()/864E5,Fc:dc(b.Kg,a[1])};return true}return false}
129
+ function pc(b,a,c,e){e=xc(b,a,c,e);if(e[1]==="Y-z")return false;if(e[0]instanceof Date){var f=e[0],h=f.getFullYear(),g=f.getMonth(),l=f.getDate();if(h===1&&g===0&&l===1){b.rows[b.nd][c]={value:null};return true}if(h<1900||h===1900&&g<2){b.rows[b.nd][c]=cc(b.Kg,a);return true}a=new Date(f);a.setHours(0,0,0,0);a=Number(Math.round((a-new Date(1899,11,30))/864E5)+(Math.abs((f-a)%864E5)/864E5).toFixed(10).substr(1));if(!isNaN(a)&&a>=2){b.rows[b.nd][c]={value:a,Gc:dc(b.Kg,e[1],e[2])};return true}}return false}
130
+ function wc(b,a,c,e){a=xc(b,a,c,e);if(a[0]instanceof Date){b.rows[b.nd][c]={value:a[0].getHours()/24+a[0].getMinutes()/1440+a[0].getSeconds()/86400+a[0].getMilliseconds()/864E5,Gc:dc(b.Kg,a[1])};return true}return false}
131
131
  function kc(b){b.map=[];for(var a=0,c="",e="",f=b.Hf,h=-1;h<26&&a<f;h++){var g=-1;if(h>=0)g=0;for(g=g;g<26&&a<f;g++){for(var l=0;l<26&&a<f;l++){b.map[a]=c+e+"ABCDEFGHIJKLMNOPQRSTUVWXYZ"[l];a++}e="ABCDEFGHIJKLMNOPQRSTUVWXYZ"[(g+1)%26]}c="ABCDEFGHIJKLMNOPQRSTUVWXYZ"[h+1]}a=b.Zd+'<worksheet xmlns="'+b.jk+'" xmlns:r="'+b.Yd+'"><dimension ref="A1:'+b.map[b.Hf-1]+b.rows.length+'"/><sheetFormatPr defaultRowHeight="'+b.Wn*0.75+'" customHeight="1" /><cols>';f=0;for(c=b.Hf;f<c;f++){e=0;if(typeof b.colWidths[f]===
132
- "number")e=pui.round((b.colWidths[f]-5)/7,2);else if(b.ie[f]!=null&&!isNaN(parseInt(b.ie[f],10)))e=Math.floor((b.ie[f]*b.es+5)/b.es*256)/256+5;if(e<0)e=0;else if(e>255)e=255;h="";if(b.formats[f]!=null&&b.formats[f].Fc)h=' style="'+b.formats[f].Fc+'"';a+='<col min="'+(f+1)+'" max="'+(f+1)+'" width="'+e+'" '+h+' customWidth="1"/>'}a+="</cols><sheetData>";f="";if(typeof b.sh==="number"&&b.sh>0)f=' ht="'+Math.round(b.sh*0.75)+'" customHeight="1"';e=0;for(c=b.rows.length;e<c;e++){h=String(e+1);a+='<row r="'+
133
- h+'"'+f+">";g=b.rows[e];if(g!=null)for(f=0;f<b.Hf;f++){l=g[f];if(l!=null&&typeof l.value==="number"){a+='<c r="'+b.map[f]+h+'"';if(typeof l.Fc==="number")a+=' s="'+l.Fc+'"';if(l.isString)a+=' t="s"';a+="><v>"+l.value+"</v></c>"}}a+="</row>";f="";if(typeof b.sh==="number"&&b.sh>0)f=' ht="'+Math.round(b.Wn*0.75)+'" customHeight="1"'}a+="</sheetData>";if(b.xu)a+='<drawing r:id="rId1"/>';f=b.Es;if(f.length>0){a+="<hyperlinks>";h=0;for(c=f.length;h<c;h++){e=f[h].row+1;a+='<hyperlink ref="'+b.map[f[h].col]+
132
+ "number")e=pui.round((b.colWidths[f]-5)/7,2);else if(b.ie[f]!=null&&!isNaN(parseInt(b.ie[f],10)))e=Math.floor((b.ie[f]*b.es+5)/b.es*256)/256+5;if(e<0)e=0;else if(e>255)e=255;h="";if(b.formats[f]!=null&&b.formats[f].Gc)h=' style="'+b.formats[f].Gc+'"';a+='<col min="'+(f+1)+'" max="'+(f+1)+'" width="'+e+'" '+h+' customWidth="1"/>'}a+="</cols><sheetData>";f="";if(typeof b.sh==="number"&&b.sh>0)f=' ht="'+Math.round(b.sh*0.75)+'" customHeight="1"';e=0;for(c=b.rows.length;e<c;e++){h=String(e+1);a+='<row r="'+
133
+ h+'"'+f+">";g=b.rows[e];if(g!=null)for(f=0;f<b.Hf;f++){l=g[f];if(l!=null&&typeof l.value==="number"){a+='<c r="'+b.map[f]+h+'"';if(typeof l.Gc==="number")a+=' s="'+l.Gc+'"';if(l.isString)a+=' t="s"';a+="><v>"+l.value+"</v></c>"}}a+="</row>";f="";if(typeof b.sh==="number"&&b.sh>0)f=' ht="'+Math.round(b.Wn*0.75)+'" customHeight="1"'}a+="</sheetData>";if(b.xu)a+='<drawing r:id="rId1"/>';f=b.Es;if(f.length>0){a+="<hyperlinks>";h=0;for(c=f.length;h<c;h++){e=f[h].row+1;a+='<hyperlink ref="'+b.map[f[h].col]+
134
134
  e+'" r:id="rId'+(f[h].Sx+1)+'" />'}a+="</hyperlinks>"}a+="</worksheet>";return a}pui.mq=function(){this.$r={};this.ta=[];this.dt=1;this.anchors=[]};pui.mq.prototype=Object.create(pui.xd);
135
135
  function yc(b,a,c,e,f){var h=e.match(/\.(jpe?g|gif|png|tiff?)(\?.*)?(#.*)?$/i);if(h==null)console.log("Unsupported image type in URI:",e);else{h=h[1].toLowerCase();if(h=="jpeg")h="jpg";else if(h=="tif")h="tiff";for(var g=-1,l=0;l<b.ta.length;l++)if(b.ta[l].uri==e){g=l;break}if(g<0){g="image"+b.dt+"."+h;b.dt++;b.$r[h]="image/"+h;b.ta.push({name:g,uri:e});g=b.ta.length-1}b.anchors.push({row:a,col:c,rel:g,top:f.top,left:f.top,width:f.width,height:f.height})}}
136
- pui.mq.prototype.Qu=function(){this.ao++;this.Ic&&typeof this.Ic.fm=="function"&&this.Ic.fm(pui.getLanguageText("runtimeMsg","downloading x",[Math.round(100*(this.ao/this.ta.length))+"%"]));if(!(this.ao<this.ta.length)){for(var b=0;b<this.ta.length;b++){if(this.ta[b].Uf.status==200)this.ta[b].Gs=this.ta[b].Uf.response;this.ta[b].Uf=null;try{delete this.ta[b].Uf}catch(a){}}this.Mv()}};
136
+ pui.mq.prototype.Qu=function(){this.ao++;this.Jc&&typeof this.Jc.fm=="function"&&this.Jc.fm(pui.getLanguageText("runtimeMsg","downloading x",[Math.round(100*(this.ao/this.ta.length))+"%"]));if(!(this.ao<this.ta.length)){for(var b=0;b<this.ta.length;b++){if(this.ta[b].Uf.status==200)this.ta[b].Gs=this.ta[b].Uf.response;this.ta[b].Uf=null;try{delete this.ta[b].Uf}catch(a){}}this.Mv()}};
137
137
  pui.Fz=function(b,a){var c,e=b.library||"",f=b.file||"",h=b.customSql||"",g=b.connection||"";if(O=="genie")c=Vb("PUI0009101.PGM");if(O=="dspf")c=Vb("PUI0009101.PGM",null,true);c=new pui.Ajax(c);c.async=true;c.method="post";c.postData="file="+encodeURIComponent(f);c.postData+="&library="+encodeURIComponent(e);c.postData+="&customSql="+encodeURIComponent(h);c.postData+="&connection="+encodeURIComponent(g);if(pui.isCloud)c.postData+="&workspace_id="+pui.cloud.ws.id;if(pui.ba)c.postData+="&AUTH="+pui.ba;
138
138
  else if(O=="genie")c.postData+="&AUTH="+pui.appJob.auth;c.postData+="&context="+O;c.suppressAlert=true;c.onready=a;c.send()};pui.mf=function(b){var a=null;if(Va.length>0){a=Va.length-1;a={operation:Va[a].Cl,id:Va[a].id,text:Va[a].text,text2:Va[a].tm}}try{pui.temporary_property=a;eval("var response = { success: arguments[1], id: arguments[2], error: pui.temporary_property };");var c=eval(b);typeof c=="function"&&c()}catch(e){pui.Ca(e,"OndbLoad Error:\n");return false}return true};
139
139
  pui.Ca=function(b,a){if(pui["alert script errors"]===false){if(window.console&&window.console.error){if(b.stack){var c=b.stack.split("\n");c[0]!=b.toString()&&c.splice(0,0,b.toString());c=c.join("\n")}else c=b.toString();if(a!=null)c=a+c;console.error(c)}}else{c=b.message;if(a!=null)c=a+c;pui.alert(c)}};
@@ -164,7 +164,7 @@ pui.doSessionTimeout=function(){function b(e){document.body.style.backgroundColo
164
164
  pui.cloud.ws.id;bc({url:pui.gg(a),method:"post",sendAsBinary:false,suppressAlert:true,params:c,handler:function(e){if(pui.D!=null){pui.confirmOnClose=false;pui.shutdownOnClose=false;b(document.body)}else{e.b=pui.runtimeContainer;pui.handler=la();pui.render(e)}pui.ontimeout!=null&&typeof pui.ontimeout=="function"&&pui.ontimeout();pui.D!=null&&pui.D["close atrium tab on timeout"]==true&&window.parent!=window&&pui.jg(window.parent)&&window.Atrium.closeTab()},onfail:function(){b(document.body)}})};
165
165
  pui.Fw=function(b,a){var c="";if(typeof pui.view!="undefined")c=a+pui.view;else if(b!=null&&typeof b.file=="string"&&typeof b.library=="string")c=a+b.library+"-"+b.file+"-"+b.name;return c};pui.record=function(b){pui.pd.responses.push(JSON.parse(JSON.stringify(b)))};
166
166
  pui.jy=function(){for(var b=null,a=0;a<pui.pd.payloads.length;a++){if(!b&&pui.pd.responses[a].appJob)b=pui.pd.responses[a].appJob.user;pui.pd.payloads[a].response=pui.pd.responses[a]}b=JSON.stringify({user:b,payloads:pui.pd.payloads});var c;a=Bc();for(x=1;x<99;x++){var e=a["var"+x],f=a["value"+x];if(!e&&!f)break;if(e==="testid"){c=f;break}}c||(c=prompt("Enter recording name"));if(c){a=c;a.endsWith(".json")||(a+=".json");if(pui["recording path"]){c=[];c.push({name:"path",value:pui["recording path"]+
167
- a});c.push({name:"text",value:"1"});c.push({name:"replace",value:"Y"});c.push({name:"json",value:b,fileName:a});b=new pui.tq;b.br(c);c=Vb("PUI0001109.pgm");c=c.replace("/auth","");b.send(c,function(h){var g,l={};if(h.tf()!=200)g=h.Ni();if(!g){l=eval("("+h.xc()+")");l.success||(g=l.errorText)}if(g)pui.alert(g);else{pui.alert("Recording saved.");pui.pd={payloads:[],responses:[]}}})}else pui.Mk("text/plain",a,b)}};
167
+ a});c.push({name:"text",value:"1"});c.push({name:"replace",value:"Y"});c.push({name:"json",value:b,fileName:a});b=new pui.tq;b.br(c);c=Vb("PUI0001109.pgm");c=c.replace("/auth","");b.send(c,function(h){var g,l={};if(h.tf()!=200)g=h.Ni();if(!g){l=eval("("+h.yc()+")");l.success||(g=l.errorText)}if(g)pui.alert(g);else{pui.alert("Recording saved.");pui.pd={payloads:[],responses:[]}}})}else pui.Mk("text/plain",a,b)}};
168
168
  pui.Yv=function(){function b(h){h=pui.Cg+h;if(!pui.Dp.payloads[h-1])return false;var g=pui.Dp.b,l=pui.Dp.payloads[h-1].response;l=JSON.parse(JSON.stringify(l));l.b=g;pui.Cg=h;c.innerHTML="Step "+h;if(l["5250"]){O="genie";pui.Zx(l)}else{O="dspf";pui.render(l)}}var a=document.createElement("span");a.classList.add("pui-material-icons");a.innerHTML="keyboard_arrow_left";a.onclick=function(){b(-1)};var c=document.createElement("span");c.classList.add("pui-replay-step");c.innerHTML="Step "+pui.Cg;var e=
169
169
  document.createElement("span");e.classList.add("pui-material-icons");e.innerHTML="keyboard_arrow_right";e.onclick=function(){b(+1)};var f=document.createElement("div");f.classList.add("pui-replay");f.appendChild(a);f.appendChild(c);f.appendChild(e);document.body.appendChild(f)};pui.gg=function(b){b+=b.indexOf("?")===-1?"?":"&";b+="pui-rid="+pui.newUUID();return b};pui.Ou=function(b){this.uri=b};
170
170
  pui.Ou.prototype.handleEvent=function(b){switch(b.type){case "close":if(this.Tj){this.Tj.removeEventListener("message",this);this.Tj.removeEventListener("error",this);this.Tj.removeEventListener("close",this);this.Tj.removeEventListener("open",this);delete this.Tj}}};pui.Yz=function(b){switch(b){case "subfile next changed":return true;case "subfile message key":return true;case "subfile program message queue":return true;case "selection field":return true;case "row is hidden field":return true;case "tree level field":return true;case "subfile changed":return true;case "row font color":return true;case "row background":return true;case "grid row translation placeholder value":return true;default:return false}};
@@ -174,10 +174,10 @@ pui.Qw=function(b){if(b==null||typeof b!="string")return[];var a=[];a["20"]=["GR
174
174
  "UL","CS"];a["35"]=["TRQ","UL","RI","CS"];a["36"]=["YLW","UL","CS"];a["37"]=["ND"];a["38"]=["PNK"];a["39"]=["PNK","RI"];a["3A"]=["BLU"];a["3B"]=["BLU","RI"];a["3C"]=["PNK","UL"];a["3D"]=["PNK","UL","RI"];a["3E"]=["BLU","UL"];a["3F"]=["ND"];a.A0=["GRN","PR"];a.A1=["GRN","RI","PR"];a.A2=["WHT","PR"];a.A3=["WHT","RI","PR"];a.A4=["GRN","UL","PR"];a.A5=["GRN","UL","RI","PR"];a.A6=["WHT","UL","PR"];a.A7=["ND","PR"];a.A8=["RED","PR"];a.A9=["RED","RI","PR"];a.AA=["RED","HI","PR"];a.AB=["RED","HI","RI","PR"];
175
175
  a.AC=["RED","UL","PR"];a.AD=["RED","UL","RI","PR"];a.AE=["RED","UL","BL","PR"];a.AF=["ND","PR"];a.B0=["TRQ","CS","PR"];a.B1=["TRQ","CS","RI","PR"];a.B2=["YLW","CS","PR"];a.B3=["WHT","RI","CS","PR"];a.B4=["TRQ","UL","CS","PR"];a.B5=["TRQ","UL","RI","CS","PR"];a.B6=["YLW","UL","CS","PR"];a.B7=["ND","PR"];a.B8=["PNK","PR"];a.B9=["PNK","RI","PR"];a.BA=["BLU","PR"];a.BB=["BLU","RI","PR"];a.BC=["PNK","UL","PR"];a.BD=["PNK","UL","RI","PR"];a.BE=["BLU","UL","PR"];a.BF=["ND","PR"];return a[b]};
176
176
  pui.pr=function(b){if(b==null||typeof b!="string"||b.length<1)return[];b=pui.Wy(b.charCodeAt(0));return pui.Qw(b)};pui.Ax=function(b){b=b.split("(");if(b.length!=2)return null;var a=b[0],c=b[1];if(c.substr(c.length-1,1)!=")")return null;c=c.substr(0,c.length-1);b=a.split("/");if(b.length!=2)return null;var e=b[0];a=b[1];e=Kb(e).toUpperCase();if(e=="")return null;a=Kb(a).toUpperCase();if(a=="")return null;c=Kb(c).toUpperCase();if(c=="")return null;return{library:e,file:a,member:c}};
177
- pui.zv=function(b,a){var c=pui.Kd;if(!(O!="dspf"||c==null)){if(pui.Z[c]!=null)for(var e in pui.Z[c])for(var f=pui.Z[c][e],h=0;h<f.length;h++)if(f[h]==a){f.splice(h,1);break}a.ud=b;if(!(b==null||b=="")){if(pui.Z[c]==null)pui.Z[c]={};if(pui.Z[c][b]==null)pui.Z[c][b]=[];pui.Z[c][b].push(a);if(a.onclick==null||a.S==null)pui.hg(a)}}};pui.Bw=function(b){var a;for(b=b.parentNode;b!=null&&b!=pui.runtimeContainer;){if(b.zc==true){a=b;break}b=b.parentNode}return a};
177
+ pui.zv=function(b,a){var c=pui.Kd;if(!(O!="dspf"||c==null)){if(pui.Z[c]!=null)for(var e in pui.Z[c])for(var f=pui.Z[c][e],h=0;h<f.length;h++)if(f[h]==a){f.splice(h,1);break}a.ud=b;if(!(b==null||b=="")){if(pui.Z[c]==null)pui.Z[c]={};if(pui.Z[c][b]==null)pui.Z[c][b]=[];pui.Z[c][b].push(a);if(a.onclick==null||a.S==null)pui.hg(a)}}};pui.Bw=function(b){var a;for(b=b.parentNode;b!=null&&b!=pui.runtimeContainer;){if(b.Ac==true){a=b;break}b=b.parentNode}return a};
178
178
  pui.pg=function(b){if(typeof b==="string"){b=b;var a=Eb(b)}else{a=b;b=a.id}if(a&&b){var c=a.comboBoxWidget!=null;if(c)a=a.comboBoxWidget.getBox();if(!(a.tagName!=="INPUT"&&a.tagName!=="TEXTAREA"))if(a.placeholder){var e;if(c){e=a.parentNode;b=e.className.split(" ");for(c=0;c<b.length;c++){f=b[c];f="pui-floating-placeholder-"+f;e.classList.add(f)}}else{e=document.createElement("div");for(c=0;c<a.classList.length;c++){var f=a.classList[c];f="pui-floating-placeholder-"+f;e.classList.add(f)}a.parentNode.insertBefore(e,
179
179
  a);a.parentNode.removeChild(a);a.removeAttribute("id");e.id=b;e.style.position=a.style.position;e.style.left=a.style.left;e.style.top=a.style.top;e.style.right=a.style.right;e.style.bottom=a.style.bottom;e.style.width=a.style.width;e.pui=a.pui;if(a.lc!=null)e.lc=a.lc;if(a.Sc!=null)e.Sc=a.Sc;if(a.kf!=null)e.kf=a.kf;if(a.me!=null)e.me=a.me;if(a.db!=null)e.db=a.db;if(a.Va!=null)e.Va=a.Va;a.style.position="";a.style.left="";a.style.top="";a.style.width="100%";if(a.style.visibility){e.style.visibility=
180
- a.style.visibility;a.style.visibility=""}e.appendChild(a);e.sizeMe=a.sizeMe;e.ee=a.ee;e.wc=a.wc}e.classList.add("pui-floating-placeholder-div");a.classList.add("pui-floating-placeholder-input");b=document.createElement("label");b.classList.add("pui-floating-placeholder-label");b.innerText=a.placeholder;e.insertBefore(b,a.nextSibling);e.l=b;pui.bp(a);b.getValue=function(){return a.value};b.setValue=function(h){a.value=h;pui.je(a)};b.getBox=function(){return a};b.Qp=function(h){h&&a.setAttribute("maxlength",
180
+ a.style.visibility;a.style.visibility=""}e.appendChild(a);e.sizeMe=a.sizeMe;e.ee=a.ee;e.xc=a.xc}e.classList.add("pui-floating-placeholder-div");a.classList.add("pui-floating-placeholder-input");b=document.createElement("label");b.classList.add("pui-floating-placeholder-label");b.innerText=a.placeholder;e.insertBefore(b,a.nextSibling);e.l=b;pui.bp(a);b.getValue=function(){return a.value};b.setValue=function(h){a.value=h;pui.je(a)};b.getBox=function(){return a};b.Qp=function(h){h&&a.setAttribute("maxlength",
181
181
  h)};b.tn=function(h,g){a[h]=g;if(e[h]!=null)e[h]=la()};b.Rp=function(h){a.readOnly=h};b.setDisabled=function(h){a.disabled=h};b.py=function(h,g){a.setAttribute(h,g)};b.zA=function(){box.focus()}}}};
182
182
  pui.cp=function(b){var a=b.dom.l.getBox(),c=b.propertyName,e=Cc(),f;if(e[c]&&e[c].t)f=e[c].t;else if(e[c]&&e[c].V)f=e[c].V;if(f)switch(c){case "disabled":case "read only":a[f]=b.newValue;b.dom.removeAttribute(f);break;case "border radius":case "text align":case "height":a.style[f]=b.dom.style[f];b.dom.style[f]="";break}};var Hb=null,Dc={},Ec=null,Fc=null;pui.Uh=false;
183
183
  function Gc(){if(Ec!=null)return Ec;if(pui.Kn)return Ec=[{name:"Identification",category:true},{name:"bound field",a:"Field[<span title='A whole number value starting from 0001 determined by how many fields with unchanged names have previously been added to the Universal Display File.'>number</span>]",help:"Use this property to specify the bound field name and data type.",readOnly:true,va:false},{name:"description",a:"blank",help:"Use this property to provide a text description (or comment) for the field.",bind:false},
@@ -343,7 +343,7 @@ r,w);if(n[C].V=="src")K=pui.normalizeURL(K,true);n[C].V!=="style"&&w.setAttribut
343
343
  C;if(n.style.borderBottomStyle=="dotted")n.style.borderBottomColor=C}C=s.uf;A=s.propertySetters;G=null;if(A!=null)G=A[t];var N;if(G!=null||C!=null)N=new pui.Om(e,p,f,a,r,n,c,t,h,g);if(C!=null)if(C(N)==false)return;if(G!=null)if(G(N)==false)return;if(F)if(w.comboBoxWidget!=null){F=w.comboBoxWidget.getBox();pui.mr(F);F.B=w.B;attachInputEvents(F);w.comboBoxWidget.Qp(c.maxLength)}else if(w.l!=null){F=w.l.getBox();pui.mr(F);F.B=w.B;attachInputEvents(F);w.l.Qp(c.maxLength)}else pui.mr(w);if(t=="id"&&f){w=
344
344
  h.designer;F=w.selection;if(h.dom.id!=e&&document.getElementById(e)!=null)if(!(pui.is_old_ie&&h.dom.id.toUpperCase()==e.toUpperCase())){pui.alert('The widget id "'+e+'" is already in use.');w.nb.refresh();return n}for(C=0;C<F.Qd.length;C++)if(h.properties.newitem=="true")if(Dc[w.Ma.tb]&&Dc[w.Ma.tb].items){A=Dc[w.Ma.tb].items;for(G=0;G<A.length;G++)if(A[G].id==h.properties.id)A[G].id=e}if(a["field type"]=="tab panel")for(C=0;C<w.items.length;C++)if(w.items[C].properties["parent tab panel"]==h.dom.id){w.items[C].properties["parent tab panel"]=
345
345
  e;w.items[C].dom.Va=e;w.items[C].ob["parent tab panel"]=true;w.nb.Jh("parent tab panel")}F.Qd.length==1&&w.nb.CA("Properties - "+p)}if(t=="parent tab panel"&&(f||a.visibility!="hidden"))c.Va=p;if(t=="parent tab")c.db=p;if(t=="top"||t=="left"||t=="right"||t=="bottom")pui.Dx(c);t=="empty text"&&!f&&pui.sy(c,p);w=null;if(String(e).substr(0,3).toLowerCase()=="js:")w=e.substr(3);if(String(e).substr(0,11).toLowerCase()=="javascript:")w=e.substr(11);if(String(e).substr(0,7).toLowerCase()=="script:")w=e.substr(7);
346
- if(b.t!=null){if(b.t=="visibility"&&f)if(p=="hidden"){c.style.filter="alpha(opacity=30)";c.style.opacity=0.3}else{c.style.filter="";c.style.opacity="";c.style.visibility=p}else if(b.t=="backgroundColor"&&c.tabPanel!=null){c.tabPanel.Ec=p?p:"#eeeeff";if(O=="genie"||f)c.tabPanel.w()}else{try{E=pui.ps(b.t,p);if(b.t=="textTransform"&&p=="uppercase")if(c.tagName=="INPUT"&&c.type=="text"||c.tagName=="TEXTAREA"){c.value=pui.Ge(c.value,false);c.addEventListener("input",pui.ip)}else if(c.comboBoxWidget!=null){var Q=
346
+ if(b.t!=null){if(b.t=="visibility"&&f)if(p=="hidden"){c.style.filter="alpha(opacity=30)";c.style.opacity=0.3}else{c.style.filter="";c.style.opacity="";c.style.visibility=p}else if(b.t=="backgroundColor"&&c.tabPanel!=null){c.tabPanel.Fc=p?p:"#eeeeff";if(O=="genie"||f)c.tabPanel.w()}else{try{E=pui.ps(b.t,p);if(b.t=="textTransform"&&p=="uppercase")if(c.tagName=="INPUT"&&c.type=="text"||c.tagName=="TEXTAREA"){c.value=pui.Ge(c.value,false);c.addEventListener("input",pui.ip)}else if(c.comboBoxWidget!=null){var Q=
347
347
  c.comboBoxWidget.getBox();Q.value=pui.Ge(Q.value,false);Q.addEventListener("input",pui.ip)}else if(c.l!=null){var Z=c.l.getBox();Z.value=pui.Ge(Z.value,false);Z.addEventListener("input",pui.ip)}c.style[b.t]=E;if(f)p===null||p.length==0?pui.xp(c,b.t):pui.Bk(c,b.t,E)}catch(V){if(w==null&&f){E="'"+e+"' is not a valid value for "+t+".";if(Hb.yh){Q=Hb.designer.Lp[Hb.designer.Ma.tb]["record format name"];if(a.grid!=null){Z=Eb(a.grid);if(Z!=null&&Z.grid!=null)Q=Z.grid.Wa}E+="\n\n\nRecord Format: "+Q;E+=
348
348
  "\n\nElement Id: "+a.id;E+="\n\nElement Type: "+a["field type"]}pui.alert(E)}}if(c.tabPanel!=null)if(b.t=="color"||b.t=="fontFamily"||b.t=="fontSize"||b.t=="height"||b.t=="width")if(O=="genie"||f)c.tabPanel.w()}b.t=="visibility"&&p=="hidden"&&!f&&a["field type"]=="date field"&&setTimeout(function(){if(c.calimg&&c.style.visibility=="hidden")c.calimg.style.visibility="hidden"},1);b.t=="visibility"&&p=="hidden"&&!f&&a["field type"]=="spinner"&&setTimeout(function(){c.ad&&c.style.visibility=="hidden"&&
349
349
  c.ad.hide()},1);b.t=="visibility"&&p=="hidden"&&!f&&a["field type"]=="textbox"&&setTimeout(function(){if(c.tj&&c.style.visibility=="hidden")c.tj.style.visibility="hidden"},1);if(b.t=="color"&&c.firstChild!=null&&c.firstChild.tagName=="A")c.firstChild.style.color=p;else if(b.t=="color"&&c.firstChild!=null&&c.firstChild.nextSibling!=null&&c.firstChild.nextSibling.tagName=="A")c.firstChild.nextSibling.style.color=p;if(b.t=="textDecoration"&&c.firstChild!=null&&c.firstChild.tagName=="A")c.firstChild.style.textDecoration=
@@ -373,7 +373,7 @@ if(c.tagName=="TEXTAREA")e=c.value;else if(c.tagName=="INPUT"){var f=c.Cd;if(a&&
373
373
  if(c.U!=null)e=String(c.value);if(c.L!=null){e="";if(c.L.Id&&c.L.Ch!=null)e=c.L.Ch;else if(!c.L.Id&&c.L.Bh!=null)e=c.L.Bh}if(c.pui&&c.pui.widget&&typeof c.pui.widget.getPropertyValue==="function")e=c.pui.widget.getPropertyValue("value");for(e=e.replace(/&nbsp;/g," ");e.indexOf(String.fromCharCode(160))!=-1;)e=e.replace(String.fromCharCode(160)," ");if(e==c.emptyText)e="";return e}function Vc(b,a){return Kb(Uc(b,a))}function Eb(b){return document.getElementById(b)}
374
374
  function Wc(b,a){var c;c=typeof b=="object"?b:document.getElementById(b);if(c!=null){if(c.tagName=="DIV")if(c.U!=null)c.U.setValue(a);else if(c.comboBoxWidget!=null)c.comboBoxWidget.setValue(a);else if(c.l!=null)c.l.setValue(a);else if(c.button&&c.button.m)c.button.m.innerHTML=a;else if(c.pui&&c.pui.widget)applyProperty(c,"value",a);else c.innerHTML=a;else if(c.tagName=="INPUT"||c.tagName=="SELECT"||c.tagName=="TEXTAREA")if(c.tagName=="INPUT"&&c.type=="checkbox")c.checked=typeof a=="boolean"?a:c.checkedValue!=
375
375
  null&&a==c.checkedValue?true:false;else{O=="genie"&&a!=c.value&&pui.D.$z(c);c.value=a;if(c.Cd!=null)c.Cd.value=a}if(O=="dspf"||pui.fa&&c.B==null){c.modified=true;pui.Pe(c);var e=c.G;if(c.id!=null&&c.id.indexOf(".")==-1&&c.lc!=null)pui.jf[c.lc]=true;if(e!=null){e.hide();e.ja=true;pui.ca(c,e.qg())}}if(O=="genie"&&c.B!=null&&c.B.idx!=null)pui.response[c.B.idx]=c;pui.je(c);if(c.pui&&c.pui.properties)c.pui.properties.value=a}}
376
- function Xc(b,a,c,e,f){if(typeof b=="string"){f=c;e=a;c=b;b=a=0}var h;if(c==null)c="div";h=c=c.toLowerCase();if(c=="dspf")h="div";if(c=="button")h="input";h=document.createElement(h);h.style.position="absolute";h.style.top=b*pui.ul+Fa+"px";h.style.left=a*pui.tl+"px";if(e!=null)switch(c){case "div":h.innerHTML=e;break;case "dspf":b=new pui.Ajax(e);b.async=false;b.send();if(b.it())h.innerHTML=b.xc();break;case "input":h.value=e;break;case "button":h.type="button";h.value=e;h.className="button";if(!pui.is_quirksmode)h.style.width=
376
+ function Xc(b,a,c,e,f){if(typeof b=="string"){f=c;e=a;c=b;b=a=0}var h;if(c==null)c="div";h=c=c.toLowerCase();if(c=="dspf")h="div";if(c=="button")h="input";h=document.createElement(h);h.style.position="absolute";h.style.top=b*pui.ul+Fa+"px";h.style.left=a*pui.tl+"px";if(e!=null)switch(c){case "div":h.innerHTML=e;break;case "dspf":b=new pui.Ajax(e);b.async=false;b.send();if(b.it())h.innerHTML=b.yc();break;case "input":h.value=e;break;case "button":h.type="button";h.value=e;h.className="button";if(!pui.is_quirksmode)h.style.width=
377
377
  "55px";break;case "img":h.src=e;break}if(f!=null)h.id=f;if(c=="input"){document.forms.main.appendChild(h);T(h,"keydown",zb)}else{O=="genie"&&document.getElementById(xa).appendChild(h);O=="dspf"&&pui.runtimeContainer.appendChild(h)}return h}function xb(b){if(!b)b=window.event;if(window.event){window.event.cancelBubble=true;window.event.returnValue=false}if(b.preventDefault){b.cancelBubble=true;b.preventDefault()}b.stopPropagation&&b.stopPropagation()}var Yc={};
378
378
  function Tb(b){if(typeof b!=="string")return b;for(;b.charAt(0)==" ";)b=b.replace(b.charAt(0),"");return b}function Ob(b){if(typeof b!=="string")return b;for(;b.charAt(b.length-1)==" ";)b=b.substring(0,b.length-1);return b}function Kb(b){if(typeof b!=="string")return b;return b.replace(/^\s*|\s*$/g,"")}pui.detachCalendar=function(b){if(typeof b=="string")b=Eb(b);b!=null&&pui.yp(b)};
379
379
  function Xb(b,a){var c;try{c=document.createElement("<"+b+' name="'+a+'">')}catch(e){c=document.createElement(b);c.name=a}return c}function Nc(b){if(typeof b=="string")b=Eb(b);if(b==null)return"";var a=b.textContent;if(a==null){a=b.innerText;if(a==null)return""}for(;a.indexOf(String.fromCharCode(160))!=-1;)a=a.replace(String.fromCharCode(160)," ");return a}
@@ -415,7 +415,7 @@ e.onprogress.lastTime+2E3){h.innerHTML="Downloading file: "+c+"<br>"+o.type+" "+
415
415
  if(c.split("/").pop()!=o&&o=="error.txt"){var n=new FileReader;n.onload=function(){pui.alert("Error downloading file: "+c+"\n\n"+n.result,null,"Error","Close");console.log(n.result)};n.readAsText(e.response)}else{var r=null;if(typeof b.contentType==="string"&&b.contentType.length>0)r=b.contentType;else{r=e.getResponseHeader("Content-Type").split(";")[0];if(typeof r==="string"&&r=="application/octet-stream"){var p=o.split(".").pop();if(typeof p==="string")switch(p.toLowerCase()){case "pdf":r="application/pdf";
416
416
  break;case "txt":r="text/plain";break;case "csv":r="text/csv";break;case "json":r="application/json";break;case "xml":r="application/xml";break;case "html":r="text/html";break;case "htm":r="text/html";break;case "jpg":r="image/jpeg";break;case "jpeg":r="image/jpeg";break;case "png":r="image/png";break;case "gif":r="image/gif";break}}}p=["application/pdf","text/plain","text/csv","application/json","application/xml","text/html","image/jpeg","image/png","image/gif"];var t=new File([e.response],o,{type:r});
417
417
  t=window.URL.createObjectURL(t);var s=document.createElement("a");if(typeof b.inline==="boolean"&&b.inline&&p.includes(r))s.target="_blank";else s.download=o;s.name=o;s.href=t;document.body.appendChild(s);s.click();s.remove();window.URL.revokeObjectURL(t)}}}}};pui.extractFileNameFromContentDisposition=function(b){b=/filename[^;=\n]*=((['"]).*?\2|[^;\n]*)/.exec(b);if(b!=null&&b[1])return b[1].replace(/['"]/g,"");return null};
418
- pui.focusOnContainer=function(){window.parent!=window&&pui.Vh(window.parent)&&window.parent.noderun||setTimeout(function(){if(pui.Hc==null){pui.Hc=document.createElement("input");pui.Hc.type=pui.is_touch?"button":"text";pui.Hc.readOnly=true;pui.Hc.style.position="absolute";pui.Hc.style.left="-999px";pui.Hc.style.top="-999px";pui.Hc.style.width="10px";pui.Hc.style.borderStyle="none";pui.Hc.style.backgroundColor="transparent";pui.runtimeContainer.appendChild(pui.Hc)}pui.xg=true;pui.Hc.focus();setTimeout(function(){pui.xg=
418
+ pui.focusOnContainer=function(){window.parent!=window&&pui.Vh(window.parent)&&window.parent.noderun||setTimeout(function(){if(pui.Ic==null){pui.Ic=document.createElement("input");pui.Ic.type=pui.is_touch?"button":"text";pui.Ic.readOnly=true;pui.Ic.style.position="absolute";pui.Ic.style.left="-999px";pui.Ic.style.top="-999px";pui.Ic.style.width="10px";pui.Ic.style.borderStyle="none";pui.Ic.style.backgroundColor="transparent";pui.runtimeContainer.appendChild(pui.Ic)}pui.xg=true;pui.Ic.focus();setTimeout(function(){pui.xg=
419
419
  false},0)},1)};pui.addCSS=function(b){var a=document.getElementsByTagName("head")[0],c=document.createElement("style");c.type="text/css";if(pui.is_old_ie)c.styleSheet.cssText=b;else c.innerHTML=b;a.appendChild(c)};
420
420
  pui.loadCSS=function(b){if(pui.wo(b)!=null)return false;var a=document.getElementsByTagName("head")[0],c=document.createElement("link");c.setAttribute("rel","stylesheet");c.setAttribute("type","text/css");c.setAttribute("media","screen");c.setAttribute("href",pui.normalizeURL(b));a.appendChild(c);return true};
421
421
  pui.removeCSS=function(b){var a=document.getElementsByTagName("head")[0],c=pui.wo(b);if(c==null){c=a.getElementsByTagName("style");for(var e=0;e<c.length;e++){var f=c[e];if(f.innerHTML==b||f.styleSheet!=null&&f.styleSheet.cssText==b){a.removeChild(f);return true}}return false}else{a.removeChild(c);return true}};
@@ -428,7 +428,7 @@ window&&pui.Vh(window.parent)&&window.parent.noderun?console.log("Suppressed ale
428
428
  pui.getDisplayType=function(){return pui.fa?"5250-handler":O=="dspf"?"rdf":"5250"};
429
429
  function cd(b){function a(){if(!(r>=n.length)){s=n[r].command;w=n[r].wait;r+=1;if(typeof pui.onPCCommand=="function")try{var C=pui.onPCCommand(s,w);if(C==null||C==true){setTimeout(a,0);return}}catch(F){showFailureMessage(s)}t="?cmd="+encodeURIComponent(s)+"&wait="+(w?"1":"0");if(g==1||g==2)if(l){A.params.cmd=s;A.params.sign=1;A.params.hashalg=typeof pui["pccmd hash sign algorithm"]==="string"?pui["pccmd hash sign algorithm"].toUpperCase():"SHA-512";A.handler=f;bc(A)}else c("");else if(g==3){A.params.cmd=
430
430
  s;A.handler=e;bc(A)}else{if(r==0&&n.length>0){C=[];for(var G=0;G<n.length;G++)C.push("("+n[G].oz+")");s=C.join(" && ")}try{o.runCommand(s)}catch(B){C='Unable to execute "'+s+'".\n\n';if(B!=null)C+=B.name+":\n\n"+B.message+".";alert(C)}}}}function c(C){if(g==2){var F=new Image;F.onload=a;F.onerror=function(){console.log("PC Command Listener image mode failure.");h(s)};F.src=p+t+"&type=image&rnd="+String(Math.random())+String((new Date).getTime())+C}else{C=new pui.Ajax(p+t+C);C.method="GET";C.async=
431
- w?false:true;C.suppressAlert=true;C.onfail=function(B){if(B.tf()!=200){console.log("PC Command Listener comm. failure: "+B.Ni());h(s)}};C.onsuccess=function(B){try{var E=JSON.parse(B.xc());if(!E.success&&typeof E.error==="string"){console.log("PC Command Listener failure.",E.error);h(s);return}}catch(D){}a()};try{C.send()}catch(G){console.log("PC Command Listener failure.",G);h(s)}}}function e(C,F){try{if(F)throw F;if(C==null)throw"Empty response from PCCMD crypt program.";if(C.error!=null||typeof C.error===
431
+ w?false:true;C.suppressAlert=true;C.onfail=function(B){if(B.tf()!=200){console.log("PC Command Listener comm. failure: "+B.Ni());h(s)}};C.onsuccess=function(B){try{var E=JSON.parse(B.yc());if(!E.success&&typeof E.error==="string"){console.log("PC Command Listener failure.",E.error);h(s);return}}catch(D){}a()};try{C.send()}catch(G){console.log("PC Command Listener failure.",G);h(s)}}}function e(C,F){try{if(F)throw F;if(C==null)throw"Empty response from PCCMD crypt program.";if(C.error!=null||typeof C.error===
432
432
  "string"&&C.error.length>0)throw"PCCMD crypt error: "+String(C.error);if(typeof C.cmd!=="string"||C.cmd.length==0)throw"PCCMD crypt response was missing a command.";var G="puilaunch:"+encodeURIComponent(C.cmd),B=document.createElement("iframe");B.style.display="none";B.src=G;document.body.appendChild(B);setTimeout(function(){B!=null&&B.parentNode!=null&&document.body.removeChild(B);B=null;a()},5E3)}catch(E){console.log(E)}}function f(C,F){try{if(F)throw F;if(typeof C!=="object"||C===null)throw"Empty response";
433
433
  if(C.success!==true)throw typeof C.error==="string"&&C.error.length>0?C.error:"Unknown error";var G="";if(typeof C.sig==="string"&&C.sig.length>0)G="&sig="+encodeURIComponent(C.sig);c(G)}catch(B){console.log(B);h(s)}}function h(C){console.log("Command: "+C);C=pui.getLanguageText("runtimeMsg","pccommand error");pui["alert pccommand errors"]!==false?alert(C):console.log(C);console.log("Visit https://docs.profoundlogic.com/x/aQFK for more information on supporting STRPCCMD.")}var g=1,l=false;if(pui["use pc listener"])g=
434
434
  1;if(window.HTTPS!=null&&window.HTTPS=="ON"&&g==1)g=2;if(pui["pc listener mode"])g=parseInt(pui["pc listener mode"]);if(typeof pui["pc command mode"]=="string")switch(pui["pc command mode"]){case "applet":g=0;break;case "listener":case "listener_m1":g=1;break;case "listener_m1s":g=1;l=true;break;case "listener_m2":g=2;break;case "listener_m2s":g=2;l=true;break;case "launcher":g=3;break;default:g=1;console.log("Unsupported pc command mode:",pui["pc command mode"])}if(g==0){var o=document.getElementById("PCCommandApplet");
@@ -457,7 +457,7 @@ if(f["field type"]=="button"||f["field type"]=="styled button")h.onclick=functio
457
457
  pui.help.Ht=function(b,a,c){var e=document.createElement("div");e.className="help-panel-group";e.style.zIndex=999;if(pui.cd>999)e.style.zIndex=pui.cd+1;pui.runtimeContainer.appendChild(e);e.innerHTML=b;b=document.createElement("input");b.type="button";b.value="Return to Application";b.onclick=function(){e.innerHTML="";e.parentNode.removeChild(e);e=null};e.appendChild(b);if(a==true){e.appendChild(document.createTextNode(" "));a=document.createElement("input");a.type="button";a.value="Extended Help";
458
458
  a.onclick=function(){pui.help.Zr(c,e)};e.appendChild(a)}if(pui["help panel group toc"]==false){a=e.firstChild;if(a!=null&&a.nodeType==3)a=a.nextSibling;if(a!=null&&a.tagName=="DIV"&&a.firstChild!=null&&a.firstChild.tagName=="A"&&a.firstChild.name=="TOC")a.style.display="none"}};
459
459
  pui.help.Zr=function(b,a){for(var c={modules:0,AUTH:pui.appJob.auth},e=false,f=1;!e;){var h="";if(f>1)h=" "+String(f);if(b["help record"+h]==null&&b["help panel group"+h]==null)e=true;else{var g=b["help panel condition"+h];if(g!=null&&pui.p(g)){g=g.dataType=="expression"?pui.lo(g.fieldName,data):data[fieldName];if(g!="1"&&g!="true"&&g!=true){f++;continue}}g=b["help panel group"+h];if(g!=null){var l=g.split("/"),o;if(l.length==2){o=l[0];g=l[1]}else o="*LIBL";h=b["help module"+h];c.modules++;c["pgroup"+
460
- c.modules]=g;c["library"+c.modules]=o;c["module"+c.modules]=h}f++}}if(c.modules<=0)return false;bc({url:Vb("PUI0009108.pgm"),method:"post",params:c,async:true,handler:function(n){pui.Yb();if(n.success==true){if(a!=null){a.innerHTML="";a.parentNode.removeChild(a);a=null}pui.help.Ht(n.html)}else pui.help.error(n)}});return true};pui.click=function(b,a){setTimeout(function(){if(typeof b!="object")b=Eb(b);var c;if(b!=null){if(a!=true&&b.onclick!=null&&typeof b.onclick=="function"){b.onclick();return}c=b.S;if(b.S=="0"||b.o!=null)b.S="1";if(b.ud!=null)pui.sb=b.ud;pui.F=b.F}var e=pui.bc();pui.F="false";pui.Ka=null;pui.Mc=null;pui.Lc=null;if(e==false&&b!=null)b.S=c},0)};pui.link=function(b){pui.skipConfirm=true;setTimeout(function(){location.href=b},1);setTimeout(function(){pui.skipConfirm=false},100)};
460
+ c.modules]=g;c["library"+c.modules]=o;c["module"+c.modules]=h}f++}}if(c.modules<=0)return false;bc({url:Vb("PUI0009108.pgm"),method:"post",params:c,async:true,handler:function(n){pui.Yb();if(n.success==true){if(a!=null){a.innerHTML="";a.parentNode.removeChild(a);a=null}pui.help.Ht(n.html)}else pui.help.error(n)}});return true};pui.click=function(b,a){setTimeout(function(){if(typeof b!="object")b=Eb(b);var c;if(b!=null){if(a!=true&&b.onclick!=null&&typeof b.onclick=="function"){b.onclick();return}c=b.S;if(b.S=="0"||b.o!=null)b.S="1";if(b.ud!=null)pui.sb=b.ud;pui.F=b.F}var e=pui.bc();pui.F="false";pui.Ka=null;pui.Nc=null;pui.Mc=null;if(e==false&&b!=null)b.S=c},0)};pui.link=function(b){pui.skipConfirm=true;setTimeout(function(){location.href=b},1);setTimeout(function(){pui.skipConfirm=false},100)};
461
461
  pui.shiftElements=function(b,a,c){function e(f){f=document.getElementsByTagName(f);for(var h=0;h<f.length;h++){var g=f[h],l=parseInt(g.style.top);if(g.parentNode==pui.runtimeContainer&&!isNaN(l)&&l>=b&&l<=a){l+=c;g.style.top=l+"px"}}}e("div");e("input");e("select");e("textarea")};
462
462
  pui.getRuntimeContainerHeight=function(){function b(c){c=document.getElementsByTagName(c);for(var e=0;e<c.length;e++){var f=c[e],h=parseInt(f.style.top);if(f.parentNode==pui.runtimeContainer&&!isNaN(h)){f=f.offsetHeight;if(!isNaN(f)){f+=h;if(f>a)a=f}}}}var a=0;b("div");b("input");b("select");b("textarea");return a};pui.showHelp=function(){pui.help.show()};pui.Ck={};
463
463
  pui.show=function(b){var a=b.path,c=b.meta,e=b.appJob||{},f=b.format||b.screen,h=b.formats||b.screens,g=b.data;if(g==null)g={};g.__pui_show=true;var l=b.handler;if(!(c==null&&a==null)){if(c==null&&pui.Ck[a]!=null)c=pui.Ck[a];if(c==null){c={method:"get",cacheBuster:true,handler:function(s){b.meta=s;b.appJob=e;pui.Ck[a]=s;pui.show(b)}};if(b.method)c.method=b.method;h=pui.Ax(a);if(h==null){c.url=a;bc(c)}else{c.url=Vb("PUI0001102.pgm");c.params=h;c.handler=function(s){s=s.replace(/''/g,"'");pui.display=
@@ -472,27 +472,27 @@ true;var h=b.handler;if(h==null)h=function(g){if(g.success==false)pui.alert(g.er
472
472
  var n=Vb("PUI0009109.PGM");n+="?AUTH="+encodeURIComponent(pui.ba?pui.ba:pui.appJob.auth);n+="&mode=ajax";if(pui.isCloud)n+="&workspace_id="+pui.cloud.ws.id;o.upload(g,encodeURI(n),function(r){var p={};try{p=eval("("+decodeURIComponent(r.response)+")")}catch(t){p.success=false;p.error="Invalid response."}r.success=p.success;r.success||(r.error=p.key?pui.getLanguageText("runtimeMsg","upload "+p.key):p.error);h(r)},function(r){r.success=false;r.error="An error has occurred: Code = "+r.code;h(r)},l)},
473
473
  function(g){h({success:false,error:g})},f)};
474
474
  pui.Xy=function(b,a){var c=b.overwrite===true,e=b.data,f=e.indexOf(";base64,")+8;f=e.substring(f);var h=b.imageType;e=Vb("PUI0009109.PGM");e+="?AUTH="+encodeURIComponent(pui.ba?pui.ba:pui.appJob.auth);e+="&mode=ajax";e+="&r="+Math.floor(Math.random()*1E9);if(pui.isCloud)e+="&workspace_id="+pui.cloud.ws.id;c=[{name:"file",value:f,contenttype:h,filename:b.fileName,transferencoding:"base64"},{name:"dir",value:b.dir},{name:"overwrite",value:c?"1":"0"},{name:"flimit",value:"1"},{name:"slimit",value:String(Math.ceil(f.length/
475
- 1048576))},{name:"filename",value:b.fileName}];f=new pui.tq;f.br(c);f.send(e,function(g){var l=true,o;if(g.tf()==200){var n;try{n=eval("("+g.xc()+")")}catch(r){l=false;o="Server response missing or invalid."}if(n)(l=n.success)||(o=n.key?pui.getLanguageText("runtimeMsg","upload "+n.key):n.error)}else{l=false;o=g.tf()+" - "+g.Ni()+"."}typeof a=="function"&&a(l,o)})};
475
+ 1048576))},{name:"filename",value:b.fileName}];f=new pui.tq;f.br(c);f.send(e,function(g){var l=true,o;if(g.tf()==200){var n;try{n=eval("("+g.yc()+")")}catch(r){l=false;o="Server response missing or invalid."}if(n)(l=n.success)||(o=n.key?pui.getLanguageText("runtimeMsg","upload "+n.key):n.error)}else{l=false;o=g.tf()+" - "+g.Ni()+"."}typeof a=="function"&&a(l,o)})};
476
476
  pui.uploadSignature=function(b){var a=Eb(b.signaturePadId);if(!(a==null||a.firstChild==null)){if(b.imageType==null)b.imageType="image/png";if(b.fileName==null)b.fileName="signature.png";a=a.firstChild.toDataURL(b.imageType);b.data=String(a);pui.Xy(b,b.handler)}};pui.errorTip=function(b,a,c){if(c==null)c=3E3;else if(c==0)c=null;if(typeof b=="string")b=Eb(b);pui.xg=true;var e=b.G;if(e==null)e=new pui.Vf(b);pui.Q(b,e.qg());e.Nh(a);e.show(c);setTimeout(function(){pui.xg=false},0)};
477
477
  pui.expandAccordionSection=function(b,a){var c=Eb(b);c&&c.Ia&&typeof c.Ia.ne==="function"&&c.Ia.ne(a)};pui.runAttnProgram=function(){O=="dspf"&&pui.submitResponse({attn:"1"})};
478
478
  pui.captureData=function(b,a){function c(h){for(var g=document.getElementsByTagName(h),l=0;l<g.length;l++){var o=g[l],n=o.name;if(n!=null&&n!=""){var r=o.value;o=o.type;if(h==="button"||o=="submit"||o==="reset"||o==="button")r="0";f[n]=r}}}function e(){c("input");c("button");c("select");c("textarea")}var f=b;if(typeof f==="object")e();else{f={};e();if(typeof b==="string"){if(a==null)a="1";f[b]=a}}return f};
479
479
  pui.getAllScreenProps=function(b){if(b&&typeof b!="string")return false;if(!pui.Nd||!pui.Nd.layers)return false;for(var a=pui.Nd.layers,c=[],e=0;e<a.length;e++){for(var f=a[e].formats,h=0;h<f.length;h++){var g=f[h],l=g.name,o=g.data,n=g.metaData.screen;g=g.metaData.ref;var r={formatName:l};for(var p in n)p=="onload"||p=="onsubmit"||p=="onmessage"||(r[p]=pui.R(n[p],o,g));c.push(r)}if(b&&pui.Hb(b)===l)return r}if(b)return false;return c};
480
480
  pui.getScreenProp=function(b,a){if(!b||typeof b!="string")return false;var c=pui.getAllScreenProps();if(!c)return false;if(a)b=pui.Hb(b);else{a=b;b=ad();if(b.length>1)b=b[b.length-1]}a=a.toLowerCase();var e;if(c.length>1)for(var f=0;f<c.length;f++){if(c[f].formatName==b){e=c[f];break}}else e=c[0];return e&&e[a]?e[a]:false};
481
- pui.runLogic=function(b,a,c){if(pui.clientLogic&&pui.clientLogic[b]){pui.routineFunction=ta(false);try{eval('pui["routineFunction"] = function() {\r\n'+pui.clientLogic[b]+"\r\n}")}catch(e){console.error(e)}if(pui.routineFunction()===false)return}pui.Ka=b;pui.Mc=a;pui.Lc=c;pui.click()};pui.Du=function(){var b={},a={},c=this,e;this.init=function(){if(e==null)e=document.getElementsByTagName("head")[0]};this.ov=function(f){if(typeof f=="string"){f=Kb(f);if(f!="")if(b[f]==null){var h=document.createElement("link");h.setAttribute("rel","stylesheet");h.setAttribute("type","text/css");h.setAttribute("media","screen");h.setAttribute("href",pui.normalizeURL(f));b[f]=h;e.appendChild(h)}}};this.ar=function(f,h,g){if(typeof f!="string")return false;f=Kb(f);if(f=="")return false;if(a[f]!=null)return false;
481
+ pui.runLogic=function(b,a,c){if(pui.clientLogic&&pui.clientLogic[b]){pui.routineFunction=ta(false);try{eval('pui["routineFunction"] = function() {\r\n'+pui.clientLogic[b]+"\r\n}")}catch(e){console.error(e)}if(pui.routineFunction()===false)return}pui.Ka=b;pui.Nc=a;pui.Mc=c;pui.click()};pui.Du=function(){var b={},a={},c=this,e;this.init=function(){if(e==null)e=document.getElementsByTagName("head")[0]};this.ov=function(f){if(typeof f=="string"){f=Kb(f);if(f!="")if(b[f]==null){var h=document.createElement("link");h.setAttribute("rel","stylesheet");h.setAttribute("type","text/css");h.setAttribute("media","screen");h.setAttribute("href",pui.normalizeURL(f));b[f]=h;e.appendChild(h)}}};this.ar=function(f,h,g){if(typeof f!="string")return false;f=Kb(f);if(f=="")return false;if(a[f]!=null)return false;
482
482
  if(g==true)return true;var l=false,o=document.createElement("script");o.type="text/javascript";o.onreadystatechange=function(){if(o.readyState=="complete"||o.readyState=="loaded"){!l&&h!=null&&h();l=true}};o.onload=function(){!l&&h!=null&&h();l=true};a[f]=o;o.src=pui.normalizeURL(f);e.appendChild(o);return true};this.load=function(f){c.init();var h=null,g;if(f!=null){g=false;h=f.metaData.screen}else{g=true;h=Hb.designer.Lp[Hb.designer.Ma.tb]}var l={},o=1,n=h["external css"];for(g||(n=pui.R(n,f.data,
483
483
  f.ref));n!=null;){l[n]=true;o++;n=h["external css "+o];g||(n=pui.R(n,f.data,f.ref))}o=[];for(n in b)l[n]!=true&&o.push(n);for(var r=0;r<o.length;r++){n=o[r];e.removeChild(b[n]);delete b[n]}for(n in l)c.ov(n);var p=0;if(g!=true){o=1;for(n=pui.R(h["external javascript"],f.data,f.ref);n!=null;){if(c.ar(n,la(),true)){f.Fj=false;p++}o++;n=pui.R(h["external javascript "+o],f.data,f.ref)}if(p>0){o=1;for(n=pui.R(h["external javascript"],f.data,f.ref);n!=null;){c.ar(n,function(){p-=1;if(p==0){pui.onload!=
484
484
  null&&typeof pui.onload=="function"&&pui.onload(f);if(pui.clientLogic){var t=h["initial routine"];if(t&&t.routine){t=t.routine;try{eval('pui["routineFunction"] = function() {\r\n'+pui.clientLogic[t]+'\r\n}; \r\npui["routineFunction"]();')}catch(s){console.error(s)}}}t=h.onload;if(t!=null&&t!="")try{eval('var format = "'+h["record format name"]+'";');eval('var file = "'+f.file+'";');eval(t)}catch(w){pui.Ca(w,"Onload Error:\n")}if(h.onmessage&&f.msgInfo!=null){pui.message=f.msgInfo;try{eval('var message = pui["message"];');
485
- eval(h.onmessage)}catch(A){pui.Ca(A,"Onmessage Error:\n")}}}});o++;n=pui.R(h["external javascript "+o],f.data,f.ref)}}}}};pui.qw=new pui.Du;pui.Vf=function(b){function a(w,A){setTimeout(function(){w==o&&s.hide()},A)}function c(){if(s.Dc>=0&&s.Dc<=100){s.I.style.filter="alpha(opacity="+s.Dc+")";s.I.style.opacity=s.Dc/100}if(l)s.Dc-=30;else s.Dc+=20;if(l&&s.Dc<=0||!l&&s.Dc>=100)if(l){s.I.style.display="none";s.I.style.visibility="hidden";s.Dc=0}else{s.I.style.filter="alpha(opacity=100)";s.I.style.opacity=1;s.Dc=100}else setTimeout(c,100)}function e(w){if(!pui.Vw){w=wb(w);if(w!=null){w=w.G;w!=null&&w.ja!=true&&w.show()}}}function f(w){var A=
486
- w.keyCode;if(!(A>=9&&A<=45))if(!(A>=112&&A<=145)){w=wb(w);if(w!=null){A=w.G;if(A!=null){A.hide();A.ja=true;pui.ca(w,A.qg())}}}}function h(w){w=wb(w);if(w!=null){var A=w.G;if(A!=null){A.hide();A.ja=true;pui.ca(w,A.qg())}}}function g(w){if(w!=null)s.Qb=w;else if(typeof r.pui.properties["error message location"]!="undefined")s.Qb=r.pui.properties["error message location"];if(s.Qb!="left"&&s.Qb!="right"&&s.Qb!="top"&&s.Qb!="bottom")s.Qb="right"}this.b=null;this.Dc=0;var l=false,o=0,n=b,r=b;this.Qb="right";
487
- var p="";this.mi="";if(typeof r.pui.properties["error message css class"]=="string")this.mi=Kb(r.pui.properties["error message css class"]);if(this.mi=="")this.mi="pui-tip-error";var t=this.mi+"-invalid";this.pb=this.Cc=this.I=null;var s=this;if(r.pui.properties["error message attach"]=="parent"){this.Cq=true;this.b=r.parentNode}else{this.Cq=false;this.b=pui.Bw(r);if(this.b==null)this.b=pui.runtimeContainer}if(n.comboBoxWidget!=null)n=n.comboBoxWidget.getBox();if(n.l!=null)n=n.l.getBox();T(n,"focus",
488
- e);n.tagName=="INPUT"&&(n.type=="text"||pui.cl(n.type))||T(n,"click",e);T(n,"blur",function(w){if(!pui.xg){w=wb(w);if(w!=null){w=w.G;w!=null&&w.hide()}}});n.tagName=="SELECT"?T(n,"change",h):T(n,"keydown",f);n.G=this;g();fd(this);this.Nh=function(w){p=w;s.Cc.innerHTML='<div class="pui-tip-icon" />';s.Cc.appendChild(document.createTextNode(p))};this.setPosition=function(w,A){s.I.style.left=w+"px";s.I.style.top=A+"px"};this.Ex=function(){var w=s.I.offsetHeight,A=s.I.offsetWidth,C=r.offsetHeight,F=r.offsetWidth,
485
+ eval(h.onmessage)}catch(A){pui.Ca(A,"Onmessage Error:\n")}}}});o++;n=pui.R(h["external javascript "+o],f.data,f.ref)}}}}};pui.qw=new pui.Du;pui.Vf=function(b){function a(w,A){setTimeout(function(){w==o&&s.hide()},A)}function c(){if(s.Ec>=0&&s.Ec<=100){s.I.style.filter="alpha(opacity="+s.Ec+")";s.I.style.opacity=s.Ec/100}if(l)s.Ec-=30;else s.Ec+=20;if(l&&s.Ec<=0||!l&&s.Ec>=100)if(l){s.I.style.display="none";s.I.style.visibility="hidden";s.Ec=0}else{s.I.style.filter="alpha(opacity=100)";s.I.style.opacity=1;s.Ec=100}else setTimeout(c,100)}function e(w){if(!pui.Vw){w=wb(w);if(w!=null){w=w.G;w!=null&&w.ja!=true&&w.show()}}}function f(w){var A=
486
+ w.keyCode;if(!(A>=9&&A<=45))if(!(A>=112&&A<=145)){w=wb(w);if(w!=null){A=w.G;if(A!=null){A.hide();A.ja=true;pui.ca(w,A.qg())}}}}function h(w){w=wb(w);if(w!=null){var A=w.G;if(A!=null){A.hide();A.ja=true;pui.ca(w,A.qg())}}}function g(w){if(w!=null)s.Qb=w;else if(typeof r.pui.properties["error message location"]!="undefined")s.Qb=r.pui.properties["error message location"];if(s.Qb!="left"&&s.Qb!="right"&&s.Qb!="top"&&s.Qb!="bottom")s.Qb="right"}this.b=null;this.Ec=0;var l=false,o=0,n=b,r=b;this.Qb="right";
487
+ var p="";this.mi="";if(typeof r.pui.properties["error message css class"]=="string")this.mi=Kb(r.pui.properties["error message css class"]);if(this.mi=="")this.mi="pui-tip-error";var t=this.mi+"-invalid";this.pb=this.Dc=this.I=null;var s=this;if(r.pui.properties["error message attach"]=="parent"){this.Cq=true;this.b=r.parentNode}else{this.Cq=false;this.b=pui.Bw(r);if(this.b==null)this.b=pui.runtimeContainer}if(n.comboBoxWidget!=null)n=n.comboBoxWidget.getBox();if(n.l!=null)n=n.l.getBox();T(n,"focus",
488
+ e);n.tagName=="INPUT"&&(n.type=="text"||pui.cl(n.type))||T(n,"click",e);T(n,"blur",function(w){if(!pui.xg){w=wb(w);if(w!=null){w=w.G;w!=null&&w.hide()}}});n.tagName=="SELECT"?T(n,"change",h):T(n,"keydown",f);n.G=this;g();fd(this);this.Nh=function(w){p=w;s.Dc.innerHTML='<div class="pui-tip-icon" />';s.Dc.appendChild(document.createTextNode(p))};this.setPosition=function(w,A){s.I.style.left=w+"px";s.I.style.top=A+"px"};this.Ex=function(){var w=s.I.offsetHeight,A=s.I.offsetWidth,C=r.offsetHeight,F=r.offsetWidth,
489
489
  G=s.Qb;g();if(G!=s.Qb){fd(s);s.Nh(p)}if(s.Qb=="left"||s.Qb=="right"){w=r.offsetTop-(w-C)/2;A=s.Qb=="left"?r.offsetLeft-A-3:r.offsetLeft+F+3}else{A=r.offsetLeft+(F-A)/2;w=s.Qb=="top"?r.offsetTop-w-3:r.offsetTop+C+3}C=r.parentNode;if(C==null||pui.is_old_ie&&C.nodeName=="#document-fragment"){g("right");fd(s);s.Nh(p);w=0;A=-7}else{if(this.Cq){if(A<0)A=0;if(w<0)w=0}else if(C.getAttribute("container")=="true"){F=pui.layout.sf(C);w+=F.y;A+=F.x}if(C!=s.b&&C.getAttribute("container")!="true"){A+=C.offsetLeft;
490
490
  w+=C.offsetTop;C=C.parentNode;if(C!=s.b){A+=C.offsetLeft;w+=C.offsetTop;if(C.parentNode.getAttribute("container")=="true"){F=pui.layout.sf(C.parentNode);w+=F.y;A+=F.x}}}}if(r.style.visibility=="hidden"){C=r.db;F=r.Va;if(C!=null&&F){F=Eb(F);if(F!=null){F=F.tabPanel;if(F!=null)if(F.selectedTab!=C){F.selectedTab=C;F.w()}}}}s.setPosition(A,parseInt(w))};this.show=function(w,A){this.ja=false;if(A==true)setTimeout(function(){s.show(w,false)},0);else{if(s.I.style.display=="none"){s.I.style.display="block";
491
- s.I.style.visibility="";s.Dc=0;l=false;c()}o+=1;if(o>1E4)o=0;w!=null&&a(o,w);s.Ex()}};this.hide=function(){l=true;c()};this.Rw=function(){s.I.style.display="none";s.I.style.visibility="hidden";s.Dc=0};this.qg=function(){return t}};pui.Vf.prototype=Object.create(pui.Xd.prototype);
492
- pui.Vf.prototype.destroy=function(){this.I.removeEventListener("mousedown",this);this.pb.removeEventListener("mousedown",this);this.pb.removeEventListener("mouseup",this);this.pb.removeEventListener("click",this);this.I.removeChild(this.pb);this.I.removeChild(this.Cc);this.I.parentNode.removeChild(this.I);Yb(this)};
493
- function fd(b){var a=b.I!=null;if(a){b.pb.removeEventListener("mousedown",b);b.pb.removeEventListener("mouseup",b);b.pb.removeEventListener("click",b);b.pb.parentNode.removeChild(b.pb);b.pb=null;b.Cc.parentNode.removeChild(b.Cc);b.Cc=null;b.I.removeEventListener("mousedown",b);b.I.parentNode.removeChild(b.I);b.I=null}b.I=document.createElement("div");b.I.classList.add("pui-tip");if(b.Qb=="top")b.I.classList.add("pui-tip-top");else if(b.Qb=="bottom")b.I.classList.add("pui-tip-bottom");else b.Qb=="left"?
494
- b.I.classList.add("pui-tip-left"):b.I.classList.add("pui-tip-right");b.I.classList.add(b.mi);b.I.style.position="absolute";b.Cc=document.createElement("div");b.Cc.className="pui-tip-content";b.pb=document.createElement("div");b.pb.className="pui-tip-close";b.pb.addEventListener("mousedown",b);b.pb.addEventListener("mouseup",b);b.pb.addEventListener("click",b);b.I.addEventListener("mousedown",b);if(!a){b.I.style.display="none";b.I.style.visibility="hidden"}b.I.appendChild(b.Cc);b.I.appendChild(b.pb);
495
- b.b.appendChild(b.I)}pui.Vf.prototype.handleEvent=function(b){switch(b.type){case "mousedown":if(b.target==this.pb)this.pb.className="pui-tip-close-click";xb(b);return false;case "mouseup":this.pb.className="pui-tip-close";break;case "click":this.I.style.display="none";this.I.style.visibility="hidden";this.Dc=0;break;case "scroll":break}};function hd(b){function a(){if(!(Aa&&Ja)){A=true;setTimeout(n,200)}}function c(ga){cb=true;ga=ga||window.event;var na=ga.keyCode;if((na==38||na==40)&&B.style.display=="block"){var ra;if(na==38)ra=V!=null?V-1:ea.length-1;else if(na==40)ra=V!=null?V+1:0;if(ra<0||ra>=ea.length)ra=null;h(ra,true);ga.cancelBubble=true;ga.returnValue=false;ga.preventDefault&&ga.preventDefault();ga.stopPropagation&&ga.stopPropagation();return false}else if(na==9&&V!=null)p();else if(na==9&&V==null&&pui["autocomplete tab selects"]==
491
+ s.I.style.visibility="";s.Ec=0;l=false;c()}o+=1;if(o>1E4)o=0;w!=null&&a(o,w);s.Ex()}};this.hide=function(){l=true;c()};this.Rw=function(){s.I.style.display="none";s.I.style.visibility="hidden";s.Ec=0};this.qg=function(){return t}};pui.Vf.prototype=Object.create(pui.Xd.prototype);
492
+ pui.Vf.prototype.destroy=function(){this.I.removeEventListener("mousedown",this);this.pb.removeEventListener("mousedown",this);this.pb.removeEventListener("mouseup",this);this.pb.removeEventListener("click",this);this.I.removeChild(this.pb);this.I.removeChild(this.Dc);this.I.parentNode.removeChild(this.I);Yb(this)};
493
+ function fd(b){var a=b.I!=null;if(a){b.pb.removeEventListener("mousedown",b);b.pb.removeEventListener("mouseup",b);b.pb.removeEventListener("click",b);b.pb.parentNode.removeChild(b.pb);b.pb=null;b.Dc.parentNode.removeChild(b.Dc);b.Dc=null;b.I.removeEventListener("mousedown",b);b.I.parentNode.removeChild(b.I);b.I=null}b.I=document.createElement("div");b.I.classList.add("pui-tip");if(b.Qb=="top")b.I.classList.add("pui-tip-top");else if(b.Qb=="bottom")b.I.classList.add("pui-tip-bottom");else b.Qb=="left"?
494
+ b.I.classList.add("pui-tip-left"):b.I.classList.add("pui-tip-right");b.I.classList.add(b.mi);b.I.style.position="absolute";b.Dc=document.createElement("div");b.Dc.className="pui-tip-content";b.pb=document.createElement("div");b.pb.className="pui-tip-close";b.pb.addEventListener("mousedown",b);b.pb.addEventListener("mouseup",b);b.pb.addEventListener("click",b);b.I.addEventListener("mousedown",b);if(!a){b.I.style.display="none";b.I.style.visibility="hidden"}b.I.appendChild(b.Dc);b.I.appendChild(b.pb);
495
+ b.b.appendChild(b.I)}pui.Vf.prototype.handleEvent=function(b){switch(b.type){case "mousedown":if(b.target==this.pb)this.pb.className="pui-tip-close-click";xb(b);return false;case "mouseup":this.pb.className="pui-tip-close";break;case "click":this.I.style.display="none";this.I.style.visibility="hidden";this.Ec=0;break;case "scroll":break}};function hd(b){function a(){if(!(Aa&&Ja)){A=true;setTimeout(n,200)}}function c(ga){cb=true;ga=ga||window.event;var na=ga.keyCode;if((na==38||na==40)&&B.style.display=="block"){var ra;if(na==38)ra=V!=null?V-1:ea.length-1;else if(na==40)ra=V!=null?V+1:0;if(ra<0||ra>=ea.length)ra=null;h(ra,true);ga.cancelBubble=true;ga.returnValue=false;ga.preventDefault&&ga.preventDefault();ga.stopPropagation&&ga.stopPropagation();return false}else if(na==9&&V!=null)p();else if(na==9&&V==null&&pui["autocomplete tab selects"]==
496
496
  true){V=0;p()}else if(na==13){if((na=B.style.display=="block")&&B.children.length==1&&B.children[0].textContent.toUpperCase()===ga.currentTarget.value.toUpperCase()){V=0;p();n();return true}if(na&&V!=null){p();n();ga.cancelBubble=true;ga.returnValue=false;ga.preventDefault&&ga.preventDefault();ga.stopPropagation&&ga.stopPropagation();return false}else{n();if(na){ga.cancelBubble=true;ga.returnValue=false;ga.preventDefault&&ga.preventDefault();ga.stopPropagation&&ga.stopPropagation();return false}}}}
497
497
  function e(ga){cb=false;ga=ga||window.event;ga=ga.keyCode;if(!(ia.readOnly||ia.disabled))if(Kb(ia.value)==""){if(R)R.value="";n()}else if(ga==8||ga>=46&&ga<=90||ga>=96&&ga<=111||ga>=186&&ga<=222||(window.pz!=null||typeof window.orientation!=="undefined")&&(ga==0||ga==229))if(ia.value.replace(/ /g,"")!="")if(db&&hb)g(Ob(ia.value.toUpperCase()));else{clearTimeout(da);A=false;da=setTimeout(function(){l(Ob(ia.value))},Lb)}}function f(){if(!cb)if(Kb(ia.value)==""){if(R)R.value="";n()}else if(ia.value.replace(/ /g,
498
498
  "")!="")if(db&&hb)g(Ob(ia.value.toUpperCase()));else{A=false;l(Ob(ia.value))}}function h(ga,na){if(V!=null&&B.childNodes!=null&&B.childNodes[V]!=null){B.childNodes[V].className=B.childNodes[V].className.replace(" autocomplete-selected","");B.childNodes[V].className=B.childNodes[V].className.replace("autocomplete-selected","")}if(ga!=null){var ra=B.childNodes[ga];ra.className+=" autocomplete-selected";if(na==true&&typeof ra.scrollIntoView==="function"){var eb=0;if(typeof window.pageYOffset=="number")eb=
@@ -519,7 +519,7 @@ f,false);window.addEventListener("resize",r,false);this.Zt=function(ga){mb=ga};t
519
519
  function(ga){tb=ga}}
520
520
  function kd(b,a,c){var e=Zb(b["choices database file"],a,c),f=Zb(b["choice options field"],a,c),h=pui.ph(f),g=Zb(b["choices url"],a,c);f=Zb(b["use choices url for reverse lookup"],a,c);f=g!=""&&f!=null&&(f=="true"||f==true)?true:false;var l=Zb(b["choice values field"],a,c),o=Zb(b["max choices"],a,c),n=Zb(b["contains match"])=="true",r=Zb(b.choices,a,c);r=pui.ha(r);if(r.length==0)r=[""];var p=Zb(b["choice values"],a,c);if(p==""){p=[];for(var t=0;t<r.length;t++)p.push(r[t])}else p=pui.ha(p);if(p.length==
521
521
  0)p=[""];var s=Kb(Zb(b["results template"],a,c));if(s=="")s=null;if(e!=""&&h[0]!=""||g!=""||r.length>0&&r[0]!=""&&p[0]!=""){var w=Zb(b.onselect,a,c),A;if(w!=null&&w!=""){A=w;w=A.indexOf("(");if(w!=-1)if(A.substr(w+1,1)==")")A=A.substr(0,w)}w=Zb(b.ondbload,a,c);if(typeof w!="string"||w=="")w=null;var C={};if(pui.isCloud)C.workspace_id=pui.cloud.ws.id;if(pui.ba)C.AUTH=pui.ba;else if(g==""||!pui.bj)C.AUTH=pui.appJob.auth;if(g==""&&r[0]==""&&p[0]==""){n=Zb(b["contains match"],a,c)=="true";var F="SELECT DISTINCT ";
522
- for(t=0;t<h.length;t++){if(t!=0)F+=", ";F+=h[t]}if(l!="")F+=","+l;F+=" FROM "+e;F+=" WHERE UPPER("+h[0]+") LIKE '";if(n)F+="%";F+="!!QUERY!!%'";t=Zb(b["choices selection criteria"],a,c);if(t!="")F+=" AND ("+t+")";F+=" ORDER BY "+h[0]}if(c.kc!=null&&c.kc.destroy!=null){c.kc.destroy();c.kc=null}var G;if(O=="dspf"&&Fb())G=Hb.designer.b;else{for(t=c.parentNode;t;){if(t.zc){G=t;break}t=t.parentNode}if(G==null)G=pui.runtimeContainer}var B=function(D){D=Ob(D.replace(/\u00DF/g,"\u1e9e"));D=D.toUpperCase();
522
+ for(t=0;t<h.length;t++){if(t!=0)F+=", ";F+=h[t]}if(l!="")F+=","+l;F+=" FROM "+e;F+=" WHERE UPPER("+h[0]+") LIKE '";if(n)F+="%";F+="!!QUERY!!%'";t=Zb(b["choices selection criteria"],a,c);if(t!="")F+=" AND ("+t+")";F+=" ORDER BY "+h[0]}if(c.kc!=null&&c.kc.destroy!=null){c.kc.destroy();c.kc=null}var G;if(O=="dspf"&&Fb())G=Hb.designer.b;else{for(t=c.parentNode;t;){if(t.Ac){G=t;break}t=t.parentNode}if(G==null)G=pui.runtimeContainer}var B=function(D){D=Ob(D.replace(/\u00DF/g,"\u1e9e"));D=D.toUpperCase();
523
523
  return D=D.replace(/\u1E9E/g,"\u00df")},E=new hd({bq:c,url:g!=""?g:Vb("PUI0009102.PGM"),baseParams:C,b:G,Xv:n,choices:r[0]!=""?r:null,values:p[0]!=""?p:null,ll:o!=""?o:null,template:s,onselect:A,jt:b.onselect,kt:w,typeAheadDelay:pui["autocomplete typeahead delay"],valueField:g==""&&r[0]==""&&p[0]==""&&l!=""&&l!=h[0]?l:null,beforequery:g==""&&r[0]==""&&p[0]==""?function(D,K){if(Zb(b["case sensitive"],a,c)=="true")if(Zb(b["text transform"],a,c)=="uppercase"||c.M!=null&&c.M.textTransform=="uppercase")K=
524
524
  B(K);else{if(Zb(b["text transform"],a,c)=="lowercase"||c.M!=null&&c.M.textTransform=="lowercase")K=Ob(K.toLowerCase())}else K=B(K);if(K=="")return false;if(pui.secLevel>0){if(Zb(b["contains match"],a,c)=="true")K="%"+Kb(K)+"%";else K+="%";D.q=pui.Wc(c);D.p1=K;pui.ld(b,D)}else{K=K.replace(/'/g,"''");D.q=pui.xb.lf(F.replace("!!QUERY!!",K))}}:null,onload:function(D){if(!s)if(c.Dv!=null){c.yn&&E.Zt(c.yn);c.zn&&E.setWidth(c.zn)}else{var K=document.createElement("div");K.style.position="absolute";K.style.top=
525
525
  "0px";K.style.left="0px";K.style.className="autocomplete-item";K.style.visibility="hidden";document.body.appendChild(K);var M='<div class="autocomplete-item">',N=D.colWidths,Q=D.results[0],Z=0,V=0,ea;for(var da in Q){if(g==""&&Z==h.length)break;if(!(g!=""&&typeof D.valueField==="string"&&da==D.valueField)){K.innerHTML="";M+='<div class="autocomplete-col" style="float: left; width: ';if(N&&N[Z])if(typeof N[Z]=="number"){for(ea=0;ea<N[Z];ea++)K.innerHTML+="a";M+=K.offsetWidth+5+'px;"';V+=K.offsetWidth+
@@ -535,7 +535,7 @@ pui.xb.kw=function(b){var a=qd(pui.xb.Wr(pui.xb.vv,2));a=new pd(a);b=qd(b);a=b=a
535
535
  pui.xb.lw=function(b,a){if(b.length%4!=0)return"";for(;b.length%32!=0;)b+="0020";if(a){for(var c="",e=0;e<b.length;e+=2){c+=b.substr(e,2);c+=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"][Math.floor(Math.random()*16)];c+=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"][Math.floor(Math.random()*16)]}b=c}c="";for(e=0;e<b.length;e+=32){var f=b.substr(e,32);c+=pui.xb.kw(f)}return c};
536
536
  pui.xb.Wr=function(b,a){for(var c="",e=b.length,f=0,h;f<e;){for(h=b.charCodeAt(f++).toString(16);h.length<a;)h="0"+h;c+=h}return c};pui.xb.lf=function(b){b=pui.xb.Wr(b,4);return pui.xb.lw(b,true).toUpperCase()};var rd=new (function(){function b(){pui.setCookie(c,JSON.stringify(f),null,"/",null,null,"Strict")}function a(){var h=pui.getCookie(c);if(h==null)f={};else try{f=JSON.parse(h)}catch(g){f={}}e=true}var c="GenieSession";if(O=="dspf")c="PUISession";var e=false,f={};this.Xl=function(h,g){e||a();f[h]=g;b()};this.getValue=function(h,g){e||a();var l=f[h];if(l==null)l=g;if(l==null)l="";return l};this.clear=function(){f={};b()};this.Nx=this.set=this.setValue=this.Xl;this.get=this.getValue});
537
537
  window.session=rd;window.session.saveValue=rd.Xl;window.session.getValue=rd.getValue;window.session.clear=rd.clear;window.session.setValue=rd.setValue;window.session.set=rd.set;window.session.put=rd.Nx;window.session.get=rd.get;pui.runtimeContainer=null;pui.Gt=0;pui["refresh interval"]=null;pui.O={};pui.ah={};pui.th={};pui.lh={};pui.Z={};pui.Sd={};pui.psid=null;pui.Lb=false;pui.$n=false;pui.W={};pui.Bl=null;pui.cd=1E3;pui.od=null;pui.Wo=null;pui.Xo=null;pui.modified=false;pui.jf={};pui.xg=false;pui.Vw=false;pui.confirmOnClose=true;pui.shutdownOnClose=true;pui.skipConfirm=false;pui.sb="";pui.Fl=null;pui.za={};pui.r={};pui.Ek={};pui.Wl={};pui.um={};pui.jm={};pui.Yp={};pui.lb={};pui.Dk={};pui.Am=null;pui.ym=null;pui.Il=true;
538
- pui.wm=null;pui.oi=null;pui.Np=false;pui.im=[];pui.ia={};pui.ia.keys={};pui.Ua=[];pui.Jg=[];pui.Vi=[];pui.F="false";pui.Ka=null;pui.Mc=null;pui.Lc=null;pui.Tn="false";pui.Kd=null;pui.Gj=null;pui.pj=false;pui.pa=false;pui.vf=false;pui.le=null;pui.oe=null;pui.Jc=[];pui.activeElement=null;pui.An=false;pui.currentFormatNames=[];pui["no focus"]=false;pui.He={};pui.zm=null;pui.Yl=[];pui.sj={};pui.pd={payloads:[],responses:[]};pui.wd=[];pui.Wp=20;pui.Ky=8;pui.leftOffset=140;pui.Uy=0;pui.nj=27;
538
+ pui.wm=null;pui.oi=null;pui.Np=false;pui.im=[];pui.ia={};pui.ia.keys={};pui.Ua=[];pui.Jg=[];pui.Vi=[];pui.F="false";pui.Ka=null;pui.Nc=null;pui.Mc=null;pui.Tn="false";pui.Kd=null;pui.Gj=null;pui.pj=false;pui.pa=false;pui.vf=false;pui.le=null;pui.oe=null;pui.Kc=[];pui.activeElement=null;pui.An=false;pui.currentFormatNames=[];pui["no focus"]=false;pui.He={};pui.zm=null;pui.Yl=[];pui.sj={};pui.pd={payloads:[],responses:[]};pui.wd=[];pui.Wp=20;pui.Ky=8;pui.leftOffset=140;pui.Uy=0;pui.nj=27;
539
539
  pui["vertical button spacing"]=33;pui["horizontal button spacing"]=90;pui["highlight on focus"]=false;pui["window mask color"]="#CCCCCC";pui["window mask opacity"]=50;pui["loading animation"]={};pui["loading animation"].path=pui.normalizeURL("/profoundui/proddata/images/loading.gif");pui["loading animation"]["default"]=pui["loading animation"].path;pui["loading animation"].left=10;pui["loading animation"].top=10;pui["loading animation"].width=16;pui["loading animation"].height=16;
540
540
  pui["loading animation"].zIndex=250;pui["loading animation"].css="pui-animation";pui["auto tab"]=false;pui["enable arrow keys"]=false;pui["horizontal auto arrange"]=false;pui["buttons per row"]=1;pui["strict tab control"]=false;pui.wikihelp={};pui.vw={F1:1,F2:2,F3:3,F4:4,F5:5,F6:6,F7:7,F8:8,F9:9,F10:10,F11:11,F12:12,F13:13,F14:14,F15:15,F16:16,F17:17,F18:18,F19:19,F20:20,F21:21,F22:22,F23:23,F24:24,Enter:0};
541
541
  pui.nn={F1:49,F2:50,F3:51,F4:52,F5:53,F6:54,F7:55,F8:56,F9:57,F10:58,F11:59,F12:60,F13:177,F14:178,F15:179,F16:180,F17:181,F18:182,F19:183,F20:184,F21:185,F22:186,F23:187,F24:188,"Pause/Break":189,Clear:189,Enter:241,"Alt-F1":243,Help:243,PageUp:244,PageDown:245,Print:246,RecordBackspace:248,AutoEnter:63};
@@ -547,7 +547,7 @@ pui.xx=function(b){function a(s,w,A){for(var C=A,F=1;w[C]!=null&&w[C]!="";){if(w
547
547
  false,p=h.metaData.items;for(g=0;g<p.length;g++){var t=p[g];t=t["field type"];if(t=="checkbox"||t=="combo box"||t=="date field"||t=="password field"||t=="radio button"||t=="select box"||t=="spinner"|t=="text area"||t=="textbox"){r=true;break}}for(g=0;g<f;g++){pui.cw(l,b[g],o,n);r&&pui.Rx(b[g].metaData.screen["overlay range"],o)&&pui.At(b[g])}}if(h.subfiles!=null){o=h.metaData.screen["overlay range"];if(o!=null){p=o.split("-");if(p.length==2){c=Number(p[1]);p=h.metaData.items;for(g=0;g<p.length;g++){t=
548
548
  p[g];if(t["field type"]=="grid"){e=t;break}}}}}}if(c!=null&&!isNaN(c)&&e!=null)for(f=0;f<b.length;f++){h=b[f];o=h.metaData.screen["overlay range"];if(o!=null){p=o.split("-");if(p.length==2){p=Number(p[0]);if(!isNaN(p)&&p>c){p=Number(e["number of rows"]);if(isNaN(p)||p<=0)break;if(e["has header"]=="true")p-=1;t=Number(e["row height"]);if(isNaN(t)||t<=0)break;g=e["fold multiple"];if(g==null)g=parseInt(t/pui.Wp);g=Number(g);if(isNaN(g)||g<1)g=1;t=parseInt(t/g);l=p*(t-pui.Wp);p=e["show paging controls"];
549
549
  t=e["show page number"];g=e["csv export"];o=false;if(p!=null&&p!=""&&p!="false")o=true;if(t!=null&&t!=""&&t!="false")o=true;if(g!=null&&g!=""&&g!="false")o=true;if(o)l+=pui.nj;if(l<=0)break;p=h.metaData.items;for(g=0;g<p.length;g++){t=p[g];if(t.grid==null){h=t["field type"];if(h!="panel"&&h!="css panel"&&!pui.p(t.top)&&!a("stationary",t,"css class"))t.top=parseInt(t.top)+l+"px"}}}}}}};
550
- pui.wi=function(){pui.Hc=null;if(pui.Nd!=null&&pui.gl!=true){if(pui.Nd.layers)for(var b=0;b<pui.Nd.layers.length;b++)for(var a=pui.Nd.layers[b],c=0;c<a.formats.length;c++){var e=a.formats[c];e.data&&delete e.data;e.metaData&&delete e.metaData;e=e.subfiles;if(e!=null)for(var f in e){delete e[f].data;delete e[f]}}delete pui.Nd}for(c=0;c<pui.Ua.length;c++){b=pui.Ua[c];b!=null&&typeof b.destroy=="function"&&b.destroy()}pui.Ua=[];for(c=0;c<pui.Vi.length;c++){b=pui.Vi[c];b!=null&&typeof b.destroy=="function"&&
550
+ pui.wi=function(){pui.Ic=null;if(pui.Nd!=null&&pui.gl!=true){if(pui.Nd.layers)for(var b=0;b<pui.Nd.layers.length;b++)for(var a=pui.Nd.layers[b],c=0;c<a.formats.length;c++){var e=a.formats[c];e.data&&delete e.data;e.metaData&&delete e.metaData;e=e.subfiles;if(e!=null)for(var f in e){delete e[f].data;delete e[f]}}delete pui.Nd}for(c=0;c<pui.Ua.length;c++){b=pui.Ua[c];b!=null&&typeof b.destroy=="function"&&b.destroy()}pui.Ua=[];for(c=0;c<pui.Vi.length;c++){b=pui.Vi[c];b!=null&&typeof b.destroy=="function"&&
551
551
  b.destroy()}pui.Vi=[];if(typeof FusionCharts!="undefined")for(c=0;c<pui.ti.length;c++)FusionCharts(pui.ti[c])&&FusionCharts(pui.ti[c]).dispose();pui.ti=[];for(c=0;c<pui.Jg.length;c++){b=pui.Jg[c];b!=null&&typeof b.destroy=="function"&&b.destroy()}pui.Jg=[];for(c=0;c<pui.Yl.length;c++){b=pui.Yl[c];ac(b.ow,b.nw,b.mw)}pui.Yl=[];for(var h in pui.He)document.body.style[h]=pui.He[h];pui.He={};pui["keep frames"]||pui.Ts()};pui.Kt=0;
552
552
  pui.resize=function(){if(pui.runtimeContainer!=null){clearTimeout(pui.Kt);pui.Kt=setTimeout(pui.Ep,10,pui.runtimeContainer)}};pui.Cx=function(b){if(b!=null){b=b.state;if(b!=null){if(b.Bt=="previous")if(pui.oi!=null){pui.F="true";pui.Np=true;pui.bc()}history.forward()}}};
553
553
  pui.render=function(b){pui.wj&&pui.record(b);pui.clientLogic=b.clientLogic;if(typeof pui.beforeRender==="function"){var a=pui.beforeRender(b);if(a)b=a}if(b.pjsVersion!=null)pui.eA=b.pjsVersion;if(typeof pui.rt=="undefined")pui.rt=pui.pjsDefaultMode||null;pui.pjsDefaultMode=b.pjsDefaultMode?b.pjsDefaultMode:pui.rt;if(typeof pui.zu=="undefined")pui.zu=pui.widgetURLPrefix||null;pui.widgetURLPrefix=b.pjsWidgetURLPrefix?b.pjsWidgetURLPrefix:pui.zu;pui.ba=null;if(b.pjs_id)pui.ba=b.pjs_id;if(b.pjsDatabaseConnections)pui.databaseConnections=
@@ -555,11 +555,11 @@ b.pjsDatabaseConnections;pui.bj=b.nodejs===true;pui.ho=null;if(b.version!=null&&
555
555
  e+", Fix Pack "+c+") doesn't match client-side JavaScript (Version "+pui.baseVersion+", Fix Pack "+pui.fixPackVersion+")";a!=null&&window.console&&window.console.error&&console.error(a)}pui.is_old_ie&&pui.ie_mode>=9?pui.Q(pui.runtimeContainer,"pui-ie9plus"):pui.ca(pui.runtimeContainer,"pui-ie9plus");if(pui.D&&pui.D.$b==null)pui.D.$b=document.getElementById("middle");if(!pui.dy){T(window,"resize",pui.resize);pui.dy=true}if(!pui.gl&&!pui.Ev&&history.pushState!=null&&history.replaceState!=null)if(!(window.parent&&
556
556
  window.parent!=window&&pui.Vh(window.parent)&&window.parent.noderun)){history.replaceState({Bt:"previous"},document.title);history.pushState({Bt:"current"},document.title);T(window,"popstate",pui.Cx);pui.Ev=true}!window.React&&!window.Vue&&pui.wi();pui.Nd=b;a=b.success;if(a==null)a=true;if(a)if(b.closeTab==true&&window.parent!=window&&pui.jg(window.parent))window.Atrium.closeTab();else if(b.noKey==true){pui.skipConfirm=true;b="/profoundui/key";if(pui.serverURL!=null)b=pui.serverURL+b;location.href=
557
557
  b}else{if(pui.D==null){if(pui["refresh interval"]!=null&&pui["refresh interval"]>0&&pui.Gt>=pui["refresh interval"]){pui.refresh();return}pui.Gt++}if(b.psid!=null)pui.psid=b.psid;if(b.appJob!=null){pui.secLevel=b.appJob.secLevel;if(pui.appJob==null)pui.appJob={};for(f in b.appJob)pui.appJob[f]=b.appJob[f]}b.message||(pui.layers=b.layers);if(b.ctrlJob!=null){if(pui.ctrlJob==null)pui.ctrlJob={};for(var f in b.ctrlJob)pui.ctrlJob[f]=b.ctrlJob[f]}if(pui.pa&&!pui.vf)Eb("ipadKeyboard").style.display="none";
558
- pui.Cv();if(pui.handler==null){pui.timeout=b.timeout;try{var h=Atrium.getSettings()}catch(g){}!(h&&h.ACTIMEOUT==="1")&&pui["client side timeout"]==true?pui.ib.start():pui.ua.Sp()}pui.Sd={};pui.modified=false;pui.jf={};pui.confirmOnClose=true;if(pui.isCloud)pui.confirmOnClose=false;pui.shutdownOnClose=true;pui.sb="";pui.lb={};pui.Ek={};pui.Wl={};pui.um={};pui.jm={};pui.Yp={};pui.Oa={};pui.F="false";pui.Ka=null;pui.Mc=null;pui.Lc=null;pui.pj=false;pui.activeElement=null;pui.Np=false;pui.An=false;f=
558
+ pui.Cv();if(pui.handler==null){pui.timeout=b.timeout;try{var h=Atrium.getSettings()}catch(g){}!(h&&h.ACTIMEOUT==="1")&&pui["client side timeout"]==true?pui.ib.start():pui.ua.Sp()}pui.Sd={};pui.modified=false;pui.jf={};pui.confirmOnClose=true;if(pui.isCloud)pui.confirmOnClose=false;pui.shutdownOnClose=true;pui.sb="";pui.lb={};pui.Ek={};pui.Wl={};pui.um={};pui.jm={};pui.Yp={};pui.Oa={};pui.F="false";pui.Ka=null;pui.Nc=null;pui.Mc=null;pui.pj=false;pui.activeElement=null;pui.Np=false;pui.An=false;f=
559
559
  pui.translate(b);f!=null&&pui.alert(f);if(b.message){c=b.message.format.toLowerCase();pui.message=b.message.message;pui.Tl();pui.Yb();if(pui.Al&&pui.Al[c])try{eval('var message = pui["message"];');eval(pui.Al[c])}catch(l){pui.Ca(l,"Onmessage Error:\n")}}else if(b.html){b.b.innerHTML=b.html;b.b.style.width="100%";if(pui.D&&pui.D.$b!=null)pui.D.$b.style.width="100%";var o=b.b.getElementsByTagName("script"),n=function(w){var A=o[w];if(A!=null)if(A.innerHTML){eval.call(window,A.innerHTML);n(w+1)}else pui.loadJS({path:A.src,
560
560
  callback:function(){n(w+1)},onerror:function(){n(w+1)}})};n(0);pui.Lb=true;pui.dl=true}else{pui.dl=false;if(pui.gl!==true&&pui.ff==null)b.b.style.width="";if(pui.D&&pui.D.$b!=null)pui.D.$b.style.width="";f=b.layers;for(h=0;h<f.length;h++)pui.xx(f[h].formats);if(f.length>0){h=f[f.length-1];if(h.formats.length>0){c=h.formats[h.formats.length-1];if(pui.Fl==null)pui.Fl=document.title;h=pui.R(c.metaData.screen["document title"],c.data,c.ref);if(h!=null&&h!="")document.title=h;else if(document.title!=pui.Fl)document.title=
561
561
  pui.Fl}}if(pui.wikihelp.overlays!=null)for(;pui.wikihelp.overlays.length>0;){h=pui.wikihelp.overlays.pop();h.parentNode!=null&&typeof h.parentNode.removeChild=="function"&&h.parentNode.removeChild(h);try{delete h.pui}catch(r){}h=null}pui.wikihelp.overlays=[];pui.zm=[];for(h=0;h<f.length;h++){pui.O={};pui.ah={};pui.th={};pui.lh={};pui.Z={};pui.ia={};pui.ia.keys={};pui.$n=false;pui.W={};pui.Dk={};pui.Am=null;pui.ym=null;pui.Il=true;pui.wm=null;pui.oi=null;pui.im=[];pui.za.record=null;pui.za.field=null;
562
- pui.za.position=null;pui.za.row=null;pui.za.column=null;pui.r.record=null;pui.r.field=null;pui.r.position=null;pui.r.jo=null;pui.r.row=null;pui.r.column=null;pui.r.Rf=null;pui.r.Ke=null;pui.r.Md=null;pui.Ua=[];pui.Jg=[];pui.Vi=[];pui.Jc=[];pui.Al={};pui.Ka=null;pui.Mc=null;pui.Lc=null;a=f[h].formats;if(h==0){pui.od=null;pui.Wo=null;var p=pui.Xo=null;if(a.length>0&&a[0].metaData!=null&&a[0].metaData.screen!=null)p=pui.R(a[0].metaData.screen.animation,a[0].data,a[0].ref);if(b.Ig&&b.Ig.animation)p=b.Ig.animation;
562
+ pui.za.position=null;pui.za.row=null;pui.za.column=null;pui.r.record=null;pui.r.field=null;pui.r.position=null;pui.r.jo=null;pui.r.row=null;pui.r.column=null;pui.r.Rf=null;pui.r.Ke=null;pui.r.Md=null;pui.Ua=[];pui.Jg=[];pui.Vi=[];pui.Kc=[];pui.Al={};pui.Ka=null;pui.Nc=null;pui.Mc=null;a=f[h].formats;if(h==0){pui.od=null;pui.Wo=null;var p=pui.Xo=null;if(a.length>0&&a[0].metaData!=null&&a[0].metaData.screen!=null)p=pui.R(a[0].metaData.screen.animation,a[0].data,a[0].ref);if(b.Ig&&b.Ig.animation)p=b.Ig.animation;
563
563
  if(typeof p==="string"){p=p.trim();if(p==="")p=null}if(pui.ff||b.designMode||pui.D!=null)p=null;if(p){pui.Yb();e={b:b.b,pn:p,fe:pui.R(a[0].metaData.screen["animated screen"],a[0].data,a[0].ref),jj:pui.R(a[0].metaData.screen["overlay screens"],a[0].data,a[0].ref)};if(b.Ig&&b.Ig.animation){e.fe=b.Ig.screen;e.jj=b.Ig.overlay}b.b=pui.Zj.Sp(e);pui.runtimeContainer=b.b}else{pui.Zj.wi();b.b.innerHTML=""}}else{pui.Cy(b,f[h]);if(a.length>0){c=a[0].metaData.screen["window reference"];if(c!=null&&c!=""&&f[h].metaData!=
564
564
  null){var t=f[h].metaData.items;for(e=0;e<t.length;e++){var s=t[e];if(s.id==c&&(s["field type"]=="panel"||s["field type"]=="css panel")){a[0].metaData.items.push(s);break}}}}}pui.Kd=null;t=h==f.length-1;pui.currentFormatNames=[];for(e=0;e<a.length;e++){c=a[e];c.b=b.b;if(t){c.il=true;pui.qw.load(c)}if(c.active==true){c.hl=true;pui.Kd=c.name}pui.Cp(c)}if(pui.Kd==null)if(a.length>0){e=a.length-1;a[e].hl=true;pui.Kd=a[e].name}else pui.Kd=null;h>0&&a.length>0&&pui.R(a[0].metaData.screen["center window"],
565
565
  a[0].data,a[0].ref)=="true"&&pui.Pv();pui.zm.push(b.b)}if(!pui.Kd&&pui.format)pui.Kd=pui.format;p&&pui.Zj.animate();if(pui.W!=null&&pui.W.dom!=null&&(!pui.pj||pui.r.Rf!=null||pui.r.Ke!=null||pui.W.Eg==true)){b=pui.W.dom.parentNode;b!=null&&b.parentNode!=null&&b.parentNode.grid!=null&&parseInt(pui.W.dom.style.top)>parseInt(b.style.height)?pui.focusOnContainer():setTimeout(function(){if(pui.W.dom!=null)if(pui.W.dom.tagName=="DIV"||pui.W.dom.style.visibility=="hidden")pui.focusOnContainer();else if(pui.r.Md==
@@ -576,19 +576,19 @@ pui.R(h["set cursor condition"],r,b.ref);if(G!=true&&G!="true"){pui.r.Rf=null;pu
576
576
  "object")F=pui.display.logic[D.routine];pui.wf.cq.update({name:D.routine,e:n,designer:n,property:B,data:F})}}n.rz=l;n.FA=o}if(!f&&C)if(pui.R(h["disable enter key"],r,b.ref)=="true")pui.$n=true;var K=Cc();l=[];o=[];G=[];var M={},N=false;if(b.eq!==undefined&&b.eq!==null){g.push(b.eq);N=true}for(E=0;E<g.length;E++)if(!(b.hideControlRecord==true&&!f&&g[E]["field type"]!="grid"&&g[E].grid==null&&g[E]["cursor row"]!=null)){if(!f&&b.Ej!=null&&g[E]["field type"]=="output field"&&g[E].visibility=="hidden"){var Q=
577
577
  parseInt(g[E].top),Z=parseInt(g[E].left);if(!isNaN(Q)&&Q<0&&!isNaN(Z)&&Z<0)continue}if(!f){Q=g[E]["auto arrange"]||"false";if(Q=="true"||pui.p(Q)&&pui.R(Q,r,b.ref)=="true"){Q=g[E].visibility;if(Q=="hidden"||pui.p(Q)&&pui.R(Q,r,b.ref)=="hidden")g[E]["shortcut key"]!=null&&delete g[E]["shortcut key"]}}if(!f&&g[E]["shortcut key"]!=null){Q=g[E].disabled;if(Q=="true"||pui.p(Q)&&pui.R(Q,r,b.ref)=="true")delete g[E]["shortcut key"]}if(g[E]["csv file name"]!=null&&g[E]["export file name"]==null)g[E]["export file name"]=
578
578
  g[E]["csv file name"];Z=Q=null;var V=g[E].grid,ea=g[E].layout;if(V!=null){var da=Eb(V);if(da!=null){Q=da.grid;Z=Number(g[E].column);if(g[E].columnId==undefined)g[E].columnId=Z;if(f)Z=Q.cells[Q.h?1:0][Z];else{if(b.Ej!=null)Z=Q.cells[b.Ej][Z];else{g[E].domEls!=null&&delete g[E].domEls;Q.N.push(g[E]);continue}F="";F+=pui.bo(g[E],pui.wd,false,Q.ru);F!=""&&pui.alert("Missing translation data:\n\n"+F)}}else if(M[V]!=null){a(V,g[E]);continue}}else if(ea!=null){var R=Eb(ea);if(R!=null&&R.layout!=null){Z=
579
- Number(g[E].container);if(M[ea]!=null){a(ea,g[E],Z);continue}else Z=R.layout.vc[Z-1]}else if(M[ea]!=null){a(ea,g[E]);continue}}if(Z==null)Z=f?n.b:b.b;var y;if(!f&&b.o!=null&&g[E].domEls!=null&&g[E].domEls[b.o-1]!=null){y=g[E].domEls[b.o-1];if(Z!=null){Z.appendChild(y);if(y.Ih==true){y.style.display="";y.Ih=false}if(y.calimg!=null){Z.appendChild(y.calimg);y.calimg.et&&pui.sl(y);if(y.calimg.Ih){y.calimg.style.display="";y.calimg.Ih=false}}if(y.wc!=null)for(ea=0;ea<y.wc.length;ea++){Z.appendChild(y.wc[ea]);
580
- if(y.wc[ea].Ih==true){y.wc[ea].style.display="";y.wc[ea].Ih=false}}if(y.Xk===true){pui.aw(y);y.Xk=false}if(b.Y!=null&&b.Y.text!=""&&(String(g[E].column)===String(b.Y.col)||b.Y.col==="*all"))if(y.tagName=="DIV"){pui.Wk(y,b.Y.text);y.Xk=true}}}else{y=document.createElement("div");y.style.position="absolute";y.setAttribute("puiwdgt",g[E]["field type"]);var ca=g[E].left;ea=g[E].top;if(pui.p(ca))ca="0px";if(pui.p(ea))ea="0px";if(ca=="NaNpx")ca="0px";if(ea=="NaNpx")ea="0px";if(g[E].left!=null)y.style.left=
579
+ Number(g[E].container);if(M[ea]!=null){a(ea,g[E],Z);continue}else Z=R.layout.wc[Z-1]}else if(M[ea]!=null){a(ea,g[E]);continue}}if(Z==null)Z=f?n.b:b.b;var y;if(!f&&b.o!=null&&g[E].domEls!=null&&g[E].domEls[b.o-1]!=null){y=g[E].domEls[b.o-1];if(Z!=null){Z.appendChild(y);if(y.Ih==true){y.style.display="";y.Ih=false}if(y.calimg!=null){Z.appendChild(y.calimg);y.calimg.et&&pui.sl(y);if(y.calimg.Ih){y.calimg.style.display="";y.calimg.Ih=false}}if(y.xc!=null)for(ea=0;ea<y.xc.length;ea++){Z.appendChild(y.xc[ea]);
580
+ if(y.xc[ea].Ih==true){y.xc[ea].style.display="";y.xc[ea].Ih=false}}if(y.Xk===true){pui.aw(y);y.Xk=false}if(b.Y!=null&&b.Y.text!=""&&(String(g[E].column)===String(b.Y.col)||b.Y.col==="*all"))if(y.tagName=="DIV"){pui.Wk(y,b.Y.text);y.Xk=true}}}else{y=document.createElement("div");y.style.position="absolute";y.setAttribute("puiwdgt",g[E]["field type"]);var ca=g[E].left;ea=g[E].top;if(pui.p(ca))ca="0px";if(pui.p(ea))ea="0px";if(ca=="NaNpx")ca="0px";if(ea=="NaNpx")ea="0px";if(g[E].left!=null)y.style.left=
581
581
  ca;if(g[E].top!=null)y.style.top=ea;if(!f&&g[E]["parent tab panel"]!=null&&g[E]["parent tab panel"]!="")y.style.visibility="hidden";if(Z!=null)g[E].Xw!=null?Z.insertBefore(y,g[E].Xw):Z.appendChild(y);ca={};ea=null;if(f){ea=n.addItem(y,true);ea.properties=ca;ea.properties.newitem="true";ea.ob.newitem=true;R=g[E]["field type"];if(R=="styled button"||R=="panel"||R=="css panel"||R=="css button"||R=="Layout")ea.dom.style.borderStyle="none"}var Ya=R=null;for(var Aa in g[E])if(Aa!="domEls"){D=g[E][Aa];if(pui.wf.cq&&
582
582
  pui.Zb(D))if(f){F={};if(b.gx)F=null;if(pui.display&&typeof pui.display==="object"&&typeof pui.display.logic==="object"&&typeof pui.display.logic[D.routine]==="object")F=pui.display.logic[D.routine];pui.wf.cq.update({name:D.routine,e:ea,designer:n,property:Aa,data:F})}if(pui.p(D))if(f)F=D;else{if(pui.cx(Aa))y.Eo=true;if(D.longName&&D.fieldName)if(!D.lowerCaseField&&pui.handler==null){pui.Df[pui.K(D.longName)]=pui.K(D.fieldName);pui.Df[pui.K(D.fieldName)]=pui.K(D.longName)}else{pui.Df[D.longName]=D.fieldName;
583
583
  pui.Df[D.fieldName]=D.longName}if(g[E]["field type"]=="grid"&&(Aa=="row background"||Aa=="row font color"))F="";else if(Aa.includes("grid row translation placeholder value")&&g[E]["field type"]=="grid")F=D;else if(Aa.includes("translation placeholder value")&&g[E].grid!=null)F=D;else{D.revert=false;F=pui.R(D,r,b.ref);if((Aa=="range low"||Aa=="range high")&&D.dataType=="date"){da=D.dateFormat;var Ia;D.dateFormat="Y-m-d";Ia=pui.R(D,r,b.ref);D.dateFormat=da;if(Aa=="range low")R=Ia;else Ya=Ia}}if(Aa==
584
584
  "value"||Aa=="html"){y.lc=p;y.Sc=pui.K(D.fieldName);if(y.pui==null)y.pui={};y.pui.formatName=p;y.pui.fieldName=y.Sc;if(g[E]["field type"]=="textbox"){da=pui.R(g[E]["choices database file"],r,b.ref);if(da!=null&&da!=""){da=pui.R(g[E]["choice options field"],r,b.ref);var Na;if(da!=null)Na=pui.ha(da)[0];da=pui.R(g[E]["choice values field"],r,b.ref);if(Na!=null&&Na!=""&&da!=null&&da!=""&&Na!=da){D.formatting="Text";D.Ae=null;D.maxLength=null}}da=pui.R(g[E]["choices url"],r,b.ref);if(da!=null&&da!=""&&
585
585
  D.formatting=="Number"){D.formatting="Text";D.Ae=null;D.maxLength=null}}}if(Aa=="cursor record number")pui.Ek[(pui.handler==null?p+".":"")+pui.K(D.fieldName)]=y;else if(Aa=="subfile return rrn")pui.Wl[(pui.handler==null?p+".":"")+pui.K(D.fieldName)]=y;else if(Aa=="return mode")pui.jm[(pui.handler==null?p+".":"")+pui.K(D.fieldName)]=y;else if(Aa=="column sort response")y.eh=(pui.handler==null?p+".":"")+pui.K(D.fieldName);else if(Aa=="field name sort response"){y.ng=(pui.handler==null?p+".":"")+pui.K(D.fieldName);
586
- y.bs=D.dataLength}else if(Aa=="initial sort field")y.Ww=D.dataLength;else if(Aa=="filter response")y.cs=(pui.handler==null?p+".":"")+pui.K(D.fieldName);else if(Aa=="subfile changed")pui.Yp[ca["record format name"].toLowerCase()]=pui.K(D.fieldName);if(Aa=="column sort response"||Aa=="field name sort response")if(pui.p(g[E]["return sort order"]))y.Kh=(pui.handler==null?p+".":"")+pui.K(g[E]["return sort order"].fieldName)}else{if(!f&&Z!=null&&Z.zc){if(Z.fu==null)Z.fu="";if(Aa=="id"||Aa=="top"||Aa=="left")Z.fu+=
587
- D}F=D;if((Aa=="range low"||Aa=="range high")&&g[E].value&&g[E].value.dataType=="date"){da=g[E].value;Ia={};Ia.dataType=da.dataType;Ia.dateFormat=da.dateFormat;Ia.formatting=da.formatting;Ia.locale=da.locale;Ia.value=F;Ia.Ie=true;Ia=pui.sc.format(Ia);if(Aa=="range low")R=Ia;else Ya=Ia}}if(g[E].grid!=null&&!f)switch(Aa){case "value":case "tab names":case "header text":case "export file name":case "tool tip":case "on text":case "off text":case "html":case "label":case "alternate text":case "empty text":case "placeholder":case "choices":case "blank option label":case "names":Ia=
586
+ y.bs=D.dataLength}else if(Aa=="initial sort field")y.Ww=D.dataLength;else if(Aa=="filter response")y.cs=(pui.handler==null?p+".":"")+pui.K(D.fieldName);else if(Aa=="subfile changed")pui.Yp[ca["record format name"].toLowerCase()]=pui.K(D.fieldName);if(Aa=="column sort response"||Aa=="field name sort response")if(pui.p(g[E]["return sort order"]))y.Kh=(pui.handler==null?p+".":"")+pui.K(g[E]["return sort order"].fieldName)}else{if(!f&&Z!=null&&Z.Ac){if(Z.fu==null)Z.fu="";if(Aa=="id"||Aa=="top"||Aa=="left")Z.fu+=
587
+ D}F=D;if((Aa=="range low"||Aa=="range high")&&g[E].value&&g[E].value.dataType=="date"){da=g[E].value;Ia={};Ia.dataType=da.dataType;Ia.dateFormat=da.dateFormat;Ia.formatting=da.formatting;Ia.locale=da.locale;Ia.value=F;Ia.Ie=true;Ia=pui.tc.format(Ia);if(Aa=="range low")R=Ia;else Ya=Ia}}if(g[E].grid!=null&&!f)switch(Aa){case "value":case "tab names":case "header text":case "export file name":case "tool tip":case "on text":case "off text":case "html":case "label":case "alternate text":case "empty text":case "placeholder":case "choices":case "blank option label":case "names":Ia=
588
588
  null;da=Eb(g[E].grid);if(da!=null){Ia=da.grid.ru;if(Ia!=null)if(Ia.keys!=null&&Ia.values!=null){da={keys:[],values:[]};for(key in Ia.keys)da.keys.push(Ia.keys[key]);for(value in Ia.values)da.values.push(pui.R(Ia.values[value],r,b.ref));da=pui.dr(g[E],da,r,b.ref);for(Ia=0;Ia<da.keys.length;Ia++)F=F.replaceAll("(&"+da.keys[Ia]+")",da.values[Ia])}}}ca[Aa]=F}if(ca["field type"]=="tab panel"||ca["field type"]=="layout"&&ca.template=="tab panel"){F=ca.id;l.push(F);Yc[F]!=null?o.push(Yc[F]):o.push(Zb(ca["active tab"],
589
589
  "",y))}for(B in ca){F=y.Fh==null?pui.Li(K,B):pui.Li(y.Fh,B);if(F!=null){D=ca[B];if(!f){var Ja=g[E][B];if(pui.p(Ja)){Ja.revert=false;if(pui.is_touch&&!pui.is_mouse_capable&&B=="value"&&ca["field type"]=="textbox"&&Ja.formatting=="Number")if(Ja.numSep!="true"&&Ja.numBlankFill!="true"&&Ja.negNum!="(999.00)"&&Ja.negNum!="999.00-"&&Ja.negNum!="999.00 CR"&&(!Ja.edtWrd||Ja.edtWrd=="")&&(!Ja.edtMsk||Ja.edtMsk=="")&&(!Ja.curSym||Ja.curSym=="")&&(!Ja.units||Ja.units=="")&&pui.appJob.decimalFormat!="I"&&pui.appJob.decimalFormat!=
590
590
  "J"){y.type="number";Ja.maxLength>0&&T(y,"textInput",function(X){var fa=wb(X);if(!(fa==null||fa.value==null))if(X.data=="-"&&fa.validity!=null&&(fa.value!=""&&fa.validity.valid||!fa.validity.valid))xb(X);else fa.maxLength>0&&fa.value.length>=fa.maxLength&&xb(X)})}var cb,Da;if(B=="changed"){c();if(pui.ah[Da]==null)pui.ah[Da]=[];pui.ah[Da].push(y)}if(B=="is blank"){c();if(pui.th[Da]==null)pui.th[Da]=[];pui.th[Da].push(y)}if(B=="dup key response"&&ca["allow dup key"]=="true"){c();if(pui.lh[Da]==null)pui.lh[Da]=
591
- [];pui.lh[Da].push(y)}if(pui.Os(B,y)){c();if(B=="radio button group"){da=cb;if(b.o!=null)da+="."+b.o;y.name=da;if(pui.is_old_ie){var ia;try{ia=document.createElement('<input name="'+da+'" type="radio">')}catch(tb){ia=document.createElement("input");ia.name=da;ia.type="radio"}ia.style.position=y.style.position;ia.style.left=y.style.left;ia.style.top=y.style.top;ia.style.visibility=y.style.visibility;ia.style.display=y.style.display;ia.id=y.id;ia.value=y.value;ia.wc=y.wc;ia.Jd=y.Jd;ia.modified=y.modified;
591
+ [];pui.lh[Da].push(y)}if(pui.Os(B,y)){c();if(B=="radio button group"){da=cb;if(b.o!=null)da+="."+b.o;y.name=da;if(pui.is_old_ie){var ia;try{ia=document.createElement('<input name="'+da+'" type="radio">')}catch(tb){ia=document.createElement("input");ia.name=da;ia.type="radio"}ia.style.position=y.style.position;ia.style.left=y.style.left;ia.style.top=y.style.top;ia.style.visibility=y.style.visibility;ia.style.display=y.style.display;ia.id=y.id;ia.value=y.value;ia.xc=y.xc;ia.Jd=y.Jd;ia.modified=y.modified;
592
592
  ia.disabled=y.disabled;y.parentNode.replaceChild(ia,y);ia.checked=y.checked;ia.Va=y.Va;ia.db=y.db;ia.onblur=y.onblur;ia.onchange=y.onchange;ia.oninput=y.oninput;ia.onclick=y.onclick;ia.ondblclick=y.ondblclick;ia.onfocus=y.onfocus;ia.onkeydown=y.onkeydown;ia.onkeypress=y.onkeypress;ia.onkeyup=y.onkeyup;ia.onmousedown=y.onmousedown;ia.onmousemove=y.onmousemove;ia.onmouseout=y.onmouseout;ia.onmouseover=y.onmouseover;ia.onmouseup=y.onmouseup;ia.pui=y.pui;y=ia}y.radioValue=ca.value}da=Q!=null&&Q.ea()==
593
593
  true;if(!da&&pui.O[Da]==null)pui.O[Da]=[];if(!da&&pui.O[Da][0]!=null&&pui.O[Da][0].aj){pui.O[Da]=[];y.modified=true;pui.modified=true}if(B=="page down response"){pui.O[Da].push(y.grid.i.ka);pui.O[Da].push(y.grid.i.na)}else if(B=="page up response"){pui.O[Da].push(y.grid.i.wa);pui.O[Da].push(y.grid.i.oa)}else da||pui.O[Da].push(y);if(B=="menu response")y.S="";if(B=="upload response")y.fileUpload.Ox=Da;if(B=="chart response")y.S="";if(B=="tab response")if(da=y.tabPanel)da.am=true;if(B=="active tab")if(da=
594
594
  y.tabPanel)da.$l=true;if(B=="response"){da=ca["shortcut key"];if(da!=null&&da!=""){if(pui.Z[p]==null)pui.Z[p]={};if(pui.Z[p][da]==null)pui.Z[p][da]=[];pui.Z[p][da].push(y);y.ud=da}if(V==null)y.S="0";if(ca.onclick==null||ca.onclick==""||pui.Zb(ca.onclick)){if(pui.Zb(ca.onclick))y.Ka=ca.onclick.routine;pui.hg(y)}}if(B=="page down response"){if(pui.Z[p].PageDown==null)pui.Z[p].PageDown=[];pui.Z[p].PageDown.push(y.grid.i.na);pui.hg(y.grid.i.ka);pui.hg(y.grid.i.na);y.grid.i.ka.M=Ja;y.grid.i.na.M=Ja}if(B==
@@ -635,7 +635,7 @@ pui.kr=new (function(){var b=this;b.sn=false;b.by=function(){b.sn=false};b.handl
635
635
  "INPUT"){b.sn=true;setTimeout(function(){c.dispatchEvent(a)},50)}return false}}}});pui.fr=function(b){typeof b==="undefined"||typeof b.tagName==="undefined"||b.tagName!=="INPUT"||T(b,"keydown",pui.kr.handler)};
636
636
  pui.hg=function(b){T(b,"click",function(){if(b.disabled!=true)if(!(b.getAttribute!=null&&b.getAttribute("disabled")=="true")){if(b.Ab!=null){if(b.nextPage==true&&!b.Ab.grid.Sb()){b.Ab.grid.kp();return}if(b.Eh==true&&!b.Ab.grid.Gb()){b.Ab.grid.mp();return}}if(b.ud!=null)pui.sb=b.ud;var a=[];if(b.ud!=null){b.Ab&&a.push(b);for(var c in pui.Z){var e=pui.Z[c][pui.sb];if(e!=null)for(var f=0;f<e.length;f++)e[f].Ab||a.push(e[f])}}else a.push(b);for(f=0;f<a.length;f++){a[f].S="1";if(a[f].F=="true"||a[f].F==
637
637
  "send data")pui.F=a[f].F}c=b.parentNode;if(c!=null){e=c.parentNode;if(e!=null){e=e.grid;e!=null&&e.em(c.row)}}pui.Kk=null;pui.hh=null;pui.Jk=null;pui.Yn=null;if(b.pui&&b.pui.properties&&b.pui.properties["destination url"]){c=b.pui.properties;pui.Kk=c["destination url"];pui.Jk=!c.bookmarkable||c.bookmarkable=="true";pui.Yn=c["redirect to destination"]=="true";pui.hh=[];e=1;f="destination parameter name";for(var h="destination parameter value";c[f];){pui.hh.push([c[f],c[h]]);f="destination parameter name "+
638
- ++e;h="destination parameter value "+e}}pui.Ka=b.Ka;pui.Mc=b.o;pui.Lc=b.Xj;c=pui.bc();pui.Kk=null;pui.hh=null;pui.Jk=null;pui.Yn=null;if(c==false){for(f=0;f<a.length;f++)a[f].S="0";pui.F="false";pui.Ka=null;pui.Mc=null;pui.Lc=null}}})};
638
+ ++e;h="destination parameter value "+e}}pui.Ka=b.Ka;pui.Nc=b.o;pui.Mc=b.Xj;c=pui.bc();pui.Kk=null;pui.hh=null;pui.Jk=null;pui.Yn=null;if(c==false){for(f=0;f<a.length;f++)a[f].S="0";pui.F="false";pui.Ka=null;pui.Nc=null;pui.Mc=null}}})};
639
639
  pui.Tp=function(b,a){for(var c=[],e=b.length-1;e>=0;e-=1){var f=b[e],h=f.msg;if(f.encoded)h=pui.formatting.fh(h);var g=null,l;if(String(h).substr(0,3).toLowerCase()=="js:")g=h.substr(3);if(String(h).substr(0,11).toLowerCase()=="javascript:")g=h.substr(11);if(String(h).substr(0,7).toLowerCase()=="script:")g=h.substr(7);if(g!==null&&Kb(g)!==""){l=h;try{h=eval(g)}catch(o){if(!pui.Uh){pui.Uh=true;setTimeout(function(){pui.alert("Expression '"+Kb(g)+"' contains an error:\n\n"+o.message);pui.Uh=false},
640
640
  1)}}if(typeof h=="undefined")h=l}h=h.replace(/&N/g,"<br/>");h=h.replace(/&P/g,"<br/>");h=h.replace(/&B/g,"<br/>");l=f.dom;f=f.id;if(a!=null)f+="."+a;if(l==null&&f!=null)l=Eb(f);if(l==null||l.tagName==null)h!=null&&h!=""&&c.push(h);else{if(l.parentNode&&l.parentNode.comboBoxWidget)l=l.parentNode;if(l.parentNode&&l.parentNode.l)l=l.parentNode;f=l;if(l.comboBoxWidget!=null)f=l.comboBoxWidget.getBox();if(l.l!=null)f=l.l.getBox();if(l.pui.properties["error message location"]=="alert")c.push(h);else{var n=
641
641
  f.G;if(n==null)n=new pui.Vf(l);if(!n.ja){pui.Q(f,n.qg());n.Nh(h);n.show(3E3,true)}h=l.parentNode;if(h!=null){h=h.parentNode;if(h!=null){h=h.grid;if(h!=null)h.jq[l.id]=n}}}}}if(c.length>0){l="";for(e=c.length-1;e>=0;e-=1){if(e!=c.length-1)l+="<br/>";l+=c[e]}for(var r=l;r.indexOf("<br/>")>=0;)r=r.replace("<br/>","\n");setTimeout(function(){pui.alert(r)},1)}var p=!pui.Lb;setTimeout(function(){pui.xg=true;for(var t=0;t<b.length;t++){var s=b[t].id;if(a!=null)s+="."+a;var w=b[t].dom;if(w==null&&s!=null)w=
@@ -647,19 +647,19 @@ f[h];if(pui.No(g)){c[e]="1";break}}if(c[e]!="1")c[e]="0"}pui.Ua.forEach(function
647
647
  "1"){r="1";break}}else if(g.S==""&&g.pui!=null&&g.pui.properties["field type"]=="menu"&&l.length>1)for(h=1;h<l.length;h++)if(l[h].S!=""){r=l[h].S;break}if(g.aj){h=e.split(".");o=h[0];h=parseInt(h[h.length-1]);if(!isNaN(h)&&h>0){l=o+".rrn";var p=l+"="+h;if(pui.Sd[p]!=true){if(c[l]==null)c[l]=[];c[l].push(h);pui.Sd[p]=true}}}c[e]=r}else{if(pui.modified&&pui.F!="true"&&pui.F!="send data"){if(g.qq==true&&g.modified!=true){c.valid=false;if(c.errors==null)c.errors=[];c.errors.push({dom:n,msg:pui.getLanguageText("runtimeMsg",
648
648
  "ME")});if(n.G!=null&&n.G.ja!=null)n.G.ja=false;continue}if(g.rq==true&&g.modified==true&&n.maxLength!=null&&n.value!=null&&(n.maxLength!=n.value.length||n.value===n.emptyText)){c.valid=false;if(c.errors==null)c.errors=[];c.errors.push({dom:n,msg:pui.getLanguageText("runtimeMsg","MF")});if(n.G!=null&&n.G.ja!=null)n.G.ja=false;continue}}if(pui.F!="true"&&pui.F!="send data"&&g.Nl==true&&!g.disabled)if(typeof n.value=="string"&&(Kb(n.value)==""||n.value===n.emptyText)||g.fileUpload!=null&&g.fileUpload.getCount()<
649
649
  1){c.valid=false;if(c.errors==null)c.errors=[];h=pui.getLanguageText("runtimeMsg","required");if(g.fileUpload!=null)h=pui.getLanguageText("runtimeMsg","file required");c.errors.push({dom:n,msg:h});if(n.G!=null&&n.G.ja!=null)n.G.ja=false;continue}if(g.fileUpload!=null&&pui.F!="true"&&pui.F!="send data"){h=vd(g.fileUpload);if(h==null)h=wd(g.fileUpload);if(h!=null){c.valid=false;if(c.errors==null)c.errors=[];c.errors.push({dom:g,msg:h});if(g.G!=null&&g.G.ja!=null)g.G.ja=false;continue}}if(g.modified==
650
- true&&(pui.controller!=null||pui.F!="true")){if(g.tagName=="INPUT")switch(g.type){case "text":case "number":case "password":case "file":case "hidden":case "":case "date":case "datetime":case "time":case "email":case "url":case "month":case "tel":case "color":case "datetime-local":case "search":case "week":r=g.value;if(r===g.emptyText)r="";if(g.Cd!=null){if(pui["force auto complete match"]!=false||g.Cd.value!="")r=g.Cd.value;if(g.M!=null&&g.M.dataType!="expression"&&pui.formatting.yc(g.M.dataType))/^[0-9,.\- \(\)]+/.test(r)||
651
- (r="")}if(pui.No(r)){l="";p=" ";if(g.M!=null&&pui.formatting.yc(g.M.dataType))p="0";h="";for(o=0;o<r.length;o++){var t=r.substr(o,1);if(t==pui.dup["char"]){l+="1";t=p;r=r.substr(0,o)+t+r.substr(o+1)}else l+="0";if(t>="0"&&t<="9")h+=t}if(p!="0")c[e+".dup"]=l;if(p=="0"){p=Number(g.M.dataLength);if(isNaN(p))p=0;l=g.M.decPos;if(isNaN(l))l=0;p-=l;if(p<0)p=0;o=h.substr(0,p);h=h.substr(p);if(h.length>l)h=h.substr(0,l);l=".";if(pui.appJob.decimalFormat=="I"||pui.appJob.decimalFormat=="J")l=",";p=r.indexOf("-")!=
650
+ true&&(pui.controller!=null||pui.F!="true")){if(g.tagName=="INPUT")switch(g.type){case "text":case "number":case "password":case "file":case "hidden":case "":case "date":case "datetime":case "time":case "email":case "url":case "month":case "tel":case "color":case "datetime-local":case "search":case "week":r=g.value;if(r===g.emptyText)r="";if(g.Cd!=null){if(pui["force auto complete match"]!=false||g.Cd.value!="")r=g.Cd.value;if(g.M!=null&&g.M.dataType!="expression"&&pui.formatting.zc(g.M.dataType))/^[0-9,.\- \(\)]+/.test(r)||
651
+ (r="")}if(pui.No(r)){l="";p=" ";if(g.M!=null&&pui.formatting.zc(g.M.dataType))p="0";h="";for(o=0;o<r.length;o++){var t=r.substr(o,1);if(t==pui.dup["char"]){l+="1";t=p;r=r.substr(0,o)+t+r.substr(o+1)}else l+="0";if(t>="0"&&t<="9")h+=t}if(p!="0")c[e+".dup"]=l;if(p=="0"){p=Number(g.M.dataLength);if(isNaN(p))p=0;l=g.M.decPos;if(isNaN(l))l=0;p-=l;if(p<0)p=0;o=h.substr(0,p);h=h.substr(p);if(h.length>l)h=h.substr(0,l);l=".";if(pui.appJob.decimalFormat=="I"||pui.appJob.decimalFormat=="J")l=",";p=r.indexOf("-")!=
652
652
  -1;r=o;if(h!="")r+=l+h;if(p)r="-"+r}}break;case "checkbox":r=g.indeterminate?g.indeterminateValue!==null&&g.indeterminateValue!==""?g.indeterminateValue:"2":g.checked?g.checkedValue!=null&&g.checkedValue!=""?g.checkedValue:"1":g.uncheckedValue!=null&&g.uncheckedValue!=""?g.uncheckedValue:" ";break;case "radio":for(o=0;o<l.length;o++){h=l[o];if(h.checked&&h.radioValue!=null){r=h.radioValue;break}}break}if(g.tagName=="SELECT"){o=false;if(g.getAttribute("multiple")!=null)o=true;if(!o)r=g.value;if(o){r=
653
653
  [];for(o=0;o<g.options.length;o++)g.options[o].selected&&r.push(g.options[o].value);r=r.join(",")}}if(g.tagName=="TEXTAREA"){r=g.value;if(r===g.emptyText)r=""}if(g.comboBoxWidget!=null){r=g.comboBoxWidget.getValue();if(r===g.comboBoxWidget.getBox().emptyText)r=""}if(g.l!=null){r=g.l.getValue();if(r===g.l.getBox().emptyText)r=""}if(g.U!=null){r=g.value;if(r!=null)r=String(r)}if(g.signaturePad!=null)r=g.signaturePad.getValue();if(g.L!=null){r="";if(g.L.Id&&g.L.Ch!=null)r=g.L.Ch;else if(!g.L.Id&&g.L.Bh!=
654
654
  null)r=g.L.Bh}if(g.type=="grid selection")r=g.value;if(g.type=="grid hidden field")r=g.value;if(g.pui&&g.pui.widget)r=g.pui.widget.getPropertyValue(g.pui.widget.Tm[e])}}if(typeof r=="string"&&(pui.controller!=null||pui.F!="true")){if(Kb(r)==""&&g.pi!=null&&g.pi.length>=1)r=g.pi[0];if(g.signaturePad!=null&&pui.F!="send data")if(r.length>g.M.maxLength){c.valid=false;if(c.errors==null)c.errors=[];c.errors.push({dom:g,msg:pui.getLanguageText("runtimeMsg","signature overflow")});if(g.G!=null&&g.G.ja!=
655
- null)g.G.ja=false;continue}o=g.pui&&g.pui.widget&&g.pui.widget?xd(g.pui.widget,e):g.M;if(o!=null&&o.dataType!="expression"){if(o.textTransform!="uppercase"&&g.pui&&g.pui.properties&&g.pui.properties["text transform"]=="uppercase"&&o.dataType=="char")r=pui.Ge(r,true);o.value=r;o.revert=true;if(g.S!=null)o.formatting="Text";r=pui.sc.format(o);if(typeof r=="object"){c.valid=false;c.hp=true;if(c.errors==null)c.errors=[];c.errors.push({dom:n,msg:r.msg});if(n.G!=null&&n.G.ja!=null)n.G.ja=false}else{h=false;
655
+ null)g.G.ja=false;continue}o=g.pui&&g.pui.widget&&g.pui.widget?xd(g.pui.widget,e):g.M;if(o!=null&&o.dataType!="expression"){if(o.textTransform!="uppercase"&&g.pui&&g.pui.properties&&g.pui.properties["text transform"]=="uppercase"&&o.dataType=="char")r=pui.Ge(r,true);o.value=r;o.revert=true;if(g.S!=null)o.formatting="Text";r=pui.tc.format(o);if(typeof r=="object"){c.valid=false;c.hp=true;if(c.errors==null)c.errors=[];c.errors.push({dom:n,msg:r.msg});if(n.G!=null&&n.G.ja!=null)n.G.ja=false}else{h=false;
656
656
  if(pui.F=="send data")h=true;if(pui.No(g))h=true;if(g.gr==true&&typeof g.value=="string"&&Kb(g.value)=="")h=true;if(!h){if(g.validateName==true){h=designUtils.validateName(r);if(h!=""&&h!="is too long."){c.valid=false;if(c.errors==null)c.errors=[];c.errors.push({dom:n,msg:"Name "+h});if(n.G!=null&&n.G.ja!=null)n.G.ja=false;continue}}if(g.validateEmail==true)if(!pui.validateEmail(r)){c.valid=false;if(c.errors==null)c.errors=[];h=pui.getLanguageText("runtimeMsg","invalid email");c.errors.push({dom:n,
657
657
  msg:h});if(n.G!=null&&n.G.ja!=null)n.G.ja=false;continue}if(typeof g.hq=="string"){l=pui.ha(g.hq);p=true;for(h=0;h<l.length;h++)if(Ob(String(l[h]))==r){p=false;break}if(p){c.valid=false;if(c.errors==null)c.errors=[];for(h=0;h<l.length;h++)if(typeof l[h]==="string"&&l[h].trim()==="")l[h]=pui.getLanguageText("runtimeMsg","blank");g=l.length;if(g>1){r=l.pop();l=l.join(", ");if(g>2)l+=",";l+=" "+pui.getLanguageText("runtimeMsg","or")+" "+r}else l=l[0];c.errors.push({dom:n,msg:pui.getLanguageText("runtimeMsg",
658
658
  "validValues")+l+"."});if(n.G!=null&&n.G.ja!=null)n.G.ja=false;continue}}if(typeof g.On=="string"&&typeof g.Pn=="string"){p=g.Pn;l=r;if(o.formatting=="Number"){p=Number(p);l=Number(l)}t=p;if(typeof p=="string"){p=Ob(p);t="'"+t+"'"}if(typeof l=="string")l=Ob(l);h="";switch(g.On){case "Equal":if(p!=l)h="Value must equal "+t+".";break;case "Not Equal":if(p==l)h="Value must not equal "+t+".";break;case "Greater Than":if(l<=p)h="Value must be greater than "+t+".";break;case "Greater Than or Equal":if(l<
659
659
  p)h="Value must be greater than or equal to "+t+".";break;case "Less Than":if(l>=p)h="Value must be less than "+t+".";break;case "Less Than or Equal":if(l>p)h="Value must be less than or equal to "+t+".";break}if(h!=""){c.valid=false;if(c.errors==null)c.errors=[];c.errors.push({dom:n,msg:h});if(n.G!=null&&n.G.ja!=null)n.G.ja=false;continue}}h=null;if(typeof g.Hh=="string"){p=g.Hh;l=r;if(o.formatting=="Number"){p=Number(p);l=Number(l)}if(typeof p=="string")p=Ob(p);if(typeof l=="string")l=Ob(l);if(o.formatting==
660
- "Date"){l=h=pui.sc.Date.js(l,o);p=g.Qx}if(l<p){r=g.Hh;if(o.formatting!="Number")r="'"+r+"'";h=pui.getLanguageText("runtimeMsg","invalid low range",[r]);if(g.Gh!=null){l=g.Gh;if(o.formatting!="Number")l="'"+l+"'";h=pui.getLanguageText("runtimeMsg","invalid range",[r,l])}c.valid=false;if(c.errors==null)c.errors=[];c.errors.push({dom:n,msg:h});if(n.G!=null&&n.G.ja!=null)n.G.ja=false;continue}}if(typeof g.Gh=="string"){p=g.Gh;l=r;if(o.formatting=="Number"){p=Number(p);l=Number(l)}if(o.formatting=="Date"){l=
661
- h==null?pui.sc.Date.js(l,o):h;p=g.Px}if(typeof p=="string")p=Ob(p);if(typeof l=="string")l=Ob(l);if(l>p){l=g.Gh;if(o.formatting!="Number")l="'"+l+"'";h=pui.getLanguageText("runtimeMsg","invalid high range",[l]);if(g.Hh!=null){r=g.Hh;if(o.formatting!="Number")r="'"+r+"'";h=pui.getLanguageText("runtimeMsg","invalid range",[r,l])}c.valid=false;if(c.errors==null)c.errors=[];c.errors.push({dom:n,msg:h});if(n.G!=null&&n.G.ja!=null)n.G.ja=false;continue}}}c[e]=r;if(g.o!=null){o=e.split(".")[0];l=o+".rrn";
662
- p=l+"="+g.o;if(pui.Sd[p]!=true){if(c[l]==null)c[l]=[];c[l].push(g.o);pui.Sd[p]=true}n=pui.Yp[o.toLowerCase()];if(n!=null)c[o+"."+n+"."+g.o]="1"}}}}}if(pui.Ka){c.routine=pui.Ka;if(pui.Mc&&pui.Lc){c.routineRow=pui.Mc;c.routineGrid=pui.Lc}}if(b)return c;if(pui.sb!=null&&pui.sb!=""){b=pui.vw[pui.sb];if(b!=null&&b>0)c.fkey=String(b);b=pui.nn[pui.sb];c.aid=b!=null?String(b):pui.nn.Enter}a(pui.za.record,pui.r.record);a(pui.za.field,pui.r.field);a(pui.za.position,pui.r.position);a(pui.za.row,pui.r.row);a(pui.za.column,
660
+ "Date"){l=h=pui.tc.Date.js(l,o);p=g.Qx}if(l<p){r=g.Hh;if(o.formatting!="Number")r="'"+r+"'";h=pui.getLanguageText("runtimeMsg","invalid low range",[r]);if(g.Gh!=null){l=g.Gh;if(o.formatting!="Number")l="'"+l+"'";h=pui.getLanguageText("runtimeMsg","invalid range",[r,l])}c.valid=false;if(c.errors==null)c.errors=[];c.errors.push({dom:n,msg:h});if(n.G!=null&&n.G.ja!=null)n.G.ja=false;continue}}if(typeof g.Gh=="string"){p=g.Gh;l=r;if(o.formatting=="Number"){p=Number(p);l=Number(l)}if(o.formatting=="Date"){l=
661
+ h==null?pui.tc.Date.js(l,o):h;p=g.Px}if(typeof p=="string")p=Ob(p);if(typeof l=="string")l=Ob(l);if(l>p){l=g.Gh;if(o.formatting!="Number")l="'"+l+"'";h=pui.getLanguageText("runtimeMsg","invalid high range",[l]);if(g.Hh!=null){r=g.Hh;if(o.formatting!="Number")r="'"+r+"'";h=pui.getLanguageText("runtimeMsg","invalid range",[r,l])}c.valid=false;if(c.errors==null)c.errors=[];c.errors.push({dom:n,msg:h});if(n.G!=null&&n.G.ja!=null)n.G.ja=false;continue}}}c[e]=r;if(g.o!=null){o=e.split(".")[0];l=o+".rrn";
662
+ p=l+"="+g.o;if(pui.Sd[p]!=true){if(c[l]==null)c[l]=[];c[l].push(g.o);pui.Sd[p]=true}n=pui.Yp[o.toLowerCase()];if(n!=null)c[o+"."+n+"."+g.o]="1"}}}}}if(pui.Ka){c.routine=pui.Ka;if(pui.Nc&&pui.Mc){c.routineRow=pui.Nc;c.routineGrid=pui.Mc}}if(b)return c;if(pui.sb!=null&&pui.sb!=""){b=pui.vw[pui.sb];if(b!=null&&b>0)c.fkey=String(b);b=pui.nn[pui.sb];c.aid=b!=null?String(b):pui.nn.Enter}a(pui.za.record,pui.r.record);a(pui.za.field,pui.r.field);a(pui.za.position,pui.r.position);a(pui.za.row,pui.r.row);a(pui.za.column,
663
663
  pui.r.column);b=Number(pui.r.row);if(!isNaN(b)&&b>0)c.row=String(b);b=Number(pui.r.column);if(!isNaN(b)&&b>0)c.column=String(b);if(pui.r.lq!=null)c.wrow=String(pui.r.lq);if(pui.r.kq!=null)c.wcolumn=String(pui.r.kq);for(var s in pui.Ek){g=pui.Ek[s];if(g.zi!=null)c[s]=g.zi}for(var w in pui.Wl){g=pui.Wl[w];if(g.Nt!=null){c[w]=g.Nt;if(pui.sb=="PageUp")c[w]=1;if(pui.sb=="PageDown")c[w]+=g.grid.zo()}}for(var A in pui.um)c[A]=pui.um[A];for(var C in pui.jm){g=pui.jm[C];c[C]=g.grid.expanded?"0":"1"}if(pui.le!=
664
664
  null){s=pui.le.c.eh;r=pui.le.Mn;if(s!=null&&r!=null)c[s]=r;s=pui.le.c.Kh;r=pui.le.Nf;if(s!=null&&r!=null)c[s]=r}if(pui.oe!=null){s=pui.oe.c.ng;r=pui.oe.Ei;if(s!=null&&r!=null)c[s]=r;s=pui.oe.c.Kh;r=pui.oe.Nf;if(s!=null&&r!=null)c[s]=r}if(pui.Qk!=null){s=pui.Qk.c.cs;r=pui.Qk.og;if(s!=null&&r!=null)c[s]=r}for(var F in pui.Dk)c[pui.Dk[F]]=pui.jf[F]&&(pui.controller!=null||pui.F!="true")?"1":"0";if(pui.Il){if(pui.Am!=null&&pui.od!=null)c[pui.Am]=String(parseInt(pui.od.style.top));if(pui.ym!=null&&pui.od!=
665
665
  null)c[pui.ym]=String(parseInt(pui.od.style.left))}if(pui.wm!=null)c[pui.wm]=c.aid!=pui.nn.Enter?"1":"0";for(h=0;h<pui.im.length;h++){F=pui.im[h];if(c[F]==null)c[F]="0"}if(pui.lb.bc==true){if(pui.lb.Un!=null)c[pui.lb.Un]=pui.dragDropInfo["dd element id"];if(pui.lb.Vn!=null){F=pui.dragDropInfo["dd record number"];if(F==null)F=0;c[pui.lb.Vn]=String(F)}if(pui.lb.Zp!=null)c[pui.lb.Zp]=pui.dragDropInfo["target element id"];if(pui.lb.$p!=null){F=pui.dragDropInfo["target record number"];if(F==null)F=0;c[pui.lb.$p]=
@@ -671,7 +671,7 @@ try{h=Atrium.getSettings()}catch(n){}h&&h.ACTIMEOUT==="1"&&Atrium.resetInactivit
671
671
  s==="PUISCREENS"||pui.D&&p!=null&&p.exception=="PUI0003"){pui.Op+=1;if(pui.Op<=pui["session timeout retries"]){setTimeout(r,2E3);return}}pui.Op=0;pui.D==null?pui.ml(p,function(){pui.render(p)}):pui.Zx(p)}},onfail:function(p){pui.onoffline==null&&!pui["suppress comm errors"]&&pui.alert(pui.Ji(p));pui.Yb();pui.Tl();pui.onoffline!=null&&pui.onoffline()}})};r()}}};pui.submit=pui.submitResponse;
672
672
  pui.Tl=function(){for(var b in pui.O)for(var a=pui.O[b],c=0;c<a.length;c++)if(a[c].S=="1")a[c].S="0";pui.Lb=true};pui.Lv=function(b){for(var a in b){var c=b[a],e=Eb(a);if(e!=null){var f=e.G;f!=null&&f.hide();f=new pui.Vf(e);f.Nh(c);f.show()}}pui.Yb();for(b=0;b<pui.Ua.length;b++)pui.Ua[b].unMask();pui.unmaskScreen();pui.Tl()};
673
673
  pui.R=function(b,a,c){if(!pui.p(b)&&!pui.Ib(b)&&!pui.Zb(b))return b;if(a==null){if(b.designValue!=null)return b.designValue;return""}var e=b.fieldName;if(a.__pui_show&&b.longName)e=b.longName;if(b.lowerCaseField!=true&&pui.handler==null)e=pui.K(e);if(a.__pui_skipdecode)b.__pui_skipdecode=a.__pui_skipdecode;if(b.dataType=="expression")a=pui.lo(b.fieldName,a);else{a=a[e];if(a==null)a=""}b.value=a;if(b.dataType=="reference"&&c!=null){c=c[e];if(c!=null){b.dataType=pui.Vy(c.dataType);b.dataLength=String(c.dataLength);
674
- b.decPos=String(c.decPos)}}if(b.formatting=="Text")if(pui.formatting.yc(b.dataType)){b.textTransform!=null&&delete b.textTransform;b.trimLeading!=null&&delete b.trimLeading;b.trimTrailing!=null&&delete b.trimTrailing;b.formatting="Number";b.numSep="false";b.zeroBalance="false";b.zeroFill="false";b.curSym="";b.units="";b.negNum="-999.00"}return pui.sc.format(b)};
674
+ b.decPos=String(c.decPos)}}if(b.formatting=="Text")if(pui.formatting.zc(b.dataType)){b.textTransform!=null&&delete b.textTransform;b.trimLeading!=null&&delete b.trimLeading;b.trimTrailing!=null&&delete b.trimTrailing;b.formatting="Number";b.numSep="false";b.zeroBalance="false";b.zeroFill="false";b.curSym="";b.units="";b.negNum="-999.00"}return pui.tc.format(b)};
675
675
  pui.lo=function(b,a){for(var c=false,e=b.split(" or "),f=0;f<e.length;f++){for(var h=true,g=e[f].split(" and "),l=0;l<g.length;l++){var o=g[l],n=false;if(o.substr(0,1)=="N"){n=true;o=o.substr(1)}o="*IN"+o;o=a[o]=="1";if(n)o=!o;if(!o){h=false;break}}if(h){c=true;break}}if(c)return"1";return"0"};
676
676
  pui.Le=function(){pui.Yb();var b;if(pui["loading animation"].css!=null&&!pui.is_old_ie&&pui["loading animation"].path==pui["loading animation"]["default"]&&pui["loading animation"].text==null){b=document.createElement("div");b.className=pui["loading animation"].css}else{if(pui["loading animation"].text!=null){b=document.createElement("div");b.innerHTML=pui["loading animation"].text;b.style.backgroundColor="#cccccc";b.style.border="1px solid #333333";b.style.fontSize="10px";b.style.fontFamily="Sans-Serif"}else{b=
677
677
  document.createElement("div");b.style.backgroundImage="url('"+pui["loading animation"].path+"')";b.style.backgroundRepeat="no-repeat";b.style.backgroundSize="100%";var a=pui["loading animation"].height;b.style.width=pui["loading animation"].width+"px";b.style.height=a+"px"}if(pui["loading animation"].alt!=null&&pui["loading animation"].alt.length>0)b.alt=pui["loading animation"].alt;b.style.position="absolute";a=pui["loading animation"].left;if(pui.dl&&a<0)a=0;b.style.left=a+"px";a=pui["loading animation"].top;
@@ -679,8 +679,8 @@ a+=Math.max(document.body.scrollTop,document.documentElement.scrollTop);b.style.
679
679
  pui.rh=function(b,a){if(!(O!="dspf"||pui.dl)){if(!b)b=window.event;var c=b.keyCode,e;if(pui.sr)pui.Cn(b);else{e=c-111;if(a==null)if(e>=1&&e<=12){if(!pui.is_old_ie||e>1||b.shiftKey){if(b.shiftKey)e+=12;else if(b.Ef&&Event.gk)e+=12;a="F"+e;if(b.altKey)a="Alt-"+a;else if(b.ctrlKey)a="Ctrl-"+a}}else switch(c){case 13:a="Enter";break;case 19:a="Pause/Break";break;case 27:a="Escape";break;case 33:a="PageUp";break;case 34:a="PageDown";break;case 44:a="PrtScn";break}if(a=="Ctrl-F9"){pui.downloadJSON();return false}if((e=
680
680
  a!=null&&pui.Kd!=null&&(a=="Enter"||a=="PageUp"||a=="PageDown"||pui.Z[pui.Kd][a]!=null))&&a=="PageUp"||a=="PageDown"){var f=false;for(c=0;c<pui.Ua.length;c++){var h=pui.Ua[c];if(h.i&&h.i.vd)if(f==false)f=true;else{e=false;break}}}if(e){e=[];f=c=false;for(var g in pui.Z){h=pui.Z[g][a];if(h!=null){var l=true;for(c=0;c<h.length;c++){var o=h[c];o.disabled||(l=false);if(o.Ab!=null){if(pui.Gj!==undefined&&pui.Gj!==null&&o.Ab.grid.Wa!=pui.Gj)continue;if(o.nextPage==true&&!o.Ab.grid.Sb()){o.Ab.grid.kp();
681
681
  xb(b);if(pui.is_old_ie)try{b.keyCode=0}catch(n){}return false}if(o.nextPage==true&&!o.Ab.lj){xb(b);if(pui.is_old_ie)try{b.keyCode=0}catch(r){}return false}if(o.Eh==true&&!o.Ab.grid.Gb()){o.Ab.grid.mp();xb(b);if(pui.is_old_ie)try{b.keyCode=0}catch(p){}return false}if(o.Eh==true&&!o.Ab.mj){xb(b);if(pui.is_old_ie)try{b.keyCode=0}catch(t){}return false}if(o.disabled){xb(b);if(pui.is_old_ie)try{b.keyCode=0}catch(s){}return false}}if(o.Eh==true||o.nextPage==true)f=true;e.push(o)}if(e.length>=1&&typeof e[0].onclick==
682
- "function"&&!e[0].Ka&&o.nextPage!=true&&o.Eh!=true&&!f){e[0].onclick();pui.runtimeContainer.focus();xb(b);if(pui.is_old_ie)try{b.keyCode=0}catch(w){}return false}if(l){xb(b);if(pui.is_old_ie)try{b.keyCode=0}catch(A){}return false}c=true}}if(a=="Enter"&&!pui.$n)c=true;if(c){pui.sb=a;for(c=0;c<e.length;c++){e[c].S="1";if(e[c].F=="true"||e[c].F=="send data")pui.F=e[c].F;if(e[c].Ka){pui.Ka=e[c].Ka;pui.Mc=e[c].o;pui.Lc=e[c].Xj}}if(pui.bc()==false){for(c=0;c<e.length;c++)e[c].S="0";pui.F="false";pui.Ka=
683
- null;pui.Mc=null;pui.Lc=null}xb(b);if(pui.is_old_ie)try{b.keyCode=0}catch(C){}return false}}if(a!=null&&(a!="PageUp"&&a!="PageDown"||pui.An)){xb(b);if(pui.is_old_ie)try{b.keyCode=0}catch(F){}return false}}}};pui.Do=function(b){return pui.rh(b,"F1")};
682
+ "function"&&!e[0].Ka&&o.nextPage!=true&&o.Eh!=true&&!f){e[0].onclick();pui.runtimeContainer.focus();xb(b);if(pui.is_old_ie)try{b.keyCode=0}catch(w){}return false}if(l){xb(b);if(pui.is_old_ie)try{b.keyCode=0}catch(A){}return false}c=true}}if(a=="Enter"&&!pui.$n)c=true;if(c){pui.sb=a;for(c=0;c<e.length;c++){e[c].S="1";if(e[c].F=="true"||e[c].F=="send data")pui.F=e[c].F;if(e[c].Ka){pui.Ka=e[c].Ka;pui.Nc=e[c].o;pui.Mc=e[c].Xj}}if(pui.bc()==false){for(c=0;c<e.length;c++)e[c].S="0";pui.F="false";pui.Ka=
683
+ null;pui.Nc=null;pui.Mc=null}xb(b);if(pui.is_old_ie)try{b.keyCode=0}catch(C){}return false}}if(a!=null&&(a!="PageUp"&&a!="PageDown"||pui.An)){xb(b);if(pui.is_old_ie)try{b.keyCode=0}catch(F){}return false}}}};pui.Do=function(b){return pui.rh(b,"F1")};
684
684
  pui.run=function(b){var a=b.mobile===true,c=b.screenshot===true,e=b.parameter,f=b.program;if(f==null)f="";var h=b.container,g=b.workstnid;if(g==null)g="";g=g.toUpperCase();var l=b.debug,o=b.log;if(l==null)l="0";if(o==null)o="0";pui.Sl=b.renderLog===true;var n="*LIBL",r=f.split("/");if(r.length==2){n=r[0];f=r[1]}if(h==null)h="pui";if(typeof h=="string")h=document.getElementById(h);T(document.body,"keydown",pui.rh);T(document.body,"help",pui.Do);T(document.body,"mousedown",pui.Fr);b.jsonURL==null&&
685
685
  b.replay==null&&b.mode!="preview"&&pui.nr();h.setAttribute("tabindex","0");pui.runtimeContainer=h;pui.Le();r="post";var p=Vb("PUI0001200.pgm"),t=b.jsonURL;if(b.replay){t="/profoundui/userdata/automated-testing/tests/"+b.replay;t.endsWith(".json")||(t+=".json")}if(t!=null){p=t+"?r="+Math.floor(Math.random()*1E9+1);r="get"}f={program:f.toUpperCase(),library:n.toUpperCase(),init:"1",pathname:location.pathname,debug:l,log:o,workstnid:g};if(b.lang!=null&&b.lang!="")f.lang=b.lang;if(pui.isCloud){f.workspace_id=
686
686
  pui.cloud.ws.id;f.workspace_url=location.href;if(c)f.screenshot="1"}if(b.suffixid=="1")f.suffixid="1";if(b.duplicateid=="1")f.duplicateid="1";if(a){f.mobile="1";if(e==null)e="";f.p1=e;f.l1="250"}f.screen_width=screen.width;if(pui.ff)f.screen_width=pui.ff.split("x")[0];c=b.params;if(c!=null)for(var s in c)f[s]=c[s];if(b.mode=="preview"){r=null;if(window.opener&&window.opener.pui&&typeof window.opener.pui.generatePreview==="function")r=window.opener.pui.generatePreview;if(window.parent&&window.parent!=
@@ -707,13 +707,13 @@ f.style.opacity=h/100;f.style.filter="alpha(opacity="+h+")";if(typeof f.style.Mo
707
707
  pui.unmaskScreen=function(){if(pui.Yi!=null){var b=pui.Yi.parentNode;b==pui.runtimeContainer&&b.removeChild(pui.Yi)}};
708
708
  pui.Cy=function(b,a){function c(o){o=b.b.getElementsByTagName(o);for(var n=0;n<o.length;n++){var r=o[n];if(r.onclick)r.onclick=null;r.id="";r.removeAttribute("id");r.disabled=true;r.readOnly=true;r.Ia!=null&&typeof r.Ia.bm=="function"&&r.Ia.bm()}}var e=a.formats[0];pui.Yb();c("a");c("input");c("button");c("div");c("select");c("textarea");var f;if(e!=null)f=pui.R(e.metaData.screen["mask screen"],e.data,e.ref);var h=true;if(f=="false")h=false;h&&pui.maskScreen(b);f=document.createElement("div");pui.cd++;
709
709
  f.style.zIndex=pui.cd;f.style.position="absolute";var g;if(e!=null)g=pui.R(e.metaData.screen["window left"],e.data,e.ref);pui.Wo=g;if(g==null)g="0px";if(g.length<=2||g.substr(g.length-2)!="px"){g=parseInt(g);if(isNaN(g))g=0;g=g*pui.Ky+pui.leftOffset;g+="px";pui.Il=false}var l;if(e!=null)l=pui.R(e.metaData.screen["window top"],e.data,e.ref);pui.Xo=l;if(l==null)l="0px";if(l.length<=2||l.substr(l.length-2)!="px"){l=parseInt(l);if(isNaN(l))l=0;l=l*pui.Wp+pui.Uy;l+="px";pui.Il=false}f.style.left=g;f.style.top=
710
- l;f.zc=true;f.className="pui-window-div";pui.runtimeContainer.appendChild(f);b.b=f;pui.od=f};pui.Pv=function(){for(var b=pui.getDimensions(pui.od),a,c=0;c<pui.zm.length;c++){a=pui.getDimensions(pui.zm[c]);if(a.x1!=a.x2&&a.y1!=a.y2)break}c=parseInt((a.x2-(b.x2-b.x1))/2)-b.x1;a=parseInt((a.y2-(b.y2-b.y1))/2)-b.y1;if(c<-b.x1)c=-b.x1;if(a<-b.y1)a=-b.y1;pui.od.style.left=c+"px";pui.od.style.top=a+"px"};
711
- pui.getDimensions=function(b){for(var a={x1:99999,y1:99999,x2:0,y2:0},c=b.firstChild;c!=null;){if(!c.zc&&!c.ax&&c.style!=null&&c.style.position=="absolute"&&c.pui){var e=c.offsetLeft,f=c.offsetTop,h=e+c.offsetWidth,g=f+c.offsetHeight;if(e<a.x1)a.x1=e;if(f<a.y1)a.y1=f;if(h>a.x2)a.x2=h;if(g>a.y2)a.y2=g}c=c.nextSibling}if(b.id=="5250"&&a.x1==99999&&a.x2==0&&a.y1==99999&&a.y2==0){a.x1=0;a.y1=0;a.x2=b.parentNode.offsetWidth;a.y2=b.parentNode.offsetHeight}if(a.x1==99999)a.x1=0;if(a.y1==99999)a.y1=0;return a};
712
- pui.showMessageSubfileHelp=function(b){if(pui.Ac!=null&&!document.body.contains(pui.Ac))pui.Ac=null;if(pui.Ac!=null&&pui.Ac.style.display!="none"&&pui.Ac.parentNode!=null)pui.Ac.style.display="none";else{var a=b.id,c=a.substr(a.indexOf("."));a=Vc("_msgsflid"+c);var e=Vc("_msgsfldate"+c);if(e.length==7&&e.substr(0,1)=="1"){e="20"+e.substr(1);var f=Number(e.substr(0,4)),h=Number(e.substr(4,2))-1;e=Number(e.substr(6,2));e=new Date(f,h,e);f=pui.appJob.dateFormat;if(f=="")f="*ISO";f=pui.formatting.keywords.DATFMT[f].eb.replace(/\B/g,
710
+ l;f.Ac=true;f.className="pui-window-div";pui.runtimeContainer.appendChild(f);b.b=f;pui.od=f};pui.Pv=function(){for(var b=pui.getDimensions(pui.od),a,c=0;c<pui.zm.length;c++){a=pui.getDimensions(pui.zm[c]);if(a.x1!=a.x2&&a.y1!=a.y2)break}c=parseInt((a.x2-(b.x2-b.x1))/2)-b.x1;a=parseInt((a.y2-(b.y2-b.y1))/2)-b.y1;if(c<-b.x1)c=-b.x1;if(a<-b.y1)a=-b.y1;pui.od.style.left=c+"px";pui.od.style.top=a+"px"};
711
+ pui.getDimensions=function(b){for(var a={x1:99999,y1:99999,x2:0,y2:0},c=b.firstChild;c!=null;){if(!c.Ac&&!c.ax&&c.style!=null&&c.style.position=="absolute"&&c.pui){var e=c.offsetLeft,f=c.offsetTop,h=e+c.offsetWidth,g=f+c.offsetHeight;if(e<a.x1)a.x1=e;if(f<a.y1)a.y1=f;if(h>a.x2)a.x2=h;if(g>a.y2)a.y2=g}c=c.nextSibling}if(b.id=="5250"&&a.x1==99999&&a.x2==0&&a.y1==99999&&a.y2==0){a.x1=0;a.y1=0;a.x2=b.parentNode.offsetWidth;a.y2=b.parentNode.offsetHeight}if(a.x1==99999)a.x1=0;if(a.y1==99999)a.y1=0;return a};
712
+ pui.showMessageSubfileHelp=function(b){if(pui.Bc!=null&&!document.body.contains(pui.Bc))pui.Bc=null;if(pui.Bc!=null&&pui.Bc.style.display!="none"&&pui.Bc.parentNode!=null)pui.Bc.style.display="none";else{var a=b.id,c=a.substr(a.indexOf("."));a=Vc("_msgsflid"+c);var e=Vc("_msgsfldate"+c);if(e.length==7&&e.substr(0,1)=="1"){e="20"+e.substr(1);var f=Number(e.substr(0,4)),h=Number(e.substr(4,2))-1;e=Number(e.substr(6,2));e=new Date(f,h,e);f=pui.appJob.dateFormat;if(f=="")f="*ISO";f=pui.formatting.keywords.DATFMT[f].eb.replace(/\B/g,
713
713
  pui.appJob.dateSeparator);e=e.format(f,"en_US")}f=Vc("_msgsfltime"+c);h=pui.appJob.timeSeparator;if(h==null)h=".";f=f.substr(0,2)+h+f.substr(2,2)+h+f.substr(4,2);h=b.innerHTML;var g=Vc("_msgsflhelp"+c);g=g.replace(/&amp;N/g,"<br/><br/>");g=g.replace("Cause . . . . . :","<strong>Cause:</strong>");g=g.replace("Recovery . . . :","<strong>Recovery:</strong>");if((g=g.trim())&&g.substr(0,1)!=="<")g="<br/><br/><strong>Additional Information:</strong> "+g;c='<div class="pui-sflmsg-panel-heading"><strong>Additional Message Information</strong></div>';
714
- c+='<div class="pui-sflmsg-panel-content">';c+="<strong>Message Id:</strong> "+a+"<br/><br/>";c+="<strong>Message:</strong> "+h+"<br/><br/>";c+="<strong>Date/Time:</strong> "+e+" "+f;c+=g;c+="<br/><br/>";c+="</div>";e=b.parentNode.parentNode;b=parseInt(e.style.top);a=parseInt(e.style.left);a+=3;for(f=e.parentNode;f&&f!==pui.runtimeContainer&&f!==document.body;){b+=f.offsetTop;a+=f.offsetLeft;f=f.offsetParent}e=e.clientWidth-25;if(e<600)e=600;var l;if(pui.Ac==null||pui.Ac.parentNode==null){l=document.createElement("div");
715
- pui.runtimeContainer.appendChild(l)}else l=pui.Ac;l.style.position="absolute";l.style.width=e+"px";l.className="pui-sflmsg-panel";l.style.zIndex=pui.cd;l.innerHTML=c;l.style.display="";c=document.createElement("div");c.style.position="absolute";c.style.top="3px";c.style.right="2px";c.className="pui-sflmsg-panel-close-button";c.onclick=function(){l.style.display="none";l.parentNode&&l.parentNode.removeChild(l)};l.style.left=a+"px";b=b-l.offsetHeight-5;if(b<5)b=5;l.style.top=b+"px";l.appendChild(c);
716
- pui.Ac=l}};pui.Jj=function(b){b=wb(b);if(!(b.tagName=="INPUT"&&b.type=="button"))pui.activeElement=b;b=b;if(b.parentNode&&b.parentNode.comboBoxWidget)b=b.parentNode;if(b.parentNode&&b.parentNode.l)b=b.parentNode;b=b.parentNode;if(b!=null){var a=b.parentNode;if(a!=null){a=a.grid;a!=null&&a.em(b.row)}}};
714
+ c+='<div class="pui-sflmsg-panel-content">';c+="<strong>Message Id:</strong> "+a+"<br/><br/>";c+="<strong>Message:</strong> "+h+"<br/><br/>";c+="<strong>Date/Time:</strong> "+e+" "+f;c+=g;c+="<br/><br/>";c+="</div>";e=b.parentNode.parentNode;b=parseInt(e.style.top);a=parseInt(e.style.left);a+=3;for(f=e.parentNode;f&&f!==pui.runtimeContainer&&f!==document.body;){b+=f.offsetTop;a+=f.offsetLeft;f=f.offsetParent}e=e.clientWidth-25;if(e<600)e=600;var l;if(pui.Bc==null||pui.Bc.parentNode==null){l=document.createElement("div");
715
+ pui.runtimeContainer.appendChild(l)}else l=pui.Bc;l.style.position="absolute";l.style.width=e+"px";l.className="pui-sflmsg-panel";l.style.zIndex=pui.cd;l.innerHTML=c;l.style.display="";c=document.createElement("div");c.style.position="absolute";c.style.top="3px";c.style.right="2px";c.className="pui-sflmsg-panel-close-button";c.onclick=function(){l.style.display="none";l.parentNode&&l.parentNode.removeChild(l)};l.style.left=a+"px";b=b-l.offsetHeight-5;if(b<5)b=5;l.style.top=b+"px";l.appendChild(c);
716
+ pui.Bc=l}};pui.Jj=function(b){b=wb(b);if(!(b.tagName=="INPUT"&&b.type=="button"))pui.activeElement=b;b=b;if(b.parentNode&&b.parentNode.comboBoxWidget)b=b.parentNode;if(b.parentNode&&b.parentNode.l)b=b.parentNode;b=b.parentNode;if(b!=null){var a=b.parentNode;if(a!=null){a=a.grid;a!=null&&a.em(b.row)}}};
717
717
  pui.Rd=function(b,a){var c;if(b!=null)c=wb(b);if(a!=null)c=a;var e=c.parentNode;if(e&&e.comboBoxWidget)e=e.parentNode;var f=null;if(e!=null&&e.parentNode!=null)f=e.parentNode.grid;var h=false;if(c.tagName=="A"||c.tagName=="BUTTON"||c.tagName=="INPUT"&&c.type=="button"||c.button!=null)h=true;var g=c;if(g.parentNode!=null&&g.parentNode.comboBoxWidget!=null)g=g.parentNode;if(g.parentNode!=null&&g.parentNode.l!=null)g=g.parentNode;if(g.tagName=="OPTION"&&g.parentNode.tagName=="SELECT")g=g.parentNode;
718
718
  if(g.tagName=="IMG"&&g.parentNode.tagName=="BUTTON"){g=g.parentNode;h=true}pui.r.record=g.lc;pui.r.field=g.Sc;var l=Db(c)+1;if(l<=0)l=1;if(c.maxLength!=null&&c.maxLength>=1&&l>c.maxLength)l=c.maxLength;pui.r.position=String(l);pui.r.jo=g.id;pui.r.row=g.kf;pui.r.lq=null;pui.r.kq=null;c=pui.Xo;if(c!=null)if(c.length<=2||c.substr(c.length-2)!="px"){c=Number(c);if(!isNaN(c)&&c>0){pui.r.lq=pui.r.row;if(pui.r.row!=null)pui.r.row=Number(pui.r.row)+c}}if(e!=null&&e.row!=null&&typeof e.row=="number"){if(pui.r.row!=
719
719
  null){pui.r.row=Number(pui.r.row)+e.row;if(f!=null&&f.h)pui.r.row-=1;pui.r.row=String(pui.r.row)}f!=null&&f.em(e.row)}e=pui.Wo;if(e!=null)if(e.length<=2||e.substr(e.length-2)!="px")e=Number(e);if(g.me==null)pui.r.column=null;else{pui.r.column=Number(g.me)+Number(l)-1;if(!isNaN(e)&&e>0){pui.r.kq=pui.r.column;pui.r.column=pui.r.column+e+1}}if(!h)for(h=0;h<pui.Ua.length;h++){g=pui.Ua[h];if(g!=f)g.c.zi=0}};
@@ -774,13 +774,13 @@ b.id;pui.dragDropInfo.text+=o.Ba!=null?" off of row "+o.Ba+" of grid "+o.id:" of
774
774
  "ondragenter: Dragging row "+n+" of grid "+b.id:"ondragenter: Dragging element "+b.id;pui.dragDropInfo.text+=o.Ba==0?" before row "+(o.Ba+1)+" of grid "+o.id:o.Ba!=null?" after row "+o.Ba+" of grid "+o.id:" over element "+o.id;l("ondragenter");if(e()||f())if(t>=0){clearTimeout(r);r=setTimeout(h,t)}}}M||xb(cb)}function G(){clearTimeout(r);if(s){pui.Cs(y)&&y.parentNode.removeChild(y);y=null}if(M){ac(document,"touchmove",F);ac(document,"touchend",G)}else{ac(document,"mousemove",F);ac(document,"mouseup",
775
775
  G)}document.onselectstart=Ja;if(Na!=null){pui.dragDropInfo={};pui.dragDropInfo["dd element"]=b;pui.dragDropInfo["dd element id"]=b.id;if(n!=null)pui.dragDropInfo["dd record number"]=n;pui.dragDropInfo.proxy=y;pui.dragDropInfo.event=C;o=g(Na);pui.dragDropInfo["target element"]=o.dom;pui.dragDropInfo["target element id"]=o.id;if(o.Ba!=null)pui.dragDropInfo["target record number"]=o.Ba;pui.dragDropInfo.text=n!=null?"ondrop: Dropped row "+n+" of grid "+b.id:"ondrop: Dropped element "+b.id;pui.dragDropInfo.text+=
776
776
  o.Ba==0?" before row "+(o.Ba+1)+" of grid "+o.id:o.Ba!=null?" after row "+o.Ba+" of grid "+o.id:" into element "+o.id;if(Na.Fe!=null)pui.ca(Na,"grid-drop-target");else{if(Na.tagName=="IMG")Na.style.backgroundColor=Na.ef;if(Na.ef!=null)Na.style.borderColor=Na.ef}if(!(o.dom.id==b.id&&n!=null&&o.Ba!=null&&(n==o.Ba||n==o.Ba+1))){pui.dragDropInfo.cancel=false;l("ondrop");if(pui.dragDropInfo.cancel!=true)if(pui.lb.Un!=null||pui.lb.Vn||pui.lb.Zp!=null||pui.lb.$p){pui.lb.bc=true;pui.F=pui.Tn;pui.bc();pui.F=
777
- "false";pui.Ka=null;pui.Mc=null;pui.Lc=null}}}if(!s&&pui.lb.bc!=true){b.style.left=Aa+"px";b.style.top=Ia+"px"}if(w)b.grid.fo=false;n=o=null}C.pointerType&&C.stopImmediatePropagation&&C.stopImmediatePropagation();var B=wb(C),E=pui.Vc(b.parentNode),D=E[0],K=E[1],M=false;if(C)if(C.touches!=null){if(C.touches.length!=1)return;M=true}else if(C.pointerType==="touch")M=true;M&&C.preventDefault();var N;n=null;if(A)if(B.tagName=="TEXTAREA"||B.tagName=="INPUT")return;if(w){var Q=b.grid.dataArray;if(b.grid.isFiltered())Q=
777
+ "false";pui.Ka=null;pui.Nc=null;pui.Mc=null}}}if(!s&&pui.lb.bc!=true){b.style.left=Aa+"px";b.style.top=Ia+"px"}if(w)b.grid.fo=false;n=o=null}C.pointerType&&C.stopImmediatePropagation&&C.stopImmediatePropagation();var B=wb(C),E=pui.Vc(b.parentNode),D=E[0],K=E[1],M=false;if(C)if(C.touches!=null){if(C.touches.length!=1)return;M=true}else if(C.pointerType==="touch")M=true;M&&C.preventDefault();var N;n=null;if(A)if(B.tagName=="TEXTAREA"||B.tagName=="INPUT")return;if(w){var Q=b.grid.dataArray;if(b.grid.isFiltered())Q=
778
778
  b.grid.X;E=b.grid.cells.length-1;if(!b.grid.ea()){N=Q.length-b.grid.j+1;if(E>N)E=N}N=0;if(b.grid.h)N=1;B=wb(C);if(B.tagName=="A"||B.tagName=="IMG"||B.tagName=="INPUT"||B.tagName=="SELECT"||B.tagName=="TEXTAREA")return;for(;B!=null&&(B.row==null||B.col==null);)B=B.parentNode;if(B!=null&&B.row>=N)N=B.row;else return;if(N>E)return;n=N+b.grid.j;if(b.grid.h)n-=1;if(Q.length>0&&Q[n-1]!==null&&Q[n-1].length!=0&&Q[n-1].o!=null)n=Q[n-1].o;b.grid.fo=true}E=a["drop targets"];var Z=[];if(E!=null&&E!=""){E=E.split(",");
779
779
  for(B=0;B<E.length;B++){var V=Eb(E[B]);if(V!=null)if(V.grid!=null){var ea=V.grid.k,da=ea.length-1;if(!V.grid.ea()){Q=V.grid.dataArray;if(V.grid.isFiltered())Q=V.grid.X;var R=Q.length-V.grid.j+2;if(da>R)da=R}V=R=V.grid.h?1:0;if(Q.length==0)da=R-1;for(R=R;R<ea.length;R++){if(R<=da)V=ea[R].Vr=R;else ea[R].Vr=V;Z.push(ea[R])}}else Z.push(V)}}var y=b;if(s){if(w){Q=b.grid.cells[N];N=Q[0];y=document.createElement("div");y.style.position="absolute";y.style.left=b.style.left;y.style.top=parseInt(b.style.top)+
780
780
  parseInt(N.style.top)+"px";B=parseInt(b.style.width);B-=2;if(a.scrollbar!="none")B-=16;if(B<5)B=5;y.style.width=B+"px";N=parseInt(N.style.height);N-=2;if(N<5)N=5;y.style.height=N+"px";for(B=0;B<Q.length;B++){N=Q[B].cloneNode(true);N.style.top="0px";N.onclick=null;N.onmousedown=null;N.onmouseup=null;y.appendChild(N)}}else y=b.cloneNode(true);y.style.zIndex=701;if(!pui.pa)y.style.cursor="move";y.style.opacity=0.6;y.style.filter="alpha(opacity=60)";y.style.border="1px solid #333333"}if(y.style.top.indexOf("calc")!==
781
781
  -1)y.style.top=window.getComputedStyle(b,null).getPropertyValue("top");if(y.style.left.indexOf("calc")!==-1)y.style.left=window.getComputedStyle(b,null).getPropertyValue("left");var ca=Zc(C),Ya=$c(C),Aa=parseInt(y.style.left),Ia=parseInt(y.style.top),Na=null,Ja=document.onselectstart;pui.dragDropInfo={};pui.dragDropInfo["dd element"]=b;pui.dragDropInfo["dd element id"]=b.id;if(n!=null)pui.dragDropInfo["dd record number"]=n;pui.dragDropInfo.proxy=y;pui.dragDropInfo.event=C;pui.dragDropInfo.text=n!=
782
782
  null?"ondragstart: Dragging row "+n+" of grid "+b.id:"ondragstart: Dragging element "+b.id;l("ondragstart");if(M){T(document,"touchmove",F);T(document,"touchend",G)}else{T(document,"mousemove",F);T(document,"mouseup",G)}document.onselectstart=ta(false)}function e(){if(o.row==null)return false;if(o.grid.Gb())return false;if(o.row==0)return true;if(o.row==1&&o.grid.h)return true;return false}function f(){if(o.row==null)return false;if(o.grid.Sb())return false;if(o.row==o.grid.cells.length)return true;
783
- return false}function h(){var C=false;if(e()){o.grid.j-=1;o.Ba-=1;C=true}else if(f()){o.grid.j+=1;o.Ba+=1;C=true}if(C){o.grid.Bc?o.grid.d.sd(o.grid.j):o.grid.getData();pui.dragDropInfo.text=n!=null?"ondragleave: Dragging row "+n+" of grid "+b.id:"ondragleave: Dragging element "+b.id;pui.dragDropInfo.text+=" off of row "+pui.dragDropInfo["target record number"]+" of grid "+o.id;l("ondragleave");pui.dragDropInfo["target record number"]=o.Ba;pui.dragDropInfo.text=n!=null?"ondragenter: Dragging row "+
783
+ return false}function h(){var C=false;if(e()){o.grid.j-=1;o.Ba-=1;C=true}else if(f()){o.grid.j+=1;o.Ba+=1;C=true}if(C){o.grid.Cc?o.grid.d.sd(o.grid.j):o.grid.getData();pui.dragDropInfo.text=n!=null?"ondragleave: Dragging row "+n+" of grid "+b.id:"ondragleave: Dragging element "+b.id;pui.dragDropInfo.text+=" off of row "+pui.dragDropInfo["target record number"]+" of grid "+o.id;l("ondragleave");pui.dragDropInfo["target record number"]=o.Ba;pui.dragDropInfo.text=n!=null?"ondragenter: Dragging row "+
784
784
  n+" of grid "+b.id:"ondragenter: Dragging element "+b.id;pui.dragDropInfo.text+=o.Ba==0?" before row "+(o.Ba+1)+" of grid "+o.id:" after row "+o.Ba+" of grid "+o.id;l("ondragenter");clearTimeout(r);r=setTimeout(h,p+35)}}function g(C){var F=C.Fe;if(F==null)return{dom:C,id:C.id};else{C=C.Vr;var G=F.j-1+C-(F.h?1:0),B=G>0?G:0,E=F.isFiltered()?F.X:F.dataArray;if(G>0&&E.length>0&&E[0]&&E[0].o!=null)B=G<E.length?E[G-1].o:E[E.length-1].o;return{dom:F.c,grid:F,id:F.c.id,row:C,Ba:B}}}function l(C){var F=a[C];
785
785
  if(pui.Zb(F)){pui.F=pui.Tn;pui.runLogic(F.routine)}else if(F!=null&&F!="")try{if(eval(F)==false)return false}catch(G){pui.Ca(G,C+" Error:\n");return false}}var o,n,r=0,p=350,t=p;if(typeof pui["drop scroll wait"]=="number")t=pui["drop scroll wait"];b.onselectstart=function(C){if(w||A){C=wb(C);if(C.tagName=="TEXTAREA"||C.tagName=="INPUT")return true}return false};if(typeof b.style.MozUserSelect!="undefined")b.style.MozUserSelect="none";var s=a["use proxy"]=="true",w=b.grid!=null,A=a["field type"]==
786
786
  "html container";if(w){s=true;setTimeout(function(){var C=b.grid.cells.length-1;if(!b.grid.ea()){var F=b.grid.dataArray;if(b.grid.isFiltered())F=b.grid.X;F=F.length-b.grid.j+1;if(C>F)C=F}if((a.cursor==null||a.cursor=="")&&!pui.pa)for(F=b.grid.h?1:0;F<=C;F++)for(var G=b.grid.cells[F],B=0;B<G.length;B++)G[B].style.cursor="move"},1)}if(window.PointerEvent)T(b,"pointerdown",c);else{T(b,"mousedown",c);T(b,"touchstart",c)}};pui.errorScreen={};
@@ -837,14 +837,14 @@ Ha:1};case "z":return{Ja:"(\\\\d{1,3})",Ga:"d = parseInt(matches["+a+"], 10);",H
837
837
  "\\$1")+'" + ';e=false}else h+=pui.formatting.Date.zw(f,a)+' + "" + '}h=h.replace(/\+\s$/,"")||'""';h+=";";pui.formatting.Date.formats.locales[a]||(pui.formatting.Date.formats.locales[a]={});pui.formatting.Date.formats.locales[a][b]=new Function("date",h)},px:function(b,a){var c=b,e=false,f="",h="",g="",l=1;if(c==="Y-m-d-H.i.s.uu")c="Y-m-d-H.i.s.uU";for(var o=0;o<c.length;o++){f=c.charAt(o);if(!e&&f=="\\")e=true;else if(e){h+=f.replace(/('|\\)/g,"\\$1");e=false}else{f=pui.formatting.Date.Cw(f,l,a);
838
838
  l+=f.Ha;h+=f.Ja;g+=f.Ga}}c='var y = 1, m = 0, d = 1; var h = 0, i = 0, s = 0, u = 0; var regexObj = new RegExp("^'+h+'$"); var matches = str.match(regexObj); if(matches && matches.length > 0){'+g+"var dt = new Date(y, m, d, h, i, s, u); dt.setFullYear(y);if(dt.getFullYear() !== y || dt.getMonth() !== m || dt.getDate() !== d || dt.getHours() !== h || dt.getMinutes() !== i || dt.getSeconds() !== s) return null;return dt; }else return null;";pui.formatting.Date.Dh.locales[a]||(pui.formatting.Date.Dh.locales[a]=
839
839
  {});pui.formatting.Date.Dh.locales[a][b]=new Function("str",c)},getSuffix:function(b){switch(b){case 1:case 21:case 31:return"st";case 2:case 22:return"nd";case 3:case 23:return"rd";default:return"th"}},Aw:function(b,a,c){a=c?pui.locales[a].shortMonthNames:pui.locales[a].monthNames;for(c=0;c<12;c++)if(a[c]==b)return c;return 0},$w:function(b){return b.getHours()===0&&b.getMinutes()===0&&b.getSeconds()===0&&b.getMilliseconds()===0},Ny:"Y-m-d",EA:"H:i:s",Th:"Y-m-d-H.i.s.uu",cz:39},leftPad:function(b,
840
- a,c){for(b+="";b.length<a;)b=c+b;return b},hy:function(b,a,c){b+="";if(b.length>a)b=b.substr(0,a);else for(;b.length<a;)b+=c;return b},yc:function(b){return/^(?:zoned|floating|packed)$/.test(b)},iw:function(b,a){for(var c=0;c<b.length;c++)if(b.charCodeAt(c)>65535)return{msg:pui.getLanguageText("runtimeMsg","outside ucs2")};for(;b.length<a;)b+=" ";return pui.oq.encode(b)},fh:function(b){return pui.oq.decode(b)},keywords:{DATFMT:{"*MDY":{eb:"mdy",Ub:"/"},"*DMY":{eb:"dmy",Ub:"/"},"*YMD":{eb:"ymd",Ub:"/"},
840
+ a,c){for(b+="";b.length<a;)b=c+b;return b},hy:function(b,a,c){b+="";if(b.length>a)b=b.substr(0,a);else for(;b.length<a;)b+=c;return b},zc:function(b){return/^(?:zoned|floating|packed)$/.test(b)},iw:function(b,a){for(var c=0;c<b.length;c++)if(b.charCodeAt(c)>65535)return{msg:pui.getLanguageText("runtimeMsg","outside ucs2")};for(;b.length<a;)b+=" ";return pui.oq.encode(b)},fh:function(b){return pui.oq.decode(b)},keywords:{DATFMT:{"*MDY":{eb:"mdy",Ub:"/"},"*DMY":{eb:"dmy",Ub:"/"},"*YMD":{eb:"ymd",Ub:"/"},
841
841
  "*JUL":{eb:"yz",Ub:"/"},"*ISO":{eb:"Ymd",Ub:"-"},"*USA":{eb:"mdY",Ub:"/"},"*EUR":{eb:"dmY",Ub:"."},"*JIS":{eb:"Ymd",Ub:"-"}},$h:{"/":"/","-":"-",".":".",",":","," ":" "},ed:{"*HMS":{eb:"Ris",Ub:":"},"*ISO":{eb:"Ris",Ub:"."},"*USA":{eb:"hi A",Ub:":"},"*EUR":{eb:"Ris",Ub:"."},"*JIS":{eb:"Ris",Ub:":"}},hk:{":":":",".":".",",":","," ":" "}},escapeRe:function(){var b=/([\.\*\+\?\^\$\{\}\(\)\|\-\[\]\/\\])/g;return function(a){return a.replace(b,"\\$1")}}()};
842
842
  Date.prototype.format=function(b,a){pui.formatting.Date.formats.locales[a]&&pui.formatting.Date.formats.locales[a][b]||pui.formatting.Date.ox(b,a);return pui.formatting.Date.formats.locales[a][b](this)};
843
- pui.sc={format:function(b){if(b.revert){if(typeof pui.inputfilter=="function"){var a={};for(var c in b)a[c]=b[c];try{var e=pui.inputfilter(a.value,a,O);if(typeof e=="string")b.value=e}catch(f){pui.Zo(f,"(pui.inputfilter)")}}a=null;if(typeof pui.validate=="function")a=pui.validate(b);if(a==null||a==false)a=this[b.formatting].Ie(b);return typeof a==="object"?a:a+""}else{this.ex(b);return this[b.formatting].format(b)+""}},Text:{format:function(b){var a=b.value+"";if(b.customPattern!="")if(b.customPattern==
843
+ pui.tc={format:function(b){if(b.revert){if(typeof pui.inputfilter=="function"){var a={};for(var c in b)a[c]=b[c];try{var e=pui.inputfilter(a.value,a,O);if(typeof e=="string")b.value=e}catch(f){pui.Zo(f,"(pui.inputfilter)")}}a=null;if(typeof pui.validate=="function")a=pui.validate(b);if(a==null||a==false)a=this[b.formatting].Ie(b);return typeof a==="object"?a:a+""}else{this.ex(b);return this[b.formatting].format(b)+""}},Text:{format:function(b){var a=b.value+"";if(b.customPattern!="")if(b.customPattern==
844
844
  "y/m")if(a.length>2)a=a.substr(0,a.length-2)+"/"+a.substr(a.length-2);if(b.__pui_skipdecode!==true&&b.dataType=="graphic"&&!pui.bj)a=pui.formatting.fh(a);if(b.trimTrailing===true||b.trimTrailing==="true")a=a.replace(/\s+$/g,"");else for(;a.length<b.dataLength;)a+=" ";if(b.trimLeading===true||b.trimLeading==="true")a=a.replace(/^\s+/g,"");if(b.textTransform=="uppercase"){a=pui.Ge(a,false);a=a.toUpperCase()}else if(b.textTransform=="lowercase")a=a.toLowerCase();else if(b.textTransform=="capitalize")a=
845
845
  a.replace(/(?:^[a-z]| +[a-z])/g,function(c){return c.toUpperCase()});b.maxLength=b.dataLength=="undefined"?null:b.dataLength;return a},Ie:function(b){var a=b.value+"";a=a.replace(/\s+$/g,"");if(b.blankFill=="true"&&(b.dataType=="char"||b.dataType=="varchar")){var c=Number(b.dataLength);isNaN(c)||(a=pui.formatting.leftPad(a,c," "))}if(b.textTransform=="uppercase"){a=pui.Ge(a,false);a=a.toUpperCase();if(b.dataType=="char")a=pui.Ge(a,true)}else if(b.textTransform=="lowercase")a=a.toLowerCase();else if(b.textTransform==
846
846
  "capitalize")a=a.replace(/(?:^[a-z]| +[a-z])/g,function(e){return e.toUpperCase()});if(b.dataType=="graphic"&&!pui.bj){c=parseInt(b.dataLength,10);a=pui.formatting.iw(a,c)}return a}},Number:{format:function(b){var a=pui.appJob!=null&&(pui.appJob.decimalFormat=="I"||pui.appJob.decimalFormat=="J"),c=parseInt(b.dataLength,10),e=parseInt(b.decPos,10),f;f=!b||!b.value?"0":isNaN(b.value)&&a?b.value.replace(/\./g,"").replace(/\,/g,"."):String(b.value!==undefined&&b.value!==null?b.value:0);if(e>0&&f==="0")for(f=
847
- ".";f.length-1<e;)f+="0";else if(e>0&&f.substr(0,2)==="0.")f=f.substr(1);var h=parseFloat(f,10)||0;if(typeof f!=="string")f="0";f=f.replace(/-/g,"");var g;g=f.replace(/\..*/,"");if((g==""||g=="-")&&pui.appJob.decimalFormat=="J")g="0";var l,o=f;if(o.indexOf(".")==-1)o+=".";l=o.replace(/.*\./,"");o=c;var n="[\\d";if(b.edtWrd!=null&&b.edtWrd!="")if(pui.formatting.yc(b.dataType))return pui.yv(b);if(e>0){l=pui.formatting.hy(l,e,"0");f=g+(a?",":".")+l;if(pui.appJob.decimalFormat=="J"&&f.charAt(0)==",")f=
847
+ ".";f.length-1<e;)f+="0";else if(e>0&&f.substr(0,2)==="0.")f=f.substr(1);var h=parseFloat(f,10)||0;if(typeof f!=="string")f="0";f=f.replace(/-/g,"");var g;g=f.replace(/\..*/,"");if((g==""||g=="-")&&pui.appJob.decimalFormat=="J")g="0";var l,o=f;if(o.indexOf(".")==-1)o+=".";l=o.replace(/.*\./,"");o=c;var n="[\\d";if(b.edtWrd!=null&&b.edtWrd!="")if(pui.formatting.zc(b.dataType))return pui.yv(b);if(e>0){l=pui.formatting.hy(l,e,"0");f=g+(a?",":".")+l;if(pui.appJob.decimalFormat=="J"&&f.charAt(0)==",")f=
848
848
  "0"+f;if(pui.appJob.decimalFormat=="J"&&f.charAt(0)==",")f="0"+f;if(!b.noExtraSpaces||b.noExtraSpaces!="true")o++;n+=a?",":"\\."}if(b.zeroFill===true||b.zeroFill==="true")f=pui.formatting.leftPad(f,c+(e?1:0),"0");if(b.numSep===true||b.numSep==="true"){for(f=/(\d+)(\d{3})/;f.test(g);)g=g.replace(f,"$1"+(a?".":",")+"$2");f=g+(e>0?(a?",":".")+l:"");n+=a?"\\.":",";a=c-e-1;a=a>=0?a:0;if(!b.noExtraSpaces||b.noExtraSpaces!="true")o+=Math.floor(a/3)}a=h<0;if(b.negNum)b.negNum=b.negNum.toUpperCase();if(b.negNum==
849
849
  "(999.00)"){if(a)f="("+f+")";if(!b.noExtraSpaces||b.noExtraSpaces!="true")o+=2;n+="\\(\\)"}else if(b.negNum=="999.00-"){f+=a?"-":" ";if(!b.noExtraSpaces||b.noExtraSpaces!="true")o++;n+="\\-"}else if(b.negNum=="999.00 CR"){if(a)f+=" CR";if(!b.noExtraSpaces||b.noExtraSpaces!="true")o+=3;n+="CR\\s"}else if(b.negNum=="-999.00"){if(a)f="-"+f;if(!b.noExtraSpaces||b.noExtraSpaces!="true")o++;n+="\\-"}if(b.curSym){f=b.curSym=="EUR"?f+" EUR":b.curSym=="$"?f.substr(0,1)=="-"?"-"+b.curSym+f.substr(1):b.curSym+
850
850
  f:b.curSym+f;o+=b.curSym.length;n+=pui.formatting.escapeRe(b.curSym)}if(b.units){f+=b.units;o+=b.units.length;n+=pui.formatting.escapeRe(b.units)}if(b.zeroBalance===false||b.zeroBalance==="false")if(h===0)f="";n+="]";if(isNaN(o))o=null;b.maxLength=o;b.Ae=RegExp(n);return f},Ie:function(b){var a=pui.appJob!=null&&(pui.appJob.decimalFormat=="I"||pui.appJob.decimalFormat=="J"),c=".";if(a)c=",";var e=String(b.value);if(b.edtWrd!=null){var f="-";/-/.test(e)||(f="");var h=e;e="";for(var g=0;g<h.length;g++){var l=
@@ -853,30 +853,30 @@ h.substr(g,1);if((l<"0"||l>"9")&&(l!=c||b.decPos==0)&&l!=f)l="";e+=l}}if(b.numSe
853
853
  parseInt(b.dataLength,10)-parseInt(b.decPos,10)){a=false;c=pui.getLanguageText("runtimeMsg","invalid length",[b.value])}if(f.length==2)if(f[1].length>parseInt(b.decPos,10)){a=false;c=pui.getLanguageText("runtimeMsg","invalid decimal",[b.value,b.decPos])}else if(e.indexOf(".")==-1){a=e.replace(/-/g,"").length<=b.dataLength;c=pui.getLanguageText("runtimeMsg","invalid decimal",[b.value,b.decPos])}else if(e.indexOf(".")==e.length-1)if(pui["allow decimal ending"])e+="0";else a=false}if(a&&b.zeroFill==
854
854
  "true"&&(b.dataType=="char"||b.dataType=="varchar"))e=pui.formatting.leftPad(e,parseInt(b.dataLength,10),"0");if(a&&b.numBlankFill=="true"&&(b.dataType=="char"||b.dataType=="varchar")){b=Number(b.dataLength);isNaN(b)||(e=pui.formatting.leftPad(e,b," "))}return a?e:{msg:c}}},Indicator:{format:function(b){var a=b.value+"",c,e;if(b.indFormat=="Custom Values"){c=b.customTrue;e=b.customFalse}else{c=b.indFormat.split(" / ")[0];e=b.indFormat.split(" / ")[1]}if(c!=""||e!="")b.Ae=RegExp("["+pui.formatting.escapeRe(c+
855
855
  e)+"]");b.maxLength=c.length>e.length?c.length:e.length;return a==="1"||b.value===true?c:e},Ie:function(b){var a=b.value+"",c,e;if(b.indFormat=="Custom Values"){c=b.customTrue;e=b.customFalse}else{c=b.indFormat.split(" / ")[0];e=b.indFormat.split(" / ")[1]}return a===c||a===e?a===c?"1":"0":{msg:pui.getLanguageText("runtimeMsg","invalid choice",[b.value,c,e])}}},Date:{format:function(b){var a;a=pui.locale&&pui.locales[pui.locale]?pui.locale:b.locale;var c=b.value+"",e=this.oj(b.keywords);if(b.dateFormat==
856
- ""&&pui["default date pattern"])b.dateFormat=pui["default date pattern"];b.dateFormat=b.dateFormat||e.display;if(pui.formatting.yc(b.dataType)){if(c=="0"&&b.dataType=="zoned"&&b.dataLength==6)if(b.dateFormat=="m/d/y"||b.dateFormat=="d/m/y"){b.maxLength=8;return""}if(c==""||c=="0")return"";e.Na=(b.dateFormat||e.display).replace(/[^mdyY]/g,"");if(/Y/.test(e.Na)){if(b.dataLength==6&&(e.Na=="Ym"||e.Na=="mY")){c+="01";e.Na+="d"}c=pui.formatting.leftPad(c,8,"0")}else if(/y/.test(e.Na)){if(b.dataLength==
857
- 4&&(e.Na=="ym"||e.Na=="my")){c+="01";e.Na+="d"}c=pui.formatting.leftPad(c,6,"0")}}if(b.dataType=="timestamp")e.Na=pui.formatting.Date.Th;if(e=pui.formatting.Date.parse(c,e.Na,a))c=e.format("Y-m-d","en_US")=="0001-01-01"?"":e.format(b.dateFormat,a);return c},Ie:function(b){var a;a=pui.locale&&pui.locales[pui.locale]?pui.locale:b.locale;var c=b.value+"",e=this.oj(b.keywords);if(pui.formatting.yc(b.dataType))e.Na=(b.dateFormat||e.display).replace(/[^mdyY]/g,"");var f,h=b.dateFormat;if(h==null||h=="")h=
856
+ ""&&pui["default date pattern"])b.dateFormat=pui["default date pattern"];b.dateFormat=b.dateFormat||e.display;if(pui.formatting.zc(b.dataType)){if(c=="0"&&b.dataType=="zoned"&&b.dataLength==6)if(b.dateFormat=="m/d/y"||b.dateFormat=="d/m/y"){b.maxLength=8;return""}if(c==""||c=="0")return"";e.Na=(b.dateFormat||e.display).replace(/[^mdyY]/g,"");if(/Y/.test(e.Na)){if(b.dataLength==6&&(e.Na=="Ym"||e.Na=="mY")){c+="01";e.Na+="d"}c=pui.formatting.leftPad(c,8,"0")}else if(/y/.test(e.Na)){if(b.dataLength==
857
+ 4&&(e.Na=="ym"||e.Na=="my")){c+="01";e.Na+="d"}c=pui.formatting.leftPad(c,6,"0")}}if(b.dataType=="timestamp")e.Na=pui.formatting.Date.Th;if(e=pui.formatting.Date.parse(c,e.Na,a))c=e.format("Y-m-d","en_US")=="0001-01-01"?"":e.format(b.dateFormat,a);return c},Ie:function(b){var a;a=pui.locale&&pui.locales[pui.locale]?pui.locale:b.locale;var c=b.value+"",e=this.oj(b.keywords);if(pui.formatting.zc(b.dataType))e.Na=(b.dateFormat||e.display).replace(/[^mdyY]/g,"");var f,h=b.dateFormat;if(h==null||h=="")h=
858
858
  e.Na;if(b.dataType=="zoned")if(c.length==5&&(h=="m/d/y"||h=="d/m/y")||c.length==7&&(h=="m/d/Y"||h=="d/m/Y"))c="0"+c;if(b.dataType=="char"||b.dataType=="varchar"){f=RegExp("^([1-9])(\\/|-|\\.)(1[0-2]|0[1-9])(\\/|-|\\.)(?:[0-9]{2})?[0-9]{2}$","gm");var g=RegExp("^([1-9])(\\/|-|\\.)(3[01]|[12][0-9]|0[1-9])(\\/|-|\\.)(?:[0-9]{2})?[0-9]{2}$","gm"),l=RegExp("^([1-9])\\/(?:[0-9]{2})?[0-9]{2}$","gm");if(c.length==7&&(h=="m/d/y"||h=="m-d-y")&&g.test(c)==true||(h=="d/m/y"||h=="d-m-y"||h=="d.m.y")&&f.test(c)==
859
859
  true||c.length==9&&(h=="m/d/Y"||h=="m-d-Y")&&g.test(c)==true||(h=="d/m/Y"||h=="d-m-Y"||h=="d.m.Y")&&f.test(c)==true||c.length==6&&h=="m/Y"&&l.test(c)==true)c="0"+c}if(b.dataType=="zoned"&&parseInt(b.dataLength,10)==c.length){if(c.length==6&&(h=="m/d/y"||h=="d/m/y")||c.length==8&&(h=="m/d/Y"||h=="d/m/Y"))c=c.substr(0,2)+"/"+c.substr(2,2)+"/"+c.substr(4);if(c.length==6&&h=="m/Y")c=c.substr(0,2)+"/"+c.substr(2);if(c.length==6&&h=="Y/m")c=c.substr(0,4)+"/"+c.substr(4)}f=c===""?pui.formatting.Date.parse("0001-01-01",
860
860
  "Y-m-d","en_US"):pui.formatting.Date.parse(c,h,a);if(h=="Y-m-d")if(c=="0000-00-00"&&b.dataType=="date")return"";if(h=="m/d/y"||h=="d/m/y"){if(c=="00/00/00"&&(b.dataType=="char"||b.dataType=="varchar"))return"0";if(c=="00/00/00")return"0"}if(h=="m/d/Y"||h=="d/m/Y"){if(c=="00/00/0000"&&(b.dataType=="char"||b.dataType=="varchar"))return"";if(c=="00/00/0000")return"0"}if(b.dataType=="zoned"&&c=="")return"0";if(b.dataType=="char"||b.dataType=="varchar")return c;if(f)return f.format(e.Na,a);else{f=pui.formatting.Date.parse((new Date).getFullYear()+
861
861
  "-03-07-14.30.15.000000","Y-m-d-H.i.s.u000",a);return{msg:pui.getLanguageText("runtimeMsg","invalid date",[b.value,f.format(h,a)])}}},oj:function(b){var a,c;if(b&&b.length>0)for(var e=/^\s*DATFMT\s*\(\s*(\*\w{3})\s*\)\s*$/,f=/^\s*DATSEP\s*\(\s*(?:(\*JOB)|'(.)')\s*\)\s*$/,h=0;h<b.length;h++){var g=b[h].toUpperCase();if(e.test(g))a=g.replace(e,"$1");else if(f.test(g))c=g.replace(f,"$1$2")}if(!a&&pui["default date pattern"]){b=pui["default date pattern"];e=pui.formatting.Date.Ny}else{a=a||"*JOB";c=c||
862
862
  "*JOB";e=pui.formatting.keywords.DATFMT[a]?pui.formatting.keywords.DATFMT[a].eb:pui.formatting.keywords.DATFMT["*ISO"].eb;f=(h=/^(?:\*MDY|\*DMY|\*YMD|\*JUL)$/.test(a))&&pui.formatting.keywords.$h[c]?pui.formatting.keywords.$h[c]:pui.formatting.keywords.DATFMT[a]?pui.formatting.keywords.DATFMT[a].Ub:"-";if(a=="*JOB"&&pui.appJob&&pui.appJob.dateFormat&&pui.formatting.keywords.DATFMT[pui.appJob.dateFormat])a=pui.appJob.dateFormat;if(pui.formatting.keywords.DATFMT[a]==undefined)a="*ISO";b=pui.formatting.keywords.DATFMT[a].eb;
863
863
  h=f;h=/^(?:\*MDY|\*DMY|\*YMD|\*JUL)$/.test(a);if(c=="*JOB")if(h&&pui.appJob&&pui.appJob.dateSeparator&&pui.formatting.keywords.$h[pui.appJob.dateSeparator])c=pui.appJob.dateSeparator;else if(pui.formatting.keywords.DATFMT[a])c=pui.formatting.keywords.DATFMT[a].Ub;if(pui.formatting.keywords.$h[c]==undefined)c="-";h=pui.formatting.keywords.$h[c];e=e.replace(/\B/g,f);b=b.replace(/\B/g,h)}return{Na:e,display:b}},sw:function(b){if(b&&b.length>0)for(var a=/^\s*DATFMT\s*\(\s*(\*\w{3})\s*\)\s*$/i,c=0;c<b.length;c++)if(a.test(b[c]))return c;
864
- return-1},js:function(b,a){var c=b;if(typeof a.keywords!="undefined"){var e;e=this.sw(a.keywords);if(e>=0){var f;f=a.keywords[e];a.keywords[e]="DATFMT(*ISO)";c=pui.sc.format(a);a.keywords[e]=f}}return c}},Time:{format:function(b){var a;a=pui.locale&&pui.locales[pui.locale]?pui.locale:b.locale;var c=b.value+"",e=this.oj(b.keywords);if(pui.formatting.yc(b.dataType)){e.Na=(b.timeFormat||e.display).replace(/[^Hgis]/g,"");c=pui.formatting.leftPad(c,parseInt(b.dataLength,10),"0")}var f=c,h=e.Na;if(f.length==
865
- 4){h+="s";f+="00"}if(b.dataType=="timestamp")h=pui.formatting.Date.Th;if(f=pui.formatting.Date.parse(f,h,a)){if(b.timeFormat==="")b.timeFormat=e.display;if(/^0*$/.test(c.replace(/\D/g,"")))return f.format(b.timeFormat,a).replace(/(?:12|24)/g,"00");return f.format(b.timeFormat,a)}return c},Ie:function(b){var a;a=pui.locale&&pui.locales[pui.locale]?pui.locale:b.locale;var c=b.value+"",e=this.oj(b.keywords);if(pui.formatting.yc(b.dataType))e.Na=(b.timeFormat||e.display).replace(/[^Hgis]/g,"");var f;
864
+ return-1},js:function(b,a){var c=b;if(typeof a.keywords!="undefined"){var e;e=this.sw(a.keywords);if(e>=0){var f;f=a.keywords[e];a.keywords[e]="DATFMT(*ISO)";c=pui.tc.format(a);a.keywords[e]=f}}return c}},Time:{format:function(b){var a;a=pui.locale&&pui.locales[pui.locale]?pui.locale:b.locale;var c=b.value+"",e=this.oj(b.keywords);if(pui.formatting.zc(b.dataType)){e.Na=(b.timeFormat||e.display).replace(/[^Hgis]/g,"");c=pui.formatting.leftPad(c,parseInt(b.dataLength,10),"0")}var f=c,h=e.Na;if(f.length==
865
+ 4){h+="s";f+="00"}if(b.dataType=="timestamp")h=pui.formatting.Date.Th;if(f=pui.formatting.Date.parse(f,h,a)){if(b.timeFormat==="")b.timeFormat=e.display;if(/^0*$/.test(c.replace(/\D/g,"")))return f.format(b.timeFormat,a).replace(/(?:12|24)/g,"00");return f.format(b.timeFormat,a)}return c},Ie:function(b){var a;a=pui.locale&&pui.locales[pui.locale]?pui.locale:b.locale;var c=b.value+"",e=this.oj(b.keywords);if(pui.formatting.zc(b.dataType))e.Na=(b.timeFormat||e.display).replace(/[^Hgis]/g,"");var f;
866
866
  if(f=c===""?pui.formatting.Date.parse("00:00:00","H:i:s","en_US"):pui.formatting.Date.parse(c,b.timeFormat,a))if(/^0*$/.test(c.replace(/\D/g,""))){b=f.format(e.Na,a);b=b.replace(/(?:12|24)/g,"00");return b=b.replace(/PM/i,"AM")}else{if(!(f.getHours()===0&&f.getMinutes()===0&&f.getSeconds()===0)){e.Na=e.Na.replace(/([^\\]?)R/g,"$1H");if((b.dataType=="char"||b.dataType=="varchar")&&(b.timeFormat=="H:i"||b.timeFormat=="H:i:s"))e.Na="H:i:s"}return f.format(e.Na,a)}else{f=pui.formatting.Date.parse((new Date).getFullYear()+
867
867
  "-03-07-14.30.15.000000","Y-m-d-H.i.s.u000",a);return{msg:pui.getLanguageText("runtimeMsg","invalid time",[b.value,f.format(b.timeFormat,a)])}}},oj:function(b){var a,c;if(b&&b.length>0)for(var e=/^\s*TIMFMT\s*\(\s*(\*\w{3})\s*\)\s*$/,f=/^\s*TIMSEP\s*\(\s*(?:(\*JOB)|'(.)')\s*\)\s*$/,h=0;h<b.length;h++){var g=b[h].toUpperCase();if(e.test(g))a=g.replace(e,"$1");else if(f.test(g))c=g.replace(f,"$1$2")}a=a||"*JOB";c=c||"*JOB";e=pui.formatting.keywords.ed[a]?pui.formatting.keywords.ed[a].eb:pui.formatting.keywords.ed["*ISO"].eb;
868
868
  f=a=="*HMS"?pui.formatting.keywords.hk[c]||":":pui.formatting.keywords.ed[a]?pui.formatting.keywords.ed[a].Ub:".";if(a=="*JOB"&&pui.appJob&&pui.appJob.timeFormat&&pui.formatting.keywords.ed[pui.appJob.timeFormat])a=pui.appJob.timeFormat;if(pui.formatting.keywords.ed[a]==undefined)a="*ISO";b=pui.formatting.keywords.ed[a].eb;h=f;if(c=="*JOB")if(pui.appJob&&pui.appJob.timeSeparator&&pui.formatting.keywords.hk[pui.appJob.timeSeparator])c=pui.appJob.timeSeparator;else if(pui.formatting.keywords.ed[a])c=
869
869
  pui.formatting.keywords.ed[a].Ub;if(pui.formatting.keywords.hk[c]==undefined)c=".";h=pui.formatting.keywords.hk[c];return{Na:e.replace(/\B/g,f),display:b.replace(/\B/g,h)}}},"Time Stamp":{format:function(b){var a;a=pui.locale&&pui.locales[pui.locale]?pui.locale:b.locale;var c=b.value+"";if(b.timeStampFormat){var e=pui.formatting.Date.parse(c,pui.formatting.Date.Th,a);if(e)c=e.format(pui.formatting.Date.Th,"en_US")=="0001-01-01-00.00.00.000000"?"":e.format(b.timeStampFormat,a)}return c},Ie:function(b){var a;
870
870
  a=pui.locale&&pui.locales[pui.locale]?pui.locale:b.locale;var c=b.value+"";if(c=pui.formatting.Date.parse(c,b.timeStampFormat,a))c=c.format(pui.formatting.Date.Th,a);else{c=pui.formatting.Date.parse((new Date).getFullYear()+"-09-09-14.30.15.000000",pui.formatting.Date.Th,a);return{msg:pui.getLanguageText("runtimeMsg","invalid time stamp",[b.value,c.format(b.timeStampFormat,a)])}}return c}},Special:{format:function(b){var a=b.value+"",c="\\d",e;switch(b.special){case "Percentage":a=a.replace(/[^\d\-.]/g,
871
- "");e=parseInt(b.dataLength,10)+2;if(pui.formatting.yc(b.dataType)&&parseInt(b.decPos,10)>0){var f=(parseFloat("."+(a.split(/\./)[1]||"0"),10).toFixed(parseInt(b.decPos,10))+"").split(/\./)[1];a=a.split(/\./)[0]+"."+f;c+="\\.";e++}c+="\\-%";a+="%";break;case "Zip Code":a=a.replace(/[^\d]/g,"");a=pui.formatting.leftPad(a,5,"0");e=5;break;case "Zip Code + 4":a=a.replace(/[^\d]/g,"");a=pui.formatting.leftPad(a,9,"0");a=a.slice(0,a.length-4)+"-"+a.slice(-4);c+="\\-";e=10;break;case "Phone Number":a=a.replace(/[^\d]/g,
871
+ "");e=parseInt(b.dataLength,10)+2;if(pui.formatting.zc(b.dataType)&&parseInt(b.decPos,10)>0){var f=(parseFloat("."+(a.split(/\./)[1]||"0"),10).toFixed(parseInt(b.decPos,10))+"").split(/\./)[1];a=a.split(/\./)[0]+"."+f;c+="\\.";e++}c+="\\-%";a+="%";break;case "Zip Code":a=a.replace(/[^\d]/g,"");a=pui.formatting.leftPad(a,5,"0");e=5;break;case "Zip Code + 4":a=a.replace(/[^\d]/g,"");a=pui.formatting.leftPad(a,9,"0");a=a.slice(0,a.length-4)+"-"+a.slice(-4);c+="\\-";e=10;break;case "Phone Number":a=a.replace(/[^\d]/g,
872
872
  "");e="";f=a.length;for(var h=f-1;h>=0;h--){if(h==f-5)e="-"+e;if(h==f-8)e=") "+e;e=a.charAt(h)+e}if(f>7)e="("+e;a=e;c+="\\-() ";e=14;break;case "Social Security Number":a=a.replace(/[^\d]/g,"");a=pui.formatting.leftPad(a,9,"0");a=a.slice(0,a.length-6)+"-"+a.slice(-6,-4)+"-"+a.slice(-4);c+="\\-";e=11;break;case "Mailto Link":a="mailto:"+Kb(a);c=null;break;case "Navigation Link":a=pui.is_android?"geo:0,0?q="+Kb(a):"http://maps.google.com/maps?q="+Kb(a);c=null;break;case "Telephone Link":a="tel:"+Kb(a);
873
- c=null;break;case "Normalize URL":a=pui.normalizeURL(a);c=null;break}if(c!=null)b.Ae=RegExp("["+c+"]");b.maxLength=e;return a},Ie:function(b){var a=b.value+"";switch(b.special){case "Percentage":a=a.replace(/%/g,"");if(a.length>0){if(!/^-?\d*\.?\d+$/.test(a))return{msg:pui.getLanguageText("runtimeMsg","invalid percent",[a])};if(a.length-a.split(".").length-1>b.dataLength+(parseInt(b.decPos,10)===0?0:1))return{msg:pui.getLanguageText("runtimeMsg","invalid digits",[a,b.dataLength])};if(pui.formatting.yc(b.dataType)){var c=
874
- parseInt(b.dataLength,10)-parseInt(b.decPos,10),e=a.split(".");if(e[0].length>c)return{msg:pui.getLanguageText("runtimeMsg","exceeds whole",[a,c])};if(e[1]&&e[1].length>parseInt(b.decPos,10))return{msg:pui.getLanguageText("runtimeMsg","exceeds decimal",[a,b.decPos])}}}return a;case "Zip Code":if(pui.formatting.yc(b.dataType)){a=a.replace(/[^\d]/g,"");b=parseInt(b.dataLength,10)-parseInt(b.decPos,10);if(b>5)b=5;if(a.length>b)return{msg:pui.getLanguageText("runtimeMsg","zip too long",[b])}}else{b=parseInt(b.dataLength,
875
- 10);if(a.length>b){a=a.replace(/[^\d]/g,"");if(a.length>b)return{msg:pui.getLanguageText("runtimeMsg","zip too long",[b])}}}return a;case "Zip Code + 4":if(pui.formatting.yc(b.dataType)){a=a.replace(/[^\d]/g,"");b=parseInt(b.dataLength,10)-parseInt(b.decPos,10);if(b>9)b=9;if(a.length>b)return{msg:pui.getLanguageText("runtimeMsg","zip too long",[b])}}else{b=parseInt(b.dataLength,10);if(a.length>b){a=a.replace(/[^\d]/g,"");if(a.length>b)return{msg:pui.getLanguageText("runtimeMsg","zip too long",[b])}}}return a;
876
- case "Phone Number":if(pui.formatting.yc(b.dataType)){a=a.replace(/[^\d]/g,"");b=parseInt(b.dataLength,10)-parseInt(b.decPos,10);if(b>10)b=10;if(a.length>b)return{msg:pui.getLanguageText("runtimeMsg","phone too long",[b])}}else{b=parseInt(b.dataLength,10);if(a.length>b){a=a.replace(/[^\d]/g,"");if(a.length>b)return{msg:pui.getLanguageText("runtimeMsg","phone too long",[b])}}}return a;case "Social Security Number":if(pui.formatting.yc(b.dataType)){a=a.replace(/[^\d]/g,"");b=parseInt(b.dataLength,10)-
873
+ c=null;break;case "Normalize URL":a=pui.normalizeURL(a);c=null;break}if(c!=null)b.Ae=RegExp("["+c+"]");b.maxLength=e;return a},Ie:function(b){var a=b.value+"";switch(b.special){case "Percentage":a=a.replace(/%/g,"");if(a.length>0){if(!/^-?\d*\.?\d+$/.test(a))return{msg:pui.getLanguageText("runtimeMsg","invalid percent",[a])};if(a.length-a.split(".").length-1>b.dataLength+(parseInt(b.decPos,10)===0?0:1))return{msg:pui.getLanguageText("runtimeMsg","invalid digits",[a,b.dataLength])};if(pui.formatting.zc(b.dataType)){var c=
874
+ parseInt(b.dataLength,10)-parseInt(b.decPos,10),e=a.split(".");if(e[0].length>c)return{msg:pui.getLanguageText("runtimeMsg","exceeds whole",[a,c])};if(e[1]&&e[1].length>parseInt(b.decPos,10))return{msg:pui.getLanguageText("runtimeMsg","exceeds decimal",[a,b.decPos])}}}return a;case "Zip Code":if(pui.formatting.zc(b.dataType)){a=a.replace(/[^\d]/g,"");b=parseInt(b.dataLength,10)-parseInt(b.decPos,10);if(b>5)b=5;if(a.length>b)return{msg:pui.getLanguageText("runtimeMsg","zip too long",[b])}}else{b=parseInt(b.dataLength,
875
+ 10);if(a.length>b){a=a.replace(/[^\d]/g,"");if(a.length>b)return{msg:pui.getLanguageText("runtimeMsg","zip too long",[b])}}}return a;case "Zip Code + 4":if(pui.formatting.zc(b.dataType)){a=a.replace(/[^\d]/g,"");b=parseInt(b.dataLength,10)-parseInt(b.decPos,10);if(b>9)b=9;if(a.length>b)return{msg:pui.getLanguageText("runtimeMsg","zip too long",[b])}}else{b=parseInt(b.dataLength,10);if(a.length>b){a=a.replace(/[^\d]/g,"");if(a.length>b)return{msg:pui.getLanguageText("runtimeMsg","zip too long",[b])}}}return a;
876
+ case "Phone Number":if(pui.formatting.zc(b.dataType)){a=a.replace(/[^\d]/g,"");b=parseInt(b.dataLength,10)-parseInt(b.decPos,10);if(b>10)b=10;if(a.length>b)return{msg:pui.getLanguageText("runtimeMsg","phone too long",[b])}}else{b=parseInt(b.dataLength,10);if(a.length>b){a=a.replace(/[^\d]/g,"");if(a.length>b)return{msg:pui.getLanguageText("runtimeMsg","phone too long",[b])}}}return a;case "Social Security Number":if(pui.formatting.zc(b.dataType)){a=a.replace(/[^\d]/g,"");b=parseInt(b.dataLength,10)-
877
877
  parseInt(b.decPos,10);if(b>9)b=9;if(a.length>b)return{msg:pui.getLanguageText("runtimeMsg","ssno too long",[b])}}else{b=parseInt(b.dataLength,10);if(a.length>b){a=a.replace(/[^\d]/g,"");if(a.length>b)return{msg:pui.getLanguageText("runtimeMsg","ssno too long",[b])}}}return a;default:return a}}},Custom:{format:function(b){if(b.customFunction!==""){var a,c;try{c=eval("("+b.customFunction+")")}catch(e){a=pui.getLanguageText("runtimeMsg","invalid custom val")+"\n\n"+e.message||e.description;return b.revert?
878
878
  {msg:a}:b.value}if(typeof c==="function"){try{a=c(b)}catch(f){a=pui.getLanguageText("runtimeMsg","error custom val")+"\n\n"+f.message||f.description;return b.revert?{msg:a}:b.value}return a}}if(b.customPattern!==""){if(b.dataType=="date"){b.dateFormat=b.customPattern;b.formatting="Date"}else if(b.dataType=="time"){b.timeFormat=b.customPattern;b.formatting="Time"}else if(b.dataType=="timestamp"){b.timeStampFormat=b.customPattern;b.formatting="Time Stamp"}else{b.formatting="Date";timePatternChars=["H",
879
- "i","s","u","g","a","A"];for(a=0;a<timePatternChars.length;a++)if(b.customPattern.indexOf(timePatternChars[a])!=-1){b.formatting="Time Stamp";break}if(b.formatting=="Time Stamp")b.timeStampFormat=b.customPattern;if(b.formatting=="Date")b.dateFormat=b.customPattern}return pui.sc.format(b)}},Ie:function(b){if(b.customFunction!=="")return pui.sc.Custom.format(b)}},validate:ka(),ex:function(){var b={"char":{},varchar:{},string:{},graphic:{Number:true,Indicator:true,Date:true,Time:true,"Time Stamp":true,
879
+ "i","s","u","g","a","A"];for(a=0;a<timePatternChars.length;a++)if(b.customPattern.indexOf(timePatternChars[a])!=-1){b.formatting="Time Stamp";break}if(b.formatting=="Time Stamp")b.timeStampFormat=b.customPattern;if(b.formatting=="Date")b.dateFormat=b.customPattern}return pui.tc.format(b)}},Ie:function(b){if(b.customFunction!=="")return pui.tc.Custom.format(b)}},validate:ka(),ex:function(){var b={"char":{},varchar:{},string:{},graphic:{Number:true,Indicator:true,Date:true,Time:true,"Time Stamp":true,
880
880
  Special:true},zoned:{"Time Stamp":true},indicator:{Date:true,Time:true,"Time Stamp":true,Special:true},expression:{Text:true,Number:true,Date:true,Time:true,"Time Stamp":true,Special:true},floating:{"Time Stamp":true},date:{Number:true,Indicator:true,Time:true,Special:true},time:{Number:true,Indicator:true,Date:true,"Time Stamp":true,Special:true},timestamp:{Number:true,Indicator:true,Special:true},reference:{}};return function(a){if(!b[a.dataType]||b[a.dataType][a.formatting]||a.formatting===""){a.formatting=
881
881
  "Text";return false}return true}}()};pui.Pm=function(){this.hn=[]};function Hc(b,a){if(a==null)a=true;for(var c=[],e=0;e<b.hn.length;e++){var f=b.hn[e];if(!(f.context!=null&&f.context!=O))if(a||!f.Sn&&f.name!="layout")c.push(f.name)}c.sort();return c}
882
882
  pui.Pm.prototype.add=function(b){var a=b.name;if(a!=null){if(b.newId==null){for(var c=a.split(" "),e="",f=0;f<c.length;f++){var h=c[f];h=h.charAt(0).toUpperCase()+h.substr(1);e+=h}b.newId=e}if(b.menuName==null){c=a.split(" ");e="";for(f=0;f<c.length;f++){h=c[f];h=h.charAt(0).toUpperCase()+h.substr(1);if(e!="")e+=" ";e+=h}b.menuName=e}if(b.newValue==null)b.newValue="";if(b.tag==null)b.tag="div";if(b.inputType==null&&b.tag=="input")b.inputType="text";if(b.defaults==null)b.defaults={};if(b.op==null)b.op=
@@ -894,14 +894,14 @@ true;else if(g.async!=true&&g.async!=false){h('Invalid value for property: "asyn
894
894
  "function"){h('Invalid value for event: "onfail".');return}if(g.onready!=null)if(typeof g.onready!="function"){h('Invalid value for event: "onready".');return}var t=true;if(p!=null)for(var s in g.headers)if(s.toUpperCase()=="CONTENT-TYPE")if(g.headers[s].toLowerCase().indexOf("www-form-urlencoded")==-1)t=false;var w=g.url,A=g.params;if(typeof A=="object"){var C="";for(s in A){var F=A[s],G=[];if(typeof F=="object"){if(F.length!=null&&F.length>0)G=F}else G.push(F);for(F=0;F<G.length;F++){if(C!="")C+=
895
895
  "&";C+=encodeURIComponent(s)+"="+encodeURIComponent(G[F])}}if(C!="")if(t&&(n=="POST"||n=="PUT"||n=="DELETE")){if(p!=null&&p!="")p+="&";else p="";p+=C}else{t=w.split("?");if(t.length==2&&t[1]!="")w=t[0]+"?"+t[1]+"&"+C;else w+="?"+C}}if(n==="GET"&&(g.cacheBuster===null||g.cacheBuster===true))w=pui.addUrlCacheBuster(w);try{typeof g.user=="string"&&typeof g.password=="string"?a.open(n,w,r,g.user,g.password):a.open(n,w,r);w=false;var B=g.headers;for(s in B){a.setRequestHeader(s,B[s]);if(s.toUpperCase()==
896
896
  "CONTENT-TYPE")w=true}if(n=="POST"||n=="PUT"||n=="DELETE")w||a.setRequestHeader("Content-type","application/x-www-form-urlencoded");typeof g.overrideMimeType=="string"&&typeof a.overrideMimeType=="function"&&a.overrideMimeType(g.overrideMimeType)}catch(E){h(E);return}f=true;var D=false;if(r==true){a.onload=o;a.onerror=o;a.onabort=function(){D=true;o()}}if(g.sendAsBinary==true)try{a.sendAsBinary(p)}catch(K){a.send(p)}else a.send(p);r!=true&&o()}};this.ok=this.it=function(){return e!=null?e:false};
897
- this.getResponseText=this.xc=function(){return a.responseText};this.getResponseXML=this.qs=function(){return a.responseXML};this.getStatus=this.tf=function(){return a.status};this.getStatusText=this.us=function(){return a.statusText};this.getStatusMessage=this.Ni=function(){return c};this.getAllResponseHeaders=this.getAllResponseHeaders=function(){if(e)try{return a.getAllResponseHeaders()}catch(o){h(o)}};this.getResponseHeader=this.getResponseHeader=function(o){if(e)try{return a.getResponseHeader(o)}catch(n){h(n)}};
897
+ this.getResponseText=this.yc=function(){return a.responseText};this.getResponseXML=this.qs=function(){return a.responseXML};this.getStatus=this.tf=function(){return a.status};this.getStatusText=this.us=function(){return a.statusText};this.getStatusMessage=this.Ni=function(){return c};this.getAllResponseHeaders=this.getAllResponseHeaders=function(){if(e)try{return a.getAllResponseHeaders()}catch(o){h(o)}};this.getResponseHeader=this.getResponseHeader=function(o){if(e)try{return a.getResponseHeader(o)}catch(n){h(n)}};
898
898
  this.setRequestHeader=this.setRequestHeader=function(o,n){g.headers[o]=n};this.abort=this.abort=function(){if(f===true)try{a.abort()}catch(o){h(o)}}}
899
- function Wb(b,a){var c,e,f,h="";if(arguments.length==1&&typeof arguments[0]=="object"){c=arguments[0];c.async=null;c.onsuccess=null;if(typeof c.handler=="function"){e=true;f=c.handler}else e=false}else if(a!=null&&typeof a=="function"){e=true;f=a}else e=false;c=new yd(arguments[0]);c.async=e;c.onsuccess=function(g){h+=g.xc();e==true&&f(h)};c.send();if(e==false)return h}
900
- function bc(b,a){var c,e,f,h=null,g=false;if(arguments.length==1&&typeof arguments[0]=="object"){c=arguments[0];c.async=null;c.onsuccess=null;if(c.saveResponse==true)g=true;if(typeof c.handler=="function"){e=true;f=c.handler}else e=false}else if(a!=null&&typeof a=="function"){e=true;f=a}else e=false;c=new yd(arguments[0]);c.async=e;c.onsuccess=function(l){l=l.xc();if(g&&typeof pui=="object")pui.savedJSON=l;try{h=eval("("+l+")")}catch(o){f(null,o);return}e==true&&f(h)};c.send();if(e==false)return h}
899
+ function Wb(b,a){var c,e,f,h="";if(arguments.length==1&&typeof arguments[0]=="object"){c=arguments[0];c.async=null;c.onsuccess=null;if(typeof c.handler=="function"){e=true;f=c.handler}else e=false}else if(a!=null&&typeof a=="function"){e=true;f=a}else e=false;c=new yd(arguments[0]);c.async=e;c.onsuccess=function(g){h+=g.yc();e==true&&f(h)};c.send();if(e==false)return h}
900
+ function bc(b,a){var c,e,f,h=null,g=false;if(arguments.length==1&&typeof arguments[0]=="object"){c=arguments[0];c.async=null;c.onsuccess=null;if(c.saveResponse==true)g=true;if(typeof c.handler=="function"){e=true;f=c.handler}else e=false}else if(a!=null&&typeof a=="function"){e=true;f=a}else e=false;c=new yd(arguments[0]);c.async=e;c.onsuccess=function(l){l=l.yc();if(g&&typeof pui=="object")pui.savedJSON=l;try{h=eval("("+l+")")}catch(o){f(null,o);return}e==true&&f(h)};c.send();if(e==false)return h}
901
901
  if(typeof window.pui=="undefined")window.pui={};window.RPGspRequest=yd;window.pui.Ajax=yd;window.pui.AjaxRequest=yd;window.ajax=Wb;
902
902
  window.ajaxXML=function(b,a){var c,e,f,h=null;if(arguments.length==1&&typeof arguments[0]=="object"){c=arguments[0];c.async=null;c.onsuccess=null;c.onfail=null;c.onsuccess=null;if(typeof c.handler=="function"){e=true;f=c.handler}else e=false}else if(a!=null&&typeof a=="function"){e=true;f=a}else e=false;c=new yd(arguments[0]);c.async=e;c.onsuccess=function(g){h=g.qs();e==true&&f(h)};c.send();if(e==false)return h};window.ajaxJSON=bc;
903
903
  window.ajaxSubmit=function(b,a){var c,e="",f=typeof pui!="undefined"&&typeof pui.alert!="undefined"?pui.alert:alert;if(typeof b=="object")c=b;else{c=document.getElementById(b);if(c==null)c=document.forms[b]}var h;if(c!=null)h=c.tagName;if(c==null||h==null||h.toUpperCase()!="FORM"){f("Ajax request error: Invalid form object.");return""}if(b.action==""){f("Ajax request error: Invalid form action.");return""}for(f=0;f<c.elements.length;f++){h=c.elements[f];if(h.name!=null&&h.name!=""){var g=false;if(h.tagName==
904
- "INPUT"){var l=h.type;l=l.toLowerCase();if(l=="hidden")g=true;if(l=="password")g=true;if(l=="text")g=true;if(pui.cl(l))g=true;if(l=="")g=true;if(l=="checkbox"||l=="radio")if(h.checked)g=true}if(h.tagName=="TEXTAREA")g=true;if(h.tagName=="SELECT")g=true;if(g){if(e!="")e+="&";e+=h.name+"="+encodeURIComponent(h.value)}}}c=new yd(c.action);c.method="POST";c.postData=e;var o="",n;if(a!=null&&typeof a=="function")n=true;else{n=false;c.async=false}c.onsuccess=function(r){o+=r.xc();n==true&&a(o)};c.send();
904
+ "INPUT"){var l=h.type;l=l.toLowerCase();if(l=="hidden")g=true;if(l=="password")g=true;if(l=="text")g=true;if(pui.cl(l))g=true;if(l=="")g=true;if(l=="checkbox"||l=="radio")if(h.checked)g=true}if(h.tagName=="TEXTAREA")g=true;if(h.tagName=="SELECT")g=true;if(g){if(e!="")e+="&";e+=h.name+"="+encodeURIComponent(h.value)}}}c=new yd(c.action);c.method="POST";c.postData=e;var o="",n;if(a!=null&&typeof a=="function")n=true;else{n=false;c.async=false}c.onsuccess=function(r){o+=r.yc();n==true&&a(o)};c.send();
905
905
  if(n==false)return o};pui.widgets.add({name:"ajax container",defaults:{width:"200px",height:"100px"},propertySetters:{"field type":function(b){if(b.design){b.dom.innerHTML="AJAX content will appear here.";b.dom.style.overflow="hidden"}else{b.dom.innerHTML="";url=b.evalProperty("ajax url");if(url==null||url=="")b.dom.innerHTML="AJAX URL property not specified.";else Wb(url,function(a){try{pui.Wt(b.dom,a)}catch(c){b.dom.innerHTML=c.message}})}}}});pui.widgets.add({name:"button",tag:"input",inputType:"button",newValue:"Click Here",md:true,defaults:{width:!pui.is_quirksmode?"100px":null,"css class":"button"},propertySetters:{"field type":function(b){b.dom.value=b.evalProperty("value");if(b.design&&b.properties["field type"]!="button"){var a=b.e.properties["css class"];if(a==null)a="";if(!pui.p(a))if(a.indexOf("button")<0){if(a!="")a+=" ";a+="button";b.e.properties["css class"]=a;b.e.ob["css class"]=true;b.dom.className=a}}b.design||T(b.dom,"keydown",
906
906
  function(c){if(c.keyCode==13){if(!c)c=window.event;c.cancelBubble=true}})},value:function(b){b.dom.value=b.value}}});pui.charts={};pui.ti=[];pui.widgets.In=["Column3D","Column2D","Bar2D","Line","Area2D","Pie2D","Pie3D","Doughnut3D","Other..."];pui.widgets.lz=["3D Column","2D Column","2D Bar","Line","Area","2D Pie","3D Pie","Doughnut"];
907
907
  pui.widgets.Mf=function(b){function a(){delete b.dom.Qo;delete b.dom.sizeMe;delete b.dom.ee}if(!b.dom.Qo){b.dom.Qo=true;if(typeof FusionCharts=="undefined"){b.dom.innerHTML="<br/>&nbsp;&nbsp;"+pui.getLanguageText("runtimeMsg","failed to load x",[pui.getLanguageText("runtimeText","chart")]);console.log("Dependency FusionCharts not defined before rendering.")}else if(!Fb()){var c=b.dom.pui.properties["map type"];c=c!=null&&c!="";if(b.dom.id!=null&&b.dom.id!="")var e=b.dom.id+"_Chart";else if(b.ih!=
@@ -911,7 +911,7 @@ null)b.jsonData=pui.widgets.rv(b.dom.id,b.jsonData,c)}if(b.Qe!=null){f.dataForma
911
911
  pui.widgets.er=function(b,a,c){try{var e;if(typeof DOMParser!="undefined")e=(new DOMParser).parseFromString(a,"text/xml");else{e=new ActiveXObject("Microsoft.XMLDOM");e.async=false;e.loadXML(a)}var f=[],h;if(e.getElementsByTagName("categories").length==1){for(var g=e.getElementsByTagName("category"),l=0;l<g.length;l++)f.push(g[l].getAttribute("label"));h=e.getElementsByTagName("dataset")}else h=[e];for(g=0;g<h.length;g++){var o=h[g],n=o.getElementsByTagName("set");for(l=0;l<n.length;l++){var r={id:encodeURIComponent(b)},
912
912
  p=n[l];if(o.nodeName=="dataset"){r.name=o.getAttribute("seriesname");if(r.name==null)r.name=o.getAttribute("seriesName");if(l<f.length)r.category=encodeURIComponent(f[l])}else if(c)r.name=p.getAttribute("id");else{r.name=p.getAttribute("name");if(r.name==null)r.name=p.getAttribute("label")}r.name=encodeURIComponent(r.name);p.setAttribute("link","j-pui.widgets.doChartLink-"+JSON.stringify(r))}}return typeof XMLSerializer!="undefined"?(new XMLSerializer).serializeToString(e):e.xml}catch(t){return a}};
913
913
  pui.widgets.rv=function(b,a,c){try{var e=eval("("+a+")"),f,h=[];if(e.dataset instanceof Array){f=e.dataset;for(var g=0;g<e.categories[0].category.length;g++)h.push(e.categories[0].category[g].label)}else f=[e.data];for(g=0;g<f.length;g++)for(var l={id:encodeURIComponent(b)},o=f[g],n=o.data instanceof Array?o.data:o,r=0;r<n.length;r++){var p=n[r];if(o.seriesname||o.seriesName){l.name=o.seriesname||o.seriesName;if(r<h.length)l.category=encodeURIComponent(h[r])}else l.name=c?p.id:p.label;l.name=encodeURIComponent(l.name);
914
- p.link="j-pui.widgets.doChartLink-"+JSON.stringify(l)}return e}catch(t){return a}};pui.widgets.doChartLink=function(b){b=JSON.parse(b);var a=b.name,c=b.category;b=Eb(b.id);if(typeof b.pui.properties["chart response"]!="undefined"){b.S=c?c+"|"+a:a;if(b.F=="true"||b.F=="send data")pui.F=b.F;pui.Ka=b.Ka;if(pui.bc()==false){b.S="";pui.Ka=null;pui.Mc=null;pui.Lc=null}}else if(typeof b.onchartclick=="function")c?b.onchartclick({name:a,category:c}):b.onchartclick(a)};
914
+ p.link="j-pui.widgets.doChartLink-"+JSON.stringify(l)}return e}catch(t){return a}};pui.widgets.doChartLink=function(b){b=JSON.parse(b);var a=b.name,c=b.category;b=Eb(b.id);if(typeof b.pui.properties["chart response"]!="undefined"){b.S=c?c+"|"+a:a;if(b.F=="true"||b.F=="send data")pui.F=b.F;pui.Ka=b.Ka;if(pui.bc()==false){b.S="";pui.Ka=null;pui.Nc=null;pui.Mc=null}}else if(typeof b.onchartclick=="function")c?b.onchartclick({name:a,category:c}):b.onchartclick(a)};
915
915
  pui.widgets.Kj=function(b,a,c){b.innerHTML="";if(c)a="Map";else{c=false;for(var e=0;e<pui.widgets.In.length;e++)if(a==pui.widgets.In[e])if(a!="Other..."){c=true;break}c||(a="Bar2D")}c=document.createElement("img");c.src="/profoundui/proddata/images/charts/"+a+".jpg?v=2";c.style.position="absolute";c.style.left="0px";c.style.top="0px";c.style.width="100%";c.style.height="100%";c.Tz=true;b.appendChild(c)};
916
916
  pui.widgets.fs=function(b){var a='<?xml version="1.0" encoding="utf-8"?><chart';if(typeof b=="string"&&b.length>0)a+=" "+b;a+=">";return a};
917
917
  pui.widgets.add({name:"chart",dependencies:["/fusionchartsxt/js/pui-fusioncharts.js"],defaults:{width:"300px",height:"200px","background color":"#EEEEEE","z index":"21"},propertySetters:{"field type":function(b){if(b.dom.pui==null)b.dom.pui={};var a=b.evalProperty("parent tab panel"),c;if(a!=null&&a.length>0)c=Eb(a);if(c)c=c.tabPanel;a=parseInt(b.evalProperty("parent tab"),10);if(c&&!isNaN(a)&&a!=c.selectedTab){if(typeof b.properties["chart response"]!="undefined")b.dom.pui.properties["chart response"]=
@@ -936,7 +936,7 @@ c;var e=b.evalProperty("unchecked value");b.dom.uncheckedValue=e;var f=b.propert
936
936
  b.dom.Jd)b.dom.Jd.style.visibility=b.value=="hidden"?"hidden":""},"css class":function(b){if(b.design&&b.e.label){b.e.label.className="label-for";var a=Kb(b.value.split(" ")[0]);a!=""&&pui.Q(b.e.label,"label-for-"+a)}}}});pui.Re=function(){this.ya=this.u=this.b=null;this.design=false;this.choices=[];this["choice values"]=[];this["select box placement"]="";this.vb=this.ic=this.J=null};pui.Re.prototype=Object.create(pui.Xd.prototype);ua=pui.Re.prototype;
937
937
  ua.init=function(){if(this.u==null){this.u=document.createElement("div");this.b!=null&&this.b.appendChild(this.u);this.u.style.position="absolute";this.u.style.top="100px";this.u.style.left="100px"}if(this.design)this.u.style.border="";if(this.u.style.width==null)this.u.style.width="80px";if(O=="genie"&&(this.u.style.height==null||this.u.style.height==""))this.u.style.height="20px";if(this.J==null){this.J=document.createElement("input");this.u.appendChild(this.J)}this.J.type="text";if(this.J.getAttribute("autocomplete")==
938
938
  null&&(O!="genie"||!pui.D.config.Yg)){this.J.setAttribute("autocomplete","off");O=="dspf"&&this.J.setAttribute("name",pui.Pd())}this.J.style.fontFamily=this.u.style.fontFamily;if(typeof this.u.name=="string")this.J.name=this.u.name;if(this.design){this.J.style.cursor="default";this.J.readOnly=true}var b=this.u.className.split(" ").indexOf("readOnly");this.J.disabled=b>0;this.J.readOnly=b>0;this.J.addEventListener("keyup",this);if(this.ic==null){this.ic=document.createElement("div");this.u.appendChild(this.ic);
939
- this.ic.addEventListener("mousedown",this);this.ic.addEventListener("mouseup",this)}this.ic.className="combo-arrow";this.ic.Vv=true;var a;for(b=this.u.parentNode;b;){if(b.zc){a=b;break}b=b.parentNode}if(this.vb==null){this.vb=document.createElement("div");this.vb.className="combo-options";if(O=="dspf"&&Fb())Hb.designer.b.appendChild(this.vb);else a?a.appendChild(this.vb):pui.runtimeContainer.appendChild(this.vb)}this.vb.style.display="none";this.vb.className="combo-options";zd(this,this.u.className.split(" ")[1]);
939
+ this.ic.addEventListener("mousedown",this);this.ic.addEventListener("mouseup",this)}this.ic.className="combo-arrow";this.ic.Vv=true;var a;for(b=this.u.parentNode;b;){if(b.Ac){a=b;break}b=b.parentNode}if(this.vb==null){this.vb=document.createElement("div");this.vb.className="combo-options";if(O=="dspf"&&Fb())Hb.designer.b.appendChild(this.vb);else a?a.appendChild(this.vb):pui.runtimeContainer.appendChild(this.vb)}this.vb.style.display="none";this.vb.className="combo-options";zd(this,this.u.className.split(" ")[1]);
940
940
  pui.Jg.push(this)};ua.w=function(){var b=0;b=this.u.style.width;var a=this.u.offsetWidth,c=parseInt(getComputedStyle(this.ic).width)+3;if(b[b.length-1]==="%"){b=(1-c/a)*100;if(isNaN(b)||b<0)b=0;this.J.style.width=b+"%";this.J.style.zIndex=-1}else{b=parseInt(b)-c;if(isNaN(b)||b<0)b=0;this.J.style.width=b+"px"}};ua.setValue=function(b){this.J.value=b;pui.je(this.J)};ua.getValue=function(){return this.J.value};ua.Rp=function(b){this.J.readOnly=b};ua.setDisabled=function(b){this.J.disabled=b};
941
941
  ua.Qp=function(b){this.J.maxLength=b};ua.py=function(b,a){this.J.setAttribute(b,a)};function zd(b,a){b.J.className="combo-main-box "+a.split(" ")[0];pui.Q(b.vb,b.J.className.split(" ")[1]+"-combo-options");pui.Q(b.ic,b.J.className.split(" ")[1]+"-combo-arrow")}ua.tn=function(b,a){this.J[b]=a;if(this.u[b]!=null)this.u[b]=la()};ua.clear=function(){this.choices=[];this["choice values"]=[];this.J.value="";pui.je(this.J)};ua.getBox=function(){return this.J};
942
942
  pui.Re.prototype.showChoices=function(){var b=this.vb;if(this.ic.className.split(" ")[0]!="open")this.ic.className="open combo-arrow "+this.J.className.split(" ")[1]+"-combo-arrow";typeof this.u.onoptiondisplay=="function"&&this.u.onoptiondisplay();b.innerHTML="";b.style.display="";b.style.height=this.choices.length>5||this.choices.length==0?"":"auto";var a=this.u.offsetTop,c=this.u.offsetLeft,e=this.u.parentNode;if(e.parentNode.grid){a+=e.offsetTop;c+=e.offsetLeft;e=e.parentNode;a+=e.offsetTop;c+=
@@ -982,7 +982,7 @@ a.style.borderBottomLeftRadius="0";break;case "all":b.style.borderTopLeftRadius=
982
982
  if(n.length==2)l=n[0]+n[1].substr(0,1).toUpperCase()+n[1].substr(1);if(l=="textAlign")b.style[l]=o;else c.style[l]=o}};this.Dg=function(l){for(var o=["color","font family","font size","font style","font variant","font weight","letter spacing","text align","text decoration","text transform","word spacing"],n=0;n<o.length;n++){var r=o[n],p=l[r];p!=null&&g.setStyle(r,p)}};this.Xt=function(l){if(g.type=="header")if(g.b!=null){if(l!=null)g.b.style.height=l;if(g.b.style.height!=null&&g.b.style.height!=
983
983
  ""){l=link.offsetHeight-26;if(l<0)l=0;c.style.lineHeight=l+"px"}else c.style.lineHeight=null}};this.Hd=function(){return b};this.ue=function(){return b};this.Ao=function(){return c}};
984
984
  pui.Gm=function(){this.b=null;this.qf=false;var b,a,c,e,f=true,h=40,g="none",l=this;this.init=function(){b=document.createElement("div");a=document.createElement("div");b.style.position="absolute";b.style.left="0px";b.style.top="0px";b.style.width="100%";a.style.position="absolute";a.style.left="0px";a.style.width="100%";c=new pui.Hm;c.type="header";c.qf=l.qf;c.b=b;c.init();c.td("b");c.setHeight("100%");e=new pui.Hm;e.type="body";e.qf=l.qf;e.b=a;e.init();e.setHeight("100%");l.T("none");l.b.appendChild(b);
985
- l.b.appendChild(a);l.resize();var o=l.b.parentNode;o!=null&&o.zc==true&&l.Ys();o==null&&setTimeout(function(){var n=l.b.parentNode;n!=null&&n.zc==true&&l.Ys()},0)};this.Ys=function(){var o=l.b.parentNode;new pui.fk({df:b,move:o});T(b,"touchstart",function(n){if(n.touches.length==1){n=n.touches[0];o.C={};o.C.startX=n.pageX;o.C.startY=n.pageY;o.C.gb=parseInt(o.style.left);o.C.Da=parseInt(o.style.top)}});T(b,"touchmove",function(n){if(n.touches.length==1){var r=n.touches[0],p=r.pageY;o.style.left=o.C.gb-
985
+ l.b.appendChild(a);l.resize();var o=l.b.parentNode;o!=null&&o.Ac==true&&l.Ys();o==null&&setTimeout(function(){var n=l.b.parentNode;n!=null&&n.Ac==true&&l.Ys()},0)};this.Ys=function(){var o=l.b.parentNode;new pui.fk({df:b,move:o});T(b,"touchstart",function(n){if(n.touches.length==1){n=n.touches[0];o.C={};o.C.startX=n.pageX;o.C.startY=n.pageY;o.C.gb=parseInt(o.style.left);o.C.Da=parseInt(o.style.top)}});T(b,"touchmove",function(n){if(n.touches.length==1){var r=n.touches[0],p=r.pageY;o.style.left=o.C.gb-
986
986
  o.C.startX+r.pageX+"px";o.style.top=o.C.Da-o.C.startY+p+"px";n.preventDefault()}});b.style.cursor="move";if(b.firstChild!=null)b.firstChild.style.cursor="move"};this.Mj=function(o){b.style.display=o?"":"none";f=o;l.T(g);l.resize()};this.Nj=function(o){o=parseInt(o);if(isNaN(o)||o<=0)o=40;h=o;l.resize()};this.T=function(o){if(!(o==null||pui.p(o))){g=o;if(f)switch(o){case "left":c.T("left");c.Hd().style.borderBottomRightRadius="0";c.ue().style.borderBottomRightRadius="0";e.T("left");e.Hd().style.borderTopRightRadius=
987
987
  "0";e.ue().style.borderTopRightRadius="0";break;case "right":c.T("right");c.Hd().style.borderBottomLeftRadius="0";c.ue().style.borderBottomLeftRadius="0";e.T("right");e.Hd().style.borderTopLeftRadius="0";e.ue().style.borderTopLeftRadius="0";break;case "top":c.T("all");e.T("top");break;case "bottom":c.T("bottom");e.T("all");break;case "all":c.T("all");e.T("all");break;default:c.T("bottom");e.T("top");break}else e.T(o)}};this.setText=function(o){c.setText(o)};this.Ao=function(){return c.Ao()};this.setStyle=
988
988
  function(o,n){c.setStyle(o,n)};this.Dg=function(o){c.Dg(o)};this.Qf=function(o){c.td(o)};this.Of=function(o){e.td(o)};this.resize=function(o){var n;if(typeof o=="string")if(o.length<3||o.substr(o.length-2,2)!="px")o=null;n=o!=null&&!isNaN(parseInt(o))?parseInt(o):l.b.offsetHeight;o=h;f||(o=-1);n=n-o-5;if(n<0)n=0;if(f)b.style.height=o+"px";a.style.top=o+1+"px";a.style.height=n+"px"};this.setHeight=function(o){l.b.style.height=o;l.resize(o)};this.Hz=function(){return c.Hd()};this.Gz=function(){return h}};
@@ -1042,10 +1042,10 @@ function Qd(b){b.Wm=document.createElement("div");b.Wm.className="list-box";b.Ug
1042
1042
  pui.fileupload.Fa.prototype.handleEvent=function(b){if(b.type=="click"){switch(b.target){case this.qb:if(this.jc!=null||this.Rg||Fb()){b.preventDefault();b.stopPropagation();return false}this.qb.input.click();return;case this.yd:this.clear();b.preventDefault();b.stopPropagation();return false;case this.$d:b.preventDefault();b.stopPropagation();this.Wg&&this.Wg.abort&&this.Wg.abort();return false;case this.de:if(this.jc==null&&!Fb()&&!pui.D.Gd){Kd(this);if(this.gn){var a=vd(this);a||(a=wd(this));if(a){Jd(this,
1043
1043
  a);return false}}this.upload()}b.preventDefault();b.stopPropagation();return false}if(b.target.bx){b.preventDefault();b.stopPropagation();if(this.jc!==null)return false;this.qa.splice((b.target||b.srcElement).Mx,1);Kd(this);this.render();return false}}else if(b.type=="change"){b=b.target.files;if(this.Ad!=this.Mg)this.qa=[];Nd(this);Md(this);Kd(this);Rd(this,b)}};
1044
1044
  function Rd(b,a){for(var c,e=[],f=false,h=0;h<a.length&&!f;h++){for(var g=false,l=0;l<b.qa.length;l++)if(b.qa[l].name===a[h].name){g=true;break}l=a[h].type;var o=b.Xf.length<=0||b.Xf.indexOf(l)>=0;if(!o&&l.toLowerCase()==="image/jpg"&&b.Xf.indexOf("image/jpeg")>=0)o=true;if(!o&&l.toLowerCase()==="image/jpeg"&&b.Xf.indexOf("image/jpg")>=0)o=true;if(!o||a[h].Ss===false){f=true;c=pui.getLanguageText("runtimeMsg","upload invalid type");console.log('Content-Type "%s" not permitted for upload.',l)}else if(g){f=
1045
- true;c=pui.getLanguageText("runtimeMsg","upload duplicate file")}else if(a[h].size>b.ji*1048576){f=true;c=pui.getLanguageText("runtimeMsg","upload size limit",[b.ji])}else e.push(a[h])}if(!f)for(h=0;h<e.length;h++)b.qa.push(e[h]);b.render();c&&Jd(b,c)}pui.Jx=function(b){if(pui.Jc.length>0){for(var a=0;a<pui.Jc.length;a++)pui.Jc[a].upload();pui.Br(b);return true}else return false};
1046
- pui.Br=function(b){for(var a=true,c=0;c<pui.Jc.length;c++)if(pui.Jc[c].jc!=null){a=false;break}if(a){a={};var e=true;for(c=0;c<pui.Jc.length;c++){var f=pui.Jc[c].Pc;if(f!=""){e=false;a[pui.Jc[c].getId()]=f}}if(e){for(c=0;c<pui.Jc.length;c++){var h=pui.Jc[c];a=h.Ox;e=h.getCount();if(e>99)e=99;for(e=String(e);e.length<3;)e="0"+e;f=h.Bd;if(f.length>256)f=f.substr(0,256);else for(;f.length<256;)f+=" ";h=h.getGenerateNames()?h.getActualFileNames():h.getFileNames(false);for(var g="",l=0;l<h.length;l++){var o=
1045
+ true;c=pui.getLanguageText("runtimeMsg","upload duplicate file")}else if(a[h].size>b.ji*1048576){f=true;c=pui.getLanguageText("runtimeMsg","upload size limit",[b.ji])}else e.push(a[h])}if(!f)for(h=0;h<e.length;h++)b.qa.push(e[h]);b.render();c&&Jd(b,c)}pui.Jx=function(b){if(pui.Kc.length>0){for(var a=0;a<pui.Kc.length;a++)pui.Kc[a].upload();pui.Br(b);return true}else return false};
1046
+ pui.Br=function(b){for(var a=true,c=0;c<pui.Kc.length;c++)if(pui.Kc[c].jc!=null){a=false;break}if(a){a={};var e=true;for(c=0;c<pui.Kc.length;c++){var f=pui.Kc[c].Pc;if(f!=""){e=false;a[pui.Kc[c].getId()]=f}}if(e){for(c=0;c<pui.Kc.length;c++){var h=pui.Kc[c];a=h.Ox;e=h.getCount();if(e>99)e=99;for(e=String(e);e.length<3;)e="0"+e;f=h.Bd;if(f.length>256)f=f.substr(0,256);else for(;f.length<256;)f+=" ";h=h.getGenerateNames()?h.getActualFileNames():h.getFileNames(false);for(var g="",l=0;l<h.length;l++){var o=
1047
1047
  h[l];if(o.length>256)o=o.substr(0,256);else for(;o.length<256;)o+=" ";g+=o}b[a]=e+f+g}pui.haltFrames();pui.submitResponse(b)}else pui.Lv(a)}else setTimeout(function(){pui.Br(b)},250)};
1048
- pui.fileupload.De={"field type":function(b){if(b.dom.fileUpload==null){b.dom.fileUpload=new pui.fileupload.Fa(b.dom);O=="dspf"&&pui.Jc.push(b.dom.fileUpload)}for(var a=1,c="allowed type",e=[];typeof b.properties[c]=="string";){c=b.evalProperty(c);if(e.length===0||e.indexOf(c)===-1)e.push(c);c.toLowerCase()==="image/jpg"&&e.indexOf("image/jpeg")===-1&&e.push("image/jpeg");c.toLowerCase()==="image/jpeg"&&e.indexOf("image/jpg")===-1&&e.push("image/jpg");c="allowed type "+ ++a}a=b.dom.fileUpload;if(Array.isArray(e))a.Xf=
1048
+ pui.fileupload.De={"field type":function(b){if(b.dom.fileUpload==null){b.dom.fileUpload=new pui.fileupload.Fa(b.dom);O=="dspf"&&pui.Kc.push(b.dom.fileUpload)}for(var a=1,c="allowed type",e=[];typeof b.properties[c]=="string";){c=b.evalProperty(c);if(e.length===0||e.indexOf(c)===-1)e.push(c);c.toLowerCase()==="image/jpg"&&e.indexOf("image/jpeg")===-1&&e.push("image/jpeg");c.toLowerCase()==="image/jpeg"&&e.indexOf("image/jpg")===-1&&e.push("image/jpg");c="allowed type "+ ++a}a=b.dom.fileUpload;if(Array.isArray(e))a.Xf=
1049
1049
  e;b.dom.fileUpload.render()},"selection mode":function(b){b.dom.fileUpload.setMode(b.value)},"number of files":function(b){if(!b.design){var a=parseInt(b.value,10);if(a!=null&&!isNaN(a))b.dom.fileUpload.cg=a}},"size limit":function(b){if(!b.design){var a=parseInt(b.value,10);if(a!=null&&!isNaN(a))b.dom.fileUpload.ji=a}},"target directory":function(b){if(!b.design){var a=b.dom.fileUpload;b=Kb(b.value);if(typeof b=="string"){a.Bd=b;if(a.Bd.length>1&&a.Bd.charAt(a.Bd.length-1)=="/")a.Bd=a.Bd.substr(0,
1050
1050
  a.Bd.length-1)}}},"rename to":function(b){if(!b.design){var a=Kb(b.value);if(typeof a=="string")b.dom.fileUpload.Bq=a}},"overwrite files":function(b){if(!b.design){var a=b.value=="true"||b.value==true;if(typeof a=="boolean")b.dom.fileUpload.Pq=a}},"generate unique names":function(b){if(!b.design){var a=b.value=="true"||b.value==true;if(typeof a=="boolean")b.dom.fileUpload.pk=a}},onupload:function(b){if(!b.design)b.dom.fileUpload.dn=b.newValue},disabled:function(b){b.design||b.dom.fileUpload.setDisabled(b.value==
1051
1051
  "true")}};pui.fileupload.qc=function(b){/^css class( \d+)?$/.exec(b.propertyName)!=null&&b.dom.fileUpload.render()};pui.widgets.add({name:"file upload",newId:"FileUpload",menuName:"File Upload",defaults:{width:"400px",height:"150px","css class":"pui-file-upload","selection mode":"standard","size limit":"10","number of files":"1","overwrite files":"false"},propertySetters:pui.fileupload.De,qc:pui.fileupload.qc});pui.fileupload.Lg=function(b){this.Sm="clear-files";this.en="upload-files";this.kk=true;this.gn=false;this.bn=pui["dnd upload show select"]===true;this.Eq=this.Dq=false;this.ag=null;this.$f=0;pui.fileupload.Fa.call(this,b)};pui.fileupload.Lg.prototype=Object.create(pui.fileupload.Fa.prototype);
@@ -1055,7 +1055,7 @@ pui.fileupload.Lg.prototype.handleEvent=function(b){switch(b.type){case "dragove
1055
1055
  null||b.dataTransfer.files===undefined){console.log("Browser doesn't support dataTransfer.files API");return}Md(this);Kd(this);if(this.qa.length+b.dataTransfer.files.length>this.cg){Jd(this,pui.getLanguageText("runtimeMsg","upload file limit",[this.cg]));return}if(b.dataTransfer.files.length>0){this.ag=b.dataTransfer.files;this.$f=0;Td(this)}else Jd(this,pui.getLanguageText("runtimeMsg","upload invalid type"));return;case "load":this.ag[this.$f].Ss=true;Ud(this);return;case "error":this.ag[this.$f].Ss=
1056
1056
  false;Ud(this);return}return pui.fileupload.Fa.prototype.handleEvent.call(this,b)};function Td(b){var a=new FileReader;a.addEventListener("load",b);a.addEventListener("error",b);a.readAsArrayBuffer(b.ag[b.$f])}function Ud(b){if(b.$f==b.ag.length-1){Rd(b,b.ag);b.ag=null;b.$f=0;if(b.getCount()>0)if(b.Eq&&O==="genie")b.upload();else if(b.Dq&&O==="dspf"){pui.sb="Enter";pui.click()}}else{b.$f++;Td(b)}}pui.fileupload.Lg.prototype.zq=function(b){b.allowedTypes=[]};
1057
1057
  pui.fileupload.Lg.prototype.Yq=function(b){this.Pc="onupload Error:\n"+(b.message!=null?b.message:b)};
1058
- pui.widgets.add({name:"file upload dnd",newId:"FileUploadDND",menuName:"File Upload DND",defaults:{width:"300px",height:"252px","css class":"pui-file-upload","size limit":"10","number of files":"1","overwrite files":"false"},propertySetters:{"field type":function(b){if(b.dom.fileUpload===undefined){b.dom.fileUpload=new pui.fileupload.Lg(b.dom);O==="dspf"&&pui.Jc.push(b.dom.fileUpload)}for(var a=1,c="allowed type",e=[];typeof b.properties[c]==="string";){e.push(b.evalProperty(c));c="allowed type "+
1058
+ pui.widgets.add({name:"file upload dnd",newId:"FileUploadDND",menuName:"File Upload DND",defaults:{width:"300px",height:"252px","css class":"pui-file-upload","size limit":"10","number of files":"1","overwrite files":"false"},propertySetters:{"field type":function(b){if(b.dom.fileUpload===undefined){b.dom.fileUpload=new pui.fileupload.Lg(b.dom);O==="dspf"&&pui.Kc.push(b.dom.fileUpload)}for(var a=1,c="allowed type",e=[];typeof b.properties[c]==="string";){e.push(b.evalProperty(c));c="allowed type "+
1059
1059
  ++a}a=b.dom.fileUpload;if(Array.isArray(e))a.Xf=e;b.dom.fileUpload.render();window.addEventListener("dragover",pui.fileupload.vl,false);window.addEventListener("drop",pui.fileupload.vl,false)},"auto submit":function(b){if(!b.design){var a=b.value;b.dom.fileUpload.Dq=a===true||a==="true"}},"auto upload":function(b){if(!b.design){var a=b.value;b.dom.fileUpload.Eq=a===true||a==="true"}},"show select":function(b){var a=b.dom.fileUpload;a.bn=b.value=="true"||b.value==true;a.Ue.innerHTML="";Sd(a)},"number of files":pui.fileupload.De["number of files"],
1060
1060
  "size limit":pui.fileupload.De["size limit"],"target directory":pui.fileupload.De["target directory"],"rename to":pui.fileupload.De["rename to"],"overwrite files":pui.fileupload.De["overwrite files"],"generate unique names":pui.fileupload.De["generate unique names"],onupload:pui.fileupload.De.onupload,disabled:pui.fileupload.De.disabled},qc:pui.fileupload.qc});
1061
1061
  pui.fileupload.vl=function(b){var a=b.dataTransfer.items;if(a!=null)for(var c=0,e=a.length;c<e;c++)if(a[c].kind==="file"){b.preventDefault();return}a=b.dataTransfer.types;if(a!=null){c=0;for(e=a.length;c<e;c++)if(a[c]==="Files"){b.preventDefault();return}}};window.addEventListener("dragover",pui.fileupload.vl,false);window.addEventListener("drop",pui.fileupload.vl,false);pui.Lu=function(){function b(){if(g.getContext!=null){h=g.getContext("2d");if(h!=null){if(f.color!=null)h.strokeStyle=f.color;if(f.backgroundColor!=null){g.style.backgroundColor=f.backgroundColor;h.fillStyle=f.backgroundColor;h.fillRect(0,0,f.b.offsetWidth,f.b.offsetHeight)}h.lineJoin="round";h.lineWidth=5}}}function a(p,t,s,w){if(h!=null){if(s==null&&w==null)h.lineTo(p,t);else{h.moveTo(p,t);h.lineTo(s,w)}h.stroke()}}function c(){f.b.modified=true;pui.Pe(f.b)}function e(p){function t(B){if(!(f.readOnly||
@@ -1081,9 +1081,9 @@ pui.Q(p.oa,"paging-link-hover")};p.oa.onmouseout=function(){p.oa.disabled||pui.c
1081
1081
  o.innerHTML="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";c.appendChild(o);r=document.createElement("span");r.style.fontFamily="Arial";r.style.fontSize="11px";r.style.fontWeight="bold";r.style.verticalAlign="top";r.className="paging-number";c.appendChild(r);o=document.createElement("span");o.innerHTML="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";c.appendChild(o);p.na=document.createElement("span");p.na.innerHTML=pui.getLanguageText("runtimeText","next link text");p.na.href="javascript:void(0)";p.na.style.verticalAlign=
1082
1082
  "top";p.na.ud="PageDown";p.na.S="0";p.na.Ab=p;p.na.nextPage=true;p.na.onmouseover=function(){p.na.disabled||pui.Q(p.na,"paging-link-hover")};p.na.onmouseout=function(){p.na.disabled||pui.ca(p.na,"paging-link-hover")};p.na.onclick=function(){a(true)};p.na.className="paging-link next-paging-link";c.appendChild(p.na);p.ka=document.createElement("div");p.ka.className="next-image-icon";p.ka.style.verticalAlign="top";p.ka.style.display="inline-block";p.ka.style.height="16px";p.ka.style.width="16px";p.ka.ud=
1083
1083
  "PageDown";p.ka.S="0";p.ka.Ab=p;p.ka.nextPage=true;p.ka.onmouseover=function(){p.ka.disabled||pui.Q(p.na,"paging-link-hover")};p.ka.onmouseout=function(){p.ka.disabled||pui.ca(p.na,"paging-link-hover")};p.ka.onclick=function(){a(true)};c.appendChild(p.ka);if(!p.lj||!p.mj)pui.An=true;if(!p.grid.designMode&&pui.runtimeContainer!=null&&c!=null&&c.parentNode!=null){var t=function(s){if(c==null||c.parentNode==null)ac(pui.runtimeContainer,"keydown",t);else{if(!s)s=window.event;s=s.keyCode;s==33&&b();s==
1084
- 34&&a()}};T(pui.runtimeContainer,"keydown",t)}T(c,"mousedown",function(s){function w(E){var D=$c(E)-F,K=Zc(E)-C;E=p.grid.c.e;if(E!=null){var M=E.designer.selection;if(M.iu){K+=p.grid.c.gb;D+=p.grid.c.Da;K=M.Sj(K,pui.tl);D=M.Sj(D,pui.ul,O=="genie"?3:0);K-=p.grid.c.gb;D-=p.grid.c.Da}}p.grid.Gc(function(N){N.style.top=N.Da+D+"px";N.style.left=N.gb+K+"px"});if(E!=null)E.moved=true;p.grid.setScrollBar();E=pui.designer.uj;if(E.b==null){E.b=document.body;E.init()}E.set(p.grid.c.e);E.show()}function A(){if(p.grid.c.e!=
1084
+ 34&&a()}};T(pui.runtimeContainer,"keydown",t)}T(c,"mousedown",function(s){function w(E){var D=$c(E)-F,K=Zc(E)-C;E=p.grid.c.e;if(E!=null){var M=E.designer.selection;if(M.iu){K+=p.grid.c.gb;D+=p.grid.c.Da;K=M.Sj(K,pui.tl);D=M.Sj(D,pui.ul,O=="genie"?3:0);K-=p.grid.c.gb;D-=p.grid.c.Da}}p.grid.Hc(function(N){N.style.top=N.Da+D+"px";N.style.left=N.gb+K+"px"});if(E!=null)E.moved=true;p.grid.setScrollBar();E=pui.designer.uj;if(E.b==null){E.b=document.body;E.init()}E.set(p.grid.c.e);E.show()}function A(){if(p.grid.c.e!=
1085
1085
  null)if(p.grid.c.e.moved){p.grid.c.e.designer.kn();O=="dspf"&&pui.ide.refreshRibbon()}else p.grid.c.e.designer.aa.Yx();p.grid.dc();var E=pui.designer.uj;E!=null&&E.b!=null&&E.hide();ac(document,"mousemove",w);ac(document,"mouseup",A)}if(p.grid.designMode){p.grid.c.e.designer.Go();p.grid.Je();if(pui.ze(s)){if(p.grid.c.e){p.grid.c.e.designer.Kw.hide();p.grid.c.e.designer.Dy(s)}designUtils.Ce(s);s.stopPropagation&&s.stopPropagation();return false}p.grid.c.e!=null&&p.grid.c.e.designer.Gp!=null&&p.grid.c.e.designer.Gp.hide();
1086
- if(p.Cf)designUtils.Ce(s);else{var C=Zc(s),F=$c(s);p.grid.Gc(function(E){E.gb=parseInt(E.style.left);E.Da=parseInt(E.style.top)});T(document,"mousemove",w);T(document,"mouseup",A);xb(s);if(p.grid.designMode&&p.grid.c.e!=null){p.grid.c.e.moved=false;s=p.grid.c.e.designer;var G=s.selection,B="Move Selection";if(G.Qd.length==1)B="Move Grid";s.aa.start(B);s.aa.gp=true;G.mn(["left","top","parent tab panel","parent tab panel"]);s.aa.gp=false}}}})};this.position=function(){if((p.kg||p.Wh||p.vd||p.Ph||p.Qh||
1086
+ if(p.Cf)designUtils.Ce(s);else{var C=Zc(s),F=$c(s);p.grid.Hc(function(E){E.gb=parseInt(E.style.left);E.Da=parseInt(E.style.top)});T(document,"mousemove",w);T(document,"mouseup",A);xb(s);if(p.grid.designMode&&p.grid.c.e!=null){p.grid.c.e.moved=false;s=p.grid.c.e.designer;var G=s.selection,B="Move Selection";if(G.Qd.length==1)B="Move Grid";s.aa.start(B);s.aa.gp=true;G.mn(["left","top","parent tab panel","parent tab panel"]);s.aa.gp=false}}}})};this.position=function(){if((p.kg||p.Wh||p.vd||p.Ph||p.Qh||
1087
1087
  p.lm)&&p.grid.c.style.display!="none"&&p.grid.c.style.visibility!="hidden"){c.style.left=p.x+"px";c.style.top=p.y+"px";c.style.width=p.width+"px";c.style.display="";c.style.zIndex=p.grid.c.style.zIndex}else c.style.display="none"};this.hide=function(){c.style.display="none"};this.destroy=function(){p.Rb.removeEventListener("click",p);c.innerHTML="";c.parentNode!=null&&c.parentNode.removeChild(c);r=n=o=l=g=h=f=e=c=null;Yb(p);p=null};this.dm=function(t){if(c!=null){if(t==null)t="";t=Kb(t);if(t!=""){t=
1088
1088
  t.split(" ").shift();t+="-paging-bar"}t+=" paging-bar";t=Kb(t);if(c.className!=t)c.className=t}};this.w=function(){p.Rb.style.display="none";p.dm(p.grid.c.className);if((p.kg||p.Wh||p.vd||p.Ph||p.Qh||p.lm)&&p.grid.c.style.display!="none"&&p.grid.c.style.visibility!="hidden"){p.position();var t=p.kg?"":"none";e.style.display=t;f.style.display=t;t=p.Wh?"":"none";h.style.display=t;g.style.display=t;if(p.Wh&&p.kg){f.innerHTML=pui.getLanguageText("runtimeText","export to x",["Excel CSV"]);g.innerHTML=
1089
1089
  pui.getLanguageText("runtimeText","export to x",["Excel XLSX"]);h.style.left="160px";g.style.left="180px";var s=t=g.parentNode.offsetWidth,w=t;if(p.vd){t=p.wa.offsetLeft;w=p.ka.offsetLeft+p.ka.offsetWidth}else if(p.Ph){t=n.offsetLeft;w=n.offsetLeft+n.offsetWidth}else if(p.Qh){t=r.offsetLeft;w=r.offsetLeft+r.offsetWidth}if(g.offsetLeft+g.offsetWidth>t||w>s){f.innerHTML=pui.getLanguageText("runtimeText","export to x",["CSV"]);g.innerHTML=pui.getLanguageText("runtimeText","export to x",["XLSX"]);h.style.left=
@@ -1108,7 +1108,7 @@ pui.getLanguageText("runtimeText","row")+" "+K;a();n.onchange!=null&&n.onchange(
1108
1108
  if(N<M)N=M;M=parseInt((N-M)*((D-1)/(n.Ra-n.cc)))+M;s.style.top=M+"px";C=D;return s.style.top!=M+"px"}else{if(K)C=D;else n.qm=D;M=r.scrollTop;r.scrollTop=(D-1)*A;if(M!=r.scrollTop)return true;n.qm=null;return false}};this.qh=function(){clearTimeout(n.uw);n.uw=setTimeout(function(){n.qm=null},n.interval)};this.w=function(D){if(pui.is_old_ie){A=25;if(n.Ra>1E3)A=50}else A=19;if(s!=null&&t!=null){t.style.left=n.x-5+"px";t.style.top=n.y+"px";t.style.zIndex=n.zIndex;s.style.left=n.x-5+"px";if(C==-1)s.style.top=
1109
1109
  n.y+"px";s.style.zIndex=n.zIndex;r.style.visibility="hidden";r.style.display="none";t.style.display="";s.style.display=""}else{r.style.zIndex=n.zIndex;r.style.visibility="";r.style.display="";r.style.left=n.x+"px";r.style.top=n.y+"px"}var K=n.cc*n.la-n.borderWidth;if(t!=null){t.style.height=K-2+"px";var M=(K-2)*(n.Ra<=0?1:n.cc/n.Ra);M=parseInt(M);if(M<25&&K>27)M=25;if(M>K-2)M=K-2;s.style.height=M+"px"}else{r.style.height=K+"px";M=(n.Ra-n.cc)*A+K;var N=9999990;if(pui.is_old_ie)N=1342177;else if(pui.is_ie)N=
1110
1110
  1533917;for(;M>N&&A>1;){A-=1;M=(n.Ra-n.cc)*A+K}if(M<0)M=0;if(M>5&&M==K)M-=5;p.style.height=M+"px"}a();t==null&&!D&&n.doScroll();if(!n.designMode&&n.Kf&&n.cc==1){E=p.style.height;p.style.height="0px";r.style.overflow="hidden";r.style.overflowX="hidden";r.style.overflowY="hidden";if(G==null&&B==null&&n.Ra>1){G=document.createElement("img");G.style.position="absolute";G.style.top="0px";G.style.right="0px";G.style.cursor="pointer";G.src=pui.normalizeURL("/profoundui/proddata/images/up.gif");G.onclick=
1111
- function(){if(pui.Ac!=null)pui.Ac.style.display="none";var Q=C-1;if(Q<1)Q=1;if(Q>n.Ra)Q=n.Ra;n.doScroll(Q)};B=document.createElement("img");B.style.position="absolute";B.style.bottom="0px";B.style.right="0px";B.style.cursor="pointer";B.src=pui.normalizeURL("/profoundui/proddata/images/down.gif");B.onclick=function(){if(pui.Ac!=null)pui.Ac.style.display="none";if(C==-1)C=1;var Q=C+1;if(Q<1)Q=1;if(Q>n.Ra)Q=n.Ra;n.doScroll(Q)};r.appendChild(G);r.appendChild(B)}}if(!n.designMode&&n.Kf&&n.cc>1&&G!=null&&
1111
+ function(){if(pui.Bc!=null)pui.Bc.style.display="none";var Q=C-1;if(Q<1)Q=1;if(Q>n.Ra)Q=n.Ra;n.doScroll(Q)};B=document.createElement("img");B.style.position="absolute";B.style.bottom="0px";B.style.right="0px";B.style.cursor="pointer";B.src=pui.normalizeURL("/profoundui/proddata/images/down.gif");B.onclick=function(){if(pui.Bc!=null)pui.Bc.style.display="none";if(C==-1)C=1;var Q=C+1;if(Q<1)Q=1;if(Q>n.Ra)Q=n.Ra;n.doScroll(Q)};r.appendChild(G);r.appendChild(B)}}if(!n.designMode&&n.Kf&&n.cc>1&&G!=null&&
1112
1112
  B!=null&&n.Ra>1){r.removeChild(G);r.removeChild(B);B=G=null;p.style.height=E;r.style.overflow="";r.style.overflowX="hidden";r.style.overflowY="scroll"}};this.$k=function(D){if(t!=null)t.style.height=parseInt(r.style.height)+D-2+"px";else r.style.height=parseInt(r.style.height)+D+"px"};this.dm=function(D){r.className="pui-scrollbar";if(n.ab.grid&&D)r.className+=" "+D+"-pui-scrollbar"};this.hide=function(){r.style.visibility="hidden";r.style.display="none";w.style.display="none";w.style.visibility=
1113
1113
  "hidden";if(s!=null&&t!=null){t.style.display="none";s.style.display="none"}};this.destroy=function(){r.parentNode!=null&&r.parentNode.removeChild(r);p.parentNode!=null&&p.parentNode.removeChild(p);w.parentNode!=null&&w.parentNode.removeChild(w)};this.Ci=function(D){function K(Z){var V=0;if(!Z)Z=window.event;if(Z.wheelDelta){V=Z.wheelDelta/120;if(window.opera)V=-V}else if(Z.detail)V=-Z.detail/3;N(V,Z)}function M(Z){N(pui.gt(Z)*-1,Z)}function N(Z,V){if(Z&&!V.shiftKey)if(s==null)r.scrollTop-=Z*A;var ea=
1114
1114
  false;if(V.preventDefault)ea=true;if(n.ab&&(n.ab.grid.Ll||f(Z)||V.shiftKey))ea=false;if(ea){V.preventDefault();V.returnValue=false}}if(!o){o=true;if(typeof WheelEvent=="function"){D.addEventListener("wheel",M,false);for(var Q=0;Q<D.grid.n.length;Q++)D.grid.n[Q].addEventListener("wheel",M,false);for(Q=0;Q<D.grid.k.length;Q++)D.grid.k[Q].addEventListener("wheel",M,false)}else{D.addEventListener&&D.addEventListener("DOMMouseScroll",K,false);D.onmousewheel=K}}};this.$g=function(D){n.b=D;r.parentNode.removeChild(r);
@@ -1131,21 +1131,21 @@ function(D){D=wb(D).parentNode;if(D.tagName=="TD")D=D.parentNode;D.style.backgro
1131
1131
  "3px 6px 3px 3px";E.style.whiteSpace="normal";B.style.top=(F+1)*25+"px";B.onmousedown=function(D){h=true;D=wb(D);var K=this.getElementsByTagName("input")[0],M=this.Dl(this.col);if(D.tagName!="INPUT"&&M)K.checked=K.checked?false:true}}s.onclick=function(){this.classList.add("active-item")};s.Oo=true;A.row=s;A.appendChild(C);A.className="pui-hide-show-columns-list";A.onmouseover=function(){h=true;a.du()};A.onmouseout=function(){h=false};if(a.grid.c)A.$s=(F+1)*25;f=A;a.Io()}else w.innerHTML=l[p];w.style.fontFamily=
1132
1132
  "Sans-serif";w.style.fontSize="12px";w.style.padding="3px";w.style.whiteSpace="normal"}}return l.length}var a=this,c,e,f,h=false;this.Rc=this.clickEvent=this.grid=null;this.init=function(){T(document,"mousedown",function(g){if(a!=null){for(g=wb(g);g!=null;){if(g==c)return;if(g==a.Rc)return;if(h)return;g=g.parentNode}a.hide()}});c=document.createElement("div");c.style.position="absolute";c.style.border="1px solid #718bb7";c.style.backgroundColor="#f0f0f0";c.style.zIndex=a.grid.Ir;c.onselectstart=ta(false);
1133
1133
  c.oncontextmenu=ta(false);if(typeof c.style.MozUserSelect!="undefined")c.style.MozUserSelect="none";e=document.createElement("table");e.border=0;e.cellPadding=3;e.cellSpacing=0;e.style.width="175px";a.hide();c.appendChild(e);a.grid.b.appendChild(c)};this.show=function(){if(b()==0)a.hide();else{var g=0,l=0;if(a.toolbar!=null){g=a.toolbar.u.offsetLeft+119;l=a.toolbar.u.offsetTop+47;if(a.toolbar.u.offsetTop>a.kx.length*22-45)l=l-a.kx.length*22+1}if(a.clickEvent!=null){g=pui.xo(a.clickEvent);l=pui.os(a.clickEvent);
1134
- var o=document.body.scrollWidth-185,n={x:0,y:0},r=a.grid.c.parentNode;if(O=="dspf")if(r.getAttribute("container")=="true"){n=pui.layout.sf(r);n.x+=pui.runtimeContainer.offsetLeft;n.y+=pui.runtimeContainer.offsetTop;var p=r.offsetLeft+r.offsetWidth;if(p>0&&(r.style.overflowX=="hidden"||r.style.overflow=="hidden")){o=p-185;p=r.parentNode;if(p!=null){if(p.scrollLeft>0)o+=p.scrollLeft;if(p.style.overflowY=="scroll"||p.style.overflowY=="auto")o-=10}}p=pui.getActiveContainer();if(p!=null&&p.zc===true){n.x+=
1134
+ var o=document.body.scrollWidth-185,n={x:0,y:0},r=a.grid.c.parentNode;if(O=="dspf")if(r.getAttribute("container")=="true"){n=pui.layout.sf(r);n.x+=pui.runtimeContainer.offsetLeft;n.y+=pui.runtimeContainer.offsetTop;var p=r.offsetLeft+r.offsetWidth;if(p>0&&(r.style.overflowX=="hidden"||r.style.overflow=="hidden")){o=p-185;p=r.parentNode;if(p!=null){if(p.scrollLeft>0)o+=p.scrollLeft;if(p.style.overflowY=="scroll"||p.style.overflowY=="auto")o-=10}}p=pui.getActiveContainer();if(p!=null&&p.Ac===true){n.x+=
1135
1135
  p.offsetLeft;n.y+=p.offsetTop}if(f){r=r.getBoundingClientRect().height;f.Co=r}}else{r=pui.Vc(r);n.x=r[0];n.y=r[1];if(f)f.Co=window.innerHeight}else{r=pui.Vc(r);n.x=r[0];n.y=r[1]}l-=n.y;g-=n.x;if(g>o)g=o}c.style.left=g+"px";c.style.top=l+"px";c.style.display="";if(f){a.grid.b.appendChild(f);f.style.display="";f.style.top=l+f.row.offsetTop+"px";if(f.Co&&f.$s){l=f.Co;if(f.$s>l/2){f.style.height=l/2+"px";f.style.overflowY="scroll"}else{f.style.overflowY="initial";f.style.height="auto"}}if(c.offsetLeft===
1136
1136
  o||g+c.offsetWidth>o){g=f.offsetWidth;f.style.left=c.offsetLeft-f.offsetWidth+"px";if(f.offsetWidth!==g)f.style.left=c.offsetLeft-f.offsetWidth+"px"}else f.style.left=c.offsetLeft+c.offsetWidth+"px";f.style.display="none"}}};this.hide=function(){c.style.display="none";f&&a.Io()};this.Io=function(){f.style.display="none"};this.du=function(){f.style.display=""};this.destroy=function(){if(c!=null){c.parentNode!=null&&c.parentNode.removeChild(c);f&&f.parentNode!=null&&f.parentNode.removeChild(f);e=f=
1137
- c=null;a.clickEvent=null;a=a.grid=null}}};pui.Km=function(b,a){this.wb=a;this.Zf=this.Wq=null;if(b==null)b=document.body;this.Su=b;this.I=document.createElement("div");this.I.className="pui-find-filter";this.I.style.display="none";this.Cc=document.createElement("div");this.Cc.className="pui-find-filter-content";this.uc=document.createElement("input");this.uc.className="pui-find-filter-box";this.uc.addEventListener("input",this);this.uc.addEventListener("keydown",this);this.uc.addEventListener("blur",this);this.Cc.appendChild(this.uc);this.I.appendChild(this.Cc);
1137
+ c=null;a.clickEvent=null;a=a.grid=null}}};pui.Km=function(b,a){this.wb=a;this.Zf=this.Wq=null;if(b==null)b=document.body;this.Su=b;this.I=document.createElement("div");this.I.className="pui-find-filter";this.I.style.display="none";this.Dc=document.createElement("div");this.Dc.className="pui-find-filter-content";this.vc=document.createElement("input");this.vc.className="pui-find-filter-box";this.vc.addEventListener("input",this);this.vc.addEventListener("keydown",this);this.vc.addEventListener("blur",this);this.Dc.appendChild(this.vc);this.I.appendChild(this.Dc);
1138
1138
  this.Su.appendChild(this.I);this.type=null;this.interval=100;this.If=null};
1139
- pui.Km.prototype.handleEvent=function(b){var a;this.Zf=b.target&&b.target.className==="qf"&&b.target.tagName==="INPUT"?b.target:null;switch(b.type){case "input":if(this.type=="pgfilter")return;if(typeof this.If==="function"){clearTimeout(this.Wq);this.Wq=setTimeout(this.bv,this.interval,this)}break;case "keydown":a=b.keyCode;if(a==13){if(this.type=="find"){if(typeof this.If==="function"){a=this.Zf?this.Zf.value:this.uc.value;this.If(a,true)}}else if(this.type=="filter"){this.wb.Y.text="";this.wb.getData();
1140
- this.hide()}else if(this.type=="pgfilter")if(typeof this.If==="function"){a=this.Zf?this.Zf.value:this.uc.value;this.If(a)}xb(b)}else if(a==27){this.wb.Y.text="";this.wb.getData();this.hide();xb(b)}break;case "blur":if(this.wb){if(this.wb.Y)this.wb.Y.text="";this.wb.getData&&this.wb.getData()}this.hide();break;case "focus":b.stopPropagation();b.preventDefault();b.target.className==="qf"&&this.wb.startFilter(b.target.parentNode);break}};ua=pui.Km.prototype;ua.show=function(){this.I.style.display=""};
1141
- ua.hide=function(){this.I.style.display="none"};function Zd(b,a){var c=a.parentNode;if(c!=null){var e=c.parentNode;if(e!=null){var f,h;f=c.offsetLeft+a.offsetLeft;c=c.offsetTop-40;h=a.offsetWidth;var g=pui.getActiveContainer();if(g!=null&&g.zc===true){f+=g.offsetLeft;c+=g.offsetTop}if(e.getAttribute("container")=="true"){e=pui.layout.sf(e);c+=e.y;f+=e.x}b.setPosition(f,c,h)}}}
1142
- ua.setPosition=function(b,a,c){if(c==null)c=200;var e=c-15;if(e<20)e=20;this.I.style.left=b+"px";this.I.style.top=a+"px";this.I.style.width=c+"px";this.uc.style.width=e+"px"};ua.focus=function(){this.uc.focus()};ua.clear=function(){this.uc.value=""};ua.setText=function(b){this.uc.value=b};ua.bv=function(b){if(b.wb&&b.wb.d&&b.wb.d.type=="sliding")b.wb.d.Kf=false;b.If(b.Zf?b.Zf.value:b.uc.value);if(b.wb&&b.wb.d&&b.wb.d.type=="sliding")b.wb.d.Kf=true};pui.Zh=function(){this.dataArray=[];this.X=[];this.da=[];this.kd=false};pui.Zh.prototype=Object.create(pui.Xd.prototype);function $d(b,a,c,e){b=String(e);if(a.properties[c]!=b){if(pui.p(a.properties[c])){if(c=="top"||c=="left")a.properties[c].designValue=b}else a.properties[c]=b;a.ob[c]=true;a.hd=true;return a.designer.jd[a.designer.Ma.tb]=true}return false}
1139
+ pui.Km.prototype.handleEvent=function(b){var a;this.Zf=b.target&&b.target.className==="qf"&&b.target.tagName==="INPUT"?b.target:null;switch(b.type){case "input":if(this.type=="pgfilter")return;if(typeof this.If==="function"){clearTimeout(this.Wq);this.Wq=setTimeout(this.bv,this.interval,this)}break;case "keydown":a=b.keyCode;if(a==13){if(this.type=="find"){if(typeof this.If==="function"){a=this.Zf?this.Zf.value:this.vc.value;this.If(a,true)}}else if(this.type=="filter"){this.wb.Y.text="";this.wb.getData();
1140
+ this.hide()}else if(this.type=="pgfilter")if(typeof this.If==="function"){a=this.Zf?this.Zf.value:this.vc.value;this.If(a)}xb(b)}else if(a==27){this.wb.Y.text="";this.wb.getData();this.hide();xb(b)}break;case "blur":if(this.wb){if(this.wb.Y)this.wb.Y.text="";this.wb.getData&&this.wb.getData()}this.hide();break;case "focus":b.stopPropagation();b.preventDefault();b.target.className==="qf"&&this.wb.startFilter(b.target.parentNode);break}};ua=pui.Km.prototype;ua.show=function(){this.I.style.display=""};
1141
+ ua.hide=function(){this.I.style.display="none"};function Zd(b,a){var c=a.parentNode;if(c!=null){var e=c.parentNode;if(e!=null){var f,h;f=c.offsetLeft+a.offsetLeft;c=c.offsetTop-40;h=a.offsetWidth;var g=pui.getActiveContainer();if(g!=null&&g.Ac===true){f+=g.offsetLeft;c+=g.offsetTop}if(e.getAttribute("container")=="true"){e=pui.layout.sf(e);c+=e.y;f+=e.x}b.setPosition(f,c,h)}}}
1142
+ ua.setPosition=function(b,a,c){if(c==null)c=200;var e=c-15;if(e<20)e=20;this.I.style.left=b+"px";this.I.style.top=a+"px";this.I.style.width=c+"px";this.vc.style.width=e+"px"};ua.focus=function(){this.vc.focus()};ua.clear=function(){this.vc.value=""};ua.setText=function(b){this.vc.value=b};ua.bv=function(b){if(b.wb&&b.wb.d&&b.wb.d.type=="sliding")b.wb.d.Kf=false;b.If(b.Zf?b.Zf.value:b.vc.value);if(b.wb&&b.wb.d&&b.wb.d.type=="sliding")b.wb.d.Kf=true};pui.Zh=function(){this.dataArray=[];this.X=[];this.da=[];this.kd=false};pui.Zh.prototype=Object.create(pui.Xd.prototype);function $d(b,a,c,e){b=String(e);if(a.properties[c]!=b){if(pui.p(a.properties[c])){if(c=="top"||c=="left")a.properties[c].designValue=b}else a.properties[c]=b;a.ob[c]=true;a.hd=true;return a.designer.jd[a.designer.Ma.tb]=true}return false}
1143
1143
  pui.dk=function(){function b(k,m){var q=d.dataArray;if(m&&d.isFiltered())q=d.X;var u=q[k-1];if(typeof d.gc!="undefined"&&d.gc===true||d.isFiltered()){u=null;for(var z=0;z<q.length;z++)if(q[z].o==k){u=q[z];break}}return u}function a(k){for(var m=null,q=0;q<d.da.length;q++)if(k==d.da[q]){m=q;break}return m}function c(k){var m=document.createElement("div");m.style.position="absolute";m.style.border="1px solid #0000ff";if(pui.is_old_ie&&pui.is_quirksmode){m.style.height="6px";m.style.width="6px";m.style.padding=
1144
1144
  "0px"}else{m.style.height="3px";m.style.width="3px";m.style.padding="1px"}m.style.fontSize="0px";m.style.backgroundColor="#dddddd";m.style.cursor=k+"-resize";m.style.zIndex=designUtils.MA;m.style.visibility="hidden";m.So=true;designUtils.uk(m,"mousedown",function(q){function u(L){var W=designUtils.getY(L)-H;L=designUtils.getX(L)-J;var ba=0,P=0;if(k=="sw"||k=="se")ba=d.k.length-1;if(k=="ne"||k=="se")P=d.n.length-1;Aa(L,W,ba,false,d.k[ba].Da,d.k[ba].gb);Aa(L,W,P,true,d.n[P].Da,d.n[P].gb);if((k=="sw"||
1145
1145
  k=="se")&&d.k.length>2){W=W;if(W<-d.la+5)W=-d.la+5;typeof d.d.$k=="function"&&d.d.$k(W)}v.set(d.c.e)}function z(){designUtils.Vx(document,"mousemove",u);designUtils.Vx(document,"mouseup",z);if((k=="sw"||k=="se")&&(d.k.length>=3||d.h&&d.k.length==2)){var L=parseInt(d.k[d.k.length-1].style.top);if(d.cells.length>(d.h?2:1)){d.yj();if(L>parseInt(d.k[d.k.length-1].style.top)+d.la-3){for(var W=false;parseInt(d.k[d.k.length-1].style.top)<L;){d.$e();W=true}W&&d.Ah()}}else d.la=parseInt(d.k[d.k.length-1].style.top)-
1146
1146
  parseInt(d.k[d.k.length-2].style.top)}d.Vb();d.dc();v.hide()}var v=pui.designer.uj;if(v.b==null){v.b=document.body;v.init()}v.set(d.c.e);v.show();d.c.e.designer.Go();if(!d.Cf)if(!(d.k.length<1||d.n.length<1)){var J=designUtils.getX(q),H=designUtils.getY(q);d.k[0].Da=parseInt(d.k[0].style.top);d.k[0].gb=parseInt(d.k[0].style.left);d.n[0].Da=parseInt(d.n[0].style.top);d.n[0].gb=parseInt(d.n[0].style.left);d.k[d.k.length-1].Da=parseInt(d.k[d.k.length-1].style.top);d.k[d.k.length-1].gb=parseInt(d.k[d.k.length-
1147
1147
  1].style.left);d.n[d.n.length-1].Da=parseInt(d.n[d.n.length-1].style.top);d.n[d.n.length-1].gb=parseInt(d.n[d.n.length-1].style.left);designUtils.uk(document,"mousemove",u);designUtils.uk(document,"mouseup",z);var I=d.c.e.designer;I.aa.start("Size Grid");I.selection.mn(["left","top","number of rows","header height","column widths"]);designUtils.Ce(q)}});d.b.appendChild(m);return m}function e(){var k="",m=d.kj["padding bottom"];if(m!=null&&m!="")k+="padding-bottom:"+m+";";m=d.kj["padding left"];if(m!=
1148
- null&&m!="")k+="padding-left:"+m+";";m=d.kj["padding right"];if(m!=null&&m!="")k+="padding-right:"+m+";";m=d.kj["padding top"];if(m!=null&&m!="")k+="padding-top:"+m+";";return k}function f(k){function m(){d.Oc||C(k,false)}if(!pui.pa)k.style.cursor="pointer";T(k,"click",m);k.mm=m}function h(k){function m(J,H){return parseInt(J,10)===H.A}function q(J,H){return J===H.fieldName}function u(J,H){return p(H.A)}var z=d.cells[0];if(d.Pi instanceof Array){n(d.Pi,m,u);d.ea()&&d.dataProps["load all rows"]!="true"?
1148
+ null&&m!="")k+="padding-left:"+m+";";m=d.kj["padding right"];if(m!=null&&m!="")k+="padding-right:"+m+";";m=d.kj["padding top"];if(m!=null&&m!="")k+="padding-top:"+m+";";return k}function f(k){function m(){d.sc||C(k,false)}if(!pui.pa)k.style.cursor="pointer";T(k,"click",m);k.mm=m}function h(k){function m(J,H){return parseInt(J,10)===H.A}function q(J,H){return J===H.fieldName}function u(J,H){return p(H.A)}var z=d.cells[0];if(d.Pi instanceof Array){n(d.Pi,m,u);d.ea()&&d.dataProps["load all rows"]!="true"?
1149
1149
  C(null,k):s(null,true)}else if(d.yg instanceof Array)if(d.ea()&&d.dataProps["load all rows"]!="true"){for(i=0;i<d.yg.length;i++)d.Ls[i]=d.getColumnIndexFromFieldName(d.yg[i]);n(d.Ls,m,u);C(null,k)}else{n(d.yg,q,u);s(null,true)}else if(d.yf!=null){if(z[d.yf])d.ea()&&d.dataProps["load all rows"]!="true"?C(z[d.yf],k):s(z[d.yf],true)}else if(d.Qi!=null){var v=d.getColumnIndexFromFieldName(d.Qi);if(d.ea()&&d.dataProps["load all rows"]!="true")v!=null&&C(z[v],k);else v!=null&&s(z[v],true)}else return false;
1150
1150
  return true}function g(){if(na!=false){var k=M();if(k!=null)if(k.cols==null||k.cols!=Pa)N({});else return k}}function l(k,m,q){m=m&&d.ea();if(d.sortable&&!m&&d.c.eh==null&&d.c.ng==null){k=k.sort;if(k!=null)if(k.columnId!=null&&k.descending!=null){var u;for(m=0;m<d.cells[0].length;m++)if(d.cells[0][m].A==k.columnId){u=d.cells[0][m];u.ra=!k.descending;break}u&&q(u,true)}else if(k.multiSort instanceof Array){Qa=[];n(k.multiSort,function(z,v){return v.A===z.columnId},function(z){return z.descending});
1151
1151
  q(null,true)}}}function o(){var k=g();if(k!=null){l(k,false,C);var m=k.filters;if(m!=null)for(var q=0;q<m.length;q++){var u=k.filters[q].text,z=d.cells[0][Ba(k.filters[q].column)];if(z==null)return;if(u!=null&&u!=""){d.Y.A=z.A;d.Y.col=z.col;d.Y.text=u;d.gm(z);z.sa=u}else{d.Y.text=null;d.xj(z);z.sa=null}}}}function n(k,m,q){for(var u=d.cells[0],z=0;z<k.length;z++)for(var v=0;v<u.length;v++){var J=u[v];if(m(k[z],J)){J.ra=q(k[z],J);Qa.push(J);break}}}function r(k,m){Qa=[];n([k],function(q,u){return u.A==
@@ -1159,7 +1159,7 @@ if(!(k==null&&Qa.length<1)){if(k!=null){Ic=k.A;q=k.ra;t(false);if(q==null)q=k.ra
1159
1159
  descending:Qa[z].ra})}N(v,"sort")}}}function F(){d.fc!=null&&d.fc.parentNode!=null&&d.fc.parentNode.removeChild(d.fc)}function G(k,m){E();k.setAttribute("sortorder",0);if(d.fc==null)d.fc=document.createElement("div");else d.fc.parentNode!=null&&d.fc.parentNode.removeChild(d.fc);d.fc.className=m?"grid-sort-arrow-descending":"grid-sort-arrow-ascending";B(k,d.fc)}function B(k,m){var q=k;if(q.firstChild!=null&&q.firstChild.tagName=="DIV")q=q.firstChild;q.appendChild(m)}function E(){for(var k=0;k<d.cells[0].length;k++){var m=
1160
1160
  d.cells[0][k];m.removeAttribute("sortorder");if(m.Zc!=null)m.Zc.style.display="none"}}function D(){E();for(var k=0;k<Qa.length;k++){var m=Qa[k];m.setAttribute("sortorder",k);if(m.Zc==null){m.Zc=document.createElement("div");m.Zc.onclick=function(q){if(!pui.ze(q)){xb(q);d.bu()}};B(m,m.Zc)}m.Zc.className=m.ra===true?"grid-sort-arrow-descending":"grid-sort-arrow-ascending";m.Zc.style.display=""}}function K(){for(var k={},m=0;m<d.da.length;m++)k[d.da[m]]=m;var q=pui.Hb(d.Wa)+".";for(var u in pui.O)if(u.substr(0,
1161
1161
  q.length)==q){var z=u.substr(q.length).split(".");if(z.length==2){z=k[z[0]];if(z!=null){var v=pui.O[u][0];if(v!=null&&v.o!=null){var J;if(!d.gc&&v.Tb!=null)if(d.dataArray[v.Tb]&&d.dataArray[v.Tb].o!=undefined&&d.dataArray[v.Tb].o!==v.Tb)for(m=0;m<d.dataArray.length;m++){if(d.dataArray[m].o===v.o){J=d.dataArray[m];break}}else J=d.dataArray[v.Tb];else for(m=0;m<d.dataArray.length;m++)if(d.dataArray[m].o===v.o){J=d.dataArray[m];break}if(J!=null){m=v.value;if(v.comboBoxWidget!=null)m=v.comboBoxWidget.getValue();
1162
- if(v.l!=null)m=v.l.getValue();if(v.L!=null){m="";if(v.L.Id&&v.L.Ch!=null)m=v.L.Ch;else if(!v.L.Id&&v.L.Bh!=null)m=v.L.Bh}if(v.tagName=="INPUT"&&v.type=="checkbox")m=v.checked?v.checkedValue!=null&&v.checkedValue!=""?v.checkedValue:"1":v.uncheckedValue!=null&&v.uncheckedValue!=""?v.uncheckedValue:" ";if((v.isLoading==null||v.isLoading===false)&&v.modified===true){var H=v.M.value,I=v.M.revert;v.M.value=m;v.M.revert=true;m=pui.sc.format(v.M);v.M.value=H;v.M.revert=I;if(typeof m=="object")m="";J[z]=m}}}}}}}
1162
+ if(v.l!=null)m=v.l.getValue();if(v.L!=null){m="";if(v.L.Id&&v.L.Ch!=null)m=v.L.Ch;else if(!v.L.Id&&v.L.Bh!=null)m=v.L.Bh}if(v.tagName=="INPUT"&&v.type=="checkbox")m=v.checked?v.checkedValue!=null&&v.checkedValue!=""?v.checkedValue:"1":v.uncheckedValue!=null&&v.uncheckedValue!=""?v.uncheckedValue:" ";if((v.isLoading==null||v.isLoading===false)&&v.modified===true){var H=v.M.value,I=v.M.revert;v.M.value=m;v.M.revert=true;m=pui.tc.format(v.M);v.M.value=H;v.M.revert=I;if(typeof m=="object")m="";J[z]=m}}}}}}}
1163
1163
  function M(){var k=null;if(pui.zg()&&localStorage[d.Mb]!=null||pui.Ro()&&sessionStorage[d.Mb]!=null||eb&&pui.sj[d.Mb]!=null)try{k=ra==true?JSON.parse(sessionStorage[d.Mb]):eb==true?JSON.parse(pui.sj[d.Mb]):JSON.parse(localStorage[d.Mb])}catch(m){}if(d.Wd!=null&&d.Wd!="")k=JSON.parse(d.Wd);else if(k!=null&&k!="")d.Wd=JSON.stringify(k);return k}function N(k,m){var q;if(m==null)q=k;else{q=M();if(q==null)q={};q[m]=k}q.cols=Pa;d.Wd=JSON.stringify(q);if(na==true)if(ra==true)sessionStorage[d.Mb]=JSON.stringify(q);
1164
1164
  else if(eb==true)pui.sj[d.Mb]=JSON.stringify(q);else localStorage[d.Mb]=JSON.stringify(q)}function Q(k,m){if(!d.designMode){var q,u=d.mo[k],z=-1;if(m!=null){z=ce(d,m-(d.h?0:1));q=d.isFiltered()?d.X:d.dataArray}if(pui.Zb(u)){var v=null,J=null;if(z>=0){v=z+1;if(q[z]!=null&&q[z].o!=null)v=q[z].o;J=d.Wa}pui.runLogic(u.routine,v,J)}else if(u!=null&&u!="")try{pui.temporary_property=d;eval("var grid = pui.temporary_property;");pui.temporary_property=d.c;eval("var dom = pui.temporary_property;");eval("var row = arguments[1];");
1165
1165
  eval("var rowNumber = arguments[1];");pui.temporary_property=d.Jp;eval("var rowclicked = pui.temporary_property");pui.temporary_property=d.Nn;eval("var columnclicked = pui.temporary_property");k=="onrowclick"&&eval("var isRightClick = arguments[2];");arguments.length>=4&&eval("var event = arguments[3]");eval("var column = arguments[4];");if(m!=null){d.h||(m-=1);pui.temporary_property=d.cells[m];eval("var rowCells = pui.temporary_property;")}if(z>=0){v=z+1;eval("rowNumber = "+v);if(q[z]!=null&&q[z].o!=
@@ -1170,12 +1170,12 @@ function ea(k){if(k==null)return false;var m=false;if(k.selected==null)if(d.Bb!=
1170
1170
  function y(k){function m(P){P=pui.rg(P);var U=P.y-H,S=P.x-J;if(O=="dspf"&&d.designMode){U=Math.round(U*Hb.Em);S=Math.round(S*Hb.Em)}if(d.h&&u.row==0){if(ub==null){ub=u.cloneNode(true);ub.style.position="absolute";ub.style.border="1px solid #999999";ub.style.zIndex=d.bt;Pb=document.createElement("div");Pb.className=d.c.className;Pb.style.borderColor="transparent";u.parentNode.parentNode.appendChild(Pb);Pb.appendChild(ub);ub.style.display="none";setTimeout(function(){if(ub!=null)ub.style.display=""},
1171
1171
  150)}ub.style.top=d.c.Da+U+"px";var aa=parseInt(u.style.left);if(isNaN(aa))aa=u.getBoundingClientRect().left;ub.style.left=d.c.gb+aa+S+"px";var Y=null;if(U>-25&&U<parseInt(d.c.style.height))for(aa=0;aa<d.n.length;aa++){var ha=d.n[aa],sa=parseInt(ha.style.left),Ha=P.x;if(d.designMode&&O=="dspf")sa=Math.round(sa*Hb.Yh);Ha-=I.x;if(Math.abs(sa-Ha)<15){if(Ta!=null&&Ta.parentNode!=ha.parentNode){Ta.parentNode.removeChild(Ta);Ta=null}if(Ta==null){Ta=document.createElement("img");Ta.src=pui.normalizeURL("/profoundui/proddata/images/grids/column-pointer.gif");
1172
1172
  Ta.style.position="absolute";Ta.style.zIndex=d.bt+1;d.designMode?Hb.designer.b.appendChild(Ta):document.body.appendChild(Ta)}P=parseInt(ha.style.top)-10;ha=parseInt(ha.style.left)-4;P+=ba.y;ha+=ba.x;Ta.style.display="";Ta.style.top=P+"px";Ta.style.left=ha+"px";Y=aa;Ta.ol=Y;break}}if(Y==null&&Ta!=null){Ta.style.display="none";Ta.ol=null}}else{aa=d.c.e;if(aa!=null){pui.designer.GA(P.x,P.y,aa.designer);P=aa.designer.selection;if(P.iu){S+=d.c.gb;U+=d.c.Da;S=P.Sj(S,pui.tl);U=P.Sj(U,pui.ul,O=="genie"?3:
1173
- 0);S-=d.c.gb;U-=d.c.Da}}d.Gc(function(ja){ja.style.top=ja.Da+U+"px";ja.style.left=ja.gb+S+"px"});if(aa!=null)aa.moved=true;d.setScrollBar();P=pui.designer.uj;if(P.b==null){P.b=document.body;P.init()}P.set(d.c.e);P.show()}}function q(){d.dragging=false;if(ub!=null){ub.parentNode.removeChild(ub);Pb.parentNode.removeChild(Pb);Pb=ub=null}var P=false;if(Ta!=null){Ta.style.display="none";if(Ta.ol!=null){var U=d.c.e;U!=null&&U.designer.aa.ln("Move Column",U.designer);d.moveColumn(u.col,Ta.ol);if(d.ma){var S=
1173
+ 0);S-=d.c.gb;U-=d.c.Da}}d.Hc(function(ja){ja.style.top=ja.Da+U+"px";ja.style.left=ja.gb+S+"px"});if(aa!=null)aa.moved=true;d.setScrollBar();P=pui.designer.uj;if(P.b==null){P.b=document.body;P.init()}P.set(d.c.e);P.show()}}function q(){d.dragging=false;if(ub!=null){ub.parentNode.removeChild(ub);Pb.parentNode.removeChild(Pb);Pb=ub=null}var P=false;if(Ta!=null){Ta.style.display="none";if(Ta.ol!=null){var U=d.c.e;U!=null&&U.designer.aa.ln("Move Column",U.designer);d.moveColumn(u.col,Ta.ol);if(d.ma){var S=
1174
1174
  d.ga.map(function(ha){if(ha.showing){var sa=Ba(ha.columnId);ha.currentColumn=sa;ha.savedColumn=sa}else ha.currentColumn=-1;return ha}),aa=[];d.cells[0].forEach(function(ha){aa.push(ha.A)});S.yi=aa;d.ga=S}P=true;Ta.ol=null;if(na){if(!aa){aa=[];for(U=0;U<d.cells[0].length;U++)aa.push(d.cells[0][U].A)}N(aa,"colSequence");if(d.ma){if(U=g())if(U=U.hidableColState){U.cols=S;U.headings=d.columnHeadings}else U={cols:S,headings:d.columnHeadings};else U={cols:S,headings:d.columnHeadings};var Y=d.rf().split(",").map(function(ha){return Number(ha)});
1175
1175
  N(U,"hidableColState");N(Y,"colWidths");d.ga=S}}}}if(d.designMode){U=d.c.e;if(U!=null)if(U.moved){P=U.designer;if(P.Ur!=null)d.mx();else{z&&P.Ee.style.display==""&&d.nx();P.kn();d.Vb();O=="dspf"&&pui.ide.refreshRibbon()}}else P||d.c.e.designer.aa.Yx();d.dc();P=pui.designer.uj;P!=null&&P.b!=null&&P.hide();designUtils.fA(d.c.e.designer)}ac(document,"mousemove",m);ac(document,"mouseup",q)}for(var u=k.target;u!=null&&u.row==null;)u=u.parentNode;if(u==null||u.row==null)return false;var z=O=="dspf"&&d.c.parentNode.getAttribute("container")==
1176
1176
  "true",v=pui.rg(k),J=v.x,H=v.y;if(d.designMode){d.c.e.designer.Go();O=="dspf"&&Ext.menu.MenuMgr.hideAll();d.Je();if(pui.ze(k)){if(d.c.e){d.c.e.designer.Kw.hide();d.c.e.designer.Dy(k)}designUtils.Ce(k);k.stopPropagation&&k.stopPropagation();return false}d.c.e!=null&&d.c.e.designer.Gp!=null&&d.c.e.designer.Gp.hide();if(d.Cf){designUtils.Ce(k);return}d.c.e.My.left=d.c.style.left;d.c.e.My.top=d.c.style.top;designUtils.gA(d.c.e.designer,false,z,false,true,J,H,d.c.e)}else d.Xb!=null&&!pui.ze(k)&&d.Xb.hide();
1177
- d.dragging=true;d.Gc(function(P){P.gb=pui.Td(P.style.left);P.Da=pui.Td(P.style.top)});var I={x:0,y:0};if(d.designMode){v=pui.Vc(d.c.e.designer.b,true);I.x+=v[0]}else{v=pui.runtimeContainer.getBoundingClientRect();if(typeof window.pageXOffset=="number"){I.x=v.left+window.pageXOffset;I.y=v.top+window.pageYOffset}else{I.x=v.left+document.documentElement.scrollLeft;I.y=v.top+document.documentElement.scrollTop}v=d.c.parentNode;var L=pui.getActiveContainer();if(v.zc==true){I.x+=parseInt(v.style.left);I.y+=
1178
- parseInt(v.style.top)}else if(L!=null&&L.zc===true){I.x+=L.offsetLeft;I.y+=L.offsetTop}}if(z){var W=pui.layout.sf(d.c.parentNode);I.x+=W.x;I.y+=W.y}var ba={x:0,y:0};if(d.designMode){if(z)ba=W}else{ba.y=I.y;ba.x=I.x}T(document,"mousemove",m);T(document,"mouseup",q);xb(k);if(d.designMode&&d.c.e!=null){d.c.e.moved=false;k=d.c.e.designer;W=k.selection;v="Move Selection";if(W.Qd.length==1)v="Move Grid";if(!(d.h&&u.row==0)){k.aa.start(v);k.aa.gp=true;W.mn(["left","top","parent tab panel","parent tab panel"]);
1177
+ d.dragging=true;d.Hc(function(P){P.gb=pui.Td(P.style.left);P.Da=pui.Td(P.style.top)});var I={x:0,y:0};if(d.designMode){v=pui.Vc(d.c.e.designer.b,true);I.x+=v[0]}else{v=pui.runtimeContainer.getBoundingClientRect();if(typeof window.pageXOffset=="number"){I.x=v.left+window.pageXOffset;I.y=v.top+window.pageYOffset}else{I.x=v.left+document.documentElement.scrollLeft;I.y=v.top+document.documentElement.scrollTop}v=d.c.parentNode;var L=pui.getActiveContainer();if(v.Ac==true){I.x+=parseInt(v.style.left);I.y+=
1178
+ parseInt(v.style.top)}else if(L!=null&&L.Ac===true){I.x+=L.offsetLeft;I.y+=L.offsetTop}}if(z){var W=pui.layout.sf(d.c.parentNode);I.x+=W.x;I.y+=W.y}var ba={x:0,y:0};if(d.designMode){if(z)ba=W}else{ba.y=I.y;ba.x=I.x}T(document,"mousemove",m);T(document,"mouseup",q);xb(k);if(d.designMode&&d.c.e!=null){d.c.e.moved=false;k=d.c.e.designer;W=k.selection;v="Move Selection";if(W.Qd.length==1)v="Move Grid";if(!(d.h&&u.row==0)){k.aa.start(v);k.aa.gp=true;W.mn(["left","top","parent tab panel","parent tab panel"]);
1179
1179
  k.aa.gp=false}}}function ca(k,m){for(var q=[],u=k.firstChild;u!=null;){u.style.position=="absolute"&&!u.So&&q.push(u);u=u.nextSibling}m.innerHTML="";for(var z=0;z<q.length;z++){u=q[z];u.parentNode.removeChild(u);m.appendChild(u)}}function Ya(k,m,q,u){if(d.designMode||u){var z=k[m];if(d.borderWidth!==null&&d.borderWidth<$a){z.style.borderWidth="2px";if(!q)z.style.width=parseInt(z.style.width)+2+"px"}if(!q)z.style.borderTopStyle=ga;if(q)z.style.borderRightStyle=ga;if(q)z.style.cursor="w-resize";if(!q)k[m].style.cursor=
1180
1180
  "n-resize";d.Je();T(z,"mousedown",function(v){function J(S){var aa=pui.rg(S);S=aa.y-W;aa=aa.x-L;if(O=="dspf"&&d.designMode){S=Math.round(S*Hb.Em);aa=Math.round(aa*Hb.Em)}Aa(aa,S,m,q,P,ba);if(!q&&m==k.length-1&&k.length>2&&d.d!=null&&d.d.type=="sliding"){S=S;if(S<-d.la+5)S=-d.la+5;typeof d.d.$k=="function"&&d.d.$k(S)}d.designMode?I.set(d.c.e):d.alignColumnTotals()}function H(){z.dragging=false;d.dragging=false;var S=d.borderWidth;if(S===null||S<$a)S=$a;z.style.borderWidth=S+"px";z.style.borderColor=
1181
1181
  d.borderColor;if(!q)z.style.borderTopStyle=ga;if(q)z.style.borderRightStyle=ga;if(!q&&m==k.length-1&&(m>=2||d.h&&m==1)){S=parseInt(z.style.top);if(d.cells.length>(d.h?2:1)){d.yj();if(S>parseInt(k[k.length-1].style.top)+d.la-3){for(var aa=false;parseInt(k[k.length-1].style.top)<S;){d.$e();aa=true}aa&&d.Ah()}}else d.la=parseInt(k[k.length-1].style.top)-parseInt(k[k.length-2].style.top)}if(d.designMode){d.Vb();d.dc();I.hide()}else{d.alignColumnTotals();if(q&&na){if(d.ma)S=d.rf().split(",").map(function(ha){return Number(ha)});
@@ -1186,10 +1186,10 @@ d.Je();var U=3;if(d.borderWidth>3)U=d.borderWidth;z.style.borderWidth=U+"px";z.s
1186
1186
  q!=H.length-1){d.la=q<H.length-1?parseInt(H[q+1].style.top)-parseInt(H[q].style.top):parseInt(H[q].style.top)-parseInt(H[q-1].style.top);I=m;for(v=q+1;v<H.length;v++){I+=d.la;H[v].style.top=I+"px"}I=m;m=0;if(d.h)m=1;for(v=q-1;v>=m;v-=1){I-=d.la;H[v].style.top=I+"px"}if(d.h)H[0].style.top=parseInt(H[1].style.top)-d.bb+"px"}if(!u&&q==0&&d.h&&H.length>1)d.bb=parseInt(H[1].style.top)-parseInt(H[0].style.top);if(!u&&q==1&&!d.h&&H.length==2)d.la=parseInt(H[q].style.top)-parseInt(H[q-1].style.top);if(q==
1187
1187
  0&&u){d.c.style.left=k+"px";for(I=0;I<d.k.length;I++)d.k[I].style.left=d.c.style.left}if(u&&(H.length-1==q||q==0))Na();else J&&u&&Na();if(!u){Ia();Ja()}if(u&&d.h)d.ma?d.ec(d.ms(d.ga)):d.ec();d.La();V();d.setScrollBar()}function Ia(){d.c.style.top=d.k[0].style.top;for(var k=0;k<d.n.length;k++)d.n[k].style.top=d.c.style.top}function Na(){var k=0;if(d.n.length>0){k=d.borderWidth;if(k===null||k<$a&&d.designMode)k=$a;k=parseInt(d.n[d.n.length-1].style.left)-d.pc("left")+k}for(var m=0;m<d.k.length;m++)d.k[m].style.width=
1188
1188
  k+"px";d.c.style.width=k+"px";if(na&&d.ea()&&d.dataProps["load all rows"]=="true"&&vb.style.display=="block"){d.mask();d.Wb()}}function Ja(){var k=0;if(d.k.length>0)k=parseInt(d.k[d.k.length-1].style.top)-d.pc("top");for(var m=0;m<d.n.length;m++)d.n[m].style.height=k+"px";d.c.style.height=k+"px"}function cb(k,m){var q=document.createElement("div");d.c.appendChild(q);if(!pui.pa&&d.xr!="default")q.style.cursor=d.xr;if(k>0||!d.h)q.style.az="rgba(0,0,0,0)";var u=k==0&&d.h,z=k%2==1;if(d.h)z=!z;if(u)if(m<
1189
- d.columnHeadings.length)q.innerHTML="<div"+(d.Nc?' class="qf"':"")+' style="'+e()+'">'+d.columnHeadings[m]+"</div>";d.designMode&&jb(q,u,z,m);q.onmouseover=function(v){if(!d.dragging){d.h||Q("onrowmouseover",k+1,null,v,m);d.h&&k!=0&&Q("onrowmouseover",k,null,v,m);if(d.Ko)if(!(pui.is_touch&&!pui.is_mouse_capable&&!d.designMode||pui.pa))if(!(k==0&&d.h)){v=d.cells[k];var J=ce(d,k);d.$c(k,true,J);if(d.gu&&!d.expanded&&(k>0||!d.h)){v=v[0];if(d.Eb==null){d.Eb=document.createElement("img");d.Eb.setAttribute("isZoomIcon",
1189
+ d.columnHeadings.length)q.innerHTML="<div"+(d.Oc?' class="qf"':"")+' style="'+e()+'">'+d.columnHeadings[m]+"</div>";d.designMode&&jb(q,u,z,m);q.onmouseover=function(v){if(!d.dragging){d.h||Q("onrowmouseover",k+1,null,v,m);d.h&&k!=0&&Q("onrowmouseover",k,null,v,m);if(d.Ko)if(!(pui.is_touch&&!pui.is_mouse_capable&&!d.designMode||pui.pa))if(!(k==0&&d.h)){v=d.cells[k];var J=ce(d,k);d.$c(k,true,J);if(d.gu&&!d.expanded&&(k>0||!d.h)){v=v[0];if(d.Eb==null){d.Eb=document.createElement("img");d.Eb.setAttribute("isZoomIcon",
1190
1190
  "true");d.Eb.src=pui.normalizeURL("/profoundui/proddata/images/icons/zoom_in.png");d.Eb.style.position="absolute";d.Eb.style.top="6px";d.Eb.style.left="3px";if(!pui.pa)d.Eb.style.cursor="pointer"}if(d.Eb.parentNode!=v){d.Eb.parentNode!=null&&d.Eb.parentNode.removeChild(d.Eb);v.appendChild(d.Eb)}d.Eb.style.display="";d.Eb.onclick=function(H){d.rowZoom(d.cells[k]);xb(H)}}}}};q.onmouseout=function(v){d.h||Q("onrowmouseout",k+1,null,v,m);d.h&&k!=0&&Q("onrowmouseout",k,null,v,m);if(!(k==0&&d.h)){v=ce(d,
1191
1191
  k);d.$c(k,false,v)}};q.onmousedown=function(v){if(pui.ze(v))if(!d.designMode){var J=function(S){if(!S)S=window.event;S.preventDefault&&S.preventDefault();S.stopPropagation&&S.stopPropagation();S.cancelBubble=true;S.returnValue=false;document.body.oncontextmenu=null;return false};if(d.h&&k==0){if(d.Xb==null){d.Xb=new pui.Eu;d.Xb.grid=d;d.Xb.init()}d.Xb.Rc=q;d.Xb.clickEvent=v?v:window.event;d.Xb.show();document.body.oncontextmenu=J}else{var H;if(d.Dd)H=Eb(d.Dd);if(H!=null){H.Rj=true;document.body.oncontextmenu=
1192
- J;q.onclick(v);if(v.Dw&&v.Dw()||v.cancelBubble){H.Rj=false;d.Oi()}else{J=pui.xo(v);var I=pui.os(v),L={x:0,y:0},W=pui.Vc(pui.runtimeContainer);if(O=="genie")W=pui.Vc(pui.getActiveContainer());var ba=H.parentNode;if(ba!=null&&ba.tagName=="FORM")ba=ba.parentNode;if(ba!=null){if(O=="dspf"&&ba.getAttribute("container")=="true"){var P=pui.Vc(ba);L.x=P[0];L.y=P[1]}else if(ba.zc){L.x=ba.offsetLeft;L.y=ba.offsetTop}L.x+=W[0];L.y+=W[1];J-=L.x;I-=L.y}if(pui.is_touch&&!pui.is_mouse_capable){J-=H.clientWidth/
1192
+ J;q.onclick(v);if(v.Dw&&v.Dw()||v.cancelBubble){H.Rj=false;d.Oi()}else{J=pui.xo(v);var I=pui.os(v),L={x:0,y:0},W=pui.Vc(pui.runtimeContainer);if(O=="genie")W=pui.Vc(pui.getActiveContainer());var ba=H.parentNode;if(ba!=null&&ba.tagName=="FORM")ba=ba.parentNode;if(ba!=null){if(O=="dspf"&&ba.getAttribute("container")=="true"){var P=pui.Vc(ba);L.x=P[0];L.y=P[1]}else if(ba.Ac){L.x=ba.offsetLeft;L.y=ba.offsetTop}L.x+=W[0];L.y+=W[1];J-=L.x;I-=L.y}if(pui.is_touch&&!pui.is_mouse_capable){J-=H.clientWidth/
1193
1193
  2;H.onselectstart=ta(false);if(typeof H.style.MozUserSelect!="undefined")H.style.MozUserSelect="none";if(typeof H.style.webkitUserSelect!="undefined")H.style.webkitUserSelect="none"}H.style.zIndex=d.Ir;if(typeof H.onoptiondisplay=="function"){L=k;d.h||(L+=1);if(d.j!=null&&!isNaN(d.j)&&d.j>0){L=L;L+=d.j-1;P=L;var U=d.dataArray;if(d.isFiltered())U=d.X;if(U[L-1]!=null&&U[L-1].o!=null)L=U[L-1].o;H.onoptiondisplay(L,L,P,m,d);H.v.w()}}H.style.visibility="";H.style.display="";P=document.documentElement;
1194
1194
  L=document.documentElement.clientWidth+((window.pageXOffset||P.scrollLeft)-(P.clientLeft||0))-H.clientWidth-10-W[0];W=document.documentElement.clientHeight+((window.pageYOffset||P.scrollTop)-(P.clientTop||0))-H.clientHeight-10-W[1];if(ba!=null&&O=="dspf"&&ba.getAttribute("container")=="true"){L=ba.offsetWidth-H.clientWidth;W=ba.offsetHeight-H.clientHeight}if(J>L)J=L;if(I>W)I=W;if(J<0)J=0;if(I<0)I=0;H.style.left=J+"px";H.style.top=I+"px";xb(v);v!=null&&v.stopPropagation!=null&&v.stopPropagation();
1195
1195
  setTimeout(function(){H.Rj=false},250);return false}}}}};pui.Ry(q,function(v){v.button=3;q.onmousedown(v)});q.onclick=function(v){var J=wb(v);if(!J.Vv){d.Jp=k;d.Nn=m;d["row clicked"]=d.Jp;d["column clicked"]=d.Nn;var H=pui.ze(v);if(J.tagName!="INPUT"&&J.tagName!="SELECT"&&J.tagName!="OPTION"&&J.tagName!="BUTTON"){d.h||Q("onrowclick",k+1,H,v,m);d.h&&k!=0&&Q("onrowclick",k,H,v,m)}if(!d.designMode){d.em(k);var I=(J.tagName=="INPUT"||J.tagName=="SELECT"||J.tagName=="BUTTON")&&!J.disabled&&!J.readOnly,
@@ -1205,31 +1205,31 @@ if(m!="INPUT"&&m!="TEXTAREA"&&m!="SELECT")return false;if(m=="SELECT"&&pui.is_fi
1205
1205
  v.split(",");if(J.length>1){m=u==="header font color"||u==="header background"?k.A:m;v=m<J.length?J[m]:J[0]}if(v==""){if(u.substr(0,7)=="header ")z=u.substr(7);if(d.gf[u]!=null)v=d.gf[u];else if(d.gf[z]!=null)v=d.gf[z]}try{k.style[q]=v}catch(H){}}}function jb(k,m,q,u){ma(k,u,"fontFamily",m?"header font family":"font family");ma(k,u,"fontSize",m?"header font size":"font size");ma(k,u,"fontStyle",m?"header font style":"font style");ma(k,u,"fontVariant","font variant");ma(k,u,"fontWeight",m?"header font weight":
1206
1206
  "font weight");ma(k,u,"letterSpacing","letter spacing");ma(k,u,"textAlign",m?"header text align":"text align");ma(k,u,"textDecoration","text decoration");ma(k,u,"textTransform","text transform");ma(k,u,"wordSpacing","word spacing");var z=d.designMode&&d.H["row font color"]!=null&&d.H["row font color"]!=""&&!pui.p(d.H["row font color"]),v=d.designMode&&d.H["row background"]!=null&&d.H["row background"]!=""&&!pui.p(d.H["row background"]);ma(k,u,"color",m?"header font color":z?"row font color":q?"even row font color":
1207
1207
  "odd row font color");ma(k,u,"backgroundColor",m?"header background":v?"row background":q?"even row background":"odd row background");u="";if(m){m=d.H["header image"];if(m!=null&&m!=""){k.style.backgroundImage="url('"+pui.normalizeURL(m,true)+"')";k.style.backgroundRepeat="repeat-x"}else{k.style.backgroundImage="";k.style.backgroundRepeat=""}u="cell header-cell"}else{k.style.backgroundImage="";k.style.backgroundRepeat="";u="cell";u+=q?" even":" odd"}k.className=u}function qa(k,m){var q=d.cells[k],
1208
- u=false;if(d.n.length-2==m)u=true;if(k==0&&d.h)u=false;q=q[m];q.style.top=parseInt(d.k[k].style.top)-d.pc("top")+"px";q.style.left=parseInt(d.n[m].style.left)-d.pc("left")+"px";q.style.height=parseInt(d.k[k+1].style.top)-parseInt(d.k[k].style.top)+"px";var z=parseInt(d.n[m+1].style.left)-parseInt(d.n[m].style.left);if(u&&(d.Jf||d.Bc))pui.is_touch&&!pui.is_mouse_capable&&!d.designMode||pui.pa||d.h&&d.cells.length==2||!d.h&&d.cells.length==1||(z-=16);if(z<0)z=0;q.style.width=z+"px"}function Sa(k,m,
1209
- q,u,z,v,J){if(m==null)m=99;if(q==null)q=1;var H=null;if(pui.secLevel>0){H=pui.ld(d.dataProps);d.Kc="";if(d.isFiltered()&&d.dataProps["load all rows"]!="true")for(var I=d.cells[0],L=0,W=0;W<I.length;W++){var ba=I[W];if(ba.A>=0&&ba.sa!=null){d.Kc+="&fltrcol"+String(L)+"="+(ba.A+1);d.Kc+=d.wt(String(L),ba.sa);H+=d.Kc;L++}}if(qc!=null&&rc!=null){H+="&findcol="+qc;H+="&findval="+encodeURIComponent(rc)}if(d.dataProps["data url"]!=null&&d.dataProps["data url"]!=""&&d.Cb!=null)H+="&order="+d.Cb}if(J){if(pui.Oa==
1208
+ u=false;if(d.n.length-2==m)u=true;if(k==0&&d.h)u=false;q=q[m];q.style.top=parseInt(d.k[k].style.top)-d.pc("top")+"px";q.style.left=parseInt(d.n[m].style.left)-d.pc("left")+"px";q.style.height=parseInt(d.k[k+1].style.top)-parseInt(d.k[k].style.top)+"px";var z=parseInt(d.n[m+1].style.left)-parseInt(d.n[m].style.left);if(u&&(d.Jf||d.Cc))pui.is_touch&&!pui.is_mouse_capable&&!d.designMode||pui.pa||d.h&&d.cells.length==2||!d.h&&d.cells.length==1||(z-=16);if(z<0)z=0;q.style.width=z+"px"}function Sa(k,m,
1209
+ q,u,z,v,J){if(m==null)m=99;if(q==null)q=1;var H=null;if(pui.secLevel>0){H=pui.ld(d.dataProps);d.Lc="";if(d.isFiltered()&&d.dataProps["load all rows"]!="true")for(var I=d.cells[0],L=0,W=0;W<I.length;W++){var ba=I[W];if(ba.A>=0&&ba.sa!=null){d.Lc+="&fltrcol"+String(L)+"="+(ba.A+1);d.Lc+=d.wt(String(L),ba.sa);H+=d.Lc;L++}}if(qc!=null&&rc!=null){H+="&findcol="+qc;H+="&findval="+encodeURIComponent(rc)}if(d.dataProps["data url"]!=null&&d.dataProps["data url"]!=""&&d.Cb!=null)H+="&order="+d.Cb}if(J){if(pui.Oa==
1210
1210
  null)pui.Oa={};if(pui.Oa[q]==null)pui.Oa[q]={};if(pui.Oa[q].sql===k&&pui.Oa[q].Kx===H&&pui.Oa[q].ll===m&&pui.Oa[q].$v===v){d.unMask();if(u!=null){u(pui.Oa[q].results,pui.Oa[q].totalRecs,pui.Oa[q].matchRow);return}else return pui.Oa.results}}var P=null;I=Vb("PUI0009102.PGM");if(v)I=pui.cf(v);I=new pui.Ajax(I);I.method="post";I.async=true;if(u==null)I.async=false;I.postData=pui.ba?"AUTH="+pui.ba:"AUTH="+pui.appJob.auth;if(pui.secLevel>0){I.postData+="&q="+encodeURIComponent(pui.Wc(d.c));L=d.dataProps["order by"];
1211
1211
  if(d.Cb!=null)L=d.Cb;if(L&&L!="")I.postData+="&order="+L;else if(Lb()=="mssql")I.postData+="&order=(select null)";if(H!="")I.postData+="&"+H}else I.postData+="&q="+pui.xb.lf(k);I.postData+="&limit="+m+"&start="+q;if(z!=null&&z==true)I.postData+="&getTotal=1";if(pui["read db driven data as ebcdic"]!==true)I.postData+="&UTF8=Y";z=d.dataProps["allow any select statement"];if(z!=null&&(z=="true"||z==true))I.postData+="&FetchCounter=Y";if(pui.isCloud)I.postData+="&workspace_id="+pui.cloud.ws.id;I.onready=
1212
- function(U){d.dataProps["load fields into widgets"]!="true"&&d.unMask();var S,aa=false;if(d.dataProps["data transform function"]&&U.tf()==200)try{S=eval("window."+d.dataProps["data transform function"])(U.xc())}catch(Y){pui.Zo(Y)}else S=Jb(U,"Run SQL SELECT Query");if(S){if(J){if(pui.Oa[q]==null)pui.Oa[q]={};pui.Oa[q].sql=k;pui.Oa[q].ll=m;pui.Oa[q].start=q;pui.Oa[q].$v=v;pui.Oa[q].results=S.results;pui.Oa[q].totalRecs=S.totalRecs;pui.Oa[q].Kx=H;pui.Oa[q].matchRow=S.matchRow}if(u!=null)u(S.results,
1213
- S.totalRecs,S.matchRow);else P=S.results;aa=true}jd&&pui.mf(jd,aa,d.c.id);d.Oc=false};d.Oc=true;I.send();if(u==null)return P}function Ba(k){var m=-1;if(d.cells!=null&&d.cells[0]!=null)for(var q=0;q<d.cells[0].length;q++)if(d.cells[0][q]!=null&&d.cells[0][q].A==k){m=d.cells[0][q].col;break}return m}function lb(k){for(var m=[],q=0;q<d.da.length;q++){var u=k[d.da[q]];u||(u="");m.push(u)}return m}function Xa(k,m){function q(W){var ba=String(W.A+1);if(ba.length>3)ba="000";else for(;ba.length<3;)ba="0"+
1212
+ function(U){d.dataProps["load fields into widgets"]!="true"&&d.unMask();var S,aa=false;if(d.dataProps["data transform function"]&&U.tf()==200)try{S=eval("window."+d.dataProps["data transform function"])(U.yc())}catch(Y){pui.Zo(Y)}else S=Jb(U,"Run SQL SELECT Query");if(S){if(J){if(pui.Oa[q]==null)pui.Oa[q]={};pui.Oa[q].sql=k;pui.Oa[q].ll=m;pui.Oa[q].start=q;pui.Oa[q].$v=v;pui.Oa[q].results=S.results;pui.Oa[q].totalRecs=S.totalRecs;pui.Oa[q].Kx=H;pui.Oa[q].matchRow=S.matchRow}if(u!=null)u(S.results,
1213
+ S.totalRecs,S.matchRow);else P=S.results;aa=true}jd&&pui.mf(jd,aa,d.c.id);d.sc=false};d.sc=true;I.send();if(u==null)return P}function Ba(k){var m=-1;if(d.cells!=null&&d.cells[0]!=null)for(var q=0;q<d.cells[0].length;q++)if(d.cells[0][q]!=null&&d.cells[0][q].A==k){m=d.cells[0][q].col;break}return m}function lb(k){for(var m=[],q=0;q<d.da.length;q++){var u=k[d.da[q]];u||(u="");m.push(u)}return m}function Xa(k,m){function q(W){var ba=String(W.A+1);if(ba.length>3)ba="000";else for(;ba.length<3;)ba="0"+
1214
1214
  ba;W=W.sa.substring(0,d.nf);if(W.length<d.nf)W+=" ".repeat(d.nf-W.length);z+=ba;v+=W;J++}var u=d.cells[0];if(!(typeof k.col!="number"||k.col<0||k.col>=u.length)){if(typeof m!="string")m="";var z="",v="",J=0;k.sa=m;m.length>0&&q(k);for(var H=0;H<u.length&&J<d.pe;H++){var I=u[H].A,L=u[H].sa;typeof I=="number"&&I>=0&&I!=k.A&&typeof L=="string"&&L.length>0&&q(u[H])}rb(z,v)}}function rb(k,m){if(k.length<3*d.pe)k+=" ".repeat(3*d.pe-k.length);d.og=k+m;pui.Qk=d;pui.bc();pui.Qk=null}function sb(k){if(k==null||
1215
1215
  k=="")if(d.og!=null&&d.og!="")k=d.og;else return;var m=d.cells[0];d.og=k;for(var q=0;q<d.pe;q++){var u=k.substring(q*3,q*3+3);u=parseInt(u,10);var z=q*d.nf+3*d.pe;z=k.substring(z,z+d.nf);z=Ob(z);if(!isNaN(u)&&u>0&&z!=""){u-=1;for(var v=0;v<m.length;v++)if(m[v].A==u){m[v].sa=z;d.gm(m[v]);break}}else break}}function mb(){for(var k=d.cells.length,m=d.cells[0].length,q=0;q<k;q++)for(var u=0;u<m;u++)d.c.appendChild(d.cells[q][u])}function Lb(){var k=pui.getDatabaseConnections();if(k)for(var m=Kb(d.dataProps["database connection"]||
1216
1216
  ""),q=0;q<k.length;q++){var u=k[q];if(m===""&&u["default"]===true||m===u.name)return u.driver}else if(typeof pui.dbDriver!=="undefined")return pui.dbDriver}pui.Zh.call(this);if(pui.designer.Cu!=null){this.mg=new pui.designer.Cu;this.mg.ww=true}else{this.mg={};this.mg.ww=true;this.mg.ez=la();this.mg.qA=la();this.mg.nA=la();this.mg.pA=la()}this.xi=true;this.N=[];this.Aa=false;this.ref={};this.Wa="";this.n=[];this.k=[];this.c=null;this.Xc="";this.cells=[];this.b=null;this.borderColor="";this.borderWidth=
1217
- null;this.xr="default";this.Mp="row number";this.Qr=75;this.la=26;this.bb=30;this.h=true;this.gc=this.sortable=this.Nc=false;this.Cb=null;this.Kb=0;this.Ko=false;if(O=="dspf"||pui.fa)this.Ko=true;this.Jf=true;this.Bc=false;if(O=="dspf"||pui.fa){this.Jf=false;this.Bc=true}this.zh=100;this.Nn=this.Jp=0;this.Ne=this.ku=false;this.i=new pui.bi;this.visibility="";this.columnHeadings=[];this.ga=[];this.jq={};this.vA=null;this.H={};this.H["font family"]="Verdana";this.H["font size"]="13px";this.H["text align"]=
1217
+ null;this.xr="default";this.Mp="row number";this.Qr=75;this.la=26;this.bb=30;this.h=true;this.gc=this.sortable=this.Oc=false;this.Cb=null;this.Kb=0;this.Ko=false;if(O=="dspf"||pui.fa)this.Ko=true;this.Jf=true;this.Cc=false;if(O=="dspf"||pui.fa){this.Jf=false;this.Cc=true}this.zh=100;this.Nn=this.Jp=0;this.Ne=this.ku=false;this.i=new pui.bi;this.visibility="";this.columnHeadings=[];this.ga=[];this.jq={};this.vA=null;this.H={};this.H["font family"]="Verdana";this.H["font size"]="13px";this.H["text align"]=
1218
1218
  "center";this.H["header font color"]="#ffffff";this.H["header background"]="#6699ff";this.H["header image"]="";this.H["header font weight"]="bold";this.H["header font style"]="normal";this.H["row font color"]="";this.H["row background"]="";this.H["odd row font color"]="#555555";if(O=="genie")this.H["odd row font color"]="";this.H["odd row background"]="#efefef";this.H["even row font color"]="#555555";if(O=="genie")this.H["even row font color"]="";this.H["even row background"]="#fcfcfc";this.H["hover font color"]=
1219
1219
  "#555555";this.H["hover background"]="#dfe8f6";this.H["hover image"]="";this.H["selection font color"]="#ffffff";this.H["selection background"]="#6699cc";this.H["selection image"]="";this.gf={};for(var bb in this.H)this.gf[bb]=this.H[bb];this.dataProps={};this.kj={};this.mo={};this.fo=this.dragging=this.Cf=this.designMode=false;this.Mw=96;this.ky=this.$y=97;this.Uw=99;this.Ir=100;this.iy=701;this.bt=702;this.Yr=this.totalRecs=this.d=null;this.It=this.ma=this.rl=this.rw=this.Gi=this.qo=this.mh=this.Ok=
1220
1220
  false;this.oo=null;this.Di=this.singleSelection=this.Ud=this.co=false;this.ve=this.Nb=this.we=this.Bb=null;this.ug=this.uu=false;this.Oe=this.Sf=null;this.vm="_____puiButtonToggleTreeLevel";this.Zl=this.Vk=this.jl=null;this.Mh="1";this.Lh=null;this.nf=20;this.pe=3;this.Bj=this.Aj=this.Dj=this.Cj=this.og=null;this.expanded=true;this.bl=this.al=null;this.oc=1;this.gu=false;this.qj=this.po=null;this.Bi=[];this.yg=this.Pi=this.Nf=this.Ei=this.Mn=this.Qi=this.yf=null;this.Ls=[];this.Dd=null;this.Or=false;
1221
- this.Lo=1;this.$a=new pui.Km(pui.runtimeContainer,this);this.Pk=null;this.Y={A:0,col:0,text:""};this.Ll=false;this.gs=Ba;this.Rt=false;this.Wd=this.Mb=null;this.iv=Ia;this.hv=Ja;this.dv=V;this.Oc=this.ut=this.tt=this.Qs=false;var d=this,gb,db,hb,X,fa,pa,va,Ma,$a=1,ga="solid",na=false,ra=false,eb=false,ib=false,qb=false,Pa,Ic,oc,ub,Pb,Ta,Ab=null,vb=null,Nb=null,ae=false,gd=false,be=false,rc,qc,sc,jd=null,Qa=[],Ua=null,Ra=null;this.ko=function(){var k;d.designMode=true;d.c.destroy=d.destroy;if(d.d!=
1221
+ this.Lo=1;this.$a=new pui.Km(pui.runtimeContainer,this);this.Pk=null;this.Y={A:0,col:0,text:""};this.Ll=false;this.gs=Ba;this.Rt=false;this.Wd=this.Mb=null;this.iv=Ia;this.hv=Ja;this.dv=V;this.sc=this.ut=this.tt=this.Qs=false;var d=this,gb,db,hb,X,fa,pa,va,Ma,$a=1,ga="solid",na=false,ra=false,eb=false,ib=false,qb=false,Pa,Ic,oc,ub,Pb,Ta,Ab=null,vb=null,Nb=null,ae=false,gd=false,be=false,rc,qc,sc,jd=null,Qa=[],Ua=null,Ra=null;this.ko=function(){var k;d.designMode=true;d.c.destroy=d.destroy;if(d.d!=
1222
1222
  null)d.d.designMode=true;for(k=0;k<d.n.length;k++)Ya(d.n,k,true);for(k=0;k<d.k.length;k++)Ya(d.k,k,false);for(k=0;k<d.cells.length;k++)for(var m=0;m<d.cells[k].length;m++)da(d.cells[k][m]);if(gb==null){gb=Z("plus","Add New Row");gb.onclick=function(){var q=d.c.e;q.designer.aa.start("Add Grid Row");q.designer.aa.add(q,"number of rows");d.$e();d.Ah();d.Vb();d.Je()}}if(db==null){db=Z("minus","Remove Row");db.onclick=function(){if(d.cells.length>(d.h?2:1)){var q=d.c.e;q.designer.aa.start("Remove Grid Row");
1223
1223
  q.designer.aa.add(q,"number of rows");d.yj();d.Vb();d.Je()}}}if(hb==null){hb=Z("plus","Add New Column");hb.onclick=function(){var q=d.c.e;if(q.properties["number of columns"]>d.zh)pui.alert("Maximum number of columns reached.");else{q.designer.aa.start("Add Grid Column");q.designer.aa.add(q,"column widths");q.designer.aa.add(q,"number of columns");d.jn();d.La();d.Vb();d.Je()}}}if(X==null){X=Z("minus","Remove Column");X.onclick=function(){var q=d.n.length-2;if(!(q<1))if(d.Fo(q)){q=d.qx(q);q!=null&&
1224
1224
  pui.alert("The column cannot be removed because it contains other elements that must be removed first.\n\nTo remove column elements, go to the Elements tab. Then, search the element list for the ID(s) listed below:\n"+q.join("\n")+"\n\nSelect each element and click the Remove Element icon.")}else{q=d.c.e;q.designer.aa.start("Remove Grid Column");q.designer.aa.add(q,"column widths");q.designer.aa.add(q,"number of columns");q.designer.aa.add(q,"column headings");d.Ap();d.Vb();d.Je()}}}if(fa==null)fa=
1225
- c("nw");if(pa==null)pa=c("ne");if(va==null)va=c("sw");if(Ma==null)Ma=c("se");d.c.qz=function(){if(d.designMode){if(fa!=null)fa.style.visibility="";if(pa!=null)pa.style.visibility="";if(va!=null)va.style.visibility="";if(Ma!=null)Ma.style.visibility=""}};d.c.Nr=function(){if(fa!=null)fa.style.visibility="hidden";if(pa!=null)pa.style.visibility="hidden";if(va!=null)va.style.visibility="hidden";if(Ma!=null)Ma.style.visibility="hidden"};d.clearData();d.visibility=="hidden"&&d.Gc(function(q){q.style.visibility=
1225
+ c("nw");if(pa==null)pa=c("ne");if(va==null)va=c("sw");if(Ma==null)Ma=c("se");d.c.qz=function(){if(d.designMode){if(fa!=null)fa.style.visibility="";if(pa!=null)pa.style.visibility="";if(va!=null)va.style.visibility="";if(Ma!=null)Ma.style.visibility=""}};d.c.Nr=function(){if(fa!=null)fa.style.visibility="hidden";if(pa!=null)pa.style.visibility="hidden";if(va!=null)va.style.visibility="hidden";if(Ma!=null)Ma.style.visibility="hidden"};d.clearData();d.visibility=="hidden"&&d.Hc(function(q){q.style.visibility=
1226
1226
  ""});if(O=="genie"&&d.Dd!=null)if(k=Eb(d.Dd)){k.style.visibility="";k.style.display=""}V();d.setScrollBar();d.i.Bv(da);d.dc()};this.Vb=function(k){var m;if(!k)if(d.designMode&&Hb.yh)return;if(d.kd){m=d.c.parentNode;if(m.getAttribute("container")=="true"){k=m.offsetHeight;var q=m.offsetWidth;if(k===0&&q===0&&m.parentNode&&m.parentNode.classList.contains("pui-tablayout-body")){k=m.parentNode.offsetHeight-2;q=m.parentNode.offsetWidth-2}var u=d.rf().split(","),z=0;for(m=0;m<u.length;m++){var v=u[m];v=
1227
- Number(v);u[m]=v;z+=v}q=(q-z)/u.length;q=parseInt(q);for(m=0;m<u.length;m++)u[m]+=q;d.Pf(u);if(d.h)k-=d.bb;if(d.i)k-=d.i.getHeight();k=k/d.la;if(d.h)k+=1;k=parseInt(k);if(k<1)k=1;d.co=true;d.setNumberOfRows(k);d.co=false;var J=parseInt(d.c.style.left),H=parseInt(d.c.style.top);d.Gc(function(I){I.style.left=parseInt(I.style.left)-J+"px";I.style.top=parseInt(I.style.top)-H+"px"});d.setScrollBar();d.ec()}}};this.Ns=function(){if(d.oc<=1)return false;var k=d.al;if(d.bl==true)k=false;if(d.al==null&&d.bl==
1227
+ Number(v);u[m]=v;z+=v}q=(q-z)/u.length;q=parseInt(q);for(m=0;m<u.length;m++)u[m]+=q;d.Pf(u);if(d.h)k-=d.bb;if(d.i)k-=d.i.getHeight();k=k/d.la;if(d.h)k+=1;k=parseInt(k);if(k<1)k=1;d.co=true;d.setNumberOfRows(k);d.co=false;var J=parseInt(d.c.style.left),H=parseInt(d.c.style.top);d.Hc(function(I){I.style.left=parseInt(I.style.left)-J+"px";I.style.top=parseInt(I.style.top)-H+"px"});d.setScrollBar();d.ec()}}};this.Ns=function(){if(d.oc<=1)return false;var k=d.al;if(d.bl==true)k=false;if(d.al==null&&d.bl==
1228
1228
  false)k=true;if(k==null)k=false;return k};this.vu=function(k){var m=d.cells.length;if(d.h)m-=1;if(d.Ns())m*=d.oc;d.j=parseInt((k-1)/m)*m+1};this.dx=function(){if(d.Sf===null)return false;var k=d.su;if(k===undefined)k=false;return k};this.collapse=function(k){if(d.expanded)if(!(d.oc<=1)){if(d.Sa!=null)d.Sa.style.display="none";d.expanded=false;var m=d.cells.length;if(d.h)m-=1;m*=d.oc-1;if(!d.Ne){d.setProperty("row height",parseInt(d.la/d.oc));for(var q=0;q<m;q++)d.$e();d.La();d.rd();d.getData();for(m=
1229
1229
  0;m<d.cells.length;m++)for(q=0;q<d.cells[m].length;q++){var u=d.cells[m][q],z=u.firstChild,v=parseInt(u.style.height);if(!isNaN(v)){for(;z!=null;){var J=parseInt(z.style.top);if(isNaN(J))J=0;if(J>v&&(z.tagName=="INPUT"||z.tagName=="SELECT"||z.tagName=="TEXTAREA")&&!z.disabled){z.wp=true;z.disabled=true}z=z.nextSibling}u.scrollTop=0}}}if(k!=null&&k.tagName=="IMG"){k.src=pui.normalizeURL("/profoundui/proddata/images/icons/expandall.gif");k.title=pui.getLanguageText("runtimeText","expandAll")}}};this.expand=
1230
1230
  function(k){var m;if(!d.expanded)if(!(d.oc<=1)){if(d.Sa!=null)d.Sa.style.display="none";d.expanded=true;var q=d.cells.length;if(d.h)q-=1;q=parseInt(q/d.oc);q*=d.oc-1;if(!d.Ne){d.setProperty("row height",d.la*d.oc);for(m=0;m<q;m++)d.yj();d.La();d.rd();d.getData();for(m=0;m<d.N.length;m++)if(q=d.N[m].domEls)for(var u in q)if(!isNaN(parseInt(u,10))){var z=q[u];if(z.wp){z.wp=false;z.disabled=false}}}if(k!=null&&k.tagName=="IMG"){k.src=pui.normalizeURL("/profoundui/proddata/images/icons/collapseall.gif");
1231
1231
  k.title=pui.getLanguageText("runtimeText","collapseAll")}}};this.toggle=function(k){d.expanded?d.collapse(k):d.expand(k)};this.yA=la();this.rowZoom=function(k){if(!(O!="dspf"&&!pui.fa)){if(typeof k=="number"){k=k-d.j;d.h&&k++;k=d.cells[k];if(k==null)return}if(d.Sa==null){d.Sa=document.createElement("div");d.Sa.style.height=d.la*d.oc+"px";d.Sa.style.zIndex=d.iy;d.Sa.style.left=parseInt(d.c.style.left)+"px";d.Sa.onclick=function(){d.Sa.style.display="none"};d.Sa.onmouseout=function(J){J=J?J.relatedTarget:
1232
- event.toElement;try{if(J!=null&&J.parentNode!=null){if(J.parentNode==d.Sa)return;if(J.parentNode.parentNode==d.Sa)return}}catch(H){}d.Sa.style.display="none"};d.c.parentNode.appendChild(d.Sa)}var m=parseInt(d.c.style.width);if(d.Bc||d.Jf)m-=21;d.Sa.style.width=m+"px";d.Sa.innerHTML="";d.Sa.className=d.c.className;d.Sa.classList.add("zoomrow");d.Sa.style.top=parseInt(d.c.style.top)+parseInt(k[0].style.top)-parseInt(d.la*(d.oc-1)/2)+"px";for(m=0;m<k.length;m++){var q=k[m].cloneNode(true);q.style.top=
1232
+ event.toElement;try{if(J!=null&&J.parentNode!=null){if(J.parentNode==d.Sa)return;if(J.parentNode.parentNode==d.Sa)return}}catch(H){}d.Sa.style.display="none"};d.c.parentNode.appendChild(d.Sa)}var m=parseInt(d.c.style.width);if(d.Cc||d.Jf)m-=21;d.Sa.style.width=m+"px";d.Sa.innerHTML="";d.Sa.className=d.c.className;d.Sa.classList.add("zoomrow");d.Sa.style.top=parseInt(d.c.style.top)+parseInt(k[0].style.top)-parseInt(d.la*(d.oc-1)/2)+"px";for(m=0;m<k.length;m++){var q=k[m].cloneNode(true);q.style.top=
1233
1233
  "0px";q.style.height=parseInt(d.Sa.style.height)+2+"px";if(!pui.pa)q.style.cursor="pointer";for(var u=0;u<q.childNodes.length;u++){var z=q.childNodes[u];if(z.getAttribute("isZoomIcon")=="true")z.style.display="none";if(z.tagName=="INPUT"){var v=z.className;if(v==null)v=null;v+=" PR";z.className=Kb(v);z.readOnly=true}if(z.tagName=="SELECT")z.disabled=true}d.Sa.appendChild(q)}d.Sa.style.display=""}};this.exportXLSX=function(k){return d.exportCSV(k,true)};this.exportCSV=function(k,m){var q,u,z,v,J,H,
1234
1234
  I,L,W,ba;if(!d.i.Wh&&(pui["csv exports xlsx"]===true||pui["csv exports xlsx"]==="true"))m=true;var P;if(typeof pui["csv separator"]=="string")P=pui["csv separator"];else{P=",";if(pui.appJob!=null&&(pui.appJob.decimalFormat=="I"||pui.appJob.decimalFormat=="J"))P=";"}var U='"';if(typeof pui["csv string delimiter"]=="string")U=pui["csv string delimiter"];if(!d.designMode){if(k==null)k=d.Yr;if(k==null||k=="")k=d.c.id;if(d.ea()&&d.Aa==false)m?d.pw(k):d.getData(k);else if(O=="genie"&&!pui.fa)pui.alert('In 5250 mode, the "csv export" feature requires an SQL-driven subfile.');
1235
1235
  else{k=encodeURIComponent(k);var S=[],aa=[],Y=[],ha=[],sa=[],Ha=[],ja=[],oa=[],Ea=[];K();W=d.n.length-1;if(d.ma&&!d.mh)W=d.ga.length;for(H=0;H<W;H++){S.push(-1);aa.push(false);Y.push(false);ha.push(false);sa.push(false);Ha.push(false);ja.push(false);oa.push(-1);Ea.push(null)}var Ka=0;H=0;for(W=d.N.length;H<W;H++){var wa=d.N[H];if(wa.visibility!="hidden"){q=Number(wa.column);if(!isNaN(q)&&q>=0&&q<S.length&&S[q]==-1){Ea[q]=wa;if(pui.p(wa.visibility))ha[q]=wa.visibility;I=wa.value;if(wa["radio button group"])I=
@@ -1239,13 +1239,13 @@ width:wa.domEls[v].offsetWidth};break}}else if(wa["field type"]=="hyperlink")if(
1239
1239
  Oa.Pf(La);La=new pui.mq;for(H=Ka=0;H<S.length;H++)if(S[H]>-1){mc(Oa,sa[H],Ka);Ka++}}ba=0;if(d.h&&d.Ok){m&&lc(Oa);for(H=0;H<S.length;H++){I=S[H];if(I>-1){v="";v=d.ma&&!d.mh?J[H]:Nc(d.cells[0][H]);v=v.replace(/<br>/g," ");m&&nc(Oa,Ob(v),ba++);v=v.replace(/"/g,'""');v=v.replace("\n","");v=v.replace("\r","");if(oa!="")oa+=P;oa+=U+v+U}}if(m)Oa.sh=d.bb}oa="\ufeff"+oa;J=d.dataArray;if(d.isFiltered())J=d.X;H=0;for(W=J.length;H<W;H++){Ka="";wa=J[H];if(!(wa.rc!=null&&wa.rc==true)){z={};if(wa==null||wa.length==
1240
1240
  0)z.empty=true;else for(v=0;v<d.da.length;v++)z[d.da[v]]=wa[v];m&&lc(Oa);v=ba=0;for(L=S.length;v<L;v++){I=S[v];if(I>-1){I=wa[I];if(ja[v]!=null&&ja[v].value!=null)I=ja[v].value;if(Y[v]&&(d.dataProps==null||d.dataProps["load fields into widgets"]!=="true"))I=pui.formatting.fh(I);if(!m&&aa[v]&&pui.appJob!=null&&(pui.appJob.decimalFormat=="I"||pui.appJob.decimalFormat=="J")){if(typeof I!=="string")I=String(I);I=I.replace(".",",")}ya=sa[v];if(typeof ya==="object"&&ya!==null){var ab=ya.formatting;if(ab===
1241
1241
  "Date"||ab==="Time"||ab==="Time Stamp")I=pui.R(ya,z,d.ref)}if(ha[v]!==false)if(pui.R(ha[v],z,d.ref)=="hidden")I="";if(typeof pui["process export value"]==="function"){ya=pui["process export value"]({value:I,"bound value formatting":ya,"item properties":Ea[v],"grid properties":d.c.pui.properties,"record number":H+1});if(ya!=null)I=ya}ya=I;if(typeof I==="string")I=I.replace(/"/g,'""');if(Ka!="")Ka+=P;Ka+=U+Ob(I)+U;if(m){if(typeof Ha[v]=="object"&&Ha[v]!=null){q=true;nc(Oa,"",ba);typeof ya==="string"&&
1242
- ya.length>0&&yc(La,Oa.nd,ba,ya,Ha[v])}else{I=null;if(typeof ja[v]=="object"&&ja[v]!=null)if(ja[v].link!=null)I=ja[v].link;else if(ja[v].Xs!=null)I=wa[ja[v].Xs];nc(Oa,Ob(ya),ba,I)}ba++}}}if(oa!="")oa+="\n";oa+=Ka}}if(m){if(q&&d.i.Bu){Oa.xu=true;Ib.Uc=La;Ib.Ic=d.i;Xd(d.i,pui.getLanguageText("runtimeMsg","downloading x",["..."]));d.i.Up()}fc(Ib,k)}else pui.Mk("text/csv",k+".csv",oa)}}};this.pw=function(k){function m(H){var I=new XMLHttpRequest;I.open("POST",z,true);I.setRequestHeader("Content-type",
1243
- "application/x-www-form-urlencoded");var L={data:{}};L.append=function(U,S){L.data[U]=encodeURIComponent(S)};L.get=function(){var U="",S="";for(var aa in L.data){U+=S+aa+"="+L.data[aa];S="&"}return U};pui.ba?L.append("AUTH",pui.ba):L.append("AUTH",pui.appJob.auth);L.append("q",encodeURIComponent(pui.Wc(d.c)));pui.ld(d.dataProps,null,L);L.append("limit",u);L.append("start","1");typeof d.Kc==="string"&&d.Kc.length>0&&d.Kc.substring(1).split("&").forEach(function(U){U=U.split("=");L.append(U[0],decodeURIComponent(U[1]))});
1242
+ ya.length>0&&yc(La,Oa.nd,ba,ya,Ha[v])}else{I=null;if(typeof ja[v]=="object"&&ja[v]!=null)if(ja[v].link!=null)I=ja[v].link;else if(ja[v].Xs!=null)I=wa[ja[v].Xs];nc(Oa,Ob(ya),ba,I)}ba++}}}if(oa!="")oa+="\n";oa+=Ka}}if(m){if(q&&d.i.Bu){Oa.xu=true;Ib.Uc=La;Ib.Jc=d.i;Xd(d.i,pui.getLanguageText("runtimeMsg","downloading x",["..."]));d.i.Up()}fc(Ib,k)}else pui.Mk("text/csv",k+".csv",oa)}}};this.pw=function(k){function m(H){var I=new XMLHttpRequest;I.open("POST",z,true);I.setRequestHeader("Content-type",
1243
+ "application/x-www-form-urlencoded");var L={data:{}};L.append=function(U,S){L.data[U]=encodeURIComponent(S)};L.get=function(){var U="",S="";for(var aa in L.data){U+=S+aa+"="+L.data[aa];S="&"}return U};pui.ba?L.append("AUTH",pui.ba):L.append("AUTH",pui.appJob.auth);L.append("q",encodeURIComponent(pui.Wc(d.c)));pui.ld(d.dataProps,null,L);L.append("limit",u);L.append("start","1");typeof d.Lc==="string"&&d.Lc.length>0&&d.Lc.substring(1).split("&").forEach(function(U){U=U.split("=");L.append(U[0],decodeURIComponent(U[1]))});
1244
1244
  pui["read db driven data as ebcdic"]!==true&&L.append("UTF8","Y");var W=d.dataProps["order by"];if(d.Cb!=null)W=d.Cb;if(W&&W!="")L.append("order",W);else Lb()=="mssql"&&L.append("order","(select null)");W=d.dataProps["allow any select statement"];if(W!=null&&(W=="true"||W==true))L.append("FetchCounter","Y");pui.isCloud&&L.append("workspace_id",pui.cloud.ws.id);Wd(d.i,"cancel","cancel");Xd(d.i,pui.getLanguageText("runtimeMsg","downloading x",["..."]));d.i.Up(pui.getLanguageText("runtimeMsg","cancelled"),
1245
1245
  function(){I.abort();d.unMask()});I.onreadystatechange=function(){if(!(I.readyState!=4||I.status==0))try{if(I.status!=200)throw"XMLHTTPRequest status: "+I.status;var U=eval("("+I.responseText+")");if(!U)throw"Failed";if(U.success!=true){if(U.errorText)throw"Failed: "+U.errorText;throw"Failed";}var S=U.response;if(S==null||S.results==null)throw"Invalid Response";if(d.dataProps["data transform function"])try{S=eval("window."+d.dataProps["data transform function"])(I.responseText)}catch(aa){pui.Zo(aa)}if(H!=
1246
1246
  null)S.fields=H;if(S.results.length>0)q(S);else{Wd(d.i,"","");Xd(d.i,pui.getLanguageText("runtimeMsg","no data"));d.i.Up();Yd(d.i)}d.unMask()}catch(Y){U=pui.getLanguageText("runtimeText","excel export text");console.warn(U,Y);pui.alert(U+":\n"+Y.toString());d.unMask();d.i.w()}};var ba=0,P=0;I.addEventListener("progress",function(U){var S=pui.ro(U.loaded,1),aa=U.timeStamp-ba;if(ba==0)ba=U.timeStamp;else if(aa>0){var Y=U.loaded/aa*1E3;aa=Math.round(aa/1E3);S+=" ("+pui.ro(Y,0)+"/s; "+aa+"s)";if(U.timeStamp-
1247
1247
  P<250)return}Xd(d.i,pui.getLanguageText("runtimeMsg","downloading x",[S]));P=U.timeStamp});I.send(L.get());d.mask();d.Wb()}function q(H){function I(ja){return ja.field==L}var L,W,ba,P,U,S=[];if((d.rl||d.ma)&&Array.isArray(d.ga)&&d.ga.length>0){var aa=d.ga.filter(function(ja){return ja.showing||d.mh!=true});aa.sort(function(ja,oa){var Ea=ja.currentColumn;if(Ea<0)Ea=999+ja.columnId;var Ka=oa.currentColumn;if(Ka<0)Ka=999+oa.columnId;return Ea-Ka});W=0;for(U=aa.length;W<U&&(P=aa[W])&&P.field;W++)S.push({fieldName:P.field,
1248
- name:P.blankHeader?"":P.name})}else for(L in H.results[0])S.push({fieldName:L,yz:L});W=0;W=H.colWidths!=null?H.colWidths.length:Object.keys(H.results[0]).length;if(S.length>0&&S.length<W)W=S.length;var Y=new pui.Dm(W);aa=new pui.Cm(Y);aa.Ic=d.i;H.fields!=null&&S.forEach(function(ja,oa){L=ja.fieldName;var Ea=H.fields.find(I);mc(Y,Ea?{dataType:Ea.type,decPos:Ea.decPos}:{dataType:"char"},oa)});if(d.h&&d.Ok){W=0;lc(Y);if(d.ma){if(Array.isArray(d.ga)&&d.ga.length>0)for(U=S.length;W<U&&(P=S[W]);W++){L=
1248
+ name:P.blankHeader?"":P.name})}else for(L in H.results[0])S.push({fieldName:L,yz:L});W=0;W=H.colWidths!=null?H.colWidths.length:Object.keys(H.results[0]).length;if(S.length>0&&S.length<W)W=S.length;var Y=new pui.Dm(W);aa=new pui.Cm(Y);aa.Jc=d.i;H.fields!=null&&S.forEach(function(ja,oa){L=ja.fieldName;var Ea=H.fields.find(I);mc(Y,Ea?{dataType:Ea.type,decPos:Ea.decPos}:{dataType:"char"},oa)});if(d.h&&d.Ok){W=0;lc(Y);if(d.ma){if(Array.isArray(d.ga)&&d.ga.length>0)for(U=S.length;W<U&&(P=S[W]);W++){L=
1249
1249
  P.fieldName;ba=(ba=d.ga.find(I))?ba.name:"";nc(Y,ba,W)}}else if(d.cells[0]instanceof Array&&d.cells[0].length>0)for(P=S.length;W<P;W++){ba=d.cells[0][W]?Ob(Nc(d.cells[0][W])):"";nc(Y,ba,W)}Y.sh=d.bb}U=0;for(P=H.results.length;U<P;U++){lc(Y);ba=H.results[U];for(var ha=W=0,sa=S.length;ha<sa;ha++){L=S[ha];var Ha=ba[L.fieldName];if(Ha==null&&L.fieldName)Ha=ba[L.fieldName.toUpperCase()];nc(Y,Ha,W,null,H.fields==null);W++}}fc(aa,k)}if(pui.secLevel<=0)console.log("Export not implemented for low security level.");
1250
1250
  else{var u=d.totalRecs;if(u==null)u=9999;var z=Vb("PUI0009102.PGM"),v=d.dataProps["data url"];if(v=="")v=null;if(v){z=pui.cf(v);m()}else if(d.dataProps["database file"]&&d.dataProps["database file"].length>0){v="";var J=d.dataProps["database file"].split("/");if(J.length>1){v=J[0];J=J[1]}else J=J[0];bc({url:Vb("PUI0009101.pgm"),method:"post",params:{context:"genie",file:J,library:v,AUTH:pui.ba?pui.ba:pui.appJob.auth,workspace_id:pui.isCloud&&pui.cloud.ws.id?pui.cloud.ws.id:"",q:encodeURIComponent(pui.Wc(d.c))},
1251
1251
  async:true,handler:function(H){var I=null;if(H!=null&&H.fields!=null)I=H.fields;m(I)},suppressAlert:true,onfail:function(){console.log("Failed to fetch column data types for formatting. All cells in the XLSX file will contain character data.");m()}});d.mask();d.Wb()}else m()}};this.Fo=function(k){if(O=="genie"&&!pui.fa)return false;var m=k,q=k;if(k==null){m=0;q=d.n.length-2}k=0;if(d.h)k=1;if(q<0)return false;for(m=m;m<=q;m++)for(var u=d.cells[k][m].firstChild;u!=null;){if(u.style.position=="absolute"&&
@@ -1255,14 +1255,14 @@ d.ea()||pui.fa)u=d.j;q-=u;d.h&&q++;q=d.cells[q];if(q==null)return null;q=q[Ba(m)
1255
1255
  "undefined"?u.S:u.value}u=a(m);if(u==null)return null;return q[u]};this.getAllDataValues=function(k){if(d.da.length<1)return null;K();var m=d.dataArray;if((k!=null&&!k?false:true)&&d.isFiltered())m=d.X;k=[];for(var q=0;q<m.length;q++){for(var u={},z=0;z<d.da.length;z++){var v=d.da[z];if(pui.Df[v])v=pui.Df[v];u[v]=m[q][z]}k.push(u)}return k};this.setDataValue=function(k,m,q){m=pui.K(m);if(m.length>10&&!(pui.pjsDefaultMode==="case-sensitive"||pui.handler!=null))m=pui.Df[m];var u=b(k,false);if(u!=null){var z=
1256
1256
  a(m);if(z!=null){u[z]=q;if(d.Ud&&d.Bb&&d.Bb.fieldName&&m==pui.K(d.Bb.fieldName)){var v=(z=q==d.Mh)?d.Mh:d.Bb.dataType=="indicator"?"0":" ";if(u.selected!=z){u.selected=z;pui.modified=true;if(u.selection){u.selection.modified=true;u.selection.value=v}else{var J=pui.Hb(d.Wa)+"."+m+"."+k;if(pui.O[J]==null){u.selection={S:String(q),modified:true,type:"grid selection",value:v,o:k,M:d.Bb,aj:true};pui.O[J]=[u.selection]}if(pui.O[J][0]!=null&&pui.O[J][0].aj)pui.O[J][0].S=String(q)}}if(z)d.Lh=k}}}v=v=J=null;
1257
1257
  u=[];for(z=0;z<d.N.length;z++){J=d.N[z];for(var H in J){v=J[H];if(pui.p(v)&&pui.K(v.fieldName)===m){v=Object.assign({},v);v.value=q;u.push({field:J,property:H,M:v})}}}if(u.length===0)return false;for(H=0;H<u.length;H++){var I=u[H];J=I.field;v=I.property;var L=J.domEls[k-1];if(L==null){I=null;for(z in J.domEls){I=J.domEls[z];break}if(I&&pui.Os(v,I)&&d.ea()==false){J=pui.Hb(d.Wa)+"."+m+"."+k;if(pui.O[J]==null)pui.O[J]=[{S:String(q),aj:true}];if(pui.O[J][0]!=null&&pui.O[J][0].aj)pui.O[J][0].S=String(q)}}else{I.M.__pui_skipdecode=
1258
- true;v==="value"?Wc(L,pui.sc.format(I.M)):applyProperty(L,v,pui.sc.format(I.M))}}return true};this.Gb=function(){return d.j>1?false:true};this.mp=function(){if(Q("onpageup")!=false)if(pui.fa&&d.Gb()||!pui.fa&&O=="genie")Ub("pageup");else{d.mask();d.Wb();var k=d.cells.length;if(d.h)k-=1;d.j-=k;if(d.j<1)d.j=1;if(d.Bc){d.d.sd(d.j);if(pui.is_touch&&!pui.is_mouse_capable||pui.pa)d.getData()}else d.getData();setTimeout(function(){d.unMask();if(typeof pui.r.Md=="undefined"||pui.r.Md==false){var m=0;d.h&&
1258
+ true;v==="value"?Wc(L,pui.tc.format(I.M)):applyProperty(L,v,pui.tc.format(I.M))}}return true};this.Gb=function(){return d.j>1?false:true};this.mp=function(){if(Q("onpageup")!=false)if(pui.fa&&d.Gb()||!pui.fa&&O=="genie")Ub("pageup");else{d.mask();d.Wb();var k=d.cells.length;if(d.h)k-=1;d.j-=k;if(d.j<1)d.j=1;if(d.Cc){d.d.sd(d.j);if(pui.is_touch&&!pui.is_mouse_capable||pui.pa)d.getData()}else d.getData();setTimeout(function(){d.unMask();if(typeof pui.r.Md=="undefined"||pui.r.Md==false){var m=0;d.h&&
1259
1259
  m++;var q=d.cells[m];setTimeout(function(){ia(q)},100)}},1)}};this.Sb=function(){var k=d.cells.length;if(d.h)k-=1;k=d.j+k-1;if(d.ea()&&d.dataProps["load all rows"]!="true")return d.totalRecs<=k;else{var m=d.dataArray;if(d.isFiltered())m=d.X;return m.length<=k}};this.kp=function(){if(Q("onpagedown")!=false)if(pui.fa&&d.Sb()||!pui.fa&&O=="genie")Ub("pagedown");else{d.mask();d.Wb();var k=d.cells.length;if(d.h)k-=1;d.j+=k;k=d.j+k-1;if(d.ea()&&d.Aa!=true){if(d.totalRecs<k&&d.d!=null){d.j=d.j-k+d.totalRecs;
1260
- if(d.j<1)d.j=1}}else{var m=d.dataArray;if(d.isFiltered())m=d.X;if(m.length<k&&d.d!=null){d.j=d.j-k+m.length;if(d.j<1)d.j=1}}if(d.Bc){d.d.sd(d.j);if(pui.is_touch&&!pui.is_mouse_capable||pui.pa)d.getData()}else d.getData();setTimeout(function(){d.unMask();if(typeof pui.r.Md=="undefined"||pui.r.Md==false){var q=0;d.h&&q++;var u=d.cells[q];setTimeout(function(){ia(u)},100)}},1)}};this.getRecNum=function(){return d.j};this.unMask=function(){if(Ab!=null)Ab.style.display="none";if(Nb!=null)Nb.style.display=
1260
+ if(d.j<1)d.j=1}}else{var m=d.dataArray;if(d.isFiltered())m=d.X;if(m.length<k&&d.d!=null){d.j=d.j-k+m.length;if(d.j<1)d.j=1}}if(d.Cc){d.d.sd(d.j);if(pui.is_touch&&!pui.is_mouse_capable||pui.pa)d.getData()}else d.getData();setTimeout(function(){d.unMask();if(typeof pui.r.Md=="undefined"||pui.r.Md==false){var q=0;d.h&&q++;var u=d.cells[q];setTimeout(function(){ia(u)},100)}},1)}};this.getRecNum=function(){return d.j};this.unMask=function(){if(Ab!=null)Ab.style.display="none";if(Nb!=null)Nb.style.display=
1261
1261
  "none";if(vb!=null)vb.style.display="none"};this.Wb=function(){if(!d.designMode){var k=d.c;if(k.style.visibility!="hidden")if(d.c.parentNode!=null){var m=parseInt(k.style.left),q=parseInt(k.style.top),u=parseInt(k.style.width)-2;k=parseInt(k.style.height);if(Ab==null)Ab=document.createElement("div");Ab.style.display="block";if(d.h){q+=d.bb;k-=d.bb}Ab.style.left=m+"px";Ab.style.top=q+"px";Ab.style.width=u+"px";Ab.style.height=k+"px";Ab.className="pui-grid-loading";d.c.parentNode.appendChild(Ab);d.Ey()}}};
1262
1262
  this.mask=function(){if(!d.designMode){var k=d.c;if(k.style.visibility!="hidden")if(d.c.parentNode!=null){var m=parseInt(k.style.left),q=parseInt(k.style.top),u=parseInt(k.style.width)-2;k=parseInt(k.style.height);if(vb==null)vb=document.createElement("div");vb.style.display="block";if(d.h){q+=d.bb;k-=d.bb}vb.style.position="absolute";vb.style.left=m+"px";vb.style.top=q+"px";vb.style.width=u+"px";vb.style.height=k+"px";vb.className="grid-mask";d.c.parentNode.appendChild(vb)}}};this.Ey=function(){if(!(d.designMode||
1263
1263
  vb==null||vb.style.display=="none"))if(d.c.style.visibility!="hidden")if(d.c.parentNode!=null){var k=parseInt(Ab.style.width)-2,m=parseInt(Ab.style.height)-5;if(Nb==null)Nb=document.createElement("div");Nb.style.display="block";if(d.h)m-=d.bb;if(m>100){m=100;if(k<100)m=k-5}if(m<35)m=35;Nb.style.width=m+"px";Nb.style.height=m+"px";Nb.className="pui-animation pui-grid-animation";Ab.appendChild(Nb)}};this.getData=function(k){function m(ja,oa,Ea){if(!(d==null||d.cells==null)){if(oa!=null)d.totalRecs=
1264
- oa;d.da=[];d.X=[];d.clear(false);d.gc=false;d.dataProps["load all rows"]=="true"&&t(false);if(ja.length>=1){for(var Ka in ja[0])d.da.push(pui.K(Ka));for(oa=0;oa<ja.length;oa++){d.dataArray[oa]=[];d.X[oa]=[];var wa=ja[oa],ya=0;for(Ka in wa){var Oa=wa[Ka];d.dataArray[oa][ya]=Oa;d.X[oa][ya]=Oa;ya++}}}d.Aa=true;d.getData();if(d.dataProps["load all rows"]=="true"&&d.isFiltered()&&na){ja=g();Ka=ja.filters;if(Ka!=null){d.Oc=false;for(oa=0;oa<Ka.length;oa++){wa=ja.filters[oa].column;ya=ja.filters[oa].text;
1265
- ya==null||ya==""?d.removeFilter(wa):d.setFilter(wa,ya)}d.Oc=true}}if(d.dataProps["load all rows"]=="true"&&d.h&&d.cells.length>0){ja=d.cells[0];for(oa=0;oa<ja.length;oa++)if(ja[oa].Uj)ja[oa].Uj=null;d.nl(false)}d.unMask();if(d.dataProps["load all rows"]!="true")d.Aa=false;if(d.d!=null)if(d.d.type=="paging")setTimeout(function(){d.d.destroy();d.d=null;d.setScrollBar()},250);else if(d.d.type=="sliding")if(d.totalRecs!=null){d.d.Ra=d.totalRecs;Ea>0&&d.d.sd(d.j,true)}if(d.c.style.visibility!="hidden"&&
1264
+ oa;d.da=[];d.X=[];d.clear(false);d.gc=false;d.dataProps["load all rows"]=="true"&&t(false);if(ja.length>=1){for(var Ka in ja[0])d.da.push(pui.K(Ka));for(oa=0;oa<ja.length;oa++){d.dataArray[oa]=[];d.X[oa]=[];var wa=ja[oa],ya=0;for(Ka in wa){var Oa=wa[Ka];d.dataArray[oa][ya]=Oa;d.X[oa][ya]=Oa;ya++}}}d.Aa=true;d.getData();if(d.dataProps["load all rows"]=="true"&&d.isFiltered()&&na){ja=g();Ka=ja.filters;if(Ka!=null){d.sc=false;for(oa=0;oa<Ka.length;oa++){wa=ja.filters[oa].column;ya=ja.filters[oa].text;
1265
+ ya==null||ya==""?d.removeFilter(wa):d.setFilter(wa,ya)}d.sc=true}}if(d.dataProps["load all rows"]=="true"&&d.h&&d.cells.length>0){ja=d.cells[0];for(oa=0;oa<ja.length;oa++)if(ja[oa].Uj)ja[oa].Uj=null;d.nl(false)}d.unMask();if(d.dataProps["load all rows"]!="true")d.Aa=false;if(d.d!=null)if(d.d.type=="paging")setTimeout(function(){d.d.destroy();d.d=null;d.setScrollBar()},250);else if(d.d.type=="sliding")if(d.totalRecs!=null){d.d.Ra=d.totalRecs;Ea>0&&d.d.sd(d.j,true)}if(d.c.style.visibility!="hidden"&&
1266
1266
  d.d!=null){d.d.w();typeof d.d.qh=="function"&&d.d.qh()}d.xi=false}}function q(ja,oa,Ea){function Ka(Gb){return Gb.columnId===Oa}if(!(d==null||d.cells==null)){if(oa!=null)d.totalRecs=oa;if(Ea>0){d.j=Ea;d.clearData()}oa=e();for(var wa=Array(d.cells[0].length),ya=0;ya<d.cells[0].length;ya++)wa[d.cells[0][ya].A]=ya;if((d.rl||d.ma)&&ja.length>0&&d.ga.length){var Oa=0;for(var Ib in ja[0]){if(ya=d.ga.find(Ka))ya.field=Ib;Oa++}}for(ya=d.pf=0;ya<ja.length;ya++){if(d.pf==0)d.pf=ya+1+(d.j-1);d.Ti=ya+1+(d.j-
1267
1267
  1);var La=ja[ya],ab=0,Bb=d.cells[ya+(d.h?1:0)];if(Bb!=null)for(Ib in La){var Za=Bb.length;if(d.ma&&d.ga.length)Za=d.ga.length;if(ab<Za){Za=La[Ib];var $b="";Oa=pui.secLevel>0?wa[ab]:ab;if(d.ma){if(Oa==undefined){ab++;continue}if(d.H["text align"]){var Qb=d.H["text align"].split(",");if(Qb[ab])$b=" text-align:"+Qb[ab]}}else if(Bb[Oa].style.textAlign!=null&&Bb[Oa].style.textAlign!="")$b=" text-align:"+Bb[Oa].style.textAlign;if(pui.appJob.decimalFormat=="J"&&Za.charAt(0)==","&&Za.length>1&&!Number.isNaN(Number.parseInt(Za.substring(1))))Za=
1268
1268
  "0"+Za;Bb[Oa].innerHTML='<div style="'+oa+$b+'" class="dbd">'+Za+"</div>";if(d.Y!=null&&d.Y.text!=""&&(Oa===d.Y.col||d.Y.col==="*all"))if(Bb[Oa].tagName=="DIV"){pui.Wk(Bb[Oa],d.Y.text);Bb[Oa].Xk=true}}ab++}}ja=d.cells.length;if(d.h)ja-=1;if(d.d!=null)if(d.d.type=="paging")setTimeout(function(){d.d.destroy();d.d=null;d.setScrollBar()},250);else if(d.d.type=="sliding")if(d.totalRecs!=null){d.d.Ra=d.totalRecs;Ea>0&&d.d.sd(d.j,true)}if(d.c.style.visibility!="hidden"&&d.d!=null){d.d.w();typeof d.d.qh==
@@ -1272,7 +1272,7 @@ for(var Ea=d.Nb[oa].dq,Ka=0;Ka<d.N.length;Ka++)if(d.N[Ka].columnId==ja.columnId)
1272
1272
  L=d.dataProps["database fields"],W=d.dataProps["selection criteria"];H=d.dataProps["order by"];if(d.Cb!=null)H=d.Cb;if(L!=null&&L!=""&&I!=null&&I!=""){J="SELECT "+L+" FROM "+I;if(W&&W!="")J+=" WHERE "+W;if(H&&H!="")J+=" ORDER BY "+H}}else if(d.Cb!=null)J+=" ORDER BY "+d.Cb}I=d.dataProps["data url"];if(I=="")I=null;if(J==null)J="";if(d.Aa==false&&(J!=""||I!=null))if(k!=null){if(!(J==null||J=="")){var ba=",";v=".";var P='"';if(pui.appJob!=null&&(pui.appJob.decimalFormat=="I"||pui.appJob.decimalFormat==
1273
1273
  "J")){ba=";";v=","}if(typeof pui["csv separator"]=="string")ba=pui["csv separator"];if(typeof pui["csv string delimiter"]=="string")P=pui["csv string delimiter"];var U=document.createElement("form");U.action=Vb("PUI0009107.pgm");U.method="post";var S=function(ja,oa){var Ea=Xb("input",ja);Ea.type="hidden";Ea.value=oa;U.appendChild(Ea)};pui.isCloud&&S("workspace_id",pui.cloud.ws.id);S("delimiter",ba);S("stringDelimiter",P===""?"*NONE":P);pui["read db driven data as ebcdic"]!==true&&S("UTF8","Y");S("decType",
1274
1274
  v);S("fileName",k+".csv");if(pui.secLevel>0){S("q",encodeURIComponent(pui.Wc(d.c)));v={};pui.ld(d.dataProps,v);for(var aa in v)S(aa,encodeURIComponent(v[aa]));if(H&&H!="")S("order",H);else Lb()=="mssql"&&S("order","(select null)")}else S("q",pui.xb.lf(J));S("AUTH",pui.ba?pui.ba:pui.appJob.auth);if(d.h&&d.Ok){if(d.ma){var Y="";d.ga.forEach(function(ja){var oa=ja.name;if(ja.blankHeader)oa="";oa=oa.replace(/"/g,'""');if(Y)Y+=ba;Y+=P+oa+P})}else{Y="";for(H=0;H<d.cells[0].length;H++){v=Nc(d.cells[0][H]);
1275
- v=v.replace(/"/g,'""');if(Y!="")Y+=ba;Y+=P+v+P}}S("headings",Y)}typeof d.Kc==="string"&&d.Kc.length>0&&d.Kc.substring(1).split("&").forEach(function(ja){ja=ja.split("=");S(ja[0],decodeURIComponent(ja[1]))});document.body.appendChild(U);pui.skipConfirm=true;U.submit();setTimeout(function(){U.parentNode.removeChild(U);pui.skipConfirm=false},0)}}else{if(d.d!=null){if(d.d.type=="paging")d.d.Gb=d.j==1;d.c.style.visibility!="hidden"&&d.d.w()}var ha=d.j;if(rc!=null&&qc!=null&&sc>0)ha=sc;else d.clearData();
1275
+ v=v.replace(/"/g,'""');if(Y!="")Y+=ba;Y+=P+v+P}}S("headings",Y)}typeof d.Lc==="string"&&d.Lc.length>0&&d.Lc.substring(1).split("&").forEach(function(ja){ja=ja.split("=");S(ja[0],decodeURIComponent(ja[1]))});document.body.appendChild(U);pui.skipConfirm=true;U.submit();setTimeout(function(){U.parentNode.removeChild(U);pui.skipConfirm=false},0)}}else{if(d.d!=null){if(d.d.type=="paging")d.d.Gb=d.j==1;d.c.style.visibility!="hidden"&&d.d.w()}var ha=d.j;if(rc!=null&&qc!=null&&sc>0)ha=sc;else d.clearData();
1276
1276
  var sa=q;v=v;if(d.dataProps["load fields into widgets"]=="true"){sa=m;if(d.dataProps["load all rows"]=="true")v=-1;d.mask();d.Wb()}O=="genie"?Sa(J,v,ha,sa,d.totalRecs==null,I,false):Sa(J,v,ha,sa,d.totalRecs==null,I,true)}else if(O=="dspf"||pui.fa){J=d.dataArray;if(d.isFiltered())J=d.X;d.c.zi=0;H=d.j;if(J[d.j-1]&&J[d.j-1].o!=null)H=J[d.j-1].o;d.c.Nt=H;if(d.po!=null&&!d.Qs)pui.um["toprrn."+d.po]=H;d.clearData();aa=d.h?1:0;k=d.j+v-1;if(d.Aa==false&&J.length<k&&(d.isFiltered()||d.d!=null)){d.j=d.j-k+
1277
1277
  J.length;if(d.j<1)d.j=1;k=J.length}d.Sw();H=d.j;if(d.Aa==true&&d.dataProps["load all rows"]!="true"){H=1;k=v}I=u();d.pf=0;d.jl=null;for(H=H;H<=k;H++){if(d.zs)ha=d.zs[H-1];ha||(ha={});L={};sa=J[H-1];if(sa==null||sa.length==0)L.empty=true;else for(W=0;W<d.da.length;W++)L[d.da[W]]=sa[W];if(d.dataProps["load fields into widgets"]=="true"){L.__pui_show=true;L.__pui_skipdecode=true}sa=d.Ud||d.Cj!=null||d.Aj!=null;if(L.empty!=true){var Ha=J[H-1].o;if(Ha==null)Ha=H;sa&&d.$c(aa,false,H-1);I!==null&&z(I);if(d.pf==
1278
1278
  0)d.pf=Ha;d.Ti=Ha;pui.Cp({designMode:false,name:pui.Hb(d.Wa),metaData:{items:d.N},data:L,ys:ha,ref:d.ref,errors:d.errors,Ej:aa,o:Ha,Tb:H-1,Y:d.Y,eq:I});if(d.Ud&&d.Bb!=null){L=pui.Hb(d.Wa)+"."+pui.K(d.Bb.fieldName)+"."+Ha;if(pui.O[L]==null){J[H-1].selection={modified:false,type:"grid selection",value:d.Bb.dataType=="indicator"?"0":" ",o:Ha,M:d.Bb};pui.O[L]=[];pui.O[L].push(J[H-1].selection)}}if(d.we!=null){L=pui.Hb(d.Wa)+"."+pui.K(d.we.fieldName)+"."+Ha;if(pui.O[L]==null){J[H-1].xe={modified:false,
@@ -1282,8 +1282,8 @@ null&&d.n[k].parentNode.removeChild(d.n[k]);for(k=d.k.length-1;k>=0;k-=1)d.k[k].
1282
1282
  X.parentNode.removeChild(X);Ta!=null&&Ta.parentNode.removeChild(Ta);Ra=Ua=Qa=Ta=null;try{Yb(this);d=null}catch(m){}};this.rf=function(){for(var k="",m=1;m<d.n.length;m++){var q=parseInt(d.n[m].style.left)-parseInt(d.n[m-1].style.left);k+=k==""?String(q):","+String(q)}return k};this.Pf=function(k){if(typeof k=="string")k=k.split(",");if(!(d.n.length<=0)){for(var m=parseInt(d.n[0].style.left),q=1;q<d.n.length;q++){var u=d.Qr,z=q-1;if(z<k.length)u=pui.Td(k[z],50);m+=u;d.n[q].style.left=m+"px"}Na();d.designMode&&
1283
1283
  d.La();V();d.setScrollBar();d.ec();d.dc(true)}};this.Je=function(){if(!d.co)if(d.designMode){var k=d.c.e;if(k!=null){k.designer.zf.update();var m=k.designer.selection;if(m.Qd.length==1&&m.Qd[0].e==k)d.dc();else{m.clear();m.add(k);d.dc(true)}}}};this.dc=function(k){if(d.designMode)if(!Hb.yh){var m=d.c.e;if(m!=null){var q=m.properties.height==="#subfileHeight"?"#subfileHeight":d.c.style.height,u;if(m.properties["number of rows"]!=="#rowsPerPageRDF"){u=d.k.length-1;if(u<0)u=0;u=String(u)}else u=m.properties["number of rows"];
1284
1284
  var z=d.n.length-1;if(z<0)z=0;z=String(z);var v=false;v=$d(d,m,"number of rows",u)||v;v=$d(d,m,"number of columns",z)||v;v=$d(d,m,"row height",d.la)||v;v=$d(d,m,"header height",d.bb)||v;v=$d(d,m,"column widths",d.rf())||v;v=$d(d,m,"left",d.c.style.left)||v;v=$d(d,m,"top",d.c.style.top)||v;v=$d(d,m,"height",q)||v;if(v=$d(d,m,"width",d.c.style.width)||v){m.designer.$o();O==="dspf"&&pui.ide.refreshRibbon()}if(v||k)m.designer.nb.refresh()}}};this.ec=function(k){if(d.h)if(!(d.cells.length<=0))for(var m=
1285
- e(),q=d.cells[0],u=0,z=q.length;u<z;u++){var v=q[u],J=false,H=null;if(d.designMode==false){if(v.nc!=null){J=true;d.xj(v)}if(v.Zc!=null){H=v.Zc;H.parentNode!=null&&H.parentNode.removeChild(H)}}if(d.columnHeadings.length<=u)v.innerHTML="";else{var I="";if(v.style.textAlign!=null&&v.style.textAlign!="")I=" text-align:"+v.style.textAlign;var L="<div";if(d.Nc)L+=' class="qf"';L+=' style="'+m+I+'">';if(d.ma&&k&&k[u])L+=k[u];else if(d.columnHeadings[u])L+=d.columnHeadings[u];v.innerHTML=L+"</div>"}J&&d.gm(v);
1286
- J=false;if(d.designMode==false&&d.sortable==true)if(H!=null)B(v,H);else if(d.fc!=null){if(Ic==v.A)J=true;else if(d.c.eh!=null&&d.yf==v.A)J=true;else if(d.c.ng!=null&&typeof d.Qi==="string"&&d.Qi.toUpperCase()==d.vo(v.col,parseInt(d.c.Ww)))J=true;if(J){F();B(v,d.fc)}}if(d.Nc){H=document.createElement("input");H.type="text";H.className="qf";H.placeholder=pui.getLanguageText("runtimeText","filter text")+"...";if(d.designMode)H.disabled=true;else{H.addEventListener("mousedown",d.Sq);H.addEventListener("click",
1285
+ e(),q=d.cells[0],u=0,z=q.length;u<z;u++){var v=q[u],J=false,H=null;if(d.designMode==false){if(v.nc!=null){J=true;d.xj(v)}if(v.Zc!=null){H=v.Zc;H.parentNode!=null&&H.parentNode.removeChild(H)}}if(d.columnHeadings.length<=u)v.innerHTML="";else{var I="";if(v.style.textAlign!=null&&v.style.textAlign!="")I=" text-align:"+v.style.textAlign;var L="<div";if(d.Oc)L+=' class="qf"';L+=' style="'+m+I+'">';if(d.ma&&k&&k[u])L+=k[u];else if(d.columnHeadings[u])L+=d.columnHeadings[u];v.innerHTML=L+"</div>"}J&&d.gm(v);
1286
+ J=false;if(d.designMode==false&&d.sortable==true)if(H!=null)B(v,H);else if(d.fc!=null){if(Ic==v.A)J=true;else if(d.c.eh!=null&&d.yf==v.A)J=true;else if(d.c.ng!=null&&typeof d.Qi==="string"&&d.Qi.toUpperCase()==d.vo(v.col,parseInt(d.c.Ww)))J=true;if(J){F();B(v,d.fc)}}if(d.Oc){H=document.createElement("input");H.type="text";H.className="qf";H.placeholder=pui.getLanguageText("runtimeText","filter text")+"...";if(d.designMode)H.disabled=true;else{H.addEventListener("mousedown",d.Sq);H.addEventListener("click",
1287
1287
  d.Sq);H.addEventListener("focus",d.$a);H.addEventListener("input",d.$a);H.addEventListener("keydown",d.$a);H.addEventListener("blur",d.$a)}v.appendChild(H);v=v.sa;if(typeof v==="string"&&v.length>0)H.value=v}}};this.Uv=function(){if(d.h)if(!(d.cells.length<=0))for(var k=0;k<d.cells[0].length;k++)d.cells[0][k].innerHTML=""};this.nl=function(k){function m(I){function L(){if(d.c.eh!=null){d.Mn=String(I.A);pui.le=d;pui.bc();pui.le=null}else if(d.c.ng!=null){d.Ei=d.vo(I.col,parseInt(d.c.bs));if(d.Ei==
1288
1288
  null)d.Nf=null;else{pui.oe=d;pui.bc();pui.oe=null}}else s(I)}T(I,"click",L);I.mm=L}if(d.sortable)if(!(O!="dspf"&&!pui.fa))if(d.h)if(!(d.cells.length<=0)){var q=d.cells[0];if(d.dataProps["database file"]!=null&&d.dataProps["database file"]!=""&&(d.dataProps["custom sql"]==null||d.dataProps["custom sql"]=="")&&(d.dataProps["data url"]==null||d.dataProps["data url"]=="")&&d.dataProps["database fields"]!=null&&d.dataProps["database fields"]!=""&&d.dataProps["load all rows"]!="true"){k=pui.ph(d.dataProps["database fields"]);
1289
1289
  for(var u=0;u<k.length;u++)if(q[u]){q[u].fieldName=k[u];f(q[u])}}else if((d.dataProps["custom sql"]!=null&&d.dataProps["custom sql"]!=""||d.dataProps["data url"]!=null&&d.dataProps["data url"]!="")&&d.dataProps["load all rows"]!="true"){k=d.n.length-1;for(u=0;u<k;u++)f(q[u])}else if(!(d.dataProps["load all rows"]=="true"&&d.Aa==false)){for(u=0;u<d.N.length;u++){var z=d.N[u],v=Number(z.column),J=z.value;if(z["field type"]=="html container")J=z.html;if(pui.p(J)&&!isNaN(v)&&v>=0&&v<q.length&&q[v]&&q[v].Uj==
@@ -1295,7 +1295,7 @@ null)d.Nf=m;pui.oe=d;pui.bc();pui.oe=null}}else if(Qa.length==0)h(false)||A();el
1295
1295
  d.dataArray[H].selected=false;for(v=0;v<k;v++)for(var I=0;I<z[v].length;I++){var L=z[v][I],W="D_"+(q+v)+"_"+L,ba=d.c.parentNode.id;if(ba!=null&&ba.substr(0,6)=="window"){var P=parseInt(ba.substr(6,1));if(!isNaN(P)&&P>0)W+="_W"+P}var U=Eb(W),S,aa;if(U==null){W="I_"+(q+v)+"_"+L;U=Eb(W);if(U==null)if(!isNaN(P)&&P>0)W+="_W"+P;U=Eb(W);if(U==null)continue;d.d!=null&&d.d.type=="paging"&&d.d.Ci(U);if(!U.readOnly)continue;L=U.value;L=L.replace(/ /g,"&nbsp;");U.style.display="none";W=U.className;ba=parseInt(U.style.left);
1296
1296
  S=parseInt(U.style.top);aa=U.B}else{L=U.innerHTML;W=U.className;ba=parseInt(U.style.left);S=parseInt(U.style.top);aa=U.B;U.parentNode.removeChild(U);d.d!=null&&d.d.type=="paging"&&d.d.Ci(U)}if(W==null||W==""||W=="A20")W="";else if(W.indexOf("readOnly")!=-1){W=pui.zp(W,"readOnly");W=pui.zp(W,"input")}U=I;if(k>1)U=0;if(d.cells.length<=J)break;var Y=d.cells[J][U];if(Y!=null){var ha=document.createElement("div");ha.className=W;ha.innerHTML=L;d.dataArray[H][U]=L.replace(/&nbsp;/g," ");ha.style.position=
1297
1297
  "absolute";ba-=parseInt(Y.style.left);ba-=parseInt(d.c.style.left);if(m==true||k==1)ba=5;ha.style.left=ba+"px";S-=parseInt(Y.style.top);S-=parseInt(d.c.style.top);if(m==true||k==1)S=5;ha.style.top=S+"px";ha.B=aa;T(ha,"click",setPos);if(k==1){Y.B=aa;T(Y,"click",setPos)}Y.appendChild(ha)}}J++}}}};this.setScrollBar=function(){if(d.i.b==null){d.i.b=d.b;d.i.grid=d;d.i.init();d.i.w()}d.i.x=parseInt(d.c.style.left);d.i.y=parseInt(d.c.style.top);var k=parseInt(d.c.style.height);if(isNaN(k))k=0;d.i.y+=k;d.i.width=
1298
- parseInt(d.c.style.width);if(isNaN(d.i.width)||d.i.width<10)d.i.width=10;d.i.width-=2;d.designMode||d.i.w();d.i.position();var m=true;if(d.k.length<2)m=false;if(d.k.length<3&&d.h)m=false;if(d.n.length<2)m=false;if(!d.Jf&&!d.Bc)m=false;k="paging";if(d.Bc)k="sliding";if(O=="genie"&&!d.designMode&&d.ea())k="sliding";if(m&&(d.d==null||d.d!=null&&d.d.type!=k)){d.d!=null&&d.d.destroy();if(k=="paging"){d.d=new pui.Ku;d.d.grid=d}if(k=="sliding"){d.d=new pui.Mu;if(O=="genie"&&!pui.fa)d.d.Kf=true}d.d.b=d.b;
1298
+ parseInt(d.c.style.width);if(isNaN(d.i.width)||d.i.width<10)d.i.width=10;d.i.width-=2;d.designMode||d.i.w();d.i.position();var m=true;if(d.k.length<2)m=false;if(d.k.length<3&&d.h)m=false;if(d.n.length<2)m=false;if(!d.Jf&&!d.Cc)m=false;k="paging";if(d.Cc)k="sliding";if(O=="genie"&&!d.designMode&&d.ea())k="sliding";if(m&&(d.d==null||d.d!=null&&d.d.type!=k)){d.d!=null&&d.d.destroy();if(k=="paging"){d.d=new pui.Ku;d.d.grid=d}if(k=="sliding"){d.d=new pui.Mu;if(O=="genie"&&!pui.fa)d.d.Kf=true}d.d.b=d.b;
1299
1299
  d.d.zIndex=d.ky;d.d.designMode=d.designMode;if(k=="sliding"){d.d.zl=function(v){d.j=v;if(!(d==null||d.cells==null)){d.getData();d.st(true)}};d.d.onchange=function(){d.ea()&&d.dataProps["load all rows"]!="true"&&d.clearData()};d.d.Ci(d.c)}if(k=="paging"){d.d.gj=function(){if(Q("onpageup")==false)return false;if(d.Aa==false&&d.ea()){if(d.j>1){var v=d.cells.length;if(d.h)v-=1;d.j-=v;if(d.j<1)d.j=1;d.getData()}return true}else if(d.Aa==true||O=="dspf"||pui.fa){pui.Gj=d.Wa;pui.rh({},"PageUp");d.d.type==
1300
1300
  "paging"&&pui.Lb&&setTimeout(function(){d.d.destroy();d.d=null;d.setScrollBar()},250)}else if(O=="genie"){Ub("PageUp");return true}};d.d.fj=function(){if(Q("onpagedown")==false)return false;if(d.Aa==false&&d.ea()){var v=d.cells.length;if(d.h)v-=1;d.j+=v;d.getData();return true}else if(d.Aa==true||O=="dspf"||pui.fa){pui.Gj=d.Wa;pui.rh({},"PageDown");d.d.type=="paging"&&pui.Lb&&setTimeout(function(){d.d.destroy();d.d=null;d.setScrollBar()},250)}else if(O=="genie"){Ub("PageDown");return true}};d.d.Ci(d.c)}d.d.init(d.c)}if(m){m=
1301
1301
  d.borderWidth;if(m===null||d.designMode&&m<$a)m=$a;var q=23;if(pui.is_touch&&!pui.is_mouse_capable&&!d.designMode||pui.pa)q=0;d.d.x=parseInt(d.n[d.n.length-1].style.left)-q;if(!d.designMode&&d.b!=null&&d.b.tagName=="DIV"&&d.b.getAttribute("container")=="true"){var u=d.b.parentNode;if(u!=null&&u.tagName=="DIV"&&u.style.overflowX=="scroll"){var z=u.parentNode;if(z!=null&&z.tagName=="DIV"&&z.pui!=null&&z.pui.properties!=null&&z.pui.properties.template=="simple container"&&z.pui.properties["overflow x"]==
@@ -1306,9 +1306,9 @@ case "field name sort response":break;case "return sort order":break;case "posit
1306
1306
  m==""&&d.gf[k]!=null?d.gf[k]:m;if(d.designMode){d.rd();if(k=="text align"||k=="header text align"||k=="header font family"||k=="header font size"||k=="header font style"||k=="header font weight")d.ec()}break;case "row selection":if(m=="single"||m=="multiple (simple)"||m=="multiple (extended)"){d.Ud=true;if(m=="single"){d.singleSelection=true;d.Di=false}else{d.singleSelection=false;d.Di=m=="multiple (extended)"?true:false}if(typeof pui["grid text selection"]=="undefined"||pui["grid text selection"]==
1307
1307
  false){d.c.onselectstart=ta(false);if(typeof d.c.style.MozUserSelect!="undefined")d.c.style.MozUserSelect="none"}}else{d.Ud=false;d.singleSelection=false;d.Di=false}break;case "selection value":if(m!=null&&m!="")d.Mh=m;break;case "number of rows":q=d.k.length-1;if(q<0)q=0;u=m==="#rowsPerPageRDF"?14:parseInt(m);if(isNaN(u))u=q;if(u<1)u=1;if(d.h&&u<2)u=2;if(u>99&&d.designMode)u=99;if(u>q){for(;u>d.k.length-1;)d.$e();d.Ah()}if(u<q)for(;u<d.k.length-1;)d.yj();if(d.c.e!=null)d.c.e.properties[k]=m;d.dc();
1308
1308
  break;case "number of columns":u=d.n.length-1;if(u<0)u=0;q=parseInt(m);q>d.zh&&pui.alert("WARNING: Number of maximum columns reached when loading Grid.");if(isNaN(q))q=u;if(q<1)q=1;if(q>d.zh&&d.designMode)q=d.zh;if(q>u)for(;q>d.n.length-1;)d.jn();if(q<u)for(;q<d.n.length-1;){u=d.n.length-2;if(d.designMode&&d.Fo(u))break;d.Ap()}d.designMode&&d.La();if(d.c.e!=null)d.c.e.properties[k]=m;d.dc();break;case "row height":if(isNaN(parseInt(m))||parseInt(m)<=0){d.dc(true);break}d.la=parseInt(m);k=d.h?1:0;
1309
- if(d.k.length<=k)return;q=parseInt(d.k[k].style.top);for(k=k+1;k<d.k.length;k++){q+=d.la;d.k[k].style.top=q+"px"}Ja();if(d.designMode)d.kd?d.Vb():d.La();V();d.setScrollBar();d.dc();break;case "header height":if(isNaN(parseInt(m))||parseInt(m)<=0){d.dc(true);break}d.bb=parseInt(m);if(d.Nc){d.gi=d.bb;if(d.columnHeadings!="")d.bb+=20}fe(d);break;case "has header":if(d.Nc&&(m==false||m=="false"))d.Vm=false;else if(d.h&&(m==false||m=="false")){d.Uv();d.h=false;if(O=="dspf"||pui.fa){k=d.n.length-1;for(q=
1309
+ if(d.k.length<=k)return;q=parseInt(d.k[k].style.top);for(k=k+1;k<d.k.length;k++){q+=d.la;d.k[k].style.top=q+"px"}Ja();if(d.designMode)d.kd?d.Vb():d.La();V();d.setScrollBar();d.dc();break;case "header height":if(isNaN(parseInt(m))||parseInt(m)<=0){d.dc(true);break}d.bb=parseInt(m);if(d.Oc){d.gi=d.bb;if(d.columnHeadings!="")d.bb+=20}fe(d);break;case "has header":if(d.Oc&&(m==false||m=="false"))d.Vm=false;else if(d.h&&(m==false||m=="false")){d.Uv();d.h=false;if(O=="dspf"||pui.fa){k=d.n.length-1;for(q=
1310
1310
  0;q<k;q++)ca(d.cells[1][q],d.cells[0][q]);d.Ah()}if(d.k.length>1){d.k[0].style.top=parseInt(d.k[1].style.top)-d.la+"px";Ia();Ja();d.designMode&&d.La();V();d.setScrollBar()}d.designMode&&d.rd()}if(!d.h&&(m==true||m=="true"||m=="")){d.cells.length<=1&&d.$e();d.h=true;if(O=="dspf"||pui.fa){k=d.n.length-1;for(q=0;q<k;q++)ca(d.cells[0][q],d.cells[1][q]);d.Ah()}if(d.k.length>1){d.k[0].style.top=parseInt(d.k[1].style.top)-d.bb+"px";Ia();Ja();d.designMode&&d.La();V();d.setScrollBar()}d.rd();d.ec()}break;
1311
- case "show quick filters":d.Nc=m==true||m==="true";if(d.Nc){if(!d.h){d.Vm=d.h;d.setProperty("has header","true")}if(d.gi==null)d.gi=d.bb;fe(d)}else{if(d.gi!=null){d.bb=d.gi;delete d.gi;fe(d)}if(d.Vm===false){delete d.Vm;d.setProperty("has header","false")}}d.ec();break;case "column widths":d.Pf(m);break;case "column headings":if(!pui.p(m)&&!pui.Ib(m))d.columnHeadings=pui.ha(m);d.ec();if(!d.designMode&&!d.ma&&d.ga instanceof Array)for(k=0;k<d.ga.length&&k<d.columnHeadings.length;k++)d.ga[k].name=d.columnHeadings[k];
1311
+ case "show quick filters":d.Oc=m==true||m==="true";if(d.Oc){if(!d.h){d.Vm=d.h;d.setProperty("has header","true")}if(d.gi==null)d.gi=d.bb;fe(d)}else{if(d.gi!=null){d.bb=d.gi;delete d.gi;fe(d)}if(d.Vm===false){delete d.Vm;d.setProperty("has header","false")}}d.ec();break;case "column widths":d.Pf(m);break;case "column headings":if(!pui.p(m)&&!pui.Ib(m))d.columnHeadings=pui.ha(m);d.ec();if(!d.designMode&&!d.ma&&d.ga instanceof Array)for(k=0;k<d.ga.length&&k<d.columnHeadings.length;k++)d.ga[k].name=d.columnHeadings[k];
1312
1312
  if(d.ma){d.ga=[];d.setProperty("hide columns option",true)}break;case "sortable columns":d.sortable=m=="true";O=="genie"&&d.nl();if(d.ug)d.sortable=false;break;case "default sort order":if(!d.designMode)d.Bi=m==null?[]:m.split(",");break;case "initial sort column":if(!d.designMode){d.yf=parseInt(m);if(isNaN(d.yf))d.yf=null;if(typeof m==="string"){d.Pi=m.split(",");if(d.Pi.length<=1)d.Pi=null}}break;case "initial sort field":if(!d.designMode){d.Qi=m.trim();if(typeof m==="string"){d.yg=m.split(",");
1313
1313
  if(d.yg.length<=1)d.yg=null}}break;case "resizable columns":if(!d.designMode&&(m==true||m=="true")){this.cy=qb=true;for(k=0;k<d.n.length;k++)Ya(d.n,k,true,true)}break;case "movable columns":if(!d.designMode&&d.h&&(m==true||m=="true")){this.rl=ib=true;k=d.cells[0];if(k==null){d.$e();k=d.cells[0];if(k==null){d.$e();k=d.cells[0]}}for(q=0;q<k.length;q++)da(k[q],true)}break;case "persist state":if(m=="true"||m==true)na=d.designMode==false&&pui.zg();else if(m==="session only"){na=d.designMode==false&&pui.Ro();
1314
1314
  ra=d.designMode==false&&pui.Ro()}else if(m==="program only"){na=d.designMode==false;eb=true}break;case "expand to layout":k=m==true||m=="true";if(k!=d.kd){d.kd=k;if(d.kd)if(d.designMode){d.Vb();d.c.e.properties["expand to layout"]="true";d.c.e.ob["expand to layout"]=true;d.c.e.designer.nb.Jh("expand to layout")}}break;case "find option":d.qo=m==true||m=="true";break;case "filter option":d.Gi=m==true||m=="true";break;case "filter by value option":d.rw=m==true||m=="true";break;case "hide columns option":d.ma=
@@ -1317,13 +1317,13 @@ m=="true"?true:false;break;case "context menu id":if(!d.designMode){ac(document,
1317
1317
  V()}break;case "initial page number":k=Number(m);if(isNaN(k))k=1;d.i.Gl=k;d.Lo=k;if(d.designMode){d.i.w();V()}break;case "show record number range":d.i.Qh=m==true||m=="true";if(d.designMode){d.i.w();V()}break;case "show bar":d.i.lm=m==true||m=="true";if(d.designMode){d.i.w();V()}break;case "page down condition":d.i.nt=m;break;case "subfile end":d.ku=m==true||m=="true";break;case "page up condition":d.i.ot=m;break;case "page up response":if(m!=null&&m!=""){d.i.mj=true;d.i.np=true}break;case "page down response":if(m!=
1318
1318
  null&&m!=""){d.i.lj=true;d.i.lp=true}break;case "filter response":d.designMode||sb(m);break;case "filter response text max":k=parseInt(m,10);d.nf=isNaN(k)?20:k;if(d.nf<1)d.nf=1;d.designMode||sb();break;case "filter response column max":k=parseInt(m,10);d.pe=isNaN(k)?3:k;if(d.pe<1)d.pe=1;d.designMode||sb();break;case "csv export":d.i.kg=m==true||m=="true";if(d.designMode){d.i.w();V()}break;case "xlsx export":d.i.Wh=m==true||m=="true";if(d.designMode){d.i.w();V()}break;case "xlsx export pics":d.i.Bu=
1319
1319
  m==true||m=="true";break;case "export file name":d.Yr=m;break;case "export with headings":d.Ok=m==true||m=="true";break;case "fold multiple":d.oc=parseInt(m);if(isNaN(d.oc)||d.oc<1)d.oc=1;break;case "tree level column":d.Oe=parseInt(m);d.ug=true;d.sortable=false;break;case "expanded":if(!d.designMode){if(m=="true")d.bl=true;if(m=="false")d.bl=false}break;case "collapsed":if(!d.designMode){if(m=="true")d.al=true;if(m=="false")d.al=false}break;case "tree level collapsed":if(!d.designMode){if(m=="true")d.su=
1320
- true;if(m=="false")d.su=false}break;case "single row zoom":if(m=="true")d.gu=true;break;case "scrollbar":if(O=="genie"&&!pui.fa){d.Jf=m==true||m=="true"||m==""?true:false;d.La()}else{d.Bc=true;d.Jf=false;if(m=="none"){d.Bc=false;d.Jf=false}if(m=="paging"){d.Bc=false;d.Jf=true}d.designMode&&d.La()}d.setScrollBar();break;case "scroll tool tip":d.Mp=m;d.setScrollBar();break;case "remote system name":case "database connection":case "database file":case "database join":case "database fields":case "selection criteria":case "order by":case "sortable":case "custom sql":case "allow any select statement":case "load fields into widgets":case "load all rows":case "data url":case "data transform function":case "starting row":case "ending row":case "data columns":case "data columns 2":case "data columns 3":case "data columns 4":d.dataProps[k]=
1321
- typeof m=="string"?m.trim():m;break;case "hover effect":d.Ko=m==true||m=="true";break;case "top":k=m;if(pui.p(k))k=k.designValue;var J=parseInt(d.c.style.top)-pui.Td(k);d.Gc(function(H){H.style.top=parseInt(H.style.top)-J+"px"});d.setScrollBar();break;case "left":q=m;if(pui.p(q))q=q.designValue;J=parseInt(d.c.style.left)-pui.Td(q);d.Gc(function(H){H.style.left=parseInt(H.style.left)-J+"px"});d.setScrollBar();break;case "width":if(!d.designMode||!Hb.yh){k=d.n.length;k-=1;if(k>0){q=pui.Td(m);q=d.pc("left")+
1320
+ true;if(m=="false")d.su=false}break;case "single row zoom":if(m=="true")d.gu=true;break;case "scrollbar":if(O=="genie"&&!pui.fa){d.Jf=m==true||m=="true"||m==""?true:false;d.La()}else{d.Cc=true;d.Jf=false;if(m=="none"){d.Cc=false;d.Jf=false}if(m=="paging"){d.Cc=false;d.Jf=true}d.designMode&&d.La()}d.setScrollBar();break;case "scroll tool tip":d.Mp=m;d.setScrollBar();break;case "remote system name":case "database connection":case "database file":case "database join":case "database fields":case "selection criteria":case "order by":case "sortable":case "custom sql":case "allow any select statement":case "load fields into widgets":case "load all rows":case "data url":case "data transform function":case "starting row":case "ending row":case "data columns":case "data columns 2":case "data columns 3":case "data columns 4":d.dataProps[k]=
1321
+ typeof m=="string"?m.trim():m;break;case "hover effect":d.Ko=m==true||m=="true";break;case "top":k=m;if(pui.p(k))k=k.designValue;var J=parseInt(d.c.style.top)-pui.Td(k);d.Hc(function(H){H.style.top=parseInt(H.style.top)-J+"px"});d.setScrollBar();break;case "left":q=m;if(pui.p(q))q=q.designValue;J=parseInt(d.c.style.left)-pui.Td(q);d.Hc(function(H){H.style.left=parseInt(H.style.left)-J+"px"});d.setScrollBar();break;case "width":if(!d.designMode||!Hb.yh){k=d.n.length;k-=1;if(k>0){q=pui.Td(m);q=d.pc("left")+
1322
1322
  q;if(parseInt(d.n[k-1].style.left)+5>q)q=parseInt(d.n[k-1].style.left)+5;if(O==="genie")if((u=parseInt(d.n[k].style.left))&&q-u===1)q=u;d.n[k].style.left=q+"px";Na();d.designMode&&d.La();V();d.setScrollBar();d.dc()}}break;case "height":if(m==="#subfileHeight"){if(d.c.e!=null)d.c.e.properties[k]=m;m="436px"}k=d.k.length-1;if(k!=0||!d.h){J=pui.Td(m)-parseInt(d.c.style.height);q=parseInt(J/(k-(d.h?1:0)))+parseInt(d.k[k].style.top);d.k[k].style.top=q+"px";d.la=q-parseInt(d.k[k-1].style.top);if(d.la<5)d.la=
1323
- 5;u=0;if(d.h)u=1;for(k=k-1;k>=u;k-=1){q-=d.la;d.k[k].style.top=q+"px"}if(d.h)d.k[0].style.top=parseInt(d.k[1].style.top)-d.bb+"px"}Ia();Ja();d.designMode&&d.La();V();d.setScrollBar();d.dc();break;case "z index":m=parseInt(m);if(isNaN(m))m="";d.c.style.zIndex=m;d.i!=null&&d.i.position();break;case "border color":d.ny(m);break;case "border width":d.oy(m);break;case "padding bottom":case "padding left":case "padding right":case "padding top":d.kj[k]=m;d.ec();break;case "visibility":d.visibility=m;if(!d.designMode){d.Gc(function(H){H.style.visibility=
1324
- m});if(d.d!=null)m=="hidden"?d.d.hide():d.d.w()}if(d.designMode)if(m=="hidden"){d.c.style.filter="alpha(opacity=30)";d.c.style.opacity=0.3}else{d.c.style.filter="";d.c.style.opacity=""}break;case "locked in place":d.Cf=m==true||m=="true"?true:false;break;case "css class":if(d.designMode){d.Xc=m;d.Bc&&d.d.dm(m)}d.i!=null&&d.i.dm(m);break;case "css class 2":case "css class 3":case "css class 4":case "css class 5":case "css class 6":case "css class 7":case "css class 8":case "css class 9":break;case "tool tip":d.c.title=
1323
+ 5;u=0;if(d.h)u=1;for(k=k-1;k>=u;k-=1){q-=d.la;d.k[k].style.top=q+"px"}if(d.h)d.k[0].style.top=parseInt(d.k[1].style.top)-d.bb+"px"}Ia();Ja();d.designMode&&d.La();V();d.setScrollBar();d.dc();break;case "z index":m=parseInt(m);if(isNaN(m))m="";d.c.style.zIndex=m;d.i!=null&&d.i.position();break;case "border color":d.ny(m);break;case "border width":d.oy(m);break;case "padding bottom":case "padding left":case "padding right":case "padding top":d.kj[k]=m;d.ec();break;case "visibility":d.visibility=m;if(!d.designMode){d.Hc(function(H){H.style.visibility=
1324
+ m});if(d.d!=null)m=="hidden"?d.d.hide():d.d.w()}if(d.designMode)if(m=="hidden"){d.c.style.filter="alpha(opacity=30)";d.c.style.opacity=0.3}else{d.c.style.filter="";d.c.style.opacity=""}break;case "locked in place":d.Cf=m==true||m=="true"?true:false;break;case "css class":if(d.designMode){d.Xc=m;d.Cc&&d.d.dm(m)}d.i!=null&&d.i.dm(m);break;case "css class 2":case "css class 3":case "css class 4":case "css class 5":case "css class 6":case "css class 7":case "css class 8":case "css class 9":break;case "tool tip":d.c.title=
1325
1325
  m;break;case "parent tab panel":case "parent tab":case "parent field set":break;case "onrowclick":case "onrowdblclick":case "onrowmouseover":case "onrowmouseout":case "onpagedown":case "onpageup":case "onscroll":case "onfilterchange":d.mo[k]=typeof q=="undefined"?m:q;break;case "ondbload":jd=m;break;case "propagate scroll events":d.Ll=m===true||m==="true"?true:false;break;case "sort function":if(m)oc=m;break;case "grid row translation placeholders":break;case "grid row translation placeholder key":break;
1326
- case "grid row translation placeholder value":break;case "row clicked":break;case "column clicked":break;case "subfile program message queue":d.Qs=true;break;default:if(typeof k==="string"&&k.substr(0,17)==="user defined data")break;pui.alert("Grid property not handled: "+k)}}};this.Gc=function(k){for(var m=0;m<d.n.length;m++){var q=d.n[m];k(q)}for(m=0;m<d.k.length;m++){q=d.k[m];k(q)}k(d.c);gb!=null&&k(gb);db!=null&&k(db);hb!=null&&k(hb);X!=null&&k(X);fa!=null&&k(fa);pa!=null&&k(pa);va!=null&&k(va);
1326
+ case "grid row translation placeholder value":break;case "row clicked":break;case "column clicked":break;case "subfile program message queue":d.Qs=true;break;default:if(typeof k==="string"&&k.substr(0,17)==="user defined data")break;pui.alert("Grid property not handled: "+k)}}};this.Hc=function(k){for(var m=0;m<d.n.length;m++){var q=d.n[m];k(q)}for(m=0;m<d.k.length;m++){q=d.k[m];k(q)}k(d.c);gb!=null&&k(gb);db!=null&&k(db);hb!=null&&k(hb);X!=null&&k(X);fa!=null&&k(fa);pa!=null&&k(pa);va!=null&&k(va);
1327
1327
  Ma!=null&&k(Ma)};this.em=function(k){k=ce(d,k);if(k>=0){var m=d.isFiltered()?d.X:d.dataArray;d.c.zi=m[k]==null||m[k].length==0?0:m[k].o!=null?m[k].o:k+1}};this.setCursorRecordNumber=function(k){if(typeof k=="number"&&k>0&&k<9999)d.c.zi=k};this.st=function(k){var m=d.qj;d.qj=null;if(m!=null){m=m-d.j;if(!(m<0)){d.h&&m++;if(!(m>d.cells.length-1)){var q=d.cells[m];k==true?setTimeout(function(){ia(q)},1):ia(q)}}}};this.Ay=function(){for(var k=0;k<d.dataArray.length;k++){var m=d.dataArray[k];m=m;var q=
1328
1328
  false;if(m.rc==null)if(d.we!=null){if(d.Vk==null)for(var u=0;u<d.da.length;u++)if(pui.K(d.we.fieldName)==d.da[u]){d.Vk=u;break}if(d.Vk!=null)if(m[d.Vk]=="1"&&!m.rc)q=m.rc=true}if(q){d.Kb=0;d.X=[];for(u=0;u<d.dataArray.length;u++){m=d.dataArray[u];if(m.o==null)m.o=u+1;d.Lj(m);!m.qe&&!m.rc&&d.X.push(m);m.rc&&d.Kb++}}}d.X=[];for(k=d.Kb=0;k<d.dataArray.length;k++){m=d.dataArray[k];if(m.o==null)m.o=k+1;d.Lj(m);!m.qe&&!m.rc&&d.X.push(m);m.rc&&d.Kb++}};this.isRowSelected=function(k){k=b(k,true);return ea(k)};
1329
1329
  this.getSelectedRows=function(){var k=[],m=d.dataArray;if(d.isFiltered())m=d.X;for(var q=0;q<m.length;q++)if(ea(m[q])){var u=q+1;if(typeof d.gc!="undefined"&&d.gc===true||d.isFiltered())u=m[q].o;k.push(u)}return k};this.$c=function(k,m,q){function u(ba,P,U){if(P==null)P="";else{var S=P.split(",");if(S.length>1)P=U<S.length?S[U]:S[0]}ba.style.color=P;if(O=="genie"&&!pui.fa)for(U=0;U<ba.childNodes.length;U++)ba.childNodes[U].style.color=P}function z(ba,P,U){if(P==null)P="";else{var S=P.split(",");if(S.length>
@@ -1331,13 +1331,13 @@ this.getSelectedRows=function(){var k=[],m=d.dataArray;if(d.isFiltered())m=d.X;f
1331
1331
  null){L={};L[d.da[d.Bj]]=H[I-1][d.Bj];q=pui.R(d.Aj,L,d.ref)}}if(!pui.p(d.H["row background"])&&d.H["row background"]!=null&&d.H["row background"]!="")q=d.H["row background"];var W=null;if(d.Cj!=null&&I>0){if(d.Dj==null)for(L=0;L<d.da.length;L++)if(pui.K(d.Cj.fieldName)==d.da[L]){d.Dj=L;break}if(d.Dj!=null){L={};L[d.da[d.Dj]]=H[I-1][d.Dj];W=pui.R(d.Cj,L,d.ref)}}if(!pui.p(d.H["row font color"])&&d.H["row font color"]!=null&&d.H["row font color"]!="")W=d.H["row font color"];for(L=0;L<J.length;L++){pui.ca(J[L],
1332
1332
  "selected");pui.ca(J[L],"hover");if(k){u(J[L],d.H["selection font color"],L);z(J[L],d.H["selection background"]||"",L);if((H=d.H["selection image"])&&H.trim())J[L].style.backgroundImage="url('"+pui.normalizeURL(H.trim(),true)+"')";pui.Q(J[L],"selected");d.jl=I}else if(m==true){u(J[L],d.H["hover font color"],L);z(J[L],d.H["hover background"]||"",L);if((H=d.H["hover image"])&&H.trim()){J[L].style.backgroundImage="url('"+pui.normalizeURL(H.trim(),true)+"')";J[L].style.backgroundRepeat="repeat-x"}pui.Q(J[L],
1333
1333
  "hover")}else{W=W||d.H["row font color"];if(!W||!W.trim())W=d.H[(v?"even":"odd")+" row font color"];u(J[L],W||"",L);q=q||d.H["row background"];if(!q||!q.trim())q=d.H[(v?"even":"odd")+" row background"];z(J[L],q||"",L);J[L].style.backgroundImage=""}}if(m!=true&&d.Eb!=null)d.Eb.style.display="none";if(m==true&&d.Eb!=null)d.Eb.style.display=""}}};this.mx=function(){var k=d.c.e,m=k.designer;m.aa.ln("Move "+m.selection.Jw(),m);var q=m.Ur,u,z;if(m.Ee.style.display==""){u=parseInt(m.Ee.style.top);z=parseInt(m.Ee.style.left)}else{u=
1334
- parseInt(k.dom.style.top);z=parseInt(k.dom.style.left)}var v=pui.layout.sf(q);z-=v.x;u-=v.y;if(m.selection.iu){z=m.selection.Sj(z,pui.tl);u=m.selection.Sj(u,pui.ul)}var J=u-parseInt(k.dom.style.top),H=z-parseInt(k.dom.style.left);d.Gc(function(I){I.parentNode.removeChild(I);q.appendChild(I);I.style.top=parseInt(I.style.top)+J+"px";I.style.left=parseInt(I.style.left)+H+"px"});d.d!=null&&d.d.$g(q);d.i!=null&&d.i.$g(q);d.b=q;d.c.sizeMe!=null&&typeof d.c.sizeMe=="function"&&d.c.sizeMe();d.setScrollBar();
1335
- k.properties.top=u+"px";k.properties.left=z+"px";m.nz.style.display="none";m.Ee.style.display="none";m.Ur=null;m.selection.clear();m.selection.add(k);m.kn();pui.ide.Et()};this.nx=function(){var k=d.c.e,m=k.designer;m.aa.ln("Move "+m.selection.Jw(),m);var q=parseInt(m.Ee.style.top)-parseInt(k.dom.style.top),u=parseInt(m.Ee.style.left)-parseInt(k.dom.style.left);d.Gc(function(z){z.parentNode.removeChild(z);m.b.appendChild(z);z.style.top=parseInt(z.style.top)+q+"px";z.style.left=parseInt(z.style.left)+
1334
+ parseInt(k.dom.style.top);z=parseInt(k.dom.style.left)}var v=pui.layout.sf(q);z-=v.x;u-=v.y;if(m.selection.iu){z=m.selection.Sj(z,pui.tl);u=m.selection.Sj(u,pui.ul)}var J=u-parseInt(k.dom.style.top),H=z-parseInt(k.dom.style.left);d.Hc(function(I){I.parentNode.removeChild(I);q.appendChild(I);I.style.top=parseInt(I.style.top)+J+"px";I.style.left=parseInt(I.style.left)+H+"px"});d.d!=null&&d.d.$g(q);d.i!=null&&d.i.$g(q);d.b=q;d.c.sizeMe!=null&&typeof d.c.sizeMe=="function"&&d.c.sizeMe();d.setScrollBar();
1335
+ k.properties.top=u+"px";k.properties.left=z+"px";m.nz.style.display="none";m.Ee.style.display="none";m.Ur=null;m.selection.clear();m.selection.add(k);m.kn();pui.ide.Et()};this.nx=function(){var k=d.c.e,m=k.designer;m.aa.ln("Move "+m.selection.Jw(),m);var q=parseInt(m.Ee.style.top)-parseInt(k.dom.style.top),u=parseInt(m.Ee.style.left)-parseInt(k.dom.style.left);d.Hc(function(z){z.parentNode.removeChild(z);m.b.appendChild(z);z.style.top=parseInt(z.style.top)+q+"px";z.style.left=parseInt(z.style.left)+
1336
1336
  u+"px"});d.d!=null&&d.d.$g(m.b);d.i!=null&&d.i.$g(m.b);d.b=m.b;d.setScrollBar();k.properties.top=m.Ee.style.top;k.properties.left=m.Ee.style.left;m.Ee.style.display="none";m.selection.clear();m.selection.add(k);m.kn();pui.ide.Et()};this.selectRow=function(k,m){if(!(!d.Ud||k<1||k>d.dataArray.length)){for(var q=!d.isFiltered()&&(typeof d.gc=="undefined"||d.gc!==true),u=0;u<d.dataArray.length;u++)if(q&&u==k-1||!q&&d.dataArray[u].o==k){if(d.dataArray[u].selected!=true){Da(d.dataArray[u],true,u);if(d.j!=
1337
1337
  null&&!isNaN(d.j)&&d.j>0)d.Lh=k+d.j-1+(d.h?0:1)}}else if((d.singleSelection||!m)&&d.dataArray[u].selected==true)Da(d.dataArray[u],false,u);de(d)}};this.deselectRow=function(k){function m(z){Da(d.dataArray[z],false,z);if(q)de(d);else if(d.j!=null&&!isNaN(d.j)&&d.j>0){var v=d.h?1:0;z=z-d.j+1+v;z<d.k.length-1&&z>=v&&d.$c(z)}}if(!(!d.Ud||k<1||k>d.dataArray.length)){var q=d.isFiltered();if(!q&&(typeof d.gc=="undefined"||d.gc!==true))d.dataArray[k-1].selected==true&&m(k-1);else for(var u=0;u<d.dataArray.length;u++)if(d.dataArray[u].o==
1338
1338
  k&&d.dataArray[u].selected==true){m(u);break}}};this.rd=function(){for(var k=0;k<d.cells.length;k++){for(var m=k==0&&d.h,q=0;q<d.cells[k].length;q++){var u=d.cells[k][q],z=k%2==1;if(d.h)z=!z;jb(u,m,z,q)}!d.designMode&&!m&&d.$c(k)}};this.La=function(){for(var k=0;k<d.cells.length;k++)for(var m=0;m<d.cells[k].length;m++)qa(k,m);if(Pa==null)Pa=d.rf()};this.ea=function(){return d.dataProps["custom sql"]!=null&&d.dataProps["custom sql"]!=""||d.dataProps["data url"]!=null&&d.dataProps["data url"]!=""||
1339
1339
  d.dataProps["database file"]!=null&&d.dataProps["database file"]!=""?true:false};this.ny=function(k){if(!k)k=d.borderColor;for(var m=0;m<d.n.length;m++)d.n[m].style.borderRightColor=k;for(m=0;m<d.k.length;m++)d.k[m].style.borderTopColor=k;d.borderColor=k};this.oy=function(k){if(k==null)k=d.borderWidth;k=parseInt(k);if(isNaN(k)||k<$a&&d.designMode)k=$a;for(var m=0;m<d.n.length;m++)d.n[m].style.borderRightWidth=k+"px";for(m=0;m<d.k.length;m++)d.k[m].style.borderTopWidth=k+"px";d.borderWidth=k;Na();
1340
- d.setScrollBar()};this.hide=function(){d.Gc(function(k){k.style.visibility="hidden"});d.d!=null&&d.d.hide();d.i!=null&&d.i.hide()};this.Jo=function(){d.Ne=true;if(d.h){for(var k=1;k<d.cells.length;k++)for(var m=0;m<d.cells[k].length;m++)d.cells[k][m].style.display="none";for(k=2;k<d.k.length;k++)d.k[k].style.display="none";for(k=0;k<d.n.length;k++)d.n[k].style.display="none";d.d!=null&&d.d.hide();d.i!=null&&d.i.hide()}else d.hide()};this.show=function(){d.Gc(function(u){u.style.visibility=""});var k=
1340
+ d.setScrollBar()};this.hide=function(){d.Hc(function(k){k.style.visibility="hidden"});d.d!=null&&d.d.hide();d.i!=null&&d.i.hide()};this.Jo=function(){d.Ne=true;if(d.h){for(var k=1;k<d.cells.length;k++)for(var m=0;m<d.cells[k].length;m++)d.cells[k][m].style.display="none";for(k=2;k<d.k.length;k++)d.k[k].style.display="none";for(k=0;k<d.n.length;k++)d.n[k].style.display="none";d.d!=null&&d.d.hide();d.i!=null&&d.i.hide()}else d.hide()};this.show=function(){d.Hc(function(u){u.style.visibility=""});var k=
1341
1341
  false,m=d.c.e;if(m!=null){var q=m.designer.selection;if(q.Qd.length==1&&q.Qd[0].e==m)k=true}!k&&d.c.Nr&&d.c.Nr();d.setScrollBar()};this.jn=function(k){var m=d.n.length,q=document.createElement("div");q.className="grid-vline";if(d.Xc!="")q.className+=" "+d.Xc+"-vline";if(!d.designMode)q.Fe=d;q.style.position="absolute";var u=parseInt(d.c.style.left);if(m>0)u=parseInt(d.n[m-1].style.left)+d.Qr;q.style.left=u+"px";q.style.top=d.c.style.top;u=0;if(d.k.length>0)u=parseInt(d.k[d.k.length-1].style.top)-
1342
1342
  parseInt(d.c.style.top);q.style.height=u+"px";u=d.borderWidth;if(u===null||u<$a&&d.designMode)u=$a;q.style.borderRightStyle="solid";q.style.borderRightWidth=u+"px";q.style.borderRightColor=d.borderColor;q.style.fontSize="0px";q.style.padding="0px";q.style.zIndex=d.$y;q.oncontextmenu=ta(false);d.b.appendChild(q);d.n[m]=q;Na();Ya(d.n,m,true);if(m>0){m=m-1;for(q=1;q<d.k.length;q++){u=cb(q-1,m);u.A=d.ma&&(k||k==0)?k:m;da(u)}}V();d.setScrollBar()};this.removeColumn=function(k){d.ma?d.hideColumn(k):d.Hp(k)};
1343
1343
  this.Hp=function(k){if(d.n.length-2<1)pui.alert(pui.getLanguageText("runtimeMsg","cannot rmv last col"));else{if(d.designMode)k=k;else{k=Ba(k);if(k<0){pui.alert(pui.getLanguageText("runtimeMsg","cannot find col"));return}}d.moveColumn(k,d.cells[0].length);d.Ap();d.Vb();d.Je()}};this.Ap=function(){var k=d.n.length;if(!(k<=0)){k-=1;d.n[k].parentNode.removeChild(d.n[k]);d.n[k]=null;d.n.splice(k,1);if(k>0)for(var m=0;m<d.cells.length;m++){d.cells[m][k-1].parentNode.removeChild(d.cells[m][k-1]);d.cells[m][k-
@@ -1349,8 +1349,8 @@ z("odd row background");z("even row font color");z("even row background");z("row
1349
1349
  q.columnId?m:J>=m&&J<k+1?H+1:u(m,k,J,H):u(m,k,J,H);if(J!=H)W.column=String(H)}d.columnHeadings.splice(m,0,d.columnHeadings[k]);v=k;m<=k&&v++;d.columnHeadings.splice(v,1);d.alignColumnTotals()}};this.$e=function(){var k=d.k.length,m=document.createElement("div");m.className="grid-hline";if(d.Xc!="")m.className+=" "+d.Xc+"-hline";if(!d.designMode)m.Fe=d;m.style.position="absolute";m.style.left=d.c.style.left;var q=parseInt(d.c.style.top);if(k>0){q=d.la;if(k==1&&d.h)q=d.bb;q=parseInt(d.k[k-1].style.top)+
1350
1350
  q}m.style.top=q+"px";q=0;if(d.n.length>0){q=d.borderWidth;q=parseInt(d.n[d.n.length-1].style.left)-parseInt(d.c.style.left)+q}m.style.width=q+"px";q=d.borderWidth;if(q<$a&&d.designMode)q=$a;if(q!==null)m.style.borderTopWidth=q+"px";m.style.zIndex=d.Mw;if(d.c.style.visibility=="hidden")m.style.visibility="hidden";m.oncontextmenu=ta(false);d.b.appendChild(m);d.k[k]=m;Ja();Ya(d.k,k,false);if(k>0)for(m=1;m<d.n.length;m++){q=m-1;var u=cb(k-1,q);u.A=q;da(u)}V();d.setScrollBar()};this.yj=function(){var k=
1351
1351
  d.k.length;if(!(k<=0)){k-=1;d.k[k].parentNode.removeChild(d.k[k]);d.k[k]=null;d.k.splice(k,1);k=d.cells.length-1;if(k>=0){for(var m=d.cells[k].length-1;m>=0;m-=1){d.cells[k][m].parentNode.removeChild(d.cells[k][m]);d.cells[k][m]=null;d.cells[k].splice(m,1)}d.cells.splice(k,1)}Ja();V();d.setScrollBar()}};this.alignColumnTotals=function(){var k=0;if(d.h)k=1;k=d.cells[k];for(var m=0;m<k.length;m++)for(var q=k[m],u=q.children,z=0;z<u.length;z++){var v=u[z],J=v.id;J=J.split(".")[0]+"_total";J=Eb(J);if(J!=
1352
- null)J.style.left=parseInt(d.c.style.left)+parseInt(q.style.left)+parseInt(v.style.left)+"px"}};this.scrollToRow=function(k){k=parseInt(k,10);if(isNaN(k))console.log("scrollToRow cannot parseInt:",k);else{if(k<1)k=1;if(d.Bc)d.d.sd(k);else{d.j=k;d.getData()}return d.getRRN(k)}};this.setNumberOfRows=function(k){d.setProperty("number of rows",String(k));d.La();d.rd();d.Jt||d.getData()};this.render=function(){d.La();d.rd();d.ec();d.Ne&&d.Jo()};this.refresh=function(){d.j=1;d.totalRecs=null;d.Aa=false;
1353
- if(d.Bc)d.d.Ra=d.totalRecs;pui.Oa=null;d.getData()};this.getRecordCount=function(){var k;k=d.ea()?d.totalRecs:d.dataArray.length;if(k==null)k=0;return k};this.expandTreeLevel=function(k){if(k===0)d.ve.expandAll();else{var m=d.Nb[k-1].node;ge(d.ve,m)}d.Ol(m)};this.collapseTreeLevel=function(k){if(k===0)d.ve.collapseAll();else{var m=d.Nb[k-1].node;he(d.ve,m)}d.Ol(m)};this.toggleTreeLevel=function(k){k=d.Nb[k-1].node;var m=d.ve;if(k.Ed==="expanded"){he(m,k);k.Ed="collapsed"}else{ge(m,k);k.Ed="expanded"}d.Ol(k)};
1352
+ null)J.style.left=parseInt(d.c.style.left)+parseInt(q.style.left)+parseInt(v.style.left)+"px"}};this.scrollToRow=function(k){k=parseInt(k,10);if(isNaN(k))console.log("scrollToRow cannot parseInt:",k);else{if(k<1)k=1;if(d.Cc)d.d.sd(k);else{d.j=k;d.getData()}return d.getRRN(k)}};this.setNumberOfRows=function(k){d.setProperty("number of rows",String(k));d.La();d.rd();d.Jt||d.getData()};this.render=function(){d.La();d.rd();d.ec();d.Ne&&d.Jo()};this.refresh=function(){d.j=1;d.totalRecs=null;d.Aa=false;
1353
+ if(d.Cc)d.d.Ra=d.totalRecs;pui.Oa=null;d.getData()};this.getRecordCount=function(){var k;k=d.ea()?d.totalRecs:d.dataArray.length;if(k==null)k=0;return k};this.expandTreeLevel=function(k){if(k===0)d.ve.expandAll();else{var m=d.Nb[k-1].node;ge(d.ve,m)}d.Ol(m)};this.collapseTreeLevel=function(k){if(k===0)d.ve.collapseAll();else{var m=d.Nb[k-1].node;he(d.ve,m)}d.Ol(m)};this.toggleTreeLevel=function(k){k=d.Nb[k-1].node;var m=d.ve;if(k.Ed==="expanded"){he(m,k);k.Ed="collapsed"}else{ge(m,k);k.Ed="expanded"}d.Ol(k)};
1354
1354
  this.Ol=function(k){if(k===undefined||k===null){var m=0;k=d.Nb.length}else{m=parseInt(k.data)-1;k=ie(d.ve,k)}for(m=m;m<k;m++){var q=m+1,u=d.Nb[m].node;u.Gg?d.Uk(q,false,false):d.Uk(q,true,false);d.Nb[m].tu=u.Ed==="collapsed"?true:false}d.getData()};this.Iw=function(){if(d.Oe!==null)return d.Oe;for(var k=d.Oe=0;k<d.N.length;k++)if(d.N[k].value.fieldName.toUpperCase()===d.Sf.toUpperCase()){d.Oe=d.N[k].columnId;break}return d.Oe};this.clear=function(k){d.dataArray=[];for(var m=0;m<d.N.length;m++)d.N[m].domEls=
1355
1355
  [];k&&d.refresh()};this.push=function(k,m){var q=lb(k);d.dataArray.push(q);m&&d.refresh()};this.addRecords=function(k,m){for(var q=0;q<k.length;q++)d.push(k[q]);m&&d.refresh()};this.replaceRecords=function(k,m){d.clear();d.addRecords(k);m&&d.refresh()};this.splice=function(k,m){k-=1;for(var q=false,u=[k,m],z=[k,m],v=2;v<arguments.length;v++){var J=arguments[v];if(typeof J==="boolean"&&v+1===arguments.length)q=true;if(typeof J==="object"){J=lb(J);u.push(J);z.push(undefined)}}d.dataArray.splice.apply(d.dataArray,
1356
1356
  u);for(v=0;v<d.N.length;v++){u=d.N[v].domEls;u.splice.apply(u,z)}q&&d.refresh()};this.insertRow=function(k){for(var m=[k,0],q=1;q<arguments.length;q++){var u=arguments[q];typeof u==="object"&&m.push(u)}d.splice.apply(d,m)};this.unshiftRow=function(){for(var k=false,m=[1,0],q=0;q<arguments.length;q++){var u=arguments[q];if(typeof u==="boolean"&&q+1===arguments.length)k=true;typeof u==="object"&&m.push(u)}d.splice.apply(d,m);k&&d.refresh()};this.removeRow=function(k,m){d.splice(k,1);m&&d.refresh()};
@@ -1360,12 +1360,12 @@ m.hidableColState.cols[q];if(z.savedColumn!=null&&z.savedColumn>=0&&z.showing){u
1360
1360
  m>=0)for(q=0;q<d.dataArray.length;q++)if(d.dataArray[q].selection&&d.dataArray[q].selection.modified)d.dataArray[q].selected&&k++;else d.dataArray[q][m]==d.Mh&&k++}return k};this.Oi=function(){if(d.Dd){var k=Eb(d.Dd);if(k)if(!k.Rj)if(!(O=="genie"&&d.designMode)){k.style.visibility="hidden";k.style.display="none"}}};this.vo=function(k,m){if(k==null||isNaN(k))return null;for(var q=0;q<d.N.length;q++){var u=d.N[q],z=u.value;if(u["field type"]=="html container")z=u.html;if(z!=null&&typeof z=="object"&&
1361
1361
  z.fieldName!=null)if(Number(u.column)==k)return m<=10?z.fieldName.toUpperCase():z.longName!==undefined?z.longName.toUpperCase():z.fieldName.toUpperCase()}return null};this.getColumnIndexFromFieldName=function(k){k=pui.K(k);for(var m=0;m<d.N.length;m++){var q=d.N[m],u=q.value;if(q["field type"]=="html container")u=q.html;if(u!=null&&typeof u=="object"&&(u.fieldName!=null&&pui.K(u.fieldName)==k||u.longName!=null&&pui.K(u.longName)==k)){q=Number(q.column);if(q!=null&&!isNaN(q))return q}}return null};
1362
1362
  this.getColumnIdFromFieldName=function(k){k=pui.K(k);for(var m=0;m<d.N.length;m++){var q=d.N[m],u=q.value;if(q["field type"]=="html container")u=q.html;if(u!=null&&typeof u=="object"&&(u.fieldName!=null&&pui.K(u.fieldName)==k||u.longName!=null&&pui.K(u.longName)==k)){q=q.columnId;if(q!=null&&!isNaN(q))return q}}return null};this.Pj=function(k,m){if(!(d.ea()&&d.Aa==false))if(k.Hj==null){k.Hj=[];if(k.pui==null)k.pui={};k.pui.formats=[];k.pui.qd=[];for(var q=0;q<d.N.length;q++){var u=d.N[q],z=Number(u.column),
1363
- v=u.value;if(u["field type"]=="html container")v=u.html;if(pui.p(v)&&m||pui.p(v)&&!isNaN(z)&&z==k.col){u=pui.K(v.fieldName);for(z=0;z<d.da.length;z++)if(u==d.da[z]){k.Hj.push(z);k.pui.formats.push(v);k.pui.qd.push(q);break}}}}};this.startFind=function(k){if(typeof k=="number")k=d.cells[0][Ba(k)];if(k!=null){d.Pk=k;d.$a.type="find";d.$a.If=d.find;var m=pui.getLanguageText("runtimeText","find text")+"...";d.$a.uc.placeholder=m;Zd(d.$a,k);if(d.ea())d.$a.interval=250;d.Pj(k);d.Y.A=k.A;d.Y.col=k.col;d.$a.show();
1364
- d.$a.clear();d.$a.focus()}};this.clearHighlighting=function(){d.Y.text="";d.getData()};this.find=function(k,m,q){if(!d.Oc){var u=d.Pk,z=k,v=m;if(typeof k=="number"){u=d.cells[0][Ba(k)];if(u==null)return;z=m;v=q;d.Y.A=u.A;d.Y.col=u.col;d.Pj(u)}d.Y.text="";if(z=="")d.getData();else if(d.ea()&&d.Aa==false){rc=d.Y.text=z;qc=u.A+1;sc=1;if(v)sc=d.j+1;d.mask();d.Wb();d.getData();sc=qc=rc=null}else{q=0;if(v)q=d.j;v=z.toLowerCase();k=u.Hj;var J=false;m=d.dataArray;if(d.isFiltered())m=d.X;for(q=q;q<m.length;q++){for(var H=
1365
- 0;H<k.length;H++){var I=m[q][k[H]];if(u.pui&&u.pui.formats&&u.pui.formats[H]!=null&&typeof u.pui.formats[H]=="object"){u.pui.formats[H].value=I;I=pui.sc.format(u.pui.formats[H])}if(I.toLowerCase().indexOf(v)>=0){d.Y.text=z;J=q+1;if(d.j!=J)if(d.d!=null&&d.d.type=="sliding")d.d.sd(J,false)===false&&d.getData();else if(d.i){H=d.getRecordCount()-d.zo()+1;J>H?d.scrollToRow(H):d.scrollToRow(J)}else d.getData();else d.getData();J=true;break}}if(J)break}J||d.getData()}}};this.startFilter=function(k){if(typeof k==
1366
- "number")k=d.cells[0][Ba(k)];if(k!=null){d.Pk=k;d.$a.type=d.$j()?"pgfilter":"filter";d.$a.If=d.dw;var m=pui.getLanguageText("runtimeText","filter text")+"...";d.$a.uc.placeholder=m;d.Nc||Zd(d.$a,k);if(d.ea())d.$a.interval=250;d.Pj(k);d.Y.A=k.A;d.Y.col=k.col;if(!d.Nc){d.$a.show();d.$a.clear()}if(k.sa!=null&&k.sa!=""){d.$a.setText(k.nh?"":k.sa);d.Y.text=k.sa;d.getData()}if(d.Nc)(k=k.querySelector("input.qf"))&&k.focus();else d.$a.focus()}};this.dw=function(k){var m=d.Pk;k==""?d.removeFilter(m):d.setFilter(m,
1367
- k)};this.setFilter=function(k,m){if(!d.Oc){var q=false;if(k==="*all"){q=true;k=d.cells[0][0]}else!d.cells[0][0].nc&&d.cells[0][0].nh&&d.removeFilter(d.cells[0][0]);if(typeof k=="number")k=d.cells[0][Ba(k)];if(k!=null){if(d.$j())return Xa(k,m);d.Pj(k,q);d.Y.A=k.A;d.Y.col=q?"*all":k.col;d.Y.text=m;if(q){for(var u=d.cells[0],z=0;z<u.length;z++){d.xj(u[z]);u[z].sa=null}k.nh=true}else d.gm(k);k.sa=m;if(d.Nc)if(z=k.querySelector("input.qf"))z.value=m;if(d.ea()&&d.Aa==false){d.totalRecs=null;d.j=1;d.mask();
1368
- d.Wb()}else{u=k.Hj;var v=k.A;d.X=[];for(z=0;z<d.dataArray.length;z++){var J=d.dataArray[z];if(q)J.Fd=[];if(J.o==null)J.o=z+1;for(var H=0;H<u.length;H++){var I=J[u[H]],L=false;if(k.pui!=null){if(k.pui.formats!=null&&k.pui.formats[H]!=null&&typeof k.pui.formats[H]=="object"){var W=k.pui.formats[H];W.value=I;I=pui.sc.format(W)}if(k.pui.qd!=null&&k.pui.qd[H]!=null&&d.N[k.pui.qd[H]]!=null&&typeof d.N[k.pui.qd[H]]=="object"){W=d.N[k.pui.qd[H]];var ba=parseInt(W.left,10),P=parseInt(W.top,10);if(W.visibility==
1363
+ v=u.value;if(u["field type"]=="html container")v=u.html;if(pui.p(v)&&m||pui.p(v)&&!isNaN(z)&&z==k.col){u=pui.K(v.fieldName);for(z=0;z<d.da.length;z++)if(u==d.da[z]){k.Hj.push(z);k.pui.formats.push(v);k.pui.qd.push(q);break}}}}};this.startFind=function(k){if(typeof k=="number")k=d.cells[0][Ba(k)];if(k!=null){d.Pk=k;d.$a.type="find";d.$a.If=d.find;var m=pui.getLanguageText("runtimeText","find text")+"...";d.$a.vc.placeholder=m;Zd(d.$a,k);if(d.ea())d.$a.interval=250;d.Pj(k);d.Y.A=k.A;d.Y.col=k.col;d.$a.show();
1364
+ d.$a.clear();d.$a.focus()}};this.clearHighlighting=function(){d.Y.text="";d.getData()};this.find=function(k,m,q){if(!d.sc){var u=d.Pk,z=k,v=m;if(typeof k=="number"){u=d.cells[0][Ba(k)];if(u==null)return;z=m;v=q;d.Y.A=u.A;d.Y.col=u.col;d.Pj(u)}d.Y.text="";if(z=="")d.getData();else if(d.ea()&&d.Aa==false){rc=d.Y.text=z;qc=u.A+1;sc=1;if(v)sc=d.j+1;d.mask();d.Wb();d.getData();sc=qc=rc=null}else{q=0;if(v)q=d.j;v=z.toLowerCase();k=u.Hj;var J=false;m=d.dataArray;if(d.isFiltered())m=d.X;for(q=q;q<m.length;q++){for(var H=
1365
+ 0;H<k.length;H++){var I=m[q][k[H]];if(u.pui&&u.pui.formats&&u.pui.formats[H]!=null&&typeof u.pui.formats[H]=="object"){u.pui.formats[H].value=I;I=pui.tc.format(u.pui.formats[H])}if(I.toLowerCase().indexOf(v)>=0){d.Y.text=z;J=q+1;if(d.j!=J)if(d.d!=null&&d.d.type=="sliding")d.d.sd(J,false)===false&&d.getData();else if(d.i){H=d.getRecordCount()-d.zo()+1;J>H?d.scrollToRow(H):d.scrollToRow(J)}else d.getData();else d.getData();J=true;break}}if(J)break}J||d.getData()}}};this.startFilter=function(k){if(typeof k==
1366
+ "number")k=d.cells[0][Ba(k)];if(k!=null){d.Pk=k;d.$a.type=d.$j()?"pgfilter":"filter";d.$a.If=d.dw;var m=pui.getLanguageText("runtimeText","filter text")+"...";d.$a.vc.placeholder=m;d.Oc||Zd(d.$a,k);if(d.ea())d.$a.interval=250;d.Pj(k);d.Y.A=k.A;d.Y.col=k.col;if(!d.Oc){d.$a.show();d.$a.clear()}if(k.sa!=null&&k.sa!=""){d.$a.setText(k.nh?"":k.sa);d.Y.text=k.sa;d.getData()}if(d.Oc)(k=k.querySelector("input.qf"))&&k.focus();else d.$a.focus()}};this.dw=function(k){var m=d.Pk;k==""?d.removeFilter(m):d.setFilter(m,
1367
+ k)};this.setFilter=function(k,m){if(!d.sc){var q=false;if(k==="*all"){q=true;k=d.cells[0][0]}else!d.cells[0][0].nc&&d.cells[0][0].nh&&d.removeFilter(d.cells[0][0]);if(typeof k=="number")k=d.cells[0][Ba(k)];if(k!=null){if(d.$j())return Xa(k,m);d.Pj(k,q);d.Y.A=k.A;d.Y.col=q?"*all":k.col;d.Y.text=m;if(q){for(var u=d.cells[0],z=0;z<u.length;z++){d.xj(u[z]);u[z].sa=null}k.nh=true}else d.gm(k);k.sa=m;if(d.Oc)if(z=k.querySelector("input.qf"))z.value=m;if(d.ea()&&d.Aa==false){d.totalRecs=null;d.j=1;d.mask();
1368
+ d.Wb()}else{u=k.Hj;var v=k.A;d.X=[];for(z=0;z<d.dataArray.length;z++){var J=d.dataArray[z];if(q)J.Fd=[];if(J.o==null)J.o=z+1;for(var H=0;H<u.length;H++){var I=J[u[H]],L=false;if(k.pui!=null){if(k.pui.formats!=null&&k.pui.formats[H]!=null&&typeof k.pui.formats[H]=="object"){var W=k.pui.formats[H];W.value=I;I=pui.tc.format(W)}if(k.pui.qd!=null&&k.pui.qd[H]!=null&&d.N[k.pui.qd[H]]!=null&&typeof d.N[k.pui.qd[H]]=="object"){W=d.N[k.pui.qd[H]];var ba=parseInt(W.left,10),P=parseInt(W.top,10);if(W.visibility==
1369
1369
  "hidden"||!isNaN(ba)&&!isNaN(P)&&ba<0&&P<0)L=true}}if(J.Fd==null)J.Fd=[];J.Fd[v]=true;if(!L&&d.Sy(I,m)){J.Fd[v]=false;break}}d.Lj(J);!J.qe&&!J.rc&&d.X.push(J)}}d.getData();na&&d.Pt(q,m);Q("onfilterchange")}}};this.Pt=function(k,m){var q=[];if(k)q.push({text:m,column:"*all",curCol:"*all"});else for(var u=d.cells[0],z=0;z<u.length;z++){var v=u[z];v.sa!=null&&v.sa!=""&&q.push({text:v.sa,column:v.A,curCol:v.col})}q.length<1?d.clearState("filters"):N(q,"filters")};this.getFilter=function(k){var m=false;
1370
1370
  if(k==="*all"){k=0;m=true}if(typeof k=="number")k=d.cells[0][m?0:Ba(k)];if(k==null||typeof k.sa=="undefined")return null;if(m&&!k.nh||!m&&k.nh)return null;return k.sa};this.Sy=function(k,m){function q(H){if(u){var I=H.split(".").join("").replace(",",".");if(!isNaN(I))return I}if(H.indexOf(",")!=-1){I=H.split(",").join("");if(!isNaN(I))return I}return H}var u=pui.appJob!=null&&(pui.appJob.decimalFormat=="I"||pui.appJob.decimalFormat=="J");if(m.substr(0,8).toLowerCase()=="between "){var z=m.substr(8).toLowerCase().split(" ");
1371
1371
  if(z.length==3&&z[1]=="and"){var v=z[0];z=z[2];if(!isNaN(v)&&!isNaN(z)){v=Number(v);z=Number(z);k=Number(k)}else k=k.toLowerCase();return k>=v&&k<=z}}if(m.substr(0,7).toLowerCase()=="values "){m=m.substr(7).toLowerCase();if(m=="")return true;v=m.split(",");for(z=0;z<v.length;z++){m=Kb(v[z]).toLowerCase();if(m==" "&&k=="")return true;if(Kb(k).toLowerCase()==m)return true}return false}else if(m.substr(0,8).toLowerCase()=="jvalues "){m=m.substr(8).toLowerCase();if(m=="")return true;try{v=JSON.parse(m);
@@ -1375,8 +1375,8 @@ k.toLowerCase()}else if(m.substr(0,1)==">"){m=m.substr(1);if(m=="")return true;m
1375
1375
  k+"=BET&fltrval"+k+"_0="+encodeURIComponent(u[1])+"&fltrval"+k+"_1="+encodeURIComponent(u[2]);else if(m.substr(0,7)=="VALUES "){u=m.substr(7);if(u!=""){u=u.split(",");if(u.length>0){q="&fltrtype"+k+"=VAL&fltrcnt"+k+"="+String(u.length);for(var z=0;z<u.length;z++)q+="&fltrval"+k+"_"+String(z)+"="+encodeURIComponent(Kb(u[z]))}}}else if(m.substr(0,8)=="JVALUES "){u=m.substr(8);if(u!=""){try{u=JSON.parse(u);Array.isArray(u)||(u=[])}catch(v){u=[]}if(u.length>0){q="&fltrtype"+k+"=VAL&fltrcnt"+k+"="+String(u.length);
1376
1376
  for(z=0;z<u.length;z++)q+="&fltrval"+k+"_"+String(z)+"="+encodeURIComponent(Kb(u[z]))}}}else q=m.substr(0,12)=="STARTS WITH "?"&fltrtype"+k+"=STW&fltrval"+k+"="+encodeURIComponent(m.substr(12)):m.substr(0,2)=="=="?"&fltrtype"+k+"=%3D&fltrval"+k+"="+encodeURIComponent(m.substr(2)):m.substr(0,1)=="="?"&fltrtype"+k+"=%3D&fltrval"+k+"="+encodeURIComponent(m.substr(1)):m.substr(0,2)==">="?"&fltrtype"+k+"=%3E%3D&fltrval"+k+"="+encodeURIComponent(m.substr(2)):m.substr(0,2)=="<="?"&fltrtype"+k+"=%3C%3D&fltrval"+
1377
1377
  k+"="+encodeURIComponent(m.substr(2)):m.substr(0,2)=="!="||m.substr(0,2)=="<>"?"&fltrtype"+k+"=!%3D&fltrval"+k+"="+encodeURIComponent(m.substr(2)):m.substr(0,1)==">"?"&fltrtype"+k+"=%3E&fltrval"+k+"="+encodeURIComponent(m.substr(1)):m.substr(0,1)=="<"?"&fltrtype"+k+"=%3C&fltrval"+k+"="+encodeURIComponent(m.substr(1)):"&fltrtype"+k+"=CON&fltrval"+k+"="+encodeURIComponent(m);return q};this.Lj=function(k){k.qe=false;if(k.Fd!=null)for(var m=0;m<k.Fd.length;m++)if(k.Fd[m]===true){k.qe=true;break}};this.removeFilter=
1378
- function(k){if(!d.Oc){if(typeof k=="number")k=d.cells[0][Ba(k)];if(k!=null){d.Y.text="";d.xj(k);k.sa=null;if(d.Nc){var m=k.querySelector("input.qf");if(m)m.value=""}if(d.$j())return Xa(k,"");else if(d.ea()&&d.Aa==false){d.totalRecs=null;d.j=1;d.mask();d.Wb()}else{k.nh&&delete k.nh;k=k.A;d.X=[];for(m=0;m<d.dataArray.length;m++){var q=d.dataArray[m];if(q.o==null)q.o=m+1;if(q.Fd!=null)q.Fd[k]=false;d.Lj(q);!q.qe&&!q.rc&&d.X.push(q)}}d.getData();na&&d.Pt();Q("onfilterchange")}}};this.removeAllFilters=
1379
- function(){if(!d.Oc){d.Y.text="";for(var k=d.cells[0],m=0;m<k.length;m++){var q=k[m];d.xj(q);q.sa=null;if(d.Nc)if(q=q.querySelector("input.qf"))q.value=""}if(d.$j())return rb("","");d.X=[];for(m=0;m<d.dataArray.length;m++){k=d.dataArray[m];k.Fd=null;k.qe=false;if(k.o==null)k.o=m+1;k.rc||d.X.push(k)}if(d.ea()&&d.Aa==false){d.totalRecs=null;d.j=1;d.mask();d.Wb()}d.getData();d.clearState("filters");Q("onfilterchange")}};this.ls=function(){for(var k=0,m=d.cells[0],q=0;q<m.length;q++){var u=m[q];u.sa!=
1378
+ function(k){if(!d.sc){if(typeof k=="number")k=d.cells[0][Ba(k)];if(k!=null){d.Y.text="";d.xj(k);k.sa=null;if(d.Oc){var m=k.querySelector("input.qf");if(m)m.value=""}if(d.$j())return Xa(k,"");else if(d.ea()&&d.Aa==false){d.totalRecs=null;d.j=1;d.mask();d.Wb()}else{k.nh&&delete k.nh;k=k.A;d.X=[];for(m=0;m<d.dataArray.length;m++){var q=d.dataArray[m];if(q.o==null)q.o=m+1;if(q.Fd!=null)q.Fd[k]=false;d.Lj(q);!q.qe&&!q.rc&&d.X.push(q)}}d.getData();na&&d.Pt();Q("onfilterchange")}}};this.removeAllFilters=
1379
+ function(){if(!d.sc){d.Y.text="";for(var k=d.cells[0],m=0;m<k.length;m++){var q=k[m];d.xj(q);q.sa=null;if(d.Oc)if(q=q.querySelector("input.qf"))q.value=""}if(d.$j())return rb("","");d.X=[];for(m=0;m<d.dataArray.length;m++){k=d.dataArray[m];k.Fd=null;k.qe=false;if(k.o==null)k.o=m+1;k.rc||d.X.push(k)}if(d.ea()&&d.Aa==false){d.totalRecs=null;d.j=1;d.mask();d.Wb()}d.getData();d.clearState("filters");Q("onfilterchange")}};this.ls=function(){for(var k=0,m=d.cells[0],q=0;q<m.length;q++){var u=m[q];u.sa!=
1380
1380
  null&&u.sa!=""&&k++}return k};this.isFiltered=function(k){if(d.og!=null)return false;if(!k&&d.Kb>0)return true;k=d.cells[0];if(k==null)return false;for(var m=0;m<k.length;m++){var q=k[m];if(q.sa!=null&&q.sa!="")return true}return false};this.gm=function(k){if(k.nc==null){k.nc=document.createElement("img");k.nc.style.paddingLeft="3px";k.nc.src=pui.normalizeURL("/profoundui/proddata/images/grids/filter.png");k.style.cursor="pointer";k.nc.onclick=function(q){if(!pui.ze(q)){d.startFilter(k);xb(q)}};var m=
1381
1381
  k;if(m.firstChild!=null&&m.firstChild.tagName=="DIV")m=m.firstChild;if(d.fc!=null&&d.fc.parentNode===m)m.insertBefore(k.nc,d.fc);else k.Zc!=null&&k.Zc.parentNode===m?m.insertBefore(k.nc,k.Zc):m.appendChild(k.nc)}};this.xj=function(k){k.nc!=null&&k.nc.parentNode!=null&&k.nc.parentNode.removeChild(k.nc);k.nc=null};this.isRowFilteredOut=function(k){k=b(k,false);var m=false;if(k!=null&&k.qe!=null&&k.qe===true)m=true;return m};this.$j=function(){return d.c.cs!=null};this.hideColumn=function(k){return d.Bs(k,
1382
1382
  false)};this.showColumn=function(k){return d.Bs(k,true)};this.isColumnHidden=function(k){if(typeof k=="string")k=Number(k);if(!isNaN(k))for(var m=0;m<d.ga.length;m++)if(d.ga[m].columnId===k)return d.ga[m].showing!==true;return false};this.rs=function(k,m){var q=m,u=true;if(typeof d.gc!="undefined"&&d.gc===true||d.isFiltered(true)){u=false;for(var z=0;z<k.length;z++)if(k[z].o==q){q=z+1;u=true;break}}if(q<1||q>k.length||u==false)q=null;return q};this.getRowNumber=function(k){var m=d.dataArray;if(d.isFiltered())m=
@@ -1396,14 +1396,14 @@ L;ba.draggable=true;ba=I.insertCell();L=document.createElement("button");L.class
1396
1396
  ""){Ua.style.top=d.c.offsetTop+"px";Ua.style.left=d.c.offsetLeft+"px"}else{P=Ua.querySelector("table").tBodies[0];for(S=0;S<P.childNodes.length;S++){I=P.childNodes[S];U=false;for(L=0;L<Qa.length;L++)if(I.A==Qa[L].A){I.ra=Qa[L].ra;I.childNodes[0].firstChild.checked=true;if(U=I.childNodes[3].firstChild)U.innerHTML=I.ra?"arrow_downward":"arrow_upward";U=true;break}if(!U)I.childNodes[0].firstChild.checked=false}H(P)}Ua.style.display="";if(d.c.parentNode.getAttribute("container")=="true"&&d.c.parentNode.offsetHeight>
1397
1397
  0)if(Ua.offsetHeight>d.c.parentNode.offsetHeight-54)Ua.style.height=d.c.parentNode.offsetHeight-54+"px"}};this.Fy=function(k){function m(){I=W.insertRow();I.A=ba;I.onclick=u;L=I.insertCell();var La=document.createElement("input");La.type="checkbox";La.name=Y+"_filter";La.checked=ha;L.appendChild(La);L=I.insertCell();L.innerHTML=Y}function q(){aa=U.entries();sa=U.size;for(var La=sa<50?sa:50,ab=0;ab<La;ab++){S=aa.next().value;Y=S[0];ha=S[1];m();Ha++}Ra.appendChild(H);d.c.parentNode.appendChild(Ra)}
1398
1398
  function u(La){if(La.target.localName=="td")if(this.cells[0].children[0].checked==false)ha=this.cells[0].children[0].checked=true;else ha=this.cells[0].children[0].checked=false;if(La.target.localName=="input")if(this.cells[0].children[0].checked==true)ha=this.cells[0].children[0].checked=true;else ha=this.cells[0].children[0].checked=false;Y=this.cells[1].innerHTML;Y!=null&&U.has(Y)&&U.set(Y,ha)}function z(La,ab,Bb,Za,$b){d.mask();d.Wb();if(La==null)La=-1;if(ab==null)ab=1;var Qb=null;Qb=pui.ld(d.dataProps);
1399
- d.Kc="";if(d.isFiltered())for(var Gb=d.cells[0],ld=0,md=0;md<Gb.length;md++){var Kc=Gb[md];if(Kc.A>=0&&Kc.sa!=null){d.Kc+="&fltrcol"+String(ld)+"="+(Kc.A+1);d.Kc+=d.wt(String(ld),Kc.sa);Qb+=d.Kc;ld++}}if(d.dataProps["data url"]!=null&&d.dataProps["data url"]!=""&&d.Cb!=null)Qb+="&order="+d.Cb;Gb=Vb("PUI0009102.PGM");if(Za)Gb=pui.cf(Za);Za=new pui.Ajax(Gb);Za.method="post";Za.async=true;Za.postData=pui.ba?"AUTH="+pui.ba:"AUTH="+pui.appJob.auth;Za.postData+="&q="+encodeURIComponent(pui.Wc(d.c));Gb=
1399
+ d.Lc="";if(d.isFiltered())for(var Gb=d.cells[0],ld=0,md=0;md<Gb.length;md++){var Kc=Gb[md];if(Kc.A>=0&&Kc.sa!=null){d.Lc+="&fltrcol"+String(ld)+"="+(Kc.A+1);d.Lc+=d.wt(String(ld),Kc.sa);Qb+=d.Lc;ld++}}if(d.dataProps["data url"]!=null&&d.dataProps["data url"]!=""&&d.Cb!=null)Qb+="&order="+d.Cb;Gb=Vb("PUI0009102.PGM");if(Za)Gb=pui.cf(Za);Za=new pui.Ajax(Gb);Za.method="post";Za.async=true;Za.postData=pui.ba?"AUTH="+pui.ba:"AUTH="+pui.appJob.auth;Za.postData+="&q="+encodeURIComponent(pui.Wc(d.c));Gb=
1400
1400
  d.dataProps["order by"];if(d.Cb!=null)Gb=d.Cb;if(Gb&&Gb!="")Za.postData+="&order="+Gb;else if(Lb()=="mssql")Za.postData+="&order=(select null)";if(Qb!="")Za.postData+="&"+Qb;Za.postData+="&limit="+La+"&start="+ab;if(Bb!=null&&Bb==true)Za.postData+="&getTotal=1";if(pui["read db driven data as ebcdic"]!==true)Za.postData+="&UTF8=Y";La=d.dataProps["allow any select statement"];if(La!=null&&(La=="true"||La==true))Za.postData+="&FetchCounter=Y";if(pui.isCloud)Za.postData+="&workspace_id="+pui.cloud.ws.id;
1401
- Za.onready=function(gc){var Rb,hc,ic;if(Rb=Jb(gc,"Run SQL SELECT Query")){d.mask();d.Wb();gc=Rb.results;var tc=Rb.totalRecs;if(tc!=null)d.totalRecs=tc;if(gc.length>=1){tc=[];for(ic in Rb.results[0])tc.push(ic);for(Rb=0;Rb<gc.length;Rb++){var Lc=gc[Rb];if($b.fieldName!=null)for(hc in Lc){if(hc.toUpperCase()==$b.fieldName.toUpperCase()){ic=Lc[hc];U.set(ic,false)}}else{d.dataArray=gc;d.Oc=false;d.Aa=true;var Qe=tc[$b.A];for(hc in Lc)if(hc==Qe){ic=Lc[hc];U.set(ic,false)}}}if(U.size>0){q();d.unMask()}}}};
1402
- d.Oc=true;Za.send()}if(d.c.parentNode!=null)if(!pui.is_ie){d.mask();d.Wb();Ra&&Ra.parentNode.removeChild(Ra);Ra=document.createElement("div");Ra.className="grid-multifilter"+(d.Xc!=""?" "+d.Xc+"-multifilter":"");if(k!=null){Ra.style.top=d.c.offsetTop+k.offsetHeight+"px";Ra.style.left=d.c.offsetLeft+k.offsetLeft+"px";if(Ra.style.top==null||Ra.style.left==null){Ra.style.top=d.c.offsetTop+"px";Ra.style.left=d.c.offsetLeft+"px"}}else{Ra.style.top=d.c.offsetTop+"px";Ra.style.left=d.c.offsetLeft+"px"}var v=
1403
- document.createElement("div");new pui.Te({df:v,move:Ra});var J=document.createElement("button");J.className="pui-material-icons";J.innerHTML="close";T(J,"click",function(){Ra.style.display="none";Ra=null});v.appendChild(J);J=document.createElement("button");J.className="pui-material-icons";J.innerHTML="check";T(J,"click",function(){Ra.style.display="none";d.mask();d.Wb();aa=U.entries();sa=U.size;for(var La=[],ab=0;ab<sa;ab++){S=aa.next().value;Y=S[0];ha=S[1];ha==true&&La.push(Y)}ja="JVALUES "+JSON.stringify(La);
1404
- if(d.Oc==true)d.Oc=false;if(d.Aa==true&&d.dataProps["load all rows"]!="true")d.Aa=false;ja==null||La.length==0?d.removeFilter(ba):d.setFilter(k,ja);d.unMask();Ra=null});v.appendChild(J);v.appendChild(document.createTextNode(pui.getLanguageText("runtimeText","filter multiple")));Ra.appendChild(v);var H=document.createElement("table"),I=H.createTHead().insertRow(),L=I.insertCell();L.innerHTML=pui.getLanguageText("runtimeText","filter check");L=I.insertCell();L.innerHTML=pui.getLanguageText("runtimeText",
1405
- "filter data");var W=document.createElement("tbody");H.appendChild(W);if(k!=null){var ba=k.A;d.Pj(k);var P=k.Hj}rows=d.dataArray.length;var U=new Map,S=[],aa=[],Y,ha=false,sa=0,Ha=0,ja=k.sa;if(d.ea()&&d.dataProps["load all rows"]!="true"){P=d.dataProps["data url"];if(P=="")P=null;z(-1,1,d.totalRecs==null,P,k)}else{v=d.dataArray;if(d.isFiltered()&&d.X!=null&&d.X.length>0)v=d.X;for(J=0;J<v.length;J++){var oa=v[J];if(oa.o==null)oa.o=J+1;for(var Ea=0;Ea<P.length;Ea++){var Ka=oa[P[Ea]],wa=false;if(k.pui!=
1406
- null)if(k.pui.formats!=null&&k.pui.formats[Ea]!=null&&typeof k.pui.formats[Ea]=="object"){var ya=k.pui.formats[Ea];ya.value=Ka;Ka=pui.sc.format(ya)}if(k.pui.qd!=null&&k.pui.qd[Ea]!=null&&d.N[k.pui.qd[Ea]]!=null&&typeof d.N[k.pui.qd[Ea]]=="object"){ya=d.N[k.pui.qd[Ea]];var Oa=parseInt(ya.left,10),Ib=parseInt(ya.top,10);if(ya.visibility=="hidden"||!isNaN(Oa)&&!isNaN(Ib)&&Oa<0&&Ib<0)wa=true}wa||U.set(Ka,ha);ha=false}}if(U.size>0){q();d.unMask()}}Ra.style.display="";if(d.c.parentNode.getAttribute("container")==
1401
+ Za.onready=function(gc){var Rb,hc,ic;if(Rb=Jb(gc,"Run SQL SELECT Query")){d.mask();d.Wb();gc=Rb.results;var tc=Rb.totalRecs;if(tc!=null)d.totalRecs=tc;if(gc.length>=1){tc=[];for(ic in Rb.results[0])tc.push(ic);for(Rb=0;Rb<gc.length;Rb++){var Lc=gc[Rb];if($b.fieldName!=null)for(hc in Lc){if(hc.toUpperCase()==$b.fieldName.toUpperCase()){ic=Lc[hc];U.set(ic,false)}}else{d.dataArray=gc;d.sc=false;d.Aa=true;var Qe=tc[$b.A];for(hc in Lc)if(hc==Qe){ic=Lc[hc];U.set(ic,false)}}}if(U.size>0){q();d.unMask()}}}};
1402
+ d.sc=true;Za.send()}if(d.c.parentNode!=null)if(!pui.is_ie){d.mask();d.Wb();Ra&&Ra.parentNode.removeChild(Ra);Ra=document.createElement("div");Ra.className="grid-multifilter"+(d.Xc!=""?" "+d.Xc+"-multifilter":"");if(k!=null){Ra.style.top=d.c.offsetTop+k.offsetHeight+"px";Ra.style.left=d.c.offsetLeft+k.offsetLeft+"px";if(Ra.style.top==null||Ra.style.left==null){Ra.style.top=d.c.offsetTop+"px";Ra.style.left=d.c.offsetLeft+"px"}}else{Ra.style.top=d.c.offsetTop+"px";Ra.style.left=d.c.offsetLeft+"px"}var v=
1403
+ document.createElement("div");new pui.Te({df:v,move:Ra});var J=document.createElement("button");J.className="pui-material-icons";J.innerHTML="close";T(J,"click",function(){Ra.style.display="none";if(d.sc==true)d.sc=false;Ra=null});v.appendChild(J);J=document.createElement("button");J.className="pui-material-icons";J.innerHTML="check";T(J,"click",function(){Ra.style.display="none";d.mask();d.Wb();aa=U.entries();sa=U.size;for(var La=[],ab=0;ab<sa;ab++){S=aa.next().value;Y=S[0];ha=S[1];ha==true&&La.push(Y)}ja=
1404
+ "JVALUES "+JSON.stringify(La);if(d.sc==true)d.sc=false;if(d.Aa==true&&d.dataProps["load all rows"]!="true")d.Aa=false;ja==null||La.length==0?d.removeFilter(ba):d.setFilter(k,ja);d.unMask();Ra=null});v.appendChild(J);v.appendChild(document.createTextNode(pui.getLanguageText("runtimeText","filter multiple")));Ra.appendChild(v);var H=document.createElement("table"),I=H.createTHead().insertRow(),L=I.insertCell();L.innerHTML=pui.getLanguageText("runtimeText","filter check");L=I.insertCell();L.innerHTML=
1405
+ pui.getLanguageText("runtimeText","filter data");var W=document.createElement("tbody");H.appendChild(W);if(k!=null){var ba=k.A;d.Pj(k);var P=k.Hj}rows=d.dataArray.length;var U=new Map,S=[],aa=[],Y,ha=false,sa=0,Ha=0,ja=k.sa;if(d.ea()&&d.dataProps["load all rows"]!="true"){P=d.dataProps["data url"];if(P=="")P=null;z(-1,1,d.totalRecs==null,P,k)}else{v=d.dataArray;if(d.isFiltered()&&d.X!=null&&d.X.length>0)v=d.X;for(J=0;J<v.length;J++){var oa=v[J];if(oa.o==null)oa.o=J+1;for(var Ea=0;Ea<P.length;Ea++){var Ka=
1406
+ oa[P[Ea]],wa=false;if(k.pui!=null)if(k.pui.formats!=null&&k.pui.formats[Ea]!=null&&typeof k.pui.formats[Ea]=="object"){var ya=k.pui.formats[Ea];ya.value=Ka;Ka=pui.tc.format(ya)}if(k.pui.qd!=null&&k.pui.qd[Ea]!=null&&d.N[k.pui.qd[Ea]]!=null&&typeof d.N[k.pui.qd[Ea]]=="object"){ya=d.N[k.pui.qd[Ea]];var Oa=parseInt(ya.left,10),Ib=parseInt(ya.top,10);if(ya.visibility=="hidden"||!isNaN(Oa)&&!isNaN(Ib)&&Oa<0&&Ib<0)wa=true}wa||U.set(Ka,ha);ha=false}}if(U.size>0){q();d.unMask()}}Ra.style.display="";if(d.c.parentNode.getAttribute("container")==
1407
1407
  "true"&&d.c.parentNode.offsetHeight>0)if(Ra.offsetHeight>d.c.parentNode.offsetHeight-54)Ra.style.height=d.c.parentNode.offsetHeight-54+"px";Ra.onscroll=function(){var La,ab=sa-Ha;if(!(sa<=50||ab==0))if(Ra.scrollTop>=Ra.scrollHeight-Ra.offsetHeight)if(ab<=50)for(La=0;La<ab;La++){S=aa.next().value;Y=S[0];ha=S[1];m();Ha++}else for(La=0;La<50;La++){S=aa.next().value;Y=S[0];ha=S[1];m();Ha++}}}}};pui.dk.prototype=Object.create(pui.Zh.prototype);
1408
1408
  pui.Zh.Mi=function(){var b=[{name:"Identification",category:true},{name:"id",maxLength:75,V:"id",a:"id",help:"Specifies the ID that is used to access the grid from client-side code.",bind:false,va:false},{name:"record format name",displayName:pui.nodedesigner?"name":undefined,a:"blank",help:"Specifies the name that is used to access this grid from server code.",maxLength:pui.viewdesigner||pui.nodedesigner?null:10,bind:false,context:"dspf",va:false},{name:"description",a:"blank",help:"Describes the grid.",
1409
1409
  bind:false,context:"dspf"},{name:"parent window",V:"parentWindow",a:"blank",help:"Sets the window that this field belongs to.",context:"genie"},{name:"screen identifier",choices:["true","false"],he:false,a:"false",help:"If set to true, this element will be used to detect the screen. The identifier element should be a static output field that is unique to this screen. For example, if the screen has a unique heading, it can be used as the identifier. At least one element on the screen must be marked as an identifier before you can save the screen. When appropriate, you can use a combination of several elements to uniquely identify the screen.",
@@ -1518,7 +1518,7 @@ pui.Js=function(b){if(b.design)return null;var a=b.evalProperty("blob table"),c=
1518
1518
  pui.widgets.add({name:"image",tag:"img",propertySetters:{"field type":function(b){b.dom.onselectstart=ta(false);b.dom.ondragstart=ta(false);b.dom.setAttribute("draggable","false");if(typeof b.dom.style.MozUserSelect!="undefined")b.dom.style.MozUserSelect="none";b.dom.Od=b.evalProperty("image source");var a=pui.Js(b);if(a)b.dom.Od=a;b.dom.src=b.dom.Od;a=b.evalProperty("hover image source");b.dom.ye=a;if(a!=null&&a!=""){b.dom.ye=pui.normalizeURL(b.dom.ye,true);T(b.dom,"mouseover",pui.Is);T(b.dom,"mouseout",
1519
1519
  pui.Hs);(new Image).src=a}a=b.evalProperty("click image source");b.dom.hf=a;if(a!=null&&a!=""){b.dom.hf=pui.normalizeURL(b.dom.hf,true);T(b.dom,"mousedown",pui.Yk);T(document,"mouseup",function(){pui.Zk(b.dom)});T(b.dom,"touchstart",pui.Yk);T(document,"touchend",function(){pui.Zk(b.dom)});(new Image).src=a}},"image source":function(b){b.dom.Od=pui.normalizeURL(b.value,true);if(b.design&&b.dom.Od.indexOf(".svg")!=-1)if(!b.properties.width&&!b.properties.height){var a=Cc();a=pui.Li(a,"width");b.dom=
1520
1520
  Oc(a,b.properties,b.dom,"200px",b.design,b.e,b.Lt);b.e.designer.nb.JA("width","200px",true)}},"blob column":function(b){var a=pui.Js(b);if(a)b.dom.Od=a;b.dom.src=b.dom.Od},"hover image source":function(b){b.dom.ye=b.value;if(b.value!=null&&b.value!=""){b.dom.ye=pui.normalizeURL(b.dom.ye,true);T(b.dom,"mouseover",pui.Is);T(b.dom,"mouseout",pui.Hs);(new Image).src=b.value}},"click image source":function(b){b.dom.hf=b.value;if(b.value!=null&&b.value!=""){b.dom.hf=pui.normalizeURL(b.dom.hf,true);T(b.dom,
1521
- "mousedown",pui.Yk);T(document,"mouseup",function(){pui.Zk(b.dom)});T(b.dom,"touchstart",pui.Yk);T(document,"touchend",function(){pui.Zk(b.dom)});(new Image).src=b.value}}}});pui.Iu=function(){function b(g){function l(G){function B(){G.xh>0&&G.Wj==null&&f.Ft();if(f.b.onoptionclick!=null&&!f.gq)Fb()||G.Wj==null&&f.b.onoptionclick(G.bh,Nc(G));else if(O=="dspf")if(G.Wj==null){var E=f.b;if(E.S!=null)if(E.disabled!=true){E.S=G.bh;if(E.F=="true"||E.F=="send data")pui.F=E.F;if(f.gq)pui.Ka=f.routine;if(pui.bc()==false){E.S="";pui.Ka=null;pui.Mc=null;pui.Lc=null}}}}G.oncontextmenu=ta(false);G.onmouseover=function(){G.ni=true;if(f.vg!=null&&f.vg!="")G.style.backgroundColor=f.vg;
1521
+ "mousedown",pui.Yk);T(document,"mouseup",function(){pui.Zk(b.dom)});T(b.dom,"touchstart",pui.Yk);T(document,"touchend",function(){pui.Zk(b.dom)});(new Image).src=b.value}}}});pui.Iu=function(){function b(g){function l(G){function B(){G.xh>0&&G.Wj==null&&f.Ft();if(f.b.onoptionclick!=null&&!f.gq)Fb()||G.Wj==null&&f.b.onoptionclick(G.bh,Nc(G));else if(O=="dspf")if(G.Wj==null){var E=f.b;if(E.S!=null)if(E.disabled!=true){E.S=G.bh;if(E.F=="true"||E.F=="send data")pui.F=E.F;if(f.gq)pui.Ka=f.routine;if(pui.bc()==false){E.S="";pui.Ka=null;pui.Nc=null;pui.Mc=null}}}}G.oncontextmenu=ta(false);G.onmouseover=function(){G.ni=true;if(f.vg!=null&&f.vg!="")G.style.backgroundColor=f.vg;
1522
1522
  else G.className="menu-hover";if(f.wg!=null&&f.wg!="")G.style.color=f.wg;if(f.hj!=null&&f.hj!=""){G.style.backgroundImage="url('"+f.hj+"')";if(f.repeat!=null&&f.repeat.length>0){G.style.backgroundRepeat=f.repeat;if(f.repeat=="no-repeat")G.style.backgroundPosition="left center"}}else G.style.backgroundImage=G.zb!=null&&G.zb!=""?"url('"+G.zb+"')":"";for(var E=G,D=[],K=0;K<h.length;K++)h[K].xh>=E.xh&&D.push(h[K]);for(K=0;K<D.length;K++)f.Bp(D[K]);f.Gy(G)};G.onmouseout=function(E){if(!E)E=window.event;
1523
1523
  var D=E.relatedTarget;if(D==null)D=E.toElement;for(;D!=null&&(D.tagName=="TABLE"||D.tagName=="TBODY"||D.tagName=="TR");){if(D.firstChild==null)break;D=D.firstChild}if(D==null||D.xh==null||D.tagName!="TD"||D.jx!=f.b.id){E=false;if(D!=null){if(D==r)E=true;if(n!=null&&D==n)E=true;if(D.To)E=true;if(!E){D=e(D);var K=e(G);if(D&&D===K)E=true}}E||f.Ft()}else if(G.ub!=null){for(E=true;D!=null;){if(G.ub==D){E=false;break}D=D.parentNode}E&&f.Bp(G)}if(f.wg!=null&&f.wg!="")G.style.color="";if(G.zb!=null&&G.zb!=
1524
1524
  ""){G.style.backgroundImage="url('"+G.zb+"')";G.style.backgroundRepeat=f.repeat}else G.style.backgroundImage="";if(f.vg!=null&&f.vg!=""){G.ni=false;if(f.animate){var M=function(N){N-=10;if(N<40){if(!G.ni)G.style.backgroundColor="";G.ni=true}if(G.ni)N=100;G.style.filter="alpha(opacity="+N+")";G.style.opacity=N/100;G.ni||setTimeout(function(){M(N)},60)};M(100)}else G.style.backgroundColor=""}else G.className=""};if(pui.is_touch&&!pui.is_mouse_capable&&G.children.length>0)G.addEventListener("touchend",
@@ -1574,7 +1574,7 @@ function(p,t){var s=p.split(" "),w=p;if(s.length==2)w=s[0]+s[1].substr(0,1).toUp
1574
1574
  pui.widgets.add({name:"on off switch",defaults:{width:"100px",height:"27px"},propertySetters:{"field type":function(b){if(b.dom.L==null)b.dom.L=new pui.Ju;b.dom.L.b=b.dom;b.dom.L.designMode=b.design;b.dom.L.init();b.dom.L.set(b.evalProperty("value")==b.evalProperty("on value"));if(b.design){b.dom.L.vy("default");var a=Cc(),c;if(b.properties["on text"]){c=a["on text"];Oc(c,b.properties,b.e.dom,b.properties["on text"],true,b.e)}if(b.properties["off text"]){c=a["off text"];Oc(c,b.properties,b.e.dom,
1575
1575
  b.properties["off text"],true,b.e)}}else{b.dom.L.Ch=b.evalProperty("on value");b.dom.L.Bh=b.evalProperty("off value")}b.dom.sizeMe=function(){b.dom.L.size()}},value:function(b){b.dom.L!=null&&b.dom.L.set(b.value==b.evalProperty("on value"))},"on value":function(b){b.dom.L!=null&&b.dom.L.set(b.evalProperty("value")==b.value)},"read only":function(b){if(b.dom.L!=null)b.dom.L.readOnly=b.value==true||b.value=="true"},disabled:function(b){if(b.dom.L!=null)b.value==true||b.value=="true"?b.dom.L.disable():
1576
1576
  b.dom.L.enable()},"wide handle":function(b){b.dom.L!=null&&b.dom.L.$t(b.value!==false&&b.value!=="false")},"on text":function(b){b.dom.L!=null&&b.dom.L.Rv(b.value)},"off text":function(b){b.dom.L!=null&&b.dom.L.Qv(b.value)},width:function(b){if(b.dom.L!=null){b.dom.style.width=b.value;b.dom.L.size()}},height:function(b){if(b.dom.L!=null){b.dom.style.height=b.value;b.dom.L.size()}}},qc:function(b){b.propertyName.substr(0,9)=="css class"&&b.dom.L!=null&&pui.Q(b.dom,"onoff-switch");switch(b.propertyName){case "color":case "font family":case "font size":case "font style":case "font variant":case "font weight":case "letter spacing":case "text align":case "text decoration":case "text transform":case "word spacing":b.dom.L!=
1577
- null&&b.dom.L.ty(b.propertyName,b.value);break}}});pui.Nu=function(b,a,c,e,f){var h=this,g=document.createElement("div"),l=document.createElement("div");if(a!=null&&a!=""){a=Number(a);if(isNaN(a))a=null}else a=null;if(c!=null&&c!=""){c=Number(c);if(isNaN(c))c=null}else c=null;if(e!=null){e=Number(e);if(isNaN(e))e=1;if(e==0)e=1}else e=1;g.className="input";g.onclick=function(){h.ju(e)};l.className="input";l.onclick=function(){h.ju(-e)};if(f){b.style.paddingRight="16px";b.style.boxSizing="border-box"}b.wc=[g,l];if(b.parentNode!=null){b.parentNode.appendChild(g);
1577
+ null&&b.dom.L.ty(b.propertyName,b.value);break}}});pui.Nu=function(b,a,c,e,f){var h=this,g=document.createElement("div"),l=document.createElement("div");if(a!=null&&a!=""){a=Number(a);if(isNaN(a))a=null}else a=null;if(c!=null&&c!=""){c=Number(c);if(isNaN(c))c=null}else c=null;if(e!=null){e=Number(e);if(isNaN(e))e=1;if(e==0)e=1}else e=1;g.className="input";g.onclick=function(){h.ju(e)};l.className="input";l.onclick=function(){h.ju(-e)};if(f){b.style.paddingRight="16px";b.style.boxSizing="border-box"}b.xc=[g,l];if(b.parentNode!=null){b.parentNode.appendChild(g);
1578
1578
  b.parentNode.appendChild(l)}this.vt=function(){var o=b.offsetWidth,n=b.style.width;if(o==0&&n!=null&&typeof n=="string"&&n.length>=3&&n.substr(n.length-2,2)=="px")o=parseInt(n);if(isNaN(o))o=0;n=b.offsetHeight;var r=b.style.height;if(n==0&&r!=null&&typeof r=="string"&&r.length>=3&&r.substr(r.length-2,2)=="px")n=parseInt(r);if(isNaN(n))n=0;if(n==0&&r=="")n=18;r=b.style.left;r=r!=null&&typeof r=="string"&&r.length>=3&&r.substr(r.length-2,2)=="px"?parseInt(r):b.offsetLeft;if(isNaN(r))r=0;var p;p=b.style.top;
1579
1579
  p=p!=null&&typeof p=="string"&&p.length>=3&&p.substr(p.length-2,2)=="px"?parseInt(p):b.offsetTop;if(isNaN(p))p=0;g.style.left=r+o-15+"px";p+=parseInt((n-18)/2);if(pui.is_quirksmode)p-=1;g.style.top=p+"px";g.style.zIndex=b.style.zIndex;r=b.style.left;r=r!=null&&typeof r=="string"&&r.length>=3&&r.substr(r.length-2,2)=="px"?parseInt(r):b.offsetLeft;if(isNaN(r))r=0;p=b.style.top;p=p!=null&&typeof p=="string"&&p.length>=3&&p.substr(p.length-2,2)=="px"?parseInt(p):b.offsetTop;if(isNaN(p))p=0;l.style.left=
1580
1580
  r+o-15+"px";p+=9;p+=parseInt((n-18)/2);if(n%2==1)if(n<18)p-=1;else p+=1;l.style.top=p+"px";l.style.zIndex=b.style.zIndex};h.vt();this.hide=function(){g.style.visibility="hidden";l.style.visibility="hidden"};if(b.pui==null||b.pui.properties==null||b.pui.properties.visibility==null||b.pui.properties.visibility=="")if(O=="genie"&&b.B!=null&&b.B.attr!=null){f=b.B.attr;if(f=="27"||f=="2F"||f=="37"||f=="3F")h.hide()}this.show=function(){g.style.visibility="";l.style.visibility=""};this.ju=function(o){if(!b.disabled)if(!b.readOnly){var n=
@@ -1583,7 +1583,7 @@ Number(b.value);if(isNaN(n))n=0;n+=o;n=Math.round(n*1E4)/1E4;if(a!=null&&n<a)n=a
1583
1583
  pui.widgets.add({name:"spinner",tag:"input",op:pui.normalizeURL("/profoundui/proddata/images/up.gif"),qt:pui.normalizeURL("/profoundui/proddata/images/down.gif"),Fs:"input pui-spinner-up-arrow-input",Rz:"input pui-spinner-down-arrow-input",pt:true,dA:true,defaults:{"css class":"input"},propertySetters:{"field type":function(b){b.dom.value=b.evalProperty("value");if(b.design)b.dom.sizeMe=function(){var a=b.e;a.kh();a.Bg()};else{if(b.dom.ad==undefined){b.dom.ad=new pui.Nu(b.dom,b.evalProperty("min value"),
1584
1584
  b.evalProperty("max value"),b.evalProperty("increment value"),!b.design);b.dom.sizeMe=function(){b.dom.ad.vt()}}if(b.dom.getAttribute("autocomplete")==null&&(O!="genie"||!pui.D.config.Yg)){b.dom.setAttribute("autocomplete","off");O=="dspf"&&b.dom.setAttribute("name",pui.Pd())}}if(b.design)b.dom.readOnly=true;b.dom.ee=true},value:function(b){b.dom.value=b.value},disabled:function(b){!b.design&&b.dom.ad&&b.dom.ad.setDisabled()},visibility:function(b){if(!b.design&&b.dom.ad)b.value=="hidden"?b.dom.ad.hide():
1585
1585
  b.dom.ad.show()},"css class":function(b){var a=b.value.split(" ").shift();if(!b.design&&b.dom.ad)b.dom.ad.Pp(a);else{var c=b.e.Tw,e=b.e.Qz;if(a==null){var f="input pui-spinner-up-arrow-input "+a;a="input pui-spinner-down-arrow-input "+a}else{f="input pui-spinner-up-arrow-input spinner-up-arrow-"+a;a="input pui-spinner-down-arrow-input spinner-down-arrow-"+a}b.dom["icon1 class"]=f;b.dom["icon2 class"]=a;c.className=f;e.className=a}},"browser auto complete":function(b){if(!b.design){b.dom.setAttribute("autocomplete",
1586
- b.value);if(O=="dspf")b.value=="off"?b.dom.setAttribute("name",pui.Pd()):b.dom.removeAttribute("name")}}},qc:function(b){if(b.propertyName=="field type"&&b.ya&&b.ya.l!=null&&b.dom&&b.dom.l==null){for(var a=b.ya.wc,c=0;c<a.length;++c)a[c].parentNode&&a[c].parentNode.removeChild(a[c]);pui.pg(b.dom);b.dom.ad.Pp()}O=="genie"&&typeof b.dom.sizeMe=="function"&&b.dom.sizeMe()}});pui.widgets.buttonStyles={"Ice Blue":{left:5,right:5,top:5,bottom:5,hasOverState:true,hasClickState:true,editBackgroundColor:"#cee7ff"},Apricot:{left:5,right:5,top:5,bottom:5,hasOverState:true,hasClickState:true,editBackgroundColor:"#ffe7ce"},"Royal Blue":{left:2,right:2,top:2,bottom:2,hasOverState:false,hasClickState:false,textColor:"#000000",editBackgroundColor:"#a5c0ff"},"Bright Gold":{left:2,right:2,top:2,bottom:2,hasOverState:false,hasClickState:false,textColor:"#000000",editBackgroundColor:"#ffd880"},
1586
+ b.value);if(O=="dspf")b.value=="off"?b.dom.setAttribute("name",pui.Pd()):b.dom.removeAttribute("name")}}},qc:function(b){if(b.propertyName=="field type"&&b.ya&&b.ya.l!=null&&b.dom&&b.dom.l==null){for(var a=b.ya.xc,c=0;c<a.length;++c)a[c].parentNode&&a[c].parentNode.removeChild(a[c]);pui.pg(b.dom);b.dom.ad.Pp()}O=="genie"&&typeof b.dom.sizeMe=="function"&&b.dom.sizeMe()}});pui.widgets.buttonStyles={"Ice Blue":{left:5,right:5,top:5,bottom:5,hasOverState:true,hasClickState:true,editBackgroundColor:"#cee7ff"},Apricot:{left:5,right:5,top:5,bottom:5,hasOverState:true,hasClickState:true,editBackgroundColor:"#ffe7ce"},"Royal Blue":{left:2,right:2,top:2,bottom:2,hasOverState:false,hasClickState:false,textColor:"#000000",editBackgroundColor:"#a5c0ff"},"Bright Gold":{left:2,right:2,top:2,bottom:2,hasOverState:false,hasClickState:false,textColor:"#000000",editBackgroundColor:"#ffd880"},
1587
1587
  Glass:{left:6,right:6,top:11,bottom:11,hasOverState:false,hasClickState:false,editBackgroundColor:"#c9dff3"},"Black Marble":{left:5,right:5,top:5,bottom:5,hasOverState:true,hasClickState:true,clickStateIsNormalState:true,textColor:"#ffffff",editBackgroundColor:"#666666"},"Classic Style":{left:5,right:5,top:5,bottom:5,hasOverState:true,hasClickState:false,editBackgroundColor:"#d8dbd8"},Cherry:{left:5,right:5,top:5,bottom:5,hasOverState:true,hasClickState:false,editBackgroundColor:"#e3c9ec"},Simplistic:{left:5,
1588
1588
  right:5,top:5,bottom:5,hasOverState:true,hasClickState:true,editBackgroundColor:"#f6f2ed"},"Silver Accent":{left:5,right:5,top:5,bottom:5,hasOverState:true,hasClickState:true,editBackgroundColor:"#f7f7ff"},Caramel:{left:5,right:5,top:10,bottom:8,hasOverState:true,hasClickState:true,clickStateIsNormalState:true,textColor:"#ffffff",hiColor:"#000000",editBackgroundColor:"#c0a254"},"Lime Green":{left:5,right:5,top:10,bottom:8,hasOverState:true,hasClickState:true,clickStateIsNormalState:true,textColor:"#ffffff",
1589
1589
  hiColor:"#000000",editBackgroundColor:"#54c07e"},"Raspberry Red":{left:5,right:5,top:10,bottom:8,hasOverState:true,hasClickState:true,clickStateIsNormalState:true,textColor:"#ffffff",hiColor:"#000000",editBackgroundColor:"#c05469"},"Steel Blue":{left:5,right:5,top:10,bottom:8,hasOverState:true,hasClickState:true,clickStateIsNormalState:true,textColor:"#ffffff",hiColor:"#000000",editBackgroundColor:"#526fbf"},Violet:{left:5,right:5,top:10,bottom:8,hasOverState:true,hasClickState:true,clickStateIsNormalState:true,
@@ -1615,31 +1615,31 @@ hiUnderline:true,selBold:true,separated:true,borderColor:"#5977b3"},Glow:{useIma
1615
1615
  leftWidth:5,rightWidth:5,defaultBackColor:"#ffffff",hiColor:"#666699",selColor:"#ffffff",separated:true,leftMargin:2},Sky:{useImages:true,hiImages:true,height:22,leftWidth:4,rightWidth:4,defaultBackColor:"#ffffff",hiColor:"#627ec1",selColor:"#627ec1",separated:true,backBar:true,backBarColor:"#f4f7fb",borderColor:"#bcd2e6",borderSize:2},Block:{useImages:true,hiImages:true,height:23,leftWidth:4,rightWidth:4,defaultBackColor:"#87c2f2",hiColor:"#ffffff",selColor:"#ffffff",borderColor:"#2763a5",separated:true},
1616
1616
  CSS:{useImages:false,Yy:false}};pui.widgets.Gx=function(b){var a=pui.widgets.tabStyles[b];if(a!=null)if(a.Hx!=true){if(a.useImages){var c=a.imageFileExtension;if(c==null)c="gif";if(c.substr(0,1)==".")c=c.substr(1);var e=function(f){(new Image).src=f};b=pui.normalizeURL("/profoundui/proddata/images/tabs/"+b.toLowerCase()+"/");if(a.hiImages){e(b+"left-hi."+c);e(b+"middle-hi."+c);e(b+"right-hi."+c)}e(b+"left-sel."+c);e(b+"middle-sel."+c);e(b+"right-sel."+c)}a.Hx=true}};
1617
1617
  function te(){function b(){if(g.z.scrollLeft>0)g.z.scrollLeft-=s;else{clearInterval(n);p.style.display="none"}t.style.display="inline-block";w++;if(w>0&&w%5==0)s+=o}function a(){if(g.z.scrollLeft<g.z.scrollWidth-g.z.offsetWidth)try{g.z.scrollLeft+=s}catch(B){}else{clearInterval(r);t.style.display="none"}p.style.display="inline-block";w++;if(w>0&&w%5==0)s+=o}function c(){s=l;w=0;n=setInterval(b,42)}function e(){s=l;w=0;r=setInterval(a,42)}function f(){clearInterval(n)}function h(){clearInterval(r)}
1618
- this.tc="Tab 1,Tab 2,Tab 3";this.Og="The tab cannot be removed because it contains other elements that must be removed first.";var g=this,l=Number(pui["tabpanel scroll speed"]);if(isNaN(l)||l<1)l=5;var o=Number(pui["tabpanel scroll acceleration"]);if(isNaN(o)||o<0)o=1;var n=null,r=null,p=null,t=null,s=5,w=0;this.zd=0;this.rk=true;this.We={};var A,C,F,G;this.an=0;this.defaults={};this.defaults.fontFamily="arial";this.defaults.fontSize="12px";this.defaults.color="#333366";this.hb=[];this.selectedTab=
1619
- 0;this.b=null;this.Ec="#eeeeff";this.hc="Simple";this.z=null;this.Ds=function(B){var E=false;if(this.selectedTab==B){if(!this.am){for(var D=-1,K=0,M=this.hb.length;K<M;K++)if(K!=B&&this.We[K]!==true){D=K;break}if(D!=-1){this.selectedTab=D;E=this.We[B]=true}}}else E=this.We[B]=true;E&&this.Tc()};this.eu=function(B){g.We[B]=false;g.Tc()};this.setTab=function(B){if(g.selectedTab!=B){g.selectedTab=B;if(g.We[B])g.We[B]=false;g.rp(B)}};this.getTab=function(){return g.selectedTab};this.refresh=function(){g.setTab(g.selectedTab)};
1620
- this.Vt=function(){var B=pui.widgets.tabStyles[g.hc];if(B!=null&&B.defaultBackColor!=null)g.Ec=B.defaultBackColor};this.Tc=function(){g.w()};this.w=function(){function B(ea){ea=(O=="dspf"&&!V?pui.runtimeContainer:document.getElementById(xa)).getElementsByTagName(ea);for(var da=0;da<ea.length;da++){var R=ea[da];if(R.Va!=null&&R.db!=null&&R.Va==g.b.id){if(R.db==g.selectedTab){R.style.visibility="";applyProperty(R,"visibility","");if(R.grid&&R.grid.setProperty)R.grid.h||!R.grid.Ne?R.grid.show():R.grid.hide();
1618
+ this.uc="Tab 1,Tab 2,Tab 3";this.Og="The tab cannot be removed because it contains other elements that must be removed first.";var g=this,l=Number(pui["tabpanel scroll speed"]);if(isNaN(l)||l<1)l=5;var o=Number(pui["tabpanel scroll acceleration"]);if(isNaN(o)||o<0)o=1;var n=null,r=null,p=null,t=null,s=5,w=0;this.zd=0;this.rk=true;this.We={};var A,C,F,G;this.an=0;this.defaults={};this.defaults.fontFamily="arial";this.defaults.fontSize="12px";this.defaults.color="#333366";this.hb=[];this.selectedTab=
1619
+ 0;this.b=null;this.Fc="#eeeeff";this.hc="Simple";this.z=null;this.Ds=function(B){var E=false;if(this.selectedTab==B){if(!this.am){for(var D=-1,K=0,M=this.hb.length;K<M;K++)if(K!=B&&this.We[K]!==true){D=K;break}if(D!=-1){this.selectedTab=D;E=this.We[B]=true}}}else E=this.We[B]=true;E&&this.Tc()};this.eu=function(B){g.We[B]=false;g.Tc()};this.setTab=function(B){if(g.selectedTab!=B){g.selectedTab=B;if(g.We[B])g.We[B]=false;g.rp(B)}};this.getTab=function(){return g.selectedTab};this.refresh=function(){g.setTab(g.selectedTab)};
1620
+ this.Vt=function(){var B=pui.widgets.tabStyles[g.hc];if(B!=null&&B.defaultBackColor!=null)g.Fc=B.defaultBackColor};this.Tc=function(){g.w()};this.w=function(){function B(ea){ea=(O=="dspf"&&!V?pui.runtimeContainer:document.getElementById(xa)).getElementsByTagName(ea);for(var da=0;da<ea.length;da++){var R=ea[da];if(R.Va!=null&&R.db!=null&&R.Va==g.b.id){if(R.db==g.selectedTab){R.style.visibility="";applyProperty(R,"visibility","");if(R.grid&&R.grid.setProperty)R.grid.h||!R.grid.Ne?R.grid.show():R.grid.hide();
1621
1621
  !Fb()&&R.pui.properties["field type"]=="chart"&&!R.chart&&applyProperty(R,"field type","chart")}else{R.style.visibility="hidden";applyProperty(R,"visibility","hidden");R.grid&&R.grid.setProperty&&R.grid.hide();R.G!=null&&R.G.hide()}if(V&&R.tagName=="INPUT"&&(R.type=="text"||pui.cl(R.type)||R.type=="checkbox"||R.type=="radio"))Hb.designer.oh(R).kh()}}}if(g.hc==null||g.hc=="")g.hc="Simple";A=pui.widgets.tabStyles[g.hc];if(A==null)A=pui.widgets.tabStyles.Simple;C=pui.normalizeURL("/profoundui/proddata/images/tabs/"+
1622
1622
  g.hc.toLowerCase()+"/");F=A.imageFileExtension;if(F==null)F="gif";if(F.substr(0,1)==".")F=F.substr(1);G="#aaaaaa";if(A.borderColor!=null)G=A.borderColor;g.b.innerHTML="";g.b.style.backgroundColor="";if(A.Yy!==false){if(!g.b.style.fontFamily)g.b.style.fontFamily=g.defaults.fontFamily;if(!g.b.style.fontSize)g.b.style.fontSize=g.defaults.fontSize;if(!g.b.style.color)g.b.style.color=g.defaults.color}var E=7;if(A.useImages)E=1;g.z=document.createElement("div");g.z.className="header-area";g.z.style.position=
1623
1623
  "absolute";g.z.style.left="0px";g.z.style.top="0px";g.z.style.height=A.height+E+1+"px";g.z.style.padding="0px";g.z.style.whiteSpace="nowrap";g.z.style.overflow="hidden";if(A.backBar){g.b.style.overflowX="hidden";g.b.style.overflowY="hidden";if(A.backBarColor!=null)g.z.style.backgroundColor=A.backBarColor;else{g.z.style.backgroundImage="url("+C+"middle."+F+")";g.z.style.backgroundRepeat="repeat-x"}}g.z.style.width="100%";var D=document.createElement("div");D.style.position="absolute";D.style.left=
1624
1624
  "0px";D.style.top=A.height+E+"px";D.className="content-area";var K=g.b.style.width,M=0;if(typeof K=="string"&&K!=""&&!isNaN(K))K+="px";if(K!=null&&K!=""&&K.length>=3&&K.substr(K.length-2)=="px"){M=parseInt(K);if(isNaN(M))M=0;M+=2}else M=g.b.offsetWidth;K=g.b.style.height;if(typeof K=="string"&&K!=""&&!isNaN(K))K+="px";var N=0;if(K!=null&&K!=""&&K.length>=3&&K.substr(K.length-2)=="px"){N=parseInt(K);if(isNaN(N))N=0;N+=2}else N=g.b.offsetHeight;D.style.height=Math.abs(N-A.height-E-4)+"px";D.style.width=
1625
- Math.abs(M-4)+"px";E=1;if(A.borderSize)E=A.borderSize;D.style.border=E+"px solid "+G;D.style.backgroundColor=g.Ec;for(E=0;E<g.hb.length;E++){M=document.createElement("span");M.style.display="inline-block";if(this.We[E])M.style.display="none";if(E==g.selectedTab){if(g.b.className!="")M.className=g.b.className.split(" ")[0]+"-";M.className+="selected-tab"}if(A.leftWidth!=null){var Q=document.createElement("span");Q.style.backgroundImage="url("+C+"left"+(E==g.selectedTab?"-sel":"")+"."+F+")";Q.style.backgroundRepeat=
1625
+ Math.abs(M-4)+"px";E=1;if(A.borderSize)E=A.borderSize;D.style.border=E+"px solid "+G;D.style.backgroundColor=g.Fc;for(E=0;E<g.hb.length;E++){M=document.createElement("span");M.style.display="inline-block";if(this.We[E])M.style.display="none";if(E==g.selectedTab){if(g.b.className!="")M.className=g.b.className.split(" ")[0]+"-";M.className+="selected-tab"}if(A.leftWidth!=null){var Q=document.createElement("span");Q.style.backgroundImage="url("+C+"left"+(E==g.selectedTab?"-sel":"")+"."+F+")";Q.style.backgroundRepeat=
1626
1626
  "no-repeat";Q.style.height=A.height+2+"px";Q.style.width=A.leftWidth+"px";Q.style.cssFloat="left";Q.style.styleFloat="left";Q.style.display="inline-block"}if(A.rightWidth!=null){var Z=document.createElement("span");Z.style.backgroundImage="url("+C+"right"+(E==g.selectedTab?"-sel":"")+"."+F+")";Z.style.backgroundRepeat="no-repeat";Z.style.height=A.height+2+"px";Z.style.width=A.rightWidth+"px";Z.style.cssFloat="left";Z.style.styleFloat="left";Z.style.display="inline-block"}K=document.createElement("span");
1627
1627
  K.Ea=E;K.innerHTML=g.hb[E];K.style.display="block";K.style.cssFloat="left";K.style.styleFloat="left";K.style.height=A.height+"px";K.style.lineHeight=A.height+"px";K.setAttribute("isTab","true");K.style.display="inline-block";if(A.useImages){K.style.backgroundImage="url("+C+"middle"+(E==g.selectedTab?"-sel":"")+"."+F+")";K.style.backgroundRepeat="repeat-x";N=1;if(A.leftMargin)N=A.leftMargin;Q.style.marginLeft=N+"px";Q.style.paddingTop="2px";K.style.padding="2px 0.5em";Z.style.paddingTop="2px";if(E!=
1628
- g.selectedTab)K.style.cursor="pointer";else{if(A.separated!=true){Q.style.backgroundColor=g.Ec;Z.style.backgroundColor=g.Ec;K.style.backgroundColor=g.Ec;if((this.hc=="Glass"||this.hc=="Delicate"||this.hc=="Classic")&&E==g.selectedTab){Q.style.backgroundSize="cover";Z.style.backgroundSize="cover";Q.style.backgroundColor="";Z.style.backgroundColor=""}}K.style.cursor="default";if(A.selColor!=null)K.style.color=A.selColor;if(A.selBold==true)K.style.fontWeight="bold"}}else{K.style.marginLeft="3px";K.style.padding=
1629
- "3px 0.5em";K.style.borderTop="1px solid "+G;K.style.borderLeft="1px solid "+G;K.style.borderRight="1px solid "+G;if(E!=g.selectedTab){K.style.borderBottom="1px solid "+G;K.style.backgroundColor=A.defaultTabColor?A.defaultTabColor:"#B7C8F6";if(O=="genie")K.style.filter="progid:DXImageTransform.Microsoft.Gradient(gradientType=0,startColorStr=white,endColorStr=##B7C8F6)";K.style.cursor="pointer"}else{K.style.backgroundColor=g.Ec;K.style.borderBottom="1px solid "+g.Ec;K.style.cursor="default"}}K.onmouseover=
1628
+ g.selectedTab)K.style.cursor="pointer";else{if(A.separated!=true){Q.style.backgroundColor=g.Fc;Z.style.backgroundColor=g.Fc;K.style.backgroundColor=g.Fc;if((this.hc=="Glass"||this.hc=="Delicate"||this.hc=="Classic")&&E==g.selectedTab){Q.style.backgroundSize="cover";Z.style.backgroundSize="cover";Q.style.backgroundColor="";Z.style.backgroundColor=""}}K.style.cursor="default";if(A.selColor!=null)K.style.color=A.selColor;if(A.selBold==true)K.style.fontWeight="bold"}}else{K.style.marginLeft="3px";K.style.padding=
1629
+ "3px 0.5em";K.style.borderTop="1px solid "+G;K.style.borderLeft="1px solid "+G;K.style.borderRight="1px solid "+G;if(E!=g.selectedTab){K.style.borderBottom="1px solid "+G;K.style.backgroundColor=A.defaultTabColor?A.defaultTabColor:"#B7C8F6";if(O=="genie")K.style.filter="progid:DXImageTransform.Microsoft.Gradient(gradientType=0,startColorStr=white,endColorStr=##B7C8F6)";K.style.cursor="pointer"}else{K.style.backgroundColor=g.Fc;K.style.borderBottom="1px solid "+g.Fc;K.style.cursor="default"}}K.onmouseover=
1630
1630
  g.Qy;K.onmouseout=g.Py;K.ondblclick=g.mu;K.onclick=g.Oy;g.z.appendChild(M);A.leftWidth!=null&&M.appendChild(Q);M.appendChild(K);A.rightWidth!=null&&M.appendChild(Z)}g.b.appendChild(D);g.b.appendChild(g.z);t=p=null;if(g.z.scrollWidth-g.z.offsetWidth>0){g.cr(g.z);if(this.$l&&this.rk){if(g.z.childNodes!=null&&g.selectedTab>=0&&g.selectedTab<g.z.childNodes.length){M=g.z.childNodes[g.selectedTab];g.zd=Math.round(M.offsetLeft-g.z.offsetWidth/2+M.offsetWidth/2)}this.rk=false}g.lk()}var V=Fb();V&&g.Kr();
1631
1631
  B("div");B("input");B("select");B("textarea");B("button");B("img")};this.Kr=function(){var B=designUtils.Qn("plus","Add New Tab",g.b),E=designUtils.Qn("minus","Remove Tab",g.b);B.style.right="2px";E.style.right="16px";E.style.top=B.style.top="2px";B.onclick=g.qv;E.onclick=g.Wx};this.rp=function(B){var E=g.b;if(E.disabled!=true)if(O=="dspf"&&g.am==true){E.S=B;if(E.F=="true"||E.F=="send data")pui.F=E.F;if(g.Fp)pui.sb=g.Fp;if(pui.bc()==false){E.S=null;g.selectedTab=g.an}}else{g.Tc();if(O=="dspf"&&g.$l==
1632
1632
  true)E.S=B}};this.Qy=function(B){B=wb(B);if(B.Ea==null&&B.parentNode.Ea!=null)B=B.parentNode;if(B.Ea!=g.selectedTab){if(A.useImages&&A.hiImages){B.style.backgroundImage="url("+C+"middle-hi."+F+")";B.previousSibling.style.backgroundImage="url("+C+"left-hi."+F+")";B.nextSibling.style.backgroundImage="url("+C+"right-hi."+F+")"}if(A.hiColor!=null)B.style.color=A.hiColor;if(A.hiUnderline==true)B.style.textDecoration="underline"}};this.Py=function(B){B=wb(B);if(B.Ea==null&&B.parentNode.Ea!=null)B=B.parentNode;
1633
1633
  if(B.Ea!=g.selectedTab){if(A.useImages&&A.hiImages){B.style.backgroundImage="url("+C+"middle."+F+")";B.previousSibling.style.backgroundImage="url("+C+"left."+F+")";B.nextSibling.style.backgroundImage="url("+C+"right."+F+")"}if(A.hiColor!=null)B.style.color="";if(A.hiUnderline==true)B.style.textDecoration=""}};this.Oy=function(B){B=B.target;g.zd=B.parentNode.parentNode.scrollLeft;if(B.Ea==null&&B.parentNode.Ea!=null)B=B.parentNode;B=B.Ea;if(g.b.ontabclick!=null)if(g.b.ontabclick(B)==false)return;if(g.b.lu!=
1634
1634
  null){var E=g.b.lu.split(",");if(E.length-1>=B){E=E[B];E=Kb(E);if(E!=""){Ub(E);return}}}g.an=g.selectedTab;E=false;if(g.selectedTab!=B)E=true;if(E)g.selectedTab=B;if(Fb()){var D=Hb.designer.selection;D.Qd.length>1&&D.clear()}E&&g.rp(B)};this.mu=function(B){if(Fb()){var E=B.target;if(E.Ea==null&&E.parentNode.Ea!=null)E=E.parentNode;var D=E.parentNode.parentNode.parentNode,K=Hb.designer.oh(D);if(!pui.p(K.properties["tab names"])&&!pui.Ib(K.properties["tab names"])){K.designer.zf.jp=function(M){var N=
1635
- E.Ea,Q=K.properties["tab names"];if(Q==""||Q==null)Q=g.tc;Q=pui.ha(Q);Q[N]=M;Q=Q.join(",");M=Cc()["tab names"];K.designer.aa.add(K,M.name);Oc(M,K.properties,K.dom,Q,true,K,null);K.ob["tab names"]=true;K.hd=true;K.designer.jd[K.designer.Ma.tb]=true;K.designer.nb.Jh("tab names");E=D=K=K.designer.zf.jp=null};K.designer.zf.show(K,E,"tab")}}};this.qv=function(){var B=Hb.designer.oh(g.b),E=B.properties["tab names"];if(!pui.Ib(E)){if(pui.p(E)){var D=E.designValue;if(D==null||D=="")D=g.tc;D=pui.ha(D);D.push("Tab "+
1636
- (D.length+1));E.designValue=D.join(",")}else{if(E==""||E==null)E=g.tc;E=pui.ha(E);E.push("New Tab");E=E.join(",")}D=!pui.p(E)&&!pui.Ib(E)?pui.ha(E):pui.ha(E.designValue);g.selectedTab=D.length-1;if(g.z)g.zd=g.z.scrollWidth;D=Cc()["tab names"];B.designer.aa.start("Add New Tab");B.designer.aa.add(B,D.name);Oc(D,B.properties,B.dom,E,true,B,null);B.ob["tab names"]=true;B.hd=true;B.designer.jd[B.designer.Ma.tb]=true;B.designer.selection.clear();B.designer.selection.add(B);B.designer.nb.refresh()}};this.Wx=
1637
- function(){var B=Hb.designer.oh(g.b),E=B.properties["tab names"],D;if(!pui.Ib(E)){if(pui.p(E)){var K=E.designValue;if(K==null||K=="")K=g.tc;E.designValue=K;D=pui.ha(K)}else{if(E==""||E==null)E=g.tc;D=pui.ha(E)}if(D.length>1)if(g.di(D.length-1,B)){B.designer.selection.clear();B.designer.selection.add(B);B.designer.nb.refresh();g.selectedTab=D.length-1;g.Tc();pui.alert(g.Og)}else{D.pop();K=g.selectedTab;if(g.selectedTab>D.length-1)g.selectedTab=D.length-1;if(pui.p(E)||pui.Ib(E))E.designValue=D.join(",");
1635
+ E.Ea,Q=K.properties["tab names"];if(Q==""||Q==null)Q=g.uc;Q=pui.ha(Q);Q[N]=M;Q=Q.join(",");M=Cc()["tab names"];K.designer.aa.add(K,M.name);Oc(M,K.properties,K.dom,Q,true,K,null);K.ob["tab names"]=true;K.hd=true;K.designer.jd[K.designer.Ma.tb]=true;K.designer.nb.Jh("tab names");E=D=K=K.designer.zf.jp=null};K.designer.zf.show(K,E,"tab")}}};this.qv=function(){var B=Hb.designer.oh(g.b),E=B.properties["tab names"];if(!pui.Ib(E)){if(pui.p(E)){var D=E.designValue;if(D==null||D=="")D=g.uc;D=pui.ha(D);D.push("Tab "+
1636
+ (D.length+1));E.designValue=D.join(",")}else{if(E==""||E==null)E=g.uc;E=pui.ha(E);E.push("New Tab");E=E.join(",")}D=!pui.p(E)&&!pui.Ib(E)?pui.ha(E):pui.ha(E.designValue);g.selectedTab=D.length-1;if(g.z)g.zd=g.z.scrollWidth;D=Cc()["tab names"];B.designer.aa.start("Add New Tab");B.designer.aa.add(B,D.name);Oc(D,B.properties,B.dom,E,true,B,null);B.ob["tab names"]=true;B.hd=true;B.designer.jd[B.designer.Ma.tb]=true;B.designer.selection.clear();B.designer.selection.add(B);B.designer.nb.refresh()}};this.Wx=
1637
+ function(){var B=Hb.designer.oh(g.b),E=B.properties["tab names"],D;if(!pui.Ib(E)){if(pui.p(E)){var K=E.designValue;if(K==null||K=="")K=g.uc;E.designValue=K;D=pui.ha(K)}else{if(E==""||E==null)E=g.uc;D=pui.ha(E)}if(D.length>1)if(g.di(D.length-1,B)){B.designer.selection.clear();B.designer.selection.add(B);B.designer.nb.refresh();g.selectedTab=D.length-1;g.Tc();pui.alert(g.Og)}else{D.pop();K=g.selectedTab;if(g.selectedTab>D.length-1)g.selectedTab=D.length-1;if(pui.p(E)||pui.Ib(E))E.designValue=D.join(",");
1638
1638
  else E=D.join(",");D=Cc()["tab names"];B.designer.aa.start("Remove Tab");B.designer.aa.add(B,D.name);Oc(D,B.properties,B.dom,E,true,B,null);B.ob["tab names"]=true;B.hd=true;B.designer.jd[B.designer.Ma.tb]=true;B.designer.nb.Jh("tab names");if(B.dom.Ia!=null&&B.dom.Ia==g)g.selectedTab=K}}};this.di=function(B,E){for(var D=0;D<E.designer.items.length;D++){var K=E.designer.items[D].dom;if(K.Va!=null&&K.db!=null&&K.Va==g.b.id)if(K.db==B)return true}return false};this.cr=function(){p=g.ei("left");t=g.ei("right");
1639
1639
  if(Fb())t.style.right="35px";p.onmousedown=c;p.ontouchstart=c;p.onmouseup=f;p.ontouchend=f;p.onmouseout=p.onmouseup;p.tx=p.onmouseup;t.onmousedown=e;t.ontouchstart=e;t.onmouseup=h;t.ontouchend=h;t.onmouseout=t.onmouseup;t.tx=t.onmouseup;g.b.appendChild(p);g.b.appendChild(t)};this.lk=function(){var B=g.z.scrollWidth-g.z.offsetWidth;if(B-g.zd<=3)g.zd=B;else if(g.zd<=3)g.zd=0;g.z.scrollLeft=g.zd;p.style.display=g.z.scrollLeft>0?"inline-block":"";t.style.display=g.z.scrollLeft<B?"inline-block":""};this.ei=
1640
1640
  function(B){var E=document.createElement("span");if(B)E.className="pui-tscrbtn "+B;var D="-sel.";if(pui["tabpanel scroll unsel style"]==true)D=".";if(A.leftWidth!=null){var K=document.createElement("span");K.className="edge";K.style.backgroundImage="url("+C+"left"+D+F+")";K.style.height=A.height+2+"px";K.style.width=A.leftWidth+"px"}if(A.rightWidth!=null){var M=document.createElement("span");M.className="edge";M.style.backgroundImage="url("+C+"right"+D+F+")";M.style.height=A.height+2+"px";M.style.width=
1641
- A.rightWidth+"px"}B=document.createElement("span");B.className="mid";B.style.height=A.height+"px";if(A.useImages){B.style.backgroundImage="url("+C+"middle"+D+F+")";B.style.backgroundRepeat="repeat-x";D=1;if(A.leftMargin)D=A.leftMargin;K.style.marginLeft=D+"px";B.style.padding=A.height-17+"px 0.5em 0px";if(A.separated!=true){K.style.backgroundColor=g.Ec;M.style.backgroundColor=g.Ec;B.style.backgroundColor=g.Ec;if(this.hc=="Glass"||this.hc=="Delicate"||this.hc=="Classic"){K.style.backgroundSize="cover";
1642
- M.style.backgroundSize="cover";K.style.backgroundColor="";M.style.backgroundColor="";K.style.height=A.height+"px";M.style.height=A.height+"px"}}if(A.selColor!=null)B.style.color=A.selColor;if(A.selBold==true)B.style.fontWeight="bold"}else{B.style.marginLeft="3px";B.style.padding="3px 0.5em";B.style.borderTop="1px solid "+G;B.style.borderLeft="1px solid "+G;B.style.borderRight="1px solid "+G;B.style.borderBottom="1px solid "+g.Ec;B.style.backgroundColor=pui["tabpanel scroll unsel style"]!=true?g.Ec:
1641
+ A.rightWidth+"px"}B=document.createElement("span");B.className="mid";B.style.height=A.height+"px";if(A.useImages){B.style.backgroundImage="url("+C+"middle"+D+F+")";B.style.backgroundRepeat="repeat-x";D=1;if(A.leftMargin)D=A.leftMargin;K.style.marginLeft=D+"px";B.style.padding=A.height-17+"px 0.5em 0px";if(A.separated!=true){K.style.backgroundColor=g.Fc;M.style.backgroundColor=g.Fc;B.style.backgroundColor=g.Fc;if(this.hc=="Glass"||this.hc=="Delicate"||this.hc=="Classic"){K.style.backgroundSize="cover";
1642
+ M.style.backgroundSize="cover";K.style.backgroundColor="";M.style.backgroundColor="";K.style.height=A.height+"px";M.style.height=A.height+"px"}}if(A.selColor!=null)B.style.color=A.selColor;if(A.selBold==true)B.style.fontWeight="bold"}else{B.style.marginLeft="3px";B.style.padding="3px 0.5em";B.style.borderTop="1px solid "+G;B.style.borderLeft="1px solid "+G;B.style.borderRight="1px solid "+G;B.style.borderBottom="1px solid "+g.Fc;B.style.backgroundColor=pui["tabpanel scroll unsel style"]!=true?g.Fc:
1643
1643
  A.defaultTabColor?A.defaultTabColor:"#B7C8F6"}A.leftWidth!=null&&E.appendChild(K);E.appendChild(B);A.rightWidth!=null&&E.appendChild(M);return E}}te.prototype=Object.create(pui.Xd.prototype);
1644
1644
  pui.widgets.add({name:"tab panel",ig:false,b:true,defaults:{width:"300px",height:"200px","tab names":"Tab 1,Tab 2,Tab 3","z index":"8",color:"#333366","font family":"Arial","font size":"12px"},propertySetters:{"field type":function(b){b.dom.sizeMe=function(){b.dom.tabPanel.w()};b.dom.tabPanel=new te;var a=b.evalProperty("tab names");b.dom.tabPanel.hb=a!=null&&a!=""?pui.ha(a):["Tab 1","Tab 2","Tab 3"];b.dom.tabPanel.selectedTab=0;b.dom.tabPanel.b=b.dom;b.dom.tabPanel.hc=b.properties["tab panel style"];
1645
1645
  if(b.design&&pui.p(b.dom.tabPanel.hc))b.dom.tabPanel.hc="Simple";if(b.properties["background color"]==null||b.properties["background color"]=="")b.dom.tabPanel.Vt();if(O=="genie"||b.design)b.dom.tabPanel.w();if(!b.design){a=b.dom.tabPanel;b.dom.setTab=a.setTab.bind(a);b.dom.getTab=a.getTab.bind(a);b.dom.refresh=a.refresh.bind(a);b.dom.hideTab=a.Ds.bind(a);b.dom.showTab=a.eu.bind(a)}},"tab names":function(b){if(b.dom.tabPanel!=null){var a=b.value;b.dom.tabPanel.hb=a!=null&&a!=""?pui.ha(a):["Tab 1",
@@ -1661,7 +1661,7 @@ e.target.select()}})},value:function(b){if(b.dom.qr)b.dom.qr=false;else b.dom.va
1661
1661
  b.value;if(b.design){b=b.e;b.Kl=null;if(a)b.Kl=a;b.kh();b.Bg()}},visibility:function(b){if(b.dom.tj)b.dom.tj.style.visibility=b.value==="hidden"?"hidden":""},"css class":function(b){b.design&&b.e.kh()}},qc:function(b){b.propertyName=="field type"&&b.ya&&b.ya.l!=null&&b.dom&&b.dom.l==null&&pui.pg(b.dom);b.dom&&b.dom.l!=null&&pui.cp(b)}});
1662
1662
  pui.sv=function(b){var a=document.createElement("div"),c=b.evalProperty("prompt icon");a.classList.add("pui-prompt");for(var e=0;e<b.dom.classList.length;e++)a.classList.add("pui-prompt-"+b.dom.classList[e]);if(c.substr(0,9)==="material:"){c=c.substr(9);a.innerText=Kb(c);a.classList.add("pui-material-icons")}else if(c.substr(0,12)==="fontAwesome:"){c=Kb(c.substr(12));a.classList.add("pui-fa-icons fa-"+c);a.innerText=""}else{e=[{type:"material",title:"Material Icons",classList:{"":"pui-material-icons"}},
1663
1663
  {type:"fontAwesome",title:"Font Awesome Icons",classList:{brands:"pui-fa-brands-icons fa-",solid:"pui-fa-solid-icons fa-",regular:"pui-fa-regular-icons fa-"}},{type:"jQueryIcons",title:"jQuery Mobile Icons",classList:{"":"ui-icon ui-icon-"}}];if(pui.customIconList&&pui.customIconList)if(Array.isArray(pui.customIconList.icons)&&pui.customIconList.icons.length)e=pui.customIconList.icons;c=c.split(":");var f=c.shift().split("-"),h=f.pop();f=f.join("-");var g=c.pop();e.every(function(l){var o=l.classList[h];
1664
- if(f===l.type){l=(o+g).split(" ");for(o=0;o<l.length;o++)a.classList.add(l[o]);a.innerHTML="";return false}return true})}a.onclick=function(){b.dom.onprompt.call(b.dom,b.dom.value)};b.dom.parentNode.appendChild(a);b.dom.tj=a;b.dom.wc=[a];pui.bp(b.dom)};
1664
+ if(f===l.type){l=(o+g).split(" ");for(o=0;o<l.length;o++)a.classList.add(l[o]);a.innerHTML="";return false}return true})}a.onclick=function(){b.dom.onprompt.call(b.dom,b.dom.value)};b.dom.parentNode.appendChild(a);b.dom.tj=a;b.dom.xc=[a];pui.bp(b.dom)};
1665
1665
  pui.bp=function(b){var a=b.tj;if(a){if(b.parentNode&&b.parentNode.l)b=b.parentNode;var c=b.style.left;c=c!=null&&typeof c=="string"&&c.length>=3&&c.substr(c.length-2,2)=="px"?parseInt(c):b.offsetLeft;if(isNaN(c))c=0;var e;e=b.style.top;e=e!=null&&typeof e=="string"&&e.length>=3&&e.substr(e.length-2,2)=="px"?parseInt(e):b.offsetTop;if(isNaN(e))e=0;a.style.left=c+b.offsetWidth+6+"px";e+=parseInt((b.offsetHeight-18)/2);e-=4;if(pui.is_quirksmode)e-=1;a.style.top=e+"px";a.style.zIndex=b.style.zIndex;a.style.visibility=
1666
1666
  b.style.visibility;a.style.filter=b.style.filter;a.style.opacity=b.style.opacity}};pui.widgets.panelStyles={Simple:{left:10,right:10,top:33,bottom:9,background:"#bad3e9",textBackground:"#004eae",textTopPadding:"7px"},Evergreen:{left:10,right:10,top:30,bottom:30,background:"#edeef0",textBackground:"#288e28",textTopPadding:"7px"},Ruby:{left:6,right:6,top:25,bottom:25,background:"#e1e0e0",textBackground:"#cc3333",textTopPadding:"7px",fontSize:"14px"},Sapphire:{left:9,right:9,top:30,bottom:30,background:"#edeef0",textBackground:"#2570cb",textTopPadding:"7px"},Polished:{left:10,right:10,
1667
1667
  top:30,bottom:30,background:"#edeef0",textBackground:"#4f6592",textTopPadding:"7px"},Contemporary:{left:6,right:6,top:28,bottom:28,background:"#a7a9ac",textBackground:"#387adc",textTopPadding:"7px"},Slate:{left:11,right:11,top:30,bottom:30,background:"#a5a7ac",textBackground:"#3568ce",textTopPadding:"7px"},Smoke:{left:11,right:11,top:34,bottom:34,background:"#7a7a7b",textBackground:"#7479a0",textTopPadding:"10px"},Pine:{left:6,right:6,top:25,bottom:25,background:"#d2d2d2",textBackground:"#288e28",
@@ -1682,17 +1682,17 @@ b.dom.innerHTML="";if(typeof b.dom.style.MozUserSelect!="undefined")b.dom.style.
1682
1682
  "0px";a.Xa.style.margin="0px";a.Ya.style.position="absolute";a.Ya.style.padding="0px";a.Ya.style.margin="0px";a.Za.style.position="absolute";a.Za.style.padding="0px";a.Za.style.margin="0px";a.xa.style.top="0px";a.xa.style.left="0px";a.xa.style.backgroundRepeat="no-repeat";a.jb.style.top="0px";a.jb.style.backgroundRepeat="repeat-x";a.Qa.style.top="0px";a.Qa.style.backgroundRepeat="no-repeat";a.cb.style.left="0px";a.Xa.style.left="0px";a.Xa.style.backgroundRepeat="no-repeat";a.Ya.style.backgroundRepeat=
1683
1683
  "repeat-x";a.Za.style.backgroundRepeat="no-repeat";a.cb.style.backgroundRepeat="repeat-y";a.fb.style.backgroundRepeat="repeat-y";a.m.style.position="absolute";a.m.style.verticalAlign="middle";a.m.style.display="";if(!pui.pa)a.m.style.cursor="default";a.m.style.overflow="hidden";a.m.style.az="rgba(0,0,0,0)";if(b.properties.color!=null)a.m.style.color=b.properties.color;if(b.properties["text align"]!=null)a.m.style.textAlign=b.properties["text align"];if(b.properties["font size"]!=null)a.m.style.fontSize=
1684
1684
  b.properties["font size"];b.dom.style.fontFamily=a.m.style.fontFamily;b.dom.style.color=a.m.style.color;b.dom.style.fontSize=a.m.style.fontSize;b.dom.style.fontWeight=a.m.style.fontWeight;b.dom.style.textAlign=a.m.style.textAlign;b.dom.appendChild(a.xa);b.dom.appendChild(a.jb);b.dom.appendChild(a.Qa);b.dom.appendChild(a.cb);b.dom.appendChild(a.$b);b.dom.appendChild(a.fb);b.dom.appendChild(a.Xa);b.dom.appendChild(a.Ya);b.dom.appendChild(a.Za);b.dom.appendChild(a.m);var c=b.dom.parentNode;if(!b.design&&
1685
- c!=null&&c.zc==true){new pui.fk({df:[a.m,a.xa,a.Qa],move:c});T(a.m,"touchstart",function(e){if(e.touches.length==1){e=e.touches[0];c.C={};c.C.startX=e.pageX;c.C.startY=e.pageY;c.C.gb=parseInt(c.style.left);c.C.Da=parseInt(c.style.top)}});T(a.m,"touchmove",function(e){if(e.touches.length==1){var f=e.touches[0],h=f.pageY;c.style.left=c.C.gb-c.C.startX+f.pageX+"px";c.style.top=c.C.Da-c.C.startY+h+"px";e.preventDefault()}});a.m.style.cursor="move";a.xa.style.cursor="move";a.Qa.style.cursor="move"}b.dom.panel=
1685
+ c!=null&&c.Ac==true){new pui.fk({df:[a.m,a.xa,a.Qa],move:c});T(a.m,"touchstart",function(e){if(e.touches.length==1){e=e.touches[0];c.C={};c.C.startX=e.pageX;c.C.startY=e.pageY;c.C.gb=parseInt(c.style.left);c.C.Da=parseInt(c.style.top)}});T(a.m,"touchmove",function(e){if(e.touches.length==1){var f=e.touches[0],h=f.pageY;c.style.left=c.C.gb-c.C.startX+f.pageX+"px";c.style.top=c.C.Da-c.C.startY+h+"px";e.preventDefault()}});a.m.style.cursor="move";a.xa.style.cursor="move";a.Qa.style.cursor="move"}b.dom.panel=
1686
1686
  a;a=b.value;b.value=b.properties["panel style"];pui.widgets.panel.propertySetters["panel style"](b);b.value=a;b.dom.panel.m.innerHTML=b.evalProperty("value")},"panel style":function(b){var a=b.value,c=pui.widgets.panelStyles[a];if(c==null){a=pui.widgets.Ki()[0];c=pui.widgets.panelStyles[a]}var e=pui.normalizeURL("/profoundui/proddata/images/panels/"+a+"/");b.dom.panel.iA=a;var f=b.dom.panel;f.xa.style.backgroundImage="url('"+e+"topleft.png')";f.jb.style.backgroundImage="url('"+e+"topmiddle.png')";
1687
1687
  f.Qa.style.backgroundImage="url('"+e+"topright.png')";f.cb.style.backgroundImage="url('"+e+"left.png')";f.$b.style.backgroundColor=c.background;f.fb.style.backgroundImage="url('"+e+"right.png')";f.Xa.style.backgroundImage="url('"+e+"bottomleft.png')";f.Ya.style.backgroundImage="url('"+e+"bottommiddle.png')";f.Za.style.backgroundImage="url('"+e+"bottomright.png')";f.m.style.paddingTop=c.textTopPadding;f.m.className="panel "+a.split(" ").join("-").toLowerCase()+"-panel";pui.widgets.Ul(f,c,b.properties.width,
1688
1688
  b.properties.height)},value:function(b){b.dom.panel.m.innerHTML=b.value},width:function(b){b.dom.style.width=pui.Ri(b.value)?b.value+"px":b.value;var a=b.properties["panel style"];a=pui.widgets.panelStyles[a];if(a==null){a=pui.widgets.Ki()[0];a=pui.widgets.panelStyles[a]}pui.widgets.Ul(b.dom.panel,a,b.value,b.properties.height,b)},height:function(b){b.dom.style.height=pui.Ri(b.value)?b.value+"px":b.value;var a=b.properties["panel style"];a=pui.widgets.panelStyles[a];if(a==null){a=pui.widgets.Ki()[0];
1689
1689
  a=pui.widgets.panelStyles[a]}pui.widgets.Ul(b.dom.panel,a,b.properties.width,b.value,b)},color:function(b){b.dom.panel.m.style.color=b.value;b.dom.style.color=b.dom.panel.m.style.color},"font family":function(b){b.dom.panel.m.style.fontFamily=b.value;b.dom.style.fontFamily=b.dom.panel.m.style.fontFamily},"font size":function(b){b.dom.panel.m.style.fontSize=b.value;b.dom.style.fontSize=b.dom.panel.m.style.fontSize},"font style":function(b){b.dom.panel.m.style.fontStyle=b.value},"font variant":function(b){b.dom.panel.m.style.fontVariant=
1690
- b.value},"font weight":function(b){b.dom.panel.m.style.fontWeight=b.value;b.dom.style.fontWeight=b.dom.panel.m.style.fontWeight},"letter spacing":function(b){b.dom.panel.m.style.letterSpacing=b.value},"text align":function(b){b.dom.panel.m.style.textAlign=b.value},"text decoration":function(b){b.dom.panel.m.style.textDecoration=b.value},"text transform":function(b){b.dom.panel.m.style.textTransform=b.value},"word spacing":function(b){b.dom.panel.m.style.wordSpacing=b.value}}});pui.layout={};pui.layout.template={};pui.layout.ek=function(){this.P=null;this.designMode=false;this.template="test";this.Pa={};this.Cf=false;this.Me=[];this.vc=[];this.lr=this.Ar=this.zr=false;this.vi={};this.Ye=this.ej=null;this.dg={}};pui.layout.ek.prototype=Object.create(pui.Xd.prototype);ua=pui.layout.ek.prototype;ua.ko=function(){this.designMode=true;this.P.destroy=this.destroy.bind(this);this.P.addEventListener("click",this)};
1690
+ b.value},"font weight":function(b){b.dom.panel.m.style.fontWeight=b.value;b.dom.style.fontWeight=b.dom.panel.m.style.fontWeight},"letter spacing":function(b){b.dom.panel.m.style.letterSpacing=b.value},"text align":function(b){b.dom.panel.m.style.textAlign=b.value},"text decoration":function(b){b.dom.panel.m.style.textDecoration=b.value},"text transform":function(b){b.dom.panel.m.style.textTransform=b.value},"word spacing":function(b){b.dom.panel.m.style.wordSpacing=b.value}}});pui.layout={};pui.layout.template={};pui.layout.ek=function(){this.P=null;this.designMode=false;this.template="test";this.Pa={};this.Cf=false;this.Me=[];this.wc=[];this.lr=this.Ar=this.zr=false;this.vi={};this.Ye=this.ej=null;this.dg={}};pui.layout.ek.prototype=Object.create(pui.Xd.prototype);ua=pui.layout.ek.prototype;ua.ko=function(){this.designMode=true;this.P.destroy=this.destroy.bind(this);this.P.addEventListener("click",this)};
1691
1691
  ua.Fo=function(){for(var b=pui.layout.template.uo(this.P),a=0;a<b.length;a++)if(b[a].firstChild!=null)return true;return false};ua.yw=function(b){if(b==null)b={};b.Pw=false;b.Nw=false;for(var a=[],c=this.P.e.designer.items,e=0;e<c.length;e++){var f=c[e];if(f.Lz()==this){if(f.properties["field type"]=="tab panel")b.Pw=true;if(f.properties["field type"]=="field set panel")b.Nw=true;a.push(f)}}return a};
1692
- ua.applyTemplate=function(){var b=pui.layout.template.applyTemplate({dom:this.P,template:this.template,properties:this.Pa,Ml:this.e!=null&&this.e.Af,designMode:this.designMode,layout:this});if(b.success){this.Me=b.Me;this.vc=b.vc;this.stretch()}else{setTimeout(function(){pui.alert(b.msg)},0);return b}this.P.sp=pui.layout.Ew(this.template);this.P.Fh=Jc(this.P.sp);return b};
1692
+ ua.applyTemplate=function(){var b=pui.layout.template.applyTemplate({dom:this.P,template:this.template,properties:this.Pa,Ml:this.e!=null&&this.e.Af,designMode:this.designMode,layout:this});if(b.success){this.Me=b.Me;this.wc=b.wc;this.stretch()}else{setTimeout(function(){pui.alert(b.msg)},0);return b}this.P.sp=pui.layout.Ew(this.template);this.P.Fh=Jc(this.P.sp);return b};
1693
1693
  ua.Tf=function(b,a){if(!this.designMode)return false;var c=this.e;if(c.properties[b]!=a){if(pui.p(c.properties[b]))c.properties[b].designValue=a;else c.properties[b]=a;c.ob[b]=true;c.hd=true;c.designer.jd[c.designer.Ma.tb]=true;c.designer.nb.refresh();return true}return false};
1694
1694
  ua.stretch=function(){for(var b=[],a=0;a<this.Me.length;a++){var c=this.Me[a];c.style.width="0px";c.style.height="0px"}for(a=0;a<this.Me.length;a++){c=this.Me[a];var e=c.parentNode;b.push({width:e.offsetWidth,height:e.offsetHeight})}for(a=0;a<this.Me.length;a++){c=this.Me[a];var f=b[a],h=e.style.overflowX,g=e.style.overflowY;f.width-=this.designMode&&this.template!=="mobile device"||h==="auto"||h==="scroll"||this.template=="table"?4:2;if(f.width<0)f.width=0;f.height-=this.designMode&&this.template!==
1695
- "mobile device"||g==="auto"||g==="scroll"||this.template=="table"?4:2;if(f.height<0)f.height=0;c.style.width=f.width+"px";c.style.height=f.height+"px"}ue(this);this.center();b=this.iScroll;b!=null&&b.refresh()};function ue(b,a){if(typeof a!=="number")a=b.sg();var c=b.vc;if(c!=null){var e=c[a];if(e!=null){pui.Ep(e,true);b.vi[a]=true}else for(var f=0,h=c.length;f<h&&(e=c[f]);f++){pui.Ep(e,true);b.vi[f]=true}}}
1695
+ "mobile device"||g==="auto"||g==="scroll"||this.template=="table"?4:2;if(f.height<0)f.height=0;c.style.width=f.width+"px";c.style.height=f.height+"px"}ue(this);this.center();b=this.iScroll;b!=null&&b.refresh()};function ue(b,a){if(typeof a!=="number")a=b.sg();var c=b.wc;if(c!=null){var e=c[a];if(e!=null){pui.Ep(e,true);b.vi[a]=true}else for(var f=0,h=c.length;f<h&&(e=c[f]);f++){pui.Ep(e,true);b.vi[f]=true}}}
1696
1696
  ua.center=function(){var b=this.zr,a=this.Ar;if(this.designMode&&this.e){var c=this.e,e=null;if(c.ob["center horizontally"])e=c.properties["center horizontally"];if(e==="true"){e=parseInt(this.P.offsetWidth/2);if(!isNaN(e)&&e>0){this.P.style.left="calc(50% - "+e+"px)";(c=c.Mz())&&c.rj()}}}if(b||a){c={};e=false;var f=this.P.parentNode;if(f!=null&&f.tagName=="DIV"&&f.offsetWidth>0&&(f.parentNode!=document.body||f.style.width!=null&&f.style.height!=null&&f.style.width!=""&&f.style.height!="")){c.width=
1697
1697
  f.offsetWidth;c.height=f.offsetHeight}else{e=pui.getWindowSize();c.width=e.width;c.height=e.height;e=true}if(b){b=parseInt((c.width-this.P.offsetWidth)/2);if(b<0){if(e)document.body.scrollLeft=Math.abs(b);b=0}this.P.style.left=b+"px"}if(a){a=parseInt((c.height-this.P.offsetHeight)/2);if(a<0)a=0;this.P.style.top=a+"px"}}};ua.resize=function(){var b=this.P,a=b.panel;b=b.Ia;if(a)a.resize();else b&&b.resize();this.vi={};this.stretch()};ua.sg=function(){var b=-1;if(this.P)b=(b=this.P.Ia)?b.sg():-1;return b};
1698
1698
  ua.setProperty=function(b,a){if(a==null)a="";var c=this.P.panel,e=/^(css class|user defined data) \d+$/.exec(b);if(!(e!=null&&e[1]!=null)){e=this.P.Ia;if(!(e&&e.setProperty(b,a)))switch(b){case "id":this.P.id=a;break;case "template":if(this.designMode){this.e.properties.template=a;this.e.ob.template=true;this.e.hd=true;if(this.e.Af!==true){this.e.designer.jd[this.e.designer.Ma.tb]=true;this.e.designer.nb.refresh()}this.resize()}break;case "left":case "top":case "right":case "bottom":this.P.style[b]=
@@ -1704,17 +1704,17 @@ a;if(this.designMode&&!Hb.yh&&!Hb.Bx){c=this.applyTemplate();e=this.P.Ia;e!=null
1704
1704
  function ve(b){function a(){clearTimeout(h);var g=e.P.parentNode;if(g!=null&&g.tagName=="DIV")e.iScroll=new IScroll(g,{scrollbars:true,mouseWheel:true,disableMouse:pui.is_ios,preventDefaultException:{tagName:/^(INPUT|TEXTAREA|BUTTON|SELECT|IMG)$/}})}function c(){f++;f>100||(h=setTimeout(function(){typeof IScroll=="function"||typeof iScroll=="function"?a():c()},200))}var e=b,f=0,h=0;if(typeof IScroll=="function"||typeof iScroll=="function")a();else pui.loadJS({path:pui.normalizeURL("/iscroll/iscroll.js"),
1705
1705
  callback:a})==false&&c()}function zc(b,a){var c=document.documentElement.clientHeight+"px";b.P.parentNode.style.height=c;document.body.style.height=c;document.body.parentNode.style.height=c;b.P.style.height=c;a&&b.setProperty("height",c)}
1706
1706
  ua.Qt=function(b){this.Ye={active:b.active,data:b.data,designMode:b.designMode,errors:b.errors,file:b.file,fileId:b.fileId,hl:b.hl,il:b.il,library:b.library,metaData:{screen:{"record format name":b.metaData.screen["record format name"]}},msgInfo:b.msgInfo,name:b.name,ref:b.ref,Fj:b.Fj,subfiles:b.subfiles}};
1707
- ua.Rl=function(b){if(this.Ye!=null){if(this.dg[b]!=null&&this.vc[b]!=null){this.Ye.b=this.vc[b];this.Ye.kl=b;this.Ye.metaData.items=this.dg[b];this.Ye.ej=this.ej;pui.Cp(this.Ye);delete this.dg[b]}if(Object.keys(this.dg).length==0)this.Ye=null}};ua.destroy=function(){this.iScroll!=null&&this.iScroll.destroy();this.P&&delete this.P.layout;Yb(this)};
1707
+ ua.Rl=function(b){if(this.Ye!=null){if(this.dg[b]!=null&&this.wc[b]!=null){this.Ye.b=this.wc[b];this.Ye.kl=b;this.Ye.metaData.items=this.dg[b];this.Ye.ej=this.ej;pui.Cp(this.Ye);delete this.dg[b]}if(Object.keys(this.dg).length==0)this.Ye=null}};ua.destroy=function(){this.iScroll!=null&&this.iScroll.destroy();this.P&&delete this.P.layout;Yb(this)};
1708
1708
  pui.layout.ek.prototype.handleEvent=function(b){switch(b.type){case "click":if(this.Cf)if(!pui.designer.DA){b=wb(b);if(b==this.P||b.getAttribute!=null&&b.getAttribute("container")=="true"&&pui.layout.template.uo(this.P).includes(b)){b=this.e;if(b!=null){var a=b.designer.selection;if(!(a.Qd.length==1&&a.Qd[0].e==b)){a.clear();a.add(b);b.designer.nb.refresh()}}}}break}};pui.layout.Template=function(b,a){this.se=b&&b.Ml;this.designMode=b&&b.designMode;if(b)this.layout=b.layout;a&&this.Xi(a)};
1709
1709
  pui.layout.Template.prototype=Object.create(pui.Xd.prototype);ua=pui.layout.Template.prototype;ua.Xi=function(b){this.b=b;this.b.Ia=this;var a=b.layout;if(a&&typeof a.resize==="function")b.sizeMe=a.resize.bind(a)};ua.destroy=function(){if(this.b){delete this.b.Ia;delete this.b.sizeMe}Yb(this)};ua.cn=function(b,a){if(this.layout)return this.layout.Tf(b,a)};function we(b,a){var c=a.properties;if(c)for(var e in c)b.setProperty(e,c[e])}ua.setProperty=ta(false);ua.Yt=la();ua.resize=la();ua.render=la();
1710
- ua.sg=ta(-1);pui.layout.template.Zv=function(b,a){var c=b.properties,e=b.Ml,f=new pui.Gm;f.qf=true;f.b=a;f.init();a.panel=f;a.sizeMe=function(){a.panel.resize()};var h=c["header text"];h!=null&&f.setText(h);h=c["header theme"];h!=null&&f.Qf(h);h=c["body theme"];h!=null&&f.Of(h);f.T(c["straight edge"]);h=c["has header"];h=h!=="false"&&h!==false;f.Mj(h);h=c["header height"];h!=null&&f.Nj(h);f.Dg(c);c=c.height;if(c==null)c=a.style.height||"300px";f.setHeight(c);if(e)a.style.position="relative";return a};pui.bk=function(b,a){pui.layout.Template.call(this,b,a);this.tc=pui.getLanguageText("runtimeText","section")+" 1,"+pui.getLanguageText("runtimeText","section")+" 2,"+pui.getLanguageText("runtimeText","section")+" 3";this.Ve=[];this.ae=[];this.Pb=[];this.Qg=[];this.Tq="none";this.Mq="b";this.Gq="c";this.Qc=-1;this.Qm=false;this.Xe=this.Wf=null;this.ii=[];this.Pu=this.$u.bind(this);this.init();this.b.sizeMe=this.resize.bind(this);if(this.layout&&this.layout.P)this.layout.P.sizeMe=this.resize.bind(this);
1711
- var c=b.properties,e=c["section names"];if(b.Bf>3&&(typeof e!=="string"||e.length===0)){e=this.tc;for(var f=e.split(",").length+1,h=b.Bf;f<=h;f++)e+=","+pui.getLanguageText("runtimeText","section")+" "+f;this.setProperty("section names",e);this.layout.Tf("section names",e)}else this.setProperty("section names",e);this.ne(0);e=c["header theme"];e!=null&&this.Qf(e);e=c["body theme"];e!=null&&this.Of(e);this.T(c["straight edge"]);e=c["small sections"];e=e==="true"||e===true;this.Fg(e);this.Dg(c);e=c.height;
1710
+ ua.sg=ta(-1);pui.layout.template.Zv=function(b,a){var c=b.properties,e=b.Ml,f=new pui.Gm;f.qf=true;f.b=a;f.init();a.panel=f;a.sizeMe=function(){a.panel.resize()};var h=c["header text"];h!=null&&f.setText(h);h=c["header theme"];h!=null&&f.Qf(h);h=c["body theme"];h!=null&&f.Of(h);f.T(c["straight edge"]);h=c["has header"];h=h!=="false"&&h!==false;f.Mj(h);h=c["header height"];h!=null&&f.Nj(h);f.Dg(c);c=c.height;if(c==null)c=a.style.height||"300px";f.setHeight(c);if(e)a.style.position="relative";return a};pui.bk=function(b,a){pui.layout.Template.call(this,b,a);this.uc=pui.getLanguageText("runtimeText","section")+" 1,"+pui.getLanguageText("runtimeText","section")+" 2,"+pui.getLanguageText("runtimeText","section")+" 3";this.Ve=[];this.ae=[];this.Pb=[];this.Qg=[];this.Tq="none";this.Mq="b";this.Gq="c";this.Qc=-1;this.Qm=false;this.Xe=this.Wf=null;this.ii=[];this.Pu=this.$u.bind(this);this.init();this.b.sizeMe=this.resize.bind(this);if(this.layout&&this.layout.P)this.layout.P.sizeMe=this.resize.bind(this);
1711
+ var c=b.properties,e=c["section names"];if(b.Bf>3&&(typeof e!=="string"||e.length===0)){e=this.uc;for(var f=e.split(",").length+1,h=b.Bf;f<=h;f++)e+=","+pui.getLanguageText("runtimeText","section")+" "+f;this.setProperty("section names",e);this.layout.Tf("section names",e)}else this.setProperty("section names",e);this.ne(0);e=c["header theme"];e!=null&&this.Qf(e);e=c["body theme"];e!=null&&this.Of(e);this.T(c["straight edge"]);e=c["small sections"];e=e==="true"||e===true;this.Fg(e);this.Dg(c);e=c.height;
1712
1712
  if(e==null)e="300px";this.setHeight(e);if(!this.designMode){c=c["active section"];if(c!=null){c=Number(c);!isNaN(c)&&c!=0&&this.ne(c)}}if(this.se)this.b.style.position="relative";b.Bf>0&&this.render()};pui.bk.prototype=Object.create(pui.layout.Template.prototype);Object.defineProperties(pui.bk.prototype,{Og:{value:"The section cannot be removed because it contains other elements that must be removed first."}});ua=pui.bk.prototype;ua.init=function(){this.b.style.overflow="hidden"};
1713
1713
  ua.render=function(){for(var b=this.ii,a=b.length,c=this.Ve.length;a>this.Ve.length;){var e=document.createElement("div");e.style.width="100%";e.style.padding="0";e.ly=c;e.onclick=this.Pu;var f=document.createElement("div");f.style.width="100%";f.style.height="175px";f.style.padding="0";var h=new pui.Fm;h.b=e;h.se=this.se;h.init();h.td(this.Mq);h.setIcon("plus");h.hm("left");var g=new pui.Hm;g.type="body";g.qf=true;g.b=f;g.init();g.td(this.Gq);g.setHeight("100%");this.b.appendChild(e);this.b.appendChild(f);
1714
1714
  this.Ve.push(e);this.ae.push(f);this.Pb.push(h);this.Qg.push(g);c++}for(;a<this.Ve.length;){e=this.Ve.pop();this.b.removeChild(e);f=this.ae.pop();this.b.removeChild(f);this.Pb.pop();this.Qg.pop()}a=0;for(c=b.length;a<c;a++){this.Pb[a].setText(b[a]);this.ae[a].style.overflow=a<b.length-1?"hidden":""}if(this.designMode){if(this.Wf==null){this.Wf=designUtils.Qn("plus",pui.getLanguageText("runtimeText","add x",[pui.getLanguageText("runtimeText","section")]),this.b);this.Wf.style.right="2px";this.Wf.style.bottom=
1715
1715
  "2px";this.Wf.onclick=this.Aq.bind(this);this.Wf.tv=true}else this.b.appendChild(this.Wf);if(this.Xe==null){this.Xe=designUtils.Qn("minus",pui.getLanguageText("runtimeText","delete x",[pui.getLanguageText("runtimeText","section")]),this.b);this.Xe.style.right="2px";this.Xe.style.bottom="16px";this.Xe.onclick=this.Aq.bind(this);this.Xe.style.display="none"}else this.b.appendChild(this.Xe);this.Xe.style.display=b.length>1?"":"none"}};
1716
1716
  ua.$u=function(b){b=wb(b);for(var a=null;a==null&&b!=null;){a=b.ly;b=b.parentNode}if(a!=null)if(this.Qc==a){a=-1;this.Qm&&!this.designMode&&this.ne(a)}else{if(this.b.onsectionclickevent!=null)if(this.b.onsectionclickevent(a)==false)return;this.ne(a)}};
1717
- ua.setProperty=function(b,a){switch(b){case "section names":var c=this.ii.length;if(a==null||a=="")a=this.tc;else if(pui.p(a)||pui.Ib(a))a=pui.ha(a.designValue).length==0?this.tc:a.designValue;var e=pui.ha(a);if(e.length!=c){var f=false;if(this.designMode){c=c;for(var h=e.length;c>h;c--)if(xe(this,c-1)){f=true;break}}if(f){pui.alert(this.Og);setTimeout(this.layout.Tf.bind(this.layout),1,"section names",this.ii.join(","))}else{this.ii=e;this.render();f=this.Qc;if(f>e.length-1)f=e.length-1;this.ne(f)}}else{this.ii=
1717
+ ua.setProperty=function(b,a){switch(b){case "section names":var c=this.ii.length;if(a==null||a=="")a=this.uc;else if(pui.p(a)||pui.Ib(a))a=pui.ha(a.designValue).length==0?this.uc:a.designValue;var e=pui.ha(a);if(e.length!=c){var f=false;if(this.designMode){c=c;for(var h=e.length;c>h;c--)if(xe(this,c-1)){f=true;break}}if(f){pui.alert(this.Og);setTimeout(this.layout.Tf.bind(this.layout),1,"section names",this.ii.join(","))}else{this.ii=e;this.render();f=this.Qc;if(f>e.length-1)f=e.length-1;this.ne(f)}}else{this.ii=
1718
1718
  e;this.render()}break;case "active section":if(!this.designMode)if(a!=null){a=Number(a);!isNaN(a)&&a!=0&&this.ne(a)}break;case "header theme":this.Qf(a);break;case "body theme":this.Of(a);break;case "small sections":this.Fg(a=="true"||a==true);break;case "allow collapse":this.Qm=a=="true"||a==true;this.ne(this.Qc);break;case "straight edge":this.T(a);break;case "color":case "font style":case "font weight":case "text align":case "text decoration":case "text transform":this.setStyle(b,a);break;case "font family":case "font size":this.setStyle(b,
1719
1719
  a);this.resize();break;case "onsectionclick":this.designMode||(this.b.onsectionclickevent=function(){eval("var section = arguments[0];");try{return eval(a)}catch(g){pui.Ca(g,"Onexpand Error:\n")}});break;default:return false}if(this.layout&&this.layout.Pa)this.layout.Pa[b]=a;return true};
1720
1720
  ua.ne=function(b){this.Qc=parseInt(b,10);for(var a=0;a<this.ae.length;a++){var c=this.ae[a],e=this.Pb[a];if(a===this.Qc){e.setIcon("minus");e.setDisabled(!this.Qm);c.style.display="";this.b.S=b}else{e.setIcon("plus");e.setDisabled(false);c.style.display="none"}}this.T(this.Tq);this.resize(true);b=this.b.layout;if(b!=null&&this.Qc>=0&&this.Qc<this.ae.length){this.designMode||b.Rl(this.Qc);b.vi[this.Qc]!==true&&ue(b,this.Qc)}};
@@ -1722,7 +1722,7 @@ ua.T=function(b){if(!(b==null||pui.p(b))){this.Tq=b;var a=this.Pb.length;if(!(a<
1722
1722
  "0";c.ue().style.borderBottomLeftRadius="0";e.T("right");e.Hd().style.borderTopLeftRadius="0";e.ue().style.borderTopLeftRadius="0";break;case "top":c.T("all");e.T("top");break;case "bottom":c.T("bottom");e.T("all");break;case "all":c.T("all");e.T("all");break;default:c.T("bottom");e.T("top");break}}}};ua.setStyle=function(b,a){for(var c=0;c<this.Pb.length;c++)this.Pb[c].setStyle(b,a)};ua.Dg=function(b){for(var a=0;a<this.Pb.length;a++)this.Pb[a].Dg(b)};
1723
1723
  ua.Fg=function(b){for(var a=0;a<this.Pb.length;a++)this.Pb[a].Fg(b);this.resize()};ua.Qf=function(b){for(var a=0;a<this.Pb.length;a++)this.Pb[a].td(b);this.Mq=b};ua.Of=function(b){for(var a=0;a<this.Qg.length;a++)this.Qg[a].td(b);this.Gq=b};
1724
1724
  ua.resize=function(b){var a=this.b.offsetHeight;if(typeof this.tk==="number"){a=this.tk;delete this.tk}var c=0;if(this.Ve.length>0)c=this.Ve[0].offsetHeight;if(c==0)c=42;a=a-c*this.Ve.length;if(a<0)a=0;c=this.ae[this.Qc];if(c!=null)c.style.height=a+"px";this.b.layout!=null&&b!==true&&ue(this.b.layout)};ua.setHeight=function(b){this.b.style.height=b;delete this.tk;if(typeof b==="string"&&b.length>=3&&b.substring(b.length-2)==="px"){b=parseInt(b);if(!isNaN(b))this.tk=b}this.resize()};
1725
- ua.Aq=function(b){var a=b.target.tv===true;b=Hb.designer.oh(this.b);var c=b.properties["section names"];if(!pui.Ib(c)){if(pui.p(c)){var e=c.designValue;if(e==null||e=="")e=this.tc;e=pui.ha(e);a?e.push("Section "+(e.length+1)):e.pop();c.designValue=e.join(",")}else{if(c==""||c==null)c=this.tc;c=pui.ha(c);a?c.push("Section "+(c.length+1)):c.pop();c=c.join(",")}a=this.b.Fh["section names"];b.designer.aa.start("Add/Remove Section");b.designer.aa.add(b,a.name);Oc(a,b.properties,b.dom,c,true,b,null);b.ob["section names"]=
1725
+ ua.Aq=function(b){var a=b.target.tv===true;b=Hb.designer.oh(this.b);var c=b.properties["section names"];if(!pui.Ib(c)){if(pui.p(c)){var e=c.designValue;if(e==null||e=="")e=this.uc;e=pui.ha(e);a?e.push("Section "+(e.length+1)):e.pop();c.designValue=e.join(",")}else{if(c==""||c==null)c=this.uc;c=pui.ha(c);a?c.push("Section "+(c.length+1)):c.pop();c=c.join(",")}a=this.b.Fh["section names"];b.designer.aa.start("Add/Remove Section");b.designer.aa.add(b,a.name);Oc(a,b.properties,b.dom,c,true,b,null);b.ob["section names"]=
1726
1726
  true;b.hd=true;b.designer.jd[b.designer.Ma.tb]=true;b.designer.selection.clear();b.designer.selection.add(b);b.designer.nb.refresh()}};function xe(b,a){var c=b.ae[a].querySelector("div[container=true]");return c&&c.children&&c.children.length>0}ua.sg=function(){return parseInt(this.Qc,10)};pui.Ng=function(b,a){pui.layout.Template.call(this,b,a);this.qp=b&&b.qp===true;this.sk=0;this.eg=document.createElement("div");this.eg.className=this.Hu;this.b.appendChild(this.eg);this.Tg=ye(this,"",this.b);this.Yf=[];this.fg=true;this.cv=500;this.Xq=this.Rm=0;this.Zm=this.Sg="";this.Hq=this.Ru.bind(this);this.Fq=pui.Ng.prototype.fv++;if(pui.runtimeContainer&&pui.runtimeContainer.id=="5250")document.querySelector('style[forcegenieheight="true"]')||ye(this,'div[id="5250"] { height: calc(100vh - 100px); }',
1727
1727
  pui.runtimeContainer).setAttribute("forcegenieheight","true");if(!this.qp&&this.layout&&this.layout.Ix!=="responsive layout"){if(!b.properties)b.properties={};var c="layout items";if(b.Bf>0){var e=parseInt(b.properties[c]);if(e<0||isNaN(e))e=this.ck;b.properties[c]=Math.max(e,b.Bf);this.layout.Tf(c,b.properties[c])}c="style rules";if(typeof b.properties[c]!=="string"||b.properties[c].length<1){b.properties[c]="@media screen { #_id_ > .puiresp { display:grid; } }";this.layout.Tf(c,b.properties[c])}}we(this,
1728
1728
  b)};pui.Ng.prototype=Object.create(pui.layout.Template.prototype);Object.defineProperties(pui.Ng.prototype,{Og:{value:"The section cannot be removed because it contains other elements that must be removed first."},ck:{value:8},Hu:{value:"puiresp"}});ua=pui.Ng.prototype;ua.Wu=/^(not )?(screen|all)\s*(.*)$/i;ua.Lq=/and\s*\([^)]+\)/gi;ua.Xu=/^disable/i;ua.Yu=/^and\s*\(\s*(min|max)-(width|height)\s*:\s*(\d+)\s*px\s*\)$/i;ua.Zu=/^and\s*\(\s*orientation\s*:\s*(portrait|landscape)\s*\)/i;ua.fv=0;
@@ -1734,27 +1734,27 @@ function Ae(b){b.ce=b.designMode&&b.fg?Eb(xa):b.b;b.nk="";b.Lq.lastIndex=0;b.Tg.
1734
1734
  function Ce(b,a){for(var c,e=0;e<a.cssRules.length;e++){var f=a.cssRules[e];if(f.type==f.SUPPORTS_RULE){b.nk+="@supports "+f.conditionText+"{";Ce(b,f);b.nk+="}"}else if(f.type==f.MEDIA_RULE){c=f.conditionText||f.media.mediaText;var h=c.match(b.Wu);if(h!=null){var g=h[3].match(b.Lq),l=true;if(g!=null)for(c=0;c<g.length;c++){var o=g[c].match(b.Yu),n=g[c].match(b.Zu);if(o!=null){n=o[2];var r=parseInt(o[3],10);if(o[1]=="min"){if(n=="width"&&b.ce.offsetWidth<r||n=="height"&&b.ce.offsetHeight<r)l=false}else if(n==
1735
1735
  "width"&&b.ce.offsetWidth>r||n=="height"&&b.ce.offsetHeight>r)l=false}else if(n!=null)if(n[1]=="portrait"&&b.ce.offsetHeight<b.ce.offsetWidth)l=false;else if(n[1]=="landscape"&&b.ce.offsetHeight>b.ce.offsetWidth)l=false}c=h[1]==="not";if(l&&!c||c&&!l)Ce(b,f)}else c.match(b.Xu)==null&&console.log("Unsupported media rule:",c)}else if(f.type==f.STYLE_RULE){h=f.selectorText+"{";for(c=0;c<f.style.length;c++){l=f.style[c];h+=l+":"+f.style[l]+"; "}h+="} ";b.nk+=h}}}
1736
1736
  ua.setProperty=function(b,a){switch(b){case "id":if(this.b.id!=a){this.b.id=a;ze(this)}break;case "layout items":var c=parseInt(a,10);a=isNaN(c)?this.ck:c;var e=false;if(this.designMode)for(var f=this.sk;f>c;f--){var h=this.eg.children[f-1];if(h&&h.children&&h.children.length>0){e=true;break}}if(e){pui.alert(this.Og);a=String(this.sk);setTimeout(this.cn.bind(this),1,"layout items",a)}else{if(a==null||a===""||isNaN(a))a=this.ck;else if(pui.p(a))a=a.designValue!=null&&typeof a.designValue=="number"?
1737
- a.designValue:this.ck;if(a!=this.sk){c=a;e=this.eg;for(f=e.children;f.length<c;){h=document.createElement("div");h.setAttribute("container","true");Be(this,f.length,h);e.appendChild(h)}for(;f.length>c;)e.removeChild(f[f.length-1]);this.sk=e.children.length;if(this.layout)this.layout.vc=e.children;this.layout&&ue(this.layout)}}break;case "style rules":this.Zm!=a&&ze(this,a);break;case "use viewport":a=a===true||a==="true";if(this.fg!==a){this.fg=a;ze(this)}break;case "container names":c=a;this.Yf=
1738
- [];if(c!=null&&c!="")if(pui.p(c)){c=pui.ha(c.designValue);this.Yf=c.length==0?[]:c}else this.Yf=c instanceof Array?c:pui.ha(c);if(this.eg!=null)for(c=0;c<this.eg.childNodes.length;c++){e=this.eg.childNodes[c];e.tagName==="DIV"&&Be(this,c,e)}break;default:return false}if(this.layout&&this.layout.Pa)this.layout.Pa[b]=a;return true};ua.Yt=function(b){switch(b){case "height":case "width":this.fg||ze(this);break}};pui.fd=function(b,a){te.call(this);pui.layout.Template.call(this,b,a);this.hi=false;this.ki=null;this.Ze=[];this.Tc=pui.fd.prototype.Tc;this.di=pui.fd.prototype.di;this.ei=pui.fd.prototype.ei;this.Xi(a);if(b.properties&&b.properties["tab names"]==null){var c=this.tc,e=c.split(",").length;if(b.Bf>e){e=e+1;for(var f=b.Bf;e<=f;e++)c+=",Tab "+e}this.setProperty("tab names",c);this.layout.Tf("tab names",c)}we(this,b);b.Bf>0&&this.render()};pui.fd.prototype=Object.create(pui.layout.Template.prototype);
1737
+ a.designValue:this.ck;if(a!=this.sk){c=a;e=this.eg;for(f=e.children;f.length<c;){h=document.createElement("div");h.setAttribute("container","true");Be(this,f.length,h);e.appendChild(h)}for(;f.length>c;)e.removeChild(f[f.length-1]);this.sk=e.children.length;if(this.layout)this.layout.wc=e.children;this.layout&&ue(this.layout)}}break;case "style rules":this.Zm!=a&&ze(this,a);break;case "use viewport":a=a===true||a==="true";if(this.fg!==a){this.fg=a;ze(this)}break;case "container names":c=a;this.Yf=
1738
+ [];if(c!=null&&c!="")if(pui.p(c)){c=pui.ha(c.designValue);this.Yf=c.length==0?[]:c}else this.Yf=c instanceof Array?c:pui.ha(c);if(this.eg!=null)for(c=0;c<this.eg.childNodes.length;c++){e=this.eg.childNodes[c];e.tagName==="DIV"&&Be(this,c,e)}break;default:return false}if(this.layout&&this.layout.Pa)this.layout.Pa[b]=a;return true};ua.Yt=function(b){switch(b){case "height":case "width":this.fg||ze(this);break}};pui.fd=function(b,a){te.call(this);pui.layout.Template.call(this,b,a);this.hi=false;this.ki=null;this.Ze=[];this.Tc=pui.fd.prototype.Tc;this.di=pui.fd.prototype.di;this.ei=pui.fd.prototype.ei;this.Xi(a);if(b.properties&&b.properties["tab names"]==null){var c=this.uc,e=c.split(",").length;if(b.Bf>e){e=e+1;for(var f=b.Bf;e<=f;e++)c+=",Tab "+e}this.setProperty("tab names",c);this.layout.Tf("tab names",c)}we(this,b);b.Bf>0&&this.render()};pui.fd.prototype=Object.create(pui.layout.Template.prototype);
1739
1739
  pui.fd.prototype.Xi=function(b){pui.layout.Template.prototype.Xi.call(this,b);if(!this.designMode){b.setTab=this.setTab.bind(this);b.getTab=this.getTab.bind(this);b.refresh=this.refresh.bind(this);b.hideTab=this.Ds.bind(this);b.showTab=this.eu.bind(this)}};
1740
- pui.fd.prototype.setProperty=function(b,a){switch(b){case "tab names":if(a==null||a=="")a=this.tc;else if(pui.p(a))a=pui.ha(a.designValue).length==0?this.tc:a.designValue;var c=pui.ha(a),e=this.hb.length;if(c.length!=e){var f=false;if(this.designMode){e=e;for(var h=c.length;e>h;e--)if(this.di(e-1)){f=true;break}}if(f){pui.alert(this.Og);a=this.hb.join();c=this.cn.bind(this,"tab names",a);setTimeout(c,1)}else{this.hb=c;if(this.selectedTab>this.hb.length-1)this.selectedTab=this.hb.length-1}}else this.hb=
1740
+ pui.fd.prototype.setProperty=function(b,a){switch(b){case "tab names":if(a==null||a=="")a=this.uc;else if(pui.p(a))a=pui.ha(a.designValue).length==0?this.uc:a.designValue;var c=pui.ha(a),e=this.hb.length;if(c.length!=e){var f=false;if(this.designMode){e=e;for(var h=c.length;e>h;e--)if(this.di(e-1)){f=true;break}}if(f){pui.alert(this.Og);a=this.hb.join();c=this.cn.bind(this,"tab names",a);setTimeout(c,1)}else{this.hb=c;if(this.selectedTab>this.hb.length-1)this.selectedTab=this.hb.length-1}}else this.hb=
1741
1741
  c;if(this.hi){De(this);this.Tc()}break;case "active tab":if(!this.designMode){a=parseInt(a,10);if(!isNaN(a)&&this.selectedTab!=a)this.selectedTab=a;this.$l=true}break;case "ontabclick":if(!this.designMode)this.Ym=a;break;case "tab response":if(!this.designMode)this.am=true;break;case "response AID":if(!this.designMode){if(typeof a!=="string"||a.length===0)a=false;this.Fp=a}break;case "bypass validation":break;case "color":case "font family":case "font size":case "font style":case "font weight":case "text transform":case "text decoration":break;
1742
1742
  case "movable tabs":if(!this.designMode){this.Xm=a==="true"||a===true;this.hi&&this.Tc()}break;default:return false}if(this.layout&&this.layout.Pa)this.layout.Pa[b]=a;return true};
1743
1743
  pui.fd.prototype.render=function(b){if(this.hi)De(this);else{this.z=document.createElement("div");this.z.className="pui-tablayout-hdr";this.b.appendChild(this.z);this.Ob=document.createElement("div");this.Ob.className="pui-tablayout-body";this.b.appendChild(this.Ob);this.designMode&&this.Kr();if(this.se)this.b.style.position="relative";De(this);if(this.Xm&&!this.designMode){var a;this.ki=pui.Fw(b,"pui-lyt-")+"-"+this.b.id;if(sessionStorage[this.ki]!=null)try{a=JSON.parse(sessionStorage[this.ki])}catch(c){}if(a!=
1744
- null&&Array.isArray(a.order)&&a.order.length>0){if(this.hb.length<a.order.length){for(;this.hb.length<a.order.length;)this.hb.push("");De(this)}for(b=[];this.z.childNodes.length>0;){var e=this.z.childNodes[0];this.z.removeChild(e);b.push(e)}for(;a.order.length>0;){e=b[a.order[0]];this.z.appendChild(e);a.order.shift()}}}this.cr()}this.Tc();Ee(this);this.lk();if(this.layout)this.layout.vc=this.Ob.children;this.hi=true};
1744
+ null&&Array.isArray(a.order)&&a.order.length>0){if(this.hb.length<a.order.length){for(;this.hb.length<a.order.length;)this.hb.push("");De(this)}for(b=[];this.z.childNodes.length>0;){var e=this.z.childNodes[0];this.z.removeChild(e);b.push(e)}for(;a.order.length>0;){e=b[a.order[0]];this.z.appendChild(e);a.order.shift()}}}this.cr()}this.Tc();Ee(this);this.lk();if(this.layout)this.layout.wc=this.Ob.children;this.hi=true};
1745
1745
  function De(b){for(var a=b.hb.length,c=b.Ze.length;a>b.Ze.length;){var e=document.createElement("span"),f=document.createElement("span");f.setAttribute("isTab","true");f.setAttribute("tabindex","0");f.Ea=c;b.Ze.push(f);f.addEventListener("mousedown",b);f.addEventListener("keyup",b);if(b.designMode){f.addEventListener("dblclick",b);f.draggable=true;f.addEventListener("dragstart",b);f.addEventListener("dragend",b);f.addEventListener("dragover",b);f.addEventListener("dragleave",b);f.addEventListener("drop",
1746
1746
  b)}e.appendChild(document.createElement("span"));e.appendChild(f);e.appendChild(document.createElement("span"));b.z.appendChild(e);e=document.createElement("div");e.setAttribute("container","true");e.Hr=c+1;e.Ea=c;e.style.display="none";b.Ob.addEventListener("keydown",b);b.Ob.setAttribute("tabindex","0");b.Ob.appendChild(e);c++}for(;a<b.Ze.length;){c=b.z.children;b.z.removeChild(c[c.length-1]);c=b.Ob.children;b.Ob.removeChild(c[c.length-1]);b.Ze.pop()}}
1747
1747
  pui.fd.prototype.Tc=function(){var b,a;this.selectedTab=parseInt(this.selectedTab,10);var c;if(this.layout&&this.layout.Pa)c=this.layout.Pa;if(c){this.z.style.color=typeof c.color==="string"&&c.color.length>0?"inherit":"";this.z.style.textTransform=typeof c["text transform"]==="string"&&c["text transform"].length>0?"inherit":"";this.z.style.fontFamily=typeof c["font family"]==="string"&&c["font family"].length>0?"inherit":"";this.z.style.fontSize=typeof c["font size"]==="string"&&c["font size"].length>
1748
1748
  0?"inherit":"";this.z.style.fontStyle=typeof c["font style"]==="string"&&c["font style"].length>0?"inherit":"";this.z.style.fontWeight=typeof c["font weight"]==="string"&&c["font weight"].length>0?"inherit":""}for(var e=0,f=this.hb.length;e<f;e++){b=this.Ze[e];b.innerHTML=this.hb[e];if(c)b.style.textDecoration=typeof c["text decoration"]==="string"?c["text decoration"]:"";a=Fe(this,b.Ea);a=this.z.childNodes[a];a.style.display=this.We[e]?"none":"";b.Ea===this.selectedTab?b.parentNode.classList.add("selected-tab"):
1749
1749
  b.parentNode.classList.remove("selected-tab");if(!this.designMode){b.removeAttribute("draggable");b.removeEventListener("dragstart",this);b.removeEventListener("dragend",this);b.removeEventListener("dragover",this);b.removeEventListener("dragleave",this);b.removeEventListener("drop",this);if(this.Xm)if(this.am)if(b.Ea===this.selectedTab){b.draggable=true;b.addEventListener("dragstart",this);b.addEventListener("dragend",this)}else{b.addEventListener("dragover",this);b.addEventListener("dragleave",
1750
1750
  this);b.addEventListener("drop",this)}else{b.draggable=true;b.addEventListener("dragstart",this);b.addEventListener("dragend",this);b.addEventListener("dragover",this);b.addEventListener("dragleave",this);b.addEventListener("drop",this)}}b=this.Ob.children[e];if(e===this.selectedTab){b.style.display="";b=this.layout;if(b!=null){this.designMode||b.Rl(this.selectedTab);b.vi[this.selectedTab]!==true&&ue(b,this.selectedTab)}}else b.style.display="none"}this.lk()};
1751
- pui.fd.prototype.handleEvent=function(b){function a(A,C){var F=e(A),G=C.target;if(G==F[0])return"first";if(G==F[F.length-1])return"last"}function c(A,C){A.an=A.selectedTab;A.selectedTab=C;A.zd=A.z.scrollLeft;A.rp(C)}function e(A){A=A.layout.vc[A.selectedTab].childNodes;for(var C=[],F=0;F<A.length;F++){var G=A[F];if((G.localName=="input"||G.localName=="textarea"||G.localName=="select"||G.localName=="button")&&!G.disabled)C.push(G)}return C}var f,h;switch(true){case b.type==="mousedown"||b.type==="keyup"&&
1751
+ pui.fd.prototype.handleEvent=function(b){function a(A,C){var F=e(A),G=C.target;if(G==F[0])return"first";if(G==F[F.length-1])return"last"}function c(A,C){A.an=A.selectedTab;A.selectedTab=C;A.zd=A.z.scrollLeft;A.rp(C)}function e(A){A=A.layout.wc[A.selectedTab].childNodes;for(var C=[],F=0;F<A.length;F++){var G=A[F];if((G.localName=="input"||G.localName=="textarea"||G.localName=="select"||G.localName=="button")&&!G.disabled)C.push(G)}return C}var f,h;switch(true){case b.type==="mousedown"||b.type==="keyup"&&
1752
1752
  b.key==="Tab":this.designMode&&b.stopPropagation();h=b.currentTarget.Ea;if(this.selectedTab!=h){if(pui.r.record!=null){f=pui.O[pui.r.record+"."+pui.r.field];if(Array.isArray(f)&&f.length>1){f[0].value=f[this.selectedTab].value;f[0].modified=true}}if(typeof this.Ym==="string"&&this.Ym.length>0)try{if(eval("var tab = "+h+"; "+this.Ym)==false)return}catch(g){pui.Ca(g,"Ontabclick Error:\n")}c(this,h);f=e(this);f[0]&&f[0].focus();b.preventDefault()}else if(this.selectedTab==h&&b.target.localName!="input")if(b.key===
1753
- "Tab"&&b.shiftKey==true)return;else{h=this.layout.vc[this.selectedTab].childNodes;f=[];for(var l=0;l<h.length;l++){var o=h[l];o.localName=="input"&&f.push(o)}f[0]&&f[0].focus();b.preventDefault()}return;case b.type==="keydown"&&b.key==="Tab"&&b.shiftKey!=true:h=a(this,b);if(h=="last"){h=this.selectedTab+1;if(h>0&&h<this.hb.length){c(this,h);f=e(this);f[0]&&f[0].focus();b.preventDefault()}}return;case b.type==="keydown"&&b.key==="Tab"&&b.shiftKey==true:h=a(this,b);if(h=="first"){h=this.selectedTab-
1753
+ "Tab"&&b.shiftKey==true)return;else{h=this.layout.wc[this.selectedTab].childNodes;f=[];for(var l=0;l<h.length;l++){var o=h[l];o.localName=="input"&&f.push(o)}f[0]&&f[0].focus();b.preventDefault()}return;case b.type==="keydown"&&b.key==="Tab"&&b.shiftKey!=true:h=a(this,b);if(h=="last"){h=this.selectedTab+1;if(h>0&&h<this.hb.length){c(this,h);f=e(this);f[0]&&f[0].focus();b.preventDefault()}}return;case b.type==="keydown"&&b.key==="Tab"&&b.shiftKey==true:h=a(this,b);if(h=="first"){h=this.selectedTab-
1754
1754
  1;if(h<this.hb.length&&h>=0){c(this,h);f=e(this);l=f.length;f[0]&&f[l-1].focus();b.preventDefault()}h<0&&this.z.children[0].children[1].focus();b.preventDefault();return null}return;case b.type==="keydown"&&b.key==="1"&&b.altKey==true:h=this.selectedTab-1;f=this.hb.length;if(h<0)h=f-1;if(h<=f){c(this,h);f=e(this);f[0]&&f[0].focus()}return;case b.type==="keydown"&&b.key==="2"&&b.altKey==true:h=this.selectedTab+1;f=this.hb.length;if(h>=f)h=0;if(h<=f){c(this,h);f=e(this);f[0]&&f[0].focus()}return;case b.type===
1755
1755
  "dblclick":this.mu(b);return;case b.type==="dragstart":b.stopPropagation();this.fi=b.currentTarget.Ea;if(!isNaN(this.fi))try{b.dataTransfer.setData("text/plain",this.fi);b.dataTransfer.dropEffect="none";b.dataTransfer.fw="move"}catch(n){}return;case b.type==="dragover":if(b.currentTarget.Ea==this.fi)return;b.preventDefault();b.stopPropagation();b.dataTransfer.dropEffect="move";b.dataTransfer.fw="move";return;case b.type==="dragleave":b.preventDefault();b.stopPropagation();return;case b.type==="drop":b.preventDefault();
1756
1756
  b.stopPropagation();if(!this.z.contains(b.target))return;try{b.dataTransfer.getData("text/plain")}catch(r){}var p=this.fi;if(isNaN(p))return;o=b.currentTarget.Ea;if(isNaN(o)||o==p)return;p=Fe(this,p);b=Fe(this,o);var t=p<b,s=this.z.childNodes[p];this.z.removeChild(s);b=Fe(this,o);if(t)b+=1;this.z.insertBefore(s,this.z.childNodes[b]);if(this.designMode){(h=this.layout.e)&&h.designer.aa.ln("Edit Layout",h.designer);h=this.Ob.childNodes[p];this.Ob.removeChild(h);this.Ob.insertBefore(h,this.Ob.childNodes[b]);
1757
- p=o="";this.Ze=[];h=0;for(f=this.z.childNodes.length;h<f;h++){l=this.z.childNodes[h];l=l.childNodes[1];this.Ze.push(l);l.Ea=h;o+=p+l.innerHTML;p=",";l=this.Ob.childNodes[h];l.Ea=h;l.Hr=h+1}this.selectedTab=b;this.setProperty("tab names",o);this.cn("tab names",o);pui.ide.refreshRibbon();if(this.layout)this.layout.vc=this.Ob.children}else if(this.ki)try{b={order:[]};h=0;for(f=this.z.childNodes.length;h<f;h++){l=this.z.childNodes[h];b.order.push(l.childNodes[1].Ea)}sessionStorage[this.ki]=JSON.stringify(b)}catch(w){}return;
1757
+ p=o="";this.Ze=[];h=0;for(f=this.z.childNodes.length;h<f;h++){l=this.z.childNodes[h];l=l.childNodes[1];this.Ze.push(l);l.Ea=h;o+=p+l.innerHTML;p=",";l=this.Ob.childNodes[h];l.Ea=h;l.Hr=h+1}this.selectedTab=b;this.setProperty("tab names",o);this.cn("tab names",o);pui.ide.refreshRibbon();if(this.layout)this.layout.wc=this.Ob.children}else if(this.ki)try{b={order:[]};h=0;for(f=this.z.childNodes.length;h<f;h++){l=this.z.childNodes[h];b.order.push(l.childNodes[1].Ea)}sessionStorage[this.ki]=JSON.stringify(b)}catch(w){}return;
1758
1758
  case b.type==="dragend":delete this.fi}};ua=pui.fd.prototype;ua.di=function(b){var a=this.Ob.children;return a&&a[b]&&a[b].children&&a[b].children.length>0};ua.ei=function(b){var a=document.createElement("span");if(b)a.className="pui-tscrbtn pui-tablayout "+b;b=document.createElement("span");b.className="edge";var c=document.createElement("span");c.className="mid";var e=document.createElement("span");e.className="edge";a.appendChild(b);a.appendChild(c);a.appendChild(e);return a};
1759
1759
  function Ee(b){if(b.$l&&b.rk&&b.z.offsetWidth>0){var a=b.z.childNodes[b.Xm?Fe(b,b.selectedTab):b.selectedTab];if(a){b.zd=Math.round(a.offsetLeft-b.z.offsetWidth/2+a.offsetWidth/2);b.rk=false}}}function Fe(b,a){for(var c=0,e=b.z.childNodes.length;c<e;c++){var f=b.z.childNodes[c];if(f.childNodes[1]&&f.childNodes[1].Ea===a)return c}return-1}ua.resize=function(){if(this.hi){Ee(this);this.lk()}};
1760
1760
  ua.destroy=function(){var b=this.b;if(b){delete b.setTab;delete b.getTab;delete b.refresh;delete b.hideTab;delete b.showTab}pui.layout.Template.prototype.destroy.call(this)};ua.sg=function(){return this.selectedTab!=null?parseInt(this.selectedTab,10):-1};pui.Jm=function(b,a){pui.layout.Template.call(this,b,a);this.bg=document.createElement("fieldset");this.bg.className="layout";this.qk=document.createElement("legend");this.bg.appendChild(this.qk);this.I=document.createElement("div");this.I.setAttribute("container","true");this.bg.appendChild(this.I);this.b.appendChild(this.bg)};pui.Jm.prototype=Object.create(pui.layout.Template.prototype);
@@ -1796,12 +1796,12 @@ f:["indicator","expression"],g:true,a:"false",help:"Allows the user to rearrange
1796
1796
  choices:a,a:"css",help:"The style of the element&apos;s border."},{name:"border width",format:"px",choices:c,a:"css",help:"The thickness of the element&apos;s border.",s:["other"]}];pui.layout.vk(b,["border color"]);break;default:e={template:b,gy:true};b=pui.layout.templates[b];if(typeof b=="function")return b(e);return pui.layout.template.zt(e)}return pui.layout.Mi(b)};pui.layout.template.uo=function(b){function a(e,f){if(e!=null)if(!(!f&&e.layout!=null)){if(e.getAttribute!=null)if(e.getAttribute("container")=="true"){c.push(e);e.Hr=c.length}var h=e.childNodes;if(!(h==null||h.length==null))for(var g=0;g<h.length;g++)a(h[g],false)}}var c=[];a(b,true);return c};
1797
1797
  pui.layout.sf=function(b){for(var a=0,c=0,e=b;e!=null&&(e.layout==null||e.parentNode.getAttribute("container")=="true");){a+=e.offsetLeft+e.clientLeft-e.scrollLeft;c+=e.offsetTop+e.clientTop-e.scrollTop;if(e==b.parentNode){var f=pui.getComputedStyle(e);if(f){if(f["padding-left"])a-=parseInt(f["padding-left"],10);else if(f.paddingLeft)a-=parseInt(f.paddingLeft,10);if(f["padding-top"])c-=parseInt(f["padding-top"],10);else if(f.paddingTop)c-=parseInt(f.paddingTop,10)}}if(e.parentNode&&e.parentNode!=
1798
1798
  e.offsetParent&&e.parentNode.className=="puiresp"){a-=e.parentNode.scrollLeft;c-=e.parentNode.scrollTop}e=e.offsetParent}if(e!=null){a+=e.offsetLeft+e.clientLeft-e.scrollLeft;c+=e.offsetTop+e.clientTop-e.scrollTop;if(e==b.parentNode)if(f=pui.getComputedStyle(e)){if(f["padding-left"])a-=parseInt(f["padding-left"],10);else if(f.paddingLeft)a-=parseInt(f.paddingLeft,10);if(f["padding-top"])c-=parseInt(f["padding-top"],10);else if(f.paddingTop)c-=parseInt(f.paddingTop,10)}}return{x:a,y:c}};pui.layout.template.applyTemplate=function(b){for(var a=b.dom,c=pui.layout.template.uo,e=pui.layout.template.yt,f=c(a),h=f.length-1;h>=0;h-=1)if(f[h].firstChild!=null)break;h+=1;b.Bf=h;b=pui.layout.template.load(b);e(b);c=c(b);e=[];if(h>c.length)return{success:false,msg:"The property cannot be applied because it removes a layout section that contains other widgets. \n\nYou must remove the contained widgets first."};for(var g=0;g<h;g++)for(var l=f[g],o=c[g],n=l.firstChild;n!=null;){l.removeChild(n);
1799
- o.appendChild(n);n=l.firstChild}for(g=0;g<c.length;g++){o=c[g];o.getAttribute("stretch")=="true"&&e.push(o)}a.innerHTML="";for(n=b.firstChild;n!=null;){a.appendChild(b.removeChild(n));n=b.firstChild}if(b.panel!=null){a.panel=b.panel;a.sizeMe=a.panel.resize;a.panel.b=a}b.Ia!=null&&b.Ia.Xi(a);return{success:true,Me:e,vc:c}};
1799
+ o.appendChild(n);n=l.firstChild}for(g=0;g<c.length;g++){o=c[g];o.getAttribute("stretch")=="true"&&e.push(o)}a.innerHTML="";for(n=b.firstChild;n!=null;){a.appendChild(b.removeChild(n));n=b.firstChild}if(b.panel!=null){a.panel=b.panel;a.sizeMe=a.panel.resize;a.panel.b=a}b.Ia!=null&&b.Ia.Xi(a);return{success:true,Me:e,wc:c}};
1800
1800
  pui.layout.template.getProxy=function(b){var a=pui.layout.template.load({template:b.template,properties:b,designMode:true,Ml:true});pui.layout.template.yt(a);if(b.width!=null)a.style.width=b.width;if(b.height!=null)a.style.height=b.height;if(b["css class"]!=null)a.className=b["css class"];return a};pui.widgets.add({name:"layout",ig:false,defaults:{},uf:function(b){if(b.dom.layout==null){b.dom.layout=new pui.layout.ek;b.dom.layout.P=b.dom;b.dom.layout.e=b.e;if(b.design)b.e.fp=false}var a=b.dom.layout;if(!b.design&&b.propertyName=="field type"){b.dom.layout.setProperty("center vertically",b.properties["center vertically"]);b.dom.layout.setProperty("center horizontally",b.properties["center horizontally"])}var c=true;if(b.propertyName=="field type"||b.propertyName=="template"){b.dom.style.padding=
1801
1801
  "0px";b.dom.style.borderWidth="0px";if(!b.design&&b.properties.height=="100%"&&b.dom.parentNode.id=="pui"){var e=pui.getComputedStyle(b.dom.parentNode);if(e!=null&&(e.height=="0px"||e.height=="auto")){pui.He.padding=document.body.style.padding;document.body.style.padding="0";pui.He.height=document.body.style.height;document.body.style.height="100%";document.body.parentNode.style.padding="0";document.body.parentNode.style.height="100%";pui.He.overflow=document.body.style.overflow;document.body.style.overflow=
1802
- "hidden";b.dom.parentNode.style.padding="0";b.dom.parentNode.style.height="100%"}if(window.cordova&&window.device.platform=="iOS"){b.dom.layout.lr=true;b.dom.parentNode.style.overflowX="hidden";b.dom.parentNode.style.overflowY="hidden";zc(b.dom.layout)}}else if(!b.design&&b.dom.parentNode.zc&&(pui.uh(b.properties.height)||pui.uh(b.properties.width))){b.dom.parentNode.style.width="100%";b.dom.parentNode.style.height="100%"}if(b.design){b.dom.layout.designMode||b.dom.layout.ko();b.dom.e=b.e;b.e.fp=
1802
+ "hidden";b.dom.parentNode.style.padding="0";b.dom.parentNode.style.height="100%"}if(window.cordova&&window.device.platform=="iOS"){b.dom.layout.lr=true;b.dom.parentNode.style.overflowX="hidden";b.dom.parentNode.style.overflowY="hidden";zc(b.dom.layout)}}else if(!b.design&&b.dom.parentNode.Ac&&(pui.uh(b.properties.height)||pui.uh(b.properties.width))){b.dom.parentNode.style.width="100%";b.dom.parentNode.style.height="100%"}if(b.design){b.dom.layout.designMode||b.dom.layout.ko();b.dom.e=b.e;b.e.fp=
1803
1803
  false;if(b.propertyName=="field type"){b.dom.layout.setProperty("width",b.properties.width);b.dom.layout.setProperty("height",b.properties.height);b.properties["inline style"]&&pui.Zq(b.dom,b.properties["inline style"],true)}}b.dom.layout.Ix=b.dom.layout.template;b.dom.layout.template=b.properties.template;e=null;if(b.propertyName=="template"){e=b.dom.layout.template;b.dom.layout.template=b.value}var f=Jc(pui.layout.Mi());for(var h in b.properties)f[h]||(b.dom.layout.Pa[h]=b.properties[h]);h=b.dom.layout.applyTemplate();
1804
- if(h.success==false&&e!=null){a.template=e;setTimeout(a.Tf.bind(a),1,"template",e);c=false}if(h.success==true&&(!b.design||Hb.yh||Hb.Bx))b.dom.layout.vc=h.vc}c&&b.dom.layout.setProperty(b.propertyName,b.value)},qc:function(b){var a=b.dom;if(a)(a=a.Ia)&&a.Yt(b.propertyName,b.value)},initialize:function(b){if(!b.design){b=b.dom;var a=b.id;if(a==null)a="";var c=b.className;if(c==null)c="";if(a.toLowerCase()=="scroller"||c.toLowerCase()=="scroller")pui.is_old_ie||ve(b.layout)}}});window.Atrium||(window.Atrium={});Atrium.launchURL=function(b,a,c){var e=Atrium.getAtriumWindow();if(e!=null)return e.Atrium.api.launchURL(b,a,c)};Atrium.closeTab=function(b){var a=Atrium.getAtriumWindow();a!=null&&a.Atrium.api.closeTab(window,b)};Atrium.launchItem=function(b,a,c){var e=Atrium.getAtriumWindow();if(e!=null)return e.Atrium.api.launchItem(b,a,c)};Atrium.activateTab=function(b){var a=Atrium.getAtriumWindow();a!=null&&a.Atrium.api.activateTab(b)};
1804
+ if(h.success==false&&e!=null){a.template=e;setTimeout(a.Tf.bind(a),1,"template",e);c=false}if(h.success==true&&(!b.design||Hb.yh||Hb.Bx))b.dom.layout.wc=h.wc}c&&b.dom.layout.setProperty(b.propertyName,b.value)},qc:function(b){var a=b.dom;if(a)(a=a.Ia)&&a.Yt(b.propertyName,b.value)},initialize:function(b){if(!b.design){b=b.dom;var a=b.id;if(a==null)a="";var c=b.className;if(c==null)c="";if(a.toLowerCase()=="scroller"||c.toLowerCase()=="scroller")pui.is_old_ie||ve(b.layout)}}});window.Atrium||(window.Atrium={});Atrium.launchURL=function(b,a,c){var e=Atrium.getAtriumWindow();if(e!=null)return e.Atrium.api.launchURL(b,a,c)};Atrium.closeTab=function(b){var a=Atrium.getAtriumWindow();a!=null&&a.Atrium.api.closeTab(window,b)};Atrium.launchItem=function(b,a,c){var e=Atrium.getAtriumWindow();if(e!=null)return e.Atrium.api.launchItem(b,a,c)};Atrium.activateTab=function(b){var a=Atrium.getAtriumWindow();a!=null&&a.Atrium.api.activateTab(b)};
1805
1805
  Atrium.closeAllTabs=function(b){var a=Atrium.getAtriumWindow();a!=null&&a.Atrium.api.closeAllTabs(window,b)};Atrium.getCurrentTab=function(){var b=Atrium.getAtriumWindow();if(b!=null)return b.Atrium.api.getCurrentTab(window)};Atrium.getToken=function(){var b=Atrium.getAtriumWindow();if(b!=null)return b.Atrium.api.getToken()};Atrium.getUser=function(){var b=Atrium.getAtriumWindow();if(b!=null)return b.Atrium.api.getUser()};Atrium.runPCCommand=function(b){var a=Atrium.getAtriumWindow();a!=null&&a.Atrium.api.runPCCommand(b)};
1806
1806
  Atrium.refreshNavPanel=function(){var b=Atrium.getAtriumWindow();b!=null&&b.Atrium.api.refreshNavPanel()};Atrium.setMenuFilter=function(b){var a=Atrium.getAtriumWindow();a!=null&&a.Atrium.api.setMenuFilter(b)};Atrium.breakMessagesShow=function(b,a){var c=Atrium.getAtriumWindow();c!=null&&c.Atrium.api.breakMessagesShow(b,a)};Atrium.breakMessagesOnStorage=function(b){var a=Atrium.getAtriumWindow();a!=null&&a.Atrium.api.breakMessagesOnStorage(b)};
1807
1807
  Atrium.getAtriumWindow=function(b){if(b===true)if(window.opener&&window.opener.Atrium&&window.opener.Atrium.api)return window.opener;for(b=window.parent;b!=null&&b!=b.parent&&(b.Atrium==null||b.Atrium.api==null);)b=b.parent;if(b==null||b.Atrium==null||b.Atrium.api==null)return null;return b};Atrium.collapseNav=function(){Atrium.getAtriumWindow().Atrium.api.collapseNav()};Atrium.expandNav=function(){Atrium.getAtriumWindow().Atrium.api.expandNav()};