PageSourceSearch

https://www.randovosgesdunord.fr/_next/static/chunks/685.444130f34d7e680d.js

js randovosgesdunord.fr collected 2026-10-07 19:34:32 UTC 41,891 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="7cc3cfaf-2020-4aa1-ab2c-935b0392ae1e",e._sentryDebugIdIdentifier="sentry-dbid-7cc3cfaf-2020-4aa1-ab2c-935b0392ae1e")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[685],{73882:function(e,t,i){i.d(t,{b:function(){return r}});var n=i(24246);i(27378);let r=e=>{let{color:t="currentColor",size:i,...r}=e;return(0,n.jsxs)("svg",{width:i,height:i,viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...r,children:[(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.5 22C18.0228 22 22.5 17.5228 22.5 12C22.5 6.47715 18.0228 2 12.5 2C6.97715 2 2.5 6.47715 2.5 12C2.5 17.5228 6.97715 22 12.5 22Z",stroke:t,width:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,n.jsx)("path",{d:"M12.5 8V12",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,n.jsx)("circle",{cx:"12.5",cy:"15",r:"1",fill:t})]})}},21435:function(e,t,i){i.d(t,{J:function(){return r}});var n=i(24246);i(27378);let r=e=>{let{size:t}=e;return(0,n.jsx)("svg",{width:t,height:t,viewBox:"0 0 18 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M15 4.5L6.75 11.8333L3 8.5",stroke:"currentcolor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}},45914:function(e,t,i){i.d(t,{$:function(){return r}});var n=i(24246);i(27378);let r=e=>{let{color:t="currentColor",opacity:i,className:r,size:o}=e;return(0,n.jsx)("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:r,opacity:i,children:(0,n.jsx)("path",{d:"M12.008 1.152c-3.744 0-6.779 2.978-6.779 6.65 0 3.673 6.779 15.718 6.779 15.718s6.778-12.045 6.778-15.718c0-3.672-3.036-6.65-6.778-6.65z",fill:t})})}},31354:function(e,t,i){i.d(t,{e:function(){return r}});var n=i(24246);i(27378);let r=e=>{let{color:t="currentColor",size:i=24,...r}=e;return(0,n.jsx)("svg",{width:i,viewBox:"0 0 32 40",height:i,xmlns:"http://www.w3.org/2000/svg",...r,children:(0,n.jsx)("path",{fill:t,d:"M22.915 31.041H3.362a2.406 2.406 0 0 1-2.404-2.403V9.084a2.406 2.406 0 0 1 2.404-2.403h14.159V2.484A1.521 1.521 0 0 1 19.034.958h10.482a1.528 1.528 0 0 1 1.525 1.526v10.482a1.521 1.521 0 0 1-1.525 1.513h-4.198v14.159a2.406 2.406 0 0 1-2.403 2.403zm-6.2-11.737c.132 0 .26.053.353.147l4.989 4.987V14.48c-.863-.013-2.079.044-2.83 0a1.543 1.543 0 0 1-1.706-1.725c-.043-.748.012-1.95 0-2.811H4.22V22.01l4.345-4.346a.5.5 0 0 1 .708.001l4.424 4.45 2.663-2.663a.498.498 0 0 1 .354-.147zm5.844-5.825h6.957a.52.52 0 0 0 .525-.513V2.484a.526.526 0 0 0-.525-.526H19.034a.52.52 0 0 0-.513.526c-.007.871.007 7.455 0 8.155.055.376-.163 2.564.207 2.736a1.4 1.4 0 0 0 .521.104c.884-.01 2.416.003 3.31 0zm-8.862 3.94c-2.313 0-2.313-3.47 0-3.47s2.313 3.47 0 3.47zm9-6.062H21.14a.49.49 0 0 1-.184-.036h-.001a.508.508 0 0 1-.275-.273.521.521 0 0 1-.037-.186V9.304c.012-.654.987-.654 1 0v.346l4.57-4.57h-.347c-.654-.012-.654-.987 0-1l1.57.001a.501.501 0 0 1 .484.494v1.559c-.013.654-.988.654-1 0v-.346l-4.57 4.57h.346c.654.012.654.987 0 1z"})})}},47685:function(e,t,i){i.r(t),i.d(t,{DetailsMap:function(){return eW},default:function(){return eK}});var n=i(24246),r=i(907),o=i(27378),s=i(53740),l=i(90290);i(66665);var a=i(222),c=i(35364),d=i(86202),u=i(31875),p=i(21435),h=i(78351),x=i(6949),m=i(3350),g=i(31354);let v=e=>{let{displayMap:t,setMapId:i,mapId:r="default",...s}=e,l=(0,o.useCallback)(()=>{null==t||t(),null==i||i(r)},[t,r,i]),a="default"===r;return(0,n.jsxs)("button",{id:"backToMapButton",type:"button",className:(0,x.cn)("flex items-center fixed z-mapButton bottom-6 left-1/2 -translate-x-1/2\n        py-3 px-4 gap-1\n        shadow-sm rounded-full text-sm\n        text-primary1 bg-white hover:bg-primary2 focus:bg-primary2 transition-all"),...s,onClick:l,children:[(0,n.jsx)(h.Z,{id:a?"search.seeMap":"search.seeViewPoint"}),a?(0,n.jsx)(m.D,{size:24,"aria-hidden":!0}):(0,n.jsx)(g.e,{size:24,"aria-hidden":!0})]})};var f=i(9156),j=i(29344),y=i.n(j);i(59826),i(35906);var w=i(50724),b=i(83573),k=i(86677),L=i(90111);let C=e=>{var t;let{trekGeoJSON:i,id:n}=e,r=(0,w.Sx)(),s=(0,b.Z)(),l=null!==(t=(0,k.useRouter)().locale)&&void 0!==t?t:(0,L.Mb)();return(0,o.useEffect)(()=>
1{if(!r)return;let{features:e}=JSON.parse(i),t=e[0].geometry.coordinates.map(e=>e[2]),o=y().control.elevation({theme:"lightblue-theme",collapsed:!1,detached:!0,elevationDiv:"#".concat(n),summary:"inline",marker:"position-marker",followMarker:!1,legend:!1,zooming:!1,yAxisMin:.75*Math.min(...t),yAxisMax:1.25*Math.max(...t)});o.addTo(r);let a={"Total Length: ":"".concat(s.formatMessage({id:"details.altimetricProfileTotalLength"})," : "),"Max Elevation: ":"".concat(s.formatMessage({id:"details.altimetricProfileMaxElevation"})," : "),"Min Elevation: ":"".concat(s.formatMessage({id:"details.altimetricProfileMinElevation"})," : ")};return y().registerLocale(l,a),y().setLocale(l),o.load(i),()=>{o.clear(),r.removeControl(o)}},[n,s,l,r,i]),null},M=e=>{let{color:t="currentColor",opacity:i,className:r,size:o}=e;return(0,n.jsx)("svg",{width:o,height:o,viewBox:"0 0 44 44",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:r,opacity:i,children:(0,n.jsx)("path",{d:"M33 27.5l-11-11-11 11",stroke:t,strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round"})})},D=e=>{let{icon:t,className:i="",...r}=e;return(0,n.jsxs)("button",{className:(0,x.cn)("size-10 rounded-lg shadow-md z-mapButton bg-white text-greyDarkColored flex justify-center items-center mb-3",i),type:"button",...r,children:[t,(0,n.jsx)("span",{className:"sr-only",children:(0,n.jsx)(h.Z,{id:"search.map.panel.open"})})]})},V=()=>{let[e,t]=(0,o.useState)("COLLAPSED");return{controlSectionState:e,toggleControlSection:()=>t(e=>"COLLAPSED"===e?"EXPANDED":"COLLAPSED")}},P=e=>{let{color:t="currentColor",opacity:i,className:r,size:o}=e;return(0,n.jsx)("svg",{width:o,height:o,viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:r,opacity:i,children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.313 13.462c9.686 5.62-.067 12.226-1.795 4.157l-.576-.012c-1.729 8.085-11.46 1.472-1.768-4.146-10.677 6.191-10.665-8.605.009-2.408C-.491 4.857 12.263-2.538 12.26 9.85c.002-12.387 12.754-4.986 2.075 1.204 10.679-6.19 10.653 8.605-.022 2.409zm-2.054-2.494c-.709 0-1.284.577-1.284 1.29 0 .712.576 1.29 1.284 1.29.709 0 1.283-.578 1.283-1.29 0-.713-.574-1.29-1.283-1.29z",fill:t})})},S=e=>{let{color:t="currentColor",opacity:i,className:r,size:o}=e;return(0,n.jsx)("svg",{width:o,height:o,viewBox:"0 0 25 25",xmlns:"http://www.w3.org/2000/svg",className:r,opacity:i,children:(0,n.jsx)("path",{d:"M4.6,12.4L2,15.2l2.6,2.9h6.3v6.2H8.7V25h8.6v-0.7h-2.2v-6.2H23l0-5.7H15V9.7H23l0-5.7H15V0h-4.1v3.9H4.6L2,6.8l2.6,2.9 l6.3,0v2.7L4.6,12.4z M14.3,24.3h-2.7v-6.2h2.7V24.3z M11.6,0.7h2.7v3.2h-2.7V0.7z M4.9,8.9L3,6.8l1.9-2.1h17.3v4.3H4.9z M14.3,9.7 v2.7h-2.7V9.7H14.3z M22.2,13.1v4.3H4.9L3,15.2l1.9-2.1L22.2,13.1z",stroke:t})})},I=e=>{let{color:t="currentColor",opacity:i,className:r,size:o}=e;return(0,n.jsx)("svg",{width:o,height:o,viewBox:"0 0 25 25",xmlns:"http://www.w3.org/2000/svg",className:r,opacity:i,children:(0,n.jsx)("path",{fill:t,d:"M24.8,9.7V8.6c0-0.5-0.2-0.9-0.5-1.2C24,7,23.6,6.8,23.1,6.8h-1.7c0-0.2,0.1-0.3,0.1-0.5V5.3c0-0.5-0.2-0.9-0.5-1.2 c-0.3-0.3-0.8-0.5-1.2-0.5h-6.1c-0.4,0-0.8,0.2-1.1,0.4c-0.3-0.3-0.7-0.4-1.1-0.4H5.3C4.8,3.5,4.3,3.7,4,4C3.7,4.3,3.5,4.8,3.5,5.3 v1.1c0,0.2,0,0.3,0.1,0.5H1.9C1.4,6.8,1,7,0.7,7.4C0.3,7.7,0.2,8.1,0.2,8.6v1.1c0,0.5,0.2,0.9,0.5,1.2c0.3,0.3,0.8,0.5,1.2,0.5h1.7 c0,0.2-0.1,0.3-0.1,0.5V13c0,0.2,0,0.3,0.1,0.5H1.9c-0.5,0-0.9,0.2-1.2,0.5c-0.3,0.3-0.5,0.8-0.5,1.2v1.1c0,0.5,0.2,0.9,0.5,1.2 C1,18,1.4,18.2,1.9,18.2h1.7c0,0.2-0.1,0.3-0.1,0.5v1.1c0,0.5,0.2,0.9,0.5,1.2c0.3,0.3,0.8,0.5,1.2,0.5h6.1c0.4,0,0.8-0.2,1.1-0.4 c0.3,0.3,0.7,0.4,1.1,0.4h6.1c0.5,0,0.9-0.2,1.2-0.5c0.3-0.3,0.5-0.8,0.5-1.2v-1.1c0-0.2,0-0.3-0.1-0.5h1.7c0.5,0,0.9-0.2,1.2-0.5 c0.3-0.3,0.5-0.8,0.5-1.2v-1.1c0-0.5-0.2-0.9-0.5-1.2c-0.3-0.3-0.8-0.5-1.2-0.5h-1.7c0.1-0.2,0.1-0.3,0.1-0.5V12 c0-0.2,0-0.3-0.1-0.5h1.7c0.5,0,0.9-0.2,1.2-0.5C24.7,10.6,24.8,10.2,24.8,9.7z M13.1,5.3c0-0.3,0.2-0.5,0.5-0.5h6.1 c0.3,0,0.5,0.2,0.5,0.5v1.1c0,0.3-0.2,0.5-0.5,0.5h-1.9h-2.3h-1.9c-0.3,0-0.5-0.2-0.5-0.5V5.3z M16.1,15.3v1.1 c0,0.3-0.2,0.5-0.5,0.5H9.5c-0.3,0-0.5-0.2-0.5-0.5v-1.1c0-0.3,0.2-0.5,0.5-0.5h1.9h0h2.3h1.9C15.8,14.8,16.1,15,16.1,15.3z M11.4,8.1h2.3h1.9c0.3,0,0.5,0.2,0.5,0.5v1.1c0,0.3-0.2,0.5-0.5,0.5H9.5C9.2,10.2,9,10,9,9.7V8.6c0-0.3,0.2-0.5,0.5-0.5H11.4 L11.4,8.1z M4.8,6.3V5.3C4.8,5,5,4.8,5.3,4.8h6.1c0.3,0,0.5,0.2,0.5,0.5v1.1c0,0.3-0.2,0.5-0.5,0.5H9.4H7.2H5.3 C5,6.8,4.8,6.6,4.8,6.3z M1.4,9.7V8.6c0-0.3,0.2-0.5,0.5-0.5h3.3h1.9c0.3,0,0.5,0.2,0.5,0.5v1.1c0,0.3-0.2,0.5-0.5,0.5H1.9 C1.6,10.2,1.4,10,1.4,9.7z M7.2,11.5h2.3h1.9c0.3,0,0.5,0.2,0.5,0.5V13c0,0.3-0.2,0.5-0.5,0.5H5.3c-0.3,0-0.5-0.2-0.5-0.5V12 c0-0.3,0.2-0.5,0.5-0.5H7.2z M1.4,16.4v-1.1c0-0.3,0.2-0.5,0.5-0.5h3.3h1.9c0.3,0,0.5,0.2,0.5,0.5v1.1c0,0.3-0.2,0.5-0.5,0.5H1.9 C1.6,16.9,1.4,16.7,1.4,16.4z M11.4,20.2H5.3c-0.3,0-0.5-0.2-0.5-0.5v-1.1c0-0.3,0.2-0.5,0.5-0.5h1.9h2.3h1.9c0.3,0,0.5,0.2,0.5,0.5 v1.1C11.9,20,11.7,20.2,11.4,20.2z M20.3,18.7v1.1c0,0.3-0.2,0.5-0.5,0.5h-6.1c-0.3,0-0.5-0.2-0.5-0.5v-1.1c0-0.3,0.2-0.5,0.5-0.5 h1.9h0h2.3h1.9C20,18.2,20.3,18.4,20.3,18.7z M23.1,14.8c0.3,0,0.5,0.2,0.5,0.5v1.1c0,0.3-0.2,0.5-0.5,0.5h-5.3 c-0.3,0-0.5-0.2-0.5-0.5v-1.1c0-0.3,0.2-0.5,0.5-0.5h1.9h0H23.1z M20.3,12V13c0,0.3-0.2,0.5-0.5,0.5h-6.1c-0.3,0-0.5-0.2-0.5-0.5V12 c0-0.3,0.2-0.5,0.5-0.5h1.9h0h2.3h1.9C20,11.5,20.3,11.7,20.3,12z M23.6,9.7c0,
10.3-0.2,0.5-0.5,0.5h-5.3c-0.3,0-0.5-0.2-0.5-0.5V8.6 c0-0.3,0.2-0.5,0.5-0.5h1.9h0h3.3c0.3,0,0.5,0.2,0.5,0.5V9.7z"})})};var N=i(45914),E=e=>(0,n.jsx)("svg",{width:"1em",height:"1em",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,n.jsx)("path",{d:"m15 4-8.25 7.333L3 8",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})});let z=e=>{let{icon:t,active:i,toggle:r,transKey:o}=e,s=(0,b.Z)();return(0,n.jsxs)("button",{className:(0,x.cn)("flex items-center text-left font-bold",i?"text-primary1":"text-greyDarkColored"),onClick:r,type:"button",children:[(0,n.jsx)(t,{className:"size-6 mr-3"}),(0,n.jsx)("span",{className:"flex-auto",children:s.formatMessage({id:o})}),(0,n.jsx)(E,{visibility:i?"auto":"hidden"})]})};var H=e=>(0,n.jsx)("svg",{width:"1em",height:"1em",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,n.jsx)("path",{d:"M12.007 1.152c-3.744 0-6.778 2.978-6.778 6.65 0 3.673 6.778 15.718 6.778 15.718s6.779-12.045 6.779-15.718c0-3.672-3.036-6.65-6.779-6.65Z",fill:"currentColor"})}),A=e=>(0,n.jsxs)("svg",{width:"1em",height:"1em",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,n.jsx)("path",{clipRule:"evenodd",d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 16v-4 4Z",fill:"currentColor"}),(0,n.jsx)("path",{d:"M12 16v-4",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),(0,n.jsx)("circle",{cx:12,cy:8,r:1,fill:"currentColor"})]}),Z=e=>(0,n.jsxs)("svg",{width:"1em",height:"1em",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,n.jsx)("path",{clipRule:"evenodd",d:"M4 15s1-1 4-1 5 2 8 2 4-1 4-1V3s-1 1-4 1-5-2-8-2-4 1-4 1v12Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),(0,n.jsx)("path",{d:"M4 22v-7",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]}),R=e=>(0,n.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.0009 2.3999L22.08 6.62966V7.1999H1.91998V6.62966L12.0009 2.3999ZM4.44958 9.1199H6.32926L6.61822 17.7599H4.1995L4.44958 9.1199ZM2.87998 18.2399H21.12V19.1999H22.56V20.6399H23.52V21.5999H0.47998V20.6399H1.43998V19.1999H2.87998V18.2399ZM3.83998 7.6799H20.16V8.6399H3.83998V7.6799ZM19.512 9.1199H17.6333L17.3813 17.7599H19.8033L19.512 9.1199ZM13.2403 9.1199H15.119L15.407 17.7599H12.9873L13.2403 9.1199ZM10.7256 9.1199H8.84638L8.59294 17.7599H11.0117L10.7256 9.1199Z",fill:"currentColor"})}),Y=e=>(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 126.435 126.436",height:477.87,width:477.863,...e,children:(0,n.jsx)("path",{d:"M141.108 37.186a23.7 23.7 0 0 0-16.763 6.944 23.7 23.7 0 0 0 0 33.525 23.7 23.7 0 0 0 33.525 0 23.7 23.7 0 0 0 0-33.525 23.7 23.7 0 0 0-16.762-6.944zm0 31.61v-.002a7.906 7.906 0 0 1-5.588-2.314 7.905 7.905 0 0 1 0-11.176 7.905 7.905 0 0 1 11.176 0 7.905 7.905 0 0 1 0 11.
1176 7.905 7.905 0 0 1-5.588 2.314zM156.912 147.817h-71.12v-34.255l13.829 13.828a8.398 8.398 0 0 0 5.078 2.647 7.9 7.9 0 0 0 8.752-8.752 8.404 8.404 0 0 0-2.569-5.077l-25.09-25.01V72.073l10.215 10.214a7.631 7.631 0 0 0 6.129 2.415 7.63 7.63 0 0 0 5.725-3.265V81.3a8.064 8.064 0 0 0-.732-10.214l-16.97-16.97v.001a17.442 17.442 0 0 0-24.655 0L48.751 70.87a8.062 8.062 0 0 0-1.125 10.115 7.646 7.646 0 0 0 12.11 1.264l10.252-10.175v19.144L44.9 116.21a8.396 8.396 0 0 0-2.569 5.077 7.905 7.905 0 0 0 8.752 8.752 8.396 8.396 0 0 0 5.077-2.569l13.829-13.828v34.177H46.282a7.903 7.903 0 0 0 0 15.805h110.631a7.906 7.906 0 0 0 5.588-2.314 7.905 7.905 0 0 0 0-11.176 7.907 7.907 0 0 0-5.588-2.315z",style:{strokeWidth:.35277778},transform:"translate(-38.38 -37.186)"})}),T=e=>(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 174.653 99.58",height:376.364,width:660.105,...e,children:(0,n.jsx)("path",{d:"M39.407 54.484c-12.992 0-23.584 10.595-23.584 23.46 0 12.097 9.275 22.098 21.114 23.335 5.05 10.215 10.225 17.31 15.805 21.854 5.922 4.825 12.41 6.65 18.645 6.05 12.47-1.2 23.383-10.647 34.08-19.572 10.694-8.922 21.204-17.388 30.126-18.891 4.46-.751 8.49-.137 13.026 3.025 3.767 2.625 7.862 7.19 12.039 14.261-9.983 2.742-17.41 11.799-17.41 22.534 0 12.945 10.653 23.521 23.644 23.521 12.928 0 23.584-10.576 23.584-23.521 0-12.079-9.353-22.13-21.175-23.336h-.062c-5.132-9.492-10.353-15.969-16.051-19.94-4.547-3.168-9.445-4.597-14.2-4.692-1.584-.032-3.144.047-4.692.308-12.383 2.087-23.238 11.792-33.893 20.682-10.655 8.89-21.06 16.881-29.757 17.719-4.348.419-8.391-.533-12.965-4.26-3.868-3.151-7.987-8.46-12.223-16.422 10.061-2.687 17.533-11.818 17.533-22.657 0-12.864-10.592-23.46-23.584-23.46zm0 7.901c8.74 0 15.68 7 15.68 15.558 0 8.651-6.94 15.558-15.68 15.558-8.74 0-15.68-6.906-15.68-15.558 0-8.557 6.94-15.558 15.68-15.558zm127.487 52.6c8.646 0 15.68 7.018 15.68 15.557 0 8.633-7.034 15.619-15.68 15.619-8.74 0-15.743-6.987-15.743-15.619 0-8.538 7.003-15.558 15.743-15.558z",style:{fillRule:"evenodd",strokeWidth:.35277778},transform:"translate(-15.823 -54.482)"})});let U=e=>{let{id:t,trekChildrenVisibility:i,toggleTrekChildrenVisibility:r,poiVisibility:o,togglePoiVisibility:s,referencePointsVisibility:l,toggleReferencePointsVisibility:a,touristicContentVisibility:c,toggleTouristicContentVisibility:d,informationDeskMobileVisibility:u,toggleInformationDeskVisibility:p,coursesVisibility:h,toggleCoursesVisibility:x,experiencesVisibility:m,toggleExperiencesVisibility:v,signageVisibility:f,toggleSignageVisibility:j,serviceVisibility:y,toggleServiceVisibility:w,infrastructureVisibility:b,toggleInfrastructureVisibility:k,annotationViewpointVisibility:L,toggleAnnotationViewpointVisibility:C,viewPointVisibility:M,toggleViewPointVisiblity:D}=e;return(0,n.jsxs)("div",{className:"flex flex-col bg-white shadow-lg p-4 rounded-2xl w-[230px] gap-4",id:t,children:[i&&r&&(0,n.jsx)(z,{icon:H,active:"DISPLAYED"===i,toggle:r,transKey:"search.map.panel.trekChildren"}),o&&s&&(0,n.jsx)(z,{icon:P,active:"DISPLAYED"===o,toggle:s,transKey:"search.map.panel.poi"}),l&&a&&(0,n.jsx)(z,{icon:Z,active:"DISPLAYED"===l,toggle:a,transKey:"search.map.panel.referencePoints"}),c&&d&&(0,n.jsx)(z,{icon:R,active:"DISPLAYED"===c,toggle:d,transKey:"search.map.panel.touristicContent"}),u&&p&&(0,n.jsx)(z,{icon:A,active:"DISPLAYED"===u,toggle:p,transKey:"search.map.panel.informationDesks"}),h&&x&&(0,n.jsx)(z,{icon:T,active:"DISPLAYED"===h,toggle:x,transKey:"search.map.panel.courses"}),m&&v&&(0,n.jsx)(z,{icon:Y,active:"DISPLAYED"===m,toggle:v,transKey:"search.map.panel.experiences"}),f&&j&&(0,n.jsx)(z,{icon:S,active:"DISPLAYED"===f,toggle:j,transKey:"search.map.panel.signage"}),b&&k&&(0,n.jsx)(z,{icon:I,active:"DISPLAYED"===b,toggle:k,transKey:"search.map.panel.infrastructure"}),y&&w&&(0,n.jsx)(z,{icon:N.$,active:"DISPLAYED"===y,toggle:w,transKey:"search.map.panel.service"}),M&&D&&(0,n.jsx)(z,{icon:g.e,active:"DISPLAYED"===M,toggle:D,transKey:"viewPoint.title"}),L&&C&&(0,n.jsx)(z,{icon:A,active:"DISPLAYED"===L,toggle:C,transKey:"search.map.panel.annotations"})]})},G=e=>{let{opacity:t,className:i,size:r}=e;return(0,n.jsxs)("svg",{width:r,height:r,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:i,opacity:t,children:[(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2L2 7L12 12L22 7L12 2Z",stroke:"#534764",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,n.jsx)("path",{d:"M2 17L12 22L22 17",stroke:"#534764",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,n.jsx)("path",{d:"M2 12L12 17L22 12",stroke:"#534764",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})};var O=i(91277);let B=e=>{let{className:t="",position:i="topright",...r}=e,{controlSectionState:s,toggleControlSection:l}=V(),a=(0,o.useId)();if(0===Object.keys(r).length)return null;
1let c="COLLAPSED"===s?(0,n.jsx)(G,{size:24}):(0,n.jsx)(M,{size:30});return(0,n.jsx)(O.Z,{position:i,children:(0,n.jsxs)("div",{className:(0,x.cn)("flex flex-col items-end",t),children:[(0,n.jsx)(D,{"aria-expanded":"EXPANDED"===s?"true":"false","aria-controls":a,icon:c,onClick:l}),"EXPANDED"===s&&(0,n.jsx)(U,{id:a,...r})]})})};var F=i(85999),W=i(25413),K=i(12186),J=e=>(0,n.jsxs)("svg",{width:32,height:32,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 29.333c7.364 0 13.333-5.97 13.333-13.333 0-7.364-5.97-13.333-13.333-13.333C8.636 2.667 2.667 8.637 2.667 16c0 7.364 5.97 13.333 13.333 13.333Z",fill:"currentColor"}),(0,n.jsx)("path",{d:"M16 10.667 10.667 16 16 21.333M21.333 16H10.667",stroke:"#fff",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]}),_=i(13547),X=e=>{let{trekFamily:t,trekId:i}=e;if(!t||void 0===i||t.trekChildren.length<2)return null;let r=t.trekChildren.findIndex(e=>Number(e.id)===Number(i)),o=r>0?t.trekChildren[r-1]:null,s=r<t.trekChildren.length-1?t.trekChildren[r+1]:null;return(0,n.jsxs)("div",{className:"flex items-center justify-center gap-8",children:[o&&(0,n.jsxs)(W.Z,{href:(0,K.pW)(o.id,o.name,t.parentId),className:"flex items-center !text-primary1  gap-2",children:[(0,n.jsx)(J,{"aria-hidden":!0}),(0,n.jsx)(h.Z,{id:"map.drawer.prev"})]}),s&&(0,n.jsxs)(W.Z,{href:(0,K.pW)(s.id,s.name,t.parentId),className:"flex items-center !text-primary1 gap-2",children:[(0,n.jsx)(h.Z,{id:"map.drawer.next"}),(0,n.jsx)(_.Z,{"aria-hidden":!0})]})]})},$=e=>{let{title:t,trekGeoJSON:i,trekFamily:r,trekId:s}=e,{mobileMapPanelDefaultOpened:l}=(0,F.K)(),[a,c]=(0,o.useState)(l),d=(0,o.useId)();return!1==!!i&&(!r||null===s||r.trekChildren.length<2)?null:(0,n.jsxs)("div",{className:(0,x.cn)("absolute bg-white inset-0 top-auto z-[1500] transition rounded-t-xl translate-y-0",!a&&"translate-y-[calc(100%-45px)]"),children:[(0,n.jsxs)("button",{className:"flex flex-col w-full items-center justify-around",type:"button",onClick:e=>{e.isTrusted&&c(e=>!e)},"aria-expanded":a,"aria-controls":d,children:[(0,n.jsx)("hr",{className:"border-2 border-greySoft w-8 rounded-xl mt-2"}),(0,n.jsx)("strong",{className:"text-base text-primary1 font-bold m-2 mt-1",children:t})]}),(0,n.jsxs)("div",{className:"px-2 pb-4",children:[(0,n.jsx)(X,{trekFamily:r,trekId:s}),"string"==typeof i&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(C,{id:"altimetric-profile-map",trekGeoJSON:i}),(0,n.jsx)("div",{className:"h-90",id:"altimetric-profile-map"})]})]})]})},q=i(22162),Q=i(56793),ee=i(58130);i(13954);var et=e=>{let{pictureTilesUrl:t,metadata:i}=e,n=(0,w.Sx)();return(0,o.useEffect)(()=>{if(!i||!t)return;let{sizeX:e,sizeY:r,tileWidth:o}=i,s=new(y()).RasterCoords(n,[e,r],o);if(void 0===n)return;let{offsetHeight:l,offsetWidth:a}=n.getContainer(),c=s.unproject([0,r-(r-l)/2]),d=s.unproject([e-(e-a)/2,0]),u=new(y()).LatLngBounds(c,d);n.fitBounds(u),n.setMaxZoom(s.zoomLevel());let p=new(y()).TileLayer(t,{noWrap:!1,bounds:s.getMaxBounds(),maxNativeZoom:s.zoomLevel()});return n.addLayer(p),()=>{null!==p&&n.removeLayer(p)}},[n,t,i]),null};let ei=e=>{let{metadata:t}=e;if(null===t)return y().CRS.Simple;let{sizeX:i,sizeY:n,tileWidth:r,levels:o}=t,s=2**(o-1);return y().Util.extend(y().CRS.Simple,{transformation:new(y()).Transformation(Math.min(s*r,i)/s/i,0,Math.min(s*r,n)/s/n,0)})};var en=i(79842),er=i(38e3),eo=i(10132),es=i(24016),el=i(9432),ea=i(81387),ec=i(26327),ed=i(38579),eu=i.n(ed),ep=i(87853),eh=i(75611);let ex=o.memo(function(e){let{pictogramUri:t,...i}=e;return t?t.endsWith(".svg")?(0,n.jsx)(en.Z,{src:t,className:"size-6",preProcessor:(0,eh.hZ)(),...i}):(0,n.jsx)(eu(),{loading:"lazy",src:t,width:16,height:16,alt:"",...i}):null}),em=e=>{var t,i;let{properties:r}=e;if(null===r||!r.name)return null;let o=null==r?void 0:null===(t=r.category)||void 0===t?void 0:t.pictogramUri;return(0,n.jsx)(er.u,{children:(0,n.jsxs)("span",{className:"flex flex-wrap items-center gap-1 p-2",children:[!!(null===(i=r.category)||void 0===i?void 0:i.label)&&(0,n.jsxs)("span",{className:"flex gap-2 font-bold pr-6",children:[(0,n.jsx)(ex,{pictogramUri:o}),(0,n.jsx)("span",{children:r.category.label})]}),(0,n.jsx)("span",{children:r.name})]})})},eg=e=>{var t,i;let{geometry:r,properties:o,id:s}=e,l=(0,w.Sx)();if("GeometryCollection"===r.type)return(0,n.jsx)(n.Fragment,{children:r.geometries.map((e,t)=>(0,n.jsx)(eg,{id:"".concat(s,"-").concat(t),geometry:e,properties:{}},"".concat(s,"-").concat(t)))});let a=null==o?void 0:null===(t=o.category)||void 0===t?void 0:t.id;if("Point"===r.type||"MultiPoint"===r.type){let e="Point"===r.type?[r.coordinates]:r.coordinates,t=null==o?void 0:null===(i=o.category)||void 0===i?void 0:i.pictogramUri;return(0,n.jsx)(n.Fragment,{children:e.map((e,i)=>{let[r,l]=e;return t?(0,n.jsx)(eo.J,{position:[l,r],icon:(0,ep.I)(t,1),children:(0,n.jsx)(em,{properties:o})},"point-".concat(s,"-").concat(i)):(0,n.jsx)(es.c,{className:(0,x.cn)("annotation annotation-point",a&&"annotation-type-".concat(a)),center:[l,r],radius:6,children:(0,n.jsx)(em,{properties:o})},"point-".concat(s,"-").concat(i))})})}if("LineString"===r.type||"MultiLineString"===r.type){let e="LineString"===r.type?[r.coordinates]:r.coordinates;return(0,n.jsx)(n.Fragment,{children:e.map((e,t)=>(0,n.jsx)(el.a,{className:(0,x.cn)("annotation annotation-line",a&&"annotation-type-".concat(a)),positions:e.map(e=>{let[t,i]=e;return[i,t]}),children:(0,n.jsx)(em,{properties:o})},"linestring-".concat(s,"-").concat(t)))})}if("Polygon"===r.type||"MultiPolygon"===r.type){let e="Polygon"===r.type?[r.coordinates]:r.coordinates;if((null==o?void 0:o.annotationType)==="circle"){let e=y().geoJSON(r).getBounds().getCenter(),[t,i]=r.coordinates[0][0],s=l.distance(e,[i,t]);return(0,n.jsx)(ea.C,{className:(0,x.cn)("annotation annotation-circle",a&&"annotation-type-".concat(a)),center:y().latLng(e),radius:Math.sqrt(Math.pow(s,2)/2),children:(0,n.jsx)(em,{properties:o})})}return(0,n.jsx)(n.Fragment,{children:e.map((e,t)=>(0,n.jsx)(ec.m,{className:(0,x.cn)("annotation annotation-polygon",a&&"annotation-type-".concat(a)),positions:e.map(e=>e.map(e=>{let[t,i]=e;return[i,t]})),children:(0,n.jsx)(em,{properties:o})},"polygon-".concat(s,"-").concat(t)))})}return null},ev=e=>{let{contents:t,...i}=e;return void 0===t?null:(0,n.jsx)(n.Fragment,{children:t.map((e,t)=>(0,n.jsx)(eg,{id:String(t),...e,...i},t))})};var ef=i(81449),ej=i(95501),ey=i(6876);let ew=e=>void 0===e.points?null:(0,n.jsx)(n.Fragment,{children:e.points.map(e=>null!==e.location&&(0,n.jsx)(ey.y,{id:e.id,position:[e.location.y,e.location.x],pictogramUri:e.pictogramUri,type:null,children:(0,n.jsx)(er.u,{children:e.name})},e.id))});var eb=i(37803),ek=i(73882);let eL=e=>{let{onChange:t,position:i,pictogram:r}=e,[s,l]=(0,o.useState)(i);(0,o.useEffect)(()=>
1{l(i)},[i]);let a=(0,o.useRef)(null),c=(0,o.useMemo)(()=>({dragend(){let e=a.current;if(null!==e){let i=e.getLatLng();l(i),null==t||t(i)}}}),[t]);return(0,n.jsx)(eo.J,{draggable:!0,eventHandlers:c,icon:r,position:s,ref:a,zIndexOffset:1e3})};var eC=i(26891);let eM=()=>{let{coordinatesReport:e,coordinatesReportTouched:t,setCoordinatesReport:i,setCoordinatesReportTouched:r}=(0,u.v9)(),o=(0,ej.useMediaPredicate)("(max-width: 1024px)");if((0,w.zV)({click:e=>{let{latlng:t}=e;l(t)}}),null===e)return null;let s=(0,ep.I)((0,eb.uS)((0,n.jsx)(ek.b,{color:"white"})),1.5,eC.theme.extend.colors.red),l=e=>{r(!0),i({type:"Point",coordinates:{x:e.lng,y:e.lat}})},{coordinates:{x:a,y:c}}=e;return(0,n.jsxs)(n.Fragment,{children:[(!t||!o)&&(0,n.jsx)("div",{className:"text-sm absolute top-6 left-1/2 -translate-x-1/2 z-10 py-2 desktop:py-3 px-3 desktop:px-3 rounded-2xl border-2 border-solid border-red bg-white z-mapButton",children:(0,n.jsxs)("p",{className:"flex gap-2 text-red",children:[(0,n.jsx)(ek.b,{className:"shrink-0",size:24}),(0,n.jsx)("span",{children:(0,n.jsx)(h.Z,{id:"report.mapButton.create"})})]})}),(0,n.jsx)(eL,{onChange:l,pictogram:s,position:{lat:c,lng:a}})]})},eD=e=>{let{color:t="currentColor",opacity:i,className:r,size:o}=e;return(0,n.jsxs)("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:r,opacity:i,children:[(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,n.jsx)("path",{d:"M12 16V12",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,n.jsx)("circle",{cx:"12",cy:"8",r:"1",fill:t})]})},eV=e=>{let t=(0,o.useMemo)(()=>{var t;return(null!==(t=e.informationDesks)&&void 0!==t?t:[]).filter(e=>{let{longitude:t,latitude:i}=e;return t&&i}).map(e=>{let{longitude:t,latitude:i,name:n}=e;return{name:n,position:[i,t]}})},[e.informationDesks]);return 0===t.length?null:(0,n.jsx)(n.Fragment,{children:t.map((e,t)=>(0,n.jsx)(ey.y,{id:e.position.join(""),position:e.position,pictogramUri:(0,eb.uS)((0,n.jsx)(eD,{color:"white"})),type:null,children:(0,n.jsx)(er.u,{children:e.name})},t))})},eP=e=>{let{number:t}=e;return(0,n.jsx)("div",{className:"size-7 rounded-full bg-redMarker grid place-items-center text-white",children:(0,n.jsx)("span",{children:t})})},eS=e=>new j.DivIcon({iconSize:[26,26],iconAnchor:[13,13],html:(0,eb.uS)((0,n.jsx)(eP,{number:e})),className:"bg-none border-none"}),eI=e=>(0,n.jsx)(n.Fragment,{children:void 0!==e.pointsReference&&e.pointsReference.map((e,t)=>(0,n.jsx)(eo.J,{position:[e.y,e.x],icon:eS(t+1)},t))}),eN=e=>{let{dictionary:t,icon:i=S}=e,r=(0,o.useMemo)(()=>Object.values(null!=t?t:{}).filter(e=>{let{geometry:t}=e;return!!(null==t?void 0:t.coordinates)}).map(e=>{var t;let{accessibility:r,description:o,geometry:s,name:l,type:a,imageUrl:c}=e;return{accessibility:r,description:o,imageUrl:c,name:l,pictogramUri:null!==(t=a.pictogram)&&void 0!==t?t:(0,eb.uS)((0,n.jsx)(i,{color:"white"})),position:[s.coordinates[1],s.coordinates[0]],type:a.label}}),[i,t]);return 0===r.length?null:(0,n.jsx)(n.Fragment,{children:r.map((e,t)=>(0,n.jsx)(ey.y,{id:e.position.join(""),position:e.position,pictogramUri:e.pictogramUri,type:null,children:(0,n.jsx)(er.u,{className:"!p-0 !border-0 !rounded-xl !overflow-hidden w-55 desktop:w-70 !whitespace-normal",children:(0,n.jsxs)("div",{className:"flex flex-col",children:[null!==e.imageUrl&&(0,n.jsx)(eu(),{loading:"lazy",className:"h-40 w-auto desktop:h-30 object-cover",width:300,height:130,src:e.imageUrl,alt:""}),(0,n.jsxs)("div",{className:"p-4",children:[(0,n.jsx)("div",{className:"text-P2 mb-1 text-greyDarkColored",children:e.type}),(0,n.jsx)("h3",{className:"text-Mobile-C1 text-primary1 font-bold desktop:text-H4 line-clamp-2",children:e.name}),!!e.description&&(0,n.jsx)("p",{className:"text-P2 my-2",dangerouslySetInnerHTML:{__html:e.description}}),!!e.accessibility&&(0,n.jsxs)("p",{className:"text-P2 my-2",children:[(0,n.jsxs)("strong",{className:"font-bold",children:[(0,n.jsx)(h.Z,{id:"details.accessibility"})," :"]})," ",e.accessibility]})]})]})})},t))})},eE=e=>{let{contents:t}=e,i=(0,o.useMemo)(()=>void 0===t?null:t.map(e=>{let{color:t,geometry:i}=e;
1return"MultiPolygon"===i.type?i.coordinates.flatMap(e=>e.map(e=>({positions:e.map(e=>[e.y,e.x]),color:t}))):{positions:i.coordinates.map(e=>e.map(e=>[e.y,e.x])),color:t}}).flat(),[t]);return null===i?null:i.map(e=>{let{positions:t,color:i}=e;return(0,n.jsx)(ec.m,{className:"text-".concat(i),color:"currentColor",positions:t,weight:3},i)})};var ez=i(76079);let eH=e=>{let{trekChildrenGeometries:t,parentId:i}=e;return t?(0,n.jsx)(n.Fragment,{children:t.map((e,t)=>{let r=e.id.split("-"),o=Number(r[r.length-1]);return(0,n.jsx)(ey.y,{id:e.id,position:[e.departure.y,e.departure.x],rank:t+1,type:"TREK_CHILD",children:(0,n.jsx)(ez.G,{id:o,type:"TREK",parentId:i})},e.id)})}):null},eA=e=>{let{points:t,...i}=e;return(null==t?void 0:t.length)?(0,n.jsx)(n.Fragment,{children:t.map(e=>{var t;return(0,n.jsx)(ey.y,{id:e.id,position:[e.location.y,e.location.x],pictogramUri:e.pictogramUri,children:(0,n.jsx)(ez.G,{id:e.id,type:null!==(t=e.type)&&void 0!==t?t:null,content:e.content,...i})},e.id)})}):null};var eZ=e=>{let{viewPoints:t,setMapId:i}=e,r=(0,b.Z)();if(!(null==t?void 0:t.length))return null;let o=t.filter(e=>{let{geometry:t}=e;return null!==t}).map(e=>{let{id:t,geometry:o,title:s,thumbnailUrl:l}=e;return{id:"DETAILS-VIEWPOINT-".concat(t),location:{x:o.coordinates[0],y:o.coordinates[1]},name:s,pictogramUri:(0,eb.uS)((0,n.jsx)(g.e,{color:"white"})),content:{imgUrl:l,place:r.formatMessage({id:"viewPoint.label"}),title:null!=s?s:"",button:{onClick:()=>{null==i||i(t)},label:"viewPoint.displayPicture"}}}});return(0,n.jsx)(eA,{points:o})};let eR=e=>{var t,i,s;let{visibleSection:l}=(0,o.useContext)(d.L),a=(0,ej.useMediaPredicate)("(max-width: 1024px)");return(0,n.jsxs)(n.Fragment,{children:[("itinerancySteps"===l||"courses"===l||"DISPLAYED"===e.trekChildrenMobileVisibility)&&(0,n.jsx)(eH,{trekChildrenGeometries:e.trekChildrenGeometries,parentId:e.parentId}),("description"===l||"DISPLAYED"===e.referencePointsMobileVisibility)&&(0,n.jsx)(eI,{pointsReference:null!==(s=e.pointsReference)&&void 0!==s?s:void 0}),("subsites"===l||"DISPLAYED"===e.experiencesVisibility)&&(0,n.jsx)(r.A,{contents:null===(t=e.experiences)||void 0===t?void 0:t.map(e=>{var t;return{...e,pictogramUri:null===(t=e.category)||void 0===t?void 0:t.pictogramUri}}),type:"OUTDOOR_SITE"}),("courses"===l||"DISPLAYED"===e.coursesVisibility)&&(0,n.jsx)(r.A,{contents:null===(i=e.courses)||void 0===i?void 0:i.map(e=>({...e,pictogramUri:null})),type:"OUTDOOR_SITE"}),("poi"===l||"DISPLAYED"===e.poiMobileVisibility)&&(0,n.jsx)(ew,{points:e.poiPoints}),("touristicContent"===l||"DISPLAYED"===e.touristicContentMobileVisibility)&&(0,n.jsx)(r.A,{contents:e.touristicContentPoints}),"sensitiveAreas"===l&&(0,n.jsx)(eE,{contents:e.sensitiveAreasGeometry}),("practicalInformations"===l||"DISPLAYED"===e.informationDeskMobileVisibility)&&(0,n.jsx)(eV,{informationDesks:e.informationDesks}),"DISPLAYED"===e.signageVisibility&&(0,n.jsx)(eN,{dictionary:e.signage}),"DISPLAYED"===e.infrastructureVisibility&&(0,n.jsx)(eN,{dictionary:e.infrastructure,icon:I}),"DISPLAYED"===e.serviceVisibility&&(0,n.jsx)(ew,{points:e.service}),(a||"report"===l)&&e.reportVisibility&&(0,n.jsx)(eM,{}),("DISPLAYED"===e.viewPointVisibility||"medias"===l)&&(0,n.jsx)(eZ,{viewPoints:e.viewPoints,setMapId:e.setMapId})]})},eY=e=>"DISPLAYED"===e?"HIDDEN":"DISPLAYED",eT=()=>{let{displaySecondaryLayersByDefault:e}=(0,F.K)(),t=e?"DISPLAYED":"HIDDEN",[i,n]=(0,o.useState)("HIDDEN"),[r,s]=(0,o.useState)("HIDDEN"),[l,a]=(0,o.useState)("HIDDEN"),[c,d]=(0,o.useState)("HIDDEN"),[u,p]=(0,o.useState)("HIDDEN"),[h,x]=(0,o.useState)("HIDDEN"),[m,g]=(0,o.useState)("HIDDEN"),[v,f]=(0,o.useState)(t),[j,y]=(0,o.useState)(t),[w,b]=(0,o.useState)(t),[k,L]=(0,o.useState)("HIDDEN"),[C,M]=(0,o.useState)("DISPLAYED");return{trekChildrenMobileVisibility:i,toggleTrekChildrenVisibility:()=>n(eY),poiMobileVisibility:r,togglePoiVisibility:()=>s(eY),referencePointsMobileVisibility:l,informationDeskMobileVisibility:u,toggleReferencePointsVisibility:()=>a(eY),touristicContentMobileVisibility:c,toggleTouristicContentVisibility:()=>d(eY),toggleInformationDeskVisibility:()=>p(eY),coursesVisibility:h,toggleCoursesVisibility:()=>x(eY),experiencesVisibility:m,toggleExperiencesVisibility:()=>g(eY),signageVisibility:v,toggleSignageVisibility:()=>f(eY),serviceVisibility:j,toggleServiceVisibility:()=>
1y(eY),infrastructureVisibility:w,toggleInfrastructureVisibility:()=>b(eY),viewPointVisibility:k,toggleViewPointVisibility:()=>L(eY),annotationViewpointVisibility:C,toggleAnnotationViewpointVisibility:()=>M(eY)}};var eU=i(55768),eG=i(88942),eO=i(31070),eB=i(98095);let eF=e=>(0,n.jsxs)(n.Fragment,{children:[void 0!==e.arrivalLocation&&(0,n.jsx)(eo.J,{position:[e.arrivalLocation.y,e.arrivalLocation.x],icon:eU.L}),void 0!==e.departureLocation&&(0,n.jsx)(eo.J,{position:[e.departureLocation.y,e.departureLocation.x],icon:eG.P}),void 0!==e.parkingLocation&&(0,n.jsx)(eo.J,{position:[e.parkingLocation.y,e.parkingLocation.x],icon:eO.C,children:(0,n.jsx)(er.u,{children:e.advisedParking})}),e.trekGeometry&&(0,n.jsx)(eB.t,{positions:e.trekGeometry})]}),eW=e=>{var t,i,m,g,j,y,w,b;let{reportVisibility:k,setReportVisibility:L}=(0,u.v9)(),M=()=>{e.hideMap&&(e.hideMap(),L(!1))},{trekChildrenMobileVisibility:D,toggleTrekChildrenVisibility:V,poiMobileVisibility:P,togglePoiVisibility:S,referencePointsMobileVisibility:I,toggleReferencePointsVisibility:N,touristicContentMobileVisibility:E,toggleTouristicContentVisibility:z,informationDeskMobileVisibility:H,toggleInformationDeskVisibility:A,coursesVisibility:Z,toggleCoursesVisibility:R,experiencesVisibility:Y,toggleExperiencesVisibility:T,signageVisibility:U,serviceVisibility:G,toggleSignageVisibility:O,toggleServiceVisibility:W,infrastructureVisibility:K,toggleInfrastructureVisibility:J,viewPointVisibility:_,toggleViewPointVisibility:X,annotationViewpointVisibility:en,toggleAnnotationViewpointVisibility:er}=eT(),eo=(0,F.K)(),{mapCenter:es,coordinatesReportTouched:el}=(0,u.v9)(),ea=[[e.bbox.corner1.y,e.bbox.corner1.x],[e.bbox.corner2.y,e.bbox.corner2.x]],ec=null!==(y=null===(t=e.viewPoints)||void 0===t?void 0:t.find(t=>{let{id:i}=t;return i===e.mapId}))&&void 0!==y?y:"default",{map:ed,setMapInstance:eu}=(0,c.Y)(e.trekId,ea);(0,o.useEffect)(()=>{ed&&es&&ed.setView(es)},[ed,es]);let{visibleSection:ep}=(0,o.useContext)(d.L);(0,o.useEffect)(()=>{if("report"===ep&&k){var t;null===(t=e.setMapId)||void 0===t||t.call(e,"default")}},[ep,e.setMapId]);let eh=!!e.title;return(0,n.jsx)("div",{className:(0,x.cn)("relative size-full","report"===ep&&k&&"after:content-[''] after:absolute after:inset-0 desktop:after:top-1 after:border-solid after:border-3 after:border-red after:pointer-events-none"),children:(0,n.jsxs)(s.h,{className:(0,x.cn)("mapContainer size-full",eh&&"hasDrawer","default"!==e.mapId&&void 0!==e.mapId&&"!bg-black"),scrollWheelZoom:!0,maxZoom:navigator.onLine?eo.maximumZoomLevel:Math.max(...null!==(w=null==eo?void 0:eo.zoomAvailableOffline)&&void 0!==w?w:[]),minZoom:navigator.onLine?void 0:Math.min(...null!==(b=null==eo?void 0:eo.zoomAvailableOffline)&&void 0!==b?b:[]),zoomControl:e.hasZoomControl,ref:eu,bounds:ea,..."default"!==ec&&{crs:ei(ec)},children:[k&&el?(0,n.jsx)(f.x,{icon:(0,n.jsx)(p.J,{size:20}),onClick:M,children:(0,n.jsx)(h.Z,{id:"report.mapButton.validate"})}):(0,n.jsx)(f.x,{icon:(0,n.jsx)(a.X,{size:18}),onClick:M}),e.hasZoomControl&&(0,n.jsx)(ee.Z,{}),"default"!==ec&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(et,{...ec}),"type"in ec.annotations&&en&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(B,{annotationViewpointVisibility:en,toggleAnnotationViewpointVisibility:er}),"DISPLAYED"===en&&(0,n.jsx)(ev,{contents:ec.annotations.features})]}),(0,n.jsx)(v,{displayMap:e.displayMap,setMapId:e.setMapId})]}),"default"===ec&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(q.P,{}),(0,n.jsx)(l.j,{}),(0,n.jsx)(Q.Z,{}),(0,n.jsx)(B,{trekChildrenVisibility:e.trekChildrenGeometries&&e.trekChildrenGeometries.length>0?D:null,poiVisibility:e.poiPoints&&e.poiPoints.length>0?P:null,referencePointsVisibility:e.pointsReference&&e.pointsReference.length>0?I:null,touristicContentVisibility:e.touristicContentPoints&&e.touristicContentPoints.length>0?E:null,informationDeskMobileVisibility:e.informationDesks&&e.informationDesks.some(e=>{let{longitude:t,latitude:i}=e;return t&&i})?H:null,coursesVisibility:e.courses&&e.courses.length>0?Z:null,experiencesVisibility:e.experiences&&e.experiences.length>0?Y:null,signageVisibility:e.signage?U:null,serviceVisibility:e.service&&e.service.length>
10?G:null,infrastructureVisibility:e.infrastructure?K:null,viewPointVisibility:(null===(i=e.viewPoints)||void 0===i?void 0:i.length)?_:null,toggleTrekChildrenVisibility:V,togglePoiVisibility:S,toggleReferencePointsVisibility:N,toggleTouristicContentVisibility:z,toggleInformationDeskVisibility:A,toggleCoursesVisibility:R,toggleExperiencesVisibility:T,toggleSignageVisibility:O,toggleServiceVisibility:W,toggleInfrastructureVisibility:J,toggleViewPointVisiblity:X}),e.trekGeometry&&(0,n.jsx)(eF,{arrivalLocation:e.arrivalLocation,departureLocation:e.departureLocation,parkingLocation:e.parkingLocation,trekGeometry:e.trekGeometry,advisedParking:e.advisedParking}),e.outdoorGeometry&&(0,n.jsx)(r.A,{contents:[e.outdoorGeometry],type:e.type}),e.eventGeometry&&(0,n.jsx)(r.A,{contents:[e.eventGeometry],type:e.type}),(0,n.jsx)(eR,{courses:e.courses,experiences:e.experiences,parentId:e.trekId,poiPoints:e.poiPoints,touristicContentPoints:e.touristicContentPoints,pointsReference:e.pointsReference,trekChildrenGeometries:e.trekChildrenGeometries,sensitiveAreasGeometry:e.sensitiveAreas,signage:e.signage,service:e.service,infrastructure:e.infrastructure,trekChildrenMobileVisibility:D,poiMobileVisibility:P,referencePointsMobileVisibility:I,touristicContentMobileVisibility:E,informationDeskMobileVisibility:H,reportVisibility:k,coursesVisibility:Z,experiencesVisibility:Y,informationDesks:e.informationDesks,signageVisibility:U,serviceVisibility:G,infrastructureVisibility:K,viewPoints:e.viewPoints,viewPointVisibility:_,setMapId:e.setMapId}),(0,n.jsx)(ef.Z,{}),!0===e.displayAltimetricProfile&&e.trekGeoJSON&&(0,n.jsx)(C,{id:"altimetric-profile",trekGeoJSON:e.trekGeoJSON}),void 0!==e.title&&(0,n.jsx)("div",{className:"desktop:hidden z-10",children:(0,n.jsx)($,{title:e.title,trekGeoJSON:!0===e.displayAltimetricProfile?e.trekGeoJSON:"",trekFamily:e.trekFamily,trekId:e.trekId})}),Number(null===(m=e.viewPoints)||void 0===m?void 0:m.length)>0&&(0,n.jsx)(v,{displayMap:e.displayMap,setMapId:e.setMapId,mapId:null===(j=e.viewPoints)||void 0===j?void 0:null===(g=j[0])||void 0===g?void 0:g.id})]})]})})};var eK=eW},907:function(e,t,i){i.d(t,{A:function(){return o}});var n=i(24246),r=i(14082);let o=e=>{let{contents:t,type:i="TOURISTIC_CONTENT"}=e;return void 0===t?null:(0,n.jsx)(n.Fragment,{children:t.map(e=>(0,n.jsx)(r.X,{type:i,...e},e.id))})}},55768:function(e,t,i){i.d(t,{L:function(){return n}});let n=new(i(29344)).Icon({iconUrl:"/icons/arrival-map-marker.svg",iconSize:[36,44],iconAnchor:[18,44]})},88942:function(e,t,i){i.d(t,{P:function(){return n}});let n=new(i(29344)).Icon({iconUrl:"/icons/departure-map-marker.svg",iconSize:[36,44],iconAnchor:[18,44]})},31070:function(e,t,i){i.d(t,{C:function(){return n}});let n=new(i(29344)).Icon({iconUrl:"/icons/parking-map-marker.svg",iconSize:[36,44],iconAnchor:[18,44]})},98095:function(e,t,i){i.d(t,{t:function(){return s}});var n=i(24246),r=i(88764),o=i(26891);let s=e=>{let{positions:t}=e;return(0,n.jsx)(r.Z,{text:"  >  ",repeat:!0,center:!0,offset:6,attributes:{"font-size":10},positions:t.map(e=>[e.y,e.x]),color:o.theme.extend.colors.primary1.DEFAULT})}},13547:function(e,t,i){var n=i(24246);i(27378),t.Z=e=>(0,n.jsxs)("svg",{width:32,height:32,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 2.667C8.636 2.667 2.667 8.637 2.667 16c0 7.364 5.97 13.333 13.333 13.333 7.364 0 13.333-5.97 13.333-13.333 0-7.364-5.97-13.333-13.333-13.333Z",fill:"currentColor"}),(0,n.jsx)("path",{d:"M16 21.333 21.333 16 16 10.667M10.667 16h10.666",stroke:"#fff",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})},31875:function(e,t,i){i.d(t,{U5:function(){return l},v9:function(){return s}});var n=i(24246),r=i(27378);let o=(0,r.createContext)({coordinatesReport:null,coordinatesReportTouched:!1,mapCenter:null,reportVisibility:!1,setCoordinatesReport:e=>e,setCoordinatesReportTouched:e=>e,setMapCenter:e=>e,setReportVisibility:e=>e}),s=()=>(0,r.useContext)(o),l=e=>{let{children:t}=e,[i,s]=(0,r.useState)(null),[l,a]=(0,r.useState)(!1),[c,d]=(0,r.useState)(!1),[u,p]=(0,r.useState)(null);return(0,n.jsx)(o.Provider,{value:{coordinatesReport:i,coordinatesReportTouched:l,mapCenter:u,reportVisibility:c,setCoordinatesReport:s,setCoordinatesReportTouched:a,setMapCenter:p,setReportVisibility:d},children:t})}},86202:function(e,t,i){i.d(t,{D:function(){return s},L:function(){return o}});
1var n=i(24246),r=i(27378);let o=(0,r.createContext)({visibleSection:null,setVisibleSection:e=>e}),s=e=>{let{children:t}=e,[i,s]=(0,r.useState)(null);return(0,n.jsx)(o.Provider,{value:{visibleSection:i,setVisibleSection:s},children:t})}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.