(function(){"use strict";u8.Mobile.Session=function(t){$.extend(this,u8m.sessionStartupData,t);u8.session=this;u8.Mobile.Application.registerAction("login",this["Action.login"].bind(this))};$.extend(u8.Mobile.Session.prototype,{"Action.login":function(t){var i=t.data;var e=i&&i.startupData;$.extend(this,e);var n=i&&i.returnUrl;if(n){u8.application.navigate(n)}if(window.localStorage){var o=localStorage.getItem("u8/credentials/submit");if(o){localStorage.setItem("u8/credentials",o);localStorage.removeItem("u8/credentials/submit")}}},start:function(t){$.extend(this,t)},dispose:function(t){t()}});u8.Mobile.Session.makeClass({name:"Session"})})();