profoundjs 7.13.0 → 7.14.1

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,6 +1,6 @@
1
- function la(){return function(b){return b}}function oa(){return function(){}}function ya(b){return function(){return b}}var Aa,P="dspf",Da="dspfDesigner0",Fa="OFF";var Ha=0,Ia=-20,Ma=[],Ua=[];P=="genie"&&window.parent==window&&window.history.forward(1);window.pui={};var bb=navigator.userAgent.toLowerCase();pui.is_edge=bb.indexOf("edg/")!=-1;pui.is_ie=false;pui.is_opera=bb.indexOf("opera")!=-1||bb.indexOf("opr/")!=-1;pui.is_chrome=!pui.is_edge&&bb.indexOf("chrome")!=-1;pui.is_safari=!pui.is_edge&&!pui.is_chrome&&bb.indexOf("safari")!=-1;pui.is_firefox=bb.indexOf("firefox")!=-1;pui.is_android=bb.indexOf("android")!=-1;pui.is_quirksmode=document.compatMode=="BackCompat";
2
- pui.is_ios=bb.indexOf("iphone")!=-1||bb.indexOf("ipad")!=-1||bb.indexOf("ipod")!=-1;var hb,ib,lb,mb;hb=/trident\/([0-9]{1,}[.0-9]{0,})/;mb=hb.exec(bb);if(mb!=null)ib=parseFloat(mb[1]);if(!pui.is_opera){hb=/msie ([0-9]{1,}[.0-9]{0,})/;mb=hb.exec(bb);if(mb!=null)lb=parseFloat(mb[1])}if(ib||lb){pui.is_ie=true;pui.ie_mode=lb||ib+4;if(pui.ie_mode<11)pui.is_old_ie=true;pui.ie_version=ib?ib+4:lb}pui.secLevel=0;pui.Ic=null;pui.vl=null;pui.wl=null;pui.defaultDateFormat="MM/DD/YY";
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.Yz={};pui.Gf={};pui.toolbox={};pui.toolbox.add=oa();pui["field exit key"]=107;pui["field exit minus key"]=109;pui["no connection status"]=false;pui["client side timeout"]=true;
1
+ function la(){return function(b){return b}}function oa(){return function(){}}function ya(b){return function(){return b}}var Aa,P="dspf",Da="dspfDesigner0",Fa="OFF";var Ha=0,Ia=-20,Ma=[],Ua=[];P=="genie"&&window.parent==window&&window.history.forward(1);if(typeof window.pui!=="object")window.pui={};var bb=navigator.userAgent.toLowerCase();pui.is_edge=bb.indexOf("edg/")!=-1;pui.is_ie=false;pui.is_opera=bb.indexOf("opera")!=-1||bb.indexOf("opr/")!=-1;pui.is_chrome=!pui.is_edge&&bb.indexOf("chrome")!=-1;pui.is_safari=!pui.is_edge&&!pui.is_chrome&&bb.indexOf("safari")!=-1;pui.is_firefox=bb.indexOf("firefox")!=-1;pui.is_android=bb.indexOf("android")!=-1;
2
+ pui.is_quirksmode=document.compatMode=="BackCompat";pui.is_ios=bb.indexOf("iphone")!=-1||bb.indexOf("ipad")!=-1||bb.indexOf("ipod")!=-1;var hb,ib,lb,mb;hb=/trident\/([0-9]{1,}[.0-9]{0,})/;mb=hb.exec(bb);if(mb!=null)ib=parseFloat(mb[1]);if(!pui.is_opera){hb=/msie ([0-9]{1,}[.0-9]{0,})/;mb=hb.exec(bb);if(mb!=null)lb=parseFloat(mb[1])}if(ib||lb){pui.is_ie=true;pui.ie_mode=lb||ib+4;if(pui.ie_mode<11)pui.is_old_ie=true;pui.ie_version=ib?ib+4:lb}pui.secLevel=0;pui.Ic=null;pui.vl=null;pui.wl=null;
3
+ pui.defaultDateFormat="MM/DD/YY";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.Yz={};pui.Gf={};pui.toolbox={};pui.toolbox.add=oa();pui["field exit key"]=107;pui["field exit minus key"]=109;pui["no connection status"]=false;pui["client side timeout"]=true;
4
4
  pui.Bq={"*ISO":1,"*USA":2,"*EUR":3,"*JIS":4,"*MDY":5,"*DMY":6,"*YMD":7,"*JUL":8,"*JOB":10};pui.Cq={"/":1,"-":2,".":3,",":4," ":5,"*BLANK":5,"*JOB":7};pui.Dq={"*ISO":1,"*USA":2,"*EUR":3,"*JIS":4,"*HMS":9};pui.Eq={".":3,",":4," ":5,"*BLANK":5,":":6,"*JOB":7};
5
5
  pui.CA=["abstract","arguments","await","boolean","break","byte","case","catch","char","class","const","continue","debugger","default","delete","do","double","else","enum","eval","export","extends","false","final","finally","float","for","function","goto","if","implements","import","in","instanceof","int","interface","let","long","native","new","null","package","private","protected","public","return","short","static","super","switch","synchronized","this","throw","throws","transient","true","try",
6
6
  "typeof","var","void","volatile","while","with","yield"];pui.fa=false;pui.Iz=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.Up=0;pui["session timeout retries"]=0;pui.Cz=0;pui.dj=false;pui.wz="profoundjs.com";pui.nz="http://www.w3.org/2000/svg";pui.zp={};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;
@@ -10,7 +10,7 @@ function Eb(){if(pui.ide&&pui.ide.designerId)return true;if(Ib==null)return fals
10
10
  function Kb(b,a){var c,e="",f="",h,g=false;if(b.xf()!=200){c="HTTP "+b.xf();e=b.Bs()+"."}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){Ua.push({Fl:a,id:c,text:e,um:f});return false}else return g==true?b.yc():h.response}
11
11
  pui.Cr=function(b,a,c){function e(h,g){var l=Lb(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=Lb(b.className.split(" ")[0]);a!=""&&pui.Q(c,"label-for-"+a);c.style.zIndex=b.currentStyle?b.currentStyle.zIndex:window.getComputedStyle?
12
12
  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=
13
- b.style.backgroundColor;if(!f){c.style.cursor=b.style.cursor?b.style.cursor:"pointer";c.Vs=true;b.Ld!=null&&b.parentNode.removeChild(b.Ld);b.Ld=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.Cs(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
+ b.style.backgroundColor;if(!f){c.style.cursor=b.style.cursor?b.style.cursor:"pointer";c.Vs=true;b.Kd!=null&&b.parentNode.removeChild(b.Kd);b.Kd=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.Cs(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=
14
14
  10;if(b.style.right.indexOf("calc")!=-1)e("right"," - "+a);else{f=pui.Cs(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=""};
15
15
  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});
16
16
  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});
@@ -20,7 +20,7 @@ String.prototype.includes||Object.defineProperty(String.prototype,"includes",{va
20
20
  pui.Mi=function(b,a){var c=b[a];if(c==null){var e=a.split(" "),f=Number(e[e.length-1]);if(!isNaN(f)&&f>0){e.pop();e=b[e.join(" ")];if(e!=null){c={};for(var h in e){f=e[h];if(h=="name")c.name=a;else if(typeof f=="object"&&f.length!=null){c[h]=[];for(var g=0;g<f.length;g++)c[h].push(f[g])}else c[h]=e[h]}}}}return c};pui.ie=function(b,a){for(var c=0;c<b.length;c++)if(b[c]==a)return c;return-1};pui.qz=function(b,a){for(var c=0;c<b.length;c++)a(b[c])};
21
21
  pui.Vd=function(b,a){if(a==null)a=0;var c=parseInt(b,10);if(isNaN(c))c=a;return c};
22
22
  pui.Ce=function(){var b={9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"Caps Lock",27:"Esc",33:"Page Up",34:"Page Down",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",45:"Insert",3:"Enter",63234:"Left",63235:"Right",63232:"Up",63233:"Down",63276:"Page Up",63277:"Page Down",63272:"Delete",63273:"Home",63275:"End"};return function(a,c){var e=a.key||String.fromCharCode(a.charCode||a.keyCode);a.ctrlKey||e&&e.length>1||!e&&!a.key&&b[a.keyCode]||c.test(e)||vb(a)}}();
23
- function xb(b,a){if(P=="genie"&&pui.F.Sz(a)!="")return true;if(P=="dspf"){var c;a:{c=a.keyCode;for(var e=0;e<b.length;e++)if(b[e]==c)if(!(a.Hf&&Event.hk)){c=true;break a}a.preventDefault();a.stopPropagation();c=false}return c}var f,h;c=a.keyCode;e=a.target;var g=pui.Ui(e);if(pui.F.Id){if(pui.F.config.Dz){if(a.Hf)f=a.Hf&&Event.hk;if(!a.Hf)f=a.shiftKey;f?keyAhead.record("shift"+c):keyAhead.record(c)}vb(a);return false}lastActiveElement=e;if(c==9){if(a.Hf)f=a.Hf&&Event.hk;if(!a.Hf)f=a.shiftKey;if(f=
23
+ function xb(b,a){if(P=="genie"&&pui.F.Sz(a)!="")return true;if(P=="dspf"){var c;a:{c=a.keyCode;for(var e=0;e<b.length;e++)if(b[e]==c)if(!(a.Hf&&Event.hk)){c=true;break a}a.preventDefault();a.stopPropagation();c=false}return c}var f,h;c=a.keyCode;e=a.target;var g=pui.Ui(e);if(pui.F.Hd){if(pui.F.config.Dz){if(a.Hf)f=a.Hf&&Event.hk;if(!a.Hf)f=a.shiftKey;f?keyAhead.record("shift"+c):keyAhead.record(c)}vb(a);return false}lastActiveElement=e;if(c==9){if(a.Hf)f=a.Hf&&Event.hk;if(!a.Hf)f=a.shiftKey;if(f=
24
24
  f?goPrev(e,0,true):goNext(e,true)){vb(a);return false}}else if(c==35&&g){if(e.value!=Pb(e.value))e.value=Pb(e.value)}else if(c==37)if(g){h=Ab(e);if(h==0){goPrev(e);vb(a);return false}}else{if(e.tagName!="TEXTAREA"){goPrev(e);vb(a);return false}}else if(c==38&&e.tagName!="SELECT"&&e.tagName!="TEXTAREA"){if(e.lc==null||e.lc.Ti()==false)if(!pui.F.config.$g){goUp(e);vb(a);return false}}else if(c==39)if(g){maxLength=Number(e.getAttribute("maxLength"));h=Ab(e);f=e.value.length;if(h>=f){goNext(e);vb(a);
25
25
  return false}}else{if(e.tagName!="TEXTAREA"){goNext(e);vb(a);return false}}else if(c==40&&e.tagName!="SELECT"&&e.tagName!="TEXTAREA"){if(e.lc==null||e.lc.Ti()==false)if(!pui.F.config.$g){goDown(e);vb(a);return false}}else if(c==45&&pui.is_ie&&g&&P=="genie"&&a.shiftKey!=true&&a.ctrlKey!=true){f=e.selectionEnd;h=e.value.substring(0,f);h+=Pb(e.value.substring(f));e.value=h;e.setSelectionRange(f,f)}if(g&&pui.ix(a)){pui.cq(e);if(c==pui["field exit minus key"]&&Qb(e,true)){vb(a);return false}g=e.getAttribute("num");
26
26
  if(c==pui["field exit minus key"]&&Qb(e,true)&&!pui["disable field exit on alphanumeric"]){vb(a);return false}else if(pui["disable field exit on alphanumeric"]&&(g==null||g=="000"||g=="010"))return false;Qb(e);vb(a);return false}if(a.ctrlKey==true&&(c==67||c==86))return true;for(e=0;e<b.length;e++)if(b[e]==c)if(!(a.Hf&&Event.hk))return true;vb(a);return false}
@@ -33,14 +33,14 @@ new Blob([(b?"hardshutdown=1":"shutdown=1")+(pui.isCloud?"&workspace_id="+pui.cl
33
33
  pui.vr=function(){if(window.addEventListener){window.addEventListener("beforeunload",pui.yr,false);if(!pui.designer.Jm||pui.F!=null)window.addEventListener("unload",pui.unload,false)}else if(window.attachEvent){window.attachEvent("onbeforeunload",pui.yr);if(!pui.designer.Jm||pui.F!=null)window.attachEvent("onunload",pui.unload)}};
34
34
  pui.Pk=function(b,a,c){var e=document.createElement("form");e.action=Wb("PUI0009106.pgm")+"?contentType="+b+"&fileName="+a;if(pui.isCloud)e.action+="&workspace_id="+pui.cloud.ws.id;e.method="post";b=Yb("input","data");b.type="hidden";b.value=c;e.appendChild(b);document.body.appendChild(e);pui.skipConfirm=true;e.submit();setTimeout(function(){e.parentNode.removeChild(e);pui.skipConfirm=false},0)};
35
35
  pui.Q=function(b,a){var c=b.className;if(c==null)c="";c=c.split(" ");for(var e=[],f=0;f<c.length;f++){if(c[f]==a)return;c[f]!=""&&e.push(c[f])}e.push(a);b.className=e.join(" ")};pui.da=function(b,a){b.className=pui.Ep(b.className,a)};pui.Ep=function(b,a,c){if(b==null)return"";if(b=="")return"";if(c==null||c=="")c=" ";b=b.split(c);c=[];for(var e=0;e<b.length;e++)b[e]!=""&&b[e]!=a&&c.push(b[e]);return c.join(" ")};
36
- pui.Dy=function(b,a){if(!(b.readOnly||b.disabled))if(!(a==null||a==null)){var c=b;if(c.comboBoxWidget!=null)c=c.comboBoxWidget.getBox();if(c.l!=null)c=c.l.getBox();c.emptyText=a;pui.le(c);T(c,"focus",function(e){e=ub(e);if(e.value==e.emptyText){e.value="";pui.da(e,"empty-text")}});T(c,"blur",function(e){pui.le(ub(e))})}};
36
+ pui.Dy=function(b,a){if(!(b.readOnly||b.disabled))if(!(a==null||a==null)){var c=b;if(c.comboBoxWidget!=null)c=c.comboBoxWidget.getBox();if(c.l!=null)c=c.l.getBox();c.emptyText=a;pui.le(c);S(c,"focus",function(e){e=ub(e);if(e.value==e.emptyText){e.value="";pui.da(e,"empty-text")}});S(c,"blur",function(e){pui.le(ub(e))})}};
37
37
  pui.le=function(b){if(!(b.readOnly||b.disabled))if(!(b.emptyText==null||b.emptyText==null)){if(b.value=="")b.value=b.emptyText;b.value==b.emptyText?pui.Q(b,"empty-text"):pui.da(b,"empty-text")}};
38
- pui.Mv=function(){function b(){if(e)Atrium.resetInactivityTimeout();else pui["client side timeout"]==true&&pui.jb.Kg.reset();pui.onuseractivity!=null&&pui.onuseractivity()}if(!pui.Dx){try{var a=Atrium.getSettings()}catch(c){}var e=a&&a.ACTIMEOUT==="1";if(!(!e&&pui.onuseractivity==null&&pui["client side timeout"]!=true)){T(document.body,"keydown",b);T(document.body,"mousemove",b);T(document.body,"click",b);T(document.body,"touchstart",b);T(document.body,"touchmove",b);pui.Dx=true}}};pui.ua={};
38
+ pui.Mv=function(){function b(){if(e)Atrium.resetInactivityTimeout();else pui["client side timeout"]==true&&pui.jb.Kg.reset();pui.onuseractivity!=null&&pui.onuseractivity()}if(!pui.Dx){try{var a=Atrium.getSettings()}catch(c){}var e=a&&a.ACTIMEOUT==="1";if(!(!e&&pui.onuseractivity==null&&pui["client side timeout"]!=true)){S(document.body,"keydown",b);S(document.body,"mousemove",b);S(document.body,"click",b);S(document.body,"touchstart",b);S(document.body,"touchmove",b);pui.Dx=true}}};pui.ua={};
39
39
  pui.ua.bt=(new Date).getTime();pui.ua.Wj=false;pui.ua.timeout=600;pui.ua.Ss=null;pui.ua.Yp=function(){if(pui.ua.Wj)pui.ua.reset();else{var b=pui["keep alive interval"];try{var a=Atrium.getSettings()}catch(c){}if(a&&a.ACTIMEOUT==="1")b=pui.timeout-10;if(b!=null){pui.ua.timeout=b;pui.ua.start()}}};pui.ua.start=function(){if(!pui.ua.Wj){var b=pui.ua.timeout*1E3;b/=4;if(b>3E3)b=3E3;pui.ua.Ss=setInterval(pui.ua.check,b);pui.ua.reset();pui.ua.Wj=true}};
40
40
  pui.ua.stop=function(){if(pui.ua.Wj){clearInterval(pui.ua.Ss);pui.ua.Wj=false}};pui.ua.reset=function(){pui.ua.bt=(new Date).getTime()};pui.ua.check=function(){if((new Date).getTime()-pui.ua.bt>=pui.ua.timeout*1E3){pui.keepAlive();pui.ua.reset()}};pui.Be=function(b){if(b.which!=null)if(b.which>1)return true;if(b.button!=null)if(b.button>1)return true;return false};
41
41
  pui.Vc=function(b,a){var c=0,e=0,f=-1;for(a=a===true&&P=="dspf"&&Ib!=null&&Ib.designer!=null&&Ib.designer.b!=null&&Ib.designer.b.parentNode!=null&&Ib.designer.b.parentNode.parentNode!=null&&Ib.designer.b.parentNode.parentNode.contains(b);b!=null;){var h=true,g=b.offsetLeft,l=b.offsetTop;if(a)if(b.hx){g=Math.round((b.offsetLeft+b.clientLeft)*Ib.Zh);l=Math.round((b.offsetTop+b.clientTop)*Ib.Zh);f=1;h=false}else if(f==0){g-=Math.round(b.scrollLeft*Ib.Zh);l-=Math.round(b.scrollTop*Ib.Zh);a=h=false}else{f--;
42
42
  g=Math.round((b.offsetLeft+b.clientLeft-b.scrollLeft)*Ib.Zh);l=Math.round((b.offsetTop+b.clientTop-b.scrollTop)*Ib.Zh);h=false;if(b==Ib.designer.b)f=0}c+=g;e+=l;if(b.tagName!=="BODY"&&h){c-=b.scrollLeft;e-=b.scrollTop}if(b.className=="scroller"){h=b.style.transform;if(h==null)h=b.style.webkitTransform;if(h!=null&&typeof h=="string"&&h.substr(0,10)=="translate("){h=h.substr(10);h=h.split(")")[0];g=h.split(",");h=g[0];g=g[1];if(h!=null&&g!=null){h=parseInt(Lb(h));g=parseInt(Lb(g));if(!isNaN(h)&&!isNaN(g)){c+=
43
- h;e+=g}}}}b=b.parentNode&&b.parentNode.tagName!="TD"&&(a||b.parentNode.className=="puiresp"&&(b.parentNode.scrollTop>0||b.parentNode.scrollLeft>0))?b.parentNode:b.offsetParent}return[c,e]};pui.zd=oa();function Zb(b){if(b!=null&&b!=window&&b!=document)for(var a=Object.getOwnPropertyNames(b),c=0,e=a.length;c<e;c++)try{delete b[a[c]]}catch(f){console.log(f)}}
43
+ h;e+=g}}}}b=b.parentNode&&b.parentNode.tagName!="TD"&&(a||b.parentNode.className=="puiresp"&&(b.parentNode.scrollTop>0||b.parentNode.scrollLeft>0))?b.parentNode:b.offsetParent}return[c,e]};pui.yd=oa();function Zb(b){if(b!=null&&b!=window&&b!=document)for(var a=Object.getOwnPropertyNames(b),c=0,e=a.length;c<e;c++)try{delete b[a[c]]}catch(f){console.log(f)}}
44
44
  pui.Aq=function(){this.ir=function(a){if(typeof a.length=="undefined")a=Array(a);for(var c,e=0;e<a.length;e++){c={};for(var f in a[e])c[f.toUpperCase()]=a[e][f];b.push(c)}};this.send=function(a,c){var e="",f,h,g;g=false;for(var l;!g;){f="ProfoundUIMIMEBoundary"+Math.ceil(1E9*Math.random());l=false;for(var o=0;o<b.length;o++){h=b[o].VALUE;if(h.indexOf(f)!=-1){l=true;break}}l||(g=true)}g=f;for(l=0;l<b.length;l++){f=b[l];if(!(typeof f.NAME!="string"||typeof f.VALUE!="string")){e+="--"+g+"\r\n";e+='Content-Disposition: form-data; name="'+
45
45
  f.NAME+'"';if(typeof f.FILENAME=="string"){h="application/octet-stream";if(typeof f.CONTENTTYPE=="string")h=f.CONTENTTYPE;e+='; filename="'+f.FILENAME+'"\r\n';e+="Content-Type: "+h}if(f.TRANSFERENCODING!=null)e+="\r\nContent-Transfer-Encoding: "+f.TRANSFERENCODING;e+="\r\n\r\n";e+=f.VALUE;e+="\r\n"}}e+="--"+g+"--";f=new pui.Ajax(a);f.suppressAlert=true;f.async=true;f.method="POST";f.sendAsBinary=false;f.setRequestHeader("Content-Type","multipart/form-data; boundary="+g);f.postData=e;f.onready=c;f.send()};
46
46
  var b=[]};pui.dq=function(b){pui.cq(ub(b))};pui.cq=function(b){b.Vn=Ab(b)};pui.qh=function(b,a){for(var c=[],e=0,f="",h="",g=0,l=false,o=0;o<b.length;o++){if(a===true&&e==6){h=h.substr(0,h.length-6);break}f=b.charAt(o);if(l){if(f=="'")l=false}else{if(f=="("){g+=1;e=0}else if(f==")"){g-=1;e=0}else if(f=="'"){l=true;e=0}else if(g==0)if(f.toLowerCase()==" from ".charAt(e))e++;else e=0;if(g<1)g=0}if(f==","&&g==0&&!l){c.push(Lb(h));h="";e=0}else h+=f}c.push(Lb(h));return c};
@@ -64,12 +64,12 @@ pui.mt=function(b){if(b.substr(0,1)=="#")b=b.toUpperCase();if(b.substr(0,4)=="rg
64
64
  pui.Ox=function(b){if(pui.is_chrome&&pui.Ui(b)){var a=b.value;b.value="";b.value=a}};
65
65
  pui.Zk=function(b,a){if(!(b===undefined||!b))if(!(b.tagName=="SPAN"&&b.className=="pui-highlight")){if(b.hasChildNodes())for(var c=0;c<b.childNodes.length;c++)pui.Zk(b.childNodes[c],a);if(b.nodeType==3){var e=b.nodeValue;if(e!=null&&typeof e=="string"){for(c=e.toLowerCase();c.indexOf(String.fromCharCode(160))!=-1;)c=c.replace(String.fromCharCode(160)," ");c=c.indexOf(a.toLowerCase());if(c>=0){var f=e.substr(c,a.length);e=document.createElement("span");e.appendChild(document.createTextNode(f));e.className=
66
66
  "pui-highlight";c=b.splitText(c);c.nodeValue=c.nodeValue.substring(a.length);b.parentNode.insertBefore(e,c)}}}}};pui.kw=function(b){b=b.getElementsByTagName("span");for(var a;b.length&&(a=b[0]);){var c=a.parentNode;c.replaceChild(a.firstChild,a);c.normalize()}};
67
- pui.Vy=function(){if(!pui.is_mouse_capable)if(pui.Cg()&&localStorage["pui-is-mouse-capable"]=="true")pui.is_android||pui.is_ios||(pui.is_mouse_capable=true);else{var b=document.documentElement;if(b!=null){var a=function(){e=false},c=function(){if(e){if(pui.is_android||pui.is_ios){ac(b,"mousedown",a);ac(b,"mousemove",c);return}pui.is_mouse_capable=true;pui.Cg()&&localStorage.setItem("pui-is-mouse-capable","true");ac(b,"mousedown",a);ac(b,"mousemove",c)}e=true},e=false;T(b,"mousedown",a);T(b,"mousemove",
67
+ pui.Vy=function(){if(!pui.is_mouse_capable)if(pui.Cg()&&localStorage["pui-is-mouse-capable"]=="true")pui.is_android||pui.is_ios||(pui.is_mouse_capable=true);else{var b=document.documentElement;if(b!=null){var a=function(){e=false},c=function(){if(e){if(pui.is_android||pui.is_ios){ac(b,"mousedown",a);ac(b,"mousemove",c);return}pui.is_mouse_capable=true;pui.Cg()&&localStorage.setItem("pui-is-mouse-capable","true");ac(b,"mousedown",a);ac(b,"mousemove",c)}e=true},e=false;S(b,"mousedown",a);S(b,"mousemove",
68
68
  c)}}};pui.Zs=function(){if(pui.is_chrome)for(var b=document.getElementsByTagName("iframe"),a=0;a<b.length;a++){var c=b[a],e=null;try{e=c.contentWindow.pui;c.contentWindow.puihalted=true}catch(f){}if(e!=null&&typeof e.unload==="function"){e.halted=true;e.unload()}else c.src=""}};
69
69
  pui.haltFrames=function(){for(var b=document.getElementsByTagName("iframe"),a=0;a<b.length;a++){var c=b[a];if(c!=null){var e=null;try{e=c.contentWindow.pui;c.contentWindow.puihalted=true}catch(f){}if(e!=null&&typeof e==="object"){e.halted=true;typeof e.haltFrames==="function"&&e.haltFrames()}c.parentNode!=null&&c.parentNode.removeChild(c);c.src=""}}};
70
70
  pui.breakMessagesInit=function(){if(!(Eb()||pui["brkmsg enable"]!==true))if(!(!pui.Cg()||typeof JSON!=="object"))if(!(typeof pui.appJob!=="object"||pui.appJob.user==null||pui.appJob.user.length<=0||pui.appJob.user==="QTMHHTP1")){pui["brkmsg poll interval"]=Number(pui["brkmsg poll interval"]);if(isNaN(pui["brkmsg poll interval"]))pui["brkmsg poll interval"]=30;else if(pui["brkmsg poll interval"]<1)pui["brkmsg poll interval"]=1;pui["brkmsg max errors"]=Number(pui["brkmsg max errors"]);if(isNaN(pui["brkmsg max errors"]))pui["brkmsg max errors"]=
71
71
  3;pui["brkmsg max messages"]=Number(pui["brkmsg max messages"]);if(isNaN(pui["brkmsg max messages"]))pui["brkmsg max messages"]=10;pui["brkmsg user timeout"]=Number(pui["brkmsg user timeout"]);if(isNaN(pui["brkmsg user timeout"]))pui["brkmsg user timeout"]=300;else if(pui["brkmsg user timeout"]<=pui["brkmsg poll interval"])pui["brkmsg user timeout"]=pui["brkmsg poll interval"]+10;pui.zk=0;pui.Ar();var b;try{b=JSON.parse(localStorage.getItem("brkmsgMessages_"+pui.appJob.user))}catch(a){localStorage.setItem("brkmsgMessages_"+
72
- pui.appJob.user,"[]")}if(window.parent==window||!pui.mg(window.parent)){var c=document.createElement("div");c.id="pui-break-messages";c.style.zIndex=pui.cd++;pui.runtimeContainer.appendChild(c);if(pui.Cg()){ac(window,"storage",pui.Hn);T(window,"storage",pui.Hn);b&&pui.vi(b)}}else{ac(window.parent,"storage",window.parent.Atrium.api.breakMessagesOnStorage);T(window.parent,"storage",window.parent.Atrium.api.breakMessagesOnStorage);b&&window.parent.Atrium.api.breakMessagesShow(b,pui.appJob.user)}pui.Rv()}};
72
+ pui.appJob.user,"[]")}if(window.parent==window||!pui.mg(window.parent)){var c=document.createElement("div");c.id="pui-break-messages";c.style.zIndex=pui.cd++;pui.runtimeContainer.appendChild(c);if(pui.Cg()){ac(window,"storage",pui.Hn);S(window,"storage",pui.Hn);b&&pui.vi(b)}}else{ac(window.parent,"storage",window.parent.Atrium.api.breakMessagesOnStorage);S(window.parent,"storage",window.parent.Atrium.api.breakMessagesOnStorage);b&&window.parent.Atrium.api.breakMessagesShow(b,pui.appJob.user)}pui.Rv()}};
73
73
  pui.Ar=function(){if(!pui||!pui.appJob||pui.appJob.auth.length<=0||pui.appJob.user.length<=0)return false;var b=localStorage.getItem("brkmsgActivePoller_"+pui.appJob.user),a=Number(localStorage.getItem("brkmsgLastPoll_"+pui.appJob.user));if(isNaN(a))a=0;var c=Date.now();a=c-a;var e=pui["brkmsg poll interval"]*1E3+1E4;if(b===null||a>=e&&b!==pui.appJob.auth){b=pui.appJob.auth;localStorage.setItem("brkmsgActivePoller_"+pui.appJob.user,b);localStorage.setItem("brkmsgLastPoll_"+pui.appJob.user,c)}var f;
74
74
  c=false;try{f=JSON.parse(localStorage.getItem("brkmsgUserIds"))}catch(h){c=true}if(f==null||typeof f.pop!=="function"){f=[];c=true}e=[];if(pui.ie(f,pui.appJob.user)<0){e.push(pui.appJob.user);c=true}for(var g=0;g<f.length;g++)if(f[g]!==pui.appJob.user){a=Number(localStorage.getItem("brkmsgLastPoll_"+f[g]));if(isNaN(a))a=0;if(Date.now()-a>=pui["brkmsg user timeout"]*1E3){localStorage.removeItem("brkmsgLastPoll_"+f[g]);localStorage.removeItem("brkmsgActivePoller_"+f[g]);localStorage.removeItem("brkmsgMessages_"+
75
75
  f[g]);c=true}else e.push(f[g])}c&&localStorage.setItem("brkmsgUserIds",JSON.stringify(e));return b===pui.appJob.auth};
@@ -79,7 +79,7 @@ if(window!=window.parent&&pui.mg(window.parent))typeof window.parent.Atrium["brk
79
79
  pui.mg(window.parent)?window.parent.Atrium.api.breakMessagesShow(b,pui.appJob.user):pui.vi(b)}catch(a){console.log(a)}}},pui["brkmsg poll interval"]*1E3)}};pui.In=function(){clearInterval(pui.Gn);ac(window,"storage",pui.Hn)};
80
80
  pui.Fn=function(b){if(!(typeof pui.appJob!=="object"||pui.appJob.user.length<=0||pui.appJob.user==="QTMHHTP1")){vb(b);if(!(b.keyCode&&b.keyCode!=13)){b=ub(b).msgIdx;var a;try{a=JSON.parse(localStorage.getItem("brkmsgMessages_"+pui.appJob.user));if(a!==null&&typeof a.splice==="function"){if(!b&&b!=0)b=a.length-1;a.splice(b,1)}else a=[]}catch(c){console.log(c);a=[]}localStorage.setItem("brkmsgMessages_"+pui.appJob.user,JSON.stringify(a));pui.vi(a)}}};
81
81
  pui.vi=function(b){if(typeof pui["brkmsg handler"]=="function")return pui["brkmsg handler"](b);pui.zr=false;if(!(b==null||typeof b.pop!=="function")){var a=document.getElementById("pui-break-messages");if(a){a.innerHTML="";if(b.length==0)pui.unmaskScreen();else{pui.maskScreen();pui.zr=true;pui.cd+=2;a.style.zIndex=pui.cd;for(var c=10,e=10,f=0;f<b.length;f++){var h=b[f];h.to=pui.appJob.user;var g=document.createElement("div");g.style.top=c+"px";g.style.left=e+"px";g.className="msg-wrap";var l=document.createElement("div");
82
- l.className="msg-titlewrap";g.appendChild(l);var o=document.createElement("div");o.className="title";l.appendChild(o);var n=document.createElement("button");n.className="closeImg";n.msgIdx=f;l.appendChild(n);T(n,"click",pui.Fn);T(n,"keydown",pui.Fn);l=document.createElement("div");l.className="msg-body";if(typeof pui.breakMessageFormat==="function"){var r={title:"",body:""};pui.breakMessageFormat(h,r);o.innerHTML=r.title;l.innerHTML=r.body}else try{o.innerHTML=h.date+" "+h.time+"<br>"+h.jobNum+"/"+
82
+ l.className="msg-titlewrap";g.appendChild(l);var o=document.createElement("div");o.className="title";l.appendChild(o);var n=document.createElement("button");n.className="closeImg";n.msgIdx=f;l.appendChild(n);S(n,"click",pui.Fn);S(n,"keydown",pui.Fn);l=document.createElement("div");l.className="msg-body";if(typeof pui.breakMessageFormat==="function"){var r={title:"",body:""};pui.breakMessageFormat(h,r);o.innerHTML=r.title;l.innerHTML=r.body}else try{o.innerHTML=h.date+" "+h.time+"<br>"+h.jobNum+"/"+
83
83
  h.jobUserName+"/"+h.jobName;l.innerHTML=h.to+":<br>"+h.msg}catch(p){console.log(p)}g.appendChild(l);a.appendChild(g);c+=1;e+=10}n.focus()}}}};pui.Hn=function(b){if(typeof pui.appJob!=="object"||pui.appJob.user.length<=0||pui.appJob.user==="QTMHHTP1")return false;if(b.key!=="brkmsgMessages_"+pui.appJob.user)return false;try{var a=JSON.parse(b.newValue);pui.vi(a)}catch(c){console.log(c)}return false};
84
84
  pui.Zj=function(b){if(pui["submit log"]){console.log("=".repeat(80));console.log((new Date).toString()+": submit flag = "+b);console.log("-".repeat(80));try{throw Error();}catch(a){b=a.stack.split("\n");b[0].indexOf("Error")==0&&b.shift();b.shift();for(var c=0;c<b.length;c++)b[c]!=""&&console.log(b[c].replace(/^\s*at\s/,""))}}};if(typeof String.prototype.repeat!="function")String.prototype.repeat=function(b){for(var a="",c=0;c<b;c++)a+=this;return a};
85
85
  pui.wait=function(b,a,c,e){var f=0,h=setInterval(function(){f+=b;if(c()===true){clearInterval(h);e(true)}else if(f>=a){clearInterval(h);e(false)}},b)};
@@ -93,9 +93,9 @@ pui.sx=function(b,a){function c(e){e.length===0&&a();e.forEach(function(f){funct
93
93
  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
94
  pui.Qk=function(b){var a;if(b.indexOf("<%")<0)return b;if(typeof window.ejs!=="object"||typeof window.ejs.render!=="function"){console.error("EJS templating library not loaded.");return b}if(pui.lo==null){var c={},e={};a=false;var f=pui.layers;if(f==null)f=[];f=f[f.length-1];if(f==null)f={formats:[]};f=f.formats;for(var h=0;h<f.length;h++){var g=f[h];for(var l in g.data){var o=g.data[l];if(l.substring(0,3).toUpperCase()==="*IN"){a=l.substr(3);isNaN(Number(a))||(a=Number(a));e[a]=o;a=true}else{c[l.toLowerCase()]=
95
95
  o;c[l.toUpperCase()]=o;c[l]=o}}if(g.subfiles)for(var n in g.subfiles){o=g.subfiles[n].data;for(var r=g.subfiles[n]["field names"],p=[],t=0;t<o.length;t++){for(var s=o[t],w={},A=0;A<r.length;A++){var B=r[A];if(B.substring(0,3).toUpperCase()==="*IN"){a=B.substr(3);isNaN(Number(a))||(a=Number(a));e[a]=s[A];a=true}else{w[B.toLowerCase()]=s[A];w[B.toUpperCase()]=s[A];w[B]=s[A]}}p.push(w)}c[n.toLowerCase()]=p;c[n.toUpperCase()]=p;c[n]=p}}if(a)c.Gz=e;pui.lo=c}try{b=window.ejs.render(b,pui.lo)}catch(G){console.error(G)}return b};
96
- pui.fu=function(b,a){if(pui.mo)setTimeout(function(){pui.fu(b,a)},100);else if(pui.qw)b.innerHTML=pui.Qk(a);else{pui.mo=true;b.innerHTML="";pui.loadJS({path:pui.normalizeURL("/ejs/ejs.min.js"),callback:function(){b.innerHTML=pui.Qk(a);pui.qw=true;pui.mo=false},onerror:function(){pui.mo=false}})}};pui.yd=Object.create(pui.zd.prototype,{ae:{value:'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'},Rg:{value:"http://schemas.openxmlformats.org"},Mm:{value:"application/vnd.openxmlformats"}});
97
- Object.defineProperties(pui.yd,{ci:{value:pui.yd.Mm+"-officedocument.spreadsheetml"},kk:{value:pui.yd.Rg+"/spreadsheetml/2006/main"},jk:{value:pui.yd.Rg+"/package/2006/relationships"},$d:{value:pui.yd.Rg+"/officeDocument/2006/relationships"}});
98
- pui.Dm=function(b){this.Cm=b;this.Cm.Mg=this;this.Jc=this.Uc=null;this.pm={};this.Ty=0;this.ah=[{ej:0,Ji:0,Gi:0,ti:0,bk:0},{ej:2,Ji:0,Gi:0,ti:0,bk:0,vn:1}];this.Fr=1;this.Xv={ej:0,Ji:1,Gi:0,ti:0,bk:1};this.Jn=-1;this.Yv={ej:0,Ji:0,Gi:0,ti:0,bk:0,rr:1,alignment:{Ku:1}};this.Kn=-1;this.zl={};this.Al=0};pui.Dm.prototype=Object.create(pui.yd);
96
+ pui.fu=function(b,a){if(pui.mo)setTimeout(function(){pui.fu(b,a)},100);else if(pui.qw)b.innerHTML=pui.Qk(a);else{pui.mo=true;b.innerHTML="";pui.loadJS({path:pui.normalizeURL("/ejs/ejs.min.js"),callback:function(){b.innerHTML=pui.Qk(a);pui.qw=true;pui.mo=false},onerror:function(){pui.mo=false}})}};pui.xd=Object.create(pui.yd.prototype,{ae:{value:'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'},Rg:{value:"http://schemas.openxmlformats.org"},Mm:{value:"application/vnd.openxmlformats"}});
97
+ Object.defineProperties(pui.xd,{ci:{value:pui.xd.Mm+"-officedocument.spreadsheetml"},kk:{value:pui.xd.Rg+"/spreadsheetml/2006/main"},jk:{value:pui.xd.Rg+"/package/2006/relationships"},$d:{value:pui.xd.Rg+"/officeDocument/2006/relationships"}});
98
+ pui.Dm=function(b){this.Cm=b;this.Cm.Mg=this;this.Jc=this.Uc=null;this.pm={};this.Ty=0;this.ah=[{ej:0,Ji:0,Gi:0,ti:0,bk:0},{ej:2,Ji:0,Gi:0,ti:0,bk:0,vn:1}];this.Fr=1;this.Xv={ej:0,Ji:1,Gi:0,ti:0,bk:1};this.Jn=-1;this.Yv={ej:0,Ji:0,Gi:0,ti:0,bk:0,rr:1,alignment:{Ku:1}};this.Kn=-1;this.zl={};this.Al=0};pui.Dm.prototype=Object.create(pui.xd);
99
99
  function dc(b,a,c){var e=b.pm[a];if(e==null){e=b.pm[a]={value:b.Ty++,isString:true};if(c){a=e;if(b.Jn<0)b.Jn=b.ah.push(b.Xv)-1;a.Gc=b.Jn}else if(/[\n\r]/.test(a)){a=e;if(b.Kn<0)b.Kn=b.ah.push(b.Yv)-1;a.Gc=b.Kn}}return e}
100
100
  function ec(b,a,c){var e;if(typeof a!=="string")a="";if(typeof c!=="string")c="";var f=b.zl[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=fc(b,h);else{f="";if(c==="he_IL")f+="[$-101040D]";switch(a){case "R:i:s":f=
101
101
  "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;
@@ -103,7 +103,7 @@ case "M":f+="mmm";break;case "n":f+="m";break;case "Y":f+="yyyy";break;case "y":
103
103
  164+b.Al;b.Al++;e=fc(b,h);f={id:h,Gc:e,code:f};b.zl[c+a]=f}}return e}function fc(b,a){return b.ah.push({ej:a,Ji:0,Gi:0,ti:0,bk:0,vn:1})-1}function gc(b,a){b.fileName=a||"sheet";if(typeof JSZip=="function")b.Vq();else{var c=b.nk.bind(b);pui.loadJS({path:"/jszip/jszip.min.js",callback:b.Vq.bind(b),onerror:function(){console.log("Failed to load /jszip/jszip.min.js");c()}})}}Aa=pui.Dm.prototype;
104
104
  Aa.Vq=function(){if(typeof saveAs=="function"||pui.Co(pui.normalizeURL("/jszip/FileSaver.min.js"))!=null)this.Uq();else{var b=this.nk.bind(this);pui.loadJS({path:"/jszip/FileSaver.min.js",callback:this.Uq.bind(this),onerror:function(){console.log("Failed to load /jszip/FileSaver.min.js");b()}})}};
105
105
  Aa.Uq=function(){if(this.Uc){var b=this.Uc,a=this.Pq.bind(this),c=this.Jc;if(b.ta.length<1)a();else{b.fo=0;b.Jc=c;c=b.$u.bind(b);b.Wv=a;for(a=0;a<b.ta.length;a++){b.ta[a].Xf=new XMLHttpRequest;b.ta[a].Xf.open("GET",b.ta[a].uri,true);b.ta[a].Xf.responseType="blob";b.ta[a].Xf.onload=c;b.ta[a].Xf.send()}}}else this.Pq()};
106
- Aa.Pq=function(){var b,a;this.Jc&&typeof this.Jc.hm=="function"&&this.Jc.hm(pui.getLanguageText("runtimeMsg","compressing"));var c=pui.yd.ae+'<Types xmlns="'+pui.yd.Rg+'/package/2006/content-types"><Default Extension="rels" ContentType="'+pui.yd.Mm+'-package.relationships+xml"/><Default Extension="xml" ContentType="application/xml"/>';if(this.Uc){b=this.Uc.fs;for(a in b)c+='<Default Extension="'+a+'" ContentType="'+b[a]+'"/>'}c+='<Override PartName="/xl/workbook.xml" ContentType="'+this.ci+'.sheet.main+xml"/><Override PartName="/xl/worksheets/sheet1.xml" ContentType="'+
106
+ Aa.Pq=function(){var b,a;this.Jc&&typeof this.Jc.hm=="function"&&this.Jc.hm(pui.getLanguageText("runtimeMsg","compressing"));var c=pui.xd.ae+'<Types xmlns="'+pui.xd.Rg+'/package/2006/content-types"><Default Extension="rels" ContentType="'+pui.xd.Mm+'-package.relationships+xml"/><Default Extension="xml" ContentType="application/xml"/>';if(this.Uc){b=this.Uc.fs;for(a in b)c+='<Default Extension="'+a+'" ContentType="'+b[a]+'"/>'}c+='<Override PartName="/xl/workbook.xml" ContentType="'+this.ci+'.sheet.main+xml"/><Override PartName="/xl/worksheets/sheet1.xml" ContentType="'+
107
107
  this.ci+'.worksheet+xml"/><Override PartName="/xl/styles.xml" ContentType="'+this.ci+'.styles+xml"/><Override PartName="/xl/sharedStrings.xml" ContentType="'+this.ci+'.sharedStrings+xml"/>';if(this.Uc!=null)c+='<Override PartName="/xl/drawings/drawing1.xml" ContentType="'+this.Mm+'-officedocument.drawing+xml"/>';c+="</Types>";var e=this.ae+'<Relationships xmlns="'+this.jk+'"><Relationship Id="rId1" Type="'+this.$d+'/officeDocument" Target="xl/workbook.xml"/></Relationships>',f='<?xml version="1.0" encoding="UTF-8" standalone="yes"?><workbook xmlns="'+
108
108
  this.kk+'" xmlns:r="'+this.$d+'"><sheets><sheet name="Sheet1" sheetId="1" r:id="rId1"/></sheets></workbook>',h=this.ae+'<Relationships xmlns="'+this.jk+'"><Relationship Id="rId3" Type="'+this.$d+'/styles" Target="styles.xml"/><Relationship Id="rId1" Type="'+this.$d+'/worksheet" Target="worksheets/sheet1.xml"/><Relationship Id="rId4" Type="'+this.$d+'/sharedStrings" Target="sharedStrings.xml"/></Relationships>',g=this.ae+'<styleSheet xmlns="'+this.kk+'">';if(this.Al>0){g+='<numFmts count="'+this.Al+
109
109
  '">';for(var l in this.zl){b=this.zl[l];if(b.id>0)g+='<numFmt numFmtId="'+b.id+'" formatCode="'+b.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>';
@@ -117,7 +117,7 @@ function kc(b){var a=[];for(var c in b.pm)a[b.pm[c].value]=c;b=b.ae+'<sst xmlns=
117
117
  pui.Em=function(b){this.Kf=b;this.rows=[];this.nd=-1;this.$n=20;this.colWidths=[];this.Hu=false;this.formats=[];this.ke=[];this.ls=7;this.ta=[];this.Ks=[];b=pui.zs();this.Ua=null;switch(b.Jj){case 1:this.Ua="/";break;case 2:this.Ua="-";break;case 3:this.Ua=".";break;case 4:this.Ua=",";break;case 5:this.Ua=" ";break;case 7:this.Ua=pui.appJob&&pui.appJob.dateSeparator?pui.appJob.dateSeparator:null;break}this.zb={dateFormat:"Y-m-d",timeFormat:"H.i.s"};switch(b.Ii){case 1:this.zb.dateFormat="Y-m-d";this.Ua=
118
118
  "-";break;case 2:this.zb.dateFormat="m/d/Y";this.Ua="/";break;case 3:this.zb.dateFormat="d.m.Y";this.Ua=".";break;case 4:this.zb.dateFormat="Y-m-d";this.Ua="-";break;case 5:if(typeof this.Ua==="string")this.zb.dateFormat="m"+this.Ua+"d"+this.Ua+"y";break;case 6:if(typeof this.Ua==="string")this.zb.dateFormat="d"+this.Ua+"m"+this.Ua+"y";break;case 7:if(typeof this.Ua==="string")this.zb.dateFormat="y"+this.Ua+"m"+this.Ua+"d";break;case 8:if(typeof this.Ua==="string")this.zb.dateFormat="y"+this.Ua+"z";
119
119
  break}b=pui.As();var a=null;switch(b.Jj){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.Ii){case 1:this.zb.timeFormat="H.i.s";break;case 2:this.zb.timeFormat="h:m A";break;case 3:this.zb.timeFormat="h.m.s";break;case 4:this.zb.timeFormat="h:m:s";break;case 9:if(typeof a==="string")this.zb.timeFormat="h"+a+"m"+a+"s";break}this.zb.timeStampFormat=this.zb.dateFormat+this.Ua+this.zb.timeFormat+
120
- ".uu";this.locale=pui.locale&&pui.locales[pui.locale]?pui.locales[pui.locale]:"en_US";this.Vr=pui.appJob!=null&&(pui.appJob.decimalFormat=="I"||pui.appJob.decimalFormat=="J")};pui.Em.prototype=Object.create(pui.yd);function mc(b){b.nd=b.rows.push([])-1}pui.Em.prototype.Rf=function(b){this.colWidths=b};
120
+ ".uu";this.locale=pui.locale&&pui.locales[pui.locale]?pui.locales[pui.locale]:"en_US";this.Vr=pui.appJob!=null&&(pui.appJob.decimalFormat=="I"||pui.appJob.decimalFormat=="J")};pui.Em.prototype=Object.create(pui.xd);function mc(b){b.nd=b.rows.push([])-1}pui.Em.prototype.Rf=function(b){this.colWidths=b};
121
121
  function nc(b,a,c){if(typeof b.formats[c]!=="object"||b.formats[c]===null)b.formats[c]={dataType:"char"};b.Kf=Math.max(b.Kf,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=
122
122
  a.decPos;if(a.decPos==="2")b.formats[c].Gc=b.Mg.Fr}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.zb[e];b.formats[c][e]=f;b.formats[c].Gc=ec(b.Mg,f,b.formats[c].locale)}if(typeof a.formatting===
123
123
  "string")b.formats[c].formatting=a.formatting}
@@ -132,7 +132,7 @@ function xc(b,a,c,e){a=yc(b,a,c,e);if(a[0]instanceof Date){b.rows[b.nd][c]={valu
132
132
  function lc(b){var a,c,e;b.map=[];e=0;var f="";a="";c=b.Kf;for(var h=-1;h<26&&e<c;h++){var g=-1;if(h>=0)g=0;for(g=g;g<26&&e<c;g++){for(var l=0;l<26&&e<c;l++){b.map[e]=f+a+"ABCDEFGHIJKLMNOPQRSTUVWXYZ"[l];e++}a="ABCDEFGHIJKLMNOPQRSTUVWXYZ"[(g+1)%26]}f="ABCDEFGHIJKLMNOPQRSTUVWXYZ"[h+1]}f=b.ae+'<worksheet xmlns="'+b.kk+'" xmlns:r="'+b.$d+'"><dimension ref="A1:'+b.map[b.Kf-1]+b.rows.length+'"/><sheetFormatPr defaultRowHeight="'+b.$n*0.75+'" customHeight="1" /><cols>';c=0;for(e=b.Kf;c<e;c++){a=0;if(typeof b.colWidths[c]===
133
133
  "number")a=pui.round((b.colWidths[c]-5)/7,2);else if(b.ke[c]!=null&&!isNaN(parseInt(b.ke[c],10)))a=Math.floor((b.ke[c]*b.ls+5)/b.ls*256)/256+5;if(a<0)a=0;else if(a>255)a=255;h="";if(b.formats[c]!=null&&b.formats[c].Gc)h=' style="'+b.formats[c].Gc+'"';f+='<col min="'+(c+1)+'" max="'+(c+1)+'" width="'+a+'" '+h+' customWidth="1"/>'}f+="</cols><sheetData>";c="";if(typeof b.th==="number"&&b.th>0)c=' ht="'+Math.round(b.th*0.75)+'" customHeight="1"';a=0;for(e=b.rows.length;a<e;a++){h=String(a+1);f+='<row r="'+
134
134
  h+'"'+c+">";g=b.rows[a];if(g!=null)for(c=0;c<b.Kf;c++){l=g[c];if(l!=null&&typeof l.value==="number"){f+='<c r="'+b.map[c]+h+'"';if(typeof l.Gc==="number")f+=' s="'+l.Gc+'"';if(l.isString)f+=' t="s"';f+="><v>"+l.value+"</v></c>"}}f+="</row>";c="";if(typeof b.th==="number"&&b.th>0)c=' ht="'+Math.round(b.$n*0.75)+'" customHeight="1"'}f+="</sheetData>";if(b.Hu)f+='<drawing r:id="rId1"/>';c=b.Ks;if(c.length>0){f+="<hyperlinks>";e=c.length;for(h=0;h<e;h++){a=c[h].row+1;f+='<hyperlink ref="'+b.map[c[h].col]+
135
- a+'" r:id="rId'+(c[h].by+1)+'" />'}f+="</hyperlinks>"}f+="</worksheet>";return f}pui.tq=function(){this.fs={};this.ta=[];this.kt=1;this.anchors=[]};pui.tq.prototype=Object.create(pui.yd);
135
+ a+'" r:id="rId'+(c[h].by+1)+'" />'}f+="</hyperlinks>"}f+="</worksheet>";return f}pui.tq=function(){this.fs={};this.ta=[];this.kt=1;this.anchors=[]};pui.tq.prototype=Object.create(pui.xd);
136
136
  function zc(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.kt+"."+h;b.kt++;b.fs[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})}}
137
137
  pui.tq.prototype.$u=function(){this.fo++;this.Jc&&typeof this.Jc.hm=="function"&&this.Jc.hm(pui.getLanguageText("runtimeMsg","downloading x",[Math.round(100*(this.fo/this.ta.length))+"%"]));if(!(this.fo<this.ta.length)){for(var b=0;b<this.ta.length;b++){if(this.ta[b].Xf.status==200)this.ta[b].Ms=this.ta[b].Xf.response;this.ta[b].Xf=null;try{delete this.ta[b].Xf}catch(a){}}this.Wv()}};
138
138
  pui.Oz=function(b,a){var c,e=b.library||"",f=b.file||"",h=b.customSql||"",g=b.connection||"";if(P=="genie")c=Wb("PUI0009101.PGM");if(P=="dspf")c=Wb("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;
@@ -140,8 +140,8 @@ else if(P=="genie")c.postData+="&AUTH="+pui.appJob.auth;c.postData+="&context="+
140
140
  pui.Ea=function(b,a){var c;if(pui["alert script errors"]===false){if(window.console&&window.console.error){if(b.stack){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)}};
141
141
  pui.qA=function(){["pui-material-icons","pui-fa-icons","blueprint-defaults","office-copy-defaults"].forEach(function(b){var a=document.createElement("div");a.innerText="face";a.className=b;a.style.visibility="hidden";a.style.left="-1000px";a.style.position="absolute";document.body.appendChild(a)})};
142
142
  pui.Fz=function(){pui.useAceEditor||pui.is_ie||pui.ie_mode<=11||["profoundjs.d.ts","profoundui.d.ts"].forEach(function(b){var a=new pui.Ajax("/profoundui/proddata/typings/"+b);a.async=true;a.headers={"Content-Type":"text/plain"};a.overrideMimeType="text/plain";a.suppressAlert=true;a.onsuccess=function(c){if(c=c.getResponseText())if(!(!window.monaco||pui.useAceEditor)){window.monaco.languages.typescript.javascriptDefaults.addExtraLib(c,b);window.monaco.languages.typescript.typescriptDefaults.addExtraLib(c,
143
- b)}};a.onfail=function(c){console.error(c.getStatusMessage())};a.send()})};pui.Mz=function(){return[{type:"material",title:"Material Icons",classList:{"":"pui-material-icons"}},{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-"}}]};pui.Rd=function(){return Math.random().toString(36).replace(/[^a-z]+/g,"")};
144
- pui.Zd=function(b){this.x=this.y=this.Ik=this.Jk=0;this.jo=b.jo;this.jp=b.jp;this.mq=b.mq;b=b.yk;if(b instanceof Array)for(var a=0;a<b.length;a++){var c=b[a];c.addEventListener("touchstart",this);c.addEventListener("mousedown",this)}else if(typeof b==="object"&&b!==null){b.addEventListener("touchstart",this);b.addEventListener("mousedown",this)}};pui.Zd.prototype=new pui.zd;
143
+ b)}};a.onfail=function(c){console.error(c.getStatusMessage())};a.send()})};pui.Mz=function(){return[{type:"material",title:"Material Icons",classList:{"":"pui-material-icons"}},{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-"}}]};pui.Qd=function(){return Math.random().toString(36).replace(/[^a-z]+/g,"")};
144
+ pui.Zd=function(b){this.x=this.y=this.Ik=this.Jk=0;this.jo=b.jo;this.jp=b.jp;this.mq=b.mq;b=b.yk;if(b instanceof Array)for(var a=0;a<b.length;a++){var c=b[a];c.addEventListener("touchstart",this);c.addEventListener("mousedown",this)}else if(typeof b==="object"&&b!==null){b.addEventListener("touchstart",this);b.addEventListener("mousedown",this)}};pui.Zd.prototype=new pui.yd;
145
145
  pui.Zd.prototype.handleEvent=function(b){switch(b.type){case "touchstart":case "mousedown":vb(b);b=pui.vg(b);this.Ik=b.x;this.Jk=b.y;this.mousedown();document.addEventListener("touchmove",this);document.addEventListener("mousemove",this);document.addEventListener("touchend",this);document.addEventListener("mouseup",this);typeof this.jo==="function"&&this.jo(this);break;case "touchmove":case "mousemove":b=pui.vg(b);this.x=b.x;this.y=b.y;this.mousemove();typeof this.jp==="function"&&this.jp(this);break;
146
146
  case "touchend":case "mouseup":document.removeEventListener("touchmove",this);document.removeEventListener("mousemove",this);document.removeEventListener("touchend",this);document.removeEventListener("mouseup",this);typeof this.mq==="function"&&this.mq(this);this.mouseup();break}};pui.Zd.prototype.mousedown=oa();pui.Zd.prototype.mousemove=oa();pui.Zd.prototype.mouseup=oa();
147
147
  pui.Ue=function(b,a){pui.Zd.call(this,b);this.Yc=b.move;this.opacity=b.opacity;if(typeof a=="object"&&a!==null){if(typeof a.left!=="number")a.left=0;if(typeof a.top!=="number")a.top=0;if(typeof a.right!=="number")a.right=Infinity;if(typeof a.bottom!=="number")a.bottom=Infinity;this.Gb=a}else this.Gb={left:0,top:0,right:Infinity,bottom:Infinity}};pui.Ue.prototype=Object.create(pui.Zd.prototype);
@@ -177,7 +177,7 @@ pui.$w=function(b){if(b==null||typeof b!="string")return[];var a=[];a["20"]=["GR
177
177
  "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"];
178
178
  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]};
179
179
  pui.wr=function(b){if(b==null||typeof b!="string"||b.length<1)return[];b=pui.fz(b.charCodeAt(0));return pui.$w(b)};pui.Lx=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=Lb(e).toUpperCase();if(e=="")return null;a=Lb(a).toUpperCase();if(a=="")return null;c=Lb(c).toUpperCase();if(c=="")return null;return{library:e,file:a,member:c}};
180
- pui.Jv=function(b,a){var c=pui.Md;if(!(P!="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.vd=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.kg(a)}}};pui.Lw=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};
180
+ pui.Jv=function(b,a){var c=pui.Ld;if(!(P!="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.kg(a)}}};pui.Lw=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};
181
181
  pui.sg=function(b){if(typeof b==="string"){b=b;var a=Bb(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,
182
182
  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.mc!=null)e.mc=a.mc;if(a.Sc!=null)e.Sc=a.Sc;if(a.mf!=null)e.mf=a.mf;if(a.oe!=null)e.oe=a.oe;if(a.eb!=null)e.eb=a.eb;if(a.Wa!=null)e.Wa=a.Wa;a.style.position="";a.style.left="";a.style.top="";a.style.width="100%";if(a.style.visibility){e.style.visibility=
183
183
  a.style.visibility;a.style.visibility=""}e.appendChild(a);e.sizeMe=a.sizeMe;e.ge=a.ge;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.hp(a);b.getValue=function(){return a.value};b.setValue=function(h){a.value=h;pui.le(a)};b.getBox=function(){return a};b.Wp=function(h){h&&a.setAttribute("maxlength",
@@ -331,37 +331,37 @@ type:"js",a:"blank",help:"Initiates a client-side script when the mouse button i
331
331
  controls:["combo box","menu"]},{name:"onselect",wf:true,controls:["combo box","textbox"],type:"js",a:"blank",help:"Initiates a client-side script when a selection is made from the selection list of an auto-complete textbox or a combo box. In the case of an auto-complete textbox, the selected record is passed to the function as a JSON object that has properties named after the selected fields."},{name:"onspin",wf:true,controls:["spinner"],type:"js",a:"blank",help:"Initiates a client-side script when the up or down arrow is clicked on a spinner element."},
332
332
  {name:"onprompt",wf:true,controls:["textbox"],type:"js",a:"blank",help:"Initiates a client-side script when the prompt icon is clicked on a textbox. In your script, use special variable 'value' to retrieve the textbox value. Use 'this' to refer to the input DOM element."}];if(pui.nodedesigner===true){b=Fc.map(function(e){return e.name}).indexOf("remote system name");Fc.splice(b,1)}return Fc}
333
333
  function Jc(b){for(var a={},c=0;c<b.length;c++){a[b[c].name]=b[c];if(b[c].displayName)pui.zp[b[c].displayName]=b[c].name}return a}function Dc(){if(Gc!=null)return Gc;return Gc=Jc(Hc())}
334
- function Mc(b,a,c){if(pui.zp[a])a=pui.zp[a];if(typeof b=="string")b=Bb(b);if(b==null)return null;a=="shortcut key"&&pui.Jv(c,b);if(a=="focus class")if(b.pui.properties["field type"]==="combo box"){var e=b.comboBoxWidget.getBox();e.focusClass=Lb(c);T(e,"focus",pui.xk);T(e,"blur",pui.Sl)}else{b.focusClass=Lb(c);T(b,"focus",pui.xk);T(b,"blur",pui.Sl)}if(a=="required"){b.Pl=c=="true";if(b.l!=null)b.l.getBox().Pl=c=="true"}if(a=="mandatory entry")b.xq=c=="true";if(a=="mandatory fill")b.yq=c=="true";if(a==
335
- "valid values")b.oq=c;if(a=="allow blanks")b.nr=c=="true";if(a=="auto advance"){e=b;if(b.comboBoxWidget!=null)e=b.comboBoxWidget.getBox();if(b.l!=null)e=b.l.getBox();if(c=="true"){e.zn=true;T(e,"keyup",pui.An)}else{e.zn=true;ac(e,"keyup",pui.An)}}if(a=="validate name")b.validateName=c=="true";if(a=="validate email")b.validateEmail=c=="true";if(a=="comparison operator")b.Rn=c=="true";if(a=="comparison value")b.Sn=c;if(a=="range low")b.Ih=c;if(a=="range high")b.Hh=c;if(a=="checked value")b.checkedValue=
334
+ function Mc(b,a,c){if(pui.zp[a])a=pui.zp[a];if(typeof b=="string")b=Bb(b);if(b==null)return null;a=="shortcut key"&&pui.Jv(c,b);if(a=="focus class")if(b.pui.properties["field type"]==="combo box"){var e=b.comboBoxWidget.getBox();e.focusClass=Lb(c);S(e,"focus",pui.xk);S(e,"blur",pui.Sl)}else{b.focusClass=Lb(c);S(b,"focus",pui.xk);S(b,"blur",pui.Sl)}if(a=="required"){b.Pl=c=="true";if(b.l!=null)b.l.getBox().Pl=c=="true"}if(a=="mandatory entry")b.xq=c=="true";if(a=="mandatory fill")b.yq=c=="true";if(a==
335
+ "valid values")b.oq=c;if(a=="allow blanks")b.nr=c=="true";if(a=="auto advance"){e=b;if(b.comboBoxWidget!=null)e=b.comboBoxWidget.getBox();if(b.l!=null)e=b.l.getBox();if(c=="true"){e.zn=true;S(e,"keyup",pui.An)}else{e.zn=true;ac(e,"keyup",pui.An)}}if(a=="validate name")b.validateName=c=="true";if(a=="validate email")b.validateEmail=c=="true";if(a=="comparison operator")b.Rn=c=="true";if(a=="comparison value")b.Sn=c;if(a=="range low")b.Ih=c;if(a=="range high")b.Hh=c;if(a=="checked value")b.checkedValue=
336
336
  c;if(a=="unchecked value")b.uncheckedValue=c;if(a=="bypass validation")b.G=c;if(a=="set focus"&&(c==true||c=="true")){e=b;if(e.comboBoxWidget!=null)e=e.comboBoxWidget.getBox();if(e.l!=null)e=e.l.getBox();e.focus();pui.W.dom=e;pui.W.Hg=true}var f;f=b.Gh==null?Dc():b.Gh;e=f[a];if(e==null)e=pui.Mi(f,a);if(e!=null){if(b.pui==null||b.pui.properties==null){f="";var h="output field";if(b.tagName=="DIV")f=Oc(b);if(b.tagName=="INPUT"){f=b.value;h="textbox";if(b.type=="button"||b.type=="submit")h="button"}if(a==
337
337
  "field type")h=c;if(b.pui==null)b.pui={};b.pui.properties={"field type":h,value:f}}b.pui.properties[a]=c;return Pc(e,b.pui.properties,b,c,false)}}
338
338
  function Pc(b,a,c,e,f,h,g,l,o){if(P==="genie"&&c.id.match(/^subfile-scrollbar-[0-9]+(_W[0-9]+)*$/)&&b.name==="field type")return c;if(e=="Other..."&&f&&b.name!="value")return c;var n=c,r;if(f){r=h.originalValue;h.hd=true}else if(a.originalValue!=null)r=a.originalValue;else{r=c.tagName=="DIV"?c.l!=null?c.l.getValue():c.comboBoxWidget!=null?c.comboBoxWidget.getValue():c.U!=null?c.U.value:Oc(c):c.value;a.originalValue=r}var p=$b(e,r,c),t=b.name,s,w;if(t=="field type"){s=pui.widgets[p];if(s==null)return n;
339
339
  n=s.tag;var A=s.inputType;if(f){h.Ml=null;h.xA()}switch(p){case "select box":if(!f&&c.readOnly&&c.tagName=="INPUT")switch(pui.F.config.protectedSelectBox){case "disable":c.disabled=true;break;case "output":default:n="input";A=c.type}if(f&&pui.is_old_ie&&pui.ie_mode==6&&(String(h.properties["select box height"])==""||String(h.properties["select box height"])=="1"||String(h.properties["select box height"])=="undefined")){n="input";A="text"}break}var B=false,G=false;w=c.tagName.toLowerCase()!=n;if(!w&&
340
340
  c.tagName.toLowerCase()=="input")if(c.type!=A){w=true;if(c.type=="number"&&A=="text")w=false}if(w){B=true;w=document.createElement(n);if(n=="input"||!pui.is_old_ie&&n=="button")w.type=A;c.parentNode!=null&&c.parentNode.replaceChild(w,c);w.style.left=c.style.left;w.style.top=c.style.top;w.style.width=c.style.width;w.style.height=c.style.height;w.style.position=c.style.position;w.style.cursor=c.style.cursor;w.style.visibility=c.style.visibility;(A=c.getAttribute("puiwdgt"))&&w.setAttribute("puiwdgt",
341
341
  A);w.id=c.id;if(typeof c.name=="string")w.name=c.name;if(P=="dspf"){if(w.pui==null)w.pui={};if(c.mc!=null){w.mc=c.mc;w.pui.formatName=c.mc}if(c.Sc!=null){w.Sc=c.Sc;w.pui.fieldName=c.Sc}}if(P=="genie"){w.B=c.B;if(pui.F.W==c)pui.F.W=w;G=true}if(c.className.indexOf("hide")!=-1){w.className="hide";if(f){w.style.visibility="visible";w.style.filter="alpha(opacity=30)";w.style.opacity=0.3}}c.getAttribute("maxlength")!=null&&w.setAttribute("maxlength",c.getAttribute("maxlength"));w.disabled=c.disabled;if(c.Wa!=
342
- null)w.Wa=c.Wa;if(c.eb!=null)w.eb=c.eb;if(c.Io)w.Io=true;P=="genie"&&attachInputEvents(w);if(f){h.dom=w;g!=null&&g.sz(h);h.designer.rz(w,h)}if(c.readOnly)if(n=="input"){if(w.type=="checkbox"||w.type=="radio")P=="genie"&&T(w,"click",disableInputControl)}else if(n=="textarea")w.readOnly=true}else{w=c;if(n=="div"&&p!="tab panel")w.tabPanel=null;if(f||p=="chart"||p=="radio button")B=true}if(B){n=Hc();for(B=0;B<n.length;B++){A=n[B].name;var F=a[A];if(F!=null&&F!=""){var D=n[B].t!=null;if(A=="overflow x"||
342
+ null)w.Wa=c.Wa;if(c.eb!=null)w.eb=c.eb;if(c.Io)w.Io=true;P=="genie"&&attachInputEvents(w);if(f){h.dom=w;g!=null&&g.sz(h);h.designer.rz(w,h)}if(c.readOnly)if(n=="input"){if(w.type=="checkbox"||w.type=="radio")P=="genie"&&S(w,"click",disableInputControl)}else if(n=="textarea")w.readOnly=true}else{w=c;if(n=="div"&&p!="tab panel")w.tabPanel=null;if(f||p=="chart"||p=="radio button")B=true}if(B){n=Hc();for(B=0;B<n.length;B++){A=n[B].name;var F=a[A];if(F!=null&&F!=""){var D=n[B].t!=null;if(A=="overflow x"||
343
343
  A=="overflow y")if(a["field type"]=="layout")D=false;if(D)if(n[B].t=="visibility"&&f)if(F=="hidden"){w.style.filter="alpha(opacity=30)";w.style.opacity=0.3}else{w.style.filter="";w.style.opacity=""}else try{var E=pui.vs(n[B].t,F);w.style[n[B].t]=E;f&&pui.Dk(w,n[B].t,E)}catch(C){}if(n[B].V!=null){if(n[B].type=="boolean"&&F=="true")F=true;if(n[B].type=="boolean"&&F=="false")F=false;if(n[B].V=="disabled"&&f)F=false;try{if(F==false)w.getAttribute(n[B].V)!=null&&w.removeAttribute(n[B].V);else{var K=$b(F,
344
- r,w);if(n[B].V=="src")K=pui.normalizeURL(K,true);n[B].V!=="style"&&w.setAttribute(n[B].V,K);if(n[B].V=="class")w.className=F}}catch(R){}}}}}if(P=="dspf"){B=[];B.push(a["css class"]);A=2;for(F=a["css class "+A];F!=null;){B.push(F);A++;F=a["css class "+A]}A=a["display attribute field"];F=false;if(A!=null&&!pui.p(A)&&A!=""&&A!=" "){B=B.concat(pui.wr(A));F=true}Qc(w,B,F)}n=w;if(!s.resizable){n.style.width="";n.style.height=""}}else{s=pui.widgets[a["field type"]];if(s==null)return n}if(n.pui==null)n.pui=
344
+ r,w);if(n[B].V=="src")K=pui.normalizeURL(K,true);n[B].V!=="style"&&w.setAttribute(n[B].V,K);if(n[B].V=="class")w.className=F}}catch(L){}}}}}if(P=="dspf"){B=[];B.push(a["css class"]);A=2;for(F=a["css class "+A];F!=null;){B.push(F);A++;F=a["css class "+A]}A=a["display attribute field"];F=false;if(A!=null&&!pui.p(A)&&A!=""&&A!=" "){B=B.concat(pui.wr(A));F=true}Qc(w,B,F)}n=w;if(!s.resizable){n.style.width="";n.style.height=""}}else{s=pui.widgets[a["field type"]];if(s==null)return n}if(n.pui==null)n.pui=
345
345
  {};if(n.pui.properties==null)n.pui.properties={};n.pui.properties[t]=p;if(t=="value"&&e!="script: value"&&!f&&P=="genie"&&n.B!=null&&n.B.idx!=null)n.tagName=="INPUT"&&n.type=="radio"&&n.checked!=true||(pui.response[n.B.idx]=n);if(f&&t=="screen identifier"&&P=="genie"){B="red";B=e=="true"||e==true?"red":"#cccccc";if(n.style.borderLeftStyle=="dotted")n.style.borderLeftColor=B;if(n.style.borderRightStyle=="dotted")n.style.borderRightColor=B;if(n.style.borderTopStyle=="dotted")n.style.borderTopColor=
346
- B;if(n.style.borderBottomStyle=="dotted")n.style.borderBottomColor=B}B=s.yf;A=s.propertySetters;F=null;if(A!=null)F=A[t];var N;if(F!=null||B!=null)N=new pui.Pm(e,p,f,a,r,n,c,t,h,g);if(B!=null)if(B(N)==false)return;if(F!=null)if(F(N)==false)return;if(G)if(w.comboBoxWidget!=null){G=w.comboBoxWidget.getBox();pui.ur(G);G.B=w.B;attachInputEvents(G);w.comboBoxWidget.Wp(c.maxLength)}else if(w.l!=null){G=w.l.getBox();pui.ur(G);G.B=w.B;attachInputEvents(G);w.l.Wp(c.maxLength)}else pui.ur(w);if(t=="id"&&f){w=
346
+ B;if(n.style.borderBottomStyle=="dotted")n.style.borderBottomColor=B}B=s.yf;A=s.propertySetters;F=null;if(A!=null)F=A[t];var Q;if(F!=null||B!=null)Q=new pui.Pm(e,p,f,a,r,n,c,t,h,g);if(B!=null)if(B(Q)==false)return;if(F!=null)if(F(Q)==false)return;if(G)if(w.comboBoxWidget!=null){G=w.comboBoxWidget.getBox();pui.ur(G);G.B=w.B;attachInputEvents(G);w.comboBoxWidget.Wp(c.maxLength)}else if(w.l!=null){G=w.l.getBox();pui.ur(G);G.B=w.B;attachInputEvents(G);w.l.Wp(c.maxLength)}else pui.ur(w);if(t=="id"&&f){w=
347
347
  h.designer;G=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.ob.refresh();return n}for(B=0;B<G.Sd.length;B++)if(h.properties.newitem=="true")if(Ec[w.Na.ub]&&Ec[w.Na.ub].items){A=Ec[w.Na.ub].items;for(F=0;F<A.length;F++)if(A[F].id==h.properties.id)A[F].id=e}if(a["field type"]=="tab panel")for(B=0;B<w.items.length;B++)if(w.items[B].properties["parent tab panel"]==h.dom.id){w.items[B].properties["parent tab panel"]=
348
348
  e;w.items[B].dom.Wa=e;w.items[B].pb["parent tab panel"]=true;w.ob.Kh("parent tab panel")}G.Sd.length==1&&w.ob.MA("Properties - "+p)}if(t=="parent tab panel"&&(f||a.visibility!="hidden"))c.Wa=p;if(t=="parent tab")c.eb=p;if(t=="top"||t=="left"||t=="right"||t=="bottom")pui.Ox(c);t=="empty text"&&!f&&pui.Dy(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);
349
- 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(P=="genie"||f)c.tabPanel.z()}else{try{E=pui.vs(b.t,p);if(b.t=="textTransform"&&p=="uppercase")if(c.tagName=="INPUT"&&c.type=="text"||c.tagName=="TEXTAREA"){c.value=pui.Ie(c.value,false);c.addEventListener("input",pui.np)}else if(c.comboBoxWidget!=null){var M=
350
- c.comboBoxWidget.getBox();M.value=pui.Ie(M.value,false);M.addEventListener("input",pui.np)}else if(c.l!=null){var W=c.l.getBox();W.value=pui.Ie(W.value,false);W.addEventListener("input",pui.np)}c.style[b.t]=E;if(f)p===null||p.length==0?pui.Cp(c,b.t):pui.Dk(c,b.t,E)}catch(Q){if(w==null&&f){E="'"+e+"' is not a valid value for "+t+".";if(Ib.zh){M=Ib.designer.Rp[Ib.designer.Na.ub]["record format name"];if(a.grid!=null){W=Bb(a.grid);if(W!=null&&W.grid!=null)M=W.grid.Xa}E+="\n\n\nRecord Format: "+M;E+=
349
+ 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(P=="genie"||f)c.tabPanel.z()}else{try{E=pui.vs(b.t,p);if(b.t=="textTransform"&&p=="uppercase")if(c.tagName=="INPUT"&&c.type=="text"||c.tagName=="TEXTAREA"){c.value=pui.Ie(c.value,false);c.addEventListener("input",pui.np)}else if(c.comboBoxWidget!=null){var N=
350
+ c.comboBoxWidget.getBox();N.value=pui.Ie(N.value,false);N.addEventListener("input",pui.np)}else if(c.l!=null){var X=c.l.getBox();X.value=pui.Ie(X.value,false);X.addEventListener("input",pui.np)}c.style[b.t]=E;if(f)p===null||p.length==0?pui.Cp(c,b.t):pui.Dk(c,b.t,E)}catch(T){if(w==null&&f){E="'"+e+"' is not a valid value for "+t+".";if(Ib.zh){N=Ib.designer.Rp[Ib.designer.Na.ub]["record format name"];if(a.grid!=null){X=Bb(a.grid);if(X!=null&&X.grid!=null)N=X.grid.Xa}E+="\n\n\nRecord Format: "+N;E+=
351
351
  "\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(P=="genie"||f)c.tabPanel.z()}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"&&
352
352
  c.ad.hide()},1);b.t=="visibility"&&p=="hidden"&&!f&&a["field type"]=="textbox"&&setTimeout(function(){if(c.vj&&c.style.visibility=="hidden")c.vj.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=
353
- p;else if(b.t=="textDecoration"&&c.firstChild!=null&&c.firstChild.nextSibling!=null&&c.firstChild.nextSibling.tagName=="A")c.firstChild.nextSibling.style.textDecoration=p;if(b.t=="width"&&!s.resizable)c.style.width="";if(b.t=="height"&&!s.resizable)c.style.height=""}if(b.V!=null)if(p=="")try{b.V==="style"?pui.gy(c):c.removeAttribute(b.V);if(b.V=="class")c.className=""}catch(ha){w==null&&f&&pui.alert(ha.message)}else try{K=p;if(b.type=="boolean"&&K=="true"){K=true;if(b.V=="disabled"&&f)K=false}if(b.type==
354
- "boolean"&&K=="false")K=false;if(K==false)c.getAttribute(b.V)!=null&&c.removeAttribute(b.V);else{if(b.V=="src")K=pui.normalizeURL(K,true);b.V==="style"?pui.fr(c,K,a["field type"]==="layout"):c.setAttribute(b.V,K);if(b.V=="class")c.className=K}}catch(Y){if(w==null&&f){E="'"+e+"' is not a valid value for "+t+".";if(Ib.zh){M=Ib.designer.Rp[Ib.designer.Na.ub]["record format name"];if(a.grid!=null){W=Bb(a.grid);if(W!=null&&W.grid!=null)M=W.grid.Xa}E+="\n\n\nRecord Format: "+M;E+="\n\nElement Id: "+a.id;
353
+ p;else if(b.t=="textDecoration"&&c.firstChild!=null&&c.firstChild.nextSibling!=null&&c.firstChild.nextSibling.tagName=="A")c.firstChild.nextSibling.style.textDecoration=p;if(b.t=="width"&&!s.resizable)c.style.width="";if(b.t=="height"&&!s.resizable)c.style.height=""}if(b.V!=null)if(p=="")try{b.V==="style"?pui.gy(c):c.removeAttribute(b.V);if(b.V=="class")c.className=""}catch(ia){w==null&&f&&pui.alert(ia.message)}else try{K=p;if(b.type=="boolean"&&K=="true"){K=true;if(b.V=="disabled"&&f)K=false}if(b.type==
354
+ "boolean"&&K=="false")K=false;if(K==false)c.getAttribute(b.V)!=null&&c.removeAttribute(b.V);else{if(b.V=="src")K=pui.normalizeURL(K,true);b.V==="style"?pui.fr(c,K,a["field type"]==="layout"):c.setAttribute(b.V,K);if(b.V=="class")c.className=K}}catch(ca){if(w==null&&f){E="'"+e+"' is not a valid value for "+t+".";if(Ib.zh){N=Ib.designer.Rp[Ib.designer.Na.ub]["record format name"];if(a.grid!=null){X=Bb(a.grid);if(X!=null&&X.grid!=null)N=X.grid.Xa}E+="\n\n\nRecord Format: "+N;E+="\n\nElement Id: "+a.id;
355
355
  E+="\n\nElement Type: "+a["field type"]}pui.alert(E)}}if(P=="dspf"&&(t.substr(0,9)=="css class"||t=="display attribute field")){if(t=="display attribute field"&&a["field type"]=="combo box")B=c.className.split(" ");else{B=[];B.push(a["css class"]);A=2;for(F=a["css class "+A];F!=null;){B.push(F);A++;F=a["css class "+A]}}K=Number(t.substr(10));if(isNaN(K)||K<1||K>99)K=1;if(t!="display attribute field")B[K-1]=p;A=a["display attribute field"];F=false;if(A!=null&&!pui.p(A)&&A!=""&&A!=" "){B=B.concat(pui.wr(A));
356
- F=true}Qc(c,B,F)}if(b.type=="js"){b=null;if(pui.$b(e))b=function(X){if(!c.La)if(c.G=="true"||c.G=="send data")pui.G=c.G;pui.runLogic(e.routine,c.o,c.Yj);if(!X)X=window.event;X&&X.stopPropagation&&X.stopPropagation()};else if(t=="ontabclick")b=function(){eval("var tab = arguments[0];");try{return eval(e)}catch(X){pui.Ea(X,t.substr(0,1).toUpperCase()+t.substr(1)+" Error:\n")}};else if(t=="onoptionclick")b=function(){eval("var value = arguments[0];");eval("var text = arguments[1];");try{eval(e)}catch(X){pui.Ea(X,
357
- t.substr(0,1).toUpperCase()+t.substr(1)+" Error:\n")}};else if(t=="onprompt")b=function(){eval("var value = arguments[0];");try{eval(e)}catch(X){pui.Ea(X,t.substr(0,1).toUpperCase()+t.substr(1)+" Error:\n")}};else if(t=="onspin")b=function(){eval("var value = arguments[0];");eval("var increment = arguments[1];");eval("var spinner = arguments[2];");eval("var newValue = arguments[3];");eval("var row;");l!=null&&eval("row = "+l+";");eval("var rrn;");l!=null&&eval("rrn = "+l+";");eval("var rowNumber;");
358
- c.Vb!=null&&eval("rowNumber = "+(c.Vb+1)+";");try{return eval(e)}catch(X){pui.Ea(X,t.substr(0,1).toUpperCase()+t.substr(1)+" Error:\n")}};else if(t=="onchartclick")b=function(X){eval("var name = arguments[0];");if(typeof name=="object"){eval("var category = name.category");eval("var name = name.name")}try{var y=eval(e);typeof y=="function"&&y(X)}catch(ea){pui.Ea(ea,t.substr(0,1).toUpperCase()+t.substr(1)+" Error:\n")}};else if(t=="onoptiondisplay")b=function(){arguments.length>=1&&eval("var row = "+
356
+ F=true}Qc(c,B,F)}if(b.type=="js"){b=null;if(pui.$b(e))b=function(W){if(!c.La)if(c.G=="true"||c.G=="send data")pui.G=c.G;pui.runLogic(e.routine,c.o,c.Yj);if(!W)W=window.event;W&&W.stopPropagation&&W.stopPropagation()};else if(t=="ontabclick")b=function(){eval("var tab = arguments[0];");try{return eval(e)}catch(W){pui.Ea(W,t.substr(0,1).toUpperCase()+t.substr(1)+" Error:\n")}};else if(t=="onoptionclick")b=function(){eval("var value = arguments[0];");eval("var text = arguments[1];");try{eval(e)}catch(W){pui.Ea(W,
357
+ t.substr(0,1).toUpperCase()+t.substr(1)+" Error:\n")}};else if(t=="onprompt")b=function(){eval("var value = arguments[0];");try{eval(e)}catch(W){pui.Ea(W,t.substr(0,1).toUpperCase()+t.substr(1)+" Error:\n")}};else if(t=="onspin")b=function(){eval("var value = arguments[0];");eval("var increment = arguments[1];");eval("var spinner = arguments[2];");eval("var newValue = arguments[3];");eval("var row;");l!=null&&eval("row = "+l+";");eval("var rrn;");l!=null&&eval("rrn = "+l+";");eval("var rowNumber;");
358
+ c.Vb!=null&&eval("rowNumber = "+(c.Vb+1)+";");try{return eval(e)}catch(W){pui.Ea(W,t.substr(0,1).toUpperCase()+t.substr(1)+" Error:\n")}};else if(t=="onchartclick")b=function(W){eval("var name = arguments[0];");if(typeof name=="object"){eval("var category = name.category");eval("var name = name.name")}try{var y=eval(e);typeof y=="function"&&y(W)}catch(ea){pui.Ea(ea,t.substr(0,1).toUpperCase()+t.substr(1)+" Error:\n")}};else if(t=="onoptiondisplay")b=function(){arguments.length>=1&&eval("var row = "+
359
359
  arguments[0]+";");arguments.length>=2&&eval("var rrn = "+arguments[1]+";");arguments.length>=3&&eval("var rowNumber = "+arguments[2]+";");arguments.length>=4&&eval("var column = "+arguments[3]+";");if(arguments.length>=5){pui.temp_value=arguments[4];eval("var grid = pui.temp_value;")}eval("var choices;");if(c.comboBoxWidget!=null&&c.comboBoxWidget.choices!=null){pui.temp_value=c.comboBoxWidget.choices;eval("choices = pui.temp_value.slice(0);")}if(c.v!=null&&c.v.choices!=null){pui.temp_value=c.v.choices;
360
- eval("choices = pui.temp_value.slice(0);")}eval("var values;");if(c.comboBoxWidget!=null&&c.comboBoxWidget["choice values"]!=null){pui.temp_value=c.comboBoxWidget["choice values"];eval("values = pui.temp_value.slice(0);")}if(c.v!=null&&c.v.me!=null){pui.temp_value=c.v.me;eval("values = pui.temp_value.slice(0);")}try{var X=eval(e);typeof X=="function"&&X()}catch(y){pui.Ea(y,t.substr(0,1).toUpperCase()+t.substr(1)+" Error:\n")}if(c.comboBoxWidget!=null&&c.comboBoxWidget.choices!=null){eval("pui.temp_value = choices;");
361
- c.comboBoxWidget.choices=pui.temp_value.slice(0)}if(c.v!=null&&c.v.choices!=null){eval("pui.temp_value = choices;");c.v.choices=pui.temp_value.slice(0)}if(c.comboBoxWidget!=null&&c.comboBoxWidget["choice values"]!=null){eval("pui.temp_value = values;");c.comboBoxWidget["choice values"]=pui.temp_value.slice(0)}if(c.v!=null&&c.v.me!=null){eval("pui.temp_value = values;");c.v.me=pui.temp_value.slice(0)}};else if(t!="onselect"&&t!="ondragstart")b=function(X){if(pui.fj==null)if(!(c.getAttribute!=null&&
362
- c.getAttribute("disabled")=="true"||c.disabled!=null&&c.disabled==true)){if(c.G=="true"||c.G=="send data")pui.G=c.G;eval("var row;");l!=null&&eval("row = "+l+";");eval("var rrn;");l!=null&&eval("rrn = "+l+";");eval("var rowNumber;");c.Vb!=null&&eval("rowNumber = "+(c.Vb+1)+";");pui.temp_event=X;eval("var event = pui.temp_event;");try{var y=eval(e);if(typeof y=="function"){if(!X)X=window.event;y(X,this)}}catch(ea){pui.Ea(ea,t.substr(0,1).toUpperCase()+t.substr(1)+" Error:\n")}}};if(!f&&b!=null){c[t]=
360
+ eval("choices = pui.temp_value.slice(0);")}eval("var values;");if(c.comboBoxWidget!=null&&c.comboBoxWidget["choice values"]!=null){pui.temp_value=c.comboBoxWidget["choice values"];eval("values = pui.temp_value.slice(0);")}if(c.v!=null&&c.v.me!=null){pui.temp_value=c.v.me;eval("values = pui.temp_value.slice(0);")}try{var W=eval(e);typeof W=="function"&&W()}catch(y){pui.Ea(y,t.substr(0,1).toUpperCase()+t.substr(1)+" Error:\n")}if(c.comboBoxWidget!=null&&c.comboBoxWidget.choices!=null){eval("pui.temp_value = choices;");
361
+ c.comboBoxWidget.choices=pui.temp_value.slice(0)}if(c.v!=null&&c.v.choices!=null){eval("pui.temp_value = choices;");c.v.choices=pui.temp_value.slice(0)}if(c.comboBoxWidget!=null&&c.comboBoxWidget["choice values"]!=null){eval("pui.temp_value = values;");c.comboBoxWidget["choice values"]=pui.temp_value.slice(0)}if(c.v!=null&&c.v.me!=null){eval("pui.temp_value = values;");c.v.me=pui.temp_value.slice(0)}};else if(t!="onselect"&&t!="ondragstart")b=function(W){if(pui.fj==null)if(!(c.getAttribute!=null&&
362
+ c.getAttribute("disabled")=="true"||c.disabled!=null&&c.disabled==true)){if(c.G=="true"||c.G=="send data")pui.G=c.G;eval("var row;");l!=null&&eval("row = "+l+";");eval("var rrn;");l!=null&&eval("rrn = "+l+";");eval("var rowNumber;");c.Vb!=null&&eval("rowNumber = "+(c.Vb+1)+";");pui.temp_event=W;eval("var event = pui.temp_event;");try{var y=eval(e);if(typeof y=="function"){if(!W)W=window.event;y(W,this)}}catch(ea){pui.Ea(ea,t.substr(0,1).toUpperCase()+t.substr(1)+" Error:\n")}}};if(!f&&b!=null){c[t]=
363
363
  b;c.comboBoxWidget!=null&&t!="onselect"&&t!="onoptiondisplay"&&c.comboBoxWidget.xn(t,b);c.l!=null&&t!="onselect"&&t!="onoptiondisplay"&&c.l.xn(t,b)}}if(f){if(e!=""||a[t]!=null)a[t]=e;h.pb[t]=true;if(t=="field type"||t=="left"||t=="right"||t=="top"||t=="bottom"||t=="z index"||t=="visibility"||t=="height"||t=="width"||t=="label"||t=="color"||t=="font family"||t=="font size"||t=="font style"||t=="font weight")h.mh();h.Eg();g!=null&&g.tj();if(P=="dspf"){if(t=="id"){pui.ide.uA();pui.ide.vA()}if(t=="id"||
364
- t=="field type"||t=="value")pui.ide.Lt();if(!h.Df&&o!==true){h.designer.fp();pui.ide.refreshRibbon()}}}B=s.qc;A=s.Gv;F=null;if(A!=null)F=A[t];if(F!=null||B!=null)N=new pui.Pm(e,p,f,a,r,n,c,t,h,g);B!=null&&B(N);F!=null&&F(N);return n}pui.Pm=function(b,a,c,e,f,h,g,l,o,n){this.newValue=b;this.value=a;this.design=c;this.properties=e;this.originalValue=f;this.dom=h;this.za=g;this.propertyName=l;this.e=o;this.Ut=n};
364
+ t=="field type"||t=="value")pui.ide.Lt();if(!h.Df&&o!==true){h.designer.fp();pui.ide.refreshRibbon()}}}B=s.qc;A=s.Gv;F=null;if(A!=null)F=A[t];if(F!=null||B!=null)Q=new pui.Pm(e,p,f,a,r,n,c,t,h,g);B!=null&&B(Q);F!=null&&F(Q);return n}pui.Pm=function(b,a,c,e,f,h,g,l,o,n){this.newValue=b;this.value=a;this.design=c;this.properties=e;this.originalValue=f;this.dom=h;this.za=g;this.propertyName=l;this.e=o;this.Ut=n};
365
365
  pui.Pm.prototype.evalProperty=function(b){return $b(this.properties[b],this.originalValue,this.dom)};
366
366
  function Qc(b,a,c){function e(t){return t=="BLU"||t=="GRN"||t=="PNK"||t=="RED"||t=="TRQ"||t=="WHT"||t=="YLW"}for(var f=[],h=false,g=[],l=false,o=null,n=0;n<a.length;n++){var r=false;if(c&&n==a.length-1)r=true;var p=a[n];if(!(p==null||p=="")){if(e(p)){if(l&&!r)continue;if(l){if(r&&o!=null){f[o]=p;continue}}else{l=true;o=f.length}}f.push(p);if(p=="PR"||p=="PR-UL"){b.readOnly=true;b.tabIndex="-1";if(b.tagName=="SELECT"&&!Eb())b.disabled=true;if(b.comboBoxWidget!=null){r=b.comboBoxWidget.getBox();r.readOnly=
367
367
  true;if(!Eb())r.disabled=true;r.tabIndex="-1"}if(b.l!=null){r=b.l.getBox();r.readOnly=true;r.disabled=true;r.tabIndex="-1"}}if(p=="RI")h=true;if(e(p)||p=="HI")g.push(p)}}if(h)for(n=0;n<g.length;n++)f.push("RI-"+g[n]);a=f.join(" ");b.setAttribute("class",a);b.className=a}
@@ -373,16 +373,16 @@ pui.fr=function(b,a,c){if(b.pui.bd&&b.pui.bd!==null)for(var e in b.pui.bd)b.styl
373
373
  pui.gy=function(b){if(!(typeof b.pui.bd!=="object"||b.pui.bd===null)){for(var a in b.pui.bd)b.style[a]="";b.pui.bd=null;if(b.pui.Eb&&b.pui.Eb!==null)for(a in b.pui.Eb)b.style[a]=b.pui.Eb[a];else b.pui.Eb={}}};pui.Dk=function(b,a,c){if(!b.pui.Eb||b.pui.Eb===null)b.pui.Eb={};if(pui.ie(pui.Vt,a)<0)b.pui.Eb[a]=c};
374
374
  pui.Cp=function(b,a){typeof b.pui.Eb!="undefined"&&b.pui.Eb[a]!="undefined"&&delete b.pui.Eb[a];if(typeof b.pui.bd==="object"||b.pui.bd!==null)for(var c in b.pui.bd)b.style[c]=b.pui.bd[c];for(c in b.pui.Eb)b.style[c]=b.pui.Eb[c]};pui.ps=function(){var b=[],a=pui.getDatabaseConnections();if(a)b=a.map(function(c){return c.name});b.push("Other...");return b};pui.getPropertiesModel=Hc;pui.getPropertiesNamedModel=Dc;function Rc(b){if(typeof b=="string")b=Bb(b);if(b!=null)b.style.visibility="hidden"}function Sc(){for(var b=0;b<Sc.arguments.length;b++)Rc(Sc.arguments[b])}function Tc(b){if(typeof b=="string")b=Bb(b);b!=null&&b.parentNode.removeChild(b)}function Uc(){for(var b=0;b<Uc.arguments.length;b++)Tc(Uc.arguments[b])}
375
375
  function Vc(b,a){var c,e;c=b!=null&&typeof b=="object"?b:document.getElementById(b);if(c==null)return"";e="";if(c.tagName.toLowerCase()=="div"){e=c.firstChild;e=e!=null&&e.tagName!=null&&e.tagName=="A"?e.innerHTML:c.innerHTML}if(c.tagName=="INPUT"&&c.type=="checkbox"){if(c.indeterminate===true)return c.indeterminateValue;if(c.checked&&c.checkedValue!=null)return c.checkedValue;if(!c.checked&&c.uncheckedValue!=null)return c.uncheckedValue;return c.checked}if(c.tagName=="INPUT"&&c.type=="radio")return c.checked;
376
- if(c.tagName=="TEXTAREA")e=c.value;else if(c.tagName=="INPUT"){var f=c.Ed;if(a&&f!=null&&typeof f.value==="string")if(f.value.length>0)e=c.Ed.value;else{if(pui["force auto complete match"]==false)e=c.value}else e=c.value}else if(c.tagName=="SELECT"){e=c.selectedIndex;e=e>=0?c.options[e].value:c.pui&&c.pui.properties&&c.pui.properties.value?c.pui.properties.value:c.value}if(c.comboBoxWidget!=null)e=c.comboBoxWidget.getValue();if(c.l!=null)e=c.l.getValue();if(c.signaturePad!=null)e=c.signaturePad.getValue();
377
- if(c.U!=null)e=String(c.value);if(c.M!=null){e="";if(c.M.Kd&&c.M.Dh!=null)e=c.M.Dh;else if(!c.M.Kd&&c.M.Ch!=null)e=c.M.Ch}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 Wc(b,a){return Lb(Vc(b,a))}function Bb(b){return document.getElementById(b)}
376
+ if(c.tagName=="TEXTAREA")e=c.value;else if(c.tagName=="INPUT"){var f=c.Dd;if(a&&f!=null&&typeof f.value==="string")if(f.value.length>0)e=c.Dd.value;else{if(pui["force auto complete match"]==false)e=c.value}else e=c.value}else if(c.tagName=="SELECT"){e=c.selectedIndex;e=e>=0?c.options[e].value:c.pui&&c.pui.properties&&c.pui.properties.value?c.pui.properties.value:c.value}if(c.comboBoxWidget!=null)e=c.comboBoxWidget.getValue();if(c.l!=null)e=c.l.getValue();if(c.signaturePad!=null)e=c.signaturePad.getValue();
377
+ if(c.U!=null)e=String(c.value);if(c.M!=null){e="";if(c.M.Jd&&c.M.Dh!=null)e=c.M.Dh;else if(!c.M.Jd&&c.M.Ch!=null)e=c.M.Ch}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 Wc(b,a){return Lb(Vc(b,a))}function Bb(b){return document.getElementById(b)}
378
378
  function Xc(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!=
379
- null&&a==c.checkedValue?true:false;else{P=="genie"&&a!=c.value&&pui.F.iA(c);c.value=a;if(c.Ed!=null)c.Ed.value=a}if(P=="dspf"||pui.fa&&c.B==null){c.modified=true;pui.Re(c);var e=c.H;if(c.id!=null&&c.id.indexOf(".")==-1&&c.mc!=null)pui.kf[c.mc]=true;if(e!=null){e.hide();e.ja=true;pui.da(c,e.ug())}}if(P=="genie"&&c.B!=null&&c.B.idx!=null)pui.response[c.B.idx]=c;pui.le(c);if(c.pui&&c.pui.properties)c.pui.properties.value=a}}
379
+ null&&a==c.checkedValue?true:false;else{P=="genie"&&a!=c.value&&pui.F.iA(c);c.value=a;if(c.Dd!=null)c.Dd.value=a}if(P=="dspf"||pui.fa&&c.B==null){c.modified=true;pui.Re(c);var e=c.H;if(c.id!=null&&c.id.indexOf(".")==-1&&c.mc!=null)pui.kf[c.mc]=true;if(e!=null){e.hide();e.ja=true;pui.da(c,e.ug())}}if(P=="genie"&&c.B!=null&&c.B.idx!=null)pui.response[c.B.idx]=c;pui.le(c);if(c.pui&&c.pui.properties)c.pui.properties.value=a}}
380
380
  function Yc(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.wl+Ia+"px";h.style.left=a*pui.vl+"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.pt())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=
381
- "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",wb)}else{P=="genie"&&document.getElementById(Da).appendChild(h);P=="dspf"&&pui.runtimeContainer.appendChild(h)}return h}function vb(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 Zc={};
381
+ "55px";break;case "img":h.src=e;break}if(f!=null)h.id=f;if(c=="input"){document.forms.main.appendChild(h);S(h,"keydown",wb)}else{P=="genie"&&document.getElementById(Da).appendChild(h);P=="dspf"&&pui.runtimeContainer.appendChild(h)}return h}function vb(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 Zc={};
382
382
  function Ub(b){if(typeof b!=="string")return b;for(;b.charAt(0)==" ";)b=b.replace(b.charAt(0),"");return b}function Pb(b){if(typeof b!=="string")return b;for(;b.charAt(b.length-1)==" ";)b=b.substring(0,b.length-1);return b}function Lb(b){if(typeof b!=="string")return b;return b.replace(/^\s*|\s*$/g,"")}pui.detachCalendar=function(b){if(typeof b=="string")b=Bb(b);b!=null&&pui.Dp(b)};
383
383
  function Yb(b,a){var c;try{c=document.createElement("<"+b+' name="'+a+'">')}catch(e){c=document.createElement(b);c.name=a}return c}function Oc(b){if(typeof b=="string")b=Bb(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}
384
384
  function Wb(b,a,c){var e=false,f=location.href;f=f.split("?")[0];f=f.split("/");if(f.length>2&&f[f.length-2].toLowerCase()=="auth")e=true;f="/profoundui/";var h=["PUI0009101.PGM","PUI0009102.PGM","PUI0009103.PGM","PUI0009104.PGM","PUI0009107.PGM","PUI0009109.PGM","PUI0009110.PGM","PUI0009119.PGM"];if(typeof pui.widgetURLPrefix==="string"&&h.indexOf(b.toUpperCase())!=-1){f=pui.widgetURLPrefix;if(f.substr(f.length-1)!="/")f+="/"}if(e==true||c==true)f+="auth/";f+=b;if(a!=null&&a==true)f+="/"+PSID;if(pui.serverURL!=
385
- null)f=pui.serverURL+f;return f}pui.getProgramURL=Wb;function T(b,a,c){if(b.addEventListener)b.addEventListener(a,c,false);else b.attachEvent&&b.attachEvent("on"+a,c)}function ac(b,a,c){if(b.removeEventListener)b.removeEventListener(a,c,false);else b.detachEvent&&b.detachEvent("on"+a,c)}
385
+ null)f=pui.serverURL+f;return f}pui.getProgramURL=Wb;function S(b,a,c){if(b.addEventListener)b.addEventListener(a,c,false);else b.attachEvent&&b.attachEvent("on"+a,c)}function ac(b,a,c){if(b.removeEventListener)b.removeEventListener(a,c,false);else b.detachEvent&&b.detachEvent("on"+a,c)}
386
386
  function $c(b){if(b!=null&&b.touches!=null&&b.touches.length==1)return b.touches[0].pageX;var a=0;if(window.event!=null){if(window.event.clientX!=null)a+=window.event.clientX;if(document.documentElement!=null&&document.documentElement.scrollLeft!=null)a+=document.documentElement.scrollLeft;if(document.body!=null&&document.body.scrollLeft!=null)a+=document.body.scrollLeft}else if(b!=null){if(b.clientX!=null)a+=b.clientX;if(b.scrollX!=null)a+=b.scrollX}return a}
387
387
  function ad(b){if(b!=null&&b.touches!=null&&b.touches.length==1)return b.touches[0].pageY;var a=0;if(window.event!=null){if(window.event.clientY!=null)a+=window.event.clientY;if(document.documentElement!=null&&document.documentElement.scrollTop!=null)a+=document.documentElement.scrollTop;if(document.body!=null&&document.body.scrollTop!=null)a+=document.body.scrollTop}else if(b!=null){if(b.clientY!=null)a+=b.clientY;if(b.scrollY!=null)a+=b.scrollY}return a}pui.Bo=function(b){return pui.vg(b).x};
388
388
  pui.us=function(b){return pui.vg(b).y};pui.vg=function(b){b=b||window.event;var a={x:0,y:0};if(b!=null&&b.touches!=null&&b.touches.length==1){a.x=b.touches[0].pageX;a.y=b.touches[0].pageY}else if(b!=null){if(b.pageX)a.x=b.pageX;else if(b.clientX)a.x=b.clientX+(document.documentElement.scrollLeft?document.documentElement.scrollLeft:document.body.scrollLeft);if(b.pageY)a.y=b.pageY;else if(b.clientY)a.y=b.clientY+(document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop)}return a};
@@ -392,8 +392,8 @@ b.charCodeAt(c+1);c3=b.charCodeAt(c+2);a+=String.fromCharCode((e&15)<<12|(c2&63)
392
392
  pui.vq={cf:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(b){var a="",c,e,f,h,g,l,o=0;for(b=pui.ei.encode(b);o<b.length;){c=b.charCodeAt(o++);e=b.charCodeAt(o++);f=b.charCodeAt(o++);h=c>>2;c=(c&3)<<4|e>>4;g=(e&15)<<2|f>>6;l=f&63;if(isNaN(e))g=l=64;else if(isNaN(f))l=64;a=a+this.cf.charAt(h)+this.cf.charAt(c)+this.cf.charAt(g)+this.cf.charAt(l)}return a},decode:function(b){var a="",c,e,f,h,g,l=0;for(b=b.replace(/[^A-Za-z0-9\+\/\=]/g,"");l<b.length;){c=this.cf.indexOf(b.charAt(l++));
393
393
  e=this.cf.indexOf(b.charAt(l++));h=this.cf.indexOf(b.charAt(l++));g=this.cf.indexOf(b.charAt(l++));c=c<<2|e>>4;e=(e&15)<<4|h>>2;f=(h&3)<<6|g;a+=String.fromCharCode(c);if(h!=64)a+=String.fromCharCode(e);if(g!=64)a+=String.fromCharCode(f)}return a=pui.ei.decode(a)}};
394
394
  pui.downloadJSON=function(){if(pui.yj)pui.ty();else if(pui.savedJSON==null)pui.alert("JSON is not available.");else{var b=pui.savedJSON;if(typeof JSON==="object"&&typeof JSON.parse==="function"&&typeof JSON.stringify==="function")try{b=JSON.stringify(JSON.parse(pui.savedJSON),null," ")}catch(a){}pui.Pk("text/plain","json.txt",b)}};
395
- pui.keepAlive=function(){var b;if(!(P=="genie"&&pui.F.Id==true)){if(P=="dspf")b=pui.F==null?Wb("PUI0001200.pgm"):Wb("PUI0002110.pgm");else if(P=="genie")b=DOCUMENT_URI;else return false;if(pui.psid!=null&&pui.psid!="")b+="/"+pui.psid;if(pui.overrideSubmitUrl!=null&&typeof pui.overrideSubmitUrl=="function")try{b=pui.overrideSubmitUrl(b)}catch(a){}if(P=="genie")pui.Zj(pui.F.Id=true);if(P=="dspf")pui.Nb=false;pui.Ne();var c={keepalive:"1"};if(pui.isCloud)c.workspace_id=pui.cloud.ws.id;Xb({url:pui.jg(b),
396
- method:"post",params:c,sendAsBinary:false,suppressAlert:true,handler:function(){pui.Zb();if(P=="genie")pui.Zj(pui.F.Id=false);if(P=="dspf")pui.Nb=true;for(var e=0;e<pui.Va.length;e++)pui.Va[e].unMask()},onfail:function(e){pui.onoffline==null&&!pui["suppress comm errors"]&&pui.alert(pui.Ki(e));pui.Zb();if(P=="genie")pui.Zj(pui.F.Id=false);if(P=="dspf")pui.Nb=true;for(e=0;e<pui.Va.length;e++)pui.Va[e].unMask();pui.onoffline!=null&&pui.onoffline()}});return true}};
395
+ pui.keepAlive=function(){var b;if(!(P=="genie"&&pui.F.Hd==true)){if(P=="dspf")b=pui.F==null?Wb("PUI0001200.pgm"):Wb("PUI0002110.pgm");else if(P=="genie")b=DOCUMENT_URI;else return false;if(pui.psid!=null&&pui.psid!="")b+="/"+pui.psid;if(pui.overrideSubmitUrl!=null&&typeof pui.overrideSubmitUrl=="function")try{b=pui.overrideSubmitUrl(b)}catch(a){}if(P=="genie")pui.Zj(pui.F.Hd=true);if(P=="dspf")pui.Nb=false;pui.Ne();var c={keepalive:"1"};if(pui.isCloud)c.workspace_id=pui.cloud.ws.id;Xb({url:pui.jg(b),
396
+ method:"post",params:c,sendAsBinary:false,suppressAlert:true,handler:function(){pui.Zb();if(P=="genie")pui.Zj(pui.F.Hd=false);if(P=="dspf")pui.Nb=true;for(var e=0;e<pui.Va.length;e++)pui.Va[e].unMask()},onfail:function(e){pui.onoffline==null&&!pui["suppress comm errors"]&&pui.alert(pui.Ki(e));pui.Zb();if(P=="genie")pui.Zj(pui.F.Hd=false);if(P=="dspf")pui.Nb=true;for(e=0;e<pui.Va.length;e++)pui.Va[e].unMask();pui.onoffline!=null&&pui.onoffline()}});return true}};
397
397
  pui.getWindowSize=function(){var b,a;if(document.body&&document.body.offsetWidth){b=document.body.offsetWidth;a=document.body.offsetHeight}if(document.compatMode=="CSS1Compat"&&document.documentElement&&document.documentElement.offsetWidth){b=document.documentElement.offsetWidth;a=document.documentElement.offsetHeight}if(window.innerWidth&&window.innerHeight){b=window.innerWidth;a=window.innerHeight}if(window.visualViewport&&window.visualViewport.width&&window.visualViewport.height){b=window.visualViewport.width;
398
398
  a=window.visualViewport.height}if(document.documentElement&&document.documentElement.clientWidth){b=document.documentElement.clientWidth;a=document.documentElement.clientHeight}if(b==null&&screen!=null)b=screen.width;if(a==null&&screen!=null)a=screen.height;if(b==null)b=800;if(a==null)a=600;return{width:b,height:a}};pui.openURL=function(b){window.open(b)};
399
399
  pui.normalizeURL=function(b,a){if(b==null||typeof b!="string")return"";if(a==true&&window.puiMobileClient==null)return b;if(b.substr(0,5).toLowerCase()=="http:"||b.substr(0,6).toLowerCase()=="https:"||b.substr(0,5).toLowerCase()=="data:")return b;return pui.serverURL!=null?pui.serverURL+b:window.cordova&&b.substr(0,1)=="/"?b.substr(1):b};
@@ -438,21 +438,21 @@ typeof B.error==="string"&&B.error.length>0)throw Error("PCCMD crypt error: "+St
438
438
  var g=1,l=false;if(pui["use pc listener"])g=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==
439
439
  0){var o=document.getElementById("PCCommandApplet");if(!o){pui.qr=b;ed("runCommandCb");return}}var n=[],r=0;n=typeof b=="string"?[{command:b,wait:false}]:b;b=parseInt(pui["pc listener port"],10);if(isNaN(b))b="80";var p="http://localhost:"+b+"/",t="",s,w,A={url:Wb("PUI0009117.pgm"),method:"post",params:{auth:pui.appJob&&pui.appJob.auth?pui.appJob.auth:""},async:true};a()}window.runCommandCb=function(){dd(pui.qr);pui.qr=null};pui.runPCCommand=dd;
440
440
  function Vb(b,a){if(a!=null&&typeof a!="string"&&a==true)setTimeout(function(){Vb(b)},0);else if(P=="dspf"){var c=Yc("button");c.id="puiKeyButton";c.style.display="none";applyProperty("puiKeyButton","shortcut key",b);pui.click("puiKeyButton")}else if(arguments.length>1){c=[];for(var e=0;e<arguments.length;e++)c[e]="pressKey('"+arguments[e]+"')";multiStepAction(c)}else if(b.substr(0,6)=="option"){c=b.substr(6);selectOption(c)}else{c=getKeyNameFromDesc(b);c!=""&&pressKeyUsingHexName(c)}}
441
- pui.isServerBusy=function(){if(typeof P=="undefined")return false;if(P=="dspf"&&pui.Nb===false||P=="genie"&&pui.F.Id===true)return true;for(var b=document.getElementsByTagName("iframe"),a=0;a<b.length;a++){var c=b[a].contentWindow;if(c!=null){var e=null;try{e=c.pui}catch(f){}if(e!=null)if(typeof e==="object")if(typeof e.isServerBusy==="function")if(e.isServerBusy())return true}}return false};
441
+ pui.isServerBusy=function(){if(typeof P=="undefined")return false;if(P=="dspf"&&pui.Nb===false||P=="genie"&&pui.F.Hd===true)return true;for(var b=document.getElementsByTagName("iframe"),a=0;a<b.length;a++){var c=b[a].contentWindow;if(c!=null){var e=null;try{e=c.pui}catch(f){}if(e!=null)if(typeof e==="object")if(typeof e.isServerBusy==="function")if(e.isServerBusy())return true}}return false};
442
442
  pui.showLastError=function(){if(Ua.length==0)alert("No errors have been reported.");else{var b=Ua.length-1;alert("Operation: "+Ua[b].Fl+"\nId: "+Ua[b].id+"\n\nMessage: "+Ua[b].text+"\n"+Ua[b].um)}};
443
- pui.editCode=function(b,a){function c(R,N){var M=["","","","nn/n","nn/nn","nn/nn/n","nn/nn/nn","nnn/nn/nn","nn/nn/nnnn","nnn/nn/nnnn"];if(l.dateEdit==="*ymd"){M[8]="nnnn/nn/nn";M[9]="nnnnn/nn/nn"}M=M[E];R=String(R);R=R.replace(".","");R=R.replace(",","");R=R.replace("-","");R="0000000000"+R;R=R.substr(R.length-N);var W="/";if(l.dateEditSeparator!=null)W=l.dateEditSeparator;for(var Q=false,ha=0,Y="",X=0;X<M.length;X++){var y=M.substr(X,1),ea=M.substr(X+1,1);if(y==="/"||ea==="/")Q=true;if(y==="/")y=
444
- W;else{y=R.substr(ha,1);ha+=1;if(y==="0")Q||(y=" ");else Q=true}Y+=y}return Y}function e(R,N,M){for(R+="";R.length<N;)R+=M;return R}var f=null,h=0,g=null,l={},o=2;if(typeof arguments[o]==="number"){f=arguments[o];o++;if(typeof arguments[o]==="number"){h=arguments[o];o++}}if(typeof arguments[o]==="string"){g=arguments[o];o++}if(typeof arguments[o]==="object"){l=arguments[o];o++}var n=false;if(g==="*astfill"){n=true;g=null}var r=false,p=null,t=false,s=o=false;o=" ";if(pui.appJob&&typeof pui.appJob.decimalFormat===
443
+ pui.editCode=function(b,a){function c(L,Q){var N=["","","","nn/n","nn/nn","nn/nn/n","nn/nn/nn","nnn/nn/nn","nn/nn/nnnn","nnn/nn/nnnn"];if(l.dateEdit==="*ymd"){N[8]="nnnn/nn/nn";N[9]="nnnnn/nn/nn"}N=N[E];L=String(L);L=L.replace(".","");L=L.replace(",","");L=L.replace("-","");L="0000000000"+L;L=L.substr(L.length-Q);var X="/";if(l.dateEditSeparator!=null)X=l.dateEditSeparator;for(var T=false,ia=0,ca="",W=0;W<N.length;W++){var y=N.substr(W,1),ea=N.substr(W+1,1);if(y==="/"||ea==="/")T=true;if(y==="/")y=
444
+ X;else{y=L.substr(ia,1);ia+=1;if(y==="0")T||(y=" ");else T=true}ca+=y}return ca}function e(L,Q,N){for(L+="";L.length<Q;)L+=N;return L}var f=null,h=0,g=null,l={},o=2;if(typeof arguments[o]==="number"){f=arguments[o];o++;if(typeof arguments[o]==="number"){h=arguments[o];o++}}if(typeof arguments[o]==="string"){g=arguments[o];o++}if(typeof arguments[o]==="object"){l=arguments[o];o++}var n=false;if(g==="*astfill"){n=true;g=null}var r=false,p=null,t=false,s=o=false;o=" ";if(pui.appJob&&typeof pui.appJob.decimalFormat===
445
445
  "string")o=pui.appJob.decimalFormat;var w=o==="I"||o==="J",A=o==="J";if(l.decimalEdit!=null){w=l.decimalEdit===","||l.decimalEdit==="0,";A=l.decimalEdit==="0."||l.decimalEdit==="0,"}if(a>="1"&&a<="4")p="999.00";if(a>="A"&&a<="D")p="999.00CR";if(a>="J"&&a<="M")p="999.00-";if(a>="N"&&a<="Q")p="-999.00";if(a=="1"||a=="A"||a=="J"||a=="N"||a=="2"||a=="B"||a=="K"||a=="O")t=true;o=a=="1"||a=="A"||a=="J"||a=="N"||a=="3"||a=="C"||a=="L"||a=="P"?true:false;if(a=="Z")p="999.00";if(a==="X"||a==="Z")s=true;if(a===
446
446
  "X")r=true;a>="5"&&a<="9"&&pui.alert("User-defined edit code not supported: "+a+".");a>="1"&&a<="9"||a>="A"&&a<="D"||a>="J"&&a<="Q"||a>="X"&&a<="Z"||pui.alert("Invalid edit code: "+a+".");var B=(b||0)+"",G=parseFloat(B,10)||0,F;F=B.replace(/\..*/,"");if(F==="-0")F="-";if((F==""||F=="-")&&A)F="0";var D;D=B;if(D.indexOf(".")==-1)D+=".";D=D.replace(/.*\./,"");var E=F.length;if(E<3)E=3;var C=D.length;if(typeof f==="number")E=f;if(typeof h==="number")C=h;if(a=="Y"){if(E<3||E>9)pui.alert("Length not valid for edit code Y.");
447
447
  return c(G,E)}f=".";if(w)f=",";if(s)f="";if(C>0){D=e(D,C,"0");if(F==="0"&&!A)F="";B=F+f+D}var K=" ";if(r)K="0";if(n)K="*";if(t){for(h=/(\d+)(\d{3})/;h.test(F);)F=F.replace(h,"$1"+(w?".":",")+"$2");B=F+(C>0?f+D:"");w=E-C-1;w=w>=0?w:0}w=G<0;B=B.replace(/-/g,"");if(p==="(999.00)"){if(w)B="("+B+")"}else if(p==="999.00-")B+=w?"-":" ";else if(p==="999.00CR")B+=w?"CR":" ";else if(p==="-999.00")if(w)B="-"+B;if(g)B=g=="EUR"?B+" EUR":g=="$"?B.substr(0,1)=="-"?"-"+g+B.substr(1):g+B:g+B;if(!o)if(G===0)B="";
448
- (function(){var R=E;R+=C&&!s?1:0;if(t)R+=parseInt((E-C-1)/3);if(p==="999.00CR")R+=2;if(p==="999.00-")R+=1;if(p==="-999.00")R+=1;if(typeof g==="string")R+=g.length;var N=B;for(N+="";N.length<R;)N=K+N;B=N})();return B};
448
+ (function(){var L=E;L+=C&&!s?1:0;if(t)L+=parseInt((E-C-1)/3);if(p==="999.00CR")L+=2;if(p==="999.00-")L+=1;if(p==="-999.00")L+=1;if(typeof g==="string")L+=g.length;var Q=B;for(Q+="";Q.length<L;)Q=K+Q;B=Q})();return B};
449
449
  pui.editWord=function(b,a,c){function e(){if(A.length>0){var F=A.substr(A.length-1,1);A=A.substr(0,A.length-1);if(F=="0"&&A.length==0&&G)F=B?"*":" "}else{F="0";if(G)F=" ";if(B)F="*"}return F}b=String(b);var f={};if(typeof c==="object")f=c;c="$";if(f.currencySymbol!=null)c=f.currencySymbol;var h=a.indexOf("0")+1,g=a.indexOf("*")+1;if(h==0||g!=0&&g<h)h=g;for(var l=-1,o=a.length-1;o>=0;o-=1)if(o+1==h||a.substr(o,1)==" "){l=o;break}g=a.substr(0,l+1);var n="",r="",p=false,t=false,s=a.substr(l+1).indexOf("-")>=
450
450
  0||a.substr(l+1).indexOf("CR")>=0;for(o=l+1;o<a.length;o++){var w=a.substr(o,1);if(a.substr(o,2)=="CR"){t=true;o++}else if(w=="-")t=true;else if(w!="&")if(!(w=="*"&&!t))if(w.toUpperCase()>="A"&&w.toUpperCase()<="Z"&&s&&!t)a=a.substr(0,o)+" "+a.substr(o+1);else{n=a.substring(l+1,o);r=a.substr(o);p=true;break}}p||(n=a.substr(l+1));o=".";w=" ";if(pui.appJob&&typeof pui.appJob.decimalFormat==="string")w=pui.appJob.decimalFormat;if(typeof f.decimalFormat==="string")w=f.decimalFormat;if(w==="I"||w==="J")o=
451
451
  ",";f=0;o=g.split(o);if(o.length>1)f=o[1].replace(/[^ ]/g,"").length;var A;A=isNaN(Number(b))?"0":String(b);A=A.replace("-","");o=A.split(".");w=o[0];a="";l=null;if(o.length>1)a=o[1];if(l==null||isNaN(l))l=f;for(;a.length>l;)a=a.substr(0,a.length-1);for(;l>a.length;)a+="0";for(A=w+a;A.substr(0,1)=="0";)A=A.substr(1);f="";var B=l=false;var G=a=false;if(h==0)G=true;for(o=g.length-1;o>=0;o-=1){p=w=g.substr(o,1);if(w==" ")p=e();else if(w=="&")p=" ";else if(w=="0"&&o+1==h)p=e();else if(w=="*"){B=true;
452
452
  p=e()}else if(w==c){if(o+2==h){p=e();a=true}}else if(l){p=" ";if(B)p="*"}f=p+f;if(o<=h)G=true;if(G&&A.length==0)l=true}n=n.replace(/&/g," ");n=n.replace(/\*/g," ");if(b>=0){n=n.replace("CR"," ");n=n.replace("-"," ")}f=f+n+r;b=f.length-1;f=Ub(f);if(B&&f.substr(0,1)!="*")f="*"+f;if(a)f=c+f;c=0;if(f[f.length-1]==="-")c=1;for(;f.length<=b;)f=" "+f;return f};
453
453
  pui.getRadioGroupValue=function(b){if(typeof b!=="string")return null;if(typeof pui.O!=="object")return null;for(var a=null,c=bd(),e=c.length-1;e>=0;e--){var f=c[e].toUpperCase()+"."+b.toUpperCase();if(typeof pui.O[f]!=="undefined"){a=pui.O[f];break}}if(a==null)return null;b=null;for(c=0;c<a.length;c++){e=a[c];if(e.checked&&e.radioValue!=null){b=e.radioValue;break}}return b};if(typeof window.pui=="undefined")window.pui={};function ed(b){if(document.getElementById("PCCommandApplet")==null){var a=document.createElement("applet");a.id="PCCommandApplet";a.archive="/profoundui/proddata/applet/PCIntegration.jar";a.code="com.profoundlogic.genie.PCIntegration";a.style.height="0px";a.style.width="0px";if(typeof eval(b)=="function"){var c=document.createElement("param");c.setAttribute("name","callback");c.setAttribute("value",b);a.appendChild(c)}document.body.appendChild(a)}}
454
454
  window.copyToClipboardCb=function(){copyToClipboardCb(pui.pr);pui.pr=null};pui.help={};
455
- pui.help.show=function(){var b=pui.Pd.layers;if(b!=null){b=b[b.length-1].formats;if(b!=null)if(b.length!=0){for(var a=pui.r.record,c=b[0],e=0;e<b.length;e++)if(b[e].name==a){c=b[e];break}var f=c.metaData.screen;b=null;a=false;for(e=1;!a;){var h="";if(e>1)h=" "+String(e);if(f["help record"+h]==null&&f["help panel group"+h]==null)a=true;else{var g=f["help panel condition"+h];if(g!=null&&pui.p(g)){g=g.dataType=="expression"?pui.qo(g.fieldName,data):data[fieldName];if(g!="1"&&g!="true"&&g!=true){e++;
455
+ pui.help.show=function(){var b=pui.Od.layers;if(b!=null){b=b[b.length-1].formats;if(b!=null)if(b.length!=0){for(var a=pui.r.record,c=b[0],e=0;e<b.length;e++)if(b[e].name==a){c=b[e];break}var f=c.metaData.screen;b=null;a=false;for(e=1;!a;){var h="";if(e>1)h=" "+String(e);if(f["help record"+h]==null&&f["help panel group"+h]==null)a=true;else{var g=f["help panel condition"+h];if(g!=null&&pui.p(g)){g=g.dataType=="expression"?pui.qo(g.fieldName,data):data[fieldName];if(g!="1"&&g!="true"&&g!=true){e++;
456
456
  continue}}g=f["help area"+h];if(g==""||g==null){b=h;break}var l=g.split(" ");if(l.length==4){var o=Number(l[0]),n=Number(l[1]),r=Number(l[2]);l=Number(l[3]);var p=Number(pui.r.row),t=Number(pui.r.column);if(!isNaN(o)&&!isNaN(r)&&!isNaN(p)&&!isNaN(n)&&!isNaN(l)&&!isNaN(t))if(p>=o&&p<=r&&t>=n&&t<=l){b=h;break}}if(g==pui.r.oo){b=h;break}e++}}b==null&&pui.help.es(f);if(b!=null){if(f["help record"+b]!=null){a=f["help record"+b];e=f["help display file"];if(e==null){e=c.file;c=c.library;if(c==null||c=="")c=
457
457
  "*LIBL"}else{h=e.split("/");if(h.length==2){c=h[0];e=h[1]}else c="*LIBL"}pui.Ne();cc({url:Wb("PUI0009108.pgm"),method:"post",params:{record:a,library:c,file:e,AUTH:pui.appJob.auth},async:true,handler:function(s){pui.Zb();s.success==true?pui.help.jy(s.metaData):pui.help.error(s)}})}if(f["help panel group"+b]!=null){c=f["help panel group"+b];e=c.split("/");if(e.length==2){a=e[0];c=e[1]}else a="*LIBL";b=f["help module"+b];pui.Ne();cc({url:Wb("PUI0009108.pgm"),method:"post",params:{modules:"1",pgroup1:c,
458
458
  library1:a,module1:b,AUTH:pui.appJob.auth},async:true,handler:function(s){pui.Zb();s.success==true?pui.help.Ot(s.html,true,f):pui.help.error(s)}})}}}}};
@@ -461,7 +461,7 @@ if(f["field type"]=="button"||f["field type"]=="styled button")h.onclick=functio
461
461
  pui.help.Ot=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";
462
462
  a.onclick=function(){pui.help.es(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"}};
463
463
  pui.help.es=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.qo(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"+
464
- c.modules]=g;c["library"+c.modules]=o;c["module"+c.modules]=h}f++}}if(c.modules<=0)return false;cc({url:Wb("PUI0009108.pgm"),method:"post",params:c,async:true,handler:function(n){pui.Zb();if(n.success==true){if(a!=null){a.innerHTML="";a.parentNode.removeChild(a);a=null}pui.help.Ot(n.html)}else pui.help.error(n)}});return true};pui.click=function(b,a){setTimeout(function(){if(typeof b!="object")b=Bb(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.vd!=null)pui.tb=b.vd;pui.G=b.G}var e=pui.cc();pui.G="false";pui.La=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)};
464
+ c.modules]=g;c["library"+c.modules]=o;c["module"+c.modules]=h}f++}}if(c.modules<=0)return false;cc({url:Wb("PUI0009108.pgm"),method:"post",params:c,async:true,handler:function(n){pui.Zb();if(n.success==true){if(a!=null){a.innerHTML="";a.parentNode.removeChild(a);a=null}pui.help.Ot(n.html)}else pui.help.error(n)}});return true};pui.click=function(b,a){setTimeout(function(){if(typeof b!="object")b=Bb(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.tb=b.ud;pui.G=b.G}var e=pui.cc();pui.G="false";pui.La=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)};
465
465
  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")};
466
466
  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.Ek={};
467
467
  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.Ek[a]!=null)c=pui.Ek[a];if(c==null){c={method:"get",cacheBuster:true,handler:function(s){b.meta=s;b.appJob=e;pui.Ek[a]=s;pui.show(b)}};if(b.method)c.method=b.method;h=pui.Lx(a);if(h==null){c.url=a;cc(c)}else{c.url=Wb("PUI0001102.pgm");c.params=h;c.handler=function(s){s=s.replace(/''/g,"'");pui.display=
@@ -480,7 +480,7 @@ pui.gz=function(b,a){var c=b.overwrite===true,e=b.data,f=e.indexOf(";base64,")+8
480
480
  pui.uploadSignature=function(b){var a=Bb(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.gz(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=Bb(b);pui.Ag=true;var e=b.H;if(e==null)e=new pui.Yf(b);pui.Q(b,e.ug());e.Oh(a);e.show(c);setTimeout(function(){pui.Ag=false},0)};
481
481
  pui.expandAccordionSection=function(b,a){var c=Bb(b);c&&c.Ja&&typeof c.Ja.pe==="function"&&c.Ja.pe(a)};pui.runAttnProgram=function(){P=="dspf"&&pui.submitResponse({attn:"1"})};
482
482
  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};
483
- pui.getAllScreenProps=function(b){if(b&&typeof b!="string")return false;if(!pui.Pd||!pui.Pd.layers)return false;for(var a=pui.Pd.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.Ib(b)===l)return r}if(b)return false;return c};
483
+ pui.getAllScreenProps=function(b){if(b&&typeof b!="string")return false;if(!pui.Od||!pui.Od.layers)return false;for(var a=pui.Od.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.Ib(b)===l)return r}if(b)return false;return c};
484
484
  pui.getScreenProp=function(b,a){if(!b||typeof b!="string")return false;var c=pui.getAllScreenProps();if(!c)return false;if(a)b=pui.Ib(b);else{a=b;b=bd();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};
485
485
  pui.runLogic=function(b,a,c){if(pui.clientLogic&&pui.clientLogic[b]){pui.routineFunction=ya(false);try{eval('pui["routineFunction"] = function() {\r\n'+pui.clientLogic[b]+"\r\n}")}catch(e){console.error(e)}if(pui.routineFunction()===false)return}pui.La=b;pui.Nc=a;pui.Mc=c;pui.click()};pui.Nu=function(){var b={},a={},c=this,e;this.init=function(){if(e==null)e=document.getElementsByTagName("head")[0]};this.yv=function(f){if(typeof f=="string"){f=Lb(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.hr=function(f,h,g){if(typeof f!="string")return false;f=Lb(f);if(f=="")return false;if(a[f]!=null)return false;
486
486
  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=Ib.designer.Rp[Ib.designer.Na.ub]}var l={},o=1,n=h["external css"];for(g||(n=pui.R(n,f.data,
@@ -488,48 +488,48 @@ f.ref));n!=null;){l[n]=true;o++;n=h["external css "+o];g||(n=pui.R(n,f.data,f.re
488
488
  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.Ea(w,"Onload Error:\n")}if(h.onmessage&&f.msgInfo!=null){pui.message=f.msgInfo;try{eval('var message = pui["message"];');
489
489
  eval(h.onmessage)}catch(A){pui.Ea(A,"Onmessage Error:\n")}}}});o++;n=pui.R(h["external javascript "+o],f.data,f.ref)}}}}};pui.Aw=new pui.Nu;pui.Yf=function(b){function a(w,A){setTimeout(function(){w==o&&s.hide()},A)}function c(){if(s.Ec>=0&&s.Ec<=100){s.J.style.filter="alpha(opacity="+s.Ec+")";s.J.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.J.style.display="none";s.J.style.visibility="hidden";s.Ec=0}else{s.J.style.filter="alpha(opacity=100)";s.J.style.opacity=1;s.Ec=100}else setTimeout(c,100)}function e(w){if(!pui.ex){w=ub(w);if(w!=null){w=w.H;w!=null&&w.ja!=true&&w.show()}}}function f(w){var A=
490
490
  w.keyCode;if(!(A>=9&&A<=45))if(!(A>=112&&A<=145)){w=ub(w);if(w!=null){A=w.H;if(A!=null){A.hide();A.ja=true;pui.da(w,A.ug())}}}}function h(w){w=ub(w);if(w!=null){var A=w.H;if(A!=null){A.hide();A.ja=true;pui.da(w,A.ug())}}}function g(w){if(w!=null)s.Sb=w;else if(typeof r.pui.properties["error message location"]!="undefined")s.Sb=r.pui.properties["error message location"];if(s.Sb!="left"&&s.Sb!="right"&&s.Sb!="top"&&s.Sb!="bottom")s.Sb="right"}this.b=null;this.Ec=0;var l=false,o=0,n=b,r=b;this.Sb="right";
491
- var p="";this.oi="";if(typeof r.pui.properties["error message css class"]=="string")this.oi=Lb(r.pui.properties["error message css class"]);if(this.oi=="")this.oi="pui-tip-error";var t=this.oi+"-invalid";this.qb=this.Dc=this.J=null;var s=this;if(r.pui.properties["error message attach"]=="parent"){this.Jq=true;this.b=r.parentNode}else{this.Jq=false;this.b=pui.Lw(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",
492
- e);n.tagName=="INPUT"&&(n.type=="text"||pui.gl(n.type))||T(n,"click",e);T(n,"blur",function(w){if(!pui.Ag){w=ub(w);if(w!=null){w=w.H;w!=null&&w.hide()}}});n.tagName=="SELECT"?T(n,"change",h):T(n,"keydown",f);n.H=this;g();gd(this);this.Oh=function(w){p=w;s.Dc.innerHTML='<div class="pui-tip-icon" />';s.Dc.appendChild(document.createTextNode(p))};this.setPosition=function(w,A){s.J.style.left=w+"px";s.J.style.top=A+"px"};this.Px=function(){var w=s.J.offsetHeight,A=s.J.offsetWidth,B=r.offsetHeight,G=r.offsetWidth,
491
+ var p="";this.oi="";if(typeof r.pui.properties["error message css class"]=="string")this.oi=Lb(r.pui.properties["error message css class"]);if(this.oi=="")this.oi="pui-tip-error";var t=this.oi+"-invalid";this.qb=this.Dc=this.J=null;var s=this;if(r.pui.properties["error message attach"]=="parent"){this.Jq=true;this.b=r.parentNode}else{this.Jq=false;this.b=pui.Lw(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();S(n,"focus",
492
+ e);n.tagName=="INPUT"&&(n.type=="text"||pui.gl(n.type))||S(n,"click",e);S(n,"blur",function(w){if(!pui.Ag){w=ub(w);if(w!=null){w=w.H;w!=null&&w.hide()}}});n.tagName=="SELECT"?S(n,"change",h):S(n,"keydown",f);n.H=this;g();gd(this);this.Oh=function(w){p=w;s.Dc.innerHTML='<div class="pui-tip-icon" />';s.Dc.appendChild(document.createTextNode(p))};this.setPosition=function(w,A){s.J.style.left=w+"px";s.J.style.top=A+"px"};this.Px=function(){var w=s.J.offsetHeight,A=s.J.offsetWidth,B=r.offsetHeight,G=r.offsetWidth,
493
493
  F=s.Sb;g();if(F!=s.Sb){gd(s);s.Oh(p)}if(s.Sb=="left"||s.Sb=="right"){w=r.offsetTop-(w-B)/2;A=s.Sb=="left"?r.offsetLeft-A-3:r.offsetLeft+G+3}else{A=r.offsetLeft+(G-A)/2;w=s.Sb=="top"?r.offsetTop-w-3:r.offsetTop+B+3}B=r.parentNode;if(B==null||pui.is_old_ie&&B.nodeName=="#document-fragment"){g("right");gd(s);s.Oh(p);w=0;A=-7}else{if(this.Jq){if(A<0)A=0;if(w<0)w=0}else if(B.getAttribute("container")=="true"){G=pui.layout.vf(B);w+=G.y;A+=G.x}if(B!=s.b&&B.getAttribute("container")!="true"){A+=B.offsetLeft;
494
494
  w+=B.offsetTop;B=B.parentNode;if(B!=s.b){A+=B.offsetLeft;w+=B.offsetTop;if(B.parentNode.getAttribute("container")=="true"){G=pui.layout.vf(B.parentNode);w+=G.y;A+=G.x}}}}if(r.style.visibility=="hidden"){B=r.eb;G=r.Wa;if(B!=null&&G){G=Bb(G);if(G!=null){G=G.tabPanel;if(G!=null)if(G.selectedTab!=B){G.selectedTab=B;G.z()}}}}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.J.style.display=="none"){s.J.style.display="block";
495
- s.J.style.visibility="";s.Ec=0;l=false;c()}o+=1;if(o>1E4)o=0;w!=null&&a(o,w);s.Px()}};this.hide=function(){l=true;c()};this.ax=function(){s.J.style.display="none";s.J.style.visibility="hidden";s.Ec=0};this.ug=function(){return t}};pui.Yf.prototype=Object.create(pui.zd.prototype);
495
+ s.J.style.visibility="";s.Ec=0;l=false;c()}o+=1;if(o>1E4)o=0;w!=null&&a(o,w);s.Px()}};this.hide=function(){l=true;c()};this.ax=function(){s.J.style.display="none";s.J.style.visibility="hidden";s.Ec=0};this.ug=function(){return t}};pui.Yf.prototype=Object.create(pui.yd.prototype);
496
496
  pui.Yf.prototype.destroy=function(){this.J.removeEventListener("mousedown",this);this.qb.removeEventListener("mousedown",this);this.qb.removeEventListener("mouseup",this);this.qb.removeEventListener("click",this);this.J.removeChild(this.qb);this.J.removeChild(this.Dc);this.J.parentNode.removeChild(this.J);Zb(this)};
497
497
  function gd(b){var a=b.J!=null;if(a){b.qb.removeEventListener("mousedown",b);b.qb.removeEventListener("mouseup",b);b.qb.removeEventListener("click",b);b.qb.parentNode.removeChild(b.qb);b.qb=null;b.Dc.parentNode.removeChild(b.Dc);b.Dc=null;b.J.removeEventListener("mousedown",b);b.J.parentNode.removeChild(b.J);b.J=null}b.J=document.createElement("div");b.J.classList.add("pui-tip");if(b.Sb=="top")b.J.classList.add("pui-tip-top");else if(b.Sb=="bottom")b.J.classList.add("pui-tip-bottom");else b.Sb=="left"?
498
498
  b.J.classList.add("pui-tip-left"):b.J.classList.add("pui-tip-right");b.J.classList.add(b.oi);b.J.style.position="absolute";b.Dc=document.createElement("div");b.Dc.className="pui-tip-content";b.qb=document.createElement("div");b.qb.className="pui-tip-close";b.qb.addEventListener("mousedown",b);b.qb.addEventListener("mouseup",b);b.qb.addEventListener("click",b);b.J.addEventListener("mousedown",b);if(!a){b.J.style.display="none";b.J.style.visibility="hidden"}b.J.appendChild(b.Dc);b.J.appendChild(b.qb);
499
- b.b.appendChild(b.J)}pui.Yf.prototype.handleEvent=function(b){switch(b.type){case "mousedown":if(b.target==this.qb)this.qb.className="pui-tip-close-click";vb(b);return false;case "mouseup":this.qb.className="pui-tip-close";break;case "click":this.J.style.display="none";this.J.style.visibility="hidden";this.Ec=0;break;case "scroll":break}};function jd(b){function a(){if(!(aa&&sa)){w=true;setTimeout(n,200)}}function c(fa){qa=true;fa=fa||window.event;var wa=fa.keyCode;if((wa==38||wa==40)&&F.style.display=="block"){var pa;if(wa==38)pa=W!=null?W-1:Q.length-1;else if(wa==40)pa=W!=null?W+1:0;if(pa<0||pa>=Q.length)pa=null;h(pa,true);fa.cancelBubble=true;fa.returnValue=false;fa.preventDefault&&fa.preventDefault();fa.stopPropagation&&fa.stopPropagation();return false}else if(wa==9&&W!=null)r();else if(wa==9&&W==null&&pui["autocomplete tab selects"]==
500
- true){W=0;r()}else if(wa==13){if((wa=F.style.display=="block")&&F.children.length==1&&F.children[0].textContent.toUpperCase()===fa.currentTarget.value.toUpperCase()){W=0;r();n();return true}if(wa&&W!=null){r();n();fa.cancelBubble=true;fa.returnValue=false;fa.preventDefault&&fa.preventDefault();fa.stopPropagation&&fa.stopPropagation();return false}else{n();if(wa){fa.cancelBubble=true;fa.returnValue=false;fa.preventDefault&&fa.preventDefault();fa.stopPropagation&&fa.stopPropagation();return false}}}}
501
- function e(fa){qa=false;fa=fa||window.event;fa=fa.keyCode;if(!(ga.readOnly||ga.disabled))if(Lb(ga.value)==""){if(Y)Y.value="";n()}else if(fa==8||fa>=46&&fa<=90||fa>=96&&fa<=111||fa>=186&&fa<=222||(window.zz!=null||typeof window.orientation!=="undefined")&&(fa==0||fa==229))if(ga.value.replace(/ /g,"")!="")if(kb&&d)g(Pb(ga.value.toUpperCase()));else{clearTimeout(ha);w=false;ha=setTimeout(function(){l(Pb(ga.value))},sb)}}function f(){if(!qa)if(Lb(ga.value)==""){if(Y)Y.value="";n()}else if(ga.value.replace(/ /g,
502
- "")!="")if(kb&&d)g(Pb(ga.value.toUpperCase()));else{w=false;l(Pb(ga.value))}}function h(fa,wa){if(W!=null&&F.childNodes!=null&&F.childNodes[W]!=null){F.childNodes[W].className=F.childNodes[W].className.replace(" autocomplete-selected","");F.childNodes[W].className=F.childNodes[W].className.replace("autocomplete-selected","")}if(fa!=null){var pa=F.childNodes[fa];pa.className+=" autocomplete-selected";if(wa==true&&typeof pa.scrollIntoView==="function"){var fb=0;if(typeof window.pageYOffset=="number")fb=
499
+ b.b.appendChild(b.J)}pui.Yf.prototype.handleEvent=function(b){switch(b.type){case "mousedown":if(b.target==this.qb)this.qb.className="pui-tip-close-click";vb(b);return false;case "mouseup":this.qb.className="pui-tip-close";break;case "click":this.J.style.display="none";this.J.style.visibility="hidden";this.Ec=0;break;case "scroll":break}};function jd(b){function a(){if(!(Z&&sa)){w=true;setTimeout(n,200)}}function c(fa){qa=true;fa=fa||window.event;var wa=fa.keyCode;if((wa==38||wa==40)&&F.style.display=="block"){var pa;if(wa==38)pa=X!=null?X-1:T.length-1;else if(wa==40)pa=X!=null?X+1:0;if(pa<0||pa>=T.length)pa=null;h(pa,true);fa.cancelBubble=true;fa.returnValue=false;fa.preventDefault&&fa.preventDefault();fa.stopPropagation&&fa.stopPropagation();return false}else if(wa==9&&X!=null)r();else if(wa==9&&X==null&&pui["autocomplete tab selects"]==
500
+ true){X=0;r()}else if(wa==13){if((wa=F.style.display=="block")&&F.children.length==1&&F.children[0].textContent.toUpperCase()===fa.currentTarget.value.toUpperCase()){X=0;r();n();return true}if(wa&&X!=null){r();n();fa.cancelBubble=true;fa.returnValue=false;fa.preventDefault&&fa.preventDefault();fa.stopPropagation&&fa.stopPropagation();return false}else{n();if(wa){fa.cancelBubble=true;fa.returnValue=false;fa.preventDefault&&fa.preventDefault();fa.stopPropagation&&fa.stopPropagation();return false}}}}
501
+ function e(fa){qa=false;fa=fa||window.event;fa=fa.keyCode;if(!(ga.readOnly||ga.disabled))if(Lb(ga.value)==""){if(ca)ca.value="";n()}else if(fa==8||fa>=46&&fa<=90||fa>=96&&fa<=111||fa>=186&&fa<=222||(window.zz!=null||typeof window.orientation!=="undefined")&&(fa==0||fa==229))if(ga.value.replace(/ /g,"")!="")if(kb&&d)g(Pb(ga.value.toUpperCase()));else{clearTimeout(ia);w=false;ia=setTimeout(function(){l(Pb(ga.value))},sb)}}function f(){if(!qa)if(Lb(ga.value)==""){if(ca)ca.value="";n()}else if(ga.value.replace(/ /g,
502
+ "")!="")if(kb&&d)g(Pb(ga.value.toUpperCase()));else{w=false;l(Pb(ga.value))}}function h(fa,wa){if(X!=null&&F.childNodes!=null&&F.childNodes[X]!=null){F.childNodes[X].className=F.childNodes[X].className.replace(" autocomplete-selected","");F.childNodes[X].className=F.childNodes[X].className.replace("autocomplete-selected","")}if(fa!=null){var pa=F.childNodes[fa];pa.className+=" autocomplete-selected";if(wa==true&&typeof pa.scrollIntoView==="function"){var fb=0;if(typeof window.pageYOffset=="number")fb=
503
503
  window.pageYOffset;else if(document.body&&document.body.scrollTop)fb=document.body.scrollTop;else if(document.documentElement&&document.documentElement.scrollTop)fb=document.documentElement.scrollTop;var Va=0;if(self.innerHeight)Va=self.innerHeight;else if(document.documentElement&&document.documentElement.clientHeight)Va=document.documentElement.clientHeight;else if(document.body)Va=document.body.clientHeight;Va=fb+Va;var nb=pa.offsetTop+pa.parentNode.offsetTop,Qa=pa.parentNode.parentNode;nb+=Qa.offsetTop;
504
- if(Qa.parentNode!=null&&Qa.parentNode.grid!=null){nb+=Qa.parentNode.offsetHeight;nb+=Qa.parentNode.parentNode.offsetHeight}if(nb+pa.offsetHeight>Va||nb<fb){y=true;pa.scrollIntoView(true);setTimeout(function(){y=false},1)}if(aa&&pa.offsetTop>ma&&!y){y=true;pa.scrollIntoView(true);setTimeout(function(){y=false},1)}}}W=fa}function g(fa){if(Y)Y.value="";if(fa!=""){pb({results:[{field1:""}]});Q=[];for(var wa=0;wa<Wa.length;wa++)if(b.gw)Wa[wa][0].toUpperCase().indexOf(fa)!=-1&&Q.push({field1:Wa[wa][0],
505
- field2:Wa[wa][1]});else Wa[wa][0].toUpperCase().indexOf(fa)==0&&Q.push({field1:Wa[wa][0],field2:Wa[wa][1]});if(Q.length==0)n();else if(Y&&Q.length==1&&ga.value.toUpperCase()==Q[0][M].toUpperCase()){Y.value=p(Q[0],Pa);n()}else o()}}function l(fa){if(fa=="")n();else if(!(cb&&cb(Ga,fa)==false)){X=null;fa=encodeURIComponent(yb)+"="+encodeURIComponent(fa);if(Xa!=null)fa+="&limit="+Xa;if((Xa==null||Xa=="")&&pui["Default Auto Complete Max Choices"]!=null)fa+="&limit="+encodeURIComponent(pui["Default Auto Complete Max Choices"]);
506
- if(Ga)for(var wa in Ga)if(!(Ga[wa]==null&&wa==="AUTH")){fa+="&";fa+=encodeURIComponent(wa)+"="+encodeURIComponent(Ga[wa])}if(pui["read db driven data as ebcdic"]!==true)fa+="&UTF8=Y";if(Y)Ha+=1;wa=Ga.AUTH?new pui.Ajax(pui.df(ua)):new pui.Ajax(ua);wa.method="post";wa.async=true;wa.suppressAlert=true;wa.postData=fa;wa.sequence=ia;wa.onready=function(pa){if(Y)Ha-=1;if(pa.sequence!=null){if(pa.sequence<ia)return;ia++}if(pa=Kb(pa,"Generate Auto-Complete Suggestions"))if(Lb(ga.value)=="")n();else if(w)n();
507
- else{pa=eval(pa);Q=pa.results;if(P==="dspf"&&typeof pa.valueField==="string"){Pa=pa.valueField;Y={value:""};ga.Ed=Y}if((Pa==null||M==null)&&Q!=null&&Q.length>0)for(var fb in Q[0]){if(Pa==null)Pa=fb;if(M==null)M=fb}if(Y&&Q!=null&&Q.length==1&&ga.value.toUpperCase()==Q[0][M].toUpperCase())Y.value=p(Q[0],Pa);else if(Y)Y.value="";if(Q!=null&&Q.length>0){pb&&pb(pa);o()}else n();da&&pui.pf(da,true,ga.id)}else da&&pui.pf(da,false,ga.id)};wa.send()}}function o(){var fa=ga.offsetWidth;if(!pui.is_old_ie||!pui.is_quirksmode)fa-=
508
- 2;if(db==null||db<fa)db=fa;F.style.width=db+"px";fa=Q;if(b.Nr){fa=[];for(var wa=false,pa=0;pa<b.Nr.length;pa++){var fb=ga.value,Va=kb[pa];if(fb!==null&&Va!==null){Va=Va.substr(0,fb.length);fb=fb.toUpperCase();Va=Va.toUpperCase()}if(fb==Va){fa.push(b.Nr[pa]);wa=true}else if(wa)break}}if(!qb){var nb;for(pa in fa[0]){nb=pa;break}qb='<div class="autocomplete-item">('+nb+")</div>"}F.innerHTML="";for(pa=0;pa<fa.length;pa++){nb=qb;for(var Qa in fa[pa])nb=nb.replace("("+Qa+")",fa[pa][Qa]);F.innerHTML+=nb;
509
- F.lastChild.setAttribute("recordIndex",String(pa))}for(pa=0;pa<F.childNodes.length;pa++)F.childNodes[pa].addEventListener("mousemove",t,false);F.style.display="block";pa=ga;B=ga.offsetTop;G=ga.offsetLeft;if(ga.parentNode!=null&&ga.parentNode.l){B=ga.parentNode.offsetTop;G=ga.parentNode.offsetLeft;pa=ga.parentNode}Qa=pa.parentNode;if(Qa.parentNode.grid){B+=Qa.offsetTop;G+=Qa.offsetLeft;Qa=Qa.parentNode;B+=Qa.offsetTop;G+=Qa.offsetLeft;Qa=Qa.parentNode}if(Qa.getAttribute("container")=="true"){Qa=pui.layout.vf(Qa);
510
- B+=Qa.y;G+=Qa.x}if(P=="genie")if(pa.parentNode.layerInfo){B+=pa.parentNode.offsetTop+pa.parentNode.clientTop;G+=pa.parentNode.offsetLeft+pa.parentNode.clientLeft}B+=ga.offsetHeight;B+=ra;G+=gb;pa=pui.Ds();if(B-pa+F.offsetHeight>pui.getWindowSize().height){Qa=B-F.offsetHeight-ga.offsetHeight-3;if(Qa-pa>=0)B=Qa}F.style.top=B+"px";F.style.left=G+"px";if(ea){F.style.height="";aa=false;if(F.clientHeight>ma){F.style.height=String(ma)+"px";aa=true}F.style.overflowY="auto"}if(rb){D.style.top=B+3+"px";D.style.left=
511
- G-4+"px";D.style.width=db+10+"px";D.style.height=F.offsetHeight+2+"px";E.style.top="0px";E.style.left="0px";E.style.width="6px";if(F.offsetHeight>=6)E.style.height=F.offsetHeight-6+"px";if(F.offsetHeight>=6)R.style.top=F.offsetHeight-6+"px";R.style.left="0px";R.style.height="6px";R.style.width="6px";if(F.offsetHeight>=6)K.style.top=F.offsetHeight-6+"px";K.style.left="6px";K.style.height="6px";K.style.width=db-2+"px";C.style.top="0px";C.style.right="0px";C.style.width="6px";if(F.offsetHeight>=6)C.style.height=
512
- F.offsetHeight-6+"px";if(F.offsetHeight>=6)N.style.top=F.offsetHeight-6+"px";N.style.right="0px";N.style.height="6px";N.style.width="6px";D.style.display="block"}}function n(){if(F!=null)F.style.display="none";if(rb)D.style.display="none";Q=[];W=null}function r(){if(W!=null){for(var fa in Q[W]){ga.value=Q[W][fa];break}X=Q[W];if(Y!=null)if(Q[W]!=null)Y.value=p(Q[W],Pa);if(Fb)if(pui.$b(b.qt))pui.runLogic(b.qt.routine,ga.o,ga.Yj);else try{var wa=eval(Fb);typeof wa=="function"&&wa(X,ga)}catch(pa){pui.Ea(pa,
513
- "Onselect error:\n")}}}function p(fa,wa){var pa=fa[wa];if(pa==null)for(var fb in fa)pa=fa[fb];return pa}function t(fa){if(!y){fa=fa||window.event;fa=fa.target||fa.srcElement;var wa=fa.getAttribute("recordIndex");if(wa==""||wa==null){fa=fa.parentNode;wa=fa.getAttribute("recordIndex");if(wa==""||wa==null)return}h(Number(wa))}}function s(fa){if(aa&&na!=null&&F.offsetWidth!=null){var wa=fa.currentTarget.getBoundingClientRect().right-na;if(pui.Bo(fa)>wa)return true}return false}var w=false,A=this,B,G,
514
- F,D,E,C,K,R,N,M,W=null,Q=[],ha,Y,X,y=false,ea=false,aa=false,na=function(){var fa=document.createElement("div");fa.style.overflow="scroll";fa.style.visibility="hidden";fa.style.position="absolute";document.body.appendChild(fa);fa.style.height="50px";fa.style.width="50px";var wa=document.createElement("div");wa.style.height="1px";fa.appendChild(wa);wa=wa.offsetWidth;var pa=fa.offsetWidth;fa.parentElement.removeChild(fa);return pa-wa}(),ma=null,sa=false,qa=false,Ka,ga,ua,Pa,ra,gb,ta,db,Ga,yb,Xa,rb,
515
- qb,sb,Fb,cb,pb,kb,d,Wa,da,ia=0;ua=b.url;Pa=b.valueField;ga=typeof b.iq=="object"?b.iq:document.getElementById(b.iq);ga.setAttribute("autocomplete","off");Ka=b.b?b.b:ga.parentNode;if(P=="genie"){ga.setAttribute("fieldLength",ga.getAttribute("maxLength"));ga.setAttribute("maxLength","133")}if(b.choices&&b.values){ta=false;var va=Lb(ga.value);Wa=[];kb=b.choices;d=b.values;for(var Ba=0;Ba<d.length;Ba++)if(kb[Ba]!=null){Wa[Wa.length]=[];Wa[Wa.length-1][0]=Lb(kb[Ba]);Wa[Wa.length-1][1]=Lb(d[Ba]);if(!ta&&
516
- va!="")if(va==Lb(d[Ba])){ga.value=Lb(kb[Ba]);ta=ga.xr=true}}Wa.sort(function(fa,wa){return fa[0].toUpperCase()<wa[0].toUpperCase()?-1:1});M="field1";Pa="field2"}if(Pa){if(P=="genie"){ta=ga.getAttribute("name");ga.removeAttribute("name");try{Y=document.createElement('<input name="'+ta+'" />')}catch(Ya){Y=document.createElement("input");Y.name=ta}Y.type="hidden";Y.value=ga.value;Y.tz=ga;if(ga.B!=null){ga.setAttribute("fieldRow",ga.B.row);ga.setAttribute("fieldCol",ga.B.col);ta=ga.B.idx;Y.B=ga.B;pui.response[ta]=
517
- Y;ga.B=null}document.forms.main.appendChild(Y)}if(P=="dspf"){Y={value:""};ga.Ed=Y}}ra=b.cz?b.cz:0;gb=b.rx?b.rx:0;ta=b.zIndex?b.zIndex:1E5;if(typeof b.width!="undefined")db=b.width;if(b.baseParams)Ga=b.baseParams;yb=b.Jx?b.Jx:"query";if(typeof b.nl!="undefined")Xa=b.nl;rb=typeof b.shadow!="undefined"&&b.shadow==false?false:true;if(typeof b.beforequery=="function")cb=b.beforequery;if(typeof b.onload=="function")pb=b.onload;if(b.onselect!=null)Fb=b.onselect;if(b.rt!=null)da=b.rt;if(typeof b.template!=
518
- "undefined")qb=b.template;sb=typeof b.typeAheadDelay==="number"?b.typeAheadDelay:200;if(typeof b.bu!="undefined"&&typeof b.maxHeight!="undefined"&&b.maxHeight!=null){ea=b.bu;ma=b.maxHeight}F=document.createElement("div");F.style.display="none";F.style.margin="0px";F.style.padding="0px";F.style.position="absolute";F.style.zIndex=ta;F.className="autocomplete-results "+Lb(ga.id)+"-autocomplete-results";F.addEventListener("mousedown",function(fa){sa=true;setTimeout(function(){ga.focus()},0);if(!s(fa)){r();
519
- n()}},false);F.addEventListener("mouseup",function(){sa=false},false);Ka.appendChild(F);if(rb){va="";if(Fa=="ON")va="https://"+HTTP_HOST;va+=pui.normalizeURL("/profoundui/proddata/images/");D=document.createElement("div");D.style.display="none";D.style.padding="0px";D.style.margin="0px";D.style.position="absolute";D.style.zIndex=ta-1;D.style.fontSize="0px";E=document.createElement("div");E.style.padding="0px";E.style.margin="0px";E.style.position="absolute";E.style.background="transparent url("+va+
520
- "shadow-side.png) repeat-y scroll";D.appendChild(E);R=document.createElement("div");R.style.padding="0px";R.style.margin="0px";R.style.position="absolute";R.style.background="transparent url("+va+"shadow.png) no-repeat scroll 0px -12px";D.appendChild(R);K=document.createElement("div");K.style.padding="0px";K.style.margin="0px";K.style.position="absolute";K.style.background="transparent url("+va+"shadow.png) repeat-x scroll 0px -36px";D.appendChild(K);C=document.createElement("div");C.style.padding=
521
- "0px";C.style.margin="0px";C.style.position="absolute";C.style.background="transparent url("+va+"shadow-side.png) repeat-y scroll -6px";D.appendChild(C);N=document.createElement("div");N.style.padding="0px";N.style.margin="0px";N.style.position="absolute";N.style.background="transparent url("+va+"shadow.png) no-repeat scroll 0px -6px";D.appendChild(N);Ka.appendChild(D)}ga.addEventListener("keyup",e,false);ga.addEventListener("keydown",c,false);ga.addEventListener("blur",a,false);ga.addEventListener("input",
522
- f,false);if(!pui.ef||pui.ef.length==0){window.addEventListener("resize",md,false);pui.ef=[]}pui.ef.push(A);pui.Wf.push(A);this.iu=function(fa){qb=fa};this.Ti=function(){return F.style.display=="block"};this.setWidth=function(fa){db=fa};this.Wz=function(){return X};this.destroy=function(){ga.removeEventListener("keyup",e);ga.removeEventListener("keydown",c);ga.removeEventListener("blur",a);ga.removeEventListener("input",f);for(var fa=pui.ef.length-1;fa>=0;fa--)if(pui.ef[fa]===this){pui.ef.splice(fa,
523
- 1);break}pui.ef.length==0&&window.removeEventListener("resize",md);A=da=Wa=d=kb=pb=cb=Fb=rb=Ga=ga=Ka=X=Y=ha=Q=W=M=N=R=K=C=E=D=F=null};this.Gu=function(fa){ua=fa};this.resize=function(){this.Ti()&&o()}}
504
+ if(Qa.parentNode!=null&&Qa.parentNode.grid!=null){nb+=Qa.parentNode.offsetHeight;nb+=Qa.parentNode.parentNode.offsetHeight}if(nb+pa.offsetHeight>Va||nb<fb){y=true;pa.scrollIntoView(true);setTimeout(function(){y=false},1)}if(Z&&pa.offsetTop>ma&&!y){y=true;pa.scrollIntoView(true);setTimeout(function(){y=false},1)}}}X=fa}function g(fa){if(ca)ca.value="";if(fa!=""){pb({results:[{field1:""}]});T=[];for(var wa=0;wa<Wa.length;wa++)if(b.gw)Wa[wa][0].toUpperCase().indexOf(fa)!=-1&&T.push({field1:Wa[wa][0],
505
+ field2:Wa[wa][1]});else Wa[wa][0].toUpperCase().indexOf(fa)==0&&T.push({field1:Wa[wa][0],field2:Wa[wa][1]});if(T.length==0)n();else if(ca&&T.length==1&&ga.value.toUpperCase()==T[0][N].toUpperCase()){ca.value=p(T[0],Pa);n()}else o()}}function l(fa){if(fa=="")n();else if(!(cb&&cb(Ga,fa)==false)){W=null;fa=encodeURIComponent(yb)+"="+encodeURIComponent(fa);if(Xa!=null)fa+="&limit="+Xa;if((Xa==null||Xa=="")&&pui["Default Auto Complete Max Choices"]!=null)fa+="&limit="+encodeURIComponent(pui["Default Auto Complete Max Choices"]);
506
+ if(Ga)for(var wa in Ga)if(!(Ga[wa]==null&&wa==="AUTH")){fa+="&";fa+=encodeURIComponent(wa)+"="+encodeURIComponent(Ga[wa])}if(pui["read db driven data as ebcdic"]!==true)fa+="&UTF8=Y";if(ca)Ha+=1;wa=Ga.AUTH?new pui.Ajax(pui.df(ua)):new pui.Ajax(ua);wa.method="post";wa.async=true;wa.suppressAlert=true;wa.postData=fa;wa.sequence=ha;wa.onready=function(pa){if(ca)Ha-=1;if(pa.sequence!=null){if(pa.sequence<ha)return;ha++}if(pa=Kb(pa,"Generate Auto-Complete Suggestions"))if(Lb(ga.value)=="")n();else if(w)n();
507
+ else{pa=eval(pa);T=pa.results;if(P==="dspf"&&typeof pa.valueField==="string"){Pa=pa.valueField;ca={value:""};ga.Dd=ca}if((Pa==null||N==null)&&T!=null&&T.length>0)for(var fb in T[0]){if(Pa==null)Pa=fb;if(N==null)N=fb}if(ca&&T!=null&&T.length==1&&ga.value.toUpperCase()==T[0][N].toUpperCase())ca.value=p(T[0],Pa);else if(ca)ca.value="";if(T!=null&&T.length>0){pb&&pb(pa);o()}else n();da&&pui.pf(da,true,ga.id)}else da&&pui.pf(da,false,ga.id)};wa.send()}}function o(){var fa=ga.offsetWidth;if(!pui.is_old_ie||
508
+ !pui.is_quirksmode)fa-=2;if(db==null||db<fa)db=fa;F.style.width=db+"px";fa=T;if(b.Nr){fa=[];for(var wa=false,pa=0;pa<b.Nr.length;pa++){var fb=ga.value,Va=kb[pa];if(fb!==null&&Va!==null){Va=Va.substr(0,fb.length);fb=fb.toUpperCase();Va=Va.toUpperCase()}if(fb==Va){fa.push(b.Nr[pa]);wa=true}else if(wa)break}}if(!qb){var nb;for(pa in fa[0]){nb=pa;break}qb='<div class="autocomplete-item">('+nb+")</div>"}F.innerHTML="";for(pa=0;pa<fa.length;pa++){nb=qb;for(var Qa in fa[pa])nb=nb.replace("("+Qa+")",fa[pa][Qa]);
509
+ F.innerHTML+=nb;F.lastChild.setAttribute("recordIndex",String(pa))}for(pa=0;pa<F.childNodes.length;pa++)F.childNodes[pa].addEventListener("mousemove",t,false);F.style.display="block";pa=ga;B=ga.offsetTop;G=ga.offsetLeft;if(ga.parentNode!=null&&ga.parentNode.l){B=ga.parentNode.offsetTop;G=ga.parentNode.offsetLeft;pa=ga.parentNode}Qa=pa.parentNode;if(Qa.parentNode.grid){B+=Qa.offsetTop;G+=Qa.offsetLeft;Qa=Qa.parentNode;B+=Qa.offsetTop;G+=Qa.offsetLeft;Qa=Qa.parentNode}if(Qa.getAttribute("container")==
510
+ "true"){Qa=pui.layout.vf(Qa);B+=Qa.y;G+=Qa.x}if(P=="genie")if(pa.parentNode.layerInfo){B+=pa.parentNode.offsetTop+pa.parentNode.clientTop;G+=pa.parentNode.offsetLeft+pa.parentNode.clientLeft}B+=ga.offsetHeight;B+=ra;G+=gb;pa=pui.Ds();if(B-pa+F.offsetHeight>pui.getWindowSize().height){Qa=B-F.offsetHeight-ga.offsetHeight-3;if(Qa-pa>=0)B=Qa}F.style.top=B+"px";F.style.left=G+"px";if(ea){F.style.height="";Z=false;if(F.clientHeight>ma){F.style.height=String(ma)+"px";Z=true}F.style.overflowY="auto"}if(rb){D.style.top=
511
+ B+3+"px";D.style.left=G-4+"px";D.style.width=db+10+"px";D.style.height=F.offsetHeight+2+"px";E.style.top="0px";E.style.left="0px";E.style.width="6px";if(F.offsetHeight>=6)E.style.height=F.offsetHeight-6+"px";if(F.offsetHeight>=6)L.style.top=F.offsetHeight-6+"px";L.style.left="0px";L.style.height="6px";L.style.width="6px";if(F.offsetHeight>=6)K.style.top=F.offsetHeight-6+"px";K.style.left="6px";K.style.height="6px";K.style.width=db-2+"px";C.style.top="0px";C.style.right="0px";C.style.width="6px";if(F.offsetHeight>=
512
+ 6)C.style.height=F.offsetHeight-6+"px";if(F.offsetHeight>=6)Q.style.top=F.offsetHeight-6+"px";Q.style.right="0px";Q.style.height="6px";Q.style.width="6px";D.style.display="block"}}function n(){if(F!=null)F.style.display="none";if(rb)D.style.display="none";T=[];X=null}function r(){if(X!=null){for(var fa in T[X]){ga.value=T[X][fa];break}W=T[X];if(ca!=null)if(T[X]!=null)ca.value=p(T[X],Pa);if(Fb)if(pui.$b(b.qt))pui.runLogic(b.qt.routine,ga.o,ga.Yj);else try{var wa=eval(Fb);typeof wa=="function"&&wa(W,
513
+ ga)}catch(pa){pui.Ea(pa,"Onselect error:\n")}}}function p(fa,wa){var pa=fa[wa];if(pa==null)for(var fb in fa)pa=fa[fb];return pa}function t(fa){if(!y){fa=fa||window.event;fa=fa.target||fa.srcElement;var wa=fa.getAttribute("recordIndex");if(wa==""||wa==null){fa=fa.parentNode;wa=fa.getAttribute("recordIndex");if(wa==""||wa==null)return}h(Number(wa))}}function s(fa){if(Z&&na!=null&&F.offsetWidth!=null){var wa=fa.currentTarget.getBoundingClientRect().right-na;if(pui.Bo(fa)>wa)return true}return false}
514
+ var w=false,A=this,B,G,F,D,E,C,K,L,Q,N,X=null,T=[],ia,ca,W,y=false,ea=false,Z=false,na=function(){var fa=document.createElement("div");fa.style.overflow="scroll";fa.style.visibility="hidden";fa.style.position="absolute";document.body.appendChild(fa);fa.style.height="50px";fa.style.width="50px";var wa=document.createElement("div");wa.style.height="1px";fa.appendChild(wa);wa=wa.offsetWidth;var pa=fa.offsetWidth;fa.parentElement.removeChild(fa);return pa-wa}(),ma=null,sa=false,qa=false,Ka,ga,ua,Pa,ra,
515
+ gb,ta,db,Ga,yb,Xa,rb,qb,sb,Fb,cb,pb,kb,d,Wa,da,ha=0;ua=b.url;Pa=b.valueField;ga=typeof b.iq=="object"?b.iq:document.getElementById(b.iq);ga.setAttribute("autocomplete","off");Ka=b.b?b.b:ga.parentNode;if(P=="genie"){ga.setAttribute("fieldLength",ga.getAttribute("maxLength"));ga.setAttribute("maxLength","133")}if(b.choices&&b.values){ta=false;var va=Lb(ga.value);Wa=[];kb=b.choices;d=b.values;for(var Ba=0;Ba<d.length;Ba++)if(kb[Ba]!=null){Wa[Wa.length]=[];Wa[Wa.length-1][0]=Lb(kb[Ba]);Wa[Wa.length-1][1]=
516
+ Lb(d[Ba]);if(!ta&&va!="")if(va==Lb(d[Ba])){ga.value=Lb(kb[Ba]);ta=ga.xr=true}}Wa.sort(function(fa,wa){return fa[0].toUpperCase()<wa[0].toUpperCase()?-1:1});N="field1";Pa="field2"}if(Pa){if(P=="genie"){ta=ga.getAttribute("name");ga.removeAttribute("name");try{ca=document.createElement('<input name="'+ta+'" />')}catch(Ya){ca=document.createElement("input");ca.name=ta}ca.type="hidden";ca.value=ga.value;ca.tz=ga;if(ga.B!=null){ga.setAttribute("fieldRow",ga.B.row);ga.setAttribute("fieldCol",ga.B.col);
517
+ ta=ga.B.idx;ca.B=ga.B;pui.response[ta]=ca;ga.B=null}document.forms.main.appendChild(ca)}if(P=="dspf"){ca={value:""};ga.Dd=ca}}ra=b.cz?b.cz:0;gb=b.rx?b.rx:0;ta=b.zIndex?b.zIndex:1E5;if(typeof b.width!="undefined")db=b.width;if(b.baseParams)Ga=b.baseParams;yb=b.Jx?b.Jx:"query";if(typeof b.nl!="undefined")Xa=b.nl;rb=typeof b.shadow!="undefined"&&b.shadow==false?false:true;if(typeof b.beforequery=="function")cb=b.beforequery;if(typeof b.onload=="function")pb=b.onload;if(b.onselect!=null)Fb=b.onselect;
518
+ if(b.rt!=null)da=b.rt;if(typeof b.template!="undefined")qb=b.template;sb=typeof b.typeAheadDelay==="number"?b.typeAheadDelay:200;if(typeof b.bu!="undefined"&&typeof b.maxHeight!="undefined"&&b.maxHeight!=null){ea=b.bu;ma=b.maxHeight}F=document.createElement("div");F.style.display="none";F.style.margin="0px";F.style.padding="0px";F.style.position="absolute";F.style.zIndex=ta;F.className="autocomplete-results "+Lb(ga.id)+"-autocomplete-results";F.addEventListener("mousedown",function(fa){sa=true;setTimeout(function(){ga.focus()},
519
+ 0);if(!s(fa)){r();n()}},false);F.addEventListener("mouseup",function(){sa=false},false);Ka.appendChild(F);if(rb){va="";if(Fa=="ON")va="https://"+HTTP_HOST;va+=pui.normalizeURL("/profoundui/proddata/images/");D=document.createElement("div");D.style.display="none";D.style.padding="0px";D.style.margin="0px";D.style.position="absolute";D.style.zIndex=ta-1;D.style.fontSize="0px";E=document.createElement("div");E.style.padding="0px";E.style.margin="0px";E.style.position="absolute";E.style.background="transparent url("+
520
+ va+"shadow-side.png) repeat-y scroll";D.appendChild(E);L=document.createElement("div");L.style.padding="0px";L.style.margin="0px";L.style.position="absolute";L.style.background="transparent url("+va+"shadow.png) no-repeat scroll 0px -12px";D.appendChild(L);K=document.createElement("div");K.style.padding="0px";K.style.margin="0px";K.style.position="absolute";K.style.background="transparent url("+va+"shadow.png) repeat-x scroll 0px -36px";D.appendChild(K);C=document.createElement("div");C.style.padding=
521
+ "0px";C.style.margin="0px";C.style.position="absolute";C.style.background="transparent url("+va+"shadow-side.png) repeat-y scroll -6px";D.appendChild(C);Q=document.createElement("div");Q.style.padding="0px";Q.style.margin="0px";Q.style.position="absolute";Q.style.background="transparent url("+va+"shadow.png) no-repeat scroll 0px -6px";D.appendChild(Q);Ka.appendChild(D)}ga.addEventListener("keyup",e,false);ga.addEventListener("keydown",c,false);ga.addEventListener("blur",a,false);ga.addEventListener("input",
522
+ f,false);if(!pui.ef||pui.ef.length==0){window.addEventListener("resize",md,false);pui.ef=[]}pui.ef.push(A);pui.Wf.push(A);this.iu=function(fa){qb=fa};this.Ti=function(){return F.style.display=="block"};this.setWidth=function(fa){db=fa};this.Wz=function(){return W};this.destroy=function(){ga.removeEventListener("keyup",e);ga.removeEventListener("keydown",c);ga.removeEventListener("blur",a);ga.removeEventListener("input",f);for(var fa=pui.ef.length-1;fa>=0;fa--)if(pui.ef[fa]===this){pui.ef.splice(fa,
523
+ 1);break}pui.ef.length==0&&window.removeEventListener("resize",md);A=da=Wa=d=kb=pb=cb=Fb=rb=Ga=ga=Ka=W=ca=ia=T=X=N=Q=L=K=C=E=D=F=null};this.Gu=function(fa){ua=fa};this.resize=function(){this.Ti()&&o()}}
524
524
  function pd(b,a,c){var e=$b(b["choices database file"],a,c),f=$b(b["choice options field"],a,c),h=pui.qh(f),g=$b(b["choices url"],a,c);f=$b(b["use choices url for reverse lookup"],a,c);f=g!=""&&f!=null&&(f=="true"||f==true)?true:false;var l=$b(b["choice values field"],a,c),o=$b(b["max choices"],a,c),n=$b(b["contains match"])=="true",r=$b(b.choices,a,c);r=pui.ha(r);if(r.length==0)r=[""];var p=$b(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==
525
525
  0)p=[""];var s=Lb($b(b["results template"],a,c));if(s=="")s=null;if(e!=""&&h[0]!=""||g!=""||r.length>0&&r[0]!=""&&p[0]!=""){var w=$b(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=$b(b.ondbload,a,c);if(typeof w!="string"||w=="")w=null;var B={};if(pui.isCloud)B.workspace_id=pui.cloud.ws.id;if(pui.ba)B.AUTH=pui.ba;else if(g==""||!pui.dj){B.AUTH=pui.appJob.auth;if(typeof pui.vId!=="undefined")B.VID=pui.vId}if(g==""&&r[0]==""&&p[0]==""){n=
526
526
  $b(b["contains match"],a,c)=="true";var G="SELECT DISTINCT ";for(t=0;t<h.length;t++){if(t!=0)G+=", ";G+=h[t]}if(l!="")G+=","+l;G+=" FROM "+e;G+=" WHERE UPPER("+h[0]+") LIKE '";if(n)G+="%";G+="!!QUERY!!%'";t=$b(b["choices selection criteria"],a,c);if(t!="")G+=" AND ("+t+")";G+=" ORDER BY "+h[0]}if(c.lc!=null&&c.lc.destroy!=null){c.lc.destroy();c.lc=null}var F;if(P=="dspf"&&Eb())F=Ib.designer.b;else{for(t=c.parentNode;t;){if(t.Ac){F=t;break}t=t.parentNode}if(F==null)F=pui.runtimeContainer}var D=function(C){C=
527
527
  Pb(C.replace(/\u00DF/g,"\u1e9e"));C=C.toUpperCase();return C=C.replace(/\u1E9E/g,"\u00df")},E=new jd({iq:c,url:g!=""?g:Wb("PUI0009102.PGM"),baseParams:B,b:F,gw:n,choices:r[0]!=""?r:null,values:p[0]!=""?p:null,nl:o!=""?o:null,template:s,onselect:A,qt:b.onselect,rt: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(C,K){if($b(b["case sensitive"],a,c)=="true")if($b(b["text transform"],a,c)=="uppercase"||
528
528
  c.N!=null&&c.N.textTransform=="uppercase")K=D(K);else{if($b(b["text transform"],a,c)=="lowercase"||c.N!=null&&c.N.textTransform=="lowercase")K=Pb(K.toLowerCase())}else K=D(K);if(K=="")return false;if(pui.secLevel>0){if($b(b["contains match"],a,c)=="true")K="%"+Lb(K)+"%";else K+="%";C.q=pui.Wc(c);C.p1=K;pui.ld(b,C)}else{K=K.replace(/'/g,"''");C.q=pui.yb.nf(G.replace("!!QUERY!!",K))}}:null,onload:function(C){if(!s)if(c.Nv!=null){c.Bn&&E.iu(c.Bn);c.Cn&&E.setWidth(c.Cn)}else{var K=document.createElement("div");
529
- K.style.position="absolute";K.style.top="0px";K.style.left="0px";K.style.className="autocomplete-item";K.style.visibility="hidden";document.body.appendChild(K);var R='<div class="autocomplete-item">',N=C.colWidths,M=C.results[0],W=0,Q=0,ha;for(var Y in M){if(g==""&&W==h.length)break;if(!(g!=""&&typeof C.valueField==="string"&&Y==C.valueField)){K.innerHTML="";R+='<div class="autocomplete-col" style="float: left; width: ';if(N&&N[W])if(typeof N[W]=="number"){for(ha=0;ha<N[W];ha++)K.innerHTML+="a";R+=
530
- K.offsetWidth+5+'px;"';Q+=K.offsetWidth+5}else if(typeof N[W]=="string"){R+=N[W]+';"';ha=Number(N[W].replace("px",""));isNaN(ha)||(Q+=ha)}else{R+='100px"';Q+=100}else{R+='100px"';Q+=100}R+=">("+Y+")</div>";W++}}R+="</div>";c.Bn=R;c.Cn=Q+20;c.Nv=true;E.setWidth(c.Cn);E.iu(c.Bn);document.body.removeChild(K)}},shadow:pui.is_old_ie&&pui.ie_mode<=6?false:true,bu:true,maxHeight:isNaN(parseInt($b(b["max height"],a,c)))?null:parseInt($b(b["max height"],a,c))});c.lc=E;if((f||g==""&&h[0]!=""&&l!=""&&l!=h[0])&&
531
- c.value!=""){A=new pui.Ajax(g!=""?g:Wb("PUI0009102.PGM"));A.method="post";A.async=true;A.suppressAlert=true;if(pui.ba)A.postData="AUTH="+pui.ba;else{A.postData="AUTH="+pui.appJob.auth;if(typeof pui.vId!=="undefined")A.postData+="&VID="+pui.vId}if(f)A.postData+="&reverse=1&value="+encodeURIComponent(Pb(c.value));else if(pui.secLevel>0){A.postData+="&q="+encodeURIComponent(pui.Wc(c))+".reverse";A.postData+="&p1="+encodeURIComponent(Pb(c.value));e=pui.ld(b);if(e!="")A.postData+="&"+e}else{t=$b(b["choices selection criteria"],
532
- a,c);e="SELECT "+h[0]+" FROM "+e+" WHERE "+l+" = '"+Pb(c.value).replace("'","''")+"'";if(t!="")e+=" AND ("+t+")";A.postData+="&q="+pui.yb.nf(e)}A.postData+="&limit=1";if(pui.isCloud)A.postData+="&workspace_id="+pui.cloud.ws.id;A.onready=function(C){Ha-=1;if(C=Kb(C,"Generate Auto-Complete Suggestions.")){var K;C=C.results[0];for(var R in C){K=R;break}if(K==null){if(pui["force auto complete match"]!==false)c.value=""}else{if(c.Ed!=null)c.Ed.value=c.value;c.value=C[K]}}else if(pui["force auto complete match"]!==
529
+ K.style.position="absolute";K.style.top="0px";K.style.left="0px";K.style.className="autocomplete-item";K.style.visibility="hidden";document.body.appendChild(K);var L='<div class="autocomplete-item">',Q=C.colWidths,N=C.results[0],X=0,T=0,ia;for(var ca in N){if(g==""&&X==h.length)break;if(!(g!=""&&typeof C.valueField==="string"&&ca==C.valueField)){K.innerHTML="";L+='<div class="autocomplete-col" style="float: left; width: ';if(Q&&Q[X])if(typeof Q[X]=="number"){for(ia=0;ia<Q[X];ia++)K.innerHTML+="a";
530
+ L+=K.offsetWidth+5+'px;"';T+=K.offsetWidth+5}else if(typeof Q[X]=="string"){L+=Q[X]+';"';ia=Number(Q[X].replace("px",""));isNaN(ia)||(T+=ia)}else{L+='100px"';T+=100}else{L+='100px"';T+=100}L+=">("+ca+")</div>";X++}}L+="</div>";c.Bn=L;c.Cn=T+20;c.Nv=true;E.setWidth(c.Cn);E.iu(c.Bn);document.body.removeChild(K)}},shadow:pui.is_old_ie&&pui.ie_mode<=6?false:true,bu:true,maxHeight:isNaN(parseInt($b(b["max height"],a,c)))?null:parseInt($b(b["max height"],a,c))});c.lc=E;if((f||g==""&&h[0]!=""&&l!=""&&l!=
531
+ h[0])&&c.value!=""){A=new pui.Ajax(g!=""?g:Wb("PUI0009102.PGM"));A.method="post";A.async=true;A.suppressAlert=true;if(pui.ba)A.postData="AUTH="+pui.ba;else{A.postData="AUTH="+pui.appJob.auth;if(typeof pui.vId!=="undefined")A.postData+="&VID="+pui.vId}if(f)A.postData+="&reverse=1&value="+encodeURIComponent(Pb(c.value));else if(pui.secLevel>0){A.postData+="&q="+encodeURIComponent(pui.Wc(c))+".reverse";A.postData+="&p1="+encodeURIComponent(Pb(c.value));e=pui.ld(b);if(e!="")A.postData+="&"+e}else{t=$b(b["choices selection criteria"],
532
+ a,c);e="SELECT "+h[0]+" FROM "+e+" WHERE "+l+" = '"+Pb(c.value).replace("'","''")+"'";if(t!="")e+=" AND ("+t+")";A.postData+="&q="+pui.yb.nf(e)}A.postData+="&limit=1";if(pui.isCloud)A.postData+="&workspace_id="+pui.cloud.ws.id;A.onready=function(C){Ha-=1;if(C=Kb(C,"Generate Auto-Complete Suggestions.")){var K;C=C.results[0];for(var L in C){K=L;break}if(K==null){if(pui["force auto complete match"]!==false)c.value=""}else{if(c.Dd!=null)c.Dd.value=c.value;c.value=C[K]}}else if(pui["force auto complete match"]!==
533
533
  false)c.value=""};Ha+=1;A.send()}}}function md(){pui.ef.forEach(function(b){b.resize()})};function qd(b){for(var a=false,c=0,e=0;e<b.length;e++)if((b.charCodeAt(e)>=19968&&b.charCodeAt(e)<=40959||b.charCodeAt(e)>=19968&&b.charCodeAt(e)<=40895||b.charCodeAt(e)>=12352&&b.charCodeAt(e)<=12447||b.charCodeAt(e)>=12448&&b.charCodeAt(e)<=12543||b.charCodeAt(e)>=44032&&b.charCodeAt(e)<=55203||b.charCodeAt(e)>=4352&&b.charCodeAt(e)<=4607||b.charCodeAt(e)>=12593&&b.charCodeAt(e)<=12686||b.charCodeAt(e)>=65441&&b.charCodeAt(e)<=65500?true:false)==true){a==false&&c++;a=true;c+=2}else{a==true&&c++;
534
534
  a=false;c++}a==true&&c++;return c}pui.Nz=qd;function rd(b){this.toString=function(){return"INVALID: "+this.message};this.message=b}
535
535
  function sd(b){this.Xg[0][0][0]||this.ov();var a,c,e,f,h=this.Xg[0][4],g=this.Xg[1];a=b.length;var l=1;if(a!==4&&a!==6&&a!==8)throw new rd("invalid key size");this.kv=[e=b.slice(0),f=[]];for(b=a;b<4*a+28;b++){c=e[b-1];if(b%a===0||a===8&&b%a===4){c=h[c>>>24]<<24^h[c>>16&255]<<16^h[c>>8&255]<<8^h[c&255];if(b%a===0){c=c<<8^c>>>24^l<<24;l=l<<1^(l>>7)*283}}e[b]=e[b-a]^c}for(a=0;b;a++,b--){c=e[a&3?b:b-4];f[a]=b<=4||a<4?c:g[0][h[c>>>24]]^g[1][h[c>>16&255]]^g[2][h[c>>8&255]]^g[3][h[c&255]]}}
@@ -540,7 +540,7 @@ pui.yb.uw=function(b){var a=td(pui.yb.bs(pui.yb.Fv,2));a=new sd(a);b=td(b);a=b=a
540
540
  pui.yb.vw=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.yb.uw(f)}return c};
541
541
  pui.yb.bs=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.yb.nf=function(b){b=pui.yb.bs(b,4);return pui.yb.vw(b,true).toUpperCase()};var ud=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(P=="dspf")c="PUISession";var e=false,f={};this.Zl=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.Xx=this.set=this.setValue=this.Zl;this.get=this.getValue});
542
542
  window.session=ud;window.session.saveValue=ud.Zl;window.session.getValue=ud.getValue;window.session.clear=ud.clear;window.session.setValue=ud.setValue;window.session.set=ud.set;window.session.put=ud.Xx;window.session.get=ud.get;pui.runtimeContainer=null;pui.Nt=0;pui["refresh interval"]=null;pui.O={};pui.eh={};pui.uh={};pui.nh={};pui.Z={};pui.Ud={};pui.psid=null;pui.Nb=false;pui.eo=false;pui.W={};pui.Dl=null;pui.cd=1E3;pui.od=null;pui.$o=null;pui.ap=null;pui.modified=false;pui.kf={};pui.Ag=false;pui.ex=false;pui.confirmOnClose=true;pui.shutdownOnClose=true;pui.skipConfirm=false;pui.tb="";pui.Hl=null;pui.Ba={};pui.r={};pui.Hk={};pui.Yl={};pui.vm={};pui.lm={};pui.eq={};pui.mb={};pui.Fk={};pui.Bm=null;pui.zm=null;pui.Kl=true;
543
- pui.xm=null;pui.qi=null;pui.Tp=false;pui.km=[];pui.ia={};pui.ia.keys={};pui.Va=[];pui.Wf=[];pui.Xi=[];pui.G="false";pui.La=null;pui.Nc=null;pui.Mc=null;pui.Xn="false";pui.Md=null;pui.Hj=null;pui.rj=false;pui.pa=false;pui.zf=false;pui.ne=null;pui.qe=null;pui.Kc=[];pui.activeElement=null;pui.Dn=false;pui.currentFormatNames=[];pui["no focus"]=false;pui.Je={};pui.Am=null;pui.$l=[];pui.uj={};pui.pd={payloads:[],responses:[]};pui.xd=[];pui.bq=20;pui.Uy=8;pui.leftOffset=140;pui.dz=0;pui.pj=27;
543
+ pui.xm=null;pui.qi=null;pui.Tp=false;pui.km=[];pui.ia={};pui.ia.keys={};pui.Va=[];pui.Wf=[];pui.Xi=[];pui.G="false";pui.La=null;pui.Nc=null;pui.Mc=null;pui.Xn="false";pui.Ld=null;pui.Hj=null;pui.rj=false;pui.pa=false;pui.zf=false;pui.ne=null;pui.qe=null;pui.Kc=[];pui.activeElement=null;pui.Dn=false;pui.currentFormatNames=[];pui["no focus"]=false;pui.Je={};pui.Am=null;pui.$l=[];pui.uj={};pui.pd={payloads:[],responses:[]};pui.wd=[];pui.bq=20;pui.Uy=8;pui.leftOffset=140;pui.dz=0;pui.pj=27;
544
544
  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;
545
545
  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.Fw={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};
546
546
  pui.rn={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};
@@ -552,94 +552,94 @@ pui.Ix=function(b){function a(s,w,A){for(var B=A,G=1;w[B]!=null&&w[B]!="";){if(w
552
552
  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.mw(l,b[g],o,n);r&&pui.ay(b[g].metaData.screen["overlay range"],o)&&pui.Ht(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=
553
553
  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.bq);g=Number(g);if(isNaN(g)||g<1)g=1;t=parseInt(t/g);l=p*(t-pui.bq);p=e["show paging controls"];
554
554
  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.pj;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"}}}}}}};
555
- pui.yi=function(){pui.Ic=null;if(pui.Pd!=null&&pui.il!=true){if(pui.Pd.layers)for(var b=0;b<pui.Pd.layers.length;b++)for(var a=pui.Pd.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.Pd}for(c=0;c<pui.Va.length;c++){b=pui.Va[c];b!=null&&typeof b.destroy=="function"&&b.destroy()}pui.Va=[];for(c=0;c<pui.Xi.length;c++){b=pui.Xi[c];b!=null&&typeof b.destroy=="function"&&
555
+ pui.yi=function(){pui.Ic=null;if(pui.Od!=null&&pui.il!=true){if(pui.Od.layers)for(var b=0;b<pui.Od.layers.length;b++)for(var a=pui.Od.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.Od}for(c=0;c<pui.Va.length;c++){b=pui.Va[c];b!=null&&typeof b.destroy=="function"&&b.destroy()}pui.Va=[];for(c=0;c<pui.Xi.length;c++){b=pui.Xi[c];b!=null&&typeof b.destroy=="function"&&
556
556
  b.destroy()}pui.Xi=[];if(typeof FusionCharts!="undefined")for(c=0;c<pui.wi.length;c++)FusionCharts(pui.wi[c])&&FusionCharts(pui.wi[c]).dispose();pui.wi=[];for(c=0;c<pui.Wf.length;c++){b=pui.Wf[c];b!=null&&typeof b.destroy=="function"&&b.destroy()}pui.Wf=[];for(c=0;c<pui.$l.length;c++){b=pui.$l[c];ac(b.yw,b.xw,b.ww)}pui.$l=[];for(var h in pui.Je)document.body.style[h]=pui.Je[h];pui.Je={};pui["keep frames"]||pui.Zs()};pui.St=0;
557
557
  pui.resize=function(){if(pui.runtimeContainer!=null){clearTimeout(pui.St);pui.St=setTimeout(pui.Jp,10,pui.runtimeContainer)}};pui.Nx=function(b){if(b!=null){b=b.state;if(b!=null){if(b.It=="previous")if(pui.qi!=null){pui.G="true";pui.Tp=true;pui.cc()}history.forward()}}};
558
558
  pui.render=function(b){pui.yj&&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.nA=b.pjsVersion;if(typeof pui.yt=="undefined")pui.yt=pui.pjsDefaultMode||null;pui.pjsDefaultMode=b.pjsDefaultMode?b.pjsDefaultMode:pui.yt;if(typeof pui.Ju=="undefined")pui.Ju=pui.widgetURLPrefix||null;pui.widgetURLPrefix=b.pjsWidgetURLPrefix?b.pjsWidgetURLPrefix:pui.Ju;pui.ba=null;if(b.pjs_id)pui.ba=b.pjs_id;if(b.pjsDatabaseConnections)pui.databaseConnections=
559
559
  b.pjsDatabaseConnections;pui.dj=b.nodejs===true;pui.lo=null;if(b.version!=null&&pui.version!=null&&b.version!=pui.version){a=null;var c=b.version.split("."),e=c.shift();c=c.join(".");if(b.nodejs){if(pui.getVersionComparer().isLessThan(pui.version,b.version))a="Installed copy of Profound.js requires Profound UI client-side Version "+e+", Fix Pack "+c+" or above. Profound UI client-side version is Version "+pui.baseVersion+", Fix Pack "+pui.fixPackVersion+"."}else a="Profound UI server-side (Version "+
560
- 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.da(pui.runtimeContainer,"pui-ie9plus");if(pui.F&&pui.F.ac==null)pui.F.ac=document.getElementById("middle");if(!pui.ny){T(window,"resize",pui.resize);pui.ny=true}if(!pui.il&&!pui.Ov&&history.pushState!=null&&history.replaceState!=null)if(!(window.parent&&
561
- window.parent!=window&&pui.Wh(window.parent)&&window.parent.noderun)){history.replaceState({It:"previous"},document.title);history.pushState({It:"current"},document.title);T(window,"popstate",pui.Nx);pui.Ov=true}!window.React&&!window.Vue&&pui.yi();pui.Pd=b;a=b.success;if(a==null)a=true;if(a)if(b.closeTab==true&&window.parent!=window&&pui.mg(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=
560
+ 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.da(pui.runtimeContainer,"pui-ie9plus");if(pui.F&&pui.F.ac==null)pui.F.ac=document.getElementById("middle");if(!pui.ny){S(window,"resize",pui.resize);pui.ny=true}if(!pui.il&&!pui.Ov&&history.pushState!=null&&history.replaceState!=null)if(!(window.parent&&
561
+ window.parent!=window&&pui.Wh(window.parent)&&window.parent.noderun)){history.replaceState({It:"previous"},document.title);history.pushState({It:"current"},document.title);S(window,"popstate",pui.Nx);pui.Ov=true}!window.React&&!window.Vue&&pui.yi();pui.Od=b;a=b.success;if(a==null)a=true;if(a)if(b.closeTab==true&&window.parent!=window&&pui.mg(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=
562
562
  b}else{if(pui.F==null){if(pui["refresh interval"]!=null&&pui["refresh interval"]>0&&pui.Nt>=pui["refresh interval"]){pui.refresh();return}pui.Nt++}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.zf)Bb("ipadKeyboard").style.display="none";
563
563
  pui.Mv();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.jb.start():pui.ua.Yp()}pui.Ud={};pui.modified=false;pui.kf={};pui.confirmOnClose=true;if(pui.isCloud)pui.confirmOnClose=false;pui.shutdownOnClose=true;pui.tb="";pui.mb={};pui.Hk={};pui.Yl={};pui.vm={};pui.lm={};pui.eq={};pui.Pa={};pui.G="false";pui.La=null;pui.Nc=null;pui.Mc=null;pui.rj=false;pui.activeElement=null;pui.Tp=false;pui.Dn=false;f=
564
564
  pui.translate(b);f!=null&&pui.alert(f);if(b.message){c=b.message.format.toLowerCase();pui.message=b.message.message;pui.Vl();pui.Zb();if(pui.Cl&&pui.Cl[c])try{eval('var message = pui["message"];');eval(pui.Cl[c])}catch(l){pui.Ea(l,"Onmessage Error:\n")}}else if(b.html){b.b.innerHTML=b.html;b.b.style.width="100%";if(pui.F&&pui.F.ac!=null)pui.F.ac.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,
565
565
  callback:function(){n(w+1)},onerror:function(){n(w+1)}})};n(0);pui.Nb=true;pui.hl=true}else{pui.hl=false;if(pui.il!==true&&pui.gf==null)b.b.style.width="";if(pui.F&&pui.F.ac!=null)pui.F.ac.style.width="";f=b.layers;for(h=0;h<f.length;h++)pui.Ix(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.Hl==null)pui.Hl=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.Hl)document.title=
566
566
  pui.Hl}}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.Am=[];for(h=0;h<f.length;h++){pui.O={};pui.eh={};pui.uh={};pui.nh={};pui.Z={};pui.ia={};pui.ia.keys={};pui.eo=false;pui.W={};pui.Fk={};pui.Bm=null;pui.zm=null;pui.Kl=true;pui.xm=null;pui.qi=null;pui.km=[];pui.Ba.record=null;pui.Ba.field=null;
567
- pui.Ba.position=null;pui.Ba.row=null;pui.Ba.column=null;pui.r.record=null;pui.r.field=null;pui.r.position=null;pui.r.oo=null;pui.r.row=null;pui.r.column=null;pui.r.Tf=null;pui.r.Me=null;pui.r.Od=null;pui.Va=[];pui.Wf=[];pui.Xi=[];pui.Kc=[];pui.Cl={};pui.La=null;pui.Nc=null;pui.Mc=null;a=f[h].formats;if(h==0){pui.od=null;pui.$o=null;var p=pui.ap=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.Lg&&b.Lg.animation)p=b.Lg.animation;
567
+ pui.Ba.position=null;pui.Ba.row=null;pui.Ba.column=null;pui.r.record=null;pui.r.field=null;pui.r.position=null;pui.r.oo=null;pui.r.row=null;pui.r.column=null;pui.r.Tf=null;pui.r.Me=null;pui.r.Nd=null;pui.Va=[];pui.Wf=[];pui.Xi=[];pui.Kc=[];pui.Cl={};pui.La=null;pui.Nc=null;pui.Mc=null;a=f[h].formats;if(h==0){pui.od=null;pui.$o=null;var p=pui.ap=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.Lg&&b.Lg.animation)p=b.Lg.animation;
568
568
  if(typeof p==="string"){p=p.trim();if(p==="")p=null}if(pui.gf||b.designMode||pui.F!=null)p=null;if(p){pui.Zb();e={b:b.b,sn:p,he:pui.R(a[0].metaData.screen["animated screen"],a[0].data,a[0].ref),lj:pui.R(a[0].metaData.screen["overlay screens"],a[0].data,a[0].ref)};if(b.Lg&&b.Lg.animation){e.he=b.Lg.screen;e.lj=b.Lg.overlay}b.b=pui.$j.Yp(e);pui.runtimeContainer=b.b}else{pui.$j.yi();b.b.innerHTML=""}}else{pui.My(b,f[h]);if(a.length>0){c=a[0].metaData.screen["window reference"];if(c!=null&&c!=""&&f[h].metaData!=
569
- 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.Md=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.kl=true;pui.Aw.load(c)}if(c.active==true){c.jl=true;pui.Md=c.name}pui.Hp(c)}if(pui.Md==null)if(a.length>0){e=a.length-1;a[e].jl=true;pui.Md=a[e].name}else pui.Md=null;h>0&&a.length>0&&pui.R(a[0].metaData.screen["center window"],
570
- a[0].data,a[0].ref)=="true"&&pui.Zv();pui.Am.push(b.b)}if(!pui.Md&&pui.format)pui.Md=pui.format;p&&pui.$j.animate();if(pui.W!=null&&pui.W.dom!=null&&(!pui.rj||pui.r.Tf!=null||pui.r.Me!=null||pui.W.Hg==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.Od==
571
- true)pui.focusOnContainer();else if(pui.r.Od!="no focus on page")try{pui.W.dom.focus();if(pui.W.dom.tagName!="SELECT"&&pui.W.dom.type!="checkbox"&&pui.W.dom.type!="radio"){if(pui.is_old_ie)if(pui.W.dom.createTextRange!=null){pui.W.dom.select();var w=pui.W.dom.createTextRange();if(w!=null&&w.collapse!=null&&w.select!=null){w.collapse();w.select()}}else pui.focusOnContainer();pui["highlight on focus"]&&pui.W.dom.select()}}catch(A){pui.focusOnContainer()}},1)}else if(!pui.rj&&(pui.r.Tf==null||pui.r.Me==
569
+ 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.Ld=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.kl=true;pui.Aw.load(c)}if(c.active==true){c.jl=true;pui.Ld=c.name}pui.Hp(c)}if(pui.Ld==null)if(a.length>0){e=a.length-1;a[e].jl=true;pui.Ld=a[e].name}else pui.Ld=null;h>0&&a.length>0&&pui.R(a[0].metaData.screen["center window"],
570
+ a[0].data,a[0].ref)=="true"&&pui.Zv();pui.Am.push(b.b)}if(!pui.Ld&&pui.format)pui.Ld=pui.format;p&&pui.$j.animate();if(pui.W!=null&&pui.W.dom!=null&&(!pui.rj||pui.r.Tf!=null||pui.r.Me!=null||pui.W.Hg==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.Nd==
571
+ true)pui.focusOnContainer();else if(pui.r.Nd!="no focus on page")try{pui.W.dom.focus();if(pui.W.dom.tagName!="SELECT"&&pui.W.dom.type!="checkbox"&&pui.W.dom.type!="radio"){if(pui.is_old_ie)if(pui.W.dom.createTextRange!=null){pui.W.dom.select();var w=pui.W.dom.createTextRange();if(w!=null&&w.collapse!=null&&w.select!=null){w.collapse();w.select()}}else pui.focusOnContainer();pui["highlight on focus"]&&pui.W.dom.select()}}catch(A){pui.focusOnContainer()}},1)}else if(!pui.rj&&(pui.r.Tf==null||pui.r.Me==
572
572
  null))pui.focusOnContainer();pui.Nb=true;pui.ku();pui.ot!=null&&pui.ot.update();pui.breakMessagesInit()}}else{document.body.innerHTML="<h1>Unrecoverable Error</h1> <p>Unrecoverable error <strong>"+b.exception+"</strong> occurred while handling an exception. The original exception id is <strong>"+b.cause+"</strong>.</p> <p>Please contact the server administrator to determine the cause of the problem.";pui.Nb=true}};
573
573
  pui.ku=function(){for(var b=0;b<pui.Va.length;b++){var a=pui.Va[b];if(a.d!=null&&!a.au){a.d.yn!=null&&typeof a.d.yn=="function"&&a.d.yn();a.d.Nf=true;a.d.dc==1&&a.d.z();a.au=true}}};
574
- pui.Hp=function(b){function a(da,ia,va){var Ba;if(R[da].root!=null&&R[da].b!=null){Ba=R[da].root;va=R[da].b}else Ba=R[da];da=Ba;var Ya=va-1;if(da.gg[Ya]==null)da.gg[Ya]=[];var fa=da.P.id,wa={};for(var pa in ia)if(ia.layout!=fa||pa!="container"&&pa!="layout")if(typeof ia[pa]=="object"&&ia[pa]!=null)try{wa[pa]=JSON.parse(JSON.stringify(ia[pa]))}catch(fb){}else wa[pa]=ia[pa];da.gg[Ya].push(wa);if(ia["field type"]=="layout"||ia["field type"]=="grid")R[ia.id]={root:Ba,b:va}}function c(){Ka=pui.L(qa.fieldName);
574
+ pui.Hp=function(b){function a(da,ha,va){var Ba;if(L[da].root!=null&&L[da].b!=null){Ba=L[da].root;va=L[da].b}else Ba=L[da];da=Ba;var Ya=va-1;if(da.gg[Ya]==null)da.gg[Ya]=[];var fa=da.P.id,wa={};for(var pa in ha)if(ha.layout!=fa||pa!="container"&&pa!="layout")if(typeof ha[pa]=="object"&&ha[pa]!=null)try{wa[pa]=JSON.parse(JSON.stringify(ha[pa]))}catch(fb){}else wa[pa]=ha[pa];da.gg[Ya].push(wa);if(ha["field type"]=="layout"||ha["field type"]=="grid")L[ha.id]={root:Ba,b:va}}function c(){Ka=pui.L(qa.fieldName);
575
575
  ga=p+"."+Ka;if(pui.handler!=null)ga=Ka;if(b.o!=null)ga+="."+b.o}var e=vd(),f=b.designMode;if(f==null)f=false;var h=b.metaData.screen,g=b.metaData.items,l=b.metaData["dds field order"],o=b.metaData["subfile field order"],n=b.designer,r=b.data,p=b.name,t=false,s=[],w={},A=pui["strict tab control"],B=b.Fj==null&&b.ml==null;if(pui.controller!=null&&h!=null)for(var G="",F=1,D="error condition";h[D+G];){if(pui.R(h[D+G],r)=="1"){G=pui.R(h["error message"+G],r);s.push({msg:G});break}G=" "+ ++F}!f&&b.o==null&&
576
576
  b.ml==null&&pui.currentFormatNames.push(p);if(h!=null){if(pui.R(h["show as window"],r,b.ref)=="true")t=true;if(h["window reference"]!=null&&h["window reference"]!="")t=true}if(!f&&B){p=p||pui.format;pui.Z[p]={};var E=pui.handler==null?p+".":"";F=b.metaData.screen["return cursor record"];if(pui.p(F)){if(pui.Ba.record==null)pui.Ba.record={};pui.Ba.record[E+pui.L(F.fieldName)]=true}F=b.metaData.screen["return cursor field"];if(pui.p(F)){if(pui.Ba.field==null)pui.Ba.field={};pui.Ba.field[E+pui.L(F.fieldName)]=
577
577
  true}F=b.metaData.screen["return cursor position"];if(pui.p(F)){if(pui.Ba.position==null)pui.Ba.position={};pui.Ba.position[E+pui.L(F.fieldName)]=true}F=b.metaData.screen["return cursor row"];if(pui.p(F)){if(pui.Ba.row==null)pui.Ba.row={};pui.Ba.row[E+pui.L(F.fieldName)]=true}F=b.metaData.screen["return cursor column"];if(pui.p(F)){if(pui.Ba.column==null)pui.Ba.column={};pui.Ba.column[E+pui.L(F.fieldName)]=true}F=b.metaData.screen.changed;if(pui.p(F))pui.Fk[p]=E+pui.L(F.fieldName);F=b.metaData.screen["window left"];
578
578
  if(pui.p(F))pui.zm=E+pui.L(F.fieldName);F=b.metaData.screen["window top"];if(pui.p(F))pui.Bm=E+pui.L(F.fieldName);F=b.metaData.screen["valid command key"];if(pui.p(F))pui.xm=E+pui.L(F.fieldName);F=b.metaData.screen["back button"];if(pui.p(F))pui.qi=E+pui.L(F.fieldName);F=b.metaData.screen["dd element id"];if(pui.p(F))pui.mb.Yn=E+pui.L(F.fieldName);F=b.metaData.screen["dd record number"];if(pui.p(F))pui.mb.Zn=E+pui.L(F.fieldName);F=b.metaData.screen["target element id"];if(pui.p(F))pui.mb.fq=E+pui.L(F.fieldName);
579
- F=b.metaData.screen["target record number"];if(pui.p(F))pui.mb.gq=E+pui.L(F.fieldName);E=1;for(F=b.metaData.screen["set off"];pui.p(F);){pui.km.push(p+"."+pui.L(F.fieldName));E++;F=b.metaData.screen["set off "+E]}pui.Xn=pui.R(h["bypass validation"],r,b.ref);pui.r.Tf=pui.R(h["set cursor row"],r,b.ref);pui.r.Me=pui.R(h["set cursor column"],r,b.ref);pui.r.Od=pui.R(h["no focus"],r,b.ref);if(pui.r.Od=="true")pui.r.Od=true;if(pui["no focus"]=="true"||pui["no focus"]==true)pui.r.Od=true;if(pui.p(h["set cursor condition"])){F=
579
+ F=b.metaData.screen["target record number"];if(pui.p(F))pui.mb.gq=E+pui.L(F.fieldName);E=1;for(F=b.metaData.screen["set off"];pui.p(F);){pui.km.push(p+"."+pui.L(F.fieldName));E++;F=b.metaData.screen["set off "+E]}pui.Xn=pui.R(h["bypass validation"],r,b.ref);pui.r.Tf=pui.R(h["set cursor row"],r,b.ref);pui.r.Me=pui.R(h["set cursor column"],r,b.ref);pui.r.Nd=pui.R(h["no focus"],r,b.ref);if(pui.r.Nd=="true")pui.r.Nd=true;if(pui["no focus"]=="true"||pui["no focus"]==true)pui.r.Nd=true;if(pui.p(h["set cursor condition"])){F=
580
580
  pui.R(h["set cursor condition"],r,b.ref);if(F!=true&&F!="true"){pui.r.Tf=null;pui.r.Me=null}}if(b.kl&&h["strict tab control"]!=null&&h["strict tab control"]!="")A=pui.R(h["strict tab control"],r,b.ref)==="true"}if(f){n.Na.name=h["record format name"];if(n.Na.name==null||n.Na.name=="")n.Na.name="[Unnamed Screen]";for(D in h){var C=h[D];n.Rp[n.Na.ub][D]=C;n.FA[n.Na.ub][D]=true;if(pui.wf.jq&&pui.$b(C))if(f){G={};if(b.qx)G=null;if(pui.display&&typeof pui.display.logic==="object"&&typeof pui.display.logic[C.routine]===
581
- "object")G=pui.display.logic[C.routine];pui.wf.jq.update({name:C.routine,e:n,designer:n,property:D,data:G})}}n.Bz=l;n.PA=o}if(!f&&B)if(pui.R(h["disable enter key"],r,b.ref)=="true")pui.eo=true;var K=Dc();l=[];o=[];F=[];var R={},N=false;if(b.lq!==undefined&&b.lq!==null){g.push(b.lq);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.Fj!=null&&g[E]["field type"]=="output field"&&g[E].visibility=="hidden"){var M=
582
- parseInt(g[E].top),W=parseInt(g[E].left);if(!isNaN(M)&&M<0&&!isNaN(W)&&W<0)continue}if(!f){M=g[E]["auto arrange"]||"false";if(M=="true"||pui.p(M)&&pui.R(M,r,b.ref)=="true"){M=g[E].visibility;if(M=="hidden"||pui.p(M)&&pui.R(M,r,b.ref)=="hidden")g[E]["shortcut key"]!=null&&delete g[E]["shortcut key"]}}if(!f&&g[E]["shortcut key"]!=null){M=g[E].disabled;if(M=="true"||pui.p(M)&&pui.R(M,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"]=
583
- g[E]["csv file name"];W=M=null;var Q=g[E].grid,ha=g[E].layout;if(Q!=null){var Y=Bb(Q);if(Y!=null){M=Y.grid;W=Number(g[E].column);if(g[E].columnId==undefined)g[E].columnId=W;if(f)W=M.cells[M.h?1:0][W];else{if(b.Fj!=null)W=M.cells[b.Fj][W];else{g[E].domEls!=null&&delete g[E].domEls;M.C.push(g[E]);continue}G="";G+=pui.ho(g[E],pui.xd,false,M.Bu);G!=""&&pui.alert("Missing translation data:\n\n"+G)}}else if(R[Q]!=null){a(Q,g[E]);continue}}else if(ha!=null){var X=Bb(ha);if(X!=null&&X.layout!=null){W=Number(g[E].container);
584
- if(R[ha]!=null){a(ha,g[E],W);continue}else W=X.layout.wc[W-1]}else if(R[ha]!=null){a(ha,g[E]);continue}}if(W==null)W=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(W!=null){W.appendChild(y);if(y.Jh==true){y.style.display="";y.Jh=false}if(y.calimg!=null){W.appendChild(y.calimg);y.calimg.lt&&pui.ul(y);if(y.calimg.Jh){y.calimg.style.display="";y.calimg.Jh=false}}if(y.xc!=null)for(ha=0;ha<y.xc.length;ha++){W.appendChild(y.xc[ha]);if(y.xc[ha].Jh==
585
- true){y.xc[ha].style.display="";y.xc[ha].Jh=false}}if(y.$k===true){pui.kw(y);y.$k=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.Zk(y,b.Y.text);y.$k=true}}}else{y=document.createElement("div");y.style.position="absolute";y.setAttribute("puiwdgt",g[E]["field type"]);var ea=g[E].left;ha=g[E].top;if(pui.p(ea))ea="0px";if(pui.p(ha))ha="0px";if(ea=="NaNpx")ea="0px";if(ha=="NaNpx")ha="0px";if(g[E].left!=null)y.style.left=ea;if(g[E].top!=
586
- null)y.style.top=ha;if(!f&&g[E]["parent tab panel"]!=null&&g[E]["parent tab panel"]!="")y.style.visibility="hidden";if(W!=null)g[E].gx!=null?W.insertBefore(y,g[E].gx):W.appendChild(y);ea={};ha=null;if(f){ha=n.addItem(y,true);ha.properties=ea;ha.properties.newitem="true";ha.pb.newitem=true;X=g[E]["field type"];if(X=="styled button"||X=="panel"||X=="css panel"||X=="css button"||X=="Layout")ha.dom.style.borderStyle="none"}var aa=X=null;for(var na in g[E])if(na!="domEls"){C=g[E][na];if(pui.wf.jq&&pui.$b(C))if(f){G=
587
- {};if(b.qx)G=null;if(pui.display&&typeof pui.display==="object"&&typeof pui.display.logic==="object"&&typeof pui.display.logic[C.routine]==="object")G=pui.display.logic[C.routine];pui.wf.jq.update({name:C.routine,e:ha,designer:n,property:na,data:G})}if(pui.p(C))if(f)G=C;else{if(pui.mx(na))y.Io=true;if(C.longName&&C.fieldName)if(!C.lowerCaseField&&pui.handler==null){pui.Gf[pui.L(C.longName)]=pui.L(C.fieldName);pui.Gf[pui.L(C.fieldName)]=pui.L(C.longName)}else{pui.Gf[C.longName]=C.fieldName;pui.Gf[C.fieldName]=
588
- C.longName}if(g[E]["field type"]=="grid"&&(na=="row background"||na=="row font color"))G="";else if(na.includes("grid row translation placeholder value")&&g[E]["field type"]=="grid")G=C;else if(na.includes("translation placeholder value")&&g[E].grid!=null)G=C;else{C.revert=false;G=pui.R(C,r,b.ref);if((na=="range low"||na=="range high")&&C.dataType=="date"){Y=C.dateFormat;var ma;C.dateFormat="Y-m-d";ma=pui.R(C,r,b.ref);C.dateFormat=Y;if(na=="range low")X=ma;else aa=ma}}if(na=="value"||na=="html"){y.mc=
589
- p;y.Sc=pui.L(C.fieldName);if(y.pui==null)y.pui={};y.pui.formatName=p;y.pui.fieldName=y.Sc;if(g[E]["field type"]=="textbox"){Y=pui.R(g[E]["choices database file"],r,b.ref);if(Y!=null&&Y!=""){Y=pui.R(g[E]["choice options field"],r,b.ref);var sa;if(Y!=null)sa=pui.ha(Y)[0];Y=pui.R(g[E]["choice values field"],r,b.ref);if(sa!=null&&sa!=""&&Y!=null&&Y!=""&&sa!=Y){C.formatting="Text";C.Ce=null;C.maxLength=null}}Y=pui.R(g[E]["choices url"],r,b.ref);if(Y!=null&&Y!=""&&C.formatting=="Number"){C.formatting="Text";
590
- C.Ce=null;C.maxLength=null}}}if(na=="cursor record number")pui.Hk[(pui.handler==null?p+".":"")+pui.L(C.fieldName)]=y;else if(na=="subfile return rrn")pui.Yl[(pui.handler==null?p+".":"")+pui.L(C.fieldName)]=y;else if(na=="return mode")pui.lm[(pui.handler==null?p+".":"")+pui.L(C.fieldName)]=y;else if(na=="column sort response")y.gh=(pui.handler==null?p+".":"")+pui.L(C.fieldName);else if(na=="field name sort response"){y.qg=(pui.handler==null?p+".":"")+pui.L(C.fieldName);y.hs=C.dataLength}else if(na==
591
- "initial sort field")y.fx=C.dataLength;else if(na=="filter response")y.js=(pui.handler==null?p+".":"")+pui.L(C.fieldName);else if(na=="subfile changed")pui.eq[ea["record format name"].toLowerCase()]=pui.L(C.fieldName);if(na=="column sort response"||na=="field name sort response")if(pui.p(g[E]["return sort order"]))y.Lh=(pui.handler==null?p+".":"")+pui.L(g[E]["return sort order"].fieldName)}else{if(!f&&W!=null&&W.Ac){if(W.pu==null)W.pu="";if(na=="id"||na=="top"||na=="left")W.pu+=C}G=C;if((na=="range low"||
592
- na=="range high")&&g[E].value&&g[E].value.dataType=="date"){Y=g[E].value;ma={};ma.dataType=Y.dataType;ma.dateFormat=Y.dateFormat;ma.formatting=Y.formatting;ma.locale=Y.locale;ma.value=G;ma.Ke=true;ma=pui.tc.format(ma);if(na=="range low")X=ma;else aa=ma}}if(g[E].grid!=null&&!f)switch(na){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":ma=
593
- null;Y=Bb(g[E].grid);if(Y!=null){ma=Y.grid.Bu;if(ma!=null)if(ma.keys!=null&&ma.values!=null){Y={keys:[],values:[]};for(key in ma.keys)Y.keys.push(ma.keys[key]);for(value in ma.values)Y.values.push(pui.R(ma.values[value],r,b.ref));Y=pui.kr(g[E],Y,r,b.ref);for(ma=0;ma<Y.keys.length;ma++)G=G.replaceAll("(&"+Y.keys[ma]+")",Y.values[ma])}}}ea[na]=G}if(ea["field type"]=="tab panel"||ea["field type"]=="layout"&&ea.template=="tab panel"){G=ea.id;l.push(G);Zc[G]!=null?o.push(Zc[G]):o.push($b(ea["active tab"],
581
+ "object")G=pui.display.logic[C.routine];pui.wf.jq.update({name:C.routine,e:n,designer:n,property:D,data:G})}}n.Bz=l;n.PA=o}if(!f&&B)if(pui.R(h["disable enter key"],r,b.ref)=="true")pui.eo=true;var K=Dc();l=[];o=[];F=[];var L={},Q=false;if(b.lq!==undefined&&b.lq!==null){g.push(b.lq);Q=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.Fj!=null&&g[E]["field type"]=="output field"&&g[E].visibility=="hidden"){var N=
582
+ parseInt(g[E].top),X=parseInt(g[E].left);if(!isNaN(N)&&N<0&&!isNaN(X)&&X<0)continue}if(!f){N=g[E]["auto arrange"]||"false";if(N=="true"||pui.p(N)&&pui.R(N,r,b.ref)=="true"){N=g[E].visibility;if(N=="hidden"||pui.p(N)&&pui.R(N,r,b.ref)=="hidden")g[E]["shortcut key"]!=null&&delete g[E]["shortcut key"]}}if(!f&&g[E]["shortcut key"]!=null){N=g[E].disabled;if(N=="true"||pui.p(N)&&pui.R(N,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"]=
583
+ g[E]["csv file name"];X=N=null;var T=g[E].grid,ia=g[E].layout;if(T!=null){var ca=Bb(T);if(ca!=null){N=ca.grid;X=Number(g[E].column);if(g[E].columnId==undefined)g[E].columnId=X;if(f)X=N.cells[N.h?1:0][X];else{if(b.Fj!=null)X=N.cells[b.Fj][X];else{g[E].domEls!=null&&delete g[E].domEls;N.C.push(g[E]);continue}G="";G+=pui.ho(g[E],pui.wd,false,N.Bu);G!=""&&pui.alert("Missing translation data:\n\n"+G)}}else if(L[T]!=null){a(T,g[E]);continue}}else if(ia!=null){var W=Bb(ia);if(W!=null&&W.layout!=null){X=
584
+ Number(g[E].container);if(L[ia]!=null){a(ia,g[E],X);continue}else X=W.layout.wc[X-1]}else if(L[ia]!=null){a(ia,g[E]);continue}}if(X==null)X=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(X!=null){X.appendChild(y);if(y.Jh==true){y.style.display="";y.Jh=false}if(y.calimg!=null){X.appendChild(y.calimg);y.calimg.lt&&pui.ul(y);if(y.calimg.Jh){y.calimg.style.display="";y.calimg.Jh=false}}if(y.xc!=null)for(ia=0;ia<y.xc.length;ia++){X.appendChild(y.xc[ia]);
585
+ if(y.xc[ia].Jh==true){y.xc[ia].style.display="";y.xc[ia].Jh=false}}if(y.$k===true){pui.kw(y);y.$k=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.Zk(y,b.Y.text);y.$k=true}}}else{y=document.createElement("div");y.style.position="absolute";y.setAttribute("puiwdgt",g[E]["field type"]);var ea=g[E].left;ia=g[E].top;if(pui.p(ea))ea="0px";if(pui.p(ia))ia="0px";if(ea=="NaNpx")ea="0px";if(ia=="NaNpx")ia="0px";if(g[E].left!=null)y.style.left=
586
+ ea;if(g[E].top!=null)y.style.top=ia;if(!f&&g[E]["parent tab panel"]!=null&&g[E]["parent tab panel"]!="")y.style.visibility="hidden";if(X!=null)g[E].gx!=null?X.insertBefore(y,g[E].gx):X.appendChild(y);ea={};ia=null;if(f){ia=n.addItem(y,true);ia.properties=ea;ia.properties.newitem="true";ia.pb.newitem=true;W=g[E]["field type"];if(W=="styled button"||W=="panel"||W=="css panel"||W=="css button"||W=="Layout")ia.dom.style.borderStyle="none"}var Z=W=null;for(var na in g[E])if(na!="domEls"){C=g[E][na];if(pui.wf.jq&&
587
+ pui.$b(C))if(f){G={};if(b.qx)G=null;if(pui.display&&typeof pui.display==="object"&&typeof pui.display.logic==="object"&&typeof pui.display.logic[C.routine]==="object")G=pui.display.logic[C.routine];pui.wf.jq.update({name:C.routine,e:ia,designer:n,property:na,data:G})}if(pui.p(C))if(f)G=C;else{if(pui.mx(na))y.Io=true;if(C.longName&&C.fieldName)if(!C.lowerCaseField&&pui.handler==null){pui.Gf[pui.L(C.longName)]=pui.L(C.fieldName);pui.Gf[pui.L(C.fieldName)]=pui.L(C.longName)}else{pui.Gf[C.longName]=C.fieldName;
588
+ pui.Gf[C.fieldName]=C.longName}if(g[E]["field type"]=="grid"&&(na=="row background"||na=="row font color"))G="";else if(na.includes("grid row translation placeholder value")&&g[E]["field type"]=="grid")G=C;else if(na.includes("translation placeholder value")&&g[E].grid!=null)G=C;else{C.revert=false;G=pui.R(C,r,b.ref);if((na=="range low"||na=="range high")&&C.dataType=="date"){ca=C.dateFormat;var ma;C.dateFormat="Y-m-d";ma=pui.R(C,r,b.ref);C.dateFormat=ca;if(na=="range low")W=ma;else Z=ma}}if(na==
589
+ "value"||na=="html"){y.mc=p;y.Sc=pui.L(C.fieldName);if(y.pui==null)y.pui={};y.pui.formatName=p;y.pui.fieldName=y.Sc;if(g[E]["field type"]=="textbox"){ca=pui.R(g[E]["choices database file"],r,b.ref);if(ca!=null&&ca!=""){ca=pui.R(g[E]["choice options field"],r,b.ref);var sa;if(ca!=null)sa=pui.ha(ca)[0];ca=pui.R(g[E]["choice values field"],r,b.ref);if(sa!=null&&sa!=""&&ca!=null&&ca!=""&&sa!=ca){C.formatting="Text";C.Ce=null;C.maxLength=null}}ca=pui.R(g[E]["choices url"],r,b.ref);if(ca!=null&&ca!=""&&
590
+ C.formatting=="Number"){C.formatting="Text";C.Ce=null;C.maxLength=null}}}if(na=="cursor record number")pui.Hk[(pui.handler==null?p+".":"")+pui.L(C.fieldName)]=y;else if(na=="subfile return rrn")pui.Yl[(pui.handler==null?p+".":"")+pui.L(C.fieldName)]=y;else if(na=="return mode")pui.lm[(pui.handler==null?p+".":"")+pui.L(C.fieldName)]=y;else if(na=="column sort response")y.gh=(pui.handler==null?p+".":"")+pui.L(C.fieldName);else if(na=="field name sort response"){y.qg=(pui.handler==null?p+".":"")+pui.L(C.fieldName);
591
+ y.hs=C.dataLength}else if(na=="initial sort field")y.fx=C.dataLength;else if(na=="filter response")y.js=(pui.handler==null?p+".":"")+pui.L(C.fieldName);else if(na=="subfile changed")pui.eq[ea["record format name"].toLowerCase()]=pui.L(C.fieldName);if(na=="column sort response"||na=="field name sort response")if(pui.p(g[E]["return sort order"]))y.Lh=(pui.handler==null?p+".":"")+pui.L(g[E]["return sort order"].fieldName)}else{if(!f&&X!=null&&X.Ac){if(X.pu==null)X.pu="";if(na=="id"||na=="top"||na=="left")X.pu+=
592
+ C}G=C;if((na=="range low"||na=="range high")&&g[E].value&&g[E].value.dataType=="date"){ca=g[E].value;ma={};ma.dataType=ca.dataType;ma.dateFormat=ca.dateFormat;ma.formatting=ca.formatting;ma.locale=ca.locale;ma.value=G;ma.Ke=true;ma=pui.tc.format(ma);if(na=="range low")W=ma;else Z=ma}}if(g[E].grid!=null&&!f)switch(na){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":ma=
593
+ null;ca=Bb(g[E].grid);if(ca!=null){ma=ca.grid.Bu;if(ma!=null)if(ma.keys!=null&&ma.values!=null){ca={keys:[],values:[]};for(key in ma.keys)ca.keys.push(ma.keys[key]);for(value in ma.values)ca.values.push(pui.R(ma.values[value],r,b.ref));ca=pui.kr(g[E],ca,r,b.ref);for(ma=0;ma<ca.keys.length;ma++)G=G.replaceAll("(&"+ca.keys[ma]+")",ca.values[ma])}}}ea[na]=G}if(ea["field type"]=="tab panel"||ea["field type"]=="layout"&&ea.template=="tab panel"){G=ea.id;l.push(G);Zc[G]!=null?o.push(Zc[G]):o.push($b(ea["active tab"],
594
594
  "",y))}for(D in ea){G=y.Gh==null?pui.Mi(K,D):pui.Mi(y.Gh,D);if(G!=null){C=ea[D];if(!f){var qa=g[E][D];if(pui.p(qa)){qa.revert=false;if(pui.is_touch&&!pui.is_mouse_capable&&D=="value"&&ea["field type"]=="textbox"&&qa.formatting=="Number")if(qa.numSep!="true"&&qa.numBlankFill!="true"&&qa.negNum!="(999.00)"&&qa.negNum!="999.00-"&&qa.negNum!="999.00 CR"&&(!qa.edtWrd||qa.edtWrd=="")&&(!qa.edtMsk||qa.edtMsk=="")&&(!qa.curSym||qa.curSym=="")&&(!qa.units||qa.units=="")&&pui.appJob.decimalFormat!="I"&&pui.appJob.decimalFormat!=
595
- "J"){y.type="number";qa.maxLength>0&&T(y,"textInput",function(da){var ia=ub(da);if(!(ia==null||ia.value==null))if(da.data=="-"&&ia.validity!=null&&(ia.value!=""&&ia.validity.valid||!ia.validity.valid))vb(da);else ia.maxLength>0&&ia.value.length>=ia.maxLength&&vb(da)})}var Ka,ga;if(D=="changed"){c();if(pui.eh[ga]==null)pui.eh[ga]=[];pui.eh[ga].push(y)}if(D=="is blank"){c();if(pui.uh[ga]==null)pui.uh[ga]=[];pui.uh[ga].push(y)}if(D=="dup key response"&&ea["allow dup key"]=="true"){c();if(pui.nh[ga]==
596
- null)pui.nh[ga]=[];pui.nh[ga].push(y)}if(pui.Us(D,y)){c();if(D=="radio button group"){Y=Ka;if(b.o!=null)Y+="."+b.o;y.name=Y;if(pui.is_old_ie){var ua;try{ua=document.createElement('<input name="'+Y+'" type="radio">')}catch(Pa){ua=document.createElement("input");ua.name=Y;ua.type="radio"}ua.style.position=y.style.position;ua.style.left=y.style.left;ua.style.top=y.style.top;ua.style.visibility=y.style.visibility;ua.style.display=y.style.display;ua.id=y.id;ua.value=y.value;ua.xc=y.xc;ua.Ld=y.Ld;ua.modified=
597
- y.modified;ua.disabled=y.disabled;y.parentNode.replaceChild(ua,y);ua.checked=y.checked;ua.Wa=y.Wa;ua.eb=y.eb;ua.onblur=y.onblur;ua.onchange=y.onchange;ua.oninput=y.oninput;ua.onclick=y.onclick;ua.ondblclick=y.ondblclick;ua.onfocus=y.onfocus;ua.onkeydown=y.onkeydown;ua.onkeypress=y.onkeypress;ua.onkeyup=y.onkeyup;ua.onmousedown=y.onmousedown;ua.onmousemove=y.onmousemove;ua.onmouseout=y.onmouseout;ua.onmouseover=y.onmouseover;ua.onmouseup=y.onmouseup;ua.pui=y.pui;y=ua}y.radioValue=ea.value}Y=M!=null&&
598
- M.ea()==true;if(!Y&&pui.O[ga]==null)pui.O[ga]=[];if(!Y&&pui.O[ga][0]!=null&&pui.O[ga][0].cj){pui.O[ga]=[];y.modified=true;pui.modified=true}if(D=="page down response"){pui.O[ga].push(y.grid.i.ka);pui.O[ga].push(y.grid.i.na)}else if(D=="page up response"){pui.O[ga].push(y.grid.i.xa);pui.O[ga].push(y.grid.i.oa)}else Y||pui.O[ga].push(y);if(D=="menu response")y.S="";if(D=="upload response")y.fileUpload.Yx=ga;if(D=="chart response")y.S="";if(D=="tab response")if(Y=y.tabPanel)Y.dm=true;if(D=="active tab")if(Y=
599
- y.tabPanel)Y.bm=true;if(D=="response"){Y=ea["shortcut key"];if(Y!=null&&Y!=""){if(pui.Z[p]==null)pui.Z[p]={};if(pui.Z[p][Y]==null)pui.Z[p][Y]=[];pui.Z[p][Y].push(y);y.vd=Y}if(Q==null)y.S="0";if(ea.onclick==null||ea.onclick==""||pui.$b(ea.onclick)){if(pui.$b(ea.onclick))y.La=ea.onclick.routine;pui.kg(y)}}if(D=="page down response"){if(pui.Z[p].PageDown==null)pui.Z[p].PageDown=[];pui.Z[p].PageDown.push(y.grid.i.na);pui.kg(y.grid.i.ka);pui.kg(y.grid.i.na);y.grid.i.ka.N=qa;y.grid.i.na.N=qa}if(D=="page up response"){if(pui.Z[p].PageUp==
600
- null)pui.Z[p].PageUp=[];pui.Z[p].PageUp.push(y.grid.i.oa);pui.kg(y.grid.i.xa);pui.kg(y.grid.i.oa);y.grid.i.xa.N=qa;y.grid.i.oa.N=qa}y.N=qa}else if(y.pui&&y.pui.widget&&wd(y.pui.widget,D)){c();if(pui.O[ga]==null)pui.O[ga]=[];pui.O[ga].push(y);xd(y.pui.widget,D,qa,ga)}}if(D=="selection field"&&ea["field type"]=="grid")if(pui.p(g[E]["selection field"]))y.grid.Cb=g[E]["selection field"];if(D=="row is hidden field"&&ea["field type"]=="grid")if(pui.p(g[E]["row is hidden field"]))y.grid.ye=g[E]["row is hidden field"];
601
- if(D=="tree level field"&&ea["field type"]=="grid")if(pui.p(g[E]["tree level field"])){y.grid.Uf=g[E]["tree level field"].fieldName;y.grid.xg=true;y.grid.sortable=false;if(y.grid.Qe==null)y.grid.Qe=0}if(D=="row font color"&&ea["field type"]=="grid")if(pui.p(g[E][D]))y.grid.Dj=g[E][D];if(D=="row background"&&ea["field type"]=="grid")if(pui.p(g[E][D]))y.grid.Bj=g[E][D];if(D.includes("grid row translation placeholders")&&ea["field type"]=="grid")y.grid.Bu=pui.Bk(null,g[E],null,r,b.ref);if(D=="shortcut key"&&
602
- C!=null&&C!=""&&!pui.p(g[E].response)){if(pui.Z[p]==null)pui.Z[p]={};if(pui.Z[p][C]==null)pui.Z[p][C]=[];pui.Z[p][C].push(y);y.vd=C;if(Q==null)y.S="0";if(ea.onclick==null||ea.onclick==""||pui.$b(ea.onclick)){if(pui.$b(ea.onclick))y.La=ea.onclick.routine;pui.kg(y)}}if(D=="id"&&b.o!=null){C+="."+b.o;ea[D]=C}if(D=="set focus"&&C=="true")if(pui.W.dom==null||pui.W.Hg!=true)if(ea.visibility!="hidden"){pui.W.dom=y;if(y.comboBoxWidget!=null)pui.W.dom=y.comboBoxWidget.getBox();if(y.l!=null)pui.W.dom=y.l.getBox();
603
- pui.W.Hg=true}if(D=="focus class"&&!pui.p(C)&&Lb(C)!="")if(y.pui.properties["field type"]==="combo box"){Y=y.comboBoxWidget.getBox();Y.focusClass=Lb(C);T(Y,"focus",pui.xk);T(Y,"blur",pui.Sl)}else{y.focusClass=Lb(C);T(y,"focus",pui.xk);T(y,"blur",pui.Sl)}if(D=="required"&&C=="true"){y.Pl=true;if(y.l!=null)y.l.getBox().Pl=true}if(D=="mandatory entry"&&C=="true")y.xq=true;if(D=="mandatory fill"&&C=="true")y.yq=true;if(D=="valid values"&&C!=null&&C!="")y.oq=C;if(D=="allow blanks"&&C=="true")y.nr=true;
604
- if(D=="auto advance"&&C=="true"){var ra=y;if(y.comboBoxWidget!=null)ra=y.comboBoxWidget.getBox();if(y.l!=null)ra=y.l.getBox();ra.zn=true;T(ra,"keyup",pui.An)}D=="allow dup key"&&C=="true"&&T(y,"keydown",pui.ow);Y=false;if((pui["always allow field exit"]==true||pui["always allow field exit"]=="true")&&(ea["field type"]=="combo box"||ea["field type"]=="date field"||ea["field type"]=="spinner"||ea["field type"]=="textbox"))Y=true;if(D=="allow field exit"&&C=="true")Y=true;if(Y==true){ra=y;if(y.comboBoxWidget!=
605
- null)ra=y.comboBoxWidget.getBox();if(y.l!=null)ra=y.l.getBox();if(pui.p(g[E].value)&&g[E].value.rjZeroFill=="true"){y.Xt=true;ra.Xt=true}T(ra,"keydown",function(da){da=da||window.event;var ia=da.keyCode;if((ia==pui["field exit key"]||ia==pui["field exit minus key"])&&!da.shiftKey&&(pui["field exit key"]==17||!da.ctrlKey)){var va=ub(da);pui.cq(va);if(pui.Xr(va,ia==pui["field exit minus key"])==false){vb(da);return false}}})}if(D=="validate name"&&C=="true")y.validateName=true;if(D=="validate email"&&
606
- C=="true")y.validateEmail=true;if(D=="set as modified"&&C=="true"){y.modified=true;pui.modified=true;if(b.o==null)pui.kf[p]=true}if(D.length>=11&&D.substr(0,11)=="blank value"&&C!=null&&C!=""){if(y.ri==null)y.ri=[];y.ri.push(C);Y=y;if(y.l!=null)Y=y.l.getBox();if(y.comboBoxWidget!=null)Y=y.comboBoxWidget.getBox();if((Y.tagName=="DIV"?Oc(Y):Y.value)==C)if(Y.tagName=="DIV")Y.innerHTML="";else Y.value=""}if(D=="comparison operator"&&C!=null&&C!="")y.Rn=C;if(D=="comparison value"&&C!=null&&C!="")y.Sn=
607
- C;if(D=="range low"&&C!=null&&C!=""){y.Ih=C;if(X!=null)y.$x=X}if(D=="range high"&&C!=null&&C!=""){y.Hh=C;if(aa!=null)y.Zx=aa}if(D=="checked value")y.checkedValue=C;if(D=="unchecked value")y.uncheckedValue=C;if(D=="indeterminate value")y.indeterminateValue=C;if(D=="cursor row")y.mf=C;if(D=="cursor column")y.oe=C;if(D=="bypass validation")y.G=C;if(D=="auto arrange"&&C=="true")if(b.jl!=true){y.style.display="none";y.style.visibility="hidden";y.removeAttribute("id")}else if(ea.visibility!="hidden"){Y=
608
- ea["shortcut key"];if(pui.ia.keys[Y]==true){y.style.display="none";y.style.visibility="hidden"}else{if(Y!=null)pui.ia.keys[Y]=true;if(t||pui["horizontal auto arrange"]){if(pui.ia.top==null)pui.ia.top=parseInt(y.style.top);if(pui.ia.left==null){pui.ia.left=parseInt(y.style.left);pui.ia.hb=parseInt(y.style.left)}else if(pui["horizontal auto arrange"]){if(pui.ia.Ck==null)pui.ia.Ck=0;if(pui.ia.Fa==null)pui.ia.Fa=parseInt(y.style.top);pui.ia.Ck++;pui.ia.left=pui.ia.hb+pui.ia.Ck%pui["buttons per row"]*
595
+ "J"){y.type="number";qa.maxLength>0&&S(y,"textInput",function(da){var ha=ub(da);if(!(ha==null||ha.value==null))if(da.data=="-"&&ha.validity!=null&&(ha.value!=""&&ha.validity.valid||!ha.validity.valid))vb(da);else ha.maxLength>0&&ha.value.length>=ha.maxLength&&vb(da)})}var Ka,ga;if(D=="changed"){c();if(pui.eh[ga]==null)pui.eh[ga]=[];pui.eh[ga].push(y)}if(D=="is blank"){c();if(pui.uh[ga]==null)pui.uh[ga]=[];pui.uh[ga].push(y)}if(D=="dup key response"&&ea["allow dup key"]=="true"){c();if(pui.nh[ga]==
596
+ null)pui.nh[ga]=[];pui.nh[ga].push(y)}if(pui.Us(D,y)){c();if(D=="radio button group"){ca=Ka;if(b.o!=null)ca+="."+b.o;y.name=ca;if(pui.is_old_ie){var ua;try{ua=document.createElement('<input name="'+ca+'" type="radio">')}catch(Pa){ua=document.createElement("input");ua.name=ca;ua.type="radio"}ua.style.position=y.style.position;ua.style.left=y.style.left;ua.style.top=y.style.top;ua.style.visibility=y.style.visibility;ua.style.display=y.style.display;ua.id=y.id;ua.value=y.value;ua.xc=y.xc;ua.Kd=y.Kd;
597
+ ua.modified=y.modified;ua.disabled=y.disabled;y.parentNode.replaceChild(ua,y);ua.checked=y.checked;ua.Wa=y.Wa;ua.eb=y.eb;ua.onblur=y.onblur;ua.onchange=y.onchange;ua.oninput=y.oninput;ua.onclick=y.onclick;ua.ondblclick=y.ondblclick;ua.onfocus=y.onfocus;ua.onkeydown=y.onkeydown;ua.onkeypress=y.onkeypress;ua.onkeyup=y.onkeyup;ua.onmousedown=y.onmousedown;ua.onmousemove=y.onmousemove;ua.onmouseout=y.onmouseout;ua.onmouseover=y.onmouseover;ua.onmouseup=y.onmouseup;ua.pui=y.pui;y=ua}y.radioValue=ea.value}ca=
598
+ N!=null&&N.ea()==true;if(!ca&&pui.O[ga]==null)pui.O[ga]=[];if(!ca&&pui.O[ga][0]!=null&&pui.O[ga][0].cj){pui.O[ga]=[];y.modified=true;pui.modified=true}if(D=="page down response"){pui.O[ga].push(y.grid.i.ka);pui.O[ga].push(y.grid.i.na)}else if(D=="page up response"){pui.O[ga].push(y.grid.i.xa);pui.O[ga].push(y.grid.i.oa)}else ca||pui.O[ga].push(y);if(D=="menu response")y.S="";if(D=="upload response")y.fileUpload.Yx=ga;if(D=="chart response")y.S="";if(D=="tab response")if(ca=y.tabPanel)ca.dm=true;if(D==
599
+ "active tab")if(ca=y.tabPanel)ca.bm=true;if(D=="response"){ca=ea["shortcut key"];if(ca!=null&&ca!=""){if(pui.Z[p]==null)pui.Z[p]={};if(pui.Z[p][ca]==null)pui.Z[p][ca]=[];pui.Z[p][ca].push(y);y.ud=ca}if(T==null)y.S="0";if(ea.onclick==null||ea.onclick==""||pui.$b(ea.onclick)){if(pui.$b(ea.onclick))y.La=ea.onclick.routine;pui.kg(y)}}if(D=="page down response"){if(pui.Z[p].PageDown==null)pui.Z[p].PageDown=[];pui.Z[p].PageDown.push(y.grid.i.na);pui.kg(y.grid.i.ka);pui.kg(y.grid.i.na);y.grid.i.ka.N=qa;
600
+ y.grid.i.na.N=qa}if(D=="page up response"){if(pui.Z[p].PageUp==null)pui.Z[p].PageUp=[];pui.Z[p].PageUp.push(y.grid.i.oa);pui.kg(y.grid.i.xa);pui.kg(y.grid.i.oa);y.grid.i.xa.N=qa;y.grid.i.oa.N=qa}y.N=qa}else if(y.pui&&y.pui.widget&&wd(y.pui.widget,D)){c();if(pui.O[ga]==null)pui.O[ga]=[];pui.O[ga].push(y);xd(y.pui.widget,D,qa,ga)}}if(D=="selection field"&&ea["field type"]=="grid")if(pui.p(g[E]["selection field"]))y.grid.Cb=g[E]["selection field"];if(D=="row is hidden field"&&ea["field type"]=="grid")if(pui.p(g[E]["row is hidden field"]))y.grid.ye=
601
+ g[E]["row is hidden field"];if(D=="tree level field"&&ea["field type"]=="grid")if(pui.p(g[E]["tree level field"])){y.grid.Uf=g[E]["tree level field"].fieldName;y.grid.xg=true;y.grid.sortable=false;if(y.grid.Qe==null)y.grid.Qe=0}if(D=="row font color"&&ea["field type"]=="grid")if(pui.p(g[E][D]))y.grid.Dj=g[E][D];if(D=="row background"&&ea["field type"]=="grid")if(pui.p(g[E][D]))y.grid.Bj=g[E][D];if(D.includes("grid row translation placeholders")&&ea["field type"]=="grid")y.grid.Bu=pui.Bk(null,g[E],
602
+ null,r,b.ref);if(D=="shortcut key"&&C!=null&&C!=""&&!pui.p(g[E].response)){if(pui.Z[p]==null)pui.Z[p]={};if(pui.Z[p][C]==null)pui.Z[p][C]=[];pui.Z[p][C].push(y);y.ud=C;if(T==null)y.S="0";if(ea.onclick==null||ea.onclick==""||pui.$b(ea.onclick)){if(pui.$b(ea.onclick))y.La=ea.onclick.routine;pui.kg(y)}}if(D=="id"&&b.o!=null){C+="."+b.o;ea[D]=C}if(D=="set focus"&&C=="true")if(pui.W.dom==null||pui.W.Hg!=true)if(ea.visibility!="hidden"){pui.W.dom=y;if(y.comboBoxWidget!=null)pui.W.dom=y.comboBoxWidget.getBox();
603
+ if(y.l!=null)pui.W.dom=y.l.getBox();pui.W.Hg=true}if(D=="focus class"&&!pui.p(C)&&Lb(C)!="")if(y.pui.properties["field type"]==="combo box"){ca=y.comboBoxWidget.getBox();ca.focusClass=Lb(C);S(ca,"focus",pui.xk);S(ca,"blur",pui.Sl)}else{y.focusClass=Lb(C);S(y,"focus",pui.xk);S(y,"blur",pui.Sl)}if(D=="required"&&C=="true"){y.Pl=true;if(y.l!=null)y.l.getBox().Pl=true}if(D=="mandatory entry"&&C=="true")y.xq=true;if(D=="mandatory fill"&&C=="true")y.yq=true;if(D=="valid values"&&C!=null&&C!="")y.oq=C;if(D==
604
+ "allow blanks"&&C=="true")y.nr=true;if(D=="auto advance"&&C=="true"){var ra=y;if(y.comboBoxWidget!=null)ra=y.comboBoxWidget.getBox();if(y.l!=null)ra=y.l.getBox();ra.zn=true;S(ra,"keyup",pui.An)}D=="allow dup key"&&C=="true"&&S(y,"keydown",pui.ow);ca=false;if((pui["always allow field exit"]==true||pui["always allow field exit"]=="true")&&(ea["field type"]=="combo box"||ea["field type"]=="date field"||ea["field type"]=="spinner"||ea["field type"]=="textbox"))ca=true;if(D=="allow field exit"&&C=="true")ca=
605
+ true;if(ca==true){ra=y;if(y.comboBoxWidget!=null)ra=y.comboBoxWidget.getBox();if(y.l!=null)ra=y.l.getBox();if(pui.p(g[E].value)&&g[E].value.rjZeroFill=="true"){y.Xt=true;ra.Xt=true}S(ra,"keydown",function(da){da=da||window.event;var ha=da.keyCode;if((ha==pui["field exit key"]||ha==pui["field exit minus key"])&&!da.shiftKey&&(pui["field exit key"]==17||!da.ctrlKey)){var va=ub(da);pui.cq(va);if(pui.Xr(va,ha==pui["field exit minus key"])==false){vb(da);return false}}})}if(D=="validate name"&&C=="true")y.validateName=
606
+ true;if(D=="validate email"&&C=="true")y.validateEmail=true;if(D=="set as modified"&&C=="true"){y.modified=true;pui.modified=true;if(b.o==null)pui.kf[p]=true}if(D.length>=11&&D.substr(0,11)=="blank value"&&C!=null&&C!=""){if(y.ri==null)y.ri=[];y.ri.push(C);ca=y;if(y.l!=null)ca=y.l.getBox();if(y.comboBoxWidget!=null)ca=y.comboBoxWidget.getBox();if((ca.tagName=="DIV"?Oc(ca):ca.value)==C)if(ca.tagName=="DIV")ca.innerHTML="";else ca.value=""}if(D=="comparison operator"&&C!=null&&C!="")y.Rn=C;if(D=="comparison value"&&
607
+ C!=null&&C!="")y.Sn=C;if(D=="range low"&&C!=null&&C!=""){y.Ih=C;if(W!=null)y.$x=W}if(D=="range high"&&C!=null&&C!=""){y.Hh=C;if(Z!=null)y.Zx=Z}if(D=="checked value")y.checkedValue=C;if(D=="unchecked value")y.uncheckedValue=C;if(D=="indeterminate value")y.indeterminateValue=C;if(D=="cursor row")y.mf=C;if(D=="cursor column")y.oe=C;if(D=="bypass validation")y.G=C;if(D=="auto arrange"&&C=="true")if(b.jl!=true){y.style.display="none";y.style.visibility="hidden";y.removeAttribute("id")}else if(ea.visibility!=
608
+ "hidden"){ca=ea["shortcut key"];if(pui.ia.keys[ca]==true){y.style.display="none";y.style.visibility="hidden"}else{if(ca!=null)pui.ia.keys[ca]=true;if(t||pui["horizontal auto arrange"]){if(pui.ia.top==null)pui.ia.top=parseInt(y.style.top);if(pui.ia.left==null){pui.ia.left=parseInt(y.style.left);pui.ia.hb=parseInt(y.style.left)}else if(pui["horizontal auto arrange"]){if(pui.ia.Ck==null)pui.ia.Ck=0;if(pui.ia.Fa==null)pui.ia.Fa=parseInt(y.style.top);pui.ia.Ck++;pui.ia.left=pui.ia.hb+pui.ia.Ck%pui["buttons per row"]*
609
609
  pui["horizontal button spacing"];pui.ia.top=pui.ia.Fa+Math.floor(pui.ia.Ck/pui["buttons per row"])*pui["vertical button spacing"]}else if(pui.ia.Et!=null&&Math.abs(parseInt(y.style.top)-pui.ia.Et)>5)pui.ia.left=pui.ia.hb;else pui.ia.left+=pui["horizontal button spacing"];y.style.left=pui.ia.left+"px";pui.ia.Et=parseInt(y.style.top);if(pui["horizontal auto arrange"])y.style.top=pui.ia.top+"px"}else{if(pui.ia.top==null)pui.ia.top=parseInt(y.style.top);else pui.ia.top+=pui["vertical button spacing"];
610
- y.style.top=pui.ia.top+"px"}}}if(D=="allow drag"&&C=="true"){if((ea.cursor==null||ea.cursor=="")&&!pui.pa)y.style.cursor="move";pui.Kv(y,ea)}}if(!f&&D=="visibility"&&ea["parent tab panel"]!=null&&ea["parent tab panel"]!="")C="hidden";if(C!=null&&C!=""){Y=ea;if(f)Y=ha.properties;y=Pc(G,Y,y,C,f,ha,null,b.o)}if(!f&&D=="visibility"&&C=="visible"&&b.Fj!=null)y.style.visibility=""}if(b.Y!=null&&b.Y.text!=""&&(String(ea.column)===String(b.Y.col)||b.Y.col==="*all"))if(y.tagName=="DIV"){pui.Zk(y,b.Y.text);
610
+ y.style.top=pui.ia.top+"px"}}}if(D=="allow drag"&&C=="true"){if((ea.cursor==null||ea.cursor=="")&&!pui.pa)y.style.cursor="move";pui.Kv(y,ea)}}if(!f&&D=="visibility"&&ea["parent tab panel"]!=null&&ea["parent tab panel"]!="")C="hidden";if(C!=null&&C!=""){ca=ea;if(f)ca=ia.properties;y=Pc(G,ca,y,C,f,ia,null,b.o)}if(!f&&D=="visibility"&&C=="visible"&&b.Fj!=null)y.style.visibility=""}if(b.Y!=null&&b.Y.text!=""&&(String(ea.column)===String(b.Y.col)||b.Y.col==="*all"))if(y.tagName=="DIV"){pui.Zk(y,b.Y.text);
611
611
  y.$k=true}if(pui.controller!=null&&D.indexOf("error condition")==0&&C=="1"&&!w[y.id]){G="";if(D.length>15)G=" "+parseInt(D.substr(15),10);G=ea["error message"+G];s.push({id:y.id,msg:G});w[y.id]=true}}!f&&ea["float placeholder"]=="true"&&pui.sg(y);if(pui["auto tab"]==true&&ea["prevent auto tab"]!="true")if(ea["field type"]=="combo box"||ea["field type"]=="date field"||ea["field type"]=="spinner"||ea["field type"]=="textbox"||ea["field type"]=="password field"){ra=y;if(y.comboBoxWidget!=null)ra=y.comboBoxWidget.getBox();
612
- if(y.l!=null)ra=y.l.getBox();T(ra,"keyup",function(da){da=da||window.event;var ia=ub(da),va=true,Ba=da.keyCode;if(Ba<48||Ba>90&&Ba<96||Ba>111&&Ba<186)if(Ba!=32)va=false;Ba=ia;if(Ba.comboBoxWidget!=null)Ba=Ba.comboBoxWidget.getBox();if(Ba.l!=null)Ba=Ba.l.getBox();if(va&&Ba.value.length==Ba.maxLength&&(pui.is_touch||Ab(Ba)>=Ba.maxLength)){pui.Fo(ia);vb(da);return false}})}if(pui["enable arrow keys"]==true)if(ea["field type"]=="combo box"||ea["field type"]=="date field"||ea["field type"]=="spinner"||
613
- ea["field type"]=="textbox"||ea["field type"]=="password field"||ea["field type"]=="checkbox"){ra=y;if(y.comboBoxWidget!=null)ra=y.comboBoxWidget.getBox();if(y.l!=null)ra=y.l.getBox();pui.mr(ra)}if(A)if(ea["field type"]=="combo box"||ea["field type"]=="date field"||ea["field type"]=="spinner"||ea["field type"]=="textbox"||ea["field type"]=="password field"||ea["field type"]=="checkbox"){ra=y;if(y.comboBoxWidget!=null)ra=y.comboBoxWidget.getBox();if(y.l!=null)ra=y.l.getBox();T(ra,"keydown",function(da){da=
614
- da||window.event;var ia=ub(da);if(!(ia.lc&&ia.lc.Ti()))if(da.keyCode==9)if(da.parentElement&&(!da.parentElement.Tn||!da.parentElement.Aa)){cd(ia,!da.shiftKey);vb(da);return false}})}if(g[E].grid!==undefined&&g[E].grid!==null){Q=Bb(g[E].grid).grid;if(Q.xg&&Q.Uf!==null&&g[E].id==g[E].grid+Q.wm){ra=y;ra.pui.rrn=b.o;ra.pui.grid=g[E].grid;T(ra,"keydown",function(da){da=da||window.event;var ia=da.keyCode,va=ub(da),Ba=Bb(va.pui.grid).grid;va=va.pui.rrn;if(ia==37){Ba.expandTreeLevel(va);vb(da);return false}if(ia==
615
- 39){Ba.collapseTreeLevel(va);vb(da);return false}})}}if(!f&&ea.visibility!="hidden"&&pui.r.Tf!=null&&pui.r.Tf!=""&&pui.r.Me!=null&&pui.r.Me!=""&&y.clientWidth>0){Q=ea["cursor row"];if(y.parentNode&&y.parentNode.parentNode&&y.parentNode.parentNode.grid){Q=parseInt(Q,10);Q+=y.parentNode.parentNode.grid.h?y.parentNode.row-1:y.parentNode.row;Q=""+Q}if(pui.r.Tf==Q){Q=false;if(pui.r.Me==ea["cursor column"])Q=true;if(!Q)if(ea["field type"]=="textbox"||ea["field type"]=="date field"||ea["field type"]=="password field"||
616
- ea["field type"]=="combox box"||ea["field type"]=="spinner"){X=g[E].value;if(X!=null&&pui.p(X)&&X.dataLength!=null){X=Number(X.dataLength);aa=Number(ea["cursor column"]);G=Number(pui.r.Me);if(!isNaN(X)&&!isNaN(aa)&&!isNaN(G))if(G>aa&&G<aa+X)Q=true}}if(Q){pui.W.dom=y;if(y.comboBoxWidget!=null)pui.W.dom=y.comboBoxWidget.getBox();if(y.l!=null)pui.W.dom=y.l.getBox();pui.W.Hg=true}}}if(!f){var gb=function(da){pui.Pj(da,p)};if((window.React||window.Vue)&&y.N){if(y.pui==null)y.pui={};y.pui.data=r;if(b.Es)y.pui.data=
617
- b.Es;y.pui.Bi=y.N.fieldName}if(y.comboBoxWidget!=null||y.l!=null||y.tagName=="TEXTAREA"||y.tagName=="INPUT"&&(pui.Ui(y)||y.type=="file")){ra=y;if(y.comboBoxWidget!=null){y.comboBoxWidget.formatName=p;ra=y.comboBoxWidget.getBox()}if(y.l!=null){y.l.formatName=p;ra=y.l.getBox()}if(y.N!=null&&y.N.maxLength!=null){ra.maxLength=y.N.maxLength;if(y.tagName=="TEXTAREA"){T(y,"keyup",function(da){da=ub(da);var ia=Number(da.maxLength);if(!isNaN(ia)&&ia>0&&da.value!=null&&da.value.length>ia)da.value=da.value.substr(0,
618
- ia)});T(y,"paste",function(da){var ia=ub(da);setTimeout(function(){var va=Number(ia.maxLength);if(!isNaN(va)&&va>0&&ia.value!=null&&ia.value.length>va)ia.value=ia.value.substr(0,va)},0)});T(y,"keydown",function(da){da=da||window.event;var ia=ub(da);if(!(da.ctrlKey||ia.selectionStart!==ia.selectionEnd)){var va=da.keyCode;if(va>=48&&va<=57||va>=65&&va<=90||va==32||va>=106&&va<=111||va>=186&&va<=192||va>=219&&va<=222){va=Number(ia.maxLength);if(!isNaN(va)&&va>0&&ia.value!=null&&ia.value.length==va){vb(da);
619
- return false}}}})}}if(y.mc!=null||y.Sc!=null||y.mf!=null||y.oe!=null){T(ra,"focus",pui.Td);T(ra,"keyup",pui.Td)}T(ra,"focus",pui.Kj);T(ra,"keydown",pui.Kj);T(ra,"change",gb);T(ra,"paste",gb);T(ra,"input",gb);ra.Vn=0;T(ra,"mouseup",pui.dq);T(ra,"mousedown",pui.dq);T(ra,"keyup",pui.dq);if(pui.is_touch){ra.Jl=pui.Dw(ra);T(ra,"focus",function(da){if(da.srcElement.Jl)da.srcElement.Jl.Rt=true;setTimeout(function(ia){if(ia.Jl)ia.Jl.Rt=false},1E3,da.srcElement)})}T(ra,"keydown",function(da){da=da||window.event;
620
- var ia=da.keyCode;ia>=9&&ia<=45&&ia!=32||ia>=112&&ia<=145||da.ctrlKey&&ia!=88&&ia!=86||gb(da)});y.N&&y.N.Ce&&function(){var da=y.N.Ce;T(ra,"keypress",function(ia){ia=ia||window.event;pui.Ce(ia,da)});y.type=="number"&&y.N.noExtraSpaces&&T(ra,"textInput",function(ia){ia=ia||window.event;da.test(ia.data)||vb(ia)})}();if(y.N!=null&&y.N.edtMsk!=null&&y.N.edtMsk!=""){ra.yl=false;T(ra,"focus",function(da){ub(da).yl=false});T(ra,"blur",function(da){var ia=ub(da);if(ia.yl){typeof ia.onchange==="function"&&
621
- ia.onchange(da);ia.yl=false}});T(ra,"keyup",function(da){pui.tn(ub(da),da)});T(ra,"keydown",function(da){da=da||window.event;var ia=da.keyCode,va=ub(da),Ba=null;if(ia==46||ia==8||ia==32){var Ya=false;if(typeof va.selectionStart=="number")Ya=va.selectionStart==0&&va.selectionEnd==va.value.length;else if(typeof document.selection!="undefined")Ya=document.selection.createRange().text==va.value;if(Ya){va.value="";return}}if(ia>=48&&ia<=57)Ba=ia-48;if(ia>=96&&ia<=105)Ba=ia-96;if(ia==46)Ba=0;if(ia==8)Ba=
622
- 0;if(Ba!=null){va=ub(da);Ya=va.value;if(Ya!=null){var fa=Ab(va);if(ia==8&&fa>0)fa-=1;va.value=Ya.substr(0,fa)+String(Ba)+Ya.substr(fa+1);ia!=46&&ia!=8&&fa++;va.yl=true;vb(da);pui.tn(va,da,fa);if(pui.is_old_ie)try{da.keyCode=0}catch(wa){}return false}}});pui.tn(ra)}}y.tagName=="SELECT"&&T(y,"keydown",function(da){da=da||window.event;var ia=da.keyCode;if(ia==38||ia==40)gb(da)});if(y.tagName=="SELECT"||y.tagName=="INPUT"&&(y.type=="checkbox"||y.type=="radio")){if(y.mc!=null||y.Sc!=null||y.mf!=null||
623
- y.oe!=null){T(y,"focus",pui.Td);T(y,"keyup",pui.Td)}T(y,"focus",pui.Kj);T(y,"keydown",pui.Kj);T(y,"change",gb);if(y.tagName!="SELECT")T(y,"click",gb);else{T(y,"keydown",function(da){if(!da)da=window.event;if(da.keyCode==34){da.cancel=true;da.preventDefault&&da.preventDefault();return false}});b.o>0&&pui.is_firefox&&T(y,"keydown",function(da){da=da||window.event;if(da.keyCode==33||da.keyCode==34)vb(da)})}}if(y.mc!=null||y.Sc!=null||y.mf!=null||y.oe!=null)T(y,"click",pui.Td);T(y,"click",pui.Kj)}if(!f&&
624
- !pui.pa&&pui.W.dom==null&&!y.disabled&&!y.readOnly&&ea.visibility!="hidden"){if(y.tagName=="INPUT")if(pui.Ui(y)||y.type=="checkbox"||y.type=="radio"||y.type=="file")pui.W.dom=y;if(y.tagName=="TEXTAREA"||y.tagName=="SELECT")pui.W.dom=y;if(y.comboBoxWidget!=null)pui.W.dom=y.comboBoxWidget.getBox();if(y.l!=null)pui.W.dom=y.l.getBox()}f&&ea["field type"]=="grid"&&n.Gs.push(ha);f&&ea["field type"]=="layout"&&n.hA.push(ha);X=ea["field type"];if(X!=null){Q=pui.widgets[X];Q!=null&&Q.initialize!=null&&Q.initialize({design:f,
625
- properties:ea,dom:y,e:ha});if(y.pui&&y.pui.widget&&y.pui.widget)fd(y.pui.widget);else y.Ja&&y.Ja.render(b)}if(!f&&ea["field type"]=="layout"){pui.Xi.push(y.layout);if(ea["lazy load"]=="true"&&typeof y.layout.$t=="function"){R[ea.id]=y.layout;y.layout.$t(b)}}if(!f&&ea["field type"]=="grid"){ha=b.subfiles;var ta,db,Ga,yb,Xa;Q=pui.Ib(ea["record format name"]);if(ha!=null)ta=ha[Q];if(ta!=null)db=ta.data;if(ta!=null)Ga=ta["field names"];if(ta!=null)yb=ta.ref;if(ta!=null)Xa=ta.errors;y.grid.uo=b.fileId;
626
- if(typeof pui.view!="undefined")y.grid.Ob="pui-grid-"+pui.view;else if(typeof b.file!="undefined"&&typeof b.library!="undefined")y.grid.Ob="pui-grid-"+b.library+"-"+b.file+"-"+Q;ea["persist state"]==="program only"&&ta&&ta.renderCount===1&&delete pui.uj[y.grid.Ob];if(ta!=null&&ta.useServerState&&ta.storedState!=null){y.grid.iz=true;y.grid.Yd=ta.storedState}y.grid.dataArray=db!=null?db:[];y.grid.aa=Ga!=null?Ga:[];if(pui.handler!=null&&db==null){(db=r[pui.Ib(ea["record format name"])])||(db=[]);Ga=
627
- [];ta=[];Ga={};for(ha=0;ha<g.length;ha++){Q=g[ha];if(Q.grid===ea.id)for(var rb in Q){X=Q[rb];if(pui.p(X))Ga[X.fieldName]=true}}Ga=Object.keys(Ga);for(ha=0;ha<db.length;ha++){Q=[];X=db[ha];for(aa=0;aa<Ga.length;aa++){Ka=Ga[aa];Q.push(X[Ka])}ta.push(Q)}y.grid.dataArray=ta;y.grid.aa=Ga;y.grid.Fs=db;ta={}}y.grid.ref=yb!=null?yb:{};if(Xa!=null)y.grid.errors=Xa;ha=g[E]["subfile message key"];Q=g[E]["subfile program message queue"];X=g[E]["subfile control program message queue"];if(ha!=null&&ha!=""&&Q!=
628
- null&&Q!=""||X!=null&&X!=""){if(y.grid.d!=null)y.grid.d.EA="Message";y.grid.C.push({id:"_msgsfltext",column:"0","field type":"output field",grid:ea.id,left:"5px",top:"5px",cursor:"pointer",onclick:"pui.showMessageSubfileHelp(this);",value:{dataLength:"132",dataType:"char",fieldName:"text",formatting:"Text",textTransform:"none",trimLeading:"false",trimTrailing:"true",lowerCaseField:true}});y.grid.C.push({id:"_msgsflhelp",column:"0","field type":"output field",grid:ea.id,left:"0px",top:"0px",visibility:"hidden",
612
+ if(y.l!=null)ra=y.l.getBox();S(ra,"keyup",function(da){da=da||window.event;var ha=ub(da),va=true,Ba=da.keyCode;if(Ba<48||Ba>90&&Ba<96||Ba>111&&Ba<186)if(Ba!=32)va=false;Ba=ha;if(Ba.comboBoxWidget!=null)Ba=Ba.comboBoxWidget.getBox();if(Ba.l!=null)Ba=Ba.l.getBox();if(va&&Ba.value.length==Ba.maxLength&&(pui.is_touch||Ab(Ba)>=Ba.maxLength)){pui.Fo(ha);vb(da);return false}})}if(pui["enable arrow keys"]==true)if(ea["field type"]=="combo box"||ea["field type"]=="date field"||ea["field type"]=="spinner"||
613
+ ea["field type"]=="textbox"||ea["field type"]=="password field"||ea["field type"]=="checkbox"){ra=y;if(y.comboBoxWidget!=null)ra=y.comboBoxWidget.getBox();if(y.l!=null)ra=y.l.getBox();pui.mr(ra)}if(A)if(ea["field type"]=="combo box"||ea["field type"]=="date field"||ea["field type"]=="spinner"||ea["field type"]=="textbox"||ea["field type"]=="password field"||ea["field type"]=="checkbox"){ra=y;if(y.comboBoxWidget!=null)ra=y.comboBoxWidget.getBox();if(y.l!=null)ra=y.l.getBox();S(ra,"keydown",function(da){da=
614
+ da||window.event;var ha=ub(da);if(!(ha.lc&&ha.lc.Ti()))if(da.keyCode==9)if(da.parentElement&&(!da.parentElement.Tn||!da.parentElement.Aa)){cd(ha,!da.shiftKey);vb(da);return false}})}if(g[E].grid!==undefined&&g[E].grid!==null){T=Bb(g[E].grid).grid;if(T.xg&&T.Uf!==null&&g[E].id==g[E].grid+T.wm){ra=y;ra.pui.rrn=b.o;ra.pui.grid=g[E].grid;S(ra,"keydown",function(da){da=da||window.event;var ha=da.keyCode,va=ub(da),Ba=Bb(va.pui.grid).grid;va=va.pui.rrn;if(ha==37){Ba.expandTreeLevel(va);vb(da);return false}if(ha==
615
+ 39){Ba.collapseTreeLevel(va);vb(da);return false}})}}if(!f&&ea.visibility!="hidden"&&pui.r.Tf!=null&&pui.r.Tf!=""&&pui.r.Me!=null&&pui.r.Me!=""&&y.clientWidth>0){T=ea["cursor row"];if(y.parentNode&&y.parentNode.parentNode&&y.parentNode.parentNode.grid){T=parseInt(T,10);T+=y.parentNode.parentNode.grid.h?y.parentNode.row-1:y.parentNode.row;T=""+T}if(pui.r.Tf==T){T=false;if(pui.r.Me==ea["cursor column"])T=true;if(!T)if(ea["field type"]=="textbox"||ea["field type"]=="date field"||ea["field type"]=="password field"||
616
+ ea["field type"]=="combox box"||ea["field type"]=="spinner"){W=g[E].value;if(W!=null&&pui.p(W)&&W.dataLength!=null){W=Number(W.dataLength);Z=Number(ea["cursor column"]);G=Number(pui.r.Me);if(!isNaN(W)&&!isNaN(Z)&&!isNaN(G))if(G>Z&&G<Z+W)T=true}}if(T){pui.W.dom=y;if(y.comboBoxWidget!=null)pui.W.dom=y.comboBoxWidget.getBox();if(y.l!=null)pui.W.dom=y.l.getBox();pui.W.Hg=true}}}if(!f){var gb=function(da){pui.Pj(da,p)};if((window.React||window.Vue)&&y.N){if(y.pui==null)y.pui={};y.pui.data=r;if(b.Es)y.pui.data=
617
+ b.Es;y.pui.Bi=y.N.fieldName}if(y.comboBoxWidget!=null||y.l!=null||y.tagName=="TEXTAREA"||y.tagName=="INPUT"&&(pui.Ui(y)||y.type=="file")){ra=y;if(y.comboBoxWidget!=null){y.comboBoxWidget.formatName=p;ra=y.comboBoxWidget.getBox()}if(y.l!=null){y.l.formatName=p;ra=y.l.getBox()}if(y.N!=null&&y.N.maxLength!=null){ra.maxLength=y.N.maxLength;if(y.tagName=="TEXTAREA"){S(y,"keyup",function(da){da=ub(da);var ha=Number(da.maxLength);if(!isNaN(ha)&&ha>0&&da.value!=null&&da.value.length>ha)da.value=da.value.substr(0,
618
+ ha)});S(y,"paste",function(da){var ha=ub(da);setTimeout(function(){var va=Number(ha.maxLength);if(!isNaN(va)&&va>0&&ha.value!=null&&ha.value.length>va)ha.value=ha.value.substr(0,va)},0)});S(y,"keydown",function(da){da=da||window.event;var ha=ub(da);if(!(da.ctrlKey||ha.selectionStart!==ha.selectionEnd)){var va=da.keyCode;if(va>=48&&va<=57||va>=65&&va<=90||va==32||va>=106&&va<=111||va>=186&&va<=192||va>=219&&va<=222){va=Number(ha.maxLength);if(!isNaN(va)&&va>0&&ha.value!=null&&ha.value.length==va){vb(da);
619
+ return false}}}})}}if(y.mc!=null||y.Sc!=null||y.mf!=null||y.oe!=null){S(ra,"focus",pui.Td);S(ra,"keyup",pui.Td)}S(ra,"focus",pui.Kj);S(ra,"keydown",pui.Kj);S(ra,"change",gb);S(ra,"paste",gb);S(ra,"input",gb);ra.Vn=0;S(ra,"mouseup",pui.dq);S(ra,"mousedown",pui.dq);S(ra,"keyup",pui.dq);if(pui.is_touch){ra.Jl=pui.Dw(ra);S(ra,"focus",function(da){if(da.srcElement.Jl)da.srcElement.Jl.Rt=true;setTimeout(function(ha){if(ha.Jl)ha.Jl.Rt=false},1E3,da.srcElement)})}S(ra,"keydown",function(da){da=da||window.event;
620
+ var ha=da.keyCode;ha>=9&&ha<=45&&ha!=32||ha>=112&&ha<=145||da.ctrlKey&&ha!=88&&ha!=86||gb(da)});y.N&&y.N.Ce&&function(){var da=y.N.Ce;S(ra,"keypress",function(ha){ha=ha||window.event;pui.Ce(ha,da)});y.type=="number"&&y.N.noExtraSpaces&&S(ra,"textInput",function(ha){ha=ha||window.event;da.test(ha.data)||vb(ha)})}();if(y.N!=null&&y.N.edtMsk!=null&&y.N.edtMsk!=""){ra.yl=false;S(ra,"focus",function(da){ub(da).yl=false});S(ra,"blur",function(da){var ha=ub(da);if(ha.yl){typeof ha.onchange==="function"&&
621
+ ha.onchange(da);ha.yl=false}});S(ra,"keyup",function(da){pui.tn(ub(da),da)});S(ra,"keydown",function(da){da=da||window.event;var ha=da.keyCode,va=ub(da),Ba=null;if(ha==46||ha==8||ha==32){var Ya=false;if(typeof va.selectionStart=="number")Ya=va.selectionStart==0&&va.selectionEnd==va.value.length;else if(typeof document.selection!="undefined")Ya=document.selection.createRange().text==va.value;if(Ya){va.value="";return}}if(ha>=48&&ha<=57)Ba=ha-48;if(ha>=96&&ha<=105)Ba=ha-96;if(ha==46)Ba=0;if(ha==8)Ba=
622
+ 0;if(Ba!=null){va=ub(da);Ya=va.value;if(Ya!=null){var fa=Ab(va);if(ha==8&&fa>0)fa-=1;va.value=Ya.substr(0,fa)+String(Ba)+Ya.substr(fa+1);ha!=46&&ha!=8&&fa++;va.yl=true;vb(da);pui.tn(va,da,fa);if(pui.is_old_ie)try{da.keyCode=0}catch(wa){}return false}}});pui.tn(ra)}}y.tagName=="SELECT"&&S(y,"keydown",function(da){da=da||window.event;var ha=da.keyCode;if(ha==38||ha==40)gb(da)});if(y.tagName=="SELECT"||y.tagName=="INPUT"&&(y.type=="checkbox"||y.type=="radio")){if(y.mc!=null||y.Sc!=null||y.mf!=null||
623
+ y.oe!=null){S(y,"focus",pui.Td);S(y,"keyup",pui.Td)}S(y,"focus",pui.Kj);S(y,"keydown",pui.Kj);S(y,"change",gb);if(y.tagName!="SELECT")S(y,"click",gb);else{S(y,"keydown",function(da){if(!da)da=window.event;if(da.keyCode==34){da.cancel=true;da.preventDefault&&da.preventDefault();return false}});b.o>0&&pui.is_firefox&&S(y,"keydown",function(da){da=da||window.event;if(da.keyCode==33||da.keyCode==34)vb(da)})}}if(y.mc!=null||y.Sc!=null||y.mf!=null||y.oe!=null)S(y,"click",pui.Td);S(y,"click",pui.Kj)}if(!f&&
624
+ !pui.pa&&pui.W.dom==null&&!y.disabled&&!y.readOnly&&ea.visibility!="hidden"){if(y.tagName=="INPUT")if(pui.Ui(y)||y.type=="checkbox"||y.type=="radio"||y.type=="file")pui.W.dom=y;if(y.tagName=="TEXTAREA"||y.tagName=="SELECT")pui.W.dom=y;if(y.comboBoxWidget!=null)pui.W.dom=y.comboBoxWidget.getBox();if(y.l!=null)pui.W.dom=y.l.getBox()}f&&ea["field type"]=="grid"&&n.Gs.push(ia);f&&ea["field type"]=="layout"&&n.hA.push(ia);W=ea["field type"];if(W!=null){T=pui.widgets[W];T!=null&&T.initialize!=null&&T.initialize({design:f,
625
+ properties:ea,dom:y,e:ia});if(y.pui&&y.pui.widget&&y.pui.widget)fd(y.pui.widget);else y.Ja&&y.Ja.render(b)}if(!f&&ea["field type"]=="layout"){pui.Xi.push(y.layout);if(ea["lazy load"]=="true"&&typeof y.layout.$t=="function"){L[ea.id]=y.layout;y.layout.$t(b)}}if(!f&&ea["field type"]=="grid"){ia=b.subfiles;var ta,db,Ga,yb,Xa;T=pui.Ib(ea["record format name"]);if(ia!=null)ta=ia[T];if(ta!=null)db=ta.data;if(ta!=null)Ga=ta["field names"];if(ta!=null)yb=ta.ref;if(ta!=null)Xa=ta.errors;y.grid.uo=b.fileId;
626
+ if(typeof pui.view!="undefined")y.grid.Ob="pui-grid-"+pui.view;else if(typeof b.file!="undefined"&&typeof b.library!="undefined")y.grid.Ob="pui-grid-"+b.library+"-"+b.file+"-"+T;ea["persist state"]==="program only"&&ta&&ta.renderCount===1&&delete pui.uj[y.grid.Ob];if(ta!=null&&ta.useServerState&&ta.storedState!=null){y.grid.iz=true;y.grid.Yd=ta.storedState}y.grid.dataArray=db!=null?db:[];y.grid.aa=Ga!=null?Ga:[];if(pui.handler!=null&&db==null){(db=r[pui.Ib(ea["record format name"])])||(db=[]);Ga=
627
+ [];ta=[];Ga={};for(ia=0;ia<g.length;ia++){T=g[ia];if(T.grid===ea.id)for(var rb in T){W=T[rb];if(pui.p(W))Ga[W.fieldName]=true}}Ga=Object.keys(Ga);for(ia=0;ia<db.length;ia++){T=[];W=db[ia];for(Z=0;Z<Ga.length;Z++){Ka=Ga[Z];T.push(W[Ka])}ta.push(T)}y.grid.dataArray=ta;y.grid.aa=Ga;y.grid.Fs=db;ta={}}y.grid.ref=yb!=null?yb:{};if(Xa!=null)y.grid.errors=Xa;ia=g[E]["subfile message key"];T=g[E]["subfile program message queue"];W=g[E]["subfile control program message queue"];if(ia!=null&&ia!=""&&T!=null&&
628
+ T!=""||W!=null&&W!=""){if(y.grid.d!=null)y.grid.d.EA="Message";y.grid.C.push({id:"_msgsfltext",column:"0","field type":"output field",grid:ea.id,left:"5px",top:"5px",cursor:"pointer",onclick:"pui.showMessageSubfileHelp(this);",value:{dataLength:"132",dataType:"char",fieldName:"text",formatting:"Text",textTransform:"none",trimLeading:"false",trimTrailing:"true",lowerCaseField:true}});y.grid.C.push({id:"_msgsflhelp",column:"0","field type":"output field",grid:ea.id,left:"0px",top:"0px",visibility:"hidden",
629
629
  value:{dataLength:"9999",dataType:"char",fieldName:"help",formatting:"Text",textTransform:"none",trimLeading:"false",trimTrailing:"true",lowerCaseField:true}});y.grid.C.push({id:"_msgsflid",column:"0","field type":"output field",grid:ea.id,left:"0px",top:"0px",visibility:"hidden",value:{dataLength:"7",dataType:"char",fieldName:"id",formatting:"Text",textTransform:"none",trimLeading:"false",trimTrailing:"true",lowerCaseField:true}});y.grid.C.push({id:"_msgsfldate",column:"0","field type":"output field",
630
630
  grid:ea.id,left:"0px",top:"0px",visibility:"hidden",value:{dataLength:"7",dataType:"char",fieldName:"date",formatting:"Text",textTransform:"none",trimLeading:"false",trimTrailing:"true",lowerCaseField:true}});y.grid.C.push({id:"_msgsfltime",column:"0","field type":"output field",grid:ea.id,left:"0px",top:"0px",visibility:"hidden",value:{dataLength:"6",dataType:"char",fieldName:"time",formatting:"Text",textTransform:"none",trimLeading:"false",trimTrailing:"true",lowerCaseField:true}})}if(y.grid.dataArray.length==
631
- 0)if(pui.p(g[E]["subfile message key"])||pui.p(g[E]["subfile program message queue"]))y.grid.No();ta==null&&y.grid.No();ha=Number(ea["subfile record number"]);y.grid.mm=ha;if(isNaN(ha)){ha=1;y.grid.mm=0}if(ha<1||ha>9999){ha=1;y.grid.mm=0}if(ea["position at top"]!="true")y.grid.Fu(ha);else y.grid.j=ha;if(ea["place cursor"]=="true"){y.grid.sj=ha;pui.rj=true}y.grid.Ky();F.push(y.grid);pui.Va.push(y.grid)}if(!f&&b.o!=null){y.o=b.o;y.Yj=b.name;if(g[E].domEls==null)g[E].domEls=[];g[E].domEls[b.o-1]=y}}if((pui.controller!=
632
- null||typeof pui.handler=="function")&&ea!=null&&ea["set as modified"]!="false")y.modified=true;if(!f&&b.Vb!=null)y.Vb=b.Vb;if(!f&&M!=null&&!M.expanded&&W){W=parseInt(W.style.height);if(!isNaN(W)){M=parseInt(y.style.top);if(isNaN(M))M=0;if(M>W&&(y.tagName=="INPUT"||y.tagName=="SELECT"||y.tagName=="TEXTAREA")&&!y.disabled){y.Bp=true;y.disabled=true}}}}N&&g.pop();if(!f){Xa=pui.controller!=null&&s.length>0?s:b.errors;if(Xa!=null)if(b.o!=null){Xa=Xa[String(b.o)];Xa!=null&&pui.Zp(Xa,b.o)}else{for(r=0;r<
633
- Xa.length;r++){var qb=Xa[r],sb;try{sb=JSON.parse(qb.msg)}catch(Fb){sb=false}if(sb&&typeof sb=="object")if(!(!pui.xd||pui.xd.length<=0)){t=g.find(function(da){return da.id===qb.id});s=pui.Bk(t,null,screen,b.data,b.ref);qb.msg=s.keys&&s.keys.length>0?t["error message"]:pui.xd[sb.transId]}}pui.Zp(Xa)}}for(E=0;E<l.length;E++){g=document.getElementById(l[E]);Xa=g.tabPanel;if(!Xa)Xa=g.Ja;if(Xa&&typeof Xa.Tc==="function"){if(o[E])Xa.selectedTab=o[E];Xa.Tc()}}if(f)for(E=0;E<n.Gs.length;E++)n.Gs[E].dom.grid.Xb(true);
634
- F.forEach(function(da){if(pui.W!=null&&pui.W.Hg==true)da.sj=null;if(da.Ts())da.collapse(Bb(da.c.id+"_expander"));else{if(da.Pe)return;da.getData()}if(!da.Pe){da.j>1&&da.d!=null&&da.d.type=="sliding"&&da.d.td(da.j,true);if(pui.rj&&pui.r.Me==null&&pui.r.Tf==null)if(pui.W==null||pui.W.Hg!=true)setTimeout(function(){da.zt(true)},1);if(da.d!=null){!f&&da.d.type=="sliding"&&da.d.dc==1&&da.d.z();if(!f&&typeof h["record format name"]==="string"&&da.d.type=="paging"){var ia=h["record format name"],va=pui.Ib(ia);
635
- if(pui.Z[ia]==null&&pui.Z[va]!=null)ia=va;if(pui.Z[ia]!=null){if(pui.Z[ia].PageDown==null)pui.Z[ia].PageDown=[];pui.Z[ia].PageDown.push(da.i.na);da.i.qp=true;if(pui.Z[ia].PageUp==null)pui.Z[ia].PageUp=[];pui.Z[ia].PageUp.push(da.i.oa);da.i.sp=true}}}if(da.nx()){da.xe.collapseAll();da.Ql()}da.pl();da.oy()}});for(var cb in R)if(n=R[cb]){g=-1;if(typeof n.wg==="function")g=n.wg();typeof n.Tl==="function"&&n.Tl(g)}if(!f){pui.onload!=null&&typeof pui.onload=="function"&&B&&b.Gj!==false&&!pui.fa&&pui.onload(b);
631
+ 0)if(pui.p(g[E]["subfile message key"])||pui.p(g[E]["subfile program message queue"]))y.grid.No();ta==null&&y.grid.No();ia=Number(ea["subfile record number"]);y.grid.mm=ia;if(isNaN(ia)){ia=1;y.grid.mm=0}if(ia<1||ia>9999){ia=1;y.grid.mm=0}if(ea["position at top"]!="true")y.grid.Fu(ia);else y.grid.j=ia;if(ea["place cursor"]=="true"){y.grid.sj=ia;pui.rj=true}y.grid.Ky();F.push(y.grid);pui.Va.push(y.grid)}if(!f&&b.o!=null){y.o=b.o;y.Yj=b.name;if(g[E].domEls==null)g[E].domEls=[];g[E].domEls[b.o-1]=y}}if((pui.controller!=
632
+ null||typeof pui.handler=="function")&&ea!=null&&ea["set as modified"]!="false")y.modified=true;if(!f&&b.Vb!=null)y.Vb=b.Vb;if(!f&&N!=null&&!N.expanded&&X){X=parseInt(X.style.height);if(!isNaN(X)){N=parseInt(y.style.top);if(isNaN(N))N=0;if(N>X&&(y.tagName=="INPUT"||y.tagName=="SELECT"||y.tagName=="TEXTAREA")&&!y.disabled){y.Bp=true;y.disabled=true}}}}Q&&g.pop();if(!f){Xa=pui.controller!=null&&s.length>0?s:b.errors;if(Xa!=null)if(b.o!=null){Xa=Xa[String(b.o)];Xa!=null&&pui.Zp(Xa,b.o)}else{for(r=0;r<
633
+ Xa.length;r++){var qb=Xa[r],sb;try{sb=JSON.parse(qb.msg)}catch(Fb){sb=false}if(sb&&typeof sb=="object")if(!(!pui.wd||pui.wd.length<=0)){t=g.find(function(da){return da.id===qb.id});s=pui.Bk(t,null,screen,b.data,b.ref);qb.msg=s.keys&&s.keys.length>0?t["error message"]:pui.wd[sb.transId]}}pui.Zp(Xa)}}for(E=0;E<l.length;E++){g=document.getElementById(l[E]);Xa=g.tabPanel;if(!Xa)Xa=g.Ja;if(Xa&&typeof Xa.Tc==="function"){if(o[E])Xa.selectedTab=o[E];Xa.Tc()}}if(f)for(E=0;E<n.Gs.length;E++)n.Gs[E].dom.grid.Xb(true);
634
+ F.forEach(function(da){if(pui.W!=null&&pui.W.Hg==true)da.sj=null;if(da.Ts())da.collapse(Bb(da.c.id+"_expander"));else{if(da.Pe)return;da.getData()}if(!da.Pe){da.j>1&&da.d!=null&&da.d.type=="sliding"&&da.d.sd(da.j,true);if(pui.rj&&pui.r.Me==null&&pui.r.Tf==null)if(pui.W==null||pui.W.Hg!=true)setTimeout(function(){da.zt(true)},1);if(da.d!=null){!f&&da.d.type=="sliding"&&da.d.dc==1&&da.d.z();if(!f&&typeof h["record format name"]==="string"&&da.d.type=="paging"){var ha=h["record format name"],va=pui.Ib(ha);
635
+ if(pui.Z[ha]==null&&pui.Z[va]!=null)ha=va;if(pui.Z[ha]!=null){if(pui.Z[ha].PageDown==null)pui.Z[ha].PageDown=[];pui.Z[ha].PageDown.push(da.i.na);da.i.qp=true;if(pui.Z[ha].PageUp==null)pui.Z[ha].PageUp=[];pui.Z[ha].PageUp.push(da.i.oa);da.i.sp=true}}}if(da.nx()){da.xe.collapseAll();da.Ql()}da.pl();da.oy()}});for(var cb in L)if(n=L[cb]){g=-1;if(typeof n.wg==="function")g=n.wg();typeof n.Tl==="function"&&n.Tl(g)}if(!f){pui.onload!=null&&typeof pui.onload=="function"&&B&&b.Gj!==false&&!pui.fa&&pui.onload(b);
636
636
  if(h!=null){if(b.Gj!==false){if(pui.clientLogic)if((cb=h["initial routine"])&&cb.routine){cb=cb.routine;try{eval('pui["routineFunction"] = function() {\r\n'+pui.clientLogic[cb]+'\r\n}; \r\npui["routineFunction"]();')}catch(pb){console.error(pb)}}cb=h.onload;if(cb!=null&&cb!="")try{eval('var format = "'+h["record format name"]+'";');eval('var file = "'+b.file+'";');eval(cb)}catch(kb){pui.Ea(kb,"Onload Error:\n")}}pui.Dl=h.onsubmit;if(h.onmessage&&typeof h["record format name"]==="string"){pui.Cl[h["record format name"].toLowerCase()]=
637
- h.onmessage;if(b.msgInfo!=null&&B&&b.Gj!==false&&!pui.fa){pui.message=b.msgInfo;try{eval('var message = pui["message"];');eval(h.onmessage)}catch(d){pui.Ea(d,"Onmessage Error:\n")}}}["onkeydown","onkeypress","onkeyup"].forEach(function(da){if(B&&b.kl&&h[da]!=null&&h[da]!=""){var ia=function(va){pui.temp_event=va;eval("var event = pui.temp_event;");eval('var format = "'+h["record format name"]+'";');eval('var file = "'+b.file+'";');try{var Ba=eval(h[da]);if(typeof Ba=="function"){if(!va)va=window.event;
638
- Ba(va)}}catch(Ya){pui.Ea(Ya,da.substr(0,1).toUpperCase()+da.substr(1)+" Error:\n")}};T(document.body,da.substr(2),ia);pui.$l.push({yw:document.body,xw:da.substr(2),ww:ia})}})}if(b.ml!=null){pui.Nb&&pui.ku();if(b.gj!=null)try{eval('var lazyContainerNum = "'+b.ml+'";');eval(b.gj)}catch(Wa){pui.Ea(Wa,"OnLazyLoad Error:\n")}}}pui["enable arrow keys"]==true&&pui.rw();e=vd(e);pui.Ul&&console.log("Format "+p+" rendered in "+e+"ms")};
637
+ h.onmessage;if(b.msgInfo!=null&&B&&b.Gj!==false&&!pui.fa){pui.message=b.msgInfo;try{eval('var message = pui["message"];');eval(h.onmessage)}catch(d){pui.Ea(d,"Onmessage Error:\n")}}}["onkeydown","onkeypress","onkeyup"].forEach(function(da){if(B&&b.kl&&h[da]!=null&&h[da]!=""){var ha=function(va){pui.temp_event=va;eval("var event = pui.temp_event;");eval('var format = "'+h["record format name"]+'";');eval('var file = "'+b.file+'";');try{var Ba=eval(h[da]);if(typeof Ba=="function"){if(!va)va=window.event;
638
+ Ba(va)}}catch(Ya){pui.Ea(Ya,da.substr(0,1).toUpperCase()+da.substr(1)+" Error:\n")}};S(document.body,da.substr(2),ha);pui.$l.push({yw:document.body,xw:da.substr(2),ww:ha})}})}if(b.ml!=null){pui.Nb&&pui.ku();if(b.gj!=null)try{eval('var lazyContainerNum = "'+b.ml+'";');eval(b.gj)}catch(Wa){pui.Ea(Wa,"OnLazyLoad Error:\n")}}}pui["enable arrow keys"]==true&&pui.rw();e=vd(e);pui.Ul&&console.log("Format "+p+" rendered in "+e+"ms")};
639
639
  pui.rw=function(){pui.sr.ly();var b=null,a=document.querySelectorAll("[puiwdgt='grid']");if(!(a.length<1))for(var c=0;c<a.length;c++){b=a[c].querySelectorAll("input.qf");if(!(b.length<1))for(var e=0;e<b.length;e++){b[e].style.left="2px";b[e].style.top="30px";pui.mr(b[e])}}};
640
640
  pui.sr=new (function(){var b=this;b.wn=false;b.ly=function(){b.wn=false};b.handler=function(a){a=a||window.event;var c=ub(a);if(!(c.lc&&c.lc.Ti())){var e=a.keyCode,f=c;if(f.comboBoxWidget!=null)f=f.comboBoxWidget.getBox();if(f.l!=null)f=f.l.getBox();if(e==37)if(Ab(f)<=0){pui.Wk(c,"left");vb(a);return false}if(e==38){pui.Wk(c,"up");vb(a);return false}if(e==39)if(Ab(f)>=f.value.length){pui.Wk(c,"right");vb(a);return false}if(e==40){pui.Wk(c,"down");vb(a);if(!b.wn&&c.className.includes("qf")&&c.nodeName===
641
- "INPUT"){b.wn=true;setTimeout(function(){c.dispatchEvent(a)},50)}return false}}}});pui.mr=function(b){typeof b==="undefined"||typeof b.tagName==="undefined"||b.tagName!=="INPUT"||T(b,"keydown",pui.sr.handler)};
642
- pui.kg=function(b){T(b,"click",function(){if(b.disabled!=true)if(!(b.getAttribute!=null&&b.getAttribute("disabled")=="true")){if(b.Bb!=null){if(b.nextPage==true&&!b.Bb.grid.Ub()){b.Bb.grid.pp();return}if(b.Fh==true&&!b.Bb.grid.Hb()){b.Bb.grid.rp();return}}if(b.vd!=null)pui.tb=b.vd;var a=[];if(b.vd!=null){b.Bb&&a.push(b);for(var c in pui.Z){var e=pui.Z[c][pui.tb];if(e!=null)for(var f=0;f<e.length;f++)e[f].Bb||a.push(e[f])}}else a.push(b);for(f=0;f<a.length;f++){a[f].S="1";if(a[f].G=="true"||a[f].G==
641
+ "INPUT"){b.wn=true;setTimeout(function(){c.dispatchEvent(a)},50)}return false}}}});pui.mr=function(b){typeof b==="undefined"||typeof b.tagName==="undefined"||b.tagName!=="INPUT"||S(b,"keydown",pui.sr.handler)};
642
+ pui.kg=function(b){S(b,"click",function(){if(b.disabled!=true)if(!(b.getAttribute!=null&&b.getAttribute("disabled")=="true")){if(b.Bb!=null){if(b.nextPage==true&&!b.Bb.grid.Ub()){b.Bb.grid.pp();return}if(b.Fh==true&&!b.Bb.grid.Hb()){b.Bb.grid.rp();return}}if(b.ud!=null)pui.tb=b.ud;var a=[];if(b.ud!=null){b.Bb&&a.push(b);for(var c in pui.Z){var e=pui.Z[c][pui.tb];if(e!=null)for(var f=0;f<e.length;f++)e[f].Bb||a.push(e[f])}}else a.push(b);for(f=0;f<a.length;f++){a[f].S="1";if(a[f].G=="true"||a[f].G==
643
643
  "send data")pui.G=a[f].G}c=b.parentNode;if(c!=null){e=c.parentNode;if(e!=null){e=e.grid;e!=null&&e.gm(c.row)}}pui.Nk=null;pui.jh=null;pui.Mk=null;pui.bo=null;if(b.pui&&b.pui.properties&&b.pui.properties["destination url"]){c=b.pui.properties;pui.Nk=c["destination url"];pui.Mk=!c.bookmarkable||c.bookmarkable=="true";pui.bo=c["redirect to destination"]=="true";pui.jh=[];e=1;f="destination parameter name";for(var h="destination parameter value";c[f];){pui.jh.push([c[f],c[h]]);f="destination parameter name "+
644
644
  ++e;h="destination parameter value "+e}}pui.La=b.La;pui.Nc=b.o;pui.Mc=b.Yj;c=pui.cc();pui.Nk=null;pui.jh=null;pui.Mk=null;pui.bo=null;if(c==false){for(f=0;f<a.length;f++)a[f].S="0";pui.G="false";pui.La=null;pui.Nc=null;pui.Mc=null}}})};
645
645
  pui.Zp=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.hh(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&&Lb(g)!==""){l=h;try{h=eval(g)}catch(o){if(!pui.Vh){pui.Vh=true;setTimeout(function(){pui.alert("Expression '"+Lb(g)+"' contains an error:\n\n"+o.message);pui.Vh=false},
@@ -653,10 +653,10 @@ f[h];if(pui.Ro(g)){c[e]="1";break}}if(c[e]!="1")c[e]="0"}pui.Va.forEach(function
653
653
  "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.cj){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.Ud[p]!=true){if(c[l]==null)c[l]=[];c[l].push(h);pui.Ud[p]=true}}}c[e]=r}else{if(pui.modified&&pui.G!="true"&&pui.G!="send data"){if(g.xq==true&&g.modified!=true){c.valid=false;if(c.errors==null)c.errors=[];c.errors.push({dom:n,msg:pui.getLanguageText("runtimeMsg",
654
654
  "ME")});if(n.H!=null&&n.H.ja!=null)n.H.ja=false;continue}if(g.yq==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.H!=null&&n.H.ja!=null)n.H.ja=false;continue}}if(pui.G!="true"&&pui.G!="send data"&&g.Pl==true&&!g.disabled)if(typeof n.value=="string"&&(Lb(n.value)==""||n.value===n.emptyText)||g.fileUpload!=null&&g.fileUpload.getCount()<
655
655
  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.H!=null&&n.H.ja!=null)n.H.ja=false;continue}if(g.fileUpload!=null&&pui.G!="true"&&pui.G!="send data"){h=yd(g.fileUpload);if(h==null)h=zd(g.fileUpload);if(h!=null){c.valid=false;if(c.errors==null)c.errors=[];c.errors.push({dom:g,msg:h});if(g.H!=null&&g.H.ja!=null)g.H.ja=false;continue}}if(g.modified==
656
- true&&(pui.controller!=null||pui.G!="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.Ed!=null){if(pui["force auto complete match"]!=false||g.Ed.value!="")r=g.Ed.value;if(g.N!=null&&g.N.dataType!="expression"&&pui.formatting.zc(g.N.dataType))/^[0-9,.\- \(\)]+/.test(r)||
656
+ true&&(pui.controller!=null||pui.G!="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.Dd!=null){if(pui["force auto complete match"]!=false||g.Dd.value!="")r=g.Dd.value;if(g.N!=null&&g.N.dataType!="expression"&&pui.formatting.zc(g.N.dataType))/^[0-9,.\- \(\)]+/.test(r)||
657
657
  (r="")}if(pui.Ro(r)){l="";p=" ";if(g.N!=null&&pui.formatting.zc(g.N.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.N.dataLength);if(isNaN(p))p=0;l=g.N.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("-")!=
658
658
  -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=
659
- [];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.M!=null){r="";if(g.M.Kd&&g.M.Dh!=null)r=g.M.Dh;else if(!g.M.Kd&&g.M.Ch!=
659
+ [];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.M!=null){r="";if(g.M.Jd&&g.M.Dh!=null)r=g.M.Dh;else if(!g.M.Jd&&g.M.Ch!=
660
660
  null)r=g.M.Ch}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.Um[e])}}if(typeof r=="string"&&(pui.controller!=null||pui.G!="true")){if(Lb(r)==""&&g.ri!=null&&g.ri.length>=1)r=g.ri[0];if(g.signaturePad!=null&&pui.G!="send data")if(r.length>g.N.maxLength){c.valid=false;if(c.errors==null)c.errors=[];c.errors.push({dom:g,msg:pui.getLanguageText("runtimeMsg","signature overflow")});if(g.H!=null&&g.H.ja!=
661
661
  null)g.H.ja=false;continue}o=g.pui&&g.pui.widget&&g.pui.widget?Ad(g.pui.widget,e):g.N;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.Ie(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.mp=true;if(c.errors==null)c.errors=[];c.errors.push({dom:n,msg:r.msg});if(n.H!=null&&n.H.ja!=null)n.H.ja=false}else{h=false;
662
662
  if(pui.G=="send data")h=true;if(pui.Ro(g))h=true;if(g.nr==true&&typeof g.value=="string"&&Lb(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.H!=null&&n.H.ja!=null)n.H.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,
@@ -669,7 +669,7 @@ p=l+"="+g.o;if(pui.Ud[p]!=true){if(c[l]==null)c[l]=[];c[l].push(g.o);pui.Ud[p]=t
669
669
  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.sq!=null)c.wrow=String(pui.r.sq);if(pui.r.rq!=null)c.wcolumn=String(pui.r.rq);for(var s in pui.Hk){g=pui.Hk[s];if(g.lf!=null)c[s]=g.lf}for(var w in pui.Yl){g=pui.Yl[w];if(g.Wt!=null){c[w]=g.Wt;if(pui.tb=="PageUp")c[w]=1;if(pui.tb=="PageDown")c[w]+=g.grid.Do()}}for(var A in pui.vm)c[A]=pui.vm[A];for(var B in pui.lm){g=pui.lm[B];c[B]=g.grid.expanded?"0":"1"}if(pui.ne!=
670
670
  null){s=pui.ne.c.gh;r=pui.ne.Pn;if(s!=null&&r!=null)c[s]=r;s=pui.ne.c.Lh;r=pui.ne.Pf;if(s!=null&&r!=null)c[s]=r}if(pui.qe!=null){s=pui.qe.c.qg;r=pui.qe.Fi;if(s!=null&&r!=null)c[s]=r;s=pui.qe.c.Lh;r=pui.qe.Pf;if(s!=null&&r!=null)c[s]=r}if(pui.Tk!=null){s=pui.Tk.c.js;r=pui.Tk.rg;if(s!=null&&r!=null)c[s]=r}for(var G in pui.Fk)c[pui.Fk[G]]=pui.kf[G]&&(pui.controller!=null||pui.G!="true")?"1":"0";if(pui.Kl){if(pui.Bm!=null&&pui.od!=null)c[pui.Bm]=String(parseInt(pui.od.style.top));if(pui.zm!=null&&pui.od!=
671
671
  null)c[pui.zm]=String(parseInt(pui.od.style.left))}if(pui.xm!=null)c[pui.xm]=c.aid!=pui.rn.Enter?"1":"0";for(h=0;h<pui.km.length;h++){G=pui.km[h];if(c[G]==null)c[G]="0"}if(pui.mb.cc==true){if(pui.mb.Yn!=null)c[pui.mb.Yn]=pui.dragDropInfo["dd element id"];if(pui.mb.Zn!=null){G=pui.dragDropInfo["dd record number"];if(G==null)G=0;c[pui.mb.Zn]=String(G)}if(pui.mb.fq!=null)c[pui.mb.fq]=pui.dragDropInfo["target element id"];if(pui.mb.gq!=null){G=pui.dragDropInfo["target record number"];if(G==null)G=0;c[pui.mb.gq]=
672
- String(G)}}if(pui.qi!=null)c[pui.qi]=pui.Tp?"1":"0";if(pui.controller!=null){G=0;s=pui.Pd.layers;for(h=0;h<s.length;h++){w=s[h].formats;for(o=0;o<w.length;o++)c["pui-recname."+ ++G]=w[o].metaData.screen["record format name"]}}if(typeof pui.beforeRespond==="function")if(G=pui.beforeRespond(c))c=G;return c};
672
+ String(G)}}if(pui.qi!=null)c[pui.qi]=pui.Tp?"1":"0";if(pui.controller!=null){G=0;s=pui.Od.layers;for(h=0;h<s.length;h++){w=s[h].formats;for(o=0;o<w.length;o++)c["pui-recname."+ ++G]=w[o].metaData.screen["record format name"]}}if(typeof pui.beforeRespond==="function")if(G=pui.beforeRespond(c))c=G;return c};
673
673
  pui.submitResponse=function(b,a){if(pui.isCloudPreview)setTimeout(function(){pui.Nb=true;pui.Zb()},500);else{if(pui.hl){if(!pui.Nb)return false;pui.Nb=false}if(b==null)b=pui.captureData();else if(typeof b==="string")b=pui.captureData(b,a);var c;c=pui.F==null?Wb("PUI0001200.pgm"):Wb("PUI0002110.pgm");if(pui.psid!=null&&pui.psid!="")c+="/"+pui.psid;if(pui.handler!=null&&typeof pui.handler=="string")c=pui.handler;if(pui.overrideSubmitUrl!=null&&typeof pui.overrideSubmitUrl=="function")try{c=pui.overrideSubmitUrl(c)}catch(e){}if(pui.handler!=
674
674
  null&&typeof pui.handler=="function"){if(pui.Nk){var f=pui.Nk.split("?"),h="";c=f[0];if(f.length>1)h=f[1];var g="";f=[];for(var l=0;l<pui.jh.length;l++){var o=pui.jh[l][0];a=pui.jh[l][1];if(g!="")g+="&";g+=encodeURIComponent(o)+"="+encodeURIComponent(a);f.push('"'+o+'"','"'+a+'"');b[o]=a}if(pui.Mk){if(h!="")h+="&";h+=g}if(h!="")c+="?"+h;if(pui.bo){if(pui.Mk)location.href=c;else{h='postTo("'+c+'"';if(f.length>0)h+=","+f.join(",");h+=");";eval(h)}return}else pui.controller=c}pui.handler(b)}else{pui.jb.end();
675
675
  try{h=Atrium.getSettings()}catch(n){}h&&h.ACTIMEOUT==="1"&&Atrium.resetInactivityTimeout();pui.Ne();var r=function(){pui.yj&&pui.pd.payloads.push({url:c,data:Object.assign({},b)});if(pui.isCloud)b.workspace_id=pui.cloud.ws.id;cc({url:pui.jg(c),method:"post",params:b,sendAsBinary:false,saveResponse:true,suppressAlert:true,handler:function(p){if(p==null){document.body.innerHTML='<div id="close-browser-msg" style="font-family: Trebuchet MS; width: 95%; text-align: center; font-size: 200%;"><br/>'+pui.getLanguageText("runtimeMsg",
@@ -683,18 +683,18 @@ pui.Ne=function(){pui.Zb();var b;if(pui["loading animation"].css!=null&&!pui.is_
683
683
  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.hl&&a<0)a=0;b.style.left=a+"px";a=pui["loading animation"].top;
684
684
  a+=Math.max(document.body.scrollTop,document.documentElement.scrollTop);b.style.top=a+"px";b.style.zIndex=pui["loading animation"].zIndex}b.id="_pui_loading_animation";pui.runtimeContainer.appendChild(b);for(b=0;b<pui.Va.length;b++){a=pui.Va[b];a.Pe||a.mask()}};pui.Zb=function(){var b=Bb("_pui_loading_animation");b!=null&&b.parentNode!=null&&b.parentNode.removeChild(b);for(b=0;b<pui.Va.length;b++){var a=pui.Va[b];a.Pe||a.unMask()}};
685
685
  pui.sh=function(b,a){if(!(P!="dspf"||pui.hl)){if(!b)b=window.event;var c=b.keyCode,e;if(pui.zr)pui.Fn(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.Hf&&Event.hk)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=
686
- a!=null&&pui.Md!=null&&(a=="Enter"||a=="PageUp"||a=="PageDown"||pui.Z[pui.Md][a]!=null))&&a=="PageUp"||a=="PageDown"){var f=false;for(c=0;c<pui.Va.length;c++){var h=pui.Va[c];if(h.i&&h.i.wd)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.Bb!=null){if(pui.Hj!==undefined&&pui.Hj!==null&&o.Bb.grid.Xa!=pui.Hj)continue;if(o.nextPage==true&&!o.Bb.grid.Ub()){o.Bb.grid.pp();
686
+ a!=null&&pui.Ld!=null&&(a=="Enter"||a=="PageUp"||a=="PageDown"||pui.Z[pui.Ld][a]!=null))&&a=="PageUp"||a=="PageDown"){var f=false;for(c=0;c<pui.Va.length;c++){var h=pui.Va[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.Bb!=null){if(pui.Hj!==undefined&&pui.Hj!==null&&o.Bb.grid.Xa!=pui.Hj)continue;if(o.nextPage==true&&!o.Bb.grid.Ub()){o.Bb.grid.pp();
687
687
  vb(b);if(pui.is_old_ie)try{b.keyCode=0}catch(n){}return false}if(o.nextPage==true&&!o.Bb.nj){vb(b);if(pui.is_old_ie)try{b.keyCode=0}catch(r){}return false}if(o.Fh==true&&!o.Bb.grid.Hb()){o.Bb.grid.rp();vb(b);if(pui.is_old_ie)try{b.keyCode=0}catch(p){}return false}if(o.Fh==true&&!o.Bb.oj){vb(b);if(pui.is_old_ie)try{b.keyCode=0}catch(t){}return false}if(o.disabled){vb(b);if(pui.is_old_ie)try{b.keyCode=0}catch(s){}return false}}if(o.Fh==true||o.nextPage==true)f=true;e.push(o)}if(e.length>=1&&typeof e[0].onclick==
688
688
  "function"&&!e[0].La&&o.nextPage!=true&&o.Fh!=true&&!f){e[0].onclick();pui.runtimeContainer.focus();vb(b);if(pui.is_old_ie)try{b.keyCode=0}catch(w){}return false}if(l){vb(b);if(pui.is_old_ie)try{b.keyCode=0}catch(A){}return false}c=true}}if(a=="Enter"&&!pui.eo)c=true;if(c){pui.tb=a;for(c=0;c<e.length;c++){e[c].S="1";if(e[c].G=="true"||e[c].G=="send data")pui.G=e[c].G;if(e[c].La){pui.La=e[c].La;pui.Nc=e[c].o;pui.Mc=e[c].Yj}}if(pui.cc()==false){for(c=0;c<e.length;c++)e[c].S="0";pui.G="false";pui.La=
689
689
  null;pui.Nc=null;pui.Mc=null}vb(b);if(pui.is_old_ie)try{b.keyCode=0}catch(B){}return false}}if(a!=null&&(a!="PageUp"&&a!="PageDown"||pui.Dn)){vb(b);if(pui.is_old_ie)try{b.keyCode=0}catch(G){}return false}}}};pui.Ho=function(b){return pui.sh(b,"F1")};
690
- 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.Ul=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.sh);T(document.body,"help",pui.Ho);T(document.body,"mousedown",pui.Mr);b.jsonURL==null&&
690
+ 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.Ul=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);S(document.body,"keydown",pui.sh);S(document.body,"help",pui.Ho);S(document.body,"mousedown",pui.Mr);b.jsonURL==null&&
691
691
  b.replay==null&&b.mode!="preview"&&pui.vr();h.setAttribute("tabindex","0");pui.runtimeContainer=h;pui.Ne();r="post";var p=Wb("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=
692
692
  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.gf)f.screen_width=pui.gf.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!=
693
693
  window&&pui.Wh(window.parent)&&window.parent.noderun&&typeof window.parent.noderun.generatePreview==="function")r=window.parent.noderun.generatePreview;var w;if(r)w=r(b.previewTab);if(w){w.b=h;pui.il=true;r=false;if(window.opener&&window.opener.pui&&window.opener.pui.viewdesigner)r=true;if(window.opener&&window.opener.pui&&window.opener.pui.nodedesigner)r=true;if(window.parent&&window.parent!=window&&pui.Wh(window.parent)&&window.parent.noderun)r=true;pui.handler=r?function(A){cc({url:"/profoundui/dummy_submit",
694
694
  method:"post",params:A,sendAsBinary:false,suppressAlert:true,handler:function(){document.body.innerHTML="<br/><br/>Preview screen submitted."},onfail:function(){document.body.innerHTML="<br/><br/>Preview screen submitted."}})}:null;pui.ol(w,function(){pui.render(w)})}else{h.innerHTML="";pui.alert("Preview data is no longer available. You can rebuild the preview in the Visual Designer.")}}else{s=pui.getCookie("puiRefreshId");if(s!=null){pui.deleteCookie("puiRefreshId","/",null,null,"Strict");f={refresh:"1"};
695
695
  p+="/"+s}pui.yj&&pui.pd.payloads.push({url:p,data:f});cc({url:pui.jg(p),method:r,sendAsBinary:false,params:f,saveResponse:true,suppressAlert:true,handler:function(A){function B(){if(Array.isArray(A.payloads)){pui.Ip=A;pui.Fg=Number(b.step);if(!pui.Fg||isNaN(pui.Fg))pui.Fg=1;var G=A.b;A=A.payloads[pui.Fg-1].response;A=JSON.parse(JSON.stringify(A));A.b=G;A.version=pui.version;pui.hw()}pui.render(A)}A.b=h;pui.ol(A,function(){pui.sx(a,B)})},onfail:function(A){pui.Zb();setTimeout(function(){if(pui.onoffline==
696
696
  null){pui["suppress comm errors"]||pui.alert(pui.Ki(A));pui.is_touch&&setTimeout(function(){navigator.app!=null&&navigator.app.exitApp!=null&&navigator.app.exitApp()},500)}else pui.onoffline()},500)}})}};
697
- pui.signon=function(b){var a=b.mobile===true,c=b.screenshot===true,e=b.container,f=b.debug,h=b.workstnid,g=b.atrium_item;if(g==null)g="";if(h==null)h="";h=h.toUpperCase();var l=b.log,o=b.plog,n=b.autotest;pui.Ul=b.renderLog===true;if(e==null)e="pui";if(f==null)f="0";if(l==null)l="0";if(o==null)o="0";if(n==null)n="0";if(typeof e=="string")e=document.getElementById(e);T(document.body,"keydown",pui.sh);T(document.body,"help",pui.Ho);pui.vr();e.setAttribute("tabindex","0");pui.runtimeContainer=e;pui.fj==
697
+ pui.signon=function(b){var a=b.mobile===true,c=b.screenshot===true,e=b.container,f=b.debug,h=b.workstnid,g=b.atrium_item;if(g==null)g="";if(h==null)h="";h=h.toUpperCase();var l=b.log,o=b.plog,n=b.autotest;pui.Ul=b.renderLog===true;if(e==null)e="pui";if(f==null)f="0";if(l==null)l="0";if(o==null)o="0";if(n==null)n="0";if(typeof e=="string")e=document.getElementById(e);S(document.body,"keydown",pui.sh);S(document.body,"help",pui.Ho);pui.vr();e.setAttribute("tabindex","0");pui.runtimeContainer=e;pui.fj==
698
698
  null&&pui.Ne();var r=Wb("PUI0001200.pgm"),p="",t="";if(typeof b.program!="undefined"){t="*LIBL";var s=b.program.split("/");if(s.length==2){t=s[0];p=s[1]}}f={signon:"1",program:p.toUpperCase(),library:t.toUpperCase(),init:"1",pathname:location.pathname,debug:f,log:l,plog:o,autotest:n,workstnid:h,atrium_item:g};if(b.lang!=null&&b.lang!="")f.lang=b.lang;if(pui.isCloud){f.workspace_id=pui.cloud.ws.id;f.workspace_url=location.href;if(c)f.screenshot="1"}if(b.suffixid=="1")f.suffixid="1";if(b.duplicateid==
699
699
  "1")f.duplicateid="1";if(a)f.mobile="1";f.screen_width=screen.width;if(pui.gf)f.screen_width=pui.gf.split("x")[0];b=b.params;if(b!=null)for(var w in b)f[w]=b[w];w=pui.getCookie("puiRefreshId");if(w!=null){pui.deleteCookie("puiRefreshId","/",null,null,"Strict");f={refresh:"1"};r+="/"+w}if(pui.fj==null){pui.yj&&pui.pd.payloads.push({url:r,data:f});cc({url:pui.jg(r),method:"post",sendAsBinary:false,params:f,saveResponse:true,suppressAlert:true,handler:function(A){A.b=e;pui.ol(A,function(){pui.render(A)})},
700
700
  onfail:function(A){pui.Zb();setTimeout(function(){if(pui.onoffline==null){pui["suppress comm errors"]||pui.alert(pui.Ki(A));pui.is_touch&&setTimeout(function(){navigator.app!=null&&navigator.app.exitApp!=null&&navigator.app.exitApp()},500)}else pui.onoffline()},500)}})}};
@@ -702,14 +702,14 @@ pui.Qp=function(b){b.profoundui="1";cc({url:pui.normalizeURL(pui.controller),met
702
702
  var c=a.data;if(c==null)c={};if(a.view!=null)pui.view=a.view;if(a.redirect!=null)location.href=a.redirect;else if(a.controller!=null){pui.controller=a.controller;pui.Qp({})}else if(a.html!=null)pui.runtimeContainer.innerHTML=a.html;else{var e=a.format;if(e==null)e=a.screen;var f=a.formats;if(f==null)f=a.screens;a=a.appJob||{};pui.show({path:pui.normalizeURL(pui.view),data:c,format:e,formats:f,appJob:a,handler:function(h){pui.Qp(h)}})}}},onfail:function(a){pui.onoffline==null&&!pui["suppress comm errors"]&&
703
703
  pui.alert(pui.Ki(a));pui.Zb();pui.Vl();pui.onoffline!=null&&pui.onoffline()}})};
704
704
  pui.start=function(){pui.Vy();var b=Cc();pui.gf=b.canvasSize;var a=b.pgm;if(a==null)a=b.program;var c=b.debug,e=b.container,f=b.workstnid,h=b.suffixid,g=b.duplicateid,l=b.log,o=b.plog,n=b.autotest;pui.yj=b.record==="1";var r=b.atrium_item,p=b.initpgm,t=b.jsonURL,s=b.replay,w=b.step,A=b.mode,B=b.controller,G=b.mobile==="1",F=b.screenshot==="1",D=b.observe==="1";if(D)pui.ot.enabled=true;var E="";if(b.lang!=null)E=b.lang;pui.Ul=b.renderLog==="1";var C={};pui.co!=null&&typeof pui.co=="function"&&pui.co(e);
705
- for(var K=1;K<=255;K++){var R=b["p"+K],N=b["l"+K];if(R==null||N==null)break;C["p"+K]=R;C["l"+K]=N}if(B!=null)pui.controller=B;if(pui.controller!=null){T(document.body,"keydown",pui.sh);T(document.body,"help",pui.Ho);T(document.body,"mousedown",pui.Mr);pui.Qp({})}else{c={container:e,debug:c,log:l,plog:o,autotest:n,workstnid:f,suffixid:h,duplicateid:g,mobile:G,screenshot:F,params:C,observe:D,lang:E,renderLog:pui.Ul};if(a==null&&t==null&&s==null&&A==null){if(r!=null)c.atrium_item=r;else if(p!=null)c.program=
705
+ for(var K=1;K<=255;K++){var L=b["p"+K],Q=b["l"+K];if(L==null||Q==null)break;C["p"+K]=L;C["l"+K]=Q}if(B!=null)pui.controller=B;if(pui.controller!=null){S(document.body,"keydown",pui.sh);S(document.body,"help",pui.Ho);S(document.body,"mousedown",pui.Mr);pui.Qp({})}else{c={container:e,debug:c,log:l,plog:o,autotest:n,workstnid:f,suffixid:h,duplicateid:g,mobile:G,screenshot:F,params:C,observe:D,lang:E,renderLog:pui.Ul};if(a==null&&t==null&&s==null&&A==null){if(r!=null)c.atrium_item=r;else if(p!=null)c.program=
706
706
  p;pui.signon(c)}else{c.program=a;if(t!=null)c.jsonURL=t;if(s!=null)c.replay=s;if(w!=null)c.step=w;if(A!=null)c.mode=A;if(c.mode==="preview")c.previewTab=b.previewTab;pui.run(c)}}};pui.newSession=function(){window.location.reload()};
707
707
  pui.closeSession=function(){if(window.parent!=window&&pui.mg(window.parent))window.Atrium.closeTab();else{var b=pui.Wh(window.parent);if(window.parent!=window&&b&&window.parent.pui&&window.parent.pui.isCloud){var a=window.parent.Ext;if(a&&a.getCmp)if(a=a.getCmp("_south_panel_stop"))if(typeof a.handler==="function"){a.handler();return}}if(window.parent!=window&&b&&window.parent.noderun&&typeof window.parent.noderun.stopApp==="function")window.parent.noderun.stopApp();else{document.body.innerHTML='<div id="close-browser-msg" style="width: 95%; text-align: center; font-size: 200%;"><br/>'+
708
708
  pui.getLanguageText("runtimeMsg","close browser text")+"</div>";try{window.close()}catch(c){}if(window.puiMobileClient!=null)window.location.href="index.html"}}};
709
709
  pui.maskScreen=function(){function b(g){var l={x:0,y:0};if(g.offsetParent)for(;;){l.x+=g.offsetLeft;l.y+=g.offsetTop;if(!g.offsetParent)break;g=g.offsetParent}else if(g.x){l.x+=g.x;l.y+=g.y}if(document.documentElement.scrollHeight>document.documentElement.clientHeight)l.x+=8;return l}function a(){if(!(pui.scrollFrequency!=null&&pui.at!=null&&(new Date).getTime()-pui.at<pui.scrollFrequency)){pui.at=(new Date).getTime();var g=document.documentElement.scrollTop,l=document.documentElement.scrollLeft;
710
710
  if(!pui.is_old_ie){g=window.pageYOffset;l=window.pageXOffset}var o=b(pui.runtimeContainer);if(pui.F!=null||pui.runtimeContainer.offsetLeft!=0||pui.runtimeContainer.offsetTop!=0){l-=o.x;if(P=="dspf")g-=o.y;else g=-pui.runtimeContainer.offsetTop}if(f!=null){f.style.top=g+"px";f.style.left=l+"px"}}}var c=document.documentElement.clientWidth-2,e=document.documentElement.clientHeight-2;if(c<0)c=0;if(e<0)e=0;var f;if(pui.$i==null){f=document.createElement("div");f.id="pui-screen-mask";pui.$i=f}else f=pui.$i;
711
711
  pui.runtimeContainer.appendChild(f);f.kx=true;f.style.position="absolute";f.style.padding="0px";f.style.left="0px";f.style.top="0px";if(pui.F!=null||pui.runtimeContainer.offsetLeft!=0||pui.runtimeContainer.offsetTop!=0){f.style.display="none";setTimeout(function(){var g=b(pui.runtimeContainer);f.style.left=0-g.x+"px";f.style.top=0-g.y+"px";f.style.display=""},0)}f.style.width=c+"px";f.style.height=e+"px";f.style.backgroundColor=pui["window mask color"];pui.cd++;f.style.zIndex=pui.cd;var h=pui["window mask opacity"];
712
- f.style.opacity=h/100;f.style.filter="alpha(opacity="+h+")";if(typeof f.style.MozUserSelect!="undefined")f.style.MozUserSelect="none";T(window,"resize",function(){if(!(pui.resizeFrequency!=null&&pui.$s!=null&&(new Date).getTime()-pui.$s<pui.resizeFrequency)){pui.$s=(new Date).getTime();c=document.documentElement.clientWidth-2;e=document.documentElement.clientHeight-2;if(f!=null){f.style.height=e+"px";f.style.width=c+"px"}a()}});T(window,"scroll",a)};
712
+ f.style.opacity=h/100;f.style.filter="alpha(opacity="+h+")";if(typeof f.style.MozUserSelect!="undefined")f.style.MozUserSelect="none";S(window,"resize",function(){if(!(pui.resizeFrequency!=null&&pui.$s!=null&&(new Date).getTime()-pui.$s<pui.resizeFrequency)){pui.$s=(new Date).getTime();c=document.documentElement.clientWidth-2;e=document.documentElement.clientHeight-2;if(f!=null){f.style.height=e+"px";f.style.width=c+"px"}a()}});S(window,"scroll",a)};
713
713
  pui.unmaskScreen=function(){if(pui.$i!=null){var b=pui.$i.parentNode;b==pui.runtimeContainer&&b.removeChild(pui.$i)}};
714
714
  pui.My=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.Ja!=null&&typeof r.Ja.em=="function"&&r.Ja.em()}}var e=a.formats[0];pui.Zb();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++;
715
715
  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.$o=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.Uy+pui.leftOffset;g+="px";pui.Kl=false}var l;if(e!=null)l=pui.R(e.metaData.screen["window top"],e.data,e.ref);pui.ap=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.bq+pui.dz;l+="px";pui.Kl=false}f.style.left=g;f.style.top=
@@ -731,14 +731,14 @@ pui.Fo=function(b){function a(h){for(var g=[],l=[],o=document.querySelectorAll("
731
731
  e=="TEXTAREA"||e=="A")if(!c.readOnly&&!c.disabled&&b.style.visibility!="hidden"&&c.tabIndex!="-1"){try{c.focus();if(document.activeElement!=c)continue;pui["highlight on focus"]&&c.select();setTimeout(function(){pui.Td(null,c)},0)}catch(f){}break}}};pui.Ll=function(b){return b.search(/calc/i)>=0?true:false};
732
732
  pui.Vk=function(b,a){var c,e;if(a=="left"||a=="right"){c=b.style[a];e=b.parentNode.offsetWidth}if(a=="bottom"||a=="top"){c=b.style[a];e=b.parentNode.offsetHeight}var f;f=c.replace(/calc|[{()}]/gi,"");f=f.split(" ");if(f.length<2){if(f[0].search("%")>=0)return pui.De(f[0],e);return pui.De(f[0])}c=f[1];e=f[0].search("%")>=0?pui.De(f[0],e):pui.De(f[0]);f=pui.De(f[2]);return eval(e+c+f)};
733
733
  pui.De=function(b,a){if(b==="")return 0;if(b.search("%")>=0){if(!a)return null;return Math.round(parseInt(b)/100*parseInt(a))}return b.search(/rem/i)>=0||b.search(/em/i)>=0?parseInt(parseInt(b)*16):parseInt(b)};
734
- pui.Wk=function(b,a){function c(C){C=l.getElementsByTagName(C);for(var K,R=0;R<C.length;R++){K=C[R];K.tagName=="A"&&K.parentNode.pui!=null&&K.parentNode.pui.properties!=null&&K.parentNode.pui.properties["field type"]=="hyperlink"&&K.parentNode.tabIndex==-1||K.tagName.toUpperCase()=="INPUT"&&K.type.toUpperCase()=="BUTTON"||K.tabIndex==-1||B.push(K)}}if(b.parentNode.comboBoxWidget!=null)b=b.parentNode;if(b.parentNode.l!=null)b=b.parentNode;var e=b.parentNode.offsetWidth,f=b.parentNode.offsetHeight,
734
+ pui.Wk=function(b,a){function c(C){C=l.getElementsByTagName(C);for(var K,L=0;L<C.length;L++){K=C[L];K.tagName=="A"&&K.parentNode.pui!=null&&K.parentNode.pui.properties!=null&&K.parentNode.pui.properties["field type"]=="hyperlink"&&K.parentNode.tabIndex==-1||K.tagName.toUpperCase()=="INPUT"&&K.type.toUpperCase()=="BUTTON"||K.tabIndex==-1||B.push(K)}}if(b.parentNode.comboBoxWidget!=null)b=b.parentNode;if(b.parentNode.l!=null)b=b.parentNode;var e=b.parentNode.offsetWidth,f=b.parentNode.offsetHeight,
735
735
  h=pui.Ll(b.style.left)?pui.Vk(b,"left"):pui.De(b.style.left,e);if(isNaN(h))return null;var g=pui.Ll(b.style.top)?pui.Vk(b,"top"):pui.De(b.style.top,f);if(isNaN(g))return null;var l=b.parentNode,o=l.parentNode;if(o.grid!=null){var n=parseInt(b.parentNode.style.left);if(isNaN(n))return null;var r=parseInt(b.parentNode.style.top);if(isNaN(r))return null;var p=parseInt(o.style.left);if(isNaN(p))return null;var t=parseInt(o.style.top);if(isNaN(t))return null;h+=n+p;g+=r+t;l=o.parentNode}var s=null,w=99999,
736
736
  A=99999,B=[];c("input");c("select");c("textarea");c("a");for(var G=0;G<B.length;G++){var F=B[G];if(!(F.readOnly||F.disabled||F.style.visibility=="hidden"||F.parentNode.style.visibility=="hidden")){if(F.tagName=="A")F=F.parentNode;r=F;if(F.parentNode.comboBoxWidget!=null)r=F.parentNode;if(F.parentNode.l!=null)r=F.parentNode;F=pui.Ll(r.style.left)?pui.Vk(r,"left"):pui.De(r.style.left,e);if(!isNaN(F)){var D=pui.Ll(r.style.top)?pui.Vk(r,"top"):pui.De(r.style.top,f);if(!isNaN(D)){o=r.parentNode.parentNode;
737
737
  if(o.grid!=null){n=parseInt(r.parentNode.style.left);if(isNaN(n))return null;r=parseInt(r.parentNode.style.top);if(isNaN(r))return null;p=parseInt(o.style.left);if(isNaN(p))continue;t=parseInt(o.style.top);if(isNaN(t))continue;F+=n+p;D+=r+t}o=Math.abs(h-F);n=Math.abs(g-D);if(a=="down"&&D>g||a=="up"&&g>D)if(n<A||n==A&&o<w){s=B[G];w=o;A=n}if(a=="right"&&F>h||a=="left"&&h>F)if(n<=3&&o<w){s=B[G];w=o;A=n}}}}}if(s!=null)try{s.focus();pui["highlight on focus"]&&s.select();setTimeout(function(){pui.Td(null,
738
738
  s)},0)}catch(E){}};pui.L=pui.Ib=function(b){if(b==null)return"";return pui.handler!=null||pui.viewdesigner||pui.pjsDefaultMode==="case-sensitive"?b:b.toUpperCase()};
739
739
  pui.Xr=function(b,a){if(!b.disabled&&!b.readOnly)if(b.tagName=="TEXTAREA"||b.tagName=="INPUT"&&(b.type=="text"||b.type=="number"||b.type=="password")){var c=b.Vn;if(pui.is_touch&&!pui.is_mouse_capable)c=Ab(b);if(c==null)return false;if(c<0)c=0;c=b.value.substr(0,c);if(b.Xt==true&&b.maxLength!=null)for(;c.length<b.maxLength;)c="0"+c;else if(a&&!c.includes("-")){var e=Number(c);if(!isNaN(e)&&e!=0)c="-"+c}e=b.value!==c;b.value=c;b.modified=true;e&&typeof b.onchange==="function"&&b.onchange()}if(b.zn==
740
740
  true){pui.tb="Enter";pui.click()}else pui.Fo(b);return false};
741
- pui.translate=function(b){pui.xd=b.translations;if(pui.xd!=null){for(var a in pui.xd)pui.xd[a]=pui.formatting.hh(pui.xd[a]);a="";b=b.layers;for(var c=0;c<b.length;c++)for(var e=b[c].formats,f=0;f<e.length;f++){var h=e[f],g=h.metaData.screen,l=h.metaData.items,o=pui.Bk(null,null,g,h.data,h.ref);a+=pui.ho(g,pui.xd,true,o);for(o=0;o<l.length;o++){var n=l[o];if(!n.grid){var r=pui.Bk(n,null,g,h.data,h.ref);a+=pui.ho(n,pui.xd,false,r)}}}if(a!="")return"Missing translation data:\n\n"+a}};
741
+ pui.translate=function(b){pui.wd=b.translations;if(pui.wd!=null){for(var a in pui.wd)pui.wd[a]=pui.formatting.hh(pui.wd[a]);a="";b=b.layers;for(var c=0;c<b.length;c++)for(var e=b[c].formats,f=0;f<e.length;f++){var h=e[f],g=h.metaData.screen,l=h.metaData.items,o=pui.Bk(null,null,g,h.data,h.ref);a+=pui.ho(g,pui.wd,true,o);for(o=0;o<l.length;o++){var n=l[o];if(!n.grid){var r=pui.Bk(n,null,g,h.data,h.ref);a+=pui.ho(n,pui.wd,false,r)}}}if(a!="")return"Missing translation data:\n\n"+a}};
742
742
  pui.ho=function(b,a,c,e){c=c===true;var f="";for(var h in b){var g=b[h];if(pui.Kb(g)){for(var l=g.translations,o=[],n=0;n<l.length;n++){var r=l[n],p=r==0?"":a[r];if(p!=null)o.push(p);else{p=g.designValue;if(l.length>1)p=JSON.parse(p)[n];o.push(p);f+=c?'Record format "'+Lb(b["record format name"])+'" ':'Widget "'+Lb(b.id)+'" ';f+=', property "'+Lb(h)+'". ';f+="Phrase: "+p;f+=" ("+r+").\n"}}if(o.length==1)b[h]=o[0];else if(o.length>1)b[h]=JSON.stringify(o);if(!b.grid)for(n=0;n<e.keys.length;n++)b[h]=
743
743
  b[h].replaceAll("(&"+e.keys[n]+")",e.values[n])}}return f};
744
744
  pui.Bk=function(b,a,c,e,f){var h={keys:[],values:[]};if(a)for(property in a){if(property.includes("grid row translation placeholder key")){var g="grid row translation placeholder value"+property.slice(36);h.keys.push(a[property]);h.values.push(a[g])}}else for(property in c)if(property.includes("translation placeholder key")){g="translation placeholder value"+property.slice(27);h.keys.push(c[property]);h.values.push(pui.R(c[g],e,f))}if(b)h=pui.kr(b,h,e,f);return h};
@@ -746,11 +746,11 @@ pui.kr=function(b,a,c,e){if(b!=null&&a!=null)for(property in b){if(property.incl
746
746
  pui.wikihelp.onscroll=function(){pui.wikihelp.st!=null&&clearTimeout(pui.wikihelp.st);pui.wikihelp.st=setTimeout(pui.wikihelp.Gx,17)};pui.wikihelp.Gx=function(){for(var b=0;b<pui.wikihelp.overlays.length;b++){var a=pui.wikihelp.overlays[b];if(!a.pui.isVisible){a.pui.isVisible=pui.wikihelp.isVisible(Bb(a.pui.fieldId));if(a.pui.isVisible)a.style.display="block"}}};
747
747
  pui.wikihelp.isVisible=function(b){if(b==null)return false;if(b.Wa&&b.eb){var a=document.getElementById(b.Wa);if(!a)return false;if(a.getTab()!==parseInt(b.eb,10))return false}var c=b.getBoundingClientRect(),e=Math.round((c.left+c.right)/2),f=Math.round((c.top+c.bottom)/2);a=document.elementFromPoint(c.left+2,c.top+2);var h=document.elementFromPoint(c.right-2,c.bottom-2);c=document.elementFromPoint(c.left+2,c.bottom-2);e=document.elementFromPoint(e,f);if(a===b||e===b||h===b||c===b||b.contains(a)||
748
748
  b.contains(e)||b.contains(h)||b.contains(c))return true;return b.parentNode!=null&&b.parentNode.getAttribute("container")=="true"};
749
- pui.wikihelp.overlayOn=function(){if(pui.layers!=null){T(window,"scroll",pui.wikihelp.onscroll);if(pui.wikihelp.overlays.length>0)for(var b=0;b<pui.wikihelp.overlays.length;b++){var a=pui.wikihelp.overlays[b];a.pui.isVisible=pui.wikihelp.isVisible(Bb(a.pui.fieldId));if(a.pui.isVisible)a.style.display="block";var c=document.getElementById(a.pui.fieldId);pui.wikihelp.ru(c,a)}else pui.wikihelp.Rr(true)}};
749
+ pui.wikihelp.overlayOn=function(){if(pui.layers!=null){S(window,"scroll",pui.wikihelp.onscroll);if(pui.wikihelp.overlays.length>0)for(var b=0;b<pui.wikihelp.overlays.length;b++){var a=pui.wikihelp.overlays[b];a.pui.isVisible=pui.wikihelp.isVisible(Bb(a.pui.fieldId));if(a.pui.isVisible)a.style.display="block";var c=document.getElementById(a.pui.fieldId);pui.wikihelp.ru(c,a)}else pui.wikihelp.Rr(true)}};
750
750
  pui.wikihelp.Rr=function(b){for(var a=bd(),c=0;c<pui.layers.length;c++)for(var e=pui.layers[c],f=0;f<e.formats.length;f++){var h=e.formats[f];if(!(pui.ie(a,h.name)<0))for(var g=0;g<h.metaData.items.length;g++){var l=h.metaData.items[g];if(l.id){var o=Bb(l.id);if(o)if(l["field type"]!=="layout")if(l["field type"]!=="panel")if(l["field type"]!=="css panel")if(l.visibility!=="hidden"){var n={};n.dspf=h.file;n.recfmt=h.name;n.fieldId=l.id;n["field type"]=l["field type"];n.fieldName=typeof l.value=="object"&&
751
751
  l.value.fieldName?l.value.fieldName:typeof l["menu response"]=="object"&&l["menu response"].fieldName?l["menu response"].fieldName:typeof l.response=="object"&&l.response.fieldName?l.response.fieldName:"";if(!(typeof pui.wikihelp.skipItem=="function"&&pui.wikihelp.skipItem(n)===true)){var r=document.createElement("div");r.className="pui-wikih-overlay";r.style.position="absolute";o.parentNode.appendChild(r);r.pui=n;if(o.Wa&&o.eb){r.pui.Wa=o.Wa;r.pui.eb=parseInt(o.eb,10)}r.pui.isVisible=pui.wikihelp.isVisible(o);
752
752
  r.style.display=r.pui.isVisible&&b?"block":"none";if(l["field type"]==="grid"&&l["csv export"]==="true")r.pui.pj=pui.pj;if(l["field type"]==="styled button")r.pui.px=l.height;r.style.zIndex=o.style.zIndex+100;if(o.style.top.length>0)r.style.top=o.style.top;else if(o.style.bottom.length>0)r.style.bottom=o.style.bottom;if(o.style.left.length>0)r.style.left=o.style.left;else if(o.style.right.length>0)r.style.right=o.style.right;pui.wikihelp.overlayText&&r.appendChild(document.createTextNode(pui.wikihelp.overlayText));
753
- if(pui.wikihelp.image){l=document.createElement("img");l.src=pui.wikihelp.image;r.appendChild(l)}pui.wikihelp.ru(o,r);T(r,"click",pui.wikihelp.Cx);pui.wikihelp.overlays.push(r)}}}}}};
753
+ if(pui.wikihelp.image){l=document.createElement("img");l.src=pui.wikihelp.image;r.appendChild(l)}pui.wikihelp.ru(o,r);S(r,"click",pui.wikihelp.Cx);pui.wikihelp.overlays.push(r)}}}}}};
754
754
  pui.wikihelp.ru=function(b,a){b.getBoundingClientRect();var c=b.offsetWidth,e=b.offsetHeight;if(a.pui["field type"]==="radio button"){a.style.margin="3px 3px 0 5px";if(b.nextSibling&&b.nextSibling.tagName.toLowerCase()=="div"){c=b.offsetWidth+b.nextSibling.offsetWidth;e=Math.max(b.offsetHeight,b.nextSibling.offsetHeight)}}else if(a.pui["field type"]==="checkbox"){a.style.margin="2px";if(b.nextSibling&&b.nextSibling.tagName.toLowerCase()=="div"){c=b.offsetWidth+b.nextSibling.offsetWidth;e=Math.max(b.offsetHeight,
755
755
  b.nextSibling.offsetHeight)}}else if(a.pui["field type"]==="tab panel"){e=b.childNodes[1].offsetHeight;a.style.fontSize=e*0.85+"px"}else if(a.pui["field type"]==="date field")c=b.offsetWidth+22;else if(a.pui["field type"]==="grid"&&a.pui.pj!=null)e+=a.pui.pj;else if(a.pui["field type"]==="styled button"&&!a.pui.px){e=0;for(var f=b.firstChild;f!=null;){if(f.style!=null&&f.style.position=="absolute"){var h=f.offsetTop+f.offsetHeight;if(h>e)e=h}f=f.nextSibling}}a.style.width=c+"px";a.style.height=e+
756
756
  "px";if(pui.wikihelp.overlayText&&pui.wikihelp.fontScale!=false){f=Number(pui.wikihelp.fontScale);if(isNaN(f))f=1.56;a.style.fontSize=Math.min(c/pui.wikihelp.overlayText.length*f,e*f/2)+"px"}if(pui.wikihelp.image){f=a.getElementsByTagName("img")[0];if(pui.wikihelp.imageSquare!==false){c=Math.min(c,e);f.width=c;f.height=c}else{f.width=c;f.height=e}}};
@@ -769,29 +769,29 @@ pui.gf.split("x"),f=Number(e[1]);if(isNaN(f))f=320;var h=Number(e[0]);if(isNaN(h
769
769
  a);var g=document.createElement("select");g.style.position="absolute";g.style.width="200px";g.style.top="10px";g.style.left="50px";g.style.fontFamily="sans-serif";g.style.fontSize="13px";b();cc({url:Wb("PUI0009112.pgm"),method:"post",params:{workspace_id:pui.isCloud?pui.cloud.ws.id:""},suppressAlert:true,handler:function(l){if(l.success!=true)l.message!=null?pui.alert(l.message):pui.alert("Error occurred while loading canvas sizes.");else{l=l.sizes;if(l!=null&&l!=""){pui.gp=eval(l);b()}}},onfail:function(){pui.alert("Error occurred while loading canvas sizes.")}});
770
770
  g.onchange=function(){var l=g.value.split("x");f=Number(l[1]);if(isNaN(f))f=320;h=Number(l[0]);if(isNaN(h))h=640;c.style.width=h+60+"px";c.style.height=f+60+"px";a.style.width=h+"px";a.style.height=f+"px";pui.resize()};document.body.appendChild(g);e=document.createElement("img");e.src="/profoundui/proddata/images/FlatIcons/24x24/rotate.png";e.style.position="absolute";e.style.top="8px";e.style.left="260px";e.style.cursor="pointer";e.title="Rotate";e.onclick=function(){var l=c.style.height;c.style.height=
771
771
  c.style.width;c.style.width=l;l=a.style.height;a.style.height=a.style.width;a.style.width=l;pui.resize()};document.body.appendChild(e)}};
772
- pui.co=function(b){if(b==null)b="pui";if(typeof b=="string")b=document.getElementById(b);if(b!=null){var a;if(b.parentNode.className=="ipad-emulator"){pui.pa=true;a=false}if(b.parentNode.className=="iphone-emulator"){pui.pa=true;pui.zf=true;a=false}if(pui.pa){if(a){var c=document.createElement("img");c.src="/profoundui/proddata/images/ipad/finger.png";c.style.position="absolute";c.style.cursor="crosshair";c.style.zIndex=99;T(document,"mousemove",function(e){var f=$c(e);f+=3;c.style.left=f+"px";e=
773
- ad(e);e+=3;c.style.top=e+"px"});T(document,"mousedown",function(e){var f=$c(e);f+=1;c.style.left=f+"px";e=ad(e);e+=1;c.style.top=e+"px"})}b=document.createElement("input");b.style.position="absolute";if(pui.zf){b.style.left="90px";b.style.top="164px";b.style.width="223px";b.style.backgroundColor="#d3dae4"}else{b.style.left="285px";b.style.top="89px";b.style.width="455px"}b.style.color="#999999";b.style.borderStyle="none";b.style.fontFamily="Trebuchet MS, Sans-Serif";b.style.fontSize="14px";b.value=
772
+ pui.co=function(b){if(b==null)b="pui";if(typeof b=="string")b=document.getElementById(b);if(b!=null){var a;if(b.parentNode.className=="ipad-emulator"){pui.pa=true;a=false}if(b.parentNode.className=="iphone-emulator"){pui.pa=true;pui.zf=true;a=false}if(pui.pa){if(a){var c=document.createElement("img");c.src="/profoundui/proddata/images/ipad/finger.png";c.style.position="absolute";c.style.cursor="crosshair";c.style.zIndex=99;S(document,"mousemove",function(e){var f=$c(e);f+=3;c.style.left=f+"px";e=
773
+ ad(e);e+=3;c.style.top=e+"px"});S(document,"mousedown",function(e){var f=$c(e);f+=1;c.style.left=f+"px";e=ad(e);e+=1;c.style.top=e+"px"})}b=document.createElement("input");b.style.position="absolute";if(pui.zf){b.style.left="90px";b.style.top="164px";b.style.width="223px";b.style.backgroundColor="#d3dae4"}else{b.style.left="285px";b.style.top="89px";b.style.width="455px"}b.style.color="#999999";b.style.borderStyle="none";b.style.fontFamily="Trebuchet MS, Sans-Serif";b.style.fontSize="14px";b.value=
774
774
  location.href;if(!pui.zf){b.onclick=function(){Bb("ipadKeyboard").style.display=""};b.onblur=function(){Bb("ipadKeyboard").style.display="none"}}document.body.appendChild(b);a&&document.body.appendChild(c)}else if(pui.gf!=null){pui.Ly();pui.pa=true;pui.zf=true}}};
775
775
  pui.gp=[{description:"iPhone 6/7/8",width:375,height:667},{description:"iPhone X/XS/11",width:375,height:812},{description:"iPhone XS Max/11 Pro Max",width:414,height:896},{description:"iPad Mini",width:768,height:1024},{description:"iPad Pro",width:1024,height:1366},{description:"Galaxy S8/S9",width:360,height:740},{description:"Galaxy S10",width:360,height:760},{description:"Galaxy S20",width:360,height:800},{description:"Galaxy Tablet",width:800,height:1280}];pui.dragDropInfo={};
776
- pui.Kv=function(b,a){function c(B){function G(Ka){Ka.pointerType&&Ka.stopImmediatePropagation&&Ka.stopImmediatePropagation();var ga=ad(Ka),ua=$c(Ka),Pa=ga-aa,ra=ua-ea;if(ra==0&&Pa==0)return true;pui.Is(y)||document.body.appendChild(y);if(w&&b.grid.Fd){var gb=Bb(b.grid.Fd);gb.style.visibility="hidden";gb.style.display="none"}if(s){Pa+=K;ra+=C}y.style.top=ma+Pa+"px";y.style.left=na+ra+"px";R&&Ka.preventDefault();Pa=sa;ra=false;for(gb=0;gb<W.length;gb++){var ta=W[gb],db=y.offsetLeft,Ga=y.offsetTop,yb=
776
+ pui.Kv=function(b,a){function c(B){function G(Ka){Ka.pointerType&&Ka.stopImmediatePropagation&&Ka.stopImmediatePropagation();var ga=ad(Ka),ua=$c(Ka),Pa=ga-Z,ra=ua-ea;if(ra==0&&Pa==0)return true;pui.Is(y)||document.body.appendChild(y);if(w&&b.grid.Ed){var gb=Bb(b.grid.Ed);gb.style.visibility="hidden";gb.style.display="none"}if(s){Pa+=K;ra+=C}y.style.top=ma+Pa+"px";y.style.left=na+ra+"px";L&&Ka.preventDefault();Pa=sa;ra=false;for(gb=0;gb<X.length;gb++){var ta=X[gb],db=y.offsetLeft,Ga=y.offsetTop,yb=
777
777
  pui.Vc(y.parentNode);db+=yb[0];Ga+=yb[1];yb=db+y.offsetWidth;var Xa=Ga+y.offsetHeight;if(ta.xu==null||ta.yu==null){var rb=pui.Vc(ta.parentNode);ta.xu=rb[0];ta.yu=rb[1]}rb=ta.offsetLeft+ta.xu;var qb=ta.offsetTop+ta.yu,sb=rb+ta.offsetWidth,Fb=qb+ta.offsetHeight;if(ta.parentNode.getAttribute("container")=="true"){var cb=sb-ta.offsetWidth+ta.parentNode.offsetWidth-ta.offsetLeft;if(cb<sb)sb=cb}cb=false;if(ta.He!=null){var pb=pui.Vc(ta.He.c),kb=pb[1]+ta.He.c.offsetHeight;if(ua>pb[0]+ta.He.c.offsetWidth||
778
778
  ua<pb[0]||ga>kb||ga<pb[1])cb=true}if(ra||rb>yb||sb<db||qb>Xa||Fb<Ga||cb)if(ta.He!=null)pui.da(ta,"grid-drop-target");else{if(ta.tagName=="IMG")if(ta.ff!=null)ta.style.backgroundColor=ta.ff;if(ta.si!=null)ta.style.borderColor=ta.si}else{if(ta.He!=null)pui.Q(ta,"grid-drop-target");else{if(ta.si==null)ta.si=ta.style.borderColor;if(ta.si==null)ta.si="";ta.style.borderColor="#9999ff";if(ta.tagName=="IMG"){if(ta.ff==null)ta.ff=ta.style.backgroundColor;if(ta.ff==null)ta.ff="";ta.style.backgroundColor="#D8F0FD"}}ra=
779
779
  true;sa=ta}}ra||(sa=null);if(Pa!=sa){clearTimeout(r);if(Pa!=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=Ka;o=g(Pa);pui.dragDropInfo["target element"]=o.dom;pui.dragDropInfo["target element id"]=o.id;if(o.Da!=null)pui.dragDropInfo["target record number"]=o.Da;pui.dragDropInfo.text=n!=null?"ondragleave: Dragging row "+n+" of grid "+b.id:"ondragleave: Dragging element "+
780
780
  b.id;pui.dragDropInfo.text+=o.Da!=null?" off of row "+o.Da+" of grid "+o.id:" off of element "+o.id;l("ondragleave")}if(sa!=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=Ka;o=g(sa);pui.dragDropInfo["target element"]=o.dom;pui.dragDropInfo["target element id"]=o.id;if(o.Da!=null)pui.dragDropInfo["target record number"]=o.Da;pui.dragDropInfo.text=n!=null?
781
- "ondragenter: Dragging row "+n+" of grid "+b.id:"ondragenter: Dragging element "+b.id;pui.dragDropInfo.text+=o.Da==0?" before row "+(o.Da+1)+" of grid "+o.id:o.Da!=null?" after row "+o.Da+" of grid "+o.id:" over element "+o.id;l("ondragenter");if(e()||f())if(t>=0){clearTimeout(r);r=setTimeout(h,t)}}}R||vb(Ka)}function F(){clearTimeout(r);if(s){pui.Is(y)&&y.parentNode.removeChild(y);y=null}if(R){ac(document,"touchmove",G);ac(document,"touchend",F)}else if(B.pointerType){ac(document,"pointermove",G);
781
+ "ondragenter: Dragging row "+n+" of grid "+b.id:"ondragenter: Dragging element "+b.id;pui.dragDropInfo.text+=o.Da==0?" before row "+(o.Da+1)+" of grid "+o.id:o.Da!=null?" after row "+o.Da+" of grid "+o.id:" over element "+o.id;l("ondragenter");if(e()||f())if(t>=0){clearTimeout(r);r=setTimeout(h,t)}}}L||vb(Ka)}function F(){clearTimeout(r);if(s){pui.Is(y)&&y.parentNode.removeChild(y);y=null}if(L){ac(document,"touchmove",G);ac(document,"touchend",F)}else if(B.pointerType){ac(document,"pointermove",G);
782
782
  ac(document,"pointerup",F)}else{ac(document,"mousemove",G);ac(document,"mouseup",F)}document.onselectstart=qa;if(sa!=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=B;o=g(sa);pui.dragDropInfo["target element"]=o.dom;pui.dragDropInfo["target element id"]=o.id;if(o.Da!=null)pui.dragDropInfo["target record number"]=o.Da;pui.dragDropInfo.text=n!=null?"ondrop: Dropped row "+
783
783
  n+" of grid "+b.id:"ondrop: Dropped element "+b.id;pui.dragDropInfo.text+=o.Da==0?" before row "+(o.Da+1)+" of grid "+o.id:o.Da!=null?" after row "+o.Da+" of grid "+o.id:" into element "+o.id;if(sa.He!=null)pui.da(sa,"grid-drop-target");else{if(sa.tagName=="IMG")sa.style.backgroundColor=sa.ff;if(sa.ff!=null)sa.style.borderColor=sa.ff}if(!(o.dom.id==b.id&&n!=null&&o.Da!=null&&(n==o.Da||n==o.Da+1))){pui.dragDropInfo.cancel=false;l("ondrop");if(pui.dragDropInfo.cancel!=true)if(pui.mb.Yn!=null||pui.mb.Zn||
784
- pui.mb.fq!=null||pui.mb.gq){pui.mb.cc=true;pui.G=pui.Xn;pui.cc();pui.G="false";pui.La=null;pui.Nc=null;pui.Mc=null}}}if(!s&&pui.mb.cc!=true){b.style.left=na+"px";b.style.top=ma+"px"}if(w)b.grid.ko=false;n=o=null}B.pointerType&&B.stopImmediatePropagation&&B.stopImmediatePropagation();var D=ub(B),E=pui.Vc(b.parentNode),C=E[0],K=E[1],R=false;if(B)if(B.touches!=null){if(B.touches.length!=1)return;R=true}else if(B.pointerType==="touch")R=true;R&&B.preventDefault();var N;n=null;if(A)if(D.tagName=="TEXTAREA"||
785
- D.tagName=="INPUT")return;if(w){var M=b.grid.dataArray;if(b.grid.isFiltered())M=b.grid.X;E=b.grid.cells.length-1;if(!b.grid.ea()){N=M.length-b.grid.j+1;if(E>N)E=N}N=0;if(b.grid.h)N=1;D=ub(B);if(D.tagName=="A"||D.tagName=="IMG"||D.tagName=="INPUT"||D.tagName=="SELECT"||D.tagName=="TEXTAREA")return;for(;D!=null&&(D.row==null||D.col==null);)D=D.parentNode;if(D!=null&&D.row>=N)N=D.row;else return;if(N>E)return;n=N+b.grid.j;if(b.grid.h)n-=1;if(M.length>0&&M[n-1]!==null&&M[n-1].length!=0&&M[n-1].o!=null)n=
786
- M[n-1].o;b.grid.ko=true}E=a["drop targets"];var W=[];if(E!=null&&E!=""){E=E.split(",");for(D=0;D<E.length;D++){var Q=Bb(E[D]);if(Q!=null)if(Q.grid!=null){var ha=Q.grid.k,Y=ha.length-1;if(!Q.grid.ea()){M=Q.grid.dataArray;if(Q.grid.isFiltered())M=Q.grid.X;var X=M.length-Q.grid.j+2;if(Y>X)Y=X}Q=X=Q.grid.h?1:0;if(M.length==0)Y=X-1;for(X=X;X<ha.length;X++){if(X<=Y)Q=ha[X].as=X;else ha[X].as=Q;W.push(ha[X])}}else W.push(Q)}}var y=b;if(s){if(w){M=b.grid.cells[N];N=M[0];y=document.createElement("div");y.style.position=
787
- "absolute";y.style.left=b.style.left;y.style.top=parseInt(b.style.top)+parseInt(N.style.top)+"px";D=parseInt(b.style.width);D-=2;if(a.scrollbar!="none")D-=16;if(D<5)D=5;y.style.width=D+"px";N=parseInt(N.style.height);N-=2;if(N<5)N=5;y.style.height=N+"px";for(D=0;D<M.length;D++){N=M[D].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=
788
- "alpha(opacity=60)";y.style.border="1px solid #333333"}if(y.style.top.indexOf("calc")!==-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 ea=$c(B),aa=ad(B),na=parseInt(y.style.left),ma=parseInt(y.style.top),sa=null,qa=document.onselectstart;pui.dragDropInfo={};pui.dragDropInfo["dd element"]=b;pui.dragDropInfo["dd element id"]=b.id;if(n!=null)pui.dragDropInfo["dd record number"]=
789
- n;pui.dragDropInfo.proxy=y;pui.dragDropInfo.event=B;pui.dragDropInfo.text=n!=null?"ondragstart: Dragging row "+n+" of grid "+b.id:"ondragstart: Dragging element "+b.id;l("ondragstart");if(R){T(document,"touchmove",G);T(document,"touchend",F)}else if(B.pointerType){T(document,"pointermove",G);T(document,"pointerup",F)}else{T(document,"mousemove",G);T(document,"mouseup",F)}document.onselectstart=ya(false)}function e(){if(o.row==null)return false;if(o.grid.Hb())return false;if(o.row==0)return true;if(o.row==
790
- 1&&o.grid.h)return true;return false}function f(){if(o.row==null)return false;if(o.grid.Ub())return false;if(o.row==o.grid.cells.length)return true;return false}function h(){var B=false;if(e()){o.grid.j-=1;o.Da-=1;B=true}else if(f()){o.grid.j+=1;o.Da+=1;B=true}if(B){o.grid.Cc?o.grid.d.td(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"]+
784
+ pui.mb.fq!=null||pui.mb.gq){pui.mb.cc=true;pui.G=pui.Xn;pui.cc();pui.G="false";pui.La=null;pui.Nc=null;pui.Mc=null}}}if(!s&&pui.mb.cc!=true){b.style.left=na+"px";b.style.top=ma+"px"}if(w)b.grid.ko=false;n=o=null}B.pointerType&&B.stopImmediatePropagation&&B.stopImmediatePropagation();var D=ub(B),E=pui.Vc(b.parentNode),C=E[0],K=E[1],L=false;if(B)if(B.touches!=null){if(B.touches.length!=1)return;L=true}else if(B.pointerType==="touch")L=true;L&&B.preventDefault();var Q;n=null;if(A)if(D.tagName=="TEXTAREA"||
785
+ D.tagName=="INPUT")return;if(w){var N=b.grid.dataArray;if(b.grid.isFiltered())N=b.grid.X;E=b.grid.cells.length-1;if(!b.grid.ea()){Q=N.length-b.grid.j+1;if(E>Q)E=Q}Q=0;if(b.grid.h)Q=1;D=ub(B);if(D.tagName=="A"||D.tagName=="IMG"||D.tagName=="INPUT"||D.tagName=="SELECT"||D.tagName=="TEXTAREA")return;for(;D!=null&&(D.row==null||D.col==null);)D=D.parentNode;if(D!=null&&D.row>=Q)Q=D.row;else return;if(Q>E)return;n=Q+b.grid.j;if(b.grid.h)n-=1;if(N.length>0&&N[n-1]!==null&&N[n-1].length!=0&&N[n-1].o!=null)n=
786
+ N[n-1].o;b.grid.ko=true}E=a["drop targets"];var X=[];if(E!=null&&E!=""){E=E.split(",");for(D=0;D<E.length;D++){var T=Bb(E[D]);if(T!=null)if(T.grid!=null){var ia=T.grid.k,ca=ia.length-1;if(!T.grid.ea()){N=T.grid.dataArray;if(T.grid.isFiltered())N=T.grid.X;var W=N.length-T.grid.j+2;if(ca>W)ca=W}T=W=T.grid.h?1:0;if(N.length==0)ca=W-1;for(W=W;W<ia.length;W++){if(W<=ca)T=ia[W].as=W;else ia[W].as=T;X.push(ia[W])}}else X.push(T)}}var y=b;if(s){if(w){N=b.grid.cells[Q];Q=N[0];y=document.createElement("div");
787
+ y.style.position="absolute";y.style.left=b.style.left;y.style.top=parseInt(b.style.top)+parseInt(Q.style.top)+"px";D=parseInt(b.style.width);D-=2;if(a.scrollbar!="none")D-=16;if(D<5)D=5;y.style.width=D+"px";Q=parseInt(Q.style.height);Q-=2;if(Q<5)Q=5;y.style.height=Q+"px";for(D=0;D<N.length;D++){Q=N[D].cloneNode(true);Q.style.top="0px";Q.onclick=null;Q.onmousedown=null;Q.onmouseup=null;y.appendChild(Q)}}else y=b.cloneNode(true);y.style.zIndex=701;if(!pui.pa)y.style.cursor="move";y.style.opacity=0.6;
788
+ y.style.filter="alpha(opacity=60)";y.style.border="1px solid #333333"}if(y.style.top.indexOf("calc")!==-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 ea=$c(B),Z=ad(B),na=parseInt(y.style.left),ma=parseInt(y.style.top),sa=null,qa=document.onselectstart;pui.dragDropInfo={};pui.dragDropInfo["dd element"]=b;pui.dragDropInfo["dd element id"]=b.id;if(n!=null)pui.dragDropInfo["dd record number"]=
789
+ n;pui.dragDropInfo.proxy=y;pui.dragDropInfo.event=B;pui.dragDropInfo.text=n!=null?"ondragstart: Dragging row "+n+" of grid "+b.id:"ondragstart: Dragging element "+b.id;l("ondragstart");if(L){S(document,"touchmove",G);S(document,"touchend",F)}else if(B.pointerType){S(document,"pointermove",G);S(document,"pointerup",F)}else{S(document,"mousemove",G);S(document,"mouseup",F)}document.onselectstart=ya(false)}function e(){if(o.row==null)return false;if(o.grid.Hb())return false;if(o.row==0)return true;if(o.row==
790
+ 1&&o.grid.h)return true;return false}function f(){if(o.row==null)return false;if(o.grid.Ub())return false;if(o.row==o.grid.cells.length)return true;return false}function h(){var B=false;if(e()){o.grid.j-=1;o.Da-=1;B=true}else if(f()){o.grid.j+=1;o.Da+=1;B=true}if(B){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"]+
791
791
  " of grid "+o.id;l("ondragleave");pui.dragDropInfo["target record number"]=o.Da;pui.dragDropInfo.text=n!=null?"ondragenter: Dragging row "+n+" of grid "+b.id:"ondragenter: Dragging element "+b.id;pui.dragDropInfo.text+=o.Da==0?" before row "+(o.Da+1)+" of grid "+o.id:" after row "+o.Da+" of grid "+o.id;l("ondragenter");clearTimeout(r);r=setTimeout(h,p+35)}}function g(B){var G=B.He;if(G==null)return{dom:B,id:B.id};else{B=B.as;var F=G.j-1+B-(G.h?1:0),D=F>0?F:0,E=G.isFiltered()?G.X:G.dataArray;if(F>
792
792
  0&&E.length>0&&E[0]&&E[0].o!=null)D=F<E.length?E[F-1].o:E[E.length-1].o;return{dom:G.c,grid:G,id:G.c.id,row:B,Da:D}}}function l(B){var G=a[B];if(pui.$b(G)){pui.G=pui.Xn;pui.runLogic(G.routine)}else if(G!=null&&G!="")try{if(eval(G)==false)return false}catch(F){pui.Ea(F,B+" 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(B){if(w||A){B=ub(B);if(B.tagName=="TEXTAREA"||B.tagName=="INPUT")return true}return false};
793
- if(typeof b.style.MozUserSelect!="undefined")b.style.MozUserSelect="none";var s=a["use proxy"]=="true",w=b.grid!=null,A=a["field type"]=="html container";if(w){s=true;setTimeout(function(){var B=b.grid.cells.length-1;if(!b.grid.ea()){var G=b.grid.dataArray;if(b.grid.isFiltered())G=b.grid.X;G=G.length-b.grid.j+1;if(B>G)B=G}if((a.cursor==null||a.cursor=="")&&!pui.pa)for(G=b.grid.h?1:0;G<=B;G++)for(var F=b.grid.cells[G],D=0;D<F.length;D++)F[D].style.cursor="move"},1)}if(window.PointerEvent)T(b,"pointerdown",
794
- c);else{T(b,"mousedown",c);T(b,"touchstart",c)}};pui.errorScreen={};
793
+ if(typeof b.style.MozUserSelect!="undefined")b.style.MozUserSelect="none";var s=a["use proxy"]=="true",w=b.grid!=null,A=a["field type"]=="html container";if(w){s=true;setTimeout(function(){var B=b.grid.cells.length-1;if(!b.grid.ea()){var G=b.grid.dataArray;if(b.grid.isFiltered())G=b.grid.X;G=G.length-b.grid.j+1;if(B>G)B=G}if((a.cursor==null||a.cursor=="")&&!pui.pa)for(G=b.grid.h?1:0;G<=B;G++)for(var F=b.grid.cells[G],D=0;D<F.length;D++)F[D].style.cursor="move"},1)}if(window.PointerEvent)S(b,"pointerdown",
794
+ c);else{S(b,"mousedown",c);S(b,"touchstart",c)}};pui.errorScreen={};
795
795
  pui.errorScreen.onload=function(){function b(){h=new XMLHttpRequest;h.addEventListener("error",c);h.addEventListener("load",a);h.open("POST",Wb("PUI0009118.pgm"),true);h.setRequestHeader("Content-type","application/x-www-form-urlencoded");h.send("jobinfo="+f)}function a(){if(typeof h.response==="string"&&h.response.length>0)if(h.getResponseHeader("Content-Disposition")==="attachment"){sessionStorage.setItem("joblog",h.response);applyProperty("JobLogDownload","visibility","visible")}else console.log(pui.getLanguageText("runtimeMsg","failed to load x",
796
796
  ["Job Log"])+"<br>"+h.response);else console.log("Job log download error: Empty Response")}function c(g){console.log("Job log download error:",g)}var e=pui.errorScreen.getConfig();pui.errorScreen.getStack()&&e.type!=="production"&&applyProperty("ErrorStackDownload","visibility","visible");if(window.puiMobileClient==null&&window.device!=null&&window.device.platform=="iOS"||pui.F!=null){applyProperty("btnBack","visibility","hidden");applyProperty("btnBack","field type","graphics button")}var f;if(pui.F!=
797
797
  null){applyProperty("NewSessionButton","value",pui.getLanguageText("runtimeText","ok"));applyProperty("NewSessionButton","onclick","pui.click();");pui.appJob!=null&&typeof pui.appJob.appjoblogkey==="string"&&pui.appJob.appjoblogkey.length>0&&applyProperty("JobLogDownload","visibility","visible")}else{sessionStorage.removeItem("joblog");f=pui.get("ESAPPJOBLOGKEY");if(f.length>0)typeof saveAs=="function"?b():pui.loadJS({path:"/jszip/FileSaver.min.js",callback:b});else console.log("Cannot download job log without job key.")}pui.formatErrorText();
@@ -891,7 +891,7 @@ pui.Qm.prototype.add=function(b){var a=b.name;if(a!=null){if(b.newId==null){for(
891
891
  "";if(b.xt==null)b.xt="";if(b.Zo==null)b.Zo="";if(b.resizable==null)b.resizable=true;if(b.Wn==null)b.Wn=false;if(b.b==null)b.b=false;if(b.lg==null)b.lg=true;if(b.Uv==null)b.Uv=true;if(b.md==null)b.md=false;if(typeof b.constr==="function"||typeof b.render==="function"&&typeof b.getValue==="function")b.yf=this.Qv;this.ln.push(b);this[a]=b;if(!pui.Nn)Dc()["field type"].choices=Ic(this,false)}};
892
892
  pui.Qm.prototype.Qv=function(b){var a;if(b.dom&&b.dom.pui&&b.dom.pui.widget)a=b.dom.pui.widget;if(b.propertyName=="field type"){var c=b.value;a!=null&&typeof a.destroy==="function"&&a.destroy();if(pui.widgets[c]!=null){var e=pui.widgets[c];if(typeof e.constr==="function")try{a=new e.constr(b,c)}catch(f){console.log(f)}else{a=new pui.BasicWidget(b,c);if(typeof e.render==="function")a.render=e.render.bind(a);if(typeof e.getValue==="function")a.getValue=e.getValue.bind(a)}}}try{if(a){pui.BasicWidget.prototype.Pv.call(a,
893
893
  b);typeof a.setProperty==="function"&&a.setProperty(b)}}catch(h){console.log(h)}};pui.widgets=new pui.Qm;pui.widgets.ve=function(){var b=[];for(var a in pui.widgets.buttonStyles)b.push(a);return b};pui.widgets.Li=function(){var b=[];for(var a in pui.widgets.panelStyles)b.push(a);return b};pui.widgets.Hw=function(){return pui.widgets.Ln};pui.widgets.Qw=function(){var b=[];for(var a in pui.widgets.tabStyles)b.push(a);b.push("Other...");return b};
894
- pui.BasicWidget=function(b,a){Object.defineProperties(this,{lz:{value:a,configurable:true}});this.design=b.design;this.Rq=b.e;this.dom=b.dom;this.Xq=b.properties;this.an={};this.an[b.propertyName]=b.originalValue;this.Um={};this.Vm={};if(this.dom.pui==null)this.dom.pui={};this.dom.pui.widget=this;pui.Wf.push(this)};pui.BasicWidget.prototype=Object.create(pui.zd.prototype);
894
+ pui.BasicWidget=function(b,a){Object.defineProperties(this,{lz:{value:a,configurable:true}});this.design=b.design;this.Rq=b.e;this.dom=b.dom;this.Xq=b.properties;this.an={};this.an[b.propertyName]=b.originalValue;this.Um={};this.Vm={};if(this.dom.pui==null)this.dom.pui={};this.dom.pui.widget=this;pui.Wf.push(this)};pui.BasicWidget.prototype=Object.create(pui.yd.prototype);
895
895
  pui.BasicWidget.prototype.destroy=function(){if(this.dom!=null){this.dom.innerHTML="";this.dom.removeEventListener("input",this);this.dom.removeEventListener("change",this)}try{typeof this.cleanup==="function"&&this.cleanup()}catch(b){console.log(b)}Zb(this)};function fd(b){try{typeof b.render==="function"&&b.render()}catch(a){console.log(a)}b.design&&b.Rq&&b.Rq.Eg()}function wd(b,a){var c=b.lz;return a=="value"||c&&pui.widgets[c]&&pui.widgets[c].Qo&&pui.widgets[c].Qo[a]===true}
896
896
  function xd(b,a,c,e){b.Vm[a]=c;b.Um[e]=a}function Ad(b,a){var c=b.Um[a];if(c)return b.Vm[c]}pui.BasicWidget.prototype.getPropertyValue=function(b){var a;if(b!=null){var c=this.Vm[b];try{a=this.getValue(b);if(typeof a==="number"||typeof a==="boolean")a=String(a);else if(a instanceof Date)a=c!=null&&typeof c.dateFormat==="string"?isNaN(a.getYear())?"":a.format(c.dateFormat):a.toISOString();else if(a==null)a=""}catch(e){console.log(e)}}return a};
897
897
  pui.BasicWidget.prototype.evalProperty=function(b){return $b(this.Xq[b],this.an[b],this.dom)};pui.BasicWidget.prototype.getValue=function(b){return this.evalProperty(b)};pui.BasicWidget.prototype.Pv=function(b){var a=b.propertyName;this.design=b.design;this.Xq=b.properties;this.an[b.propertyName]=b.originalValue;if(!this.design)if(this.evalProperty(a)!==b.value&&wd(this,a))this.dom.modified=true};
@@ -910,7 +910,7 @@ if(typeof window.pui=="undefined")window.pui={};window.RPGspRequest=Bd;window.pu
910
910
  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 Bd(arguments[0]);c.async=e;c.onsuccess=function(g){h=g.xs();e==true&&f(h)};c.send();if(e==false)return h};window.ajaxJSON=cc;
911
911
  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==
912
912
  "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.gl(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 Bd(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();
913
- 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 Xb(url,function(a){try{pui.fu(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.pb["css class"]=true;b.dom.className=a}}b.design||T(b.dom,"keydown",
913
+ 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 Xb(url,function(a){try{pui.fu(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.pb["css class"]=true;b.dom.className=a}}b.design||S(b.dom,"keydown",
914
914
  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.wi=[];pui.widgets.Ln=["Column3D","Column2D","Bar2D","Line","Area2D","Pie2D","Pie3D","Doughnut3D","Other..."];pui.widgets.vz=["3D Column","2D Column","2D Bar","Line","Area","2D Pie","3D Pie","Doughnut"];
915
915
  pui.widgets.Of=function(b){function a(){delete b.dom.Uo;delete b.dom.sizeMe;delete b.dom.ge}if(!b.dom.Uo){b.dom.Uo=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(!Eb()){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.kh!=
916
916
  null)e=b.kh+"_Chart";else{console.log("Stopped rendering chart; missing id attribute.");return}var f={type:b.type.toLowerCase(),id:e,width:"100%",height:"100%",renderAt:b.dom,events:{renderComplete:a,dataLoadError:a,dataInvalid:a,noDataToDisplay:a}};if(typeof b.dom.pui.properties["chart response"]!="undefined"||typeof b.dom.pui.properties.onchartclick!="undefined"){if(b.uq!=null)f.events.dataLoadRequestCompleted=pui.widgets.zv;if(b.Se!=null)b.Se=pui.widgets.lr(b.dom.id,b.Se,c);else if(b.jsonData!=
@@ -933,18 +933,18 @@ a=pui.ld(b.properties);if(a!="")l+="&"+a}else l+="&q="+pui.yb.nf(s);l+="&maxcoun
933
933
  44)+" "+n+B.substr(44);pui.widgets.Of({dom:b.dom,kh:h,type:e,transparent:b.properties["chart overlay"]!="true",Se:B});B=b.evalProperty("ondbload");if(typeof B!="string"||B=="")B=null;if(B){var F=true;G||(F=false);pui.pf(B,F,b.dom.id)}}};w.send()}}else if(g!="")if(pui["legacy chart data url"]==true){g=g.replace(/&/g,"%26");pui.widgets.Of({dom:b.dom,kh:h,type:e,transparent:b.properties["chart overlay"]!="true",uq:g})}else Xb({url:g,method:"get",async:true,handler:function(B){pui.widgets.Of({dom:b.dom,
934
934
  kh:h,type:e,transparent:b.properties["chart overlay"]!="true",Se:B})}});else if(l!="")Xb({url:l,method:"get",async:true,handler:function(B){pui.widgets.Of({dom:b.dom,kh:h,type:e,transparent:b.properties["chart overlay"]!="true",jsonData:B})}});else if(o!=""){l="AUTH="+(pui.ba?pui.ba:pui.appJob.auth);if(typeof pui.vId!=="undefined")l+="&VID="+pui.vId;if(pui.secLevel>0){l+="&q="+encodeURIComponent(pui.Wc(b.dom));a=pui.ld(b.properties);if(a!="")l+="&"+a}else{s=o;if(a!="")s+=" ORDER BY "+a;l+="&q="+pui.yb.nf(s)}l+=
935
935
  "&limit="+c;if(pui["read db driven data as ebcdic"]!==true)l+="&UTF8=Y";if(pui.isCloud)l+="&workspace_id="+pui.cloud.ws.id;var A=new pui.Ajax(Wb("PUI0009102.PGM"));A.method="post";A.async=true;A.postData=l;A.suppressAlert=true;A.onsuccess=function(){var B=pui.widgets.ms(n),G=Kb(A,"Custom SQL query");if(!G||G.results==null){B=Ua.pop();if(B!=null&&typeof B=="object")if(G=Bb(h))G.innerHTML='<ul style="overflow-y:auto; white-space:normal"><li>Chart operation: '+B.Fl+"<li>Id: "+B.id+"<li>Message: "+B.text+
936
- "<li>"+B.um+"</ul>";else console.log(B)}else{for(var F=f?"id":"label",D=0,E=G.results.length;D<E;D++){var C=Object.keys(G.results[D]).length,K="",R="",N=0;for(var M in G.results[D]){N++;var W=G.results[D][M];if(N<C)K+=" "+W;else R=W}B+="<set "+F+'="'+pui.Yh(Lb(K))+'" value="'+pui.Yh(Lb(R))+'" />'}B+="</chart>";pui.widgets.Of({dom:b.dom,kh:h,type:e,transparent:b.properties["chart overlay"]!="true",Se:B})}};A.send()}}}}},width:function(b){b.dom.width=b.value;var a=typeof b.properties["map type"]!="undefined";
936
+ "<li>"+B.um+"</ul>";else console.log(B)}else{for(var F=f?"id":"label",D=0,E=G.results.length;D<E;D++){var C=Object.keys(G.results[D]).length,K="",L="",Q=0;for(var N in G.results[D]){Q++;var X=G.results[D][N];if(Q<C)K+=" "+X;else L=X}B+="<set "+F+'="'+pui.Yh(Lb(K))+'" value="'+pui.Yh(Lb(L))+'" />'}B+="</chart>";pui.widgets.Of({dom:b.dom,kh:h,type:e,transparent:b.properties["chart overlay"]!="true",Se:B})}};A.send()}}}}},width:function(b){b.dom.width=b.value;var a=typeof b.properties["map type"]!="undefined";
937
937
  b.design&&pui.widgets.Lj(b.dom,b.properties["chart type"],a)},height:function(b){b.dom.height=b.value;var a=typeof b.properties["map type"]!="undefined";b.design&&pui.widgets.Lj(b.dom,b.properties["chart type"],a)},"chart type":function(b){b.design&&pui.widgets.Lj(b.dom,b.value)},"map type":function(b){b.design&&pui.widgets.Lj(b.dom,b.value,true)},visibility:function(b){if(b.dom.chart)b.dom.chart.style.display=b.value=="hidden"?"none":"inline-block"},onchartclick:function(b){if(pui.$b(b.newValue))b.dom.La=
938
938
  b.newValue.routine}}});pui.Jr=function(b){var a=b.target;if(!a.readOnly){var c=a.pui.properties["indeterminate value"]!==undefined;if(a.checked===true)if(a.unchecked!==true||!c){a.unchecked=false;a.indeterminate=false}else{a.checked=false;a.unchecked=false;a.indeterminate=true}else{a.indeterminate=false;a.unchecked=true}}if(a.readOnly){b.preventDefault();return false}};
939
939
  pui.widgets.add({name:"checkbox",tag:"input",inputType:"checkbox",Zo:"label",resizable:false,defaults:{label:"Checkbox"},propertySetters:{"field type":function(b){var a=b.evalProperty("value"),c=b.evalProperty("checked value")!==""?b.evalProperty("checked value"):"1";b.dom.checkedValue=c;var e=b.evalProperty("unchecked value");b.dom.uncheckedValue=e;var f=b.properties["indeterminate value"]===undefined?null:b.evalProperty("indeterminate value");if(f==="")f="2";b.dom.indeterminateValue=f;if(!pui.is_quirksmode)if(!pui.is_old_ie)b.dom.style.margin=
940
940
  "2px";b.dom.checked=false;b.dom.indeterminate=false;if(P=="genie"&&b.dom.Hx!=null&&b.properties.value==null&&b.properties["checked value"]==null)b.dom.checked=b.dom.Hx;else if(f&&Pb(a)===Pb(f))b.dom.indeterminate=true;else if(Pb(a)==Pb(c))b.dom.checked=true;else if(c==="1"&&!e&&(a==="true"||a===true))b.dom.checked=true;b.dom.unchecked=!b.dom.checked&&!b.dom.indeterminate;if(!b.design){a=b.evalProperty("read only");if(a==="true"||a===true)b.dom.disabled=false;Ma.push(b.dom);a=b.evalProperty("label");
941
- a!=""&&pui.Cr(b.dom,a);T(b.dom,"click",pui.Jr);if(pui.is_ie||navigator.userAgent.indexOf("Edge/")!=-1)T(b.dom,"dblclick",pui.Jr)}pui.Uk(b.dom)},value:function(b){var a=b.evalProperty("value"),c=b.evalProperty("checked value")!==""?b.evalProperty("checked value"):"1";b.dom.checkedValue=c;var e=b.evalProperty("unchecked value");b.dom.uncheckedValue=e;var f=b.properties["indeterminate value"]===undefined?null:b.evalProperty("indeterminate value");if(f==="")f="2";b.dom.indeterminateValue=f;b.dom.checked=
941
+ a!=""&&pui.Cr(b.dom,a);S(b.dom,"click",pui.Jr);if(pui.is_ie||navigator.userAgent.indexOf("Edge/")!=-1)S(b.dom,"dblclick",pui.Jr)}pui.Uk(b.dom)},value:function(b){var a=b.evalProperty("value"),c=b.evalProperty("checked value")!==""?b.evalProperty("checked value"):"1";b.dom.checkedValue=c;var e=b.evalProperty("unchecked value");b.dom.uncheckedValue=e;var f=b.properties["indeterminate value"]===undefined?null:b.evalProperty("indeterminate value");if(f==="")f="2";b.dom.indeterminateValue=f;b.dom.checked=
942
942
  false;b.dom.indeterminate=false;if(f&&Pb(a)===Pb(f))b.dom.indeterminate=true;else if(Pb(a)==Pb(c))b.dom.checked=true;else if(c==="1"&&!e&&(a==="true"||a===true))b.dom.checked=true;b.dom.unchecked=!b.dom.checked&&!b.dom.indeterminate;pui.Uk(b.dom)},"checked value":function(b){var a=b.evalProperty("value"),c=b.evalProperty("checked value")!==""?b.evalProperty("checked value"):"1";b.dom.checkedValue=c;var e=b.evalProperty("unchecked value");b.dom.uncheckedValue=e;var f=b.properties["indeterminate value"]===
943
943
  undefined?null:b.evalProperty("indeterminate value");if(f==="")f="2";b.dom.indeterminateValue=f;b.dom.checked=false;b.dom.indeterminate=false;if(f&&Pb(a)===Pb(f))b.dom.indeterminate=true;else if(Pb(a)==Pb(c))b.dom.checked=true;else if(c==="1"&&!e&&(a==="true"||a===true))b.dom.checked=true;b.dom.unchecked=!b.dom.checked&&!b.dom.indeterminate;pui.Uk(b.dom)},"indeterminate value":function(b){var a=b.evalProperty("value"),c=b.evalProperty("checked value")!==""?b.evalProperty("checked value"):"1";b.dom.checkedValue=
944
944
  c;var e=b.evalProperty("unchecked value");b.dom.uncheckedValue=e;var f=b.properties["indeterminate value"]===undefined?null:b.evalProperty("indeterminate value");if(f==="")f="2";b.dom.indeterminateValue=f;b.dom.checked=false;b.dom.indeterminate=false;if(f&&Pb(a)===Pb(f))b.dom.indeterminate=true;else if(Pb(a)==Pb(c))b.dom.checked=true;else if(c==="1"&&!e&&(a==="true"||a===true))b.dom.checked=true;b.dom.unchecked=!b.dom.checked&&!b.dom.indeterminate;pui.Uk(b.dom)},visibility:function(b){if(!b.design&&
945
- b.dom.Ld)b.dom.Ld.style.visibility=b.value=="hidden"?"hidden":""},"css class":function(b){if(b.design&&b.e.label){b.e.label.className="label-for";var a=Lb(b.value.split(" ")[0]);a!=""&&pui.Q(b.e.label,"label-for-"+a)}}}});pui.Te=function(){this.za=this.u=this.b=null;this.design=false;this.choices=[];this["choice values"]=[];this["select box placement"]="";this.wb=this.jc=this.K=null};pui.Te.prototype=Object.create(pui.zd.prototype);Aa=pui.Te.prototype;
945
+ b.dom.Kd)b.dom.Kd.style.visibility=b.value=="hidden"?"hidden":""},"css class":function(b){if(b.design&&b.e.label){b.e.label.className="label-for";var a=Lb(b.value.split(" ")[0]);a!=""&&pui.Q(b.e.label,"label-for-"+a)}}}});pui.Te=function(){this.za=this.u=this.b=null;this.design=false;this.choices=[];this["choice values"]=[];this["select box placement"]="";this.wb=this.jc=this.K=null};pui.Te.prototype=Object.create(pui.yd.prototype);Aa=pui.Te.prototype;
946
946
  Aa.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(P=="genie"&&(this.u.style.height==null||this.u.style.height==""))this.u.style.height="20px";if(this.K==null){this.K=document.createElement("input");this.u.appendChild(this.K)}this.K.type="text";if(this.K.getAttribute("autocomplete")==
947
- null&&(P!="genie"||!pui.F.config.$g)){this.K.setAttribute("autocomplete","off");P=="dspf"&&this.K.setAttribute("name",pui.Rd())}this.K.style.fontFamily=this.u.style.fontFamily;if(typeof this.u.name=="string")this.K.name=this.u.name;if(this.design){this.K.style.cursor="default";this.K.readOnly=true}var b=this.u.className.split(" ").indexOf("readOnly");this.K.disabled=b>0;this.K.readOnly=b>0;this.K.addEventListener("keyup",this);if(this.jc==null){this.jc=document.createElement("div");this.u.appendChild(this.jc);
947
+ null&&(P!="genie"||!pui.F.config.$g)){this.K.setAttribute("autocomplete","off");P=="dspf"&&this.K.setAttribute("name",pui.Qd())}this.K.style.fontFamily=this.u.style.fontFamily;if(typeof this.u.name=="string")this.K.name=this.u.name;if(this.design){this.K.style.cursor="default";this.K.readOnly=true}var b=this.u.className.split(" ").indexOf("readOnly");this.K.disabled=b>0;this.K.readOnly=b>0;this.K.addEventListener("keyup",this);if(this.jc==null){this.jc=document.createElement("div");this.u.appendChild(this.jc);
948
948
  this.jc.addEventListener("mousedown",this);this.jc.addEventListener("mouseup",this)}this.jc.className="combo-arrow";this.jc.ew=true;var a;for(b=this.u.parentNode;b;){if(b.Ac){a=b;break}b=b.parentNode}if(this.wb==null){this.wb=document.createElement("div");this.wb.className="combo-options";if(P=="dspf"&&Eb())Ib.designer.b.appendChild(this.wb);else a?a.appendChild(this.wb):pui.runtimeContainer.appendChild(this.wb)}this.wb.style.display="none";this.wb.className="combo-options";Cd(this,this.u.className.split(" ")[1]);
949
949
  pui.Wf.push(this)};Aa.z=function(){var b=0;b=this.u.style.width;var a=this.u.offsetWidth,c=parseInt(getComputedStyle(this.jc).width)+3;if(b[b.length-1]==="%"){b=(1-c/a)*100;if(isNaN(b)||b<0)b=0;this.K.style.width=b+"%";this.K.style.zIndex=-1}else{b=parseInt(b)-c;if(isNaN(b)||b<0)b=0;this.K.style.width=b+"px"}};Aa.setValue=function(b){this.K.value=b;pui.le(this.K)};Aa.getValue=function(){return this.K.value};Aa.Xp=function(b){this.K.readOnly=b};Aa.setDisabled=function(b){this.K.disabled=b};
950
950
  Aa.Wp=function(b){this.K.maxLength=b};Aa.Ay=function(b,a){this.K.setAttribute(b,a)};function Cd(b,a){b.K.className="combo-main-box "+a.split(" ")[0];pui.Q(b.wb,b.K.className.split(" ")[1]+"-combo-options");pui.Q(b.jc,b.K.className.split(" ")[1]+"-combo-arrow")}Aa.xn=function(b,a){this.K[b]=a;if(this.u[b]!=null)this.u[b]=oa()};Aa.clear=function(){this.choices=[];this["choice values"]=[];this.K.value="";pui.le(this.K)};Aa.getBox=function(){return this.K};
@@ -967,34 +967,34 @@ if(typeof p!="string"||p=="")p=null;var t=Kb(r,"Generate Dropdown Box Options");
967
967
  p&&pui.pf(p,true,b.dom.id)}else p&&pui.pf(p,false,b.dom.id)};b.dom.comboBoxWidget.clear();b.dom.comboBoxWidget.setValue(pui.getLanguageText("runtimeMsg","loading"));r.send()}}else{b.dom.comboBoxWidget.setValue(b.evalProperty("value"));if(b.design&&b.properties.choices){c=Dc().choices;Pc(c,b.properties,b.e.dom,b.properties.choices,true,b.e)}}},choices:function(b){if(b.dom.comboBoxWidget!=null)b.dom.comboBoxWidget.choices=pui.ha(b.value)},"choice values":function(b){if(b.dom.comboBoxWidget!=null)b.dom.comboBoxWidget["choice values"]=
968
968
  pui.ha(b.value)},value:function(b){b.dom.comboBoxWidget!=null&&b.dom.comboBoxWidget.setValue(b.value)},"read only":function(b){if(b.dom.comboBoxWidget!=null&&!b.design)b.value==true||b.value=="true"?b.dom.comboBoxWidget.Xp(true):b.dom.comboBoxWidget.Xp(false)},disabled:function(b){if(b.dom.comboBoxWidget!=null&&!b.design)b.value==true||b.value=="true"?b.dom.comboBoxWidget.setDisabled(true):b.dom.comboBoxWidget.setDisabled(false)},"css class":function(b){b.dom.comboBoxWidget!=null&&Cd(b.dom.comboBoxWidget,
969
969
  b.value)},width:function(b){if(b.dom.comboBoxWidget!=null){b.dom.style.width=b.value;b.dom.comboBoxWidget.z()}},onselect:function(b){b.dom.du=function(){if(pui.$b(b.properties.onselect))pui.runLogic(b.properties.onselect.routine,b.dom.o,b.dom.Yj);else{eval("var value = arguments[0];");eval("var text = arguments[1];");eval("var object = arguments[2];");try{eval(b.value)}catch(a){pui.Ea(a,"Onselect Error:\n"+a.message)}}}},"input type":function(b){try{!b.design&&b.dom.comboBoxWidget!=null&&b.dom.comboBoxWidget.getBox().setAttribute("type",
970
- b.value)}catch(a){}},"browser auto complete":function(b){if(!b.design&&b.dom.comboBoxWidget!=null){b.dom.comboBoxWidget.getBox().setAttribute("autocomplete",b.value);if(P=="dspf")b.value=="off"?b.dom.comboBoxWidget.getBox().setAttribute("name",pui.Rd()):b.dom.comboBoxWidget.getBox().removeAttribute("name")}}},yf:function(b){b.dom&&b.dom.comboBoxWidget&&typeof b.dom.comboBoxWidget.setProperty==="function"&&b.dom.comboBoxWidget.setProperty(b)},Gv:{"tab index":function(b){b.dom.removeAttribute("tabindex");
970
+ b.value)}catch(a){}},"browser auto complete":function(b){if(!b.design&&b.dom.comboBoxWidget!=null){b.dom.comboBoxWidget.getBox().setAttribute("autocomplete",b.value);if(P=="dspf")b.value=="off"?b.dom.comboBoxWidget.getBox().setAttribute("name",pui.Qd()):b.dom.comboBoxWidget.getBox().removeAttribute("name")}}},yf:function(b){b.dom&&b.dom.comboBoxWidget&&typeof b.dom.comboBoxWidget.setProperty==="function"&&b.dom.comboBoxWidget.setProperty(b)},Gv:{"tab index":function(b){b.dom.removeAttribute("tabindex");
971
971
  b.dom.comboBoxWidget.getBox().setAttribute("tabindex",b.value)},placeholder:function(b){b.dom.removeAttribute("placeholder");b.dom.comboBoxWidget.getBox().setAttribute("placeholder",b.value)}},qc:function(b){if(b.propertyName=="field type"&&b.za&&b.za.l!=null&&b.dom&&b.dom.l!=null&&b.dom.className.indexOf("pui-floating-placeholder-combo-main")==-1){b.dom.removeChild(b.dom.l);pui.sg(b.dom)}if(b.propertyName.substr(0,9)=="css class")if(b.dom.className.indexOf("combo-main")==-1)b.dom.className="combo-main "+
972
972
  b.dom.className}});pui.Gm=function(){this.designMode=this.b=null;this.Iu=this.ue=false;var b,a,c,e,f="a",h=1,g=false,l=" ui-icon-shadow";if(pui.is_firefox)l="";var o=this;this.init=function(){function n(){if(!g){pui.da(b,"ui-btn-up-"+f);pui.Q(b,"ui-btn-down-"+f)}}function r(){pui.da(b,"ui-btn-down-"+f);pui.Q(b,"ui-btn-up-"+f)}b=o.ue||o.Iu?document.createElement("span"):document.createElement("a");a=document.createElement("span");c=document.createElement("span");e=document.createElement("span");b.className="ui-btn ui-shadow ui-btn-corner-all ui-btn-up-"+
973
- f;b.style.marginTop="0";b.style.marginBottom="0";a.className="ui-btn-inner ui-btn-corner-all";c.className="ui-btn-text";e.className="ui-icon"+l;a.appendChild(c);a.appendChild(e);b.appendChild(a);o.b.appendChild(b);T(b,"mouseover",function(){if(!g){pui.da(b,"ui-btn-up-"+f);pui.Q(b,"ui-btn-hover-"+f)}});T(b,"mouseout",function(){pui.da(b,"ui-btn-hover-"+f);pui.Q(b,"ui-btn-up-"+f)});T(b,"focus",function(){g||pui.Q(b,"ui-focus")});T(b,"blur",function(){pui.da(b,"ui-focus")});T(b,"mousedown",n);T(b,"touchstart",
974
- n);T(b,"mouseup",r);T(b,"touchend",r);T(b,"mouseleave",r)};this.setText=function(n){c.innerHTML=n};this.ud=function(n){if(n==null||n==""||pui.p(n))n="a";n=n.replace(/ - {1}.*/g,"");n=n.toLowerCase();if(f!=n){for(var r=b.className.split(" "),p=0;p<r.length;p++){var t=r[p];if(t.length>2&&t.substr(t.length-(h+1),h+1)=="-"+f){r=t.substr(0,t.length-h)+n;pui.da(b,t);pui.Q(b,r);break}}f=n;h=f.length}};this.jm=function(n){pui.da(b,"ui-btn-icon-left");pui.da(b,"ui-btn-icon-right");pui.da(b,"ui-btn-icon-top");
973
+ f;b.style.marginTop="0";b.style.marginBottom="0";a.className="ui-btn-inner ui-btn-corner-all";c.className="ui-btn-text";e.className="ui-icon"+l;a.appendChild(c);a.appendChild(e);b.appendChild(a);o.b.appendChild(b);S(b,"mouseover",function(){if(!g){pui.da(b,"ui-btn-up-"+f);pui.Q(b,"ui-btn-hover-"+f)}});S(b,"mouseout",function(){pui.da(b,"ui-btn-hover-"+f);pui.Q(b,"ui-btn-up-"+f)});S(b,"focus",function(){g||pui.Q(b,"ui-focus")});S(b,"blur",function(){pui.da(b,"ui-focus")});S(b,"mousedown",n);S(b,"touchstart",
974
+ n);S(b,"mouseup",r);S(b,"touchend",r);S(b,"mouseleave",r)};this.setText=function(n){c.innerHTML=n};this.td=function(n){if(n==null||n==""||pui.p(n))n="a";n=n.replace(/ - {1}.*/g,"");n=n.toLowerCase();if(f!=n){for(var r=b.className.split(" "),p=0;p<r.length;p++){var t=r[p];if(t.length>2&&t.substr(t.length-(h+1),h+1)=="-"+f){r=t.substr(0,t.length-h)+n;pui.da(b,t);pui.Q(b,r);break}}f=n;h=f.length}};this.jm=function(n){pui.da(b,"ui-btn-icon-left");pui.da(b,"ui-btn-icon-right");pui.da(b,"ui-btn-icon-top");
975
975
  pui.da(b,"ui-btn-icon-bottom");n!="left"&&n!="right"||pui.Q(b,"ui-btn-icon-"+n)};this.setIcon=function(n,r){if(n&&r=="material"){e.className="pui-material-icons";e.innerHTML=n}else if(n&&r=="fontAwesome"){e.className="pui-fa-icons fa-"+n;e.innerHTML=""}else if(n&&n.indexOf(":")!==-1){var p=[{type:"material",title:"Material Icons",classList:{"":"pui-material-icons"}},{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-"}},
976
976
  {type:"jQueryIcons",title:"jQuery Mobile Icons",classList:{"":"ui-icon ui-icon-"}}];n=Lb(n);if(pui.customIconList&&pui.customIconList)if(Array.isArray(pui.customIconList.icons)&&pui.customIconList.icons.length)p=pui.customIconList.icons;var t=n.split(":"),s=t.shift().split("-"),w=s.pop();s=s.join("-");var A=t.pop();p.every(function(B){var G=B.classList[w];if(s===B.type){e.className=G+A;e.innerHTML="";return false}return true})}else{if(n=="left arrow")n="arrow-l";if(n=="right arrow")n="arrow-r";if(n==
977
977
  "up arrow")n="arrow-u";if(n=="down arrow")n="arrow-d";if(n==null)n="";if(n!="")n=" ui-icon-"+n;e.className="ui-icon"+n+l;e.innerHTML=""}};this.Ig=function(n){n==true?pui.Q(b,"ui-mini"):pui.da(b,"ui-mini")};this.setDisabled=function(n){g=n};this.T=function(n){if(!(n==null||pui.p(n))){b.style.borderTopLeftRadius="";b.style.borderTopRightRadius="";b.style.borderBottomLeftRadius="";b.style.borderBottomRightRadius="";a.style.borderTopLeftRadius="";a.style.borderTopRightRadius="";a.style.borderBottomLeftRadius=
978
978
  "";a.style.borderBottomRightRadius="";switch(n){case "left":b.style.borderTopLeftRadius="0";b.style.borderBottomLeftRadius="0";a.style.borderTopLeftRadius="0";a.style.borderBottomLeftRadius="0";break;case "right":b.style.borderTopRightRadius="0";b.style.borderBottomRightRadius="0";a.style.borderTopRightRadius="0";a.style.borderBottomRightRadius="0";break;case "top":b.style.borderTopRightRadius="0";b.style.borderTopLeftRadius="0";a.style.borderTopRightRadius="0";a.style.borderTopLeftRadius="0";break;
979
979
  case "bottom":b.style.borderBottomRightRadius="0";b.style.borderBottomLeftRadius="0";a.style.borderBottomRightRadius="0";a.style.borderBottomLeftRadius="0";break;case "all":b.style.borderTopLeftRadius="0";b.style.borderBottomLeftRadius="0";b.style.borderTopRightRadius="0";b.style.borderBottomRightRadius="0";a.style.borderTopLeftRadius="0";a.style.borderBottomLeftRadius="0";a.style.borderTopRightRadius="0";a.style.borderBottomRightRadius="0";break;default:break}}};this.setHeight=function(n){if(typeof n==
980
980
  "number")n+="px";b.style.height=n};this.setStyle=function(n,r){if(pui.p(r))r="";var p=n.split(" ");if(p.length==2)n=p[0]+p[1].substr(0,1).toUpperCase()+p[1].substr(1);if(n=="cursor"){e.style[n]=r;b.style[n]=r;a.style[n]=r}if(n=="textAlign")b.style[n]=r;else c.style[n]=r};this.Fy=function(n){if(!o.designMode)b.href=n};this.Jy=function(n){if(!o.designMode)b.target=n};this.Cy=function(n){o.designMode||(b.download=n)};this.gu=function(n){if(o.b!=null){if(n!=null)o.b.style.height=n;if(o.b.style.height!=
981
- null&&o.b.style.height!=""&&c.innerHTML.toLowerCase().indexOf("<br")<0){n=b.offsetHeight-26;if(n<0)n=0;c.style.lineHeight=n+"px"}else c.style.lineHeight=null}};this.Ao=this.Jd=function(){return b};this.we=function(){return a};this.Eo=function(){return c};this.Gg=function(n){for(var r=["color","font family","font size","font style","font variant","font weight","letter spacing","text align","text decoration","text transform","word spacing"],p=0;p<r.length;p++){var t=r[p],s=n[t];s!=null&&o.setStyle(t,
982
- s)}}};pui.widgets.Jz=function(b){var a={};for(var c in b)a[c]=b[c];if(a.value==null)a.value="Click Here";if(a.width==null)a.width="160px";if(a.height==null)a.height="42px";if(a.theme==null)a.theme="c - Gray";b=document.createElement("div");b.style.width=a.width;b.style.height=a.height;c=new pui.Gm;c.b=b;c.designMode=true;c.ue=true;c.init();c.setText(a.value);c.ud(a.theme);c.setIcon(a.icon);c.jm(a["icon position"]);c.Ig(a["small button"]=="true");c.T(a["straight edge"]);return b};
981
+ null&&o.b.style.height!=""&&c.innerHTML.toLowerCase().indexOf("<br")<0){n=b.offsetHeight-26;if(n<0)n=0;c.style.lineHeight=n+"px"}else c.style.lineHeight=null}};this.Ao=this.Id=function(){return b};this.we=function(){return a};this.Eo=function(){return c};this.Gg=function(n){for(var r=["color","font family","font size","font style","font variant","font weight","letter spacing","text align","text decoration","text transform","word spacing"],p=0;p<r.length;p++){var t=r[p],s=n[t];s!=null&&o.setStyle(t,
982
+ s)}}};pui.widgets.Jz=function(b){var a={};for(var c in b)a[c]=b[c];if(a.value==null)a.value="Click Here";if(a.width==null)a.width="160px";if(a.height==null)a.height="42px";if(a.theme==null)a.theme="c - Gray";b=document.createElement("div");b.style.width=a.width;b.style.height=a.height;c=new pui.Gm;c.b=b;c.designMode=true;c.ue=true;c.init();c.setText(a.value);c.td(a.theme);c.setIcon(a.icon);c.jm(a["icon position"]);c.Ig(a["small button"]=="true");c.T(a["straight edge"]);return b};
983
983
  pui.widgets.add({name:"css button",newValue:"Click Here",md:true,defaults:{width:"160px",theme:"c - Gray"},yf:function(b){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.button.setStyle(b.propertyName,b.value);break;default:break}},propertySetters:{"field type":function(b){var a=new pui.Gm;a.b=b.dom;a.designMode=
984
- b.design;b.dom.innerHTML="";if(!b.design&&b.properties["hyperlink reference"]==null&&b.properties.target==null)a.Iu=true;a.init();b.dom.button=a;a.setText(b.evalProperty("value"));a.ud(b.evalProperty("theme"));a.setIcon(b.evalProperty("icon"));a.jm(b.evalProperty("icon position"));a.Ig(b.evalProperty("small button")=="true");a.T(b.evalProperty("straight edge"));a.setHeight("100%")},theme:function(b){b.dom.button.ud(b.value)},value:function(b){b.dom.button.setText(b.value)},"icon position":function(b){b.dom.button.jm(b.value)},
984
+ b.design;b.dom.innerHTML="";if(!b.design&&b.properties["hyperlink reference"]==null&&b.properties.target==null)a.Iu=true;a.init();b.dom.button=a;a.setText(b.evalProperty("value"));a.td(b.evalProperty("theme"));a.setIcon(b.evalProperty("icon"));a.jm(b.evalProperty("icon position"));a.Ig(b.evalProperty("small button")=="true");a.T(b.evalProperty("straight edge"));a.setHeight("100%")},theme:function(b){b.dom.button.td(b.value)},value:function(b){b.dom.button.setText(b.value)},"icon position":function(b){b.dom.button.jm(b.value)},
985
985
  icon:function(b){if(b.value)b.value=Lb(b.value);if(b.value.substr(0,9)=="material:"){var a=Lb(b.value.substr(9));b.dom.button.setIcon(a,"material")}else if(b.value.substr(0,12)=="fontAwesome:"){a=Lb(b.value.substr(12));b.dom.button.setIcon(a,"fontAwesome")}else b.dom.button.setIcon(b.value)},"small button":function(b){b.dom.button.Ig(b.value=="true"||b.value==true)},disabled:function(b){b.dom.button.setDisabled(b.value=="true"||b.value==true)},"straight edge":function(b){b.dom.button.T(b.value)},
986
986
  "hyperlink reference":function(b){var a=b.value;if(b.designMode)a=null;b.dom.button.Fy(a)},target:function(b){b.dom.button.Jy(b.value)},"download file":function(b){b.dom.button.Cy(b.value)},height:function(b){b.dom.button.gu(b.value)},visibility:function(b){if(!b.design)b.dom.firstChild.style.display=b.value=="hidden"?"none":""},cursor:function(b){b.dom.button.setStyle("cursor",b.value)}}});pui.Im=function(){this.b=null;this.type="body";this.tf=false;var b,a,c,e,f="c",h=1,g=this;this.init=function(){b=document.createElement("span");a=document.createElement("span");if(g.type=="header")c=document.createElement("span");b.className="ui-btn ui-shadow ui-btn-corner-all ui-btn-up-"+f+" no-shadow";b.style.marginTop="0";b.style.marginBottom="0";b.style.cursor="default";a.className="ui-btn-inner ui-btn-corner-all";if(g.type=="header"){c.className="ui-btn-text";a.appendChild(c)}if(g.tf&&g.type==
987
- "body"){e=document.createElement("div");e.setAttribute("container","true");e.style.position="absolute";e.style.width="100%";e.style.height="100%";e.style.overflow="hidden";b.appendChild(e)}b.appendChild(a);g.b.appendChild(b)};this.setText=function(l){if(g.type=="header"){if(l==null||pui.p(l)||pui.Kb(l)||pui.$b(l))l="";c.innerHTML=l}};this.ud=function(l){if(l==null||l==""||pui.p(l))l="c";l=l.replace(/ - {1}.*/g,"");l=l.toLowerCase();if(f!=l){for(var o=b.className.split(" "),n=0;n<o.length;n++){var r=
987
+ "body"){e=document.createElement("div");e.setAttribute("container","true");e.style.position="absolute";e.style.width="100%";e.style.height="100%";e.style.overflow="hidden";b.appendChild(e)}b.appendChild(a);g.b.appendChild(b)};this.setText=function(l){if(g.type=="header"){if(l==null||pui.p(l)||pui.Kb(l)||pui.$b(l))l="";c.innerHTML=l}};this.td=function(l){if(l==null||l==""||pui.p(l))l="c";l=l.replace(/ - {1}.*/g,"");l=l.toLowerCase();if(f!=l){for(var o=b.className.split(" "),n=0;n<o.length;n++){var r=
988
988
  o[n];if(r.length>2&&r.substr(r.length-(h+1),h+1)=="-"+f){o=r.substr(0,r.length-h)+l;pui.da(b,r);pui.Q(b,o);break}}f=l;h=f.length}};this.T=function(l){if(!(l==null||pui.p(l))){b.style.borderTopLeftRadius="";b.style.borderTopRightRadius="";b.style.borderBottomLeftRadius="";b.style.borderBottomRightRadius="";a.style.borderTopLeftRadius="";a.style.borderTopRightRadius="";a.style.borderBottomLeftRadius="";a.style.borderBottomRightRadius="";switch(l){case "left":b.style.borderTopLeftRadius="0";b.style.borderBottomLeftRadius=
989
989
  "0";a.style.borderTopLeftRadius="0";a.style.borderBottomLeftRadius="0";break;case "right":b.style.borderTopRightRadius="0";b.style.borderBottomRightRadius="0";a.style.borderTopRightRadius="0";a.style.borderBottomRightRadius="0";break;case "top":b.style.borderTopRightRadius="0";b.style.borderTopLeftRadius="0";a.style.borderTopRightRadius="0";a.style.borderTopLeftRadius="0";break;case "bottom":b.style.borderBottomRightRadius="0";b.style.borderBottomLeftRadius="0";a.style.borderBottomRightRadius="0";
990
990
  a.style.borderBottomLeftRadius="0";break;case "all":b.style.borderTopLeftRadius="0";b.style.borderBottomLeftRadius="0";b.style.borderTopRightRadius="0";b.style.borderBottomRightRadius="0";a.style.borderTopLeftRadius="0";a.style.borderBottomLeftRadius="0";a.style.borderTopRightRadius="0";a.style.borderBottomRightRadius="0";break;default:break}}};this.setHeight=function(l){if(typeof l=="number")l+="px";b.style.height=l};this.setStyle=function(l,o){if(g.type=="header"){if(pui.p(o))o="";var n=l.split(" ");
991
991
  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.Gg=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.gu=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!=
992
- ""){l=link.offsetHeight-26;if(l<0)l=0;c.style.lineHeight=l+"px"}else c.style.lineHeight=null}};this.Jd=function(){return b};this.we=function(){return b};this.Eo=function(){return c}};
993
- pui.Hm=function(){this.b=null;this.tf=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.Im;c.type="header";c.tf=l.tf;c.b=b;c.init();c.ud("b");c.setHeight("100%");e=new pui.Im;e.type="body";e.tf=l.tf;e.b=a;e.init();e.setHeight("100%");l.T("none");l.b.appendChild(b);
994
- l.b.appendChild(a);l.resize();var o=l.b.parentNode;o!=null&&o.Ac==true&&l.et();o==null&&setTimeout(function(){var n=l.b.parentNode;n!=null&&n.Ac==true&&l.et()},0)};this.et=function(){var o=l.b.parentNode;new pui.gk({yk:b,move:o});T(b,"touchstart",function(n){if(n.touches.length==1){n=n.touches[0];o.D={};o.D.startX=n.pageX;o.D.startY=n.pageY;o.D.hb=parseInt(o.style.left);o.D.Fa=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.D.hb-
995
- o.D.startX+r.pageX+"px";o.style.top=o.D.Fa-o.D.startY+p+"px";n.preventDefault()}});b.style.cursor="move";if(b.firstChild!=null)b.firstChild.style.cursor="move"};this.Nj=function(o){b.style.display=o?"":"none";f=o;l.T(g);l.resize()};this.Oj=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.Jd().style.borderBottomRightRadius="0";c.we().style.borderBottomRightRadius="0";e.T("left");e.Jd().style.borderTopRightRadius=
996
- "0";e.we().style.borderTopRightRadius="0";break;case "right":c.T("right");c.Jd().style.borderBottomLeftRadius="0";c.we().style.borderBottomLeftRadius="0";e.T("right");e.Jd().style.borderTopLeftRadius="0";e.we().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.Eo=function(){return c.Eo()};this.setStyle=
997
- function(o,n){c.setStyle(o,n)};this.Gg=function(o){c.Gg(o)};this.Sf=function(o){c.ud(o)};this.Qf=function(o){e.ud(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.Qz=function(){return c.Jd()};this.Pz=function(){return h}};
992
+ ""){l=link.offsetHeight-26;if(l<0)l=0;c.style.lineHeight=l+"px"}else c.style.lineHeight=null}};this.Id=function(){return b};this.we=function(){return b};this.Eo=function(){return c}};
993
+ pui.Hm=function(){this.b=null;this.tf=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.Im;c.type="header";c.tf=l.tf;c.b=b;c.init();c.td("b");c.setHeight("100%");e=new pui.Im;e.type="body";e.tf=l.tf;e.b=a;e.init();e.setHeight("100%");l.T("none");l.b.appendChild(b);
994
+ l.b.appendChild(a);l.resize();var o=l.b.parentNode;o!=null&&o.Ac==true&&l.et();o==null&&setTimeout(function(){var n=l.b.parentNode;n!=null&&n.Ac==true&&l.et()},0)};this.et=function(){var o=l.b.parentNode;new pui.gk({yk:b,move:o});S(b,"touchstart",function(n){if(n.touches.length==1){n=n.touches[0];o.D={};o.D.startX=n.pageX;o.D.startY=n.pageY;o.D.hb=parseInt(o.style.left);o.D.Fa=parseInt(o.style.top)}});S(b,"touchmove",function(n){if(n.touches.length==1){var r=n.touches[0],p=r.pageY;o.style.left=o.D.hb-
995
+ o.D.startX+r.pageX+"px";o.style.top=o.D.Fa-o.D.startY+p+"px";n.preventDefault()}});b.style.cursor="move";if(b.firstChild!=null)b.firstChild.style.cursor="move"};this.Nj=function(o){b.style.display=o?"":"none";f=o;l.T(g);l.resize()};this.Oj=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.Id().style.borderBottomRightRadius="0";c.we().style.borderBottomRightRadius="0";e.T("left");e.Id().style.borderTopRightRadius=
996
+ "0";e.we().style.borderTopRightRadius="0";break;case "right":c.T("right");c.Id().style.borderBottomLeftRadius="0";c.we().style.borderBottomLeftRadius="0";e.T("right");e.Id().style.borderTopLeftRadius="0";e.we().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.Eo=function(){return c.Eo()};this.setStyle=
997
+ function(o,n){c.setStyle(o,n)};this.Gg=function(o){c.Gg(o)};this.Sf=function(o){c.td(o)};this.Qf=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.Qz=function(){return c.Id()};this.Pz=function(){return h}};
998
998
  pui.widgets.Kz=function(b){var a={};for(var c in b)a[c]=b[c];if(a.value==null)a.value="Panel Title";if(a.width==null)a.width="200px";if(a.height==null)a.height="300px";if(a["header theme"]==null)a["header theme"]="B - Blue";if(a["body theme"]==null)a["body theme"]="C - Gray";b=document.createElement("div");b.style.width=a.width;b.style.height=a.height;b.style.position="relative";c=new pui.Hm;c.b=b;c.init();c.setText(a.value);c.Sf(a["header theme"]);c.Qf(a["body theme"]);c.T(a["straight edge"]);c.Nj(a["has header"]!==
999
999
  "false"&&a["has header"]!==false);c.Oj(a["header height"]);c.setHeight(a.height);return b};
1000
1000
  pui.widgets.add({name:"css panel",menuName:"CSS Panel",newId:"Panel",newValue:"Panel Title",md:true,defaults:{width:"200px",height:"300px","z index":"8"},yf:function(b){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.panel.setStyle(b.propertyName,b.value);break;default:break}},propertySetters:{"field type":function(b){b.dom.sizeMe=
@@ -1003,16 +1003,16 @@ value:function(b){b.dom.panel.setText(b.value)},"straight edge":function(b){b.do
1003
1003
  function Gd(b,a,c){var e,f,h,g=0,l,o="false";if(b.Ap!=null&&b.Ap==="true")o=b.Ap;if(pui.locale&&pui.locales[pui.locale])h=pui.locale;else{if(P=="dspf"&&b.N)h=b.N.locale;else if(P=="genie")h=pui.F.config.locale;if(h=="")h=null}if(h){e=pui.locales[h].monthNames;dayNames=pui.locales[h].shortDayNames;if(o=="true"&&pui.locales[h].weekNumberShort)l=pui.locales[h].weekNumberShort;else if(o=="true")l="Wk";f=[];if(pui.locales[h].weekStart)g=pui.locales[h].weekStart;for(var n=0;n<dayNames.length;n++)f.push(dayNames[n])}else{e=
1004
1004
  ["January","February","March","April","May","June","July","August","September","October","November","December"];f=["Su","Mo","Tu","We","Th","Fr","Sa"];if(o=="true")l="Wk"}pui.currentDateField=b;n=a==null||a==""?new Date:Hd(a);if(n==null)n=new Date;a=n.getMonth();var r=new Date(n);for(r.setMonth(a-1);r.getMonth()==a;)r.setDate(r.getDate()-1);var p=new Date(n);p.setMonth(a+1);a=a+1;if(a==12)a=0;for(;p.getMonth()!=a;)p.setDate(p.getDate()-1);var t=new Date(n);t.setFullYear(n.getFullYear()-1);var s=new Date(n);
1005
1005
  s.setFullYear(n.getFullYear()+1);var w=new Date(n);w.setDate(1);w.setDate(1-(7+w.getDay()-g)%7);(new Date(p)).setDate(0);var A=new Date;a=document.createElement("table");a.className="pui-calendar-outer-table";var B=document.createElement("tbody");a.appendChild(B);var G=document.createElement("tr");B.appendChild(G);B=document.createElement("td");B.className="brndrow1";G.appendChild(B);var F=document.createElement("table");F.className="pui-calendar-inner-table";B.appendChild(F);G=document.createElement("tbody");
1006
- F.appendChild(G);B=document.createElement("tr");G.appendChild(B);F=document.createElement("td");F.className="brndrow1";F.colSpan="1";var D=document.createElement("span");D.setAttribute("arrow","1");D.className="pui-calendar-arrow-prev-year";var E=Id(t);D.onclick=function(M){Gd(pui.currentDateField,E+document.cal.time.value,c);vb(M)};F.appendChild(D);B.appendChild(F);t=document.createElement("td");t.className="brndrow1";t.colSpan="1";F=document.createElement("span");F.setAttribute("arrow","1");F.className=
1007
- "pui-calendar-arrow-prev-month";var C=Id(r);F.onclick=function(M){Gd(pui.currentDateField,C+document.cal.time.value,c);vb(M)};t.appendChild(F);B.appendChild(t);r=document.createElement("td");r.className="calendar brndrow1 pui-calendar-month-year-header";r.colSpan="3";if(o=="true")r.colSpan="4";r.innerHTML=e[n.getMonth()]+" "+n.getFullYear();B.appendChild(r);e=document.createElement("td");e.className="brndrow1 pui_calendar_brndrow1_right";e.colSpan="1";r=document.createElement("span");r.setAttribute("arrow",
1008
- "1");r.className="pui-calendar-arrow-next-month";var K=Id(p);r.onclick=function(M){Gd(pui.currentDateField,K+document.cal.time.value,c);vb(M)};e.appendChild(r);B.appendChild(e);e=document.createElement("td");e.className="brndrow1 pui_calendar_brndrow1_right";e.colSpan="1";p=document.createElement("span");p.setAttribute("arrow","1");p.className="pui-calendar-arrow-next-year";var R=Id(s);p.onclick=function(M){Gd(pui.currentDateField,R+document.cal.time.value,c);vb(M)};e.appendChild(p);B.appendChild(e);
1009
- e=new Date(w);p=document.createElement("tr");if(l){s=document.createElement("td");s.className="calendar brndrow2 pui-calendar-week-number-header";s.innerHTML=l;p.appendChild(s)}for(l=0;l<7;l++){s=document.createElement("td");s.className="calendar brndrow2 pui-calendar-weekday-header";s.innerHTML=f[(g+l)%7];p.appendChild(s)}for(G.appendChild(p);e.getMonth()==n.getMonth()||e.getMonth()==w.getMonth();){var N;if(o=="true"){if(N==null)N=1;f=e;if(f.getDay()==g){N=new Date(f.getTime());N.setHours(0,0,0,
1010
- 0);if(g==0)N.setDate(N.getDate()+4);else if(g==1)N.setDate(N.getDate()+3);else g==6&&N.setDate(N.getDate()+5);l=new Date(N.getFullYear(),0,4);N=1+Math.round(((N.getTime()-l.getTime())/864E5-3+(l.getDay()+6)%7)/7)}if(typeof pui["week number calculator"]=="function")N=pui["week number calculator"](f)}f=document.createElement("tr");if(o=="true"&&e.getDay()==g){l=document.createElement("td");l.className="calendar pui-calendar-week-number";l.innerHTML=N;f.appendChild(l)}for(l=0;l<7;l++){p=document.createElement("td");
1011
- s=e.getDate()==n.getDate()&&e.getMonth()==n.getMonth()?"calendar pui-calendar-selected-date":e.getDay()==0||e.getDay()==6?"calendar pui-calendar-weekend-date":"calendar pui-calendar-workday-date";if(e.getDate()==A.getDate()&&e.getMonth()==A.getMonth()&&e.getYear()==A.getYear())s+=" pui-calendar-current-date";s+=e.getMonth()==n.getMonth()?" pui-calendar-day-active-month":" pui-calendar-day-inactive-month";p.className=s;p.Vx=Jd(e,c,b.N);p.onclick=function(M){pui.currentDateField.value=M.currentTarget.Vx;
1012
- Kd();vb(M)};p.innerHTML=e.getDate();f.appendChild(p);e.setDate(e.getDate()+1)}G.appendChild(f)}if(b.xj!=null&&(b.xj==="true"||b.xj==="auto-select")){g=document.createElement("tr");G.appendChild(g);N=document.createElement("td");N.className="pui-calendar-today-button-row";N.colSpan="7";if(o=="true")N.colSpan="8";g.appendChild(N);o=document.createElement("span");o.className="pui-calendar-today-button";o.innerHTML=h&&pui.locales[h].today?pui.locales[h].today:"Today";o.onclick=function(M){if(pui.currentDateField.xj===
1013
- "auto-select"){var W=Jd(A,c,b.N);pui.currentDateField.value=W;Kd()}else Gd(pui.currentDateField,"",c);vb(M)};N.appendChild(o)}o=document.createElement("form");o.name="cal";h=document.createElement("input");h.type="hidden";h.name="time";h.value=String(n.getHours()+":"+n.getMinutes()+":"+n.getSeconds());o.appendChild(h);h=document.getElementById("popcal");h.innerHTML="";h.className="pui-calendar";n=Lb(b.className.split(" ")[0]);if(n!="")h.className+=" pui-calendar-"+n;g=b.calimg;h.appendChild(a);h.appendChild(o);
1014
- n=pui.Vc(g);a=n[1];n=n[0];o=g.offsetHeight;f=g.offsetWidth;g=h.offsetWidth;N=h.offsetHeight;w=n+o+6;G=a-N/2;switch(b.Tv){case "above-right":w=n+f-6;G=a-N;break;case "below-right":w=n+f-6;G=a+o;break;case "above-left":w=n-g+6;G=a-N;break;case "below-left":w=n-g+6;G=a+o;break;case "left":w=n-g-5;G=a-N/2;break}a=pui.getWindowSize();if(G+N>a.height){G=a.height-N-10;w+=10}if(w+g>a.width)w=a.width-g-10;if(G<window.pageYOffset){G=window.pageYOffset+10;w+=10}if(w<window.pageXOffset)w=window.pageXOffset+10;
1015
- h.style.left=w+"px";h.style.top=G+"px";setTimeout(function(){var M=Bb("popcal");if(M!=null&&M.style.visibility!=="visible")M.style.visibility="visible"},0)}function Hd(b){b=/^(\d+)\-(\d+)\-(\d+)\s+(\d+)\:(\d+)\:(\d+)$/.exec(b);if(!b)return new Date;return new Date(b[3],b[2]-1,b[1],b[4],b[5],b[6])}function Id(b){return String(b.getDate()+"-"+(b.getMonth()+1)+"-"+b.getFullYear()+" ")}
1006
+ F.appendChild(G);B=document.createElement("tr");G.appendChild(B);F=document.createElement("td");F.className="brndrow1";F.colSpan="1";var D=document.createElement("span");D.setAttribute("arrow","1");D.className="pui-calendar-arrow-prev-year";var E=Id(t);D.onclick=function(N){Gd(pui.currentDateField,E+document.cal.time.value,c);vb(N)};F.appendChild(D);B.appendChild(F);t=document.createElement("td");t.className="brndrow1";t.colSpan="1";F=document.createElement("span");F.setAttribute("arrow","1");F.className=
1007
+ "pui-calendar-arrow-prev-month";var C=Id(r);F.onclick=function(N){Gd(pui.currentDateField,C+document.cal.time.value,c);vb(N)};t.appendChild(F);B.appendChild(t);r=document.createElement("td");r.className="calendar brndrow1 pui-calendar-month-year-header";r.colSpan="3";if(o=="true")r.colSpan="4";r.innerHTML=e[n.getMonth()]+" "+n.getFullYear();B.appendChild(r);e=document.createElement("td");e.className="brndrow1 pui_calendar_brndrow1_right";e.colSpan="1";r=document.createElement("span");r.setAttribute("arrow",
1008
+ "1");r.className="pui-calendar-arrow-next-month";var K=Id(p);r.onclick=function(N){Gd(pui.currentDateField,K+document.cal.time.value,c);vb(N)};e.appendChild(r);B.appendChild(e);e=document.createElement("td");e.className="brndrow1 pui_calendar_brndrow1_right";e.colSpan="1";p=document.createElement("span");p.setAttribute("arrow","1");p.className="pui-calendar-arrow-next-year";var L=Id(s);p.onclick=function(N){Gd(pui.currentDateField,L+document.cal.time.value,c);vb(N)};e.appendChild(p);B.appendChild(e);
1009
+ e=new Date(w);p=document.createElement("tr");if(l){s=document.createElement("td");s.className="calendar brndrow2 pui-calendar-week-number-header";s.innerHTML=l;p.appendChild(s)}for(l=0;l<7;l++){s=document.createElement("td");s.className="calendar brndrow2 pui-calendar-weekday-header";s.innerHTML=f[(g+l)%7];p.appendChild(s)}for(G.appendChild(p);e.getMonth()==n.getMonth()||e.getMonth()==w.getMonth();){var Q;if(o=="true"){if(Q==null)Q=1;f=e;if(f.getDay()==g){Q=new Date(f.getTime());Q.setHours(0,0,0,
1010
+ 0);if(g==0)Q.setDate(Q.getDate()+4);else if(g==1)Q.setDate(Q.getDate()+3);else g==6&&Q.setDate(Q.getDate()+5);l=new Date(Q.getFullYear(),0,4);Q=1+Math.round(((Q.getTime()-l.getTime())/864E5-3+(l.getDay()+6)%7)/7)}if(typeof pui["week number calculator"]=="function")Q=pui["week number calculator"](f)}f=document.createElement("tr");if(o=="true"&&e.getDay()==g){l=document.createElement("td");l.className="calendar pui-calendar-week-number";l.innerHTML=Q;f.appendChild(l)}for(l=0;l<7;l++){p=document.createElement("td");
1011
+ s=e.getDate()==n.getDate()&&e.getMonth()==n.getMonth()?"calendar pui-calendar-selected-date":e.getDay()==0||e.getDay()==6?"calendar pui-calendar-weekend-date":"calendar pui-calendar-workday-date";if(e.getDate()==A.getDate()&&e.getMonth()==A.getMonth()&&e.getYear()==A.getYear())s+=" pui-calendar-current-date";s+=e.getMonth()==n.getMonth()?" pui-calendar-day-active-month":" pui-calendar-day-inactive-month";p.className=s;p.Vx=Jd(e,c,b.N);p.onclick=function(N){pui.currentDateField.value=N.currentTarget.Vx;
1012
+ Kd();vb(N)};p.innerHTML=e.getDate();f.appendChild(p);e.setDate(e.getDate()+1)}G.appendChild(f)}if(b.xj!=null&&(b.xj==="true"||b.xj==="auto-select")){g=document.createElement("tr");G.appendChild(g);Q=document.createElement("td");Q.className="pui-calendar-today-button-row";Q.colSpan="7";if(o=="true")Q.colSpan="8";g.appendChild(Q);o=document.createElement("span");o.className="pui-calendar-today-button";o.innerHTML=h&&pui.locales[h].today?pui.locales[h].today:"Today";o.onclick=function(N){if(pui.currentDateField.xj===
1013
+ "auto-select"){var X=Jd(A,c,b.N);pui.currentDateField.value=X;Kd()}else Gd(pui.currentDateField,"",c);vb(N)};Q.appendChild(o)}o=document.createElement("form");o.name="cal";h=document.createElement("input");h.type="hidden";h.name="time";h.value=String(n.getHours()+":"+n.getMinutes()+":"+n.getSeconds());o.appendChild(h);h=document.getElementById("popcal");h.innerHTML="";h.className="pui-calendar";n=Lb(b.className.split(" ")[0]);if(n!="")h.className+=" pui-calendar-"+n;g=b.calimg;h.appendChild(a);h.appendChild(o);
1014
+ n=pui.Vc(g);a=n[1];n=n[0];o=g.offsetHeight;f=g.offsetWidth;g=h.offsetWidth;Q=h.offsetHeight;w=n+o+6;G=a-Q/2;switch(b.Tv){case "above-right":w=n+f-6;G=a-Q;break;case "below-right":w=n+f-6;G=a+o;break;case "above-left":w=n-g+6;G=a-Q;break;case "below-left":w=n-g+6;G=a+o;break;case "left":w=n-g-5;G=a-Q/2;break}a=pui.getWindowSize();if(G+Q>a.height){G=a.height-Q-10;w+=10}if(w+g>a.width)w=a.width-g-10;if(G<window.pageYOffset){G=window.pageYOffset+10;w+=10}if(w<window.pageXOffset)w=window.pageXOffset+10;
1015
+ h.style.left=w+"px";h.style.top=G+"px";setTimeout(function(){var N=Bb("popcal");if(N!=null&&N.style.visibility!=="visible")N.style.visibility="visible"},0)}function Hd(b){b=/^(\d+)\-(\d+)\-(\d+)\s+(\d+)\:(\d+)\:(\d+)$/.exec(b);if(!b)return new Date;return new Date(b[3],b[2]-1,b[1],b[4],b[5],b[6])}function Id(b){return String(b.getDate()+"-"+(b.getMonth()+1)+"-"+b.getFullYear()+" ")}
1016
1016
  function Jd(b,a,c){var e=null;if(c!=null){var f;f=pui.locale&&pui.locales[pui.locale]?pui.locale:c.locale;e=c.dateFormat;if(e==null)e=c.customPattern;if((e==""||e==null)&&pui["default date pattern"])e=pui["default date pattern"]}if(e!=null)return b.format(e,f);if(c!=null&&c.dataLength=="8"&&c.decPos=="0"&&(a=="MM/DD/YY"||a=="DD/MM/YY"))a+="YY";if(c!=null&&c.dataLength=="6"&&c.decPos=="0"&&(a=="MM/DD/YYYY"||a=="DD/MM/YYYY"))a=a.substr(0,6);var h;c=String(b.getMonth()+1);f=String(b.getDate());e=String(b.getFullYear());
1017
1017
  b=c;if(c.length==1)b="0"+c;c=f;if(f.length==1)c="0"+f;if(e.length==4){h=e;f=e=e.substring(2,4)}else{f=e;h=e=e.substring(e.length-2,e.length)}a=a;a=a.replace("YYYY",h);a=a.replace("YY",f);a=a.replace("MM",b);return a=a.replace("DD",c)}function Bc(){var b=Bb("popcal");if(b!=null&&b.style.visibility!=="hidden")b.style.visibility="hidden"}
1018
1018
  function Kd(){pui.currentDateField.modified=true;pui.Re(pui.currentDateField);if(pui.currentDateField.id!=null&&pui.currentDateField.id.indexOf(".")==-1&&pui.currentDateField.mc!=null)pui.kf[pui.currentDateField.mc]=true;if(P=="genie"&&pui.currentDateField.B!=null&&pui.currentDateField.B.idx!=null)pui.response[pui.currentDateField.B.idx]=pui.currentDateField;Bc();var b=pui.currentDateField.H;if(b!=null){b.hide();b.ja=true;pui.da(pui.currentDateField,b.ug())}try{pui.currentDateField.focus()}catch(a){}pui.currentDateField.onchange!=
@@ -1021,46 +1021,46 @@ function Ld(b,a){if(a==null||a=="")a=P=="genie"?pui.F.config.defaultDateFormat:p
1021
1021
  null||b.pui.properties.visibility=="")if(P=="genie"&&b.B!=null&&b.B.attr!=null){e=b.B.attr;if(e=="27"||e=="2F"||e=="37"||e=="3F")c.style.visibility="hidden"}if(b.style.zIndex!=null)c.style.zIndex=b.style.zIndex;c.onclick=function(f){var h=Gd,g;a:{g=b.value;var l=a,o=b.N,n;if(!(n=g==null)){if(!(n=g==""))b:{n=g;for(var r=0;r<n.length;r++){var p=n.substr(r,1);if(p>="1"&&p<="9"){n=false;break b}}n=true}n=n}if(n)g="";else{n=g.substr(0,1);r=g.substr(1,1);if(n>="1"&&n<="9"&&r=="/")g="0"+g;if(n=o!=null){if(n=
1022
1022
  o.edtWrd!=null){if(n=o.edtWrd!="")b:{n=g;for(r=0;r<n.length;r++){p=n.substr(r,1);if(p<"0"||p>"9"){n=false;break b}}n=true}n=n}n=n}if(n)if(o.edtWrd=="' / / '"&&g.length==6||o.edtWrd=="' / / '"&&g.length==8)g=g.substr(0,2)+"/"+g.substr(2,2)+"/"+g.substr(4);if(o!=null&&o.dataLength=="8"&&o.decPos=="0"&&(l=="MM/DD/YY"||l=="DD/MM/YY"))l+="YY";if(o!=null&&o.dataLength=="6"&&o.decPos=="0"&&(l=="MM/DD/YYYY"||l=="DD/MM/YYYY"))l=l.substr(0,6);n=null;if(o!=null){n=o.dateFormat;if(n==null)n=o.customPattern;
1023
1023
  if((n==""||n==null)&&pui["default date pattern"])n=pui["default date pattern"];if(n!=null){locale=pui.locale&&pui.locales[pui.locale]?pui.locale:o.locale;if(o=pui.formatting.Date.parse(g,n,locale)){g=o.format("d-m-Y 00:00:00",locale);break a}}}o="";n=l.indexOf("MM");if(n>=0)o=g.substr(n,2);if(o.substr(0,1)==" ")o="0"+o.substr(1,1);n="";r=l.indexOf("DD");if(r>=0)n=g.substr(r,2);if(n.substr(0,1)==" ")n="0"+n.substr(1,1);r=r="";p=l.indexOf("YY");l=l.indexOf("YYYY");if(l>=0)r=g.substr(l,4);else if(p>=
1024
- 0){r=g.substr(p,2);g=2E3;if(Number(r)>39)g=1900;r=Number(r)+g}g=n+"-"+o+"-"+r+" 00:00:00"}}h(b,g,a);if(!f)f=window.event;if(f){f.cancelBubble=true;f.returnValue=false;f.preventDefault&&f.preventDefault();f.stopPropagation&&f.stopPropagation()}return false};if(b.eb!=null&&b.Wa!=null){c.eb=b.eb;c.Wa=b.Wa}b.calimg=c;Ed[Fd++]=b;if(b.parentNode==null)b.calimg.lt=true;else{b.parentNode.appendChild(c);pui.ul(b);b.calimg.lt=false;if(document.getElementById("popcal")==null){T(document,"click",function(f){for(f=
1024
+ 0){r=g.substr(p,2);g=2E3;if(Number(r)>39)g=1900;r=Number(r)+g}g=n+"-"+o+"-"+r+" 00:00:00"}}h(b,g,a);if(!f)f=window.event;if(f){f.cancelBubble=true;f.returnValue=false;f.preventDefault&&f.preventDefault();f.stopPropagation&&f.stopPropagation()}return false};if(b.eb!=null&&b.Wa!=null){c.eb=b.eb;c.Wa=b.Wa}b.calimg=c;Ed[Fd++]=b;if(b.parentNode==null)b.calimg.lt=true;else{b.parentNode.appendChild(c);pui.ul(b);b.calimg.lt=false;if(document.getElementById("popcal")==null){S(document,"click",function(f){for(f=
1025
1025
  ub(f);f!=null;){if(f.id=="popcal"||f.getAttribute!=null&&f.getAttribute("arrow")=="1")return;f=f.parentNode}Bc()});c=document.createElement("div");c.style.visibility="hidden";c.id="popcal";document.body.appendChild(c)}}}pui.ul=function(b){var a=b.calimg;if(a!=null){a.style.display="none";a.style.left=b.offsetLeft+b.offsetWidth+5+"px";var c=b.offsetTop;c+=parseInt((b.offsetHeight-22)/2);a.style.top=c+"px";a.style.display="block"}};pui.jA=function(){for(var b=0;b<Fd;b++)pui.ul(Ed[b])};
1026
1026
  pui.Dp=function(b){var a=b.calimg;if(a){a.parentNode.removeChild(a);b.calimg=null}};
1027
1027
  pui.widgets.add({name:"date field",tag:"input",newId:"Date",tp:pui.normalizeURL("/profoundui/proddata/images/cal.gif"),Ls:"pui-cal pui-cal-input pui-calendar-icon",wt:true,defaults:{"css class":"input"},propertySetters:{"field type":function(b){b.dom.value=b.evalProperty("value");b.dom.xj=b.evalProperty("show today option");b.dom.Tv=b.evalProperty("calendar position");if(b.design){b.dom.readOnly=true;b.dom.sizeMe=function(){var c=b.e;c.mh();c.Eg()}}else{if(b.dom.tagName=="INPUT"&&!b.dom.readOnly&&
1028
- !b.dom.disabled){var a;if(b.properties["date format"])a=b.properties["date format"];else{if(P=="genie")a=pui.F.config.defaultDateFormat;a||(a=pui.defaultDateFormat?pui.defaultDateFormat:"MM/DD/YY")}setTimeout(function(){if(b.dom.calimg==null)Ld(b.dom,a);else if(P=="genie"){pui.Dp(b.dom);Ld(b.dom,a)}},1);if(b.dom.getAttribute("autocomplete")==null&&(P!="genie"||!pui.F.config.$g)){b.dom.setAttribute("autocomplete","off");P=="dspf"&&b.dom.setAttribute("name",pui.Rd())}}if(pui.pa&&!pui.zf){T(b.dom,"focus",
1029
- function(){Bb("ipadKeyboard").style.display=""});T(b.dom,"blur",function(){Bb("ipadKeyboard").style.display="none"})}b.dom.sizeMe=function(){pui.ul(b.dom)}}b.dom.ge=true},value:function(b){b.dom.value=b.value},"input type":function(b){try{b.design||b.dom.setAttribute("type",b.value)}catch(a){}},visibility:function(b){if(b.dom.calimg)b.dom.calimg.style.visibility=b.value=="hidden"?"hidden":""},"css class":function(b){var a=b.value.split(" ").shift();a="pui-cal pui-cal-"+a+" pui-calendar-icon";if(b.design){b.e.cx.className=
1030
- a;b.dom["icon1 class"]=a}else if(b.dom.calimg)b.dom.calimg.className=a;else b.dom["cal icon class"]=a},"show today option":function(b){b.dom.xj=b.value},"show week number":function(b){b.dom.Ap=b.value},"browser auto complete":function(b){if(!b.design){b.dom.setAttribute("autocomplete",b.value);if(P=="dspf")b.value=="off"?b.dom.setAttribute("name",pui.Rd()):b.dom.removeAttribute("name")}}},qc:function(b){b.propertyName=="field type"&&b.za&&b.za.l!=null&&b.dom&&b.dom.l==null&&pui.sg(b.dom);var a;if(b.dom&&
1028
+ !b.dom.disabled){var a;if(b.properties["date format"])a=b.properties["date format"];else{if(P=="genie")a=pui.F.config.defaultDateFormat;a||(a=pui.defaultDateFormat?pui.defaultDateFormat:"MM/DD/YY")}setTimeout(function(){if(b.dom.calimg==null)Ld(b.dom,a);else if(P=="genie"){pui.Dp(b.dom);Ld(b.dom,a)}},1);if(b.dom.getAttribute("autocomplete")==null&&(P!="genie"||!pui.F.config.$g)){b.dom.setAttribute("autocomplete","off");P=="dspf"&&b.dom.setAttribute("name",pui.Qd())}}if(pui.pa&&!pui.zf){S(b.dom,"focus",
1029
+ function(){Bb("ipadKeyboard").style.display=""});S(b.dom,"blur",function(){Bb("ipadKeyboard").style.display="none"})}b.dom.sizeMe=function(){pui.ul(b.dom)}}b.dom.ge=true},value:function(b){b.dom.value=b.value},"input type":function(b){try{b.design||b.dom.setAttribute("type",b.value)}catch(a){}},visibility:function(b){if(b.dom.calimg)b.dom.calimg.style.visibility=b.value=="hidden"?"hidden":""},"css class":function(b){var a=b.value.split(" ").shift();a="pui-cal pui-cal-"+a+" pui-calendar-icon";if(b.design){b.e.cx.className=
1030
+ a;b.dom["icon1 class"]=a}else if(b.dom.calimg)b.dom.calimg.className=a;else b.dom["cal icon class"]=a},"show today option":function(b){b.dom.xj=b.value},"show week number":function(b){b.dom.Ap=b.value},"browser auto complete":function(b){if(!b.design){b.dom.setAttribute("autocomplete",b.value);if(P=="dspf")b.value=="off"?b.dom.setAttribute("name",pui.Qd()):b.dom.removeAttribute("name")}}},qc:function(b){b.propertyName=="field type"&&b.za&&b.za.l!=null&&b.dom&&b.dom.l==null&&pui.sg(b.dom);var a;if(b.dom&&
1031
1031
  b.dom.l!=null){pui.ip(b);a=b.dom.l.getBox().calimg}if(b.dom&&b.dom.calimg)a=b.dom.calimg;if(a)a.style.visibility=b.properties["read only"]=="true"||b.properties["read only"]==true||b.properties.disabled=="true"||b.properties.disabled==true?"hidden":""}});pui.widgets.add({name:"field set panel",lg:false,tag:"fieldset",newId:"FieldSet",newValue:"Field Set",b:true,md:true,defaults:{width:"300px",height:"200px","z index":"8"},propertySetters:{"field type":function(b){var a=b.evalProperty("value"),c=b.evalProperty("color"),e=b.evalProperty("text align");if(a){if(c)c=' style="color:'+c+';"';if(e)e=' align="'+e+'"';b.dom.innerHTML="<legend"+c+e+">"+a+"</legend>"}},value:function(b){var a=b.value,c=b.evalProperty("color"),e=b.evalProperty("text align");if(a){if(c)c=
1032
1032
  ' style="color:'+c+';"';if(e)e=' align="'+e+'"';b.dom.innerHTML="<legend"+c+e+">"+a+"</legend>"}else b.dom.innerHTML=""},color:function(b){var a=b.evalProperty("value"),c=b.value,e=b.evalProperty("text align");if(a){if(c)c=' style="color:'+c+';"';if(e)e=' align="'+e+'"';b.dom.innerHTML="<legend"+c+e+">"+a+"</legend>"}else b.dom.innerHTML=""},"text align":function(b){var a=b.evalProperty("value"),c=b.evalProperty("color"),e=b.value;if(a){if(c)c=' style="color:'+c+';"';if(e)e=' align="'+e+'"';b.dom.innerHTML=
1033
- "<legend"+c+e+">"+a+"</legend>"}else b.dom.innerHTML=""}}});pui.fileupload={};pui.fileupload.Ga=function(b){this.lb=b;this.Tm=this.Tm||"clear";this.jn=this.jn||"upload";this.lk=this.lk||false;this.kn=this.kn||true;this.be=null;this.ni=1;this.kc=null;this.tv=864E5;this.Pc="";this.Tg=false;this.Yg=null;this.Cd=this.Og;this.fg=1;this.li=10;this.Iq=this.Dd="";this.qk=this.Wq=false;this.$f=[];this.Fq=[];this.qa=[];this.Qq()};pui.fileupload.Ga.prototype.Og=0;pui.fileupload.Ga.prototype.Nm=1;pui.fileupload.Ga.prototype.zq=2;
1033
+ "<legend"+c+e+">"+a+"</legend>"}else b.dom.innerHTML=""}}});pui.fileupload={};pui.fileupload.Ga=function(b){this.lb=b;this.Tm=this.Tm||"clear";this.jn=this.jn||"upload";this.lk=this.lk||false;this.kn=this.kn||true;this.be=null;this.ni=1;this.kc=null;this.tv=864E5;this.Pc="";this.Tg=false;this.Yg=null;this.Bd=this.Og;this.fg=1;this.li=10;this.Iq=this.Cd="";this.qk=this.Wq=false;this.$f=[];this.Fq=[];this.qa=[];this.Qq()};pui.fileupload.Ga.prototype.Og=0;pui.fileupload.Ga.prototype.Nm=1;pui.fileupload.Ga.prototype.zq=2;
1034
1034
  pui.fileupload.Ga.prototype.render=function(){this.Wg.tBodies.length>0&&this.Wg.removeChild(this.Wg.tBodies[0]);var b=this.Wg.appendChild(document.createElement("tbody"));this.Pc.length>0?Md(this,this.Pc):Nd(this);for(var a=false,c=0;c<this.qa.length;c++){var e=this.qa[c].name+(" ("+pui.wo(this.qa[c].size,2)+")"),f=b.insertRow(-1);f.className="row";f.className+=c%2==0?" even":" odd";var h=f.insertCell(-1);h.className="name-col";h.title=e;h.appendChild(document.createTextNode(e));if(this.qa[c].lh){h=
1035
- f.insertCell(-1);h.className="remove-col";h=f.insertCell(-1);h.className="status-col";e=document.createTextNode(pui.getLanguageText("runtimeText","upload finished text"));h.appendChild(e)}else{a=true;if(this.Cd==this.Og){h=f.insertCell(-1);h.className="remove-col";e=document.createElement("a");e.href="javascript: void(0);";e.className="remove";e.appendChild(document.createTextNode(pui.getLanguageText("runtimeText","upload remove text")));e.Wx=c;e.lx=true;e.addEventListener("click",this,false);h.appendChild(e)}}}this.fe.style.display=
1036
- P=="genie"&&a?"":"none";this.gd.style.display=this.lk?"":"none";this.be.style.display="none";if(a||this.qa.length>0){this.Ad.style.display="";this.lb.classList.remove("empty")}else{this.Ad.style.display="none";this.lb.classList.add("empty")}};
1037
- pui.fileupload.Ga.prototype.setMode=function(b){var a=false;if(b=="enhanced"){if(this.Cd!=this.Nm)a=true;this.Cd=this.Nm}else if(b=="standard"){if(this.Cd!=this.Og)a=true;this.Cd=this.Og}else if(b=="single"){if(this.Cd!=this.zq)a=true;this.Cd=this.zq}if(this.rb&&this.rb.input)this.rb.input.multiple=this.Cd==this.Nm;a&&this.clear()};pui.fileupload.Ga.prototype.setDisabled=function(b){this.Tg=b};
1038
- pui.fileupload.Ga.prototype.getCount=function(){for(var b=0,a=0;a<this.qa.length;a++)if(P!="genie"||this.qa[a].lh!=true)b++;return b};function yd(b){if(b.getCount()>b.fg)return pui.getLanguageText("runtimeMsg","upload file limit",[b.fg])}function zd(b){if(b.Cd==b.Og){b=b.getFileNames(true);for(var a={},c=0;c<b.length;c++){if(typeof a[b[c]]!="undefined")return pui.getLanguageText("runtimeMsg","upload duplicate file");a[b[c]]=true}}}
1039
- pui.fileupload.Ga.prototype.upload=function(){if(!this.Tg){var b=typeof window.cordova!="undefined";if(!(this.kc!=null||P=="genie"&&pui.F.Id)){this.Ad.style.display="none";this.fe.style.display="none";this.kc={};Nd(this);if(!b&&P=="genie"){pui.Zj(pui.F.Id=true);pui.Ne()}var a={};a.dir=this.Dd;a.overwrite=this.Wq;a.generateNames=this.qk?"1":"0";a.flimit=this.fg;a.slimit=this.li;a.altname=this.Iq;this.Gq(a);a.files=[];for(var c=0;c<this.qa.length;c++)this.qa[c].lh!=true&&a.files.push(this.qa[c]);var e=
1035
+ f.insertCell(-1);h.className="remove-col";h=f.insertCell(-1);h.className="status-col";e=document.createTextNode(pui.getLanguageText("runtimeText","upload finished text"));h.appendChild(e)}else{a=true;if(this.Bd==this.Og){h=f.insertCell(-1);h.className="remove-col";e=document.createElement("a");e.href="javascript: void(0);";e.className="remove";e.appendChild(document.createTextNode(pui.getLanguageText("runtimeText","upload remove text")));e.Wx=c;e.lx=true;e.addEventListener("click",this,false);h.appendChild(e)}}}this.fe.style.display=
1036
+ P=="genie"&&a?"":"none";this.gd.style.display=this.lk?"":"none";this.be.style.display="none";if(a||this.qa.length>0){this.zd.style.display="";this.lb.classList.remove("empty")}else{this.zd.style.display="none";this.lb.classList.add("empty")}};
1037
+ pui.fileupload.Ga.prototype.setMode=function(b){var a=false;if(b=="enhanced"){if(this.Bd!=this.Nm)a=true;this.Bd=this.Nm}else if(b=="standard"){if(this.Bd!=this.Og)a=true;this.Bd=this.Og}else if(b=="single"){if(this.Bd!=this.zq)a=true;this.Bd=this.zq}if(this.rb&&this.rb.input)this.rb.input.multiple=this.Bd==this.Nm;a&&this.clear()};pui.fileupload.Ga.prototype.setDisabled=function(b){this.Tg=b};
1038
+ pui.fileupload.Ga.prototype.getCount=function(){for(var b=0,a=0;a<this.qa.length;a++)if(P!="genie"||this.qa[a].lh!=true)b++;return b};function yd(b){if(b.getCount()>b.fg)return pui.getLanguageText("runtimeMsg","upload file limit",[b.fg])}function zd(b){if(b.Bd==b.Og){b=b.getFileNames(true);for(var a={},c=0;c<b.length;c++){if(typeof a[b[c]]!="undefined")return pui.getLanguageText("runtimeMsg","upload duplicate file");a[b[c]]=true}}}
1039
+ pui.fileupload.Ga.prototype.upload=function(){if(!this.Tg){var b=typeof window.cordova!="undefined";if(!(this.kc!=null||P=="genie"&&pui.F.Hd)){this.zd.style.display="none";this.fe.style.display="none";this.kc={};Nd(this);if(!b&&P=="genie"){pui.Zj(pui.F.Hd=true);pui.Ne()}var a={};a.dir=this.Cd;a.overwrite=this.Wq;a.generateNames=this.qk?"1":"0";a.flimit=this.fg;a.slimit=this.li;a.altname=this.Iq;this.Gq(a);a.files=[];for(var c=0;c<this.qa.length;c++)this.qa[c].lh!=true&&a.files.push(this.qa[c]);var e=
1040
1040
  this;if(!b){this.kc=setTimeout(function(){Od(e,e.ni,{success:false,error:pui.getLanguageText("runtimeMsg","upload timeout")})},this.tv);this.fe.style.display="none";a.onprogress=this.wv.bind(this);a.onabort=this.vv.bind(this);a.onload=this.uv.bind(this)}if(b)this.Yg=pui.upload(a,function(f,h){if(!f)e.Pc=h;e.kc=null});else if(a.files.length>0){this.be.style.display="";a.id=this.lb.id;a.mode="widget";this.Yg=pui.upload(a)}else this.kc=null}}};pui.fileupload.Ga.prototype.getId=function(){return this.lb.id};
1041
1041
  pui.fileupload.Ga.prototype.clear=function(){if(this.kc==null&&!this.Tg){for(;this.qa.length>0;)this.qa.pop();Nd(this);this.render()}};pui.fileupload.Ga.prototype.getFileNames=function(b){for(var a=[],c=0;c<this.qa.length;c++)if(P!="genie"||b&&this.qa[c].lh!=true||!b&&this.qa[c].lh)a.push(this.qa[c].name);return a};pui.fileupload.Ga.prototype.getActualFileNames=function(){return this.Fq.slice()};pui.fileupload.Ga.prototype.getGenerateNames=function(){return this.qk};
1042
1042
  function Od(b,a,c){if(!(b.kc==null||a!=b.ni)){clearTimeout(b.kc);var e;if(typeof c=="string")try{e=eval("("+c+")")}catch(f){e={success:false,error:pui.getLanguageText("runtimeMsg","upload invalid response")}}else e=c;if(e.success){for(a=0;a<b.qa.length;a++)b.qa[a].lh=true;b.Fq=e.fileNames}else{if(e.key)e.error=pui.getLanguageText("runtimeMsg","upload "+e.key);b.Pc=e.error;if(e.key=="file limit")b.Pc=b.Pc.replace("&1",b.fg);if(e.key=="size limit")b.Pc=b.Pc.replace("&1",b.li)}b.kc=null;b.ni++;if(P==
1043
- "genie"){pui.Zj(pui.F.Id=false);pui.Zb();if(e.success==true)if(b.hn&&b.hn.length>0)(function(h){eval("var info = arguments[0];");try{var g=eval(b.hn);typeof g=="function"&&g(h)}catch(l){b.er(l)}})({dir:b.Dd,names:b.qk?b.getActualFileNames():b.getFileNames(false)})}b.render();b.Yg=null}}pui.fileupload.Ga.prototype.er=function(b){pui.Ea(b,"onupload Error:\n")};function Pd(b){if(b.qa.length>0&&b.qa[0]&&(b.qa[0].lh||b.Pc.length>0))for(;b.qa.length>0;)b.qa.pop()}
1043
+ "genie"){pui.Zj(pui.F.Hd=false);pui.Zb();if(e.success==true)if(b.hn&&b.hn.length>0)(function(h){eval("var info = arguments[0];");try{var g=eval(b.hn);typeof g=="function"&&g(h)}catch(l){b.er(l)}})({dir:b.Cd,names:b.qk?b.getActualFileNames():b.getFileNames(false)})}b.render();b.Yg=null}}pui.fileupload.Ga.prototype.er=function(b){pui.Ea(b,"onupload Error:\n")};function Pd(b){if(b.qa.length>0&&b.qa[0]&&(b.qa[0].lh||b.Pc.length>0))for(;b.qa.length>0;)b.qa.pop()}
1044
1044
  pui.fileupload.Ga.prototype.uv=function(b){this.gd.value=100;var a;try{try{a=JSON.parse(b.target.responseText)}catch(c){var e=b.target.responseText.replace(/'/g,'"');a=JSON.parse(e)}}catch(f){a={success:false,error:pui.getLanguageText("runtimeMsg","upload invalid response")}}Od(this,this.ni,a)};pui.fileupload.Ga.prototype.wv=function(b){if(b.lengthComputable){this.gd.value=b.loaded/b.total*100|0;this.gd.style.display=""}};
1045
1045
  pui.fileupload.Ga.prototype.vv=function(){this.gd.value=0;Od(this,this.ni,{success:false,error:pui.getLanguageText("runtimeMsg","upload cancelled")})};pui.fileupload.Ga.prototype.Gq=function(b){b.allowedTypes=this.$f};function Md(b,a){b.lb.H!=null&&b.lb.H.hide();b.lb.H=new pui.Yf(b.lb);b.lb.H.Oh(a);b.lb.H.show()}function Nd(b){b.Pc="";b.gd.value=0;b.lb.H!=null&&typeof b.lb.H.hide=="function"&&b.lb.H.hide()}
1046
1046
  function Qd(b){if(b.rb.input!=null){b.rb.input.removeEventListener("change",b,false);b.rb.removeChild(b.rb.input)}var a=document.createElement("input");a.name="file";a.type="file";a.className="control";a.style.display="none";if(b.rb.input!=null)a.multiple=b.rb.input.multiple;a.addEventListener("change",b,false);b.rb.input=a;b.rb.appendChild(a)}
1047
1047
  pui.fileupload.Ga.prototype.Qq=function(){this.de=document.createElement("div");this.de.className="control-box";Rd(this,this.de,pui.getLanguageText("runtimeText","upload select text"));Sd(this);Td(this)};function Rd(b,a,c){b.rb=document.createElement("a");b.rb.className="control-proxy";b.rb.appendChild(document.createTextNode(c));b.rb.addEventListener("click",b,false);Qd(b);a.appendChild(b.rb)}
1048
- function Sd(b){b.Ad=document.createElement("a");b.Ad.href="javascript: void(0);";b.Ad.appendChild(document.createTextNode(pui.getLanguageText("runtimeText","upload clear text")));b.Ad.className=b.Tm;b.Ad.addEventListener("click",b,false);b.Ad.style.display="none";b.de.appendChild(b.Ad);b.fe=document.createElement("a");b.fe.href="javascript: void(0);";b.fe.appendChild(document.createTextNode(pui.getLanguageText("runtimeText","upload upload text")));b.fe.className=b.jn;b.fe.addEventListener("click",
1048
+ function Sd(b){b.zd=document.createElement("a");b.zd.href="javascript: void(0);";b.zd.appendChild(document.createTextNode(pui.getLanguageText("runtimeText","upload clear text")));b.zd.className=b.Tm;b.zd.addEventListener("click",b,false);b.zd.style.display="none";b.de.appendChild(b.zd);b.fe=document.createElement("a");b.fe.href="javascript: void(0);";b.fe.appendChild(document.createTextNode(pui.getLanguageText("runtimeText","upload upload text")));b.fe.className=b.jn;b.fe.addEventListener("click",
1049
1049
  b,false);b.de.appendChild(b.fe);b.gd=document.createElement("progress");b.gd.id="progbar_"+b.lb.id;b.gd.max=100;b.gd.value=0;b.gd.style.display=b.lk?"":"none";b.de.appendChild(b.gd);b.be=document.createElement("a");b.be.className="abort-upload";b.be.innerHTML="[x]";b.be.style.display="none";b.be.addEventListener("click",b);b.de.appendChild(b.be);b.lb.appendChild(b.de)}
1050
1050
  function Td(b){b.Xm=document.createElement("div");b.Xm.className="list-box";b.Wg=document.createElement("table");b.Wg.className="list";b.Xm.appendChild(b.Wg);b.lb.appendChild(b.Xm)}
1051
- pui.fileupload.Ga.prototype.handleEvent=function(b){if(b.type=="click"){switch(b.target){case this.rb:if(this.kc!=null||this.Tg||Eb()){b.preventDefault();b.stopPropagation();return false}this.rb.input.click();return;case this.Ad:this.clear();b.preventDefault();b.stopPropagation();return false;case this.be:b.preventDefault();b.stopPropagation();this.Yg&&this.Yg.abort&&this.Yg.abort();return false;case this.fe:if(this.kc==null&&!Eb()&&!pui.F.Id){Nd(this);if(this.kn){var a=yd(this);a||(a=zd(this));if(a){Md(this,
1052
- a);return false}}this.upload()}b.preventDefault();b.stopPropagation();return false}if(b.target.lx){b.preventDefault();b.stopPropagation();if(this.kc!==null)return false;this.qa.splice((b.target||b.srcElement).Wx,1);Nd(this);this.render();return false}}else if(b.type=="change"){b=b.target.files;if(this.Cd!=this.Og)this.qa=[];Qd(this);Pd(this);Nd(this);Ud(this,b)}};
1051
+ pui.fileupload.Ga.prototype.handleEvent=function(b){if(b.type=="click"){switch(b.target){case this.rb:if(this.kc!=null||this.Tg||Eb()){b.preventDefault();b.stopPropagation();return false}this.rb.input.click();return;case this.zd:this.clear();b.preventDefault();b.stopPropagation();return false;case this.be:b.preventDefault();b.stopPropagation();this.Yg&&this.Yg.abort&&this.Yg.abort();return false;case this.fe:if(this.kc==null&&!Eb()&&!pui.F.Hd){Nd(this);if(this.kn){var a=yd(this);a||(a=zd(this));if(a){Md(this,
1052
+ a);return false}}this.upload()}b.preventDefault();b.stopPropagation();return false}if(b.target.lx){b.preventDefault();b.stopPropagation();if(this.kc!==null)return false;this.qa.splice((b.target||b.srcElement).Wx,1);Nd(this);this.render();return false}}else if(b.type=="change"){b=b.target.files;if(this.Bd!=this.Og)this.qa=[];Qd(this);Pd(this);Nd(this);Ud(this,b)}};
1053
1053
  function Ud(b,a){var c,e,f=[],h=false;for(c=0;c<a.length&&!h;c++){for(var g=false,l=0;l<b.qa.length;l++)if(b.qa[l].name===a[c].name){g=true;break}l=a[c].type;var o=b.$f.length<=0||b.$f.indexOf(l)>=0;if(!o&&l.toLowerCase()==="image/jpg"&&b.$f.indexOf("image/jpeg")>=0)o=true;if(!o&&l.toLowerCase()==="image/jpeg"&&b.$f.indexOf("image/jpg")>=0)o=true;if(!o||a[c].Ys===false){h=true;e=pui.getLanguageText("runtimeMsg","upload invalid type");console.log('Content-Type "%s" not permitted for upload.',l)}else if(g){h=
1054
1054
  true;e=pui.getLanguageText("runtimeMsg","upload duplicate file")}else if(a[c].size>b.li*1048576){h=true;e=pui.getLanguageText("runtimeMsg","upload size limit",[b.li])}else f.push(a[c])}if(!h)for(c=0;c<f.length;c++)b.qa.push(f[c]);b.render();e&&Md(b,e)}pui.Tx=function(b){if(pui.Kc.length>0){for(var a=0;a<pui.Kc.length;a++)pui.Kc[a].upload();pui.Ir(b);return true}else return false};
1055
- pui.Ir=function(b){var a,c=true;for(a=0;a<pui.Kc.length;a++)if(pui.Kc[a].kc!=null){c=false;break}if(c){c={};var e=true;for(a=0;a<pui.Kc.length;a++){var f=pui.Kc[a].Pc;if(f!=""){e=false;c[pui.Kc[a].getId()]=f}}if(e){for(a=0;a<pui.Kc.length;a++){var h=pui.Kc[a];c=h.Yx;e=h.getCount();if(e>99)e=99;for(e=String(e);e.length<3;)e="0"+e;f=h.Dd;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=
1055
+ pui.Ir=function(b){var a,c=true;for(a=0;a<pui.Kc.length;a++)if(pui.Kc[a].kc!=null){c=false;break}if(c){c={};var e=true;for(a=0;a<pui.Kc.length;a++){var f=pui.Kc[a].Pc;if(f!=""){e=false;c[pui.Kc[a].getId()]=f}}if(e){for(a=0;a<pui.Kc.length;a++){var h=pui.Kc[a];c=h.Yx;e=h.getCount();if(e>99)e=99;for(e=String(e);e.length<3;)e="0"+e;f=h.Cd;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=
1056
1056
  h[l];if(o.length>256)o=o.substr(0,256);else for(;o.length<256;)o+=" ";g+=o}b[c]=e+f+g}pui.haltFrames();pui.submitResponse(b)}else pui.Vv(c)}else setTimeout(function(){pui.Ir(b)},250)};
1057
1057
  pui.fileupload.Fe={"field type":function(b){if(b.dom.fileUpload==null){b.dom.fileUpload=new pui.fileupload.Ga(b.dom);P=="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.$f=
1058
- 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.fg=a}},"size limit":function(b){if(!b.design){var a=parseInt(b.value,10);if(a!=null&&!isNaN(a))b.dom.fileUpload.li=a}},"target directory":function(b){if(!b.design){var a=b.dom.fileUpload;b=Lb(b.value);if(typeof b=="string"){a.Dd=b;if(a.Dd.length>1&&a.Dd.charAt(a.Dd.length-1)=="/")a.Dd=a.Dd.substr(0,
1059
- a.Dd.length-1)}}},"rename to":function(b){if(!b.design){var a=Lb(b.value);if(typeof a=="string")b.dom.fileUpload.Iq=a}},"overwrite files":function(b){if(!b.design){var a=b.value=="true"||b.value==true;if(typeof a=="boolean")b.dom.fileUpload.Wq=a}},"generate unique names":function(b){if(!b.design){var a=b.value=="true"||b.value==true;if(typeof a=="boolean")b.dom.fileUpload.qk=a}},onupload:function(b){if(!b.design)b.dom.fileUpload.hn=b.newValue},disabled:function(b){b.design||b.dom.fileUpload.setDisabled(b.value==
1058
+ 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.fg=a}},"size limit":function(b){if(!b.design){var a=parseInt(b.value,10);if(a!=null&&!isNaN(a))b.dom.fileUpload.li=a}},"target directory":function(b){if(!b.design){var a=b.dom.fileUpload;b=Lb(b.value);if(typeof b=="string"){a.Cd=b;if(a.Cd.length>1&&a.Cd.charAt(a.Cd.length-1)=="/")a.Cd=a.Cd.substr(0,
1059
+ a.Cd.length-1)}}},"rename to":function(b){if(!b.design){var a=Lb(b.value);if(typeof a=="string")b.dom.fileUpload.Iq=a}},"overwrite files":function(b){if(!b.design){var a=b.value=="true"||b.value==true;if(typeof a=="boolean")b.dom.fileUpload.Wq=a}},"generate unique names":function(b){if(!b.design){var a=b.value=="true"||b.value==true;if(typeof a=="boolean")b.dom.fileUpload.qk=a}},onupload:function(b){if(!b.design)b.dom.fileUpload.hn=b.newValue},disabled:function(b){b.design||b.dom.fileUpload.setDisabled(b.value==
1060
1060
  "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.Fe,qc:pui.fileupload.qc});pui.fileupload.Ng=function(b){this.Tm="clear-files";this.jn="upload-files";this.lk=true;this.kn=false;this.en=pui["dnd upload show select"]===true;this.Lq=this.Kq=false;this.dg=null;this.cg=0;pui.fileupload.Ga.call(this,b)};pui.fileupload.Ng.prototype=Object.create(pui.fileupload.Ga.prototype);
1061
1061
  pui.fileupload.Ng.prototype.Qq=function(){this.Ve=document.createElement("div");this.Ve.className="drop-box";Vd(this);this.lb.appendChild(this.Ve);this.lb.addEventListener("dragover",this);this.lb.addEventListener("dragleave",this);this.lb.addEventListener("drop",this);this.de=document.createElement("div");this.de.className="control-box";Sd(this);Td(this)};
1062
1062
  function Vd(b){Rd(b,b.Ve,pui.getLanguageText("runtimeText","upload select text"));b.rb.classList.add("dnd-upl-sel");b.rb.style.display=b.en?"block":"none";var a=pui.getLanguageText("runtimeText","upload "+(b.en?"or ":"")+"drophere text");b.Ve.appendChild(document.createTextNode(a))}
1063
- pui.fileupload.Ng.prototype.handleEvent=function(b){switch(b.type){case "dragover":b.preventDefault();b.stopPropagation();if(this.Tg||this.kc!=null)return false;b.dataTransfer.dropEffect="copy";this.Ve.classList.add("dragover");return false;case "dragleave":b.preventDefault();b.stopPropagation();this.Ve.classList.remove("dragover");return false;case "drop":b.stopPropagation();b.preventDefault();this.Ve.classList.remove("dragover");if(this.Tg||this.kc!==null||P==="genie"&&pui.F.Id||Eb())return;if(b.dataTransfer.files===
1063
+ pui.fileupload.Ng.prototype.handleEvent=function(b){switch(b.type){case "dragover":b.preventDefault();b.stopPropagation();if(this.Tg||this.kc!=null)return false;b.dataTransfer.dropEffect="copy";this.Ve.classList.add("dragover");return false;case "dragleave":b.preventDefault();b.stopPropagation();this.Ve.classList.remove("dragover");return false;case "drop":b.stopPropagation();b.preventDefault();this.Ve.classList.remove("dragover");if(this.Tg||this.kc!==null||P==="genie"&&pui.F.Hd||Eb())return;if(b.dataTransfer.files===
1064
1064
  null||b.dataTransfer.files===undefined){console.log("Browser doesn't support dataTransfer.files API");return}Pd(this);Nd(this);if(this.qa.length+b.dataTransfer.files.length>this.fg){Md(this,pui.getLanguageText("runtimeMsg","upload file limit",[this.fg]));return}if(b.dataTransfer.files.length>0){this.dg=b.dataTransfer.files;this.cg=0;Wd(this)}else Md(this,pui.getLanguageText("runtimeMsg","upload invalid type"));return;case "load":this.dg[this.cg].Ys=true;Xd(this);return;case "error":this.dg[this.cg].Ys=
1065
1065
  false;Xd(this);return}return pui.fileupload.Ga.prototype.handleEvent.call(this,b)};function Wd(b){var a=new FileReader;a.addEventListener("load",b);a.addEventListener("error",b);a.readAsArrayBuffer(b.dg[b.cg])}function Xd(b){if(b.cg==b.dg.length-1){Ud(b,b.dg);b.dg=null;b.cg=0;if(b.getCount()>0)if(b.Lq&&P==="genie")b.upload();else if(b.Kq&&P==="dspf"){pui.tb="Enter";pui.click()}}else{b.cg++;Wd(b)}}pui.fileupload.Ng.prototype.Gq=function(b){b.allowedTypes=[]};
1066
1066
  pui.fileupload.Ng.prototype.er=function(b){this.Pc="onupload Error:\n"+(b.message!=null?b.message:b)};
@@ -1069,9 +1069,9 @@ pui.widgets.add({name:"file upload dnd",newId:"FileUploadDND",menuName:"File Upl
1069
1069
  "size limit":pui.fileupload.Fe["size limit"],"target directory":pui.fileupload.Fe["target directory"],"rename to":pui.fileupload.Fe["rename to"],"overwrite files":pui.fileupload.Fe["overwrite files"],"generate unique names":pui.fileupload.Fe["generate unique names"],onupload:pui.fileupload.Fe.onupload,disabled:pui.fileupload.Fe.disabled},qc:pui.fileupload.qc});
1070
1070
  pui.fileupload.xl=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.xl,false);window.addEventListener("drop",pui.fileupload.xl,false);pui.Vu=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.Re(f.b)}function e(p){function t(D){if(!(f.readOnly||
1071
1071
  f.disabled)){if(D!=null&&D.touches!=null)if(D.touches.length!=1)return;var E=($c(D)-A[0])*w;D=(ad(D)-A[1])*w;a(E,D);var C=o[o.length-1];C.push(E);C.push(D);l.x=E;l.y=D}}function s(){h.closePath();if(B){ac(g,"touchmove",t);ac(g,"touchend",s);ac(document,"touchend",s)}else{ac(g,"mousemove",t);ac(g,"mouseup",s);ac(document,"mouseup",s)}pui.Re(f.b)}if(!(f.readOnly||f.disabled))if(h!=null){var w=1;if(P=="dspf"&&Ib&&Ib.designer&&Ib.designer.b)w=Ib.Fm;var A=pui.Vc(f.b,true),B=false;if(p!=null&&p.touches!=
1072
- null){if(p.touches.length!=1)return;B=true}o.push([]);l.x=($c(p)-A[0])*w;l.y=(ad(p)-A[1])*w;h.beginPath();a(l.x,l.y,l.x,l.y);var G=o[o.length-1];G.push(l.x);G.push(l.y);c();if(!pui.Be(p)){if(B){T(g,"touchmove",t);T(g,"touchend",s);T(document,"touchend",s)}else{T(g,"mousemove",t);T(g,"mouseup",s);T(document,"mouseup",s)}if(f.designMode&&!f.e.isSelected()){G=f.e.designer;var F=G.selection;F.clear();F.add(f.e);G.ob.refresh()}vb(p);return false}}}var f=this,h,g,l={},o=[],n,r;this.b=null;this.className=
1072
+ null){if(p.touches.length!=1)return;B=true}o.push([]);l.x=($c(p)-A[0])*w;l.y=(ad(p)-A[1])*w;h.beginPath();a(l.x,l.y,l.x,l.y);var G=o[o.length-1];G.push(l.x);G.push(l.y);c();if(!pui.Be(p)){if(B){S(g,"touchmove",t);S(g,"touchend",s);S(document,"touchend",s)}else{S(g,"mousemove",t);S(g,"mouseup",s);S(document,"mouseup",s)}if(f.designMode&&!f.e.isSelected()){G=f.e.designer;var F=G.selection;F.clear();F.add(f.e);G.ob.refresh()}vb(p);return false}}}var f=this,h,g,l={},o=[],n,r;this.b=null;this.className=
1073
1073
  "pui-signature-pad-canvas";this.designMode=false;this.e=null;this.init=function(){f.b.innerHTML="";f.b.className="pui-signature-pad-container";g=document.createElement("canvas");if(!f.designMode)g.innerHTML="Your browser does not support HTML5 Canvas.<br/>Signature pad widget will not function.";f.b.appendChild(g);n=document.createElement("div");n.className="pui-signature-pad-clear-box";n.innerHTML="Clear";n.onmousedown=function(p){vb(p);return false};n.onclick=function(){f.clear();c()};f.b.appendChild(n);
1074
- if(f.designMode){r=document.createElement("div");r.className="pui-signature-pad-move-box";r.innerHTML="Move";f.b.appendChild(r)}f.resize();g.addEventListener("pointerdown",function(p){p.stopPropagation()});T(g,"mousedown",e);T(g,"touchstart",e);T(f.b,"dblclick",function(p){if(f.designMode){var t=f.e.designer.ob;t.JA("value",null,true,p);t.uz.GA()}});if(f.designMode)if(pui.is_chrome||pui.is_old_ie&&pui.ie_mode<10){g.style.display="none";r.style.display="none"}};this.resize=function(p){g.style.width=
1074
+ if(f.designMode){r=document.createElement("div");r.className="pui-signature-pad-move-box";r.innerHTML="Move";f.b.appendChild(r)}f.resize();g.addEventListener("pointerdown",function(p){p.stopPropagation()});S(g,"mousedown",e);S(g,"touchstart",e);S(f.b,"dblclick",function(p){if(f.designMode){var t=f.e.designer.ob;t.JA("value",null,true,p);t.uz.GA()}});if(f.designMode)if(pui.is_chrome||pui.is_old_ie&&pui.ie_mode<10){g.style.display="none";r.style.display="none"}};this.resize=function(p){g.style.width=
1075
1075
  f.b.offsetWidth+"px";g.style.height=f.b.offsetHeight+"px";g.setAttribute("width",f.b.offsetWidth);g.setAttribute("height",f.b.offsetHeight);b();if(p==true)f.Jt();else o=[]};this.clear=function(){h!=null&&h.clearRect(0,0,f.b.offsetWidth,f.b.offsetHeight);f.resize()};this.By=function(p){f.color=p;b()};this.wy=function(p){f.backgroundColor=p;b()};this.mu=function(){n.style.visibility=f.readOnly||f.disabled?"hidden":""};this.getValue=function(){for(var p="[",t=0;t<o.length;t++){var s=o[t];if(t>0)p+=",";
1076
1076
  p+="[";for(j=0;j<s.length;j++){if(j>0)p+=",";p+=s[j]}p+="]"}p+="]";return p};this.setValue=function(p){f.clear();if(!(p.length<5||p.substr(0,2)!="[["||p.substr(p.length-2,2)!="]]")){try{o=eval("("+p+")")}catch(t){}f.Jt()}};this.Jt=function(){if(h!=null){h.beginPath();for(var p=0;p<o.length;p++)for(var t=o[p],s=0;s<t.length;s+=2){if(s+1>t.length)break;var w=s-2;if(w<0)w=0;a(t[w],t[w+1],t[s],t[s+1])}h.closePath()}}};
1077
1077
  pui.widgets.add({name:"signature pad",defaults:{height:"150px",width:"450px","css class":"pui-signature-pad-container"},propertySetters:{"field type":function(b){if(b.dom.signaturePad==null){b.dom.signaturePad=new pui.Vu;b.dom.signaturePad.b=b.dom;if(b.dom.signaturePad.designMode=b.design)b.dom.signaturePad.e=b.e;b.dom.signaturePad.init();b.dom.sizeMe=function(){b.dom.signaturePad.resize(true)};b.dom.ge=true}},value:function(b){b.design||setTimeout(function(){b.dom.signaturePad.setValue(b.value)},
@@ -1080,47 +1080,47 @@ Lb(f);if(f.substr(0,9)=="material:"){f=Lb(f.substr(9));o='<span class="pui-mater
1080
1080
  classList:{"":"pui-material-icons"}},{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-"}}];f=Lb(f);if(pui.customIconList&&pui.customIconList)if(Array.isArray(pui.customIconList.icons)&&pui.customIconList.icons.length)e=pui.customIconList.icons;f=f.split(":");var n=f.shift().split("-"),r=n.pop();n=n.join("-");var p=
1081
1081
  f.pop();e.every(function(t){var s=t.type;t=t.classList[r];if(n===s){if(s==="fontAwesome"){o='<span class="pui-fa-icons-center '+t+p+" "+(l?l:"")+'"></span>';if(c)c='<span class="pui-fa-icons-text '+(l?l:"")+'">'+c+"</span>"}else{o='<span class="pui-icons-center '+t+p+" "+(l?l:"")+'"></span>';if(c)c='<span class="'+(l?l:"")+'">'+c+"</span>"}return false}return true})}}else o=b;a.setAttribute("type","button");a.innerHTML=h==="right"?c+o:o+c}
1082
1082
  pui.widgets.add({name:"graphic button",tag:"button",inputType:"button",newValue:"Accept",md:true,defaults:{width:!pui.is_quirksmode?"100px":null,"icon position":"left","image source":"/profoundui/proddata/images/accept.png",color:"#009933","font weight":"bold"},propertySetters:{"field type":function(b){Yd(b)},value:function(b){b.properties.value=b.value;Yd(b)},"image source":function(b){b.properties["image source"]=b.value;Yd(b)},icon:function(b){b.properties.icon=b.value;Yd(b)},"icon position":function(b){b.properties["icon position"]=
1083
- b.value;Yd(b)},"css class":function(b){b.properties["css class"]=b.value;Yd(b)},cursor:function(b){b.properties.cursor=b.value;Yd(b)}}});pui.di=function(){function b(t){if(P!="genie"||pui.fa){if(p.sp&&(!t||p.oj))return;if(p.grid.designMode)return;if(p.grid.Hb())return}p.grid.rp()}function a(t){if(P!="genie"||pui.fa){if(p.qp&&(!t||p.nj))return;if(p.grid.designMode)return;if(p.grid.Ub())return}p.grid.pp()}this.y=this.x=100;this.width=500;this.nm=this.Rh=this.Qh=this.wd=this.Lu=this.Xh=this.ng=false;this.ut=this.vt=null;this.qp=this.sp=this.nj=this.oj=false;this.Il=1;this.na=this.ka=this.oa=this.xa=this.grid=this.b=null;var c,e,f,h,g;
1083
+ b.value;Yd(b)},"css class":function(b){b.properties["css class"]=b.value;Yd(b)},cursor:function(b){b.properties.cursor=b.value;Yd(b)}}});pui.di=function(){function b(t){if(P!="genie"||pui.fa){if(p.sp&&(!t||p.oj))return;if(p.grid.designMode)return;if(p.grid.Hb())return}p.grid.rp()}function a(t){if(P!="genie"||pui.fa){if(p.qp&&(!t||p.nj))return;if(p.grid.designMode)return;if(p.grid.Ub())return}p.grid.pp()}this.y=this.x=100;this.width=500;this.nm=this.Rh=this.Qh=this.vd=this.Lu=this.Xh=this.ng=false;this.ut=this.vt=null;this.qp=this.sp=this.nj=this.oj=false;this.Il=1;this.na=this.ka=this.oa=this.xa=this.grid=this.b=null;var c,e,f,h,g;
1084
1084
  this.Tb=null;var l,o,n,r,p=this;this.init=function(){c=document.createElement("div");c.style.position="absolute";c.style.backgroundRepeat="repeat-x";c.style.textAlign="center";c.style.paddingTop="5px";c.style.overflow="hidden";c.onselectstart=ya(false);if(typeof c.style.MozUserSelect!="undefined")c.style.MozUserSelect="none";p.b.appendChild(c);p.Tb=document.createElement("div");p.Tb.className="tempStatus";p.Tb.innerHTML="<span></span><span></span>";p.Tb.addEventListener("click",p);c.appendChild(p.Tb);
1085
1085
  e=document.createElement("div");e.style.cursor="pointer";e.style.position="absolute";e.style.top="4px";e.style.left="4px";e.style.height="14px";e.style.padding="1px";e.style.width="14px";e.onclick=function(){p.grid.designMode||p.grid.exportCSV()};pui.Q(e,"export-image-icon");pui.Q(e,"csv-export-image-icon");c.appendChild(e);f=document.createElement("span");f.innerHTML=pui.getLanguageText("runtimeText","excel export text");f.style.position="absolute";f.style.top="5px";f.style.left="24px";f.style.textDecoration=
1086
1086
  "underline";f.style.cursor="pointer";f.onclick=function(){p.grid.designMode||p.grid.exportCSV()};f.className="paging-link csv-paging-link";c.appendChild(f);h=document.createElement("div");h.style.cursor="pointer";h.style.position="absolute";h.style.top="4px";h.style.left="4px";h.style.height="14px";h.style.padding="1px";h.style.width="14px";h.onclick=function(){p.grid.designMode||p.grid.exportCSV(null,true)};pui.Q(h,"export-image-icon");pui.Q(h,"xlsx-export-image-icon");c.appendChild(h);g=document.createElement("span");
1087
1087
  g.innerHTML=pui.getLanguageText("runtimeText","export to x",["XLSX"]);g.style.position="absolute";g.style.top="5px";g.style.left="24px";g.style.textDecoration="underline";g.style.cursor="pointer";g.onclick=function(){p.grid.designMode||p.grid.exportCSV(null,true)};g.className="paging-link xlsx-paging-link";c.appendChild(g);p.xa=document.createElement("div");p.xa.className="prev-image-icon";p.xa.style.verticalAlign="top";p.xa.style.display="inline-block";p.xa.style.height="16px";p.xa.style.width="16px";
1088
- p.xa.vd="PageUp";p.xa.S="0";p.xa.Bb=p;p.xa.Fh=true;p.xa.onmouseover=function(){p.xa.disabled||pui.Q(p.oa,"paging-link-hover")};p.xa.onmouseout=function(){p.xa.disabled||pui.da(p.oa,"paging-link-hover")};p.xa.onclick=function(){b(true)};c.appendChild(p.xa);p.oa=document.createElement("span");p.oa.innerHTML=pui.getLanguageText("runtimeText","previous link text");p.oa.href="javascript:void(0)";p.oa.style.verticalAlign="top";p.oa.vd="PageUp";p.oa.S="0";p.oa.Bb=p;p.oa.Fh=true;p.oa.onmouseover=function(){p.oa.disabled||
1088
+ p.xa.ud="PageUp";p.xa.S="0";p.xa.Bb=p;p.xa.Fh=true;p.xa.onmouseover=function(){p.xa.disabled||pui.Q(p.oa,"paging-link-hover")};p.xa.onmouseout=function(){p.xa.disabled||pui.da(p.oa,"paging-link-hover")};p.xa.onclick=function(){b(true)};c.appendChild(p.xa);p.oa=document.createElement("span");p.oa.innerHTML=pui.getLanguageText("runtimeText","previous link text");p.oa.href="javascript:void(0)";p.oa.style.verticalAlign="top";p.oa.ud="PageUp";p.oa.S="0";p.oa.Bb=p;p.oa.Fh=true;p.oa.onmouseover=function(){p.oa.disabled||
1089
1089
  pui.Q(p.oa,"paging-link-hover")};p.oa.onmouseout=function(){p.oa.disabled||pui.da(p.oa,"paging-link-hover")};p.oa.onclick=function(){b(true)};p.oa.className="paging-link previous-paging-link";c.appendChild(p.oa);l=document.createElement("span");l.innerHTML="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";c.appendChild(l);n=document.createElement("span");n.style.fontFamily="Arial";n.style.fontSize="11px";n.style.fontWeight="bold";n.style.verticalAlign="top";n.className="paging-number";c.appendChild(n);o=document.createElement("span");
1090
1090
  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=
1091
- "top";p.na.vd="PageDown";p.na.S="0";p.na.Bb=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.da(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.vd=
1091
+ "top";p.na.ud="PageDown";p.na.S="0";p.na.Bb=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.da(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=
1092
1092
  "PageDown";p.ka.S="0";p.ka.Bb=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.da(p.na,"paging-link-hover")};p.ka.onclick=function(){a(true)};c.appendChild(p.ka);if(!p.nj||!p.oj)pui.Dn=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==
1093
- 34&&a()}};T(pui.runtimeContainer,"keydown",t)}T(c,"mousedown",function(s){function w(E){var C=ad(E)-G,K=$c(E)-B;E=p.grid.c.e;if(E!=null){var R=E.designer.selection;if(R.su){K+=p.grid.c.hb;C+=p.grid.c.Fa;K=R.Tj(K,pui.vl);C=R.Tj(C,pui.wl,P=="genie"?3:0);K-=p.grid.c.hb;C-=p.grid.c.Fa}}p.grid.Hc(function(N){N.style.top=N.Fa+C+"px";N.style.left=N.hb+K+"px"});if(E!=null)E.moved=true;p.grid.setScrollBar();E=pui.designer.wj;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!=
1093
+ 34&&a()}};S(pui.runtimeContainer,"keydown",t)}S(c,"mousedown",function(s){function w(E){var C=ad(E)-G,K=$c(E)-B;E=p.grid.c.e;if(E!=null){var L=E.designer.selection;if(L.su){K+=p.grid.c.hb;C+=p.grid.c.Fa;K=L.Tj(K,pui.vl);C=L.Tj(C,pui.wl,P=="genie"?3:0);K-=p.grid.c.hb;C-=p.grid.c.Fa}}p.grid.Hc(function(Q){Q.style.top=Q.Fa+C+"px";Q.style.left=Q.hb+K+"px"});if(E!=null)E.moved=true;p.grid.setScrollBar();E=pui.designer.wj;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!=
1094
1094
  null)if(p.grid.c.e.moved){p.grid.c.e.designer.nn();P=="dspf"&&pui.ide.refreshRibbon()}else p.grid.c.e.designer.ca.hy();p.grid.ec();var E=pui.designer.wj;E!=null&&E.b!=null&&E.hide();ac(document,"mousemove",w);ac(document,"mouseup",A)}if(p.grid.designMode){p.grid.c.e.designer.Ko();p.grid.Le();if(pui.Be(s)){if(p.grid.c.e){p.grid.c.e.designer.Uw.hide();p.grid.c.e.designer.Ny(s)}designUtils.Ee(s);s.stopPropagation&&s.stopPropagation();return false}p.grid.c.e!=null&&p.grid.c.e.designer.Mp!=null&&p.grid.c.e.designer.Mp.hide();
1095
- if(p.Ff)designUtils.Ee(s);else{var B=$c(s),G=ad(s);p.grid.Hc(function(E){E.hb=parseInt(E.style.left);E.Fa=parseInt(E.style.top)});T(document,"mousemove",w);T(document,"mouseup",A);vb(s);if(p.grid.designMode&&p.grid.c.e!=null){p.grid.c.e.moved=false;s=p.grid.c.e.designer;var F=s.selection,D="Move Selection";if(F.Sd.length==1)D="Move Grid";s.ca.start(D);s.ca.lp=true;F.qn(["left","top","parent tab panel","parent tab panel"]);s.ca.lp=false}}}})};this.position=function(){if((p.ng||p.Xh||p.wd||p.Qh||p.Rh||
1095
+ if(p.Ff)designUtils.Ee(s);else{var B=$c(s),G=ad(s);p.grid.Hc(function(E){E.hb=parseInt(E.style.left);E.Fa=parseInt(E.style.top)});S(document,"mousemove",w);S(document,"mouseup",A);vb(s);if(p.grid.designMode&&p.grid.c.e!=null){p.grid.c.e.moved=false;s=p.grid.c.e.designer;var F=s.selection,D="Move Selection";if(F.Sd.length==1)D="Move Grid";s.ca.start(D);s.ca.lp=true;F.qn(["left","top","parent tab panel","parent tab panel"]);s.ca.lp=false}}}})};this.position=function(){if((p.ng||p.Xh||p.vd||p.Qh||p.Rh||
1096
1096
  p.nm)&&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.Tb.removeEventListener("click",p);c.innerHTML="";c.parentNode!=null&&c.parentNode.removeChild(c);r=n=o=l=g=h=f=e=c=null;Zb(p);p=null};this.fm=function(t){if(c!=null){if(t==null)t="";t=Lb(t);if(t!=""){t=
1097
- t.split(" ").shift();t+="-paging-bar"}t+=" paging-bar";t=Lb(t);if(c.className!=t)c.className=t}};this.z=function(){p.Tb.style.display="none";p.fm(p.grid.c.className);if((p.ng||p.Xh||p.wd||p.Qh||p.Rh||p.nm)&&p.grid.c.style.display!="none"&&p.grid.c.style.visibility!="hidden"){p.position();var t=p.ng?"":"none";e.style.display=t;f.style.display=t;t=p.Xh?"":"none";h.style.display=t;g.style.display=t;if(p.Xh&&p.ng){f.innerHTML=pui.getLanguageText("runtimeText","export to x",["Excel CSV"]);g.innerHTML=
1098
- 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.wd){t=p.xa.offsetLeft;w=p.ka.offsetLeft+p.ka.offsetWidth}else if(p.Qh){t=n.offsetLeft;w=n.offsetLeft+n.offsetWidth}else if(p.Rh){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=
1099
- "122px";g.style.left="144px";if(p.wd)w=p.ka.offsetLeft+p.ka.offsetWidth;else if(p.wd)w=n.offsetLeft+n.offsetWidth;if(g.offsetLeft+g.offsetWidth>t||w>s){g.innerHTML="XLSX";h.style.left="124px";g.style.left="144px";if(p.wd)w=p.ka.offsetLeft+p.ka.offsetWidth;else if(p.wd)w=n.offsetLeft+n.offsetWidth;if(g.offsetLeft+g.offsetWidth>t||w>s){f.innerHTML="CSV";h.style.left="60px";g.style.left="80px"}}}}else{f.innerHTML=pui.getLanguageText("runtimeText","excel export text");g.innerHTML=pui.getLanguageText("runtimeText",
1100
- "excel export text");h.style.left="4px";g.style.left="24px"}if(p.wd){p.xa.style.display="inline-block";p.oa.style.display="";p.ka.style.display="inline-block";p.na.style.display="";p.xa.disabled=false;p.oa.disabled=false;p.ka.disabled=false;p.na.disabled=false;if(P!="genie"){if(!p.grid.designMode&&p.grid.Hb()&&(p.vt=="false"||!p.oj)){p.xa.disabled=true;p.oa.disabled=true;pui.Q(p.oa,"paging-link-disabled");pui.Q(p.xa,"prev-image-icon-disabled")}else{pui.da(p.oa,"paging-link-disabled");pui.da(p.xa,
1097
+ t.split(" ").shift();t+="-paging-bar"}t+=" paging-bar";t=Lb(t);if(c.className!=t)c.className=t}};this.z=function(){p.Tb.style.display="none";p.fm(p.grid.c.className);if((p.ng||p.Xh||p.vd||p.Qh||p.Rh||p.nm)&&p.grid.c.style.display!="none"&&p.grid.c.style.visibility!="hidden"){p.position();var t=p.ng?"":"none";e.style.display=t;f.style.display=t;t=p.Xh?"":"none";h.style.display=t;g.style.display=t;if(p.Xh&&p.ng){f.innerHTML=pui.getLanguageText("runtimeText","export to x",["Excel CSV"]);g.innerHTML=
1098
+ 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.xa.offsetLeft;w=p.ka.offsetLeft+p.ka.offsetWidth}else if(p.Qh){t=n.offsetLeft;w=n.offsetLeft+n.offsetWidth}else if(p.Rh){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=
1099
+ "122px";g.style.left="144px";if(p.vd)w=p.ka.offsetLeft+p.ka.offsetWidth;else if(p.vd)w=n.offsetLeft+n.offsetWidth;if(g.offsetLeft+g.offsetWidth>t||w>s){g.innerHTML="XLSX";h.style.left="124px";g.style.left="144px";if(p.vd)w=p.ka.offsetLeft+p.ka.offsetWidth;else if(p.vd)w=n.offsetLeft+n.offsetWidth;if(g.offsetLeft+g.offsetWidth>t||w>s){f.innerHTML="CSV";h.style.left="60px";g.style.left="80px"}}}}else{f.innerHTML=pui.getLanguageText("runtimeText","excel export text");g.innerHTML=pui.getLanguageText("runtimeText",
1100
+ "excel export text");h.style.left="4px";g.style.left="24px"}if(p.vd){p.xa.style.display="inline-block";p.oa.style.display="";p.ka.style.display="inline-block";p.na.style.display="";p.xa.disabled=false;p.oa.disabled=false;p.ka.disabled=false;p.na.disabled=false;if(P!="genie"){if(!p.grid.designMode&&p.grid.Hb()&&(p.vt=="false"||!p.oj)){p.xa.disabled=true;p.oa.disabled=true;pui.Q(p.oa,"paging-link-disabled");pui.Q(p.xa,"prev-image-icon-disabled")}else{pui.da(p.oa,"paging-link-disabled");pui.da(p.xa,
1101
1101
  "prev-image-icon-disabled")}if(!p.grid.designMode&&p.grid.Ub()&&(p.grid.uu&&pui["page down on subfile end"]!=true||p.ut=="false"||!p.nj)){p.ka.disabled=true;p.na.disabled=true;pui.Q(p.na,"paging-link-disabled");pui.Q(p.ka,"next-image-icon-disabled")}else{pui.da(p.na,"paging-link-disabled");pui.da(p.ka,"next-image-icon-disabled")}}}else{p.xa.style.display="none";p.oa.style.display="none";p.ka.style.display="none";p.na.style.display="none"}if(p.Qh){n.style.display="";n.innerHTML=pui.getLanguageText("runtimeText",
1102
1102
  "page")+" "+p.Il}else n.style.display="none";if(p.Rh){t=p.grid;s=t.getRecordCount();if(t.designMode){t.sf=1;t.Vi=t.Do();s=t.Vi}r.style.display="";r.innerHTML="Showing "+t.sf+"-"+t.Vi+" of "+s}else r.style.display="none"}else c.style.display="none"};this.bh=function(t){p.b=t;c.parentNode.removeChild(c);p.b.appendChild(c)};this.getHeight=function(){return c.offsetHeight};this.$p=function(t,s){e.style.display="none";f.style.display="none";h.style.display="none";g.style.display="none";p.xa.style.display=
1103
- "none";p.oa.style.display="none";p.ka.style.display="none";p.na.style.display="none";n.style.display="none";p.br=t;p.ar=s;p.Tb.style.cursor="pointer";p.Tb.style.display="block"};this.Lv=function(t){t(c)}};pui.di.prototype=Object.create(pui.zd.prototype);function Zd(b,a,c){b=b.Tb.childNodes[0];b.className=c;b.innerHTML=a}function $d(b,a){b.Tb.childNodes[1].innerHTML=a}pui.di.prototype.handleEvent=function(b){switch(b.type){case "click":if(b.target==this.Tb||b.target.parentNode==this.Tb)ae(this);break}};
1104
- function ae(b){b.Tb.style.cursor="";b.Tb.style.opacity="0";Zd(b,"","");b.br!=null&&$d(b,b.br);typeof b.ar=="function"&&b.ar();setTimeout(function(){this.z();this.Tb.style.opacity=""}.bind(b),2500)}pui.di.prototype.hm=function(b){$d(this,b)};pui.di.prototype.ks=function(){this.z()};pui.Wu=function(){function b(C,K){if(l){l=false;n.Bl(K)}else setTimeout(function(){C==h&&n.Bl(K)},n.interval)}function a(){var C=22;if(pui.is_touch&&!pui.is_mouse_capable&&!n.designMode||pui.pa)C=0;w.style.left=n.x-w.offsetWidth+C+"px";w.style.top=n.y-w.offsetHeight-2+"px"}function c(C){setTimeout(function(){if(C==g)w.style.display="none"},800)}function e(C){function K(){if(s.D==null)s.style.opacity=G;else if(!(s.D.startTime>ha)){var Y=false,X=(new Date).getTime(),y=M+(W-X)*Q;M=y;W=X;Q*=0.98;if(Q>
1105
- 0){Q-=0.001;if(Q<=0){Y=true;Q=0}}else{Q+=0.001;if(Q>=0){Y=true;Q=0}}X=parseInt(t.style.top);var ea=X+parseInt(t.style.height)-parseInt(s.style.height);if(ea<X)ea=X;if(y<X){y=X;Y=true}if(y>ea){y=ea;Y=true}s.Dg=y;s.style.top=parseInt(y)+"px";y=(y-X)/(ea-X);if(isNaN(y))y=0;y=(n.Sa-n.dc)*y;y=Math.round(y)+1;n.doScroll(y);if(Y){s.D=null;pui.animate({element:s,property:"opacity",from:1,to:G,duration:"1s"})}else setTimeout(K,1E3/60)}}if(C==null)s.style.opacity=G;else{var R=C.duration,N=C.Ok,M=s.Dg,W=C.xh;
1106
- if(N==null||R==null)s.style.opacity=G;else if(!(R>500)){var Q=N/R,ha=(new Date).getTime();K()}}}function f(C,K){if(n.bb){if(K)C=-C;if(n.bb&&C<0&&n.bb.grid.Ub()||n.bb&&C>0&&n.bb.grid.Hb())return true}return false}this.y=this.x=0;this.height=300;this.zIndex=100;this.designMode=false;this.b=null;this.dc=10;this.Sa=100;this.la=20;this.borderWidth=1;this.Bl=this.onchange=null;this.Sh=true;this.Th=false;this.interval=250;this.type="sliding";this.Nf=false;this.bb=null;var h=0,g=0,l=true,o=false,n=this,r,
1107
- p,t,s,w,A=25,B=-1,G=0,F,D,E;this.init=function(C){n.bb=C;r=document.createElement("div");r.style.position="absolute";r.style.width="23px";r.style.overflowY="scroll";r.style.overflowX="hidden";r.style.padding="0px";r.className="pui-scrollbar";if(n.bb.grid&&n.bb.grid.Xc)r.className+=" "+n.bb.grid.Xc+"-pui-scrollbar";p=document.createElement("div");p.style.position="absolute";p.style.left="0px";p.style.top="0px";p.innerHTML="&nbsp;";p.fontSize="0px";w=document.createElement("div");w.style.position="absolute";
1108
- w.style.border="1px solid #999999";w.style.backgroundColor="#ffffff";w.style.fontFamily="Arial";w.style.fontSize="10px";w.style.fontWeight="bold";w.style.padding="1px";w.style.zIndex=1E3;w.style.filter="alpha(opacity=75)";w.style.opacity=0.75;w.style.display="none";if(P=="dspf"&&pui.is_touch&&!pui.is_mouse_capable&&!n.designMode||pui.pa){t=document.createElement("div");t.style.position="absolute";t.style.width="3px";t.style.backgroundColor="transparent";s=document.createElement("div");s.style.position=
1109
- "absolute";s.style.width="3px";s.style.height="25px";s.style.top="0px";s.style.backgroundColor="#999999";if(!pui.is_android)s.style.borderRadius="2px";r.style.visibility="hidden";r.style.display="none";s.style.opacity=G;if(pui.pa){var K=function(W){function Q(X){s.style.opacity=1;var y=ad(X);X=(new Date).getTime();s.D.duration=X-s.D.xh;s.D.xh=X;var ea=n.Sa/n.dc/6;if(ea<1)ea=1;if(ea>40)ea=40;s.D.Ok=(y-s.D.Wi)/ea;s.D.Wi=y;X=s.D.Fa;y=y-s.D.startY;if(s.D.reverse)y=-y;y/=ea;X+=y;y=parseInt(t.style.top);
1110
- ea=y+parseInt(t.style.height)-parseInt(s.style.height);if(ea<y)ea=y;if(X<y)X=y;if(X>ea)X=ea;s.Dg=X;s.style.top=parseInt(X)+"px";X=(X-y)/(ea-y);if(isNaN(X))X=0;X=(n.Sa-n.dc)*X;X=Math.round(X)+1;n.doScroll(X)}function ha(){ac(document,"mousemove",Q);ac(document,"mouseup",ha);e(s.D)}var Y=ub(W);if(Y!=null&&Y.row===0||Y!=null&&Y.parentNode!=null&&Y.parentNode.row===0||Y!=null&&Y.parentNode!=null&&Y.parentNode.parentNode!=null&&Y.parentNode.parentNode.row===0)if(C.grid.h)return;if(!(Y!=null&&Y.tagName==
1111
- "INPUT"||Y.tagName=="SELECT"||Y.tagName=="TEXTAREA")){s.D={};s.D.reverse=Y!=s;s.D.startY=ad(W);s.D.Wi=s.D.startY;s.D.startTime=(new Date).getTime();s.D.xh=(new Date).getTime();s.D.Ok=null;s.D.duration=null;s.D.Fa=s.Dg!=null?s.Dg:parseInt(s.style.top);T(document,"mousemove",Q);T(document,"mouseup",ha);vb(W)}};T(s,"mousedown",K);T(C,"mousedown",K)}if(!pui.pa){var R,N,M;K=function(W){if(W.touches.length==1){var Q=W.target;if(Q!=null&&Q.row===0||Q!=null&&Q.parentNode!=null&&Q.parentNode.row===0||Q!=null&&
1112
- Q.parentNode!=null&&Q.parentNode.parentNode!=null&&Q.parentNode.parentNode.row===0)if(C.grid.h)return;if(!(Q!=null&&Q.tagName=="INPUT"||Q.tagName=="SELECT"||Q.tagName=="TEXTAREA")){W=W.touches[0];s.D={};s.D.reverse=Q!=s;n.Au=Q;s.D.startY=W.pageY;s.D.Wi=s.D.startY;s.D.startTime=(new Date).getTime();s.D.xh=(new Date).getTime();s.D.Ok=null;s.D.duration=null;s.D.Fa=s.Dg!=null?s.Dg:parseInt(s.style.top);R=W.pageX;N=W.pageY;M=null}}};T(s,"touchstart",K);T(C,"touchstart",K);K=function(W){if(W.touches.length==
1113
- 1)if(s.D!=null){s.style.opacity=1;var Q=W.touches[0],ha=Q.pageY,Y=Q.pageX-R,X=Q.pageY-N;R=Q.pageX;N=Q.pageY;if(M==null)M=Math.abs(Y)-Math.abs(X)>0;Y=Q=false;if(n.bb){Q=n.bb.grid.Nl;if(n.bb.grid.ko)Y=true}if(!M||Q||Y){X=(new Date).getTime();s.D.duration=X-s.D.xh;s.D.xh=X;X=n.Sa/n.dc/6;if(X<1)X=1;if(X>40)X=40;s.D.Ok=(ha-s.D.Wi)/X;s.D.Wi=ha;var y=s.D.Fa;ha=ha-s.D.startY;if(s.D.reverse)ha=-ha;ha/=X;y+=ha;X=parseInt(t.style.top);var ea=X+parseInt(t.style.height)-parseInt(s.style.height);if(ea<X)ea=X;if(y<
1114
- X)y=X;if(y>ea)y=ea;s.Dg=y;s.style.top=parseInt(y)+"px";y=(y-X)/(ea-X);if(isNaN(y))y=0;y=(n.Sa-n.dc)*y;y=Math.round(y)+1;n.doScroll(y);y=true;if(Q)y=false;else if(f(ha,s.D.reverse)){y=false;s.style.top=ha>0?ea+"px":X+"px"}if(Y&&!Q)y=true;if(y)W.preventDefault();else M=true}}};T(s,"touchmove",K);T(C,"touchmove",K);T(C,"touchend",function(){n.Au=null;e(s.D)})}}if(P=="genie"&&!pui.fa)r.onscroll=n.doScroll;r.onmousedown=function(W){if(n.Sh||n.Th){if(w.innerHTML!="")w.style.display="";a()}n.designMode&&
1115
- designUtils.Ee(W)};r.onmouseup=function(){c(g)};r.appendChild(p);n.b.appendChild(r);t!=null&&n.b.appendChild(t);s!=null&&n.b.appendChild(s);n.b.appendChild(w)};this.yn=function(){T(r,"scroll",n.doScroll)};this.doScroll=function(C){if(n.Nf){var K=Math.round(r.scrollTop/A)+1;if(n.rm>0&&(C==null||C.target!=null))K=n.rm;if(F!=null&&D!=null&&C==null&&B>0)C=B;if(C!=null&&typeof C=="number")K=C;if(K!=B){var R=K+n.dc-1;if(n.Th)w.innerHTML=pui.getLanguageText("runtimeText","rows")+" "+K+" - "+R;if(n.Sh)w.innerHTML=
1116
- pui.getLanguageText("runtimeText","row")+" "+K;a();n.onchange!=null&&n.onchange(K);if(n.Bl!=null){h+=1;if(h>1E4)h=10;b(h,K)}B=K;R=n.bb;if(R!=null){R=R.grid.ro.onscroll;if(R!=null&&R!=""&&!n.designMode)try{eval("row = "+K);eval(R)}catch(N){pui.Ea(N,"onscroll Error:\n");return false}}if(typeof C!=="undefined"&&(n.Sh||n.Th)&&n.Sa>1){w.style.display="";g+=1;if(g>1E4)g=0;a();c(g)}else w.style.display="none"}}};this.td=function(C,K){if(s!=null){var R=parseInt(t.style.top),N=R+parseInt(t.style.height)-parseInt(s.style.height);
1117
- if(N<R)N=R;R=parseInt((N-R)*((C-1)/(n.Sa-n.dc)))+R;s.style.top=R+"px";B=C;return s.style.top!=R+"px"}else{if(K)B=C;else n.rm=C;R=r.scrollTop;r.scrollTop=(C-1)*A;if(R!=r.scrollTop)return true;n.rm=null;return false}};this.rh=function(){clearTimeout(n.Ew);n.Ew=setTimeout(function(){n.rm=null},n.interval)};this.z=function(C){if(pui.is_old_ie){A=25;if(n.Sa>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(B==-1)s.style.top=
1118
- 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.dc*n.la-n.borderWidth;if(t!=null){t.style.height=K-2+"px";var R=(K-2)*(n.Sa<=0?1:n.dc/n.Sa);R=parseInt(R);if(R<25&&K>27)R=25;if(R>K-2)R=K-2;s.style.height=R+"px"}else{r.style.height=K+"px";R=(n.Sa-n.dc)*A+K;var N=9999990;if(pui.is_old_ie)N=1342177;else if(pui.is_ie)N=
1119
- 1533917;for(;R>N&&A>1;){A-=1;R=(n.Sa-n.dc)*A+K}if(R<0)R=0;if(R>5&&R==K)R-=5;p.style.height=R+"px"}a();t==null&&!C&&n.doScroll();if(!n.designMode&&n.Nf&&n.dc==1){E=p.style.height;p.style.height="0px";r.style.overflow="hidden";r.style.overflowX="hidden";r.style.overflowY="hidden";if(F==null&&D==null&&n.Sa>1){F=document.createElement("img");F.style.position="absolute";F.style.top="0px";F.style.right="0px";F.style.cursor="pointer";F.src=pui.normalizeURL("/profoundui/proddata/images/up.gif");F.onclick=
1120
- function(){if(pui.Bc!=null)pui.Bc.style.display="none";var M=B-1;if(M<1)M=1;if(M>n.Sa)M=n.Sa;n.doScroll(M)};D=document.createElement("img");D.style.position="absolute";D.style.bottom="0px";D.style.right="0px";D.style.cursor="pointer";D.src=pui.normalizeURL("/profoundui/proddata/images/down.gif");D.onclick=function(){if(pui.Bc!=null)pui.Bc.style.display="none";if(B==-1)B=1;var M=B+1;if(M<1)M=1;if(M>n.Sa)M=n.Sa;n.doScroll(M)};r.appendChild(F);r.appendChild(D)}}if(!n.designMode&&n.Nf&&n.dc>1&&F!=null&&
1103
+ "none";p.oa.style.display="none";p.ka.style.display="none";p.na.style.display="none";n.style.display="none";p.br=t;p.ar=s;p.Tb.style.cursor="pointer";p.Tb.style.display="block"};this.Lv=function(t){t(c)}};pui.di.prototype=Object.create(pui.yd.prototype);function Zd(b,a,c){b=b.Tb.childNodes[0];b.className=c;b.innerHTML=a}function $d(b,a){b.Tb.childNodes[1].innerHTML=a}pui.di.prototype.handleEvent=function(b){switch(b.type){case "click":if(b.target==this.Tb||b.target.parentNode==this.Tb)ae(this);break}};
1104
+ function ae(b){b.Tb.style.cursor="";b.Tb.style.opacity="0";Zd(b,"","");b.br!=null&&$d(b,b.br);typeof b.ar=="function"&&b.ar();setTimeout(function(){this.z();this.Tb.style.opacity=""}.bind(b),2500)}pui.di.prototype.hm=function(b){$d(this,b)};pui.di.prototype.ks=function(){this.z()};pui.Wu=function(){function b(C,K){if(l){l=false;n.Bl(K)}else setTimeout(function(){C==h&&n.Bl(K)},n.interval)}function a(){var C=22;if(pui.is_touch&&!pui.is_mouse_capable&&!n.designMode||pui.pa)C=0;w.style.left=n.x-w.offsetWidth+C+"px";w.style.top=n.y-w.offsetHeight-2+"px"}function c(C){setTimeout(function(){if(C==g)w.style.display="none"},800)}function e(C){function K(){if(s.D==null)s.style.opacity=G;else if(!(s.D.startTime>ia)){var ca=false,W=(new Date).getTime(),y=N+(X-W)*T;N=y;X=W;T*=0.98;if(T>
1105
+ 0){T-=0.001;if(T<=0){ca=true;T=0}}else{T+=0.001;if(T>=0){ca=true;T=0}}W=parseInt(t.style.top);var ea=W+parseInt(t.style.height)-parseInt(s.style.height);if(ea<W)ea=W;if(y<W){y=W;ca=true}if(y>ea){y=ea;ca=true}s.Dg=y;s.style.top=parseInt(y)+"px";y=(y-W)/(ea-W);if(isNaN(y))y=0;y=(n.Sa-n.dc)*y;y=Math.round(y)+1;n.doScroll(y);if(ca){s.D=null;pui.animate({element:s,property:"opacity",from:1,to:G,duration:"1s"})}else setTimeout(K,1E3/60)}}if(C==null)s.style.opacity=G;else{var L=C.duration,Q=C.Ok,N=s.Dg,
1106
+ X=C.xh;if(Q==null||L==null)s.style.opacity=G;else if(!(L>500)){var T=Q/L,ia=(new Date).getTime();K()}}}function f(C,K){if(n.bb){if(K)C=-C;if(n.bb&&C<0&&n.bb.grid.Ub()||n.bb&&C>0&&n.bb.grid.Hb())return true}return false}this.y=this.x=0;this.height=300;this.zIndex=100;this.designMode=false;this.b=null;this.dc=10;this.Sa=100;this.la=20;this.borderWidth=1;this.Bl=this.onchange=null;this.Sh=true;this.Th=false;this.interval=250;this.type="sliding";this.Nf=false;this.bb=null;var h=0,g=0,l=true,o=false,n=
1107
+ this,r,p,t,s,w,A=25,B=-1,G=0,F,D,E;this.init=function(C){n.bb=C;r=document.createElement("div");r.style.position="absolute";r.style.width="23px";r.style.overflowY="scroll";r.style.overflowX="hidden";r.style.padding="0px";r.className="pui-scrollbar";if(n.bb.grid&&n.bb.grid.Xc)r.className+=" "+n.bb.grid.Xc+"-pui-scrollbar";p=document.createElement("div");p.style.position="absolute";p.style.left="0px";p.style.top="0px";p.innerHTML="&nbsp;";p.fontSize="0px";w=document.createElement("div");w.style.position=
1108
+ "absolute";w.style.border="1px solid #999999";w.style.backgroundColor="#ffffff";w.style.fontFamily="Arial";w.style.fontSize="10px";w.style.fontWeight="bold";w.style.padding="1px";w.style.zIndex=1E3;w.style.filter="alpha(opacity=75)";w.style.opacity=0.75;w.style.display="none";if(P=="dspf"&&pui.is_touch&&!pui.is_mouse_capable&&!n.designMode||pui.pa){t=document.createElement("div");t.style.position="absolute";t.style.width="3px";t.style.backgroundColor="transparent";s=document.createElement("div");
1109
+ s.style.position="absolute";s.style.width="3px";s.style.height="25px";s.style.top="0px";s.style.backgroundColor="#999999";if(!pui.is_android)s.style.borderRadius="2px";r.style.visibility="hidden";r.style.display="none";s.style.opacity=G;if(pui.pa){var K=function(X){function T(W){s.style.opacity=1;var y=ad(W);W=(new Date).getTime();s.D.duration=W-s.D.xh;s.D.xh=W;var ea=n.Sa/n.dc/6;if(ea<1)ea=1;if(ea>40)ea=40;s.D.Ok=(y-s.D.Wi)/ea;s.D.Wi=y;W=s.D.Fa;y=y-s.D.startY;if(s.D.reverse)y=-y;y/=ea;W+=y;y=parseInt(t.style.top);
1110
+ ea=y+parseInt(t.style.height)-parseInt(s.style.height);if(ea<y)ea=y;if(W<y)W=y;if(W>ea)W=ea;s.Dg=W;s.style.top=parseInt(W)+"px";W=(W-y)/(ea-y);if(isNaN(W))W=0;W=(n.Sa-n.dc)*W;W=Math.round(W)+1;n.doScroll(W)}function ia(){ac(document,"mousemove",T);ac(document,"mouseup",ia);e(s.D)}var ca=ub(X);if(ca!=null&&ca.row===0||ca!=null&&ca.parentNode!=null&&ca.parentNode.row===0||ca!=null&&ca.parentNode!=null&&ca.parentNode.parentNode!=null&&ca.parentNode.parentNode.row===0)if(C.grid.h)return;if(!(ca!=null&&
1111
+ ca.tagName=="INPUT"||ca.tagName=="SELECT"||ca.tagName=="TEXTAREA")){s.D={};s.D.reverse=ca!=s;s.D.startY=ad(X);s.D.Wi=s.D.startY;s.D.startTime=(new Date).getTime();s.D.xh=(new Date).getTime();s.D.Ok=null;s.D.duration=null;s.D.Fa=s.Dg!=null?s.Dg:parseInt(s.style.top);S(document,"mousemove",T);S(document,"mouseup",ia);vb(X)}};S(s,"mousedown",K);S(C,"mousedown",K)}if(!pui.pa){var L,Q,N;K=function(X){if(X.touches.length==1){var T=X.target;if(T!=null&&T.row===0||T!=null&&T.parentNode!=null&&T.parentNode.row===
1112
+ 0||T!=null&&T.parentNode!=null&&T.parentNode.parentNode!=null&&T.parentNode.parentNode.row===0)if(C.grid.h)return;if(!(T!=null&&T.tagName=="INPUT"||T.tagName=="SELECT"||T.tagName=="TEXTAREA")){X=X.touches[0];s.D={};s.D.reverse=T!=s;n.Au=T;s.D.startY=X.pageY;s.D.Wi=s.D.startY;s.D.startTime=(new Date).getTime();s.D.xh=(new Date).getTime();s.D.Ok=null;s.D.duration=null;s.D.Fa=s.Dg!=null?s.Dg:parseInt(s.style.top);L=X.pageX;Q=X.pageY;N=null}}};S(s,"touchstart",K);S(C,"touchstart",K);K=function(X){if(X.touches.length==
1113
+ 1)if(s.D!=null){s.style.opacity=1;var T=X.touches[0],ia=T.pageY,ca=T.pageX-L,W=T.pageY-Q;L=T.pageX;Q=T.pageY;if(N==null)N=Math.abs(ca)-Math.abs(W)>0;ca=T=false;if(n.bb){T=n.bb.grid.Nl;if(n.bb.grid.ko)ca=true}if(!N||T||ca){W=(new Date).getTime();s.D.duration=W-s.D.xh;s.D.xh=W;W=n.Sa/n.dc/6;if(W<1)W=1;if(W>40)W=40;s.D.Ok=(ia-s.D.Wi)/W;s.D.Wi=ia;var y=s.D.Fa;ia=ia-s.D.startY;if(s.D.reverse)ia=-ia;ia/=W;y+=ia;W=parseInt(t.style.top);var ea=W+parseInt(t.style.height)-parseInt(s.style.height);if(ea<W)ea=
1114
+ W;if(y<W)y=W;if(y>ea)y=ea;s.Dg=y;s.style.top=parseInt(y)+"px";y=(y-W)/(ea-W);if(isNaN(y))y=0;y=(n.Sa-n.dc)*y;y=Math.round(y)+1;n.doScroll(y);y=true;if(T)y=false;else if(f(ia,s.D.reverse)){y=false;s.style.top=ia>0?ea+"px":W+"px"}if(ca&&!T)y=true;if(y)X.preventDefault();else N=true}}};S(s,"touchmove",K);S(C,"touchmove",K);S(C,"touchend",function(){n.Au=null;e(s.D)})}}if(P=="genie"&&!pui.fa)r.onscroll=n.doScroll;r.onmousedown=function(X){if(n.Sh||n.Th){if(w.innerHTML!="")w.style.display="";a()}n.designMode&&
1115
+ designUtils.Ee(X)};r.onmouseup=function(){c(g)};r.appendChild(p);n.b.appendChild(r);t!=null&&n.b.appendChild(t);s!=null&&n.b.appendChild(s);n.b.appendChild(w)};this.yn=function(){S(r,"scroll",n.doScroll)};this.doScroll=function(C){if(n.Nf){var K=Math.round(r.scrollTop/A)+1;if(n.rm>0&&(C==null||C.target!=null))K=n.rm;if(F!=null&&D!=null&&C==null&&B>0)C=B;if(C!=null&&typeof C=="number")K=C;if(K!=B){var L=K+n.dc-1;if(n.Th)w.innerHTML=pui.getLanguageText("runtimeText","rows")+" "+K+" - "+L;if(n.Sh)w.innerHTML=
1116
+ pui.getLanguageText("runtimeText","row")+" "+K;a();n.onchange!=null&&n.onchange(K);if(n.Bl!=null){h+=1;if(h>1E4)h=10;b(h,K)}B=K;L=n.bb;if(L!=null){L=L.grid.ro.onscroll;if(L!=null&&L!=""&&!n.designMode)try{eval("row = "+K);eval(L)}catch(Q){pui.Ea(Q,"onscroll Error:\n");return false}}if(typeof C!=="undefined"&&(n.Sh||n.Th)&&n.Sa>1){w.style.display="";g+=1;if(g>1E4)g=0;a();c(g)}else w.style.display="none"}}};this.sd=function(C,K){if(s!=null){var L=parseInt(t.style.top),Q=L+parseInt(t.style.height)-parseInt(s.style.height);
1117
+ if(Q<L)Q=L;L=parseInt((Q-L)*((C-1)/(n.Sa-n.dc)))+L;s.style.top=L+"px";B=C;return s.style.top!=L+"px"}else{if(K)B=C;else n.rm=C;L=r.scrollTop;r.scrollTop=(C-1)*A;if(L!=r.scrollTop)return true;n.rm=null;return false}};this.rh=function(){clearTimeout(n.Ew);n.Ew=setTimeout(function(){n.rm=null},n.interval)};this.z=function(C){if(pui.is_old_ie){A=25;if(n.Sa>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(B==-1)s.style.top=
1118
+ 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.dc*n.la-n.borderWidth;if(t!=null){t.style.height=K-2+"px";var L=(K-2)*(n.Sa<=0?1:n.dc/n.Sa);L=parseInt(L);if(L<25&&K>27)L=25;if(L>K-2)L=K-2;s.style.height=L+"px"}else{r.style.height=K+"px";L=(n.Sa-n.dc)*A+K;var Q=9999990;if(pui.is_old_ie)Q=1342177;else if(pui.is_ie)Q=
1119
+ 1533917;for(;L>Q&&A>1;){A-=1;L=(n.Sa-n.dc)*A+K}if(L<0)L=0;if(L>5&&L==K)L-=5;p.style.height=L+"px"}a();t==null&&!C&&n.doScroll();if(!n.designMode&&n.Nf&&n.dc==1){E=p.style.height;p.style.height="0px";r.style.overflow="hidden";r.style.overflowX="hidden";r.style.overflowY="hidden";if(F==null&&D==null&&n.Sa>1){F=document.createElement("img");F.style.position="absolute";F.style.top="0px";F.style.right="0px";F.style.cursor="pointer";F.src=pui.normalizeURL("/profoundui/proddata/images/up.gif");F.onclick=
1120
+ function(){if(pui.Bc!=null)pui.Bc.style.display="none";var N=B-1;if(N<1)N=1;if(N>n.Sa)N=n.Sa;n.doScroll(N)};D=document.createElement("img");D.style.position="absolute";D.style.bottom="0px";D.style.right="0px";D.style.cursor="pointer";D.src=pui.normalizeURL("/profoundui/proddata/images/down.gif");D.onclick=function(){if(pui.Bc!=null)pui.Bc.style.display="none";if(B==-1)B=1;var N=B+1;if(N<1)N=1;if(N>n.Sa)N=n.Sa;n.doScroll(N)};r.appendChild(F);r.appendChild(D)}}if(!n.designMode&&n.Nf&&n.dc>1&&F!=null&&
1121
1121
  D!=null&&n.Sa>1){r.removeChild(F);r.removeChild(D);D=F=null;p.style.height=E;r.style.overflow="";r.style.overflowX="hidden";r.style.overflowY="scroll"}};this.cl=function(C){if(t!=null)t.style.height=parseInt(r.style.height)+C-2+"px";else r.style.height=parseInt(r.style.height)+C+"px"};this.fm=function(C){r.className="pui-scrollbar";if(n.bb.grid&&C)r.className+=" "+C+"-pui-scrollbar"};this.hide=function(){r.style.visibility="hidden";r.style.display="none";w.style.display="none";w.style.visibility=
1122
- "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.Di=function(C){function K(W){var Q=0;if(!W)W=window.event;if(W.wheelDelta){Q=W.wheelDelta/120;if(window.opera)Q=-Q}else if(W.detail)Q=-W.detail/3;N(Q,W)}function R(W){N(pui.nt(W)*-1,W)}function N(W,Q){if(W&&!Q.shiftKey)if(s==null)r.scrollTop-=W*A;var ha=
1123
- false;if(Q.preventDefault)ha=true;if(n.bb&&(n.bb.grid.Nl||f(W)||Q.shiftKey))ha=false;if(ha){Q.preventDefault();Q.returnValue=false}}if(!o){o=true;if(typeof WheelEvent=="function"){C.addEventListener("wheel",R,false);for(var M=0;M<C.grid.n.length;M++)C.grid.n[M].addEventListener("wheel",R,false);for(M=0;M<C.grid.k.length;M++)C.grid.k[M].addEventListener("wheel",R,false)}else{C.addEventListener&&C.addEventListener("DOMMouseScroll",K,false);C.onmousewheel=K}}};this.bh=function(C){n.b=C;r.parentNode.removeChild(r);
1122
+ "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.Di=function(C){function K(X){var T=0;if(!X)X=window.event;if(X.wheelDelta){T=X.wheelDelta/120;if(window.opera)T=-T}else if(X.detail)T=-X.detail/3;Q(T,X)}function L(X){Q(pui.nt(X)*-1,X)}function Q(X,T){if(X&&!T.shiftKey)if(s==null)r.scrollTop-=X*A;var ia=
1123
+ false;if(T.preventDefault)ia=true;if(n.bb&&(n.bb.grid.Nl||f(X)||T.shiftKey))ia=false;if(ia){T.preventDefault();T.returnValue=false}}if(!o){o=true;if(typeof WheelEvent=="function"){C.addEventListener("wheel",L,false);for(var N=0;N<C.grid.n.length;N++)C.grid.n[N].addEventListener("wheel",L,false);for(N=0;N<C.grid.k.length;N++)C.grid.k[N].addEventListener("wheel",L,false)}else{C.addEventListener&&C.addEventListener("DOMMouseScroll",K,false);C.onmousewheel=K}}};this.bh=function(C){n.b=C;r.parentNode.removeChild(r);
1124
1124
  n.b.appendChild(r)}};pui.Uu=function(){function b(t){var s=0;if(!t)t=window.event;if(t.wheelDelta){s=t.wheelDelta/120;if(window.opera)s=-s}else if(t.detail)s=-t.detail/3;c(s,t)}function a(t){c(pui.nt(t)*-1,t)}function c(t,s){if(t&&!s.shiftKey)if(document.getElementById(f))document.getElementById(f).scrollTop-=t*p;else n.scrollTop-=t*p;var w=false;if(s.preventDefault)w=true;var A;if(A=e.grid){if(!(A=e.grid.Nl)){a:{if(e.bb)if(e.bb&&t<0&&e.bb.grid.Ub()||e.bb&&t>0&&e.bb.grid.Hb()){A=true;break a}A=false}A=A||s.shiftKey}A=
1125
1125
  A}if(A)w=false;if(w){s.preventDefault();s.returnValue=false}}this.y=this.x=0;this.height=300;this.zIndex=100;this.designMode=this.Ub=this.Hb=false;this.hj=this.ij=this.b=null;this.type="paging";this.Nf=false;var e=this,f,h=false,g=false,l=false,o=0,n,r,p=25;this.init=function(){n=document.createElement("div");f=typeof e.grid!=="undefined"&&typeof e.grid.Xa==="string"&&e.grid.Xa.length>0?e.grid.Xa+"scrollbar":"scrollbar"+Math.floor(Math.random()*1E6).toString();n.id=f;n.style.position="absolute";n.style.width=
1126
1126
  "23px";n.style.overflowY="scroll";n.style.overflowX="hidden";n.style.padding="0px";r=document.createElement("div");r.style.position="absolute";r.style.left="0px";r.style.top="0px";r.innerHTML="&nbsp;";r.fontSize="0px";n.onmousedown=function(t){e.designMode&&designUtils.Ee(t)};n.onscroll=function(){var t=parseInt(e.height/2);if(e.designMode||e.Hb&&e.Ub)n.scrollTop=t;else if(h)h=false;else if(l){h=true;n.scrollTop=e.height*2}else if(g){h=true;n.scrollTop=0}else if(e.Ub&&!e.Hb){if(e.ij!=null){t=e.ij();
@@ -1129,16 +1129,16 @@ if(t==false){e.z();return}}h=g=true;n.scrollTop=0}else if(e.Hb&&!e.Ub){if(e.hj!=
1129
1129
  a,false);else{t.addEventListener&&t.addEventListener("DOMMouseScroll",b,false);t.onmousewheel=b}}}};pui.Ou=function(){function b(){for(;e.rows.length>0;)e.deleteRow(e.rows.length-1);f&&f.parentNode.removeChild(f);var g="";if(Fa=="ON")g="https://"+HTTP_HOST;g+="/profoundui/proddata/images/";var l=[],o=[],n=[],r=[];if(a.grid.sortable){if(a.Rc.om!=null){l.push(pui.getLanguageText("runtimeText","sort ascending text"));n.push("icons/sort_ascending.png");r.push(function(){a.Rc.ra=true;if(a.grid.c.Lh!=null)a.grid.Pf="A";a.Rc.om()});l.push(pui.getLanguageText("runtimeText","sort descending text"));n.push("icons/sort_descending.png");
1130
1130
  r.push(function(){a.Rc.ra=false;if(a.grid.c.Lh!=null)a.grid.Pf="D";a.Rc.om()})}l.push(pui.getLanguageText("runtimeText","sort..."));n.push("icons/grid.png");r.push(a.grid.lu)}if(l.length>0&&(a.grid.vo||a.grid.Hi)){l.push("-");n.push(null);r.push(null)}if(a.grid.vo){l.push(pui.getLanguageText("runtimeText","find text")+"...");n.push("icons/search.png");r.push(function(){a.grid.startFind(a.Rc)})}if(a.grid.Hi&&(!a.grid.ak()||a.grid.ss()<a.grid.se)){l.push(pui.getLanguageText("runtimeText","filter text")+
1131
1131
  "...");n.push("icons/filter.png");r.push(function(){a.grid.startFilter(a.Rc)});if(!pui.is_ie&&P!="genie"){l.push(pui.getLanguageText("runtimeText","multi filter text"));n.push("icons/filter_multi.png");r.push(function(){a.grid.Py(a.Rc)})}}if(a.grid.Hi&&a.Rc.nc!=null){l.push(pui.getLanguageText("runtimeText","remove filter"));n.push("icons/remove_filter.png");r.push(function(){a.grid.removeFilter(a.Rc)})}if(a.grid.Hi&&a.grid.ss()>1){l.push(pui.getLanguageText("runtimeText","remove filters text"));
1132
- n.push("icons/remove_filter.png");r.push(function(){a.grid.removeAllFilters()})}if(a.grid.Pt){l.push(pui.getLanguageText("runtimeText","reset data"));n.push("icons/default.png");r.push(function(){var C=a.grid.cells[0][0].parentNode.pui.properties;a.grid.alignColumnTotals();if(a.grid.ma){var K=C["column headings"].split(","),R=a.grid.ga.map(function(W){W.showing||a.grid.Lo(W,true)});if(a.grid.ga.Ai)a.grid.ga.Ai=null;for(;K.length<R.length;)K.push("")}R=a.grid.cells[0];for(var N=0;N<R.length;N++){var M=
1133
- R[N];M.col!=M.w&&a.grid.moveColumn(M.col,M.w)}a.grid.Rf(C["column widths"]);a.grid.Ma();a.grid.gc=null;if(C["expand to layout"]=="true"||C["expand to layout"]==true)a.grid.Xb();a.grid.jt([]);if(K)a.columnHeadings=K;a.grid.fc();a.grid.removeAllFilters();a.grid.clearState()})}if(a.grid.ma){n.push("icons/grid.png");l.push(pui.getLanguageText("runtimeText","displayed columns"));var p=a.grid.ga;if(a.grid.tl&&p.Ai){var t=[];p.filter(function(C){if(C.currentColumn==-1&&!C.showing){t.push(C);return false}return true}).sort(function(C,
1134
- K){var R=C.currentColumn,N=K.currentColumn,M=false,W=false;if(R==-1){M=true;R=a.grid.os(C.columnId)}if(N==-1){W=true;N=a.grid.os(K.columnId)}if(R==N)return M&&!W?1:-1;return R>N?1:-1}).forEach(function(C){o.push(C)});t.forEach(function(C){o.push(C)})}else p.forEach(function(C){o.push(C)});r.push(function(C){a.grid.alignColumnTotals();return a.grid.Lo(C)})}if(a.grid.so==true||a.grid.so==null&&a.grid.i!=null&&a.grid.i.ng){if(l.length>0&&l[l.length-1]!="-"){l.push("-");n.push(null);r.push(null)}l.push(pui.getLanguageText("runtimeText",
1132
+ n.push("icons/remove_filter.png");r.push(function(){a.grid.removeAllFilters()})}if(a.grid.Pt){l.push(pui.getLanguageText("runtimeText","reset data"));n.push("icons/default.png");r.push(function(){var C=a.grid.cells[0][0].parentNode.pui.properties;a.grid.alignColumnTotals();if(a.grid.ma){var K=C["column headings"].split(","),L=a.grid.ga.map(function(X){X.showing||a.grid.Lo(X,true)});if(a.grid.ga.Ai)a.grid.ga.Ai=null;for(;K.length<L.length;)K.push("")}L=a.grid.cells[0];for(var Q=0;Q<L.length;Q++){var N=
1133
+ L[Q];N.col!=N.w&&a.grid.moveColumn(N.col,N.w)}a.grid.Rf(C["column widths"]);a.grid.Ma();a.grid.gc=null;if(C["expand to layout"]=="true"||C["expand to layout"]==true)a.grid.Xb();a.grid.jt([]);if(K)a.columnHeadings=K;a.grid.fc();a.grid.removeAllFilters();a.grid.clearState()})}if(a.grid.ma){n.push("icons/grid.png");l.push(pui.getLanguageText("runtimeText","displayed columns"));var p=a.grid.ga;if(a.grid.tl&&p.Ai){var t=[];p.filter(function(C){if(C.currentColumn==-1&&!C.showing){t.push(C);return false}return true}).sort(function(C,
1134
+ K){var L=C.currentColumn,Q=K.currentColumn,N=false,X=false;if(L==-1){N=true;L=a.grid.os(C.columnId)}if(Q==-1){X=true;Q=a.grid.os(K.columnId)}if(L==Q)return N&&!X?1:-1;return L>Q?1:-1}).forEach(function(C){o.push(C)});t.forEach(function(C){o.push(C)})}else p.forEach(function(C){o.push(C)});r.push(function(C){a.grid.alignColumnTotals();return a.grid.Lo(C)})}if(a.grid.so==true||a.grid.so==null&&a.grid.i!=null&&a.grid.i.ng){if(l.length>0&&l[l.length-1]!="-"){l.push("-");n.push(null);r.push(null)}l.push(pui.getLanguageText("runtimeText",
1135
1135
  "export to x",["Excel (CSV)"])+"...");n.push("grids/excel.gif");r.push(function(){a.grid.exportCSV()});l.push(pui.getLanguageText("runtimeText","export to x",["Excel (XLSX)"])+"...");n.push("grids/excel.gif");r.push(function(){a.grid.exportCSV(null,true)})}for(p=0;p<l.length;p++){var s=e.insertRow(p);s.style.color="#333333";if(l[p]=="-"){s=s.insertCell(0);s.colSpan=2;var w=document.createElement("div");w.style.backgroundColor="#e0e0e0";w.style.borderBottomColor="#ffffff";w.style.borderBottomWidth=
1136
1136
  "1px";w.style.borderBottomStyle="solid";w.style.height="1px";w.style.lineHeight="1px";w.style.fontSize="1px";w.style.paddingTop="0px";w.style.paddingBottom="0px";w.style.width="100%";s.appendChild(w)}else{s.style.cursor="pointer";s.style.padding="3px";s.Gl=r[p];if(l[p]!=pui.getLanguageText("runtimeText","displayed columns")){s.onclick=function(C){ub(C).parentNode.Gl();a.hide()};s.So=false}s.onmouseover=function(C){C=ub(C).parentNode;if(C.tagName=="TD")C=C.parentNode;C.style.backgroundColor="#3399ff";
1137
1137
  C.style.color="#ffffff";a.grid.ma&&this.So&&a.nu()};s.onmouseout=function(C){if(a.grid.ma&&this.So)if(C){var K=C.relatedTarget||C.SA;if(K&&K==c)return;a.Mo()}C=ub(C).parentNode;if(C.tagName=="TD")C=C.parentNode;C.style.backgroundColor="";C.style.color="#333333"};w=s.insertCell(0);w.style.width="20px";var A=n[p];if(A!=null){w.style.backgroundImage="url('"+g+A+"')";w.style.backgroundPosition="center";w.style.backgroundRepeat="no-repeat"}w.style.padding="3px";w=s.insertCell(1);if(l[p]==pui.getLanguageText("runtimeText",
1138
1138
  "displayed columns")){A=document.createElement("div");var B=document.createElement("table");B.border=0;B.cellPadding=3;B.cellSpacing=0;w.innerHTML=l[p];var G=document.createElement("img");G.src=pui.normalizeURL("/profoundui/proddata/images/menus/submenu-arrow.gif");G.style.position="absolute";G.style.right="3px";G.style.paddingTop="3px";G.Xo=true;w.appendChild(G);for(G=0;G<o.length;G++){var F=o[G],D=B.insertRow(G);D.style.color="#333333";D.style.padding="3px";D.style.cursor="pointer";D.onmouseover=
1139
1139
  function(C){C=ub(C).parentNode;if(C.tagName=="TD")C=C.parentNode;C.style.backgroundColor="#3399ff";C.style.color="#ffffff"};D.onmouseout=function(C){C=ub(C).parentNode;if(C.tagName=="TD")C=C.parentNode;C.style.backgroundColor="";C.style.color="#333333"};D.Gl=s.Gl;D.col=F;D.insertCell(0).innerHTML='<input type="checkbox" style="transform:scale(1.25); cursor:pointer;"'+(F.showing?"checked":"")+"/>";var E=D.insertCell(1);E.innerHTML=F.name;E.style.fontFamily="Sans-serif";E.style.fontSize="12px";E.style.padding=
1140
- "3px 6px 3px 3px";E.style.whiteSpace="normal";D.style.top=(G+1)*25+"px";D.onmousedown=function(C){h=true;C=ub(C);var K=this.getElementsByTagName("input")[0],R=this.Gl(this.col);if(C.tagName!="INPUT"&&R)K.checked=K.checked?false:true}}s.onclick=function(){this.classList.add("active-item")};s.So=true;A.row=s;A.appendChild(B);A.className="pui-hide-show-columns-list";A.onmouseover=function(){h=true;a.nu()};A.onmouseout=function(){h=false};if(a.grid.c)A.gt=(G+1)*25;f=A;a.Mo()}else w.innerHTML=l[p];w.style.fontFamily=
1141
- "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=ub(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.Or;c.onselectstart=ya(false);
1140
+ "3px 6px 3px 3px";E.style.whiteSpace="normal";D.style.top=(G+1)*25+"px";D.onmousedown=function(C){h=true;C=ub(C);var K=this.getElementsByTagName("input")[0],L=this.Gl(this.col);if(C.tagName!="INPUT"&&L)K.checked=K.checked?false:true}}s.onclick=function(){this.classList.add("active-item")};s.So=true;A.row=s;A.appendChild(B);A.className="pui-hide-show-columns-list";A.onmouseover=function(){h=true;a.nu()};A.onmouseout=function(){h=false};if(a.grid.c)A.gt=(G+1)*25;f=A;a.Mo()}else w.innerHTML=l[p];w.style.fontFamily=
1141
+ "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(){S(document,"mousedown",function(g){if(a!=null){for(g=ub(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.Or;c.onselectstart=ya(false);
1142
1142
  c.oncontextmenu=ya(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.vx.length*22-45)l=l-a.vx.length*22+1}if(a.clickEvent!=null){g=pui.Bo(a.clickEvent);l=pui.us(a.clickEvent);
1143
1143
  var o=document.body.scrollWidth-185,n={x:0,y:0},r=a.grid.c.parentNode;if(P=="dspf")if(r.getAttribute("container")=="true"){n=pui.layout.vf(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+=
1144
1144
  p.offsetLeft;n.y+=p.offsetTop}if(f){r=r.getBoundingClientRect().height;f.Go=r}}else{r=pui.Vc(r);n.x=r[0];n.y=r[1];if(f)f.Go=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.Go&&f.gt){l=f.Go;if(f.gt>l/2){f.style.height=l/2+"px";f.style.overflowY="scroll"}else{f.style.overflowY="initial";f.style.height="auto"}}if(c.offsetLeft===
@@ -1148,67 +1148,67 @@ this.bv.appendChild(this.J);this.type=null;this.interval=100;this.Lf=null};
1148
1148
  pui.Lm.prototype.handleEvent=function(b){var a;this.bg=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.Lf==="function"){clearTimeout(this.cr);this.cr=setTimeout(this.lv,this.interval,this)}break;case "keydown":a=b.keyCode;if(a==13){if(this.type=="find"){if(typeof this.Lf==="function"){a=this.bg?this.bg.value:this.vc.value;this.Lf(a,true)}}else if(this.type=="filter"){this.xb.Y.text="";this.xb.getData();
1149
1149
  this.hide()}else if(this.type=="pgfilter")if(typeof this.Lf==="function"){a=this.bg?this.bg.value:this.vc.value;this.Lf(a)}vb(b)}else if(a==27){this.xb.Y.text="";this.xb.getData();this.hide();vb(b)}break;case "blur":if(this.xb){if(this.xb.Y)this.xb.Y.text="";this.xb.getData&&this.xb.getData()}this.hide();break;case "focus":b.stopPropagation();b.preventDefault();b.target.className==="qf"&&this.xb.startFilter(b.target.parentNode);break}};Aa=pui.Lm.prototype;Aa.show=function(){this.J.style.display=""};
1150
1150
  Aa.hide=function(){this.J.style.display="none"};function be(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.vf(e);c+=e.y;f+=e.x}b.setPosition(f,c,h)}}}
1151
- Aa.setPosition=function(b,a,c){if(c==null)c=200;var e=c-15;if(e<20)e=20;this.J.style.left=b+"px";this.J.style.top=a+"px";this.J.style.width=c+"px";this.vc.style.width=e+"px"};Aa.focus=function(){this.vc.focus()};Aa.clear=function(){this.vc.value=""};Aa.setText=function(b){this.vc.value=b};Aa.lv=function(b){if(b.xb&&b.xb.d&&b.xb.d.type=="sliding")b.xb.d.Nf=false;b.Lf(b.bg?b.bg.value:b.vc.value);if(b.xb&&b.xb.d&&b.xb.d.type=="sliding")b.xb.d.Nf=true};pui.$h=function(){this.dataArray=[];this.X=[];this.aa=[];this.kd=false};pui.$h.prototype=Object.create(pui.zd.prototype);function ce(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.pb[c]=true;a.hd=true;return a.designer.jd[a.designer.Na.ub]=true}return false}
1151
+ Aa.setPosition=function(b,a,c){if(c==null)c=200;var e=c-15;if(e<20)e=20;this.J.style.left=b+"px";this.J.style.top=a+"px";this.J.style.width=c+"px";this.vc.style.width=e+"px"};Aa.focus=function(){this.vc.focus()};Aa.clear=function(){this.vc.value=""};Aa.setText=function(b){this.vc.value=b};Aa.lv=function(b){if(b.xb&&b.xb.d&&b.xb.d.type=="sliding")b.xb.d.Nf=false;b.Lf(b.bg?b.bg.value:b.vc.value);if(b.xb&&b.xb.d&&b.xb.d.type=="sliding")b.xb.d.Nf=true};pui.$h=function(){this.dataArray=[];this.X=[];this.aa=[];this.kd=false};pui.$h.prototype=Object.create(pui.yd.prototype);function ce(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.pb[c]=true;a.hd=true;return a.designer.jd[a.designer.Na.ub]=true}return false}
1152
1152
  pui.ek=function(){function b(k,m){var q=d.dataArray;if(m&&d.isFiltered())q=d.X;var u=q[k-1];if(typeof d.hc!="undefined"&&d.hc===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.aa.length;q++)if(k==d.aa[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=
1153
- "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.WA;m.style.visibility="hidden";m.Wo=true;designUtils.vk(m,"mousedown",function(q){function u(L){var S=designUtils.getY(L)-I;L=designUtils.getX(L)-J;var ca=0,O=0;if(k=="sw"||k=="se")ca=d.k.length-1;if(k=="ne"||k=="se")O=d.n.length-1;na(L,S,ca,false,d.k[ca].Fa,d.k[ca].hb);na(L,S,O,true,d.n[O].Fa,d.n[O].hb);if((k=="sw"||
1154
- k=="se")&&d.k.length>2){S=S;if(S<-d.la+5)S=-d.la+5;typeof d.d.cl=="function"&&d.d.cl(S)}v.set(d.c.e)}function z(){designUtils.ey(document,"mousemove",u);designUtils.ey(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.Aj();if(L>parseInt(d.k[d.k.length-1].style.top)+d.la-3){for(var S=false;parseInt(d.k[d.k.length-1].style.top)<L;){d.af();S=true}S&&d.Bh()}}else d.la=parseInt(d.k[d.k.length-1].style.top)-
1153
+ "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.WA;m.style.visibility="hidden";m.Wo=true;designUtils.vk(m,"mousedown",function(q){function u(M){var R=designUtils.getY(M)-I;M=designUtils.getX(M)-J;var aa=0,O=0;if(k=="sw"||k=="se")aa=d.k.length-1;if(k=="ne"||k=="se")O=d.n.length-1;na(M,R,aa,false,d.k[aa].Fa,d.k[aa].hb);na(M,R,O,true,d.n[O].Fa,d.n[O].hb);if((k=="sw"||
1154
+ k=="se")&&d.k.length>2){R=R;if(R<-d.la+5)R=-d.la+5;typeof d.d.cl=="function"&&d.d.cl(R)}v.set(d.c.e)}function z(){designUtils.ey(document,"mousemove",u);designUtils.ey(document,"mouseup",z);if((k=="sw"||k=="se")&&(d.k.length>=3||d.h&&d.k.length==2)){var M=parseInt(d.k[d.k.length-1].style.top);if(d.cells.length>(d.h?2:1)){d.Aj();if(M>parseInt(d.k[d.k.length-1].style.top)+d.la-3){for(var R=false;parseInt(d.k[d.k.length-1].style.top)<M;){d.af();R=true}R&&d.Bh()}}else d.la=parseInt(d.k[d.k.length-1].style.top)-
1155
1155
  parseInt(d.k[d.k.length-2].style.top)}d.Xb();d.ec();v.hide()}var v=pui.designer.wj;if(v.b==null){v.b=document.body;v.init()}v.set(d.c.e);v.show();d.c.e.designer.Ko();if(!d.Ff)if(!(d.k.length<1||d.n.length<1)){var J=designUtils.getX(q),I=designUtils.getY(q);d.k[0].Fa=parseInt(d.k[0].style.top);d.k[0].hb=parseInt(d.k[0].style.left);d.n[0].Fa=parseInt(d.n[0].style.top);d.n[0].hb=parseInt(d.n[0].style.left);d.k[d.k.length-1].Fa=parseInt(d.k[d.k.length-1].style.top);d.k[d.k.length-1].hb=parseInt(d.k[d.k.length-
1156
1156
  1].style.left);d.n[d.n.length-1].Fa=parseInt(d.n[d.n.length-1].style.top);d.n[d.n.length-1].hb=parseInt(d.n[d.n.length-1].style.left);designUtils.vk(document,"mousemove",u);designUtils.vk(document,"mouseup",z);var H=d.c.e.designer;H.ca.start("Size Grid");H.selection.qn(["left","top","number of rows","header height","column widths"]);designUtils.Ee(q)}});d.b.appendChild(m);return m}function e(){var k="",m=d.mj["padding bottom"];if(m!=null&&m!="")k+="padding-bottom:"+m+";";m=d.mj["padding left"];if(m!=
1157
- null&&m!="")k+="padding-left:"+m+";";m=d.mj["padding right"];if(m!=null&&m!="")k+="padding-right:"+m+";";m=d.mj["padding top"];if(m!=null&&m!="")k+="padding-top:"+m+";";return k}function f(k){function m(){d.sc||B(k,false)}if(!pui.pa)k.style.cursor="pointer";T(k,"click",m);k.om=m}function h(k){function m(J,I){return parseInt(J,10)===I.w}function q(J,I){return J===I.fieldName}function u(J,I){return p(I.w)}var z=d.cells[0];if(d.Qi instanceof Array){n(d.Qi,m,u);d.ea()&&d.dataProps["load all rows"]!="true"?
1157
+ null&&m!="")k+="padding-left:"+m+";";m=d.mj["padding right"];if(m!=null&&m!="")k+="padding-right:"+m+";";m=d.mj["padding top"];if(m!=null&&m!="")k+="padding-top:"+m+";";return k}function f(k){function m(){d.sc||B(k,false)}if(!pui.pa)k.style.cursor="pointer";S(k,"click",m);k.om=m}function h(k){function m(J,I){return parseInt(J,10)===I.w}function q(J,I){return J===I.fieldName}function u(J,I){return p(I.w)}var z=d.cells[0];if(d.Qi instanceof Array){n(d.Qi,m,u);d.ea()&&d.dataProps["load all rows"]!="true"?
1158
1158
  B(null,k):s(null,true)}else if(d.Bg instanceof Array)if(d.ea()&&d.dataProps["load all rows"]!="true"){for(i=0;i<d.Bg.length;i++)d.Rs[i]=d.getColumnIndexFromFieldName(d.Bg[i]);n(d.Rs,m,u);B(null,k)}else{n(d.Bg,q,u);s(null,true)}else if(d.Bf!=null){if(z[d.Bf])d.ea()&&d.dataProps["load all rows"]!="true"?B(z[d.Bf],k):s(z[d.Bf],true)}else if(d.Ri!=null){var v=d.getColumnIndexFromFieldName(d.Ri);if(d.ea()&&d.dataProps["load all rows"]!="true")v!=null&&B(z[v],k);else v!=null&&s(z[v],true)}else return false;
1159
- return true}function g(){if(Va!=false){var k=R();if(k!=null)if(k.cols==null||k.cols!=Kc)N({});else return k}}function l(k,m,q){m=m&&d.ea();if(d.sortable&&!m&&d.c.gh==null&&d.c.qg==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].w==k.columnId){u=d.cells[0][m];u.ra=!k.descending;break}u&&q(u,true)}else if(k.multiSort instanceof Array){Sa=[];n(k.multiSort,function(z,v){return v.w===z.columnId},function(z){return z.descending});
1159
+ return true}function g(){if(Va!=false){var k=L();if(k!=null)if(k.cols==null||k.cols!=Kc)Q({});else return k}}function l(k,m,q){m=m&&d.ea();if(d.sortable&&!m&&d.c.gh==null&&d.c.qg==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].w==k.columnId){u=d.cells[0][m];u.ra=!k.descending;break}u&&q(u,true)}else if(k.multiSort instanceof Array){Sa=[];n(k.multiSort,function(z,v){return v.w===z.columnId},function(z){return z.descending});
1160
1160
  q(null,true)}}}function o(){var k=g();if(k!=null){l(k,false,B);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][Ga(k.filters[q].column)];if(z==null)return;if(u!=null&&u!=""){d.Y.w=z.w;d.Y.col=z.col;d.Y.text=u;d.im(z);z.sa=u}else{d.Y.text=null;d.zj(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);Sa.push(J);break}}}function r(k,m){Sa=[];n([k],function(q,u){return u.w==
1161
1161
  q},function(){return m})}function p(k){var m=null;if(d.Ci.length==0)return false;m=d.Ci.length==1?d.Ci[0]:d.Ci[k];if(m==null)return false;if(m.length<1)return false;m=m.substr(0,1).toUpperCase();return m=="D"}function t(k){for(var m=d.cells[0],q=0;q<m.length;q++)m[q].ra=k?p(m[q].w):!p(m[q].w)}function s(k,m){d.Yb!=null&&d.Yb.hide();if(!(k==null&&Sa.length<1)){var q;if(k!=null){q=k.ra;t(false);if(q==null)q=k.ra;r(k.w,!q)}var u;if(pc!==undefined)try{u=new Function("value1, value2, fieldName, isDescending, fieldDateFormat, fieldFormat, multiFields",
1162
- pc)}catch(z){if(z){console.log("Sort function error: ");console.error(z)}}if(d.c.gh==null&&d.c.qg==null){if(k!=null)Lc=k.w;pui.Ud={};if(!d.hc)for(var v=0;v<d.dataArray.length;v++)d.dataArray[v].o=v+1;for(v=0;v<d.dataArray.length;v++)d.dataArray[v].En=v;d.hc=true;K();var J="",I=null,H={},L=null,S=function(O){if(typeof O.fieldName==="string")J=O.fieldName.toUpperCase();if(O.dateFormat)I=O.dateFormat;if(O.gs)H=O.gs};if(k!=null)S(k);else if(pc!==undefined||typeof pui.gridSort=="function"){L=[];for(v=
1163
- 0;v<Sa.length;v++){S(Sa[v]);L.push({fieldName:J,fieldDateFormat:I,fieldFormat:H})}}v=function(O,V){function U(Ja,Na,Ca){ba=O[Ja];Z=V[Ja];if(Na=="zoned"||Na=="floating"){ba=Number(ba);Z=Number(Z)}else if(Na=="reference"){Ja=d.ref[Ca];if(Ja!=null)if(Ja.dataType==7||Ja.dataType==9||Ja.dataType==10){ba=Number(ba);Z=Number(Z)}}else if(Na=="graphic"){ba=pui.formatting.hh(ba);Z=pui.formatting.hh(Z)}}var ba,Z;if(k!=null)U(k.Vj,k.dataType,k.fieldName);else{for(var ja=false,za,La,ka=0;ka<Sa.length;ka++){var xa=
1164
- Sa[ka];U(xa.Vj,xa.dataType,xa.fieldName);if(pc!==undefined||typeof pui.gridSort=="function"){L[ka].value1=ba;L[ka].value2=Z}if(!ja&&ba!=Z){q=!xa.ra;za=ba;La=Z;ja=true}}if(q==null)q=true;if(za!=null)ba=za;if(La!=null)Z=La}return typeof u=="function"?ca(u,ba,Z,J,q,I,H,L):typeof pui.gridSort=="function"?ca(pui.gridSort,ba,Z,J,q,I,H,L):q&&ba<Z||!q&&ba>Z?-1:ba==Z?q&&O.o<V.o||!q&&O.o>V.o?-1:1:1};var ca=function(O,V,U,ba,Z,ja,za,La){O=O(V,U,ba,Z,ja,za,La);if(typeof O!="number")O=0;if(O>0)return Z?-1:1;if(O<
1165
- 0)return Z?1:-1;return 0};d.dataArray.sort(v);d.isFiltered()&&d.X.sort(v);w();d.j=1;if(d.mm>0&&m)for(v=0;v<d.dataArray.length;v++)if(d.dataArray[v].o==d.mm){d.j=v+1;if(d.At)d.sj=d.j;d.Bt||d.Fu(d.j);break}d.d!=null&&d.d.type=="sliding"&&d.d.td(d.j);hd==false&&d.getData()}if(k!=null){q=!q;k.ra=q;F(k,q)}else{G();C()}if(Va&&!m){S={};if(k!=null){S.columnId=k.w;S.descending=k.ra}else if(Sa.length>0){S.multiSort=[];for(v=0;v<Sa.length;v++)S.multiSort.push({columnId:Sa[v].w,descending:Sa[v].ra})}N(S,"sort")}}}
1166
- function w(){for(var k=[],m=0;m<d.dataArray.length;m++)k[d.dataArray[m].En]=m;m=pui.Ib(d.Xa)+".";for(var q in pui.O)if(q.substr(0,m.length)==m)if(q.substr(m.length).split(".").length==2){var u=pui.O[q][0];u.Vb=k[u.Vb]}}function A(){function k(m,q){return m.o>q.o?1:-1}G();E();d.j=1;if(d.ea()&&d.wa==false){d.Db="";d.mask();d.Jb()}else{d.dataArray.sort(k);d.isFiltered()&&d.X.sort(k);w()}d.d!=null&&d.d.type=="sliding"&&d.d.td(d.j);d.getData();d.clearState("sort")}function B(k,m){var q;d.Yb!=null&&d.Yb.hide();
1167
- if(!(k==null&&Sa.length<1)){if(k!=null){var u=cb(k.w);Lc=k.w+u;q=k.ra;t(false);if(q==null)q=k.ra;q=!q;r(k.w,q);d.Db=k.w+1+u+(q?" DESC":"")}else for(var z=d.Db="",v=0;v<Sa.length;v++){q=Sa[v].ra;if(q==null)q=p(k.w);u=cb(Sa[v].w);d.Db+=z+(Sa[v].w+1+u)+(q?" DESC":"");z=", "}d.hc=true;if(!m){d.d!=null&&d.d.type=="sliding"&&d.d.td(1);d.j=1;d.mask();d.Jb();d.getData()}if(k!=null){k.ra=q;F(k,q)}else{G();C()}if(Va&&!m){if(k!=null){var J={};J.columnId=k.w;J.descending=k.ra}else if(Sa.length>0){J={};J.multiSort=
1168
- [];for(v=0;v<Sa.length;v++)J.multiSort.push({columnId:Sa[v].w,descending:Sa[v].ra})}N(J,"sort")}}}function G(){d.gc!=null&&d.gc.parentNode!=null&&d.gc.parentNode.removeChild(d.gc)}function F(k,m){E();k.setAttribute("sortorder",0);if(d.gc==null)d.gc=document.createElement("div");else d.gc.parentNode!=null&&d.gc.parentNode.removeChild(d.gc);d.gc.className=m?"grid-sort-arrow-descending":"grid-sort-arrow-ascending";D(k,d.gc)}function D(k,m){var q=k;if(q.firstChild!=null&&q.firstChild.tagName=="DIV")q=
1162
+ pc)}catch(z){if(z){console.log("Sort function error: ");console.error(z)}}if(d.c.gh==null&&d.c.qg==null){if(k!=null)Lc=k.w;pui.Ud={};if(!d.hc)for(var v=0;v<d.dataArray.length;v++)d.dataArray[v].o=v+1;for(v=0;v<d.dataArray.length;v++)d.dataArray[v].En=v;d.hc=true;K();var J="",I=null,H={},M=null,R=function(O){if(typeof O.fieldName==="string")J=O.fieldName.toUpperCase();if(O.dateFormat)I=O.dateFormat;if(O.gs)H=O.gs};if(k!=null)R(k);else if(pc!==undefined||typeof pui.gridSort=="function"){M=[];for(v=
1163
+ 0;v<Sa.length;v++){R(Sa[v]);M.push({fieldName:J,fieldDateFormat:I,fieldFormat:H})}}v=function(O,V){function U(Ja,Na,Ca){ba=O[Ja];Y=V[Ja];if(Na=="zoned"||Na=="floating"){ba=Number(ba);Y=Number(Y)}else if(Na=="reference"){Ja=d.ref[Ca];if(Ja!=null)if(Ja.dataType==7||Ja.dataType==9||Ja.dataType==10){ba=Number(ba);Y=Number(Y)}}else if(Na=="graphic"){ba=pui.formatting.hh(ba);Y=pui.formatting.hh(Y)}}var ba,Y;if(k!=null)U(k.Vj,k.dataType,k.fieldName);else{for(var ja=false,za,La,ka=0;ka<Sa.length;ka++){var xa=
1164
+ Sa[ka];U(xa.Vj,xa.dataType,xa.fieldName);if(pc!==undefined||typeof pui.gridSort=="function"){M[ka].value1=ba;M[ka].value2=Y}if(!ja&&ba!=Y){q=!xa.ra;za=ba;La=Y;ja=true}}if(q==null)q=true;if(za!=null)ba=za;if(La!=null)Y=La}return typeof u=="function"?aa(u,ba,Y,J,q,I,H,M):typeof pui.gridSort=="function"?aa(pui.gridSort,ba,Y,J,q,I,H,M):q&&ba<Y||!q&&ba>Y?-1:ba==Y?q&&O.o<V.o||!q&&O.o>V.o?-1:1:1};var aa=function(O,V,U,ba,Y,ja,za,La){O=O(V,U,ba,Y,ja,za,La);if(typeof O!="number")O=0;if(O>0)return Y?-1:1;if(O<
1165
+ 0)return Y?1:-1;return 0};d.dataArray.sort(v);d.isFiltered()&&d.X.sort(v);w();d.j=1;if(d.mm>0&&m)for(v=0;v<d.dataArray.length;v++)if(d.dataArray[v].o==d.mm){d.j=v+1;if(d.At)d.sj=d.j;d.Bt||d.Fu(d.j);break}d.d!=null&&d.d.type=="sliding"&&d.d.sd(d.j);hd==false&&d.getData()}if(k!=null){q=!q;k.ra=q;F(k,q)}else{G();C()}if(Va&&!m){R={};if(k!=null){R.columnId=k.w;R.descending=k.ra}else if(Sa.length>0){R.multiSort=[];for(v=0;v<Sa.length;v++)R.multiSort.push({columnId:Sa[v].w,descending:Sa[v].ra})}Q(R,"sort")}}}
1166
+ function w(){for(var k=[],m=0;m<d.dataArray.length;m++)k[d.dataArray[m].En]=m;m=pui.Ib(d.Xa)+".";for(var q in pui.O)if(q.substr(0,m.length)==m)if(q.substr(m.length).split(".").length==2){var u=pui.O[q][0];u.Vb=k[u.Vb]}}function A(){function k(m,q){return m.o>q.o?1:-1}G();E();d.j=1;if(d.ea()&&d.wa==false){d.Db="";d.mask();d.Jb()}else{d.dataArray.sort(k);d.isFiltered()&&d.X.sort(k);w()}d.d!=null&&d.d.type=="sliding"&&d.d.sd(d.j);d.getData();d.clearState("sort")}function B(k,m){var q;d.Yb!=null&&d.Yb.hide();
1167
+ if(!(k==null&&Sa.length<1)){if(k!=null){var u=cb(k.w);Lc=k.w+u;q=k.ra;t(false);if(q==null)q=k.ra;q=!q;r(k.w,q);d.Db=k.w+1+u+(q?" DESC":"")}else for(var z=d.Db="",v=0;v<Sa.length;v++){q=Sa[v].ra;if(q==null)q=p(k.w);u=cb(Sa[v].w);d.Db+=z+(Sa[v].w+1+u)+(q?" DESC":"");z=", "}d.hc=true;if(!m){d.d!=null&&d.d.type=="sliding"&&d.d.sd(1);d.j=1;d.mask();d.Jb();d.getData()}if(k!=null){k.ra=q;F(k,q)}else{G();C()}if(Va&&!m){if(k!=null){var J={};J.columnId=k.w;J.descending=k.ra}else if(Sa.length>0){J={};J.multiSort=
1168
+ [];for(v=0;v<Sa.length;v++)J.multiSort.push({columnId:Sa[v].w,descending:Sa[v].ra})}Q(J,"sort")}}}function G(){d.gc!=null&&d.gc.parentNode!=null&&d.gc.parentNode.removeChild(d.gc)}function F(k,m){E();k.setAttribute("sortorder",0);if(d.gc==null)d.gc=document.createElement("div");else d.gc.parentNode!=null&&d.gc.parentNode.removeChild(d.gc);d.gc.className=m?"grid-sort-arrow-descending":"grid-sort-arrow-ascending";D(k,d.gc)}function D(k,m){var q=k;if(q.firstChild!=null&&q.firstChild.tagName=="DIV")q=
1169
1169
  q.firstChild;q.appendChild(m)}function E(){for(var k=0;k<d.cells[0].length;k++){var m=d.cells[0][k];m.removeAttribute("sortorder");if(m.Zc!=null)m.Zc.style.display="none"}}function C(){E();for(var k=0;k<Sa.length;k++){var m=Sa[k];m.setAttribute("sortorder",k);if(m.Zc==null){m.Zc=document.createElement("div");m.Zc.onclick=function(q){if(!pui.Be(q)){vb(q);d.lu()}};D(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=
1170
1170
  {},m=0;m<d.aa.length;m++)k[d.aa[m]]=m;var q=pui.Ib(d.Xa)+".";for(var u in pui.O)if(u.substr(0,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.hc&&v.Vb!=null)if(d.dataArray[v.Vb]&&d.dataArray[v.Vb].o!=undefined&&d.dataArray[v.Vb].o!==v.Vb)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.Vb];else for(m=0;m<d.dataArray.length;m++)if(d.dataArray[m].o===
1171
- v.o){J=d.dataArray[m];break}if(J!=null){m=v.value;if(v.comboBoxWidget!=null)m=v.comboBoxWidget.getValue();if(v.l!=null)m=v.l.getValue();if(v.M!=null){m="";if(v.M.Kd&&v.M.Dh!=null)m=v.M.Dh;else if(!v.M.Kd&&v.M.Ch!=null)m=v.M.Ch}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 I=v.N.value,H=v.N.revert;v.N.value=
1172
- m;v.N.revert=true;m=pui.tc.format(v.N);v.N.value=I;v.N.revert=H;if(typeof m=="object")m="";J[z]=m}}}}}}}function R(){var k=null;if(pui.Cg()&&localStorage[d.Ob]!=null||pui.Vo()&&sessionStorage[d.Ob]!=null||Qa&&pui.uj[d.Ob]!=null)try{k=nb==true?JSON.parse(sessionStorage[d.Ob]):Qa==true?JSON.parse(pui.uj[d.Ob]):JSON.parse(localStorage[d.Ob])}catch(m){}if(d.Yd!=null&&d.Yd!="")try{k=JSON.parse(d.Yd)}catch(q){console.warn("Error parsing stored state: "+q)}else if(k!=null&&k!="")d.Yd=JSON.stringify(k);return k}
1173
- function N(k,m){var q;if(m==null)q=k;else{q=R();if(q==null)q={};q[m]=k}q.cols=Kc;d.Yd=JSON.stringify(q);if(Va==true)if(nb==true)sessionStorage[d.Ob]=JSON.stringify(q);else if(Qa==true)pui.uj[d.Ob]=JSON.stringify(q);else localStorage[d.Ob]=JSON.stringify(q)}function M(k,m){if(!d.designMode){var q,u=d.ro[k],z=-1;if(m!=null){z=fe(d,m-(d.h?0:1));q=d.isFiltered()?d.X:d.dataArray}if(pui.$b(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.Xa}pui.runLogic(u.routine,v,J)}else if(u!=
1171
+ v.o){J=d.dataArray[m];break}if(J!=null){m=v.value;if(v.comboBoxWidget!=null)m=v.comboBoxWidget.getValue();if(v.l!=null)m=v.l.getValue();if(v.M!=null){m="";if(v.M.Jd&&v.M.Dh!=null)m=v.M.Dh;else if(!v.M.Jd&&v.M.Ch!=null)m=v.M.Ch}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 I=v.N.value,H=v.N.revert;v.N.value=
1172
+ m;v.N.revert=true;m=pui.tc.format(v.N);v.N.value=I;v.N.revert=H;if(typeof m=="object")m="";J[z]=m}}}}}}}function L(){var k=null;if(pui.Cg()&&localStorage[d.Ob]!=null||pui.Vo()&&sessionStorage[d.Ob]!=null||Qa&&pui.uj[d.Ob]!=null)try{k=nb==true?JSON.parse(sessionStorage[d.Ob]):Qa==true?JSON.parse(pui.uj[d.Ob]):JSON.parse(localStorage[d.Ob])}catch(m){}if(d.Yd!=null&&d.Yd!="")try{k=JSON.parse(d.Yd)}catch(q){console.warn("Error parsing stored state: "+q)}else if(k!=null&&k!="")d.Yd=JSON.stringify(k);return k}
1173
+ function Q(k,m){var q;if(m==null)q=k;else{q=L();if(q==null)q={};q[m]=k}q.cols=Kc;d.Yd=JSON.stringify(q);if(Va==true)if(nb==true)sessionStorage[d.Ob]=JSON.stringify(q);else if(Qa==true)pui.uj[d.Ob]=JSON.stringify(q);else localStorage[d.Ob]=JSON.stringify(q)}function N(k,m){if(!d.designMode){var q,u=d.ro[k],z=-1;if(m!=null){z=fe(d,m-(d.h?0:1));q=d.isFiltered()?d.X:d.dataArray}if(pui.$b(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.Xa}pui.runLogic(u.routine,v,J)}else if(u!=
1174
1174
  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];");eval("var rowNumber = arguments[1];");pui.temporary_property=d.Pp;eval("var rowclicked = pui.temporary_property");pui.temporary_property=d.Qn;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];");
1175
- 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!=null)v=q[z].o;eval("row = "+v);eval("var rrn = "+v)}delete pui.temporary_property;if(eval(u)==false)return false}catch(I){pui.Ea(I,k.substr(0,1).toUpperCase()+k.substr(1)+" Error:\n");return false}}}function W(k,m){var q=document.createElement("div");q.style.position="absolute";q.style.left="200px";q.style.top="200px";q.style.width="16px";
1176
- q.style.height="18px";q.style.fontSize="0px";q.style.overflow="hidden";q.style.backgroundImage="url('"+pui.normalizeURL("/profoundui/proddata/images/icons/")+k+".gif')";q.style.backgroundRepeat="no-repeat";q.style.cursor="pointer";q.style.zIndex=d.dx;q.title=m;q.style.color="white";q.style.padding="0px";q.onmousedown=function(u){designUtils.Ee(u)};d.b.appendChild(q);return q}function Q(){if(d.designMode)if(Wa!=null)if(da!=null){var k=0,m=0;k=d.k.length;if(k>0){m=parseInt(d.k[k-1].style.left);k=parseInt(d.k[k-
1177
- 1].style.top)-20}else{m=d.pc("left");k=d.pc("top")-20}Wa.style.left=m+"px";Wa.style.top=k+"px";k-=14;da.style.left=m+"px";da.style.top=k+"px";k=d.n.length;if(k>0){m=parseInt(d.n[k-1].style.left)-20;k=parseInt(d.n[k-1].style.top)+5}else{m=d.pc("left")-20;k=d.pc("top")+5}ia.style.left=m+"px";ia.style.top=k+"px";m-=14;va.style.left=m+"px";va.style.top=k+"px";m=d.pc("left")-2;k=d.pc("top")-2;Ba.style.left=m+"px";Ba.style.top=k+"px";m+=d.pc("width")-2;Ya.style.left=m+"px";Ya.style.top=k+"px";k+=d.pc("height")+
1178
- 1;if(d.i.ng||d.i.wd||d.i.Qh||d.i.Rh||d.i.nm)k+=25;wa.style.left=m+"px";wa.style.top=k+"px";m=d.pc("left")-2;fa.style.left=m+"px";fa.style.top=k+"px"}}function ha(k){if(k==null)return false;var m=false;if(k.selected==null)if(d.Cb!=null){if(d.am==null)for(var q=0;q<d.aa.length;q++)if(pui.L(d.Cb.fieldName)==d.aa[q]){d.am=q;break}if(d.am!=null)if(k[d.am]==d.Nh)k.selected=true}if(k.selected==true)m=true;return m}function Y(k,m,q){if(!(!d.designMode&&m!=true)){if(!d.designMode&&m==true)d.c.parentNode.onselectstart=
1179
- X;if(q!=true&&k.style.cursor!="pointer")k.style.cursor="default";T(k,"mousedown",y)}}function X(k){if(d&&d.dragging){vb(k);return false}}function y(k){function m(O){O=pui.vg(O);var V=O.y-I,U=O.x-J;if(P=="dspf"&&d.designMode){V=Math.round(V*Ib.Fm);U=Math.round(U*Ib.Fm)}if(d.h&&u.row==0){if(tb==null){tb=u.cloneNode(true);tb.style.position="absolute";tb.style.border="1px solid #999999";tb.style.zIndex=d.it;Rb=document.createElement("div");Rb.className=d.c.className;Rb.style.borderColor="transparent";
1180
- u.parentNode.parentNode.appendChild(Rb);Rb.appendChild(tb);tb.style.display="none";setTimeout(function(){if(tb!=null)tb.style.display=""},150)}tb.style.top=d.c.Fa+V+"px";var ba=parseInt(u.style.left);if(isNaN(ba))ba=u.getBoundingClientRect().left;tb.style.left=d.c.hb+ba+U+"px";var Z=null;if(V>-25&&V<parseInt(d.c.style.height))for(ba=0;ba<d.n.length;ba++){var ja=d.n[ba],za=parseInt(ja.style.left),La=O.x;if(d.designMode&&P=="dspf")za=Math.round(za*Ib.Zh);La-=H.x;if(Math.abs(za-La)<15){if(Za!=null&&
1181
- Za.parentNode!=ja.parentNode){Za.parentNode.removeChild(Za);Za=null}if(Za==null){Za=document.createElement("img");Za.src=pui.normalizeURL("/profoundui/proddata/images/grids/column-pointer.gif");Za.style.position="absolute";Za.style.zIndex=d.it+1;d.designMode?Ib.designer.b.appendChild(Za):document.body.appendChild(Za)}O=parseInt(ja.style.top)-10;ja=parseInt(ja.style.left)-4;O+=ca.y;ja+=ca.x;Za.style.display="";Za.style.top=O+"px";Za.style.left=ja+"px";Z=ba;Za.ql=Z;break}}if(Z==null&&Za!=null){Za.style.display=
1175
+ 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!=null)v=q[z].o;eval("row = "+v);eval("var rrn = "+v)}delete pui.temporary_property;if(eval(u)==false)return false}catch(I){pui.Ea(I,k.substr(0,1).toUpperCase()+k.substr(1)+" Error:\n");return false}}}function X(k,m){var q=document.createElement("div");q.style.position="absolute";q.style.left="200px";q.style.top="200px";q.style.width="16px";
1176
+ q.style.height="18px";q.style.fontSize="0px";q.style.overflow="hidden";q.style.backgroundImage="url('"+pui.normalizeURL("/profoundui/proddata/images/icons/")+k+".gif')";q.style.backgroundRepeat="no-repeat";q.style.cursor="pointer";q.style.zIndex=d.dx;q.title=m;q.style.color="white";q.style.padding="0px";q.onmousedown=function(u){designUtils.Ee(u)};d.b.appendChild(q);return q}function T(){if(d.designMode)if(Wa!=null)if(da!=null){var k=0,m=0;k=d.k.length;if(k>0){m=parseInt(d.k[k-1].style.left);k=parseInt(d.k[k-
1177
+ 1].style.top)-20}else{m=d.pc("left");k=d.pc("top")-20}Wa.style.left=m+"px";Wa.style.top=k+"px";k-=14;da.style.left=m+"px";da.style.top=k+"px";k=d.n.length;if(k>0){m=parseInt(d.n[k-1].style.left)-20;k=parseInt(d.n[k-1].style.top)+5}else{m=d.pc("left")-20;k=d.pc("top")+5}ha.style.left=m+"px";ha.style.top=k+"px";m-=14;va.style.left=m+"px";va.style.top=k+"px";m=d.pc("left")-2;k=d.pc("top")-2;Ba.style.left=m+"px";Ba.style.top=k+"px";m+=d.pc("width")-2;Ya.style.left=m+"px";Ya.style.top=k+"px";k+=d.pc("height")+
1178
+ 1;if(d.i.ng||d.i.vd||d.i.Qh||d.i.Rh||d.i.nm)k+=25;wa.style.left=m+"px";wa.style.top=k+"px";m=d.pc("left")-2;fa.style.left=m+"px";fa.style.top=k+"px"}}function ia(k){if(k==null)return false;var m=false;if(k.selected==null)if(d.Cb!=null){if(d.am==null)for(var q=0;q<d.aa.length;q++)if(pui.L(d.Cb.fieldName)==d.aa[q]){d.am=q;break}if(d.am!=null)if(k[d.am]==d.Nh)k.selected=true}if(k.selected==true)m=true;return m}function ca(k,m,q){if(!(!d.designMode&&m!=true)){if(!d.designMode&&m==true)d.c.parentNode.onselectstart=
1179
+ W;if(q!=true&&k.style.cursor!="pointer")k.style.cursor="default";S(k,"mousedown",y)}}function W(k){if(d&&d.dragging){vb(k);return false}}function y(k){function m(O){O=pui.vg(O);var V=O.y-I,U=O.x-J;if(P=="dspf"&&d.designMode){V=Math.round(V*Ib.Fm);U=Math.round(U*Ib.Fm)}if(d.h&&u.row==0){if(tb==null){tb=u.cloneNode(true);tb.style.position="absolute";tb.style.border="1px solid #999999";tb.style.zIndex=d.it;Rb=document.createElement("div");Rb.className=d.c.className;Rb.style.borderColor="transparent";
1180
+ u.parentNode.parentNode.appendChild(Rb);Rb.appendChild(tb);tb.style.display="none";setTimeout(function(){if(tb!=null)tb.style.display=""},150)}tb.style.top=d.c.Fa+V+"px";var ba=parseInt(u.style.left);if(isNaN(ba))ba=u.getBoundingClientRect().left;tb.style.left=d.c.hb+ba+U+"px";var Y=null;if(V>-25&&V<parseInt(d.c.style.height))for(ba=0;ba<d.n.length;ba++){var ja=d.n[ba],za=parseInt(ja.style.left),La=O.x;if(d.designMode&&P=="dspf")za=Math.round(za*Ib.Zh);La-=H.x;if(Math.abs(za-La)<15){if(Za!=null&&
1181
+ Za.parentNode!=ja.parentNode){Za.parentNode.removeChild(Za);Za=null}if(Za==null){Za=document.createElement("img");Za.src=pui.normalizeURL("/profoundui/proddata/images/grids/column-pointer.gif");Za.style.position="absolute";Za.style.zIndex=d.it+1;d.designMode?Ib.designer.b.appendChild(Za):document.body.appendChild(Za)}O=parseInt(ja.style.top)-10;ja=parseInt(ja.style.left)-4;O+=aa.y;ja+=aa.x;Za.style.display="";Za.style.top=O+"px";Za.style.left=ja+"px";Y=ba;Za.ql=Y;break}}if(Y==null&&Za!=null){Za.style.display=
1182
1182
  "none";Za.ql=null}}else{ba=d.c.e;if(ba!=null){pui.designer.QA(O.x,O.y,ba.designer);O=ba.designer.selection;if(O.su){U+=d.c.hb;V+=d.c.Fa;U=O.Tj(U,pui.vl);V=O.Tj(V,pui.wl,P=="genie"?3:0);U-=d.c.hb;V-=d.c.Fa}}d.Hc(function(ka){ka.style.top=ka.Fa+V+"px";ka.style.left=ka.hb+U+"px"});if(ba!=null)ba.moved=true;d.setScrollBar();O=pui.designer.wj;if(O.b==null){O.b=document.body;O.init()}O.set(d.c.e);O.show()}}function q(){d.dragging=false;if(tb!=null){tb.parentNode.removeChild(tb);Rb.parentNode.removeChild(Rb);
1183
- Rb=tb=null}var O=false;if(Za!=null){Za.style.display="none";if(Za.ql!=null){var V=d.c.e;V!=null&&V.designer.ca.pn("Move Column",V.designer);d.moveColumn(u.col,Za.ql);if(d.ma){var U=d.ga.map(function(ja){if(ja.showing){var za=Ga(ja.columnId);ja.currentColumn=za;ja.savedColumn=za}else ja.currentColumn=-1;return ja}),ba=[];d.cells[0].forEach(function(ja){ba.push(ja.w)});U.Ai=ba;d.ga=U}O=true;Za.ql=null;if(Va){if(!ba){ba=[];for(V=0;V<d.cells[0].length;V++)ba.push(d.cells[0][V].w)}N(ba,"colSequence");
1184
- if(d.ma){if(V=g())if(V=V.hidableColState){V.cols=U;V.headings=d.columnHeadings}else V={cols:U,headings:d.columnHeadings};else V={cols:U,headings:d.columnHeadings};var Z=d.uf().split(",").map(function(ja){return Number(ja)});N(V,"hidableColState");N(Z,"colWidths");d.ga=U}}}}if(d.designMode){V=d.c.e;if(V!=null)if(V.moved){O=V.designer;if(O.$r!=null)d.xx();else{z&&O.Ge.style.display==""&&d.yx();O.nn();d.Xb();P=="dspf"&&pui.ide.refreshRibbon()}}else O||d.c.e.designer.ca.hy();d.ec();O=pui.designer.wj;
1183
+ Rb=tb=null}var O=false;if(Za!=null){Za.style.display="none";if(Za.ql!=null){var V=d.c.e;V!=null&&V.designer.ca.pn("Move Column",V.designer);d.moveColumn(u.col,Za.ql);if(d.ma){var U=d.ga.map(function(ja){if(ja.showing){var za=Ga(ja.columnId);ja.currentColumn=za;ja.savedColumn=za}else ja.currentColumn=-1;return ja}),ba=[];d.cells[0].forEach(function(ja){ba.push(ja.w)});U.Ai=ba;d.ga=U}O=true;Za.ql=null;if(Va){if(!ba){ba=[];for(V=0;V<d.cells[0].length;V++)ba.push(d.cells[0][V].w)}Q(ba,"colSequence");
1184
+ if(d.ma){if(V=g())if(V=V.hidableColState){V.cols=U;V.headings=d.columnHeadings}else V={cols:U,headings:d.columnHeadings};else V={cols:U,headings:d.columnHeadings};var Y=d.uf().split(",").map(function(ja){return Number(ja)});Q(V,"hidableColState");Q(Y,"colWidths");d.ga=U}}}}if(d.designMode){V=d.c.e;if(V!=null)if(V.moved){O=V.designer;if(O.$r!=null)d.xx();else{z&&O.Ge.style.display==""&&d.yx();O.nn();d.Xb();P=="dspf"&&pui.ide.refreshRibbon()}}else O||d.c.e.designer.ca.hy();d.ec();O=pui.designer.wj;
1185
1185
  O!=null&&O.b!=null&&O.hide();designUtils.oA(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=P=="dspf"&&d.c.parentNode.getAttribute("container")=="true",v=pui.vg(k),J=v.x,I=v.y;if(d.designMode){d.c.e.designer.Ko();P=="dspf"&&Ext.menu.MenuMgr.hideAll();d.Le();if(pui.Be(k)){if(d.c.e){d.c.e.designer.Uw.hide();d.c.e.designer.Ny(k)}designUtils.Ee(k);k.stopPropagation&&k.stopPropagation();
1186
1186
  return false}d.c.e!=null&&d.c.e.designer.Mp!=null&&d.c.e.designer.Mp.hide();if(d.Ff){designUtils.Ee(k);return}d.c.e.Wy.left=d.c.style.left;d.c.e.Wy.top=d.c.style.top;designUtils.pA(d.c.e.designer,false,z,false,true,J,I,d.c.e)}else d.Yb!=null&&!pui.Be(k)&&d.Yb.hide();d.dragging=true;d.Hc(function(O){O.hb=pui.Vd(O.style.left);O.Fa=pui.Vd(O.style.top)});var H={x:0,y:0};if(d.designMode){v=pui.Vc(d.c.e.designer.b,true);H.x+=v[0]}else{v=pui.runtimeContainer.getBoundingClientRect();if(typeof window.pageXOffset==
1187
- "number"){H.x=v.left+window.pageXOffset;H.y=v.top+window.pageYOffset}else{H.x=v.left+document.documentElement.scrollLeft;H.y=v.top+document.documentElement.scrollTop}v=d.c.parentNode;var L=pui.getActiveContainer();if(v.Ac==true){H.x+=parseInt(v.style.left);H.y+=parseInt(v.style.top)}else if(L!=null&&L.Ac===true){H.x+=L.offsetLeft;H.y+=L.offsetTop}}if(z){var S=pui.layout.vf(d.c.parentNode);H.x+=S.x;H.y+=S.y}var ca={x:0,y:0};if(d.designMode){if(z)ca=S}else{ca.y=H.y;ca.x=H.x}T(document,"mousemove",m);
1188
- T(document,"mouseup",q);vb(k);if(d.designMode&&d.c.e!=null){d.c.e.moved=false;k=d.c.e.designer;S=k.selection;v="Move Selection";if(S.Sd.length==1)v="Move Grid";if(!(d.h&&u.row==0)){k.ca.start(v);k.ca.lp=true;S.qn(["left","top","parent tab panel","parent tab panel"]);k.ca.lp=false}}}function ea(k,m){for(var q=[],u=k.firstChild;u!=null;){u.style.position=="absolute"&&!u.Wo&&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 aa(k,
1189
- m,q,u){if(d.designMode||u){var z=k[m];if(d.borderWidth!==null&&d.borderWidth<pa){z.style.borderWidth="2px";if(!q)z.style.width=parseInt(z.style.width)+2+"px"}if(!q)z.style.borderTopStyle=fb;if(q)z.style.borderRightStyle=fb;if(q)z.style.cursor="w-resize";if(!q)k[m].style.cursor="n-resize";d.Le();T(z,"mousedown",function(v){function J(U){var ba=pui.vg(U);U=ba.y-S;ba=ba.x-L;if(P=="dspf"&&d.designMode){U=Math.round(U*Ib.Fm);ba=Math.round(ba*Ib.Fm)}na(ba,U,m,q,O,ca);if(!q&&m==k.length-1&&k.length>2&&d.d!=
1187
+ "number"){H.x=v.left+window.pageXOffset;H.y=v.top+window.pageYOffset}else{H.x=v.left+document.documentElement.scrollLeft;H.y=v.top+document.documentElement.scrollTop}v=d.c.parentNode;var M=pui.getActiveContainer();if(v.Ac==true){H.x+=parseInt(v.style.left);H.y+=parseInt(v.style.top)}else if(M!=null&&M.Ac===true){H.x+=M.offsetLeft;H.y+=M.offsetTop}}if(z){var R=pui.layout.vf(d.c.parentNode);H.x+=R.x;H.y+=R.y}var aa={x:0,y:0};if(d.designMode){if(z)aa=R}else{aa.y=H.y;aa.x=H.x}S(document,"mousemove",m);
1188
+ S(document,"mouseup",q);vb(k);if(d.designMode&&d.c.e!=null){d.c.e.moved=false;k=d.c.e.designer;R=k.selection;v="Move Selection";if(R.Sd.length==1)v="Move Grid";if(!(d.h&&u.row==0)){k.ca.start(v);k.ca.lp=true;R.qn(["left","top","parent tab panel","parent tab panel"]);k.ca.lp=false}}}function ea(k,m){for(var q=[],u=k.firstChild;u!=null;){u.style.position=="absolute"&&!u.Wo&&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 Z(k,
1189
+ m,q,u){if(d.designMode||u){var z=k[m];if(d.borderWidth!==null&&d.borderWidth<pa){z.style.borderWidth="2px";if(!q)z.style.width=parseInt(z.style.width)+2+"px"}if(!q)z.style.borderTopStyle=fb;if(q)z.style.borderRightStyle=fb;if(q)z.style.cursor="w-resize";if(!q)k[m].style.cursor="n-resize";d.Le();S(z,"mousedown",function(v){function J(U){var ba=pui.vg(U);U=ba.y-R;ba=ba.x-M;if(P=="dspf"&&d.designMode){U=Math.round(U*Ib.Fm);ba=Math.round(ba*Ib.Fm)}na(ba,U,m,q,O,aa);if(!q&&m==k.length-1&&k.length>2&&d.d!=
1190
1190
  null&&d.d.type=="sliding"){U=U;if(U<-d.la+5)U=-d.la+5;typeof d.d.cl=="function"&&d.d.cl(U)}d.designMode?H.set(d.c.e):d.alignColumnTotals()}function I(){z.dragging=false;d.dragging=false;var U=d.borderWidth;if(U===null||U<pa)U=pa;z.style.borderWidth=U+"px";z.style.borderColor=d.borderColor;if(!q)z.style.borderTopStyle=fb;if(q)z.style.borderRightStyle=fb;if(!q&&m==k.length-1&&(m>=2||d.h&&m==1)){U=parseInt(z.style.top);if(d.cells.length>(d.h?2:1)){d.Aj();if(U>parseInt(k[k.length-1].style.top)+d.la-3){for(var ba=
1191
- false;parseInt(k[k.length-1].style.top)<U;){d.af();ba=true}ba&&d.Bh()}}else d.la=parseInt(k[k.length-1].style.top)-parseInt(k[k.length-2].style.top)}if(d.designMode){d.Xb();d.ec();H.hide()}else{d.alignColumnTotals();if(q&&Va){if(d.ma)U=d.uf().split(",").map(function(ja){return Number(ja)});else{U=Array(d.cells[0].length);for(ba=0;ba<d.cells[0].length;ba++){var Z=d.cells[0][ba];U[Z.w]=Z.clientWidth}}N(U,"colWidths")}}ac(document,"mousemove",J);ac(document,"mouseup",I)}if(d.designMode){var H=pui.designer.wj;
1192
- if(H.b==null){H.b=document.body;H.init()}H.set(d.c.e);if(m==0||m==k.length-1)H.show()}if(d.designMode){d.c.e.designer.Ko();if(d.Ff){designUtils.Ee(v);return}}else d.Yb!=null&&d.Yb.hide();z.dragging=true;d.dragging=true;var L=$c(v),S=ad(v),ca=parseInt(z.style.left),O=parseInt(z.style.top);d.Le();var V=3;if(d.borderWidth>3)V=d.borderWidth;z.style.borderWidth=V+"px";z.style.borderColor="#333333";if(!q)z.style.borderTopStyle="solid";if(q)z.style.borderRightStyle="solid";T(document,"mousemove",J);T(document,
1193
- "mouseup",I);vb(v);if(d.designMode){v=d.c.e.designer;q&&v.ca.start("Size Grid Column");q||v.ca.start("Size Grid Rows");v.selection.qn(["left","top","number of rows","row height","header height","column widths"])}});T(z,"mouseover",function(){if(!d.dragging){var v=3;if(d.borderWidth>3)v=d.borderWidth;z.style.borderWidth=v+"px";z.style.borderColor="#333333";if(!q)z.style.borderTopStyle="solid";if(q)z.style.borderRightStyle="solid"}});T(z,"mouseout",function(){if(!z.dragging){var v=d.borderWidth;if(v===
1191
+ false;parseInt(k[k.length-1].style.top)<U;){d.af();ba=true}ba&&d.Bh()}}else d.la=parseInt(k[k.length-1].style.top)-parseInt(k[k.length-2].style.top)}if(d.designMode){d.Xb();d.ec();H.hide()}else{d.alignColumnTotals();if(q&&Va){if(d.ma)U=d.uf().split(",").map(function(ja){return Number(ja)});else{U=Array(d.cells[0].length);for(ba=0;ba<d.cells[0].length;ba++){var Y=d.cells[0][ba];U[Y.w]=Y.clientWidth}}Q(U,"colWidths")}}ac(document,"mousemove",J);ac(document,"mouseup",I)}if(d.designMode){var H=pui.designer.wj;
1192
+ if(H.b==null){H.b=document.body;H.init()}H.set(d.c.e);if(m==0||m==k.length-1)H.show()}if(d.designMode){d.c.e.designer.Ko();if(d.Ff){designUtils.Ee(v);return}}else d.Yb!=null&&d.Yb.hide();z.dragging=true;d.dragging=true;var M=$c(v),R=ad(v),aa=parseInt(z.style.left),O=parseInt(z.style.top);d.Le();var V=3;if(d.borderWidth>3)V=d.borderWidth;z.style.borderWidth=V+"px";z.style.borderColor="#333333";if(!q)z.style.borderTopStyle="solid";if(q)z.style.borderRightStyle="solid";S(document,"mousemove",J);S(document,
1193
+ "mouseup",I);vb(v);if(d.designMode){v=d.c.e.designer;q&&v.ca.start("Size Grid Column");q||v.ca.start("Size Grid Rows");v.selection.qn(["left","top","number of rows","row height","header height","column widths"])}});S(z,"mouseover",function(){if(!d.dragging){var v=3;if(d.borderWidth>3)v=d.borderWidth;z.style.borderWidth=v+"px";z.style.borderColor="#333333";if(!q)z.style.borderTopStyle="solid";if(q)z.style.borderRightStyle="solid"}});S(z,"mouseout",function(){if(!z.dragging){var v=d.borderWidth;if(v===
1194
1194
  null||v<pa)v=pa;z.style.borderWidth=v+"px";z.style.borderColor=d.borderColor;if(!q)z.style.borderTopStyle=fb;if(q)z.style.borderRightStyle=fb}})}}function na(k,m,q,u,z,v){var J=pui["grid column resize style"]!=="simple";if(d.kd)J=false;var I;I=u?d.n:d.k;var H=I[q];if(u)m=0;u||(k=0);m=z+m;k=v+k;if(u){if(q>0&&k<parseInt(I[q-1].style.left)+5)k=parseInt(I[q-1].style.left)+5;if(q<I.length-1&&k>parseInt(I[q+1].style.left)-5)k=parseInt(I[q+1].style.left)-5}if(!u){if(q>0&&m<parseInt(I[q-1].style.top)+5)m=
1195
- parseInt(I[q-1].style.top)+5;if(q<I.length-1&&m>parseInt(I[q+1].style.top)-6)m=parseInt(I[q+1].style.top)-6}if(!u)H.style.top=m+"px";if(u){if(J&&q!=0){z=k-H.offsetLeft;for(v=q+1;v<I.length;v++){var L=I[v];L.style.left=L.offsetLeft+z+"px"}}H.style.left=k+"px"}if(!u&&(q!=0||!d.h)&&q!=I.length-1){d.la=q<I.length-1?parseInt(I[q+1].style.top)-parseInt(I[q].style.top):parseInt(I[q].style.top)-parseInt(I[q-1].style.top);H=m;for(v=q+1;v<I.length;v++){H+=d.la;I[v].style.top=H+"px"}H=m;m=0;if(d.h)m=1;for(v=
1196
- q-1;v>=m;v-=1){H-=d.la;I[v].style.top=H+"px"}if(d.h)I[0].style.top=parseInt(I[1].style.top)-d.cb+"px"}if(!u&&q==0&&d.h&&I.length>1)d.cb=parseInt(I[1].style.top)-parseInt(I[0].style.top);if(!u&&q==1&&!d.h&&I.length==2)d.la=parseInt(I[q].style.top)-parseInt(I[q-1].style.top);if(q==0&&u){d.c.style.left=k+"px";for(H=0;H<d.k.length;H++)d.k[H].style.left=d.c.style.left}if(u&&(I.length-1==q||q==0))sa();else J&&u&&sa();if(!u){ma();qa()}if(u&&d.h)d.ma?d.fc(d.ts(d.ga)):d.fc();d.Ma();Q();d.setScrollBar()}function ma(){d.c.style.top=
1195
+ parseInt(I[q-1].style.top)+5;if(q<I.length-1&&m>parseInt(I[q+1].style.top)-6)m=parseInt(I[q+1].style.top)-6}if(!u)H.style.top=m+"px";if(u){if(J&&q!=0){z=k-H.offsetLeft;for(v=q+1;v<I.length;v++){var M=I[v];M.style.left=M.offsetLeft+z+"px"}}H.style.left=k+"px"}if(!u&&(q!=0||!d.h)&&q!=I.length-1){d.la=q<I.length-1?parseInt(I[q+1].style.top)-parseInt(I[q].style.top):parseInt(I[q].style.top)-parseInt(I[q-1].style.top);H=m;for(v=q+1;v<I.length;v++){H+=d.la;I[v].style.top=H+"px"}H=m;m=0;if(d.h)m=1;for(v=
1196
+ q-1;v>=m;v-=1){H-=d.la;I[v].style.top=H+"px"}if(d.h)I[0].style.top=parseInt(I[1].style.top)-d.cb+"px"}if(!u&&q==0&&d.h&&I.length>1)d.cb=parseInt(I[1].style.top)-parseInt(I[0].style.top);if(!u&&q==1&&!d.h&&I.length==2)d.la=parseInt(I[q].style.top)-parseInt(I[q-1].style.top);if(q==0&&u){d.c.style.left=k+"px";for(H=0;H<d.k.length;H++)d.k[H].style.left=d.c.style.left}if(u&&(I.length-1==q||q==0))sa();else J&&u&&sa();if(!u){ma();qa()}if(u&&d.h)d.ma?d.fc(d.ts(d.ga)):d.fc();d.Ma();T();d.setScrollBar()}function ma(){d.c.style.top=
1197
1197
  d.k[0].style.top;for(var k=0;k<d.n.length;k++)d.n[k].style.top=d.c.style.top}function sa(){var k=0;if(d.n.length>0){k=d.borderWidth;if(k===null||k<pa&&d.designMode)k=pa;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=k+"px";d.c.style.width=k+"px";if(Va&&d.ea()&&d.dataProps["load all rows"]=="true"&&jb.style.display=="block"){d.mask();d.Jb()}}function qa(){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<
1198
- d.n.length;m++)d.n[m].style.height=k+"px";d.c.style.height=k+"px"}function Ka(k,m){var q=document.createElement("div");d.c.appendChild(q);if(!pui.pa&&d.Er!="default")q.style.cursor=d.Er;if(k>0||!d.h)q.style.kz="rgba(0,0,0,0)";var u=k==0&&d.h,z=k%2==1;if(d.h)z=!z;if(u)if(m<d.columnHeadings.length)q.innerHTML="<div"+(d.Oc?' class="qf"':"")+' style="'+e()+'">'+d.columnHeadings[m]+"</div>";d.designMode&&gb(q,u,z,m);q.onmouseover=function(v){if(!d.dragging){d.h||M("onrowmouseover",k+1,null,v,m);d.h&&k!=
1199
- 0&&M("onrowmouseover",k,null,v,m);if(d.Oo)if(!(pui.is_touch&&!pui.is_mouse_capable&&!d.designMode||pui.pa))if(!(k==0&&d.h)){v=d.cells[k];var J=fe(d,k);d.$c(k,true,J);if(d.qu&&!d.expanded&&(k>0||!d.h)){v=v[0];if(d.Fb==null){d.Fb=document.createElement("img");d.Fb.setAttribute("isZoomIcon","true");d.Fb.src=pui.normalizeURL("/profoundui/proddata/images/icons/zoom_in.png");d.Fb.style.position="absolute";d.Fb.style.top="6px";d.Fb.style.left="3px";if(!pui.pa)d.Fb.style.cursor="pointer"}if(d.Fb.parentNode!=
1200
- v){d.Fb.parentNode!=null&&d.Fb.parentNode.removeChild(d.Fb);v.appendChild(d.Fb)}d.Fb.style.display="";d.Fb.onclick=function(I){d.rowZoom(d.cells[k]);vb(I)}}}}};q.onmouseout=function(v){d.h||M("onrowmouseout",k+1,null,v,m);d.h&&k!=0&&M("onrowmouseout",k,null,v,m);if(!(k==0&&d.h)){v=fe(d,k);d.$c(k,false,v)}};q.onmousedown=function(v){for(var J=document.getElementsByClassName("qf"),I=[],H=0;H<J.length;H++){var L=J[H];L.tagName=="INPUT"&&I.push(L)}for(J=0;J<I.length;J++)I[J].blur();if(pui.Be(v))if(!d.designMode){I=
1201
- function(U){if(!U)U=window.event;U.preventDefault&&U.preventDefault();U.stopPropagation&&U.stopPropagation();U.cancelBubble=true;U.returnValue=false;document.body.oncontextmenu=null;return false};if(d.h&&k==0){if(d.Yb==null){d.Yb=new pui.Ou;d.Yb.grid=d;d.Yb.init()}d.Yb.Rc=q;d.Yb.clickEvent=v?v:window.event;d.Yb.show();document.body.oncontextmenu=I}else{var S;if(d.Fd)S=Bb(d.Fd);if(S!=null){S.Sj=true;document.body.oncontextmenu=I;q.onclick(v);if(v.Nw&&v.Nw()||v.cancelBubble){S.Sj=false;d.Pi()}else{I=
1202
- pui.Bo(v);J=pui.us(v);var ca={x:0,y:0};L=pui.Vc(pui.runtimeContainer);if(P=="genie")L=pui.Vc(pui.getActiveContainer());H=S.parentNode;if(H!=null&&H.tagName=="FORM")H=H.parentNode;if(H!=null){if(P=="dspf"&&H.getAttribute("container")=="true"){var O=pui.Vc(H);ca.x=O[0];ca.y=O[1]}else if(H.Ac){ca.x=H.offsetLeft;ca.y=H.offsetTop}ca.x+=L[0];ca.y+=L[1];I-=ca.x;J-=ca.y}if(pui.is_touch&&!pui.is_mouse_capable){I-=S.clientWidth/2;S.onselectstart=ya(false);if(typeof S.style.MozUserSelect!="undefined")S.style.MozUserSelect=
1203
- "none";if(typeof S.style.webkitUserSelect!="undefined")S.style.webkitUserSelect="none"}S.style.zIndex=d.Or;if(typeof S.onoptiondisplay=="function"){ca=k;d.h||(ca+=1);if(d.j!=null&&!isNaN(d.j)&&d.j>0){ca=ca;ca+=d.j-1;O=ca;var V=d.dataArray;if(d.isFiltered())V=d.X;if(V[ca-1]!=null&&V[ca-1].o!=null)ca=V[ca-1].o;S.onoptiondisplay(ca,ca,O,m,d);S.v.z()}}S.style.visibility="";S.style.display="";O=document.documentElement;ca=document.documentElement.clientWidth+((window.pageXOffset||O.scrollLeft)-(O.clientLeft||
1204
- 0))-S.clientWidth-10-L[0];L=document.documentElement.clientHeight+((window.pageYOffset||O.scrollTop)-(O.clientTop||0))-S.clientHeight-10-L[1];if(H!=null&&P=="dspf"&&H.getAttribute("container")=="true"){ca=H.offsetWidth-S.clientWidth;L=H.offsetHeight-S.clientHeight}if(I>ca)I=ca;if(J>L)J=L;if(I<0)I=0;if(J<0)J=0;S.style.left=I+"px";S.style.top=J+"px";vb(v);v!=null&&v.stopPropagation!=null&&v.stopPropagation();setTimeout(function(){S.Sj=false},250);return false}}}}};pui.az(q,function(v){v.button=3;q.onmousedown(v)});
1205
- q.onclick=function(v){var J=ub(v);if(!J.ew){d.Pp=k;d.Qn=m;d["row clicked"]=d.Pp;d["column clicked"]=d.Qn;var I=pui.Be(v);if(J.tagName!="INPUT"&&J.tagName!="SELECT"&&J.tagName!="OPTION"&&J.tagName!="BUTTON"){d.h||M("onrowclick",k+1,I,v,m);d.h&&k!=0&&M("onrowclick",k,I,v,m)}if(!d.designMode){d.c.Yt=false;d.gm(k);var H=(J.tagName=="INPUT"||J.tagName=="SELECT"||J.tagName=="BUTTON")&&!J.disabled&&!J.readOnly,L=d.h?1:0;if(d.Wd&&!H&&(k>0||!d.h))if(d.j!=null&&!isNaN(d.j)&&d.j>0){var S=d.k.length-1;if(d.singleSelection||
1206
- d.Ei&&!v.ctrlKey&&!v.shiftKey&&!v.metaKey){var ca=k+d.j-(d.h?1:0);for(H=0;H<d.dataArray.length;H++){var O=H-d.j+1+L,V=ca<=d.dataArray.length&&d.dataArray[ca-1].selected;if(d.isFiltered())V=ca<=d.X.length&&d.X[ca-1].selected;if(!I||!V)if(!v.ctrlKey&&!v.metaKey||O!=k)d.dataArray[H].selected==true&&ga(d.dataArray[H],false,H);O>=L&&O<S&&d.Mb==0&&d.$c(O)}if(d.isFiltered()||d.Mb>0)ge(d)}ca=d.isFiltered()?d.X:d.dataArray;var U=k+d.j-1+(d.h?0:1);d.Mb>0&&d.j>0&&he(d,null,k,function(ja){U=ja+1});if(d.Ei&&v.shiftKey){if(d.Mh==
1207
- null)d.Mh=U;I=d.Mh;var ba=U;if(I>ba){H=I;I=ba;ba=H}for(H=0;H<ca.length;H++){O=H-d.j+1;if(H+1>=I&&H+1<=ba)ca[H].selected!=true&&ga(ca[H],true,H);else ca[H].selected==true&&ga(ca[H],false,H);O>=L&&O<S&&d.Mb==0&&d.$c(O)}d.Mb>0&&ge(d)}else if(ca[U-1]!=null&&ca[U-1].length>0){if(ca[U-1].selected==true&&!I){ga(ca[U-1],false,U-1,true);if(d.c.lf){d.c.lf=0;d.c.Yt=true}}else ga(ca[U-1],true,U-1,true);if(d.Mb>0)ba=fe(d,k);d.$c(k,true,ba)}d.Mh=U}if(d.C.length>0&&d.C[0].id=="_msgsfltext"){L=d.cells[k][0];var Z;
1208
- if(L!=null)Z=L.firstChild;Z!=null&&J!=Z&&Z.onclick!=null&&typeof Z.onclick=="function"&&Z.onclick()}L=J;if((H=J.parentNode)&&H.row&&H.col)L=H;if(L.row!=null&&L.col!=null&&L.tagName=="DIV"&&L.parentNode.grid==d){Z=String(L.col);for(H=0;H<d.C.length;H++){S=d.C[H];if(S.column==Z&&S["cursor row"]!=null&&S["cursor column"]!=null){O=d.j+L.row;if(d.h)O-=1;I=false;if(S&&S.domEls)for(ca=0;ca<S.domEls.length;ca++){ba=S.domEls[ca];if(ba!=null&&ba.Vb==O-1){pui.Td(v,ba);I=true}}if(I)break}}}if(typeof pui["grid text selection"]==
1209
- "undefined"||pui["grid text selection"]==false)if(J.tagName!="INPUT"&&J.tagName!="SELECT"&&J.tagName!="TEXTAREA"&&J.tagName!="BUTTON"&&getSelection().toString()==""){L=d.cells[k][0];Pa(L)}if(d.xg&&d.Uf!==null&&U!==undefined){v=Bb(d.c.id+d.wm+"."+U);v!==null&&v.focus()}}}};q.ondblclick=function(v){if(d.designMode){if(d.h&&k==0){var J=d.c.e;if(!pui.p(J.properties["column headings"])&&!pui.Kb(J.properties["column headings"])){J.designer.Cf.op=function(I){for(;I.indexOf("\n")!=-1;)I=I.replace("\n","<br/>");
1210
- for(;I.indexOf("\r")!=-1;)I=I.replace("\r","");if(q.firstChild!=null)q.firstChild.innerHTML=I;else q.innerHTML=I;I="";for(var H=0;H<d.cells[0].length;H++){if(H!=0)I+=",";var L=d.cells[0][H],S=Oc(L);if(L.firstChild!=null&&L.firstChild.tagName=="DIV")S=L.firstChild.innerHTML;I+=S}J.designer.ca.add(J,"column headings");J.properties["column headings"]=I;d.setProperty("column headings",I);J.pb["column headings"]=true;J.hd=true;J.designer.jd[J.designer.Na.ub]=true;J.designer.ob.Kh("column headings")};J.designer.Cf.kA=
1211
- function(I,H,L){for(var S="",ca=0;ca<d.cells[0].length;ca++){var O=d.cells[0][ca].style[H];if(O==null)O="";if(I.indexOf("color")>=0)O=pui.mt(O);if(d.cells[0][ca]==q)O=L;if(ca!=0)S+=",";S+=O}J.properties[I]=S;d.setProperty(I,S);J.pb[I]=L!="";J.hd=true;J.designer.jd[J.designer.Na.ub]=true;J.designer.ob.Kh(I)};J.designer.Cf.show(J,q,"grid")}}}else{d.h||M("onrowdblclick",k+1,null,v,m);d.h&&k!=0&&M("onrowdblclick",k,null,v,m)}};d.cells[k]||(d.cells[k]=[]);q.row=k;q.col=m;d.cells[k][m]=q;d.designMode&&
1198
+ d.n.length;m++)d.n[m].style.height=k+"px";d.c.style.height=k+"px"}function Ka(k,m){var q=document.createElement("div");d.c.appendChild(q);if(!pui.pa&&d.Er!="default")q.style.cursor=d.Er;if(k>0||!d.h)q.style.kz="rgba(0,0,0,0)";var u=k==0&&d.h,z=k%2==1;if(d.h)z=!z;if(u)if(m<d.columnHeadings.length)q.innerHTML="<div"+(d.Oc?' class="qf"':"")+' style="'+e()+'">'+d.columnHeadings[m]+"</div>";d.designMode&&gb(q,u,z,m);q.onmouseover=function(v){if(!d.dragging){d.h||N("onrowmouseover",k+1,null,v,m);d.h&&k!=
1199
+ 0&&N("onrowmouseover",k,null,v,m);if(d.Oo)if(!(pui.is_touch&&!pui.is_mouse_capable&&!d.designMode||pui.pa))if(!(k==0&&d.h)){v=d.cells[k];var J=fe(d,k);d.$c(k,true,J);if(d.qu&&!d.expanded&&(k>0||!d.h)){v=v[0];if(d.Fb==null){d.Fb=document.createElement("img");d.Fb.setAttribute("isZoomIcon","true");d.Fb.src=pui.normalizeURL("/profoundui/proddata/images/icons/zoom_in.png");d.Fb.style.position="absolute";d.Fb.style.top="6px";d.Fb.style.left="3px";if(!pui.pa)d.Fb.style.cursor="pointer"}if(d.Fb.parentNode!=
1200
+ v){d.Fb.parentNode!=null&&d.Fb.parentNode.removeChild(d.Fb);v.appendChild(d.Fb)}d.Fb.style.display="";d.Fb.onclick=function(I){d.rowZoom(d.cells[k]);vb(I)}}}}};q.onmouseout=function(v){d.h||N("onrowmouseout",k+1,null,v,m);d.h&&k!=0&&N("onrowmouseout",k,null,v,m);if(!(k==0&&d.h)){v=fe(d,k);d.$c(k,false,v)}};q.onmousedown=function(v){for(var J=document.getElementsByClassName("qf"),I=[],H=0;H<J.length;H++){var M=J[H];M.tagName=="INPUT"&&I.push(M)}for(J=0;J<I.length;J++)I[J].blur();if(pui.Be(v))if(!d.designMode){I=
1201
+ function(U){if(!U)U=window.event;U.preventDefault&&U.preventDefault();U.stopPropagation&&U.stopPropagation();U.cancelBubble=true;U.returnValue=false;document.body.oncontextmenu=null;return false};if(d.h&&k==0){if(d.Yb==null){d.Yb=new pui.Ou;d.Yb.grid=d;d.Yb.init()}d.Yb.Rc=q;d.Yb.clickEvent=v?v:window.event;d.Yb.show();document.body.oncontextmenu=I}else{var R;if(d.Ed)R=Bb(d.Ed);if(R!=null){R.Sj=true;document.body.oncontextmenu=I;q.onclick(v);if(v.Nw&&v.Nw()||v.cancelBubble){R.Sj=false;d.Pi()}else{I=
1202
+ pui.Bo(v);J=pui.us(v);var aa={x:0,y:0};M=pui.Vc(pui.runtimeContainer);if(P=="genie")M=pui.Vc(pui.getActiveContainer());H=R.parentNode;if(H!=null&&H.tagName=="FORM")H=H.parentNode;if(H!=null){if(P=="dspf"&&H.getAttribute("container")=="true"){var O=pui.Vc(H);aa.x=O[0];aa.y=O[1]}else if(H.Ac){aa.x=H.offsetLeft;aa.y=H.offsetTop}aa.x+=M[0];aa.y+=M[1];I-=aa.x;J-=aa.y}if(pui.is_touch&&!pui.is_mouse_capable){I-=R.clientWidth/2;R.onselectstart=ya(false);if(typeof R.style.MozUserSelect!="undefined")R.style.MozUserSelect=
1203
+ "none";if(typeof R.style.webkitUserSelect!="undefined")R.style.webkitUserSelect="none"}R.style.zIndex=d.Or;if(typeof R.onoptiondisplay=="function"){aa=k;d.h||(aa+=1);if(d.j!=null&&!isNaN(d.j)&&d.j>0){aa=aa;aa+=d.j-1;O=aa;var V=d.dataArray;if(d.isFiltered())V=d.X;if(V[aa-1]!=null&&V[aa-1].o!=null)aa=V[aa-1].o;R.onoptiondisplay(aa,aa,O,m,d);R.v.z()}}R.style.visibility="";R.style.display="";O=document.documentElement;aa=document.documentElement.clientWidth+((window.pageXOffset||O.scrollLeft)-(O.clientLeft||
1204
+ 0))-R.clientWidth-10-M[0];M=document.documentElement.clientHeight+((window.pageYOffset||O.scrollTop)-(O.clientTop||0))-R.clientHeight-10-M[1];if(H!=null&&P=="dspf"&&H.getAttribute("container")=="true"){aa=H.offsetWidth-R.clientWidth;M=H.offsetHeight-R.clientHeight}if(I>aa)I=aa;if(J>M)J=M;if(I<0)I=0;if(J<0)J=0;R.style.left=I+"px";R.style.top=J+"px";vb(v);v!=null&&v.stopPropagation!=null&&v.stopPropagation();setTimeout(function(){R.Sj=false},250);return false}}}}};pui.az(q,function(v){v.button=3;q.onmousedown(v)});
1205
+ q.onclick=function(v){var J=ub(v);if(!J.ew){d.Pp=k;d.Qn=m;d["row clicked"]=d.Pp;d["column clicked"]=d.Qn;var I=pui.Be(v);if(J.tagName!="INPUT"&&J.tagName!="SELECT"&&J.tagName!="OPTION"&&J.tagName!="BUTTON"){d.h||N("onrowclick",k+1,I,v,m);d.h&&k!=0&&N("onrowclick",k,I,v,m)}if(!d.designMode){d.c.Yt=false;d.gm(k);var H=(J.tagName=="INPUT"||J.tagName=="SELECT"||J.tagName=="BUTTON")&&!J.disabled&&!J.readOnly,M=d.h?1:0;if(d.Wd&&!H&&(k>0||!d.h))if(d.j!=null&&!isNaN(d.j)&&d.j>0){var R=d.k.length-1;if(d.singleSelection||
1206
+ d.Ei&&!v.ctrlKey&&!v.shiftKey&&!v.metaKey){var aa=k+d.j-(d.h?1:0);for(H=0;H<d.dataArray.length;H++){var O=H-d.j+1+M,V=aa<=d.dataArray.length&&d.dataArray[aa-1].selected;if(d.isFiltered())V=aa<=d.X.length&&d.X[aa-1].selected;if(!I||!V)if(!v.ctrlKey&&!v.metaKey||O!=k)d.dataArray[H].selected==true&&ga(d.dataArray[H],false,H);O>=M&&O<R&&d.Mb==0&&d.$c(O)}if(d.isFiltered()||d.Mb>0)ge(d)}aa=d.isFiltered()?d.X:d.dataArray;var U=k+d.j-1+(d.h?0:1);d.Mb>0&&d.j>0&&he(d,null,k,function(ja){U=ja+1});if(d.Ei&&v.shiftKey){if(d.Mh==
1207
+ null)d.Mh=U;I=d.Mh;var ba=U;if(I>ba){H=I;I=ba;ba=H}for(H=0;H<aa.length;H++){O=H-d.j+1;if(H+1>=I&&H+1<=ba)aa[H].selected!=true&&ga(aa[H],true,H);else aa[H].selected==true&&ga(aa[H],false,H);O>=M&&O<R&&d.Mb==0&&d.$c(O)}d.Mb>0&&ge(d)}else if(aa[U-1]!=null&&aa[U-1].length>0){if(aa[U-1].selected==true&&!I){ga(aa[U-1],false,U-1,true);if(d.c.lf){d.c.lf=0;d.c.Yt=true}}else ga(aa[U-1],true,U-1,true);if(d.Mb>0)ba=fe(d,k);d.$c(k,true,ba)}d.Mh=U}if(d.C.length>0&&d.C[0].id=="_msgsfltext"){M=d.cells[k][0];var Y;
1208
+ if(M!=null)Y=M.firstChild;Y!=null&&J!=Y&&Y.onclick!=null&&typeof Y.onclick=="function"&&Y.onclick()}M=J;if((H=J.parentNode)&&H.row&&H.col)M=H;if(M.row!=null&&M.col!=null&&M.tagName=="DIV"&&M.parentNode.grid==d){Y=String(M.col);for(H=0;H<d.C.length;H++){R=d.C[H];if(R.column==Y&&R["cursor row"]!=null&&R["cursor column"]!=null){O=d.j+M.row;if(d.h)O-=1;I=false;if(R&&R.domEls)for(aa=0;aa<R.domEls.length;aa++){ba=R.domEls[aa];if(ba!=null&&ba.Vb==O-1){pui.Td(v,ba);I=true}}if(I)break}}}if(typeof pui["grid text selection"]==
1209
+ "undefined"||pui["grid text selection"]==false)if(J.tagName!="INPUT"&&J.tagName!="SELECT"&&J.tagName!="TEXTAREA"&&J.tagName!="BUTTON"&&getSelection().toString()==""){M=d.cells[k][0];Pa(M)}if(d.xg&&d.Uf!==null&&U!==undefined){v=Bb(d.c.id+d.wm+"."+U);v!==null&&v.focus()}}}};q.ondblclick=function(v){if(d.designMode){if(d.h&&k==0){var J=d.c.e;if(!pui.p(J.properties["column headings"])&&!pui.Kb(J.properties["column headings"])){J.designer.Cf.op=function(I){for(;I.indexOf("\n")!=-1;)I=I.replace("\n","<br/>");
1210
+ for(;I.indexOf("\r")!=-1;)I=I.replace("\r","");if(q.firstChild!=null)q.firstChild.innerHTML=I;else q.innerHTML=I;I="";for(var H=0;H<d.cells[0].length;H++){if(H!=0)I+=",";var M=d.cells[0][H],R=Oc(M);if(M.firstChild!=null&&M.firstChild.tagName=="DIV")R=M.firstChild.innerHTML;I+=R}J.designer.ca.add(J,"column headings");J.properties["column headings"]=I;d.setProperty("column headings",I);J.pb["column headings"]=true;J.hd=true;J.designer.jd[J.designer.Na.ub]=true;J.designer.ob.Kh("column headings")};J.designer.Cf.kA=
1211
+ function(I,H,M){for(var R="",aa=0;aa<d.cells[0].length;aa++){var O=d.cells[0][aa].style[H];if(O==null)O="";if(I.indexOf("color")>=0)O=pui.mt(O);if(d.cells[0][aa]==q)O=M;if(aa!=0)R+=",";R+=O}J.properties[I]=R;d.setProperty(I,R);J.pb[I]=M!="";J.hd=true;J.designer.jd[J.designer.Na.ub]=true;J.designer.ob.Kh(I)};J.designer.Cf.show(J,q,"grid")}}}else{d.h||N("onrowdblclick",k+1,null,v,m);d.h&&k!=0&&N("onrowdblclick",k,null,v,m)}};d.cells[k]||(d.cells[k]=[]);q.row=k;q.col=m;d.cells[k][m]=q;d.designMode&&
1212
1212
  ta(k,m);return q}function ga(k,m,q,u){pui.modified=true;k.selected=m;if(d.Cb!=null){if(k.selection==null){if(u===true)return;q=k.o?k.o:k.En?k.En+1:q+1;k.selection={type:"grid selection",o:q,N:d.Cb};q=pui.Ib(d.Xa)+"."+pui.L(d.Cb.fieldName)+"."+q;if(pui.O[q]==null){pui.O[q]=[];pui.O[q].push(k.selection)}}k.selection.modified=true;k.selection.value=m?d.Nh:d.Cb.dataType=="indicator"?"0":" ";if(k.selection.S)k.selection.S=k.selection.value}}function ua(k){for(var m=0;m<k.length;m++)if(Pa(k[m]))return;
1213
1213
  document.activeElement==document.body&&pui.getActiveContainer().focus()}function Pa(k){if(k==null)return false;k=k.firstChild;for(var m=false;k!=null;){if(k.tagName=="INPUT"||k.tagName=="TEXTAREA"||k.tagName=="SELECT"||k.comboBoxWidget!=null||k.l!=null)if(k.style.visibility!="hidden"&&k.style.display!="none"&&k.clientWidth>0){m=true;break}k=k.nextSibling}if(!m)return false;if(k.comboBoxWidget!=null)k=k.comboBoxWidget.getBox();if(k.l!=null)k=k.l.getBox();m=k.tagName;if(m!="INPUT"&&m!="TEXTAREA"&&m!=
1214
1214
  "SELECT")return false;if(m=="SELECT"&&pui.is_firefox)return false;try{k.focus();if(m=="INPUT"||m=="TEXTAREA"){if(k.createTextRange!=null){k.select!=null&&k.select();var q=k.createTextRange();if(q!=null&&q.collapse!=null&&q.select!=null){q.collapse();q.select()}}pui["highlight on focus"]&&k.select()}}catch(u){}return true}function ra(k,m,q,u){var z=u,v=d.I[z];if(v==null)v="";if(v==""&&z.substr(0,7)=="header "){z=z.substr(7);v=d.I[z];if(v==null)v=""}if(!(pui.p(v)||pui.Kb(v))){var J=v.split(",");if(J.length>
@@ -1216,12 +1216,12 @@ document.activeElement==document.body&&pui.getActiveContainer().focus()}function
1216
1216
  ra(k,u,"letterSpacing","letter spacing");ra(k,u,"textAlign",m?"header text align":"text align");ra(k,u,"textDecoration","text decoration");ra(k,u,"textTransform","text transform");ra(k,u,"wordSpacing","word spacing");var z=d.designMode&&d.I["row font color"]!=null&&d.I["row font color"]!=""&&!pui.p(d.I["row font color"]),v=d.designMode&&d.I["row background"]!=null&&d.I["row background"]!=""&&!pui.p(d.I["row background"]);ra(k,u,"color",m?"header font color":z?"row font color":q?"even row font color":
1217
1217
  "odd row font color");ra(k,u,"backgroundColor",m?"header background":v?"row background":q?"even row background":"odd row background");u="";if(m){m=d.I["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 ta(k,m){var q=d.cells[k],
1218
1218
  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.Mf||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 db(k,m,
1219
- q,u,z,v,J){if(m==null)m=99;if(q==null)q=1;var I=null;if(pui.secLevel>0){I=pui.ld(d.dataProps);d.Lc="";if(d.isFiltered()&&d.dataProps["load all rows"]!="true")for(var H=d.cells[0],L=0,S=0;S<H.length;S++){var ca=H[S];if(ca.w>=0&&ca.sa!=null){var O=cb(ca.w);d.Lc+="&fltrcol"+String(L)+"="+(ca.w+1+O);d.Lc+=d.Dt(String(L),ca.sa);I+=d.Lc;L++}}if(rc!=null&&sc!=null){I+="&findcol="+rc;I+="&findval="+encodeURIComponent(sc)}if(d.dataProps["data url"]!=null&&d.dataProps["data url"]!=""&&d.Db!=null)I+="&order="+
1219
+ q,u,z,v,J){if(m==null)m=99;if(q==null)q=1;var I=null;if(pui.secLevel>0){I=pui.ld(d.dataProps);d.Lc="";if(d.isFiltered()&&d.dataProps["load all rows"]!="true")for(var H=d.cells[0],M=0,R=0;R<H.length;R++){var aa=H[R];if(aa.w>=0&&aa.sa!=null){var O=cb(aa.w);d.Lc+="&fltrcol"+String(M)+"="+(aa.w+1+O);d.Lc+=d.Dt(String(M),aa.sa);I+=d.Lc;M++}}if(rc!=null&&sc!=null){I+="&findcol="+rc;I+="&findval="+encodeURIComponent(sc)}if(d.dataProps["data url"]!=null&&d.dataProps["data url"]!=""&&d.Db!=null)I+="&order="+
1220
1220
  d.Db}if(J){if(pui.Pa==null)pui.Pa={};if(pui.Pa[q]==null)pui.Pa[q]={};if(pui.Pa[q].sql===k&&pui.Pa[q].Ux===I&&pui.Pa[q].nl===m&&pui.Pa[q].jw===v){d.unMask();if(u!=null){u(pui.Pa[q].results,pui.Pa[q].totalRecs,pui.Pa[q].matchRow);return}else return pui.Pa.results}}var V=null;H=Wb("PUI0009102.PGM");if(v)H=pui.df(v);H=new pui.Ajax(H);H.method="post";H.async=true;if(u==null)H.async=false;if(pui.ba)H.postData="AUTH="+pui.ba;else{H.postData="AUTH="+pui.appJob.auth;if(typeof pui.vId!=="undefined")H.postData+=
1221
- "&VID="+pui.vId}if(pui.secLevel>0){H.postData+="&q="+encodeURIComponent(pui.Wc(d.c));L=d.dataProps["order by"];if(d.Db!=null)L=d.Db;if(L&&L!="")H.postData+="&order="+L;else if(Fb()=="mssql")H.postData+="&order=(select null)";if(I!="")H.postData+="&"+I}else H.postData+="&q="+pui.yb.nf(k);H.postData+="&limit="+m+"&start="+q;if(z!=null&&z==true)H.postData+="&getTotal=1";if(pui["read db driven data as ebcdic"]!==true)H.postData+="&UTF8=Y";z=d.dataProps["allow any select statement"];if(z!=null&&(z=="true"||
1222
- z==true))H.postData+="&FetchCounter=Y";if(pui.isCloud)H.postData+="&workspace_id="+pui.cloud.ws.id;H.onready=function(U){d.dataProps["load fields into widgets"]!="true"&&d.unMask();var ba,Z=false;if(d.dataProps["data transform function"]&&U.xf()==200)try{ba=eval("window."+d.dataProps["data transform function"])(U.yc())}catch(ja){pui.dp(ja)}else ba=Kb(U,"Run SQL SELECT Query");if(ba){if(J){if(pui.Pa[q]==null)pui.Pa[q]={};pui.Pa[q].sql=k;pui.Pa[q].nl=m;pui.Pa[q].start=q;pui.Pa[q].jw=v;pui.Pa[q].results=
1223
- ba.results;pui.Pa[q].totalRecs=ba.totalRecs;pui.Pa[q].Ux=I;pui.Pa[q].matchRow=ba.matchRow}if(u!=null)u(ba.results,ba.totalRecs,ba.matchRow);else V=ba.results;Z=true}kd&&pui.pf(kd,Z,d.c.id);d.sc=false};d.sc=true;H.send();if(u==null)return V}function Ga(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].w==k){m=d.cells[0][q].col;break}return m}function yb(k){for(var m=[],q=0;q<d.aa.length;q++){var u=k[d.aa[q]];u||(u="");m.push(u)}return m}
1224
- function Xa(k,m){function q(S){var ca=String(S.w+1);if(ca.length>3)ca="000";else for(;ca.length<3;)ca="0"+ca;S=S.sa.substring(0,d.rf);if(S.length<d.rf)S+=" ".repeat(d.rf-S.length);z+=ca;v+=S;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 I=0;I<u.length&&J<d.se;I++){var H=u[I].w,L=u[I].sa;typeof H=="number"&&H>=0&&H!=k.w&&typeof L=="string"&&L.length>0&&q(u[I])}rb(z,v)}}function rb(k,m){if(k.length<
1221
+ "&VID="+pui.vId}if(pui.secLevel>0){H.postData+="&q="+encodeURIComponent(pui.Wc(d.c));M=d.dataProps["order by"];if(d.Db!=null)M=d.Db;if(M&&M!="")H.postData+="&order="+M;else if(Fb()=="mssql")H.postData+="&order=(select null)";if(I!="")H.postData+="&"+I}else H.postData+="&q="+pui.yb.nf(k);H.postData+="&limit="+m+"&start="+q;if(z!=null&&z==true)H.postData+="&getTotal=1";if(pui["read db driven data as ebcdic"]!==true)H.postData+="&UTF8=Y";z=d.dataProps["allow any select statement"];if(z!=null&&(z=="true"||
1222
+ z==true))H.postData+="&FetchCounter=Y";if(pui.isCloud)H.postData+="&workspace_id="+pui.cloud.ws.id;H.onready=function(U){d.dataProps["load fields into widgets"]!="true"&&d.unMask();var ba,Y=false;if(d.dataProps["data transform function"]&&U.xf()==200)try{ba=eval("window."+d.dataProps["data transform function"])(U.yc())}catch(ja){pui.dp(ja)}else ba=Kb(U,"Run SQL SELECT Query");if(ba){if(J){if(pui.Pa[q]==null)pui.Pa[q]={};pui.Pa[q].sql=k;pui.Pa[q].nl=m;pui.Pa[q].start=q;pui.Pa[q].jw=v;pui.Pa[q].results=
1223
+ ba.results;pui.Pa[q].totalRecs=ba.totalRecs;pui.Pa[q].Ux=I;pui.Pa[q].matchRow=ba.matchRow}if(u!=null)u(ba.results,ba.totalRecs,ba.matchRow);else V=ba.results;Y=true}kd&&pui.pf(kd,Y,d.c.id);d.sc=false};d.sc=true;H.send();if(u==null)return V}function Ga(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].w==k){m=d.cells[0][q].col;break}return m}function yb(k){for(var m=[],q=0;q<d.aa.length;q++){var u=k[d.aa[q]];u||(u="");m.push(u)}return m}
1224
+ function Xa(k,m){function q(R){var aa=String(R.w+1);if(aa.length>3)aa="000";else for(;aa.length<3;)aa="0"+aa;R=R.sa.substring(0,d.rf);if(R.length<d.rf)R+=" ".repeat(d.rf-R.length);z+=aa;v+=R;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 I=0;I<u.length&&J<d.se;I++){var H=u[I].w,M=u[I].sa;typeof H=="number"&&H>=0&&H!=k.w&&typeof M=="string"&&M.length>0&&q(u[I])}rb(z,v)}}function rb(k,m){if(k.length<
1225
1225
  3*d.se)k+=" ".repeat(3*d.se-k.length);d.rg=k+m;pui.Tk=d;pui.cc();pui.Tk=null}function qb(k){if(k==null||k=="")if(d.rg!=null&&d.rg!="")k=d.rg;else return;var m=d.cells[0];d.rg=k;for(var q=0;q<d.se;q++){var u=k.substring(q*3,q*3+3);u=parseInt(u,10);var z=q*d.rf+3*d.se;z=k.substring(z,z+d.rf);z=Pb(z);if(!isNaN(u)&&u>0&&z!=""){u-=1;for(var v=0;v<m.length;v++)if(m[v].w==u){m[v].sa=z;d.im(m[v]);break}}else break}}function sb(){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])}
1226
1226
  function Fb(){var k=pui.getDatabaseConnections();if(k)for(var m=Lb(d.dataProps["database connection"]||""),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}function cb(k){var m=0;if(d.dataProps["custom sql"]!=null&&d.dataProps["custom sql"]!=""){userDefinedDataFields=pb(d.C);if(userDefinedDataFields.length==0)return m;if(d.C[k]&&d.C[k].value&&d.C[k].value.fieldName&&d.saveFieldNames){var q=d.saveFieldNames.indexOf(d.C[k].value.fieldName);
1227
1227
  if(q!=-1)m=q-k}}return m}function pb(k){for(var m=[],q=0;q<k.length;q++){var u=k[q];for(kb in u)if(kb.substr(0,17)==="user defined data"){var z=u[kb].fieldName;z!=null&&m.push(z.toUpperCase())}}return m}pui.$h.call(this);if(pui.designer.Mu!=null){this.pg=new pui.designer.Mu;this.pg.Gw=true}else{this.pg={};this.pg.Gw=true;this.pg.oz=oa();this.pg.zA=oa();this.pg.wA=oa();this.pg.yA=oa()}this.zi=true;this.C=[];this.wa=false;this.ref={};this.Xa="";this.n=[];this.k=[];this.c=null;this.Xc="";this.cells=
@@ -1229,36 +1229,36 @@ if(q!=-1)m=q-k}}return m}function pb(k){for(var m=[],q=0;q<k.length;q++){var u=k
1229
1229
  "Verdana";this.I["font size"]="13px";this.I["text align"]="center";this.I["header font color"]="#ffffff";this.I["header background"]="#6699ff";this.I["header image"]="";this.I["header font weight"]="bold";this.I["header font style"]="normal";this.I["row font color"]="";this.I["row background"]="";this.I["odd row font color"]="#555555";if(P=="genie")this.I["odd row font color"]="";this.I["odd row background"]="#efefef";this.I["even row font color"]="#555555";if(P=="genie")this.I["even row font color"]=
1230
1230
  "";this.I["even row background"]="#fcfcfc";this.I["hover font color"]="#555555";this.I["hover background"]="#dfe8f6";this.I["hover image"]="";this.I["selection font color"]="#ffffff";this.I["selection background"]="#6699cc";this.I["selection image"]="";this.hf={};for(var kb in this.I)this.hf[kb]=this.I[kb];this.dataProps={};this.mj={};this.ro={};this.ko=this.dragging=this.Ff=this.designMode=false;this.Ww=96;this.uy=this.jz=97;this.dx=99;this.Or=100;this.sy=701;this.it=702;this.ds=this.totalRecs=this.d=
1231
1231
  null;this.Pt=this.ma=this.tl=this.Bw=this.Hi=this.vo=this.qf=this.Rk=false;this.so=null;this.Ei=this.singleSelection=this.Wd=this.io=false;this.xe=this.Pb=this.ye=this.Cb=null;this.xg=this.Eu=false;this.Qe=this.Uf=null;this.wm="_____puiButtonToggleTreeLevel";this.am=this.Yk=this.ll=null;this.Nh="1";this.Mh=null;this.rf=20;this.se=3;this.Cj=this.Bj=this.Ej=this.Dj=this.rg=null;this.expanded=true;this.fl=this.dl=null;this.oc=1;this.qu=false;this.sj=this.uo=null;this.Ci=[];this.Bg=this.Qi=this.Pf=this.Fi=
1232
- this.Pn=this.Ri=this.Bf=null;this.Rs=[];this.Fd=null;this.Ur=false;this.Po=1;this.ab=new pui.Lm(pui.runtimeContainer,this);this.Sk=null;this.Y={w:0,col:0,text:""};this.Nl=false;this.os=Ga;this.au=false;this.Yd=this.Ob=null;this.sv=ma;this.rv=qa;this.nv=Q;this.sc=this.Bt=this.At=this.Ws=false;var d=this,Wa,da,ia,va,Ba,Ya,fa,wa,pa=1,fb="solid",Va=false,nb=false,Qa=false,hc=false,ld=false,Kc,Lc,pc,tb,Rb,Za,zb=null,jb=null,Nb=null,de=false,hd=false,ee=false,sc,rc,tc,kd=null,Sa=[],$a=null,ab=null;this.po=
1233
- function(){var k;d.designMode=true;d.c.destroy=d.destroy;if(d.d!=null)d.d.designMode=true;for(k=0;k<d.n.length;k++)aa(d.n,k,true);for(k=0;k<d.k.length;k++)aa(d.k,k,false);for(k=0;k<d.cells.length;k++)for(var m=0;m<d.cells[k].length;m++)Y(d.cells[k][m]);if(Wa==null){Wa=W("plus","Add New Row");Wa.onclick=function(){var q=d.c.e;q.designer.ca.start("Add Grid Row");q.designer.ca.add(q,"number of rows");d.af();d.Bh();d.Xb();d.Le()}}if(da==null){da=W("minus","Remove Row");da.onclick=function(){if(d.cells.length>
1234
- (d.h?2:1)){var q=d.c.e;q.designer.ca.start("Remove Grid Row");q.designer.ca.add(q,"number of rows");d.Aj();d.Xb();d.Le()}}}if(ia==null){ia=W("plus","Add New Column");ia.onclick=function(){var q=d.c.e;if(q.properties["number of columns"]>d.Ah)pui.alert("Maximum number of columns reached.");else{q.designer.ca.start("Add Grid Column");q.designer.ca.add(q,"column widths");q.designer.ca.add(q,"number of columns");d.mn();d.Ma();d.Xb();d.Le()}}}if(va==null){va=W("minus","Remove Column");va.onclick=function(){var q=
1232
+ this.Pn=this.Ri=this.Bf=null;this.Rs=[];this.Ed=null;this.Ur=false;this.Po=1;this.ab=new pui.Lm(pui.runtimeContainer,this);this.Sk=null;this.Y={w:0,col:0,text:""};this.Nl=false;this.os=Ga;this.au=false;this.Yd=this.Ob=null;this.sv=ma;this.rv=qa;this.nv=T;this.sc=this.Bt=this.At=this.Ws=false;var d=this,Wa,da,ha,va,Ba,Ya,fa,wa,pa=1,fb="solid",Va=false,nb=false,Qa=false,hc=false,ld=false,Kc,Lc,pc,tb,Rb,Za,zb=null,jb=null,Nb=null,de=false,hd=false,ee=false,sc,rc,tc,kd=null,Sa=[],$a=null,ab=null;this.po=
1233
+ function(){var k;d.designMode=true;d.c.destroy=d.destroy;if(d.d!=null)d.d.designMode=true;for(k=0;k<d.n.length;k++)Z(d.n,k,true);for(k=0;k<d.k.length;k++)Z(d.k,k,false);for(k=0;k<d.cells.length;k++)for(var m=0;m<d.cells[k].length;m++)ca(d.cells[k][m]);if(Wa==null){Wa=X("plus","Add New Row");Wa.onclick=function(){var q=d.c.e;q.designer.ca.start("Add Grid Row");q.designer.ca.add(q,"number of rows");d.af();d.Bh();d.Xb();d.Le()}}if(da==null){da=X("minus","Remove Row");da.onclick=function(){if(d.cells.length>
1234
+ (d.h?2:1)){var q=d.c.e;q.designer.ca.start("Remove Grid Row");q.designer.ca.add(q,"number of rows");d.Aj();d.Xb();d.Le()}}}if(ha==null){ha=X("plus","Add New Column");ha.onclick=function(){var q=d.c.e;if(q.properties["number of columns"]>d.Ah)pui.alert("Maximum number of columns reached.");else{q.designer.ca.start("Add Grid Column");q.designer.ca.add(q,"column widths");q.designer.ca.add(q,"number of columns");d.mn();d.Ma();d.Xb();d.Le()}}}if(va==null){va=X("minus","Remove Column");va.onclick=function(){var q=
1235
1235
  d.n.length-2;if(!(q<1))if(d.Jo(q)){q=d.Bx(q);q!=null&&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.ca.start("Remove Grid Column");q.designer.ca.add(q,"column widths");q.designer.ca.add(q,"number of columns");q.designer.ca.add(q,"column headings");
1236
1236
  d.Fp();d.Xb();d.Le()}}}if(Ba==null)Ba=c("nw");if(Ya==null)Ya=c("ne");if(fa==null)fa=c("sw");if(wa==null)wa=c("se");d.c.Az=function(){if(d.designMode){if(Ba!=null)Ba.style.visibility="";if(Ya!=null)Ya.style.visibility="";if(fa!=null)fa.style.visibility="";if(wa!=null)wa.style.visibility=""}};d.c.Tr=function(){if(Ba!=null)Ba.style.visibility="hidden";if(Ya!=null)Ya.style.visibility="hidden";if(fa!=null)fa.style.visibility="hidden";if(wa!=null)wa.style.visibility="hidden"};d.clearData();d.visibility==
1237
- "hidden"&&d.Hc(function(q){q.style.visibility=""});if(P=="genie"&&d.Fd!=null)if(k=Bb(d.Fd)){k.style.visibility="";k.style.display=""}Q();d.setScrollBar();d.i.Lv(Y);d.ec()};this.Xb=function(k){var m;if(!k)if(d.designMode&&Ib.zh)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.uf().split(","),
1237
+ "hidden"&&d.Hc(function(q){q.style.visibility=""});if(P=="genie"&&d.Ed!=null)if(k=Bb(d.Ed)){k.style.visibility="";k.style.display=""}T();d.setScrollBar();d.i.Lv(ca);d.ec()};this.Xb=function(k){var m;if(!k)if(d.designMode&&Ib.zh)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.uf().split(","),
1238
1238
  z=0;for(m=0;m<u.length;m++){var v=u[m];v=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.Rf(u);if(d.h)k-=d.cb;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.io=true;d.setNumberOfRows(k);d.io=false;var J=parseInt(d.c.style.left),I=parseInt(d.c.style.top);d.Hc(function(H){H.style.left=parseInt(H.style.left)-J+"px";H.style.top=parseInt(H.style.top)-I+"px"});d.setScrollBar();d.fc()}}};this.Ts=function(){if(d.oc<=1)return false;var k=d.dl;
1239
1239
  if(d.fl==true)k=false;if(d.dl==null&&d.fl==false)k=true;if(k==null)k=false;return k};this.Fu=function(k){var m=d.cells.length;if(d.h)m-=1;if(d.Ts())m*=d.oc;d.j=parseInt((k-1)/m)*m+1};this.nx=function(){if(d.Uf===null)return false;var k=d.Cu;if(k===undefined)k=false;return k};this.collapse=function(k){if(d.expanded)if(!(d.oc<=1)){if(d.Ta!=null)d.Ta.style.display="none";d.expanded=false;var m=d.cells.length;if(d.h)m-=1;m*=d.oc-1;if(!d.Pe){d.setProperty("row height",parseInt(d.la/d.oc));for(var q=0;q<
1240
- m;q++)d.af();d.Ma();d.sd();d.getData();for(m=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.Bp=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",
1241
- "expandAll")}}};this.expand=function(k){var m;if(!d.expanded)if(!(d.oc<=1)){if(d.Ta!=null)d.Ta.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.Pe){d.setProperty("row height",d.la*d.oc);for(m=0;m<q;m++)d.Aj();d.Ma();d.sd();d.getData();for(m=0;m<d.C.length;m++)if(q=d.C[m].domEls)for(var u in q)if(!isNaN(parseInt(u,10))){var z=q[u];if(z.Bp){z.Bp=false;z.disabled=false}}}if(k!=null&&k.tagName=="IMG"){k.src=pui.normalizeURL("/profoundui/proddata/images/icons/collapseall.gif");
1240
+ m;q++)d.af();d.Ma();d.rd();d.getData();for(m=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.Bp=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",
1241
+ "expandAll")}}};this.expand=function(k){var m;if(!d.expanded)if(!(d.oc<=1)){if(d.Ta!=null)d.Ta.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.Pe){d.setProperty("row height",d.la*d.oc);for(m=0;m<q;m++)d.Aj();d.Ma();d.rd();d.getData();for(m=0;m<d.C.length;m++)if(q=d.C[m].domEls)for(var u in q)if(!isNaN(parseInt(u,10))){var z=q[u];if(z.Bp){z.Bp=false;z.disabled=false}}}if(k!=null&&k.tagName=="IMG"){k.src=pui.normalizeURL("/profoundui/proddata/images/icons/collapseall.gif");
1242
1242
  k.title=pui.getLanguageText("runtimeText","collapseAll")}}};this.toggle=function(k){d.expanded?d.collapse(k):d.expand(k)};this.KA=oa();this.rowZoom=function(k){if(!(P!="dspf"&&!pui.fa)){if(typeof k=="number"){k=k-d.j;d.h&&k++;k=d.cells[k];if(k==null)return}if(d.Ta==null){d.Ta=document.createElement("div");d.Ta.style.height=d.la*d.oc+"px";d.Ta.style.zIndex=d.sy;d.Ta.style.left=parseInt(d.c.style.left)+"px";d.Ta.onclick=function(){d.Ta.style.display="none"};d.Ta.onmouseout=function(J){J=J?J.relatedTarget:
1243
1243
  event.toElement;try{if(J!=null&&J.parentNode!=null){if(J.parentNode==d.Ta)return;if(J.parentNode.parentNode==d.Ta)return}}catch(I){}d.Ta.style.display="none"};d.c.parentNode.appendChild(d.Ta)}var m=parseInt(d.c.style.width);if(d.Cc||d.Mf)m-=21;d.Ta.style.width=m+"px";d.Ta.innerHTML="";d.Ta.className=d.c.className;d.Ta.classList.add("zoomrow");d.Ta.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=
1244
1244
  "0px";q.style.height=parseInt(d.Ta.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=Lb(v);z.readOnly=true}if(z.tagName=="SELECT")z.disabled=true}d.Ta.appendChild(q)}d.Ta.style.display=""}};this.exportXLSX=function(k){return d.exportCSV(k,true)};this.exportCSV=function(k,m){var q,u,z,v,J,I,
1245
- H,L,S,ca;if(!d.i.Xh&&(pui["csv exports xlsx"]===true||pui["csv exports xlsx"]==="true"))m=true;var O;if(typeof pui["csv separator"]=="string")O=pui["csv separator"];else{O=",";if(pui.appJob!=null&&(pui.appJob.decimalFormat=="I"||pui.appJob.decimalFormat=="J"))O=";"}var V='"';if(typeof pui["csv string delimiter"]=="string")V=pui["csv string delimiter"];if(!d.designMode){if(k==null)k=d.ds;if(k==null||k=="")k=d.c.id;if(d.ea()&&d.wa==false)m?d.zw(k):d.getData(k);else if(P=="genie"&&!pui.fa)pui.alert('In 5250 mode, the "csv export" feature requires an SQL-driven subfile.');
1246
- else{k=encodeURIComponent(k);var U=[],ba=[],Z=[],ja=[],za=[],La=[],ka=[],xa=[],Ja=[];K();S=d.n.length-1;if(d.ma&&!d.qf)S=d.ga.length;for(I=0;I<S;I++){U.push(-1);ba.push(false);Z.push(false);ja.push(false);za.push(false);La.push(false);ka.push(false);xa.push(-1);Ja.push(null)}var Na=0;I=0;for(S=d.C.length;I<S;I++){var Ca=d.C[I];if(Ca.visibility!="hidden"){q=Number(Ca.column);if(!isNaN(q)&&q>=0&&q<U.length&&U[q]==-1){Ja[q]=Ca;if(pui.p(Ca.visibility))ja[q]=Ca.visibility;H=Ca.value;if(Ca["radio button group"])H=
1247
- Ca["radio button group"];if(Ca["field type"]=="html container")H=Ca.html;if(Ca["field type"]=="image"&&m)H=Ca["image source"];if(Ca["field type"]=="hyperlink"){var Ea=Ca["hyperlink reference"];ka[q]={};if(pui.p(Ea)&&Ea.dataType!="indicator"&&Ea.dataType!="expression"){z=pui.L(Ea.fieldName);v=0;for(L=d.aa.length;v<L;v++)if(z==d.aa[v]){ka[q].ct=v;break}if(!pui.p(H)||H.dataType=="indicator"||H.dataType=="expression"){ka[q].value=H;H=Ea}}else if(Ea!=null&&Ea.length>0)ka[q].link=Ea}if(pui.p(H)&&H.dataType!=
1248
- "indicator"&&H.dataType!="expression"){z=pui.L(H.fieldName);v=0;for(L=d.aa.length;v<L;v++)if(z==d.aa[v]){xa[q]=Ca.columnId;U[q]=v;Na++;if(H.formatting=="Number")ba[q]=true;za[q]=H;if(H.dataType=="graphic")Z[q]=true;if(m)if(Ca["field type"]=="image"){La[q]={left:2,top:2,height:16,width:16};if(Ca.domEls!=null&&Ca.domEls.length>0)for(v=0;v<Ca.domEls.length;v++)if(Ca.domEls[v]&&Ca.domEls[v].offsetWidth>0&&Ca.domEls[v].offsetHeight>0){La[q]={left:Ca.domEls[v].offsetLeft,top:Ca.domEls[v].offsetTop,height:Ca.domEls[v].offsetHeight,
1249
- width:Ca.domEls[v].offsetWidth};break}}else if(Ca["field type"]=="hyperlink")if(ka[q].value==null)ka[q].VA=true;break}}}}}if(d.ma&&!d.qf){ca=[];J=[];I=function(Ta){return Ta.columnId==u};q=0;for(S=xa.length;q<S;q++){u=xa[q];v="";L=100;if(u>=0)if(Ca=d.ga.find(I)){v=Ca.blankHeader?"":Ca.name;L=pui.Vd(Ca.orginalWidth)}J[q]=v;ca[q]=L}}xa="";var Ra,Jb,Oa;q=false;if(m){Ra=new pui.Em(Na);Jb=new pui.Dm(Ra);Ra.$n=d.la;Oa=[];if(!d.ma||d.qf)ca=d.uf().split(",");for(I=0;I<U.length&&I<ca.length;I++)U[I]>-1&&Oa.push(Number(ca[I]));
1250
- Ra.Rf(Oa);Oa=new pui.tq;for(I=Na=0;I<U.length;I++)if(U[I]>-1){nc(Ra,za[I],Na);Na++}}ca=0;if(d.h&&d.Rk){m&&mc(Ra);for(I=0;I<U.length;I++){H=U[I];if(H>-1){v="";v=d.ma&&!d.qf?J[I]:Oc(d.cells[0][I]);v=v.replace(/<br>/g," ");m&&oc(Ra,Pb(v),ca++);v=v.replace(/"/g,'""');v=v.replace("\n","");v=v.replace("\r","");if(xa!="")xa+=O;xa+=V+v+V}}if(m)Ra.th=d.cb}xa="\ufeff"+xa;J=d.dataArray;if(d.isFiltered())J=d.X;I=0;for(S=J.length;I<S;I++){Na="";Ca=J[I];if(!(Ca.rc!=null&&Ca.rc==true)){z={};if(Ca==null||Ca.length==
1251
- 0)z.empty=true;else for(v=0;v<d.aa.length;v++)z[d.aa[v]]=Ca[v];m&&mc(Ra);v=ca=0;for(L=U.length;v<L;v++){H=U[v];if(H>-1){H=Ca[H];if(ka[v]!=null&&ka[v].value!=null)H=ka[v].value;if(Z[v]&&(d.dataProps==null||d.dataProps["load fields into widgets"]!=="true"))H=pui.formatting.hh(H);if(!m&&ba[v]&&pui.appJob!=null&&(pui.appJob.decimalFormat=="I"||pui.appJob.decimalFormat=="J")){if(typeof H!=="string")H=String(H);H=H.replace(".",",")}Ea=za[v];if(typeof Ea==="object"&&Ea!==null){var eb=Ea.formatting;if(eb===
1245
+ H,M,R,aa;if(!d.i.Xh&&(pui["csv exports xlsx"]===true||pui["csv exports xlsx"]==="true"))m=true;var O;if(typeof pui["csv separator"]=="string")O=pui["csv separator"];else{O=",";if(pui.appJob!=null&&(pui.appJob.decimalFormat=="I"||pui.appJob.decimalFormat=="J"))O=";"}var V='"';if(typeof pui["csv string delimiter"]=="string")V=pui["csv string delimiter"];if(!d.designMode){if(k==null)k=d.ds;if(k==null||k=="")k=d.c.id;if(d.ea()&&d.wa==false)m?d.zw(k):d.getData(k);else if(P=="genie"&&!pui.fa)pui.alert('In 5250 mode, the "csv export" feature requires an SQL-driven subfile.');
1246
+ else{k=encodeURIComponent(k);var U=[],ba=[],Y=[],ja=[],za=[],La=[],ka=[],xa=[],Ja=[];K();R=d.n.length-1;if(d.ma&&!d.qf)R=d.ga.length;for(I=0;I<R;I++){U.push(-1);ba.push(false);Y.push(false);ja.push(false);za.push(false);La.push(false);ka.push(false);xa.push(-1);Ja.push(null)}var Na=0;I=0;for(R=d.C.length;I<R;I++){var Ca=d.C[I];if(Ca.visibility!="hidden"){q=Number(Ca.column);if(!isNaN(q)&&q>=0&&q<U.length&&U[q]==-1){Ja[q]=Ca;if(pui.p(Ca.visibility))ja[q]=Ca.visibility;H=Ca.value;if(Ca["radio button group"])H=
1247
+ Ca["radio button group"];if(Ca["field type"]=="html container")H=Ca.html;if(Ca["field type"]=="image"&&m)H=Ca["image source"];if(Ca["field type"]=="hyperlink"){var Ea=Ca["hyperlink reference"];ka[q]={};if(pui.p(Ea)&&Ea.dataType!="indicator"&&Ea.dataType!="expression"){z=pui.L(Ea.fieldName);v=0;for(M=d.aa.length;v<M;v++)if(z==d.aa[v]){ka[q].ct=v;break}if(!pui.p(H)||H.dataType=="indicator"||H.dataType=="expression"){ka[q].value=H;H=Ea}}else if(Ea!=null&&Ea.length>0)ka[q].link=Ea}if(pui.p(H)&&H.dataType!=
1248
+ "indicator"&&H.dataType!="expression"){z=pui.L(H.fieldName);v=0;for(M=d.aa.length;v<M;v++)if(z==d.aa[v]){xa[q]=Ca.columnId;U[q]=v;Na++;if(H.formatting=="Number")ba[q]=true;za[q]=H;if(H.dataType=="graphic")Y[q]=true;if(m)if(Ca["field type"]=="image"){La[q]={left:2,top:2,height:16,width:16};if(Ca.domEls!=null&&Ca.domEls.length>0)for(v=0;v<Ca.domEls.length;v++)if(Ca.domEls[v]&&Ca.domEls[v].offsetWidth>0&&Ca.domEls[v].offsetHeight>0){La[q]={left:Ca.domEls[v].offsetLeft,top:Ca.domEls[v].offsetTop,height:Ca.domEls[v].offsetHeight,
1249
+ width:Ca.domEls[v].offsetWidth};break}}else if(Ca["field type"]=="hyperlink")if(ka[q].value==null)ka[q].VA=true;break}}}}}if(d.ma&&!d.qf){aa=[];J=[];I=function(Ta){return Ta.columnId==u};q=0;for(R=xa.length;q<R;q++){u=xa[q];v="";M=100;if(u>=0)if(Ca=d.ga.find(I)){v=Ca.blankHeader?"":Ca.name;M=pui.Vd(Ca.orginalWidth)}J[q]=v;aa[q]=M}}xa="";var Ra,Jb,Oa;q=false;if(m){Ra=new pui.Em(Na);Jb=new pui.Dm(Ra);Ra.$n=d.la;Oa=[];if(!d.ma||d.qf)aa=d.uf().split(",");for(I=0;I<U.length&&I<aa.length;I++)U[I]>-1&&Oa.push(Number(aa[I]));
1250
+ Ra.Rf(Oa);Oa=new pui.tq;for(I=Na=0;I<U.length;I++)if(U[I]>-1){nc(Ra,za[I],Na);Na++}}aa=0;if(d.h&&d.Rk){m&&mc(Ra);for(I=0;I<U.length;I++){H=U[I];if(H>-1){v="";v=d.ma&&!d.qf?J[I]:Oc(d.cells[0][I]);v=v.replace(/<br>/g," ");m&&oc(Ra,Pb(v),aa++);v=v.replace(/"/g,'""');v=v.replace("\n","");v=v.replace("\r","");if(xa!="")xa+=O;xa+=V+v+V}}if(m)Ra.th=d.cb}xa="\ufeff"+xa;J=d.dataArray;if(d.isFiltered())J=d.X;I=0;for(R=J.length;I<R;I++){Na="";Ca=J[I];if(!(Ca.rc!=null&&Ca.rc==true)){z={};if(Ca==null||Ca.length==
1251
+ 0)z.empty=true;else for(v=0;v<d.aa.length;v++)z[d.aa[v]]=Ca[v];m&&mc(Ra);v=aa=0;for(M=U.length;v<M;v++){H=U[v];if(H>-1)if(H=Ca[H]){if(ka[v]!=null&&ka[v].value!=null)H=ka[v].value;if(Y[v]&&(d.dataProps==null||d.dataProps["load fields into widgets"]!=="true"))H=pui.formatting.hh(H);if(!m&&ba[v]&&pui.appJob!=null&&(pui.appJob.decimalFormat=="I"||pui.appJob.decimalFormat=="J")){if(typeof H!=="string")H=String(H);H=H.replace(".",",")}Ea=za[v];if(typeof Ea==="object"&&Ea!==null){var eb=Ea.formatting;if(eb===
1252
1252
  "Date"||eb==="Time"||eb==="Time Stamp")H=pui.R(Ea,z,d.ref)}if(ja[v]!==false)if(pui.R(ja[v],z,d.ref)=="hidden")H="";if(typeof pui["process export value"]==="function"){Ea=pui["process export value"]({value:H,"bound value formatting":Ea,"item properties":Ja[v],"grid properties":d.c.pui.properties,"record number":I+1});if(Ea!=null)H=Ea}Ea=H;if(typeof Ea==="string"&&Ea.length>0)try{Ea=Ea.replace(/[^\x20-\x7E]/g," ")}catch(Cb){}if(typeof H==="string")H=H.replace(/"/g,'""');if(Na!="")Na+=O;Na+=V+Pb(H)+
1253
- V;if(m){if(typeof La[v]=="object"&&La[v]!=null){q=true;oc(Ra,"",ca);typeof Ea==="string"&&Ea.length>0&&zc(Oa,Ra.nd,ca,Ea,La[v])}else{H=null;if(typeof ka[v]=="object"&&ka[v]!=null)if(ka[v].link!=null)H=ka[v].link;else if(ka[v].ct!=null)H=Ca[ka[v].ct];oc(Ra,Pb(Ea),ca,H)}ca++}}}if(xa!="")xa+="\n";xa+=Na}}if(m){if(q&&d.i.Lu){Ra.Hu=true;Jb.Uc=Oa;Jb.Jc=d.i;$d(d.i,pui.getLanguageText("runtimeMsg","downloading x",["..."]));d.i.$p()}gc(Jb,k)}else pui.Pk("text/csv",k+".csv",xa)}}};this.zw=function(k){function m(I){var H=
1254
- new XMLHttpRequest;H.open("POST",z,true);H.setRequestHeader("Content-type","application/x-www-form-urlencoded");var L={data:{}};L.append=function(V,U){L.data[V]=encodeURIComponent(U)};L.get=function(){var V="",U="";for(var ba in L.data){V+=U+ba+"="+L.data[ba];U="&"}return V};if(pui.ba)L.append("AUTH",pui.ba);else{L.append("AUTH",pui.appJob.auth);typeof pui.vId!=="undefined"&&L.append("VID",pui.vId)}L.append("q",encodeURIComponent(pui.Wc(d.c)));pui.ld(d.dataProps,null,L);L.append("limit",u);L.append("start",
1255
- "1");typeof d.Lc==="string"&&d.Lc.length>0&&d.Lc.substring(1).split("&").forEach(function(V){V=V.split("=");L.append(V[0],decodeURIComponent(V[1]))});pui["read db driven data as ebcdic"]!==true&&L.append("UTF8","Y");var S=d.dataProps["order by"];if(d.Db!=null)S=d.Db;if(S&&S!="")L.append("order",S);else Fb()=="mssql"&&L.append("order","(select null)");S=d.dataProps["allow any select statement"];if(S!=null&&(S=="true"||S==true))L.append("FetchCounter","Y");pui.isCloud&&L.append("workspace_id",pui.cloud.ws.id);
1253
+ V;if(m){if(typeof La[v]=="object"&&La[v]!=null){q=true;oc(Ra,"",aa);typeof Ea==="string"&&Ea.length>0&&zc(Oa,Ra.nd,aa,Ea,La[v])}else{H=null;if(typeof ka[v]=="object"&&ka[v]!=null)if(ka[v].link!=null)H=ka[v].link;else if(ka[v].ct!=null)H=Ca[ka[v].ct];oc(Ra,Pb(Ea),aa,H)}aa++}}else aa++}if(xa!="")xa+="\n";xa+=Na}}if(m){if(q&&d.i.Lu){Ra.Hu=true;Jb.Uc=Oa;Jb.Jc=d.i;$d(d.i,pui.getLanguageText("runtimeMsg","downloading x",["..."]));d.i.$p()}gc(Jb,k)}else pui.Pk("text/csv",k+".csv",xa)}}};this.zw=function(k){function m(I){var H=
1254
+ new XMLHttpRequest;H.open("POST",z,true);H.setRequestHeader("Content-type","application/x-www-form-urlencoded");var M={data:{}};M.append=function(V,U){M.data[V]=encodeURIComponent(U)};M.get=function(){var V="",U="";for(var ba in M.data){V+=U+ba+"="+M.data[ba];U="&"}return V};if(pui.ba)M.append("AUTH",pui.ba);else{M.append("AUTH",pui.appJob.auth);typeof pui.vId!=="undefined"&&M.append("VID",pui.vId)}M.append("q",encodeURIComponent(pui.Wc(d.c)));pui.ld(d.dataProps,null,M);M.append("limit",u);M.append("start",
1255
+ "1");typeof d.Lc==="string"&&d.Lc.length>0&&d.Lc.substring(1).split("&").forEach(function(V){V=V.split("=");M.append(V[0],decodeURIComponent(V[1]))});pui["read db driven data as ebcdic"]!==true&&M.append("UTF8","Y");var R=d.dataProps["order by"];if(d.Db!=null)R=d.Db;if(R&&R!="")M.append("order",R);else Fb()=="mssql"&&M.append("order","(select null)");R=d.dataProps["allow any select statement"];if(R!=null&&(R=="true"||R==true))M.append("FetchCounter","Y");pui.isCloud&&M.append("workspace_id",pui.cloud.ws.id);
1256
1256
  Zd(d.i,"cancel","cancel");$d(d.i,pui.getLanguageText("runtimeMsg","downloading x",["..."]));d.i.$p(pui.getLanguageText("runtimeMsg","cancelled"),function(){H.abort();d.unMask()});H.onreadystatechange=function(){if(!(H.readyState!=4||H.status==0))try{if(H.status!=200)throw"XMLHTTPRequest status: "+H.status;var V=eval("("+H.responseText+")");if(!V)throw"Failed";if(V.success!=true){if(V.errorText)throw"Failed: "+V.errorText;throw"Failed";}var U=V.response;if(U==null||U.results==null)throw"Invalid Response";
1257
- if(d.dataProps["data transform function"])try{U=eval("window."+d.dataProps["data transform function"])(H.responseText)}catch(ba){pui.dp(ba)}if(I!=null)U.fields=I;if(U.results.length>0)q(U);else{Zd(d.i,"","");$d(d.i,pui.getLanguageText("runtimeMsg","no data"));d.i.$p();ae(d.i)}d.unMask()}catch(Z){V=pui.getLanguageText("runtimeText","excel export text");console.warn(V,Z);pui.alert(V+":\n"+Z.toString());d.unMask();d.i.z()}};var ca=0,O=0;H.addEventListener("progress",function(V){var U=pui.wo(V.loaded,
1258
- 1),ba=V.timeStamp-ca;if(ca==0)ca=V.timeStamp;else if(ba>0){var Z=V.loaded/ba*1E3;ba=Math.round(ba/1E3);U+=" ("+pui.wo(Z,0)+"/s; "+ba+"s)";if(V.timeStamp-O<250)return}$d(d.i,pui.getLanguageText("runtimeMsg","downloading x",[U]));O=V.timeStamp});H.send(L.get());d.mask();d.Jb()}function q(I){function H(ka){return ka.field==L}var L,S,ca,O,V,U=[];if((d.tl||d.ma)&&Array.isArray(d.ga)&&d.ga.length>0){var ba=d.ga.filter(function(ka){return ka.showing||d.qf!=true});ba.sort(function(ka,xa){var Ja=ka.currentColumn;
1259
- if(Ja<0)Ja=999+ka.columnId;var Na=xa.currentColumn;if(Na<0)Na=999+xa.columnId;return Ja-Na});S=0;for(V=ba.length;S<V;S++){O=ba[S];if(O.field)U.push({fieldName:O.field,name:O.blankHeader?"":O.name});else if(!O.field){O.field=d.C[S].value.fieldName;U.push({fieldName:O.field,name:O.blankHeader?"":O.name})}}}else for(L in I.results[0])U.push({fieldName:L,Hz:L});S=0;if(I.colWidths!=null){S=I.colWidths.length;ba=pb(d.C);S-=ba.length}else S=Object.keys(I.results[0]).length;if(U.length>0&&U.length<S)S=U.length;
1260
- var Z=new pui.Em(S);ba=new pui.Dm(Z);ba.Jc=d.i;I.fields!=null&&U.forEach(function(ka,xa){L=ka.fieldName;var Ja=I.fields.find(H);nc(Z,Ja?{dataType:Ja.type,decPos:Ja.decPos}:{dataType:"char"},xa)});if(d.h&&d.Rk){S=0;mc(Z);if(d.ma){if(Array.isArray(d.ga)&&d.ga.length>0)for(V=U.length;S<V&&(O=U[S]);S++){L=O.fieldName;ca=(ca=d.ga.find(H))?ca.name:"";oc(Z,ca,S)}}else if(d.cells[0]instanceof Array&&d.cells[0].length>0)for(O=U.length;S<O;S++){ca=d.cells[0][S]?Pb(Oc(d.cells[0][S])):"";if(d.qf)d.cells[0][S]!==
1261
- undefined&&oc(Z,ca,S);else oc(Z,ca,S)}Z.th=d.cb}V=0;for(O=I.results.length;V<O;V++){mc(Z);ca=I.results[V];for(var ja=S=0,za=U.length;ja<za;ja++){L=U[ja];if(L!=null){var La=ca[L.fieldName];if(La==null&&L.fieldName)La=ca[L.fieldName.toUpperCase()];if(d.qf)d.cells[0][S]!==undefined&&oc(Z,La,S,null,I.fields==null);else oc(Z,La,S,null,I.fields==null);S++}}}gc(ba,k)}if(pui.secLevel<=0)console.log("Export not implemented for low security level.");else{var u=d.totalRecs;if(u==null)u=9999;var z=Wb("PUI0009102.PGM"),
1257
+ if(d.dataProps["data transform function"])try{U=eval("window."+d.dataProps["data transform function"])(H.responseText)}catch(ba){pui.dp(ba)}if(I!=null)U.fields=I;if(U.results.length>0)q(U);else{Zd(d.i,"","");$d(d.i,pui.getLanguageText("runtimeMsg","no data"));d.i.$p();ae(d.i)}d.unMask()}catch(Y){V=pui.getLanguageText("runtimeText","excel export text");console.warn(V,Y);pui.alert(V+":\n"+Y.toString());d.unMask();d.i.z()}};var aa=0,O=0;H.addEventListener("progress",function(V){var U=pui.wo(V.loaded,
1258
+ 1),ba=V.timeStamp-aa;if(aa==0)aa=V.timeStamp;else if(ba>0){var Y=V.loaded/ba*1E3;ba=Math.round(ba/1E3);U+=" ("+pui.wo(Y,0)+"/s; "+ba+"s)";if(V.timeStamp-O<250)return}$d(d.i,pui.getLanguageText("runtimeMsg","downloading x",[U]));O=V.timeStamp});H.send(M.get());d.mask();d.Jb()}function q(I){function H(ka){return ka.field==M}var M,R,aa,O,V,U=[];if((d.tl||d.ma)&&Array.isArray(d.ga)&&d.ga.length>0){var ba=d.ga.filter(function(ka){return ka.showing||d.qf!=true});ba.sort(function(ka,xa){var Ja=ka.currentColumn;
1259
+ if(Ja<0)Ja=999+ka.columnId;var Na=xa.currentColumn;if(Na<0)Na=999+xa.columnId;return Ja-Na});R=0;for(V=ba.length;R<V;R++){O=ba[R];if(O.field)U.push({fieldName:O.field,name:O.blankHeader?"":O.name});else if(!O.field){O.field=d.C[R].value.fieldName;U.push({fieldName:O.field,name:O.blankHeader?"":O.name})}}}else for(M in I.results[0])U.push({fieldName:M,Hz:M});R=0;if(I.colWidths!=null){R=I.colWidths.length;ba=pb(d.C);R-=ba.length}else R=Object.keys(I.results[0]).length;if(U.length>0&&U.length<R)R=U.length;
1260
+ var Y=new pui.Em(R);ba=new pui.Dm(Y);ba.Jc=d.i;I.fields!=null&&U.forEach(function(ka,xa){M=ka.fieldName;var Ja=I.fields.find(H);nc(Y,Ja?{dataType:Ja.type,decPos:Ja.decPos}:{dataType:"char"},xa)});if(d.h&&d.Rk){R=0;mc(Y);if(d.ma){if(Array.isArray(d.ga)&&d.ga.length>0)for(V=U.length;R<V&&(O=U[R]);R++){M=O.fieldName;aa=(aa=d.ga.find(H))?aa.name:"";oc(Y,aa,R)}}else if(d.cells[0]instanceof Array&&d.cells[0].length>0)for(O=U.length;R<O;R++){aa=d.cells[0][R]?Pb(Oc(d.cells[0][R])):"";if(d.qf)d.cells[0][R]!==
1261
+ undefined&&oc(Y,aa,R);else oc(Y,aa,R)}Y.th=d.cb}V=0;for(O=I.results.length;V<O;V++){mc(Y);aa=I.results[V];for(var ja=R=0,za=U.length;ja<za;ja++){M=U[ja];if(M!=null){var La=aa[M.fieldName];if(La==null&&M.fieldName)La=aa[M.fieldName.toUpperCase()];if(d.qf)d.cells[0][R]!==undefined&&oc(Y,La,R,null,I.fields==null);else oc(Y,La,R,null,I.fields==null);R++}}}gc(ba,k)}if(pui.secLevel<=0)console.log("Export not implemented for low security level.");else{var u=d.totalRecs;if(u==null)u=9999;var z=Wb("PUI0009102.PGM"),
1262
1262
  v=d.dataProps["data url"];if(v=="")v=null;if(v){z=pui.df(v);if(typeof pui.vId!=="undefined")z+="&VID="+pui.vId;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];cc({url:Wb("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))},async:true,
1263
1263
  handler:function(I){var H=null;if(I!=null&&I.fields!=null)H=I.fields;m(H)},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.Jb()}else m()}};this.Jo=function(k){if(P=="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"&&!u.Wo)return true;
1264
1264
  u=u.nextSibling}return false};this.Bx=function(k){var m=[],q=k,u=k;if(k==null){q=0;u=d.n.length-2}k=0;if(d.h)k=1;for(q=q;q<=u;q++)for(var z=d.cells[k][q],v=0;v<z.children.length;v++){var J=z.children[v].id;if(!(J==""||J==null)){J=" "+J;m.push(J)}}return m};this.Iw=function(){for(var k=[],m=d.c.e.designer.items,q=0;q<m.length;q++){var u=m[q];u.Tz()==d&&k.push(u)}return k};this.Do=function(){var k=d.k.length-1;if(d.h)k-=1;return k};this.Eg=function(k){if(!(P=="genie"&&!pui.fa))if(d.designMode){var m,
@@ -1266,120 +1266,120 @@ q,u=document.createElement("span");if(d.h){q=d.cells[1][k];m=2}else{q=d.cells[0]
1266
1266
  d.ea()||pui.fa)u=d.j;q-=u;d.h&&q++;q=d.cells[q];if(q==null)return null;q=q[Ga(m)];if(q==null)return null;return Oc(q)};this.getDataValue=function(k,m){if(typeof k!="number")return null;if(typeof m!="string")return null;var q=b(k,false);if(q==null)return null;m=pui.L(m);if(m.length>10&&!(pui.pjsDefaultMode==="case-sensitive"||pui.handler!=null))m=pui.Gf[m];var u=pui.Ib(d.Xa)+"."+m;if(pui.handler!=null)u=m;u+="."+k;u=pui.O[u];if(u!=null&&u.length==1){u=u[0];if(u!=null)return u.tagName?Vc(u):typeof u.S!=
1267
1267
  "undefined"?u.S:u.value}u=a(m);if(u==null)return null;return q[u]};this.getAllDataValues=function(k){if(d.aa.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.aa.length;z++){var v=d.aa[z];if(pui.Gf[v])v=pui.Gf[v];u[v]=m[q][z]}k.push(u)}return k};this.setDataValue=function(k,m,q){m=pui.L(m);if(m.length>10&&!(pui.pjsDefaultMode==="case-sensitive"||pui.handler!=null))m=pui.Gf[m];var u=b(k,false);if(u!=null){var z=
1268
1268
  a(m);if(z!=null){u[z]=q;if(d.Wd&&d.Cb&&d.Cb.fieldName&&m==pui.L(d.Cb.fieldName)){var v=(z=q==d.Nh)?d.Nh:d.Cb.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.Ib(d.Xa)+"."+m+"."+k;if(pui.O[J]==null){u.selection={S:String(q),modified:true,type:"grid selection",value:v,o:k,N:d.Cb,cj:true};pui.O[J]=[u.selection]}if(pui.O[J][0]!=null&&pui.O[J][0].cj)pui.O[J][0].S=String(q)}}if(z)d.Mh=k}}}v=v=J=null;
1269
- u=[];for(z=0;z<d.C.length;z++){J=d.C[z];for(var I in J){v=J[I];if(pui.p(v)&&pui.L(v.fieldName)===m){v=Object.assign({},v);v.value=q;u.push({field:J,property:I,N:v})}}}if(u.length===0)return false;for(I=0;I<u.length;I++){var H=u[I];J=H.field;v=H.property;var L=J.domEls[k-1];if(L==null){H=null;for(z in J.domEls){H=J.domEls[z];break}if(H&&pui.Us(v,H)&&d.ea()==false){J=pui.Ib(d.Xa)+"."+m+"."+k;if(pui.O[J]==null)pui.O[J]=[{S:String(q),cj:true}];if(pui.O[J][0]!=null&&pui.O[J][0].cj)pui.O[J][0].S=String(q)}}else{H.N.__pui_skipdecode=
1270
- true;v==="value"?Xc(L,pui.tc.format(H.N)):applyProperty(L,v,pui.tc.format(H.N))}}return true};this.Hb=function(){return d.j>1?false:true};this.rp=function(){if(M("onpageup")!=false)if(pui.fa&&d.Hb()||!pui.fa&&P=="genie")Vb("pageup");else{d.mask();d.Jb();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.td(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.Od=="undefined"||pui.r.Od==false){var m=0;d.h&&
1271
- m++;var q=d.cells[m];setTimeout(function(){ua(q)},100)}},1)}};this.Ub=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.pp=function(){if(M("onpagedown")!=false)if(pui.fa&&d.Ub()||!pui.fa&&P=="genie")Vb("pagedown");else{d.mask();d.Jb();var k=d.cells.length;if(d.h)k-=1;d.j+=k;k=d.j+k-1;if(d.ea()&&d.wa!=true){if(d.totalRecs<k&&d.d!=null){d.j=d.j-k+d.totalRecs;
1272
- 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.td(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.Od=="undefined"||pui.r.Od==false){var q=0;d.h&&q++;var u=d.cells[q];setTimeout(function(){ua(u)},100)}},1)}};this.getRecNum=function(){return d.j};this.unMask=function(){if(zb!=null)zb.style.display="none";if(Nb!=null)Nb.style.display=
1269
+ u=[];for(z=0;z<d.C.length;z++){J=d.C[z];for(var I in J){v=J[I];if(pui.p(v)&&pui.L(v.fieldName)===m){v=Object.assign({},v);v.value=q;u.push({field:J,property:I,N:v})}}}if(u.length===0)return false;for(I=0;I<u.length;I++){var H=u[I];J=H.field;v=H.property;var M=J.domEls[k-1];if(M==null){H=null;for(z in J.domEls){H=J.domEls[z];break}if(H&&pui.Us(v,H)&&d.ea()==false){J=pui.Ib(d.Xa)+"."+m+"."+k;if(pui.O[J]==null)pui.O[J]=[{S:String(q),cj:true}];if(pui.O[J][0]!=null&&pui.O[J][0].cj)pui.O[J][0].S=String(q)}}else{H.N.__pui_skipdecode=
1270
+ true;v==="value"?Xc(M,pui.tc.format(H.N)):applyProperty(M,v,pui.tc.format(H.N))}}return true};this.Hb=function(){return d.j>1?false:true};this.rp=function(){if(N("onpageup")!=false)if(pui.fa&&d.Hb()||!pui.fa&&P=="genie")Vb("pageup");else{d.mask();d.Jb();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.Nd=="undefined"||pui.r.Nd==false){var m=0;d.h&&
1271
+ m++;var q=d.cells[m];setTimeout(function(){ua(q)},100)}},1)}};this.Ub=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.pp=function(){if(N("onpagedown")!=false)if(pui.fa&&d.Ub()||!pui.fa&&P=="genie")Vb("pagedown");else{d.mask();d.Jb();var k=d.cells.length;if(d.h)k-=1;d.j+=k;k=d.j+k-1;if(d.ea()&&d.wa!=true){if(d.totalRecs<k&&d.d!=null){d.j=d.j-k+d.totalRecs;
1272
+ 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.Nd=="undefined"||pui.r.Nd==false){var q=0;d.h&&q++;var u=d.cells[q];setTimeout(function(){ua(u)},100)}},1)}};this.getRecNum=function(){return d.j};this.unMask=function(){if(zb!=null)zb.style.display="none";if(Nb!=null)Nb.style.display=
1273
1273
  "none";if(jb!=null)jb.style.display="none"};this.Jb=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(zb==null)zb=document.createElement("div");zb.style.display="block";if(d.h){q+=d.cb;k-=d.cb}zb.style.left=m+"px";zb.style.top=q+"px";zb.style.width=u+"px";zb.style.height=k+"px";zb.className="pui-grid-loading";d.c.parentNode.appendChild(zb);d.Oy()}}};
1274
1274
  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(jb==null)jb=document.createElement("div");jb.style.display="block";if(d.h){q+=d.cb;k-=d.cb}jb.style.position="absolute";jb.style.left=m+"px";jb.style.top=q+"px";jb.style.width=u+"px";jb.style.height=k+"px";jb.className="grid-mask";d.c.parentNode.appendChild(jb)}}};this.Oy=function(){if(!(d.designMode||
1275
1275
  jb==null||jb.style.display=="none"))if(d.c.style.visibility!="hidden")if(d.c.parentNode!=null){var k=parseInt(zb.style.width)-2,m=parseInt(zb.style.height)-5;if(Nb==null)Nb=document.createElement("div");Nb.style.display="block";if(d.h)m-=d.cb;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";zb.appendChild(Nb)}};this.getData=function(k){function m(ka,xa,Ja){if(!(d==null||d.cells==null)){if(xa!=null)d.totalRecs=
1276
1276
  xa;d.saveFieldNames=d.aa;d.aa=[];d.X=[];d.clear(false);d.hc=false;d.dataProps["load all rows"]=="true"&&t(false);if(ka.length>=1){for(var Na in ka[0])d.aa.push(pui.L(Na));d.saveFieldNames=d.aa;for(xa=0;xa<ka.length;xa++){d.dataArray[xa]=[];d.X[xa]=[];var Ca=ka[xa],Ea=0;for(Na in Ca){var Ra=Ca[Na];d.dataArray[xa][Ea]=Ra;d.X[xa][Ea]=Ra;Ea++}}}d.wa=true;d.getData();if(d.dataProps["load all rows"]=="true"&&d.isFiltered()&&Va){ka=g();Na=ka.filters;if(Na!=null){d.sc=false;for(xa=0;xa<Na.length;xa++){Ca=
1277
- ka.filters[xa].column;Ea=ka.filters[xa].text;Ea==null||Ea==""?d.removeFilter(Ca):d.setFilter(Ca,Ea)}d.sc=true}}if(d.dataProps["load all rows"]=="true"&&d.h&&d.cells.length>0){ka=d.cells[0];for(xa=0;xa<ka.length;xa++)if(ka[xa].Vj)ka[xa].Vj=null;d.pl(false)}d.unMask();if(d.dataProps["load all rows"]!="true")d.wa=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.Sa=d.totalRecs;Ja>0&&d.d.td(d.j,
1277
+ ka.filters[xa].column;Ea=ka.filters[xa].text;Ea==null||Ea==""?d.removeFilter(Ca):d.setFilter(Ca,Ea)}d.sc=true}}if(d.dataProps["load all rows"]=="true"&&d.h&&d.cells.length>0){ka=d.cells[0];for(xa=0;xa<ka.length;xa++)if(ka[xa].Vj)ka[xa].Vj=null;d.pl(false)}d.unMask();if(d.dataProps["load all rows"]!="true")d.wa=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.Sa=d.totalRecs;Ja>0&&d.d.sd(d.j,
1278
1278
  true)}if(d.c.style.visibility!="hidden"&&d.d!=null){d.d.z();typeof d.d.rh=="function"&&d.d.rh()}d.zi=false}}function q(ka,xa,Ja){function Na(Gb){return Gb.columnId===Ra}if(!(d==null||d.cells==null)){if(xa!=null)d.totalRecs=xa;if(Ja>0){d.j=Ja;d.clearData()}xa=e();for(var Ca=Array(d.cells[0].length),Ea=0;Ea<d.cells[0].length;Ea++)Ca[d.cells[0][Ea].w]=Ea;if((d.tl||d.ma)&&ka.length>0&&d.ga.length){var Ra=0;for(var Jb in ka[0]){if(Ea=d.ga.find(Na))Ea.field=Jb;Ra++}}for(Ea=d.sf=0;Ea<ka.length;Ea++){if(d.sf==
1279
1279
  0)d.sf=Ea+1+(d.j-1);d.Vi=Ea+1+(d.j-1);var Oa=ka[Ea],eb=0,Cb=d.cells[Ea+(d.h?1:0)];if(Cb!=null)for(Jb in Oa){var Ta=Cb.length;if(d.ma&&d.ga.length)Ta=d.ga.length;if(eb<Ta){Ta=Oa[Jb];var bc="";Ra=pui.secLevel>0?Ca[eb]:eb;if(d.ma){if(Ra==undefined){eb++;continue}if(d.I["text align"]){var Sb=d.I["text align"].split(",");if(Sb[eb])bc=" text-align:"+Sb[eb]}}else if(Cb[Ra].style.textAlign!=null&&Cb[Ra].style.textAlign!="")bc=" text-align:"+Cb[Ra].style.textAlign;if(pui.appJob.decimalFormat=="J"&&Ta.charAt(0)==
1280
- ","&&Ta.length>1&&!Number.isNaN(Number.parseInt(Ta.substring(1))))Ta="0"+Ta;Cb[Ra].innerHTML='<div style="'+xa+bc+'" class="dbd">'+Ta+"</div>";if(d.Y!=null&&d.Y.text!=""&&(Ra===d.Y.col||d.Y.col==="*all"))if(Cb[Ra].tagName=="DIV"){pui.Zk(Cb[Ra],d.Y.text);Cb[Ra].$k=true}}eb++}}ka=d.cells.length;if(d.h)ka-=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.Sa=d.totalRecs;Ja>0&&d.d.td(d.j,true)}if(d.c.style.visibility!=
1280
+ ","&&Ta.length>1&&!Number.isNaN(Number.parseInt(Ta.substring(1))))Ta="0"+Ta;Cb[Ra].innerHTML='<div style="'+xa+bc+'" class="dbd">'+Ta+"</div>";if(d.Y!=null&&d.Y.text!=""&&(Ra===d.Y.col||d.Y.col==="*all"))if(Cb[Ra].tagName=="DIV"){pui.Zk(Cb[Ra],d.Y.text);Cb[Ra].$k=true}}eb++}}ka=d.cells.length;if(d.h)ka-=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.Sa=d.totalRecs;Ja>0&&d.d.sd(d.j,true)}if(d.c.style.visibility!=
1281
1281
  "hidden"&&d.d!=null){d.d.z();typeof d.d.rh=="function"&&d.d.rh()}if(d.i!=null){d.i.Il=parseInt((d.j+ka*2-2)/ka)+d.Po-1;d.i.z()}d.zi=false}}function u(){var ka=null;if(d.xg&&d.Uf!==null){if(d.Pb)if(d.Pb.length<1&&d.kd)d.Pb=null;if(d.Pb==null){d.Pb=[];for(ka=0;ka<d.dataArray.length;ka++){var xa={kq:d.getDataValue(ka+1,d.Uf),Du:false};d.Pb.push(xa)}d.xe=new pui.wq;d.xe.load(d.Pb)}if(!d.Eu){d.Eu=true;d.Sr=null;ka=d.Sw();for(xa=0;xa<d.C.length;xa++)if(d.C[xa].columnId==ka){ka=d.C[xa].left;if(ka===undefined)ka=
1282
1282
  "10px";ka=ka.substring(0,ka.indexOf("px"));ka=parseInt(ka);d.Sr=ka;break}}ka=d.c.id;ka={id:ka+d.wm,"field type":"graphic button",left:"10px",top:"0px","css class":"pui-button-tree-level","icon position":"left",onclick:'myFunction = function (event, elem) {\n getObj("'+ka+'").grid.toggleTreeLevel(rrn);\n}\n\n',grid:ka,visibility:"visible"};ka.columnId=d.Qe;ka.column=ka.columnId.toString()}return ka}function z(ka){var xa=La-1;ka.icon="fontAwesome-solid:minus-square-tree-level";ka.visibility="visible";
1283
1283
  if(d.Pb[xa].Du)ka.icon="fontAwesome-solid:plus-square-tree-level";for(var Ja=d.Pb[xa].kq,Na=0;Na<d.C.length;Na++)if(d.C[Na].columnId==ka.columnId){ka.column=d.C[Na].column;var Ca=d.Sr+(Ja-1)*10;ka.left=Ca+"px";d.C[Na].left=Ca+20+"px";break}if(xa+1>=d.Pb.length||d.Pb[xa+1].kq<=Ja)ka.visibility="hidden"}d.Pi();if(d.c.disabled!=true)if(!d.designMode){var v=d.cells.length;if(d.h)v-=1;if(!(v<1)){if(d.wa==false){if(d.ea()){if(!de){hd=de=true;h(true);hd=false}if(!ee){o();ee=true}}var J=d.dataProps["custom sql"],
1284
- I="";if(J==null||J==""){var H=d.dataProps["database file"],L=d.dataProps["database fields"],S=d.dataProps["selection criteria"];I=d.dataProps["order by"];if(d.Db!=null)I=d.Db;if(L!=null&&L!=""&&H!=null&&H!=""){J="SELECT "+L+" FROM "+H;if(S&&S!="")J+=" WHERE "+S;if(I&&I!="")J+=" ORDER BY "+I}}else if(d.Db!=null)J+=" ORDER BY "+d.Db}H=d.dataProps["data url"];if(H=="")H=null;if(J==null)J="";if(d.wa==false&&(J!=""||H!=null))if(k!=null){if(!(J==null||J=="")){var ca=",";v=".";var O='"';if(pui.appJob!=null&&
1285
- (pui.appJob.decimalFormat=="I"||pui.appJob.decimalFormat=="J")){ca=";";v=","}if(typeof pui["csv separator"]=="string")ca=pui["csv separator"];if(typeof pui["csv string delimiter"]=="string")O=pui["csv string delimiter"];var V=document.createElement("form");V.action=Wb("PUI0009107.pgm");V.method="post";var U=function(ka,xa){var Ja=Yb("input",ka);Ja.type="hidden";Ja.value=xa;V.appendChild(Ja)};pui.isCloud&&U("workspace_id",pui.cloud.ws.id);U("delimiter",ca);U("stringDelimiter",O===""?"*NONE":O);pui["read db driven data as ebcdic"]!==
1286
- true&&U("UTF8","Y");U("decType",v);U("fileName",k+".csv");if(pui.secLevel>0){U("q",encodeURIComponent(pui.Wc(d.c)));v={};pui.ld(d.dataProps,v);for(var ba in v)U(ba,encodeURIComponent(v[ba]));if(I&&I!="")U("order",I);else Fb()=="mssql"&&U("order","(select null)")}else U("q",pui.yb.nf(J));U("AUTH",pui.ba?pui.ba:pui.appJob.auth);pui.ba||typeof pui.vId!=="undefined"&&U("VID",pui.vId);if(d.h&&d.Rk){if(d.ma){var Z="";d.ga.forEach(function(ka){var xa=ka.name;if(ka.blankHeader)xa="";xa=xa.replace(/"/g,'""');
1287
- if(Z)Z+=ca;Z+=O+xa+O})}else{Z="";for(I=0;I<d.cells[0].length;I++){v=Oc(d.cells[0][I]);v=v.replace(/"/g,'""');if(Z!="")Z+=ca;Z+=O+v+O}}U("headings",Z)}typeof d.Lc==="string"&&d.Lc.length>0&&d.Lc.substring(1).split("&").forEach(function(ka){ka=ka.split("=");U(ka[0],decodeURIComponent(ka[1]))});document.body.appendChild(V);pui.skipConfirm=true;V.submit();setTimeout(function(){V.parentNode.removeChild(V);pui.skipConfirm=false},0)}}else{if(d.d!=null){if(d.d.type=="paging")d.d.Hb=d.j==1;d.c.style.visibility!=
1284
+ I="";if(J==null||J==""){var H=d.dataProps["database file"],M=d.dataProps["database fields"],R=d.dataProps["selection criteria"];I=d.dataProps["order by"];if(d.Db!=null)I=d.Db;if(M!=null&&M!=""&&H!=null&&H!=""){J="SELECT "+M+" FROM "+H;if(R&&R!="")J+=" WHERE "+R;if(I&&I!="")J+=" ORDER BY "+I}}else if(d.Db!=null)J+=" ORDER BY "+d.Db}H=d.dataProps["data url"];if(H=="")H=null;if(J==null)J="";if(d.wa==false&&(J!=""||H!=null))if(k!=null){if(!(J==null||J=="")){var aa=",";v=".";var O='"';if(pui.appJob!=null&&
1285
+ (pui.appJob.decimalFormat=="I"||pui.appJob.decimalFormat=="J")){aa=";";v=","}if(typeof pui["csv separator"]=="string")aa=pui["csv separator"];if(typeof pui["csv string delimiter"]=="string")O=pui["csv string delimiter"];var V=document.createElement("form");V.action=Wb("PUI0009107.pgm");V.method="post";var U=function(ka,xa){var Ja=Yb("input",ka);Ja.type="hidden";Ja.value=xa;V.appendChild(Ja)};pui.isCloud&&U("workspace_id",pui.cloud.ws.id);U("delimiter",aa);U("stringDelimiter",O===""?"*NONE":O);pui["read db driven data as ebcdic"]!==
1286
+ true&&U("UTF8","Y");U("decType",v);U("fileName",k+".csv");if(pui.secLevel>0){U("q",encodeURIComponent(pui.Wc(d.c)));v={};pui.ld(d.dataProps,v);for(var ba in v)U(ba,encodeURIComponent(v[ba]));if(I&&I!="")U("order",I);else Fb()=="mssql"&&U("order","(select null)")}else U("q",pui.yb.nf(J));U("AUTH",pui.ba?pui.ba:pui.appJob.auth);pui.ba||typeof pui.vId!=="undefined"&&U("VID",pui.vId);if(d.h&&d.Rk){if(d.ma){var Y="";d.ga.forEach(function(ka){var xa=ka.name;if(ka.blankHeader)xa="";xa=xa.replace(/"/g,'""');
1287
+ if(Y)Y+=aa;Y+=O+xa+O})}else{Y="";for(I=0;I<d.cells[0].length;I++){v=Oc(d.cells[0][I]);v=v.replace(/"/g,'""');if(Y!="")Y+=aa;Y+=O+v+O}}U("headings",Y)}typeof d.Lc==="string"&&d.Lc.length>0&&d.Lc.substring(1).split("&").forEach(function(ka){ka=ka.split("=");U(ka[0],decodeURIComponent(ka[1]))});document.body.appendChild(V);pui.skipConfirm=true;V.submit();setTimeout(function(){V.parentNode.removeChild(V);pui.skipConfirm=false},0)}}else{if(d.d!=null){if(d.d.type=="paging")d.d.Hb=d.j==1;d.c.style.visibility!=
1288
1288
  "hidden"&&d.d.z()}var ja=d.j;if(sc!=null&&rc!=null&&tc>0)ja=tc;else d.clearData();var za=q;v=v;if(jb==null||jb.style.display=="none"){d.mask();d.Jb()}if(d.dataProps["load fields into widgets"]=="true"){za=m;if(d.dataProps["load all rows"]=="true")v=-1}P=="genie"?db(J,v,ja,za,d.totalRecs==null,H,false):db(J,v,ja,za,d.totalRecs==null,H,true)}else if(P=="dspf"||pui.fa){J=d.dataArray;if(d.isFiltered())J=d.X;if(!d.c.lf)d.c.lf=0;I=d.j;if(J[d.j-1]&&J[d.j-1].o!=null)I=J[d.j-1].o;d.c.Wt=I;if(d.uo!=null&&!d.Ws)pui.vm["toprrn."+
1289
- d.uo]=I;d.clearData();ba=d.h?1:0;k=d.j+v-1;if(d.wa==false&&J.length<k&&(d.isFiltered()||d.d!=null)){d.j=d.j-k+J.length;if(d.j<1)d.j=1;k=J.length}d.bx();I=d.j;if(d.wa==true&&d.dataProps["load all rows"]!="true"){I=1;k=v}H=u();d.sf=0;d.ll=null;for(I=I;I<=k;I++){if(d.Fs)ja=d.Fs[I-1];ja||(ja={});L={};za=J[I-1];if(za==null||za.length==0)L.empty=true;else for(S=0;S<d.aa.length;S++)L[d.aa[S]]=za[S];if(d.dataProps["load fields into widgets"]=="true"){L.__pui_show=true;L.__pui_skipdecode=true}za=d.Wd||d.Dj!=
1290
- null||d.Bj!=null;if(L.empty!=true){var La=J[I-1].o;if(La==null)La=I;za&&d.$c(ba,false,I-1);H!==null&&z(H);if(d.sf==0)d.sf=La;d.Vi=La;pui.Hp({designMode:false,name:pui.Ib(d.Xa),metaData:{items:d.C},data:L,Es:ja,ref:d.ref,errors:d.errors,Fj:ba,o:La,Vb:I-1,Y:d.Y,lq:H});if(d.Wd&&d.Cb!=null){L=pui.Ib(d.Xa)+"."+pui.L(d.Cb.fieldName)+"."+La;if(pui.O[L]==null){J[I-1].selection={modified:false,type:"grid selection",value:d.Cb.dataType=="indicator"?"0":" ",o:La,N:d.Cb};pui.O[L]=[];pui.O[L].push(J[I-1].selection)}}if(d.ye!=
1291
- null){L=pui.Ib(d.Xa)+"."+pui.L(d.ye.fieldName)+"."+La;if(pui.O[L]==null){J[I-1].ze={modified:false,type:"grid hidden field",value:"0",o:La,N:d.ye};pui.O[L]=[];pui.O[L].push(J[I-1].ze)}}}else za&&d.$c(ba);ba++}if(za&&k<v)for(ja=k+1;ja<=v;ja++)d.$c(ja);if(d.xg&&d.Uf!==null&&d.ll!==null){ja=Bb(d.c.id+d.wm+"."+d.ll);ja!==null&&ja.focus()}if(d.ea()&&d.dataProps["load all rows"]!="true"){d.sf+=d.j-1;d.Vi+=d.j-1}if(d.d!=null&&d.d.type=="sliding")d.d.Sa=d.wa&&d.dataProps["load all rows"]!="true"?d.totalRecs:
1289
+ d.uo]=I;d.clearData();ba=d.h?1:0;k=d.j+v-1;if(d.wa==false&&J.length<k&&(d.isFiltered()||d.d!=null)){d.j=d.j-k+J.length;if(d.j<1)d.j=1;k=J.length}d.bx();I=d.j;if(d.wa==true&&d.dataProps["load all rows"]!="true"){I=1;k=v}H=u();d.sf=0;d.ll=null;for(I=I;I<=k;I++){if(d.Fs)ja=d.Fs[I-1];ja||(ja={});M={};za=J[I-1];if(za==null||za.length==0)M.empty=true;else for(R=0;R<d.aa.length;R++)M[d.aa[R]]=za[R];if(d.dataProps["load fields into widgets"]=="true"){M.__pui_show=true;M.__pui_skipdecode=true}za=d.Wd||d.Dj!=
1290
+ null||d.Bj!=null;if(M.empty!=true){var La=J[I-1].o;if(La==null)La=I;za&&d.$c(ba,false,I-1);H!==null&&z(H);if(d.sf==0)d.sf=La;d.Vi=La;pui.Hp({designMode:false,name:pui.Ib(d.Xa),metaData:{items:d.C},data:M,Es:ja,ref:d.ref,errors:d.errors,Fj:ba,o:La,Vb:I-1,Y:d.Y,lq:H});if(d.Wd&&d.Cb!=null){M=pui.Ib(d.Xa)+"."+pui.L(d.Cb.fieldName)+"."+La;if(pui.O[M]==null){J[I-1].selection={modified:false,type:"grid selection",value:d.Cb.dataType=="indicator"?"0":" ",o:La,N:d.Cb};pui.O[M]=[];pui.O[M].push(J[I-1].selection)}}if(d.ye!=
1291
+ null){M=pui.Ib(d.Xa)+"."+pui.L(d.ye.fieldName)+"."+La;if(pui.O[M]==null){J[I-1].ze={modified:false,type:"grid hidden field",value:"0",o:La,N:d.ye};pui.O[M]=[];pui.O[M].push(J[I-1].ze)}}}else za&&d.$c(ba);ba++}if(za&&k<v)for(ja=k+1;ja<=v;ja++)d.$c(ja);if(d.xg&&d.Uf!==null&&d.ll!==null){ja=Bb(d.c.id+d.wm+"."+d.ll);ja!==null&&ja.focus()}if(d.ea()&&d.dataProps["load all rows"]!="true"){d.sf+=d.j-1;d.Vi+=d.j-1}if(d.d!=null&&d.d.type=="sliding")d.d.Sa=d.wa&&d.dataProps["load all rows"]!="true"?d.totalRecs:
1292
1292
  J.length;if(d.c.style.visibility!="hidden"&&d.d!=null){d.d.z();typeof d.d.rh=="function"&&d.d.rh()}if(d.i!=null){d.i.Il=parseInt((d.j+v*2-2)/v)+d.Po-1;d.i.z()}d.zi=false;d.unMask()}}}};this.clearData=function(){if(!d.zi){var k;if(d.d!=null)k=d.d.Au;for(var m=d.h?1:0;m<d.cells.length;m++)for(var q=0;q<d.cells[m].length;q++)for(var u=d.cells[m][q],z=u.firstChild;z;){if(z==k){z.style.display="none";z.Jh=true;d.c.appendChild(z)}else u.removeChild(z);z=u.firstChild}d.zi=true}};this.bx=function(){for(var k in d.qq)d.qq[k].ax()};
1293
- this.destroy=function(){d.Fd&&ac(document,"click",d.Pi);for(var k=d.n.length-1;k>=0;k-=1)d.n[k].parentNode!=null&&d.n[k].parentNode.removeChild(d.n[k]);for(k=d.k.length-1;k>=0;k-=1)d.k[k].parentNode!=null&&d.k[k].parentNode.removeChild(d.k[k]);d.d!=null&&d.d.destroy();d.i!=null&&d.i.destroy();d.Yb!=null&&d.Yb.destroy();Ba!=null&&Ba.parentNode.removeChild(Ba);Ya!=null&&Ya.parentNode.removeChild(Ya);fa!=null&&fa.parentNode.removeChild(fa);wa!=null&&wa.parentNode.removeChild(wa);Wa!=null&&Wa.parentNode.removeChild(Wa);
1294
- da!=null&&da.parentNode.removeChild(da);ia!=null&&ia.parentNode.removeChild(ia);va!=null&&va.parentNode.removeChild(va);Za!=null&&Za.parentNode.removeChild(Za);ab=$a=Sa=Za=null;try{Zb(this);d=null}catch(m){}};this.uf=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.Rf=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=
1295
- d.Wr,z=q-1;if(z<k.length)u=pui.Vd(k[z],50);m+=u;d.n[q].style.left=m+"px"}sa();d.designMode&&d.Ma();Q();d.setScrollBar();d.fc();d.ec(true)}};this.Le=function(){if(!d.io)if(d.designMode){var k=d.c.e;if(k!=null){k.designer.Cf.update();var m=k.designer.selection;if(m.Sd.length==1&&m.Sd[0].e==k)d.ec();else{m.clear();m.add(k);d.ec(true)}}}};this.ec=function(k){if(d.designMode)if(!Ib.zh){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"]!==
1293
+ this.destroy=function(){d.Ed&&ac(document,"click",d.Pi);for(var k=d.n.length-1;k>=0;k-=1)d.n[k].parentNode!=null&&d.n[k].parentNode.removeChild(d.n[k]);for(k=d.k.length-1;k>=0;k-=1)d.k[k].parentNode!=null&&d.k[k].parentNode.removeChild(d.k[k]);d.d!=null&&d.d.destroy();d.i!=null&&d.i.destroy();d.Yb!=null&&d.Yb.destroy();Ba!=null&&Ba.parentNode.removeChild(Ba);Ya!=null&&Ya.parentNode.removeChild(Ya);fa!=null&&fa.parentNode.removeChild(fa);wa!=null&&wa.parentNode.removeChild(wa);Wa!=null&&Wa.parentNode.removeChild(Wa);
1294
+ da!=null&&da.parentNode.removeChild(da);ha!=null&&ha.parentNode.removeChild(ha);va!=null&&va.parentNode.removeChild(va);Za!=null&&Za.parentNode.removeChild(Za);ab=$a=Sa=Za=null;try{Zb(this);d=null}catch(m){}};this.uf=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.Rf=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=
1295
+ d.Wr,z=q-1;if(z<k.length)u=pui.Vd(k[z],50);m+=u;d.n[q].style.left=m+"px"}sa();d.designMode&&d.Ma();T();d.setScrollBar();d.fc();d.ec(true)}};this.Le=function(){if(!d.io)if(d.designMode){var k=d.c.e;if(k!=null){k.designer.Cf.update();var m=k.designer.selection;if(m.Sd.length==1&&m.Sd[0].e==k)d.ec();else{m.clear();m.add(k);d.ec(true)}}}};this.ec=function(k){if(d.designMode)if(!Ib.zh){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"]!==
1296
1296
  "#rowsPerPageRDF"){u=d.k.length-1;if(u<0)u=0;u=String(u)}else u=m.properties["number of rows"];var z=d.n.length-1;if(z<0)z=0;z=String(z);var v=false;v=ce(d,m,"number of rows",u)||v;v=ce(d,m,"number of columns",z)||v;v=ce(d,m,"row height",d.la)||v;v=ce(d,m,"header height",d.cb)||v;v=ce(d,m,"column widths",d.uf())||v;v=ce(d,m,"left",d.c.style.left)||v;v=ce(d,m,"top",d.c.style.top)||v;v=ce(d,m,"height",q)||v;if(v=ce(d,m,"width",d.c.style.width)||v){m.designer.fp();P==="dspf"&&pui.ide.refreshRibbon()}if(v||
1297
- k)m.designer.ob.refresh()}}};this.fc=function(k){if(d.h)if(!(d.cells.length<=0))for(var m=e(),q=d.cells[0],u=0,z=q.length;u<z;u++){var v=q[u],J=false,I=null;if(d.designMode==false){if(v.nc!=null){J=true;d.zj(v)}if(v.Zc!=null){I=v.Zc;I.parentNode!=null&&I.parentNode.removeChild(I)}}if(d.columnHeadings.length<=u)v.innerHTML="";else{var H="";if(v.style.textAlign!=null&&v.style.textAlign!="")H=" text-align:"+v.style.textAlign;var L="<div";if(d.Oc)L+=' class="qf"';L+=' style="'+m+H+'">';if(d.ma&&k&&k[u])L+=
1298
- k[u];else if(d.columnHeadings[u])L+=d.columnHeadings[u];v.innerHTML=L+"</div>"}J&&d.im(v);J=false;if(d.designMode==false&&d.sortable==true)if(I!=null)D(v,I);else if(d.gc!=null){if(Lc==v.w)J=true;else if(d.c.gh!=null&&d.Bf==v.w)J=true;else if(d.c.qg!=null&&typeof d.Ri==="string"&&d.Ri.toUpperCase()==d.zo(v.col,parseInt(d.c.fx)))J=true;if(J){G();D(v,d.gc)}}if(d.Oc){I=document.createElement("input");I.type="text";I.className="qf";I.placeholder=pui.getLanguageText("runtimeText","filter text")+"...";if(d.designMode)I.disabled=
1299
- true;else{I.addEventListener("mousedown",d.Zq);I.addEventListener("click",d.Zq);I.addEventListener("focus",d.ab);I.addEventListener("input",d.ab);I.addEventListener("keydown",d.ab);I.addEventListener("blur",d.ab)}v.appendChild(I);v=v.sa;if(typeof v==="string"&&v.length>0)I.value=v}}};this.dw=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.pl=function(k){function m(H){function L(){if(d.c.gh!=null){d.Pn=String(H.w);pui.ne=d;pui.cc();pui.ne=
1300
- null}else if(d.c.qg!=null){d.Fi=d.zo(H.col,parseInt(d.c.hs));if(d.Fi==null)d.Pf=null;else{pui.qe=d;pui.cc();pui.qe=null}}else s(H)}T(H,"click",L);H.om=L}if(d.sortable)if(!(P!="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"]!=
1297
+ k)m.designer.ob.refresh()}}};this.fc=function(k){if(d.h)if(!(d.cells.length<=0))for(var m=e(),q=d.cells[0],u=0,z=q.length;u<z;u++){var v=q[u],J=false,I=null;if(d.designMode==false){if(v.nc!=null){J=true;d.zj(v)}if(v.Zc!=null){I=v.Zc;I.parentNode!=null&&I.parentNode.removeChild(I)}}if(d.columnHeadings.length<=u)v.innerHTML="";else{var H="";if(v.style.textAlign!=null&&v.style.textAlign!="")H=" text-align:"+v.style.textAlign;var M="<div";if(d.Oc)M+=' class="qf"';M+=' style="'+m+H+'">';if(d.ma&&k&&k[u])M+=
1298
+ k[u];else if(d.columnHeadings[u])M+=d.columnHeadings[u];v.innerHTML=M+"</div>"}J&&d.im(v);J=false;if(d.designMode==false&&d.sortable==true)if(I!=null)D(v,I);else if(d.gc!=null){if(Lc==v.w)J=true;else if(d.c.gh!=null&&d.Bf==v.w)J=true;else if(d.c.qg!=null&&typeof d.Ri==="string"&&d.Ri.toUpperCase()==d.zo(v.col,parseInt(d.c.fx)))J=true;if(J){G();D(v,d.gc)}}if(d.Oc){I=document.createElement("input");I.type="text";I.className="qf";I.placeholder=pui.getLanguageText("runtimeText","filter text")+"...";if(d.designMode)I.disabled=
1299
+ true;else{I.addEventListener("mousedown",d.Zq);I.addEventListener("click",d.Zq);I.addEventListener("focus",d.ab);I.addEventListener("input",d.ab);I.addEventListener("keydown",d.ab);I.addEventListener("blur",d.ab)}v.appendChild(I);v=v.sa;if(typeof v==="string"&&v.length>0)I.value=v}}};this.dw=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.pl=function(k){function m(H){function M(){if(d.c.gh!=null){d.Pn=String(H.w);pui.ne=d;pui.cc();pui.ne=
1300
+ null}else if(d.c.qg!=null){d.Fi=d.zo(H.col,parseInt(d.c.hs));if(d.Fi==null)d.Pf=null;else{pui.qe=d;pui.cc();pui.qe=null}}else s(H)}S(H,"click",M);H.om=M}if(d.sortable)if(!(P!="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"]!=
1301
1301
  ""&&d.dataProps["load all rows"]!="true"){k=pui.qh(d.dataProps["database fields"]);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.wa==false)){for(u=0;u<d.C.length;u++){var z=d.C[u],v=Number(z.column),J=z.value;if(z["field type"]==
1302
1302
  "html container")J=z.html;if(pui.p(J)&&!isNaN(v)&&v>=0&&v<q.length&&q[v]&&q[v].Vj==null){z=pui.L(J.fieldName);for(var I=0;I<d.aa.length;I++)if(z==d.aa[I]){q[v].Vj=I;q[v].fieldName=z;q[v].dataType=J.dataType;q[v].gs=J;if(J.dateFormat)q[v].dateFormat=J.dateFormat;if(!pui.pa)q[v].style.cursor="pointer";m(q[v]);break}}}k||h()}}};this.oy=function(){var k=g();if(k!=null){if(ld&&!d.ma){var m=k.colWidths;if(m!=null){d.Rf(m);d.Ma();d.fc()}}if(hc&&!d.ma){var q=k.colSequence;if(q!=null){var u=Array(q.length);
1303
- for(m=0;m<u.length;m++)u[m]=d.cells[0][q[m]];for(m=0;m<u.length;m++)d.moveColumn(u[m].col,m)}}if(d.ma){q=k.hidableColState;if(m=k.colWidths)m=m.filter(la());if(q){var z=q.cols;u=z.map(la());q=k.colSequence;if(u!=null){u.sort(function(J,I){return J.savedColumn>I.savedColumn?1:-1}).forEach(function(J){var I=J.columnId;if(I!==undefined){d.ga.every(function(L){if(L.columnId===I){J.blankHeader=L.blankHeader;J.name=L.name;J.field=L.field;return false}return true});if(J.showing){if(hc){var H=Ga(I);H>=0&&
1304
- H!=J.savedColumn&&d.moveColumn(H,J.savedColumn)}}else d.Np(I)}});if(q)u.Ai=q;d.ga=u;d.ga.sort(function(J,I){var H=null,L=null;z.every(function(S,ca){if(J.columnId===S.columnId)H=ca;if(I.columnId===S.columnId)L=ca;if(H!==null&&L!==null)return false;return true});return H>L?1:-1})}}if(m){d.Rf(m);d.Ma()}d.kd&&d.Xb();d.fc(d.ts(d.ga))}l(k,true,s);q=k.filters;if(q!=null&&!d.ea())for(m=0;m<q.length;m++){u=k.filters[m].column;var v=k.filters[m].text;v==null||v==""?d.removeFilter(u):d.setFilter(u,v)}}};this.jt=
1305
- function(k){Lc=null;Sa=[];if(k instanceof Array){t(true);var m="",q="",u="",z="";n(k,function(H,L){return H.Lr===L.w},function(H,L){q+=z+H.Lr;if(d.c.qg!=null)u+=z+d.zo(L.col,parseInt(d.c.hs));z=",";return H.lw});z="";k=0;if(d.C.length>0)k=d.C.reduce(function(H,L){return H.columnId>L.columnId?H:L}).columnId;for(var v=0;v<=k;v++){for(var J=false,I=0;I<d.cells[0].length;I++)if(d.cells[0][I].w===v){m+=z+(d.cells[0][I].ra?"D":"A");z=",";J=true;break}if(!J){m+=z+(p(v)?"D":"A");z=","}}if(d.c.gh!=null){d.Pn=
1303
+ for(m=0;m<u.length;m++)u[m]=d.cells[0][q[m]];for(m=0;m<u.length;m++)d.moveColumn(u[m].col,m)}}if(d.ma){q=k.hidableColState;if(m=k.colWidths)m=m.filter(la());if(q){var z=q.cols;u=z.map(la());q=k.colSequence;if(u!=null){u.sort(function(J,I){return J.savedColumn>I.savedColumn?1:-1}).forEach(function(J){var I=J.columnId;if(I!==undefined){d.ga.every(function(M){if(M.columnId===I){J.blankHeader=M.blankHeader;J.name=M.name;J.field=M.field;return false}return true});if(J.showing){if(hc){var H=Ga(I);H>=0&&
1304
+ H!=J.savedColumn&&d.moveColumn(H,J.savedColumn)}}else d.Np(I)}});if(q)u.Ai=q;d.ga=u;d.ga.sort(function(J,I){var H=null,M=null;z.every(function(R,aa){if(J.columnId===R.columnId)H=aa;if(I.columnId===R.columnId)M=aa;if(H!==null&&M!==null)return false;return true});return H>M?1:-1})}}if(m){d.Rf(m);d.Ma()}d.kd&&d.Xb();d.fc(d.ts(d.ga))}l(k,true,s);q=k.filters;if(q!=null&&!d.ea())for(m=0;m<q.length;m++){u=k.filters[m].column;var v=k.filters[m].text;v==null||v==""?d.removeFilter(u):d.setFilter(u,v)}}};this.jt=
1305
+ function(k){Lc=null;Sa=[];if(k instanceof Array){t(true);var m="",q="",u="",z="";n(k,function(H,M){return H.Lr===M.w},function(H,M){q+=z+H.Lr;if(d.c.qg!=null)u+=z+d.zo(M.col,parseInt(d.c.hs));z=",";return H.lw});z="";k=0;if(d.C.length>0)k=d.C.reduce(function(H,M){return H.columnId>M.columnId?H:M}).columnId;for(var v=0;v<=k;v++){for(var J=false,I=0;I<d.cells[0].length;I++)if(d.cells[0][I].w===v){m+=z+(d.cells[0][I].ra?"D":"A");z=",";J=true;break}if(!J){m+=z+(p(v)?"D":"A");z=","}}if(d.c.gh!=null){d.Pn=
1306
1306
  q;pui.ne=d;if(d.c.Lh!=null)d.Pf=m;pui.cc();pui.ne=null}else if(d.c.qg!=null){d.Fi=u;if(d.Fi==null)d.Pf=null;else{if(d.c.Lh!=null)d.Pf=m;pui.qe=d;pui.cc();pui.qe=null}}else if(Sa.length==0)h(false)||A();else d.ea()&&d.wa==false?B(null,false):s(null,false)}};this.fw=function(k,m){if(!d.Ur){d.Ur=true;var q=Number(d.dataProps["starting row"]),u=Number(d.dataProps["ending row"]);if(!(isNaN(q)||isNaN(u)))if(d.dataProps["data columns"]!=null){for(var z=[],v=0;v<k;v++){var J="data columns";if(v>0)J+=" "+
1307
- (v+1);z[v]=d.dataProps[J].split(",")}d.dataArray=[];d.j=1;J=0;d.h&&J++;for(q=q;q<=u;q+=k){var I=J-(d.h?1:0);d.dataArray[I]=[];d.dataArray[I].selected=false;for(v=0;v<k;v++)for(var H=0;H<z[v].length;H++){var L=z[v][H],S="D_"+(q+v)+"_"+L,ca=d.c.parentNode.id;if(ca!=null&&ca.substr(0,6)=="window"){var O=parseInt(ca.substr(6,1));if(!isNaN(O)&&O>0)S+="_W"+O}var V=Bb(S),U,ba;if(V==null){S="I_"+(q+v)+"_"+L;V=Bb(S);if(V==null)if(!isNaN(O)&&O>0)S+="_W"+O;V=Bb(S);if(V==null)continue;d.d!=null&&d.d.type=="paging"&&
1308
- d.d.Di(V);if(!V.readOnly)continue;L=V.value;L=L.replace(/ /g,"&nbsp;");V.style.display="none";S=V.className;ca=parseInt(V.style.left);U=parseInt(V.style.top);ba=V.B}else{L=V.innerHTML;S=V.className;ca=parseInt(V.style.left);U=parseInt(V.style.top);ba=V.B;V.parentNode.removeChild(V);d.d!=null&&d.d.type=="paging"&&d.d.Di(V)}if(S==null||S==""||S=="A20")S="";else if(S.indexOf("readOnly")!=-1){S=pui.Ep(S,"readOnly");S=pui.Ep(S,"input")}V=H;if(k>1)V=0;if(d.cells.length<=J)break;var Z=d.cells[J][V];if(Z!=
1309
- null){var ja=document.createElement("div");ja.className=S;ja.innerHTML=L;d.dataArray[I][V]=L.replace(/&nbsp;/g," ");ja.style.position="absolute";ca-=parseInt(Z.style.left);ca-=parseInt(d.c.style.left);if(m==true||k==1)ca=5;ja.style.left=ca+"px";U-=parseInt(Z.style.top);U-=parseInt(d.c.style.top);if(m==true||k==1)U=5;ja.style.top=U+"px";ja.B=ba;T(ja,"click",setPos);if(k==1){Z.B=ba;T(Z,"click",setPos)}Z.appendChild(ja)}}J++}}}};this.setScrollBar=function(){if(d.i.b==null){d.i.b=d.b;d.i.grid=d;d.i.init();
1307
+ (v+1);z[v]=d.dataProps[J].split(",")}d.dataArray=[];d.j=1;J=0;d.h&&J++;for(q=q;q<=u;q+=k){var I=J-(d.h?1:0);d.dataArray[I]=[];d.dataArray[I].selected=false;for(v=0;v<k;v++)for(var H=0;H<z[v].length;H++){var M=z[v][H],R="D_"+(q+v)+"_"+M,aa=d.c.parentNode.id;if(aa!=null&&aa.substr(0,6)=="window"){var O=parseInt(aa.substr(6,1));if(!isNaN(O)&&O>0)R+="_W"+O}var V=Bb(R),U,ba;if(V==null){R="I_"+(q+v)+"_"+M;V=Bb(R);if(V==null)if(!isNaN(O)&&O>0)R+="_W"+O;V=Bb(R);if(V==null)continue;d.d!=null&&d.d.type=="paging"&&
1308
+ d.d.Di(V);if(!V.readOnly)continue;M=V.value;M=M.replace(/ /g,"&nbsp;");V.style.display="none";R=V.className;aa=parseInt(V.style.left);U=parseInt(V.style.top);ba=V.B}else{M=V.innerHTML;R=V.className;aa=parseInt(V.style.left);U=parseInt(V.style.top);ba=V.B;V.parentNode.removeChild(V);d.d!=null&&d.d.type=="paging"&&d.d.Di(V)}if(R==null||R==""||R=="A20")R="";else if(R.indexOf("readOnly")!=-1){R=pui.Ep(R,"readOnly");R=pui.Ep(R,"input")}V=H;if(k>1)V=0;if(d.cells.length<=J)break;var Y=d.cells[J][V];if(Y!=
1309
+ null){var ja=document.createElement("div");ja.className=R;ja.innerHTML=M;d.dataArray[I][V]=M.replace(/&nbsp;/g," ");ja.style.position="absolute";aa-=parseInt(Y.style.left);aa-=parseInt(d.c.style.left);if(m==true||k==1)aa=5;ja.style.left=aa+"px";U-=parseInt(Y.style.top);U-=parseInt(d.c.style.top);if(m==true||k==1)U=5;ja.style.top=U+"px";ja.B=ba;S(ja,"click",setPos);if(k==1){Y.B=ba;S(Y,"click",setPos)}Y.appendChild(ja)}}J++}}}};this.setScrollBar=function(){if(d.i.b==null){d.i.b=d.b;d.i.grid=d;d.i.init();
1310
1310
  d.i.z()}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=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.z();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.Mf&&!d.Cc)m=false;k="paging";if(d.Cc)k="sliding";if(P=="genie"&&!d.designMode&&d.ea())k="sliding";if(m&&(d.d==null||d.d!=null&&d.d.type!=k)){d.d!=null&&
1311
- d.d.destroy();if(k=="paging"){d.d=new pui.Uu;d.d.grid=d}if(k=="sliding"){d.d=new pui.Wu;if(P=="genie"&&!pui.fa)d.d.Nf=true}d.d.b=d.b;d.d.zIndex=d.uy;d.d.designMode=d.designMode;if(k=="sliding"){d.d.Bl=function(v){if(jb==null||jb.style.display=="none"){d.mask();d.Jb()}d.j=v;if(!(d==null||d.cells==null)){d.getData();d.zt(true)}};d.d.onchange=function(){d.ea()&&d.dataProps["load all rows"]!="true"&&d.clearData()};d.d.Di(d.c)}if(k=="paging"){d.d.ij=function(){if(M("onpageup")==false)return false;if(d.wa==
1312
- 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.wa==true||P=="dspf"||pui.fa){pui.Hj=d.Xa;pui.sh({},"PageUp");d.d.type=="paging"&&pui.Nb&&setTimeout(function(){d.d.destroy();d.d=null;d.setScrollBar()},250)}else if(P=="genie"){Vb("PageUp");return true}};d.d.hj=function(){if(M("onpagedown")==false)return false;if(d.wa==false&&d.ea()){var v=d.cells.length;if(d.h)v-=1;d.j+=v;d.getData();return true}else if(d.wa==true||P=="dspf"||pui.fa){pui.Hj=
1311
+ d.d.destroy();if(k=="paging"){d.d=new pui.Uu;d.d.grid=d}if(k=="sliding"){d.d=new pui.Wu;if(P=="genie"&&!pui.fa)d.d.Nf=true}d.d.b=d.b;d.d.zIndex=d.uy;d.d.designMode=d.designMode;if(k=="sliding"){d.d.Bl=function(v){if(jb==null||jb.style.display=="none"){d.mask();d.Jb()}d.j=v;if(!(d==null||d.cells==null)){d.getData();d.zt(true)}};d.d.onchange=function(){d.ea()&&d.dataProps["load all rows"]!="true"&&d.clearData()};d.d.Di(d.c)}if(k=="paging"){d.d.ij=function(){if(N("onpageup")==false)return false;if(d.wa==
1312
+ 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.wa==true||P=="dspf"||pui.fa){pui.Hj=d.Xa;pui.sh({},"PageUp");d.d.type=="paging"&&pui.Nb&&setTimeout(function(){d.d.destroy();d.d=null;d.setScrollBar()},250)}else if(P=="genie"){Vb("PageUp");return true}};d.d.hj=function(){if(N("onpagedown")==false)return false;if(d.wa==false&&d.ea()){var v=d.cells.length;if(d.h)v-=1;d.j+=v;d.getData();return true}else if(d.wa==true||P=="dspf"||pui.fa){pui.Hj=
1313
1313
  d.Xa;pui.sh({},"PageDown");d.d.type=="paging"&&pui.Nb&&setTimeout(function(){d.d.destroy();d.d=null;d.setScrollBar()},250)}else if(P=="genie"){Vb("PageDown");return true}};d.d.Di(d.c)}d.d.init(d.c)}if(m){m=d.borderWidth;if(m===null||d.designMode&&m<pa)m=pa;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==
1314
1314
  "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"]=="scroll")if(z.offsetWidth<d.c.offsetWidth+d.c.offsetLeft){d.d.x=z.offsetWidth-q+2+u.scrollLeft;u.onscroll=function(){if(d.d){d.d.x=z.offsetWidth-q+2+u.scrollLeft;d.c.style.visibility!="hidden"&&d.d.z(true)}}}}}d.d.y=parseInt(d.c.style.top)+m;if(k=="paging"){d.d.height=d.pc("height")-m;if(d.d.height<
1315
1315
  0)d.d.height=0;if(d.ea()){d.d.Hb=d.Hb();d.d.Ub=d.Ub()}}if(k=="sliding"){d.d.interval=!d.ea()||d.dataProps["load fields into widgets"]=="true"&&d.dataProps["load all rows"]=="true"?1:250;k=d.cells.length;if(d.h)k-=1;d.d.dc=k;d.d.la=d.la;d.d.borderWidth=m;if(d.designMode)d.d.Sa=k*3;if(d.Sp=="row number"){d.d.Sh=true;d.d.Th=false}else if(d.Sp=="row range"){d.d.Sh=false;d.d.Th=true}else{d.d.Sh=false;d.d.Th=false}}if(d.h){k=d.cb;d.d.y+=k;k=-k;d.d.height+=k}d.c.style.visibility!="hidden"&&d.d.z()}else if(d.d!=
1316
1316
  null){d.d.destroy();d.d=null}};this.pc=function(k){k=parseInt(d.c.style[k]);if(isNaN(k))k=0;return k};this.setProperty=function(k,m,q){if(m==null)m="";if(k.indexOf("parameter value")==0)d.dataProps[k]=m;else{var u=k,z=/^(database file) \d+$/.exec(k);if(z!=null&&z[1]!=null)u=z[1];z=/^(grid row translation placeholder key) \d+$/.exec(k);if(z!=null&&z[1]!=null)u=z[1];z=/^(grid row translation placeholder value) \d+$/.exec(k);if(z!=null&&z[1]!=null)u=z[1];switch(u){case "id":case "parent window":case "screen identifier":case "field type":case "value":case "color":case "display subfile":case "display control record":case "initialize subfile":case "subfile records not active":case "delete subfile":case "clear subfile":case "subfile size":case "subfile next changed":case "subfile record number":case "cursor record number":case "cursor progression":case "subfile return rrn":case "subfile changed":case "subfile message key":case "subfile control program message queue":case "allow drag":case "ondragstart":case "drop targets":case "ondragenter":case "ondragleave":case "ondrop":case "return mode":case "selection field":case "row is hidden field":case "tree level field":case "column sort response":case "right":case "bottom":break;
1317
1317
  case "field name sort response":break;case "return sort order":break;case "position at top":if(m==="true")d.Bt=true;break;case "place cursor":if(m==="true")d.At=true;break;case "record format name":d.Xa=m;if(P=="dspf"){q=d.c.e;if(q!=null){q.properties[k]=m;recordFormats.refresh()}}break;case "description":if(P=="dspf"){q=d.c.e;if(q!=null){q.properties[k]=m;recordFormats.refresh()}}break;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":case "header font color":case "header background":case "header image":case "row font color":case "row background":case "odd row font color":case "odd row background":case "even row font color":case "even row background":case "hover font color":case "hover background":case "hover image":case "selection font color":case "selection background":case "selection image":case "header font family":case "header font size":case "header font weight":case "header font style":case "header text align":d.I[k]=
1318
- m==""&&d.hf[k]!=null?d.hf[k]:m;if(d.designMode){d.sd();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.fc()}break;case "row selection":if(m=="single"||m=="multiple (simple)"||m=="multiple (extended)"){d.Wd=true;if(m=="single"){d.singleSelection=true;d.Ei=false}else{d.singleSelection=false;d.Ei=m=="multiple (extended)"?true:false}if(typeof pui["grid text selection"]=="undefined"||pui["grid text selection"]==
1318
+ m==""&&d.hf[k]!=null?d.hf[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.fc()}break;case "row selection":if(m=="single"||m=="multiple (simple)"||m=="multiple (extended)"){d.Wd=true;if(m=="single"){d.singleSelection=true;d.Ei=false}else{d.singleSelection=false;d.Ei=m=="multiple (extended)"?true:false}if(typeof pui["grid text selection"]=="undefined"||pui["grid text selection"]==
1319
1319
  false){d.c.onselectstart=ya(false);if(typeof d.c.style.MozUserSelect!="undefined")d.c.style.MozUserSelect="none"}}else{d.Wd=false;d.singleSelection=false;d.Ei=false}break;case "selection value":if(m!=null&&m!="")d.Nh=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.af();d.Bh()}if(u<q)for(;u<d.k.length-1;)d.Aj();if(d.c.e!=null)d.c.e.properties[k]=m;d.ec();
1320
1320
  break;case "number of columns":u=d.n.length-1;if(u<0)u=0;q=parseInt(m);q>d.Ah&&pui.alert("WARNING: Number of maximum columns reached when loading Grid.");if(isNaN(q))q=u;if(q<1)q=1;if(q>d.Ah&&d.designMode)q=d.Ah;if(q>u)for(;q>d.n.length-1;)d.mn();if(q<u)for(;q<d.n.length-1;){u=d.n.length-2;if(d.designMode&&d.Jo(u))break;d.Fp()}d.designMode&&d.Ma();if(d.c.e!=null)d.c.e.properties[k]=m;d.ec();break;case "row height":if(isNaN(parseInt(m))||parseInt(m)<=0){d.ec(true);break}d.la=parseInt(m);k=d.h?1:0;
1321
- 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"}qa();if(d.designMode)d.kd?d.Xb():d.Ma();Q();d.setScrollBar();d.ec();break;case "header height":if(isNaN(parseInt(m))||parseInt(m)<=0){d.ec(true);break}d.cb=parseInt(m);if(d.Oc){d.ii=d.cb;if(d.columnHeadings!="")d.cb+=20}ie(d);break;case "has header":if(d.Oc&&(m==false||m=="false"))d.Wm=false;else if(d.h&&(m==false||m=="false")){d.dw();d.h=false;if(P=="dspf"||pui.fa){k=d.n.length-1;for(q=
1322
- 0;q<k;q++)ea(d.cells[1][q],d.cells[0][q]);d.Bh()}if(d.k.length>1){d.k[0].style.top=parseInt(d.k[1].style.top)-d.la+"px";ma();qa();d.designMode&&d.Ma();Q();d.setScrollBar()}d.designMode&&d.sd()}if(!d.h&&(m==true||m=="true"||m=="")){d.cells.length<=1&&d.af();d.h=true;if(P=="dspf"||pui.fa){k=d.n.length-1;for(q=0;q<k;q++)ea(d.cells[0][q],d.cells[1][q]);d.Bh()}if(d.k.length>1){d.k[0].style.top=parseInt(d.k[1].style.top)-d.cb+"px";ma();qa();d.designMode&&d.Ma();Q();d.setScrollBar()}d.sd();d.fc()}break;
1321
+ 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"}qa();if(d.designMode)d.kd?d.Xb():d.Ma();T();d.setScrollBar();d.ec();break;case "header height":if(isNaN(parseInt(m))||parseInt(m)<=0){d.ec(true);break}d.cb=parseInt(m);if(d.Oc){d.ii=d.cb;if(d.columnHeadings!="")d.cb+=20}ie(d);break;case "has header":if(d.Oc&&(m==false||m=="false"))d.Wm=false;else if(d.h&&(m==false||m=="false")){d.dw();d.h=false;if(P=="dspf"||pui.fa){k=d.n.length-1;for(q=
1322
+ 0;q<k;q++)ea(d.cells[1][q],d.cells[0][q]);d.Bh()}if(d.k.length>1){d.k[0].style.top=parseInt(d.k[1].style.top)-d.la+"px";ma();qa();d.designMode&&d.Ma();T();d.setScrollBar()}d.designMode&&d.rd()}if(!d.h&&(m==true||m=="true"||m=="")){d.cells.length<=1&&d.af();d.h=true;if(P=="dspf"||pui.fa){k=d.n.length-1;for(q=0;q<k;q++)ea(d.cells[0][q],d.cells[1][q]);d.Bh()}if(d.k.length>1){d.k[0].style.top=parseInt(d.k[1].style.top)-d.cb+"px";ma();qa();d.designMode&&d.Ma();T();d.setScrollBar()}d.rd();d.fc()}break;
1323
1323
  case "show quick filters":d.Oc=m==true||m==="true";if(d.Oc){if(!d.h){d.Wm=d.h;d.setProperty("has header","true")}if(d.ii==null)d.ii=d.cb;ie(d)}else{if(d.ii!=null){d.cb=d.ii;delete d.ii;ie(d)}if(d.Wm===false){delete d.Wm;d.setProperty("has header","false")}}d.fc();break;case "column widths":d.Rf(m);break;case "column headings":if(!pui.p(m)&&!pui.Kb(m))d.columnHeadings=pui.ha(m);d.fc();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];
1324
1324
  if(d.ma){d.ga=[];d.setProperty("hide columns option",true)}break;case "sortable columns":d.sortable=m=="true";P=="genie"&&d.pl();if(d.xg)d.sortable=false;break;case "default sort order":if(!d.designMode)d.Ci=m==null?[]:m.split(",");break;case "initial sort column":if(!d.designMode){d.Bf=parseInt(m);if(isNaN(d.Bf))d.Bf=null;if(typeof m==="string"){d.Qi=m.split(",");if(d.Qi.length<=1)d.Qi=null}}break;case "initial sort field":if(!d.designMode){d.Ri=m.trim();if(typeof m==="string"){d.Bg=m.split(",");
1325
- if(d.Bg.length<=1)d.Bg=null}}break;case "resizable columns":if(!d.designMode&&(m==true||m=="true")){this.my=ld=true;for(k=0;k<d.n.length;k++)aa(d.n,k,true,true)}break;case "movable columns":if(!d.designMode&&d.h&&(m==true||m=="true")){this.tl=hc=true;k=d.cells[0];if(k==null){d.af();k=d.cells[0];if(k==null){d.af();k=d.cells[0]}}for(q=0;q<k.length;q++)Y(k[q],true)}break;case "persist state":if(m=="true"||m==true)Va=d.designMode==false&&pui.Cg();else if(m==="session only"){Va=d.designMode==false&&pui.Vo();
1325
+ if(d.Bg.length<=1)d.Bg=null}}break;case "resizable columns":if(!d.designMode&&(m==true||m=="true")){this.my=ld=true;for(k=0;k<d.n.length;k++)Z(d.n,k,true,true)}break;case "movable columns":if(!d.designMode&&d.h&&(m==true||m=="true")){this.tl=hc=true;k=d.cells[0];if(k==null){d.af();k=d.cells[0];if(k==null){d.af();k=d.cells[0]}}for(q=0;q<k.length;q++)ca(k[q],true)}break;case "persist state":if(m=="true"||m==true)Va=d.designMode==false&&pui.Cg();else if(m==="session only"){Va=d.designMode==false&&pui.Vo();
1326
1326
  nb=d.designMode==false&&pui.Vo()}else if(m==="program only"){Va=d.designMode==false;Qa=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.Xb();d.c.e.properties["expand to layout"]="true";d.c.e.pb["expand to layout"]=true;d.c.e.designer.ob.Kh("expand to layout")}}break;case "find option":d.vo=m==true||m=="true";break;case "filter option":d.Hi=m==true||m=="true";break;case "filter by value option":d.Bw=m==true||m=="true";break;case "hide columns option":d.ma=
1327
1327
  m==true||m=="true";u=d.n.length-1;z=d.uf().split(",").map(function(I){return Number(I)});for(k=0;k<u;k++){q=d.columnHeadings[k];var v=false;if(!q||typeof q==="string"&&!q.trim()){q="Column "+(k+1);v=true}q={name:q,columnId:k,currentColumn:k,width:z[k],orginalWidth:z[k],showing:true,blankHeader:v};d.ga.push(q)}break;case "reset option":d.Pt=m==true||m=="true";break;case "export option":d.so=m==true||m=="true"?true:m==false||m=="false"?false:null;break;case "export only visible columns":d.qf=m==true||
1328
- m=="true"?true:false;break;case "context menu id":if(!d.designMode){ac(document,"click",d.Pi);k=Lb(m);if(k!="")d.Fd=k;if(pui.is_touch){d.c.onselectstart=ya(false);if(typeof d.c.style.MozUserSelect!="undefined")d.c.style.MozUserSelect="none";if(typeof d.c.style.webkitUserSelect!="undefined")d.c.style.webkitUserSelect="none"}T(document,"click",d.Pi)}break;case "show paging controls":d.i.wd=m==true||m=="true";if(d.designMode){d.i.z();Q()}break;case "show page number":d.i.Qh=m==true||m=="true";if(d.designMode){d.i.z();
1329
- Q()}break;case "initial page number":k=Number(m);if(isNaN(k))k=1;d.i.Il=k;d.Po=k;if(d.designMode){d.i.z();Q()}break;case "show record number range":d.i.Rh=m==true||m=="true";if(d.designMode){d.i.z();Q()}break;case "show bar":d.i.nm=m==true||m=="true";if(d.designMode){d.i.z();Q()}break;case "page down condition":d.i.ut=m;break;case "subfile end":d.uu=m==true||m=="true";break;case "page up condition":d.i.vt=m;break;case "page up response":if(m!=null&&m!=""){d.i.oj=true;d.i.sp=true}break;case "page down response":if(m!=
1330
- null&&m!=""){d.i.nj=true;d.i.qp=true}break;case "filter response":d.designMode||qb(m);break;case "filter response text max":k=parseInt(m,10);d.rf=isNaN(k)?20:k;if(d.rf<1)d.rf=1;d.designMode||qb();break;case "filter response column max":k=parseInt(m,10);d.se=isNaN(k)?3:k;if(d.se<1)d.se=1;d.designMode||qb();break;case "csv export":d.i.ng=m==true||m=="true";if(d.designMode){d.i.z();Q()}break;case "xlsx export":d.i.Xh=m==true||m=="true";if(d.designMode){d.i.z();Q()}break;case "xlsx export pics":d.i.Lu=
1328
+ m=="true"?true:false;break;case "context menu id":if(!d.designMode){ac(document,"click",d.Pi);k=Lb(m);if(k!="")d.Ed=k;if(pui.is_touch){d.c.onselectstart=ya(false);if(typeof d.c.style.MozUserSelect!="undefined")d.c.style.MozUserSelect="none";if(typeof d.c.style.webkitUserSelect!="undefined")d.c.style.webkitUserSelect="none"}S(document,"click",d.Pi)}break;case "show paging controls":d.i.vd=m==true||m=="true";if(d.designMode){d.i.z();T()}break;case "show page number":d.i.Qh=m==true||m=="true";if(d.designMode){d.i.z();
1329
+ T()}break;case "initial page number":k=Number(m);if(isNaN(k))k=1;d.i.Il=k;d.Po=k;if(d.designMode){d.i.z();T()}break;case "show record number range":d.i.Rh=m==true||m=="true";if(d.designMode){d.i.z();T()}break;case "show bar":d.i.nm=m==true||m=="true";if(d.designMode){d.i.z();T()}break;case "page down condition":d.i.ut=m;break;case "subfile end":d.uu=m==true||m=="true";break;case "page up condition":d.i.vt=m;break;case "page up response":if(m!=null&&m!=""){d.i.oj=true;d.i.sp=true}break;case "page down response":if(m!=
1330
+ null&&m!=""){d.i.nj=true;d.i.qp=true}break;case "filter response":d.designMode||qb(m);break;case "filter response text max":k=parseInt(m,10);d.rf=isNaN(k)?20:k;if(d.rf<1)d.rf=1;d.designMode||qb();break;case "filter response column max":k=parseInt(m,10);d.se=isNaN(k)?3:k;if(d.se<1)d.se=1;d.designMode||qb();break;case "csv export":d.i.ng=m==true||m=="true";if(d.designMode){d.i.z();T()}break;case "xlsx export":d.i.Xh=m==true||m=="true";if(d.designMode){d.i.z();T()}break;case "xlsx export pics":d.i.Lu=
1331
1331
  m==true||m=="true";break;case "export file name":d.ds=m;break;case "export with headings":d.Rk=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.Qe=parseInt(m);d.xg=true;d.sortable=false;break;case "expanded":if(!d.designMode){if(m=="true")d.fl=true;if(m=="false")d.fl=false}break;case "collapsed":if(!d.designMode){if(m=="true")d.dl=true;if(m=="false")d.dl=false}break;case "tree level collapsed":if(!d.designMode){if(m=="true")d.Cu=
1332
1332
  true;if(m=="false")d.Cu=false}break;case "single row zoom":if(m=="true")d.qu=true;break;case "scrollbar":if(P=="genie"&&!pui.fa){d.Mf=m==true||m=="true"||m==""?true:false;d.Ma()}else{d.Cc=true;d.Mf=false;if(m=="none"){d.Cc=false;d.Mf=false}if(m=="paging"){d.Cc=false;d.Mf=true}d.designMode&&d.Ma()}d.setScrollBar();break;case "scroll tool tip":d.Sp=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]=
1333
1333
  typeof m=="string"?m.trim():m;break;case "hover effect":d.Oo=m==true||m=="true";break;case "top":k=m;if(pui.p(k))k=k.designValue;var J=parseInt(d.c.style.top)-pui.Vd(k);d.Hc(function(I){I.style.top=parseInt(I.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.Vd(q);d.Hc(function(I){I.style.left=parseInt(I.style.left)-J+"px"});d.setScrollBar();break;case "width":if(!d.designMode||!Ib.zh){k=d.n.length;k-=1;if(k>0){q=pui.Vd(m);q=d.pc("left")+
1334
- q;if(parseInt(d.n[k-1].style.left)+5>q)q=parseInt(d.n[k-1].style.left)+5;if(P==="genie")if((u=parseInt(d.n[k].style.left))&&q-u===1)q=u;d.n[k].style.left=q+"px";sa();d.designMode&&d.Ma();Q();d.setScrollBar();d.ec()}}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.Vd(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=
1335
- 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.cb+"px"}ma();qa();d.designMode&&d.Ma();Q();d.setScrollBar();d.ec();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.yy(m);break;case "border width":d.zy(m);break;case "padding bottom":case "padding left":case "padding right":case "padding top":d.mj[k]=m;d.fc();break;case "visibility":d.visibility=m;if(!d.designMode){d.Hc(function(I){I.style.visibility=
1334
+ q;if(parseInt(d.n[k-1].style.left)+5>q)q=parseInt(d.n[k-1].style.left)+5;if(P==="genie")if((u=parseInt(d.n[k].style.left))&&q-u===1)q=u;d.n[k].style.left=q+"px";sa();d.designMode&&d.Ma();T();d.setScrollBar();d.ec()}}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.Vd(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=
1335
+ 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.cb+"px"}ma();qa();d.designMode&&d.Ma();T();d.setScrollBar();d.ec();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.yy(m);break;case "border width":d.zy(m);break;case "padding bottom":case "padding left":case "padding right":case "padding top":d.mj[k]=m;d.fc();break;case "visibility":d.visibility=m;if(!d.designMode){d.Hc(function(I){I.style.visibility=
1336
1336
  m});if(d.d!=null)m=="hidden"?d.d.hide():d.d.z()}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.Ff=m==true||m=="true"?true:false;break;case "css class":if(d.designMode){d.Xc=m;d.Cc&&d.d.fm(m)}d.i!=null&&d.i.fm(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=
1337
1337
  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.ro[k]=typeof q=="undefined"?m:q;break;case "ondbload":kd=m;break;case "propagate scroll events":d.Nl=m===true||m==="true"?true:false;break;case "sort function":if(m)pc=m;break;case "grid row translation placeholders":break;case "grid row translation placeholder key":break;
1338
- case "grid row translation placeholder value":break;case "row clicked":break;case "column clicked":break;case "subfile program message queue":d.Ws=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);Wa!=null&&k(Wa);da!=null&&k(da);ia!=null&&k(ia);va!=null&&k(va);Ba!=null&&k(Ba);Ya!=null&&k(Ya);fa!=null&&k(fa);
1338
+ case "grid row translation placeholder value":break;case "row clicked":break;case "column clicked":break;case "subfile program message queue":d.Ws=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);Wa!=null&&k(Wa);da!=null&&k(da);ha!=null&&k(ha);va!=null&&k(va);Ba!=null&&k(Ba);Ya!=null&&k(Ya);fa!=null&&k(fa);
1339
1339
  wa!=null&&k(wa)};this.gm=function(k){k=fe(d,k);if(k>=0){var m=d.isFiltered()?d.X:d.dataArray;if(!d.c.Yt)d.c.lf=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.lf=k};this.zt=function(k){var m=d.sj;d.sj=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(){ua(q)},1):ua(q)}}}};this.Ky=function(){for(var k=0;k<d.dataArray.length;k++){var m=d.dataArray[k];
1340
1340
  m=m;var q=false;if(m.rc==null)if(d.ye!=null){if(d.Yk==null)for(var u=0;u<d.aa.length;u++)if(pui.L(d.ye.fieldName)==d.aa[u]){d.Yk=u;break}if(d.Yk!=null)if(m[d.Yk]=="1"&&!m.rc)q=m.rc=true}if(q){d.Mb=0;d.X=[];for(u=0;u<d.dataArray.length;u++){m=d.dataArray[u];if(m.o==null)m.o=u+1;d.Mj(m);!m.te&&!m.rc&&d.X.push(m);m.rc&&d.Mb++}}}d.X=[];for(k=d.Mb=0;k<d.dataArray.length;k++){m=d.dataArray[k];if(m.o==null)m.o=k+1;d.Mj(m);!m.te&&!m.rc&&d.X.push(m);m.rc&&d.Mb++}};this.isRowSelected=function(k){k=b(k,true);
1341
- return ha(k)};this.getSelectedRows=function(){var k=[],m=d.dataArray;if(d.isFiltered())m=d.X;for(var q=0;q<m.length;q++)if(ha(m[q])){var u=q+1;if(typeof d.hc!="undefined"&&d.hc===true||d.isFiltered())u=m[q].o;k.push(u)}return k};this.$c=function(k,m,q){function u(ca,O,V){if(O==null)O="";else{var U=O.split(",");if(U.length>1)O=V<U.length?U[V]:U[0]}ca.style.color=O;if(P=="genie"&&!pui.fa)for(V=0;V<ca.childNodes.length;V++)ca.childNodes[V].style.color=O}function z(ca,O,V){if(O==null)O="";else{var U=
1342
- O.split(",");if(U.length>1)O=V<U.length?U[V]:U[0]}return ca.style.backgroundColor=O}var v=k%2==1;if(d.h)v=!v;if(d.cells!=null){var J=d.cells[k];if(J!=null){var I,H=-1;if(d.j!=null&&!isNaN(d.j)&&d.j>0){if(typeof q=="number"&&q>=0)H=q+1;else if(d.Mb<1)H=k+d.j-1+(d.h?0:1);I=d.isFiltered()?d.X:d.dataArray;if(I[H-1]==null||typeof I[H-1].length!="number"||I[H-1].length<=0)H=-1}k=false;if(d.Wd&&H>0)k=ha(I[H-1]);q=null;if(d.Bj!=null&&H>0){if(d.Cj==null)for(var L=0;L<d.aa.length;L++)if(pui.L(d.Bj.fieldName)==
1343
- d.aa[L]){d.Cj=L;break}if(d.Cj!=null){L={};L[d.aa[d.Cj]]=I[H-1][d.Cj];q=pui.R(d.Bj,L,d.ref)}}if(!pui.p(d.I["row background"])&&d.I["row background"]!=null&&d.I["row background"]!="")q=d.I["row background"];var S=null;if(d.Dj!=null&&H>0){if(d.Ej==null)for(L=0;L<d.aa.length;L++)if(pui.L(d.Dj.fieldName)==d.aa[L]){d.Ej=L;break}if(d.Ej!=null){L={};L[d.aa[d.Ej]]=I[H-1][d.Ej];S=pui.R(d.Dj,L,d.ref)}}if(!pui.p(d.I["row font color"])&&d.I["row font color"]!=null&&d.I["row font color"]!="")S=d.I["row font color"];
1344
- for(L=0;L<J.length;L++){pui.da(J[L],"selected");pui.da(J[L],"hover");if(k){u(J[L],d.I["selection font color"],L);z(J[L],d.I["selection background"]||"",L);if((I=d.I["selection image"])&&I.trim())J[L].style.backgroundImage="url('"+pui.normalizeURL(I.trim(),true)+"')";pui.Q(J[L],"selected");d.ll=H}else if(m==true){u(J[L],d.I["hover font color"],L);z(J[L],d.I["hover background"]||"",L);if((I=d.I["hover image"])&&I.trim()){J[L].style.backgroundImage="url('"+pui.normalizeURL(I.trim(),true)+"')";J[L].style.backgroundRepeat=
1345
- "repeat-x"}pui.Q(J[L],"hover")}else{S=S||d.I["row font color"];if(!S||!S.trim())S=d.I[(v?"even":"odd")+" row font color"];u(J[L],S||"",L);q=q||d.I["row background"];if(!q||!q.trim())q=d.I[(v?"even":"odd")+" row background"];z(J[L],q||"",L);J[L].style.backgroundImage=""}}if(m!=true&&d.Fb!=null)d.Fb.style.display="none";if(m==true&&d.Fb!=null)d.Fb.style.display=""}}};this.xx=function(){var k=d.c.e,m=k.designer;m.ca.pn("Move "+m.selection.Tw(),m);var q=m.$r,u,z;if(m.Ge.style.display==""){u=parseInt(m.Ge.style.top);
1341
+ return ia(k)};this.getSelectedRows=function(){var k=[],m=d.dataArray;if(d.isFiltered())m=d.X;for(var q=0;q<m.length;q++)if(ia(m[q])){var u=q+1;if(typeof d.hc!="undefined"&&d.hc===true||d.isFiltered())u=m[q].o;k.push(u)}return k};this.$c=function(k,m,q){function u(aa,O,V){if(O==null)O="";else{var U=O.split(",");if(U.length>1)O=V<U.length?U[V]:U[0]}aa.style.color=O;if(P=="genie"&&!pui.fa)for(V=0;V<aa.childNodes.length;V++)aa.childNodes[V].style.color=O}function z(aa,O,V){if(O==null)O="";else{var U=
1342
+ O.split(",");if(U.length>1)O=V<U.length?U[V]:U[0]}return aa.style.backgroundColor=O}var v=k%2==1;if(d.h)v=!v;if(d.cells!=null){var J=d.cells[k];if(J!=null){var I,H=-1;if(d.j!=null&&!isNaN(d.j)&&d.j>0){if(typeof q=="number"&&q>=0)H=q+1;else if(d.Mb<1)H=k+d.j-1+(d.h?0:1);I=d.isFiltered()?d.X:d.dataArray;if(I[H-1]==null||typeof I[H-1].length!="number"||I[H-1].length<=0)H=-1}k=false;if(d.Wd&&H>0)k=ia(I[H-1]);q=null;if(d.Bj!=null&&H>0){if(d.Cj==null)for(var M=0;M<d.aa.length;M++)if(pui.L(d.Bj.fieldName)==
1343
+ d.aa[M]){d.Cj=M;break}if(d.Cj!=null){M={};M[d.aa[d.Cj]]=I[H-1][d.Cj];q=pui.R(d.Bj,M,d.ref)}}if(!pui.p(d.I["row background"])&&d.I["row background"]!=null&&d.I["row background"]!="")q=d.I["row background"];var R=null;if(d.Dj!=null&&H>0){if(d.Ej==null)for(M=0;M<d.aa.length;M++)if(pui.L(d.Dj.fieldName)==d.aa[M]){d.Ej=M;break}if(d.Ej!=null){M={};M[d.aa[d.Ej]]=I[H-1][d.Ej];R=pui.R(d.Dj,M,d.ref)}}if(!pui.p(d.I["row font color"])&&d.I["row font color"]!=null&&d.I["row font color"]!="")R=d.I["row font color"];
1344
+ for(M=0;M<J.length;M++){pui.da(J[M],"selected");pui.da(J[M],"hover");if(k){u(J[M],d.I["selection font color"],M);z(J[M],d.I["selection background"]||"",M);if((I=d.I["selection image"])&&I.trim())J[M].style.backgroundImage="url('"+pui.normalizeURL(I.trim(),true)+"')";pui.Q(J[M],"selected");d.ll=H}else if(m==true){u(J[M],d.I["hover font color"],M);z(J[M],d.I["hover background"]||"",M);if((I=d.I["hover image"])&&I.trim()){J[M].style.backgroundImage="url('"+pui.normalizeURL(I.trim(),true)+"')";J[M].style.backgroundRepeat=
1345
+ "repeat-x"}pui.Q(J[M],"hover")}else{R=R||d.I["row font color"];if(!R||!R.trim())R=d.I[(v?"even":"odd")+" row font color"];u(J[M],R||"",M);q=q||d.I["row background"];if(!q||!q.trim())q=d.I[(v?"even":"odd")+" row background"];z(J[M],q||"",M);J[M].style.backgroundImage=""}}if(m!=true&&d.Fb!=null)d.Fb.style.display="none";if(m==true&&d.Fb!=null)d.Fb.style.display=""}}};this.xx=function(){var k=d.c.e,m=k.designer;m.ca.pn("Move "+m.selection.Tw(),m);var q=m.$r,u,z;if(m.Ge.style.display==""){u=parseInt(m.Ge.style.top);
1346
1346
  z=parseInt(m.Ge.style.left)}else{u=parseInt(k.dom.style.top);z=parseInt(k.dom.style.left)}var v=pui.layout.vf(q);z-=v.x;u-=v.y;if(m.selection.su){z=m.selection.Tj(z,pui.vl);u=m.selection.Tj(u,pui.wl)}var J=u-parseInt(k.dom.style.top),I=z-parseInt(k.dom.style.left);d.Hc(function(H){H.parentNode.removeChild(H);q.appendChild(H);H.style.top=parseInt(H.style.top)+J+"px";H.style.left=parseInt(H.style.left)+I+"px"});d.d!=null&&d.d.bh(q);d.i!=null&&d.i.bh(q);d.b=q;d.c.sizeMe!=null&&typeof d.c.sizeMe=="function"&&
1347
1347
  d.c.sizeMe();d.setScrollBar();k.properties.top=u+"px";k.properties.left=z+"px";m.xz.style.display="none";m.Ge.style.display="none";m.$r=null;m.selection.clear();m.selection.add(k);m.nn();pui.ide.Lt()};this.yx=function(){var k=d.c.e,m=k.designer;m.ca.pn("Move "+m.selection.Tw(),m);var q=parseInt(m.Ge.style.top)-parseInt(k.dom.style.top),u=parseInt(m.Ge.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=
1348
1348
  parseInt(z.style.left)+u+"px"});d.d!=null&&d.d.bh(m.b);d.i!=null&&d.i.bh(m.b);d.b=m.b;d.setScrollBar();k.properties.top=m.Ge.style.top;k.properties.left=m.Ge.style.left;m.Ge.style.display="none";m.selection.clear();m.selection.add(k);m.nn();pui.ide.Lt()};this.selectRow=function(k,m){if(!(!d.Wd||k<1||k>d.dataArray.length)){for(var q=!d.isFiltered()&&(typeof d.hc=="undefined"||d.hc!==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){ga(d.dataArray[u],
1349
1349
  true,u);if(d.j!=null&&!isNaN(d.j)&&d.j>0)d.Mh=k+d.j-1+(d.h?0:1)}}else if((d.singleSelection||!m)&&d.dataArray[u].selected==true)ga(d.dataArray[u],false,u);ge(d)}};this.deselectRow=function(k){function m(z){ga(d.dataArray[z],false,z);if(q)ge(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.Wd||k<1||k>d.dataArray.length)){var q=d.isFiltered();if(!q&&(typeof d.hc=="undefined"||d.hc!==true))d.dataArray[k-1].selected==true&&m(k-1);else for(var u=
1350
- 0;u<d.dataArray.length;u++)if(d.dataArray[u].o==k&&d.dataArray[u].selected==true){m(u);break}}};this.sd=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;gb(u,m,z,q)}!d.designMode&&!m&&d.$c(k)}};this.Ma=function(){for(var k=0;k<d.cells.length;k++)for(var m=0;m<d.cells[k].length;m++)ta(k,m);if(Kc==null)Kc=d.uf()};this.ea=function(){return d.dataProps["custom sql"]!=null&&d.dataProps["custom sql"]!=""||d.dataProps["data url"]!=
1350
+ 0;u<d.dataArray.length;u++)if(d.dataArray[u].o==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;gb(u,m,z,q)}!d.designMode&&!m&&d.$c(k)}};this.Ma=function(){for(var k=0;k<d.cells.length;k++)for(var m=0;m<d.cells[k].length;m++)ta(k,m);if(Kc==null)Kc=d.uf()};this.ea=function(){return d.dataProps["custom sql"]!=null&&d.dataProps["custom sql"]!=""||d.dataProps["data url"]!=
1351
1351
  null&&d.dataProps["data url"]!=""||d.dataProps["database file"]!=null&&d.dataProps["database file"]!=""?true:false};this.yy=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.zy=function(k){if(k==null)k=d.borderWidth;k=parseInt(k);if(isNaN(k)||k<pa&&d.designMode)k=pa;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=
1352
1352
  k+"px";d.borderWidth=k;sa();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.No=function(){d.Pe=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=
1353
1353
  ""});var k=false,m=d.c.e;if(m!=null){var q=m.designer.selection;if(q.Sd.length==1&&q.Sd[0].e==m)k=true}!k&&d.c.Tr&&d.c.Tr();d.setScrollBar()};this.mn=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.He=d;q.style.position="absolute";var u=parseInt(d.c.style.left);if(m>0)u=parseInt(d.n[m-1].style.left)+d.Wr;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)-
1354
- parseInt(d.c.style.top);q.style.height=u+"px";u=d.borderWidth;if(u===null||u<pa&&d.designMode)u=pa;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.jz;q.oncontextmenu=ya(false);d.b.appendChild(q);d.n[m]=q;sa();aa(d.n,m,true);if(m>0){m=m-1;for(q=1;q<d.k.length;q++){u=Ka(q-1,m);u.w=d.ma&&(k||k==0)?k:m;Y(u)}}Q();d.setScrollBar()};this.removeColumn=function(k){d.ma?d.hideColumn(k):d.Np(k)};
1354
+ parseInt(d.c.style.top);q.style.height=u+"px";u=d.borderWidth;if(u===null||u<pa&&d.designMode)u=pa;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.jz;q.oncontextmenu=ya(false);d.b.appendChild(q);d.n[m]=q;sa();Z(d.n,m,true);if(m>0){m=m-1;for(q=1;q<d.k.length;q++){u=Ka(q-1,m);u.w=d.ma&&(k||k==0)?k:m;ca(u)}}T();d.setScrollBar()};this.removeColumn=function(k){d.ma?d.hideColumn(k):d.Np(k)};
1355
1355
  this.Np=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=Ga(k);if(k<0){pui.alert(pui.getLanguageText("runtimeMsg","cannot find col"));return}}d.moveColumn(k,d.cells[0].length);d.Fp();d.Xb();d.Le()}};this.Fp=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-
1356
- 1]=null;d.cells[m].splice(k-1,1)}sa();Q();d.setScrollBar()}};this.moveColumn=function(k,m,q){function u(O,V,U,ba){if(O>V){if(U>V&&U<O)ba-=1;if(U==V)ba=O-1}if(V>O){if(U>=O&&U<V)ba+=1;if(U==V)ba=O}return ba}for(var z=0;z<d.cells.length;z++){var v,J=v=d.cells[z][k];if(d.cells[z].length>m){var I=d.cells[z][m];J.parentNode&&I&&I.parentNode&&J.parentNode.insertBefore(J,I)}else{var H=d.cells[z][d.cells[z].length-1];J.parentNode&&I&&I.parentNode&&J.parentNode.insertBefore(J,H.nextSibling)}d.cells[z].splice(m,
1357
- 0,v);v=k;m<=k&&v++;d.cells[z].splice(v,1);for(J=0;J<d.cells[z].length;J++){v=d.cells[z][J];v.col=J}}for(z=1;z<d.n.length-1;z++)d.n[z].style.left=pui.Vd(d.n[z-1].style.left)+pui.Vd(d.cells[0][z-1].style.width)+"px";if(d.designMode){var L=false,S=d.c.e,ca=JSON!=null&&typeof JSON.parse=="function"&&typeof JSON.stringify=="function";z=function(O){var V=S.properties[O];if(!(V==null||V==""||pui.p(V))){var U=pui.Kb(V);if(U){if(!ca)return;var ba=JSON.parse(V.designValue)}else ba=V.split(",");if(!(ba.length==
1358
- 1&&O!="column headings"&&O!="column widths")){for(var Z=d.cells[0].length;ba.length>Z;){ba.pop();U&&V.translations.pop()}for(;ba.length<Z;){ba.push("");U&&V.translations.push(0)}ba.splice(m,0,ba[k]);U&&V.translations.splice(m,0,V.translations[k]);Z=k;m<=k&&Z++;ba.splice(Z,1);U&&V.translations.splice(Z,1);if(U){U=JSON.stringify(ba);if(ba=V.designValue!=U){V.designValue=U;U=V}}else{U=ba.join(",");ba=V!=U}if(ba){S.properties[O]=U;S.pb[O]=true;S.hd=true;L=S.designer.jd[S.designer.Na.ub]=true}}}};z("font family");
1359
- z("font size");z("font style");z("font weight");z("letter spacing");z("text align");z("text decoration");z("text transform");z("word spacing");z("header font family");z("header font size");z("header font style");z("header font weight");z("header text align");z("header font color");z("header background");z("column headings");I=d.c.e.properties["column headings"];if(pui.Kb(I)&&ca)d.columnHeadings=JSON.parse(I.designValue);else{if(I==null||typeof I!="string")I="";d.columnHeadings=I.split(",")}z("odd row font color");
1360
- z("odd row background");z("even row font color");z("even row background");z("row font color");z("row background");z("column widths");if(L){S.designer.fp();S.designer.ob.refresh();P=="dspf"&&pui.ide.refreshRibbon()}}d.Ma();if(!d.designMode){if(d.ea()){z=d.dataProps["database fields"];if(z!=null&&z!=""){z=z.split(",");z.splice(m,0,z[k]);v=k;m<=k&&v++;z.splice(v,1);d.dataProps["database fields"]=z.join(",")}}if(d.C.length>0)for(z=0;z<d.C.length;z++){S=d.C[z];I=J=Number(S.column);I=d.ma&&q?S.columnId==
1361
- q.columnId?m:J>=m&&J<k+1?I+1:u(m,k,J,I):u(m,k,J,I);if(J!=I)S.column=String(I)}d.columnHeadings.splice(m,0,d.columnHeadings[k]);v=k;m<=k&&v++;d.columnHeadings.splice(v,1);d.alignColumnTotals()}};this.af=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.He=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.cb;q=parseInt(d.k[k-1].style.top)+
1362
- 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<pa&&d.designMode)q=pa;if(q!==null)m.style.borderTopWidth=q+"px";m.style.zIndex=d.Ww;if(d.c.style.visibility=="hidden")m.style.visibility="hidden";m.oncontextmenu=ya(false);d.b.appendChild(m);d.k[k]=m;qa();aa(d.k,k,false);if(k>0)for(m=1;m<d.n.length;m++){q=m-1;var u=Ka(k-1,q);u.w=q;Y(u)}Q();d.setScrollBar()};this.Aj=function(){var k=
1363
- 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)}qa();Q();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=Bb(J);if(J!=
1364
- 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.td(k);else{d.j=k;d.getData()}return d.getRRN(k)}};this.setNumberOfRows=function(k){d.setProperty("number of rows",String(k));d.Ma();d.sd();d.Rt||d.getData()};this.render=function(){d.Ma();d.sd();d.fc();d.Pe&&d.No()};this.refresh=function(){d.j=1;d.totalRecs=null;d.wa=false;
1365
- if(d.Cc)d.d.Sa=d.totalRecs;pui.Pa=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.xe.expandAll();else{var m=d.Pb[k-1].node;je(d.xe,m)}d.Ql(m)};this.collapseTreeLevel=function(k){if(k===0)d.xe.collapseAll();else{var m=d.Pb[k-1].node;ke(d.xe,m)}d.Ql(m)};this.toggleTreeLevel=function(k){k=d.Pb[k-1].node;var m=d.xe;if(k.Gd==="expanded"){ke(m,k);k.Gd="collapsed"}else{je(m,k);k.Gd="expanded"}d.Ql(k)};
1366
- this.Ql=function(k){if(k===undefined||k===null){var m=0;k=d.Pb.length}else{m=parseInt(k.data)-1;k=le(d.xe,k)}for(m=m;m<k;m++){var q=m+1,u=d.Pb[m].node;u.Jg?d.Xk(q,false,false):d.Xk(q,true,false);d.Pb[m].Du=u.Gd==="collapsed"?true:false}d.getData()};this.Sw=function(){if(d.Qe!==null)return d.Qe;for(var k=d.Qe=0;k<d.C.length;k++)if(d.C[k].value.fieldName.toUpperCase()===d.Uf.toUpperCase()){d.Qe=d.C[k].columnId;break}return d.Qe};this.clear=function(k){d.dataArray=[];for(var m=0;m<d.C.length;m++)d.C[m].domEls=
1356
+ 1]=null;d.cells[m].splice(k-1,1)}sa();T();d.setScrollBar()}};this.moveColumn=function(k,m,q){function u(O,V,U,ba){if(O>V){if(U>V&&U<O)ba-=1;if(U==V)ba=O-1}if(V>O){if(U>=O&&U<V)ba+=1;if(U==V)ba=O}return ba}for(var z=0;z<d.cells.length;z++){var v,J=v=d.cells[z][k];if(d.cells[z].length>m){var I=d.cells[z][m];J.parentNode&&I&&I.parentNode&&J.parentNode.insertBefore(J,I)}else{var H=d.cells[z][d.cells[z].length-1];J.parentNode&&I&&I.parentNode&&J.parentNode.insertBefore(J,H.nextSibling)}d.cells[z].splice(m,
1357
+ 0,v);v=k;m<=k&&v++;d.cells[z].splice(v,1);for(J=0;J<d.cells[z].length;J++){v=d.cells[z][J];v.col=J}}for(z=1;z<d.n.length-1;z++)d.n[z].style.left=pui.Vd(d.n[z-1].style.left)+pui.Vd(d.cells[0][z-1].style.width)+"px";if(d.designMode){var M=false,R=d.c.e,aa=JSON!=null&&typeof JSON.parse=="function"&&typeof JSON.stringify=="function";z=function(O){var V=R.properties[O];if(!(V==null||V==""||pui.p(V))){var U=pui.Kb(V);if(U){if(!aa)return;var ba=JSON.parse(V.designValue)}else ba=V.split(",");if(!(ba.length==
1358
+ 1&&O!="column headings"&&O!="column widths")){for(var Y=d.cells[0].length;ba.length>Y;){ba.pop();U&&V.translations.pop()}for(;ba.length<Y;){ba.push("");U&&V.translations.push(0)}ba.splice(m,0,ba[k]);U&&V.translations.splice(m,0,V.translations[k]);Y=k;m<=k&&Y++;ba.splice(Y,1);U&&V.translations.splice(Y,1);if(U){U=JSON.stringify(ba);if(ba=V.designValue!=U){V.designValue=U;U=V}}else{U=ba.join(",");ba=V!=U}if(ba){R.properties[O]=U;R.pb[O]=true;R.hd=true;M=R.designer.jd[R.designer.Na.ub]=true}}}};z("font family");
1359
+ z("font size");z("font style");z("font weight");z("letter spacing");z("text align");z("text decoration");z("text transform");z("word spacing");z("header font family");z("header font size");z("header font style");z("header font weight");z("header text align");z("header font color");z("header background");z("column headings");I=d.c.e.properties["column headings"];if(pui.Kb(I)&&aa)d.columnHeadings=JSON.parse(I.designValue);else{if(I==null||typeof I!="string")I="";d.columnHeadings=I.split(",")}z("odd row font color");
1360
+ z("odd row background");z("even row font color");z("even row background");z("row font color");z("row background");z("column widths");if(M){R.designer.fp();R.designer.ob.refresh();P=="dspf"&&pui.ide.refreshRibbon()}}d.Ma();if(!d.designMode){if(d.ea()){z=d.dataProps["database fields"];if(z!=null&&z!=""){z=z.split(",");z.splice(m,0,z[k]);v=k;m<=k&&v++;z.splice(v,1);d.dataProps["database fields"]=z.join(",")}}if(d.C.length>0)for(z=0;z<d.C.length;z++){R=d.C[z];I=J=Number(R.column);I=d.ma&&q?R.columnId==
1361
+ q.columnId?m:J>=m&&J<k+1?I+1:u(m,k,J,I):u(m,k,J,I);if(J!=I)R.column=String(I)}d.columnHeadings.splice(m,0,d.columnHeadings[k]);v=k;m<=k&&v++;d.columnHeadings.splice(v,1);d.alignColumnTotals()}};this.af=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.He=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.cb;q=parseInt(d.k[k-1].style.top)+
1362
+ 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<pa&&d.designMode)q=pa;if(q!==null)m.style.borderTopWidth=q+"px";m.style.zIndex=d.Ww;if(d.c.style.visibility=="hidden")m.style.visibility="hidden";m.oncontextmenu=ya(false);d.b.appendChild(m);d.k[k]=m;qa();Z(d.k,k,false);if(k>0)for(m=1;m<d.n.length;m++){q=m-1;var u=Ka(k-1,q);u.w=q;ca(u)}T();d.setScrollBar()};this.Aj=function(){var k=
1363
+ 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)}qa();T();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=Bb(J);if(J!=
1364
+ 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.Ma();d.rd();d.Rt||d.getData()};this.render=function(){d.Ma();d.rd();d.fc();d.Pe&&d.No()};this.refresh=function(){d.j=1;d.totalRecs=null;d.wa=false;
1365
+ if(d.Cc)d.d.Sa=d.totalRecs;pui.Pa=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.xe.expandAll();else{var m=d.Pb[k-1].node;je(d.xe,m)}d.Ql(m)};this.collapseTreeLevel=function(k){if(k===0)d.xe.collapseAll();else{var m=d.Pb[k-1].node;ke(d.xe,m)}d.Ql(m)};this.toggleTreeLevel=function(k){k=d.Pb[k-1].node;var m=d.xe;if(k.Fd==="expanded"){ke(m,k);k.Fd="collapsed"}else{je(m,k);k.Fd="expanded"}d.Ql(k)};
1366
+ this.Ql=function(k){if(k===undefined||k===null){var m=0;k=d.Pb.length}else{m=parseInt(k.data)-1;k=le(d.xe,k)}for(m=m;m<k;m++){var q=m+1,u=d.Pb[m].node;u.Jg?d.Xk(q,false,false):d.Xk(q,true,false);d.Pb[m].Du=u.Fd==="collapsed"?true:false}d.getData()};this.Sw=function(){if(d.Qe!==null)return d.Qe;for(var k=d.Qe=0;k<d.C.length;k++)if(d.C[k].value.fieldName.toUpperCase()===d.Uf.toUpperCase()){d.Qe=d.C[k].columnId;break}return d.Qe};this.clear=function(k){d.dataArray=[];for(var m=0;m<d.C.length;m++)d.C[m].domEls=
1367
1367
  [];k&&d.refresh()};this.push=function(k,m){var q=yb(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=yb(J);u.push(J);z.push(undefined)}}d.dataArray.splice.apply(d.dataArray,
1368
1368
  u);for(v=0;v<d.C.length;v++){u=d.C[v].domEls;u.splice.apply(u,z)}q&&d.refresh()};this.insertRow=function(k){for(var m=false,q=[k,0],u=1;u<arguments.length;u++){var z=arguments[u];if(typeof z==="boolean"&&u+1===arguments.length)m=true;typeof z==="object"&&q.push(z)}m&&q.push(true);d.splice.apply(d,q)};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,
1369
1369
  m);k&&d.refresh()};this.removeRow=function(k,m){d.splice(k,1);m&&d.refresh()};this.Xk=function(k,m,q){var u=d.ys(d.dataArray,k);if(u!=null){u=d.dataArray[u-1];if(u!=null){u.rc=m;d.Mb=0;d.X=[];for(var z=0;z<d.dataArray.length;z++){u=d.dataArray[z];if(u.o==null)u.o=z+1;d.Mj(u);!u.te&&!u.rc&&d.X.push(u);u.rc&&d.Mb++}if(!d.hc)for(z=0;z<d.dataArray.length;z++)if(d.dataArray[z].o==null)d.dataArray[z].o=z+1;q&&d.getData();pui.modified=true;if(d.ye!=null){if(u.ze==null){u.ze={type:"grid hidden field",o:k,
1370
- N:d.ye};k=pui.Ib(d.Xa)+"."+pui.L(d.ye.fieldName)+"."+k;if(pui.O[k]==null){pui.O[k]=[];pui.O[k].push(u.ze)}}u.ze.modified=true;u.ze.value=m?"1":"0";if(u.ze.S)u.ze.S=u.ze.value}}}};this.hideRow=function(k){d.Xk(k,true,true)};this.showRow=function(k){d.Xk(k,false,true)};this.clearState=function(k){var m=R();if(m!=null)if(typeof k=="string"){k=k.toLowerCase();for(var q in m)if(q.toLowerCase()==k){delete m[q];N(m);break}if(d.ma){if(k==="colsequence"&&m.hidableColState&&m.hidableColState.cols){if(m.colWidths instanceof
1371
- Array){var u=m.colWidths.map(la());m.colWidths=[]}for(q=k=0;q<m.hidableColState.cols.length;q++){var z=m.hidableColState.cols[q];if(z.savedColumn!=null&&z.savedColumn>=0&&z.showing){u&&m.colWidths.push(u[z.savedColumn]);z.savedColumn=k++}}}else k=="hidablecolstate"&&delete m.colWidths;N(m)}}else{d.Yd="{}";if(nb==true)try{delete sessionStorage[d.Ob]}catch(v){}else if(Qa==true)try{delete pui.uj[d.Ob]}catch(J){}else try{delete localStorage[d.Ob]}catch(I){}}};this.getSelectedCount=function(){var k=0;
1372
- if(d.Wd&&d.Cb){for(var m,q=0;q<d.aa.length;q++)if(pui.L(d.Cb.fieldName)==d.aa[q]){m=q;break}if(m!=null&&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.Nh&&k++}return k};this.Pi=function(){if(d.Fd){var k=Bb(d.Fd);if(k)if(!k.Sj)if(!(P=="genie"&&d.designMode)){k.style.visibility="hidden";k.style.display="none"}}};this.zo=function(k,m){if(k==null||isNaN(k))return null;for(var q=0;q<d.C.length;q++){var u=
1370
+ N:d.ye};k=pui.Ib(d.Xa)+"."+pui.L(d.ye.fieldName)+"."+k;if(pui.O[k]==null){pui.O[k]=[];pui.O[k].push(u.ze)}}u.ze.modified=true;u.ze.value=m?"1":"0";if(u.ze.S)u.ze.S=u.ze.value}}}};this.hideRow=function(k){d.Xk(k,true,true)};this.showRow=function(k){d.Xk(k,false,true)};this.clearState=function(k){var m=L();if(m!=null)if(typeof k=="string"){k=k.toLowerCase();for(var q in m)if(q.toLowerCase()==k){delete m[q];Q(m);break}if(d.ma){if(k==="colsequence"&&m.hidableColState&&m.hidableColState.cols){if(m.colWidths instanceof
1371
+ Array){var u=m.colWidths.map(la());m.colWidths=[]}for(q=k=0;q<m.hidableColState.cols.length;q++){var z=m.hidableColState.cols[q];if(z.savedColumn!=null&&z.savedColumn>=0&&z.showing){u&&m.colWidths.push(u[z.savedColumn]);z.savedColumn=k++}}}else k=="hidablecolstate"&&delete m.colWidths;Q(m)}}else{d.Yd="{}";if(nb==true)try{delete sessionStorage[d.Ob]}catch(v){}else if(Qa==true)try{delete pui.uj[d.Ob]}catch(J){}else try{delete localStorage[d.Ob]}catch(I){}}};this.getSelectedCount=function(){var k=0;
1372
+ if(d.Wd&&d.Cb){for(var m,q=0;q<d.aa.length;q++)if(pui.L(d.Cb.fieldName)==d.aa[q]){m=q;break}if(m!=null&&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.Nh&&k++}return k};this.Pi=function(){if(d.Ed){var k=Bb(d.Ed);if(k)if(!k.Sj)if(!(P=="genie"&&d.designMode)){k.style.visibility="hidden";k.style.display="none"}}};this.zo=function(k,m){if(k==null||isNaN(k))return null;for(var q=0;q<d.C.length;q++){var u=
1373
1373
  d.C[q],z=u.value;if(u["field type"]=="html container")z=u.html;if(z!=null&&typeof z=="object"&&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.L(k);for(var m=0;m<d.C.length;m++){var q=d.C[m],u=q.value;if(q["field type"]=="html container")u=q.html;if(u!=null&&typeof u=="object"&&(u.fieldName!=null&&pui.L(u.fieldName)==k||u.longName!=
1374
1374
  null&&pui.L(u.longName)==k)){q=Number(q.column);if(q!=null&&!isNaN(q))return q}}return null};this.getColumnIdFromFieldName=function(k){k=pui.L(k);for(var m=0;m<d.C.length;m++){var q=d.C[m],u=q.value;if(q["field type"]=="html container")u=q.html;if(u!=null&&typeof u=="object"&&(u.fieldName!=null&&pui.L(u.fieldName)==k||u.longName!=null&&pui.L(u.longName)==k)){q=q.columnId;if(q!=null&&!isNaN(q))return q}}return null};this.Qj=function(k,m){if(!(d.ea()&&d.wa==false))if(k.Ij==null){k.Ij=[];if(k.pui==null)k.pui=
1375
- {};k.pui.formats=[];k.pui.rd=[];for(var q=0;q<d.C.length;q++){var u=d.C[q],z=Number(u.column),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.L(v.fieldName);for(z=0;z<d.aa.length;z++)if(u==d.aa[z]){k.Ij.push(z);k.pui.formats.push(v);k.pui.rd.push(q);break}}}}};this.startFind=function(k){if(typeof k=="number")k=d.cells[0][Ga(k)];if(k!=null){d.Sk=k;d.ab.type="find";d.ab.Lf=d.find;var m=pui.getLanguageText("runtimeText","find text")+"...";
1375
+ {};k.pui.formats=[];k.pui.qd=[];for(var q=0;q<d.C.length;q++){var u=d.C[q],z=Number(u.column),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.L(v.fieldName);for(z=0;z<d.aa.length;z++)if(u==d.aa[z]){k.Ij.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][Ga(k)];if(k!=null){d.Sk=k;d.ab.type="find";d.ab.Lf=d.find;var m=pui.getLanguageText("runtimeText","find text")+"...";
1376
1376
  d.ab.vc.placeholder=m;be(d.ab,k);if(d.ea())d.ab.interval=250;d.Qj(k);d.Y.w=k.w;d.Y.col=k.col;d.ab.show();d.ab.clear();d.ab.focus()}};this.clearHighlighting=function(){d.Y.text="";d.getData()};this.find=function(k,m,q){if(!d.sc){var u=d.Sk,z=k,v=m;if(typeof k=="number"){u=d.cells[0][Ga(k)];if(u==null)return;z=m;v=q;d.Y.w=u.w;d.Y.col=u.col;d.Qj(u)}d.Y.text="";if(z=="")d.getData();else if(d.ea()&&d.wa==false){sc=d.Y.text=z;rc=u.w+1;tc=1;if(v)tc=d.j+1;d.mask();d.Jb();d.getData();tc=rc=sc=null}else{q=
1377
- 0;if(v)q=d.j;v=z.toLowerCase();k=u.Ij;var J=false;m=d.dataArray;if(d.isFiltered())m=d.X;for(q=q;q<m.length;q++){for(var I=0;I<k.length;I++){var H=m[q][k[I]];if(u.pui&&u.pui.formats&&u.pui.formats[I]!=null&&typeof u.pui.formats[I]=="object"){u.pui.formats[I].value=H;H=pui.tc.format(u.pui.formats[I])}if(H.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.td(J,false)===false&&d.getData();else if(d.i){I=d.getRecordCount()-d.Do()+1;J>I?d.scrollToRow(I):d.scrollToRow(J)}else d.getData();
1377
+ 0;if(v)q=d.j;v=z.toLowerCase();k=u.Ij;var J=false;m=d.dataArray;if(d.isFiltered())m=d.X;for(q=q;q<m.length;q++){for(var I=0;I<k.length;I++){var H=m[q][k[I]];if(u.pui&&u.pui.formats&&u.pui.formats[I]!=null&&typeof u.pui.formats[I]=="object"){u.pui.formats[I].value=H;H=pui.tc.format(u.pui.formats[I])}if(H.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){I=d.getRecordCount()-d.Do()+1;J>I?d.scrollToRow(I):d.scrollToRow(J)}else d.getData();
1378
1378
  else d.getData();J=true;break}}if(J)break}J||d.getData()}}};this.startFilter=function(k){if(typeof k=="number")k=d.cells[0][Ga(k)];if(k!=null){d.Sk=k;d.ab.type=d.ak()?"pgfilter":"filter";d.ab.Lf=d.nw;var m=pui.getLanguageText("runtimeText","filter text")+"...";d.ab.vc.placeholder=m;d.Oc||be(d.ab,k);if(d.ea())d.ab.interval=250;d.Qj(k);d.Y.w=k.w;d.Y.col=k.col;if(!d.Oc){d.ab.show();d.ab.clear()}if(k.sa!=null&&k.sa!=""){d.ab.setText(k.oh?"":k.sa);d.Y.text=k.sa;d.getData()}if(d.Oc)(k=k.querySelector("input.qf"))&&
1379
1379
  k.focus();else d.ab.focus()}};this.nw=function(k){var m=d.Sk;k==""?d.removeFilter(m):d.setFilter(m,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].oh&&d.removeFilter(d.cells[0][0]);if(typeof k=="number")k=d.cells[0][Ga(k)];if(k!=null){if(d.ak())return Xa(k,m);d.Qj(k,q);d.Y.w=k.w;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.zj(u[z]);u[z].sa=null}k.oh=true}else d.im(k);k.sa=m;if(d.Oc)if(z=
1380
- k.querySelector("input.qf"))z.value=m;if(d.ea()&&d.wa==false){d.totalRecs=null;d.j=1;d.mask();d.Jb()}else{u=k.Ij;var v=k.w;d.X=[];for(z=0;z<d.dataArray.length;z++){var J=d.dataArray[z];if(q)J.Hd=[];if(J.o==null)J.o=z+1;for(var I=0;I<u.length;I++){var H=J[u[I]],L=false;if(k.pui!=null){if(k.pui.formats!=null&&k.pui.formats[I]!=null&&typeof k.pui.formats[I]=="object"){var S=k.pui.formats[I];S.value=H;H=pui.tc.format(S)}if(k.pui.rd!=null&&k.pui.rd[I]!=null&&d.C[k.pui.rd[I]]!=null&&typeof d.C[k.pui.rd[I]]==
1381
- "object"){S=d.C[k.pui.rd[I]];var ca=parseInt(S.left,10),O=parseInt(S.top,10);if(S.visibility=="hidden"||!isNaN(ca)&&!isNaN(O)&&ca<0&&O<0)L=true}}if(J.Hd==null)J.Hd=[];J.Hd[v]=true;if(!L&&d.bz(H,m)){J.Hd[v]=false;break}}d.Mj(J);!J.te&&!J.rc&&d.X.push(J)}}d.getData();Va&&d.Zt(q,m);M("onfilterchange")}}};this.Zt=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.w,curCol:v.col})}q.length<
1382
- 1?d.clearState("filters"):N(q,"filters")};this.getFilter=function(k){var m=false;if(k==="*all"){k=0;m=true}if(typeof k=="number")k=d.cells[0][m?0:Ga(k)];if(k==null||typeof k.sa=="undefined")return null;if(m&&!k.oh||!m&&k.oh)return null;return k.sa};this.bz=function(k,m){function q(I){if(u){var H=I.split(".").join("").replace(",",".");if(!isNaN(H))return H}if(I.indexOf(",")!=-1){H=I.split(",").join("");if(!isNaN(H))return H}return I}var u=pui.appJob!=null&&(pui.appJob.decimalFormat=="I"||pui.appJob.decimalFormat==
1380
+ k.querySelector("input.qf"))z.value=m;if(d.ea()&&d.wa==false){d.totalRecs=null;d.j=1;d.mask();d.Jb()}else{u=k.Ij;var v=k.w;d.X=[];for(z=0;z<d.dataArray.length;z++){var J=d.dataArray[z];if(q)J.Gd=[];if(J.o==null)J.o=z+1;for(var I=0;I<u.length;I++){var H=J[u[I]],M=false;if(k.pui!=null){if(k.pui.formats!=null&&k.pui.formats[I]!=null&&typeof k.pui.formats[I]=="object"){var R=k.pui.formats[I];R.value=H;H=pui.tc.format(R)}if(k.pui.qd!=null&&k.pui.qd[I]!=null&&d.C[k.pui.qd[I]]!=null&&typeof d.C[k.pui.qd[I]]==
1381
+ "object"){R=d.C[k.pui.qd[I]];var aa=parseInt(R.left,10),O=parseInt(R.top,10);if(R.visibility=="hidden"||!isNaN(aa)&&!isNaN(O)&&aa<0&&O<0)M=true}}if(J.Gd==null)J.Gd=[];J.Gd[v]=true;if(!M&&d.bz(H,m)){J.Gd[v]=false;break}}d.Mj(J);!J.te&&!J.rc&&d.X.push(J)}}d.getData();Va&&d.Zt(q,m);N("onfilterchange")}}};this.Zt=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.w,curCol:v.col})}q.length<
1382
+ 1?d.clearState("filters"):Q(q,"filters")};this.getFilter=function(k){var m=false;if(k==="*all"){k=0;m=true}if(typeof k=="number")k=d.cells[0][m?0:Ga(k)];if(k==null||typeof k.sa=="undefined")return null;if(m&&!k.oh||!m&&k.oh)return null;return k.sa};this.bz=function(k,m){function q(I){if(u){var H=I.split(".").join("").replace(",",".");if(!isNaN(H))return H}if(I.indexOf(",")!=-1){H=I.split(",").join("");if(!isNaN(H))return H}return I}var u=pui.appJob!=null&&(pui.appJob.decimalFormat=="I"||pui.appJob.decimalFormat==
1383
1383
  "J");if(m.substr(0,8).toLowerCase()=="between "){var z=m.substr(8).toLowerCase().split(" ");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=Lb(v[z]).toLowerCase();if(m==" "&&k=="")return true;if(Lb(k).toLowerCase()==m)return true}return false}else if(m.substr(0,8).toLowerCase()==
1384
1384
  "jvalues "){m=m.substr(8).toLowerCase();if(m=="")return true;try{v=JSON.parse(m);if(!Array.isArray(v))return false}catch(J){return false}for(z=0;z<v.length;z++){m=Lb(v[z]).toLowerCase();if(m==" "&&k=="")return true;if(Lb(k).toLowerCase()==m)return true}return false}else if(m.substr(0,12).toLowerCase()=="starts with "){m=m.substr(12).toLowerCase();return m==k.substr(0,m.length).toLowerCase()}else if(m.substr(0,2)=="=="){m=m.substr(2);if(m==" "&&k=="")return true;if(m=="")return true;return m.toLowerCase()==
1385
1385
  k.toLowerCase()}else if(m.substr(0,2)==">="){m=m.substr(2);if(m=="")return true;m=q(m);k=q(k);return isNaN(m)?k.toLowerCase()>=m.toLowerCase():Number(k)>=Number(m)}else if(m.substr(0,2)=="<="){m=m.substr(2);if(m=="")return true;m=q(m);k=q(k);return isNaN(m)?k.toLowerCase()<=m.toLowerCase():Number(k)<=Number(m)}else if(m.substr(0,2)=="!="||m.substr(0,2)=="<>"){m=m.substr(2);if(m=="")return true;return isNaN(m)?k.toLowerCase().indexOf(m.toLowerCase())<0:Number(m)!=Number(k)}else if(m.substr(0,1)=="="){m=
@@ -1387,37 +1387,37 @@ m.substr(1);if(m==" "&&k=="")return true;if(m=="")return true;return m.toLowerCa
1387
1387
  m.toUpperCase();var u=m.match(/^BETWEEN (.+) AND (.+)$/);if(u!=null&&u.length==3)q="&fltrtype"+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(Lb(u[z]))}}}else if(m.substr(0,8)=="JVALUES "){u=m.substr(8);if(u!=""){try{u=JSON.parse(u);
1388
1388
  Array.isArray(u)||(u=[])}catch(v){u=[]}if(u.length>0){q="&fltrtype"+k+"=VAL&fltrcnt"+k+"="+String(u.length);for(z=0;z<u.length;z++)q+="&fltrval"+k+"_"+String(z)+"="+encodeURIComponent(Lb(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"+
1389
1389
  k+"=%3E%3D&fltrval"+k+"="+encodeURIComponent(m.substr(2)):m.substr(0,2)=="<="?"&fltrtype"+k+"=%3C%3D&fltrval"+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.Mj=
1390
- function(k){k.te=false;if(k.Hd!=null)for(var m=0;m<k.Hd.length;m++)if(k.Hd[m]===true){k.te=true;break}};this.removeFilter=function(k){if(!d.sc){if(typeof k=="number")k=d.cells[0][Ga(k)];if(k!=null){d.Y.text="";d.zj(k);k.sa=null;if(d.Oc){var m=k.querySelector("input.qf");if(m)m.value=""}if(d.ak())return Xa(k,"");else if(d.ea()&&d.wa==false){d.totalRecs=null;d.j=1;d.mask();d.Jb()}else{k.oh&&delete k.oh;k=k.w;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.Hd!=
1391
- null)q.Hd[k]=false;d.Mj(q);!q.te&&!q.rc&&d.X.push(q)}}d.getData();Va&&d.Zt();M("onfilterchange")}}};this.removeAllFilters=function(){if(!d.sc){d.Y.text="";for(var k=d.cells[0],m=0;m<k.length;m++){var q=k[m];d.zj(q);q.sa=null;if(d.Oc)if(q=q.querySelector("input.qf"))q.value=""}if(d.ak())return rb("","");d.X=[];for(m=0;m<d.dataArray.length;m++){k=d.dataArray[m];k.Hd=null;k.te=false;if(k.o==null)k.o=m+1;k.rc||d.X.push(k)}if(d.ea()&&d.wa==false){d.totalRecs=null;d.j=1;d.mask();d.Jb()}d.getData();d.clearState("filters");
1392
- M("onfilterchange")}};this.ss=function(){for(var k=0,m=d.cells[0],q=0;q<m.length;q++){var u=m[q];u.sa!=null&&u.sa!=""&&k++}return k};this.isFiltered=function(k){if(d.rg!=null)return false;if(!k&&d.Mb>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.im=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");
1390
+ function(k){k.te=false;if(k.Gd!=null)for(var m=0;m<k.Gd.length;m++)if(k.Gd[m]===true){k.te=true;break}};this.removeFilter=function(k){if(!d.sc){if(typeof k=="number")k=d.cells[0][Ga(k)];if(k!=null){d.Y.text="";d.zj(k);k.sa=null;if(d.Oc){var m=k.querySelector("input.qf");if(m)m.value=""}if(d.ak())return Xa(k,"");else if(d.ea()&&d.wa==false){d.totalRecs=null;d.j=1;d.mask();d.Jb()}else{k.oh&&delete k.oh;k=k.w;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.Gd!=
1391
+ null)q.Gd[k]=false;d.Mj(q);!q.te&&!q.rc&&d.X.push(q)}}d.getData();Va&&d.Zt();N("onfilterchange")}}};this.removeAllFilters=function(){if(!d.sc){d.Y.text="";for(var k=d.cells[0],m=0;m<k.length;m++){var q=k[m];d.zj(q);q.sa=null;if(d.Oc)if(q=q.querySelector("input.qf"))q.value=""}if(d.ak())return rb("","");d.X=[];for(m=0;m<d.dataArray.length;m++){k=d.dataArray[m];k.Gd=null;k.te=false;if(k.o==null)k.o=m+1;k.rc||d.X.push(k)}if(d.ea()&&d.wa==false){d.totalRecs=null;d.j=1;d.mask();d.Jb()}d.getData();d.clearState("filters");
1392
+ N("onfilterchange")}};this.ss=function(){for(var k=0,m=d.cells[0],q=0;q<m.length;q++){var u=m[q];u.sa!=null&&u.sa!=""&&k++}return k};this.isFiltered=function(k){if(d.rg!=null)return false;if(!k&&d.Mb>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.im=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");
1393
1393
  k.style.cursor="pointer";k.nc.onclick=function(q){if(!pui.Be(q)){d.startFilter(k);vb(q)}};var m=k;if(m.firstChild!=null&&m.firstChild.tagName=="DIV")m=m.firstChild;if(d.gc!=null&&d.gc.parentNode===m)m.insertBefore(k.nc,d.gc);else k.Zc!=null&&k.Zc.parentNode===m?m.insertBefore(k.nc,k.Zc):m.appendChild(k.nc)}};this.zj=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.te!=null&&k.te===true)m=
1394
1394
  true;return m};this.ak=function(){return d.c.js!=null};this.hideColumn=function(k){return d.Hs(k,false)};this.showColumn=function(k){return d.Hs(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.ys=function(k,m){var q=m,u=true;if(typeof d.hc!="undefined"&&d.hc===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<
1395
1395
  1||q>k.length||u==false)q=null;return q};this.getRowNumber=function(k){var m=d.dataArray;if(d.isFiltered())m=d.X;var q=d.ys(m,k);if(q==null)q=k;if(q<1)q=1;if(q>m.length)q=m.length;return q};this.getRRN=function(k){k=k;var m=d.dataArray;if(d.isFiltered())m=d.X;if(k<1)k=1;if(k>m.length)k=m.length;m=m[k-1];return m!=null&&m.o?m.o:k};this.Hs=function(k,m){if(!this.ma)return false;if(typeof k=="string")k=Number(k);if(!isNaN(k))for(var q=d.ga,u=0;u<q.length;u++){var z=q[u];if(z.columnId===k)return z.showing===
1396
- m?true:d.Lo(z)}return false};this.Lo=function(k,m){if(!this.ma)return false;var q=d.ga,u=!k.showing;if(d.n.length-2<1&&!u){pui.alert(pui.getLanguageText("runtimeMsg","cannot rmv last col"));return false}for(var z=k.columnId,v=k.currentColumn,J=q.Ai,I=[],H=d.cells[0],L=0,S=pui["grid column resize style"]!=="simple",ca=d.uf().split(",").map(function(ba){return Number(ba)}),O=0;O<q.length;O++){if(k===q[O]){q[O].showing=u;if(!u){var V=Ga(q[O].columnId);q[O].width=ca[V]}k=q[O]}if(q[O].showing){V=Ga(q[O].columnId);
1397
- if(V>-1)q[O].width=ca[V];I.push(q[O])}else L+=q[O].width-(q[O].lastAdjustment||0)}if(u){d.mn(z);V=Ga(z);O=0;if(hc&&J)if(v==-1)O=V;else{if(J[v]===z){v=v-1;for(ca=J[v];ca>=0;){ca=Ga(ca);if(ca!=-1){if(ca<=v)O=ca+1;break}else{v-=1;ca=J[v]}}}}else if(z>0){O=I.filter(function(ba){return ba.columnId<z}).reduce(function(ba,Z){return Z.columnId>=ba?Z.columnId:ba},0);O=Ga(O)+1}d.moveColumn(V,O,k);d.Ma();d.sd()}else d.Np(z);if(!m&&(u||d.ea()))d.getData();d.sortable&&d.pl(true);var U=[];u=I.sort(function(ba,
1398
- Z){return Ga(ba.columnId)>Ga(Z.columnId)?1:-1}).map(function(ba){ba.blankHeader?U.push(""):U.push(ba.name);if(d.kd||S){if(d.my)return ba.width;return ba.orginalWidth}for(var Z=Math.floor(L/I.length),ja=ba.lastAdjustment||0,za=0;za<q.length;za++)if(q[za].columnId===ba.w){q[za].lastAdjustment=Z;break}Z=ba.width+Z-ja;return Z<0?ba.width:Z});if(Va){q=q.map(function(ba){if(ba.showing)ba.savedColumn=Ga(ba.columnId);return ba});V={cols:q,headings:U};if(Va){O=R();if(O!=null)J=O.colSequence}N(V,"hidableColState");
1399
- N(u,"colWidths");N(J,"colSequence")}d.Rf(u);d.Ma();d.sd();if(hc)for(O=0;O<H.length;O++)Y(H[O],true,d.sortable);if(ld)for(O=0;O<d.n.length;O++)aa(d.n,O,true,true);d.kd&&d.Xb();d.columnHeadings=U;d.fc();sb();if(hc&&Va)if(J!=null){H=Array(J.length);for(O=0;O<H.length;O++)H[O]=d.cells[0][J[O]];for(O=0;O<H.length;O++)d.moveColumn(H[O].col,O)}return true};this.ts=function(k){if(typeof k!=="object")return d.columnHeadings.split(",");return k.filter(function(m){return m.showing}).sort(function(m,q){var u,
1400
- z;if(d.designMode&&m.currentColumn!=null&&q.currentColumn!=null){u=m.currentColumn;z=q.currentColumn}else{u=Ga(m.columnId);z=Ga(q.columnId)}return u>z?1:-1}).map(function(m){if(m.blankHeader)return"";return m.name})};this.lu=function(){function k(Z){Z=Z.target;if(Z.tagName=="TD")Z=Z.parentNode;if(Z.tagName!="TR")return null;return Z}function m(Z){var ja=k(Z);if(ja){Z.stopPropagation();$a.If=ja;pui.Q(ja,"move_origin");try{Z.dataTransfer.setData("text/plain",ja.w)}catch(za){}}}function q(Z){if(Z=k(Z)){pui.da(Z,
1401
- "move_origin");$a.If=null}}function u(Z){vb(Z);if(Z=k(Z)){var ja=Z.parentNode.parentNode;Z.parentNode==ja.tHead?pui.da(ja.tHead.lastChild,"move_valid"):pui.da(Z,"move_valid");if($a.If==null)console.log("Origin row not set.");else{var za=Z.sectionRowIndex;if(Z.parentNode==ja.tHead)za=-1;za++;Z=ja.tBodies[0].rows[za];if($a.If!==Z){ja.tBodies[0].removeChild($a.If);ja.tBodies[0].insertBefore($a.If,Z)}I(ja.tBodies[0])}}}function z(Z){if($a.If!=null){var ja=k(Z);if(ja!=null){var za=ja.parentNode.parentNode;
1402
- if(ja.parentNode==za.tHead){vb(Z);Z.dataTransfer.dropEffect="move";pui.Q(za.tHead.lastChild,"move_valid")}else if(ja!=$a.If&&ja.sectionRowIndex!=$a.If.sectionRowIndex-1){vb(Z);Z.dataTransfer.dropEffect="move";pui.Q(ja,"move_valid")}}}}function v(Z){vb(Z);if(Z=k(Z)){var ja=Z.parentNode.parentNode;if(Z.parentNode==ja.tHead)Z=ja.tHead.lastChild;pui.da(Z,"move_valid")}}function J(Z){I(Z.target.parentNode.parentNode.parentNode)}function I(Z){for(var ja=0,za=0;za<Z.rows.length;za++){var La=Z.rows[za],ka=
1403
- La.cells[1],xa=La.cells[3].children[0];if(La.cells[0].children[0].checked){La.Lb=ja;ka.innerHTML=ja;ja++;xa.style.visibility=""}else{La.Lb=-1;ka.innerHTML="";xa.style.visibility="hidden"}}}if(d.c.parentNode!=null){if($a==null){$a=document.createElement("div");$a.className="grid-multisort"+(d.Xc!=""?" "+d.Xc+"-multisort":"");$a.style.top=d.c.offsetTop+"px";$a.style.left=d.c.offsetLeft+"px";var H=document.createElement("div");new pui.Ue({yk:H,move:$a});var L=document.createElement("button");L.className=
1404
- "pui-material-icons";L.innerHTML="close";T(L,"click",function(){$a.style.display="none"});H.appendChild(L);L=document.createElement("button");L.className="pui-material-icons";L.innerHTML="check";T(L,"click",function(){$a.style.display="none";for(var Z=[],ja=0;ja<S.tBodies[0].rows.length;ja++){var za=S.tBodies[0].rows[ja];za.Lb>=0&&Z.push({Lr:za.w+0,lw:za.ra})}d.jt(Z)});H.appendChild(L);H.appendChild(document.createTextNode(pui.getLanguageText("runtimeText","sort multiple")));$a.appendChild(H);var S=
1405
- document.createElement("table");H=S.createTHead().insertRow();H.ondrop=u;H.ondragover=z;H.ondragleave=v;var ca=H.insertCell();ca.innerHTML=pui.getLanguageText("runtimeText","sort");ca=H.insertCell();ca.innerHTML=pui.getLanguageText("runtimeText","order");ca=H.insertCell();ca.innerHTML=pui.getLanguageText("runtimeText","column");ca=H.insertCell();ca.innerHTML=pui.getLanguageText("runtimeText","direction");var O=document.createElement("tbody");S.appendChild(O);var V=d.cells[0].map(function(Z){for(var ja=
1406
- -1,za=0;za<Sa.length;za++)if(Z===Sa[za]){ja=za;break}za=Z.ra;if(za==null)za=p(Z.w);return{w:Z.w,name:Z.textContent,ra:za,Lb:ja}});V.sort(function(Z,ja){if(Z.Lb>=0&&ja.Lb>=0)return Z.Lb-ja.Lb;if(Z.Lb>=0&&ja.Lb<0)return-1;if(Z.Lb<0&&ja.Lb>=0)return 1;return 0});for(var U=0;U<V.length;U++){L=V[U].name;ca=V[U].w;var ba=V[U].ra;H=O.insertRow();H.draggable=true;H.w=ca;H.ra=ba;H.Lb=V[U].Lb;H.ondragstart=m;H.ondragend=q;H.ondrop=u;H.ondragover=z;H.ondragleave=v;ca=H.insertCell();ba=document.createElement("input");
1407
- ba.type="checkbox";ba.name=L+"_sort";ba.onclick=J;ba.checked=H.Lb>=0;ca.appendChild(ba);ca=H.insertCell();ca.innerHTML=H.Lb>=0?H.Lb:"&nbsp;";ca=H.insertCell();ca.innerHTML=L;ca.draggable=true;ca=H.insertCell();L=document.createElement("button");L.className="pui-material-icons";L.innerHTML=H.ra?"arrow_downward":"arrow_upward";L.style.visibility=H.Lb>=0?"":"hidden";T(L,"click",function(Z){var ja=Z.target.parentNode.parentNode;if(Z.target.innerHTML=="arrow_downward"){Z.target.innerHTML="arrow_upward";
1408
- ja.ra=false}else{Z.target.innerHTML="arrow_downward";ja.ra=true}});L.enabled=false;ca.appendChild(L)}$a.appendChild(S);d.c.parentNode.appendChild($a)}else if($a.style.display==""){$a.style.top=d.c.offsetTop+"px";$a.style.left=d.c.offsetLeft+"px"}else{O=$a.querySelector("table").tBodies[0];for(U=0;U<O.childNodes.length;U++){H=O.childNodes[U];V=false;for(L=0;L<Sa.length;L++)if(H.w==Sa[L].w){H.ra=Sa[L].ra;H.childNodes[0].firstChild.checked=true;if(V=H.childNodes[3].firstChild)V.innerHTML=H.ra?"arrow_downward":
1409
- "arrow_upward";V=true;break}if(!V)H.childNodes[0].firstChild.checked=false}I(O)}$a.style.display="";if(d.c.parentNode.getAttribute("container")=="true"&&d.c.parentNode.offsetHeight>0)if($a.offsetHeight>d.c.parentNode.offsetHeight-54)$a.style.height=d.c.parentNode.offsetHeight-54+"px"}};this.Py=function(k){function m(){H=S.insertRow();H.w=ca;H.onclick=u;L=H.insertCell();var Oa=document.createElement("input");Oa.type="checkbox";Oa.name=Z+"_filter";Oa.checked=ja;L.appendChild(Oa);L=H.insertCell();L.innerHTML=
1410
- Z}function q(){ba=V.entries();za=V.size;for(var Oa=za<50?za:50,eb=0;eb<Oa;eb++){U=ba.next().value;Z=U[0];ja=U[1];m();La++}ab.appendChild(I);d.c.parentNode.appendChild(ab)}function u(Oa){if(Oa.target.localName=="td")if(this.cells[0].children[0].checked==false)ja=this.cells[0].children[0].checked=true;else ja=this.cells[0].children[0].checked=false;if(Oa.target.localName=="input")if(this.cells[0].children[0].checked==true)ja=this.cells[0].children[0].checked=true;else ja=this.cells[0].children[0].checked=
1411
- false;Z=this.cells[1].innerHTML;Z!=null&&V.has(Z)&&V.set(Z,ja)}function z(Oa,eb,Cb,Ta,bc){d.mask();d.Jb();if(Oa==null)Oa=-1;if(eb==null)eb=1;var Sb=null;Sb=pui.ld(d.dataProps);d.Lc="";if(d.isFiltered())for(var Gb=d.cells[0],nd=0,od=0;od<Gb.length;od++){var uc=Gb[od];if(uc.w>=0&&uc.sa!=null){var Te=cb(uc.w);d.Lc+="&fltrcol"+String(nd)+"="+(uc.w+1+Te);d.Lc+=d.Dt(String(nd),uc.sa);Sb+=d.Lc;nd++}}if(d.dataProps["data url"]!=null&&d.dataProps["data url"]!=""&&d.Db!=null)Sb+="&order="+d.Db;Gb=Wb("PUI0009102.PGM");
1396
+ m?true:d.Lo(z)}return false};this.Lo=function(k,m){if(!this.ma)return false;var q=d.ga,u=!k.showing;if(d.n.length-2<1&&!u){pui.alert(pui.getLanguageText("runtimeMsg","cannot rmv last col"));return false}for(var z=k.columnId,v=k.currentColumn,J=q.Ai,I=[],H=d.cells[0],M=0,R=pui["grid column resize style"]!=="simple",aa=d.uf().split(",").map(function(ba){return Number(ba)}),O=0;O<q.length;O++){if(k===q[O]){q[O].showing=u;if(!u){var V=Ga(q[O].columnId);q[O].width=aa[V]}k=q[O]}if(q[O].showing){V=Ga(q[O].columnId);
1397
+ if(V>-1)q[O].width=aa[V];I.push(q[O])}else M+=q[O].width-(q[O].lastAdjustment||0)}if(u){d.mn(z);V=Ga(z);O=0;if(hc&&J)if(v==-1)O=V;else{if(J[v]===z){v=v-1;for(aa=J[v];aa>=0;){aa=Ga(aa);if(aa!=-1){if(aa<=v)O=aa+1;break}else{v-=1;aa=J[v]}}}}else if(z>0){O=I.filter(function(ba){return ba.columnId<z}).reduce(function(ba,Y){return Y.columnId>=ba?Y.columnId:ba},0);O=Ga(O)+1}d.moveColumn(V,O,k);d.Ma();d.rd()}else d.Np(z);if(!m&&(u||d.ea()))d.getData();d.sortable&&d.pl(true);var U=[];u=I.sort(function(ba,
1398
+ Y){return Ga(ba.columnId)>Ga(Y.columnId)?1:-1}).map(function(ba){ba.blankHeader?U.push(""):U.push(ba.name);if(d.kd||R){if(d.my)return ba.width;return ba.orginalWidth}for(var Y=Math.floor(M/I.length),ja=ba.lastAdjustment||0,za=0;za<q.length;za++)if(q[za].columnId===ba.w){q[za].lastAdjustment=Y;break}Y=ba.width+Y-ja;return Y<0?ba.width:Y});if(Va){q=q.map(function(ba){if(ba.showing)ba.savedColumn=Ga(ba.columnId);return ba});V={cols:q,headings:U};if(Va){O=L();if(O!=null)J=O.colSequence}Q(V,"hidableColState");
1399
+ Q(u,"colWidths");Q(J,"colSequence")}d.Rf(u);d.Ma();d.rd();if(hc)for(O=0;O<H.length;O++)ca(H[O],true,d.sortable);if(ld)for(O=0;O<d.n.length;O++)Z(d.n,O,true,true);d.kd&&d.Xb();d.columnHeadings=U;d.fc();sb();if(hc&&Va)if(J!=null){H=Array(J.length);for(O=0;O<H.length;O++)H[O]=d.cells[0][J[O]];for(O=0;O<H.length;O++)d.moveColumn(H[O].col,O)}return true};this.ts=function(k){if(typeof k!=="object")return d.columnHeadings.split(",");return k.filter(function(m){return m.showing}).sort(function(m,q){var u,
1400
+ z;if(d.designMode&&m.currentColumn!=null&&q.currentColumn!=null){u=m.currentColumn;z=q.currentColumn}else{u=Ga(m.columnId);z=Ga(q.columnId)}return u>z?1:-1}).map(function(m){if(m.blankHeader)return"";return m.name})};this.lu=function(){function k(Y){Y=Y.target;if(Y.tagName=="TD")Y=Y.parentNode;if(Y.tagName!="TR")return null;return Y}function m(Y){var ja=k(Y);if(ja){Y.stopPropagation();$a.If=ja;pui.Q(ja,"move_origin");try{Y.dataTransfer.setData("text/plain",ja.w)}catch(za){}}}function q(Y){if(Y=k(Y)){pui.da(Y,
1401
+ "move_origin");$a.If=null}}function u(Y){vb(Y);if(Y=k(Y)){var ja=Y.parentNode.parentNode;Y.parentNode==ja.tHead?pui.da(ja.tHead.lastChild,"move_valid"):pui.da(Y,"move_valid");if($a.If==null)console.log("Origin row not set.");else{var za=Y.sectionRowIndex;if(Y.parentNode==ja.tHead)za=-1;za++;Y=ja.tBodies[0].rows[za];if($a.If!==Y){ja.tBodies[0].removeChild($a.If);ja.tBodies[0].insertBefore($a.If,Y)}I(ja.tBodies[0])}}}function z(Y){if($a.If!=null){var ja=k(Y);if(ja!=null){var za=ja.parentNode.parentNode;
1402
+ if(ja.parentNode==za.tHead){vb(Y);Y.dataTransfer.dropEffect="move";pui.Q(za.tHead.lastChild,"move_valid")}else if(ja!=$a.If&&ja.sectionRowIndex!=$a.If.sectionRowIndex-1){vb(Y);Y.dataTransfer.dropEffect="move";pui.Q(ja,"move_valid")}}}}function v(Y){vb(Y);if(Y=k(Y)){var ja=Y.parentNode.parentNode;if(Y.parentNode==ja.tHead)Y=ja.tHead.lastChild;pui.da(Y,"move_valid")}}function J(Y){I(Y.target.parentNode.parentNode.parentNode)}function I(Y){for(var ja=0,za=0;za<Y.rows.length;za++){var La=Y.rows[za],ka=
1403
+ La.cells[1],xa=La.cells[3].children[0];if(La.cells[0].children[0].checked){La.Lb=ja;ka.innerHTML=ja;ja++;xa.style.visibility=""}else{La.Lb=-1;ka.innerHTML="";xa.style.visibility="hidden"}}}if(d.c.parentNode!=null){if($a==null){$a=document.createElement("div");$a.className="grid-multisort"+(d.Xc!=""?" "+d.Xc+"-multisort":"");$a.style.top=d.c.offsetTop+"px";$a.style.left=d.c.offsetLeft+"px";var H=document.createElement("div");new pui.Ue({yk:H,move:$a});var M=document.createElement("button");M.className=
1404
+ "pui-material-icons";M.innerHTML="close";S(M,"click",function(){$a.style.display="none"});H.appendChild(M);M=document.createElement("button");M.className="pui-material-icons";M.innerHTML="check";S(M,"click",function(){$a.style.display="none";for(var Y=[],ja=0;ja<R.tBodies[0].rows.length;ja++){var za=R.tBodies[0].rows[ja];za.Lb>=0&&Y.push({Lr:za.w+0,lw:za.ra})}d.jt(Y)});H.appendChild(M);H.appendChild(document.createTextNode(pui.getLanguageText("runtimeText","sort multiple")));$a.appendChild(H);var R=
1405
+ document.createElement("table");H=R.createTHead().insertRow();H.ondrop=u;H.ondragover=z;H.ondragleave=v;var aa=H.insertCell();aa.innerHTML=pui.getLanguageText("runtimeText","sort");aa=H.insertCell();aa.innerHTML=pui.getLanguageText("runtimeText","order");aa=H.insertCell();aa.innerHTML=pui.getLanguageText("runtimeText","column");aa=H.insertCell();aa.innerHTML=pui.getLanguageText("runtimeText","direction");var O=document.createElement("tbody");R.appendChild(O);var V=d.cells[0].map(function(Y){for(var ja=
1406
+ -1,za=0;za<Sa.length;za++)if(Y===Sa[za]){ja=za;break}za=Y.ra;if(za==null)za=p(Y.w);return{w:Y.w,name:Y.textContent,ra:za,Lb:ja}});V.sort(function(Y,ja){if(Y.Lb>=0&&ja.Lb>=0)return Y.Lb-ja.Lb;if(Y.Lb>=0&&ja.Lb<0)return-1;if(Y.Lb<0&&ja.Lb>=0)return 1;return 0});for(var U=0;U<V.length;U++){M=V[U].name;aa=V[U].w;var ba=V[U].ra;H=O.insertRow();H.draggable=true;H.w=aa;H.ra=ba;H.Lb=V[U].Lb;H.ondragstart=m;H.ondragend=q;H.ondrop=u;H.ondragover=z;H.ondragleave=v;aa=H.insertCell();ba=document.createElement("input");
1407
+ ba.type="checkbox";ba.name=M+"_sort";ba.onclick=J;ba.checked=H.Lb>=0;aa.appendChild(ba);aa=H.insertCell();aa.innerHTML=H.Lb>=0?H.Lb:"&nbsp;";aa=H.insertCell();aa.innerHTML=M;aa.draggable=true;aa=H.insertCell();M=document.createElement("button");M.className="pui-material-icons";M.innerHTML=H.ra?"arrow_downward":"arrow_upward";M.style.visibility=H.Lb>=0?"":"hidden";S(M,"click",function(Y){var ja=Y.target.parentNode.parentNode;if(Y.target.innerHTML=="arrow_downward"){Y.target.innerHTML="arrow_upward";
1408
+ ja.ra=false}else{Y.target.innerHTML="arrow_downward";ja.ra=true}});M.enabled=false;aa.appendChild(M)}$a.appendChild(R);d.c.parentNode.appendChild($a)}else if($a.style.display==""){$a.style.top=d.c.offsetTop+"px";$a.style.left=d.c.offsetLeft+"px"}else{O=$a.querySelector("table").tBodies[0];for(U=0;U<O.childNodes.length;U++){H=O.childNodes[U];V=false;for(M=0;M<Sa.length;M++)if(H.w==Sa[M].w){H.ra=Sa[M].ra;H.childNodes[0].firstChild.checked=true;if(V=H.childNodes[3].firstChild)V.innerHTML=H.ra?"arrow_downward":
1409
+ "arrow_upward";V=true;break}if(!V)H.childNodes[0].firstChild.checked=false}I(O)}$a.style.display="";if(d.c.parentNode.getAttribute("container")=="true"&&d.c.parentNode.offsetHeight>0)if($a.offsetHeight>d.c.parentNode.offsetHeight-54)$a.style.height=d.c.parentNode.offsetHeight-54+"px"}};this.Py=function(k){function m(){H=R.insertRow();H.w=aa;H.onclick=u;M=H.insertCell();var Oa=document.createElement("input");Oa.type="checkbox";Oa.name=Y+"_filter";Oa.checked=ja;M.appendChild(Oa);M=H.insertCell();M.innerHTML=
1410
+ Y}function q(){ba=V.entries();za=V.size;for(var Oa=za<50?za:50,eb=0;eb<Oa;eb++){U=ba.next().value;Y=U[0];ja=U[1];m();La++}ab.appendChild(I);d.c.parentNode.appendChild(ab)}function u(Oa){if(Oa.target.localName=="td")if(this.cells[0].children[0].checked==false)ja=this.cells[0].children[0].checked=true;else ja=this.cells[0].children[0].checked=false;if(Oa.target.localName=="input")if(this.cells[0].children[0].checked==true)ja=this.cells[0].children[0].checked=true;else ja=this.cells[0].children[0].checked=
1411
+ false;Y=this.cells[1].innerHTML;Y!=null&&V.has(Y)&&V.set(Y,ja)}function z(Oa,eb,Cb,Ta,bc){d.mask();d.Jb();if(Oa==null)Oa=-1;if(eb==null)eb=1;var Sb=null;Sb=pui.ld(d.dataProps);d.Lc="";if(d.isFiltered())for(var Gb=d.cells[0],nd=0,od=0;od<Gb.length;od++){var uc=Gb[od];if(uc.w>=0&&uc.sa!=null){var Te=cb(uc.w);d.Lc+="&fltrcol"+String(nd)+"="+(uc.w+1+Te);d.Lc+=d.Dt(String(nd),uc.sa);Sb+=d.Lc;nd++}}if(d.dataProps["data url"]!=null&&d.dataProps["data url"]!=""&&d.Db!=null)Sb+="&order="+d.Db;Gb=Wb("PUI0009102.PGM");
1412
1412
  if(Ta)Gb=pui.df(Ta);Ta=new pui.Ajax(Gb);Ta.method="post";Ta.async=true;if(pui.ba)Ta.postData="AUTH="+pui.ba;else{Ta.postData="AUTH="+pui.appJob.auth;if(typeof pui.vId!=="undefined")Ta.postData+="&VID="+pui.vId}Ta.postData+="&q="+encodeURIComponent(pui.Wc(d.c));Gb=d.dataProps["order by"];if(d.Db!=null)Gb=d.Db;if(Gb&&Gb!="")Ta.postData+="&order="+Gb;else if(Fb()=="mssql")Ta.postData+="&order=(select null)";if(Sb!="")Ta.postData+="&"+Sb;Ta.postData+="&limit="+Oa+"&start="+eb;if(Cb!=null&&Cb==true)Ta.postData+=
1413
1413
  "&getTotal=1";if(pui["read db driven data as ebcdic"]!==true)Ta.postData+="&UTF8=Y";Oa=d.dataProps["allow any select statement"];if(Oa!=null&&(Oa=="true"||Oa==true))Ta.postData+="&FetchCounter=Y";if(pui.isCloud)Ta.postData+="&workspace_id="+pui.cloud.ws.id;Ta.onready=function(ic){var Hb,jc,Ob;if(Hb=Kb(ic,"Run SQL SELECT Query")){d.mask();d.Jb();ic=Hb.results;var Tb=Hb.totalRecs;if(Tb!=null)d.totalRecs=Tb;if(ic.length>=1){var Db=pb(d.C);Tb=[];for(Ob in Hb.results[0])Db.indexOf(Ob)==-1&&Tb.push(Ob);
1414
1414
  Ob=Tb;Hb=[];for(Db=0;Db<d.C.length;Db++)if(d.C[Db]&&d.C[Db].value&&d.C[Db].value.fieldName){var Nc=d.C[Db].value.fieldName;Ob.indexOf(Nc)!=-1&&Hb.push(Nc)}Tb=Hb.length===0?Tb:Hb;for(Hb=0;Hb<ic.length;Hb++){Db=ic[Hb];if(bc.fieldName!=null)for(jc in Db){if(jc.toUpperCase()==bc.fieldName.toUpperCase()){Ob=Db[jc];V.set(Ob,false)}}else{d.dataArray=ic;d.sc=false;d.wa=true;Nc=Tb[bc.w];for(jc in Db)if(jc==Nc){Ob=Db[jc];V.set(Ob,false)}}}if(V.size>0){q();d.unMask()}}}};d.sc=true;Ta.send()}if(d.c.parentNode!=
1415
1415
  null)if(!pui.is_ie){d.mask();d.Jb();ab&&ab.parentNode.removeChild(ab);ab=document.createElement("div");ab.className="grid-multifilter"+(d.Xc!=""?" "+d.Xc+"-multifilter":"");if(k!=null){ab.style.top=d.c.offsetTop+k.offsetHeight+"px";ab.style.left=d.c.offsetLeft+k.offsetLeft+"px";if(ab.style.top==null||ab.style.left==null){ab.style.top=d.c.offsetTop+"px";ab.style.left=d.c.offsetLeft+"px"}}else{ab.style.top=d.c.offsetTop+"px";ab.style.left=d.c.offsetLeft+"px"}var v=document.createElement("div");new pui.Ue({yk:v,
1416
- move:ab});var J=document.createElement("button");J.className="pui-material-icons";J.innerHTML="close";T(J,"click",function(){ab.style.display="none";if(d.sc==true)d.sc=false;ab=null;if(d.wa==true&&d.dataProps["load all rows"]!="true")d.wa=false});v.appendChild(J);J=document.createElement("button");J.className="pui-material-icons";J.innerHTML="check";T(J,"click",function(){ab.style.display="none";d.mask();d.Jb();ba=V.entries();za=V.size;for(var Oa=[],eb=0;eb<za;eb++){U=ba.next().value;Z=U[0];ja=U[1];
1417
- ja==true&&Oa.push(Z)}ka="JVALUES "+JSON.stringify(Oa);if(d.sc==true)d.sc=false;if(d.wa==true&&d.dataProps["load all rows"]!="true")d.wa=false;ka==null||Oa.length==0?d.removeFilter(ca):d.setFilter(k,ka);d.unMask();ab=null});v.appendChild(J);v.appendChild(document.createTextNode(pui.getLanguageText("runtimeText","filter multiple")));ab.appendChild(v);var I=document.createElement("table"),H=I.createTHead().insertRow(),L=H.insertCell();L.innerHTML=pui.getLanguageText("runtimeText","filter check");L=H.insertCell();
1418
- L.innerHTML=pui.getLanguageText("runtimeText","filter data");var S=document.createElement("tbody");I.appendChild(S);if(k!=null){var ca=k.w;d.Qj(k);var O=k.Ij}rows=d.dataArray.length;var V=new Map,U=[],ba=[],Z,ja=false,za=0,La=0,ka=k.sa;if(d.ea()&&d.dataProps["load all rows"]!="true"){O=d.dataProps["data url"];if(O=="")O=null;z(-1,1,d.totalRecs==null,O,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 xa=v[J];if(xa.o==null)xa.o=J+1;for(var Ja=0;Ja<O.length;Ja++){var Na=
1419
- xa[O[Ja]],Ca=false;if(k.pui!=null)if(k.pui.formats!=null&&k.pui.formats[Ja]!=null&&typeof k.pui.formats[Ja]=="object"){var Ea=k.pui.formats[Ja];Ea.value=Na;Na=pui.tc.format(Ea)}if(k.pui.rd!=null&&k.pui.rd[Ja]!=null&&d.C[k.pui.rd[Ja]]!=null&&typeof d.C[k.pui.rd[Ja]]=="object"){Ea=d.C[k.pui.rd[Ja]];var Ra=parseInt(Ea.left,10),Jb=parseInt(Ea.top,10);if(Ea.visibility=="hidden"||!isNaN(Ra)&&!isNaN(Jb)&&Ra<0&&Jb<0)Ca=true}Ca||V.set(Na,ja);ja=false}}if(V.size>0){q();d.unMask()}}ab.style.display="";if(d.c.parentNode.getAttribute("container")==
1420
- "true"&&d.c.parentNode.offsetHeight>0)if(ab.offsetHeight>d.c.parentNode.offsetHeight-54)ab.style.height=d.c.parentNode.offsetHeight-54+"px";I.onscroll=function(){var Oa,eb=za-La;if(!(za<=50||eb==0))if(ab.scrollTop>=ab.scrollHeight-ab.offsetHeight)if(eb<=50)for(Oa=0;Oa<eb;Oa++){U=ba.next().value;Z=U[0];ja=U[1];m();La++}else for(Oa=0;Oa<50;Oa++){U=ba.next().value;Z=U[0];ja=U[1];m();La++}}}}};pui.ek.prototype=Object.create(pui.$h.prototype);
1416
+ move:ab});var J=document.createElement("button");J.className="pui-material-icons";J.innerHTML="close";S(J,"click",function(){ab.style.display="none";if(d.sc==true)d.sc=false;ab=null;if(d.wa==true&&d.dataProps["load all rows"]!="true")d.wa=false});v.appendChild(J);J=document.createElement("button");J.className="pui-material-icons";J.innerHTML="check";S(J,"click",function(){ab.style.display="none";d.mask();d.Jb();ba=V.entries();za=V.size;for(var Oa=[],eb=0;eb<za;eb++){U=ba.next().value;Y=U[0];ja=U[1];
1417
+ ja==true&&Oa.push(Y)}ka="JVALUES "+JSON.stringify(Oa);if(d.sc==true)d.sc=false;if(d.wa==true&&d.dataProps["load all rows"]!="true")d.wa=false;ka==null||Oa.length==0?d.removeFilter(aa):d.setFilter(k,ka);d.unMask();ab=null});v.appendChild(J);v.appendChild(document.createTextNode(pui.getLanguageText("runtimeText","filter multiple")));ab.appendChild(v);var I=document.createElement("table"),H=I.createTHead().insertRow(),M=H.insertCell();M.innerHTML=pui.getLanguageText("runtimeText","filter check");M=H.insertCell();
1418
+ M.innerHTML=pui.getLanguageText("runtimeText","filter data");var R=document.createElement("tbody");I.appendChild(R);if(k!=null){var aa=k.w;d.Qj(k);var O=k.Ij}rows=d.dataArray.length;var V=new Map,U=[],ba=[],Y,ja=false,za=0,La=0,ka=k.sa;if(d.ea()&&d.dataProps["load all rows"]!="true"){O=d.dataProps["data url"];if(O=="")O=null;z(-1,1,d.totalRecs==null,O,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 xa=v[J];if(xa.o==null)xa.o=J+1;for(var Ja=0;Ja<O.length;Ja++){var Na=
1419
+ xa[O[Ja]],Ca=false;if(k.pui!=null)if(k.pui.formats!=null&&k.pui.formats[Ja]!=null&&typeof k.pui.formats[Ja]=="object"){var Ea=k.pui.formats[Ja];Ea.value=Na;Na=pui.tc.format(Ea)}if(k.pui.qd!=null&&k.pui.qd[Ja]!=null&&d.C[k.pui.qd[Ja]]!=null&&typeof d.C[k.pui.qd[Ja]]=="object"){Ea=d.C[k.pui.qd[Ja]];var Ra=parseInt(Ea.left,10),Jb=parseInt(Ea.top,10);if(Ea.visibility=="hidden"||!isNaN(Ra)&&!isNaN(Jb)&&Ra<0&&Jb<0)Ca=true}Ca||V.set(Na,ja);ja=false}}if(V.size>0){q();d.unMask()}}ab.style.display="";if(d.c.parentNode.getAttribute("container")==
1420
+ "true"&&d.c.parentNode.offsetHeight>0)if(ab.offsetHeight>d.c.parentNode.offsetHeight-54)ab.style.height=d.c.parentNode.offsetHeight-54+"px";I.onscroll=function(){var Oa,eb=za-La;if(!(za<=50||eb==0))if(ab.scrollTop>=ab.scrollHeight-ab.offsetHeight)if(eb<=50)for(Oa=0;Oa<eb;Oa++){U=ba.next().value;Y=U[0];ja=U[1];m();La++}else for(Oa=0;Oa<50;Oa++){U=ba.next().value;Y=U[0];ja=U[1];m();La++}}}}};pui.ek.prototype=Object.create(pui.$h.prototype);
1421
1421
  pui.$h.Ni=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.",
1422
1422
  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"],je: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.",
1423
1423
  context:"genie"},{name:"field type",displayName:"widget type",choices:["grid"],je:false,a:"widget",help:"Determines the type of control that is used to render the element.",bind:false,va:false},{name:"value",a:"blank",help:"Sets the initialization value for the current element."},{name:"Subfile Settings",category:true,context:"dspf"},{name:"display subfile",choices:["true","false"],g:true,f:["indicator","expression"],a:"true",help:"This property tells the system when to display grid records. It represents the SFLDSP keyword.",
@@ -1506,19 +1506,19 @@ bind:false,context:"dspf"},{name:"onrowclick",wf:true,type:"js",a:"blank",help:"
1506
1506
  bind:false},{name:"onrowmouseout",type:"js",a:"blank",help:"Initiates a client-side script when the mouse is moved off of a row within the grid. The script can determine the row number using the <b>row</b> variable.",bind:false},{name:"onpagedown",wf:true,type:"js",a:"blank",help:"Initiates a client-side script when the user pages down using the grid's scrollbar or the grid's paging bar. To prevent the grid's default paging action, the script must evaluate to <i>false</i>.",bind:false},{name:"onpageup",
1507
1507
  wf:true,type:"js",a:"blank",help:"Initiates a client-side script when the user pages up using the grid's scrollbar or the grid's paging bar. To prevent the grid's default paging action, the script must evaluate to <i>false</i>.",bind:false},{name:"onscroll",type:"js",a:"blank",help:"Initiates a client-side script when the user scrolls using the grid's scrollbar. The <b>row</b> variable in the script provides the top row of the grid.",bind:false}];if(pui.nodedesigner===true){var a=b.map(function(c){return c.name}).indexOf("remote system name");
1508
1508
  b.splice(a,1)}return b};function he(b,a,c,e){var f,h,g=b.k.length-1;if(b.h){f=1;h=0}else{f=0;h=1}if(b.j>0&&b.Mb>0){var l=b.isFiltered()?b.X:b.dataArray;b=b.j-1;var o=0,n=0;f=f;for(var r=b;r<l.length&&r<g+b+o;r++){var p=l[r];if(p){if(p.rc===true)o++;else{n++;typeof a=="function"&&a(r,f,n,o);f++}if(c>=0&&n==c+h&&typeof e=="function"){e(r,f);break}}}}}function fe(b,a){var c=-1;if(b.j>0){var e=b.j-1,f=b.h?1:0;if(b.Mb==0)c=a+e-f;else he(b,null,a,function(h){c=h})}return c}
1509
- function ge(b){if(b.Yq==null)b.Yq=b.qv.bind(b);var a=b.k.length-1;if(b.j>0&&b.Mb>0)he(b,b.Yq);else for(var c=b.h?1:0;c<a;c++)b.$c(c)}pui.ek.prototype.qv=function(b,a){this.$c(a,false,b)};function ie(b){if(b.h&&b.k.length>=2){b.k[0].style.top=parseInt(b.k[1].style.top)-b.cb+"px";b.sv();b.rv();b.designMode&&b.Ma();b.nv();b.setScrollBar();b.ec()}}pui.ek.prototype.Zq=function(b){b.stopPropagation()};pui.Pu=function(b){this.data=b;this.Xd=true;this.Gd="expanded";this.children=[];this.parentNode=null;this.Jg=true};pui.wq=function(){this.root=null};Aa=pui.wq.prototype;Aa.add=function(b,a){var c=new pui.Pu(b),e=a?me(this,a):null;if(e){e.children.push(c);c.parentNode=e}else if(this.root)return"Root node is already assigned";else this.root=c;return c};function ke(b,a){a.Gd="collapsed";for(var c=0;c<a.children.length;c++)a.children[c].Xd=false;ne(b,a)}
1510
- function je(b,a){a.Gd="expanded";for(var c=0;c<a.children.length;c++)a.children[c].Xd=true;ne(b,a)}function oe(b,a){var c=a.parentNode;if(c===null)return false;return c.Xd===false?true:oe(b,c)}Aa.remove=function(b){if(this.root.data===b)this.root=null;for(var a=[this.root];a.length;)for(var c=a.shift(),e=0;e<c.children.length;e++)c.children[e].data===b?c.children.splice(e,1):a.push(c.children[e])};Aa.contains=function(b){return me(this,b)?true:false};
1511
- function me(b,a){for(var c=[b.root];c.length;){var e=c.shift();if(e.data===a)return e;for(var f=0;f<e.children.length;f++)c.push(e.children[f])}return null}function pe(b,a,c){if(a){c&&c(a);for(var e=0;e<a.children.length;e++)pe(b,a.children[e],c)}}Aa.collapseAll=function(){qe(this,function(e){e.Xd=false;e.Jg=false;e.Gd="collapsed"});this.root.Xd=true;for(var b=this.root.children,a=0;a<b.length;a++){var c=b[a];c.Xd=true;c.Jg=true;c.Gd="collapsed"}};
1512
- Aa.expandAll=function(){qe(this,function(e){e.Xd=true;e.Jg=true;e.Gd="expanded"});this.root.Xd=true;for(var b=this.root.children,a=0;a<b.length;a++){var c=b[a];c.Xd=true;c.Jg=true;c.Gd="expanded"}};function ne(b,a){a.Jg=true;if(a.Xd===false||oe(b,a))a.Jg=false;for(var c=0;c<a.children.length;c++)ne(b,a.children[c])}function qe(b,a,c){var e=b.root;c?b["_"+c](e,a):pe(b,e,a)}
1509
+ function ge(b){if(b.Yq==null)b.Yq=b.qv.bind(b);var a=b.k.length-1;if(b.j>0&&b.Mb>0)he(b,b.Yq);else for(var c=b.h?1:0;c<a;c++)b.$c(c)}pui.ek.prototype.qv=function(b,a){this.$c(a,false,b)};function ie(b){if(b.h&&b.k.length>=2){b.k[0].style.top=parseInt(b.k[1].style.top)-b.cb+"px";b.sv();b.rv();b.designMode&&b.Ma();b.nv();b.setScrollBar();b.ec()}}pui.ek.prototype.Zq=function(b){b.stopPropagation()};pui.Pu=function(b){this.data=b;this.Xd=true;this.Fd="expanded";this.children=[];this.parentNode=null;this.Jg=true};pui.wq=function(){this.root=null};Aa=pui.wq.prototype;Aa.add=function(b,a){var c=new pui.Pu(b),e=a?me(this,a):null;if(e){e.children.push(c);c.parentNode=e}else if(this.root)return"Root node is already assigned";else this.root=c;return c};function ke(b,a){a.Fd="collapsed";for(var c=0;c<a.children.length;c++)a.children[c].Xd=false;ne(b,a)}
1510
+ function je(b,a){a.Fd="expanded";for(var c=0;c<a.children.length;c++)a.children[c].Xd=true;ne(b,a)}function oe(b,a){var c=a.parentNode;if(c===null)return false;return c.Xd===false?true:oe(b,c)}Aa.remove=function(b){if(this.root.data===b)this.root=null;for(var a=[this.root];a.length;)for(var c=a.shift(),e=0;e<c.children.length;e++)c.children[e].data===b?c.children.splice(e,1):a.push(c.children[e])};Aa.contains=function(b){return me(this,b)?true:false};
1511
+ function me(b,a){for(var c=[b.root];c.length;){var e=c.shift();if(e.data===a)return e;for(var f=0;f<e.children.length;f++)c.push(e.children[f])}return null}function pe(b,a,c){if(a){c&&c(a);for(var e=0;e<a.children.length;e++)pe(b,a.children[e],c)}}Aa.collapseAll=function(){qe(this,function(e){e.Xd=false;e.Jg=false;e.Fd="collapsed"});this.root.Xd=true;for(var b=this.root.children,a=0;a<b.length;a++){var c=b[a];c.Xd=true;c.Jg=true;c.Fd="collapsed"}};
1512
+ Aa.expandAll=function(){qe(this,function(e){e.Xd=true;e.Jg=true;e.Fd="expanded"});this.root.Xd=true;for(var b=this.root.children,a=0;a<b.length;a++){var c=b[a];c.Xd=true;c.Jg=true;c.Fd="expanded"}};function ne(b,a){a.Jg=true;if(a.Xd===false||oe(b,a))a.Jg=false;for(var c=0;c<a.children.length;c++)ne(b,a.children[c])}function qe(b,a,c){var e=b.root;c?b["_"+c](e,a):pe(b,e,a)}
1513
1513
  Aa.load=function(b){var a="0";this.add("0");var c={};c[0]=a;for(var e=0;e<b.length;e++){var f=b[e],h=f.kq,g=h-1;a=(e+1).toString();g=this.add(a,c[g]);f.node=g;c[h]=a}};function le(b,a){function c(f){var h=parseInt(f.data);if(h>e)e=h;for(h=0;h<f.children.length;h++)c(f.children[h])}var e=parseInt(a.data);c(a);return e};pui.widgets.add({name:"grid",Wn:true,lg:false,defaults:{"number of rows":"7","number of columns":"3","column widths":"150,150,150","column headings":"Heading 1,Heading 2,Heading 3"},yf:function(b){if(b.dom.grid==null){b.dom.grid=new pui.ek;b.dom.grid.b=b.dom.parentNode;b.dom.grid.c=b.dom;if(b.design&&!b.dom.grid.designMode){b.dom.grid.po();b.dom.grid.setProperty("show paging controls",b.properties["show paging controls"]);b.dom.grid.setProperty("show page number",b.properties["show page number"]);
1514
1514
  b.dom.grid.setProperty("show record number range",b.properties["show record number range"]);b.dom.grid.setProperty("show bar",b.properties["show bar"]);b.dom.grid.setProperty("csv export",b.properties["csv export"]);b.dom.grid.setProperty("xlsx export",b.properties["xlsx export"])}if((pui.is_old_ie||pui.is_opera)&&!b.design&&b.properties.scrollbar=="paging"&&P=="dspf"){b.dom.grid.Zr=true;setTimeout(function(){b.dom.grid.Zr=false;b.dom.grid.d!=null&&b.dom.grid.d.z()},0)}if(b.properties["css class"]!=
1515
1515
  null&&b.properties["css class"]!=""){b.dom.className=b.dom.grid.Xc=b.properties["css class"];b.dom.grid.I={};b.dom.grid.hf={}}if(!b.dom.style.top)b.dom.style.top="0px";if(!b.dom.style.left)b.dom.style.left="0px";b.dom.yp=pui.$h.Ni();b.dom.Gh=Jc(b.dom.yp);b.dom.grid.setProperty("has header",b.properties["has header"]);if(b.design){b.e.kp=false;b.dom.grid.setProperty("number of rows",b.properties["number of rows"]);b.dom.grid.setProperty("number of columns",b.properties["number of columns"]);b.dom.grid.setProperty("column widths",
1516
- b.properties["column widths"]);b.dom.grid.setProperty("column headings",b.properties["column headings"]);b.dom.grid.sd();b.dom.grid.Ma();b.dom.grid.fc()}else{if((P=="dspf"||pui.fa)&&b.properties["cursor progression"]!="top to bottom")b.dom.grid.setProperty("number of columns",b.properties["number of columns"]);if((P=="dspf"||pui.fa)&&b.properties["cursor progression"]=="top to bottom")b.dom.grid.setProperty("number of rows",b.properties["number of rows"])}}if(b.propertyName=="number of columns"&&
1516
+ b.properties["column widths"]);b.dom.grid.setProperty("column headings",b.properties["column headings"]);b.dom.grid.rd();b.dom.grid.Ma();b.dom.grid.fc()}else{if((P=="dspf"||pui.fa)&&b.properties["cursor progression"]!="top to bottom")b.dom.grid.setProperty("number of columns",b.properties["number of columns"]);if((P=="dspf"||pui.fa)&&b.properties["cursor progression"]=="top to bottom")b.dom.grid.setProperty("number of rows",b.properties["number of rows"])}}if(b.propertyName=="number of columns"&&
1517
1517
  b.value>b.dom.grid.Ah)b.newValue=b.dom.grid.Ah;if(b.propertyName=="field type"){b.dom.sizeMe=function(){b.dom.grid.kd&&b.dom.grid.Xb();b.dom.grid.alignColumnTotals()};if(b.design){var a=parseInt(b.properties["row height"]);if(!isNaN(a)&&a>0)b.dom.grid.la=a;b.dom.e=b.e;b.e.kp=false}b.dom.style.borderWidth="0px";b.dom.style.padding="0px";b.dom.Qs=b.properties.top;var c=function(e){b.properties[e]!=null&&b.properties[e]!=""&&b.dom.grid.setProperty(e,b.properties[e])};c("header image");c("header background");
1518
1518
  c("header font color");c("header font size");c("header height");c("header font weight");c("header font family");c("odd row background");c("even row background");c("hover effect");c("hover image");c("hover background");c("hover font color");c("header text align");c("row height");c("border color");c("border width");b.design&&setTimeout(function(){c("expand to layout")},0)}b.dom.grid.setProperty(b.propertyName,b.value,b.newValue)},initialize:function(b){if(!b.design&&b.dom!=null&&b.dom.grid!=null){b.properties["field type"]&&
1519
- b.dom.setAttribute("puiwdgt",b.properties["field type"]);b.dom.grid.sd();b.dom.grid.Ma();b.dom.grid.fc();if(b.dom.grid.i!=null){b.dom.grid.i.z();b.dom.grid.i.position()}if(b.properties["expand to layout"]=="true"||b.properties["expand to layout"]==true)b.dom.grid.Xb()}b.dom.Qs&&b.dom.grid.setProperty("top",b.dom.Qs);b.dom.aA=b.properties.left;P=="genie"&&!pui.fa&&!b.design&&b.dom!=null&&b.dom.grid!=null&&b.dom.grid.fw(1,true)}});pui.widgets.add({name:"html container",md:true,dependencies:[{script:"/ejs/ejs.min.js",condition:function(b,a,c){if(c)return true;if(typeof b.html=="string")return b.html.indexOf("<%")>=0;if(P==="dspf"&&pui.p(b.html)){b=pui.R(b.html,a);if(b!=null)return b.indexOf("<%")>=0}return false}}],defaults:{html:"<i>HTML Content</i>","white space":"normal",width:"200px",height:"100px"},propertySetters:{"field type":function(b){b.dom.innerHTML=b.design?b.evalProperty("html"):pui.Qk(b.evalProperty("html"))},
1519
+ b.dom.setAttribute("puiwdgt",b.properties["field type"]);b.dom.grid.rd();b.dom.grid.Ma();b.dom.grid.fc();if(b.dom.grid.i!=null){b.dom.grid.i.z();b.dom.grid.i.position()}if(b.properties["expand to layout"]=="true"||b.properties["expand to layout"]==true)b.dom.grid.Xb()}b.dom.Qs&&b.dom.grid.setProperty("top",b.dom.Qs);b.dom.aA=b.properties.left;P=="genie"&&!pui.fa&&!b.design&&b.dom!=null&&b.dom.grid!=null&&b.dom.grid.fw(1,true)}});pui.widgets.add({name:"html container",md:true,dependencies:[{script:"/ejs/ejs.min.js",condition:function(b,a,c){if(c)return true;if(typeof b.html=="string")return b.html.indexOf("<%")>=0;if(P==="dspf"&&pui.p(b.html)){b=pui.R(b.html,a);if(b!=null)return b.indexOf("<%")>=0}return false}}],defaults:{html:"<i>HTML Content</i>","white space":"normal",width:"200px",height:"100px"},propertySetters:{"field type":function(b){b.dom.innerHTML=b.design?b.evalProperty("html"):pui.Qk(b.evalProperty("html"))},
1520
1520
  html:function(b){b.dom.innerHTML=b.design?b.value:pui.Qk(b.value)}}});pui["encode hyperlink spaces"]=null;pui["default hyperlink tabindex"]=null;
1521
- pui.Br=function(b,a,c,e,f,h,g){b.innerHTML="";var l=document.createElement("a"),o=false;if(c==true||e==null||e.trim()===""){e="javascript:void(0)";o=true}l.href=e;if(!c&&f!=null)l.target=f;a=a;if(P=="genie"&&pui["encode hyperlink spaces"]!=false||pui["encode hyperlink spaces"]==true)a=a.replace(/ /g,"\u00a0");if(typeof g==="string"&&g.trim()!=="")l.download=g;l.appendChild(document.createTextNode(a));if(pui.is_old_ie&&o&&(P=="dspf"||P=="genie"))T(l,"click",function(n){n.preventDefault&&n.preventDefault();
1521
+ pui.Br=function(b,a,c,e,f,h,g){b.innerHTML="";var l=document.createElement("a"),o=false;if(c==true||e==null||e.trim()===""){e="javascript:void(0)";o=true}l.href=e;if(!c&&f!=null)l.target=f;a=a;if(P=="genie"&&pui["encode hyperlink spaces"]!=false||pui["encode hyperlink spaces"]==true)a=a.replace(/ /g,"\u00a0");if(typeof g==="string"&&g.trim()!=="")l.download=g;l.appendChild(document.createTextNode(a));if(pui.is_old_ie&&o&&(P=="dspf"||P=="genie"))S(l,"click",function(n){n.preventDefault&&n.preventDefault();
1522
1522
  return n.returnValue=false});if(h!=null&&h!="")l.tabIndex=h;else if(pui["default hyperlink tabindex"]!=null)l.tabIndex=pui["default hyperlink tabindex"];b.appendChild(l)};
1523
1523
  pui.widgets.add({name:"hyperlink",newValue:"Click Here",md:true,defaults:{color:"#0066CC"},yf:function(b){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":case "background color":var a=b.propertyName.split(" ");if(a.length==2)a[1]=a[1].substr(0,1).toUpperCase()+a[1].substr(1);a=a.join("");var c=b.dom;if(c.firstChild!=
1524
1524
  null&&c.firstChild.tagName=="A")c.firstChild.style[a]=b.value;break}},propertySetters:{"field type":function(b){pui.Br(b.dom,b.evalProperty("value"),b.design,b.properties["hyperlink reference"],b.properties.target,b.evalProperty("tab index"),b.evalProperty("download file"));if(b.design){designUtils.vk(b.dom,"mouseover",function(){setTimeout(b.e.designer.selection.tj,0)});designUtils.vk(b.dom,"mouseout",function(){setTimeout(b.e.designer.selection.tj,0)})}},value:function(b){pui.Br(b.dom,b.value,b.design,
@@ -1526,16 +1526,16 @@ b.properties["hyperlink reference"],b.properties.target,b.evalProperty("tab inde
1526
1526
  classList:{"":"ui-icon ui-icon-"}}];if(a)a=Lb(a);if(pui.customIconList&&pui.customIconList)if(Array.isArray(pui.customIconList.icons)&&pui.customIconList.icons.length)l=pui.customIconList.icons;if(a.substr(0,9)=="material:"){l=a.substr(9);g.innerText=Lb(l);g.className="pui-material-icons";if(f)g.style.cursor=f}else if(a.substr(0,12)=="fontAwesome:"){l=Lb(a.substr(12));g.className="pui-fa-icons fa-"+l;g.innerText=""}else{f=a.split(":");var o=f.shift().split("-"),n=o.pop();o=o.join("-");var r=f.pop();
1527
1527
  l.every(function(p){var t=p.classList[n];if(o===p.type){g.className=t+r;g.innerText=a.startsWith("material-")?Lb(r):"";return false}return true})}if(c)g.className=g.className+" "+c;if(e)g.style.fontSize=e;if(h)g.style.fontFamily=h;b.dom.appendChild(g)}function se(b,a){var c=b.dom.firstChild;c.style.fontSize=parseInt(b.value)<=parseInt(b.dom.style[a])?b.value:b.dom.style[a];b.properties["icon size"]=c.style.fontSize}
1528
1528
  pui.widgets.add({name:"icon",newId:"Icon",tag:"div",defaults:{icon:"material:face"},propertySetters:{"field type":function(b){re(b);b.dom.style.textAlign="center"},icon:function(b){b.properties.icon=b.value;re(b)},width:function(b){se(b,"height")},height:function(b){se(b,"width")},"css class":function(b){b.properties["css class"]=b.value;re(b)},cursor:function(b){b.properties.cursor=b.value;re(b)},"font family":function(b){b.properties["font family"]=b.value;re(b)}}});pui.widgets.add({name:"iframe",newId:"IFrame",menuName:"IFrame",defaults:{width:"400px",height:"300px","z index":"25","background color":"#FFFFFF","frame border":"true"},propertySetters:{"field type":function(b){if(b.design){b.dom.innerHTML="IFrame content will appear here.";b.dom.style.overflow="hidden"}else{b.dom.innerHTML="";url=b.evalProperty("iframe url");if(url==null||url=="")b.dom.innerHTML="IFrame URL property not specified.";else{var a="",c=parseInt(b.properties.width),e=parseInt(b.properties.height);
1529
- if(c>0)a+=' width="'+b.properties.width+'"';if(e>0)a+=' height="'+b.properties.height+'"';c='<iframe src="'+url;c+='" frameborder="';c+=b.properties["frame border"]=="true"?"1":"0";c+='"'+a+">";b.dom.innerHTML=c}}},visibility:function(b){if(!b.design){var a=b.dom.getElementsByTagName("iframe");if(a&&a.length==1){a=a[0];if(b.value=="hidden"){a.style.visibility="hidden";a.style.display="none"}else{a.style.visibility="";a.style.display=""}}}}}});pui.Os=function(b){b=ub(b);if(b.tagName=="IMG")if(b.Ae!=null&&b.Ae!=""){b.Xs=true;if(b.To!=true)b.src=b.Ae}};pui.Ns=function(b){b=ub(b);if(b.tagName=="IMG"){b.Xs=false;if(b.Qd!=null)if(b.To!=true)b.src=b.Qd}};pui.al=function(b){b=ub(b);if(b.tagName=="IMG")if(b.jf!=null&&b.jf!=""){b.To=true;b.src=b.jf}};pui.bl=function(b){if(b.Qd!=null){b.To=false;b.src=b.Xs==true?b.Ae:b.Qd}};
1529
+ if(c>0)a+=' width="'+b.properties.width+'"';if(e>0)a+=' height="'+b.properties.height+'"';c='<iframe src="'+url;c+='" frameborder="';c+=b.properties["frame border"]=="true"?"1":"0";c+='"'+a+">";b.dom.innerHTML=c}}},visibility:function(b){if(!b.design){var a=b.dom.getElementsByTagName("iframe");if(a&&a.length==1){a=a[0];if(b.value=="hidden"){a.style.visibility="hidden";a.style.display="none"}else{a.style.visibility="";a.style.display=""}}}}}});pui.Os=function(b){b=ub(b);if(b.tagName=="IMG")if(b.Ae!=null&&b.Ae!=""){b.Xs=true;if(b.To!=true)b.src=b.Ae}};pui.Ns=function(b){b=ub(b);if(b.tagName=="IMG"){b.Xs=false;if(b.Pd!=null)if(b.To!=true)b.src=b.Pd}};pui.al=function(b){b=ub(b);if(b.tagName=="IMG")if(b.jf!=null&&b.jf!=""){b.To=true;b.src=b.jf}};pui.bl=function(b){if(b.Pd!=null){b.To=false;b.src=b.Xs==true?b.Ae:b.Pd}};
1530
1530
  pui.Ps=function(b){if(b.design)return null;var a=b.evalProperty("blob table"),c=b.evalProperty("blob column");if(a!=null&&c!=null&&a!=""&&c!=""){a={};c="?AUTH="+encodeURIComponent(pui.ba?pui.ba:pui.appJob.auth)+"&q="+encodeURIComponent(pui.Wc(b.dom));pui.ld(b.properties,a);for(var e in a)c+="&"+encodeURIComponent(e)+"="+a[e];c+="&rnd="+String(Math.random())+String((new Date).getTime());return Wb("PUI0009119.PGM")+c}return null};
1531
- pui.widgets.add({name:"image",tag:"img",propertySetters:{"field type":function(b){b.dom.onselectstart=ya(false);b.dom.ondragstart=ya(false);b.dom.setAttribute("draggable","false");if(typeof b.dom.style.MozUserSelect!="undefined")b.dom.style.MozUserSelect="none";b.dom.Qd=b.evalProperty("image source");var a=pui.Ps(b);if(a)b.dom.Qd=a;b.dom.src=b.dom.Qd;a=b.evalProperty("hover image source");b.dom.Ae=a;if(a!=null&&a!=""){b.dom.Ae=pui.normalizeURL(b.dom.Ae,true);T(b.dom,"mouseover",pui.Os);T(b.dom,"mouseout",
1532
- pui.Ns);(new Image).src=a}a=b.evalProperty("click image source");b.dom.jf=a;if(a!=null&&a!=""){b.dom.jf=pui.normalizeURL(b.dom.jf,true);T(b.dom,"mousedown",pui.al);T(document,"mouseup",function(){pui.bl(b.dom)});T(b.dom,"touchstart",pui.al);T(document,"touchend",function(){pui.bl(b.dom)});(new Image).src=a}},"image source":function(b){b.dom.Qd=pui.normalizeURL(b.value,true);if(b.design&&b.dom.Qd.indexOf(".svg")!=-1)if(!b.properties.width&&!b.properties.height){var a=Dc();a=pui.Mi(a,"width");b.dom=
1533
- Pc(a,b.properties,b.dom,"200px",b.design,b.e,b.Ut);b.e.designer.ob.TA("width","200px",true)}},"blob column":function(b){var a=pui.Ps(b);if(a)b.dom.Qd=a;b.dom.src=b.dom.Qd},"hover image source":function(b){b.dom.Ae=b.value;if(b.value!=null&&b.value!=""){b.dom.Ae=pui.normalizeURL(b.dom.Ae,true);T(b.dom,"mouseover",pui.Os);T(b.dom,"mouseout",pui.Ns);(new Image).src=b.value}},"click image source":function(b){b.dom.jf=b.value;if(b.value!=null&&b.value!=""){b.dom.jf=pui.normalizeURL(b.dom.jf,true);T(b.dom,
1534
- "mousedown",pui.al);T(document,"mouseup",function(){pui.bl(b.dom)});T(b.dom,"touchstart",pui.al);T(document,"touchend",function(){pui.bl(b.dom)});(new Image).src=b.value}}}});pui.Su=function(){function b(g){function l(F){function D(){F.yh>0&&F.Xj==null&&f.Mt();if(f.b.onoptionclick!=null&&!f.nq)Eb()||F.Xj==null&&f.b.onoptionclick(F.fh,Oc(F));else if(P=="dspf")if(F.Xj==null){var E=f.b;if(E.S!=null)if(E.disabled!=true){E.S=F.fh;if(E.G=="true"||E.G=="send data")pui.G=E.G;if(f.nq)pui.La=f.routine;if(pui.cc()==false){E.S="";pui.La=null;pui.Nc=null;pui.Mc=null}}}}F.oncontextmenu=ya(false);F.onmouseover=function(){F.pi=true;if(f.yg!=null&&f.yg!="")F.style.backgroundColor=f.yg;
1531
+ pui.widgets.add({name:"image",tag:"img",propertySetters:{"field type":function(b){b.dom.onselectstart=ya(false);b.dom.ondragstart=ya(false);b.dom.setAttribute("draggable","false");if(typeof b.dom.style.MozUserSelect!="undefined")b.dom.style.MozUserSelect="none";b.dom.Pd=b.evalProperty("image source");var a=pui.Ps(b);if(a)b.dom.Pd=a;b.dom.src=b.dom.Pd;a=b.evalProperty("hover image source");b.dom.Ae=a;if(a!=null&&a!=""){b.dom.Ae=pui.normalizeURL(b.dom.Ae,true);S(b.dom,"mouseover",pui.Os);S(b.dom,"mouseout",
1532
+ pui.Ns);(new Image).src=a}a=b.evalProperty("click image source");b.dom.jf=a;if(a!=null&&a!=""){b.dom.jf=pui.normalizeURL(b.dom.jf,true);S(b.dom,"mousedown",pui.al);S(document,"mouseup",function(){pui.bl(b.dom)});S(b.dom,"touchstart",pui.al);S(document,"touchend",function(){pui.bl(b.dom)});(new Image).src=a}},"image source":function(b){b.dom.Pd=pui.normalizeURL(b.value,true);if(b.design&&b.dom.Pd.indexOf(".svg")!=-1)if(!b.properties.width&&!b.properties.height){var a=Dc();a=pui.Mi(a,"width");b.dom=
1533
+ Pc(a,b.properties,b.dom,"200px",b.design,b.e,b.Ut);b.e.designer.ob.TA("width","200px",true)}},"blob column":function(b){var a=pui.Ps(b);if(a)b.dom.Pd=a;b.dom.src=b.dom.Pd},"hover image source":function(b){b.dom.Ae=b.value;if(b.value!=null&&b.value!=""){b.dom.Ae=pui.normalizeURL(b.dom.Ae,true);S(b.dom,"mouseover",pui.Os);S(b.dom,"mouseout",pui.Ns);(new Image).src=b.value}},"click image source":function(b){b.dom.jf=b.value;if(b.value!=null&&b.value!=""){b.dom.jf=pui.normalizeURL(b.dom.jf,true);S(b.dom,
1534
+ "mousedown",pui.al);S(document,"mouseup",function(){pui.bl(b.dom)});S(b.dom,"touchstart",pui.al);S(document,"touchend",function(){pui.bl(b.dom)});(new Image).src=b.value}}}});pui.Su=function(){function b(g){function l(F){function D(){F.yh>0&&F.Xj==null&&f.Mt();if(f.b.onoptionclick!=null&&!f.nq)Eb()||F.Xj==null&&f.b.onoptionclick(F.fh,Oc(F));else if(P=="dspf")if(F.Xj==null){var E=f.b;if(E.S!=null)if(E.disabled!=true){E.S=F.fh;if(E.G=="true"||E.G=="send data")pui.G=E.G;if(f.nq)pui.La=f.routine;if(pui.cc()==false){E.S="";pui.La=null;pui.Nc=null;pui.Mc=null}}}}F.oncontextmenu=ya(false);F.onmouseover=function(){F.pi=true;if(f.yg!=null&&f.yg!="")F.style.backgroundColor=f.yg;
1535
1535
  else F.className="menu-hover";if(f.zg!=null&&f.zg!="")F.style.color=f.zg;if(f.jj!=null&&f.jj!=""){F.style.backgroundImage="url('"+f.jj+"')";if(f.repeat!=null&&f.repeat.length>0){F.style.backgroundRepeat=f.repeat;if(f.repeat=="no-repeat")F.style.backgroundPosition="left center"}}else F.style.backgroundImage=F.Ab!=null&&F.Ab!=""?"url('"+F.Ab+"')":"";for(var E=F,C=[],K=0;K<h.length;K++)h[K].yh>=E.yh&&C.push(h[K]);for(K=0;K<C.length;K++)f.Gp(C[K]);f.Qy(F)};F.onmouseout=function(E){if(!E)E=window.event;
1536
1536
  var C=E.relatedTarget;if(C==null)C=E.toElement;for(;C!=null&&(C.tagName=="TABLE"||C.tagName=="TBODY"||C.tagName=="TR");){if(C.firstChild==null)break;C=C.firstChild}if(C==null||C.yh==null||C.tagName!="TD"||C.tx!=f.b.id){E=false;if(C!=null){if(C==r)E=true;if(n!=null&&C==n)E=true;if(C.Xo)E=true;if(!E){C=e(C);var K=e(F);if(C&&C===K)E=true}}E||f.Mt()}else if(F.vb!=null){for(E=true;C!=null;){if(F.vb==C){E=false;break}C=C.parentNode}E&&f.Gp(F)}if(f.zg!=null&&f.zg!="")F.style.color="";if(F.Ab!=null&&F.Ab!=
1537
- ""){F.style.backgroundImage="url('"+F.Ab+"')";F.style.backgroundRepeat=f.repeat}else F.style.backgroundImage="";if(f.yg!=null&&f.yg!=""){F.pi=false;if(f.animate){var R=function(N){N-=10;if(N<40){if(!F.pi)F.style.backgroundColor="";F.pi=true}if(F.pi)N=100;F.style.filter="alpha(opacity="+N+")";F.style.opacity=N/100;F.pi||setTimeout(function(){R(N)},60)};R(100)}else F.style.backgroundColor=""}else F.className=""};if(pui.is_touch&&!pui.is_mouse_capable&&F.children.length>0)F.addEventListener("touchend",
1538
- D,false);else F.onclick=D;F.ondblclick=function(E){if(Eb()&&F.orientation=="vertical"&&F.yh==0){var C=designUtils.getTarget(E);for(E=C.parentNode;E.tagName!="DIV";)E=E.parentNode;var K=Ib.designer.ph(E);if(!pui.p(K.properties.choices)&&!pui.Kb(K.properties.choices)&&typeof C.Kr==="number"){K.designer.Cf.op=function(R){var N=K.properties.choices;if(N=="")N="Option 1,Option 2,Option 3";N=N.split(",");N[C.Kr]=R;N=N.join(",");R=Dc().choices;K.designer.ca.add(K,R.name);Pc(R,K.properties,K.dom,N,true,K,
1537
+ ""){F.style.backgroundImage="url('"+F.Ab+"')";F.style.backgroundRepeat=f.repeat}else F.style.backgroundImage="";if(f.yg!=null&&f.yg!=""){F.pi=false;if(f.animate){var L=function(Q){Q-=10;if(Q<40){if(!F.pi)F.style.backgroundColor="";F.pi=true}if(F.pi)Q=100;F.style.filter="alpha(opacity="+Q+")";F.style.opacity=Q/100;F.pi||setTimeout(function(){L(Q)},60)};L(100)}else F.style.backgroundColor=""}else F.className=""};if(pui.is_touch&&!pui.is_mouse_capable&&F.children.length>0)F.addEventListener("touchend",
1538
+ D,false);else F.onclick=D;F.ondblclick=function(E){if(Eb()&&F.orientation=="vertical"&&F.yh==0){var C=designUtils.getTarget(E);for(E=C.parentNode;E.tagName!="DIV";)E=E.parentNode;var K=Ib.designer.ph(E);if(!pui.p(K.properties.choices)&&!pui.Kb(K.properties.choices)&&typeof C.Kr==="number"){K.designer.Cf.op=function(L){var Q=K.properties.choices;if(Q=="")Q="Option 1,Option 2,Option 3";Q=Q.split(",");Q[C.Kr]=L;Q=Q.join(",");L=Dc().choices;K.designer.ca.add(K,L.name);Pc(L,K.properties,K.dom,Q,true,K,
1539
1539
  null);K.pb.choices=true;K.hd=true;K.designer.jd[K.designer.Na.ub]=true;K.designer.ob.Kh("choices")};K.designer.Cf.show(K,C,"menu")}}}}var o=g.b,n=g.Kx;if(o.Sj==undefined)o.Sj=true;o.innerHTML="";pui.Q(o,"pui-menu");g.orientation=="horizontal"&&pui.Q(o,"pui-horizontal");var r=document.createElement("table"),p=o.style.width;if(p!=null&&p!=""&&g.orientation!="horizontal")r.style.width="100%";r.cellPadding=0;r.cellSpacing=0;p=a(g.xo);var t,s=f.borderColor;if(s!=""&&s!=null){s=pui.mt(s);r.style.borderTop=
1540
1540
  "1px solid "+s;r.style.borderLeft="1px solid "+s}for(var w=g.xo;w<=g.zu;w++)if(a(w)==p){var A=f.choices[w];if(typeof A=="string")for(;A.substr(0,1)=="-";)A=A.substr(1);var B=f.me[w];if(B==null)B=A;t=t==null||g.orientation=="vertical"?r.insertRow(r.rows.length):t;var G=t.insertCell(t.cells.length);if(A==null||A==""||Lb(A)=="")A="&nbsp;";G.innerHTML=A;G.fh=B;G.yh=p;if(Eb())G.Kr=w;G.tx=f.b.id;G.orientation=g.orientation;if(f.padding!=null&&f.padding.length>0)G.style.paddingTop=G.style.paddingBottom=
1541
1541
  G.style.paddingRight=f.padding;if(f.paddingLeft!=null&&f.paddingLeft.length>0)G.style.paddingLeft=f.paddingLeft;if(s!=""&&s!=null){G.style.borderRight="1px solid "+s;G.style.borderBottom="1px solid "+s}if(f.animate){G.style.filter="alpha(opacity=100)";G.style.opacity=1}if(f.Ab!=null&&f.Ab!=""){G.Ab=f.Ab;if(f.kj.length>1)G.Ab=f.kj[w]!=null?f.kj[w]:"";if(G.Ab!="")G.style.backgroundImage="url('"+pui.normalizeURL(G.Ab,true)+"')";if(f.repeat!=null&&f.repeat.length>0){G.style.backgroundRepeat=f.repeat;
@@ -1555,11 +1555,11 @@ b.propertyName!="value"&&pui.p(b.properties.value)){if(c=="")b.dom.style.overflo
1555
1555
  pui.widgets.add({name:"output field",md:true,propertySetters:{"field type":function(b){te(b,b.evalProperty("value"),b.evalProperty("label for"))},value:function(b){if(b.design||b.properties.value!="script: value")te(b,b.value,b.evalProperty("label for"))},"overflow x":function(b){if(P=="dspf"&&b.design&&pui.p(b.properties.value)&&(b.value==""||b.value==null)){b.properties["overflow x"]="";b.dom.style.overflowX="hidden";return false}}}});function ue(b){var a=b.properties["show visibility eye"];b=b.dom;var c=document.getElementById(b.id);if(a==="true"){var e=document.createElement("i");c.style.zIndex="21";e.id=b.id.replace("Password","PasswordEye");e.classList="pui-fa-solid-icons fa-eye";e.style.top=c.offsetTop+(c.offsetHeight/2-9)+"px";e.style.left=c.offsetLeft+(c.offsetWidth-35)+"px";e.style.fontSize="20px";e.style.color="lightslategray";e.style.zIndex="22";e.style.position="absolute";e.style.cursor="pointer";c.before(e);e.addEventListener("click",
1556
1556
  function(){var f=c.getAttribute("type")==="password"?"text":"password";c.setAttribute("type",f);e.classList.toggle("fa-eye-slash")})}else{a=b.id.replace("Password","PasswordEye");e=document.getElementById(a);if(e!==null){e.remove();c.style.zIndex=""}}}
1557
1557
  function ve(b){if(b.properties["show visibility eye"]==="true"){var a=b.dom;b=document.getElementById(a.id);a=a.id.replace("Password","PasswordEye");a=document.getElementById(a);if(a!==null){a.style.top=b.offsetTop+(b.offsetHeight/2-9)+"px";a.style.left=b.offsetLeft+(b.offsetWidth-35)+"px"}}}
1558
- pui.widgets.add({name:"password field",tag:"input",inputType:"password",newId:"Password",propertySetters:{"field type":function(b){b.dom.value=b.evalProperty("value");if(!b.design){if(pui.pa&&!pui.zf){T(b.dom,"focus",function(){Bb("ipadKeyboard").style.display=""});T(b.dom,"blur",function(){Bb("ipadKeyboard").style.display="none"})}if(b.dom.getAttribute("autocomplete")==null&&(P!="genie"||!pui.F.config.$g)){b.dom.setAttribute("autocomplete","off");P=="dspf"&&b.dom.setAttribute("name",pui.Rd())}P==
1559
- "dspf"&&!Eb()&&T(b.dom,"click",function(a){if(pui["highlight on focus"]){a.target.focus();a.target.select()}})}},value:function(b){b.dom.value=b.value},top:function(b){ve(b)},left:function(b){ve(b)},width:function(b){ve(b)},height:function(b){ve(b)},"browser auto complete":function(b){if(!b.design){b.dom.setAttribute("autocomplete",b.value);if(P=="dspf")b.value=="off"?b.dom.setAttribute("name",pui.Rd()):b.dom.removeAttribute("name")}},"show visibility eye":function(b){if(b.properties["parent tab"]===
1558
+ pui.widgets.add({name:"password field",tag:"input",inputType:"password",newId:"Password",propertySetters:{"field type":function(b){b.dom.value=b.evalProperty("value");if(!b.design){if(pui.pa&&!pui.zf){S(b.dom,"focus",function(){Bb("ipadKeyboard").style.display=""});S(b.dom,"blur",function(){Bb("ipadKeyboard").style.display="none"})}if(b.dom.getAttribute("autocomplete")==null&&(P!="genie"||!pui.F.config.$g)){b.dom.setAttribute("autocomplete","off");P=="dspf"&&b.dom.setAttribute("name",pui.Qd())}P==
1559
+ "dspf"&&!Eb()&&S(b.dom,"click",function(a){if(pui["highlight on focus"]){a.target.focus();a.target.select()}})}},value:function(b){b.dom.value=b.value},top:function(b){ve(b)},left:function(b){ve(b)},width:function(b){ve(b)},height:function(b){ve(b)},"browser auto complete":function(b){if(!b.design){b.dom.setAttribute("autocomplete",b.value);if(P=="dspf")b.value=="off"?b.dom.setAttribute("name",pui.Qd()):b.dom.removeAttribute("name")}},"show visibility eye":function(b){if(b.properties["parent tab"]===
1560
1560
  undefined){b.properties["show visibility eye"]=b.value;ue(b)}else pui.alert("Cannot turn property to true when password field is contained in a Tab Panel control. Please use a Tab Layout control.")}},qc:function(b){b.propertyName=="field type"&&b.za&&b.za.l!=null&&b.dom&&b.dom.l==null&&pui.sg(b.dom)}});pui.widgets.add({name:"radio button",tag:"input",inputType:"radio",Zo:"label",resizable:false,defaults:{label:"Radio Button"},propertySetters:{"field type":function(b){if(b.design&&!pui.is_quirksmode)if(!pui.is_old_ie)b.dom.style.margin="2px";if(!b.design){var a=b.evalProperty("label");if(a!=""){if(b.properties.left!=null)b.dom.style.left=b.properties.left;if(b.properties.top!=null)b.dom.style.top=b.properties.top;pui.Cr(b.dom,a)}if(P=="dspf"){var c=b.evalProperty("value");a=b.evalProperty("radio button group");
1561
- if(c!=null&&a!=null)if(c==a||!isNaN(Number(c))&&!isNaN(Number(a))&&Number(c)==Number(a)){if(pui.is_old_ie)b.dom.name="radio";b.dom.checked=true}T(b.dom,"click",function(){if(b.dom.readOnly)if(b.dom.checked==false)b.dom.checked=true;else if(b.dom.checked==true)b.dom.checked=false});T(b.dom,"keydown",function(f){switch(true){case f.keyCode==9&&f.shiftKey==false:var h=b.dom.nextSibling,g=h.nextSibling;if(h.Vs==true&&g&&g.type=="radio"){f.preventDefault();g.focus()}break;case f.keyCode==9&&f.shiftKey==
1562
- true:h=b.dom.previousSibling;g=h.previousSibling;if(h.Vs==true&&g&&g.type=="radio"){f.preventDefault();g.focus()}break;default:break}})}else if(P=="genie"){a=b.evalProperty("related field");var e=false;if(b.dom.B)c=b.dom.B;else if(a!="")if(b.dom.cy){if(b.dom.cy.B)c=related.B}else e=true;if(c)if(c.bypass){b.dom.disabled=true;c=c.attr;e=c=="27"||c=="2F"||c=="37"||c=="3F"}if(e){b.dom.style.visibility="hidden";if(b.dom.Ld)b.dom.Ld.style.visibility="hidden"}}}},visibility:function(b){if(!b.design&&b.dom.Ld)b.dom.Ld.style.visibility=
1561
+ if(c!=null&&a!=null)if(c==a||!isNaN(Number(c))&&!isNaN(Number(a))&&Number(c)==Number(a)){if(pui.is_old_ie)b.dom.name="radio";b.dom.checked=true}S(b.dom,"click",function(){if(b.dom.readOnly)if(b.dom.checked==false)b.dom.checked=true;else if(b.dom.checked==true)b.dom.checked=false});S(b.dom,"keydown",function(f){switch(true){case f.keyCode==9&&f.shiftKey==false:var h=b.dom.nextSibling,g=h.nextSibling;if(h.Vs==true&&g&&g.type=="radio"){f.preventDefault();g.focus()}break;case f.keyCode==9&&f.shiftKey==
1562
+ true:h=b.dom.previousSibling;g=h.previousSibling;if(h.Vs==true&&g&&g.type=="radio"){f.preventDefault();g.focus()}break;default:break}})}else if(P=="genie"){a=b.evalProperty("related field");var e=false;if(b.dom.B)c=b.dom.B;else if(a!="")if(b.dom.cy){if(b.dom.cy.B)c=related.B}else e=true;if(c)if(c.bypass){b.dom.disabled=true;c=c.attr;e=c=="27"||c=="2F"||c=="37"||c=="3F"}if(e){b.dom.style.visibility="hidden";if(b.dom.Kd)b.dom.Kd.style.visibility="hidden"}}}},visibility:function(b){if(!b.design&&b.dom.Kd)b.dom.Kd.style.visibility=
1563
1563
  b.value=="hidden"?"hidden":""},"css class":function(b){if(b.design&&b.e.label){b.e.label.className="label-for";var a=Lb(b.value.split(" ")[0]);a!=""&&pui.Q(b.e.label,"label-for-"+a)}}}});pui.cp=function(b,a,c){b=pui.ha(b);var e=pui.ha(a);c.choices={};for(var f=0;f<b.length;f++){var h=b[f],g=e[f];if(g==null||a=="")g=h;if(c.tagName=="SELECT"){var l=new Option(h,g);c.options[c.options.length]=l}c.choices[g]=h}};
1564
1564
  pui.Ph=function(b,a){if(a.B!=null&&a.B.shift!=null)if(a.B.shift=="2"||a.B.shift=="3"||a.B.shift=="5"||a.B.shift=="7"){b=Lb(b);a.pui.properties.value=b}if(a.tagName=="INPUT"){a.value=a.choices!=null&&a.choices[b]!=null?a.choices[b]:b;a.pui.properties.value=b}else{var c=false;if(a.getAttribute("multiple")!=null)c=true;if(!c){a.value=b;a.pui.properties.value=b}if(c){c=b.split(",");for(var e=0;e<a.options.length;e++)for(var f=a.options[e],h=0;h<c.length;h++)if(c[h]==f.value){f.selected=true;break}}}};
1565
1565
  pui.widgets.add({name:"select box",tag:"select",menuName:["Dropdown Box","List Box"],propertySetters:{"field type":function(b){if(b.dom.tagName=="SELECT")b.dom.options.length=0;b.dom.choices={};var a=b.evalProperty("choices url");if(a!=""&&!b.design){var c=new pui.Ajax(pui.df(a));c.async=true;c.suppressAlert=true;c.onready=function(){if(b.dom.tagName=="SELECT")b.dom.options.length=0;b.dom.choices={};var p=Kb(c,"Generate Dropdown Box Options");if(p){for(var t=0;t<p.length;t++){var s=p[t];if(b.dom.tagName==
@@ -1571,18 +1571,18 @@ w.value);b.dom.add(w)}catch(A){b.dom.add(w,null)}b.dom.choices[w.value]=w.text}p
1571
1571
  b.dom)},choices:function(b){var a=b.evalProperty("choices database file"),c=b.evalProperty("choices url");if(!(a!=""||c!="")){if(b.dom.tagName=="SELECT")b.dom.options.length=0;a=b.value;c=b.evalProperty("choice values");pui.cp(a,c,b.dom);pui.Ph(b.evalProperty("value"),b.dom)}},"choice values":function(b){var a=b.evalProperty("choices database file"),c=b.evalProperty("choices url");if(!(a!=""||c!="")){if(b.dom.tagName=="SELECT")b.dom.options.length=0;a=b.evalProperty("choices");pui.cp(a,b.value,b.dom);
1572
1572
  pui.Ph(b.evalProperty("value"),b.dom)}},"select box height":function(b){if(b.design&&pui.is_old_ie&&pui.ie_mode==6){var a=Dc();Pc(a["field type"],b.properties,b.dom,"select box",b.design,b.e,b.Ut)}}}});pui.Slider=function(){this.u=null;this.orientation="horizontal";this.value=2;this.minValue=0;this.maxValue=10;this.Af=1;this.disabled=this.readOnly=this.design=false;var b=this,a,c,e,f=pui.is_touch&&!pui.is_mouse_capable||pui.pa;this.init=function(){function h(g){function l(A){var B=ad(A)-t,G=$c(A)-p,F=b.maxValue-b.minValue,D=0;D=n?a.clientHeight:a.clientWidth;B=F*(((n?w+B:s+G)-(n?a.offsetTop:a.offsetLeft)+(n?c.clientHeight/2:c.clientWidth/2))/D)+b.minValue;if(B<b.minValue)B=b.minValue;if(B>b.maxValue)B=
1573
1573
  b.maxValue;B=b.Op(B);if(B!=b.value){b.setValue(B);b.u.modified=true;pui.Re(b.u);if(P=="genie"&&b.u.B!=null&&b.u.B.idx!=null)pui.response[b.u.B.idx]=b.u;!b.design&&typeof b.u.onchange=="function"&&b.u.onchange(A)}r&&A.preventDefault()}function o(){if(r){ac(document,"touchmove",l);ac(document,"touchend",o)}else{ac(document,"mousemove",l);ac(document,"mouseup",o)}}if(!b.readOnly)if(!b.disabled){var n=b.orientation=="vertical",r=false;if(g!=null&&g.touches!=null){if(g.touches.length!=1)return;r=true}var p=
1574
- $c(g),t=ad(g),s=parseInt(c.offsetLeft),w=parseInt(c.offsetTop);if(r){T(document,"touchmove",l);T(document,"touchend",o)}else{T(document,"mousemove",l);T(document,"mouseup",o)}vb(g);return false}}a=document.createElement("div");a.className="bar";if(!b.design&&P=="genie"){e=Yb("input",b.u.name);e.type="hidden";document.forms.main.appendChild(e)}c=document.createElement("div");c.className="handle";b.u.onselectstart=ya(false);a.onselectstart=ya(false);c.onselectstart=ya(false);T(c,"mousedown",h);T(c,
1574
+ $c(g),t=ad(g),s=parseInt(c.offsetLeft),w=parseInt(c.offsetTop);if(r){S(document,"touchmove",l);S(document,"touchend",o)}else{S(document,"mousemove",l);S(document,"mouseup",o)}vb(g);return false}}a=document.createElement("div");a.className="bar";if(!b.design&&P=="genie"){e=Yb("input",b.u.name);e.type="hidden";document.forms.main.appendChild(e)}c=document.createElement("div");c.className="handle";b.u.onselectstart=ya(false);a.onselectstart=ya(false);c.onselectstart=ya(false);S(c,"mousedown",h);S(c,
1575
1575
  "touchstart",h);b.u.appendChild(a);b.u.appendChild(c);b.z();pui.Wf.push(b)};this.Op=function(h,g){var l=b.Af/2;if(g==true)l=0;l=parseInt((h+b.minValue+l)/b.Af)*b.Af-b.minValue;return l=Math.round(l*1E6)/1E6};this.z=function(){pui.Q(b.u,"slider");f&&!b.design&&pui.Q(b.u,"touch");pui.da(b.u,b.orientation=="vertical"?"horizontal":"vertical");pui.Q(b.u,b.orientation);b.setValue(b.value)};this.pq=function(){if(isNaN(b.Af))b.Af=1;if(b.Af<=0)b.Af=1;if(isNaN(b.minValue))b.minValue=0;if(isNaN(b.maxValue))b.maxValue=
1576
1576
  10;if(isNaN(b.value))b.value=0;if(b.value<b.minValue)b.value=b.minValue;if(b.value>b.maxValue)b.value=b.maxValue;b.value=b.Op(b.value);b.u.value=b.value;if(!b.design&&P=="genie")e.value=b.value};this.setValue=function(h){h=Number(h);if(isNaN(h))h=b.minValue;if(h<b.minValue)h=b.minValue;if(h>b.maxValue)h=b.Op(b.maxValue,true);var g=b.maxValue-b.minValue,l=b.orientation=="vertical",o=0,n=0;o=l?a.clientHeight:a.clientWidth;n=l?c.clientHeight/2:c.clientWidth/2;g=parseInt(o/g*(h-b.minValue)-n)+10;if(isNaN(g))g=
1577
1577
  0;if(l){c.style.top=g+"px";c.style.left=""}else{c.style.left=g+"px";c.style.top=""}b.value=h;b.u.value=h;if(!b.design&&P=="genie")e.value=b.value};this.destroy=function(){if(b!=null)b=e=c=a=b.u=null}};
1578
1578
  pui.widgets.add({name:"slider",defaults:{width:"150px",height:"20px"},propertySetters:{"field type":function(b){if(b.dom.U==null)b.dom.U=new pui.Slider;b.dom.U.u=b.dom;b.dom.U.design=b.design;b.dom.U.value=b.evalProperty("value");b.dom.U.init()},value:function(b){b.dom.U!=null&&b.dom.U.setValue(b.value)},orientation:function(b){if(b.dom.U!=null){b.dom.U.orientation=b.value;b.dom.U.z()}},"min value":function(b){if(!b.design&&b.dom.U!=null){b.dom.U.minValue=Number(b.value);b.dom.U.maxValue=Number(b.evalProperty("max value"));
1579
1579
  b.dom.U.value=Number(b.evalProperty("value"));b.dom.U.pq();b.dom.U.z()}},"max value":function(b){if(!b.design&&b.dom.U!=null){b.dom.U.maxValue=Number(b.value);b.dom.U.minValue=Number(b.evalProperty("min value"));b.dom.U.value=Number(b.evalProperty("value"));b.dom.U.pq();b.dom.U.z()}},"increment value":function(b){if(!b.design&&b.dom.U!=null){b.dom.U.Af=Number(b.value);b.dom.U.value=Number(b.evalProperty("value"));b.dom.U.pq();b.dom.U.z()}},"read only":function(b){if(b.dom.U!=null&&!b.design)b.dom.U.readOnly=
1580
- b.value==true||b.value=="true"?true:false},disabled:function(b){if(b.dom.U!=null&&!b.design)b.dom.U.disabled=b.value==true||b.value=="true"?true:false},width:function(b){b.dom.style.width=b.value;b.dom.U!=null&&b.dom.U.z()},height:function(b){b.dom.style.height=b.value;b.dom.U!=null&&b.dom.U.z()}},qc:function(b){b.propertyName.indexOf("css class")===0&&b.dom.U!=null&&b.dom.U.z()}});pui.Tu=function(){function b(){var p=c.b.offsetWidth;if(p==0){p=parseInt(c.b.style.width);if(isNaN(p))p=0;p+=2}return onPoint=c.ym?parseInt((p+3)/2):p-6}function a(p){if(!c.readOnly)if(!c.disabled)if(!c.designMode)if(!r){c.toggle(true);c.Pj(p)}}this.b=null;this.readOnly=this.disabled=false;this.ym=this.Kd=true;this.designMode=false;var c=this,e=document.createElement("label"),f=document.createElement("span"),h=document.createElement("label"),g=document.createElement("span"),l=document.createElement("div"),
1580
+ b.value==true||b.value=="true"?true:false},disabled:function(b){if(b.dom.U!=null&&!b.design)b.dom.U.disabled=b.value==true||b.value=="true"?true:false},width:function(b){b.dom.style.width=b.value;b.dom.U!=null&&b.dom.U.z()},height:function(b){b.dom.style.height=b.value;b.dom.U!=null&&b.dom.U.z()}},qc:function(b){b.propertyName.indexOf("css class")===0&&b.dom.U!=null&&b.dom.U.z()}});pui.Tu=function(){function b(){var p=c.b.offsetWidth;if(p==0){p=parseInt(c.b.style.width);if(isNaN(p))p=0;p+=2}return onPoint=c.ym?parseInt((p+3)/2):p-6}function a(p){if(!c.readOnly)if(!c.disabled)if(!c.designMode)if(!r){c.toggle(true);c.Pj(p)}}this.b=null;this.readOnly=this.disabled=false;this.ym=this.Jd=true;this.designMode=false;var c=this,e=document.createElement("label"),f=document.createElement("span"),h=document.createElement("label"),g=document.createElement("span"),l=document.createElement("div"),
1581
1581
  o=document.createElement("div"),n=document.createElement("div"),r=false;this.init=function(){function p(t){function s(D){r=true;var E=F+$c(D)-G;if(E<0)E=0;if(E>A)E=A;c.vp(E);B&&D.preventDefault()}function w(D){if(B){ac(document,"touchmove",s);ac(document,"touchend",w)}else{ac(document,"mousemove",s);ac(document,"mouseup",w)}var E=Math.abs(F-parseInt(l.style.left)),C=c.b.offsetWidth;if(C==0){C=parseInt(c.b.style.width);if(isNaN(C))C=0;C+=2}C=C/2;if(c.ym)C=C/2-4;if(r){if(E<=5||E>=C){c.toggle(true);
1582
- c.Pj(D)}else c.refresh(true);setTimeout(function(){r=false},0)}}if(!c.readOnly)if(!c.disabled)if(!c.designMode){var A=b(),B=false;if(t!=null&&t.touches!=null){if(t.touches.length!=1)return;B=true}var G=$c(t),F=parseInt(l.style.left);if(B){T(document,"touchmove",s);T(document,"touchend",w)}else{T(document,"mousemove",s);T(document,"mouseup",w)}vb(t);return false}}e.className="off-label";e.appendChild(f);h.className="on-label";h.appendChild(g);l.className="onoff-handle-left";o.className="onoff-handle-right";
1583
- n.className="onoff-handle-center";o.appendChild(n);l.appendChild(o);pui.Q(c.b,"onoff-switch");c.b.appendChild(e);c.b.appendChild(h);c.b.appendChild(l);ac(c.b,"click",a);T(c.b,"click",a);T(c.b,"mousedown",p);T(c.b,"touchstart",p);c.size()};this.size=function(){var p=c.b.offsetWidth;if(p==0){p=parseInt(c.b.style.width);if(isNaN(p))p=0;p+=2}offLabelWidth=p-5;if(offLabelWidth<0)offLabelWidth=0;e.style.width=offLabelWidth+"px";c.ju(c.ym)};this.ju=function(p){if(p){var t=c.b.offsetWidth;if(t==0){t=parseInt(c.b.style.width);
1582
+ c.Pj(D)}else c.refresh(true);setTimeout(function(){r=false},0)}}if(!c.readOnly)if(!c.disabled)if(!c.designMode){var A=b(),B=false;if(t!=null&&t.touches!=null){if(t.touches.length!=1)return;B=true}var G=$c(t),F=parseInt(l.style.left);if(B){S(document,"touchmove",s);S(document,"touchend",w)}else{S(document,"mousemove",s);S(document,"mouseup",w)}vb(t);return false}}e.className="off-label";e.appendChild(f);h.className="on-label";h.appendChild(g);l.className="onoff-handle-left";o.className="onoff-handle-right";
1583
+ n.className="onoff-handle-center";o.appendChild(n);l.appendChild(o);pui.Q(c.b,"onoff-switch");c.b.appendChild(e);c.b.appendChild(h);c.b.appendChild(l);ac(c.b,"click",a);S(c.b,"click",a);S(c.b,"mousedown",p);S(c.b,"touchstart",p);c.size()};this.size=function(){var p=c.b.offsetWidth;if(p==0){p=parseInt(c.b.style.width);if(isNaN(p))p=0;p+=2}offLabelWidth=p-5;if(offLabelWidth<0)offLabelWidth=0;e.style.width=offLabelWidth+"px";c.ju(c.ym)};this.ju=function(p){if(p){var t=c.b.offsetWidth;if(t==0){t=parseInt(c.b.style.width);
1584
1584
  if(isNaN(t))t=0;t+=2}t=parseInt((t-14)/2);if(t<0)t=0;l.style.width=t+"px"}else l.style.width="";c.ym=p;c.refresh()};this.vp=function(p,t){for(var s=["transition","MozTransition","WebkitTransition","msTransition","OTransition"],w=" 0.3s ease",A=0;A<s.length;A++){var B=s[A];if(t){w=" 0.2s ease";h.style[B]="width"+w;g.style[B]="margin-left"+w;f.style[B]="margin-right"+w;l.style[B]="left"+w}else{h.style[B]="";g.style[B]="";f.style[B]="";l.style[B]=""}}s=b();h.style.width=p+4+"px";g.style.marginLeft=p-
1585
- s+"px";f.style.marginRight=-p+"px";l.style.left=p+"px"};this.Iy=function(p){var t=b();c.vp(t,p);c.Kd=true};this.Hy=function(p){c.vp(0,p);c.Kd=false};this.set=function(p,t){p?c.Iy(t):c.Hy(t)};this.toggle=function(p){c.set(!c.Kd,p)};this.refresh=function(p){c.set(c.Kd,p)};this.aw=function(p){g.innerHTML=p};this.$v=function(p){f.innerHTML=p};this.disable=function(){c.disabled=true;pui.Q(c.b,"onoff-switch-disabled")};this.enable=function(){c.disabled=false;pui.da(c.b,"onoff-switch-disabled")};this.Ey=
1585
+ s+"px";f.style.marginRight=-p+"px";l.style.left=p+"px"};this.Iy=function(p){var t=b();c.vp(t,p);c.Jd=true};this.Hy=function(p){c.vp(0,p);c.Jd=false};this.set=function(p,t){p?c.Iy(t):c.Hy(t)};this.toggle=function(p){c.set(!c.Jd,p)};this.refresh=function(p){c.set(c.Jd,p)};this.aw=function(p){g.innerHTML=p};this.$v=function(p){f.innerHTML=p};this.disable=function(){c.disabled=true;pui.Q(c.b,"onoff-switch-disabled")};this.enable=function(){c.disabled=false;pui.da(c.b,"onoff-switch-disabled")};this.Ey=
1586
1586
  function(p,t){var s=p.split(" "),w=p;if(s.length==2)w=s[0]+s[1].substr(0,1).toUpperCase()+s[1].substr(1);g.style[w]=t;f.style[w]=t};this.Gy=function(p){c.b.style.cursor=p;h.style.cursor=p;e.style.cursor=p;l.style.cursor=p};this.Pj=function(p){c.b.modified=true;pui.Re(c.b);if(P=="genie"&&c.b.B!=null&&c.b.B.idx!=null)pui.response[c.b.B.idx]=c.b;!c.designMode&&typeof c.b.onchange=="function"&&c.b.onchange(p)}};
1587
1587
  pui.widgets.add({name:"on off switch",defaults:{width:"100px",height:"27px"},propertySetters:{"field type":function(b){if(b.dom.M==null)b.dom.M=new pui.Tu;b.dom.M.b=b.dom;b.dom.M.designMode=b.design;b.dom.M.init();b.dom.M.set(b.evalProperty("value")==b.evalProperty("on value"));if(b.design){b.dom.M.Gy("default");var a=Dc(),c;if(b.properties["on text"]){c=a["on text"];Pc(c,b.properties,b.e.dom,b.properties["on text"],true,b.e)}if(b.properties["off text"]){c=a["off text"];Pc(c,b.properties,b.e.dom,
1588
1588
  b.properties["off text"],true,b.e)}}else{b.dom.M.Dh=b.evalProperty("on value");b.dom.M.Ch=b.evalProperty("off value")}b.dom.sizeMe=function(){b.dom.M.size()}},value:function(b){b.dom.M!=null&&b.dom.M.set(b.value==b.evalProperty("on value"))},"on value":function(b){b.dom.M!=null&&b.dom.M.set(b.evalProperty("value")==b.value)},"read only":function(b){if(b.dom.M!=null)b.dom.M.readOnly=b.value==true||b.value=="true"},disabled:function(b){if(b.dom.M!=null)b.value==true||b.value=="true"?b.dom.M.disable():
@@ -1594,9 +1594,9 @@ 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.
1594
1594
  Number(b.value);if(isNaN(n))n=0;n+=o;n=Math.round(n*1E4)/1E4;if(a!=null&&n<a)n=a;if(c!=null&&n>c)n=c;var r=Number(b.getAttribute("maxLength"));if(r!=null&&!isNaN(r)&&r>0){if(r==1&&n<0)n=0;if(String(n).length>r)return}r=b.onspin;if(r!=null){o=r(b.value,o,b,n);if(typeof o=="string"||typeof o=="number")n=o}b.value=n;b.modified=true;pui.Re(b);if(P=="genie"&&b.B!=null&&b.B.idx!=null)pui.response[b.B.idx]=b;pui.le(b)}};this.Vp=function(o){var n=b.className.split(" ").indexOf("PR")>-1;if(o==null){g.className=
1595
1595
  "input pui-spinner-up-arrow-input";l.className="input pui-spinner-down-arrow-input"}else{g.className="input pui-spinner-up-arrow-input spinner-up-arrow-"+o;l.className="input pui-spinner-down-arrow-input spinner-down-arrow-"+o}if(n){g.className+=" PR";l.className+=" PR"}};h.Vp();this.setDisabled=function(){if(b.disabled){g.setAttribute("disabled","true");l.setAttribute("disabled","true")}else{g.removeAttribute("disabled");l.removeAttribute("disabled")}}};
1596
1596
  pui.widgets.add({name:"spinner",tag:"input",tp:pui.normalizeURL("/profoundui/proddata/images/up.gif"),xt:pui.normalizeURL("/profoundui/proddata/images/down.gif"),Ls:"input pui-spinner-up-arrow-input",$z:"input pui-spinner-down-arrow-input",wt:true,mA: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.mh();a.Eg()};else{if(b.dom.ad==undefined){b.dom.ad=new pui.Xu(b.dom,b.evalProperty("min value"),
1597
- b.evalProperty("max value"),b.evalProperty("increment value"),!b.design);b.dom.sizeMe=function(){b.dom.ad.Ct()}}if(b.dom.getAttribute("autocomplete")==null&&(P!="genie"||!pui.F.config.$g)){b.dom.setAttribute("autocomplete","off");P=="dspf"&&b.dom.setAttribute("name",pui.Rd())}}if(b.design)b.dom.readOnly=true;b.dom.ge=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():
1597
+ b.evalProperty("max value"),b.evalProperty("increment value"),!b.design);b.dom.sizeMe=function(){b.dom.ad.Ct()}}if(b.dom.getAttribute("autocomplete")==null&&(P!="genie"||!pui.F.config.$g)){b.dom.setAttribute("autocomplete","off");P=="dspf"&&b.dom.setAttribute("name",pui.Qd())}}if(b.design)b.dom.readOnly=true;b.dom.ge=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():
1598
1598
  b.dom.ad.show()},"css class":function(b){var a=b.value.split(" ").shift();if(!b.design&&b.dom.ad)b.dom.ad.Vp(a);else{var c=b.e.cx,e=b.e.Zz;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",
1599
- b.value);if(P=="dspf")b.value=="off"?b.dom.setAttribute("name",pui.Rd()):b.dom.removeAttribute("name")}}},qc:function(b){if(b.propertyName=="field type"&&b.za&&b.za.l!=null&&b.dom&&b.dom.l==null){for(var a=b.za.xc,c=0;c<a.length;++c)a[c].parentNode&&a[c].parentNode.removeChild(a[c]);pui.sg(b.dom);b.dom.ad.Vp()}P=="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"},
1599
+ b.value);if(P=="dspf")b.value=="off"?b.dom.setAttribute("name",pui.Qd()):b.dom.removeAttribute("name")}}},qc:function(b){if(b.propertyName=="field type"&&b.za&&b.za.l!=null&&b.dom&&b.dom.l==null){for(var a=b.za.xc,c=0;c<a.length;++c)a[c].parentNode&&a[c].parentNode.removeChild(a[c]);pui.sg(b.dom);b.dom.ad.Vp()}P=="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"},
1600
1600
  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,
1601
1601
  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",
1602
1602
  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,
@@ -1604,22 +1604,22 @@ textColor:"#ffffff",hiColor:"#000000",editBackgroundColor:"#c054c0"},"Flash Styl
1604
1604
  top:10,bottom:10,hasOverState:false,hasClickState:false,textColor:"#ffffff",editBackgroundColor:"#eca430",width:125},"Purple Gel":{left:23,right:23,top:10,bottom:10,hasOverState:false,hasClickState:false,textColor:"#ffffff",editBackgroundColor:"#712be9",width:125},"Green Gel":{left:23,right:23,top:10,bottom:10,hasOverState:false,hasClickState:false,textColor:"#ffffff",editBackgroundColor:"#6eec2f",width:125}};
1605
1605
  pui.widgets.getStyledButtonProxy=function(b){var a=b["button style"],c={};c.dom=document.createElement("div");c.dom.style.position="relative";c.dom.style.width="100px";if(b.width!=null)c.dom.style.width=b.width;c.dom.style.height="23px";c.Df=true;c.properties={};c.properties.width="100px";if(b.width!=null)c.properties.width=b.width;c.properties.height="23px";c.properties.value="Click Here";c.properties["button style"]=a;c.evalProperty=function(e){return c.properties[e]};pui.widgets["styled button"].propertySetters["field type"](c);
1606
1606
  a=pui.widgets.buttonStyles[a].textColor;if(a!=null)c.dom.button.m.style.color=a;if(b["font size"]!=null)c.dom.button.m.style.fontSize=b["font size"];if(b["font family"]!=null)c.dom.button.m.style.fontFamily=b["font family"];if(b["font weight"]!=null)c.dom.button.m.style.fontWeight=b["font weight"];if(b["text align"]!=null)c.dom.button.m.style.textAlign=b["text align"];return c.dom};
1607
- pui.widgets.Rj=function(b,a,c){var e=pui.normalizeURL("/profoundui/proddata/images/buttons/"+b+"/");a.ya.style.backgroundImage="url('"+e+"topleft"+c+".png')";a.kb.style.backgroundImage="url('"+e+"topmiddle"+c+".png')";a.Ra.style.backgroundImage="url('"+e+"topright"+c+".png')";a.db.src=e+"left"+c+".png";a.Nd.src=e+"middle"+c+".png";a.gb.src=e+"right"+c+".png";a.db.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+e+"left"+c+".png', sizingMethod='scale')";a.Nd.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+
1607
+ pui.widgets.Rj=function(b,a,c){var e=pui.normalizeURL("/profoundui/proddata/images/buttons/"+b+"/");a.ya.style.backgroundImage="url('"+e+"topleft"+c+".png')";a.kb.style.backgroundImage="url('"+e+"topmiddle"+c+".png')";a.Ra.style.backgroundImage="url('"+e+"topright"+c+".png')";a.db.src=e+"left"+c+".png";a.Md.src=e+"middle"+c+".png";a.gb.src=e+"right"+c+".png";a.db.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+e+"left"+c+".png', sizingMethod='scale')";a.Md.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+
1608
1608
  e+"middle"+c+".png', sizingMethod='scale')";a.gb.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+e+"right"+c+".png', sizingMethod='scale')";a.Ya.style.backgroundImage="url('"+e+"bottomleft"+c+".png')";a.Za.style.backgroundImage="url('"+e+"bottommiddle"+c+".png')";a.$a.style.backgroundImage="url('"+e+"bottomright"+c+".png')";b=pui.widgets.buttonStyles[b];if(b!=null&&b.Sv!=true){a=function(f){(new Image).src=e+f+".png"};if(b.hasOverState==true&&c!="-hi"){a("topleft-hi");a("topmiddle-hi");
1609
1609
  a("topright-hi");a("left-hi");a("middle-hi");a("right-hi");a("bottomleft-hi");a("bottommiddle-hi");a("bottomright-hi")}if(b.hasClickState==true&&b.clickStateIsNormalState!=true&&c!="-click"){a("topleft-click");a("topmiddle-click");a("topright-click");a("left-click");a("middle-click");a("right-click");a("bottomleft-click");a("bottommiddle-click");a("bottomright-click")}b.Sv=true}};
1610
1610
  pui.widgets.Xl=function(b,a,c,e,f){if(typeof c=="string"){if(c!=""&&!isNaN(c))c+="px";c=c.length>=3&&c.substr(c.length-2)=="px"?parseInt(c):b.ya.parentNode.offsetWidth}if(typeof e=="string"){if(e!=""&&!isNaN(e))e+="px";e=e.length>=3&&e.substr(e.length-2)=="px"?parseInt(e):b.ya.parentNode.offsetHeight}if(typeof c!="number")c=parseInt(c);if(isNaN(c))c=100;if(typeof e!="number")e=parseInt(e);if(isNaN(e))e=23;var h=false;if(e<a.top+a.bottom){e=a.top+a.bottom;b.m.parentNode.style.height=e+"px";h=true}if(c<
1611
- a.left+a.right){c=a.left+a.right;b.m.parentNode.style.width=c+"px";h=true}h&&f!=null&&f.design==true&&f.e.designer.selection.tj();b.ya.style.width=a.left+"px";b.ya.style.height=a.top+"px";b.kb.style.left=a.left+"px";b.kb.style.height=a.top+"px";b.kb.style.width=c-a.left-a.right+"px";b.Ra.style.left=c-a.right+"px";b.Ra.style.height=a.top+"px";b.Ra.style.width=a.right+"px";b.db.style.top=a.top+"px";b.db.style.width=a.left+"px";b.db.style.height=e-a.top-a.bottom+"px";b.Nd.style.left=a.left+"px";b.Nd.style.top=
1612
- a.top+"px";b.Nd.style.width=c-a.left-a.right+"px";b.Nd.style.height=e-a.top-a.bottom+"px";b.gb.style.left=c-a.right+"px";b.gb.style.top=a.top+"px";b.gb.style.width=a.right+"px";b.gb.style.height=e-a.top-a.bottom+"px";b.Ya.style.top=e-a.bottom+"px";b.Ya.style.width=a.left+"px";b.Ya.style.height=a.bottom+"px";b.Za.style.left=a.left+"px";b.Za.style.top=e-a.bottom+"px";b.Za.style.height=a.bottom+"px";b.Za.style.width=c-a.left-a.right+"px";b.$a.style.left=c-a.right+"px";b.$a.style.top=e-a.bottom+"px";
1611
+ a.left+a.right){c=a.left+a.right;b.m.parentNode.style.width=c+"px";h=true}h&&f!=null&&f.design==true&&f.e.designer.selection.tj();b.ya.style.width=a.left+"px";b.ya.style.height=a.top+"px";b.kb.style.left=a.left+"px";b.kb.style.height=a.top+"px";b.kb.style.width=c-a.left-a.right+"px";b.Ra.style.left=c-a.right+"px";b.Ra.style.height=a.top+"px";b.Ra.style.width=a.right+"px";b.db.style.top=a.top+"px";b.db.style.width=a.left+"px";b.db.style.height=e-a.top-a.bottom+"px";b.Md.style.left=a.left+"px";b.Md.style.top=
1612
+ a.top+"px";b.Md.style.width=c-a.left-a.right+"px";b.Md.style.height=e-a.top-a.bottom+"px";b.gb.style.left=c-a.right+"px";b.gb.style.top=a.top+"px";b.gb.style.width=a.right+"px";b.gb.style.height=e-a.top-a.bottom+"px";b.Ya.style.top=e-a.bottom+"px";b.Ya.style.width=a.left+"px";b.Ya.style.height=a.bottom+"px";b.Za.style.left=a.left+"px";b.Za.style.top=e-a.bottom+"px";b.Za.style.height=a.bottom+"px";b.Za.style.width=c-a.left-a.right+"px";b.$a.style.left=c-a.right+"px";b.$a.style.top=e-a.bottom+"px";
1613
1613
  b.$a.style.height=a.bottom+"px";b.$a.style.width=a.right+"px";b.m.style.left=a.left+"px";b.m.style.top="0px";b.m.style.width=c-a.left-a.right+"px";b.m.style.height=e+"px";b.m.style.lineHeight=e+"px"};
1614
1614
  pui.widgets.add({name:"styled button",newValue:"Click Here",md:true,defaults:{width:"100px",height:"23px","button style":"Ice Blue"},propertySetters:{"field type":function(b){function a(){if(!(b.dom.getAttribute!=null&&b.dom.getAttribute("disabled")=="true"||b.dom.disabled!=null&&b.dom.disabled==true)){b.dom.ht=true;if(b.dom.Mn!=true){var l=b.dom.button.Ak,o=pui.widgets.buttonStyles[l];if(o==null){l=pui.widgets.ve()[0];o=pui.widgets.buttonStyles[l]}o.hasOverState&&pui.widgets.Rj(l,b.dom.button,"-hi");
1615
1615
  if(o.hiColor!=null)b.dom.button.m.style.color=o.hiColor}}}function c(l){b.dom.ht=false;if(b.dom.Mn!=true){if(pui.is_old_ie){if((l=l.relatedTarget||l.toElement)&&l!=b.dom)l=l.parentNode;if(l==b.dom)return}var o=b.dom.button.Ak;l=pui.widgets.buttonStyles[o];if(l==null){o=pui.widgets.ve()[0];l=pui.widgets.buttonStyles[o]}l.hasOverState&&pui.widgets.Rj(o,b.dom.button,"");if(l.hiColor!=null){o=b.properties.color;if(o==null)o=l.textColor;b.dom.button.m.style.color=o}}}function e(l){if(!(b.dom.getAttribute!=
1616
1616
  null&&b.dom.getAttribute("disabled")=="true"||b.dom.disabled!=null&&b.dom.disabled==true))if(!pui.Be(l)){b.dom.Mn=true;l=b.dom.button.Ak;var o=pui.widgets.buttonStyles[l];if(o==null){l=pui.widgets.ve()[0];o=pui.widgets.buttonStyles[l]}b.dom.button.m.style.left=o.left+1+"px";b.dom.button.m.style.top="1px";if(o.hasClickState){var n="-click";if(o.clickStateIsNormalState==true)n="";pui.widgets.Rj(l,b.dom.button,n)}}}function f(){b.dom.Mn=false;var l=b.dom.button.Ak,o=pui.widgets.buttonStyles[l];if(o==
1617
1617
  null){l=pui.widgets.ve()[0];o=pui.widgets.buttonStyles[l]}b.dom.button.m.style.left=o.left+"px";b.dom.button.m.style.top="0px";if(o.hasClickState){var n="";h.m.style.color=b.properties.color;if(o.hasOverState&&b.dom.ht==true){n="-hi";if(o.hiColor!=null)b.dom.button.m.style.color=o.hiColor}pui.widgets.Rj(l,b.dom.button,n)}}b.dom.sizeMe=function(){var l=b.properties["button style"];l=pui.widgets.buttonStyles[l];if(l==null){l=pui.widgets.ve()[0];l=pui.widgets.buttonStyles[l]}pui.widgets.Xl(b.dom.button,
1618
- l,b.dom.offsetWidth,b.dom.offsetHeight,b)};b.dom.style.textAlign="center";if(b.properties.color!=null)b.dom.style.color=b.properties.color;b.dom.innerHTML="";var h={};h.ya=document.createElement("div");h.kb=document.createElement("div");h.Ra=document.createElement("div");h.db=document.createElement("img");h.Nd=document.createElement("img");h.gb=document.createElement("img");h.Ya=document.createElement("div");h.Za=document.createElement("div");h.$a=document.createElement("div");h.m=document.createElement("div");
1619
- h.ya.style.position="absolute";h.ya.style.padding="0px";h.ya.style.margin="0px";h.kb.style.position="absolute";h.kb.style.padding="0px";h.kb.style.margin="0px";h.Ra.style.position="absolute";h.Ra.style.padding="0px";h.Ra.style.margin="0px";h.db.style.position="absolute";h.db.style.padding="0px";h.db.style.margin="0px";h.Nd.style.position="absolute";h.Nd.style.padding="0px";h.Nd.style.margin="0px";h.gb.style.position="absolute";h.gb.style.padding="0px";h.gb.style.margin="0px";h.Ya.style.position="absolute";
1618
+ l,b.dom.offsetWidth,b.dom.offsetHeight,b)};b.dom.style.textAlign="center";if(b.properties.color!=null)b.dom.style.color=b.properties.color;b.dom.innerHTML="";var h={};h.ya=document.createElement("div");h.kb=document.createElement("div");h.Ra=document.createElement("div");h.db=document.createElement("img");h.Md=document.createElement("img");h.gb=document.createElement("img");h.Ya=document.createElement("div");h.Za=document.createElement("div");h.$a=document.createElement("div");h.m=document.createElement("div");
1619
+ h.ya.style.position="absolute";h.ya.style.padding="0px";h.ya.style.margin="0px";h.kb.style.position="absolute";h.kb.style.padding="0px";h.kb.style.margin="0px";h.Ra.style.position="absolute";h.Ra.style.padding="0px";h.Ra.style.margin="0px";h.db.style.position="absolute";h.db.style.padding="0px";h.db.style.margin="0px";h.Md.style.position="absolute";h.Md.style.padding="0px";h.Md.style.margin="0px";h.gb.style.position="absolute";h.gb.style.padding="0px";h.gb.style.margin="0px";h.Ya.style.position="absolute";
1620
1620
  h.Ya.style.padding="0px";h.Ya.style.margin="0px";h.Za.style.position="absolute";h.Za.style.padding="0px";h.Za.style.margin="0px";h.$a.style.position="absolute";h.$a.style.padding="0px";h.$a.style.margin="0px";h.ya.style.top="0px";h.ya.style.left="0px";h.ya.style.backgroundRepeat="no-repeat";h.kb.style.top="0px";h.kb.style.backgroundRepeat="repeat-x";h.Ra.style.top="0px";h.Ra.style.backgroundRepeat="no-repeat";h.db.style.left="0px";h.Ya.style.left="0px";h.Ya.style.backgroundRepeat="no-repeat";h.Za.style.backgroundRepeat=
1621
1621
  "repeat-x";h.$a.style.backgroundRepeat="no-repeat";h.m.style.position="absolute";h.m.style.verticalAlign="middle";h.m.style.display="";h.m.style.overflow="hidden";h.m.onselectstart=ya(false);if(typeof h.m.style.MozUserSelect!="undefined")h.m.style.MozUserSelect="none";h.m.style.textAlign="center";if(b.properties["text align"]!=null)h.m.style.textAlign=b.properties["text align"];if(b.properties["font family"]!=null)h.m.style.fontFamily=b.properties["font family"];if(b.properties.color!=null)h.m.style.color=
1622
- b.properties.color;if(b.properties["font size"]!=null)h.m.style.fontSize=b.properties["font size"];if(b.properties["font weight"]!=null)h.m.style.fontWeight=b.properties["font weight"];b.Df!=true&&T(b.dom,"mouseover",a);b.Df!=true&&T(b.dom,"mouseout",c);b.Df!=true&&T(b.dom,"mousedown",e);if(b.Df!=true){T(b.dom,"mouseup",f);T(b.dom,"touchend",f);T(b.dom,"mouseleave",f)}b.dom.appendChild(h.ya);b.dom.appendChild(h.kb);b.dom.appendChild(h.Ra);b.dom.appendChild(h.db);b.dom.appendChild(h.Nd);b.dom.appendChild(h.gb);
1622
+ b.properties.color;if(b.properties["font size"]!=null)h.m.style.fontSize=b.properties["font size"];if(b.properties["font weight"]!=null)h.m.style.fontWeight=b.properties["font weight"];b.Df!=true&&S(b.dom,"mouseover",a);b.Df!=true&&S(b.dom,"mouseout",c);b.Df!=true&&S(b.dom,"mousedown",e);if(b.Df!=true){S(b.dom,"mouseup",f);S(b.dom,"touchend",f);S(b.dom,"mouseleave",f)}b.dom.appendChild(h.ya);b.dom.appendChild(h.kb);b.dom.appendChild(h.Ra);b.dom.appendChild(h.db);b.dom.appendChild(h.Md);b.dom.appendChild(h.gb);
1623
1623
  b.dom.appendChild(h.Ya);b.dom.appendChild(h.Za);b.dom.appendChild(h.$a);b.dom.appendChild(h.m);b.dom.button=h;var g=b.value;b.value=b.properties["button style"];pui.widgets["styled button"].propertySetters["button style"](b);b.value=g;b.dom.button.m.innerHTML=b.evalProperty("value")},"button style":function(b){var a=b.value,c=pui.widgets.buttonStyles[a];if(c==null){a=pui.widgets.ve()[0];c=pui.widgets.buttonStyles[a]}pui.normalizeURL("/profoundui/proddata/images/buttons/"+a+"/");b.dom.button.Ak=a;
1624
1624
  var e=b.dom.button;pui.widgets.Rj(a,e,"");e.m.className="styled-button "+a.split(" ").join("-").toLowerCase()+"-button";pui.widgets.Xl(e,c,b.properties.width,b.properties.height)},value:function(b){b.dom.button.m.innerHTML=b.value},width:function(b){b.dom.style.width=pui.Si(b.value)?b.value+"px":b.value;var a=b.properties["button style"];a=pui.widgets.buttonStyles[a];if(a==null){a=pui.widgets.ve()[0];a=pui.widgets.buttonStyles[a]}pui.widgets.Xl(b.dom.button,a,b.value,b.properties.height,b)},height:function(b){b.dom.style.height=
1625
1625
  pui.Si(b.value)?b.value+"px":b.value;var a=b.properties["button style"];a=pui.widgets.buttonStyles[a];if(a==null){a=pui.widgets.ve()[0];a=pui.widgets.buttonStyles[a]}pui.widgets.Xl(b.dom.button,a,b.properties.width,b.value,b)},color:function(b){b.dom.button.m.style.color=b.value},"font family":function(b){b.dom.button.m.style.fontFamily=b.value},"font size":function(b){b.dom.button.m.style.fontSize=b.value},"font style":function(b){b.dom.button.m.style.fontStyle=b.value},"font variant":function(b){b.dom.button.m.style.fontVariant=
@@ -1628,49 +1628,49 @@ hiUnderline:true,selBold:true,separated:true,borderColor:"#5977b3"},Glow:{useIma
1628
1628
  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},
1629
1629
  CSS:{useImages:false,hz:false}};pui.widgets.Qx=function(b){var a=pui.widgets.tabStyles[b];if(a!=null)if(a.Rx!=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.Rx=true}};
1630
1630
  function we(){function b(){if(g.A.scrollLeft>0)g.A.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.A.scrollLeft<g.A.scrollWidth-g.A.offsetWidth)try{g.A.scrollLeft+=s}catch(D){}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)}
1631
- this.uc="Tab 1,Tab 2,Tab 3";this.Qg="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.Bd=0;this.sk=true;this.Xe={};var A,B,G,F;this.bn=0;this.defaults={};this.defaults.fontFamily="arial";this.defaults.fontSize="12px";this.defaults.color="#333366";this.ib=[];this.selectedTab=
1632
- 0;this.b=null;this.Fc="#eeeeff";this.ic="Simple";this.A=null;this.Js=function(D){var E=false;if(this.selectedTab==D){if(!this.dm){for(var C=-1,K=0,R=this.ib.length;K<R;K++)if(K!=D&&this.Xe[K]!==true){C=K;break}if(C!=-1){this.selectedTab=C;E=this.Xe[D]=true}}}else E=this.Xe[D]=true;E&&this.Tc()};this.ou=function(D){g.Xe[D]=false;g.Tc()};this.setTab=function(D){if(g.selectedTab!=D){g.selectedTab=D;if(g.Xe[D])g.Xe[D]=false;g.xp(D)}};this.getTab=function(){return g.selectedTab};this.refresh=function(){g.setTab(g.selectedTab)};
1633
- this.eu=function(){var D=pui.widgets.tabStyles[g.ic];if(D!=null&&D.defaultBackColor!=null)g.Fc=D.defaultBackColor};this.Tc=function(){g.z()};this.z=function(){function D(ha){ha=(P=="dspf"&&!Q?pui.runtimeContainer:document.getElementById(Da)).getElementsByTagName(ha);for(var Y=0;Y<ha.length;Y++){var X=ha[Y];if(X.Wa!=null&&X.eb!=null&&X.Wa==g.b.id){if(X.eb==g.selectedTab){X.style.visibility="";applyProperty(X,"visibility","");if(X.grid&&X.grid.setProperty)X.grid.h||!X.grid.Pe?X.grid.show():X.grid.hide();
1634
- !Eb()&&X.pui.properties["field type"]=="chart"&&!X.chart&&applyProperty(X,"field type","chart")}else{X.style.visibility="hidden";applyProperty(X,"visibility","hidden");X.grid&&X.grid.setProperty&&X.grid.hide();X.H!=null&&X.H.hide()}if(Q&&X.tagName=="INPUT"&&(X.type=="text"||pui.gl(X.type)||X.type=="checkbox"||X.type=="radio"))Ib.designer.ph(X).mh()}}}if(g.ic==null||g.ic=="")g.ic="Simple";A=pui.widgets.tabStyles[g.ic];if(A==null)A=pui.widgets.tabStyles.Simple;B=pui.normalizeURL("/profoundui/proddata/images/tabs/"+
1631
+ this.uc="Tab 1,Tab 2,Tab 3";this.Qg="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.Ad=0;this.sk=true;this.Xe={};var A,B,G,F;this.bn=0;this.defaults={};this.defaults.fontFamily="arial";this.defaults.fontSize="12px";this.defaults.color="#333366";this.ib=[];this.selectedTab=
1632
+ 0;this.b=null;this.Fc="#eeeeff";this.ic="Simple";this.A=null;this.Js=function(D){var E=false;if(this.selectedTab==D){if(!this.dm){for(var C=-1,K=0,L=this.ib.length;K<L;K++)if(K!=D&&this.Xe[K]!==true){C=K;break}if(C!=-1){this.selectedTab=C;E=this.Xe[D]=true}}}else E=this.Xe[D]=true;E&&this.Tc()};this.ou=function(D){g.Xe[D]=false;g.Tc()};this.setTab=function(D){if(g.selectedTab!=D){g.selectedTab=D;if(g.Xe[D])g.Xe[D]=false;g.xp(D)}};this.getTab=function(){return g.selectedTab};this.refresh=function(){g.setTab(g.selectedTab)};
1633
+ this.eu=function(){var D=pui.widgets.tabStyles[g.ic];if(D!=null&&D.defaultBackColor!=null)g.Fc=D.defaultBackColor};this.Tc=function(){g.z()};this.z=function(){function D(ia){ia=(P=="dspf"&&!T?pui.runtimeContainer:document.getElementById(Da)).getElementsByTagName(ia);for(var ca=0;ca<ia.length;ca++){var W=ia[ca];if(W.Wa!=null&&W.eb!=null&&W.Wa==g.b.id){if(W.eb==g.selectedTab){W.style.visibility="";applyProperty(W,"visibility","");if(W.grid&&W.grid.setProperty)W.grid.h||!W.grid.Pe?W.grid.show():W.grid.hide();
1634
+ !Eb()&&W.pui.properties["field type"]=="chart"&&!W.chart&&applyProperty(W,"field type","chart")}else{W.style.visibility="hidden";applyProperty(W,"visibility","hidden");W.grid&&W.grid.setProperty&&W.grid.hide();W.H!=null&&W.H.hide()}if(T&&W.tagName=="INPUT"&&(W.type=="text"||pui.gl(W.type)||W.type=="checkbox"||W.type=="radio"))Ib.designer.ph(W).mh()}}}if(g.ic==null||g.ic=="")g.ic="Simple";A=pui.widgets.tabStyles[g.ic];if(A==null)A=pui.widgets.tabStyles.Simple;B=pui.normalizeURL("/profoundui/proddata/images/tabs/"+
1635
1635
  g.ic.toLowerCase()+"/");G=A.imageFileExtension;if(G==null)G="gif";if(G.substr(0,1)==".")G=G.substr(1);F="#aaaaaa";if(A.borderColor!=null)F=A.borderColor;g.b.innerHTML="";g.b.style.backgroundColor="";if(A.hz!==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.A=document.createElement("div");g.A.className="header-area";g.A.style.position=
1636
1636
  "absolute";g.A.style.left="0px";g.A.style.top="0px";g.A.style.height=A.height+E+1+"px";g.A.style.padding="0px";g.A.style.whiteSpace="nowrap";g.A.style.overflow="hidden";if(A.backBar){g.b.style.overflowX="hidden";g.b.style.overflowY="hidden";if(A.backBarColor!=null)g.A.style.backgroundColor=A.backBarColor;else{g.A.style.backgroundImage="url("+B+"middle."+G+")";g.A.style.backgroundRepeat="repeat-x"}}g.A.style.width="100%";var C=document.createElement("div");C.style.position="absolute";C.style.left=
1637
- "0px";C.style.top=A.height+E+"px";C.className="content-area";var K=g.b.style.width,R=0;if(typeof K=="string"&&K!=""&&!isNaN(K))K+="px";if(K!=null&&K!=""&&K.length>=3&&K.substr(K.length-2)=="px"){R=parseInt(K);if(isNaN(R))R=0;R+=2}else R=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;C.style.height=Math.abs(N-A.height-E-4)+"px";C.style.width=
1638
- Math.abs(R-4)+"px";E=1;if(A.borderSize)E=A.borderSize;C.style.border=E+"px solid "+F;C.style.backgroundColor=g.Fc;for(E=0;E<g.ib.length;E++){R=document.createElement("span");R.style.display="inline-block";if(this.Xe[E])R.style.display="none";if(E==g.selectedTab){if(g.b.className!="")R.className=g.b.className.split(" ")[0]+"-";R.className+="selected-tab"}if(A.leftWidth!=null){var M=document.createElement("span");M.style.backgroundImage="url("+B+"left"+(E==g.selectedTab?"-sel":"")+"."+G+")";M.style.backgroundRepeat=
1639
- "no-repeat";M.style.height=A.height+2+"px";M.style.width=A.leftWidth+"px";M.style.cssFloat="left";M.style.styleFloat="left";M.style.display="inline-block"}if(A.rightWidth!=null){var W=document.createElement("span");W.style.backgroundImage="url("+B+"right"+(E==g.selectedTab?"-sel":"")+"."+G+")";W.style.backgroundRepeat="no-repeat";W.style.height=A.height+2+"px";W.style.width=A.rightWidth+"px";W.style.cssFloat="left";W.style.styleFloat="left";W.style.display="inline-block"}K=document.createElement("span");
1640
- K.Aa=E;K.innerHTML=g.ib[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("+B+"middle"+(E==g.selectedTab?"-sel":"")+"."+G+")";K.style.backgroundRepeat="repeat-x";N=1;if(A.leftMargin)N=A.leftMargin;M.style.marginLeft=N+"px";M.style.paddingTop="2px";K.style.padding="2px 0.5em";W.style.paddingTop="2px";if(E!=
1641
- g.selectedTab)K.style.cursor="pointer";else{if(A.separated!=true){M.style.backgroundColor=g.Fc;W.style.backgroundColor=g.Fc;K.style.backgroundColor=g.Fc;if((this.ic=="Glass"||this.ic=="Delicate"||this.ic=="Classic")&&E==g.selectedTab){M.style.backgroundSize="cover";W.style.backgroundSize="cover";M.style.backgroundColor="";W.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=
1637
+ "0px";C.style.top=A.height+E+"px";C.className="content-area";var K=g.b.style.width,L=0;if(typeof K=="string"&&K!=""&&!isNaN(K))K+="px";if(K!=null&&K!=""&&K.length>=3&&K.substr(K.length-2)=="px"){L=parseInt(K);if(isNaN(L))L=0;L+=2}else L=g.b.offsetWidth;K=g.b.style.height;if(typeof K=="string"&&K!=""&&!isNaN(K))K+="px";var Q=0;if(K!=null&&K!=""&&K.length>=3&&K.substr(K.length-2)=="px"){Q=parseInt(K);if(isNaN(Q))Q=0;Q+=2}else Q=g.b.offsetHeight;C.style.height=Math.abs(Q-A.height-E-4)+"px";C.style.width=
1638
+ Math.abs(L-4)+"px";E=1;if(A.borderSize)E=A.borderSize;C.style.border=E+"px solid "+F;C.style.backgroundColor=g.Fc;for(E=0;E<g.ib.length;E++){L=document.createElement("span");L.style.display="inline-block";if(this.Xe[E])L.style.display="none";if(E==g.selectedTab){if(g.b.className!="")L.className=g.b.className.split(" ")[0]+"-";L.className+="selected-tab"}if(A.leftWidth!=null){var N=document.createElement("span");N.style.backgroundImage="url("+B+"left"+(E==g.selectedTab?"-sel":"")+"."+G+")";N.style.backgroundRepeat=
1639
+ "no-repeat";N.style.height=A.height+2+"px";N.style.width=A.leftWidth+"px";N.style.cssFloat="left";N.style.styleFloat="left";N.style.display="inline-block"}if(A.rightWidth!=null){var X=document.createElement("span");X.style.backgroundImage="url("+B+"right"+(E==g.selectedTab?"-sel":"")+"."+G+")";X.style.backgroundRepeat="no-repeat";X.style.height=A.height+2+"px";X.style.width=A.rightWidth+"px";X.style.cssFloat="left";X.style.styleFloat="left";X.style.display="inline-block"}K=document.createElement("span");
1640
+ K.Aa=E;K.innerHTML=g.ib[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("+B+"middle"+(E==g.selectedTab?"-sel":"")+"."+G+")";K.style.backgroundRepeat="repeat-x";Q=1;if(A.leftMargin)Q=A.leftMargin;N.style.marginLeft=Q+"px";N.style.paddingTop="2px";K.style.padding="2px 0.5em";X.style.paddingTop="2px";if(E!=
1641
+ g.selectedTab)K.style.cursor="pointer";else{if(A.separated!=true){N.style.backgroundColor=g.Fc;X.style.backgroundColor=g.Fc;K.style.backgroundColor=g.Fc;if((this.ic=="Glass"||this.ic=="Delicate"||this.ic=="Classic")&&E==g.selectedTab){N.style.backgroundSize="cover";X.style.backgroundSize="cover";N.style.backgroundColor="";X.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=
1642
1642
  "3px 0.5em";K.style.borderTop="1px solid "+F;K.style.borderLeft="1px solid "+F;K.style.borderRight="1px solid "+F;if(E!=g.selectedTab){K.style.borderBottom="1px solid "+F;K.style.backgroundColor=A.defaultTabColor?A.defaultTabColor:"#B7C8F6";if(P=="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=
1643
- g.$y;K.onmouseout=g.Zy;K.ondblclick=g.wu;K.onclick=g.Yy;g.A.appendChild(R);A.leftWidth!=null&&R.appendChild(M);R.appendChild(K);A.rightWidth!=null&&R.appendChild(W)}g.b.appendChild(C);g.b.appendChild(g.A);t=p=null;if(g.A.scrollWidth-g.A.offsetWidth>0){g.jr(g.A);if(this.bm&&this.sk){if(g.A.childNodes!=null&&g.selectedTab>=0&&g.selectedTab<g.A.childNodes.length){R=g.A.childNodes[g.selectedTab];g.Bd=Math.round(R.offsetLeft-g.A.offsetWidth/2+R.offsetWidth/2)}this.sk=false}g.mk()}var Q=Eb();Q&&g.Qr();
1643
+ g.$y;K.onmouseout=g.Zy;K.ondblclick=g.wu;K.onclick=g.Yy;g.A.appendChild(L);A.leftWidth!=null&&L.appendChild(N);L.appendChild(K);A.rightWidth!=null&&L.appendChild(X)}g.b.appendChild(C);g.b.appendChild(g.A);t=p=null;if(g.A.scrollWidth-g.A.offsetWidth>0){g.jr(g.A);if(this.bm&&this.sk){if(g.A.childNodes!=null&&g.selectedTab>=0&&g.selectedTab<g.A.childNodes.length){L=g.A.childNodes[g.selectedTab];g.Ad=Math.round(L.offsetLeft-g.A.offsetWidth/2+L.offsetWidth/2)}this.sk=false}g.mk()}var T=Eb();T&&g.Qr();
1644
1644
  D("div");D("input");D("select");D("textarea");D("button");D("img")};this.Qr=function(){var D=designUtils.Un("plus","Add New Tab",g.b),E=designUtils.Un("minus","Remove Tab",g.b);D.style.right="2px";E.style.right="16px";E.style.top=D.style.top="2px";D.onclick=g.Av;E.onclick=g.fy};this.xp=function(D){var E=g.b;if(E.disabled!=true)if(P=="dspf"&&g.dm==true){E.S=D;if(E.G=="true"||E.G=="send data")pui.G=E.G;if(g.Lp)pui.tb=g.Lp;if(pui.cc()==false){E.S=null;g.selectedTab=g.bn}}else{g.Tc();if(P=="dspf"&&g.bm==
1645
1645
  true)E.S=D}};this.$y=function(D){D=ub(D);if(D.Aa==null&&D.parentNode.Aa!=null)D=D.parentNode;if(D.Aa!=g.selectedTab){if(A.useImages&&A.hiImages){D.style.backgroundImage="url("+B+"middle-hi."+G+")";D.previousSibling.style.backgroundImage="url("+B+"left-hi."+G+")";D.nextSibling.style.backgroundImage="url("+B+"right-hi."+G+")"}if(A.hiColor!=null)D.style.color=A.hiColor;if(A.hiUnderline==true)D.style.textDecoration="underline"}};this.Zy=function(D){D=ub(D);if(D.Aa==null&&D.parentNode.Aa!=null)D=D.parentNode;
1646
- if(D.Aa!=g.selectedTab){if(A.useImages&&A.hiImages){D.style.backgroundImage="url("+B+"middle."+G+")";D.previousSibling.style.backgroundImage="url("+B+"left."+G+")";D.nextSibling.style.backgroundImage="url("+B+"right."+G+")"}if(A.hiColor!=null)D.style.color="";if(A.hiUnderline==true)D.style.textDecoration=""}};this.Yy=function(D){D=D.target;g.Bd=D.parentNode.parentNode.scrollLeft;if(D.Aa==null&&D.parentNode.Aa!=null)D=D.parentNode;D=D.Aa;if(g.b.ontabclick!=null)if(g.b.ontabclick(D)==false)return;if(g.b.vu!=
1647
- null){var E=g.b.vu.split(",");if(E.length-1>=D){E=E[D];E=Lb(E);if(E!=""){Vb(E);return}}}g.bn=g.selectedTab;E=false;if(g.selectedTab!=D)E=true;if(E)g.selectedTab=D;if(Eb()){var C=Ib.designer.selection;C.Sd.length>1&&C.clear()}E&&g.xp(D)};this.wu=function(D){if(Eb()){var E=D.target;if(E.Aa==null&&E.parentNode.Aa!=null)E=E.parentNode;var C=E.parentNode.parentNode.parentNode,K=Ib.designer.ph(C);if(!pui.p(K.properties["tab names"])&&!pui.Kb(K.properties["tab names"])){K.designer.Cf.op=function(R){var N=
1648
- E.Aa,M=K.properties["tab names"];if(M==""||M==null)M=g.uc;M=pui.ha(M);M[N]=R;M=M.join(",");R=Dc()["tab names"];K.designer.ca.add(K,R.name);Pc(R,K.properties,K.dom,M,true,K,null);K.pb["tab names"]=true;K.hd=true;K.designer.jd[K.designer.Na.ub]=true;K.designer.ob.Kh("tab names");E=C=K=K.designer.Cf.op=null};K.designer.Cf.show(K,E,"tab")}}};this.Av=function(){var D=Ib.designer.ph(g.b),E=D.properties["tab names"];if(!pui.Kb(E)){if(pui.p(E)){var C=E.designValue;if(C==null||C=="")C=g.uc;C=pui.ha(C);C.push("Tab "+
1649
- (C.length+1));E.designValue=C.join(",")}else{if(E==""||E==null)E=g.uc;E=pui.ha(E);E.push("New Tab");E=E.join(",")}C=!pui.p(E)&&!pui.Kb(E)?pui.ha(E):pui.ha(E.designValue);g.selectedTab=C.length-1;if(g.A)g.Bd=g.A.scrollWidth;C=Dc()["tab names"];D.designer.ca.start("Add New Tab");D.designer.ca.add(D,C.name);Pc(C,D.properties,D.dom,E,true,D,null);D.pb["tab names"]=true;D.hd=true;D.designer.jd[D.designer.Na.ub]=true;D.designer.selection.clear();D.designer.selection.add(D);D.designer.ob.refresh()}};this.fy=
1646
+ if(D.Aa!=g.selectedTab){if(A.useImages&&A.hiImages){D.style.backgroundImage="url("+B+"middle."+G+")";D.previousSibling.style.backgroundImage="url("+B+"left."+G+")";D.nextSibling.style.backgroundImage="url("+B+"right."+G+")"}if(A.hiColor!=null)D.style.color="";if(A.hiUnderline==true)D.style.textDecoration=""}};this.Yy=function(D){D=D.target;g.Ad=D.parentNode.parentNode.scrollLeft;if(D.Aa==null&&D.parentNode.Aa!=null)D=D.parentNode;D=D.Aa;if(g.b.ontabclick!=null)if(g.b.ontabclick(D)==false)return;if(g.b.vu!=
1647
+ null){var E=g.b.vu.split(",");if(E.length-1>=D){E=E[D];E=Lb(E);if(E!=""){Vb(E);return}}}g.bn=g.selectedTab;E=false;if(g.selectedTab!=D)E=true;if(E)g.selectedTab=D;if(Eb()){var C=Ib.designer.selection;C.Sd.length>1&&C.clear()}E&&g.xp(D)};this.wu=function(D){if(Eb()){var E=D.target;if(E.Aa==null&&E.parentNode.Aa!=null)E=E.parentNode;var C=E.parentNode.parentNode.parentNode,K=Ib.designer.ph(C);if(!pui.p(K.properties["tab names"])&&!pui.Kb(K.properties["tab names"])){K.designer.Cf.op=function(L){var Q=
1648
+ E.Aa,N=K.properties["tab names"];if(N==""||N==null)N=g.uc;N=pui.ha(N);N[Q]=L;N=N.join(",");L=Dc()["tab names"];K.designer.ca.add(K,L.name);Pc(L,K.properties,K.dom,N,true,K,null);K.pb["tab names"]=true;K.hd=true;K.designer.jd[K.designer.Na.ub]=true;K.designer.ob.Kh("tab names");E=C=K=K.designer.Cf.op=null};K.designer.Cf.show(K,E,"tab")}}};this.Av=function(){var D=Ib.designer.ph(g.b),E=D.properties["tab names"];if(!pui.Kb(E)){if(pui.p(E)){var C=E.designValue;if(C==null||C=="")C=g.uc;C=pui.ha(C);C.push("Tab "+
1649
+ (C.length+1));E.designValue=C.join(",")}else{if(E==""||E==null)E=g.uc;E=pui.ha(E);E.push("New Tab");E=E.join(",")}C=!pui.p(E)&&!pui.Kb(E)?pui.ha(E):pui.ha(E.designValue);g.selectedTab=C.length-1;if(g.A)g.Ad=g.A.scrollWidth;C=Dc()["tab names"];D.designer.ca.start("Add New Tab");D.designer.ca.add(D,C.name);Pc(C,D.properties,D.dom,E,true,D,null);D.pb["tab names"]=true;D.hd=true;D.designer.jd[D.designer.Na.ub]=true;D.designer.selection.clear();D.designer.selection.add(D);D.designer.ob.refresh()}};this.fy=
1650
1650
  function(){var D=Ib.designer.ph(g.b),E=D.properties["tab names"],C;if(!pui.Kb(E)){if(pui.p(E)){var K=E.designValue;if(K==null||K=="")K=g.uc;E.designValue=K;C=pui.ha(K)}else{if(E==""||E==null)E=g.uc;C=pui.ha(E)}if(C.length>1)if(g.fi(C.length-1,D)){D.designer.selection.clear();D.designer.selection.add(D);D.designer.ob.refresh();g.selectedTab=C.length-1;g.Tc();pui.alert(g.Qg)}else{C.pop();K=g.selectedTab;if(g.selectedTab>C.length-1)g.selectedTab=C.length-1;if(pui.p(E)||pui.Kb(E))E.designValue=C.join(",");
1651
1651
  else E=C.join(",");C=Dc()["tab names"];D.designer.ca.start("Remove Tab");D.designer.ca.add(D,C.name);Pc(C,D.properties,D.dom,E,true,D,null);D.pb["tab names"]=true;D.hd=true;D.designer.jd[D.designer.Na.ub]=true;D.designer.ob.Kh("tab names");if(D.dom.Ja!=null&&D.dom.Ja==g)g.selectedTab=K}}};this.fi=function(D,E){for(var C=0;C<E.designer.items.length;C++){var K=E.designer.items[C].dom;if(K.Wa!=null&&K.eb!=null&&K.Wa==g.b.id)if(K.eb==D)return true}return false};this.jr=function(){p=g.gi("left");t=g.gi("right");
1652
- if(Eb())t.style.right="35px";p.onmousedown=c;p.ontouchstart=c;p.onmouseup=f;p.ontouchend=f;p.onmouseout=p.onmouseup;p.Ex=p.onmouseup;t.onmousedown=e;t.ontouchstart=e;t.onmouseup=h;t.ontouchend=h;t.onmouseout=t.onmouseup;t.Ex=t.onmouseup;g.b.appendChild(p);g.b.appendChild(t)};this.mk=function(){var D=g.A.scrollWidth-g.A.offsetWidth;if(D-g.Bd<=3)g.Bd=D;else if(g.Bd<=3)g.Bd=0;g.A.scrollLeft=g.Bd;p.style.display=g.A.scrollLeft>0?"inline-block":"";t.style.display=g.A.scrollLeft<D?"inline-block":""};this.gi=
1653
- function(D){var E=document.createElement("span");if(D)E.className="pui-tscrbtn "+D;var C="-sel.";if(pui["tabpanel scroll unsel style"]==true)C=".";if(A.leftWidth!=null){var K=document.createElement("span");K.className="edge";K.style.backgroundImage="url("+B+"left"+C+G+")";K.style.height=A.height+2+"px";K.style.width=A.leftWidth+"px"}if(A.rightWidth!=null){var R=document.createElement("span");R.className="edge";R.style.backgroundImage="url("+B+"right"+C+G+")";R.style.height=A.height+2+"px";R.style.width=
1654
- A.rightWidth+"px"}D=document.createElement("span");D.className="mid";D.style.height=A.height+"px";if(A.useImages){D.style.backgroundImage="url("+B+"middle"+C+G+")";D.style.backgroundRepeat="repeat-x";C=1;if(A.leftMargin)C=A.leftMargin;K.style.marginLeft=C+"px";D.style.padding=A.height-17+"px 0.5em 0px";if(A.separated!=true){K.style.backgroundColor=g.Fc;R.style.backgroundColor=g.Fc;D.style.backgroundColor=g.Fc;if(this.ic=="Glass"||this.ic=="Delicate"||this.ic=="Classic"){K.style.backgroundSize="cover";
1655
- R.style.backgroundSize="cover";K.style.backgroundColor="";R.style.backgroundColor="";K.style.height=A.height+"px";R.style.height=A.height+"px"}}if(A.selColor!=null)D.style.color=A.selColor;if(A.selBold==true)D.style.fontWeight="bold"}else{D.style.marginLeft="3px";D.style.padding="3px 0.5em";D.style.borderTop="1px solid "+F;D.style.borderLeft="1px solid "+F;D.style.borderRight="1px solid "+F;D.style.borderBottom="1px solid "+g.Fc;D.style.backgroundColor=pui["tabpanel scroll unsel style"]!=true?g.Fc:
1656
- A.defaultTabColor?A.defaultTabColor:"#B7C8F6"}A.leftWidth!=null&&E.appendChild(K);E.appendChild(D);A.rightWidth!=null&&E.appendChild(R);return E}}we.prototype=Object.create(pui.zd.prototype);
1652
+ if(Eb())t.style.right="35px";p.onmousedown=c;p.ontouchstart=c;p.onmouseup=f;p.ontouchend=f;p.onmouseout=p.onmouseup;p.Ex=p.onmouseup;t.onmousedown=e;t.ontouchstart=e;t.onmouseup=h;t.ontouchend=h;t.onmouseout=t.onmouseup;t.Ex=t.onmouseup;g.b.appendChild(p);g.b.appendChild(t)};this.mk=function(){var D=g.A.scrollWidth-g.A.offsetWidth;if(D-g.Ad<=3)g.Ad=D;else if(g.Ad<=3)g.Ad=0;g.A.scrollLeft=g.Ad;p.style.display=g.A.scrollLeft>0?"inline-block":"";t.style.display=g.A.scrollLeft<D?"inline-block":""};this.gi=
1653
+ function(D){var E=document.createElement("span");if(D)E.className="pui-tscrbtn "+D;var C="-sel.";if(pui["tabpanel scroll unsel style"]==true)C=".";if(A.leftWidth!=null){var K=document.createElement("span");K.className="edge";K.style.backgroundImage="url("+B+"left"+C+G+")";K.style.height=A.height+2+"px";K.style.width=A.leftWidth+"px"}if(A.rightWidth!=null){var L=document.createElement("span");L.className="edge";L.style.backgroundImage="url("+B+"right"+C+G+")";L.style.height=A.height+2+"px";L.style.width=
1654
+ A.rightWidth+"px"}D=document.createElement("span");D.className="mid";D.style.height=A.height+"px";if(A.useImages){D.style.backgroundImage="url("+B+"middle"+C+G+")";D.style.backgroundRepeat="repeat-x";C=1;if(A.leftMargin)C=A.leftMargin;K.style.marginLeft=C+"px";D.style.padding=A.height-17+"px 0.5em 0px";if(A.separated!=true){K.style.backgroundColor=g.Fc;L.style.backgroundColor=g.Fc;D.style.backgroundColor=g.Fc;if(this.ic=="Glass"||this.ic=="Delicate"||this.ic=="Classic"){K.style.backgroundSize="cover";
1655
+ L.style.backgroundSize="cover";K.style.backgroundColor="";L.style.backgroundColor="";K.style.height=A.height+"px";L.style.height=A.height+"px"}}if(A.selColor!=null)D.style.color=A.selColor;if(A.selBold==true)D.style.fontWeight="bold"}else{D.style.marginLeft="3px";D.style.padding="3px 0.5em";D.style.borderTop="1px solid "+F;D.style.borderLeft="1px solid "+F;D.style.borderRight="1px solid "+F;D.style.borderBottom="1px solid "+g.Fc;D.style.backgroundColor=pui["tabpanel scroll unsel style"]!=true?g.Fc:
1656
+ A.defaultTabColor?A.defaultTabColor:"#B7C8F6"}A.leftWidth!=null&&E.appendChild(K);E.appendChild(D);A.rightWidth!=null&&E.appendChild(L);return E}}we.prototype=Object.create(pui.yd.prototype);
1657
1657
  pui.widgets.add({name:"tab panel",lg: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.z()};b.dom.tabPanel=new we;var a=b.evalProperty("tab names");b.dom.tabPanel.ib=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.ic=b.properties["tab panel style"];
1658
1658
  if(b.design&&pui.p(b.dom.tabPanel.ic))b.dom.tabPanel.ic="Simple";if(b.properties["background color"]==null||b.properties["background color"]=="")b.dom.tabPanel.eu();if(P=="genie"||b.design)b.dom.tabPanel.z();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.Js.bind(a);b.dom.showTab=a.ou.bind(a)}},"tab names":function(b){if(b.dom.tabPanel!=null){var a=b.value;b.dom.tabPanel.ib=a!=null&&a!=""?pui.ha(a):["Tab 1",
1659
1659
  "Tab 2","Tab 3"];if(P=="genie"||b.design)b.dom.tabPanel.z()}},"tab keys":function(b){b.dom.vu=b.value},"tab panel style":function(b){b.dom.tabPanel.ic=b.value;if(b.properties["background color"]==null||b.properties["background color"]=="")b.dom.tabPanel.eu();if(P=="genie"||b.design)b.dom.tabPanel.z();pui.widgets.Qx(b.value)},width:function(b){b.design&&pui.vh(b.value)&&b.dom.tabPanel.z()},height:function(b){b.design&&pui.vh(b.value)&&b.dom.tabPanel.z()},"response AID":function(b){if(b.dom.tabPanel)b.dom.tabPanel.Lp=
1660
- b.value}}});pui.RA=function(b){function a(N){if(g.qd[N].B.DBCSDataType&&g.qd[N].B.DBCSDataType=="G")return p[N].length;return qd(p[N])}function c(){if(t>=l.length-1)return false;t++;p.push("");return true}function e(N){if(N>=48&&N<=90)return true;if(N>=96&&N<=111)return true;if(N>=186&&N<=192)return true;if(N>=219&&N<=222)return true;if(N==32)return true;return false}function f(N,M,W){if(N.setSelectionRange){N.focus();N.setSelectionRange(M,W)}else if(N.createTextRange){N=N.createTextRange();N.collapse(true);
1661
- N.moveEnd("character",W);N.moveStart("character",M);N.select()}}function h(){var N,M;M=[];for(var W=0,Q=0;Q<r;Q++){var ha=n.charAt(Q);if(ha=="\n"||ha==" "){W<Q&&M.push(n.substring(W,Q));W=Q+1;M.push(ha)}else Q==r-1&&W<r&&M.push(n.substring(W))}if(B!="paste")for(Q=0;Q<M.length;Q++){W=l[0];W-=F;F=0;if(M.length>Q+2)if(M[Q].length>=W&&M[Q+1]==="\n"&&M[Q+2]!==" "&&M[Q+2]!=="\n"){M[Q]+=M[Q+2];M.splice(Q+1,2);Q--}}M=M;Q=0;W=false;ha=true;for(var Y=B=="paste";M.length>0;)if(M[0]=="\n"){if(!W){if(!c())break;
1662
- ha=true}W=false;Q<s&&s--;M.shift()}else if(M[0]==" "){var X=a(t)<l[t];if(!X){if(!c())break;if(!G&&!Y)W=true;ha=true}if((X||!Y)&&M[1]!=="\n"){p[t]+=" ";ha=false}else X&&M[1]=="\n"&&c();Q++;M.shift()}else{N=a(t);if(!Y&&N+M[0].length==l[t]&&M.length>=3&&M[1]=="\n"&&M[2]!=" "){if(!c())break;ha=W=true;X=M.shift();M.splice(1,0,X," ");Q<s&&!G&&s++}else if(!Y&&N+M[0].length==l[t]-1&&M.length>=3&&M[1]=="\n"&&M[2]!=" "&&(!G||Q>=s))M.splice(1,0," ");else if(N+M[0].length<=l[t]){if(M[1]=="\n"&&!G){W=false;ha=
1663
- true}else{p[t]+=M[0];ha=false}Q+=M[0].length;M.shift()}else if(ha){X=M.shift();for(var y=0;y<X.length;){N=a(t);N=l[t]-N;p[t]+=X.substr(y,N);y+=N;if(y>=X.length)break;else if(!c()){M=[];break}ha=true}Y||(W=true);K=true}else{if(!c()){if(Y){N=l[t]-N;p[t]+=M[0].substr(0,N)}break}G||(W=true);if(G&&g.qd!=null)W=true;if(M.length>=3&&M[1]=="\n"){M[2]!=" "&&M.splice(1,0," ");W=true}ha=true}}if(B=="paste")s=w}var g=ub(b);if(g.Yi!=null){for(var l=[],o=0;o<g.Yi.length;o++){l[o]=parseInt(g.Yi[o],10);if(isNaN(l[o]))l[o]=
1664
- 0}var n=g.value,r=n.length,p=[];p.push("");var t=0,s=function(N){if(typeof N.selectionStart=="number")return N.selectionStart;else if(document.selection){var M=document.selection.createRange().duplicate();if(M.parentElement()==N){var W=document.body.createTextRange();W.moveToElementText(N);W.setEndPoint("EndToStart",M);var Q=document.body.createTextRange();Q.moveToElementText(N);Q.setEndPoint("StartToEnd",M);var ha=N=false,Y=false,X,y,ea,aa,na,ma;X=y=W.text;ea=aa=M.text;na=ma=Q.text;do{if(!N)if(W.compareEndPoints("StartToEnd",
1665
- W)==0)N=true;else{W.moveEnd("character",-1);if(W.text==X)y+="\r\n";else N=true}if(!ha)if(M.compareEndPoints("StartToEnd",M)==0)ha=true;else{M.moveEnd("character",-1);if(M.text==ea)aa+="\r\n";else ha=true}if(!Y)if(Q.compareEndPoints("StartToEnd",Q)==0)Y=true;else{Q.moveEnd("character",-1);if(Q.text==na)ma+="\r\n";else Y=true}}while(!N||!ha||!Y);return y.length}}}(g),w=s;if(!b)b=window.event;var A=b.which;if(!A)A=b.keyCode;var B=b.type;if(B=="keydown"&&A==17)g.Pr=true;if(B=="keyup")g.Pr=false;if(B==
1666
- "paste"){b.preventDefault();b.stopPropagation();o=(b.clipboardData||window.clipboardData).getData("text");if(o==null||o.length==0)return false;o=o.replace(/\r/g,"");o=o.replace(/\t/g," ");if(o.length==0)return;n=n.substr(0,g.selectionStart)+o+n.substr(g.selectionEnd);r=n.length;h()}if(!(A==8&&B=="keyup")){var G=A==8,F=0;if(A==8&&B=="keydown"&&s>0){if(pui.is_ie&&n.length<s)s=n.length;if(n.substr(s-1,1)=="\n"){n=n.substr(0,s-1)+n.substr(s);s-=1}if(n.substr(s-1,1)=="\r"){n=n.substr(0,s-1)+n.substr(s);
1667
- s-=1}n=n.substr(0,s-1)+n.substr(s);if(s<=l[0])F=1;s-=1;b.preventDefault&&b.preventDefault();b.stopPropagation&&b.stopPropagation();b.cancelBubble=true;b.returnValue=false;w=s}else if(A==46&&B=="keydown"){g.Yr=true;if(s<=l[0])g.cs=true}else if(A==46&&B=="keyup"){delete g.Yr;delete g.cs}else if(B=="input"){G=g.Yr===true;F=g.cs===true?1:0}if(A==13&&B=="keydown"){var D=0;for(o=0;o<r;o++){var E=n.charAt(o);E=="\n"&&D++}if(D+1>=l.length){b.preventDefault&&b.preventDefault();b.returnValue=false}else{b.stopPropagation&&
1668
- b.stopPropagation();b.cancelBubble=true}}var C,K=false;if(g.qd!=null&&g.qd[0]!=null&&g.qd[0].B!=null&&g.qd[0].B.wrapped!==true&&(B=="input"||B=="keydown"&&A==8)){h();for(o=E=0;o<p.length;o++){if(s>=E&&s<E+p[o].length){C=o;break}E+=p[o].length}if(s==E)C=p.length-1}else if(B!="paste"){D=false;for(o=0;o<r;o++){E=n.charAt(o);if(E=="\n"||E=="\r"){if(o<w)s-=1;if(E=="\n"){if(!D&&!c())break;D=false}}else{if(a(t)>=l[t]){if(!c())break;D=true}p[t]+=E}if(w==o)C=t}}if(w==r)C=t;E="";for(o=0;o<=t;o++){E+=p[o];if(o!=
1669
- t){E+="\n";if(E.length-1<s&&B!="paste"&&!K)s+=1}}D=g.value.replace(/\r/g,"");if(B=="keydown"&&!g.Pr&&g.selectionStart===g.selectionEnd&&e(A))if(p.length>=l.length&&C!=null){var R=true;for(o=C;o<l.length;o++)if(p[o].length<l[o]){R=false;break}if(R){b.preventDefault&&b.preventDefault();b.stopPropagation&&b.stopPropagation();b.cancelBubble=true;b.returnValue=false;return}}if(E!=D&&g.qd[0]!=null){if(B=="paste"){g.value=E;f(g,s,s)}if(A==8){g.value=E;f(g,w,w)}}if(E!=D&&!g.qd){g.value=E;f(g,s,s)}}}};
1670
- pui.widgets.add({name:"text area",tag:"textarea",propertySetters:{"field type":function(b){b.dom.value=b.evalProperty("value");if(b.za.maxLength&&b.dom.maxLength!=b.za.maxLength)b.dom.maxLength=b.za.maxLength;if(b.za.tt)b.dom.tt=b.za.tt;if(b.za.qd)b.dom.qd=b.za.qd;if(b.za.Yi)b.dom.Yi=b.za.Yi;P=="dspf"&&!b.design&&T(b.dom,"keydown",function(a){a=a||window.event;if(a.keyCode==13)a.cancelBubble=true});if(b.design)b.dom.aq=false;if(P=="dspf"&&!Eb())T(b.dom,"click",function(a){if(pui["highlight on focus"]){a.target.focus();
1671
- a.target.select()}});else if(typeof pui["allow spellcheck"]=="boolean")b.dom.aq=pui["allow spellcheck"]},value:function(b){b.dom.value=b.value}},qc:function(b){b.propertyName=="field type"&&b.za&&b.za.l!=null&&b.dom&&b.dom.l==null&&pui.sg(b.dom);b.dom&&b.dom.l!=null&&pui.ip(b)}});pui.widgets.add({name:"textbox",tag:"input",newId:"TextBox",defaults:{"css class":"input"},wt:true,Ls:"pui-prompt",propertySetters:{"field type":function(b){b.dom.value=b.evalProperty("value");if(!b.design){pd(b.properties,b.originalValue,b.dom);if(pui.pa&&!pui.zf&&b.dom.id.indexOf(".")==-1){T(b.dom,"focus",function(){Bb("ipadKeyboard").style.display=""});T(b.dom,"blur",function(){Bb("ipadKeyboard").style.display="none"})}if(typeof pui["allow spellcheck"]=="boolean")b.dom.aq=pui["allow spellcheck"];
1672
- b.dom.calimg&&pui.Dp(b.dom);if(b.dom.getAttribute("autocomplete")==null&&(P!="genie"||!pui.F.config.$g)){b.dom.setAttribute("autocomplete","off");P=="dspf"&&b.dom.setAttribute("name",pui.Rd())}}var a=b.evalProperty("prompt icon");if(b.design){b.dom.readOnly=true;b.dom.aq=false;var c=b.e;c.Ml=null;if(a)c.Ml=a;b.dom.sizeMe=function(){c.mh();c.Eg()}}else b.dom.sizeMe=function(){pui.hp(b.dom)};b.dom.ge=true;a&&!b.design&&pui.Cv(b);P=="dspf"&&!Eb()&&T(b.dom,"click",function(e){if(pui["highlight on focus"]){e.target.focus();
1673
- e.target.select()}})},value:function(b){if(b.dom.xr)b.dom.xr=false;else b.dom.value=b.value},"input type":function(b){if(!b.design)try{b.dom.setAttribute("type",b.value)}catch(a){}},"browser auto complete":function(b){if(!b.design){b.dom.setAttribute("autocomplete",b.value);if(P=="dspf")b.value=="off"?b.dom.setAttribute("name",pui.Rd()):b.dom.removeAttribute("name")}},"choices url":function(b){!b.design&&b.dom&&b.dom.lc&&typeof b.dom.lc.Gu==="function"&&b.dom.lc.Gu(b.value)},"prompt icon":function(b){var a=
1660
+ b.value}}});pui.RA=function(b){function a(L){if(g.Rd[L].B.DBCSDataType&&g.Rd[L].B.DBCSDataType=="G")return p[L].length;return qd(p[L])}function c(){if(t>=l.length-1)return false;t++;p.push("");return true}function e(L){if(L>=48&&L<=90)return true;if(L>=96&&L<=111)return true;if(L>=186&&L<=192)return true;if(L>=219&&L<=222)return true;if(L==32)return true;return false}function f(L,Q,N){if(L.setSelectionRange){L.focus();L.setSelectionRange(Q,N)}else if(L.createTextRange){L=L.createTextRange();L.collapse(true);
1661
+ L.moveEnd("character",N);L.moveStart("character",Q);L.select()}}function h(){for(var L=[],Q=0,N=0;N<r;N++){var X=n.charAt(N);if(X=="\n"||X==" "){if(Q<N)L.push(n.substring(Q,N));else X=="\n"&&L.push("");Q=N+1;L.push(X)}else N==r-1&&Q<r&&L.push(n.substring(Q))}if(B!="paste")for(N=0;N<L.length;N++){Q=l[0];F=0;if(L.length>N+2)if(L[N].length>=Q&&L[N+1]==="\n"&&L[N+2]!==" "&&L[N+2]!=="\n"){L[N]+=L[N+2];L.splice(N+1,2);N--}}N=0;Q=false;for(X=B=="paste";L.length>0;)if(L[0]=="\n"){if(!Q)if(!c())break;Q=false;
1662
+ L.shift();N<s&&s--}else if(L[0]==" "){var T=a(t)<l[t];if(!T){if(!c())break;if(!G&&!X)Q=true}if((T||!X)&&L[1]!=="\n")p[t]+=" ";else T&&L[1]=="\n"&&c();N++;L.shift()}else{T=a(t);var ia=L[0].length,ca=l[t];if(T+ia<=ca){p[t]+=L[0];N+=ia;L.shift()}else if(G&&T+ia<=ca){p[t]+=L[0];N+=ia;L.shift()}else if(ia<=ca){if(!c())break;p[t]+=L[0];N+=ia;L.shift()}else{T=ca-T;p[t]+=L[0].substr(0,T);L[0]=L[0].substr(T);N+=T}}if(B=="paste")s=w}var g=ub(b);if(g.Yi!=null){for(var l=[],o=0;o<g.Yi.length;o++){l[o]=parseInt(g.Yi[o],
1663
+ 10);if(isNaN(l[o]))l[o]=0}var n=g.value,r=n.length,p=[];p.push("");var t=0,s=function(L){if(typeof L.selectionStart=="number")return L.selectionStart;else if(document.selection){var Q=document.selection.createRange().duplicate();if(Q.parentElement()==L){var N=document.body.createTextRange();N.moveToElementText(L);N.setEndPoint("EndToStart",Q);var X=document.body.createTextRange();X.moveToElementText(L);X.setEndPoint("StartToEnd",Q);var T=L=false,ia=false,ca,W,y,ea,Z,na;ca=W=N.text;y=ea=Q.text;Z=na=
1664
+ X.text;do{if(!L)if(N.compareEndPoints("StartToEnd",N)==0)L=true;else{N.moveEnd("character",-1);if(N.text==ca)W+="\r\n";else L=true}if(!T)if(Q.compareEndPoints("StartToEnd",Q)==0)T=true;else{Q.moveEnd("character",-1);if(Q.text==y)ea+="\r\n";else T=true}if(!ia)if(X.compareEndPoints("StartToEnd",X)==0)ia=true;else{X.moveEnd("character",-1);if(X.text==Z)na+="\r\n";else ia=true}}while(!L||!T||!ia);return W.length}}}(g),w=s;if(!b)b=window.event;var A=b.which;if(!A)A=b.keyCode;var B=b.type;if(B=="keydown"&&
1665
+ A==17)g.Pr=true;if(B=="keyup")g.Pr=false;if(B=="paste"){b.preventDefault();b.stopPropagation();o=(b.clipboardData||window.clipboardData).getData("text");if(o==null||o.length==0)return false;o=o.replace(/\r/g,"");o=o.replace(/\t/g," ");if(o.length==0)return;n=n.substr(0,g.selectionStart)+o+n.substr(g.selectionEnd);r=n.length;h()}if(!(A==8&&B=="keyup")){var G=A==8,F=0;if(A==8&&B=="keydown"&&s>0){if(pui.is_ie&&n.length<s)s=n.length;if(n.substr(s-1,1)=="\n")n=n.substr(0,s-1)+n.substr(s);if(n.substr(s-
1666
+ 1,1)=="\r")n=n.substr(0,s-1)+n.substr(s);n=n.substr(0,s-1)+n.substr(s);s-=1;b.preventDefault&&b.preventDefault();b.stopPropagation&&b.stopPropagation();b.cancelBubble=true;b.returnValue=false;w=s}else if(A==46&&B=="keydown"){g.Yr=true;if(s<=l[0])g.cs=true}else if(A==46&&B=="keyup"){delete g.Yr;delete g.cs}else if(B=="input"){G=g.Yr===true;F=g.cs===true?1:0}if(A==13&&B=="keydown"){var D=0;for(o=0;o<r;o++){var E=n.charAt(o);E=="\n"&&D++}if(D+1>=l.length){b.preventDefault&&b.preventDefault();b.returnValue=
1667
+ false}else{b.stopPropagation&&b.stopPropagation();b.cancelBubble=true}}var C;if(g.Rd!=null&&g.Rd[0]!=null&&g.Rd[0].B!=null&&g.Rd[0].B.wrapped!==true&&(B=="input"||B=="keydown"&&A==8)){h();for(o=E=0;o<p.length;o++){if(s>=E&&s<E+p[o].length){C=o;break}E+=p[o].length}if(s==E)C=p.length-1}else if(B!="paste"){D=false;for(o=0;o<r;o++){E=n.charAt(o);if(E=="\n"||E=="\r"){if(o<w)s-=1;if(E=="\n"){if(!D&&(!G||a(t)>0)&&!c())break;D=false}}else{if(a(t)>=l[t]){if(!c())break;D=true}p[t]+=E}if(w==o)C=t}}if(w==r)C=
1668
+ t;E="";for(o=0;o<p.length;o++){E+=p[o];if(o!=t&&p[o+1]!==undefined){E+="\n";if(E.length-1<s&&B!="paste"&&1)s+=1}}D=g.value.replace(/\r/g,"");if(B=="keydown"&&!g.Pr&&g.selectionStart===g.selectionEnd&&e(A))if(p.length>=l.length&&C!=null){var K=true;for(o=C;o<l.length;o++)if(p[o].length<l[o]){K=false;break}if(K){b.preventDefault&&b.preventDefault();b.stopPropagation&&b.stopPropagation();b.cancelBubble=true;b.returnValue=false;return}}if(E!=D&&g.Rd[0]!=null){if(B=="paste"){g.value=E;f(g,s,s)}if(A==8){g.value=
1669
+ E;f(g,s,s)}}if(E!=D&&!g.Rd){g.value=E;f(g,s,s)}}}};
1670
+ pui.widgets.add({name:"text area",tag:"textarea",propertySetters:{"field type":function(b){b.dom.value=b.evalProperty("value");if(b.za.maxLength&&b.dom.maxLength!=b.za.maxLength)b.dom.maxLength=b.za.maxLength;if(b.za.tt)b.dom.tt=b.za.tt;if(b.za.Rd)b.dom.Rd=b.za.Rd;if(b.za.Yi)b.dom.Yi=b.za.Yi;P=="dspf"&&!b.design&&S(b.dom,"keydown",function(a){a=a||window.event;if(a.keyCode==13)a.cancelBubble=true});if(b.design)b.dom.aq=false;if(P=="dspf"&&!Eb())S(b.dom,"click",function(a){if(pui["highlight on focus"]){a.target.focus();
1671
+ a.target.select()}});else if(typeof pui["allow spellcheck"]=="boolean")b.dom.aq=pui["allow spellcheck"]},value:function(b){b.dom.value=b.value}},qc:function(b){b.propertyName=="field type"&&b.za&&b.za.l!=null&&b.dom&&b.dom.l==null&&pui.sg(b.dom);b.dom&&b.dom.l!=null&&pui.ip(b)}});pui.widgets.add({name:"textbox",tag:"input",newId:"TextBox",defaults:{"css class":"input"},wt:true,Ls:"pui-prompt",propertySetters:{"field type":function(b){b.dom.value=b.evalProperty("value");if(!b.design){pd(b.properties,b.originalValue,b.dom);if(pui.pa&&!pui.zf&&b.dom.id.indexOf(".")==-1){S(b.dom,"focus",function(){Bb("ipadKeyboard").style.display=""});S(b.dom,"blur",function(){Bb("ipadKeyboard").style.display="none"})}if(typeof pui["allow spellcheck"]=="boolean")b.dom.aq=pui["allow spellcheck"];
1672
+ b.dom.calimg&&pui.Dp(b.dom);if(b.dom.getAttribute("autocomplete")==null&&(P!="genie"||!pui.F.config.$g)){b.dom.setAttribute("autocomplete","off");P=="dspf"&&b.dom.setAttribute("name",pui.Qd())}}var a=b.evalProperty("prompt icon");if(b.design){b.dom.readOnly=true;b.dom.aq=false;var c=b.e;c.Ml=null;if(a)c.Ml=a;b.dom.sizeMe=function(){c.mh();c.Eg()}}else b.dom.sizeMe=function(){pui.hp(b.dom)};b.dom.ge=true;a&&!b.design&&pui.Cv(b);P=="dspf"&&!Eb()&&S(b.dom,"click",function(e){if(pui["highlight on focus"]){e.target.focus();
1673
+ e.target.select()}})},value:function(b){if(b.dom.xr)b.dom.xr=false;else b.dom.value=b.value},"input type":function(b){if(!b.design)try{b.dom.setAttribute("type",b.value)}catch(a){}},"browser auto complete":function(b){if(!b.design){b.dom.setAttribute("autocomplete",b.value);if(P=="dspf")b.value=="off"?b.dom.setAttribute("name",pui.Qd()):b.dom.removeAttribute("name")}},"choices url":function(b){!b.design&&b.dom&&b.dom.lc&&typeof b.dom.lc.Gu==="function"&&b.dom.lc.Gu(b.value)},"prompt icon":function(b){var a=
1674
1674
  b.value;if(b.design){b=b.e;b.Ml=null;if(a)b.Ml=a;b.mh();b.Eg()}},visibility:function(b){if(b.dom.vj)b.dom.vj.style.visibility=b.value==="hidden"?"hidden":""},"css class":function(b){b.design&&b.e.mh()}},qc:function(b){b.propertyName=="field type"&&b.za&&b.za.l!=null&&b.dom&&b.dom.l==null&&pui.sg(b.dom);b.dom&&b.dom.l!=null&&pui.ip(b)}});
1675
1675
  pui.Cv=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=Lb(c);a.classList.add("pui-material-icons")}else if(c.substr(0,12)==="fontAwesome:"){c=Lb(c.substr(12));a.classList.add("pui-fa-icons fa-"+c);a.innerText=""}else{e=[{type:"material",title:"Material Icons",classList:{"":"pui-material-icons"}},
1676
1676
  {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];
@@ -1695,12 +1695,12 @@ b.dom.innerHTML="";if(typeof b.dom.style.MozUserSelect!="undefined")b.dom.style.
1695
1695
  "0px";a.Ya.style.margin="0px";a.Za.style.position="absolute";a.Za.style.padding="0px";a.Za.style.margin="0px";a.$a.style.position="absolute";a.$a.style.padding="0px";a.$a.style.margin="0px";a.ya.style.top="0px";a.ya.style.left="0px";a.ya.style.backgroundRepeat="no-repeat";a.kb.style.top="0px";a.kb.style.backgroundRepeat="repeat-x";a.Ra.style.top="0px";a.Ra.style.backgroundRepeat="no-repeat";a.db.style.left="0px";a.Ya.style.left="0px";a.Ya.style.backgroundRepeat="no-repeat";a.Za.style.backgroundRepeat=
1696
1696
  "repeat-x";a.$a.style.backgroundRepeat="no-repeat";a.db.style.backgroundRepeat="repeat-y";a.gb.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.kz="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=
1697
1697
  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.ya);b.dom.appendChild(a.kb);b.dom.appendChild(a.Ra);b.dom.appendChild(a.db);b.dom.appendChild(a.ac);b.dom.appendChild(a.gb);b.dom.appendChild(a.Ya);b.dom.appendChild(a.Za);b.dom.appendChild(a.$a);b.dom.appendChild(a.m);var c=b.dom.parentNode;if(!b.design&&
1698
- c!=null&&c.Ac==true){new pui.gk({yk:[a.m,a.ya,a.Ra],move:c});T(a.m,"touchstart",function(e){if(e.touches.length==1){e=e.touches[0];c.D={};c.D.startX=e.pageX;c.D.startY=e.pageY;c.D.hb=parseInt(c.style.left);c.D.Fa=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.D.hb-c.D.startX+f.pageX+"px";c.style.top=c.D.Fa-c.D.startY+h+"px";e.preventDefault()}});a.m.style.cursor="move";a.ya.style.cursor="move";a.Ra.style.cursor="move"}b.dom.panel=
1698
+ c!=null&&c.Ac==true){new pui.gk({yk:[a.m,a.ya,a.Ra],move:c});S(a.m,"touchstart",function(e){if(e.touches.length==1){e=e.touches[0];c.D={};c.D.startX=e.pageX;c.D.startY=e.pageY;c.D.hb=parseInt(c.style.left);c.D.Fa=parseInt(c.style.top)}});S(a.m,"touchmove",function(e){if(e.touches.length==1){var f=e.touches[0],h=f.pageY;c.style.left=c.D.hb-c.D.startX+f.pageX+"px";c.style.top=c.D.Fa-c.D.startY+h+"px";e.preventDefault()}});a.m.style.cursor="move";a.ya.style.cursor="move";a.Ra.style.cursor="move"}b.dom.panel=
1699
1699
  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.Li()[0];c=pui.widgets.panelStyles[a]}var e=pui.normalizeURL("/profoundui/proddata/images/panels/"+a+"/");b.dom.panel.rA=a;var f=b.dom.panel;f.ya.style.backgroundImage="url('"+e+"topleft.png')";f.kb.style.backgroundImage="url('"+e+"topmiddle.png')";
1700
1700
  f.Ra.style.backgroundImage="url('"+e+"topright.png')";f.db.style.backgroundImage="url('"+e+"left.png')";f.ac.style.backgroundColor=c.background;f.gb.style.backgroundImage="url('"+e+"right.png')";f.Ya.style.backgroundImage="url('"+e+"bottomleft.png')";f.Za.style.backgroundImage="url('"+e+"bottommiddle.png')";f.$a.style.backgroundImage="url('"+e+"bottomright.png')";f.m.style.paddingTop=c.textTopPadding;f.m.className="panel "+a.split(" ").join("-").toLowerCase()+"-panel";pui.widgets.Wl(f,c,b.properties.width,
1701
1701
  b.properties.height)},value:function(b){b.dom.panel.m.innerHTML=b.value},width:function(b){b.dom.style.width=pui.Si(b.value)?b.value+"px":b.value;var a=b.properties["panel style"];a=pui.widgets.panelStyles[a];if(a==null){a=pui.widgets.Li()[0];a=pui.widgets.panelStyles[a]}pui.widgets.Wl(b.dom.panel,a,b.value,b.properties.height,b)},height:function(b){b.dom.style.height=pui.Si(b.value)?b.value+"px":b.value;var a=b.properties["panel style"];a=pui.widgets.panelStyles[a];if(a==null){a=pui.widgets.Li()[0];
1702
1702
  a=pui.widgets.panelStyles[a]}pui.widgets.Wl(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=
1703
- 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.fk=function(){this.P=null;this.designMode=false;this.template="test";this.Qa={};this.Ff=false;this.Oe=[];this.wc=[];this.tr=this.Hr=this.Gr=false;this.xi={};this.Ze=this.gj=null;this.gg={}};pui.layout.fk.prototype=Object.create(pui.zd.prototype);Aa=pui.layout.fk.prototype;Aa.po=function(){this.designMode=true;this.P.destroy=this.destroy.bind(this);this.P.addEventListener("click",this)};
1703
+ 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.fk=function(){this.P=null;this.designMode=false;this.template="test";this.Qa={};this.Ff=false;this.Oe=[];this.wc=[];this.tr=this.Hr=this.Gr=false;this.xi={};this.Ze=this.gj=null;this.gg={}};pui.layout.fk.prototype=Object.create(pui.yd.prototype);Aa=pui.layout.fk.prototype;Aa.po=function(){this.designMode=true;this.P.destroy=this.destroy.bind(this);this.P.addEventListener("click",this)};
1704
1704
  Aa.Jo=function(){for(var b=pui.layout.template.yo(this.P),a=0;a<b.length;a++)if(b[a].firstChild!=null)return true;return false};Aa.Iw=function(b){if(b==null)b={};b.Zw=false;b.Xw=false;for(var a=[],c=this.P.e.designer.items,e=0;e<c.length;e++){var f=c[e];if(f.Uz()==this){if(f.properties["field type"]=="tab panel")b.Zw=true;if(f.properties["field type"]=="field set panel")b.Xw=true;a.push(f)}}return a};
1705
1705
  Aa.applyTemplate=function(){var b=pui.layout.template.applyTemplate({dom:this.P,template:this.template,properties:this.Qa,Ol:this.e!=null&&this.e.Df,designMode:this.designMode,layout:this});if(b.success){this.Oe=b.Oe;this.wc=b.wc;this.stretch()}else{setTimeout(function(){pui.alert(b.msg)},0);return b}this.P.yp=pui.layout.Ow(this.template);this.P.Gh=Jc(this.P.yp);return b};
1706
1706
  Aa.Vf=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.pb[b]=true;c.hd=true;c.designer.jd[c.designer.Na.ub]=true;c.designer.ob.refresh();return true}return false};
@@ -1719,11 +1719,11 @@ callback:a})==false&&c()}function Ac(b,a){var c=document.documentElement.clientH
1719
1719
  Aa.$t=function(b){this.Ze={active:b.active,data:b.data,designMode:b.designMode,errors:b.errors,file:b.file,fileId:b.fileId,jl:b.jl,kl:b.kl,library:b.library,metaData:{screen:{"record format name":b.metaData.screen["record format name"]}},msgInfo:b.msgInfo,name:b.name,ref:b.ref,Gj:b.Gj,subfiles:b.subfiles}};
1720
1720
  Aa.Tl=function(b){if(this.Ze!=null){if(this.gg[b]!=null&&this.wc[b]!=null){this.Ze.b=this.wc[b];this.Ze.ml=b;this.Ze.metaData.items=this.gg[b];this.Ze.gj=this.gj;pui.Hp(this.Ze);delete this.gg[b]}if(Object.keys(this.gg).length==0)this.Ze=null}};Aa.destroy=function(){this.iScroll!=null&&this.iScroll.destroy();this.P&&delete this.P.layout;Zb(this)};
1721
1721
  pui.layout.fk.prototype.handleEvent=function(b){switch(b.type){case "click":if(this.Ff)if(!pui.designer.NA){b=ub(b);if(b==this.P||b.getAttribute!=null&&b.getAttribute("container")=="true"&&pui.layout.template.yo(this.P).includes(b)){b=this.e;if(b!=null){var a=b.designer.selection;if(!(a.Sd.length==1&&a.Sd[0].e==b)){a.clear();a.add(b);b.designer.ob.refresh()}}}}break}};pui.layout.Template=function(b,a){this.ue=b&&b.Ol;this.designMode=b&&b.designMode;if(b)this.layout=b.layout;a&&this.Zi(a)};
1722
- pui.layout.Template.prototype=Object.create(pui.zd.prototype);Aa=pui.layout.Template.prototype;Aa.Zi=function(b){this.b=b;this.b.Ja=this;var a=b.layout;if(a&&typeof a.resize==="function")b.sizeMe=a.resize.bind(a)};Aa.destroy=function(){if(this.b){delete this.b.Ja;delete this.b.sizeMe}Zb(this)};Aa.gn=function(b,a){if(this.layout)return this.layout.Vf(b,a)};function ze(b,a){var c=a.properties;if(c)for(var e in c)b.setProperty(e,c[e])}Aa.setProperty=ya(false);Aa.hu=oa();Aa.resize=oa();Aa.render=oa();
1722
+ pui.layout.Template.prototype=Object.create(pui.yd.prototype);Aa=pui.layout.Template.prototype;Aa.Zi=function(b){this.b=b;this.b.Ja=this;var a=b.layout;if(a&&typeof a.resize==="function")b.sizeMe=a.resize.bind(a)};Aa.destroy=function(){if(this.b){delete this.b.Ja;delete this.b.sizeMe}Zb(this)};Aa.gn=function(b,a){if(this.layout)return this.layout.Vf(b,a)};function ze(b,a){var c=a.properties;if(c)for(var e in c)b.setProperty(e,c[e])}Aa.setProperty=ya(false);Aa.hu=oa();Aa.resize=oa();Aa.render=oa();
1723
1723
  Aa.wg=ya(-1);pui.layout.template.iw=function(b,a){var c=b.properties,e=b.Ol,f=new pui.Hm;f.tf=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.Sf(h);h=c["body theme"];h!=null&&f.Qf(h);f.T(c["straight edge"]);h=c["has header"];h=h!=="false"&&h!==false;f.Nj(h);h=c["header height"];h!=null&&f.Oj(h);f.Gg(c);c=c.height;if(c==null)c=a.style.height||"300px";f.setHeight(c);if(e)a.style.position="relative";return a};pui.ck=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.We=[];this.ce=[];this.Rb=[];this.Sg=[];this.$q="none";this.Tq="b";this.Nq="c";this.Qc=-1;this.Rm=false;this.Ye=this.Zf=null;this.ki=[];this.Zu=this.jv.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);
1724
1724
  var c=b.properties,e=c["section names"];if(b.Ef>3&&(typeof e!=="string"||e.length===0)){e=this.uc;for(var f=e.split(",").length+1,h=b.Ef;f<=h;f++)e+=","+pui.getLanguageText("runtimeText","section")+" "+f;this.setProperty("section names",e);this.layout.Vf("section names",e)}else this.setProperty("section names",e);this.pe(0);e=c["header theme"];e!=null&&this.Sf(e);e=c["body theme"];e!=null&&this.Qf(e);this.T(c["straight edge"]);e=c["small sections"];e=e==="true"||e===true;this.Ig(e);this.Gg(c);e=c.height;
1725
1725
  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.pe(c)}}if(this.ue)this.b.style.position="relative";b.Ef>0&&this.render()};pui.ck.prototype=Object.create(pui.layout.Template.prototype);Object.defineProperties(pui.ck.prototype,{Qg:{value:"The section cannot be removed because it contains other elements that must be removed first."}});Aa=pui.ck.prototype;Aa.init=function(){this.b.style.overflow="hidden"};
1726
- Aa.render=function(){for(var b=this.ki,a=b.length,c=this.We.length;a>this.We.length;){var e=document.createElement("div");e.style.width="100%";e.style.padding="0";e.vy=c;e.onclick=this.Zu;var f=document.createElement("div");f.style.width="100%";f.style.height="175px";f.style.padding="0";var h=new pui.Gm;h.b=e;h.ue=this.ue;h.init();h.ud(this.Tq);h.setIcon("plus");h.jm("left");var g=new pui.Im;g.type="body";g.tf=true;g.b=f;g.init();g.ud(this.Nq);g.setHeight("100%");this.b.appendChild(e);this.b.appendChild(f);
1726
+ Aa.render=function(){for(var b=this.ki,a=b.length,c=this.We.length;a>this.We.length;){var e=document.createElement("div");e.style.width="100%";e.style.padding="0";e.vy=c;e.onclick=this.Zu;var f=document.createElement("div");f.style.width="100%";f.style.height="175px";f.style.padding="0";var h=new pui.Gm;h.b=e;h.ue=this.ue;h.init();h.td(this.Tq);h.setIcon("plus");h.jm("left");var g=new pui.Im;g.type="body";g.tf=true;g.b=f;g.init();g.td(this.Nq);g.setHeight("100%");this.b.appendChild(e);this.b.appendChild(f);
1727
1727
  this.We.push(e);this.ce.push(f);this.Rb.push(h);this.Sg.push(g);c++}for(;a<this.We.length;){e=this.We.pop();this.b.removeChild(e);f=this.ce.pop();this.b.removeChild(f);this.Rb.pop();this.Sg.pop()}a=0;for(c=b.length;a<c;a++){this.Rb[a].setText(b[a]);this.ce[a].style.overflow=a<b.length-1?"hidden":""}if(this.designMode){if(this.Zf==null){this.Zf=designUtils.Un("plus",pui.getLanguageText("runtimeText","add x",[pui.getLanguageText("runtimeText","section")]),this.b);this.Zf.style.right="2px";this.Zf.style.bottom=
1728
1728
  "2px";this.Zf.onclick=this.Hq.bind(this);this.Zf.Dv=true}else this.b.appendChild(this.Zf);if(this.Ye==null){this.Ye=designUtils.Un("minus",pui.getLanguageText("runtimeText","delete x",[pui.getLanguageText("runtimeText","section")]),this.b);this.Ye.style.right="2px";this.Ye.style.bottom="16px";this.Ye.onclick=this.Hq.bind(this);this.Ye.style.display="none"}else this.b.appendChild(this.Ye);this.Ye.style.display=b.length>1?"":"none"}};
1729
1729
  Aa.jv=function(b){b=ub(b);for(var a=null;a==null&&b!=null;){a=b.vy;b=b.parentNode}if(a!=null)if(this.Qc==a){a=-1;this.Rm&&!this.designMode&&this.pe(a)}else{if(this.b.onsectionclickevent!=null)if(this.b.onsectionclickevent(a)==false)return;this.pe(a)}};
@@ -1731,9 +1731,9 @@ Aa.setProperty=function(b,a){switch(b){case "section names":var c=this.ki.length
1731
1731
  e;this.render()}break;case "active section":if(!this.designMode)if(a!=null){a=Number(a);!isNaN(a)&&a!=0&&this.pe(a)}break;case "header theme":this.Sf(a);break;case "body theme":this.Qf(a);break;case "small sections":this.Ig(a=="true"||a==true);break;case "allow collapse":this.Rm=a=="true"||a==true;this.pe(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,
1732
1732
  a);this.resize();break;case "onsectionclick":this.designMode||(this.b.onsectionclickevent=function(){eval("var section = arguments[0];");try{return eval(a)}catch(g){pui.Ea(g,"Onexpand Error:\n")}});break;default:return false}if(this.layout&&this.layout.Qa)this.layout.Qa[b]=a;return true};
1733
1733
  Aa.pe=function(b){this.Qc=parseInt(b,10);for(var a=0;a<this.ce.length;a++){var c=this.ce[a],e=this.Rb[a];if(a===this.Qc){e.setIcon("minus");e.setDisabled(!this.Rm);c.style.display="";this.b.S=b}else{e.setIcon("plus");e.setDisabled(false);c.style.display="none"}}this.T(this.$q);this.resize(true);b=this.b.layout;if(b!=null&&this.Qc>=0&&this.Qc<this.ce.length){this.designMode||b.Tl(this.Qc);b.xi[this.Qc]!==true&&xe(b,this.Qc)}};
1734
- Aa.T=function(b){if(!(b==null||pui.p(b))){this.$q=b;var a=this.Rb.length;if(!(a<=0)){for(var c=0;c<a;c++){this.Rb[c].T("all");this.Sg[c].T("all")}c=this.Rb[0];var e=this.Sg[a-1];if(this.ce[a-1].style.display=="none")e=this.Rb[a-1];if(c==e)c.T(b);else switch(b){case "left":c.T("left");c.Jd().style.borderBottomRightRadius="0";c.we().style.borderBottomRightRadius="0";e.T("left");e.Jd().style.borderTopRightRadius="0";e.we().style.borderTopRightRadius="0";break;case "right":c.T("right");c.Jd().style.borderBottomLeftRadius=
1735
- "0";c.we().style.borderBottomLeftRadius="0";e.T("right");e.Jd().style.borderTopLeftRadius="0";e.we().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}}}};Aa.setStyle=function(b,a){for(var c=0;c<this.Rb.length;c++)this.Rb[c].setStyle(b,a)};Aa.Gg=function(b){for(var a=0;a<this.Rb.length;a++)this.Rb[a].Gg(b)};
1736
- Aa.Ig=function(b){for(var a=0;a<this.Rb.length;a++)this.Rb[a].Ig(b);this.resize()};Aa.Sf=function(b){for(var a=0;a<this.Rb.length;a++)this.Rb[a].ud(b);this.Tq=b};Aa.Qf=function(b){for(var a=0;a<this.Sg.length;a++)this.Sg[a].ud(b);this.Nq=b};
1734
+ Aa.T=function(b){if(!(b==null||pui.p(b))){this.$q=b;var a=this.Rb.length;if(!(a<=0)){for(var c=0;c<a;c++){this.Rb[c].T("all");this.Sg[c].T("all")}c=this.Rb[0];var e=this.Sg[a-1];if(this.ce[a-1].style.display=="none")e=this.Rb[a-1];if(c==e)c.T(b);else switch(b){case "left":c.T("left");c.Id().style.borderBottomRightRadius="0";c.we().style.borderBottomRightRadius="0";e.T("left");e.Id().style.borderTopRightRadius="0";e.we().style.borderTopRightRadius="0";break;case "right":c.T("right");c.Id().style.borderBottomLeftRadius=
1735
+ "0";c.we().style.borderBottomLeftRadius="0";e.T("right");e.Id().style.borderTopLeftRadius="0";e.we().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}}}};Aa.setStyle=function(b,a){for(var c=0;c<this.Rb.length;c++)this.Rb[c].setStyle(b,a)};Aa.Gg=function(b){for(var a=0;a<this.Rb.length;a++)this.Rb[a].Gg(b)};
1736
+ Aa.Ig=function(b){for(var a=0;a<this.Rb.length;a++)this.Rb[a].Ig(b);this.resize()};Aa.Sf=function(b){for(var a=0;a<this.Rb.length;a++)this.Rb[a].td(b);this.Tq=b};Aa.Qf=function(b){for(var a=0;a<this.Sg.length;a++)this.Sg[a].td(b);this.Nq=b};
1737
1737
  Aa.resize=function(b){var a=this.b.offsetHeight;if(typeof this.uk==="number"){a=this.uk;delete this.uk}var c=0;if(this.We.length>0)c=this.We[0].offsetHeight;if(c==0)c=42;a=a-c*this.We.length;if(a<0)a=0;c=this.ce[this.Qc];if(c!=null)c.style.height=a+"px";this.b.layout!=null&&b!==true&&xe(this.b.layout)};Aa.setHeight=function(b){this.b.style.height=b;delete this.uk;if(typeof b==="string"&&b.length>=3&&b.substring(b.length-2)==="px"){b=parseInt(b);if(!isNaN(b))this.uk=b}this.resize()};
1738
1738
  Aa.Hq=function(b){var a=b.target.Dv===true;b=Ib.designer.ph(this.b);var c=b.properties["section names"];if(!pui.Kb(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.Gh["section names"];b.designer.ca.start("Add/Remove Section");b.designer.ca.add(b,a.name);Pc(a,b.properties,b.dom,c,true,b,null);b.pb["section names"]=
1739
1739
  true;b.hd=true;b.designer.jd[b.designer.Na.ub]=true;b.designer.selection.clear();b.designer.selection.add(b);b.designer.ob.refresh()}};function Ae(b,a){var c=b.ce[a].querySelector("div[container=true]");return c&&c.children&&c.children.length>0}Aa.wg=function(){return parseInt(this.Qc,10)};pui.Pg=function(b,a){pui.layout.Template.call(this,b,a);this.wp=b&&b.wp===true;this.tk=0;this.hg=document.createElement("div");this.hg.className=this.Ru;this.b.appendChild(this.hg);this.Vg=Be(this,"",this.b);this.ag=[];this.ig=true;this.mv=500;this.dr=this.Sm=0;this.$m=this.Ug="";this.Oq=this.av.bind(this);this.Mq=pui.Pg.prototype.pv++;if(pui.runtimeContainer&&pui.runtimeContainer.id=="5250")document.querySelector('style[forcegenieheight="true"]')||Be(this,'div[id="5250"] { height: calc(100vh - 100px); }',
@@ -1761,7 +1761,7 @@ pui.fd.prototype.Tc=function(){var b,a;this.selectedTab=parseInt(this.selectedTa
1761
1761
  0?"inherit":"";this.A.style.fontStyle=typeof c["font style"]==="string"&&c["font style"].length>0?"inherit":"";this.A.style.fontWeight=typeof c["font weight"]==="string"&&c["font weight"].length>0?"inherit":""}for(var e=0,f=this.ib.length;e<f;e++){b=this.$e[e];b.innerHTML=this.ib[e];if(c)b.style.textDecoration=typeof c["text decoration"]==="string"?c["text decoration"]:"";a=Ie(this,b.Aa);a=this.A.childNodes[a];a.style.display=this.Xe[e]?"none":"";b.Aa===this.selectedTab?b.parentNode.classList.add("selected-tab"):
1762
1762
  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.Ym)if(this.dm)if(b.Aa===this.selectedTab){b.draggable=true;b.addEventListener("dragstart",this);b.addEventListener("dragend",this)}else{b.addEventListener("dragover",this);b.addEventListener("dragleave",
1763
1763
  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.Qb.children[e];if(e===this.selectedTab){b.style.display="";b=this.layout;if(b!=null){this.designMode||b.Tl(this.selectedTab);b.xi[this.selectedTab]!==true&&xe(b,this.selectedTab)}}else b.style.display="none"}this.mk()};
1764
- pui.fd.prototype.handleEvent=function(b){function a(A,B){var G=e(A),F=B.target;if(F==G[0])return"first";if(F==G[G.length-1])return"last"}function c(A,B){A.bn=A.selectedTab;A.selectedTab=B;A.Bd=A.A.scrollLeft;A.xp(B)}function e(A){A=A.layout.wc[A.selectedTab].childNodes;for(var B=[],G=0;G<A.length;G++){var F=A[G];if((F.localName=="input"||F.localName=="textarea"||F.localName=="select"||F.localName=="button")&&!F.disabled)B.push(F)}return B}var f,h;switch(true){case b.type==="mousedown"||b.type==="keyup"&&
1764
+ pui.fd.prototype.handleEvent=function(b){function a(A,B){var G=e(A),F=B.target;if(F==G[0])return"first";if(F==G[G.length-1])return"last"}function c(A,B){A.bn=A.selectedTab;A.selectedTab=B;A.Ad=A.A.scrollLeft;A.xp(B)}function e(A){A=A.layout.wc[A.selectedTab].childNodes;for(var B=[],G=0;G<A.length;G++){var F=A[G];if((F.localName=="input"||F.localName=="textarea"||F.localName=="select"||F.localName=="button")&&!F.disabled)B.push(F)}return B}var f,h;switch(true){case b.type==="mousedown"||b.type==="keyup"&&
1765
1765
  b.key==="Tab":this.designMode&&b.stopPropagation();h=b.currentTarget.Aa;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.Zm==="string"&&this.Zm.length>0)try{if(eval("var tab = "+h+"; "+this.Zm)==false)return}catch(g){pui.Ea(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===
1766
1766
  "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.ib.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-
1767
1767
  1;if(h<this.ib.length&&h>=0){c(this,h);f=e(this);l=f.length;f[0]&&f[l-1].focus();b.preventDefault()}h<0&&this.A.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.ib.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.ib.length;if(h>=f)h=0;if(h<=f){c(this,h);f=e(this);f[0]&&f[0].focus()}return;case b.type===
@@ -1769,7 +1769,7 @@ b.key==="Tab":this.designMode&&b.stopPropagation();h=b.currentTarget.Aa;if(this.
1769
1769
  b.stopPropagation();if(!this.A.contains(b.target))return;try{b.dataTransfer.getData("text/plain")}catch(r){}var p=this.hi;if(isNaN(p))return;o=b.currentTarget.Aa;if(isNaN(o)||o==p)return;p=Ie(this,p);b=Ie(this,o);var t=p<b,s=this.A.childNodes[p];this.A.removeChild(s);b=Ie(this,o);if(t)b+=1;this.A.insertBefore(s,this.A.childNodes[b]);if(this.designMode){(h=this.layout.e)&&h.designer.ca.pn("Edit Layout",h.designer);h=this.Qb.childNodes[p];this.Qb.removeChild(h);this.Qb.insertBefore(h,this.Qb.childNodes[b]);
1770
1770
  p=o="";this.$e=[];h=0;for(f=this.A.childNodes.length;h<f;h++){l=this.A.childNodes[h];l=l.childNodes[1];this.$e.push(l);l.Aa=h;o+=p+l.innerHTML;p=",";l=this.Qb.childNodes[h];l.Aa=h;l.Tn=h+1}this.selectedTab=b;this.setProperty("tab names",o);this.gn("tab names",o);pui.ide.refreshRibbon();if(this.layout)this.layout.wc=this.Qb.children}else if(this.mi)try{b={order:[]};h=0;for(f=this.A.childNodes.length;h<f;h++){l=this.A.childNodes[h];b.order.push(l.childNodes[1].Aa)}sessionStorage[this.mi]=JSON.stringify(b)}catch(w){}return;
1771
1771
  case b.type==="dragend":delete this.hi}};Aa=pui.fd.prototype;Aa.fi=function(b){var a=this.Qb.children;return a&&a[b]&&a[b].children&&a[b].children.length>0};Aa.gi=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};
1772
- function He(b){if(b.bm&&b.sk&&b.A.offsetWidth>0){var a=b.A.childNodes[b.Ym?Ie(b,b.selectedTab):b.selectedTab];if(a){b.Bd=Math.round(a.offsetLeft-b.A.offsetWidth/2+a.offsetWidth/2);b.sk=false}}}function Ie(b,a){for(var c=0,e=b.A.childNodes.length;c<e;c++){var f=b.A.childNodes[c];if(f.childNodes[1]&&f.childNodes[1].Aa===a)return c}return-1}Aa.resize=function(){if(this.ji){He(this);this.mk()}};
1772
+ function He(b){if(b.bm&&b.sk&&b.A.offsetWidth>0){var a=b.A.childNodes[b.Ym?Ie(b,b.selectedTab):b.selectedTab];if(a){b.Ad=Math.round(a.offsetLeft-b.A.offsetWidth/2+a.offsetWidth/2);b.sk=false}}}function Ie(b,a){for(var c=0,e=b.A.childNodes.length;c<e;c++){var f=b.A.childNodes[c];if(f.childNodes[1]&&f.childNodes[1].Aa===a)return c}return-1}Aa.resize=function(){if(this.ji){He(this);this.mk()}};
1773
1773
  Aa.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)};Aa.wg=function(){return this.selectedTab!=null?parseInt(this.selectedTab,10):-1};pui.Km=function(b,a){pui.layout.Template.call(this,b,a);this.eg=document.createElement("fieldset");this.eg.className="layout";this.rk=document.createElement("legend");this.eg.appendChild(this.rk);this.J=document.createElement("div");this.J.setAttribute("container","true");this.eg.appendChild(this.J);this.b.appendChild(this.eg)};pui.Km.prototype=Object.create(pui.layout.Template.prototype);
1774
1774
  pui.Km.prototype.setProperty=function(b,a){switch(b){case "legend":this.rk.innerHTML=a;break;case "legend align":this.rk.setAttribute("align",a);break;case "legend style":this.rk.style=a;break;case "border style":this.eg.style.borderStyle=a;break;case "border width":this.eg.style.borderWidth=a;break;case "border color":this.eg.style.borderColor=a;break;default:return false}if(this.b.layout&&this.b.layout.Qa)this.b.layout.Qa[b]=a;return true};pui.layout.templates={};pui.retrieveCustomLayoutTemplate=function(b){if(typeof b==="string"&&b.length>0){pui.og=pui.og||[];var a=b;if(b.substr(0,1)!="/"&&b.substr(0,5).toLowerCase()!="http:"&&b.substr(0,6).toLowerCase()!="https:")a="/profoundui/userdata/layouts/"+b+".html";pui.og.push({tm:b,url:pui.normalizeURL(a)})}};
1775
1775
  pui.maximizeLayout=function(b){var a=ub(b).parentNode,c=Ib.designer,e=c.ph(a);c.ca.start("Maximize Layout");c.ca.add(e,"left");c.ca.add(e,"top");c.ca.add(e,"width");c.ca.add(e,"height");a.style.left="0px";e.properties.left="0px";e.pb.left=true;a.style.top="0px";e.properties.top="0px";e.pb.top=true;a.style.width="100%";e.properties.width="100%";e.pb.width=true;a.style.height="100%";e.properties.height="100%";e.pb.height=true;c.jd[c.Na.ub]=true;c.fp();c.selection.clear();a.layout.resize();c.selection.add(e);
@@ -1815,31 +1815,31 @@ pui.layout.template.getProxy=function(b){var a=pui.layout.template.load({templat
1815
1815
  "hidden";b.dom.parentNode.style.padding="0";b.dom.parentNode.style.height="100%"}if(window.cordova&&window.device.platform=="iOS"){b.dom.layout.tr=true;b.dom.parentNode.style.overflowX="hidden";b.dom.parentNode.style.overflowY="hidden";Ac(b.dom.layout)}}else if(!b.design&&b.dom.parentNode.Ac&&(pui.vh(b.properties.height)||pui.vh(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.po();b.dom.e=b.e;b.e.kp=
1816
1816
  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.fr(b.dom,b.properties["inline style"],true)}}b.dom.layout.Sx=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.Ni());for(var h in b.properties)f[h]||(b.dom.layout.Qa[h]=b.properties[h]);h=b.dom.layout.applyTemplate();
1817
1817
  if(h.success==false&&e!=null){a.template=e;setTimeout(a.Vf.bind(a),1,"template",e);c=false}if(h.success==true&&(!b.design||Ib.zh||Ib.Mx))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.Ja)&&a.hu(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||ye(b.layout)}}});if(!window.profound)window.profound={};window.profound.ai||(window.profound.ai={});
1818
- profound.ai.Chat=function(){function b(){if(window.pui&&window.pui.ide&&window.pui.ide.designerId)return true;return false}function a(){var aa=Ext.getCmp("centerPanel").getActiveTab(),na={};if(aa.isAIAgent&&aa.aiAgent)na.aiAgent=aa.aiAgent;if(aa.isAIAgent&&aa.dataAccess)na.dataAccess=aa.dataAccess;Object.assign(na,Object.fromEntries(Object.entries(aa.pjsModule).filter(function(ma){return typeof ma[1]!=="function"})));return na}function c(){function aa(){var ma=r.lastChild.querySelectorAll(".pai-chart");
1819
- if(ma.length!==0)if(profound.ai.Gk){for(var sa=0;sa<ma.length;sa++){var qa=ma[sa],Ka=JSON.parse(qa.getAttribute("data-config"));qa.removeAttribute("data-config");qa.chart=new window.Chart(qa.querySelector("canvas"),Ka);qa=qa.querySelector("span");qa.parentNode.removeChild(qa)}r.scrollTop=r.scrollHeight}else{na++;na<20&&setTimeout(aa,1E3)}}var na=0;aa()}function e(aa){function na(){aa.read().then(function(Ka){var ga=Ka.value;if(Ka.done){o.hideLoader();c()}else{Ka=ma.decode(ga).split("\n");for(ga=0;ga<
1820
- Ka.length-1;ga++){var ua=Ka[ga];if(ua){ua=JSON.parse(ua);if(ua.threadId)A=ua.threadId;if(ua.status==="error"){o.hideLoader();o.add({message:"Error: "+ua.message,type:"error"});return}if(ua.status==="calling"){var Pa=r.lastChild;ua=Pa.innerHTML.replace(Q,"")+'<p>Calling <span class="pai-function-name">'+ua["function"]+"</span>.</p>";o.add({message:ua+Q,type:"agent-response",replace:true})}else if(ua.status==="calls completed"){Pa=r.lastChild;var ra="<p>";ra+=ua.count===1?"Call completed.":ua.count+
1821
- " calls completed.";ra+="</p>";ra=Pa.innerHTML.replace(Q,"")+ra;o.add({message:ra+Q,type:"agent-response",replace:true})}else{if(ua.status==="file")sa=sa.replace(ua.placeholderUrl,ua.fileUrl);sa+=ua.text;if(ua.charts){if(!profound.ai.Gk){var gb=window.define;window.define=undefined;profound.ai.bp(ha,function(){window.define=gb;profound.ai.Gk=true})}qa=ua.charts}if(qa)for(var ta in qa)sa=sa.replace(ta,'<div class="pai-chart" data-config="'+JSON.stringify(qa[ta]).replace(/"/g,"&quot;")+'"><span>Loading chart...</span><canvas></canvas></div>');
1822
- Pa=sa&&typeof window.marked==="function"?window.marked(sa+Q):sa+Q;ua.status==="citation"&&X.push(ua);for(ua=0;ua<X.length;ua++){ra=X[ua];Pa=Pa.replace(ra.citationPlaceholder,ra.citationContent)}o.add({message:Pa,type:"agent-response",replace:true})}}}na()}})}var ma=new TextDecoder("utf-8"),sa="",qa;na()}function f(aa){var na=aa.status;if(aa.threadId)A=aa.threadId;if(aa.runId)B=aa.runId;if(aa.modelKey)G=aa.modelKey;if(aa.message){var ma=aa.message,sa="agent-response";if(aa.status==="error"){ma="Error: "+
1823
- ma;sa="error"}if(aa.status==="failed"){ma="Failed: "+ma;sa="error"}if(aa.status==="cancelled"){ma="Cancelled";sa="error"}if(aa.status==="expired"){ma="Chat Expired";sa="error"}if(aa.charts){if(!profound.ai.Gk){var qa=window.define;window.define=undefined;profound.ai.bp(ha,function(){window.define=qa;profound.ai.Gk=true})}var Ka=aa.charts;for(var ga in Ka)ma=ma.replace(ga,'<div class="pai-chart" data-config="'+JSON.stringify(Ka[ga]).replace(/"/g,"&quot;")+'"><span>Loading chart...</span><canvas></canvas></div>')}o.add({message:ma,
1824
- type:sa});aa.charts&&c()}na==="queued"||na==="in_progress"?setTimeout(function(){o.poll()},F):o.hideLoader()}function h(){t.value===""||o.isLoading()?s.classList.remove("pai-send-button-active"):s.classList.add("pai-send-button-active");var aa="webkitSpeechRecognition"in window||"SpeechRecognition"in window;if(b()){var na=Ext.getCmp("aiAgentModel").getValue();if(pui.modelVoiceSettings)W=pui.modelVoiceSettings[na];W||(W={})}if(aa&&W.enabled===false)aa=false;if(aa){t.classList.add("pai-with-voice");
1825
- w.classList.remove("pai-hidden")}else{t.classList.remove("pai-with-voice");w.classList.add("pai-hidden")}}function g(){t.style.height="1px";var aa=t.scrollHeight==0?21:t.scrollHeight;if(aa<21)aa=21;if(aa>100)aa=100;r.style.height="calc(100% - "+(aa+54+(o.heading?74:0))+"px)";t.style.height=aa+"px"}function l(aa,na){if(typeof aa!=="string")return aa;if(aa.length!==7)return aa;if(aa.substring(0,1)!=="#")return aa;var ma=parseInt(aa.substring(1,3),16),sa=parseInt(aa.substring(3,5),16),qa=parseInt(aa.substring(5,
1826
- 7),16);ma=parseInt(ma*(100+na)/100);sa=parseInt(sa*(100+na)/100);qa=parseInt(qa*(100+na)/100);ma=ma<255?ma:255;sa=sa<255?sa:255;qa=qa<255?qa:255;ma=ma.toString(16).length==1?"0"+ma.toString(16):ma.toString(16);sa=sa.toString(16).length==1?"0"+sa.toString(16):sa.toString(16);qa=qa.toString(16).length==1?"0"+qa.toString(16):qa.toString(16);return"#"+ma+sa+qa}var o=this,n=null,r=null,p=null,t=null,s=null,w=null,A=null,B=null,G=null,F=1E3,D=null,E=null,C="Thinking",K="",R="light",N=null,M=false,W={},
1827
- Q='<span class="pai-loader-dot pai-inline-loader"></span>',ha="https://cdn.jsdelivr.net/npm/chart.js@4/dist/chart.umd.min.js",Y=null,X=[],y,ea;this.init=function(aa){aa||(aa={});if(!aa.container)aa.container=document.body;aa.closeButton||(aa.closeButton=true);aa.closeTitle||(aa.closeTitle="Close this conversation");aa.sendTitle||(aa.sendTitle="Send this message");aa.voiceTitle||(aa.voiceTitle="Use voice");aa.promptPlaceHolder||(aa.promptPlaceHolder="Send a message...");if(aa.heading)o.heading=aa.heading;
1828
- if(aa.greeting)o.greeting=aa.greeting;if(aa.agent)o.agent=aa.agent;if(aa.pollInterval)F=aa.pollInterval;if(aa.loaderMessage)C=aa.defaultLoaderMessage;if(aa.server)K=aa.server;if(aa.data)o.data=aa.data;if(aa.stream)M=aa.stream;if(typeof aa.voice==="object")W=aa.voice;if(aa.jwt)Y=aa.jwt;o.dom=document.createElement("div");o.dom.classList.add("pai-chat");o.dom.classList.add("pai-hidden");aa.container.appendChild(o.dom);if(aa.closeButton){n=document.createElement("div");n.classList.add("pai-close-button");
1829
- n.title=aa.closeTitle;n.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0z" fill="none"/><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>';n.addEventListener("click",function(){o.onClose&&o.onClose();b()?o.clear():o.hide()});o.dom.appendChild(n)}r=document.createElement("div");r.classList.add("pai-messages");o.dom.appendChild(r);p=document.createElement("div");
1830
- p.classList.add("pai-prompt-area");t=document.createElement("textarea");t.classList.add("pai-prompt-box");t.setAttribute("placeholder",aa.promptPlaceHolder);t.addEventListener("keydown",function(sa){if(sa.key==="Enter"){sa.shiftKey||sa.preventDefault();sa.stopPropagation();sa.shiftKey||o.send()}h()});t.addEventListener("input",function(){g();h()});p.appendChild(t);w=document.createElement("div");w.classList.add("pai-voice-button");w.title=aa.voiceTitle;w.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M12 14c1.66 0 3-1.34 3-3V5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3zm4.5-3c0 2.5-2 4.5-4.5 4.5S7.5 13.5 7.5 11H6c0 3.07 2.13 5.64 5 6.32V21h2v-3.68c2.87-.68 5-3.25 5-6.32h-1.5z"/></svg>';
1831
- p.appendChild(w);if("webkitSpeechRecognition"in window||"SpeechRecognition"in window){y=window.SpeechRecognition||window.webkitSpeechRecognition;ea=new y;ea.continuous=true;ea.interimResults=true;w.addEventListener("click",function(){ea.lang=W.lang?W.lang:"en-US";w.classList.contains("pai-recording")?ea.stop():ea.start();w.classList.toggle("pai-recording")});ea.onresult=function(sa){if(w.classList.contains("pai-recording")){for(var qa=[],Ka=0;Ka<sa.results.length;Ka++)qa.push(sa.results[Ka][0].transcript);
1832
- t.value=qa.join("");g();t.scrollTop=t.scrollHeight;t.focus();h()}};ea.onend=function(){w.classList.remove("pai-recording");t.select();h()};ea.onerror=function(sa){o.add({message:"Speech recognition error: "+sa.error,type:"error"})}}s=document.createElement("div");s.classList.add("pai-send-button");s.title=aa.sendTitle;s.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"/></svg>';
1833
- s.addEventListener("click",function(){o.send()});p.appendChild(s);o.dom.appendChild(p);D=document.createElement("div");D.classList.add("pai-loader");E=document.createElement("span");E.classList.add("pai-loader-message");D.appendChild(E);for(var na=1;na<=3;na++){var ma=document.createElement("div");ma.classList.add("pai-loader-dot");D.appendChild(ma)}o.clear();aa.theme&&o.setTheme(aa.theme);aa.brandColor&&o.setBrandColor(aa.brandColor);h()};this.show=function(){o.dom.classList.remove("pai-hidden");
1834
- t.focus()};this.hide=function(){o.dom.classList.add("pai-hidden")};this.add=function(aa){var na=aa.message,ma=document.createElement("div");ma.classList.add("pai-message");var sa=aa.type;sa||(sa="user-message");ma.classList.add("pai-"+sa);if(sa==="agent-response"){ma.classList.add("markdown-body");if(K)na=na.replace(/<img src="\/profound-ai\/image\?file=/g,'<img src="'+K+"/profound-ai/image?file=");ma.innerHTML=na;ma.querySelectorAll("a").forEach(function(qa){qa.addEventListener("click",function(){pui.skipConfirm=
1818
+ profound.ai.Chat=function(){function b(){if(window.pui&&window.pui.ide&&window.pui.ide.designerId)return true;return false}function a(){var Z=Ext.getCmp("centerPanel").getActiveTab(),na={};if(Z.isAIAgent&&Z.aiAgent)na.aiAgent=Z.aiAgent;if(Z.isAIAgent&&Z.dataAccess)na.dataAccess=Z.dataAccess;Object.assign(na,Object.fromEntries(Object.entries(Z.pjsModule).filter(function(ma){return typeof ma[1]!=="function"})));return na}function c(){function Z(){var ma=r.lastChild.querySelectorAll(".pai-chart");if(ma.length!==
1819
+ 0)if(profound.ai.Gk){for(var sa=0;sa<ma.length;sa++){var qa=ma[sa],Ka=JSON.parse(qa.getAttribute("data-config"));qa.removeAttribute("data-config");qa.chart=new window.Chart(qa.querySelector("canvas"),Ka);qa=qa.querySelector("span");qa.parentNode.removeChild(qa)}r.scrollTop=r.scrollHeight}else{na++;na<20&&setTimeout(Z,1E3)}}var na=0;Z()}function e(Z){function na(){Z.read().then(function(Ka){var ga=Ka.value;if(Ka.done){o.hideLoader();c()}else{Ka=ma.decode(ga).split("\n");for(ga=0;ga<Ka.length-1;ga++){var ua=
1820
+ Ka[ga];if(ua){ua=JSON.parse(ua);if(ua.threadId)A=ua.threadId;if(ua.status==="error"){o.hideLoader();o.add({message:"Error: "+ua.message,type:"error"});return}if(ua.status==="calling"){var Pa=r.lastChild;ua=Pa.innerHTML.replace(T,"")+'<p>Calling <span class="pai-function-name">'+ua["function"]+"</span>.</p>";o.add({message:ua+T,type:"agent-response",replace:true})}else if(ua.status==="calls completed"){Pa=r.lastChild;var ra="<p>";ra+=ua.count===1?"Call completed.":ua.count+" calls completed.";ra+=
1821
+ "</p>";ra=Pa.innerHTML.replace(T,"")+ra;o.add({message:ra+T,type:"agent-response",replace:true})}else{if(ua.status==="file")sa=sa.replace(ua.placeholderUrl,ua.fileUrl);sa+=ua.text;if(ua.charts){if(!profound.ai.Gk){var gb=window.define;window.define=undefined;profound.ai.bp(ia,function(){window.define=gb;profound.ai.Gk=true})}qa=ua.charts}if(qa)for(var ta in qa)sa=sa.replace(ta,'<div class="pai-chart" data-config="'+JSON.stringify(qa[ta]).replace(/"/g,"&quot;")+'"><span>Loading chart...</span><canvas></canvas></div>');
1822
+ Pa=sa&&typeof window.marked==="function"?window.marked(sa+T):sa+T;ua.status==="citation"&&W.push(ua);for(ua=0;ua<W.length;ua++){ra=W[ua];Pa=Pa.replace(ra.citationPlaceholder,ra.citationContent)}o.add({message:Pa,type:"agent-response",replace:true})}}}na()}})}var ma=new TextDecoder("utf-8"),sa="",qa;na()}function f(Z){var na=Z.status;if(Z.threadId)A=Z.threadId;if(Z.runId)B=Z.runId;if(Z.modelKey)G=Z.modelKey;if(Z.message){var ma=Z.message,sa="agent-response";if(Z.status==="error"){ma="Error: "+ma;sa=
1823
+ "error"}if(Z.status==="failed"){ma="Failed: "+ma;sa="error"}if(Z.status==="cancelled"){ma="Cancelled";sa="error"}if(Z.status==="expired"){ma="Chat Expired";sa="error"}if(Z.charts){if(!profound.ai.Gk){var qa=window.define;window.define=undefined;profound.ai.bp(ia,function(){window.define=qa;profound.ai.Gk=true})}var Ka=Z.charts;for(var ga in Ka)ma=ma.replace(ga,'<div class="pai-chart" data-config="'+JSON.stringify(Ka[ga]).replace(/"/g,"&quot;")+'"><span>Loading chart...</span><canvas></canvas></div>')}o.add({message:ma,
1824
+ type:sa});Z.charts&&c()}na==="queued"||na==="in_progress"?setTimeout(function(){o.poll()},F):o.hideLoader()}function h(){t.value===""||o.isLoading()?s.classList.remove("pai-send-button-active"):s.classList.add("pai-send-button-active");var Z="webkitSpeechRecognition"in window||"SpeechRecognition"in window;if(b()){var na=Ext.getCmp("aiAgentModel").getValue();if(pui.modelVoiceSettings)X=pui.modelVoiceSettings[na];X||(X={})}if(Z&&X.enabled===false)Z=false;if(Z){t.classList.add("pai-with-voice");w.classList.remove("pai-hidden")}else{t.classList.remove("pai-with-voice");
1825
+ w.classList.add("pai-hidden")}}function g(){t.style.height="1px";var Z=t.scrollHeight==0?21:t.scrollHeight;if(Z<21)Z=21;if(Z>100)Z=100;r.style.height="calc(100% - "+(Z+54+(o.heading?74:0))+"px)";t.style.height=Z+"px"}function l(Z,na){if(typeof Z!=="string")return Z;if(Z.length!==7)return Z;if(Z.substring(0,1)!=="#")return Z;var ma=parseInt(Z.substring(1,3),16),sa=parseInt(Z.substring(3,5),16),qa=parseInt(Z.substring(5,7),16);ma=parseInt(ma*(100+na)/100);sa=parseInt(sa*(100+na)/100);qa=parseInt(qa*
1826
+ (100+na)/100);ma=ma<255?ma:255;sa=sa<255?sa:255;qa=qa<255?qa:255;ma=ma.toString(16).length==1?"0"+ma.toString(16):ma.toString(16);sa=sa.toString(16).length==1?"0"+sa.toString(16):sa.toString(16);qa=qa.toString(16).length==1?"0"+qa.toString(16):qa.toString(16);return"#"+ma+sa+qa}var o=this,n=null,r=null,p=null,t=null,s=null,w=null,A=null,B=null,G=null,F=1E3,D=null,E=null,C="Thinking",K="",L="light",Q=null,N=false,X={},T='<span class="pai-loader-dot pai-inline-loader"></span>',ia="https://cdn.jsdelivr.net/npm/chart.js@4/dist/chart.umd.min.js",
1827
+ ca=null,W=[],y,ea;this.init=function(Z){Z||(Z={});if(!Z.container)Z.container=document.body;Z.closeButton||(Z.closeButton=true);Z.closeTitle||(Z.closeTitle="Close this conversation");Z.sendTitle||(Z.sendTitle="Send this message");Z.voiceTitle||(Z.voiceTitle="Use voice");Z.promptPlaceHolder||(Z.promptPlaceHolder="Send a message...");if(Z.heading)o.heading=Z.heading;if(Z.greeting)o.greeting=Z.greeting;if(Z.agent)o.agent=Z.agent;if(Z.pollInterval)F=Z.pollInterval;if(Z.loaderMessage)C=Z.defaultLoaderMessage;
1828
+ if(Z.server)K=Z.server;if(Z.data)o.data=Z.data;if(Z.stream)N=Z.stream;if(typeof Z.voice==="object")X=Z.voice;if(Z.jwt)ca=Z.jwt;o.dom=document.createElement("div");o.dom.classList.add("pai-chat");o.dom.classList.add("pai-hidden");Z.container.appendChild(o.dom);if(Z.closeButton){n=document.createElement("div");n.classList.add("pai-close-button");n.title=Z.closeTitle;n.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0z" fill="none"/><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>';
1829
+ n.addEventListener("click",function(){o.onClose&&o.onClose();b()?o.clear():o.hide()});o.dom.appendChild(n)}r=document.createElement("div");r.classList.add("pai-messages");o.dom.appendChild(r);p=document.createElement("div");p.classList.add("pai-prompt-area");t=document.createElement("textarea");t.classList.add("pai-prompt-box");t.setAttribute("placeholder",Z.promptPlaceHolder);t.addEventListener("keydown",function(sa){if(sa.key==="Enter"){sa.shiftKey||sa.preventDefault();sa.stopPropagation();sa.shiftKey||
1830
+ o.send()}h()});t.addEventListener("input",function(){g();h()});p.appendChild(t);w=document.createElement("div");w.classList.add("pai-voice-button");w.title=Z.voiceTitle;w.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M12 14c1.66 0 3-1.34 3-3V5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3zm4.5-3c0 2.5-2 4.5-4.5 4.5S7.5 13.5 7.5 11H6c0 3.07 2.13 5.64 5 6.32V21h2v-3.68c2.87-.68 5-3.25 5-6.32h-1.5z"/></svg>';
1831
+ p.appendChild(w);if("webkitSpeechRecognition"in window||"SpeechRecognition"in window){y=window.SpeechRecognition||window.webkitSpeechRecognition;ea=new y;ea.continuous=true;ea.interimResults=true;w.addEventListener("click",function(){ea.lang=X.lang?X.lang:"en-US";w.classList.contains("pai-recording")?ea.stop():ea.start();w.classList.toggle("pai-recording")});ea.onresult=function(sa){if(w.classList.contains("pai-recording")){for(var qa=[],Ka=0;Ka<sa.results.length;Ka++)qa.push(sa.results[Ka][0].transcript);
1832
+ t.value=qa.join("");g();t.scrollTop=t.scrollHeight;t.focus();h()}};ea.onend=function(){w.classList.remove("pai-recording");t.select();h()};ea.onerror=function(sa){o.add({message:"Speech recognition error: "+sa.error,type:"error"})}}s=document.createElement("div");s.classList.add("pai-send-button");s.title=Z.sendTitle;s.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"/></svg>';
1833
+ s.addEventListener("click",function(){o.send()});p.appendChild(s);o.dom.appendChild(p);D=document.createElement("div");D.classList.add("pai-loader");E=document.createElement("span");E.classList.add("pai-loader-message");D.appendChild(E);for(var na=1;na<=3;na++){var ma=document.createElement("div");ma.classList.add("pai-loader-dot");D.appendChild(ma)}o.clear();Z.theme&&o.setTheme(Z.theme);Z.brandColor&&o.setBrandColor(Z.brandColor);h()};this.show=function(){o.dom.classList.remove("pai-hidden");t.focus()};
1834
+ this.hide=function(){o.dom.classList.add("pai-hidden")};this.add=function(Z){var na=Z.message,ma=document.createElement("div");ma.classList.add("pai-message");var sa=Z.type;sa||(sa="user-message");ma.classList.add("pai-"+sa);if(sa==="agent-response"){ma.classList.add("markdown-body");if(K)na=na.replace(/<img src="\/profound-ai\/image\?file=/g,'<img src="'+K+"/profound-ai/image?file=");ma.innerHTML=na;ma.querySelectorAll("a").forEach(function(qa){qa.addEventListener("click",function(){pui.skipConfirm=
1835
1835
  true;setTimeout(function(){pui.skipConfirm=false},250)})});ma.querySelectorAll("span.pai-citation").forEach(function(qa){function Ka(){if(ga&&!ga.matches(":hover")){qa.removeChild(ga);ga=null}}var ga,ua;qa.addEventListener("mouseenter",function(){if(!ga)if(qa.getAttribute("data-citation")){ga=document.createElement("div");ga.classList.add("pai-tooltip-content");ga.innerHTML=qa.getAttribute("data-citation");qa.appendChild(ga);var Pa=qa.getBoundingClientRect();ga.style.left=Pa.left+"px";ga.style.top=
1836
- Pa.top-ga.offsetHeight-5+"px";ga.addEventListener("mouseenter",function(){clearTimeout(ua)});ga.addEventListener("mouseleave",function(){Ka()})}});qa.addEventListener("mouseleave",function(){ua=setTimeout(Ka,100)})});if(aa.replace)(aa=r.lastChild)&&aa.classList.contains("pai-agent-response")&&aa.parentNode.removeChild(aa)}else ma.innerText=na;r.appendChild(ma);r.scrollTop=r.scrollHeight};this.clear=function(){w.classList.contains("pai-recording")&&ea.stop();t.value="";r.innerHTML="";o.greeting&&o.add({message:o.greeting,
1837
- type:"greeting"});o.setHeading(o.heading);o.setBrandColor(N);h();B=A=null};this.setTheme=function(aa){R=aa;R=typeof R!=="string"?"light":R.toLowerCase();R==="dark"?o.dom.classList.add("pai-dark"):o.dom.classList.remove("pai-dark")};this.setBrandColor=function(aa){N=aa;if(aa=o.dom.querySelector(".pai-heading")){aa.style.backgroundColor=null;aa.style.backgroundImage=null;aa.classList.remove("pai-branded")}n&&n.classList.remove("pai-branded");s.style.backgroundColor=null;if(N){var na=l(N,-30);if(aa){aa.style.backgroundColor=
1838
- N;aa.style.backgroundImage="linear-gradient(to right, "+N+", "+na+")";aa.classList.add("pai-branded")}n&&aa&&n.classList.add("pai-branded");s.style.backgroundColor=N}};this.setHeading=function(aa){var na=o.dom.querySelector(".pai-heading");if(aa){if(na===null){na=document.createElement("div");na.classList.add("pai-heading");o.dom.prepend(na);g()}na.innerText=aa}else if(na!==null){na.remove();g()}};this.send=function(){if(t.value!=="")if(!o.isLoading()){if(w.classList.contains("pai-recording")){ea.stop();
1839
- w.classList.toggle("pai-recording")}o.onSend&&o.onSend(t.value);o.add({message:t.value});X=[];var aa={};aa.message=t.value;if(A)aa.threadId=A;var na="/profound-ai/chat";if(b()){aa.agentData=a();aa.agentFile=Ext.getCmp("centerPanel").getActiveTab().title.replace(/\*/g,"").trim();M=pui.streamingModelList.includes(aa.agentData.aiAgent.model);na="/ide/profound-ai/chat"}else aa.agent=o.agent;var ma=o.data;if(typeof ma==="function")ma=ma();if(o.data)aa.data=ma;t.value="";g();t.focus();o.showLoader();ma=
1840
- {"Content-Type":"application/json"};if(M){ma.Connection="keep-alive";ma["Response-Type"]="stream"}if(pui.appJob&&pui.appJob.authToken)ma.Authorization="Bearer "+pui.appJob.authToken;else if(Y){var sa=Y;if(typeof sa==="function")sa=sa();ma.Authorization="Bearer "+sa}fetch(K+na,{method:"POST",headers:ma,body:JSON.stringify(aa)}).then(function(qa){return M?qa.body.getReader():qa.json()}).then(function(qa){M?e(qa):f(qa)})["catch"](function(qa){o.hideLoader();o.add({message:"Error: "+qa.message,type:"error"})})}};
1841
- this.poll=function(){if(!(!A||!B||!G)){var aa={};aa.threadId=A;aa.runId=B;aa.modelKey=G;var na="/profound-ai/poll";if(b())na="/ide/profound-ai/poll";fetch(K+na,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(aa)}).then(function(ma){return ma.json()}).then(function(ma){f(ma)})["catch"](function(ma){o.hideLoader();o.add({message:"Error: "+ma.message,type:"error"})})}};this.showLoader=function(aa){aa||(aa=C);E.innerText=aa;if(!o.isLoading()){M?o.add({message:Q,type:"agent-response"}):
1842
- r.appendChild(D);h()}r.scrollTop=r.scrollHeight};this.hideLoader=function(){if(o.isLoading()){if(M)for(var aa=r.querySelectorAll(".pai-inline-loader"),na=aa.length-1;na>=0;na--)aa[na].parentNode.removeChild(aa[na]);else r.removeChild(D);h()}};this.isLoading=function(){if(M)return r.querySelectorAll(".pai-inline-loader").length>0;return D.parentNode===r};this.destroy=function(){if(o.dom){o.dom.parentNode.removeChild(o.dom);o.dom=null}};this.removeEmbedIcon=function(){profound.ai.removeEmbedIcon()}};
1836
+ Pa.top-ga.offsetHeight-5+"px";ga.addEventListener("mouseenter",function(){clearTimeout(ua)});ga.addEventListener("mouseleave",function(){Ka()})}});qa.addEventListener("mouseleave",function(){ua=setTimeout(Ka,100)})});if(Z.replace)(Z=r.lastChild)&&Z.classList.contains("pai-agent-response")&&Z.parentNode.removeChild(Z)}else ma.innerText=na;r.appendChild(ma);r.scrollTop=r.scrollHeight};this.clear=function(){w.classList.contains("pai-recording")&&ea.stop();t.value="";r.innerHTML="";o.greeting&&o.add({message:o.greeting,
1837
+ type:"greeting"});o.setHeading(o.heading);o.setBrandColor(Q);h();B=A=null};this.setTheme=function(Z){L=Z;L=typeof L!=="string"?"light":L.toLowerCase();L==="dark"?o.dom.classList.add("pai-dark"):o.dom.classList.remove("pai-dark")};this.setBrandColor=function(Z){Q=Z;if(Z=o.dom.querySelector(".pai-heading")){Z.style.backgroundColor=null;Z.style.backgroundImage=null;Z.classList.remove("pai-branded")}n&&n.classList.remove("pai-branded");s.style.backgroundColor=null;if(Q){var na=l(Q,-30);if(Z){Z.style.backgroundColor=
1838
+ Q;Z.style.backgroundImage="linear-gradient(to right, "+Q+", "+na+")";Z.classList.add("pai-branded")}n&&Z&&n.classList.add("pai-branded");s.style.backgroundColor=Q}};this.setHeading=function(Z){var na=o.dom.querySelector(".pai-heading");if(Z){if(na===null){na=document.createElement("div");na.classList.add("pai-heading");o.dom.prepend(na);g()}na.innerText=Z}else if(na!==null){na.remove();g()}};this.send=function(){if(t.value!=="")if(!o.isLoading()){if(w.classList.contains("pai-recording")){ea.stop();
1839
+ w.classList.toggle("pai-recording")}o.onSend&&o.onSend(t.value);o.add({message:t.value});W=[];var Z={};Z.message=t.value;if(A)Z.threadId=A;var na="/profound-ai/chat";if(b()){Z.agentData=a();Z.agentFile=Ext.getCmp("centerPanel").getActiveTab().title.replace(/\*/g,"").trim();N=pui.streamingModelList.includes(Z.agentData.aiAgent.model);na="/ide/profound-ai/chat"}else Z.agent=o.agent;var ma=o.data;if(typeof ma==="function")ma=ma();if(o.data)Z.data=ma;t.value="";g();t.focus();o.showLoader();ma={"Content-Type":"application/json"};
1840
+ if(N){ma.Connection="keep-alive";ma["Response-Type"]="stream"}if(pui.appJob&&pui.appJob.authToken)ma.Authorization="Bearer "+pui.appJob.authToken;else if(ca){var sa=ca;if(typeof sa==="function")sa=sa();ma.Authorization="Bearer "+sa}fetch(K+na,{method:"POST",headers:ma,body:JSON.stringify(Z)}).then(function(qa){return N?qa.body.getReader():qa.json()}).then(function(qa){N?e(qa):f(qa)})["catch"](function(qa){o.hideLoader();o.add({message:"Error: "+qa.message,type:"error"})})}};this.poll=function(){if(!(!A||
1841
+ !B||!G)){var Z={};Z.threadId=A;Z.runId=B;Z.modelKey=G;var na="/profound-ai/poll";if(b())na="/ide/profound-ai/poll";fetch(K+na,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(Z)}).then(function(ma){return ma.json()}).then(function(ma){f(ma)})["catch"](function(ma){o.hideLoader();o.add({message:"Error: "+ma.message,type:"error"})})}};this.showLoader=function(Z){Z||(Z=C);E.innerText=Z;if(!o.isLoading()){N?o.add({message:T,type:"agent-response"}):r.appendChild(D);h()}r.scrollTop=
1842
+ r.scrollHeight};this.hideLoader=function(){if(o.isLoading()){if(N)for(var Z=r.querySelectorAll(".pai-inline-loader"),na=Z.length-1;na>=0;na--)Z[na].parentNode.removeChild(Z[na]);else r.removeChild(D);h()}};this.isLoading=function(){if(N)return r.querySelectorAll(".pai-inline-loader").length>0;return D.parentNode===r};this.destroy=function(){if(o.dom){o.dom.parentNode.removeChild(o.dom);o.dom=null}};this.removeEmbedIcon=function(){profound.ai.removeEmbedIcon()}};
1843
1843
  profound.ai.dt=function(b){if(!document.querySelector('link[href="'+b+'"]')){var a=document.createElement("link");a.rel="stylesheet";a.href=b;document.head.appendChild(a)}};profound.ai.bp=function(b,a){if(document.querySelector('script[src="'+b+'"]'))typeof a==="function"&&a();else{var c=document.createElement("script");c.type="text/javascript";c.src=b;c.onload=function(){typeof a==="function"&&a()};document.head.appendChild(c)}};
1844
1844
  profound.ai.startAgent=function(b,a){b||(b={});var c="";if(b.server)c=b.server;if(!a&&b.agent)fetch(c+"/profound-ai/attributes",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({agent:b.agent})}).then(function(e){return e.json()}).then(function(e){if(e.status==="error")throw Error(e.message);e=e.attributes;for(var f in e)if(b[f]===undefined)b[f]=e[f];profound.ai.startAgent(b,true)})["catch"](function(e){throw Error("Unable to start AI Agent: "+e.message);});else{if(!b.container)b.container=
1845
1845
  document.body;b.stream&&profound.ai.bp(c+"/marked/marked.min.js");profound.ai.dt(c+"/profoundui/proddata/css/markdown.css");profound.ai.dt(c+"/profoundui/proddata/css/profoundai.css");profound.ai.agent&&profound.ai.agent.destroy();if(b.embed){if(!profound.ai.embedIcon){profound.ai.embedIcon=document.createElement("div");profound.ai.embedIcon.classList.add("pai-embed-icon");profound.ai.embedIcon.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0z" fill="none"/><path d="M21 6h-2v9H6v2c0 .55.45 1 1 1h11l4 4V7c0-.55-.45-1-1-1zm-4 6V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v14l4-4h10c.55 0 1-.45 1-1z"/></svg>';
@@ -1855,7 +1855,7 @@ window.postTo=function(b){b||pui.alert("postTo Error: URL not specified.");var a
1855
1855
  window.changeElementClass=function(b,a){var c=document.getElementById(b);if(c==null)return"";c.className=a};window.newElement=Yc;window.preventEvent=vb;window.setTab=function(b,a){var c=Bb(b);if(c==null||c.setTab==null)Zc[b]=a;else c.setTab(a)};window.ltrim=Ub;window.rtrim=Pb;window.trim=Lb;window.attachCalendar=function(b,a){var c=document.getElementById(b);c!=null&&Ld(c,a)};window.createNamedElement=Yb;window.getInnerText=Oc;
1856
1856
  window.setDOMAttribute=function(b,a,c){b=typeof b=="string"?document.getElementById(b):b;if(b!=null)try{b[a]=c}catch(e){}};
1857
1857
  window.getActualStyle=function(b,a){for(var c=a.replace(/ /g,"-"),e="",f=false,h=0;h<a.length;h++){var g=a.substr(h,1);if(f){g=g.toUpperCase();f=false}if(g==" ")f=true;else e+=g}f="";if(b.currentStyle)f=b.currentStyle[e];else if(window.getComputedStyle)f=document.defaultView.getComputedStyle(b,null).getPropertyValue(c);if(a.indexOf("color")>=0){if(f.substr(0,1)=="#")f=f.toUpperCase();if(f.substr(0,4)=="rgb("&&f.substr(f.length-1,1)==")"){f=f.substr(4,f.length-5);f=f.replace(/ /g,"");c=f.split(",");
1858
- f="#";for(h=0;h<c.length;h++){e=Number(c[h]).toString(16).toUpperCase();if(e.length==1)e="0"+e;f+=e}}}return f};window.addEvent=T;window.removeEvent=ac;window.getMouseX=$c;window.getMouseY=ad;window.showErrors=function(){if(Ua.length==0)alert("No errors have been reported.");else for(var b,a=0;a<Ua.length;a++){b=Ua[a];b="Operation: "+b.Fl+"\nId: "+b.id+"\n\nMessage: "+b.text+"\n"+b.um;alert(b)}};window.presskey=function(b){Vb(b)};window.pressKey=Vb;window.pressKEY=function(b){Vb(b)};
1858
+ f="#";for(h=0;h<c.length;h++){e=Number(c[h]).toString(16).toUpperCase();if(e.length==1)e="0"+e;f+=e}}}return f};window.addEvent=S;window.removeEvent=ac;window.getMouseX=$c;window.getMouseY=ad;window.showErrors=function(){if(Ua.length==0)alert("No errors have been reported.");else for(var b,a=0;a<Ua.length;a++){b=Ua[a];b="Operation: "+b.Fl+"\nId: "+b.id+"\n\nMessage: "+b.text+"\n"+b.um;alert(b)}};window.presskey=function(b){Vb(b)};window.pressKey=Vb;window.pressKEY=function(b){Vb(b)};
1859
1859
  window.Presskey=function(b){Vb(b)};window.PressKey=function(b){Vb(b)};window.PRESSKEY=function(b){Vb(b)};window.applyProperty=Mc;window.show_calendar=Gd;window.hide_calendar=Bc;window.calendar_select=Kd;
1860
1860
  window.currentDate=function(b,a){if(b==null||b=="Y")slashes=true;if(Eb()){var c;c=slashes?"DD/DD/DD":"DDDDDD";if(a)c+="DD";return c}else{c="";if(pui&&pui.appJob){if(pui.appJob.sysTime==0)return"";c=new Date(pui.appJob.sysTime*1E3);var e=pui.appJob.dateFormat;if(a){if(e=="*MDY")e="*USA";if(e=="*DMY")e="*EUR";if(e=="*YMD")e="*ISO"}e=pui.formatting.keywords.DATFMT[e].fb.replace(/\B/g,pui.appJob.dateSeparator);c=c.format(e,"en_US")}else{c=new Date;e=2E3;if(a)e=0;c=(parseInt(c.getMonth(),10)+1<10?"0":
1861
1861
  "")+(parseInt(c.getMonth(),10)+1)+"/"+(parseInt(c.getDate(),10)<10?"0":"")+c.getDate()+"/"+(parseInt(c.getFullYear(),10)-e<10?"0":"")+(parseInt(c.getFullYear(),10)-e)}if(b!=null&&b!="Y"){e="/";if(pui!=null&&pui.appJob!=null&&pui.appJob.dateSeparator!=null)e=pui.appJob.dateSeparator;c=c.replace(e,"");c=c.replace(e,"");if(c.substr(0,1)=="0")c=" "+c.substr(1)}return c}};