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]="1c90f1e4-857d-4b3b-b106-b1aed8004a67",e._sentryDebugIdIdentifier="sentry-dbid-1c90f1e4-857d-4b3b-b106-b1aed8004a67")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[841],{98818:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/service/[touristicContent]",function(){return i(98822)}])},98822:function(e,t,i){"use strict";i.r(t),i.d(t,{__N_SSP:function(){return W},default:function(){return A}});var n=i(24246),s=i(86677),a=i(30344),l=i(61265),r=i(95501),o=i(80129),c=i(78351),d=i(88210),m=i(56404),u=i(18141),p=i(67246),f=i(70311),h=i(6550),x=i(6949),j=i(8542),v=i(34225),g=i(66144),_=i(27378),b=i(21045),y=i(99412),I=i(75815),N=i(17490),k=i(16664);let C=(e,t)=>{let i=(0,g.p)(e),n=i?e.split("-")[0]:"",s=(0,N.a)(t),{data:a,refetch:l,isLoading:r}=(0,b.a)({queryKey:["touristicContentDetails",n,t],queryFn:()=>(0,v.iJ)(n,t,s),enabled:i&&void 0!==s,staleTime:y.s}),{sections:o}=(0,k.H)(t),c=o.touristicEvent.filter(e=>{let{display:t}=e;return!0===t}),{sectionsReferences:d,sectionsPositions:m,useSectionReferenceCallback:u}=(0,I.Z)(),p=c.reduce((e,t)=>({...e,[t.name]:u(t.name)}),{}),[f,h]=(0,_.useState)("HIDDEN");return{id:n,touristicContent:a,refetch:l,isLoading:r,mobileMapState:f,displayMobileMap:()=>h("DISPLAYED"),hideMobileMap:()=>h("HIDDEN"),sectionsReferences:d,sectionsPositions:m,sectionRef:p}};var w=i(74373),D=i(27948),T=i(27288),E=i(74557),S=i(25726),U=i(86525),L=i(800),M=i(12186),P=i(77726),Z=i(89087),O=i(68283);let Y=e=>{var t,i,s;let{touristicContentUrl:v,language:g}=e,{id:_,touristicContent:b,isLoading:y,refetch:I,mobileMapState:N,displayMobileMap:k,hideMobileMap:Y,sectionsReferences:F,sectionRef:R}=C(v,g),W=(0,r.useMediaPredicate)("(max-width: 1024px)"),A=(0,f.Z)("undefined"!=typeof navigator&&navigator.onLine),{sections:H,anchors:G}=(0,Z.i)("touristicContent");return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(m.y,{title:null==b?void 0:b.name,description:b&&null!==(s=b.descriptionTeaser)&&void 0!==s?s:"",sharingImageUrl:null==b?void 0:null===(i=b.images)||void 0===i?void 0:null===(t=i[0])||void 0===t?void 0:t.url}),void 0===b?(0,n.jsx)(n.Fragment,{children:y?(0,n.jsx)(l.Z,{className:"absolute inset-0"}):(0,n.jsx)(T.H,{refetch:I})}):(0,n.jsxs)("div",{id:"details_container",children:[(0,n.jsx)(P.c,{anchors:G,sectionsReferences:F,details:b,type:"TOURISTIC_CONTENT"}),void 0!==b.name&&(0,n.jsx)(L.gI,{title:b.name}),(0,n.jsxs)("div",{id:"touristicContent_page",className:"flex flex-1",children:[(0,n.jsxs)("div",{id:"touristicContent_informations",className:"flex flex-col w-full -top-detailsHeaderMobile desktop:top-0 desktop:w-3/5",children:[(0,n.jsx)(p.n,{displayMap:k}),(0,n.jsx)("div",{className:"desktop:h-coverDetailsDesktop",children:(0,n.jsx)(a.u,{children:e=>{let{isFullscreen:t,toggleFullscreen:i}=e;return(0,n.jsx)("div",{id:"touristicContent_cover",className:t?"h-full":"desktop:h-coverDetailsDesktop",children:b.images.length>1&&A?(0,n.jsx)(U.i,{images:b.images,classNameImage:t?"object-contain":"",onClickImage:i}):(0,n.jsx)(h.$,{image:b.images[0],classNameImage:t?"object-contain":"",onClick:i})})}})}),(0,n.jsxs)("div",{id:"touristicContent_text",className:"desktop:py-0 relative -top-6 desktop:-top-9 flex flex-col",children:[(0,n.jsx)(E.F,{details:b,practice:{id:0,pictogramUri:b.category.pictogramUri,label:b.category.label},type:"TOURISTIC_CONTENT"}),H.map(e=>{var t,i,s,a,l,r,d;if("presentation"===e.name)return(0,n.jsx)("section",{ref:R[e.name],id:"details_".concat(e.name,"_ref"),children:(0,n.jsx)(w.B,{className:L.lL,informations:{duration:null,distance:null,elevation:null,difficulty:null,courseType:null,networks:[],types:b.types,logoUri:null!==(a=b.logoUri)&&void 0!==a?a:void 0},place:b.place,tags:b.themes,title:b.name,teaser:b.descriptionTeaser,ambiance:b.description,details:b,type:"TOURISTIC_CONTENT",id:_})},e.name);if("medias"===e.name&&b.filesFromAttachments.length>0)return(0,n.jsx)("section",{ref:R[e.name],id:"details_".concat(e.name,"_ref"),children:(0,n.jsx)(D.j,{htmlId:"details_medias",className:L.lL,children:(0,n.jsx)(O.B,{files:b.filesFromAttachments})})},e.name);if("practicalInformations"===e.name&&b.practicalInfo)return(0,n.jsx)("section",{ref:R[e.name],id:"details_".concat(e.name,"_ref"),children:(0,n.jsx)(D.j,{htmlId:"details_practicalInformations",titleId:"details.practicalInformations",className:L.lL,children:(0,n.jsx)("div",{className:"content-WYSIWYG",children:(0,o.ZP)(b.practicalInfo)})})},e.name);if("accessibility"===e.name&&b.accessibility)return(0,n.jsx)("section",{ref:R[e.name],id:"details_".concat(e.name,"_ref"),children:(0,n.jsx)(D.j,{htmlId:"details_accessibility",titleId:"details.accessibility",className:L.lL,children:(0,n.jsx)("div",{className:"content-WYSIWYG",children:(0,o.ZP)(b.accessibility)})})},e.name);if("contact"===e.name&&((null===(t=b.contact)||void 0===t?void 0:t.length)||(null===(i=b.email)||void 0===i?void 0:i.length)||(null===(s=b.website)||void 0===s?void 0:s.length)))return(0,n.jsx)("section",{ref:R[e.name],id:"details_".concat(e.name,"_ref"),children:(0,n.jsxs)(D.j,{htmlId:"details_contact",titleId:"details.contact",className:L.lL,children:[(0,n.jsx)("div",{className:"content-WYSIWYG",children:(0,o.ZP)(b.contact)}),!!(null===(l=b.email)||void 0===l?void 0:l.length)&&(0,n.jsxs)("div",{className:"mt-2 desktop:mt-4",children:[(0,n.jsxs)("span",{className:"block",children:[(0,n.jsx)(c.Z,{id:"touristicContent.email"})," :"]}),(0,n.jsx)("a",{href:"mailto:".concat(b.email),target:"_blank",rel:"noopener noreferrer",className:"text-primary1 underline hover:text-primary1-light focus:text-primary1-light",children:b.email})]}),!!(null===(r=b.website)||void 0===r?void 0:r.length)&&(0,n.jsxs)("div",{className:"mt-2 desktop:mt-4",children:[(0,n.jsxs)("span",{className:"block",children:[(0,n.jsx)(c.Z,{id:"touristicContent.website"})," :"]}),(0,n.jsx)("a",{href:b.website,target:"_blank",rel:"noopener noreferrer",className:"text-primary1 underline hover:text-primary1-light focus:text-primary1-light",children:b.website})]})]})},e.name);if("source"===e.name&&b.sources.length>0)return(0,n.jsx)("section",{ref:R[e.name],id:"details_".concat(e.name,"_ref"),children:(0,n.jsx)(D.j,{htmlId:"touristicContent_source",titleId:"details.source",className:L.lL,children:b.sources.map((e,t)=>(0,n.jsx)(S.S,{name:e.name,website:e.website,pictogramUri:e.pictogramUri},t))})},e.name);let m=b.cities.find(e=>{var t;return e.id===(null===(t=b.cities_raw)||void 0===t?void 0:t[0])}),u=null!==(d=null==m?void 0:m.code)&&void 0!==d?d:null==m?void 0:m.id;return(0,M.$I)({template:e.template,id:b.id.toString(),cityCode:u})?(0,n.jsx)("section",{ref:R[e.name],id:"details_".concat(e.name,"_ref"),children:(0,n.jsx)(D.j,{htmlId:"details_".concat(e.name),titleId:"details.".concat(e.name),className:L.lL,children:(0,n.jsx)(j._,{template:e.template,id:b.id.toString(),type:"trek",cityCode:u})})},e.name):null})]}),(0,n.jsx)(u.$,{})]}),(0,n.jsx)("div",{id:"touristicContent_map",className:(0,x.cn)("fixed inset-0 z-map left-full w-full transition","desktop:flex desktop:z-content desktop:bottom-0 desktop:fixed desktop:left-auto desktop:right-0 de
1sktop:w-2/5 desktop:top-headerAndDetailsRecapBar","DISPLAYED"===N?"-translate-x-full desktop:translate-x-0":"translate-x-0"),children:(0,n.jsx)(d.UF,{hasZoomControl:!W,bbox:b.bbox,touristicContentGeometry:{geometry:b.geometry,pictogramUri:b.category.pictogramUri,name:b.name,id:b.id},hideMap:Y})})]})]})]})};var F=i(90111),R=i(60646),W=!0,A=e=>{let{errorCode:t}=e,{query:i,locale:a}=(0,s.useRouter)(),{touristicContent:l}=i,r=null!=a?a:(0,F.Mb)();return 404===t?(0,n.jsx)(R.default,{}):(0,n.jsx)(Y,{touristicContentUrl:l,language:r})}}},function(e){e.O(0,[774,675,625,234,974,693,480,141,855,800,888,179],function(){return e(e.s=98818)}),_N_E=e.O()}]);
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.