function s(r,o){let a=r.value;o.splice(0,o.length,...a)}function n(r,o,a){return e=>{switch(console.error("Error from updateStatistics: ",e),e.status){case 400:console.error("Bad Request: ",e.message);break;case 401:console.error("Unauthorized: ",e.message),r&&r.error(a.getTranslation("Token expired, navigating to logout page."),a.getTranslation("Error")),setTimeout(()=>{o.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",e.message);break;case 404:console.error("Not Found: ",e.message);break;case 500:console.error("Internal Server Error: ",e.message);break;case 503:console.error("Internal Server Error: ",e.message);break;default:console.error("Unknown Error: ",e.message);break}}}export{s as a,n as b};
/**i18n:557364621938d8343d66734722390263df08d9a6046a2573ce83f95c485272f3*/
