$.extend(Alltrack.Core, (function() { const _translations = { " number unit": " number unit", "01/07/18": "01/07/18", "02/08/19": "02/08/19", "04/12/18": "04/12/18", "06/11/18": "06/11/18", "06/12/18": "06/12/18", "09/02/18": "09/02/18", "1": "1", "10": "10", "10ft basket": "10ft basket", "11-10-2019": "11-10-2019", "11/10/19": "11/10/19", "14-10-2019": "14-10-2019", "15/01/19": "15/01/19", "15/02/19": "15/02/19", "15/08/19": "15/08/19", "18/10/19": "18/10/19", "20/02/19": "20/02/19", "21-10-2019": "21-10-2019", "22-11-2018": "22-11-2018", "23-10-2019": "23-10-2019", "23-11-2018": "23-11-2018", "23/10/19": "23/10/19", "24/08/19": "24/08/19", "26/09/18": "26/09/18", "29-03-2019": "29-03-2019", "29-10-2018": "29-10-2018", "30/01/19": "30/01/19", "30/11/18": "30/11/18", "4": "4", "5ft container": "5ft container", "6": "6", "6,2": "6,2", "6ft basket": "6ft basket", "8730000001": "8730000001", "8730cbb079": "8730cbb079", "8739999999": "8739999999", "873ame-4155": "873ame-4155", "873cbb180": "873cbb180", "873md-746": "873md-746", "873mda-188": "873mda-188", "873mdl087": "873mdl087", "8ft basket": "8ft basket", "92403": "92403", "93106": "93106", "93189": "93189", "94422": "94422", "a minimum length of {0}": "a minimum length of {0}", "a password must have": "a password must have", "about": "about", "action code": "action code", "action codes": "action codes", "active": "active", "add": "add", "add {0}": "add {0}", "add location": "add location", "application version": "application version", "approved": "approved", "are all the doors closed and secured?": "are all the doors closed and secured?", "are all the loose items in the units packed and lashed in such a way that they are able to withstand \"the worst weather conditions\"?": "are all the loose items in the units packed and lashed in such a way that they are able to withstand \"the worst weather conditions\"?", "are all the open unit drainage holes free of obstructions?": "are all the open unit drainage holes free of obstructions?", "are all the units still within a minimum of 4 weeks from the date of the next inspection according to the legislation?": "are all the units still within a minimum of 4 weeks from the date of the next inspection according to the legislation?", "are the units free of excessive corrosion and holes? \n\t\t\t(extra attention is required for doors, floors, forklift pockets and hinges)": "are the units free of excessive corrosion and holes? \n\t\t\t(extra attention is required for doors, floors, forklift pockets and hinges)", "are the units free of excessive corrosion and holes? (extra attention is required for doors, floors, forklift pockets and hinges": "are the units free of excessive corrosion and holes? (extra attention is required for doors, floors, forklift pockets and hinges", "are you sure you want to delete {0} \"{1}\"?": "are you sure you want to delete {0} \"{1}\"?", "at least {0} capitals": "at least {0} capitals", "at least {0} digits": "at least {0} digits", "at least {0} symbols": "at least {0} symbols", "awg-1": "awg-1", "awg1": "awg1", "backup enabled": "backup enabled", "backup time": "backup time", "barcode": "barcode", "batch": "batch", "batch lot nr": "batch lot nr", "block time": "block time", "brenda simons-wijnants": "brenda simons-wijnants", "bulk": "bulk", "can't delete {0} \"{1}\", there are {2} with this {0}.": "can't delete {0} \"{1}\", there are {2} with this {0}.", "can't delete {0}!": "can't delete {0}!", "cancel": "cancel", "cancelled": "cancelled", "cargo": "cargo", "cargo checklist general": "cargo checklist general", "cargo line id": "cargo line id", "cause code": "cause code", "cause codes": "cause codes", "cbb-013": "cbb-013", "change": "change", "change password": "change password", "channel settings pdf location": "channel settings pdf location", "check1": "check1", "check10": "check10", "check11": "check11", "check12": "check12", "check13": "check13", "check14": "check14", "check2": "check2", "check3": "check3", "check4": "check4", "check5": "check5", "check6": "check6", "check7": "check7", "check8": "check8", "check9": "check9", "checklist": "checklist", "checklist percentage": "checklist percentage", "class": "class", "code": "code", "code_unique": "code_unique", "collis": "collis", "color": "color", "comment": "comment", "commodity code": "commodity code", "commodity codes": "commodity codes", "confirm new password": "confirm new password", "contain": "contain", "container checklist": "container checklist", "container checklist status": "container checklist status", "container checklists": "container checklists", "coo": "coo", "create trt report": "create trt report", "currency code": "currency code", "current password": "current password", "customs report": "customs report", "customs reports": "customs reports", "customs status": "customs status", "daan te nuijl": "daan te nuijl", "damage": "damage", "damages": "damages", "date": "date", "date time format": "date time format", "definitions": "definitions", "delete": "delete", "delete {0}?": "delete {0}?", "delivery number": "delivery number", "deliverynumber": "deliverynumber", "den helder": "den helder", "den helder (nam-hub)": "den helder (nam-hub)", "description": "description", "destination": "destination", "destination (operator+location)": "destination (operator+location)", "device": "device", "devices": "devices", "dm code": "dm code", "doc date": "doc date", "doc no": "doc no", "download": "download", "duplicate {0}!": "duplicate {0}!", "edit": "edit", "edit {0}": "edit {0}", "email": "email", "enabled": "enabled", "end with": "end with", "equal": "equal", "equals": "equals", "every": "every", "ewc": "ewc", "expiry date": "expiry date", "export csv": "export csv", "export excel": "export excel", "export json": "export json", "export pdf": "export pdf", "export xml": "export xml", "file": "file", "files": "files", "first name": "first name", "fixed parent": "fixed parent", "general cargo checklist": "general cargo checklist", "generate": "generate", "greater than": "greater than", "greater than or equal": "greater than or equal", "gwendel walle": "gwendel walle", "gwendeltest": "gwendeltest", "has all the lifting gear been checked for damage and are the split pins fitted?": "has all the lifting gear been checked for damage and are the split pins fitted?", "has the platform destination label and scan label been applied?": "has the platform destination label and scan label been applied?", "has the platform destination label been applied?": "has the platform destination label been applied?", "have all the units been checked for loose items both on top and on the sides of the unit as well as in the forklift pockets \n\t\t\t(for example tools, gravel)?": "have all the units been checked for loose items both on top and on the sides of the unit as well as in the forklift pockets \n\t\t\t(for example tools, gravel)?", "have all the units been checked for loose items both on top and on the sides of the unit as well as in the forklift pockets (for example tools, gravel)?": "have all the units been checked for loose items both on top and on the sides of the unit as well as in the forklift pockets (for example tools, gravel)?", "have preventative measures been taken so that lifting equipment cannot get caught behind the open unit's loads?": "have preventative measures been taken so that lifting equipment cannot get caught behind the open unit's loads?", "history": "history", "history material item": "history material item", "history material items": "history material items", "historymaterialitem": "historymaterialitem", "icon": "icon", "id number unit": "id number unit", "if applicable: have dangerous goods labels according to the imdg been applied to all four sides?": "if applicable: have dangerous goods labels according to the imdg been applied to all four sides?", "imdg class and un number": "imdg class and un number", "imdg class un number": "imdg class un number", "imei": "imei", "imo code": "imo code", "in the case of a total weight of more than 4500kg, has the heavy load sticker been affixed?": "in the case of a total weight of more than 4500kg, has the heavy load sticker been affixed?", "inbound late scan": "inbound late scan", "inbound late scans": "inbound late scans", "increment cycles": "increment cycles", "inspection": "inspection", "inspection type": "inspection type", "inspection types": "inspection types", "inspections": "inspections", "inspector": "inspector", "ip": "ip", "ip access": "ip access", "is all lifting equipment properly secured \n\t\t\t(for example not twisted)?": "is all lifting equipment properly secured \n\t\t\t(for example not twisted)?", "is all lifting equipment properly secured (for example not twisted)?": "is all lifting equipment properly secured (for example not twisted)?", "is the loaded weight of the units lower than the maximum gross weight? (mgw)?": "is the loaded weight of the units lower than the maximum gross weight? (mgw)?", "is the weight of the loads in the units equally distributed so that they can be lifted horizontally?": "is the weight of the loads in the units equally distributed so that they can be lifted horizontally?", "items": "items", "ja-176": "ja-176", "ja188": "ja188", "k14-fa-1p": "k14-fa-1p", "k14-fb-1": "k14-fb-1", "k15-fb-1": "k15-fb-1", "kasteelborg": "kasteelborg", "kroonborg": "kroonborg", "l13-fd-1": "l13-fd-1", "language": "language", "languages": "languages", "last activity": "last activity", "last inspection date lifting equipment": "last inspection date lifting equipment", "last inspection date unit": "last inspection date unit", "last inspection lifting equipment": "last inspection lifting equipment", "last inspection unit": "last inspection unit", "last login": "last login", "last modified": "last modified", "last modified by": "last modified by", "last modified user role": "last modified user role", "last name": "last name", "lastmodified": "lastmodified", "lastmodifiedby": "lastmodifiedby", "legal": "legal", "legal location transition": "legal location transition", "legal location transitions": "legal location transitions", "legal status transition": "legal status transition", "legal status transitions": "legal status transitions", "legallocationtransition": "legallocationtransition", "legalstatustransition": "legalstatustransition", "less than": "less than", "less than or equal": "less than or equal", "licence expires": "licence expires", "licence holder": "licence holder", "line identifier": "line identifier", "lineidentifier": "lineidentifier", "location": "location", "location from": "location from", "location parent": "location parent", "location to": "location to", "location type": "location type", "location types": "location types", "locations": "locations", "locationtype": "locationtype", "log out": "log out", "ltd qty": "ltd qty", "mandatory fields": "mandatory fields", "manifest": "manifest", "manifests": "manifests", "marine pollutant": "marine pollutant", "material": "material", "material item": "material item", "material item movement": "material item movement", "material item movements": "material item movements", "material item parent": "material item parent", "material items": "material items", "material type": "material type", "material type parent": "material type parent", "material types": "material types", "materialitem": "materialitem", "materials offshore": "materials offshore", "materialtype": "materialtype", "max login attempts": "max login attempts", "maximum gross weight of unit (mgw)": "maximum gross weight of unit (mgw)", "mdl-060": "mdl-060", "menu item": "menu item", "menu item parent": "menu item parent", "menu items": "menu items", "menuitem": "menuitem", "mgw": "mgw", "minimum number of capitals": "minimum number of capitals", "minimum number of digits": "minimum number of digits", "minimum number of symbols": "minimum number of symbols", "minimum password length": "minimum password length", "mod pictures enabled": "mod pictures enabled", "month": "month", "na": "na", "name": "name", "name and/or password incorrect": "name and/or password incorrect", "name_unique": "name_unique", "new location": { "_": "new location", "materialitemmovements": "location" }, "new location parent": { "_": "new location parent", "materialitemmovements": "location parent" }, "new location parent type": { "_": "new location parent type", "materialitemmovements": "location parent type" }, "new password": "new password", "new status": { "_": "new status", "materialitemmovements": "status" }, "next number": "next number", "no": "no", "no filter": "no filter", "none": "none", "not contain": "not contain", "not equal": "not equal", "not scanned shipped material": "not scanned shipped material", "not scanned shipped materials": "not scanned shipped materials", "now": "now", "offshore locations": "offshore locations", "ok": "ok", "old location": "old location", "old status": "old status", "only points 1 to 8 are applicable if the unit is empty": "only points 1 to 8 are applicable if the unit is empty", "original": "original", "outbound late scan": "outbound late scan", "outbound late scans": "outbound late scans", "packing group": "packing group", "packing unit": "packing unit", "parent": "parent", "password": "password", "password strength": "password strength", "password successfullyt changed.": "password successfullyt changed.", "path": "path", "period": "period", "permissions": "permissions", "picture": "picture", "pictures": "pictures", "please enter the manifest.": "please enter the manifest.", "please select a location.": "please select a location.", "po": "po", "position": "position", "preposition": "preposition", "process": "process", "process default": "process default", "process defaults": "process defaults", "processdefault": "processdefault", "processes": "processes", "psn": "psn", "qty": "qty", "remark": "remark", "remarks": "remarks", "reports": "reports", "role": "role", "roles": "roles", "rtl": "rtl", "save": "save", "scan code": "scan code", "scancode": "scancode", "seal number": "seal number", "search": "search", "search date": "search date", "sender": "sender", "sender name": "sender name", "serial no": "serial no", "serialno": "serialno", "session expiration": "session expiration", "setting": "setting", "settings": "settings", "sgtin": "sgtin", "shipped items without csv": "shipped items without csv", "show": "show", "show add": "show add", "show delete": "show delete", "show edit": "show edit", "show tooltips": "show tooltips", "show view": "show view", "signature": "signature", "sku": "sku", "smtp enabled": "smtp enabled", "smtp from": "smtp from", "smtp host": "smtp host", "smtp port": "smtp port", "smtp to": "smtp to", "start with": "start with", "status": "status", "status from": "status from", "status to": "status to", "statuses": "statuses", "sub category number": "sub category number", "sub class": "sub class", "success": "success", "supp qty": "supp qty", "supp unit": "supp unit", "suppqty": "suppqty", "suppunit": "suppunit", "system": "system", "test": "test", "test voor retour": "test voor retour", "the {0} \"{1}\" already exists!": "the {0} \"{1}\" already exists!", "this field cannot be empty!": "this field cannot be empty!", "translation": "translation", "translations": "translations", "trt": "trt", "type": "type", "types": "types", "un": "un", "un 3082 cl 9": "un 3082 cl 9", "usages": "usages", "user": "user", "user role": "user role", "users": "users", "value": "value", "vendor": "vendor", "version": "version", "view": "view", "waste": "waste", "waste description": "waste description", "waste detail": "waste detail", "waste details": "waste details", "wastedetail": "wastedetail", "weight": "weight", "workorder": "workorder", "year": "year", "yes": "yes", "yes / na": "yes / na", "you entered an incorrect current password.": "you entered an incorrect current password.", "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.": "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.", "empty": "empty", "field": "field", "i forgot my password": "i forgot my password", "if you have any problems, use a more modern browser, like a recent version of chrome or firefox.": "if you have any problems, use a more modern browser, like a recent version of chrome or firefox.", "log in": "log in", "not empty": "not empty", "password reset": "password reset", "please enter your username and click \"send\" to receive an email with instructions on how to reset your password.": "please enter your username and click \"send\" to receive an email with instructions on how to reset your password.", "send": "send", "timezone": "timezone", "you are using internet explorer, which is not supported anymore.": "you are using internet explorer, which is not supported anymore.", "active user": { "activeusers": "active user" }, "active users": { "activeusers": "active users" }, "login date time": { "activeusers": "login date time" }, "username": { "activeusers": "username" }, "address id": { "containers": "address id" }, "cargo type": { "containers": "cargo type" }, "container": { "containers": "container" }, "container number": { "containers": "container number" }, "containers": { "containers": "containers" }, "lifts": { "containers": "lifts" }, "owner": { "containers": "owner" }, "quantity": { "containers": "quantity" }, "third party": { "containers": "third party container" }, "warehouse": { "containers": "warehouse" }, "dashboard": { "dashboard": "dashboard" }, "duplicate": { "login": "duplicate" }, "mail preference": { "mailpreferences": "mail preference" }, "recipients": { "mailpreferences": "recipients" }, "body": { "mailtemplates": "body" }, "mail template": { "mailtemplates": "mail template" }, "subject": { "mailtemplates": "subject" }, "material item file": { "materialitemfiles": "material item file" }, "new location type": { "materialitemmovements": "location type" }, "new material item ouder": { "materialitemmovements": "new material item ouder" }, "new material item par": { "materialitemmovements": "material item parent" }, "new material item parent": { "materialitemmovements": "new material item parent" }, "old material item parent": { "materialitemmovements": "old material item parent" }, "comments": { "materialitems": "comments" }, "copy": { "materialitems": "copy" }, "delivery address": { "materialitems": "delivery address" }, "desc": { "materialitems": "desc" }, "description of functional location": { "materialitems": "description of functional location" }, "download/view": { "materialitems": "download/view" }, "is consumable": { "materialitems": "is consumable" }, "last certification": { "materialitems": "last certification" }, "recipient": { "materialitems": "recipient" }, "request repair": { "materialitems": "request repair" }, "requirement tracking number": { "materialitems": "requirement tracking number" }, "short": { "materialitems": "short" }, "short description of the order": { "materialitems": "short description of the order" }, "short descrition of the order": { "materialitems": "short descrition of the order" }, "work order description": { "materialitems": "work order description" }, "work order operation short text": { "materialitems": "work order operation short text" }, "material items copy": { "materialitems_copy": "material items copy" }, "mail preferences": { "menuitems": "mail preferences" }, "unnumbers": { "menuitems": "unnumbers" }, "package unit": { "packageunits": "package unit" }, "package units": { "packageunits": "package units" }, "receive return": { "receivereturns": "receive return" }, "create trt container report": { "roles": "create trt container report" }, "mail templates": { "roles": "mail templates" }, "manifest reports": { "roles": "manifest reports" }, "material item files": { "roles": "material item files" }, "packing groups": { "roles": "packing groups" }, "receive returns": { "roles": "receive returns" }, "user report": { "roles": "user report" }, "vendors": { "roles": "vendors" }, "id": { "supplyunits": "id" }, "supply unit": { "supplyunits": "supply unit" }, "supply units": { "supplyunits": "supply units" }, "

do you want to record this container with its contents as received for return?<": { "translations": "

do you want to record this container with its contents as received for return?<" }, "

the filetype you are attempting to upload is not allowed.<": { "translations": "

the filetype you are attempting to upload is not allowed.<" }, "

the uploaded file exceeds the maximum allowed size in your php configuration file.<": { "translations": "

the uploaded file exceeds the maximum allowed size in your php configuration file.<" }, "are you sure you want to delete file \"{0}\"?": { "translations": "are you sure you want to delete file \"{0}\"?" }, "are you sure you want to delete this {0}?": { "translations": "are you sure you want to delete this {0}?" }, "can't delete this {0}, there are {1} with this {0}.": { "translations": "can't delete this {0}, there are {1} with this {0}." }, "context": { "translations": "context" }, "delete {0}": { "translations": "delete {0}" }, "delete file?": { "translations": "delete file?" }, "do you want to record this container with its contents as received for return?": { "translations": "do you want to record this container with its contents as received for return?" }, "duplicate {0}": { "translations": "duplicate {0}" }, "error": { "translations": "error" }, "file upload failure": { "translations": "file upload failure" }, "legal status-transition": { "translations": "legal status-transition" }, "legal statustransitions": { "translations": "legal statustransitions" }, "mailpreference": { "translations": "mailpreference" }, "password successfully changed.": { "translations": "password successfully changed." }, "press -enter to save": { "translations": "press -enter to save" }, "proper shipping names": { "translations": "proper shipping names" }, "this {0} already exists!": { "translations": "this {0} already exists!" }, "upload": { "translations": "upload" }, "vendor addresses": { "translations": "vendor addresses" }, "view manifest-report": { "translations": "view manifest-report" }, "psns": { "unnumbers": "Proper Shipping Names" }, "subclass": { "unnumbers": "subclass" }, "un number": { "unnumbers": "un number" }, "un numbers": { "unnumbers": "un numbers" }, "user device": { "userdevices": "user device" }, "user devices": { "userdevices": "user devices" }, "user name": { "userreport": "user name" }, "address": { "vendors": "address" }, "addresses": { "vendors": "addresses" }, "view container": { "viewcontainers": "view container" }, "view containers": { "viewcontainers": "view containers" }, "view manifest report": { "viewmanifestreports": "view manifest report" }, "view manifest report id": { "viewmanifestreports": "view manifest report id" }, "view manifest reports": { "viewmanifestreports": "view manifest reports" }, "work order": { "viewmanifestreports": "work order" }, "material item parent2": { "viewmaterialitemmutations": "material item parent2" }, "view material item mutation": { "viewmaterialitemmutations": "view material item mutation" }, "view material item mutations": { "viewmaterialitemmutations": "view material item mutations" }, "zpl": { "zpls": "zpl" }, "zpl data": { "zpls": "zpl data" }, "zpls": { "zpls": "zpls" } }; 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; } } } if (!translation) { $.ajax({ url: Alltrack.BASE + 'translations/add/' + escape(_original.toLowerCase()) }).done(function(data, textStatus, jqXHR) { _translations[_original.toLowerCase()] = {_: data}; }); } return translation || original; } return { translate : translate }; })()); // IIFE