PageSourceSearch

https://destination.cevennes-parcnational.fr/_next/static/chunks/470-2d4bd054e21e30d1.js

js cevennes-parcnational.fr collected 2026-09-24 18:54:50 UTC 6,753 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]="42af2d06-6f2f-49e3-a7fc-d59b20c2d519",e._sentryDebugIdIdentifier="sentry-dbid-42af2d06-6f2f-49e3-a7fc-d59b20c2d519")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[470],{86470:function(e,t,r){r.d(t,{P:function(){return S},eO:function(){return k},ZB:function(){return R}});var n=r(40761),i=r(36598),o=r(41045),l=r(59144),a=r(69221);let u=e=>{let{rawOutdoorCourseType:t}=e;return Object.fromEntries(t.map(e=>[e.id,e]))};var d=r(90002);let s={fields:"id,name,practice"},c=e=>d.E.get("/outdoor_coursetype/",{params:{...e,...s,...i.x}}),v=async e=>{var t;let[r]=await Promise.all([(0,i.H)().enableOutdoor?c({language:e}):null]);return u({rawOutdoorCourseType:null!==(t=null==r?void 0:r.results)&&void 0!==t?t:[]})};var p=r(43826),m=r(77034),g=r(8056),f=r(34225),b=r(9117),y=r(70895),h=r(22562),O=r(1016),_=r(33253);let w=e=>{let{rawOutdoorCourses:t,cityDictionnary:r}=e;return t.map(e=>{var t,n,i;return{id:e.id,name:e.name,images:(0,b.Mx)(e.attachments,!1),geometry:(0,y.wl)(e.geometry),thumbnails:(0,b.Mx)(e.attachments,!0),duration:"number"==typeof e.duration?(0,_.b)(e.duration):null,maxElevation:Number(e.max_elevation),length:"number"==typeof e.length?"".concat(Math.round(e.length)).concat(O.U.distance):null,height:"number"==typeof e.height?"".concat(e.height).concat(O.U.distance):null,themes:[],place:null!==(i=null==r?void 0:null===(t=r[null==e?void 0:null===(n=e.cities)||void 0===n?void 0:n[0]])||void 0===t?void 0:t.name)&&void 0!==i?i:""}})},x=e=>{let{rawOutdoorCourses:t,cityDictionnary:r}=e;return t.map(e=>{var t,n,i;return{id:e.id,name:e.name,images:(0,b.Mx)(e.attachments,!0),geometry:(0,y.wl)(e.geometry),type:"OUTDOOR_COURSE",informations:[{label:"duration",value:"number"==typeof e.duration?(0,_.b)(e.duration):""},{label:"maxElevation",value:"number"==typeof e.max_elevation?"".concat(e.max_elevation):""},{label:"distance",value:"number"==typeof e.length?"".concat(Math.round(e.length)).concat(O.U.distance):""},{label:"height",value:"number"==typeof e.height?"".concat(e.height).concat(O.U.distance):""}].filter(e=>e.value.length>0),place:null!==(i=null==r?void 0:null===(t=r[null==e?void 0:null===(n=e.cities)||void 0===n?void 0:n[0]])||void 0===t?void 0:t.name)&&void 0!==i?i:""}})},E=e=>{var t,r,n,i,o,l,a;let{rawOutdoorCourseDetails:u,pois:d,touristicContents:s,cityDictionnary:c,outdoorRating:v,outdoorRatingScale:p,outdoorCourseType:m,sensitiveAreas:g,signage:f,service:b,infrastructure:y}=e;return{...w({rawOutdoorCourses:[{...u.properties,geometry:u.geometry}],cityDictionnary:c})[0],accessibility:u.properties.accessibility,description:u.properties.description,bbox:{corner1:{x:u.bbox[0],y:u.bbox[1]},corner2:{x:u.bbox[2],y:u.bbox[3]}},touristicContents:s,pois:d,advice:u.properties.advice,gear:String(u.properties.gear),equipment:String(u.properties.equipment),pdfUri:u.properties.pdf,cities:null!==(i=null===(t=u.properties.cities)||void 0===t?void 0:t.map(e=>{var t;return null!==(t=c[e])&&void 0!==t?t:null}).filter(Boolean))&&void 0!==i?i:[],cities_raw:u.properties.cities,ratings:null!==(o=null===(r=u.properties.ratings)||void 0===r?void 0:r.map(e=>{var t;return{...v[String(e)],scale:null!==(t=p.find(t=>{var r;return t.id===(null===(r=v[String(e)])||void 0===r?void 0:r.scale)}))&&void 0!==t?t:[]}}))&&void 0!==o?o:[],ratingsDescription:null!==(l=u.properties.ratings_description)&&void 0!==l?l:null,typeCourse:null!==(a=m[Number(null==u?void 0:null===(n=u.properties)||void 0===n?void 0:n.type)])&&void 0!==a?a:null,id:u.id,sensitiveAreas:g,signage:f,service:b,infrastructure:y}},U=e=>{var t,r,n,i;let{rawOutdoorSitePopupResult:o,cityDictionnary:l}=e;return{title:o.properties.name,place:null!==(n=null==o?void 0:null===(r=o.properties)||void 0===r?void 0:null===(t=r.cities)||void 0===t?void 0:t.map(e=>{var t,r;return null!==(r=null==l?void 0:null===(t=l[e])||void 0===t?void 0:t.name)&&void 0!==r?r:""}).join(", "))&&void 0!==n?n:"",imgUrl:null!==(i=(0,b.sX)(o.properties.attachments))&&void 0!==i?i:h.a}},C={fields:"".concat("id,attachments,name,geometry,duration,max_elevation,length,height,cities",",advice,description,equipment,gear,min_elevation,ratings,ratings_description,site,structure,type,url,children,pdf,accessibility"),format:"geojson"},D=(e,t)=>d.E.get("/outdoor_course/".concat(encodeURIComponent(t),"/"),{params:{...e,...C}}).then(e=>e.data),R=async(e,t,r)=>{if(0===t.length)return[];let n=await Promise.all(t.map(t=>D({language:e},t.toString()))),{cities:i={}}=null!=r?r:{};return x({rawOutdoorCourses:n.map(e=>{let{properties:t,...r}=e;return{...r,...t}}),cityDictionnary:i})},S=async(e,t,r)=>{try{let{cities:u={}}=null!=r?r:{},[d,s,c,b,y,h,O]=await Promise.all([D({language:t},e),(0,g.T)(Number(e),t,"courses"),(0,f.f8)(Number(e),t,"near_outdoorcourse"),(0,p.kB)(t),(0,m.h)(t),v(t),(0,i.H)().enableSensitiveAreas?(0,n.F)("outdoorCourse",Number(e),t):[]]),[_,w,x]=await Promise.all([(0,o.y)(t,e,"OUTDOOR_COURSE"),(0,l.k)(t,e,"OUTDOOR_COURSE"),(0,a.Z)(t,e,"OUTDOOR_COURSE")]);return E({rawOutdoorCourseDetails:d,pois:s,touristicContents:c,cityDictionnary:u,outdoorRating:b,outdoorRatingScale:y,outdoorCourseType:h,sensitiveAreas:O,signage:_,service:w,infrastru
1cture:x})}catch(e){throw console.error("Error in outdoor course connector",e),e}},k=async(e,t,r)=>{let n=await D({language:t},e),{cities:i={}}=null!=r?r:{};return U({rawOutdoorSitePopupResult:n,cityDictionnary:i})}},43826:function(e,t,r){r.d(t,{kB:function(){return d},F:function(){return s}});var n=r(36598);let i=e=>{let{rawOutdoorRating:t}=e;return Object.fromEntries(t.map(e=>[e.id,e]))},o=e=>{let t={};return e.forEach(e=>{t[e.scale]||(t[e.scale]=[]),t[e.scale].push(e)}),t};var l=r(90002);let a={fields:"id,name,description,order,color,scale"},u=e=>l.E.get("/outdoor_rating/",{params:{...e,...a,...n.x}}).then(e=>e.data),d=async e=>{var t;let[r]=await Promise.all([(0,n.H)().enableOutdoor?u({language:e}):null]);return i({rawOutdoorRating:null!==(t=null==r?void 0:r.results)&&void 0!==t?t:[]})},s=async e=>{var t;let r=(0,n.H)().enableOutdoor?await u({language:e}):null;return o(null!==(t=null==r?void 0:r.results)&&void 0!==t?t:[])}},77034:function(e,t,r){r.d(t,{h:function(){return u}});var n=r(36598);let i=e=>{let{rawOutdoorRatingScale:t}=e;return t.map(e=>e)};var o=r(90002);let l={fields:"id,name,practice"},a=e=>o.E.get("/outdoor_ratingscale/",{params:{...e,...l,...n.x}}).then(e=>e.data),u=async e=>{var t;let[r]=await Promise.all([(0,n.H)().enableOutdoor?a({language:e}):null]);return i({rawOutdoorRatingScale:null!==(t=null==r?void 0:r.results)&&void 0!==t?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.