@geops/rvf-mobility-web-component 0.1.71 → 0.1.72

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/CHANGELOG.md CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [0.1.72](https://github.com/geops/rvf-mobility-web-component/compare/v0.1.71...v0.1.72) (2025-10-22)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * active use of graphs ([a639f1b](https://github.com/geops/rvf-mobility-web-component/commit/a639f1b34ef52046d37af737612ab21f038bb876))
11
+ * use current date for publicAt parameter in MOCO API ([4daa14c](https://github.com/geops/rvf-mobility-web-component/commit/4daa14c6ef8d2387d00dd179f6bbf6b01e2298d9))
12
+
5
13
  ### [0.1.71](https://github.com/geops/rvf-mobility-web-component/compare/v0.1.70...v0.1.71) (2025-10-16)
6
14
 
7
15
 
package/index.js CHANGED
@@ -1547,7 +1547,7 @@ ${String(r)}`)}catch(t){return t}},O$=r=>{if(typeof r!="object"||r===null)throw
1547
1547
  left: unset;
1548
1548
  bottom: unset;
1549
1549
  background:unset;
1550
- }`;function pp1({options:r,...t}){let{map:e}=Ot(),[i,o]=Ft(),n=ye(()=>i?new dZ({target:i,...r}):null,[r,i]);return et(()=>{if(!(!e||!n))return e.addControl(n),()=>{e&&n&&e.removeControl(n)}},[e,n]),W("div",{ref:l=>{o(l)},...t,children:W("style",{children:fX})})}var VF=pp1;function Lp1({...r}){let{isSearchOpen:t,setIsSearchOpen:e}=Ot(),{t:i}=L3(),o=i6(()=>{e(!t)},[t,e]);return W(U6,{title:i("search_menu_title"),...r,onClick:o,selected:t,children:W(AL,{})})}var GF=ht(Lp1);function Cp1({...r}){return W("svg",{fill:"none",height:24,stroke:"currentColor",strokeWidth:1.5,viewBox:"0 0 24 24",width:24,xmlns:"http://www.w3.org/2000/svg",...r,children:W("path",{d:"M7.217 10.907a2.25 2.25 0 1 0 0 2.186m0-2.186c.18.324.283.696.283 1.093s-.103.77-.283 1.093m0-2.186 9.566-5.314m-9.566 7.5 9.566 5.314m0 0a2.25 2.25 0 1 0 3.935 2.186 2.25 2.25 0 0 0-3.935-2.186Zm0-12.814a2.25 2.25 0 1 0 3.933-2.185 2.25 2.25 0 0 0-3.933 2.185Z",strokeLinecap:"round",strokeLinejoin:"round"})})}var jF=Cp1;function gp1({...r}){let{isShareMenuOpen:t,setIsShareMenuOpen:e}=Ot(),{t:i}=L3(),o=i6(()=>{e(!t)},[t,e]);return W(U6,{title:i("share_menu_title"),...r,onClick:o,selected:t,children:W(jF,{})})}var qF=ht(gp1);function mp1(r){let{baseLayer:t,map:e,setStationsLayer:i}=Ot(),o=ye(()=>t?new N6({layersFilter:({metadata:n})=>n?.["tralis.variable"]==="station"||n?.["general.filter"]==="stations",maplibreLayer:t,name:bg,...r||{}}):null,[t,r]);return et(()=>{if(!(!e||!o))return e.addLayer(o),i(o),()=>{e.removeLayer(o)}},[e,i,o]),null}var pX=ht(mp1);var vp1=()=>({layersFilter:({metadata:r})=>r?.["general.filter"]==="stations",minZoom:10});function yp1(r){return W(pX,{...vp1,...r})}var wA=ht(yp1);function _p1(r){return W("svg",{fill:"currentColor",height:"24px",version:"1.1",viewBox:"0 0 24 24",width:"24px",xmlns:"http://www.w3.org/2000/svg",...r,children:W("path",{d:"M19,10.9999 C19.5522847,10.9999 20,11.4476153 20,11.9999 C20,12.5521847 19.5522847,12.9999 19,12.9999 L5,12.9999 C4.44771525,12.9999 4,12.5521847 4,11.9999 C4,11.4476153 4.44771525,10.9999 5,10.9999 L19,10.9999 Z"})})}var KF=_p1;function xp1(r){return W("svg",{fill:"currentColor",height:"24px",version:"1.1",viewBox:"0 0 24 24",width:"24px",xmlns:"http://www.w3.org/2000/svg",...r,children:W("path",{d:"M12,4 C12.5522847,4 13,4.44771525 13,5 L13,11 L19,11 C19.5128358,11 19.9355072,11.3860402 19.9932723,11.8833789 L20,12 C20,12.5522847 19.5522847,13 19,13 L13,13 L13,19 C13,19.5128358 12.6139598,19.9355072 12.1166211,19.9932723 L12,20 C11.4477153,20 11,19.5522847 11,19 L11,13 L5,13 C4.48716416,13 4.06449284,12.6139598 4.00672773,12.1166211 L4,12 C4,11.4477153 4.44771525,11 5,11 L11,11 L11,5 C11,4.48716416 11.3860402,4.06449284 11.8833789,4.00672773 Z"})})}var WF=xp1;function wp1(){let{map:r}=Ot(),[t,e]=Ft(!1),[i,o]=Ft(!1),{t:n}=L3(),l=i6(()=>{if(!r?.getView())return;let d=r.getView(),L=d.getZoom();d.setZoom(L+1)},[r]),A=i6(()=>{if(!r?.getView())return;let d=r.getView(),L=d.getZoom();d.setZoom(L-1)},[r]);return et(()=>{let d=r?.on("moveend",()=>{let L=r.getView(),C=L.getZoom(),y=L.getMaxZoom(),E=L.getMinZoom();y&&C===Number(y)?e(!0):e(!1),E&&C===Number(E)?o(!0):o(!1)});return()=>{sr(d)}},[r]),W(m5,{children:[W(U6,{disabled:t,onClick:l,title:n("zoomin"),children:W(WF,{})}),W(U6,{disabled:i,onClick:A,title:n("zoomout"),children:W(KF,{})})]})}var $F=ht(wp1);var LX={style:{width:"calc(100% - 60px)"}},bp1=()=>({layersFilter:({metadata:r})=>r?.["general.filter"]==="stations"});function Mp1({className:r,...t}){let{hasDetails:e,hasGeolocation:i,hasLayerTree:o,hasPrint:n,hasRealtime:l,hasSearch:A,hasShare:d,hasToolbar:L,isEmbed:C,isOverlayOpen:y,isSearchOpen:E,mainlink:B}=Ot();return W("div",{className:Fe("relative flex size-full flex-col text-base @lg/main:flex-row-reverse",r),...t,children:[W(kF,{}),W(wA,{minZoom:10,...bp1}),W(HF,{}),W(OF,{}),W(DF,{}),W(QF,{}),W(vB,{className:"relative flex-1 overflow-visible",children:[C&&W(dB,{}),B&&W(RF,{className:"absolute inset-x-2 bottom-8 z-10"}),W("div",{className:"pointer-events-none absolute inset-x-2 bottom-2 z-10 flex items-end justify-between gap-2 text-[10px]",children:[W(VF,{className:"bg-slate-50/70"}),W(Rg,{className:"pointer-events-auto bg-slate-50/70"})]}),W("div",{className:"absolute top-2 right-2 z-10 flex",children:i&&W(zg,{title:"Geolokalisierung"})}),W("div",{className:"absolute right-2 bottom-10 z-10 flex flex-col justify-between gap-2",children:W($F,{})}),!L&&A&&W("div",{className:Fe("absolute top-2 right-2 left-2 z-10 max-w-96",y&&"@lg:left-68"),children:W(Wc,{})})]}),W("div",{className:"pointer-events-none absolute top-2 bottom-2 left-2 z-10 flex flex-col gap-2",children:[L&&W("div",{className:"pointer-events-none relative z-10 w-fit rounded-2xl bg-black/10 p-0 backdrop-blur-sm *:pointer-events-auto",children:[A&&W("div",{className:Fe("absolute top-12 left-0 w-0 p-0 opacity-0 transition-all @sm:top-0 @sm:left-[calc(100%-43px)] @md:left-[calc(100%-47px)]",E?"w-64 opacity-100":""),children:W(Wc,{className:"border-grey @container m-0 h-[40px] rounded-2xl border p-2 px-4 text-base @sm/main:h-[44px] @sm/main:rounded-l-none @sm/main:rounded-r-2xl @md/main:h-[48px]",inputClassName:"h-6 text-base",inputContainerClassName:"border-none",resultClassName:"text-base **:hover:cursor-pointer hover:text-red-500 p-2",resultsContainerClassName:"@container rounded-b-2xl max-h-[200px] overflow-y-auto border border-grey border-t-0 ",withResultsClassName:"text-base !rounded-b-none"})}),W("div",{className:Fe("border-grey relative flex gap-[1px] overflow-hidden rounded-2xl border @sm/main:h-[44px] @md/main:h-[48px]","*:size-[38px] *:rounded-none *:border-none *:@sm/main:size-[42px] *:@md/main:!size-[46px]","*:first:!rounded-l-2xl","*:last:!rounded-r-2xl",E?"@sm:rounded-r-none @sm:border-r-0 @sm:*:last:!rounded-r-none @sm:*:last:border-r-0":""),children:[n&&W(pB,{}),d&&W(qF,{}),o&&W(mB,{}),A&&W(GF,{})]})]}),W("div",{className:Fe("pointer-events-none flex w-0 flex-1 flex-col overflow-hidden rounded-2xl",y?"@lg:min-w-[320px]":"p-0"),style:{containerType:"normal"},children:W(kg,{className:"border-grey @container/overlay pointer-events-auto relative hidden flex-col overflow-hidden rounded-2xl border bg-white text-base shadow-lg @lg:flex",ScrollableHandlerProps:LX,children:W(Hy,{hasDetails:e,hasLayerTree:o,hasPrint:n,hasRealtime:l,hasSearch:!1,hasShare:d})})})]}),W(kg,{className:y?"absolute bottom-0 z-20 flex max-h-[70%] min-h-[75px] w-full flex-col border-t bg-white @lg:hidden":"@lg:hidden",ScrollableHandlerProps:LX,children:W(Hy,{hasDetails:e,hasLayerTree:o,hasPrint:n,hasRealtime:l,hasSearch:!1,hasShare:d})})]})}var Ky=ht(Mp1);var XF,Bp1=(r,t)=>{let e=t?.getView()?.getZoom(),i=r.get("minZoom"),o=r.get("maxZoom");return i>e||e>o};function Sp1(r){let{apikey:t,baseLayer:e,map:i,mapsetbbox:o,mapsetplanid:n,mapsettags:l,mapsettenants:A,mapsettimestamp:d,mapseturl:L,setMapsetLayer:C}=Ot(),y=ye(()=>{if(!e||!i)return null;let E;return o?(E=o?.split(",").map(B=>Number(B.trim())),E.length===4&&!E.some(B=>Number.isNaN(B))&&(E=F4(E,"EPSG:3857","EPSG:4326"))):i.getView()?.getCenter()&&i.getSize()[0]>0&&i.getSize()[1]>0&&(E=F4(i.getView()?.calculateExtent(),"EPSG:3857","EPSG:4326")),new OM({apiKey:t,bbox:E,mapseturl:L||void 0,name:Bg,planId:n??void 0,tags:l?.split(",").map(B=>B.trim()),tenants:A?.split(",").map(B=>B.trim()),timestamp:d||new Date().toISOString(),zoom:i.getView().getZoom(),...r||{}})},[e,i,o,t,L,n,l,A,d,r]);return et(()=>{C?.(y)},[y,C,i]),et(()=>{if(!(!i||!y))return i.addLayer(y),()=>{i.removeLayer(y)}},[i,y]),et(()=>{let E=i?.getView();if(!E||!y)return;let B=()=>{n||!y.get("visible")||(clearTimeout(XF),XF=setTimeout(()=>{let Q=F4(E.calculateExtent(i.getSize()),"EPSG:3857","EPSG:4326");y.bbox=Q,y.zoom=E.getZoom()},100))},Z=[y.on("change:visible",()=>{y.get("visible")&&B()}),E.on("change:center",B),E.on("change:resolution",B)];return()=>{clearTimeout(XF),sr(Z)}},[i,y,n]),et(()=>{let E=null;return y&&(E=y.on("updatefeatures",()=>{let B=y.getSource()?.getFeatures();B?.length&&B.forEach(Z=>{let Q=Z.getStyleFunction();Q&&Z.setStyle((V,G)=>Bp1(V,y.getMapInternal())?null:Q(Z,G))})})),()=>{sr(E)}},[y]),null}var YF=ht(Sp1);function Ep1(r){let{apikey:t,baseLayer:e,map:i,notificationat:o,notificationtenant:n,notificationurl:l,previewNotifications:A,setNotificationsLayer:d}=Ot(),L=ye(()=>{if(!e)return null;let C=new QM({apiKey:t,apiParameters:{contentMedium:!0},date:o?new Date(o):void 0,maplibreLayer:e,name:Mg,situations:A,tenant:n,url:l,...r||{},loadAll:!A});return A&&!C.getVisible()&&C.setVisible(!0),C},[t,e,o,n,l,A,r]);return et(()=>{d?.(L)},[L,d]),et(()=>{if(!(!i||!L))return i.addLayer(L),()=>{i.removeLayer(L)}},[i,L]),null}var JF=ht(Ep1);var gX=P3(ja(),1);var Tp1=(r,t=new URLSearchParams)=>{let e=r.getView().getZoom(),[i,o]=r.getView().getCenter()||[],n=M4(r.getLayers().getArray()).filter(l=>l.get("name")&&l.getVisible()).map(l=>l.get("name"));return t.set("layers",n.join(",")),i>=0&&t.set("x",i.toFixed(2)),o>=0&&t.set("y",o.toFixed(2)),e>=0&&t.set("z",e.toFixed(1)),t},CX=Tp1;var Ip1=({replaceState:r=!1})=>{let{map:t,setPermalinkUrlSearchParams:e}=Ot(),i=xA(),o=i6(n=>{if(t.get(Vo))return;let l=new URLSearchParams(window.location.search),A=CX(n,l);e(A)},[t,e]);return et(()=>{r&&i&&i!==window.location.href&&!i.includes(encodeURIComponent("{{"))&&window.history.replaceState(null,null,i)},[t,i,r]),et(()=>{let n,l,A,d=(0,gX.default)(o,1e3);return t&&(d(t),n=t?.on("moveend",L=>{d(L.map)}),l=t.once("loadend",L=>{d(L.map),A=M4(L.map.getLayers().getArray()).map(C=>C.on("change:visible",()=>{d(L.map)}))})),()=>{sr(n),sr(l),sr(A)}},[t,o]),null},tP=ht(Ip1);var Fp1=async(r,t,e=0)=>{if(!r)return Promise.reject(new Error("No vehicle provided"));let{geometry:i,properties:{coordinate:o}}=r,n=t.getView(),l=e||n.getZoom(),A=l>0?n.getResolutionForZoom(l):void 0,d=o;if(!d&&i){let{coord:C}=Nd(Date.now(),r,!0);d=C}return d?(n.cancelAnimations(),new Promise(C=>{n.animate({center:d,duration:1e3,easing:RC,resolution:A},y=>{C(y)})})):Promise.reject(new Error("No center found"))},eP=Fp1;var Pp1=(r,t,e)=>t?e?"#dc2626":"#a0a0a0":r===null?"transparent":$p(r,e),mX=Pp1;var Rp1=r=>`bold ${r}px arial`,vX=Rp1;var zp1=(r,t=!1)=>{if(t)return String.fromCodePoint(215);let e=Xp(r);return e==="0"?"":`+${e}`},yX=zp1;var Dp1=16,kp1=window.location?.href?.includes("graphs=true");function Op1(r){let{apikey:t,baseLayer:e,isFollowing:i,isTracking:o,linesNetworkPlanLayer:n,map:l,mots:A,realtimebboxparameters:d,realtimeurl:L,setIsFollowing:C,setIsTracking:y,setRealtimeLayer:E,setStation:B,setStopSequence:Z,stationId:Q,stopSequence:V,tenant:G,trainId:J}=Ot(),[n1,r1]=Ft([]),[m1,w1]=Ft(!1),B1=ye(()=>!t||!L?null:new $M({apiKey:t,bboxParameters:d?.split(" ").reduce((L1,z1)=>{if(!z1)return L1;let[s1,x1]=z1.split("=");return L1[s1]=x1,L1},{}),getMotsByZoom:A?()=>A.split(","):void 0,isQueryable:!0,name:wg,tenant:G,url:L,zIndex:1,...r,styleOptions:{getDelayColor:mX,getDelayFont:vX,getDelayText:yX,getText:Cy,getTextFont:Ly,...r?.styleOptions||{}}}),[t,L,d,A,G,r]);return et(()=>{if(!(!l||!B1))return l.getView()?.getCenter()?l.addLayer(B1):l.once("moveend",()=>{l.addLayer(B1)}),E(B1),()=>{l.removeLayer(B1),E(null)}},[l,E,B1]),et(()=>{V||C(!1)},[V,C]),et(()=>{let g1=[];return o&&C(!1),()=>{sr(g1)}},[o,C]),et(()=>{if(!l)return;let g1=null;return g1=l.getView().on("change:center",L1=>{L1.target.getInteracting()&&(C(!1),y(!1))}),()=>{sr(g1)}},[l,C,y]),et(()=>{let g1=null;return B1&&(B1.engine.useThrottle=!i,B1.engine.isUpdateBboxOnMoveEnd=!i,B1.allowRenderWhenAnimating=!!i),!i||!V||!l||!B1?void 0:(y(!1),(async z1=>{let s1=z1&&B1?.trajectories?.[z1];s1||(s1=(await B1.api.getTrajectory(V.id,B1.mode))?.content),await eP(s1,l,Dp1)===!0&&(g1=setInterval(()=>{eP(B1?.trajectories?.[V.id],l)},1e3))})(V.id),()=>{clearInterval(g1)})},[i,l,B1,V,y]),et(()=>{if(!(!Q||!B1?.api))return B1?.api?.subscribe(`station ${Q}`,({content:g1})=>{g1&&B(g1)}),()=>{B(null),Q&&B1?.api?.unsubscribe(`station ${Q}`)}},[Q,B1?.api,B]),et(()=>{if(!(!J||!B1?.api))return B1.selectedVehicleId=J,B1.highlightTrajectory(J).catch(g1=>{console.error("Error highlighting trajectory:",g1)}),B1?.api?.subscribeStopSequence(J,({content:g1})=>{if(g1){let[L1]=g1;L1&&Z(L1)}}),()=>{Z(null),J&&B1&&(B1.api?.unsubscribeStopSequence(J),B1.api?.unsubscribeFullTrajectory(B1.selectedVehicleId),B1.selectedVehicleId=null,B1.vectorLayer.getSource().clear())}},[J,B1,B1?.api,Z]),et(()=>{if(!l||!e)return;let g1=l.once("rendercomplete",()=>{let L1=e.mapLibreMap?.getStyle()?.metadata,z1=[];for(let s1=0;s1<26;s1++)z1.push(vh(s1,L1?.graphs));r1(z1)});return()=>{sr(g1)}},[l,e,B1]),et(()=>{let g1=n?.on("change:visible",()=>{let L1=n.getVisible();w1(L1)});return w1(n?.getVisible()||!1),()=>{sr(g1)}},[n]),et(()=>{!B1||!n1?.length||(kp1&&m1?B1.engine.graphByZoom=n1:B1.engine.graphByZoom=[],B1.engine.setBbox())},[m1,B1,n1,n]),null}var _X=ht(Op1);var Zp1=new G3({image:new a7({fill:new R0({color:"#000000"}),radius:5}),stroke:new B8({color:"#000000",width:6}),zIndex:2}),Np1=(r,t,e)=>{let i="#ffffff",o=r.get("type"),n=r.get("stroke");return n&&n[0]!=="#"&&(n=`#${n}`),i=n||e?.getBgColor(o,{name:r.get("line_name")}),i=/#ffffff/i.test(i)?"#ff0000":i,[Zp1,new G3({image:new a7({fill:new R0({color:i}),radius:4}),stroke:new B8({color:i,width:4}),zIndex:3})]},xX=Np1;var Up1={0:[0,0,0,0,0,2,2,2,2,2,2,2,2,6,7,7,7],1:[0,0,0,0,0,2,2,2,2,2,2,2,2,6,7,7,7],2:[0,0,0,0,0,2,2,2,2,2,2,2,3,7,12,12,15],3:[0,0,0,0,0,2,2,2,2,2,2,2,2,4,6,6,6],4:[0,0,0,0,0,2,2,2,2,2,2,2,3,7,12,12,15],5:[0,0,0,0,0,2,2,2,2,2,2,2,2,4,7,7,7],6:[0,0,0,0,0,2,2,2,2,2,2,2,2,4,7,7,7],7:[0,0,0,0,0,2,2,2,2,2,2,2,2,4,7,7,7],8:[0,0,0,0,0,2,2,2,2,2,2,2,2,4,6,6,6],9:[0,0,0,0,0,2,2,2,2,2,2,2,3,7,12,12,15]},Qp1=Up1,wX=(r=0,t=0,e=!1)=>{try{let i=So.getTypeIndex(r);return Qp1[i][t]*(e?2:1)}catch{return 1}};var bX='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 42 42" width="42" height="42">%0A <path id="Pfad_1" data-name="Pfad 1" d="M40,20A20,20,0,1,1,20,0,20,20,0,0,1,40,20Z" transform="translate(0 0)" fill="%23353535"/>%0A <path id="Pfad_2" data-name="Pfad 2" d="M25.481,11.843a9.993,9.993,0,0,0-10,9.992c0,7.773,10,14.8,10,14.8s9.992-7.5,9.992-14.8a9.991,9.991,0,0,0-9.992-9.992m0,14.662a4.924,4.924,0,1,1,4.924-4.924A4.93,4.93,0,0,1,25.482,26.5" transform="translate(-5.477 -4.19)" fill="%23fff"/>%0A <path id="Pfad_3" data-name="Pfad 3" d="M12.015,8.124,38.081,34.031,35.4,36.536,9.06,10.527Z" transform="translate(-3.206 -2.874)" fill="%23ec0016"/>%0A <path id="Pfad_4" data-name="Pfad 4" d="M20,3.231A16.769,16.769,0,1,1,3.231,20,16.788,16.788,0,0,1,20,3.231M20,0A20,20,0,1,0,40,20,20,20,0,0,0,20,0" transform="translate(0 0)" fill="%23353535"/>%0A</svg>%0A';var rP={},MX=new Image(42,42);MX.src=bX;var Vp1=(r,t)=>{let e=16;r>e&&(e=22);let i=`${e},${t}`;if(!rP[i]){let o=R7(e*t,e*t),n=o.getContext("2d");if(!n)return null;n.drawImage(MX,0,0,e*t,e*t),rP[i]=o}return rP[i]},iP={},Gp1=(r,t,e)=>{let i=`${r}, ${t}, ${e}`;if(!iP[i]){let o=R7(r*2,r*2);if(o){let n=o.getContext("2d");if(!n)return null;n.beginPath(),n.arc(r,r,t,0,2*Math.PI,!1),n.fillStyle=e,n.filter="blur(1px)",n.fill(),iP[i]=o}}return iP[i]},nP={},jp1=(r,t,e,i,o="#000",n=1)=>{let l=`${r}, ${e}, ${i}, ${o}, ${n}`;if(!nP[l]){let A=R7(Math.ceil(r.length*t),Math.ceil(t+8*n));if(A){let d=A.getContext("2d");if(!d)return null;d.font=e,d.textAlign="left",d.textBaseline="middle",d.font=e,d.fillStyle=i,d.strokeStyle=o,d.lineWidth=1.5*n,d.strokeText(r,0,t),d.fillText(r,0,t),nP[l]=A}}return nP[l]},oP={},qp1=(r,t,e,i,o,n)=>{let l=`${r}, ${t}, ${e}, ${i}, ${o}, ${n}`;if(!oP[l]){let A=R7(r*2,r*2);if(A){let d=A.getContext("2d");if(!d)return null;d.fillStyle=e,i&&(d.lineWidth=1*n,d.strokeStyle="#000000"),d.beginPath(),d.arc(r,r,t,0,2*Math.PI,!1),d.fill(),o&&d.setLineDash([5,3]),i&&d.stroke(),oP[l]=A}}return oP[l]},aP={},Kp1=(r,t,e,i,o,n,l,A)=>{let d=`${r}, ${t}, ${e}, ${i},${o}, ${n}, ${l}`;if(!aP[d]){let L=R7(t*2,t*2);if(L){let C=L.getContext("2d");if(!C)return null;n&&(C.save(),C.textBaseline="middle",C.textAlign="center",C.font=A(e+2,r),C.strokeStyle=o,C.strokeText(r,t,t),C.restore()),C.textBaseline="middle",C.textAlign="center",C.fillStyle=i,C.font=A(e,r),C.strokeStyle=o,C.strokeText(r,t,t),C.fillText(r,t,t),aP[d]=L}}return aP[d]},sP={},Wp1=(r,t,e)=>{let{delayDisplay:i=3e5,delayOutlineColor:o="#000",getBgColor:n=()=>"#000",getDelayColor:l=()=>"#000",getDelayFont:A=P1=>`bold ${P1}px arial, sans-serif`,getDelayText:d=()=>null,getMaxRadiusForStrokeAndDelay:L=()=>7,getMaxRadiusForText:C=()=>10,getRadius:y=()=>0,getText:E=P1=>P1,getTextColor:B=()=>"#000",getTextFont:Z=P1=>`bold ${P1}px arial, sans-serif`,getTextSize:Q=()=>14,hoverVehicleId:V,selectedVehicleId:G,useDelayStyle:J}=e,{pixelRatio:n1=1,zoom:r1}=t,{type:m1}=r.properties,{delay:w1,has_realtime_journey:B1,line:g1,operator_provides_realtime_journey:L1,state:z1,train_id:s1}=r.properties,{color:x1,name:N1,text_color:V1}=g1||{};N1=E(N1);let l2=z1==="JOURNEY_CANCELLED";m1||(m1="Rail"),N1||(N1="I"),V1=B(m1),x1=n(m1,g1),x1&&!x1.startsWith("#")&&(x1=`#${x1}`),V1.startsWith("#")||(V1=`#${V1}`);let p2=Math.min(Math.floor(r1||1),16),o2=!!(V&&V===s1),G1=!!(G&&G===s1),L2=y(m1,p2)*n1,V2=L2>=L()*n1;(o2||G1)&&(L2=V2?L2+5*n1:14*n1);let w2=L2>C()*n1,u1=`${L2}${o2||G1}${B1}`;if(J?u1+=`${L1}${w1}${l2}`:(u1+=`${x1||m1}`,V2&&(u1+=`${l2}${w1}`)),w2&&(u1+=`${N1}${V1}`),!sP[u1]){if(L2===0)return null;let P1=1*n1,F1=L2+2*n1,J1=L2*2,u2=F1*2+P1*2,r2=u2/2,F2=null;V2&&w1!==null&&(F2=Gp1(r2,F1,l(w1,l2)));let k2=null,j2=0;if(V2&&(o2||(w1||0)>=i||l2)){j2=Math.max(l2?19:14,Math.min(l2?19:17,L2*1.2))*n1;let Gt=d(w1,l2);Gt&&(k2=jp1(Gt,j2,A(j2,Gt),l(w1,l2,!0),o,n1))}let R2=null,it;J?it=l(w1,l2):it=x1||n(m1,r);let pt=V2||o2||G1,N2=!!V2&&!!J&&w1===null&&L1==="yes",K1=!!pt&&w2&&!B1&&!l2;K1&&(R2=Vp1(L2,n1));let ce=qp1(r2,L2,it,pt,N2,n1),Vt=k2?.width||K1&&R2.width/2||0,qt=K1&&R2.height/2||0,ot=u2+Vt*2,Qt=u2+qt*2,Lt=R7(ot,Qt);if(Lt){let Gt=Lt.getContext("2d");if(!Gt)return null;let Ht=Vt,re=qt;F2&&Gt.drawImage(F2,Ht,re),ce&&Gt.drawImage(ce,Ht,re);let le=null;if(w2){let ie=Math.max(L2,10),c2=Q(Gt,J1,N1,ie,Z),A1=J?"#000000":V1||B(m1);le=Kp1(N1,r2,c2,A1,it,!!J&&w1===null&&L1==="yes",n1,Z)}le&&Gt.drawImage(le,Ht,re),k2&&Gt.drawImage(k2,Ht+Math.ceil(r2+F1)+P1,re+Math.ceil(r2-j2)),K1&&Gt.drawImage(R2,Ht-R2.width/4,re-R2.height/4),sP[u1]=Lt}}return sP[u1]},BX=Wp1;var SX={bus:25,coach:15,train:30,tram:20},$p1={fullTrajectoryStyle:xX,getMotsByZoom:r=>r<9?["rail"]:null,sort:({properties:{delay:r,type:t}},{properties:{delay:e,type:i}})=>t!==i?SX[t]<SX[i]?-1:1:r===e?0:r<e?-1:1,style:BX,styleOptions:{getBgColor:dy,getMaxRadiusForStrokeAndDelay:()=>4,getMaxRadiusForText:()=>8,getRadius:wX,getTextColor:py}};function Xp1(r){return W(_X,{...$p1,...r})}var Wy=ht(Xp1);var EX=P3(ja(),1);function Yp1({debounceOptions:r,debounceTimeout:t=0,hover:e=!0}){let{map:i,queryablelayers:o,setFeaturesInfos:n,setFeaturesInfosHovered:l,stationsLayer:A,tenant:d}=Ot(),L=i6(async E=>{let B=E.map.getAllLayers().filter(Q=>o.split(",").includes(Q.get("name"))),Z=await XM(E.coordinate,B,5,!0);if(A){let Q=Z?.find(J=>J.layer===A),V=Q?.features||[],[G]=V.filter(J=>J.get("tralis_network")?.includes(d));Q&&(Q.features=G?[G]:[])}return Z},[o,A,d]),C=i6(async E=>{let B=await L(E);l(B);let Z=B.flatMap(Q=>Q.features);E.map.getTargetElement().style.cursor=Z?.length?"pointer":"default"},[L,l]),y=i6(async E=>{let B=await L(E);n(B)},[L,n]);return et(()=>{let E=i?.on("singleclick",y);return()=>{sr(E)}},[i,y]),et(()=>{let E;if(e){let B=C;t&&(B=(0,EX.default)(C,t,r)),E=i?.on("pointermove",B)}return()=>{sr(E)}},[r,t,e,i,C]),null}var lP=Yp1;var TX=(r,t)=>{if(!!t.get("name")&&r!=null){let o=r?.split(",")||[],n=t.get("name"),l=o.includes(n);t.getVisible()!==l&&(t.setVisible(l),t.getLayers&&t.getLayers().getArray().forEach(A=>{A.setVisible(l)}))}t.getLayers&&t.getLayers().getArray().forEach(o=>{TX(r,o)})},cP=TX;var Jp1=(r,t,e)=>{let i=Vi(!1),o=Vi(Dg(e)?.layers);return et(()=>{if(!r)return;let n=t;o.current!==null&&o.current!==void 0&&!i.current&&(n=o.current,i.current=!0),M4(r.getLayers().getArray()).forEach(A=>{cP(n,A)});let l=r.getLayers().on("add",A=>{cP(n,A.element)});return()=>{sr(l)}},[r,t]),null},IX=Jp1;var RX=P3(FX(),1);var tL1=/{{(.*?)}}/g;function PX(r,t){return r.replace(tL1,(e,i,o)=>{for(e=0,o=t,i=i.trim().split(".");o&&e<i.length;)o=o[i[e++]];return o??""})}function zX(r){var t="",e=r||{};return{set(i,o){e[i]=Object.assign(e[i]||{},o)},locale(i){return t=i||t},table(i){return e[i]},t(i,o,n){var l=(0,RX.default)(e[n||t],i,"");return typeof l=="function"?l(o):typeof l=="string"?PX(l,o):l}}}var eL1={de:{affected_lines:"Betroffene Linien",affected_stops:"Betroffene Haltestellen",all_line_stops:"Alle Haltestellen auf dieser Strecke",consequence:"konsequenz",daily_from_to:"T\xE4glich von {{from}} bis {{to}}",download:"Herunterladen",duration_text:"Dauer",error:"Fehler",export_all_region:"Ganze Region exportieren",export_format_title:"Format",exporting:"Exportieren ...",from:"ab {{from}}",from_to:"von {{from}} bis {{to}}",geolocation_button_title_off:"Geolokalisierung deaktivieren",geolocation_button_title_on:"Geolokalisierung aktivieren",input_copy_success:"Kopiert!",[Et.bikeFrelo]:"Frelo",[Et.bikeOthers]:"Fahrrad, andere Anbieter",[Et.cargobikeFrelo]:"Lastenfrelo",[Et.cargobikeOthers]:"Cargobike, andere Anbieter",[Et.carGrf]:"Gr\xFCne Flotte",[Et.carNatur]:"Naturenergie-Sharing",[Et.carOthers]:"Auto, andere Anbieter",[Et.eroller]:"E-Roller",[Et.linesnetworkplan]:"Liniennetzpl\xE4ne",[Et.mapset]:"Mapset-Pl\xE4ne",[Et.mitfahrpunkte]:"Mitfahrpunkte",[Et.notifications]:"Meldungen",[Et.pois]:"POIs",[Et.realtime]:"Echtzeit",[Et.sharedMobility]:"Shared Mobility",[Et.stations]:"Stationen",[Et.tarifzonen]:"Tarifzonen",[Et.verkaufsstellen]:"Verkaufsstellen",layertree_menu_title:"Ebenen",linesnetworkplan:"plan retea linii",no_details_available:"Keine Details verf\xFCgbar",no_stops_found:"Keine Haltestellen gefunden",notifications:"notificari",permalink_input_hint:"Sie k\xF6nnen auch den Link aus der Adresszeile des Browsers kopieren.",platform_ferry:"St.",platform_other:"Kan.",platform_rail:"Gl.",print_menu_title:"Drucken",reason:"Grund",recommendation:"Empfehlung",search_menu_title:"Suchen",share_email_send:"E-Mail senden",share_image_save:"Bild speichern",share_menu_title:"Teilen",stops_search_placeholder:"Haltestellen suchen",zoomin:"Hineinzoomen",zoomout:"Herauszoomen"},en:{affected_lines:"Affected lines",affected_stops:"Affected stops",all_line_stops:"All stops on this line",consequence:"Consequence",daily_from_to:"Daily from {{from}} to {{to}}",download:"Download",duration_text:"Duration",error:"Error",export_all_region:"Export entire region",export_format_title:"Format",exporting:"Exporting ...",from:"from {{from}}",from_to:"from {{from}} to {{to}}",geolocation_button_title_off:"Disable geolocation",geolocation_button_title_on:"Enable geolocation",input_copy_success:"Copied!",[Et.bikeFrelo]:"Frelo",[Et.bikeOthers]:"Bicycle, other providers",[Et.cargobikeFrelo]:"Cargo bike Frelo",[Et.cargobikeOthers]:"Cargo bike, other providers",[Et.carGrf]:"Gr\xFCne Flotte",[Et.carNatur]:"Naturenergie-Sharing",[Et.carOthers]:"Auto, andere Anbieter",[Et.eroller]:"E-Roller",[Et.linesnetworkplan]:"Lines Network Plan",[Et.mapset]:"Mapset plans",[Et.mitfahrpunkte]:"Carpooling Points",[Et.notifications]:"Notifications",[Et.pois]:"POIs",[Et.realtime]:"Realtime",[Et.sharedMobility]:"Shared Mobility",[Et.stations]:"Stations",[Et.tarifzonen]:"Tariff Zones",[Et.verkaufsstellen]:"Sales Outlets",layertree_menu_title:"Layers",no_details_available:"No details available",no_stops_found:"No stops found",permalink_input_hint:"You can also copy the link from the browser address bar.",platform_ferry:"Pier",platform_other:"Std.",platform_rail:"Pl.",print_menu_title:"Print",reason:"Reason",recommendation:"Recommendation",search_menu_title:"Search",share_email_send:"Send email",share_image_save:"Save image",share_menu_title:"Share",stops_search_placeholder:"Search for stop",zoomin:"Zoom in",zoomout:"Zoom out"},fr:{affected_lines:"Lignes affect\xE9es",affected_stops:"Arr\xEAts affect\xE9s",all_line_stops:"Tous les arr\xEAts sur cette ligne",consequence:"Cons\xE9quence",daily_from_to:"Tous les jours de {{from}} \xE0 {{to}}",download:"T\xE9l\xE9charger",duration_text:"Dur\xE9e",error:"Erreur",export_all_region:"Exporter toute la r\xE9gion",export_format_title:"Format",exporting:"Exportation ...",from:"\xE0 partir du {{from}}",from_to:"de {{from}} \xE0 {{to}}",geolocation_button_title_off:"D\xE9sactiver la g\xE9olocalisation",geolocation_button_title_on:"Activer la g\xE9olocalisation",input_copy_success:"Copi\xE9!",[Et.bikeFrelo]:"Frelo",[Et.bikeOthers]:"V\xE9lo, autres fournisseurs",[Et.cargobikeFrelo]:"Cargobike Frelo",[Et.cargobikeOthers]:"Cargobike, autres fournisseurs",[Et.carGrf]:"Gr\xFCne Flotte",[Et.carNatur]:"Naturenergie-Sharing",[Et.carOthers]:"Voiture, autres fournisseurs",[Et.eroller]:"E-Scooter",[Et.linesnetworkplan]:"Plans du r\xE9seau",[Et.mapset]:"Plans de Mapset",[Et.mitfahrpunkte]:"Points de covoiturage",[Et.notifications]:"Notifications",[Et.pois]:"POIs",[Et.realtime]:"Temps r\xE9el",[Et.sharedMobility]:"Mobilit\xE9 partag\xE9e",[Et.stations]:"Stations",[Et.tarifzonen]:"Zones tarifaires",[Et.verkaufsstellen]:"Points de vente",layertree_menu_title:"Couches",no_details_available:"Aucun d\xE9tail disponible",no_stops_found:"Aucun arr\xEAt trouv\xE9",permalink_input_hint:"Vous pouvez aussi copier le lien depuis la barre d'adresse du navigateur.",platform_ferry:"Quai",platform_other:"Quai",platform_rail:"Voie",print_menu_title:"Imprimer",reason:"Raison",recommendation:"Recommandation",search_menu_title:"Rechercher",share_email_send:"Envoyer un email",share_image_save:"Enregistrer l'image",share_menu_title:"Partager",stops_search_placeholder:"Chercher un arr\xEAt",zoomin:"Zoomer",zoomout:"D\xE9zoomer"},it:{affected_lines:"Linee interessate",affected_stops:"Fermate interessate",all_line_stops:"Tutte le fermate su questa linea",consequence:"Conseguenza",daily_from_to:"Tutti i giorni da {{from}} a {{to}}",download:"Scarica",duration_text:"Durata",error:"Errore",export_all_region:"Esporta l'intera regione",export_format_title:"Formato",exporting:"Esportazione ...",from:"da {{from}}",from_to:"da {{from}} a {{to}}",geolocation_button_title_off:"Disattiva geolocalizzazione",geolocation_button_title_on:"Attiva geolocalizzazione",input_copy_success:"Copiato!",[Et.bikeFrelo]:"Frelo",[Et.bikeOthers]:"Bicicletta, altri fornitori",[Et.cargobikeFrelo]:"Cargobike Frelo",[Et.cargobikeOthers]:"Cargobike, altri fornitori",[Et.carGrf]:"Gr\xFCne Flotte",[Et.carNatur]:"Naturenergie-Sharing",[Et.carOthers]:"Auto, altri fornitori",[Et.eroller]:"E-Scooter",[Et.linesnetworkplan]:"Piani della rete",[Et.mapset]:"Piani di Mapset",[Et.mitfahrpunkte]:"Punti di carpooling",[Et.notifications]:"Notifiche",[Et.pois]:"POI",[Et.realtime]:"In tempo reale",[Et.sharedMobility]:"Mobilit\xE0 condivisa",[Et.stations]:"Stazioni",[Et.tarifzonen]:"Zone tariffarie",[Et.verkaufsstellen]:"Punti vendita",layertree_menu_title:"Livelli",no_details_available:"Nessun dettaglio disponibile",no_stops_found:"Nessuna fermata trovata",permalink_input_hint:"Puoi anche copiare il link dalla barra degli indirizzi del browser.",platform_ferry:"Imb.",platform_other:"Cor.",platform_rail:"Bin.",print_menu_title:"Stampa",reason:"Motivo",recommendation:"Raccomandazione",search_menu_title:"Cerca",share_email_send:"Invia email",share_image_save:"Salva immagine",share_menu_title:"Condividi",stops_search_placeholder:"Ricerca delle fermate",zoomin:"Zoom avanti",zoomout:"Zoom indietro"}},DX=eL1;var rL1=zX(DX),_l=rL1;var kX=["mwc:permalink","mwc:selectedfeature","mwc:singleclick","mwc:attribute"];function iL1({eventNode:r}){let{setPreviewNotifications:t}=Ot();return et(()=>{let e=i=>{i.data.situations&&t(i.data.situations)};return window.addEventListener("message",e),()=>{window.removeEventListener("message",e)}},[t]),et(()=>{if(!r)return;let e=i=>{i.type==="mwc:attribute"&&delete i.data.children,i.type==="mwc:selectedfeature"&&i.data?.properties?.olGeometry&&delete i.data.properties.olGeometry,window.parent?.postMessage({data:i.data,type:i.type},"*")};return kX.forEach(i=>{r.addEventListener(i,e)}),window.parent?.postMessage({data:!0,type:"mwc:messageready"},"*"),()=>{kX.forEach(i=>{r.removeEventListener(i,e)})}},[r]),null}var AP=ht(iL1);var nL1='<a href="https://developer.geops.io/">geOps API key</a>',OX='<a href="https://developer.geops.io/apis/maps">geOps Maps API</a>',oL1='<a href="https://developer.geops.io/apis/stops">geOps Stops API</a>',dP='<a href="https://geops.com/en/solution/disruption-information">geOps MOCO API</a>',$y='<a href="https://geops.com/en/solution/mapset">geOps Mapset API</a>',fP='<a href="https://developer.geops.io/apis/realtime">geOps Realtime API</a>',aL1={apikey:{defaultValue:"5cc87b12d7c5370001c1d655820abcc37dfd4d968d7bab5b2a74a935",description:`Your ${nL1}`,public:!1},baselayer:{defaultValue:"de.rvf_moco",description:`The style's name from the ${OX}. <br/>Ex: base_dark_v2, base_bright_v2, ...`,public:!1},center:{description:"The center of the map in EPSG:3857 coordinates.<br/>Parameter required if extent is not set.",public:!0},details:{defaultValue:"true",description:"When a feature of a queryable layer is clicked, it displays informations about it.",public:!0,type:"boolean"},embed:{defaultValue:"false",description:"Toggle the embedded navigation mode.<br/>In this mode zooming with mouse wheel is deactivated and, on touch device, you can only navigate with two finger, a warning message is displayed to warn the user.",public:!0,type:"boolean"},extent:{defaultValue:xh.join(","),description:"The map's extent in EPSG:3857 coordinates.<br/>Ex: 831634,5933959,940649,6173660 .<br/>Parameter required if center and zoom are not set.",public:!0},geolocation:{defaultValue:"true",description:"Toggle the display of the geolocation button or not.",public:!0,type:"boolean"},lang:{defaultValue:"de",description:"The language to use for the map. Supported languages are : de, en, fr, it.",public:!1},layers:{defaultValue:null,description:`A comma separated list of layers's name to make visible on load, others are hidden. If empty, all layers will be hidden except the baselayer.<br/>Layers available are ${Object.values(Et).join(", ")}.`,public:!0},layersconfig:{description:`A JSON string to configure the layers and other components associated to it.<br/>
1550
+ }`;function pp1({options:r,...t}){let{map:e}=Ot(),[i,o]=Ft(),n=ye(()=>i?new dZ({target:i,...r}):null,[r,i]);return et(()=>{if(!(!e||!n))return e.addControl(n),()=>{e&&n&&e.removeControl(n)}},[e,n]),W("div",{ref:l=>{o(l)},...t,children:W("style",{children:fX})})}var VF=pp1;function Lp1({...r}){let{isSearchOpen:t,setIsSearchOpen:e}=Ot(),{t:i}=L3(),o=i6(()=>{e(!t)},[t,e]);return W(U6,{title:i("search_menu_title"),...r,onClick:o,selected:t,children:W(AL,{})})}var GF=ht(Lp1);function Cp1({...r}){return W("svg",{fill:"none",height:24,stroke:"currentColor",strokeWidth:1.5,viewBox:"0 0 24 24",width:24,xmlns:"http://www.w3.org/2000/svg",...r,children:W("path",{d:"M7.217 10.907a2.25 2.25 0 1 0 0 2.186m0-2.186c.18.324.283.696.283 1.093s-.103.77-.283 1.093m0-2.186 9.566-5.314m-9.566 7.5 9.566 5.314m0 0a2.25 2.25 0 1 0 3.935 2.186 2.25 2.25 0 0 0-3.935-2.186Zm0-12.814a2.25 2.25 0 1 0 3.933-2.185 2.25 2.25 0 0 0-3.933 2.185Z",strokeLinecap:"round",strokeLinejoin:"round"})})}var jF=Cp1;function gp1({...r}){let{isShareMenuOpen:t,setIsShareMenuOpen:e}=Ot(),{t:i}=L3(),o=i6(()=>{e(!t)},[t,e]);return W(U6,{title:i("share_menu_title"),...r,onClick:o,selected:t,children:W(jF,{})})}var qF=ht(gp1);function mp1(r){let{baseLayer:t,map:e,setStationsLayer:i}=Ot(),o=ye(()=>t?new N6({layersFilter:({metadata:n})=>n?.["tralis.variable"]==="station"||n?.["general.filter"]==="stations",maplibreLayer:t,name:bg,...r||{}}):null,[t,r]);return et(()=>{if(!(!e||!o))return e.addLayer(o),i(o),()=>{e.removeLayer(o)}},[e,i,o]),null}var pX=ht(mp1);var vp1=()=>({layersFilter:({metadata:r})=>r?.["general.filter"]==="stations",minZoom:10});function yp1(r){return W(pX,{...vp1,...r})}var wA=ht(yp1);function _p1(r){return W("svg",{fill:"currentColor",height:"24px",version:"1.1",viewBox:"0 0 24 24",width:"24px",xmlns:"http://www.w3.org/2000/svg",...r,children:W("path",{d:"M19,10.9999 C19.5522847,10.9999 20,11.4476153 20,11.9999 C20,12.5521847 19.5522847,12.9999 19,12.9999 L5,12.9999 C4.44771525,12.9999 4,12.5521847 4,11.9999 C4,11.4476153 4.44771525,10.9999 5,10.9999 L19,10.9999 Z"})})}var KF=_p1;function xp1(r){return W("svg",{fill:"currentColor",height:"24px",version:"1.1",viewBox:"0 0 24 24",width:"24px",xmlns:"http://www.w3.org/2000/svg",...r,children:W("path",{d:"M12,4 C12.5522847,4 13,4.44771525 13,5 L13,11 L19,11 C19.5128358,11 19.9355072,11.3860402 19.9932723,11.8833789 L20,12 C20,12.5522847 19.5522847,13 19,13 L13,13 L13,19 C13,19.5128358 12.6139598,19.9355072 12.1166211,19.9932723 L12,20 C11.4477153,20 11,19.5522847 11,19 L11,13 L5,13 C4.48716416,13 4.06449284,12.6139598 4.00672773,12.1166211 L4,12 C4,11.4477153 4.44771525,11 5,11 L11,11 L11,5 C11,4.48716416 11.3860402,4.06449284 11.8833789,4.00672773 Z"})})}var WF=xp1;function wp1(){let{map:r}=Ot(),[t,e]=Ft(!1),[i,o]=Ft(!1),{t:n}=L3(),l=i6(()=>{if(!r?.getView())return;let d=r.getView(),L=d.getZoom();d.setZoom(L+1)},[r]),A=i6(()=>{if(!r?.getView())return;let d=r.getView(),L=d.getZoom();d.setZoom(L-1)},[r]);return et(()=>{let d=r?.on("moveend",()=>{let L=r.getView(),C=L.getZoom(),y=L.getMaxZoom(),E=L.getMinZoom();y&&C===Number(y)?e(!0):e(!1),E&&C===Number(E)?o(!0):o(!1)});return()=>{sr(d)}},[r]),W(m5,{children:[W(U6,{disabled:t,onClick:l,title:n("zoomin"),children:W(WF,{})}),W(U6,{disabled:i,onClick:A,title:n("zoomout"),children:W(KF,{})})]})}var $F=ht(wp1);var LX={style:{width:"calc(100% - 60px)"}},bp1=()=>({layersFilter:({metadata:r})=>r?.["general.filter"]==="stations"});function Mp1({className:r,...t}){let{hasDetails:e,hasGeolocation:i,hasLayerTree:o,hasPrint:n,hasRealtime:l,hasSearch:A,hasShare:d,hasToolbar:L,isEmbed:C,isOverlayOpen:y,isSearchOpen:E,mainlink:B}=Ot();return W("div",{className:Fe("relative flex size-full flex-col text-base @lg/main:flex-row-reverse",r),...t,children:[W(kF,{}),W(wA,{minZoom:10,...bp1}),W(HF,{}),W(OF,{}),W(DF,{}),W(QF,{}),W(vB,{className:"relative flex-1 overflow-visible",children:[C&&W(dB,{}),B&&W(RF,{className:"absolute inset-x-2 bottom-8 z-10"}),W("div",{className:"pointer-events-none absolute inset-x-2 bottom-2 z-10 flex items-end justify-between gap-2 text-[10px]",children:[W(VF,{className:"bg-slate-50/70"}),W(Rg,{className:"pointer-events-auto bg-slate-50/70"})]}),W("div",{className:"absolute top-2 right-2 z-10 flex",children:i&&W(zg,{title:"Geolokalisierung"})}),W("div",{className:"absolute right-2 bottom-10 z-10 flex flex-col justify-between gap-2",children:W($F,{})}),!L&&A&&W("div",{className:Fe("absolute top-2 right-2 left-2 z-10 max-w-96",y&&"@lg:left-68"),children:W(Wc,{})})]}),W("div",{className:"pointer-events-none absolute top-2 bottom-2 left-2 z-10 flex flex-col gap-2",children:[L&&W("div",{className:"pointer-events-none relative z-10 w-fit rounded-2xl bg-black/10 p-0 backdrop-blur-sm *:pointer-events-auto",children:[A&&W("div",{className:Fe("absolute top-12 left-0 w-0 p-0 opacity-0 transition-all @sm:top-0 @sm:left-[calc(100%-43px)] @md:left-[calc(100%-47px)]",E?"w-64 opacity-100":""),children:W(Wc,{className:"border-grey @container m-0 h-[40px] rounded-2xl border p-2 px-4 text-base @sm/main:h-[44px] @sm/main:rounded-l-none @sm/main:rounded-r-2xl @md/main:h-[48px]",inputClassName:"h-6 text-base",inputContainerClassName:"border-none",resultClassName:"text-base **:hover:cursor-pointer hover:text-red-500 p-2",resultsContainerClassName:"@container rounded-b-2xl max-h-[200px] overflow-y-auto border border-grey border-t-0 ",withResultsClassName:"text-base !rounded-b-none"})}),W("div",{className:Fe("border-grey relative flex gap-[1px] overflow-hidden rounded-2xl border @sm/main:h-[44px] @md/main:h-[48px]","*:size-[38px] *:rounded-none *:border-none *:@sm/main:size-[42px] *:@md/main:!size-[46px]","*:first:!rounded-l-2xl","*:last:!rounded-r-2xl",E?"@sm:rounded-r-none @sm:border-r-0 @sm:*:last:!rounded-r-none @sm:*:last:border-r-0":""),children:[n&&W(pB,{}),d&&W(qF,{}),o&&W(mB,{}),A&&W(GF,{})]})]}),W("div",{className:Fe("pointer-events-none flex w-0 flex-1 flex-col overflow-hidden rounded-2xl",y?"@lg:min-w-[320px]":"p-0"),style:{containerType:"normal"},children:W(kg,{className:"border-grey @container/overlay pointer-events-auto relative hidden flex-col overflow-hidden rounded-2xl border bg-white text-base shadow-lg @lg:flex",ScrollableHandlerProps:LX,children:W(Hy,{hasDetails:e,hasLayerTree:o,hasPrint:n,hasRealtime:l,hasSearch:!1,hasShare:d})})})]}),W(kg,{className:y?"absolute bottom-0 z-20 flex max-h-[70%] min-h-[75px] w-full flex-col border-t bg-white @lg:hidden":"@lg:hidden",ScrollableHandlerProps:LX,children:W(Hy,{hasDetails:e,hasLayerTree:o,hasPrint:n,hasRealtime:l,hasSearch:!1,hasShare:d})})]})}var Ky=ht(Mp1);var XF,Bp1=(r,t)=>{let e=t?.getView()?.getZoom(),i=r.get("minZoom"),o=r.get("maxZoom");return i>e||e>o};function Sp1(r){let{apikey:t,baseLayer:e,map:i,mapsetbbox:o,mapsetplanid:n,mapsettags:l,mapsettenants:A,mapsettimestamp:d,mapseturl:L,setMapsetLayer:C}=Ot(),y=ye(()=>{if(!e||!i)return null;let E;return o?(E=o?.split(",").map(B=>Number(B.trim())),E.length===4&&!E.some(B=>Number.isNaN(B))&&(E=F4(E,"EPSG:3857","EPSG:4326"))):i.getView()?.getCenter()&&i.getSize()[0]>0&&i.getSize()[1]>0&&(E=F4(i.getView()?.calculateExtent(),"EPSG:3857","EPSG:4326")),new OM({apiKey:t,bbox:E,mapseturl:L||void 0,name:Bg,planId:n??void 0,tags:l?.split(",").map(B=>B.trim()),tenants:A?.split(",").map(B=>B.trim()),timestamp:d||new Date().toISOString(),zoom:i.getView().getZoom(),...r||{}})},[e,i,o,t,L,n,l,A,d,r]);return et(()=>{C?.(y)},[y,C,i]),et(()=>{if(!(!i||!y))return i.addLayer(y),()=>{i.removeLayer(y)}},[i,y]),et(()=>{let E=i?.getView();if(!E||!y)return;let B=()=>{n||!y.get("visible")||(clearTimeout(XF),XF=setTimeout(()=>{let Q=F4(E.calculateExtent(i.getSize()),"EPSG:3857","EPSG:4326");y.bbox=Q,y.zoom=E.getZoom()},100))},Z=[y.on("change:visible",()=>{y.get("visible")&&B()}),E.on("change:center",B),E.on("change:resolution",B)];return()=>{clearTimeout(XF),sr(Z)}},[i,y,n]),et(()=>{let E=null;return y&&(E=y.on("updatefeatures",()=>{let B=y.getSource()?.getFeatures();B?.length&&B.forEach(Z=>{let Q=Z.getStyleFunction();Q&&Z.setStyle((V,G)=>Bp1(V,y.getMapInternal())?null:Q(Z,G))})})),()=>{sr(E)}},[y]),null}var YF=ht(Sp1);function Ep1(r){let{apikey:t,baseLayer:e,map:i,notificationat:o,notificationtenant:n,notificationurl:l,previewNotifications:A,setNotificationsLayer:d}=Ot(),L=ye(()=>{if(!e)return null;let C=new QM({apiKey:t,apiParameters:{contentMedium:!0},date:o?new Date(o):void 0,maplibreLayer:e,name:Mg,situations:A,tenant:n,url:l,...r||{},loadAll:!A});return A&&!C.getVisible()&&C.setVisible(!0),C},[t,e,o,n,l,A,r]);return et(()=>{d?.(L)},[L,d]),et(()=>{if(!(!i||!L))return i.addLayer(L),()=>{i.removeLayer(L)}},[i,L]),null}var JF=ht(Ep1);var gX=P3(ja(),1);var Tp1=(r,t=new URLSearchParams)=>{let e=r.getView().getZoom(),[i,o]=r.getView().getCenter()||[],n=M4(r.getLayers().getArray()).filter(l=>l.get("name")&&l.getVisible()).map(l=>l.get("name"));return t.set("layers",n.join(",")),i>=0&&t.set("x",i.toFixed(2)),o>=0&&t.set("y",o.toFixed(2)),e>=0&&t.set("z",e.toFixed(1)),t},CX=Tp1;var Ip1=({replaceState:r=!1})=>{let{map:t,setPermalinkUrlSearchParams:e}=Ot(),i=xA(),o=i6(n=>{if(t.get(Vo))return;let l=new URLSearchParams(window.location.search),A=CX(n,l);e(A)},[t,e]);return et(()=>{r&&i&&i!==window.location.href&&!i.includes(encodeURIComponent("{{"))&&window.history.replaceState(null,null,i)},[t,i,r]),et(()=>{let n,l,A,d=(0,gX.default)(o,1e3);return t&&(d(t),n=t?.on("moveend",L=>{d(L.map)}),l=t.once("loadend",L=>{d(L.map),A=M4(L.map.getLayers().getArray()).map(C=>C.on("change:visible",()=>{d(L.map)}))})),()=>{sr(n),sr(l),sr(A)}},[t,o]),null},tP=ht(Ip1);var Fp1=async(r,t,e=0)=>{if(!r)return Promise.reject(new Error("No vehicle provided"));let{geometry:i,properties:{coordinate:o}}=r,n=t.getView(),l=e||n.getZoom(),A=l>0?n.getResolutionForZoom(l):void 0,d=o;if(!d&&i){let{coord:C}=Nd(Date.now(),r,!0);d=C}return d?(n.cancelAnimations(),new Promise(C=>{n.animate({center:d,duration:1e3,easing:RC,resolution:A},y=>{C(y)})})):Promise.reject(new Error("No center found"))},eP=Fp1;var Pp1=(r,t,e)=>t?e?"#dc2626":"#a0a0a0":r===null?"transparent":$p(r,e),mX=Pp1;var Rp1=r=>`bold ${r}px arial`,vX=Rp1;var zp1=(r,t=!1)=>{if(t)return String.fromCodePoint(215);let e=Xp(r);return e==="0"?"":`+${e}`},yX=zp1;var Dp1=16,kp1=!0;function Op1(r){let{apikey:t,baseLayer:e,isFollowing:i,isTracking:o,linesNetworkPlanLayer:n,map:l,mots:A,realtimebboxparameters:d,realtimeurl:L,setIsFollowing:C,setIsTracking:y,setRealtimeLayer:E,setStation:B,setStopSequence:Z,stationId:Q,stopSequence:V,tenant:G,trainId:J}=Ot(),[n1,r1]=Ft([]),[m1,w1]=Ft(!1),B1=ye(()=>!t||!L?null:new $M({apiKey:t,bboxParameters:d?.split(" ").reduce((L1,z1)=>{if(!z1)return L1;let[s1,x1]=z1.split("=");return L1[s1]=x1,L1},{}),getMotsByZoom:A?()=>A.split(","):void 0,isQueryable:!0,name:wg,tenant:G,url:L,zIndex:1,...r,styleOptions:{getDelayColor:mX,getDelayFont:vX,getDelayText:yX,getText:Cy,getTextFont:Ly,...r?.styleOptions||{}}}),[t,L,d,A,G,r]);return et(()=>{if(!(!l||!B1))return l.getView()?.getCenter()?l.addLayer(B1):l.once("moveend",()=>{l.addLayer(B1)}),E(B1),()=>{l.removeLayer(B1),E(null)}},[l,E,B1]),et(()=>{V||C(!1)},[V,C]),et(()=>{let g1=[];return o&&C(!1),()=>{sr(g1)}},[o,C]),et(()=>{if(!l)return;let g1=null;return g1=l.getView().on("change:center",L1=>{L1.target.getInteracting()&&(C(!1),y(!1))}),()=>{sr(g1)}},[l,C,y]),et(()=>{let g1=null;return B1&&(B1.engine.useThrottle=!i,B1.engine.isUpdateBboxOnMoveEnd=!i,B1.allowRenderWhenAnimating=!!i),!i||!V||!l||!B1?void 0:(y(!1),(async z1=>{let s1=z1&&B1?.trajectories?.[z1];s1||(s1=(await B1.api.getTrajectory(V.id,B1.mode))?.content),await eP(s1,l,Dp1)===!0&&(g1=setInterval(()=>{eP(B1?.trajectories?.[V.id],l)},1e3))})(V.id),()=>{clearInterval(g1)})},[i,l,B1,V,y]),et(()=>{if(!(!Q||!B1?.api))return B1?.api?.subscribe(`station ${Q}`,({content:g1})=>{g1&&B(g1)}),()=>{B(null),Q&&B1?.api?.unsubscribe(`station ${Q}`)}},[Q,B1?.api,B]),et(()=>{if(!(!J||!B1?.api))return B1.selectedVehicleId=J,B1.highlightTrajectory(J).catch(g1=>{console.error("Error highlighting trajectory:",g1)}),B1?.api?.subscribeStopSequence(J,({content:g1})=>{if(g1){let[L1]=g1;L1&&Z(L1)}}),()=>{Z(null),J&&B1&&(B1.api?.unsubscribeStopSequence(J),B1.api?.unsubscribeFullTrajectory(B1.selectedVehicleId),B1.selectedVehicleId=null,B1.vectorLayer.getSource().clear())}},[J,B1,B1?.api,Z]),et(()=>{if(!l||!e)return;let g1=l.once("rendercomplete",()=>{let L1=e.mapLibreMap?.getStyle()?.metadata,z1=[];for(let s1=0;s1<26;s1++)z1.push(vh(s1,L1?.graphs));r1(z1)});return()=>{sr(g1)}},[l,e,B1]),et(()=>{let g1=n?.on("change:visible",()=>{let L1=n.getVisible();w1(L1)});return w1(n?.getVisible()||!1),()=>{sr(g1)}},[n]),et(()=>{!B1||!n1?.length||(kp1&&m1?B1.engine.graphByZoom=n1:B1.engine.graphByZoom=[],B1.engine.setBbox())},[m1,B1,n1,n]),null}var _X=ht(Op1);var Zp1=new G3({image:new a7({fill:new R0({color:"#000000"}),radius:5}),stroke:new B8({color:"#000000",width:6}),zIndex:2}),Np1=(r,t,e)=>{let i="#ffffff",o=r.get("type"),n=r.get("stroke");return n&&n[0]!=="#"&&(n=`#${n}`),i=n||e?.getBgColor(o,{name:r.get("line_name")}),i=/#ffffff/i.test(i)?"#ff0000":i,[Zp1,new G3({image:new a7({fill:new R0({color:i}),radius:4}),stroke:new B8({color:i,width:4}),zIndex:3})]},xX=Np1;var Up1={0:[0,0,0,0,0,2,2,2,2,2,2,2,2,6,7,7,7],1:[0,0,0,0,0,2,2,2,2,2,2,2,2,6,7,7,7],2:[0,0,0,0,0,2,2,2,2,2,2,2,3,7,12,12,15],3:[0,0,0,0,0,2,2,2,2,2,2,2,2,4,6,6,6],4:[0,0,0,0,0,2,2,2,2,2,2,2,3,7,12,12,15],5:[0,0,0,0,0,2,2,2,2,2,2,2,2,4,7,7,7],6:[0,0,0,0,0,2,2,2,2,2,2,2,2,4,7,7,7],7:[0,0,0,0,0,2,2,2,2,2,2,2,2,4,7,7,7],8:[0,0,0,0,0,2,2,2,2,2,2,2,2,4,6,6,6],9:[0,0,0,0,0,2,2,2,2,2,2,2,3,7,12,12,15]},Qp1=Up1,wX=(r=0,t=0,e=!1)=>{try{let i=So.getTypeIndex(r);return Qp1[i][t]*(e?2:1)}catch{return 1}};var bX='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 42 42" width="42" height="42">%0A <path id="Pfad_1" data-name="Pfad 1" d="M40,20A20,20,0,1,1,20,0,20,20,0,0,1,40,20Z" transform="translate(0 0)" fill="%23353535"/>%0A <path id="Pfad_2" data-name="Pfad 2" d="M25.481,11.843a9.993,9.993,0,0,0-10,9.992c0,7.773,10,14.8,10,14.8s9.992-7.5,9.992-14.8a9.991,9.991,0,0,0-9.992-9.992m0,14.662a4.924,4.924,0,1,1,4.924-4.924A4.93,4.93,0,0,1,25.482,26.5" transform="translate(-5.477 -4.19)" fill="%23fff"/>%0A <path id="Pfad_3" data-name="Pfad 3" d="M12.015,8.124,38.081,34.031,35.4,36.536,9.06,10.527Z" transform="translate(-3.206 -2.874)" fill="%23ec0016"/>%0A <path id="Pfad_4" data-name="Pfad 4" d="M20,3.231A16.769,16.769,0,1,1,3.231,20,16.788,16.788,0,0,1,20,3.231M20,0A20,20,0,1,0,40,20,20,20,0,0,0,20,0" transform="translate(0 0)" fill="%23353535"/>%0A</svg>%0A';var rP={},MX=new Image(42,42);MX.src=bX;var Vp1=(r,t)=>{let e=16;r>e&&(e=22);let i=`${e},${t}`;if(!rP[i]){let o=R7(e*t,e*t),n=o.getContext("2d");if(!n)return null;n.drawImage(MX,0,0,e*t,e*t),rP[i]=o}return rP[i]},iP={},Gp1=(r,t,e)=>{let i=`${r}, ${t}, ${e}`;if(!iP[i]){let o=R7(r*2,r*2);if(o){let n=o.getContext("2d");if(!n)return null;n.beginPath(),n.arc(r,r,t,0,2*Math.PI,!1),n.fillStyle=e,n.filter="blur(1px)",n.fill(),iP[i]=o}}return iP[i]},nP={},jp1=(r,t,e,i,o="#000",n=1)=>{let l=`${r}, ${e}, ${i}, ${o}, ${n}`;if(!nP[l]){let A=R7(Math.ceil(r.length*t),Math.ceil(t+8*n));if(A){let d=A.getContext("2d");if(!d)return null;d.font=e,d.textAlign="left",d.textBaseline="middle",d.font=e,d.fillStyle=i,d.strokeStyle=o,d.lineWidth=1.5*n,d.strokeText(r,0,t),d.fillText(r,0,t),nP[l]=A}}return nP[l]},oP={},qp1=(r,t,e,i,o,n)=>{let l=`${r}, ${t}, ${e}, ${i}, ${o}, ${n}`;if(!oP[l]){let A=R7(r*2,r*2);if(A){let d=A.getContext("2d");if(!d)return null;d.fillStyle=e,i&&(d.lineWidth=1*n,d.strokeStyle="#000000"),d.beginPath(),d.arc(r,r,t,0,2*Math.PI,!1),d.fill(),o&&d.setLineDash([5,3]),i&&d.stroke(),oP[l]=A}}return oP[l]},aP={},Kp1=(r,t,e,i,o,n,l,A)=>{let d=`${r}, ${t}, ${e}, ${i},${o}, ${n}, ${l}`;if(!aP[d]){let L=R7(t*2,t*2);if(L){let C=L.getContext("2d");if(!C)return null;n&&(C.save(),C.textBaseline="middle",C.textAlign="center",C.font=A(e+2,r),C.strokeStyle=o,C.strokeText(r,t,t),C.restore()),C.textBaseline="middle",C.textAlign="center",C.fillStyle=i,C.font=A(e,r),C.strokeStyle=o,C.strokeText(r,t,t),C.fillText(r,t,t),aP[d]=L}}return aP[d]},sP={},Wp1=(r,t,e)=>{let{delayDisplay:i=3e5,delayOutlineColor:o="#000",getBgColor:n=()=>"#000",getDelayColor:l=()=>"#000",getDelayFont:A=P1=>`bold ${P1}px arial, sans-serif`,getDelayText:d=()=>null,getMaxRadiusForStrokeAndDelay:L=()=>7,getMaxRadiusForText:C=()=>10,getRadius:y=()=>0,getText:E=P1=>P1,getTextColor:B=()=>"#000",getTextFont:Z=P1=>`bold ${P1}px arial, sans-serif`,getTextSize:Q=()=>14,hoverVehicleId:V,selectedVehicleId:G,useDelayStyle:J}=e,{pixelRatio:n1=1,zoom:r1}=t,{type:m1}=r.properties,{delay:w1,has_realtime_journey:B1,line:g1,operator_provides_realtime_journey:L1,state:z1,train_id:s1}=r.properties,{color:x1,name:N1,text_color:V1}=g1||{};N1=E(N1);let l2=z1==="JOURNEY_CANCELLED";m1||(m1="Rail"),N1||(N1="I"),V1=B(m1),x1=n(m1,g1),x1&&!x1.startsWith("#")&&(x1=`#${x1}`),V1.startsWith("#")||(V1=`#${V1}`);let p2=Math.min(Math.floor(r1||1),16),o2=!!(V&&V===s1),G1=!!(G&&G===s1),L2=y(m1,p2)*n1,V2=L2>=L()*n1;(o2||G1)&&(L2=V2?L2+5*n1:14*n1);let w2=L2>C()*n1,u1=`${L2}${o2||G1}${B1}`;if(J?u1+=`${L1}${w1}${l2}`:(u1+=`${x1||m1}`,V2&&(u1+=`${l2}${w1}`)),w2&&(u1+=`${N1}${V1}`),!sP[u1]){if(L2===0)return null;let P1=1*n1,F1=L2+2*n1,J1=L2*2,u2=F1*2+P1*2,r2=u2/2,F2=null;V2&&w1!==null&&(F2=Gp1(r2,F1,l(w1,l2)));let k2=null,j2=0;if(V2&&(o2||(w1||0)>=i||l2)){j2=Math.max(l2?19:14,Math.min(l2?19:17,L2*1.2))*n1;let Gt=d(w1,l2);Gt&&(k2=jp1(Gt,j2,A(j2,Gt),l(w1,l2,!0),o,n1))}let R2=null,it;J?it=l(w1,l2):it=x1||n(m1,r);let pt=V2||o2||G1,N2=!!V2&&!!J&&w1===null&&L1==="yes",K1=!!pt&&w2&&!B1&&!l2;K1&&(R2=Vp1(L2,n1));let ce=qp1(r2,L2,it,pt,N2,n1),Vt=k2?.width||K1&&R2.width/2||0,qt=K1&&R2.height/2||0,ot=u2+Vt*2,Qt=u2+qt*2,Lt=R7(ot,Qt);if(Lt){let Gt=Lt.getContext("2d");if(!Gt)return null;let Ht=Vt,re=qt;F2&&Gt.drawImage(F2,Ht,re),ce&&Gt.drawImage(ce,Ht,re);let le=null;if(w2){let ie=Math.max(L2,10),c2=Q(Gt,J1,N1,ie,Z),A1=J?"#000000":V1||B(m1);le=Kp1(N1,r2,c2,A1,it,!!J&&w1===null&&L1==="yes",n1,Z)}le&&Gt.drawImage(le,Ht,re),k2&&Gt.drawImage(k2,Ht+Math.ceil(r2+F1)+P1,re+Math.ceil(r2-j2)),K1&&Gt.drawImage(R2,Ht-R2.width/4,re-R2.height/4),sP[u1]=Lt}}return sP[u1]},BX=Wp1;var SX={bus:25,coach:15,train:30,tram:20},$p1={fullTrajectoryStyle:xX,getMotsByZoom:r=>r<9?["rail"]:null,sort:({properties:{delay:r,type:t}},{properties:{delay:e,type:i}})=>t!==i?SX[t]<SX[i]?-1:1:r===e?0:r<e?-1:1,style:BX,styleOptions:{getBgColor:dy,getMaxRadiusForStrokeAndDelay:()=>4,getMaxRadiusForText:()=>8,getRadius:wX,getTextColor:py}};function Xp1(r){return W(_X,{...$p1,...r})}var Wy=ht(Xp1);var EX=P3(ja(),1);function Yp1({debounceOptions:r,debounceTimeout:t=0,hover:e=!0}){let{map:i,queryablelayers:o,setFeaturesInfos:n,setFeaturesInfosHovered:l,stationsLayer:A,tenant:d}=Ot(),L=i6(async E=>{let B=E.map.getAllLayers().filter(Q=>o.split(",").includes(Q.get("name"))),Z=await XM(E.coordinate,B,5,!0);if(A){let Q=Z?.find(J=>J.layer===A),V=Q?.features||[],[G]=V.filter(J=>J.get("tralis_network")?.includes(d));Q&&(Q.features=G?[G]:[])}return Z},[o,A,d]),C=i6(async E=>{let B=await L(E);l(B);let Z=B.flatMap(Q=>Q.features);E.map.getTargetElement().style.cursor=Z?.length?"pointer":"default"},[L,l]),y=i6(async E=>{let B=await L(E);n(B)},[L,n]);return et(()=>{let E=i?.on("singleclick",y);return()=>{sr(E)}},[i,y]),et(()=>{let E;if(e){let B=C;t&&(B=(0,EX.default)(C,t,r)),E=i?.on("pointermove",B)}return()=>{sr(E)}},[r,t,e,i,C]),null}var lP=Yp1;var TX=(r,t)=>{if(!!t.get("name")&&r!=null){let o=r?.split(",")||[],n=t.get("name"),l=o.includes(n);t.getVisible()!==l&&(t.setVisible(l),t.getLayers&&t.getLayers().getArray().forEach(A=>{A.setVisible(l)}))}t.getLayers&&t.getLayers().getArray().forEach(o=>{TX(r,o)})},cP=TX;var Jp1=(r,t,e)=>{let i=Vi(!1),o=Vi(Dg(e)?.layers);return et(()=>{if(!r)return;let n=t;o.current!==null&&o.current!==void 0&&!i.current&&(n=o.current,i.current=!0),M4(r.getLayers().getArray()).forEach(A=>{cP(n,A)});let l=r.getLayers().on("add",A=>{cP(n,A.element)});return()=>{sr(l)}},[r,t]),null},IX=Jp1;var RX=P3(FX(),1);var tL1=/{{(.*?)}}/g;function PX(r,t){return r.replace(tL1,(e,i,o)=>{for(e=0,o=t,i=i.trim().split(".");o&&e<i.length;)o=o[i[e++]];return o??""})}function zX(r){var t="",e=r||{};return{set(i,o){e[i]=Object.assign(e[i]||{},o)},locale(i){return t=i||t},table(i){return e[i]},t(i,o,n){var l=(0,RX.default)(e[n||t],i,"");return typeof l=="function"?l(o):typeof l=="string"?PX(l,o):l}}}var eL1={de:{affected_lines:"Betroffene Linien",affected_stops:"Betroffene Haltestellen",all_line_stops:"Alle Haltestellen auf dieser Strecke",consequence:"konsequenz",daily_from_to:"T\xE4glich von {{from}} bis {{to}}",download:"Herunterladen",duration_text:"Dauer",error:"Fehler",export_all_region:"Ganze Region exportieren",export_format_title:"Format",exporting:"Exportieren ...",from:"ab {{from}}",from_to:"von {{from}} bis {{to}}",geolocation_button_title_off:"Geolokalisierung deaktivieren",geolocation_button_title_on:"Geolokalisierung aktivieren",input_copy_success:"Kopiert!",[Et.bikeFrelo]:"Frelo",[Et.bikeOthers]:"Fahrrad, andere Anbieter",[Et.cargobikeFrelo]:"Lastenfrelo",[Et.cargobikeOthers]:"Cargobike, andere Anbieter",[Et.carGrf]:"Gr\xFCne Flotte",[Et.carNatur]:"Naturenergie-Sharing",[Et.carOthers]:"Auto, andere Anbieter",[Et.eroller]:"E-Roller",[Et.linesnetworkplan]:"Liniennetzpl\xE4ne",[Et.mapset]:"Mapset-Pl\xE4ne",[Et.mitfahrpunkte]:"Mitfahrpunkte",[Et.notifications]:"Meldungen",[Et.pois]:"POIs",[Et.realtime]:"Echtzeit",[Et.sharedMobility]:"Shared Mobility",[Et.stations]:"Stationen",[Et.tarifzonen]:"Tarifzonen",[Et.verkaufsstellen]:"Verkaufsstellen",layertree_menu_title:"Ebenen",linesnetworkplan:"plan retea linii",no_details_available:"Keine Details verf\xFCgbar",no_stops_found:"Keine Haltestellen gefunden",notifications:"notificari",permalink_input_hint:"Sie k\xF6nnen auch den Link aus der Adresszeile des Browsers kopieren.",platform_ferry:"St.",platform_other:"Kan.",platform_rail:"Gl.",print_menu_title:"Drucken",reason:"Grund",recommendation:"Empfehlung",search_menu_title:"Suchen",share_email_send:"E-Mail senden",share_image_save:"Bild speichern",share_menu_title:"Teilen",stops_search_placeholder:"Haltestellen suchen",zoomin:"Hineinzoomen",zoomout:"Herauszoomen"},en:{affected_lines:"Affected lines",affected_stops:"Affected stops",all_line_stops:"All stops on this line",consequence:"Consequence",daily_from_to:"Daily from {{from}} to {{to}}",download:"Download",duration_text:"Duration",error:"Error",export_all_region:"Export entire region",export_format_title:"Format",exporting:"Exporting ...",from:"from {{from}}",from_to:"from {{from}} to {{to}}",geolocation_button_title_off:"Disable geolocation",geolocation_button_title_on:"Enable geolocation",input_copy_success:"Copied!",[Et.bikeFrelo]:"Frelo",[Et.bikeOthers]:"Bicycle, other providers",[Et.cargobikeFrelo]:"Cargo bike Frelo",[Et.cargobikeOthers]:"Cargo bike, other providers",[Et.carGrf]:"Gr\xFCne Flotte",[Et.carNatur]:"Naturenergie-Sharing",[Et.carOthers]:"Auto, andere Anbieter",[Et.eroller]:"E-Roller",[Et.linesnetworkplan]:"Lines Network Plan",[Et.mapset]:"Mapset plans",[Et.mitfahrpunkte]:"Carpooling Points",[Et.notifications]:"Notifications",[Et.pois]:"POIs",[Et.realtime]:"Realtime",[Et.sharedMobility]:"Shared Mobility",[Et.stations]:"Stations",[Et.tarifzonen]:"Tariff Zones",[Et.verkaufsstellen]:"Sales Outlets",layertree_menu_title:"Layers",no_details_available:"No details available",no_stops_found:"No stops found",permalink_input_hint:"You can also copy the link from the browser address bar.",platform_ferry:"Pier",platform_other:"Std.",platform_rail:"Pl.",print_menu_title:"Print",reason:"Reason",recommendation:"Recommendation",search_menu_title:"Search",share_email_send:"Send email",share_image_save:"Save image",share_menu_title:"Share",stops_search_placeholder:"Search for stop",zoomin:"Zoom in",zoomout:"Zoom out"},fr:{affected_lines:"Lignes affect\xE9es",affected_stops:"Arr\xEAts affect\xE9s",all_line_stops:"Tous les arr\xEAts sur cette ligne",consequence:"Cons\xE9quence",daily_from_to:"Tous les jours de {{from}} \xE0 {{to}}",download:"T\xE9l\xE9charger",duration_text:"Dur\xE9e",error:"Erreur",export_all_region:"Exporter toute la r\xE9gion",export_format_title:"Format",exporting:"Exportation ...",from:"\xE0 partir du {{from}}",from_to:"de {{from}} \xE0 {{to}}",geolocation_button_title_off:"D\xE9sactiver la g\xE9olocalisation",geolocation_button_title_on:"Activer la g\xE9olocalisation",input_copy_success:"Copi\xE9!",[Et.bikeFrelo]:"Frelo",[Et.bikeOthers]:"V\xE9lo, autres fournisseurs",[Et.cargobikeFrelo]:"Cargobike Frelo",[Et.cargobikeOthers]:"Cargobike, autres fournisseurs",[Et.carGrf]:"Gr\xFCne Flotte",[Et.carNatur]:"Naturenergie-Sharing",[Et.carOthers]:"Voiture, autres fournisseurs",[Et.eroller]:"E-Scooter",[Et.linesnetworkplan]:"Plans du r\xE9seau",[Et.mapset]:"Plans de Mapset",[Et.mitfahrpunkte]:"Points de covoiturage",[Et.notifications]:"Notifications",[Et.pois]:"POIs",[Et.realtime]:"Temps r\xE9el",[Et.sharedMobility]:"Mobilit\xE9 partag\xE9e",[Et.stations]:"Stations",[Et.tarifzonen]:"Zones tarifaires",[Et.verkaufsstellen]:"Points de vente",layertree_menu_title:"Couches",no_details_available:"Aucun d\xE9tail disponible",no_stops_found:"Aucun arr\xEAt trouv\xE9",permalink_input_hint:"Vous pouvez aussi copier le lien depuis la barre d'adresse du navigateur.",platform_ferry:"Quai",platform_other:"Quai",platform_rail:"Voie",print_menu_title:"Imprimer",reason:"Raison",recommendation:"Recommandation",search_menu_title:"Rechercher",share_email_send:"Envoyer un email",share_image_save:"Enregistrer l'image",share_menu_title:"Partager",stops_search_placeholder:"Chercher un arr\xEAt",zoomin:"Zoomer",zoomout:"D\xE9zoomer"},it:{affected_lines:"Linee interessate",affected_stops:"Fermate interessate",all_line_stops:"Tutte le fermate su questa linea",consequence:"Conseguenza",daily_from_to:"Tutti i giorni da {{from}} a {{to}}",download:"Scarica",duration_text:"Durata",error:"Errore",export_all_region:"Esporta l'intera regione",export_format_title:"Formato",exporting:"Esportazione ...",from:"da {{from}}",from_to:"da {{from}} a {{to}}",geolocation_button_title_off:"Disattiva geolocalizzazione",geolocation_button_title_on:"Attiva geolocalizzazione",input_copy_success:"Copiato!",[Et.bikeFrelo]:"Frelo",[Et.bikeOthers]:"Bicicletta, altri fornitori",[Et.cargobikeFrelo]:"Cargobike Frelo",[Et.cargobikeOthers]:"Cargobike, altri fornitori",[Et.carGrf]:"Gr\xFCne Flotte",[Et.carNatur]:"Naturenergie-Sharing",[Et.carOthers]:"Auto, altri fornitori",[Et.eroller]:"E-Scooter",[Et.linesnetworkplan]:"Piani della rete",[Et.mapset]:"Piani di Mapset",[Et.mitfahrpunkte]:"Punti di carpooling",[Et.notifications]:"Notifiche",[Et.pois]:"POI",[Et.realtime]:"In tempo reale",[Et.sharedMobility]:"Mobilit\xE0 condivisa",[Et.stations]:"Stazioni",[Et.tarifzonen]:"Zone tariffarie",[Et.verkaufsstellen]:"Punti vendita",layertree_menu_title:"Livelli",no_details_available:"Nessun dettaglio disponibile",no_stops_found:"Nessuna fermata trovata",permalink_input_hint:"Puoi anche copiare il link dalla barra degli indirizzi del browser.",platform_ferry:"Imb.",platform_other:"Cor.",platform_rail:"Bin.",print_menu_title:"Stampa",reason:"Motivo",recommendation:"Raccomandazione",search_menu_title:"Cerca",share_email_send:"Invia email",share_image_save:"Salva immagine",share_menu_title:"Condividi",stops_search_placeholder:"Ricerca delle fermate",zoomin:"Zoom avanti",zoomout:"Zoom indietro"}},DX=eL1;var rL1=zX(DX),_l=rL1;var kX=["mwc:permalink","mwc:selectedfeature","mwc:singleclick","mwc:attribute"];function iL1({eventNode:r}){let{setPreviewNotifications:t}=Ot();return et(()=>{let e=i=>{i.data.situations&&t(i.data.situations)};return window.addEventListener("message",e),()=>{window.removeEventListener("message",e)}},[t]),et(()=>{if(!r)return;let e=i=>{i.type==="mwc:attribute"&&delete i.data.children,i.type==="mwc:selectedfeature"&&i.data?.properties?.olGeometry&&delete i.data.properties.olGeometry,window.parent?.postMessage({data:i.data,type:i.type},"*")};return kX.forEach(i=>{r.addEventListener(i,e)}),window.parent?.postMessage({data:!0,type:"mwc:messageready"},"*"),()=>{kX.forEach(i=>{r.removeEventListener(i,e)})}},[r]),null}var AP=ht(iL1);var nL1='<a href="https://developer.geops.io/">geOps API key</a>',OX='<a href="https://developer.geops.io/apis/maps">geOps Maps API</a>',oL1='<a href="https://developer.geops.io/apis/stops">geOps Stops API</a>',dP='<a href="https://geops.com/en/solution/disruption-information">geOps MOCO API</a>',$y='<a href="https://geops.com/en/solution/mapset">geOps Mapset API</a>',fP='<a href="https://developer.geops.io/apis/realtime">geOps Realtime API</a>',aL1={apikey:{defaultValue:"5cc87b12d7c5370001c1d655820abcc37dfd4d968d7bab5b2a74a935",description:`Your ${nL1}`,public:!1},baselayer:{defaultValue:"de.rvf_moco",description:`The style's name from the ${OX}. <br/>Ex: base_dark_v2, base_bright_v2, ...`,public:!1},center:{description:"The center of the map in EPSG:3857 coordinates.<br/>Parameter required if extent is not set.",public:!0},details:{defaultValue:"true",description:"When a feature of a queryable layer is clicked, it displays informations about it.",public:!0,type:"boolean"},embed:{defaultValue:"false",description:"Toggle the embedded navigation mode.<br/>In this mode zooming with mouse wheel is deactivated and, on touch device, you can only navigate with two finger, a warning message is displayed to warn the user.",public:!0,type:"boolean"},extent:{defaultValue:xh.join(","),description:"The map's extent in EPSG:3857 coordinates.<br/>Ex: 831634,5933959,940649,6173660 .<br/>Parameter required if center and zoom are not set.",public:!0},geolocation:{defaultValue:"true",description:"Toggle the display of the geolocation button or not.",public:!0,type:"boolean"},lang:{defaultValue:"de",description:"The language to use for the map. Supported languages are : de, en, fr, it.",public:!1},layers:{defaultValue:null,description:`A comma separated list of layers's name to make visible on load, others are hidden. If empty, all layers will be hidden except the baselayer.<br/>Layers available are ${Object.values(Et).join(", ")}.`,public:!0},layersconfig:{description:`A JSON string to configure the layers and other components associated to it.<br/>
1551
1551
  The layers available are : ${FO.toString()}.<br/>
1552
1552
  Definition for a layer :
1553
1553
  <pre style="font-size: 12px; overflow: auto;">{
@@ -3571,7 +3571,7 @@ html {
3571
3571
  --tw-drop-shadow: initial;
3572
3572
  --tw-duration: initial;
3573
3573
  --tw-ease: initial;
3574
- }`}),W("style",{children:bA}),W("style",{children:ZX}),W(YM.Provider,{value:p5,children:[W(eB,{}),W(tP,{replaceState:r1}),W(aB,{node:t.current,wcAttributes:r}),W(AP,{eventNode:t.current}),W(lP,{}),W(tB,{}),W(JM,{}),J&&W(JF,{}),g1&&W(Wy,{}),x1&&W(wA,{}),E&&W(rB,{}),E&&W(nB,{}),V&&W(YF,{}),W("div",{className:"@container/main relative size-full border font-sans",ref:t,children:W(Ky,{})})]})]})}var lL1=ht(sL1),NX={};Object.entries(us).forEach(([r])=>{NX[r]=us[r].defaultValue||null});function cL1(r){return W(lL1,{...NX,...r})}var UX=ht(cL1);function uL1(r){let[t,e]=Ft(),[i,o]=Ft(),[n,l]=Ft(),[A,d]=Ft(),L=ye(()=>({poisLayer:n,sellingPointsLayer:t,setPoisLayer:l,setSellingPointsLayer:e,setSharedMobilityLayerGroup:d,setTarifZonenLayer:o,sharedMobilityLayerGroup:A,tarifZonenLayer:i}),[n,t,A,i]);return W(zF.Provider,{value:L,children:W(UX,{...r})})}var hL1=ht(uL1),QX={};Object.entries(us).forEach(([r])=>{QX[r]=us[r].defaultValue||null});function AL1(r){return W(hL1,{...QX,...r})}var Xy=ht(AL1);var dL1='<a href="https://developer.geops.io/">geOps API key</a>',HX='<a href="https://geops.com/en/solution/disruption-information">geOps MOCO API</a>',fL1={apikey:{defaultValue:"5cc87b12d7c5370001c1d655820abcc37dfd4d968d7bab5b2a74a935",description:`Your ${dL1}`,public:!1},lang:{defaultValue:"de",description:"The language to use for the notifications.",public:!1},notificationat:{description:"An ISO date string used to display active notification at this date in the notification layer. If not defined the current date will be used.<br/>Ex: 2025-08-01T00:00:00Z .",public:!1},notificationtenant:{defaultValue:"rvf",description:`The ${HX} tenant to get the notification from.`,public:!1},notificationurl:{defaultValue:"https://moco.geops.io/api/v2/",description:`The ${HX} url to use.`,public:!1}},MA=fL1;function pL1({apikey:r,lang:t,notificationtenant:e,notificationurl:i}){let[o,n]=Ft([]);return et(()=>{new xd({apiKey:r||void 0,tenant:e,url:i}).export({contentMedium:!0,graph:"np_topo4,np_topo5,np_topo6,np_topo7,np_topo8,np_topo9,np_topo10,np_topo11,np_topo12,np_topo13,np_topo14,np_topo15,osm",hasGeoms:!0,publicAt:"2025-10-10T10:03:31.650Z"}).then(l=>{l?.paginatedSituations?.results&&n(l.paginatedSituations.results)}).catch(l=>{console.error(l)})},[r,i,e]),et(()=>{_l.locale(t)},[t]),W(gc.Provider,{value:_l,children:[W("style",{children:bA}),W("div",{className:"flex w-full flex-col gap-6",children:o?.map(l=>W(Wp,{canToggle:!0,headerClassName:"text-rvf-h3 font-semibold",iconClassName:"w-8 h-8 text-red",reasonClassName:"hidden",situation:l,timeIntervalClassName:"pl-1 text-base py-3 font-semibold text-balance",useShortMonth:!1},l.id))})]})}var VX={};Object.entries(MA).forEach(([r])=>{VX[r]=MA[r].defaultValue||null});function LL1(r){return W(pL1,{...VX,...r})}var pP=ht(LL1);var CL1='<a href="https://developer.geops.io/">geOps API key</a>',xl='<a href="https://developer.geops.io/apis/stops">geOps Stops API</a>',gL1={apikey:{description:`Your ${CL1}`,public:!0},bbox:{description:`The extent where to search the stops (minx,miny,maxx,maxy). See the ${xl} documentation.`,public:!0},countrycode:{description:"The country code to filter the results (IT, DE, CH ...)",public:!0},event:{defaultValue:"mwc:stopssearchselect",description:"The event's name to listen to when a stop is selected.",public:!0},field:{description:`Which field to look up, default all of them, Possible values:id, name, coords. See the ${xl} documentation.`,public:!0},limit:{defaultValue:"5",description:`The number of suggestions to show. See the ${xl} documentation.`,public:!0},mots:{description:`Commas separated list of mots used to filter the results (rail, bus, coach, foot, tram, subway, gondola, funicular, ferry, car). See the ${xl} documentation.`,public:!0},onselect:{description:null,public:!1},params:{description:`JSON string with additional parameters to pass to the request to the API. Ex: {"{ 'key': 'value' }"}. See the ${xl} documentation.`,public:!0},prefagencies:{description:`comma seperated list, order chooses which agency will be preferred as
3574
+ }`}),W("style",{children:bA}),W("style",{children:ZX}),W(YM.Provider,{value:p5,children:[W(eB,{}),W(tP,{replaceState:r1}),W(aB,{node:t.current,wcAttributes:r}),W(AP,{eventNode:t.current}),W(lP,{}),W(tB,{}),W(JM,{}),J&&W(JF,{}),g1&&W(Wy,{}),x1&&W(wA,{}),E&&W(rB,{}),E&&W(nB,{}),V&&W(YF,{}),W("div",{className:"@container/main relative size-full border font-sans",ref:t,children:W(Ky,{})})]})]})}var lL1=ht(sL1),NX={};Object.entries(us).forEach(([r])=>{NX[r]=us[r].defaultValue||null});function cL1(r){return W(lL1,{...NX,...r})}var UX=ht(cL1);function uL1(r){let[t,e]=Ft(),[i,o]=Ft(),[n,l]=Ft(),[A,d]=Ft(),L=ye(()=>({poisLayer:n,sellingPointsLayer:t,setPoisLayer:l,setSellingPointsLayer:e,setSharedMobilityLayerGroup:d,setTarifZonenLayer:o,sharedMobilityLayerGroup:A,tarifZonenLayer:i}),[n,t,A,i]);return W(zF.Provider,{value:L,children:W(UX,{...r})})}var hL1=ht(uL1),QX={};Object.entries(us).forEach(([r])=>{QX[r]=us[r].defaultValue||null});function AL1(r){return W(hL1,{...QX,...r})}var Xy=ht(AL1);var dL1='<a href="https://developer.geops.io/">geOps API key</a>',HX='<a href="https://geops.com/en/solution/disruption-information">geOps MOCO API</a>',fL1={apikey:{defaultValue:"5cc87b12d7c5370001c1d655820abcc37dfd4d968d7bab5b2a74a935",description:`Your ${dL1}`,public:!1},lang:{defaultValue:"de",description:"The language to use for the notifications.",public:!1},notificationat:{description:"An ISO date string used to display active notification at this date in the notification layer. If not defined the current date will be used.<br/>Ex: 2025-08-01T00:00:00Z .",public:!1},notificationtenant:{defaultValue:"rvf",description:`The ${HX} tenant to get the notification from.`,public:!1},notificationurl:{defaultValue:"https://moco.geops.io/api/v2/",description:`The ${HX} url to use.`,public:!1}},MA=fL1;function pL1({apikey:r,lang:t,notificationtenant:e,notificationurl:i}){let[o,n]=Ft([]);return et(()=>{new xd({apiKey:r||void 0,tenant:e,url:i}).export({contentMedium:!0,graph:"np_topo4,np_topo5,np_topo6,np_topo7,np_topo8,np_topo9,np_topo10,np_topo11,np_topo12,np_topo13,np_topo14,np_topo15,osm",hasGeoms:!0,publicAt:new Date().toISOString()}).then(l=>{l?.paginatedSituations?.results&&n(l.paginatedSituations.results)}).catch(l=>{console.error(l)})},[r,i,e]),et(()=>{_l.locale(t)},[t]),W(gc.Provider,{value:_l,children:[W("style",{children:bA}),W("div",{className:"flex w-full flex-col gap-6",children:o?.map(l=>W(Wp,{canToggle:!0,headerClassName:"text-rvf-h3 font-semibold",iconClassName:"w-8 h-8 text-red",reasonClassName:"hidden",situation:l,timeIntervalClassName:"pl-1 text-base py-3 font-semibold text-balance",useShortMonth:!1},l.id))})]})}var VX={};Object.entries(MA).forEach(([r])=>{VX[r]=MA[r].defaultValue||null});function LL1(r){return W(pL1,{...VX,...r})}var pP=ht(LL1);var CL1='<a href="https://developer.geops.io/">geOps API key</a>',xl='<a href="https://developer.geops.io/apis/stops">geOps Stops API</a>',gL1={apikey:{description:`Your ${CL1}`,public:!0},bbox:{description:`The extent where to search the stops (minx,miny,maxx,maxy). See the ${xl} documentation.`,public:!0},countrycode:{description:"The country code to filter the results (IT, DE, CH ...)",public:!0},event:{defaultValue:"mwc:stopssearchselect",description:"The event's name to listen to when a stop is selected.",public:!0},field:{description:`Which field to look up, default all of them, Possible values:id, name, coords. See the ${xl} documentation.`,public:!0},limit:{defaultValue:"5",description:`The number of suggestions to show. See the ${xl} documentation.`,public:!0},mots:{description:`Commas separated list of mots used to filter the results (rail, bus, coach, foot, tram, subway, gondola, funicular, ferry, car). See the ${xl} documentation.`,public:!0},onselect:{description:null,public:!1},params:{description:`JSON string with additional parameters to pass to the request to the API. Ex: {"{ 'key': 'value' }"}. See the ${xl} documentation.`,public:!0},prefagencies:{description:`comma seperated list, order chooses which agency will be preferred as
3575
3575
  ident_source (for id and code fields). Possible values: sbb, db. See the ${xl} documentation.`,public:!0},reflocation:{description:`Coordinates in WGS84 (in lat,lon order) used to rank stops close to this position higher. See the ${xl} documentation.`,public:!0},url:{defaultValue:"https://api.geops.io/stops/v1/",description:`The URL to the ${xl}.`,public:!0}},BA=gL1;function mL1(r){return W(gc.Provider,{value:_l,children:[W("style",{children:bA}),W(dL,{...r})]})}var GX={};Object.entries(BA).forEach(([r])=>{GX[r]=BA[r].defaultValue||null});function vL1(r){return W(mL1,{...GX,...r})}var LP=ht(vL1);qL(Xy,"geops-mobility",Object.keys(us),{mode:"open",shadow:!0});qL(LP,"geops-mobility-search",Object.keys(BA),{mode:"open",shadow:!0});qL(pP,"geops-mobility-notifications",Object.keys(MA),{mode:"open",shadow:!0});})();
3576
3576
  /*! Bundled license information:
3577
3577
 
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@geops/rvf-mobility-web-component",
3
3
  "license": "UNLICENSED",
4
4
  "description": "Web components for rvf in the domains of mobility and logistics.",
5
- "version": "0.1.71",
5
+ "version": "0.1.72",
6
6
  "homepage": "https://rvf-mobility-web-component-geops.vercel.app/",
7
7
  "type": "module",
8
8
  "main": "index.js",
@@ -38,7 +38,7 @@ function MobilityNotifications({
38
38
  graph:
39
39
  "np_topo4,np_topo5,np_topo6,np_topo7,np_topo8,np_topo9,np_topo10,np_topo11,np_topo12,np_topo13,np_topo14,np_topo15,osm",
40
40
  hasGeoms: true,
41
- publicAt: "2025-10-10T10:03:31.650Z",
41
+ publicAt: new Date().toISOString(),
42
42
  })
43
43
  .then((data) => {
44
44
  if (data?.paginatedSituations?.results) {
@@ -25,7 +25,7 @@ import type {
25
25
 
26
26
  const TRACKING_ZOOM = 16;
27
27
 
28
- const useGraphs = window.location?.href?.includes("graphs=true");
28
+ const useGraphs = true; //;window.location?.href?.includes("graphs=true");
29
29
 
30
30
  function RealtimeLayer(props: Partial<RealtimeLayerOptions>) {
31
31
  const {
@@ -1,2 +0,0 @@
1
- {
2
- }
package/.yarnrc.yml DELETED
@@ -1 +0,0 @@
1
- nodeLinker: node-modules