diff --git a/README.md b/README.md index 916f37b..703b0cc 100644 --- a/README.md +++ b/README.md @@ -27,9 +27,9 @@ npm run build 4. Build script from step 3 will create two files: 1. a combined config [dist/latest/truck-settings-config.json](dist/latest/truck-settings-config.json) for geotabdrive and mygeotab _Sygic Truck Settings_ addins. 2. single config [dist/latest/start-sygic-config.json](dist/latest/start-sygic-config.json) for _Start Sygic Truck_ geotab drive button addin. - 3. tagged release config versions in [dist/1.2.2/start-sygic-config.json](dist/1.2.2/start-sygic-config.json) and [dist/1.2.2/truck-settings-config.json](dist/1.2.2/truck-settings-config.json) -5. Push to github. [Create a release on github](https://docs.github.com/en/repositories/releasing-projects-on-github/managing-releases-in-a-repository) with specified version tag (e.g. _1.2.2_). -6. Files from step 4. point iii. should be used when installing addon to my.geotab.com. We recommend to use concrete version (e.g. _1.2.2_) configuration instead of relying on latest. + 3. tagged release config versions in [dist/1.2.3/start-sygic-config.json](dist/1.2.3/start-sygic-config.json) and [dist/1.2.3/truck-settings-config.json](dist/1.2.3/truck-settings-config.json) +5. Push to github. [Create a release on github](https://docs.github.com/en/repositories/releasing-projects-on-github/managing-releases-in-a-repository) with specified version tag (e.g. _1.2.3_). +6. Files from step 4. point iii. should be used when installing addon to my.geotab.com. We recommend to use concrete version (e.g. _1.2.3_) configuration instead of relying on latest. ## Geotab login credentials 1. You need to have an account at the testing server https://my1291.geotab.com/ diff --git a/dist/1.2.3/start-sygic-config.json b/dist/1.2.3/start-sygic-config.json new file mode 100644 index 0000000..856cd70 --- /dev/null +++ b/dist/1.2.3/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.2.3/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.2.3/geotabdrive-start-sygic-addin/dist/images/icon.svg" + } + ], + "isSigned": "false" +} \ No newline at end of file diff --git a/dist/1.2.3/truck-settings-config.json b/dist/1.2.3/truck-settings-config.json new file mode 100644 index 0000000..0636cdb --- /dev/null +++ b/dist/1.2.3/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.2.3/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.2.3/mygeotab-sygic-page/dist/images/icon.svg" + }, + { + "url": "https://cdn.jsdelivr.net/gh/sygic/geotab@1.2.3/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.2.3/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 7b22e5b..856cd70 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.2/geotabdrive-start-sygic-addin/dist/start-sygic.html", + "url": "https://cdn.jsdelivr.net/gh/sygic/geotab@1.2.3/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.2/geotabdrive-start-sygic-addin/dist/images/icon.svg" + "icon": "https://cdn.jsdelivr.net/gh/sygic/geotab@1.2.3/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 f22b64f..2d50a4f 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 751cbce..487a086 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){var o;return(e[n]||(o=e[n]={i:n,l:!1,exports:{}},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.2/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=Object.defineProperty||function(t,e,r){t[e]=r.value},i=(w="function"==typeof Symbol?Symbol:{}).iterator||"@@iterator",a=w.asyncIterator||"@@asyncIterator",c=w.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 l(t,r,n,i){var a,c,u,l;r=r&&r.prototype instanceof v?r:v,r=Object.create(r.prototype),i=new O(i||[]);return o(r,"_invoke",{value:(a=t,c=n,u=i,l=s,function(t,r){if(l===p)throw new Error("Generator is already running");if(l===y){if("throw"===t)throw r;return P()}for(u.method=t,u.arg=r;;){var n=u.delegate;if(n&&(n=function t(r,n){var o=n.method,i=r.iterator[o];return i===e?(n.delegate=null,"throw"===o&&r.iterator.return&&(n.method="return",n.arg=e,t(r,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),d):"throw"===(o=f(i,r.iterator,n.arg)).type?(n.method="throw",n.arg=o.arg,n.delegate=null,d):(i=o.arg)?i.done?(n[r.resultName]=i.value,n.next=r.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,d):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,d)}(n,u))){if(n===d)continue;return n}if("next"===u.method)u.sent=u._sent=u.arg;else if("throw"===u.method){if(l===s)throw l=y,u.arg;u.dispatchException(u.arg)}else"return"===u.method&&u.abrupt("return",u.arg);if(l=p,"normal"===(n=f(a,c,u)).type){if(l=u.done?y:h,n.arg!==d)return{value:n.arg,done:u.done}}else"throw"===n.type&&(l=y,u.method="throw",u.arg=n.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=l;var s="suspendedStart",h="suspendedYield",p="executing",y="completed",d={};function v(){}function g(){}function m(){}var w,b,x=((b=(b=(u(w={},i,(function(){return this})),Object.getPrototypeOf))&&b(b(S([]))))&&b!==r&&n.call(b,i)&&(w=b),m.prototype=v.prototype=Object.create(w));function L(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){var r;o(this,"_invoke",{value:function(o,i){function a(){return new e((function(r,a){!function r(o,i,a,c){var u;if("throw"!==(o=f(t[o],t,i)).type)return(i=(u=o.arg).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 _(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 j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function S(t){if(t){var r,o=t[i];if(o)return o.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return r=-1,(o=function o(){for(;++r 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 314c997..45dc944 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.2/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=Tn(en(b)),Bn=G.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},Fn=/(.)^/,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||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(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 p(){document.getElementById("sygic-dimensions-form").classList.toggle("hidden"),document.getElementById("sygic-dimensions-summary").classList.toggle("hidden")}function h(n,t){return t="com.sygic.aura://coordinate|".concat(t,"|").concat(n,"|drive"),n=function(){var n="",t=vr.Dimensions.getInputValues(s),r=[];return t.total_weight&&r.push("wei=".concat(t.total_weight)),t.axle_weight&&r.push("axw=".concat(t.axle_weight)),t.total_length&&r.push("len=".concat(t.total_length)),t.width&&r.push("wid=".concat(t.width)),t.height&&r.push("hei=".concat(t.height)),0":">",'"':""","'":"'","`":"`"}),Rn=Dn(rn(b)),Nn=W.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},Bn=/(.)^/,Fn={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Ln=/\\|'|\r|\n|\u2028|\u2029/g;function Pn(n){return"\\"+Fn[n]}var qn=/^\s*(\w|\$)+\s*$/;function Vn(n,t,r){t=an({},t=!t&&r?r:t,W.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(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 r=0,e=new Array(t);r":">",'"':""","'":"'","`":"`"}),Nn=Tn(en(b)),Bn=G.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},Fn=/(.)^/,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||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(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(n,t){return t="com.sygic.aura://coordinate|".concat(t,"|").concat(n,"|drive"),n=function(){var n="",t=vr.Dimensions.getInputValues(a),r=[];return t.total_weight&&r.push("wei=".concat(t.total_weight)),t.axle_weight&&r.push("axw=".concat(t.axle_weight)),t.total_length&&r.push("len=".concat(t.total_length)),t.width&&r.push("wid=".concat(t.width)),t.height&&r.push("hei=".concat(t.height)),0":">",'"':""","'":"'","`":"`"}),Rn=Dn(rn(b)),Nn=W.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},Bn=/(.)^/,Fn={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Ln=/\\|'|\r|\n|\u2028|\u2029/g;function Pn(n){return"\\"+Fn[n]}var qn=/^\s*(\w|\$)+\s*$/;function Vn(n,t,r){t=an({},t=!t&&r?r:t,W.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(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;u 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 1d613b9..d5dad2e 100644 --- a/mygeotab-sygic-page/dist/mygeotabSygicPage.js +++ b/mygeotab-sygic-page/dist/mygeotabSygicPage.js @@ -1 +1 @@ -!function(n){var t={};function r(e){var u;return(t[e]||(u=t[e]={i:e,l:!1,exports:{}},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.2/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 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 h})),r.d(t,"k",(function(){return p})),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.6",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,h="undefined"!=typeof DataView,p=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 h})),r.d(t,"k",(function(){return p})),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,h="undefined"!=typeof DataView,p=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 e(n){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function u(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */u=function(){return n};var n={},t=Object.prototype,r=t.hasOwnProperty,i=Object.defineProperty||function(n,t,r){n[t]=r.value},o=(y="function"==typeof Symbol?Symbol:{}).iterator||"@@iterator",c=y.asyncIterator||"@@asyncIterator",a=y.toStringTag||"@@toStringTag";function f(n,t,r){return Object.defineProperty(n,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),n[t]}try{f({},"")}catch(t){f=function(n,t,r){return n[t]=r}}function l(n,t,r,e){var u,o,c,a;t=t&&t.prototype instanceof h?t:h,t=Object.create(t.prototype),e=new _(e||[]);return i(t,"_invoke",{value:(u=n,o=r,c=e,a="suspendedStart",function(n,t){if("executing"===a)throw new Error("Generator is already running");if("completed"===a){if("throw"===n)throw t;return{value:void 0,done:!0}}for(c.method=n,c.arg=t;;){var r=c.delegate;if(r&&(r=function n(t,r){var e=r.method,u=t.iterator[e];return void 0===u?(r.delegate=null,"throw"===e&&t.iterator.return&&(r.method="return",r.arg=void 0,n(t,r),"throw"===r.method)||"return"!==e&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+e+"' method")),d):"throw"===(e=s(u,t.iterator,r.arg)).type?(r.method="throw",r.arg=e.arg,r.delegate=null,d):(u=e.arg)?u.done?(r[t.resultName]=u.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,d):u:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)}(r,c))){if(r===d)continue;return r}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if("suspendedStart"===a)throw a="completed",c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);if(a="executing","normal"===(r=s(u,o,c)).type){if(a=c.done?"completed":"suspendedYield",r.arg===d)continue;return{value:r.arg,done:c.done}}"throw"===r.type&&(a="completed",c.method="throw",c.arg=r.arg)}})}),t}function s(n,t,r){try{return{type:"normal",arg:n.call(t,r)}}catch(n){return{type:"throw",arg:n}}}n.wrap=l;var d={};function h(){}function p(){}function v(){}var y,g,m=((g=(g=(f(y={},o,(function(){return this})),Object.getPrototypeOf))&&g(g(A([]))))&&g!==t&&r.call(g,o)&&(y=g),v.prototype=h.prototype=Object.create(y));function b(n){["next","throw","return"].forEach((function(t){f(n,t,(function(n){return this._invoke(t,n)}))}))}function w(n,t){var u;i(this,"_invoke",{value:function(i,o){function c(){return new t((function(u,c){!function u(i,o,c,a){var f;if("throw"!==(i=s(n[i],n,o)).type)return(o=(f=i.arg).value)&&"object"==e(o)&&r.call(o,"__await")?t.resolve(o.__await).then((function(n){u("next",n,c,a)}),(function(n){u("throw",n,c,a)})):t.resolve(o).then((function(n){f.value=n,c(f)}),(function(n){return u("throw",n,c,a)}));a(i.arg)}(i,o,u,c)}))}return u=u?u.then(c,c):c()}})}function x(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 j(n){var t=n.completion||{};t.type="normal",delete t.arg,n.completion=t}function _(n){this.tryEntries=[{tryLoc:"root"}],n.forEach(x,this),this.reset(!0)}function A(n){if(n){var t,e=n[o];if(e)return e.call(n);if("function"==typeof n.next)return n;if(!isNaN(n.length))return t=-1,(e=function e(){for(;++tn.length)&&(t=n.length);for(var r=0,e=new Array(t);r":">",'"':""","'":"'","`":"`"}),Fn=Nn(en(b)),Pn=G.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},Dn=/(.)^/,Bn={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},qn=/\\|'|\r|\n|\u2028|\u2029/g;function Vn(n){return"\\"+Bn[n]}var Rn=/^\s*(\w|\$)+\s*$/;function Gn(n,t,r){t=fn({},t=!t&&r?r:t,G.templateSettings);r=RegExp([(t.escape||Dn).source,(t.interpolate||Dn).source,(t.evaluate||Dn).source].join("|")+"|$","g");var e,u=0,i="__p+='";if(r=(n.replace(r,(function(t,r,e,o,c){return i+=n.slice(u,c).replace(qn,Vn),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",t.variable)){if(!Rn.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}function o(n){return e.call(this,n,G)}return o.source="function("+r+"){\n"+i+"}",o}function Wn(n,t,r){var e=(t=vn(t)).length;if(!e)return w(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=In(rn(m)),Fn=R.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},Pn=/(.)^/,Dn={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Bn=/\\|'|\r|\n|\u2028|\u2029/g;function qn(n){return"\\"+Dn[n]}var Vn=/^\s*(\w|\$)+\s*$/;function Rn(n,t,r){t=an({},t=!t&&r?r:t,R.templateSettings);r=RegExp([(t.escape||Pn).source,(t.interpolate||Pn).source,(t.evaluate||Pn).source].join("|")+"|$","g");var e,u=0,i="__p+='";if(r=(n.replace(r,(function(t,r,e,o,c){return i+=n.slice(u,c).replace(Bn,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",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}function o(n){return e.call(this,n,R)}return o.source="function("+r+"){\n"+i+"}",o}function Gn(n,t,r){var e=(t=pn(t)).length;if(!e)return b(r)?r.call(n):r;for(var u=0;un.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;u