{"version":3,"file":"Login-C-kH1y6x.js","sources":["../../../resources/js/Support/getAuthErrorMessage.js","../../../resources/js/Components/Auth/MicrosoftButton.vue","../../../resources/js/Pages/Auth/Login.vue"],"sourcesContent":["const ERROR_CODE_PREFIX = \"ERROR_CODE_\";\n\n/**\n * @param {string} errorCode\n */\nexport default function (errorString) {\n const errorCode = parseInt(errorString.replace(ERROR_CODE_PREFIX, \"\"));\n\n // fallthrough is intentional\n switch (errorCode) {\n // Can be thrown when user does not accept app permissions\n case 420:\n return \"Microsoft SSO sign-in Cancelled\";\n\n // User is valid SSO user but is not registered in Pagabo Group\n case 431:\n // User is valid SSO user but is not registered in the specific product he is trying to access\n // allow-fallthrough\n case 432:\n return \"Your login details are incorrect\";\n\n // Invalid domain calling the endpoint, check if `domains` table record is\n // correct on seal\n case 520:\n // Thrown when a target entity is not found.\n // allow-fallthrough\n case 404:\n return \"Something went wrong, please try again later\";\n default:\n return \"Something went wrong, please try again later\";\n }\n}\n","\n\n\n \n \n Microsoft\n \n\n","\n\n\n \n \n \n \n \n \n\n