{"code":"_N_E=(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[13],{\"/aun\":function(e,t,s){e.exports={\"__next-prerender-indicator\":\"HousesList___next-prerender-indicator__1C_Rb\",list:\"HousesList_list__2ovlx\",listItem:\"HousesList_listItem__17rS6\",half:\"HousesList_half__1zZ9M\",line:\"HousesList_line__2zeYI\",imageCont:\"HousesList_imageCont__8w15D\",floatBubble:\"HousesList_floatBubble__1_K6t\",leftContainer:\"HousesList_leftContainer__uvn9P\",infosContainer:\"HousesList_infosContainer__2fAHj\",infosSub:\"HousesList_infosSub__32m8X\",houseInfos:\"HousesList_houseInfos__1pV8N\",button:\"HousesList_button__nclFt\",buttonCont:\"HousesList_buttonCont__1iRzO\",accommodationsCount:\"HousesList_accommodationsCount__ULVDB\",availableCount:\"HousesList_availableCount__11WFh\",full:\"HousesList_full__2EF_w\",notOpened:\"HousesList_notOpened__diK_H\",openingDate:\"HousesList_openingDate__21WFK\",closeButton:\"HousesList_closeButton__2TCnZ\"}},\"96y2\":function(e,t,s){e.exports={\"__next-prerender-indicator\":\"HouseInfos___next-prerender-indicator__2PoUT\",houseInfos:\"HouseInfos_houseInfos__1JOtC\",houseInfosGrid:\"HouseInfos_houseInfosGrid__13ff7\",title:\"HouseInfos_title__1HANM\",text:\"HouseInfos_text__2e-fj\",button:\"HouseInfos_button__3RzNp\",smaller:\"HouseInfos_smaller__2tzeY\"}},DMYw:function(e,t,s){e.exports={\"__next-prerender-indicator\":\"City___next-prerender-indicator__3XWDL\",firstSlice:\"City_firstSlice__s4cHQ\",firstSliceContent:\"City_firstSliceContent__2ylkS\",boxButton:\"City_boxButton__2tl2g\",title:\"City_title__33cgx\",area:\"City_area__24O7j\",arrowDownCont:\"City_arrowDownCont__3nN7t\",links:\"City_links__19cvG\",link:\"City_link__3iy_R\"}},HCnX:function(e,t,s){e.exports={\"__next-prerender-indicator\":\"Strip___next-prerender-indicator__3BqUe\",strip:\"Strip_strip__1uKaq\",title:\"Strip_title__35RT-\",text:\"Strip_text__1BwG0\",button:\"Strip_button__23HLf\",houseStrip:\"Strip_houseStrip__2gp8I\",houseInfosGrid:\"Strip_houseInfosGrid__3D7Jz\",cityStrip:\"Strip_cityStrip__1lLUt\",cityInfos:\"Strip_cityInfos__l3gtw\"}},\"Pj/i\":function(e,t,s){\"use strict\";s.r(t),s.d(t,\"__N_SSG\",(function(){return U}));var n=s(\"nKUr\"),r=s(\"TSYQ\"),a=s.n(r),o=s(\"z4xu\"),i=s(\"XpH8\"),c=(s(\"rMPg\"),s(\"SRk/\")),l=s(\"Z+cT\"),u=s(\"FRJl\"),b=s(\"76ZC\"),_=s.n(b),d=s(\"bhSI\"),j=s(\"rePB\"),h=s(\"Ff2n\"),p=s(\"Sdhf\"),f=s(\"q1tI\"),O=s(\"BZIy\"),x=s(\"88nN\"),m=s(\"fq+n\"),g=s.n(m),v=(s(\"b+2d\"),s(\"CDyV\")),y=s(\"lB4Q\"),C=s(\"b+5D\"),N=s(\"vxds\"),S=s(\"eBIT\"),w=s(\"EnRe\"),H=s(\"RvHS\"),B=s(\"YFqc\"),P=s.n(B),I=s(\"/aun\"),L=s.n(I),T=function(e){var t=e.className,s=e.house,r=e.highlight,o=e.onMouseEvent,i=e.onClose,c=Object(l.a)(),b=(Object(S.a)(),Object(u.a)()),d=s.hero&&H.b.image(s.hero).width(320).url(),j=Object(w.a)(s.openingDate),h=j?c(\"opening\")+\"<br/>\"+j:c(\"opening-unknown-date\").replace(\" \",\"<br/>\");return Object(n.jsxs)(\"li\",{onMouseOver:o,onMouseOut:o,className:a()(L.a.listItem,r&&L.a.highlight,!s.open&&L.a.notOpened,t),children:[s.open?Object(n.jsx)(n.Fragment,{children:d&&Object(n.jsx)(P.a,{href:s.url,as:s.url,children:Object(n.jsxs)(\"div\",{className:a()(L.a.half,L.a.imageCont),children:[Object(n.jsx)(\"img\",{src:d}),Object(n.jsx)(N.a,{status:s.statusTextKey,topRight:!0})]})})}):d&&Object(n.jsxs)(\"div\",{className:a()(L.a.half,L.a.imageCont),children:[Object(n.jsx)(\"img\",{src:d}),Object(n.jsx)(N.a,{status:s.statusTextKey,topRight:!0}),Object(n.jsx)(\"div\",{className:a()(L.a.openingDate),children:Object(n.jsx)(\"h3\",{className:a()(\"h--1\"),children:_()(h)})})]}),Object(n.jsx)(\"div\",{className:a()(L.a.half,L.a.infosContainer),children:Object(n.jsx)(y.a,{className:a()(L.a.houseInfos),smaller:!0,house:s,renderTitle:!0,renderBubble:b,buttonLabel:s.open?c(\"join-house\").replace(\"{house}\",s.title):c(\"discover-house\").replace(\"{house}\",s.title),buttonHref:s.url,buttonClassName:L.a.button,white:!s.open})}),i&&Object(n.jsx)(v.a,{onClick:i,className:a()(L.a.closeButton),icon:\"close\"})]},s._id)},k=function(e){var t=e.houses,s=e.highlightHouse,r=e.handleMouseEvent,a=e.placeholder;return Object(n.jsx)(C.a,{classNameList:L.a.list,items:t,renderItem:function(e){return Object(n.jsx)(T,{house:e,highlight:e.slug==s,onMouseEvent:r&&function(t){return r(t.type,e.slug)}},e.slug)},filters:[{label:\"Toutes\",filter:function(e){return!0}},{label:\"Libres\",filter:function(e){return e.canApply}},{label:\"Futures\",filter:function(e){return!e.open}}],searchFilter:function(e,t){return e.title.toLowerCase().includes(t)||e.area&&e.area.toLowerCase().includes(t)||e.location&&e.location.toLowerCase().includes(t)},placeholder:a})};function D(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function M(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?D(Object(s),!0).forEach((function(t){Object(j.a)(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):D(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}var E=function(e){var t=e.houses,s=e.searchPlaceholder,r=e.loadMoreCities,o=Object(f.useState)(\"\"),i=o[0],c=o[1],l=function(e,t){c(\"mouseover\"==e?t:\"\")};return Object(n.jsxs)(\"div\",{className:a()(g.a.tabsContainer),children:[Object(n.jsx)(\"div\",{className:a()(g.a.listContainer),children:Object(n.jsx)(k,{houses:t,handleMouseEvent:l,highlightCity:i,placeholder:s,loadMore:r})}),Object(n.jsx)(\"div\",{className:a()(g.a.mapContainer),children:Object(n.jsx)(p.a,{houses:t,handleMouseEvent:l,highlightCity:i})})]})},R=function(e){var t=e.houses,s=e.searchPlaceholder,r=e.loadMoreCities,o=Object(f.useState)(null),i=o[0],c=o[1],l=function(e,t){\"click\"==e&&c(i==t?null:t),\"mapClick\"==e&&c(null)};return Object(n.jsx)(x.a,{tabs:[{label:\"Nos habitations\",key:\"list\",render:function(){return Object(n.jsx)(\"div\",{className:a()(g.a.listContainer),children:Object(n.jsx)(k,{houses:t,placeholder:s,loadMore:r})},\"list\")}},{label:\"Carte\",key:\"map\",render:function(){return Object(n.jsx)(\"div\",{className:a()(g.a.mapContainer),children:Object(n.jsx)(p.a,{houses:t,handleMouseEvent:l,highlightHouse:i,centerOn:i,overlayKey:i,overlay:i&&Object(n.jsx)(T,{className:a()(g.a.houseItem),light:!0,house:t.filter((function(e){return e.slug==i}))[0],onClose:function(){return c(null)}})})},\"map\")}}]})},K=function(e){var t=e.id,s=e.introText,r=Object(h.a)(e,[\"id\",\"introText\"]),o=Object(u.a)();return Object(n.jsxs)(\"section\",{id:t,className:a()(g.a.mapSlice),children:[o&&Object(n.jsx)(O.a,{text:s,left:!0}),o?Object(n.jsx)(E,M({},r)):Object(n.jsx)(R,M({},r))]})},V=s(\"DMYw\"),Y=s.n(V),U=!0;t.default=function(e){var t=e.lang,s=(e.slug,e.title),r=e.videos,b=e.hero,j=e.houses,h=e.mapIntro,p=(e.open,e.areas),f=(e.department,e.housesCount),x=e.availableCount,m=e.searchPlaceholderShort,g=e.searchPlaceholderLong,v=Object(l.a)(),y=b?d.imageBuilder.image(b.asset).url():\"https://www.colivingfactory.com/assets/coresider/images/1.png\",C=Object(u.a)(),N=C?h:h?h.replace(\":\",\"\").trim():\"\",S=C?g:m,w=v(\"houses-count\",f).replace(\"#\",\"<span class='bold'>\".concat(f,\"</span>\")),H=v(\"available-accommodations\",x).replace(\"#\",\"<span class='bold'>\".concat(x,\"</span>\")),B=\"fr\"==t?\"nos-habitations\":\"our-houses\";return Object(n.jsxs)(n.Fragment,{children:[Object(n.jsxs)(\"section\",{className:a()(Y.a.firstSlice),style:{backgroundImage:!r&&y?\"url(\".concat(y,\")\"):void 0},children:[r&&Object(n.jsx)(c.a,{videos:r}),Object(n.jsxs)(\"div\",{className:Y.a.firstSliceContent,children:[Object(n.jsx)(\"h2\",{className:a()(\"h--1\",Y.a.title),children:s}),p&&Object(n.jsx)(\"p\",{className:a()(\"p--l\",Y.a.area),children:p}),Object(n.jsxs)(\"p\",{className:a()(\"p--l\"),children:[_()(w),\",\"]}),Object(n.jsxs)(\"p\",{className:a()(\"p--l\"),children:[_()(H),\".\"]}),C&&Object(n.jsx)(i.a,{className:a()(Y.a.boxButton),label:\"D\\xe9couvrir les habitations\",href:\"#\"+B,fullWidth:!0,icon:\"right\"})]}),!C&&Object(n.jsx)(o.b,{htmlText:\"D\\xe9couvrir les habitations\",className:a()(Y.a.arrowDownCont),href:\"#\"+B,color:\"white\"})]}),j&&Object(n.jsx)(K,{id:B,introText:N,houses:j,searchPlaceholder:S}),C&&Object(n.jsx)(O.a,{left:!0})]})}},\"SRk/\":function(e,t,s){\"use strict\";var n=s(\"nKUr\"),r=s(\"TSYQ\"),a=s.n(r),o=s(\"q1tI\"),i=s(\"bHHM\"),c=s.n(i);t.a=function(e){var t=e.className,s=e.videos,r=Object(o.useState)(0),i=r[0],l=r[1],u=Object(o.useRef)(),b=Object(o.useRef)();if(0==s.length)return null;if(1==s.length)return Object(n.jsx)(\"div\",{className:a()(c.a.container,t),children:Object(n.jsx)(\"video\",{className:a()(c.a.video),autoPlay:!0,muted:!0,loop:!0,ref:b,children:Object(n.jsx)(\"source\",{src:s[0],type:\"video/mp4\"})})});var _=s.length>1&&s[i-1>=0?i-1:s.length-1],d=s[i],j=s.length>1&&s[i+1==s.length?0:i+1];return Object(n.jsxs)(\"div\",{className:a()(c.a.container,t),children:[j&&Object(n.jsx)(\"video\",{className:a()(c.a.nextVideo),ref:u,muted:!0,children:Object(n.jsx)(\"source\",{src:j,type:\"video/mp4\"})},j+\"-preload\"),_&&Object(n.jsx)(\"video\",{className:a()(c.a.previousVideo),muted:!0,children:Object(n.jsx)(\"source\",{src:j,type:\"video/mp4\"})},_),Object(n.jsx)(\"video\",{className:a()(c.a.video),autoPlay:!0,muted:!0,onEnded:j&&function(){u&&u.current&&u.current.play(),b&&b.current&&b.current.pause(),l((function(e){return e+1==s.length?0:e+1}))},loop:!j,ref:b,children:Object(n.jsx)(\"source\",{src:d,type:\"video/mp4\"})},d)]})}},VEbH:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push([\"/[lang]/[city]\",function(){return s(\"Pj/i\")}])},\"b+2d\":function(e,t,s){\"use strict\";s(\"nKUr\"),s(\"TSYQ\"),s(\"yYkt\")},bHHM:function(e,t,s){e.exports={\"__next-prerender-indicator\":\"VideoLoop___next-prerender-indicator__26yqh\",container:\"VideoLoop_container__1h4v4\",nextVideo:\"VideoLoop_nextVideo__1J_xT\",previousVideo:\"VideoLoop_previousVideo__N2r3j\",video:\"VideoLoop_video__3HA6r\"}},eBIT:function(e,t,s){\"use strict\";var n=s(\"q1tI\"),r=s(\"65Kk\");t.a=function(){return Object(n.useContext)(r.a).lang}},fgMi:function(e,t,s){e.exports={\"__next-prerender-indicator\":\"StatusBanner___next-prerender-indicator__1T3I9\",statusBanner:\"StatusBanner_statusBanner__2gZ1m\",topRight:\"StatusBanner_topRight__28EGs\",\"statusBanner-green\":\"StatusBanner_statusBanner-green__1UXcq\",\"statusBanner-blue-grey\":\"StatusBanner_statusBanner-blue-grey__3ZkO0\",\"statusBanner-black\":\"StatusBanner_statusBanner-black__31TP-\"}},\"fq+n\":function(e,t,s){e.exports={\"__next-prerender-indicator\":\"CityMapSlice___next-prerender-indicator__3OL61\",mapSlice:\"CityMapSlice_mapSlice__1j1-u\",tabsContainer:\"CityMapSlice_tabsContainer__32SY1\",listContainer:\"CityMapSlice_listContainer__PgBDr\",mapContainer:\"CityMapSlice_mapContainer__1kXQX\",houseItem:\"CityMapSlice_houseItem__TTGJ1\"}},lB4Q:function(e,t,s){\"use strict\";var n=s(\"rePB\"),r=s(\"nKUr\"),a=s(\"TSYQ\"),o=s.n(a),i=s(\"XpH8\"),c=s(\"xoJU\"),l=s(\"Z+cT\"),u=s(\"96y2\"),b=s.n(u),_=s(\"76ZC\"),d=s.n(_),j=(s(\"b+2d\"),s(\"YFqc\")),h=s.n(j);function p(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function f(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?p(Object(s),!0).forEach((function(t){Object(n.a)(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):p(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}t.a=function(e){var t=e.house,s=e.style,n=e.className,a=e.smaller,u=e.narrow,_=e.buttonLabel,j=e.buttonHref,p=e.buttonClassName,O=e.renderTitle,x=e.renderText,m=e.white,g=t.title,v=(t.status,t.statusTextKey,t.statusColor,t.area),y=t.surface,C=(t.canApply,t.accommodations),N=t.accommodationsCount,S=t.availableCount,w=t.fullHouse,H=t.cheapest,B=t.text,P=t.open,I=Object(l.a)(),L=I(\"accommodations-count\",N).replace(\"#\",\"<span class='bold'>\".concat(N,\"</span>\")),T=C.length>0&&(w?\"<span class='bold'>\".concat(I(\"house-full\"),\".</span>\"):I(\"available-accommodations\",S).replace(\"#\",\"<span class='bold'>\".concat(S,\"</span>\"))),k=!w&&H<9999&&I(\"price-from\").replace(\"#\",\"<span class='bold'>\".concat(H,\"\\u20ac</span>\"));return Object(r.jsxs)(\"div\",{className:o()(b.a.houseInfos,(a||u)&&b.a.smaller,n),style:f({},s),children:[Object(r.jsxs)(\"div\",{children:[Object(r.jsx)(\"div\",{className:o()(b.a.houseInfosGrid),children:O&&Object(r.jsx)(\"div\",{style:{flex:1},children:a?Object(r.jsx)(h.a,{href:t.url,as:t.url,children:Object(r.jsx)(\"a\",{children:Object(r.jsx)(\"h2\",{className:o()(a?\"h--3\":\"h--1\",b.a.title),children:g})})}):Object(r.jsx)(\"h2\",{className:o()(a?\"h--3\":\"h--1\",b.a.title),children:g})})}),Object(r.jsxs)(\"div\",{className:o()(b.a.houseInfosGrid),children:[Object(r.jsx)(\"div\",{style:{flex:1},children:v&&v.split(\"\\n\").map((function(e,t){return Object(r.jsx)(\"p\",{className:o()(\"p--m\"),children:e},t)}))}),Object(r.jsxs)(\"div\",{style:{flex:.7},children:[N>0&&\"future-closed\"==t.status&&Object(r.jsx)(\"p\",{className:o()(\"p--m\",\"bold\"),children:I(\"soon\")}),N>0&&Object(r.jsx)(\"p\",{className:o()(\"p--m\"),children:d()(L)}),T&&Object(r.jsx)(\"p\",{className:o()(\"p--m\"),children:d()(T)})]})]}),(!a||!w||!P)&&Object(r.jsxs)(\"div\",{className:o()(b.a.houseInfosGrid),children:[y&&Object(r.jsxs)(\"div\",{style:{flex:1},children:[Object(r.jsx)(\"p\",{className:o()(\"p--m\"),children:I(\"house-surface-area\")}),Object(r.jsx)(\"p\",{className:o()(\"p--m\",\"bold\"),children:y})]}),k&&Object(r.jsx)(\"div\",{style:{flex:.7},children:Object(r.jsx)(\"p\",{className:o()(\"p--m\"),children:d()(k)})})]})]}),x&&B&&Object(r.jsx)(c.a,{className:o()(\"p--m\",b.a.text),blocks:B}),_&&Object(r.jsx)(\"div\",{children:Object(r.jsx)(i.a,{className:o()(b.a.button,p),label:_,href:j,fullWidth:!0,icon:\"right\",white:m})})]})}},rMPg:function(e,t,s){\"use strict\";var n=s(\"rePB\"),r=s(\"nKUr\"),a=s(\"TSYQ\"),o=s.n(a),i=s(\"z4xu\"),c=s(\"XpH8\"),l=s(\"xoJU\"),u=(s(\"Z+cT\"),s(\"HCnX\")),b=s.n(u),_=(s(\"76ZC\"),s(\"q1tI\"));function d(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function j(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?d(Object(s),!0).forEach((function(t){Object(n.a)(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):d(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}var h=function(e,t){var s=e.style,n=e.className,a=e.title,u=e.intro,_=e.blocks,d=e.button,h=e.downHref;return Object(r.jsxs)(\"div\",{ref:t,className:o()(b.a.strip,n),style:j({},s),children:[Object(r.jsx)(\"div\",{children:Object(r.jsx)(\"h2\",{className:o()(\"h--1\",b.a.title),children:a})}),Object(r.jsxs)(\"div\",{children:[u&&Object(r.jsx)(\"strong\",{className:o()(\"p--l\",b.a.intro),children:u}),_&&Object(r.jsx)(l.a,{className:o()(\"p--m\",b.a.text),blocks:_}),d&&Object(r.jsx)(c.a,{className:o()(b.a.button),label:d.label,fullWidth:!0,onClick:function(){},icon:\"right\"})]}),h&&Object(r.jsx)(i.b,{href:h})]})};t.a=Object(_.forwardRef)(h)},vxds:function(e,t,s){\"use strict\";var n=s(\"nKUr\"),r=s(\"TSYQ\"),a=s.n(r),o=s(\"Z+cT\"),i=s(\"fgMi\"),c=s.n(i);t.a=function(e){var t=e.className,s=e.status,r=e.topRight,i=\"available\"==s?\"green\":\"full\"==s?\"blue-grey\":\"black\",l=Object(o.a)()(\"house-\"+s);return Object(n.jsxs)(\"div\",{className:a()(c.a.statusBanner,i&&c.a[\"statusBanner-\"+i],r&&c.a.topRight,t),children:[Object(n.jsx)(\"svg\",{width:200,height:\"40\",children:Object(n.jsx)(\"path\",{d:\"M 0 0 H \".concat(200,\" V 40 H 0 L 20 20 L 0 0\"),fill:\"white\"})}),Object(n.jsx)(\"span\",{className:a()(\"p--m\"),children:l})]})}},yYkt:function(e,t,s){e.exports={\"__next-prerender-indicator\":\"Bubble___next-prerender-indicator__3r4pX\",bubble:\"Bubble_bubble__27HTK\",stretch:\"Bubble_stretch__2jikW\",text:\"Bubble_text__1tDZH\",\"bg-green\":\"Bubble_bg-green__HcL35\",\"bg-blue-grey\":\"Bubble_bg-blue-grey__2fTWn\",\"bg-black\":\"Bubble_bg-black__3J4gK\"}}},[[\"VEbH\",0,1,8,2,3,4,5,6,9]]]);","extractedComments":[]}