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AEqB,MAGd2B,kCAAkCD,EAAO,CAAEE,EAAG,MAE9C,IAAIC,EAAOlD,EAAE,eACTmD,EAAUD,EAAKE,QACfC,EAAOH,EAAKI,YAEZH,EACAnD,EAAEuD,KAAK,CACHC,OAAO,EACP9B,IAAK+B,SACLC,SAAU,OACVC,KAAM,OACNN,KAAMA,EACNO,QAAS,SAAUC,GACfC,wBAEA,IAAIC,EAAQ/D,EAAE,gBAGd,GAFA+D,EAAMjB,KAAK,IAEPe,EAASD,QACLC,EAASG,IAAIC,UACbhE,EAAOiE,SAASC,KAAON,EAASG,IAAIC,UAEpChE,EAAOiE,SAAWE,iBAItB,GAAIP,EAASG,IAAIK,gCAAiC,CAC9C,MAAMC,GAAe,QAAiBrE,EAAOsE,gBAC7C,QAAcD,EAAaH,KAC/B,MACIJ,EAAMjB,KAAKe,EAASG,IAAIQ,cACxBT,EAAMU,OACFZ,EAASG,IAAIU,iBACbC,aAIhB,IAGJb,uBAER,IAEA9D,EAAE,eAAe4E,SAAS,CACtBC,MAAO,CACHC,MAAO,CAAEC,UAAU,GACnBC,SAAU,CAAED,UAAU,IAE1BE,SAAU,CACNC,MAAO,CACHA,MAAOC,uBAQvB,GAEH,CA3FD,CA2FGC,OAAQnF,Q,SCrFX,E,SAAA,GAAa,CAAC,oC","sources":["webpack://servicemanagement.app/./scripts/eyeButton.js","webpack://servicemanagement.app/./scripts/common/scriptLoader.ts","webpack://servicemanagement.app/./scripts/revisited/landing.js","webpack://servicemanagement.app/./pagesAssets/landing/landing.ts"],"sourcesContent":["(function ($, window) {\n $.nt = $.nt || {};\n $.nt.EyeButton = function () {\n var spanrevealClicked = function (btnPwd, iconReveal) {\n var $pwd = $(btnPwd);\n var $ico = $(iconReveal);\n if ($pwd.attr('type') === 'password') {\n $pwd.attr('type', 'text');\n $ico.toggleClass('glyphicon-eye-close glyphicon-eye-open');\n } else {\n $pwd.attr('type', 'password');\n $ico.toggleClass('glyphicon-eye-close glyphicon-eye-open');\n }\n\n $pwd.focus();\n };\n\n var pwdBlur = function (btnPwd, iconReveal) {\n var $pwd = $(btnPwd);\n\n if ($pwd.attr('type') !== 'password') {\n var $ico = $(iconReveal);\n\n $pwd.attr('type', 'password');\n $ico.toggleClass('glyphicon-eye-close glyphicon-eye-open');\n }\n };\n\n var initPasswordEyeButtonClicked = function () {\n $('.spanreveal').on('mousedown', function (e) {\n var myElement = document.getElementsByClassName('password-with-reveal');\n\n spanrevealClicked('.password-with-reveal', '.spanreveal');\n\n if (myElement[0] === document.activeElement) {\n e.preventDefault();\n }\n });\n };\n\n var initPasswordConfirmationEyeButtonClicked = function () {\n $('.spanreveal-confirmation').on('mousedown', function (e) {\n var myElement = document.getElementsByClassName('password-confirm-with-reveal');\n\n spanrevealClicked('.password-confirm-with-reveal', '.spanreveal-confirmation');\n\n if (myElement[0] === document.activeElement) {\n e.preventDefault();\n }\n });\n };\n\n var initNewPasswordEyeButtonClicked = function () {\n $('.spanreveal-new').on('mousedown', function (e) {\n var myElement = document.getElementsByClassName('new-password-with-reveal');\n\n spanrevealClicked('.new-password-with-reveal', '.spanreveal-new');\n\n if (myElement[0] === document.activeElement) {\n e.preventDefault();\n }\n });\n };\n\n var initNewConfirmPasswordEyeButtonClicked = function () {\n $('.spanreveal-new-confirm').on('mousedown', function (e) {\n var myElement = document.getElementsByClassName('new-password-confirm-with-reveal');\n\n spanrevealClicked('.new-password-confirm-with-reveal', '.spanreveal-new-confirm');\n\n if (myElement[0] === document.activeElement) {\n e.preventDefault();\n }\n });\n };\n\n var initCurrentPasswordEyeButtonClicked = function () {\n $('.spanreveal-current').on('mousedown', function (e) {\n var myElement = document.getElementsByClassName('current-password-with-reveal');\n\n spanrevealClicked('.current-password-with-reveal', '.spanreveal-current');\n\n if (myElement[0] === document.activeElement) {\n e.preventDefault();\n }\n });\n };\n\n var initHidePasswordWhenBlur = function () {\n $('.password-with-reveal').blur(function (e) {\n pwdBlur('.password-with-reveal', '.spanreveal');\n });\n };\n\n var initHideCurrentPasswordWhenBlur = function () {\n $('.current-password-with-reveal').blur(function (e) {\n pwdBlur('.current-password-with-reveal', '.spanreveal-current');\n });\n };\n\n var initHidePasswordConfirmationWhenBlur = function () {\n $('.password-confirm-with-reveal').blur(function (e) {\n pwdBlur('.password-confirm-with-reveal', '.spanreveal-confirmation');\n });\n };\n var initHideNewPasswordWhenBlur = function () {\n $('.new-password-with-reveal').blur(function (e) {\n pwdBlur('.new-password-with-reveal', '.spanreveal-new');\n });\n };\n var initHideNewConfirmPasswordWhenBlur = function () {\n $('.new-password-confirm-with-reveal').blur(function (e) {\n pwdBlur('.new-password-confirm-with-reveal', '.spanreveal-new-confirm');\n });\n };\n var init = function () {\n initPasswordEyeButtonClicked();\n initPasswordConfirmationEyeButtonClicked();\n initHidePasswordWhenBlur();\n initHidePasswordConfirmationWhenBlur();\n initCurrentPasswordEyeButtonClicked();\n initHideCurrentPasswordWhenBlur();\n initNewPasswordEyeButtonClicked();\n initNewConfirmPasswordEyeButtonClicked();\n initHideNewConfirmPasswordWhenBlur();\n initHideNewPasswordWhenBlur();\n };\n\n $(function () {\n init();\n });\n\n return this;\n };\n\n $.extend($.nt, { eyeButton: new $.nt.EyeButton() });\n})($, window);\n","const scriptLoader = (scripts: string[], callback?: () => void) => {\n var count = scripts.length;\n\n function urlCallback(url: string) {\n return () => {\n --count;\n if (count < 1 && callback !== undefined) {\n callback();\n }\n };\n }\n\n function loadScript(url: string) {\n var s = window.document.createElement('script');\n s.setAttribute('src', url);\n s.onload = urlCallback(url);\n window.document.head.appendChild(s);\n }\n\n for (var script of scripts) {\n loadScript(script);\n }\n};\n\nexport default scriptLoader;\n","import { createRequestUrl } from '../../app/utils/urlBuilder';\nimport { navigateToUrl } from '../../app/utils/pageNavigator';\n\n(function ($, window) {\n function clearLocalStorage() {\n window.localStorage.clear();\n }\n\n function initLogin() {\n if (document.URL.indexOf(\"#login\") > -1) {\n showAddEditForm($(\"#login-container\"));\n }\n\n $('#login-link, #signup-login-link, #login-from-recovery-link').click(function () {\n showAddEditForm($(\"#login-container\"));\n\n $('#password, #email').val('');\n\n var error = $('.login-error');\n error.hide();\n });\n\n $('#login-button').click(function (e) {\n e.preventDefault();\n clearLocalStorage();\n\n var error = $('.login-error');\n error.html('');\n\n var $this = $(this);\n\n // very bad hardcoded y\n showActivityIndicatorNextToTarget($this, { y: 290 });\n\n var form = $('#login-form');\n var isValid = form.valid(),\n data = form.serialize();\n\n if (isValid) {\n $.ajax({\n cache: false,//necessary for IE\n url: loginUrl,\n dataType: 'json',\n type: 'POST',\n data: data,\n success: function (response) {\n hideActivityIndicator();\n\n var error = $('.login-error');\n error.html('');\n\n if (response.success) {\n if (response.obj.returnUrl) {\n window.location.href = response.obj.returnUrl;\n } else {\n window.location = homePageUrl;\n }\n\n } else {\n if (response.obj.twoFactorAuthenticationRequired) {\n const twoFactorUrl = createRequestUrl(window.twoFactorPath);\n navigateToUrl(twoFactorUrl.href);\n } else {\n error.html(response.obj.errorMessage);\n error.show();\n if (response.obj.captchaRequired) {\n showCaptcha();\n }\n }\n }\n }\n });\n } else {\n hideActivityIndicator();\n }\n });\n\n $('#login-form').validate({\n rules: {\n Login: { required: true },\n Password: { required: true }\n },\n messages: {\n login: {\n login: invalidEmailMessage\n }\n }\n });\n }\n\n $(document).ready(function () {\n initLogin();\n });\n\n})(jQuery, window);\n\n\n\n\n","import 'jquery-migrate';\nimport '../../scripts/setupGlobals.js';\nimport 'jquery-validation-unobtrusive';\nimport '../../scripts/bootstrap-multiselect.js';\nimport '../../scripts/add-job/common.js';\nimport '../../scripts/revisited/landing.js';\nimport '../../scripts/eyeButton.js';\nimport scriptLoader from '../../scripts/common/scriptLoader';\n\nscriptLoader(['dist/pwstrength-bootstrap.min.js']);\n"],"names":["$","window","nt","EyeButton","spanrevealClicked","btnPwd","iconReveal","$pwd","$ico","attr","toggleClass","focus","pwdBlur","on","e","myElement","document","getElementsByClassName","activeElement","preventDefault","blur","this","extend","eyeButton","scripts","callback","url","s","count","length","script","createElement","setAttribute","onload","undefined","head","appendChild","ready","URL","indexOf","showAddEditForm","click","val","hide","localStorage","clear","html","$this","showActivityIndicatorNextToTarget","y","form","isValid","valid","data","serialize","ajax","cache","loginUrl","dataType","type","success","response","hideActivityIndicator","error","obj","returnUrl","location","href","homePageUrl","twoFactorAuthenticationRequired","twoFactorUrl","twoFactorPath","errorMessage","show","captchaRequired","showCaptcha","validate","rules","Login","required","Password","messages","login","invalidEmailMessage","jQuery"],"sourceRoot":""}