profoundjs 7.22.0 → 7.22.2

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.
Files changed (25) hide show
  1. package/htdocs/profoundui/proddata/js/atrium.js +1 -1
  2. package/htdocs/profoundui/proddata/js/designer.js +1087 -1087
  3. package/htdocs/profoundui/proddata/js/genie.js +568 -568
  4. package/htdocs/profoundui/proddata/js/runtime.js +406 -406
  5. package/package.json +1 -1
  6. package/profound.jse +1 -1
  7. package/setup/pjsdist.savf +0 -0
  8. package/htdocs/profoundui/proddata/css/plogic.css +0 -4976
  9. package/htdocs/profoundui/proddata/fonts/gudea-v10-latin-700.eot +0 -0
  10. package/htdocs/profoundui/proddata/fonts/gudea-v10-latin-700.svg +0 -276
  11. package/htdocs/profoundui/proddata/fonts/gudea-v10-latin-700.ttf +0 -0
  12. package/htdocs/profoundui/proddata/fonts/gudea-v10-latin-700.woff +0 -0
  13. package/htdocs/profoundui/proddata/fonts/gudea-v10-latin-700.woff2 +0 -0
  14. package/htdocs/profoundui/proddata/fonts/gudea-v10-latin-italic.eot +0 -0
  15. package/htdocs/profoundui/proddata/fonts/gudea-v10-latin-italic.svg +0 -301
  16. package/htdocs/profoundui/proddata/fonts/gudea-v10-latin-italic.ttf +0 -0
  17. package/htdocs/profoundui/proddata/fonts/gudea-v10-latin-italic.woff +0 -0
  18. package/htdocs/profoundui/proddata/fonts/gudea-v10-latin-italic.woff2 +0 -0
  19. package/htdocs/profoundui/proddata/fonts/gudea-v10-latin-regular.eot +0 -0
  20. package/htdocs/profoundui/proddata/fonts/gudea-v10-latin-regular.svg +0 -281
  21. package/htdocs/profoundui/proddata/fonts/gudea-v10-latin-regular.ttf +0 -0
  22. package/htdocs/profoundui/proddata/fonts/gudea-v10-latin-regular.woff +0 -0
  23. package/htdocs/profoundui/proddata/fonts/gudea-v10-latin-regular.woff2 +0 -0
  24. package/htdocs/profoundui/proddata/fonts/material_icons.woff2 +0 -0
  25. package/htdocs/profoundui/proddata/js/plogic.grids.js +0 -326
@@ -4,10 +4,10 @@ pui.Mc=null;pui.Il=null;pui.Jl=null;pui.defaultDateFormat="MM/DD/YY";pui.is_touc
4
4
  pui.Sq={"*ISO":1,"*USA":2,"*EUR":3,"*JIS":4,"*MDY":5,"*DMY":6,"*YMD":7,"*JUL":8,"*JOB":10};pui.Tq={"/":1,"-":2,".":3,",":4," ":5,"*BLANK":5,"*JOB":7};pui.Uq={"*ISO":1,"*USA":2,"*EUR":3,"*JIS":4,"*HMS":9};pui.Vq={".":3,",":4," ":5,"*BLANK":5,":":6,"*JOB":7};
5
5
  pui.iB=["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.ea=false;pui.oA=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.kq=0;pui["session timeout retries"]=0;pui.hA=0;pui.pj=false;pui.bA="profoundjs.com";pui.Sz="http://www.w3.org/2000/svg";pui.Pp={};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;
7
- pui["always allow field exit"]=false;pui.dup={};pui.dup["char"]="\u25cf";pui.dup.keyCode=45;pui.dup.shift=true;pui.dup.ctrl=false;pui.dup.alt=false;pui.wf={bB:{},oB:{},plugins:{},addPlugin:function(b){var a=pui.wf.plugins,c=b.category;a[c]||(a[c]={});a[c][b.name]=b}};pui["add combo style properties to choice list"]=true;pui.viewdesigner=false;pui.nodedesigner=false;if(window.pui_cloud_designer)pui.nodedesigner=true;else if(location.pathname.match(/^\/ide/i))pui.nodedesigner=true;else{var nb=location.pathname.match(/\/([^/]+)\/?$/i);if(nb&&nb[1].toLowerCase()==="viewdesigner")pui.viewdesigner=true;else if(nb&&nb[1].toLowerCase()==="nodedesigner")pui.nodedesigner=true}pui.ao=false;window.pui||(window.pui={});window.pui.baseVersion="6";window.pui.fixPackVersion="32.0";window.pui.version=window.pui.baseVersion+"."+window.pui.fixPackVersion;function tb(b){if(b.touches!=null&&b.touches.length==1)return b.touches[0].target;b=b.target;if(b.nodeType==3)b=b.parentNode;return b}function ub(b){b.preventDefault();b.stopPropagation()}pui.Le=function(b){ub(b);return false};function vb(b){for(var a=Array(256),c=0;c<=255;c++)a[c]=c;wb(a,b)}
7
+ pui["always allow field exit"]=false;pui.dup={};pui.dup["char"]="\u25cf";pui.dup.keyCode=45;pui.dup.shift=true;pui.dup.ctrl=false;pui.dup.alt=false;pui.wf={bB:{},oB:{},plugins:{},addPlugin:function(b){var a=pui.wf.plugins,c=b.category;a[c]||(a[c]={});a[c][b.name]=b}};pui["add combo style properties to choice list"]=true;pui.viewdesigner=false;pui.nodedesigner=false;if(window.pui_cloud_designer)pui.nodedesigner=true;else if(location.pathname.match(/^\/ide/i))pui.nodedesigner=true;else{var nb=location.pathname.match(/\/([^/]+)\/?$/i);if(nb&&nb[1].toLowerCase()==="viewdesigner")pui.viewdesigner=true;else if(nb&&nb[1].toLowerCase()==="nodedesigner")pui.nodedesigner=true}pui.ao=false;window.pui||(window.pui={});window.pui.baseVersion="6";window.pui.fixPackVersion="33.0";window.pui.version=window.pui.baseVersion+"."+window.pui.fixPackVersion;function tb(b){if(b.touches!=null&&b.touches.length==1)return b.touches[0].target;b=b.target;if(b.nodeType==3)b=b.parentNode;return b}function ub(b){b.preventDefault();b.stopPropagation()}pui.Le=function(b){ub(b);return false};function vb(b){for(var a=Array(256),c=0;c<=255;c++)a[c]=c;wb(a,b)}
8
8
  function zb(b){var a;if(typeof b=="string")b=Ab(b);if(b==null)return-1;if(b.tagName!="INPUT"||!pui.gj(b))return-1;if(document.selection!=null){if(b==null)b=document.activeElement;a=document.selection.createRange()}var c=0;if(b!=null&&a!=null&&b.createTextRange!=null)try{var e=b.createTextRange();if(e){for(;a.compareEndPoints("StartToStart",e)>0;){e.moveStart("character",1);c++}return c}}catch(f){return-1}else if(b!=null)try{if(b.selectionStart!=null)return b.selectionStart}catch(g){}return-1}
9
9
  function Db(){if(pui.ide&&pui.ide.designerId)return true;if(Hb==null)return false;if(Hb.designer==null)return false;return true}
10
- function Ib(b,a){var c,e="",f="",g,h=false;if(b.Ff()!=200){c="HTTP "+b.Ff();e=b.Ts()+"."}else{h=b.yc().indexOf("<?xml")!=-1;if(h==false)try{g=eval("("+b.yc()+")");if(g.success!=true){c=g.errorId;e=g.errorText;f=g.errorText2}}catch(l){c="CPF9897";e="The server response is missing or invalid."}}if(c!=null){Ma.push({Ql:a,id:c,text:e,Fm:f});return false}else return h==true?b.yc():g.response}
10
+ function Ib(b,a){var c,e="",f="",g,h=false;if(b.Gf()!=200){c="HTTP "+b.Gf();e=b.Ts()+"."}else{h=b.yc().indexOf("<?xml")!=-1;if(h==false)try{g=eval("("+b.yc()+")");if(g.success!=true){c=g.errorId;e=g.errorText;f=g.errorText2}}catch(l){c="CPF9897";e="The server response is missing or invalid."}}if(c!=null){Ma.push({Ql:a,id:c,text:e,Fm:f});return false}else return h==true?b.yc():g.response}
11
11
  pui.Ur=function(b,a,c){function e(g,h){var l=Kb(b.style[g]),n=l.lastIndexOf(")");if(n!=-1){l=l.substr(0,n);l+=h+"px)";c.style[g]=l}}var f=true;if(c==null){f=false;c=document.createElement("div");c.style.position="absolute";c.style.borderStyle="none";c.style.backgroundColor="transparent"}c.innerHTML='<label title="'+b.title+'" for="'+b.id+'">'+a+"</label>";c.className="label-for";a=Kb(b.className.split(" ")[0]);a!=""&&pui.P(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
13
  b.style.backgroundColor;if(!f){c.style.cursor=b.style.cursor?b.style.cursor:"pointer";c.nt=true;b.Qd!=null&&b.parentNode.removeChild(b.Qd);b.Qd=c;b.Jb=[];b.Jb.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.Us(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=
@@ -20,22 +20,22 @@ String.prototype.includes||Object.defineProperty(String.prototype,"includes",{va
20
20
  pui.Xi=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 g in e){f=e[g];if(g=="name")c.name=a;else if(typeof f=="object"&&f.length!=null){c[g]=[];for(var h=0;h<f.length;h++)c[g].push(f[h])}else c[g]=e[g]}}}}return c};pui.oe=function(b,a){for(var c=0;c<b.length;c++)if(b[c]==a)return c;return-1};pui.Wz=function(b,a){for(var c=0;c<b.length;c++)a(b[c])};
21
21
  pui.ae=function(b,a){if(a==null)a=0;var c=parseInt(b,10);if(isNaN(c))c=a;return c};
22
22
  pui.Ie=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)||ub(a)}}();
23
- function wb(b,a){if(P=="genie"&&pui.D.yA(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.Of&&Event.rk)){c=true;break a}a.preventDefault();a.stopPropagation();c=false}return c}var f,g;c=a.keyCode;e=a.target;var h=pui.gj(e);if(pui.D.Nd){if(pui.D.config.iA){if(a.Of)f=a.Of&&Event.rk;if(!a.Of)f=a.shiftKey;f?keyAhead.record("shift"+c):keyAhead.record(c)}ub(a);return false}lastActiveElement=e;if(c==9){if(a.Of)f=a.Of&&Event.rk;if(!a.Of)f=a.shiftKey;if(f=
23
+ function wb(b,a){if(P=="genie"&&pui.D.yA(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.Pf&&Event.rk)){c=true;break a}a.preventDefault();a.stopPropagation();c=false}return c}var f,g;c=a.keyCode;e=a.target;var h=pui.gj(e);if(pui.D.Nd){if(pui.D.config.iA){if(a.Pf)f=a.Pf&&Event.rk;if(!a.Pf)f=a.shiftKey;f?keyAhead.record("shift"+c):keyAhead.record(c)}ub(a);return false}lastActiveElement=e;if(c==9){if(a.Pf)f=a.Pf&&Event.rk;if(!a.Pf)f=a.shiftKey;if(f=
24
24
  f?goPrev(e,0,true):goNext(e,true)){ub(a);return false}}else if(c==35&&h){if(e.value!=Ob(e.value))e.value=Ob(e.value)}else if(c==37)if(h){g=zb(e);if(g==0){goPrev(e);ub(a);return false}}else{if(e.tagName!="TEXTAREA"){goPrev(e);ub(a);return false}}else if(c==38&&e.tagName!="SELECT"&&e.tagName!="TEXTAREA"){if(e.zb==null||e.zb.fj()==false)if(!pui.D.config.mh){goUp(e);ub(a);return false}}else if(c==39)if(h){maxLength=Number(e.getAttribute("maxLength"));g=zb(e);f=e.value.length;if(g>=f){goNext(e);ub(a);
25
25
  return false}}else{if(e.tagName!="TEXTAREA"){goNext(e);ub(a);return false}}else if(c==40&&e.tagName!="SELECT"&&e.tagName!="TEXTAREA"){if(e.zb==null||e.zb.fj()==false)if(!pui.D.config.mh){goDown(e);ub(a);return false}}else if(c==45&&pui.is_ie&&h&&P=="genie"&&a.shiftKey!=true&&a.ctrlKey!=true){f=e.selectionEnd;g=e.value.substring(0,f);g+=Ob(e.value.substring(f));e.value=g;e.setSelectionRange(f,f)}if(h&&pui.Kx(a)){pui.tq(e);if(c==pui["field exit minus key"]&&Pb(e,true)){ub(a);return false}h=e.getAttribute("num");
26
- if(c==pui["field exit minus key"]&&Pb(e,true)&&!pui["disable field exit on alphanumeric"]){ub(a);return false}else if(pui["disable field exit on alphanumeric"]&&(h==null||h=="000"||h=="010"))return false;Pb(e);ub(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.Of&&Event.rk))return true;ub(a);return false}
26
+ if(c==pui["field exit minus key"]&&Pb(e,true)&&!pui["disable field exit on alphanumeric"]){ub(a);return false}else if(pui["disable field exit on alphanumeric"]&&(h==null||h=="000"||h=="010"))return false;Pb(e);ub(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.Pf&&Event.rk))return true;ub(a);return false}
27
27
  function Pb(b,a){if(b.readOnly==true)return false;var c,e=false,f=b.getAttribute("signedNumeric"),g=b.getAttribute("num");g=g==="011"||g==="101"||g==="111";var h=false;if(a&&(f==null||f!="Y")&&!g)return false;c=b.ko;if(pui.is_touch&&!pui.is_mouse_capable)c=zb(b);if(c==null)return false;if(c<0)return false;if(c>=0){h=b.value!==b.value.substr(0,c);b.value=b.value.substr(0,c);c=b.getAttribute("blankFill");if(f!=null&&f=="Y"||g)c="Y";if(c!=null&&c=="Y"){e=true;fill=" "}c=
28
28
  b.getAttribute("zeroFill");if(c!=null&&c=="Y"){e=true;fill="00000000000000000000000000000000000000000000000000000000000000000000000000000000"}c=b.getAttribute("maxLength");if(e&&c!=null){e=fill+Tb(b.value);e=e.substr(e.length-c);if(f!=null&&f=="Y"||a&&g)if(e.substr(e.length-1)!="-"){e+=a?"-":" ";e=e.substr(1)}b.value=e}}h&&typeof b.onchange==="function"&&b.onchange();b.getAttribute("autoenter")==="Y"?Ub("enter"):goNext(b);return true}
29
- pui.Qr=function(b){if(!(pui.is_touch&&!pui.is_mouse_capable||pui.na))if(pui.rj==null)if(pui.confirmOnClose&&!pui.skipConfirm)if(!(P=="genie"&&pui.OA())){for(var a=window;a!=null&&a!=a.parent;){a=a.parent;if(pui.sg(a))return;try{if(typeof a.pui!="undefined")return}catch(c){}}if(pui.D!=null||!pui.designer.Wm||P=="dspf"&&pui.designer.Wm&&typeof pui.ide.isDirty==="function"&&pui.ide.isDirty()){a=pui.ao?pui.closeMessage:pui.getLanguageText("runtimeMsg","closeMessage");if(P=="genie"&&pui.D.config.closeMessage!=
29
+ pui.Qr=function(b){if(!(pui.is_touch&&!pui.is_mouse_capable||pui.na))if(pui.rj==null)if(pui.confirmOnClose&&!pui.skipConfirm)if(!(P=="genie"&&pui.OA())){for(var a=window;a!=null&&a!=a.parent;){a=a.parent;if(pui.ug(a))return;try{if(typeof a.pui!="undefined")return}catch(c){}}if(pui.D!=null||!pui.designer.Wm||P=="dspf"&&pui.designer.Wm&&typeof pui.ide.isDirty==="function"&&pui.ide.isDirty()){a=pui.ao?pui.closeMessage:pui.getLanguageText("runtimeMsg","closeMessage");if(P=="genie"&&pui.D.config.closeMessage!=
30
30
  null&&pui.D.config.closeMessage!="")a=pui.D.config.closeMessage;return b.returnValue=a}}};
31
31
  pui.unload=function(){var b=false;if(pui.D!==null&&pui.hardshutdownOnClose)b=true;if((pui.shutdownOnClose||b)&&pui.rj==null){pui.halted=true;window.puihalted=true;pui["keep frames"]||pui.rt();var a;a=pui.D==null?Vb("PUI0001200.pgm"):Vb("PUI0002110.pgm");if(pui.psid!=null&&pui.psid!="")a+="/"+pui.psid;if(pui.overrideSubmitUrl!=null&&typeof pui.overrideSubmitUrl=="function")try{a=pui.overrideSubmitUrl(a)}catch(c){}if(navigator!=null&&typeof navigator.sendBeacon=="function"&&typeof window.Blob=="function"){b=
32
- new Blob([(b?"hardshutdown=1":"shutdown=1")+(pui.isCloud?"&workspace_id="+pui.cloud.ws.id:"")],{type:"application/x-www-form-urlencoded"});navigator.sendBeacon(pui.pg(a),b)}else{b=b?{hardshutdown:"1"}:{shutdown:"1"};if(pui.isCloud)b.workspace_id=pui.cloud.ws.id;Wb({url:pui.pg(a),method:"post",suppressAlert:true,params:b})}pui.shutdownOnClose=false}};
32
+ new Blob([(b?"hardshutdown=1":"shutdown=1")+(pui.isCloud?"&workspace_id="+pui.cloud.ws.id:"")],{type:"application/x-www-form-urlencoded"});navigator.sendBeacon(pui.qg(a),b)}else{b=b?{hardshutdown:"1"}:{shutdown:"1"};if(pui.isCloud)b.workspace_id=pui.cloud.ws.id;Wb({url:pui.qg(a),method:"post",suppressAlert:true,params:b})}pui.shutdownOnClose=false}};
33
33
  pui.Mr=function(){if(window.addEventListener){window.addEventListener("beforeunload",pui.Qr,false);if(!pui.designer.Wm||pui.D!=null)window.addEventListener("unload",pui.unload,false)}else if(window.attachEvent){window.attachEvent("onbeforeunload",pui.Qr);if(!pui.designer.Wm||pui.D!=null)window.attachEvent("onunload",pui.unload)}};
34
34
  pui.Yk=function(b,a,c){var e=document.createElement("form");e.action=Vb("PUI0009106.pgm");if(pui.pjsServer)e.action="/profoundui/PUI0009106.pgm";e.action+="?contentType="+b+"&fileName="+a;if(pui.isCloud)e.action+="&workspace_id="+pui.cloud.ws.id;e.method="post";b=Xb("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.P=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.ca=function(b,a){b.className=pui.Up(b.className,a)};pui.Up=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
36
  pui.hz=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.k!=null)c=c.k.getBox();c.emptyText=a;pui.se(c);T(c,"focus",function(e){e=tb(e);if(e.value==e.emptyText){e.value="";pui.ca(e,"empty-text")}});T(c,"blur",function(e){pui.se(tb(e))})}};
37
37
  pui.se=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.P(b,"empty-text"):pui.ca(b,"empty-text")}};
38
- pui.jw=function(){function b(){if(e)Atrium.resetInactivityTimeout();else pui["client side timeout"]==true&&pui.jb.Rg.reset();pui.onuseractivity!=null&&pui.onuseractivity()}if(!pui.dy){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.dy=true}}};pui.ua={};
38
+ pui.jw=function(){function b(){if(e)Atrium.resetInactivityTimeout();else pui["client side timeout"]==true&&pui.jb.Sg.reset();pui.onuseractivity!=null&&pui.onuseractivity()}if(!pui.dy){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.dy=true}}};pui.ua={};
39
39
  pui.ua.ut=(new Date).getTime();pui.ua.fk=false;pui.ua.timeout=600;pui.ua.kt=null;pui.ua.oq=function(){if(pui.ua.fk)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.fk){var b=pui.ua.timeout*1E3;b/=4;if(b>3E3)b=3E3;pui.ua.kt=setInterval(pui.ua.check,b);pui.ua.reset();pui.ua.fk=true}};
40
40
  pui.ua.stop=function(){if(pui.ua.fk){clearInterval(pui.ua.kt);pui.ua.fk=false}};pui.ua.reset=function(){pui.ua.ut=(new Date).getTime()};pui.ua.check=function(){if((new Date).getTime()-pui.ua.ut>=pui.ua.timeout*1E3){pui.keepAlive();pui.ua.reset()}};pui.He=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.Zc=function(b,a){var c=0,e=0,f=-1;for(a=a===true&&P=="dspf"&&Hb!=null&&Hb.designer!=null&&Hb.designer.container!=null&&Hb.designer.container.parentNode!=null&&Hb.designer.container.parentNode.parentNode!=null&&Hb.designer.container.parentNode.parentNode.contains(b);b!=null;){var g=true,h=b.offsetLeft,l=b.offsetTop;if(a)if(b.Jx){h=Math.round((b.offsetLeft+b.clientLeft)*Hb.ki);l=Math.round((b.offsetTop+b.clientTop)*Hb.ki);f=1;g=false}else if(f==0){h-=Math.round(b.scrollLeft*Hb.ki);l-=Math.round(b.scrollTop*
@@ -55,28 +55,28 @@ pui.Ss=function(){var b=null,a=null;if(typeof pui["sql time format"]=="string")b
55
55
  pui.Oo=function(b){var a=document.getElementsByTagName("head")[0];if(a==null)return null;var c=pui.Ks();a=a.getElementsByTagName("link");for(var e=0;e<a.length;e++){var f=a[e];if(f.href==b)return f;if(f.href==c+b)return f}return null};pui.Qo=function(b){var a=document.getElementsByTagName("head")[0];if(a==null)return null;var c=pui.Ks();a=a.getElementsByTagName("script");for(var e=0;e<a.length;e++){var f=a[e];if(f.src==b)return f;if(f.src==c+b)return f}return null};
56
56
  pui.ga=function(b){if(typeof b!="string")return b instanceof Array?b:[];if(b=="")return[];var a;if(b.substr(0,1)=="["&&b.substr(b.length-1,1)=="]")try{definedPhrases=["Image","String","Object","Array","Number","Boolean","Date","Function","RegExp","Error"];phrase=b.substring(1,b.length-1);a=definedPhrases.includes(phrase)?Array(b):eval(b)}catch(c){}if(a==null)a=b.split(",");return a};
57
57
  pui.rl=function(b){switch(b){case "number":case "date":case "datetime":case "time":case "email":case "url":case "month":case "tel":case "color":case "datetime-local":case "search":case "week":return true;default:return false}};pui.gj=function(b){if(b.tagName=="INPUT")if(b.type==null||b.type==""||b.type=="text"||pui.rl(b.type)||b.type=="password")return true;return false};
58
- pui.Kx=function(b){var a=b.keyCode,c=pui["field exit key"],e=pui["field exit minus key"];return(a==c||a==e)&&(!b.shiftKey||c==16)&&(!b.ctrlKey||c==17)?true:false};pui.at=function(b){b=b.parentNode;return b!=null&&(!pui.is_old_ie||b.nodeName!="#document-fragment")};pui.mf=function(b){if(!Db()&&(!pui.pj||pui.Z||pui.appJob.auth)&&typeof b=="string"&&b.search("AUTH=")==-1){b+=b.search(/\?/)==-1?"?":"&";b+="AUTH="+encodeURIComponent(pui.Z?pui.Z:pui.appJob.auth)}return b};pui.validateEmail=function(b){return/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(b)};
58
+ pui.Kx=function(b){var a=b.keyCode,c=pui["field exit key"],e=pui["field exit minus key"];return(a==c||a==e)&&(!b.shiftKey||c==16)&&(!b.ctrlKey||c==17)?true:false};pui.at=function(b){b=b.parentNode;return b!=null&&(!pui.is_old_ie||b.nodeName!="#document-fragment")};pui.nf=function(b){if(!Db()&&(!pui.pj||pui.Z||pui.appJob.auth)&&typeof b=="string"&&b.search("AUTH=")==-1){b+=b.search(/\?/)==-1?"?":"&";b+="AUTH="+encodeURIComponent(pui.Z?pui.Z:pui.appJob.auth)}return b};pui.validateEmail=function(b){return/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(b)};
59
59
  pui.o=function(b){return b!=null&&typeof b=="object"&&typeof b.fieldName=="string"};pui.Mb=function(b){return b!=null&&typeof b=="object"&&typeof b.translations=="object"&&b.translations!=null&&typeof b.translations.length=="number"};pui.cc=function(b){return b!=null&&typeof b=="object"&&typeof b.routine=="string"};pui.MA=function(b){return b!=null&&typeof b=="object"&&b.join==true};
60
60
  pui.Fz=function(b,a,c){function e(l){g=setTimeout(function(){g=null;a(l)},c)}function f(){clearTimeout(g);g=null}if(b&&b.addEventListener)if(typeof a=="function"){if(typeof c!="number")c=475;var g;try{b.addEventListener("touchstart",e,false);b.addEventListener("touchend",f,false)}catch(h){}}};pui.dl=function(b){b.checked?b.setAttribute("checked","checked"):b.removeAttribute("checked")};
61
- pui.ji=function(b){b=""+b;b=b.replace(/&/g,"&amp;");b=b.replace(/</g,"&lt;");b=b.replace(/>/g,"&gt;");b=b.replace(/"/g,"&quot;");b=b.replace(/\u001a/g,"&#x25a1;");return b=b.replace(/\u000c/g,"&#x25a1;")};pui.sg=function(b){var a=false;try{a=typeof b.Atrium!="undefined"&&typeof b.Atrium.api!="undefined"}catch(c){}return a};pui.hi=function(b){var a=false;try{if(b.location.host!=null)a=true}catch(c){}return a};
62
- pui.Ig=function(){try{return localStorage!=null&&typeof window.localStorage!="undefined"?true:false}catch(b){return false}};pui.jp=function(){try{return sessionStorage!=null&&typeof window.sessionStorage!="undefined"?true:false}catch(b){return false}};
61
+ pui.ji=function(b){b=""+b;b=b.replace(/&/g,"&amp;");b=b.replace(/</g,"&lt;");b=b.replace(/>/g,"&gt;");b=b.replace(/"/g,"&quot;");b=b.replace(/\u001a/g,"&#x25a1;");return b=b.replace(/\u000c/g,"&#x25a1;")};pui.ug=function(b){var a=false;try{a=typeof b.Atrium!="undefined"&&typeof b.Atrium.api!="undefined"}catch(c){}return a};pui.hi=function(b){var a=false;try{if(b.location.host!=null)a=true}catch(c){}return a};
62
+ pui.Jg=function(){try{return localStorage!=null&&typeof window.localStorage!="undefined"?true:false}catch(b){return false}};pui.jp=function(){try{return sessionStorage!=null&&typeof window.sessionStorage!="undefined"?true:false}catch(b){return false}};
63
63
  pui.Ft=function(b){if(b.substr(0,1)=="#")b=b.toUpperCase();if(b.substr(0,4)=="rgb("&&b.substr(b.length-1,1)==")"){b=b.substr(4,b.length-5);b=b.replace(/ /g,"");var a=b.split(",");b="#";for(var c=0;c<a.length;c++){var e=Number(a[c]).toString(16).toUpperCase();if(e.length==1)e="0"+e;b+=e}}return b};pui.sp=function(b,a){var c;if(b.stack){c=b.toString();var e=b.stack.split("\n");if(e.length>=1)c+=c.indexOf(Kb(e[0]))!=0||e.length<2?" "+Kb(e[0]):" "+Kb(e[1])}else{if(typeof a=="string")c=a;c+=" "+b.toString()}console.log(c)};
64
64
  pui.py=function(b){if(pui.is_chrome&&pui.gj(b)){var a=b.value;b.value="";b.value=a}};
65
65
  pui.jl=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.jl(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.Iw=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.zz=function(){if(!pui.is_mouse_capable)if(pui.Ig()&&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){Zb(b,"mousedown",a);Zb(b,"mousemove",c);return}pui.is_mouse_capable=true;pui.Ig()&&localStorage.setItem("pui-is-mouse-capable","true");Zb(b,"mousedown",a);Zb(b,"mousemove",c)}e=true},e=false;T(b,"mousedown",a);T(b,"mousemove",
67
+ pui.zz=function(){if(!pui.is_mouse_capable)if(pui.Jg()&&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){Zb(b,"mousedown",a);Zb(b,"mousemove",c);return}pui.is_mouse_capable=true;pui.Jg()&&localStorage.setItem("pui-is-mouse-capable","true");Zb(b,"mousedown",a);Zb(b,"mousemove",c)}e=true},e=false;T(b,"mousedown",a);T(b,"mousemove",
68
68
  c)}}};pui.rt=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
- pui.breakMessagesInit=function(){if(!(Db()||pui["brkmsg enable"]!==true))if(!(!pui.Ig()||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"]=
70
+ pui.breakMessagesInit=function(){if(!(Db()||pui["brkmsg enable"]!==true))if(!(!pui.Jg()||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.Ik=0;pui.Sr();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.sg(window.parent)){var c=document.createElement("div");c.id="pui-break-messages";c.style.zIndex=pui.hd++;pui.runtimeContainer.appendChild(c);if(pui.Ig()){Zb(window,"storage",pui.Un);T(window,"storage",pui.Un);b&&pui.Hi(b)}}else{Zb(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.ow()}};
72
+ pui.appJob.user,"[]")}if(window.parent==window||!pui.ug(window.parent)){var c=document.createElement("div");c.id="pui-break-messages";c.style.zIndex=pui.hd++;pui.runtimeContainer.appendChild(c);if(pui.Jg()){Zb(window,"storage",pui.Un);T(window,"storage",pui.Un);b&&pui.Hi(b)}}else{Zb(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.ow()}};
73
73
  pui.Sr=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(g){c=true}if(f==null||typeof f.pop!=="function"){f=[];c=true}e=[];if(pui.oe(f,pui.appJob.user)<0){e.push(pui.appJob.user);c=true}for(var h=0;h<f.length;h++)if(f[h]!==pui.appJob.user){a=Number(localStorage.getItem("brkmsgLastPoll_"+f[h]));if(isNaN(a))a=0;if(Date.now()-a>=pui["brkmsg user timeout"]*1E3){localStorage.removeItem("brkmsgLastPoll_"+f[h]);localStorage.removeItem("brkmsgActivePoller_"+f[h]);localStorage.removeItem("brkmsgMessages_"+
75
75
  f[h]);c=true}else e.push(f[h])}c&&localStorage.setItem("brkmsgUserIds",JSON.stringify(e));return b===pui.appJob.auth};
76
76
  pui.ow=function(){if(!(Db()||pui["brkmsg enable"]!==true)){typeof pui.Tn==="number"&&clearInterval(pui.Tn);pui.Tn=setInterval(function(){if(typeof pui.appJob!=="object"||pui.appJob.user.length<=0||pui.appJob.user==="QTMHHTP1"||pui["brkmsg enable"]!==true)pui.Vn();else{if(pui.Sr()){ac({url:Vb("PUI0009116.PGM"),method:"post",async:true,suppressAlert:true,params:{AUTH:pui.appJob.auth},onfail:function(){pui.Ik++;if(pui.Ik>=pui["brkmsg max errors"]){pui.Vn();console.log("Stopped break-message polling; too many errors.")}},
77
77
  handler:function(c){if(c==null||typeof c!=="object"||c.error){pui.Ik++;pui.Ik>=pui["brkmsg max errors"]&&pui.Vn()}else if(c.success&&c.messages!=null&&typeof c.messages.pop==="function"&&c.messages.length>0){var e;try{e=JSON.parse(localStorage.getItem("brkmsgMessages_"+pui.appJob.user))}catch(f){console.log(f)}if(e==null||typeof e.pop!=="function")e=[];e=e.concat(c.messages);if(pui["brkmsg max messages"]>0&&e.length>pui["brkmsg max messages"])e=e.slice(e.length-pui["brkmsg max messages"],e.length);
78
- if(window!=window.parent&&pui.sg(window.parent))typeof window.parent.Atrium["brkmsg handler"]!=="function"&&window.parent.Atrium.api.breakMessagesShow(e,pui.appJob.user);else pui.Hi(e);localStorage.setItem("brkmsgMessages_"+pui.appJob.user,JSON.stringify(e))}}});localStorage.setItem("brkmsgLastPoll_"+pui.appJob.user,Date.now())}if(pui.Ig()&&typeof window.addEventListener==="undefined"&&typeof JSON==="object")try{var b=JSON.parse(localStorage.getItem("brkmsgMessages_"+pui.appJob.user));window!=window.parent&&
79
- pui.sg(window.parent)?window.parent.Atrium.api.breakMessagesShow(b,pui.appJob.user):pui.Hi(b)}catch(a){console.log(a)}}},pui["brkmsg poll interval"]*1E3)}};pui.Vn=function(){clearInterval(pui.Tn);Zb(window,"storage",pui.Un)};
78
+ if(window!=window.parent&&pui.ug(window.parent))typeof window.parent.Atrium["brkmsg handler"]!=="function"&&window.parent.Atrium.api.breakMessagesShow(e,pui.appJob.user);else pui.Hi(e);localStorage.setItem("brkmsgMessages_"+pui.appJob.user,JSON.stringify(e))}}});localStorage.setItem("brkmsgLastPoll_"+pui.appJob.user,Date.now())}if(pui.Jg()&&typeof window.addEventListener==="undefined"&&typeof JSON==="object")try{var b=JSON.parse(localStorage.getItem("brkmsgMessages_"+pui.appJob.user));window!=window.parent&&
79
+ pui.ug(window.parent)?window.parent.Atrium.api.breakMessagesShow(b,pui.appJob.user):pui.Hi(b)}catch(a){console.log(a)}}},pui["brkmsg poll interval"]*1E3)}};pui.Vn=function(){clearInterval(pui.Tn);Zb(window,"storage",pui.Un)};
80
80
  pui.Sn=function(b){if(!(typeof pui.appJob!=="object"||pui.appJob.user.length<=0||pui.appJob.user==="QTMHHTP1")){ub(b);if(!(b.keyCode&&b.keyCode!=13)){b=tb(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.Hi(a)}}};
81
81
  pui.Hi=function(b){if(typeof pui["brkmsg handler"]=="function")return pui["brkmsg handler"](b);pui.Rr=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.Rr=true;pui.hd+=2;a.style.zIndex=pui.hd;for(var c=10,e=10,f=0;f<b.length;f++){var g=b[f];g.to=pui.appJob.user;var h=document.createElement("div");h.style.top=c+"px";h.style.left=e+"px";h.className="msg-wrap";var l=document.createElement("div");
82
82
  l.className="msg-titlewrap";h.appendChild(l);var n=document.createElement("div");n.className="title";l.appendChild(n);var m=document.createElement("button");m.className="closeImg";m.msgIdx=f;l.appendChild(m);T(m,"click",pui.Sn);T(m,"keydown",pui.Sn);l=document.createElement("div");l.className="msg-body";if(typeof pui.breakMessageFormat==="function"){var r={title:"",body:""};pui.breakMessageFormat(g,r);n.innerHTML=r.title;l.innerHTML=r.body}else try{n.innerHTML=g.date+" "+g.time+"<br>"+g.jobNum+"/"+
@@ -87,7 +87,7 @@ pui.yr=function(b,a,c,e){if(b!=null){var f=b["field type"]||b.field_type;if(f!=n
87
87
  if(m!=null&&m.length==2)n=m[1];for(m=0;m<f.length;m++){var r=f[m],p=false;if(typeof f[m]=="object"&&f[m]!=null&&typeof f[m].condition=="function"){if(f[m].condition(b,c,e)){r=f[m].script;p=true}}else if(typeof f[m]=="string")p=true;if(p){r=pui.normalizeURL(r);p=pui.normalizeURL(n+r);for(var s=false,t=0;t<h.length;t++)if(h[t].type.toLowerCase()=="text/javascript"&&(h[t].src==p||h[t].src==r)){s=true;break}if(l&&!s)for(t=0;t<l.length;t++)if(l[t].type.toLowerCase()=="text/css"&&(l[t].href==p||l[t].href==
88
88
  r)){s=true;break}!s&&pui.oe(a,r)<0&&a.push(r)}}}}}};
89
89
  pui.Al=function(b,a){function c(){if(pui.ro.length<=0){pui.ro=null;f()}else{var t=pui.ro.shift();if(t!=null&&t.length>0){var w=document.getElementsByTagName("head")[0],z,y=t.substr(-4,4).toLowerCase();if(y===".css"){z=document.createElement("link");z.setAttribute("type","text/css");z.setAttribute("rel","stylesheet")}else{z=document.createElement("script");z.setAttribute("type","text/javascript")}z.onload=c;z.onerror=e;y===".css"?z.setAttribute("href",t):z.setAttribute("src",t);w.appendChild(z)}else c()}}
90
- function e(t){if(t!=null&&t.target!=null)console.log("Failed to load widget dependency file ",t.target.src||t.target.href);c()}function f(){if(pui.vg instanceof Array&&pui.vg.length>0){var t=pui.vg.shift(),w=new pui.Ajax({url:t.url,method:"get",suppressAlert:true,async:true,onsuccess:h,onfail:g});w.Em=t.Em;w.send()}else{pui.vg!==undefined&&delete pui.vg;a()}}function g(t){console.log("Failed to load custom layout template:",t.Em);f()}function h(t){pui.layout.templates[t.Em]=t.yc();f()}var l,n=[];
90
+ function e(t){if(t!=null&&t.target!=null)console.log("Failed to load widget dependency file ",t.target.src||t.target.href);c()}function f(){if(pui.wg instanceof Array&&pui.wg.length>0){var t=pui.wg.shift(),w=new pui.Ajax({url:t.url,method:"get",suppressAlert:true,async:true,onsuccess:h,onfail:g});w.Em=t.Em;w.send()}else{pui.wg!==undefined&&delete pui.wg;a()}}function g(t){console.log("Failed to load custom layout template:",t.Em);f()}function h(t){pui.layout.templates[t.Em]=t.yc();f()}var l,n=[];
91
91
  if(b!=null)if(b.items!=null&&b.items.length>0)for(l=0;l<b.items.length;l++)pui.yr(b.items[l],n,null,b.designer);else if(b.layers!=null&&b.layers.length>0)for(var m=0;m<b.layers.length;m++){var r=b.layers[m];if(r!=null&&r.formats!=null&&r.formats.length>0)for(var p=0;p<r.formats.length;p++){var s=r.formats[p];if(s!=null&&s.metaData!=null&&s.metaData.items!=null&&s.metaData.items.length>0)for(l=0;l<s.metaData.items.length;l++)pui.yr(s.metaData.items[l],n,s.data,false)}}pui.ro=n;c()};
92
92
  pui.Ux=function(b,a){function c(e){e.length===0&&a();e.forEach(function(f){function g(){var n=e.indexOf(f);n>=0&&e.splice(n,1);e.length==0&&a()}var h=false,l=f.split("?")[0];if(l.substr(-3).toLowerCase()==".js")h=pui.loadJS({path:f,callback:g,onerror:function(){console.log("Failed to load "+f);g()}});else l.substr(-4).toLowerCase()==".css"&&pui.loadCSS(f);if(!h||h==false)setTimeout(g,0)})}b?ac({url:Vb("PUI0009120.pgm?r="+Date.now()),method:"GET",suppressAlert:true,sendAsBinary:false,handler:function(e){e&&
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};
@@ -102,7 +102,7 @@ function cc(b,a,c){var e;if(typeof a!=="string")a="";if(typeof c!=="string")c=""
102
102
  case "M":f+="mmm";break;case "n":f+="m";break;case "Y":f+="yyyy";break;case "y":f+="yy";break;case "g":f+="h";break;case "h":f+="hh";break;case "G":f+="h";break;case "H":f+="hh";break;case "i":f+="mm";break;case "s":f+="ss";break;case "u":f+=".0";break;case "a":f+="am/pm";break;case "A":f+="AM/PM";break;case '"':f+="&quot;";break;case " ":f+="\\ ";break;case "-":f+="\\-";break;case ".":f+="\\.";break;case ",":f+="\\,";break;case "/":f+="/";break;case ":":f+=":";break;default:f+="\\"+h;break}}break}g=
103
103
  164+b.Nl;b.Nl++;e=dc(b,g);f={id:g,Jc:e,code:f};b.Ml[c+a]=f}}return e}function dc(b,a){return b.nh.push({qj:a,Ui:0,Ri:0,Gi:0,kk:0,In:1})-1}function ec(b,a){b.fileName=a||"sheet";if(typeof JSZip=="function")b.lr();else{var c=b.xk.bind(b);pui.loadJS({path:"/jszip/jszip.min.js",callback:b.lr.bind(b),onerror:function(){console.log("Failed to load /jszip/jszip.min.js");c()}})}}va=pui.Qm.prototype;
104
104
  va.lr=function(){if(typeof saveAs=="function"||pui.Qo(pui.normalizeURL("/jszip/FileSaver.min.js"))!=null)this.kr();else{var b=this.xk.bind(this);pui.loadJS({path:"/jszip/FileSaver.min.js",callback:this.kr.bind(this),onerror:function(){console.log("Failed to load /jszip/FileSaver.min.js");b()}})}};
105
- va.kr=function(){if(this.Yc){var b=this.Yc,a=this.fr.bind(this),c=this.Nc;if(b.ta.length<1)a();else{b.wo=0;b.Nc=c;c=b.uv.bind(b);b.tw=a;for(a=0;a<b.ta.length;a++){b.ta[a].dg=new XMLHttpRequest;b.ta[a].dg.open("GET",b.ta[a].uri,true);b.ta[a].dg.responseType="blob";b.ta[a].dg.onload=c;b.ta[a].dg.send()}}}else this.fr()};
105
+ va.kr=function(){if(this.Yc){var b=this.Yc,a=this.fr.bind(this),c=this.Nc;if(b.ta.length<1)a();else{b.wo=0;b.Nc=c;c=b.uv.bind(b);b.tw=a;for(a=0;a<b.ta.length;a++){b.ta[a].eg=new XMLHttpRequest;b.ta[a].eg.open("GET",b.ta[a].uri,true);b.ta[a].eg.responseType="blob";b.ta[a].eg.onload=c;b.ta[a].eg.send()}}}else this.fr()};
106
106
  va.fr=function(){var b,a;this.Nc&&typeof this.Nc.tm=="function"&&this.Nc.tm(pui.getLanguageText("runtimeMsg","compressing"));var c=pui.Cd.he+'<Types xmlns="'+pui.Cd.ah+'/package/2006/content-types"><Default Extension="rels" ContentType="'+pui.Cd.Zm+'-package.relationships+xml"/><Default Extension="xml" ContentType="application/xml"/>';if(this.Yc){b=this.Yc.As;for(a in b)c+='<Default Extension="'+a+'" ContentType="'+b[a]+'"/>'}c+='<Override PartName="/xl/workbook.xml" ContentType="'+this.ni+'.sheet.main+xml"/><Override PartName="/xl/worksheets/sheet1.xml" ContentType="'+
107
107
  this.ni+'.worksheet+xml"/><Override PartName="/xl/styles.xml" ContentType="'+this.ni+'.styles+xml"/><Override PartName="/xl/sharedStrings.xml" ContentType="'+this.ni+'.sharedStrings+xml"/>';if(this.Yc!=null)c+='<Override PartName="/xl/drawings/drawing1.xml" ContentType="'+this.Zm+'-officedocument.drawing+xml"/>';c+="</Types>";var e=this.he+'<Relationships xmlns="'+this.tk+'"><Relationship Id="rId1" Type="'+this.ge+'/officeDocument" Target="xl/workbook.xml"/></Relationships>',f='<?xml version="1.0" encoding="UTF-8" standalone="yes"?><workbook xmlns="'+
108
108
  this.uk+'" xmlns:r="'+this.ge+'"><sheets><sheet name="Sheet1" sheetId="1" r:id="rId1"/></sheets></workbook>',g=this.he+'<Relationships xmlns="'+this.tk+'"><Relationship Id="rId3" Type="'+this.ge+'/styles" Target="styles.xml"/><Relationship Id="rId1" Type="'+this.ge+'/worksheet" Target="worksheets/sheet1.xml"/><Relationship Id="rId4" Type="'+this.ge+'/sharedStrings" Target="sharedStrings.xml"/></Relationships>',h=this.he+'<styleSheet xmlns="'+this.uk+'">';if(this.Nl>0){h+='<numFmts count="'+this.Nl+
@@ -114,14 +114,14 @@ b.ge+'" r:embed="rId'+(a[f].rel+1)+'"></a:blip><a:srcRect/><a:stretch><a:fillRec
114
114
  l.file("xl/drawings/_rels/drawing1.xml.rels",a);a=this.Yc.ta;for(b=0;b<a.length;b++)a[b].et&&l.file("xl/media/"+a[b].name,a[b].et,{binary:true})}if(c.length>0){e=this.he+'<Relationships xmlns="'+this.tk+'">';b=0;for(a=c.length;b<a;b++){f=c[b];g="";if(f.type==="hyperlink")g=' TargetMode="External"';e+='<Relationship Id="rId'+(b+1)+'" Type="'+this.ge+"/"+f.type+'" Target="'+pui.ji(f.target)+'"'+g+"/>"}e+="</Relationships>";l.file("xl/worksheets/_rels/sheet1.xml.rels",e)}l.generateAsync({type:"blob",
115
115
  compression:"DEFLATE",mimeType:this.ni+".sheet"}).then(this.Vv.bind(this),this.xk.bind(this))};va.xk=function(){this.Nc&&typeof this.Nc.Es=="function"&&this.Nc.Es();this.Pm.Kc();this.Yc&&this.Yc.Kc();this.Kc()};va.Vv=function(b){saveAs(b,this.fileName+".xlsx");this.xk()};
116
116
  function fc(b){var a=[];for(var c in b.Bm)a[b.Bm[c].value]=c;b=b.he+'<sst xmlns="'+b.uk+'" count="'+String(a.length+1)+'" uniqueCount="'+String(a.length)+'">';c=0;for(var e=a.length;c<e;c++)b+="<si><t>"+pui.ji(a[c])+"</t></si>";b+="</sst>";return b}
117
- pui.Rm=function(b){this.Rf=b;this.rows=[];this.td=-1;this.qo=20;this.colWidths=[];this.bv=false;this.formats=[];this.qe=[];this.Fs=7;this.ta=[];this.ct=[];b=pui.Rs();this.Ua=null;switch(b.Tj){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.Ab={dateFormat:"Y-m-d",timeFormat:"H.i.s"};switch(b.Ti){case 1:this.Ab.dateFormat="Y-m-d";this.Ua=
117
+ pui.Rm=function(b){this.Sf=b;this.rows=[];this.td=-1;this.qo=20;this.colWidths=[];this.bv=false;this.formats=[];this.qe=[];this.Fs=7;this.ta=[];this.ct=[];b=pui.Rs();this.Ua=null;switch(b.Tj){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.Ab={dateFormat:"Y-m-d",timeFormat:"H.i.s"};switch(b.Ti){case 1:this.Ab.dateFormat="Y-m-d";this.Ua=
118
118
  "-";break;case 2:this.Ab.dateFormat="m/d/Y";this.Ua="/";break;case 3:this.Ab.dateFormat="d.m.Y";this.Ua=".";break;case 4:this.Ab.dateFormat="Y-m-d";this.Ua="-";break;case 5:if(typeof this.Ua==="string")this.Ab.dateFormat="m"+this.Ua+"d"+this.Ua+"y";break;case 6:if(typeof this.Ua==="string")this.Ab.dateFormat="d"+this.Ua+"m"+this.Ua+"y";break;case 7:if(typeof this.Ua==="string")this.Ab.dateFormat="y"+this.Ua+"m"+this.Ua+"d";break;case 8:if(typeof this.Ua==="string")this.Ab.dateFormat="y"+this.Ua+"z";
119
119
  break}b=pui.Ss();var a=null;switch(b.Tj){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.Ti){case 1:this.Ab.timeFormat="H.i.s";break;case 2:this.Ab.timeFormat="h:m A";break;case 3:this.Ab.timeFormat="h.m.s";break;case 4:this.Ab.timeFormat="h:m:s";break;case 9:if(typeof a==="string")this.Ab.timeFormat="h"+a+"m"+a+"s";break}this.Ab.timeStampFormat=this.Ab.dateFormat+this.Ua+this.Ab.timeFormat+
120
- ".uu";this.locale=pui.locale&&pui.locales[pui.locale]?pui.locales[pui.locale]:"en_US";this.ps=pui.appJob!=null&&(pui.appJob.decimalFormat=="I"||pui.appJob.decimalFormat=="J")};pui.Rm.prototype=Object.create(pui.Cd);function kc(b){b.td=b.rows.push([])-1}pui.Rm.prototype.Zf=function(b){this.colWidths=b};
121
- function lc(b,a,c){if(typeof b.formats[c]!=="object"||b.formats[c]===null)b.formats[c]={dataType:"char"};b.Rf=Math.max(b.Rf,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=
120
+ ".uu";this.locale=pui.locale&&pui.locales[pui.locale]?pui.locales[pui.locale]:"en_US";this.ps=pui.appJob!=null&&(pui.appJob.decimalFormat=="I"||pui.appJob.decimalFormat=="J")};pui.Rm.prototype=Object.create(pui.Cd);function kc(b){b.td=b.rows.push([])-1}pui.Rm.prototype.$f=function(b){this.colWidths=b};
121
+ function lc(b,a,c){if(typeof b.formats[c]!=="object"||b.formats[c]===null)b.formats[c]={dataType:"char"};b.Sf=Math.max(b.Sf,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].Jc=b.Wg.Yr}e=false;if(typeof a.dateFormat==="string"&&a.dateFormat.length>0)e="dateFormat";else if(typeof a.timeFormat==="string"&&a.timeFormat.length>0)e="timeFormat";else if(typeof a.timeStampFormat==="string"&&a.timeStampFormat.length>0)e="timeStampFormat";if(typeof e==="string"){b.formats[c].locale=typeof a.locale==="string"?a.locale:b.locale;var f=a[e];if(typeof f!=="string")f=b.Ab[e];b.formats[c][e]=f;b.formats[c].Jc=cc(b.Wg,f,b.formats[c].locale)}if(typeof a.formatting===
123
123
  "string")b.formats[c].formatting=a.formatting}
124
- function mc(b,a,c,e,f){if(typeof a!=="string"&&typeof a!=="number"||typeof a==="string"&&a.length===0)b.rows[b.td][c]={value:null};else{var g=b.formats[c];if(g==null)b.formats[c]=g={dataType:"char"};b.Rf=Math.max(b.Rf,c);var h=0;if(typeof a==="string")h=a.length;if(b.rows.length==1||b.qe[c]==null)b.qe[c]=h;else{b.qe[c]=Math.max(b.qe[c],h);if(b.formats[c].dataType==="date")b.qe[c]=Math.max(b.qe[c],10)}if(typeof g.dateFormat==="string"&&g.dateFormat.length>0){if(oc(b,a,c,"dateFormat"))return;if(tc(b,
124
+ function mc(b,a,c,e,f){if(typeof a!=="string"&&typeof a!=="number"||typeof a==="string"&&a.length===0)b.rows[b.td][c]={value:null};else{var g=b.formats[c];if(g==null)b.formats[c]=g={dataType:"char"};b.Sf=Math.max(b.Sf,c);var h=0;if(typeof a==="string")h=a.length;if(b.rows.length==1||b.qe[c]==null)b.qe[c]=h;else{b.qe[c]=Math.max(b.qe[c],h);if(b.formats[c].dataType==="date")b.qe[c]=Math.max(b.qe[c],10)}if(typeof g.dateFormat==="string"&&g.dateFormat.length>0){if(oc(b,a,c,"dateFormat"))return;if(tc(b,
125
125
  a,c))return;if(uc(b,a,c))return}else if(typeof g.timeFormat==="string"&&g.timeFormat.length>0){if(vc(b,a,c,"timeFormat"))return}else if(typeof g.timeStampFormat==="string"&&g.timeStampFormat.length>0){if(oc(b,a,c,"timeStampFormat"))return;if(tc(b,a,c))return;if(uc(b,a,c))return}switch(g.dataType){case "floating":if(tc(b,a,c))return;break;case "packed":case "zoned":if(uc(b,a,c))return;break;case "date":if(oc(b,a,c,"dateFormat"))return;if(tc(b,a,c))return;if(uc(b,a,c))return;break;case "timestamp":if(oc(b,
126
126
  a,c,"timeStampFormat"))return;if(tc(b,a,c))return;if(uc(b,a,c))return;break;case "time":if(vc(b,a,c,"timeFormat"))return;break}switch(g.formatting){case "Date":case "Time Stamp":case "Number":if(uc(b,a,c))return;if(tc(b,a,c))return;break}if(f){if(oc(b,a,c,"timeStampFormat"))return;if(oc(b,a,c,"dateFormat"))return;if(vc(b,a,c,"timeFormat"))return;if(tc(b,a,c))return;if(uc(b,a,c))return}if(typeof e==="string"&&e.length>0){f=-1;g=0;for(h=b.ta.length;g<h;g++){var l=b.ta[g];if(l.type==="hyperlink"&&l.target===
127
127
  e){f=g;break}}if(f<0)f=b.ta.push({type:"hyperlink",target:e})-1;b.ct.push({row:b.td,col:c,Hy:f})}else e=false;b.rows[b.td][c]=bc(b.Wg,a,e!==false)}}function uc(b,a,c){if(typeof a==="string")if(b.ps&&/^[-+]?[0-9]*,?[0-9]+$/.test(a))a=Number(a.replace(",","."));else if(/^[-+]?[0-9]*\.?[0-9]+$/.test(a))a=Number(a);if(typeof a==="number"&&!isNaN(a)){b.rows[b.td][c]={value:a,Jc:b.formats[c].decPos==="2"?b.Wg.Yr:0};return true}return false}
@@ -129,29 +129,29 @@ function tc(b,a,c){if(typeof a==="string")if(b.ps&&/^[-+]?[0-9]*,?[0-9]+([eE][-+
129
129
  function wc(b,a,c,e){if(typeof a!=="string")a=String(a);var f=b.formats[c].locale;if(typeof f!=="string")f=b.locale;c=b.formats[c][e];if(typeof c!=="string")c=b.Ab[e];return[pui.formatting.Date.parse(a,c,f),c,f]}
130
130
  function oc(b,a,c,e){e=wc(b,a,c,e);if(e[1]==="Y-z")return false;if(e[0]instanceof Date){var f=e[0],g=f.getFullYear(),h=f.getMonth(),l=f.getDate();if(g===1&&h===0&&l===1){b.rows[b.td][c]={value:null};return true}if(g<1900||g===1900&&h<2){b.rows[b.td][c]=bc(b.Wg,a);return true}a=new Date(f);a.setHours(0,0,0,0);a=Number(Math.round((a-new Date(1899,11,30))/864E5)+(Math.abs((f-a)%864E5)/864E5).toFixed(10).substr(1));if(!isNaN(a)&&a>=2){b.rows[b.td][c]={value:a,Jc:cc(b.Wg,e[1],e[2])};return true}}return false}
131
131
  function vc(b,a,c,e){a=wc(b,a,c,e);if(a[0]instanceof Date){b.rows[b.td][c]={value:a[0].getHours()/24+a[0].getMinutes()/1440+a[0].getSeconds()/86400+a[0].getMilliseconds()/864E5,Jc:cc(b.Wg,a[1])};return true}return false}
132
- function jc(b){var a,c,e;b.map=[];e=0;var f="";a="";c=b.Rf;for(var g=-1;g<26&&e<c;g++){var h=-1;if(g>=0)h=0;for(h=h;h<26&&e<c;h++){for(var l=0;l<26&&e<c;l++){b.map[e]=f+a+"ABCDEFGHIJKLMNOPQRSTUVWXYZ"[l];e++}a="ABCDEFGHIJKLMNOPQRSTUVWXYZ"[(h+1)%26]}f="ABCDEFGHIJKLMNOPQRSTUVWXYZ"[g+1]}f=b.he+'<worksheet xmlns="'+b.uk+'" xmlns:r="'+b.ge+'"><dimension ref="A1:'+b.map[b.Rf-1]+b.rows.length+'"/><sheetFormatPr defaultRowHeight="'+b.qo*0.75+'" customHeight="1" /><cols>';c=0;for(e=b.Rf;c<e;c++){a=0;if(typeof b.colWidths[c]===
132
+ function jc(b){var a,c,e;b.map=[];e=0;var f="";a="";c=b.Sf;for(var g=-1;g<26&&e<c;g++){var h=-1;if(g>=0)h=0;for(h=h;h<26&&e<c;h++){for(var l=0;l<26&&e<c;l++){b.map[e]=f+a+"ABCDEFGHIJKLMNOPQRSTUVWXYZ"[l];e++}a="ABCDEFGHIJKLMNOPQRSTUVWXYZ"[(h+1)%26]}f="ABCDEFGHIJKLMNOPQRSTUVWXYZ"[g+1]}f=b.he+'<worksheet xmlns="'+b.uk+'" xmlns:r="'+b.ge+'"><dimension ref="A1:'+b.map[b.Sf-1]+b.rows.length+'"/><sheetFormatPr defaultRowHeight="'+b.qo*0.75+'" customHeight="1" /><cols>';c=0;for(e=b.Sf;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.qe[c]!=null&&!isNaN(parseInt(b.qe[c],10)))a=Math.floor((b.qe[c]*b.Fs+5)/b.Fs*256)/256+5;if(a<0)a=0;else if(a>255)a=255;g="";if(b.formats[c]!=null&&b.formats[c].Jc)g=' style="'+b.formats[c].Jc+'"';f+='<col min="'+(c+1)+'" max="'+(c+1)+'" width="'+a+'" '+g+' customWidth="1"/>'}f+="</cols><sheetData>";c="";if(typeof b.Dh==="number"&&b.Dh>0)c=' ht="'+Math.round(b.Dh*0.75)+'" customHeight="1"';a=0;for(e=b.rows.length;a<e;a++){g=String(a+1);f+='<row r="'+
134
- g+'"'+c+">";h=b.rows[a];if(h!=null)for(c=0;c<b.Rf;c++){l=h[c];if(l!=null&&typeof l.value==="number"){f+='<c r="'+b.map[c]+g+'"';if(typeof l.Jc==="number")f+=' s="'+l.Jc+'"';if(l.isString)f+=' t="s"';f+="><v>"+l.value+"</v></c>"}}f+="</row>";c="";if(typeof b.Dh==="number"&&b.Dh>0)c=' ht="'+Math.round(b.qo*0.75)+'" customHeight="1"'}f+="</sheetData>";if(b.bv)f+='<drawing r:id="rId1"/>';c=b.ct;if(c.length>0){f+="<hyperlinks>";e=c.length;for(g=0;g<e;g++){a=c[g].row+1;f+='<hyperlink ref="'+b.map[c[g].col]+
134
+ g+'"'+c+">";h=b.rows[a];if(h!=null)for(c=0;c<b.Sf;c++){l=h[c];if(l!=null&&typeof l.value==="number"){f+='<c r="'+b.map[c]+g+'"';if(typeof l.Jc==="number")f+=' s="'+l.Jc+'"';if(l.isString)f+=' t="s"';f+="><v>"+l.value+"</v></c>"}}f+="</row>";c="";if(typeof b.Dh==="number"&&b.Dh>0)c=' ht="'+Math.round(b.qo*0.75)+'" customHeight="1"'}f+="</sheetData>";if(b.bv)f+='<drawing r:id="rId1"/>';c=b.ct;if(c.length>0){f+="<hyperlinks>";e=c.length;for(g=0;g<e;g++){a=c[g].row+1;f+='<hyperlink ref="'+b.map[c[g].col]+
135
135
  a+'" r:id="rId'+(c[g].Hy+1)+'" />'}f+="</hyperlinks>"}f+="</worksheet>";return f}pui.Kq=function(){this.As={};this.ta=[];this.Dt=1;this.anchors=[]};pui.Kq.prototype=Object.create(pui.Cd);
136
136
  function xc(b,a,c,e,f){var g=e.match(/\.(jpe?g|gif|png|tiff?)(\?.*)?(#.*)?$/i);if(g==null)console.log("Unsupported image type in URI:",e);else{g=g[1].toLowerCase();if(g=="jpeg")g="jpg";else if(g=="tif")g="tiff";for(var h=-1,l=0;l<b.ta.length;l++)if(b.ta[l].uri==e){h=l;break}if(h<0){h="image"+b.Dt+"."+g;b.Dt++;b.As[g]="image/"+g;b.ta.push({name:h,uri:e});h=b.ta.length-1}b.anchors.push({row:a,col:c,rel:h,top:f.top,left:f.top,width:f.width,height:f.height})}}
137
- pui.Kq.prototype.uv=function(){this.wo++;this.Nc&&typeof this.Nc.tm=="function"&&this.Nc.tm(pui.getLanguageText("runtimeMsg","downloading x",[Math.round(100*(this.wo/this.ta.length))+"%"]));if(!(this.wo<this.ta.length)){for(var b=0;b<this.ta.length;b++){if(this.ta[b].dg.status==200)this.ta[b].et=this.ta[b].dg.response;this.ta[b].dg=null;try{delete this.ta[b].dg}catch(a){}}this.tw()}};
137
+ pui.Kq.prototype.uv=function(){this.wo++;this.Nc&&typeof this.Nc.tm=="function"&&this.Nc.tm(pui.getLanguageText("runtimeMsg","downloading x",[Math.round(100*(this.wo/this.ta.length))+"%"]));if(!(this.wo<this.ta.length)){for(var b=0;b<this.ta.length;b++){if(this.ta[b].eg.status==200)this.ta[b].et=this.ta[b].eg.response;this.ta[b].eg=null;try{delete this.ta[b].eg}catch(a){}}this.tw()}};
138
138
  pui.uA=function(b,a){var c,e=b.library||"",f=b.file||"",g=b.customSql||"",h=b.connection||"";if(P=="genie")c=Vb("PUI0009101.PGM");if(P=="dspf")c=Vb("PUI0009101.PGM",null,true);c=new pui.Ajax(c);c.async=true;c.method="post";c.postData="file="+encodeURIComponent(f);c.postData+="&library="+encodeURIComponent(e);c.postData+="&customSql="+encodeURIComponent(g);c.postData+="&connection="+encodeURIComponent(h);if(pui.isCloud)c.postData+="&workspace_id="+pui.cloud.ws.id;if(pui.Z)c.postData+="&AUTH="+pui.Z;
139
- else if(P=="genie")c.postData+="&AUTH="+pui.appJob.auth;c.postData+="&context="+P;c.suppressAlert=true;c.onready=a;c.send()};pui.yf=function(b){var a=null;if(Ma.length>0){a=Ma.length-1;a={operation:Ma[a].Ql,id:Ma[a].id,text:Ma[a].text,text2:Ma[a].Fm}}try{pui.temporary_property=a;eval("var response = { success: arguments[1], id: arguments[2], error: pui.temporary_property };");var c=eval(b);typeof c=="function"&&c()}catch(e){pui.Ea(e,"OndbLoad Error:\n");return false}return true};
139
+ else if(P=="genie")c.postData+="&AUTH="+pui.appJob.auth;c.postData+="&context="+P;c.suppressAlert=true;c.onready=a;c.send()};pui.zf=function(b){var a=null;if(Ma.length>0){a=Ma.length-1;a={operation:Ma[a].Ql,id:Ma[a].id,text:Ma[a].text,text2:Ma[a].Fm}}try{pui.temporary_property=a;eval("var response = { success: arguments[1], id: arguments[2], error: pui.temporary_property };");var c=eval(b);typeof c=="function"&&c()}catch(e){pui.Ea(e,"OndbLoad Error:\n");return false}return true};
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.ZA=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.kA=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
143
  b)}};a.onfail=function(c){console.error(c.getStatusMessage())};a.send()})};pui.sA=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.Wd=function(){return Math.random().toString(36).replace(/[^a-z]+/g,"")};
144
144
  pui.ee=function(b){this.x=this.y=this.Rk=this.Sk=0;this.zo=b.zo;this.zp=b.zp;this.Dq=b.Dq;b=b.Hk;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.ee.prototype=new pui.tc;
145
- pui.ee.prototype.handleEvent=function(b){switch(b.type){case "touchstart":case "mousedown":ub(b);b=pui.Bg(b);this.Rk=b.x;this.Sk=b.y;this.mousedown();document.addEventListener("touchmove",this);document.addEventListener("mousemove",this);document.addEventListener("touchend",this);document.addEventListener("mouseup",this);typeof this.zo==="function"&&this.zo(this);break;case "touchmove":case "mousemove":b=pui.Bg(b);this.x=b.x;this.y=b.y;this.mousemove();typeof this.zp==="function"&&this.zp(this);break;
145
+ pui.ee.prototype.handleEvent=function(b){switch(b.type){case "touchstart":case "mousedown":ub(b);b=pui.Cg(b);this.Rk=b.x;this.Sk=b.y;this.mousedown();document.addEventListener("touchmove",this);document.addEventListener("mousemove",this);document.addEventListener("touchend",this);document.addEventListener("mouseup",this);typeof this.zo==="function"&&this.zo(this);break;case "touchmove":case "mousemove":b=pui.Cg(b);this.x=b.x;this.y=b.y;this.mousemove();typeof this.zp==="function"&&this.zp(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.Dq==="function"&&this.Dq(this);this.mouseup();break}};pui.ee.prototype.mousedown=na();pui.ee.prototype.mousemove=na();pui.ee.prototype.mouseup=na();
147
- pui.bf=function(b,a){pui.ee.call(this,b);this.cd=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.Hb=a}else this.Hb={left:0,top:0,right:Infinity,bottom:Infinity}};pui.bf.prototype=Object.create(pui.ee.prototype);
148
- pui.bf.prototype.mousedown=function(){this.startX=this.cd.offsetLeft;this.startY=this.cd.offsetTop;if(typeof this.opacity==="number")this.cd.style.opacity="0."+this.opacity};
149
- pui.bf.prototype.mousemove=function(){var b=this.startX+this.x-this.Rk,a=this.startY+this.y-this.Sk;if(b<this.Hb.left)b=this.Hb.left;if(a<this.Hb.top)a=this.Hb.top;if(b>this.Hb.right-this.cd.offsetWidth)b=this.Hb.right-this.cd.offsetWidth;if(a>this.Hb.bottom-this.cd.offsetHeight)a=this.Hb.bottom-this.cd.offsetHeight;this.cd.style.left=b+"px";this.cd.style.top=a+"px"};pui.bf.prototype.mouseup=function(){if(typeof this.opacity==="number")this.cd.style.opacity=""};
150
- pui.qk=function(b,a){pui.bf.call(this,b,a)};pui.qk.prototype=Object.create(pui.bf.prototype);pui.qk.prototype.mousemove=function(){if(this.x<this.Hb.left)this.x=this.Hb.left;if(this.y<this.Hb.top)this.y=this.Hb.top;if(this.x>this.Hb.right)this.x=this.Hb.right;if(this.y>this.Hb.bottom)this.y=this.Hb.bottom;this.cd.style.left=this.startX-this.Rk+this.x+"px";this.cd.style.top=this.startY-this.Sk+this.y+"px"};
147
+ pui.cf=function(b,a){pui.ee.call(this,b);this.cd=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.Hb=a}else this.Hb={left:0,top:0,right:Infinity,bottom:Infinity}};pui.cf.prototype=Object.create(pui.ee.prototype);
148
+ pui.cf.prototype.mousedown=function(){this.startX=this.cd.offsetLeft;this.startY=this.cd.offsetTop;if(typeof this.opacity==="number")this.cd.style.opacity="0."+this.opacity};
149
+ pui.cf.prototype.mousemove=function(){var b=this.startX+this.x-this.Rk,a=this.startY+this.y-this.Sk;if(b<this.Hb.left)b=this.Hb.left;if(a<this.Hb.top)a=this.Hb.top;if(b>this.Hb.right-this.cd.offsetWidth)b=this.Hb.right-this.cd.offsetWidth;if(a>this.Hb.bottom-this.cd.offsetHeight)a=this.Hb.bottom-this.cd.offsetHeight;this.cd.style.left=b+"px";this.cd.style.top=a+"px"};pui.cf.prototype.mouseup=function(){if(typeof this.opacity==="number")this.cd.style.opacity=""};
150
+ pui.qk=function(b,a){pui.cf.call(this,b,a)};pui.qk.prototype=Object.create(pui.cf.prototype);pui.qk.prototype.mousemove=function(){if(this.x<this.Hb.left)this.x=this.Hb.left;if(this.y<this.Hb.top)this.y=this.Hb.top;if(this.x>this.Hb.right)this.x=this.Hb.right;if(this.y>this.Hb.bottom)this.y=this.Hb.bottom;this.cd.style.left=this.startX-this.Rk+this.x+"px";this.cd.style.top=this.startY-this.Sk+this.y+"px"};
151
151
  pui.an=function(b){pui.ee.call(this,b);this.nj=typeof b.nj=="number"&&b.nj>0?b.nj:0;this.mj=typeof b.mj=="number"&&b.mj>0?b.mj:0;this.Fl=b.Fl;this.Dl=b.Dl;if(typeof b.$p==="object"&&b.$p!==null)this.tn=this.sn=b.$p;if(typeof b.ku==="object"&&b.ku!==null)this.sn=b.ku;if(typeof b.nu==="object"&&b.nu!==null)this.tn=b.nu;b=typeof b.resize=="number"&&b.resize>=1&&b.resize<=3?b.resize:1;this.Av=(b&1)==1;this.zv=(b&2)==2};pui.an.prototype=Object.create(pui.ee.prototype);
152
152
  pui.an.prototype.mousedown=function(){this.startX=this.tn.offsetWidth;this.startY=this.sn.offsetHeight};pui.an.prototype.mousemove=function(){if(this.Av){var b=this.startX+this.x-this.Rk;if(b<this.nj)b=this.nj;if(typeof this.Fl==="number"&&b>this.Fl)b=this.Fl;this.tn.style.width=b+"px";this.width=b}if(this.zv){b=this.startY+this.y-this.Sk;if(b<this.mj)b=this.mj;if(typeof this.Dl==="number"&&b>this.Dl)b=this.Dl;this.sn.style.height=b+"px";this.height=b}};
153
153
  pui.Ze=function(b){if((window.React||window.Vue)&&b!=null&&b.pui&&b.pui.data&&b.pui.Mi){var a={};a[b.pui.Mi]=[b];a=pui.Wr(a);b.pui.data[b.pui.Mi]=a[b.pui.Mi]}};
154
- pui.Zj=function(b,a){var c;if(P=="dspf"){if(pui.Pb){c=tb(b);if(!(c.pui&&c.pui.properties["read only"]==="true")){c.modified=true;if(c.parentNode!=null&&(c.parentNode.comboBoxWidget!=null||c.parentNode.k!=null)){c=c.parentNode;c.modified=true}pui.modified=true;if(c.id!=null&&c.id.indexOf(".")==-1&&a)pui.sf[a]=true;if((window.React||window.Vue)&&c.pui.data&&c.pui.Mi)setTimeout(function(){pui.Ze(c)},0)}}}else if(pui.D.rendered){c=tb(b);if(c!=null){var e=c.B;if(e!=null){e=e.idx;if(e!=null){e=String(e);
154
+ pui.Zj=function(b,a){var c;if(P=="dspf"){if(pui.Pb){c=tb(b);if(!(c.pui&&c.pui.properties["read only"]==="true")){c.modified=true;if(c.parentNode!=null&&(c.parentNode.comboBoxWidget!=null||c.parentNode.k!=null)){c=c.parentNode;c.modified=true}pui.modified=true;if(c.id!=null&&c.id.indexOf(".")==-1&&a)pui.tf[a]=true;if((window.React||window.Vue)&&c.pui.data&&c.pui.Mi)setTimeout(function(){pui.Ze(c)},0)}}}else if(pui.D.rendered){c=tb(b);if(c!=null){var e=c.B;if(e!=null){e=e.idx;if(e!=null){e=String(e);
155
155
  if(c.tx!=null)e="s"+e+"."+c.tx;pui.response[e]=c;if(c.type=="radio"&&pui.genie.allowRadioClear&&c.className.indexOf("selection-field-single")>=0)if(b.type=="click")setTimeout(function(){if(pui.ie_mode==8&&c.checked!=c.aB)c.mp=true;if(c.checked&&!c.mp)c.checked=false;c.mp=false},0);else if(b.type=="change")c.mp=true}}}}};
156
156
  pui.Mw=function(b){if(b.keyCode==pui.dup.keyCode)if(!(pui.dup.shift&&!b.shiftKey))if(!(pui.dup.ctrl&&!b.ctrlKey))if(!(pui.dup.alt&&!b.altKey)){var a=tb(b),c=a.value,e=a.maxLength;if(e==null)e=0;e=Number(e);if(isNaN(e))e=0;var f=zb(a);if(f<0)f=0;for(c=c.substr(0,f);c.length<f;)c+=" ";for(;c.length<e;)c+=pui.dup["char"];a.value=c;pui.Zj(b);pui.To(a);ub(b);return false}};
157
157
  pui.fp=function(b){var a="";if(typeof b=="string")a=b;if(typeof b=="object")a=b.value;if(a==null)a="";if(typeof a!="string")a=String(a);return a.indexOf(pui.dup["char"])!=-1};pui.jA=function(b,a){var c=b;if(typeof b==="string"&&b.length>0)c=RegExp(b,a?"ig":"i");if(typeof c==="object"&&c instanceof RegExp){if(a&&!c.global)c=RegExp(c.source,"ig")}else c=false;return c};pui.Qe=function(b,a){if(b==null)return b;return a?b.replace(/\u1E9E/g,"\u00df"):b.replace(/\u00DF/g,"\u1e9e")};
@@ -164,12 +164,12 @@ pui.getVersionComparer=function(){function b(a){if((a=a||"0.0.0")&&typeof a!=="s
164
164
  pui.newUUID=function(){var b=(new Date).getTime();if(window.performance&&typeof window.performance.now==="function")b+=window.performance.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(a){var c=(b+Math.random()*16)%16|0;b=Math.floor(b/16);return(a=="x"?c:c&3|8).toString(16)})};
165
165
  pui.Zp=function(b,a){if(b!=null)for(var c=b.childNodes,e,f=c.length,g=0;g<f&&(e=c[g]);g++){var h=e.layout;if(h!=null){h.Kr==true&&yc(h,true);h.resize()}else if(typeof e.sizeMe=="function")if(e.me===true||a&&e.grid!=null||pui.Fh(e.style.width)||pui.Fh(e.style.height))e.sizeMe()}};
166
166
  pui.doSessionTimeout=function(){function b(e){document.body.style.backgroundColor="#ffffff";document.body.style.backgroundImage="none";pui.la(e);e.innerHTML='<div style="font-family: Trebuchet MS; width: 95%; text-align: center; font-size: 200%;"><br/>'+pui.getLanguageText("runtimeMsg","session timed out")+"</div>"}zc();b(pui.runtimeContainer);pui.Ve();var a=Vb("PUI0001200.pgm");if(pui.D!=null)a=Vb("PUI0002110.pgm");if(pui.psid!=null&&pui.psid!="")a+="/"+pui.psid;var c={timeout:"1"};if(pui.isCloud)c.workspace_id=
167
- pui.cloud.ws.id;ac({url:pui.pg(a),method:"post",sendAsBinary:false,suppressAlert:true,params:c,handler:function(e){if(pui.D!=null){pui.confirmOnClose=false;pui.shutdownOnClose=false;b(document.body)}else{e.container=pui.runtimeContainer;pui.handler=na();pui.render(e)}pui.ontimeout!=null&&typeof pui.ontimeout=="function"&&pui.ontimeout();pui.D!=null&&pui.D["close atrium tab on timeout"]==true&&window.parent!=window&&pui.sg(window.parent)&&window.Atrium.closeTab()},onfail:function(){b(document.body)}})};
167
+ pui.cloud.ws.id;ac({url:pui.qg(a),method:"post",sendAsBinary:false,suppressAlert:true,params:c,handler:function(e){if(pui.D!=null){pui.confirmOnClose=false;pui.shutdownOnClose=false;b(document.body)}else{e.container=pui.runtimeContainer;pui.handler=na();pui.render(e)}pui.ontimeout!=null&&typeof pui.ontimeout=="function"&&pui.ontimeout();pui.D!=null&&pui.D["close atrium tab on timeout"]==true&&window.parent!=window&&pui.ug(window.parent)&&window.Atrium.closeTab()},onfail:function(){b(document.body)}})};
168
168
  pui.nx=function(b,a){var c="";if(typeof pui.view!="undefined")c=a+pui.view;else if(b!=null&&typeof b.file=="string"&&typeof b.library=="string")c=a+b.library+"-"+b.file+"-"+b.name;return c};pui.record=function(b){pui.Cc.responses.push(JSON.parse(JSON.stringify(b)))};
169
- pui.Fw=function(){function b(g){g=pui.Mg+g;if(!pui.Yp.payloads[g-1])return false;var h=pui.Yp.container,l=pui.Yp.payloads[g-1].response;l=JSON.parse(JSON.stringify(l));l.container=h;pui.Mg=g;c.innerHTML="Step "+g;if(l["5250"]){P="genie";pui.Oy(l)}else{P="dspf";pui.render(l)}}var a=document.createElement("span");a.classList.add("pui-material-icons");a.innerHTML="keyboard_arrow_left";a.onclick=function(){b(-1)};var c=document.createElement("span");c.classList.add("pui-replay-step");c.innerHTML="Step "+
170
- pui.Mg;var e=document.createElement("span");e.classList.add("pui-material-icons");e.innerHTML="keyboard_arrow_right";e.onclick=function(){b(+1)};var f=document.createElement("div");f.classList.add("pui-replay");f.appendChild(a);f.appendChild(c);f.appendChild(e);document.body.appendChild(f)};pui.pg=function(b){b+=b.indexOf("?")===-1?"?":"&";b+="pui-rid="+pui.newUUID();return b};pui.sv=function(b){this.uri=b};
169
+ pui.Fw=function(){function b(g){g=pui.Ng+g;if(!pui.Yp.payloads[g-1])return false;var h=pui.Yp.container,l=pui.Yp.payloads[g-1].response;l=JSON.parse(JSON.stringify(l));l.container=h;pui.Ng=g;c.innerHTML="Step "+g;if(l["5250"]){P="genie";pui.Oy(l)}else{P="dspf";pui.render(l)}}var a=document.createElement("span");a.classList.add("pui-material-icons");a.innerHTML="keyboard_arrow_left";a.onclick=function(){b(-1)};var c=document.createElement("span");c.classList.add("pui-replay-step");c.innerHTML="Step "+
170
+ pui.Ng;var e=document.createElement("span");e.classList.add("pui-material-icons");e.innerHTML="keyboard_arrow_right";e.onclick=function(){b(+1)};var f=document.createElement("div");f.classList.add("pui-replay");f.appendChild(a);f.appendChild(c);f.appendChild(e);document.body.appendChild(f)};pui.qg=function(b){b+=b.indexOf("?")===-1?"?":"&";b+="pui-rid="+pui.newUUID();return b};pui.sv=function(b){this.uri=b};
171
171
  pui.sv.prototype.handleEvent=function(b){switch(b.type){case "close":if(this.dk){this.dk.removeEventListener("message",this);this.dk.removeEventListener("error",this);this.dk.removeEventListener("close",this);this.dk.removeEventListener("open",this);delete this.dk}}};pui.pd=function(b){if(typeof b.onchange==="function")b.onchange=null;if(typeof b.onclick==="function")b.onclick=null;var a=b.attributes;if(typeof a==="object"&&a!==null)for(;a.length>0;)a.removeNamedItem(a[0].name);pui.tc.prototype.Kc.apply(b)};
172
- pui.la=function(b){if(b!=null)for(var a=b.firstChild;typeof a==="object"&&a!==null&&a!==b;)if(typeof a.destroy==="function")try{a.destroy();a.destroy=null}catch(c){console.log(c)}else if(a.firstChild!=null)a=a.firstChild;else{var e=a.parentNode;e.removeChild(a);pui.pd(a);a=e.firstChild!=null?e.firstChild:e}};pui.Sg=function(b,a){if(typeof this==="object"&&this!==null){if(!Array.isArray(this.Oe))this.Oe=[];this.Oe.push({name:b,al:a})}};
172
+ pui.la=function(b){if(b!=null)for(var a=b.firstChild;typeof a==="object"&&a!==null&&a!==b;)if(typeof a.destroy==="function")try{a.destroy();a.destroy=null}catch(c){console.log(c)}else if(a.firstChild!=null)a=a.firstChild;else{var e=a.parentNode;e.removeChild(a);pui.pd(a);a=e.firstChild!=null?e.firstChild:e}};pui.Tg=function(b,a){if(typeof this==="object"&&this!==null){if(!Array.isArray(this.Oe))this.Oe=[];this.Oe.push({name:b,al:a})}};
173
173
  pui.gu=function(b){if(Array.isArray(b.Oe)){for(;b.Oe.length>0;){var a=b.Oe.pop();if(typeof a==="object"&&a!==null){b.removeEventListener(a.name,a.al);delete a.name;delete a.al}}delete b.Oe}};pui.lh=function(){try{if(typeof this==="object"&&this!==null){pui.gu(this);pui.la(this);pui.pd(this)}}catch(b){console.log(b)}};pui.PA=function(b){switch(b){case "subfile next changed":return true;case "subfile message key":return true;case "subfile program message queue":return true;case "selection field":return true;case "row is hidden field":return true;case "tree level field":return true;case "subfile changed":return true;case "row font color":return true;case "row background":return true;case "grid row translation placeholder value":return true;default:return false}};
174
174
  pui.Kz=function(b){if(b!==null){var a=[];a[128]="20";a[129]="21";a[130]="22";a[131]="23";a[132]="24";a[10]="25";a[23]="26";a[27]="27";a[136]="28";a[137]="29";a[138]="2A";a[139]="2B";a[140]="2C";a[5]="2D";a[6]="2E";a[7]="2F";a[144]="30";a[145]="31";a[22]="32";a[147]="33";a[148]="34";a[149]="35";a[150]="36";a[4]="37";a[152]="38";a[153]="39";a[154]="3A";a[155]="3B";a[20]="3C";a[21]="3D";a[158]="3E";a[26]="3F";a[181]="A0";a[126]="A1";a[115]="A2";a[116]="A3";a[117]="A4";a[118]="A5";a[119]="A6";a[120]=
175
175
  "A7";a[121]="A8";a[122]="A9";a[161]="AA";a[191]="AB";a[208]="AC";a[221]="AD";a[222]="AE";a[174]="AF";a[94]="B0";a[163]="B1";a[165]="B2";a[183]="B3";a[169]="B4";a[167]="B5";a[182]="B6";a[188]="B7";a[189]="B8";a[190]="B9";a[91]="BA";a[93]="BB";a[175]="BC";a[168]="BD";a[180]="BE";a[215]="BF";return a[b]}};
@@ -177,9 +177,9 @@ pui.Ax=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.Nr=function(b){if(b==null||typeof b!="string"||b.length<1)return[];b=pui.Kz(b.charCodeAt(0));return pui.Ax(b)};pui.my=function(b){b=b.split("(");if(b.length!=2)return null;var a=b[0],c=b[1];if(c.substr(c.length-1,1)!=")")return null;c=c.substr(0,c.length-1);b=a.split("/");if(b.length!=2)return null;var e=b[0];a=b[1];e=Kb(e).toUpperCase();if(e=="")return null;a=Kb(a).toUpperCase();if(a=="")return null;c=Kb(c).toUpperCase();if(c=="")return null;return{library:e,file:a,member:c}};
180
- pui.gw=function(b,a){var c=pui.Rd;if(!(P!="dspf"||c==null)){if(pui.ba[c]!=null)for(var e in pui.ba[c])for(var f=pui.ba[c][e],g=0;g<f.length;g++)if(f[g]==a){f.splice(g,1);break}a.zd=b;if(!(b==null||b=="")){if(pui.ba[c]==null)pui.ba[c]={};if(pui.ba[c][b]==null)pui.ba[c][b]=[];pui.ba[c][b].push(a);if(a.onclick==null||a.R==null)pui.qg(a)}}};pui.jx=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
- pui.zg=function(b){var a,c,e;if(typeof b==="string"){b=b;a=Ab(b)}else{a=b;b=a.id}if(a&&b){if(c=a.comboBoxWidget!=null)a=a.comboBoxWidget.getBox();if(!(a.tagName!=="INPUT"&&a.tagName!=="TEXTAREA"))if(a.placeholder){var f;if(c){f=a.parentNode;b=f.className.split(" ");for(c=0;c<b.length;c++){e=b[c];e="pui-floating-placeholder-"+e;f.classList.add(e)}}else{f=document.createElement("div");for(c=0;c<a.classList.length;c++){e=a.classList[c];e="pui-floating-placeholder-"+e;f.classList.add(e)}a.parentNode.insertBefore(f,
182
- a);a.parentNode.removeChild(a);a.removeAttribute("id");f.id=b;f.style.position=a.style.position;f.style.left=a.style.left;f.style.top=a.style.top;f.style.right=a.style.right;f.style.bottom=a.style.bottom;f.style.width=a.style.width;f.pui=a.pui;if(a.mc!=null)f.mc=a.mc;if(a.Wc!=null)f.Wc=a.Wc;if(a.uf!=null)f.uf=a.uf;if(a.ve!=null)f.ve=a.ve;if(a.eb!=null)f.eb=a.eb;if(a.Va!=null)f.Va=a.Va;a.style.position="";a.style.left="";a.style.top="";a.style.width="100%";if(a.style.visibility){f.style.visibility=
180
+ pui.gw=function(b,a){var c=pui.Rd;if(!(P!="dspf"||c==null)){if(pui.ba[c]!=null)for(var e in pui.ba[c])for(var f=pui.ba[c][e],g=0;g<f.length;g++)if(f[g]==a){f.splice(g,1);break}a.zd=b;if(!(b==null||b=="")){if(pui.ba[c]==null)pui.ba[c]={};if(pui.ba[c][b]==null)pui.ba[c][b]=[];pui.ba[c][b].push(a);if(a.onclick==null||a.R==null)pui.rg(a)}}};pui.jx=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
+ pui.Ag=function(b){var a,c,e;if(typeof b==="string"){b=b;a=Ab(b)}else{a=b;b=a.id}if(a&&b){if(c=a.comboBoxWidget!=null)a=a.comboBoxWidget.getBox();if(!(a.tagName!=="INPUT"&&a.tagName!=="TEXTAREA"))if(a.placeholder){var f;if(c){f=a.parentNode;b=f.className.split(" ");for(c=0;c<b.length;c++){e=b[c];e="pui-floating-placeholder-"+e;f.classList.add(e)}}else{f=document.createElement("div");for(c=0;c<a.classList.length;c++){e=a.classList[c];e="pui-floating-placeholder-"+e;f.classList.add(e)}a.parentNode.insertBefore(f,
182
+ a);a.parentNode.removeChild(a);a.removeAttribute("id");f.id=b;f.style.position=a.style.position;f.style.left=a.style.left;f.style.top=a.style.top;f.style.right=a.style.right;f.style.bottom=a.style.bottom;f.style.width=a.style.width;f.pui=a.pui;if(a.mc!=null)f.mc=a.mc;if(a.Wc!=null)f.Wc=a.Wc;if(a.vf!=null)f.vf=a.vf;if(a.ve!=null)f.ve=a.ve;if(a.eb!=null)f.eb=a.eb;if(a.Va!=null)f.Va=a.Va;a.style.position="";a.style.left="";a.style.top="";a.style.width="100%";if(a.style.visibility){f.style.visibility=
183
183
  a.style.visibility;a.style.visibility=""}f.appendChild(a);f.sizeMe=a.sizeMe;f.me=a.me;f.Jb=a.Jb}f.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;f.insertBefore(b,a.nextSibling);f.k=b;pui.xp(a);b.getValue=function(){return a.value};b.setValue=function(g){a.value=g;pui.se(a)};b.getBox=function(){return a};b.mq=function(g){g&&a.setAttribute("maxlength",
184
184
  g)};b.Kn=function(g,h){a[g]=h;if(f[g]!=null)f[g]=na()};b.nq=function(g){a.readOnly=g};b.setDisabled=function(g){a.disabled=g};b.ez=function(g,h){a.setAttribute(g,h)};b.rB=function(){box.focus()}}}};
185
185
  pui.yp=function(b){var a=b.dom.k.getBox(),c=b.propertyName,e=Ac(),f;if(e[c]&&e[c].r)f=e[c].r;else if(e[c]&&e[c].U)f=e[c].U;if(f)switch(c){case "disabled":case "read only":a[f]=b.newValue;b.dom.removeAttribute(f);break;case "border radius":case "text align":case "height":a.style[f]=b.dom.style[f];b.dom.style[f]="";break}};var Hb=null,Bc={},Cc=null,Dc=null;pui.gi=false;
@@ -333,7 +333,7 @@ controls:["combo box","menu"]},{name:"onselect",wf:true,controls:["combo box","t
333
333
  function Gc(b){for(var a={},c=0;c<b.length;c++){a[b[c].name]=b[c];if(b[c].displayName)pui.Pp[b[c].displayName]=b[c].name}return a}function Ac(){if(Dc!=null)return Dc;return Dc=Gc(Ec())}
334
334
  function Jc(b,a,c){if(pui.Pp[a])a=pui.Pp[a];if(typeof b=="string")b=Ab(b);if(b==null)return null;a=="shortcut key"&&pui.gw(c,b);if(a=="focus class")if(b.pui.properties["field type"]==="combo box"){var e=b.comboBoxWidget.getBox();e.focusClass=Kb(c);T(e,"focus",pui.Gk);T(e,"blur",pui.em)}else{b.focusClass=Kb(c);T(b,"focus",pui.Gk);T(b,"blur",pui.em)}if(a=="required"){b.am=c=="true";if(b.k!=null)b.k.getBox().am=c=="true"}if(a=="mandatory entry")b.Oq=c=="true";if(a=="mandatory fill")b.Pq=c=="true";if(a==
335
335
  "valid values")b.Fq=c;if(a=="allow blanks")b.Fr=c=="true";if(a=="auto advance"){e=b;if(b.comboBoxWidget!=null)e=b.comboBoxWidget.getBox();if(b.k!=null)e=b.k.getBox();if(c=="true"){e.Mn=true;T(e,"keyup",pui.Nn)}else{e.Mn=true;Zb(e,"keyup",pui.Nn)}}if(a=="validate name")b.validateName=c=="true";if(a=="validate email")b.validateEmail=c=="true";if(a=="comparison operator")b.fo=c=="true";if(a=="comparison value")b.ho=c;if(a=="range low")b.Sh=c;if(a=="range high")b.Rh=c;if(a=="checked value")b.checkedValue=
336
- c;if(a=="unchecked value")b.uncheckedValue=c;if(a=="bypass validation")b.F=c;if(a=="set focus"&&(c==true||c=="true")){e=b;if(e.comboBoxWidget!=null)e=e.comboBoxWidget.getBox();if(e.k!=null)e=e.k.getBox();e.focus();pui.V.dom=e;pui.V.Og=true}var f;f=b.Qh==null?Ac():b.Qh;e=f[a];if(e==null)e=pui.Xi(f,a);if(e!=null){if(b.pui==null||b.pui.properties==null){f="";var g="output field";if(b.tagName=="DIV")f=Lc(b);if(b.tagName=="INPUT"){f=b.value;g="textbox";if(b.type=="button"||b.type=="submit")g="button"}if(a==
336
+ c;if(a=="unchecked value")b.uncheckedValue=c;if(a=="bypass validation")b.F=c;if(a=="set focus"&&(c==true||c=="true")){e=b;if(e.comboBoxWidget!=null)e=e.comboBoxWidget.getBox();if(e.k!=null)e=e.k.getBox();e.focus();pui.V.dom=e;pui.V.Pg=true}var f;f=b.Qh==null?Ac():b.Qh;e=f[a];if(e==null)e=pui.Xi(f,a);if(e!=null){if(b.pui==null||b.pui.properties==null){f="";var g="output field";if(b.tagName=="DIV")f=Lc(b);if(b.tagName=="INPUT"){f=b.value;g="textbox";if(b.type=="button"||b.type=="submit")g="button"}if(a==
337
337
  "field type")g=c;if(b.pui==null)b.pui={};b.pui.properties={"field type":g,value:f}}b.pui.properties[a]=c;return Mc(e,b.pui.properties,b,c,false)}}
338
338
  function Mc(b,a,c,e,f,g,h,l,n){var m,r,p,s,t,w,z,y;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 E=c,J;if(f){J=g.originalValue;g.nd=true}else if(a.originalValue!=null)J=a.originalValue;else{J=c.tagName=="DIV"?c.k!=null?c.k.getValue():c.comboBoxWidget!=null?c.comboBoxWidget.getValue():c.T!=null?c.T.value:Lc(c):c.value;a.originalValue=J}var B=Yb(e,J,c),G=b.name,D,C;if(G=="field type"){D=pui.widgets[B];
339
339
  if(D==null)return E;E=D.tag;m=D.inputType;if(f){g.Yl=null;g.fB()}switch(B){case "select box":if(!f&&c.readOnly&&c.tagName=="INPUT")switch(pui.D.config.protectedSelectBox){case "disable":c.disabled=true;break;case "output":default:E="input";m=c.type}if(f&&pui.is_old_ie&&pui.ie_mode==6&&(String(g.properties["select box height"])==""||String(g.properties["select box height"])=="1"||String(g.properties["select box height"])=="undefined")){E="input";m="text"}break}r=p=false;C=c.tagName.toLowerCase()!=
@@ -343,7 +343,7 @@ c.getAttribute("maxlength"));C.disabled=c.disabled;if(c.Va!=null)C.Va=c.Va;if(c.
343
343
  if(y!=null&&y!=""){var K=E[p].r!=null;if(m=="overflow x"||m=="overflow y")if(a["field type"]=="layout")K=false;if(K)if(E[p].r=="visibility"&&f)if(y=="hidden"){C.style.filter="alpha(opacity=30)";C.style.opacity=0.3}else{C.style.filter="";C.style.opacity=""}else try{s=pui.Os(E[p].r,y);C.style[E[p].r]=s;f&&pui.Mk(C,E[p].r,s)}catch(M){}if(E[p].U!=null){if(E[p].type=="boolean"&&y=="true")y=true;if(E[p].type=="boolean"&&y=="false")y=false;if(E[p].U=="disabled"&&f)y=false;try{if(y==false)C.getAttribute(E[p].U)!=
344
344
  null&&C.removeAttribute(E[p].U);else{z=Yb(y,J,C);if(E[p].U=="src")z=pui.normalizeURL(z,true);E[p].U!=="style"&&C.setAttribute(E[p].U,z);if(E[p].U=="class")C.className=y}}catch(U){}}}}}if(P=="dspf"){p=[];p.push(a["css class"]);m=2;for(y=a["css class "+m];y!=null;){p.push(y);m++;y=a["css class "+m]}m=a["display attribute field"];y=false;if(m!=null&&!pui.o(m)&&m!=""&&m!=" "){p=p.concat(pui.Nr(m));y=true}Nc(C,p,y)}E=C;if(!D.resizable){E.style.width="";E.style.height=""}}else{D=pui.widgets[a["field type"]];
345
345
  if(D==null)return E}if(E.pui==null)E.pui={};if(E.pui.properties==null)E.pui.properties={};E.pui.properties[G]=B;if(G=="value"&&e!="script: value"&&!f&&P=="genie"&&E.B!=null&&E.B.idx!=null)E.tagName=="INPUT"&&E.type=="radio"&&E.checked!=true||(pui.response[E.B.idx]=E);if(f&&G=="screen identifier"&&P=="genie"){p="red";p=e=="true"||e==true?"red":"#cccccc";if(E.style.borderLeftStyle=="dotted")E.style.borderLeftColor=p;if(E.style.borderRightStyle=="dotted")E.style.borderRightColor=p;if(E.style.borderTopStyle==
346
- "dotted")E.style.borderTopColor=p;if(E.style.borderBottomStyle=="dotted")E.style.borderBottomColor=p}p=D.Gf;m=D.propertySetters;y=null;if(m!=null)y=m[G];var da;if(y!=null||p!=null)da=new pui.bn(e,B,f,a,J,E,c,G,g,h);if(p!=null)if(p(da)==false)return;if(y!=null)if(y(da)==false)return;if(r)if(C.comboBoxWidget!=null){r=C.comboBoxWidget.getBox();pui.Lr(r);r.B=C.B;attachInputEvents(r);C.comboBoxWidget.mq(c.maxLength)}else if(C.k!=null){r=C.k.getBox();pui.Lr(r);r.B=C.B;attachInputEvents(r);C.k.mq(c.maxLength)}else pui.Lr(C);
346
+ "dotted")E.style.borderTopColor=p;if(E.style.borderBottomStyle=="dotted")E.style.borderBottomColor=p}p=D.Hf;m=D.propertySetters;y=null;if(m!=null)y=m[G];var da;if(y!=null||p!=null)da=new pui.bn(e,B,f,a,J,E,c,G,g,h);if(p!=null)if(p(da)==false)return;if(y!=null)if(y(da)==false)return;if(r)if(C.comboBoxWidget!=null){r=C.comboBoxWidget.getBox();pui.Lr(r);r.B=C.B;attachInputEvents(r);C.comboBoxWidget.mq(c.maxLength)}else if(C.k!=null){r=C.k.getBox();pui.Lr(r);r.B=C.B;attachInputEvents(r);C.k.mq(c.maxLength)}else pui.Lr(C);
347
347
  if(G=="id"&&f){C=g.designer;r=C.selection;if(g.dom.id!=e&&document.getElementById(e)!=null)if(!(pui.is_old_ie&&g.dom.id.toUpperCase()==e.toUpperCase())){pui.alert('The widget id "'+e+'" is already in use.');C.ob.refresh();return E}for(p=0;p<r.Yd.length;p++)if(g.properties.newitem=="true")if(Bc[C.Na.ub]&&Bc[C.Na.ub].items){m=Bc[C.Na.ub].items;for(y=0;y<m.length;y++)if(m[y].id==g.properties.id)m[y].id=e}if(a["field type"]=="tab panel")for(p=0;p<C.items.length;p++)if(C.items[p].properties["parent tab panel"]==
348
348
  g.dom.id){C.items[p].properties["parent tab panel"]=e;C.items[p].dom.Va=e;C.items[p].pb["parent tab panel"]=true;C.ob.Uh("parent tab panel")}r.Yd.length==1&&C.ob.sB("Properties - "+B)}if(G=="parent tab panel"&&(f||a.visibility!="hidden"))c.Va=B;if(G=="parent tab")c.eb=B;if(G=="top"||G=="left"||G=="right"||G=="bottom")pui.py(c);G=="empty text"&&!f&&pui.hz(c,B);C=null;if(String(e).substr(0,3).toLowerCase()=="js:")C=e.substr(3);if(String(e).substr(0,11).toLowerCase()=="javascript:")C=e.substr(11);if(String(e).substr(0,
349
349
  7).toLowerCase()=="script:")C=e.substr(7);if(b.r!=null){if(b.r=="visibility"&&f)if(B=="hidden"){c.style.filter="alpha(opacity=30)";c.style.opacity=0.3}else{c.style.filter="";c.style.opacity="";c.style.visibility=B}else if(b.r=="backgroundColor"&&c.tabPanel!=null){c.tabPanel.Ic=B?B:"#eeeeff";if(P=="genie"||f)c.tabPanel.z()}else{try{s=pui.Os(b.r,B);if(b.r=="textTransform"&&B=="uppercase")if(c.tagName=="INPUT"&&c.type=="text"||c.tagName=="TEXTAREA"){c.value=pui.Qe(c.value,false);c.addEventListener("input",
@@ -361,7 +361,7 @@ c.comboBoxWidget.choices;eval("choices = pui.temp_value.slice(0);")}if(c.t!=null
361
361
  G.substr(0,1).toUpperCase()+G.substr(1)+" Error:\n")}if(c.comboBoxWidget!=null&&c.comboBoxWidget.choices!=null){eval("pui.temp_value = choices;");c.comboBoxWidget.choices=pui.temp_value.slice(0)}if(c.t!=null&&c.t.choices!=null){eval("pui.temp_value = choices;");c.t.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.t!=null&&c.t.te!=null){eval("pui.temp_value = values;");
362
362
  c.t.te=pui.temp_value.slice(0)}};else if(G!="onselect"&&G!="ondragstart")b=function(ba){if(pui.rj==null)if(!(c.getAttribute!=null&&c.getAttribute("disabled")=="true"||c.disabled!=null&&c.disabled==true)){if(c.F=="true"||c.F=="send data")pui.F=c.F;eval("var row;");l!=null&&eval("row = "+l+";");eval("var rrn;");l!=null&&eval("rrn = "+l+";");eval("var rowNumber;");c.Yb!=null&&eval("rowNumber = "+(c.Yb+1)+";");pui.temp_event=ba;eval("var event = pui.temp_event;");try{var ea=eval(e);if(typeof ea=="function"){if(!ba)ba=
363
363
  window.event;ea(ba,this)}}catch(pa){pui.Ea(pa,G.substr(0,1).toUpperCase()+G.substr(1)+" Error:\n")}}};if(!f&&b!=null){c[G]=b;c.comboBoxWidget!=null&&G!="onselect"&&G!="onoptiondisplay"&&c.comboBoxWidget.Kn(G,b);c.k!=null&&G!="onselect"&&G!="onoptiondisplay"&&c.k.Kn(G,b)}}if(f){if(e!=""||a[G]!=null)a[G]=e;g.pb[G]=true;if(G=="field type"||G=="left"||G=="right"||G=="top"||G=="bottom"||G=="z index"||G=="visibility"||G=="height"||G=="width"||G=="label"||G=="color"||G=="font family"||G=="font size"||G==
364
- "font style"||G=="font weight")g.wh();g.Kg();h!=null&&h.Fj();if(P=="dspf"){if(G=="id"){pui.ide.cB();pui.ide.dB()}if(G=="id"||G=="field type"||G=="value")pui.ide.eu();if(!g.Lf&&n!==true){g.designer.tp();pui.ide.refreshRibbon()}}}p=D.qc;m=D.cw;y=null;if(m!=null)y=m[G];if(y!=null||p!=null)da=new pui.bn(e,B,f,a,J,E,c,G,g,h);p!=null&&p(da);y!=null&&y(da);return E}
364
+ "font style"||G=="font weight")g.wh();g.Lg();h!=null&&h.Fj();if(P=="dspf"){if(G=="id"){pui.ide.cB();pui.ide.dB()}if(G=="id"||G=="field type"||G=="value")pui.ide.eu();if(!g.Mf&&n!==true){g.designer.tp();pui.ide.refreshRibbon()}}}p=D.qc;m=D.cw;y=null;if(m!=null)y=m[G];if(y!=null||p!=null)da=new pui.bn(e,B,f,a,J,E,c,G,g,h);p!=null&&p(da);y!=null&&y(da);return E}
365
365
  pui.bn=function(b,a,c,e,f,g,h,l,n,m){this.newValue=b;this.value=a;this.design=c;this.properties=e;this.originalValue=f;this.dom=g;this.za=h;this.propertyName=l;this.d=n;this.ou=m};pui.bn.prototype.evalProperty=function(b){return Yb(this.properties[b],this.originalValue,this.dom)};
366
366
  function Nc(b,a,c){function e(s){return s=="BLU"||s=="GRN"||s=="PNK"||s=="RED"||s=="TRQ"||s=="WHT"||s=="YLW"}var f,g,h=[],l=false,n=[],m=false,r=null;for(g=0;g<a.length;g++){f=false;if(c&&g==a.length-1)f=true;var p=a[g];if(!(p==null||p=="")){if(e(p)){if(m&&!f)continue;if(m){if(f&&r!=null){h[r]=p;continue}}else{m=true;r=h.length}}h.push(p);if(p=="PR"||p=="PR-UL"){b.readOnly=true;b.tabIndex="-1";if(b.tagName=="SELECT"&&!Db())b.disabled=true;if(b.comboBoxWidget!=null){f=b.comboBoxWidget.getBox();f.readOnly=
367
367
  true;if(!Db())f.disabled=true;f.tabIndex="-1"}if(b.k!=null){f=b.k.getBox();f.readOnly=true;f.disabled=true;f.tabIndex="-1"}}if(p=="RI")l=true;if(e(p)||p=="HI")n.push(p)}}if(l)for(g=0;g<n.length;g++)h.push("RI-"+n[g]);a=h.join(" ");b.setAttribute("class",a);b.className=a}
@@ -376,27 +376,27 @@ function Sc(b,a){var c,e;c=b!=null&&typeof b=="object"?b:document.getElementById
376
376
  if(c.tagName=="TEXTAREA")e=c.value;else if(c.tagName=="INPUT"){var f=c.Id;if(a&&f!=null&&typeof f.value==="string")if(f.value.length>0)e=c.Id.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.k!=null)e=c.k.getValue();if(c.signaturePad!=null)e=c.signaturePad.getValue();
377
377
  if(c.T!=null)e=String(c.value);if(c.L!=null){e="";if(c.L.Pd&&c.L.Mh!=null)e=c.L.Mh;else if(!c.L.Pd&&c.L.Lh!=null)e=c.L.Lh}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 Tc(b,a){return Kb(Sc(b,a))}function Ab(b){return document.getElementById(b)}
378
378
  function Uc(b,a){var c;c=typeof b=="object"?b:document.getElementById(b);if(c!=null){if(c.tagName=="DIV")if(c.T!=null)c.T.setValue(a);else if(c.comboBoxWidget!=null)c.comboBoxWidget.setValue(a);else if(c.k!=null)c.k.setValue(a);else if(c.button&&c.button.l)c.button.l.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.D.RA(c);c.value=a;if(c.Id!=null)c.Id.value=a}if(P=="dspf"||pui.ea&&c.B==null){c.modified=true;pui.Ze(c);var e=c.G;if(c.id!=null&&c.id.indexOf(".")==-1&&c.mc!=null)pui.sf[c.mc]=true;if(e!=null){e.hide();e.ia=true;pui.ca(c,e.Ag())}}if(P=="genie"&&c.B!=null&&c.B.idx!=null)pui.response[c.B.idx]=c;pui.se(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.D.RA(c);c.value=a;if(c.Id!=null)c.Id.value=a}if(P=="dspf"||pui.ea&&c.B==null){c.modified=true;pui.Ze(c);var e=c.G;if(c.id!=null&&c.id.indexOf(".")==-1&&c.mc!=null)pui.tf[c.mc]=true;if(e!=null){e.hide();e.ia=true;pui.ca(c,e.Bg())}}if(P=="genie"&&c.B!=null&&c.B.idx!=null)pui.response[c.B.idx]=c;pui.se(c);if(c.pui&&c.pui.properties)c.pui.properties.value=a}}
380
380
  function Vc(b,a,c,e,f){if(typeof b=="string"){f=c;e=a;c=b;b=a=0}var g;if(c==null)c="div";g=c=c.toLowerCase();if(c=="dspf")g="div";if(c=="button")g="input";g=document.createElement(g);g.style.position="absolute";g.style.top=b*pui.Jl+Ka+"px";g.style.left=a*pui.Il+"px";if(e!=null)switch(c){case "div":g.innerHTML=e;break;case "dspf":b=new pui.Ajax(e);b.async=false;b.send();if(b.It())g.innerHTML=b.yc();break;case "input":g.value=e;break;case "button":g.type="button";g.value=e;g.className="button";if(!pui.is_quirksmode)g.style.width=
381
381
  "55px";break;case "img":g.src=e;break}if(f!=null)g.id=f;if(c=="input"){document.forms.main.appendChild(g);T(g,"keydown",vb)}else{P=="genie"&&document.getElementById(Ea).appendChild(g);P=="dspf"&&pui.runtimeContainer.appendChild(g)}return g}function ub(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 Wc={};
382
382
  function Tb(b){if(typeof b!=="string")return b;for(;b.charAt(0)==" ";)b=b.replace(b.charAt(0),"");return b}function Ob(b){if(typeof b!=="string")return b;for(;b.charAt(b.length-1)==" ";)b=b.substring(0,b.length-1);return b}function Kb(b){if(typeof b!=="string")return b;return b.replace(/^\s*|\s*$/g,"")}pui.detachCalendar=function(b){if(typeof b=="string")b=Ab(b);b!=null&&pui.Tp(b)};
383
383
  function Xb(b,a){var c;try{c=document.createElement("<"+b+' name="'+a+'">')}catch(e){c=document.createElement(b);c.name=a}return c}function Lc(b){if(typeof b=="string")b=Ab(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 Vb(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 g=["PUI0009101.PGM","PUI0009102.PGM","PUI0009103.PGM","PUI0009104.PGM","PUI0009107.PGM","PUI0009109.PGM","PUI0009110.PGM","PUI0009119.PGM"];if(typeof pui.widgetURLPrefix==="string"&&g.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=Vb;function T(b,a,c){b.addEventListener(a,c,false);typeof b.Uf==="function"&&b.Uf(a,c)}function Zb(b,a,c){b.removeEventListener(a,c,false);if(Array.isArray(b.Oe))for(var e=0,f=b.Oe.length;e<f;e++){var g=b.Oe[e];if(typeof g==="object"&&g!==null&&g.name===a&&g.al===c){b.By&&b.By.splice(e,1);delete g.name;delete g.al;break}}}
385
+ null)f=pui.serverURL+f;return f}pui.getProgramURL=Vb;function T(b,a,c){b.addEventListener(a,c,false);typeof b.Vf==="function"&&b.Vf(a,c)}function Zb(b,a,c){b.removeEventListener(a,c,false);if(Array.isArray(b.Oe))for(var e=0,f=b.Oe.length;e<f;e++){var g=b.Oe[e];if(typeof g==="object"&&g!==null&&g.name===a&&g.al===c){b.By&&b.By.splice(e,1);delete g.name;delete g.al;break}}}
386
386
  function Xc(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
- function Yc(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.Po=function(b){return pui.Bg(b).x};
388
- pui.Ns=function(b){return pui.Bg(b).y};pui.Bg=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};
387
+ function Yc(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.Po=function(b){return pui.Cg(b).x};
388
+ pui.Ns=function(b){return pui.Cg(b).y};pui.Cg=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};
389
389
  function Zc(){return pui.currentFormatNames}function $c(){var b={},a="";a=location.search.substring(1,location.search.length);if(a.length==0)return b;a=a.replace(/\+/g," ");a=a.split("&");for(var c=0;c<a.length;c++){var e=a[c].split("="),f=decodeURIComponent(e[0]),g="";if(e.length==2)g=decodeURIComponent(e[1]);b[f]=g}return b}if(typeof Jc!="undefined")window.Vz=Jc;
390
390
  pui.pi={encode:function(b){for(var a="",c=0;c<b.length;c++){var e=b.codePointAt(c);e>65535&&c++;if(e<128)a+=String.fromCharCode(e);else{if(e<2048)a+=String.fromCharCode(e>>6|192);else{if(e<65536)a+=String.fromCharCode(e>>12|224);else{a+=String.fromCharCode(e>>18|240);a+=String.fromCharCode(e>>12&63|128)}a+=String.fromCharCode(e>>6&63|128)}a+=String.fromCharCode(e&63|128)}}return a},decode:function(b){for(var a="",c=0,e=0,f=0,g=0,h=0;c<b.length;){e=b.charCodeAt(c);if(e<128){a+=String.fromCharCode(e);
391
391
  c++}else if(e<224){f=b.charCodeAt(c+1);a+=String.fromCharCode((e&31)<<6|f&63);c+=2}else if(e<240){f=b.charCodeAt(c+1);g=b.charCodeAt(c+2);a+=String.fromCharCode((e&15)<<12|(f&63)<<6|g&63);c+=3}else{f=b.charCodeAt(c+1);g=b.charCodeAt(c+2);h=b.charCodeAt(c+3);a+=String.fromCodePoint((e&7)<<18|(f&63)<<12|(g&63)<<6|h&63);c+=4}}return a}};
392
- pui.Mq={lf:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(b){var a="",c,e,f,g,h,l,n=0;for(b=pui.pi.encode(b);n<b.length;){c=b.charCodeAt(n++);e=b.charCodeAt(n++);f=b.charCodeAt(n++);g=c>>2;c=(c&3)<<4|e>>4;h=(e&15)<<2|f>>6;l=f&63;if(isNaN(e))h=l=64;else if(isNaN(f))l=64;a=a+this.lf.charAt(g)+this.lf.charAt(c)+this.lf.charAt(h)+this.lf.charAt(l)}return a},decode:function(b){var a="",c,e,f,g,h,l=0;for(b=b.replace(/[^A-Za-z0-9+/=]/g,"");l<b.length;){c=this.lf.indexOf(b.charAt(l++));
393
- e=this.lf.indexOf(b.charAt(l++));g=this.lf.indexOf(b.charAt(l++));h=this.lf.indexOf(b.charAt(l++));c=c<<2|e>>4;e=(e&15)<<4|g>>2;f=(g&3)<<6|h;a+=String.fromCharCode(c);if(g!=64)a+=String.fromCharCode(e);if(h!=64)a+=String.fromCharCode(f)}return a=pui.pi.decode(a)}};
392
+ pui.Mq={mf:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(b){var a="",c,e,f,g,h,l,n=0;for(b=pui.pi.encode(b);n<b.length;){c=b.charCodeAt(n++);e=b.charCodeAt(n++);f=b.charCodeAt(n++);g=c>>2;c=(c&3)<<4|e>>4;h=(e&15)<<2|f>>6;l=f&63;if(isNaN(e))h=l=64;else if(isNaN(f))l=64;a=a+this.mf.charAt(g)+this.mf.charAt(c)+this.mf.charAt(h)+this.mf.charAt(l)}return a},decode:function(b){var a="",c,e,f,g,h,l=0;for(b=b.replace(/[^A-Za-z0-9+/=]/g,"");l<b.length;){c=this.mf.indexOf(b.charAt(l++));
393
+ e=this.mf.indexOf(b.charAt(l++));g=this.mf.indexOf(b.charAt(l++));h=this.mf.indexOf(b.charAt(l++));c=c<<2|e>>4;e=(e&15)<<4|g>>2;f=(g&3)<<6|h;a+=String.fromCharCode(c);if(g!=64)a+=String.fromCharCode(e);if(h!=64)a+=String.fromCharCode(f)}return a=pui.pi.decode(a)}};
394
394
  pui.downloadJSON=function(){if(pui.recordTest)pui.saveRecording();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.Yk("text/plain","json.txt",b)}};
395
395
  pui.saveRecording=function(b){for(var a=null,c=0;c<pui.Cc.payloads.length;c++){if(!a&&pui.Cc.responses[c].appJob)a=pui.Cc.responses[c].appJob.user;pui.Cc.payloads[c].response=pui.Cc.responses[c]}var e=$c().testid;(c=e)||(c=prompt("Enter recording name"));if(c)if(pui.pjsServer)if(pui.Cc.payloads.length===0)pui.alert("No recording to save.");else{a={id:e,appuser:a,payloads:pui.Cc.payloads};c={"Content-Type":"application/json"};if(sessionStorage["atrium-token"])c.Authorization="Basic "+sessionStorage["atrium-token"];
396
396
  fetch("/auto-testing/save-recording",{method:"POST",headers:c,body:JSON.stringify(a)}).then(function(g){if(g.ok){window.parent&&window.parent.Atrium&&window.parent.Atrium.api&&typeof window.parent.Atrium.api.reloadNavParent==="function"&&window.parent.Atrium.api.reloadNavParent("test-"+e);pui.Cc={payloads:[],responses:[]};typeof b==="function"?b():pui.alert("Recording saved.")}else pui.alert("Failed to save recording.")})["catch"](function(g){pui.alert("Error: Unable to save recording.");console.error("Fetch error:",
397
- g)})}else{a=JSON.stringify({user:a,payloads:pui.Cc.payloads});var f=c;f.endsWith(".json")||(f+=".json");if(pui["recording path"]){c=[];c.push({name:"path",value:pui["recording path"]+f});c.push({name:"text",value:"1"});c.push({name:"replace",value:"Y"});c.push({name:"json",value:a,fileName:f});a=new pui.Rq;a.Ar(c);c=Vb("PUI0001109.pgm");c=c.replace("/auth","");a.send(c,function(g){var h,l={};if(g.Ff()!=200)h=g.Zi();if(!h){l=eval("("+g.yc()+")");l.success||(h=l.errorText)}if(h)pui.alert(h);else{pui.alert("Recording saved.");
397
+ g)})}else{a=JSON.stringify({user:a,payloads:pui.Cc.payloads});var f=c;f.endsWith(".json")||(f+=".json");if(pui["recording path"]){c=[];c.push({name:"path",value:pui["recording path"]+f});c.push({name:"text",value:"1"});c.push({name:"replace",value:"Y"});c.push({name:"json",value:a,fileName:f});a=new pui.Rq;a.Ar(c);c=Vb("PUI0001109.pgm");c=c.replace("/auth","");a.send(c,function(g){var h,l={};if(g.Gf()!=200)h=g.Zi();if(!h){l=eval("("+g.yc()+")");l.success||(h=l.errorText)}if(h)pui.alert(h);else{pui.alert("Recording saved.");
398
398
  pui.Cc={payloads:[],responses:[]}}})}else pui.Yk("text/plain",f,a)}};
399
- pui.keepAlive=function(){var b;if(!(P=="genie"&&pui.D.Nd==true)){if(P=="dspf")b=pui.D==null?Vb("PUI0001200.pgm"):Vb("PUI0002110.pgm");else if(P=="genie")b=window.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.hk(pui.D.Nd=true);if(P=="dspf")pui.Pb=false;pui.Ve();var c={keepalive:"1"};if(pui.isCloud)c.workspace_id=pui.cloud.ws.id;Wb({url:pui.pg(b),
399
+ pui.keepAlive=function(){var b;if(!(P=="genie"&&pui.D.Nd==true)){if(P=="dspf")b=pui.D==null?Vb("PUI0001200.pgm"):Vb("PUI0002110.pgm");else if(P=="genie")b=window.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.hk(pui.D.Nd=true);if(P=="dspf")pui.Pb=false;pui.Ve();var c={keepalive:"1"};if(pui.isCloud)c.workspace_id=pui.cloud.ws.id;Wb({url:pui.qg(b),
400
400
  method:"post",params:c,sendAsBinary:false,suppressAlert:true,handler:function(){pui.bc();if(P=="genie")pui.hk(pui.D.Nd=false);if(P=="dspf")pui.Pb=true;for(var e=0;e<pui.bb.length;e++)pui.bb[e].unMask()},onfail:function(e){pui.onoffline==null&&!pui["suppress comm errors"]&&pui.alert(pui.Vi(e));pui.bc();if(P=="genie")pui.hk(pui.D.Nd=false);if(P=="dspf")pui.Pb=true;for(e=0;e<pui.bb.length;e++)pui.bb[e].unMask();pui.onoffline!=null&&pui.onoffline()}});return true}};
401
401
  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;
402
402
  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)};
@@ -423,8 +423,8 @@ e.onprogress.lastTime+2E3){g.innerHTML="Downloading file: "+c+"<br>"+n.type+" "+
423
423
  n=="error.txt"){var m=new FileReader;m.onload=function(){pui.alert("Error downloading file: "+c+"\n\n"+m.result,null,"Error","Close");console.log(m.result)};m.readAsText(e.response)}else{var r=null;if(typeof b.contentType==="string"&&b.contentType.length>0)r=b.contentType;else{r=e.getResponseHeader("Content-Type").split(";")[0];if(typeof r==="string"&&r=="application/octet-stream"){var p=n.split(".").pop();if(typeof p==="string")switch(p.toLowerCase()){case "pdf":r="application/pdf";break;case "txt":r=
424
424
  "text/plain";break;case "csv":r="text/csv";break;case "json":r="application/json";break;case "xml":r="application/xml";break;case "html":r="text/html";break;case "htm":r="text/html";break;case "jpg":r="image/jpeg";break;case "jpeg":r="image/jpeg";break;case "png":r="image/png";break;case "gif":r="image/gif";break}}}p=["application/pdf","text/plain","text/csv","application/json","application/xml","text/html","image/jpeg","image/png","image/gif"];var s=new File([e.response],n,{type:r});s=URL.createObjectURL(s);
425
425
  var t=document.createElement("a");if(typeof b.inline==="boolean"&&b.inline&&p.includes(r))t.target="_blank";else t.download=n;t.name=n;t.href=s;document.body.appendChild(t);t.dispatchEvent(new MouseEvent("click",{bubbles:true,cancelable:true,view:window}));document.body.removeChild(t)}}}}};pui.extractFileNameFromContentDisposition=function(b){b=/filename[^;=\n]*=((['"]).*?\2|[^;\n]*)/.exec(b);if(b!=null&&b[1])return b[1].replace(/['"]/g,"");return null};
426
- pui.focusOnContainer=function(){window.parent!=window&&pui.hi(window.parent)&&window.parent.noderun||setTimeout(function(){if(pui.Mc==null){pui.Mc=document.createElement("input");pui.Mc.type=pui.is_touch?"button":"text";pui.Mc.readOnly=true;pui.Mc.style.position="absolute";pui.Mc.style.left="-999px";pui.Mc.style.top="-999px";pui.Mc.style.width="10px";pui.Mc.style.borderStyle="none";pui.Mc.style.backgroundColor="transparent";pui.runtimeContainer&&pui.runtimeContainer.appendChild(pui.Mc)}pui.Gg=true;
427
- pui.Mc.focus();setTimeout(function(){pui.Gg=false},0)},1)};pui.addCSS=function(b){var a=document.getElementsByTagName("head")[0],c=document.createElement("style");c.type="text/css";if(pui.is_old_ie)c.styleSheet.cssText=b;else c.innerHTML=b;a.appendChild(c)};
426
+ pui.focusOnContainer=function(){window.parent!=window&&pui.hi(window.parent)&&window.parent.noderun||setTimeout(function(){if(pui.Mc==null){pui.Mc=document.createElement("input");pui.Mc.type=pui.is_touch?"button":"text";pui.Mc.readOnly=true;pui.Mc.style.position="absolute";pui.Mc.style.left="-999px";pui.Mc.style.top="-999px";pui.Mc.style.width="10px";pui.Mc.style.borderStyle="none";pui.Mc.style.backgroundColor="transparent";pui.runtimeContainer&&pui.runtimeContainer.appendChild(pui.Mc)}pui.Hg=true;
427
+ pui.Mc.focus();setTimeout(function(){pui.Hg=false},0)},1)};pui.addCSS=function(b){var a=document.getElementsByTagName("head")[0],c=document.createElement("style");c.type="text/css";if(pui.is_old_ie)c.styleSheet.cssText=b;else c.innerHTML=b;a.appendChild(c)};
428
428
  pui.loadCSS=function(b){if(pui.Oo(b)!=null)return false;var a=document.getElementsByTagName("head")[0],c=document.createElement("link");c.setAttribute("rel","stylesheet");c.setAttribute("type","text/css");c.setAttribute("media","screen");c.setAttribute("href",pui.normalizeURL(b));a.appendChild(c);return true};
429
429
  pui.removeCSS=function(b){var a=document.getElementsByTagName("head")[0],c=pui.Oo(b);if(c==null){c=a.getElementsByTagName("style");for(var e=0;e<c.length;e++){var f=c[e];if(f.innerHTML==b||f.styleSheet!=null&&f.styleSheet.cssText==b){a.removeChild(f);return true}}return false}else{a.removeChild(c);return true}};
430
430
  pui.loadJS=function(b){if(b==null)return null;var a,c,e,f;if(typeof b=="string")a=b;if(typeof b=="object"){a=b.path;c=b.callback;e=b.onerror;f=b.test;if(f!=null&&typeof f=="function"&&f()==true)return false}if(a==null)return null;if(pui.Qo(pui.normalizeURL(a))!=null)return false;b=document.getElementsByTagName("head")[0];var g=false,h=document.createElement("script");h.type="text/javascript";h.onreadystatechange=function(){if(h.readyState=="complete"||h.readyState=="loaded")if(!(f!=null&&typeof f==
@@ -436,7 +436,7 @@ window&&pui.hi(window.parent)&&window.parent.noderun?console.log("Suppressed ale
436
436
  pui.getDisplayType=function(){return pui.ea?"5250-handler":P=="dspf"?"rdf":"5250"};
437
437
  function bd(b){function a(){if(!(r>=m.length)){t=m[r].command;w=m[r].wait;r+=1;if(typeof pui.onPCCommand=="function")try{var y=pui.onPCCommand(t,w);if(y==null||y==true){setTimeout(a,0);return}}catch(E){showFailureMessage(t)}s="?cmd="+encodeURIComponent(t)+"&wait="+(w?"1":"0");if(h==1||h==2)if(l){z.params.cmd=t;z.params.sign=1;z.params.hashalg=typeof pui["pccmd hash sign algorithm"]==="string"?pui["pccmd hash sign algorithm"].toUpperCase():"SHA-512";z.handler=f;ac(z)}else c("");else if(h==3){z.params.cmd=
438
438
  t;z.handler=e;ac(z)}else{if(r==0&&m.length>0){y=[];for(var J=0;J<m.length;J++)y.push("("+m[J].dA+")");t=y.join(" && ")}try{n.runCommand(t)}catch(B){y='Unable to execute "'+t+'".\n\n';if(B!=null)y+=B.name+":\n\n"+B.message+".";alert(y)}}}}function c(y){if(h==2){var E=new Image;E.onload=a;E.onerror=function(){console.log("PC Command Listener image mode failure.");g(t)};E.src=p+s+"&type=image&rnd="+String(Math.random())+String((new Date).getTime())+y}else{y=new pui.Ajax(p+s+y);y.method="GET";y.async=
439
- w?false:true;y.suppressAlert=true;y.onfail=function(B){if(B.Ff()!=200){console.log("PC Command Listener comm. failure: "+B.Zi());g(t)}};y.onsuccess=function(B){try{var G=JSON.parse(B.yc());if(!G.success&&typeof G.error==="string"){console.log("PC Command Listener failure.",G.error);g(t);return}}catch(D){}a()};try{y.send()}catch(J){console.log("PC Command Listener failure.",J);g(t)}}}function e(y,E){try{if(E)throw E;if(y==null)throw Error("Empty response from PCCMD crypt program.");if(y.error!=null||
439
+ w?false:true;y.suppressAlert=true;y.onfail=function(B){if(B.Gf()!=200){console.log("PC Command Listener comm. failure: "+B.Zi());g(t)}};y.onsuccess=function(B){try{var G=JSON.parse(B.yc());if(!G.success&&typeof G.error==="string"){console.log("PC Command Listener failure.",G.error);g(t);return}}catch(D){}a()};try{y.send()}catch(J){console.log("PC Command Listener failure.",J);g(t)}}}function e(y,E){try{if(E)throw E;if(y==null)throw Error("Empty response from PCCMD crypt program.");if(y.error!=null||
440
440
  typeof y.error==="string"&&y.error.length>0)throw Error("PCCMD crypt error: "+String(y.error));if(typeof y.cmd!=="string"||y.cmd.length==0)throw Error("PCCMD crypt response was missing a command.");var J="puilaunch:"+encodeURIComponent(y.cmd),B=document.createElement("iframe");B.style.display="none";B.src=J;document.body.appendChild(B);setTimeout(function(){B!=null&&B.parentNode!=null&&document.body.removeChild(B);B=null;a()},5E3)}catch(G){console.log(G)}}function f(y,E){try{if(E)throw E;if(typeof y!==
441
441
  "object"||y===null)throw Error("Empty response");if(y.success!==true)throw typeof y.error==="string"&&y.error.length>0?y.error:"Unknown error";var J="";if(typeof y.sig==="string"&&y.sig.length>0)J="&sig="+encodeURIComponent(y.sig);c(J)}catch(B){console.log(B);g(t)}}function g(y){console.log("Command: "+y);y=pui.getLanguageText("runtimeMsg","pccommand error");pui["alert pccommand errors"]!==false?alert(y):console.log(y);console.log("Visit https://docs.profoundlogic.com/x/aQFK for more information on supporting STRPCCMD.")}
442
442
  var h=1,l=false;if(pui["use pc listener"])h=1;if(window.HTTPS!=null&&window.HTTPS=="ON"&&h==1)h=2;if(pui["pc listener mode"])h=parseInt(pui["pc listener mode"]);if(typeof pui["pc command mode"]=="string")switch(pui["pc command mode"]){case "applet":h=0;break;case "listener":case "listener_m1":h=1;break;case "listener_m1s":h=1;l=true;break;case "listener_m2":h=2;break;case "listener_m2s":h=2;l=true;break;case "launcher":h=3;break;default:h=1;console.log("Unsupported pc command mode:",pui["pc command mode"])}if(h==
@@ -470,7 +470,7 @@ pui.shiftElements=function(b,a,c){function e(f){f=document.getElementsByTagName(
470
470
  pui.getRuntimeContainerHeight=function(){function b(c){c=document.getElementsByTagName(c);for(var e=0;e<c.length;e++){var f=c[e],g=parseInt(f.style.top);if(f.parentNode==pui.runtimeContainer&&!isNaN(g)){f=f.offsetHeight;if(!isNaN(f)){f+=g;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.Nk={};
471
471
  pui.show=function(b){var a=b.path,c=b.meta,e=b.appJob||{},f=b.format||b.screen,g=b.formats||b.screens,h=b.data;if(h==null)h={};h.__pui_show=true;var l=b.handler;if(!(c==null&&a==null)){if(c==null&&pui.Nk[a]!=null)c=pui.Nk[a];if(c==null){c={method:"get",cacheBuster:true,handler:function(t){b.meta=t;b.appJob=e;pui.Nk[a]=t;pui.show(b)}};if(b.method)c.method=b.method;g=pui.my(a);if(g==null){c.url=a;ac(c)}else{c.url=Vb("PUI0001102.pgm");c.params=g;c.handler=function(t){t=t.replace(/''/g,"'");pui.display=
472
472
  null;eval(t);b.meta=pui.display;pui.Nk[a]=pui.display;pui.show(b)};Wb(c)}}else{if(g==null&&f!=null){g=[];g.push(f)}f=[];if(g!=null)for(var n=0;n<c.formats.length;n++)for(var m=c.formats[n],r=0;r<g.length;r++)if(m.screen["record format name"]==g[r]){f.push({metaData:m,data:h,name:m.screen["record format name"]});break}f.length==0&&f.push({metaData:c.formats[0],data:h});var p=b.container;if(p!=null&&typeof p=="string")p=Ab(b.container);pui.runtimeContainer=p==null?Ab("pui"):p;var s={container:pui.runtimeContainer,
473
- appJob:e,layers:[{formats:f}],success:true};if(b.transition)s.Tg=b.transition;setTimeout(function(){pui.handler=l;if(pui.handler==null)pui.handler=na();pui.render(s);if(b.setDims){var t=pui.getDimensions(p);p.style.width=t.x2+"px";p.style.height=t.y2+"px"}},0)}}};pui.applyResponse=function(b,a){for(var c in a)b[c]=a[c]};
473
+ appJob:e,layers:[{formats:f}],success:true};if(b.transition)s.Ug=b.transition;setTimeout(function(){pui.handler=l;if(pui.handler==null)pui.handler=na();pui.render(s);if(b.setDims){var t=pui.getDimensions(p);p.style.width=t.x2+"px";p.style.height=t.y2+"px"}},0)}}};pui.applyResponse=function(b,a){for(var c in a)b[c]=a[c]};
474
474
  pui.setMLTCHCFLD=function(b,a){if(pui.F!="true"){for(var c=0,e=0;e<a.length;e++){var f=Ab(a[e]);f!=null&&f.checked==true&&c++}e=Ab(b);if(e!=null)for(var g in pui.N)if(pui.N[g][0]==e){pui.du[g]=String(c);return}}};pui.setPSHBTNFLD=function(b,a){for(var c=a.id,e="",f=c.length-1;f>=0;f-=1){var g=c.substr(f,1);if(g<"0"||g>"9")break;e=g+e}e=Number(e);isNaN(e)||Uc(b,String(e));pui.click(a,true)};
475
475
  pui.buildFKeyMenu=function(b){var a,c;if(b==null)b={};var e=b.prefix;if(e==null)e="btn";var f=b.fkeyMenuId;if(f==null){f="fkeyMenu";if(b.format!=null)f=b.format+"_"+f;if(b.file!=null)f=b.file+"_"+f}var g=b.skipF24;if(g==null)g=true;var h=b.skipHelp;if(h==null)h=false;var l=b.availableKeys;if(typeof l=="string")l=[l];b="";if(l!=null)for(a=0;a<l.length;a++){var n=Ab(l[a]);if(n!=null)b+=" "+Lc(n)}b=Kb(b);f=Ab(f);if(f!=null){l=f.t;if(l!=null){a=f.parentNode;if(a!=null){l.choices=[];l.te=[];for(n=a.firstChild;n!=
476
476
  null;){var m=n.id;if(!(m==null||m.length<=e.length||m.substr(0,e.length)!=e)){var r=m.substr(e.length);if(r.substr(0,2)=="CA"||r.substr(0,2)=="CF"){r=Number(r.substr(2));if(isNaN(r)||r<1||r>24){n=n.nextSibling;continue}r="F"+r}r+="=";if(r=="Submit=")r=null;n.style.left="-250px";n.style.top="-250px";a=-1;if(r!=null&&b!=""){a=b.indexOf(r);if(a==-1){n=n.nextSibling;continue}}if(!(r=="F24="&&g))if(!(r=="HELP="&&h))if(n.style.display!="none")if(n.style.visibility!="hidden"){r=n.tagName=="INPUT"?n.value:
@@ -480,8 +480,8 @@ true;var g=b.handler;if(g==null)g=function(h){if(h.success==false)pui.alert(h.er
480
480
  var m=Vb("PUI0009109.PGM");m+="?AUTH="+encodeURIComponent(pui.Z?pui.Z:pui.appJob.auth);m+="&mode=ajax";if(pui.isCloud)m+="&workspace_id="+pui.cloud.ws.id;n.upload(h,encodeURI(m),function(r){var p={};try{p=eval("("+decodeURIComponent(r.response)+")")}catch(s){p.success=false;p.error="Invalid response."}r.success=p.success;r.success||(r.error=p.key?pui.getLanguageText("runtimeMsg","upload "+p.key):p.error);g(r)},function(r){r.success=false;r.error="An error has occurred: Code = "+r.code;g(r)},l)},function(h){g({success:false,
481
481
  error:h})},f)};
482
482
  pui.Lz=function(b,a){var c=b.overwrite===true,e=b.data,f=e.indexOf(";base64,")+8;f=e.substring(f);var g=b.imageType;e=Vb("PUI0009109.PGM");e+="?AUTH="+encodeURIComponent(pui.Z?pui.Z:pui.appJob.auth);e+="&mode=ajax";e+="&r="+Math.floor(Math.random()*1E9);if(pui.isCloud)e+="&workspace_id="+pui.cloud.ws.id;c=[{name:"file",value:f,contenttype:g,filename:b.fileName,transferencoding:"base64"},{name:"dir",value:b.dir},{name:"overwrite",value:c?"1":"0"},{name:"flimit",value:"1"},{name:"slimit",value:String(Math.ceil(f.length/
483
- 1048576))},{name:"filename",value:b.fileName}];f=new pui.Rq;f.Ar(c);f.send(e,function(h){var l=true,n;if(h.Ff()==200){var m;try{m=eval("("+h.yc()+")")}catch(r){l=false;n="Server response missing or invalid."}if(m)(l=m.success)||(n=m.key?pui.getLanguageText("runtimeMsg","upload "+m.key):m.error)}else{l=false;n=h.Ff()+" - "+h.Zi()+"."}typeof a=="function"&&a(l,n)})};
484
- pui.uploadSignature=function(b){var a=Ab(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.Lz(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=Ab(b);pui.Gg=true;var e=b.G;if(e==null)e=new pui.eg(b);pui.P(b,e.Ag());e.Yh(a);e.show(c);setTimeout(function(){pui.Gg=false},0)};
483
+ 1048576))},{name:"filename",value:b.fileName}];f=new pui.Rq;f.Ar(c);f.send(e,function(h){var l=true,n;if(h.Gf()==200){var m;try{m=eval("("+h.yc()+")")}catch(r){l=false;n="Server response missing or invalid."}if(m)(l=m.success)||(n=m.key?pui.getLanguageText("runtimeMsg","upload "+m.key):m.error)}else{l=false;n=h.Gf()+" - "+h.Zi()+"."}typeof a=="function"&&a(l,n)})};
484
+ pui.uploadSignature=function(b){var a=Ab(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.Lz(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=Ab(b);pui.Hg=true;var e=b.G;if(e==null)e=new pui.fg(b);pui.P(b,e.Bg());e.Yh(a);e.show(c);setTimeout(function(){pui.Hg=false},0)};
485
485
  pui.expandAccordionSection=function(b,a){var c=Ab(b);c&&c.Ja&&typeof c.Ja.we==="function"&&c.Ja.we(a)};pui.runAttnProgram=function(){P=="dspf"&&pui.submitResponse({attn:"1"})};
486
486
  pui.captureData=function(b,a){function c(g){for(var h=document.getElementsByTagName(g),l=0;l<h.length;l++){var n=h[l],m=n.name;if(m!=null&&m!=""){var r=n.value;n=n.type;if(g==="button"||n=="submit"||n==="reset"||n==="button")r="0";f[m]=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};
487
487
  pui.getAllScreenProps=function(b){if(b&&typeof b!="string")return false;if(!pui.Ud||!pui.Ud.layers)return false;for(var a=pui.Ud.layers,c=[],e=0;e<a.length;e++){for(var f=a[e].formats,g=0;g<f.length;g++){var h=f[g],l=h.name,n=h.data,m=h.metaData.screen;h=h.metaData.ref;var r={formatName:l};for(var p in m)p=="onload"||p=="onsubmit"||p=="onmessage"||(r[p]=pui.Q(m[p],n,h));c.push(r)}if(b&&pui.Kb(b)===l)return r}if(b)return false;return c};
@@ -490,28 +490,28 @@ pui.runLogic=function(b,a,c){if(pui.clientLogic&&pui.clientLogic[b]){pui.routine
490
490
  if(h==true)return true;var l=false,n=document.createElement("script");n.type="text/javascript";n.onreadystatechange=function(){if(n.readyState=="complete"||n.readyState=="loaded"){!l&&g!=null&&g();l=true}};n.onload=function(){!l&&g!=null&&g();l=true};a[f]=n;n.src=pui.normalizeURL(f);e.appendChild(n);return true};this.load=function(f){var g;c.init();var h=null,l;if(f!=null){l=false;h=f.metaData.screen}else{l=true;h=Hb.designer.hq[Hb.designer.Na.ub]}var n={},m=1;g=h["external css"];for(l||(g=pui.Q(g,
491
491
  f.data,f.ref));g!=null;){n[g]=true;m++;g=h["external css "+m];l||(g=pui.Q(g,f.data,f.ref))}m=[];for(g in b)n[g]!=true&&m.push(g);for(var r=0;r<m.length;r++){g=m[r];e.removeChild(b[g]);delete b[g]}for(g in n)c.Wv(g);var p=0;if(l!=true){m=1;for(g=pui.Q(h["external javascript"],f.data,f.ref);g!=null;){if(c.zr(g,na(),true)){f.Qj=false;p++}m++;g=pui.Q(h["external javascript "+m],f.data,f.ref)}if(p>0){m=1;for(g=pui.Q(h["external javascript"],f.data,f.ref);g!=null;){c.zr(g,function(){p-=1;if(p==0){pui.onload!=
492
492
  null&&typeof pui.onload=="function"&&pui.onload(f);if(pui.clientLogic){var s=h["initial routine"];if(s&&s.routine){s=s.routine;try{eval('pui["routineFunction"] = function() {\r\n'+pui.clientLogic[s]+'\r\n}; \r\npui["routineFunction"]();')}catch(t){console.error(t)}}}s=h.onload;if(s!=null&&s!="")try{eval('var format = "'+h["record format name"]+'";');eval('var file = "'+f.file+'";');eval(s)}catch(w){pui.Ea(w,"Onload Error:\n")}if(h.onmessage&&f.msgInfo!=null){pui.message=f.msgInfo;try{eval('var message = pui["message"];');
493
- eval(h.onmessage)}catch(z){pui.Ea(z,"Onmessage Error:\n")}}}});m++;g=pui.Q(h["external javascript "+m],f.data,f.ref)}}}}};pui.Zw=new pui.hv;pui.eg=function(b){function a(w,z){setTimeout(function(){w==n&&t.hide()},z)}function c(){if(t.Hc>=0&&t.Hc<=100){t.I.style.filter="alpha(opacity="+t.Hc+")";t.I.style.opacity=t.Hc/100}if(l)t.Hc-=30;else t.Hc+=20;if(l&&t.Hc<=0||!l&&t.Hc>=100)if(l){t.I.style.display="none";t.I.style.visibility="hidden";t.Hc=0}else{t.I.style.filter="alpha(opacity=100)";t.I.style.opacity=1;t.Hc=100}else setTimeout(c,100)}function e(w){if(!pui.Gx){w=tb(w);if(w!=null){w=w.G;w!=null&&w.ia!=true&&w.show()}}}function f(w){var z=
494
- w.keyCode;if(!(z>=9&&z<=45))if(!(z>=112&&z<=145)){w=tb(w);if(w!=null){z=w.G;if(z!=null){z.hide();z.ia=true;pui.ca(w,z.Ag())}}}}function g(w){w=tb(w);if(w!=null){var z=w.G;if(z!=null){z.hide();z.ia=true;pui.ca(w,z.Ag())}}}function h(w){if(w!=null)t.Ub=w;else if(typeof r.pui.properties["error message location"]!="undefined")t.Ub=r.pui.properties["error message location"];if(t.Ub!="left"&&t.Ub!="right"&&t.Ub!="top"&&t.Ub!="bottom")t.Ub="right"}this.container=null;this.Hc=0;var l=false,n=0,m=b,r=b;this.Ub=
493
+ eval(h.onmessage)}catch(z){pui.Ea(z,"Onmessage Error:\n")}}}});m++;g=pui.Q(h["external javascript "+m],f.data,f.ref)}}}}};pui.Zw=new pui.hv;pui.fg=function(b){function a(w,z){setTimeout(function(){w==n&&t.hide()},z)}function c(){if(t.Hc>=0&&t.Hc<=100){t.I.style.filter="alpha(opacity="+t.Hc+")";t.I.style.opacity=t.Hc/100}if(l)t.Hc-=30;else t.Hc+=20;if(l&&t.Hc<=0||!l&&t.Hc>=100)if(l){t.I.style.display="none";t.I.style.visibility="hidden";t.Hc=0}else{t.I.style.filter="alpha(opacity=100)";t.I.style.opacity=1;t.Hc=100}else setTimeout(c,100)}function e(w){if(!pui.Gx){w=tb(w);if(w!=null){w=w.G;w!=null&&w.ia!=true&&w.show()}}}function f(w){var z=
494
+ w.keyCode;if(!(z>=9&&z<=45))if(!(z>=112&&z<=145)){w=tb(w);if(w!=null){z=w.G;if(z!=null){z.hide();z.ia=true;pui.ca(w,z.Bg())}}}}function g(w){w=tb(w);if(w!=null){var z=w.G;if(z!=null){z.hide();z.ia=true;pui.ca(w,z.Bg())}}}function h(w){if(w!=null)t.Ub=w;else if(typeof r.pui.properties["error message location"]!="undefined")t.Ub=r.pui.properties["error message location"];if(t.Ub!="left"&&t.Ub!="right"&&t.Ub!="top"&&t.Ub!="bottom")t.Ub="right"}this.container=null;this.Hc=0;var l=false,n=0,m=b,r=b;this.Ub=
495
495
  "right";var p="";this.Bi="";if(typeof r.pui.properties["error message css class"]=="string")this.Bi=Kb(r.pui.properties["error message css class"]);if(this.Bi=="")this.Bi="pui-tip-error";var s=this.Bi+"-invalid";this.qb=this.Fc=this.I=null;var t=this;if(r.pui.properties["error message attach"]=="parent"){this.$q=true;this.container=r.parentNode}else{this.$q=false;this.container=pui.jx(r);if(this.container==null)this.container=pui.runtimeContainer}if(m.comboBoxWidget!=null)m=m.comboBoxWidget.getBox();
496
- if(m.k!=null)m=m.k.getBox();T(m,"focus",e);m.tagName=="INPUT"&&(m.type=="text"||pui.rl(m.type))||T(m,"click",e);T(m,"blur",function(w){if(!pui.Gg){w=tb(w);if(w!=null){w=w.G;w!=null&&w.hide()}}});m.tagName=="SELECT"?T(m,"change",g):T(m,"keydown",f);m.G=this;h();fd(this);this.Yh=function(w){p=w;t.Fc.innerHTML='<div class="pui-tip-icon" />';t.Fc.appendChild(document.createTextNode(p))};this.setPosition=function(w,z){t.I.style.left=w+"px";t.I.style.top=z+"px"};this.qy=function(){var w,z=t.I.offsetHeight,
497
- y=t.I.offsetWidth;w=r.offsetHeight;var E=r.offsetWidth,J=t.Ub;h();if(J!=t.Ub){fd(t);t.Yh(p)}if(t.Ub=="left"||t.Ub=="right"){z=r.offsetTop-(z-w)/2;y=t.Ub=="left"?r.offsetLeft-y-3:r.offsetLeft+E+3}else{y=r.offsetLeft+(E-y)/2;z=t.Ub=="top"?r.offsetTop-z-3:r.offsetTop+w+3}E=r.parentNode;if(E==null||pui.is_old_ie&&E.nodeName=="#document-fragment"){h("right");fd(t);t.Yh(p);z=0;y=-7}else{if(this.$q){if(y<0)y=0;if(z<0)z=0}else if(E.getAttribute("container")=="true"){w=pui.layout.Ef(E);z+=w.y;y+=w.x}if(E!=
498
- t.container&&E.getAttribute("container")!="true"){y+=E.offsetLeft;z+=E.offsetTop;w=E.parentNode;if(w!=t.container){y+=w.offsetLeft;z+=w.offsetTop;if(w.parentNode.getAttribute("container")=="true"){w=pui.layout.Ef(w.parentNode);z+=w.y;y+=w.x}}}}if(r.style.visibility=="hidden"){w=r.eb;E=r.Va;if(w!=null&&E){E=Ab(E);if(E!=null){E=E.tabPanel;if(E!=null)if(E.selectedTab!=w){E.selectedTab=w;E.z()}}}}t.setPosition(y,parseInt(z))};this.show=function(w,z){this.ia=false;if(z==true)setTimeout(function(){t.show(w,
499
- false)},0);else{if(t.I.style.display=="none"){t.I.style.display="block";t.I.style.visibility="";t.Hc=0;l=false;c()}n+=1;if(n>1E4)n=0;w!=null&&a(n,w);t.qy()}};this.hide=function(){l=true;c()};this.Bx=function(){t.I.style.display="none";t.I.style.visibility="hidden";t.Hc=0};this.Ag=function(){return s}};pui.eg.prototype=Object.create(pui.tc.prototype);
500
- pui.eg.prototype.destroy=function(){this.I.removeEventListener("mousedown",this);this.qb.removeEventListener("mousedown",this);this.qb.removeEventListener("mouseup",this);this.qb.removeEventListener("click",this);this.I.removeChild(this.qb);this.I.removeChild(this.Fc);this.I.parentNode.removeChild(this.I);this.Kc()};
496
+ if(m.k!=null)m=m.k.getBox();T(m,"focus",e);m.tagName=="INPUT"&&(m.type=="text"||pui.rl(m.type))||T(m,"click",e);T(m,"blur",function(w){if(!pui.Hg){w=tb(w);if(w!=null){w=w.G;w!=null&&w.hide()}}});m.tagName=="SELECT"?T(m,"change",g):T(m,"keydown",f);m.G=this;h();fd(this);this.Yh=function(w){p=w;t.Fc.innerHTML='<div class="pui-tip-icon" />';t.Fc.appendChild(document.createTextNode(p))};this.setPosition=function(w,z){t.I.style.left=w+"px";t.I.style.top=z+"px"};this.qy=function(){var w,z=t.I.offsetHeight,
497
+ y=t.I.offsetWidth;w=r.offsetHeight;var E=r.offsetWidth,J=t.Ub;h();if(J!=t.Ub){fd(t);t.Yh(p)}if(t.Ub=="left"||t.Ub=="right"){z=r.offsetTop-(z-w)/2;y=t.Ub=="left"?r.offsetLeft-y-3:r.offsetLeft+E+3}else{y=r.offsetLeft+(E-y)/2;z=t.Ub=="top"?r.offsetTop-z-3:r.offsetTop+w+3}E=r.parentNode;if(E==null||pui.is_old_ie&&E.nodeName=="#document-fragment"){h("right");fd(t);t.Yh(p);z=0;y=-7}else{if(this.$q){if(y<0)y=0;if(z<0)z=0}else if(E.getAttribute("container")=="true"){w=pui.layout.Ff(E);z+=w.y;y+=w.x}if(E!=
498
+ t.container&&E.getAttribute("container")!="true"){y+=E.offsetLeft;z+=E.offsetTop;w=E.parentNode;if(w!=t.container){y+=w.offsetLeft;z+=w.offsetTop;if(w.parentNode.getAttribute("container")=="true"){w=pui.layout.Ff(w.parentNode);z+=w.y;y+=w.x}}}}if(r.style.visibility=="hidden"){w=r.eb;E=r.Va;if(w!=null&&E){E=Ab(E);if(E!=null){E=E.tabPanel;if(E!=null)if(E.selectedTab!=w){E.selectedTab=w;E.z()}}}}t.setPosition(y,parseInt(z))};this.show=function(w,z){this.ia=false;if(z==true)setTimeout(function(){t.show(w,
499
+ false)},0);else{if(t.I.style.display=="none"){t.I.style.display="block";t.I.style.visibility="";t.Hc=0;l=false;c()}n+=1;if(n>1E4)n=0;w!=null&&a(n,w);t.qy()}};this.hide=function(){l=true;c()};this.Bx=function(){t.I.style.display="none";t.I.style.visibility="hidden";t.Hc=0};this.Bg=function(){return s}};pui.fg.prototype=Object.create(pui.tc.prototype);
500
+ pui.fg.prototype.destroy=function(){this.I.removeEventListener("mousedown",this);this.qb.removeEventListener("mousedown",this);this.qb.removeEventListener("mouseup",this);this.qb.removeEventListener("click",this);this.I.removeChild(this.qb);this.I.removeChild(this.Fc);this.I.parentNode.removeChild(this.I);this.Kc()};
501
501
  function fd(b){var a=b.I!=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.Fc.parentNode.removeChild(b.Fc);b.Fc=null;b.I.removeEventListener("mousedown",b);b.I.parentNode.removeChild(b.I);b.I=null}b.I=document.createElement("div");b.I.classList.add("pui-tip");if(b.Ub=="top")b.I.classList.add("pui-tip-top");else if(b.Ub=="bottom")b.I.classList.add("pui-tip-bottom");else b.Ub=="left"?
502
502
  b.I.classList.add("pui-tip-left"):b.I.classList.add("pui-tip-right");b.I.classList.add(b.Bi);b.I.style.position="absolute";b.Fc=document.createElement("div");b.Fc.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.I.addEventListener("mousedown",b);if(!a){b.I.style.display="none";b.I.style.visibility="hidden"}b.I.appendChild(b.Fc);b.I.appendChild(b.qb);
503
- b.container.appendChild(b.I)}pui.eg.prototype.handleEvent=function(b){switch(b.type){case "mousedown":if(b.target==this.qb)this.qb.className="pui-tip-close-click";ub(b);return false;case "mouseup":this.qb.className="pui-tip-close";break;case "click":this.I.style.display="none";this.I.style.visibility="hidden";this.Hc=0;break;case "scroll":break}};function jd(b){function a(){if(!(Da&&la)){w=true;setTimeout(m,200)}}function c(ca){ma=true;ca=ca||window.event;var qa=ca.keyCode;if((qa==38||qa==40)&&J.style.display=="block"){var Aa;if(qa==38)Aa=da!=null?da-1:aa.length-1;else if(qa==40)Aa=da!=null?da+1:0;if(Aa<0||Aa>=aa.length)Aa=null;g(Aa,true);ca.cancelBubble=true;ca.returnValue=false;ca.preventDefault&&ca.preventDefault();ca.stopPropagation&&ca.stopPropagation();return false}else if(qa==9&&da!=null)r();else if(qa==9&&da==null&&pui["autocomplete tab selects"]==
503
+ b.container.appendChild(b.I)}pui.fg.prototype.handleEvent=function(b){switch(b.type){case "mousedown":if(b.target==this.qb)this.qb.className="pui-tip-close-click";ub(b);return false;case "mouseup":this.qb.className="pui-tip-close";break;case "click":this.I.style.display="none";this.I.style.visibility="hidden";this.Hc=0;break;case "scroll":break}};function jd(b){function a(){if(!(Da&&la)){w=true;setTimeout(m,200)}}function c(ca){ma=true;ca=ca||window.event;var qa=ca.keyCode;if((qa==38||qa==40)&&J.style.display=="block"){var Aa;if(qa==38)Aa=da!=null?da-1:aa.length-1;else if(qa==40)Aa=da!=null?da+1:0;if(Aa<0||Aa>=aa.length)Aa=null;g(Aa,true);ca.cancelBubble=true;ca.returnValue=false;ca.preventDefault&&ca.preventDefault();ca.stopPropagation&&ca.stopPropagation();return false}else if(qa==9&&da!=null)r();else if(qa==9&&da==null&&pui["autocomplete tab selects"]==
504
504
  true){da=0;r()}else if(qa==13){if((qa=J.style.display=="block")&&J.children.length==1&&J.children[0].textContent.toUpperCase()===ca.currentTarget.value.toUpperCase()){da=0;r();m();return true}if(qa&&da!=null){r();m();ca.cancelBubble=true;ca.returnValue=false;ca.preventDefault&&ca.preventDefault();ca.stopPropagation&&ca.stopPropagation();return false}else{m();if(qa){ca.cancelBubble=true;ca.returnValue=false;ca.preventDefault&&ca.preventDefault();ca.stopPropagation&&ca.stopPropagation();return false}}}}
505
505
  function e(ca){ma=false;ca=ca||window.event;ca=ca.keyCode;if(!(ka.readOnly||ka.disabled))if(Kb(ka.value)==""){if(ha)ha.value="";m()}else if(ca==8||ca>=46&&ca<=90||ca>=96&&ca<=111||ca>=186&&ca<=222||(window.eA!=null||typeof window.orientation!=="undefined")&&(ca==0||ca==229))if(ka.value.replace(/ /g,"")!="")if(jb&&d)h(Ob(ka.value.toUpperCase()));else{clearTimeout(N);w=false;N=setTimeout(function(){l(Ob(ka.value))},rb)}}function f(){if(!ma)if(Kb(ka.value)==""){if(ha)ha.value="";m()}else if(ka.value.replace(/ /g,
506
506
  "")!="")if(jb&&d)h(Ob(ka.value.toUpperCase()));else{w=false;l(Ob(ka.value))}}function g(ca,qa){if(da!=null&&J.childNodes!=null&&J.childNodes[da]!=null){J.childNodes[da].className=J.childNodes[da].className.replace(" autocomplete-selected","");J.childNodes[da].className=J.childNodes[da].className.replace("autocomplete-selected","")}if(ca!=null){var Aa=J.childNodes[ca];Aa.className+=" autocomplete-selected";if(qa==true&&typeof Aa.scrollIntoView==="function"){var db=0;if(typeof window.pageYOffset=="number")db=
507
507
  window.pageYOffset;else if(document.body&&document.body.scrollTop)db=document.body.scrollTop;else if(document.documentElement&&document.documentElement.scrollTop)db=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=db+Va;var mb=Aa.offsetTop+Aa.parentNode.offsetTop,Ra=Aa.parentNode.parentNode;mb+=Ra.offsetTop;
508
508
  if(Ra.parentNode!=null&&Ra.parentNode.grid!=null){mb+=Ra.parentNode.offsetHeight;mb+=Ra.parentNode.parentNode.offsetHeight}if(mb+Aa.offsetHeight>Va||mb<db){ea=true;Aa.scrollIntoView(true);setTimeout(function(){ea=false},1)}if(Da&&Aa.offsetTop>W&&!ea){ea=true;Aa.scrollIntoView(true);setTimeout(function(){ea=false},1)}}}da=ca}function h(ca){if(ha)ha.value="";if(ca!=""){ob({results:[{field1:""}]});aa=[];for(var qa=0;qa<Wa.length;qa++)if(b.Ew)Wa[qa][0].toUpperCase().indexOf(ca)!=-1&&aa.push({field1:Wa[qa][0],
509
509
  field2:Wa[qa][1]});else Wa[qa][0].toUpperCase().indexOf(ca)==0&&aa.push({field1:Wa[qa][0],field2:Wa[qa][1]});if(aa.length==0)m();else if(ha&&aa.length==1&&ka.value.toUpperCase()==aa[0][U].toUpperCase()){ha.value=p(aa[0],ra);m()}else n()}}function l(ca){if(ca=="")m();else if(!(bb&&bb(Ia,ca)==false)){ba=null;ca=encodeURIComponent(eb)+"="+encodeURIComponent(ca);if(xb!=null)ca+="&limit="+xb;if((xb==null||xb=="")&&pui["Default Auto Complete Max Choices"]!=null)ca+="&limit="+encodeURIComponent(pui["Default Auto Complete Max Choices"]);
510
- if(Ia)for(var qa in Ia)if(!(Ia[qa]==null&&qa==="AUTH")){ca+="&";ca+=encodeURIComponent(qa)+"="+encodeURIComponent(Ia[qa])}if(pui["read db driven data as ebcdic"]!==true)ca+="&UTF8=Y";if(ha)Ha+=1;qa=Ia.AUTH?new pui.Ajax(pui.mf(Ba)):new pui.Ajax(Ba);qa.method="post";qa.async=true;qa.suppressAlert=true;qa.postData=ca;qa.sequence=fa;qa.onready=function(Aa){if(ha)Ha-=1;if(Aa.sequence!=null){if(Aa.sequence<fa)return;fa++}if(Aa=Ib(Aa,"Generate Auto-Complete Suggestions"))if(Kb(ka.value)=="")m();else if(w)m();
511
- else{Aa=eval(Aa);aa=Aa.results;if(P==="dspf"&&typeof Aa.valueField==="string"){ra=Aa.valueField;ha={value:""};ka.Id=ha}if((ra==null||U==null)&&aa!=null&&aa.length>0)for(var db in aa[0]){if(ra==null)ra=db;if(U==null)U=db}if(ha&&aa!=null&&aa.length==1&&ka.value.toUpperCase()==aa[0][U].toUpperCase())ha.value=p(aa[0],ra);else if(ha)ha.value="";if(aa!=null&&aa.length>0){ob&&ob(Aa);n()}else m();Y&&pui.yf(Y,true,ka.id)}else Y&&pui.yf(Y,false,ka.id)};qa.send()}}function n(){var ca,qa=ka.offsetWidth;if(!pui.is_old_ie||
510
+ if(Ia)for(var qa in Ia)if(!(Ia[qa]==null&&qa==="AUTH")){ca+="&";ca+=encodeURIComponent(qa)+"="+encodeURIComponent(Ia[qa])}if(pui["read db driven data as ebcdic"]!==true)ca+="&UTF8=Y";if(ha)Ha+=1;qa=Ia.AUTH?new pui.Ajax(pui.nf(Ba)):new pui.Ajax(Ba);qa.method="post";qa.async=true;qa.suppressAlert=true;qa.postData=ca;qa.sequence=fa;qa.onready=function(Aa){if(ha)Ha-=1;if(Aa.sequence!=null){if(Aa.sequence<fa)return;fa++}if(Aa=Ib(Aa,"Generate Auto-Complete Suggestions"))if(Kb(ka.value)=="")m();else if(w)m();
511
+ else{Aa=eval(Aa);aa=Aa.results;if(P==="dspf"&&typeof Aa.valueField==="string"){ra=Aa.valueField;ha={value:""};ka.Id=ha}if((ra==null||U==null)&&aa!=null&&aa.length>0)for(var db in aa[0]){if(ra==null)ra=db;if(U==null)U=db}if(ha&&aa!=null&&aa.length==1&&ka.value.toUpperCase()==aa[0][U].toUpperCase())ha.value=p(aa[0],ra);else if(ha)ha.value="";if(aa!=null&&aa.length>0){ob&&ob(Aa);n()}else m();Y&&pui.zf(Y,true,ka.id)}else Y&&pui.zf(Y,false,ka.id)};qa.send()}}function n(){var ca,qa=ka.offsetWidth;if(!pui.is_old_ie||
512
512
  !pui.is_quirksmode)qa-=2;if(Na==null||Na<qa)Na=qa;J.style.width=Na+"px";qa=aa;if(b.fs){qa=[];var Aa=false;for(ca=0;ca<b.fs.length;ca++){var db=ka.value,Va=jb[ca];if(db!==null&&Va!==null){Va=Va.substr(0,db.length);db=db.toUpperCase();Va=Va.toUpperCase()}if(db==Va){qa.push(b.fs[ca]);Aa=true}else if(Aa)break}}if(!pb){var mb;for(ca in qa[0]){mb=ca;break}pb='<div class="autocomplete-item">('+mb+")</div>"}J.innerHTML="";for(ca=0;ca<qa.length;ca++){mb=pb;for(var Ra in qa[ca])mb=mb.replace("("+Ra+")",qa[ca][Ra]);
513
513
  J.innerHTML+=mb;J.lastChild.setAttribute("recordIndex",String(ca))}for(ca=0;ca<J.childNodes.length;ca++)J.childNodes[ca].addEventListener("mousemove",s,false);J.style.display="block";ca=ka;y=ka.offsetTop;E=ka.offsetLeft;if(ka.parentNode!=null&&ka.parentNode.k){y=ka.parentNode.offsetTop;E=ka.parentNode.offsetLeft;ca=ka.parentNode}Ra=ca.parentNode;if(Ra.parentNode.grid){y+=Ra.offsetTop;E+=Ra.offsetLeft;Ra=Ra.parentNode;y+=Ra.offsetTop;E+=Ra.offsetLeft;Ra=Ra.parentNode}if(Ra.getAttribute("container")==
514
- "true"){Ra=pui.layout.Ef(Ra);y+=Ra.y;E+=Ra.x}if(P=="genie")if(ca.parentNode.layerInfo){y+=ca.parentNode.offsetTop+ca.parentNode.clientTop;E+=ca.parentNode.offsetLeft+ca.parentNode.clientLeft}y+=ka.offsetHeight;y+=wa;E+=fb;ca=pui.Vs();if(y-ca+J.offsetHeight>pui.getWindowSize().height){Ra=y-J.offsetHeight-ka.offsetHeight-3;if(Ra-ca>=0)y=Ra}J.style.top=y+"px";J.style.left=E+"px";if(pa){J.style.height="";Da=false;if(J.clientHeight>W){J.style.height=String(W)+"px";Da=true}J.style.overflowY="auto"}if(qb){B.style.top=
514
+ "true"){Ra=pui.layout.Ff(Ra);y+=Ra.y;E+=Ra.x}if(P=="genie")if(ca.parentNode.layerInfo){y+=ca.parentNode.offsetTop+ca.parentNode.clientTop;E+=ca.parentNode.offsetLeft+ca.parentNode.clientLeft}y+=ka.offsetHeight;y+=wa;E+=fb;ca=pui.Vs();if(y-ca+J.offsetHeight>pui.getWindowSize().height){Ra=y-J.offsetHeight-ka.offsetHeight-3;if(Ra-ca>=0)y=Ra}J.style.top=y+"px";J.style.left=E+"px";if(pa){J.style.height="";Da=false;if(J.clientHeight>W){J.style.height=String(W)+"px";Da=true}J.style.overflowY="auto"}if(qb){B.style.top=
515
515
  y+3+"px";B.style.left=E-4+"px";B.style.width=Na+10+"px";B.style.height=J.offsetHeight+2+"px";G.style.top="0px";G.style.left="0px";G.style.width="6px";if(J.offsetHeight>=6)G.style.height=J.offsetHeight-6+"px";if(J.offsetHeight>=6)K.style.top=J.offsetHeight-6+"px";K.style.left="0px";K.style.height="6px";K.style.width="6px";if(J.offsetHeight>=6)C.style.top=J.offsetHeight-6+"px";C.style.left="6px";C.style.height="6px";C.style.width=Na-2+"px";D.style.top="0px";D.style.right="0px";D.style.width="6px";if(J.offsetHeight>=
516
516
  6)D.style.height=J.offsetHeight-6+"px";if(J.offsetHeight>=6)M.style.top=J.offsetHeight-6+"px";M.style.right="0px";M.style.height="6px";M.style.width="6px";B.style.display="block"}}function m(){if(J!=null)J.style.display="none";if(qb)B.style.display="none";aa=[];da=null}function r(){if(da!=null){for(var ca in aa[da]){ka.value=aa[da][ca];break}ba=aa[da];if(ha!=null)if(aa[da]!=null)ha.value=p(aa[da],ra);if(Eb)if(pui.cc(b.Jt))pui.runLogic(b.Jt.routine,ka.n,ka.gk);else try{var qa=eval(Eb);typeof qa=="function"&&
517
517
  qa(ba,ka)}catch(Aa){pui.Ea(Aa,"Onselect error:\n")}}}function p(ca,qa){var Aa=ca[qa];if(Aa==null)for(var db in ca)Aa=ca[db];return Aa}function s(ca){if(!ea){ca=ca||window.event;ca=ca.target||ca.srcElement;var qa=ca.getAttribute("recordIndex");if(qa==""||qa==null){ca=ca.parentNode;qa=ca.getAttribute("recordIndex");if(qa==""||qa==null)return}g(Number(qa))}}function t(ca){if(Da&&x!=null&&J.offsetWidth!=null){var qa=ca.currentTarget.getBoundingClientRect().right-x;if(pui.Po(ca)>qa)return true}return false}
@@ -523,17 +523,17 @@ b.onselect;if(b.Kt!=null)Y=b.Kt;if(typeof b.template!="undefined")pb=b.template;
523
523
  true;setTimeout(function(){ka.focus()},0);if(!t(ca)){r();m()}},false);J.addEventListener("mouseup",function(){la=false},false);oa.appendChild(J);if(qb){sa="";if(Fa=="ON")sa="https://"+HTTP_HOST;sa+=pui.normalizeURL("/profoundui/proddata/images/");B=document.createElement("div");B.style.display="none";B.style.padding="0px";B.style.margin="0px";B.style.position="absolute";B.style.zIndex=xa-1;B.style.fontSize="0px";G=document.createElement("div");G.style.padding="0px";G.style.margin="0px";G.style.position=
524
524
  "absolute";G.style.background="transparent url("+sa+"shadow-side.png) repeat-y scroll";B.appendChild(G);K=document.createElement("div");K.style.padding="0px";K.style.margin="0px";K.style.position="absolute";K.style.background="transparent url("+sa+"shadow.png) no-repeat scroll 0px -12px";B.appendChild(K);C=document.createElement("div");C.style.padding="0px";C.style.margin="0px";C.style.position="absolute";C.style.background="transparent url("+sa+"shadow.png) repeat-x scroll 0px -36px";B.appendChild(C);
525
525
  D=document.createElement("div");D.style.padding="0px";D.style.margin="0px";D.style.position="absolute";D.style.background="transparent url("+sa+"shadow-side.png) repeat-y scroll -6px";B.appendChild(D);M=document.createElement("div");M.style.padding="0px";M.style.margin="0px";M.style.position="absolute";M.style.background="transparent url("+sa+"shadow.png) no-repeat scroll 0px -6px";B.appendChild(M);oa.appendChild(B)}ka.addEventListener("keyup",e,false);ka.addEventListener("keydown",c,false);ka.addEventListener("blur",
526
- a,false);ka.addEventListener("input",f,false);if(!Array.isArray(pui.pe)||pui.pe.length==0){window.addEventListener("resize",pui.Or,false);pui.pe=[]}pui.pe.push(z);pui.Vg.push(z);this.Du=function(ca){pb=ca};this.fj=function(){return J.style.display=="block"};this.setWidth=function(ca){Na=ca};this.EA=function(){return ba};this.destroy=function(){if(ka){ka.removeEventListener("keyup",e);ka.removeEventListener("keydown",c);ka.removeEventListener("blur",a);ka.removeEventListener("input",f)}for(var ca=
527
- pui.pe.length-1;ca>=0;ca--)if(pui.pe[ca]===this){pui.pe.splice(ca,1);break}pui.pe.length==0&&window.removeEventListener("resize",pui.Or);z=this.destroy=Y=Wa=d=jb=ob=bb=Eb=qb=Ia=ka=oa=ba=ha=N=aa=da=U=M=K=C=D=G=B=J=null};this.av=function(ca){Ba=ca};this.resize=function(){this.fj()&&n()}}
526
+ a,false);ka.addEventListener("input",f,false);if(!Array.isArray(pui.pe)||pui.pe.length==0){window.addEventListener("resize",pui.Or,false);pui.pe=[]}pui.pe.push(z);if(!pui.$e)pui.$e=[];pui.$e.push(z);this.Du=function(ca){pb=ca};this.fj=function(){return J.style.display=="block"};this.setWidth=function(ca){Na=ca};this.EA=function(){return ba};this.destroy=function(){if(ka){ka.removeEventListener("keyup",e);ka.removeEventListener("keydown",c);ka.removeEventListener("blur",a);ka.removeEventListener("input",
527
+ f)}for(var ca=pui.pe.length-1;ca>=0;ca--)if(pui.pe[ca]===this){pui.pe.splice(ca,1);break}pui.pe.length==0&&window.removeEventListener("resize",pui.Or);z=this.destroy=Y=Wa=d=jb=ob=bb=Eb=qb=Ia=ka=oa=ba=ha=N=aa=da=U=M=K=C=D=G=B=J=null};this.av=function(ca){Ba=ca};this.resize=function(){this.fj()&&n()}}
528
528
  pui.dw=function(b,a,c){var e,f,g=Yb(b["choices database file"],a,c),h=Yb(b["choice options field"],a,c),l=pui.Ah(h),n=Yb(b["choices url"],a,c);h=Yb(b["use choices url for reverse lookup"],a,c);h=n!=""&&h!=null&&(h=="true"||h==true)?true:false;var m=Yb(b["choice values field"],a,c),r=Yb(b["max choices"],a,c);e=Yb(b["contains match"])=="true";var p=Yb(b.choices,a,c);p=pui.ga(p);if(p.length==0)p=[""];var s=Yb(b["choice values"],a,c);if(s==""){s=[];for(f=0;f<p.length;f++)s.push(p[f])}else s=pui.ga(s);
529
529
  if(s.length==0)s=[""];var t=Kb(Yb(b["results template"],a,c));if(t=="")t=null;if(g!=""&&l[0]!=""||n!=""||p.length>0&&p[0]!=""&&s[0]!=""){f=Yb(b.onselect,a,c);var w;if(f!=null&&f!=""){w=f;f=w.indexOf("(");if(f!=-1)if(w.substr(f+1,1)==")")w=w.substr(0,f)}var z=Yb(b.ondbload,a,c);if(typeof z!="string"||z=="")z=null;var y={};if(pui.isCloud)y.workspace_id=pui.cloud.ws.id;if(pui.Z)y.AUTH=pui.Z;else if(n==""||!pui.pj){y.AUTH=pui.appJob.auth;if(typeof pui.vId!=="undefined")y.VID=pui.vId}if(n==""&&p[0]==""&&
530
530
  s[0]==""){e=Yb(b["contains match"],a,c)=="true";var E="SELECT DISTINCT ";for(f=0;f<l.length;f++){if(f!=0)E+=", ";E+=l[f]}if(m!="")E+=","+m;E+=" FROM "+g;E+=" WHERE UPPER("+l[0]+") LIKE '";if(e)E+="%";E+="!!QUERY!!%'";f=Yb(b["choices selection criteria"],a,c);if(f!="")E+=" AND ("+f+")";E+=" ORDER BY "+l[0]}if(c.zb!=null&&c.zb.destroy!=null){c.zb.destroy();c.zb=null}var J;if(P=="dspf"&&Db())J=Hb.designer.container;else{for(f=c.parentNode;f;){if(f.Ac){J=f;break}f=f.parentNode}if(J==null)J=pui.runtimeContainer}var B=
531
531
  function(D){D=Ob(D.replace(/\u00DF/g,"\u1e9e"));D=D.toUpperCase();return D=D.replace(/\u1E9E/g,"\u00df")},G=new jd({zq:c,url:n!=""?n:Vb("PUI0009102.PGM"),baseParams:y,container:J,Ew:e,choices:p[0]!=""?p:null,values:s[0]!=""?s:null,zl:r!=""?r:null,template:t,onselect:w,Jt:b.onselect,Kt:z,typeAheadDelay:pui["autocomplete typeahead delay"],valueField:n==""&&p[0]==""&&s[0]==""&&m!=""&&m!=l[0]?m:null,beforequery:n==""&&p[0]==""&&s[0]==""?function(D,C){if(Yb(b["case sensitive"],a,c)=="true")if(Yb(b["text transform"],
532
- a,c)=="uppercase"||c.M!=null&&c.M.textTransform=="uppercase")C=B(C);else{if(Yb(b["text transform"],a,c)=="lowercase"||c.M!=null&&c.M.textTransform=="lowercase")C=Ob(C.toLowerCase())}else C=B(C);if(C=="")return false;if(pui.secLevel>0){if(Yb(b["contains match"],a,c)=="true")C="%"+Kb(C)+"%";else C+="%";D.q=pui.$c(c);D.p1=C;pui.rd(b,D)}else{C=C.replace(/'/g,"''");D.q=pui.yb.xf(E.replace("!!QUERY!!",C))}}:null,onload:function(D){if(!t)if(c.kw!=null){c.On&&G.Du(c.On);c.Pn&&G.setWidth(c.Pn)}else{var C=
532
+ a,c)=="uppercase"||c.M!=null&&c.M.textTransform=="uppercase")C=B(C);else{if(Yb(b["text transform"],a,c)=="lowercase"||c.M!=null&&c.M.textTransform=="lowercase")C=Ob(C.toLowerCase())}else C=B(C);if(C=="")return false;if(pui.secLevel>0){if(Yb(b["contains match"],a,c)=="true")C="%"+Kb(C)+"%";else C+="%";D.q=pui.$c(c);D.p1=C;pui.rd(b,D)}else{C=C.replace(/'/g,"''");D.q=pui.yb.yf(E.replace("!!QUERY!!",C))}}:null,onload:function(D){if(!t)if(c.kw!=null){c.On&&G.Du(c.On);c.Pn&&G.setWidth(c.Pn)}else{var C=
533
533
  document.createElement("div");C.style.position="absolute";C.style.top="0px";C.style.left="0px";C.style.className="autocomplete-item";C.style.visibility="hidden";document.body.appendChild(C);var K='<div class="autocomplete-item">',M=D.colWidths,U=D.results[0],da=0,aa=0,N;for(var ha in U){if(n==""&&da==l.length)break;if(!(n!=""&&typeof D.valueField==="string"&&ha==D.valueField)){C.innerHTML="";K+='<div class="autocomplete-col" style="float: left; width: ';if(M&&M[da])if(typeof M[da]=="number"){for(N=
534
534
  0;N<M[da];N++)C.innerHTML+="a";K+=C.offsetWidth+5+'px;"';aa+=C.offsetWidth+5}else if(typeof M[da]=="string"){K+=M[da]+';"';N=Number(M[da].replace("px",""));isNaN(N)||(aa+=N)}else{K+='100px"';aa+=100}else{K+='100px"';aa+=100}K+=">("+ha+")</div>";da++}}K+="</div>";c.On=K;c.Pn=aa+20;c.kw=true;G.setWidth(c.Pn);G.Du(c.On);document.body.removeChild(C)}},shadow:pui.is_old_ie&&pui.ie_mode<=6?false:true,wu:true,maxHeight:isNaN(parseInt(Yb(b["max height"],a,c)))?null:parseInt(Yb(b["max height"],a,c))});c.zb=
535
535
  G;if((h||n==""&&l[0]!=""&&m!=""&&m!=l[0])&&c.value!=""){w=new pui.Ajax(n!=""?n:Vb("PUI0009102.PGM"));w.method="post";w.async=true;w.suppressAlert=true;if(pui.Z)w.postData="AUTH="+pui.Z;else{w.postData="AUTH="+pui.appJob.auth;if(typeof pui.vId!=="undefined")w.postData+="&VID="+pui.vId}if(h)w.postData+="&reverse=1&value="+encodeURIComponent(Ob(c.value));else if(pui.secLevel>0){w.postData+="&q="+encodeURIComponent(pui.$c(c))+".reverse";w.postData+="&p1="+encodeURIComponent(Ob(c.value));g=pui.rd(b);if(g!=
536
- "")w.postData+="&"+g}else{f=Yb(b["choices selection criteria"],a,c);g="SELECT "+l[0]+" FROM "+g+" WHERE "+m+" = '"+Ob(c.value).replace("'","''")+"'";if(f!="")g+=" AND ("+f+")";w.postData+="&q="+pui.yb.xf(g)}w.postData+="&limit=1";if(pui.isCloud)w.postData+="&workspace_id="+pui.cloud.ws.id;w.onready=function(D){Ha-=1;if(D=Ib(D,"Generate Auto-Complete Suggestions.")){var C;D=D.results[0];for(var K in D){C=K;break}if(C==null){if(pui["force auto complete match"]!==false)c.value=""}else{if(c.Id!=null)c.Id.value=
536
+ "")w.postData+="&"+g}else{f=Yb(b["choices selection criteria"],a,c);g="SELECT "+l[0]+" FROM "+g+" WHERE "+m+" = '"+Ob(c.value).replace("'","''")+"'";if(f!="")g+=" AND ("+f+")";w.postData+="&q="+pui.yb.yf(g)}w.postData+="&limit=1";if(pui.isCloud)w.postData+="&workspace_id="+pui.cloud.ws.id;w.onready=function(D){Ha-=1;if(D=Ib(D,"Generate Auto-Complete Suggestions.")){var C;D=D.results[0];for(var K in D){C=K;break}if(C==null){if(pui["force auto complete match"]!==false)c.value=""}else{if(c.Id!=null)c.Id.value=
537
537
  c.value;c.value=D[C]}}else if(pui["force auto complete match"]!==false)c.value=""};Ha+=1;w.send()}}};pui.Or=function(){for(var b=0,a=pui.pe.length;b<a;b++)pui.pe[b].resize()};function md(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++;
538
538
  a=false;c++}a==true&&c++;return c}pui.tA=md;function nd(b){this.toString=function(){return"INVALID: "+this.message};this.message=b}
539
539
  function od(b){this.ih[0][0][0]||this.Kv();var a,c,e,f,g=this.ih[0][4],h=this.ih[1];a=b.length;var l=1;if(a!==4&&a!==6&&a!==8)throw new nd("invalid key size");this.Gv=[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=g[c>>>24]<<24^g[c>>16&255]<<16^g[c>>8&255]<<8^g[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:h[0][g[c>>>24]]^h[1][g[c>>16&255]]^h[2][g[c>>8&255]]^h[3][g[c&255]]}}
@@ -542,9 +542,9 @@ xv:function(b,a){if(b.length!==4)throw new nd("invalid block size");var c=this.G
542
542
  p]=J[e>>>24]<<24^J[f>>16&255]<<16^J[g>>8&255]<<8^J[h&255]^c[s++];l=e;e=f;f=g;g=h;h=l}return t}};function pd(b){var a,c=[],e;b=b.replace(/\s|0x/g,"");e=b.length;b+="00000000";for(a=0;a<b.length;a+=8)c.push(parseInt(b.substr(a,8),16)^0);b=c;a=e*4;if(!(b.length*32<a)){b=b.slice(0,Math.ceil(a/32));e=b.length;a&=31;if(e>0&&a){c=b[e-1]&2147483648>>a-1;a=a===32?c:(c|0)+a*1099511627776;b[e-1]=a}}b=b;return b}pui.yb={};pui.yb.bw="if(a.c=='genie'){h.g=true;a.x++}";
543
543
  pui.yb.Sw=function(b){var a=pd(pui.yb.xs(pui.yb.bw,2));a=new od(a);b=pd(b);a=b=a.Rw(b);b="";var c;for(c=0;c<a.length;c++)b+=((a[c]|0)+263882790666240).toString(16).substr(4);c=a.length;a=c===0?0:(c-1)*32+(Math.round(a[c-1]/1099511627776)||32);return b=b.substring(0,a/4)};
544
544
  pui.yb.Tw=function(b,a){var c;if(b.length%4!=0)return"";for(;b.length%32!=0;)b+="0020";if(a){var e="";for(c=0;c<b.length;c+=2){e+=b.substr(c,2);e+=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"][Math.floor(Math.random()*16)];e+=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"][Math.floor(Math.random()*16)]}b=e}e="";for(c=0;c<b.length;c+=32){var f=b.substr(c,32);e+=pui.yb.Sw(f)}return e};
545
- pui.yb.xs=function(b,a){for(var c="",e=b.length,f=0,g;f<e;){for(g=b.charCodeAt(f++).toString(16);g.length<a;)g="0"+g;c+=g}return c};pui.yb.xf=function(b){b=pui.yb.xs(b,4);return pui.yb.Tw(b,true).toUpperCase()};var qd=new (function(){function b(){pui.setCookie(c,JSON.stringify(f),null,"/",null,null,"Strict")}function a(){var g=pui.getCookie(c);if(g==null)f={};else try{f=JSON.parse(g)}catch(h){f={}}e=true}var c="GenieSession";if(P=="dspf")c="PUISession";var e=false,f={};this.lm=function(g,h){e||a();f[g]=h;b()};this.getValue=function(g,h){e||a();var l=f[g];if(l==null)l=h;if(l==null)l="";return l};this.clear=function(){f={};b()};this.Cy=this.set=this.setValue=this.lm;this.get=this.getValue});
546
- window.session=qd;window.session.saveValue=qd.lm;window.session.getValue=qd.getValue;window.session.clear=qd.clear;window.session.setValue=qd.setValue;window.session.set=qd.set;window.session.put=qd.Cy;window.session.get=qd.get;pui.runtimeContainer=null;pui.hu=0;pui["refresh interval"]=null;pui.N={};pui.ph={};pui.Eh={};pui.xh={};pui.ba={};pui.$d={};pui.psid=null;pui.Pb=false;pui.vo=false;pui.V={};pui.Lg=null;pui.hd=1E3;pui.ud=null;pui.op=null;pui.pp=null;pui.modified=false;pui.sf={};pui.Gg=false;pui.Gx=false;pui.confirmOnClose=true;pui.shutdownOnClose=true;pui.skipConfirm=false;pui.tb="";pui.Sl=null;pui.Ba={};pui.p={};pui.Qk={};pui.km={};pui.Hm={};pui.xm={};pui.vq={};pui.mb={};pui.Ok={};pui.Om=null;pui.Mm=null;pui.Wl=true;
547
- pui.Jm=null;pui.Di=null;pui.jq=false;pui.wm=[];pui.ha={};pui.ha.keys={};pui.bb=[];pui.Vg=[];pui.xl=[];pui.F="false";pui.La=null;pui.Rc=null;pui.Qc=null;pui.mo="false";pui.Rd=null;pui.Rj=null;pui.Dj=false;pui.na=false;pui.Hf=false;pui.ue=null;pui.xe=null;pui.Oc=[];pui.activeElement=null;pui.Qn=false;pui.currentFormatNames=[];pui["no focus"]=false;pui.Re={};pui.Nm=null;pui.gq=[];pui.Gj={};pui.Cc={payloads:[],responses:[]};pui.Bd=[];pui.sq=20;pui.yz=8;pui.leftOffset=140;pui.Iz=0;pui.Bj=27;
545
+ pui.yb.xs=function(b,a){for(var c="",e=b.length,f=0,g;f<e;){for(g=b.charCodeAt(f++).toString(16);g.length<a;)g="0"+g;c+=g}return c};pui.yb.yf=function(b){b=pui.yb.xs(b,4);return pui.yb.Tw(b,true).toUpperCase()};var qd=new (function(){function b(){pui.setCookie(c,JSON.stringify(f),null,"/",null,null,"Strict")}function a(){var g=pui.getCookie(c);if(g==null)f={};else try{f=JSON.parse(g)}catch(h){f={}}e=true}var c="GenieSession";if(P=="dspf")c="PUISession";var e=false,f={};this.lm=function(g,h){e||a();f[g]=h;b()};this.getValue=function(g,h){e||a();var l=f[g];if(l==null)l=h;if(l==null)l="";return l};this.clear=function(){f={};b()};this.Cy=this.set=this.setValue=this.lm;this.get=this.getValue});
546
+ window.session=qd;window.session.saveValue=qd.lm;window.session.getValue=qd.getValue;window.session.clear=qd.clear;window.session.setValue=qd.setValue;window.session.set=qd.set;window.session.put=qd.Cy;window.session.get=qd.get;pui.runtimeContainer=null;pui.hu=0;pui["refresh interval"]=null;pui.N={};pui.ph={};pui.Eh={};pui.xh={};pui.ba={};pui.$d={};pui.psid=null;pui.Pb=false;pui.vo=false;pui.V={};pui.Mg=null;pui.hd=1E3;pui.ud=null;pui.op=null;pui.pp=null;pui.modified=false;pui.tf={};pui.Hg=false;pui.Gx=false;pui.confirmOnClose=true;pui.shutdownOnClose=true;pui.skipConfirm=false;pui.tb="";pui.Sl=null;pui.Ba={};pui.p={};pui.Qk={};pui.km={};pui.Hm={};pui.xm={};pui.vq={};pui.mb={};pui.Ok={};pui.Om=null;pui.Mm=null;pui.Wl=true;
547
+ pui.Jm=null;pui.Di=null;pui.jq=false;pui.wm=[];pui.ha={};pui.ha.keys={};pui.bb=[];pui.$e=[];pui.xl=[];pui.F="false";pui.La=null;pui.Rc=null;pui.Qc=null;pui.mo="false";pui.Rd=null;pui.Rj=null;pui.Dj=false;pui.na=false;pui.If=false;pui.ue=null;pui.xe=null;pui.Oc=[];pui.activeElement=null;pui.Qn=false;pui.currentFormatNames=[];pui["no focus"]=false;pui.Re={};pui.Nm=null;pui.gq=[];pui.Gj={};pui.Cc={payloads:[],responses:[]};pui.Bd=[];pui.sq=20;pui.yz=8;pui.leftOffset=140;pui.Iz=0;pui.Bj=27;
548
548
  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;
549
549
  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["prioritize onsubmit event"]=pui["prioritize onsubmit event"]?pui["prioritize onsubmit event"]:false;pui.wikihelp={};
550
550
  pui.dx={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};pui.Fn={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};
@@ -558,34 +558,34 @@ if(s==null)s=c!=null?c.split("-")[0]:"1";s=parseInt(s);if(isNaN(s)||s<1)s=1;var
558
558
  if(e.length==2){n=Number(e[1]);e=f.metaData.items;for(h=0;h<e.length;h++){l=e[h];if(l["field type"]=="grid"){m=l;break}}}}}}}if(n!=null&&!isNaN(n)&&m!=null)for(g=0;g<b.length;g++){f=b[g];c=f.metaData.screen["overlay range"];if(c!=null){e=c.split("-");if(e.length==2){e=Number(e[0]);if(!isNaN(e)&&e>n){e=Number(m["number of rows"]);if(isNaN(e)||e<=0)break;if(m["has header"]=="true")e-=1;r=Number(m["row height"]);if(isNaN(r)||r<=0)break;l=m["fold multiple"];if(l==null)l=parseInt(r/pui.sq);l=Number(l);
559
559
  if(isNaN(l)||l<1)l=1;r=parseInt(r/l);r=e*(r-pui.sq);e=m["show paging controls"];l=m["show page number"];c=m["csv export"];h=false;if(e!=null&&e!=""&&e!="false")h=true;if(l!=null&&l!=""&&l!="false")h=true;if(c!=null&&c!=""&&c!="false")h=true;if(h)r+=pui.Bj;if(r<=0)break;e=f.metaData.items;for(h=0;h<e.length;h++){l=e[h];if(l.grid==null){f=l["field type"];if(f!="panel"&&f!="css panel"&&!pui.o(l.top)&&!a("stationary",l,"css class"))l.top=parseInt(l.top)+r+"px"}}}}}}};
560
560
  pui.Ji=function(){var b;pui.Mc=null;if(pui.Ud!=null&&pui.tl!=true){if(pui.Ud.layers)for(var a=0;a<pui.Ud.layers.length;a++){var c=pui.Ud.layers[a];for(b=0;b<c.formats.length;b++){var e=c.formats[b];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.Ud}for(;pui.bb.length>0;){b=pui.bb.pop();b!=null&&typeof b.destroy=="function"&&b.destroy()}for(;pui.xl.length>0;){b=pui.xl.pop();b!=null&&typeof b.destroy=="function"&&
561
- b.destroy()}if(typeof FusionCharts!="undefined")for(;pui.Zn.length>0;){b=pui.Zn.pop();b!=null&&FusionCharts(b)&&FusionCharts(b).dispose()}for(;pui.Vg.length>0;){b=pui.Vg.pop();b!=null&&typeof b.destroy=="function"&&b.destroy()}for(;pui.gq.length>0;){b=pui.gq.pop();typeof b==="object"&&b!==null&&b.Xw.removeEventListener(b.Ww,b.Vw)}for(var g in pui.Re)document.body.style[g]=pui.Re[g];pui.Re={};pui["keep frames"]||pui.rt()};pui.mu=0;
561
+ b.destroy()}if(typeof FusionCharts!="undefined")for(;pui.Zn.length>0;){b=pui.Zn.pop();b!=null&&FusionCharts(b)&&FusionCharts(b).dispose()}for(;pui.$e.length>0;){b=pui.$e.pop();b!=null&&typeof b.destroy=="function"&&b.destroy()}for(;pui.gq.length>0;){b=pui.gq.pop();typeof b==="object"&&b!==null&&b.Xw.removeEventListener(b.Ww,b.Vw)}for(var g in pui.Re)document.body.style[g]=pui.Re[g];pui.Re={};pui["keep frames"]||pui.rt()};pui.mu=0;
562
562
  pui.resize=function(){if(pui.runtimeContainer!=null){clearTimeout(pui.mu);pui.mu=setTimeout(pui.Zp,10,pui.runtimeContainer)}};pui.oy=function(b){if(b!=null){b=b.state;if(b!=null){if(b.bu=="previous")if(pui.Di!=null){pui.F="true";pui.jq=true;pui.fc()}history.forward()}}};
563
563
  pui.render=function(b){var a,c,e,f;pui.Lm=[];pui.recordTest&&pui.record(b);pui.clientLogic=b.clientLogic;if(typeof pui.beforeRender==="function"){var g=pui.beforeRender(b);if(g)b=g}if(b.pjsVersion!=null)pui.WA=b.pjsVersion;if(typeof pui.Rt=="undefined")pui.Rt=pui.pjsDefaultMode||null;pui.pjsDefaultMode=b.pjsDefaultMode?b.pjsDefaultMode:pui.Rt;if(typeof pui.dv=="undefined")pui.dv=pui.widgetURLPrefix||null;pui.widgetURLPrefix=b.pjsWidgetURLPrefix?b.pjsWidgetURLPrefix:pui.dv;pui.Z=null;if(b.pjs_id)pui.Z=
564
564
  b.pjs_id;if(b.pjsDatabaseConnections)pui.databaseConnections=b.pjsDatabaseConnections;pui.pj=b.nodejs===true;pui.Bo=null;if(b.version!=null&&pui.version!=null&&b.version!=pui.version){g=null;f=b.version.split(".");e=f.shift();f=f.join(".");if(b.nodejs){if(pui.getVersionComparer().isLessThan(pui.version,b.version))g="Installed copy of Profound.js requires Profound UI client-side Version "+e+", Fix Pack "+f+" or above. Profound UI client-side version is Version "+pui.baseVersion+", Fix Pack "+pui.fixPackVersion+
565
565
  "."}else g="Profound UI server-side (Version "+e+", Fix Pack "+f+") doesn't match client-side JavaScript (Version "+pui.baseVersion+", Fix Pack "+pui.fixPackVersion+")";g!=null&&window.console&&window.console.error&&console.error(g)}pui.is_old_ie&&pui.ie_mode>=9?pui.P(pui.runtimeContainer,"pui-ie9plus"):pui.ca(pui.runtimeContainer,"pui-ie9plus");if(pui.D&&pui.D.dc==null)pui.D.dc=document.getElementById("middle");if(!pui.Ty){T(window,"resize",pui.resize);pui.Ty=true}if(!pui.tl&&!pui.lw&&history.pushState!=
566
- null&&history.replaceState!=null)if(!(window.parent&&window.parent!=window&&pui.hi(window.parent)&&window.parent.noderun)){history.replaceState({bu:"previous"},document.title);history.pushState({bu:"current"},document.title);T(window,"popstate",pui.oy);pui.lw=true}!window.React&&!window.Vue&&pui.Ji();pui.Ud=b;g=b.success;if(g==null)g=true;if(g)if(b.closeTab==true&&window.parent!=window&&pui.sg(window.parent))window.Atrium.closeTab();else if(b.noKey==true){pui.skipConfirm=true;b="/profoundui/key";
566
+ null&&history.replaceState!=null)if(!(window.parent&&window.parent!=window&&pui.hi(window.parent)&&window.parent.noderun)){history.replaceState({bu:"previous"},document.title);history.pushState({bu:"current"},document.title);T(window,"popstate",pui.oy);pui.lw=true}!window.React&&!window.Vue&&pui.Ji();pui.Ud=b;g=b.success;if(g==null)g=true;if(g)if(b.closeTab==true&&window.parent!=window&&pui.ug(window.parent))window.Atrium.closeTab();else if(b.noKey==true){pui.skipConfirm=true;b="/profoundui/key";
567
567
  if(pui.serverURL!=null)b=pui.serverURL+b;location.href=b}else{if(pui.D==null){if(pui["refresh interval"]!=null&&pui["refresh interval"]>0&&pui.hu>=pui["refresh interval"]){pui.refresh();return}pui.hu++}if(b.psid!=null)pui.psid=b.psid;if(b.appJob!=null){pui.secLevel=b.appJob.secLevel;if(pui.appJob==null)pui.appJob={};for(a in b.appJob)pui.appJob[a]=b.appJob[a]}b.message||(pui.layers=b.layers);if(b.ctrlJob!=null){if(pui.ctrlJob==null)pui.ctrlJob={};for(a in b.ctrlJob)pui.ctrlJob[a]=b.ctrlJob[a]}if(pui.na&&
568
- !pui.Hf)Ab("ipadKeyboard").style.display="none";pui.ql||pui.jw();if(pui.handler==null){pui.timeout=b.timeout;try{c=Atrium.getSettings()}catch(h){}a=c&&c.ACTIMEOUT==="1";pui.ql||(!a&&pui["client side timeout"]==true?pui.jb.start():pui.ua.oq())}pui.$d={};pui.modified=false;pui.sf={};pui.confirmOnClose=true;if(pui.isCloud)pui.confirmOnClose=false;pui.shutdownOnClose=true;pui.tb="";pui.mb={};pui.Qk={};pui.km={};pui.Hm={};pui.xm={};pui.vq={};pui.Pa={};pui.F="false";pui.La=null;pui.Rc=null;pui.Qc=null;
568
+ !pui.If)Ab("ipadKeyboard").style.display="none";pui.ql||pui.jw();if(pui.handler==null){pui.timeout=b.timeout;try{c=Atrium.getSettings()}catch(h){}a=c&&c.ACTIMEOUT==="1";pui.ql||(!a&&pui["client side timeout"]==true?pui.jb.start():pui.ua.oq())}pui.$d={};pui.modified=false;pui.tf={};pui.confirmOnClose=true;if(pui.isCloud)pui.confirmOnClose=false;pui.shutdownOnClose=true;pui.tb="";pui.mb={};pui.Qk={};pui.km={};pui.Hm={};pui.xm={};pui.vq={};pui.Pa={};pui.F="false";pui.La=null;pui.Rc=null;pui.Qc=null;
569
569
  pui.Dj=false;pui.activeElement=null;pui.jq=false;pui.Qn=false;a=pui.translate(b);a!=null&&pui.alert(a);if(b.message){f=b.message.format.toLowerCase();pui.message=b.message.message;pui.hm();pui.bc();if(pui.Pl&&pui.Pl[f])try{eval('var message = pui["message"];');eval(pui.Pl[f])}catch(l){pui.Ea(l,"Onmessage Error:\n")}}else if(b.html){pui.la(b.container);b.container.innerHTML=b.html;b.container.style.width="100%";if(pui.D&&pui.D.dc!=null)pui.D.dc.style.width="100%";var n=b.container.getElementsByTagName("script"),
570
- m=function(w){var z=n[w];if(z!=null)if(z.innerHTML){eval.call(window,z.innerHTML);m(w+1)}else pui.loadJS({path:z.src,callback:function(){m(w+1)},onerror:function(){m(w+1)}})};m(0);pui.Pb=true;pui.sl=true}else{pui.sl=false;if(pui.tl!==true&&pui.pf==null)b.container.style.width="";if(pui.D&&pui.D.dc!=null)pui.D.dc.style.width="";a=b.layers;for(c=0;c<a.length;c++)pui.hy(a[c].formats);if(a.length>0){c=a[a.length-1];if(c.formats.length>0){f=c.formats[c.formats.length-1];if(pui.Sl==null)pui.Sl=document.title;
570
+ m=function(w){var z=n[w];if(z!=null)if(z.innerHTML){eval.call(window,z.innerHTML);m(w+1)}else pui.loadJS({path:z.src,callback:function(){m(w+1)},onerror:function(){m(w+1)}})};m(0);pui.Pb=true;pui.sl=true}else{pui.sl=false;if(pui.tl!==true&&pui.qf==null)b.container.style.width="";if(pui.D&&pui.D.dc!=null)pui.D.dc.style.width="";a=b.layers;for(c=0;c<a.length;c++)pui.hy(a[c].formats);if(a.length>0){c=a[a.length-1];if(c.formats.length>0){f=c.formats[c.formats.length-1];if(pui.Sl==null)pui.Sl=document.title;
571
571
  c=pui.Q(f.metaData.screen["document title"],f.data,f.ref);if(c!=null&&c!="")document.title=c;else if(document.title!=pui.Sl)document.title=pui.Sl}}if(pui.wikihelp.overlays!=null)for(;pui.wikihelp.overlays.length>0;){c=pui.wikihelp.overlays.pop();c.parentNode!=null&&typeof c.parentNode.removeChild=="function"&&c.parentNode.removeChild(c);try{delete c.pui}catch(r){}c=null}pui.wikihelp.overlays=[];pui.Nm=[];for(c=0;c<a.length;c++){pui.N={};pui.ph={};pui.Eh={};pui.xh={};pui.ba={};pui.ha={};pui.ha.keys=
572
- {};pui.vo=false;pui.V={};pui.Ok={};pui.Om=null;pui.Mm=null;pui.Wl=true;pui.Jm=null;pui.Di=null;pui.wm=[];pui.Ba.record=null;pui.Ba.field=null;pui.Ba.position=null;pui.Ba.row=null;pui.Ba.column=null;pui.p.record=null;pui.p.field=null;pui.p.position=null;pui.p.Do=null;pui.p.row=null;pui.p.column=null;pui.p.ag=null;pui.p.Ue=null;pui.p.Td=null;pui.bb=[];pui.Vg=[];pui.xl=[];pui.Oc=[];pui.Pl={};pui.La=null;pui.Rc=null;pui.Qc=null;g=a[c].formats;if(c==0){pui.ud=null;pui.op=null;var p=pui.pp=null;if(g.length>
573
- 0&&g[0].metaData!=null&&g[0].metaData.screen!=null)p=pui.Q(g[0].metaData.screen.animation,g[0].data,g[0].ref);if(b.Tg&&b.Tg.animation)p=b.Tg.animation;if(typeof p==="string"){p=p.trim();if(p==="")p=null}if(pui.pf||b.designMode||pui.D!=null)p=null;if(p){pui.bc();e={container:b.container,Gn:p,ne:pui.Q(g[0].metaData.screen["animated screen"],g[0].data,g[0].ref),xj:pui.Q(g[0].metaData.screen["overlay screens"],g[0].data,g[0].ref)};if(b.Tg&&b.Tg.animation){e.ne=b.Tg.screen;e.xj=b.Tg.overlay}b.container=
572
+ {};pui.vo=false;pui.V={};pui.Ok={};pui.Om=null;pui.Mm=null;pui.Wl=true;pui.Jm=null;pui.Di=null;pui.wm=[];pui.Ba.record=null;pui.Ba.field=null;pui.Ba.position=null;pui.Ba.row=null;pui.Ba.column=null;pui.p.record=null;pui.p.field=null;pui.p.position=null;pui.p.Do=null;pui.p.row=null;pui.p.column=null;pui.p.bg=null;pui.p.Ue=null;pui.p.Td=null;pui.bb=[];pui.$e=[];pui.xl=[];pui.Oc=[];pui.Pl={};pui.La=null;pui.Rc=null;pui.Qc=null;g=a[c].formats;if(c==0){pui.ud=null;pui.op=null;var p=pui.pp=null;if(g.length>
573
+ 0&&g[0].metaData!=null&&g[0].metaData.screen!=null)p=pui.Q(g[0].metaData.screen.animation,g[0].data,g[0].ref);if(b.Ug&&b.Ug.animation)p=b.Ug.animation;if(typeof p==="string"){p=p.trim();if(p==="")p=null}if(pui.qf||b.designMode||pui.D!=null)p=null;if(p){pui.bc();e={container:b.container,Gn:p,ne:pui.Q(g[0].metaData.screen["animated screen"],g[0].data,g[0].ref),xj:pui.Q(g[0].metaData.screen["overlay screens"],g[0].data,g[0].ref)};if(b.Ug&&b.Ug.animation){e.ne=b.Ug.screen;e.xj=b.Ug.overlay}b.container=
574
574
  pui.ik.oq(e);pui.runtimeContainer=b.container}else{pui.ik.Ji();pui.la(b.container)}}else{pui.qz(b,a[c]);if(g.length>0){f=g[0].metaData.screen["window reference"];if(f!=null&&f!=""&&a[c].metaData!=null){var s=a[c].metaData.items;for(e=0;e<s.length;e++){var t=s[e];if(t.id==f&&(t["field type"]=="panel"||t["field type"]=="css panel")){g[0].metaData.items.push(t);break}}}}}pui.Rd=null;s=c==a.length-1;pui.currentFormatNames=[];for(e=0;e<g.length;e++){f=g[e];f.container=b.container;if(s){f.vl=true;pui.Zw.load(f)}if(f.active==
575
- true){f.ul=true;pui.Rd=f.name}pui.Xp(f)}if(pui.Rd==null)if(g.length>0){e=g.length-1;g[e].ul=true;pui.Rd=g[e].name}else pui.Rd=null;c>0&&g.length>0&&pui.Q(g[0].metaData.screen["center window"],g[0].data,g[0].ref)=="true"&&pui.ww();pui.Nm.push(b.container)}if(!pui.Rd&&pui.format)pui.Rd=pui.format;p&&pui.ik.animate();if(!pui.ql&&pui.V!=null&&pui.V.dom!=null&&(!pui.Dj||pui.p.ag!=null||pui.p.Ue!=null||pui.V.Og==true)){b=pui.V.dom.parentNode;b!=null&&b.parentNode!=null&&b.parentNode.grid!=null&&parseInt(pui.V.dom.style.top)>
575
+ true){f.ul=true;pui.Rd=f.name}pui.Xp(f)}if(pui.Rd==null)if(g.length>0){e=g.length-1;g[e].ul=true;pui.Rd=g[e].name}else pui.Rd=null;c>0&&g.length>0&&pui.Q(g[0].metaData.screen["center window"],g[0].data,g[0].ref)=="true"&&pui.ww();pui.Nm.push(b.container)}if(!pui.Rd&&pui.format)pui.Rd=pui.format;p&&pui.ik.animate();if(!pui.ql&&pui.V!=null&&pui.V.dom!=null&&(!pui.Dj||pui.p.bg!=null||pui.p.Ue!=null||pui.V.Pg==true)){b=pui.V.dom.parentNode;b!=null&&b.parentNode!=null&&b.parentNode.grid!=null&&parseInt(pui.V.dom.style.top)>
576
576
  parseInt(b.style.height)?pui.focusOnContainer():setTimeout(function(){if(pui.V.dom!=null)if(pui.V.dom.tagName=="DIV"||pui.V.dom.style.visibility=="hidden")pui.focusOnContainer();else if(pui.p.Td==true)pui.focusOnContainer();else if(pui.p.Td!="no focus on page")try{pui.V.dom.focus();if(pui.V.dom.tagName!="SELECT"&&pui.V.dom.type!="checkbox"&&pui.V.dom.type!="radio"){if(pui.is_old_ie)if(pui.V.dom.createTextRange!=null){pui.V.dom.select();var w=pui.V.dom.createTextRange();if(w!=null&&w.collapse!=null&&
577
- w.select!=null){w.collapse();w.select()}}else pui.focusOnContainer();pui["highlight on focus"]&&pui.V.dom.select()}}catch(z){pui.focusOnContainer()}},1)}else if(!pui.Dj&&(pui.p.ag==null||pui.p.Ue==null))pui.ql||pui.focusOnContainer();pui.Pb=true;if(pui.Lm)for(;pui.Lm.length>0;)(b=pui.Lm.shift())&&typeof b.Vt==="function"&&b.Vt();pui.Fu();pui.Ht!=null&&pui.Ht.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>"+
578
- b.cause+"</strong>.</p> <p>Please contact the server administrator to determine the cause of the problem.";pui.Pb=true}};pui.Fu=function(){for(var b=0;b<pui.bb.length;b++){var a=pui.bb[b];if(a.c!=null&&!a.vu){a.c.Ln!=null&&typeof a.c.Ln=="function"&&a.c.Ln();a.c.Vf=true;a.c.gc==1&&a.c.z();a.vu=true}}};
579
- pui.Xp=function(b){function a(Y,fa,sa){var Ca;if(ba[Y].root!=null&&ba[Y].container!=null){Ca=ba[Y].root;sa=ba[Y].container}else Ca=ba[Y];Y=Ca;var Xa=sa-1;if(Y.mg[Xa]==null)Y.mg[Xa]=[];var ca=Y.O.id,qa={};for(var Aa in fa)if(fa.layout!=ca||Aa!="container"&&Aa!="layout")if(typeof fa[Aa]=="object"&&fa[Aa]!=null)try{qa[Aa]=JSON.parse(JSON.stringify(fa[Aa]))}catch(db){}else qa[Aa]=fa[Aa];Y.mg[Xa].push(qa);if(fa["field type"]=="layout"||fa["field type"]=="grid")ba[fa.id]={root:Ca,container:sa}}function c(){r=
577
+ w.select!=null){w.collapse();w.select()}}else pui.focusOnContainer();pui["highlight on focus"]&&pui.V.dom.select()}}catch(z){pui.focusOnContainer()}},1)}else if(!pui.Dj&&(pui.p.bg==null||pui.p.Ue==null))pui.ql||pui.focusOnContainer();pui.Pb=true;if(pui.Lm)for(;pui.Lm.length>0;)(b=pui.Lm.shift())&&typeof b.Vt==="function"&&b.Vt();pui.Fu();pui.Ht!=null&&pui.Ht.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>"+
578
+ b.cause+"</strong>.</p> <p>Please contact the server administrator to determine the cause of the problem.";pui.Pb=true}};pui.Fu=function(){for(var b=0;b<pui.bb.length;b++){var a=pui.bb[b];if(a.c!=null&&!a.vu){a.c.Ln!=null&&typeof a.c.Ln=="function"&&a.c.Ln();a.c.Wf=true;a.c.gc==1&&a.c.z();a.vu=true}}};
579
+ pui.Xp=function(b){function a(Y,fa,sa){var Ca;if(ba[Y].root!=null&&ba[Y].container!=null){Ca=ba[Y].root;sa=ba[Y].container}else Ca=ba[Y];Y=Ca;var Xa=sa-1;if(Y.ng[Xa]==null)Y.ng[Xa]=[];var ca=Y.O.id,qa={};for(var Aa in fa)if(fa.layout!=ca||Aa!="container"&&Aa!="layout")if(typeof fa[Aa]=="object"&&fa[Aa]!=null)try{qa[Aa]=JSON.parse(JSON.stringify(fa[Aa]))}catch(db){}else qa[Aa]=fa[Aa];Y.ng[Xa].push(qa);if(fa["field type"]=="layout"||fa["field type"]=="grid")ba[fa.id]={root:Ca,container:sa}}function c(){r=
580
580
  pui.K(Ba.fieldName);ra=C+"."+r;if(pui.handler!=null)ra=r;if(b.n!=null)ra+="."+b.n}var e,f,g,h,l,n,m,r,p,s,t=rd(),w=b.designMode;if(w==null)w=false;var z=b.metaData.screen,y=b.metaData.items,E=b.metaData["dds field order"],J=b.metaData["dspf record layout"],B=b.metaData["subfile field order"],G=b.designer,D=b.data,C=b.name,K=false,M=[],U={},da=pui["strict tab control"],aa=b.Pj==null&&b.yl==null;if(pui.controller!=null&&z!=null){f="";var N=1;for(e="error condition";z[e+f];){if(pui.Q(z[e+f],D)=="1"){f=
581
581
  pui.Q(z["error message"+f],D);M.push({msg:f});break}f=" "+ ++N}}!w&&b.n==null&&b.yl==null&&pui.currentFormatNames.push(C);if(z!=null){if(pui.Q(z["show as window"],D,b.ref)=="true")K=true;if(z["window reference"]!=null&&z["window reference"]!="")K=true}if(!w&&aa){C=C||pui.format;pui.ba[C]={};var ha=pui.handler==null?C+".":"";N=b.metaData.screen["return cursor record"];if(pui.o(N)){if(pui.Ba.record==null)pui.Ba.record={};pui.Ba.record[ha+pui.K(N.fieldName)]=true}N=b.metaData.screen["return cursor field"];
582
582
  if(pui.o(N)){if(pui.Ba.field==null)pui.Ba.field={};pui.Ba.field[ha+pui.K(N.fieldName)]=true}N=b.metaData.screen["return cursor position"];if(pui.o(N)){if(pui.Ba.position==null)pui.Ba.position={};pui.Ba.position[ha+pui.K(N.fieldName)]=true}N=b.metaData.screen["return cursor row"];if(pui.o(N)){if(pui.Ba.row==null)pui.Ba.row={};pui.Ba.row[ha+pui.K(N.fieldName)]=true}N=b.metaData.screen["return cursor column"];if(pui.o(N)){if(pui.Ba.column==null)pui.Ba.column={};pui.Ba.column[ha+pui.K(N.fieldName)]=true}N=
583
583
  b.metaData.screen.changed;if(pui.o(N))pui.Ok[C]=ha+pui.K(N.fieldName);N=b.metaData.screen["window left"];if(pui.o(N))pui.Mm=ha+pui.K(N.fieldName);N=b.metaData.screen["window top"];if(pui.o(N))pui.Om=ha+pui.K(N.fieldName);N=b.metaData.screen["valid command key"];if(pui.o(N))pui.Jm=ha+pui.K(N.fieldName);N=b.metaData.screen["back button"];if(pui.o(N))pui.Di=ha+pui.K(N.fieldName);N=b.metaData.screen["dd element id"];if(pui.o(N))pui.mb.oo=ha+pui.K(N.fieldName);N=b.metaData.screen["dd record number"];if(pui.o(N))pui.mb.po=
584
- ha+pui.K(N.fieldName);N=b.metaData.screen["target element id"];if(pui.o(N))pui.mb.wq=ha+pui.K(N.fieldName);N=b.metaData.screen["target record number"];if(pui.o(N))pui.mb.xq=ha+pui.K(N.fieldName);ha=1;for(N=b.metaData.screen["set off"];pui.o(N);){pui.wm.push(C+"."+pui.K(N.fieldName));ha++;N=b.metaData.screen["set off "+ha]}pui.mo=pui.Q(z["bypass validation"],D,b.ref);pui.p.ag=pui.Q(z["set cursor row"],D,b.ref);pui.p.Ue=pui.Q(z["set cursor column"],D,b.ref);pui.p.Td=pui.Q(z["no focus"],D,b.ref);if(pui.p.Td==
585
- "true")pui.p.Td=true;if(pui["no focus"]=="true"||pui["no focus"]==true)pui.p.Td=true;if(pui.o(z["set cursor condition"])){N=pui.Q(z["set cursor condition"],D,b.ref);if(N!=true&&N!="true"){pui.p.ag=null;pui.p.Ue=null}}if(b.vl&&z["strict tab control"]!=null&&z["strict tab control"]!="")da=pui.Q(z["strict tab control"],D,b.ref)==="true"}if(w){G.Na.name=z["record format name"];if(G.Na.name==null||G.Na.name=="")G.Na.name="[Unnamed Screen]";for(e in z){h=z[e];G.hq[G.Na.ub][e]=h;G.lB[G.Na.ub][e]=true;if(pui.wf.Aq&&
584
+ ha+pui.K(N.fieldName);N=b.metaData.screen["target element id"];if(pui.o(N))pui.mb.wq=ha+pui.K(N.fieldName);N=b.metaData.screen["target record number"];if(pui.o(N))pui.mb.xq=ha+pui.K(N.fieldName);ha=1;for(N=b.metaData.screen["set off"];pui.o(N);){pui.wm.push(C+"."+pui.K(N.fieldName));ha++;N=b.metaData.screen["set off "+ha]}pui.mo=pui.Q(z["bypass validation"],D,b.ref);pui.p.bg=pui.Q(z["set cursor row"],D,b.ref);pui.p.Ue=pui.Q(z["set cursor column"],D,b.ref);pui.p.Td=pui.Q(z["no focus"],D,b.ref);if(pui.p.Td==
585
+ "true")pui.p.Td=true;if(pui["no focus"]=="true"||pui["no focus"]==true)pui.p.Td=true;if(pui.o(z["set cursor condition"])){N=pui.Q(z["set cursor condition"],D,b.ref);if(N!=true&&N!="true"){pui.p.bg=null;pui.p.Ue=null}}if(b.vl&&z["strict tab control"]!=null&&z["strict tab control"]!="")da=pui.Q(z["strict tab control"],D,b.ref)==="true"}if(w){G.Na.name=z["record format name"];if(G.Na.name==null||G.Na.name=="")G.Na.name="[Unnamed Screen]";for(e in z){h=z[e];G.hq[G.Na.ub][e]=h;G.lB[G.Na.ub][e]=true;if(pui.wf.Aq&&
586
586
  pui.cc(h))if(w){f={};if(b.Sx)f=null;if(pui.display&&typeof pui.display.logic==="object"&&typeof pui.display.logic[h.routine]==="object")f=pui.display.logic[h.routine];pui.wf.Aq.update({name:h.routine,d:G,designer:G,property:e,data:f})}}G.gA=E;G.vB=B;J&&G.Tz(J)}if(!w&&aa)if(pui.Q(z["disable enter key"],D,b.ref)=="true")pui.vo=true;ha=Ac();E=[];J=[];B=[];var ba={},ea=false;if(b.Cq!==undefined&&b.Cq!==null){y.push(b.Cq);ea=true}for(N=0;N<y.length;N++)if(!(b.hideControlRecord==true&&!w&&y[N]["field type"]!=
587
587
  "grid"&&y[N].grid==null&&y[N]["cursor row"]!=null)){if(!w&&b.Pj!=null&&y[N]["field type"]=="output field"&&y[N].visibility=="hidden"){p=parseInt(y[N].top);var pa=parseInt(y[N].left);if(!isNaN(p)&&p<0&&!isNaN(pa)&&pa<0)continue}if(!w){p=y[N]["auto arrange"]||"false";if(p=="true"||pui.o(p)&&pui.Q(p,D,b.ref)=="true"){p=y[N].visibility;if(p=="hidden"||pui.o(p)&&pui.Q(p,D,b.ref)=="hidden")y[N]["shortcut key"]!=null&&delete y[N]["shortcut key"]}}if(!w&&y[N]["shortcut key"]!=null){p=y[N].disabled;if(p==
588
- "true"||pui.o(p)&&pui.Q(p,D,b.ref)=="true")delete y[N]["shortcut key"]}if(y[N]["csv file name"]!=null&&y[N]["export file name"]==null)y[N]["export file name"]=y[N]["csv file name"];pa=p=null;var Da=y[N].grid;g=y[N].layout;if(Da!=null){l=Ab(Da);if(l!=null){p=l.grid;pa=Number(y[N].column);if(y[N].columnId==undefined)y[N].columnId=pa;if(w)pa=p.cells[p.g?1:0][pa];else{if(b.Pj!=null)pa=p.cells[b.Pj][pa];else{y[N].domEls!=null&&delete y[N].domEls;p.w.push(y[N]);continue}f="";f+=pui.xo(y[N],pui.Bd,pui.Ug,
588
+ "true"||pui.o(p)&&pui.Q(p,D,b.ref)=="true")delete y[N]["shortcut key"]}if(y[N]["csv file name"]!=null&&y[N]["export file name"]==null)y[N]["export file name"]=y[N]["csv file name"];pa=p=null;var Da=y[N].grid;g=y[N].layout;if(Da!=null){l=Ab(Da);if(l!=null){p=l.grid;pa=Number(y[N].column);if(y[N].columnId==undefined)y[N].columnId=pa;if(w)pa=p.cells[p.g?1:0][pa];else{if(b.Pj!=null)pa=p.cells[b.Pj][pa];else{y[N].domEls!=null&&delete y[N].domEls;p.w.push(y[N]);continue}f="";f+=pui.xo(y[N],pui.Bd,pui.Vg,
589
589
  false,p.Wu);f!=""&&pui.alert("Missing translation data:\n\n"+f)}}else if(ba[Da]!=null){a(Da,y[N]);continue}}else if(g!=null){m=Ab(g);if(m!=null&&m.layout!=null){pa=Number(y[N].container);if(ba[g]!=null){a(g,y[N],pa);continue}else pa=m.layout.xc[pa-1]}else if(ba[g]!=null){a(g,y[N]);continue}}if(pa==null)pa=w?G.container:b.container;var x;if(!w&&b.n!=null&&y[N].domEls!=null&&y[N].domEls[b.n-1]!=null){x=y[N].domEls[b.n-1];if(pa!=null){pa.appendChild(x);if(x.Th==true){x.style.display="";x.Th=false}if(x.calimg!=
590
590
  null){pa.appendChild(x.calimg);x.calimg.Et&&pui.Hl(x);if(x.calimg.Th){x.calimg.style.display="";x.calimg.Th=false}}if(x.Jb!=null)for(g=0;g<x.Jb.length;g++){pa.appendChild(x.Jb[g]);if(x.Jb[g].Th==true){x.Jb[g].style.display="";x.Jb[g].Th=false}}if(x.kl===true){pui.Iw(x);x.kl=false}if(b.X!=null&&b.X.text!=""&&(String(y[N].column)===String(b.X.col)||b.X.col==="*all"))if(x.tagName=="DIV"){pui.jl(x,b.X.text);x.kl=true}}}else{m=pui.widgets[y[N]["field type"]];if(typeof m==="object"&&m!==null&&typeof m.tag===
591
591
  "string"&&m.tag.length>0){x=document.createElement(m.tag);x.type=m.inputType;if(!w)x.vp=true}else x=document.createElement("div");x.style.position="absolute";x.setAttribute("puiwdgt",y[N]["field type"]);var W=y[N].left;g=y[N].top;if(pui.o(W))W="0px";if(pui.o(g))g="0px";if(W=="NaNpx")W="0px";if(g=="NaNpx")g="0px";if(y[N].left!=null)x.style.left=W;if(y[N].top!=null)x.style.top=g;if(!w&&y[N]["parent tab panel"]!=null&&y[N]["parent tab panel"]!="")x.style.visibility="hidden";if(pa!=null)y[N].Ix!=null?
@@ -593,7 +593,7 @@ pa.insertBefore(x,y[N].Ix):pa.appendChild(x);W={};g=null;if(w){g=G.addItem(x,tru
593
593
  "object")f=pui.display.logic[h.routine];pui.wf.Aq.update({name:h.routine,d:g,designer:G,property:ma,data:f})}if(pui.o(h))if(w)f=h;else{if(pui.Ox(ma))x.Wo=true;if(h.longName&&h.fieldName)if(!h.lowerCaseField&&pui.handler==null){pui.Je[pui.K(h.longName)]=pui.K(h.fieldName);pui.Je[pui.K(h.fieldName)]=pui.K(h.longName)}else{pui.Je[h.longName]=h.fieldName;pui.Je[h.fieldName]=h.longName}if(y[N]["field type"]=="grid"&&(ma=="row background"||ma=="row font color"))f="";else if(ma.includes("grid row translation placeholder value")&&
594
594
  y[N]["field type"]=="grid")f=h;else if(ma.includes("translation placeholder value")&&y[N].grid!=null)f=h;else{h.revert=false;f=pui.Q(h,D,b.ref);if((ma=="range low"||ma=="range high")&&h.dataType=="date"){var oa=h.dateFormat;h.dateFormat="Y-m-d";l=pui.Q(h,D,b.ref);h.dateFormat=oa;if(ma=="range low")m=l;else la=l}}if(ma=="value"||ma=="html"){x.mc=C;x.Wc=pui.K(h.fieldName);if(x.pui==null)x.pui={};x.pui.formatName=C;x.pui.fieldName=x.Wc;if(y[N]["field type"]=="textbox"){l=pui.Q(y[N]["choices database file"],
595
595
  D,b.ref);if(l!=null&&l!=""){l=pui.Q(y[N]["choice options field"],D,b.ref);var ka;if(l!=null)ka=pui.ga(l)[0];l=pui.Q(y[N]["choice values field"],D,b.ref);if(ka!=null&&ka!=""&&l!=null&&l!=""&&ka!=l){h.formatting="Text";h.Ie=null;h.maxLength=null}}l=pui.Q(y[N]["choices url"],D,b.ref);if(l!=null&&l!=""&&h.formatting=="Number"){h.formatting="Text";h.Ie=null;h.maxLength=null}}}if(ma=="cursor record number")pui.Qk[(pui.handler==null?C+".":"")+pui.K(h.fieldName)]=x;else if(ma=="subfile return rrn")pui.km[(pui.handler==
596
- null?C+".":"")+pui.K(h.fieldName)]=x;else if(ma=="return mode")pui.xm[(pui.handler==null?C+".":"")+pui.K(h.fieldName)]=x;else if(ma=="column sort response")x.rh=(pui.handler==null?C+".":"")+pui.K(h.fieldName);else if(ma=="field name sort response"){x.xg=(pui.handler==null?C+".":"")+pui.K(h.fieldName);x.Cs=h.dataLength}else if(ma=="initial sort field")x.Hx=h.dataLength;else if(ma=="filter response")x.Ds=(pui.handler==null?C+".":"")+pui.K(h.fieldName);else if(ma=="subfile changed")pui.vq[W["record format name"].toLowerCase()]=
596
+ null?C+".":"")+pui.K(h.fieldName)]=x;else if(ma=="return mode")pui.xm[(pui.handler==null?C+".":"")+pui.K(h.fieldName)]=x;else if(ma=="column sort response")x.rh=(pui.handler==null?C+".":"")+pui.K(h.fieldName);else if(ma=="field name sort response"){x.yg=(pui.handler==null?C+".":"")+pui.K(h.fieldName);x.Cs=h.dataLength}else if(ma=="initial sort field")x.Hx=h.dataLength;else if(ma=="filter response")x.Ds=(pui.handler==null?C+".":"")+pui.K(h.fieldName);else if(ma=="subfile changed")pui.vq[W["record format name"].toLowerCase()]=
597
597
  pui.K(h.fieldName);if(ma=="column sort response"||ma=="field name sort response")if(pui.o(y[N]["return sort order"]))x.Vh=(pui.handler==null?C+".":"")+pui.K(y[N]["return sort order"].fieldName)}else{if(!w&&pa!=null&&pa.Ac){if(pa.Ku==null)pa.Ku="";if(ma=="id"||ma=="top"||ma=="left")pa.Ku+=h}f=h;if((ma=="range low"||ma=="range high")&&y[N].value&&y[N].value.dataType=="date"){l=y[N].value;oa={};oa.dataType=l.dataType;oa.dateFormat=l.dateFormat;oa.formatting=l.formatting;oa.locale=l.locale;oa.value=f;
598
598
  oa.Se=true;l=pui.uc.format(oa);if(ma=="range low")m=l;else la=l}}if(y[N].grid!=null&&!w)switch(ma){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":oa=null;l=Ab(y[N].grid);if(l!=null){oa=l.grid.Wu;if(oa!=null)if(oa.keys!=null&&oa.values!=null){l={keys:[],values:[]};for(key in oa.keys)l.keys.push(oa.keys[key]);
599
599
  for(value in oa.values)l.values.push(pui.Q(oa.values[value],D,b.ref));l=pui.Cr(y[N],l,D,b.ref);for(oa=0;oa<l.keys.length;oa++)f=f.replaceAll("(&"+l.keys[oa]+")",l.values[oa])}}}W[ma]=f}if(W["field type"]=="tab panel"||W["field type"]=="layout"&&W.template=="tab panel"){f=W.id;E.push(f);Wc[f]!=null?J.push(Wc[f]):J.push(Yb(W["active tab"],"",x))}for(e in W){f=x.Qh==null?pui.Xi(ha,e):pui.Xi(x.Qh,e);if(f!=null){h=W[e];if(!w){var Ba=y[N][e];if(pui.o(Ba)){Ba.revert=false;if(pui.is_touch&&!pui.is_mouse_capable&&
@@ -602,31 +602,31 @@ e=="value"&&W["field type"]=="textbox"&&Ba.formatting=="Number")if(Ba.numSep!="t
602
602
  l+'" type="radio">')}catch(fb){wa=document.createElement("input");wa.name=l;wa.type="radio"}wa.style.position=x.style.position;wa.style.left=x.style.left;wa.style.top=x.style.top;wa.style.visibility=x.style.visibility;wa.style.display=x.style.display;wa.id=x.id;wa.value=x.value;wa.Jb=x.Jb;wa.Qd=x.Qd;wa.modified=x.modified;wa.disabled=x.disabled;x.parentNode.replaceChild(wa,x);wa.checked=x.checked;wa.Va=x.Va;wa.eb=x.eb;wa.onblur=x.onblur;wa.onchange=x.onchange;wa.oninput=x.oninput;wa.onclick=x.onclick;
603
603
  wa.ondblclick=x.ondblclick;wa.onfocus=x.onfocus;wa.onkeydown=x.onkeydown;wa.onkeypress=x.onkeypress;wa.onkeyup=x.onkeyup;wa.onmousedown=x.onmousedown;wa.onmousemove=x.onmousemove;wa.onmouseout=x.onmouseout;wa.onmouseover=x.onmouseover;wa.onmouseup=x.onmouseup;wa.pui=x.pui;x=wa}x.radioValue=W.value}l=p!=null&&p.da()==true;if(!l&&pui.N[ra]==null)pui.N[ra]=[];if(!l&&pui.N[ra][0]!=null&&pui.N[ra][0].oj){pui.N[ra]=[];x.modified=true;pui.modified=true}if(e=="page down response"){pui.N[ra].push(x.grid.i.ja);
604
604
  pui.N[ra].push(x.grid.i.oa)}else if(e=="page up response"){pui.N[ra].push(x.grid.i.xa);pui.N[ra].push(x.grid.i.pa)}else l||pui.N[ra].push(x);if(e=="menu response")x.R="";if(e=="upload response")x.fileUpload.Dy=ra;if(e=="chart response")x.R="";if(e=="tab response")if(l=x.tabPanel)l.om=true;if(e=="active tab")if(l=x.tabPanel)l.nm=true;if(e=="response"){l=W["shortcut key"];if(l!=null&&l!=""){if(pui.ba[C]==null)pui.ba[C]={};if(pui.ba[C][l]==null)pui.ba[C][l]=[];pui.ba[C][l].push(x);x.zd=l}if(Da==null)x.R=
605
- "0";if(W.onclick==null||W.onclick==""||pui.cc(W.onclick)){if(pui.cc(W.onclick))x.La=W.onclick.routine;pui.qg(x)}}if(e=="page down response"){if(pui.ba[C].PageDown==null)pui.ba[C].PageDown=[];pui.ba[C].PageDown.push(x.grid.i.oa);pui.qg(x.grid.i.ja);pui.qg(x.grid.i.oa);x.grid.i.ja.M=Ba;x.grid.i.oa.M=Ba}if(e=="page up response"){if(pui.ba[C].PageUp==null)pui.ba[C].PageUp=[];pui.ba[C].PageUp.push(x.grid.i.pa);pui.qg(x.grid.i.xa);pui.qg(x.grid.i.pa);x.grid.i.xa.M=Ba;x.grid.i.pa.M=Ba}x.M=Ba}else if(x.pui&&
606
- x.pui.widget&&sd(x.pui.widget,e)){c();if(pui.N[ra]==null)pui.N[ra]=[];pui.N[ra].push(x);td(x.pui.widget,e,Ba,ra)}}if(e=="selection field"&&W["field type"]=="grid")if(pui.o(y[N]["selection field"]))x.grid.Db=y[N]["selection field"];if(e=="row is hidden field"&&W["field type"]=="grid")if(pui.o(y[N]["row is hidden field"]))x.grid.Ee=y[N]["row is hidden field"];if(e=="tree level field"&&W["field type"]=="grid")if(pui.o(y[N]["tree level field"])){x.grid.bg=y[N]["tree level field"].fieldName;x.grid.Dg=
605
+ "0";if(W.onclick==null||W.onclick==""||pui.cc(W.onclick)){if(pui.cc(W.onclick))x.La=W.onclick.routine;pui.rg(x)}}if(e=="page down response"){if(pui.ba[C].PageDown==null)pui.ba[C].PageDown=[];pui.ba[C].PageDown.push(x.grid.i.oa);pui.rg(x.grid.i.ja);pui.rg(x.grid.i.oa);x.grid.i.ja.M=Ba;x.grid.i.oa.M=Ba}if(e=="page up response"){if(pui.ba[C].PageUp==null)pui.ba[C].PageUp=[];pui.ba[C].PageUp.push(x.grid.i.pa);pui.rg(x.grid.i.xa);pui.rg(x.grid.i.pa);x.grid.i.xa.M=Ba;x.grid.i.pa.M=Ba}x.M=Ba}else if(x.pui&&
606
+ x.pui.widget&&sd(x.pui.widget,e)){c();if(pui.N[ra]==null)pui.N[ra]=[];pui.N[ra].push(x);td(x.pui.widget,e,Ba,ra)}}if(e=="selection field"&&W["field type"]=="grid")if(pui.o(y[N]["selection field"]))x.grid.Db=y[N]["selection field"];if(e=="row is hidden field"&&W["field type"]=="grid")if(pui.o(y[N]["row is hidden field"]))x.grid.Ee=y[N]["row is hidden field"];if(e=="tree level field"&&W["field type"]=="grid")if(pui.o(y[N]["tree level field"])){x.grid.cg=y[N]["tree level field"].fieldName;x.grid.Eg=
607
607
  true;x.grid.sortable=false;if(x.grid.Ye==null)x.grid.Ye=0}if(e=="row font color"&&W["field type"]=="grid")if(pui.o(y[N][e]))x.grid.Nj=y[N][e];if(e=="row background"&&W["field type"]=="grid")if(pui.o(y[N][e]))x.grid.Lj=y[N][e];if(e.includes("grid row translation placeholders")&&W["field type"]=="grid")x.grid.Wu=pui.Kk(null,y[N],null,D,b.ref);if(e=="shortcut key"&&h!=null&&h!=""&&!pui.o(y[N].response)){if(pui.ba[C]==null)pui.ba[C]={};if(pui.ba[C][h]==null)pui.ba[C][h]=[];pui.ba[C][h].push(x);x.zd=h;
608
- if(Da==null)x.R="0";if(W.onclick==null||W.onclick==""||pui.cc(W.onclick)){if(pui.cc(W.onclick))x.La=W.onclick.routine;pui.qg(x)}}if(e=="id"&&b.n!=null){h+="."+b.n;W[e]=h}if(e=="set focus"&&h=="true")if(pui.V.dom==null||pui.V.Og!=true)if(W.visibility!="hidden"){pui.V.dom=x;if(x.comboBoxWidget!=null)pui.V.dom=x.comboBoxWidget.getBox();if(x.k!=null)pui.V.dom=x.k.getBox();pui.V.Og=true}if(e=="focus class"&&!pui.o(h)&&Kb(h)!="")if(x.pui.properties["field type"]==="combo box"){l=x.comboBoxWidget.getBox();
608
+ if(Da==null)x.R="0";if(W.onclick==null||W.onclick==""||pui.cc(W.onclick)){if(pui.cc(W.onclick))x.La=W.onclick.routine;pui.rg(x)}}if(e=="id"&&b.n!=null){h+="."+b.n;W[e]=h}if(e=="set focus"&&h=="true")if(pui.V.dom==null||pui.V.Pg!=true)if(W.visibility!="hidden"){pui.V.dom=x;if(x.comboBoxWidget!=null)pui.V.dom=x.comboBoxWidget.getBox();if(x.k!=null)pui.V.dom=x.k.getBox();pui.V.Pg=true}if(e=="focus class"&&!pui.o(h)&&Kb(h)!="")if(x.pui.properties["field type"]==="combo box"){l=x.comboBoxWidget.getBox();
609
609
  l.focusClass=Kb(h);T(l,"focus",pui.Gk);T(l,"blur",pui.em)}else{x.focusClass=Kb(h);T(x,"focus",pui.Gk);T(x,"blur",pui.em)}if(e=="required"&&h=="true"){x.am=true;if(x.k!=null)x.k.getBox().am=true}if(e=="mandatory entry"&&h=="true")x.Oq=true;if(e=="mandatory fill"&&h=="true")x.Pq=true;if(e=="valid values"&&h!=null&&h!="")x.Fq=h;if(e=="allow blanks"&&h=="true")x.Fr=true;if(e=="auto advance"&&h=="true"){n=x;if(x.comboBoxWidget!=null)n=x.comboBoxWidget.getBox();if(x.k!=null)n=x.k.getBox();n.Mn=true;T(n,
610
610
  "keyup",pui.Nn)}e=="allow dup key"&&h=="true"&&T(x,"keydown",pui.Mw);l=false;if((pui["always allow field exit"]==true||pui["always allow field exit"]=="true")&&(W["field type"]=="combo box"||W["field type"]=="date field"||W["field type"]=="spinner"||W["field type"]=="textbox"))l=true;if(e=="allow field exit"&&h=="true")l=true;if(l==true){n=x;if(x.comboBoxWidget!=null)n=x.comboBoxWidget.getBox();if(x.k!=null)n=x.k.getBox();if(pui.o(y[N].value)&&y[N].value.rjZeroFill=="true"){x.ru=true;n.ru=true}T(n,
611
- "keydown",function(Y){Y=Y||window.event;var fa=Y.keyCode;if((fa==pui["field exit key"]||fa==pui["field exit minus key"])&&!Y.shiftKey&&(pui["field exit key"]==17||!Y.ctrlKey)){var sa=tb(Y);pui.tq(sa);if(pui.rs(sa,fa==pui["field exit minus key"])==false){ub(Y);return false}}})}if(e=="validate name"&&h=="true")x.validateName=true;if(e=="validate email"&&h=="true")x.validateEmail=true;if(e=="set as modified"&&h=="true"){x.modified=true;pui.modified=true;if(b.n==null)pui.sf[C]=true}if(e.length>=11&&e.substr(0,
611
+ "keydown",function(Y){Y=Y||window.event;var fa=Y.keyCode;if((fa==pui["field exit key"]||fa==pui["field exit minus key"])&&!Y.shiftKey&&(pui["field exit key"]==17||!Y.ctrlKey)){var sa=tb(Y);pui.tq(sa);if(pui.rs(sa,fa==pui["field exit minus key"])==false){ub(Y);return false}}})}if(e=="validate name"&&h=="true")x.validateName=true;if(e=="validate email"&&h=="true")x.validateEmail=true;if(e=="set as modified"&&h=="true"){x.modified=true;pui.modified=true;if(b.n==null)pui.tf[C]=true}if(e.length>=11&&e.substr(0,
612
612
  11)=="blank value"&&h!=null&&h!=""){if(x.Ei==null)x.Ei=[];x.Ei.push(h);l=x;if(x.k!=null)l=x.k.getBox();if(x.comboBoxWidget!=null)l=x.comboBoxWidget.getBox();if((l.tagName=="DIV"?Lc(l):l.value)==h)if(l.tagName=="DIV")pui.la(l);else l.value=""}if(e=="comparison operator"&&h!=null&&h!="")x.fo=h;if(e=="comparison value"&&h!=null&&h!="")x.ho=h;if(e=="range low"&&h!=null&&h!=""){x.Sh=h;if(m!=null)x.Fy=m}if(e=="range high"&&h!=null&&h!=""){x.Rh=h;if(la!=null)x.Ey=la}if(e=="checked value")x.checkedValue=
613
- h;if(e=="unchecked value")x.uncheckedValue=h;if(e=="indeterminate value")x.indeterminateValue=h;if(e=="cursor row")x.uf=h;if(e=="cursor column")x.ve=h;if(e=="bypass validation")x.F=h;if(e=="auto arrange"&&h=="true")if(b.ul!=true){x.style.display="none";x.style.visibility="hidden";x.removeAttribute("id")}else if(W.visibility!="hidden"){l=W["shortcut key"];if(pui.ha.keys[l]==true){x.style.display="none";x.style.visibility="hidden"}else{if(l!=null)pui.ha.keys[l]=true;if(K||pui["horizontal auto arrange"]){if(pui.ha.top==
613
+ h;if(e=="unchecked value")x.uncheckedValue=h;if(e=="indeterminate value")x.indeterminateValue=h;if(e=="cursor row")x.vf=h;if(e=="cursor column")x.ve=h;if(e=="bypass validation")x.F=h;if(e=="auto arrange"&&h=="true")if(b.ul!=true){x.style.display="none";x.style.visibility="hidden";x.removeAttribute("id")}else if(W.visibility!="hidden"){l=W["shortcut key"];if(pui.ha.keys[l]==true){x.style.display="none";x.style.visibility="hidden"}else{if(l!=null)pui.ha.keys[l]=true;if(K||pui["horizontal auto arrange"]){if(pui.ha.top==
614
614
  null)pui.ha.top=parseInt(x.style.top);if(pui.ha.left==null){pui.ha.left=parseInt(x.style.left);pui.ha.hb=parseInt(x.style.left)}else if(pui["horizontal auto arrange"]){if(pui.ha.Lk==null)pui.ha.Lk=0;if(pui.ha.Fa==null)pui.ha.Fa=parseInt(x.style.top);pui.ha.Lk++;pui.ha.left=pui.ha.hb+pui.ha.Lk%pui["buttons per row"]*pui["horizontal button spacing"];pui.ha.top=pui.ha.Fa+Math.floor(pui.ha.Lk/pui["buttons per row"])*pui["vertical button spacing"]}else if(pui.ha.Yt!=null&&Math.abs(parseInt(x.style.top)-
615
615
  pui.ha.Yt)>5)pui.ha.left=pui.ha.hb;else pui.ha.left+=pui["horizontal button spacing"];x.style.left=pui.ha.left+"px";pui.ha.Yt=parseInt(x.style.top);if(pui["horizontal auto arrange"])x.style.top=pui.ha.top+"px"}else{if(pui.ha.top==null)pui.ha.top=parseInt(x.style.top);else pui.ha.top+=pui["vertical button spacing"];x.style.top=pui.ha.top+"px"}}}if(e=="allow drag"&&h=="true"){if((W.cursor==null||W.cursor=="")&&!pui.na)x.style.cursor="move";pui.hw(x,W)}}if(!w&&e=="visibility"&&W["parent tab panel"]!=
616
616
  null&&W["parent tab panel"]!="")h="hidden";if(h!=null&&h!=""){l=W;if(w)l=g.properties;x=Mc(f,l,x,h,w,g,null,b.n)}if(!w&&e=="visibility"&&h=="visible"&&b.Pj!=null)x.style.visibility=""}if(b.X!=null&&b.X.text!=""&&(String(W.column)===String(b.X.col)||b.X.col==="*all"))if(x.tagName=="DIV"){pui.jl(x,b.X.text);x.kl=true}if(pui.controller!=null&&e.indexOf("error condition")==0&&h=="1"&&!U[x.id]){f="";if(e.length>15)f=" "+parseInt(e.substr(15),10);f=W["error message"+f];M.push({id:x.id,msg:f});U[x.id]=true}}!w&&
617
- W["float placeholder"]=="true"&&pui.zg(x);if(pui["auto tab"]==true&&W["prevent auto tab"]!="true")if(W["field type"]=="combo box"||W["field type"]=="date field"||W["field type"]=="spinner"||W["field type"]=="textbox"||W["field type"]=="password field"){n=x;if(x.comboBoxWidget!=null)n=x.comboBoxWidget.getBox();if(x.k!=null)n=x.k.getBox();T(n,"keyup",function(Y){Y=Y||window.event;var fa=tb(Y),sa=true,Ca=Y.keyCode;if(Ca<48||Ca>90&&Ca<96||Ca>111&&Ca<186)if(Ca!=32)sa=false;Ca=fa;if(Ca.comboBoxWidget!=
617
+ W["float placeholder"]=="true"&&pui.Ag(x);if(pui["auto tab"]==true&&W["prevent auto tab"]!="true")if(W["field type"]=="combo box"||W["field type"]=="date field"||W["field type"]=="spinner"||W["field type"]=="textbox"||W["field type"]=="password field"){n=x;if(x.comboBoxWidget!=null)n=x.comboBoxWidget.getBox();if(x.k!=null)n=x.k.getBox();T(n,"keyup",function(Y){Y=Y||window.event;var fa=tb(Y),sa=true,Ca=Y.keyCode;if(Ca<48||Ca>90&&Ca<96||Ca>111&&Ca<186)if(Ca!=32)sa=false;Ca=fa;if(Ca.comboBoxWidget!=
618
618
  null)Ca=Ca.comboBoxWidget.getBox();if(Ca.k!=null)Ca=Ca.k.getBox();if(sa&&Ca.value.length==Ca.maxLength&&(pui.is_touch||zb(Ca)>=Ca.maxLength)){pui.To(fa);ub(Y);return false}})}if(pui["enable arrow keys"]==true)if(W["field type"]=="combo box"||W["field type"]=="date field"||W["field type"]=="spinner"||W["field type"]=="textbox"||W["field type"]=="password field"||W["field type"]=="checkbox"){n=x;if(x.comboBoxWidget!=null)n=x.comboBoxWidget.getBox();if(x.k!=null)n=x.k.getBox();pui.Er(n)}if(da)if(W["field type"]==
619
619
  "combo box"||W["field type"]=="date field"||W["field type"]=="spinner"||W["field type"]=="textbox"||W["field type"]=="password field"||W["field type"]=="checkbox"){n=x;if(x.comboBoxWidget!=null)n=x.comboBoxWidget.getBox();if(x.k!=null)n=x.k.getBox();T(n,"keydown",function(Y){Y=Y||window.event;var fa=tb(Y);if(!(fa.zb&&fa.zb.fj()))if(Y.keyCode==9)if(Y.parentElement&&(!Y.parentElement.io||!Y.parentElement.Aa)){ad(fa,!Y.shiftKey);ub(Y);return false}})}if(y[N].grid!==undefined&&y[N].grid!==null){Da=Ab(y[N].grid).grid;
620
- if(Da.Dg&&Da.bg!==null&&y[N].id==y[N].grid+Da.Im){n=x;n.pui.rrn=b.n;n.pui.grid=y[N].grid;T(n,"keydown",function(Y){Y=Y||window.event;var fa=Y.keyCode,sa=tb(Y),Ca=Ab(sa.pui.grid).grid;sa=sa.pui.rrn;if(fa==37){Ca.expandTreeLevel(sa);ub(Y);return false}if(fa==39){Ca.collapseTreeLevel(sa);ub(Y);return false}})}}if(!w&&W.visibility!="hidden"&&pui.p.ag!=null&&pui.p.ag!=""&&pui.p.Ue!=null&&pui.p.Ue!=""&&x.clientWidth>0){Da=W["cursor row"];if(x.parentNode&&x.parentNode.parentNode&&x.parentNode.parentNode.grid){Da=
621
- parseInt(Da,10);Da+=x.parentNode.parentNode.grid.g?x.parentNode.row-1:x.parentNode.row;Da=""+Da}if(pui.p.ag==Da){Da=false;if(pui.p.Ue==W["cursor column"])Da=true;if(!Da)if(W["field type"]=="textbox"||W["field type"]=="date field"||W["field type"]=="password field"||W["field type"]=="combox box"||W["field type"]=="spinner"){m=y[N].value;if(m!=null&&pui.o(m)&&m.dataLength!=null){m=Number(m.dataLength);la=Number(W["cursor column"]);f=Number(pui.p.Ue);if(!isNaN(m)&&!isNaN(la)&&!isNaN(f))if(f>la&&f<la+
622
- m)Da=true}}if(Da){pui.V.dom=x;if(x.comboBoxWidget!=null)pui.V.dom=x.comboBoxWidget.getBox();if(x.k!=null)pui.V.dom=x.k.getBox();pui.V.Og=true}}}if(!w){var xa=function(Y){pui.Zj(Y,C)};if((window.React||window.Vue)&&x.M){if(x.pui==null)x.pui={};x.pui.data=D;if(b.Ws)x.pui.data=b.Ws;x.pui.Mi=x.M.fieldName}if(x.comboBoxWidget!=null||x.k!=null||x.tagName=="TEXTAREA"||x.tagName=="INPUT"&&(pui.gj(x)||x.type=="file")){n=x;if(x.comboBoxWidget!=null){x.comboBoxWidget.formatName=C;n=x.comboBoxWidget.getBox()}if(x.k!=
620
+ if(Da.Eg&&Da.cg!==null&&y[N].id==y[N].grid+Da.Im){n=x;n.pui.rrn=b.n;n.pui.grid=y[N].grid;T(n,"keydown",function(Y){Y=Y||window.event;var fa=Y.keyCode,sa=tb(Y),Ca=Ab(sa.pui.grid).grid;sa=sa.pui.rrn;if(fa==37){Ca.expandTreeLevel(sa);ub(Y);return false}if(fa==39){Ca.collapseTreeLevel(sa);ub(Y);return false}})}}if(!w&&W.visibility!="hidden"&&pui.p.bg!=null&&pui.p.bg!=""&&pui.p.Ue!=null&&pui.p.Ue!=""&&x.clientWidth>0){Da=W["cursor row"];if(x.parentNode&&x.parentNode.parentNode&&x.parentNode.parentNode.grid){Da=
621
+ parseInt(Da,10);Da+=x.parentNode.parentNode.grid.g?x.parentNode.row-1:x.parentNode.row;Da=""+Da}if(pui.p.bg==Da){Da=false;if(pui.p.Ue==W["cursor column"])Da=true;if(!Da)if(W["field type"]=="textbox"||W["field type"]=="date field"||W["field type"]=="password field"||W["field type"]=="combox box"||W["field type"]=="spinner"){m=y[N].value;if(m!=null&&pui.o(m)&&m.dataLength!=null){m=Number(m.dataLength);la=Number(W["cursor column"]);f=Number(pui.p.Ue);if(!isNaN(m)&&!isNaN(la)&&!isNaN(f))if(f>la&&f<la+
622
+ m)Da=true}}if(Da){pui.V.dom=x;if(x.comboBoxWidget!=null)pui.V.dom=x.comboBoxWidget.getBox();if(x.k!=null)pui.V.dom=x.k.getBox();pui.V.Pg=true}}}if(!w){var xa=function(Y){pui.Zj(Y,C)};if((window.React||window.Vue)&&x.M){if(x.pui==null)x.pui={};x.pui.data=D;if(b.Ws)x.pui.data=b.Ws;x.pui.Mi=x.M.fieldName}if(x.comboBoxWidget!=null||x.k!=null||x.tagName=="TEXTAREA"||x.tagName=="INPUT"&&(pui.gj(x)||x.type=="file")){n=x;if(x.comboBoxWidget!=null){x.comboBoxWidget.formatName=C;n=x.comboBoxWidget.getBox()}if(x.k!=
623
623
  null){x.k.formatName=C;n=x.k.getBox()}if(x.M!=null&&x.M.maxLength!=null){n.maxLength=x.M.maxLength;if(x.tagName=="TEXTAREA"){T(x,"keyup",function(Y){Y=tb(Y);var fa=Number(Y.maxLength);if(!isNaN(fa)&&fa>0&&Y.value!=null&&Y.value.length>fa)Y.value=Y.value.substr(0,fa)});T(x,"paste",function(Y){var fa=tb(Y);setTimeout(function(){var sa=Number(fa.maxLength);if(!isNaN(sa)&&sa>0&&fa.value!=null&&fa.value.length>sa)fa.value=fa.value.substr(0,sa)},0)});T(x,"keydown",function(Y){Y=Y||window.event;var fa=tb(Y);
624
- if(!(Y.ctrlKey||fa.selectionStart!==fa.selectionEnd)){var sa=Y.keyCode;if(sa>=48&&sa<=57||sa>=65&&sa<=90||sa==32||sa>=106&&sa<=111||sa>=186&&sa<=192||sa>=219&&sa<=222){sa=Number(fa.maxLength);if(!isNaN(sa)&&sa>0&&fa.value!=null&&fa.value.length==sa){ub(Y);return false}}}})}}if(x.mc!=null||x.Wc!=null||x.uf!=null||x.ve!=null){T(n,"focus",pui.Zd);T(n,"keyup",pui.Zd)}T(n,"focus",pui.Uj);T(n,"keydown",pui.Uj);T(n,"change",xa);T(n,"paste",xa);T(n,"input",xa);n.ko=0;T(n,"mouseup",pui.uq);T(n,"mousedown",
624
+ if(!(Y.ctrlKey||fa.selectionStart!==fa.selectionEnd)){var sa=Y.keyCode;if(sa>=48&&sa<=57||sa>=65&&sa<=90||sa==32||sa>=106&&sa<=111||sa>=186&&sa<=192||sa>=219&&sa<=222){sa=Number(fa.maxLength);if(!isNaN(sa)&&sa>0&&fa.value!=null&&fa.value.length==sa){ub(Y);return false}}}})}}if(x.mc!=null||x.Wc!=null||x.vf!=null||x.ve!=null){T(n,"focus",pui.Zd);T(n,"keyup",pui.Zd)}T(n,"focus",pui.Uj);T(n,"keydown",pui.Uj);T(n,"change",xa);T(n,"paste",xa);T(n,"input",xa);n.ko=0;T(n,"mouseup",pui.uq);T(n,"mousedown",
625
625
  pui.uq);T(n,"keyup",pui.uq);if(pui.is_touch){n.Ul=pui.bx(n);T(n,"focus",function(Y){if(Y.srcElement.Ul)Y.srcElement.Ul.lu=true;setTimeout(function(fa){if(fa.Ul)fa.Ul.lu=false},1E3,Y.srcElement)})}T(n,"keydown",function(Y){Y=Y||window.event;var fa=Y.keyCode;fa>=9&&fa<=45&&fa!=32||fa>=112&&fa<=145||Y.ctrlKey&&fa!=88&&fa!=86||xa(Y)});x.M&&x.M.Ie&&function(){var Y=x.M.Ie;T(n,"keypress",function(fa){fa=fa||window.event;pui.Ie(fa,Y)});x.type=="number"&&x.M.noExtraSpaces&&T(n,"textInput",function(fa){fa=
626
626
  fa||window.event;Y.test(fa.data)||ub(fa)})}();if(x.M!=null&&x.M.edtMsk!=null&&x.M.edtMsk!=""){n.Ll=false;T(n,"focus",function(Y){tb(Y).Ll=false});T(n,"blur",function(Y){var fa=tb(Y);if(fa.Ll){typeof fa.onchange==="function"&&fa.onchange(Y);fa.Ll=false}});T(n,"keyup",function(Y){pui.Hn(tb(Y),Y)});T(n,"keydown",function(Y){Y=Y||window.event;var fa=Y.keyCode,sa=tb(Y),Ca=null;if(fa==46||fa==8||fa==32){var Xa=false;if(typeof sa.selectionStart=="number")Xa=sa.selectionStart==0&&sa.selectionEnd==sa.value.length;
627
627
  else if(typeof document.selection!="undefined")Xa=document.selection.createRange().text==sa.value;if(Xa){sa.value="";return}}if(fa>=48&&fa<=57)Ca=fa-48;if(fa>=96&&fa<=105)Ca=fa-96;if(fa==46)Ca=0;if(fa==8)Ca=0;if(Ca!=null){sa=tb(Y);Xa=sa.value;if(Xa!=null){var ca=zb(sa);if(fa==8&&ca>0)ca-=1;sa.value=Xa.substr(0,ca)+String(Ca)+Xa.substr(ca+1);fa!=46&&fa!=8&&ca++;sa.Ll=true;ub(Y);pui.Hn(sa,Y,ca);if(pui.is_old_ie)try{Y.keyCode=0}catch(qa){}return false}}});pui.Hn(n)}}x.tagName=="SELECT"&&T(x,"keydown",
628
- function(Y){Y=Y||window.event;var fa=Y.keyCode;if(fa==38||fa==40)xa(Y)});if(x.tagName=="SELECT"||x.tagName=="INPUT"&&(x.type=="checkbox"||x.type=="radio")){if(x.mc!=null||x.Wc!=null||x.uf!=null||x.ve!=null){T(x,"focus",pui.Zd);T(x,"keyup",pui.Zd)}T(x,"focus",pui.Uj);T(x,"keydown",pui.Uj);T(x,"change",xa);if(x.tagName!="SELECT")T(x,"click",xa);else{T(x,"keydown",function(Y){if(!Y)Y=window.event;if(Y.keyCode==34){Y.cancel=true;Y.preventDefault&&Y.preventDefault();return false}});b.n>0&&pui.is_firefox&&
629
- T(x,"keydown",function(Y){Y=Y||window.event;if(Y.keyCode==33||Y.keyCode==34)ub(Y)})}}if(x.mc!=null||x.Wc!=null||x.uf!=null||x.ve!=null)T(x,"click",pui.Zd);T(x,"click",pui.Uj)}if(!w&&!pui.na&&pui.V.dom==null&&!x.disabled&&!x.readOnly&&W.visibility!="hidden"){if(x.tagName=="INPUT")if(pui.gj(x)||x.type=="checkbox"||x.type=="radio"||x.type=="file")pui.V.dom=x;if(x.tagName=="TEXTAREA"||x.tagName=="SELECT")pui.V.dom=x;if(x.comboBoxWidget!=null)pui.V.dom=x.comboBoxWidget.getBox();if(x.k!=null)pui.V.dom=
628
+ function(Y){Y=Y||window.event;var fa=Y.keyCode;if(fa==38||fa==40)xa(Y)});if(x.tagName=="SELECT"||x.tagName=="INPUT"&&(x.type=="checkbox"||x.type=="radio")){if(x.mc!=null||x.Wc!=null||x.vf!=null||x.ve!=null){T(x,"focus",pui.Zd);T(x,"keyup",pui.Zd)}T(x,"focus",pui.Uj);T(x,"keydown",pui.Uj);T(x,"change",xa);if(x.tagName!="SELECT")T(x,"click",xa);else{T(x,"keydown",function(Y){if(!Y)Y=window.event;if(Y.keyCode==34){Y.cancel=true;Y.preventDefault&&Y.preventDefault();return false}});b.n>0&&pui.is_firefox&&
629
+ T(x,"keydown",function(Y){Y=Y||window.event;if(Y.keyCode==33||Y.keyCode==34)ub(Y)})}}if(x.mc!=null||x.Wc!=null||x.vf!=null||x.ve!=null)T(x,"click",pui.Zd);T(x,"click",pui.Uj)}if(!w&&!pui.na&&pui.V.dom==null&&!x.disabled&&!x.readOnly&&W.visibility!="hidden"){if(x.tagName=="INPUT")if(pui.gj(x)||x.type=="checkbox"||x.type=="radio"||x.type=="file")pui.V.dom=x;if(x.tagName=="TEXTAREA"||x.tagName=="SELECT")pui.V.dom=x;if(x.comboBoxWidget!=null)pui.V.dom=x.comboBoxWidget.getBox();if(x.k!=null)pui.V.dom=
630
630
  x.k.getBox()}w&&W["field type"]=="grid"&&G.Ys.push(g);w&&W["field type"]=="layout"&&G.QA.push(g);m=W["field type"];if(m!=null){m=pui.widgets[m];m!=null&&m.initialize!=null&&m.initialize({design:w,properties:W,dom:x,d:g});if(x.pui&&x.pui.widget&&x.pui.widget)dd(x.pui.widget);else x.Ja&&x.Ja.render(b)}if(!w&&W["field type"]=="layout"){pui.xl.push(x.layout);if(W["lazy load"]=="true"&&typeof x.layout.uu=="function"){ba[W.id]=x.layout;x.layout.uu(b)}}if(!w&&W["field type"]=="grid"){g=b.subfiles;var Na,
631
631
  Ia,eb,xb;Da=pui.Kb(W["record format name"]);if(g!=null)Na=g[Da];if(Na!=null)Ia=Na.data;if(Na!=null)eb=Na["field names"];if(Na!=null)xb=Na.ref;if(Na!=null)s=Na.errors;x.grid.Io=b.fileId;if(typeof pui.view!="undefined")x.grid.Qb="pui-grid-"+pui.view;else if(typeof b.file!="undefined"&&typeof b.library!="undefined")x.grid.Qb="pui-grid-"+b.library+"-"+b.file+"-"+Da;W["persist state"]==="program only"&&Na&&Na.renderCount===1&&delete pui.Gj[x.grid.Qb];if(Na!=null&&Na.useServerState&&Na.storedState!=null){x.grid.Nz=
632
632
  true;x.grid.de=Na.storedState}x.grid.dataArray=Ia!=null?Ia:[];x.grid.Y=eb!=null?eb:[];if(pui.handler!=null&&Ia==null){(Ia=D[pui.Kb(W["record format name"])])||(Ia=[]);eb=[];Na=[];eb={};for(g=0;g<y.length;g++){Da=y[g];if(Da.grid===W.id)for(var qb in Da){m=Da[qb];if(pui.o(m))eb[m.fieldName]=true}}eb=Object.keys(eb);for(g=0;g<Ia.length;g++){Da=[];m=Ia[g];for(la=0;la<eb.length;la++){r=eb[la];Da.push(m[r])}Na.push(Da)}x.grid.dataArray=Na;x.grid.Y=eb;x.grid.Xs=Ia;Na={}}x.grid.ref=xb!=null?xb:{};if(s!=null)x.grid.errors=
@@ -636,23 +636,23 @@ trimLeading:"false",trimTrailing:"true",lowerCaseField:true}});x.grid.w.push({id
636
636
  fieldName:"time",formatting:"Text",textTransform:"none",trimLeading:"false",trimTrailing:"true",lowerCaseField:true}})}if(x.grid.dataArray.length==0)if(pui.o(y[N]["subfile message key"])||pui.o(y[N]["subfile program message queue"]))x.grid.ap();Na==null&&x.grid.ap();g=Number(W["subfile record number"]);x.grid.ym=g;if(isNaN(g)){g=1;x.grid.ym=0}if(g<1||g>9999){g=1;x.grid.ym=0}if(W["position at top"]!="true")x.grid.$u(g);else x.grid.h=g;if(W["place cursor"]=="true"){x.grid.Ej=g;pui.Dj=true}x.grid.oz();
637
637
  B.push(x.grid);pui.bb.push(x.grid)}if(!w&&b.n!=null){x.n=b.n;x.gk=b.name;if(y[N].domEls==null)y[N].domEls=[];y[N].domEls[b.n-1]=x}}if((pui.controller!=null||typeof pui.handler=="function")&&W!=null&&W["set as modified"]!="false")x.modified=true;if(!w&&b.Yb!=null)x.Yb=b.Yb;if(!w&&p!=null&&!p.expanded&&pa){pa=parseInt(pa.style.height);if(!isNaN(pa)){p=parseInt(x.style.top);if(isNaN(p))p=0;if(p>pa&&(x.tagName=="INPUT"||x.tagName=="SELECT"||x.tagName=="TEXTAREA")&&!x.disabled){x.Rp=true;x.disabled=true}}}}ea&&
638
638
  y.pop();if(!w){s=pui.controller!=null&&M.length>0?M:b.errors;if(s!=null)if(b.n!=null){s=s[String(b.n)];s!=null&&pui.pq(s,b.n)}else{for(e=0;e<s.length;e++){var pb=s[e],rb;try{rb=JSON.parse(pb.msg)}catch(Eb){rb=false}if(rb&&typeof rb=="object")if(!(!pui.Bd||pui.Bd.length<=0)){h=y.find(function(Y){return Y.id===pb.id});D=pui.Kk(h,null,screen,b.data,b.ref);pb.msg=D.keys&&D.keys.length>0?h["error message"]:pui.Bd[rb.transId]}}pui.pq(s)}}for(N=0;N<E.length;N++){s=document.getElementById(E[N]);y=s.tabPanel;
639
- if(!y)y=s.Ja;if(y&&typeof y.Xc==="function"){if(J[N])y.selectedTab=J[N];y.Xc()}}if(w)for(N=0;N<G.Ys.length;N++)G.Ys[N].dom.grid.$b(true);B.forEach(function(Y){if(pui.V!=null&&pui.V.Og==true)Y.Ej=null;if(Y.lt())Y.collapse(Ab(Y.b.id+"_expander"));else{if(Y.Xe)return;Y.getData()}if(!Y.Xe){Y.h>1&&Y.c!=null&&Y.c.type=="sliding"&&Y.c.xd(Y.h,true);if(pui.Dj&&pui.p.Ue==null&&pui.p.ag==null)if(pui.V==null||pui.V.Og!=true)setTimeout(function(){Y.St(true)},1);if(Y.c!=null){!w&&Y.c.type=="sliding"&&Y.c.gc==1&&
640
- Y.c.z();if(!w&&typeof z["record format name"]==="string"&&Y.c.type=="paging"){var fa=z["record format name"],sa=pui.Kb(fa);if(pui.ba[fa]==null&&pui.ba[sa]!=null)fa=sa;if(pui.ba[fa]!=null){if(pui.ba[fa].PageDown==null)pui.ba[fa].PageDown=[];Y.i.Gp=true;if(pui.ba[fa].PageUp==null)pui.ba[fa].PageUp=[];Y.i.Ip=true}}}if(Y.Px()){Y.De.collapseAll();Y.bm()}Y.Bl();Y.Vy()}});for(var bb in ba)if(G=ba[bb]){s=-1;if(typeof G.Cg==="function")s=G.Cg();typeof G.fm==="function"&&G.fm(s)}if(!w){pui.onload!=null&&typeof pui.onload==
641
- "function"&&aa&&b.Qj!==false&&!pui.ea&&pui.onload(b);if(z!=null){if(b.Qj!==false){if(pui.clientLogic)if((bb=z["initial routine"])&&bb.routine){bb=bb.routine;try{eval('pui["routineFunction"] = function() {\r\n'+pui.clientLogic[bb]+'\r\n}; \r\npui["routineFunction"]();')}catch(ob){console.error(ob)}}bb=z.onload;if(bb!=null&&bb!="")try{eval('var format = "'+z["record format name"]+'";');eval('var file = "'+b.file+'";');eval(bb)}catch(jb){pui.Ea(jb,"Onload Error:\n")}}pui.Lg=z.onsubmit;if(z.onmessage&&
639
+ if(!y)y=s.Ja;if(y&&typeof y.Xc==="function"){if(J[N])y.selectedTab=J[N];y.Xc()}}if(w)for(N=0;N<G.Ys.length;N++)G.Ys[N].dom.grid.$b(true);B.forEach(function(Y){if(pui.V!=null&&pui.V.Pg==true)Y.Ej=null;if(Y.lt())Y.collapse(Ab(Y.b.id+"_expander"));else{if(Y.Xe)return;Y.getData()}if(!Y.Xe){Y.h>1&&Y.c!=null&&Y.c.type=="sliding"&&Y.c.xd(Y.h,true);if(pui.Dj&&pui.p.Ue==null&&pui.p.bg==null)if(pui.V==null||pui.V.Pg!=true)setTimeout(function(){Y.St(true)},1);if(Y.c!=null){!w&&Y.c.type=="sliding"&&Y.c.gc==1&&
640
+ Y.c.z();if(!w&&typeof z["record format name"]==="string"&&Y.c.type=="paging"){var fa=z["record format name"],sa=pui.Kb(fa);if(pui.ba[fa]==null&&pui.ba[sa]!=null)fa=sa;if(pui.ba[fa]!=null){if(pui.ba[fa].PageDown==null)pui.ba[fa].PageDown=[];Y.i.Gp=true;if(pui.ba[fa].PageUp==null)pui.ba[fa].PageUp=[];Y.i.Ip=true}}}if(Y.Px()){Y.De.collapseAll();Y.bm()}Y.Bl();Y.Vy()}});for(var bb in ba)if(G=ba[bb]){s=-1;if(typeof G.Dg==="function")s=G.Dg();typeof G.fm==="function"&&G.fm(s)}if(!w){pui.onload!=null&&typeof pui.onload==
641
+ "function"&&aa&&b.Qj!==false&&!pui.ea&&pui.onload(b);if(z!=null){if(b.Qj!==false){if(pui.clientLogic)if((bb=z["initial routine"])&&bb.routine){bb=bb.routine;try{eval('pui["routineFunction"] = function() {\r\n'+pui.clientLogic[bb]+'\r\n}; \r\npui["routineFunction"]();')}catch(ob){console.error(ob)}}bb=z.onload;if(bb!=null&&bb!="")try{eval('var format = "'+z["record format name"]+'";');eval('var file = "'+b.file+'";');eval(bb)}catch(jb){pui.Ea(jb,"Onload Error:\n")}}pui.Mg=z.onsubmit;if(z.onmessage&&
642
642
  typeof z["record format name"]==="string"){pui.Pl[z["record format name"].toLowerCase()]=z.onmessage;if(b.msgInfo!=null&&aa&&b.Qj!==false&&!pui.ea){pui.message=b.msgInfo;try{eval('var message = pui["message"];');eval(z.onmessage)}catch(d){pui.Ea(d,"Onmessage Error:\n")}}}["onkeydown","onkeypress","onkeyup"].forEach(function(Y){if(aa&&b.vl&&z[Y]!=null&&z[Y]!=""){var fa=function(Ca){pui.temp_event=Ca;eval("var event = pui.temp_event;");eval('var format = "'+z["record format name"]+'";');eval('var file = "'+
643
643
  b.file+'";');try{var Xa=eval(z[Y]);if(typeof Xa=="function"){if(!Ca)Ca=window.event;Xa(Ca)}}catch(ca){pui.Ea(ca,Y.substr(0,1).toUpperCase()+Y.substr(1)+" Error:\n")}},sa=Y.substring(2);document.body.addEventListener(sa,fa);pui.gq.push({Xw:document.body,Ww:sa,Vw:fa})}})}if(b.yl!=null){pui.Pb&&pui.Fu();if(b.sj!=null)try{eval('var lazyContainerNum = "'+b.yl+'";');eval(b.sj)}catch(Wa){pui.Ea(Wa,"OnLazyLoad Error:\n")}}}pui["enable arrow keys"]==true&&pui.Pw();t=rd(t);pui.gm&&console.log("Format "+C+" rendered in "+
644
644
  t+"ms")};pui.Pw=function(){pui.Jr.Ry();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.Er(b[e])}}};
645
645
  pui.Jr=new (function(){var b=this;b.Jn=false;b.Ry=function(){b.Jn=false};b.handler=function(a){a=a||window.event;var c=tb(a);if(!(c.zb&&c.zb.fj())){var e=a.keyCode,f=c;if(f.comboBoxWidget!=null)f=f.comboBoxWidget.getBox();if(f.k!=null)f=f.k.getBox();if(e==37)if(zb(f)<=0){pui.gl(c,"left");ub(a);return false}if(e==38){pui.gl(c,"up");ub(a);return false}if(e==39)if(zb(f)>=f.value.length){pui.gl(c,"right");ub(a);return false}if(e==40){pui.gl(c,"down");ub(a);if(!b.Jn&&c.className.includes("qf")&&c.nodeName===
646
- "INPUT"){b.Jn=true;setTimeout(function(){c.dispatchEvent(a)},50)}return false}}}});pui.Er=function(b){typeof b==="undefined"||typeof b.tagName==="undefined"||b.tagName!=="INPUT"||T(b,"keydown",pui.Jr.handler)};pui.qg=function(b){b.wx=true;T(b,"click",pui.Uy)};
646
+ "INPUT"){b.Jn=true;setTimeout(function(){c.dispatchEvent(a)},50)}return false}}}});pui.Er=function(b){typeof b==="undefined"||typeof b.tagName==="undefined"||b.tagName!=="INPUT"||T(b,"keydown",pui.Jr.handler)};pui.rg=function(b){b.wx=true;T(b,"click",pui.Uy)};
647
647
  pui.Uy=function(b){for(var a=b.target;a!=null&&!a.wx;)a=a.parentNode;if(a!=null){var c;if(a.disabled!=true)if(!(a.getAttribute!=null&&a.getAttribute("disabled")=="true")){if(a.Cb!=null){if(a.nextPage==true&&!a.Cb.grid.Xb()){a.Cb.grid.Fp();return}if(a.Oh==true&&!a.Cb.grid.Ib()){a.Cb.grid.Hp();return}}if(a.zd!=null)pui.tb=a.zd;b=[];if(a.zd!=null){a.Cb&&b.push(a);for(var e in pui.ba){var f=pui.ba[e][pui.tb];if(f!=null)for(c=0;c<f.length;c++)f[c].Cb||b.push(f[c])}}else b.push(a);for(c=0;c<b.length;c++){b[c].R=
648
648
  "1";if(b[c].F=="true"||b[c].F=="send data")pui.F=b[c].F}e=a.parentNode;if(e!=null){c=e.parentNode;if(c!=null){c=c.grid;c!=null&&c.rm(e.row)}}pui.Wk=null;pui.th=null;pui.Vk=null;pui.so=null;if(a.pui&&a.pui.properties&&a.pui.properties["destination url"]){e=a.pui.properties;pui.Wk=e["destination url"];pui.Vk=!e.bookmarkable||e.bookmarkable=="true";pui.so=e["redirect to destination"]=="true";pui.th=[];c=1;f="destination parameter name";for(var g="destination parameter value";e[f];){pui.th.push([e[f],
649
649
  e[g]]);f="destination parameter name "+ ++c;g="destination parameter value "+c}}pui.La=a.La;pui.Rc=a.n;pui.Qc=a.gk;a=pui.fc();pui.Wk=null;pui.th=null;pui.Vk=null;pui.so=null;if(a==false){for(c=0;c<b.length;c++)b[c].R="0";pui.F="false";pui.La=null;pui.Rc=null;pui.Qc=null}}}};
650
- pui.pq=function(b,a){var c,e=[];for(c=b.length-1;c>=0;c-=1){var f=b[c],g=f.msg;if(f.encoded)g=pui.formatting.wg(g);var h=null,l;if(String(g).substr(0,3).toLowerCase()=="js:")h=g.substr(3);if(String(g).substr(0,11).toLowerCase()=="javascript:")h=g.substr(11);if(String(g).substr(0,7).toLowerCase()=="script:")h=g.substr(7);if(h!==null&&Kb(h)!==""){l=g;try{g=eval(h)}catch(n){if(!pui.gi){pui.gi=true;setTimeout(function(){pui.alert("Expression '"+Kb(h)+"' contains an error:\n\n"+n.message);pui.gi=false},
650
+ pui.pq=function(b,a){var c,e=[];for(c=b.length-1;c>=0;c-=1){var f=b[c],g=f.msg;if(f.encoded)g=pui.formatting.xg(g);var h=null,l;if(String(g).substr(0,3).toLowerCase()=="js:")h=g.substr(3);if(String(g).substr(0,11).toLowerCase()=="javascript:")h=g.substr(11);if(String(g).substr(0,7).toLowerCase()=="script:")h=g.substr(7);if(h!==null&&Kb(h)!==""){l=g;try{g=eval(h)}catch(n){if(!pui.gi){pui.gi=true;setTimeout(function(){pui.alert("Expression '"+Kb(h)+"' contains an error:\n\n"+n.message);pui.gi=false},
651
651
  1)}}if(typeof g=="undefined")g=l}g=g.replace(/&N/g,"<br/>");g=g.replace(/&P/g,"<br/>");g=g.replace(/&B/g,"<br/>");l=f.dom;f=f.id;if(a!=null)f+="."+a;if(l==null&&f!=null)l=Ab(f);if(l==null||l.tagName==null)g!=null&&g!=""&&e.push(g);else{if(l.parentNode&&l.parentNode.comboBoxWidget)l=l.parentNode;if(l.parentNode&&l.parentNode.k)l=l.parentNode;f=l;if(l.comboBoxWidget!=null)f=l.comboBoxWidget.getBox();if(l.k!=null)f=l.k.getBox();if(l.pui.properties["error message location"]=="alert")e.push(g);else{var m=
652
- f.G;if(m==null)m=new pui.eg(l);if(!m.ia){pui.P(f,m.Ag());m.Yh(g);m.show(3E3,true)}g=l.parentNode;if(g!=null){g=g.parentNode;if(g!=null){g=g.grid;if(g!=null)g.Hq[l.id]=m}}}}}if(e.length>0){l="";for(c=e.length-1;c>=0;c-=1){if(c!=e.length-1)l+="<br/>";l+=e[c]}for(var r=l;r.indexOf("<br/>")>=0;)r=r.replace("<br/>","\n");setTimeout(function(){pui.alert(r)},1)}var p=!pui.Pb;setTimeout(function(){pui.Gg=true;for(var s=0;s<b.length;s++){var t=b[s].id;if(a!=null)t+="."+a;var w=b[s].dom;if(w==null&&t!=null)w=
653
- Ab(t);if(w!=null){if(w.comboBoxWidget!=null)w=w.comboBoxWidget.getBox();if(w.k!=null)w=w.k.getBox();try{if(p){pui.V.dom=w;pui.V.Og=true}else{w.focus();pui["highlight on focus"]&&w.select()}m.ia||w.G.show();break}catch(z){}}}setTimeout(function(){pui.Gg=false},0)},0)};
654
- pui.fc=function(){var b="";if(pui.rj!=null)return false;if(pui.isServerBusy())return false;if(pui.ql)return false;if(pui["prioritize onsubmit event"]==true)if(pui.Lg!=null&&pui.Lg!="")b=eval(pui.Lg);var a=pui.Wr();if(typeof a.valid=="boolean"&&a.valid==false)if(pui.F!="true"&&(pui.F!="send data"||a.Cp==true)){a.Cp=false;pui.pq(a.errors);pui.$d={};pui.tb="";return false}zc();if(typeof b=="function"&&pui["prioritize onsubmit event"]==true)b=b(a);if(pui.Lg!=null&&pui.Lg!=""&&pui["prioritize onsubmit event"]==
655
- false)try{b="";pui.du=a;b=eval(pui.Lg);if(typeof b=="function")b=b(a);delete pui.du;if(b==false){pui.$d={};pui.tb="";return false}}catch(c){pui.Ea(c,"Onsubmit Error:\n");pui.$d={};pui.tb="";return false}if(pui.onsubmit!=null&&typeof pui.onsubmit=="function")if(pui.onsubmit()==false){pui.$d={};pui.tb="";return false}pui.Pb=false;pui.Ve();b=false;if(pui.F!="true"&&(pui.F!="send data"||a.Cp==true))b=pui.vy(a);if(!b){pui.haltFrames();pui.submitResponse(a)}return true};
652
+ f.G;if(m==null)m=new pui.fg(l);if(!m.ia){pui.P(f,m.Bg());m.Yh(g);m.show(3E3,true)}g=l.parentNode;if(g!=null){g=g.parentNode;if(g!=null){g=g.grid;if(g!=null)g.Hq[l.id]=m}}}}}if(e.length>0){l="";for(c=e.length-1;c>=0;c-=1){if(c!=e.length-1)l+="<br/>";l+=e[c]}for(var r=l;r.indexOf("<br/>")>=0;)r=r.replace("<br/>","\n");setTimeout(function(){pui.alert(r)},1)}var p=!pui.Pb;setTimeout(function(){pui.Hg=true;for(var s=0;s<b.length;s++){var t=b[s].id;if(a!=null)t+="."+a;var w=b[s].dom;if(w==null&&t!=null)w=
653
+ Ab(t);if(w!=null){if(w.comboBoxWidget!=null)w=w.comboBoxWidget.getBox();if(w.k!=null)w=w.k.getBox();try{if(p){pui.V.dom=w;pui.V.Pg=true}else{w.focus();pui["highlight on focus"]&&w.select()}m.ia||w.G.show();break}catch(z){}}}setTimeout(function(){pui.Hg=false},0)},0)};
654
+ pui.fc=function(){var b="";if(pui.rj!=null)return false;if(pui.isServerBusy())return false;if(pui.ql)return false;if(pui["prioritize onsubmit event"]==true)if(pui.Mg!=null&&pui.Mg!="")b=eval(pui.Mg);var a=pui.Wr();if(typeof a.valid=="boolean"&&a.valid==false)if(pui.F!="true"&&(pui.F!="send data"||a.Cp==true)){a.Cp=false;pui.pq(a.errors);pui.$d={};pui.tb="";return false}zc();if(typeof b=="function"&&pui["prioritize onsubmit event"]==true)b=b(a);if(pui.Mg!=null&&pui.Mg!=""&&pui["prioritize onsubmit event"]==
655
+ false)try{b="";pui.du=a;b=eval(pui.Mg);if(typeof b=="function")b=b(a);delete pui.du;if(b==false){pui.$d={};pui.tb="";return false}}catch(c){pui.Ea(c,"Onsubmit Error:\n");pui.$d={};pui.tb="";return false}if(pui.onsubmit!=null&&typeof pui.onsubmit=="function")if(pui.onsubmit()==false){pui.$d={};pui.tb="";return false}pui.Pb=false;pui.Ve();b=false;if(pui.F!="true"&&(pui.F!="send data"||a.Cp==true))b=pui.vy(a);if(!b){pui.haltFrames();pui.submitResponse(a)}return true};
656
656
  pui.Wr=function(b){function a(B,G){if(B!=null&&B!=""&&G!=null&&G!="")if(typeof B=="object")for(var D in B)s[D]=G;else s[B]=G}function c(B){if(!pui["uppercase cursor fields"])return B;if(typeof B!=="string")return B;return B.toUpperCase()}var e,f,g,h,l,n,m,r,p,s={};if(!b){for(e in pui.ph){f=pui.ph[e];for(g=0;g<f.length;g++){l=f[g];if(l.modified&&(pui.controller!=null||pui.F!="true")){s[e]="1";break}}if(s[e]!="1")s[e]="0"}for(e in pui.Eh){f=pui.Eh[e];for(g=0;g<f.length;g++){l=f[g];if(typeof l.value==
657
657
  "string"&&Kb(l.value)==""){s[e]="1";break}}if(s[e]!="1")s[e]="0"}for(e in pui.xh){f=pui.xh[e];for(g=0;g<f.length;g++){l=f[g];if(pui.fp(l)){s[e]="1";break}}if(s[e]!="1")s[e]="0"}pui.bb.forEach(function(B){if(B.Nz&&B.Qb!=null&&B.de!=null&&B.de!=""){var G=pui.Kb(B.Wa)+".storageKey",D=pui.Kb(B.Wa)+".storedState";s[G]=B.Qb;s[D]=B.de}})}f=pui.N;if(b)f=b;for(e in f){n=f[e];l=n[0];if(l.type=="radio")for(h=0;h<n.length;h++){g=n[h];if(g.modified){l=g;break}}var t=l;if(l.comboBoxWidget!=null)t=l.comboBoxWidget.getBox();
658
658
  if(l.k!=null)t=l.k.getBox();m=null;if(l.R!=null){m=l.R;if(m=="0")for(g=1;g<n.length;g++){if(n[g].R=="1"){m="1";break}}else if(l.R==""&&l.pui!=null&&l.pui.properties["field type"]=="menu"&&n.length>1)for(g=1;g<n.length;g++)if(n[g].R!=""){m=n[g].R;break}if(l.oj){g=e.split(".");h=g[0];var w=parseInt(g[g.length-1]);if(!isNaN(w)&&w>0){g=h+".rrn";n=g+"="+w;if(pui.$d[n]!=true){if(s[g]==null)s[g]=[];s[g].push(w);pui.$d[n]=true}}}s[e]=m}else{if(pui.modified&&pui.F!="true"&&pui.F!="send data"){if(l.Oq==true&&
@@ -671,46 +671,46 @@ w)g="Value must be greater than "+z+".";break;case "Greater Than or Equal":if(n<
671
671
  n=Number(n)}if(typeof w=="string")w=Ob(w);if(typeof n=="string")n=Ob(n);if(h.formatting=="Date"){n=g=pui.uc.Date.Js(n,h);w=l.Fy}if(n<w){n=l.Sh;if(h.formatting!="Number")n="'"+n+"'";g=pui.getLanguageText("runtimeMsg","invalid low range",[n]);if(l.Rh!=null){m=l.Rh;if(h.formatting!="Number")m="'"+m+"'";g=pui.getLanguageText("runtimeMsg","invalid range",[n,m])}s.valid=false;if(s.errors==null)s.errors=[];s.errors.push({dom:t,msg:g});if(t.G!=null&&t.G.ia!=null)t.G.ia=false;continue}}if(typeof l.Rh=="string"){w=
672
672
  l.Rh;n=m;if(h.formatting=="Number"){w=Number(w);n=Number(n)}if(h.formatting=="Date"){n=g==null?pui.uc.Date.Js(n,h):g;w=l.Ey}if(typeof w=="string")w=Ob(w);if(typeof n=="string")n=Ob(n);if(n>w){m=l.Rh;if(h.formatting!="Number")m="'"+m+"'";g=pui.getLanguageText("runtimeMsg","invalid high range",[m]);if(l.Sh!=null){n=l.Sh;if(h.formatting!="Number")n="'"+n+"'";g=pui.getLanguageText("runtimeMsg","invalid range",[n,m])}s.valid=false;if(s.errors==null)s.errors=[];s.errors.push({dom:t,msg:g});if(t.G!=null&&
673
673
  t.G.ia!=null)t.G.ia=false;continue}}}s[e]=m;if(l.n!=null){h=e.split(".")[0];g=h+".rrn";n=g+"="+l.n;if(pui.$d[n]!=true){if(s[g]==null)s[g]=[];s[g].push(l.n);pui.$d[n]=true}t=pui.vq[h.toLowerCase()];if(t!=null)s[h+"."+t+"."+l.n]="1"}}}}}if(pui.La){s.routine=pui.La;if(pui.Rc&&pui.Qc){s.routineRow=pui.Rc;s.routineGrid=pui.Qc}}if(b)return s;if(pui.tb!=null&&pui.tb!=""){b=pui.dx[pui.tb];if(b!=null&&b>0)s.fkey=String(b);b=pui.Fn[pui.tb];s.aid=b!=null?String(b):pui.Fn.Enter}a(pui.Ba.record,c(pui.p.record));
674
- a(pui.Ba.field,c(pui.p.field));a(pui.Ba.position,pui.p.position);a(pui.Ba.row,pui.p.row);a(pui.Ba.column,pui.p.column);b=Number(pui.p.row);if(!isNaN(b)&&b>0)s.row=String(b);b=Number(pui.p.column);if(!isNaN(b)&&b>0)s.column=String(b);if(pui.p.Jq!=null)s.wrow=String(pui.p.Jq);if(pui.p.Iq!=null)s.wcolumn=String(pui.p.Iq);for(r in pui.Qk){l=pui.Qk[r];if(l.tf!=null)s[r]=l.tf}for(var y in pui.km){l=pui.km[y];if(l.qu!=null){s[y]=l.qu;if(pui.tb=="PageUp")s[y]=1;if(pui.tb=="PageDown")s[y]+=l.grid.Ro()}}for(var E in pui.Hm)s[E]=
675
- pui.Hm[E];for(var J in pui.xm){l=pui.xm[J];s[J]=l.grid.expanded?"0":"1"}if(pui.ue!=null){r=pui.ue.b.rh;m=pui.ue.co;if(r!=null&&m!=null)s[r]=m;r=pui.ue.b.Vh;m=pui.ue.Xf;if(r!=null&&m!=null)s[r]=m}if(pui.xe!=null){r=pui.xe.b.xg;m=pui.xe.Qi;if(r!=null&&m!=null)s[r]=m;r=pui.xe.b.Vh;m=pui.xe.Xf;if(r!=null&&m!=null)s[r]=m}if(pui.cl!=null){r=pui.cl.b.Ds;m=pui.cl.yg;if(r!=null&&m!=null)s[r]=m}for(p in pui.Ok)s[pui.Ok[p]]=pui.sf[p]&&(pui.controller!=null||pui.F!="true")?"1":"0";if(pui.Wl){if(pui.Om!=null&&
674
+ a(pui.Ba.field,c(pui.p.field));a(pui.Ba.position,pui.p.position);a(pui.Ba.row,pui.p.row);a(pui.Ba.column,pui.p.column);b=Number(pui.p.row);if(!isNaN(b)&&b>0)s.row=String(b);b=Number(pui.p.column);if(!isNaN(b)&&b>0)s.column=String(b);if(pui.p.Jq!=null)s.wrow=String(pui.p.Jq);if(pui.p.Iq!=null)s.wcolumn=String(pui.p.Iq);for(r in pui.Qk){l=pui.Qk[r];if(l.uf!=null)s[r]=l.uf}for(var y in pui.km){l=pui.km[y];if(l.qu!=null){s[y]=l.qu;if(pui.tb=="PageUp")s[y]=1;if(pui.tb=="PageDown")s[y]+=l.grid.Ro()}}for(var E in pui.Hm)s[E]=
675
+ pui.Hm[E];for(var J in pui.xm){l=pui.xm[J];s[J]=l.grid.expanded?"0":"1"}if(pui.ue!=null){r=pui.ue.b.rh;m=pui.ue.co;if(r!=null&&m!=null)s[r]=m;r=pui.ue.b.Vh;m=pui.ue.Yf;if(r!=null&&m!=null)s[r]=m}if(pui.xe!=null){r=pui.xe.b.yg;m=pui.xe.Qi;if(r!=null&&m!=null)s[r]=m;r=pui.xe.b.Vh;m=pui.xe.Yf;if(r!=null&&m!=null)s[r]=m}if(pui.cl!=null){r=pui.cl.b.Ds;m=pui.cl.zg;if(r!=null&&m!=null)s[r]=m}for(p in pui.Ok)s[pui.Ok[p]]=pui.tf[p]&&(pui.controller!=null||pui.F!="true")?"1":"0";if(pui.Wl){if(pui.Om!=null&&
676
676
  pui.ud!=null)s[pui.Om]=String(parseInt(pui.ud.style.top));if(pui.Mm!=null&&pui.ud!=null)s[pui.Mm]=String(parseInt(pui.ud.style.left))}if(pui.Jm!=null)s[pui.Jm]=s.aid!=pui.Fn.Enter?"1":"0";for(g=0;g<pui.wm.length;g++){p=pui.wm[g];if(s[p]==null)s[p]="0"}if(pui.mb.fc==true){if(pui.mb.oo!=null)s[pui.mb.oo]=pui.dragDropInfo["dd element id"];if(pui.mb.po!=null){p=pui.dragDropInfo["dd record number"];if(p==null)p=0;s[pui.mb.po]=String(p)}if(pui.mb.wq!=null)s[pui.mb.wq]=pui.dragDropInfo["target element id"];
677
677
  if(pui.mb.xq!=null){p=pui.dragDropInfo["target record number"];if(p==null)p=0;s[pui.mb.xq]=String(p)}}if(pui.Di!=null)s[pui.Di]=pui.jq?"1":"0";if(pui.controller!=null){p=0;r=pui.Ud.layers;for(g=0;g<r.length;g++){y=r[g].formats;for(h=0;h<y.length;h++)s["pui-recname."+ ++p]=y[h].metaData.screen["record format name"]}}if(typeof pui.beforeRespond==="function")if(p=pui.beforeRespond(s))s=p;return s};
678
678
  pui.submitResponse=function(b,a){if(pui.isCloudPreview)setTimeout(function(){pui.Pb=true;pui.bc()},500);else{if(pui.sl){if(!pui.Pb)return false;pui.Pb=false}if(b==null)b=pui.captureData();else if(typeof b==="string")b=pui.captureData(b,a);var c;c=pui.D==null?Vb("PUI0001200.pgm"):Vb("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!=
679
679
  null&&typeof pui.handler=="function"){if(pui.Wk){var f=pui.Wk.split("?"),g="";c=f[0];if(f.length>1)g=f[1];var h="";f=[];for(var l=0;l<pui.th.length;l++){var n=pui.th[l][0];a=pui.th[l][1];if(h!="")h+="&";h+=encodeURIComponent(n)+"="+encodeURIComponent(a);f.push('"'+n+'"','"'+a+'"');b[n]=a}if(pui.Vk){if(g!="")g+="&";g+=h}if(g!="")c+="?"+g;if(pui.so){if(pui.Vk)location.href=c;else{g='postTo("'+c+'"';if(f.length>0)g+=","+f.join(",");g+=");";eval(g)}return}else pui.controller=c}pui.handler(b)}else{pui.jb.end();
680
- try{g=Atrium.getSettings()}catch(m){}g&&g.ACTIMEOUT==="1"&&Atrium.resetInactivityTimeout();pui.Ve();var r=function(){pui.recordTest&&pui.Cc.payloads.push({url:c,data:Object.assign({},b)});if(pui.isCloud)b.workspace_id=pui.cloud.ws.id;ac({url:pui.pg(c),method:"post",params:b,sendAsBinary:false,saveResponse:true,suppressAlert:true,handler:function(p){if(p==null){var s=function(){if(shutDown()!=false){if(typeof pui!="undefined"&&pui!=null){pui.shutdownOnClose=false;pui.confirmOnClose=false}P=""}};if($c().record===
680
+ try{g=Atrium.getSettings()}catch(m){}g&&g.ACTIMEOUT==="1"&&Atrium.resetInactivityTimeout();pui.Ve();var r=function(){pui.recordTest&&pui.Cc.payloads.push({url:c,data:Object.assign({},b)});if(pui.isCloud)b.workspace_id=pui.cloud.ws.id;ac({url:pui.qg(c),method:"post",params:b,sendAsBinary:false,saveResponse:true,suppressAlert:true,handler:function(p){if(p==null){var s=function(){if(shutDown()!=false){if(typeof pui!="undefined"&&pui!=null){pui.shutdownOnClose=false;pui.confirmOnClose=false}P=""}};if($c().record===
681
681
  "1"){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","session ended text")+'</div><div style="background-color: transparent" class="genie-sign-on--right"><button id="exitButton" class="genie-sign-on--exit">Exit</button><button id="saveRecordingButton" class="genie-sign-on--save-recording">Save Recording</button></div>';Ab("exitButton").onclick=function(){s()};var t=Ab("saveRecordingButton");
682
682
  t.onclick=function(){t.disabled=true;t.innerHTML="Saving...";pui.saveRecording(function(){t.innerHTML="Saved!";setTimeout(function(){s()},750)})}}else{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","session ended text")+"<br/><br/>"+pui.getLanguageText("runtimeMsg","close browser text")+"</div>";s()}}else{p.container=pui.runtimeContainer;var w="",z="";if(p!=null&&p.layers!=
683
683
  null&&p.layers[0]!=null&&p.layers[0].formats!=null&&p.layers[0].formats[0]!=null&&p.layers[0].formats[0].name!=null&&p.layers[0].formats[0].file!=null){w=p.layers[0].formats[0].name;z=p.layers[0].formats[0].file}if(pui["session timeout retries"]>0)if(w==="TIMOUTSCRN"&&z==="PUISCREENS"||pui.D&&p!=null&&p.exception=="PUI0003"){pui.kq+=1;if(pui.kq<=pui["session timeout retries"]){setTimeout(r,2E3);return}}pui.kq=0;pui.D==null?pui.Al(p,function(){pui.render(p)}):pui.Oy(p)}},onfail:function(p){pui.onoffline==
684
- null&&!pui["suppress comm errors"]&&pui.alert(pui.Vi(p));pui.bc();pui.hm();pui.onoffline!=null&&pui.onoffline()}})};r()}}};pui.submit=pui.submitResponse;pui.hm=function(){for(var b in pui.N)for(var a=pui.N[b],c=0;c<a.length;c++)if(a[c].R=="1")a[c].R="0";pui.Pb=true};pui.sw=function(b){for(var a in b){var c=b[a],e=Ab(a);if(e!=null){var f=e.G;f!=null&&f.hide();f=new pui.eg(e);f.Yh(c);f.show()}}pui.bc();for(b=0;b<pui.bb.length;b++)pui.bb[b].unMask();pui.unmaskScreen();pui.hm()};
684
+ null&&!pui["suppress comm errors"]&&pui.alert(pui.Vi(p));pui.bc();pui.hm();pui.onoffline!=null&&pui.onoffline()}})};r()}}};pui.submit=pui.submitResponse;pui.hm=function(){for(var b in pui.N)for(var a=pui.N[b],c=0;c<a.length;c++)if(a[c].R=="1")a[c].R="0";pui.Pb=true};pui.sw=function(b){for(var a in b){var c=b[a],e=Ab(a);if(e!=null){var f=e.G;f!=null&&f.hide();f=new pui.fg(e);f.Yh(c);f.show()}}pui.bc();for(b=0;b<pui.bb.length;b++)pui.bb[b].unMask();pui.unmaskScreen();pui.hm()};
685
685
  pui.Q=function(b,a,c){if(!pui.o(b)&&!pui.Mb(b)&&!pui.cc(b))return b;if(a==null){if(b.designValue!=null)return b.designValue;return""}var e=b.fieldName;if(a.__pui_show&&b.longName)e=b.longName;if(b.lowerCaseField!=true&&pui.handler==null)e=pui.K(e);if(a.__pui_skipdecode)b.__pui_skipdecode=a.__pui_skipdecode;if(b.dataType=="expression")a=pui.Fo(b.fieldName,a);else{a=a[e];if(a==null)a=""}b.value=a;if(b.dataType=="reference"&&c!=null){c=c[e];if(c!=null){b.dataType=pui.Jz(c.dataType);b.dataLength=String(c.dataLength);
686
686
  b.decPos=String(c.decPos)}}if(b.formatting=="Text")if(pui.formatting.zc(b.dataType)){b.textTransform!=null&&delete b.textTransform;b.trimLeading!=null&&delete b.trimLeading;b.trimTrailing!=null&&delete b.trimTrailing;b.formatting="Number";b.numSep="false";b.zeroBalance="false";b.zeroFill="false";b.curSym="";b.units="";b.negNum="-999.00"}return pui.uc.format(b)};
687
687
  pui.Fo=function(b,a){for(var c=false,e=b.split(" or "),f=0;f<e.length;f++){for(var g=true,h=e[f].split(" and "),l=0;l<h.length;l++){var n=h[l],m=false;if(n.substr(0,1)=="N"){m=true;n=n.substr(1)}n="*IN"+n;n=a[n]=="1";if(m)n=!n;if(!n){g=false;break}}if(g){c=true;break}}if(c)return"1";return"0"};
688
688
  pui.Ve=function(){pui.bc();var b;if(pui["loading animation"].css!=null&&!pui.is_old_ie&&pui["loading animation"].path==pui["loading animation"]["default"]&&pui["loading animation"].text==null){b=document.createElement("div");b.className=pui["loading animation"].css}else{if(pui["loading animation"].text!=null){b=document.createElement("div");b.innerHTML=pui["loading animation"].text;b.style.backgroundColor="#cccccc";b.style.border="1px solid #333333";b.style.fontSize="10px";b.style.fontFamily="Sans-Serif"}else{b=
689
689
  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.sl&&a<0)a=0;b.style.left=a+"px";a=pui["loading animation"].top;
690
690
  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.bb.length;b++){a=pui.bb[b];a.Xe||a.mask()}};pui.bc=function(){var b=Ab("_pui_loading_animation");b!=null&&b.parentNode!=null&&b.parentNode.removeChild(b);for(b=0;b<pui.bb.length;b++){var a=pui.bb[b];a.Xe||a.unMask()}};
691
- pui.Ch=function(b,a){var c;if(!(P!="dspf"||pui.sl)){if(!b)b=window.event;c=b.keyCode;var e;if(pui.Rr)pui.Sn(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.Of&&Event.rk)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();
691
+ pui.Ch=function(b,a){var c;if(!(P!="dspf"||pui.sl)){if(!b)b=window.event;c=b.keyCode;var e;if(pui.Rr)pui.Sn(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.Pf&&Event.rk)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();
692
692
  return false}if((e=a!=null&&pui.Rd!=null&&(a=="Enter"||a=="PageUp"||a=="PageDown"||pui.ba[pui.Rd][a]!=null))&&(a=="PageUp"||a=="PageDown")){var f=false;for(c=0;c<pui.bb.length;c++){var g=pui.bb[c];if(g.i&&g.i.Ad)if(f==false)f=true;else{e=false;break}}}if(e){e=[];f=c=false;for(var h in pui.ba){g=pui.ba[h][a];if(g!=null){var l=true;for(c=0;c<g.length;c++){var n=g[c];n.disabled||(l=false);if(n.Cb!=null){if(pui.Rj!==undefined&&pui.Rj!==null&&n.Cb.grid.Wa!=pui.Rj)continue;if(n.nextPage==true&&!n.Cb.grid.Xb()){n.Cb.grid.Fp();
693
693
  ub(b);if(pui.is_old_ie)try{b.keyCode=0}catch(m){}return false}if(n.nextPage==true&&!n.Cb.zj){ub(b);if(pui.is_old_ie)try{b.keyCode=0}catch(r){}return false}if(n.Oh==true&&!n.Cb.grid.Ib()){n.Cb.grid.Hp();ub(b);if(pui.is_old_ie)try{b.keyCode=0}catch(p){}return false}if(n.Oh==true&&!n.Cb.Aj){ub(b);if(pui.is_old_ie)try{b.keyCode=0}catch(s){}return false}if(n.disabled){ub(b);if(pui.is_old_ie)try{b.keyCode=0}catch(t){}return false}}if(n.Oh==true||n.nextPage==true)f=true;e.push(n)}if(e.length>=1&&typeof e[0].onclick==
694
694
  "function"&&!e[0].La&&n.nextPage!=true&&n.Oh!=true&&!f){e[0].onclick();pui.runtimeContainer.focus();ub(b);if(pui.is_old_ie)try{b.keyCode=0}catch(w){}return false}if(l){ub(b);if(pui.is_old_ie)try{b.keyCode=0}catch(z){}return false}c=true}}if(a=="Enter"&&!pui.vo)c=true;if(c){pui.tb=a;for(c=0;c<e.length;c++){e[c].R="1";if(e[c].F=="true"||e[c].F=="send data")pui.F=e[c].F;if(e[c].La){pui.La=e[c].La;pui.Rc=e[c].n;pui.Qc=e[c].gk}}if(pui.fc()==false){for(c=0;c<e.length;c++)e[c].R="0";pui.F="false";pui.La=
695
695
  null;pui.Rc=null;pui.Qc=null}ub(b);if(pui.is_old_ie)try{b.keyCode=0}catch(y){}return false}}if(a!=null&&(a!="PageUp"&&a!="PageDown"||pui.Qn)){ub(b);if(pui.is_old_ie)try{b.keyCode=0}catch(E){}return false}}}};pui.Vo=function(b){return pui.Ch(b,"F1")};
696
696
  pui.run=function(b){var a=b.mobile===true,c=b.screenshot===true,e=b.parameter,f=b.program;if(f==null)f="";var g=b.container,h=b.workstnid;if(h==null)h="";h=h.toUpperCase();var l=b.debug,n=b.log;if(l==null)l="0";if(n==null)n="0";pui.gm=b.renderLog===true;var m="*LIBL",r=f.split("/");if(r.length==2){m=r[0];f=r[1]}if(g==null)g="pui";if(typeof g=="string")g=document.getElementById(g);T(document.body,"keydown",pui.Ch);T(document.body,"help",pui.Vo);T(document.body,"mousedown",pui.es);b.jsonURL==null&&
697
697
  b.replay==null&&b.mode!="preview"&&pui.Mr();g.setAttribute("tabindex","0");pui.runtimeContainer=g;pui.Ve();r="post";var p=Vb("PUI0001200.pgm"),s=b.jsonURL;if(b.replay){s="/profoundui/userdata/automated-testing/tests/"+b.replay;s.endsWith(".json")||(s+=".json")}if(s!=null){p=s+"?r="+Math.floor(Math.random()*1E9+1);r="get"}f={program:f.toUpperCase(),library:m.toUpperCase(),init:"1",pathname:location.pathname,debug:l,log:n,workstnid:h};if(b.lang!=null&&b.lang!="")f.lang=b.lang;if(pui.isCloud){f.workspace_id=
698
- 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.pf)f.screen_width=pui.pf.split("x")[0];c=b.params;if(c!=null)for(var t in c)f[t]=c[t];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!=
698
+ 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.qf)f.screen_width=pui.qf.split("x")[0];c=b.params;if(c!=null)for(var t in c)f[t]=c[t];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!=
699
699
  window&&pui.hi(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.container=g;pui.tl=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.hi(window.parent)&&window.parent.noderun)r=true;pui.handler=r?function(z){ac({url:"/profoundui/dummy_submit",
700
700
  method:"post",params:z,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.Al(w,function(){pui.render(w)})}else{pui.la(g);pui.alert("Preview data is no longer available. You can rebuild the preview in the Visual Designer.")}}else{t=pui.getCookie("puiRefreshId");if(t!=null){pui.deleteCookie("puiRefreshId","/",null,null,"Strict");f={refresh:"1"};
701
- p+="/"+t}pui.recordTest&&pui.Cc.payloads.push({url:p,data:f});ac({url:pui.pg(p),method:r,sendAsBinary:false,params:f,saveResponse:true,suppressAlert:true,handler:function(z){function y(){if(Array.isArray(z.payloads)){pui.Yp=z;pui.Mg=Number(b.step);if(!pui.Mg||isNaN(pui.Mg))pui.Mg=1;var E=z.container;z=z.payloads[pui.Mg-1].response;z=JSON.parse(JSON.stringify(z));z.container=E;z.version=pui.version;pui.Fw()}pui.render(z)}z.container=g;pui.Al(z,function(){pui.Ux(a,y)})},onfail:function(z){pui.bc();
701
+ p+="/"+t}pui.recordTest&&pui.Cc.payloads.push({url:p,data:f});ac({url:pui.qg(p),method:r,sendAsBinary:false,params:f,saveResponse:true,suppressAlert:true,handler:function(z){function y(){if(Array.isArray(z.payloads)){pui.Yp=z;pui.Ng=Number(b.step);if(!pui.Ng||isNaN(pui.Ng))pui.Ng=1;var E=z.container;z=z.payloads[pui.Ng-1].response;z=JSON.parse(JSON.stringify(z));z.container=E;z.version=pui.version;pui.Fw()}pui.render(z)}z.container=g;pui.Al(z,function(){pui.Ux(a,y)})},onfail:function(z){pui.bc();
702
702
  setTimeout(function(){if(pui.onoffline==null){pui["suppress comm errors"]||pui.alert(pui.Vi(z));pui.is_touch&&setTimeout(function(){navigator.app!=null&&navigator.app.exitApp!=null&&navigator.app.exitApp()},500)}else pui.onoffline()},500)}})}};
703
703
  pui.signon=function(b){var a=b.mobile===true,c=b.screenshot===true,e=b.container,f=b.debug,g=b.workstnid,h=b.atrium_item;if(h==null)h="";if(g==null)g="";g=g.toUpperCase();var l=b.log,n=b.plog,m=b.autotest;pui.gm=b.renderLog===true;if(e==null)e="pui";if(f==null)f="0";if(l==null)l="0";if(n==null)n="0";if(m==null)m="0";if(typeof e=="string")e=document.getElementById(e);T(document.body,"keydown",pui.Ch);T(document.body,"help",pui.Vo);pui.Mr();e.setAttribute("tabindex","0");pui.runtimeContainer=e;pui.rj==
704
704
  null&&pui.Ve();var r=Vb("PUI0001200.pgm"),p="",s="";if(typeof b.program!="undefined"){s="*LIBL";var t=b.program.split("/");if(t.length==2){s=t[0];p=t[1]}}f={signon:"1",program:p.toUpperCase(),library:s.toUpperCase(),init:"1",pathname:location.pathname,debug:f,log:l,plog:n,autotest:m,workstnid:g,atrium_item:h};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==
705
- "1")f.duplicateid="1";if(a)f.mobile="1";f.screen_width=screen.width;if(pui.pf)f.screen_width=pui.pf.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.rj==null){pui.recordTest&&pui.Cc.payloads.push({url:r,data:f});ac({url:pui.pg(r),method:"post",sendAsBinary:false,params:f,saveResponse:true,suppressAlert:true,handler:function(z){z.container=e;pui.Al(z,function(){pui.render(z)})},
705
+ "1")f.duplicateid="1";if(a)f.mobile="1";f.screen_width=screen.width;if(pui.qf)f.screen_width=pui.qf.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.rj==null){pui.recordTest&&pui.Cc.payloads.push({url:r,data:f});ac({url:pui.qg(r),method:"post",sendAsBinary:false,params:f,saveResponse:true,suppressAlert:true,handler:function(z){z.container=e;pui.Al(z,function(){pui.render(z)})},
706
706
  onfail:function(z){pui.bc();setTimeout(function(){if(pui.onoffline==null){pui["suppress comm errors"]||pui.alert(pui.Vi(z));pui.is_touch&&setTimeout(function(){navigator.app!=null&&navigator.app.exitApp!=null&&navigator.app.exitApp()},500)}else pui.onoffline()},500)}})}};
707
707
  pui.fq=function(b){b.profoundui="1";ac({url:pui.normalizeURL(pui.controller),method:"post",params:b,sendAsBinary:false,saveResponse:true,suppressAlert:true,handler:function(a){if(a==null){pui.la(document.body);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","session ended text")+"<br/><br/>"+pui.getLanguageText("runtimeMsg","close browser text")+"</div>";pui.closeSession()}else{a.container=
708
708
  pui.runtimeContainer;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.fq({})}else if(a.html!=null){pui.la(pui.runtimeContainer);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(g){pui.fq(g)}})}}},onfail:function(a){pui.onoffline==
709
709
  null&&!pui["suppress comm errors"]&&pui.alert(pui.Vi(a));pui.bc();pui.hm();pui.onoffline!=null&&pui.onoffline()}})};
710
- pui.start=function(){pui.zz();var b=$c();pui.pf=b.canvasSize;var a=b.pgm;if(a==null)a=b.program;var c=b.debug,e=b.container,f=b.workstnid,g=b.suffixid,h=b.duplicateid,l=b.log,n=b.plog,m=b.autotest;pui.recordTest=b.record==="1";var r=b.atrium_item,p=b.initpgm,s=b.jsonURL,t=b.replay,w=b.step,z=b.mode,y=b.controller,E=b.mobile==="1",J=b.screenshot==="1",B=b.observe==="1";if(B)pui.Ht.enabled=true;var G="";if(b.lang!=null)G=b.lang;pui.gm=b.renderLog==="1";var D={};pui.uo!=null&&typeof pui.uo=="function"&&
710
+ pui.start=function(){pui.zz();var b=$c();pui.qf=b.canvasSize;var a=b.pgm;if(a==null)a=b.program;var c=b.debug,e=b.container,f=b.workstnid,g=b.suffixid,h=b.duplicateid,l=b.log,n=b.plog,m=b.autotest;pui.recordTest=b.record==="1";var r=b.atrium_item,p=b.initpgm,s=b.jsonURL,t=b.replay,w=b.step,z=b.mode,y=b.controller,E=b.mobile==="1",J=b.screenshot==="1",B=b.observe==="1";if(B)pui.Ht.enabled=true;var G="";if(b.lang!=null)G=b.lang;pui.gm=b.renderLog==="1";var D={};pui.uo!=null&&typeof pui.uo=="function"&&
711
711
  pui.uo(e);for(var C=1;C<=255;C++){var K=b["p"+C],M=b["l"+C];if(K==null||M==null)break;D["p"+C]=K;D["l"+C]=M}if(y!=null)pui.controller=y;if(pui.controller!=null){T(document.body,"keydown",pui.Ch);T(document.body,"help",pui.Vo);T(document.body,"mousedown",pui.es);pui.fq({})}else{c={container:e,debug:c,log:l,plog:n,autotest:m,workstnid:f,suffixid:g,duplicateid:h,mobile:E,screenshot:J,params:D,observe:B,lang:G,renderLog:pui.gm};if(a==null&&s==null&&t==null&&z==null){if(r!=null)c.atrium_item=r;else if(p!=
712
712
  null)c.program=p;pui.signon(c)}else{c.program=a;if(s!=null)c.jsonURL=s;if(t!=null)c.replay=t;if(w!=null)c.step=w;if(z!=null)c.mode=z;if(c.mode==="preview")c.previewTab=b.previewTab;pui.run(c)}}};pui.newSession=function(){window.location.reload()};
713
- pui.closeSession=function(){if(window.parent!=window&&pui.sg(window.parent))window.Atrium.closeTab();else{var b=pui.hi(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{pui.la(document.body);document.body.innerHTML=
713
+ pui.closeSession=function(){if(window.parent!=window&&pui.ug(window.parent))window.Atrium.closeTab();else{var b=pui.hi(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{pui.la(document.body);document.body.innerHTML=
714
714
  '<div id="close-browser-msg" style="width: 95%; text-align: center; font-size: 200%;"><br/>'+pui.getLanguageText("runtimeMsg","close browser text")+"</div>";try{window.close()}catch(c){}if(window.puiMobileClient!=null)window.location.href="index.html"}}};
715
715
  pui.maskScreen=function(){function b(h){var l={x:0,y:0};if(h.offsetParent)for(;;){l.x+=h.offsetLeft;l.y+=h.offsetTop;if(!h.offsetParent)break;h=h.offsetParent}else if(h.x){l.x+=h.x;l.y+=h.y}if(document.documentElement.scrollHeight>document.documentElement.clientHeight)l.x+=8;return l}function a(){if(!(pui.scrollFrequency!=null&&pui.tt!=null&&(new Date).getTime()-pui.tt<pui.scrollFrequency)){pui.tt=(new Date).getTime();var h=document.documentElement.scrollTop,l=document.documentElement.scrollLeft;
716
716
  if(!pui.is_old_ie){h=window.pageYOffset;l=window.pageXOffset}var n=b(pui.runtimeContainer);if(pui.D!=null||pui.runtimeContainer.offsetLeft!=0||pui.runtimeContainer.offsetTop!=0){l-=n.x;if(P=="dspf")h-=n.y;else h=-pui.runtimeContainer.offsetTop}if(f!=null){f.style.top=h+"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.lj==null){f=document.createElement("div");f.id="pui-screen-mask";pui.lj=f}else f=pui.lj;
@@ -727,8 +727,8 @@ c+='<div class="pui-sflmsg-panel-content">';c+="<strong>Message Id:</strong> "+a
727
727
  pui.runtimeContainer.appendChild(l)}else l=pui.Bc;l.style.position="absolute";l.style.width=e+"px";l.className="pui-sflmsg-panel";l.style.zIndex=pui.hd;l.innerHTML=c;l.style.display="";c=document.createElement("div");c.style.position="absolute";c.style.top="3px";c.style.right="2px";c.className="pui-sflmsg-panel-close-button";c.onclick=function(){l.style.display="none";l.parentNode&&l.parentNode.removeChild(l)};l.style.left=a+"px";b=b-l.offsetHeight-5;if(b<5)b=5;l.style.top=b+"px";l.appendChild(c);
728
728
  pui.Bc=l}};pui.Uj=function(b){b=tb(b);if(!(b.tagName=="INPUT"&&b.type=="button"))pui.activeElement=b;b=b;if(b.parentNode&&b.parentNode.comboBoxWidget)b=b.parentNode;if(b.parentNode&&b.parentNode.k)b=b.parentNode;b=b.parentNode;if(b!=null){var a=b.parentNode;if(a!=null){a=a.grid;a!=null&&a.rm(b.row)}}};
729
729
  pui.Zd=function(b,a){var c;if(b!=null)c=tb(b);if(a!=null)c=a;var e=c.parentNode;if(e&&e.comboBoxWidget)e=e.parentNode;var f=null;if(e!=null&&e.parentNode!=null)f=e.parentNode.grid;var g=false;if(c.tagName=="A"||c.tagName=="BUTTON"||c.tagName=="INPUT"&&c.type=="button"||c.button!=null)g=true;var h=c;if(h.parentNode!=null&&h.parentNode.comboBoxWidget!=null)h=h.parentNode;if(h.parentNode!=null&&h.parentNode.k!=null)h=h.parentNode;if(h.tagName=="OPTION"&&h.parentNode.tagName=="SELECT")h=h.parentNode;
730
- if(h.tagName=="IMG"&&h.parentNode.tagName=="BUTTON"){h=h.parentNode;g=true}pui.p.record=h.mc;pui.p.field=h.Wc;var l=zb(c)+1;if(l<=0)l=1;if(c.maxLength!=null&&c.maxLength>=1&&l>c.maxLength)l=c.maxLength;pui.p.position=String(l);pui.p.Do=h.id;pui.p.row=h.uf;pui.p.Jq=null;pui.p.Iq=null;c=pui.pp;if(c!=null)if(c.length<=2||c.substr(c.length-2)!="px"){c=Number(c);if(!isNaN(c)&&c>0){pui.p.Jq=pui.p.row;if(pui.p.row!=null)pui.p.row=Number(pui.p.row)+c}}if(e!=null&&e.row!=null&&typeof e.row=="number"){if(pui.p.row!=
731
- null){pui.p.row=Number(pui.p.row)+e.row;if(f!=null&&f.g)pui.p.row-=1;pui.p.row=String(pui.p.row)}f!=null&&f.rm(e.row)}e=pui.op;if(e!=null)if(e.length<=2||e.substr(e.length-2)!="px")e=Number(e);if(h.ve==null)pui.p.column=null;else{pui.p.column=Number(h.ve)+Number(l)-1;if(!isNaN(e)&&e>0){pui.p.Iq=pui.p.column;pui.p.column=pui.p.column+e+1}}if(!g)for(g=0;g<pui.bb.length;g++){h=pui.bb[g];if(h!=f)h.b.tf=0}};
730
+ if(h.tagName=="IMG"&&h.parentNode.tagName=="BUTTON"){h=h.parentNode;g=true}pui.p.record=h.mc;pui.p.field=h.Wc;var l=zb(c)+1;if(l<=0)l=1;if(c.maxLength!=null&&c.maxLength>=1&&l>c.maxLength)l=c.maxLength;pui.p.position=String(l);pui.p.Do=h.id;pui.p.row=h.vf;pui.p.Jq=null;pui.p.Iq=null;c=pui.pp;if(c!=null)if(c.length<=2||c.substr(c.length-2)!="px"){c=Number(c);if(!isNaN(c)&&c>0){pui.p.Jq=pui.p.row;if(pui.p.row!=null)pui.p.row=Number(pui.p.row)+c}}if(e!=null&&e.row!=null&&typeof e.row=="number"){if(pui.p.row!=
731
+ null){pui.p.row=Number(pui.p.row)+e.row;if(f!=null&&f.g)pui.p.row-=1;pui.p.row=String(pui.p.row)}f!=null&&f.rm(e.row)}e=pui.op;if(e!=null)if(e.length<=2||e.substr(e.length-2)!="px")e=Number(e);if(h.ve==null)pui.p.column=null;else{pui.p.column=Number(h.ve)+Number(l)-1;if(!isNaN(e)&&e>0){pui.p.Iq=pui.p.column;pui.p.column=pui.p.column+e+1}}if(!g)for(g=0;g<pui.bb.length;g++){h=pui.bb[g];if(h!=f)h.b.uf=0}};
732
732
  pui.es=function(b){var a=false;b=tb(b);if(b==document.body)a=true;if(b==pui.runtimeContainer)a=true;if(b.parentNode!=null&&b.parentNode.panel!=null)a=true;if(a){pui.p.field=null;pui.p.position=null;pui.p.Do=null}};
733
733
  pui.Gk=function(b){b=tb(b);var a=b.className;if(a==null)a="";a=Kb(a);if(a.indexOf(b.focusClass)==-1)a+=" "+b.focusClass;b.className=a;if(b.parentNode&&b.parentNode.pui&&b.parentNode.pui.properties["field type"]==="combo box"){a=b.parentNode;var c=a.className;if(c==null)c="";c=Kb(c);if(c.indexOf(b.focusClass)==-1)c+=" "+b.focusClass;a.className=c}};
734
734
  pui.em=function(b){b=tb(b);var a=b.className;if(a==null)a="";for(a=Kb(a);a.indexOf(b.focusClass)>=0;)a=a.replace(b.focusClass,"");b.className=Kb(a);if(b.parentNode&&b.parentNode.pui&&b.parentNode.pui.properties["field type"]==="combo box"){a=b.parentNode;var c=a.className;if(c==null)c="";for(c=Kb(c);c.indexOf(b.focusClass)>=0;)c=c.replace(b.focusClass,"");a.className=c}};
@@ -744,8 +744,8 @@ null){e=parseInt(f.parentNode.style.left);if(isNaN(e))return null;f=parseInt(f.p
744
744
  pui.K=pui.Kb=function(b){if(b==null)return"";return pui.handler!=null||pui.viewdesigner||pui.pjsDefaultMode==="case-sensitive"?b:b.toUpperCase()};
745
745
  pui.rs=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.ko;if(pui.is_touch&&!pui.is_mouse_capable)c=zb(b);if(c==null)return false;if(c<0)c=0;c=b.value.substr(0,c);if(b.ru==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.Mn==
746
746
  true){pui.tb="Enter";pui.click()}else pui.To(b);return false};
747
- pui.translate=function(b){var a;pui.Bd=b.translations;pui.Ug=b["translations 2"];if(pui.Bd!=null){for(a in pui.Bd)pui.Bd[a]=pui.formatting.wg(pui.Bd[a]);if(pui.Ug)for(a in pui.Ug)pui.Ug[a]=pui.formatting.wg(pui.Ug[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 g=e[f],h=g.metaData.screen,l=g.metaData.items,n=pui.Kk(null,null,h,g.data,g.ref);a+=pui.xo(h,pui.Bd,pui.Ug,true,n);for(n=0;n<l.length;n++){var m=l[n];if(!m.grid){var r=pui.Kk(m,null,h,g.data,g.ref);
748
- a+=pui.xo(m,pui.Bd,pui.Ug,false,r)}}}if(a!="")return"Missing translation data:\n\n"+a}};
747
+ pui.translate=function(b){var a;pui.Bd=b.translations;pui.Vg=b["translations 2"];if(pui.Bd!=null){for(a in pui.Bd)pui.Bd[a]=pui.formatting.xg(pui.Bd[a]);if(pui.Vg)for(a in pui.Vg)pui.Vg[a]=pui.formatting.xg(pui.Vg[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 g=e[f],h=g.metaData.screen,l=g.metaData.items,n=pui.Kk(null,null,h,g.data,g.ref);a+=pui.xo(h,pui.Bd,pui.Vg,true,n);for(n=0;n<l.length;n++){var m=l[n];if(!m.grid){var r=pui.Kk(m,null,h,g.data,g.ref);
748
+ a+=pui.xo(m,pui.Bd,pui.Vg,false,r)}}}if(a!="")return"Missing translation data:\n\n"+a}};
749
749
  pui.xo=function(b,a,c,e,f){var g;e=e===true;var h="";for(var l in b){var n=b[l];if(pui.Mb(n)){var m=n.translations,r=[],p=[];for(g=0;g<m.length;g++){var s=m[g],t=s==0?"":a[s],w=s==0?"":c?c[s]:null;if(t!=null)r.push(t);else{t=n.designValue;if(m.length>1)t=JSON.parse(t)[g];r.push(t);h+=e?'Record format "'+Kb(b["record format name"])+'" ':'Widget "'+Kb(b.id)+'" ';h+=', property "'+Kb(l)+'". ';h+="Phrase: "+t;h+=" ("+s+").\n"}w!=null&&p.push(w)}if(r.length==1){b[l]=r[0];if(p.length==1&&p[0])b[l+"_secondary"]=
750
750
  p[0]}else if(r.length>1){b[l]=JSON.stringify(r);g=false;for(n=0;n<p.length;n++)if(p[n]){g=true;break}if(g)b[l+"_secondary"]=JSON.stringify(p)}if(!b.grid)for(g=0;g<f.keys.length;g++)b[l]=b[l].replaceAll("(&"+f.keys[g]+")",f.values[g])}}return h};
751
751
  pui.Kk=function(b,a,c,e,f){var g,h={keys:[],values:[]};if(a)for(property in a){if(property.includes("grid row translation placeholder key")){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.Q(c[g],e,f))}if(b)h=pui.Cr(b,h,e,f);return h};
@@ -765,29 +765,29 @@ pui.wikihelp.overlayOff=function(){Zb(window,"scroll",pui.wikihelp.onscroll);for
765
765
  pui.wikihelp.cy=function(b){b=b||window.event;ub(b);var a=b.target||b.srcElement;if(a.parentNode.pui&&a.parentNode.pui.dspf)a=a.parentNode;var c={};c.dspf=a.pui.dspf;c.recfmt=a.pui.recfmt;c.fieldId=a.pui.fieldId;c.fieldName=a.pui.fieldName;c["field type"]=a.pui["field type"];c.event=b;typeof pui.wikihelp.onclick==="function"&&pui.wikihelp.onclick(c);return false};
766
766
  pui.wikihelp.getScreenInfo=function(){pui.wikihelp.overlays.length<1&&pui.wikihelp.ks(false);var b={};b.formats=Zc();b.dspf=pui.layers[0].formats[0].file;b.fields=[];for(var a=0;a<pui.wikihelp.overlays.length;a++){var c={};c.id=pui.wikihelp.overlays[a].pui.fieldId;if(pui.wikihelp.overlays[a].pui.fieldName&&pui.wikihelp.overlays[a].pui.fieldName.length>0)c.name=pui.wikihelp.overlays[a].pui.fieldName;b.fields.push(c)}return b};
767
767
  pui.mt=function(b,a){if(b=="response"||b=="chart response"||b=="menu response"||b=="upload response"||b=="tab response"||b=="active tab"||b=="active section"||b=="radio button group"||b=="page down response"&&a.grid!=null&&a.grid.i!=null||b=="page up response"&&a.grid!=null&&a.grid.i!=null||b=="value"&&(a.tagName=="INPUT"&&a.type!="button"||a.tagName=="SELECT"||a.tagName=="TEXTAREA"||a.comboBoxWidget!=null||a.k!=null||a.T!=null||a.signaturePad!=null||a.L!=null))return true;return false};
768
- pui.ik={oq:function(b){this.Gn=b.Gn;this.ne=b.ne;if(this.ne!=="previous")this.ne="new";this.xj=b.xj==="true"||b.xj===true;pui.ik.Ji();var a=b.container.id;this.ec=b.container;this.ec.id="pui-previous";this.ec.style.zIndex=10;b=this.ec.getElementsByTagName("*");for(var c=0;c<b.length;c++){var e=b[c];e.hasAttribute("id")&&e.removeAttribute("id");e.Ja!=null&&typeof e.Ja.pm=="function"&&e.Ja.pm()}this.Qf=document.createElement("div");this.Qf.id=a;this.Qf.style.zIndex=20;this.ec.parentNode.appendChild(this.Qf);
769
- return this.Qf},animate:function(){this.aw();var b=this.Qf;if(this.ne==="previous"){this.ec.style.zIndex=30;b=this.ec}if(!this.xj||this.ne==="previous")b.addEventListener("animationend",function(){pui.ik.Ji()},false);else{var a=document.createElement("div");a.className="pui-animation-mask";this.ec.firstChild?this.ec.insertBefore(a,this.ec.firstChild):this.ec.appendChild(a)}this.ne==="new"&&b.addEventListener("animationend",function(){b.className=""},false);b.className="pui-"+this.Gn+"-"+this.ne},
770
- Ji:function(){if(this.ec){pui.la(this.ec);this.ec.parentNode&&this.ec.parentNode.removeChild(this.ec);this.ec=null}},aw:function(){var b=pui.getComputedStyle(this.Qf);if(b!=null&&(b.height=="0px"||b.height=="auto")){pui.Re.padding=document.body.style.padding;document.body.style.padding="0";pui.Re.height=document.body.style.height;document.body.style.height="100%";document.body.parentNode.style.padding="0";document.body.parentNode.style.height="100%";pui.Re.overflow=document.body.style.overflow;document.body.style.overflow=
771
- "hidden";this.Qf.style.padding="0";this.Qf.style.height="100%"}pui.resize()}};function rd(b){var a=(new Date).getTime();if(b)a-=b;return a}pui.bx=function(b){for(b=b.parentElement;b;){b=b;if(b.grid)return b.grid;b=b.parentElement}return null};
768
+ pui.ik={oq:function(b){this.Gn=b.Gn;this.ne=b.ne;if(this.ne!=="previous")this.ne="new";this.xj=b.xj==="true"||b.xj===true;pui.ik.Ji();var a=b.container.id;this.ec=b.container;this.ec.id="pui-previous";this.ec.style.zIndex=10;b=this.ec.getElementsByTagName("*");for(var c=0;c<b.length;c++){var e=b[c];e.hasAttribute("id")&&e.removeAttribute("id");e.Ja!=null&&typeof e.Ja.pm=="function"&&e.Ja.pm()}this.Rf=document.createElement("div");this.Rf.id=a;this.Rf.style.zIndex=20;this.ec.parentNode.appendChild(this.Rf);
769
+ return this.Rf},animate:function(){this.aw();var b=this.Rf;if(this.ne==="previous"){this.ec.style.zIndex=30;b=this.ec}if(!this.xj||this.ne==="previous")b.addEventListener("animationend",function(){pui.ik.Ji()},false);else{var a=document.createElement("div");a.className="pui-animation-mask";this.ec.firstChild?this.ec.insertBefore(a,this.ec.firstChild):this.ec.appendChild(a)}this.ne==="new"&&b.addEventListener("animationend",function(){b.className=""},false);b.className="pui-"+this.Gn+"-"+this.ne},
770
+ Ji:function(){if(this.ec){pui.la(this.ec);this.ec.parentNode&&this.ec.parentNode.removeChild(this.ec);this.ec=null}},aw:function(){var b=pui.getComputedStyle(this.Rf);if(b!=null&&(b.height=="0px"||b.height=="auto")){pui.Re.padding=document.body.style.padding;document.body.style.padding="0";pui.Re.height=document.body.style.height;document.body.style.height="100%";document.body.parentNode.style.padding="0";document.body.parentNode.style.height="100%";pui.Re.overflow=document.body.style.overflow;document.body.style.overflow=
771
+ "hidden";this.Rf.style.padding="0";this.Rf.style.height="100%"}pui.resize()}};function rd(b){var a=(new Date).getTime();if(b)a-=b;return a}pui.bx=function(b){for(b=b.parentElement;b;){b=b;if(b.grid)return b.grid;b=b.parentElement}return null};
772
772
  pui.downloadJobLog=function(b){function a(){f=new XMLHttpRequest;f.onreadystatechange=c;f.open("POST",Vb("PUI0009118.pgm"),true);f.setRequestHeader("Content-type","application/x-www-form-urlencoded");f.send("jobinfo="+h)}function c(){if(f.readyState==4)if(f.status==200)if(typeof f.response==="string"&&f.response.length>0)if(f.getResponseHeader("Content-Disposition")==="attachment")saveAs(new Blob([f.response]),l,{type:"text/plain;charset=utf-8"}).onwriteend=e;else g.innerHTML=pui.getLanguageText("runtimeMsg",
773
773
  "failed to load x",["Job Log"])+"<br>"+f.response;else g.innerHTML="Job log download error: Empty Response";else g.innerHTML="Job log download error:<br>HTTP "+f.status+"<br>"+f.responseURL}function e(){g.innerHTML=pui.getLanguageText("runtimeText","upload finished text");setTimeout(function(){g.innerHTML=""},3E3)}var f,g,h,l;if(arguments.length===1&&typeof b==="object"&&b!==null){l=b.filename;h=b.jobinfo;g=b.outputEl}else if(arguments.length===4){h=arguments[0];l=arguments[2];g=arguments[3]}if(g==
774
774
  null||b==null||typeof h!=="string"||typeof l!=="string")console.log("Cannot download job log. Parameter(s) to function are incorrect.");else{pui.la(g);g.innerHTML=pui.getLanguageText("runtimeMsg","downloading x",["..."]);typeof saveAs=="function"||pui.Qo(pui.normalizeURL("/jszip/FileSaver.min.js"))!=null?a():pui.loadJS({path:"/jszip/FileSaver.min.js",callback:a})}};pui.pz=function(){function b(){var l,n;for(l=h.options.length-1;l>=0;l--)h.remove(l);var m=false;for(l=0;l<pui.wp.length;l++){var r=pui.wp[l];if(r.height!=null)if(r.width!=null){n=h.options.length;h.options[n]=new Option(r.description,r.height+"x"+r.width);if(r.height==f&&r.width==g||r.width==f&&r.height==g)m=h.options[n].selected=true}}if(!m){n=h.options.length;h.options[n]=new Option(f+" x "+g,f+"x"+g);h.options[n].selected=true}}var a=Ab("pui");if(a!=null){var c=document.createElement("div"),e=
775
- pui.pf.split("x"),f=Number(e[1]);if(isNaN(f))f=320;var g=Number(e[0]);if(isNaN(g))g=640;c.style.position="absolute";c.Jx=true;c.style.border="2px solid #999999";c.style.backgroundColor="#333333";c.style.borderRadius="15px";c.style.boxShadow="6px 6px 12px rgba(50, 66, 64, 0.67)";c.style.width=g+60+"px";c.style.height=f+60+"px";c.style.top="40px";c.style.left="20px";a.style.width=g+"px";a.style.height=f+"px";a.style.left="50px";a.style.top="70px";a.classList.add("pui-mobile-emulator");a.parentNode.insertBefore(c,
775
+ pui.qf.split("x"),f=Number(e[1]);if(isNaN(f))f=320;var g=Number(e[0]);if(isNaN(g))g=640;c.style.position="absolute";c.Jx=true;c.style.border="2px solid #999999";c.style.backgroundColor="#333333";c.style.borderRadius="15px";c.style.boxShadow="6px 6px 12px rgba(50, 66, 64, 0.67)";c.style.width=g+60+"px";c.style.height=f+60+"px";c.style.top="40px";c.style.left="20px";a.style.width=g+"px";a.style.height=f+"px";a.style.left="50px";a.style.top="70px";a.classList.add("pui-mobile-emulator");a.parentNode.insertBefore(c,
776
776
  a);var h=document.createElement("select");h.style.position="absolute";h.style.width="200px";h.style.top="10px";h.style.left="50px";h.style.fontFamily="sans-serif";h.style.fontSize="13px";b();ac({url:Vb("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.wp=eval(l);b()}}},onfail:function(){pui.alert("Error occurred while loading canvas sizes.")}});
777
777
  h.onchange=function(){var l=h.value.split("x");f=Number(l[1]);if(isNaN(f))f=320;g=Number(l[0]);if(isNaN(g))g=640;c.style.width=g+60+"px";c.style.height=f+60+"px";a.style.width=g+"px";a.style.height=f+"px";pui.resize()};document.body.appendChild(h);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=
778
778
  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)}};
779
- pui.uo=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.na=true;a=false}if(b.parentNode.className=="iphone-emulator"){pui.na=true;pui.Hf=true;a=false}if(pui.na){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=Xc(e);f+=3;c.style.left=f+"px";e=
780
- Yc(e);e+=3;c.style.top=e+"px"});T(document,"mousedown",function(e){var f=Xc(e);f+=1;c.style.left=f+"px";e=Yc(e);e+=1;c.style.top=e+"px"})}b=document.createElement("input");b.style.position="absolute";if(pui.Hf){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=
781
- location.href;if(!pui.Hf){b.onclick=function(){Ab("ipadKeyboard").style.display=""};b.onblur=function(){Ab("ipadKeyboard").style.display="none"}}document.body.appendChild(b);a&&document.body.appendChild(c)}else if(pui.pf!=null){pui.pz();pui.na=true;pui.Hf=true}}};
779
+ pui.uo=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.na=true;a=false}if(b.parentNode.className=="iphone-emulator"){pui.na=true;pui.If=true;a=false}if(pui.na){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=Xc(e);f+=3;c.style.left=f+"px";e=
780
+ Yc(e);e+=3;c.style.top=e+"px"});T(document,"mousedown",function(e){var f=Xc(e);f+=1;c.style.left=f+"px";e=Yc(e);e+=1;c.style.top=e+"px"})}b=document.createElement("input");b.style.position="absolute";if(pui.If){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=
781
+ location.href;if(!pui.If){b.onclick=function(){Ab("ipadKeyboard").style.display=""};b.onblur=function(){Ab("ipadKeyboard").style.display="none"}}document.body.appendChild(b);a&&document.body.appendChild(c)}else if(pui.qf!=null){pui.pz();pui.na=true;pui.If=true}}};
782
782
  pui.wp=[{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={};
783
783
  pui.hw=function(b,a){function c(y){function E(oa){oa.pointerType&&oa.stopImmediatePropagation&&oa.stopImmediatePropagation();var ka=Yc(oa),Ba=Xc(oa),ra=ka-Da,wa=Ba-pa;if(wa==0&&ra==0)return true;pui.at(ea)||document.body.appendChild(ea);if(w&&b.grid.Kd){var fb=Ab(b.grid.Kd);fb.style.visibility="hidden";fb.style.display="none"}if(t){ra+=C;wa+=D}ea.style.top=W+ra+"px";ea.style.left=x+wa+"px";K&&oa.preventDefault();ra=la;wa=false;for(fb=0;fb<da.length;fb++){var xa=da[fb],Na=ea.offsetLeft,Ia=ea.offsetTop,
784
784
  eb=pui.Zc(ea.parentNode);Na+=eb[0];Ia+=eb[1];eb=Na+ea.offsetWidth;var xb=Ia+ea.offsetHeight;if(xa.Su==null||xa.Tu==null){var qb=pui.Zc(xa.parentNode);xa.Su=qb[0];xa.Tu=qb[1]}qb=xa.offsetLeft+xa.Su;var pb=xa.offsetTop+xa.Tu,rb=qb+xa.offsetWidth,Eb=pb+xa.offsetHeight;if(xa.parentNode.getAttribute("container")=="true"){var bb=rb-xa.offsetWidth+xa.parentNode.offsetWidth-xa.offsetLeft;if(bb<rb)rb=bb}bb=false;if(xa.Pe!=null){var ob=pui.Zc(xa.Pe.b),jb=ob[1]+xa.Pe.b.offsetHeight;if(Ba>ob[0]+xa.Pe.b.offsetWidth||
785
- Ba<ob[0]||ka>jb||ka<ob[1])bb=true}if(wa||qb>eb||rb<Na||pb>xb||Eb<Ia||bb)if(xa.Pe!=null)pui.ca(xa,"grid-drop-target");else{if(xa.tagName=="IMG")if(xa.nf!=null)xa.style.backgroundColor=xa.nf;if(xa.Fi!=null)xa.style.borderColor=xa.Fi}else{if(xa.Pe!=null)pui.P(xa,"grid-drop-target");else{if(xa.Fi==null)xa.Fi=xa.style.borderColor;if(xa.Fi==null)xa.Fi="";xa.style.borderColor="#9999ff";if(xa.tagName=="IMG"){if(xa.nf==null)xa.nf=xa.style.backgroundColor;if(xa.nf==null)xa.nf="";xa.style.backgroundColor="#D8F0FD"}}wa=
785
+ Ba<ob[0]||ka>jb||ka<ob[1])bb=true}if(wa||qb>eb||rb<Na||pb>xb||Eb<Ia||bb)if(xa.Pe!=null)pui.ca(xa,"grid-drop-target");else{if(xa.tagName=="IMG")if(xa.pf!=null)xa.style.backgroundColor=xa.pf;if(xa.Fi!=null)xa.style.borderColor=xa.Fi}else{if(xa.Pe!=null)pui.P(xa,"grid-drop-target");else{if(xa.Fi==null)xa.Fi=xa.style.borderColor;if(xa.Fi==null)xa.Fi="";xa.style.borderColor="#9999ff";if(xa.tagName=="IMG"){if(xa.pf==null)xa.pf=xa.style.backgroundColor;if(xa.pf==null)xa.pf="";xa.style.backgroundColor="#D8F0FD"}}wa=
786
786
  true;la=xa}}wa||(la=null);if(ra!=la){clearTimeout(r);if(ra!=null){pui.dragDropInfo={};pui.dragDropInfo["dd element"]=b;pui.dragDropInfo["dd element id"]=b.id;if(m!=null)pui.dragDropInfo["dd record number"]=m;pui.dragDropInfo.proxy=ea;pui.dragDropInfo.event=oa;n=h(ra);pui.dragDropInfo["target element"]=n.dom;pui.dragDropInfo["target element id"]=n.id;if(n.Da!=null)pui.dragDropInfo["target record number"]=n.Da;pui.dragDropInfo.text=m!=null?"ondragleave: Dragging row "+m+" of grid "+b.id:"ondragleave: Dragging element "+
787
787
  b.id;pui.dragDropInfo.text+=n.Da!=null?" off of row "+n.Da+" of grid "+n.id:" off of element "+n.id;l("ondragleave")}if(la!=null){pui.dragDropInfo={};pui.dragDropInfo["dd element"]=b;pui.dragDropInfo["dd element id"]=b.id;if(m!=null)pui.dragDropInfo["dd record number"]=m;pui.dragDropInfo.proxy=ea;pui.dragDropInfo.event=oa;n=h(la);pui.dragDropInfo["target element"]=n.dom;pui.dragDropInfo["target element id"]=n.id;if(n.Da!=null)pui.dragDropInfo["target record number"]=n.Da;pui.dragDropInfo.text=m!=
788
788
  null?"ondragenter: Dragging row "+m+" of grid "+b.id:"ondragenter: Dragging element "+b.id;pui.dragDropInfo.text+=n.Da==0?" before row "+(n.Da+1)+" of grid "+n.id:n.Da!=null?" after row "+n.Da+" of grid "+n.id:" over element "+n.id;l("ondragenter");if(e()||f())if(s>=0){clearTimeout(r);r=setTimeout(g,s)}}}K||ub(oa)}function J(){clearTimeout(r);if(t){pui.at(ea)&&ea.parentNode.removeChild(ea);ea=null}if(K){Zb(document,"touchmove",E);Zb(document,"touchend",J)}else if(y.pointerType){Zb(document,"pointermove",
789
789
  E);Zb(document,"pointerup",J)}else{Zb(document,"mousemove",E);Zb(document,"mouseup",J)}document.onselectstart=ma;if(la!=null){pui.dragDropInfo={};pui.dragDropInfo["dd element"]=b;pui.dragDropInfo["dd element id"]=b.id;if(m!=null)pui.dragDropInfo["dd record number"]=m;pui.dragDropInfo.proxy=ea;pui.dragDropInfo.event=y;n=h(la);pui.dragDropInfo["target element"]=n.dom;pui.dragDropInfo["target element id"]=n.id;if(n.Da!=null)pui.dragDropInfo["target record number"]=n.Da;pui.dragDropInfo.text=m!=null?
790
- "ondrop: Dropped row "+m+" of grid "+b.id:"ondrop: Dropped element "+b.id;pui.dragDropInfo.text+=n.Da==0?" before row "+(n.Da+1)+" of grid "+n.id:n.Da!=null?" after row "+n.Da+" of grid "+n.id:" into element "+n.id;if(la.Pe!=null)pui.ca(la,"grid-drop-target");else{if(la.tagName=="IMG")la.style.backgroundColor=la.nf;if(la.nf!=null)la.style.borderColor=la.nf}if(!(n.dom.id==b.id&&m!=null&&n.Da!=null&&(m==n.Da||m==n.Da+1))){pui.dragDropInfo.cancel=false;l("ondrop");if(pui.dragDropInfo.cancel!=true)if(pui.mb.oo!=
790
+ "ondrop: Dropped row "+m+" of grid "+b.id:"ondrop: Dropped element "+b.id;pui.dragDropInfo.text+=n.Da==0?" before row "+(n.Da+1)+" of grid "+n.id:n.Da!=null?" after row "+n.Da+" of grid "+n.id:" into element "+n.id;if(la.Pe!=null)pui.ca(la,"grid-drop-target");else{if(la.tagName=="IMG")la.style.backgroundColor=la.pf;if(la.pf!=null)la.style.borderColor=la.pf}if(!(n.dom.id==b.id&&m!=null&&n.Da!=null&&(m==n.Da||m==n.Da+1))){pui.dragDropInfo.cancel=false;l("ondrop");if(pui.dragDropInfo.cancel!=true)if(pui.mb.oo!=
791
791
  null||pui.mb.po||pui.mb.wq!=null||pui.mb.xq){pui.mb.fc=true;pui.F=pui.mo;pui.fc();pui.F="false";pui.La=null;pui.Rc=null;pui.Qc=null}}}if(!t&&pui.mb.fc!=true){b.style.left=x+"px";b.style.top=W+"px"}if(w)b.grid.Ao=false;m=n=null}var B;y.pointerType&&y.stopImmediatePropagation&&y.stopImmediatePropagation();B=tb(y);var G=pui.Zc(b.parentNode),D=G[0],C=G[1],K=false;if(y)if(y.touches!=null){if(y.touches.length!=1)return;K=true}else if(y.pointerType==="touch")K=true;K&&y.preventDefault();var M;m=null;if(z)if(B.tagName==
792
792
  "TEXTAREA"||B.tagName=="INPUT")return;if(w){var U=b.grid.dataArray;if(b.grid.isFiltered())U=b.grid.W;G=b.grid.cells.length-1;if(!b.grid.da()){M=U.length-b.grid.h+1;if(G>M)G=M}M=0;if(b.grid.g)M=1;B=tb(y);if(B.tagName=="A"||B.tagName=="IMG"||B.tagName=="INPUT"||B.tagName=="SELECT"||B.tagName=="TEXTAREA")return;for(;B!=null&&(B.row==null||B.col==null);)B=B.parentNode;if(B!=null&&B.row>=M)M=B.row;else return;if(M>G)return;m=M+b.grid.h;if(b.grid.g)m-=1;if(U.length>0&&U[m-1]!==null&&U[m-1].length!=0&&U[m-
793
793
  1].n!=null)m=U[m-1].n;b.grid.Ao=true}G=a["drop targets"];var da=[];if(G!=null&&G!=""){G=G.split(",");for(B=0;B<G.length;B++){var aa=Ab(G[B]);if(aa!=null)if(aa.grid!=null){var N=aa.grid.j,ha=N.length-1;if(!aa.grid.da()){U=aa.grid.dataArray;if(aa.grid.isFiltered())U=aa.grid.W;var ba=U.length-aa.grid.h+2;if(ha>ba)ha=ba}aa=ba=aa.grid.g?1:0;if(U.length==0)ha=ba-1;for(ba=ba;ba<N.length;ba++){if(ba<=ha)aa=N[ba].vs=ba;else N[ba].vs=aa;da.push(N[ba])}}else da.push(aa)}}var ea=b;if(t){if(w){U=b.grid.cells[M];
@@ -852,11 +852,11 @@ Ia:1};case "z":return{Ka:"(\\\\d{1,3})",Ha:"d = parseInt(matches["+a+"], 10);",I
852
852
  "\\$1")+'" + ';e=false}else g+=pui.formatting.Date.hx(f,a)+' + "" + '}g=g.replace(/\+\s$/,"")||'""';g+=";";pui.formatting.Date.formats.locales[a]||(pui.formatting.Date.formats.locales[a]={});pui.formatting.Date.formats.locales[a][b]=new Function("date",g)},ay:function(b,a){var c=b,e=false,f="",g="",h="",l=1;if(c==="Y-m-d-H.i.s.uu")c="Y-m-d-H.i.s.uU";for(var n=0;n<c.length;n++){f=c.charAt(n);if(!e&&f=="\\")e=true;else if(e){g+=f.replace(/('|\\)/g,"\\$1");e=false}else{f=pui.formatting.Date.kx(f,l,a);
853
853
  l+=f.Ia;g+=f.Ka;h+=f.Ha}}c='var y = 1, m = 0, d = 1; var h = 0, i = 0, s = 0, u = 0; var regexObj = new RegExp("^'+g+'$"); var matches = str.match(regexObj); if(matches && matches.length > 0){'+h+"var dt = new Date(y, m, d, h, i, s, u); dt.setFullYear(y);if(dt.getFullYear() !== y || dt.getMonth() !== m || dt.getDate() !== d || dt.getHours() !== h || dt.getMinutes() !== i || dt.getSeconds() !== s) return null;return dt; }else return null;";pui.formatting.Date.Nh.locales[a]||(pui.formatting.Date.Nh.locales[a]=
854
854
  {});pui.formatting.Date.Nh.locales[a][b]=new Function("str",c)},getSuffix:function(b){switch(b){case 1:case 21:case 31:return"st";case 2:case 22:return"nd";case 3:case 23:return"rd";default:return"th"}},ix:function(b,a,c){a=c?pui.locales[a].shortMonthNames:pui.locales[a].monthNames;for(c=0;c<12;c++)if(a[c]==b)return c;return 0},Lx:function(b){return b.getHours()===0&&b.getMinutes()===0&&b.getSeconds()===0&&b.getMilliseconds()===0},Bz:"Y-m-d",uB:"H:i:s",ei:"Y-m-d-H.i.s.uu",Rz:39},leftPad:function(b,
855
- a,c){for(b+="";b.length<a;)b=c+b;return b},Yy:function(b,a,c){b+="";if(b.length>a)b=b.substr(0,a);else for(;b.length<a;)b+=c;return b},zc:function(b){return/^(?:zoned|floating|packed)$/.test(b)},Qw:function(b,a){for(var c=0;c<b.length;c++)if(b.charCodeAt(c)>65535)return{msg:pui.getLanguageText("runtimeMsg","outside ucs2")};for(;b.length<a;)b+=" ";return pui.Mq.encode(b)},wg:function(b){return pui.Mq.decode(b)},keywords:{DATFMT:{"*MDY":{fb:"mdy",Zb:"/"},"*DMY":{fb:"dmy",Zb:"/"},"*YMD":{fb:"ymd",Zb:"/"},
855
+ a,c){for(b+="";b.length<a;)b=c+b;return b},Yy:function(b,a,c){b+="";if(b.length>a)b=b.substr(0,a);else for(;b.length<a;)b+=c;return b},zc:function(b){return/^(?:zoned|floating|packed)$/.test(b)},Qw:function(b,a){for(var c=0;c<b.length;c++)if(b.charCodeAt(c)>65535)return{msg:pui.getLanguageText("runtimeMsg","outside ucs2")};for(;b.length<a;)b+=" ";return pui.Mq.encode(b)},xg:function(b){return pui.Mq.decode(b)},keywords:{DATFMT:{"*MDY":{fb:"mdy",Zb:"/"},"*DMY":{fb:"dmy",Zb:"/"},"*YMD":{fb:"ymd",Zb:"/"},
856
856
  "*JUL":{fb:"yz",Zb:"/"},"*ISO":{fb:"Ymd",Zb:"-"},"*USA":{fb:"mdY",Zb:"/"},"*EUR":{fb:"dmY",Zb:"."},"*JIS":{fb:"Ymd",Zb:"-"}},mi:{"/":"/","-":"-",".":".",",":","," ":" "},jd:{"*HMS":{fb:"Ris",Zb:":"},"*ISO":{fb:"Ris",Zb:"."},"*USA":{fb:"hi A",Zb:":"},"*EUR":{fb:"Ris",Zb:"."},"*JIS":{fb:"Ris",Zb:":"}},sk:{":":":",".":".",",":","," ":" "}},escapeRe:function(){var b=/([.*+?^${}()|\-[\]/\\])/g;return function(a){return a.replace(b,"\\$1")}}()};
857
857
  Date.prototype.format=function(b,a){pui.formatting.Date.formats.locales[a]&&pui.formatting.Date.formats.locales[a][b]||pui.formatting.Date.$x(b,a);return pui.formatting.Date.formats.locales[a][b](this)};
858
858
  pui.uc={format:function(b){if(b.revert){if(typeof pui.inputfilter=="function"){var a={};for(var c in b)a[c]=b[c];try{var e=pui.inputfilter(a.value,a,P);if(typeof e=="string")b.value=e}catch(f){pui.sp(f,"(pui.inputfilter)")}}a=null;if(typeof pui.validate=="function")a=pui.validate(b);if(a==null||a==false)a=this[b.formatting].Se(b);return typeof a==="object"?a:a+""}else{this.Qx(b);return this[b.formatting].format(b)+""}},Text:{format:function(b){var a=b.value+"";if(b.customPattern!="")if(b.customPattern==
859
- "y/m")if(a.length>2)a=a.substr(0,a.length-2)+"/"+a.substr(a.length-2);if(b.__pui_skipdecode!==true&&b.dataType=="graphic"&&!pui.pj)a=pui.formatting.wg(a);if(b.trimTrailing===true||b.trimTrailing==="true")a=a.replace(/\s+$/g,"");else for(;a.length<b.dataLength;)a+=" ";if(b.trimLeading===true||b.trimLeading==="true")a=a.replace(/^\s+/g,"");if(b.textTransform=="uppercase"){a=pui.Qe(a,false);a=a.toUpperCase()}else if(b.textTransform=="lowercase")a=a.toLowerCase();else if(b.textTransform=="capitalize")a=
859
+ "y/m")if(a.length>2)a=a.substr(0,a.length-2)+"/"+a.substr(a.length-2);if(b.__pui_skipdecode!==true&&b.dataType=="graphic"&&!pui.pj)a=pui.formatting.xg(a);if(b.trimTrailing===true||b.trimTrailing==="true")a=a.replace(/\s+$/g,"");else for(;a.length<b.dataLength;)a+=" ";if(b.trimLeading===true||b.trimLeading==="true")a=a.replace(/^\s+/g,"");if(b.textTransform=="uppercase"){a=pui.Qe(a,false);a=a.toUpperCase()}else if(b.textTransform=="lowercase")a=a.toLowerCase();else if(b.textTransform=="capitalize")a=
860
860
  a.replace(/(?:^[a-z]| +[a-z])/g,function(c){return c.toUpperCase()});b.maxLength=b.dataLength=="undefined"?null:b.dataLength;return a},Se:function(b){var a,c=b.value+"";c=c.replace(/\s+$/g,"");if(b.blankFill=="true"&&(b.dataType=="char"||b.dataType=="varchar")){a=Number(b.dataLength);isNaN(a)||(c=pui.formatting.leftPad(c,a," "))}if(b.textTransform=="uppercase"){c=pui.Qe(c,false);c=c.toUpperCase();if(b.dataType=="char")c=pui.Qe(c,true)}else if(b.textTransform=="lowercase")c=c.toLowerCase();else if(b.textTransform==
861
861
  "capitalize")c=c.replace(/(?:^[a-z]| +[a-z])/g,function(e){return e.toUpperCase()});if(b.dataType=="graphic"&&!pui.pj){a=parseInt(b.dataLength,10);c=pui.formatting.Qw(c,a)}return c}},Number:{format:function(b){var a=pui.appJob!=null&&(pui.appJob.decimalFormat=="I"||pui.appJob.decimalFormat=="J"),c=parseInt(b.dataLength,10),e=parseInt(b.decPos,10),f;f=!b||!b.value?"0":isNaN(b.value)&&a?b.value.replace(/\./g,"").replace(/,/g,"."):String(b.value!==undefined&&b.value!==null?b.value:0);if(e>0&&f==="0")for(f=
862
862
  ".";f.length-1<e;)f+="0";else if(e>0&&f.substr(0,2)==="0.")f=f.substr(1);var g=parseFloat(f,10)||0;if(typeof f!=="string")f="0";f=f.replace(/-/g,"");var h;h=f.replace(/\..*/,"");if((h==""||h=="-")&&pui.appJob.decimalFormat=="J")h="0";var l,n=f;if(n.indexOf(".")==-1)n+=".";l=n.replace(/.*\./,"");n=c;var m="[\\d";if(b.edtWrd!=null&&b.edtWrd!="")if(pui.formatting.zc(b.dataType))return pui.fw(b);if(e>0){l=pui.formatting.Yy(l,e,"0");f=h+(a?",":".")+l;if(pui.appJob.decimalFormat=="J"&&f.charAt(0)==",")f=
@@ -895,11 +895,11 @@ c;try{c=eval("("+b.customFunction+")")}catch(e){a=pui.getLanguageText("runtimeMs
895
895
  validate:ja(),Qx:function(){var b={"char":{},varchar:{},string:{},graphic:{Number:true,Indicator:true,Date:true,Time:true,"Time Stamp":true,Special:true},zoned:{"Time Stamp":true},indicator:{Date:true,Time:true,"Time Stamp":true,Special:true},expression:{Text:true,Number:true,Date:true,Time:true,"Time Stamp":true,Special:true},floating:{"Time Stamp":true},date:{Number:true,Indicator:true,Time:true,Special:true},time:{Number:true,Indicator:true,Date:true,"Time Stamp":true,Special:true},timestamp:{Number:true,
896
896
  Indicator:true,Special:true},reference:{}};return function(a){if(!b[a.dataType]||b[a.dataType][a.formatting]||a.formatting===""){a.formatting="Text";return false}return true}}()};pui.cn=function(){this.An=[]};function Fc(b,a){if(a==null)a=true;for(var c=[],e=0;e<b.An.length;e++){var f=b.An[e];if(!(f.context!=null&&f.context!=P))if(a||!f.lo&&f.name!="layout")c.push(f.name)}c.sort();return c}
897
897
  pui.cn.prototype.add=function(b){var a=b.name;if(a!=null){if(b.newId==null){for(var c=a.split(" "),e="",f=0;f<c.length;f++){var g=c[f];g=g.charAt(0).toUpperCase()+g.substr(1);e+=g}b.newId=e}if(b.menuName==null){c=a.split(" ");e="";for(f=0;f<c.length;f++){g=c[f];g=g.charAt(0).toUpperCase()+g.substr(1);if(e!="")e+=" ";e+=g}b.menuName=e}if(b.newValue==null)b.newValue="";if(b.tag==null)b.tag="div";if(b.inputType==null&&b.tag=="input")b.inputType="text";if(b.defaults==null)b.defaults={};if(b.Jp==null)b.Jp=
898
- "";if(b.Qt==null)b.Qt="";if(b.np==null)b.np="";if(b.resizable==null)b.resizable=true;if(b.lo==null)b.lo=false;if(b.container==null)b.container=false;if(b.rg==null)b.rg=true;if(b.rw==null)b.rw=true;if(b.sd==null)b.sd=false;if(typeof b.constr==="function"||typeof b.render==="function"&&typeof b.getValue==="function")b.Gf=this.nw;this.An.push(b);this[a]=b;if(!pui.ao)Ac()["field type"].choices=Fc(this,false)}};
898
+ "";if(b.Qt==null)b.Qt="";if(b.np==null)b.np="";if(b.resizable==null)b.resizable=true;if(b.lo==null)b.lo=false;if(b.container==null)b.container=false;if(b.sg==null)b.sg=true;if(b.rw==null)b.rw=true;if(b.sd==null)b.sd=false;if(typeof b.constr==="function"||typeof b.render==="function"&&typeof b.getValue==="function")b.Hf=this.nw;this.An.push(b);this[a]=b;if(!pui.ao)Ac()["field type"].choices=Fc(this,false)}};
899
899
  pui.cn.prototype.nw=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.mw.call(a,
900
900
  b);typeof a.setProperty==="function"&&a.setProperty(b)}}catch(g){console.log(g)}};pui.widgets=new pui.cn;pui.widgets.Be=function(){var b=[];for(var a in pui.widgets.buttonStyles)b.push(a);return b};pui.widgets.Wi=function(){var b=[];for(var a in pui.widgets.panelStyles)b.push(a);return b};pui.widgets.fx=function(){return pui.widgets.Yn};pui.widgets.ox=function(){var b=[];for(var a in pui.widgets.tabStyles)b.push(a);b.push("Other...");return b};
901
- pui.BasicWidget=function(b,a){Object.defineProperties(this,{Qz:{value:a,configurable:true}});this.design=b.design;this.hr=b.d;this.dom=b.dom;this.nr=b.properties;this.qn={};this.qn[b.propertyName]=b.originalValue;this.hn={};this.jn={};if(this.dom.pui==null)this.dom.pui={};this.dom.pui.widget=this;pui.Vg.push(this)};pui.BasicWidget.prototype=Object.create(pui.tc.prototype);
902
- 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)}this.Kc()};function dd(b){try{typeof b.render==="function"&&b.render()}catch(a){console.log(a)}b.design&&b.hr&&b.hr.Kg()}function sd(b,a){var c=b.Qz;return a=="value"||c&&pui.widgets[c]&&pui.widgets[c].dp&&pui.widgets[c].dp[a]===true}
901
+ pui.BasicWidget=function(b,a){Object.defineProperties(this,{Qz:{value:a,configurable:true}});this.design=b.design;this.hr=b.d;this.dom=b.dom;this.nr=b.properties;this.qn={};this.qn[b.propertyName]=b.originalValue;this.hn={};this.jn={};if(this.dom.pui==null)this.dom.pui={};this.dom.pui.widget=this;pui.$e.push(this)};pui.BasicWidget.prototype=Object.create(pui.tc.prototype);
902
+ 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)}this.Kc()};function dd(b){try{typeof b.render==="function"&&b.render()}catch(a){console.log(a)}b.design&&b.hr&&b.hr.Lg()}function sd(b,a){var c=b.Qz;return a=="value"||c&&pui.widgets[c]&&pui.widgets[c].dp&&pui.widgets[c].dp[a]===true}
903
903
  function td(b,a,c,e){b.jn[a]=c;b.hn[e]=a}function wd(b,a){var c=b.hn[a];if(c)return b.jn[c]}pui.BasicWidget.prototype.getPropertyValue=function(b){var a;if(b!=null){var c=this.jn[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};
904
904
  pui.BasicWidget.prototype.evalProperty=function(b){return Yb(this.nr[b],this.qn[b],this.dom)};pui.BasicWidget.prototype.getValue=function(b){return this.evalProperty(b)};pui.BasicWidget.prototype.mw=function(b){var a=b.propertyName;this.design=b.design;this.nr=b.properties;this.qn[b.propertyName]=b.originalValue;if(!this.design)if(this.evalProperty(a)!==b.value&&sd(this,a))this.dom.modified=true};
905
905
  pui.BasicWidget.prototype.handleEvent=function(b){switch(b.type){case "input":case "change":this.dom.modified=true;break}};function xd(b){this.onready=this.onfail=this.onsuccess=this.cacheBuster=this.suppressAlert=this.password=this.user=this.async=this.url=this.reqData=this.postData=this.method=null;this.headers={};this.params=null;this.sendAsBinary=true;var a=this.overrideMimeType=null,c=null,e=null,f=null,g=typeof pui!="undefined"&&typeof pui.alert!="undefined"?pui.alert:alert,h=this;if(xd.defaultHeaders)this.headers=xd.defaultHeaders;if(typeof b=="object")for(var l in b){if(typeof this[l]!="undefined")this[l]=b[l]}else this.url=
@@ -909,7 +909,7 @@ return}}else s=""}if(h.async==null)p=true;else if(h.async!=true&&h.async!=false)
909
909
  return}if(h.onfail!=null)if(typeof h.onfail!="function"){g('Invalid value for event: "onfail".');return}if(h.onready!=null)if(typeof h.onready!="function"){g('Invalid value for event: "onready".');return}var t=true;if(s!=null)for(m in h.headers)if(m.toUpperCase()=="CONTENT-TYPE")if(h.headers[m].toLowerCase().indexOf("www-form-urlencoded")==-1)t=false;var w=h.url,z=h.params;if(typeof z=="object"){var y="";for(m in z){var E=z[m],J=[];if(typeof E=="object"){if(E.length!=null&&E.length>0)J=E}else J.push(E);
910
910
  for(E=0;E<J.length;E++){if(y!="")y+="&";y+=encodeURIComponent(m)+"="+encodeURIComponent(J[E])}}if(y!="")if(t&&(r=="POST"||r=="PUT"||r=="DELETE")){if(s!=null&&s!="")s+="&";else s="";s+=y}else{t=w.split("?");if(t.length==2&&t[1]!="")w=t[0]+"?"+t[1]+"&"+y;else w+="?"+y}}if(r==="GET"&&(h.cacheBuster===null||h.cacheBuster===true))w=pui.addUrlCacheBuster(w);try{typeof h.user=="string"&&typeof h.password=="string"?a.open(r,w,p,h.user,h.password):a.open(r,w,p);w=false;var B=h.headers;for(m in B){a.setRequestHeader(m,
911
911
  B[m]);if(m.toUpperCase()=="CONTENT-TYPE")w=true}if(r=="POST"||r=="PUT"||r=="DELETE")w||a.setRequestHeader("Content-type","application/x-www-form-urlencoded");typeof h.overrideMimeType=="string"&&typeof a.overrideMimeType=="function"&&a.overrideMimeType(h.overrideMimeType)}catch(G){g(G);return}f=true;var D=false;if(p==true){a.onload=n;a.onerror=n;a.onabort=function(){D=true;n()}}if(h.sendAsBinary==true)try{a.sendAsBinary(s)}catch(C){a.send(s)}else a.send(s);p!=true&&n()}};this.ok=this.It=function(){return e!=
912
- null?e:false};this.getResponseText=this.yc=function(){return a.responseText};this.getResponseXML=this.Ps=function(){return a.responseXML};this.getStatus=this.Ff=function(){return a.status};this.getStatusText=this.Ts=function(){return a.statusText};this.getStatusMessage=this.Zi=function(){return c};this.getAllResponseHeaders=this.getAllResponseHeaders=function(){if(e)try{return a.getAllResponseHeaders()}catch(n){g(n)}};this.getResponseHeader=this.getResponseHeader=function(n){if(e)try{return a.getResponseHeader(n)}catch(m){g(m)}};
912
+ null?e:false};this.getResponseText=this.yc=function(){return a.responseText};this.getResponseXML=this.Ps=function(){return a.responseXML};this.getStatus=this.Gf=function(){return a.status};this.getStatusText=this.Ts=function(){return a.statusText};this.getStatusMessage=this.Zi=function(){return c};this.getAllResponseHeaders=this.getAllResponseHeaders=function(){if(e)try{return a.getAllResponseHeaders()}catch(n){g(n)}};this.getResponseHeader=this.getResponseHeader=function(n){if(e)try{return a.getResponseHeader(n)}catch(m){g(m)}};
913
913
  this.setRequestHeader=this.setRequestHeader=function(n,m){h.headers[n]=m};this.abort=this.abort=function(){if(f===true)try{a.abort()}catch(n){g(n)}}}
914
914
  function Wb(b,a){var c,e,f,g="";if(arguments.length==1&&typeof arguments[0]=="object"){c=arguments[0];c.async=null;c.onsuccess=null;if(typeof c.handler=="function"){e=true;f=c.handler}else e=false}else if(a!=null&&typeof a=="function"){e=true;f=a}else e=false;c=new xd(arguments[0]);c.async=e;c.onsuccess=function(h){g+=h.yc();e==true&&f(g)};c.send();if(e==false)return g}
915
915
  function ac(b,a){var c,e,f,g=null,h=false;if(arguments.length==1&&typeof arguments[0]=="object"){c=arguments[0];c.async=null;c.onsuccess=null;if(c.saveResponse==true)h=true;if(typeof c.handler=="function"){e=true;f=c.handler}else e=false}else if(a!=null&&typeof a=="function"){e=true;f=a}else e=false;c=new xd(arguments[0]);c.async=e;c.onsuccess=function(l){l=l.yc();if(h&&typeof pui=="object")pui.savedJSON=l;try{g=eval("("+l+")")}catch(n){f(null,n);return}e==true&&f(g)};c.send();if(e==false)return g}
@@ -917,11 +917,11 @@ if(typeof window.pui=="undefined")window.pui={};window.RPGspRequest=xd;window.pu
917
917
  window.ajaxXML=function(b,a){var c,e,f,g=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 xd(arguments[0]);c.async=e;c.onsuccess=function(h){g=h.Ps();e==true&&f(g)};c.send();if(e==false)return g};window.ajaxJSON=ac;
918
918
  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 g;if(c!=null)g=c.tagName;if(c==null||g==null||g.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++){g=c.elements[f];if(g.name!=null&&g.name!=""){var h=false;if(g.tagName==
919
919
  "INPUT"){var l=g.type;l=l.toLowerCase();if(l=="hidden")h=true;if(l=="password")h=true;if(l=="text")h=true;if(pui.rl(l))h=true;if(l=="")h=true;if(l=="checkbox"||l=="radio")if(g.checked)h=true}if(g.tagName=="TEXTAREA")h=true;if(g.tagName=="SELECT")h=true;if(h){if(e!="")e+="&";e+=g.name+"="+encodeURIComponent(g.value)}}}c=new xd(c.action);c.method="POST";c.postData=e;var n="",m;if(a!=null&&typeof a=="function")m=true;else{m=false;c.async=false}c.onsuccess=function(r){n+=r.yc();m==true&&a(n)};c.send();
920
- if(m==false)return n};pui.widgets.add({name:"ajax container",defaults:{width:"200px",height:"100px"},propertySetters:{"field type":function(b){if(b.design){b.dom.innerHTML="AJAX content will appear here.";b.dom.style.overflow="hidden"}else{b.dom.innerHTML="";url=b.evalProperty("ajax url");if(url==null||url=="")b.dom.innerHTML="AJAX URL property not specified.";else Wb(url,function(a){try{pui.Au(b.dom,a)}catch(c){b.dom.innerHTML=c.message}})}}}});pui.widgets.add({name:"button",tag:"input",inputType:"button",newValue:"Click Here",sd: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.d.properties["css class"];if(a==null)a="";if(!pui.o(a))if(a.indexOf("button")<0){if(a!="")a+=" ";a+="button";b.d.properties["css class"]=a;b.d.pb["css class"]=true;b.dom.className=a}}b.dom.Uf=pui.Sg;b.dom.destroy=
920
+ if(m==false)return n};pui.widgets.add({name:"ajax container",defaults:{width:"200px",height:"100px"},propertySetters:{"field type":function(b){if(b.design){b.dom.innerHTML="AJAX content will appear here.";b.dom.style.overflow="hidden"}else{b.dom.innerHTML="";url=b.evalProperty("ajax url");if(url==null||url=="")b.dom.innerHTML="AJAX URL property not specified.";else Wb(url,function(a){try{pui.Au(b.dom,a)}catch(c){b.dom.innerHTML=c.message}})}}}});pui.widgets.add({name:"button",tag:"input",inputType:"button",newValue:"Click Here",sd: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.d.properties["css class"];if(a==null)a="";if(!pui.o(a))if(a.indexOf("button")<0){if(a!="")a+=" ";a+="button";b.d.properties["css class"]=a;b.d.pb["css class"]=true;b.dom.className=a}}b.dom.Vf=pui.Tg;b.dom.destroy=
921
921
  pui.lh;b.design||T(b.dom,"keydown",function(c){if(c.keyCode==13)c.cancelBubble=true})},value:function(b){b.dom.value=b.value}}});pui.charts={};pui.Zn=[];pui.widgets.Yn=["Column3D","Column2D","Bar2D","Line","Area2D","Pie2D","Pie3D","Doughnut3D","Other..."];pui.widgets.aA=["3D Column","2D Column","2D Bar","Line","Area","2D Pie","3D Pie","Doughnut"];
922
- pui.widgets.Wf=function(b){function a(){delete b.dom.ip;delete b.dom.sizeMe;delete b.dom.me}var c;if(!b.dom.ip){b.dom.ip=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(!Db()){c=b.dom.pui.properties["map type"];var e=c!=null&&c!="";if(b.dom.id!=null&&b.dom.id!="")c=b.dom.id+"_Chart";else if(b.uh!=
923
- null)c=b.uh+"_Chart";else{console.log("Stopped rendering chart; missing id attribute.");return}var f={type:b.type.toLowerCase(),id:c,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.Lq!=null)f.events.dataLoadRequestCompleted=pui.widgets.Xv;if(b.$e!=null)b.$e=pui.widgets.Dr(b.dom.id,b.$e,e);else if(b.jsonData!=
924
- null)b.jsonData=pui.widgets.Zv(b.dom.id,b.jsonData,e)}if(b.$e!=null){f.dataFormat="xml";f.dataSource=b.$e}else if(b.jsonData!=null){f.dataFormat="json";f.dataSource=b.jsonData}var g=new FusionCharts(f);pui.Zn.push(c);g.dom=b.dom;b.transparent==true&&g.setTransparent(true);b.Lq!=null&&pui["legacy chart data url"]==true&&g.setXMLUrl(b.Lq);b.dom.style.backgroundColor="";g.render();b.dom.chart=document.getElementById(c);if(b.dom.chart!=null&&b.dom.chart.style.visibility=="visible")b.dom.chart.style.visibility=
922
+ pui.widgets.Xf=function(b){function a(){delete b.dom.ip;delete b.dom.sizeMe;delete b.dom.me}var c;if(!b.dom.ip){b.dom.ip=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(!Db()){c=b.dom.pui.properties["map type"];var e=c!=null&&c!="";if(b.dom.id!=null&&b.dom.id!="")c=b.dom.id+"_Chart";else if(b.uh!=
923
+ null)c=b.uh+"_Chart";else{console.log("Stopped rendering chart; missing id attribute.");return}var f={type:b.type.toLowerCase(),id:c,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.Lq!=null)f.events.dataLoadRequestCompleted=pui.widgets.Xv;if(b.af!=null)b.af=pui.widgets.Dr(b.dom.id,b.af,e);else if(b.jsonData!=
924
+ null)b.jsonData=pui.widgets.Zv(b.dom.id,b.jsonData,e)}if(b.af!=null){f.dataFormat="xml";f.dataSource=b.af}else if(b.jsonData!=null){f.dataFormat="json";f.dataSource=b.jsonData}var g=new FusionCharts(f);pui.Zn.push(c);g.dom=b.dom;b.transparent==true&&g.setTransparent(true);b.Lq!=null&&pui["legacy chart data url"]==true&&g.setXMLUrl(b.Lq);b.dom.style.backgroundColor="";g.render();b.dom.chart=document.getElementById(c);if(b.dom.chart!=null&&b.dom.chart.style.visibility=="visible")b.dom.chart.style.visibility=
925
925
  "";b.dom.sizeMe=function(){if(b.dom.ip)b.dom.chart==null&&g.render();else{delete b.dom.sizeMe;delete b.dom.me}};b.dom.me=true}}};pui.widgets.Xv=function(b,a){typeof a.cancelDataLoad=="function"&&a.cancelDataLoad();var c=b.sender.dom.id,e=b.sender.dom.pui.properties["map type"];e=e!=null&&e!="";if(a.dataFormat=="xml"){c=pui.widgets.Dr(c,a.dataSource,e);b.sender.setXMLData(c)}};
926
926
  pui.widgets.Dr=function(b,a,c){try{var e;if(typeof DOMParser!="undefined")e=(new DOMParser).parseFromString(a,"text/xml");else{e=new ActiveXObject("Microsoft.XMLDOM");e.async=false;e.loadXML(a)}var f=[],g;if(e.getElementsByTagName("categories").length==1){for(var h=e.getElementsByTagName("category"),l=0;l<h.length;l++)f.push(h[l].getAttribute("label"));g=e.getElementsByTagName("dataset")}else g=[e];for(h=0;h<g.length;h++){var n=g[h],m=n.getElementsByTagName("set");for(l=0;l<m.length;l++){var r={id:encodeURIComponent(b)},
927
927
  p=m[l];if(n.nodeName=="dataset"){r.name=n.getAttribute("seriesname");if(r.name==null)r.name=n.getAttribute("seriesName");if(l<f.length)r.category=encodeURIComponent(f[l])}else if(c)r.name=p.getAttribute("id");else{r.name=p.getAttribute("name");if(r.name==null)r.name=p.getAttribute("label")}r.name=encodeURIComponent(r.name);p.setAttribute("link","j-pui.widgets.doChartLink-"+JSON.stringify(r))}}return typeof XMLSerializer!="undefined"?(new XMLSerializer).serializeToString(e):e.xml}catch(s){return a}};
@@ -931,83 +931,83 @@ pui.widgets.Vj=function(b,a,c){b.innerHTML="";if(c)a="Map";else{c=false;for(var
931
931
  pui.widgets.Gs=function(b){var a='<?xml version="1.0" encoding="utf-8"?><chart';if(typeof b=="string"&&b.length>0)a+=" "+b;a+=">";return a};
932
932
  pui.widgets.add({name:"chart",dependencies:["/fusionchartsxt/js/pui-fusioncharts.js"],defaults:{width:"300px",height:"200px","background color":"#EEEEEE","z index":"21"},propertySetters:{"field type":function(b){var a,c,e;if(b.dom.pui==null)b.dom.pui={};e=b.evalProperty("parent tab panel");var f;if(e!=null&&e.length>0)f=Ab(e);if(f)f=f.tabPanel;e=parseInt(b.evalProperty("parent tab"),10);if(f&&!isNaN(e)&&e!=f.selectedTab){if(typeof b.properties["chart response"]!="undefined")b.dom.pui.properties["chart response"]=
933
933
  b.properties["chart response"]}else{f=Kb(b.evalProperty("map type"));var g,h=f!="";if(h){if(f.toLowerCase().indexOf("maps/")==0)f=f.substr(5);g=f="/fusionchartsxt/js/maps/"+f}else g=b.evalProperty("chart type");if(b.design){pui.widgets.Vj(b.dom,g,h);b.dom.style.overflow="hidden";b.dom.style.border="1px solid #999999"}else{var l=b.dom.id;b.dom.pui.properties=b.properties;if(!b.dom.chart)b.dom.innerHTML="<br/>&nbsp;&nbsp;&nbsp;&nbsp;"+pui.getLanguageText("runtimeMsg","loading x",[pui.getLanguageText("runtimeText",
934
- "chart")]);if(g=="")g="Bar2D";var n=b.evalProperty("chart url");c=b.evalProperty("chart url json");if(n!=null&&n!="")n=pui.mf(n);if(c!=null&&c!="")c=pui.mf(c);f=b.evalProperty("chart xml");e=b.evalProperty("chart json");if(f!=null&&f!="")pui.widgets.Wf({dom:b.dom,type:g,transparent:b.properties["chart overlay"]!="true",$e:f});else if(e!=null&&e!="")pui.widgets.Wf({dom:b.dom,type:g,transparent:b.properties["chart overlay"]!="true",jsonData:e});else{var m=b.evalProperty("custom sql").toUpperCase();
934
+ "chart")]);if(g=="")g="Bar2D";var n=b.evalProperty("chart url");c=b.evalProperty("chart url json");if(n!=null&&n!="")n=pui.nf(n);if(c!=null&&c!="")c=pui.nf(c);f=b.evalProperty("chart xml");e=b.evalProperty("chart json");if(f!=null&&f!="")pui.widgets.Xf({dom:b.dom,type:g,transparent:b.properties["chart overlay"]!="true",af:f});else if(e!=null&&e!="")pui.widgets.Xf({dom:b.dom,type:g,transparent:b.properties["chart overlay"]!="true",jsonData:e});else{var m=b.evalProperty("custom sql").toUpperCase();
935
935
  e=b.evalProperty("order by").toUpperCase();f=b.evalProperty("record limit").toUpperCase();var r=b.evalProperty("chart options");if(n==""&&c==""&&m==""){n=b.evalProperty("database file").toUpperCase();c=b.evalProperty("name field").toUpperCase();m=b.evalProperty("value field").toUpperCase();var p=b.evalProperty("summary option"),s=b.evalProperty("selection criteria").toUpperCase(),t=b.evalProperty("names");a=b.evalProperty("values");if(Kb(t)!=""&&Kb(a)!=""){f=pui.widgets.Gs(r);e=pui.ga(t);n=pui.ga(a);
936
- c=e.length;if(n.length>c)c=n.length;for(m=0;m<c;m++){s=e[m];a=n[m];if(s==null)s="";s=Kb(s);if(s.substr(0,2)=="D_"||s.substr(0,2)=="I_"){a=Tc(s);if(a!="")s=a}a=n[m];if(a==null)a="0";a=String(a);a=Kb(a);p=a.substr(0,1);if((p<"0"||p>"9")&&p!="."&&p!=","&&p!="-"){a=Tc(a);if(pui.appJob.decimalFormat!="I"&&pui.appJob.decimalFormat!="J")a=a.replace(/,/g,"")}a=Number(a);if(isNaN(a))a=0;p="label";if(h)p="id";f+="<set "+p+'="'+pui.ji(s)+'" value="'+pui.ji(a)+'" />'}f+="</chart>";pui.widgets.Wf({dom:b.dom,type:g,
937
- transparent:b.properties["chart overlay"]!="true",$e:f})}else if(n=="")b.dom.innerHTML="&nbsp;&nbsp;"+pui.getLanguageText("runtimeMsg","data src not specfd x",[pui.getLanguageText("runtimeText","chart")]);else if(c=="")b.dom.innerHTML="&nbsp;&nbsp;"+pui.getLanguageText("runtimeMsg","name fld not specfd x",[pui.getLanguageText("runtimeText","chart")]);else{t="";if(p=="average")t="avg(";if(p=="count")t="count(";if(p=="sum")t="sum(";if(p=="maximum")t="max(";if(p=="minimum")t="min(";if(m==null||m=="")if(p==
936
+ c=e.length;if(n.length>c)c=n.length;for(m=0;m<c;m++){s=e[m];a=n[m];if(s==null)s="";s=Kb(s);if(s.substr(0,2)=="D_"||s.substr(0,2)=="I_"){a=Tc(s);if(a!="")s=a}a=n[m];if(a==null)a="0";a=String(a);a=Kb(a);p=a.substr(0,1);if((p<"0"||p>"9")&&p!="."&&p!=","&&p!="-"){a=Tc(a);if(pui.appJob.decimalFormat!="I"&&pui.appJob.decimalFormat!="J")a=a.replace(/,/g,"")}a=Number(a);if(isNaN(a))a=0;p="label";if(h)p="id";f+="<set "+p+'="'+pui.ji(s)+'" value="'+pui.ji(a)+'" />'}f+="</chart>";pui.widgets.Xf({dom:b.dom,type:g,
937
+ transparent:b.properties["chart overlay"]!="true",af:f})}else if(n=="")b.dom.innerHTML="&nbsp;&nbsp;"+pui.getLanguageText("runtimeMsg","data src not specfd x",[pui.getLanguageText("runtimeText","chart")]);else if(c=="")b.dom.innerHTML="&nbsp;&nbsp;"+pui.getLanguageText("runtimeMsg","name fld not specfd x",[pui.getLanguageText("runtimeText","chart")]);else{t="";if(p=="average")t="avg(";if(p=="count")t="count(";if(p=="sum")t="sum(";if(p=="maximum")t="max(";if(p=="minimum")t="min(";if(m==null||m=="")if(p==
938
938
  "count")m=c;else{b.dom.innerHTML="&nbsp;&nbsp;"+pui.getLanguageText("runtimeMsg","val fld not specfd x",[pui.getLanguageText("runtimeText","chart")]);return}a="SELECT ";if(t!="")m=t+m+")";a+=c+", ";a+=m+" ";a+=" FROM "+n;if(s!="")a+=" WHERE "+s;if(t!="")a+=" GROUP BY "+c+" ";a+=t==""&&e!=""?" ORDER BY "+e:" ORDER BY "+c;n=Vb("PUI0009104.PGM");c="AUTH=";if(pui.Z)c+=pui.Z;else{c+=pui.appJob.auth;if(typeof pui.vId!=="undefined")c+="&VID="+pui.vId}if(pui.secLevel>0){c+="&q="+encodeURIComponent(pui.$c(b.dom));
939
- e=pui.rd(b.properties);if(e!="")c+="&"+e}else c+="&q="+pui.yb.xf(a);c+="&maxcount="+f;if(pui["read db driven data as ebcdic"]!==true)c+="&UTF8=Y";if(h)c+="&isMap=Y";if(pui.isCloud)c+="&workspace_id="+pui.cloud.ws.id;var w=new pui.Ajax(n);w.method="post";w.async=true;w.postData=c;w.suppressAlert=true;w.onsuccess=function(){if(!Db()){var y="invalid",E=Ib(w,"Run Charting Query");if(E)y=E;if(r!=null&&typeof r=="string"&&r!=""&&y.substr(0,45)=='<?xml version="1.0" encoding="utf-8"?><chart>')y='<?xml version="1.0" encoding="utf-8"?><chart>'.substr(0,
940
- 44)+" "+r+y.substr(44);pui.widgets.Wf({dom:b.dom,uh:l,type:g,transparent:b.properties["chart overlay"]!="true",$e:y});y=b.evalProperty("ondbload");if(typeof y!="string"||y=="")y=null;if(y){var J=true;E||(J=false);pui.yf(y,J,b.dom.id)}}};w.send()}}else if(n!="")if(pui["legacy chart data url"]==true){n=n.replace(/&/g,"%26");pui.widgets.Wf({dom:b.dom,uh:l,type:g,transparent:b.properties["chart overlay"]!="true",Lq:n})}else Wb({url:n,method:"get",async:true,handler:function(y){pui.widgets.Wf({dom:b.dom,
941
- uh:l,type:g,transparent:b.properties["chart overlay"]!="true",$e:y})}});else if(c!="")Wb({url:c,method:"get",async:true,handler:function(y){pui.widgets.Wf({dom:b.dom,uh:l,type:g,transparent:b.properties["chart overlay"]!="true",jsonData:y})}});else if(m!=""){c="AUTH="+(pui.Z?pui.Z:pui.appJob.auth);if(typeof pui.vId!=="undefined")c+="&VID="+pui.vId;if(pui.secLevel>0){c+="&q="+encodeURIComponent(pui.$c(b.dom));e=pui.rd(b.properties);if(e!="")c+="&"+e}else{a=m;if(e!="")a+=" ORDER BY "+e;c+="&q="+pui.yb.xf(a)}c+=
939
+ e=pui.rd(b.properties);if(e!="")c+="&"+e}else c+="&q="+pui.yb.yf(a);c+="&maxcount="+f;if(pui["read db driven data as ebcdic"]!==true)c+="&UTF8=Y";if(h)c+="&isMap=Y";if(pui.isCloud)c+="&workspace_id="+pui.cloud.ws.id;var w=new pui.Ajax(n);w.method="post";w.async=true;w.postData=c;w.suppressAlert=true;w.onsuccess=function(){if(!Db()){var y="invalid",E=Ib(w,"Run Charting Query");if(E)y=E;if(r!=null&&typeof r=="string"&&r!=""&&y.substr(0,45)=='<?xml version="1.0" encoding="utf-8"?><chart>')y='<?xml version="1.0" encoding="utf-8"?><chart>'.substr(0,
940
+ 44)+" "+r+y.substr(44);pui.widgets.Xf({dom:b.dom,uh:l,type:g,transparent:b.properties["chart overlay"]!="true",af:y});y=b.evalProperty("ondbload");if(typeof y!="string"||y=="")y=null;if(y){var J=true;E||(J=false);pui.zf(y,J,b.dom.id)}}};w.send()}}else if(n!="")if(pui["legacy chart data url"]==true){n=n.replace(/&/g,"%26");pui.widgets.Xf({dom:b.dom,uh:l,type:g,transparent:b.properties["chart overlay"]!="true",Lq:n})}else Wb({url:n,method:"get",async:true,handler:function(y){pui.widgets.Xf({dom:b.dom,
941
+ uh:l,type:g,transparent:b.properties["chart overlay"]!="true",af:y})}});else if(c!="")Wb({url:c,method:"get",async:true,handler:function(y){pui.widgets.Xf({dom:b.dom,uh:l,type:g,transparent:b.properties["chart overlay"]!="true",jsonData:y})}});else if(m!=""){c="AUTH="+(pui.Z?pui.Z:pui.appJob.auth);if(typeof pui.vId!=="undefined")c+="&VID="+pui.vId;if(pui.secLevel>0){c+="&q="+encodeURIComponent(pui.$c(b.dom));e=pui.rd(b.properties);if(e!="")c+="&"+e}else{a=m;if(e!="")a+=" ORDER BY "+e;c+="&q="+pui.yb.yf(a)}c+=
942
942
  "&limit="+f;if(pui["read db driven data as ebcdic"]!==true)c+="&UTF8=Y";if(pui.isCloud)c+="&workspace_id="+pui.cloud.ws.id;var z=new pui.Ajax(Vb("PUI0009102.PGM"));z.method="post";z.async=true;z.postData=c;z.suppressAlert=true;z.onsuccess=function(){var y=pui.widgets.Gs(r),E=Ib(z,"Custom SQL query");if(!E||E.results==null){y=Ma.pop();if(y!=null&&typeof y=="object")if(E=Ab(l))E.innerHTML='<ul style="overflow-y:auto; white-space:normal"><li>Chart operation: '+y.Ql+"<li>Id: "+y.id+"<li>Message: "+y.text+
943
- "<li>"+y.Fm+"</ul>";else console.log(y)}else{for(var J=h?"id":"label",B=0,G=E.results.length;B<G;B++){var D=Object.keys(E.results[B]).length,C="",K="",M=0;for(var U in E.results[B]){M++;var da=E.results[B][U];if(M<D)C+=" "+da;else K=da}y+="<set "+J+'="'+pui.ji(Kb(C))+'" value="'+pui.ji(Kb(K))+'" />'}y+="</chart>";pui.widgets.Wf({dom:b.dom,uh:l,type:g,transparent:b.properties["chart overlay"]!="true",$e:y})}};z.send()}}}}},width:function(b){b.dom.width=b.value;var a=typeof b.properties["map type"]!=
943
+ "<li>"+y.Fm+"</ul>";else console.log(y)}else{for(var J=h?"id":"label",B=0,G=E.results.length;B<G;B++){var D=Object.keys(E.results[B]).length,C="",K="",M=0;for(var U in E.results[B]){M++;var da=E.results[B][U];if(M<D)C+=" "+da;else K=da}y+="<set "+J+'="'+pui.ji(Kb(C))+'" value="'+pui.ji(Kb(K))+'" />'}y+="</chart>";pui.widgets.Xf({dom:b.dom,uh:l,type:g,transparent:b.properties["chart overlay"]!="true",af:y})}};z.send()}}}}},width:function(b){b.dom.width=b.value;var a=typeof b.properties["map type"]!=
944
944
  "undefined";b.design&&pui.widgets.Vj(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.Vj(b.dom,b.properties["chart type"],a)},"chart type":function(b){b.design&&pui.widgets.Vj(b.dom,b.value)},"map type":function(b){b.design&&pui.widgets.Vj(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.cc(b.newValue))b.dom.La=
945
945
  b.newValue.routine}}});pui.bs=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}};
946
946
  pui.widgets.add({name:"checkbox",tag:"input",inputType:"checkbox",np:"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=
947
- "2px";b.dom.checked=false;b.dom.indeterminate=false;b.dom.Uf=pui.Sg;b.dom.destroy=pui.lh;if(P=="genie"&&b.dom.gy!=null&&b.properties.value==null&&b.properties["checked value"]==null)b.dom.checked=b.dom.gy;else if(f&&Ob(a)===Ob(f))b.dom.indeterminate=true;else if(Ob(a)==Ob(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;a=
947
+ "2px";b.dom.checked=false;b.dom.indeterminate=false;b.dom.Vf=pui.Tg;b.dom.destroy=pui.lh;if(P=="genie"&&b.dom.gy!=null&&b.properties.value==null&&b.properties["checked value"]==null)b.dom.checked=b.dom.gy;else if(f&&Ob(a)===Ob(f))b.dom.indeterminate=true;else if(Ob(a)==Ob(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;a=
948
948
  b.evalProperty("label");a!=""&&pui.Ur(b.dom,a);T(b.dom,"click",pui.bs);if(pui.is_ie||navigator.userAgent.indexOf("Edge/")!=-1)T(b.dom,"dblclick",pui.bs)}pui.dl(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=
949
949
  f;b.dom.checked=false;b.dom.indeterminate=false;if(f&&Ob(a)===Ob(f))b.dom.indeterminate=true;else if(Ob(a)==Ob(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.dl(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"]===
950
950
  undefined?null:b.evalProperty("indeterminate value");if(f==="")f="2";b.dom.indeterminateValue=f;b.dom.checked=false;b.dom.indeterminate=false;if(f&&Ob(a)===Ob(f))b.dom.indeterminate=true;else if(Ob(a)==Ob(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.dl(b.dom)},"indeterminate value":function(b){var a=b.evalProperty("value"),c=b.evalProperty("checked value")!==""?b.evalProperty("checked value"):"1";b.dom.checkedValue=
951
951
  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&&Ob(a)===Ob(f))b.dom.indeterminate=true;else if(Ob(a)==Ob(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.dl(b.dom)},visibility:function(b){if(!b.design&&
952
- b.dom.Qd)b.dom.Qd.style.visibility=b.value=="hidden"?"hidden":""},"css class":function(b){if(b.design&&b.d.label){b.d.label.className="label-for";var a=Kb(b.value.split(" ")[0]);a!=""&&pui.P(b.d.label,"label-for-"+a)}}}});pui.af=function(){this.za=this.u=this.container=null;this.design=false;this.choices=[];this["choice values"]=[];this["select box placement"]="";this.wb=this.lc=this.J=null};pui.af.prototype=Object.create(pui.tc.prototype);va=pui.af.prototype;
952
+ b.dom.Qd)b.dom.Qd.style.visibility=b.value=="hidden"?"hidden":""},"css class":function(b){if(b.design&&b.d.label){b.d.label.className="label-for";var a=Kb(b.value.split(" ")[0]);a!=""&&pui.P(b.d.label,"label-for-"+a)}}}});pui.bf=function(){this.za=this.u=this.container=null;this.design=false;this.choices=[];this["choice values"]=[];this["select box placement"]="";this.wb=this.lc=this.J=null};pui.bf.prototype=Object.create(pui.tc.prototype);va=pui.bf.prototype;
953
953
  va.init=function(){if(this.u==null){this.u=document.createElement("div");this.container!=null&&this.container.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.J==null){this.J=document.createElement("input");this.u.appendChild(this.J)}this.J.type="text";
954
954
  if(this.J.getAttribute("autocomplete")==null&&(P!="genie"||!pui.D.config.mh)){this.J.setAttribute("autocomplete","off");P=="dspf"&&this.J.setAttribute("name",pui.Wd())}this.J.style.fontFamily=this.u.style.fontFamily;if(typeof this.u.name=="string")this.J.name=this.u.name;if(this.design){this.J.style.cursor="default";this.J.readOnly=true}var b=this.u.className.split(" ").indexOf("readOnly");this.J.disabled=b>0;this.J.readOnly=b>0;this.J.addEventListener("keyup",this);if(this.lc==null){this.lc=document.createElement("div");
955
955
  this.u.appendChild(this.lc);this.lc.addEventListener("mousedown",this);this.lc.addEventListener("mouseup",this)}this.lc.className="combo-arrow";this.lc.Cw=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"&&Db())Hb.designer.container.appendChild(this.wb);else a?a.appendChild(this.wb):pui.runtimeContainer.appendChild(this.wb)}this.wb.style.display="none";this.wb.className="combo-options";
956
- yd(this,this.u.className.split(" ")[1]);pui.Vg.push(this)};va.z=function(){var b=0;b=this.u.style.width;var a=this.u.offsetWidth,c=parseInt(getComputedStyle(this.lc).width)+3;if(b[b.length-1]==="%"){b=(1-c/a)*100;if(isNaN(b)||b<0)b=0;this.J.style.width=b+"%";this.J.style.zIndex=-1}else{b=parseInt(b)-c;if(isNaN(b)||b<0)b=0;this.J.style.width=b+"px"}};va.setValue=function(b){this.J.value=b;pui.se(this.J)};va.getValue=function(){return this.J.value};va.nq=function(b){this.J.readOnly=b};
956
+ yd(this,this.u.className.split(" ")[1]);pui.$e.push(this)};va.z=function(){var b=0;b=this.u.style.width;var a=this.u.offsetWidth,c=parseInt(getComputedStyle(this.lc).width)+3;if(b[b.length-1]==="%"){b=(1-c/a)*100;if(isNaN(b)||b<0)b=0;this.J.style.width=b+"%";this.J.style.zIndex=-1}else{b=parseInt(b)-c;if(isNaN(b)||b<0)b=0;this.J.style.width=b+"px"}};va.setValue=function(b){this.J.value=b;pui.se(this.J)};va.getValue=function(){return this.J.value};va.nq=function(b){this.J.readOnly=b};
957
957
  va.setDisabled=function(b){this.J.disabled=b};va.mq=function(b){this.J.maxLength=b};va.ez=function(b,a){this.J.setAttribute(b,a)};function yd(b,a){b.J.className="combo-main-box "+a.split(" ")[0];pui.P(b.wb,b.J.className.split(" ")[1]+"-combo-options");pui.P(b.lc,b.J.className.split(" ")[1]+"-combo-arrow")}va.Kn=function(b,a){this.J[b]=a;if(this.u[b]!=null)this.u[b]=na()};va.clear=function(){this.choices=[];this["choice values"]=[];this.J.value="";pui.se(this.J)};va.getBox=function(){return this.J};
958
- pui.af.prototype.showChoices=function(){var b=this.wb;if(this.lc.className.split(" ")[0]!="open")this.lc.className="open combo-arrow "+this.J.className.split(" ")[1]+"-combo-arrow";typeof this.u.onoptiondisplay=="function"&&this.u.onoptiondisplay();b.innerHTML="";b.style.display="";b.style.height=this.choices.length>5||this.choices.length==0?"":"auto";var a=this.u.offsetTop,c=this.u.offsetLeft,e=this.u.parentNode;if(e.parentNode.grid){a+=e.offsetTop;c+=e.offsetLeft;e=e.parentNode;a+=e.offsetTop;c+=
959
- e.offsetLeft;e=e.parentNode}if(e.getAttribute("container")=="true"){e=pui.layout.Ef(e);a+=e.y;c+=e.x}if(P=="genie")if(this.u.parentNode.layerInfo){a+=this.u.parentNode.offsetTop+this.u.parentNode.clientTop;c+=this.u.parentNode.offsetLeft+this.u.parentNode.clientLeft}a+=this.u.offsetHeight;b.style.top=a+"px";b.style.left=c+"px";a=0;for(c=this.choices.length;a<c;a++){e=document.createElement("div");e.innerHTML=this.choices[a];e.qh=this["choice values"][a];if(e.qh==null)e.qh=this.choices[a];e.Aw=this.choices[a];
958
+ pui.bf.prototype.showChoices=function(){var b=this.wb;if(this.lc.className.split(" ")[0]!="open")this.lc.className="open combo-arrow "+this.J.className.split(" ")[1]+"-combo-arrow";typeof this.u.onoptiondisplay=="function"&&this.u.onoptiondisplay();b.innerHTML="";b.style.display="";b.style.height=this.choices.length>5||this.choices.length==0?"":"auto";var a=this.u.offsetTop,c=this.u.offsetLeft,e=this.u.parentNode;if(e.parentNode.grid){a+=e.offsetTop;c+=e.offsetLeft;e=e.parentNode;a+=e.offsetTop;c+=
959
+ e.offsetLeft;e=e.parentNode}if(e.getAttribute("container")=="true"){e=pui.layout.Ff(e);a+=e.y;c+=e.x}if(P=="genie")if(this.u.parentNode.layerInfo){a+=this.u.parentNode.offsetTop+this.u.parentNode.clientTop;c+=this.u.parentNode.offsetLeft+this.u.parentNode.clientLeft}a+=this.u.offsetHeight;b.style.top=a+"px";b.style.left=c+"px";a=0;for(c=this.choices.length;a<c;a++){e=document.createElement("div");e.innerHTML=this.choices[a];e.qh=this["choice values"][a];if(e.qh==null)e.qh=this.choices[a];e.Aw=this.choices[a];
960
960
  e.className="combo-option";e.addEventListener("click",this);e.addEventListener("mousedown",this);e.addEventListener("mouseover",this);e.addEventListener("mouseout",this);b.appendChild(e)}a=this.u.offsetWidth;if(a<20&&/\d+px$/.test(this.u.style.width))a=parseInt(this.u.style.width);b.classList.remove("padr20");if(b.scrollHeight>b.offsetHeight)if(pui.is_ie)a-=17;else pui.is_firefox&&b.classList.add("padr");if(a<20)a=20;b.style.minWidth=a+"px";a=parseInt(b.style.top,10);if(this["select box placement"]===
961
961
  "above")b.style.top=a-this.u.offsetHeight-b.offsetHeight+"px";else if(this["select box placement"]!=="below"){c=pui.Vs();if(a-c+b.offsetHeight>pui.getWindowSize().height){e=a-b.offsetHeight-this.J.offsetHeight-3;if(e-c>=0)a=e}b.style.top=a+"px"}document.addEventListener("click",this);document.addEventListener("scroll",this,true)};
962
- pui.af.prototype.hideChoices=function(){if(this.lc!=null&&this.lc.className.split(" ")[0]=="open")this.lc.className="combo-arrow "+this.J.className.split(" ")[1]+"-combo-arrow";this.wb.innerHTML="";this.wb.style.display="none";zd(this)};function zd(b){document.removeEventListener("scroll",b,true);document.removeEventListener("click",b)}
963
- pui.af.prototype.handleEvent=function(b){var a=b.target;switch(b.type){case "click":if(a&&a.parentNode==this.wb){if(!this.J.readOnly&&!this.design){this.J.value=a.qh;this.J.modified=true;this.u.modified=true;pui.Ze(this.u);if(this.formatName!=null&&pui.sf!=null)pui.sf[this.formatName]=true;if(P=="genie"&&this.J.B!=null&&this.J.B.idx!=null)pui.response[this.J.B.idx]=this.J;var c=this.J.G;if(c!=null){c.hide();c.ia=true;pui.ca(this.J,c.Ag())}pui.se(this.J)}this.hideChoices();if(!pui.is_touch||pui.is_mouse_capable)this.J.focus();
962
+ pui.bf.prototype.hideChoices=function(){if(this.lc!=null&&this.lc.className.split(" ")[0]=="open")this.lc.className="combo-arrow "+this.J.className.split(" ")[1]+"-combo-arrow";this.wb.innerHTML="";this.wb.style.display="none";zd(this)};function zd(b){document.removeEventListener("scroll",b,true);document.removeEventListener("click",b)}
963
+ pui.bf.prototype.handleEvent=function(b){var a=b.target;switch(b.type){case "click":if(a&&a.parentNode==this.wb){if(!this.J.readOnly&&!this.design){this.J.value=a.qh;this.J.modified=true;this.u.modified=true;pui.Ze(this.u);if(this.formatName!=null&&pui.tf!=null)pui.tf[this.formatName]=true;if(P=="genie"&&this.J.B!=null&&this.J.B.idx!=null)pui.response[this.J.B.idx]=this.J;var c=this.J.G;if(c!=null){c.hide();c.ia=true;pui.ca(this.J,c.Bg())}pui.se(this.J)}this.hideChoices();if(!pui.is_touch||pui.is_mouse_capable)this.J.focus();
964
964
  this.u.yu!=null&&!this.J.readOnly&&!this.design&&this.u.yu(this.J.value,a.Aw,this.u);ub(b)}else a!=this.lc&&this.hideChoices();break;case "keyup":b=b.keyCode;if(this.wb.style.display==="none"||this.J.readOnly||this.J.disabled)return;if(b==8||b>=46&&b<=90||b>=96&&b<=111||b>=186&&b<=222||b===32){b=this.J.value.toLowerCase();a=this.wb.getElementsByClassName("combo-option");for(var e=0,f=a.length;e<f&&(c=a[e]);e++)if(b){var g=Lc(c).trim().toLowerCase();c.style.display=g.indexOf(b)>=0?"":"none"}else c.style.display=
965
- ""}break;case "mousedown":this.design||ub(b);break;case "mouseup":this.wb.style.display=="none"&&!this.J.disabled&&!this.design?this.showChoices():this.hideChoices();this.design||ub(b);break;case "mouseover":a.classList.add("combo-option-select");break;case "mouseout":a.classList.remove("combo-option-select");break;case "scroll":a!=this.wb&&this.hideChoices();break}};pui.af.prototype.destroy=function(){zd(this);this.Kc()};
966
- pui.af.prototype.setProperty=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;b=b.value;var c=a.split(" ");if(c.length==2)c[1]=c[1].substr(0,1).toUpperCase()+c[1].substr(1);c=c.join("");if(a=="text transform"&&b=="uppercase")this.J.value=pui.Qe(this.J.value,false);
965
+ ""}break;case "mousedown":this.design||ub(b);break;case "mouseup":this.wb.style.display=="none"&&!this.J.disabled&&!this.design?this.showChoices():this.hideChoices();this.design||ub(b);break;case "mouseover":a.classList.add("combo-option-select");break;case "mouseout":a.classList.remove("combo-option-select");break;case "scroll":a!=this.wb&&this.hideChoices();break}};pui.bf.prototype.destroy=function(){zd(this);this.Kc()};
966
+ pui.bf.prototype.setProperty=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;b=b.value;var c=a.split(" ");if(c.length==2)c[1]=c[1].substr(0,1).toUpperCase()+c[1].substr(1);c=c.join("");if(a=="text transform"&&b=="uppercase")this.J.value=pui.Qe(this.J.value,false);
967
967
  this.J.style[c]=b;if(pui["add combo style properties to choice list"])this.wb.style[c]=b;break;case "select box placement":if(!b.design)this["select box placement"]=b.value;break}};
968
- pui.widgets.add({name:"combo box",defaults:{width:"80px","css class":"input","font family":"Trebuchet MS"},propertySetters:{"field type":function(b){var a;if(b.dom.comboBoxWidget==null)b.dom.comboBoxWidget=new pui.af;b.dom.comboBoxWidget.u=b.dom;b.dom.comboBoxWidget.design=b.design;b.dom.comboBoxWidget.za=b.za;for(var c=a="";typeof b.properties["css class"+a]=="string";){if(c!="")c+=" ";c+=b.properties["css class"+a];a=a==""?" 2":" "+(parseInt(a,10)+1)}if(c===""&&b.dom.B){a=b.dom.B.attr;c+=" A"+a;
969
- if(b.dom.B.bypass)c+=a=="27"||a=="2F"||a=="37"||a=="3F"?" hide":" readOnly";c=Kb(c)}b.dom.className="combo-main "+Kb(c);b.dom.comboBoxWidget.init();c=b.evalProperty("width");if(c!=null&&c!="")b.dom.style.width=c;b.dom.comboBoxWidget.z();a=b.evalProperty("choices url");if(a!=""&&!b.design){var e=new pui.Ajax(pui.mf(a));e.async=true;e.suppressAlert=true;e.onready=function(){b.dom.comboBoxWidget.clear();var p=Ib(e,"Generate Combo Box Options");if(p){for(var s=0;s<p.length;s++){var t=p[s];if(t!=null&&
968
+ pui.widgets.add({name:"combo box",defaults:{width:"80px","css class":"input","font family":"Trebuchet MS"},propertySetters:{"field type":function(b){var a;if(b.dom.comboBoxWidget==null)b.dom.comboBoxWidget=new pui.bf;b.dom.comboBoxWidget.u=b.dom;b.dom.comboBoxWidget.design=b.design;b.dom.comboBoxWidget.za=b.za;for(var c=a="";typeof b.properties["css class"+a]=="string";){if(c!="")c+=" ";c+=b.properties["css class"+a];a=a==""?" 2":" "+(parseInt(a,10)+1)}if(c===""&&b.dom.B){a=b.dom.B.attr;c+=" A"+a;
969
+ if(b.dom.B.bypass)c+=a=="27"||a=="2F"||a=="37"||a=="3F"?" hide":" readOnly";c=Kb(c)}b.dom.className="combo-main "+Kb(c);b.dom.comboBoxWidget.init();c=b.evalProperty("width");if(c!=null&&c!="")b.dom.style.width=c;b.dom.comboBoxWidget.z();a=b.evalProperty("choices url");if(a!=""&&!b.design){var e=new pui.Ajax(pui.nf(a));e.async=true;e.suppressAlert=true;e.onready=function(){b.dom.comboBoxWidget.clear();var p=Ib(e,"Generate Combo Box Options");if(p){for(var s=0;s<p.length;s++){var t=p[s];if(t!=null&&
970
970
  t.nodeType!="OPTION"&&t.text!=null&&t.value!=null)t=new Option(t.text,t.value);b.dom.comboBoxWidget.choices.push(t.text);b.dom.comboBoxWidget["choice values"].push(t.value)}b.dom.comboBoxWidget.setValue(b.evalProperty("value"))}};b.dom.comboBoxWidget.clear();b.dom.comboBoxWidget.setValue(pui.getLanguageText("runtimeMsg","loading"));e.send()}else if(b.evalProperty("choices database file")!=""){if(!b.design){c=b.evalProperty("max choices");var f=b.evalProperty("choices database file"),g=pui.Ah(b.evalProperty("choice options field")),
971
971
  h=b.evalProperty("choice values field");if(h==null||h=="")h=g[0];a=b.evalProperty("choices selection criteria");var l=pui.Ah(b.evalProperty("order by"));if(l[0]!="")for(var n=0;n<l.length;n++){var m=l[n];pui.oe(g,m)==-1&&g.push(m)}h=g[0]+", "+h;g.splice(0,1);if(g.length>0)h+=", "+g.join();f="SELECT DISTINCT "+h+" FROM "+f;if(a&&a!="")f+=" WHERE "+a;if(l[0]!="")f+=" ORDER BY "+l.join();a=Vb("PUI0009103.PGM");var r=new pui.Ajax(a);r.method="post";r.async=true;r.suppressAlert=true;if(pui.Z)r.postData=
972
- "AUTH="+pui.Z;else{r.postData="AUTH="+pui.appJob.auth;if(typeof pui.vId!=="undefined")r.postData+="&VID="+pui.vId}if(pui.secLevel>0){r.postData+="&q="+encodeURIComponent(pui.$c(b.dom));a=pui.rd(b.properties);if(a!="")r.postData+="&"+a}else r.postData+="&q="+pui.yb.xf(f);if(pui.isCloud)r.postData+="&workspace_id="+pui.cloud.ws.id;if(c!=null&&c!="")r.postData+="&maxcount="+encodeURIComponent(c);if(pui["read db driven data as ebcdic"]!==true)r.postData+="&UTF8=Y";r.onsuccess=function(){var p=b.evalProperty("ondbload");
972
+ "AUTH="+pui.Z;else{r.postData="AUTH="+pui.appJob.auth;if(typeof pui.vId!=="undefined")r.postData+="&VID="+pui.vId}if(pui.secLevel>0){r.postData+="&q="+encodeURIComponent(pui.$c(b.dom));a=pui.rd(b.properties);if(a!="")r.postData+="&"+a}else r.postData+="&q="+pui.yb.yf(f);if(pui.isCloud)r.postData+="&workspace_id="+pui.cloud.ws.id;if(c!=null&&c!="")r.postData+="&maxcount="+encodeURIComponent(c);if(pui["read db driven data as ebcdic"]!==true)r.postData+="&UTF8=Y";r.onsuccess=function(){var p=b.evalProperty("ondbload");
973
973
  if(typeof p!="string"||p=="")p=null;var s=Ib(r,"Generate Dropdown Box Options");b.dom.comboBoxWidget.clear();if(s){if(b.properties["blank option"]=="true"){var t=b.evalProperty("blank option label");if(t==null)t="";b.dom.comboBoxWidget.choices.push(t);b.dom.comboBoxWidget["choice values"].push("")}for(t=0;t<s.length;t++){var w=s[t];if(w!=null&&w.nodeType!="OPTION"&&w.text!=null&&w.value!=null)w=new Option(w.text,w.value);b.dom.comboBoxWidget.choices.push(w.text);b.dom.comboBoxWidget["choice values"].push(w.value)}b.dom.comboBoxWidget.setValue(b.evalProperty("value"));
974
- p&&pui.yf(p,true,b.dom.id)}else p&&pui.yf(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=Ac().choices;Mc(c,b.properties,b.d.dom,b.properties.choices,true,b.d)}}},choices:function(b){if(b.dom.comboBoxWidget!=null)b.dom.comboBoxWidget.choices=pui.ga(b.value)},"choice values":function(b){if(b.dom.comboBoxWidget!=null)b.dom.comboBoxWidget["choice values"]=
974
+ p&&pui.zf(p,true,b.dom.id)}else p&&pui.zf(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=Ac().choices;Mc(c,b.properties,b.d.dom,b.properties.choices,true,b.d)}}},choices:function(b){if(b.dom.comboBoxWidget!=null)b.dom.comboBoxWidget.choices=pui.ga(b.value)},"choice values":function(b){if(b.dom.comboBoxWidget!=null)b.dom.comboBoxWidget["choice values"]=
975
975
  pui.ga(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.nq(true):b.dom.comboBoxWidget.nq(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&&yd(b.dom.comboBoxWidget,
976
976
  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.yu=function(){if(pui.cc(b.properties.onselect))pui.runLogic(b.properties.onselect.routine,b.dom.n,b.dom.gk);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",
977
- 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.Wd()):b.dom.comboBoxWidget.getBox().removeAttribute("name")}}},Gf:function(b){b.dom&&b.dom.comboBoxWidget&&typeof b.dom.comboBoxWidget.setProperty==="function"&&b.dom.comboBoxWidget.setProperty(b)},cw:{"tab index":function(b){b.dom.removeAttribute("tabindex");
978
- 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.k!=null&&b.dom&&b.dom.k!=null&&b.dom.className.indexOf("pui-floating-placeholder-combo-main")==-1){b.dom.removeChild(b.dom.k);pui.zg(b.dom)}if(b.propertyName.substr(0,9)=="css class")if(b.dom.className.indexOf("combo-main")==-1)b.dom.className="combo-main "+
977
+ 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.Wd()):b.dom.comboBoxWidget.getBox().removeAttribute("name")}}},Hf:function(b){b.dom&&b.dom.comboBoxWidget&&typeof b.dom.comboBoxWidget.setProperty==="function"&&b.dom.comboBoxWidget.setProperty(b)},cw:{"tab index":function(b){b.dom.removeAttribute("tabindex");
978
+ 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.k!=null&&b.dom&&b.dom.k!=null&&b.dom.className.indexOf("pui-floating-placeholder-combo-main")==-1){b.dom.removeChild(b.dom.k);pui.Ag(b.dom)}if(b.propertyName.substr(0,9)=="css class")if(b.dom.className.indexOf("combo-main")==-1)b.dom.className="combo-main "+
979
979
  b.dom.className}});pui.Tm=function(){this.designMode=this.container=null;this.cv=this.Ae=false;var b,a,c,e,f="a",g=1,h=false,l=" ui-icon-shadow";if(pui.is_firefox)l="";var n=this;this.init=function(){function m(){if(!h){pui.ca(b,"ui-btn-up-"+f);pui.P(b,"ui-btn-down-"+f)}}function r(){pui.ca(b,"ui-btn-down-"+f);pui.P(b,"ui-btn-up-"+f)}b=n.Ae||n.cv?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-"+
980
980
  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);n.container.appendChild(b);T(b,"mouseover",function(){if(!h){pui.ca(b,"ui-btn-up-"+f);pui.P(b,"ui-btn-hover-"+f)}});T(b,"mouseout",function(){pui.ca(b,"ui-btn-hover-"+f);pui.P(b,"ui-btn-up-"+f)});T(b,"focus",function(){h||pui.P(b,"ui-focus")});T(b,"blur",function(){pui.ca(b,"ui-focus")});T(b,"mousedown",m);
981
981
  T(b,"touchstart",m);T(b,"mouseup",r);T(b,"touchend",r);T(b,"mouseleave",r)};this.setText=function(m){pui.la(c);c.innerHTML=m};this.yd=function(m){if(m==null||m==""||pui.o(m))m="a";m=m.replace(/ - {1}.*/g,"");m=m.toLowerCase();if(f!=m){for(var r=b.className.split(" "),p=0;p<r.length;p++){var s=r[p];if(s.length>2&&s.substr(s.length-(g+1),g+1)=="-"+f){r=s.substr(0,s.length-g)+m;pui.ca(b,s);pui.P(b,r);break}}f=m;g=f.length}};this.vm=function(m){pui.ca(b,"ui-btn-icon-left");pui.ca(b,"ui-btn-icon-right");
982
982
  pui.ca(b,"ui-btn-icon-top");pui.ca(b,"ui-btn-icon-bottom");m!="left"&&m!="right"||pui.P(b,"ui-btn-icon-"+m)};this.setIcon=function(m,r){if(m&&r=="material"){e.className="pui-material-icons";pui.la(e);e.innerHTML=m}else if(m&&r=="fontAwesome"){e.className="pui-fa-icons fa-"+m;pui.la(e)}else if(m&&m.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-",
983
983
  regular:"pui-fa-regular-icons fa-"}},{type:"jQueryIcons",title:"jQuery Mobile Icons",classList:{"":"ui-icon ui-icon-"}}];m=Kb(m);if(pui.customIconList&&pui.customIconList)if(Array.isArray(pui.customIconList.icons)&&pui.customIconList.icons.length)p=pui.customIconList.icons;var s=m.split(":"),t=s.shift().split("-"),w=t.pop();t=t.join("-");var z=s.pop();p.every(function(y){var E=y.classList[w];if(t===y.type){e.className=E+z;pui.la(e);return false}return true})}else{if(m=="left arrow")m="arrow-l";if(m==
984
- "right arrow")m="arrow-r";if(m=="up arrow")m="arrow-u";if(m=="down arrow")m="arrow-d";if(m==null)m="";if(m!="")m=" ui-icon-"+m;e.className="ui-icon"+m+l;pui.la(e)}};this.Pg=function(m){m==true?pui.P(b,"ui-mini"):pui.ca(b,"ui-mini")};this.setDisabled=function(m){h=m};this.S=function(m){if(!(m==null||pui.o(m))){b.style.borderTopLeftRadius="";b.style.borderTopRightRadius="";b.style.borderBottomLeftRadius="";b.style.borderBottomRightRadius="";a.style.borderTopLeftRadius="";a.style.borderTopRightRadius=
984
+ "right arrow")m="arrow-r";if(m=="up arrow")m="arrow-u";if(m=="down arrow")m="arrow-d";if(m==null)m="";if(m!="")m=" ui-icon-"+m;e.className="ui-icon"+m+l;pui.la(e)}};this.Qg=function(m){m==true?pui.P(b,"ui-mini"):pui.ca(b,"ui-mini")};this.setDisabled=function(m){h=m};this.S=function(m){if(!(m==null||pui.o(m))){b.style.borderTopLeftRadius="";b.style.borderTopRightRadius="";b.style.borderBottomLeftRadius="";b.style.borderBottomRightRadius="";a.style.borderTopLeftRadius="";a.style.borderTopRightRadius=
985
985
  "";a.style.borderBottomLeftRadius="";a.style.borderBottomRightRadius="";switch(m){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=
986
986
  "0";break;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(m){if(typeof m==
987
987
  "number")m+="px";b.style.height=m};this.setStyle=function(m,r){if(pui.o(r))r="";var p=m.split(" ");if(p.length==2)m=p[0]+p[1].substr(0,1).toUpperCase()+p[1].substr(1);if(m=="cursor"){e.style[m]=r;b.style[m]=r;a.style[m]=r}if(m=="textAlign")b.style[m]=r;else c.style[m]=r};this.jz=function(m){if(!n.designMode)b.href=m};this.nz=function(m){if(!n.designMode)b.target=m};this.gz=function(m){n.designMode||(b.download=m)};this.Bu=function(m){if(n.container!=null){if(m!=null)n.container.style.height=m;if(n.container.style.height!=
988
- null&&n.container.style.height!=""&&c.innerHTML.toLowerCase().indexOf("<br")<0){m=b.offsetHeight-26;if(m<0)m=0;c.style.lineHeight=m+"px"}else c.style.lineHeight=null}};this.Oo=this.Od=function(){return b};this.Ce=function(){return a};this.So=function(){return c};this.Ng=function(m){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 s=r[p],t=m[s];t!=null&&n.setStyle(s,
988
+ null&&n.container.style.height!=""&&c.innerHTML.toLowerCase().indexOf("<br")<0){m=b.offsetHeight-26;if(m<0)m=0;c.style.lineHeight=m+"px"}else c.style.lineHeight=null}};this.Oo=this.Od=function(){return b};this.Ce=function(){return a};this.So=function(){return c};this.Og=function(m){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 s=r[p],t=m[s];t!=null&&n.setStyle(s,
989
989
  t)}};this.destroy=function(){n&&n.container&&pui.lh.apply(n.container);if(b){pui.pd(b);b=null}if(a){pui.pd(a);a=null}if(c){pui.pd(c);c=null}if(e){pui.pd(e);e=null}if(n){pui.tc.prototype.Kc.apply(n);n=null}}};
990
- pui.widgets.pA=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.Tm;c.container=b;c.designMode=true;c.Ae=true;c.init();c.setText(a.value);c.yd(a.theme);c.setIcon(a.icon);c.vm(a["icon position"]);c.Pg(a["small button"]=="true");c.S(a["straight edge"]);return b};
991
- pui.widgets.add({name:"css button",newValue:"Click Here",sd:true,defaults:{width:"160px",theme:"c - Gray"},Gf: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.Tm;a.container=b.dom;
992
- a.designMode=b.design;pui.la(b.dom);if(!b.design&&b.properties["hyperlink reference"]==null&&b.properties.target==null)a.cv=true;a.init();b.dom.button=a;a.setText(b.evalProperty("value"));a.yd(b.evalProperty("theme"));a.setIcon(b.evalProperty("icon"));a.vm(b.evalProperty("icon position"));a.Pg(b.evalProperty("small button")=="true");a.S(b.evalProperty("straight edge"));a.setHeight("100%");b.dom.Uf=pui.Sg;b.dom.destroy=a.destroy},theme:function(b){b.dom.button.yd(b.value)},value:function(b){b.dom.button.setText(b.value)},
993
- "icon position":function(b){b.dom.button.vm(b.value)},icon:function(b){var a;if(b.value)b.value=Kb(b.value);if(b.value.substr(0,9)=="material:"){a=Kb(b.value.substr(9));b.dom.button.setIcon(a,"material")}else if(b.value.substr(0,12)=="fontAwesome:"){a=Kb(b.value.substr(12));b.dom.button.setIcon(a,"fontAwesome")}else b.dom.button.setIcon(b.value)},"small button":function(b){b.dom.button.Pg(b.value=="true"||b.value==true)},disabled:function(b){b.dom.button.setDisabled(b.value=="true"||b.value==true)},
994
- "straight edge":function(b){b.dom.button.S(b.value)},"hyperlink reference":function(b){var a=b.value;if(b.designMode)a=null;b.dom.button.jz(a)},target:function(b){b.dom.button.nz(b.value)},"download file":function(b){b.dom.button.gz(b.value)},height:function(b){b.dom.button.Bu(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.Vm=function(){this.container=null;this.type="body";this.Cf=false;var b,a,c,e,f="c",g=1,h=this;this.init=function(){b=document.createElement("span");a=document.createElement("span");if(h.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(h.type=="header"){c.className="ui-btn-text";a.appendChild(c)}if(h.Cf&&
990
+ pui.widgets.pA=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.Tm;c.container=b;c.designMode=true;c.Ae=true;c.init();c.setText(a.value);c.yd(a.theme);c.setIcon(a.icon);c.vm(a["icon position"]);c.Qg(a["small button"]=="true");c.S(a["straight edge"]);return b};
991
+ pui.widgets.add({name:"css button",newValue:"Click Here",sd:true,defaults:{width:"160px",theme:"c - Gray"},Hf: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.Tm;a.container=b.dom;
992
+ a.designMode=b.design;pui.la(b.dom);if(!b.design&&b.properties["hyperlink reference"]==null&&b.properties.target==null)a.cv=true;a.init();b.dom.button=a;a.setText(b.evalProperty("value"));a.yd(b.evalProperty("theme"));a.setIcon(b.evalProperty("icon"));a.vm(b.evalProperty("icon position"));a.Qg(b.evalProperty("small button")=="true");a.S(b.evalProperty("straight edge"));a.setHeight("100%");b.dom.Vf=pui.Tg;b.dom.destroy=a.destroy},theme:function(b){b.dom.button.yd(b.value)},value:function(b){b.dom.button.setText(b.value)},
993
+ "icon position":function(b){b.dom.button.vm(b.value)},icon:function(b){var a;if(b.value)b.value=Kb(b.value);if(b.value.substr(0,9)=="material:"){a=Kb(b.value.substr(9));b.dom.button.setIcon(a,"material")}else if(b.value.substr(0,12)=="fontAwesome:"){a=Kb(b.value.substr(12));b.dom.button.setIcon(a,"fontAwesome")}else b.dom.button.setIcon(b.value)},"small button":function(b){b.dom.button.Qg(b.value=="true"||b.value==true)},disabled:function(b){b.dom.button.setDisabled(b.value=="true"||b.value==true)},
994
+ "straight edge":function(b){b.dom.button.S(b.value)},"hyperlink reference":function(b){var a=b.value;if(b.designMode)a=null;b.dom.button.jz(a)},target:function(b){b.dom.button.nz(b.value)},"download file":function(b){b.dom.button.gz(b.value)},height:function(b){b.dom.button.Bu(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.Vm=function(){this.container=null;this.type="body";this.Df=false;var b,a,c,e,f="c",g=1,h=this;this.init=function(){b=document.createElement("span");a=document.createElement("span");if(h.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(h.type=="header"){c.className="ui-btn-text";a.appendChild(c)}if(h.Df&&
995
995
  h.type=="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);h.container.appendChild(b)};this.setText=function(l){if(h.type=="header"){if(l==null||pui.o(l)||pui.Mb(l)||pui.cc(l))l="";c.innerHTML=l}};this.yd=function(l){if(l==null||l==""||pui.o(l))l="c";l=l.replace(/ - {1}.*/g,"");l=l.toLowerCase();if(f!=l){for(var n=b.className.split(" "),m=0;m<n.length;m++){var r=
996
996
  n[m];if(r.length>2&&r.substr(r.length-(g+1),g+1)=="-"+f){n=r.substr(0,r.length-g)+l;pui.ca(b,r);pui.P(b,n);break}}f=l;g=f.length}};this.S=function(l){if(!(l==null||pui.o(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=
997
997
  "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";
998
998
  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,n){if(h.type=="header"){if(pui.o(n))n="";var m=l.split(" ");
999
- if(m.length==2)l=m[0]+m[1].substr(0,1).toUpperCase()+m[1].substr(1);if(l=="textAlign")b.style[l]=n;else c.style[l]=n}};this.Ng=function(l){for(var n=["color","font family","font size","font style","font variant","font weight","letter spacing","text align","text decoration","text transform","word spacing"],m=0;m<n.length;m++){var r=n[m],p=l[r];p!=null&&h.setStyle(r,p)}};this.Bu=function(l){if(h.type=="header")if(h.container!=null){if(l!=null)h.container.style.height=l;if(h.container.style.height!=
999
+ if(m.length==2)l=m[0]+m[1].substr(0,1).toUpperCase()+m[1].substr(1);if(l=="textAlign")b.style[l]=n;else c.style[l]=n}};this.Og=function(l){for(var n=["color","font family","font size","font style","font variant","font weight","letter spacing","text align","text decoration","text transform","word spacing"],m=0;m<n.length;m++){var r=n[m],p=l[r];p!=null&&h.setStyle(r,p)}};this.Bu=function(l){if(h.type=="header")if(h.container!=null){if(l!=null)h.container.style.height=l;if(h.container.style.height!=
1000
1000
  null&&h.container.style.height!=""){l=link.offsetHeight-26;if(l<0)l=0;c.style.lineHeight=l+"px"}else c.style.lineHeight=null}};this.Od=function(){return b};this.Ce=function(){return b};this.So=function(){return c}};
1001
- pui.Um=function(){this.container=null;this.Cf=false;var b,a,c,e,f=true,g=40,h="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.Vm;c.type="header";c.Cf=l.Cf;c.container=b;c.init();c.yd("b");c.setHeight("100%");e=new pui.Vm;e.type="body";e.Cf=l.Cf;e.container=a;e.init();e.setHeight("100%");
1001
+ pui.Um=function(){this.container=null;this.Df=false;var b,a,c,e,f=true,g=40,h="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.Vm;c.type="header";c.Df=l.Df;c.container=b;c.init();c.yd("b");c.setHeight("100%");e=new pui.Vm;e.type="body";e.Df=l.Df;e.container=a;e.init();e.setHeight("100%");
1002
1002
  l.S("none");l.container.appendChild(b);l.container.appendChild(a);l.resize();var n=l.container.parentNode;n!=null&&n.Ac==true&&l.xt();n==null&&setTimeout(function(){var m=l.container.parentNode;m!=null&&m.Ac==true&&l.xt()},0)};this.xt=function(){var n=l.container.parentNode;new pui.qk({Hk:b,move:n});T(b,"touchstart",function(m){if(m.touches.length==1){m=m.touches[0];n.C={};n.C.startX=m.pageX;n.C.startY=m.pageY;n.C.hb=parseInt(n.style.left);n.C.Fa=parseInt(n.style.top)}});T(b,"touchmove",function(m){if(m.touches.length==
1003
1003
  1){var r=m.touches[0],p=r.pageY;n.style.left=n.C.hb-n.C.startX+r.pageX+"px";n.style.top=n.C.Fa-n.C.startY+p+"px";m.preventDefault()}});b.style.cursor="move";if(b.firstChild!=null)b.firstChild.style.cursor="move"};this.Xj=function(n){b.style.display=n?"":"none";f=n;l.S(h);l.resize()};this.Yj=function(n){n=parseInt(n);if(isNaN(n)||n<=0)n=40;g=n;l.resize()};this.S=function(n){if(!(n==null||pui.o(n))){h=n;if(f)switch(n){case "left":c.S("left");c.Od().style.borderBottomRightRadius="0";c.Ce().style.borderBottomRightRadius=
1004
1004
  "0";e.S("left");e.Od().style.borderTopRightRadius="0";e.Ce().style.borderTopRightRadius="0";break;case "right":c.S("right");c.Od().style.borderBottomLeftRadius="0";c.Ce().style.borderBottomLeftRadius="0";e.S("right");e.Od().style.borderTopLeftRadius="0";e.Ce().style.borderTopLeftRadius="0";break;case "top":c.S("all");e.S("top");break;case "bottom":c.S("bottom");e.S("all");break;case "all":c.S("all");e.S("all");break;default:c.S("bottom");e.S("top");break}else e.S(n)}};this.setText=function(n){c.setText(n)};
1005
- this.So=function(){return c.So()};this.setStyle=function(n,m){c.setStyle(n,m)};this.Ng=function(n){c.Ng(n)};this.$f=function(n){c.yd(n)};this.Yf=function(n){e.yd(n)};this.resize=function(n){var m;if(typeof n=="string")if(n.length<3||n.substr(n.length-2,2)!="px")n=null;m=n!=null&&!isNaN(parseInt(n))?parseInt(n):l.container.offsetHeight;n=g;f||(n=-1);m=m-n-5;if(m<0)m=0;if(f)b.style.height=n+"px";a.style.top=n+1+"px";a.style.height=m+"px"};this.setHeight=function(n){l.container.style.height=n;l.resize(n)};
1005
+ this.So=function(){return c.So()};this.setStyle=function(n,m){c.setStyle(n,m)};this.Og=function(n){c.Og(n)};this.ag=function(n){c.yd(n)};this.Zf=function(n){e.yd(n)};this.resize=function(n){var m;if(typeof n=="string")if(n.length<3||n.substr(n.length-2,2)!="px")n=null;m=n!=null&&!isNaN(parseInt(n))?parseInt(n):l.container.offsetHeight;n=g;f||(n=-1);m=m-n-5;if(m<0)m=0;if(f)b.style.height=n+"px";a.style.top=n+1+"px";a.style.height=m+"px"};this.setHeight=function(n){l.container.style.height=n;l.resize(n)};
1006
1006
  this.wA=function(){return c.Od()};this.vA=function(){return g}};
1007
- pui.widgets.qA=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.Um;c.container=b;c.init();c.setText(a.value);c.$f(a["header theme"]);c.Yf(a["body theme"]);c.S(a["straight edge"]);
1007
+ pui.widgets.qA=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.Um;c.container=b;c.init();c.setText(a.value);c.ag(a["header theme"]);c.Zf(a["body theme"]);c.S(a["straight edge"]);
1008
1008
  c.Xj(a["has header"]!=="false"&&a["has header"]!==false);c.Yj(a["header height"]);c.setHeight(a.height);return b};
1009
- pui.widgets.add({name:"css panel",menuName:"CSS Panel",newId:"Panel",newValue:"Panel Title",sd:true,defaults:{width:"200px",height:"300px","z index":"8"},Gf: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=
1010
- function(){b.dom.panel.resize()};var a=new pui.Um;a.container=b.dom;b.dom.innerHTML="";a.init();b.dom.panel=a;var c=b.evalProperty("height");c!=null&&a.setHeight(c);a.setText(b.evalProperty("value"));a.$f(b.evalProperty("header theme"));a.Yf(b.evalProperty("body theme"));a.S(b.evalProperty("straight edge"));c=b.evalProperty("has header");c=c!=="false"&&c!==false;a.Xj(c);a.Yj(b.evalProperty("header height"))},"header theme":function(b){b.dom.panel.$f(b.value)},"body theme":function(b){b.dom.panel.Yf(b.value)},
1009
+ pui.widgets.add({name:"css panel",menuName:"CSS Panel",newId:"Panel",newValue:"Panel Title",sd:true,defaults:{width:"200px",height:"300px","z index":"8"},Hf: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=
1010
+ function(){b.dom.panel.resize()};var a=new pui.Um;a.container=b.dom;b.dom.innerHTML="";a.init();b.dom.panel=a;var c=b.evalProperty("height");c!=null&&a.setHeight(c);a.setText(b.evalProperty("value"));a.ag(b.evalProperty("header theme"));a.Zf(b.evalProperty("body theme"));a.S(b.evalProperty("straight edge"));c=b.evalProperty("has header");c=c!=="false"&&c!==false;a.Xj(c);a.Yj(b.evalProperty("header height"))},"header theme":function(b){b.dom.panel.ag(b.value)},"body theme":function(b){b.dom.panel.Zf(b.value)},
1011
1011
  value:function(b){b.dom.panel.setText(b.value)},"straight edge":function(b){b.dom.panel.S(b.value)},"has header":function(b){b.dom.panel.Xj(b.value!=="false"&&b.value!==false)},"header height":function(b){b.dom.panel.Yj(b.value)},height:function(b){b.dom.panel.setHeight(b.value)}}});var Ad=[],Bd=0;pui.currentDateField=null;
1012
1012
  function Cd(b,a,c){var e,f,g,h=0,l,n="false";if(b.Qp!=null&&b.Qp==="true")n=b.Qp;if(pui.locale&&pui.locales[pui.locale])g=pui.locale;else{if(P=="dspf"&&b.M)g=b.M.locale;else if(P=="genie")g=pui.D.config.locale;if(g=="")g=null}if(g){e=pui.locales[g].monthNames;dayNames=pui.locales[g].shortDayNames;if(n=="true"&&pui.locales[g].weekNumberShort)l=pui.locales[g].weekNumberShort;else if(n=="true")l="Wk";f=[];if(pui.locales[g].weekStart)h=pui.locales[g].weekStart;for(var m=0;m<dayNames.length;m++)f.push(dayNames[m])}else{e=
1013
1013
  ["January","February","March","April","May","June","July","August","September","October","November","December"];f=["Su","Mo","Tu","We","Th","Fr","Sa"];if(n=="true")l="Wk"}pui.currentDateField=b;m=a==null||a==""?new Date:Dd(a);if(m==null)m=new Date;a=m.getMonth();var r=new Date(m);for(r.setMonth(a-1);r.getMonth()==a;)r.setDate(r.getDate()-1);var p=new Date(m);p.setMonth(a+1);a=a+1;if(a==12)a=0;for(;p.getMonth()!=a;)p.setDate(p.getDate()-1);var s=new Date(m);s.setFullYear(m.getFullYear()-1);var t=new Date(m);
@@ -1024,7 +1024,7 @@ g.appendChild(n);m=pui.Zc(h);a=m[1];m=m[0];n=h.offsetHeight;f=h.offsetWidth;h=g.
1024
1024
  10;g.style.left=w+"px";g.style.top=E+"px";setTimeout(function(){var U=Ab("popcal");if(U!=null&&U.style.visibility!=="visible")U.style.visibility="visible"},0)}function Dd(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 Ed(b){return String(b.getDate()+"-"+(b.getMonth()+1)+"-"+b.getFullYear()+" ")}
1025
1025
  function Fd(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 g;c=String(b.getMonth()+1);f=String(b.getDate());e=String(b.getFullYear());
1026
1026
  b=c;if(c.length==1)b="0"+c;c=f;if(f.length==1)c="0"+f;if(e.length==4){g=e;f=e=e.substring(2,4)}else{f=e;g=e=e.substring(e.length-2,e.length)}a=a;a=a.replace("YYYY",g);a=a.replace("YY",f);a=a.replace("MM",b);return a=a.replace("DD",c)}function zc(){var b=Ab("popcal");if(b!=null&&b.style.visibility!=="hidden")b.style.visibility="hidden"}
1027
- function Gd(){pui.currentDateField.modified=true;pui.Ze(pui.currentDateField);if(pui.currentDateField.id!=null&&pui.currentDateField.id.indexOf(".")==-1&&pui.currentDateField.mc!=null)pui.sf[pui.currentDateField.mc]=true;if(P=="genie"&&pui.currentDateField.B!=null&&pui.currentDateField.B.idx!=null)pui.response[pui.currentDateField.B.idx]=pui.currentDateField;zc();var b=pui.currentDateField.G;if(b!=null){b.hide();b.ia=true;pui.ca(pui.currentDateField,b.Ag())}try{pui.currentDateField.focus()}catch(a){}pui.currentDateField.onchange!=
1027
+ function Gd(){pui.currentDateField.modified=true;pui.Ze(pui.currentDateField);if(pui.currentDateField.id!=null&&pui.currentDateField.id.indexOf(".")==-1&&pui.currentDateField.mc!=null)pui.tf[pui.currentDateField.mc]=true;if(P=="genie"&&pui.currentDateField.B!=null&&pui.currentDateField.B.idx!=null)pui.response[pui.currentDateField.B.idx]=pui.currentDateField;zc();var b=pui.currentDateField.G;if(b!=null){b.hide();b.ia=true;pui.ca(pui.currentDateField,b.Bg())}try{pui.currentDateField.focus()}catch(a){}pui.currentDateField.onchange!=
1028
1028
  null&&pui.currentDateField.onchange();pui.currentDateField.oninput!=null&&pui.currentDateField.oninput();pui.se(pui.currentDateField)}
1029
1029
  function Hd(b,a){if(a==null||a=="")a=P=="genie"?pui.D.config.defaultDateFormat:pui.defaultDateFormat;if(a==null||a=="")a="MM/DD/YY";var c=document.createElement("div");c.className="pui-calendar-icon";if(b["cal icon class"])c.className="pui-calendar-icon "+b["cal icon class"];c.style.left=parseInt(b.style.left)+b.offsetWidth+5+"px";var e=parseInt(b.style.top);e+=parseInt((b.offsetHeight-22)/2);c.style.top=e+"px";c.style.visibility=b.style.visibility;if(b.pui==null||b.pui.properties==null||b.pui.properties.visibility==
1030
1030
  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 g=Cd,h;a:{h=b.value;var l=a,n=b.M,m;if(!(m=h==null)){if(!(m=h==""))b:{m=h;for(var r=0;r<m.length;r++){var p=m.substr(r,1);if(p>="1"&&p<="9"){m=false;break b}}m=true}m=m}if(m)h="";else{m=h.substr(0,1);r=h.substr(1,1);if(m>="1"&&m<="9"&&r=="/")h="0"+h;if(m=n!=null){if(m=
@@ -1033,26 +1033,26 @@ if((m==""||m==null)&&pui["default date pattern"])m=pui["default date pattern"];i
1033
1033
  0){r=h.substr(p,2);h=2E3;if(Number(r)>39)h=1900;r=Number(r)+h}h=m+"-"+n+"-"+r+" 00:00:00"}}g(b,h,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.Va!=null){c.eb=b.eb;c.Va=b.Va}b.calimg=c;Ad[Bd++]=b;if(b.parentNode==null)b.calimg.Et=true;else{b.parentNode.appendChild(c);pui.Hl(b);b.calimg.Et=false;if(document.getElementById("popcal")==null){T(document,"click",function(f){for(f=
1034
1034
  tb(f);f!=null;){if(f.id=="popcal"||f.getAttribute!=null&&f.getAttribute("arrow")=="1")return;f=f.parentNode}zc()});c=document.createElement("div");c.style.visibility="hidden";c.id="popcal";document.body.appendChild(c)}}}pui.Hl=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.SA=function(){for(var b=0;b<Bd;b++)pui.Hl(Ad[b])};
1035
1035
  pui.Tp=function(b){var a=b.calimg;if(a){a.parentNode.removeChild(a);b.calimg=null}};
1036
- pui.widgets.add({name:"date field",tag:"input",newId:"Date",Jp:pui.normalizeURL("/profoundui/proddata/images/cal.gif"),dt:"pui-cal pui-cal-input pui-calendar-icon",Pt:true,defaults:{"css class":"input"},propertySetters:{"field type":function(b){b.dom.value=b.evalProperty("value");b.dom.Ij=b.evalProperty("show today option");b.dom.qw=b.evalProperty("calendar position");if(b.design){b.dom.readOnly=true;b.dom.sizeMe=function(){var c=b.d;c.wh();c.Kg()}}else{if(b.dom.tagName=="INPUT"&&!b.dom.readOnly&&
1037
- !b.dom.disabled){var a;if(b.properties["date format"])a=b.properties["date format"];else{if(P=="genie")a=pui.D.config.defaultDateFormat;a||(a=pui.defaultDateFormat?pui.defaultDateFormat:"MM/DD/YY")}setTimeout(function(){if(b.dom.calimg==null)Hd(b.dom,a);else if(P=="genie"){pui.Tp(b.dom);Hd(b.dom,a)}},1);if(b.dom.getAttribute("autocomplete")==null&&(P!="genie"||!pui.D.config.mh)){b.dom.setAttribute("autocomplete","off");P=="dspf"&&b.dom.setAttribute("name",pui.Wd())}}if(pui.na&&!pui.Hf){T(b.dom,"focus",
1036
+ pui.widgets.add({name:"date field",tag:"input",newId:"Date",Jp:pui.normalizeURL("/profoundui/proddata/images/cal.gif"),dt:"pui-cal pui-cal-input pui-calendar-icon",Pt:true,defaults:{"css class":"input"},propertySetters:{"field type":function(b){b.dom.value=b.evalProperty("value");b.dom.Ij=b.evalProperty("show today option");b.dom.qw=b.evalProperty("calendar position");if(b.design){b.dom.readOnly=true;b.dom.sizeMe=function(){var c=b.d;c.wh();c.Lg()}}else{if(b.dom.tagName=="INPUT"&&!b.dom.readOnly&&
1037
+ !b.dom.disabled){var a;if(b.properties["date format"])a=b.properties["date format"];else{if(P=="genie")a=pui.D.config.defaultDateFormat;a||(a=pui.defaultDateFormat?pui.defaultDateFormat:"MM/DD/YY")}setTimeout(function(){if(b.dom.calimg==null)Hd(b.dom,a);else if(P=="genie"){pui.Tp(b.dom);Hd(b.dom,a)}},1);if(b.dom.getAttribute("autocomplete")==null&&(P!="genie"||!pui.D.config.mh)){b.dom.setAttribute("autocomplete","off");P=="dspf"&&b.dom.setAttribute("name",pui.Wd())}}if(pui.na&&!pui.If){T(b.dom,"focus",
1038
1038
  function(){Ab("ipadKeyboard").style.display=""});T(b.dom,"blur",function(){Ab("ipadKeyboard").style.display="none"})}b.dom.sizeMe=function(){pui.Hl(b.dom)}}b.dom.me=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.d.Dx.className=
1039
- 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.Ij=b.value},"show week number":function(b){b.dom.Qp=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.Wd()):b.dom.removeAttribute("name")}}},qc:function(b){b.propertyName=="field type"&&b.za&&b.za.k!=null&&b.dom&&b.dom.k==null&&pui.zg(b.dom);var a;if(b.dom&&
1040
- b.dom.k!=null){pui.yp(b);a=b.dom.k.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",rg:false,tag:"fieldset",newId:"FieldSet",newValue:"Field Set",container:true,sd: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");
1039
+ 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.Ij=b.value},"show week number":function(b){b.dom.Qp=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.Wd()):b.dom.removeAttribute("name")}}},qc:function(b){b.propertyName=="field type"&&b.za&&b.za.k!=null&&b.dom&&b.dom.k==null&&pui.Ag(b.dom);var a;if(b.dom&&
1040
+ b.dom.k!=null){pui.yp(b);a=b.dom.k.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",sg:false,tag:"fieldset",newId:"FieldSet",newValue:"Field Set",container:true,sd: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");
1041
1041
  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=""},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="'+
1042
- e+'"';b.dom.innerHTML="<legend"+c+e+">"+a+"</legend>"}else b.dom.innerHTML=""}}});pui.fileupload={};pui.fileupload.Ga=function(b){this.lb=b;this.gn=this.gn||"clear";this.yn=this.yn||"upload";this.vk=this.vk||false;this.zn=this.zn||true;this.Dd=null;this.Ai=1;this.Vb=null;this.Rv=864E5;this.Gc="";this.eh=false;this.jh=null;this.Gd=this.Yg;this.lg=1;this.yi=10;this.Zq=this.Hd="";this.zk=this.mr=false;this.Ed=[];this.Wq=[];this.qa=[];this.gr()};pui.fileupload.Ga.prototype.Yg=0;pui.fileupload.Ga.prototype.$m=1;pui.fileupload.Ga.prototype.Qq=2;
1042
+ e+'"';b.dom.innerHTML="<legend"+c+e+">"+a+"</legend>"}else b.dom.innerHTML=""}}});pui.fileupload={};pui.fileupload.Ga=function(b){this.lb=b;this.gn=this.gn||"clear";this.yn=this.yn||"upload";this.vk=this.vk||false;this.zn=this.zn||true;this.Dd=null;this.Ai=1;this.Vb=null;this.Rv=864E5;this.Gc="";this.eh=false;this.jh=null;this.Gd=this.Yg;this.mg=1;this.yi=10;this.Zq=this.Hd="";this.zk=this.mr=false;this.Ed=[];this.Wq=[];this.qa=[];this.gr()};pui.fileupload.Ga.prototype.Yg=0;pui.fileupload.Ga.prototype.$m=1;pui.fileupload.Ga.prototype.Qq=2;
1043
1043
  pui.fileupload.Ga.prototype.render=function(){this.hh.tBodies.length>0&&this.hh.removeChild(this.hh.tBodies[0]);var b=this.hh.appendChild(document.createElement("tbody"));this.Gc.length>0?Id(this,this.Gc):Jd(this);for(var a=false,c=0;c<this.qa.length;c++){var e=this.qa[c].name+(" ("+pui.Ko(this.qa[c].size,2)+")"),f=b.insertRow(-1);f.className="row";f.className+=c%2==0?" even":" odd";var g=f.insertCell(-1);g.className="name-col";g.title=e;g.appendChild(document.createTextNode(e));if(this.qa[c].vh){g=
1044
1044
  f.insertCell(-1);g.className="remove-col";g=f.insertCell(-1);g.className="status-col";e=document.createTextNode(pui.getLanguageText("runtimeText","upload finished text"));g.appendChild(e)}else{a=true;if(this.Gd==this.Yg){g=f.insertCell(-1);g.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.Ay=c;e.Nx=true;e.addEventListener("click",this,false);g.appendChild(e)}}}this.le.style.display=
1045
1045
  P=="genie"&&a?"":"none";this.md.style.display=this.vk?"":"none";this.Dd.style.display="none";if(a||this.qa.length>0){this.ld.style.display="";this.lb.classList.remove("empty")}else{this.ld.style.display="none";this.lb.classList.add("empty")}};
1046
1046
  pui.fileupload.Ga.prototype.setMode=function(b){var a=false;if(b=="enhanced"){if(this.Gd!=this.$m)a=true;this.Gd=this.$m}else if(b=="standard"){if(this.Gd!=this.Yg)a=true;this.Gd=this.Yg}else if(b=="single"){if(this.Gd!=this.Qq)a=true;this.Gd=this.Qq}if(this.rb&&this.rb.input)this.rb.input.multiple=this.Gd==this.$m;a&&this.clear()};pui.fileupload.Ga.prototype.setDisabled=function(b){this.eh=b};
1047
- pui.fileupload.Ga.prototype.getCount=function(){for(var b=0,a=0;a<this.qa.length;a++)if(P!="genie"||this.qa[a].vh!=true)b++;return b};function ud(b){if(b.getCount()>b.lg)return pui.getLanguageText("runtimeMsg","upload file limit",[b.lg])}function vd(b){if(b.Gd==b.Yg){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}}}
1048
- pui.fileupload.Ga.prototype.upload=function(){if(!this.eh){var b=typeof window.cordova!="undefined";if(!(this.Vb!=null||P=="genie"&&pui.D.Nd)){this.ld.style.display="none";this.le.style.display="none";this.Vb={};Jd(this);if(!b&&P=="genie"){pui.hk(pui.D.Nd=true);pui.Ve()}var a={};a.dir=this.Hd;a.overwrite=this.mr;a.generateNames=this.zk?"1":"0";a.flimit=this.lg;a.slimit=this.yi;a.altname=this.Zq;this.Xq(a);a.files=[];for(var c=0;c<this.qa.length;c++)this.qa[c].vh!=true&&a.files.push(this.qa[c]);var e=
1047
+ pui.fileupload.Ga.prototype.getCount=function(){for(var b=0,a=0;a<this.qa.length;a++)if(P!="genie"||this.qa[a].vh!=true)b++;return b};function ud(b){if(b.getCount()>b.mg)return pui.getLanguageText("runtimeMsg","upload file limit",[b.mg])}function vd(b){if(b.Gd==b.Yg){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}}}
1048
+ pui.fileupload.Ga.prototype.upload=function(){if(!this.eh){var b=typeof window.cordova!="undefined";if(!(this.Vb!=null||P=="genie"&&pui.D.Nd)){this.ld.style.display="none";this.le.style.display="none";this.Vb={};Jd(this);if(!b&&P=="genie"){pui.hk(pui.D.Nd=true);pui.Ve()}var a={};a.dir=this.Hd;a.overwrite=this.mr;a.generateNames=this.zk?"1":"0";a.flimit=this.mg;a.slimit=this.yi;a.altname=this.Zq;this.Xq(a);a.files=[];for(var c=0;c<this.qa.length;c++)this.qa[c].vh!=true&&a.files.push(this.qa[c]);var e=
1049
1049
  this;if(!b){this.Vb=setTimeout(function(){Kd(e,e.Ai,{success:false,error:pui.getLanguageText("runtimeMsg","upload timeout")})},this.Rv);this.le.style.display="none";a.onprogress=this.Uv.bind(this);a.onabort=this.Tv.bind(this);a.onload=this.Sv.bind(this)}if(b)this.jh=pui.upload(a,function(f,g){if(!f)e.Gc=g;e.Vb=null});else if(a.files.length>0){this.Dd.style.display="";a.id=this.lb.id;a.mode="widget";this.jh=pui.upload(a,function(f,g){if(!f){e.Gc=g;e.Vb=null;e.ld.style.display="";e.Dd.style.display=
1050
1050
  "none"}})}else this.Vb=null}}};pui.fileupload.Ga.prototype.getId=function(){return this.lb.id};pui.fileupload.Ga.prototype.clear=function(){if(this.Vb==null&&!this.eh){for(;this.qa.length>0;)this.qa.pop();Jd(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].vh!=true||!b&&this.qa[c].vh)a.push(this.qa[c].name);return a};pui.fileupload.Ga.prototype.getActualFileNames=function(){return this.Wq.slice()};
1051
1051
  pui.fileupload.Ga.prototype.getGenerateNames=function(){return this.zk};
1052
- function Kd(b,a,c){if(!(b.Vb==null||a!=b.Ai)){clearTimeout(b.Vb);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].vh=true;b.Wq=e.fileNames}else{if(e.key)e.error=pui.getLanguageText("runtimeMsg","upload "+e.key);b.Gc=e.error;if(e.key=="file limit")b.Gc=b.Gc.replace("&1",b.lg);if(e.key=="size limit")b.Gc=b.Gc.replace("&1",b.yi)}b.Vb=null;b.Ai++;if(P==
1052
+ function Kd(b,a,c){if(!(b.Vb==null||a!=b.Ai)){clearTimeout(b.Vb);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].vh=true;b.Wq=e.fileNames}else{if(e.key)e.error=pui.getLanguageText("runtimeMsg","upload "+e.key);b.Gc=e.error;if(e.key=="file limit")b.Gc=b.Gc.replace("&1",b.mg);if(e.key=="size limit")b.Gc=b.Gc.replace("&1",b.yi)}b.Vb=null;b.Ai++;if(P==
1053
1053
  "genie"){pui.hk(pui.D.Nd=false);pui.bc();if(e.success==true)if(b.xn&&b.xn.length>0)(function(g){eval("var info = arguments[0];");try{var h=eval(b.xn);typeof h=="function"&&h(g)}catch(l){b.wr(l)}})({dir:b.Hd,names:b.zk?b.getActualFileNames():b.getFileNames(false)})}b.render();b.jh=null}}pui.fileupload.Ga.prototype.wr=function(b){pui.Ea(b,"onupload Error:\n")};function Ld(b){if(b.qa.length>0&&b.qa[0]&&(b.qa[0].vh||b.Gc.length>0))for(;b.qa.length>0;)b.qa.pop()}
1054
1054
  pui.fileupload.Ga.prototype.Sv=function(b){this.md.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")}}Kd(this,this.Ai,a)};pui.fileupload.Ga.prototype.Uv=function(b){if(b.lengthComputable){this.md.value=b.loaded/b.total*100|0;this.md.style.display=""}};
1055
- pui.fileupload.Ga.prototype.Tv=function(){this.md.value=0;Kd(this,this.Ai,{success:false,error:pui.getLanguageText("runtimeMsg","upload cancelled")})};pui.fileupload.Ga.prototype.Xq=function(b){b.allowedTypes=this.Ed};function Id(b,a){b.lb.G!=null&&b.lb.G.hide();b.lb.G=new pui.eg(b.lb);b.lb.G.Yh(a);b.lb.G.show()}function Jd(b){b.Gc="";b.md.value=0;b.lb.G!=null&&typeof b.lb.G.hide=="function"&&b.lb.G.hide()}
1055
+ pui.fileupload.Ga.prototype.Tv=function(){this.md.value=0;Kd(this,this.Ai,{success:false,error:pui.getLanguageText("runtimeMsg","upload cancelled")})};pui.fileupload.Ga.prototype.Xq=function(b){b.allowedTypes=this.Ed};function Id(b,a){b.lb.G!=null&&b.lb.G.hide();b.lb.G=new pui.fg(b.lb);b.lb.G.Yh(a);b.lb.G.show()}function Jd(b){b.Gc="";b.md.value=0;b.lb.G!=null&&typeof b.lb.G.hide=="function"&&b.lb.G.hide()}
1056
1056
  function Md(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)}
1057
1057
  pui.fileupload.Ga.prototype.gr=function(){this.je=document.createElement("div");this.je.className="control-box";Nd(this,this.je,pui.getLanguageText("runtimeText","upload select text"));Od(this);Pd(this)};function Nd(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);Md(b);a.appendChild(b.rb)}
1058
1058
  function Od(b){b.ld=document.createElement("a");b.ld.href="javascript: void(0);";b.ld.appendChild(document.createTextNode(pui.getLanguageText("runtimeText","upload clear text")));b.ld.className=b.gn;b.ld.addEventListener("click",b,false);b.ld.style.display="none";b.je.appendChild(b.ld);b.le=document.createElement("a");b.le.href="javascript: void(0);";b.le.appendChild(document.createTextNode(pui.getLanguageText("runtimeText","upload upload text")));b.le.className=b.yn;b.le.addEventListener("click",
@@ -1066,17 +1066,17 @@ true;e=pui.getLanguageText("runtimeMsg","upload size limit",[b.yi])}else f.push(
1066
1066
  pui.as=function(b){var a,c=true;for(a=0;a<pui.Oc.length;a++)if(pui.Oc[a].Vb!=null){c=false;break}if(c){c={};var e=true;for(a=0;a<pui.Oc.length;a++){var f=pui.Oc[a].Gc;if(f!=""){e=false;c[pui.Oc[a].getId()]=f}}if(e){for(a=0;a<pui.Oc.length;a++){var g=pui.Oc[a];c=g.Dy;e=g.getCount();if(e>99)e=99;for(e=String(e);e.length<3;)e="0"+e;f=g.Hd;if(f.length>256)f=f.substr(0,256);else for(;f.length<256;)f+=" ";g=g.getGenerateNames()?g.getActualFileNames():g.getFileNames(false);for(var h="",l=0;l<g.length;l++){var n=
1067
1067
  g[l];if(n.length>256)n=n.substr(0,256);else for(;n.length<256;)n+=" ";h+=n}b[c]=e+f+h}pui.haltFrames();pui.submitResponse(b)}else pui.sw(c)}else setTimeout(function(){pui.as(b)},250)};
1068
1068
  pui.fileupload.Me={"field type":function(b){if(b.dom.fileUpload==null){b.dom.fileUpload=new pui.fileupload.Ga(b.dom);P=="dspf"&&pui.Oc.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.Ed=
1069
- 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.lg=a}},"size limit":function(b){if(!b.design){var a=parseInt(b.value,10);if(a!=null&&!isNaN(a))b.dom.fileUpload.yi=a}},"target directory":function(b){if(!b.design){var a=b.dom.fileUpload;b=Kb(b.value);if(typeof b=="string"){a.Hd=b;if(a.Hd.length>1&&a.Hd.charAt(a.Hd.length-1)=="/")a.Hd=a.Hd.substr(0,
1069
+ 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.mg=a}},"size limit":function(b){if(!b.design){var a=parseInt(b.value,10);if(a!=null&&!isNaN(a))b.dom.fileUpload.yi=a}},"target directory":function(b){if(!b.design){var a=b.dom.fileUpload;b=Kb(b.value);if(typeof b=="string"){a.Hd=b;if(a.Hd.length>1&&a.Hd.charAt(a.Hd.length-1)=="/")a.Hd=a.Hd.substr(0,
1070
1070
  a.Hd.length-1)}}},"rename to":function(b){if(!b.design){var a=Kb(b.value);if(typeof a=="string")b.dom.fileUpload.Zq=a}},"overwrite files":function(b){if(!b.design){var a=b.value=="true"||b.value==true;if(typeof a=="boolean")b.dom.fileUpload.mr=a}},"generate unique names":function(b){if(!b.design){var a=b.value=="true"||b.value==true;if(typeof a=="boolean")b.dom.fileUpload.zk=a}},onupload:function(b){if(!b.design)b.dom.fileUpload.xn=b.newValue},disabled:function(b){b.design||b.dom.fileUpload.setDisabled(b.value==
1071
- "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.Me,qc:pui.fileupload.qc});pui.fileupload.Xg=function(b){this.gn="clear-files";this.yn="upload-files";this.vk=true;this.zn=false;this.vn=pui["dnd upload show select"]===true;this.br=this.ar=false;this.jg=null;this.ig=0;pui.fileupload.Ga.call(this,b)};pui.fileupload.Xg.prototype=Object.create(pui.fileupload.Ga.prototype);
1072
- pui.fileupload.Xg.prototype.gr=function(){this.cf=document.createElement("div");this.cf.className="drop-box";Rd(this);this.lb.appendChild(this.cf);this.lb.addEventListener("dragover",this);this.lb.addEventListener("dragleave",this);this.lb.addEventListener("drop",this);this.je=document.createElement("div");this.je.className="control-box";Od(this);Pd(this)};
1073
- function Rd(b){Nd(b,b.cf,pui.getLanguageText("runtimeText","upload select text"));b.rb.classList.add("dnd-upl-sel");b.rb.style.display=b.vn?"block":"none";var a=pui.getLanguageText("runtimeText","upload "+(b.vn?"or ":"")+"drophere text");b.cf.appendChild(document.createTextNode(a))}
1074
- pui.fileupload.Xg.prototype.handleEvent=function(b){switch(b.type){case "dragover":b.preventDefault();b.stopPropagation();if(this.eh||this.Vb!=null)return false;b.dataTransfer.dropEffect="copy";this.cf.classList.add("dragover");return false;case "dragleave":b.preventDefault();b.stopPropagation();this.cf.classList.remove("dragover");return false;case "drop":b.stopPropagation();b.preventDefault();this.cf.classList.remove("dragover");if(this.eh||this.Vb!==null||P==="genie"&&pui.D.Nd||Db())return;if(b.dataTransfer.files===
1075
- null||b.dataTransfer.files===undefined){console.log("Browser doesn't support dataTransfer.files API");return}Ld(this);Jd(this);if(this.qa.length+b.dataTransfer.files.length>this.lg){Id(this,pui.getLanguageText("runtimeMsg","upload file limit",[this.lg]));return}if(b.dataTransfer.files.length>0){this.jg=b.dataTransfer.files;this.ig=0;Sd(this)}else Id(this,pui.getLanguageText("runtimeMsg","upload invalid type"));return;case "load":this.jg[this.ig].qt=true;Td(this);return;case "error":this.jg[this.ig].qt=
1076
- false;Td(this);return}return pui.fileupload.Ga.prototype.handleEvent.call(this,b)};function Sd(b){var a=new FileReader;a.addEventListener("load",b);a.addEventListener("error",b);a.readAsArrayBuffer(b.jg[b.ig])}function Td(b){if(b.ig==b.jg.length-1){Qd(b,b.jg);b.jg=null;b.ig=0;if(b.getCount()>0)if(b.br&&P==="genie")b.upload();else if(b.ar&&P==="dspf"){pui.tb="Enter";pui.click()}}else{b.ig++;Sd(b)}}pui.fileupload.Xg.prototype.Xq=function(b){b.allowedTypes=[]};
1071
+ "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.Me,qc:pui.fileupload.qc});pui.fileupload.Xg=function(b){this.gn="clear-files";this.yn="upload-files";this.vk=true;this.zn=false;this.vn=pui["dnd upload show select"]===true;this.br=this.ar=false;this.kg=null;this.jg=0;pui.fileupload.Ga.call(this,b)};pui.fileupload.Xg.prototype=Object.create(pui.fileupload.Ga.prototype);
1072
+ pui.fileupload.Xg.prototype.gr=function(){this.df=document.createElement("div");this.df.className="drop-box";Rd(this);this.lb.appendChild(this.df);this.lb.addEventListener("dragover",this);this.lb.addEventListener("dragleave",this);this.lb.addEventListener("drop",this);this.je=document.createElement("div");this.je.className="control-box";Od(this);Pd(this)};
1073
+ function Rd(b){Nd(b,b.df,pui.getLanguageText("runtimeText","upload select text"));b.rb.classList.add("dnd-upl-sel");b.rb.style.display=b.vn?"block":"none";var a=pui.getLanguageText("runtimeText","upload "+(b.vn?"or ":"")+"drophere text");b.df.appendChild(document.createTextNode(a))}
1074
+ pui.fileupload.Xg.prototype.handleEvent=function(b){switch(b.type){case "dragover":b.preventDefault();b.stopPropagation();if(this.eh||this.Vb!=null)return false;b.dataTransfer.dropEffect="copy";this.df.classList.add("dragover");return false;case "dragleave":b.preventDefault();b.stopPropagation();this.df.classList.remove("dragover");return false;case "drop":b.stopPropagation();b.preventDefault();this.df.classList.remove("dragover");if(this.eh||this.Vb!==null||P==="genie"&&pui.D.Nd||Db())return;if(b.dataTransfer.files===
1075
+ null||b.dataTransfer.files===undefined){console.log("Browser doesn't support dataTransfer.files API");return}Ld(this);Jd(this);if(this.qa.length+b.dataTransfer.files.length>this.mg){Id(this,pui.getLanguageText("runtimeMsg","upload file limit",[this.mg]));return}if(b.dataTransfer.files.length>0){this.kg=b.dataTransfer.files;this.jg=0;Sd(this)}else Id(this,pui.getLanguageText("runtimeMsg","upload invalid type"));return;case "load":this.kg[this.jg].qt=true;Td(this);return;case "error":this.kg[this.jg].qt=
1076
+ false;Td(this);return}return pui.fileupload.Ga.prototype.handleEvent.call(this,b)};function Sd(b){var a=new FileReader;a.addEventListener("load",b);a.addEventListener("error",b);a.readAsArrayBuffer(b.kg[b.jg])}function Td(b){if(b.jg==b.kg.length-1){Qd(b,b.kg);b.kg=null;b.jg=0;if(b.getCount()>0)if(b.br&&P==="genie")b.upload();else if(b.ar&&P==="dspf"){pui.tb="Enter";pui.click()}}else{b.jg++;Sd(b)}}pui.fileupload.Xg.prototype.Xq=function(b){b.allowedTypes=[]};
1077
1077
  pui.fileupload.Xg.prototype.wr=function(b){this.Gc="onupload Error:\n"+(b.message!=null?b.message:b)};
1078
1078
  pui.widgets.add({name:"file upload dnd",newId:"FileUploadDND",menuName:"File Upload DND",defaults:{width:"300px",height:"252px","css class":"pui-file-upload","size limit":"10","number of files":"1","overwrite files":"false"},propertySetters:{"field type":function(b){if(b.dom.fileUpload===undefined){b.dom.fileUpload=new pui.fileupload.Xg(b.dom);P==="dspf"&&pui.Oc.push(b.dom.fileUpload)}for(var a=1,c="allowed type",e=[];typeof b.properties[c]==="string";){e.push(b.evalProperty(c));c="allowed type "+
1079
- ++a}a=b.dom.fileUpload;if(Array.isArray(e))a.Ed=e;b.dom.fileUpload.render();window.addEventListener("dragover",pui.fileupload.Kl,false);window.addEventListener("drop",pui.fileupload.Kl,false)},"auto submit":function(b){if(!b.design){var a=b.value;b.dom.fileUpload.ar=a===true||a==="true"}},"auto upload":function(b){if(!b.design){var a=b.value;b.dom.fileUpload.br=a===true||a==="true"}},"show select":function(b){var a=b.dom.fileUpload;a.vn=b.value=="true"||b.value==true;a.cf.innerHTML="";Rd(a)},"number of files":pui.fileupload.Me["number of files"],
1079
+ ++a}a=b.dom.fileUpload;if(Array.isArray(e))a.Ed=e;b.dom.fileUpload.render();window.addEventListener("dragover",pui.fileupload.Kl,false);window.addEventListener("drop",pui.fileupload.Kl,false)},"auto submit":function(b){if(!b.design){var a=b.value;b.dom.fileUpload.ar=a===true||a==="true"}},"auto upload":function(b){if(!b.design){var a=b.value;b.dom.fileUpload.br=a===true||a==="true"}},"show select":function(b){var a=b.dom.fileUpload;a.vn=b.value=="true"||b.value==true;a.df.innerHTML="";Rd(a)},"number of files":pui.fileupload.Me["number of files"],
1080
1080
  "size limit":pui.fileupload.Me["size limit"],"target directory":pui.fileupload.Me["target directory"],"rename to":pui.fileupload.Me["rename to"],"overwrite files":pui.fileupload.Me["overwrite files"],"generate unique names":pui.fileupload.Me["generate unique names"],onupload:pui.fileupload.Me.onupload,disabled:pui.fileupload.Me.disabled},qc:pui.fileupload.qc});
1081
1081
  pui.fileupload.Kl=function(b){var a,c,e=b.dataTransfer.items;if(e!=null){a=0;for(c=e.length;a<c;a++)if(e[a].kind==="file"){b.preventDefault();return}}e=b.dataTransfer.types;if(e!=null){a=0;for(c=e.length;a<c;a++)if(e[a]==="Files"){b.preventDefault();return}}};window.addEventListener("dragover",pui.fileupload.Kl,false);window.addEventListener("drop",pui.fileupload.Kl,false);pui.pv=function(){function b(){if(h.getContext!=null){g=h.getContext("2d");if(g!=null){if(f.color!=null)g.strokeStyle=f.color;if(f.backgroundColor!=null){h.style.backgroundColor=f.backgroundColor;g.fillStyle=f.backgroundColor;g.fillRect(0,0,f.container.offsetWidth,f.container.offsetHeight)}g.lineJoin="round";g.lineWidth=5}}}function a(p,s,t,w){if(g!=null){if(t==null&&w==null)g.lineTo(p,s);else{g.moveTo(p,s);g.lineTo(t,w)}g.stroke()}}function c(){f.container.modified=true;pui.Ze(f.container)}function e(p){function s(B){if(!(f.readOnly||
1082
1082
  f.disabled)){if(B!=null&&B.touches!=null)if(B.touches.length!=1)return;var G=(Xc(B)-z[0])*w;B=(Yc(B)-z[1])*w;a(G,B);var D=n[n.length-1];D.push(G);D.push(B);l.x=G;l.y=B}}function t(){g.closePath();if(y){Zb(h,"touchmove",s);Zb(h,"touchend",t);Zb(document,"touchend",t)}else{Zb(h,"mousemove",s);Zb(h,"mouseup",t);Zb(document,"mouseup",t)}pui.Ze(f.container)}if(!(f.readOnly||f.disabled))if(g!=null){var w=1;if(P=="dspf"&&Hb&&Hb.designer&&Hb.designer.container)w=Hb.Sm;var z=pui.Zc(f.container,true),y=false;
@@ -1092,7 +1092,7 @@ Kb(f);if(f.substr(0,9)=="material:"){f=Kb(f.substr(9));n='<span class="pui-mater
1092
1092
  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=Kb(f);if(pui.customIconList&&pui.customIconList)if(Array.isArray(pui.customIconList.icons)&&pui.customIconList.icons.length)e=pui.customIconList.icons;f=f.split(":");var m=f.shift().split("-"),r=m.pop();m=m.join("-");var p=
1093
1093
  f.pop();e.every(function(s){var t=s.type;s=s.classList[r];if(m===t){if(t==="fontAwesome"){n='<span class="pui-fa-icons-center '+s+p+" "+(l?l:"")+'"></span>';if(c)c='<span class="pui-fa-icons-text '+(l?l:"")+'">'+c+"</span>"}else{n='<span class="pui-icons-center '+s+p+" "+(l?l:"")+'"></span>';if(c)c='<span class="'+(l?l:"")+'">'+c+"</span>"}return false}return true})}}else n=b;a.setAttribute("type","button");a.innerHTML=g==="right"?c+n:n+c}
1094
1094
  pui.widgets.add({name:"graphic button",tag:"button",inputType:"button",newValue:"Accept",sd: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){Ud(b)},value:function(b){b.properties.value=b.value;Ud(b)},"image source":function(b){b.properties["image source"]=b.value;Ud(b)},icon:function(b){b.properties.icon=b.value;Ud(b)},"icon position":function(b){b.properties["icon position"]=
1095
- b.value;Ud(b)},"css class":function(b){b.properties["css class"]=b.value;Ud(b)},cursor:function(b){b.properties.cursor=b.value;Ud(b)}}});pui.oi=function(){function b(s){if(P!="genie"||pui.ea){if(p.Ip&&(!s||p.Aj))return;if(p.grid.designMode)return;if(p.grid.Ib())return}p.grid.Hp()}function a(s){if(P!="genie"||pui.ea){if(p.Gp&&(!s||p.zj))return;if(p.grid.designMode)return;if(p.grid.Xb())return}p.grid.Fp()}this.y=this.x=100;this.width=500;this.zm=this.bi=this.$h=this.Ad=this.fv=this.ii=this.ug=false;this.Nt=this.Ot=null;this.Gp=this.Ip=this.zj=this.Aj=false;this.Tl=1;this.oa=this.ja=this.pa=this.xa=this.grid=this.container=null;var c,
1095
+ b.value;Ud(b)},"css class":function(b){b.properties["css class"]=b.value;Ud(b)},cursor:function(b){b.properties.cursor=b.value;Ud(b)}}});pui.oi=function(){function b(s){if(P!="genie"||pui.ea){if(p.Ip&&(!s||p.Aj))return;if(p.grid.designMode)return;if(p.grid.Ib())return}p.grid.Hp()}function a(s){if(P!="genie"||pui.ea){if(p.Gp&&(!s||p.zj))return;if(p.grid.designMode)return;if(p.grid.Xb())return}p.grid.Fp()}this.y=this.x=100;this.width=500;this.zm=this.bi=this.$h=this.Ad=this.fv=this.ii=this.vg=false;this.Nt=this.Ot=null;this.Gp=this.Ip=this.zj=this.Aj=false;this.Tl=1;this.oa=this.ja=this.pa=this.xa=this.grid=this.container=null;var c,
1096
1096
  e,f,g,h;this.Wb=null;var l,n,m,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=ua(false);if(typeof c.style.MozUserSelect!="undefined")c.style.MozUserSelect="none";p.container.appendChild(c);p.Wb=document.createElement("div");p.Wb.className="tempStatus";p.Wb.innerHTML="<span></span><span></span>";p.Wb.addEventListener("click",p);
1097
1097
  c.appendChild(p.Wb);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.P(e,"export-image-icon");pui.P(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=
1098
1098
  "24px";f.style.textDecoration="underline";f.style.cursor="pointer";f.onclick=function(){p.grid.designMode||p.grid.exportCSV()};f.className="paging-link csv-paging-link";c.appendChild(f);g=document.createElement("div");g.style.cursor="pointer";g.style.position="absolute";g.style.top="4px";g.style.left="4px";g.style.height="14px";g.style.padding="1px";g.style.width="14px";g.onclick=function(){p.grid.designMode||p.grid.exportCSV(null,true)};pui.P(g,"export-image-icon");pui.P(g,"xlsx-export-image-icon");
@@ -1104,46 +1104,46 @@ p.pa.Cb=p;p.pa.Oh=true;p.pa.onmouseover=function(){p.pa.disabled||pui.P(p.pa,"pa
1104
1104
  "inline-block";p.ja.style.height="16px";p.ja.style.width="16px";p.ja.zd="PageDown";p.ja.R="0";p.ja.Cb=p;p.ja.nextPage=true;p.ja.onmouseover=function(){p.ja.disabled||pui.P(p.oa,"paging-link-hover")};p.ja.onmouseout=function(){p.ja.disabled||pui.ca(p.oa,"paging-link-hover")};p.ja.onclick=function(){a(true)};c.appendChild(p.ja);if(!p.zj||!p.Aj)pui.Qn=true;if(!p.grid.designMode&&pui.runtimeContainer!=null&&c!=null&&c.parentNode!=null){var s=function(t){if(c==null||c.parentNode==null)Zb(pui.runtimeContainer,
1105
1105
  "keydown",s);else{if(!t)t=window.event;t=t.keyCode;t==33&&b();t==34&&a()}};T(pui.runtimeContainer,"keydown",s)}T(c,"mousedown",function(t){function w(G){var D=Yc(G)-E,C=Xc(G)-y;G=p.grid.b.d;if(G!=null){var K=G.designer.selection;if(K.Nu){C+=p.grid.b.hb;D+=p.grid.b.Fa;C=K.ck(C,pui.Il);D=K.ck(D,pui.Jl,P=="genie"?3:0);C-=p.grid.b.hb;D-=p.grid.b.Fa}}p.grid.Lc(function(M){M.style.top=M.Fa+D+"px";M.style.left=M.hb+C+"px"});if(G!=null)G.moved=true;p.grid.setScrollBar();G=pui.designer.Hj;if(G.container==
1106
1106
  null){G.container=document.body;G.init()}G.set(p.grid.b.d);G.show()}function z(){if(p.grid.b.d!=null)if(p.grid.b.d.moved){p.grid.b.d.designer.Cn();P=="dspf"&&pui.ide.refreshRibbon()}else p.grid.b.d.designer.aa.Ny();p.grid.hc();var G=pui.designer.Hj;G!=null&&G.container!=null&&G.hide();Zb(document,"mousemove",w);Zb(document,"mouseup",z)}if(p.grid.designMode){p.grid.b.d.designer.Yo();p.grid.Te();if(pui.He(t)){if(p.grid.b.d){p.grid.b.d.designer.sx.hide();p.grid.b.d.designer.rz(t)}designUtils.Le(t);t.stopPropagation&&
1107
- t.stopPropagation();return false}p.grid.b.d!=null&&p.grid.b.d.designer.bq!=null&&p.grid.b.d.designer.bq.hide();if(p.Nf)designUtils.Le(t);else{var y=Xc(t),E=Yc(t);p.grid.Lc(function(G){G.hb=parseInt(G.style.left);G.Fa=parseInt(G.style.top)});T(document,"mousemove",w);T(document,"mouseup",z);ub(t);if(p.grid.designMode&&p.grid.b.d!=null){p.grid.b.d.moved=false;t=p.grid.b.d.designer;var J=t.selection,B="Move Selection";if(J.Yd.length==1)B="Move Grid";t.aa.start(B);t.aa.Bp=true;J.En(["left","top","parent tab panel",
1108
- "parent tab panel"]);t.aa.Bp=false}}}})};this.position=function(){if((p.ug||p.ii||p.Ad||p.$h||p.bi||p.zm)&&p.grid.b.style.display!="none"&&p.grid.b.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.b.style.zIndex}else c.style.display="none"};this.hide=function(){c.style.display="none"};this.destroy=function(){p.Wb.removeEventListener("click",p);c.innerHTML="";c.parentNode!=null&&c.parentNode.removeChild(c);r=
1109
- m=n=l=h=g=f=e=c=null;p.Kc();p=null};this.qm=function(s){if(c!=null){if(s==null)s="";s=Kb(s);if(s!=""){s=s.split(" ").shift();s+="-paging-bar"}s+=" paging-bar";s=Kb(s);if(c.className!=s)c.className=s}};this.z=function(){p.Wb.style.display="none";p.qm(p.grid.b.className);if((p.ug||p.ii||p.Ad||p.$h||p.bi||p.zm)&&p.grid.b.style.display!="none"&&p.grid.b.style.visibility!="hidden"){p.position();var s=p.ug?"":"none";e.style.display=s;f.style.display=s;s=p.ii?"":"none";g.style.display=s;h.style.display=
1110
- s;if(p.ii&&p.ug){f.innerHTML=pui.getLanguageText("runtimeText","export to x",["Excel CSV"]);h.innerHTML=pui.getLanguageText("runtimeText","export to x",["Excel XLSX"]);g.style.left="160px";h.style.left="180px";var t=s=h.parentNode.offsetWidth,w=s;if(p.Ad){s=p.xa.offsetLeft;w=p.ja.offsetLeft+p.ja.offsetWidth}else if(p.$h){s=m.offsetLeft;w=m.offsetLeft+m.offsetWidth}else if(p.bi){s=r.offsetLeft;w=r.offsetLeft+r.offsetWidth}if(h.offsetLeft+h.offsetWidth>s||w>t){f.innerHTML=pui.getLanguageText("runtimeText",
1107
+ t.stopPropagation();return false}p.grid.b.d!=null&&p.grid.b.d.designer.bq!=null&&p.grid.b.d.designer.bq.hide();if(p.Of)designUtils.Le(t);else{var y=Xc(t),E=Yc(t);p.grid.Lc(function(G){G.hb=parseInt(G.style.left);G.Fa=parseInt(G.style.top)});T(document,"mousemove",w);T(document,"mouseup",z);ub(t);if(p.grid.designMode&&p.grid.b.d!=null){p.grid.b.d.moved=false;t=p.grid.b.d.designer;var J=t.selection,B="Move Selection";if(J.Yd.length==1)B="Move Grid";t.aa.start(B);t.aa.Bp=true;J.En(["left","top","parent tab panel",
1108
+ "parent tab panel"]);t.aa.Bp=false}}}})};this.position=function(){if((p.vg||p.ii||p.Ad||p.$h||p.bi||p.zm)&&p.grid.b.style.display!="none"&&p.grid.b.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.b.style.zIndex}else c.style.display="none"};this.hide=function(){c.style.display="none"};this.destroy=function(){p.Wb.removeEventListener("click",p);c.innerHTML="";c.parentNode!=null&&c.parentNode.removeChild(c);r=
1109
+ m=n=l=h=g=f=e=c=null;p.Kc();p=null};this.qm=function(s){if(c!=null){if(s==null)s="";s=Kb(s);if(s!=""){s=s.split(" ").shift();s+="-paging-bar"}s+=" paging-bar";s=Kb(s);if(c.className!=s)c.className=s}};this.z=function(){p.Wb.style.display="none";p.qm(p.grid.b.className);if((p.vg||p.ii||p.Ad||p.$h||p.bi||p.zm)&&p.grid.b.style.display!="none"&&p.grid.b.style.visibility!="hidden"){p.position();var s=p.vg?"":"none";e.style.display=s;f.style.display=s;s=p.ii?"":"none";g.style.display=s;h.style.display=
1110
+ s;if(p.ii&&p.vg){f.innerHTML=pui.getLanguageText("runtimeText","export to x",["Excel CSV"]);h.innerHTML=pui.getLanguageText("runtimeText","export to x",["Excel XLSX"]);g.style.left="160px";h.style.left="180px";var t=s=h.parentNode.offsetWidth,w=s;if(p.Ad){s=p.xa.offsetLeft;w=p.ja.offsetLeft+p.ja.offsetWidth}else if(p.$h){s=m.offsetLeft;w=m.offsetLeft+m.offsetWidth}else if(p.bi){s=r.offsetLeft;w=r.offsetLeft+r.offsetWidth}if(h.offsetLeft+h.offsetWidth>s||w>t){f.innerHTML=pui.getLanguageText("runtimeText",
1111
1111
  "export to x",["CSV"]);h.innerHTML=pui.getLanguageText("runtimeText","export to x",["XLSX"]);g.style.left="122px";h.style.left="144px";if(p.Ad)w=p.ja.offsetLeft+p.ja.offsetWidth;else if(p.Ad)w=m.offsetLeft+m.offsetWidth;if(h.offsetLeft+h.offsetWidth>s||w>t){h.innerHTML="XLSX";g.style.left="124px";h.style.left="144px";if(p.Ad)w=p.ja.offsetLeft+p.ja.offsetWidth;else if(p.Ad)w=m.offsetLeft+m.offsetWidth;if(h.offsetLeft+h.offsetWidth>s||w>t){f.innerHTML="CSV";g.style.left="60px";h.style.left="80px"}}}}else{f.innerHTML=
1112
1112
  pui.getLanguageText("runtimeText","excel export text");h.innerHTML=pui.getLanguageText("runtimeText","excel export text");g.style.left="4px";h.style.left="24px"}if(p.Ad){p.xa.style.display="inline-block";p.pa.style.display="";p.ja.style.display="inline-block";p.oa.style.display="";p.xa.disabled=false;p.pa.disabled=false;p.ja.disabled=false;p.oa.disabled=false;if(P!="genie"){if(!p.grid.designMode&&p.grid.Ib()&&(p.Ot=="false"||!p.Aj)){p.xa.disabled=true;p.pa.disabled=true;pui.P(p.pa,"paging-link-disabled");
1113
1113
  pui.P(p.xa,"prev-image-icon-disabled")}else{pui.ca(p.pa,"paging-link-disabled");pui.ca(p.xa,"prev-image-icon-disabled")}if(!p.grid.designMode&&p.grid.Xb()&&(p.grid.Pu&&pui["page down on subfile end"]!=true||p.Nt=="false"||!p.zj)){p.ja.disabled=true;p.oa.disabled=true;pui.P(p.oa,"paging-link-disabled");pui.P(p.ja,"next-image-icon-disabled")}else{pui.ca(p.oa,"paging-link-disabled");pui.ca(p.ja,"next-image-icon-disabled")}}}else{p.xa.style.display="none";p.pa.style.display="none";p.ja.style.display=
1114
- "none";p.oa.style.display="none"}if(p.$h){m.style.display="";m.innerHTML=pui.getLanguageText("runtimeText","page")+" "+p.Tl}else m.style.display="none";if(p.bi){s=p.grid;t=s.getRecordCount();if(s.designMode){s.Bf=1;s.hj=s.Ro();t=s.hj}r.style.display="";r.innerHTML="Showing "+s.Bf+"-"+s.hj+" of "+t}else r.style.display="none"}else c.style.display="none"};this.oh=function(s){p.container=s;c.parentNode.removeChild(c);p.container.appendChild(c)};this.getHeight=function(){return c.offsetHeight};this.qq=
1114
+ "none";p.oa.style.display="none"}if(p.$h){m.style.display="";m.innerHTML=pui.getLanguageText("runtimeText","page")+" "+p.Tl}else m.style.display="none";if(p.bi){s=p.grid;t=s.getRecordCount();if(s.designMode){s.Cf=1;s.hj=s.Ro();t=s.hj}r.style.display="";r.innerHTML="Showing "+s.Cf+"-"+s.hj+" of "+t}else r.style.display="none"}else c.style.display="none"};this.oh=function(s){p.container=s;c.parentNode.removeChild(c);p.container.appendChild(c)};this.getHeight=function(){return c.offsetHeight};this.qq=
1115
1115
  function(s,t){e.style.display="none";f.style.display="none";g.style.display="none";h.style.display="none";p.xa.style.display="none";p.pa.style.display="none";p.ja.style.display="none";p.oa.style.display="none";m.style.display="none";p.tr=s;p.sr=t;p.Wb.style.cursor="pointer";p.Wb.style.display="block"};this.iw=function(s){s(c)}};pui.oi.prototype=Object.create(pui.tc.prototype);function Vd(b,a,c){b=b.Wb.childNodes[0];b.className=c;b.innerHTML=a}function Wd(b,a){b.Wb.childNodes[1].innerHTML=a}
1116
1116
  pui.oi.prototype.handleEvent=function(b){switch(b.type){case "click":if(b.target==this.Wb||b.target.parentNode==this.Wb)Xd(this);break}};function Xd(b){b.Wb.style.cursor="";b.Wb.style.opacity="0";Vd(b,"","");b.tr!=null&&Wd(b,b.tr);typeof b.sr=="function"&&b.sr();setTimeout(function(){this.z();this.Wb.style.opacity=""}.bind(b),2500)}pui.oi.prototype.tm=function(b){Wd(this,b)};pui.oi.prototype.Es=function(){this.z()};pui.qv=function(){function b(D,C){if(l){l=false;m.Ol(C)}else setTimeout(function(){D==g&&m.Ol(C)},m.interval)}function a(){var D=22;if(pui.is_touch&&!pui.is_mouse_capable&&!m.designMode||pui.na)D=0;w.style.left=m.x-w.offsetWidth+D+"px";w.style.top=m.y-w.offsetHeight-2+"px"}function c(D){setTimeout(function(){if(D==h)w.style.display="none"},800)}function e(D){function C(){if(t.C==null)t.style.opacity=E;else if(!(t.C.startTime>N)){var ha=false,ba=(new Date).getTime(),ea=U+(da-ba)*aa;U=ea;da=ba;aa*=
1117
- 0.98;if(aa>0){aa-=0.001;if(aa<=0){ha=true;aa=0}}else{aa+=0.001;if(aa>=0){ha=true;aa=0}}ba=parseInt(s.style.top);var pa=ba+parseInt(s.style.height)-parseInt(t.style.height);if(pa<ba)pa=ba;if(ea<ba){ea=ba;ha=true}if(ea>pa){ea=pa;ha=true}t.Jg=ea;t.style.top=parseInt(ea)+"px";ea=(ea-ba)/(pa-ba);if(isNaN(ea))ea=0;ea=(m.Sa-m.gc)*ea;ea=Math.round(ea)+1;m.doScroll(ea);if(ha){t.C=null;pui.animate({element:t,property:"opacity",from:1,to:E,duration:"1s"})}else setTimeout(C,1E3/60)}}if(D==null)t.style.opacity=
1118
- E;else{var K=D.duration,M=D.Xk,U=t.Jg,da=D.Hh;if(M==null||K==null)t.style.opacity=E;else if(!(K>500)){var aa=M/K,N=(new Date).getTime();C()}}}function f(D,C){if(m.ab){if(C)D=-D;if(m.ab&&D<0&&m.ab.grid.Xb()||m.ab&&D>0&&m.ab.grid.Ib())return true}return false}this.y=this.x=0;this.height=300;this.zIndex=100;this.designMode=false;this.container=null;this.gc=10;this.Sa=100;this.ka=20;this.borderWidth=1;this.Ol=this.onchange=null;this.ci=true;this.di=false;this.interval=250;this.type="sliding";this.Vf=
1117
+ 0.98;if(aa>0){aa-=0.001;if(aa<=0){ha=true;aa=0}}else{aa+=0.001;if(aa>=0){ha=true;aa=0}}ba=parseInt(s.style.top);var pa=ba+parseInt(s.style.height)-parseInt(t.style.height);if(pa<ba)pa=ba;if(ea<ba){ea=ba;ha=true}if(ea>pa){ea=pa;ha=true}t.Kg=ea;t.style.top=parseInt(ea)+"px";ea=(ea-ba)/(pa-ba);if(isNaN(ea))ea=0;ea=(m.Sa-m.gc)*ea;ea=Math.round(ea)+1;m.doScroll(ea);if(ha){t.C=null;pui.animate({element:t,property:"opacity",from:1,to:E,duration:"1s"})}else setTimeout(C,1E3/60)}}if(D==null)t.style.opacity=
1118
+ E;else{var K=D.duration,M=D.Xk,U=t.Kg,da=D.Hh;if(M==null||K==null)t.style.opacity=E;else if(!(K>500)){var aa=M/K,N=(new Date).getTime();C()}}}function f(D,C){if(m.ab){if(C)D=-D;if(m.ab&&D<0&&m.ab.grid.Xb()||m.ab&&D>0&&m.ab.grid.Ib())return true}return false}this.y=this.x=0;this.height=300;this.zIndex=100;this.designMode=false;this.container=null;this.gc=10;this.Sa=100;this.ka=20;this.borderWidth=1;this.Ol=this.onchange=null;this.ci=true;this.di=false;this.interval=250;this.type="sliding";this.Wf=
1119
1119
  false;this.ab=null;var g=0,h=0,l=true,n=false,m=this,r,p,s,t,w,z=25,y=-1,E=0,J,B,G;this.init=function(D){m.ab=D;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(m.ab.grid&&m.ab.grid.bd)r.className+=" "+m.ab.grid.bd+"-pui-scrollbar";p=document.createElement("div");p.style.position="absolute";p.style.left="0px";p.style.top="0px";p.innerHTML="&nbsp;";p.fontSize="0px";
1120
1120
  w=document.createElement("div");w.style.position="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&&!m.designMode||pui.na){s=document.createElement("div");s.style.position="absolute";s.style.width="3px";s.style.backgroundColor=
1121
1121
  "transparent";t=document.createElement("div");t.style.position="absolute";t.style.width="3px";t.style.height="25px";t.style.top="0px";t.style.backgroundColor="#999999";if(!pui.is_android)t.style.borderRadius="2px";r.style.visibility="hidden";r.style.display="none";t.style.opacity=E;if(pui.na){var C=function(da){function aa(ba){t.style.opacity=1;var ea=Yc(ba);ba=(new Date).getTime();t.C.duration=ba-t.C.Hh;t.C.Hh=ba;var pa=m.Sa/m.gc/6;if(pa<1)pa=1;if(pa>40)pa=40;t.C.Xk=(ea-t.C.ij)/pa;t.C.ij=ea;ba=t.C.Fa;
1122
- ea=ea-t.C.startY;if(t.C.reverse)ea=-ea;ea/=pa;ba+=ea;ea=parseInt(s.style.top);pa=ea+parseInt(s.style.height)-parseInt(t.style.height);if(pa<ea)pa=ea;if(ba<ea)ba=ea;if(ba>pa)ba=pa;t.Jg=ba;t.style.top=parseInt(ba)+"px";ba=(ba-ea)/(pa-ea);if(isNaN(ba))ba=0;ba=(m.Sa-m.gc)*ba;ba=Math.round(ba)+1;m.doScroll(ba)}function N(){Zb(document,"mousemove",aa);Zb(document,"mouseup",N);e(t.C)}var ha=tb(da);if(ha!=null&&ha.row===0||ha!=null&&ha.parentNode!=null&&ha.parentNode.row===0||ha!=null&&ha.parentNode!=null&&
1123
- ha.parentNode.parentNode!=null&&ha.parentNode.parentNode.row===0)if(D.grid.g)return;if(!(ha!=null&&(ha.tagName=="INPUT"||ha.tagName=="SELECT"||ha.tagName=="TEXTAREA"))){t.C={};t.C.reverse=ha!=t;t.C.startY=Yc(da);t.C.ij=t.C.startY;t.C.startTime=(new Date).getTime();t.C.Hh=(new Date).getTime();t.C.Xk=null;t.C.duration=null;t.C.Fa=t.Jg!=null?t.Jg:parseInt(t.style.top);T(document,"mousemove",aa);T(document,"mouseup",N);ub(da)}};T(t,"mousedown",C);T(D,"mousedown",C)}if(!pui.na){var K,M,U;C=function(da){if(da.touches.length==
1124
- 1){var aa=da.target;if(aa!=null&&aa.row===0||aa!=null&&aa.parentNode!=null&&aa.parentNode.row===0||aa!=null&&aa.parentNode!=null&&aa.parentNode.parentNode!=null&&aa.parentNode.parentNode.row===0)if(D.grid.g)return;if(!(aa!=null&&(aa.tagName=="INPUT"||aa.tagName=="SELECT"||aa.tagName=="TEXTAREA"))){da=da.touches[0];t.C={};t.C.reverse=aa!=t;m.Vu=aa;t.C.startY=da.pageY;t.C.ij=t.C.startY;t.C.startTime=(new Date).getTime();t.C.Hh=(new Date).getTime();t.C.Xk=null;t.C.duration=null;t.C.Fa=t.Jg!=null?t.Jg:
1122
+ ea=ea-t.C.startY;if(t.C.reverse)ea=-ea;ea/=pa;ba+=ea;ea=parseInt(s.style.top);pa=ea+parseInt(s.style.height)-parseInt(t.style.height);if(pa<ea)pa=ea;if(ba<ea)ba=ea;if(ba>pa)ba=pa;t.Kg=ba;t.style.top=parseInt(ba)+"px";ba=(ba-ea)/(pa-ea);if(isNaN(ba))ba=0;ba=(m.Sa-m.gc)*ba;ba=Math.round(ba)+1;m.doScroll(ba)}function N(){Zb(document,"mousemove",aa);Zb(document,"mouseup",N);e(t.C)}var ha=tb(da);if(ha!=null&&ha.row===0||ha!=null&&ha.parentNode!=null&&ha.parentNode.row===0||ha!=null&&ha.parentNode!=null&&
1123
+ ha.parentNode.parentNode!=null&&ha.parentNode.parentNode.row===0)if(D.grid.g)return;if(!(ha!=null&&(ha.tagName=="INPUT"||ha.tagName=="SELECT"||ha.tagName=="TEXTAREA"))){t.C={};t.C.reverse=ha!=t;t.C.startY=Yc(da);t.C.ij=t.C.startY;t.C.startTime=(new Date).getTime();t.C.Hh=(new Date).getTime();t.C.Xk=null;t.C.duration=null;t.C.Fa=t.Kg!=null?t.Kg:parseInt(t.style.top);T(document,"mousemove",aa);T(document,"mouseup",N);ub(da)}};T(t,"mousedown",C);T(D,"mousedown",C)}if(!pui.na){var K,M,U;C=function(da){if(da.touches.length==
1124
+ 1){var aa=da.target;if(aa!=null&&aa.row===0||aa!=null&&aa.parentNode!=null&&aa.parentNode.row===0||aa!=null&&aa.parentNode!=null&&aa.parentNode.parentNode!=null&&aa.parentNode.parentNode.row===0)if(D.grid.g)return;if(!(aa!=null&&(aa.tagName=="INPUT"||aa.tagName=="SELECT"||aa.tagName=="TEXTAREA"))){da=da.touches[0];t.C={};t.C.reverse=aa!=t;m.Vu=aa;t.C.startY=da.pageY;t.C.ij=t.C.startY;t.C.startTime=(new Date).getTime();t.C.Hh=(new Date).getTime();t.C.Xk=null;t.C.duration=null;t.C.Fa=t.Kg!=null?t.Kg:
1125
1125
  parseInt(t.style.top);K=da.pageX;M=da.pageY;U=null}}};T(t,"touchstart",C);T(D,"touchstart",C);C=function(da){if(da.touches.length==1)if(t.C!=null){t.style.opacity=1;var aa=da.touches[0],N=aa.pageY,ha=aa.pageX-K,ba=aa.pageY-M;K=aa.pageX;M=aa.pageY;if(U==null)U=Math.abs(ha)-Math.abs(ba)>0;ha=aa=false;if(m.ab){aa=m.ab.grid.Zl;if(m.ab.grid.Ao)ha=true}if(!U||aa||ha){ba=(new Date).getTime();t.C.duration=ba-t.C.Hh;t.C.Hh=ba;ba=m.Sa/m.gc/6;if(ba<1)ba=1;if(ba>40)ba=40;t.C.Xk=(N-t.C.ij)/ba;t.C.ij=N;var ea=
1126
- t.C.Fa;N=N-t.C.startY;if(t.C.reverse)N=-N;N/=ba;ea+=N;ba=parseInt(s.style.top);var pa=ba+parseInt(s.style.height)-parseInt(t.style.height);if(pa<ba)pa=ba;if(ea<ba)ea=ba;if(ea>pa)ea=pa;t.Jg=ea;t.style.top=parseInt(ea)+"px";ea=(ea-ba)/(pa-ba);if(isNaN(ea))ea=0;ea=(m.Sa-m.gc)*ea;ea=Math.round(ea)+1;m.doScroll(ea);ea=true;if(aa)ea=false;else if(f(N,t.C.reverse)){ea=false;t.style.top=N>0?pa+"px":ba+"px"}if(ha&&!aa)ea=true;if(ea)da.preventDefault();else U=true}}};T(t,"touchmove",C);T(D,"touchmove",C);T(D,
1127
- "touchend",function(){m.Vu=null;e(t.C)})}}if(P=="genie"&&!pui.ea)r.onscroll=m.doScroll;r.onmousedown=function(da){if(m.ci||m.di){if(w.innerHTML!="")w.style.display="";a()}m.designMode&&designUtils.Le(da)};r.onmouseup=function(){c(h)};r.appendChild(p);m.container.appendChild(r);s!=null&&m.container.appendChild(s);t!=null&&m.container.appendChild(t);m.container.appendChild(w)};this.Ln=function(){T(r,"scroll",m.doScroll)};this.doScroll=function(D){if(m.Vf){var C=Math.round(r.scrollTop/z)+1;if(m.Dm>0&&
1126
+ t.C.Fa;N=N-t.C.startY;if(t.C.reverse)N=-N;N/=ba;ea+=N;ba=parseInt(s.style.top);var pa=ba+parseInt(s.style.height)-parseInt(t.style.height);if(pa<ba)pa=ba;if(ea<ba)ea=ba;if(ea>pa)ea=pa;t.Kg=ea;t.style.top=parseInt(ea)+"px";ea=(ea-ba)/(pa-ba);if(isNaN(ea))ea=0;ea=(m.Sa-m.gc)*ea;ea=Math.round(ea)+1;m.doScroll(ea);ea=true;if(aa)ea=false;else if(f(N,t.C.reverse)){ea=false;t.style.top=N>0?pa+"px":ba+"px"}if(ha&&!aa)ea=true;if(ea)da.preventDefault();else U=true}}};T(t,"touchmove",C);T(D,"touchmove",C);T(D,
1127
+ "touchend",function(){m.Vu=null;e(t.C)})}}if(P=="genie"&&!pui.ea)r.onscroll=m.doScroll;r.onmousedown=function(da){if(m.ci||m.di){if(w.innerHTML!="")w.style.display="";a()}m.designMode&&designUtils.Le(da)};r.onmouseup=function(){c(h)};r.appendChild(p);m.container.appendChild(r);s!=null&&m.container.appendChild(s);t!=null&&m.container.appendChild(t);m.container.appendChild(w)};this.Ln=function(){T(r,"scroll",m.doScroll)};this.doScroll=function(D){if(m.Wf){var C=Math.round(r.scrollTop/z)+1;if(m.Dm>0&&
1128
1128
  (D==null||D.target!=null))C=m.Dm;if(J!=null&&B!=null&&D==null&&y>0)D=y;if(D!=null&&typeof D=="number")C=D;if(C!=y){var K=C+m.gc-1;if(m.di)w.innerHTML=pui.getLanguageText("runtimeText","rows")+" "+C+" - "+K;if(m.ci)w.innerHTML=pui.getLanguageText("runtimeText","row")+" "+C;a();m.onchange!=null&&m.onchange(C);if(m.Ol!=null){g+=1;if(g>1E4)g=10;b(g,C)}y=C;K=m.ab;if(K!=null){K=K.grid.Go.onscroll;if(K!=null&&K!=""&&!m.designMode)try{eval("row = "+C);eval(K)}catch(M){pui.Ea(M,"onscroll Error:\n");return false}}if(typeof D!==
1129
1129
  "undefined"&&(m.ci||m.di)&&m.Sa>1){w.style.display="";h+=1;if(h>1E4)h=0;a();c(h)}else w.style.display="none"}}};this.xd=function(D,C){if(t!=null){var K=parseInt(s.style.top),M=K+parseInt(s.style.height)-parseInt(t.style.height);if(M<K)M=K;K=parseInt((M-K)*((D-1)/(m.Sa-m.gc)))+K;t.style.top=K+"px";y=D;return t.style.top!=K+"px"}else{if(C)y=D;else m.Dm=D;K=r.scrollTop;r.scrollTop=(D-1)*z;if(K!=r.scrollTop)return true;m.Dm=null;return false}};this.Bh=function(){clearTimeout(m.cx);m.cx=setTimeout(function(){m.Dm=
1130
1130
  null},m.interval)};this.z=function(D){if(pui.is_old_ie){z=25;if(m.Sa>1E3)z=50}else z=19;if(t!=null&&s!=null){s.style.left=m.x-5+"px";s.style.top=m.y+"px";s.style.zIndex=m.zIndex;t.style.left=m.x-5+"px";if(y==-1)t.style.top=m.y+"px";t.style.zIndex=m.zIndex;r.style.visibility="hidden";r.style.display="none";s.style.display="";t.style.display=""}else{r.style.zIndex=m.zIndex;r.style.visibility="";r.style.display="";r.style.left=m.x+"px";r.style.top=m.y+"px"}var C=m.gc*m.ka-m.borderWidth;if(s!=null){s.style.height=
1131
- C-2+"px";var K=(C-2)*(m.Sa<=0?1:m.gc/m.Sa);K=parseInt(K);if(K<25&&C>27)K=25;if(K>C-2)K=C-2;t.style.height=K+"px"}else{r.style.height=C+"px";K=(m.Sa-m.gc)*z+C;var M=9999990;if(pui.is_old_ie)M=1342177;else if(pui.is_ie)M=1533917;for(;K>M&&z>1;){z-=1;K=(m.Sa-m.gc)*z+C}if(K<0)K=0;if(K>5&&K==C)K-=5;p.style.height=K+"px"}a();s==null&&!D&&m.doScroll();if(!m.designMode&&m.Vf&&m.gc==1){G=p.style.height;p.style.height="0px";r.style.overflow="hidden";r.style.overflowX="hidden";r.style.overflowY="hidden";if(J==
1131
+ C-2+"px";var K=(C-2)*(m.Sa<=0?1:m.gc/m.Sa);K=parseInt(K);if(K<25&&C>27)K=25;if(K>C-2)K=C-2;t.style.height=K+"px"}else{r.style.height=C+"px";K=(m.Sa-m.gc)*z+C;var M=9999990;if(pui.is_old_ie)M=1342177;else if(pui.is_ie)M=1533917;for(;K>M&&z>1;){z-=1;K=(m.Sa-m.gc)*z+C}if(K<0)K=0;if(K>5&&K==C)K-=5;p.style.height=K+"px"}a();s==null&&!D&&m.doScroll();if(!m.designMode&&m.Wf&&m.gc==1){G=p.style.height;p.style.height="0px";r.style.overflow="hidden";r.style.overflowX="hidden";r.style.overflowY="hidden";if(J==
1132
1132
  null&&B==null&&m.Sa>1){J=document.createElement("img");J.style.position="absolute";J.style.top="0px";J.style.right="0px";J.style.cursor="pointer";J.src=pui.normalizeURL("/profoundui/proddata/images/up.gif");J.onclick=function(){if(pui.Bc!=null)pui.Bc.style.display="none";var U=y-1;if(U<1)U=1;if(U>m.Sa)U=m.Sa;m.doScroll(U)};B=document.createElement("img");B.style.position="absolute";B.style.bottom="0px";B.style.right="0px";B.style.cursor="pointer";B.src=pui.normalizeURL("/profoundui/proddata/images/down.gif");
1133
- B.onclick=function(){if(pui.Bc!=null)pui.Bc.style.display="none";if(y==-1)y=1;var U=y+1;if(U<1)U=1;if(U>m.Sa)U=m.Sa;m.doScroll(U)};r.appendChild(J);r.appendChild(B)}}if(!m.designMode&&m.Vf&&m.gc>1&&J!=null&&B!=null&&m.Sa>1){r.removeChild(J);r.removeChild(B);B=J=null;p.style.height=G;r.style.overflow="";r.style.overflowX="hidden";r.style.overflowY="scroll"}};this.nl=function(D){if(s!=null)s.style.height=parseInt(r.style.height)+D-2+"px";else r.style.height=parseInt(r.style.height)+D+"px"};this.qm=
1133
+ B.onclick=function(){if(pui.Bc!=null)pui.Bc.style.display="none";if(y==-1)y=1;var U=y+1;if(U<1)U=1;if(U>m.Sa)U=m.Sa;m.doScroll(U)};r.appendChild(J);r.appendChild(B)}}if(!m.designMode&&m.Wf&&m.gc>1&&J!=null&&B!=null&&m.Sa>1){r.removeChild(J);r.removeChild(B);B=J=null;p.style.height=G;r.style.overflow="";r.style.overflowX="hidden";r.style.overflowY="scroll"}};this.nl=function(D){if(s!=null)s.style.height=parseInt(r.style.height)+D-2+"px";else r.style.height=parseInt(r.style.height)+D+"px"};this.qm=
1134
1134
  function(D){r.className="pui-scrollbar";if(m.ab.grid&&D)r.className+=" "+D+"-pui-scrollbar"};this.hide=function(){r.style.visibility="hidden";r.style.display="none";w.style.display="none";w.style.visibility="hidden";if(t!=null&&s!=null){s.style.display="none";t.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.Oi=function(D){function C(da){var aa=0;if(!da)da=
1135
1135
  window.event;if(da.wheelDelta){aa=da.wheelDelta/120;if(window.opera)aa=-aa}else if(da.detail)aa=-da.detail/3;M(aa,da)}function K(da){M(pui.Gt(da)*-1,da)}function M(da,aa){if(da&&!aa.shiftKey)if(t==null)r.scrollTop-=da*z;var N=false;if(aa.preventDefault)N=true;if(m.ab&&(m.ab.grid.Zl||f(da)||aa.shiftKey))N=false;if(N){aa.preventDefault();aa.returnValue=false}}var U;if(!n){n=true;if(typeof WheelEvent=="function"){D.addEventListener("wheel",K,false);for(U=0;U<D.grid.m.length;U++)D.grid.m[U].addEventListener("wheel",
1136
1136
  K,false);for(U=0;U<D.grid.j.length;U++)D.grid.j[U].addEventListener("wheel",K,false)}else{D.addEventListener&&D.addEventListener("DOMMouseScroll",C,false);D.onmousewheel=C}}};this.oh=function(D){m.container=D;r.parentNode.removeChild(r);m.container.appendChild(r)}};pui.ov=function(){function b(s){var t=0;if(!s)s=window.event;if(s.wheelDelta){t=s.wheelDelta/120;if(window.opera)t=-t}else if(s.detail)t=-s.detail/3;c(t,s)}function a(s){c(pui.Gt(s)*-1,s)}function c(s,t){if(s&&!t.shiftKey)if(document.getElementById(f))document.getElementById(f).scrollTop-=s*p;else m.scrollTop-=s*p;var w=false;if(t.preventDefault)w=true;var z;if(z=e.grid){if(!(z=e.grid.Zl)){a:{if(e.ab)if(e.ab&&s<0&&e.ab.grid.Xb()||e.ab&&s>0&&e.ab.grid.Ib()){z=true;break a}z=false}z=z||t.shiftKey}z=
1137
- z}if(z)w=false;if(w){t.preventDefault();t.returnValue=false}}this.y=this.x=0;this.height=300;this.zIndex=100;this.designMode=this.Xb=this.Ib=false;this.tj=this.uj=this.container=null;this.type="paging";this.Vf=false;var e=this,f,g=false,h=false,l=false,n=0,m,r,p=25;this.init=function(){m=document.createElement("div");f=typeof e.grid!=="undefined"&&typeof e.grid.Wa==="string"&&e.grid.Wa.length>0?e.grid.Wa+"scrollbar":"scrollbar"+Math.floor(Math.random()*1E6).toString();m.id=f;m.style.position="absolute";
1137
+ z}if(z)w=false;if(w){t.preventDefault();t.returnValue=false}}this.y=this.x=0;this.height=300;this.zIndex=100;this.designMode=this.Xb=this.Ib=false;this.tj=this.uj=this.container=null;this.type="paging";this.Wf=false;var e=this,f,g=false,h=false,l=false,n=0,m,r,p=25;this.init=function(){m=document.createElement("div");f=typeof e.grid!=="undefined"&&typeof e.grid.Wa==="string"&&e.grid.Wa.length>0?e.grid.Wa+"scrollbar":"scrollbar"+Math.floor(Math.random()*1E6).toString();m.id=f;m.style.position="absolute";
1138
1138
  m.style.width="23px";m.style.overflowY="scroll";m.style.overflowX="hidden";m.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";m.onmousedown=function(s){e.designMode&&designUtils.Le(s)};m.onscroll=function(){var s=parseInt(e.height/2);if(e.designMode||e.Ib&&e.Xb)m.scrollTop=s;else if(g)g=false;else if(l){g=true;m.scrollTop=e.height*2}else if(h){g=true;m.scrollTop=0}else if(e.Xb&&!e.Ib){if(e.uj!=
1139
1139
  null){s=e.uj();if(s==false){e.z();return}}g=h=true;m.scrollTop=0}else if(e.Ib&&!e.Xb){if(e.tj!=null){s=e.tj();if(s==false){e.z();return}}g=l=true;m.scrollTop=e.height*2}else if(m.scrollTop>s){if(e.tj!=null){s=e.tj();if(s==false){e.z();return}}g=l=true;m.scrollTop=e.height*2}else{if(e.uj!=null){s=e.uj();if(s==false){e.z();return}}g=true;m.scrollTop=0;h=true}};m.appendChild(r);e.container.appendChild(m)};this.z=function(){g=true;m.style.zIndex=e.zIndex;m.style.visibility="";var s=e.x,t=e.y,w=e.height;
1140
1140
  if(w<0)w=0;n=parseInt(w/2);m.style.left=s+"px";m.style.top=t+"px";m.style.height=w+"px";r.style.height=w*2+"px";s=e.Xb&&!e.Ib?w*2:e.Ib&&!e.Xb?0:n;if(!e.grid||!e.grid.ts)m.scrollTop=s};this.reset=function(){l=h=false};this.hide=function(){m.style.visibility="hidden"};this.destroy=function(){m.parentNode!=null&&m.parentNode.removeChild(m);r.parentNode!=null&&r.parentNode.removeChild(r)};this.oh=function(s){e.container=s;m.parentNode.removeChild(m);e.container.appendChild(m)};this.Oi=function(s){if(!s.Xx){s.Xx=
1141
- true;if(typeof WheelEvent=="function")s.addEventListener("wheel",a,false);else{s.addEventListener&&s.addEventListener("DOMMouseScroll",b,false);s.onmousewheel=b}}}};pui.iv=function(){function b(){for(;e.rows.length>0;)e.deleteRow(e.rows.length-1);f&&f.parentNode.removeChild(f);var h="";if(Fa=="ON")h="https://"+HTTP_HOST;h+="/profoundui/proddata/images/";var l=[],n=[],m=[],r=[];if(a.grid.sortable){if(a.Vc.Am!=null){l.push(pui.getLanguageText("runtimeText","sort ascending text"));m.push("icons/sort_ascending.png");r.push(function(){a.Vc.ra=true;if(a.grid.b.Vh!=null)a.grid.Xf="A";a.Vc.Am()});l.push(pui.getLanguageText("runtimeText","sort descending text"));m.push("icons/sort_descending.png");
1142
- r.push(function(){a.Vc.ra=false;if(a.grid.b.Vh!=null)a.grid.Xf="D";a.Vc.Am()})}l.push(pui.getLanguageText("runtimeText","sort..."));m.push("icons/grid.png");r.push(a.grid.Gu)}if(l.length>0&&(a.grid.Jo||a.grid.Si)){l.push("-");m.push(null);r.push(null)}if(a.grid.Jo){l.push(pui.getLanguageText("runtimeText","find text")+"...");m.push("icons/search.png");r.push(function(){a.grid.startFind(a.Vc)})}if(a.grid.Si&&(!a.grid.jk()||a.grid.Ls()<a.grid.ye)){l.push(pui.getLanguageText("runtimeText","filter text")+
1141
+ true;if(typeof WheelEvent=="function")s.addEventListener("wheel",a,false);else{s.addEventListener&&s.addEventListener("DOMMouseScroll",b,false);s.onmousewheel=b}}}};pui.iv=function(){function b(){for(;e.rows.length>0;)e.deleteRow(e.rows.length-1);f&&f.parentNode.removeChild(f);var h="";if(Fa=="ON")h="https://"+HTTP_HOST;h+="/profoundui/proddata/images/";var l=[],n=[],m=[],r=[];if(a.grid.sortable){if(a.Vc.Am!=null){l.push(pui.getLanguageText("runtimeText","sort ascending text"));m.push("icons/sort_ascending.png");r.push(function(){a.Vc.ra=true;if(a.grid.b.Vh!=null)a.grid.Yf="A";a.Vc.Am()});l.push(pui.getLanguageText("runtimeText","sort descending text"));m.push("icons/sort_descending.png");
1142
+ r.push(function(){a.Vc.ra=false;if(a.grid.b.Vh!=null)a.grid.Yf="D";a.Vc.Am()})}l.push(pui.getLanguageText("runtimeText","sort..."));m.push("icons/grid.png");r.push(a.grid.Gu)}if(l.length>0&&(a.grid.Jo||a.grid.Si)){l.push("-");m.push(null);r.push(null)}if(a.grid.Jo){l.push(pui.getLanguageText("runtimeText","find text")+"...");m.push("icons/search.png");r.push(function(){a.grid.startFind(a.Vc)})}if(a.grid.Si&&(!a.grid.jk()||a.grid.Ls()<a.grid.ye)){l.push(pui.getLanguageText("runtimeText","filter text")+
1143
1143
  "...");m.push("icons/filter.png");r.push(function(){a.grid.startFilter(a.Vc)});if(!pui.is_ie&&P!="genie"){l.push(pui.getLanguageText("runtimeText","multi filter text"));m.push("icons/filter_multi.png");r.push(function(){a.grid.tz(a.Vc)})}}if(a.grid.Si&&a.Vc.nc!=null){l.push(pui.getLanguageText("runtimeText","remove filter"));m.push("icons/remove_filter.png");r.push(function(){a.grid.removeFilter(a.Vc)})}if(a.grid.Si&&a.grid.Ls()>1){l.push(pui.getLanguageText("runtimeText","remove filters text"));
1144
1144
  m.push("icons/remove_filter.png");r.push(function(){a.grid.removeAllFilters()})}if(a.grid.ju){l.push(pui.getLanguageText("runtimeText","reset data"));m.push("icons/default.png");r.push(function(){var D=a.grid.cells[0][0].parentNode.pui.properties;a.grid.alignColumnTotals();if(a.grid.ma){var C=D["column headings"].split(","),K=a.grid.fa.map(function(da){da.showing||a.grid.Zo(da,true);return da});if(a.grid.fa.Li)a.grid.fa.Li=null;for(;C.length<K.length;)C.push("")}K=a.grid.cells[0];for(var M=0;M<K.length;M++){var U=
1145
- K[M];U.col!=U.v&&a.grid.moveColumn(U.col,U.v)}a.grid.Zf(D["column widths"]);a.grid.Ma();a.grid.jc=null;if(D["expand to layout"]=="true"||D["expand to layout"]==true)a.grid.$b();a.grid.Ct([]);if(C)a.columnHeadings=C;a.grid.ic();a.grid.removeAllFilters();a.grid.clearState()})}if(a.grid.ma){m.push("icons/grid.png");l.push(pui.getLanguageText("runtimeText","displayed columns"));var p=a.grid.fa;if(a.grid.Gl&&p.Li){var s=[];p.filter(function(D){if(D.currentColumn==-1&&!D.showing){s.push(D);return false}return true}).sort(function(D,
1146
- C){var K=D.currentColumn,M=C.currentColumn,U=false,da=false;if(K==-1){U=true;K=a.grid.Hs(D.columnId)}if(M==-1){da=true;M=a.grid.Hs(C.columnId)}if(K==M)return U&&!da?1:-1;return K>M?1:-1}).forEach(function(D){n.push(D)});s.forEach(function(D){n.push(D)})}else p.forEach(function(D){n.push(D)});r.push(function(D){a.grid.alignColumnTotals();return a.grid.Zo(D)})}if(a.grid.Ho==true||a.grid.Ho==null&&a.grid.i!=null&&a.grid.i.ug){if(l.length>0&&l[l.length-1]!="-"){l.push("-");m.push(null);r.push(null)}l.push(pui.getLanguageText("runtimeText",
1145
+ K[M];U.col!=U.v&&a.grid.moveColumn(U.col,U.v)}a.grid.$f(D["column widths"]);a.grid.Ma();a.grid.jc=null;if(D["expand to layout"]=="true"||D["expand to layout"]==true)a.grid.$b();a.grid.Ct([]);if(C)a.columnHeadings=C;a.grid.ic();a.grid.removeAllFilters();a.grid.clearState()})}if(a.grid.ma){m.push("icons/grid.png");l.push(pui.getLanguageText("runtimeText","displayed columns"));var p=a.grid.fa;if(a.grid.Gl&&p.Li){var s=[];p.filter(function(D){if(D.currentColumn==-1&&!D.showing){s.push(D);return false}return true}).sort(function(D,
1146
+ C){var K=D.currentColumn,M=C.currentColumn,U=false,da=false;if(K==-1){U=true;K=a.grid.Hs(D.columnId)}if(M==-1){da=true;M=a.grid.Hs(C.columnId)}if(K==M)return U&&!da?1:-1;return K>M?1:-1}).forEach(function(D){n.push(D)});s.forEach(function(D){n.push(D)})}else p.forEach(function(D){n.push(D)});r.push(function(D){a.grid.alignColumnTotals();return a.grid.Zo(D)})}if(a.grid.Ho==true||a.grid.Ho==null&&a.grid.i!=null&&a.grid.i.vg){if(l.length>0&&l[l.length-1]!="-"){l.push("-");m.push(null);r.push(null)}l.push(pui.getLanguageText("runtimeText",
1147
1147
  "export to x",["Excel (CSV)"])+"...");m.push("grids/excel.gif");r.push(function(){a.grid.exportCSV()});l.push(pui.getLanguageText("runtimeText","export to x",["Excel (XLSX)"])+"...");m.push("grids/excel.gif");r.push(function(){a.grid.exportCSV(null,true)})}for(p=0;p<l.length;p++){var t=e.insertRow(p);t.style.color="#333333";if(l[p]=="-"){t=t.insertCell(0);t.colSpan=2;var w=document.createElement("div");w.style.backgroundColor="#e0e0e0";w.style.borderBottomColor="#ffffff";w.style.borderBottomWidth=
1148
1148
  "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%";t.appendChild(w)}else{t.style.cursor="pointer";t.style.padding="3px";t.Rl=r[p];if(l[p]!=pui.getLanguageText("runtimeText","displayed columns")){t.onclick=function(D){tb(D).parentNode.Rl();a.hide()};t.gp=false}t.onmouseover=function(D){D=tb(D).parentNode;if(D.tagName=="TD")D=D.parentNode;D.style.backgroundColor="#3399ff";
1149
1149
  D.style.color="#ffffff";a.grid.ma&&this.gp&&a.Iu()};t.onmouseout=function(D){if(a.grid.ma&&this.gp)if(D){var C=D.relatedTarget||D.yB;if(C&&C==c)return;a.$o()}D=tb(D).parentNode;if(D.tagName=="TD")D=D.parentNode;D.style.backgroundColor="";D.style.color="#333333"};w=t.insertCell(0);w.style.width="20px";var z=m[p];if(z!=null){w.style.backgroundImage="url('"+h+z+"')";w.style.backgroundPosition="center";w.style.backgroundRepeat="no-repeat"}w.style.padding="3px";w=t.insertCell(1);if(l[p]==pui.getLanguageText("runtimeText",
@@ -1152,27 +1152,27 @@ function(D){D=tb(D).parentNode;if(D.tagName=="TD")D=D.parentNode;D.style.backgro
1152
1152
  "3px 6px 3px 3px";G.style.whiteSpace="normal";B.style.top=(E+1)*25+"px";B.onmousedown=function(D){g=true;D=tb(D);var C=this.getElementsByTagName("input")[0],K=this.Rl(this.col);if(D.tagName!="INPUT"&&K)C.checked=C.checked?false:true}}t.onclick=function(){this.classList.add("active-item")};t.gp=true;z.row=t;z.appendChild(y);z.className="pui-hide-show-columns-list";z.onmouseover=function(){g=true;a.Iu()};z.onmouseout=function(){g=false};if(a.grid.b)z.zt=(E+1)*25;f=z;a.$o()}else w.innerHTML=l[p];w.style.fontFamily=
1153
1153
  "Sans-serif";w.style.fontSize="12px";w.style.padding="3px";w.style.whiteSpace="normal"}}return l.length}var a=this,c,e,f,g=false;this.Vc=this.clickEvent=this.grid=null;this.init=function(){T(document,"mousedown",function(h){if(a!=null){for(h=tb(h);h!=null;){if(h==c)return;if(h==a.Vc)return;if(g)return;h=h.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.gs;c.onselectstart=ua(false);
1154
1154
  c.oncontextmenu=ua(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.container.appendChild(c)};this.show=function(){var h;if(b()==0)a.hide();else{var l=0,n=0;if(a.toolbar!=null){l=a.toolbar.u.offsetLeft+119;n=a.toolbar.u.offsetTop+47;if(a.toolbar.u.offsetTop>a.Wx.length*22-45)n=n-a.Wx.length*22+1}if(a.clickEvent!=null){l=pui.Po(a.clickEvent);
1155
- n=pui.Ns(a.clickEvent);var m=document.body.scrollWidth-185,r={x:0,y:0};h=a.grid.b.parentNode;if(P=="dspf")if(h.getAttribute("container")=="true"){r=pui.layout.Ef(h);r.x+=pui.runtimeContainer.offsetLeft;r.y+=pui.runtimeContainer.offsetTop;var p=h.offsetLeft+h.offsetWidth;if(p>0&&(h.style.overflowX=="hidden"||h.style.overflow=="hidden")){m=p-185;p=h.parentNode;if(p!=null){if(p.scrollLeft>0)m+=p.scrollLeft;if(p.style.overflowY=="scroll"||p.style.overflowY=="auto")m-=10}}p=pui.getActiveContainer();if(p!=
1155
+ n=pui.Ns(a.clickEvent);var m=document.body.scrollWidth-185,r={x:0,y:0};h=a.grid.b.parentNode;if(P=="dspf")if(h.getAttribute("container")=="true"){r=pui.layout.Ff(h);r.x+=pui.runtimeContainer.offsetLeft;r.y+=pui.runtimeContainer.offsetTop;var p=h.offsetLeft+h.offsetWidth;if(p>0&&(h.style.overflowX=="hidden"||h.style.overflow=="hidden")){m=p-185;p=h.parentNode;if(p!=null){if(p.scrollLeft>0)m+=p.scrollLeft;if(p.style.overflowY=="scroll"||p.style.overflowY=="auto")m-=10}}p=pui.getActiveContainer();if(p!=
1156
1156
  null&&p.Ac===true){r.x+=p.offsetLeft;r.y+=p.offsetTop}if(f){h=h.getBoundingClientRect().height;f.Uo=h}}else{h=pui.Zc(h);r.x=h[0];r.y=h[1];if(f)f.Uo=window.innerHeight}else{h=pui.Zc(h);r.x=h[0];r.y=h[1]}n-=r.y;l-=r.x;if(l>m)l=m}c.style.left=l+"px";c.style.top=n+"px";c.style.display="";if(f){a.grid.container.appendChild(f);f.style.display="";f.style.top=n+f.row.offsetTop+"px";if(f.Uo&&f.zt){n=f.Uo;if(f.zt>n/2){f.style.height=n/2+"px";f.style.overflowY="scroll"}else{f.style.overflowY="initial";f.style.height=
1157
1157
  "auto"}}if(c.offsetLeft===m||l+c.offsetWidth>m){l=f.offsetWidth;f.style.left=c.offsetLeft-f.offsetWidth+"px";if(f.offsetWidth!==l)f.style.left=c.offsetLeft-f.offsetWidth+"px"}else f.style.left=c.offsetLeft+c.offsetWidth+"px";f.style.display="none"}}};this.hide=function(){c.style.display="none";f&&a.$o()};this.$o=function(){f.style.display="none"};this.Iu=function(){f.style.display=""};this.destroy=function(){if(c!=null){c.parentNode!=null&&c.parentNode.removeChild(c);f&&f.parentNode!=null&&f.parentNode.removeChild(f);
1158
- e=f=c=null;a.clickEvent=null;a=a.grid=null}}};pui.Ym=function(b,a){this.xb=a;this.hg=this.ur=null;if(b==null)b=document.body;this.wv=b;this.I=document.createElement("div");this.I.className="pui-find-filter";this.I.style.display="none";this.Fc=document.createElement("div");this.Fc.className="pui-find-filter-content";this.wc=document.createElement("input");this.wc.className="pui-find-filter-box";this.wc.addEventListener("input",this);this.wc.addEventListener("keydown",this);this.wc.addEventListener("blur",this);this.Fc.appendChild(this.wc);this.I.appendChild(this.Fc);
1159
- this.wv.appendChild(this.I);this.type=null;this.interval=100;this.Sf=null};
1160
- pui.Ym.prototype.handleEvent=function(b){var a;this.hg=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.Sf==="function"){clearTimeout(this.ur);this.ur=setTimeout(this.Hv,this.interval,this)}break;case "keydown":a=b.keyCode;if(a==13){if(this.type=="find"){if(typeof this.Sf==="function"){a=this.hg?this.hg.value:this.wc.value;this.Sf(a,true)}}else if(this.type=="filter"){this.xb.X.text="";this.xb.getData();
1161
- this.hide()}else if(this.type=="pgfilter")if(typeof this.Sf==="function"){a=this.hg?this.hg.value:this.wc.value;this.Sf(a)}ub(b)}else if(a==27){this.xb.X.text="";this.xb.getData();this.hide();ub(b)}break;case "blur":if(this.xb){if(this.xb.X)this.xb.X.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}};va=pui.Ym.prototype;va.show=function(){this.I.style.display=""};
1162
- va.hide=function(){this.I.style.display="none"};function Yd(b,a){var c=a.parentNode;if(c!=null){var e=c.parentNode;if(e!=null){var f,g;f=c.offsetLeft+a.offsetLeft;c=c.offsetTop-40;g=a.offsetWidth;var h=pui.getActiveContainer();if(h!=null&&h.Ac===true){f+=h.offsetLeft;c+=h.offsetTop}if(e.getAttribute("container")=="true"){e=pui.layout.Ef(e);c+=e.y;f+=e.x}b.setPosition(f,c,g)}}}
1163
- va.setPosition=function(b,a,c){if(c==null)c=200;var e=c-15;if(e<20)e=20;this.I.style.left=b+"px";this.I.style.top=a+"px";this.I.style.width=c+"px";this.wc.style.width=e+"px"};va.focus=function(){this.wc.focus()};va.clear=function(){this.wc.value=""};va.setText=function(b){this.wc.value=b};va.Hv=function(b){if(b.xb&&b.xb.c&&b.xb.c.type=="sliding")b.xb.c.Vf=false;b.Sf(b.hg?b.hg.value:b.wc.value);if(b.xb&&b.xb.c&&b.xb.c.type=="sliding")b.xb.c.Vf=true};pui.li=function(){this.dataArray=[];this.W=[];this.Y=[];this.qd=false};pui.li.prototype=Object.create(pui.tc.prototype);function Zd(b,a,c,e){b=String(e);if(a.properties[c]!=b){if(pui.o(a.properties[c])){if(c=="top"||c=="left")a.properties[c].designValue=b}else a.properties[c]=b;a.pb[c]=true;a.nd=true;return a.designer.od[a.designer.Na.ub]=true}return false}
1158
+ e=f=c=null;a.clickEvent=null;a=a.grid=null}}};pui.Ym=function(b,a){this.xb=a;this.ig=this.ur=null;if(b==null)b=document.body;this.wv=b;this.I=document.createElement("div");this.I.className="pui-find-filter";this.I.style.display="none";this.Fc=document.createElement("div");this.Fc.className="pui-find-filter-content";this.wc=document.createElement("input");this.wc.className="pui-find-filter-box";this.wc.addEventListener("input",this);this.wc.addEventListener("keydown",this);this.wc.addEventListener("blur",this);this.Fc.appendChild(this.wc);this.I.appendChild(this.Fc);
1159
+ this.wv.appendChild(this.I);this.type=null;this.interval=100;this.Tf=null};
1160
+ pui.Ym.prototype.handleEvent=function(b){var a;this.ig=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.Tf==="function"){clearTimeout(this.ur);this.ur=setTimeout(this.Hv,this.interval,this)}break;case "keydown":a=b.keyCode;if(a==13){if(this.type=="find"){if(typeof this.Tf==="function"){a=this.ig?this.ig.value:this.wc.value;this.Tf(a,true)}}else if(this.type=="filter"){this.xb.X.text="";this.xb.getData();
1161
+ this.hide()}else if(this.type=="pgfilter")if(typeof this.Tf==="function"){a=this.ig?this.ig.value:this.wc.value;this.Tf(a)}ub(b)}else if(a==27){this.xb.X.text="";this.xb.getData();this.hide();ub(b)}break;case "blur":if(this.xb){if(this.xb.X)this.xb.X.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}};va=pui.Ym.prototype;va.show=function(){this.I.style.display=""};
1162
+ va.hide=function(){this.I.style.display="none"};function Yd(b,a){var c=a.parentNode;if(c!=null){var e=c.parentNode;if(e!=null){var f,g;f=c.offsetLeft+a.offsetLeft;c=c.offsetTop-40;g=a.offsetWidth;var h=pui.getActiveContainer();if(h!=null&&h.Ac===true){f+=h.offsetLeft;c+=h.offsetTop}if(e.getAttribute("container")=="true"){e=pui.layout.Ff(e);c+=e.y;f+=e.x}b.setPosition(f,c,g)}}}
1163
+ va.setPosition=function(b,a,c){if(c==null)c=200;var e=c-15;if(e<20)e=20;this.I.style.left=b+"px";this.I.style.top=a+"px";this.I.style.width=c+"px";this.wc.style.width=e+"px"};va.focus=function(){this.wc.focus()};va.clear=function(){this.wc.value=""};va.setText=function(b){this.wc.value=b};va.Hv=function(b){if(b.xb&&b.xb.c&&b.xb.c.type=="sliding")b.xb.c.Wf=false;b.Tf(b.ig?b.ig.value:b.wc.value);if(b.xb&&b.xb.c&&b.xb.c.type=="sliding")b.xb.c.Wf=true};pui.li=function(){this.dataArray=[];this.W=[];this.Y=[];this.qd=false};pui.li.prototype=Object.create(pui.tc.prototype);function Zd(b,a,c,e){b=String(e);if(a.properties[c]!=b){if(pui.o(a.properties[c])){if(c=="top"||c=="left")a.properties[c].designValue=b}else a.properties[c]=b;a.pb[c]=true;a.nd=true;return a.designer.od[a.designer.Na.ub]=true}return false}
1164
1164
  pui.nk=function(){function b(k,o){var q=d.dataArray;if(o&&d.isFiltered())q=d.W;var v=q[k-1];if(d.Tc===true||d.isFiltered()){v=null;for(var A=0;A<q.length;A++)if(q[A].n==k){v=q[A];break}}return v}function a(k){for(var o=null,q=0;q<d.Y.length;q++)if(k==d.Y[q]){o=q;break}return o}function c(k){var o=document.createElement("div");o.style.position="absolute";o.style.border="1px solid #0000ff";if(pui.is_old_ie&&pui.is_quirksmode){o.style.height="6px";o.style.width="6px";o.style.padding="0px"}else{o.style.height=
1165
1165
  "3px";o.style.width="3px";o.style.padding="1px"}o.style.fontSize="0px";o.style.backgroundColor="#dddddd";o.style.cursor=k+"-resize";o.style.zIndex=designUtils.EB;o.style.visibility="hidden";o.kp=true;designUtils.Ek(o,"mousedown",function(q){function v(L){var Q=designUtils.getY(L)-F;L=designUtils.getX(L)-I;var X=0,O=0;if(k=="sw"||k=="se")X=d.j.length-1;if(k=="ne"||k=="se")O=d.m.length-1;x(L,Q,X,false,d.j[X].Fa,d.j[X].hb);x(L,Q,O,true,d.m[O].Fa,d.m[O].hb);if((k=="sw"||k=="se")&&d.j.length>2){Q=Q;if(Q<
1166
- -d.ka+5)Q=-d.ka+5;typeof d.c.nl=="function"&&d.c.nl(Q)}u.set(d.b.d)}function A(){designUtils.Ky(document,"mousemove",v);designUtils.Ky(document,"mouseup",A);if((k=="sw"||k=="se")&&(d.j.length>=3||d.g&&d.j.length==2)){var L=parseInt(d.j[d.j.length-1].style.top);if(d.cells.length>(d.g?2:1)){d.Kj();if(L>parseInt(d.j[d.j.length-1].style.top)+d.ka-3){for(var Q=false;parseInt(d.j[d.j.length-1].style.top)<L;){d.jf();Q=true}Q&&d.Kh()}}else d.ka=parseInt(d.j[d.j.length-1].style.top)-parseInt(d.j[d.j.length-
1167
- 2].style.top)}d.$b();d.hc();u.hide()}var u=pui.designer.Hj;if(u.container==null){u.container=document.body;u.init()}u.set(d.b.d);u.show();d.b.d.designer.Yo();if(!d.Nf)if(!(d.j.length<1||d.m.length<1)){var I=designUtils.getX(q),F=designUtils.getY(q);d.j[0].Fa=parseInt(d.j[0].style.top);d.j[0].hb=parseInt(d.j[0].style.left);d.m[0].Fa=parseInt(d.m[0].style.top);d.m[0].hb=parseInt(d.m[0].style.left);d.j[d.j.length-1].Fa=parseInt(d.j[d.j.length-1].style.top);d.j[d.j.length-1].hb=parseInt(d.j[d.j.length-
1166
+ -d.ka+5)Q=-d.ka+5;typeof d.c.nl=="function"&&d.c.nl(Q)}u.set(d.b.d)}function A(){designUtils.Ky(document,"mousemove",v);designUtils.Ky(document,"mouseup",A);if((k=="sw"||k=="se")&&(d.j.length>=3||d.g&&d.j.length==2)){var L=parseInt(d.j[d.j.length-1].style.top);if(d.cells.length>(d.g?2:1)){d.Kj();if(L>parseInt(d.j[d.j.length-1].style.top)+d.ka-3){for(var Q=false;parseInt(d.j[d.j.length-1].style.top)<L;){d.kf();Q=true}Q&&d.Kh()}}else d.ka=parseInt(d.j[d.j.length-1].style.top)-parseInt(d.j[d.j.length-
1167
+ 2].style.top)}d.$b();d.hc();u.hide()}var u=pui.designer.Hj;if(u.container==null){u.container=document.body;u.init()}u.set(d.b.d);u.show();d.b.d.designer.Yo();if(!d.Of)if(!(d.j.length<1||d.m.length<1)){var I=designUtils.getX(q),F=designUtils.getY(q);d.j[0].Fa=parseInt(d.j[0].style.top);d.j[0].hb=parseInt(d.j[0].style.left);d.m[0].Fa=parseInt(d.m[0].style.top);d.m[0].hb=parseInt(d.m[0].style.left);d.j[d.j.length-1].Fa=parseInt(d.j[d.j.length-1].style.top);d.j[d.j.length-1].hb=parseInt(d.j[d.j.length-
1168
1168
  1].style.left);d.m[d.m.length-1].Fa=parseInt(d.m[d.m.length-1].style.top);d.m[d.m.length-1].hb=parseInt(d.m[d.m.length-1].style.left);designUtils.Ek(document,"mousemove",v);designUtils.Ek(document,"mouseup",A);var H=d.b.d.designer;H.aa.start("Size Grid");H.selection.En(["left","top","number of rows","header height","column widths"]);designUtils.Le(q)}});d.container.appendChild(o);return o}function e(){var k="",o=d.yj["padding bottom"];if(o!=null&&o!="")k+="padding-bottom:"+o+";";o=d.yj["padding left"];
1169
1169
  if(o!=null&&o!="")k+="padding-left:"+o+";";o=d.yj["padding right"];if(o!=null&&o!="")k+="padding-right:"+o+";";o=d.yj["padding top"];if(o!=null&&o!="")k+="padding-top:"+o+";";return k}function f(k){function o(){d.sc||y(k,false)}if(!pui.na)k.style.cursor="pointer";T(k,"click",o);k.Am=o}function g(k){function o(I,F){return parseInt(I,10)===F.v}function q(I,F){return I===F.fieldName}function v(I,F){return p(F.v)}var A=d.cells[0];if(d.cj instanceof Array){m(d.cj,o,v);d.da()&&d.dataProps["load all rows"]!=
1170
- "true"?y(null,k):t(null,true)}else if(d.Hg instanceof Array)if(d.da()&&d.dataProps["load all rows"]!="true"){for(i=0;i<d.Hg.length;i++)d.jt[i]=d.getColumnIndexFromFieldName(d.Hg[i]);m(d.jt,o,v);y(null,k)}else{m(d.Hg,q,v);t(null,true)}else if(d.Jf!=null){if(A[d.Jf])d.da()&&d.dataProps["load all rows"]!="true"?y(A[d.Jf],k):t(A[d.Jf],true)}else if(d.dj!=null){var u=d.getColumnIndexFromFieldName(d.dj);if(d.da()&&d.dataProps["load all rows"]!="true")u!=null&&y(A[u],k);else u!=null&&t(A[u],true)}else return false;
1171
- return true}function h(){if(Va!=false){var k=K();if(k!=null)if(k.cols==null||k.cols!=Hc)M({});else return k}}function l(k,o,q){o=o&&d.da();if(d.sortable&&!o&&d.b.rh==null&&d.b.xg==null){k=k.sort;if(k!=null)if(k.columnId!=null&&k.descending!=null){var v;for(o=0;o<d.cells[0].length;o++)if(d.cells[0][o].v==k.columnId){v=d.cells[0][o];v.ra=!k.descending;break}v&&q(v,true)}else if(k.multiSort instanceof Array){Ta=[];m(k.multiSort,function(A,u){return u.v===A.columnId},function(A){return A.descending});
1170
+ "true"?y(null,k):t(null,true)}else if(d.Ig instanceof Array)if(d.da()&&d.dataProps["load all rows"]!="true"){for(i=0;i<d.Ig.length;i++)d.jt[i]=d.getColumnIndexFromFieldName(d.Ig[i]);m(d.jt,o,v);y(null,k)}else{m(d.Ig,q,v);t(null,true)}else if(d.Kf!=null){if(A[d.Kf])d.da()&&d.dataProps["load all rows"]!="true"?y(A[d.Kf],k):t(A[d.Kf],true)}else if(d.dj!=null){var u=d.getColumnIndexFromFieldName(d.dj);if(d.da()&&d.dataProps["load all rows"]!="true")u!=null&&y(A[u],k);else u!=null&&t(A[u],true)}else return false;
1171
+ return true}function h(){if(Va!=false){var k=K();if(k!=null)if(k.cols==null||k.cols!=Hc)M({});else return k}}function l(k,o,q){o=o&&d.da();if(d.sortable&&!o&&d.b.rh==null&&d.b.yg==null){k=k.sort;if(k!=null)if(k.columnId!=null&&k.descending!=null){var v;for(o=0;o<d.cells[0].length;o++)if(d.cells[0][o].v==k.columnId){v=d.cells[0][o];v.ra=!k.descending;break}v&&q(v,true)}else if(k.multiSort instanceof Array){Ta=[];m(k.multiSort,function(A,u){return u.v===A.columnId},function(A){return A.descending});
1172
1172
  q(null,true)}}}function n(){var k=h();if(k!=null){l(k,false,y);var o=k.filters;if(o!=null)for(var q=0;q<o.length;q++){var v=k.filters[q].text,A=d.cells[0][Ia(k.filters[q].column)];if(A==null)return;if(v!=null&&v!=""){d.X.v=A.v;d.X.col=A.col;d.X.text=v;d.um(A);A.sa=v}else{d.X.text=null;d.Jj(A);A.sa=null}}}}function m(k,o,q){for(var v=d.cells[0],A=0;A<k.length;A++)for(var u=0;u<v.length;u++){var I=v[u];if(o(k[A],I)){I.ra=q(k[A],I);Ta.push(I);break}}}function r(k,o){Ta=[];m([k],function(q,v){return v.v==
1173
1173
  q},function(){return o})}function p(k){var o=null;if(d.Ni.length==0)return false;o=d.Ni.length==1?d.Ni[0]:d.Ni[k];if(o==null)return false;if(o.length<1)return false;o=o.substr(0,1).toUpperCase();return o=="D"}function s(k){for(var o=d.cells[0],q=0;q<o.length;q++)o[q].ra=k?p(o[q].v):!p(o[q].v)}function t(k,o){var q;d.ac!=null&&d.ac.hide();if(!(k==null&&Ta.length<1)){var v;if(k!=null){v=k.ra;s(false);if(v==null)v=k.ra;r(k.v,!v)}var A;if(nc!==undefined)try{A=new Function("value1, value2, fieldName, isDescending, fieldDateFormat, fieldFormat, multiFields",
1174
- nc)}catch(u){if(u){console.log("Sort function error: ");console.error(u)}}if(d.b.rh==null&&d.b.xg==null){if(k!=null)Ic=k.v;pui.$d={};if(!d.Tc)for(q=0;q<d.dataArray.length;q++)d.dataArray[q].n=q+1;for(q=0;q<d.dataArray.length;q++)d.dataArray[q].Rn=q;d.Tc=true;C();var I="",F=null,H={},L=null,Q=function(O){if(typeof O.fieldName==="string")I=O.fieldName.toUpperCase();if(O.dateFormat)F=O.dateFormat;if(O.Bs)H=O.Bs};if(k!=null)Q(k);else if(nc!==undefined||typeof pui.gridSort=="function"){L=[];for(q=0;q<
1175
- Ta.length;q++){Q(Ta[q]);L.push({fieldName:I,fieldDateFormat:F,fieldFormat:H})}}q=function(O,S){function R(Ja,Oa,za){Z=O[Ja];V=S[Ja];if(Oa=="zoned"||Oa=="floating"){Z=Number(Z);V=Number(V)}else if(Oa=="reference"){Ja=d.ref[za];if(Ja!=null)if(Ja.dataType==7||Ja.dataType==9||Ja.dataType==10){Z=Number(Z);V=Number(V)}}else if(Oa=="graphic"){Z=pui.formatting.wg(Z);V=pui.formatting.wg(V)}}var Z,V;if(k!=null)R(k.ek,k.dataType,k.fieldName);else{for(var ga=false,ya,La,ia=0;ia<Ta.length;ia++){var ta=Ta[ia];
1174
+ nc)}catch(u){if(u){console.log("Sort function error: ");console.error(u)}}if(d.b.rh==null&&d.b.yg==null){if(k!=null)Ic=k.v;pui.$d={};if(!d.Tc)for(q=0;q<d.dataArray.length;q++)d.dataArray[q].n=q+1;for(q=0;q<d.dataArray.length;q++)d.dataArray[q].Rn=q;d.Tc=true;C();var I="",F=null,H={},L=null,Q=function(O){if(typeof O.fieldName==="string")I=O.fieldName.toUpperCase();if(O.dateFormat)F=O.dateFormat;if(O.Bs)H=O.Bs};if(k!=null)Q(k);else if(nc!==undefined||typeof pui.gridSort=="function"){L=[];for(q=0;q<
1175
+ Ta.length;q++){Q(Ta[q]);L.push({fieldName:I,fieldDateFormat:F,fieldFormat:H})}}q=function(O,S){function R(Ja,Oa,za){Z=O[Ja];V=S[Ja];if(Oa=="zoned"||Oa=="floating"){Z=Number(Z);V=Number(V)}else if(Oa=="reference"){Ja=d.ref[za];if(Ja!=null)if(Ja.dataType==7||Ja.dataType==9||Ja.dataType==10){Z=Number(Z);V=Number(V)}}else if(Oa=="graphic"){Z=pui.formatting.xg(Z);V=pui.formatting.xg(V)}}var Z,V;if(k!=null)R(k.ek,k.dataType,k.fieldName);else{for(var ga=false,ya,La,ia=0;ia<Ta.length;ia++){var ta=Ta[ia];
1176
1176
  R(ta.ek,ta.dataType,ta.fieldName);if(nc!==undefined||typeof pui.gridSort=="function"){L[ia].value1=Z;L[ia].value2=V}if(!ga&&Z!=V){v=!ta.ra;ya=Z;La=V;ga=true}}if(v==null)v=true;if(ya!=null)Z=ya;if(La!=null)V=La}return typeof A=="function"?X(A,Z,V,I,v,F,H,L):typeof pui.gridSort=="function"?X(pui.gridSort,Z,V,I,v,F,H,L):v&&Z<V||!v&&Z>V?-1:Z==V?v&&O.n<S.n||!v&&O.n>S.n?-1:1:1};var X=function(O,S,R,Z,V,ga,ya,La){O=O(S,R,Z,V,ga,ya,La);if(typeof O!="number")O=0;if(O>0)return V?-1:1;if(O<0)return V?1:-1;return 0};
1177
1177
  d.dataArray.sort(q);d.isFiltered()&&d.W.sort(q);w();d.h=1;if(d.ym>0&&o)for(q=0;q<d.dataArray.length;q++)if(d.dataArray[q].n==d.ym){d.h=q+1;if(d.Tt)d.Ej=d.h;d.Ut||d.$u(d.h);break}d.c!=null&&d.c.type=="sliding"&&d.c.xd(d.h);ed==false&&d.getData()}if(k!=null){v=!v;k.ra=v;J(k,v)}else{E();D()}if(Va&&!o){Q={};if(k!=null){Q.columnId=k.v;Q.descending=k.ra}else if(Ta.length>0){Q.multiSort=[];for(q=0;q<Ta.length;q++)Q.multiSort.push({columnId:Ta[q].v,descending:Ta[q].ra})}M(Q,"sort")}}}function w(){for(var k=
1178
1178
  [],o=0;o<d.dataArray.length;o++)k[d.dataArray[o].Rn]=o;o=pui.Kb(d.Wa)+".";for(var q in pui.N)if(q.substr(0,o.length)==o)if(q.substr(o.length).split(".").length==2){var v=pui.N[q][0];v.Yb=k[v.Yb]}}function z(){function k(o,q){return o.n>q.n?1:-1}E();G();d.h=1;if(d.da()&&d.wa==false){d.Eb="";d.mask();d.Lb()}else{d.dataArray.sort(k);d.isFiltered()&&d.W.sort(k);w()}d.c!=null&&d.c.type=="sliding"&&d.c.xd(d.h);d.getData();d.clearState("sort")}function y(k,o){var q,v;d.ac!=null&&d.ac.hide();if(!(k==null&&
@@ -1181,27 +1181,27 @@ Ta.length<1)){if(k!=null){var A=bb(k.v);Ic=k.v+A;q=k.ra;s(false);if(q==null)q=k.
1181
1181
  q.appendChild(o)}function G(){for(var k=0;k<d.cells[0].length;k++){var o=d.cells[0][k];o.removeAttribute("sortorder");if(o.ed!=null)o.ed.style.display="none"}}function D(){G();for(var k=0;k<Ta.length;k++){var o=Ta[k];o.setAttribute("sortorder",k);if(o.ed==null){o.ed=document.createElement("div");o.ed.onclick=function(q){if(!pui.He(q)){ub(q);d.Gu()}};B(o,o.ed)}o.ed.className=o.ra===true?"grid-sort-arrow-descending":"grid-sort-arrow-ascending";o.ed.style.display=""}}function C(){var k,o={};for(k=0;k<
1182
1182
  d.Y.length;k++)o[d.Y[k]]=k;var q=pui.Kb(d.Wa)+".";for(var v in pui.N)if(v.substr(0,q.length)==q){var A=v.substr(q.length).split(".");if(A.length==2){A=o[A[0]];if(A!=null){var u=pui.N[v][0];if(u!=null&&u.n!=null){var I;if(!d.Tc&&u.Yb!=null)if(d.dataArray[u.Yb]&&d.dataArray[u.Yb].n!=undefined&&d.dataArray[u.Yb].n!==u.Yb)for(k=0;k<d.dataArray.length;k++){if(d.dataArray[k].n===u.n){I=d.dataArray[k];break}}else I=d.dataArray[u.Yb];else for(k=0;k<d.dataArray.length;k++)if(d.dataArray[k].n===u.n){I=d.dataArray[k];
1183
1183
  break}if(I!=null){k=u.value;if(u.comboBoxWidget!=null)k=u.comboBoxWidget.getValue();if(u.k!=null)k=u.k.getValue();if(u.L!=null){k="";if(u.L.Pd&&u.L.Mh!=null)k=u.L.Mh;else if(!u.L.Pd&&u.L.Lh!=null)k=u.L.Lh}if(u.tagName=="INPUT"&&u.type=="checkbox")k=u.checked?u.checkedValue!=null&&u.checkedValue!=""?u.checkedValue:"1":u.uncheckedValue!=null&&u.uncheckedValue!=""?u.uncheckedValue:" ";if((u.isLoading==null||u.isLoading===false)&&u.modified===true){var F=u.M.value,H=u.M.revert;u.M.value=k;u.M.revert=
1184
- true;k=pui.uc.format(u.M);u.M.value=F;u.M.revert=H;if(typeof k=="object")k="";I[A]=k}}}}}}}function K(){var k=null;if(pui.Ig()&&localStorage[d.Qb]!=null||pui.jp()&&sessionStorage[d.Qb]!=null||Ra&&pui.Gj[d.Qb]!=null)try{k=mb==true?JSON.parse(sessionStorage[d.Qb]):Ra==true?JSON.parse(pui.Gj[d.Qb]):JSON.parse(localStorage[d.Qb])}catch(o){}if(d.de!=null&&d.de!="")try{k=JSON.parse(d.de)}catch(q){console.warn("Error parsing stored state: "+q)}else if(k!=null&&k!="")d.de=JSON.stringify(k);return k}function M(k,
1184
+ true;k=pui.uc.format(u.M);u.M.value=F;u.M.revert=H;if(typeof k=="object")k="";I[A]=k}}}}}}}function K(){var k=null;if(pui.Jg()&&localStorage[d.Qb]!=null||pui.jp()&&sessionStorage[d.Qb]!=null||Ra&&pui.Gj[d.Qb]!=null)try{k=mb==true?JSON.parse(sessionStorage[d.Qb]):Ra==true?JSON.parse(pui.Gj[d.Qb]):JSON.parse(localStorage[d.Qb])}catch(o){}if(d.de!=null&&d.de!="")try{k=JSON.parse(d.de)}catch(q){console.warn("Error parsing stored state: "+q)}else if(k!=null&&k!="")d.de=JSON.stringify(k);return k}function M(k,
1185
1185
  o){var q;if(o==null)q=k;else{q=K();if(q==null)q={};q[o]=k}q.cols=Hc;d.de=JSON.stringify(q);if(Va==true)if(mb==true)sessionStorage[d.Qb]=JSON.stringify(q);else if(Ra==true)pui.Gj[d.Qb]=JSON.stringify(q);else localStorage[d.Qb]=JSON.stringify(q)}function U(k,o){if(!d.designMode){var q,v=d.Go[k],A=-1;if(o!=null){A=$d(d,o-(d.g?0:1));q=d.isFiltered()?d.W:d.dataArray}if(pui.cc(v)){var u=null,I=null;if(A>=0){u=A+1;if(q[A]!=null&&q[A].n!=null)u=q[A].n;I=d.Wa}pui.runLogic(v.routine,u,I)}else if(v!=null&&v!=
1186
1186
  "")try{pui.temporary_property=d;eval("var grid = pui.temporary_property;");pui.temporary_property=d.b;eval("var dom = pui.temporary_property;");eval("var row = arguments[1];");eval("var rowNumber = arguments[1];");pui.temporary_property=d.eq;eval("var rowclicked = pui.temporary_property");pui.temporary_property=d.eo;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];");
1187
1187
  if(o!=null){d.g||(o-=1);pui.temporary_property=d.cells[o];eval("var rowCells = pui.temporary_property;")}if(A>=0){u=A+1;eval("rowNumber = "+u);if(q[A]!=null&&q[A].n!=null)u=q[A].n;eval("row = "+u);eval("var rrn = "+u)}delete pui.temporary_property;if(eval(v)==false)return false}catch(F){pui.Ea(F,k.substr(0,1).toUpperCase()+k.substr(1)+" Error:\n");return false}}}function da(k,o){var q=document.createElement("div");q.style.position="absolute";q.style.left="200px";q.style.top="200px";q.style.width=
1188
1188
  "16px";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.Ex;q.title=o;q.style.color="white";q.style.padding="0px";q.onmousedown=function(v){designUtils.Le(v)};d.container.appendChild(q);return q}function aa(){if(d.designMode)if(Wa!=null)if(Y!=null){var k=0,o=0;k=d.j.length;if(k>0){o=parseInt(d.j[k-1].style.left);
1189
1189
  k=parseInt(d.j[k-1].style.top)-20}else{o=d.pc("left");k=d.pc("top")-20}Wa.style.left=o+"px";Wa.style.top=k+"px";k-=14;Y.style.left=o+"px";Y.style.top=k+"px";k=d.m.length;if(k>0){o=parseInt(d.m[k-1].style.left)-20;k=parseInt(d.m[k-1].style.top)+5}else{o=d.pc("left")-20;k=d.pc("top")+5}fa.style.left=o+"px";fa.style.top=k+"px";o-=14;sa.style.left=o+"px";sa.style.top=k+"px";o=d.pc("left")-2;k=d.pc("top")-2;Ca.style.left=o+"px";Ca.style.top=k+"px";o+=d.pc("width")-2;Xa.style.left=o+"px";Xa.style.top=k+
1190
- "px";k+=d.pc("height")+1;if(d.i.ug||d.i.Ad||d.i.$h||d.i.bi||d.i.zm)k+=25;qa.style.left=o+"px";qa.style.top=k+"px";o=d.pc("left")-2;ca.style.left=o+"px";ca.style.top=k+"px"}}function N(k){if(k==null)return false;var o=false;if(k.selected==null)if(d.Db!=null){if(d.mm==null)for(var q=0;q<d.Y.length;q++)if(pui.K(d.Db.fieldName)==d.Y[q]){d.mm=q;break}if(d.mm!=null)if(k[d.mm]==d.Xh)k.selected=true}if(k.selected==true)o=true;return o}function ha(k,o,q){if(!(!d.designMode&&o!=true)){if(!d.designMode&&o==
1191
- true)d.b.parentNode.onselectstart=ba;if(q!=true&&k.style.cursor!="pointer")k.style.cursor="default";T(k,"mousedown",ea)}}function ba(k){if(d&&d.dragging){ub(k);return false}}function ea(k){function o(O){O=pui.Bg(O);var S=O.y-F,R=O.x-I;if(P=="dspf"&&d.designMode){S=Math.round(S*Hb.Sm);R=Math.round(R*Hb.Sm)}if(d.g&&v.row==0){if(sb==null){sb=v.cloneNode(true);sb.style.position="absolute";sb.style.border="1px solid #999999";sb.style.zIndex=d.Bt;Qb=document.createElement("div");Qb.className=d.b.className;
1190
+ "px";k+=d.pc("height")+1;if(d.i.vg||d.i.Ad||d.i.$h||d.i.bi||d.i.zm)k+=25;qa.style.left=o+"px";qa.style.top=k+"px";o=d.pc("left")-2;ca.style.left=o+"px";ca.style.top=k+"px"}}function N(k){if(k==null)return false;var o=false;if(k.selected==null)if(d.Db!=null){if(d.mm==null)for(var q=0;q<d.Y.length;q++)if(pui.K(d.Db.fieldName)==d.Y[q]){d.mm=q;break}if(d.mm!=null)if(k[d.mm]==d.Xh)k.selected=true}if(k.selected==true)o=true;return o}function ha(k,o,q){if(!(!d.designMode&&o!=true)){if(!d.designMode&&o==
1191
+ true)d.b.parentNode.onselectstart=ba;if(q!=true&&k.style.cursor!="pointer")k.style.cursor="default";T(k,"mousedown",ea)}}function ba(k){if(d&&d.dragging){ub(k);return false}}function ea(k){function o(O){O=pui.Cg(O);var S=O.y-F,R=O.x-I;if(P=="dspf"&&d.designMode){S=Math.round(S*Hb.Sm);R=Math.round(R*Hb.Sm)}if(d.g&&v.row==0){if(sb==null){sb=v.cloneNode(true);sb.style.position="absolute";sb.style.border="1px solid #999999";sb.style.zIndex=d.Bt;Qb=document.createElement("div");Qb.className=d.b.className;
1192
1192
  Qb.style.borderColor="transparent";v.parentNode.parentNode.appendChild(Qb);Qb.appendChild(sb);sb.style.display="none";setTimeout(function(){if(sb!=null)sb.style.display=""},150)}sb.style.top=d.b.Fa+S+"px";var Z=parseInt(v.style.left);if(isNaN(Z))Z=v.getBoundingClientRect().left;sb.style.left=d.b.hb+Z+R+"px";var V=null;if(S>-25&&S<parseInt(d.b.style.height))for(Z=0;Z<d.m.length;Z++){var ga=d.m[Z],ya=parseInt(ga.style.left),La=O.x;if(d.designMode&&P=="dspf")ya=Math.round(ya*Hb.ki);La-=H.x;if(Math.abs(ya-
1193
1193
  La)<15){if(Ya!=null&&Ya.parentNode!=ga.parentNode){Ya.parentNode.removeChild(Ya);Ya=null}if(Ya==null){Ya=document.createElement("img");Ya.src=pui.normalizeURL("/profoundui/proddata/images/grids/column-pointer.gif");Ya.style.position="absolute";Ya.style.zIndex=d.Bt+1;d.designMode?Hb.designer.container.appendChild(Ya):document.body.appendChild(Ya)}O=parseInt(ga.style.top)-10;ga=parseInt(ga.style.left)-4;O+=X.y;ga+=X.x;Ya.style.display="";Ya.style.top=O+"px";Ya.style.left=ga+"px";V=Z;Ya.Cl=V;break}}if(V==
1194
1194
  null&&Ya!=null){Ya.style.display="none";Ya.Cl=null}}else{Z=d.b.d;if(Z!=null){pui.designer.wB(O.x,O.y,Z.designer);O=Z.designer.selection;if(O.Nu){R+=d.b.hb;S+=d.b.Fa;R=O.ck(R,pui.Il);S=O.ck(S,pui.Jl,P=="genie"?3:0);R-=d.b.hb;S-=d.b.Fa}}d.Lc(function(ia){ia.style.top=ia.Fa+S+"px";ia.style.left=ia.hb+R+"px"});if(Z!=null)Z.moved=true;d.setScrollBar();O=pui.designer.Hj;if(O.container==null){O.container=document.body;O.init()}O.set(d.b.d);O.show()}}function q(){var O,S;d.dragging=false;if(sb!=null){sb.parentNode.removeChild(sb);
1195
1195
  Qb.parentNode.removeChild(Qb);Qb=sb=null}var R=false;if(Ya!=null){Ya.style.display="none";if(Ya.Cl!=null){S=d.b.d;S!=null&&S.designer.aa.Dn("Move Column",S.designer);d.moveColumn(v.col,Ya.Cl);if(d.ma){var Z=d.fa.map(function(ga){if(ga.showing){var ya=Ia(ga.columnId);ga.currentColumn=ya;ga.savedColumn=ya}else ga.currentColumn=-1;return ga});O=[];d.cells[0].forEach(function(ga){O.push(ga.v)});Z.Li=O;d.fa=Z}R=true;Ya.Cl=null;if(Va){if(!O){O=[];for(S=0;S<d.cells[0].length;S++)O.push(d.cells[0][S].v)}M(O,
1196
- "colSequence");if(d.ma){if(S=h())if(S=S.hidableColState){S.cols=Z;S.headings=d.columnHeadings}else S={cols:Z,headings:d.columnHeadings};else S={cols:Z,headings:d.columnHeadings};var V=d.Df().split(",").map(function(ga){return Number(ga)});M(S,"hidableColState");M(V,"colWidths");d.fa=Z}}}}if(d.designMode){S=d.b.d;if(S!=null)if(S.moved){R=S.designer;if(R.us!=null)d.Yx();else{A&&R.Ne.style.display==""&&d.Zx();R.Cn();d.$b();P=="dspf"&&pui.ide.refreshRibbon()}}else R||d.b.d.designer.aa.Ny();d.hc();R=pui.designer.Hj;
1197
- R!=null&&R.container!=null&&R.hide();designUtils.XA(d.b.d.designer)}Zb(document,"mousemove",o);Zb(document,"mouseup",q)}for(var v=k.target;v!=null&&v.row==null;)v=v.parentNode;if(v==null||v.row==null)return false;var A=P=="dspf"&&d.b.parentNode.getAttribute("container")=="true",u=pui.Bg(k),I=u.x,F=u.y;if(d.designMode){d.b.d.designer.Yo();P=="dspf"&&Ext.menu.MenuMgr.hideAll();d.Te();if(pui.He(k)){if(d.b.d){d.b.d.designer.sx.hide();d.b.d.designer.rz(k)}designUtils.Le(k);k.stopPropagation&&k.stopPropagation();
1198
- return false}d.b.d!=null&&d.b.d.designer.bq!=null&&d.b.d.designer.bq.hide();if(d.Nf){designUtils.Le(k);return}d.b.d.Az.left=d.b.style.left;d.b.d.Az.top=d.b.style.top;designUtils.YA(d.b.d.designer,false,A,false,true,I,F,d.b.d)}else d.ac!=null&&!pui.He(k)&&d.ac.hide();d.dragging=true;d.Lc(function(O){O.hb=pui.ae(O.style.left);O.Fa=pui.ae(O.style.top)});var H={x:0,y:0};if(d.designMode){u=pui.Zc(d.b.d.designer.container,true);H.x+=u[0]}else{u=pui.runtimeContainer.getBoundingClientRect();if(typeof window.pageXOffset==
1199
- "number"){H.x=u.left+window.pageXOffset;H.y=u.top+window.pageYOffset}else{H.x=u.left+document.documentElement.scrollLeft;H.y=u.top+document.documentElement.scrollTop}u=d.b.parentNode;var L=pui.getActiveContainer();if(u.Ac==true){H.x+=parseInt(u.style.left);H.y+=parseInt(u.style.top)}else if(L!=null&&L.Ac===true){H.x+=L.offsetLeft;H.y+=L.offsetTop}}if(A){var Q=pui.layout.Ef(d.b.parentNode);H.x+=Q.x;H.y+=Q.y}var X={x:0,y:0};if(d.designMode){if(A)X=Q}else{X.y=H.y;X.x=H.x}T(document,"mousemove",o);T(document,
1196
+ "colSequence");if(d.ma){if(S=h())if(S=S.hidableColState){S.cols=Z;S.headings=d.columnHeadings}else S={cols:Z,headings:d.columnHeadings};else S={cols:Z,headings:d.columnHeadings};var V=d.Ef().split(",").map(function(ga){return Number(ga)});M(S,"hidableColState");M(V,"colWidths");d.fa=Z}}}}if(d.designMode){S=d.b.d;if(S!=null)if(S.moved){R=S.designer;if(R.us!=null)d.Yx();else{A&&R.Ne.style.display==""&&d.Zx();R.Cn();d.$b();P=="dspf"&&pui.ide.refreshRibbon()}}else R||d.b.d.designer.aa.Ny();d.hc();R=pui.designer.Hj;
1197
+ R!=null&&R.container!=null&&R.hide();designUtils.XA(d.b.d.designer)}Zb(document,"mousemove",o);Zb(document,"mouseup",q)}for(var v=k.target;v!=null&&v.row==null;)v=v.parentNode;if(v==null||v.row==null)return false;var A=P=="dspf"&&d.b.parentNode.getAttribute("container")=="true",u=pui.Cg(k),I=u.x,F=u.y;if(d.designMode){d.b.d.designer.Yo();P=="dspf"&&Ext.menu.MenuMgr.hideAll();d.Te();if(pui.He(k)){if(d.b.d){d.b.d.designer.sx.hide();d.b.d.designer.rz(k)}designUtils.Le(k);k.stopPropagation&&k.stopPropagation();
1198
+ return false}d.b.d!=null&&d.b.d.designer.bq!=null&&d.b.d.designer.bq.hide();if(d.Of){designUtils.Le(k);return}d.b.d.Az.left=d.b.style.left;d.b.d.Az.top=d.b.style.top;designUtils.YA(d.b.d.designer,false,A,false,true,I,F,d.b.d)}else d.ac!=null&&!pui.He(k)&&d.ac.hide();d.dragging=true;d.Lc(function(O){O.hb=pui.ae(O.style.left);O.Fa=pui.ae(O.style.top)});var H={x:0,y:0};if(d.designMode){u=pui.Zc(d.b.d.designer.container,true);H.x+=u[0]}else{u=pui.runtimeContainer.getBoundingClientRect();if(typeof window.pageXOffset==
1199
+ "number"){H.x=u.left+window.pageXOffset;H.y=u.top+window.pageYOffset}else{H.x=u.left+document.documentElement.scrollLeft;H.y=u.top+document.documentElement.scrollTop}u=d.b.parentNode;var L=pui.getActiveContainer();if(u.Ac==true){H.x+=parseInt(u.style.left);H.y+=parseInt(u.style.top)}else if(L!=null&&L.Ac===true){H.x+=L.offsetLeft;H.y+=L.offsetTop}}if(A){var Q=pui.layout.Ff(d.b.parentNode);H.x+=Q.x;H.y+=Q.y}var X={x:0,y:0};if(d.designMode){if(A)X=Q}else{X.y=H.y;X.x=H.x}T(document,"mousemove",o);T(document,
1200
1200
  "mouseup",q);ub(k);if(d.designMode&&d.b.d!=null){d.b.d.moved=false;k=d.b.d.designer;Q=k.selection;u="Move Selection";if(Q.Yd.length==1)u="Move Grid";if(!(d.g&&v.row==0)){k.aa.start(u);k.aa.Bp=true;Q.En(["left","top","parent tab panel","parent tab panel"]);k.aa.Bp=false}}}function pa(k,o){for(var q=[],v=k.firstChild;v!=null;){v.style.position=="absolute"&&!v.kp&&q.push(v);v=v.nextSibling}o.innerHTML="";for(var A=0;A<q.length;A++){v=q[A];v.parentNode.removeChild(v);o.appendChild(v)}}function Da(k,o,
1201
- q,v){if(d.designMode||v){var A=k[o];if(d.borderWidth!==null&&d.borderWidth<Aa){A.style.borderWidth="2px";if(!q)A.style.width=parseInt(A.style.width)+2+"px"}if(!q)A.style.borderTopStyle=db;if(q)A.style.borderRightStyle=db;if(q)A.style.cursor="w-resize";if(!q)k[o].style.cursor="n-resize";d.Te();T(A,"mousedown",function(u){function I(R){var Z=pui.Bg(R);R=Z.y-Q;Z=Z.x-L;if(P=="dspf"&&d.designMode){R=Math.round(R*Hb.Sm);Z=Math.round(Z*Hb.Sm)}x(Z,R,o,q,O,X);if(!q&&o==k.length-1&&k.length>2&&d.c!=null&&d.c.type==
1201
+ q,v){if(d.designMode||v){var A=k[o];if(d.borderWidth!==null&&d.borderWidth<Aa){A.style.borderWidth="2px";if(!q)A.style.width=parseInt(A.style.width)+2+"px"}if(!q)A.style.borderTopStyle=db;if(q)A.style.borderRightStyle=db;if(q)A.style.cursor="w-resize";if(!q)k[o].style.cursor="n-resize";d.Te();T(A,"mousedown",function(u){function I(R){var Z=pui.Cg(R);R=Z.y-Q;Z=Z.x-L;if(P=="dspf"&&d.designMode){R=Math.round(R*Hb.Sm);Z=Math.round(Z*Hb.Sm)}x(Z,R,o,q,O,X);if(!q&&o==k.length-1&&k.length>2&&d.c!=null&&d.c.type==
1202
1202
  "sliding"){R=R;if(R<-d.ka+5)R=-d.ka+5;typeof d.c.nl=="function"&&d.c.nl(R)}d.designMode?H.set(d.b.d):d.alignColumnTotals()}function F(){A.dragging=false;d.dragging=false;var R=d.borderWidth;if(R===null||R<Aa)R=Aa;A.style.borderWidth=R+"px";A.style.borderColor=d.borderColor;if(!q)A.style.borderTopStyle=db;if(q)A.style.borderRightStyle=db;if(!q&&o==k.length-1&&(o>=2||d.g&&o==1)){R=parseInt(A.style.top);if(d.cells.length>(d.g?2:1)){d.Kj();if(R>parseInt(k[k.length-1].style.top)+d.ka-3){for(var Z=false;parseInt(k[k.length-
1203
- 1].style.top)<R;){d.jf();Z=true}Z&&d.Kh()}}else d.ka=parseInt(k[k.length-1].style.top)-parseInt(k[k.length-2].style.top)}if(d.designMode){d.$b();d.hc();H.hide()}else{d.alignColumnTotals();if(q&&Va){if(d.ma)R=d.Df().split(",").map(function(ga){return Number(ga)});else{R=Array(d.cells[0].length);for(Z=0;Z<d.cells[0].length;Z++){var V=d.cells[0][Z];R[V.v]=V.clientWidth}}M(R,"colWidths")}}Zb(document,"mousemove",I);Zb(document,"mouseup",F)}if(d.designMode){var H=pui.designer.Hj;if(H.container==null){H.container=
1204
- document.body;H.init()}H.set(d.b.d);if(o==0||o==k.length-1)H.show()}if(d.designMode){d.b.d.designer.Yo();if(d.Nf){designUtils.Le(u);return}}else d.ac!=null&&d.ac.hide();A.dragging=true;d.dragging=true;var L=Xc(u),Q=Yc(u),X=parseInt(A.style.left),O=parseInt(A.style.top);d.Te();var S=3;if(d.borderWidth>3)S=d.borderWidth;A.style.borderWidth=S+"px";A.style.borderColor="#333333";if(!q)A.style.borderTopStyle="solid";if(q)A.style.borderRightStyle="solid";T(document,"mousemove",I);T(document,"mouseup",F);
1203
+ 1].style.top)<R;){d.kf();Z=true}Z&&d.Kh()}}else d.ka=parseInt(k[k.length-1].style.top)-parseInt(k[k.length-2].style.top)}if(d.designMode){d.$b();d.hc();H.hide()}else{d.alignColumnTotals();if(q&&Va){if(d.ma)R=d.Ef().split(",").map(function(ga){return Number(ga)});else{R=Array(d.cells[0].length);for(Z=0;Z<d.cells[0].length;Z++){var V=d.cells[0][Z];R[V.v]=V.clientWidth}}M(R,"colWidths")}}Zb(document,"mousemove",I);Zb(document,"mouseup",F)}if(d.designMode){var H=pui.designer.Hj;if(H.container==null){H.container=
1204
+ document.body;H.init()}H.set(d.b.d);if(o==0||o==k.length-1)H.show()}if(d.designMode){d.b.d.designer.Yo();if(d.Of){designUtils.Le(u);return}}else d.ac!=null&&d.ac.hide();A.dragging=true;d.dragging=true;var L=Xc(u),Q=Yc(u),X=parseInt(A.style.left),O=parseInt(A.style.top);d.Te();var S=3;if(d.borderWidth>3)S=d.borderWidth;A.style.borderWidth=S+"px";A.style.borderColor="#333333";if(!q)A.style.borderTopStyle="solid";if(q)A.style.borderRightStyle="solid";T(document,"mousemove",I);T(document,"mouseup",F);
1205
1205
  ub(u);if(d.designMode){u=d.b.d.designer;q&&u.aa.start("Size Grid Column");q||u.aa.start("Size Grid Rows");u.selection.En(["left","top","number of rows","row height","header height","column widths"])}});T(A,"mouseover",function(){if(!d.dragging){var u=3;if(d.borderWidth>3)u=d.borderWidth;A.style.borderWidth=u+"px";A.style.borderColor="#333333";if(!q)A.style.borderTopStyle="solid";if(q)A.style.borderRightStyle="solid"}});T(A,"mouseout",function(){if(!A.dragging){var u=d.borderWidth;if(u===null||u<Aa)u=
1206
1206
  Aa;A.style.borderWidth=u+"px";A.style.borderColor=d.borderColor;if(!q)A.style.borderTopStyle=db;if(q)A.style.borderRightStyle=db}})}}function x(k,o,q,v,A,u){var I=pui["grid column resize style"]!=="simple";if(d.qd)I=false;var F;F=v?d.m:d.j;var H=F[q];if(v)o=0;v||(k=0);o=A+o;u=u+k;if(v){if(q>0&&u<parseInt(F[q-1].style.left)+5)u=parseInt(F[q-1].style.left)+5;if(q<F.length-1&&u>parseInt(F[q+1].style.left)-5)u=parseInt(F[q+1].style.left)-5}if(!v){if(q>0&&o<parseInt(F[q-1].style.top)+5)o=parseInt(F[q-
1207
1207
  1].style.top)+5;if(q<F.length-1&&o>parseInt(F[q+1].style.top)-6)o=parseInt(F[q+1].style.top)-6}if(!v)H.style.top=o+"px";if(v){if(I&&q!=0){A=u-H.offsetLeft;for(k=q+1;k<F.length;k++){var L=F[k];L.style.left=L.offsetLeft+A+"px"}}H.style.left=u+"px"}if(!v&&(q!=0||!d.g)&&q!=F.length-1){d.ka=q<F.length-1?parseInt(F[q+1].style.top)-parseInt(F[q].style.top):parseInt(F[q].style.top)-parseInt(F[q-1].style.top);H=o;for(k=q+1;k<F.length;k++){H+=d.ka;F[k].style.top=H+"px"}H=o;o=0;if(d.g)o=1;for(k=q-1;k>=o;k-=
@@ -1216,66 +1216,66 @@ pui.Po(u);I=pui.Ns(u);var X={x:0,y:0};L=pui.Zc(pui.runtimeContainer);if(P=="geni
1216
1216
  10-L[0];L=document.documentElement.clientHeight+((window.pageYOffset||O.scrollTop)-(O.clientTop||0))-Q.clientHeight-10-L[1];if(H!=null&&P=="dspf"&&H.getAttribute("container")=="true"){X=H.offsetWidth>0?H.offsetWidth-Q.clientWidth:H.firstChild.offsetWidth;L=H.offsetHeight>0?H.offsetHeight-Q.clientHeight:H.firstChild.offsetHeight}if(F>X)F=X;if(I>L)I=L;if(F<0)F=0;if(I<0)I=0;Q.style.left=F+"px";Q.style.top=I+"px";ub(u);u!=null&&u.stopPropagation!=null&&u.stopPropagation();setTimeout(function(){Q.bk=false},
1217
1217
  250);return false}}}}};pui.Fz(q,function(u){u.button=3;q.onmousedown(u)});q.onclick=function(u){var I,F,H=tb(u);if(!H.Cw){d.eq=k;d.eo=o;d["row clicked"]=d.eq;d["column clicked"]=d.eo;var L=pui.He(u);if(H.tagName!="INPUT"&&H.tagName!="SELECT"&&H.tagName!="OPTION"&&H.tagName!="BUTTON"){d.g||U("onrowclick",k+1,L,u,o);d.g&&k!=0&&U("onrowclick",k,L,u,o)}if(!d.designMode){d.b.su=false;d.rm(k);I=(H.tagName=="INPUT"||H.tagName=="SELECT"||H.tagName=="BUTTON")&&!H.disabled&&!H.readOnly;var Q=d.g?1:0;if(d.be&&
1218
1218
  !I&&(k>0||!d.g))if(d.h!=null&&!isNaN(d.h)&&d.h>0){var X=d.j.length-1;if(d.singleSelection||d.Pi&&!u.ctrlKey&&!u.shiftKey&&!u.metaKey){var O=k+d.h-(d.g?1:0);for(I=0;I<d.dataArray.length;I++){F=I-d.h+1+Q;var S=O<=d.dataArray.length&&d.dataArray[O-1].selected;if(d.isFiltered())S=O<=d.W.length&&d.W[O-1].selected;if(!L||!S)if(!u.ctrlKey&&!u.metaKey||F!=k)d.dataArray[I].selected==true&&ka(d.dataArray[I],false,I);F>=Q&&F<X&&d.Ob==0&&d.fd(F)}if(d.isFiltered()||d.Ob>0)ce(d)}O=d.isFiltered()?d.W:d.dataArray;
1219
- var R=k+d.h-1+(d.g?0:1);d.Ob>0&&d.h>0&&de(d,null,k,function(ga){R=ga+1});if(d.Pi&&u.shiftKey){if(d.Wh==null)d.Wh=R;L=d.Wh;var Z=R;if(L>Z){I=L;L=Z;Z=I}for(I=0;I<O.length;I++){F=I-d.h+1;if(I+1>=L&&I+1<=Z)O[I].selected!=true&&ka(O[I],true,I);else O[I].selected==true&&ka(O[I],false,I);F>=Q&&F<X&&d.Ob==0&&d.fd(F)}d.Ob>0&&ce(d)}else if(O[R-1]!=null&&O[R-1].length>0){if(O[R-1].selected==true&&!L){ka(O[R-1],false,R-1,true);if(d.b.tf){d.b.tf=0;d.b.su=true}}else ka(O[R-1],true,R-1,true);if(d.Ob>0)Z=$d(d,k);
1219
+ var R=k+d.h-1+(d.g?0:1);d.Ob>0&&d.h>0&&de(d,null,k,function(ga){R=ga+1});if(d.Pi&&u.shiftKey){if(d.Wh==null)d.Wh=R;L=d.Wh;var Z=R;if(L>Z){I=L;L=Z;Z=I}for(I=0;I<O.length;I++){F=I-d.h+1;if(I+1>=L&&I+1<=Z)O[I].selected!=true&&ka(O[I],true,I);else O[I].selected==true&&ka(O[I],false,I);F>=Q&&F<X&&d.Ob==0&&d.fd(F)}d.Ob>0&&ce(d)}else if(O[R-1]!=null&&O[R-1].length>0){if(O[R-1].selected==true&&!L){ka(O[R-1],false,R-1,true);if(d.b.uf){d.b.uf=0;d.b.su=true}}else ka(O[R-1],true,R-1,true);if(d.Ob>0)Z=$d(d,k);
1220
1220
  d.fd(k,true,Z)}d.Wh=R}if(d.w.length>0&&d.w[0].id=="_msgsfltext"){Q=d.cells[k][0];var V;if(Q!=null)V=Q.firstChild;V!=null&&H!=V&&V.onclick!=null&&typeof V.onclick=="function"&&V.onclick()}Q=H;if((I=H.parentNode)&&I.row&&I.col)Q=I;if(Q.row!=null&&Q.col!=null&&Q.tagName=="DIV"&&Q.parentNode.grid==d){V=String(Q.col);for(I=0;I<d.w.length;I++){X=d.w[I];if(X.column==V&&X["cursor row"]!=null&&X["cursor column"]!=null){F=d.h+Q.row;if(d.g)F-=1;L=false;if(X&&X.domEls)for(O=0;O<X.domEls.length;O++){Z=X.domEls[O];
1221
- if(Z!=null&&Z.Yb==F-1){pui.Zd(u,Z);L=true}}if(L)break}}}if(typeof pui["grid text selection"]=="undefined"||pui["grid text selection"]==false)if(H.tagName!="INPUT"&&H.tagName!="SELECT"&&H.tagName!="TEXTAREA"&&H.tagName!="BUTTON"&&getSelection().toString()==""){Q=d.cells[k][0];ra(Q)}if(d.Dg&&d.bg!==null&&R!==undefined){u=Ab(d.b.id+d.Im+"."+R);u!==null&&u.focus()}}}};q.ondblclick=function(u){if(d.designMode){if(d.g&&k==0){var I=d.b.d;if(!pui.o(I.properties["column headings"])&&!pui.Mb(I.properties["column headings"])){I.designer.Kf.Ep=
1221
+ if(Z!=null&&Z.Yb==F-1){pui.Zd(u,Z);L=true}}if(L)break}}}if(typeof pui["grid text selection"]=="undefined"||pui["grid text selection"]==false)if(H.tagName!="INPUT"&&H.tagName!="SELECT"&&H.tagName!="TEXTAREA"&&H.tagName!="BUTTON"&&getSelection().toString()==""){Q=d.cells[k][0];ra(Q)}if(d.Eg&&d.cg!==null&&R!==undefined){u=Ab(d.b.id+d.Im+"."+R);u!==null&&u.focus()}}}};q.ondblclick=function(u){if(d.designMode){if(d.g&&k==0){var I=d.b.d;if(!pui.o(I.properties["column headings"])&&!pui.Mb(I.properties["column headings"])){I.designer.Lf.Ep=
1222
1222
  function(F){for(;F.indexOf("\n")!=-1;)F=F.replace("\n","<br/>");for(;F.indexOf("\r")!=-1;)F=F.replace("\r","");if(q.firstChild!=null)q.firstChild.innerHTML=F;else q.innerHTML=F;F="";for(var H=0;H<d.cells[0].length;H++){if(H!=0)F+=",";var L=d.cells[0][H],Q=Lc(L);if(L.firstChild!=null&&L.firstChild.tagName=="DIV")Q=L.firstChild.innerHTML;F+=Q}I.designer.aa.add(I,"column headings");I.properties["column headings"]=F;d.setProperty("column headings",F);I.pb["column headings"]=true;I.nd=true;I.designer.od[I.designer.Na.ub]=
1223
- true;I.designer.ob.Uh("column headings")};I.designer.Kf.TA=function(F,H,L){for(var Q="",X=0;X<d.cells[0].length;X++){var O=d.cells[0][X].style[H];if(O==null)O="";if(F.indexOf("color")>=0)O=pui.Ft(O);if(d.cells[0][X]==q)O=L;if(X!=0)Q+=",";Q+=O}I.properties[F]=Q;d.setProperty(F,Q);I.pb[F]=L!="";I.nd=true;I.designer.od[I.designer.Na.ub]=true;I.designer.ob.Uh(F)};I.designer.Kf.show(I,q,"grid")}}}else{d.g||U("onrowdblclick",k+1,null,u,o);d.g&&k!=0&&U("onrowdblclick",k,null,u,o)}};d.cells[k]||(d.cells[k]=
1223
+ true;I.designer.ob.Uh("column headings")};I.designer.Lf.TA=function(F,H,L){for(var Q="",X=0;X<d.cells[0].length;X++){var O=d.cells[0][X].style[H];if(O==null)O="";if(F.indexOf("color")>=0)O=pui.Ft(O);if(d.cells[0][X]==q)O=L;if(X!=0)Q+=",";Q+=O}I.properties[F]=Q;d.setProperty(F,Q);I.pb[F]=L!="";I.nd=true;I.designer.od[I.designer.Na.ub]=true;I.designer.ob.Uh(F)};I.designer.Lf.show(I,q,"grid")}}}else{d.g||U("onrowdblclick",k+1,null,u,o);d.g&&k!=0&&U("onrowdblclick",k,null,u,o)}};d.cells[k]||(d.cells[k]=
1224
1224
  []);q.row=k;q.col=o;d.cells[k][o]=q;d.designMode&&xa(k,o);return q}function ka(k,o,q,v){pui.modified=true;k.selected=o;if(d.Db!=null){if(k.selection==null){if(v===true)return;q=k.n?k.n:k.Rn?k.Rn+1:q+1;k.selection={type:"grid selection",n:q,M:d.Db};q=pui.Kb(d.Wa)+"."+pui.K(d.Db.fieldName)+"."+q;if(pui.N[q]==null){pui.N[q]=[];pui.N[q].push(k.selection)}}k.selection.modified=true;k.selection.value=o?d.Xh:d.Db.dataType=="indicator"?"0":" ";if(k.selection.R)k.selection.R=k.selection.value}}function Ba(k){for(var o=
1225
1225
  0;o<k.length;o++)if(ra(k[o]))return;document.activeElement==document.body&&pui.getActiveContainer().focus()}function ra(k){if(k==null)return false;k=k.firstChild;for(var o=false;k!=null;){if(k.tagName=="INPUT"||k.tagName=="TEXTAREA"||k.tagName=="SELECT"||k.comboBoxWidget!=null||k.k!=null)if(k.style.visibility!="hidden"&&k.style.display!="none"&&k.clientWidth>0){o=true;break}k=k.nextSibling}if(!o)return false;if(k.comboBoxWidget!=null)k=k.comboBoxWidget.getBox();if(k.k!=null)k=k.k.getBox();o=k.tagName;
1226
1226
  if(o!="INPUT"&&o!="TEXTAREA"&&o!="SELECT")return false;if(o=="SELECT"&&pui.is_firefox)return false;try{k.focus();if(o=="INPUT"||o=="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(v){}return true}function wa(k,o,q,v){var A=v,u=d.H[A];if(u==null)u="";if(u==""&&A.substr(0,7)=="header "){A=A.substr(7);u=d.H[A];if(u==null)u=""}if(!(pui.o(u)||pui.Mb(u))){var I=
1227
- u.split(",");if(I.length>1){o=v==="header font color"||v==="header background"?k.v:o;u=o<I.length?I[o]:I[0]}if(u==""){if(v.substr(0,7)=="header ")A=v.substr(7);if(d.qf[v]!=null)u=d.qf[v];else if(d.qf[A]!=null)u=d.qf[A]}try{k.style[q]=u}catch(F){}}}function fb(k,o,q,v){wa(k,v,"fontFamily",o?"header font family":"font family");wa(k,v,"fontSize",o?"header font size":"font size");wa(k,v,"fontStyle",o?"header font style":"font style");wa(k,v,"fontVariant","font variant");wa(k,v,"fontWeight",o?"header font weight":
1227
+ u.split(",");if(I.length>1){o=v==="header font color"||v==="header background"?k.v:o;u=o<I.length?I[o]:I[0]}if(u==""){if(v.substr(0,7)=="header ")A=v.substr(7);if(d.rf[v]!=null)u=d.rf[v];else if(d.rf[A]!=null)u=d.rf[A]}try{k.style[q]=u}catch(F){}}}function fb(k,o,q,v){wa(k,v,"fontFamily",o?"header font family":"font family");wa(k,v,"fontSize",o?"header font size":"font size");wa(k,v,"fontStyle",o?"header font style":"font style");wa(k,v,"fontVariant","font variant");wa(k,v,"fontWeight",o?"header font weight":
1228
1228
  "font weight");wa(k,v,"letterSpacing","letter spacing");wa(k,v,"textAlign",o?"header text align":"text align");wa(k,v,"textDecoration","text decoration");wa(k,v,"textTransform","text transform");wa(k,v,"wordSpacing","word spacing");var A=d.designMode&&d.H["row font color"]!=null&&d.H["row font color"]!=""&&!pui.o(d.H["row font color"]),u=d.designMode&&d.H["row background"]!=null&&d.H["row background"]!=""&&!pui.o(d.H["row background"]);wa(k,v,"color",o?"header font color":A?"row font color":q?"even row font color":
1229
1229
  "odd row font color");wa(k,v,"backgroundColor",o?"header background":u?"row background":q?"even row background":"odd row background");v="";if(o){o=d.H["header image"];if(o!=null&&o!=""){k.style.backgroundImage="url('"+pui.normalizeURL(o,true)+"')";k.style.backgroundRepeat="repeat-x"}else{k.style.backgroundImage="";k.style.backgroundRepeat=""}v="cell header-cell"}else{k.style.backgroundImage="";k.style.backgroundRepeat="";v="cell";v+=q?" even":" odd"}k.className=v}function xa(k,o){var q=d.cells[k],
1230
- v=false;if(d.m.length-2==o)v=true;if(k==0&&d.g)v=false;q=q[o];q.style.top=parseInt(d.j[k].style.top)-d.pc("top")+"px";q.style.left=parseInt(d.m[o].style.left)-d.pc("left")+"px";q.style.height=parseInt(d.j[k+1].style.top)-parseInt(d.j[k].style.top)+"px";var A=parseInt(d.m[o+1].style.left)-parseInt(d.m[o].style.left);if(v&&(d.Tf||d.Dc))pui.is_touch&&!pui.is_mouse_capable&&!d.designMode||pui.na||d.g&&d.cells.length==2||!d.g&&d.cells.length==1||(A-=16);if(A<0)A=0;q.style.width=A+"px"}function Na(k,o,
1230
+ v=false;if(d.m.length-2==o)v=true;if(k==0&&d.g)v=false;q=q[o];q.style.top=parseInt(d.j[k].style.top)-d.pc("top")+"px";q.style.left=parseInt(d.m[o].style.left)-d.pc("left")+"px";q.style.height=parseInt(d.j[k+1].style.top)-parseInt(d.j[k].style.top)+"px";var A=parseInt(d.m[o+1].style.left)-parseInt(d.m[o].style.left);if(v&&(d.Uf||d.Dc))pui.is_touch&&!pui.is_mouse_capable&&!d.designMode||pui.na||d.g&&d.cells.length==2||!d.g&&d.cells.length==1||(A-=16);if(A<0)A=0;q.style.width=A+"px"}function Na(k,o,
1231
1231
  q,v,A,u,I){if(o==null)o=99;if(q==null)q=1;var F=null;if(pui.secLevel>0){F=pui.rd(d.dataProps);d.Pc="";if(d.isFiltered()&&d.dataProps["load all rows"]!="true")for(var H=d.cells[0],L=0,Q=0;Q<H.length;Q++){var X=H[Q];if(X.v>=0&&X.sa!=null){var O=bb(X.v);d.Pc+="&fltrcol"+String(L)+"="+(X.v+1+O);d.Pc+=d.Wt(String(L),X.sa);F+=d.Pc;L++}}if(pc!=null&&qc!=null){F+="&findcol="+pc;F+="&findval="+encodeURIComponent(qc)}if(d.dataProps["data url"]!=null&&d.dataProps["data url"]!=""&&d.Eb!=null)F+="&order="+d.Eb}if(I){if(pui.Pa==
1232
- null)pui.Pa={};if(pui.Pa[q]==null)pui.Pa[q]={};if(pui.Pa[q].sql===k&&pui.Pa[q].yy===F&&pui.Pa[q].zl===o&&pui.Pa[q].Hw===u){d.unMask();if(v!=null){v(pui.Pa[q].results,pui.Pa[q].totalRecs,pui.Pa[q].matchRow);return}else return pui.Pa.results}}var S=null;H=Vb("PUI0009102.PGM");if(u)H=pui.mf(u);H=new pui.Ajax(H);H.method="post";H.async=true;if(v==null)H.async=false;if(pui.Z)H.postData="AUTH="+pui.Z;else{H.postData="AUTH="+pui.appJob.auth;if(typeof pui.vId!=="undefined")H.postData+="&VID="+pui.vId}if(pui.secLevel>
1233
- 0){H.postData+="&q="+encodeURIComponent(pui.$c(d.b));L=d.dataProps["order by"];if(d.Eb!=null)L=d.Eb;if(L&&L!="")H.postData+="&order="+L;else if(Eb()=="mssql")H.postData+="&order=(select null)";if(F!="")H.postData+="&"+F}else H.postData+="&q="+pui.yb.xf(k);H.postData+="&limit="+o+"&start="+q;if(A!=null&&A==true)H.postData+="&getTotal=1";if(pui["read db driven data as ebcdic"]!==true)H.postData+="&UTF8=Y";A=d.dataProps["allow any select statement"];if(A!=null&&(A=="true"||A==true))H.postData+="&FetchCounter=Y";
1234
- if(pui.isCloud)H.postData+="&workspace_id="+pui.cloud.ws.id;H.onready=function(R){d.dataProps["load fields into widgets"]!="true"&&d.unMask();var Z,V=false;if(d.dataProps["data transform function"]&&R.Ff()==200)try{Z=eval("window."+d.dataProps["data transform function"])(R.yc())}catch(ga){pui.sp(ga)}else Z=Ib(R,"Run SQL SELECT Query");if(Z){if(I){if(pui.Pa[q]==null)pui.Pa[q]={};pui.Pa[q].sql=k;pui.Pa[q].zl=o;pui.Pa[q].start=q;pui.Pa[q].Hw=u;pui.Pa[q].results=Z.results;pui.Pa[q].totalRecs=Z.totalRecs;
1235
- pui.Pa[q].yy=F;pui.Pa[q].matchRow=Z.matchRow}if(v!=null)v(Z.results,Z.totalRecs,Z.matchRow);else S=Z.results;V=true}gd&&pui.yf(gd,V,d.b.id);d.sc=false};d.sc=true;H.send();if(v==null)return S}function Ia(k){var o=-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].v==k){o=d.cells[0][q].col;break}return o}function eb(k){for(var o=[],q=0;q<d.Y.length;q++){var v=k[d.Y[q]];v||(v="");o.push(v)}return o}function xb(k,o){function q(Q){var X=String(Q.v+
1236
- 1);if(X.length>3)X="000";else for(;X.length<3;)X="0"+X;Q=Q.sa.substring(0,d.Af);if(Q.length<d.Af)Q+=" ".repeat(d.Af-Q.length);A+=X;u+=Q;I++}var v=d.cells[0];if(!(typeof k.col!="number"||k.col<0||k.col>=v.length)){if(typeof o!="string")o="";var A="",u="",I=0;k.sa=o;o.length>0&&q(k);for(var F=0;F<v.length&&I<d.ye;F++){var H=v[F].v,L=v[F].sa;typeof H=="number"&&H>=0&&H!=k.v&&typeof L=="string"&&L.length>0&&q(v[F])}qb(A,u)}}function qb(k,o){if(k.length<3*d.ye)k+=" ".repeat(3*d.ye-k.length);d.yg=k+o;pui.cl=
1237
- d;pui.fc();pui.cl=null}function pb(k){if(k==null||k=="")if(d.yg!=null&&d.yg!="")k=d.yg;else return;var o=d.cells[0];d.yg=k;for(var q=0;q<d.ye;q++){var v=k.substring(q*3,q*3+3);v=parseInt(v,10);var A=q*d.Af+3*d.ye;A=k.substring(A,A+d.Af);A=Ob(A);if(!isNaN(v)&&v>0&&A!=""){v-=1;for(var u=0;u<o.length;u++)if(o[u].v==v){o[u].sa=A;d.um(o[u]);break}}else break}}function rb(){for(var k=d.cells.length,o=d.cells[0].length,q=0;q<k;q++)for(var v=0;v<o;v++)d.b.appendChild(d.cells[q][v])}function Eb(){var k=pui.getDatabaseConnections();
1232
+ null)pui.Pa={};if(pui.Pa[q]==null)pui.Pa[q]={};if(pui.Pa[q].sql===k&&pui.Pa[q].yy===F&&pui.Pa[q].zl===o&&pui.Pa[q].Hw===u){d.unMask();if(v!=null){v(pui.Pa[q].results,pui.Pa[q].totalRecs,pui.Pa[q].matchRow);return}else return pui.Pa.results}}var S=null;H=Vb("PUI0009102.PGM");if(u)H=pui.nf(u);H=new pui.Ajax(H);H.method="post";H.async=true;if(v==null)H.async=false;if(pui.Z)H.postData="AUTH="+pui.Z;else{H.postData="AUTH="+pui.appJob.auth;if(typeof pui.vId!=="undefined")H.postData+="&VID="+pui.vId}if(pui.secLevel>
1233
+ 0){H.postData+="&q="+encodeURIComponent(pui.$c(d.b));L=d.dataProps["order by"];if(d.Eb!=null)L=d.Eb;if(L&&L!="")H.postData+="&order="+L;else if(Eb()=="mssql")H.postData+="&order=(select null)";if(F!="")H.postData+="&"+F}else H.postData+="&q="+pui.yb.yf(k);H.postData+="&limit="+o+"&start="+q;if(A!=null&&A==true)H.postData+="&getTotal=1";if(pui["read db driven data as ebcdic"]!==true)H.postData+="&UTF8=Y";A=d.dataProps["allow any select statement"];if(A!=null&&(A=="true"||A==true))H.postData+="&FetchCounter=Y";
1234
+ if(pui.isCloud)H.postData+="&workspace_id="+pui.cloud.ws.id;H.onready=function(R){d.dataProps["load fields into widgets"]!="true"&&d.unMask();var Z,V=false;if(d.dataProps["data transform function"]&&R.Gf()==200)try{Z=eval("window."+d.dataProps["data transform function"])(R.yc())}catch(ga){pui.sp(ga)}else Z=Ib(R,"Run SQL SELECT Query");if(Z){if(I){if(pui.Pa[q]==null)pui.Pa[q]={};pui.Pa[q].sql=k;pui.Pa[q].zl=o;pui.Pa[q].start=q;pui.Pa[q].Hw=u;pui.Pa[q].results=Z.results;pui.Pa[q].totalRecs=Z.totalRecs;
1235
+ pui.Pa[q].yy=F;pui.Pa[q].matchRow=Z.matchRow}if(v!=null)v(Z.results,Z.totalRecs,Z.matchRow);else S=Z.results;V=true}gd&&pui.zf(gd,V,d.b.id);d.sc=false};d.sc=true;H.send();if(v==null)return S}function Ia(k){var o=-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].v==k){o=d.cells[0][q].col;break}return o}function eb(k){for(var o=[],q=0;q<d.Y.length;q++){var v=k[d.Y[q]];v||(v="");o.push(v)}return o}function xb(k,o){function q(Q){var X=String(Q.v+
1236
+ 1);if(X.length>3)X="000";else for(;X.length<3;)X="0"+X;Q=Q.sa.substring(0,d.Bf);if(Q.length<d.Bf)Q+=" ".repeat(d.Bf-Q.length);A+=X;u+=Q;I++}var v=d.cells[0];if(!(typeof k.col!="number"||k.col<0||k.col>=v.length)){if(typeof o!="string")o="";var A="",u="",I=0;k.sa=o;o.length>0&&q(k);for(var F=0;F<v.length&&I<d.ye;F++){var H=v[F].v,L=v[F].sa;typeof H=="number"&&H>=0&&H!=k.v&&typeof L=="string"&&L.length>0&&q(v[F])}qb(A,u)}}function qb(k,o){if(k.length<3*d.ye)k+=" ".repeat(3*d.ye-k.length);d.zg=k+o;pui.cl=
1237
+ d;pui.fc();pui.cl=null}function pb(k){if(k==null||k=="")if(d.zg!=null&&d.zg!="")k=d.zg;else return;var o=d.cells[0];d.zg=k;for(var q=0;q<d.ye;q++){var v=k.substring(q*3,q*3+3);v=parseInt(v,10);var A=q*d.Bf+3*d.ye;A=k.substring(A,A+d.Bf);A=Ob(A);if(!isNaN(v)&&v>0&&A!=""){v-=1;for(var u=0;u<o.length;u++)if(o[u].v==v){o[u].sa=A;d.um(o[u]);break}}else break}}function rb(){for(var k=d.cells.length,o=d.cells[0].length,q=0;q<k;q++)for(var v=0;v<o;v++)d.b.appendChild(d.cells[q][v])}function Eb(){var k=pui.getDatabaseConnections();
1238
1238
  if(k)for(var o=Kb(d.dataProps["database connection"]||""),q=0;q<k.length;q++){var v=k[q];if(o===""&&v["default"]===true||o===v.name)return v.driver}else if(typeof pui.dbDriver!=="undefined")return pui.dbDriver}function bb(k){var o=0;if(d.dataProps["custom sql"]!=null&&d.dataProps["custom sql"]!=""){userDefinedDataFields=ob(d.w);if(userDefinedDataFields.length==0)return o;if(d.w[k]&&d.w[k].value&&d.w[k].value.fieldName&&d.saveFieldNames){var q=d.saveFieldNames.indexOf(d.w[k].value.fieldName);if(q!=
1239
- -1)o=q-k}}return o}function ob(k){for(var o=[],q=0;q<k.length;q++){var v=k[q];for(jb in v)if(jb.substr(0,17)==="user defined data"){var A=v[jb].fieldName;A!=null&&o.push(A.toUpperCase())}}return o}pui.li.call(this);if(pui.designer.gv!=null){this.vf=new pui.designer.gv;this.vf.ex=true;this.vf.mA=this}else{this.vf={};this.vf.ex=true;this.vf.Uz=na();this.vf.hB=na();this.vf.eB=na();this.vf.gB=na()}this.Ki=true;this.w=[];this.wa=false;this.ref={};this.Wa="";this.m=[];this.j=[];this.b=null;this.bd="";this.cells=
1240
- [];this.container=null;this.borderColor="";this.borderWidth=null;this.Xr="default";this.iq="row number";this.qs=75;this.ka=26;this.cb=30;this.g=true;this.Tc=this.sortable=this.Sc=false;this.Eb=null;this.Ob=0;this.bp=false;if(P=="dspf"||pui.ea)this.bp=true;this.Tf=true;this.Dc=false;if(P=="dspf"||pui.ea){this.Tf=false;this.Dc=true}this.Jh=100;this.eo=this.eq=0;this.Xe=this.Pu=false;this.i=new pui.oi;this.visibility="";this.columnHeadings=[];this.fa=[];this.Hq={};this.nB=null;this.H={};this.H["font family"]=
1239
+ -1)o=q-k}}return o}function ob(k){for(var o=[],q=0;q<k.length;q++){var v=k[q];for(jb in v)if(jb.substr(0,17)==="user defined data"){var A=v[jb].fieldName;A!=null&&o.push(A.toUpperCase())}}return o}pui.li.call(this);if(pui.designer.gv!=null){this.xf=new pui.designer.gv;this.xf.ex=true;this.xf.mA=this}else{this.xf={};this.xf.ex=true;this.xf.Uz=na();this.xf.hB=na();this.xf.eB=na();this.xf.gB=na()}this.Ki=true;this.w=[];this.wa=false;this.ref={};this.Wa="";this.m=[];this.j=[];this.b=null;this.bd="";this.cells=
1240
+ [];this.container=null;this.borderColor="";this.borderWidth=null;this.Xr="default";this.iq="row number";this.qs=75;this.ka=26;this.cb=30;this.g=true;this.Tc=this.sortable=this.Sc=false;this.Eb=null;this.Ob=0;this.bp=false;if(P=="dspf"||pui.ea)this.bp=true;this.Uf=true;this.Dc=false;if(P=="dspf"||pui.ea){this.Uf=false;this.Dc=true}this.Jh=100;this.eo=this.eq=0;this.Xe=this.Pu=false;this.i=new pui.oi;this.visibility="";this.columnHeadings=[];this.fa=[];this.Hq={};this.nB=null;this.H={};this.H["font family"]=
1241
1241
  "Verdana";this.H["font size"]="13px";this.H["text align"]="center";this.H["header font color"]="#ffffff";this.H["header background"]="#6699ff";this.H["header image"]="";this.H["header font weight"]="bold";this.H["header font style"]="normal";this.H["row font color"]="";this.H["row background"]="";this.H["odd row font color"]="#555555";if(P=="genie")this.H["odd row font color"]="";this.H["odd row background"]="#efefef";this.H["even row font color"]="#555555";if(P=="genie")this.H["even row font color"]=
1242
- "";this.H["even row background"]="#fcfcfc";this.H["hover font color"]="#555555";this.H["hover background"]="#dfe8f6";this.H["hover image"]="";this.H["selection font color"]="#ffffff";this.H["selection background"]="#6699cc";this.H["selection image"]="";this.qf={};for(var jb in this.H)this.qf[jb]=this.H[jb];this.dataProps={};this.yj={};this.Go={};this.Ao=this.dragging=this.Nf=this.designMode=false;this.vx=96;this.$y=this.Oz=97;this.Ex=99;this.gs=100;this.Zy=701;this.Bt=702;this.ys=this.totalRecs=this.c=
1243
- null;this.ju=this.ma=this.Gl=this.$w=this.Si=this.Jo=this.zf=this.$k=false;this.Ho=null;this.Pi=this.singleSelection=this.be=this.yo=false;this.De=this.Rb=this.Ee=this.Db=null;this.Dg=this.Zu=false;this.Ye=this.bg=null;this.Im="_____puiButtonToggleTreeLevel";this.mm=this.il=this.wl=null;this.Xh="1";this.Wh=null;this.Af=20;this.ye=3;this.Mj=this.Lj=this.Oj=this.Nj=this.yg=null;this.expanded=true;this.pl=this.ol=null;this.oc=1;this.Lu=false;this.Ej=this.Io=null;this.Ni=[];this.Hg=this.cj=this.Xf=this.Qi=
1244
- this.co=this.dj=this.Jf=null;this.jt=[];this.Kd=null;this.os=false;this.cp=1;this.$a=new pui.Ym(pui.runtimeContainer,this);this.bl=null;this.X={v:0,col:0,text:""};this.Zl=false;this.Hs=Ia;this.vu=false;this.de=this.Qb=null;this.Ov=W;this.Nv=ma;this.Jv=aa;this.sc=this.Ut=this.Tt=this.ot=false;var d=this,Wa,Y,fa,sa,Ca,Xa,ca,qa,Aa=1,db="solid",Va=false,mb=false,Ra=false,gc=false,hd=false,Hc,Ic,nc,sb,Qb,Ya,yb=null,ib=null,Mb=null,ae=false,ed=false,be=false,qc,pc,rc,gd=null,Ta=[],Za=null,$a=null;this.Eo=
1245
- function(){var k;d.designMode=true;d.b.destroy=d.destroy;if(d.c!=null)d.c.designMode=true;for(k=0;k<d.m.length;k++)Da(d.m,k,true);for(k=0;k<d.j.length;k++)Da(d.j,k,false);for(k=0;k<d.cells.length;k++)for(var o=0;o<d.cells[k].length;o++)ha(d.cells[k][o]);if(Wa==null){Wa=da("plus","Add New Row");Wa.onclick=function(){var q=d.b.d;q.designer.aa.start("Add Grid Row");q.designer.aa.add(q,"number of rows");d.jf();d.Kh();d.$b();d.Te()}}if(Y==null){Y=da("minus","Remove Row");Y.onclick=function(){if(d.cells.length>
1242
+ "";this.H["even row background"]="#fcfcfc";this.H["hover font color"]="#555555";this.H["hover background"]="#dfe8f6";this.H["hover image"]="";this.H["selection font color"]="#ffffff";this.H["selection background"]="#6699cc";this.H["selection image"]="";this.rf={};for(var jb in this.H)this.rf[jb]=this.H[jb];this.dataProps={};this.yj={};this.Go={};this.Ao=this.dragging=this.Of=this.designMode=false;this.vx=96;this.$y=this.Oz=97;this.Ex=99;this.gs=100;this.Zy=701;this.Bt=702;this.ys=this.totalRecs=this.c=
1243
+ null;this.ju=this.ma=this.Gl=this.$w=this.Si=this.Jo=this.Af=this.$k=false;this.Ho=null;this.Pi=this.singleSelection=this.be=this.yo=false;this.De=this.Rb=this.Ee=this.Db=null;this.Eg=this.Zu=false;this.Ye=this.cg=null;this.Im="_____puiButtonToggleTreeLevel";this.mm=this.il=this.wl=null;this.Xh="1";this.Wh=null;this.Bf=20;this.ye=3;this.Mj=this.Lj=this.Oj=this.Nj=this.zg=null;this.expanded=true;this.pl=this.ol=null;this.oc=1;this.Lu=false;this.Ej=this.Io=null;this.Ni=[];this.Ig=this.cj=this.Yf=this.Qi=
1244
+ this.co=this.dj=this.Kf=null;this.jt=[];this.Kd=null;this.os=false;this.cp=1;this.$a=new pui.Ym(pui.runtimeContainer,this);this.bl=null;this.X={v:0,col:0,text:""};this.Zl=false;this.Hs=Ia;this.vu=false;this.de=this.Qb=null;this.Ov=W;this.Nv=ma;this.Jv=aa;this.sc=this.Ut=this.Tt=this.ot=false;var d=this,Wa,Y,fa,sa,Ca,Xa,ca,qa,Aa=1,db="solid",Va=false,mb=false,Ra=false,gc=false,hd=false,Hc,Ic,nc,sb,Qb,Ya,yb=null,ib=null,Mb=null,ae=false,ed=false,be=false,qc,pc,rc,gd=null,Ta=[],Za=null,$a=null;this.Eo=
1245
+ function(){var k;d.designMode=true;d.b.destroy=d.destroy;if(d.c!=null)d.c.designMode=true;for(k=0;k<d.m.length;k++)Da(d.m,k,true);for(k=0;k<d.j.length;k++)Da(d.j,k,false);for(k=0;k<d.cells.length;k++)for(var o=0;o<d.cells[k].length;o++)ha(d.cells[k][o]);if(Wa==null){Wa=da("plus","Add New Row");Wa.onclick=function(){var q=d.b.d;q.designer.aa.start("Add Grid Row");q.designer.aa.add(q,"number of rows");d.kf();d.Kh();d.$b();d.Te()}}if(Y==null){Y=da("minus","Remove Row");Y.onclick=function(){if(d.cells.length>
1246
1246
  (d.g?2:1)){var q=d.b.d;q.designer.aa.start("Remove Grid Row");q.designer.aa.add(q,"number of rows");d.Kj();d.$b();d.Te()}}}if(fa==null){fa=da("plus","Add New Column");fa.onclick=function(){var q=d.b.d;if(q.properties["number of columns"]>d.Jh)pui.alert("Maximum number of columns reached.");else{q.designer.aa.start("Add Grid Column");q.designer.aa.add(q,"column widths");q.designer.aa.add(q,"number of columns");d.Bn();d.Ma();d.$b();d.Te()}}}if(sa==null){sa=da("minus","Remove Column");sa.onclick=function(){var q=
1247
1247
  d.m.length-2;if(!(q<1))if(d.Xo(q)){q=d.by(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.b.d;q.designer.aa.start("Remove Grid Column");q.designer.aa.add(q,"column widths");q.designer.aa.add(q,"number of columns");q.designer.aa.add(q,"column headings");
1248
1248
  d.Vp();d.$b();d.Te()}}}if(Ca==null)Ca=c("nw");if(Xa==null)Xa=c("ne");if(ca==null)ca=c("sw");if(qa==null)qa=c("se");d.b.fA=function(){if(d.designMode){if(Ca!=null)Ca.style.visibility="";if(Xa!=null)Xa.style.visibility="";if(ca!=null)ca.style.visibility="";if(qa!=null)qa.style.visibility=""}};d.b.ms=function(){if(Ca!=null)Ca.style.visibility="hidden";if(Xa!=null)Xa.style.visibility="hidden";if(ca!=null)ca.style.visibility="hidden";if(qa!=null)qa.style.visibility="hidden"};d.clearData();d.visibility==
1249
- "hidden"&&d.Lc(function(q){q.style.visibility=""});if(P=="genie"&&d.Kd!=null)if(k=Ab(d.Kd)){k.style.visibility="";k.style.display=""}aa();d.setScrollBar();d.i.iw(ha);d.hc()};this.$b=function(k){var o;if(!k)if(d.designMode&&Hb.Ih)return;if(d.qd){o=d.b.parentNode;if(o.getAttribute("container")=="true"){k=o.offsetHeight;var q=o.offsetWidth;if(k===0&&q===0&&o.parentNode&&o.parentNode.classList.contains("pui-tablayout-body")){k=o.parentNode.offsetHeight-2;q=o.parentNode.offsetWidth-2}var v=d.Df().split(","),
1250
- A=0;for(o=0;o<v.length;o++){var u=v[o];u=Number(u);v[o]=u;A+=u}q=(q-A)/v.length;q=parseInt(q);for(o=0;o<v.length;o++)v[o]+=q;d.Zf(v);if(d.g)k-=d.cb;if(d.i)k-=d.i.getHeight();k=k/d.ka;if(d.g)k+=1;k=parseInt(k);if(k<1)k=1;d.yo=true;d.setNumberOfRows(k);d.yo=false;var I=parseInt(d.b.style.left),F=parseInt(d.b.style.top);d.Lc(function(H){H.style.left=parseInt(H.style.left)-I+"px";H.style.top=parseInt(H.style.top)-F+"px"});d.setScrollBar();d.ic()}}};this.lt=function(){if(d.oc<=1)return false;var k=d.ol;
1251
- if(d.pl==true)k=false;if(d.ol==null&&d.pl==false)k=true;if(k==null)k=false;return k};this.$u=function(k){var o=d.cells.length;if(d.g)o-=1;if(d.lt())o*=d.oc;d.h=parseInt((k-1)/o)*o+1};this.Px=function(){if(d.bg===null)return false;var k=d.Xu;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 o=d.cells.length;if(d.g)o-=1;o*=d.oc-1;if(!d.Xe){d.setProperty("row height",parseInt(d.ka/d.oc));for(var q=0;q<
1252
- o;q++)d.jf();d.Ma();d.wd();d.getData();for(o=0;o<d.cells.length;o++)for(q=0;q<d.cells[o].length;q++){var v=d.cells[o][q],A=v.firstChild,u=parseInt(v.style.height);if(!isNaN(u)){for(;A!=null;){var I=parseInt(A.style.top);if(isNaN(I))I=0;if(I>u&&(A.tagName=="INPUT"||A.tagName=="SELECT"||A.tagName=="TEXTAREA")&&!A.disabled){A.Rp=true;A.disabled=true}A=A.nextSibling}v.scrollTop=0}}}if(k!=null&&k.tagName=="IMG"){k.src=pui.normalizeURL("/profoundui/proddata/images/icons/expandall.gif");k.title=pui.getLanguageText("runtimeText",
1249
+ "hidden"&&d.Lc(function(q){q.style.visibility=""});if(P=="genie"&&d.Kd!=null)if(k=Ab(d.Kd)){k.style.visibility="";k.style.display=""}aa();d.setScrollBar();d.i.iw(ha);d.hc()};this.$b=function(k){var o;if(!k)if(d.designMode&&Hb.Ih)return;if(d.qd){o=d.b.parentNode;if(o.getAttribute("container")=="true"){k=o.offsetHeight;var q=o.offsetWidth;if(k===0&&q===0&&o.parentNode&&o.parentNode.classList.contains("pui-tablayout-body")){k=o.parentNode.offsetHeight-2;q=o.parentNode.offsetWidth-2}var v=d.Ef().split(","),
1250
+ A=0;for(o=0;o<v.length;o++){var u=v[o];u=Number(u);v[o]=u;A+=u}q=(q-A)/v.length;q=parseInt(q);for(o=0;o<v.length;o++)v[o]+=q;d.$f(v);if(d.g)k-=d.cb;if(d.i)k-=d.i.getHeight();k=k/d.ka;if(d.g)k+=1;k=parseInt(k);if(k<1)k=1;d.yo=true;d.setNumberOfRows(k);d.yo=false;var I=parseInt(d.b.style.left),F=parseInt(d.b.style.top);d.Lc(function(H){H.style.left=parseInt(H.style.left)-I+"px";H.style.top=parseInt(H.style.top)-F+"px"});d.setScrollBar();d.ic()}}};this.lt=function(){if(d.oc<=1)return false;var k=d.ol;
1251
+ if(d.pl==true)k=false;if(d.ol==null&&d.pl==false)k=true;if(k==null)k=false;return k};this.$u=function(k){var o=d.cells.length;if(d.g)o-=1;if(d.lt())o*=d.oc;d.h=parseInt((k-1)/o)*o+1};this.Px=function(){if(d.cg===null)return false;var k=d.Xu;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 o=d.cells.length;if(d.g)o-=1;o*=d.oc-1;if(!d.Xe){d.setProperty("row height",parseInt(d.ka/d.oc));for(var q=0;q<
1252
+ o;q++)d.kf();d.Ma();d.wd();d.getData();for(o=0;o<d.cells.length;o++)for(q=0;q<d.cells[o].length;q++){var v=d.cells[o][q],A=v.firstChild,u=parseInt(v.style.height);if(!isNaN(u)){for(;A!=null;){var I=parseInt(A.style.top);if(isNaN(I))I=0;if(I>u&&(A.tagName=="INPUT"||A.tagName=="SELECT"||A.tagName=="TEXTAREA")&&!A.disabled){A.Rp=true;A.disabled=true}A=A.nextSibling}v.scrollTop=0}}}if(k!=null&&k.tagName=="IMG"){k.src=pui.normalizeURL("/profoundui/proddata/images/icons/expandall.gif");k.title=pui.getLanguageText("runtimeText",
1253
1253
  "expandAll")}}};this.expand=function(k){var o;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.g)q-=1;q=parseInt(q/d.oc);q*=d.oc-1;if(!d.Xe){d.setProperty("row height",d.ka*d.oc);for(o=0;o<q;o++)d.Kj();d.Ma();d.wd();d.getData();for(o=0;o<d.w.length;o++)if(q=d.w[o].domEls)for(var v in q)if(!isNaN(parseInt(v,10))){var A=q[v];if(A.Rp){A.Rp=false;A.disabled=false}}}if(k!=null&&k.tagName=="IMG"){k.src=pui.normalizeURL("/profoundui/proddata/images/icons/collapseall.gif");
1254
1254
  k.title=pui.getLanguageText("runtimeText","collapseAll")}}};this.toggle=function(k){d.expanded?d.collapse(k):d.expand(k)};this.qB=na();this.rowZoom=function(k){if(!(P!="dspf"&&!pui.ea)){if(typeof k=="number"){k=k-d.h;d.g&&k++;k=d.cells[k];if(k==null)return}if(d.Ta==null){d.Ta=document.createElement("div");d.Ta.style.height=d.ka*d.oc+"px";d.Ta.style.zIndex=d.Zy;d.Ta.style.left=parseInt(d.b.style.left)+"px";d.Ta.onclick=function(){d.Ta.style.display="none"};d.Ta.onmouseout=function(I){I=I?I.relatedTarget:
1255
- event.toElement;try{if(I!=null&&I.parentNode!=null){if(I.parentNode==d.Ta)return;if(I.parentNode.parentNode==d.Ta)return}}catch(F){}d.Ta.style.display="none"};d.b.parentNode.appendChild(d.Ta)}var o=parseInt(d.b.style.width);if(d.Dc||d.Tf)o-=21;d.Ta.style.width=o+"px";d.Ta.innerHTML="";d.Ta.className=d.b.className;d.Ta.classList.add("zoomrow");d.Ta.style.top=parseInt(d.b.style.top)+parseInt(k[0].style.top)-parseInt(d.ka*(d.oc-1)/2)+"px";for(o=0;o<k.length;o++){var q=k[o].cloneNode(true);q.style.top=
1255
+ event.toElement;try{if(I!=null&&I.parentNode!=null){if(I.parentNode==d.Ta)return;if(I.parentNode.parentNode==d.Ta)return}}catch(F){}d.Ta.style.display="none"};d.b.parentNode.appendChild(d.Ta)}var o=parseInt(d.b.style.width);if(d.Dc||d.Uf)o-=21;d.Ta.style.width=o+"px";d.Ta.innerHTML="";d.Ta.className=d.b.className;d.Ta.classList.add("zoomrow");d.Ta.style.top=parseInt(d.b.style.top)+parseInt(k[0].style.top)-parseInt(d.ka*(d.oc-1)/2)+"px";for(o=0;o<k.length;o++){var q=k[o].cloneNode(true);q.style.top=
1256
1256
  "0px";q.style.height=parseInt(d.Ta.style.height)+2+"px";if(!pui.na)q.style.cursor="pointer";for(var v=0;v<q.childNodes.length;v++){var A=q.childNodes[v];if(A.getAttribute("isZoomIcon")=="true")A.style.display="none";if(A.tagName=="INPUT"){var u=A.className;if(u==null)u=null;u+=" PR";A.className=Kb(u);A.readOnly=true}if(A.tagName=="SELECT")A.disabled=true}d.Ta.appendChild(q)}d.Ta.style.display=""}};this.exportXLSX=function(k){return d.exportCSV(k,true)};this.exportCSV=function(k,o){var q,v,A,u,I,F,
1257
1257
  H,L,Q,X;if(!d.i.ii&&(pui["csv exports xlsx"]===true||pui["csv exports xlsx"]==="true"))o=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 S='"';if(typeof pui["csv string delimiter"]=="string")S=pui["csv string delimiter"];if(!d.designMode){if(k==null)k=d.ys;if(k==null||k=="")k=d.b.id;if(d.da()&&d.wa==false)o?d.Yw(k):d.getData(k);else if(P=="genie"&&!pui.ea)pui.alert('In 5250 mode, the "csv export" feature requires an SQL-driven subfile.');
1258
- else{k=encodeURIComponent(k);var R=[],Z=[],V=[],ga=[],ya=[],La=[],ia=[],ta=[],Ja=[];C();Q=d.m.length-1;if(d.ma&&!d.zf)Q=d.fa.length;for(F=0;F<Q;F++){R.push(-1);Z.push(false);V.push(false);ga.push(false);ya.push(false);La.push(false);ia.push(false);ta.push(-1);Ja.push(null)}var Oa=0;F=0;for(Q=d.w.length;F<Q;F++){var za=d.w[F];if(za.visibility!="hidden"){q=Number(za.column);if(!isNaN(q)&&q>=0&&q<R.length&&R[q]==-1){Ja[q]=za;if(pui.o(za.visibility))ga[q]=za.visibility;H=za.value;if(za["radio button group"])H=
1258
+ else{k=encodeURIComponent(k);var R=[],Z=[],V=[],ga=[],ya=[],La=[],ia=[],ta=[],Ja=[];C();Q=d.m.length-1;if(d.ma&&!d.Af)Q=d.fa.length;for(F=0;F<Q;F++){R.push(-1);Z.push(false);V.push(false);ga.push(false);ya.push(false);La.push(false);ia.push(false);ta.push(-1);Ja.push(null)}var Oa=0;F=0;for(Q=d.w.length;F<Q;F++){var za=d.w[F];if(za.visibility!="hidden"){q=Number(za.column);if(!isNaN(q)&&q>=0&&q<R.length&&R[q]==-1){Ja[q]=za;if(pui.o(za.visibility))ga[q]=za.visibility;H=za.value;if(za["radio button group"])H=
1259
1259
  za["radio button group"];if(za["field type"]=="html container")H=za.html;if(za["field type"]=="image"&&o)H=za["image source"];if(za["field type"]=="hyperlink"){var Ga=za["hyperlink reference"];ia[q]={};if(pui.o(Ga)&&Ga.dataType!="indicator"&&Ga.dataType!="expression"){A=pui.K(Ga.fieldName);u=0;for(L=d.Y.length;u<L;u++)if(A==d.Y[u]){ia[q].vt=u;break}if(!pui.o(H)||H.dataType=="indicator"||H.dataType=="expression"){ia[q].value=H;H=Ga}}else if(Ga!=null&&Ga.length>0)ia[q].link=Ga}if(pui.o(H)&&H.dataType!=
1260
1260
  "indicator"&&H.dataType!="expression"){A=pui.K(H.fieldName);u=0;for(L=d.Y.length;u<L;u++)if(A==d.Y[u]){ta[q]=za.columnId;R[q]=u;Oa++;if(H.formatting=="Number")Z[q]=true;ya[q]=H;if(H.dataType=="graphic")V[q]=true;if(o)if(za["field type"]=="image"){La[q]={left:2,top:2,height:16,width:16};if(za.domEls!=null&&za.domEls.length>0)for(u=0;u<za.domEls.length;u++)if(za.domEls[u]&&za.domEls[u].offsetWidth>0&&za.domEls[u].offsetHeight>0){La[q]={left:za.domEls[u].offsetLeft,top:za.domEls[u].offsetTop,height:za.domEls[u].offsetHeight,
1261
- width:za.domEls[u].offsetWidth};break}}else if(za["field type"]=="hyperlink")if(ia[q].value==null)ia[q].DB=true;break}}}}}if(d.ma&&!d.zf){X=[];I=[];F=function(Ua){return Ua.columnId==v};q=0;for(Q=ta.length;q<Q;q++){v=ta[q];u="";L=100;if(v>=0)if(za=d.fa.find(F)){u=za.blankHeader?"":za.name;L=pui.ae(za.orginalWidth)}I[q]=u;X[q]=L}}ta="";var Qa,Jb,Pa;q=false;if(o){Qa=new pui.Rm(Oa);Jb=new pui.Qm(Qa);Qa.qo=d.ka;Pa=[];if(!d.ma||d.zf)X=d.Df().split(",");for(F=0;F<R.length&&F<X.length;F++)R[F]>-1&&Pa.push(Number(X[F]));
1262
- Qa.Zf(Pa);Pa=new pui.Kq;for(F=Oa=0;F<R.length;F++)if(R[F]>-1){lc(Qa,ya[F],Oa);Oa++}}X=0;if(d.g&&d.$k){o&&kc(Qa);for(F=0;F<R.length;F++){H=R[F];if(H>-1){u="";u=d.ma&&!d.zf?I[F]:Lc(d.cells[0][F]);u=u.replace(/<br>/g," ");o&&mc(Qa,Ob(u),X++);u=u.replace(/"/g,'""');u=u.replace("\n","");u=u.replace("\r","");if(ta!="")ta+=O;ta+=S+u+S}}if(o)Qa.Dh=d.cb}ta="\ufeff"+ta;I=d.dataArray;if(d.isFiltered())I=d.W;F=0;for(Q=I.length;F<Q;F++){Oa="";za=I[F];if(!(za.rc!=null&&za.rc==true)){A={};if(za==null||za.length==
1263
- 0)A.empty=true;else for(u=0;u<d.Y.length;u++)A[d.Y[u]]=za[u];o&&kc(Qa);u=X=0;for(L=R.length;u<L;u++){H=R[u];if(H>-1){H=za[H];if(ia[u]!=null&&ia[u].value!=null)H=ia[u].value;if(V[u]&&(d.dataProps==null||d.dataProps["load fields into widgets"]!=="true"))H=pui.formatting.wg(H);if(!o&&Z[u]&&pui.appJob!=null&&(pui.appJob.decimalFormat=="I"||pui.appJob.decimalFormat=="J")){if(typeof H!=="string")H=String(H);H=H.replace(".",",")}Ga=ya[u];if(typeof Ga==="object"&&Ga!==null){var cb=Ga.formatting;if(cb==="Date"||
1261
+ width:za.domEls[u].offsetWidth};break}}else if(za["field type"]=="hyperlink")if(ia[q].value==null)ia[q].DB=true;break}}}}}if(d.ma&&!d.Af){X=[];I=[];F=function(Ua){return Ua.columnId==v};q=0;for(Q=ta.length;q<Q;q++){v=ta[q];u="";L=100;if(v>=0)if(za=d.fa.find(F)){u=za.blankHeader?"":za.name;L=pui.ae(za.orginalWidth)}I[q]=u;X[q]=L}}ta="";var Qa,Jb,Pa;q=false;if(o){Qa=new pui.Rm(Oa);Jb=new pui.Qm(Qa);Qa.qo=d.ka;Pa=[];if(!d.ma||d.Af)X=d.Ef().split(",");for(F=0;F<R.length&&F<X.length;F++)R[F]>-1&&Pa.push(Number(X[F]));
1262
+ Qa.$f(Pa);Pa=new pui.Kq;for(F=Oa=0;F<R.length;F++)if(R[F]>-1){lc(Qa,ya[F],Oa);Oa++}}X=0;if(d.g&&d.$k){o&&kc(Qa);for(F=0;F<R.length;F++){H=R[F];if(H>-1){u="";u=d.ma&&!d.Af?I[F]:Lc(d.cells[0][F]);u=u.replace(/<br>/g," ");o&&mc(Qa,Ob(u),X++);u=u.replace(/"/g,'""');u=u.replace("\n","");u=u.replace("\r","");if(ta!="")ta+=O;ta+=S+u+S}}if(o)Qa.Dh=d.cb}ta="\ufeff"+ta;I=d.dataArray;if(d.isFiltered())I=d.W;F=0;for(Q=I.length;F<Q;F++){Oa="";za=I[F];if(!(za.rc!=null&&za.rc==true)){A={};if(za==null||za.length==
1263
+ 0)A.empty=true;else for(u=0;u<d.Y.length;u++)A[d.Y[u]]=za[u];o&&kc(Qa);u=X=0;for(L=R.length;u<L;u++){H=R[u];if(H>-1){H=za[H];if(ia[u]!=null&&ia[u].value!=null)H=ia[u].value;if(V[u]&&(d.dataProps==null||d.dataProps["load fields into widgets"]!=="true"))H=pui.formatting.xg(H);if(!o&&Z[u]&&pui.appJob!=null&&(pui.appJob.decimalFormat=="I"||pui.appJob.decimalFormat=="J")){if(typeof H!=="string")H=String(H);H=H.replace(".",",")}Ga=ya[u];if(typeof Ga==="object"&&Ga!==null){var cb=Ga.formatting;if(cb==="Date"||
1264
1264
  cb==="Time"||cb==="Time Stamp")H=pui.Q(Ga,A,d.ref)}if(ga[u]!==false)if(pui.Q(ga[u],A,d.ref)=="hidden")H="";if(typeof pui["process export value"]==="function"){Ga=pui["process export value"]({value:H,"bound value formatting":Ga,"item properties":Ja[u],"grid properties":d.b.pui.properties,"record number":F+1});if(Ga!=null)H=Ga}Ga=H;if(typeof Ga==="string"&&Ga.length>0)try{Ga=Ga.replace(/[\x00-\x1F\x7F]/g,"")}catch(Bb){}if(typeof H==="string")H=H.replace(/"/g,'""');if(Oa!="")Oa+=O;Oa+=S+Ob(H)+S;if(o){if(typeof La[u]==
1265
1265
  "object"&&La[u]!=null){q=true;mc(Qa,"",X);typeof Ga==="string"&&Ga.length>0&&xc(Pa,Qa.td,X,Ga,La[u])}else{H=null;if(typeof ia[u]=="object"&&ia[u]!=null)if(ia[u].link!=null)H=ia[u].link;else if(ia[u].vt!=null)H=za[ia[u].vt];mc(Qa,Ob(Ga),X,H)}X++}}}if(ta!="")ta+="\n";ta+=Oa}}if(o){if(q&&d.i.fv){Qa.bv=true;Jb.Yc=Pa;Jb.Nc=d.i;Wd(d.i,pui.getLanguageText("runtimeMsg","downloading x",["..."]));d.i.qq()}ec(Jb,k)}else pui.Yk("text/csv",k+".csv",ta)}}};this.Yw=function(k){function o(F){var H=new XMLHttpRequest;
1266
1266
  H.open("POST",A,true);H.setRequestHeader("Content-type","application/x-www-form-urlencoded");var L={data:{}};L.append=function(S,R){L.data[S]=encodeURIComponent(R)};L.get=function(){var S="",R="";for(var Z in L.data){S+=R+Z+"="+L.data[Z];R="&"}return S};if(pui.Z)L.append("AUTH",pui.Z);else{L.append("AUTH",pui.appJob.auth);typeof pui.vId!=="undefined"&&L.append("VID",pui.vId)}L.append("q",encodeURIComponent(pui.$c(d.b)));pui.rd(d.dataProps,null,L);L.append("limit",v);L.append("start","1");typeof d.Pc===
1267
1267
  "string"&&d.Pc.length>0&&d.Pc.substring(1).split("&").forEach(function(S){S=S.split("=");L.append(S[0],decodeURIComponent(S[1]))});pui["read db driven data as ebcdic"]!==true&&L.append("UTF8","Y");var Q=d.dataProps["order by"];if(d.Eb!=null)Q=d.Eb;if(Q&&Q!="")L.append("order",Q);else Eb()=="mssql"&&L.append("order","(select null)");Q=d.dataProps["allow any select statement"];if(Q!=null&&(Q=="true"||Q==true))L.append("FetchCounter","Y");pui.isCloud&&L.append("workspace_id",pui.cloud.ws.id);Vd(d.i,
1268
1268
  "cancel","cancel");Wd(d.i,pui.getLanguageText("runtimeMsg","downloading x",["..."]));d.i.qq(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 Error("XMLHTTPRequest status: "+H.status);var S=eval("("+H.responseText+")");if(!S)throw Error("Failed");if(S.success!=true){if(S.errorText)throw Error("Failed: "+S.errorText);throw Error("Failed");}var R=S.response;if(R==null||R.results==
1269
1269
  null)throw Error("Invalid Response");if(d.dataProps["data transform function"])try{R=eval("window."+d.dataProps["data transform function"])(H.responseText)}catch(Z){pui.sp(Z)}if(F!=null)R.fields=F;if(R.results.length>0)q(R);else{Vd(d.i,"","");Wd(d.i,pui.getLanguageText("runtimeMsg","no data"));d.i.qq();Xd(d.i)}d.unMask()}catch(V){S=pui.getLanguageText("runtimeText","excel export text");console.warn(S,V);pui.alert(S+":\n"+V.toString());d.unMask();d.i.z()}};var X=0,O=0;H.addEventListener("progress",
1270
- function(S){var R=pui.Ko(S.loaded,1),Z=S.timeStamp-X;if(X==0)X=S.timeStamp;else if(Z>0){var V=S.loaded/Z*1E3;Z=Math.round(Z/1E3);R+=" ("+pui.Ko(V,0)+"/s; "+Z+"s)";if(S.timeStamp-O<250)return}Wd(d.i,pui.getLanguageText("runtimeMsg","downloading x",[R]));O=S.timeStamp});H.send(L.get());d.mask();d.Lb()}function q(F){function H(ia){return ia.field==L}var L,Q,X,O,S,R=[];if((d.Gl||d.ma)&&Array.isArray(d.fa)&&d.fa.length>0){var Z=d.fa.filter(function(ia){return ia.showing||d.zf!=true});Z.sort(function(ia,
1270
+ function(S){var R=pui.Ko(S.loaded,1),Z=S.timeStamp-X;if(X==0)X=S.timeStamp;else if(Z>0){var V=S.loaded/Z*1E3;Z=Math.round(Z/1E3);R+=" ("+pui.Ko(V,0)+"/s; "+Z+"s)";if(S.timeStamp-O<250)return}Wd(d.i,pui.getLanguageText("runtimeMsg","downloading x",[R]));O=S.timeStamp});H.send(L.get());d.mask();d.Lb()}function q(F){function H(ia){return ia.field==L}var L,Q,X,O,S,R=[];if((d.Gl||d.ma)&&Array.isArray(d.fa)&&d.fa.length>0){var Z=d.fa.filter(function(ia){return ia.showing||d.Af!=true});Z.sort(function(ia,
1271
1271
  ta){var Ja=ia.currentColumn;if(Ja<0)Ja=999+ia.columnId;var Oa=ta.currentColumn;if(Oa<0)Oa=999+ta.columnId;return Ja-Oa});Q=0;for(S=Z.length;Q<S;Q++){O=Z[Q];if(O.field)R.push({fieldName:O.field,name:O.blankHeader?"":O.name});else if(!O.field)if(d.w&&d.w[Q]&&d.w[Q].value){O.field=d.w[Q].value.fieldName;R.push({fieldName:O.field,name:O.blankHeader?"":O.name})}}}else for(L in F.results[0])R.push({fieldName:L,nA:L});Q=0;if(F.colWidths!=null){Q=F.colWidths.length;Z=ob(d.w);Q-=Z.length}else Q=Object.keys(F.results[0]).length;
1272
1272
  if(R.length>0&&R.length<Q)Q=R.length;var V=new pui.Rm(Q);Z=new pui.Qm(V);Z.Nc=d.i;F.fields!=null&&R.forEach(function(ia,ta){L=ia.fieldName;var Ja=F.fields.find(H);lc(V,Ja?{dataType:Ja.type,decPos:Ja.decPos}:{dataType:"char"},ta)});if(d.g&&d.$k){Q=0;kc(V);if(d.ma){if(Array.isArray(d.fa)&&d.fa.length>0)for(S=R.length;Q<S&&(O=R[Q]);Q++){L=O.fieldName;X=(X=d.fa.find(H))?X.name:"";mc(V,X,Q)}}else if(d.cells[0]instanceof Array&&d.cells[0].length>0)for(O=R.length;Q<O;Q++){X=d.cells[0][Q]?Ob(Lc(d.cells[0][Q])):
1273
- "";if(d.zf)d.cells[0][Q]!==undefined&&mc(V,X,Q);else mc(V,X,Q)}V.Dh=d.cb}S=0;for(O=F.results.length;S<O;S++){kc(V);X=F.results[S];for(var ga=Q=0,ya=R.length;ga<ya;ga++){L=R[ga];if(L!=null){var La=X[L.fieldName];if(La==null&&L.fieldName)La=X[L.fieldName.toUpperCase()];if(d.zf)d.cells[0][Q]!==undefined&&mc(V,La,Q,null,F.fields==null);else mc(V,La,Q,null,F.fields==null);Q++}}}ec(Z,k)}if(pui.secLevel<=0)console.log("Export not implemented for low security level.");else{var v=d.totalRecs;if(v==null)v=
1274
- 9999;var A=Vb("PUI0009102.PGM"),u=d.dataProps["data url"];if(u=="")u=null;if(u){A=pui.mf(u);if(typeof pui.vId!=="undefined")A+="&VID="+pui.vId;o()}else if(d.dataProps["database file"]&&d.dataProps["database file"].length>0){u="";var I=d.dataProps["database file"].split("/");if(I.length>1){u=I[0];I=I[1]}else I=I[0];ac({url:Vb("PUI0009101.pgm"),method:"post",params:{context:"genie",file:I,library:u,AUTH:pui.Z?pui.Z:pui.appJob.auth,workspace_id:pui.isCloud&&pui.cloud.ws.id?pui.cloud.ws.id:"",q:encodeURIComponent(pui.$c(d.b))},
1273
+ "";if(d.Af)d.cells[0][Q]!==undefined&&mc(V,X,Q);else mc(V,X,Q)}V.Dh=d.cb}S=0;for(O=F.results.length;S<O;S++){kc(V);X=F.results[S];for(var ga=Q=0,ya=R.length;ga<ya;ga++){L=R[ga];if(L!=null){var La=X[L.fieldName];if(La==null&&L.fieldName)La=X[L.fieldName.toUpperCase()];if(d.Af)d.cells[0][Q]!==undefined&&mc(V,La,Q,null,F.fields==null);else mc(V,La,Q,null,F.fields==null);Q++}}}ec(Z,k)}if(pui.secLevel<=0)console.log("Export not implemented for low security level.");else{var v=d.totalRecs;if(v==null)v=
1274
+ 9999;var A=Vb("PUI0009102.PGM"),u=d.dataProps["data url"];if(u=="")u=null;if(u){A=pui.nf(u);if(typeof pui.vId!=="undefined")A+="&VID="+pui.vId;o()}else if(d.dataProps["database file"]&&d.dataProps["database file"].length>0){u="";var I=d.dataProps["database file"].split("/");if(I.length>1){u=I[0];I=I[1]}else I=I[0];ac({url:Vb("PUI0009101.pgm"),method:"post",params:{context:"genie",file:I,library:u,AUTH:pui.Z?pui.Z:pui.appJob.auth,workspace_id:pui.isCloud&&pui.cloud.ws.id?pui.cloud.ws.id:"",q:encodeURIComponent(pui.$c(d.b))},
1275
1275
  async:true,handler:function(F){var H=null;if(F!=null&&F.fields!=null)H=F.fields;o(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.");o()}});d.mask();d.Lb()}else o()}};this.Xo=function(k){if(P=="genie"&&!pui.ea)return false;var o=k,q=k;if(k==null){o=0;q=d.m.length-2}k=0;if(d.g)k=1;if(q<0)return false;for(o=o;o<=q;o++)for(var v=d.cells[k][o].firstChild;v!=null;){if(v.style.position=="absolute"&&
1276
- !v.kp)return true;v=v.nextSibling}return false};this.by=function(k){var o=[],q=k,v=k;if(k==null){q=0;v=d.m.length-2}k=0;if(d.g)k=1;for(q=q;q<=v;q++)for(var A=d.cells[k][q],u=0;u<A.children.length;u++){var I=A.children[u].id;if(!(I==""||I==null)){I=" "+I;o.push(I)}}return o};this.gx=function(){for(var k=[],o=d.b.d.designer.items,q=0;q<o.length;q++){var v=o[q];v.zA()==d&&k.push(v)}return k};this.Ro=function(){var k=d.j.length-1;if(d.g)k-=1;return k};this.Kg=function(k){function o(I,F){if(!(I==null||
1276
+ !v.kp)return true;v=v.nextSibling}return false};this.by=function(k){var o=[],q=k,v=k;if(k==null){q=0;v=d.m.length-2}k=0;if(d.g)k=1;for(q=q;q<=v;q++)for(var A=d.cells[k][q],u=0;u<A.children.length;u++){var I=A.children[u].id;if(!(I==""||I==null)){I=" "+I;o.push(I)}}return o};this.gx=function(){for(var k=[],o=d.b.d.designer.items,q=0;q<o.length;q++){var v=o[q];v.zA()==d&&k.push(v)}return k};this.Ro=function(){var k=d.j.length-1;if(d.g)k-=1;return k};this.Lg=function(k){function o(I,F){if(!(I==null||
1277
1277
  F==null||u==null))for(var H=1;H<3;H++){var L=I["icon"+H+" class"],Q=I.parentNode.getElementsByClassName(L)[0];if(Q&&L!==null){var X=document.createElement("div");X.style.top=Q.style.top;X.style.left=Q.style.left;X.style.cursor="default";X.className=L;F.appendChild(X)}}}if(!(P=="genie"&&!pui.ea))if(d.designMode){var q,v,A=document.createElement("span");if(d.g){v=d.cells[1][k];q=2}else{v=d.cells[0][k];q=1}for(v=v.firstChild;v!=null;){if(v.style.position=="absolute"&&!v.kp&&!v.LA&&!v.NA){var u=v.cloneNode(true);
1278
- u.id="";u.Jy!=null&&u.Jy(u);A.appendChild(u);o(v,A)}v=v.nextSibling}for(q=q;q<d.cells.length;q++){d.cells[q][k].innerHTML="";d.cells[q][k].appendChild(A.cloneNode(true))}}};this.Kh=function(){if(!(P=="genie"&&!pui.ea))for(var k=d.m.length-1,o=0;o<k;o++)d.Kg(o)};this.getCellValue=function(k,o){var q=k,v=1;if(P=="dspf"||d.da()||pui.ea)v=d.h;q-=v;d.g&&q++;q=d.cells[q];if(q==null)return null;q=q[Ia(o)];if(q==null)return null;return Lc(q)};this.getDataValue=function(k,o){if(typeof k!="number")return null;
1278
+ u.id="";u.Jy!=null&&u.Jy(u);A.appendChild(u);o(v,A)}v=v.nextSibling}for(q=q;q<d.cells.length;q++){d.cells[q][k].innerHTML="";d.cells[q][k].appendChild(A.cloneNode(true))}}};this.Kh=function(){if(!(P=="genie"&&!pui.ea))for(var k=d.m.length-1,o=0;o<k;o++)d.Lg(o)};this.getCellValue=function(k,o){var q=k,v=1;if(P=="dspf"||d.da()||pui.ea)v=d.h;q-=v;d.g&&q++;q=d.cells[q];if(q==null)return null;q=q[Ia(o)];if(q==null)return null;return Lc(q)};this.getDataValue=function(k,o){if(typeof k!="number")return null;
1279
1279
  if(typeof o!="string")return null;var q=b(k,false);if(q==null)return null;o=pui.K(o);if(o.length>10&&!(pui.pjsDefaultMode==="case-sensitive"||pui.handler!=null))o=pui.Je[o];var v=pui.Kb(d.Wa)+"."+o;if(pui.handler!=null)v=o;v+="."+k;v=pui.N[v];if(v!=null&&v.length==1){v=v[0];if(v!=null)return v.tagName?Sc(v):typeof v.R!="undefined"?v.R:v.value}v=a(o);if(v==null&&o.length<=10&&!(pui.pjsDefaultMode==="case-sensitive"||pui.handler!=null)){o=pui.Je[o];v=a(o);return v!=null?q[v]:null}else return q[v]};
1280
1280
  this.getAllDataValues=function(k){if(d.Y.length<1)return null;C();var o=d.dataArray;if((k!=null&&!k?false:true)&&d.isFiltered())o=d.W;k=[];for(var q=0;q<o.length;q++){for(var v={},A=0;A<d.Y.length;A++){var u=d.Y[A];if(pui.Je[u])u=pui.Je[u];v[u]=o[q][A]}k.push(v)}return k};this.setDataValue=function(k,o,q){var v;o=pui.K(o);if(o.length>10&&!(pui.pjsDefaultMode==="case-sensitive"||pui.handler!=null))o=pui.Je[o];var A=b(k,false);if(A!=null){var u=a(o);if(u!=null){A[u]=q;if(d.be&&d.Db&&d.Db.fieldName&&
1281
1281
  o==pui.K(d.Db.fieldName)){var I=(u=q==d.Xh)?d.Xh:d.Db.dataType=="indicator"?"0":" ";if(A.selected!=u){A.selected=u;pui.modified=true;if(A.selection){A.selection.modified=true;A.selection.value=I}else{v=pui.Kb(d.Wa)+"."+o+"."+k;if(pui.N[v]==null){A.selection={R:String(q),modified:true,type:"grid selection",value:I,n:k,M:d.Db,oj:true};pui.N[v]=[A.selection]}if(pui.N[v][0]!=null&&pui.N[v][0].oj)pui.N[v][0].R=String(q)}}if(u)d.Wh=k}}}I=I=v=null;A=[];for(u=0;u<d.w.length;u++){v=d.w[u];for(var F in v){I=
@@ -1288,40 +1288,40 @@ null){var o=parseInt(k.style.left),q=parseInt(k.style.top),v=parseInt(k.style.wi
1288
1288
  null){var k=parseInt(yb.style.width)-2,o=parseInt(yb.style.height)-5;if(Mb==null)Mb=document.createElement("div");Mb.style.display="block";if(d.g)o-=d.cb;if(o>100){o=100;if(k<100)o=k-5}if(o<35)o=35;Mb.style.width=o+"px";Mb.style.height=o+"px";Mb.className="pui-animation pui-grid-animation";yb.appendChild(Mb)}};this.getData=function(k){function o(ia,ta,Ja){var Oa;if(!(d==null||d.cells==null)){if(ta!=null)d.totalRecs=ta;d.saveFieldNames=d.Y;d.Y=[];d.W=[];d.clear(false);d.Tc=false;d.dataProps["load all rows"]==
1289
1289
  "true"&&s(false);if(ia.length>=1){for(Oa in ia[0])d.Y.push(pui.K(Oa));d.saveFieldNames=d.Y;for(ta=0;ta<ia.length;ta++){d.dataArray[ta]=[];d.W[ta]=[];var za=ia[ta],Ga=0;for(Oa in za){var Qa=za[Oa];d.dataArray[ta][Ga]=Qa;d.W[ta][Ga]=Qa;Ga++}}}d.wa=true;d.getData();if(d.dataProps["load all rows"]=="true"&&d.isFiltered()&&Va){ia=h();Oa=ia.filters;if(Oa!=null){d.sc=false;for(ta=0;ta<Oa.length;ta++){za=ia.filters[ta].column;Ga=ia.filters[ta].text;Ga==null||Ga==""?d.removeFilter(za):d.setFilter(za,Ga)}d.sc=
1290
1290
  true}}if(d.dataProps["load all rows"]=="true"&&d.g&&d.cells.length>0){ia=d.cells[0];for(ta=0;ta<ia.length;ta++)if(ia[ta].ek)ia[ta].ek=null;d.Bl(false)}d.unMask();if(d.dataProps["load all rows"]!="true")d.wa=false;if(d.c!=null)if(d.c.type=="paging")setTimeout(function(){d.c.destroy();d.c=null;d.setScrollBar()},250);else if(d.c.type=="sliding")if(d.totalRecs!=null){d.c.Sa=d.totalRecs;Ja>0&&d.c.xd(d.h,true)}if(d.b.style.visibility!="hidden"&&d.c!=null){d.c.z();typeof d.c.Bh=="function"&&d.c.Bh()}d.Ki=
1291
- false}}function q(ia,ta,Ja){function Oa(Fb){return Fb.columnId===Qa}var za,Ga,Qa;if(!(d==null||d.cells==null)){if(ta!=null)d.totalRecs=ta;if(Ja>0){d.h=Ja;d.clearData()}ta=e();var Jb=Array(d.cells[0].length);for(za=0;za<d.cells[0].length;za++)Jb[d.cells[0][za].v]=za;if((d.Gl||d.ma)&&ia.length>0&&d.fa.length){Qa=0;for(Ga in ia[0]){if(za=d.fa.find(Oa))za.field=Ga;Qa++}}for(za=d.Bf=0;za<ia.length;za++){if(d.Bf==0)d.Bf=za+1+(d.h-1);d.hj=za+1+(d.h-1);var Pa=ia[za],cb=0,Bb=d.cells[za+(d.g?1:0)];if(Bb!=null)for(Ga in Pa){var Ua=
1291
+ false}}function q(ia,ta,Ja){function Oa(Fb){return Fb.columnId===Qa}var za,Ga,Qa;if(!(d==null||d.cells==null)){if(ta!=null)d.totalRecs=ta;if(Ja>0){d.h=Ja;d.clearData()}ta=e();var Jb=Array(d.cells[0].length);for(za=0;za<d.cells[0].length;za++)Jb[d.cells[0][za].v]=za;if((d.Gl||d.ma)&&ia.length>0&&d.fa.length){Qa=0;for(Ga in ia[0]){if(za=d.fa.find(Oa))za.field=Ga;Qa++}}for(za=d.Cf=0;za<ia.length;za++){if(d.Cf==0)d.Cf=za+1+(d.h-1);d.hj=za+1+(d.h-1);var Pa=ia[za],cb=0,Bb=d.cells[za+(d.g?1:0)];if(Bb!=null)for(Ga in Pa){var Ua=
1292
1292
  Bb.length;if(d.ma&&d.fa.length)Ua=d.fa.length;if(cb<Ua){Ua=Pa[Ga];var $b="";Qa=pui.secLevel>0?Jb[cb]:cb;if(d.ma){if(Qa==undefined){cb++;continue}if(d.H["text align"]){var Rb=d.H["text align"].split(",");if(Rb[cb])$b=" text-align:"+Rb[cb]}}else if(Bb[Qa].style.textAlign!=null&&Bb[Qa].style.textAlign!="")$b=" text-align:"+Bb[Qa].style.textAlign;if(pui.appJob.decimalFormat=="J"&&Ua.charAt(0)==","&&Ua.length>1&&!Number.isNaN(Number.parseInt(Ua.substring(1))))Ua="0"+Ua;Bb[Qa].innerHTML='<div style="'+
1293
1293
  ta+$b+'" class="dbd">'+Ua+"</div>";if(d.X!=null&&d.X.text!=""&&(Qa===d.X.col||d.X.col==="*all"))if(Bb[Qa].tagName=="DIV"){pui.jl(Bb[Qa],d.X.text);Bb[Qa].kl=true}}cb++}}ia=d.cells.length;if(d.g)ia-=1;if(d.c!=null)if(d.c.type=="paging")setTimeout(function(){d.c.destroy();d.c=null;d.setScrollBar()},250);else if(d.c.type=="sliding")if(d.totalRecs!=null){d.c.Sa=d.totalRecs;Ja>0&&d.c.xd(d.h,true)}if(d.b.style.visibility!="hidden"&&d.c!=null){d.c.z();typeof d.c.Bh=="function"&&d.c.Bh()}if(d.i!=null){d.i.Tl=
1294
- parseInt((d.h+ia*2-2)/ia)+d.cp-1;d.i.z()}d.Ki=false}}function v(){var ia=null;if(d.Dg&&d.bg!==null){if(d.Rb)if(d.Rb.length<1&&d.qd)d.Rb=null;if(d.Rb==null){d.Rb=[];for(ia=0;ia<d.dataArray.length;ia++){var ta={Bq:d.getDataValue(ia+1,d.bg),Yu:false};d.Rb.push(ta)}d.De=new pui.Nq;d.De.load(d.Rb)}if(!d.Zu){d.Zu=true;d.ls=null;ia=d.qx();for(ta=0;ta<d.w.length;ta++)if(d.w[ta].columnId==ia){ia=d.w[ta].left;if(ia===undefined)ia="10px";ia=ia.substring(0,ia.indexOf("px"));ia=parseInt(ia);d.ls=ia;break}}ia=
1294
+ parseInt((d.h+ia*2-2)/ia)+d.cp-1;d.i.z()}d.Ki=false}}function v(){var ia=null;if(d.Eg&&d.cg!==null){if(d.Rb)if(d.Rb.length<1&&d.qd)d.Rb=null;if(d.Rb==null){d.Rb=[];for(ia=0;ia<d.dataArray.length;ia++){var ta={Bq:d.getDataValue(ia+1,d.cg),Yu:false};d.Rb.push(ta)}d.De=new pui.Nq;d.De.load(d.Rb)}if(!d.Zu){d.Zu=true;d.ls=null;ia=d.qx();for(ta=0;ta<d.w.length;ta++)if(d.w[ta].columnId==ia){ia=d.w[ta].left;if(ia===undefined)ia="10px";ia=ia.substring(0,ia.indexOf("px"));ia=parseInt(ia);d.ls=ia;break}}ia=
1295
1295
  d.b.id;ia={id:ia+d.Im,"field type":"graphic button",left:"10px",top:"0px","css class":"pui-button-tree-level","icon position":"left",onclick:'myFunction = function (event, elem) {\n getObj("'+ia+'").grid.toggleTreeLevel(rrn);\n}\n\n',grid:ia,visibility:"visible"};ia.columnId=d.Ye;ia.column=ia.columnId.toString()}return ia}function A(ia){var ta=La-1;ia.icon="fontAwesome-solid:minus-square-tree-level";ia.visibility="visible";if(d.Rb[ta].Yu)ia.icon="fontAwesome-solid:plus-square-tree-level";for(var Ja=
1296
1296
  d.Rb[ta].Bq,Oa=0;Oa<d.w.length;Oa++)if(d.w[Oa].columnId==ia.columnId){ia.column=d.w[Oa].column;var za=d.ls+(Ja-1)*10;ia.left=za+"px";d.w[Oa].left=za+20+"px";break}if(ta+1>=d.Rb.length||d.Rb[ta+1].Bq<=Ja)ia.visibility="hidden"}var u;d.aj();if(d.b.disabled!=true)if(!d.designMode){var I=d.cells.length;if(d.g)I-=1;if(!(I<1)){if(d.wa==false){if(d.da()){if(!ae){ed=ae=true;g(true);ed=false}if(!be){n();be=true}}var F=d.dataProps["custom sql"];u="";if(F==null||F==""){var H=d.dataProps["database file"],L=d.dataProps["database fields"],
1297
1297
  Q=d.dataProps["selection criteria"];u=d.dataProps["order by"];if(d.Eb!=null)u=d.Eb;if(L!=null&&L!=""&&H!=null&&H!=""){F="SELECT "+L+" FROM "+H;if(Q&&Q!="")F+=" WHERE "+Q;if(u&&u!="")F+=" ORDER BY "+u}}else if(d.Eb!=null)F+=" ORDER BY "+d.Eb}H=d.dataProps["data url"];if(H=="")H=null;if(F==null)F="";if(d.wa==false&&(F!=""||H!=null))if(k!=null){if(!(F==null||F=="")){var X=",";I=".";var O='"';if(pui.appJob!=null&&(pui.appJob.decimalFormat=="I"||pui.appJob.decimalFormat=="J")){X=";";I=","}if(typeof pui["csv separator"]==
1298
1298
  "string")X=pui["csv separator"];if(typeof pui["csv string delimiter"]=="string")O=pui["csv string delimiter"];var S=document.createElement("form");S.action=Vb("PUI0009107.pgm");S.method="post";var R=function(ia,ta){var Ja=Xb("input",ia);Ja.type="hidden";Ja.value=ta;S.appendChild(Ja)};pui.isCloud&&R("workspace_id",pui.cloud.ws.id);R("delimiter",X);R("stringDelimiter",O===""?"*NONE":O);pui["read db driven data as ebcdic"]!==true&&R("UTF8","Y");R("decType",I);R("fileName",k+".csv");if(pui.secLevel>0){R("q",
1299
- encodeURIComponent(pui.$c(d.b)));I={};pui.rd(d.dataProps,I);for(var Z in I)R(Z,encodeURIComponent(I[Z]));if(u&&u!="")R("order",u);else Eb()=="mssql"&&R("order","(select null)")}else R("q",pui.yb.xf(F));R("AUTH",pui.Z?pui.Z:pui.appJob.auth);pui.Z||typeof pui.vId!=="undefined"&&R("VID",pui.vId);if(d.g&&d.$k){var V;if(d.ma){V="";d.fa.forEach(function(ia){var ta=ia.name;if(ia.blankHeader)ta="";ta=ta.replace(/"/g,'""');if(V)V+=X;V+=O+ta+O})}else{V="";for(u=0;u<d.cells[0].length;u++){I=Lc(d.cells[0][u]);
1299
+ encodeURIComponent(pui.$c(d.b)));I={};pui.rd(d.dataProps,I);for(var Z in I)R(Z,encodeURIComponent(I[Z]));if(u&&u!="")R("order",u);else Eb()=="mssql"&&R("order","(select null)")}else R("q",pui.yb.yf(F));R("AUTH",pui.Z?pui.Z:pui.appJob.auth);pui.Z||typeof pui.vId!=="undefined"&&R("VID",pui.vId);if(d.g&&d.$k){var V;if(d.ma){V="";d.fa.forEach(function(ia){var ta=ia.name;if(ia.blankHeader)ta="";ta=ta.replace(/"/g,'""');if(V)V+=X;V+=O+ta+O})}else{V="";for(u=0;u<d.cells[0].length;u++){I=Lc(d.cells[0][u]);
1300
1300
  I=I.replace(/"/g,'""');if(V!="")V+=X;V+=O+I+O}}R("headings",V)}typeof d.Pc==="string"&&d.Pc.length>0&&d.Pc.substring(1).split("&").forEach(function(ia){ia=ia.split("=");R(ia[0],decodeURIComponent(ia[1]))});document.body.appendChild(S);pui.skipConfirm=true;S.submit();setTimeout(function(){S.parentNode.removeChild(S);pui.skipConfirm=false},0)}}else{if(d.c!=null){if(d.c.type=="paging")d.c.Ib=d.h==1;d.b.style.visibility!="hidden"&&d.c.z()}var ga=d.h;if(qc!=null&&pc!=null&&rc>0)ga=rc;else d.clearData();
1301
- var ya=q;I=I;if(ib==null||ib.style.display=="none"){d.mask();d.Lb()}if(d.dataProps["load fields into widgets"]=="true"){ya=o;if(d.dataProps["load all rows"]=="true")I=-1}P=="genie"?Na(F,I,ga,ya,d.totalRecs==null,H,false):Na(F,I,ga,ya,d.totalRecs==null,H,true)}else if(P=="dspf"||pui.ea){F=d.dataArray;if(d.isFiltered())F=d.W;if(!d.b.tf)d.b.tf=0;u=d.h;if(F[d.h-1]&&F[d.h-1].n!=null)u=F[d.h-1].n;d.b.qu=u;if(d.Io!=null&&!d.ot)pui.Hm["toprrn."+d.Io]=u;d.clearData();Z=d.g?1:0;k=d.h+I-1;if(d.wa==false&&F.length<
1302
- k&&(d.isFiltered()||d.c!=null)){d.h=d.h-k+F.length;if(d.h<1)d.h=1;k=F.length}d.Cx();u=d.h;if(d.wa==true&&d.dataProps["load all rows"]!="true"){u=1;k=I}H=v();d.Bf=0;d.wl=null;for(u=u;u<=k;u++){if(d.Xs)ga=d.Xs[u-1];ga||(ga={});L={};ya=F[u-1];if(ya==null||ya.length==0)L.empty=true;else for(Q=0;Q<d.Y.length;Q++)L[d.Y[Q]]=ya[Q];if(d.dataProps["load fields into widgets"]=="true"){L.__pui_show=true;L.__pui_skipdecode=true}ya=d.be||d.Nj!=null||d.Lj!=null;if(L.empty!=true){var La=F[u-1].n;if(La==null)La=u;
1303
- ya&&d.fd(Z,false,u-1);H!==null&&A(H);if(d.Bf==0)d.Bf=La;d.hj=La;pui.Xp({designMode:false,name:pui.Kb(d.Wa),metaData:{items:d.w},data:L,Ws:ga,ref:d.ref,errors:d.errors,Pj:Z,n:La,Yb:u-1,X:d.X,Cq:H});if(d.be&&d.Db!=null){L=pui.Kb(d.Wa)+"."+pui.K(d.Db.fieldName)+"."+La;if(pui.N[L]==null){F[u-1].selection={modified:false,type:"grid selection",value:d.Db.dataType=="indicator"?"0":" ",n:La,M:d.Db};pui.N[L]=[];pui.N[L].push(F[u-1].selection)}}if(d.Ee!=null){L=pui.Kb(d.Wa)+"."+pui.K(d.Ee.fieldName)+"."+La;
1304
- if(pui.N[L]==null){F[u-1].Fe={modified:false,type:"grid hidden field",value:"0",n:La,M:d.Ee};pui.N[L]=[];pui.N[L].push(F[u-1].Fe)}}}else ya&&d.fd(Z);Z++}if(ya&&k<I)for(ga=k+1;ga<=I;ga++)d.fd(ga);if(d.Dg&&d.bg!==null&&d.wl!==null){ga=Ab(d.b.id+d.Im+"."+d.wl);ga!==null&&ga.focus()}if(d.da()&&d.dataProps["load all rows"]!="true"){d.Bf+=d.h-1;d.hj+=d.h-1}if(d.c!=null&&d.c.type=="sliding")d.c.Sa=d.wa&&d.dataProps["load all rows"]!="true"?d.totalRecs:F.length;if(d.b.style.visibility!="hidden"&&d.c!=null){d.c.z();
1301
+ var ya=q;I=I;if(ib==null||ib.style.display=="none"){d.mask();d.Lb()}if(d.dataProps["load fields into widgets"]=="true"){ya=o;if(d.dataProps["load all rows"]=="true")I=-1}P=="genie"?Na(F,I,ga,ya,d.totalRecs==null,H,false):Na(F,I,ga,ya,d.totalRecs==null,H,true)}else if(P=="dspf"||pui.ea){F=d.dataArray;if(d.isFiltered())F=d.W;if(!d.b.uf)d.b.uf=0;u=d.h;if(F[d.h-1]&&F[d.h-1].n!=null)u=F[d.h-1].n;d.b.qu=u;if(d.Io!=null&&!d.ot)pui.Hm["toprrn."+d.Io]=u;d.clearData();Z=d.g?1:0;k=d.h+I-1;if(d.wa==false&&F.length<
1302
+ k&&(d.isFiltered()||d.c!=null)){d.h=d.h-k+F.length;if(d.h<1)d.h=1;k=F.length}d.Cx();u=d.h;if(d.wa==true&&d.dataProps["load all rows"]!="true"){u=1;k=I}H=v();d.Cf=0;d.wl=null;for(u=u;u<=k;u++){if(d.Xs)ga=d.Xs[u-1];ga||(ga={});L={};ya=F[u-1];if(ya==null||ya.length==0)L.empty=true;else for(Q=0;Q<d.Y.length;Q++)L[d.Y[Q]]=ya[Q];if(d.dataProps["load fields into widgets"]=="true"){L.__pui_show=true;L.__pui_skipdecode=true}ya=d.be||d.Nj!=null||d.Lj!=null;if(L.empty!=true){var La=F[u-1].n;if(La==null)La=u;
1303
+ ya&&d.fd(Z,false,u-1);H!==null&&A(H);if(d.Cf==0)d.Cf=La;d.hj=La;pui.Xp({designMode:false,name:pui.Kb(d.Wa),metaData:{items:d.w},data:L,Ws:ga,ref:d.ref,errors:d.errors,Pj:Z,n:La,Yb:u-1,X:d.X,Cq:H});if(d.be&&d.Db!=null){L=pui.Kb(d.Wa)+"."+pui.K(d.Db.fieldName)+"."+La;if(pui.N[L]==null){F[u-1].selection={modified:false,type:"grid selection",value:d.Db.dataType=="indicator"?"0":" ",n:La,M:d.Db};pui.N[L]=[];pui.N[L].push(F[u-1].selection)}}if(d.Ee!=null){L=pui.Kb(d.Wa)+"."+pui.K(d.Ee.fieldName)+"."+La;
1304
+ if(pui.N[L]==null){F[u-1].Fe={modified:false,type:"grid hidden field",value:"0",n:La,M:d.Ee};pui.N[L]=[];pui.N[L].push(F[u-1].Fe)}}}else ya&&d.fd(Z);Z++}if(ya&&k<I)for(ga=k+1;ga<=I;ga++)d.fd(ga);if(d.Eg&&d.cg!==null&&d.wl!==null){ga=Ab(d.b.id+d.Im+"."+d.wl);ga!==null&&ga.focus()}if(d.da()&&d.dataProps["load all rows"]!="true"){d.Cf+=d.h-1;d.hj+=d.h-1}if(d.c!=null&&d.c.type=="sliding")d.c.Sa=d.wa&&d.dataProps["load all rows"]!="true"?d.totalRecs:F.length;if(d.b.style.visibility!="hidden"&&d.c!=null){d.c.z();
1305
1305
  typeof d.c.Bh=="function"&&d.c.Bh()}if(d.i!=null){d.i.Tl=parseInt((d.h+I*2-2)/I)+d.cp-1;d.i.z()}d.Ki=false;d.unMask()}}}};this.clearData=function(){if(!d.Ki){var k;if(d.c!=null)k=d.c.Vu;for(var o=d.g?1:0;o<d.cells.length;o++)for(var q=0;q<d.cells[o].length;q++)for(var v=d.cells[o][q],A=v.firstChild;A;){if(A==k){A.style.display="none";A.Th=true;d.b.appendChild(A)}else v.removeChild(A);A=v.firstChild}d.Ki=true}};this.Cx=function(){for(var k in d.Hq)d.Hq[k].Bx()};this.destroy=function(){d.Kd&&Zb(document,
1306
1306
  "click",d.aj);for(d.c!=null&&d.c.destroy();d.m.length>0;){var k=d.m.pop();k.parentNode!=null&&k.parentNode.removeChild(k)}for(;d.j.length>0;){k=d.j.pop();k.parentNode!=null&&k.parentNode.removeChild(k)}d.i!=null&&d.i.destroy();d.ac!=null&&d.ac.destroy();Ca!=null&&Ca.parentNode.removeChild(Ca);Xa!=null&&Xa.parentNode.removeChild(Xa);ca!=null&&ca.parentNode.removeChild(ca);qa!=null&&qa.parentNode.removeChild(qa);Wa!=null&&Wa.parentNode.removeChild(Wa);Y!=null&&Y.parentNode.removeChild(Y);fa!=null&&
1307
- fa.parentNode.removeChild(fa);sa!=null&&sa.parentNode.removeChild(sa);Ya!=null&&Ya.parentNode.removeChild(Ya);$a=Za=Ta=Ya=null;try{if(Array.isArray(d.w))for(;d.w.length>0;){var o=d.w.pop();if(typeof o==="object"&&o!==null&&Array.isArray(o.domEls))for(var q=o.domEls;q.length>0;){var v=q.pop();if(typeof v==="object"&&v!==null)if(!(v.chart&&v.chart.FusionCharts)){pui.la(v);pui.pd(v)}}}this.Kc();d=null}catch(A){console.log(A)}};this.Df=function(){for(var k="",o=1;o<d.m.length;o++){var q=parseInt(d.m[o].style.left)-
1308
- parseInt(d.m[o-1].style.left);k+=k==""?String(q):","+String(q)}return k};this.Zf=function(k){if(typeof k=="string")k=k.split(",");if(!(d.m.length<=0)){for(var o=parseInt(d.m[0].style.left),q=1;q<d.m.length;q++){var v=d.qs,A=q-1;if(A<k.length)v=pui.ae(k[A],50);o+=v;d.m[q].style.left=o+"px"}la();d.designMode&&d.Ma();aa();d.setScrollBar();d.ic();d.hc(true)}};this.Te=function(){if(!d.yo)if(d.designMode){var k=d.b.d;if(k!=null){k.designer.Kf.update();var o=k.designer.selection;if(o.Yd.length==1&&o.Yd[0].d==
1307
+ fa.parentNode.removeChild(fa);sa!=null&&sa.parentNode.removeChild(sa);Ya!=null&&Ya.parentNode.removeChild(Ya);$a=Za=Ta=Ya=null;try{if(Array.isArray(d.w))for(;d.w.length>0;){var o=d.w.pop();if(typeof o==="object"&&o!==null&&Array.isArray(o.domEls))for(var q=o.domEls;q.length>0;){var v=q.pop();if(typeof v==="object"&&v!==null)if(!(v.chart&&v.chart.FusionCharts)){pui.la(v);pui.pd(v)}}}this.Kc();d=null}catch(A){console.log(A)}};this.Ef=function(){for(var k="",o=1;o<d.m.length;o++){var q=parseInt(d.m[o].style.left)-
1308
+ parseInt(d.m[o-1].style.left);k+=k==""?String(q):","+String(q)}return k};this.$f=function(k){if(typeof k=="string")k=k.split(",");if(!(d.m.length<=0)){for(var o=parseInt(d.m[0].style.left),q=1;q<d.m.length;q++){var v=d.qs,A=q-1;if(A<k.length)v=pui.ae(k[A],50);o+=v;d.m[q].style.left=o+"px"}la();d.designMode&&d.Ma();aa();d.setScrollBar();d.ic();d.hc(true)}};this.Te=function(){if(!d.yo)if(d.designMode){var k=d.b.d;if(k!=null){k.designer.Lf.update();var o=k.designer.selection;if(o.Yd.length==1&&o.Yd[0].d==
1309
1309
  k)d.hc();else{o.clear();o.add(k);d.hc(true)}}}};this.hc=function(k){if(d.designMode)if(!Hb.Ih){var o=d.b.d;if(o!=null){var q=o.properties.height==="#subfileHeight"?"#subfileHeight":d.b.style.height,v;if(o.properties["number of rows"]!=="#rowsPerPageRDF"){v=d.j.length-1;if(v<0)v=0;v=String(v)}else v=o.properties["number of rows"];var A=d.m.length-1;if(A<0)A=0;A=String(A);var u=false;u=Zd(d,o,"number of rows",v)||u;u=Zd(d,o,"number of columns",A)||u;u=Zd(d,o,"row height",d.ka)||u;u=Zd(d,o,"header height",
1310
- d.cb)||u;u=Zd(d,o,"column widths",d.Df())||u;u=Zd(d,o,"left",d.b.style.left)||u;u=Zd(d,o,"top",d.b.style.top)||u;u=Zd(d,o,"height",q)||u;if(u=Zd(d,o,"width",d.b.style.width)||u){o.designer.tp();P==="dspf"&&pui.ide.refreshRibbon()}if(u||k)o.designer.ob.refresh()}}};this.ic=function(k){if(d.g)if(!(d.cells.length<=0))for(var o=e(),q=d.cells[0],v=0,A=q.length;v<A;v++){var u=q[v],I=false,F=null;if(d.designMode==false){if(u.nc!=null){I=true;d.Jj(u)}if(u.ed!=null){F=u.ed;F.parentNode!=null&&F.parentNode.removeChild(F)}}if(d.columnHeadings.length<=
1311
- v)u.innerHTML="";else{var H="";if(u.style.textAlign!=null&&u.style.textAlign!="")H=" text-align:"+u.style.textAlign;var L="<div";if(d.Sc)L+=' class="qf"';L+=' style="'+o+H+'">';if(d.ma&&k&&k[v])L+=k[v];else if(d.columnHeadings[v])L+=d.columnHeadings[v];u.innerHTML=L+"</div>"}I&&d.um(u);I=false;if(d.designMode==false&&d.sortable==true)if(F!=null)B(u,F);else if(d.jc!=null){if(Ic==u.v)I=true;else if(d.b.rh!=null&&d.Jf==u.v)I=true;else if(d.b.xg!=null&&typeof d.dj==="string"&&d.dj.toUpperCase()==d.No(u.col,
1310
+ d.cb)||u;u=Zd(d,o,"column widths",d.Ef())||u;u=Zd(d,o,"left",d.b.style.left)||u;u=Zd(d,o,"top",d.b.style.top)||u;u=Zd(d,o,"height",q)||u;if(u=Zd(d,o,"width",d.b.style.width)||u){o.designer.tp();P==="dspf"&&pui.ide.refreshRibbon()}if(u||k)o.designer.ob.refresh()}}};this.ic=function(k){if(d.g)if(!(d.cells.length<=0))for(var o=e(),q=d.cells[0],v=0,A=q.length;v<A;v++){var u=q[v],I=false,F=null;if(d.designMode==false){if(u.nc!=null){I=true;d.Jj(u)}if(u.ed!=null){F=u.ed;F.parentNode!=null&&F.parentNode.removeChild(F)}}if(d.columnHeadings.length<=
1311
+ v)u.innerHTML="";else{var H="";if(u.style.textAlign!=null&&u.style.textAlign!="")H=" text-align:"+u.style.textAlign;var L="<div";if(d.Sc)L+=' class="qf"';L+=' style="'+o+H+'">';if(d.ma&&k&&k[v])L+=k[v];else if(d.columnHeadings[v])L+=d.columnHeadings[v];u.innerHTML=L+"</div>"}I&&d.um(u);I=false;if(d.designMode==false&&d.sortable==true)if(F!=null)B(u,F);else if(d.jc!=null){if(Ic==u.v)I=true;else if(d.b.rh!=null&&d.Kf==u.v)I=true;else if(d.b.yg!=null&&typeof d.dj==="string"&&d.dj.toUpperCase()==d.No(u.col,
1312
1312
  parseInt(d.b.Hx)))I=true;if(I){E();B(u,d.jc)}}if(d.Sc){F=document.createElement("input");F.type="text";F.className="qf";F.placeholder=pui.getLanguageText("runtimeText","filter text")+"...";if(d.designMode)F.disabled=true;else{F.addEventListener("mousedown",d.qr);F.addEventListener("click",d.qr);F.addEventListener("focus",d.$a);F.addEventListener("input",d.$a);F.addEventListener("keydown",d.$a);F.addEventListener("blur",d.$a)}u.appendChild(F);u=u.sa;if(typeof u==="string"&&u.length>0)F.value=u}}};
1313
- this.Bw=function(){if(d.g)if(!(d.cells.length<=0))for(var k=0;k<d.cells[0].length;k++)d.cells[0][k].innerHTML=""};this.Bl=function(k){function o(H){function L(){if(d.b.rh!=null){d.co=String(H.v);pui.ue=d;pui.fc();pui.ue=null}else if(d.b.xg!=null){d.Qi=d.No(H.col,parseInt(d.b.Cs));if(d.Qi==null)d.Xf=null;else{pui.xe=d;pui.fc();pui.xe=null}}else t(H)}T(H,"click",L);H.Am=L}var q;if(d.sortable)if(!(P!="dspf"&&!pui.ea))if(d.g)if(!(d.cells.length<=0)){var v=d.cells[0];if(d.dataProps["database file"]!=null&&
1313
+ this.Bw=function(){if(d.g)if(!(d.cells.length<=0))for(var k=0;k<d.cells[0].length;k++)d.cells[0][k].innerHTML=""};this.Bl=function(k){function o(H){function L(){if(d.b.rh!=null){d.co=String(H.v);pui.ue=d;pui.fc();pui.ue=null}else if(d.b.yg!=null){d.Qi=d.No(H.col,parseInt(d.b.Cs));if(d.Qi==null)d.Yf=null;else{pui.xe=d;pui.fc();pui.xe=null}}else t(H)}T(H,"click",L);H.Am=L}var q;if(d.sortable)if(!(P!="dspf"&&!pui.ea))if(d.g)if(!(d.cells.length<=0)){var v=d.cells[0];if(d.dataProps["database file"]!=null&&
1314
1314
  d.dataProps["database file"]!=""&&(d.dataProps["custom sql"]==null||d.dataProps["custom sql"]=="")&&(d.dataProps["data url"]==null||d.dataProps["data url"]=="")&&d.dataProps["database fields"]!=null&&d.dataProps["database fields"]!=""&&d.dataProps["load all rows"]!="true"){k=pui.Ah(d.dataProps["database fields"]);for(q=0;q<k.length;q++)if(v[q]){v[q].fieldName=k[q];f(v[q])}}else if((d.dataProps["custom sql"]!=null&&d.dataProps["custom sql"]!=""||d.dataProps["data url"]!=null&&d.dataProps["data url"]!=
1315
1315
  "")&&d.dataProps["load all rows"]!="true"){k=d.m.length-1;for(q=0;q<k;q++)f(v[q])}else if(!(d.dataProps["load all rows"]=="true"&&d.wa==false)){for(q=0;q<d.w.length;q++){var A=d.w[q],u=Number(A.column),I=A.value;if(A["field type"]=="html container")I=A.html;if(pui.o(I)&&!isNaN(u)&&u>=0&&u<v.length&&v[u]&&v[u].ek==null){A=pui.K(I.fieldName);for(var F=0;F<d.Y.length;F++)if(A==d.Y[F]){v[u].ek=F;v[u].fieldName=A;v[u].dataType=I.dataType;v[u].Bs=I;if(I.dateFormat)v[u].dateFormat=I.dateFormat;if(!pui.na)v[u].style.cursor=
1316
- "pointer";o(v[u]);break}}}k||g()}}};this.Vy=function(){var k,o,q=h();if(q!=null){if(hd&&!d.ma){k=q.colWidths;if(k!=null){d.Zf(k);d.Ma();d.ic()}}if(gc&&!d.ma){o=q.colSequence;if(o!=null){var v=Array(o.length);for(k=0;k<v.length;k++)v[k]=d.cells[0][o[k]];for(k=0;k<v.length;k++)d.moveColumn(v[k].col,k)}}if(d.ma){o=q.hidableColState;if(k=q.colWidths)k=k.filter(ja());if(o){var A=o.cols;v=A.map(ja());o=q.colSequence;if(v!=null){v.sort(function(I,F){return I.savedColumn>F.savedColumn?1:-1}).forEach(function(I){var F=
1317
- I.columnId;if(F!==undefined){d.fa.every(function(L){if(L.columnId===F){I.blankHeader=L.blankHeader;I.name=L.name;I.field=L.field;return false}return true});if(I.showing){if(gc){var H=Ia(F);H>=0&&H!=I.savedColumn&&d.moveColumn(H,I.savedColumn)}}else d.cq(F)}});if(o)v.Li=o;d.fa=v;d.fa.sort(function(I,F){var H=null,L=null;A.every(function(Q,X){if(I.columnId===Q.columnId)H=X;if(F.columnId===Q.columnId)L=X;if(H!==null&&L!==null)return false;return true});return H>L?1:-1})}}if(k){d.Zf(k);d.Ma()}d.qd&&d.$b();
1318
- d.ic(d.Ms(d.fa))}l(q,true,t);o=q.filters;if(o!=null&&!d.da())for(k=0;k<o.length;k++){v=q.filters[k].column;var u=q.filters[k].text;u==null||u==""?d.removeFilter(v):d.setFilter(v,u)}}};this.Ct=function(k){Ic=null;Ta=[];if(k instanceof Array){s(true);var o="",q="",v="",A="";m(k,function(H,L){return H.ds===L.v},function(H,L){q+=A+H.ds;if(d.b.xg!=null)v+=A+d.No(L.col,parseInt(d.b.Cs));A=",";return H.Jw});A="";k=0;if(d.w.length>0)k=d.w.reduce(function(H,L){return H.columnId>L.columnId?H:L}).columnId;for(var u=
1319
- 0;u<=k;u++){for(var I=false,F=0;F<d.cells[0].length;F++)if(d.cells[0][F].v===u){o+=A+(d.cells[0][F].ra?"D":"A");A=",";I=true;break}if(!I){o+=A+(p(u)?"D":"A");A=","}}if(d.b.rh!=null){d.co=q;pui.ue=d;if(d.b.Vh!=null)d.Xf=o;pui.fc();pui.ue=null}else if(d.b.xg!=null){d.Qi=v;if(d.Qi==null)d.Xf=null;else{if(d.b.Vh!=null)d.Xf=o;pui.xe=d;pui.fc();pui.xe=null}}else if(Ta.length==0)g(false)||z();else d.da()&&d.wa==false?y(null,false):t(null,false)}};this.Dw=function(k,o){var q;if(!d.os){d.os=true;var v=Number(d.dataProps["starting row"]),
1316
+ "pointer";o(v[u]);break}}}k||g()}}};this.Vy=function(){var k,o,q=h();if(q!=null){if(hd&&!d.ma){k=q.colWidths;if(k!=null){d.$f(k);d.Ma();d.ic()}}if(gc&&!d.ma){o=q.colSequence;if(o!=null){var v=Array(o.length);for(k=0;k<v.length;k++)v[k]=d.cells[0][o[k]];for(k=0;k<v.length;k++)d.moveColumn(v[k].col,k)}}if(d.ma){o=q.hidableColState;if(k=q.colWidths)k=k.filter(ja());if(o){var A=o.cols;v=A.map(ja());o=q.colSequence;if(v!=null){v.sort(function(I,F){return I.savedColumn>F.savedColumn?1:-1}).forEach(function(I){var F=
1317
+ I.columnId;if(F!==undefined){d.fa.every(function(L){if(L.columnId===F){I.blankHeader=L.blankHeader;I.name=L.name;I.field=L.field;return false}return true});if(I.showing){if(gc){var H=Ia(F);H>=0&&H!=I.savedColumn&&d.moveColumn(H,I.savedColumn)}}else d.cq(F)}});if(o)v.Li=o;d.fa=v;d.fa.sort(function(I,F){var H=null,L=null;A.every(function(Q,X){if(I.columnId===Q.columnId)H=X;if(F.columnId===Q.columnId)L=X;if(H!==null&&L!==null)return false;return true});return H>L?1:-1})}}if(k){d.$f(k);d.Ma()}d.qd&&d.$b();
1318
+ d.ic(d.Ms(d.fa))}l(q,true,t);o=q.filters;if(o!=null&&!d.da())for(k=0;k<o.length;k++){v=q.filters[k].column;var u=q.filters[k].text;u==null||u==""?d.removeFilter(v):d.setFilter(v,u)}}};this.Ct=function(k){Ic=null;Ta=[];if(k instanceof Array){s(true);var o="",q="",v="",A="";m(k,function(H,L){return H.ds===L.v},function(H,L){q+=A+H.ds;if(d.b.yg!=null)v+=A+d.No(L.col,parseInt(d.b.Cs));A=",";return H.Jw});A="";k=0;if(d.w.length>0)k=d.w.reduce(function(H,L){return H.columnId>L.columnId?H:L}).columnId;for(var u=
1319
+ 0;u<=k;u++){for(var I=false,F=0;F<d.cells[0].length;F++)if(d.cells[0][F].v===u){o+=A+(d.cells[0][F].ra?"D":"A");A=",";I=true;break}if(!I){o+=A+(p(u)?"D":"A");A=","}}if(d.b.rh!=null){d.co=q;pui.ue=d;if(d.b.Vh!=null)d.Yf=o;pui.fc();pui.ue=null}else if(d.b.yg!=null){d.Qi=v;if(d.Qi==null)d.Yf=null;else{if(d.b.Vh!=null)d.Yf=o;pui.xe=d;pui.fc();pui.xe=null}}else if(Ta.length==0)g(false)||z();else d.da()&&d.wa==false?y(null,false):t(null,false)}};this.Dw=function(k,o){var q;if(!d.os){d.os=true;var v=Number(d.dataProps["starting row"]),
1320
1320
  A=Number(d.dataProps["ending row"]);if(!(isNaN(v)||isNaN(A)))if(d.dataProps["data columns"]!=null){var u=[];for(q=0;q<k;q++){var I="data columns";if(q>0)I+=" "+(q+1);u[q]=d.dataProps[I].split(",")}d.dataArray=[];d.h=1;I=0;d.g&&I++;for(v=v;v<=A;v+=k){var F=I-(d.g?1:0);d.dataArray[F]=[];d.dataArray[F].selected=false;for(q=0;q<k;q++)for(var H=0;H<u[q].length;H++){var L=u[q][H],Q="D_"+(v+q)+"_"+L,X=d.b.parentNode.id;if(X!=null&&X.substr(0,6)=="window"){var O=parseInt(X.substr(6,1));if(!isNaN(O)&&O>0)Q+=
1321
1321
  "_W"+O}var S=Ab(Q),R,Z;if(S==null){Q="I_"+(v+q)+"_"+L;S=Ab(Q);if(S==null)if(!isNaN(O)&&O>0)Q+="_W"+O;S=Ab(Q);if(S==null)continue;d.c!=null&&d.c.type=="paging"&&d.c.Oi(S);if(!S.readOnly)continue;L=S.value;L=L.replace(/ /g,"&nbsp;");S.style.display="none";Q=S.className;X=parseInt(S.style.left);R=parseInt(S.style.top);Z=S.B}else{L=S.innerHTML;Q=S.className;X=parseInt(S.style.left);R=parseInt(S.style.top);Z=S.B;S.parentNode.removeChild(S);d.c!=null&&d.c.type=="paging"&&d.c.Oi(S)}if(Q==null||Q==""||Q==
1322
1322
  "A20")Q="";else if(Q.indexOf("readOnly")!=-1){Q=pui.Up(Q,"readOnly");Q=pui.Up(Q,"input")}S=H;if(k>1)S=0;if(d.cells.length<=I)break;var V=d.cells[I][S];if(V!=null){var ga=document.createElement("div");ga.className=Q;ga.innerHTML=L;d.dataArray[F][S]=L.replace(/&nbsp;/g," ");ga.style.position="absolute";X-=parseInt(V.style.left);X-=parseInt(d.b.style.left);if(o==true||k==1)X=5;ga.style.left=X+"px";R-=parseInt(V.style.top);R-=parseInt(d.b.style.top);if(o==true||k==1)R=5;ga.style.top=R+"px";ga.B=Z;T(ga,
1323
1323
  "click",setPos);if(k==1){V.B=Z;T(V,"click",setPos)}V.appendChild(ga)}}I++}}}};this.setScrollBar=function(){if(d.i.container==null){d.i.container=d.container;d.i.grid=d;d.i.init();d.i.z()}d.i.x=parseInt(d.b.style.left);d.i.y=parseInt(d.b.style.top);var k=parseInt(d.b.style.height);if(isNaN(k))k=0;d.i.y+=k;d.i.width=parseInt(d.b.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 o=true;if(d.j.length<2)o=false;if(d.j.length<3&&d.g)o=false;
1324
- if(d.m.length<2)o=false;if(!d.Tf&&!d.Dc)o=false;k="paging";if(d.Dc)k="sliding";if(P=="genie"&&!d.designMode&&d.da())k="sliding";if(o&&(d.c==null||d.c!=null&&d.c.type!=k)){d.c!=null&&d.c.destroy();if(k=="paging"){d.c=new pui.ov;d.c.grid=d}if(k=="sliding"){d.c=new pui.qv;if(P=="genie"&&!pui.ea)d.c.Vf=true}d.c.container=d.container;d.c.zIndex=d.$y;d.c.designMode=d.designMode;if(k=="sliding"){d.c.Ol=function(u){if(ib==null||ib.style.display=="none"){d.mask();d.Lb()}d.h=u;if(!(d==null||d.cells==null)){d.getData();
1324
+ if(d.m.length<2)o=false;if(!d.Uf&&!d.Dc)o=false;k="paging";if(d.Dc)k="sliding";if(P=="genie"&&!d.designMode&&d.da())k="sliding";if(o&&(d.c==null||d.c!=null&&d.c.type!=k)){d.c!=null&&d.c.destroy();if(k=="paging"){d.c=new pui.ov;d.c.grid=d}if(k=="sliding"){d.c=new pui.qv;if(P=="genie"&&!pui.ea)d.c.Wf=true}d.c.container=d.container;d.c.zIndex=d.$y;d.c.designMode=d.designMode;if(k=="sliding"){d.c.Ol=function(u){if(ib==null||ib.style.display=="none"){d.mask();d.Lb()}d.h=u;if(!(d==null||d.cells==null)){d.getData();
1325
1325
  d.St(true)}};d.c.onchange=function(){d.da()&&d.dataProps["load all rows"]!="true"&&d.clearData()};d.c.Oi(d.b)}if(k=="paging"){d.c.uj=function(){if(U("onpageup")==false)return false;if(d.wa==false&&d.da()){if(d.h>1){var u=d.cells.length;if(d.g)u-=1;d.h-=u;if(d.h<1)d.h=1;d.getData()}return true}else if(d.wa==true||P=="dspf"||pui.ea){pui.Rj=d.Wa;pui.Ch({},"PageUp");d.c.type=="paging"&&pui.Pb&&setTimeout(function(){d.c.destroy();d.c=null;d.setScrollBar()},250)}else if(P=="genie"){Ub("PageUp");return true}};
1326
1326
  d.c.tj=function(){if(U("onpagedown")==false)return false;if(d.wa==false&&d.da()){var u=d.cells.length;if(d.g)u-=1;d.h+=u;d.getData();return true}else if(d.wa==true||P=="dspf"||pui.ea){pui.Rj=d.Wa;pui.Ch({},"PageDown");d.c.type=="paging"&&pui.Pb&&setTimeout(function(){d.c.destroy();d.c=null;d.setScrollBar()},250)}else if(P=="genie"){Ub("PageDown");return true}};d.c.Oi(d.b)}d.c.init(d.b)}if(o){o=d.borderWidth;if(o===null||d.designMode&&o<Aa)o=Aa;var q=23;if(pui.is_touch&&!pui.is_mouse_capable&&!d.designMode||
1327
1327
  pui.na)q=0;d.c.x=parseInt(d.m[d.m.length-1].style.left)-q;if(!d.designMode&&d.container!=null&&d.container.tagName=="DIV"&&d.container.getAttribute("container")=="true"){var v=d.container.parentNode;if(v!=null&&v.tagName=="DIV"&&v.style.overflowX=="scroll"){var A=v.parentNode;if(A!=null&&A.tagName=="DIV"&&A.pui!=null&&A.pui.properties!=null&&A.pui.properties.template=="simple container"&&A.pui.properties["overflow x"]=="scroll")if(A.offsetWidth<d.b.offsetWidth+d.b.offsetLeft){d.c.x=A.offsetWidth-
@@ -1329,39 +1329,39 @@ q+2+v.scrollLeft;v.onscroll=function(){if(d.c){d.c.x=A.offsetWidth-q+2+v.scrollL
1329
1329
  3;if(d.iq=="row number"){d.c.ci=true;d.c.di=false}else if(d.iq=="row range"){d.c.ci=false;d.c.di=true}else{d.c.ci=false;d.c.di=false}}if(d.g){k=d.cb;d.c.y+=k;k=-k;d.c.height+=k}d.b.style.visibility!="hidden"&&d.c.z()}else if(d.c!=null){d.c.destroy();d.c=null}};this.pc=function(k){k=parseInt(d.b.style[k]);if(isNaN(k))k=0;return k};this.setProperty=function(k,o,q){var v;if(o==null)o="";if(k.indexOf("parameter value")==0)d.dataProps[k]=o;else{var A=k,u=/^(database file) \d+$/.exec(k);if(u!=null&&u[1]!=
1330
1330
  null)A=u[1];u=/^(grid row translation placeholder key) \d+$/.exec(k);if(u!=null&&u[1]!=null)A=u[1];u=/^(grid row translation placeholder value) \d+$/.exec(k);if(u!=null&&u[1]!=null)A=u[1];switch(A){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;
1331
1331
  case "field name sort response":break;case "return sort order":break;case "position at top":if(o==="true")d.Ut=true;break;case "place cursor":if(o==="true")d.Tt=true;break;case "record format name":d.Wa=o;if(P=="dspf"){q=d.b.d;if(q!=null){q.properties[k]=o;recordFormats.refresh()}}break;case "description":if(P=="dspf"){q=d.b.d;if(q!=null){q.properties[k]=o;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.H[k]=
1332
- o==""&&d.qf[k]!=null?d.qf[k]:o;if(d.designMode){d.wd();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.ic()}break;case "row selection":if(o=="single"||o=="multiple (simple)"||o=="multiple (extended)"){d.be=true;if(o=="single"){d.singleSelection=true;d.Pi=false}else{d.singleSelection=false;d.Pi=o=="multiple (extended)"?true:false}if(typeof pui["grid text selection"]=="undefined"||pui["grid text selection"]==
1333
- false){d.b.onselectstart=ua(false);if(typeof d.b.style.MozUserSelect!="undefined")d.b.style.MozUserSelect="none"}}else{d.be=false;d.singleSelection=false;d.Pi=false}break;case "selection value":if(o!=null&&o!="")d.Xh=o;break;case "number of rows":q=d.j.length-1;if(q<0)q=0;A=o==="#rowsPerPageRDF"?14:parseInt(o);if(isNaN(A))A=q;if(A<1)A=1;if(d.g&&A<2)A=2;if(A>99&&d.designMode)A=99;if(A>q){for(;A>d.j.length-1;)d.jf();d.Kh()}if(A<q)for(;A<d.j.length-1;)d.Kj();if(d.b.d!=null)d.b.d.properties[k]=o;d.hc();
1332
+ o==""&&d.rf[k]!=null?d.rf[k]:o;if(d.designMode){d.wd();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.ic()}break;case "row selection":if(o=="single"||o=="multiple (simple)"||o=="multiple (extended)"){d.be=true;if(o=="single"){d.singleSelection=true;d.Pi=false}else{d.singleSelection=false;d.Pi=o=="multiple (extended)"?true:false}if(typeof pui["grid text selection"]=="undefined"||pui["grid text selection"]==
1333
+ false){d.b.onselectstart=ua(false);if(typeof d.b.style.MozUserSelect!="undefined")d.b.style.MozUserSelect="none"}}else{d.be=false;d.singleSelection=false;d.Pi=false}break;case "selection value":if(o!=null&&o!="")d.Xh=o;break;case "number of rows":q=d.j.length-1;if(q<0)q=0;A=o==="#rowsPerPageRDF"?14:parseInt(o);if(isNaN(A))A=q;if(A<1)A=1;if(d.g&&A<2)A=2;if(A>99&&d.designMode)A=99;if(A>q){for(;A>d.j.length-1;)d.kf();d.Kh()}if(A<q)for(;A<d.j.length-1;)d.Kj();if(d.b.d!=null)d.b.d.properties[k]=o;d.hc();
1334
1334
  break;case "number of columns":A=d.m.length-1;if(A<0)A=0;q=parseInt(o);q>d.Jh&&pui.alert("WARNING: Number of maximum columns reached when loading Grid.");if(isNaN(q))q=A;if(q<1)q=1;if(q>d.Jh&&d.designMode)q=d.Jh;if(q>A)for(;q>d.m.length-1;)d.Bn();if(q<A)for(;q<d.m.length-1;){A=d.m.length-2;if(d.designMode&&d.Xo(A))break;d.Vp()}d.designMode&&d.Ma();if(d.b.d!=null)d.b.d.properties[k]=o;d.hc();break;case "row height":if(isNaN(parseInt(o))||parseInt(o)<=0){d.hc(true);break}d.ka=parseInt(o);k=d.g?1:0;
1335
1335
  if(d.j.length<=k)return;q=parseInt(d.j[k].style.top);for(k=k+1;k<d.j.length;k++){q+=d.ka;d.j[k].style.top=q+"px"}ma();if(d.designMode)d.qd?d.$b():d.Ma();aa();d.setScrollBar();d.hc();break;case "header height":if(isNaN(parseInt(o))||parseInt(o)<=0){d.hc(true);break}d.cb=parseInt(o);if(d.Sc){d.ti=d.cb;if(d.columnHeadings!="")d.cb+=20}ee(d);break;case "has header":if(d.Sc&&(o==false||o=="false"))d.kn=false;else if(d.g&&(o==false||o=="false")){d.Bw();d.g=false;if(P=="dspf"||pui.ea){k=d.m.length-1;for(q=
1336
- 0;q<k;q++)pa(d.cells[1][q],d.cells[0][q]);d.Kh()}if(d.j.length>1){d.j[0].style.top=parseInt(d.j[1].style.top)-d.ka+"px";W();ma();d.designMode&&d.Ma();aa();d.setScrollBar()}d.designMode&&d.wd()}if(!d.g&&(o==true||o=="true"||o=="")){d.cells.length<=1&&d.jf();d.g=true;if(P=="dspf"||pui.ea){k=d.m.length-1;for(q=0;q<k;q++)pa(d.cells[0][q],d.cells[1][q]);d.Kh()}if(d.j.length>1){d.j[0].style.top=parseInt(d.j[1].style.top)-d.cb+"px";W();ma();d.designMode&&d.Ma();aa();d.setScrollBar()}d.wd();d.ic()}break;
1337
- case "show quick filters":d.Sc=o==true||o==="true";if(d.Sc){if(!d.g){d.kn=d.g;d.setProperty("has header","true")}if(d.ti==null)d.ti=d.cb;ee(d)}else{if(d.ti!=null){d.cb=d.ti;delete d.ti;ee(d)}if(d.kn===false){delete d.kn;d.setProperty("has header","false")}}d.ic();break;case "column widths":d.Zf(o);break;case "column headings":if(!pui.o(o)&&!pui.Mb(o))d.columnHeadings=pui.ga(o);d.ic();if(!d.designMode&&!d.ma&&d.fa instanceof Array)for(k=0;k<d.fa.length&&k<d.columnHeadings.length;k++)d.fa[k].name=d.columnHeadings[k];
1338
- if(d.ma){d.fa=[];d.setProperty("hide columns option",true)}break;case "sortable columns":d.sortable=o=="true";P=="genie"&&d.Bl();if(d.Dg)d.sortable=false;break;case "default sort order":if(!d.designMode)d.Ni=o==null?[]:o.split(",");break;case "initial sort column":if(!d.designMode){d.Jf=parseInt(o);if(isNaN(d.Jf))d.Jf=null;if(typeof o==="string"){d.cj=o.split(",");if(d.cj.length<=1)d.cj=null}}break;case "initial sort field":if(!d.designMode){d.dj=o.trim();if(typeof o==="string"){d.Hg=o.split(",");
1339
- if(d.Hg.length<=1)d.Hg=null}}break;case "resizable columns":if(!d.designMode&&(o==true||o=="true")){this.Sy=hd=true;for(k=0;k<d.m.length;k++)Da(d.m,k,true,true)}break;case "movable columns":if(!d.designMode&&d.g&&(o==true||o=="true")){this.Gl=gc=true;k=d.cells[0];if(k==null){d.jf();k=d.cells[0];if(k==null){d.jf();k=d.cells[0]}}for(q=0;q<k.length;q++)ha(k[q],true)}break;case "persist state":if(o=="true"||o==true)Va=d.designMode==false&&pui.Ig();else if(o==="session only"){Va=d.designMode==false&&pui.jp();
1336
+ 0;q<k;q++)pa(d.cells[1][q],d.cells[0][q]);d.Kh()}if(d.j.length>1){d.j[0].style.top=parseInt(d.j[1].style.top)-d.ka+"px";W();ma();d.designMode&&d.Ma();aa();d.setScrollBar()}d.designMode&&d.wd()}if(!d.g&&(o==true||o=="true"||o=="")){d.cells.length<=1&&d.kf();d.g=true;if(P=="dspf"||pui.ea){k=d.m.length-1;for(q=0;q<k;q++)pa(d.cells[0][q],d.cells[1][q]);d.Kh()}if(d.j.length>1){d.j[0].style.top=parseInt(d.j[1].style.top)-d.cb+"px";W();ma();d.designMode&&d.Ma();aa();d.setScrollBar()}d.wd();d.ic()}break;
1337
+ case "show quick filters":d.Sc=o==true||o==="true";if(d.Sc){if(!d.g){d.kn=d.g;d.setProperty("has header","true")}if(d.ti==null)d.ti=d.cb;ee(d)}else{if(d.ti!=null){d.cb=d.ti;delete d.ti;ee(d)}if(d.kn===false){delete d.kn;d.setProperty("has header","false")}}d.ic();break;case "column widths":d.$f(o);break;case "column headings":if(!pui.o(o)&&!pui.Mb(o))d.columnHeadings=pui.ga(o);d.ic();if(!d.designMode&&!d.ma&&d.fa instanceof Array)for(k=0;k<d.fa.length&&k<d.columnHeadings.length;k++)d.fa[k].name=d.columnHeadings[k];
1338
+ if(d.ma){d.fa=[];d.setProperty("hide columns option",true)}break;case "sortable columns":d.sortable=o=="true";P=="genie"&&d.Bl();if(d.Eg)d.sortable=false;break;case "default sort order":if(!d.designMode)d.Ni=o==null?[]:o.split(",");break;case "initial sort column":if(!d.designMode){d.Kf=parseInt(o);if(isNaN(d.Kf))d.Kf=null;if(typeof o==="string"){d.cj=o.split(",");if(d.cj.length<=1)d.cj=null}}break;case "initial sort field":if(!d.designMode){d.dj=o.trim();if(typeof o==="string"){d.Ig=o.split(",");
1339
+ if(d.Ig.length<=1)d.Ig=null}}break;case "resizable columns":if(!d.designMode&&(o==true||o=="true")){this.Sy=hd=true;for(k=0;k<d.m.length;k++)Da(d.m,k,true,true)}break;case "movable columns":if(!d.designMode&&d.g&&(o==true||o=="true")){this.Gl=gc=true;k=d.cells[0];if(k==null){d.kf();k=d.cells[0];if(k==null){d.kf();k=d.cells[0]}}for(q=0;q<k.length;q++)ha(k[q],true)}break;case "persist state":if(o=="true"||o==true)Va=d.designMode==false&&pui.Jg();else if(o==="session only"){Va=d.designMode==false&&pui.jp();
1340
1340
  mb=d.designMode==false&&pui.jp()}else if(o==="program only"){Va=d.designMode==false;Ra=true}break;case "expand to layout":k=o==true||o=="true";if(k!=d.qd){d.qd=k;if(d.qd)if(d.designMode){d.$b();d.b.d.properties["expand to layout"]="true";d.b.d.pb["expand to layout"]=true;d.b.d.designer.ob.Uh("expand to layout")}}break;case "find option":d.Jo=o==true||o=="true";break;case "filter option":d.Si=o==true||o=="true";break;case "filter by value option":d.$w=o==true||o=="true";break;case "hide columns option":d.ma=
1341
- o==true||o=="true";A=d.m.length-1;u=d.Df().split(",").map(function(F){return Number(F)});for(k=0;k<A;k++){q=d.columnHeadings[k];var I=false;if(!q||typeof q==="string"&&!q.trim()){q="Column "+(k+1);I=true}q={name:q,columnId:k,currentColumn:k,width:u[k],orginalWidth:u[k],showing:true,blankHeader:I};d.fa.push(q)}break;case "reset option":d.ju=o==true||o=="true";break;case "export option":d.Ho=o==true||o=="true"?true:o==false||o=="false"?false:null;break;case "export only visible columns":d.zf=o==true||
1341
+ o==true||o=="true";A=d.m.length-1;u=d.Ef().split(",").map(function(F){return Number(F)});for(k=0;k<A;k++){q=d.columnHeadings[k];var I=false;if(!q||typeof q==="string"&&!q.trim()){q="Column "+(k+1);I=true}q={name:q,columnId:k,currentColumn:k,width:u[k],orginalWidth:u[k],showing:true,blankHeader:I};d.fa.push(q)}break;case "reset option":d.ju=o==true||o=="true";break;case "export option":d.Ho=o==true||o=="true"?true:o==false||o=="false"?false:null;break;case "export only visible columns":d.Af=o==true||
1342
1342
  o=="true"?true:false;break;case "context menu id":if(!d.designMode){Zb(document,"click",d.aj);k=Kb(o);if(k!="")d.Kd=k;if(pui.is_touch){d.b.onselectstart=ua(false);if(typeof d.b.style.MozUserSelect!="undefined")d.b.style.MozUserSelect="none";if(typeof d.b.style.webkitUserSelect!="undefined")d.b.style.webkitUserSelect="none"}T(document,"click",d.aj)}break;case "show paging controls":d.i.Ad=o==true||o=="true";if(d.designMode){d.i.z();aa()}break;case "show page number":d.i.$h=o==true||o=="true";if(d.designMode){d.i.z();
1343
1343
  aa()}break;case "initial page number":k=Number(o);if(isNaN(k))k=1;d.i.Tl=k;d.cp=k;if(d.designMode){d.i.z();aa()}break;case "show record number range":d.i.bi=o==true||o=="true";if(d.designMode){d.i.z();aa()}break;case "show bar":d.i.zm=o==true||o=="true";if(d.designMode){d.i.z();aa()}break;case "page down condition":d.i.Nt=o;break;case "subfile end":d.Pu=o==true||o=="true";break;case "page up condition":d.i.Ot=o;break;case "page up response":if(o!=null&&o!=""){d.i.Aj=true;d.i.Ip=true}break;case "page down response":if(o!=
1344
- null&&o!=""){d.i.zj=true;d.i.Gp=true}break;case "filter response":d.designMode||pb(o);break;case "filter response text max":k=parseInt(o,10);d.Af=isNaN(k)?20:k;if(d.Af<1)d.Af=1;d.designMode||pb();break;case "filter response column max":k=parseInt(o,10);d.ye=isNaN(k)?3:k;if(d.ye<1)d.ye=1;d.designMode||pb();break;case "csv export":d.i.ug=o==true||o=="true";if(d.designMode){d.i.z();aa()}break;case "xlsx export":d.i.ii=o==true||o=="true";if(d.designMode){d.i.z();aa()}break;case "xlsx export pics":d.i.fv=
1345
- o==true||o=="true";break;case "export file name":d.ys=o;break;case "export with headings":d.$k=o==true||o=="true";break;case "fold multiple":d.oc=parseInt(o);if(isNaN(d.oc)||d.oc<1)d.oc=1;break;case "tree level column":d.Ye=parseInt(o);d.Dg=true;d.sortable=false;break;case "expanded":if(!d.designMode){if(o=="true")d.pl=true;if(o=="false")d.pl=false}break;case "collapsed":if(!d.designMode){if(o=="true")d.ol=true;if(o=="false")d.ol=false}break;case "tree level collapsed":if(!d.designMode){if(o=="true")d.Xu=
1346
- true;if(o=="false")d.Xu=false}break;case "single row zoom":if(o=="true")d.Lu=true;break;case "scrollbar":if(P=="genie"&&!pui.ea){d.Tf=o==true||o=="true"||o==""?true:false;d.Ma()}else{d.Dc=true;d.Tf=false;if(o=="none"){d.Dc=false;d.Tf=false}if(o=="paging"){d.Dc=false;d.Tf=true}d.designMode&&d.Ma()}d.setScrollBar();break;case "scroll tool tip":d.iq=o;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]=
1344
+ null&&o!=""){d.i.zj=true;d.i.Gp=true}break;case "filter response":d.designMode||pb(o);break;case "filter response text max":k=parseInt(o,10);d.Bf=isNaN(k)?20:k;if(d.Bf<1)d.Bf=1;d.designMode||pb();break;case "filter response column max":k=parseInt(o,10);d.ye=isNaN(k)?3:k;if(d.ye<1)d.ye=1;d.designMode||pb();break;case "csv export":d.i.vg=o==true||o=="true";if(d.designMode){d.i.z();aa()}break;case "xlsx export":d.i.ii=o==true||o=="true";if(d.designMode){d.i.z();aa()}break;case "xlsx export pics":d.i.fv=
1345
+ o==true||o=="true";break;case "export file name":d.ys=o;break;case "export with headings":d.$k=o==true||o=="true";break;case "fold multiple":d.oc=parseInt(o);if(isNaN(d.oc)||d.oc<1)d.oc=1;break;case "tree level column":d.Ye=parseInt(o);d.Eg=true;d.sortable=false;break;case "expanded":if(!d.designMode){if(o=="true")d.pl=true;if(o=="false")d.pl=false}break;case "collapsed":if(!d.designMode){if(o=="true")d.ol=true;if(o=="false")d.ol=false}break;case "tree level collapsed":if(!d.designMode){if(o=="true")d.Xu=
1346
+ true;if(o=="false")d.Xu=false}break;case "single row zoom":if(o=="true")d.Lu=true;break;case "scrollbar":if(P=="genie"&&!pui.ea){d.Uf=o==true||o=="true"||o==""?true:false;d.Ma()}else{d.Dc=true;d.Uf=false;if(o=="none"){d.Dc=false;d.Uf=false}if(o=="paging"){d.Dc=false;d.Uf=true}d.designMode&&d.Ma()}d.setScrollBar();break;case "scroll tool tip":d.iq=o;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]=
1347
1347
  typeof o=="string"?o.trim():o;break;case "hover effect":d.bp=o==true||o=="true";break;case "top":k=o;if(pui.o(k))k=k.designValue;v=parseInt(d.b.style.top)-pui.ae(k);d.Lc(function(F){F.style.top=parseInt(F.style.top)-v+"px"});d.setScrollBar();break;case "left":q=o;if(pui.o(q))q=q.designValue;v=parseInt(d.b.style.left)-pui.ae(q);d.Lc(function(F){F.style.left=parseInt(F.style.left)-v+"px"});d.setScrollBar();break;case "width":if(!d.designMode||!Hb.Ih){k=d.m.length;k-=1;if(k>0){q=pui.ae(o);q=d.pc("left")+
1348
1348
  q;if(parseInt(d.m[k-1].style.left)+5>q)q=parseInt(d.m[k-1].style.left)+5;if(P==="genie")if((A=parseInt(d.m[k].style.left))&&q-A===1)q=A;d.m[k].style.left=q+"px";la();d.designMode&&d.Ma();aa();d.setScrollBar();d.hc()}}break;case "height":if(o==="#subfileHeight"){if(d.b.d!=null)d.b.d.properties[k]=o;o="436px"}k=d.j.length-1;if(k!=0||!d.g){v=pui.ae(o)-parseInt(d.b.style.height);q=parseInt(v/(k-(d.g?1:0)))+parseInt(d.j[k].style.top);d.j[k].style.top=q+"px";d.ka=q-parseInt(d.j[k-1].style.top);if(d.ka<
1349
1349
  5)d.ka=5;A=0;if(d.g)A=1;for(k=k-1;k>=A;k-=1){q-=d.ka;d.j[k].style.top=q+"px"}if(d.g)d.j[0].style.top=parseInt(d.j[1].style.top)-d.cb+"px"}W();ma();d.designMode&&d.Ma();aa();d.setScrollBar();d.hc();break;case "z index":o=parseInt(o);if(isNaN(o))o="";d.b.style.zIndex=o;d.i!=null&&d.i.position();break;case "border color":d.cz(o);break;case "border width":d.dz(o);break;case "padding bottom":case "padding left":case "padding right":case "padding top":d.yj[k]=o;d.ic();break;case "visibility":d.visibility=
1350
- o;if(!d.designMode){d.Lc(function(F){F.style.visibility=o});if(d.c!=null)o=="hidden"?d.c.hide():d.c.z()}if(d.designMode)if(o=="hidden"){d.b.style.filter="alpha(opacity=30)";d.b.style.opacity=0.3}else{d.b.style.filter="";d.b.style.opacity=""}break;case "locked in place":d.Nf=o==true||o=="true"?true:false;break;case "css class":if(d.designMode){d.bd=o;d.Dc&&d.c.qm(o)}d.i!=null&&d.i.qm(o);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;
1350
+ o;if(!d.designMode){d.Lc(function(F){F.style.visibility=o});if(d.c!=null)o=="hidden"?d.c.hide():d.c.z()}if(d.designMode)if(o=="hidden"){d.b.style.filter="alpha(opacity=30)";d.b.style.opacity=0.3}else{d.b.style.filter="";d.b.style.opacity=""}break;case "locked in place":d.Of=o==true||o=="true"?true:false;break;case "css class":if(d.designMode){d.bd=o;d.Dc&&d.c.qm(o)}d.i!=null&&d.i.qm(o);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;
1351
1351
  case "tool tip":d.b.title=o;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.Go[k]=typeof q=="undefined"?o:q;break;case "ondbload":gd=o;break;case "propagate scroll events":d.Zl=o===true||o==="true"?true:false;break;case "sort function":if(o)nc=o;break;case "grid row translation placeholders":break;case "grid row translation placeholder key":break;
1352
1352
  case "grid row translation placeholder value":break;case "row clicked":break;case "column clicked":break;case "subfile program message queue":d.ot=true;break;default:if(typeof k==="string"&&k.substr(0,17)==="user defined data")break;pui.alert("Grid property not handled: "+k)}}};this.Lc=function(k){for(var o,q=0;q<d.m.length;q++){o=d.m[q];k(o)}for(q=0;q<d.j.length;q++){o=d.j[q];k(o)}k(d.b);Wa!=null&&k(Wa);Y!=null&&k(Y);fa!=null&&k(fa);sa!=null&&k(sa);Ca!=null&&k(Ca);Xa!=null&&k(Xa);ca!=null&&k(ca);
1353
- qa!=null&&k(qa)};this.rm=function(k){k=$d(d,k);if(k>=0){var o=d.isFiltered()?d.W:d.dataArray;if(!d.b.su)d.b.tf=o[k]==null||o[k].length==0?0:o[k].n!=null?o[k].n:k+1}};this.setCursorRecordNumber=function(k){if(typeof k=="number"&&k>0&&k<9999)d.b.tf=k};this.St=function(k){var o=d.Ej;d.Ej=null;if(o!=null){o=o-d.h;if(!(o<0)){d.g&&o++;if(!(o>d.cells.length-1)){var q=d.cells[o];k==true?setTimeout(function(){Ba(q)},1):Ba(q)}}}};this.oz=function(){var k,o;for(k=0;k<d.dataArray.length;k++){o=o=d.dataArray[k];
1353
+ qa!=null&&k(qa)};this.rm=function(k){k=$d(d,k);if(k>=0){var o=d.isFiltered()?d.W:d.dataArray;if(!d.b.su)d.b.uf=o[k]==null||o[k].length==0?0:o[k].n!=null?o[k].n:k+1}};this.setCursorRecordNumber=function(k){if(typeof k=="number"&&k>0&&k<9999)d.b.uf=k};this.St=function(k){var o=d.Ej;d.Ej=null;if(o!=null){o=o-d.h;if(!(o<0)){d.g&&o++;if(!(o>d.cells.length-1)){var q=d.cells[o];k==true?setTimeout(function(){Ba(q)},1):Ba(q)}}}};this.oz=function(){var k,o;for(k=0;k<d.dataArray.length;k++){o=o=d.dataArray[k];
1354
1354
  var q=void 0,v=false;if(o.rc==null)if(d.Ee!=null){if(d.il==null)for(q=0;q<d.Y.length;q++)if(pui.K(d.Ee.fieldName)==d.Y[q]){d.il=q;break}if(d.il!=null)if(o[d.il]=="1"&&!o.rc)v=o.rc=true}if(v){d.Ob=0;d.W=[];for(q=0;q<d.dataArray.length;q++){o=d.dataArray[q];if(o.n==null)o.n=q+1;d.Wj(o);!o.ze&&!o.rc&&d.W.push(o);o.rc&&d.Ob++}}}d.W=[];for(k=d.Ob=0;k<d.dataArray.length;k++){o=d.dataArray[k];if(o.n==null)o.n=k+1;d.Wj(o);!o.ze&&!o.rc&&d.W.push(o);o.rc&&d.Ob++}};this.isRowSelected=function(k){k=b(k,true);
1355
1355
  return N(k)};this.getSelectedRows=function(){var k=[],o=d.dataArray;if(d.isFiltered())o=d.W;for(var q=0;q<o.length;q++)if(N(o[q])){var v=q+1;if(d.Tc===true||d.isFiltered())v=o[q].n;k.push(v)}return k};this.fd=function(k,o,q){function v(X,O,S){if(O==null)O="";else{var R=O.split(",");if(R.length>1)O=S<R.length?R[S]:R[0]}X.style.color=O;if(P=="genie"&&!pui.ea)for(S=0;S<X.childNodes.length;S++)X.childNodes[S].style.color=O}function A(X,O,S){if(O==null)O="";else{var R=O.split(",");if(R.length>1)O=S<R.length?
1356
1356
  R[S]:R[0]}return X.style.backgroundColor=O}var u,I=k%2==1;if(d.g)I=!I;if(d.cells!=null){var F=d.cells[k];if(F!=null){var H,L=-1;if(d.h!=null&&!isNaN(d.h)&&d.h>0){if(typeof q=="number"&&q>=0)L=q+1;else if(d.Ob<1)L=k+d.h-1+(d.g?0:1);H=d.isFiltered()?d.W:d.dataArray;if(H[L-1]==null||typeof H[L-1].length!="number"||H[L-1].length<=0)L=-1}k=false;if(d.be&&L>0)k=N(H[L-1]);q=null;if(d.Lj!=null&&L>0){if(d.Mj==null)for(u=0;u<d.Y.length;u++)if(pui.K(d.Lj.fieldName)==d.Y[u]){d.Mj=u;break}if(d.Mj!=null){u={};
1357
1357
  u[d.Y[d.Mj]]=H[L-1][d.Mj];q=pui.Q(d.Lj,u,d.ref)}}if(!pui.o(d.H["row background"])&&d.H["row background"]!=null&&d.H["row background"]!="")q=d.H["row background"];var Q=null;if(d.Nj!=null&&L>0){if(d.Oj==null)for(u=0;u<d.Y.length;u++)if(pui.K(d.Nj.fieldName)==d.Y[u]){d.Oj=u;break}if(d.Oj!=null){u={};u[d.Y[d.Oj]]=H[L-1][d.Oj];Q=pui.Q(d.Nj,u,d.ref)}}if(!pui.o(d.H["row font color"])&&d.H["row font color"]!=null&&d.H["row font color"]!="")Q=d.H["row font color"];for(u=0;u<F.length;u++){pui.ca(F[u],"selected");
1358
1358
  pui.ca(F[u],"hover");if(k){v(F[u],d.H["selection font color"],u);A(F[u],d.H["selection background"]||"",u);if((H=d.H["selection image"])&&H.trim())F[u].style.backgroundImage="url('"+pui.normalizeURL(H.trim(),true)+"')";pui.P(F[u],"selected");d.wl=L}else if(o==true){v(F[u],d.H["hover font color"],u);A(F[u],d.H["hover background"]||"",u);if((H=d.H["hover image"])&&H.trim()){F[u].style.backgroundImage="url('"+pui.normalizeURL(H.trim(),true)+"')";F[u].style.backgroundRepeat="repeat-x"}pui.P(F[u],"hover")}else{Q=
1359
1359
  Q||d.H["row font color"];if(!Q||!Q.trim())Q=d.H[(I?"even":"odd")+" row font color"];v(F[u],Q||"",u);q=q||d.H["row background"];if(!q||!q.trim())q=d.H[(I?"even":"odd")+" row background"];A(F[u],q||"",u);F[u].style.backgroundImage=""}}if(o!=true&&d.Gb!=null)d.Gb.style.display="none";if(o==true&&d.Gb!=null)d.Gb.style.display=""}}};this.Yx=function(){var k=d.b.d,o=k.designer;o.aa.Dn("Move "+o.selection.rx(),o);var q=o.us,v,A;if(o.Ne.style.display==""){v=parseInt(o.Ne.style.top);A=parseInt(o.Ne.style.left)}else{v=
1360
- parseInt(k.dom.style.top);A=parseInt(k.dom.style.left)}var u=pui.layout.Ef(q);A-=u.x;v-=u.y;if(o.selection.Nu){A=o.selection.ck(A,pui.Il);v=o.selection.ck(v,pui.Jl)}var I=v-parseInt(k.dom.style.top),F=A-parseInt(k.dom.style.left);d.Lc(function(H){H.parentNode.removeChild(H);q.appendChild(H);H.style.top=parseInt(H.style.top)+I+"px";H.style.left=parseInt(H.style.left)+F+"px"});d.c!=null&&d.c.oh(q);d.i!=null&&d.i.oh(q);d.container=q;d.b.sizeMe!=null&&typeof d.b.sizeMe=="function"&&d.b.sizeMe();d.setScrollBar();
1360
+ parseInt(k.dom.style.top);A=parseInt(k.dom.style.left)}var u=pui.layout.Ff(q);A-=u.x;v-=u.y;if(o.selection.Nu){A=o.selection.ck(A,pui.Il);v=o.selection.ck(v,pui.Jl)}var I=v-parseInt(k.dom.style.top),F=A-parseInt(k.dom.style.left);d.Lc(function(H){H.parentNode.removeChild(H);q.appendChild(H);H.style.top=parseInt(H.style.top)+I+"px";H.style.left=parseInt(H.style.left)+F+"px"});d.c!=null&&d.c.oh(q);d.i!=null&&d.i.oh(q);d.container=q;d.b.sizeMe!=null&&typeof d.b.sizeMe=="function"&&d.b.sizeMe();d.setScrollBar();
1361
1361
  k.properties.top=v+"px";k.properties.left=A+"px";o.cA.style.display="none";o.Ne.style.display="none";o.us=null;o.selection.clear();o.selection.add(k);o.Cn();pui.ide.eu()};this.Zx=function(){var k=d.b.d,o=k.designer;o.aa.Dn("Move "+o.selection.rx(),o);var q=parseInt(o.Ne.style.top)-parseInt(k.dom.style.top),v=parseInt(o.Ne.style.left)-parseInt(k.dom.style.left);d.Lc(function(A){A.parentNode.removeChild(A);o.container.appendChild(A);A.style.top=parseInt(A.style.top)+q+"px";A.style.left=parseInt(A.style.left)+
1362
1362
  v+"px"});d.c!=null&&d.c.oh(o.container);d.i!=null&&d.i.oh(o.container);d.container=o.container;d.setScrollBar();k.properties.top=o.Ne.style.top;k.properties.left=o.Ne.style.left;o.Ne.style.display="none";o.selection.clear();o.selection.add(k);o.Cn();pui.ide.eu()};this.selectRow=function(k,o){if(!(!d.be||k<1||k>d.dataArray.length)){for(var q=!d.isFiltered()&&(typeof d.Tc=="undefined"||d.Tc!==true),v=0;v<d.dataArray.length;v++)if(q&&v==k-1||!q&&d.dataArray[v].n==k){if(d.dataArray[v].selected!=true){ka(d.dataArray[v],
1363
1363
  true,v);if(d.h!=null&&!isNaN(d.h)&&d.h>0)d.Wh=k+d.h-1+(d.g?0:1)}}else if((d.singleSelection||!o)&&d.dataArray[v].selected==true)ka(d.dataArray[v],false,v);ce(d)}};this.deselectRow=function(k){function o(A){ka(d.dataArray[A],false,A);if(q)ce(d);else if(d.h!=null&&!isNaN(d.h)&&d.h>0){var u=d.g?1:0;A=A-d.h+1+u;A<d.j.length-1&&A>=u&&d.fd(A)}}if(!(!d.be||k<1||k>d.dataArray.length)){var q=d.isFiltered();if(!q&&(typeof d.Tc=="undefined"||d.Tc!==true))d.dataArray[k-1].selected==true&&o(k-1);else for(var v=
1364
- 0;v<d.dataArray.length;v++)if(d.dataArray[v].n==k&&d.dataArray[v].selected==true){o(v);break}}};this.wd=function(){for(var k=0;k<d.cells.length;k++){for(var o=k==0&&d.g,q=0;q<d.cells[k].length;q++){var v=d.cells[k][q],A=k%2==1;if(d.g)A=!A;fb(v,o,A,q)}!d.designMode&&!o&&d.fd(k)}};this.Ma=function(){for(var k=0;k<d.cells.length;k++)for(var o=0;o<d.cells[k].length;o++)xa(k,o);if(Hc==null)Hc=d.Df()};this.da=function(){return d.dataProps["custom sql"]!=null&&d.dataProps["custom sql"]!=""||d.dataProps["data url"]!=
1364
+ 0;v<d.dataArray.length;v++)if(d.dataArray[v].n==k&&d.dataArray[v].selected==true){o(v);break}}};this.wd=function(){for(var k=0;k<d.cells.length;k++){for(var o=k==0&&d.g,q=0;q<d.cells[k].length;q++){var v=d.cells[k][q],A=k%2==1;if(d.g)A=!A;fb(v,o,A,q)}!d.designMode&&!o&&d.fd(k)}};this.Ma=function(){for(var k=0;k<d.cells.length;k++)for(var o=0;o<d.cells[k].length;o++)xa(k,o);if(Hc==null)Hc=d.Ef()};this.da=function(){return d.dataProps["custom sql"]!=null&&d.dataProps["custom sql"]!=""||d.dataProps["data url"]!=
1365
1365
  null&&d.dataProps["data url"]!=""||d.dataProps["database file"]!=null&&d.dataProps["database file"]!=""?true:false};this.cz=function(k){if(!k)k=d.borderColor;for(var o=0;o<d.m.length;o++)d.m[o].style.borderRightColor=k;for(o=0;o<d.j.length;o++)d.j[o].style.borderTopColor=k;d.borderColor=k};this.dz=function(k){if(k==null)k=d.borderWidth;k=parseInt(k);if(isNaN(k)||k<Aa&&d.designMode)k=Aa;for(var o=0;o<d.m.length;o++)d.m[o].style.borderRightWidth=k+"px";for(o=0;o<d.j.length;o++)d.j[o].style.borderTopWidth=
1366
1366
  k+"px";d.borderWidth=k;la();d.setScrollBar()};this.hide=function(){d.Lc(function(k){k.style.visibility="hidden"});d.c!=null&&d.c.hide();d.i!=null&&d.i.hide()};this.ap=function(){d.Xe=true;if(d.g){for(var k=1;k<d.cells.length;k++)for(var o=0;o<d.cells[k].length;o++)d.cells[k][o].style.display="none";for(k=2;k<d.j.length;k++)d.j[k].style.display="none";for(k=0;k<d.m.length;k++)d.m[k].style.display="none";d.c!=null&&d.c.hide();d.i!=null&&d.i.hide()}else d.hide()};this.show=function(){d.Lc(function(v){v.style.visibility=
1367
1367
  ""});var k=false,o=d.b.d;if(o!=null){var q=o.designer.selection;if(q.Yd.length==1&&q.Yd[0].d==o)k=true}!k&&d.b.ms&&d.b.ms();d.setScrollBar()};this.Bn=function(k){var o=d.m.length,q=document.createElement("div");q.className="grid-vline";if(d.bd!="")q.className+=" "+d.bd+"-vline";if(!d.designMode)q.Pe=d;q.style.position="absolute";var v=parseInt(d.b.style.left);if(o>0)v=parseInt(d.m[o-1].style.left)+d.qs;q.style.left=v+"px";q.style.top=d.b.style.top;v=0;if(d.j.length>0)v=parseInt(d.j[d.j.length-1].style.top)-
@@ -1372,12 +1372,12 @@ d.cells[o][k-1]=null;d.cells[o].splice(k-1,1)}la();aa();d.setScrollBar()}};this.
1372
1372
  O!="column headings"&&O!="column widths")){for(var V=d.cells[0].length;S.length>V;){S.pop();Z&&R.translations.pop()}for(;S.length<V;){S.push("");Z&&R.translations.push(0)}S.splice(o,0,S[k]);Z&&R.translations.splice(o,0,R.translations[k]);V=k;o<=k&&V++;S.splice(V,1);Z&&R.translations.splice(V,1);if(Z){S=JSON.stringify(S);if(Z=R.designValue!=S){R.designValue=S;S=R}}else{S=S.join(",");Z=R!=S}if(Z){Q.properties[O]=S;Q.pb[O]=true;Q.nd=true;L=Q.designer.od[Q.designer.Na.ub]=true}}}};u("font family");u("font size");
1373
1373
  u("font style");u("font weight");u("letter spacing");u("text align");u("text decoration");u("text transform");u("word spacing");u("header font family");u("header font size");u("header font style");u("header font weight");u("header text align");u("header font color");u("header background");u("column headings");F=d.b.d.properties["column headings"];if(pui.Mb(F)&&X)d.columnHeadings=JSON.parse(F.designValue);else{if(F==null||typeof F!="string")F="";d.columnHeadings=F.split(",")}u("odd row font color");
1374
1374
  u("odd row background");u("even row font color");u("even row background");u("row font color");u("row background");u("column widths");if(L){Q.designer.tp();Q.designer.ob.refresh();P=="dspf"&&pui.ide.refreshRibbon()}}d.Ma();if(!d.designMode){if(d.da()){u=d.dataProps["database fields"];if(u!=null&&u!=""){u=u.split(",");u.splice(o,0,u[k]);A=k;o<=k&&A++;u.splice(A,1);d.dataProps["database fields"]=u.join(",")}}if(d.w.length>0)for(u=0;u<d.w.length;u++){Q=d.w[u];F=I=Number(Q.column);F=d.ma&&q?Q.columnId==
1375
- q.columnId?o:I>=o&&I<k+1?F+1:v(o,k,I,F):v(o,k,I,F);if(I!=F)Q.column=String(F)}d.columnHeadings.splice(o,0,d.columnHeadings[k]);A=k;o<=k&&A++;d.columnHeadings.splice(A,1);d.alignColumnTotals()}};this.jf=function(){var k=d.j.length,o=document.createElement("div");o.className="grid-hline";if(d.bd!="")o.className+=" "+d.bd+"-hline";if(!d.designMode)o.Pe=d;o.style.position="absolute";o.style.left=d.b.style.left;var q=parseInt(d.b.style.top);if(k>0){q=d.ka;if(k==1&&d.g)q=d.cb;q=parseInt(d.j[k-1].style.top)+
1375
+ q.columnId?o:I>=o&&I<k+1?F+1:v(o,k,I,F):v(o,k,I,F);if(I!=F)Q.column=String(F)}d.columnHeadings.splice(o,0,d.columnHeadings[k]);A=k;o<=k&&A++;d.columnHeadings.splice(A,1);d.alignColumnTotals()}};this.kf=function(){var k=d.j.length,o=document.createElement("div");o.className="grid-hline";if(d.bd!="")o.className+=" "+d.bd+"-hline";if(!d.designMode)o.Pe=d;o.style.position="absolute";o.style.left=d.b.style.left;var q=parseInt(d.b.style.top);if(k>0){q=d.ka;if(k==1&&d.g)q=d.cb;q=parseInt(d.j[k-1].style.top)+
1376
1376
  q}o.style.top=q+"px";q=0;if(d.m.length>0){q=d.borderWidth;q=parseInt(d.m[d.m.length-1].style.left)-parseInt(d.b.style.left)+q}o.style.width=q+"px";q=d.borderWidth;if(q<Aa&&d.designMode)q=Aa;if(q!==null)o.style.borderTopWidth=q+"px";o.style.zIndex=d.vx;if(d.b.style.visibility=="hidden")o.style.visibility="hidden";o.oncontextmenu=ua(false);d.container.appendChild(o);d.j[k]=o;ma();Da(d.j,k,false);if(k>0)for(o=1;o<d.m.length;o++){q=o-1;var v=oa(k-1,q);v.v=q;ha(v)}aa();d.setScrollBar()};this.Kj=function(){var k=
1377
1377
  d.j.length;if(!(k<=0)){k-=1;d.j[k].parentNode.removeChild(d.j[k]);d.j[k]=null;d.j.splice(k,1);k=d.cells.length-1;if(k>=0){for(var o=d.cells[k].length-1;o>=0;o-=1){d.cells[k][o].parentNode.removeChild(d.cells[k][o]);d.cells[k][o]=null;d.cells[k].splice(o,1)}d.cells.splice(k,1)}ma();aa();d.setScrollBar()}};this.alignColumnTotals=function(){var k=0;if(d.g)k=1;k=d.cells[k];for(var o=0;o<k.length;o++)for(var q=k[o],v=q.children,A=0;A<v.length;A++){var u=v[A],I=u.id;I=I.split(".")[0]+"_total";I=Ab(I);if(I!=
1378
1378
  null)I.style.left=parseInt(d.b.style.left)+parseInt(q.style.left)+parseInt(u.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.Dc)d.c.xd(k);else{d.h=k;d.getData()}return d.getRRN(k)}};this.setNumberOfRows=function(k){d.setProperty("number of rows",String(k));d.Ma();d.wd();d.lu||d.getData()};this.render=function(){d.Ma();d.wd();d.ic();d.Xe&&d.ap()};this.refresh=function(){d.h=1;d.totalRecs=null;d.wa=false;
1379
1379
  if(d.Dc)d.c.Sa=d.totalRecs;pui.Pa=null;d.getData()};this.getRecordCount=function(){var k;k=d.da()?d.totalRecs:d.dataArray.length;if(k==null)k=0;return k};this.expandTreeLevel=function(k){if(k===0)d.De.expandAll();else{var o=d.Rb[k-1].node;fe(d.De,o)}d.bm(o)};this.collapseTreeLevel=function(k){if(k===0)d.De.collapseAll();else{var o=d.Rb[k-1].node;ge(d.De,o)}d.bm(o)};this.toggleTreeLevel=function(k){k=d.Rb[k-1].node;var o=d.De;if(k.Ld==="expanded"){ge(o,k);k.Ld="collapsed"}else{fe(o,k);k.Ld="expanded"}d.bm(k)};
1380
- this.bm=function(k){if(k===undefined||k===null){var o=0;k=d.Rb.length}else{o=parseInt(k.data)-1;k=he(d.De,k)}for(o=o;o<k;o++){var q=o+1,v=d.Rb[o].node;v.Qg?d.hl(q,false,false):d.hl(q,true,false);d.Rb[o].Yu=v.Ld==="collapsed"?true:false}d.getData()};this.qx=function(){if(d.Ye!==null)return d.Ye;for(var k=d.Ye=0;k<d.w.length;k++)if(d.w[k].value.fieldName.toUpperCase()===d.bg.toUpperCase()){d.Ye=d.w[k].columnId;break}return d.Ye};this.clear=function(k){d.dataArray=[];for(var o=0;o<d.w.length;o++)d.w[o].domEls=
1380
+ this.bm=function(k){if(k===undefined||k===null){var o=0;k=d.Rb.length}else{o=parseInt(k.data)-1;k=he(d.De,k)}for(o=o;o<k;o++){var q=o+1,v=d.Rb[o].node;v.Rg?d.hl(q,false,false):d.hl(q,true,false);d.Rb[o].Yu=v.Ld==="collapsed"?true:false}d.getData()};this.qx=function(){if(d.Ye!==null)return d.Ye;for(var k=d.Ye=0;k<d.w.length;k++)if(d.w[k].value.fieldName.toUpperCase()===d.cg.toUpperCase()){d.Ye=d.w[k].columnId;break}return d.Ye};this.clear=function(k){d.dataArray=[];for(var o=0;o<d.w.length;o++)d.w[o].domEls=
1381
1381
  [];k&&d.refresh()};this.push=function(k,o){var q=eb(k);d.dataArray.push(q);o&&d.refresh()};this.addRecords=function(k,o){for(var q=0;q<k.length;q++)d.push(k[q]);o&&d.refresh()};this.replaceRecords=function(k,o){d.clear();d.addRecords(k);o&&d.refresh()};this.splice=function(k,o){k-=1;for(var q=false,v=[k,o],A=[k,o],u=2;u<arguments.length;u++){var I=arguments[u];if(typeof I==="boolean"&&u+1===arguments.length)q=true;if(typeof I==="object"){I=eb(I);v.push(I);A.push(undefined)}}d.dataArray.splice.apply(d.dataArray,
1382
1382
  v);for(u=0;u<d.w.length;u++){v=d.w[u].domEls;v.splice.apply(v,A)}q&&d.refresh()};this.insertRow=function(k){for(var o=false,q=[k,0],v=1;v<arguments.length;v++){var A=arguments[v];if(typeof A==="boolean"&&v+1===arguments.length)o=true;typeof A==="object"&&q.push(A)}o&&q.push(true);d.splice.apply(d,q)};this.unshiftRow=function(){for(var k=false,o=[1,0],q=0;q<arguments.length;q++){var v=arguments[q];if(typeof v==="boolean"&&q+1===arguments.length)k=true;typeof v==="object"&&o.push(v)}d.splice.apply(d,
1383
1383
  o);k&&d.refresh()};this.removeRow=function(k,o){d.splice(k,1);o&&d.refresh()};this.hl=function(k,o,q){var v=d.Qs(d.dataArray,k);if(v!=null){v=d.dataArray[v-1];if(v!=null){v.rc=o;d.Ob=0;d.W=[];for(var A=0;A<d.dataArray.length;A++){v=d.dataArray[A];if(v.n==null)v.n=A+1;d.Wj(v);!v.ze&&!v.rc&&d.W.push(v);v.rc&&d.Ob++}if(!d.Tc)for(A=0;A<d.dataArray.length;A++)if(d.dataArray[A].n==null)d.dataArray[A].n=A+1;q&&d.getData();pui.modified=true;if(d.Ee!=null){if(v.Fe==null){v.Fe={type:"grid hidden field",n:k,
@@ -1386,10 +1386,10 @@ Array){var v=o.colWidths.map(ja());o.colWidths=[]}for(q=k=0;q<o.hidableColState.
1386
1386
  if(d.be&&d.Db){for(var o,q=0;q<d.Y.length;q++)if(pui.K(d.Db.fieldName)==d.Y[q]){o=q;break}if(o!=null&&o>=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][o]==d.Xh&&k++}return k};this.aj=function(){if(d.Kd){var k=Ab(d.Kd);if(k)if(!k.bk)if(!(P=="genie"&&d.designMode)){k.style.visibility="hidden";k.style.display="none"}}};this.No=function(k,o){if(k==null||isNaN(k))return null;for(var q=0;q<d.w.length;q++){var v=
1387
1387
  d.w[q],A=v.value;if(v["field type"]=="html container")A=v.html;if(A!=null&&typeof A=="object"&&A.fieldName!=null)if(Number(v.column)==k)return o<=10?A.fieldName.toUpperCase():A.longName!==undefined?A.longName.toUpperCase():A.fieldName.toUpperCase()}return null};this.getColumnIndexFromFieldName=function(k){k=pui.K(k);for(var o=0;o<d.w.length;o++){var q=d.w[o],v=q.value;if(q["field type"]=="html container")v=q.html;if(v!=null&&typeof v=="object"&&(v.fieldName!=null&&pui.K(v.fieldName)==k||v.longName!=
1388
1388
  null&&pui.K(v.longName)==k)){q=Number(q.column);if(q!=null&&!isNaN(q))return q}}return null};this.getColumnIdFromFieldName=function(k){k=pui.K(k);for(var o=0;o<d.w.length;o++){var q=d.w[o],v=q.value;if(q["field type"]=="html container")v=q.html;if(v!=null&&typeof v=="object"&&(v.fieldName!=null&&pui.K(v.fieldName)==k||v.longName!=null&&pui.K(v.longName)==k)){q=q.columnId;if(q!=null&&!isNaN(q))return q}}return null};this.$j=function(k,o){if(!(d.da()&&d.wa==false))if(k.Sj==null){k.Sj=[];if(k.pui==null)k.pui=
1389
- {};k.pui.formats=[];k.pui.vd=[];for(var q=0;q<d.w.length;q++){var v=d.w[q],A=Number(v.column),u=v.value;if(v["field type"]=="html container")u=v.html;if(pui.o(u)&&o||pui.o(u)&&!isNaN(A)&&A==k.col){v=pui.K(u.fieldName);for(A=0;A<d.Y.length;A++)if(v==d.Y[A]){k.Sj.push(A);k.pui.formats.push(u);k.pui.vd.push(q);break}}}}};this.startFind=function(k){if(typeof k=="number")k=d.cells[0][Ia(k)];if(k!=null){d.bl=k;d.$a.type="find";d.$a.Sf=d.find;var o=pui.getLanguageText("runtimeText","find text")+"...";d.$a.wc.placeholder=
1389
+ {};k.pui.formats=[];k.pui.vd=[];for(var q=0;q<d.w.length;q++){var v=d.w[q],A=Number(v.column),u=v.value;if(v["field type"]=="html container")u=v.html;if(pui.o(u)&&o||pui.o(u)&&!isNaN(A)&&A==k.col){v=pui.K(u.fieldName);for(A=0;A<d.Y.length;A++)if(v==d.Y[A]){k.Sj.push(A);k.pui.formats.push(u);k.pui.vd.push(q);break}}}}};this.startFind=function(k){if(typeof k=="number")k=d.cells[0][Ia(k)];if(k!=null){d.bl=k;d.$a.type="find";d.$a.Tf=d.find;var o=pui.getLanguageText("runtimeText","find text")+"...";d.$a.wc.placeholder=
1390
1390
  o;Yd(d.$a,k);if(d.da())d.$a.interval=250;d.$j(k);d.X.v=k.v;d.X.col=k.col;d.$a.show();d.$a.clear();d.$a.focus()}};this.clearHighlighting=function(){d.X.text="";d.getData()};this.find=function(k,o,q){if(!d.sc){var v=d.bl,A=k,u=o;if(typeof k=="number"){v=d.cells[0][Ia(k)];if(v==null)return;A=o;u=q;d.X.v=v.v;d.X.col=v.col;d.$j(v)}d.X.text="";if(A=="")d.getData();else if(d.da()&&d.wa==false){qc=d.X.text=A;pc=v.v+1;rc=1;if(u)rc=d.h+1;d.mask();d.Lb();d.getData();rc=pc=qc=null}else{q=0;if(u)q=d.h;u=A.toLowerCase();
1391
1391
  k=v.Sj;var I=false;o=d.dataArray;if(d.isFiltered())o=d.W;for(q=q;q<o.length;q++){for(var F=0;F<k.length;F++){var H=o[q][k[F]];if(v.pui&&v.pui.formats&&v.pui.formats[F]!=null&&typeof v.pui.formats[F]=="object"){v.pui.formats[F].value=H;H=pui.uc.format(v.pui.formats[F])}if(H.toLowerCase().indexOf(u)>=0){d.X.text=A;I=q+1;if(d.h!=I)if(d.c!=null&&d.c.type=="sliding")d.c.xd(I,false)===false&&d.getData();else if(d.i){F=d.getRecordCount()-d.Ro()+1;I>F?d.scrollToRow(F):d.scrollToRow(I)}else d.getData();else d.getData();
1392
- I=true;break}}if(I)break}I||d.getData()}}};this.startFilter=function(k){if(typeof k=="number")k=d.cells[0][Ia(k)];if(k!=null){d.bl=k;d.$a.type=d.jk()?"pgfilter":"filter";d.$a.Sf=d.Lw;var o=pui.getLanguageText("runtimeText","filter text")+"...";d.$a.wc.placeholder=o;d.Sc||Yd(d.$a,k);if(d.da())d.$a.interval=250;d.$j(k);d.X.v=k.v;d.X.col=k.col;if(!d.Sc){d.$a.show();d.$a.clear()}if(k.sa!=null&&k.sa!=""){d.$a.setText(k.yh?"":k.sa);d.X.text=k.sa;d.getData()}if(d.Sc)(k=k.querySelector("input.qf"))&&k.focus();
1392
+ I=true;break}}if(I)break}I||d.getData()}}};this.startFilter=function(k){if(typeof k=="number")k=d.cells[0][Ia(k)];if(k!=null){d.bl=k;d.$a.type=d.jk()?"pgfilter":"filter";d.$a.Tf=d.Lw;var o=pui.getLanguageText("runtimeText","filter text")+"...";d.$a.wc.placeholder=o;d.Sc||Yd(d.$a,k);if(d.da())d.$a.interval=250;d.$j(k);d.X.v=k.v;d.X.col=k.col;if(!d.Sc){d.$a.show();d.$a.clear()}if(k.sa!=null&&k.sa!=""){d.$a.setText(k.yh?"":k.sa);d.X.text=k.sa;d.getData()}if(d.Sc)(k=k.querySelector("input.qf"))&&k.focus();
1393
1393
  else d.$a.focus()}};this.Lw=function(k){var o=d.bl;k==""?d.removeFilter(o):d.setFilter(o,k)};this.setFilter=function(k,o){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].yh&&d.removeFilter(d.cells[0][0]);if(typeof k=="number")k=d.cells[0][Ia(k)];if(k!=null){if(d.jk())return xb(k,o);d.$j(k,q);d.X.v=k.v;d.X.col=q?"*all":k.col;d.X.text=o;if(q){for(var v=d.cells[0],A=0;A<v.length;A++){d.Jj(v[A]);v[A].sa=null}k.yh=true}else d.um(k);k.sa=o;if(d.Sc)if(A=k.querySelector("input.qf"))A.value=
1394
1394
  o;if(d.da()&&d.wa==false){d.totalRecs=null;d.h=1;d.mask();d.Lb()}else{v=k.Sj;var u=k.v;d.W=[];for(A=0;A<d.dataArray.length;A++){var I=d.dataArray[A];if(q)I.Md=[];if(I.n==null)I.n=A+1;for(var F=0;F<v.length;F++){var H=I[v[F]],L=false;if(k.pui!=null){if(k.pui.formats!=null&&k.pui.formats[F]!=null&&typeof k.pui.formats[F]=="object"){var Q=k.pui.formats[F];Q.value=H;H=pui.uc.format(Q)}if(k.pui.vd!=null&&k.pui.vd[F]!=null&&d.w[k.pui.vd[F]]!=null&&typeof d.w[k.pui.vd[F]]=="object"){Q=d.w[k.pui.vd[F]];var X=
1395
1395
  parseInt(Q.left,10),O=parseInt(Q.top,10);if(Q.visibility=="hidden"||!isNaN(X)&&!isNaN(O)&&X<0&&O<0)L=true}}if(I.Md==null)I.Md=[];I.Md[u]=true;if(!L&&d.Gz(H,o)){I.Md[u]=false;break}}d.Wj(I);!I.ze&&!I.rc&&d.W.push(I)}}d.getData();Va&&d.tu(q,o);U("onfilterchange")}}};this.tu=function(k,o){var q=[];if(k)q.push({text:o,column:"*all",curCol:"*all"});else for(var v=d.cells[0],A=0;A<v.length;A++){var u=v[A];u.sa!=null&&u.sa!=""&&q.push({text:u.sa,column:u.v,curCol:u.col})}q.length<1?d.clearState("filters"):
@@ -1403,18 +1403,18 @@ if(v!=null&&v.length==3)q="&fltrtype"+k+"=BET&fltrval"+k+"_0="+encodeURIComponen
1403
1403
  o.substr(0,2)=="<="?"&fltrtype"+k+"=%3C%3D&fltrval"+k+"="+encodeURIComponent(o.substr(2)):o.substr(0,2)=="!="||o.substr(0,2)=="<>"?"&fltrtype"+k+"=!%3D&fltrval"+k+"="+encodeURIComponent(o.substr(2)):o.substr(0,1)==">"?"&fltrtype"+k+"=%3E&fltrval"+k+"="+encodeURIComponent(o.substr(1)):o.substr(0,1)=="<"?"&fltrtype"+k+"=%3C&fltrval"+k+"="+encodeURIComponent(o.substr(1)):"&fltrtype"+k+"=CON&fltrval"+k+"="+encodeURIComponent(o);return q};this.Wj=function(k){k.ze=false;if(k.Md!=null)for(var o=0;o<k.Md.length;o++)if(k.Md[o]===
1404
1404
  true){k.ze=true;break}};this.removeFilter=function(k){if(!d.sc){if(typeof k=="number")k=d.cells[0][Ia(k)];if(k!=null){d.X.text="";d.Jj(k);k.sa=null;if(d.Sc){var o=k.querySelector("input.qf");if(o)o.value=""}if(d.jk())return xb(k,"");else if(d.da()&&d.wa==false){d.totalRecs=null;d.h=1;d.mask();d.Lb()}else{k.yh&&delete k.yh;k=k.v;d.W=[];for(o=0;o<d.dataArray.length;o++){var q=d.dataArray[o];if(q.n==null)q.n=o+1;if(q.Md!=null)q.Md[k]=false;d.Wj(q);!q.ze&&!q.rc&&d.W.push(q)}}d.getData();Va&&d.tu();U("onfilterchange")}}};
1405
1405
  this.removeAllFilters=function(){if(!d.sc){d.X.text="";for(var k=d.cells[0],o=0;o<k.length;o++){var q=k[o];d.Jj(q);q.sa=null;if(d.Sc)if(q=q.querySelector("input.qf"))q.value=""}if(d.jk())return qb("","");d.W=[];for(o=0;o<d.dataArray.length;o++){k=d.dataArray[o];k.Md=null;k.ze=false;if(k.n==null)k.n=o+1;k.rc||d.W.push(k)}if(d.da()&&d.wa==false){d.totalRecs=null;d.h=1;d.mask();d.Lb()}d.getData();d.clearState("filters");U("onfilterchange")}};this.Ls=function(){for(var k=0,o=d.cells[0],q=0;q<o.length;q++){var v=
1406
- o[q];v.sa!=null&&v.sa!=""&&k++}return k};this.isFiltered=function(k){if(d.yg!=null)return false;if(!k&&d.Ob>0)return true;k=d.cells[0];if(k==null)return false;for(var o=0;o<k.length;o++){var q=k[o];if(q.sa!=null&&q.sa!="")return true}return false};this.um=function(k){if(k.nc==null){k.nc=document.createElement("img");k.nc.style.paddingLeft="3px";k.nc.src=pui.normalizeURL("/profoundui/proddata/images/grids/filter.png");k.style.cursor="pointer";k.nc.onclick=function(q){if(!pui.He(q)){d.startFilter(k);
1406
+ o[q];v.sa!=null&&v.sa!=""&&k++}return k};this.isFiltered=function(k){if(d.zg!=null)return false;if(!k&&d.Ob>0)return true;k=d.cells[0];if(k==null)return false;for(var o=0;o<k.length;o++){var q=k[o];if(q.sa!=null&&q.sa!="")return true}return false};this.um=function(k){if(k.nc==null){k.nc=document.createElement("img");k.nc.style.paddingLeft="3px";k.nc.src=pui.normalizeURL("/profoundui/proddata/images/grids/filter.png");k.style.cursor="pointer";k.nc.onclick=function(q){if(!pui.He(q)){d.startFilter(k);
1407
1407
  ub(q)}};var o=k;if(o.firstChild!=null&&o.firstChild.tagName=="DIV")o=o.firstChild;if(d.jc!=null&&d.jc.parentNode===o)o.insertBefore(k.nc,d.jc);else k.ed!=null&&k.ed.parentNode===o?o.insertBefore(k.nc,k.ed):o.appendChild(k.nc)}};this.Jj=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 o=false;if(k!=null&&k.ze!=null&&k.ze===true)o=true;return o};this.jk=function(){return d.b.Ds!=null};this.hideColumn=function(k){return d.Zs(k,
1408
1408
  false)};this.showColumn=function(k){return d.Zs(k,true)};this.isColumnHidden=function(k){if(typeof k=="string")k=Number(k);if(!isNaN(k))for(var o=0;o<d.fa.length;o++)if(d.fa[o].columnId===k)return d.fa[o].showing!==true;return false};this.Qs=function(k,o){var q=o,v=true;if(d.Tc===true||d.isFiltered(true)){v=false;for(var A=0;A<k.length;A++)if(k[A].n==q){q=A+1;v=true;break}}if(q<1||q>k.length||v==false)q=null;return q};this.getRowNumber=function(k){var o=d.dataArray;if(d.isFiltered())o=d.W;var q=d.Qs(o,
1409
1409
  k);if(q==null)q=k;if(q<1)q=1;if(q>o.length)q=o.length;return q};this.getRRN=function(k){k=k;var o=d.dataArray;if(d.isFiltered())o=d.W;if(k<1)k=1;if(k>o.length)k=o.length;o=o[k-1];return o!=null&&o.n?o.n:k};this.Zs=function(k,o){if(!this.ma)return false;if(typeof k=="string")k=Number(k);if(!isNaN(k))for(var q=d.fa,v=0;v<q.length;v++){var A=q[v];if(A.columnId===k)return A.showing===o?true:d.Zo(A)}return false};this.Zo=function(k,o){if(!this.ma)return false;var q=d.fa,v=!k.showing;if(d.m.length-2<1&&
1410
- !v){pui.alert(pui.getLanguageText("runtimeMsg","cannot rmv last col"));return false}for(var A=k.columnId,u=k.currentColumn,I=q.Li,F=[],H=d.cells[0],L=0,Q=pui["grid column resize style"]!=="simple",X=d.Df().split(",").map(function(Z){return Number(Z)}),O=0;O<q.length;O++){if(k===q[O]){q[O].showing=v;if(!v){var S=Ia(q[O].columnId);q[O].width=X[S]}k=q[O]}if(q[O].showing){S=Ia(q[O].columnId);if(S>-1)q[O].width=X[S];F.push(q[O])}else L+=q[O].width-(q[O].lastAdjustment||0)}if(v){d.Bn(A);S=Ia(A);O=0;if(gc&&
1410
+ !v){pui.alert(pui.getLanguageText("runtimeMsg","cannot rmv last col"));return false}for(var A=k.columnId,u=k.currentColumn,I=q.Li,F=[],H=d.cells[0],L=0,Q=pui["grid column resize style"]!=="simple",X=d.Ef().split(",").map(function(Z){return Number(Z)}),O=0;O<q.length;O++){if(k===q[O]){q[O].showing=v;if(!v){var S=Ia(q[O].columnId);q[O].width=X[S]}k=q[O]}if(q[O].showing){S=Ia(q[O].columnId);if(S>-1)q[O].width=X[S];F.push(q[O])}else L+=q[O].width-(q[O].lastAdjustment||0)}if(v){d.Bn(A);S=Ia(A);O=0;if(gc&&
1411
1411
  I)if(u==-1)O=S;else{if(I[u]===A){u=u-1;for(X=I[u];X>=0;){X=Ia(X);if(X!=-1){if(X<=u)O=X+1;break}else{u-=1;X=I[u]}}}}else if(A>0){O=F.filter(function(Z){return Z.columnId<A}).reduce(function(Z,V){return V.columnId>=Z?V.columnId:Z},0);O=Ia(O)+1}d.moveColumn(S,O,k);d.Ma();d.wd()}else d.cq(A);if(!o&&(v||d.da()))d.getData();d.sortable&&d.Bl(true);var R=[];v=F.sort(function(Z,V){return Ia(Z.columnId)>Ia(V.columnId)?1:-1}).map(function(Z){Z.blankHeader?R.push(""):R.push(Z.name);if(d.qd||Q){if(d.Sy)return Z.width;
1412
- return Z.orginalWidth}for(var V=Math.floor(L/F.length),ga=Z.lastAdjustment||0,ya=0;ya<q.length;ya++)if(q[ya].columnId===Z.v){q[ya].lastAdjustment=V;break}V=Z.width+V-ga;return V<0?Z.width:V});if(Va){q=q.map(function(Z){if(Z.showing)Z.savedColumn=Ia(Z.columnId);return Z});S={cols:q,headings:R};if(Va){O=K();if(O!=null)I=O.colSequence}M(S,"hidableColState");M(v,"colWidths");M(I,"colSequence")}d.Zf(v);d.Ma();d.wd();if(gc)for(O=0;O<H.length;O++)ha(H[O],true,d.sortable);if(hd)for(O=0;O<d.m.length;O++)Da(d.m,
1412
+ return Z.orginalWidth}for(var V=Math.floor(L/F.length),ga=Z.lastAdjustment||0,ya=0;ya<q.length;ya++)if(q[ya].columnId===Z.v){q[ya].lastAdjustment=V;break}V=Z.width+V-ga;return V<0?Z.width:V});if(Va){q=q.map(function(Z){if(Z.showing)Z.savedColumn=Ia(Z.columnId);return Z});S={cols:q,headings:R};if(Va){O=K();if(O!=null)I=O.colSequence}M(S,"hidableColState");M(v,"colWidths");M(I,"colSequence")}d.$f(v);d.Ma();d.wd();if(gc)for(O=0;O<H.length;O++)ha(H[O],true,d.sortable);if(hd)for(O=0;O<d.m.length;O++)Da(d.m,
1413
1413
  O,true,true);d.qd&&d.$b();d.columnHeadings=R;d.ic();rb();if(gc&&Va)if(I!=null){H=Array(I.length);for(O=0;O<H.length;O++)H[O]=d.cells[0][I[O]];for(O=0;O<H.length;O++)d.moveColumn(H[O].col,O)}return true};this.Ms=function(k){if(typeof k!=="object")return d.columnHeadings.split(",");return k.filter(function(o){return o.showing}).sort(function(o,q){var v,A;if(d.designMode&&o.currentColumn!=null&&q.currentColumn!=null){v=o.currentColumn;A=q.currentColumn}else{v=Ia(o.columnId);A=Ia(q.columnId)}return v>
1414
- A?1:-1}).map(function(o){if(o.blankHeader)return"";return o.name})};this.Gu=function(){function k(V){V=V.target;if(V.tagName=="TD")V=V.parentNode;if(V.tagName!="TR")return null;return V}function o(V){var ga=k(V);if(ga){V.stopPropagation();Za.Pf=ga;pui.P(ga,"move_origin");try{V.dataTransfer.setData("text/plain",ga.v)}catch(ya){}}}function q(V){if(V=k(V)){pui.ca(V,"move_origin");Za.Pf=null}}function v(V){ub(V);if(V=k(V)){var ga=V.parentNode.parentNode;V.parentNode==ga.tHead?pui.ca(ga.tHead.lastChild,
1415
- "move_valid"):pui.ca(V,"move_valid");if(Za.Pf==null)console.log("Origin row not set.");else{var ya=V.sectionRowIndex;if(V.parentNode==ga.tHead)ya=-1;ya++;V=ga.tBodies[0].rows[ya];if(Za.Pf!==V){ga.tBodies[0].removeChild(Za.Pf);ga.tBodies[0].insertBefore(Za.Pf,V)}F(ga.tBodies[0])}}}function A(V){if(Za.Pf!=null){var ga=k(V);if(ga!=null){var ya=ga.parentNode.parentNode;if(ga.parentNode==ya.tHead){ub(V);V.dataTransfer.dropEffect="move";pui.P(ya.tHead.lastChild,"move_valid")}else if(ga!=Za.Pf&&ga.sectionRowIndex!=
1416
- Za.Pf.sectionRowIndex-1){ub(V);V.dataTransfer.dropEffect="move";pui.P(ga,"move_valid")}}}}function u(V){ub(V);if(V=k(V)){var ga=V.parentNode.parentNode;if(V.parentNode==ga.tHead)V=ga.tHead.lastChild;pui.ca(V,"move_valid")}}function I(V){F(V.target.parentNode.parentNode.parentNode)}function F(V){for(var ga=0,ya=0;ya<V.rows.length;ya++){var La=V.rows[ya],ia=La.cells[1],ta=La.cells[3].children[0];if(La.cells[0].children[0].checked){La.Nb=ga;ia.innerHTML=ga;ga++;ta.style.visibility=""}else{La.Nb=-1;ia.innerHTML=
1417
- "";ta.style.visibility="hidden"}}}if(d.b.parentNode!=null){if(Za==null){Za=document.createElement("div");Za.className="grid-multisort"+(d.bd!=""?" "+d.bd+"-multisort":"");Za.style.top=d.b.offsetTop+"px";Za.style.left=d.b.offsetLeft+"px";var H=document.createElement("div");new pui.bf({Hk:H,move:Za});var L=document.createElement("button");L.className="pui-material-icons";L.innerHTML="close";T(L,"click",function(){Za.style.display="none"});H.appendChild(L);L=document.createElement("button");L.className=
1414
+ A?1:-1}).map(function(o){if(o.blankHeader)return"";return o.name})};this.Gu=function(){function k(V){V=V.target;if(V.tagName=="TD")V=V.parentNode;if(V.tagName!="TR")return null;return V}function o(V){var ga=k(V);if(ga){V.stopPropagation();Za.Qf=ga;pui.P(ga,"move_origin");try{V.dataTransfer.setData("text/plain",ga.v)}catch(ya){}}}function q(V){if(V=k(V)){pui.ca(V,"move_origin");Za.Qf=null}}function v(V){ub(V);if(V=k(V)){var ga=V.parentNode.parentNode;V.parentNode==ga.tHead?pui.ca(ga.tHead.lastChild,
1415
+ "move_valid"):pui.ca(V,"move_valid");if(Za.Qf==null)console.log("Origin row not set.");else{var ya=V.sectionRowIndex;if(V.parentNode==ga.tHead)ya=-1;ya++;V=ga.tBodies[0].rows[ya];if(Za.Qf!==V){ga.tBodies[0].removeChild(Za.Qf);ga.tBodies[0].insertBefore(Za.Qf,V)}F(ga.tBodies[0])}}}function A(V){if(Za.Qf!=null){var ga=k(V);if(ga!=null){var ya=ga.parentNode.parentNode;if(ga.parentNode==ya.tHead){ub(V);V.dataTransfer.dropEffect="move";pui.P(ya.tHead.lastChild,"move_valid")}else if(ga!=Za.Qf&&ga.sectionRowIndex!=
1416
+ Za.Qf.sectionRowIndex-1){ub(V);V.dataTransfer.dropEffect="move";pui.P(ga,"move_valid")}}}}function u(V){ub(V);if(V=k(V)){var ga=V.parentNode.parentNode;if(V.parentNode==ga.tHead)V=ga.tHead.lastChild;pui.ca(V,"move_valid")}}function I(V){F(V.target.parentNode.parentNode.parentNode)}function F(V){for(var ga=0,ya=0;ya<V.rows.length;ya++){var La=V.rows[ya],ia=La.cells[1],ta=La.cells[3].children[0];if(La.cells[0].children[0].checked){La.Nb=ga;ia.innerHTML=ga;ga++;ta.style.visibility=""}else{La.Nb=-1;ia.innerHTML=
1417
+ "";ta.style.visibility="hidden"}}}if(d.b.parentNode!=null){if(Za==null){Za=document.createElement("div");Za.className="grid-multisort"+(d.bd!=""?" "+d.bd+"-multisort":"");Za.style.top=d.b.offsetTop+"px";Za.style.left=d.b.offsetLeft+"px";var H=document.createElement("div");new pui.cf({Hk:H,move:Za});var L=document.createElement("button");L.className="pui-material-icons";L.innerHTML="close";T(L,"click",function(){Za.style.display="none"});H.appendChild(L);L=document.createElement("button");L.className=
1418
1418
  "pui-material-icons";L.innerHTML="check";T(L,"click",function(){Za.style.display="none";for(var V=[],ga=0;ga<Q.tBodies[0].rows.length;ga++){var ya=Q.tBodies[0].rows[ga];ya.Nb>=0&&V.push({ds:ya.v+0,Jw:ya.ra})}d.Ct(V)});H.appendChild(L);H.appendChild(document.createTextNode(pui.getLanguageText("runtimeText","sort multiple")));Za.appendChild(H);var Q=document.createElement("table");H=Q.createTHead().insertRow();H.ondrop=v;H.ondragover=A;H.ondragleave=u;var X=H.insertCell();X.innerHTML=pui.getLanguageText("runtimeText",
1419
1419
  "sort");X=H.insertCell();X.innerHTML=pui.getLanguageText("runtimeText","order");X=H.insertCell();X.innerHTML=pui.getLanguageText("runtimeText","column");X=H.insertCell();X.innerHTML=pui.getLanguageText("runtimeText","direction");var O=document.createElement("tbody");Q.appendChild(O);var S=d.cells[0].map(function(V){for(var ga=-1,ya=0;ya<Ta.length;ya++)if(V===Ta[ya]){ga=ya;break}ya=V.ra;if(ya==null)ya=p(V.v);return{v:V.v,name:V.textContent,ra:ya,Nb:ga}});S.sort(function(V,ga){if(V.Nb>=0&&ga.Nb>=0)return V.Nb-
1420
1420
  ga.Nb;if(V.Nb>=0&&ga.Nb<0)return-1;if(V.Nb<0&&ga.Nb>=0)return 1;return 0});for(var R=0;R<S.length;R++){L=S[R].name;X=S[R].v;var Z=S[R].ra;H=O.insertRow();H.draggable=true;H.v=X;H.ra=Z;H.Nb=S[R].Nb;H.ondragstart=o;H.ondragend=q;H.ondrop=v;H.ondragover=A;H.ondragleave=u;X=H.insertCell();Z=document.createElement("input");Z.type="checkbox";Z.name=L+"_sort";Z.onclick=I;Z.checked=H.Nb>=0;X.appendChild(Z);X=H.insertCell();X.innerHTML=H.Nb>=0?H.Nb:"&nbsp;";X=H.insertCell();X.innerHTML=L;X.draggable=true;
@@ -1422,11 +1422,11 @@ X=H.insertCell();L=document.createElement("button");L.className="pui-material-ic
1422
1422
  d.b.offsetTop+"px";Za.style.left=d.b.offsetLeft+"px"}else{O=Za.querySelector("table").tBodies[0];for(R=0;R<O.childNodes.length;R++){H=O.childNodes[R];S=false;for(L=0;L<Ta.length;L++)if(H.v==Ta[L].v){H.ra=Ta[L].ra;H.childNodes[0].firstChild.checked=true;if(S=H.childNodes[3].firstChild)S.innerHTML=H.ra?"arrow_downward":"arrow_upward";S=true;break}if(!S)H.childNodes[0].firstChild.checked=false}F(O)}Za.style.display="";if(d.b.parentNode.getAttribute("container")=="true"&&d.b.parentNode.offsetHeight>0)if(Za.offsetHeight>
1423
1423
  d.b.parentNode.offsetHeight-54)Za.style.height=d.b.parentNode.offsetHeight-54+"px"}};this.tz=function(k){function o(){H=Q.insertRow();H.v=X;H.onclick=v;L=H.insertCell();var Pa=document.createElement("input");Pa.type="checkbox";Pa.name=V+"_filter";Pa.checked=ga;L.appendChild(Pa);L=H.insertCell();L.innerHTML=V}function q(){Z=S.entries();ya=S.size;for(var Pa=ya<50?ya:50,cb=0;cb<Pa;cb++){R=Z.next().value;V=R[0];ga=R[1];o();La++}$a.appendChild(F);d.b.parentNode.appendChild($a)}function v(Pa){if(Pa.target.localName==
1424
1424
  "td")if(this.cells[0].children[0].checked==false)ga=this.cells[0].children[0].checked=true;else ga=this.cells[0].children[0].checked=false;if(Pa.target.localName=="input")if(this.cells[0].children[0].checked==true)ga=this.cells[0].children[0].checked=true;else ga=this.cells[0].children[0].checked=false;V=this.cells[1].innerHTML;V!=null&&S.has(V)&&S.set(V,ga)}function A(Pa,cb,Bb,Ua,$b){d.mask();d.Lb();if(Pa==null)Pa=-1;if(cb==null)cb=1;var Rb=null;Rb=pui.rd(d.dataProps);d.Pc="";if(d.isFiltered())for(var Fb=
1425
- d.cells[0],kd=0,ld=0;ld<Fb.length;ld++){var sc=Fb[ld];if(sc.v>=0&&sc.sa!=null){var Me=bb(sc.v);d.Pc+="&fltrcol"+String(kd)+"="+(sc.v+1+Me);d.Pc+=d.Wt(String(kd),sc.sa);Rb+=d.Pc;kd++}}if(d.dataProps["data url"]!=null&&d.dataProps["data url"]!=""&&d.Eb!=null)Rb+="&order="+d.Eb;Fb=Vb("PUI0009102.PGM");if(Ua)Fb=pui.mf(Ua);Ua=new pui.Ajax(Fb);Ua.method="post";Ua.async=true;if(pui.Z)Ua.postData="AUTH="+pui.Z;else{Ua.postData="AUTH="+pui.appJob.auth;if(typeof pui.vId!=="undefined")Ua.postData+="&VID="+pui.vId}Ua.postData+=
1425
+ d.cells[0],kd=0,ld=0;ld<Fb.length;ld++){var sc=Fb[ld];if(sc.v>=0&&sc.sa!=null){var Me=bb(sc.v);d.Pc+="&fltrcol"+String(kd)+"="+(sc.v+1+Me);d.Pc+=d.Wt(String(kd),sc.sa);Rb+=d.Pc;kd++}}if(d.dataProps["data url"]!=null&&d.dataProps["data url"]!=""&&d.Eb!=null)Rb+="&order="+d.Eb;Fb=Vb("PUI0009102.PGM");if(Ua)Fb=pui.nf(Ua);Ua=new pui.Ajax(Fb);Ua.method="post";Ua.async=true;if(pui.Z)Ua.postData="AUTH="+pui.Z;else{Ua.postData="AUTH="+pui.appJob.auth;if(typeof pui.vId!=="undefined")Ua.postData+="&VID="+pui.vId}Ua.postData+=
1426
1426
  "&q="+encodeURIComponent(pui.$c(d.b));Fb=d.dataProps["order by"];if(d.Eb!=null)Fb=d.Eb;if(Fb&&Fb!="")Ua.postData+="&order="+Fb;else if(Eb()=="mssql")Ua.postData+="&order=(select null)";if(Rb!="")Ua.postData+="&"+Rb;Ua.postData+="&limit="+Pa+"&start="+cb;if(Bb!=null&&Bb==true)Ua.postData+="&getTotal=1";if(pui["read db driven data as ebcdic"]!==true)Ua.postData+="&UTF8=Y";Pa=d.dataProps["allow any select statement"];if(Pa!=null&&(Pa=="true"||Pa==true))Ua.postData+="&FetchCounter=Y";if(pui.isCloud)Ua.postData+=
1427
1427
  "&workspace_id="+pui.cloud.ws.id;Ua.onready=function(hc){var Gb,ic,Nb;if(Gb=Ib(hc,"Run SQL SELECT Query")){d.mask();d.Lb();hc=Gb.results;var Sb=Gb.totalRecs;if(Sb!=null)d.totalRecs=Sb;if(hc.length>=1){var Cb=ob(d.w);Sb=[];for(Nb in Gb.results[0])Cb.indexOf(Nb)==-1&&Sb.push(Nb);Nb=Sb;Gb=[];for(Cb=0;Cb<d.w.length;Cb++)if(d.w[Cb]&&d.w[Cb].value&&d.w[Cb].value.fieldName){var Kc=d.w[Cb].value.fieldName;Nb.indexOf(Kc)!=-1&&Gb.push(Kc)}Sb=Gb.length===0?Sb:Gb;for(Gb=0;Gb<hc.length;Gb++){Cb=hc[Gb];if($b.fieldName!=
1428
1428
  null)for(ic in Cb){if(ic.toUpperCase()==$b.fieldName.toUpperCase()){Nb=Cb[ic];S.set(Nb,false)}}else{d.dataArray=hc;d.sc=false;d.wa=true;Kc=Sb[$b.v];for(ic in Cb)if(ic==Kc){Nb=Cb[ic];S.set(Nb,false)}}}if(S.size>0){q();d.unMask()}}}};d.sc=true;Ua.send()}if(d.b.parentNode!=null)if(!pui.is_ie){d.mask();d.Lb();$a&&$a.parentNode.removeChild($a);$a=document.createElement("div");$a.className="grid-multifilter"+(d.bd!=""?" "+d.bd+"-multifilter":"");if(k!=null){$a.style.top=d.b.offsetTop+k.offsetHeight+"px";
1429
- $a.style.left=d.b.offsetLeft+k.offsetLeft+"px";if($a.style.top==null||$a.style.left==null){$a.style.top=d.b.offsetTop+"px";$a.style.left=d.b.offsetLeft+"px"}}else{$a.style.top=d.b.offsetTop+"px";$a.style.left=d.b.offsetLeft+"px"}var u=document.createElement("div");new pui.bf({Hk:u,move:$a});var I=document.createElement("button");I.className="pui-material-icons";I.innerHTML="close";T(I,"click",function(){$a.style.display="none";if(d.sc==true)d.sc=false;$a=null;if(d.wa==true&&d.dataProps["load all rows"]!=
1429
+ $a.style.left=d.b.offsetLeft+k.offsetLeft+"px";if($a.style.top==null||$a.style.left==null){$a.style.top=d.b.offsetTop+"px";$a.style.left=d.b.offsetLeft+"px"}}else{$a.style.top=d.b.offsetTop+"px";$a.style.left=d.b.offsetLeft+"px"}var u=document.createElement("div");new pui.cf({Hk:u,move:$a});var I=document.createElement("button");I.className="pui-material-icons";I.innerHTML="close";T(I,"click",function(){$a.style.display="none";if(d.sc==true)d.sc=false;$a=null;if(d.wa==true&&d.dataProps["load all rows"]!=
1430
1430
  "true")d.wa=false});u.appendChild(I);I=document.createElement("button");I.className="pui-material-icons";I.innerHTML="check";T(I,"click",function(){$a.style.display="none";d.mask();d.Lb();Z=S.entries();ya=S.size;for(var Pa=[],cb=0;cb<ya;cb++){R=Z.next().value;V=R[0];ga=R[1];ga==true&&Pa.push(V)}ia="JVALUES "+JSON.stringify(Pa);if(d.sc==true)d.sc=false;if(d.wa==true&&d.dataProps["load all rows"]!="true")d.wa=false;ia==null||Pa.length==0?d.removeFilter(X):d.setFilter(k,ia);d.unMask();$a=null});u.appendChild(I);
1431
1431
  u.appendChild(document.createTextNode(pui.getLanguageText("runtimeText","filter multiple")));$a.appendChild(u);var F=document.createElement("table"),H=F.createTHead().insertRow(),L=H.insertCell();L.innerHTML=pui.getLanguageText("runtimeText","filter check");L=H.insertCell();L.innerHTML=pui.getLanguageText("runtimeText","filter data");var Q=document.createElement("tbody");F.appendChild(Q);if(k!=null){var X=k.v;d.$j(k);var O=k.Sj}rows=d.dataArray.length;var S=new Map,R=[],Z=[],V,ga=false,ya=0,La=0,
1432
1432
  ia=k.sa;if(d.da()&&d.dataProps["load all rows"]!="true"){O=d.dataProps["data url"];if(O=="")O=null;A(-1,1,d.totalRecs==null,O,k)}else{u=d.dataArray;if(d.isFiltered()&&d.W!=null&&d.W.length>0)u=d.W;for(I=0;I<u.length;I++){var ta=u[I];if(ta.n==null)ta.n=I+1;for(var Ja=0;Ja<O.length;Ja++){var Oa=ta[O[Ja]],za=false;if(k.pui!=null)if(k.pui.formats!=null&&k.pui.formats[Ja]!=null&&typeof k.pui.formats[Ja]=="object"){var Ga=k.pui.formats[Ja];Ga.value=Oa;Oa=pui.uc.format(Ga)}if(k.pui.vd!=null&&k.pui.vd[Ja]!=
@@ -1520,81 +1520,81 @@ bind:false,context:"dspf"},{name:"onrowclick",wf:true,type:"js",a:"blank",help:"
1520
1520
  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",
1521
1521
  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");
1522
1522
  b.splice(a,1)}return b};function de(b,a,c,e){var f,g,h=b.j.length-1;if(b.g){f=1;g=0}else{f=0;g=1}if(b.h>0&&b.Ob>0){var l=b.isFiltered()?b.W:b.dataArray;b=b.h-1;var n=0,m=0;f=f;for(var r=b;r<l.length&&r<h+b+n;r++){var p=l[r];if(p){if(p.rc===true)n++;else{m++;typeof a=="function"&&a(r,f,m,n);f++}if(c>=0&&m==c+g&&typeof e=="function"){e(r,f);break}}}}}function $d(b,a){var c=-1;if(b.h>0){var e=b.h-1,f=b.g?1:0;if(b.Ob==0)c=a+e-f;else de(b,null,a,function(g){c=g})}return c}
1523
- function ce(b){if(b.pr==null)b.pr=b.Mv.bind(b);var a=b.j.length-1;if(b.h>0&&b.Ob>0)de(b,b.pr);else for(var c=b.g?1:0;c<a;c++)b.fd(c)}pui.nk.prototype.Mv=function(b,a){this.fd(a,false,b)};function ee(b){if(b.g&&b.j.length>=2){b.j[0].style.top=parseInt(b.j[1].style.top)-b.cb+"px";b.Ov();b.Nv();b.designMode&&b.Ma();b.Jv();b.setScrollBar();b.hc()}}pui.nk.prototype.qr=function(b){b.stopPropagation()};pui.jv=function(b){this.data=b;this.ce=true;this.Ld="expanded";this.children=[];this.parentNode=null;this.Qg=true};pui.Nq=function(){this.root=null};va=pui.Nq.prototype;va.add=function(b,a){var c=new pui.jv(b),e=a?ie(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 ge(b,a){a.Ld="collapsed";for(var c=0;c<a.children.length;c++)a.children[c].ce=false;je(b,a)}
1523
+ function ce(b){if(b.pr==null)b.pr=b.Mv.bind(b);var a=b.j.length-1;if(b.h>0&&b.Ob>0)de(b,b.pr);else for(var c=b.g?1:0;c<a;c++)b.fd(c)}pui.nk.prototype.Mv=function(b,a){this.fd(a,false,b)};function ee(b){if(b.g&&b.j.length>=2){b.j[0].style.top=parseInt(b.j[1].style.top)-b.cb+"px";b.Ov();b.Nv();b.designMode&&b.Ma();b.Jv();b.setScrollBar();b.hc()}}pui.nk.prototype.qr=function(b){b.stopPropagation()};pui.jv=function(b){this.data=b;this.ce=true;this.Ld="expanded";this.children=[];this.parentNode=null;this.Rg=true};pui.Nq=function(){this.root=null};va=pui.Nq.prototype;va.add=function(b,a){var c=new pui.jv(b),e=a?ie(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 ge(b,a){a.Ld="collapsed";for(var c=0;c<a.children.length;c++)a.children[c].ce=false;je(b,a)}
1524
1524
  function fe(b,a){a.Ld="expanded";for(var c=0;c<a.children.length;c++)a.children[c].ce=true;je(b,a)}function ke(b,a){var c=a.parentNode;if(c===null)return false;return c.ce===false?true:ke(b,c)}va.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])};va.contains=function(b){return ie(this,b)?true:false};
1525
- function ie(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 le(b,a,c){if(a){c&&c(a);for(var e=0;e<a.children.length;e++)le(b,a.children[e],c)}}va.collapseAll=function(){me(this,function(e){e.ce=false;e.Qg=false;e.Ld="collapsed"});this.root.ce=true;for(var b=this.root.children,a=0;a<b.length;a++){var c=b[a];c.ce=true;c.Qg=true;c.Ld="collapsed"}};
1526
- va.expandAll=function(){me(this,function(e){e.ce=true;e.Qg=true;e.Ld="expanded"});this.root.ce=true;for(var b=this.root.children,a=0;a<b.length;a++){var c=b[a];c.ce=true;c.Qg=true;c.Ld="expanded"}};function je(b,a){a.Qg=true;if(a.ce===false||ke(b,a))a.Qg=false;for(var c=0;c<a.children.length;c++)je(b,a.children[c])}function me(b,a,c){var e=b.root;c?b["_"+c](e,a):le(b,e,a)}
1527
- va.load=function(b){var a;a="0";this.add("0");var c={};c[0]=a;for(var e=0;e<b.length;e++){var f=b[e],g=f.Bq,h=g-1;a=(e+1).toString();h=this.add(a,c[h]);f.node=h;c[g]=a}};function he(b,a){function c(f){var g=parseInt(f.data);if(g>e)e=g;for(g=0;g<f.children.length;g++)c(f.children[g])}var e=parseInt(a.data);c(a);return e};pui.widgets.add({name:"grid",lo:true,rg:false,defaults:{"number of rows":"7","number of columns":"3","column widths":"150,150,150","column headings":"Heading 1,Heading 2,Heading 3"},Gf:function(b){if(b.dom.grid==null){b.dom.grid=new pui.nk;b.dom.grid.container=b.dom.parentNode;b.dom.grid.b=b.dom;if(b.design&&!b.dom.grid.designMode){b.dom.grid.Eo();b.dom.grid.setProperty("show paging controls",b.properties["show paging controls"]);b.dom.grid.setProperty("show page number",b.properties["show page number"]);
1525
+ function ie(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 le(b,a,c){if(a){c&&c(a);for(var e=0;e<a.children.length;e++)le(b,a.children[e],c)}}va.collapseAll=function(){me(this,function(e){e.ce=false;e.Rg=false;e.Ld="collapsed"});this.root.ce=true;for(var b=this.root.children,a=0;a<b.length;a++){var c=b[a];c.ce=true;c.Rg=true;c.Ld="collapsed"}};
1526
+ va.expandAll=function(){me(this,function(e){e.ce=true;e.Rg=true;e.Ld="expanded"});this.root.ce=true;for(var b=this.root.children,a=0;a<b.length;a++){var c=b[a];c.ce=true;c.Rg=true;c.Ld="expanded"}};function je(b,a){a.Rg=true;if(a.ce===false||ke(b,a))a.Rg=false;for(var c=0;c<a.children.length;c++)je(b,a.children[c])}function me(b,a,c){var e=b.root;c?b["_"+c](e,a):le(b,e,a)}
1527
+ va.load=function(b){var a;a="0";this.add("0");var c={};c[0]=a;for(var e=0;e<b.length;e++){var f=b[e],g=f.Bq,h=g-1;a=(e+1).toString();h=this.add(a,c[h]);f.node=h;c[g]=a}};function he(b,a){function c(f){var g=parseInt(f.data);if(g>e)e=g;for(g=0;g<f.children.length;g++)c(f.children[g])}var e=parseInt(a.data);c(a);return e};pui.widgets.add({name:"grid",lo:true,sg:false,defaults:{"number of rows":"7","number of columns":"3","column widths":"150,150,150","column headings":"Heading 1,Heading 2,Heading 3"},Hf:function(b){if(b.dom.grid==null){b.dom.grid=new pui.nk;b.dom.grid.container=b.dom.parentNode;b.dom.grid.b=b.dom;if(b.design&&!b.dom.grid.designMode){b.dom.grid.Eo();b.dom.grid.setProperty("show paging controls",b.properties["show paging controls"]);b.dom.grid.setProperty("show page number",b.properties["show page number"]);
1528
1528
  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.ts=true;setTimeout(function(){b.dom.grid.ts=false;b.dom.grid.c!=null&&b.dom.grid.c.z()},0)}if(b.properties["css class"]!=
1529
- null&&b.properties["css class"]!=""){b.dom.className=b.dom.grid.bd=b.properties["css class"];b.dom.grid.H={};b.dom.grid.qf={}}if(!b.dom.style.top)b.dom.style.top="0px";if(!b.dom.style.left)b.dom.style.left="0px";b.dom.Op=pui.li.Yi();b.dom.Qh=Gc(b.dom.Op);b.dom.grid.setProperty("has header",b.properties["has header"]);if(b.design){b.d.Ap=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",
1529
+ null&&b.properties["css class"]!=""){b.dom.className=b.dom.grid.bd=b.properties["css class"];b.dom.grid.H={};b.dom.grid.rf={}}if(!b.dom.style.top)b.dom.style.top="0px";if(!b.dom.style.left)b.dom.style.left="0px";b.dom.Op=pui.li.Yi();b.dom.Qh=Gc(b.dom.Op);b.dom.grid.setProperty("has header",b.properties["has header"]);if(b.design){b.d.Ap=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",
1530
1530
  b.properties["column widths"]);b.dom.grid.setProperty("column headings",b.properties["column headings"]);b.dom.grid.wd();b.dom.grid.Ma();b.dom.grid.ic()}else{if((P=="dspf"||pui.ea)&&b.properties["cursor progression"]!="top to bottom")b.dom.grid.setProperty("number of columns",b.properties["number of columns"]);if((P=="dspf"||pui.ea)&&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"&&
1531
1531
  b.value>b.dom.grid.Jh)b.newValue=b.dom.grid.Jh;if(b.propertyName=="field type"){b.dom.sizeMe=function(){b.dom.grid.qd&&b.dom.grid.$b();b.dom.grid.alignColumnTotals()};if(b.design){var a=parseInt(b.properties["row height"]);if(!isNaN(a)&&a>0)b.dom.grid.ka=a;b.dom.d=b.d;b.d.Ap=false}b.dom.style.borderWidth="0px";b.dom.style.padding="0px";b.dom.it=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");
1532
1532
  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"]&&
1533
- b.dom.setAttribute("puiwdgt",b.properties["field type"]);b.dom.grid.wd();b.dom.grid.Ma();b.dom.grid.ic();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.$b()}b.dom.it&&b.dom.grid.setProperty("top",b.dom.it);b.dom.JA=b.properties.left;P=="genie"&&!pui.ea&&!b.design&&b.dom!=null&&b.dom.grid!=null&&b.dom.grid.Dw(1,true)}});pui.widgets.add({name:"html container",sd: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.o(b.html)){b=pui.Q(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.Zk(b.evalProperty("html"));b.dom.Uf=
1534
- pui.Sg;b.dom.destroy=pui.lh},html:function(b){b.dom.innerHTML=b.design?b.value:pui.Zk(b.value)}}});pui["encode hyperlink spaces"]=null;pui["default hyperlink tabindex"]=null;
1533
+ b.dom.setAttribute("puiwdgt",b.properties["field type"]);b.dom.grid.wd();b.dom.grid.Ma();b.dom.grid.ic();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.$b()}b.dom.it&&b.dom.grid.setProperty("top",b.dom.it);b.dom.JA=b.properties.left;P=="genie"&&!pui.ea&&!b.design&&b.dom!=null&&b.dom.grid!=null&&b.dom.grid.Dw(1,true)}});pui.widgets.add({name:"html container",sd: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.o(b.html)){b=pui.Q(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.Zk(b.evalProperty("html"));b.dom.Vf=
1534
+ pui.Tg;b.dom.destroy=pui.lh},html:function(b){b.dom.innerHTML=b.design?b.value:pui.Zk(b.value)}}});pui["encode hyperlink spaces"]=null;pui["default hyperlink tabindex"]=null;
1535
1535
  pui.Tr=function(b,a,c,e,f,g,h){b.innerHTML="";var l=document.createElement("a"),n=false;if(c==true||e==null||e.trim()===""){e="javascript:void(0)";n=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 h==="string"&&h.trim()!=="")l.download=h;l.appendChild(document.createTextNode(a));if(pui.is_old_ie&&n&&(P=="dspf"||P=="genie"))T(l,"click",function(m){m.preventDefault&&m.preventDefault();
1536
1536
  return m.returnValue=false});if(g!=null&&g!="")l.tabIndex=g;else if(pui["default hyperlink tabindex"]!=null)l.tabIndex=pui["default hyperlink tabindex"];b.appendChild(l)};
1537
- pui.widgets.add({name:"hyperlink",newValue:"Click Here",sd:true,defaults:{color:"#0066CC"},Gf: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!=
1537
+ pui.widgets.add({name:"hyperlink",newValue:"Click Here",sd:true,defaults:{color:"#0066CC"},Hf: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!=
1538
1538
  null&&c.firstChild.tagName=="A")c.firstChild.style[a]=b.value;break}},propertySetters:{"field type":function(b){pui.Tr(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.Ek(b.dom,"mouseover",function(){setTimeout(b.d.designer.selection.Fj,0)});designUtils.Ek(b.dom,"mouseout",function(){setTimeout(b.d.designer.selection.Fj,0)})}},value:function(b){pui.Tr(b.dom,b.value,b.design,
1539
1539
  b.properties["hyperlink reference"],b.properties.target,b.evalProperty("tab index"),b.evalProperty("download file"))}}});pui.$i=function(b){var a,c=b.evalProperty("icon"),e=b.evalProperty("css class"),f=b.evalProperty("icon size"),g=b.evalProperty("cursor"),h=b.evalProperty("font family"),l=document.createElement("div");pui.la(b.dom);a=[{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",
1540
1540
  classList:{"":"ui-icon ui-icon-"}}];if(c)c=Kb(c);if(pui.customIconList&&pui.customIconList)if(Array.isArray(pui.customIconList.icons)&&pui.customIconList.icons.length)a=pui.customIconList.icons;if(c.substr(0,9)=="material:"){a=c.substr(9);pui.la(l);l.innerText=Kb(a);l.className="pui-material-icons";if(g)l.style.cursor=g}else if(c.substr(0,12)=="fontAwesome:"){a=Kb(c.substr(12));l.className="pui-fa-icons fa-"+a;pui.la(l)}else{g=c.split(":");var n=g.shift().split("-"),m=n.pop();n=n.join("-");var r=
1541
1541
  g.pop();a.every(function(p){var s=p.classList[m];if(n===p.type){l.className=s+r;if(c.startsWith("material-")){pui.la(l);l.innerText=Kb(r)}else pui.la(l);return false}return true})}if(e)l.className=l.className+" "+e;if(f)l.style.fontSize=f;if(h)l.style.fontFamily=h;b.dom.appendChild(l)};pui.$s=function(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};
1542
- pui.widgets.add({name:"icon",newId:"Icon",tag:"div",defaults:{icon:"material:face"},propertySetters:{"field type":function(b){pui.$i(b);b.dom.style.textAlign="center";b.dom.Uf=pui.Sg;b.dom.destroy=pui.lh},icon:function(b){b.properties.icon=b.value;pui.$i(b)},width:function(b){pui.$s(b,"height")},height:function(b){pui.$s(b,"width")},"css class":function(b){b.properties["css class"]=b.value;pui.$i(b)},cursor:function(b){b.properties.cursor=b.value;pui.$i(b)},"font family":function(b){b.properties["font family"]=
1542
+ pui.widgets.add({name:"icon",newId:"Icon",tag:"div",defaults:{icon:"material:face"},propertySetters:{"field type":function(b){pui.$i(b);b.dom.style.textAlign="center";b.dom.Vf=pui.Tg;b.dom.destroy=pui.lh},icon:function(b){b.properties.icon=b.value;pui.$i(b)},width:function(b){pui.$s(b,"height")},height:function(b){pui.$s(b,"width")},"css class":function(b){b.properties["css class"]=b.value;pui.$i(b)},cursor:function(b){b.properties.cursor=b.value;pui.$i(b)},"font family":function(b){b.properties["font family"]=
1543
1543
  b.value;pui.$i(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);
1544
- 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.gt=function(b){b=tb(b);if(b.tagName=="IMG")if(b.Ge!=null&&b.Ge!=""){b.pt=true;if(b.hp!=true)b.src=b.Ge}};pui.ft=function(b){b=tb(b);if(b.tagName=="IMG"){b.pt=false;if(b.Vd!=null)if(b.hp!=true)b.src=b.Vd}};pui.ll=function(b){b=tb(b);if(b.tagName=="IMG")if(b.rf!=null&&b.rf!=""){b.hp=true;b.src=b.rf}};pui.ml=function(b){if(b.Vd!=null){b.hp=false;b.src=b.pt==true?b.Ge:b.Vd}};
1544
+ 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.gt=function(b){b=tb(b);if(b.tagName=="IMG")if(b.Ge!=null&&b.Ge!=""){b.pt=true;if(b.hp!=true)b.src=b.Ge}};pui.ft=function(b){b=tb(b);if(b.tagName=="IMG"){b.pt=false;if(b.Vd!=null)if(b.hp!=true)b.src=b.Vd}};pui.ll=function(b){b=tb(b);if(b.tagName=="IMG")if(b.sf!=null&&b.sf!=""){b.hp=true;b.src=b.sf}};pui.ml=function(b){if(b.Vd!=null){b.hp=false;b.src=b.pt==true?b.Ge:b.Vd}};
1545
1545
  pui.ht=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.Z?pui.Z:pui.appJob.auth)+"&q="+encodeURIComponent(pui.$c(b.dom));pui.rd(b.properties,a);for(var e in a)c+="&"+encodeURIComponent(e)+"="+a[e];c+="&rnd="+String(Math.random())+String((new Date).getTime());return Vb("PUI0009119.PGM")+c}return null};
1546
1546
  pui.widgets.add({name:"image",tag:"img",propertySetters:{"field type":function(b){b.dom.onselectstart=ua(false);b.dom.ondragstart=ua(false);b.dom.setAttribute("draggable","false");if(typeof b.dom.style.MozUserSelect!="undefined")b.dom.style.MozUserSelect="none";b.dom.Vd=b.evalProperty("image source");var a=pui.ht(b);if(a)b.dom.Vd=a;b.dom.src=b.dom.Vd;a=b.evalProperty("hover image source");b.dom.Ge=a;if(a!=null&&a!=""){b.dom.Ge=pui.normalizeURL(b.dom.Ge,true);T(b.dom,"mouseover",pui.gt);T(b.dom,"mouseout",
1547
- pui.ft);(new Image).src=a}a=b.evalProperty("click image source");b.dom.rf=a;if(a!=null&&a!=""){b.dom.rf=pui.normalizeURL(b.dom.rf,true);T(b.dom,"mousedown",pui.ll);T(document,"mouseup",function(){pui.ml(b.dom)});T(b.dom,"touchstart",pui.ll);T(document,"touchend",function(){pui.ml(b.dom)});(new Image).src=a}},"image source":function(b){b.dom.Vd=pui.normalizeURL(b.value,true);if(b.design&&b.dom.Vd.indexOf(".svg")!=-1)if(!b.properties.width&&!b.properties.height){var a=Ac();a=pui.Xi(a,"width");b.dom=
1548
- Mc(a,b.properties,b.dom,"200px",b.design,b.d,b.ou);b.d.designer.ob.zB("width","200px",true)}},"blob column":function(b){var a=pui.ht(b);if(a)b.dom.Vd=a;b.dom.src=b.dom.Vd},"hover image source":function(b){b.dom.Ge=b.value;if(b.value!=null&&b.value!=""){b.dom.Ge=pui.normalizeURL(b.dom.Ge,true);T(b.dom,"mouseover",pui.gt);T(b.dom,"mouseout",pui.ft);(new Image).src=b.value}},"click image source":function(b){b.dom.rf=b.value;if(b.value!=null&&b.value!=""){b.dom.rf=pui.normalizeURL(b.dom.rf,true);T(b.dom,
1547
+ pui.ft);(new Image).src=a}a=b.evalProperty("click image source");b.dom.sf=a;if(a!=null&&a!=""){b.dom.sf=pui.normalizeURL(b.dom.sf,true);T(b.dom,"mousedown",pui.ll);T(document,"mouseup",function(){pui.ml(b.dom)});T(b.dom,"touchstart",pui.ll);T(document,"touchend",function(){pui.ml(b.dom)});(new Image).src=a}},"image source":function(b){b.dom.Vd=pui.normalizeURL(b.value,true);if(b.design&&b.dom.Vd.indexOf(".svg")!=-1)if(!b.properties.width&&!b.properties.height){var a=Ac();a=pui.Xi(a,"width");b.dom=
1548
+ Mc(a,b.properties,b.dom,"200px",b.design,b.d,b.ou);b.d.designer.ob.zB("width","200px",true)}},"blob column":function(b){var a=pui.ht(b);if(a)b.dom.Vd=a;b.dom.src=b.dom.Vd},"hover image source":function(b){b.dom.Ge=b.value;if(b.value!=null&&b.value!=""){b.dom.Ge=pui.normalizeURL(b.dom.Ge,true);T(b.dom,"mouseover",pui.gt);T(b.dom,"mouseout",pui.ft);(new Image).src=b.value}},"click image source":function(b){b.dom.sf=b.value;if(b.value!=null&&b.value!=""){b.dom.sf=pui.normalizeURL(b.dom.sf,true);T(b.dom,
1549
1549
  "mousedown",pui.ll);T(document,"mouseup",function(){pui.ml(b.dom)});T(b.dom,"touchstart",pui.ll);T(document,"touchend",function(){pui.ml(b.dom)});(new Image).src=b.value}}}});pui.mv=function(){function b(l){function n(B){function G(){B.ad>0&&B.fi==null&&g.fu();if(g.bj==true&&P=="dspf"){f(e(B),"selected ");if(B.className!=""){B.className=(B.className+" selected ").replace(/\s\s+/g," ");if(B.ad>0&&B.fi==null){var D=B.Vl,C=e(D);f(C,"selected ");f(C,"menu-hover ");D.className="selected "}}else if(g.bj==true){D=e(B);B.className="selected ";f(D,"prev-menu")}}if(B.ad>0&&!g.bj){D=B.Vl;C=B.Xt;if(D){D=e(D);f(D,"prev-menu")}else if(C){C=e(C);f(C,"prev-menu")}}if(g.container.onoptionclick!=
1550
- null&&!g.Eq)Db()||B.fi==null&&g.container.onoptionclick(B.qh,Lc(B));else if(P=="dspf")if(B.fi==null){D=g.container;if(D.R!=null)if(D.disabled!=true){D.R=B.qh;if(D.F=="true"||D.F=="send data")pui.F=D.F;if(g.Eq)pui.La=g.routine;if(pui.fc()==false){D.R="";pui.La=null;pui.Rc=null;pui.Qc=null}}}}B.oncontextmenu=ua(false);B.onmouseover=function(){B.Ci=true;if(g.Eg!=null&&g.Eg!="")B.style.backgroundColor=g.Eg;else{var D=B.Xt;!D&&B.ad==0&&f(e(B),"prev-menu");if(D&&B.ad>0)if(D.className!=""){var C=D.className.replace("prev-menu",
1551
- "");D.className=C.replace(/\s\s+/g," ")+"prev-menu"}else D.className="prev-menu";if(B.className!=""){D&&B.ad>0&&f(e(B),"prev-menu");D=B.className.replace("menu-hover","");B.className=D.replace(/\s\s+/g," ")+"menu-hover"}else B.className="menu-hover"}if(g.Fg!=null&&g.Fg!="")B.style.color=g.Fg;if(g.vj!=null&&g.vj!=""){B.style.backgroundImage="url('"+g.vj+"')";if(g.repeat!=null&&g.repeat.length>0){B.style.backgroundRepeat=g.repeat;if(g.repeat=="no-repeat")B.style.backgroundPosition="left center"}}else B.style.backgroundImage=
1550
+ null&&!g.Eq)Db()||B.fi==null&&g.container.onoptionclick(B.qh,Lc(B));else if(P=="dspf")if(B.fi==null){D=g.container;if(D.R!=null)if(D.disabled!=true){D.R=B.qh;if(D.F=="true"||D.F=="send data")pui.F=D.F;if(g.Eq)pui.La=g.routine;if(pui.fc()==false){D.R="";pui.La=null;pui.Rc=null;pui.Qc=null}}}}B.oncontextmenu=ua(false);B.onmouseover=function(){B.Ci=true;if(g.Fg!=null&&g.Fg!="")B.style.backgroundColor=g.Fg;else{var D=B.Xt;!D&&B.ad==0&&f(e(B),"prev-menu");if(D&&B.ad>0)if(D.className!=""){var C=D.className.replace("prev-menu",
1551
+ "");D.className=C.replace(/\s\s+/g," ")+"prev-menu"}else D.className="prev-menu";if(B.className!=""){D&&B.ad>0&&f(e(B),"prev-menu");D=B.className.replace("menu-hover","");B.className=D.replace(/\s\s+/g," ")+"menu-hover"}else B.className="menu-hover"}if(g.Gg!=null&&g.Gg!="")B.style.color=g.Gg;if(g.vj!=null&&g.vj!=""){B.style.backgroundImage="url('"+g.vj+"')";if(g.repeat!=null&&g.repeat.length>0){B.style.backgroundRepeat=g.repeat;if(g.repeat=="no-repeat")B.style.backgroundPosition="left center"}}else B.style.backgroundImage=
1552
1552
  B.Bb!=null&&B.Bb!=""?"url('"+B.Bb+"')":"";C=B;var K;D=[];for(K=0;K<h.length;K++)h[K].ad>=C.ad&&D.push(h[K]);for(C=0;C<D.length;C++)g.Wp(D[C]);g.uz(B)};B.onmouseout=function(D){if(!D)D=window.event;var C=D.relatedTarget;if(C==null)C=D.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.ad==null||C.tagName!="TD"||C.Vx!=g.container.id){D=false;if(C!=null){if(C==p)D=true;if(r!=null&&C==r)D=true;if(C.lp)D=true;if(!D){C=
1553
- e(C);var K=e(B);if(C&&C===K)D=true}}D||g.fu()}else if(B.vb!=null){for(D=true;C!=null;){if(B.vb==C){D=false;break}C=C.parentNode}D&&g.Wp(B)}if(g.Fg!=null&&g.Fg!="")B.style.color="";if(B.Bb!=null&&B.Bb!=""){B.style.backgroundImage="url('"+B.Bb+"')";B.style.backgroundRepeat=g.repeat}else B.style.backgroundImage="";if(g.Eg!=null&&g.Eg!=""){B.Ci=false;if(g.animate){var M=function(U){U-=10;if(U<40){if(!B.Ci)B.style.backgroundColor="";B.Ci=true}if(B.Ci)U=100;B.style.filter="alpha(opacity="+U+")";B.style.opacity=
1553
+ e(C);var K=e(B);if(C&&C===K)D=true}}D||g.fu()}else if(B.vb!=null){for(D=true;C!=null;){if(B.vb==C){D=false;break}C=C.parentNode}D&&g.Wp(B)}if(g.Gg!=null&&g.Gg!="")B.style.color="";if(B.Bb!=null&&B.Bb!=""){B.style.backgroundImage="url('"+B.Bb+"')";B.style.backgroundRepeat=g.repeat}else B.style.backgroundImage="";if(g.Fg!=null&&g.Fg!=""){B.Ci=false;if(g.animate){var M=function(U){U-=10;if(U<40){if(!B.Ci)B.style.backgroundColor="";B.Ci=true}if(B.Ci)U=100;B.style.filter="alpha(opacity="+U+")";B.style.opacity=
1554
1554
  U/100;B.Ci||setTimeout(function(){M(U)},60)};M(100)}else B.style.backgroundColor=""}else if(B.className!=""){C=B.className.replace("menu-hover","");B.className=C.replace(/\s\s+/g," ")}else B.className=""};if(pui.is_touch&&!pui.is_mouse_capable&&B.children.length>0)B.addEventListener("touchend",G,false);else B.onclick=G;B.ondblclick=function(D){if(Db()&&B.orientation=="vertical"&&B.ad==0){var C=designUtils.getTarget(D);for(D=C.parentNode;D.tagName!="DIV";)D=D.parentNode;var K=Hb.designer.zh(D);if(!pui.o(K.properties.choices)&&
1555
- !pui.Mb(K.properties.choices)&&typeof C.cs==="number"){K.designer.Kf.Ep=function(M){var U=K.properties.choices;if(U=="")U="Option 1,Option 2,Option 3";U=U.split(",");U[C.cs]=M;U=U.join(",");M=Ac().choices;K.designer.aa.add(K,M.name);Mc(M,K.properties,K.dom,U,true,K,null);K.pb.choices=true;K.nd=true;K.designer.od[K.designer.Na.ub]=true;K.designer.ob.Uh("choices")};K.designer.Kf.show(K,C,"menu")}}}}var m=l.container,r=l.ly;if(m.bk==undefined)m.bk=true;m.innerHTML="";pui.P(m,"pui-menu");l.orientation==
1555
+ !pui.Mb(K.properties.choices)&&typeof C.cs==="number"){K.designer.Lf.Ep=function(M){var U=K.properties.choices;if(U=="")U="Option 1,Option 2,Option 3";U=U.split(",");U[C.cs]=M;U=U.join(",");M=Ac().choices;K.designer.aa.add(K,M.name);Mc(M,K.properties,K.dom,U,true,K,null);K.pb.choices=true;K.nd=true;K.designer.od[K.designer.Na.ub]=true;K.designer.ob.Uh("choices")};K.designer.Lf.show(K,C,"menu")}}}}var m=l.container,r=l.ly;if(m.bk==undefined)m.bk=true;m.innerHTML="";pui.P(m,"pui-menu");l.orientation==
1556
1556
  "horizontal"&&pui.P(m,"pui-horizontal");var p=document.createElement("table"),s=m.style.width;if(s!=null&&s!=""&&l.orientation!="horizontal")p.style.width="100%";p.cellPadding=0;p.cellSpacing=0;s=a(l.Lo);var t,w=g.borderColor;if(w!=""&&w!=null){w=pui.Ft(w);p.style.borderTop="1px solid "+w;p.style.borderLeft="1px solid "+w}for(var z=l.Lo;z<=l.Uu;z++)if(a(z)==s){var y=g.choices[z];if(typeof y=="string")for(;y.substr(0,1)=="-";)y=y.substr(1);var E=g.te[z];if(E==null)E=y;t=t==null||l.orientation=="vertical"?
1557
1557
  p.insertRow(p.rows.length):t;var J=t.insertCell(t.cells.length);if(y==null||y==""||Kb(y)=="")y="&nbsp;";J.innerHTML=y;J.qh=E;J.ad=s;if(Db())J.cs=i;J.Vx=g.container.id;J.orientation=l.orientation;if(J.ad>0)J.Vl=l.ky;J.Xt=l.ty;if(g.padding!=null&&g.padding.length>0)J.style.paddingTop=J.style.paddingBottom=J.style.paddingRight=g.padding;if(g.paddingLeft!=null&&g.paddingLeft.length>0)J.style.paddingLeft=g.paddingLeft;if(w!=""&&w!=null){J.style.borderRight="1px solid "+w;J.style.borderBottom="1px solid "+
1558
1558
  w}if(g.animate){J.style.filter="alpha(opacity=100)";J.style.opacity=1}if(g.Bb!=null&&g.Bb!=""){J.Bb=g.Bb;if(g.wj.length>1)J.Bb=g.wj[z]!=null?g.wj[z]:"";if(J.Bb!="")J.style.backgroundImage="url('"+pui.normalizeURL(J.Bb,true)+"')";if(g.repeat!=null&&g.repeat.length>0){J.style.backgroundRepeat=g.repeat;if(g.repeat=="no-repeat")J.style.backgroundPosition="left center"}}else J.style.backgroundImage="";if(c(z)){J.fi=z+1;J.Cm=z+1;for(y=a(z+1);J.Cm<g.choices.length-1&&a(J.Cm+1)>=y;)J.Cm+=1;if(l.orientation==
1559
1559
  "vertical"){y=document.createElement("img");y.src=pui.normalizeURL("/profoundui/proddata/images/menus/submenu-arrow.gif");y.style.position="absolute";y.style.right="3px";y.style.paddingTop="3px";y.lp=true;E=document.createElement("span");E.innerHTML="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";E.lp=true;J.appendChild(E);J.appendChild(y)}}n(J);t=t}m.appendChild(p)}function a(l){l=g.choices[l];var n=0;if(l==null)return n;for(var m=0;m<l.length;m++)if(l.substr(m,1)=="-")n+=1;else break;return n}function c(l){if(l>=
1560
- g.choices.length-1)return false;if(a(l)+1==a(l+1))return true;return false}function e(l){for(l=l;l;){if(l.tagName=="TABLE")return l;l=l.parentElement}return false}function f(l,n){for(var m=l.getElementsByTagName("td"),r=0;r<m.length;r++){var p=m[r];p.className=p.className.replace(n,"");if(p.className==" ")p.className=""}}var g=this,h=[];this.container=null;this.choices=[];this.te=[];this.Fg=this.Eg=null;this.animate=true;this.bj=false;this.Bb=this.paddingLeft=this.padding=this.borderColor=this.repeat=
1560
+ g.choices.length-1)return false;if(a(l)+1==a(l+1))return true;return false}function e(l){for(l=l;l;){if(l.tagName=="TABLE")return l;l=l.parentElement}return false}function f(l,n){for(var m=l.getElementsByTagName("td"),r=0;r<m.length;r++){var p=m[r];p.className=p.className.replace(n,"");if(p.className==" ")p.className=""}}var g=this,h=[];this.container=null;this.choices=[];this.te=[];this.Gg=this.Fg=null;this.animate=true;this.bj=false;this.Bb=this.paddingLeft=this.padding=this.borderColor=this.repeat=
1561
1561
  null;this.wj=[];this.vj=null;this.orientation="vertical";this.z=function(){b({container:g.container,orientation:g.orientation,Lo:0,Uu:g.choices.length-1})};this.uz=function(l){var n;if(l.fi!=null){for(n=l;n.tagName!="TABLE";)n=n.parentNode;var m=n.parentNode;if(l.vb==null){l.vb=document.createElement("div");l.vb.className=m.className;var r=l.vb.style,p=m.style;r.backgroundColor=p.backgroundColor;r.letterSpacing=p.letterSpacing;r.wordSpacing=p.wordSpacing;r.textAlign=p.textAlign;r.textDecoration=p.textDecoration;
1562
1562
  r.textTransform=p.textTransform;r.fontVariant=p.fontVariant;r.fontWeight=p.fontWeight;r.fontSize=p.fontSize;r.fontFamily=p.fontFamily;r.color=p.color;r.zIndex=p.zIndex;r.position="absolute";if(!pui.na)r.cursor=p.cursor;g.container.parentNode.appendChild(l.vb)}if(l.orientation=="vertical"){l.vb.style.top=m.offsetTop+l.offsetTop+"px";l.vb.style.left=m.offsetLeft+m.offsetWidth-1-(m.offsetWidth-m.clientWidth)+"px"}else{l.vb.style.top=m.offsetTop+l.offsetTop+l.offsetHeight-1+"px";l.vb.style.left=m.offsetLeft+
1563
1563
  l.offsetLeft+"px"}l.vb.style.display="";m.style.display="";m=null;m=l.Vl!=null?l.Vl:l;b({container:l.vb,orientation:"vertical",Lo:l.fi,Uu:l.Cm,ly:n,ky:m,ty:l});n=100;if(l.orientation=="horizontal"&&l.ad==0&&l.offsetWidth>n)n=l.offsetWidth;if(l.vb.offsetWidth<n){l.vb.style.width=n+"px";n=l.vb.firstChild;n.style.width="100%"}m=true;for(n=0;n<h.length;n++)if(h[n]==l){m=false;break}m&&h.push(l)}};this.Wp=function(l){if(l.vb!=null){for(var n=0;n<h.length;n++)if(h[n]==l){h.splice(n,1);break}l.vb.parentNode.removeChild(l.vb);
1564
1564
  l.vb=null}};this.fu=function(){var l,n=[];for(l=0;l<h.length;l++)n.push(h[l]);for(l=0;l<n.length;l++)g.Wp(n[l])}};
1565
- pui.widgets.add({name:"menu",rg:false,defaults:{width:"200px",height:"200px",choices:"Option 1,Option 2,Option 3,Option 4,Option 5",color:"#333366","border color":"#EEEEEE","font family":"Arial","font size":"12px","background color":"#FFFFFF","hover background color":"#6699FF","hover text color":"#FFFFFF",animate:"true"},propertySetters:{"field type":function(b){b.dom.t=new pui.mv;b.dom.t.Eq=pui.cc(b.properties.onoptionclick);if(b.dom.t.Eq)b.dom.t.routine=b.properties.onoptionclick.routine;var a=
1566
- b.evalProperty("choices");b.dom.t.choices=a!=null&&a!=""?pui.ga(a):["Option 1","Option 2","Option 3"];if(pui["onoptionclick value is text"]!==true){a=b.evalProperty("choice values");b.dom.t.te=a!=null&&a!=""?pui.ga(a):[]}b.dom.t.container=b.dom;b.dom.t.Fg=b.properties["hover text color"];b.dom.t.Eg=b.properties["hover background color"];b.dom.t.borderColor=b.properties["border color"];b.dom.t.Bb=b.properties["option image"];b.dom.t.wj=b.dom.t.Bb==null||b.dom.t.Bb==""?[]:pui.ga(b.dom.t.Bb);b.dom.t.vj=
1565
+ pui.widgets.add({name:"menu",sg:false,defaults:{width:"200px",height:"200px",choices:"Option 1,Option 2,Option 3,Option 4,Option 5",color:"#333366","border color":"#EEEEEE","font family":"Arial","font size":"12px","background color":"#FFFFFF","hover background color":"#6699FF","hover text color":"#FFFFFF",animate:"true"},propertySetters:{"field type":function(b){b.dom.t=new pui.mv;b.dom.t.Eq=pui.cc(b.properties.onoptionclick);if(b.dom.t.Eq)b.dom.t.routine=b.properties.onoptionclick.routine;var a=
1566
+ b.evalProperty("choices");b.dom.t.choices=a!=null&&a!=""?pui.ga(a):["Option 1","Option 2","Option 3"];if(pui["onoptionclick value is text"]!==true){a=b.evalProperty("choice values");b.dom.t.te=a!=null&&a!=""?pui.ga(a):[]}b.dom.t.container=b.dom;b.dom.t.Gg=b.properties["hover text color"];b.dom.t.Fg=b.properties["hover background color"];b.dom.t.borderColor=b.properties["border color"];b.dom.t.Bb=b.properties["option image"];b.dom.t.wj=b.dom.t.Bb==null||b.dom.t.Bb==""?[]:pui.ga(b.dom.t.Bb);b.dom.t.vj=
1567
1567
  b.properties["option hover image"];b.dom.t.repeat=b.properties["background repeat"];b.dom.t.padding=b.properties["menu option padding"];b.dom.t.paddingLeft=b.properties["menu option indent"];b.dom.t.animate=b.properties.animate!="false";b.dom.t.bj=b.properties["highlight choice"]=="true"?true:false;a=b.properties.orientation;if(a!="horizontal"&&a!="vertical")a="vertical";b.dom.t.orientation=a;b.dom.t.z()},choices:function(b){if(b.dom.t!=null){var a=b.value;b.dom.t.choices=a!=null&&a!=""?pui.ga(a):
1568
- ["Option 1","Option 2","Option 3"];b.dom.t.z()}},"choice values":function(b){if(b.dom.t!=null){var a=b.value;b.dom.t.te=a!=null&&a!=""?pui.ga(a):[]}},"hover background color":function(b){if(b.dom.t!=null)b.dom.t.Eg=b.value},"hover text color":function(b){if(b.dom.t!=null)b.dom.t.Fg=b.value},animate:function(b){if(b.dom.t!=null){b.dom.t.animate=b.value=="false"?false:true;b.dom.t.z()}},"highligh choice":function(b){if(b.dom.t!=null)b.dom.t.bj=b.value=="true"?true:false},"border color":function(b){if(b.dom.t!=
1568
+ ["Option 1","Option 2","Option 3"];b.dom.t.z()}},"choice values":function(b){if(b.dom.t!=null){var a=b.value;b.dom.t.te=a!=null&&a!=""?pui.ga(a):[]}},"hover background color":function(b){if(b.dom.t!=null)b.dom.t.Fg=b.value},"hover text color":function(b){if(b.dom.t!=null)b.dom.t.Gg=b.value},animate:function(b){if(b.dom.t!=null){b.dom.t.animate=b.value=="false"?false:true;b.dom.t.z()}},"highligh choice":function(b){if(b.dom.t!=null)b.dom.t.bj=b.value=="true"?true:false},"border color":function(b){if(b.dom.t!=
1569
1569
  null){b.dom.t.borderColor=b.value;b.dom.t.z()}},"menu option padding":function(b){if(b.dom.t!=null){b.dom.t.padding=b.value;b.dom.t.z()}},"menu option indent":function(b){if(b.dom.t!=null){b.dom.t.paddingLeft=b.value;b.dom.t.z()}},"option image":function(b){if(b.dom.t!=null){b.dom.t.Bb=b.value;b.dom.t.wj=b.value==null||b.value==""?[]:pui.ga(b.value);b.dom.t.z()}},"option hover image":function(b){if(b.dom.t!=null){b.dom.t.vj=b.value;b.dom.t.z()}},"background repeat":function(b){if(b.dom.t!=null){b.dom.t.repeat=
1570
- b.value;b.dom.t.z()}},orientation:function(b){if(b.dom.t!=null){var a=b.value;if(a!="horizontal"&&a!="vertical")a="vertical";b.dom.t.orientation=a;b.dom.t.z()}}},Gf: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":case "css class":case "css class 2":case "css class 3":case "css class 4":b.dom.t!=
1570
+ b.value;b.dom.t.z()}},orientation:function(b){if(b.dom.t!=null){var a=b.value;if(a!="horizontal"&&a!="vertical")a="vertical";b.dom.t.orientation=a;b.dom.t.z()}}},Hf: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":case "css class":case "css class 2":case "css class 3":case "css class 4":b.dom.t!=
1571
1571
  null&&b.dom.t.z();break}},qc:function(b){b.propertyName.indexOf("css class")===0&&pui.P(b.dom,"pui-menu");b.propertyName==="width"&&b.dom.t!=null&&b.dom.t.z()}});pui.Vr=function(b,a,c){if(!b.design){var e=Lc(b.za);if(e!=null&&e!=""&&b.dom.originalValue==null)b.dom.originalValue=e}pui.la(b.dom);e=a;if(typeof e==="string")e=e.replace(/ /g,"\u00a0");if(c){a=document.createElement("label");a.htmlFor=c;c=document.createTextNode(e);a.appendChild(c);b.dom.appendChild(a)}else b.dom.appendChild(document.createTextNode(e));if(P=="dspf"&&b.design){c=b.properties["overflow x"];if(c==null)c="";a=b.properties["overflow y"];if(a==null)a="";if(b.propertyName=="value"&&pui.o(b.newValue)||
1572
- b.propertyName!="value"&&pui.o(b.properties.value)){if(c=="")b.dom.style.overflowX="hidden";if(a=="")b.dom.style.overflowY="hidden"}else b.dom.style.overflowX=c}b.dom.Uf=pui.Sg;b.dom.destroy=pui.lh};
1572
+ b.propertyName!="value"&&pui.o(b.properties.value)){if(c=="")b.dom.style.overflowX="hidden";if(a=="")b.dom.style.overflowY="hidden"}else b.dom.style.overflowX=c}b.dom.Vf=pui.Tg;b.dom.destroy=pui.lh};
1573
1573
  pui.widgets.add({name:"output field",sd:true,propertySetters:{"field type":function(b){pui.Vr(b,b.evalProperty("value"),b.evalProperty("label for"))},value:function(b){if(b.design||b.properties.value!="script: value")pui.Vr(b,b.value,b.evalProperty("label for"))},"overflow x":function(b){if(P=="dspf"&&b.design&&pui.o(b.properties.value)&&(b.value==""||b.value==null)){b.properties["overflow x"]="";b.dom.style.overflowX="hidden";return false}}}});function ne(b){var a,c=b.properties["show visibility eye"];b=b.dom;var e=document.getElementById(b.id);if(c==="true"){a=document.createElement("i");e.style.zIndex="21";a.id=b.id.replace("Password","PasswordEye");a.classList="pui-fa-solid-icons fa-eye";a.style.top=e.offsetTop+(e.offsetHeight/2-9)+"px";a.style.left=e.offsetLeft+(e.offsetWidth-35)+"px";a.style.fontSize="20px";a.style.color="lightslategray";a.style.zIndex="22";a.style.position="absolute";a.style.cursor="pointer";e.before(a);a.addEventListener("click",
1574
1574
  function(){var f=e.getAttribute("type")==="password"?"text":"password";e.setAttribute("type",f);a.classList.toggle("fa-eye-slash")})}else{c=b.id.replace("Password","PasswordEye");a=document.getElementById(c);if(a!==null){a.remove();e.style.zIndex=""}}}
1575
1575
  function oe(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"}}}
1576
- 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.na&&!pui.Hf){T(b.dom,"focus",function(){Ab("ipadKeyboard").style.display=""});T(b.dom,"blur",function(){Ab("ipadKeyboard").style.display="none"})}if(b.dom.getAttribute("autocomplete")==null&&(P!="genie"||!pui.D.config.mh)){b.dom.setAttribute("autocomplete","off");P=="dspf"&&b.dom.setAttribute("name",pui.Wd())}P==
1576
+ 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.na&&!pui.If){T(b.dom,"focus",function(){Ab("ipadKeyboard").style.display=""});T(b.dom,"blur",function(){Ab("ipadKeyboard").style.display="none"})}if(b.dom.getAttribute("autocomplete")==null&&(P!="genie"||!pui.D.config.mh)){b.dom.setAttribute("autocomplete","off");P=="dspf"&&b.dom.setAttribute("name",pui.Wd())}P==
1577
1577
  "dspf"&&!Db()&&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){oe(b)},left:function(b){oe(b)},width:function(b){oe(b)},height:function(b){oe(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.Wd()):b.dom.removeAttribute("name")}},"show visibility eye":function(b){if(b.properties["parent tab"]===
1578
- undefined){b.properties["show visibility eye"]=b.value;ne(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.k!=null&&b.dom&&b.dom.k==null&&pui.zg(b.dom)}});pui.widgets.add({name:"radio button",tag:"input",inputType:"radio",np:"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.Ur(b.dom,a)}if(P=="dspf"){var c=b.evalProperty("value");a=b.evalProperty("radio button group");
1578
+ undefined){b.properties["show visibility eye"]=b.value;ne(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.k!=null&&b.dom&&b.dom.k==null&&pui.Ag(b.dom)}});pui.widgets.add({name:"radio button",tag:"input",inputType:"radio",np:"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.Ur(b.dom,a)}if(P=="dspf"){var c=b.evalProperty("value");a=b.evalProperty("radio button group");
1579
1579
  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 g=b.dom.nextSibling,h=g.nextSibling;if(g.nt==true&&h&&h.type=="radio"){f.preventDefault();h.focus()}break;case f.keyCode==9&&f.shiftKey==
1580
1580
  true:g=b.dom.previousSibling;h=g.previousSibling;if(g.nt==true&&h&&h.type=="radio"){f.preventDefault();h.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.Iy){if(b.dom.Iy.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.Qd)b.dom.Qd.style.visibility="hidden"}}}},visibility:function(b){if(!b.design&&b.dom.Qd)b.dom.Qd.style.visibility=
1581
1581
  b.value=="hidden"?"hidden":""},"css class":function(b){if(b.design&&b.d.label){b.d.label.className="label-for";var a=Kb(b.value.split(" ")[0]);a!=""&&pui.P(b.d.label,"label-for-"+a)}}}});pui.rp=function(b,a,c){b=pui.ga(b);var e=pui.ga(a);c.choices={};for(var f=0;f<b.length;f++){var g=b[f],h=e[f];if(h==null||a=="")h=g;if(c.tagName=="SELECT"){var l=new Option(g,h);c.options[c.options.length]=l}c.choices[h]=g}};
1582
1582
  pui.Zh=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=Kb(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],g=0;g<c.length;g++)if(c[g]==f.value){f.selected=true;break}}}};
1583
- pui.widgets.add({name:"select box",tag:"select",menuName:["Dropdown Box","List Box"],propertySetters:{"field type":function(b){var a;if(b.dom.tagName=="SELECT")b.dom.options.length=0;b.dom.choices={};a=b.evalProperty("choices url");if(a!=""&&!b.design){var c=new pui.Ajax(pui.mf(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=Ib(c,"Generate Dropdown Box Options");if(p){for(var s=0;s<p.length;s++){var t=p[s];if(b.dom.tagName==
1583
+ pui.widgets.add({name:"select box",tag:"select",menuName:["Dropdown Box","List Box"],propertySetters:{"field type":function(b){var a;if(b.dom.tagName=="SELECT")b.dom.options.length=0;b.dom.choices={};a=b.evalProperty("choices url");if(a!=""&&!b.design){var c=new pui.Ajax(pui.nf(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=Ib(c,"Generate Dropdown Box Options");if(p){for(var s=0;s<p.length;s++){var t=p[s];if(b.dom.tagName==
1584
1584
  "SELECT")try{if(t!=null&&t.nodeType!="OPTION"&&t.text!=null&&t.value!=null)t=new Option(t.text,t.value);b.dom.add(t)}catch(w){b.dom.add(t,null)}b.dom.choices[t.value]=t.text}pui.Zh(b.evalProperty("value"),b.dom)}};if(b.dom.tagName=="SELECT"){b.dom.options.length=0;b.dom.options[0]=new Option(pui.getLanguageText("runtimeMsg","loading"),"");b.dom.isLoading=true}c.send()}else if(b.evalProperty("choices database file")!=""){if(!b.design){var e=b.evalProperty("max choices"),f=b.evalProperty("choices database file"),
1585
1585
  g=pui.Ah(b.evalProperty("choice options field")),h=b.evalProperty("choice values field");if(h==null||h=="")h=g[0];a=b.evalProperty("choices selection criteria");var l=pui.Ah(b.evalProperty("order by"));if(l[0]!="")for(var n=0;n<l.length;n++){var m=l[n];pui.oe(g,m)==-1&&g.push(m)}h=g[0]+", "+h;g.splice(0,1);if(g.length>0)h+=", "+g.join();f="SELECT DISTINCT "+h+" FROM "+f;if(a&&a!="")f+=" WHERE "+a;if(l[0]!="")f+=" ORDER BY "+l.join();a=Vb("PUI0009103.PGM");var r=new pui.Ajax(a);r.method="post";r.async=
1586
- true;r.suppressAlert=true;if(pui.Z)r.postData="AUTH="+pui.Z;else{r.postData="AUTH="+pui.appJob.auth;if(typeof pui.vId!=="undefined")r.postData+="&VID="+pui.vId}if(pui.secLevel>0){r.postData+="&q="+encodeURIComponent(pui.$c(b.dom));a=pui.rd(b.properties);if(a!="")r.postData+="&"+a}else r.postData+="&q="+pui.yb.xf(f);if(pui.isCloud)r.postData+="&workspace_id="+pui.cloud.ws.id;if(e!=null&&e!="")r.postData+="&maxcount="+encodeURIComponent(e);if(pui["read db driven data as ebcdic"]!==true)r.postData+=
1586
+ true;r.suppressAlert=true;if(pui.Z)r.postData="AUTH="+pui.Z;else{r.postData="AUTH="+pui.appJob.auth;if(typeof pui.vId!=="undefined")r.postData+="&VID="+pui.vId}if(pui.secLevel>0){r.postData+="&q="+encodeURIComponent(pui.$c(b.dom));a=pui.rd(b.properties);if(a!="")r.postData+="&"+a}else r.postData+="&q="+pui.yb.yf(f);if(pui.isCloud)r.postData+="&workspace_id="+pui.cloud.ws.id;if(e!=null&&e!="")r.postData+="&maxcount="+encodeURIComponent(e);if(pui["read db driven data as ebcdic"]!==true)r.postData+=
1587
1587
  "&UTF8=Y";r.onsuccess=function(){var p=b.evalProperty("ondbload");if(typeof p!="string"||p=="")p=null;var s=Ib(r,"Generate Dropdown Box Options");if(b.dom.tagName=="SELECT")b.dom.options.length=0;if(s){if(b.properties["blank option"]=="true"){var t=b.evalProperty("blank option label");if(t==null)t="";if(b.dom.tagName=="SELECT")b.dom.options[0]=new Option(t,"")}for(t=0;t<s.length;t++){var w=s[t];if(b.dom.tagName=="SELECT")try{if(w!=null&&w.nodeType!="OPTION"&&w.text!=null&&w.value!=null)w=new Option(w.text,
1588
- w.value);b.dom.add(w)}catch(z){b.dom.add(w,null)}b.dom.choices[w.value]=w.text}pui.Zh(b.evalProperty("value"),b.dom);p&&pui.yf(p,true,b.dom.id);b.dom.isLoading=false}else p&&pui.yf(p,false,b.dom.id)};if(b.dom.tagName=="SELECT"){b.dom.options.length=0;b.dom.options[0]=new Option(pui.getLanguageText("runtimeMsg","loading"),"");b.dom.isLoading=true}r.send()}}else{e=b.evalProperty("choices");a=b.evalProperty("choice values");pui.rp(e,a,b.dom);pui.Zh(b.evalProperty("value"),b.dom)}},value:function(b){pui.Zh(b.value,
1588
+ w.value);b.dom.add(w)}catch(z){b.dom.add(w,null)}b.dom.choices[w.value]=w.text}pui.Zh(b.evalProperty("value"),b.dom);p&&pui.zf(p,true,b.dom.id);b.dom.isLoading=false}else p&&pui.zf(p,false,b.dom.id)};if(b.dom.tagName=="SELECT"){b.dom.options.length=0;b.dom.options[0]=new Option(pui.getLanguageText("runtimeMsg","loading"),"");b.dom.isLoading=true}r.send()}}else{e=b.evalProperty("choices");a=b.evalProperty("choice values");pui.rp(e,a,b.dom);pui.Zh(b.evalProperty("value"),b.dom)}},value:function(b){pui.Zh(b.value,
1589
1589
  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.rp(a,c,b.dom);pui.Zh(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.rp(a,b.value,b.dom);
1590
- pui.Zh(b.evalProperty("value"),b.dom)}},"select box height":function(b){if(b.design&&pui.is_old_ie&&pui.ie_mode==6){var a=Ac();Mc(a["field type"],b.properties,b.dom,"select box",b.design,b.d,b.ou)}}}});pui.Slider=function(){this.u=null;this.orientation="horizontal";this.value=2;this.minValue=0;this.maxValue=10;this.If=1;this.disabled=this.readOnly=this.design=false;var b=this,a,c,e,f=pui.is_touch&&!pui.is_mouse_capable||pui.na;this.init=function(){function g(h){function l(z){var y=Yc(z)-s,E=Xc(z)-p,J=b.maxValue-b.minValue,B=0;B=m?a.clientHeight:a.clientWidth;y=J*(((m?w+y:t+E)-(m?a.offsetTop:a.offsetLeft)+(m?c.clientHeight/2:c.clientWidth/2))/B)+b.minValue;if(y<b.minValue)y=b.minValue;if(y>b.maxValue)y=
1590
+ pui.Zh(b.evalProperty("value"),b.dom)}},"select box height":function(b){if(b.design&&pui.is_old_ie&&pui.ie_mode==6){var a=Ac();Mc(a["field type"],b.properties,b.dom,"select box",b.design,b.d,b.ou)}}}});pui.Slider=function(){this.u=null;this.orientation="horizontal";this.value=2;this.minValue=0;this.maxValue=10;this.Jf=1;this.disabled=this.readOnly=this.design=false;var b=this,a,c,e,f=pui.is_touch&&!pui.is_mouse_capable||pui.na;this.init=function(){function g(h){function l(z){var y=Yc(z)-s,E=Xc(z)-p,J=b.maxValue-b.minValue,B=0;B=m?a.clientHeight:a.clientWidth;y=J*(((m?w+y:t+E)-(m?a.offsetTop:a.offsetLeft)+(m?c.clientHeight/2:c.clientWidth/2))/B)+b.minValue;if(y<b.minValue)y=b.minValue;if(y>b.maxValue)y=
1591
1591
  b.maxValue;y=b.dq(y);if(y!=b.value){b.setValue(y);b.u.modified=true;pui.Ze(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(z)}r&&z.preventDefault()}function n(){if(r){Zb(document,"touchmove",l);Zb(document,"touchend",n)}else{Zb(document,"mousemove",l);Zb(document,"mouseup",n)}}if(!b.readOnly)if(!b.disabled){var m=b.orientation=="vertical",r=false;if(h!=null&&h.touches!=null){if(h.touches.length!=1)return;r=true}var p=
1592
1592
  Xc(h),s=Yc(h),t=parseInt(c.offsetLeft),w=parseInt(c.offsetTop);if(r){T(document,"touchmove",l);T(document,"touchend",n)}else{T(document,"mousemove",l);T(document,"mouseup",n)}ub(h);return false}}a=document.createElement("div");a.className="bar";if(!b.design&&P=="genie"){e=Xb("input",b.u.name);e.type="hidden";document.forms.main.appendChild(e)}c=document.createElement("div");c.className="handle";b.u.onselectstart=ua(false);a.onselectstart=ua(false);c.onselectstart=ua(false);T(c,"mousedown",g);T(c,
1593
- "touchstart",g);b.u.appendChild(a);b.u.appendChild(c);b.z();pui.Vg.push(b)};this.dq=function(g,h){var l=b.If/2;if(h==true)l=0;l=parseInt((g+b.minValue+l)/b.If)*b.If-b.minValue;return l=Math.round(l*1E6)/1E6};this.z=function(){pui.P(b.u,"slider");f&&!b.design&&pui.P(b.u,"touch");pui.ca(b.u,b.orientation=="vertical"?"horizontal":"vertical");pui.P(b.u,b.orientation);b.setValue(b.value)};this.Gq=function(){if(isNaN(b.If))b.If=1;if(b.If<=0)b.If=1;if(isNaN(b.minValue))b.minValue=0;if(isNaN(b.maxValue))b.maxValue=
1593
+ "touchstart",g);b.u.appendChild(a);b.u.appendChild(c);b.z();pui.$e.push(b)};this.dq=function(g,h){var l=b.Jf/2;if(h==true)l=0;l=parseInt((g+b.minValue+l)/b.Jf)*b.Jf-b.minValue;return l=Math.round(l*1E6)/1E6};this.z=function(){pui.P(b.u,"slider");f&&!b.design&&pui.P(b.u,"touch");pui.ca(b.u,b.orientation=="vertical"?"horizontal":"vertical");pui.P(b.u,b.orientation);b.setValue(b.value)};this.Gq=function(){if(isNaN(b.Jf))b.Jf=1;if(b.Jf<=0)b.Jf=1;if(isNaN(b.minValue))b.minValue=0;if(isNaN(b.maxValue))b.maxValue=
1594
1594
  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.dq(b.value);b.u.value=b.value;if(!b.design&&P=="genie")e.value=b.value};this.setValue=function(g){g=Number(g);if(isNaN(g))g=b.minValue;if(g<b.minValue)g=b.minValue;if(g>b.maxValue)g=b.dq(b.maxValue,true);var h=b.maxValue-b.minValue,l=b.orientation=="vertical",n=0,m=0;n=l?a.clientHeight:a.clientWidth;m=l?c.clientHeight/2:c.clientWidth/2;h=parseInt(n/h*(g-b.minValue)-m)+10;if(isNaN(h))h=
1595
1595
  0;if(l){c.style.top=h+"px";c.style.left=""}else{c.style.left=h+"px";c.style.top=""}b.value=g;b.u.value=g;if(!b.design&&P=="genie")e.value=b.value};this.destroy=function(){if(b!=null)b=e=c=a=b.u=null}};
1596
1596
  pui.widgets.add({name:"slider",defaults:{width:"150px",height:"20px"},propertySetters:{"field type":function(b){if(b.dom.T==null)b.dom.T=new pui.Slider;b.dom.T.u=b.dom;b.dom.T.design=b.design;b.dom.T.value=b.evalProperty("value");b.dom.T.init()},value:function(b){b.dom.T!=null&&b.dom.T.setValue(b.value)},orientation:function(b){if(b.dom.T!=null){b.dom.T.orientation=b.value;b.dom.T.z()}},"min value":function(b){if(!b.design&&b.dom.T!=null){b.dom.T.minValue=Number(b.value);b.dom.T.maxValue=Number(b.evalProperty("max value"));
1597
- b.dom.T.value=Number(b.evalProperty("value"));b.dom.T.Gq();b.dom.T.z()}},"max value":function(b){if(!b.design&&b.dom.T!=null){b.dom.T.maxValue=Number(b.value);b.dom.T.minValue=Number(b.evalProperty("min value"));b.dom.T.value=Number(b.evalProperty("value"));b.dom.T.Gq();b.dom.T.z()}},"increment value":function(b){if(!b.design&&b.dom.T!=null){b.dom.T.If=Number(b.value);b.dom.T.value=Number(b.evalProperty("value"));b.dom.T.Gq();b.dom.T.z()}},"read only":function(b){if(b.dom.T!=null&&!b.design)b.dom.T.readOnly=
1597
+ b.dom.T.value=Number(b.evalProperty("value"));b.dom.T.Gq();b.dom.T.z()}},"max value":function(b){if(!b.design&&b.dom.T!=null){b.dom.T.maxValue=Number(b.value);b.dom.T.minValue=Number(b.evalProperty("min value"));b.dom.T.value=Number(b.evalProperty("value"));b.dom.T.Gq();b.dom.T.z()}},"increment value":function(b){if(!b.design&&b.dom.T!=null){b.dom.T.Jf=Number(b.value);b.dom.T.value=Number(b.evalProperty("value"));b.dom.T.Gq();b.dom.T.z()}},"read only":function(b){if(b.dom.T!=null&&!b.design)b.dom.T.readOnly=
1598
1598
  b.value==true||b.value=="true"?true:false},disabled:function(b){if(b.dom.T!=null&&!b.design)b.dom.T.disabled=b.value==true||b.value=="true"?true:false},width:function(b){b.dom.style.width=b.value;b.dom.T!=null&&b.dom.T.z()},height:function(b){b.dom.style.height=b.value;b.dom.T!=null&&b.dom.T.z()}},qc:function(b){b.propertyName.indexOf("css class")===0&&b.dom.T!=null&&b.dom.T.z()}});pui.nv=function(){function b(){var p=c.container.offsetWidth;if(p==0){p=parseInt(c.container.style.width);if(isNaN(p))p=0;p+=2}return onPoint=c.Km?parseInt((p+3)/2):p-6}function a(p){if(!c.readOnly)if(!c.disabled)if(!c.designMode)if(!r){c.toggle(true);c.Zj(p)}}this.container=null;this.readOnly=this.disabled=false;this.Km=this.Pd=true;this.designMode=false;var c=this,e=document.createElement("label"),f=document.createElement("span"),g=document.createElement("label"),h=document.createElement("span"),
1599
1599
  l=document.createElement("div"),n=document.createElement("div"),m=document.createElement("div"),r=false;this.init=function(){function p(s){function t(B){r=true;var G=J+Xc(B)-E;if(G<0)G=0;if(G>z)G=z;c.Kp(G);y&&B.preventDefault()}function w(B){if(y){Zb(document,"touchmove",t);Zb(document,"touchend",w)}else{Zb(document,"mousemove",t);Zb(document,"mouseup",w)}var G=Math.abs(J-parseInt(l.style.left)),D=c.container.offsetWidth;if(D==0){D=parseInt(c.container.style.width);if(isNaN(D))D=0;D+=2}D=D/2;if(c.Km)D=
1600
1600
  D/2-4;if(r){if(G<=5||G>=D){c.toggle(true);c.Zj(B)}else c.refresh(true);setTimeout(function(){r=false},0)}}if(!c.readOnly)if(!c.disabled)if(!c.designMode){var z=b(),y=false;if(s!=null&&s.touches!=null){if(s.touches.length!=1)return;y=true}var E=Xc(s),J=parseInt(l.style.left);if(y){T(document,"touchmove",t);T(document,"touchend",w)}else{T(document,"mousemove",t);T(document,"mouseup",w)}ub(s);return false}}e.className="off-label";f.innerHTML="OFF";e.appendChild(f);g.className="on-label";h.innerHTML=
@@ -1613,16 +1613,16 @@ b.offsetTop;if(isNaN(p))p=0;l.style.left=r+n-15+"px";p+=9;p+=parseInt((m-18)/2);
1613
1613
  "";l.style.visibility=""};this.Ou=function(n){if(!b.disabled)if(!b.readOnly){var m=Number(b.value);if(isNaN(m))m=0;m+=n;m=Math.round(m*1E4)/1E4;if(a!=null&&m<a)m=a;if(c!=null&&m>c)m=c;var r=Number(b.getAttribute("maxLength"));if(r!=null&&!isNaN(r)&&r>0){if(r==1&&m<0)m=0;if(String(m).length>r)return}r=b.onspin;if(r!=null){n=r(b.value,n,b,m);if(typeof n=="string"||typeof n=="number")m=n}b.value=m;b.modified=true;pui.Ze(b);if(P=="genie"&&b.B!=null&&b.B.idx!=null)pui.response[b.B.idx]=b;pui.se(b)}};this.lq=
1614
1614
  function(n){var m=b.className.split(" ").indexOf("PR")>-1;if(n==null){h.className="input pui-spinner-up-arrow-input";l.className="input pui-spinner-down-arrow-input"}else{h.className="input pui-spinner-up-arrow-input spinner-up-arrow-"+n;l.className="input pui-spinner-down-arrow-input spinner-down-arrow-"+n}if(m){h.className+=" PR";l.className+=" PR"}};g.lq();this.setDisabled=function(){if(b.disabled){h.setAttribute("disabled","true");l.setAttribute("disabled","true")}else{h.removeAttribute("disabled");
1615
1615
  l.removeAttribute("disabled")}}};
1616
- pui.widgets.add({name:"spinner",tag:"input",Jp:pui.normalizeURL("/profoundui/proddata/images/up.gif"),Qt:pui.normalizeURL("/profoundui/proddata/images/down.gif"),dt:"input pui-spinner-up-arrow-input",IA:"input pui-spinner-down-arrow-input",Pt:true,VA: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.d;a.wh();a.Kg()};else{if(b.dom.Ec==undefined){b.dom.Ec=new pui.rv(b.dom,b.evalProperty("min value"),
1616
+ pui.widgets.add({name:"spinner",tag:"input",Jp:pui.normalizeURL("/profoundui/proddata/images/up.gif"),Qt:pui.normalizeURL("/profoundui/proddata/images/down.gif"),dt:"input pui-spinner-up-arrow-input",IA:"input pui-spinner-down-arrow-input",Pt:true,VA: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.d;a.wh();a.Lg()};else{if(b.dom.Ec==undefined){b.dom.Ec=new pui.rv(b.dom,b.evalProperty("min value"),
1617
1617
  b.evalProperty("max value"),b.evalProperty("increment value"),!b.design);b.dom.sizeMe=function(){b.dom.Ec.Lp()}}if(b.dom.getAttribute("autocomplete")==null&&(P!="genie"||!pui.D.config.mh)){b.dom.setAttribute("autocomplete","off");P=="dspf"&&b.dom.setAttribute("name",pui.Wd())}}if(b.design)b.dom.readOnly=true;b.dom.me=true},value:function(b){b.dom.value=b.value},disabled:function(b){!b.design&&b.dom.Ec&&b.dom.Ec.setDisabled()},visibility:function(b){if(!b.design&&b.dom.Ec)b.value=="hidden"?b.dom.Ec.hide():
1618
1618
  b.dom.Ec.show()},"css class":function(b){var a,c;c=b.value.split(" ").shift();if(!b.design&&b.dom.Ec)b.dom.Ec.lq(c);else{var e=b.d.Dx,f=b.d.HA;if(c==null){a="input pui-spinner-up-arrow-input "+c;c="input pui-spinner-down-arrow-input "+c}else{a="input pui-spinner-up-arrow-input spinner-up-arrow-"+c;c="input pui-spinner-down-arrow-input spinner-down-arrow-"+c}b.dom["icon1 class"]=a;b.dom["icon2 class"]=c;e.className=a;f.className=c}},"browser auto complete":function(b){if(!b.design){b.dom.setAttribute("autocomplete",
1619
- b.value);if(P=="dspf")b.value=="off"?b.dom.setAttribute("name",pui.Wd()):b.dom.removeAttribute("name")}}},qc:function(b){if(b.propertyName=="field type"&&b.za&&b.za.k!=null&&b.dom&&b.dom.k==null){for(var a=b.za.Jb,c=0;c<a.length;++c)a[c].parentNode&&a[c].parentNode.removeChild(a[c]);pui.zg(b.dom);b.dom.Ec.lq()}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"},
1619
+ b.value);if(P=="dspf")b.value=="off"?b.dom.setAttribute("name",pui.Wd()):b.dom.removeAttribute("name")}}},qc:function(b){if(b.propertyName=="field type"&&b.za&&b.za.k!=null&&b.dom&&b.dom.k==null){for(var a=b.za.Jb,c=0;c<a.length;++c)a[c].parentNode&&a[c].parentNode.removeChild(a[c]);pui.Ag(b.dom);b.dom.Ec.lq()}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"},
1620
1620
  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,
1621
1621
  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",
1622
1622
  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,
1623
1623
  textColor:"#ffffff",hiColor:"#000000",editBackgroundColor:"#c054c0"},"Flash Style":{left:5,right:5,top:5,bottom:5,hasOverState:false,hasClickState:false,editBackgroundColor:"#efefef"},"Blue Gel":{left:23,right:23,top:10,bottom:10,hasOverState:false,hasClickState:false,textColor:"#ffffff",editBackgroundColor:"#3072ee",width:125},"Red Gel":{left:23,right:23,top:10,bottom:10,hasOverState:false,hasClickState:false,textColor:"#ffffff",editBackgroundColor:"#ec352f",width:125},"Brown Gel":{left:23,right:23,
1624
1624
  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}};
1625
- 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.Lf=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);
1625
+ 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.Mf=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);
1626
1626
  a=pui.widgets.buttonStyles[a].textColor;if(a!=null)c.dom.button.l.style.color=a;if(b["font size"]!=null)c.dom.button.l.style.fontSize=b["font size"];if(b["font family"]!=null)c.dom.button.l.style.fontFamily=b["font family"];if(b["font weight"]!=null)c.dom.button.l.style.fontWeight=b["font weight"];if(b["text align"]!=null)c.dom.button.l.style.textAlign=b["text align"];return c.dom};
1627
1627
  pui.widgets.ak=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.Sd.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.Sd.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+
1628
1628
  e+"middle"+c+".png', sizingMethod='scale')";a.gb.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+e+"right"+c+".png', sizingMethod='scale')";a.Xa.style.backgroundImage="url('"+e+"bottomleft"+c+".png')";a.Ya.style.backgroundImage="url('"+e+"bottommiddle"+c+".png')";a.Za.style.backgroundImage="url('"+e+"bottomright"+c+".png')";b=pui.widgets.buttonStyles[b];if(b!=null&&b.pw!=true){a=function(f){(new Image).src=e+f+".png"};if(b.hasOverState==true&&c!="-hi"){a("topleft-hi");a("topmiddle-hi");
@@ -1639,7 +1639,7 @@ l,b.dom.offsetWidth,b.dom.offsetHeight,b)};b.dom.style.textAlign="center";if(b.p
1639
1639
  g.ya.style.position="absolute";g.ya.style.padding="0px";g.ya.style.margin="0px";g.kb.style.position="absolute";g.kb.style.padding="0px";g.kb.style.margin="0px";g.Ra.style.position="absolute";g.Ra.style.padding="0px";g.Ra.style.margin="0px";g.db.style.position="absolute";g.db.style.padding="0px";g.db.style.margin="0px";g.Sd.style.position="absolute";g.Sd.style.padding="0px";g.Sd.style.margin="0px";g.gb.style.position="absolute";g.gb.style.padding="0px";g.gb.style.margin="0px";g.Xa.style.position="absolute";
1640
1640
  g.Xa.style.padding="0px";g.Xa.style.margin="0px";g.Ya.style.position="absolute";g.Ya.style.padding="0px";g.Ya.style.margin="0px";g.Za.style.position="absolute";g.Za.style.padding="0px";g.Za.style.margin="0px";g.ya.style.top="0px";g.ya.style.left="0px";g.ya.style.backgroundRepeat="no-repeat";g.kb.style.top="0px";g.kb.style.backgroundRepeat="repeat-x";g.Ra.style.top="0px";g.Ra.style.backgroundRepeat="no-repeat";g.db.style.left="0px";g.Xa.style.left="0px";g.Xa.style.backgroundRepeat="no-repeat";g.Ya.style.backgroundRepeat=
1641
1641
  "repeat-x";g.Za.style.backgroundRepeat="no-repeat";g.l.style.position="absolute";g.l.style.verticalAlign="middle";g.l.style.display="";g.l.style.overflow="hidden";g.l.onselectstart=ua(false);if(typeof g.l.style.MozUserSelect!="undefined")g.l.style.MozUserSelect="none";g.l.style.textAlign="center";if(b.properties["text align"]!=null)g.l.style.textAlign=b.properties["text align"];if(b.properties["font family"]!=null)g.l.style.fontFamily=b.properties["font family"];if(b.properties.color!=null)g.l.style.color=
1642
- b.properties.color;if(b.properties["font size"]!=null)g.l.style.fontSize=b.properties["font size"];if(b.properties["font weight"]!=null)g.l.style.fontWeight=b.properties["font weight"];b.Lf!=true&&T(b.dom,"mouseover",a);b.Lf!=true&&T(b.dom,"mouseout",c);b.Lf!=true&&T(b.dom,"mousedown",e);if(b.Lf!=true){T(b.dom,"mouseup",f);T(b.dom,"touchend",f);T(b.dom,"mouseleave",f)}b.dom.appendChild(g.ya);b.dom.appendChild(g.kb);b.dom.appendChild(g.Ra);b.dom.appendChild(g.db);b.dom.appendChild(g.Sd);b.dom.appendChild(g.gb);
1642
+ b.properties.color;if(b.properties["font size"]!=null)g.l.style.fontSize=b.properties["font size"];if(b.properties["font weight"]!=null)g.l.style.fontWeight=b.properties["font weight"];b.Mf!=true&&T(b.dom,"mouseover",a);b.Mf!=true&&T(b.dom,"mouseout",c);b.Mf!=true&&T(b.dom,"mousedown",e);if(b.Mf!=true){T(b.dom,"mouseup",f);T(b.dom,"touchend",f);T(b.dom,"mouseleave",f)}b.dom.appendChild(g.ya);b.dom.appendChild(g.kb);b.dom.appendChild(g.Ra);b.dom.appendChild(g.db);b.dom.appendChild(g.Sd);b.dom.appendChild(g.gb);
1643
1643
  b.dom.appendChild(g.Xa);b.dom.appendChild(g.Ya);b.dom.appendChild(g.Za);b.dom.appendChild(g.l);b.dom.button=g;var h=b.value;b.value=b.properties["button style"];pui.widgets["styled button"].propertySetters["button style"](b);b.value=h;b.dom.button.l.innerHTML=b.evalProperty("value")},"button style":function(b){var a;a=b.value;var c=pui.widgets.buttonStyles[a];if(c==null){a=pui.widgets.Be()[0];c=pui.widgets.buttonStyles[a]}pui.normalizeURL("/profoundui/proddata/images/buttons/"+a+"/");b.dom.button.Jk=
1644
1644
  a;var e=b.dom.button;pui.widgets.ak(a,e,"");e.l.className="styled-button "+a.split(" ").join("-").toLowerCase()+"-button";pui.widgets.jm(e,c,b.properties.width,b.properties.height)},value:function(b){b.dom.button.l.innerHTML=b.value},width:function(b){var a;b.dom.style.width=pui.ej(b.value)?b.value+"px":b.value;a=b.properties["button style"];a=pui.widgets.buttonStyles[a];if(a==null){a=pui.widgets.Be()[0];a=pui.widgets.buttonStyles[a]}pui.widgets.jm(b.dom.button,a,b.value,b.properties.height,b)},height:function(b){var a;
1645
1645
  b.dom.style.height=pui.ej(b.value)?b.value+"px":b.value;a=b.properties["button style"];a=pui.widgets.buttonStyles[a];if(a==null){a=pui.widgets.Be()[0];a=pui.widgets.buttonStyles[a]}pui.widgets.jm(b.dom.button,a,b.properties.width,b.value,b)},color:function(b){b.dom.button.l.style.color=b.value},"font family":function(b){b.dom.button.l.style.fontFamily=b.value},"font size":function(b){b.dom.button.l.style.fontSize=b.value},"font style":function(b){b.dom.button.l.style.fontStyle=b.value},"font variant":function(b){b.dom.button.l.style.fontVariant=
@@ -1648,14 +1648,14 @@ hiUnderline:true,selBold:true,separated:true,borderColor:"#5977b3"},Glow:{useIma
1648
1648
  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},
1649
1649
  CSS:{useImages:false,Mz:false}};pui.widgets.ry=function(b){var a=pui.widgets.tabStyles[b];if(a!=null)if(a.sy!=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.sy=true}};
1650
1650
  function pe(){function b(){if(h.A.scrollLeft>0)h.A.scrollLeft-=t;else{clearInterval(m);p.style.display="none"}s.style.display="inline-block";w++;if(w>0&&w%5==0)t+=n}function a(){if(h.A.scrollLeft<h.A.scrollWidth-h.A.offsetWidth)try{h.A.scrollLeft+=t}catch(B){}else{clearInterval(r);s.style.display="none"}p.style.display="inline-block";w++;if(w>0&&w%5==0)t+=n}function c(){t=l;w=0;m=setInterval(b,42)}function e(){t=l;w=0;r=setInterval(a,42)}function f(){clearInterval(m)}function g(){clearInterval(r)}
1651
- this.vc="Tab 1,Tab 2,Tab 3";this.$g="The tab cannot be removed because it contains other elements that must be removed first.";var h=this,l=Number(pui["tabpanel scroll speed"]);if(isNaN(l)||l<1)l=5;var n=Number(pui["tabpanel scroll acceleration"]);if(isNaN(n)||n<0)n=1;var m=null,r=null,p=null,s=null,t=5,w=0;this.Fd=0;this.Bk=true;this.ef={};var z,y,E,J;this.rn=0;this.defaults={};this.defaults.fontFamily="arial";this.defaults.fontSize="12px";this.defaults.color="#333366";this.ib=[];this.selectedTab=
1652
- 0;this.container=null;this.Ic="#eeeeff";this.kc="Simple";this.A=null;this.bt=function(B){var G=false;if(this.selectedTab==B){if(!this.om){for(var D=-1,C=0,K=this.ib.length;C<K;C++)if(C!=B&&this.ef[C]!==true){D=C;break}if(D!=-1){this.selectedTab=D;G=this.ef[B]=true}}}else G=this.ef[B]=true;G&&this.Xc()};this.Ju=function(B){h.ef[B]=false;h.Xc()};this.setTab=function(B){if(h.selectedTab!=B){h.selectedTab=B;if(h.ef[B])h.ef[B]=false;h.Np(B)}};this.getTab=function(){return h.selectedTab};this.refresh=function(){h.setTab(h.selectedTab)};
1651
+ this.vc="Tab 1,Tab 2,Tab 3";this.$g="The tab cannot be removed because it contains other elements that must be removed first.";var h=this,l=Number(pui["tabpanel scroll speed"]);if(isNaN(l)||l<1)l=5;var n=Number(pui["tabpanel scroll acceleration"]);if(isNaN(n)||n<0)n=1;var m=null,r=null,p=null,s=null,t=5,w=0;this.Fd=0;this.Bk=true;this.ff={};var z,y,E,J;this.rn=0;this.defaults={};this.defaults.fontFamily="arial";this.defaults.fontSize="12px";this.defaults.color="#333366";this.ib=[];this.selectedTab=
1652
+ 0;this.container=null;this.Ic="#eeeeff";this.kc="Simple";this.A=null;this.bt=function(B){var G=false;if(this.selectedTab==B){if(!this.om){for(var D=-1,C=0,K=this.ib.length;C<K;C++)if(C!=B&&this.ff[C]!==true){D=C;break}if(D!=-1){this.selectedTab=D;G=this.ff[B]=true}}}else G=this.ff[B]=true;G&&this.Xc()};this.Ju=function(B){h.ff[B]=false;h.Xc()};this.setTab=function(B){if(h.selectedTab!=B){h.selectedTab=B;if(h.ff[B])h.ff[B]=false;h.Np(B)}};this.getTab=function(){return h.selectedTab};this.refresh=function(){h.setTab(h.selectedTab)};
1653
1653
  this.zu=function(){var B=pui.widgets.tabStyles[h.kc];if(B!=null&&B.defaultBackColor!=null)h.Ic=B.defaultBackColor};this.Xc=function(){h.z()};this.z=function(){function B(N){N=(P=="dspf"&&!aa?pui.runtimeContainer:document.getElementById(Ea)).getElementsByTagName(N);for(var ha=0;ha<N.length;ha++){var ba=N[ha];if(ba.Va!=null&&ba.eb!=null&&ba.Va==h.container.id){if(ba.eb==h.selectedTab){ba.style.visibility="";applyProperty(ba,"visibility","");if(ba.grid&&ba.grid.setProperty)ba.grid.g||!ba.grid.Xe?ba.grid.show():
1654
1654
  ba.grid.hide();!Db()&&ba.pui.properties["field type"]=="chart"&&!ba.chart&&applyProperty(ba,"field type","chart")}else{ba.style.visibility="hidden";applyProperty(ba,"visibility","hidden");ba.grid&&ba.grid.setProperty&&ba.grid.hide();ba.G!=null&&ba.G.hide()}if(aa&&ba.tagName=="INPUT"&&(ba.type=="text"||pui.rl(ba.type)||ba.type=="checkbox"||ba.type=="radio"))Hb.designer.zh(ba).wh()}}}var G;if(h.kc==null||h.kc=="")h.kc="Simple";z=pui.widgets.tabStyles[h.kc];if(z==null)z=pui.widgets.tabStyles.Simple;
1655
1655
  y=pui.normalizeURL("/profoundui/proddata/images/tabs/"+h.kc.toLowerCase()+"/");E=z.imageFileExtension;if(E==null)E="gif";if(E.substr(0,1)==".")E=E.substr(1);J="#aaaaaa";if(z.borderColor!=null)J=z.borderColor;h.container.innerHTML="";h.container.style.backgroundColor="";if(z.Mz!==false){if(!h.container.style.fontFamily)h.container.style.fontFamily=h.defaults.fontFamily;if(!h.container.style.fontSize)h.container.style.fontSize=h.defaults.fontSize;if(!h.container.style.color)h.container.style.color=
1656
1656
  h.defaults.color}G=7;if(z.useImages)G=1;h.A=document.createElement("div");h.A.className="header-area";h.A.style.position="absolute";h.A.style.left="0px";h.A.style.top="0px";h.A.style.height=z.height+G+1+"px";h.A.style.padding="0px";h.A.style.whiteSpace="nowrap";h.A.style.overflow="hidden";if(z.backBar){h.container.style.overflowX="hidden";h.container.style.overflowY="hidden";if(z.backBarColor!=null)h.A.style.backgroundColor=z.backBarColor;else{h.A.style.backgroundImage="url("+y+"middle."+E+")";h.A.style.backgroundRepeat=
1657
1657
  "repeat-x"}}h.A.style.width="100%";var D=document.createElement("div");D.style.position="absolute";D.style.left="0px";D.style.top=z.height+G+"px";D.className="content-area";var C=h.container.style.width,K=0;if(typeof C=="string"&&C!=""&&!isNaN(C))C+="px";if(C!=null&&C!=""&&C.length>=3&&C.substr(C.length-2)=="px"){K=parseInt(C);if(isNaN(K))K=0;K+=2}else K=h.container.offsetWidth;C=h.container.style.height;if(typeof C=="string"&&C!=""&&!isNaN(C))C+="px";var M=0;if(C!=null&&C!=""&&C.length>=3&&C.substr(C.length-
1658
- 2)=="px"){M=parseInt(C);if(isNaN(M))M=0;M+=2}else M=h.container.offsetHeight;D.style.height=Math.abs(M-z.height-G-4)+"px";D.style.width=Math.abs(K-4)+"px";G=1;if(z.borderSize)G=z.borderSize;D.style.border=G+"px solid "+J;D.style.backgroundColor=h.Ic;for(K=0;K<h.ib.length;K++){G=document.createElement("span");G.style.display="inline-block";if(this.ef[K])G.style.display="none";if(K==h.selectedTab){if(h.container.className!="")G.className=h.container.className.split(" ")[0]+"-";G.className+="selected-tab"}if(z.leftWidth!=
1658
+ 2)=="px"){M=parseInt(C);if(isNaN(M))M=0;M+=2}else M=h.container.offsetHeight;D.style.height=Math.abs(M-z.height-G-4)+"px";D.style.width=Math.abs(K-4)+"px";G=1;if(z.borderSize)G=z.borderSize;D.style.border=G+"px solid "+J;D.style.backgroundColor=h.Ic;for(K=0;K<h.ib.length;K++){G=document.createElement("span");G.style.display="inline-block";if(this.ff[K])G.style.display="none";if(K==h.selectedTab){if(h.container.className!="")G.className=h.container.className.split(" ")[0]+"-";G.className+="selected-tab"}if(z.leftWidth!=
1659
1659
  null){var U=document.createElement("span");U.style.backgroundImage="url("+y+"left"+(K==h.selectedTab?"-sel":"")+"."+E+")";U.style.backgroundRepeat="no-repeat";U.style.height=z.height+2+"px";U.style.width=z.leftWidth+"px";U.style.cssFloat="left";U.style.styleFloat="left";U.style.display="inline-block"}if(z.rightWidth!=null){var da=document.createElement("span");da.style.backgroundImage="url("+y+"right"+(K==h.selectedTab?"-sel":"")+"."+E+")";da.style.backgroundRepeat="no-repeat";da.style.height=z.height+
1660
1660
  2+"px";da.style.width=z.rightWidth+"px";da.style.cssFloat="left";da.style.styleFloat="left";da.style.display="inline-block"}C=document.createElement("span");C.Aa=K;C.innerHTML=h.ib[K];C.style.display="block";C.style.cssFloat="left";C.style.styleFloat="left";C.style.height=z.height+"px";C.style.lineHeight=z.height+"px";C.setAttribute("isTab","true");C.style.display="inline-block";if(z.useImages){C.style.backgroundImage="url("+y+"middle"+(K==h.selectedTab?"-sel":"")+"."+E+")";C.style.backgroundRepeat=
1661
1661
  "repeat-x";M=1;if(z.leftMargin)M=z.leftMargin;U.style.marginLeft=M+"px";U.style.paddingTop="2px";C.style.padding="2px 0.5em";da.style.paddingTop="2px";if(K!=h.selectedTab)C.style.cursor="pointer";else{if(z.separated!=true){U.style.backgroundColor=h.Ic;da.style.backgroundColor=h.Ic;C.style.backgroundColor=h.Ic;if((this.kc=="Glass"||this.kc=="Delicate"||this.kc=="Classic")&&K==h.selectedTab){U.style.backgroundSize="cover";da.style.backgroundSize="cover";U.style.backgroundColor="";da.style.backgroundColor=
@@ -1665,8 +1665,8 @@ h.A.childNodes[h.selectedTab];h.Fd=Math.round(G.offsetLeft-h.A.offsetWidth/2+G.o
1665
1665
  h.om==true){G.R=B;if(G.F=="true"||G.F=="send data")pui.F=G.F;if(h.aq)pui.tb=h.aq;if(pui.fc()==false){G.R=null;h.selectedTab=h.rn}}else{h.Xc();if(P=="dspf"&&h.nm==true)G.R=B}};this.Ez=function(B){B=tb(B);if(B.Aa==null&&B.parentNode.Aa!=null)B=B.parentNode;if(B.Aa!=h.selectedTab){if(z.useImages&&z.hiImages){B.style.backgroundImage="url("+y+"middle-hi."+E+")";B.previousSibling.style.backgroundImage="url("+y+"left-hi."+E+")";B.nextSibling.style.backgroundImage="url("+y+"right-hi."+E+")"}if(z.hiColor!=
1666
1666
  null)B.style.color=z.hiColor;if(z.hiUnderline==true)B.style.textDecoration="underline"}};this.Dz=function(B){B=tb(B);if(B.Aa==null&&B.parentNode.Aa!=null)B=B.parentNode;if(B.Aa!=h.selectedTab){if(z.useImages&&z.hiImages){B.style.backgroundImage="url("+y+"middle."+E+")";B.previousSibling.style.backgroundImage="url("+y+"left."+E+")";B.nextSibling.style.backgroundImage="url("+y+"right."+E+")"}if(z.hiColor!=null)B.style.color="";if(z.hiUnderline==true)B.style.textDecoration=""}};this.Cz=function(B){B=
1667
1667
  B.target;h.Fd=B.parentNode.parentNode.scrollLeft;if(B.Aa==null&&B.parentNode.Aa!=null)B=B.parentNode;B=B.Aa;if(h.container.ontabclick!=null)if(h.container.ontabclick(B)==false)return;if(h.container.Qu!=null){var G=h.container.Qu.split(",");if(G.length-1>=B){G=G[B];G=Kb(G);if(G!=""){Ub(G);return}}}h.rn=h.selectedTab;G=false;if(h.selectedTab!=B)G=true;if(G)h.selectedTab=B;if(Db()){var D=Hb.designer.selection;D.Yd.length>1&&D.clear()}G&&h.Np(B)};this.Ru=function(B){if(Db()){var G=B.target;if(G.Aa==null&&
1668
- G.parentNode.Aa!=null)G=G.parentNode;var D=G.parentNode.parentNode.parentNode,C=Hb.designer.zh(D);if(!pui.o(C.properties["tab names"])&&!pui.Mb(C.properties["tab names"])){C.designer.Kf.Ep=function(K){var M,U=G.Aa;M=C.properties["tab names"];if(M==""||M==null)M=h.vc;M=pui.ga(M);M[U]=K;M=M.join(",");K=Ac()["tab names"];C.designer.aa.add(C,K.name);Mc(K,C.properties,C.dom,M,true,C,null);C.pb["tab names"]=true;C.nd=true;C.designer.od[C.designer.Na.ub]=true;C.designer.ob.Uh("tab names");G=D=C=C.designer.Kf.Ep=
1669
- null};C.designer.Kf.show(C,G,"tab")}}};this.Yv=function(){var B=Hb.designer.zh(h.container),G=B.properties["tab names"];if(!pui.Mb(G)){if(pui.o(G)){var D=G.designValue;if(D==null||D=="")D=h.vc;D=pui.ga(D);D.push("Tab "+(D.length+1));G.designValue=D.join(",")}else{if(G==""||G==null)G=h.vc;G=pui.ga(G);G.push("New Tab");G=G.join(",")}D=!pui.o(G)&&!pui.Mb(G)?pui.ga(G):pui.ga(G.designValue);h.selectedTab=D.length-1;if(h.A)h.Fd=h.A.scrollWidth;D=Ac()["tab names"];B.designer.aa.start("Add New Tab");B.designer.aa.add(B,
1668
+ G.parentNode.Aa!=null)G=G.parentNode;var D=G.parentNode.parentNode.parentNode,C=Hb.designer.zh(D);if(!pui.o(C.properties["tab names"])&&!pui.Mb(C.properties["tab names"])){C.designer.Lf.Ep=function(K){var M,U=G.Aa;M=C.properties["tab names"];if(M==""||M==null)M=h.vc;M=pui.ga(M);M[U]=K;M=M.join(",");K=Ac()["tab names"];C.designer.aa.add(C,K.name);Mc(K,C.properties,C.dom,M,true,C,null);C.pb["tab names"]=true;C.nd=true;C.designer.od[C.designer.Na.ub]=true;C.designer.ob.Uh("tab names");G=D=C=C.designer.Lf.Ep=
1669
+ null};C.designer.Lf.show(C,G,"tab")}}};this.Yv=function(){var B=Hb.designer.zh(h.container),G=B.properties["tab names"];if(!pui.Mb(G)){if(pui.o(G)){var D=G.designValue;if(D==null||D=="")D=h.vc;D=pui.ga(D);D.push("Tab "+(D.length+1));G.designValue=D.join(",")}else{if(G==""||G==null)G=h.vc;G=pui.ga(G);G.push("New Tab");G=G.join(",")}D=!pui.o(G)&&!pui.Mb(G)?pui.ga(G):pui.ga(G.designValue);h.selectedTab=D.length-1;if(h.A)h.Fd=h.A.scrollWidth;D=Ac()["tab names"];B.designer.aa.start("Add New Tab");B.designer.aa.add(B,
1670
1670
  D.name);Mc(D,B.properties,B.dom,G,true,B,null);B.pb["tab names"]=true;B.nd=true;B.designer.od[B.designer.Na.ub]=true;B.designer.selection.clear();B.designer.selection.add(B);B.designer.ob.refresh()}};this.Ly=function(){var B=Hb.designer.zh(h.container),G=B.properties["tab names"],D;if(!pui.Mb(G)){if(pui.o(G)){var C=G.designValue;if(C==null||C=="")C=h.vc;G.designValue=C;D=pui.ga(C)}else{if(G==""||G==null)G=h.vc;D=pui.ga(G)}if(D.length>1)if(h.qi(D.length-1,B)){B.designer.selection.clear();B.designer.selection.add(B);
1671
1671
  B.designer.ob.refresh();h.selectedTab=D.length-1;h.Xc();pui.alert(h.$g)}else{D.pop();C=h.selectedTab;if(h.selectedTab>D.length-1)h.selectedTab=D.length-1;if(pui.o(G)||pui.Mb(G))G.designValue=D.join(",");else G=D.join(",");D=Ac()["tab names"];B.designer.aa.start("Remove Tab");B.designer.aa.add(B,D.name);Mc(D,B.properties,B.dom,G,true,B,null);B.pb["tab names"]=true;B.nd=true;B.designer.od[B.designer.Na.ub]=true;B.designer.ob.Uh("tab names");if(B.dom.Ja!=null&&B.dom.Ja==h)h.selectedTab=C}}};this.qi=
1672
1672
  function(B,G){for(var D=0;D<G.designer.items.length;D++){var C=G.designer.items[D].dom;if(C.Va!=null&&C.eb!=null&&C.Va==h.container.id)if(C.eb==B)return true}return false};this.Br=function(){p=h.ri("left");s=h.ri("right");if(Db())s.style.right="35px";p.onmousedown=c;p.ontouchstart=c;p.onmouseup=f;p.ontouchend=f;p.onmouseout=p.onmouseup;p.ey=p.onmouseup;s.onmousedown=e;s.ontouchstart=e;s.onmouseup=g;s.ontouchend=g;s.onmouseout=s.onmouseup;s.ey=s.onmouseup;h.container.appendChild(p);h.container.appendChild(s)};
@@ -1674,7 +1674,7 @@ this.wk=function(){var B=h.A.scrollWidth-h.A.offsetWidth;if(B-h.Fd<=3)h.Fd=B;els
1674
1674
  C.style.height=z.height+2+"px";C.style.width=z.leftWidth+"px"}if(z.rightWidth!=null){var K=document.createElement("span");K.className="edge";K.style.backgroundImage="url("+y+"right"+D+E+")";K.style.height=z.height+2+"px";K.style.width=z.rightWidth+"px"}B=document.createElement("span");B.className="mid";B.style.height=z.height+"px";if(z.useImages){B.style.backgroundImage="url("+y+"middle"+D+E+")";B.style.backgroundRepeat="repeat-x";D=1;if(z.leftMargin)D=z.leftMargin;C.style.marginLeft=D+"px";B.style.padding=
1675
1675
  z.height-17+"px 0.5em 0px";if(z.separated!=true){C.style.backgroundColor=h.Ic;K.style.backgroundColor=h.Ic;B.style.backgroundColor=h.Ic;if(this.kc=="Glass"||this.kc=="Delicate"||this.kc=="Classic"){C.style.backgroundSize="cover";K.style.backgroundSize="cover";C.style.backgroundColor="";K.style.backgroundColor="";C.style.height=z.height+"px";K.style.height=z.height+"px"}}if(z.selColor!=null)B.style.color=z.selColor;if(z.selBold==true)B.style.fontWeight="bold"}else{B.style.marginLeft="3px";B.style.padding=
1676
1676
  "3px 0.5em";B.style.borderTop="1px solid "+J;B.style.borderLeft="1px solid "+J;B.style.borderRight="1px solid "+J;B.style.borderBottom="1px solid "+h.Ic;B.style.backgroundColor=pui["tabpanel scroll unsel style"]!=true?h.Ic:z.defaultTabColor?z.defaultTabColor:"#B7C8F6"}z.leftWidth!=null&&G.appendChild(C);G.appendChild(B);z.rightWidth!=null&&G.appendChild(K);return G}}pe.prototype=Object.create(pui.tc.prototype);
1677
- pui.widgets.add({name:"tab panel",rg:false,container: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 pe;var a=b.evalProperty("tab names");b.dom.tabPanel.ib=a!=null&&a!=""?pui.ga(a):["Tab 1","Tab 2","Tab 3"];b.dom.tabPanel.selectedTab=0;b.dom.tabPanel.container=b.dom;b.dom.tabPanel.kc=b.properties["tab panel style"];
1677
+ pui.widgets.add({name:"tab panel",sg:false,container: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 pe;var a=b.evalProperty("tab names");b.dom.tabPanel.ib=a!=null&&a!=""?pui.ga(a):["Tab 1","Tab 2","Tab 3"];b.dom.tabPanel.selectedTab=0;b.dom.tabPanel.container=b.dom;b.dom.tabPanel.kc=b.properties["tab panel style"];
1678
1678
  if(b.design&&pui.o(b.dom.tabPanel.kc))b.dom.tabPanel.kc="Simple";if(b.properties["background color"]==null||b.properties["background color"]=="")b.dom.tabPanel.zu();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.bt.bind(a);b.dom.showTab=a.Ju.bind(a)}},"tab names":function(b){if(b.dom.tabPanel!=null){var a=b.value;b.dom.tabPanel.ib=a!=null&&a!=""?pui.ga(a):["Tab 1",
1679
1679
  "Tab 2","Tab 3"];if(P=="genie"||b.design)b.dom.tabPanel.z()}},"tab keys":function(b){b.dom.Qu=b.value},"tab panel style":function(b){b.dom.tabPanel.kc=b.value;if(b.properties["background color"]==null||b.properties["background color"]=="")b.dom.tabPanel.zu();if(P=="genie"||b.design)b.dom.tabPanel.z();pui.widgets.ry(b.value)},width:function(b){b.design&&pui.Fh(b.value)&&b.dom.tabPanel.z()},height:function(b){b.design&&pui.Fh(b.value)&&b.dom.tabPanel.z()},"response AID":function(b){if(b.dom.tabPanel)b.dom.tabPanel.aq=
1680
1680
  b.value}}});pui.xB=function(b){function a(K){try{return K.replace(/(?<!\n)\n(?!\n)/g,"")}catch(M){return K.replace(/([^\n])\n([^\n])/g,"$1$2")}}function c(K){if(m.Xd[K].B.DBCSDataType&&m.Xd[K].B.DBCSDataType=="G")return t[K].length;return md(t[K])}function e(){if(w>=r.length-1)return false;w++;t.push("");return true}function f(K){if(K>=48&&K<=90)return true;if(K>=96&&K<=111)return true;if(K>=186&&K<=192)return true;if(K>=219&&K<=222)return true;if(K==32)return true;return false}function g(K,M,U){if(K.setSelectionRange){K.focus();
@@ -1689,18 +1689,18 @@ true;b.returnValue=false}var D;if(m.Xd!=null&&m.Xd[0]!=null&&m.Xd[0].B!=null&&m.
1689
1689
  t[l];if(l!=w&&t[l+1]!==undefined){n+="\n";if(n.length-1<z&&J!="paste"&&1)z+=1}}G=m.value.replace(/\r/g,"");if(J=="keydown"&&!m.hs&&m.selectionStart===m.selectionEnd&&f(E))if(t.length>=r.length&&D!=null){var C=true;for(l=D;l<r.length;l++)if(t[l].length<r[l]){C=false;break}if(C){b.preventDefault&&b.preventDefault();b.stopPropagation&&b.stopPropagation();b.cancelBubble=true;b.returnValue=false;return}}if(n!==G&&m.Xd[0]!=null&&(J==="paste"||E===8||E===13)){m.value=n;g(m,z,z)}if(n!=G&&!m.Xd){m.value=n;
1690
1690
  g(m,z,z)}}}};
1691
1691
  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.Mt)b.dom.Mt=b.za.Mt;if(b.za.Xd)b.dom.Xd=b.za.Xd;if(b.za.jj)b.dom.jj=b.za.jj;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.rq=false;if(P=="dspf"&&!Db())T(b.dom,"click",function(a){if(pui["highlight on focus"]){a.target.focus();a.target.select()}});
1692
- else if(typeof pui["allow spellcheck"]=="boolean")b.dom.rq=pui["allow spellcheck"]},value:function(b){b.dom.value=b.value}},qc:function(b){b.propertyName=="field type"&&b.za&&b.za.k!=null&&b.dom&&b.dom.k==null&&pui.zg(b.dom);b.dom&&b.dom.k!=null&&pui.yp(b)}});pui.fe=function(b){this.dom=b.dom;this.dom.value=b.evalProperty("value");this.design=b.design;this.vi=b.evalProperty("prompt icon");if(!this.design){pui.dw(b.properties,b.originalValue,this.dom);if(pui.na&&!pui.Hf&&this.dom.id.indexOf(".")==-1){this.dom.addEventListener("focus",this);this.dom.addEventListener("blur",this)}if(typeof pui["allow spellcheck"]=="boolean")this.dom.rq=pui["allow spellcheck"];this.dom.calimg&&pui.Tp(this.dom);if(this.dom.getAttribute("autocomplete")==null&&(P!="genie"||!pui.D.config.mh)){this.dom.setAttribute("autocomplete",
1692
+ else if(typeof pui["allow spellcheck"]=="boolean")b.dom.rq=pui["allow spellcheck"]},value:function(b){b.dom.value=b.value}},qc:function(b){b.propertyName=="field type"&&b.za&&b.za.k!=null&&b.dom&&b.dom.k==null&&pui.Ag(b.dom);b.dom&&b.dom.k!=null&&pui.yp(b)}});pui.fe=function(b){this.dom=b.dom;this.dom.value=b.evalProperty("value");this.design=b.design;this.vi=b.evalProperty("prompt icon");if(!this.design){pui.dw(b.properties,b.originalValue,this.dom);if(pui.na&&!pui.If&&this.dom.id.indexOf(".")==-1){this.dom.addEventListener("focus",this);this.dom.addEventListener("blur",this)}if(typeof pui["allow spellcheck"]=="boolean")this.dom.rq=pui["allow spellcheck"];this.dom.calimg&&pui.Tp(this.dom);if(this.dom.getAttribute("autocomplete")==null&&(P!="genie"||!pui.D.config.mh)){this.dom.setAttribute("autocomplete",
1693
1693
  "off");P=="dspf"&&this.dom.setAttribute("name",pui.Wd())}}if(this.design){this.dom.readOnly=true;this.dom.rq=false;var a=b.d;this.d=a;a.Yl=null;if(this.vi)a.Yl=this.vi;this.dom.sizeMe=this.Qv;this.dom.id=b.properties.id}else if(this.vi)this.dom.sizeMe=this.Pv;if(P=="dspf"&&!this.design)if(b.properties&&typeof b.properties==="object"){["height","width","left","top"].forEach(function(e){if(Object.prototype.hasOwnProperty.call(b.properties,e))if(typeof b.properties[e]!=="function")this.dom.style[e]=
1694
1694
  b.properties[e];else b.properties[e].call(this.dom)},this);this.dom.style.position=b.properties.position&&b.properties.position!==""?b.properties.position:"absolute";if(b.properties.id&&b.properties.id!=="")this.dom.id=b.properties.id;if(b.properties&&b.properties["css class"]!==null){var c=b.properties;Object.keys(c).filter(function(e){return e.startsWith("css class")&&c[e]!==null&&c[e]!==""}).forEach(function(e){e=c[e].split(" ");for(var f=0;f<e.length;f++)e[f]&&e[f].trim()!==""&&this.dom.classList.add(e[f])},
1695
- this)}}this.dom.me=true;P=="dspf"&&!Db()&&pui.Lm.push(this);P=="dspf"&&!Db()&&this.dom.addEventListener("click",this);this.dom.destroy=this.yv.bind(this);this.dom.Uf=pui.Sg};pui.fe.prototype=Object.create(pui.tc.prototype);pui.fe.prototype.Pv=function(){pui.xp(this)};pui.fe.prototype.Qv=function(){var b=this.d;if(b){b.wh();b.Kg()}};
1695
+ this)}}this.dom.me=true;P=="dspf"&&!Db()&&pui.Lm.push(this);P=="dspf"&&!Db()&&this.dom.addEventListener("click",this);this.dom.destroy=this.yv.bind(this);this.dom.Vf=pui.Tg};pui.fe.prototype=Object.create(pui.tc.prototype);pui.fe.prototype.Pv=function(){pui.xp(this)};pui.fe.prototype.Qv=function(){var b=this.d;if(b){b.wh();b.Lg()}};
1696
1696
  pui.fe.prototype.yv=function(){var b=this.dom;b.removeAttribute("autocomplete");b.removeAttribute("name");b.removeAttribute("type");b.style="";var a=b.Ph;if(a){a.parentNode&&a.parentNode.removeChild(a);pui.la(a);pui.pd(a)}if(Array.isArray(b.Jb))for(;b.Jb.length>0;)if(a=b.Jb.pop()){a.parentNode&&a.parentNode.removeChild(a);pui.la(a);pui.pd(a)}pui.gu(b);b.removeEventListener("click",this);b.removeEventListener("focus",this);b.removeEventListener("blur",this);b.zb&&typeof b.zb.destroy==="function"&&
1697
- b.zb.destroy();pui.la(b);pui.pd(b);this.Kc()};pui.fe.prototype.handleEvent=function(b){switch(b.type){case "click":if(pui["highlight on focus"]){b.target.focus();b.target.select()}break;case "focus":Ab("ipadKeyboard").style.display="";break;case "blur":Ab("ipadKeyboard").style.display="none";break}};pui.fe.prototype.setProperty=function(b){switch(b.propertyName){case "field type":b.za&&b.za.k!=null&&b.dom&&b.dom.k==null&&pui.zg(b.dom);break}b.dom&&b.dom.k!=null&&pui.yp(b)};
1697
+ b.zb.destroy();pui.la(b);pui.pd(b);this.Kc()};pui.fe.prototype.handleEvent=function(b){switch(b.type){case "click":if(pui["highlight on focus"]){b.target.focus();b.target.select()}break;case "focus":Ab("ipadKeyboard").style.display="";break;case "blur":Ab("ipadKeyboard").style.display="none";break}};pui.fe.prototype.setProperty=function(b){switch(b.propertyName){case "field type":b.za&&b.za.k!=null&&b.dom&&b.dom.k==null&&pui.Ag(b.dom);break}b.dom&&b.dom.k!=null&&pui.yp(b)};
1698
1698
  function qe(b,a){var c,e=document.createElement("div");c=a.evalProperty("prompt icon");e.classList.add("pui-prompt");for(var f=0;f<a.dom.classList.length;f++)e.classList.add("pui-prompt-"+a.dom.classList[f]);if(c.substr(0,9)==="material:"){c=c.substr(9);e.innerText=Kb(c);e.classList.add("pui-material-icons")}else if(c.substr(0,12)==="fontAwesome:"){c=Kb(c.substr(12));e.classList.add("pui-fa-icons fa-"+c);e.innerText=""}else{f=[{type:"material",title:"Material Icons",classList:{"":"pui-material-icons"}},
1699
1699
  {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)f=pui.customIconList.icons;c=c.split(":");var g=c.shift().split("-"),h=g.pop();g=g.join("-");var l=c.pop();f.every(function(n){var m=n.classList[h];
1700
1700
  if(g===n.type){n=(m+l).split(" ");for(m=0;m<n.length;m++)e.classList.add(n[m]);pui.la(e);pui.pd(e);return false}return true})}e.iy=a.dom;e.onclick=b.wy;a.dom.parentNode.appendChild(e);a.dom.Ph=e;a.dom.Jb=[e];pui.xp(a.dom)}pui.fe.prototype.wy=function(){var b=this.iy;typeof b.onprompt==="function"&&b.onprompt(b.value)};
1701
1701
  pui.fe.prototype.Vt=function(){if(this.vi&&!this.design){qe(this,{dom:this.dom,evalProperty:function(b){if(b==="prompt icon")return this.vi;return null}.bind(this)});this.dom&&this.dom.sizeMe&&this.dom.sizeMe()}};
1702
1702
  pui.widgets.add({name:"textbox",tag:"input",newId:"TextBox",defaults:{"css class":"input"},Pt:true,dt:"pui-prompt",propertySetters:{"field type":function(b){b.dom.Gm!=null&&b.dom.destroy();b.dom.Gm=new pui.fe(b)},value:function(b){if(b.dom.Pr)b.dom.Pr=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",
1703
- pui.Wd()):b.dom.removeAttribute("name")}},"choices url":function(b){!b.design&&b.dom&&b.dom.zb&&typeof b.dom.zb.av==="function"&&b.dom.zb.av(b.value)},"prompt icon":function(b){var a=b.value;if(b.design){b=b.d;b.Yl=null;if(a)b.Yl=a;b.wh();b.Kg()}},visibility:function(b){if(b.dom.Ph)b.dom.Ph.style.visibility=b.value==="hidden"?"hidden":""},"css class":function(b){b.design&&b.d.wh()}},qc:function(b){b.dom&&b.dom.Gm&&typeof b.dom.Gm.setProperty==="function"&&b.dom.Gm.setProperty(b)}});
1703
+ pui.Wd()):b.dom.removeAttribute("name")}},"choices url":function(b){!b.design&&b.dom&&b.dom.zb&&typeof b.dom.zb.av==="function"&&b.dom.zb.av(b.value)},"prompt icon":function(b){var a=b.value;if(b.design){b=b.d;b.Yl=null;if(a)b.Yl=a;b.wh();b.Lg()}},visibility:function(b){if(b.dom.Ph)b.dom.Ph.style.visibility=b.value==="hidden"?"hidden":""},"css class":function(b){b.design&&b.d.wh()}},qc:function(b){b.dom&&b.dom.Gm&&typeof b.dom.Gm.setProperty==="function"&&b.dom.Gm.setProperty(b)}});
1704
1704
  pui.xp=function(b){var a=b.Ph;if(a){if(b.parentNode&&b.parentNode.k)b=b.parentNode;var c=b.style.left;c=c!=null&&typeof c=="string"&&c.length>=3&&c.substr(c.length-2,2)=="px"?parseInt(c):b.offsetLeft;if(isNaN(c))c=0;var e;e=b.style.top;e=e!=null&&typeof e=="string"&&e.length>=3&&e.substr(e.length-2,2)=="px"?parseInt(e):b.offsetTop;if(isNaN(e))e=0;a.style.left=c+b.offsetWidth+6+"px";e+=parseInt((b.offsetHeight-18)/2);e-=4;if(pui.is_quirksmode)e-=1;a.style.top=e+"px";a.style.zIndex=b.style.zIndex;a.style.visibility=
1705
1705
  b.style.visibility;a.style.filter=b.style.filter;a.style.opacity=b.style.opacity}};pui.widgets.panelStyles={Simple:{left:10,right:10,top:33,bottom:9,background:"#bad3e9",textBackground:"#004eae",textTopPadding:"7px"},Evergreen:{left:10,right:10,top:30,bottom:30,background:"#edeef0",textBackground:"#288e28",textTopPadding:"7px"},Ruby:{left:6,right:6,top:25,bottom:25,background:"#e1e0e0",textBackground:"#cc3333",textTopPadding:"7px",fontSize:"14px"},Sapphire:{left:9,right:9,top:30,bottom:30,background:"#edeef0",textBackground:"#2570cb",textTopPadding:"7px"},Polished:{left:10,right:10,
1706
1706
  top:30,bottom:30,background:"#edeef0",textBackground:"#4f6592",textTopPadding:"7px"},Contemporary:{left:6,right:6,top:28,bottom:28,background:"#a7a9ac",textBackground:"#387adc",textTopPadding:"7px"},Slate:{left:11,right:11,top:30,bottom:30,background:"#a5a7ac",textBackground:"#3568ce",textTopPadding:"7px"},Smoke:{left:11,right:11,top:34,bottom:34,background:"#7a7a7b",textBackground:"#7479a0",textTopPadding:"10px"},Pine:{left:6,right:6,top:25,bottom:25,background:"#d2d2d2",textBackground:"#288e28",
@@ -1708,14 +1708,14 @@ textTopPadding:"7px"},"Ice Blue":{left:10,right:10,top:13,bottom:13,background:"
1708
1708
  noTitle:true},Harvest:{left:8,right:8,top:18,bottom:18,background:"#e68b2c",textBackground:"#e68b2c",textTopPadding:"7px",noTitle:true},"Professional Dialog":{left:8,right:8,top:33,bottom:33,background:"#d7e5f7",textBackground:"#0055e5",textTopPadding:"7px",width:400,height:200,dialog:true},"Classic Dialog":{left:10,right:10,top:34,bottom:34,background:"#ffffff",textBackground:"#0d89b8",textTopPadding:"7px",width:400,height:200,dialog:true},"Simple Dialog":{left:4,right:4,top:30,bottom:30,background:"#ebf0f5",
1709
1709
  textBackground:"#bad0ee",textTopPadding:"7px",width:400,height:200,dialog:true},"Polished Dialog":{left:10,right:10,top:44,bottom:44,background:"#ffffff",textBackground:"#f1f3f3",textTopPadding:"7px",width:400,height:200,dialog:true},"Modern Dialog":{left:13,right:13,top:70,bottom:70,background:"#e8e7e2",textBackground:"#7d9ccd",textTopPadding:"14px",width:400,height:300,dialog:true},"Glass Dialog":{left:7,right:7,top:44,bottom:44,background:"#ffffff",textBackground:"#d7e5f7",textTopPadding:"7px",
1710
1710
  width:400,height:250,dialog:true},"Crimson Dialog":{left:2,right:2,top:32,bottom:32,background:"#ffffff",textBackground:"#b83c3d",textTopPadding:"7px",width:400,height:200,dialog:true}};pui.widgets.Uk=200;pui.widgets.Tk=100;
1711
- pui.widgets.getPanelProxy=function(b){b=b["panel style"];var a=pui.widgets.panelStyles[b],c={};c.dom=document.createElement("div");c.dom.style.position="relative";c.dom.style.width=pui.widgets.Uk+"px";if(a.width!=null)c.dom.style.width=a.width+"px";c.dom.style.height=pui.widgets.Tk+"px";if(a.height!=null)c.dom.style.height=a.height+"px";c.Lf=true;c.properties={};c.properties.width=pui.widgets.Uk+"px";if(a.width!=null)c.properties.width=a.width;c.properties.height=pui.widgets.Tk+"px";if(a.height!=
1711
+ pui.widgets.getPanelProxy=function(b){b=b["panel style"];var a=pui.widgets.panelStyles[b],c={};c.dom=document.createElement("div");c.dom.style.position="relative";c.dom.style.width=pui.widgets.Uk+"px";if(a.width!=null)c.dom.style.width=a.width+"px";c.dom.style.height=pui.widgets.Tk+"px";if(a.height!=null)c.dom.style.height=a.height+"px";c.Mf=true;c.properties={};c.properties.width=pui.widgets.Uk+"px";if(a.width!=null)c.properties.width=a.width;c.properties.height=pui.widgets.Tk+"px";if(a.height!=
1712
1712
  null)c.properties.height=a.height;c.properties.value="Panel Title";if(a.dialog==true)c.properties.value="Dialog Title";if(a.noTitle==true)c.properties.value="";c.properties["panel style"]=b;c.evalProperty=function(e){return c.properties[e]};pui.widgets.panel.propertySetters["field type"](c);if(a.textColor!=null)c.dom.panel.l.style.color=a.textColor;if(a.textAlign!=null)c.dom.panel.l.style.textAlign=a.textAlign;if(a.fontSize!=null)c.dom.panel.l.style.fontSize=a.fontSize;c.dom.style.color=c.dom.panel.l.style.color;
1713
1713
  c.dom.style.textAlign=c.dom.panel.l.style.textAlign;c.dom.style.fontSize=c.dom.panel.l.style.fontSize;return c.dom};
1714
1714
  pui.widgets.im=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=pui.widgets.Uk;if(typeof e!="number")e=parseInt(e);if(isNaN(e))e=pui.widgets.Tk;var g=0,h=false;if(typeof f!="undefined"&&typeof f.design!="undefined")h=
1715
1715
  f.design;if(pui.is_touch&&!pui.is_mouse_capable&&!h)g=1;h=false;if(e<a.top+a.bottom){e=a.top+a.bottom;b.l.parentNode.style.height=e+"px";h=true}if(c<a.left+a.right){c=a.left+a.right;b.l.parentNode.style.width=c+"px";h=true}h&&f!=null&&f.design==true&&f.d.designer.selection.Fj();b.ya.style.width=a.left+"px";b.ya.style.height=a.top+"px";b.kb.style.left=a.left-g+"px";b.kb.style.height=a.top+"px";b.kb.style.width=c-a.left-a.right+g*2+"px";b.Ra.style.left=c-a.right+"px";b.Ra.style.height=a.top+"px";b.Ra.style.width=
1716
1716
  a.right+"px";b.db.style.top=a.top-g+"px";b.db.style.width=a.left+"px";b.db.style.height=e-a.top-a.bottom+g*2+"px";b.dc.style.left=a.left-g+"px";b.dc.style.top=a.top-g+"px";b.dc.style.width=c-a.left-a.right+g*2+"px";b.dc.style.height=e-a.top-a.bottom+g*2+"px";b.gb.style.left=c-a.right+"px";b.gb.style.top=a.top-g+"px";b.gb.style.width=a.right+"px";b.gb.style.height=e-a.top-a.bottom+g*2+"px";b.Xa.style.top=e-a.bottom+"px";b.Xa.style.width=a.left+"px";b.Xa.style.height=a.bottom+"px";b.Ya.style.left=a.left-
1717
1717
  g+"px";b.Ya.style.top=e-a.bottom+"px";b.Ya.style.height=a.bottom+"px";b.Ya.style.width=c-a.left-a.right+g*2+"px";b.Za.style.left=c-a.right+"px";b.Za.style.top=e-a.bottom+"px";b.Za.style.height=a.bottom+"px";b.Za.style.width=a.right+"px";b.l.style.left=a.left+"px";b.l.style.top="0px";b.l.style.width=c-a.left-a.right+"px";b.l.style.height=a.top<15?"15px":a.top+"px"};
1718
- pui.widgets.add({name:"panel",newValue:"Panel Title",rg:false,sd:true,container:true,defaults:{width:pui.widgets.Uk+"px",height:pui.widgets.Tk+"px","panel style":"Simple","z index":"8"},propertySetters:{"field type":function(b){b.dom.sizeMe=function(){var e;e=b.properties["panel style"];e=pui.widgets.panelStyles[e];if(e==null){e=pui.widgets.Wi()[0];e=pui.widgets.panelStyles[e]}pui.widgets.im(b.dom.panel,e,b.dom.offsetWidth,b.dom.offsetHeight,b)};if(b.properties.color!=null)b.dom.style.color=b.properties.color;
1718
+ pui.widgets.add({name:"panel",newValue:"Panel Title",sg:false,sd:true,container:true,defaults:{width:pui.widgets.Uk+"px",height:pui.widgets.Tk+"px","panel style":"Simple","z index":"8"},propertySetters:{"field type":function(b){b.dom.sizeMe=function(){var e;e=b.properties["panel style"];e=pui.widgets.panelStyles[e];if(e==null){e=pui.widgets.Wi()[0];e=pui.widgets.panelStyles[e]}pui.widgets.im(b.dom.panel,e,b.dom.offsetWidth,b.dom.offsetHeight,b)};if(b.properties.color!=null)b.dom.style.color=b.properties.color;
1719
1719
  b.dom.innerHTML="";if(typeof b.dom.style.MozUserSelect!="undefined")b.dom.style.MozUserSelect="none";var a={};a.ya=document.createElement("div");a.kb=document.createElement("div");a.Ra=document.createElement("div");a.db=document.createElement("div");a.dc=document.createElement("div");a.gb=document.createElement("div");a.Xa=document.createElement("div");a.Ya=document.createElement("div");a.Za=document.createElement("div");a.l=document.createElement("div");a.ya.style.position="absolute";a.ya.style.padding=
1720
1720
  "0px";a.ya.style.margin="0px";a.kb.style.position="absolute";a.kb.style.padding="0px";a.kb.style.margin="0px";a.Ra.style.position="absolute";a.Ra.style.padding="0px";a.Ra.style.margin="0px";a.db.style.position="absolute";a.db.style.padding="0px";a.db.style.margin="0px";a.dc.style.position="absolute";a.dc.style.padding="0px";a.dc.style.margin="0px";a.dc.className="content-area";a.gb.style.position="absolute";a.gb.style.padding="0px";a.gb.style.margin="0px";a.Xa.style.position="absolute";a.Xa.style.padding=
1721
1721
  "0px";a.Xa.style.margin="0px";a.Ya.style.position="absolute";a.Ya.style.padding="0px";a.Ya.style.margin="0px";a.Za.style.position="absolute";a.Za.style.padding="0px";a.Za.style.margin="0px";a.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.Xa.style.left="0px";a.Xa.style.backgroundRepeat="no-repeat";a.Ya.style.backgroundRepeat=
@@ -1726,66 +1726,66 @@ a;a=b.value;b.value=b.properties["panel style"];pui.widgets.panel.propertySetter
1726
1726
  f.Ra.style.backgroundImage="url('"+e+"topright.png')";f.db.style.backgroundImage="url('"+e+"left.png')";f.dc.style.backgroundColor=c.background;f.gb.style.backgroundImage="url('"+e+"right.png')";f.Xa.style.backgroundImage="url('"+e+"bottomleft.png')";f.Ya.style.backgroundImage="url('"+e+"bottommiddle.png')";f.Za.style.backgroundImage="url('"+e+"bottomright.png')";f.l.style.paddingTop=c.textTopPadding;f.l.className="panel "+a.split(" ").join("-").toLowerCase()+"-panel";pui.widgets.im(f,c,b.properties.width,
1727
1727
  b.properties.height)},value:function(b){b.dom.panel.l.innerHTML=b.value},width:function(b){var a;b.dom.style.width=pui.ej(b.value)?b.value+"px":b.value;a=b.properties["panel style"];a=pui.widgets.panelStyles[a];if(a==null){a=pui.widgets.Wi()[0];a=pui.widgets.panelStyles[a]}pui.widgets.im(b.dom.panel,a,b.value,b.properties.height,b)},height:function(b){var a;b.dom.style.height=pui.ej(b.value)?b.value+"px":b.value;a=b.properties["panel style"];a=pui.widgets.panelStyles[a];if(a==null){a=pui.widgets.Wi()[0];
1728
1728
  a=pui.widgets.panelStyles[a]}pui.widgets.im(b.dom.panel,a,b.properties.width,b.value,b)},color:function(b){b.dom.panel.l.style.color=b.value;b.dom.style.color=b.dom.panel.l.style.color},"font family":function(b){b.dom.panel.l.style.fontFamily=b.value;b.dom.style.fontFamily=b.dom.panel.l.style.fontFamily},"font size":function(b){b.dom.panel.l.style.fontSize=b.value;b.dom.style.fontSize=b.dom.panel.l.style.fontSize},"font style":function(b){b.dom.panel.l.style.fontStyle=b.value},"font variant":function(b){b.dom.panel.l.style.fontVariant=
1729
- b.value},"font weight":function(b){b.dom.panel.l.style.fontWeight=b.value;b.dom.style.fontWeight=b.dom.panel.l.style.fontWeight},"letter spacing":function(b){b.dom.panel.l.style.letterSpacing=b.value},"text align":function(b){b.dom.panel.l.style.textAlign=b.value},"text decoration":function(b){b.dom.panel.l.style.textDecoration=b.value},"text transform":function(b){b.dom.panel.l.style.textTransform=b.value},"word spacing":function(b){b.dom.panel.l.style.wordSpacing=b.value}}});pui.layout={};pui.layout.template={};pui.layout.pk=function(){this.O=null;this.designMode=false;this.template="test";this.Qa={};this.Nf=false;this.We=[];this.xc=[];this.Kr=this.$r=this.Zr=false;this.Ii={};this.gf=this.sj=null;this.mg={}};pui.layout.pk.prototype=Object.create(pui.tc.prototype);va=pui.layout.pk.prototype;va.Eo=function(){this.designMode=true;this.O.destroy=this.destroy.bind(this);this.O.addEventListener("click",this)};
1729
+ b.value},"font weight":function(b){b.dom.panel.l.style.fontWeight=b.value;b.dom.style.fontWeight=b.dom.panel.l.style.fontWeight},"letter spacing":function(b){b.dom.panel.l.style.letterSpacing=b.value},"text align":function(b){b.dom.panel.l.style.textAlign=b.value},"text decoration":function(b){b.dom.panel.l.style.textDecoration=b.value},"text transform":function(b){b.dom.panel.l.style.textTransform=b.value},"word spacing":function(b){b.dom.panel.l.style.wordSpacing=b.value}}});pui.layout={};pui.layout.template={};pui.layout.pk=function(){this.O=null;this.designMode=false;this.template="test";this.Qa={};this.Of=false;this.We=[];this.xc=[];this.Kr=this.$r=this.Zr=false;this.Ii={};this.hf=this.sj=null;this.ng={}};pui.layout.pk.prototype=Object.create(pui.tc.prototype);va=pui.layout.pk.prototype;va.Eo=function(){this.designMode=true;this.O.destroy=this.destroy.bind(this);this.O.addEventListener("click",this)};
1730
1730
  va.Xo=function(){for(var b=pui.layout.template.Mo(this.O),a=0;a<b.length;a++)if(b[a].firstChild!=null)return true;return false};va.gx=function(b){if(b==null)b={};b.zx=false;b.xx=false;for(var a=[],c=this.O.d.designer.items,e=0;e<c.length;e++){var f=c[e];if(f.CA()==this){if(f.properties["field type"]=="tab panel")b.zx=true;if(f.properties["field type"]=="field set panel")b.xx=true;a.push(f)}}return a};
1731
- va.applyTemplate=function(){var b=pui.layout.template.applyTemplate({dom:this.O,template:this.template,properties:this.Qa,$l:this.d!=null&&this.d.Lf,designMode:this.designMode,layout:this});if(b.success){this.We=b.We;this.xc=b.xc;this.stretch()}else{setTimeout(function(){pui.alert(b.msg)},0);return b}this.O.Op=pui.layout.mx(this.template);this.O.Qh=Gc(this.O.Op);return b};
1732
- va.cg=function(b,a){if(!this.designMode)return false;var c=this.d;if(c.properties[b]!=a){if(pui.o(c.properties[b]))c.properties[b].designValue=a;else c.properties[b]=a;c.pb[b]=true;c.nd=true;c.designer.od[c.designer.Na.ub]=true;c.designer.ob.refresh();return true}return false};
1731
+ va.applyTemplate=function(){var b=pui.layout.template.applyTemplate({dom:this.O,template:this.template,properties:this.Qa,$l:this.d!=null&&this.d.Mf,designMode:this.designMode,layout:this});if(b.success){this.We=b.We;this.xc=b.xc;this.stretch()}else{setTimeout(function(){pui.alert(b.msg)},0);return b}this.O.Op=pui.layout.mx(this.template);this.O.Qh=Gc(this.O.Op);return b};
1732
+ va.dg=function(b,a){if(!this.designMode)return false;var c=this.d;if(c.properties[b]!=a){if(pui.o(c.properties[b]))c.properties[b].designValue=a;else c.properties[b]=a;c.pb[b]=true;c.nd=true;c.designer.od[c.designer.Na.ub]=true;c.designer.ob.refresh();return true}return false};
1733
1733
  va.stretch=function(){var b,a,c=[];for(b=0;b<this.We.length;b++){a=this.We[b];a.style.width="0px";a.style.height="0px"}for(b=0;b<this.We.length;b++){a=this.We[b];var e=a.parentNode;c.push({width:e.offsetWidth,height:e.offsetHeight})}for(b=0;b<this.We.length;b++){a=this.We[b];var f=c[b],g=e.style.overflowX,h=e.style.overflowY;f.width-=this.designMode&&(this.template!=="mobile device"||g==="auto"||g==="scroll"||this.template=="table")?4:2;if(f.width<0)f.width=0;f.height-=this.designMode&&(this.template!==
1734
- "mobile device"||h==="auto"||h==="scroll"||this.template=="table")?4:2;if(f.height<0)f.height=0;a.style.width=f.width+"px";a.style.height=f.height+"px"}re(this);this.center();b=this.iScroll;b!=null&&b.refresh()};function re(b,a){if(typeof a!=="number")a=b.Cg();var c=b.xc;if(c!=null){var e=c[a];if(e!=null){pui.Zp(e,true);b.Ii[a]=true}else for(var f=0,g=c.length;f<g&&(e=c[f]);f++){pui.Zp(e,true);b.Ii[f]=true}}}
1734
+ "mobile device"||h==="auto"||h==="scroll"||this.template=="table")?4:2;if(f.height<0)f.height=0;a.style.width=f.width+"px";a.style.height=f.height+"px"}re(this);this.center();b=this.iScroll;b!=null&&b.refresh()};function re(b,a){if(typeof a!=="number")a=b.Dg();var c=b.xc;if(c!=null){var e=c[a];if(e!=null){pui.Zp(e,true);b.Ii[a]=true}else for(var f=0,g=c.length;f<g&&(e=c[f]);f++){pui.Zp(e,true);b.Ii[f]=true}}}
1735
1735
  va.center=function(){var b=this.Zr,a=this.$r;if(this.designMode&&this.d){var c=this.d,e=null;if(c.pb["center horizontally"])e=c.properties["center horizontally"];if(e==="true"){e=parseInt(this.O.offsetWidth/2);if(!isNaN(e)&&e>0){this.O.style.left="calc(50% - "+e+"px)";(c=c.DA())&&c.Fj()}}}if(b||a){c={};e=false;var f=this.O.parentNode;if(f!=null&&f.tagName=="DIV"&&f.offsetWidth>0&&(f.parentNode!=document.body||f.style.width!=null&&f.style.height!=null&&f.style.width!=""&&f.style.height!="")){c.width=
1736
- f.offsetWidth;c.height=f.offsetHeight}else{e=pui.getWindowSize();c.width=e.width;c.height=e.height;e=true}if(b){b=parseInt((c.width-this.O.offsetWidth)/2);if(b<0){if(e)document.body.scrollLeft=Math.abs(b);b=0}this.O.style.left=b+"px"}if(a){a=parseInt((c.height-this.O.offsetHeight)/2);if(a<0)a=0;this.O.style.top=a+"px"}}};va.resize=function(){var b=this.O,a=b.panel;b=b.Ja;if(a)a.resize();else b&&b.resize();this.Ii={};this.stretch()};va.Cg=function(){var b=-1;if(this.O)b=(b=this.O.Ja)?b.Cg():-1;return b};
1737
- va.setProperty=function(b,a){var c;if(a==null)a="";var e=this.O.panel,f=/^(css class|user defined data) \d+$/.exec(b);if(!(f!=null&&f[1]!=null)){f=this.O.Ja;if(!(f&&f.setProperty(b,a)))switch(b){case "id":this.O.id=a;break;case "template":if(this.designMode){this.d.properties.template=a;this.d.pb.template=true;this.d.nd=true;if(this.d.Lf!==true){this.d.designer.od[this.d.designer.Na.ub]=true;this.d.designer.ob.refresh()}this.resize()}break;case "left":case "top":case "right":case "bottom":this.O.style[b]=
1736
+ f.offsetWidth;c.height=f.offsetHeight}else{e=pui.getWindowSize();c.width=e.width;c.height=e.height;e=true}if(b){b=parseInt((c.width-this.O.offsetWidth)/2);if(b<0){if(e)document.body.scrollLeft=Math.abs(b);b=0}this.O.style.left=b+"px"}if(a){a=parseInt((c.height-this.O.offsetHeight)/2);if(a<0)a=0;this.O.style.top=a+"px"}}};va.resize=function(){var b=this.O,a=b.panel;b=b.Ja;if(a)a.resize();else b&&b.resize();this.Ii={};this.stretch()};va.Dg=function(){var b=-1;if(this.O)b=(b=this.O.Ja)?b.Dg():-1;return b};
1737
+ va.setProperty=function(b,a){var c;if(a==null)a="";var e=this.O.panel,f=/^(css class|user defined data) \d+$/.exec(b);if(!(f!=null&&f[1]!=null)){f=this.O.Ja;if(!(f&&f.setProperty(b,a)))switch(b){case "id":this.O.id=a;break;case "template":if(this.designMode){this.d.properties.template=a;this.d.pb.template=true;this.d.nd=true;if(this.d.Mf!==true){this.d.designer.od[this.d.designer.Na.ub]=true;this.d.designer.ob.refresh()}this.resize()}break;case "left":case "top":case "right":case "bottom":this.O.style[b]=
1738
1738
  a;break;case "height":case "width":case "min height":case "min width":case "max height":case "max width":e=b.split(" ");f=b;if(e.length>1)f=e[0]+e[1].substr(0,1).toUpperCase()+e[1].substr(1);this.O.style[f]=a;this.resize();if(this.designMode)a.length==0?pui.Sp(this.O,f):pui.Mk(this.O,f,a);break;case "z index":this.O.style.zIndex=a;if(this.designMode)a.length==0?pui.Sp(this.O,"z-index"):pui.Mk(this.O,"z-index",a);break;case "center horizontally":if(!this.designMode)this.Zr=a=="true"||a==true;break;
1739
- case "center vertically":if(!this.designMode)this.$r=a=="true"||a==true;break;case "locked in place":this.Nf=a=="true"||a==true;break;case "overflow x":this.O.firstChild.style.overflowX=a;break;case "tool tip":this.O.title=a;break;case "visibility":if(!this.designMode)this.O.style.visibility=a;if(this.designMode)if(a=="hidden"){this.O.style.filter="alpha(opacity=30)";this.O.style.opacity=0.3}else{this.O.style.filter="";this.O.style.opacity=""}break;case "onclick":case "ondblclick":case "onmousedown":case "onmousemove":case "onmouseout":case "onmouseover":case "onmouseup":if(!this.designMode){c=
1740
- this;this.O[b]=function(h){try{var l=eval(a);typeof l=="function"&&l(h,c)}catch(n){pui.Ea(n,b.substr(0,1).toUpperCase()+b.substr(1)+" Error:\n")}}}break;case "has header":e!=null&&e.Xj(a!="false"&&a!=false);this.Qa[b]=a;break;case "header height":e!=null&&e.Yj(a);this.Qa[b]=a;break;case "header text":e!=null&&e.setText(a);this.Qa[b]=a;break;case "header theme":e!=null&&e.$f(a);this.Qa[b]=a;break;case "body theme":e!=null&&e.Yf(a);this.Qa[b]=a;break;case "straight edge":e!=null&&e.S(a);this.Qa[b]=
1739
+ case "center vertically":if(!this.designMode)this.$r=a=="true"||a==true;break;case "locked in place":this.Of=a=="true"||a==true;break;case "overflow x":this.O.firstChild.style.overflowX=a;break;case "tool tip":this.O.title=a;break;case "visibility":if(!this.designMode)this.O.style.visibility=a;if(this.designMode)if(a=="hidden"){this.O.style.filter="alpha(opacity=30)";this.O.style.opacity=0.3}else{this.O.style.filter="";this.O.style.opacity=""}break;case "onclick":case "ondblclick":case "onmousedown":case "onmousemove":case "onmouseout":case "onmouseover":case "onmouseup":if(!this.designMode){c=
1740
+ this;this.O[b]=function(h){try{var l=eval(a);typeof l=="function"&&l(h,c)}catch(n){pui.Ea(n,b.substr(0,1).toUpperCase()+b.substr(1)+" Error:\n")}}}break;case "has header":e!=null&&e.Xj(a!="false"&&a!=false);this.Qa[b]=a;break;case "header height":e!=null&&e.Yj(a);this.Qa[b]=a;break;case "header text":e!=null&&e.setText(a);this.Qa[b]=a;break;case "header theme":e!=null&&e.ag(a);this.Qa[b]=a;break;case "body theme":e!=null&&e.Zf(a);this.Qa[b]=a;break;case "straight edge":e!=null&&e.S(a);this.Qa[b]=
1741
1741
  a;break;case "color":case "font family":case "font size":case "font style":case "font weight":case "text align":case "text decoration":case "text transform":e!=null&&e.setStyle(b,a);this.Qa[b]=a;break;case "lazy load":this.Qa[b]=a;break;case "field type":case "css class":case "parent tab":case "parent tab panel":case "parent field set":case "user defined data":case "inline style":break;case "onlazyload":if(!this.designMode&&typeof a=="string"&&a.length>0)this.sj=a;break;default:var g=this.Qa[b];this.Qa[b]=
1742
- a;if(this.designMode&&!Hb.Ih&&!Hb.ny){e=this.applyTemplate();f=this.O.Ja;f!=null&&f.resize();if(e.success==false){this.Qa[b]=g;c=this;setTimeout(function(){c.cg(b,g)},0)}}break}}};
1742
+ a;if(this.designMode&&!Hb.Ih&&!Hb.ny){e=this.applyTemplate();f=this.O.Ja;f!=null&&f.resize();if(e.success==false){this.Qa[b]=g;c=this;setTimeout(function(){c.dg(b,g)},0)}}break}}};
1743
1743
  function se(b){function a(){clearTimeout(g);var h=e.O.parentNode;if(h!=null&&h.tagName=="DIV")e.iScroll=new IScroll(h,{scrollbars:true,mouseWheel:true,disableMouse:pui.is_ios,preventDefaultException:{tagName:/^(INPUT|TEXTAREA|BUTTON|SELECT|IMG)$/}})}function c(){f++;f>100||(g=setTimeout(function(){typeof IScroll=="function"||typeof iScroll=="function"?a():c()},200))}var e=b,f=0,g=0;if(typeof IScroll=="function"||typeof iScroll=="function")a();else pui.loadJS({path:pui.normalizeURL("/iscroll/iscroll.js"),
1744
1744
  callback:a})==false&&c()}function yc(b,a){var c=document.documentElement.clientHeight+"px";b.O.parentNode.style.height=c;document.body.style.height=c;document.body.parentNode.style.height=c;b.O.style.height=c;a&&b.setProperty("height",c)}
1745
- va.uu=function(b){this.gf={active:b.active,data:b.data,designMode:b.designMode,errors:b.errors,file:b.file,fileId:b.fileId,ul:b.ul,vl:b.vl,library:b.library,metaData:{screen:{"record format name":b.metaData.screen["record format name"]}},msgInfo:b.msgInfo,name:b.name,ref:b.ref,Qj:b.Qj,subfiles:b.subfiles}};
1746
- va.fm=function(b){if(this.gf!=null){if(this.mg[b]!=null&&this.xc[b]!=null){this.gf.container=this.xc[b];this.gf.yl=b;this.gf.metaData.items=this.mg[b];this.gf.sj=this.sj;pui.Xp(this.gf);delete this.mg[b]}if(Object.keys(this.mg).length==0)this.gf=null}};va.destroy=function(){this.iScroll!=null&&this.iScroll.destroy();this.O&&delete this.O.layout;this.Kc()};
1747
- pui.layout.pk.prototype.handleEvent=function(b){switch(b.type){case "click":if(this.Nf)if(!pui.designer.tB){b=tb(b);if(b==this.O||b.getAttribute!=null&&b.getAttribute("container")=="true"&&pui.layout.template.Mo(this.O).includes(b)){b=this.d;if(b!=null){var a=b.designer.selection;if(!(a.Yd.length==1&&a.Yd[0].d==b)){a.clear();a.add(b);b.designer.ob.refresh()}}}}break}};pui.layout.Template=function(b,a){this.Ae=b&&b.$l;this.designMode=b&&b.designMode;if(b)this.layout=b.layout;a&&this.kj(a)};
1748
- pui.layout.Template.prototype=Object.create(pui.tc.prototype);va=pui.layout.Template.prototype;va.kj=function(b){this.container=b;this.container.Ja=this;var a=b.layout;if(a&&typeof a.resize==="function")b.sizeMe=a.resize.bind(a)};va.destroy=function(){if(this.container){delete this.container.Ja;delete this.container.sizeMe}this.Kc()};va.wn=function(b,a){if(this.layout)return this.layout.cg(b,a)};function te(b,a){var c=a.properties;if(c)for(var e in c)b.setProperty(e,c[e])}va.setProperty=ua(false);
1749
- va.Cu=na();va.resize=na();va.render=na();va.Cg=ua(-1);pui.layout.template.Gw=function(b,a){var c=b.properties,e=b.$l,f=new pui.Um;f.Cf=true;f.container=a;f.init();a.panel=f;a.sizeMe=function(){a.panel.resize()};var g=c["header text"];g!=null&&f.setText(g);g=c["header theme"];g!=null&&f.$f(g);g=c["body theme"];g!=null&&f.Yf(g);f.S(c["straight edge"]);g=c["has header"];g=g!=="false"&&g!==false;f.Xj(g);g=c["header height"];g!=null&&f.Yj(g);f.Ng(c);c=c.height;if(c==null)c=a.style.height||"300px";f.setHeight(c);if(e)a.style.position="relative";return a};pui.lk=function(b,a){pui.layout.Template.call(this,b,a);this.vc=pui.getLanguageText("runtimeText","section")+" 1,"+pui.getLanguageText("runtimeText","section")+" 2,"+pui.getLanguageText("runtimeText","section")+" 3";this.df=[];this.ie=[];this.Tb=[];this.bh=[];this.rr="none";this.jr="b";this.dr="c";this.Uc=-1;this.dn=false;this.ff=this.fg=null;this.xi=[];this.tv=this.Fv.bind(this);this.init();this.container.sizeMe=this.resize.bind(this);if(this.layout&&this.layout.O)this.layout.O.sizeMe=this.resize.bind(this);
1750
- var c=b.properties,e=c["section names"];if(b.Mf>3&&(typeof e!=="string"||e.length===0)){e=this.vc;for(var f=e.split(",").length+1,g=b.Mf;f<=g;f++)e+=","+pui.getLanguageText("runtimeText","section")+" "+f;this.setProperty("section names",e);this.layout.cg("section names",e)}else this.setProperty("section names",e);this.we(0);e=c["header theme"];e!=null&&this.$f(e);e=c["body theme"];e!=null&&this.Yf(e);this.S(c["straight edge"]);e=c["small sections"];e=e==="true"||e===true;this.Pg(e);this.Ng(c);e=c.height;
1751
- 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.we(c)}}if(this.Ae)this.container.style.position="relative";b.Mf>0&&this.render()};pui.lk.prototype=Object.create(pui.layout.Template.prototype);Object.defineProperties(pui.lk.prototype,{$g:{value:"The section cannot be removed because it contains other elements that must be removed first."}});va=pui.lk.prototype;va.init=function(){this.container.style.overflow="hidden"};
1752
- va.render=function(){for(var b,a,c=this.xi,e=c.length,f=this.df.length;e>this.df.length;){b=document.createElement("div");b.style.width="100%";b.style.padding="0";b.az=f;b.onclick=this.tv;a=document.createElement("div");a.style.width="100%";a.style.height="175px";a.style.padding="0";var g=new pui.Tm;g.container=b;g.Ae=this.Ae;g.init();g.yd(this.jr);g.setIcon("plus");g.vm("left");var h=new pui.Vm;h.type="body";h.Cf=true;h.container=a;h.init();h.yd(this.dr);h.setHeight("100%");this.container.appendChild(b);
1753
- this.container.appendChild(a);this.df.push(b);this.ie.push(a);this.Tb.push(g);this.bh.push(h);f++}for(;e<this.df.length;){b=this.df.pop();this.container.removeChild(b);a=this.ie.pop();this.container.removeChild(a);this.Tb.pop();this.bh.pop()}b=0;for(a=c.length;b<a;b++){this.Tb[b].setText(c[b]);this.ie[b].style.overflow=b<c.length-1?"hidden":""}if(this.designMode){if(this.fg==null){this.fg=designUtils.jo("plus",pui.getLanguageText("runtimeText","add x",[pui.getLanguageText("runtimeText","section")]),
1754
- this.container);this.fg.style.right="2px";this.fg.style.bottom="2px";this.fg.onclick=this.Yq.bind(this);this.fg.$v=true}else this.container.appendChild(this.fg);if(this.ff==null){this.ff=designUtils.jo("minus",pui.getLanguageText("runtimeText","delete x",[pui.getLanguageText("runtimeText","section")]),this.container);this.ff.style.right="2px";this.ff.style.bottom="16px";this.ff.onclick=this.Yq.bind(this);this.ff.style.display="none"}else this.container.appendChild(this.ff);this.ff.style.display=c.length>
1745
+ va.uu=function(b){this.hf={active:b.active,data:b.data,designMode:b.designMode,errors:b.errors,file:b.file,fileId:b.fileId,ul:b.ul,vl:b.vl,library:b.library,metaData:{screen:{"record format name":b.metaData.screen["record format name"]}},msgInfo:b.msgInfo,name:b.name,ref:b.ref,Qj:b.Qj,subfiles:b.subfiles}};
1746
+ va.fm=function(b){if(this.hf!=null){if(this.ng[b]!=null&&this.xc[b]!=null){this.hf.container=this.xc[b];this.hf.yl=b;this.hf.metaData.items=this.ng[b];this.hf.sj=this.sj;pui.Xp(this.hf);delete this.ng[b]}if(Object.keys(this.ng).length==0)this.hf=null}};va.destroy=function(){this.iScroll!=null&&this.iScroll.destroy();this.O&&delete this.O.layout;this.Kc()};
1747
+ pui.layout.pk.prototype.handleEvent=function(b){switch(b.type){case "click":if(this.Of)if(!pui.designer.tB){b=tb(b);if(b==this.O||b.getAttribute!=null&&b.getAttribute("container")=="true"&&pui.layout.template.Mo(this.O).includes(b)){b=this.d;if(b!=null){var a=b.designer.selection;if(!(a.Yd.length==1&&a.Yd[0].d==b)){a.clear();a.add(b);b.designer.ob.refresh()}}}}break}};pui.layout.Template=function(b,a){this.Ae=b&&b.$l;this.designMode=b&&b.designMode;if(b)this.layout=b.layout;a&&this.kj(a)};
1748
+ pui.layout.Template.prototype=Object.create(pui.tc.prototype);va=pui.layout.Template.prototype;va.kj=function(b){this.container=b;this.container.Ja=this;var a=b.layout;if(a&&typeof a.resize==="function")b.sizeMe=a.resize.bind(a)};va.destroy=function(){if(this.container){delete this.container.Ja;delete this.container.sizeMe}this.Kc()};va.wn=function(b,a){if(this.layout)return this.layout.dg(b,a)};function te(b,a){var c=a.properties;if(c)for(var e in c)b.setProperty(e,c[e])}va.setProperty=ua(false);
1749
+ va.Cu=na();va.resize=na();va.render=na();va.Dg=ua(-1);pui.layout.template.Gw=function(b,a){var c=b.properties,e=b.$l,f=new pui.Um;f.Df=true;f.container=a;f.init();a.panel=f;a.sizeMe=function(){a.panel.resize()};var g=c["header text"];g!=null&&f.setText(g);g=c["header theme"];g!=null&&f.ag(g);g=c["body theme"];g!=null&&f.Zf(g);f.S(c["straight edge"]);g=c["has header"];g=g!=="false"&&g!==false;f.Xj(g);g=c["header height"];g!=null&&f.Yj(g);f.Og(c);c=c.height;if(c==null)c=a.style.height||"300px";f.setHeight(c);if(e)a.style.position="relative";return a};pui.lk=function(b,a){pui.layout.Template.call(this,b,a);this.vc=pui.getLanguageText("runtimeText","section")+" 1,"+pui.getLanguageText("runtimeText","section")+" 2,"+pui.getLanguageText("runtimeText","section")+" 3";this.ef=[];this.ie=[];this.Tb=[];this.bh=[];this.rr="none";this.jr="b";this.dr="c";this.Uc=-1;this.dn=false;this.gf=this.gg=null;this.xi=[];this.tv=this.Fv.bind(this);this.init();this.container.sizeMe=this.resize.bind(this);if(this.layout&&this.layout.O)this.layout.O.sizeMe=this.resize.bind(this);
1750
+ var c=b.properties,e=c["section names"];if(b.Nf>3&&(typeof e!=="string"||e.length===0)){e=this.vc;for(var f=e.split(",").length+1,g=b.Nf;f<=g;f++)e+=","+pui.getLanguageText("runtimeText","section")+" "+f;this.setProperty("section names",e);this.layout.dg("section names",e)}else this.setProperty("section names",e);this.we(0);e=c["header theme"];e!=null&&this.ag(e);e=c["body theme"];e!=null&&this.Zf(e);this.S(c["straight edge"]);e=c["small sections"];e=e==="true"||e===true;this.Qg(e);this.Og(c);e=c.height;
1751
+ 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.we(c)}}if(this.Ae)this.container.style.position="relative";b.Nf>0&&this.render()};pui.lk.prototype=Object.create(pui.layout.Template.prototype);Object.defineProperties(pui.lk.prototype,{$g:{value:"The section cannot be removed because it contains other elements that must be removed first."}});va=pui.lk.prototype;va.init=function(){this.container.style.overflow="hidden"};
1752
+ va.render=function(){for(var b,a,c=this.xi,e=c.length,f=this.ef.length;e>this.ef.length;){b=document.createElement("div");b.style.width="100%";b.style.padding="0";b.az=f;b.onclick=this.tv;a=document.createElement("div");a.style.width="100%";a.style.height="175px";a.style.padding="0";var g=new pui.Tm;g.container=b;g.Ae=this.Ae;g.init();g.yd(this.jr);g.setIcon("plus");g.vm("left");var h=new pui.Vm;h.type="body";h.Df=true;h.container=a;h.init();h.yd(this.dr);h.setHeight("100%");this.container.appendChild(b);
1753
+ this.container.appendChild(a);this.ef.push(b);this.ie.push(a);this.Tb.push(g);this.bh.push(h);f++}for(;e<this.ef.length;){b=this.ef.pop();this.container.removeChild(b);a=this.ie.pop();this.container.removeChild(a);this.Tb.pop();this.bh.pop()}b=0;for(a=c.length;b<a;b++){this.Tb[b].setText(c[b]);this.ie[b].style.overflow=b<c.length-1?"hidden":""}if(this.designMode){if(this.gg==null){this.gg=designUtils.jo("plus",pui.getLanguageText("runtimeText","add x",[pui.getLanguageText("runtimeText","section")]),
1754
+ this.container);this.gg.style.right="2px";this.gg.style.bottom="2px";this.gg.onclick=this.Yq.bind(this);this.gg.$v=true}else this.container.appendChild(this.gg);if(this.gf==null){this.gf=designUtils.jo("minus",pui.getLanguageText("runtimeText","delete x",[pui.getLanguageText("runtimeText","section")]),this.container);this.gf.style.right="2px";this.gf.style.bottom="16px";this.gf.onclick=this.Yq.bind(this);this.gf.style.display="none"}else this.container.appendChild(this.gf);this.gf.style.display=c.length>
1755
1755
  1?"":"none"}};va.Fv=function(b){b=tb(b);for(var a=null;a==null&&b!=null;){a=b.az;b=b.parentNode}if(a!=null)if(this.Uc==a){a=-1;this.dn&&!this.designMode&&this.we(a)}else{if(this.container.onsectionclickevent!=null)if(this.container.onsectionclickevent(a)==false)return;this.we(a)}};
1756
- va.setProperty=function(b,a){switch(b){case "section names":var c=this.xi.length;if(a==null||a=="")a=this.vc;else if(pui.o(a)||pui.Mb(a))a=pui.ga(a.designValue).length==0?this.vc:a.designValue;var e=pui.ga(a);if(e.length!=c){var f=false;if(this.designMode){c=c;for(var g=e.length;c>g;c--)if(ue(this,c-1)){f=true;break}}if(f){pui.alert(this.$g);setTimeout(this.layout.cg.bind(this.layout),1,"section names",this.xi.join(","))}else{this.xi=e;this.render();f=this.Uc;if(f>e.length-1)f=e.length-1;this.we(f)}}else{this.xi=
1757
- e;this.render()}break;case "active section":if(!this.designMode)if(a!=null){a=Number(a);!isNaN(a)&&a!=0&&this.we(a)}break;case "header theme":this.$f(a);break;case "body theme":this.Yf(a);break;case "small sections":this.Pg(a=="true"||a==true);break;case "allow collapse":this.dn=a=="true"||a==true;this.we(this.Uc);break;case "straight edge":this.S(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,
1756
+ va.setProperty=function(b,a){switch(b){case "section names":var c=this.xi.length;if(a==null||a=="")a=this.vc;else if(pui.o(a)||pui.Mb(a))a=pui.ga(a.designValue).length==0?this.vc:a.designValue;var e=pui.ga(a);if(e.length!=c){var f=false;if(this.designMode){c=c;for(var g=e.length;c>g;c--)if(ue(this,c-1)){f=true;break}}if(f){pui.alert(this.$g);setTimeout(this.layout.dg.bind(this.layout),1,"section names",this.xi.join(","))}else{this.xi=e;this.render();f=this.Uc;if(f>e.length-1)f=e.length-1;this.we(f)}}else{this.xi=
1757
+ e;this.render()}break;case "active section":if(!this.designMode)if(a!=null){a=Number(a);!isNaN(a)&&a!=0&&this.we(a)}break;case "header theme":this.ag(a);break;case "body theme":this.Zf(a);break;case "small sections":this.Qg(a=="true"||a==true);break;case "allow collapse":this.dn=a=="true"||a==true;this.we(this.Uc);break;case "straight edge":this.S(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,
1758
1758
  a);this.resize();break;case "onsectionclick":this.designMode||(this.container.onsectionclickevent=function(){eval("var section = arguments[0];");try{return eval(a)}catch(h){pui.Ea(h,"Onexpand Error:\n")}});break;default:return false}if(this.layout&&this.layout.Qa)this.layout.Qa[b]=a;return true};
1759
1759
  va.we=function(b){this.Uc=parseInt(b,10);for(var a=0;a<this.ie.length;a++){var c=this.ie[a],e=this.Tb[a];if(a===this.Uc){e.setIcon("minus");e.setDisabled(!this.dn);c.style.display="";this.container.R=b}else{e.setIcon("plus");e.setDisabled(false);c.style.display="none"}}this.S(this.rr);this.resize(true);b=this.container.layout;if(b!=null&&this.Uc>=0&&this.Uc<this.ie.length){this.designMode||b.fm(this.Uc);b.Ii[this.Uc]!==true&&re(b,this.Uc)}};
1760
1760
  va.S=function(b){if(!(b==null||pui.o(b))){this.rr=b;var a=this.Tb.length;if(!(a<=0)){for(var c=0;c<a;c++){this.Tb[c].S("all");this.bh[c].S("all")}c=this.Tb[0];var e=this.bh[a-1];if(this.ie[a-1].style.display=="none")e=this.Tb[a-1];if(c==e)c.S(b);else switch(b){case "left":c.S("left");c.Od().style.borderBottomRightRadius="0";c.Ce().style.borderBottomRightRadius="0";e.S("left");e.Od().style.borderTopRightRadius="0";e.Ce().style.borderTopRightRadius="0";break;case "right":c.S("right");c.Od().style.borderBottomLeftRadius=
1761
- "0";c.Ce().style.borderBottomLeftRadius="0";e.S("right");e.Od().style.borderTopLeftRadius="0";e.Ce().style.borderTopLeftRadius="0";break;case "top":c.S("all");e.S("top");break;case "bottom":c.S("bottom");e.S("all");break;case "all":c.S("all");e.S("all");break;default:c.S("bottom");e.S("top");break}}}};va.setStyle=function(b,a){for(var c=0;c<this.Tb.length;c++)this.Tb[c].setStyle(b,a)};va.Ng=function(b){for(var a=0;a<this.Tb.length;a++)this.Tb[a].Ng(b)};
1762
- va.Pg=function(b){for(var a=0;a<this.Tb.length;a++)this.Tb[a].Pg(b);this.resize()};va.$f=function(b){for(var a=0;a<this.Tb.length;a++)this.Tb[a].yd(b);this.jr=b};va.Yf=function(b){for(var a=0;a<this.bh.length;a++)this.bh[a].yd(b);this.dr=b};
1763
- va.resize=function(b){var a=this.container.offsetHeight;if(typeof this.Dk==="number"){a=this.Dk;delete this.Dk}var c=0;if(this.df.length>0)c=this.df[0].offsetHeight;if(c==0)c=42;a=a-c*this.df.length;if(a<0)a=0;c=this.ie[this.Uc];if(c!=null)c.style.height=a+"px";this.container.layout!=null&&b!==true&&re(this.container.layout)};
1761
+ "0";c.Ce().style.borderBottomLeftRadius="0";e.S("right");e.Od().style.borderTopLeftRadius="0";e.Ce().style.borderTopLeftRadius="0";break;case "top":c.S("all");e.S("top");break;case "bottom":c.S("bottom");e.S("all");break;case "all":c.S("all");e.S("all");break;default:c.S("bottom");e.S("top");break}}}};va.setStyle=function(b,a){for(var c=0;c<this.Tb.length;c++)this.Tb[c].setStyle(b,a)};va.Og=function(b){for(var a=0;a<this.Tb.length;a++)this.Tb[a].Og(b)};
1762
+ va.Qg=function(b){for(var a=0;a<this.Tb.length;a++)this.Tb[a].Qg(b);this.resize()};va.ag=function(b){for(var a=0;a<this.Tb.length;a++)this.Tb[a].yd(b);this.jr=b};va.Zf=function(b){for(var a=0;a<this.bh.length;a++)this.bh[a].yd(b);this.dr=b};
1763
+ va.resize=function(b){var a=this.container.offsetHeight;if(typeof this.Dk==="number"){a=this.Dk;delete this.Dk}var c=0;if(this.ef.length>0)c=this.ef[0].offsetHeight;if(c==0)c=42;a=a-c*this.ef.length;if(a<0)a=0;c=this.ie[this.Uc];if(c!=null)c.style.height=a+"px";this.container.layout!=null&&b!==true&&re(this.container.layout)};
1764
1764
  va.setHeight=function(b){this.container.style.height=b;delete this.Dk;if(typeof b==="string"&&b.length>=3&&b.substring(b.length-2)==="px"){b=parseInt(b);if(!isNaN(b))this.Dk=b}this.resize()};
1765
1765
  va.Yq=function(b){var a=b.target.$v===true;b=Hb.designer.zh(this.container);var c=b.properties["section names"];if(!pui.Mb(c)){if(pui.o(c)){var e=c.designValue;if(e==null||e=="")e=this.vc;e=pui.ga(e);a?e.push("Section "+(e.length+1)):e.pop();c.designValue=e.join(",")}else{if(c==""||c==null)c=this.vc;c=pui.ga(c);a?c.push("Section "+(c.length+1)):c.pop();c=c.join(",")}a=this.container.Qh["section names"];b.designer.aa.start("Add/Remove Section");b.designer.aa.add(b,a.name);Mc(a,b.properties,b.dom,c,
1766
- true,b,null);b.pb["section names"]=true;b.nd=true;b.designer.od[b.designer.Na.ub]=true;b.designer.selection.clear();b.designer.selection.add(b);b.designer.ob.refresh()}};function ue(b,a){var c=b.ie[a].querySelector("div[container=true]");return c&&c.children&&c.children.length>0}va.Cg=function(){return parseInt(this.Uc,10)};pui.Zg=function(b,a){pui.layout.Template.call(this,b,a);this.Mp=b&&b.Mp===true;this.Ck=0;this.ng=document.createElement("div");this.ng.className=this.lv;this.container.appendChild(this.ng);this.gh=ve(this,"",this.container);this.gg=[];this.og=true;this.Iv=500;this.vr=this.en=0;this.pn=this.fh="";this.er=this.vv.bind(this);this.cr=pui.Zg.prototype.Lv++;if(pui.runtimeContainer&&pui.runtimeContainer.id=="5250")document.querySelector('style[forcegenieheight="true"]')||ve(this,'div[id="5250"] { height: calc(100vh - 100px); }',
1767
- pui.runtimeContainer).setAttribute("forcegenieheight","true");if(!this.Mp&&this.layout&&this.layout.uy!=="responsive layout"){if(!b.properties)b.properties={};var c="layout items";if(b.Mf>0){var e=parseInt(b.properties[c]);if(e<0||isNaN(e))e=this.mk;b.properties[c]=Math.max(e,b.Mf);this.layout.cg(c,b.properties[c])}c="style rules";if(typeof b.properties[c]!=="string"||b.properties[c].length<1){b.properties[c]="@media screen { #_id_ > .puiresp { display:grid; } }";this.layout.cg(c,b.properties[c])}}te(this,
1766
+ true,b,null);b.pb["section names"]=true;b.nd=true;b.designer.od[b.designer.Na.ub]=true;b.designer.selection.clear();b.designer.selection.add(b);b.designer.ob.refresh()}};function ue(b,a){var c=b.ie[a].querySelector("div[container=true]");return c&&c.children&&c.children.length>0}va.Dg=function(){return parseInt(this.Uc,10)};pui.Zg=function(b,a){pui.layout.Template.call(this,b,a);this.Mp=b&&b.Mp===true;this.Ck=0;this.og=document.createElement("div");this.og.className=this.lv;this.container.appendChild(this.og);this.gh=ve(this,"",this.container);this.hg=[];this.pg=true;this.Iv=500;this.vr=this.en=0;this.pn=this.fh="";this.er=this.vv.bind(this);this.cr=pui.Zg.prototype.Lv++;if(pui.runtimeContainer&&pui.runtimeContainer.id=="5250")document.querySelector('style[forcegenieheight="true"]')||ve(this,'div[id="5250"] { height: calc(100vh - 100px); }',
1767
+ pui.runtimeContainer).setAttribute("forcegenieheight","true");if(!this.Mp&&this.layout&&this.layout.uy!=="responsive layout"){if(!b.properties)b.properties={};var c="layout items";if(b.Nf>0){var e=parseInt(b.properties[c]);if(e<0||isNaN(e))e=this.mk;b.properties[c]=Math.max(e,b.Nf);this.layout.dg(c,b.properties[c])}c="style rules";if(typeof b.properties[c]!=="string"||b.properties[c].length<1){b.properties[c]="@media screen { #_id_ > .puiresp { display:grid; } }";this.layout.dg(c,b.properties[c])}}te(this,
1768
1768
  b)};pui.Zg.prototype=Object.create(pui.layout.Template.prototype);Object.defineProperties(pui.Zg.prototype,{$g:{value:"The section cannot be removed because it contains other elements that must be removed first."},mk:{value:8},lv:{value:"puiresp"}});va=pui.Zg.prototype;va.Bv=/^(not )?(screen|all)\s*(.*)$/i;va.ir=/and\s*\([^)]+\)/gi;va.Cv=/^disable/i;va.Dv=/^and\s*\(\s*(min|max)-(width|height)\s*:\s*(\d+)\s*px\s*\)$/i;va.Ev=/^and\s*\(\s*orientation\s*:\s*(portrait|landscape)\s*\)/i;va.Lv=0;
1769
1769
  va.pm=function(){this.container.setAttribute("puirespbg",this.cr);we(this)};
1770
- function we(b,a){if(a==null)a=b.pn||"";else if(pui.o(a))a=a.designValue!=null&&typeof a.designValue=="string"?a.designValue:"@media screen { #_id_ > .puiresp { display:grid; } }";b.pn=a;b.fh=!b.Ae&&b.container.id.length>0?a.replace(/#_id_/g,"#"+b.container.id):b.Ae?a.replace(/#_id_ >/g,".x-dd-drag-proxy"):a.replace(/#_id_/g,'div[puirespbg="'+b.cr+'"]');if((b.gh.textContent=b.fh)&&b.fh.length>0)if(!b.og||b.designMode){b.en=0;clearTimeout(b.vr);b.vr=setTimeout(b.er,1)}else b.layout&&re(b.layout)}
1771
- va.resize=function(){if((!this.og||this.designMode)&&this.fh!=""){this.gh.textContent=this.fh;xe(this)}};function ye(b,a,c){var e=typeof b.gg[a]==="string"&&b.gg[a].length>0,f=a+1+(e?" ("+b.gg[a]+")":"");if(b.Mp)c.innerHTML=f;else if(b.designMode)c.setAttribute("containername",f);else if(e){b=b.gg[a].replace(/"/g," ");b=b.replace(/&/g," ");c.setAttribute("containername",b)}}
1772
- function ve(b,a,c){b=document.createElement("style");b.type="text/css";if(b.styleSheet)b.cssText=a;else b.appendChild(document.createTextNode(a));return c.appendChild(b)}va.vv=function(){this.en++;if((this.designMode&&this.og?Ab(Ea):this.container).offsetWidth>0){if(this.gh.sheet!=null){xe(this);this.layout&&re(this.layout)}}else this.en<this.Iv?setTimeout(this.er,1):console.log("Timed out waiting for parent width > 0.")};
1773
- function xe(b){b.ke=b.designMode&&b.og?Ab(Ea):b.container;b.yk="";b.ir.lastIndex=0;b.gh.sheet!=null&&ze(b,b.gh.sheet);b.gh.textContent=b.yk;delete b.ke}
1770
+ function we(b,a){if(a==null)a=b.pn||"";else if(pui.o(a))a=a.designValue!=null&&typeof a.designValue=="string"?a.designValue:"@media screen { #_id_ > .puiresp { display:grid; } }";b.pn=a;b.fh=!b.Ae&&b.container.id.length>0?a.replace(/#_id_/g,"#"+b.container.id):b.Ae?a.replace(/#_id_ >/g,".x-dd-drag-proxy"):a.replace(/#_id_/g,'div[puirespbg="'+b.cr+'"]');if((b.gh.textContent=b.fh)&&b.fh.length>0)if(!b.pg||b.designMode){b.en=0;clearTimeout(b.vr);b.vr=setTimeout(b.er,1)}else b.layout&&re(b.layout)}
1771
+ va.resize=function(){if((!this.pg||this.designMode)&&this.fh!=""){this.gh.textContent=this.fh;xe(this)}};function ye(b,a,c){var e=typeof b.hg[a]==="string"&&b.hg[a].length>0,f=a+1+(e?" ("+b.hg[a]+")":"");if(b.Mp)c.innerHTML=f;else if(b.designMode)c.setAttribute("containername",f);else if(e){b=b.hg[a].replace(/"/g," ");b=b.replace(/&/g," ");c.setAttribute("containername",b)}}
1772
+ function ve(b,a,c){b=document.createElement("style");b.type="text/css";if(b.styleSheet)b.cssText=a;else b.appendChild(document.createTextNode(a));return c.appendChild(b)}va.vv=function(){this.en++;if((this.designMode&&this.pg?Ab(Ea):this.container).offsetWidth>0){if(this.gh.sheet!=null){xe(this);this.layout&&re(this.layout)}}else this.en<this.Iv?setTimeout(this.er,1):console.log("Timed out waiting for parent width > 0.")};
1773
+ function xe(b){b.ke=b.designMode&&b.pg?Ab(Ea):b.container;b.yk="";b.ir.lastIndex=0;b.gh.sheet!=null&&ze(b,b.gh.sheet);b.gh.textContent=b.yk;delete b.ke}
1774
1774
  function ze(b,a){for(var c,e=0;e<a.cssRules.length;e++){var f=a.cssRules[e];if(f.type==f.SUPPORTS_RULE){b.yk+="@supports "+f.conditionText+"{";ze(b,f);b.yk+="}"}else if(f.type==f.MEDIA_RULE){c=f.conditionText||f.media.mediaText;var g=c.match(b.Bv);if(g!=null){var h=g[3].match(b.ir),l=true;if(h!=null)for(c=0;c<h.length;c++){var n=h[c].match(b.Dv),m=h[c].match(b.Ev);if(n!=null){m=n[2];var r=parseInt(n[3],10);if(n[1]=="min"){if(m=="width"&&b.ke.offsetWidth<r||m=="height"&&b.ke.offsetHeight<r)l=false}else if(m==
1775
1775
  "width"&&b.ke.offsetWidth>r||m=="height"&&b.ke.offsetHeight>r)l=false}else if(m!=null)if(m[1]=="portrait"&&b.ke.offsetHeight<b.ke.offsetWidth)l=false;else if(m[1]=="landscape"&&b.ke.offsetHeight>b.ke.offsetWidth)l=false}c=g[1]==="not";if(l&&!c||c&&!l)ze(b,f)}else c.match(b.Cv)==null&&console.log("Unsupported media rule:",c)}else if(f.type==f.STYLE_RULE){g=f.selectorText+"{";for(c=0;c<f.style.length;c++){l=f.style[c];g+=l+":"+f.style[l]+"; "}g+="} ";b.yk+=g}}}
1776
- va.setProperty=function(b,a){switch(b){case "id":if(this.container.id!=a){this.container.id=a;we(this)}break;case "layout items":var c=parseInt(a,10);a=isNaN(c)?this.mk:c;var e=false;if(this.designMode)for(var f=this.Ck;f>c;f--){var g=this.ng.children[f-1];if(g&&g.children&&g.children.length>0){e=true;break}}if(e){pui.alert(this.$g);a=String(this.Ck);setTimeout(this.wn.bind(this),1,"layout items",a)}else{if(a==null||a===""||isNaN(a))a=this.mk;else if(pui.o(a))a=a.designValue!=null&&typeof a.designValue==
1777
- "number"?a.designValue:this.mk;if(a!=this.Ck){c=a;e=this.ng;for(f=e.children;f.length<c;){g=document.createElement("div");g.setAttribute("container","true");ye(this,f.length,g);e.appendChild(g)}for(;f.length>c;)e.removeChild(f[f.length-1]);this.Ck=e.children.length;if(this.layout)this.layout.xc=e.children;this.layout&&re(this.layout)}}break;case "style rules":this.pn!=a&&we(this,a);break;case "use viewport":a=a===true||a==="true";if(this.og!==a){this.og=a;we(this)}break;case "container names":c=a;
1778
- this.gg=[];if(c!=null&&c!="")if(pui.o(c)){c=pui.ga(c.designValue);this.gg=c.length==0?[]:c}else this.gg=c instanceof Array?c:pui.ga(c);if(this.ng!=null)for(c=0;c<this.ng.childNodes.length;c++){e=this.ng.childNodes[c];e.tagName==="DIV"&&ye(this,c,e)}break;default:return false}if(this.layout&&this.layout.Qa)this.layout.Qa[b]=a;return true};va.Cu=function(b){switch(b){case "height":case "width":this.og||we(this);break}};pui.kd=function(b,a){pe.call(this);pui.layout.Template.call(this,b,a);this.wi=false;this.zi=null;this.hf=[];this.Xc=pui.kd.prototype.Xc;this.qi=pui.kd.prototype.qi;this.ri=pui.kd.prototype.ri;this.kj(a);if(b.properties&&b.properties["tab names"]==null){var c=this.vc,e=c.split(",").length;if(b.Mf>e){e=e+1;for(var f=b.Mf;e<=f;e++)c+=",Tab "+e}this.setProperty("tab names",c);this.layout.cg("tab names",c)}te(this,b);b.Mf>0&&this.render()};pui.kd.prototype=Object.create(pui.layout.Template.prototype);
1776
+ va.setProperty=function(b,a){switch(b){case "id":if(this.container.id!=a){this.container.id=a;we(this)}break;case "layout items":var c=parseInt(a,10);a=isNaN(c)?this.mk:c;var e=false;if(this.designMode)for(var f=this.Ck;f>c;f--){var g=this.og.children[f-1];if(g&&g.children&&g.children.length>0){e=true;break}}if(e){pui.alert(this.$g);a=String(this.Ck);setTimeout(this.wn.bind(this),1,"layout items",a)}else{if(a==null||a===""||isNaN(a))a=this.mk;else if(pui.o(a))a=a.designValue!=null&&typeof a.designValue==
1777
+ "number"?a.designValue:this.mk;if(a!=this.Ck){c=a;e=this.og;for(f=e.children;f.length<c;){g=document.createElement("div");g.setAttribute("container","true");ye(this,f.length,g);e.appendChild(g)}for(;f.length>c;)e.removeChild(f[f.length-1]);this.Ck=e.children.length;if(this.layout)this.layout.xc=e.children;this.layout&&re(this.layout)}}break;case "style rules":this.pn!=a&&we(this,a);break;case "use viewport":a=a===true||a==="true";if(this.pg!==a){this.pg=a;we(this)}break;case "container names":c=a;
1778
+ this.hg=[];if(c!=null&&c!="")if(pui.o(c)){c=pui.ga(c.designValue);this.hg=c.length==0?[]:c}else this.hg=c instanceof Array?c:pui.ga(c);if(this.og!=null)for(c=0;c<this.og.childNodes.length;c++){e=this.og.childNodes[c];e.tagName==="DIV"&&ye(this,c,e)}break;default:return false}if(this.layout&&this.layout.Qa)this.layout.Qa[b]=a;return true};va.Cu=function(b){switch(b){case "height":case "width":this.pg||we(this);break}};pui.kd=function(b,a){pe.call(this);pui.layout.Template.call(this,b,a);this.wi=false;this.zi=null;this.jf=[];this.Xc=pui.kd.prototype.Xc;this.qi=pui.kd.prototype.qi;this.ri=pui.kd.prototype.ri;this.kj(a);if(b.properties&&b.properties["tab names"]==null){var c=this.vc,e=c.split(",").length;if(b.Nf>e){e=e+1;for(var f=b.Nf;e<=f;e++)c+=",Tab "+e}this.setProperty("tab names",c);this.layout.dg("tab names",c)}te(this,b);b.Nf>0&&this.render()};pui.kd.prototype=Object.create(pui.layout.Template.prototype);
1779
1779
  pui.kd.prototype.kj=function(b){pui.layout.Template.prototype.kj.call(this,b);if(!this.designMode){b.setTab=this.setTab.bind(this);b.getTab=this.getTab.bind(this);b.refresh=this.refresh.bind(this);b.hideTab=this.bt.bind(this);b.showTab=this.Ju.bind(this)}};
1780
1780
  pui.kd.prototype.setProperty=function(b,a){switch(b){case "tab names":if(a==null||a=="")a=this.vc;else if(pui.o(a))a=pui.ga(a.designValue).length==0?this.vc:a.designValue;var c=pui.ga(a),e=this.ib.length;if(c.length!=e){var f=false;if(this.designMode){e=e;for(var g=c.length;e>g;e--)if(this.qi(e-1)){f=true;break}}if(f){pui.alert(this.$g);a=this.ib.join();c=this.wn.bind(this,"tab names",a);setTimeout(c,1)}else{this.ib=c;if(this.selectedTab>this.ib.length-1)this.selectedTab=this.ib.length-1}}else this.ib=
1781
1781
  c;if(this.wi){Ae(this);this.Xc()}break;case "active tab":if(!this.designMode){a=parseInt(a,10);if(!isNaN(a)&&this.selectedTab!=a)this.selectedTab=a;this.nm=true}break;case "ontabclick":if(!this.designMode)this.nn=a;break;case "tab response":if(!this.designMode)this.om=true;break;case "response AID":if(!this.designMode){if(typeof a!=="string"||a.length===0)a=false;this.aq=a}break;case "bypass validation":break;case "color":case "font family":case "font size":case "font style":case "font weight":case "text transform":case "text decoration":break;
1782
1782
  case "movable tabs":if(!this.designMode){this.mn=a==="true"||a===true;this.wi&&this.Xc()}break;default:return false}if(this.layout&&this.layout.Qa)this.layout.Qa[b]=a;return true};
1783
1783
  pui.kd.prototype.render=function(b){if(this.wi)Ae(this);else{this.A=document.createElement("div");this.A.className="pui-tablayout-hdr";this.container.appendChild(this.A);this.Sb=document.createElement("div");this.Sb.className="pui-tablayout-body";this.container.appendChild(this.Sb);this.designMode&&this.js();if(this.Ae)this.container.style.position="relative";Ae(this);if(this.mn&&!this.designMode){var a;this.zi=pui.nx(b,"pui-lyt-")+"-"+this.container.id;if(sessionStorage[this.zi]!=null)try{a=JSON.parse(sessionStorage[this.zi])}catch(c){}if(a!=
1784
1784
  null&&Array.isArray(a.order)&&a.order.length>0){if(this.ib.length<a.order.length){for(;this.ib.length<a.order.length;)this.ib.push("");Ae(this)}for(var e=[];this.A.childNodes.length>0;){b=this.A.childNodes[0];this.A.removeChild(b);e.push(b)}for(;a.order.length>0;){b=e[a.order[0]];this.A.appendChild(b);a.order.shift()}}}this.Br()}this.Xc();Be(this);this.wk();if(this.layout)this.layout.xc=this.Sb.children;this.wi=true};
1785
- function Ae(b){for(var a=b.ib.length,c=b.hf.length;a>b.hf.length;){var e=document.createElement("span"),f=document.createElement("span");f.setAttribute("isTab","true");f.setAttribute("tabindex","0");f.Aa=c;b.hf.push(f);f.addEventListener("mousedown",b);f.addEventListener("keyup",b);if(b.designMode){f.addEventListener("dblclick",b);f.draggable=true;f.addEventListener("dragstart",b);f.addEventListener("dragend",b);f.addEventListener("dragover",b);f.addEventListener("dragleave",b);f.addEventListener("drop",
1786
- b)}e.appendChild(document.createElement("span"));e.appendChild(f);e.appendChild(document.createElement("span"));b.A.appendChild(e);e=document.createElement("div");e.setAttribute("container","true");e.io=c+1;e.Aa=c;e.style.display="none";b.Sb.addEventListener("keydown",b);b.Sb.setAttribute("tabindex","0");b.Sb.appendChild(e);c++}for(;a<b.hf.length;){c=b.A.children;b.A.removeChild(c[c.length-1]);c=b.Sb.children;b.Sb.removeChild(c[c.length-1]);b.hf.pop()}}
1785
+ function Ae(b){for(var a=b.ib.length,c=b.jf.length;a>b.jf.length;){var e=document.createElement("span"),f=document.createElement("span");f.setAttribute("isTab","true");f.setAttribute("tabindex","0");f.Aa=c;b.jf.push(f);f.addEventListener("mousedown",b);f.addEventListener("keyup",b);if(b.designMode){f.addEventListener("dblclick",b);f.draggable=true;f.addEventListener("dragstart",b);f.addEventListener("dragend",b);f.addEventListener("dragover",b);f.addEventListener("dragleave",b);f.addEventListener("drop",
1786
+ b)}e.appendChild(document.createElement("span"));e.appendChild(f);e.appendChild(document.createElement("span"));b.A.appendChild(e);e=document.createElement("div");e.setAttribute("container","true");e.io=c+1;e.Aa=c;e.style.display="none";b.Sb.addEventListener("keydown",b);b.Sb.setAttribute("tabindex","0");b.Sb.appendChild(e);c++}for(;a<b.jf.length;){c=b.A.children;b.A.removeChild(c[c.length-1]);c=b.Sb.children;b.Sb.removeChild(c[c.length-1]);b.jf.pop()}}
1787
1787
  pui.kd.prototype.Xc=function(){var b,a;this.selectedTab=parseInt(this.selectedTab,10);var c;if(this.layout&&this.layout.Qa)c=this.layout.Qa;if(c){this.A.style.color=typeof c.color==="string"&&c.color.length>0?"inherit":"";this.A.style.textTransform=typeof c["text transform"]==="string"&&c["text transform"].length>0?"inherit":"";this.A.style.fontFamily=typeof c["font family"]==="string"&&c["font family"].length>0?"inherit":"";this.A.style.fontSize=typeof c["font size"]==="string"&&c["font size"].length>
1788
- 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.hf[e];b.innerHTML=this.ib[e];if(c)b.style.textDecoration=typeof c["text decoration"]==="string"?c["text decoration"]:"";a=Ce(this,b.Aa);a=this.A.childNodes[a];a.style.display=this.ef[e]?"none":"";b.Aa===this.selectedTab?b.parentNode.classList.add("selected-tab"):
1788
+ 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.jf[e];b.innerHTML=this.ib[e];if(c)b.style.textDecoration=typeof c["text decoration"]==="string"?c["text decoration"]:"";a=Ce(this,b.Aa);a=this.A.childNodes[a];a.style.display=this.ff[e]?"none":"";b.Aa===this.selectedTab?b.parentNode.classList.add("selected-tab"):
1789
1789
  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.mn)if(this.om)if(b.Aa===this.selectedTab){b.draggable=true;b.addEventListener("dragstart",this);b.addEventListener("dragend",this)}else{b.addEventListener("dragover",this);b.addEventListener("dragleave",
1790
1790
  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.Sb.children[e];if(e===this.selectedTab){b.style.display="";b=this.layout;if(b!=null){this.designMode||b.fm(this.selectedTab);b.Ii[this.selectedTab]!==true&&re(b,this.selectedTab)}}else b.style.display="none"}this.wk()};
1791
1791
  pui.kd.prototype.handleEvent=function(b){function a(z,y){var E=e(z),J=y.target;if(J==E[0])return"first";if(J==E[E.length-1])return"last"}function c(z,y){z.rn=z.selectedTab;z.selectedTab=y;z.Fd=z.A.scrollLeft;z.Np(y)}function e(z){z=z.layout.xc[z.selectedTab].childNodes;for(var y=[],E=0;E<z.length;E++){var J=z[E];if((J.localName=="input"||J.localName=="textarea"||J.localName=="select"||J.localName=="button")&&!J.disabled)y.push(J)}return y}var f,g,h;switch(true){case b.type==="mousedown"||b.type===
@@ -1794,11 +1794,11 @@ pui.kd.prototype.handleEvent=function(b){function a(z,y){var E=e(z),J=y.target;i
1794
1794
  1;if(g<this.ib.length&&g>=0){c(this,g);h=e(this);f=h.length;h[0]&&h[f-1].focus();b.preventDefault()}g<0&&this.A.children[0].children[1].focus();b.preventDefault();return null}return;case b.type==="keydown"&&b.key==="1"&&b.altKey==true:g=this.selectedTab-1;h=this.ib.length;if(g<0)g=h-1;if(g<=h){c(this,g);h=e(this);h[0]&&h[0].focus()}return;case b.type==="keydown"&&b.key==="2"&&b.altKey==true:g=this.selectedTab+1;h=this.ib.length;if(g>=h)g=0;if(g<=h){c(this,g);h=e(this);h[0]&&h[0].focus()}return;case b.type===
1795
1795
  "dblclick":this.Ru(b);return;case b.type==="dragstart":b.stopPropagation();this.si=b.currentTarget.Aa;if(!isNaN(this.si))try{b.dataTransfer.setData("text/plain",this.si);b.dataTransfer.dropEffect="none";b.dataTransfer.Nw="move"}catch(m){}return;case b.type==="dragover":if(b.currentTarget.Aa==this.si)return;b.preventDefault();b.stopPropagation();b.dataTransfer.dropEffect="move";b.dataTransfer.Nw="move";return;case b.type==="dragleave":b.preventDefault();b.stopPropagation();return;case b.type==="drop":b.preventDefault();
1796
1796
  b.stopPropagation();if(!this.A.contains(b.target))return;try{b.dataTransfer.getData("text/plain")}catch(r){}var p=this.si;if(isNaN(p))return;n=b.currentTarget.Aa;if(isNaN(n)||n==p)return;p=Ce(this,p);b=Ce(this,n);var s=p<b,t=this.A.childNodes[p];this.A.removeChild(t);b=Ce(this,n);if(s)b+=1;this.A.insertBefore(t,this.A.childNodes[b]);if(this.designMode){(g=this.layout.d)&&g.designer.aa.Dn("Edit Layout",g.designer);g=this.Sb.childNodes[p];this.Sb.removeChild(g);this.Sb.insertBefore(g,this.Sb.childNodes[b]);
1797
- p=n="";this.hf=[];g=0;for(h=this.A.childNodes.length;g<h;g++){f=this.A.childNodes[g];f=f.childNodes[1];this.hf.push(f);f.Aa=g;n+=p+f.innerHTML;p=",";f=this.Sb.childNodes[g];f.Aa=g;f.io=g+1}this.selectedTab=b;this.setProperty("tab names",n);this.wn("tab names",n);pui.ide.refreshRibbon();if(this.layout)this.layout.xc=this.Sb.children}else if(this.zi)try{b={order:[]};g=0;for(h=this.A.childNodes.length;g<h;g++){f=this.A.childNodes[g];b.order.push(f.childNodes[1].Aa)}sessionStorage[this.zi]=JSON.stringify(b)}catch(w){}return;
1797
+ p=n="";this.jf=[];g=0;for(h=this.A.childNodes.length;g<h;g++){f=this.A.childNodes[g];f=f.childNodes[1];this.jf.push(f);f.Aa=g;n+=p+f.innerHTML;p=",";f=this.Sb.childNodes[g];f.Aa=g;f.io=g+1}this.selectedTab=b;this.setProperty("tab names",n);this.wn("tab names",n);pui.ide.refreshRibbon();if(this.layout)this.layout.xc=this.Sb.children}else if(this.zi)try{b={order:[]};g=0;for(h=this.A.childNodes.length;g<h;g++){f=this.A.childNodes[g];b.order.push(f.childNodes[1].Aa)}sessionStorage[this.zi]=JSON.stringify(b)}catch(w){}return;
1798
1798
  case b.type==="dragend":delete this.si}};va=pui.kd.prototype;va.qi=function(b){var a=this.Sb.children;return a&&a[b]&&a[b].children&&a[b].children.length>0};va.ri=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};
1799
1799
  function Be(b){if(b.nm&&b.Bk&&b.A.offsetWidth>0){var a=b.A.childNodes[b.mn?Ce(b,b.selectedTab):b.selectedTab];if(a){b.Fd=Math.round(a.offsetLeft-b.A.offsetWidth/2+a.offsetWidth/2);b.Bk=false}}}function Ce(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}va.resize=function(){if(this.wi){Be(this);this.wk()}};
1800
- va.destroy=function(){var b=this.container;if(b){delete b.setTab;delete b.getTab;delete b.refresh;delete b.hideTab;delete b.showTab}pui.layout.Template.prototype.destroy.call(this)};va.Cg=function(){return this.selectedTab!=null?parseInt(this.selectedTab,10):-1};pui.Xm=function(b,a){pui.layout.Template.call(this,b,a);this.kg=document.createElement("fieldset");this.kg.className="layout";this.Ak=document.createElement("legend");this.kg.appendChild(this.Ak);this.I=document.createElement("div");this.I.setAttribute("container","true");this.kg.appendChild(this.I);this.container.appendChild(this.kg)};pui.Xm.prototype=Object.create(pui.layout.Template.prototype);
1801
- pui.Xm.prototype.setProperty=function(b,a){switch(b){case "legend":this.Ak.innerHTML=a;break;case "legend align":this.Ak.setAttribute("align",a);break;case "legend style":this.Ak.style=a;break;case "border style":this.kg.style.borderStyle=a;break;case "border width":this.kg.style.borderWidth=a;break;case "border color":this.kg.style.borderColor=a;break;default:return false}if(this.container.layout&&this.container.layout.Qa)this.container.layout.Qa[b]=a;return true};pui.layout.templates={};pui.retrieveCustomLayoutTemplate=function(b){if(typeof b==="string"&&b.length>0){pui.vg=pui.vg||[];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.vg.push({Em:b,url:pui.normalizeURL(a)})}};
1800
+ va.destroy=function(){var b=this.container;if(b){delete b.setTab;delete b.getTab;delete b.refresh;delete b.hideTab;delete b.showTab}pui.layout.Template.prototype.destroy.call(this)};va.Dg=function(){return this.selectedTab!=null?parseInt(this.selectedTab,10):-1};pui.Xm=function(b,a){pui.layout.Template.call(this,b,a);this.lg=document.createElement("fieldset");this.lg.className="layout";this.Ak=document.createElement("legend");this.lg.appendChild(this.Ak);this.I=document.createElement("div");this.I.setAttribute("container","true");this.lg.appendChild(this.I);this.container.appendChild(this.lg)};pui.Xm.prototype=Object.create(pui.layout.Template.prototype);
1801
+ pui.Xm.prototype.setProperty=function(b,a){switch(b){case "legend":this.Ak.innerHTML=a;break;case "legend align":this.Ak.setAttribute("align",a);break;case "legend style":this.Ak.style=a;break;case "border style":this.lg.style.borderStyle=a;break;case "border width":this.lg.style.borderWidth=a;break;case "border color":this.lg.style.borderColor=a;break;default:return false}if(this.container.layout&&this.container.layout.Qa)this.container.layout.Qa[b]=a;return true};pui.layout.templates={};pui.retrieveCustomLayoutTemplate=function(b){if(typeof b==="string"&&b.length>0){pui.wg=pui.wg||[];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.wg.push({Em:b,url:pui.normalizeURL(a)})}};
1802
1802
  pui.maximizeLayout=function(b){var a=tb(b).parentNode,c=Hb.designer,e=c.zh(a);c.aa.start("Maximize Layout");c.aa.add(e,"left");c.aa.add(e,"top");c.aa.add(e,"width");c.aa.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.od[c.Na.ub]=true;c.tp();c.selection.clear();a.layout.resize();c.selection.add(e);
1803
1803
  c.ob.refresh();ub(b)};
1804
1804
  pui.layout.template.load=function(b){var a;a=b.dom;a=a!=null?a.cloneNode(false):document.createElement("div");a.innerHTML="";var c=pui.layout.templates[b.template];switch(b.template){case "css panel":a=pui.layout.template.Gw(b,a);break;case "accordion":new pui.lk(b,a);break;case "tab panel":new pui.kd(b,a);break;case "responsive layout":new (b.designMode?pui.designer.jB.Zg:pui.Zg)(b,a);break;case "fieldset":new pui.Xm(b,a);break;default:a=typeof c=="function"?c(b):pui.layout.template.$t(b,a);break}return a};
@@ -1819,7 +1819,7 @@ bind:false},{name:"parent field set",a:"blank",help:"This property specifies the
1819
1819
  {name:"inline style",type:"long",U:"style",a:"blank",help:'This property lets you define CSS properties that will be applied to the widget. These properties are applied inline, and therefore take precedence over those defined in a CSS class. Multiple properties may be provided, separated by a semi-colon. You can learn more about CSS properties at the following link: http://www.w3schools.com/cssref/. If you define CSS properties that are defined by other widget properties, the widget properties overrule the CSS inline properties. These CSS properties are ignored and should be set using the widget properties: "position", "visibility", "display", "left", "right", "top", "bottom", "width", "height", "overflow"'},
1820
1820
  {name:"Events",category:true},{name:"onclick",wf:true,type:"js",a:"blank",help:"Initiates a client-side script when the element is clicked."},{name:"ondblclick",wf:true,type:"js",a:"blank",help:"Initiates a client-side script when the element is double-clicked."},{name:"onmousedown",type:"js",a:"blank",help:"Initiates a client-side script when the mouse is pressed down on this element."},{name:"onmousemove",type:"js",a:"blank",help:"Initiates a client-side script when the mouse is moving within this element."},
1821
1821
  {name:"onmouseout",type:"js",a:"blank",help:"Initiates a client-side script when the mouse is moved off this element."},{name:"onmouseover",type:"js",a:"blank",help:"Initiates a client-side script when the mouse is moved over this element."},{name:"onmouseup",type:"js",a:"blank",help:"Initiates a client-side script when the mouse button is released off this element."}]);return a};
1822
- pui.layout.Fk=function(b,a){if(pui.layout.kf===null||typeof pui.layout.kf!="object")pui.layout.kf={};for(var c=0,e=a.length;c<e;c++){var f=a[c];if(pui.layout.kf[f]==null){pui.layout.kf[f]={name:f};var g=Ac();if(g[f]!=null&&typeof g[f]=="object")try{for(var h in g[f])pui.layout.kf[f][h]=g[f][h];delete pui.layout.kf[f].controls;delete pui.layout.kf[f].selection}catch(l){console.log("error adopting property:",l.message)}}b.push(pui.layout.kf[f])}};
1822
+ pui.layout.Fk=function(b,a){if(pui.layout.lf===null||typeof pui.layout.lf!="object")pui.layout.lf={};for(var c=0,e=a.length;c<e;c++){var f=a[c];if(pui.layout.lf[f]==null){pui.layout.lf[f]={name:f};var g=Ac();if(g[f]!=null&&typeof g[f]=="object")try{for(var h in g[f])pui.layout.lf[f][h]=g[f][h];delete pui.layout.lf[f].controls;delete pui.layout.lf[f].selection}catch(l){console.log("error adopting property:",l.message)}}b.push(pui.layout.lf[f])}};
1823
1823
  pui.layout.mx=function(b){var a=["none","dotted","dashed","solid","double","groove","ridge","inset","outset"],c=["thin","medium","thick","0px","1px","2px","3px","4px","5px","Other..."],e=[{name:"lazy load",choices:["true","false"],a:"false",help:"When true, render contents of a tab or section after the user activates it instead of rendering everything immediately (which can be slower)."},{name:"onlazyload",type:"js",a:"blank",help:"Initiates a client-side script after a container is rendered lazily. (See lazy load property.)"}];
1824
1824
  switch(b){case "css panel":b=[{name:"has header",choices:["true","false"],a:"theme",help:"Determines whether the panel has a header."},{name:"header height",format:"number",a:"theme",help:"Specifies the height of the panel header."},{name:"header text",a:"placeholder",help:"Specifies the text that will appear in the panel header.",translate:true},{name:"header theme",choices:["A - Black","B - Blue","C - Gray","D - Light Gray","E - Yellow","F - Green","G - Red","Other..."],a:"theme",help:"Specifies the jQuery Mobile theme to use for the panel header. The theme is associated with a set of cascading style sheet rules.",
1825
1825
  s:["other"],sb:"When you enter a custom value, a CSS class is add to the body of the panel in the form of <code>ui-btn-up-YourCustomValue</code>, where YourCustomValue is the exact text that was entered, including special characters, such as ' ', '-', and '_', and regardless of their validity in a CSS class name. This will allow you to customize the styling of the header using that CSS class name."},{name:"body theme",choices:["A - Black","B - Blue","C - Gray","D - Light Gray","E - Yellow","F - Green",
@@ -1834,14 +1834,14 @@ s:["other"],choices:["1","2","3","4","5","6","Other..."]},{name:"style rules",ty
1834
1834
  choices:["true","false"]},{name:"container names",type:"list",a:"blank",help:"List of container names to aid in designing screens. Names appear only in Responsive Dialog preview and Designer canvas."}];break;case "tab panel":b=[];pui.layout.Fk(b,["tab names","active tab","ontabclick","tab response","response AID","bypass validation","color","font family","font size","font style","font weight","text decoration","text transform"]);b.push({name:"movable tabs",choices:["true","false"],type:"boolean",
1835
1835
  e:["indicator","expression"],f:true,a:"false",help:"Allows the user to rearrange tabs at runtime.",context:"dspf"});Array.prototype.push.apply(b,e);break;case "fieldset":b=[{name:"legend",help:"Text to display in the field set&apos;s legend.",a:"Field Set",translate:true,bind:true,showDesignValue:true},{name:"legend align",help:"The alignment of the legend text.",a:"left",choices:["left","center","right"]},{name:"legend style",help:"Styling for the legend text.",type:"long"},{name:"border style",
1836
1836
  choices:a,a:"css",help:"The style of the element&apos;s border."},{name:"border width",format:"px",choices:c,a:"css",help:"The thickness of the element&apos;s border.",s:["other"]}];pui.layout.Fk(b,["border color"]);break;default:e={template:b,Xy:true};b=pui.layout.templates[b];if(typeof b=="function")return b(e);return pui.layout.template.$t(e)}return pui.layout.Yi(b)};pui.layout.template.Mo=function(b){function a(e,f){if(e!=null)if(!(!f&&e.layout!=null)){if(e.getAttribute!=null)if(e.getAttribute("container")=="true"){c.push(e);e.io=c.length}var g=e.childNodes;if(!(g==null||g.length==null))for(var h=0;h<g.length;h++)a(g[h],false)}}var c=[];a(b,true);return c};
1837
- pui.layout.Ef=function(b){for(var a,c=0,e=0,f=b;f!=null&&(f.layout==null||f.parentNode.getAttribute("container")=="true");){c+=f.offsetLeft+f.clientLeft-f.scrollLeft;e+=f.offsetTop+f.clientTop-f.scrollTop;if(f==b.parentNode)if(a=pui.getComputedStyle(f)){if(a["padding-left"])c-=parseInt(a["padding-left"],10);else if(a.paddingLeft)c-=parseInt(a.paddingLeft,10);if(a["padding-top"])e-=parseInt(a["padding-top"],10);else if(a.paddingTop)e-=parseInt(a.paddingTop,10)}if(f.parentNode&&f.parentNode!=f.offsetParent&&
1838
- f.parentNode.className=="puiresp"){c-=f.parentNode.scrollLeft;e-=f.parentNode.scrollTop}f=f.offsetParent}if(f!=null){c+=f.offsetLeft+f.clientLeft-f.scrollLeft;e+=f.offsetTop+f.clientTop-f.scrollTop;if(f==b.parentNode)if(a=pui.getComputedStyle(f)){if(a["padding-left"])c-=parseInt(a["padding-left"],10);else if(a.paddingLeft)c-=parseInt(a.paddingLeft,10);if(a["padding-top"])e-=parseInt(a["padding-top"],10);else if(a.paddingTop)e-=parseInt(a.paddingTop,10)}}return{x:c,y:e}};pui.layout.template.applyTemplate=function(b){var a,c,e,f=b.dom;a=pui.layout.template.Mo;c=pui.layout.template.Zt;for(var g=a(f),h=g.length-1;h>=0;h-=1)if(g[h].firstChild!=null)break;h+=1;b.Mf=h;b=pui.layout.template.load(b);c(b);var l=a(b),n=[];if(h>l.length)return{success:false,msg:"The property cannot be applied because it removes a layout section that contains other widgets. \n\nYou must remove the contained widgets first."};for(a=0;a<h;a++){var m=g[a];e=l[a];for(c=m.firstChild;c!=null;){m.removeChild(c);
1837
+ pui.layout.Ff=function(b){for(var a,c=0,e=0,f=b;f!=null&&(f.layout==null||f.parentNode.getAttribute("container")=="true");){c+=f.offsetLeft+f.clientLeft-f.scrollLeft;e+=f.offsetTop+f.clientTop-f.scrollTop;if(f==b.parentNode)if(a=pui.getComputedStyle(f)){if(a["padding-left"])c-=parseInt(a["padding-left"],10);else if(a.paddingLeft)c-=parseInt(a.paddingLeft,10);if(a["padding-top"])e-=parseInt(a["padding-top"],10);else if(a.paddingTop)e-=parseInt(a.paddingTop,10)}if(f.parentNode&&f.parentNode!=f.offsetParent&&
1838
+ f.parentNode.className=="puiresp"){c-=f.parentNode.scrollLeft;e-=f.parentNode.scrollTop}f=f.offsetParent}if(f!=null){c+=f.offsetLeft+f.clientLeft-f.scrollLeft;e+=f.offsetTop+f.clientTop-f.scrollTop;if(f==b.parentNode)if(a=pui.getComputedStyle(f)){if(a["padding-left"])c-=parseInt(a["padding-left"],10);else if(a.paddingLeft)c-=parseInt(a.paddingLeft,10);if(a["padding-top"])e-=parseInt(a["padding-top"],10);else if(a.paddingTop)e-=parseInt(a.paddingTop,10)}}return{x:c,y:e}};pui.layout.template.applyTemplate=function(b){var a,c,e,f=b.dom;a=pui.layout.template.Mo;c=pui.layout.template.Zt;for(var g=a(f),h=g.length-1;h>=0;h-=1)if(g[h].firstChild!=null)break;h+=1;b.Nf=h;b=pui.layout.template.load(b);c(b);var l=a(b),n=[];if(h>l.length)return{success:false,msg:"The property cannot be applied because it removes a layout section that contains other widgets. \n\nYou must remove the contained widgets first."};for(a=0;a<h;a++){var m=g[a];e=l[a];for(c=m.firstChild;c!=null;){m.removeChild(c);
1839
1839
  e.appendChild(c);c=m.firstChild}}for(a=0;a<l.length;a++){e=l[a];e.getAttribute("stretch")=="true"&&n.push(e)}f.innerHTML="";for(c=b.firstChild;c!=null;){f.appendChild(b.removeChild(c));c=b.firstChild}if(b.panel!=null){f.panel=b.panel;f.sizeMe=f.panel.resize;f.panel.container=f}b.Ja!=null&&b.Ja.kj(f);return{success:true,We:n,xc:l}};
1840
- pui.layout.template.getProxy=function(b){var a=pui.layout.template.load({template:b.template,properties:b,designMode:true,$l:true});pui.layout.template.Zt(a);if(b.width!=null)a.style.width=b.width;if(b.height!=null)a.style.height=b.height;if(b["css class"]!=null)a.className=b["css class"];return a};pui.widgets.add({name:"layout",rg:false,defaults:{},Gf:function(b){if(b.dom.layout==null){b.dom.layout=new pui.layout.pk;b.dom.layout.O=b.dom;b.dom.layout.d=b.d;if(b.design)b.d.Ap=false}var a=b.dom.layout;if(!b.design&&b.propertyName=="field type"){b.dom.layout.setProperty("center vertically",b.properties["center vertically"]);b.dom.layout.setProperty("center horizontally",b.properties["center horizontally"])}var c=true;if(b.propertyName=="field type"||b.propertyName=="template"){b.dom.style.padding=
1840
+ pui.layout.template.getProxy=function(b){var a=pui.layout.template.load({template:b.template,properties:b,designMode:true,$l:true});pui.layout.template.Zt(a);if(b.width!=null)a.style.width=b.width;if(b.height!=null)a.style.height=b.height;if(b["css class"]!=null)a.className=b["css class"];return a};pui.widgets.add({name:"layout",sg:false,defaults:{},Hf:function(b){if(b.dom.layout==null){b.dom.layout=new pui.layout.pk;b.dom.layout.O=b.dom;b.dom.layout.d=b.d;if(b.design)b.d.Ap=false}var a=b.dom.layout;if(!b.design&&b.propertyName=="field type"){b.dom.layout.setProperty("center vertically",b.properties["center vertically"]);b.dom.layout.setProperty("center horizontally",b.properties["center horizontally"])}var c=true;if(b.propertyName=="field type"||b.propertyName=="template"){b.dom.style.padding=
1841
1841
  "0px";b.dom.style.borderWidth="0px";if(!b.design&&b.properties.height=="100%"&&b.dom.parentNode.id=="pui"){var e=pui.getComputedStyle(b.dom.parentNode);if(e!=null&&(e.height=="0px"||e.height=="auto")){pui.Re.padding=document.body.style.padding;document.body.style.padding="0";pui.Re.height=document.body.style.height;document.body.style.height="100%";document.body.parentNode.style.padding="0";document.body.parentNode.style.height="100%";pui.Re.overflow=document.body.style.overflow;document.body.style.overflow=
1842
1842
  "hidden";b.dom.parentNode.style.padding="0";b.dom.parentNode.style.height="100%"}if(window.cordova&&window.device.platform=="iOS"){b.dom.layout.Kr=true;b.dom.parentNode.style.overflowX="hidden";b.dom.parentNode.style.overflowY="hidden";yc(b.dom.layout)}}else if(!b.design&&b.dom.parentNode.Ac&&(pui.Fh(b.properties.height)||pui.Fh(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.Eo();b.dom.d=b.d;b.d.Ap=
1843
1843
  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.xr(b.dom,b.properties["inline style"],true)}}b.dom.layout.uy=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=Gc(pui.layout.Yi());for(var g in b.properties)f[g]||(b.dom.layout.Qa[g]=b.properties[g]);g=b.dom.layout.applyTemplate();
1844
- if(g.success==false&&e!=null){a.template=e;setTimeout(a.cg.bind(a),1,"template",e);c=false}if(g.success==true&&(!b.design||Hb.Ih||Hb.ny))b.dom.layout.xc=g.xc}c&&b.dom.layout.setProperty(b.propertyName,b.value)},qc:function(b){var a=b.dom;if(a)(a=a.Ja)&&a.Cu(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||se(b.layout)}}});if(!window.profound)window.profound={};window.profound.ai||(window.profound.ai={});if(!window.pui)window.pui={};
1844
+ if(g.success==false&&e!=null){a.template=e;setTimeout(a.dg.bind(a),1,"template",e);c=false}if(g.success==true&&(!b.design||Hb.Ih||Hb.ny))b.dom.layout.xc=g.xc}c&&b.dom.layout.setProperty(b.propertyName,b.value)},qc:function(b){var a=b.dom;if(a)(a=a.Ja)&&a.Cu(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||se(b.layout)}}});if(!window.profound)window.profound={};window.profound.ai||(window.profound.ai={});if(!window.pui)window.pui={};
1845
1845
  profound.ai.Chat=function(){function b(){if(window.pui&&window.pui.ide&&window.pui.ide.designerId)return true;return false}function a(){var x=Ext.getCmp("centerPanel").getActiveTab(),W={};if(x.isAIAgent&&x.aiAgent)W.aiAgent=x.aiAgent;if(x.isAIAgent&&x.dataAccess)W.dataAccess=x.dataAccess;Object.assign(W,Object.fromEntries(Object.entries(x.pjsModule).filter(function(la){return typeof la[1]!=="function"})));return W}function c(){function x(){var la=r.lastChild.querySelectorAll(".pai-chart");if(la.length!==
1846
1846
  0)if(profound.ai.Pk){for(var ma=0;ma<la.length;ma++){var oa=la[ma],ka=JSON.parse(oa.getAttribute("data-config"));oa.removeAttribute("data-config");oa.chart=new window.Chart(oa.querySelector("canvas"),ka);oa=oa.querySelector("span");oa.parentNode.removeChild(oa)}r.scrollTop=r.scrollHeight}else{W++;W<20&&setTimeout(x,1E3)}}var W=0;x()}function e(x){function W(){x.read().then(function(ka){var Ba=ka.value;if(ka.done){n.hideLoader();c()}else{ka=la.decode(Ba).split("\n");for(Ba=0;Ba<ka.length-1;Ba++){var ra=
1847
1847
  ka[Ba];if(ra){ra=JSON.parse(ra);if(ra.threadId)z=ra.threadId;if(ra.status==="error"){n.hideLoader();n.add({message:"Error: "+ra.message,type:"error"});return}if(ra.status==="calling"){var wa=r.lastChild;ra=wa.innerHTML.replace(aa,"")+'<p>Calling <span class="pai-function-name">'+ra["function"]+"</span>.</p>";n.add({message:ra+aa,type:"agent-response",replace:true})}else if(ra.status==="calls completed"){wa=r.lastChild;var fb="<p>";fb+=ra.count===1?"Call completed.":ra.count+" calls completed.";fb+=
@@ -1887,7 +1887,7 @@ window.Presskey=function(b){Ub(b)};window.PressKey=function(b){Ub(b)};window.PRE
1887
1887
  window.currentDate=function(b,a){if(b==null||b=="Y")slashes=true;if(Db()){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":
1888
1888
  "")+(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}};
1889
1889
  window.currentTime=function(){if(Db())return"TT:TT:TT";else{var b;if(pui&&pui.appJob){if(pui.appJob.sysTime==0)return"";b=new Date(pui.appJob.sysTime*1E3);var a=pui.formatting.keywords.jd["*HMS"].fb.replace(/\B/g,pui.appJob.timeSeparator);return b.format(a,"en_US")}else{b=new Date;return(b.getHours()<10?"0":"")+b.getHours()+":"+(b.getMinutes()<10?"0":"")+b.getMinutes()+":"+(b.getSeconds()<10?"0":"")+b.getSeconds()}}};
1890
- window.currentUser=function(){return Db()?"UUUUUUUUUU":pui.appJob==null||pui.appJob.user==null?"":pui.appJob.user};window.currentFormatNames=Zc;window.getQueryStringParms=$c;window.setCursor=function(b,a){if(arguments.length==1){var c=Ab(b);if(c)if(P=="genie"){if(c.B){pui.response.crow=c.B.row;pui.response.ccol=c.B.col}}else c.uf&&c.ve&&pui.Zd(null,c)}if(arguments.length==2)if(P=="genie"){pui.response.crow=b;pui.response.ccol=a}else{pui.p.row=b;pui.p.column=a}};window.getTarget=tb;
1890
+ window.currentUser=function(){return Db()?"UUUUUUUUUU":pui.appJob==null||pui.appJob.user==null?"":pui.appJob.user};window.currentFormatNames=Zc;window.getQueryStringParms=$c;window.setCursor=function(b,a){if(arguments.length==1){var c=Ab(b);if(c)if(P=="genie"){if(c.B){pui.response.crow=c.B.row;pui.response.ccol=c.B.col}}else c.vf&&c.ve&&pui.Zd(null,c)}if(arguments.length==2)if(P=="genie"){pui.response.crow=b;pui.response.ccol=a}else{pui.p.row=b;pui.p.column=a}};window.getTarget=tb;
1891
1891
  window.inDesignMode=Db;window.loadPCCommandApplet=cd;window.runPCCommand=bd;window.copyToClipboard=function(b){var a=document.getElementById("PCCommandApplet");if(a)a.copyToClipboard(b);else{pui.Gr=b;cd("copyToClipboardCb")}};window.pui.UTF8=pui.pi;window.pui.UTF8.encode=pui.pi.encode;window.pui.UTF8.decode=pui.pi.decode;window.$=na();window.id=window.id;window.pui=pui;window.pui.locales=pui.locales;window.pui.formatting=pui.formatting;window.pui.formatting.leftPad=pui.formatting.leftPad;window.pui.formatting.Date=pui.formatting.Date;window.pui.formatting.Date.y2k=pui.formatting.Date.Rz;window.pui.formatting.Date.getSuffix=pui.formatting.Date.getSuffix;window.pui.formatting.Date.getMonthNum=pui.formatting.Date.ix;window.pui.formatting.Date.isMidnight=pui.formatting.Date.Lx;
1892
1892
  window.getSystemName=function(){return Db()?"SSSSSSSS":pui.appJob==null||pui.appJob.sysName==null?"":pui.appJob.sysName};function De(b){var a={};switch(b){case "runtimeMsg":a.closeMessage="This will end your session.";a["no connection message"]="Unable to reach server. Check your connection and try again.";a["upload file limit"]="Limit of &1 file(s) exceeded.";a["upload size limit"]="Limit of &1MB per file exceeded";a["upload no files"]="No files selected.";a["upload duplicate file"]="Duplicate files selected.";a["upload file exists"]="One or more files already exist on the file system.";a["upload prevented"]="Operation prevented by exit program.";
1893
1893
  a["upload input limit"]="Total input size limit exceeded.";a["upload no session"]="Not connected to a valid session.";a["upload timeout"]="Transaction timed out.";a["upload invalid response"]="The server response is missing or invalid.";a["upload cancelled"]="Upload canceled.";a["close browser text"]="To complete the log off process, please close your browser window.";a["session ended text"]="Your session has ended.";a["outside ucs2"]="Characters are outside of UCS-2 range.";a["invalid number"]="&1 is not a valid number.";
@@ -2582,5 +2582,5 @@ pui.runtimeText.es_ES=Ge("runtimeText");pui.runtimeMsg.es_MX=He("runtimeMsg");pu
2582
2582
  pui.runtimeMsg.nl_NL=Oe("runtimeMsg");pui.runtimeText.nl_NL=Oe("runtimeText");pui.runtimeMsg.pt_BR=Pe("runtimeMsg");pui.runtimeText.pt_BR=Pe("runtimeText");pui.runtimeMsg.pt_PT=Qe("runtimeMsg");pui.runtimeText.pt_PT=Qe("runtimeText");pui.runtimeMsg.zh_HK=Re("runtimeMsg");pui.runtimeText.zh_HK=Re("runtimeText");if(typeof window.pui=="undefined")window.pui={};
2583
2583
  window.pui.Timer=function(){var b=(new Date).getTime(),a=false,c,e=this;this.timeout=600;this.showDebugInfo=false;this.action=null;this.checkFrequency=1E3;this.resetOnUserActivity=false;this.start=function(){if(!a){if(e.resetOnUserActivity)if(document.body.addEventListener){document.body.addEventListener("keydown",e.reset,false);document.body.addEventListener("mousemove",e.reset,false);document.body.addEventListener("click",e.reset,false);document.body.addEventListener("touchstart",e.reset,false);
2584
2584
  document.body.addEventListener("touchmove",e.reset,false)}else if(document.body.attachEvent){document.body.attachEvent("onkeydown",e.reset);document.body.attachEvent("onmousemove",e.reset);document.body.attachEvent("onclick",e.reset)}e.reset();c=setInterval(e.check,e.checkFrequency);a=true}};this.stop=function(){if(a){clearInterval(c);if(e.resetOnUserActivity)if(document.body.removeEventListener){document.body.removeEventListener("keydown",e.reset,false);document.body.removeEventListener("mousemove",
2585
- e.reset,false)}else if(document.body.detachEvent){document.body.detachEvent("onkeydown",e.reset);document.body.detachEvent("onmousemove",e.reset)}a=false}};this.reset=function(){b=(new Date).getTime()};this.check=function(){var f=(new Date).getTime()-b;if(e.showDebugInfo)document.title=parseInt(f/1E3);if(f>=e.timeout*1E3){e.action!=null&&typeof e.action=="function"&&e.action();e.reset()}}};pui.jb={};pui.jb.Rg=new pui.Timer;pui.jb.Rg.action=function(){var b=true;if(pui.onbeforetimeout!=null&&typeof pui.onbeforetimeout=="function")b=pui.onbeforetimeout();b!==false&&pui.jb.vz();pui.jb.Rg.stop();pui.jb.Gh.stop()};pui.jb.Gh=new pui.Timer;pui.jb.Gh.action=function(){pui.keepAlive()};pui.jb.vz=function(){pui.doSessionTimeout()};
2586
- pui.jb.start=function(){pui.jb.Rg.stop();pui.jb.Gh.stop();if(pui.timeout!=null){var b=pui.timeout-10;if(!(b<3)){pui.jb.Rg.timeout=pui.timeout;pui.jb.Gh.timeout=b;pui.jb.Rg.start();pui.jb.Gh.start()}}};pui.jb.end=function(){pui.jb.Rg.stop();pui.jb.Gh.stop()};
2585
+ e.reset,false)}else if(document.body.detachEvent){document.body.detachEvent("onkeydown",e.reset);document.body.detachEvent("onmousemove",e.reset)}a=false}};this.reset=function(){b=(new Date).getTime()};this.check=function(){var f=(new Date).getTime()-b;if(e.showDebugInfo)document.title=parseInt(f/1E3);if(f>=e.timeout*1E3){e.action!=null&&typeof e.action=="function"&&e.action();e.reset()}}};pui.jb={};pui.jb.Sg=new pui.Timer;pui.jb.Sg.action=function(){var b=true;if(pui.onbeforetimeout!=null&&typeof pui.onbeforetimeout=="function")b=pui.onbeforetimeout();b!==false&&pui.jb.vz();pui.jb.Sg.stop();pui.jb.Gh.stop()};pui.jb.Gh=new pui.Timer;pui.jb.Gh.action=function(){pui.keepAlive()};pui.jb.vz=function(){pui.doSessionTimeout()};
2586
+ pui.jb.start=function(){pui.jb.Sg.stop();pui.jb.Gh.stop();if(pui.timeout!=null){var b=pui.timeout-10;if(!(b<3)){pui.jb.Sg.timeout=pui.timeout;pui.jb.Gh.timeout=b;pui.jb.Sg.start();pui.jb.Gh.start()}}};pui.jb.end=function(){pui.jb.Sg.stop();pui.jb.Gh.stop()};