var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(c,b,a){c instanceof String&&(c=String(c));for(var d=c.length,e=0;e>>0,$jscomp.propertyToPolyfillSymbol[e]=$jscomp.IS_SYMBOL_NATIVE? $jscomp.global.Symbol(e):$jscomp.POLYFILL_PREFIX+a+"$"+e),$jscomp.defineProperty(d,$jscomp.propertyToPolyfillSymbol[e],{configurable:!0,writable:!0,value:b})))};$jscomp.polyfill("Array.prototype.find",function(c){return c?c:function(b,a){return $jscomp.findInternal(this,b,a).v}},"es6","es3");var gDialogZindex=10100,ESCAPE_KEYCODE=27;function GetDisplay(c){return c?"":"none"}function GetDialogDocument(){var c=document;null==c.body&&(c=getTopAppWindow().document);return c} function FloatingFrame(c,b,a){this.ID=c;this.topDoc=GetDialogDocument();a&&(this.topDoc=a.Document?a.Document:this.topDoc,this.Width=a.Width,this.ShowShadow=void 0==a.ShowShadow||a.ShowShadow);(a?void 0==a.CreateShell||a.CreateShell:1)&&0==$("#"+this.ID,this.topDoc).length&&this.CreateShell(b)} FloatingFrame.prototype.CreateShell=function(c){$("body",this.topDoc).append('');var b=$("#"+this.ID,this.topDoc);this.ShowShadow?(b.append('
'), b.find(".popupWin_shad_body").append(c)):b.append(c)}; FloatingFrame.prototype.Show=function(c){c&&(0==$("#"+this.ID+"_modal_screen",this.topDoc).length&&$("body",this.topDoc).append('
'),$("#"+this.ID+"_modal_screen",this.topDoc).css({overflow:"hidden",position:"absolute",left:"0px",top:"0px",width:"100%",height:"100%",zIndex:gDialogZindex++}).show());0==$("#"+this.ID+"_if",this.topDoc).length&&$("body",this.topDoc).append(''); c=$("#"+this.ID,this.topDoc);$("#"+this.ID+"_if",this.topDoc).css("z-index",gDialogZindex++);navigator.userAgent.match(/MSIE 9/)&&c.show();c.css("z-index",gDialogZindex++).center({inside:this.topDoc.window}).show();navigator.userAgent.match(/MSIE 9/)&&c.center({inside:this.topDoc});$("#"+this.ID+"_if",this.topDoc).css({position:"absolute",left:c.offset().left,top:c.offset().top,width:c.width(),height:c.height()}).show()}; FloatingFrame.prototype.Hide=function(){$("#"+this.ID+", #"+this.ID+"_modal_screen, #"+this.ID+"_if",this.topDoc).hide()}; function Dialog(c,b,a,d){this.Title=b;this.Icon="none";d||(d={});this.Icon=d.Icon||this.Icon;this.CentreContent=d.CentreContent;this.CloseButtonEnabled=void 0==d.CloseButtonEnabled||d.CloseButtonEnabled;this.AllowEscape=d.AllowEscape;d.CreateShell=!1;Dialog.baseConstructor.call(this,c,"",d);if(0==$("#"+this.ID,this.topDoc).length){this.CreateShell('

'); this.SetIcon(this.Icon);this.SetTitle(this.Title);$("#"+this.ID+" .popupWin_dialogue",this.topDoc).append(a);var e=this;if(this.CloseButtonEnabled)$("#"+this.ID+" .popupWin_bttn_close",this.topDoc).on("click",function(){e.Close()});$("#"+this.ID+" .popupWin_top",this.topDoc).closest("tr").on("mousedown",function(f){e.DragStart(f)});$(this.topDoc).on("mousemove",function(f){e.Drag(f)});$(this.topDoc).on("mouseup",function(){e.DragStop()});if(void 0==this.AllowEscape||this.AllowEscape)$("#"+this.ID, this.topDoc).off("keydown").on("keydown",function(f){e.KeyHandler(f)});else $("#"+this.ID,this.topDoc).off("keydown")}}Dialog.inheritsFrom(FloatingFrame);Dialog.prototype.Show=function(c){void 0==c&&(c=!0);Dialog.superClass.Show.call(this,c);if(this.CentreContent){var b=0;$("#"+this.ID+" .popupWin_foot_bttns .bttn_float_right",this.topDoc).each(function(){b+=$(this).outerWidth()+parseInt(GetStyleValue(this,"marginLeft"),10)+5});$("#"+this.ID+" .popupWin_foot_bttn_centered_shell",this.topDoc).width(b)}}; Dialog.prototype.Close=function(){this.Hide()};Dialog.prototype.SetIcon=function(c){this.Icon=c;$("#"+this.ID+"_icon",this.topDoc).attr("class","").addClass("popupWin_top_icon_"+this.Icon)};Dialog.prototype.SetTitle=function(c){this.Title=c;$("#"+this.ID+" .popupWin_top_div h1",this.topDoc).text(this.Title)}; Dialog.prototype.AddAction=function(c,b,a){0==$("#"+this.ID+" .popupWin_foot_bttns",this.topDoc).length&&$("#"+this.ID+" .popupWin_dialogue",this.topDoc).after('
');$("#"+this.ID+" .popupWin_foot_bttns",this.topDoc).append('
'+c+'
'); $("#"+this.ID+" .bttn_float_right:last",this.topDoc).on("click",b);a&&(this.DefaultAction=b)};Dialog.prototype.ClearActions=function(){$("#"+this.ID+" .popupWin_foot_bttns",this.topDoc).empty();this.DefaultAction=null};Dialog.prototype.AddCloseAction=function(){var c=this;this.AddAction(t_("[ME_TXT-Close]"),function(){c.Close()})}; Dialog.prototype.AddOKAndCancelActions=function(c,b,a,d,e){a||(a=t_("[ME_TXT-OK]"));d||(d=t_("[ME_TXT-Cancel]"));var f=this;this.AddAction(d,function(){f.Close();b&&b()});this.AddAction(a,function(){var g=c();(g||void 0==g)&&f.Close()},e)};Dialog.prototype.AddYesAndNoActions=function(c,b,a,d){a||(a=t_("[ME_TXT-Yes]"));d||(d=t_("[ME_TXT-No]"));this.AddOKAndCancelActions(c,b,a,d)}; Dialog.prototype.DragStart=function(c){if(c=c||window.event)this.DragStartPos={x:c.screenX,y:c.screenY},this.DragStartOffset=$("#"+this.ID,this.topDoc).offset()}; Dialog.prototype.Drag=function(c){if(this.DragStartPos&&(c=c||window.event)){var b=c.screenX-this.DragStartPos.x;c=c.screenY-this.DragStartPos.y;var a=$(this.topDoc).width()-$("#"+this.ID,this.topDoc).outerWidth()-5,d=$(this.topDoc).height()-$("#"+this.ID,this.topDoc).outerHeight()-5;b={left:Math.min(Math.max(this.DragStartOffset.left+b,0),a),top:Math.min(Math.max(this.DragStartOffset.top+c,0),d)};$("#"+this.ID+", #"+this.ID+"_if",this.topDoc).offset(b)}}; Dialog.prototype.DragStop=function(){this.DragStartOffset=this.DragStartPos=null};Dialog.prototype.KeyHandler=function(c){if(c=c||window.event){var b=c.keyCode||c.which;if(b==ESCAPE_KEYCODE)return this.Close(),c.preventDefault?c.preventDefault():c.returnValue=!1,!1;if(b==ENTER_KEYCODE&&this.DefaultAction)return this.DefaultAction(),c.preventDefault?c.preventDefault():c.returnValue=!1,!1}};function CreateMessageDialog(c,b){return new MessageDialog(c,b)} function MessageDialog(c,b){b||(b={});b.Width||(b.Width=400);b.CentreContent=!0;MessageDialog.baseConstructor.call(this,c,"",'
',b)}MessageDialog.inheritsFrom(Dialog);MessageDialog.prototype.SetMessage=function(c){c=c.replace(/\n/g,"
");$("#"+this.ID+" .popupWin_body_table_txt",this.topDoc).empty().append(c)};MessageDialog.prototype.ShowMessage=function(c,b,a,d){this.SetTitle(c);this.SetIcon(b);this.SetMessage(a);this.Show(d)}; MessageDialog.prototype.Alert=function(c,b,a,d,e){this.ClearActions();var f=this;e?this.AddAction(t_("[ME_TXT-OK]"),function(){e();f.Close()},!0):this.AddAction(t_("[ME_TXT-OK]"),function(){f.Close()},!0);this.ShowMessage(c,a?"warning":"info",b,d)};MessageDialog.prototype.Confirm=function(c,b,a,d,e,f){c||(c=t_("[ME_TXT-Confirm]"));f||(f={});var g=f.Icon||"confirm",k=f.YesCaption;f=f.NoCaption;this.ClearActions();this.AddYesAndNoActions(a,e,k,f);this.ShowMessage(c,g,b,d)}; function InputDialog(c,b){b||(b={});b.Width||(b.Width=500);InputDialog.baseConstructor.call(this,c,"",'
', b)}InputDialog.inheritsFrom(Dialog);InputDialog.prototype.Prompt=function(c,b,a,d,e,f){this.SetTitle(c);$("#"+this.ID+" .popupWin_form_table_descrip",this.topDoc).text(b);$("#"+this.ID+" .popupWin_form_table_txt",this.topDoc).text(a);$("#"+this.ID+" input",this.topDoc).val(d);this.ClearActions();var g=this;this.AddOKAndCancelActions(function(){e($("#"+g.ID+" input",g.topDoc).val())});this.Show(f)}; function TimeoutDialog(c,b,a,d){d||(d={});d.Width||(d.Width=500);this.TimeoutPage=b;this.ReconnectPage=a;this.TimeoutMins=d.TimeoutMins||0;this.TimeoutProximity=d.TimeoutProximity||5;this.LogOffCallback=d.LogOffCallback;this.TimeoutCallback=d.TimeoutCallback;this.AlertSound=d.AlertSound;this.TimeoutProximity=Math.min(this.TimeoutMins,this.TimeoutProximity);d.CloseButtonEnabled=!1;TimeoutDialog.baseConstructor.call(this,c,d);this.StartSessionTimeout()}TimeoutDialog.inheritsFrom(MessageDialog); TimeoutDialog.prototype.StartSessionTimeout=function(){this.SessionTimeout&&(clearTimeout(this.SessionTimeout),this.SessionTimeout=null);var c=this;0
'+t_("[ME_TXT-DoYouWishToStayConnected?]")+"",b=this;this.Confirm(t_("[ME_TXT-DisconnectionWarning]"),c,function(){b.ResetSession(!0)},!0,function(){b.Logoff()},{Icon:"clock",YesCaption:t_("[ME_TXT-Yes]"),NoCaption:t_("[ME_TXT-No]")+ " ("+t_("[ME_TXT-LogOff]")+")"});this.Countdown(60*this.TimeoutProximity);this.AlertSound&&$("#BGSOUND_ID",this.topDoc).attr("src",this.AlertSound)};TimeoutDialog.prototype.TimeoutSession=function(){this.StopCountdown();this.TimeoutCallback&&this.TimeoutCallback();window.location.href=this.TimeoutPage}; TimeoutDialog.prototype.Countdown=function(c){if(0>=c)this.TimeoutSession();else{var b=Math.floor(c/60),a=c%60,d="";0
'+t_("[ME_TXT-Cancel]")+'
';ProgressDialog.baseConstructor.call(this,c,a,b)}ProgressDialog.inheritsFrom(FloatingFrame); ProgressDialog.prototype.SetMessage=function(c){$("#"+this.ID+" .loadPanel_txt",this.topDoc).text(c)};ProgressDialog.prototype.SetCancellationAction=function(c){var b=null!=c&&void 0!=c;$CancelButton=$("#"+this.ID+" .loadPanel_cancel",this.topDoc);$CancelButton.toggle(b).off("click");if(b)$CancelButton.on("click",c)};ProgressDialog.prototype.CancelDelayedShow=function(){this.DelayTimeout&&(clearTimeout(this.DelayTimeout),this.DelayTimeout=null)}; ProgressDialog.prototype.Show=function(c){var b=1E3;c&&(c.Message&&this.SetMessage(c.Message),this.SetCancellationAction(c.CancellationAction),b=c.Delay||b);window.status=t_("[ME_TXT-Pleasewait]")+"...";this.CancelDelayedShow();var a=this;this.DelayTimeout=setTimeout(function(){ProgressDialog.superClass.Show.call(a)},b)};ProgressDialog.prototype.Hide=function(){window.status=t_("[ME_TXT-Done]");this.CancelDelayedShow();ProgressDialog.superClass.Hide.call(this)}; function NotificationDialog(c,b){var a=GetDialogDocument();this.ID="diag_"+c;this.textID=this.ID+"_text";this.NotificationTimer=null;this.SSLSafeURL=function(d){var e=window.location;return(e=(e+"mystr").match(/^https:\/\/[^\/]*\//i))?"url('"+e+d+"')":"url('"+d+"')"};this.Init=function(){$("body",a).append('')};this.ShowNotification=function(d,e){var f=!1;d=d?d.replace(/\n/g,"
"):"";!e||1!=e&&1!=e||(f=!0);e=a.getElementById(this.ID);a.getElementById(this.textID).innerHTML=d;e.style.display=GetDisplay(!0);e.style.visibility="visible";e.style.bottom= "32px";e.style.right="5px";e.style.zIndex=gDialogZindex+10;if(0==f){var g=this;this.NotificationTimer=window.setTimeout(function(){g.ClearNotification()},3E3)}};this.ClearNotification=function(){a.getElementById(this.ID).style.display=GetDisplay(!1);this.NotificationTimer&&clearTimeout(this.NotificationTimer)};this.Init()} function FileChooserDialog(c){var b=null;b=getTopAppWindow?getTopAppWindow().document:document;this.ID="diag_"+c;this.fnActionOK=null;this.posMouseLeft=this.posMouseTop=this.posDiagLeft=this.posDiagTop=0;this.beingDragged=!1;this.txtActualFilePath=this.title=this.source="";this.width=550;this.height=440;this.Init=function(){if(!b.getElementById(this.ID+"_IF")){var a=b.createElement("IFRAME");a.id=this.ID+"_IF";a.src="javascript:false;";a.scrolling="no";a.frameBorder="0";a.style.display="none";b.body.appendChild(a)}!b.getElementById(this.ID+ "_BG")&&(a=b.createElement("DIV"))&&(a.id=this.ID+"_BG",a.style.position="absolute",a.style.left="0px",a.style.top="0px",a.style.width="100%",a.style.height="100%",a.style.visibility="hidden",a.style.overflow="hidden",a.style.zIndex="-1",gBrowserType!=BROWSER_TYPE_IE6&&(a.style.filter="alpha(opacity=0)",a.style.MozOpacity="0",a.style.opacity="0",a.style.background="black"),a.style.display="none",b.body.appendChild(a));if(!b.getElementById(this.ID)&&(a=b.createElement("DIV"))){var d=this;this.txtActualFilePath= "\\";var e=b.createElement("TABLE");var f=b.createElement("TBODY");a.id=this.ID;a.className="frameless_popup";a.style.visibility="hidden";a.style.display="none";a.style.position="absolute";e.className="optionsPanel_table";e.border=0;e.cellPadding=0;e.cellSpacing=0;var g=b.createElement("TR");var k=b.createElement("TD");var h=b.createElement("DIV");k.className="optionsPanel_table_topLeft";h.className="optionsPanel_table_topLeft_div";k.appendChild(h);g.appendChild(k);k=b.createElement("TD");k.className= "optionsPanel_table_top";var l=b.createElement("DIV");h=b.createElement("DIV");var m=b.createElement("H1");m.id=this.ID+"_Title";l.className="optionsPanel_head";h.className="optionsPanel_top_title";h.style.cursor="move";h.appendChild(m);l.appendChild(h);k.appendChild(l);g.style.cursor="move";addEvent(k,"mousedown",function(q){d.HandleMouseDown(q)},!0);addEvent(b,"mouseup",function(q){d.HandleMouseUp(q)},!0);addEvent(b,"mousemove",function(q){d.HandleMouseMove(q)},!0);g.appendChild(k);k=b.createElement("TD"); k.className="optionsPanel_table_topRight";g.appendChild(k);f.appendChild(g);m=b.createElement("TR");var r=b.createElement("TD");r.className="optionsPanel_table_body";r.colSpan="3";var n=b.createElement("DIV");n.className="options_form_gap";n.appendChild(b.createTextNode(""));var p=b.createElement("DIV");p.className="optionsPanel_body_shell";l=b.createElement("TABLE");h=b.createElement("TBODY");l.className="options_form_table_fixed";l.border=0;l.cellSpacing=0;l.cellPadding=0;g=b.createElement("TR"); k=b.createElement("TD");var t=b.createElement("H2");t.id=this.ID+"_FoldersText";t.appendChild(b.createTextNode(t_("[ME_TXT-Folders]")+":"));k.appendChild(t);g.appendChild(k);this.oFolderSelect=b.createElement("SELECT");this.oFolderSelect.id=this.ID+"_FolderSelect";this.oFolderSelect.className="options_select_folderList";this.oFolderSelect.size="4";this.oFolderSelect.style.height="270px";this.oFolderSelect.style.width="320px";k.appendChild(this.oFolderSelect);g.appendChild(k);k=b.createElement("TD"); k.style.width="10px";g.appendChild(k);k=b.createElement("TD");k.style.width="40%";t=b.createElement("H2");t.id=this.ID+"_FoldersText2";t.appendChild(b.createTextNode(t_("[ME_TXT-FolderContents]")+":"));k.appendChild(t);g.appendChild(k);this.oFileSelect=b.createElement("SELECT");this.oFileSelect.id=this.ID+"_FileSelect";this.oFileSelect.className="options_select_folderList";this.oFileSelect.size="4";this.oFileSelect.style.height="270px";this.oFileSelect.style.width="220px";k.appendChild(this.oFileSelect); g.appendChild(k);h.appendChild(g);l.appendChild(h);p.appendChild(l);p.appendChild(n);g=b.createElement("DIV");g.style.styleFloat="left";g.style.cssFloat="left";g.style.padding="2px 5px 0px 0px";g.appendChild(b.createTextNode(t_("[ME_TXT-FileName]")+":"));p.appendChild(g);this.oFilenameInput=b.createElement("INPUT");this.oFilenameInput.id=this.ID+"_Input";this.oFilenameInput.className="textfield";this.oFilenameInput.type="text";this.oFilenameInput.style.width="320px";this.oFilenameInput.style.margin= "0px";this.oFilenameInput.style.padding="0px";p.appendChild(this.oFilenameInput);g=b.createElement("DIV");g.id=this.ID+"_btnOK";g.className="bttn_float_right";g.onclick=function(){d.ActionOK(d.source)};l=b.createElement("DIV");h=b.createElement("DIV");l.className="bttn_left";h.className="compose_bttn_okCancel";h.id=this.ID+"_btnOKText";h.appendChild(b.createTextNode(t_("[ME_TXT-OK]")));l.appendChild(h);h=b.createElement("DIV");h.className="bttn_right";g.appendChild(l);g.appendChild(h);k=b.createElement("DIV"); k.id=this.ID+"_btnCancel";k.className="bttn_float_right";k.onclick=function(){d.ActionCancel()};l=b.createElement("DIV");h=b.createElement("DIV");l.className="bttn_left";h.className="compose_bttn_okCancel";h.id=this.ID+"_btnOKText";h.appendChild(b.createTextNode(t_("[ME_TXT-Cancel]")));l.appendChild(h);h=b.createElement("DIV");h.className="bttn_right";k.appendChild(l);k.appendChild(h);p.appendChild(k);p.appendChild(g);r.appendChild(p);m.appendChild(r);f.appendChild(m);e.appendChild(f);a.appendChild(e); b.body.appendChild(a)}};this.GetData=function(){ServerRequest("LIST-FILES-FOLDERS","Page=1&Folder=\\$FILEROOT&Children=1&ResultDest=DIALOG",!1);ServerRequest("LIST-FILES","Folder=$FILEROOT\\&Page=&SortField=ModifiedDate&SortOrder=Asc&IPP=&ResultDest=DIALOG",!1)};this.ProcessXMLResult=function(a){var d=a.getElementsByTagName("ELEMENT"),e=GetXMLValue(a.attributes.getNamedItem("METHOD"));if("LIST-FILES-FOLDERS"==e){var f=b.getElementById(this.ID+"_FolderSelect");this.ClearList(f);this.AddItemToList(f, "\\","\\");for(a=0;ad?this.posDiagLeft-Math.abs(d)+"px":this.posDiagLeft+Math.abs(d)+"px";f.style.top=0>e?this.posDiagTop-Math.abs(e)+"px":this.posDiagTop+Math.abs(e)+ "px";g.style.top=f.style.top;g.style.left=f.style.left;this.posDiagTop=parseInt(f.style.top,10);this.posDiagLeft=parseInt(f.style.left,10);this.posMouseTop=a.screenY;this.posMouseLeft=a.screenX}};this.HandleKey=function(a){void 0==a&&(a=window.event);var d=0;a&&(d=a.keyCode||a.which);if(d==ESCAPE_KEYCODE)return this.HideDialog(),a.preventDefault?a.preventDefault():a.returnValue=!1,!1};this.HandleKeyPress=function(a){void 0==a&&(a=window.event);var d=0;a&&(d=a.keyCode||a.which);if(d==ENTER_KEYCODE)return this.ActionOK(this.source), a.preventDefault?a.preventDefault():a.returnValue=!1,!1};this.GetTop=function(){return this.posDiagTop};this.GetLeft=function(){return this.posDiagLeft};this.FilenameExists=function(a){for(var d=b.getElementById(this.ID+"_FileSelect"),e=0;e