1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1571],{1239:function(e,l,t){"use strict";t.d(l,{Z:function(){return a}});var n=t(5311);t(132);var s=t(7271),i=t(6234),o=t.n(i),r=t(4702);function a(e){let{bg:l={value:"#21534F"},title:t,description:i}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:o().cmsBg,style:{"--bg":"".concat(null==l?void 0:l.value)}}),(0,n.jsxs)("div",{className:"".concat(o().cmsHeader," container"),children:[(0,n.jsx)(s.Z,{tag:"h1",as:"h2",className:"font-heavy uppercase",style:{color:"".concat(null==l?void 0:l.value)},children:t}),i&&i.content?(0,n.jsx)(r.Z,{blok:i,as:"subtitleH1",className:"p"}):(0,n.jsx)(s.Z,{tag:"div",as:"subtitleH1",children:i})]})]})}},1571:function(e,l,t){"use strict";t.r(l),t.d(l,{default:function(){return W}});var n=t(5311),s=t(132),i=t(4849),o=t(8527),r=t(1239),a=t(5507),c=t.n(a),u=t(4702),d=t(8496),p=t(5724),h=t(5129),g=t.n(h),f=t(6381),m=t.n(f),v=t(5762);let{publicRuntimeConfig:_}=g()(),x=["home","residences","sejours","services","les-plus","guide","besoin-d-aide","cms"],b=["fr","en"],j=e=>{let l=e.replace(/\/$/,"").split("/");return l.length>1&&b.includes(l[0])?l.slice(1).join("/"):e.replace(/\/$/,"")},y=e=>{let l=e.replace(/^\/+|\/+$/g,"");if(!l)return"home";let t=j(l);if(!t||"home"===t)return"home";let n=t.split("/");return 1===n.length&&b.includes(n[0])?"home":t},k=async e=>{let l=(0,i.bS)(),t="production"===_.siteEnv?"published":"draft",n=new Map,s=1,o=1/0,r=0;for(;;){var a;let{data:i,headers:c}=await l.get("cdn/links",{version:t,language:e,per_page:100,page:s}),u="function"==typeof(null==c?void 0:c.get)?c.get("total"):null==c?void 0:c.total,d=u?parseInt(String(u),10):0;d>0&&(o=d);let p=Object.values(null!==(a=null==i?void 0:i.links)&&void 0!==a?a:{});if(0===p.length||(r+=p.length,p.forEach(e=>{if(null==e.real_path)return;let l=y(e.real_path),t="number"==typeof e.position?e.position:0,s=n.get(l);(void 0===s||t<s)&&n.set(l,t)}),r>=o||p.length<100))break;s+=1}return n},N=function(e,l){let t=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return[...e].sort((e,l)=>{if(t){let t=x.indexOf(e.slug),n=x.indexOf(l.slug);if(-1!==t&&-1!==n)return t-n;if(-1!==t)return -1;if(-1!==n)return 1}return"home"===e.slug?-1:"home"===l.slug?1:e.name.localeCompare(l.name,"fr")})},Z=async e=>{let l=(0,i.bS)(),t=async n=>{let{per_page:s,page:i,level:o,excluding_ids:r,accumulatedStories:a=[]}=n,c={version:"production"===_.siteEnv?"published":"draft",language:e,per_page:s,page:i,excluding_slugs:"shared/*,popins/*,config/*",filter_query:{component:{not_in:"single_residence_app_page,landing_residence,landing_sejour,landing_residence_multiple,app_page,app_homepage,search_config,cms_post"}},excluding_fields:"created_at,updated_at,sort_by_date,release_id,first_published_at,published_at,content.body,content,bottom_seo_text,items,chapeau,body,seo,description_colivers,description_external,seo",sort_by:"position:asc"};o&&(c.level=o),r&&(c.excluding_ids=r);let{data:u,headers:d}=await l.get("cdn/stories",c),p=(null==d?void 0:d.total)?parseInt(d.total):u.stories.length,h=[...a,...u.stories];return h.length<p&&u.stories.length>0?t({per_page:s,page:i+1,excluding_ids:r,level:o,accumulatedStories:h}):h};return{allStories:await t({per_page:100,page:1})}},w=e=>{let l={name:"Root",slug:"",full_slug:"",children:{},order:0};return e.forEach((e,t)=>{let n=j(e.full_slug).split("/"),s=l;n.forEach((l,i)=>{if(s.children[l]||(s.children[l]={name:l,slug:l,full_slug:n.slice(0,i+1).join("/"),children:{}}),i===n.length-1){s.children[l].story=e,s.children[l].name=e.name;let n=e.position;s.children[l].order="number"==typeof n?n:t}s=s.children[l]})}),l},C=(e,l)=>{var t,n,s,i,o,r;let a;return"R\xe9sidences"===e.name?l("common:sitemap.residences"):"home"===e.slug?e.name:(a=(null===(n=e.story)||void 0===n?void 0:null===(t=n.content)||void 0===t?void 0:t.title)||(null===(r=e.story)||void 0===r?void 0:null===(o=r.content)||void 0===o?void 0:null===(i=o.hero)||void 0===i?void 0:null===(s=i[0])||void 0===s?void 0:s.title)||e.name).charAt(0).toUpperCase()+a.slice(1).toLowerCase()},E=e=>{var l,t,s;let{node:i,depth:o=0,locale:r,positionByPath:a}=e,{t:c}=(0,p.Z)("common"),u=Object.keys(i.children).length>0,d=N(Object.values(i.children),a);return(null===(s=i.story)||void 0===s?void 0:null===(t=s.content)||void 0===t?void 0:null===(l=t.exclude_lang)||void 0===l?void 0:l.includes(i.story.lang))?null:(0,n.jsxs)("div",{style:{marginLeft:o>0?"20px":"0"},children:[!i.story||i.full_slug.startsWith("/app/")||i.full_slug.endsWith("/app")||i.full_slug.startsWith("app/")?!(o>0)||!i.full_slug||i.full_slug.includes("/app/")||i.full_slug.endsWith("/app")||i.full_slug.startsWith("app/")?null:(0,n.jsx)("span",{className:"font-bold text-gray-700 block py-2 mt-2",children:i.slug}):(0,n.jsx)(m(),{href:"home"===i.slug?"/":"/".concat(i.full_slug),className:" text-vert-fonce hover:text-vert-claire block py-1 ".concat(0===o?"font-semibold text-2xl":"font-normal"),children:C(i,c)}),u&&(0,n.jsx)("div",{children:d.map(e=>(0,n.jsx)(E,{node:e,depth:o+1,locale:r,positionByPath:a},e.full_slug))})]})};function H(){let{locale:e}
1=(0,v.useRouter)(),[l,t]=(0,s.useState)(null),[i,o]=(0,s.useState)(()=>new Map);if((0,s.useEffect)(()=>{let l=e||d.Z;Promise.all([Z(l),k(l)]).then(e=>{let[{allStories:l},n]=e;t(w(l)),o(n)})},[e]),!l)return(0,n.jsx)("section",{children:(0,n.jsx)("div",{className:"container",children:(0,n.jsx)("p",{children:"Chargement..."})})});let r=N(Object.values(l.children),i,!0);return(0,n.jsx)("div",{className:"container py-8",children:(0,n.jsx)("div",{className:"flex flex-col gap-8",children:r.map(l=>(0,n.jsx)("div",{className:"",children:(0,n.jsx)(E,{node:l,depth:0,locale:e,positionByPath:i})},l.full_slug))})})}var S=t(8467),O=t(1263),B=t(6455);function W(e){let{blok:l,story:t}=e,[a,d]=(0,s.useState)(!1),p=(0,o.usePathname)();(0,s.useRef)(null);let h=[{title:null==l?void 0:l.title,link:p,id:""+p}];return(0,S.Z)(h),(0,s.useEffect)(()=>{window.scrollTo(0,0),t&&"plan-du-site"===t.slug&&d(!0)},[]),(0,n.jsxs)("main",{...(0,i.LF)(l),children:[(0,n.jsx)(B.Z,{story:l}),(0,n.jsx)(O.Z,{data:h,isForHead:!0}),(0,n.jsx)(r.Z,{title:null==l?void 0:l.title,description:null==l?void 0:l.subt
1itle,bg:null==l?void 0:l.background_color}),(0,n.jsx)(u.Z,{blok:null==l?void 0:l.content,className:"cms-content ".concat(c().cmsContent)}),a&&(0,n.jsx)(H,{})]})}},6234:function(e){e.exports={cmsBg:"cmsHeader_cmsBg__Zr5wT",cmsHeader:"cmsHeader_cmsHeader__pnveO"}},5507:function(e){e.exports={cmsContent:"cms-page_cmsContent__Icklc"}}}]);
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.