webpackJsonp([20],{165:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined;var o=n(7),i=r(o),a=n(166),s=r(a),u=n(272),c=r(u),l=n(169),d=r(l),f=n(171),_=r(f),S=n(175),g=r(S),m=n(273),E=r(m),A=n(177),O=r(A),R=n(123),h=r(R),v=n(72),p=r(v),T=n(179),P=r(T),N=n(182),w=r(N),G=angular.module("authorization",[s["default"],c["default"],E["default"],O["default"],h["default"],p["default"],_["default"],g["default"],P["default"],d["default"]]);G.directive(w["default"].NG_NAME,w["default"]),t.module=G,t["default"]="authorization",i["default"].addModule("authorization")},166:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined;var o=n(10),i=r(o),a=n(0),s=r(a),u=n(167),c=r(u),l=angular.module("authorization.forgotPassword",[s["default"],i["default"]]);l.directive(c["default"].NG_NAME,c["default"]),t.module=l,t["default"]="authorization.forgotPassword"},167:function(e,t,n){"use strict";function r(){return{restrict:"A",controller:i["default"],controllerAs:"forgotPasswordCtrl"}}t.__esModule=!0,t["default"]=r;var o=n(168),i=function(e){return e&&e.__esModule?e:{"default":e}}(o);r.NG_NAME="ewfForgotPassword"},168:function(e,t,n){"use strict";function r(e,t){"ngInject";function n(){var e=i.captcha&&i.captcha.getCaptchaData();return t.sendResetPassword(i.email,e).then(function(){i.isOnWay=!0,i.error=""})["catch"](function(e){i.error=e,r()})}function r(){i.captcha&&i.captcha.refresh()}function o(){e.redirectToLogin()}var i=this;Object.assign(i,{sendResetPassword:n,redirectToLoginPage:o,email:"",error:"",isOnWay:!1})}r.$inject=["navigationService","passwordService"],t.__esModule=!0,t["default"]=r},169:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=t.module=undefined;var r=n(170),o=function(e){return e&&e.__esModule?e:{"default":e}}(r),i=angular.module("authorization.tenant-login",["common.utils"]);i.directive(o["default"].NG_NAME,o["default"]),t.module=i,t["default"]="authorization.tenant-login"},170:function(e,t,n){"use strict";function r(e){"ngInject";return e({templateUrl:"components/auth/dhl-tenant-login/dhl-tenant-login.html",controller:o,controllerAs:"tenantLoginCtrl"})}function o(e,t,n,r){"ngInject";function o(){n.isAuthorized()&&s()}function i(e){r.handleUserLogin(e.groupMembership,s)}function s(){var n=e.getParamsFromUrl([a["default"].ORIGINATOR,a["default"].AUTO_REDIRECT]),r=n[0],o=n[1];e.getValidLink(r).then(function(e){var n=e.redirectUrl;JSON.parse(o)&&t.openHrefInNewWindow(n),t.forceRedirectToHome()})["catch"](e.handleTenantLoginError)}var u=this;Object.assign(u,{$onInit:o,handleLogin:i})}r.$inject=["component"],o.$inject=["tenantService","navigationService","userService","groupSwitcherService"],t.__esModule=!0,t["default"]=r,t.TenantLoginController=o;var i=n(1),a=function(e){return e&&e.__esModule?e:{"default":e}}(i);r.NG_NAME="ewfTenantLogin"},171:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined;var o=n(172),i=r(o),a=n(174),s=r(a),u=angular.module("authorization.sso-login",["common.utils"]);u.directive(i["default"].NG_NAME,i["default"]).service(s["default"].NG_NAME,s["default"]),t.module=u,t["default"]="authorization.sso-login"},172:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){"ngInject";return e({templateUrl:"components/auth/dhl-sso-login/dhl-sso-login.html",controller:i,controllerAs:"ssoLoginCtrl"})}function i(e,t,n,r,o,i,a,u){"ngInject";function l(){var e=n.getParamsFromUrl([s["default"].SSO_ID,s["default"].SSO_CODE,s["default"].SSO_STATE]),r=e[0],o=e[1],i=e[2];o&&i?f(o,i):r?t.redirectToIamService(r).then(m)["catch"](_):h()}function f(e,n,r,o){var i=r||{},a=i.termsAndConditionsAccepted,s=i.privacyPolicyAccepted,u={code:e,state:n,termsAndConditionsAccepted:a,privacyPolicyAccepted:s,additionalAgreements:o};return t.ssoLogin(u).then(E)["catch"](_)}function _(e){var t=e.data,n=t.errors,r=t.errorDetails,o=t.redirectUrl;return o?w(o):v(n)||G(n)?h():p(n)?g(d["default"][n[0]]):S(r,n)}function S(e,t){return!e||i.isUserInactive(e)?g(t):P(e)}function g(e){r.redirectToSsoError({ssoError:e})}function m(t){e.location.href=t}function E(e){A(),o.clearAppliedNodeInfo(),O(e)}function A(){a.removeRootCookie(c["default"].USER_LANGUAGE)}function O(e){T(e,function(){return R(e)})}function R(e){u.showDashboardNotification(),i.redirectToHome(e)}function h(){r.redirectToLogin()}function v(e){return e[0]===M}function p(e){return!!d["default"][e[0]]}function T(e,t){a.handleUserLogin(e.groupMembership,t)}function P(e){a.checkTermsPrivacyAgreements(e,C,N),C=!1}function N(e,t){C=!0;var r=n.getParamsFromUrl([s["default"].SSO_CODE,s["default"].SSO_STATE]);return f(r[0],r[1],e,t)}function w(e){m(e)}function G(e){return e[0]===L}var C=!1,I=this,M="errors.login_backend-error_company-not-configured",L="errors.common_backend-error_sso-token-processing-error";Object.assign(I,{$onInit:l})}o.$inject=["component"],i.$inject=["$window","ssoService","pathService","navigationService","corporateNodeSwitcherService","loginService","loginExternalService","dashboardNotificationService"],t.__esModule=!0,t["default"]=o,t.SsoLoginController=i;var a=n(1),s=r(a),u=n(14),c=r(u),l=n(173),d=r(l);o.NG_NAME="ewfSsoLogin"},173:function(e,t,n){"use strict";t.__esModule=!0,t["default"]={"login-forgot-reset-password.login_backend-error_login-msg-self-lock":"LOGIN_FORGOT_RESET_PASSWORD.LOGIN_MSG_SELF_LOCK_SSO","login-forgot-reset-password.login_backend-error_login-msg-admin-lock":"LOGIN_FORGOT_RESET_PASSWORD.LOGIN_MSG_ADMIN_LOCK_SSO","login-forgot-reset-password.login_backend-error_login-msg-account-deleted":"LOGIN_FORGOT_RESET_PASSWORD.LOGIN_MSG_ACCOUNT_DELETED_SSO","login-forgot-reset-password.login_backend-error_login-msg-pending-activation":"LOGIN_FORGOT_RESET_PASSWORD.LOGIN_MSG_PENDING_ACTIVATION_SSO","login-forgot-reset-password.login_backend-error_login-msg-wrong-user-or-password":"LOGIN_FORGOT_RESET_PASSWORD.LOGIN_MSG_WRONG_USER_OR_PASSWORD_SSO"}},174:function(e,t,n){"use strict";function r(e){"ngInject";function t(t){return e.get(""+r+t).then(function(e){return e.data})}function n(t){return e.post(o,t).then(function(e){return e.data})}var r="/api/auth/sso/login/",o="/api/auth/sso/token";return{redirectToIamService:t,ssoLogin:n}}r.$inject=["$http"],t.__esModule=!0,t["default"]=r,r.NG_NAME="ssoService"},175:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=t.module=undefined;var r=n(176),o=function(e){return e&&e.__esModule?e:{"default":e}}(r),i=angular.module("authorization.sso-login-error",["common.utils"]);i.directive(o["default"].NG_NAME,o["default"]),t.module=i,t["default"]="authorization.sso-login-error"},176:function(e,t,n){"use strict";function r(e){"ngInject";return e({templateUrl:"components/auth/dhl-sso-login-error/dhl-sso-login-error.html",controller:o,controllerAs:"ssoLoginErrorCtrl"})}function o(e,t,n){"ngInject";function r(){o.error=t(e.getParamFromUrl(a["default"].SSO_ERROR)||n.ERRORS.BAD_GATEWAY)}var o=this;Object.assign(o,{error:"",$onInit:r})}r.$inject=["component"],o.$inject=["pathService","nlsFilter","Messages"],t.__esModule=!0,t["default"]=r,t.SsoLoginErrorController=o;var i=n(1),a=function(e){return e&&e.__esModule?e:{"default":e}}(i);r.NG_NAME="ewfSsoLoginError"},177:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined;var o=n(0),i=r(o),a=n(178),s=r(a),u="authorization.register.resetPassword",c=angular.module(u,[i["default"]]);c.directive(s["default"].NG_NAME,s["default"]),t.module=c,t["default"]=u},178:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){"ngInject";return e({controller:i,controllerAs:"resetPasswordCtrl",templateUrl:"/templates/reset-password-component-template.html"})}function i(e,t,n,r,o,i,a,u,l,d,f){"ngInject";function _(){B=o.getParamFromUrl(c["default"].TOKEN),V=o.getParamFromUrl(c["default"].SCENARIO),S()}function S(){var e,t=(e={},e[q.RESET]=p,e[q.CREATE]=P,e[q.CHANGE]=N,e),n=t[V];return n?n():undefined}function g(){return!Y&&K||m()}function m(){return V===q.CHANGE}function E(){return K&&h()}function A(){return K&&v()}function O(){return Y&&h()}function R(){return Y&&v()}function h(){return V===q.RESET}function v(){return V===q.CREATE}function p(){i.validateResetToken(B).then(function(){return K=!0})["catch"](D)}function T(t){e.document.title=t}function P(){T(f.LOGIN_FORGOT_RESET_PASSWORD.RESET_PASSWORD_BUTTON_CREATE_PASSWORD),i.validateCreateToken(B).then(function(){return K=!0})["catch"](D)}function N(){T(f.LOGIN_FORGOT_RESET_PASSWORD.RESET_PASSWORD_BUTTON_CHANGE_PASSWORD),z.username=u.getLoginAttempt(),z.username||y()}function w(e){var t={token:B,newPassword:z.model.password,termsAndConditionsAccepted:z.termsAgreement,privacyPolicyAccepted:z.privacyAgreement,additionalAgreements:e};i.resetPassword(t).then(function(){W({title:f.LOGIN_FORGOT_RESET_PASSWORD.RESET_PASSWORD_HEADER_RESET_PASSWORD_SUCCESS,message:f.LOGIN_FORGOT_RESET_PASSWORD.RESET_PASSWORD_MSG_RESET_PASSWORD_SUCCESS})})["catch"](function(e){return j(e,w)})}function G(e){var t={token:B,password:z.model.password,termsAndConditionsAccepted:z.termsAgreement,privacyPolicyAccepted:z.privacyAgreement,additionalAgreements:e};i.createPassword(t).then(function(){W({title:f.LOGIN_FORGOT_RESET_PASSWORD.RESET_PASSWORD_HEADER_CREATE_PASSWORD_SUCCESS,message:f.LOGIN_FORGOT_RESET_PASSWORD.RESET_PASSWORD_MSG_CREATE_PASSWORD_SUCCESS})})["catch"](function(e){return j(e,G)})}function C(e){var t={username:z.username,oldPassword:z.model.currentPassword,newPassword:z.model.password,termsAndConditionsAccepted:z.termsAgreement,privacyPolicyAccepted:z.privacyAgreement,additionalAgreements:e};i.changeExpiredPassword(t).then(function(){W({title:f.LOGIN_FORGOT_RESET_PASSWORD.RESET_PASSWORD_HEADER_CHANGE_PASSWORD_SUCCESS,message:f.LOGIN_FORGOT_RESET_PASSWORD.RESET_PASSWORD_MSG_CHANGE_PASSWORD_SUCCESS})})["catch"](function(e){return j(e,C)})}function I(){i.resendPasswordResetEmail(B).then(y)["catch"](j)}function M(){i.resendPasswordCreateEmail(B).then(y)["catch"](j)}function L(){return v()?a.saveCreatePasswordMessage:h()?a.saveResetPasswordMessage:angular.noop}function D(e){var t=e.data.errors||e.data.fieldErrors,n=t[0],r=n===X;(n===Q||r)&&(L()(r),y()),U(e.status)}function U(e){e===s["default"].UNPROCESSABLE_ENTITY?Y=!0:e===s["default"].BAD_REQUEST?z.errors.push(Q):n.error("Unexpected status passed to reset-password-controller")}function W(e){b(),t.showMessageDialog(e)["finally"](y)}function j(e,t){var n=e.data,r=n===undefined?{}:n;z.errors=r.errors||[],F(r.errorDetails,t)}function F(e,t){if(e&&e[0].errorParams){var n=e[0].errorParams;J||l.processTermsAndPrivacyScenario(n).then(function(e){$(e),x(n,t)}),J=!1}}function y(){r.redirectToLogin()}function b(){z.errors=[]}function k(){E()?w():A()?G():m()&&C()}function $(e){J=!0,e&&Object.assign(z,{termsAgreement:e.termsAndConditionsAccepted,privacyAgreement:e.privacyPolicyAccepted})}function H(e,t){d.showAdditionalAgreementsOnAuth(e).then(t),b()}function x(e,t){if(t)return void H(e,t);w()}var z=this,V=null,B=null,K=!1,Y=!1,J=!1,q={RESET:"reset",CREATE:"create",CHANGE:"change"},Q="login-forgot-reset-password.login_backend-error_link-invalid",X="registration.registration_backend-error_link-expired";Object.assign(z,{$onInit:_,resetPassword:w,createPassword:G,changePassword:C,resendPasswordResetEmail:I,resendPasswordCreateEmail:M,isPasswordFormAvailable:g,isChangeScenario:m,isResetPasswordTokenValid:E,isCreatePasswordTokenValid:A,isResetPasswordTokenExpired:O,isCreatePasswordTokenExpired:R,submitPasswordForm:k,isCreateScenario:v,model:{},errors:[],termsAgreement:!1,privacyAgreement:!1})}o.$inject=["component"],i.$inject=["$window","modalService","logService","navigationService","pathService","passwordService","loginService","userService","termsAndPrivacyAcceptanceService","additionalAgreementsService","Messages"],t.__esModule=!0,t["default"]=o,t.ResetPasswordController=i;var a=n(6),s=r(a),u=n(1),c=r(u);o.NG_NAME="ewfResetPassword"},179:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined;var o=n(0),i=r(o),a=n(10),s=r(a),u=n(180),c=r(u),l=n(181),d=r(l),f=angular.module("common.widgets.home-alert",[i["default"],s["default"]]).directive(d["default"].NG_NAME,d["default"]).service(c["default"].NG_NAME,c["default"]);t.module=f,t["default"]="common.widgets.home-alert"},180:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n,r){"ngInject";function o(){var n=e.getParamFromUrl(a["default"].TOKEN);return n?s(n):t.verifyTls().then(function(e){return i(e)})}function i(o){return e.getParamFromUrl(a["default"].DECLINE_SHIPMENT)?{message:r.LOGIN_FORGOT_RESET_PASSWORD.LOGIN_ALERT_SHIPMENT_DECLINED_SUCCESSFULLY,type:u["default"].SUCCESS}:t.getTrustEvErrorVisibility()?{message:r.LOGIN_FORGOT_RESET_PASSWORD.LOGIN_ALERT_TRUST_EV_VALIDATION_FAILED,type:u["default"].ERROR,isPermanent:!0}:d(o)?l():n.getStoredAlert()}function s(e){return t.verifyEmail(e).then(function(){return{message:r.LOGIN_FORGOT_RESET_PASSWORD.LOGIN_HEADER_EMAIL_VERIFIED,type:u["default"].INFO}})["catch"](c)}function c(e){return{message:e.data.errors[0],type:u["default"].ERROR}}function l(){return{message:r.ERRORS.BROWSER_UPGRADE,type:u["default"].WARNING,isPermanent:!0,isClosable:!0}}function d(e){return["tls1","tls1.1"].includes(e)}return{getHomeAlert:o}}o.$inject=["pathService","loginPlaceholderService","homeAlertStorageService","Messages"],t.__esModule=!0,t["default"]=o;var i=n(1),a=r(i),s=n(60),u=r(s);o.NG_NAME="homeAlertService"},181:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){"ngInject";return e({controller:i,controllerAs:"homeAlertCtrl",templateUrl:"home-alert.html",require:{externalAccessCtrl:"?^ewfExternalAccess"},bindings:{externalAccess:"