!function(modules){function __webpack_require__(moduleId){if(installedModules[moduleId])return installedModules[moduleId].exports;var module=installedModules[moduleId]={i:moduleId,l:!1,exports:{}};return modules[moduleId].call(module.exports,module,module.exports,__webpack_require__),module.l=!0,module.exports}var installedModules={};__webpack_require__.m=modules,__webpack_require__.c=installedModules,__webpack_require__.d=function(exports,name,getter){__webpack_require__.o(exports,name)||Object.defineProperty(exports,name,{configurable:!1,enumerable:!0,get:getter})},__webpack_require__.n=function(module){var getter=module&&module.__esModule?function(){return module.default}:function(){return module};return __webpack_require__.d(getter,"a",getter),getter},__webpack_require__.o=function(object,property){return Object.prototype.hasOwnProperty.call(object,property)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=808)}({808:function(module,exports){!function($){function clear_account_migration_error(){["general","email","password"].forEach(function(key){var container=$("#login-error-"+key+"-container"),node=$("#login-error-"+key+"-txt");node.length>0&&node.text(),container.length>0&&container.addClass("hide-elem")})}function directResource(data){var resource=$(formId).find('input[name="resource"]').val();void 0!==data&&"undefined"!==data.resource&&null!=data.resource&&(resource=data.resource),resource||(resource="/"),$(location).attr("href",resource)}function accountMigrate(){ALEXA.axDialog.waiting.open(),$.ajax({url:"/login/ajaxmigration",type:"POST",cache:!1,data:"",dataType:"json",success:function(data){data&&data.errors?openMigrationErrorDialog():1==data.success?directResource():openMigrationErrorDialog()},error:function(data,status,e){openMigrationErrorDialog()}})}function openMigrationErrorDialog(){ALEXA.axDialog.waiting.close();var newOpts,$wrapper=$("#account-migration-error-dialog"),customOpts={width:500,title:"Switch To New Site",modal:!0,close:function(){ALEXA.axDialog.waiting.open(),closeConfirmationDialog($("#account-migration-error-dialog").attr("go_migration"))},dialogClass:"dialog-alexa2 dialog-add-logo alexa-modal-dialog"};$wrapper.attr("go_migration","false"),newOpts=$.extend(!0,{},ALEXA.axDialog.dfOptions,customOpts),$wrapper.dialog(newOpts).dialog("open")}function openMigrationConfirmationDialog(data){var newOpts,$wrapper=$("#account-migration-confirmation-dialog"),customOpts={width:500,title:"Switch To New Site",modal:!0,close:function(){ALEXA.axDialog.waiting.open(),closeConfirmationDialog($("#account-migration-confirmation-dialog").attr("go_migration"))},dialogClass:"dialog-alexa2 dialog-add-logo alexa-modal-dialog"};$wrapper.attr("go_migration","false"),newOpts=$.extend(!0,{},ALEXA.axDialog.dfOptions,customOpts),$wrapper.dialog(newOpts).dialog("open")}function closeConfirmationDialog(m){"true"==m?accountMigrate():"false"==m?$(location).attr("href","/logout"):m&&$.ajax({url:"/login/ajaxlogout",type:"GET",cache:!1,dataType:"json",success:function(data){$(location).attr("href",m)},error:function(data,status,e){$(location).attr("href",m)}})}function login_error(data,status,e){ALEXA.axDialog.waiting.close()}function login_success(data){clear_account_migration_error(),1==data.success?($("#login-errors").addClass("hide-elem"),data.migration_required?(ALEXA.axDialog.waiting.close(),openMigrationConfirmationDialog(data)):directResource(data)):(ALEXA.axDialog.waiting.close(),$("#login-errors").removeClass("hide-elem").find(".note-error").html(data.errors[0]))}var formId="#ajax-login-form";A$.facebook_account_migration=function(){return"https:"==document.location.protocol&&(ALEXA.axDialog.waiting.open(),$.ajax({url:"/login/ajaxfacebooklogin",type:"POST",cache:!1,data:"",dataType:"json",success:function(data){console.log(data),data&&data.errors?$(location).attr("href","/logout"):data.user&&0==data.user.migrated?(ALEXA.axDialog.waiting.close(),openMigrationConfirmationDialog()):directResource()},error:function(data,status,e){console.log(data),$(location).attr("href","/logout")}}),!0)},$(formId).submit(function(event){if(event.preventDefault(),ALEXA.axDialog.waiting.open(),$("#radio-login-new").is(":checked")){var $resource=$("input[name='resource']"),newAcctRes=$resource.val()+"&newacct=1";$resource.val(newAcctRes)}var $form=$(this),action=$form.attr("action"),formData=$form.serialize();$.ajax({url:action,type:"POST",data:formData,dataType:"json",success:login_success,error:login_error})})}(jQuery)}});