From 4a4489f8501d4cd9b83cfd33aa80d4f34f051143 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 7 Mar 2024 12:45:09 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20open-pio?= =?UTF-8?q?neer/trails-starter@d5f457aee061e90d2d70e55c3b00b460ad1b9430=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- starter/assets/{8870e0a3105e.js => 64ab6d44382d.js} | 2 +- starter/docs/assets/navigation.js | 2 +- starter/docs/assets/search.js | 2 +- starter/docs/functions/SimpleUiComponent.html | 2 +- starter/docs/index.html | 3 ++- starter/docs/interfaces/Greeter.html | 4 ++-- starter/docs/interfaces/SimpleUiComponentProps.html | 2 ++ starter/samples/map-sample/index.html | 2 +- 8 files changed, 11 insertions(+), 8 deletions(-) rename starter/assets/{8870e0a3105e.js => 64ab6d44382d.js} (99%) create mode 100644 starter/docs/interfaces/SimpleUiComponentProps.html diff --git a/starter/assets/8870e0a3105e.js b/starter/assets/64ab6d44382d.js similarity index 99% rename from starter/assets/8870e0a3105e.js rename to starter/assets/64ab6d44382d.js index b5cd6a076..e8f1db165 100644 --- a/starter/assets/8870e0a3105e.js +++ b/starter/assets/64ab6d44382d.js @@ -15,7 +15,7 @@ Use ViewOptions instead of a View instance.`)};n.projection!=null&&a("projection Try to configure 'initialView' explicity.`)}(t.zoom==null||t.resolution==null)&&(t.zoom=0)}initializeProjection(t){if(t==null)return yt("EPSG:3857");const e=yt(t);if(!e)throw new Error(`Failed to retrieve projection for code '${t}'.`);return e}}const Jl=oi("map:MapRegistry");var Br,jr,Wi,Xi,$r,Dn,Xo,rm;class ZS{constructor({references:t}){B(this,Xo);B(this,Br,void 0);B(this,jr,new Map);B(this,Wi,new Map);B(this,Xi,new Map);B(this,$r,new WeakMap);B(this,Dn,!1);Y(this,Br,t.httpService);const e=t.providers;for(const n of e)S(this,jr).set(n.mapId,n)}destroy(){S(this,Dn)||(Jl.info("Destroy map registry and all maps"),Y(this,Dn,!0),S(this,Wi).forEach(t=>{t.kind==="model"&&t.model.destroy()}),S(this,Wi).clear(),S(this,Xi).clear())}async getMapModel(t){if(S(this,Dn))throw new Error("MapRegistry has already been destroyed.");const e=S(this,Xi).get(t);if(e)return Ql(await e);const n=S(this,Wi).get(t);if(n)return Ql(n);const s=S(this,jr).get(t);if(!s){Jl.debug(`Failed to find a config provider for map id '${t}'.`);return}const r=Ft(this,Xo,rm).call(this,t,s).catch(a=>{const l={kind:"error",error:new Error(`Failed to construct map '${t}'`,{cause:a})};return S(this,Xi).delete(t),S(this,Wi).set(t,l),l});return S(this,Xi).set(t,r),Ql(await r)}async expectMapModel(t){const e=await this.getMapModel(t);if(!e)throw new Error(`No configuration available for map with id '${t}'.`);return e}getMapModelByRawInstance(t){return S(this,$r).get(t)}}Br=new WeakMap,jr=new WeakMap,Wi=new WeakMap,Xi=new WeakMap,$r=new WeakMap,Dn=new WeakMap,Xo=new WeakSet,rm=async function(t,e){Jl.info(`Creating map with id '${t}'`);const n=await e.getMapConfig(),s=await YS(t,n,S(this,Br));if(S(this,Dn))throw s.destroy(),new Error("MapRegistry has been destroyed.");const r={kind:"model",model:s};return S(this,Wi).set(t,r),S(this,Xi).delete(t),S(this,$r).set(s.olMap,s),r};function Ql(i){if(i.kind==="error")throw i.error;return i.model}const th=oi("notifier:NotificationService");var qe,Rs,Ur,Wr,$h,Qh,JS;class KS{constructor(){B(this,Wr);B(this,Qh);B(this,qe,void 0);B(this,Rs,void 0);B(this,Ur,void 0)}destroy(){clearTimeout(S(this,Ur)),Y(this,Ur,void 0)}notify(t){Ft(this,Wr,$h).call(this,"showNotification",{title:t.title??void 0,message:t.message??void 0,level:t.level??"info",displayDuration:t.displayDuration})}closeAll(){Ft(this,Wr,$h).call(this,"closeAll")}registerHandler(t){if(S(this,qe))return th.warn(`A notification handler has already been registered; this new handler will be ignored. The component has likely been used twice in your application.`),{destroy(){}};Y(this,qe,t);const e=S(this,Rs);if(Y(this,Rs,void 0),e)for(const[s,...r]of e)t[s](...r);let n=!1;return{destroy:()=>{n||(n=!0,S(this,qe)===t&&Y(this,qe,void 0))}}}}qe=new WeakMap,Rs=new WeakMap,Ur=new WeakMap,Wr=new WeakSet,$h=function(t,...e){if(S(this,qe))S(this,qe)[t](...e);else{const n=S(this,Rs)??Y(this,Rs,[]);if(n.length>=1024){th.error(`Internal notification buffer overflow: this event will be dropped to prevent a memory leak. Make sure that the UI is configured to display notifications (use ).`,{method:t,args:e});return}n.push([t,...e])}},Qh=new WeakSet,JS=function(){S(this,qe)||th.warn(`No notification handler has been registered: notifications will not be visible. -Make sure that your app contains the component.`)};var Xr,Ho,am;class QS{constructor(t){B(this,Ho);B(this,Xr,void 0);Y(this,Xr,t.references.interceptors.map((e,n)=>[t.referencesMeta.interceptors[n].serviceId,e]))}async fetch(t,e){const n=e?.signal??void 0,s=Object.assign({},e?.context),r=eI(e);eh(n);let a=tI(t);{const l={target:a,signal:n??new AbortController().signal,context:s,options:r};eh(n),await Ft(this,Ho,am).call(this,l),a=l.target}const o=new Request(a,{...r,signal:n});return await window.fetch(o)}}Xr=new WeakMap,Ho=new WeakSet,am=async function(t){const{signal:e}=t;for(const[n,s]of S(this,Xr))if(eh(e),s.beforeRequest)try{await s.beforeRequest(t)}catch(r){throw yp(r),new Error(`Interceptor '${n}' failed with an error`,{cause:r})}};function tI(i){return typeof i=="string"?new URL(i,window.location.href):i}function eI(i){const t=i?.method??"GET",e=new Headers(i?.headers??{}),n={...i,method:t,headers:e};for(const s in n)iI[s]&&delete n[s];return n}const iI={context:1,signal:1};function eh(i){i?.aborted&&xp()}class nI{constructor(){this.dataProjection=void 0,this.defaultFeatureProjection=void 0,this.featureClass=Ke,this.supportedMediaTypes=null}getReadOptions(t,e){if(e){let n=e.dataProjection?yt(e.dataProjection):this.readProjection(t);e.extent&&n&&n.getUnits()==="tile-pixels"&&(n=yt(n),n.setWorldExtent(e.extent)),e={dataProjection:n,featureProjection:e.featureProjection}}return this.adaptOptions(e)}adaptOptions(t){return Object.assign({dataProjection:this.dataProjection,featureProjection:this.defaultFeatureProjection,featureClass:this.featureClass},t)}getType(){return J()}readFeature(t,e){return J()}readFeatures(t,e){return J()}readGeometry(t,e){return J()}readProjection(t){return J()}writeFeature(t,e){return J()}writeFeatures(t,e){return J()}writeGeometry(t,e){return J()}}function pu(i,t,e){const n=e?yt(e.featureProjection):null,s=e?yt(e.dataProjection):null;let r=i;if(n&&s&&!En(n,s)){t&&(r=i.clone());const a=t?n:s,o=t?s:n;a.getUnits()==="tile-pixels"?r.transform(a,o):r.applyTransform(yr(a,o))}if(t&&e&&e.decimals!==void 0){const a=Math.pow(10,e.decimals),o=function(l){for(let h=0,c=l.length;hom({...i,geometry:r})).flat();const n=e.type==="MultiPolygon"?"Polygon":e.type;if(n==="GeometryCollection"||n==="Circle")throw new Error("Unsupported geometry type: "+n);const s=e.layout.length;return pu(new pi(n,n==="Polygon"?rI(e.flatCoordinates,e.ends,s):e.flatCoordinates,e.ends?.flat(),s,i.properties||{},i.id).enableSimplifyTransformed(),!1,t)}function _u(i,t){if(!i)return null;if(Array.isArray(i)){const n=i.map(s=>_u(s,t));return new p0(n)}const e=sI[i.type];return pu(new e(i.flatCoordinates,i.layout,i.ends),!1,t)}class aI extends nI{constructor(){super()}getType(){return"json"}readFeature(t,e){return this.readFeatureFromObject(Ua(t),this.getReadOptions(t,e))}readFeatures(t,e){return this.readFeaturesFromObject(Ua(t),this.getReadOptions(t,e))}readFeatureFromObject(t,e){return J()}readFeaturesFromObject(t,e){return J()}readGeometry(t,e){return this.readGeometryFromObject(Ua(t),this.getReadOptions(t,e))}readGeometryFromObject(t,e){return J()}readProjection(t){return this.readProjectionFromObject(Ua(t))}readProjectionFromObject(t){return J()}writeFeature(t,e){return JSON.stringify(this.writeFeatureObject(t,e))}writeFeatureObject(t,e){return J()}writeFeatures(t,e){return JSON.stringify(this.writeFeaturesObject(t,e))}writeFeaturesObject(t,e){return J()}writeGeometry(t,e){return JSON.stringify(this.writeGeometryObject(t,e))}writeGeometryObject(t,e){return J()}}function Ua(i){if(typeof i=="string"){const t=JSON.parse(i);return t||null}return i!==null?i:null}const oI=aI;class lI extends oI{constructor(t){t=t||{},super(),this.dataProjection=yt(t.dataProjection?t.dataProjection:"EPSG:4326"),t.featureProjection&&(this.defaultFeatureProjection=yt(t.featureProjection)),t.featureClass&&(this.featureClass=t.featureClass),this.geometryName_=t.geometryName,this.extractGeometryName_=t.extractGeometryName,this.supportedMediaTypes=["application/geo+json","application/vnd.geo+json"]}readFeatureFromObject(t,e){let n=null;t.type==="Feature"?n=t:n={type:"Feature",geometry:t,properties:null};const s=vu(n.geometry);if(this.featureClass===pi)return om({geometry:s,id:n.id,properties:n.properties},e);const r=new Ke;return this.geometryName_?r.setGeometryName(this.geometryName_):this.extractGeometryName_&&"geometry_name"in n!==void 0&&r.setGeometryName(n.geometry_name),r.setGeometry(_u(s,e)),"id"in n&&r.setId(n.id),n.properties&&r.setProperties(n.properties,!0),r}readFeaturesFromObject(t,e){const n=t;let s=null;if(n.type==="FeatureCollection"){const r=t;s=[];const a=r.features;for(let o=0,l=a.length;on.rel===MI);if(e.length===1)return e[0]?.href}async function cm(i,t,e,n){let s=[];const r={headers:{Accept:"application/geo+json"},signal:n},a=await e.fetch(i,r);if(a.status!==200)throw new Error(`Failed to query features from service (status code ${a.status})`);const o=await a.json();t&&(s=t.readFeatures(o));const l=hm(o.links);return{features:s,numberMatched:o.numberMatched,nextURL:l}}async function II(i,t){const e={supportsOffsetStrategy:!1},n=new URL(i);n.searchParams.set("limit","1"),n.searchParams.set("f","json");const s=await t.fetch(n.toString(),{headers:{Accept:"application/geo+json"}});if(s.status!==200)throw new Error(`Failed to probe collection information (status code ${s.status})`);const r=await s.json(),a=hm(r.links);if(!a)return e;const l=new URL(a).searchParams.has("offset");return e.supportsOffsetStrategy=l,e}async function RI(i){const{fullURL:t,featureFormat:e,signal:n,addFeatures:s,queryFeatures:r}=i,a=i.limit,o=i.maxConcurrentRequests;let l=0,h=t;const c=[];let u;for(;h;){let d;u==null?d=o:d=Math.ceil((u-l)/a),d=Math.max(1,Math.min(d,o));const f=[];for(let m=0;m{h??=a(n,e);let p;try{p=await h}catch(y){ls.error("Failed to retrieve collection information",y),m?.(),h=void 0;return}l?.abort("Extent changed"),l=new AbortController;const _=wI(n,u,i.crs),v=p?.supportsOffsetStrategy?"offset":"next";try{const y=await LI(v,{fullURL:_.toString(),httpService:e,featureFormat:s.getFormat(),queryFeatures:r,addFeatures:o,limit:i.limit??TI,maxConcurrentRequests:i.maxConcurrentRequests??PI,signal:l.signal,collectionInfos:p});g?.(y),ls.debug("Finished loading features for extent:",u)}catch(y){io(y)?(ls.debug("Query-Feature-Request aborted",y),s.removeLoadedExtent(u),m?.()):ls.error("Failed to load features",y)}};return s.setLoader(c),s}function LI(i,t){switch(i){case"next":return FI(t);case"offset":return RI(t)}}async function FI(i){const t=i.limit;let e=new URL(i.fullURL);e.searchParams.set("limit",t.toString());let n=[];do{const s=await um([e.toString()],i.featureFormat,i.httpService,i.signal,i.addFeatures,i.queryFeatures);if(n=n.concat(s.features),!s.nextURL)break;e=new URL(s.nextURL)}while(1);return n}async function um(i,t,e,n,s,r=cm){const a={nextURL:void 0,numberMatched:void 0,features:[]},o=i.map(async(l,h)=>{const c=h===i.length-1,u=await r(l,t,e,n);s(u.features),ls.debug(`NextURL for index = ${h} (isLast = ${c}): ${u.nextURL||"No Next URL"}`),a.features.push(...u.features),c&&(a.numberMatched=u.numberMatched,a.nextURL=u.nextURL)});return await Promise.all(o),a}var Ze,Hr,Yr,qr,Yo,dm,qo,fm;class DI{constructor(t,e){B(this,Yo);B(this,qo);Au(this,"label");B(this,Ze,void 0);B(this,Hr,void 0);B(this,Yr,void 0);B(this,qr,void 0);this.label=t.label,Y(this,Ze,t),Y(this,Hr,e);const{baseUrl:n,params:s}=NI(t.baseUrl);Y(this,Yr,n),Y(this,qr,s)}async search(t,{mapProjection:e,maxResults:n,signal:s}){const r=Ft(this,qo,fm).call(this,t,n),a=new lm({dataProjection:"EPSG:4326",featureProjection:e});return(await kI(S(this,Hr),r,s)).features.map(l=>Ft(this,Yo,dm).call(this,l,a))}}Ze=new WeakMap,Hr=new WeakMap,Yr=new WeakMap,qr=new WeakMap,Yo=new WeakSet,dm=function(t,e){const n=S(this,Ze).renderLabel?.(t),s=t.properties[S(this,Ze).labelProperty],r=t.properties[S(this,Ze).searchProperty],a=(()=>n||(s!==void 0?String(s):r!==void 0?String(r):""))();return{id:t.id??Lg(),label:a,geometry:e.readGeometry(t.geometry),properties:t.properties}},qo=new WeakSet,fm=function(t,e){const n=new URL(`${S(this,Yr)}/collections/${S(this,Ze).collectionId}/items`);for(const[s,r]of S(this,qr))n.searchParams.append(s,r);return n.searchParams.set(S(this,Ze).searchProperty,`*${t}*`),n.searchParams.set("limit",String(e)),n.searchParams.set("f","json"),S(this,Ze).rewriteUrl?.(new URL(n))??n};async function kI(i,t,e){try{const n=await i.fetch(t,{signal:e,headers:{Accept:"application/json"}});if(!n.ok)throw new Error("Request failed with status "+n.status);return await n.json()}catch(n){throw io(n)?n:new Error("Failed to search on OGC API Features service",{cause:n})}}function NI(i){const t=new URL(i),e=new URLSearchParams(t.searchParams);return t.search="",{baseUrl:t.href.replace(/\/+$/,""),params:e}}var Zr;class GI{constructor({references:t}){B(this,Zr,void 0);Y(this,Zr,t.httpService)}createVectorSource(t){return OI(t,S(this,Zr))}}Zr=new WeakMap;var Kr;class VI{constructor({references:t}){B(this,Kr,void 0);Y(this,Kr,t.httpService)}createSearchSource(t){return new DI(t,S(this,Kr))}}Kr=new WeakMap;const zI={"ol-app":{name:"ol-app",services:{MainMapProvider:{name:"MainMapProvider",clazz:RS,provides:[{name:"map.MapConfigProvider",qualifier:void 0}],references:{}}},ui:{references:[]},properties:{}},"@open-pioneer/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/coordinate-viewer":{name:"@open-pioneer/coordinate-viewer",services:{},ui:{references:[]},properties:{}},"@open-pioneer/map":{name:"@open-pioneer/map",services:{MapRegistryImpl:{name:"MapRegistryImpl",clazz:ZS,provides:[{name:"map.MapRegistry",qualifier:"map.MapRegistry"}],references:{providers:{name:"map.MapConfigProvider",qualifier:void 0,all:!0},httpService:{name:"http.HttpService",qualifier:void 0,all:!1}}}},ui:{references:[{name:"map.MapRegistry",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/overview-map":{name:"@open-pioneer/overview-map",services:{},ui:{references:[]},properties:{}},"@open-pioneer/notifier":{name:"@open-pioneer/notifier",services:{NotificationServiceImpl:{name:"NotificationServiceImpl",clazz:KS,provides:[{name:"notifier.NotificationService",qualifier:"notifier.NotificationService"}],references:{}}},ui:{references:[{name:"notifier.NotificationService",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/scale-bar":{name:"@open-pioneer/scale-bar",services:{},ui:{references:[]},properties:{}},"@open-pioneer/theme":{name:"@open-pioneer/theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/scale-viewer":{name:"@open-pioneer/scale-viewer",services:{},ui:{references:[]},properties:{}},"@open-pioneer/basemap-switcher":{name:"@open-pioneer/basemap-switcher",services:{},ui:{references:[]},properties:{}},"@open-pioneer/geolocation":{name:"@open-pioneer/geolocation",services:{},ui:{references:[{name:"notifier.NotificationService",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/map-navigation":{name:"@open-pioneer/map-navigation",services:{},ui:{references:[]},properties:{}},"@open-pioneer/measurement":{name:"@open-pioneer/measurement",services:{},ui:{references:[]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}},"@open-pioneer/react-utils":{name:"@open-pioneer/react-utils",services:{},ui:{references:[]},properties:{}},"@open-pioneer/http":{name:"@open-pioneer/http",services:{HttpServiceImpl:{name:"HttpServiceImpl",clazz:QS,provides:[{name:"http.HttpService",qualifier:"http.HttpService"}],references:{interceptors:{name:"http.Interceptor",qualifier:void 0,all:!0}}}},ui:{references:[]},properties:{}},"@open-pioneer/ogc-features":{name:"@open-pioneer/ogc-features",services:{VectorSourceFactory:{name:"VectorSourceFactory",clazz:GI,provides:[{name:"ogc-features.VectorSourceFactory",qualifier:"ogc-features.VectorSourceFactory"}],references:{httpService:{name:"http.HttpService",qualifier:void 0,all:!1}}},SearchSourceFactory:{name:"SearchSourceFactory",clazz:VI,provides:[{name:"ogc-features.SearchSourceFactory",qualifier:"ogc-features.SearchSourceFactory"}],references:{httpService:{name:"http.HttpService",qualifier:void 0,all:!1}}}},ui:{references:[]},properties:{}}},BI=`.sidebar{height:100%;position:absolute;top:0;background-color:#ffffffb3;transition:width .3s ease-out 0s}.right-bottom{position:absolute;right:0;bottom:0;background:white}.zoom-controls{position:absolute;z-index:1000;bottom:2rem;right:1rem}.ol-control.ol-zoom{left:unset;right:.5em}:root,:host{--ol-background-color: white;--ol-accent-background-color: #F5F5F5;--ol-subtle-background-color: rgba(128, 128, 128, .25);--ol-partial-background-color: rgba(255, 255, 255, .75);--ol-foreground-color: #333333;--ol-subtle-foreground-color: #666666;--ol-brand-color: #00AAFF}.ol-box{box-sizing:border-box;border-radius:2px;border:1.5px solid var(--ol-background-color);background-color:var(--ol-partial-background-color)}.ol-mouse-position{top:8px;right:8px;position:absolute}.ol-scale-line{background:var(--ol-partial-background-color);border-radius:4px;bottom:8px;left:8px;padding:2px;position:absolute}.ol-scale-line-inner{border:1px solid var(--ol-subtle-foreground-color);border-top:none;color:var(--ol-foreground-color);font-size:10px;text-align:center;margin:1px;will-change:contents,width;transition:all .25s}.ol-scale-bar{position:absolute;bottom:8px;left:8px}.ol-scale-bar-inner{display:flex}.ol-scale-step-marker{width:1px;height:15px;background-color:var(--ol-foreground-color);float:right;z-index:10}.ol-scale-step-text{position:absolute;bottom:-5px;font-size:10px;z-index:11;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-text{position:absolute;font-size:12px;text-align:center;bottom:25px;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-singlebar{position:relative;height:10px;z-index:9;box-sizing:border-box;border:1px solid var(--ol-foreground-color)}.ol-scale-singlebar-even{background-color:var(--ol-subtle-foreground-color)}.ol-scale-singlebar-odd{background-color:var(--ol-background-color)}.ol-unsupported{display:none}.ol-viewport,.ol-unselectable{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.ol-viewport canvas{all:unset;overflow:hidden}.ol-viewport{touch-action:pan-x pan-y}.ol-selectable{-webkit-touch-callout:default;-webkit-user-select:text;-moz-user-select:text;user-select:text}.ol-grabbing{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.ol-grab{cursor:move;cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.ol-control{position:absolute;background-color:var(--ol-subtle-background-color);border-radius:4px}.ol-zoom{top:.5em;left:.5em}.ol-rotate{top:.5em;right:.5em;transition:opacity .25s linear,visibility 0s linear}.ol-rotate.ol-hidden{opacity:0;visibility:hidden;transition:opacity .25s linear,visibility 0s linear .25s}.ol-zoom-extent{top:4.643em;left:.5em}.ol-full-screen{right:.5em;top:.5em}.ol-control button{display:block;margin:1px;padding:0;color:var(--ol-subtle-foreground-color);font-weight:700;text-decoration:none;font-size:inherit;text-align:center;height:1.375em;width:1.375em;line-height:.4em;background-color:var(--ol-background-color);border:none;border-radius:2px}.ol-control button::-moz-focus-inner{border:none;padding:0}.ol-zoom-extent button{line-height:1.4em}.ol-compass{display:block;font-weight:400;will-change:transform}.ol-touch .ol-control button{font-size:1.5em}.ol-touch .ol-zoom-extent{top:5.5em}.ol-control button:hover,.ol-control button:focus{text-decoration:none;outline:1px solid var(--ol-subtle-foreground-color);color:var(--ol-foreground-color)}.ol-zoom .ol-zoom-in{border-radius:2px 2px 0 0}.ol-zoom .ol-zoom-out{border-radius:0 0 2px 2px}.ol-attribution{text-align:right;bottom:.5em;right:.5em;max-width:calc(100% - 1.3em);display:flex;flex-flow:row-reverse;align-items:center}.ol-attribution a{color:var(--ol-subtle-foreground-color);text-decoration:none}.ol-attribution ul{margin:0;padding:1px .5em;color:var(--ol-foreground-color);text-shadow:0 0 2px var(--ol-background-color);font-size:12px}.ol-attribution li{display:inline;list-style:none}.ol-attribution li:not(:last-child):after{content:" "}.ol-attribution img{max-height:2em;max-width:inherit;vertical-align:middle}.ol-attribution button{flex-shrink:0}.ol-attribution.ol-collapsed ul{display:none}.ol-attribution:not(.ol-collapsed){background:var(--ol-partial-background-color)}.ol-attribution.ol-uncollapsible{bottom:0;right:0;border-radius:4px 0 0}.ol-attribution.ol-uncollapsible img{margin-top:-.2em;max-height:1.6em}.ol-attribution.ol-uncollapsible button{display:none}.ol-zoomslider{top:4.5em;left:.5em;height:200px}.ol-zoomslider button{position:relative;height:10px}.ol-touch .ol-zoomslider{top:5.5em}.ol-overviewmap{left:.5em;bottom:.5em}.ol-overviewmap.ol-uncollapsible{bottom:0;left:0;border-radius:0 4px 0 0}.ol-overviewmap .ol-overviewmap-map,.ol-overviewmap button{display:block}.ol-overviewmap .ol-overviewmap-map{border:1px solid var(--ol-subtle-foreground-color);height:150px;width:150px}.ol-overviewmap:not(.ol-collapsed) button{bottom:0;left:0;position:absolute}.ol-overviewmap.ol-collapsed .ol-overviewmap-map,.ol-overviewmap.ol-uncollapsible button{display:none}.ol-overviewmap:not(.ol-collapsed){background:var(--ol-subtle-background-color)}.ol-overviewmap-box{border:1.5px dotted var(--ol-subtle-foreground-color)}.ol-overviewmap .ol-overviewmap-box:hover{cursor:move}.overview-map .ol-overviewmap{position:relative;height:100%;width:100%}.overview-map .ol-overviewmap:not(.ol-collapsed){border:1px solid black}.overview-map .ol-overviewmap .ol-overviewmap-map{border:none;width:100%;height:100%}.overview-map .ol-overviewmap .ol-overviewmap-box{border:2px solid red}.scale-bar .ol-scale-bar{margin-bottom:8px;margin-right:8px}.scale-bar .ol-scale-bar,.scale-bar .ol-scale-line{position:relative;bottom:0;left:0;background:none}.scale-bar .ol-scale-bar .ol-scale-bar-inner,.scale-bar .ol-scale-bar .ol-scale-line-inner,.scale-bar .ol-scale-line .ol-scale-bar-inner,.scale-bar .ol-scale-line .ol-scale-line-inner{color:var(--chakra-white);border-color:var(--chakra-white)}.measurement-tooltip{position:relative;background:rgba(255,255,255,.8);border-radius:4px;color:#000;padding:4px 8px;opacity:1;white-space:nowrap;font-size:12px;cursor:default;-webkit-user-select:none;user-select:none;font-weight:700}.measurement-active-tooltip{background:rgba(0,0,0,.9);border-radius:4px;border-color:#000000e6;opacity:.9;color:#fff}.measurement-finished-tooltip{background-color:#4cb3ffe6;color:#000;border:1px solid white}.measurement-active-tooltip:before,.measurement-finished-tooltip:before{border-top:6px solid rgba(0,0,0,.9);border-right:6px solid transparent;border-left:6px solid transparent;content:"";position:absolute;bottom:-6px;margin-left:-7px;left:50%}.measurement-finished-tooltip:before{border-top-color:#4cb3ff} +Make sure that your app contains the component.`)};var Xr,Ho,am;class QS{constructor(t){B(this,Ho);B(this,Xr,void 0);Y(this,Xr,t.references.interceptors.map((e,n)=>[t.referencesMeta.interceptors[n].serviceId,e]))}async fetch(t,e){const n=e?.signal??void 0,s=Object.assign({},e?.context),r=eI(e);eh(n);let a=tI(t);{const l={target:a,signal:n??new AbortController().signal,context:s,options:r};eh(n),await Ft(this,Ho,am).call(this,l),a=l.target}const o=new Request(a,{...r,signal:n});return await window.fetch(o)}}Xr=new WeakMap,Ho=new WeakSet,am=async function(t){const{signal:e}=t;for(const[n,s]of S(this,Xr))if(eh(e),s.beforeRequest)try{await s.beforeRequest(t)}catch(r){throw yp(r),new Error(`Interceptor '${n}' failed with an error`,{cause:r})}};function tI(i){return typeof i=="string"?new URL(i,window.location.href):i}function eI(i){const t=i?.method??"GET",e=new Headers(i?.headers??{}),n={...i,method:t,headers:e};for(const s in n)iI[s]&&delete n[s];return n}const iI={context:1,signal:1};function eh(i){i?.aborted&&xp()}class nI{constructor(){this.dataProjection=void 0,this.defaultFeatureProjection=void 0,this.featureClass=Ke,this.supportedMediaTypes=null}getReadOptions(t,e){if(e){let n=e.dataProjection?yt(e.dataProjection):this.readProjection(t);e.extent&&n&&n.getUnits()==="tile-pixels"&&(n=yt(n),n.setWorldExtent(e.extent)),e={dataProjection:n,featureProjection:e.featureProjection}}return this.adaptOptions(e)}adaptOptions(t){return Object.assign({dataProjection:this.dataProjection,featureProjection:this.defaultFeatureProjection,featureClass:this.featureClass},t)}getType(){return J()}readFeature(t,e){return J()}readFeatures(t,e){return J()}readGeometry(t,e){return J()}readProjection(t){return J()}writeFeature(t,e){return J()}writeFeatures(t,e){return J()}writeGeometry(t,e){return J()}}function pu(i,t,e){const n=e?yt(e.featureProjection):null,s=e?yt(e.dataProjection):null;let r=i;if(n&&s&&!En(n,s)){t&&(r=i.clone());const a=t?n:s,o=t?s:n;a.getUnits()==="tile-pixels"?r.transform(a,o):r.applyTransform(yr(a,o))}if(t&&e&&e.decimals!==void 0){const a=Math.pow(10,e.decimals),o=function(l){for(let h=0,c=l.length;hom({...i,geometry:r})).flat();const n=e.type==="MultiPolygon"?"Polygon":e.type;if(n==="GeometryCollection"||n==="Circle")throw new Error("Unsupported geometry type: "+n);const s=e.layout.length;return pu(new pi(n,n==="Polygon"?rI(e.flatCoordinates,e.ends,s):e.flatCoordinates,e.ends?.flat(),s,i.properties||{},i.id).enableSimplifyTransformed(),!1,t)}function _u(i,t){if(!i)return null;if(Array.isArray(i)){const n=i.map(s=>_u(s,t));return new p0(n)}const e=sI[i.type];return pu(new e(i.flatCoordinates,i.layout,i.ends),!1,t)}class aI extends nI{constructor(){super()}getType(){return"json"}readFeature(t,e){return this.readFeatureFromObject(Ua(t),this.getReadOptions(t,e))}readFeatures(t,e){return this.readFeaturesFromObject(Ua(t),this.getReadOptions(t,e))}readFeatureFromObject(t,e){return J()}readFeaturesFromObject(t,e){return J()}readGeometry(t,e){return this.readGeometryFromObject(Ua(t),this.getReadOptions(t,e))}readGeometryFromObject(t,e){return J()}readProjection(t){return this.readProjectionFromObject(Ua(t))}readProjectionFromObject(t){return J()}writeFeature(t,e){return JSON.stringify(this.writeFeatureObject(t,e))}writeFeatureObject(t,e){return J()}writeFeatures(t,e){return JSON.stringify(this.writeFeaturesObject(t,e))}writeFeaturesObject(t,e){return J()}writeGeometry(t,e){return JSON.stringify(this.writeGeometryObject(t,e))}writeGeometryObject(t,e){return J()}}function Ua(i){if(typeof i=="string"){const t=JSON.parse(i);return t||null}return i!==null?i:null}const oI=aI;class lI extends oI{constructor(t){t=t||{},super(),this.dataProjection=yt(t.dataProjection?t.dataProjection:"EPSG:4326"),t.featureProjection&&(this.defaultFeatureProjection=yt(t.featureProjection)),t.featureClass&&(this.featureClass=t.featureClass),this.geometryName_=t.geometryName,this.extractGeometryName_=t.extractGeometryName,this.supportedMediaTypes=["application/geo+json","application/vnd.geo+json"]}readFeatureFromObject(t,e){let n=null;t.type==="Feature"?n=t:n={type:"Feature",geometry:t,properties:null};const s=vu(n.geometry);if(this.featureClass===pi)return om({geometry:s,id:n.id,properties:n.properties},e);const r=new Ke;return this.geometryName_?r.setGeometryName(this.geometryName_):this.extractGeometryName_&&"geometry_name"in n!==void 0&&r.setGeometryName(n.geometry_name),r.setGeometry(_u(s,e)),"id"in n&&r.setId(n.id),n.properties&&r.setProperties(n.properties,!0),r}readFeaturesFromObject(t,e){const n=t;let s=null;if(n.type==="FeatureCollection"){const r=t;s=[];const a=r.features;for(let o=0,l=a.length;on.rel===MI);if(e.length===1)return e[0]?.href}async function cm(i,t,e,n){let s=[];const r={headers:{Accept:"application/geo+json"},signal:n},a=await e.fetch(i,r);if(a.status!==200)throw new Error(`Failed to query features from service (status code ${a.status})`);const o=await a.json();t&&(s=t.readFeatures(o));const l=hm(o.links);return{features:s,numberMatched:o.numberMatched,nextURL:l}}async function II(i,t){const e={supportsOffsetStrategy:!1},n=new URL(i);n.searchParams.set("limit","1"),n.searchParams.set("f","json");const s=await t.fetch(n.toString(),{headers:{Accept:"application/geo+json"}});if(s.status!==200)throw new Error(`Failed to probe collection information (status code ${s.status})`);const r=await s.json(),a=hm(r.links);if(!a)return e;const l=new URL(a).searchParams.has("offset");return e.supportsOffsetStrategy=l,e}async function RI(i){const{fullURL:t,featureFormat:e,signal:n,addFeatures:s,queryFeatures:r}=i,a=i.limit,o=i.maxConcurrentRequests;let l=0,h=t;const c=[];let u;for(;h;){let d;u==null?d=o:d=Math.ceil((u-l)/a),d=Math.max(1,Math.min(d,o));const f=[];for(let m=0;m{h??=a(n,e);let p;try{p=await h}catch(y){ls.error("Failed to retrieve collection information",y),m?.(),h=void 0;return}l?.abort("Extent changed"),l=new AbortController;const _=wI(n,u,i.crs),v=p?.supportsOffsetStrategy?"offset":"next";try{const y=await LI(v,{fullURL:_.toString(),httpService:e,featureFormat:s.getFormat(),queryFeatures:r,addFeatures:o,limit:i.limit??TI,maxConcurrentRequests:i.maxConcurrentRequests??PI,signal:l.signal,collectionInfos:p});g?.(y),ls.debug("Finished loading features for extent:",u)}catch(y){io(y)?(ls.debug("Query-Feature-Request aborted",y),s.removeLoadedExtent(u),m?.()):ls.error("Failed to load features",y)}};return s.setLoader(c),s}function LI(i,t){switch(i){case"next":return FI(t);case"offset":return RI(t)}}async function FI(i){const t=i.limit;let e=new URL(i.fullURL);e.searchParams.set("limit",t.toString());let n=[];do{const s=await um([e.toString()],i.featureFormat,i.httpService,i.signal,i.addFeatures,i.queryFeatures);if(n=n.concat(s.features),!s.nextURL)break;e=new URL(s.nextURL)}while(1);return n}async function um(i,t,e,n,s,r=cm){const a={nextURL:void 0,numberMatched:void 0,features:[]},o=i.map(async(l,h)=>{const c=h===i.length-1,u=await r(l,t,e,n);s(u.features),ls.debug(`NextURL for index = ${h} (isLast = ${c}): ${u.nextURL||"No Next URL"}`),a.features.push(...u.features),c&&(a.numberMatched=u.numberMatched,a.nextURL=u.nextURL)});return await Promise.all(o),a}var Ze,Hr,Yr,qr,Yo,dm,qo,fm;class DI{constructor(t,e){B(this,Yo);B(this,qo);Au(this,"label");B(this,Ze,void 0);B(this,Hr,void 0);B(this,Yr,void 0);B(this,qr,void 0);this.label=t.label,Y(this,Ze,t),Y(this,Hr,e);const{baseUrl:n,params:s}=NI(t.baseUrl);Y(this,Yr,n),Y(this,qr,s)}async search(t,{mapProjection:e,maxResults:n,signal:s}){const r=Ft(this,qo,fm).call(this,t,n),a=new lm({dataProjection:"EPSG:4326",featureProjection:e});return(await kI(S(this,Hr),r,s)).features.map(l=>Ft(this,Yo,dm).call(this,l,a))}}Ze=new WeakMap,Hr=new WeakMap,Yr=new WeakMap,qr=new WeakMap,Yo=new WeakSet,dm=function(t,e){const n=S(this,Ze).renderLabel?.(t),s=t.properties[S(this,Ze).labelProperty],r=t.properties[S(this,Ze).searchProperty],a=(()=>n||(s!==void 0?String(s):r!==void 0?String(r):""))();return{id:t.id??Lg(),label:a,geometry:e.readGeometry(t.geometry),properties:t.properties}},qo=new WeakSet,fm=function(t,e){const n=new URL(`${S(this,Yr)}/collections/${S(this,Ze).collectionId}/items`);for(const[s,r]of S(this,qr))n.searchParams.append(s,r);return n.searchParams.set(S(this,Ze).searchProperty,`*${t}*`),n.searchParams.set("limit",String(e)),n.searchParams.set("f","json"),S(this,Ze).rewriteUrl?.(new URL(n))??n};async function kI(i,t,e){try{const n=await i.fetch(t,{signal:e,headers:{Accept:"application/json"}});if(!n.ok)throw new Error("Request failed with status "+n.status);return await n.json()}catch(n){throw io(n)?n:new Error("Failed to search on OGC API Features service",{cause:n})}}function NI(i){const t=new URL(i),e=new URLSearchParams(t.searchParams);return t.search="",{baseUrl:t.href.replace(/\/+$/,""),params:e}}var Zr;class GI{constructor({references:t}){B(this,Zr,void 0);Y(this,Zr,t.httpService)}createVectorSource(t){return OI(t,S(this,Zr))}}Zr=new WeakMap;var Kr;class VI{constructor({references:t}){B(this,Kr,void 0);Y(this,Kr,t.httpService)}createSearchSource(t){return new DI(t,S(this,Kr))}}Kr=new WeakMap;const zI={"ol-app":{name:"ol-app",services:{MainMapProvider:{name:"MainMapProvider",clazz:RS,provides:[{name:"map.MapConfigProvider",qualifier:void 0}],references:{}}},ui:{references:[]},properties:{}},"@open-pioneer/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/coordinate-viewer":{name:"@open-pioneer/coordinate-viewer",services:{},ui:{references:[]},properties:{}},"@open-pioneer/map":{name:"@open-pioneer/map",services:{MapRegistryImpl:{name:"MapRegistryImpl",clazz:ZS,provides:[{name:"map.MapRegistry",qualifier:"map.MapRegistry"}],references:{providers:{name:"map.MapConfigProvider",qualifier:void 0,all:!0},httpService:{name:"http.HttpService",qualifier:void 0,all:!1}}}},ui:{references:[{name:"map.MapRegistry",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/notifier":{name:"@open-pioneer/notifier",services:{NotificationServiceImpl:{name:"NotificationServiceImpl",clazz:KS,provides:[{name:"notifier.NotificationService",qualifier:"notifier.NotificationService"}],references:{}}},ui:{references:[{name:"notifier.NotificationService",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/overview-map":{name:"@open-pioneer/overview-map",services:{},ui:{references:[]},properties:{}},"@open-pioneer/scale-bar":{name:"@open-pioneer/scale-bar",services:{},ui:{references:[]},properties:{}},"@open-pioneer/scale-viewer":{name:"@open-pioneer/scale-viewer",services:{},ui:{references:[]},properties:{}},"@open-pioneer/theme":{name:"@open-pioneer/theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/basemap-switcher":{name:"@open-pioneer/basemap-switcher",services:{},ui:{references:[]},properties:{}},"@open-pioneer/geolocation":{name:"@open-pioneer/geolocation",services:{},ui:{references:[{name:"notifier.NotificationService",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/measurement":{name:"@open-pioneer/measurement",services:{},ui:{references:[]},properties:{}},"@open-pioneer/map-navigation":{name:"@open-pioneer/map-navigation",services:{},ui:{references:[]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}},"@open-pioneer/react-utils":{name:"@open-pioneer/react-utils",services:{},ui:{references:[]},properties:{}},"@open-pioneer/http":{name:"@open-pioneer/http",services:{HttpServiceImpl:{name:"HttpServiceImpl",clazz:QS,provides:[{name:"http.HttpService",qualifier:"http.HttpService"}],references:{interceptors:{name:"http.Interceptor",qualifier:void 0,all:!0}}}},ui:{references:[]},properties:{}},"@open-pioneer/ogc-features":{name:"@open-pioneer/ogc-features",services:{VectorSourceFactory:{name:"VectorSourceFactory",clazz:GI,provides:[{name:"ogc-features.VectorSourceFactory",qualifier:"ogc-features.VectorSourceFactory"}],references:{httpService:{name:"http.HttpService",qualifier:void 0,all:!1}}},SearchSourceFactory:{name:"SearchSourceFactory",clazz:VI,provides:[{name:"ogc-features.SearchSourceFactory",qualifier:"ogc-features.SearchSourceFactory"}],references:{httpService:{name:"http.HttpService",qualifier:void 0,all:!1}}}},ui:{references:[]},properties:{}}},BI=`.sidebar{height:100%;position:absolute;top:0;background-color:#ffffffb3;transition:width .3s ease-out 0s}.right-bottom{position:absolute;right:0;bottom:0;background:white}.zoom-controls{position:absolute;z-index:1000;bottom:2rem;right:1rem}.ol-control.ol-zoom{left:unset;right:.5em}:root,:host{--ol-background-color: white;--ol-accent-background-color: #F5F5F5;--ol-subtle-background-color: rgba(128, 128, 128, .25);--ol-partial-background-color: rgba(255, 255, 255, .75);--ol-foreground-color: #333333;--ol-subtle-foreground-color: #666666;--ol-brand-color: #00AAFF}.ol-box{box-sizing:border-box;border-radius:2px;border:1.5px solid var(--ol-background-color);background-color:var(--ol-partial-background-color)}.ol-mouse-position{top:8px;right:8px;position:absolute}.ol-scale-line{background:var(--ol-partial-background-color);border-radius:4px;bottom:8px;left:8px;padding:2px;position:absolute}.ol-scale-line-inner{border:1px solid var(--ol-subtle-foreground-color);border-top:none;color:var(--ol-foreground-color);font-size:10px;text-align:center;margin:1px;will-change:contents,width;transition:all .25s}.ol-scale-bar{position:absolute;bottom:8px;left:8px}.ol-scale-bar-inner{display:flex}.ol-scale-step-marker{width:1px;height:15px;background-color:var(--ol-foreground-color);float:right;z-index:10}.ol-scale-step-text{position:absolute;bottom:-5px;font-size:10px;z-index:11;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-text{position:absolute;font-size:12px;text-align:center;bottom:25px;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-singlebar{position:relative;height:10px;z-index:9;box-sizing:border-box;border:1px solid var(--ol-foreground-color)}.ol-scale-singlebar-even{background-color:var(--ol-subtle-foreground-color)}.ol-scale-singlebar-odd{background-color:var(--ol-background-color)}.ol-unsupported{display:none}.ol-viewport,.ol-unselectable{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.ol-viewport canvas{all:unset;overflow:hidden}.ol-viewport{touch-action:pan-x pan-y}.ol-selectable{-webkit-touch-callout:default;-webkit-user-select:text;-moz-user-select:text;user-select:text}.ol-grabbing{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.ol-grab{cursor:move;cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.ol-control{position:absolute;background-color:var(--ol-subtle-background-color);border-radius:4px}.ol-zoom{top:.5em;left:.5em}.ol-rotate{top:.5em;right:.5em;transition:opacity .25s linear,visibility 0s linear}.ol-rotate.ol-hidden{opacity:0;visibility:hidden;transition:opacity .25s linear,visibility 0s linear .25s}.ol-zoom-extent{top:4.643em;left:.5em}.ol-full-screen{right:.5em;top:.5em}.ol-control button{display:block;margin:1px;padding:0;color:var(--ol-subtle-foreground-color);font-weight:700;text-decoration:none;font-size:inherit;text-align:center;height:1.375em;width:1.375em;line-height:.4em;background-color:var(--ol-background-color);border:none;border-radius:2px}.ol-control button::-moz-focus-inner{border:none;padding:0}.ol-zoom-extent button{line-height:1.4em}.ol-compass{display:block;font-weight:400;will-change:transform}.ol-touch .ol-control button{font-size:1.5em}.ol-touch .ol-zoom-extent{top:5.5em}.ol-control button:hover,.ol-control button:focus{text-decoration:none;outline:1px solid var(--ol-subtle-foreground-color);color:var(--ol-foreground-color)}.ol-zoom .ol-zoom-in{border-radius:2px 2px 0 0}.ol-zoom .ol-zoom-out{border-radius:0 0 2px 2px}.ol-attribution{text-align:right;bottom:.5em;right:.5em;max-width:calc(100% - 1.3em);display:flex;flex-flow:row-reverse;align-items:center}.ol-attribution a{color:var(--ol-subtle-foreground-color);text-decoration:none}.ol-attribution ul{margin:0;padding:1px .5em;color:var(--ol-foreground-color);text-shadow:0 0 2px var(--ol-background-color);font-size:12px}.ol-attribution li{display:inline;list-style:none}.ol-attribution li:not(:last-child):after{content:" "}.ol-attribution img{max-height:2em;max-width:inherit;vertical-align:middle}.ol-attribution button{flex-shrink:0}.ol-attribution.ol-collapsed ul{display:none}.ol-attribution:not(.ol-collapsed){background:var(--ol-partial-background-color)}.ol-attribution.ol-uncollapsible{bottom:0;right:0;border-radius:4px 0 0}.ol-attribution.ol-uncollapsible img{margin-top:-.2em;max-height:1.6em}.ol-attribution.ol-uncollapsible button{display:none}.ol-zoomslider{top:4.5em;left:.5em;height:200px}.ol-zoomslider button{position:relative;height:10px}.ol-touch .ol-zoomslider{top:5.5em}.ol-overviewmap{left:.5em;bottom:.5em}.ol-overviewmap.ol-uncollapsible{bottom:0;left:0;border-radius:0 4px 0 0}.ol-overviewmap .ol-overviewmap-map,.ol-overviewmap button{display:block}.ol-overviewmap .ol-overviewmap-map{border:1px solid var(--ol-subtle-foreground-color);height:150px;width:150px}.ol-overviewmap:not(.ol-collapsed) button{bottom:0;left:0;position:absolute}.ol-overviewmap.ol-collapsed .ol-overviewmap-map,.ol-overviewmap.ol-uncollapsible button{display:none}.ol-overviewmap:not(.ol-collapsed){background:var(--ol-subtle-background-color)}.ol-overviewmap-box{border:1.5px dotted var(--ol-subtle-foreground-color)}.ol-overviewmap .ol-overviewmap-box:hover{cursor:move}.overview-map .ol-overviewmap{position:relative;height:100%;width:100%}.overview-map .ol-overviewmap:not(.ol-collapsed){border:1px solid black}.overview-map .ol-overviewmap .ol-overviewmap-map{border:none;width:100%;height:100%}.overview-map .ol-overviewmap .ol-overviewmap-box{border:2px solid red}.scale-bar .ol-scale-bar{margin-bottom:8px;margin-right:8px}.scale-bar .ol-scale-bar,.scale-bar .ol-scale-line{position:relative;bottom:0;left:0;background:none}.scale-bar .ol-scale-bar .ol-scale-bar-inner,.scale-bar .ol-scale-bar .ol-scale-line-inner,.scale-bar .ol-scale-line .ol-scale-bar-inner,.scale-bar .ol-scale-line .ol-scale-line-inner{color:var(--chakra-white);border-color:var(--chakra-white)}.measurement-tooltip{position:relative;background:rgba(255,255,255,.8);border-radius:4px;color:#000;padding:4px 8px;opacity:1;white-space:nowrap;font-size:12px;cursor:default;-webkit-user-select:none;user-select:none;font-weight:700}.measurement-active-tooltip{background:rgba(0,0,0,.9);border-radius:4px;border-color:#000000e6;opacity:.9;color:#fff}.measurement-finished-tooltip{background-color:#4cb3ffe6;color:#000;border:1px solid white}.measurement-active-tooltip:before,.measurement-finished-tooltip:before{border-top:6px solid rgba(0,0,0,.9);border-right:6px solid transparent;border-left:6px solid transparent;content:"";position:absolute;bottom:-6px;margin-left:-7px;left:50%}.measurement-finished-tooltip:before{border-top-color:#4cb3ff} `,jI=["en","de"];function $I(i){switch(i){case"en":return ku(()=>import("./b6b150bd8b3f.js"),[],import.meta.url).then(t=>t.default);case"de":return ku(()=>import("./149347c126db.js"),[],import.meta.url).then(t=>t.default)}throw new Error(`Unsupported locale: '${i}'`)}const UI=bp(BI),WI=Object.freeze(Object.defineProperty({__proto__:null,loadMessages:$I,locales:jI,packages:zI,styles:UI},Symbol.toStringTag,{value:"Module"})),ih=.75,Wa=.1;let XI=class extends ca{constructor(t){t=t||{},super({element:document.createElement("div"),render:t.render,target:t.target}),this.boundHandleRotationChanged_=this.handleRotationChanged_.bind(this),this.collapsed_=t.collapsed!==void 0?t.collapsed:!0,this.collapsible_=t.collapsible!==void 0?t.collapsible:!0,this.collapsible_||(this.collapsed_=!1),this.rotateWithView_=t.rotateWithView!==void 0?t.rotateWithView:!1,this.viewExtent_=void 0;const e=t.className!==void 0?t.className:"ol-overviewmap",n=t.tipLabel!==void 0?t.tipLabel:"Overview map",s=t.collapseLabel!==void 0?t.collapseLabel:"‹";typeof s=="string"?(this.collapseLabel_=document.createElement("span"),this.collapseLabel_.textContent=s):this.collapseLabel_=s;const r=t.label!==void 0?t.label:"›";typeof r=="string"?(this.label_=document.createElement("span"),this.label_.textContent=r):this.label_=r;const a=this.collapsible_&&!this.collapsed_?this.collapseLabel_:this.label_,o=document.createElement("button");o.setAttribute("type","button"),o.title=n,o.appendChild(a),o.addEventListener(nt.CLICK,this.handleClick_.bind(this),!1),this.ovmapDiv_=document.createElement("div"),this.ovmapDiv_.className="ol-overviewmap-map",this.view_=t.view;const l=new ru({view:t.view,controls:new we,interactions:new we});this.ovmap_=l,t.layers&&t.layers.forEach(function(v){l.addLayer(v)});const h=document.createElement("div");h.className="ol-overviewmap-box",h.style.boxSizing="border-box",this.boxOverlay_=new Gh({position:[0,0],positioning:"center-center",element:h}),this.ovmap_.addOverlay(this.boxOverlay_);const c=e+" "+Us+" "+gl+(this.collapsed_&&this.collapsible_?" "+po:"")+(this.collapsible_?"":" ol-uncollapsible"),u=this.element;u.className=c,u.appendChild(this.ovmapDiv_),u.appendChild(o);const d=this,f=this.boxOverlay_,g=this.boxOverlay_.getElement(),m=function(v){return{clientX:v.clientX,clientY:v.clientY}},p=function(v){const y=m(v),x=l.getEventCoordinateInternal(y);f.setPosition(x)},_=function(v){const y=l.getEventCoordinateInternal(v);d.getMap().getView().setCenterInternal(y),window.removeEventListener("mousemove",p),window.removeEventListener("mouseup",_)};g.addEventListener("mousedown",function(){window.addEventListener("mousemove",p),window.addEventListener("mouseup",_)})}setMap(t){const e=this.getMap();if(t!==e){if(e){const n=e.getView();n&&this.unbindView_(n),this.ovmap_.setTarget(null)}if(super.setMap(t),t){this.ovmap_.setTarget(this.ovmapDiv_),this.listenerKeys.push(lt(t,Gn.PROPERTYCHANGE,this.handleMapPropertyChange_,this));const n=t.getView();n&&(this.bindView_(n),n.isDef()&&(this.ovmap_.updateSize(),this.resetExtent_())),this.ovmap_.isRendered()||this.updateBoxAfterOvmapIsRendered_()}}}handleMapPropertyChange_(t){if(t.key===Lt.VIEW){const e=t.oldValue;e&&this.unbindView_(e);const n=this.getMap().getView();this.bindView_(n)}else!this.ovmap_.isRendered()&&(t.key===Lt.TARGET||t.key===Lt.SIZE)&&this.ovmap_.updateSize()}bindView_(t){if(!this.view_){const e=new pe({projection:t.getProjection()});this.ovmap_.setView(e)}t.addChangeListener(fe.ROTATION,this.boundHandleRotationChanged_),this.handleRotationChanged_()}unbindView_(t){t.removeChangeListener(fe.ROTATION,this.boundHandleRotationChanged_)}handleRotationChanged_(){this.rotateWithView_&&this.ovmap_.getView().setRotation(this.getMap().getView().getRotation())}validateExtent_(){const t=this.getMap(),e=this.ovmap_;if(!t.isRendered()||!e.isRendered())return;const n=t.getSize(),r=t.getView().calculateExtentInternal(n);if(this.viewExtent_&&Vn(r,this.viewExtent_))return;this.viewExtent_=r;const a=e.getSize(),l=e.getView().calculateExtentInternal(a),h=e.getPixelFromCoordinateInternal(un(r)),c=e.getPixelFromCoordinateInternal(na(r)),u=Math.abs(h[0]-c[0]),d=Math.abs(h[1]-c[1]),f=a[0],g=a[1];uf*ih||d>g*ih?this.resetExtent_():Hi(l,r)||this.recenter_()}resetExtent_(){const t=this.getMap(),e=this.ovmap_,n=t.getSize(),r=t.getView().calculateExtentInternal(n),a=e.getView(),o=Math.log(ih/Wa)/Math.LN2,l=1/(Math.pow(2,o/2)*Wa);X_(r,l),a.fitInternal(Mh(r))}recenter_(){const t=this.getMap(),e=this.ovmap_,n=t.getView();e.getView().setCenterInternal(n.getCenterInternal())}updateBox_(){const t=this.getMap(),e=this.ovmap_;if(!t.isRendered()||!e.isRendered())return;const n=t.getSize(),s=t.getView(),r=e.getView(),a=this.rotateWithView_?0:-s.getRotation(),o=this.boxOverlay_,l=this.boxOverlay_.getElement(),h=s.getCenterInternal(),c=s.getResolution(),u=r.getResolution(),d=n[0]*c/u,f=n[1]*c/u;if(o.setPosition(h),l){l.style.width=d+"px",l.style.height=f+"px";const g="rotate("+a+"rad)";l.style.transform=g}}updateBoxAfterOvmapIsRendered_(){this.ovmapPostrenderKey_||(this.ovmapPostrenderKey_=_r(this.ovmap_,He.POSTRENDER,function(t){delete this.ovmapPostrenderKey_,this.updateBox_()},this))}handleClick_(t){t.preventDefault(),this.handleToggle_()}handleToggle_(){this.element.classList.toggle(po),this.collapsed_?uo(this.collapseLabel_,this.label_):uo(this.label_,this.collapseLabel_),this.collapsed_=!this.collapsed_;const t=this.ovmap_;if(!this.collapsed_){if(t.isRendered()){this.viewExtent_=void 0,t.render();return}t.updateSize(),this.resetExtent_(),this.updateBoxAfterOvmapIsRendered_()}}getCollapsible(){return this.collapsible_}setCollapsible(t){this.collapsible_!==t&&(this.collapsible_=t,this.element.classList.toggle("ol-uncollapsible"),!t&&this.collapsed_&&this.handleToggle_())}setCollapsed(t){!this.collapsible_||this.collapsed_===t||this.handleToggle_()}getCollapsed(){return this.collapsed_}getRotateWithView(){return this.rotateWithView_}setRotateWithView(t){this.rotateWithView_!==t&&(this.rotateWithView_=t,this.getMap().getView().getRotation()!==0&&(this.rotateWithView_?this.handleRotationChanged_():this.ovmap_.getView().setRotation(0),this.viewExtent_=void 0,this.validateExtent_(),this.updateBox_()))}getOverviewMap(){return this.ovmap_}render(t){this.validateExtent_(),this.updateBox_()}};const HI=XI,nh="units",YI=[1,2,5],sr=25.4/.28;class qI extends ca{constructor(t){t=t||{};const e=document.createElement("div");e.style.pointerEvents="none",super({element:e,render:t.render,target:t.target}),this.on,this.once,this.un;const n=t.className!==void 0?t.className:t.bar?"ol-scale-bar":"ol-scale-line";this.innerElement_=document.createElement("div"),this.innerElement_.className=n+"-inner",this.element.className=n+" "+Us,this.element.appendChild(this.innerElement_),this.viewState_=null,this.minWidth_=t.minWidth!==void 0?t.minWidth:64,this.maxWidth_=t.maxWidth,this.renderedVisible_=!1,this.renderedWidth_=void 0,this.renderedHTML_="",this.addChangeListener(nh,this.handleUnitsChanged_),this.setUnits(t.units||"metric"),this.scaleBar_=t.bar||!1,this.scaleBarSteps_=t.steps||4,this.scaleBarText_=t.text||!1,this.dpi_=t.dpi||void 0}getUnits(){return this.get(nh)}handleUnitsChanged_(){this.updateElement_()}setUnits(t){this.set(nh,t)}setDpi(t){this.dpi_=t}updateElement_(){const t=this.viewState_;if(!t){this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1);return}const e=t.center,n=t.projection,s=this.getUnits(),r=s=="degrees"?"degrees":"m";let a=vr(n,t.resolution,e,r);const o=this.minWidth_*(this.dpi_||sr)/sr,l=this.maxWidth_!==void 0?this.maxWidth_*(this.dpi_||sr)/sr:void 0;let h=o*a,c="";if(s=="degrees"){const y=As.degrees;h*=y,h=l){d=m,f=p,g=_;break}else if(f>=o)break;m=d,p=f,_=g,++u}const v=this.scaleBar_?this.createScaleBar(f,d,c):d.toFixed(g<0?-g:0)+" "+c;this.renderedHTML_!=v&&(this.innerElement_.innerHTML=v,this.renderedHTML_=v),this.renderedWidth_!=f&&(this.innerElement_.style.width=f+"px",this.renderedWidth_=f),this.renderedVisible_||(this.element.style.display="",this.renderedVisible_=!0)}createScaleBar(t,e,n){const s=this.getScaleForResolution(),r=s<1?Math.round(1/s).toLocaleString()+" : 1":"1 : "+Math.round(s).toLocaleString(),a=this.scaleBarSteps_,o=t/a,l=[this.createMarker("absolute")];for(let c=0;c
`+this.createMarker("relative")+(c%2===0||a===2?this.createStepText(c,t,!1,e,n):"")+"")}return l.push(this.createStepText(a,t,!0,e,n)),(this.scaleBarText_?`
`+r+"
":"")+l.join("")}createMarker(t){return`
`}createStepText(t,e,n,s,r){const o=(t===0?0:Math.round(s/this.scaleBarSteps_*t*100)/100)+(t===0?"":" "+r),l=t===0?-3:e/this.scaleBarSteps_*-1,h=t===0?0:e/this.scaleBarSteps_*2;return`
`+o+"
"}getScaleForResolution(){const t=vr(this.viewState_.projection,this.viewState_.resolution,this.viewState_.center,"m"),e=this.dpi_||sr,n=1e3/25.4;return t*n*e}render(t){const e=t.frameState;e?this.viewState_=e.viewState:this.viewState_=null,this.updateElement_()}}const ZI=qI,KI=i=>{const{mapId:t,displayMode:e="line"}=i,{containerProps:n}=$e("scale-bar",i),{map:s}=li(t),r=C.useRef(null);return C.useEffect(()=>{if(r.current&&s){const a=s.olMap,o=new ZI({units:"metric",target:r.current,bar:e==="bar"});return a.addControl(o),()=>{a.removeControl(o)}}},[e,s]),P.jsx(pt,{...n,ref:r})},JI="@open-pioneer/map-navigation",gm=jn.bind(void 0,JI);var mm={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},sf=Z.createContext&&Z.createContext(mm),en=globalThis&&globalThis.__assign||function(){return en=Object.assign||function(i){for(var t,e=1,n=arguments.length;e{const{mapId:t,precision:e,displayProjectionCode:n}=i,{containerProps:s}=$e("coordinate-viewer",i),{map:r}=li(t),a=r?.olMap,o=Z0(a)?.getCode()??"";let{coordinates:l}=pR(a);l=l&&n?vR(l,o,n):l;const h=mR(l,e),c=n||o,u=h?h+" "+c:"";return P.jsx(pt,{...s,children:P.jsx(Jo,{className:"coordinate-viewer-text",children:u})})};function mR(i,t){const e=dR();return i?_R(i,t,e):""}function pR(i){const[t,e]=C.useState();return C.useEffect(()=>{if(!i)return;const n=i.on("pointermove",s=>{e(s.coordinate)});return()=>Se(n)},[i]),{coordinates:t}}function _R(i,t,e){if(i[0]==null||i[1]==null)return"";const n=t??fR,[s,r]=i,a=e.formatNumber(s,{maximumFractionDigits:n,minimumFractionDigits:n}),o=e.formatNumber(r,{maximumFractionDigits:n,minimumFractionDigits:n});return a+" "+o}function vR(i,t,e){return fg(i,t,e)}const yR="@open-pioneer/scale-viewer",xR=jn.bind(void 0,yR),bR=i=>{const{mapId:t}=i,{containerProps:e}=$e("scale-viewer",i),{map:n}=li(t),s=xR(),r=Kw(n?.olMap),a=r?s.formatNumber(r):void 0;return P.jsx(pt,{...e,children:a&&P.jsxs(Jo,{children:["1:",a]})})},vm="@open-pioneer/geolocation",ER=nc.bind(void 0,vm),CR=jn.bind(void 0,vm);function MR(i){return qs({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm8.94 3A8.994 8.994 0 0013 3.06V1h-2v2.06A8.994 8.994 0 003.06 11H1v2h2.06A8.994 8.994 0 0011 20.94V23h2v-2.06A8.994 8.994 0 0020.94 13H23v-2h-2.06zM12 19c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7z"}}]})(i)}const rf=oi("geolocation:GeolocationController"),af=17;class wR extends tl{olMap;positionHighlightLayer;geolocation;maxZoom=af;accuracyFeature;positionFeature;changeHandlers=[];isCurrentlyActive=!1;setMapToPosition=!0;trackingOptions={};isInitialZoom=!0;constructor(t,e){super(),this.olMap=t,this.isInitialZoom=!0,this.accuracyFeature=new Ke,this.accuracyFeature.setStyle(lf()),this.positionFeature=new Ke,this.positionFeature.setStyle(of()),this.positionHighlightLayer=new _l({source:new ha({features:[this.accuracyFeature,this.positionFeature]})}),this.positionHighlightLayer.setZIndex(gu);const n=e||SR();this.geolocation=new oy({tracking:!1,trackingOptions:n,projection:t.getView()?.getProjection()}),this.trackingOptions=n,this.geolocation.on("error",s=>this.handleGeolocationError(s))}destroy(){this.stopGeolocation(),this.geolocation?.setTracking(!1),this.geolocation.dispose(),this.accuracyFeature=void 0,this.positionFeature=void 0,this.positionHighlightLayer.dispose()}startGeolocation(){if(this.isCurrentlyActive)return Promise.resolve();const t=this.olMap;return new Promise(n=>{this.isCurrentlyActive=!0,this.geolocation?.setProjection(t.getView()?.getProjection()),this.geolocation?.setTracking(!0);const s=this.geolocation.on("change:accuracyGeometry",()=>{const l=this.geolocation.getAccuracyGeometry()||void 0;if(this.accuracyFeature?.setGeometry(l),this.accuracyFeature?.getGeometry()!==void 0&&n(),this.isInitialZoom){const h=this?.accuracyFeature?.getGeometry()?.getExtent();if(h){const c=_S(h);if(!c)return;t.getView().fit(c,{maxZoom:this.maxZoom}),this.isInitialZoom=!1}}}),r=this.geolocation.on("change:position",()=>{const l=this.geolocation.getPosition();l&&(l[0]||l[1])!==void 0&&(this.positionFeature?.setGeometry(new Qi(l)),this.setMapToPosition&&t.getView().setCenter(l),this.positionFeature?.getGeometry()!==void 0&&n())}),a=t.getView().on("change:resolution",()=>{this.setMapToPosition=this.isInitialZoom}),o=t.on("pointermove",l=>{l.dragging&&(this.setMapToPosition=!1)});this.changeHandlers.push(s,r,a,o),t.addLayer(this.positionHighlightLayer)}).catch(n=>{rf.error("Failed to determine location",n)})}stopGeolocation(){this.geolocation?.setTracking(!1),this.isCurrentlyActive=!1,this.trackingOptions={},this.setMapToPosition=!0,this.isInitialZoom=!0,this.changeHandlers.forEach(t=>{Se(t)}),this.changeHandlers=[],this.accuracyFeature?.setGeometry(void 0),this.positionFeature?.setGeometry(void 0),this.olMap.removeLayer(this.positionHighlightLayer)}setPositionFeatureStyle(t){this.positionFeature?.setStyle(t??of())}setAccuracyFeatureStyle(t){this.accuracyFeature?.setStyle(t??lf())}setMaxZoom(t){this.maxZoom=t??af}getMaxZoom(){return this.maxZoom}getPositionFeature(){return this.positionFeature}getAccuracyFeature(){return this.accuracyFeature}getTrackingOptions(){return this.trackingOptions}getGeolocation(){return this.geolocation}handleGeolocationError(t){rf.error("Error from geolocation API:",t.message);const e=(()=>{switch(t.code){case 1:return"permission-denied";case 2:return"position-unavailable";case 3:return"timeout";default:return"unknown"}})();this.emit("error",e)}}const of=()=>new Bt({image:new ra({radius:6,fill:new Ie({color:"#3399CC"}),stroke:new Nt({color:"#fff",width:2})})}),lf=()=>new Bt({stroke:new Nt({color:"#3399CC",width:3}),fill:new Ie({color:"rgba(0, 0, 255, 0.05)"})}),SR=()=>({enableHighAccuracy:!0,timeout:6e4,maximumAge:6e5}),IR=C.forwardRef(function(t,e){const{mapId:n,maxZoom:s,positionFeatureStyle:r,accuracyFeatureStyle:a,trackingOptions:o}=t,{containerProps:l}=$e("geolocation",t),h=!!navigator.geolocation,[c,u]=C.useState(!1),[d,f]=C.useState(!1),{map:g}=li(n),m=CR(),p=ER("notifier.NotificationService"),_=RR(g,s,o,r,a),v=(()=>h?c?m.formatMessage({id:"locateMeEnd"}):m.formatMessage({id:"locateMeStart"}):m.formatMessage({id:"locateNotSupported"}))();C.useEffect(()=>{if(_===void 0)return;const x=_.on("error",function(b){const E=m.formatMessage({id:"error"}),w=(()=>{switch(b){case"permission-denied":return m.formatMessage({id:"permissionDenied"});case"position-unavailable":return m.formatMessage({id:"positionUnavailable"});case"timeout":return m.formatMessage({id:"timeout"});case"unknown":return m.formatMessage({id:"unknownError"})}})();f(!1),u(!1),p.notify({level:"error",title:E,message:w})});return()=>{x.destroy()}},[_,m,p]),C.useEffect(()=>{if(!_){f(!1);return}return c&&(f(!0),_.startGeolocation().then(()=>{f(!1)})),()=>{_?.stopGeolocation(),f(!1)}},[_,c]);const y=()=>{g&&u(!c)};return P.jsx(Qo,{ref:e,label:v,icon:P.jsx(MR,{}),onClick:()=>y(),isActive:c,isLoading:d,isDisabled:!h,...l})});function RR(i,t,e,n,s){const[r,a]=C.useState();return C.useEffect(()=>{if(!i)return;const o=new wR(i.olMap,e);return a(o),()=>{o.destroy(),a(void 0)}},[i,e]),C.useEffect(()=>{r?.setPositionFeatureStyle(n)},[r,n]),C.useEffect(()=>{r?.setAccuracyFeatureStyle(s)},[r,s]),C.useEffect(()=>{r?.setMaxZoom(t)},[r,t]),r}const TR="@open-pioneer/notifier",PR=nc.bind(void 0,TR);var OR=Dp({displayName:"WarningTwoIcon",d:"M23.119,20,13.772,2.15h0a2,2,0,0,0-3.543,0L.881,20a2,2,0,0,0,1.772,2.928H21.347A2,2,0,0,0,23.119,20ZM11,8.423a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Zm1.05,11.51h-.028a1.528,1.528,0,0,1-1.522-1.47,1.476,1.476,0,0,1,1.448-1.53h.028A1.527,1.527,0,0,1,13.5,18.4,1.475,1.475,0,0,1,12.05,19.933Z"});const AR=!1;function LR(i){const{position:t="top-right"}=i,e=kp(),n=PR("notifier.NotificationService"),[s,r]=C.useState(!AR),a=$u(l=>{const h=l.level==="error"?P.jsx(OR,{h:"100%",w:"100%"}):void 0;e({position:t,title:l.title,description:l.message||null,status:l.level,isClosable:!0,duration:l.displayDuration??null,icon:h})}),o=$u(()=>{e.closeAll()});return C.useEffect(()=>{const l=n.registerHandler({showNotification:a,closeAll:o});return()=>l.destroy()},[s,n,a,o]),P.jsx(P.Fragment,{})}const FR="200px",DR="300px",kR=i=>{const{mapId:t,olLayer:e,height:n=FR,width:s=DR}=i,{containerProps:r}=$e("overview-map",i),a=C.useRef(null),{map:o}=li(t);return C.useEffect(()=>{if(a.current&&o&&e){const l=o.olMap,h=new HI({className:"ol-overviewmap",layers:[e],collapsible:!1,collapsed:!1,target:a.current});return l.addControl(h),()=>{l.removeControl(h)}}},[o,e]),P.jsx(pt,{height:n,width:s,ref:a,...r})},NR="@open-pioneer/measurement",GR=jn.bind(void 0,NR);class VR{olMap;messages;activeFeatureStyle;layer;source;draw=void 0;sketch=void 0;helpTooltip;measureTooltip;overlayTooltips=[];resources=[];constructor(t,e){this.olMap=t,this.messages=e;const n=this.source=new ha;this.layer=new _l({source:n}),this.layer.setZIndex(gu),t.addLayer(this.layer);const s=t.on("pointermove",this.handlePointerMove.bind(this));this.resources.push({destroy(){Se(s)}});const r=()=>{this.helpTooltip.element.classList.add("hidden")};t.getViewport().addEventListener("mouseout",r),this.resources.push({destroy(){t.getViewport().removeEventListener("mouseout",r)}}),this.helpTooltip=this.createHelpTooltip()}destroy(){this.stopMeasurement();for(const t of this.resources)t.destroy();this.resources=[],this.helpTooltip.destroy(),this.measureTooltip?.destroy();for(const t of this.overlayTooltips)t.destroy();this.overlayTooltips=[],this.olMap.removeLayer(this.layer),this.layer.dispose(),this.source.dispose()}getVectorLayer(){return this.layer}setFinishedFeatureStyle(t){this.layer.setStyle(t)}setActiveFeatureStyle(t){const e=Xc(t);this.activeFeatureStyle=(n,...s)=>{const r=n?.getGeometry()?.getType();if(r==="Polygon"||r==="LineString"||r==="Point")return e(n,...s)},this.draw?.getOverlay().setStyle(this.activeFeatureStyle)}clearMeasurements(){this.source.clear();for(const t of this.overlayTooltips)t.destroy();this.overlayTooltips=[]}startMeasurement(t){if(this.draw)throw new Error("Internal error: another measurement interaction is still active.");const e=t==="area"?"Polygon":"LineString",n=this.draw=new FS({source:this.source,type:e,style:this.activeFeatureStyle});this.olMap.addInteraction(n);let s,r;n.on("drawstart",a=>{s=this.measureTooltip=this.createMeasureTooltip();const o=this.sketch=a.feature;if(!o)return;let l;r=o.getGeometry()?.on("change",h=>{const c=h.target,u=this.olMap.getView().getProjection();let d="";c instanceof rn?(d=BR(c,u,this.messages),l=c.getInteriorPoint().getCoordinates()||null):c instanceof xi&&(d=jR(c,u,this.messages),l=c.getLastCoordinate()||null),s&&(s.element.innerHTML=d,l&&s?.overlay.setPosition(l))})}),n.on("drawend",()=>{if(s){const a=s.element.classList;a.remove("measurement-active-tooltip"),a.add("measurement-finished-tooltip"),s.overlay.setOffset([0,-7]),this.overlayTooltips.push(s),this.measureTooltip=s=void 0}this.sketch=void 0,r&&Se(r)}),n.on("drawabort",()=>{s&&(s.destroy(),this.measureTooltip=s=void 0),this.sketch=void 0,r&&Se(r)})}stopMeasurement(){this.draw&&(this.olMap.removeInteraction(this.draw),this.draw.abortDrawing(),this.draw.dispose(),this.draw=void 0),this.sketch=void 0,this.measureTooltip?.destroy(),this.measureTooltip=void 0}createMeasureTooltip(){const t=document.createElement("div");t.className="measurement-tooltip measurement-active-tooltip";const e=new Gh({element:t,offset:[0,-15],positioning:"bottom-center",stopEvent:!1,insertFirst:!1}),n=this.olMap;return n.addOverlay(e),{overlay:e,element:t,destroy(){n.removeOverlay(e)}}}createHelpTooltip(){const t=document.createElement("div");t.className="measurement-tooltip hidden";const e=new Gh({element:t,offset:[15,0],positioning:"center-left"}),n=this.olMap;return n.addOverlay(e),{overlay:e,element:t,destroy(){n.removeOverlay(e)}}}handlePointerMove(t){if(t.dragging)return;const e=this.helpTooltip,n=zR(this.messages,this.sketch);e.element.textContent=n,e.overlay.setPosition(t.coordinate),e.element.classList.remove("hidden")}}function zR(i,t){if(t){const e=t.getGeometry();if(e instanceof rn||e instanceof xi)return i.getContinueMessage()}return i.getHelpMessage()}function BR(i,t,e){const n=hg(i,{projection:t});let s;return n>=1e6?s=`${e.formatNumber(n/1e6)} km2`:s=`${e.formatNumber(n)} m2`,s}function jR(i,t,e){const n=lg(i,{projection:t});let s;return n>=1e3?s=`${e.formatNumber(n/1e3)} km`:s=`${e.formatNumber(n)} m`,s}const $R=i=>{const t=GR(),{mapId:e,activeFeatureStyle:n,finishedFeatureStyle:s}=i,{containerProps:r}=$e("measurement",i),[a,o]=C.useState("distance"),l=f=>t.formatMessage({id:f}),h=li(e),c=UR(h.map,t);C.useEffect(()=>{c?.setActiveFeatureStyle(n??WR())},[c,n]),C.useEffect(()=>{c?.setFinishedFeatureStyle(s??XR())},[c,s]),C.useEffect(()=>{if(c)return c.startMeasurement(a),()=>{c.stopMeasurement()}},[c,a]);function u(f){if(f==="distance"||f==="area")o(f);else throw new Error(`Unexpected measurement type: '${f}'.`)}function d(){c?.clearMeasurements()}return P.jsxs(pt,{...r,children:[P.jsx(Jo,{mb:3,children:t.formatMessage({id:"measurementInfoText"})}),P.jsx(Gf,{mb:4,alignItems:"center",children:P.jsxs(Uf,{mb:2,children:[P.jsx(sc,{mb:1,children:l("measurementLabel")}),P.jsxs(qf,{value:a,onChange:f=>u(f.target.value),className:"measurement-select",children:[P.jsx("option",{value:"distance",children:l("distance")}),P.jsx("option",{value:"area",children:l("area")})]})]})}),P.jsx(Rp,{padding:2,className:"measurement-delete-button",onClick:d,width:"100%",children:l("deleteMeasurementLabel")})]})};function UR(i,t){const[e,n]=C.useState(void 0);return C.useEffect(()=>{if(!i)return;const s=new VR(i.olMap,{getContinueMessage(){return t.formatMessage({id:"tooltips.continue"})},getHelpMessage(){return t.formatMessage({id:"tooltips.help"})},formatNumber(r){return t.formatNumber(r,{maximumFractionDigits:2})}});return n(s),()=>{s.destroy(),n(void 0)}},[i,t]),e}function WR(){return[new Bt({stroke:new Nt({color:"#fff",lineDash:[10,10],width:5})}),new Bt({fill:new Ie({color:"rgba(0,0,0,0.15)"}),stroke:new Nt({color:"rgba(0, 0, 0, 0.7)",lineDash:[10,10],width:3}),image:new ra({radius:5,stroke:new Nt({color:"rgba(0, 0, 0, 0.7)",width:2}),fill:new Ie({color:"rgba(255, 255, 255, 0.2)"})})})]}function XR(){return[new Bt({stroke:new Nt({color:"#fff",width:5})}),new Bt({stroke:new Nt({color:"#0b96fc",width:3}),fill:new Ie({color:"rgba(11,150,252,0.15)"})})]}function HR(i){return qs({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M233.91,74.79,181.22,22.1a14,14,0,0,0-19.8,0L22.09,161.41a14,14,0,0,0,0,19.8L74.78,233.9a14,14,0,0,0,19.8,0L233.91,94.59A14,14,0,0,0,233.91,74.79ZM225.42,86.1,86.1,225.41h0a2,2,0,0,1-2.83,0L30.58,172.73a2,2,0,0,1,0-2.83L64,136.48l27.76,27.76a6,6,0,1,0,8.48-8.48L72.48,128,96,104.48l27.76,27.76a6,6,0,0,0,8.48-8.48L104.48,96,128,72.49l27.76,27.75a6,6,0,0,0,8.48-8.48L136.49,64,169.9,30.59a2,2,0,0,1,2.83,0l52.69,52.68A2,2,0,0,1,225.42,86.1Z"}}]})(i)}const YR="@open-pioneer/basemap-switcher",yu=jn.bind(void 0,YR);function hf(i,t){var e=Object.keys(i);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(i);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(i,s).enumerable})),e.push.apply(e,n)}return e}function H(i){for(var t=1;ti.length)&&(t=i.length);for(var e=0,n=new Array(t);e=0)&&Object.prototype.propertyIsEnumerable.call(i,n)&&(e[n]=i[n])}return e}var JR=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function QR(i){var t=i.defaultInputValue,e=t===void 0?"":t,n=i.defaultMenuIsOpen,s=n===void 0?!1:n,r=i.defaultValue,a=r===void 0?null:r,o=i.inputValue,l=i.menuIsOpen,h=i.onChange,c=i.onInputChange,u=i.onMenuClose,d=i.onMenuOpen,f=i.value,g=Ri(i,JR),m=C.useState(o!==void 0?o:e),p=Ci(m,2),_=p[0],v=p[1],y=C.useState(l!==void 0?l:s),x=Ci(y,2),b=x[0],E=x[1],w=C.useState(f!==void 0?f:a),M=Ci(w,2),T=M[0],A=M[1],G=C.useCallback(function(z,st){typeof h=="function"&&h(z,st),A(z)},[h]),V=C.useCallback(function(z,st){var rt;typeof c=="function"&&(rt=c(z,st)),v(rt!==void 0?rt:z)},[c]),j=C.useCallback(function(){typeof d=="function"&&d(),E(!0)},[d]),tt=C.useCallback(function(){typeof u=="function"&&u(),E(!1)},[u]),L=o!==void 0?o:_,k=l!==void 0?l:b,F=f!==void 0?f:T;return H(H({},g),{},{inputValue:L,menuIsOpen:k,onChange:G,onInputChange:V,onMenuClose:tt,onMenuOpen:j,value:F})}function tT(i,t){if(!(i instanceof t))throw new TypeError("Cannot call a class as a function")}function cf(i,t){for(var e=0;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function sT(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function rT(i,t){if(t&&(kn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return sT(i)}function aT(i){var t=nT();return function(){var n=Oo(i),s;if(t){var r=Oo(this).constructor;s=Reflect.construct(n,arguments,r)}else s=n.apply(this,arguments);return rT(this,s)}}function oT(i){if(Array.isArray(i))return Wh(i)}function lT(i){if(typeof Symbol<"u"&&i[Symbol.iterator]!=null||i["@@iterator"]!=null)return Array.from(i)}function hT(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xu(i){return oT(i)||lT(i)||ym(i)||hT()}function cT(i,t){return t||(t=i.slice(0)),Object.freeze(Object.defineProperties(i,{raw:{value:Object.freeze(t)}}))}const uT=Math.min,dT=Math.max,Ao=Math.round,Xa=Math.floor,Lo=i=>({x:i,y:i});function fT(i){return{...i,top:i.y,left:i.x,right:i.x+i.width,bottom:i.y+i.height}}function xm(i){return Em(i)?(i.nodeName||"").toLowerCase():"#document"}function ze(i){var t;return(i==null||(t=i.ownerDocument)==null?void 0:t.defaultView)||window}function bm(i){var t;return(t=(Em(i)?i.ownerDocument:i.document)||window.document)==null?void 0:t.documentElement}function Em(i){return i instanceof Node||i instanceof ze(i).Node}function Xh(i){return i instanceof Element||i instanceof ze(i).Element}function bu(i){return i instanceof HTMLElement||i instanceof ze(i).HTMLElement}function uf(i){return typeof ShadowRoot>"u"?!1:i instanceof ShadowRoot||i instanceof ze(i).ShadowRoot}function Cm(i){const{overflow:t,overflowX:e,overflowY:n,display:s}=Eu(i);return/auto|scroll|overlay|hidden|clip/.test(t+n+e)&&!["inline","contents"].includes(s)}function gT(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function mT(i){return["html","body","#document"].includes(xm(i))}function Eu(i){return ze(i).getComputedStyle(i)}function pT(i){if(xm(i)==="html")return i;const t=i.assignedSlot||i.parentNode||uf(i)&&i.host||bm(i);return uf(t)?t.host:t}function Mm(i){const t=pT(i);return mT(t)?i.ownerDocument?i.ownerDocument.body:i.body:bu(t)&&Cm(t)?t:Mm(t)}function Fo(i,t,e){var n;t===void 0&&(t=[]),e===void 0&&(e=!0);const s=Mm(i),r=s===((n=i.ownerDocument)==null?void 0:n.body),a=ze(s);return r?t.concat(a,a.visualViewport||[],Cm(s)?s:[],a.frameElement&&e?Fo(a.frameElement):[]):t.concat(s,Fo(s,[],e))}function _T(i){const t=Eu(i);let e=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const s=bu(i),r=s?i.offsetWidth:e,a=s?i.offsetHeight:n,o=Ao(e)!==r||Ao(n)!==a;return o&&(e=r,n=a),{width:e,height:n,$:o}}function Cu(i){return Xh(i)?i:i.contextElement}function sh(i){const t=Cu(i);if(!bu(t))return Lo(1);const e=t.getBoundingClientRect(),{width:n,height:s,$:r}=_T(t);let a=(r?Ao(e.width):e.width)/n,o=(r?Ao(e.height):e.height)/s;return(!a||!Number.isFinite(a))&&(a=1),(!o||!Number.isFinite(o))&&(o=1),{x:a,y:o}}const vT=Lo(0);function yT(i){const t=ze(i);return!gT()||!t.visualViewport?vT:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function xT(i,t,e){return t===void 0&&(t=!1),!e||t&&e!==ze(i)?!1:t}function df(i,t,e,n){t===void 0&&(t=!1),e===void 0&&(e=!1);const s=i.getBoundingClientRect(),r=Cu(i);let a=Lo(1);t&&(n?Xh(n)&&(a=sh(n)):a=sh(i));const o=xT(r,e,n)?yT(r):Lo(0);let l=(s.left+o.x)/a.x,h=(s.top+o.y)/a.y,c=s.width/a.x,u=s.height/a.y;if(r){const d=ze(r),f=n&&Xh(n)?ze(n):n;let g=d.frameElement;for(;g&&n&&f!==d;){const m=sh(g),p=g.getBoundingClientRect(),_=Eu(g),v=p.left+(g.clientLeft+parseFloat(_.paddingLeft))*m.x,y=p.top+(g.clientTop+parseFloat(_.paddingTop))*m.y;l*=m.x,h*=m.y,c*=m.x,u*=m.y,l+=v,h+=y,g=ze(g).frameElement}}return fT({width:c,height:u,x:l,y:h})}function bT(i,t){let e=null,n;const s=bm(i);function r(){clearTimeout(n),e&&e.disconnect(),e=null}function a(o,l){o===void 0&&(o=!1),l===void 0&&(l=1),r();const{left:h,top:c,width:u,height:d}=i.getBoundingClientRect();if(o||t(),!u||!d)return;const f=Xa(c),g=Xa(s.clientWidth-(h+u)),m=Xa(s.clientHeight-(c+d)),p=Xa(h),v={rootMargin:-f+"px "+-g+"px "+-m+"px "+-p+"px",threshold:dT(0,uT(1,l))||1};let y=!0;function x(b){const E=b[0].intersectionRatio;if(E!==l){if(!y)return a();E?a(!1,E):n=setTimeout(()=>{a(!1,1e-7)},100)}y=!1}try{e=new IntersectionObserver(x,{...v,root:s.ownerDocument})}catch{e=new IntersectionObserver(x,v)}e.observe(i)}return a(!0),r}function ET(i,t,e,n){n===void 0&&(n={});const{ancestorScroll:s=!0,ancestorResize:r=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:o=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,h=Cu(i),c=s||r?[...h?Fo(h):[],...Fo(t)]:[];c.forEach(_=>{s&&_.addEventListener("scroll",e,{passive:!0}),r&&_.addEventListener("resize",e)});const u=h&&o?bT(h,e):null;let d=-1,f=null;a&&(f=new ResizeObserver(_=>{let[v]=_;v&&v.target===h&&f&&(f.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{f&&f.observe(t)})),e()}),h&&!l&&f.observe(h),f.observe(t));let g,m=l?df(i):null;l&&p();function p(){const _=df(i);m&&(_.x!==m.x||_.y!==m.y||_.width!==m.width||_.height!==m.height)&&e(),m=_,g=requestAnimationFrame(p)}return e(),()=>{c.forEach(_=>{s&&_.removeEventListener("scroll",e),r&&_.removeEventListener("resize",e)}),u&&u(),f&&f.disconnect(),f=null,l&&cancelAnimationFrame(g)}}var Hh=C.useLayoutEffect,CT=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Do=function(){};function MT(i,t){return t?t[0]==="-"?i+t:i+"__"+t:i}function wT(i,t){for(var e=arguments.length,n=new Array(e>2?e-2:0),s=2;s-1}function ST(i){return El(i)?window.innerHeight:i.clientHeight}function Sm(i){return El(i)?window.pageYOffset:i.scrollTop}function ko(i,t){if(El(i)){window.scrollTo(0,t);return}i.scrollTop=t}function IT(i){var t=getComputedStyle(i),e=t.position==="absolute",n=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var s=i;s=s.parentElement;)if(t=getComputedStyle(s),!(e&&t.position==="static")&&n.test(t.overflow+t.overflowY+t.overflowX))return s;return document.documentElement}function RT(i,t,e,n){return e*((i=i/n-1)*i*i+1)+t}function Ha(i,t){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Do,s=Sm(i),r=t-s,a=10,o=0;function l(){o+=a;var h=RT(o,s,r,e);ko(i,h),oe.bottom?ko(i,Math.min(t.offsetTop+t.clientHeight-i.offsetHeight+s,i.scrollHeight)):n.top-s1?e-1:0),s=1;s=g)return{placement:"bottom",maxHeight:t};if(T>=g&&!a)return r&&Ha(l,A,V),{placement:"bottom",maxHeight:t};if(!a&&T>=n||a&&w>=n){r&&Ha(l,A,V);var j=a?w-x:T-x;return{placement:"bottom",maxHeight:j}}if(s==="auto"||a){var tt=t,L=a?E:M;return L>=n&&(tt=Math.min(L-x-o,t)),{placement:"top",maxHeight:tt}}if(s==="bottom")return r&&ko(l,A),{placement:"bottom",maxHeight:t};break;case"top":if(E>=g)return{placement:"top",maxHeight:t};if(M>=g&&!a)return r&&Ha(l,G,V),{placement:"top",maxHeight:t};if(!a&&M>=n||a&&E>=n){var k=t;return(!a&&M>=n||a&&E>=n)&&(k=a?E-b:M-b),r&&Ha(l,G,V),{placement:"top",maxHeight:k}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(s,'".'))}return h}function VT(i){var t={bottom:"top",top:"bottom"};return i?t[i]:"bottom"}var Rm=function(t){return t==="auto"?"bottom":t},zT=function(t,e){var n,s=t.placement,r=t.theme,a=r.borderRadius,o=r.spacing,l=r.colors;return H((n={label:"menu"},ar(n,VT(s),"100%"),ar(n,"position","absolute"),ar(n,"width","100%"),ar(n,"zIndex",1),n),e?{}:{backgroundColor:l.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:o.menuGutter,marginTop:o.menuGutter})},Tm=C.createContext(null),BT=function(t){var e=t.children,n=t.minMenuHeight,s=t.maxMenuHeight,r=t.menuPlacement,a=t.menuPosition,o=t.menuShouldScrollIntoView,l=t.theme,h=C.useContext(Tm)||{},c=h.setPortalPlacement,u=C.useRef(null),d=C.useState(s),f=Ci(d,2),g=f[0],m=f[1],p=C.useState(null),_=Ci(p,2),v=_[0],y=_[1],x=l.spacing.controlHeight;return Hh(function(){var b=u.current;if(b){var E=a==="fixed",w=o&&!E,M=GT({maxHeight:s,menuEl:b,minHeight:n,placement:r,shouldScroll:w,isFixedPosition:E,controlHeight:x});m(M.maxHeight),y(M.placement),c?.(M.placement)}},[s,r,a,o,n,c,x]),e({ref:u,placerProps:H(H({},t),{},{placement:v||Rm(r),maxHeight:g})})},jT=function(t){var e=t.children,n=t.innerRef,s=t.innerProps;return W("div",K({},Pt(t,"menu",{menu:!0}),{ref:n},s),e)},$T=jT,UT=function(t,e){var n=t.maxHeight,s=t.theme.spacing.baseUnit;return H({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},e?{}:{paddingBottom:s,paddingTop:s})},WT=function(t){var e=t.children,n=t.innerProps,s=t.innerRef,r=t.isMulti;return W("div",K({},Pt(t,"menuList",{"menu-list":!0,"menu-list--is-multi":r}),{ref:s},n),e)},Pm=function(t,e){var n=t.theme,s=n.spacing.baseUnit,r=n.colors;return H({textAlign:"center"},e?{}:{color:r.neutral40,padding:"".concat(s*2,"px ").concat(s*3,"px")})},XT=Pm,HT=Pm,YT=function(t){var e=t.children,n=e===void 0?"No options":e,s=t.innerProps,r=Ri(t,kT);return W("div",K({},Pt(H(H({},r),{},{children:n,innerProps:s}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),s),n)},qT=function(t){var e=t.children,n=e===void 0?"Loading...":e,s=t.innerProps,r=Ri(t,NT);return W("div",K({},Pt(H(H({},r),{},{children:n,innerProps:s}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),s),n)},ZT=function(t){var e=t.rect,n=t.offset,s=t.position;return{left:e.left,position:s,top:n,width:e.width,zIndex:1}},KT=function(t){var e=t.appendTo,n=t.children,s=t.controlElement,r=t.innerProps,a=t.menuPlacement,o=t.menuPosition,l=C.useRef(null),h=C.useRef(null),c=C.useState(Rm(a)),u=Ci(c,2),d=u[0],f=u[1],g=C.useMemo(function(){return{setPortalPlacement:f}},[]),m=C.useState(null),p=Ci(m,2),_=p[0],v=p[1],y=C.useCallback(function(){if(s){var w=TT(s),M=o==="fixed"?0:window.pageYOffset,T=w[d]+M;(T!==_?.offset||w.left!==_?.rect.left||w.width!==_?.rect.width)&&v({offset:T,rect:w})}},[s,o,d,_?.offset,_?.rect.left,_?.rect.width]);Hh(function(){y()},[y]);var x=C.useCallback(function(){typeof h.current=="function"&&(h.current(),h.current=null),s&&l.current&&(h.current=ET(s,l.current,y,{elementResize:"ResizeObserver"in window}))},[s,y]);Hh(function(){x()},[x]);var b=C.useCallback(function(w){l.current=w,x()},[x]);if(!e&&o!=="fixed"||!_)return null;var E=W("div",K({ref:b},Pt(H(H({},t),{},{offset:_.offset,position:o,rect:_.rect}),"menuPortal",{"menu-portal":!0}),r),n);return W(Tm.Provider,{value:g},e?Ff.createPortal(E,e):E)},JT=function(t){var e=t.isDisabled,n=t.isRtl;return{label:"container",direction:n?"rtl":void 0,pointerEvents:e?"none":void 0,position:"relative"}},QT=function(t){var e=t.children,n=t.innerProps,s=t.isDisabled,r=t.isRtl;return W("div",K({},Pt(t,"container",{"--is-disabled":s,"--is-rtl":r}),n),e)},tP=function(t,e){var n=t.theme.spacing,s=t.isMulti,r=t.hasValue,a=t.selectProps.controlShouldRenderValue;return H({alignItems:"center",display:s&&r&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},e?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(n.baseUnit*2,"px")})},eP=function(t){var e=t.children,n=t.innerProps,s=t.isMulti,r=t.hasValue;return W("div",K({},Pt(t,"valueContainer",{"value-container":!0,"value-container--is-multi":s,"value-container--has-value":r}),n),e)},iP=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},nP=function(t){var e=t.children,n=t.innerProps;return W("div",K({},Pt(t,"indicatorsContainer",{indicators:!0}),n),e)},pf,sP=["size"],rP=["innerProps","isRtl","size"],aP={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Om=function(t){var e=t.size,n=Ri(t,sP);return W("svg",K({height:e,width:e,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:aP},n))},Mu=function(t){return W(Om,K({size:20},t),W("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Am=function(t){return W(Om,K({size:20},t),W("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Lm=function(t,e){var n=t.isFocused,s=t.theme,r=s.spacing.baseUnit,a=s.colors;return H({label:"indicatorContainer",display:"flex",transition:"color 150ms"},e?{}:{color:n?a.neutral60:a.neutral20,padding:r*2,":hover":{color:n?a.neutral80:a.neutral40}})},oP=Lm,lP=function(t){var e=t.children,n=t.innerProps;return W("div",K({},Pt(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),e||W(Am,null))},hP=Lm,cP=function(t){var e=t.children,n=t.innerProps;return W("div",K({},Pt(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),e||W(Mu,null))},uP=function(t,e){var n=t.isDisabled,s=t.theme,r=s.spacing.baseUnit,a=s.colors;return H({label:"indicatorSeparator",alignSelf:"stretch",width:1},e?{}:{backgroundColor:n?a.neutral10:a.neutral20,marginBottom:r*2,marginTop:r*2})},dP=function(t){var e=t.innerProps;return W("span",K({},e,Pt(t,"indicatorSeparator",{"indicator-separator":!0})))},fP=Ep(pf||(pf=cT([` diff --git a/starter/docs/assets/navigation.js b/starter/docs/assets/navigation.js index 83d94275e..f3686418f 100644 --- a/starter/docs/assets/navigation.js +++ b/starter/docs/assets/navigation.js @@ -1 +1 @@ -window.navigationData = "data:application/octet-stream;base64,H4sIAAAAAAAAA4uuVipJrShRslJyL0pNLUktUtJRKkgsyVCyUsrMK0ktSktMTi3Wh8rpZZTk5ijpKGVn5qUoWRmZmtXqwLUHZ+YW5KSGZjrn5xbk56XmlSAMSivNSy7JzM8r1sdQhGqimUltLACuwSVLkQAAAA==" \ No newline at end of file +window.navigationData = "data:application/octet-stream;base64,H4sIAAAAAAAAA4uuVipJrShRslJyL0pNLUktUtJRKkgsyVCyUsrMK0ktSktMTi3Wh8rpZZTk5ijpKGVn5qUoWRmZmtXqwLUHZ+YW5KSGZjrn5xbk56XmlQQU5RcUYzUNu1KSDEeYm1aal1ySmZ+HxVhUE81MamMBzAAq+u4AAAA=" \ No newline at end of file diff --git a/starter/docs/assets/search.js b/starter/docs/assets/search.js index 4120cac5a..cdde47f92 100644 --- a/starter/docs/assets/search.js +++ b/starter/docs/assets/search.js @@ -1 +1 @@ -window.searchData = "data:application/octet-stream;base64,H4sIAAAAAAAAA4WRzU7DMBCE32W4rtLElKr1lQPijOBiRShKtmCR2JHtFqQo746cNnURQRy9/mZmfwY4++kh1YAPbRpIcbchmKpjSDw45sAOhINrIaFNYLevavar81f2HroWhLqtvGcPCYx0scrX24vXWxT853QzU1d+hL5ybMJVPylis74EPOmub/lZ39uutyYK5rD9wdRBW+NXv5il/kuCNg1/QQ44svPaGkiI7DbbgbDX3DZxYadcQm27LqaV578XroN1kTghqxykctpl23xblqRmwVSfChNVgFSxQBU/KAFSYoESEzV1fmQXuHk8TaDUvPgBr+epinllAwrIYRzTDPEVbd/mwydVnlT5Hyo/bfeg63SBpBdJL5b0JaHXPbfaMKQqx/EbWOFl45oCAAA="; \ No newline at end of file +window.searchData = "data:application/octet-stream;base64,H4sIAAAAAAAAA5WTyW7CMBRF/+WytUKmIuptF1V3lWi7saIKhQdYTezINoMU5d+rBIJBMh2WyTv3vtEtjD5YcNHiS6oVePowY1DLmsDxbIgcGTDsTAUOqRyZ9bIkOz2Hoq2rKzCU1dJasuBAxy5WcT6/eG16wW9Ok5G68mNoloaUu6rnKsVVtQtZNxW9yyddN1qRcq9GNzaUMkz+2EsSp/klk6Oje9OLrT78031yoww3eacNX8osv9/ypZ71TpVOahUoJ9RnwSDVio7gLfZkrNQKHGmURY9gWEuqVv2RnPIylLqu+2zFOfZBpdOmJ07INAYTMUuyaD7LioKJUTEEhh8DloCJJIQlN1gKJtIQlt5gGZjIQlh2g+VgIg9h+YANo9iTcbR6OY1EiPF6W3yex5SMO2iRgLdd54fSf/W2m/H1eFXsVfEdlR3WtZOlX6nX516f/1XfnF6BN0m9SXrHpD9Tp+1wpl6YeWEWEhYMjWyokorARdF137v0Vm1dBAAA"; \ No newline at end of file diff --git a/starter/docs/functions/SimpleUiComponent.html b/starter/docs/functions/SimpleUiComponent.html index 132da4097..5a96d9e05 100644 --- a/starter/docs/functions/SimpleUiComponent.html +++ b/starter/docs/functions/SimpleUiComponent.html @@ -1 +1 @@ -SimpleUiComponent | sample-package - v0.0.0

Function SimpleUiComponent

Generated using TypeDoc

\ No newline at end of file +SimpleUiComponent | sample-package - v0.0.0

Function SimpleUiComponent

Generated using TypeDoc

\ No newline at end of file diff --git a/starter/docs/index.html b/starter/docs/index.html index b05186f2d..f65a0da2f 100644 --- a/starter/docs/index.html +++ b/starter/docs/index.html @@ -1,3 +1,4 @@ sample-package - v0.0.0

sample-package - v0.0.0

Index

Interfaces

Functions

Generated using TypeDoc

\ No newline at end of file +

Generated using TypeDoc

\ No newline at end of file diff --git a/starter/docs/interfaces/Greeter.html b/starter/docs/interfaces/Greeter.html index c92cdd912..d672620ef 100644 --- a/starter/docs/interfaces/Greeter.html +++ b/starter/docs/interfaces/Greeter.html @@ -1,4 +1,4 @@ Greeter | sample-package - v0.0.0

Interface Greeter

The greeter produces a greeting message.

-
interface Greeter {
    greet(): string;
}

Hierarchy

  • DeclaredService<"sample-package.Greeter">
    • Greeter

Methods

interface Greeter {
    greet(): string;
}

Hierarchy

  • DeclaredService<"sample-package.Greeter">
    • Greeter

Methods

Methods

Generated using TypeDoc

\ No newline at end of file +

Returns string

Generated using TypeDoc

\ No newline at end of file diff --git a/starter/docs/interfaces/SimpleUiComponentProps.html b/starter/docs/interfaces/SimpleUiComponentProps.html new file mode 100644 index 000000000..a08b97748 --- /dev/null +++ b/starter/docs/interfaces/SimpleUiComponentProps.html @@ -0,0 +1,2 @@ +SimpleUiComponentProps | sample-package - v0.0.0

Interface SimpleUiComponentProps

interface SimpleUiComponentProps {
    textToShow: string;
}

Hierarchy

  • CommonComponentProps
    • SimpleUiComponentProps

Properties

Properties

textToShow: string

Generated using TypeDoc

\ No newline at end of file diff --git a/starter/samples/map-sample/index.html b/starter/samples/map-sample/index.html index c6421e6ff..ba60da9bb 100644 --- a/starter/samples/map-sample/index.html +++ b/starter/samples/map-sample/index.html @@ -15,7 +15,7 @@ max-height: 100%; } - +