// Copyright (C) 2001-2021 OTRS AG, https://otrs.com/\n";
"use strict";var OTRS=OTRS||{};OTRS.Agent=OTRS.Agent||{};OTRS.Agent.App=OTRS.Agent.App||{};OTRS.Agent.App.Login=(function(TargetNS){TargetNS.Init=function(){if(!OTRS.Debug.BrowserCheck()){$('#LoginBox').hide();$('#OldBrowser').show();return;}
OTRS.Form.EnableForm($('#LoginBox form, #PasswordBox form'));if($('#User').val()&&$('#User').val().length){$('#Password').focus();}
else{$('#User').focus();}
$('#LostPassword, #BackToLogin').click(function(){$('#LoginBox, #PasswordBox').toggle();return false;});Now=new Date();$('#TimeOffset').val(Now.getTimezoneOffset());}
return TargetNS;}(OTRS.Agent.App.Login||{}));
// Copyright (C) 2001-2021 OTRS AG, https://otrs.com/\n";
"use strict";var OTRS=OTRS||{};OTRS.Agent=OTRS.Agent||{};OTRS.Agent.App=OTRS.Agent.App||{};OTRS.Agent.App.Dashboard=(function(TargetNS){TargetNS.Init=function(){OTRS.UI.DnD.Sortable($(".SidebarColumn"),{Handle:'.Header h2',Items:'.CanDrag',Placeholder:'DropPlaceholder',Tolerance:'pointer',Distance:15,Opacity:0.6});OTRS.UI.DnD.Sortable($(".ContentColumn"),{Handle:'.Header h2',Items:'.CanDrag',Placeholder:'DropPlaceholder',Tolerance:'pointer',Distance:15,Opacity:0.6});};TargetNS.RegisterUpdatePreferences=function($ClickedElement,ElementID,$Form){if(isJQueryObject($ClickedElement)&&$ClickedElement.length){$ClickedElement.click(function(){var URL=OTRS.Config.Get('Baselink')+OTRS.AJAX.SerializeForm($Form);OTRS.AJAX.ContentUpdate($('#'+ElementID),URL,function(){OTRS.UI.ToggleTwoContainer($('#'+ElementID+'-setting'),$('#'+ElementID));OTRS.UI.Table.InitCSSPseudoClasses();});return false;});}};return TargetNS;}(OTRS.Agent.App.Dashboard||{}));
