From 5e31af98f0b759aedfc68c56dd1588d69f747d68 Mon Sep 17 00:00:00 2001 From: Jakub Hazik Date: Fri, 19 Jan 2024 07:09:38 +0100 Subject: [PATCH] 1.3.0 release --- dist/1.3.0/start-sygic-config.json | 22 ++++++++++++ dist/1.3.0/truck-settings-config.json | 35 +++++++++++++++++++ .../dist/config.json | 4 +-- .../dist/start-sygic.html | 2 +- .../dist/start-sygic.js | 2 +- geotabdrive-start-sygic-addin/package.json | 2 +- geotabdrive-sygic-addin/dist/config.json | 4 +-- geotabdrive-sygic-addin/dist/main.css | 2 +- geotabdrive-sygic-addin/dist/sygic.html | 2 +- geotabdrive-sygic-addin/dist/sygic.js | 2 +- .../dist/translations/de.json | 14 ++++++++ .../dist/translations/en.json | 14 ++++++++ .../dist/translations/es.json | 14 ++++++++ .../dist/translations/fr.json | 14 ++++++++ .../dist/translations/it.json | 14 ++++++++ .../dist/translations/pl.json | 14 ++++++++ geotabdrive-sygic-addin/package.json | 4 +-- mygeotab-sygic-page/dist/config.json | 4 +-- .../dist/mygeotabSygicPage.html | 2 +- mygeotab-sygic-page/dist/mygeotabSygicPage.js | 2 +- mygeotab-sygic-page/dist/translations/en.json | 1 + mygeotab-sygic-page/package.json | 2 +- package.json | 2 +- 23 files changed, 160 insertions(+), 18 deletions(-) create mode 100644 dist/1.3.0/start-sygic-config.json create mode 100644 dist/1.3.0/truck-settings-config.json diff --git a/dist/1.3.0/start-sygic-config.json b/dist/1.3.0/start-sygic-config.json new file mode 100644 index 0000000..546fb3c --- /dev/null +++ b/dist/1.3.0/start-sygic-config.json @@ -0,0 +1,22 @@ +{ + "name": "Start Sygic Professional Navigation", + "supportEmail": "os-team@sygic.com", + "solutionId": "sygicSygic", + "version": "1.0", + "items": [ + { + "url": "https://cdn.jsdelivr.net/gh/sygic/geotab@1.3.0/geotabdrive-start-sygic-addin/dist/start-sygic.html", + "path": "DriveAppLink/", + "menuName": { + "en": "Start Sygic Truck", + "de": "Sygic Truck Starten", + "es": "Iniciar Sygic Truck", + "fr": "Démarrer Sygic Truck", + "it": "Avviare Sygic Truck", + "pl": "Uruchom Sygic Truck" + }, + "icon": "https://cdn.jsdelivr.net/gh/sygic/geotab@1.3.0/geotabdrive-start-sygic-addin/dist/images/icon.svg" + } + ], + "isSigned": "false" +} \ No newline at end of file diff --git a/dist/1.3.0/truck-settings-config.json b/dist/1.3.0/truck-settings-config.json new file mode 100644 index 0000000..adf34f4 --- /dev/null +++ b/dist/1.3.0/truck-settings-config.json @@ -0,0 +1,35 @@ +{ + "name": "Sygic Professional Navigation", + "supportEmail": "os-team@sygic.com", + "solutionId": "sygicSygic", + "version": "1.0", + "items": [ + { + "url": "https://cdn.jsdelivr.net/gh/sygic/geotab@1.3.0/mygeotab-sygic-page/dist/mygeotabSygicPage.html", + "path": "", + "menuName": { + "en": "Sygic Truck Settings", + "de": "Sygic Truck Einstellungen", + "es": "Configuración Sygic Truck", + "fr": "Paramètres Sygic Truck", + "it": "Sygic Truck Impostazioni", + "pl": "Ustawienia Sygic Truck" + }, + "icon": "https://cdn.jsdelivr.net/gh/sygic/geotab@1.3.0/mygeotab-sygic-page/dist/images/icon.svg" + }, + { + "url": "https://cdn.jsdelivr.net/gh/sygic/geotab@1.3.0/geotabdrive-sygic-addin/dist/sygic.html", + "path": "DriveAppLink/", + "menuName": { + "en": "Sygic Truck Settings", + "de": "Sygic Truck Einstellungen", + "es": "Configuración Sygic Truck", + "fr": "Paramètres Sygic Truck", + "it": "Sygic Truck Impostazioni", + "pl": "Ustawienia Sygic Truck" + }, + "icon": "https://cdn.jsdelivr.net/gh/sygic/geotab@1.3.0/geotabdrive-sygic-addin/dist/images/icon.svg" + } + ], + "isSigned": "false" +} \ No newline at end of file diff --git a/geotabdrive-start-sygic-addin/dist/config.json b/geotabdrive-start-sygic-addin/dist/config.json index 921b228..546fb3c 100644 --- a/geotabdrive-start-sygic-addin/dist/config.json +++ b/geotabdrive-start-sygic-addin/dist/config.json @@ -5,7 +5,7 @@ "version": "1.0", "items": [ { - "url": "https://cdn.jsdelivr.net/gh/sygic/geotab@1.2.6/geotabdrive-start-sygic-addin/dist/start-sygic.html", + "url": "https://cdn.jsdelivr.net/gh/sygic/geotab@1.3.0/geotabdrive-start-sygic-addin/dist/start-sygic.html", "path": "DriveAppLink/", "menuName": { "en": "Start Sygic Truck", @@ -15,7 +15,7 @@ "it": "Avviare Sygic Truck", "pl": "Uruchom Sygic Truck" }, - "icon": "https://cdn.jsdelivr.net/gh/sygic/geotab@1.2.6/geotabdrive-start-sygic-addin/dist/images/icon.svg" + "icon": "https://cdn.jsdelivr.net/gh/sygic/geotab@1.3.0/geotabdrive-start-sygic-addin/dist/images/icon.svg" } ], "isSigned": "false" diff --git a/geotabdrive-start-sygic-addin/dist/start-sygic.html b/geotabdrive-start-sygic-addin/dist/start-sygic.html index ef5a65c..babb456 100644 --- a/geotabdrive-start-sygic-addin/dist/start-sygic.html +++ b/geotabdrive-start-sygic-addin/dist/start-sygic.html @@ -1 +1 @@ - Sygic truck \ No newline at end of file + Sygic truck \ No newline at end of file diff --git a/geotabdrive-start-sygic-addin/dist/start-sygic.js b/geotabdrive-start-sygic-addin/dist/start-sygic.js index 2c50886..1575708 100644 --- a/geotabdrive-start-sygic-addin/dist/start-sygic.js +++ b/geotabdrive-start-sygic-addin/dist/start-sygic.js @@ -1 +1 @@ -!function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="https://cdn.jsdelivr.net/gh/sygic/geotab@1.2.6/geotabdrive-start-sygic-addin/dist/",r(r.s=0)}([function(t,e,r){r(1),geotab.addin.sygic||r(2),r(3)},function(t,e,r){t=function(t){"use strict";var e,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(r){u=function(t,e,r){return t[e]=r}}function s(t,r,n,o){var i,a,c,u;r=r&&r.prototype instanceof g?r:g,r=Object.create(r.prototype),o=new j(o||[]);return r._invoke=(i=t,a=n,c=o,u=l,function(t,r){if(u===p)throw new Error("Generator is already running");if(u===y){if("throw"===t)throw r;return P()}for(c.method=t,c.arg=r;;){var n=c.delegate;if(n){var o=function t(r,n){var o;if((o=r.iterator[n.method])===e){if(n.delegate=null,"throw"===n.method){if(r.iterator.return&&(n.method="return",n.arg=e,t(r,n),"throw"===n.method))return d;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}return"throw"===(o=f(o,r.iterator,n.arg)).type?(n.method="throw",n.arg=o.arg,n.delegate=null,d):(o=o.arg)?o.done?(n[r.resultName]=o.value,n.next=r.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,d):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,d)}(n,c);if(o){if(o===d)continue;return o}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if(u===l)throw u=y,c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);if(u=p,"normal"===(o=f(i,a,c)).type){if(u=c.done?y:h,o.arg!==d)return{value:o.arg,done:c.done}}else"throw"===o.type&&(u=y,c.method="throw",c.arg=o.arg)}}),r}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var l="suspendedStart",h="suspendedYield",p="executing",y="completed",d={};function g(){}function v(){}function m(){}var w={};u(w,i,(function(){return this})),(o=(o=Object.getPrototypeOf)&&o(o(O([]))))&&o!==r&&n.call(o,i)&&(w=o);var b=m.prototype=g.prototype=Object.create(w);function x(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function L(t,e){var r;this._invoke=function(o,i){function a(){return new e((function(r,a){!function r(o,i,a,c){if("throw"!==(o=f(t[o],t,i)).type){var u=o.arg;return(i=u.value)&&"object"==typeof i&&n.call(i,"__await")?e.resolve(i.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(i).then((function(t){u.value=t,a(u)}),(function(t){return r("throw",t,a,c)}))}c(o.arg)}(o,i,r,a)}))}return r=r?r.then(a,a):a()}}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function _(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function O(t){if(t){if(r=t[i])return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r,o=-1;return(r=function r(){for(;++ot.length)&&(n=t.length);for(var r=0,e=new Array(n);r=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:n};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}("123456789I");try{for(o.s();!(e=o.n()).done;){var u=e.value;t.querySelector("input[name=sygic-truck-hazmat-class".concat(u,"]")).checked&&(i+=u)}}catch(t){o.e(t)}finally{o.f()}var a=t.querySelector("input[name=sygic-truck-hazmat-general]").checked,c=t.querySelector("select[name=sygic-truck-hazmat-adr_tunnel]").value,f=t.querySelector("input[name=sygic-truck-hazmat-water]").checked;r.hazmat.h_class=i,r.hazmat.general=a,r.hazmat.adr_tunnel=c,r.hazmat.water=f}return r}};n.Dimensions=O},function(t,n,r){r(3),geotab.addin.sygic||r(4),r(6)},function(t,n,r){t=function(t){"use strict";var n,r=Object.prototype,e=r.hasOwnProperty,i=Object.defineProperty||function(t,n,r){t[n]=r.value},o=(w="function"==typeof Symbol?Symbol:{}).iterator||"@@iterator",u=w.asyncIterator||"@@asyncIterator",a=w.toStringTag||"@@toStringTag";function c(t,n,r){return Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{c({},"")}catch(r){c=function(t,n,r){return t[n]=r}}function f(t,r,e,o){var u,a,c,f;r=r&&r.prototype instanceof y?r:y,r=Object.create(r.prototype),o=new S(o||[]);return i(r,"_invoke",{value:(u=t,a=e,c=o,f=s,function(t,r){if(f===h)throw new Error("Generator is already running");if(f===p){if("throw"===t)throw r;return k()}for(c.method=t,c.arg=r;;){var e=c.delegate;if(e&&(e=function t(r,e){var i=e.method,o=r.iterator[i];return o===n?(e.delegate=null,"throw"===i&&r.iterator.return&&(e.method="return",e.arg=n,t(r,e),"throw"===e.method)||"return"!==i&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+i+"' method")),v):"throw"===(i=l(o,r.iterator,e.arg)).type?(e.method="throw",e.arg=i.arg,e.delegate=null,v):(o=i.arg)?o.done?(e[r.resultName]=o.value,e.next=r.nextLoc,"return"!==e.method&&(e.method="next",e.arg=n),e.delegate=null,v):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,v)}(e,c))){if(e===v)continue;return e}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if(f===s)throw f=p,c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);if(f=h,"normal"===(e=l(u,a,c)).type){if(f=c.done?p:d,e.arg!==v)return{value:e.arg,done:c.done}}else"throw"===e.type&&(f=p,c.method="throw",c.arg=e.arg)}})}),r}function l(t,n,r){try{return{type:"normal",arg:t.call(n,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=f;var s="suspendedStart",d="suspendedYield",h="executing",p="completed",v={};function y(){}function g(){}function m(){}var w,b,x=((b=(b=(c(w={},o,(function(){return this})),Object.getPrototypeOf))&&b(b(A([]))))&&b!==r&&e.call(b,o)&&(w=b),m.prototype=y.prototype=Object.create(w));function _(t){["next","throw","return"].forEach((function(n){c(t,n,(function(t){return this._invoke(n,t)}))}))}function j(t,n){var r;i(this,"_invoke",{value:function(i,o){function u(){return new n((function(r,u){!function r(i,o,u,a){var c;if("throw"!==(i=l(t[i],t,o)).type)return(o=(c=i.arg).value)&&"object"==typeof o&&e.call(o,"__await")?n.resolve(o.__await).then((function(t){r("next",t,u,a)}),(function(t){r("throw",t,u,a)})):n.resolve(o).then((function(t){c.value=t,u(c)}),(function(t){return r("throw",t,u,a)}));a(i.arg)}(i,o,r,u)}))}return r=r?r.then(u,u):u()}})}function E(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function O(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function A(t){if(t){var r,i=t[o];if(i)return i.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return r=-1,(i=function i(){for(;++r":">",'"':""","'":"'","`":"`"}),Tt=It(rt(m)),Ft=G.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},Nt=/(.)^/,Pt={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Dt=/\\|'|\r|\n|\u2028|\u2029/g;function Ct(t){return"\\"+Pt[t]}var zt=/^\s*(\w|\$)+\s*$/;function qt(t,n,r){n=at({},n=!n&&r?r:n,G.templateSettings);r=RegExp([(n.escape||Nt).source,(n.interpolate||Nt).source,(n.evaluate||Nt).source].join("|")+"|$","g");var e,i=0,o="__p+='";if(r=(t.replace(r,(function(n,r,e,u,a){return o+=t.slice(i,a).replace(Dt,Ct),i=a+n.length,r?o+="'+\n((__t=("+r+"))==null?'':_.escape(__t))+\n'":e?o+="'+\n((__t=("+e+"))==null?'':__t)+\n'":u&&(o+="';\n"+u+"\n__p+='"),n})),o+="';\n",n.variable)){if(!zt.test(r))throw new Error("variable is not a bare identifier: "+r)}else o="with(obj||{}){\n"+o+"}\n",r="obj";o="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+o+"return __p;\n";try{e=new Function(r,"_",o)}catch(n){throw n.source=o,n}function u(t){return e.call(this,t,G)}return u.source="function("+r+"){\n"+o+"}",u}function Gt(t,n,r){var e=(n=ht(n)).length;if(!e)return w(r)?r.call(t):r;for(var i=0;i Sygic truck \ No newline at end of file + Sygic truck \ No newline at end of file diff --git a/geotabdrive-sygic-addin/dist/sygic.js b/geotabdrive-sygic-addin/dist/sygic.js index 259d663..09db4db 100644 --- a/geotabdrive-sygic-addin/dist/sygic.js +++ b/geotabdrive-sygic-addin/dist/sygic.js @@ -1 +1 @@ -!function(n){var t={};function r(e){if(t[e])return t[e].exports;var u=t[e]={i:e,l:!1,exports:{}};return n[e].call(u.exports,u,u.exports,r),u.l=!0,u.exports}r.m=n,r.c=t,r.d=function(n,t,e){r.o(n,t)||Object.defineProperty(n,t,{enumerable:!0,get:e})},r.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},r.t=function(n,t){if(1&t&&(n=r(n)),8&t)return n;if(4&t&&"object"==typeof n&&n&&n.__esModule)return n;var e=Object.create(null);if(r.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:n}),2&t&&"string"!=typeof n)for(var u in n)r.d(e,u,function(t){return n[t]}.bind(null,u));return e},r.n=function(n){var t=n&&n.__esModule?function(){return n.default}:function(){return n};return r.d(t,"a",t),t},r.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},r.p="https://cdn.jsdelivr.net/gh/sygic/geotab@1.2.6/geotabdrive-sygic-addin/dist/",r(r.s=4)}([function(n,t,r){"use strict";(function(n){r.d(t,"e",(function(){return e})),r.d(t,"p",(function(){return u})),r.d(t,"a",(function(){return i})),r.d(t,"c",(function(){return o})),r.d(t,"d",(function(){return c})),r.d(t,"o",(function(){return a})),r.d(t,"q",(function(){return f})),r.d(t,"t",(function(){return l})),r.d(t,"i",(function(){return s})),r.d(t,"r",(function(){return d})),r.d(t,"s",(function(){return p})),r.d(t,"k",(function(){return h})),r.d(t,"m",(function(){return v})),r.d(t,"j",(function(){return y})),r.d(t,"l",(function(){return g})),r.d(t,"g",(function(){return m})),r.d(t,"f",(function(){return b})),r.d(t,"h",(function(){return w})),r.d(t,"n",(function(){return x})),r.d(t,"b",(function(){return j}));var e="1.13.1",u="object"==typeof self&&self.self===self&&self||"object"==typeof n&&n.global===n&&n||Function("return this")()||{},i=Array.prototype,o=Object.prototype,c="undefined"!=typeof Symbol?Symbol.prototype:null,a=i.push,f=i.slice,l=o.toString,s=o.hasOwnProperty,d="undefined"!=typeof ArrayBuffer,p="undefined"!=typeof DataView,h=Array.isArray,v=Object.keys,y=Object.create,g=d&&ArrayBuffer.isView,m=isNaN,b=isFinite,w=!{toString:null}.propertyIsEnumerable("toString"),x=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],j=Math.pow(2,53)-1}).call(this,r(3))},function(n,t,r){"use strict";(function(n){r.d(t,"e",(function(){return e})),r.d(t,"p",(function(){return u})),r.d(t,"a",(function(){return i})),r.d(t,"c",(function(){return o})),r.d(t,"d",(function(){return c})),r.d(t,"o",(function(){return a})),r.d(t,"q",(function(){return f})),r.d(t,"t",(function(){return l})),r.d(t,"i",(function(){return s})),r.d(t,"r",(function(){return d})),r.d(t,"s",(function(){return p})),r.d(t,"k",(function(){return h})),r.d(t,"m",(function(){return v})),r.d(t,"j",(function(){return y})),r.d(t,"l",(function(){return g})),r.d(t,"g",(function(){return m})),r.d(t,"f",(function(){return b})),r.d(t,"h",(function(){return w})),r.d(t,"n",(function(){return x})),r.d(t,"b",(function(){return j}));var e="1.13.1",u="object"==typeof self&&self.self===self&&self||"object"==typeof n&&n.global===n&&n||Function("return this")()||{},i=Array.prototype,o=Object.prototype,c="undefined"!=typeof Symbol?Symbol.prototype:null,a=i.push,f=i.slice,l=o.toString,s=o.hasOwnProperty,d="undefined"!=typeof ArrayBuffer,p="undefined"!=typeof DataView,h=Array.isArray,v=Object.keys,y=Object.create,g=d&&ArrayBuffer.isView,m=isNaN,b=isFinite,w=!{toString:null}.propertyIsEnumerable("toString"),x=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],j=Math.pow(2,53)-1}).call(this,r(3))},function(n,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ApiWrapper=function(n){return{callAsync:function(t,r){return new Promise((function(e,u){n.call(t,r,(function(n){return e(n)}),(function(n){return u(n)}))}))},getSessionAsync:function(){return new Promise((function(t,r){n.getSession((function(n){t(n)}))}))}}},t.DimensionsModel=t.Dimensions=void 0,t.DimensionsStorage=function(n){var t="ajk3ZmUzNmQtYjNlYS0yMGI";return{getAllDimensionsModelsAsync:function(){var r=o(regeneratorRuntime.mark((function r(){var e;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,n.callAsync("Get",{typeName:"AddInData",search:{addInId:t}});case 2:return e=(e=r.sent).map((function(n){var t=void 0;return!1===n.details.dimensions.isMetric&&(t=!1),!0===n.details.dimensions.isMetric&&(t=!0),c({},n.details.vehicle_id,b.getFromStringInputs(n.details.dimensions,t))})),r.abrupt("return",Object.assign.apply(Object,[{}].concat(a(e.map((function(n){return n}))))));case 5:case"end":return r.stop()}}),r)})));return function(){return r.apply(this,arguments)}}(),getDimensionsModelAsync:function(){var r=o(regeneratorRuntime.mark((function r(e){var u,i;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,n.callAsync("Get",{typeName:"AddInData",search:{addInId:t,whereClause:'vehicle_id="'.concat(e,'"')}});case 2:if((i=r.sent)&&0n.length)&&(t=n.length);for(var r=0,e=new Array(t);r":">",'"':""","'":"'","`":"`"}),Nn=Rn(en(b)),Fn=G.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},Bn=/(.)^/,Ln={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Pn=/\\|'|\r|\n|\u2028|\u2029/g;function qn(n){return"\\"+Ln[n]}var Vn=/^\s*(\w|\$)+\s*$/;function Un(n,t,r){t=fn({},t=!t&&r?r:t,G.templateSettings);r=RegExp([(t.escape||Bn).source,(t.interpolate||Bn).source,(t.evaluate||Bn).source].join("|")+"|$","g");var e,u=0,i="__p+='";if(n.replace(r,(function(t,r,e,o,c){return i+=n.slice(u,c).replace(Pn,qn),u=c+t.length,r?i+="'+\n((__t=("+r+"))==null?'':_.escape(__t))+\n'":e?i+="'+\n((__t=("+e+"))==null?'':__t)+\n'":o&&(i+="';\n"+o+"\n__p+='"),t})),i+="';\n",r=t.variable){if(!Vn.test(r))throw new Error("variable is not a bare identifier: "+r)}else i="with(obj||{}){\n"+i+"}\n",r="obj";i="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+i+"return __p;\n";try{e=new Function(r,"_",i)}catch(t){throw t.source=i,t}return(t=function(n){return e.call(this,n,G)}).source="function("+r+"){\n"+i+"}",t}function Wn(n,t,r){var e=(t=vn(t)).length;if(!e)return x(r)?r.call(n):r;for(var u=0;un.length)&&(t=n.length);for(var r=0,e=new Array(t);r\n <% if (obj.hasOwnProperty(key)) { %>\n <% let dimension_label = obj[key].label; %>\n <% let value = obj[key].value; %>\n <%= dimension_label %><%= value %> \n <% }} %>\n "),e=hr.template("\n <% for (const key in obj) { %>\n <% if (obj.hasOwnProperty(key)) { %>\n <% let dimension_label = obj[key].label; %>\n <% let value = obj[key].value; %>\n \n <% }} %>\n "),u={};for(t in n){var i=n[t];u[t]={value:i.value,label:i.label}}document.getElementById("sygic-dimensions-summary-content").innerHTML=r(u),document.getElementById("sygic-dimensions-form-content").innerHTML=e(u)}function l(){document.getElementById("sygic-dimensions-form").classList.toggle("hidden"),document.getElementById("sygic-dimensions-summary").classList.toggle("hidden")}function s(){return(s=br(regeneratorRuntime.mark((function n(t,r){var e,u;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e="com.sygic.aura://coordinate|".concat(r,"|").concat(t,"|drive"),n.next=3,function(){return p.apply(this,arguments)}();case 3:return u=n.sent,u="".concat(e).concat(u).concat("&&&back_button|com.geotab.androidCheckmate"),n.abrupt("return",u);case 7:case"end":return n.stop()}}),n)})))).apply(this,arguments)}function d(){return(d=br(regeneratorRuntime.mark((function n(t){var r,e,u,i,o,c,f;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:for(r={version:"3.1",directives:{vehicleType:"truck",routeComputeType:"truck"},vehicleRestrictions:{},routeParts:[]},e=0;e":">",'"':""","'":"'","`":"`"}),Tn=Dn(rn(b)),Nn=W.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},Fn=/(.)^/,Bn={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Ln=/\\|'|\r|\n|\u2028|\u2029/g;function Pn(n){return"\\"+Bn[n]}var qn=/^\s*(\w|\$)+\s*$/;function Vn(n,t,r){t=an({},t=!t&&r?r:t,W.templateSettings);r=RegExp([(t.escape||Fn).source,(t.interpolate||Fn).source,(t.evaluate||Fn).source].join("|")+"|$","g");var e,u=0,i="__p+='";if(n.replace(r,(function(t,r,e,o,c){return i+=n.slice(u,c).replace(Ln,Pn),u=c+t.length,r?i+="'+\n((__t=("+r+"))==null?'':_.escape(__t))+\n'":e?i+="'+\n((__t=("+e+"))==null?'':__t)+\n'":o&&(i+="';\n"+o+"\n__p+='"),t})),i+="';\n",r=t.variable){if(!qn.test(r))throw new Error("variable is not a bare identifier: "+r)}else i="with(obj||{}){\n"+i+"}\n",r="obj";i="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+i+"return __p;\n";try{e=new Function(r,"_",i)}catch(t){throw t.source=i,t}return(t=function(n){return e.call(this,n,W)}).source="function("+r+"){\n"+i+"}",t}function Un(n,t,r){var e=(t=hn(t)).length;if(!e)return x(r)?r.call(n):r;for(var u=0;un.length)&&(t=n.length);for(var e=0,r=new Array(t);e=n.length?{done:!0}:{done:!1,value:n[r++]}},e:function(n){throw n},f:t}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,u=!0,o=!1;return{s:function(){e=e.call(n)},n:function(){var n=e.next();return u=n.done,n},e:function(n){o=!0,i=n},f:function(){try{u||null==e.return||e.return()}finally{if(o)throw i}}}}("123456789I");try{for(u.s();!(r=u.n()).done;){var o=r.value;n.querySelector("input[name=sygic-truck-hazmat-class".concat(o,"]")).checked&&(i+=o)}}catch(n){u.e(n)}finally{u.f()}var a=n.querySelector("input[name=sygic-truck-hazmat-general]").checked,c=n.querySelector("select[name=sygic-truck-hazmat-adr_tunnel]").value,f=n.querySelector("input[name=sygic-truck-hazmat-water]").checked;e.hazmat.h_class=i,e.hazmat.general=a,e.hazmat.adr_tunnel=c,e.hazmat.water=f}return e}};t.Dimensions=A},function(n,t){var e=function(){return this}();try{e=e||new Function("return this")()}catch(n){"object"==typeof window&&(e=window)}n.exports=e},function(n,t,e){e(5),geotab.addin.sygic||e(7),e(6)},function(n,t,e){n=function(n){"use strict";var t,e=Object.prototype,r=e.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},u=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",a=i.toStringTag||"@@toStringTag";function c(n,t,e){return Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}),n[t]}try{c({},"")}catch(e){c=function(n,t,e){return n[t]=e}}function f(n,e,r,i){var u,o,a,c;e=e&&e.prototype instanceof y?e:y,e=Object.create(e.prototype),i=new E(i||[]);return e._invoke=(u=n,o=r,a=i,c=s,function(n,e){if(c===h)throw new Error("Generator is already running");if(c===p){if("throw"===n)throw e;return A()}for(a.method=n,a.arg=e;;){var r=a.delegate;if(r){var i=function n(e,r){var i;if((i=e.iterator[r.method])===t){if(r.delegate=null,"throw"===r.method){if(e.iterator.return&&(r.method="return",r.arg=t,n(e,r),"throw"===r.method))return v;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}return"throw"===(i=l(i,e.iterator,r.arg)).type?(r.method="throw",r.arg=i.arg,r.delegate=null,v):(i=i.arg)?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}(r,a);if(i){if(i===v)continue;return i}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(c===s)throw c=p,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);if(c=h,"normal"===(i=l(u,o,a)).type){if(c=a.done?p:d,i.arg!==v)return{value:i.arg,done:a.done}}else"throw"===i.type&&(c=p,a.method="throw",a.arg=i.arg)}}),e}function l(n,t,e){try{return{type:"normal",arg:n.call(t,e)}}catch(n){return{type:"throw",arg:n}}}n.wrap=f;var s="suspendedStart",d="suspendedYield",h="executing",p="completed",v={};function y(){}function m(){}function g(){}var b={};c(b,u,(function(){return this})),(i=(i=Object.getPrototypeOf)&&i(i(S([]))))&&i!==e&&r.call(i,u)&&(b=i);var w=g.prototype=y.prototype=Object.create(b);function x(n){["next","throw","return"].forEach((function(t){c(n,t,(function(n){return this._invoke(t,n)}))}))}function _(n,t){var e;this._invoke=function(i,u){function o(){return new t((function(e,o){!function e(i,u,o,a){if("throw"!==(i=l(n[i],n,u)).type){var c=i.arg;return(u=c.value)&&"object"==typeof u&&r.call(u,"__await")?t.resolve(u.__await).then((function(n){e("next",n,o,a)}),(function(n){e("throw",n,o,a)})):t.resolve(u).then((function(n){c.value=n,o(c)}),(function(n){return e("throw",n,o,a)}))}a(i.arg)}(i,u,e,o)}))}return e=e?e.then(o,o):o()}}function j(n){var t={tryLoc:n[0]};1 in n&&(t.catchLoc=n[1]),2 in n&&(t.finallyLoc=n[2],t.afterLoc=n[3]),this.tryEntries.push(t)}function k(n){var t=n.completion||{};t.type="normal",delete t.arg,n.completion=t}function E(n){this.tryEntries=[{tryLoc:"root"}],n.forEach(j,this),this.reset(!0)}function S(n){if(n){if(e=n[u])return e.call(n);if("function"==typeof n.next)return n;if(!isNaN(n.length)){var e,i=-1;return(e=function e(){for(;++i":">",'"':""","'":"'","`":"`"}),Fn=Dn(rn(b)),Nn=H.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},Pn=/(.)^/,zn={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Bn=/\\|'|\r|\n|\u2028|\u2029/g;function Cn(n){return"\\"+zn[n]}var qn=/^\s*(\w|\$)+\s*$/;function Vn(n,t,e){t=fn({},t=!t&&e?e:t,H.templateSettings);e=RegExp([(t.escape||Pn).source,(t.interpolate||Pn).source,(t.evaluate||Pn).source].join("|")+"|$","g");var r,i=0,u="__p+='";if(n.replace(e,(function(t,e,r,o,a){return u+=n.slice(i,a).replace(Bn,Cn),i=a+t.length,e?u+="'+\n((__t=("+e+"))==null?'':_.escape(__t))+\n'":r?u+="'+\n((__t=("+r+"))==null?'':__t)+\n'":o&&(u+="';\n"+o+"\n__p+='"),t})),u+="';\n",e=t.variable){if(!qn.test(e))throw new Error("variable is not a bare identifier: "+e)}else u="with(obj||{}){\n"+u+"}\n",e="obj";u="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+u+"return __p;\n";try{r=new Function(e,"_",u)}catch(t){throw t.source=u,t}return(t=function(n){return r.call(this,n,H)}).source="function("+e+"){\n"+u+"}",t}function Gn(n,t,e){var r=(t=vn(t)).length;if(!r)return x(e)?e.call(n):e;for(var i=0;in.length)&&(t=n.length);for(var e=0,r=new Array(t);e\n <% if (dimensions.hasOwnProperty(key)) { %>\n <% let dimension_label = dimensions[key].label; %>\n <% let value = dimensions[key].value; %>\n <%= dimension_label %><%= value %> \n <% }} %>\n \n <% _.each(hazmats, hazmat => { %>\n <% if (hazmat.visible) { %>\n <% if (hazmat.key === 'adr_tunnel') { %>\n <%= hazmat.label %><%= hazmat.value %> \n <% } else { %>\n <%= hazmat.label %> <% if (hazmat.value) { %>On<% } else { %>Off<% } %> \n <% } %>\n <% } %>\n <% }) %>\n "),r=pe.template("\n <% for (const key in dimensions) { %>\n <% if (dimensions.hasOwnProperty(key)) { %>\n <% let dimension_label = dimensions[key].label; %>\n <% let value = dimensions[key].value; %>\n
\n \n
\n <% }} %>\n \n
\n <% _.each(hazmats, hazmat => { %>\n <% let name = 'sygic-truck-hazmat-' + hazmat.key; %>\n \n
hidden='hidden' <% } %>>\n <% if (hazmat.key === 'adr_tunnel') { %>\n \n <% } else { %>\n \n <% } %>\n
\n <% }) %>\n
\n "),i={};for(t in n){var u=n[t];"hazmat"!==t&&(i[t]={value:u.value,label:u.label})}var o=Object.keys(n.hazmat.value).map((function(t){return{value:n.hazmat.value[t].value,key:t,label:n.hazmat.value[t].label,visible:n.hazmat.value[t].visible,options:n.hazmat.value[t].options}}));document.getElementById("sygic-dimensions-summary-content").innerHTML=e({dimensions:i,hazmats:o}),document.getElementById("sygic-dimensions-form-content").innerHTML=r({dimensions:i,hazmats:o})}function l(){document.getElementById("sygic-dimensions-form").classList.toggle("hidden"),document.getElementById("sygic-dimensions-summary").classList.toggle("hidden")}function s(){return(s=xe(be().mark((function n(t,e){var r,i,u;return be().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r="com.sygic.aura://coordinate|".concat(e,"|").concat(t,"|drive"),i=ve.Dimensions.getInputValues(c),n.next=4,g();case 4:return u=n.sent,u=ve.DimensionsModel.getFromStringInputs(i,u.isMetric),u=Object(ve.createSygicTruckAttrUrl)(u),u="".concat(r,"&&&").concat(u).concat("&&&back_button|com.geotab.androidCheckmate"),n.abrupt("return",u);case 10:case"end":return n.stop()}}),n)})))).apply(this,arguments)}function d(){return(d=xe(be().mark((function n(t){var e,r,i,u,o,a,f,l;return be().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:for(e={version:"3.1",directives:{vehicleType:"truck",routeComputeType:"truck"},routeParts:[]},r=0;r":">",'"':""","'":"'","`":"`"}),Tn=Ln(en(b)),Fn=G.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},Nn=/(.)^/,Pn={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},zn=/\\|'|\r|\n|\u2028|\u2029/g;function Bn(n){return"\\"+Pn[n]}var Cn=/^\s*(\w|\$)+\s*$/;function qn(n,t,e){t=cn({},t=!t&&e?e:t,G.templateSettings);e=RegExp([(t.escape||Nn).source,(t.interpolate||Nn).source,(t.evaluate||Nn).source].join("|")+"|$","g");var r,i=0,u="__p+='";if(n.replace(e,(function(t,e,r,o,a){return u+=n.slice(i,a).replace(zn,Bn),i=a+t.length,e?u+="'+\n((__t=("+e+"))==null?'':_.escape(__t))+\n'":r?u+="'+\n((__t=("+r+"))==null?'':__t)+\n'":o&&(u+="';\n"+o+"\n__p+='"),t})),u+="';\n",e=t.variable){if(!Cn.test(e))throw new Error("variable is not a bare identifier: "+e)}else u="with(obj||{}){\n"+u+"}\n",e="obj";u="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+u+"return __p;\n";try{r=new Function(e,"_",u)}catch(t){throw t.source=u,t}return(t=function(n){return r.call(this,n,G)}).source="function("+e+"){\n"+u+"}",t}function Vn(n,t,e){var r=(t=pn(t)).length;if(!r)return x(e)?e.call(n):e;for(var i=0;i Sygic Truck Settings

Sygic Truck Settings

Sygic Truck Settings tutorial

\ No newline at end of file + Sygic Truck Settings

Sygic Truck Settings

Sygic Truck Settings tutorial

\ No newline at end of file diff --git a/mygeotab-sygic-page/dist/mygeotabSygicPage.js b/mygeotab-sygic-page/dist/mygeotabSygicPage.js index 3511652..0f5c13b 100644 --- a/mygeotab-sygic-page/dist/mygeotabSygicPage.js +++ b/mygeotab-sygic-page/dist/mygeotabSygicPage.js @@ -1 +1 @@ -!function(n){var t={};function r(e){if(t[e])return t[e].exports;var u=t[e]={i:e,l:!1,exports:{}};return n[e].call(u.exports,u,u.exports,r),u.l=!0,u.exports}r.m=n,r.c=t,r.d=function(n,t,e){r.o(n,t)||Object.defineProperty(n,t,{enumerable:!0,get:e})},r.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},r.t=function(n,t){if(1&t&&(n=r(n)),8&t)return n;if(4&t&&"object"==typeof n&&n&&n.__esModule)return n;var e=Object.create(null);if(r.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:n}),2&t&&"string"!=typeof n)for(var u in n)r.d(e,u,function(t){return n[t]}.bind(null,u));return e},r.n=function(n){var t=n&&n.__esModule?function(){return n.default}:function(){return n};return r.d(t,"a",t),t},r.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},r.p="https://cdn.jsdelivr.net/gh/sygic/geotab@1.2.6/mygeotab-sygic-page/dist/",r(r.s=4)}([function(n,t,r){"use strict";(function(n){r.d(t,"e",(function(){return e})),r.d(t,"p",(function(){return u})),r.d(t,"a",(function(){return i})),r.d(t,"c",(function(){return o})),r.d(t,"d",(function(){return c})),r.d(t,"o",(function(){return f})),r.d(t,"q",(function(){return a})),r.d(t,"t",(function(){return l})),r.d(t,"i",(function(){return s})),r.d(t,"r",(function(){return d})),r.d(t,"s",(function(){return p})),r.d(t,"k",(function(){return h})),r.d(t,"m",(function(){return v})),r.d(t,"j",(function(){return y})),r.d(t,"l",(function(){return g})),r.d(t,"g",(function(){return m})),r.d(t,"f",(function(){return b})),r.d(t,"h",(function(){return w})),r.d(t,"n",(function(){return j})),r.d(t,"b",(function(){return x}));var e="1.13.1",u="object"==typeof self&&self.self===self&&self||"object"==typeof n&&n.global===n&&n||Function("return this")()||{},i=Array.prototype,o=Object.prototype,c="undefined"!=typeof Symbol?Symbol.prototype:null,f=i.push,a=i.slice,l=o.toString,s=o.hasOwnProperty,d="undefined"!=typeof ArrayBuffer,p="undefined"!=typeof DataView,h=Array.isArray,v=Object.keys,y=Object.create,g=d&&ArrayBuffer.isView,m=isNaN,b=isFinite,w=!{toString:null}.propertyIsEnumerable("toString"),j=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],x=Math.pow(2,53)-1}).call(this,r(3))},function(n,t,r){"use strict";(function(n){r.d(t,"e",(function(){return e})),r.d(t,"p",(function(){return u})),r.d(t,"a",(function(){return i})),r.d(t,"c",(function(){return o})),r.d(t,"d",(function(){return c})),r.d(t,"o",(function(){return f})),r.d(t,"q",(function(){return a})),r.d(t,"t",(function(){return l})),r.d(t,"i",(function(){return s})),r.d(t,"r",(function(){return d})),r.d(t,"s",(function(){return p})),r.d(t,"k",(function(){return h})),r.d(t,"m",(function(){return v})),r.d(t,"j",(function(){return y})),r.d(t,"l",(function(){return g})),r.d(t,"g",(function(){return m})),r.d(t,"f",(function(){return b})),r.d(t,"h",(function(){return w})),r.d(t,"n",(function(){return j})),r.d(t,"b",(function(){return x}));var e="1.13.1",u="object"==typeof self&&self.self===self&&self||"object"==typeof n&&n.global===n&&n||Function("return this")()||{},i=Array.prototype,o=Object.prototype,c="undefined"!=typeof Symbol?Symbol.prototype:null,f=i.push,a=i.slice,l=o.toString,s=o.hasOwnProperty,d="undefined"!=typeof ArrayBuffer,p="undefined"!=typeof DataView,h=Array.isArray,v=Object.keys,y=Object.create,g=d&&ArrayBuffer.isView,m=isNaN,b=isFinite,w=!{toString:null}.propertyIsEnumerable("toString"),j=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],x=Math.pow(2,53)-1}).call(this,r(3))},function(n,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ApiWrapper=function(n){return{callAsync:function(t,r){return new Promise((function(e,u){n.call(t,r,(function(n){return e(n)}),(function(n){return u(n)}))}))},getSessionAsync:function(){return new Promise((function(t,r){n.getSession((function(n){t(n)}))}))}}},t.DimensionsModel=t.Dimensions=void 0,t.DimensionsStorage=function(n){var t="ajk3ZmUzNmQtYjNlYS0yMGI";return{getAllDimensionsModelsAsync:function(){var r=o(regeneratorRuntime.mark((function r(){var e;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,n.callAsync("Get",{typeName:"AddInData",search:{addInId:t}});case 2:return e=(e=r.sent).map((function(n){var t=void 0;return!1===n.details.dimensions.isMetric&&(t=!1),!0===n.details.dimensions.isMetric&&(t=!0),c({},n.details.vehicle_id,b.getFromStringInputs(n.details.dimensions,t))})),r.abrupt("return",Object.assign.apply(Object,[{}].concat(f(e.map((function(n){return n}))))));case 5:case"end":return r.stop()}}),r)})));return function(){return r.apply(this,arguments)}}(),getDimensionsModelAsync:function(){var r=o(regeneratorRuntime.mark((function r(e){var u,i;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,n.callAsync("Get",{typeName:"AddInData",search:{addInId:t,whereClause:'vehicle_id="'.concat(e,'"')}});case 2:if((i=r.sent)&&0n.length)&&(t=n.length);for(var r=0,e=new Array(t);r":">",'"':""","'":"'","`":"`"}),Fn=Dn(en(b)),Bn=z.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},Rn=/(.)^/,qn={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Ln=/\\|'|\r|\n|\u2028|\u2029/g;function Pn(n){return"\\"+qn[n]}var Vn=/^\s*(\w|\$)+\s*$/;function Wn(n,t,r){t=an({},t=!t&&r?r:t,z.templateSettings);r=RegExp([(t.escape||Rn).source,(t.interpolate||Rn).source,(t.evaluate||Rn).source].join("|")+"|$","g");var e,u=0,i="__p+='";if(n.replace(r,(function(t,r,e,o,c){return i+=n.slice(u,c).replace(Ln,Pn),u=c+t.length,r?i+="'+\n((__t=("+r+"))==null?'':_.escape(__t))+\n'":e?i+="'+\n((__t=("+e+"))==null?'':__t)+\n'":o&&(i+="';\n"+o+"\n__p+='"),t})),i+="';\n",r=t.variable){if(!Vn.test(r))throw new Error("variable is not a bare identifier: "+r)}else i="with(obj||{}){\n"+i+"}\n",r="obj";i="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+i+"return __p;\n";try{e=new Function(r,"_",i)}catch(t){throw t.source=i,t}return(t=function(n){return e.call(this,n,z)}).source="function("+r+"){\n"+i+"}",t}function Un(n,t,r){var e=(t=vn(t)).length;if(!e)return j(r)?r.call(n):r;for(var u=0;un.length)&&(t=n.length);for(var r=0,e=new Array(t);r'>\n
\n >\n
\n
\n
\n <%= vehicle.name %>\n
\n
\n
<%= vehicle_groups_string %>
\n
\n
\n
<%= vehicle_dimensions_string %>
\n
\n
\n \n
\n \n
\n\n "),l=0;l":">",'"':""","'":"'","`":"`"}),Tn=Nn(rn(b)),Fn=U.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},Bn=/(.)^/,Rn={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},qn=/\\|'|\r|\n|\u2028|\u2029/g;function Ln(n){return"\\"+Rn[n]}var Pn=/^\s*(\w|\$)+\s*$/;function Vn(n,t,r){t=fn({},t=!t&&r?r:t,U.templateSettings);r=RegExp([(t.escape||Bn).source,(t.interpolate||Bn).source,(t.evaluate||Bn).source].join("|")+"|$","g");var e,u=0,i="__p+='";if(n.replace(r,(function(t,r,e,o,c){return i+=n.slice(u,c).replace(qn,Ln),u=c+t.length,r?i+="'+\n((__t=("+r+"))==null?'':_.escape(__t))+\n'":e?i+="'+\n((__t=("+e+"))==null?'':__t)+\n'":o&&(i+="';\n"+o+"\n__p+='"),t})),i+="';\n",r=t.variable){if(!Pn.test(r))throw new Error("variable is not a bare identifier: "+r)}else i="with(obj||{}){\n"+i+"}\n",r="obj";i="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+i+"return __p;\n";try{e=new Function(r,"_",i)}catch(t){throw t.source=i,t}return(t=function(n){return e.call(this,n,U)}).source="function("+r+"){\n"+i+"}",t}function Wn(n,t,r){var e=(t=hn(t)).length;if(!e)return j(r)?r.call(n):r;for(var u=0;un.length)&&(t=n.length);for(var r=0,e=new Array(t);r=n.length?{done:!0}:{done:!1,value:n[u++]}},e:function(n){throw n},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}("123456789I");try{for(u.s();!(e=u.n()).done;){var o=e.value;n.querySelector("input[name=sygic-truck-hazmat-class".concat(o,"]")).checked&&(i+=o)}}catch(n){u.e(n)}finally{u.f()}var c=n.querySelector("input[name=sygic-truck-hazmat-general]").checked,a=n.querySelector("select[name=sygic-truck-hazmat-adr_tunnel]").value,f=n.querySelector("input[name=sygic-truck-hazmat-water]").checked;r.hazmat.h_class=i,r.hazmat.general=c,r.hazmat.adr_tunnel=a,r.hazmat.water=f}return r}};t.Dimensions=S},function(n,t){var r=function(){return this}();try{r=r||new Function("return this")()}catch(n){"object"==typeof window&&(r=window)}n.exports=r},function(n,t,r){r(5),geotab.addin.mygeotabSygicPage||r(7),r(6)},function(n,t,r){n=function(n){"use strict";var t,r=Object.prototype,e=r.hasOwnProperty,i=Object.defineProperty||function(n,t,r){n[t]=r.value},u=(b="function"==typeof Symbol?Symbol:{}).iterator||"@@iterator",o=b.asyncIterator||"@@asyncIterator",c=b.toStringTag||"@@toStringTag";function a(n,t,r){return Object.defineProperty(n,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),n[t]}try{a({},"")}catch(r){a=function(n,t,r){return n[t]=r}}function f(n,r,e,u){var o,c,a,f;r=r&&r.prototype instanceof y?r:y,r=Object.create(r.prototype),u=new A(u||[]);return i(r,"_invoke",{value:(o=n,c=e,a=u,f=s,function(n,r){if(f===h)throw new Error("Generator is already running");if(f===p){if("throw"===n)throw r;return k()}for(a.method=n,a.arg=r;;){var e=a.delegate;if(e&&(e=function n(r,e){var i=e.method,u=r.iterator[i];return u===t?(e.delegate=null,"throw"===i&&r.iterator.return&&(e.method="return",e.arg=t,n(r,e),"throw"===e.method)||"return"!==i&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+i+"' method")),v):"throw"===(i=l(u,r.iterator,e.arg)).type?(e.method="throw",e.arg=i.arg,e.delegate=null,v):(u=i.arg)?u.done?(e[r.resultName]=u.value,e.next=r.nextLoc,"return"!==e.method&&(e.method="next",e.arg=t),e.delegate=null,v):u:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,v)}(e,a))){if(e===v)continue;return e}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(f===s)throw f=p,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);if(f=h,"normal"===(e=l(o,c,a)).type){if(f=a.done?p:d,e.arg!==v)return{value:e.arg,done:a.done}}else"throw"===e.type&&(f=p,a.method="throw",a.arg=e.arg)}})}),r}function l(n,t,r){try{return{type:"normal",arg:n.call(t,r)}}catch(n){return{type:"throw",arg:n}}}n.wrap=f;var s="suspendedStart",d="suspendedYield",h="executing",p="completed",v={};function y(){}function g(){}function m(){}var b,w,x=((w=(w=(a(b={},u,(function(){return this})),Object.getPrototypeOf))&&w(w(O([]))))&&w!==r&&e.call(w,u)&&(b=w),m.prototype=y.prototype=Object.create(b));function _(n){["next","throw","return"].forEach((function(t){a(n,t,(function(n){return this._invoke(t,n)}))}))}function j(n,t){var r;i(this,"_invoke",{value:function(i,u){function o(){return new t((function(r,o){!function r(i,u,o,c){var a;if("throw"!==(i=l(n[i],n,u)).type)return(u=(a=i.arg).value)&&"object"==typeof u&&e.call(u,"__await")?t.resolve(u.__await).then((function(n){r("next",n,o,c)}),(function(n){r("throw",n,o,c)})):t.resolve(u).then((function(n){a.value=n,o(a)}),(function(n){return r("throw",n,o,c)}));c(i.arg)}(i,u,r,o)}))}return r=r?r.then(o,o):o()}})}function E(n){var t={tryLoc:n[0]};1 in n&&(t.catchLoc=n[1]),2 in n&&(t.finallyLoc=n[2],t.afterLoc=n[3]),this.tryEntries.push(t)}function S(n){var t=n.completion||{};t.type="normal",delete t.arg,n.completion=t}function A(n){this.tryEntries=[{tryLoc:"root"}],n.forEach(E,this),this.reset(!0)}function O(n){if(n){var r,i=n[u];if(i)return i.call(n);if("function"==typeof n.next)return n;if(!isNaN(n.length))return r=-1,(i=function i(){for(;++r":">",'"':""","'":"'","`":"`"}),Tn=Nn(en(b)),Dn=V.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},Pn=/(.)^/,zn={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},qn=/\\|'|\r|\n|\u2028|\u2029/g;function Bn(n){return"\\"+zn[n]}var Cn=/^\s*(\w|\$)+\s*$/;function Vn(n,t,r){t=fn({},t=!t&&r?r:t,V.templateSettings);r=RegExp([(t.escape||Pn).source,(t.interpolate||Pn).source,(t.evaluate||Pn).source].join("|")+"|$","g");var e,i=0,u="__p+='";if(r=(n.replace(r,(function(t,r,e,o,c){return u+=n.slice(i,c).replace(qn,Bn),i=c+t.length,r?u+="'+\n((__t=("+r+"))==null?'':_.escape(__t))+\n'":e?u+="'+\n((__t=("+e+"))==null?'':__t)+\n'":o&&(u+="';\n"+o+"\n__p+='"),t})),u+="';\n",t.variable)){if(!Cn.test(r))throw new Error("variable is not a bare identifier: "+r)}else u="with(obj||{}){\n"+u+"}\n",r="obj";u="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+u+"return __p;\n";try{e=new Function(r,"_",u)}catch(t){throw t.source=u,t}function o(n){return e.call(this,n,V)}return o.source="function("+r+"){\n"+u+"}",o}function Rn(n,t,r){var e=(t=vn(t)).length;if(!e)return w(r)?r.call(n):r;for(var i=0;in.length)&&(t=n.length);for(var r=0,e=new Array(t);r'>\n
\n >\n
\n
\n
\n <%= vehicle.name %>\n
\n
\n
<%= vehicle_groups_string %>
\n
\n
\n
<%= vehicle_dimensions_string %>
\n
\n
\n \n
\n \n
\n\n ")),l=0;l":">",'"':""","'":"'","`":"`"}),Fn=In(rn(m)),Tn=C.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},Dn=/(.)^/,Pn={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},zn=/\\|'|\r|\n|\u2028|\u2029/g;function qn(n){return"\\"+Pn[n]}var Bn=/^\s*(\w|\$)+\s*$/;function Cn(n,t,r){t=an({},t=!t&&r?r:t,C.templateSettings);r=RegExp([(t.escape||Dn).source,(t.interpolate||Dn).source,(t.evaluate||Dn).source].join("|")+"|$","g");var e,i=0,u="__p+='";if(r=(n.replace(r,(function(t,r,e,o,c){return u+=n.slice(i,c).replace(zn,qn),i=c+t.length,r?u+="'+\n((__t=("+r+"))==null?'':_.escape(__t))+\n'":e?u+="'+\n((__t=("+e+"))==null?'':__t)+\n'":o&&(u+="';\n"+o+"\n__p+='"),t})),u+="';\n",t.variable)){if(!Bn.test(r))throw new Error("variable is not a bare identifier: "+r)}else u="with(obj||{}){\n"+u+"}\n",r="obj";u="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+u+"return __p;\n";try{e=new Function(r,"_",u)}catch(t){throw t.source=u,t}function o(n){return e.call(this,n,C)}return o.source="function("+r+"){\n"+u+"}",o}function Vn(n,t,r){var e=(t=pn(t)).length;if(!e)return b(r)?r.call(n):r;for(var i=0;i