@xgis/xgis-components 0.3.55 → 0.3.58

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.
package/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # @xgis/xgis-components
2
2
 
3
3
  The stock UI for XGIS3D: layer panel, basemap picker, navigation, topic list, map switch, side
4
- panel and notifications. Every one is an `IXgisComponent` descriptor that declares which slot
5
- it renders into; the framework owns the layout.
4
+ panel, notifications and a placeholder search bar. Every one is an `IXgisComponent` descriptor that
5
+ declares which slot it renders into; the framework owns the layout.
6
6
 
7
7
  ## Install
8
8
 
@@ -45,8 +45,15 @@ it renders, unless the descriptor sets `alwaysOn`, as `NotificationComponent` do
45
45
  | `MapSwitchComponent` | `xgis.mapSwitch` | slot `xgis.mapSwitch` |
46
46
  | `NavigationComponent` | `xgis.navigation` | slots `xgis.navigationZoom`, `…History`, `…Location`, `…Compass` |
47
47
  | `BasemapComponent` | `xgis.basemap` | slot `xgis.basemaps` |
48
+ | `SearchComponent` | `xgis.search` | contribution to `xgis.search` |
48
49
  | `NotificationComponent` | `xgis.notification` | slot `xgis.overlay` |
49
50
 
51
+ Each component has a README with its use cases, settings and events:
52
+ [Basemap](src/components/Basemap/README.md), [LayerPanel](src/components/LayerPanel/README.md),
53
+ [MapSwitch](src/components/MapSwitch/README.md), [Navigation](src/components/Navigation/README.md),
54
+ [Notification](src/components/Notification/README.md), [Search](src/components/Search/README.md),
55
+ [SidePanel](src/components/SidePanel/README.md) and [TopicList](src/components/TopicList/README.md).
56
+
50
57
  A component either claims a framework slot or contributes to a slot another component
51
58
  declares. `SidePanelComponent` owns the panel shell and publishes three sub-slots, and the layer
52
59
  panel and topic list fill two of them.
@@ -62,7 +69,7 @@ directly renders nothing useful. Register the descriptor and let the framework p
62
69
 
63
70
  Each entry in the topic config's `components` list is `{ id, ...settings }`. The `xgis.` prefix
64
71
  of the id is optional, so `navigation` means `xgis.navigation`. Listing an id switches the component
65
- on; every setting below is optional.
72
+ on; every setting is optional.
66
73
 
67
74
  ```json
68
75
  "components": [
@@ -72,65 +79,11 @@ on; every setting below is optional.
72
79
  ]
73
80
  ```
74
81
 
75
- `sidePanel`, `layerPanel` and `mapSwitch` have no settings. `notification` is always on and needs no
82
+ `sidePanel`, `layerPanel` and `search` have no settings. `notification` is always on and needs no
76
83
  entry. Every entry also accepts `removable`, which nothing reads yet.
77
84
 
78
- ### `xgis.navigation`
79
-
80
- | Setting | Type | Default | Effect |
81
- | -------------------- | ------- | ------- | ----------------------------------------------------------------------------------------- |
82
- | `zoominout` | boolean | `true` | Zoom in and out buttons |
83
- | `history` | boolean | `true` | Back and forward through previous views |
84
- | `positioning` | boolean | `true` | Locate-me button. `false` also stops location tracking left running by the previous topic |
85
- | `positioningCompass` | boolean | `true` | Compass. Hidden regardless when the topic sets `mapRotating: false` |
86
- | `reset` | boolean | `false` | Button that returns to the topic's default view. Shown only when `true` |
87
-
88
- ### `xgis.topicList`
89
-
90
- | Setting | Type | Default | Effect |
91
- | -------------- | --------------- | ------- | ---------------------------------------------- |
92
- | `externalApps` | `ExternalApp[]` | none | Links to other applications, in the topic list |
93
-
94
- An `ExternalApp` is:
95
-
96
- | Field | Type | Effect |
97
- | -------------------- | ----------------------- | ------------------------------------------------------------------------------------ |
98
- | `name_et`, `name_en` | string | Link text per language. A missing one falls back to `name_et`, then `name_en` |
99
- | `link` | string | `https:` URL; any other protocol is dropped. `$bbox$` becomes the current map extent |
100
- | `target` | `'_blank'` \| `'_self'` | New tab or the same one |
101
-
102
- ### `xgis.basemap`
103
-
104
- | Setting | Type | Default | Effect |
105
- | ------- | ------------------- | ------- | ---------------------------------------------- |
106
- | `tree` | `BaseMapTreeNode[]` | `[]` | The base maps the picker offers, in this order |
107
-
108
- Each engine starts on the first layer whose `visible` names it, or on the first layer when none
109
- does. A folder groups layers and has `type: 'folder'`, a `folderId`, an optional `icon` and its own
110
- `layers`. A folder left with no layer for the current engine is hidden. A layer node has:
111
-
112
- | Field | Type | Effect |
113
- | -------------------------- | ---------------- | ---------------------------------------------------------------------------------------------------------------------- |
114
- | `type` | string | `layer` takes the source from the catalog. `WMS`, `WMTS`, `TMS`, `KML`, `OGC_Maps`, `OGC_Tiles`, `3D` define it inline |
115
- | `fatLayerId` | string | Catalog layer for `type: 'layer'`, and the node's id |
116
- | `id` | string | The id of an inline layer, as used by bookmarks and `setActiveBasemap` |
117
- | `visible` | `'2d'` \| `'3d'` | Makes this layer the starting base map for that engine |
118
- | `opacity` | number, 0–100 | Starting opacity, default 100 |
119
- | `minScale`, `maxScale` | number | Scale range in which the base map can be picked. `0` means no bound |
120
- | `icon` | string | Picker icon |
121
- | `copyright` | string | Attribution the engine shows |
122
- | `translations` | `ITranslations` | Display name. Overrides the catalog layer's own |
123
- | `href` | string | Service URL of an inline layer. Required for every inline type except `KML` and `3D` |
124
- | `layers` | string[] | `WMS` layers, the `WMTS` layer (first item), `OGC_Maps` and `OGC_Tiles` collections. Required except for `OGC_Maps` |
125
- | `version` | string | `WMS` version: `1.1.0`, `1.1.1` or `1.3.0` (default) |
126
- | `format`, `styles` | string | Passed to the service |
127
- | `params` | object | Extra `WMS` and `OGC_Maps` request parameters |
128
- | `kmlParams` | object | `KML`: `objects` is the KML document itself; `lineColor`, `lineThickness`, `fillColor`, `symbol` replace its styles |
129
- | `tileset` | object | `3D`: the tileset, `url` required. Offered in 3D only |
130
- | `legendUrl`, `legendUrl_*` | string | Not read yet |
131
-
132
- On a `layer` node, `icon`, `copyright`, `opacity`, `minScale` and `maxScale` override the catalog
133
- layer's values. A node whose source cannot be resolved stays in the picker, marked unavailable.
85
+ The settings of `xgis.basemap`, `xgis.mapSwitch`, `xgis.navigation` and `xgis.topicList` are in
86
+ their own READMEs, listed under [Components](#components).
134
87
 
135
88
  ### `xgis.layerlist`
136
89
 
@@ -0,0 +1,2 @@
1
+ import type { BasemapAvailability, BasemapNode, EngineMode } from '@xgis/xgis-common';
2
+ export declare function useBasemapErrorEvents(tree: BasemapNode[], availability: Map<string, BasemapAvailability>, engine: EngineMode): void;
@@ -1,4 +1,4 @@
1
- import type { Extent3301, LonLat, Radians, ZoomLevel } from '@xgis/xgis-common';
1
+ import type { EpsgCode, LonLat, MapExtent, Radians, ZoomLevel } from '@xgis/xgis-common';
2
2
  export declare function settlePendingZoom(pending: ZoomLevel | null, storeZoom: ZoomLevel): ZoomLevel | null;
3
3
  export declare function headingToRadians(headingDegrees: number): Radians;
4
4
  export declare function negateAndWrap(radians: Radians): Radians;
@@ -8,4 +8,4 @@ export interface BoundedFix {
8
8
  readonly position: LonLat;
9
9
  readonly outsideBounds: boolean;
10
10
  }
11
- export declare function constrainToBounds(position: LonLat, constraintBbox: Extent3301 | null): BoundedFix;
11
+ export declare function constrainToBounds(position: LonLat, constraintBbox: MapExtent | null, projection: EpsgCode): BoundedFix;
@@ -1,9 +1,9 @@
1
- import type { Extent3301, ExternalLinkTarget } from '@xgis/xgis-common';
1
+ import type { ExternalLinkTarget, MapExtent } from '@xgis/xgis-common';
2
2
  export interface LocalizedExternalApp {
3
3
  link: string;
4
4
  name: string;
5
5
  target: ExternalLinkTarget;
6
6
  }
7
- export declare function resolveExternalAppLink(link: string, bbox: Extent3301): string;
7
+ export declare function resolveExternalAppLink(link: string, bbox: MapExtent): string;
8
8
  export declare function useExternalApps(): LocalizedExternalApp[];
9
9
  export declare function openExternalAppAtCurrentView(app: LocalizedExternalApp): void;
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { useMapViewStore, modeForSide, useBasemapStore, useBasemapTree, useComponentTranslate, BASEMAP_COMPONENT_ID, useTranslate, resolveActiveBasemapNode, useBasemapAvailability, basemapNodeIcon, BaseMapErrors, layerKey, SLOTS, useLayoutStore, Slot, SIDEPANEL_COMPONENT_ID, useUiStore, useTopicStore, useLayerStore, LAYERPANEL_COMPONENT_ID, MAPSWITCH_COMPONENT_ID, useConfigStore, wrapToRange, RADIANS_TO_DEGREES, useCapability, NAVIGATION_COMPONENT_ID, useParallelViewSync, useComponentSettingsStore, TOP_DOWN_PITCH, activeEngine, useNavigationHistoryStore, extentCenter, selectSyncedGroup, wgs84ToEpsg3301, containsPoint, clampPointToBounds, epsg3301ToWgs84, DEGREES_TO_RADIANS, translate, componentKey, TWO_PI, useGeolocationStore, clampZoom, useMapBusEmit, useUserMarkerStore, stopGeolocation, useZoomFloor, MAX_ZOOM, useMapBusEvent, NOTIFICATION_COMPONENT_ID, SEARCH_COMPONENT_ID, useI18nStore, TOPICLIST_COMPONENT_ID, isSafeExternalUrl, openExternalUrl, EXTERNAL_LINK_REL } from '@xgis/xgis-common';
1
+ import { useMapBusEmit, BaseMapErrors, useMapViewStore, modeForSide, useBasemapStore, useBasemapTree, useComponentTranslate, BASEMAP_COMPONENT_ID, useTranslate, resolveActiveBasemapNode, useBasemapAvailability, basemapNodeIcon, layerKey, SLOTS, useLayoutStore, Slot, SIDEPANEL_COMPONENT_ID, useUiStore, useTopicStore, useLayerStore, LAYERPANEL_COMPONENT_ID, MAPSWITCH_COMPONENT_ID, useAllowedMapMode, wrapToRange, RADIANS_TO_DEGREES, useCapability, NAVIGATION_COMPONENT_ID, useParallelViewSync, useComponentSettingsStore, TOP_DOWN_PITCH, activeEngine, useNavigationHistoryStore, extentCenter, selectSyncedGroup, fromWgs84, containsPoint, clampPointToBounds, toWgs84, DEGREES_TO_RADIANS, translate, componentKey, TWO_PI, useGeolocationStore, clampZoom, useUserMarkerStore, useProjectionStore, stopGeolocation, useZoomFloor, MAX_ZOOM, useMapBusEvent, NOTIFICATION_COMPONENT_ID, SEARCH_COMPONENT_ID, useI18nStore, TOPICLIST_COMPONENT_ID, isSafeExternalUrl, openExternalUrl, EXTERNAL_LINK_REL, useConfigStore } from '@xgis/xgis-common';
2
2
  import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
3
3
  import { Tabs, Toggle, ButtonGroup, Button, Icon, Text, sendNotification, ToastContainer, InputGroup, Input, Search, Suffix, Card, CardButton, Collapse, TextField, Row, Col, Select } from '@tedi-design-system/react/tedi';
4
4
  import { BaseMapSelection, MapAccordion, MapButton, ButtonGroup as ButtonGroup$1 } from '@tedi-design-system/react/community';
@@ -23,6 +23,41 @@ function BasemapIcon({ src, alt }) {
23
23
  );
24
24
  }
25
25
 
