$.extend(Alltrack.Core, (function() { const _translations = {"bank":"bank","bloed veilig gesteld":"bloed veilig gesteld","bone":"bone","cornea":"cornea","donor #":"donor #","einde proces":"einde proces","eta":"eta","export opendocument":"export opendocument","field":"field","heart":"heart","locatie":"locatie","message":"message","ontvangen":"ontvangen","overlijden":"overlijden","skin":"skin","start proces":"start proces","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"},"archived":{"formquestions":"archived"},"dependencies":{"formquestions":"dependencies"},"dynamic scaling":{"formquestions":"dynamic scaling"},"form question type":{"formquestions":"form question type"},"max height":{"formquestions":"max height"},"max length":{"formquestions":"max length"},"max value":{"formquestions":"max value"},"max width":{"formquestions":"max width"},"min height":{"formquestions":"min height"},"min length":{"formquestions":"min length"},"min value":{"formquestions":"min value"},"min width":{"formquestions":"min width"},"question":{"formquestions":"question"},"source":{"formquestions":"source"},"dynamic":{"formquestiontypes":"dynamic"},"field type":{"formquestiontypes":"field type"},"answer":{"formresults":"answer"},"answers":{"formresults":"answers"},"answers export":{"formresults":"answers export"},"completed":{"formresults":"completed"},"concept":{"formresults":"concept"},"date":{"formresults":"date"},"error":{"formresults":"error"},"form collection":{"formresults":"form collection"},"loading...":{"formresults":"loading..."},"no answers found.":{"formresults":"no answers found."},"old":{"formresults":"old"},"show answer":{"formresults":"show answer"},"show answers":{"formresults":"show answers"},"unable to load answers.":{"formresults":"unable to load answers."},"version":{"formresults":"version"},"your session has expired":{"formresults":"your session has expired"},"acties":{"forms":"acties"},"actions":{"forms":"actions"},"add answer option":{"forms":"add answer option"},"add question":{"forms":"add question"},"apimapping":{"forms":"apimapping"},"close":{"forms":"close"},"create dynamic form":{"forms":"create dynamic form"},"data via api":{"forms":"data via api"},"description":{"forms":"description"},"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"},"pdf type vita":{"forms":"pdf type vita"},"pdf via api":{"forms":"pdf via api"},"question answers":{"forms":"question answers"},"question is dependent on:":{"forms":"question is dependent on:"},"question name":{"forms":"question name"},"question text":{"forms":"question text"},"question type":{"forms":"question type"},"question will be active when given answer:":{"forms":"question will be active when given answer:"},"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"},"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"},"log in with microsoft":{"login":"log in with microsoft"},"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."},"{0} password reset link":{"login":"{0} password reset link"},"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":{"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"},"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