@tomtom-org/maps-sdk 0.29.2 → 0.30.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -63,7 +63,7 @@ terms above.
63
63
  ---
64
64
 
65
65
  Name: @tomtom-org/maps-sdk
66
- Version: 0.29.2
66
+ Version: 0.30.0
67
67
  License: See in LICENSE.txt
68
68
  Private: false
69
69
  Description: JavaScript library for TomTom maps and location services
@@ -5449,14 +5449,14 @@ t.instance = new t();
5449
5449
  let r = t;
5450
5450
  const G = (e2) => e2?.minutes ?? "min", F = (e2, t2) => {
5451
5451
  if (e2) {
5452
- const o2 = Math.abs(e2) / 3600;
5453
- let a2 = Math.floor(o2), i2 = Math.round(o2 % 1 * 60);
5454
- 60 === i2 && (i2 = 0, a2++);
5455
- const s2 = { ...r.instance.get().displayUnits?.time, ...t2 };
5456
- if (a2) return `${a2} ${n2 = s2, n2?.hours ?? "hr"} ${i2.toString().padStart(2, "0")} ${G(s2)}`;
5457
- if (i2) return `${i2.toString()} ${G(s2)}`;
5458
- }
5459
- var n2;
5452
+ const a = Math.abs(e2) / 3600;
5453
+ let o = Math.floor(a), i = Math.round(a % 1 * 60);
5454
+ 60 === i && (i = 0, o++);
5455
+ const s = { ...r.instance.get().displayUnits?.time, ...t2 };
5456
+ if (o) return `${o} ${n = s, n?.hours ?? "hr"} ${i.toString().padStart(2, "0")} ${G(s)}`;
5457
+ if (i) return `${i.toString()} ${G(s)}`;
5458
+ }
5459
+ var n;
5460
5460
  };
5461
5461
  const getIconID = (chargingStop, config) => {
5462
5462
  const iconConfig = config?.chargingStops?.icon;