$.extend(Alltrack.Core, (function() { const _translations = { "aankomsttijd": "aankomsttijd", "api connect logs": "api connect logs", "bloed veilig gesteld": "bloed veilig gesteld", "confirm quantity and price": "confirm quantity and price", "donor #": "donor #", "einde proces": "einde proces", "emails sent": "emails sent", "empty": "empty", "field": "field", "locatie": "locatie", "log in with microsoft": "log in with microsoft", "message": "message", "not empty": "not empty", "ontvangen": "ontvangen", "order lines": "order lines", "order overview": "order overview", "orders": "orders", "overlijden": "overlijden", "php version": "php version", "premade box-line": "premade box-line", "premade boxes": "premade boxes", "procedure afgerond": "procedure afgerond", "qr koelkast": "qr koelkast", "start proces": "start proces", "stock management": "stock management", "suppliers": "suppliers", "uitname locatie": "uitname locatie", "value": "value", "weefsel": "weefsel", "weefsel afgeleverd": "weefsel afgeleverd", "application tissues": { "assignments": "application tissues" }, "assignment": { "assignments": "assignment" }, "assignment status": { "assignments": "assignment status" }, "bone number": { "assignments": "bone number" }, "circulation stop": { "assignments": "circulation stop" }, "confirm1": { "assignments": "confirm1" }, "confirm1signature": { "assignments": "confirm1signature" }, "confirm2": { "assignments": "confirm2" }, "confirm2signature": { "assignments": "confirm2signature" }, "cornea bank": { "assignments": "cornea bank" }, "donor dob": { "assignments": "donor dob" }, "donor number": { "assignments": "donor number" }, "institution application": { "assignments": "institution application" }, "institution explantation": { "assignments": "institution explantation" }, "obduction": { "assignments": "obduction" }, "organ donor": { "assignments": "organ donor" }, "rejected": { "assignments": "rejected" }, "search blood": { "assignments": "search blood" }, "skin number": { "assignments": "skin number" }, "valve number": { "assignments": "valve number" }, "default value": { "customfields": "default value" }, "error retrieving data. try again or report this to your application administrator.": { "customfields": "error retrieving data. try again or report this to your application administrator." }, "material type": { "customfields": "material type" }, "unit": { "customfields": "unit" }, "custom field": { "customvalues": "custom field" }, "custom value": { "customvalues": "custom value" }, "material item": { "customvalues": "material item" }, "about": { "dashboard": "about" }, "action": { "dashboard": "action" }, "application version": { "dashboard": "application version" }, "cancel": { "dashboard": "cancel" }, "change": { "dashboard": "change" }, "change password": { "dashboard": "change password" }, "confirm new password": { "dashboard": "confirm new password" }, "current password": { "dashboard": "current password" }, "dashboard": { "dashboard": "dashboard" }, "date from": { "dashboard": "date from" }, "date until": { "dashboard": "date until" }, "export csv": { "dashboard": "export csv" }, "export excel": { "dashboard": "export excel" }, "export json": { "dashboard": "export json" }, "export pdf": { "dashboard": "export pdf" }, "export xml": { "dashboard": "export xml" }, "legal owner": { "dashboard": "legal owner" }, "length": { "dashboard": "length" }, "licence expires": { "dashboard": "licence expires" }, "licence holder": { "dashboard": "licence holder" }, "log out": { "dashboard": "log out" }, "mandatory fields": { "dashboard": "mandatory fields" }, "new password": { "dashboard": "new password" }, "object name": { "dashboard": "object name" }, "object type": { "dashboard": "object type" }, "password strength": { "dashboard": "password strength" }, "photos": { "dashboard": "photos" }, "search": { "dashboard": "search" }, "search date": { "dashboard": "search date" }, "surface": { "dashboard": "surface" }, "title": { "dashboard": "title" }, "vignet": { "dashboard": "vignet" }, "width": { "dashboard": "width" }, "yes": { "dashboard": "yes" }, "email templates": { "emailtemplates": "email templates" }, "subject": { "emailtemplates": "subject" }, "answer text": { "formanswers": "answer text" }, "form answers": { "formanswers": "form answers" }, "form question": { "formanswers": "form question" }, "form result": { "formanswers": "form result" }, "allow photos": { "formquestions": "allow photos" }, "api mapping": { "formquestions": "API mapping" }, "dependencies": { "formquestions": "dependencies" }, "form question type": { "formquestions": "form question type" }, "max length": { "formquestions": "max length" }, "max value": { "formquestions": "max value" }, "max width": { "formquestions": "max width" }, "min length": { "formquestions": "min length" }, "min value": { "formquestions": "min value" }, "question": { "formquestions": "question" }, "source": { "formquestions": "source" }, "dynamic": { "formquestiontypes": "dynamic" }, "field type": { "formquestiontypes": "field type" }, "answer": { "formresults": "answer" }, "completed": { "formresults": "completed" }, "concept": { "formresults": "concept" }, "date": { "formresults": "date" }, "form collection": { "formresults": "form collection" }, "acties": { "forms": "acties" }, "actions": { "forms": "actions" }, "add answer option": { "forms": "add answer option" }, "add question": { "forms": "add question" }, "close": { "forms": "close" }, "create dynamic form": { "forms": "create dynamic form" }, "description": { "forms": "description" }, "form": { "forms": "form" }, "form questions": { "forms": "form questions" }, "form type": { "forms": "form type" }, "forms": { "forms": "forms" }, "general": { "forms": "general" }, "go back": { "forms": "go back" }, "mandatory": { "forms": "mandatory" }, "maximum value": { "forms": "maximum value" }, "minimum value": { "forms": "minimum value" }, "next": { "forms": "next" }, "question answers": { "forms": "question answers" }, "question name": { "forms": "question name" }, "question text": { "forms": "question text" }, "question type": { "forms": "question type" }, "sort order": { "forms": "sort order" }, "tissue id": { "forms": "tissue id" }, "form test": { "formtests": "form test" }, "form tests": { "formtests": "form tests" }, "text": { "formtests": "text" }, "address": { "locations": "address" }, "city": { "locations": "city" }, "extra text": { "locations": "extra text" }, "fax": { "locations": "fax" }, "latitude": { "locations": "latitude" }, "location": { "locations": "location" }, "longitude": { "locations": "longitude" }, "phone number": { "locations": "phone number" }, "postcode": { "locations": "postcode" }, "stock notification email": { "locations": "stock notification email" }, "tissue type": { "locations": "tissue type" }, "website": { "locations": "website" }, "last modified": { "locationtypes": "last modified" }, "last modified by": { "locationtypes": "last modified by" }, "location type": { "locationtypes": "location type" }, "name": { "locationtypes": "name" }, "{0} password reset link": { "login": "{0} password reset link" }, "add": { "login": "add" }, "an email with password reset instructions has been sent to the email address of user \"{0}\", if that user exists and has an email address.": { "login": "an email with password reset instructions has been sent to the email address of user \"{0}\", if that user exists and has an email address." }, "authorization server returned an invalid state parameter": { "login": "authorization server returned an invalid state parameter" }, "delete": { "login": "delete" }, "edit": { "login": "edit" }, "history": { "login": "history" }, "i forgot my password": { "login": "i forgot my password" }, "if you did not, please ignore this email and do nothing.": { "login": "if you did not, please ignore this email and do nothing." }, "if you have any problems, use a more modern browser, like a recent version of chrome or firefox.": { "login": "if you have any problems, use a more modern browser, like a recent version of chrome or firefox." }, "log in": { "login": "log in" }, "login with okta": { "login": "login with okta" }, "name and/or password incorrect": { "login": "name and/or password incorrect" }, "ok": { "login": "ok" }, "password": { "login": "password" }, "password reset": { "login": "password reset" }, "permissions": { "login": "permissions" }, "please click the following link to reset your password:": { "login": "please click the following link to reset your password:" }, "please enter your username and click \"send\" to receive an email with instructions on how to reset your password.": { "login": "please enter your username and click \"send\" to receive an email with instructions on how to reset your password." }, "send": { "login": "send" }, "this is an automatically generated message.": { "login": "this is an automatically generated message." }, "this link is only valid for one hour and will work only once!": { "login": "this link is only valid for one hour and will work only once!" }, "timezone": { "login": "timezone" }, "unable to login": { "login": "unable to login" }, "unknown upn for current logged in okta user": { "login": "unknown upn for current logged in okta user" }, "username": { "login": "username" }, "you are using internet explorer, which is not supported anymore.": { "login": "you are using internet explorer, which is not supported anymore." }, "you cannot reply to it.": { "login": "you cannot reply to it." }, "you requested a password reset link for your {0} account.": { "login": "you requested a password reset link for your {0} account." }, "code": { "menuitems": "code" }, "custom fields": { "menuitems": "custom fields" }, "custom values": { "menuitems": "custom values" }, "icon": { "menuitems": "icon" }, "items": { "menuitems": "items" }, "menu item parent": { "menuitems": "menu item parent" }, "menu items": { "menuitems": "menu items" }, "none": { "menuitems": "none" }, "path": { "menuitems": "path" }, "position": { "menuitems": "position" }, "reports": { "menuitems": "reports" }, "show add": { "menuitems": "show add" }, "show delete": { "menuitems": "show delete" }, "show edit": { "menuitems": "show edit" }, "show in menu": { "menuitems": "show in menu" }, "show view": { "menuitems": "show view" }, "types": { "menuitems": "types" }, "units": { "menuitems": "units" }, "content": { "notifications": "content" }, "notification": { "notifications": "notification" }, "order line status": { "orderlines": "order line status" }, "ordered quantity": { "orderlines": "ordered quantity" }, "received quantity": { "orderlines": "received quantity" }, "unit price": { "orderlines": "unit price" }, "delivery date": { "orders": "delivery date" }, "fulfilled date": { "orders": "fulfilled date" }, "order number": { "orders": "order number" }, "order value": { "orders": "order value" }, "supplier": { "orders": "supplier" }, "container": { "premadeboxes": "container" }, "created at": { "premadeboxes": "created at" }, "first upcoming expiry date": { "premadeboxes": "first upcoming expiry date" }, "order": { "processes": "order" }, "process": { "processes": "process" }, "duplicate": { "roles": "duplicate" }, "menu item": { "roles": "menu item" }, "view": { "roles": "view" }, "backup enabled": { "settings": "backup enabled" }, "backup time": { "settings": "backup time" }, "block time": { "settings": "block time" }, "channel settings pdf location": { "settings": "channel settings pdf location" }, "date time format": { "settings": "date time format" }, "invoice prefix": { "settings": "invoice prefix" }, "ip access": { "settings": "ip access" }, "language": { "settings": "language" }, "max login attempts": { "settings": "max login attempts" }, "minimal stock": { "settings": "minimal stock" }, "minimum number of capitals": { "settings": "minimum number of capitals" }, "minimum number of digits": { "settings": "minimum number of digits" }, "minimum password length": { "settings": "minimum password length" }, "mod pictures enabled": { "settings": "mod pictures enabled" }, "session expiration": { "settings": "session expiration" }, "setting": { "settings": "setting" }, "show tooltips": { "settings": "show tooltips" }, "smtp enabled": { "settings": "smtp enabled" }, "smtp from": { "settings": "smtp from" }, "smtp host": { "settings": "smtp host" }, "smtp port": { "settings": "smtp port" }, "smtp to": { "settings": "smtp to" }, "status": { "statuses": "status" }, "addresses": { "suppliers": "addresses" }, "team": { "teams": "team" }, "teams": { "teams": "teams" }, "tissue": { "tissues": "tissue" }, "tissues": { "tissues": "tissues" }, "a minimum length of {0}": { "translations": "a minimum length of {0}" }, "a password must have": { "translations": "a password must have" }, "add {0}": { "translations": "add {0}" }, "are you sure you want to delete {0} \"{1}\"?": { "translations": "are you sure you want to delete {0} \"{1}\"?" }, "assignment statuses": { "translations": "assignment statuses" }, "assignments": { "translations": "assignments" }, "at least {0} capitals": { "translations": "at least {0} capitals" }, "at least {0} digits": { "translations": "at least {0} digits" }, "at least {0} symbols": { "translations": "at least {0} symbols" }, "contain": { "translations": "contain" }, "context": { "translations": "context" }, "definitions": { "translations": "definitions" }, "delete {0}": { "translations": "delete {0}" }, "devices": { "translations": "devices" }, "duplicate {0}": { "translations": "duplicate {0}" }, "dynamic forms": { "translations": "dynamic forms" }, "edit {0}": { "translations": "edit {0}" }, "end with": { "translations": "end with" }, "equal": { "translations": "equal" }, "equals": { "translations": "equals" }, "form question fields": { "translations": "form question fields" }, "form question types": { "translations": "form question types" }, "form question-type": { "translations": "form question-type" }, "form results": { "translations": "form results" }, "greater than": { "translations": "greater than" }, "greater than or equal": { "translations": "greater than or equal" }, "less than": { "translations": "less than" }, "less than or equal": { "translations": "less than or equal" }, "location types": { "translations": "location types" }, "locations": { "translations": "locations" }, "material": { "translations": "material" }, "milestone steps": { "translations": "milestone steps" }, "milestone templates": { "translations": "milestone templates" }, "milestones": { "translations": "milestones" }, "no filter": { "translations": "no filter" }, "not contain": { "translations": "not contain" }, "not equal": { "translations": "not equal" }, "notifications": { "translations": "notifications" }, "now": { "translations": "now" }, "original": { "translations": "original" }, "password successfully changed.": { "translations": "password successfully changed." }, "process defaults": { "translations": "process defaults" }, "processes": { "translations": "processes" }, "roles": { "translations": "roles" }, "save": { "translations": "save" }, "settings": { "translations": "settings" }, "start with": { "translations": "start with" }, "statuses": { "translations": "statuses" }, "success": { "translations": "success" }, "system": { "translations": "system" }, "the new password has less than {0} digits.": { "translations": "the new password has less than {0} digits." }, "the new passwords don't match.": { "translations": "the new passwords don't match." }, "translation": { "translations": "translation" }, "translations": { "translations": "translations" }, "users": { "translations": "users" }, "zpl labels": { "translations": "zpl labels" }, "email": { "users": "email" }, "enabled": { "users": "enabled" }, "expiry": { "users": "expiry" }, "first name": { "users": "first name" }, "last activity": { "users": "last activity" }, "last name": { "users": "last name" }, "preposition": { "users": "preposition" }, "role": { "users": "role" }, "scan code": { "users": "scan code" }, "user": { "users": "user" } }; function translate(original, context) { if (!original) return original; let _original = original; //.toLowerCase(); let translation; if (context && _translations[_original.toLowerCase()] && _translations[_original.toLowerCase()][context.toLowerCase()]) { translation = _translations[_original.toLowerCase()][context.toLowerCase()]; } else if (_translations[_original.toLowerCase()] && _translations[_original.toLowerCase()]['_']) { translation = _translations[_original.toLowerCase()]['_']; } else { translation = _translations[_original.toLowerCase()]; if ($.type(translation) !== 'string') { for (const prop in translation) { translation = translation[prop]; break; } } } return translation || original; } return { translate : translate }; })()); // IIFE