1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{1727:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/event/[touristicEvent]",function(){return i(83724)}])},8532:function(e,t,i){"use strict";i.d(t,{IV:function(){return d},LH:function(){return l},vu:function(){return c}});var n=i(45025),a=i(56471),s=i(33215),r=i(59462),o=i(40191);let l=async(e,t,i)=>{try{let{themes:n={},cities:l={},sources:c=[]}=null!=i?i:{},[d,m,u]=await Promise.all([(0,o.A0)({language:t},e),(0,a.f8)(Number(e),t,"near_touristicevent"),(0,s.m)(t)]);return(0,r._v)({rawTouristicEventDetails:d,themeDictionnary:n,cityDictionnary:l,touristicContents:m,sourcesDictionnary:c,touristicEventType:u})}catch(e){throw console.error("Error in outdoor course connector",e),e}},c=async(e,t,i)=>{let n=await (0,o.A0)({language:t},e),{cities:a={}}=null!=i?i:{};return(0,r.Eg)({rawTouristicEventPopupResult:n,cityDictionnary:a})},d=async(e,t)=>{let i=await (0,o.nD)({language:t},e);return(0,n.wl)(i.geometry)}},83724:function(e,t,i){"use strict";i.r(t),i.d(t,{__N_SSP:function(){return J},default:function(){return X}});var n=i(24246),a=i(19599),s=i(6885),r=i(69437),o=i(70829),l=i(34690),c=i(97509),d=i(81466),m=i(91684),u=i(11585),p=i(21353),x=i(27378),g=i(78506),f=i(21045),v=i(50265),j=i(27249),h=i(97734),_=i(8532),N=i(90432);let y=(e,t)=>{let i=(0,g.p)(e)?e.split("-")[0]:"",n=(0,g.p)(e)?decodeURI(e):"",a=(0,h.a)(t),{data:s,refetch:r,isLoading:o}=(0,f.a)({queryKey:["outdoorCourseDetails",i,t],queryFn:()=>(0,_.LH)(i,t,a),enabled:(0,g.p)(e)&&void 0!==a,staleTime:v.s}),{sections:l}=(0,N.H)(t),c=l.touristicEvent.filter(e=>{let{display:t}=e;return!0===t}),{sectionsReferences:d,sectionsPositions:m,useSectionReferenceCallback:u}=(0,j.Z)(),p=c.reduce((e,t)=>({...e,[t.name]:u(t.name)}),{}),[y,I]=(0,x.useState)("HIDDEN"),b=()=>I("DISPLAYED"),k=()=>I("HIDDEN");return{id:i,touristicEventContent:s,refetch:r,isLoading:o,mobileMapState:y,displayMobileMap:b,hideMobileMap:k,path:n,sectionsReferences:d,sectionsPositions:m,sectionRef:p}};var I=i(83573),b=i(78351),k=i(65943),C=i(95501),E=i(19041),T=i(59438),D=i(51623),U=i(61582),w=i(80219),L=i(31553),H=i(89502),S=i(76145),A=i(82425),R=i(88874),Z=i(71766),O=i(95239),P=i(9813),F=i(10972),M=i(7390);let z=e=>{var t,i;let{touristicEventUrl:p,language:f}=e,{id:v,touristicEventContent:j,isLoading:h,refetch:_,mobileMapState:N,displayMobileMap:z,hideMobileMap:V,sectionsReferences:B,sectionsPositions:$,sectionRef:q}=y(p,f),G=(0,I.Z)(),J=(0,C.useMediaPredicate)("(max-width: 1024px)"),X=(0,x.useRef)(null),Y=(0,L.Z)("undefined"!=typeof navigator&&navigator.onLine),{sections:K,anchors:Q}=(0,F.i)("touristicEvent");return(0,m.h)({sectionsPositions:$,scrollOffset:(null!==(i=null===(t=X.current)||void 0===t?void 0:t.offsetTop)&&void 0!==i?i:0)-E.J7.desktopHeader-E.J7.detailsHeaderDesktop}),(0,x.useMemo)(()=>{var e,t;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(D.y,{title:null==j?void 0:j.name,description:(0,g.d)(null==j?void 0:j.description),sharingImageUrl:null==j?void 0:null===(e=j.images)||void 0===e?void 0:null===(t=e[0])||void 0===t?void 0:t.url}),void 0===j?(0,n.jsx)(n.Fragment,{children:h?(0,n.jsx)(k.Z,{className:"absolute inset-0"}):(0,n.jsx)(Z.H,{refetch:_})}):(0,n.jsxs)("div",{id:"details_container",children:[(0,n.jsx)(o.c,{anchors:Q,sectionsReferences:B,details:j,type:"TOURISTIC_EVENT"}),void 0!==j.name&&(0,n.jsx)(d.gI,{title:j.name}),(0,n.jsxs)("div",{id:"outdoorCourseContent_page",className:"flex flex-1",children:[(0,n.jsxs)("div",{id:"outdoorCourseContent_informations",className:"flex flex-col w-full relative -top-detailsHeaderMobile desktop:top-0 desktop:w-3/5",children:[(0,n.jsx)(w.n,{displayMap:z}),(0,n.jsx)("div",{className:"desktop:h-coverDetailsDesktop",children:(0,n.jsx)(a.u,{children:e=>{let{toggleFullscreen:t,isFullscreen:i}=e;return(0,n.jsx)("div",{id:"outdoorCourseContent_cover",className:i?"h-full":"desktop:h-coverDetailsDesktop",children:j.images.length>1&&Y?(0,n.jsx)(P.i,{images:j.images,classNameImage:i?"object-contain":"",onClickImage:t}):(0,n.jsx)(H.$,{image:j.images[0],classNameImage:i?"object-contain":"",onClick:t})})}})}),(0,n.jsxs)("div",{id:"touristicEventContent_text",className:"desktop:py-0 relative -top-6 desktop:-top-9 flex flex-col",ref:X,children:[(0,n.jsx)(O.F,{details:j,practice:{id:0,pictogramUri:j.category.pictogramUri,label:j.category.label}
1,type:"TOURISTIC_EVENT"}),K.map(e=>{var t,i,a,o,m,p,x,g,f,h,_;return"presentation"===e.name?(0,n.jsx)("section",{ref:q[e.name],id:"details_".concat(e.name,"_ref"),children:(0,n.jsx)(R.B,{className:d.lL,informations:{logoUri:null!==(i=j.logoUri)&&void 0!==i?i:void 0,participantNumber:j.participantNumber,meetingPoint:j.meetingPoint,duration:[j.meetingTime,j.duration].join(" - "),date:{beginDate:j.informations.beginDate,endDate:j.informations.endDate}},place:j.place,tags:j.themes,title:j.name,teaser:j.descriptionTeaser,ambiance:"",details:j,type:"TOURISTIC_EVENT",id:v})},e.name):"medias"===e.name&&j.filesFromAttachments.length>0?(0,n.jsx)("section",{ref:q[e.name],id:"details_".concat(e.name,"_ref"),children:(0,n.jsx)(l.j,{htmlId:"details_medias",className:d.lL,children:(0,n.jsx)(M.B,{files:j.filesFromAttachments})})},e.name):"description"===e.name&&j.description?(0,n.jsx)("section",{ref:q[e.name],id:"details_".concat(e.name,"_ref"),children:(0,n.jsx)(r.N,{descriptionHtml:j.description,className:d.lL,cities:j.cities})},e.name):"practicalInformations"===e.name?(0,n.jsxs)("section",{ref:q[e.name],id:"details_".concat(e.name,"_ref"),children:[(0,n.jsx)(r.N,{id:"details_practicalInformations",descriptionHtml:null!==(a=j.contact)&&void 0!==a?a:"",className:d.lL,title:(0,n.jsx)(b.Z,{id:"details.informationDesks"}),email:j.email,website:j.website}),j.accessibility&&(0,n.jsx)("div",{children:(0,n.jsx)(r.N,{descriptionHtml:null!==(o=j.accessibility)&&void 0!==o?o:"",className:d.lL,title:(0,n.jsx)(b.Z,{id:"details.accessibility"})})}),j.organizer&&(0,n.jsx)("div",{children:(0,n.jsx)(r.N,{descriptionHtml:null!==(m=j.organizer)&&void 0!==m?m:"",className:d.lL,title:(0,n.jsx)(b.Z,{id:"details.organizer"})})}),j.speaker&&(0,n.jsx)("div",{children:(0,n.jsx)(r.N,{descriptionHtml:null!==(p=j.speaker)&&void 0!==p?p:"",className:d.lL,title:(0,n.jsx)(b.Z,{id:"details.speaker"})})}),j.targetAudience&&(0,n.jsx)("div",{children:(0,n.jsx)(r.N,{descriptionHtml:null!==(x=j.targetAudience)&&void 0!==x?x:"",className:d.lL,title:(0,n.jsx)(b.Z,{id:"details.targetAudience"})})}),j.practicalInfo&&(0,n.jsx)("div",{children:(0,n.jsx)(r.N,{descriptionHtml:null!==(g=j.practicalInfo)&&void 0!==g?g:"",className:d.lL,title:(0,n.jsx)(b.Z,{id:"details.practicalInfo"})})}),j.booking&&(0,n.jsx)("div",{children:(0,n.jsx)(r.N,{descriptionHtml:null!==(f=j.booking)&&void 0!==f?f:"",className:d.lL,title:(0,n.jsx)(b.Z,{id:"details.booking"})})})]},e.name):"source"===e.name&&j.sources.length>0?(0,n.jsx)("section",{ref:q[e.name],id:"details_".concat(e.name,"_ref"),children:(0,n.jsx)(l.j,{htmlId:"details_source",titleId:"details.source",className:d.lL,children:j.sources.map((e,t)=>(0,n.jsx)(c.S,{name:e.name,website:e.website,pictogramUri:e.pictogramUri},t))})},e.name):"touristicContent"===e.name&&j.touristicContents.length>0?(0,n.jsx)("section",{ref:q[e.name],id:"details_".concat(e.name,"_ref"),children:(0,n.jsx)(s.L,{htmlId:"details_touristicContent",title:G.formatMessage({id:"details.touristicContent"}),displayBadge:!0,generateUrlFunction:u.tR,detailsCards:j.touristicContents.map(e=>({id:"".concat(e.id),name:null!==(h=e.name)&&void 0!==h?h:"",place:e.category.label,description:null!==(_=e.descriptionTeaser)&&void 0!==_?_:"",thumbnails:e.thumbnails,images:e.images,iconUri:e.category.pictogramUri,iconName:e.category.label})),type:"TOURISTIC_CONTENT"})},e.name):(0,u.$I)({template:e.template,id:j.id.toString(),cityCode:null===(t=j.cities_raw)||void 0===t?void 0:t[0]})?(0,n.jsx)("section",{ref:q[e.name],id:"details_".concat(e.name,"_ref"),children:(0,n.jsx)(l.j,{htmlId:"details_".concat(e.name),titleId:"details.".concat(e.name),className:d.lL,children:(0,n.jsx)(A._,{template:e.template,id:j.id.toString(),type:"trek",cityCode:j.cities_raw[0]})})},e.name):null})]}),(0,n.jsx)(U.$,{})]}),(0,n.jsx)("div",{id:"touristicEvent_map",className:(0,S.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 desktop:w-2/5 desktop:top-headerAndDetailsRecapBar","DISPLAYED"===N?"-translate-x-full desktop:translate-x-0":"translate-x-0"),children:(0,n.jsx)(T.v,{hasZoomControl:!J,eventGeometry:{geometry:j.geometry,pictogramUri:j.category.pictogramUri,name:j.name,id:j.id},poiPoints:[],bbox:j.bbox,trekChildrenGeometries:[],touristicContentPoints:j.touristicContents.filter(e=>null!==e.geometry).map(e=>({geometry:e.geometry,pictogramUri:e.category.pictogramUri,name:e.name,id:"DETAILS-TOURISTIC_CONTENT-".concat(e.id)})),sensitiveAreas:[],trekId:Number(v),hideMap:V,type:"TOURISTIC_
1EVENT"})})]})]})]})},[j,h,N,Y])},V=e=>(0,n.jsx)(p.D,{children:(0,n.jsx)(z,{touristicEventUrl:e.touristicEventUrl,language:e.language})});var B=i(86677),$=i(63993),q=i(12202);let G=e=>{let{errorCode:t}=e,{query:i,locale:a}=(0,B.useRouter)(),{touristicEvent:s}=i,r=null!=a?a:(0,$.Mb)();return 404===t?(0,n.jsx)(q.default,{}):(0,n.jsx)(V,{touristicEventUrl:s,language:r})};var J=!0,X=G}},function(e){e.O(0,[774,675,436,234,558,41,661,582,15,466,888,179],function(){return e(e.s=1727)}),_N_E=e.O()}]); 2//# sourceMappingURL=[touristicEvent]-df0941594442f911.js.map
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.