1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1407],{8790:(e,t,l)=>{"use strict";l.d(t,{A:()=>i});var s=l(37876),n=l(14232),r=l(69241),a=l(41407),o=l(83776);let i=e=>{let{open:t,onClose:l,nopadding:i=!1,small:d=!1,large:m=!1,children:c,id:u,openFromSide:x}=e;return(0,n.useEffect)(()=>{let e=window.innerWidth-document.body.offsetWidth;document.body.style.setProperty("--scrollbar-width","".concat(e,"px")),t?document.body.classList.add("no-scroll"):document.body.classList.remove("no-scroll")},[t]),(0,s.jsxs)("div",{className:(0,r.A)("\n fixed\n w-full\n h-dvh\n top-0\n left-0\n flex\n items-start\n md:items-center\n justify-center\n duration-150\n transition-opacity\n ",!t&&"opacity-0 pointer-events-none",x&&"md:justify-end"),style:{zIndex:0x5f5e0ff},children:[(0,s.jsx)("div",{className:"absolute w-full h-full bg-blue-700 opacity-50",onClick:l}),(0,s.jsxs)("div",{id:u,className:(0,r.A)("w-full max-h-dvh my-auto transition-transform duration-150 transform bg-white shadow-lg z-10",!t&&!x&&"scale-95",!t&&x&&"md:translate-x-full",d&&"md:max-w-sm",m&&"md:max-w-6xl",x?"md:mx-right md:max-w-[40rem]":"md:mx-auto md:max-w-3xl"),children:[(0,s.jsx)("div",{className:(0,r.A)("max-h-dvh overflow-y-auto md:h-auto",!x&&"md:max-h-screen-90",!i&&"p-2 md:p-4"),children:c}),(0,s.jsxs)("button",{type:"button",onClick:l,className:(0,r.A)(a.x6.roundedSm,"absolute top-0 right-0 z-50 flex items-center px-0 mt-1 mr-1 text-blue-700 transform bg-white lg:translate-x-1/2 md:-translate-y-1/2 md:mt-0 md:mr-0 md:pt-space md:bg-blue-700 hover:bg-white md:hover:bg-teal-600 md:text-white text-h2 md:text-lg",x&&"md:-left-8 md:top-8"),children:[(0,s.jsx)("span",{className:"sr-only",children:"close"}),(0,s.jsx)(o.A,{name:"close",className:"mt-px size-1",baseline:!0})]})]})]})}},13730:(e,t,l)=>{"use strict";l.d(t,{A:()=>h});var s=l(37876);l(14232);var n=l(69241),r=l(54587),a=l.n(r),o=l(37139),i=l(83776),d=l(43197),m=l(41407),c=l(30360),u=l(24782),x=l.n(u);let h=e=>{var t,l,r;let{promotion:u,imageUrl:h,onClick:p}=e,{title:f,promotional_url:v,promotion_url:g,images:j,medias:b,locality:w,description:N,tag:y}=u,_=(0,c.U1)(u),A=_?void 0:(null==v?void 0:v.uri)||g,k=A?"a":"div",S=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"relative overflow-hidden",children:[h?(0,s.jsx)("div",{className:"relative w-full overflow-hidden",style:{paddingTop:"62.5%"},children:(0,s.jsx)(a(),{src:(0,c.rf)(h),fill:!0,className:"object-cover",alt:null!=(r=null==f?void 0:f.replace(/(<([^>]+)>)/gi,""))?r:""})}):(0,s.jsx)(d.A,{src:(null==b?void 0:b[0])||(null==j?void 0:j[0]),ratio:"16/10",lg:"50",md:"50",sm:"50"}),!(0,o.A)(y)&&(0,s.jsx)("span",{className:"absolute top-0 left-0 ml-px z-100",style:{paddingLeft:8,paddingRight:8,paddingTop:4},children:(0,s.jsx)("span",{className:(0,n.A)(m.qS[y.type],"mr-space"),children:y.label})})]}),(0,s.jsxs)("div",{className:"relative p-3 pt-4 text-left border-b border-l border-r border-gray-200 grow transition-colors duration-150",children:[(0,s.jsx)("h3",{dangerouslySetInnerHTML:{__html:f}}),(0,s.jsx)("p",{className:"text-lg font-medium text-teal-600",children:w}),!(0,o.A)(null==N?void 0:N.processed)&&(0,s.jsx)("p",{className:"mt-1 overflow-hidden text-gray-500",dangerouslySetInnerHTML:{__html:"".concat(null==N||null==(l=N.processed)||null==(t=l.replace(/(<([^>]+)>)/gi,""))?void 0:t.slice(0,105),"...")}}),A&&(0,s.jsx)("span",{className:"absolute top-0 right-0 z-10 flex items-center justify-center w-5 h-5 mr-3 text-teal-600 bg-white rounded-full shadow-sm transform -translate-y-1/2",children:(0,s.jsx)(i.A,{name:"external"})})]})]});return(0,s.jsx)(k,{className:(0,n.A)(x().default,m.Sl.zoom,"w-full flex flex-col text-blue-700 bg-white duration-150 transition-colors no-underline",_&&p&&"cursor-pointer"),...A&&{href:A,target:"_blank",rel:"noopener noreferrer"},...p&&{onClick:()=>p(u)},children:S})}},14283:(e,t,l)=>{"use strict";l.r(t),l.d(t,{__N_SSG:()=>j,default:()=>b});var s=l(14232),n=l(37876),r=l(34846),a=l(65984),o=l(37139),i=l(60783),d=l(44646),m=l(97715),c=l(8790),u=l(13730),x=l(20738),h=l(57823),p=l(48220),f=l(82740),v=l(70976),g=l(30360),j=!0;let b=e=>{var t;let{content:l,promotions:j,regions:b}=e,{t:w}=(0,p.gN)("templates.promotions"),{i18n:N}=(0,r.Bd)(),{getPage:y}
1=(0,p.Qd)(),[_,A]=(0,a.ZA)("region"),[k,S]=(0,s.useState)(j),[C,T]=(0,s.useState)(null),[z,E]=(0,s.useState)(!1);(0,s.useEffect)(()=>{S((0,o.A)(_)?j:j.filter(e=>{var t;return(null==(t=e.region)?void 0:t.id)===_}))},[_,j]);let L=k.filter(e=>!(0,g.U1)(e)),q=k.filter(e=>(0,g.U1)(e));return(0,n.jsxs)(f.A,{children:[(0,n.jsx)(h.A,{metatags:null==l?void 0:l.metatag,cover:null==l?void 0:l.image}),(0,n.jsxs)("main",{id:"mainContent",className:"container py-4 mb-4 md:mb-7",children:[(0,n.jsx)(d.A,{crumbs:[{href:"/",title:"home"},{href:"/notre-societe",title:null==(t=y("/notre-societe"))?void 0:t.title},{title:null==l?void 0:l.title}]}),(0,n.jsx)(i.A,{content:l}),(0,n.jsxs)("div",{className:"md:w-1/2",id:"promotions-select",children:[(0,n.jsxs)("h3",{className:"mt-4 mb-3 md:mt-7",children:[null==L?void 0:L.length," ",w("x_new_projets")]}),(0,n.jsx)(x.A,{id:"region-selector",value:_||"",onChange:e=>A(""!==e.target.value?e.target.value:null),options:null==b?void 0:b.map(e=>({label:null==e?void 0:e.name,value:null==e?void 0:e.id})),placeholder:w("select")})]}),(0,n.jsx)("div",{className:"mt-4 row",id:"promotions-teasers",children:null==L?void 0:L.map((e,t)=>(0,n.jsx)("div",{className:"flex w-full mb-3 gutter md:w-1/3",children:(0,n.jsx)(u.A,{promotion:e,onClick:e=>v.A.event("promotions.detail",{title:e.title})})},"promotion-".concat(t)))}),q.length>0&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("h3",{className:"mb-3 mt-7",children:w("sold_section")}),(0,n.jsx)("div",{className:"mt-4 row",id:"promotions-sold-teasers",children:q.map((e,t)=>(0,n.jsx)("div",{className:"flex w-full mb-3 gutter md:w-1/3",children:(0,n.jsx)(u.A,{promotion:e,onClick:T})},"sold-promotion-".concat(t)))})]}),(0,n.jsx)(c.A,{open:!!C,onClose:()=>{T(null),E(!1)},children:z?(0,n.jsx)("div",{className:"p-4 text-center",children:(0,n.jsx)("p",{className:"text-lg font-medium text-teal-600",children:w("sold_inquiry.success")})}):(0,n.jsxs)("div",{className:"p-4",children:[(0,n.jsx)("h2",{className:"mb-1",children:w("sold_inquiry.title")}),(0,n.jsx)("p",{className:"mb-4 text-gray-600",children:w("sold_inquiry.subtitle")}),C&&(0,n.jsx)(m.rk,{projectReference:C.reference,projectTitle:C.title.replace(/(<([^>]+)>)/gi,""),language:N.language,regions:b,onSuccess:()=>E(!0)})]})}),(0,n.jsx)("h2",{className:"mt-4 mb-3 md:mt-7",children:w("partners")}),(0,n.jsx)("img",{src:"/images/Logos promoteurs.png",alt:"Logos promoteurs"})]})]})}},24782:e=>{e.exports={default:"PromotionTeaser_default__MDvkD"}},86248:(e,t,l)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/projets-neufs",function(){return l(14283)}])}},e=>{e.O(0,[6701,1215,6934,1052,8275,8487,4188,2740,5151,636,6593,8792],()=>e(e.s=86248)),_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.