26
+ const FAILURE_REASONS = /* @__PURE__ */ new Set([
27
+ BaseMapErrors.CAPABILITIES,
28
+ BaseMapErrors.SERVICE,
29
+ BaseMapErrors.LAYER
30
+ ]);
31
+ let reported = /* @__PURE__ */ new Map();
32
+ function failureOf(status) {
33
+ if (!status?.reason || !FAILURE_REASONS.has(status.reason)) {
34
+ return null;
35
+ }
36
+ return status.reason;
37
+ }
38
+ function isHealthy(status) {
39
+ return Boolean(status?.available && !status.reason && !status.pending);
40
+ }
41
+ function useBasemapErrorEvents(tree, availability, engine) {
42
+ const emit = useMapBusEmit();
43
+ useEffect(() => {
44
+ const next = new Map(reported);
45
+ for (const node of tree) {
46
+ const key = `${engine}|${node.id}`;
47
+ const status = availability.get(node.id);
48
+ const reason = failureOf(status);
49
+ if (isHealthy(status)) {
50
+ next.delete(key);
51
+ }
52
+ if (reason && reported.get(key) !== reason) {
53
+ next.set(key, reason);
54
+ emit("error", { type: "basemap", basemap: node.id, view: engine, reason });
55
+ }
56
+ }
57
+ reported = next;
58
+ }, [tree, availability, engine, emit]);
59
+ }
60
+
26
61
  function optionTooltip(status, t) {
27
62
  if (!status?.reason || status.reason === BaseMapErrors.SCALE) {
28
63
  return void 0;
@@ -51,6 +86,7 @@ function BasemapView({ componentId }) {
51
86
  const tRoot = useTranslate();
52
87
  const activeNode = resolveActiveBasemapNode(tree, activeBasemap);
53
88
  const availability = useBasemapAvailability(tree, engine);
89
+ useBasemapErrorEvents(tree, availability, engine);
54
90
  const handleSelect = (id) => {
55
91
  setActiveBasemap(id, engine);
56
92
  };
@@ -363,8 +399,8 @@ function MapSwitchMobile() {
363
399
 
364
400
  const MODES = ["2d", "3d", "parallel"];
365
401
  function MapSwitchButtons({ layout }) {
366
- const mapModeConfig = useConfigStore((s) => s.config?.mapMode) ?? "both";
367
- if (mapModeConfig !== "both") {
402
+ const allowedMapMode = useAllowedMapMode();
403
+ if (allowedMapMode !== "both") {
368
404
  return null;
369
405
  }
370
406
  if (layout === "mobile") {
@@ -735,16 +771,16 @@ function geolocationErrorMessage(error) {
735
771
  const key = error.code === PERMISSION_DENIED ? "locationDenied" : "locationError";
736
772
  return translate(componentKey(NAVIGATION_COMPONENT_ID, key));
737
773
  }
738
- function constrainToBounds(position, constraintBbox) {
774
+ function constrainToBounds(position, constraintBbox, projection) {
739
775
  if (!constraintBbox) {
740
776
  return { position, outsideBounds: false };
741
777
  }
742
- const point = wgs84ToEpsg3301(position);
778
+ const point = fromWgs84(projection, position);
743
779
  if (containsPoint(point, constraintBbox)) {
744
780
  return { position, outsideBounds: false };
745
781
  }
746
782
  const [x, y] = clampPointToBounds(point, constraintBbox);
747
- return { position: epsg3301ToWgs84(x, y), outsideBounds: true };
783
+ return { position: toWgs84(projection, [x, y]), outsideBounds: true };
748
784
  }
749
785
 
750
786
  const LOCATE_ZOOM = 14;
@@ -808,7 +844,12 @@ function useGeolocation() {
808
844
  const resolvePosition = useCallback(
809
845
  (position) => {
810
846
  const constraintBbox = useMapViewStore.getState().constraintBbox;
811
- const { position: bounded, outsideBounds } = constrainToBounds(position, constraintBbox);
847
+ const projection = useProjectionStore.getState().projection;
848
+ const { position: bounded, outsideBounds } = constrainToBounds(
849
+ position,
850
+ constraintBbox,
851
+ projection
852
+ );
812
853
  if (outsideBounds && !trackingOutsideBounds.current) {
813
854
  emit("showToast", { message: t("locationOutsideBounds"), severity: "error" });
814
855
  }
@@ -855,6 +896,7 @@ function useGeolocation() {
855
896
  handlePositionUpdate,
856
897
  (error) => {
857
898
  emit("showToast", { message: geolocationErrorMessage(error), severity: "error" });
899
+ emit("error", { type: "geolocation", code: error.code });
858
900
  },
859
901
  POSITION_OPTIONS
860
902
  );
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../src/components/Basemap/assets/default_basemap.svg?inline","../src/components/Basemap/BasemapIcon.tsx","../src/components/Basemap/BasemapView.tsx","../src/components/Basemap/BasemapComponent.ts","../src/components/SidePanel/SidePanelView.tsx","../src/components/SidePanel/SidePanelComponent.ts","../src/components/SidePanel/MobileSidePanel.tsx","../src/components/LayerPanel/LayerPanelView.tsx","../src/components/LayerPanel/LayerPanelComponent.ts","../src/components/MapSwitch/MapSwitchDesktop.tsx","../src/components/MapSwitch/MapSwitchMobile.tsx","../src/components/MapSwitch/MapSwitchButtons.tsx","../src/components/MapSwitch/MapSwitchComponent.ts","../src/components/Navigation/assets/compass.svg","../src/components/Navigation/compassUtils.ts","../src/components/Navigation/hooks/useLiveRotation.ts","../src/components/Navigation/CompassButtons.tsx","../src/components/Navigation/hooks/useNavigationHistory.ts","../src/components/Navigation/HistoryButtons.tsx","../src/components/Navigation/geolocationUtils.ts","../src/components/Navigation/hooks/useTrackingZoom.ts","../src/components/Navigation/hooks/useGeolocation.ts","../src/components/Navigation/LocationButtons.tsx","../src/components/Navigation/ZoomButtons.tsx","../src/components/Navigation/NavigationComponent.ts","../src/components/Notification/NotificationToasts.tsx","../src/components/Notification/NotificationComponent.ts","../src/components/Search/SearchView.tsx","../src/components/Search/SearchComponent.ts","../src/components/TopicList/externalApps.ts","../src/components/TopicList/topicEntries.ts","../src/components/TopicList/TopicRow.tsx","../src/components/TopicList/TopicPicker.tsx","../src/components/TopicList/TopicSelect.tsx","../src/components/TopicList/TopicTrigger.tsx","../src/components/TopicList/TopicListView.tsx","../src/components/TopicList/TopicListComponent.ts","../src/index.ts"],"sourcesContent":["export default \"data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2067%2067'%20width='67'%20height='67'%3e%3cpath%20d='M3.33%200.06C13.98%200.06%2024.64%200.06%2035.29%200.06C33.78%206.45%2022.37%201.27%2017.58%203.12C15.49%203.93%2014.39%208.25%2012.5%209.68C9.44%206.47%206.39%203.26%203.33%200.06ZM33.17%205.04C31.94%209.01%2030.72%2012.99%2029.5%2016.97C27.55%2017.77%2023.89%2015.84%2021.5%2016.03C18.7%2016.25%2016.98%2018.47%2014.5%2019.15C13.41%2018.27%2012.33%2017.38%2011.24%2016.5C13.66%2012.68%2016.08%208.86%2018.5%205.04C23.39%205.04%2028.28%205.04%2033.17%205.04ZM40.83%205.16C42.51%207.05%2042.63%2011.3%2043.15%2013.72C43.84%2016.97%2045.97%2021.17%2045.75%2024.5C45.37%2030.09%2037.91%2032.94%2033.32%2031.5C33.89%2026.89%2034.42%2023.31%2031.13%2019.5C31.32%2017.87%2035.15%205.78%2036.06%205.22C37.17%204.56%2039.62%204.98%2040.83%205.16ZM51.5%2011.63C52.28%2016.63%2053.06%2021.62%2053.83%2026.62C46.34%2025.68%2047.33%2019.16%2045.24%2013.5C46.88%2011.91%2049.32%2011.85%2051.5%2011.63ZM21.25%2018.14C32.51%2016.04%2035.99%2033.16%2024.91%2035.8C13.55%2038.51%209.84%2020.26%2021.25%2018.14ZM9.5%2019.02C10.65%2018.92%2013.12%2020.01%2013.2%2021.51C13.42%2025.2%2010.46%2026.37%2013.13%2032.06C15.35%2036.79%2018.77%2035.79%2021.93%2038.24C23.18%2039.21%2023.48%2043%2023.87%2044.5C22.69%2045.72%2015.54%2047.45%2014.41%2046.09C13.06%2044.47%2012.53%2041.03%2011.82%2039.02C10.48%2035.27%206.46%2028.2%206.33%2024.49C6.28%2022.89%208.61%2020.28%209.5%2019.02ZM0.06%2025C1.22%2025.01%203.17%2024.62%204.16%2025.33C5.21%2026.1%209.45%2038.18%209.59%2039.83C6.41%2038.88%203.23%2037.93%200.06%2036.97C0.06%2032.98%200.06%2028.99%200.06%2025ZM39.97%2033.5C39.75%2034.71%2035.35%2042.3%2034.4%2042.86C32.15%2044.18%2028.94%2043.82%2026.5%2044.59C25.8%2042.56%2025.11%2040.53%2024.41%2038.5C27.82%2036.01%2035.85%2031.95%2039.97%2033.5ZM66.94%2039.28C66.94%2047.51%2066.94%2055.74%2066.94%2063.97C62.15%2062.34%2061.72%2045.39%2060.63%2040.5C62.73%2040.09%2064.84%2039.69%2066.94%2039.28ZM53.98%2066.94C44.99%2066.94%2036.01%2066.94%2027.02%2066.94C28.23%2057.72%2052.77%2057.72%2053.98%2066.94ZM63.31%2066.94C60.87%2066.94%2058.44%2066.94%2056%2066.94C55.27%2065.13%2054.53%2063.31%2053.79%2061.5C54.36%2060.97%2054.93%2060.43%2055.5%2059.9C58.1%2062.25%2060.71%2064.59%2063.31%2066.94Z'%20fill='%23539964'%20fill-rule='evenodd'%20stroke='%23539964'%20stroke-width='0.25'%20stroke-linejoin='round'/%3e%3cpath%20d='M0.08%200.08C1.16%200.07%202.25%200.06%203.33%200.06C6.39%203.26%209.44%206.47%2012.5%209.68C14.39%208.25%2015.49%203.93%2017.58%203.12C22.37%201.27%2033.78%206.45%2035.29%200.06C41.54%200.06%2047.8%200.06%2054.05%200.06C56.19%2012.65%2058.33%2025.24%2060.47%2037.83C62.63%2037.56%2064.79%2037.29%2066.94%2037.01C66.94%2037.77%2066.94%2038.53%2066.94%2039.28C64.84%2039.69%2062.73%2040.09%2060.63%2040.5C61.72%2045.39%2062.15%2062.34%2066.94%2063.97C66.94%2064.95%2066.93%2065.93%2066.92%2066.92C65.71%2066.93%2064.51%2066.94%2063.31%2066.94C60.71%2064.59%2058.1%2062.25%2055.5%2059.9C54.93%2060.43%2054.36%2060.97%2053.79%2061.5C54.53%2063.31%2055.27%2065.13%2056%2066.94C55.33%2066.94%2054.66%2066.94%2053.98%2066.94C52.77%2057.72%2028.23%2057.72%2027.02%2066.94C26.34%2066.94%2025.66%2066.94%2024.98%2066.94C24.83%2055.64%2045.09%2057.81%2051.5%2060.28C52.04%2059.68%2052.58%2059.09%2053.13%2058.5C47.58%2053.65%2042.04%2048.8%2036.5%2043.95C33.31%2047.36%2020.16%2047.24%2015.17%2049.17C13.79%2055.09%2012.42%2061.02%2011.05%2066.94C10.36%2066.94%209.67%2066.94%208.99%2066.94C9.07%2061.17%2015.55%2047.77%2010.86%2043.31C9.5%2042.02%206.67%2041.51%204.92%2040.88C3.31%2040.3%201.73%2039.37%200.06%2039.03C0.06%2038.35%200.06%2037.66%200.06%2036.97C3.23%2037.93%206.41%2038.88%209.59%2039.83C9.45%2038.18%205.21%2026.1%204.16%2025.33C3.17%2024.62%201.22%2025.01%200.06%2025C0.06%2021.46%200.06%2017.91%200.06%2014.37C1.54%2015.63%203.02%2016.89%204.5%2018.15C6.09%2016.71%208.24%2015.55%208.32%2013.17C5.57%2010.89%202.81%208.62%200.06%206.34C0.06%204.26%200.07%202.17%200.08%200.08ZM50.21%203.67C48.69%203.67%2047.18%203.67%2045.67%203.67C45.67%205.22%2045.67%206.78%2045.67%208.33C47.18%208.33%2048.69%208.33%2050.21%208.33C50.21%206.78%2050.21%205.22%2050.21%203.67ZM33.17%205.04C28.28%205.04%2023.39%205.04%2018.5%205.04C16.08%208.86%2013.66%2012.68%2011.24%2016.5C12.33%2017.38%2013.41%2018.27%2014.5%2019.15C16.98%2018.47%2018.7%2016.25%2021.5%2016.03C23.89%2015.84%2027.55%2017.77%2029.5%2016.97C30.72%2012.99%2031.94%209.01%2033.17%205.04ZM40.83%205.16C39.62%204.98%2037.17%204.56%2036.06%205.22C35.15%205.78%2031.32%2017.87%2031.13%2019.5C34.42%2023.31%2033.89%2026.89%2033.32%2031.5C37.91%2032.94%2045.37%2030.09%2045.75%2024.5C45.97%2021.17%2043.84%2016.97%2043.15%2013.72C42.63%2011.3%2042.51%207.05%2040.83%205.16ZM51.5%2011.63C49.32%2011.85%2046.88%2011.91%2045.24%2013.5C47.33%2019.16%2046.34%2025.68%2053.83%2026.62C53.06%2021.62%2052.28%2016.63%2051.5%2011.63ZM21.25%2018.14C9.84%2020.26%2013.55%2038.51%2024.91%2035.8C35.99%2033.16%2032.51%2016.04%2021.25%2018.14ZM9.5%2019.02C8.61%2020.28%206.28%2022.89%206.33%2024.49C6.46%2028.2%2010.48%2035.27%2011.82%2039.02C12.53%2041.03%2013.06%2044.47%2014.41%2046.09C15.54%2047.45%2022.69%2045.72%2023.87%2044.5C23.48%2043%2023.18%2039.21%2021.93%2038.24C18.77%2035.79%2015.35%2036.79%2013.13%2032.06C10.46%2026.37%2013.42%2025.2%2013.2%2021.51C13.12%2020.01%2010.65%2018.92%209.5%2019.02ZM47.5%2026.65C44.72%2030.99%2041.94%2035.33%2039.17%2039.66C45.63%2045.39%2052.09%2051.11%2058.55%2056.83C59.41%2055.04%2058.18%2052.76%2058%2050.83C57.49%2045.45%2056.6%2039.75%2055.36%2034.48C55.03%2033.07%2055.37%2030.9%2054.43%2029.74C53.17%2028.19%2049.37%2027.28%2047.5%2026.65ZM39.97%2033.5C35.85%2031.95%2027.82%2036.01%2024.41%2038.5C25.11%2040.53%2025.8%2042.56%2026.5%2044.59C28.94%2043.82%2032.15%2044.18%2034.4%2042.86C35.35%2042.3%2039.75%2034.71%2039.97%2033.5Z'%20fill='%23eaecec'%20fill-rule='evenodd'%20stroke='%23eaecec'%20stroke-width='0.25'%20stroke-linejoin='round'/%3e%3cpath%20d='M54.05%200.06C58.34%200.06%2062.63%200.07%2066.92%200.08C66.93%200.72%2066.94%201.36%2066.94%202C64.35%202.09%2061.76%202.17%2059.17%202.25C59.2%207.11%2059.22%2011.97%2059.25%2016.83C60.78%2016.97%2062.31%2017.1%2063.83%2017.24C63.97%2018.44%2064.11%2019.64%2064.25%2020.83C65.15%2020.89%2066.05%2020.94%2066.94%2021C66.94%2023.77%2066.94%2026.53%2066.94%2029.3C64.97%2029.7%2062.99%2030.1%2061.01%2030.5C61.17%2032.1%2061.34%2033.7%2061.5%2035.3C63.31%2035.11%2065.13%2034.91%2066.94%2034.72C66.94%2035.48%2066.94%2036.25%2066.94%2037.01C64.79%2037.29%2062.63%2037.56%2060.47%2037.83C58.33%2025.24%2056.19%2012.65%2054.05%200.06ZM47.5%2026.65C49.37%2027.28%2053.17%2028.19%2054.43%2029.74C55.37%2030.9%2055.03%2033.07%2055.36%2034.48C56.6%2039.75%2057.49%2045.45%2058%2050.83C58.18%2052.76%2059.41%2055.04%2058.55%2056.83C52.09%2051.11%2045.63%2045.39%2039.17%2039.66C41.94%2035.33%2044.72%2030.99%2047.5%2026.65ZM52.97%2034.04C50.99%2034.04%2049.01%2034.04%2047.03%2034.04C47.03%2037.35%2047.03%2040.65%2047.03%2043.96C49.01%2043.96%2050.99%2043.96%2052.97%2043.96C52.97%2040.65%2052.97%2037.35%2052.97%2034.04ZM0.06%2039.03C1.73%2039.37%203.31%2040.3%204.92%2040.88C6.67%2041.51%209.5%2042.02%2010.86%2043.31C15.55%2047.77%209.07%2061.17%208.99%2066.94C6.02%2066.94%203.05%2066.93%200.08%2066.92C0.07%2066.52%200.06%2066.12%200.06%2065.72C0.95%2065.76%201.85%2065.79%202.75%2065.83C4.07%2062.17%203.04%2056.98%206.83%2055.46C7.38%2052.81%207.93%2050.15%208.48%2047.5C6.89%2045.58%207.32%2044.91%206.99%2042.5C5.45%2042.28%203.91%2042.06%202.36%2041.83C1.59%2044.76%200.83%2047.69%200.06%2050.62C0.06%2046.76%200.06%2042.9%200.06%2039.03ZM24.98%2066.94C20.34%2066.94%2015.69%2066.94%2011.05%2066.94C12.42%2061.02%2013.79%2055.09%2015.17%2049.17C20.16%2047.24%2033.31%2047.36%2036.5%2043.95C42.04%2048.8%2047.58%2053.65%2053.13%2058.5C52.58%2059.09%2052.04%2059.68%2051.5%2060.28C45.09%2057.81%2024.83%2055.64%2024.98%2066.94ZM38.5%2047.8C37.36%2049.03%2036.22%2050.27%2035.08%2051.5C36.55%2052.73%2038.03%2053.97%2039.5%2055.2C40.64%2053.97%2041.78%2052.73%2042.92%2051.5C41.45%2050.27%2039.97%2049.03%2038.5%2047.8ZM25.97%2050.04C24.31%2050.04%2022.66%2050.04%2021%2050.04C21%2050.7%2021%2051.36%2021%2052.02C19.36%2052.02%2017.72%2052.02%2016.07%2052.02C16.07%2053.02%2016.07%2054.01%2016.07%2055.01C17.72%2055.01%2019.37%2055.01%2021.01%2055.01C21.01%2057.66%2021.01%2060.31%2021.01%2062.96C22.66%2062.96%2024.32%2062.96%2025.97%2062.96C25.97%2058.65%2025.97%2054.35%2025.97%2050.04ZM31.93%2050.1C31.31%2050.1%2030.69%2050.1%2030.07%2050.1C30.07%2051.03%2030.07%2051.97%2030.07%2052.9C30.69%2052.9%2031.31%2052.9%2031.93%2052.9C31.93%2051.97%2031.93%2051.03%2031.93%2050.1Z'%20fill='%23cacecc'%20fill-rule='evenodd'%20stroke='%23cacecc'%20stroke-width='0.25'%20stroke-linejoin='round'/%3e%3cpath%20d='M38%200%2050%200%2051%209%2045%2011%2045%2010%2044%2010%2043%203%2037%203ZM0%203%2010%2012%2010%2015%209%2015%209%2017%207%2018%207%2020%205%2021%205%2023%200%2023Z'%20fill='%23cacecc'%20fill-rule='evenodd'%20stroke='%23cacecc'%20stroke-width='0.25'%20stroke-linejoin='round'/%3e%3cpath%20d='M66.94%202C66.94%208.33%2066.94%2014.67%2066.94%2021C66.05%2020.94%2065.15%2020.89%2064.25%2020.83C64.11%2019.64%2063.97%2018.44%2063.83%2017.24C62.31%2017.1%2060.78%2016.97%2059.25%2016.83C59.22%2011.97%2059.2%207.11%2059.17%202.25C61.76%202.17%2064.35%202.09%2066.94%202ZM50.21%203.67C50.21%205.22%2050.21%206.78%2050.21%208.33C48.69%208.33%2047.18%208.33%2045.67%208.33C45.67%206.78%2045.67%205.22%2045.67%203.67C47.18%203.67%2048.69%203.67%2050.21%203.67ZM0.06%206.34C2.81%208.62%205.57%2010.89%208.32%2013.17C8.24%2015.55%206.09%2016.71%204.5%2018.15C3.02%2016.89%201.54%2015.63%200.06%2014.37C0.06%2011.69%200.06%209.02%200.06%206.34ZM66.94%2029.3C66.94%2031.11%2066.94%2032.91%2066.94%2034.72C65.13%2034.91%2063.31%2035.11%2061.5%2035.3C61.34%2033.7%2061.17%2032.1%2061.01%2030.5C62.99%2030.1%2064.97%2029.7%2066.94%2029.3ZM52.97%2034.04C52.97%2037.35%2052.97%2040.65%2052.97%2043.96C50.99%2043.96%2049.01%2043.96%2047.03%2043.96C47.03%2040.65%2047.03%2037.35%2047.03%2034.04C49.01%2034.04%2050.99%2034.04%2052.97%2034.04ZM0.06%2065.72C0.06%2060.69%200.06%2055.66%200.06%2050.62C0.83%2047.69%201.59%2044.76%202.36%2041.83C3.91%2042.06%205.45%2042.28%206.99%2042.5C7.32%2044.91%206.89%2045.58%208.48%2047.5C7.93%2050.15%207.38%2052.81%206.83%2055.46C3.04%2056.98%204.07%2062.17%202.75%2065.83C1.85%2065.79%200.95%2065.76%200.06%2065.72ZM38.5%2047.8C39.97%2049.03%2041.45%2050.27%2042.92%2051.5C41.78%2052.73%2040.64%2053.97%2039.5%2055.2C38.03%2053.97%2036.55%2052.73%2035.08%2051.5C36.22%2050.27%2037.36%2049.03%2038.5%2047.8ZM25.97%2050.04C25.97%2054.35%2025.97%2058.65%2025.97%2062.96C24.32%2062.96%2022.66%2062.96%2021.01%2062.96C21.01%2060.31%2021.01%2057.66%2021.01%2055.01C19.37%2055.01%2017.72%2055.01%2016.07%2055.01C16.07%2054.01%2016.07%2053.02%2016.07%2052.02C17.72%2052.02%2019.36%2052.02%2021%2052.02C21%2051.36%2021%2050.7%2021%2050.04C22.66%2050.04%2024.31%2050.04%2025.97%2050.04ZM31.93%2050.1C31.93%2051.03%2031.93%2051.97%2031.93%2052.9C31.31%2052.9%2030.69%2052.9%2030.07%2052.9C30.07%2051.97%2030.07%2051.03%2030.07%2050.1C30.69%2050.1%2031.31%2050.1%2031.93%2050.1Z'%20fill='%239faca3'%20fill-rule='evenodd'%20stroke='%239faca3'%20stroke-width='0.25'%20stroke-linejoin='round'/%3e%3c/svg%3e\"","import { useState } from 'react'\n\nimport defaultBasemapIconUrl from './assets/default_basemap.svg?inline'\n\ninterface BasemapIconProps {\n src: string | undefined\n alt: string\n}\n\nexport function BasemapIcon({ src, alt }: Readonly<BasemapIconProps>) {\n const [failedSrc, setFailedSrc] = useState<string>()\n\n const resolved = src && src !== failedSrc ? src : defaultBasemapIconUrl\n\n return (\n <img\n alt={alt}\n src={resolved}\n onError={() => {\n if (resolved !== defaultBasemapIconUrl) {\n setFailedSrc(src)\n }\n }}\n />\n )\n}\n","import { BaseMapSelection } from '@tedi-design-system/react/community'\nimport type { BasemapAvailability, BasemapNode, IComponentUIProps } from '@xgis/xgis-common'\nimport {\n BASEMAP_COMPONENT_ID,\n BaseMapErrors,\n basemapNodeIcon,\n layerKey,\n modeForSide,\n resolveActiveBasemapNode,\n useBasemapAvailability,\n useBasemapStore,\n useBasemapTree,\n useComponentTranslate,\n useMapViewStore,\n useTranslate,\n} from '@xgis/xgis-common'\n\nimport { BasemapIcon } from './BasemapIcon'\n\nfunction optionTooltip(\n status: BasemapAvailability | undefined,\n t: (key: string) => string,\n): string | undefined {\n if (!status?.reason || status.reason === BaseMapErrors.SCALE) {\n return undefined\n }\n\n return t(`unavailable.${status.reason}`)\n}\n\nfunction nodeTitle(node: BasemapNode, t: (key: string) => string): string {\n const key = node.kind === 'folder' ? `${node.id}.label` : layerKey(node.id, 'name.label')\n const title = t(key)\n\n return !title || title === key ? node.id : title\n}\n\nexport function BasemapView({ componentId }: IComponentUIProps) {\n const activeMap = useMapViewStore((s) => s.mode)\n const activeParallellMap = useMapViewStore((s) => modeForSide(s.parallelPrimary))\n const activeBasemap2d = useBasemapStore((s) => s.activeBasemap2d)\n const activeBasemap3d = useBasemapStore((s) => s.activeBasemap3d)\n const opacity2d = useBasemapStore((s) => s.opacity2d)\n const opacity3d = useBasemapStore((s) => s.opacity3d)\n\n const engine = activeMap === 'parallel' ? activeParallellMap : activeMap\n const tree = useBasemapTree(engine, componentId)\n const activeBasemap = engine === '3d' ? activeBasemap3d : activeBasemap2d\n const basemapOpacity = engine === '3d' ? opacity3d : opacity2d\n\n const setActiveBasemap = useBasemapStore((s) => s.setActiveBasemap)\n const setBasemapOpacity = useBasemapStore((s) => s.setBasemapOpacity)\n const t = useComponentTranslate(BASEMAP_COMPONENT_ID)\n const tRoot = useTranslate()\n\n const activeNode = resolveActiveBasemapNode(tree, activeBasemap)\n const availability = useBasemapAvailability(tree, engine)\n\n const handleSelect = (id: string) => {\n setActiveBasemap(id, engine)\n }\n\n const handleOpacityChange = (opacity: number) => {\n setBasemapOpacity(opacity, engine)\n }\n\n return (\n <>\n <div data-testid=\"basemap\" style={{ width: 'fit-content' }}>\n <BaseMapSelection\n transparency={basemapOpacity}\n onTransparencyChange={handleOpacityChange}\n id=\"basemap-button\"\n title={t('title')}\n showTransparency\n content={\n <BasemapIcon\n alt=\"Selected base map\"\n src={activeNode ? basemapNodeIcon(activeNode) : undefined}\n />\n }\n >\n {tree.map((node) => {\n const id = node.id\n const status = availability.get(id)\n const disabled = Boolean(status && !status.available && !status.pending)\n const tooltip = optionTooltip(status, t)\n const title = nodeTitle(node, tRoot)\n\n return (\n <BaseMapSelection.Option\n content={<BasemapIcon alt={id} src={basemapNodeIcon(node)} />}\n title={title}\n id={id}\n key={id}\n disabled={disabled}\n selected={id === activeBasemap}\n tooltipText={tooltip}\n tooltipType=\"error\"\n onSelect={() => {\n handleSelect(id)\n }}\n />\n )\n })}\n </BaseMapSelection>\n </div>\n </>\n )\n}\n","import type { IComponentBookmarkState, IXgisComponent } from '@xgis/xgis-common'\nimport { BASEMAP_COMPONENT_ID, SLOTS, useBasemapStore } from '@xgis/xgis-common'\n\nimport { BasemapView } from './BasemapView'\nimport enMessages from './lang/en.json'\nimport etMessages from './lang/et.json'\n\ninterface BasemapBookmarkSettings {\n activeBasemap2d?: string | null\n activeBasemap3d?: string | null\n}\n\nexport const BasemapComponent: IXgisComponent = {\n id: BASEMAP_COMPONENT_ID,\n\n messages: {\n et: etMessages,\n en: enMessages,\n },\n\n ui: {\n [SLOTS.BASEMAPS]: { Component: BasemapView },\n },\n\n bookmark: {\n serialize: (): IComponentBookmarkState => {\n const state = useBasemapStore.getState()\n\n return {\n render: true,\n settings: {\n activeBasemap2d: state.activeBasemap2d,\n activeBasemap3d: state.activeBasemap3d,\n },\n }\n },\n\n deserialize: (data) => {\n const settings = data.settings as BasemapBookmarkSettings | undefined\n\n if (!settings) {\n return\n }\n\n const { setActiveBasemap } = useBasemapStore.getState()\n\n if (settings.activeBasemap2d) {\n setActiveBasemap(settings.activeBasemap2d, '2d')\n }\n\n if (settings.activeBasemap3d) {\n setActiveBasemap(settings.activeBasemap3d, '3d')\n }\n },\n },\n}\n","import type { IComponentUIProps } from '@xgis/xgis-common'\nimport { Slot, useLayoutStore } from '@xgis/xgis-common'\n\nimport { MobileSidePanel } from './MobileSidePanel'\nimport { SIDE_PANEL_SLOTS } from './SidePanelComponent'\n\nexport function SidePanelView(_props: IComponentUIProps) {\n const layout = useLayoutStore((s) => s.mode)\n\n if (layout === 'mobile') {\n return <MobileSidePanel />\n }\n\n return (\n <>\n <Slot id={SIDE_PANEL_SLOTS.TOPICLIST} />\n <Slot id={SIDE_PANEL_SLOTS.LAYERS} />\n <Slot id={SIDE_PANEL_SLOTS.BOOKMARKS} />\n </>\n )\n}\n","import type { IXgisComponent } from '@xgis/xgis-common'\nimport { SIDEPANEL_COMPONENT_ID, SLOTS } from '@xgis/xgis-common'\n\nimport enMessages from './lang/en.json'\nimport etMessages from './lang/et.json'\nimport { SidePanelView } from './SidePanelView'\n\nexport const SIDE_PANEL_SLOTS = {\n LAYERS: 'xgis.sidePanel.layers',\n BOOKMARKS: 'xgis.sidePanel.bookmarks',\n TOPICLIST: 'xgis.sidePanel.topiclist',\n} as const\n\nexport const SidePanelComponent: IXgisComponent = {\n id: SIDEPANEL_COMPONENT_ID,\n\n messages: {\n et: etMessages,\n en: enMessages,\n },\n\n ui: {\n [SLOTS.SIDE_PANEL]: { Component: SidePanelView },\n },\n\n slots: [\n { id: SIDE_PANEL_SLOTS.LAYERS, description: 'Layer list area' },\n { id: SIDE_PANEL_SLOTS.BOOKMARKS, description: 'Bookmarks area' },\n { id: SIDE_PANEL_SLOTS.TOPICLIST, description: 'Topic list area' },\n ],\n}\n","import { Tabs } from '@tedi-design-system/react/tedi'\nimport {\n SIDEPANEL_COMPONENT_ID,\n Slot,\n useComponentTranslate,\n useTopicStore,\n useUiStore,\n} from '@xgis/xgis-common'\n\nimport styles from './MobileSidePanel.module.css'\nimport { SIDE_PANEL_SLOTS } from './SidePanelComponent'\n\nconst TOPIC_TAB_ID = 'side-panel-topic'\n\nexport function MobileSidePanel() {\n const isTopicPickerOpen = useUiStore((s) => s.topicPickerOpen)\n const topics = useTopicStore((s) => s.topics)\n const activeTopicId = useTopicStore((s) => s.activeTopicId)\n const t = useComponentTranslate(SIDEPANEL_COMPONENT_ID)\n\n if (isTopicPickerOpen) {\n return (\n <div className={styles.panel} data-testid=\"mobile-side-panel\">\n <Slot id={SIDE_PANEL_SLOTS.TOPICLIST} />\n </div>\n )\n }\n\n const activeTopicTitle = topics.find((topic) => topic.id === activeTopicId)?.title\n\n return (\n <div className={styles.panel} data-testid=\"mobile-side-panel\">\n <Slot id={SIDE_PANEL_SLOTS.TOPICLIST} />\n\n <Tabs defaultValue={TOPIC_TAB_ID}>\n <Tabs.List aria-label={t('tabs.aria')} overflowMode=\"scroll\">\n <Tabs.Trigger id={TOPIC_TAB_ID}>{activeTopicTitle ?? t('tabs.topic')}</Tabs.Trigger>\n </Tabs.List>\n\n <Tabs.Content id={TOPIC_TAB_ID}>\n <Slot id={SIDE_PANEL_SLOTS.LAYERS} />\n <Slot id={SIDE_PANEL_SLOTS.BOOKMARKS} />\n </Tabs.Content>\n </Tabs>\n </div>\n )\n}\n","import { MapAccordion } from '@tedi-design-system/react/community'\nimport { Toggle } from '@tedi-design-system/react/tedi'\nimport type { IComponentUIProps } from '@xgis/xgis-common'\nimport type { ILayer } from '@xgis/xgis-common'\nimport {\n layerKey,\n LAYERPANEL_COMPONENT_ID,\n useComponentTranslate,\n useLayerStore,\n useMapViewStore,\n useTranslate,\n} from '@xgis/xgis-common'\n\nimport styles from './LayerPanelView.module.css'\n\nfunction layerLabel(layer: ILayer, t: (key: string) => string): string {\n const key = layerKey(layer.fatLayerId ?? layer.id, 'name.label')\n const label = t(key)\n\n return !label || label === key ? layer.id : label\n}\n\nfunction filterByMode(layers: ILayer[], mode: string): ILayer[] {\n return layers.filter((l) => {\n if (mode === 'parallel' || !l.supportedEngines) {\n return true\n }\n const engine = mode === '2d' ? '2d' : '3d'\n return l.supportedEngines.includes(engine)\n })\n}\n\nexport function LayerPanelView(_props: IComponentUIProps) {\n const mode = useMapViewStore((s) => s.mode)\n const layers = useLayerStore((s) => s.layers)\n const setLayerVisibility = useLayerStore((s) => s.setLayerVisibility)\n const t = useComponentTranslate(LAYERPANEL_COMPONENT_ID)\n const tRoot = useTranslate()\n\n const displayLayers = filterByMode(layers, mode)\n\n return (\n <div data-testid=\"layer-panel\">\n <MapAccordion defaultOpenItem={['kihid']}>\n <MapAccordion.Item id=\"kihid\">\n <MapAccordion.Header title={t('layers')} />\n <MapAccordion.Content>\n <div className={styles.layerList}>\n {displayLayers.map((layer) => {\n const label = layerLabel(layer, tRoot)\n\n return (\n <div key={layer.id} className={styles.layerRow} data-layer-id={layer.id}>\n <Toggle\n id={layer.id}\n label={label}\n labelPosition=\"right\"\n checked={layer.visible}\n onChange={(checked: boolean) => {\n setLayerVisibility(layer.id, checked)\n }}\n />\n </div>\n )\n })}\n </div>\n </MapAccordion.Content>\n </MapAccordion.Item>\n </MapAccordion>\n </div>\n )\n}\n","import type { IXgisComponent } from '@xgis/xgis-common'\nimport { LAYERPANEL_COMPONENT_ID } from '@xgis/xgis-common'\n\nimport { SIDE_PANEL_SLOTS } from '../SidePanel'\nimport enMessages from './lang/en.json'\nimport etMessages from './lang/et.json'\nimport { LayerPanelView } from './LayerPanelView'\n\nexport const LayerPanelComponent: IXgisComponent = {\n id: LAYERPANEL_COMPONENT_ID,\n\n messages: {\n et: etMessages,\n en: enMessages,\n },\n\n contributions: [{ target: SIDE_PANEL_SLOTS.LAYERS, Component: LayerPanelView }],\n\n bookmark: {\n serialize: () => ({ render: true }),\n deserialize: () => undefined,\n },\n}\n","import { Button, ButtonGroup } from '@tedi-design-system/react/tedi'\nimport { MAPSWITCH_COMPONENT_ID, useComponentTranslate, useMapViewStore } from '@xgis/xgis-common'\n\nimport { MODES } from './MapSwitchButtons'\n\nexport function MapSwitchDesktop() {\n const t = useComponentTranslate(MAPSWITCH_COMPONENT_ID)\n const mode = useMapViewStore((s) => s.mode)\n const setMode = useMapViewStore((s) => s.setMode)\n\n return (\n <div data-testid=\"map-switch-desktop\" style={{ display: 'contents' }}>\n <ButtonGroup ariaLabel={t('ariaLabel')}>\n {MODES.map((value) => (\n <Button\n key={value}\n id={value}\n isActive={mode === value}\n onClick={() => setMode(value)}\n iconLeft={value === 'parallel' ? 'split_scene' : undefined}\n >\n <span data-testid={`map-switch-mode-${value}`}>{t(value)}</span>\n </Button>\n ))}\n </ButtonGroup>\n </div>\n )\n}\n","import { MapButton } from '@tedi-design-system/react/community'\nimport { Icon } from '@tedi-design-system/react/tedi'\nimport {\n MAPSWITCH_COMPONENT_ID,\n useComponentTranslate,\n useLayoutStore,\n useMapViewStore,\n} from '@xgis/xgis-common'\n\nimport { MODES } from './MapSwitchButtons'\n\nexport function MapSwitchMobile() {\n const t = useComponentTranslate(MAPSWITCH_COMPONENT_ID)\n const mode = useMapViewStore((s) => s.mode)\n const setMode = useMapViewStore((s) => s.setMode)\n const orientation = useLayoutStore((s) => s.orientation)\n const isParallel = mode === 'parallel'\n const splitIcon = orientation === 'landscape' ? 'split_scene' : 'split_scene_2'\n\n const modeItems = MODES.map((value) => ({\n children: (\n <>\n {value === 'parallel' ? (\n <>\n <Icon name={splitIcon} size={16} display=\"inline\" />{' '}\n </>\n ) : null}\n <span data-testid={`map-switch-mode-${value}`}>{t(value)}</span>\n </>\n ),\n isActive: value === mode,\n onClick: () => setMode(value),\n }))\n\n return (\n <MapButton\n size=\"small\"\n hideLabel={isParallel}\n icon={isParallel ? splitIcon : undefined}\n dropdownItems={modeItems}\n aria-label={`${t('ariaLabel')}: ${t(mode)}`}\n data-testid=\"map-switch-mobile\"\n >\n <span data-testid=\"map-switch-mobile-trigger\">{t(mode)}</span>\n </MapButton>\n )\n}\n","import { type IComponentUIProps, type MapMode, useConfigStore } from '@xgis/xgis-common'\n\nimport { MapSwitchDesktop } from './MapSwitchDesktop'\nimport { MapSwitchMobile } from './MapSwitchMobile'\n\nexport const MODES: MapMode[] = ['2d', '3d', 'parallel']\n\nexport function MapSwitchButtons({ layout }: IComponentUIProps) {\n const mapModeConfig = useConfigStore((s) => s.config?.mapMode) ?? 'both'\n\n if (mapModeConfig !== 'both') {\n return null\n }\n\n if (layout === 'mobile') {\n return <MapSwitchMobile />\n }\n\n return <MapSwitchDesktop />\n}\n","import type { IXgisComponent } from '@xgis/xgis-common'\nimport { MAPSWITCH_COMPONENT_ID, SLOTS } from '@xgis/xgis-common'\n\nimport enMessages from './lang/en.json'\nimport etMessages from './lang/et.json'\nimport { MapSwitchButtons } from './MapSwitchButtons'\n\nexport const MapSwitchComponent: IXgisComponent = {\n id: MAPSWITCH_COMPONENT_ID,\n\n messages: {\n et: etMessages,\n en: enMessages,\n },\n\n ui: {\n [SLOTS.MAP_SWITCH]: { Component: MapSwitchButtons },\n },\n\n bookmark: {\n serialize: () => ({ render: true }),\n deserialize: () => undefined,\n },\n}\n","export default \"data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_604_38579)'%3e%3cpath%20d='M14.1209%2014.1214L9.8783%209.87872L17.6565%206.34318L14.1209%2014.1214Z'%20fill='%23005AA3'/%3e%3cpath%20d='M13.0609%2013.0607L9.1718%2014.8285L10.9396%2010.9394L9.87891%209.87872L6.34337%2017.6569L14.1215%2014.1214L13.0609%2013.0607Z'%20fill='%23005AA3'/%3e%3cpath%20d='M4.22183%2019.7782C-0.0667771%2015.4896%20-0.0667774%208.51044%204.22183%204.22184C8.51043%20-0.0667636%2015.4896%20-0.0667636%2019.7782%204.22184C24.0668%208.51044%2024.0668%2015.4896%2019.7782%2019.7782C15.4896%2024.0668%208.51043%2024.0668%204.22183%2019.7782ZM18.364%205.63605C14.8553%202.12739%209.1447%202.12739%205.63604%205.63605C2.12667%209.14542%202.12738%2014.8553%205.63604%2018.364C9.14541%2021.8733%2014.8546%2021.8733%2018.364%2018.364C21.8726%2014.8553%2021.8733%209.14542%2018.364%205.63605Z'%20fill='%23005AA3'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_604_38579'%3e%3crect%20width='24'%20height='24'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e\"","import type { Radians } from '@xgis/xgis-common'\nimport { RADIANS_TO_DEGREES, wrapToRange } from '@xgis/xgis-common'\n\nconst FULL_CIRCLE_DEGREES = 360\n\n// The \"explore\" compass icon's needle sits at 45° (north-east) at rest, so the rendered\n// rotation carries a -45° offset to make 0° read as due north.\nconst COMPASS_ICON_REST_OFFSET_DEGREES = 45\n\n/**\n * A positive store rotation turns the map, and with it north, clockwise on screen, so in whole\n * degrees within [0, 360) it is where north points, measured clockwise from the top.\n */\nexport function rotationToCompassDegrees(rotation: Radians): number {\n const degrees = Math.round(rotation * RADIANS_TO_DEGREES)\n return wrapToRange(degrees, FULL_CIRCLE_DEGREES)\n}\n\n/**\n * CSS rotates clockwise, the same way the store rotation turns the map, so the needle takes the\n * bearing as it is, less the icon's 45° rest angle.\n */\nexport function compassIconRotationDegrees(compassDegrees: number): number {\n return compassDegrees - COMPASS_ICON_REST_OFFSET_DEGREES\n}\n","import type { ICameraCapability } from '@xgis/xgis-common'\nimport { useCapability, useMapViewStore } from '@xgis/xgis-common'\nimport { useEffect, useState } from 'react'\n\nexport function useLiveRotation(): number {\n const settled = useMapViewStore((s) => s.rotation)\n const camera2d = useCapability<ICameraCapability>('camera', '2d')\n const camera3d = useCapability<ICameraCapability>('camera', '3d')\n\n const [live, setLive] = useState<number>(settled)\n const [prevSettled, setPrevSettled] = useState<number>(settled)\n\n if (settled !== prevSettled) {\n setPrevSettled(settled)\n setLive(settled)\n }\n\n useEffect(() => {\n const onRotation = (rotation: number): void => {\n if (Number.isFinite(rotation)) {\n setLive(rotation)\n }\n }\n\n const unsubs: Array<() => void> = []\n\n if (camera2d) {\n unsubs.push(camera2d.onRotationChange(onRotation))\n }\n\n if (camera3d) {\n unsubs.push(camera3d.onRotationChange(onRotation))\n }\n\n return () => {\n unsubs.forEach((unsub) => unsub())\n }\n }, [camera2d, camera3d])\n\n return live\n}\n","import { ButtonGroup, MapButton } from '@tedi-design-system/react/community'\nimport { Icon, Text } from '@tedi-design-system/react/tedi'\nimport type { IComponentUIProps, NavigationSettings, Radians } from '@xgis/xgis-common'\nimport {\n NAVIGATION_COMPONENT_ID,\n TOP_DOWN_PITCH,\n useComponentSettingsStore,\n useComponentTranslate,\n useMapViewStore,\n useParallelViewSync,\n} from '@xgis/xgis-common'\nimport type { CSSProperties } from 'react'\n\nimport compassIconUrl from './assets/compass.svg'\nimport { compassIconRotationDegrees, rotationToCompassDegrees } from './compassUtils'\nimport { useLiveRotation } from './hooks/useLiveRotation'\nimport styles from './NavigationButtons.module.css'\n\nconst NORTH_ROTATION = 0 as Radians\nconst NORTH_ICON_REST_ROTATION_DEG = compassIconRotationDegrees(0)\n\nexport function CompassButtons(_props: IComponentUIProps) {\n const t = useComponentTranslate(NAVIGATION_COMPONENT_ID)\n // Display rotation from the live channel (tracks a gesture in real time, incl. 2D, where\n // mapViewStore only updates on settle); navigation still writes through mapViewStore below.\n const rotation = useLiveRotation()\n const defaultView = useMapViewStore((s) => s.defaultView)\n const rotationAllowed = useMapViewStore((s) => s.rotationAllowed)\n const { available, coupled, toggle } = useParallelViewSync()\n const settings = useComponentSettingsStore((s) =>\n s.getComponentSettings<NavigationSettings>(NAVIGATION_COMPONENT_ID),\n )\n\n const showDefaultView = settings?.reset === true\n const showCompass = settings?.positioningCompass !== false && rotationAllowed\n\n const compassDeg = rotationToCompassDegrees(rotation)\n const northLabel = available ? t('north') : t('restoreNorth')\n\n const restoreInitialView = () => {\n const { rotation, pitch } = defaultView\n\n // A boot view was fitted to the theme bbox, and the zoom that produced is viewport-dependent —\n // so re-fit rather than replay a zoom that would be wrong at any other window size.\n if (defaultView.kind === 'fit') {\n useMapViewStore.setState({ rotation, pitch, fitBboxIntent: { bbox: defaultView.bbox } })\n return\n }\n\n useMapViewStore.setState({\n rotation,\n pitch,\n zoomToIntent: { center: defaultView.center, zoom: defaultView.zoom },\n })\n }\n\n const resetNorth = () => {\n useMapViewStore.setState({ rotation: NORTH_ROTATION, pitch: TOP_DOWN_PITCH })\n }\n\n const northMenuItems = available\n ? [\n {\n children: (\n <Text element=\"span\">\n <span\n aria-hidden=\"true\"\n className={styles.menuIcon}\n style={\n {\n '--menu-icon-url': `url(\"${compassIconUrl}\")`,\n transform: `rotate(${NORTH_ICON_REST_ROTATION_DEG}deg)`,\n } as CSSProperties\n }\n />{' '}\n <span data-testid=\"nav-restore-north\">{t('restoreNorth')}</span>\n </Text>\n ),\n onClick: resetNorth,\n },\n {\n children: (\n <Text element=\"span\">\n <Icon\n name={coupled ? 'lock_open' : 'lock'}\n size={16}\n display=\"inline\"\n color=\"inherit\"\n />{' '}\n <span data-testid=\"nav-view-sync-toggle\">\n {coupled ? t('decoupleViews') : t('coupleViews')}\n </span>\n </Text>\n ),\n onClick: toggle,\n },\n ]\n : undefined\n\n if (!showDefaultView && !showCompass) {\n return null\n }\n\n return (\n <ButtonGroup\n direction=\"vertical\"\n ariaLabel={t('orientationControls')}\n suffix={showCompass ? `${compassDeg}°` : undefined}\n >\n {showDefaultView && (\n <MapButton\n size=\"small\"\n hideLabel\n icon=\"restart_alt\"\n onClick={restoreInitialView}\n data-testid=\"nav-default-view\"\n >\n {t('defaultView')}\n </MapButton>\n )}\n {showCompass && (\n <MapButton\n size=\"small\"\n hideLabel\n icon=\"explore\"\n onClick={available ? undefined : resetNorth}\n dropdownItems={northMenuItems}\n aria-label={northLabel}\n data-testid=\"nav-north\"\n className={styles.compassIcon}\n // CSSProperties doesn't include custom properties; assertion required per @types/react docs.\n style={\n {\n '--compass-rotation': `${compassIconRotationDegrees(compassDeg)}deg`,\n '--compass-icon-url': `url(\"${compassIconUrl}\")`,\n } as CSSProperties\n }\n >\n {northLabel}\n </MapButton>\n )}\n </ButtonGroup>\n )\n}\n","import {\n activeEngine,\n extentCenter,\n selectSyncedGroup,\n useMapViewStore,\n useNavigationHistoryStore,\n} from '@xgis/xgis-common'\nimport { useCallback } from 'react'\n\ninterface UseNavigationHistoryResult {\n canGoBack: boolean\n canGoForward: boolean\n back: () => void\n forward: () => void\n}\n\nexport function useNavigationHistory(): UseNavigationHistoryResult {\n const mode = useMapViewStore((s) => s.mode)\n const parallelPrimary = useMapViewStore((s) => s.parallelPrimary)\n const engine = activeEngine(mode, parallelPrimary)\n\n const stack = useNavigationHistoryStore((s) => s.stacks[engine])\n const canGoBack = stack.pointer > 0\n const canGoForward = stack.pointer < stack.entries.length - 1\n\n const replayTo = useCallback(\n (target: number) => {\n const { stacks, moveTo, setReplayPending } = useNavigationHistoryStore.getState()\n const entry = stacks[engine].entries[target]\n\n if (entry === undefined) {\n return\n }\n\n // Replay via center + zoom + rotation, not a bbox fit (a rotated view's stored AABB over-zooms\n // when re-fitted — see HistoryEntry.zoom). bbox midpoint is the true center.\n const center = extentCenter(entry.bbox)\n\n setReplayPending(true)\n for (const member of selectSyncedGroup(useMapViewStore.getState())) {\n moveTo(member, target)\n }\n useMapViewStore.setState({\n rotation: entry.rotation,\n pitch: entry.pitch,\n zoomToIntent: { center, zoom: entry.zoom },\n })\n },\n [engine],\n )\n\n const back = useCallback(() => {\n const current = useNavigationHistoryStore.getState().stacks[engine]\n if (current.pointer <= 0) {\n return\n }\n replayTo(current.pointer - 1)\n }, [engine, replayTo])\n\n const forward = useCallback(() => {\n const current = useNavigationHistoryStore.getState().stacks[engine]\n if (current.pointer >= current.entries.length - 1) {\n return\n }\n replayTo(current.pointer + 1)\n }, [engine, replayTo])\n\n return { canGoBack, canGoForward, back, forward }\n}\n","import { ButtonGroup, MapButton } from '@tedi-design-system/react/community'\nimport type { IComponentUIProps, NavigationSettings } from '@xgis/xgis-common'\nimport {\n NAVIGATION_COMPONENT_ID,\n useComponentSettingsStore,\n useComponentTranslate,\n} from '@xgis/xgis-common'\n\nimport { useNavigationHistory } from './hooks/useNavigationHistory'\n\nexport function HistoryButtons(_props: IComponentUIProps) {\n const t = useComponentTranslate(NAVIGATION_COMPONENT_ID)\n const { canGoBack, canGoForward, back, forward } = useNavigationHistory()\n const settings = useComponentSettingsStore((s) =>\n s.getComponentSettings<NavigationSettings>(NAVIGATION_COMPONENT_ID),\n )\n\n if (settings?.history === false) {\n return null\n }\n\n return (\n <ButtonGroup direction=\"vertical\" ariaLabel={t('historyControls')}>\n <MapButton\n size=\"small\"\n hideLabel\n icon=\"arrow_back\"\n disabled={!canGoBack}\n onClick={back}\n data-testid=\"nav-history-back\"\n >\n {t('back')}\n </MapButton>\n <MapButton\n size=\"small\"\n hideLabel\n icon=\"arrow_forward\"\n disabled={!canGoForward}\n onClick={forward}\n data-testid=\"nav-history-forward\"\n >\n {t('forward')}\n </MapButton>\n </ButtonGroup>\n )\n}\n","import type { Extent3301, LonLat, Radians, ZoomLevel } from '@xgis/xgis-common'\nimport {\n clampPointToBounds,\n componentKey,\n containsPoint,\n DEGREES_TO_RADIANS,\n epsg3301ToWgs84,\n NAVIGATION_COMPONENT_ID,\n translate,\n TWO_PI,\n wgs84ToEpsg3301,\n wrapToRange,\n} from '@xgis/xgis-common'\n\n// W3C GeolocationPositionError.PERMISSION_DENIED — not available as a global in all environments.\nconst PERMISSION_DENIED = 1\n\n// Cesium reports zoom on a 0.1 grid.\nconst ZOOM_SETTLE_TOLERANCE = 0.1\n\n// Mid-flight the store zoom is stale (OpenLayers) or intermediate (Cesium).\nexport function settlePendingZoom(\n pending: ZoomLevel | null,\n storeZoom: ZoomLevel,\n): ZoomLevel | null {\n if (pending === null || Math.abs(storeZoom - pending) <= ZOOM_SETTLE_TOLERANCE) {\n return null\n }\n\n return pending\n}\n\n// GPS heading is clockwise degrees from north; marker cone rotation uses the same clockwise sense.\nexport function headingToRadians(headingDegrees: number): Radians {\n return (headingDegrees * DEGREES_TO_RADIANS) as Radians\n}\n\n// mapViewStore.rotation turns the map clockwise, which faces the top of the screen that far\n// counter-clockwise of north: the opposite sense from a GPS heading.\nexport function negateAndWrap(radians: Radians): Radians {\n return wrapToRange(-radians, TWO_PI) as Radians\n}\n\nexport function headingToMapRotation(headingDegrees: number): Radians {\n return negateAndWrap(headingToRadians(headingDegrees))\n}\n\nexport function geolocationErrorMessage(error: GeolocationPositionError): string {\n const key = error.code === PERMISSION_DENIED ? 'locationDenied' : 'locationError'\n\n return translate(componentKey(NAVIGATION_COMPONENT_ID, key))\n}\n\nexport interface BoundedFix {\n readonly position: LonLat\n readonly outsideBounds: boolean\n}\n\n// A GPS fix can fall outside the topic's area. Reports whether it did, and clamps the position to\n// fly to as close as the bounds allow rather than to a place the map will refuse to go.\nexport function constrainToBounds(position: LonLat, constraintBbox: Extent3301 | null): BoundedFix {\n if (!constraintBbox) {\n return { position, outsideBounds: false }\n }\n\n const point = wgs84ToEpsg3301(position)\n\n // Returned untouched rather than round-tripped: reprojecting an in-bounds fix only costs\n // precision.\n if (containsPoint(point, constraintBbox)) {\n return { position, outsideBounds: false }\n }\n\n const [x, y] = clampPointToBounds(point, constraintBbox)\n\n return { position: epsg3301ToWgs84(x, y), outsideBounds: true }\n}\n","import type { ZoomLevel } from '@xgis/xgis-common'\nimport { clampZoom, useGeolocationStore, useMapViewStore } from '@xgis/xgis-common'\nimport { useCallback, useEffect } from 'react'\n\nimport { settlePendingZoom } from '../geolocationUtils'\n\nconst LOCATE_ZOOM = 14 as ZoomLevel\n\ninterface UseTrackingZoomResult {\n startLocateZoom: () => ZoomLevel\n followZoom: () => ZoomLevel\n}\n\nfunction storeSettledZoom(pending: ZoomLevel | null, storeZoom: ZoomLevel): ZoomLevel | null {\n const settled = settlePendingZoom(pending, storeZoom)\n useGeolocationStore.getState().setPendingLocateZoom(settled)\n return settled\n}\n\nexport function useTrackingZoom(): UseTrackingZoomResult {\n // Also settles between fixes, so a zoom picked before the next fix is kept.\n useEffect(\n () =>\n useMapViewStore.subscribe((state, prev) => {\n const { pendingLocateZoom } = useGeolocationStore.getState()\n\n if (state.zoom === prev.zoom || pendingLocateZoom === null) {\n return\n }\n\n storeSettledZoom(pendingLocateZoom, state.zoom)\n }),\n [],\n )\n\n // Settles at once if already at the locate zoom: OpenLayers reports nothing for a no-op fly-to.\n const startLocateZoom = useCallback((): ZoomLevel => {\n storeSettledZoom(LOCATE_ZOOM, useMapViewStore.getState().zoom)\n return LOCATE_ZOOM\n }, [])\n\n const followZoom = useCallback((): ZoomLevel => {\n const storeZoom = useMapViewStore.getState().zoom\n const pending = storeSettledZoom(useGeolocationStore.getState().pendingLocateZoom, storeZoom)\n\n return clampZoom(pending ?? storeZoom)\n }, [])\n\n return { startLocateZoom, followZoom }\n}\n","import type { LonLat } from '@xgis/xgis-common'\nimport {\n NAVIGATION_COMPONENT_ID,\n stopGeolocation,\n useComponentTranslate,\n useGeolocationStore,\n useMapBusEmit,\n useMapViewStore,\n useNavigationHistoryStore,\n useUserMarkerStore,\n} from '@xgis/xgis-common'\nimport { useCallback, useRef } from 'react'\n\nimport {\n constrainToBounds,\n geolocationErrorMessage,\n headingToMapRotation,\n headingToRadians,\n negateAndWrap,\n} from '../geolocationUtils'\nimport { useTrackingZoom } from './useTrackingZoom'\n\nconst RATIONALE_FLAG = 'xgis.gpsRationaleShown'\n\nconst POSITION_OPTIONS: PositionOptions = {\n enableHighAccuracy: true,\n timeout: 10_000,\n maximumAge: 5_000,\n}\n\n// A storage failure (private mode) reports \"already shown\" so the note is skipped, degrading to the\n// button tooltip rather than surfacing an error.\nfunction hasShownRationale(): boolean {\n try {\n return localStorage.getItem(RATIONALE_FLAG) === 'true'\n } catch {\n return true\n }\n}\n\nfunction markRationaleShown(): void {\n try {\n localStorage.setItem(RATIONALE_FLAG, 'true')\n } catch {\n // storage unavailable — the note simply shows again next session\n }\n}\n\ninterface UseGeolocationResult {\n isLocated: boolean\n isTracking: boolean\n locate: () => void\n toggleTracking: () => void\n deactivate: () => void\n}\n\nexport function useGeolocation(): UseGeolocationResult {\n const isLocated = useGeolocationStore((s) => s.isLocated)\n const isTracking = useGeolocationStore((s) => s.isTracking)\n const emit = useMapBusEmit()\n const t = useComponentTranslate(NAVIGATION_COMPONENT_ID)\n const setMarker = useUserMarkerStore((s) => s.setMarker)\n const setHeading = useUserMarkerStore((s) => s.setHeading)\n const trackingOutsideBounds = useRef(false)\n const isFirstFix = useRef(true)\n const { startLocateZoom, followZoom } = useTrackingZoom()\n\n // Clamps a GPS fix to the topic's bounds and reports whether it fell outside them (once per\n // continuous excursion, via trackingOutsideBounds — a repeated fix outside the same area does\n // not re-toast).\n const resolvePosition = useCallback(\n (position: LonLat): LonLat => {\n const constraintBbox = useMapViewStore.getState().constraintBbox\n const { position: bounded, outsideBounds } = constrainToBounds(position, constraintBbox)\n\n if (outsideBounds && !trackingOutsideBounds.current) {\n emit('showToast', { message: t('locationOutsideBounds'), severity: 'error' })\n }\n\n trackingOutsideBounds.current = outsideBounds\n return bounded\n },\n [emit, t],\n )\n\n const showRationaleOnce = useCallback(() => {\n if (hasShownRationale()) {\n return\n }\n\n emit('showToast', { message: t('locationRationale'), severity: 'info' })\n markRationaleShown()\n }, [emit, t])\n\n const handlePositionUpdate = useCallback(\n ({ coords }: GeolocationPosition) => {\n const position: LonLat = { lon: coords.longitude, lat: coords.latitude }\n const bounded = resolvePosition(position)\n setMarker(position)\n\n const hasHeading = coords.heading !== null && !Number.isNaN(coords.heading)\n if (hasHeading) {\n setHeading(headingToRadians(coords.heading))\n }\n\n const firstFix = isFirstFix.current\n isFirstFix.current = false\n const tracking = useGeolocationStore.getState().isTracking\n\n if (!firstFix && !tracking) {\n return\n }\n\n const zoom = firstFix ? startLocateZoom() : followZoom()\n\n // Both fields must land in the same store update: OpenLayers cancels any running view\n // animation (including a still-running flyToPosition's from the previous fix) on a direct\n // setRotation() call, so a rotation update landing in a separate, later update would cut a\n // fly-to short mid-flight.\n useMapViewStore.setState({\n ...(tracking && hasHeading ? { rotation: headingToMapRotation(coords.heading) } : {}),\n flyToPositionIntent: { position: bounded, zoom },\n })\n },\n [followZoom, resolvePosition, setHeading, setMarker, startLocateZoom],\n )\n\n const locate = useCallback(() => {\n showRationaleOnce()\n trackingOutsideBounds.current = false\n isFirstFix.current = true\n\n const watchId = navigator.geolocation.watchPosition(\n handlePositionUpdate,\n (error) => {\n emit('showToast', { message: geolocationErrorMessage(error), severity: 'error' })\n },\n POSITION_OPTIONS,\n )\n\n useGeolocationStore.getState().setWatchId(watchId)\n useGeolocationStore.getState().setLocated(true)\n }, [emit, handlePositionUpdate, showRationaleOnce])\n\n const toggleTracking = useCallback(() => {\n const tracking = !isTracking\n useNavigationHistoryStore.getState().setExternalControl(tracking)\n useGeolocationStore.getState().setTracking(tracking)\n\n if (!tracking) {\n return\n }\n\n const { marker, heading } = useUserMarkerStore.getState()\n\n // Both fields must land in the same store update: OpenLayers cancels any running view\n // animation (including flyToPosition's) on a direct setRotation() call, so setting rotation in\n // a separate, later update would cut the fly-to short the instant it started.\n useMapViewStore.setState({\n ...(marker ? { flyToPositionIntent: { position: marker, zoom: startLocateZoom() } } : {}),\n ...(heading !== null ? { rotation: negateAndWrap(heading) } : {}),\n })\n }, [isTracking, startLocateZoom])\n\n return {\n isLocated,\n isTracking,\n locate,\n toggleTracking,\n deactivate: stopGeolocation,\n }\n}\n","import { ButtonGroup, MapButton } from '@tedi-design-system/react/community'\nimport type { IComponentUIProps, NavigationSettings } from '@xgis/xgis-common'\nimport {\n NAVIGATION_COMPONENT_ID,\n useComponentSettingsStore,\n useComponentTranslate,\n} from '@xgis/xgis-common'\n\nimport { useGeolocation } from './hooks/useGeolocation'\n\nexport function LocationButtons(_props: IComponentUIProps) {\n const t = useComponentTranslate(NAVIGATION_COMPONENT_ID)\n const { isLocated, isTracking, locate, toggleTracking, deactivate } = useGeolocation()\n const settings = useComponentSettingsStore((s) =>\n s.getComponentSettings<NavigationSettings>(NAVIGATION_COMPONENT_ID),\n )\n\n if (settings?.positioning === false) {\n return null\n }\n\n return (\n <ButtonGroup direction=\"vertical\" ariaLabel={t('locationControls')}>\n <MapButton\n size=\"small\"\n hideLabel\n icon=\"my_location\"\n tooltipContent={t('locationRationaleTooltip')}\n selected={isLocated}\n aria-pressed={isLocated}\n onClick={isLocated ? deactivate : locate}\n data-testid=\"nav-locate\"\n >\n {t('myLocation')}\n </MapButton>\n {isLocated && (\n <MapButton\n size=\"small\"\n hideLabel\n icon=\"emergency_share\"\n selected={isTracking}\n aria-pressed={isTracking}\n onClick={toggleTracking}\n data-testid=\"nav-track\"\n >\n {t('trackLocation')}\n </MapButton>\n )}\n </ButtonGroup>\n )\n}\n","import { ButtonGroup, MapButton } from '@tedi-design-system/react/community'\nimport type { IComponentUIProps, NavigationSettings } from '@xgis/xgis-common'\nimport {\n MAX_ZOOM,\n NAVIGATION_COMPONENT_ID,\n useComponentSettingsStore,\n useComponentTranslate,\n useMapViewStore,\n useZoomFloor,\n} from '@xgis/xgis-common'\n\nexport function ZoomButtons(_props: IComponentUIProps) {\n const t = useComponentTranslate(NAVIGATION_COMPONENT_ID)\n const zoom = useMapViewStore((s) => s.zoom)\n const setZoom = useMapViewStore((s) => s.setZoom)\n const zoomFloor = useZoomFloor()\n const settings = useComponentSettingsStore((s) =>\n s.getComponentSettings<NavigationSettings>(NAVIGATION_COMPONENT_ID),\n )\n\n if (settings?.zoominout === false) {\n return null\n }\n\n return (\n <ButtonGroup direction=\"vertical\" ariaLabel={t('zoomControls')}>\n <MapButton\n size=\"small\"\n hideLabel\n icon=\"add\"\n disabled={zoom >= MAX_ZOOM}\n onClick={() => setZoom(zoom + 1)}\n data-testid=\"nav-zoom-in\"\n >\n {t('zoomIn')}\n </MapButton>\n <MapButton\n size=\"small\"\n hideLabel\n icon=\"remove\"\n disabled={zoom <= zoomFloor}\n // Clamped to the floor itself: past it, this resends the store's own current value, so\n // cameraSync's change guard skips the engine entirely instead of writing an unreachable\n // zoom the engine can never settle back to (nothing would then clear the stale request).\n onClick={() => setZoom(Math.max(zoom - 1, zoomFloor))}\n data-testid=\"nav-zoom-out\"\n >\n {t('zoomOut')}\n </MapButton>\n </ButtonGroup>\n )\n}\n","import type { IXgisComponent } from '@xgis/xgis-common'\nimport { NAVIGATION_COMPONENT_ID, SLOTS } from '@xgis/xgis-common'\n\nimport { CompassButtons } from './CompassButtons'\nimport { HistoryButtons } from './HistoryButtons'\nimport enMessages from './lang/en.json'\nimport etMessages from './lang/et.json'\nimport { LocationButtons } from './LocationButtons'\nimport { ZoomButtons } from './ZoomButtons'\n\nexport const NavigationComponent: IXgisComponent = {\n id: NAVIGATION_COMPONENT_ID,\n\n messages: {\n et: etMessages,\n en: enMessages,\n },\n\n ui: {\n [SLOTS.NAVIGATION_ZOOM]: { Component: ZoomButtons },\n [SLOTS.NAVIGATION_HISTORY]: { Component: HistoryButtons },\n [SLOTS.NAVIGATION_LOCATION]: { Component: LocationButtons },\n [SLOTS.NAVIGATION_COMPASS]: { Component: CompassButtons },\n },\n\n bookmark: {\n serialize: () => ({ render: true }),\n deserialize: () => undefined,\n },\n}\n","import type { AlertType } from '@tedi-design-system/react/tedi'\nimport { sendNotification, ToastContainer } from '@tedi-design-system/react/tedi'\nimport type { IComponentUIProps } from '@xgis/xgis-common'\nimport { useMapBusEvent } from '@xgis/xgis-common'\nimport { useCallback } from 'react'\n\nconst SEVERITY_TO_ALERT_TYPE: Record<'info' | 'warning' | 'error', AlertType> = {\n info: 'info',\n warning: 'warning',\n error: 'danger',\n}\n\nexport function NotificationToasts(_props: IComponentUIProps) {\n useMapBusEvent(\n 'showToast',\n useCallback(({ message, severity }) => {\n sendNotification({ type: SEVERITY_TO_ALERT_TYPE[severity], children: message })\n }, []),\n )\n\n return (\n <div data-testid=\"notification-toasts\" style={{ pointerEvents: 'auto' }}>\n <ToastContainer />\n </div>\n )\n}\n","import type { IXgisComponent } from '@xgis/xgis-common'\nimport { NOTIFICATION_COMPONENT_ID, SLOTS } from '@xgis/xgis-common'\n\nimport { NotificationToasts } from './NotificationToasts'\n\nexport const NotificationComponent: IXgisComponent = {\n id: NOTIFICATION_COMPONENT_ID,\n alwaysOn: true,\n\n ui: {\n [SLOTS.OVERLAY]: { Component: NotificationToasts },\n },\n}\n","import { Icon, Input, InputGroup, Search, Suffix, Text } from '@tedi-design-system/react/tedi'\nimport { IComponentUIProps, SEARCH_COMPONENT_ID, useComponentTranslate } from '@xgis/xgis-common'\n\nexport default function SearchView({ layout }: IComponentUIProps) {\n const t = useComponentTranslate(SEARCH_COMPONENT_ID)\n const isDesktop = layout === 'desktop'\n\n return (\n <InputGroup id=\"mocksearchgroup\" label={''}>\n <Input>\n <div style={{ maxWidth: 372, minWidth: 150 }}>\n <Search id=\"mocksearch\" placeholder={t('search')} />\n </div>\n </Input>\n <Suffix>\n <Text color=\"brand\">\n <Icon name=\"directions\" display=\"inline\" />\n {isDesktop && <span data-testid=\"search-directions-label\">Juhised</span>}\n </Text>\n </Suffix>\n <Suffix>\n <Text>\n {isDesktop && <span data-testid=\"search-advanced-label\">Täpsem otsing </span>}\n <Icon name=\"keyboard_arrow_down\" display=\"inline\" />\n </Text>\n </Suffix>\n </InputGroup>\n )\n}\n","import type { IXgisComponent } from '@xgis/xgis-common'\nimport { SEARCH_COMPONENT_ID, SLOTS } from '@xgis/xgis-common'\n\nimport enMessages from './lang/en.json'\nimport etMessages from './lang/et.json'\nimport SearchView from './SearchView'\n\nexport const SearchComponent: IXgisComponent = {\n id: SEARCH_COMPONENT_ID,\n\n messages: {\n et: etMessages,\n en: enMessages,\n },\n\n contributions: [{ target: SLOTS.SEARCH, Component: SearchView }],\n\n bookmark: {\n serialize: () => ({ render: true }),\n deserialize: () => undefined,\n },\n}\n","import type {\n Extent3301,\n ExternalApp,\n ExternalLinkTarget,\n Locale,\n TopicListSettings,\n} from '@xgis/xgis-common'\nimport {\n isSafeExternalUrl,\n openExternalUrl,\n TOPICLIST_COMPONENT_ID,\n useComponentSettingsStore,\n useI18nStore,\n useMapViewStore,\n} from '@xgis/xgis-common'\nimport { useMemo } from 'react'\n\nconst TOKEN_PATTERN = /\\$([a-z]+)\\$/gi\n\nexport interface LocalizedExternalApp {\n link: string\n name: string\n target: ExternalLinkTarget\n}\n\nconst TOKEN_RESOLVERS: Record<string, (bbox: Extent3301) => string> = {\n bbox: (bbox) => bbox.map(Math.round).join(','),\n}\n\nexport function resolveExternalAppLink(link: string, bbox: Extent3301): string {\n return link.replace(TOKEN_PATTERN, (match, token: string) => {\n const resolve = TOKEN_RESOLVERS[token.toLowerCase()]\n\n if (!resolve) {\n return match\n }\n\n return resolve(bbox)\n })\n}\n\nfunction localizedName(app: ExternalApp, locale: Locale): string {\n return app[`name_${locale}`] || app.name_et || app.name_en\n}\n\nexport function useExternalApps(): LocalizedExternalApp[] {\n const locale = useI18nStore((s) => s.locale)\n const settings = useComponentSettingsStore((s) =>\n s.getComponentSettings<TopicListSettings>(TOPICLIST_COMPONENT_ID),\n )\n\n const apps = settings?.externalApps\n\n return useMemo(() => {\n if (!apps?.length) {\n return []\n }\n\n return apps\n .filter((app) => isSafeExternalUrl(app.link))\n .map((app) => ({\n link: app.link,\n name: localizedName(app, locale),\n target: app.target,\n }))\n }, [apps, locale])\n}\n\nexport function openExternalAppAtCurrentView(app: LocalizedExternalApp): void {\n const { bbox } = useMapViewStore.getState()\n\n openExternalUrl(resolveExternalAppLink(app.link, bbox), app.target)\n}\n","import type { Locale, TopicListItem } from '@xgis/xgis-common'\nimport { useI18nStore, useTopicStore } from '@xgis/xgis-common'\nimport { useMemo } from 'react'\n\nimport type { LocalizedExternalApp } from './externalApps'\nimport { useExternalApps } from './externalApps'\n\nconst EXTERNAL_ENTRY_PREFIX = 'external:'\n\nexport type TopicEntry =\n | { kind: 'topic'; id: string; label: string; topic: TopicListItem }\n | { kind: 'externalApp'; id: string; label: string; app: LocalizedExternalApp }\n\nexport function mergeTopicEntries(\n topics: readonly TopicListItem[],\n apps: readonly LocalizedExternalApp[],\n locale: Locale,\n): TopicEntry[] {\n const entries: TopicEntry[] = [\n ...topics.map((topic) => ({\n kind: 'topic' as const,\n id: topic.id,\n label: topic.title,\n topic,\n })),\n ...apps.map((app, index) => ({\n kind: 'externalApp' as const,\n id: `${EXTERNAL_ENTRY_PREFIX}${index}:${app.link}`,\n label: app.name,\n app,\n })),\n ]\n\n const collator = new Intl.Collator(locale)\n\n return entries.sort((a, b) => collator.compare(a.label, b.label))\n}\n\nexport function filterTopicEntries(entries: readonly TopicEntry[], query: string): TopicEntry[] {\n const needle = query.trim().toLowerCase()\n\n if (!needle) {\n return [...entries]\n }\n\n return entries.filter((entry) => entry.label.toLowerCase().includes(needle))\n}\n\nexport function useTopicEntries(query: string): TopicEntry[] {\n const topics = useTopicStore((s) => s.topics)\n const apps = useExternalApps()\n const locale = useI18nStore((s) => s.locale)\n\n return useMemo(\n () => filterTopicEntries(mergeTopicEntries(topics, apps, locale), query),\n [topics, apps, locale, query],\n )\n}\n","import type { CardProps } from '@tedi-design-system/react/tedi'\nimport { Card, CardButton, Collapse, Text } from '@tedi-design-system/react/tedi'\nimport { EXTERNAL_LINK_REL, TOPICLIST_COMPONENT_ID, useComponentTranslate } from '@xgis/xgis-common'\n\nimport { openExternalAppAtCurrentView } from './externalApps'\nimport type { TopicEntry } from './topicEntries'\nimport styles from './TopicListView.module.css'\n\ninterface TopicRowProps {\n entry: TopicEntry\n activeTopicId: string | null\n isOpen: boolean\n onSelect: (topicId: string) => void\n onToggle: (open: boolean) => void\n}\n\ntype CardBackground = NonNullable<CardProps['background']>\n\nfunction rowBackground(isActive: boolean, isOpen: boolean): CardBackground {\n if (isActive) {\n return 'brand-primary'\n }\n\n if (isOpen) {\n return 'brand-quaternary'\n }\n\n return 'primary'\n}\n\nfunction rowClassName(isActive: boolean, isOpen: boolean): string {\n if (!isActive && isOpen) {\n return `${styles.row} ${styles.rowOpenNotActive}`\n }\n\n if (isActive) {\n return `${styles.row} ${styles.rowActive}`\n }\n\n if (isOpen) {\n return `${styles.row} ${styles.rowOpen}`\n }\n\n return styles.row\n}\n\nexport function TopicRow({ entry, activeTopicId, isOpen, onSelect, onToggle }: TopicRowProps) {\n const t = useComponentTranslate(TOPICLIST_COMPONENT_ID)\n\n const isActive = entry.kind === 'topic' && entry.topic.id === activeTopicId\n const description = entry.kind === 'topic' ? entry.topic.description : undefined\n\n const background = rowBackground(isActive, isOpen)\n const textColor = isActive ? 'white' : isOpen ? 'info' : 'primary'\n\n const card = (\n <Card borderless background={background}>\n <Card.Content padding={{ vertical: 0.75, horizontal: 1 }} background={background}>\n <Text color={textColor}>{entry.label}</Text>\n </Card.Content>\n </Card>\n )\n\n const title =\n entry.kind === 'externalApp' ? (\n <CardButton\n as=\"a\"\n href={entry.app.link}\n target={entry.app.target}\n rel={EXTERNAL_LINK_REL}\n onClick={(event) => {\n event.preventDefault()\n openExternalAppAtCurrentView(entry.app)\n }}\n >\n {card}\n </CardButton>\n ) : (\n <CardButton\n onClick={() => onSelect(entry.topic.id)}\n aria-current={isActive ? 'true' : undefined}\n >\n {card}\n </CardButton>\n )\n\n if (!description) {\n return (\n <div className={rowClassName(isActive, false)} data-topic-id={entry.id}>\n {title}\n </div>\n )\n }\n\n return (\n <div className={rowClassName(isActive, isOpen)} data-topic-id={entry.id}>\n <Collapse\n id={`topic-description-${entry.id}`}\n title={title}\n open={isOpen}\n onToggle={onToggle}\n openText={t('readMore')}\n closeText={t('readLess')}\n inverted={isActive}\n underline={false}\n size=\"small\"\n >\n <div className={styles.rowDescription}>\n <Text color={textColor} modifiers=\"small\">\n {description}\n </Text>\n </div>\n </Collapse>\n </div>\n )\n}\n","import { Button, Text, TextField } from '@tedi-design-system/react/tedi'\nimport {\n TOPICLIST_COMPONENT_ID,\n useComponentTranslate,\n useTopicStore,\n useUiStore,\n} from '@xgis/xgis-common'\nimport { useState } from 'react'\n\nimport { useTopicEntries } from './topicEntries'\nimport styles from './TopicListView.module.css'\nimport { TopicRow } from './TopicRow'\n\nexport function TopicPicker() {\n const [query, setQuery] = useState('')\n const [openEntryId, setOpenEntryId] = useState<string | null>(null)\n const activeTopicId = useTopicStore((s) => s.activeTopicId)\n const setActiveTopicId = useTopicStore((s) => s.setActiveTopicId)\n const setTopicPickerOpen = useUiStore((s) => s.setTopicPickerOpen)\n const setLayersSheetOpen = useUiStore((s) => s.setLayersSheetOpen)\n const t = useComponentTranslate(TOPICLIST_COMPONENT_ID)\n\n const entries = useTopicEntries(query)\n\n function handleSelect(topicId: string) {\n setActiveTopicId(topicId)\n setOpenEntryId(null)\n setLayersSheetOpen(false)\n }\n\n function handleToggle(entryId: string, open: boolean) {\n setOpenEntryId(open ? entryId : null)\n }\n\n return (\n <div className={styles.picker} data-testid=\"topic-picker\">\n <div className={styles.pickerSearch}>\n <TextField\n id=\"topic-search\"\n label={t('search.label')}\n hideLabel\n placeholder={t('search.placeholder')}\n icon=\"search\"\n value={query}\n onChange={setQuery}\n isClearable\n />\n </div>\n\n <div className={styles.pickerList}>\n {entries.length === 0 && (\n <Text color=\"secondary\" className={styles.pickerEmpty}>\n {t('search.empty')}\n </Text>\n )}\n\n {entries.map((entry) => (\n <TopicRow\n key={entry.id}\n entry={entry}\n activeTopicId={activeTopicId}\n isOpen={entry.id === openEntryId}\n onSelect={handleSelect}\n onToggle={(open) => handleToggle(entry.id, open)}\n />\n ))}\n </div>\n\n <div className={styles.pickerFooter}>\n <Button visualType=\"link\" iconLeft=\"arrow_back\" onClick={() => setTopicPickerOpen(false)}>\n {t('back')}\n </Button>\n </div>\n </div>\n )\n}\n","import type { ISelectOption, TSelectValue } from '@tedi-design-system/react/tedi'\nimport { Card, Col, Row, Select } from '@tedi-design-system/react/tedi'\nimport { TOPICLIST_COMPONENT_ID, useComponentTranslate, useTopicStore } from '@xgis/xgis-common'\nimport { useMemo } from 'react'\n\nimport { openExternalAppAtCurrentView } from './externalApps'\nimport type { TopicEntry } from './topicEntries'\nimport { useTopicEntries } from './topicEntries'\nimport styles from './TopicListView.module.css'\n\nexport function TopicSelect() {\n const activeTopicId = useTopicStore((s) => s.activeTopicId)\n const setActiveTopicId = useTopicStore((s) => s.setActiveTopicId)\n const t = useComponentTranslate(TOPICLIST_COMPONENT_ID)\n\n const entries = useTopicEntries('')\n\n const options = useMemo<ISelectOption<TopicEntry>[]>(\n () => entries.map((entry) => ({ value: entry.id, label: entry.label, customData: entry })),\n [entries],\n )\n\n const selectedOption = useMemo(\n () => options.find((option) => option.value === activeTopicId) ?? null,\n [options, activeTopicId],\n )\n\n function handleChange(selected: TSelectValue) {\n if (!selected) {\n return\n }\n\n const { customData } = selected as ISelectOption<TopicEntry>\n\n if (!customData) {\n return\n }\n\n if (customData.kind === 'externalApp') {\n openExternalAppAtCurrentView(customData.app)\n return\n }\n\n setActiveTopicId(customData.topic.id)\n }\n\n return (\n <Card borderless>\n <Card.Content padding={0.5}>\n <Row gutterY={2}>\n <Col>\n <Select\n value={selectedOption}\n options={options}\n id=\"topic-list\"\n label={t('label')}\n onChange={handleChange}\n classNames={{ menuPortal: styles.menuPortal }}\n />\n </Col>\n </Row>\n </Card.Content>\n </Card>\n )\n}\n","import { Card, CardButton, Col, Icon, Row, Text } from '@tedi-design-system/react/tedi'\nimport { TOPICLIST_COMPONENT_ID, useComponentTranslate, useUiStore } from '@xgis/xgis-common'\n\nimport styles from './TopicListView.module.css'\n\nexport function TopicTrigger() {\n const setTopicPickerOpen = useUiStore((s) => s.setTopicPickerOpen)\n const t = useComponentTranslate(TOPICLIST_COMPONENT_ID)\n\n return (\n <div className={styles.trigger} data-testid=\"topic-trigger\">\n <CardButton onClick={() => setTopicPickerOpen(true)}>\n <Card>\n <Card.Content padding={0.75}>\n <Row justifyContent=\"between\" alignItems=\"center\" wrap=\"nowrap\">\n <Col>\n <Text>{t('label')}</Text>\n </Col>\n\n <Col width=\"auto\">\n <Icon name=\"arrow_forward\" />\n </Col>\n </Row>\n </Card.Content>\n </Card>\n </CardButton>\n </div>\n )\n}\n","import type { IComponentUIProps } from '@xgis/xgis-common'\nimport { useConfigStore, useLayoutStore, useUiStore } from '@xgis/xgis-common'\n\nimport { TopicPicker } from './TopicPicker'\nimport { TopicSelect } from './TopicSelect'\nimport { TopicTrigger } from './TopicTrigger'\n\nexport function TopicListView(_props: IComponentUIProps) {\n const layout = useLayoutStore((s) => s.mode)\n const isPickerOpen = useUiStore((s) => s.topicPickerOpen)\n\n const hasTopicSource = useConfigStore(\n (s) => s.config?.serviceURL?.catalogService != null || s.config?.topicConfigs != null,\n )\n\n if (!hasTopicSource) {\n return null\n }\n\n if (layout !== 'mobile') {\n return <TopicSelect />\n }\n\n if (isPickerOpen) {\n return <TopicPicker />\n }\n\n return <TopicTrigger />\n}\n","import type { IXgisComponent } from '@xgis/xgis-common'\nimport { TOPICLIST_COMPONENT_ID } from '@xgis/xgis-common'\n\nimport { SIDE_PANEL_SLOTS } from '../SidePanel'\nimport enMessages from './lang/en.json'\nimport etMessages from './lang/et.json'\nimport { TopicListView } from './TopicListView'\n\nexport const TopicListComponent: IXgisComponent = {\n id: TOPICLIST_COMPONENT_ID,\n\n messages: {\n et: etMessages,\n en: enMessages,\n },\n\n contributions: [{ target: SIDE_PANEL_SLOTS.TOPICLIST, Component: TopicListView }],\n\n bookmark: {\n serialize: () => ({ render: true }),\n deserialize: () => undefined,\n },\n}\n","import type { IXgisComponent } from '@xgis/xgis-common'\n\nimport { BasemapComponent } from './components/Basemap'\nimport { LayerPanelComponent } from './components/LayerPanel'\nimport { MapSwitchComponent } from './components/MapSwitch'\nimport { NavigationComponent } from './components/Navigation'\nimport { NotificationComponent } from './components/Notification'\nimport { SearchComponent } from './components/Search'\nimport { SIDE_PANEL_SLOTS, SidePanelComponent } from './components/SidePanel'\nimport { TopicListComponent } from './components/TopicList'\n\nexport {\n BasemapComponent,\n LayerPanelComponent,\n MapSwitchComponent,\n NavigationComponent,\n NotificationComponent,\n SearchComponent,\n SIDE_PANEL_SLOTS,\n SidePanelComponent,\n TopicListComponent,\n}\n\n/**\n * Every component this package ships, so a consumer can register the full set in one call. Which of\n * them actually render is decided by the topic config, not by registration.\n */\nexport const XGIS_COMPONENTS: readonly IXgisComponent[] = [\n SidePanelComponent,\n LayerPanelComponent,\n MapSwitchComponent,\n SearchComponent,\n NavigationComponent,\n TopicListComponent,\n BasemapComponent,\n NotificationComponent,\n]\n"],"names":["etMessages","enMessages","styles","rotation","ButtonGroup"],"mappings":";;;;;;AAAA,8BAAe;;ACSR,SAAS,WAAA,CAAY,EAAE,GAAA,EAAK,GAAA,EAAI,EAA+B;AACpE,EAAA,MAAM,CAAC,SAAA,EAAW,YAAY,CAAA,GAAI,QAAA,EAAiB;AAEnD,EAAA,MAAM,QAAA,GAAW,GAAA,IAAO,GAAA,KAAQ,SAAA,GAAY,GAAA,GAAM,qBAAA;AAElD,EAAA,uBACE,GAAA;AAAA,IAAC,KAAA;AAAA,IAAA;AAAA,MACC,GAAA;AAAA,MACA,GAAA,EAAK,QAAA;AAAA,MACL,SAAS,MAAM;AACb,QAAA,IAAI,aAAa,qBAAA,EAAuB;AACtC,UAAA,YAAA,CAAa,GAAG,CAAA;AAAA,QAClB;AAAA,MACF;AAAA;AAAA,GACF;AAEJ;;ACNA,SAAS,aAAA,CACP,QACA,CAAA,EACoB;AACpB,EAAA,IAAI,CAAC,MAAA,EAAQ,MAAA,IAAU,MAAA,CAAO,MAAA,KAAW,cAAc,KAAA,EAAO;AAC5D,IAAA,OAAO,MAAA;AAAA,EACT;AAEA,EAAA,OAAO,CAAA,CAAE,CAAA,YAAA,EAAe,MAAA,CAAO,MAAM,CAAA,CAAE,CAAA;AACzC;AAEA,SAAS,SAAA,CAAU,MAAmB,CAAA,EAAoC;AACxE,EAAA,MAAM,GAAA,GAAM,IAAA,CAAK,IAAA,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EAAA,EAAI,UAAA;AAAA,IACJ,EAAA,EAAI;AAAA,GACN;AAAA,EAEA,aAAA,EAAe,CAAC,EAAE,MAAA,EAAQ,iBAAiB,SAAA,EAAW,SAAA,EAAW,eAAe,CAAA;AAAA,EAEhF,QAAA,EAAU;AAAA,IACR,SAAA,EAAW,OAAO,EAAE,MAAA,EAAQ,IAAA,EAAK,CAAA;AAAA,IACjC,aAAa,MAAM;AAAA;AAEvB;;ACKO,MAAM,eAAA,GAA6C;AAAA,EACxD,kBAAA;AAAA,EACA,mBAAA;AAAA,EACA,kBAAA;AAAA,EACA,eAAA;AAAA,EACA,mBAAA;AAAA,EACA,kBAAA;AAAA,EACA,gBAAA;AAAA,EACA;AACF;;"}
1
+ {"version":3,"file":"index.js","sources":["../src/components/Basemap/assets/default_basemap.svg?inline","../src/components/Basemap/BasemapIcon.tsx","../src/components/Basemap/useBasemapErrorEvents.ts","../src/components/Basemap/BasemapView.tsx","../src/components/Basemap/BasemapComponent.ts","../src/components/SidePanel/SidePanelView.tsx","../src/components/SidePanel/SidePanelComponent.ts","../src/components/SidePanel/MobileSidePanel.tsx","../src/components/LayerPanel/LayerPanelView.tsx","../src/components/LayerPanel/LayerPanelComponent.ts","../src/components/MapSwitch/MapSwitchDesktop.tsx","../src/components/MapSwitch/MapSwitchMobile.tsx","../src/components/MapSwitch/MapSwitchButtons.tsx","../src/components/MapSwitch/MapSwitchComponent.ts","../src/components/Navigation/assets/compass.svg","../src/components/Navigation/compassUtils.ts","../src/components/Navigation/hooks/useLiveRotation.ts","../src/components/Navigation/CompassButtons.tsx","../src/components/Navigation/hooks/useNavigationHistory.ts","../src/components/Navigation/HistoryButtons.tsx","../src/components/Navigation/geolocationUtils.ts","../src/components/Navigation/hooks/useTrackingZoom.ts","../src/components/Navigation/hooks/useGeolocation.ts","../src/components/Navigation/LocationButtons.tsx","../src/components/Navigation/ZoomButtons.tsx","../src/components/Navigation/NavigationComponent.ts","../src/components/Notification/NotificationToasts.tsx","../src/components/Notification/NotificationComponent.ts","../src/components/Search/SearchView.tsx","../src/components/Search/SearchComponent.ts","../src/components/TopicList/externalApps.ts","../src/components/TopicList/topicEntries.ts","../src/components/TopicList/TopicRow.tsx","../src/components/TopicList/TopicPicker.tsx","../src/components/TopicList/TopicSelect.tsx","../src/components/TopicList/TopicTrigger.tsx","../src/components/TopicList/TopicListView.tsx","../src/components/TopicList/TopicListComponent.ts","../src/index.ts"],"sourcesContent":["export default \"data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2067%2067'%20width='67'%20height='67'%3e%3cpath%20d='M3.33%200.06C13.98%200.06%2024.64%200.06%2035.29%200.06C33.78%206.45%2022.37%201.27%2017.58%203.12C15.49%203.93%2014.39%208.25%2012.5%209.68C9.44%206.47%206.39%203.26%203.33%200.06ZM33.17%205.04C31.94%209.01%2030.72%2012.99%2029.5%2016.97C27.55%2017.77%2023.89%2015.84%2021.5%2016.03C18.7%2016.25%2016.98%2018.47%2014.5%2019.15C13.41%2018.27%2012.33%2017.38%2011.24%2016.5C13.66%2012.68%2016.08%208.86%2018.5%205.04C23.39%205.04%2028.28%205.04%2033.17%205.04ZM40.83%205.16C42.51%207.05%2042.63%2011.3%2043.15%2013.72C43.84%2016.97%2045.97%2021.17%2045.75%2024.5C45.37%2030.09%2037.91%2032.94%2033.32%2031.5C33.89%2026.89%2034.42%2023.31%2031.13%2019.5C31.32%2017.87%2035.15%205.78%2036.06%205.22C37.17%204.56%2039.62%204.98%2040.83%205.16ZM51.5%2011.63C52.28%2016.63%2053.06%2021.62%2053.83%2026.62C46.34%2025.68%2047.33%2019.16%2045.24%2013.5C46.88%2011.91%2049.32%2011.85%2051.5%2011.63ZM21.25%2018.14C32.51%2016.04%2035.99%2033.16%2024.91%2035.8C13.55%2038.51%209.84%2020.26%2021.25%2018.14ZM9.5%2019.02C10.65%2018.92%2013.12%2020.01%2013.2%2021.51C13.42%2025.2%2010.46%2026.37%2013.13%2032.06C15.35%2036.79%2018.77%2035.79%2021.93%2038.24C23.18%2039.21%2023.48%2043%2023.87%2044.5C22.69%2045.72%2015.54%2047.45%2014.41%2046.09C13.06%2044.47%2012.53%2041.03%2011.82%2039.02C10.48%2035.27%206.46%2028.2%206.33%2024.49C6.28%2022.89%208.61%2020.28%209.5%2019.02ZM0.06%2025C1.22%2025.01%203.17%2024.62%204.16%2025.33C5.21%2026.1%209.45%2038.18%209.59%2039.83C6.41%2038.88%203.23%2037.93%200.06%2036.97C0.06%2032.98%200.06%2028.99%200.06%2025ZM39.97%2033.5C39.75%2034.71%2035.35%2042.3%2034.4%2042.86C32.15%2044.18%2028.94%2043.82%2026.5%2044.59C25.8%2042.56%2025.11%2040.53%2024.41%2038.5C27.82%2036.01%2035.85%2031.95%2039.97%2033.5ZM66.94%2039.28C66.94%2047.51%2066.94%2055.74%2066.94%2063.97C62.15%2062.34%2061.72%2045.39%2060.63%2040.5C62.73%2040.09%2064.84%2039.69%2066.94%2039.28ZM53.98%2066.94C44.99%2066.94%2036.01%2066.94%2027.02%2066.94C28.23%2057.72%2052.77%2057.72%2053.98%2066.94ZM63.31%2066.94C60.87%2066.94%2058.44%2066.94%2056%2066.94C55.27%2065.13%2054.53%2063.31%2053.79%2061.5C54.36%2060.97%2054.93%2060.43%2055.5%2059.9C58.1%2062.25%2060.71%2064.59%2063.31%2066.94Z'%20fill='%23539964'%20fill-rule='evenodd'%20stroke='%23539964'%20stroke-width='0.25'%20stroke-linejoin='round'/%3e%3cpath%20d='M0.08%200.08C1.16%200.07%202.25%200.06%203.33%200.06C6.39%203.26%209.44%206.47%2012.5%209.68C14.39%208.25%2015.49%203.93%2017.58%203.12C22.37%201.27%2033.78%206.45%2035.29%200.06C41.54%200.06%2047.8%200.06%2054.05%200.06C56.19%2012.65%2058.33%2025.24%2060.47%2037.83C62.63%2037.56%2064.79%2037.29%2066.94%2037.01C66.94%2037.77%2066.94%2038.53%2066.94%2039.28C64.84%2039.69%2062.73%2040.09%2060.63%2040.5C61.72%2045.39%2062.15%2062.34%2066.94%2063.97C66.94%2064.95%2066.93%2065.93%2066.92%2066.92C65.71%2066.93%2064.51%2066.94%2063.31%2066.94C60.71%2064.59%2058.1%2062.25%2055.5%2059.9C54.93%2060.43%2054.36%2060.97%2053.79%2061.5C54.53%2063.31%2055.27%2065.13%2056%2066.94C55.33%2066.94%2054.66%2066.94%2053.98%2066.94C52.77%2057.72%2028.23%2057.72%2027.02%2066.94C26.34%2066.94%2025.66%2066.94%2024.98%2066.94C24.83%2055.64%2045.09%2057.81%2051.5%2060.28C52.04%2059.68%2052.58%2059.09%2053.13%2058.5C47.58%2053.65%2042.04%2048.8%2036.5%2043.95C33.31%2047.36%2020.16%2047.24%2015.17%2049.17C13.79%2055.09%2012.42%2061.02%2011.05%2066.94C10.36%2066.94%209.67%2066.94%208.99%2066.94C9.07%2061.17%2015.55%2047.77%2010.86%2043.31C9.5%2042.02%206.67%2041.51%204.92%2040.88C3.31%2040.3%201.73%2039.37%200.06%2039.03C0.06%2038.35%200.06%2037.66%200.06%2036.97C3.23%2037.93%206.41%2038.88%209.59%2039.83C9.45%2038.18%205.21%2026.1%204.16%2025.33C3.17%2024.62%201.22%2025.01%200.06%2025C0.06%2021.46%200.06%2017.91%200.06%2014.37C1.54%2015.63%203.02%2016.89%204.5%2018.15C6.09%2016.71%208.24%2015.55%208.32%2013.17C5.57%2010.89%202.81%208.62%200.06%206.34C0.06%204.26%200.07%202.17%200.08%200.08ZM50.21%203.67C48.69%203.67%2047.18%203.67%2045.67%203.67C45.67%205.22%2045.67%206.78%2045.67%208.33C47.18%208.33%2048.69%208.33%2050.21%208.33C50.21%206.78%2050.21%205.22%2050.21%203.67ZM33.17%205.04C28.28%205.04%2023.39%205.04%2018.5%205.04C16.08%208.86%2013.66%2012.68%2011.24%2016.5C12.33%2017.38%2013.41%2018.27%2014.5%2019.15C16.98%2018.47%2018.7%2016.25%2021.5%2016.03C23.89%2015.84%2027.55%2017.77%2029.5%2016.97C30.72%2012.99%2031.94%209.01%2033.17%205.04ZM40.83%205.16C39.62%204.98%2037.17%204.56%2036.06%205.22C35.15%205.78%2031.32%2017.87%2031.13%2019.5C34.42%2023.31%2033.89%2026.89%2033.32%2031.5C37.91%2032.94%2045.37%2030.09%2045.75%2024.5C45.97%2021.17%2043.84%2016.97%2043.15%2013.72C42.63%2011.3%2042.51%207.05%2040.83%205.16ZM51.5%2011.63C49.32%2011.85%2046.88%2011.91%2045.24%2013.5C47.33%2019.16%2046.34%2025.68%2053.83%2026.62C53.06%2021.62%2052.28%2016.63%2051.5%2011.63ZM21.25%2018.14C9.84%2020.26%2013.55%2038.51%2024.91%2035.8C35.99%2033.16%2032.51%2016.04%2021.25%2018.14ZM9.5%2019.02C8.61%2020.28%206.28%2022.89%206.33%2024.49C6.46%2028.2%2010.48%2035.27%2011.82%2039.02C12.53%2041.03%2013.06%2044.47%2014.41%2046.09C15.54%2047.45%2022.69%2045.72%2023.87%2044.5C23.48%2043%2023.18%2039.21%2021.93%2038.24C18.77%2035.79%2015.35%2036.79%2013.13%2032.06C10.46%2026.37%2013.42%2025.2%2013.2%2021.51C13.12%2020.01%2010.65%2018.92%209.5%2019.02ZM47.5%2026.65C44.72%2030.99%2041.94%2035.33%2039.17%2039.66C45.63%2045.39%2052.09%2051.11%2058.55%2056.83C59.41%2055.04%2058.18%2052.76%2058%2050.83C57.49%2045.45%2056.6%2039.75%2055.36%2034.48C55.03%2033.07%2055.37%2030.9%2054.43%2029.74C53.17%2028.19%2049.37%2027.28%2047.5%2026.65ZM39.97%2033.5C35.85%2031.95%2027.82%2036.01%2024.41%2038.5C25.11%2040.53%2025.8%2042.56%2026.5%2044.59C28.94%2043.82%2032.15%2044.18%2034.4%2042.86C35.35%2042.3%2039.75%2034.71%2039.97%2033.5Z'%20fill='%23eaecec'%20fill-rule='evenodd'%20stroke='%23eaecec'%20stroke-width='0.25'%20stroke-linejoin='round'/%3e%3cpath%20d='M54.05%200.06C58.34%200.06%2062.63%200.07%2066.92%200.08C66.93%200.72%2066.94%201.36%2066.94%202C64.35%202.09%2061.76%202.17%2059.17%202.25C59.2%207.11%2059.22%2011.97%2059.25%2016.83C60.78%2016.97%2062.31%2017.1%2063.83%2017.24C63.97%2018.44%2064.11%2019.64%2064.25%2020.83C65.15%2020.89%2066.05%2020.94%2066.94%2021C66.94%2023.77%2066.94%2026.53%2066.94%2029.3C64.97%2029.7%2062.99%2030.1%2061.01%2030.5C61.17%2032.1%2061.34%2033.7%2061.5%2035.3C63.31%2035.11%2065.13%2034.91%2066.94%2034.72C66.94%2035.48%2066.94%2036.25%2066.94%2037.01C64.79%2037.29%2062.63%2037.56%2060.47%2037.83C58.33%2025.24%2056.19%2012.65%2054.05%200.06ZM47.5%2026.65C49.37%2027.28%2053.17%2028.19%2054.43%2029.74C55.37%2030.9%2055.03%2033.07%2055.36%2034.48C56.6%2039.75%2057.49%2045.45%2058%2050.83C58.18%2052.76%2059.41%2055.04%2058.55%2056.83C52.09%2051.11%2045.63%2045.39%2039.17%2039.66C41.94%2035.33%2044.72%2030.99%2047.5%2026.65ZM52.97%2034.04C50.99%2034.04%2049.01%2034.04%2047.03%2034.04C47.03%2037.35%2047.03%2040.65%2047.03%2043.96C49.01%2043.96%2050.99%2043.96%2052.97%2043.96C52.97%2040.65%2052.97%2037.35%2052.97%2034.04ZM0.06%2039.03C1.73%2039.37%203.31%2040.3%204.92%2040.88C6.67%2041.51%209.5%2042.02%2010.86%2043.31C15.55%2047.77%209.07%2061.17%208.99%2066.94C6.02%2066.94%203.05%2066.93%200.08%2066.92C0.07%2066.52%200.06%2066.12%200.06%2065.72C0.95%2065.76%201.85%2065.79%202.75%2065.83C4.07%2062.17%203.04%2056.98%206.83%2055.46C7.38%2052.81%207.93%2050.15%208.48%2047.5C6.89%2045.58%207.32%2044.91%206.99%2042.5C5.45%2042.28%203.91%2042.06%202.36%2041.83C1.59%2044.76%200.83%2047.69%200.06%2050.62C0.06%2046.76%200.06%2042.9%200.06%2039.03ZM24.98%2066.94C20.34%2066.94%2015.69%2066.94%2011.05%2066.94C12.42%2061.02%2013.79%2055.09%2015.17%2049.17C20.16%2047.24%2033.31%2047.36%2036.5%2043.95C42.04%2048.8%2047.58%2053.65%2053.13%2058.5C52.58%2059.09%2052.04%2059.68%2051.5%2060.28C45.09%2057.81%2024.83%2055.64%2024.98%2066.94ZM38.5%2047.8C37.36%2049.03%2036.22%2050.27%2035.08%2051.5C36.55%2052.73%2038.03%2053.97%2039.5%2055.2C40.64%2053.97%2041.78%2052.73%2042.92%2051.5C41.45%2050.27%2039.97%2049.03%2038.5%2047.8ZM25.97%2050.04C24.31%2050.04%2022.66%2050.04%2021%2050.04C21%2050.7%2021%2051.36%2021%2052.02C19.36%2052.02%2017.72%2052.02%2016.07%2052.02C16.07%2053.02%2016.07%2054.01%2016.07%2055.01C17.72%2055.01%2019.37%2055.01%2021.01%2055.01C21.01%2057.66%2021.01%2060.31%2021.01%2062.96C22.66%2062.96%2024.32%2062.96%2025.97%2062.96C25.97%2058.65%2025.97%2054.35%2025.97%2050.04ZM31.93%2050.1C31.31%2050.1%2030.69%2050.1%2030.07%2050.1C30.07%2051.03%2030.07%2051.97%2030.07%2052.9C30.69%2052.9%2031.31%2052.9%2031.93%2052.9C31.93%2051.97%2031.93%2051.03%2031.93%2050.1Z'%20fill='%23cacecc'%20fill-rule='evenodd'%20stroke='%23cacecc'%20stroke-width='0.25'%20stroke-linejoin='round'/%3e%3cpath%20d='M38%200%2050%200%2051%209%2045%2011%2045%2010%2044%2010%2043%203%2037%203ZM0%203%2010%2012%2010%2015%209%2015%209%2017%207%2018%207%2020%205%2021%205%2023%200%2023Z'%20fill='%23cacecc'%20fill-rule='evenodd'%20stroke='%23cacecc'%20stroke-width='0.25'%20stroke-linejoin='round'/%3e%3cpath%20d='M66.94%202C66.94%208.33%2066.94%2014.67%2066.94%2021C66.05%2020.94%2065.15%2020.89%2064.25%2020.83C64.11%2019.64%2063.97%2018.44%2063.83%2017.24C62.31%2017.1%2060.78%2016.97%2059.25%2016.83C59.22%2011.97%2059.2%207.11%2059.17%202.25C61.76%202.17%2064.35%202.09%2066.94%202ZM50.21%203.67C50.21%205.22%2050.21%206.78%2050.21%208.33C48.69%208.33%2047.18%208.33%2045.67%208.33C45.67%206.78%2045.67%205.22%2045.67%203.67C47.18%203.67%2048.69%203.67%2050.21%203.67ZM0.06%206.34C2.81%208.62%205.57%2010.89%208.32%2013.17C8.24%2015.55%206.09%2016.71%204.5%2018.15C3.02%2016.89%201.54%2015.63%200.06%2014.37C0.06%2011.69%200.06%209.02%200.06%206.34ZM66.94%2029.3C66.94%2031.11%2066.94%2032.91%2066.94%2034.72C65.13%2034.91%2063.31%2035.11%2061.5%2035.3C61.34%2033.7%2061.17%2032.1%2061.01%2030.5C62.99%2030.1%2064.97%2029.7%2066.94%2029.3ZM52.97%2034.04C52.97%2037.35%2052.97%2040.65%2052.97%2043.96C50.99%2043.96%2049.01%2043.96%2047.03%2043.96C47.03%2040.65%2047.03%2037.35%2047.03%2034.04C49.01%2034.04%2050.99%2034.04%2052.97%2034.04ZM0.06%2065.72C0.06%2060.69%200.06%2055.66%200.06%2050.62C0.83%2047.69%201.59%2044.76%202.36%2041.83C3.91%2042.06%205.45%2042.28%206.99%2042.5C7.32%2044.91%206.89%2045.58%208.48%2047.5C7.93%2050.15%207.38%2052.81%206.83%2055.46C3.04%2056.98%204.07%2062.17%202.75%2065.83C1.85%2065.79%200.95%2065.76%200.06%2065.72ZM38.5%2047.8C39.97%2049.03%2041.45%2050.27%2042.92%2051.5C41.78%2052.73%2040.64%2053.97%2039.5%2055.2C38.03%2053.97%2036.55%2052.73%2035.08%2051.5C36.22%2050.27%2037.36%2049.03%2038.5%2047.8ZM25.97%2050.04C25.97%2054.35%2025.97%2058.65%2025.97%2062.96C24.32%2062.96%2022.66%2062.96%2021.01%2062.96C21.01%2060.31%2021.01%2057.66%2021.01%2055.01C19.37%2055.01%2017.72%2055.01%2016.07%2055.01C16.07%2054.01%2016.07%2053.02%2016.07%2052.02C17.72%2052.02%2019.36%2052.02%2021%2052.02C21%2051.36%2021%2050.7%2021%2050.04C22.66%2050.04%2024.31%2050.04%2025.97%2050.04ZM31.93%2050.1C31.93%2051.03%2031.93%2051.97%2031.93%2052.9C31.31%2052.9%2030.69%2052.9%2030.07%2052.9C30.07%2051.97%2030.07%2051.03%2030.07%2050.1C30.69%2050.1%2031.31%2050.1%2031.93%2050.1Z'%20fill='%239faca3'%20fill-rule='evenodd'%20stroke='%239faca3'%20stroke-width='0.25'%20stroke-linejoin='round'/%3e%3c/svg%3e\"","import { useState } from 'react'\n\nimport defaultBasemapIconUrl from './assets/default_basemap.svg?inline'\n\ninterface BasemapIconProps {\n src: string | undefined\n alt: string\n}\n\nexport function BasemapIcon({ src, alt }: Readonly<BasemapIconProps>) {\n const [failedSrc, setFailedSrc] = useState<string>()\n\n const resolved = src && src !== failedSrc ? src : defaultBasemapIconUrl\n\n return (\n <img\n alt={alt}\n src={resolved}\n onError={() => {\n if (resolved !== defaultBasemapIconUrl) {\n setFailedSrc(src)\n }\n }}\n />\n )\n}\n","import type {\n BasemapAvailability,\n BasemapNode,\n EngineMode,\n XgisErrorEvent,\n} from '@xgis/xgis-common'\nimport { BaseMapErrors, useMapBusEmit } from '@xgis/xgis-common'\nimport { useEffect } from 'react'\n\ntype BasemapErrorEvent = Extract<XgisErrorEvent, { type: 'basemap' }>\ntype FailureReason = BasemapErrorEvent['reason']\n\nconst FAILURE_REASONS: ReadonlySet<BaseMapErrors> = new Set([\n BaseMapErrors.CAPABILITIES,\n BaseMapErrors.SERVICE,\n BaseMapErrors.LAYER,\n])\n\nlet reported: ReadonlyMap<string, FailureReason> = new Map()\n\nfunction failureOf(status: BasemapAvailability | undefined): FailureReason | null {\n if (!status?.reason || !FAILURE_REASONS.has(status.reason)) {\n return null\n }\n\n return status.reason as FailureReason\n}\n\nfunction isHealthy(status: BasemapAvailability | undefined): boolean {\n return Boolean(status?.available && !status.reason && !status.pending)\n}\n\nexport function useBasemapErrorEvents(\n tree: BasemapNode[],\n availability: Map<string, BasemapAvailability>,\n engine: EngineMode,\n): void {\n const emit = useMapBusEmit()\n\n useEffect(() => {\n const next = new Map(reported)\n\n for (const node of tree) {\n const key = `${engine}|${node.id}`\n const status = availability.get(node.id)\n const reason = failureOf(status)\n\n if (isHealthy(status)) {\n next.delete(key)\n }\n\n if (reason && reported.get(key) !== reason) {\n next.set(key, reason)\n emit('error', { type: 'basemap', basemap: node.id, view: engine, reason })\n }\n }\n\n reported = next\n }, [tree, availability, engine, emit])\n}\n","import { BaseMapSelection } from '@tedi-design-system/react/community'\nimport type { BasemapAvailability, BasemapNode, IComponentUIProps } from '@xgis/xgis-common'\nimport {\n BASEMAP_COMPONENT_ID,\n BaseMapErrors,\n basemapNodeIcon,\n layerKey,\n modeForSide,\n resolveActiveBasemapNode,\n useBasemapAvailability,\n useBasemapStore,\n useBasemapTree,\n useComponentTranslate,\n useMapViewStore,\n useTranslate,\n} from '@xgis/xgis-common'\n\nimport { BasemapIcon } from './BasemapIcon'\nimport { useBasemapErrorEvents } from './useBasemapErrorEvents'\n\nfunction optionTooltip(\n status: BasemapAvailability | undefined,\n t: (key: string) => string,\n): string | undefined {\n if (!status?.reason || status.reason === BaseMapErrors.SCALE) {\n return undefined\n }\n\n return t(`unavailable.${status.reason}`)\n}\n\nfunction nodeTitle(node: BasemapNode, t: (key: string) => string): string {\n const key = node.kind === 'folder' ? `${node.id}.label` : layerKey(node.id, 'name.label')\n const title = t(key)\n\n return !title || title === key ? node.id : title\n}\n\nexport function BasemapView({ componentId }: IComponentUIProps) {\n const activeMap = useMapViewStore((s) => s.mode)\n const activeParallellMap = useMapViewStore((s) => modeForSide(s.parallelPrimary))\n const activeBasemap2d = useBasemapStore((s) => s.activeBasemap2d)\n const activeBasemap3d = useBasemapStore((s) => s.activeBasemap3d)\n const opacity2d = useBasemapStore((s) => s.opacity2d)\n const opacity3d = useBasemapStore((s) => s.opacity3d)\n\n const engine = activeMap === 'parallel' ? activeParallellMap : activeMap\n const tree = useBasemapTree(engine, componentId)\n const activeBasemap = engine === '3d' ? activeBasemap3d : activeBasemap2d\n const basemapOpacity = engine === '3d' ? opacity3d : opacity2d\n\n const setActiveBasemap = useBasemapStore((s) => s.setActiveBasemap)\n const setBasemapOpacity = useBasemapStore((s) => s.setBasemapOpacity)\n const t = useComponentTranslate(BASEMAP_COMPONENT_ID)\n const tRoot = useTranslate()\n\n const activeNode = resolveActiveBasemapNode(tree, activeBasemap)\n const availability = useBasemapAvailability(tree, engine)\n\n useBasemapErrorEvents(tree, availability, engine)\n\n const handleSelect = (id: string) => {\n setActiveBasemap(id, engine)\n }\n\n const handleOpacityChange = (opacity: number) => {\n setBasemapOpacity(opacity, engine)\n }\n\n return (\n <>\n <div data-testid=\"basemap\" style={{ width: 'fit-content' }}>\n <BaseMapSelection\n transparency={basemapOpacity}\n onTransparencyChange={handleOpacityChange}\n id=\"basemap-button\"\n title={t('title')}\n showTransparency\n content={\n <BasemapIcon\n alt=\"Selected base map\"\n src={activeNode ? basemapNodeIcon(activeNode) : undefined}\n />\n }\n >\n {tree.map((node) => {\n const id = node.id\n const status = availability.get(id)\n const disabled = Boolean(status && !status.available && !status.pending)\n const tooltip = optionTooltip(status, t)\n const title = nodeTitle(node, tRoot)\n\n return (\n <BaseMapSelection.Option\n content={<BasemapIcon alt={id} src={basemapNodeIcon(node)} />}\n title={title}\n id={id}\n key={id}\n disabled={disabled}\n selected={id === activeBasemap}\n tooltipText={tooltip}\n tooltipType=\"error\"\n onSelect={() => {\n handleSelect(id)\n }}\n />\n )\n })}\n </BaseMapSelection>\n </div>\n </>\n )\n}\n","import type { IComponentBookmarkState, IXgisComponent } from '@xgis/xgis-common'\nimport { BASEMAP_COMPONENT_ID, SLOTS, useBasemapStore } from '@xgis/xgis-common'\n\nimport { BasemapView } from './BasemapView'\nimport enMessages from './lang/en.json'\nimport etMessages from './lang/et.json'\n\ninterface BasemapBookmarkSettings {\n activeBasemap2d?: string | null\n activeBasemap3d?: string | null\n}\n\nexport const BasemapComponent: IXgisComponent = {\n id: BASEMAP_COMPONENT_ID,\n\n messages: {\n et: etMessages,\n en: enMessages,\n },\n\n ui: {\n [SLOTS.BASEMAPS]: { Component: BasemapView },\n },\n\n bookmark: {\n serialize: (): IComponentBookmarkState => {\n const state = useBasemapStore.getState()\n\n return {\n render: true,\n settings: {\n activeBasemap2d: state.activeBasemap2d,\n activeBasemap3d: state.activeBasemap3d,\n },\n }\n },\n\n deserialize: (data) => {\n const settings = data.settings as BasemapBookmarkSettings | undefined\n\n if (!settings) {\n return\n }\n\n const { setActiveBasemap } = useBasemapStore.getState()\n\n if (settings.activeBasemap2d) {\n setActiveBasemap(settings.activeBasemap2d, '2d')\n }\n\n if (settings.activeBasemap3d) {\n setActiveBasemap(settings.activeBasemap3d, '3d')\n }\n },\n },\n}\n","import type { IComponentUIProps } from '@xgis/xgis-common'\nimport { Slot, useLayoutStore } from '@xgis/xgis-common'\n\nimport { MobileSidePanel } from './MobileSidePanel'\nimport { SIDE_PANEL_SLOTS } from './SidePanelComponent'\n\nexport function SidePanelView(_props: IComponentUIProps) {\n const layout = useLayoutStore((s) => s.mode)\n\n if (layout === 'mobile') {\n return <MobileSidePanel />\n }\n\n return (\n <>\n <Slot id={SIDE_PANEL_SLOTS.TOPICLIST} />\n <Slot id={SIDE_PANEL_SLOTS.LAYERS} />\n <Slot id={SIDE_PANEL_SLOTS.BOOKMARKS} />\n </>\n )\n}\n","import type { IXgisComponent } from '@xgis/xgis-common'\nimport { SIDEPANEL_COMPONENT_ID, SLOTS } from '@xgis/xgis-common'\n\nimport enMessages from './lang/en.json'\nimport etMessages from './lang/et.json'\nimport { SidePanelView } from './SidePanelView'\n\nexport const SIDE_PANEL_SLOTS = {\n LAYERS: 'xgis.sidePanel.layers',\n BOOKMARKS: 'xgis.sidePanel.bookmarks',\n TOPICLIST: 'xgis.sidePanel.topiclist',\n} as const\n\nexport const SidePanelComponent: IXgisComponent = {\n id: SIDEPANEL_COMPONENT_ID,\n\n messages: {\n et: etMessages,\n en: enMessages,\n },\n\n ui: {\n [SLOTS.SIDE_PANEL]: { Component: SidePanelView },\n },\n\n slots: [\n { id: SIDE_PANEL_SLOTS.LAYERS, description: 'Layer list area' },\n { id: SIDE_PANEL_SLOTS.BOOKMARKS, description: 'Bookmarks area' },\n { id: SIDE_PANEL_SLOTS.TOPICLIST, description: 'Topic list area' },\n ],\n}\n","import { Tabs } from '@tedi-design-system/react/tedi'\nimport {\n SIDEPANEL_COMPONENT_ID,\n Slot,\n useComponentTranslate,\n useTopicStore,\n useUiStore,\n} from '@xgis/xgis-common'\n\nimport styles from './MobileSidePanel.module.css'\nimport { SIDE_PANEL_SLOTS } from './SidePanelComponent'\n\nconst TOPIC_TAB_ID = 'side-panel-topic'\n\nexport function MobileSidePanel() {\n const isTopicPickerOpen = useUiStore((s) => s.topicPickerOpen)\n const topics = useTopicStore((s) => s.topics)\n const activeTopicId = useTopicStore((s) => s.activeTopicId)\n const t = useComponentTranslate(SIDEPANEL_COMPONENT_ID)\n\n if (isTopicPickerOpen) {\n return (\n <div className={styles.panel} data-testid=\"mobile-side-panel\">\n <Slot id={SIDE_PANEL_SLOTS.TOPICLIST} />\n </div>\n )\n }\n\n const activeTopicTitle = topics.find((topic) => topic.id === activeTopicId)?.title\n\n return (\n <div className={styles.panel} data-testid=\"mobile-side-panel\">\n <Slot id={SIDE_PANEL_SLOTS.TOPICLIST} />\n\n <Tabs defaultValue={TOPIC_TAB_ID}>\n <Tabs.List aria-label={t('tabs.aria')} overflowMode=\"scroll\">\n <Tabs.Trigger id={TOPIC_TAB_ID}>{activeTopicTitle ?? t('tabs.topic')}</Tabs.Trigger>\n </Tabs.List>\n\n <Tabs.Content id={TOPIC_TAB_ID}>\n <Slot id={SIDE_PANEL_SLOTS.LAYERS} />\n <Slot id={SIDE_PANEL_SLOTS.BOOKMARKS} />\n </Tabs.Content>\n </Tabs>\n </div>\n )\n}\n","import { MapAccordion } from '@tedi-design-system/react/community'\nimport { Toggle } from '@tedi-design-system/react/tedi'\nimport type { IComponentUIProps } from '@xgis/xgis-common'\nimport type { ILayer } from '@xgis/xgis-common'\nimport {\n layerKey,\n LAYERPANEL_COMPONENT_ID,\n useComponentTranslate,\n useLayerStore,\n useMapViewStore,\n useTranslate,\n} from '@xgis/xgis-common'\n\nimport styles from './LayerPanelView.module.css'\n\nfunction layerLabel(layer: ILayer, t: (key: string) => string): string {\n const key = layerKey(layer.fatLayerId ?? layer.id, 'name.label')\n const label = t(key)\n\n return !label || label === key ? layer.id : label\n}\n\nfunction filterByMode(layers: ILayer[], mode: string): ILayer[] {\n return layers.filter((l) => {\n if (mode === 'parallel' || !l.supportedEngines) {\n return true\n }\n const engine = mode === '2d' ? '2d' : '3d'\n return l.supportedEngines.includes(engine)\n })\n}\n\nexport function LayerPanelView(_props: IComponentUIProps) {\n const mode = useMapViewStore((s) => s.mode)\n const layers = useLayerStore((s) => s.layers)\n const setLayerVisibility = useLayerStore((s) => s.setLayerVisibility)\n const t = useComponentTranslate(LAYERPANEL_COMPONENT_ID)\n const tRoot = useTranslate()\n\n const displayLayers = filterByMode(layers, mode)\n\n return (\n <div data-testid=\"layer-panel\">\n <MapAccordion defaultOpenItem={['kihid']}>\n <MapAccordion.Item id=\"kihid\">\n <MapAccordion.Header title={t('layers')} />\n <MapAccordion.Content>\n <div className={styles.layerList}>\n {displayLayers.map((layer) => {\n const label = layerLabel(layer, tRoot)\n\n return (\n <div key={layer.id} className={styles.layerRow} data-layer-id={layer.id}>\n <Toggle\n id={layer.id}\n label={label}\n labelPosition=\"right\"\n checked={layer.visible}\n onChange={(checked: boolean) => {\n setLayerVisibility(layer.id, checked)\n }}\n />\n </div>\n )\n })}\n </div>\n </MapAccordion.Content>\n </MapAccordion.Item>\n </MapAccordion>\n </div>\n )\n}\n","import type { IXgisComponent } from '@xgis/xgis-common'\nimport { LAYERPANEL_COMPONENT_ID } from '@xgis/xgis-common'\n\nimport { SIDE_PANEL_SLOTS } from '../SidePanel'\nimport enMessages from './lang/en.json'\nimport etMessages from './lang/et.json'\nimport { LayerPanelView } from './LayerPanelView'\n\nexport const LayerPanelComponent: IXgisComponent = {\n id: LAYERPANEL_COMPONENT_ID,\n\n messages: {\n et: etMessages,\n en: enMessages,\n },\n\n contributions: [{ target: SIDE_PANEL_SLOTS.LAYERS, Component: LayerPanelView }],\n\n bookmark: {\n serialize: () => ({ render: true }),\n deserialize: () => undefined,\n },\n}\n","import { Button, ButtonGroup } from '@tedi-design-system/react/tedi'\nimport { MAPSWITCH_COMPONENT_ID, useComponentTranslate, useMapViewStore } from '@xgis/xgis-common'\n\nimport { MODES } from './MapSwitchButtons'\n\nexport function MapSwitchDesktop() {\n const t = useComponentTranslate(MAPSWITCH_COMPONENT_ID)\n const mode = useMapViewStore((s) => s.mode)\n const setMode = useMapViewStore((s) => s.setMode)\n\n return (\n <div data-testid=\"map-switch-desktop\" style={{ display: 'contents' }}>\n <ButtonGroup ariaLabel={t('ariaLabel')}>\n {MODES.map((value) => (\n <Button\n key={value}\n id={value}\n isActive={mode === value}\n onClick={() => setMode(value)}\n iconLeft={value === 'parallel' ? 'split_scene' : undefined}\n >\n <span data-testid={`map-switch-mode-${value}`}>{t(value)}</span>\n </Button>\n ))}\n </ButtonGroup>\n </div>\n )\n}\n","import { MapButton } from '@tedi-design-system/react/community'\nimport { Icon } from '@tedi-design-system/react/tedi'\nimport {\n MAPSWITCH_COMPONENT_ID,\n useComponentTranslate,\n useLayoutStore,\n useMapViewStore,\n} from '@xgis/xgis-common'\n\nimport { MODES } from './MapSwitchButtons'\n\nexport function MapSwitchMobile() {\n const t = useComponentTranslate(MAPSWITCH_COMPONENT_ID)\n const mode = useMapViewStore((s) => s.mode)\n const setMode = useMapViewStore((s) => s.setMode)\n const orientation = useLayoutStore((s) => s.orientation)\n const isParallel = mode === 'parallel'\n const splitIcon = orientation === 'landscape' ? 'split_scene' : 'split_scene_2'\n\n const modeItems = MODES.map((value) => ({\n children: (\n <>\n {value === 'parallel' ? (\n <>\n <Icon name={splitIcon} size={16} display=\"inline\" />{' '}\n </>\n ) : null}\n <span data-testid={`map-switch-mode-${value}`}>{t(value)}</span>\n </>\n ),\n isActive: value === mode,\n onClick: () => setMode(value),\n }))\n\n return (\n <MapButton\n size=\"small\"\n hideLabel={isParallel}\n icon={isParallel ? splitIcon : undefined}\n dropdownItems={modeItems}\n aria-label={`${t('ariaLabel')}: ${t(mode)}`}\n data-testid=\"map-switch-mobile\"\n >\n <span data-testid=\"map-switch-mobile-trigger\">{t(mode)}</span>\n </MapButton>\n )\n}\n","import { type IComponentUIProps, type MapMode, useAllowedMapMode } from '@xgis/xgis-common'\n\nimport { MapSwitchDesktop } from './MapSwitchDesktop'\nimport { MapSwitchMobile } from './MapSwitchMobile'\n\nexport const MODES: MapMode[] = ['2d', '3d', 'parallel']\n\nexport function MapSwitchButtons({ layout }: IComponentUIProps) {\n const allowedMapMode = useAllowedMapMode()\n\n if (allowedMapMode !== 'both') {\n return null\n }\n\n if (layout === 'mobile') {\n return <MapSwitchMobile />\n }\n\n return <MapSwitchDesktop />\n}\n","import type { IXgisComponent } from '@xgis/xgis-common'\nimport { MAPSWITCH_COMPONENT_ID, SLOTS } from '@xgis/xgis-common'\n\nimport enMessages from './lang/en.json'\nimport etMessages from './lang/et.json'\nimport { MapSwitchButtons } from './MapSwitchButtons'\n\nexport const MapSwitchComponent: IXgisComponent = {\n id: MAPSWITCH_COMPONENT_ID,\n\n messages: {\n et: etMessages,\n en: enMessages,\n },\n\n ui: {\n [SLOTS.MAP_SWITCH]: { Component: MapSwitchButtons },\n },\n\n bookmark: {\n serialize: () => ({ render: true }),\n deserialize: () => undefined,\n },\n}\n","export default \"data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_604_38579)'%3e%3cpath%20d='M14.1209%2014.1214L9.8783%209.87872L17.6565%206.34318L14.1209%2014.1214Z'%20fill='%23005AA3'/%3e%3cpath%20d='M13.0609%2013.0607L9.1718%2014.8285L10.9396%2010.9394L9.87891%209.87872L6.34337%2017.6569L14.1215%2014.1214L13.0609%2013.0607Z'%20fill='%23005AA3'/%3e%3cpath%20d='M4.22183%2019.7782C-0.0667771%2015.4896%20-0.0667774%208.51044%204.22183%204.22184C8.51043%20-0.0667636%2015.4896%20-0.0667636%2019.7782%204.22184C24.0668%208.51044%2024.0668%2015.4896%2019.7782%2019.7782C15.4896%2024.0668%208.51043%2024.0668%204.22183%2019.7782ZM18.364%205.63605C14.8553%202.12739%209.1447%202.12739%205.63604%205.63605C2.12667%209.14542%202.12738%2014.8553%205.63604%2018.364C9.14541%2021.8733%2014.8546%2021.8733%2018.364%2018.364C21.8726%2014.8553%2021.8733%209.14542%2018.364%205.63605Z'%20fill='%23005AA3'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_604_38579'%3e%3crect%20width='24'%20height='24'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e\"","import type { Radians } from '@xgis/xgis-common'\nimport { RADIANS_TO_DEGREES, wrapToRange } from '@xgis/xgis-common'\n\nconst FULL_CIRCLE_DEGREES = 360\n\n// The \"explore\" compass icon's needle sits at 45° (north-east) at rest, so the rendered\n// rotation carries a -45° offset to make 0° read as due north.\nconst COMPASS_ICON_REST_OFFSET_DEGREES = 45\n\n/**\n * A positive store rotation turns the map, and with it north, clockwise on screen, so in whole\n * degrees within [0, 360) it is where north points, measured clockwise from the top.\n */\nexport function rotationToCompassDegrees(rotation: Radians): number {\n const degrees = Math.round(rotation * RADIANS_TO_DEGREES)\n return wrapToRange(degrees, FULL_CIRCLE_DEGREES)\n}\n\n/**\n * CSS rotates clockwise, the same way the store rotation turns the map, so the needle takes the\n * bearing as it is, less the icon's 45° rest angle.\n */\nexport function compassIconRotationDegrees(compassDegrees: number): number {\n return compassDegrees - COMPASS_ICON_REST_OFFSET_DEGREES\n}\n","import type { ICameraCapability } from '@xgis/xgis-common'\nimport { useCapability, useMapViewStore } from '@xgis/xgis-common'\nimport { useEffect, useState } from 'react'\n\nexport function useLiveRotation(): number {\n const settled = useMapViewStore((s) => s.rotation)\n const camera2d = useCapability<ICameraCapability>('camera', '2d')\n const camera3d = useCapability<ICameraCapability>('camera', '3d')\n\n const [live, setLive] = useState<number>(settled)\n const [prevSettled, setPrevSettled] = useState<number>(settled)\n\n if (settled !== prevSettled) {\n setPrevSettled(settled)\n setLive(settled)\n }\n\n useEffect(() => {\n const onRotation = (rotation: number): void => {\n if (Number.isFinite(rotation)) {\n setLive(rotation)\n }\n }\n\n const unsubs: Array<() => void> = []\n\n if (camera2d) {\n unsubs.push(camera2d.onRotationChange(onRotation))\n }\n\n if (camera3d) {\n unsubs.push(camera3d.onRotationChange(onRotation))\n }\n\n return () => {\n unsubs.forEach((unsub) => unsub())\n }\n }, [camera2d, camera3d])\n\n return live\n}\n","import { ButtonGroup, MapButton } from '@tedi-design-system/react/community'\nimport { Icon, Text } from '@tedi-design-system/react/tedi'\nimport type { IComponentUIProps, NavigationSettings, Radians } from '@xgis/xgis-common'\nimport {\n NAVIGATION_COMPONENT_ID,\n TOP_DOWN_PITCH,\n useComponentSettingsStore,\n useComponentTranslate,\n useMapViewStore,\n useParallelViewSync,\n} from '@xgis/xgis-common'\nimport type { CSSProperties } from 'react'\n\nimport compassIconUrl from './assets/compass.svg'\nimport { compassIconRotationDegrees, rotationToCompassDegrees } from './compassUtils'\nimport { useLiveRotation } from './hooks/useLiveRotation'\nimport styles from './NavigationButtons.module.css'\n\nconst NORTH_ROTATION = 0 as Radians\nconst NORTH_ICON_REST_ROTATION_DEG = compassIconRotationDegrees(0)\n\nexport function CompassButtons(_props: IComponentUIProps) {\n const t = useComponentTranslate(NAVIGATION_COMPONENT_ID)\n // Display rotation from the live channel (tracks a gesture in real time, incl. 2D, where\n // mapViewStore only updates on settle); navigation still writes through mapViewStore below.\n const rotation = useLiveRotation()\n const defaultView = useMapViewStore((s) => s.defaultView)\n const rotationAllowed = useMapViewStore((s) => s.rotationAllowed)\n const { available, coupled, toggle } = useParallelViewSync()\n const settings = useComponentSettingsStore((s) =>\n s.getComponentSettings<NavigationSettings>(NAVIGATION_COMPONENT_ID),\n )\n\n const showDefaultView = settings?.reset === true\n const showCompass = settings?.positioningCompass !== false && rotationAllowed\n\n const compassDeg = rotationToCompassDegrees(rotation)\n const northLabel = available ? t('north') : t('restoreNorth')\n\n const restoreInitialView = () => {\n const { rotation, pitch } = defaultView\n\n // A boot view was fitted to the theme bbox, and the zoom that produced is viewport-dependent —\n // so re-fit rather than replay a zoom that would be wrong at any other window size.\n if (defaultView.kind === 'fit') {\n useMapViewStore.setState({ rotation, pitch, fitBboxIntent: { bbox: defaultView.bbox } })\n return\n }\n\n useMapViewStore.setState({\n rotation,\n pitch,\n zoomToIntent: { center: defaultView.center, zoom: defaultView.zoom },\n })\n }\n\n const resetNorth = () => {\n useMapViewStore.setState({ rotation: NORTH_ROTATION, pitch: TOP_DOWN_PITCH })\n }\n\n const northMenuItems = available\n ? [\n {\n children: (\n <Text element=\"span\">\n <span\n aria-hidden=\"true\"\n className={styles.menuIcon}\n style={\n {\n '--menu-icon-url': `url(\"${compassIconUrl}\")`,\n transform: `rotate(${NORTH_ICON_REST_ROTATION_DEG}deg)`,\n } as CSSProperties\n }\n />{' '}\n <span data-testid=\"nav-restore-north\">{t('restoreNorth')}</span>\n </Text>\n ),\n onClick: resetNorth,\n },\n {\n children: (\n <Text element=\"span\">\n <Icon\n name={coupled ? 'lock_open' : 'lock'}\n size={16}\n display=\"inline\"\n color=\"inherit\"\n />{' '}\n <span data-testid=\"nav-view-sync-toggle\">\n {coupled ? t('decoupleViews') : t('coupleViews')}\n </span>\n </Text>\n ),\n onClick: toggle,\n },\n ]\n : undefined\n\n if (!showDefaultView && !showCompass) {\n return null\n }\n\n return (\n <ButtonGroup\n direction=\"vertical\"\n ariaLabel={t('orientationControls')}\n suffix={showCompass ? `${compassDeg}°` : undefined}\n >\n {showDefaultView && (\n <MapButton\n size=\"small\"\n hideLabel\n icon=\"restart_alt\"\n onClick={restoreInitialView}\n data-testid=\"nav-default-view\"\n >\n {t('defaultView')}\n </MapButton>\n )}\n {showCompass && (\n <MapButton\n size=\"small\"\n hideLabel\n icon=\"explore\"\n onClick={available ? undefined : resetNorth}\n dropdownItems={northMenuItems}\n aria-label={northLabel}\n data-testid=\"nav-north\"\n className={styles.compassIcon}\n // CSSProperties doesn't include custom properties; assertion required per @types/react docs.\n style={\n {\n '--compass-rotation': `${compassIconRotationDegrees(compassDeg)}deg`,\n '--compass-icon-url': `url(\"${compassIconUrl}\")`,\n } as CSSProperties\n }\n >\n {northLabel}\n </MapButton>\n )}\n </ButtonGroup>\n )\n}\n","import {\n activeEngine,\n extentCenter,\n selectSyncedGroup,\n useMapViewStore,\n useNavigationHistoryStore,\n} from '@xgis/xgis-common'\nimport { useCallback } from 'react'\n\ninterface UseNavigationHistoryResult {\n canGoBack: boolean\n canGoForward: boolean\n back: () => void\n forward: () => void\n}\n\nexport function useNavigationHistory(): UseNavigationHistoryResult {\n const mode = useMapViewStore((s) => s.mode)\n const parallelPrimary = useMapViewStore((s) => s.parallelPrimary)\n const engine = activeEngine(mode, parallelPrimary)\n\n const stack = useNavigationHistoryStore((s) => s.stacks[engine])\n const canGoBack = stack.pointer > 0\n const canGoForward = stack.pointer < stack.entries.length - 1\n\n const replayTo = useCallback(\n (target: number) => {\n const { stacks, moveTo, setReplayPending } = useNavigationHistoryStore.getState()\n const entry = stacks[engine].entries[target]\n\n if (entry === undefined) {\n return\n }\n\n // Replay via center + zoom + rotation, not a bbox fit (a rotated view's stored AABB over-zooms\n // when re-fitted — see HistoryEntry.zoom). bbox midpoint is the true center.\n const center = extentCenter(entry.bbox)\n\n setReplayPending(true)\n for (const member of selectSyncedGroup(useMapViewStore.getState())) {\n moveTo(member, target)\n }\n useMapViewStore.setState({\n rotation: entry.rotation,\n pitch: entry.pitch,\n zoomToIntent: { center, zoom: entry.zoom },\n })\n },\n [engine],\n )\n\n const back = useCallback(() => {\n const current = useNavigationHistoryStore.getState().stacks[engine]\n if (current.pointer <= 0) {\n return\n }\n replayTo(current.pointer - 1)\n }, [engine, replayTo])\n\n const forward = useCallback(() => {\n const current = useNavigationHistoryStore.getState().stacks[engine]\n if (current.pointer >= current.entries.length - 1) {\n return\n }\n replayTo(current.pointer + 1)\n }, [engine, replayTo])\n\n return { canGoBack, canGoForward, back, forward }\n}\n","import { ButtonGroup, MapButton } from '@tedi-design-system/react/community'\nimport type { IComponentUIProps, NavigationSettings } from '@xgis/xgis-common'\nimport {\n NAVIGATION_COMPONENT_ID,\n useComponentSettingsStore,\n useComponentTranslate,\n} from '@xgis/xgis-common'\n\nimport { useNavigationHistory } from './hooks/useNavigationHistory'\n\nexport function HistoryButtons(_props: IComponentUIProps) {\n const t = useComponentTranslate(NAVIGATION_COMPONENT_ID)\n const { canGoBack, canGoForward, back, forward } = useNavigationHistory()\n const settings = useComponentSettingsStore((s) =>\n s.getComponentSettings<NavigationSettings>(NAVIGATION_COMPONENT_ID),\n )\n\n if (settings?.history === false) {\n return null\n }\n\n return (\n <ButtonGroup direction=\"vertical\" ariaLabel={t('historyControls')}>\n <MapButton\n size=\"small\"\n hideLabel\n icon=\"arrow_back\"\n disabled={!canGoBack}\n onClick={back}\n data-testid=\"nav-history-back\"\n >\n {t('back')}\n </MapButton>\n <MapButton\n size=\"small\"\n hideLabel\n icon=\"arrow_forward\"\n disabled={!canGoForward}\n onClick={forward}\n data-testid=\"nav-history-forward\"\n >\n {t('forward')}\n </MapButton>\n </ButtonGroup>\n )\n}\n","import type { EpsgCode, LonLat, MapExtent, Radians, ZoomLevel } from '@xgis/xgis-common'\nimport {\n clampPointToBounds,\n componentKey,\n containsPoint,\n DEGREES_TO_RADIANS,\n fromWgs84,\n NAVIGATION_COMPONENT_ID,\n toWgs84,\n translate,\n TWO_PI,\n wrapToRange,\n} from '@xgis/xgis-common'\n\n// W3C GeolocationPositionError.PERMISSION_DENIED — not available as a global in all environments.\nconst PERMISSION_DENIED = 1\n\n// Cesium reports zoom on a 0.1 grid.\nconst ZOOM_SETTLE_TOLERANCE = 0.1\n\n// Mid-flight the store zoom is stale (OpenLayers) or intermediate (Cesium).\nexport function settlePendingZoom(\n pending: ZoomLevel | null,\n storeZoom: ZoomLevel,\n): ZoomLevel | null {\n if (pending === null || Math.abs(storeZoom - pending) <= ZOOM_SETTLE_TOLERANCE) {\n return null\n }\n\n return pending\n}\n\n// GPS heading is clockwise degrees from north; marker cone rotation uses the same clockwise sense.\nexport function headingToRadians(headingDegrees: number): Radians {\n return (headingDegrees * DEGREES_TO_RADIANS) as Radians\n}\n\n// mapViewStore.rotation turns the map clockwise, which faces the top of the screen that far\n// counter-clockwise of north: the opposite sense from a GPS heading.\nexport function negateAndWrap(radians: Radians): Radians {\n return wrapToRange(-radians, TWO_PI) as Radians\n}\n\nexport function headingToMapRotation(headingDegrees: number): Radians {\n return negateAndWrap(headingToRadians(headingDegrees))\n}\n\nexport function geolocationErrorMessage(error: GeolocationPositionError): string {\n const key = error.code === PERMISSION_DENIED ? 'locationDenied' : 'locationError'\n\n return translate(componentKey(NAVIGATION_COMPONENT_ID, key))\n}\n\nexport interface BoundedFix {\n readonly position: LonLat\n readonly outsideBounds: boolean\n}\n\n// A GPS fix can fall outside the topic's area. Reports whether it did, and clamps the position to\n// fly to as close as the bounds allow rather than to a place the map will refuse to go.\nexport function constrainToBounds(\n position: LonLat,\n constraintBbox: MapExtent | null,\n projection: EpsgCode,\n): BoundedFix {\n if (!constraintBbox) {\n return { position, outsideBounds: false }\n }\n\n const point = fromWgs84(projection, position)\n\n // Returned untouched rather than round-tripped: reprojecting an in-bounds fix only costs\n // precision.\n if (containsPoint(point, constraintBbox)) {\n return { position, outsideBounds: false }\n }\n\n const [x, y] = clampPointToBounds(point, constraintBbox)\n\n return { position: toWgs84(projection, [x, y]), outsideBounds: true }\n}\n","import type { ZoomLevel } from '@xgis/xgis-common'\nimport { clampZoom, useGeolocationStore, useMapViewStore } from '@xgis/xgis-common'\nimport { useCallback, useEffect } from 'react'\n\nimport { settlePendingZoom } from '../geolocationUtils'\n\nconst LOCATE_ZOOM = 14 as ZoomLevel\n\ninterface UseTrackingZoomResult {\n startLocateZoom: () => ZoomLevel\n followZoom: () => ZoomLevel\n}\n\nfunction storeSettledZoom(pending: ZoomLevel | null, storeZoom: ZoomLevel): ZoomLevel | null {\n const settled = settlePendingZoom(pending, storeZoom)\n useGeolocationStore.getState().setPendingLocateZoom(settled)\n return settled\n}\n\nexport function useTrackingZoom(): UseTrackingZoomResult {\n // Also settles between fixes, so a zoom picked before the next fix is kept.\n useEffect(\n () =>\n useMapViewStore.subscribe((state, prev) => {\n const { pendingLocateZoom } = useGeolocationStore.getState()\n\n if (state.zoom === prev.zoom || pendingLocateZoom === null) {\n return\n }\n\n storeSettledZoom(pendingLocateZoom, state.zoom)\n }),\n [],\n )\n\n // Settles at once if already at the locate zoom: OpenLayers reports nothing for a no-op fly-to.\n const startLocateZoom = useCallback((): ZoomLevel => {\n storeSettledZoom(LOCATE_ZOOM, useMapViewStore.getState().zoom)\n return LOCATE_ZOOM\n }, [])\n\n const followZoom = useCallback((): ZoomLevel => {\n const storeZoom = useMapViewStore.getState().zoom\n const pending = storeSettledZoom(useGeolocationStore.getState().pendingLocateZoom, storeZoom)\n\n return clampZoom(pending ?? storeZoom)\n }, [])\n\n return { startLocateZoom, followZoom }\n}\n","import type { LonLat } from '@xgis/xgis-common'\nimport {\n NAVIGATION_COMPONENT_ID,\n stopGeolocation,\n useComponentTranslate,\n useGeolocationStore,\n useMapBusEmit,\n useMapViewStore,\n useNavigationHistoryStore,\n useProjectionStore,\n useUserMarkerStore,\n} from '@xgis/xgis-common'\nimport { useCallback, useRef } from 'react'\n\nimport {\n constrainToBounds,\n geolocationErrorMessage,\n headingToMapRotation,\n headingToRadians,\n negateAndWrap,\n} from '../geolocationUtils'\nimport { useTrackingZoom } from './useTrackingZoom'\n\nconst RATIONALE_FLAG = 'xgis.gpsRationaleShown'\n\nconst POSITION_OPTIONS: PositionOptions = {\n enableHighAccuracy: true,\n timeout: 10_000,\n maximumAge: 5_000,\n}\n\n// A storage failure (private mode) reports \"already shown\" so the note is skipped, degrading to the\n// button tooltip rather than surfacing an error.\nfunction hasShownRationale(): boolean {\n try {\n return localStorage.getItem(RATIONALE_FLAG) === 'true'\n } catch {\n return true\n }\n}\n\nfunction markRationaleShown(): void {\n try {\n localStorage.setItem(RATIONALE_FLAG, 'true')\n } catch {\n // storage unavailable — the note simply shows again next session\n }\n}\n\ninterface UseGeolocationResult {\n isLocated: boolean\n isTracking: boolean\n locate: () => void\n toggleTracking: () => void\n deactivate: () => void\n}\n\nexport function useGeolocation(): UseGeolocationResult {\n const isLocated = useGeolocationStore((s) => s.isLocated)\n const isTracking = useGeolocationStore((s) => s.isTracking)\n const emit = useMapBusEmit()\n const t = useComponentTranslate(NAVIGATION_COMPONENT_ID)\n const setMarker = useUserMarkerStore((s) => s.setMarker)\n const setHeading = useUserMarkerStore((s) => s.setHeading)\n const trackingOutsideBounds = useRef(false)\n const isFirstFix = useRef(true)\n const { startLocateZoom, followZoom } = useTrackingZoom()\n\n // Clamps a GPS fix to the topic's bounds and reports whether it fell outside them (once per\n // continuous excursion, via trackingOutsideBounds — a repeated fix outside the same area does\n // not re-toast).\n const resolvePosition = useCallback(\n (position: LonLat): LonLat => {\n const constraintBbox = useMapViewStore.getState().constraintBbox\n const projection = useProjectionStore.getState().projection\n const { position: bounded, outsideBounds } = constrainToBounds(\n position,\n constraintBbox,\n projection,\n )\n\n if (outsideBounds && !trackingOutsideBounds.current) {\n emit('showToast', { message: t('locationOutsideBounds'), severity: 'error' })\n }\n\n trackingOutsideBounds.current = outsideBounds\n return bounded\n },\n [emit, t],\n )\n\n const showRationaleOnce = useCallback(() => {\n if (hasShownRationale()) {\n return\n }\n\n emit('showToast', { message: t('locationRationale'), severity: 'info' })\n markRationaleShown()\n }, [emit, t])\n\n const handlePositionUpdate = useCallback(\n ({ coords }: GeolocationPosition) => {\n const position: LonLat = { lon: coords.longitude, lat: coords.latitude }\n const bounded = resolvePosition(position)\n setMarker(position)\n\n const hasHeading = coords.heading !== null && !Number.isNaN(coords.heading)\n if (hasHeading) {\n setHeading(headingToRadians(coords.heading))\n }\n\n const firstFix = isFirstFix.current\n isFirstFix.current = false\n const tracking = useGeolocationStore.getState().isTracking\n\n if (!firstFix && !tracking) {\n return\n }\n\n const zoom = firstFix ? startLocateZoom() : followZoom()\n\n // Both fields must land in the same store update: OpenLayers cancels any running view\n // animation (including a still-running flyToPosition's from the previous fix) on a direct\n // setRotation() call, so a rotation update landing in a separate, later update would cut a\n // fly-to short mid-flight.\n useMapViewStore.setState({\n ...(tracking && hasHeading ? { rotation: headingToMapRotation(coords.heading) } : {}),\n flyToPositionIntent: { position: bounded, zoom },\n })\n },\n [followZoom, resolvePosition, setHeading, setMarker, startLocateZoom],\n )\n\n const locate = useCallback(() => {\n showRationaleOnce()\n trackingOutsideBounds.current = false\n isFirstFix.current = true\n\n const watchId = navigator.geolocation.watchPosition(\n handlePositionUpdate,\n (error) => {\n emit('showToast', { message: geolocationErrorMessage(error), severity: 'error' })\n emit('error', { type: 'geolocation', code: error.code })\n },\n POSITION_OPTIONS,\n )\n\n useGeolocationStore.getState().setWatchId(watchId)\n useGeolocationStore.getState().setLocated(true)\n }, [emit, handlePositionUpdate, showRationaleOnce])\n\n const toggleTracking = useCallback(() => {\n const tracking = !isTracking\n useNavigationHistoryStore.getState().setExternalControl(tracking)\n useGeolocationStore.getState().setTracking(tracking)\n\n if (!tracking) {\n return\n }\n\n const { marker, heading } = useUserMarkerStore.getState()\n\n // Both fields must land in the same store update: OpenLayers cancels any running view\n // animation (including flyToPosition's) on a direct setRotation() call, so setting rotation in\n // a separate, later update would cut the fly-to short the instant it started.\n useMapViewStore.setState({\n ...(marker ? { flyToPositionIntent: { position: marker, zoom: startLocateZoom() } } : {}),\n ...(heading !== null ? { rotation: negateAndWrap(heading) } : {}),\n })\n }, [isTracking, startLocateZoom])\n\n return {\n isLocated,\n isTracking,\n locate,\n toggleTracking,\n deactivate: stopGeolocation,\n }\n}\n","import { ButtonGroup, MapButton } from '@tedi-design-system/react/community'\nimport type { IComponentUIProps, NavigationSettings } from '@xgis/xgis-common'\nimport {\n NAVIGATION_COMPONENT_ID,\n useComponentSettingsStore,\n useComponentTranslate,\n} from '@xgis/xgis-common'\n\nimport { useGeolocation } from './hooks/useGeolocation'\n\nexport function LocationButtons(_props: IComponentUIProps) {\n const t = useComponentTranslate(NAVIGATION_COMPONENT_ID)\n const { isLocated, isTracking, locate, toggleTracking, deactivate } = useGeolocation()\n const settings = useComponentSettingsStore((s) =>\n s.getComponentSettings<NavigationSettings>(NAVIGATION_COMPONENT_ID),\n )\n\n if (settings?.positioning === false) {\n return null\n }\n\n return (\n <ButtonGroup direction=\"vertical\" ariaLabel={t('locationControls')}>\n <MapButton\n size=\"small\"\n hideLabel\n icon=\"my_location\"\n tooltipContent={t('locationRationaleTooltip')}\n selected={isLocated}\n aria-pressed={isLocated}\n onClick={isLocated ? deactivate : locate}\n data-testid=\"nav-locate\"\n >\n {t('myLocation')}\n </MapButton>\n {isLocated && (\n <MapButton\n size=\"small\"\n hideLabel\n icon=\"emergency_share\"\n selected={isTracking}\n aria-pressed={isTracking}\n onClick={toggleTracking}\n data-testid=\"nav-track\"\n >\n {t('trackLocation')}\n </MapButton>\n )}\n </ButtonGroup>\n )\n}\n","import { ButtonGroup, MapButton } from '@tedi-design-system/react/community'\nimport type { IComponentUIProps, NavigationSettings } from '@xgis/xgis-common'\nimport {\n MAX_ZOOM,\n NAVIGATION_COMPONENT_ID,\n useComponentSettingsStore,\n useComponentTranslate,\n useMapViewStore,\n useZoomFloor,\n} from '@xgis/xgis-common'\n\nexport function ZoomButtons(_props: IComponentUIProps) {\n const t = useComponentTranslate(NAVIGATION_COMPONENT_ID)\n const zoom = useMapViewStore((s) => s.zoom)\n const setZoom = useMapViewStore((s) => s.setZoom)\n const zoomFloor = useZoomFloor()\n const settings = useComponentSettingsStore((s) =>\n s.getComponentSettings<NavigationSettings>(NAVIGATION_COMPONENT_ID),\n )\n\n if (settings?.zoominout === false) {\n return null\n }\n\n return (\n <ButtonGroup direction=\"vertical\" ariaLabel={t('zoomControls')}>\n <MapButton\n size=\"small\"\n hideLabel\n icon=\"add\"\n disabled={zoom >= MAX_ZOOM}\n onClick={() => setZoom(zoom + 1)}\n data-testid=\"nav-zoom-in\"\n >\n {t('zoomIn')}\n </MapButton>\n <MapButton\n size=\"small\"\n hideLabel\n icon=\"remove\"\n disabled={zoom <= zoomFloor}\n // Clamped to the floor itself: past it, this resends the store's own current value, so\n // cameraSync's change guard skips the engine entirely instead of writing an unreachable\n // zoom the engine can never settle back to (nothing would then clear the stale request).\n onClick={() => setZoom(Math.max(zoom - 1, zoomFloor))}\n data-testid=\"nav-zoom-out\"\n >\n {t('zoomOut')}\n </MapButton>\n </ButtonGroup>\n )\n}\n","import type { IXgisComponent } from '@xgis/xgis-common'\nimport { NAVIGATION_COMPONENT_ID, SLOTS } from '@xgis/xgis-common'\n\nimport { CompassButtons } from './CompassButtons'\nimport { HistoryButtons } from './HistoryButtons'\nimport enMessages from './lang/en.json'\nimport etMessages from './lang/et.json'\nimport { LocationButtons } from './LocationButtons'\nimport { ZoomButtons } from './ZoomButtons'\n\nexport const NavigationComponent: IXgisComponent = {\n id: NAVIGATION_COMPONENT_ID,\n\n messages: {\n et: etMessages,\n en: enMessages,\n },\n\n ui: {\n [SLOTS.NAVIGATION_ZOOM]: { Component: ZoomButtons },\n [SLOTS.NAVIGATION_HISTORY]: { Component: HistoryButtons },\n [SLOTS.NAVIGATION_LOCATION]: { Component: LocationButtons },\n [SLOTS.NAVIGATION_COMPASS]: { Component: CompassButtons },\n },\n\n bookmark: {\n serialize: () => ({ render: true }),\n deserialize: () => undefined,\n },\n}\n","import type { AlertType } from '@tedi-design-system/react/tedi'\nimport { sendNotification, ToastContainer } from '@tedi-design-system/react/tedi'\nimport type { IComponentUIProps } from '@xgis/xgis-common'\nimport { useMapBusEvent } from '@xgis/xgis-common'\nimport { useCallback } from 'react'\n\nconst SEVERITY_TO_ALERT_TYPE: Record<'info' | 'warning' | 'error', AlertType> = {\n info: 'info',\n warning: 'warning',\n error: 'danger',\n}\n\nexport function NotificationToasts(_props: IComponentUIProps) {\n useMapBusEvent(\n 'showToast',\n useCallback(({ message, severity }) => {\n sendNotification({ type: SEVERITY_TO_ALERT_TYPE[severity], children: message })\n }, []),\n )\n\n return (\n <div data-testid=\"notification-toasts\" style={{ pointerEvents: 'auto' }}>\n <ToastContainer />\n </div>\n )\n}\n","import type { IXgisComponent } from '@xgis/xgis-common'\nimport { NOTIFICATION_COMPONENT_ID, SLOTS } from '@xgis/xgis-common'\n\nimport { NotificationToasts } from './NotificationToasts'\n\nexport const NotificationComponent: IXgisComponent = {\n id: NOTIFICATION_COMPONENT_ID,\n alwaysOn: true,\n\n ui: {\n [SLOTS.OVERLAY]: { Component: NotificationToasts },\n },\n}\n","import { Icon, Input, InputGroup, Search, Suffix, Text } from '@tedi-design-system/react/tedi'\nimport { IComponentUIProps, SEARCH_COMPONENT_ID, useComponentTranslate } from '@xgis/xgis-common'\n\nexport default function SearchView({ layout }: IComponentUIProps) {\n const t = useComponentTranslate(SEARCH_COMPONENT_ID)\n const isDesktop = layout === 'desktop'\n\n return (\n <InputGroup id=\"mocksearchgroup\" label={''}>\n <Input>\n <div style={{ maxWidth: 372, minWidth: 150 }}>\n <Search id=\"mocksearch\" placeholder={t('search')} />\n </div>\n </Input>\n <Suffix>\n <Text color=\"brand\">\n <Icon name=\"directions\" display=\"inline\" />\n {isDesktop && <span data-testid=\"search-directions-label\">Juhised</span>}\n </Text>\n </Suffix>\n <Suffix>\n <Text>\n {isDesktop && <span data-testid=\"search-advanced-label\">Täpsem otsing </span>}\n <Icon name=\"keyboard_arrow_down\" display=\"inline\" />\n </Text>\n </Suffix>\n </InputGroup>\n )\n}\n","import type { IXgisComponent } from '@xgis/xgis-common'\nimport { SEARCH_COMPONENT_ID, SLOTS } from '@xgis/xgis-common'\n\nimport enMessages from './lang/en.json'\nimport etMessages from './lang/et.json'\nimport SearchView from './SearchView'\n\nexport const SearchComponent: IXgisComponent = {\n id: SEARCH_COMPONENT_ID,\n\n messages: {\n et: etMessages,\n en: enMessages,\n },\n\n contributions: [{ target: SLOTS.SEARCH, Component: SearchView }],\n\n bookmark: {\n serialize: () => ({ render: true }),\n deserialize: () => undefined,\n },\n}\n","import type {\n ExternalApp,\n ExternalLinkTarget,\n Locale,\n MapExtent,\n TopicListSettings,\n} from '@xgis/xgis-common'\nimport {\n isSafeExternalUrl,\n openExternalUrl,\n TOPICLIST_COMPONENT_ID,\n useComponentSettingsStore,\n useI18nStore,\n useMapViewStore,\n} from '@xgis/xgis-common'\nimport { useMemo } from 'react'\n\nconst TOKEN_PATTERN = /\\$([a-z]+)\\$/gi\n\nexport interface LocalizedExternalApp {\n link: string\n name: string\n target: ExternalLinkTarget\n}\n\nconst TOKEN_RESOLVERS: Record<string, (bbox: MapExtent) => string> = {\n bbox: (bbox) => bbox.map(Math.round).join(','),\n}\n\nexport function resolveExternalAppLink(link: string, bbox: MapExtent): string {\n return link.replace(TOKEN_PATTERN, (match, token: string) => {\n const resolve = TOKEN_RESOLVERS[token.toLowerCase()]\n\n if (!resolve) {\n return match\n }\n\n return resolve(bbox)\n })\n}\n\nfunction localizedName(app: ExternalApp, locale: Locale): string {\n return app[`name_${locale}`] || app.name_et || app.name_en\n}\n\nexport function useExternalApps(): LocalizedExternalApp[] {\n const locale = useI18nStore((s) => s.locale)\n const settings = useComponentSettingsStore((s) =>\n s.getComponentSettings<TopicListSettings>(TOPICLIST_COMPONENT_ID),\n )\n\n const apps = settings?.externalApps\n\n return useMemo(() => {\n if (!apps?.length) {\n return []\n }\n\n return apps\n .filter((app) => isSafeExternalUrl(app.link))\n .map((app) => ({\n link: app.link,\n name: localizedName(app, locale),\n target: app.target,\n }))\n }, [apps, locale])\n}\n\nexport function openExternalAppAtCurrentView(app: LocalizedExternalApp): void {\n const { bbox } = useMapViewStore.getState()\n\n openExternalUrl(resolveExternalAppLink(app.link, bbox), app.target)\n}\n","import type { Locale, TopicListItem } from '@xgis/xgis-common'\nimport { useI18nStore, useTopicStore } from '@xgis/xgis-common'\nimport { useMemo } from 'react'\n\nimport type { LocalizedExternalApp } from './externalApps'\nimport { useExternalApps } from './externalApps'\n\nconst EXTERNAL_ENTRY_PREFIX = 'external:'\n\nexport type TopicEntry =\n | { kind: 'topic'; id: string; label: string; topic: TopicListItem }\n | { kind: 'externalApp'; id: string; label: string; app: LocalizedExternalApp }\n\nexport function mergeTopicEntries(\n topics: readonly TopicListItem[],\n apps: readonly LocalizedExternalApp[],\n locale: Locale,\n): TopicEntry[] {\n const entries: TopicEntry[] = [\n ...topics.map((topic) => ({\n kind: 'topic' as const,\n id: topic.id,\n label: topic.title,\n topic,\n })),\n ...apps.map((app, index) => ({\n kind: 'externalApp' as const,\n id: `${EXTERNAL_ENTRY_PREFIX}${index}:${app.link}`,\n label: app.name,\n app,\n })),\n ]\n\n const collator = new Intl.Collator(locale)\n\n return entries.sort((a, b) => collator.compare(a.label, b.label))\n}\n\nexport function filterTopicEntries(entries: readonly TopicEntry[], query: string): TopicEntry[] {\n const needle = query.trim().toLowerCase()\n\n if (!needle) {\n return [...entries]\n }\n\n return entries.filter((entry) => entry.label.toLowerCase().includes(needle))\n}\n\nexport function useTopicEntries(query: string): TopicEntry[] {\n const topics = useTopicStore((s) => s.topics)\n const apps = useExternalApps()\n const locale = useI18nStore((s) => s.locale)\n\n return useMemo(\n () => filterTopicEntries(mergeTopicEntries(topics, apps, locale), query),\n [topics, apps, locale, query],\n )\n}\n","import type { CardProps } from '@tedi-design-system/react/tedi'\nimport { Card, CardButton, Collapse, Text } from '@tedi-design-system/react/tedi'\nimport { EXTERNAL_LINK_REL, TOPICLIST_COMPONENT_ID, useComponentTranslate } from '@xgis/xgis-common'\n\nimport { openExternalAppAtCurrentView } from './externalApps'\nimport type { TopicEntry } from './topicEntries'\nimport styles from './TopicListView.module.css'\n\ninterface TopicRowProps {\n entry: TopicEntry\n activeTopicId: string | null\n isOpen: boolean\n onSelect: (topicId: string) => void\n onToggle: (open: boolean) => void\n}\n\ntype CardBackground = NonNullable<CardProps['background']>\n\nfunction rowBackground(isActive: boolean, isOpen: boolean): CardBackground {\n if (isActive) {\n return 'brand-primary'\n }\n\n if (isOpen) {\n return 'brand-quaternary'\n }\n\n return 'primary'\n}\n\nfunction rowClassName(isActive: boolean, isOpen: boolean): string {\n if (!isActive && isOpen) {\n return `${styles.row} ${styles.rowOpenNotActive}`\n }\n\n if (isActive) {\n return `${styles.row} ${styles.rowActive}`\n }\n\n if (isOpen) {\n return `${styles.row} ${styles.rowOpen}`\n }\n\n return styles.row\n}\n\nexport function TopicRow({ entry, activeTopicId, isOpen, onSelect, onToggle }: TopicRowProps) {\n const t = useComponentTranslate(TOPICLIST_COMPONENT_ID)\n\n const isActive = entry.kind === 'topic' && entry.topic.id === activeTopicId\n const description = entry.kind === 'topic' ? entry.topic.description : undefined\n\n const background = rowBackground(isActive, isOpen)\n const textColor = isActive ? 'white' : isOpen ? 'info' : 'primary'\n\n const card = (\n <Card borderless background={background}>\n <Card.Content padding={{ vertical: 0.75, horizontal: 1 }} background={background}>\n <Text color={textColor}>{entry.label}</Text>\n </Card.Content>\n </Card>\n )\n\n const title =\n entry.kind === 'externalApp' ? (\n <CardButton\n as=\"a\"\n href={entry.app.link}\n target={entry.app.target}\n rel={EXTERNAL_LINK_REL}\n onClick={(event) => {\n event.preventDefault()\n openExternalAppAtCurrentView(entry.app)\n }}\n >\n {card}\n </CardButton>\n ) : (\n <CardButton\n onClick={() => onSelect(entry.topic.id)}\n aria-current={isActive ? 'true' : undefined}\n >\n {card}\n </CardButton>\n )\n\n if (!description) {\n return (\n <div className={rowClassName(isActive, false)} data-topic-id={entry.id}>\n {title}\n </div>\n )\n }\n\n return (\n <div className={rowClassName(isActive, isOpen)} data-topic-id={entry.id}>\n <Collapse\n id={`topic-description-${entry.id}`}\n title={title}\n open={isOpen}\n onToggle={onToggle}\n openText={t('readMore')}\n closeText={t('readLess')}\n inverted={isActive}\n underline={false}\n size=\"small\"\n >\n <div className={styles.rowDescription}>\n <Text color={textColor} modifiers=\"small\">\n {description}\n </Text>\n </div>\n </Collapse>\n </div>\n )\n}\n","import { Button, Text, TextField } from '@tedi-design-system/react/tedi'\nimport {\n TOPICLIST_COMPONENT_ID,\n useComponentTranslate,\n useTopicStore,\n useUiStore,\n} from '@xgis/xgis-common'\nimport { useState } from 'react'\n\nimport { useTopicEntries } from './topicEntries'\nimport styles from './TopicListView.module.css'\nimport { TopicRow } from './TopicRow'\n\nexport function TopicPicker() {\n const [query, setQuery] = useState('')\n const [openEntryId, setOpenEntryId] = useState<string | null>(null)\n const activeTopicId = useTopicStore((s) => s.activeTopicId)\n const setActiveTopicId = useTopicStore((s) => s.setActiveTopicId)\n const setTopicPickerOpen = useUiStore((s) => s.setTopicPickerOpen)\n const setLayersSheetOpen = useUiStore((s) => s.setLayersSheetOpen)\n const t = useComponentTranslate(TOPICLIST_COMPONENT_ID)\n\n const entries = useTopicEntries(query)\n\n function handleSelect(topicId: string) {\n setActiveTopicId(topicId)\n setOpenEntryId(null)\n setLayersSheetOpen(false)\n }\n\n function handleToggle(entryId: string, open: boolean) {\n setOpenEntryId(open ? entryId : null)\n }\n\n return (\n <div className={styles.picker} data-testid=\"topic-picker\">\n <div className={styles.pickerSearch}>\n <TextField\n id=\"topic-search\"\n label={t('search.label')}\n hideLabel\n placeholder={t('search.placeholder')}\n icon=\"search\"\n value={query}\n onChange={setQuery}\n isClearable\n />\n </div>\n\n <div className={styles.pickerList}>\n {entries.length === 0 && (\n <Text color=\"secondary\" className={styles.pickerEmpty}>\n {t('search.empty')}\n </Text>\n )}\n\n {entries.map((entry) => (\n <TopicRow\n key={entry.id}\n entry={entry}\n activeTopicId={activeTopicId}\n isOpen={entry.id === openEntryId}\n onSelect={handleSelect}\n onToggle={(open) => handleToggle(entry.id, open)}\n />\n ))}\n </div>\n\n <div className={styles.pickerFooter}>\n <Button visualType=\"link\" iconLeft=\"arrow_back\" onClick={() => setTopicPickerOpen(false)}>\n {t('back')}\n </Button>\n </div>\n </div>\n )\n}\n","import type { ISelectOption, TSelectValue } from '@tedi-design-system/react/tedi'\nimport { Card, Col, Row, Select } from '@tedi-design-system/react/tedi'\nimport { TOPICLIST_COMPONENT_ID, useComponentTranslate, useTopicStore } from '@xgis/xgis-common'\nimport { useMemo } from 'react'\n\nimport { openExternalAppAtCurrentView } from './externalApps'\nimport type { TopicEntry } from './topicEntries'\nimport { useTopicEntries } from './topicEntries'\nimport styles from './TopicListView.module.css'\n\nexport function TopicSelect() {\n const activeTopicId = useTopicStore((s) => s.activeTopicId)\n const setActiveTopicId = useTopicStore((s) => s.setActiveTopicId)\n const t = useComponentTranslate(TOPICLIST_COMPONENT_ID)\n\n const entries = useTopicEntries('')\n\n const options = useMemo<ISelectOption<TopicEntry>[]>(\n () => entries.map((entry) => ({ value: entry.id, label: entry.label, customData: entry })),\n [entries],\n )\n\n const selectedOption = useMemo(\n () => options.find((option) => option.value === activeTopicId) ?? null,\n [options, activeTopicId],\n )\n\n function handleChange(selected: TSelectValue) {\n if (!selected) {\n return\n }\n\n const { customData } = selected as ISelectOption<TopicEntry>\n\n if (!customData) {\n return\n }\n\n if (customData.kind === 'externalApp') {\n openExternalAppAtCurrentView(customData.app)\n return\n }\n\n setActiveTopicId(customData.topic.id)\n }\n\n return (\n <Card borderless>\n <Card.Content padding={0.5}>\n <Row gutterY={2}>\n <Col>\n <Select\n value={selectedOption}\n options={options}\n id=\"topic-list\"\n label={t('label')}\n onChange={handleChange}\n classNames={{ menuPortal: styles.menuPortal }}\n />\n </Col>\n </Row>\n </Card.Content>\n </Card>\n )\n}\n","import { Card, CardButton, Col, Icon, Row, Text } from '@tedi-design-system/react/tedi'\nimport { TOPICLIST_COMPONENT_ID, useComponentTranslate, useUiStore } from '@xgis/xgis-common'\n\nimport styles from './TopicListView.module.css'\n\nexport function TopicTrigger() {\n const setTopicPickerOpen = useUiStore((s) => s.setTopicPickerOpen)\n const t = useComponentTranslate(TOPICLIST_COMPONENT_ID)\n\n return (\n <div className={styles.trigger} data-testid=\"topic-trigger\">\n <CardButton onClick={() => setTopicPickerOpen(true)}>\n <Card>\n <Card.Content padding={0.75}>\n <Row justifyContent=\"between\" alignItems=\"center\" wrap=\"nowrap\">\n <Col>\n <Text>{t('label')}</Text>\n </Col>\n\n <Col width=\"auto\">\n <Icon name=\"arrow_forward\" />\n </Col>\n </Row>\n </Card.Content>\n </Card>\n </CardButton>\n </div>\n )\n}\n","import type { IComponentUIProps } from '@xgis/xgis-common'\nimport { useConfigStore, useLayoutStore, useUiStore } from '@xgis/xgis-common'\n\nimport { TopicPicker } from './TopicPicker'\nimport { TopicSelect } from './TopicSelect'\nimport { TopicTrigger } from './TopicTrigger'\n\nexport function TopicListView(_props: IComponentUIProps) {\n const layout = useLayoutStore((s) => s.mode)\n const isPickerOpen = useUiStore((s) => s.topicPickerOpen)\n\n const hasTopicSource = useConfigStore(\n (s) => s.config?.serviceURL?.catalogService != null || s.config?.topicConfigs != null,\n )\n\n if (!hasTopicSource) {\n return null\n }\n\n if (layout !== 'mobile') {\n return <TopicSelect />\n }\n\n if (isPickerOpen) {\n return <TopicPicker />\n }\n\n return <TopicTrigger />\n}\n","import type { IXgisComponent } from '@xgis/xgis-common'\nimport { TOPICLIST_COMPONENT_ID } from '@xgis/xgis-common'\n\nimport { SIDE_PANEL_SLOTS } from '../SidePanel'\nimport enMessages from './lang/en.json'\nimport etMessages from './lang/et.json'\nimport { TopicListView } from './TopicListView'\n\nexport const TopicListComponent: IXgisComponent = {\n id: TOPICLIST_COMPONENT_ID,\n\n messages: {\n et: etMessages,\n en: enMessages,\n },\n\n contributions: [{ target: SIDE_PANEL_SLOTS.TOPICLIST, Component: TopicListView }],\n\n bookmark: {\n serialize: () => ({ render: true }),\n deserialize: () => undefined,\n },\n}\n","import type { IXgisComponent } from '@xgis/xgis-common'\n\nimport { BasemapComponent } from './components/Basemap'\nimport { LayerPanelComponent } from './components/LayerPanel'\nimport { MapSwitchComponent } from './components/MapSwitch'\nimport { NavigationComponent } from './components/Navigation'\nimport { NotificationComponent } from './components/Notification'\nimport { SearchComponent } from './components/Search'\nimport { SIDE_PANEL_SLOTS, SidePanelComponent } from './components/SidePanel'\nimport { TopicListComponent } from './components/TopicList'\n\nexport {\n BasemapComponent,\n LayerPanelComponent,\n MapSwitchComponent,\n NavigationComponent,\n NotificationComponent,\n SearchComponent,\n SIDE_PANEL_SLOTS,\n SidePanelComponent,\n TopicListComponent,\n}\n\n/**\n * Every component this package ships, so a consumer can register the full set in one call. Which of\n * them actually render is decided by the topic config, not by registration.\n */\nexport const XGIS_COMPONENTS: readonly IXgisComponent[] = [\n SidePanelComponent,\n LayerPanelComponent,\n MapSwitchComponent,\n SearchComponent,\n NavigationComponent,\n TopicListComponent,\n BasemapComponent,\n NotificationComponent,\n]\n"],"names":["etMessages","enMessages","styles","rotation","ButtonGroup"],"mappings":";;;;;;AAAA,8BAAe;;ACSR,SAAS,WAAA,CAAY,EAAE,GAAA,EAAK,GAAA,EAAI,EAA+B;AACpE,EAAA,MAAM,CAAC,SAAA,EAAW,YAAY,CAAA,GAAI,QAAA,EAAiB;AAEnD,EAAA,MAAM,QAAA,GAAW,GAAA,IAAO,GAAA,KAAQ,SAAA,GAAY,GAAA,GAAM,qBAAA;AAElD,EAAA,uBACE,GAAA;AAAA,IAAC,KAAA;AAAA,IAAA;AAAA,MACC,GAAA;AAAA,MACA,GAAA,EAAK,QAAA;AAAA,MACL,SAAS,MAAM;AACb,QAAA,IAAI,aAAa,qBAAA,EAAuB;AACtC,UAAA,YAAA,CAAa,GAAG,CAAA;AAAA,QAClB;AAAA,MACF;AAAA;AAAA,GACF;AAEJ;;ACbA,MAAM,eAAA,uBAAkD,GAAA,CAAI;AAAA,EAC1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AAA;AAAA,EACA;AACF;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xgis/xgis-components",
3
- "version": "0.3.55",
3
+ "version": "0.3.58",
4
4
  "description": "UI components that can be registered onto an XGIS 2D or 3D map.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -23,7 +23,7 @@
23
23
  "peerDependencies": {
24
24
  "@tedi-design-system/react": "^20.0.0-rc.1",
25
25
  "react": "^18.3.1 || ^19.0.0",
26
- "@xgis/xgis-common": "^0.3.55"
26
+ "@xgis/xgis-common": "^0.3.58"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@module-federation/vite": "^1.16.8",
@@ -45,9 +45,9 @@
45
45
  "vite": "^6.4.4",
46
46
  "vitest": "^4.1.12",
47
47
  "@xgis/eslint-config": "0.0.0",
48
- "@xgis/vitest-config": "0.0.0",
49
48
  "@xgis/tsconfig": "0.0.0",
50
- "@xgis/xgis-common": "0.3.55"
49
+ "@xgis/xgis-common": "0.3.58",
50
+ "@xgis/vitest-config": "0.0.0"
51
51
  },
52
52
  "scripts": {
53
53
  "dev": "vite --port 4203",