1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4237],{29907:(e,s,l)=>{"use strict";l.r(s),l.d(s,{PlacePage:()=>p,default:()=>u});var a=l(6029);l(55729);var t=l(4516),i=l(96930),r=l(39794),n=l(65403),d=l(61924),c=l(81278),x=l(73492),o=l(40334),h=l(21841);let m=function(e){var s,l;let{id:m}=e,p=(0,c.useRouter)(),{data:u,isLoading:f,isError:g}=(0,x.qIX)(m);if(f)return(0,a.jsx)(i.R,{});if(g||!u)return(0,a.jsx)("h2",{children:"Erreur r\xe9cup\xe9ration lieu"});let y=u&&function(e){let s=e.openings.length>0?e.openings[0]:null;return s?[{day:"monday",frenchDay:"Lundi"},{day:"tuesday",frenchDay:"Mardi"},{day:"wednesday",frenchDay:"Mercredi"},{day:"thursday",frenchDay:"Jeudi"},{day:"friday",frenchDay:"Vendredi"},{day:"saturday",frenchDay:"Samedi"},{day:"sunday",frenchDay:"Dimanche"}].map(e=>{let l=s.timetables.find(s=>s.day===e.day),a=null;if(l){if(!l.openingTime||!l.closingTime)return{day:e.frenchDay,openingHours:null};a=l.breakStartTime&&l.breakEndTime?"".concat(l.openingTime," - ").concat(l.breakStartTime," / ").concat(l.breakEndTime," - ").concat(l.closingTime):"".concat(l.openingTime," - ").concat(l.closingTime)}return{day:e.frenchDay,openingHours:a}}):Array(7).fill(null)}(u);return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"xl:rounded-3xl xl:px-20 xl:pt-10",children:(0,a.jsxs)("div",{className:"relative aspect-[1280/486] w-full bg-gray-200 xl:rounded-3xl",children:[(0,a.jsx)("img",{src:(0,o.w8)(null==(s=u.image)?void 0:s.key,null==(l=u.image)?void 0:l.type)||"/images/place.jpeg",alt:"logo Connect'Events",loading:"lazy",className:"object-cover xl:rounded-3xl"}),(0,a.jsx)("button",{onClick:()=>{p.back()}
1,className:"absolute left-4 top-4 rounded-lg bg-white p-2 shadow-md xl:hidden",children:(0,a.jsx)(d.R,{name:"arrowLeft",alt:"arrowLeft",width:20,height:20})}),(0,a.jsxs)("p",{className:"absolute bottom-4 right-4 flex items-center gap-1 rounded-full bg-white px-2 text-gray-600 xl:hidden",children:[(0,a.jsx)(t.wb,{width:14,height:14,fill:"#287BB9"}),(0,h.OQH)(u.type)]})]})}),(0,a.jsx)("div",{className:"pt-4 xl:px-20 xl:pt-6",children:(0,a.jsx)("div",{className:"grid xl:grid-cols-3 xl:gap-8",children:(0,a.jsxs)("div",{className:"xl:col-span-2",children:[(0,a.jsxs)("div",{className:"mt-4 hidden w-min items-center gap-1 rounded-full border p-3 py-[6px] xl:mt-0 xl:flex",children:[(0,a.jsx)(t.wb,{width:18,height:18,fill:"#F39200"}),(0,a.jsx)("p",{className:"whitespace-nowrap text-lg font-bold text-gray-600",children:(0,h.OQH)(u.type)})]}),(0,a.jsx)("p",{className:"px-[14px] text-xl font-semibold xl:px-0 xl:pt-4 xl:text-3xl",children:u.name}),(0,a.jsx)("p",{className:"hidden pt-4 text-lg xl:block",children:u.description}),(0,a.jsxs)("div",{className:"px-[14px] xl:px-0",children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 pb-3 pt-6",children:[(0,a.jsx)(t.sR,{width:24,height:24,fill:"#F39200"}),(0,a.jsxs)("p",{className:"text-base text-gray-600",children:[u.address.address,", ",u.address.city," ",u.address.zipCode]})]}),(0,a.jsxs)("div",{className:"flex items-center gap-3 pb-3",children:[(0,a.jsx)(t.b9,{width:24,height:24,fill:"#F39200"}),(0,a.jsx)("p",{className:"text-base text-gray-600",children:function(){if(null!=u){if(u.isIndoor&&u.isOutdoor)return"Int\xe9rieur & Ext\xe9rieur";else if(u.isIndoor)return"Int\xe9rieur";else if(u.isOutdoor)return"Ext\xe9rieur"}}()})]}),(0,a.jsxs)("div",{className:"flex items-center gap-3 pb-3",children:[(0,a.jsx)(t.yB,{width:24,height:24,fill:"#F39200"}),(0,a.jsx)("p",{className:"text-base text-gray-600",children:u.isPaidEntry?"Payant":"Gratuit"})]}),u.websiteUrl&&(0,a.jsxs)("div",{className:"flex items-center gap-3 pb-3",children:[(0,a.jsx)(t.wu,{width:24,height:24,fill:"#F39200"}),(0,a.jsx)("a",{href:u.websiteUrl,className:"text-base text-gray-600",children:u.websiteUrl})]})]}),(0,a.jsxs)("div",{className:"mt-4 bg-gray-100 px-8 py-6 xl:mt-6",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("p",{className:"text-sm font-semibold",children:"DATES ET HORAIRES D'OUVERTURE"}),(0,a.jsx)("div",{className:"flex items-center justify-center gap-2 bg-secondary-100 px-4 py-1",children:(0,a.jsx)("p",{className:"text-xs font-bold text-secondary-800",children:"Aucune information sur des dates de fermetures exceptionnelles"})}),(0,a.jsx)("ul",{className:"flex flex-col gap-4 text-sm",children:y.map(e=>{let{day:s,openingHours:l}=e;return(0,a.jsxs)("li",{className:"flex",children:[(0,a.jsx)("span",{className:"w-1/3 text-gray-700",children:s}),(0,a.jsx)("p",{className:(0,r.cn)("w-1/2 font-semibold",{"text-gray-500":!l}),children:l||"Ferm\xe9"})]},l)})})]}),(0,a.jsx)("div",{className:"px-6 pt-[31px] xl:hidden",children:(0,a.jsx)(n.$,{variant:"blue",className:"flex w-full justify-center text-sm font-normal",children:"Acc\xe9der \xe0 la billetterie"})})]})]})})})]})})};function p(){let{id:e}=(0,c.useRouter)().query;return e?(0,a.jsx)("div",{children:(0,a.jsx)(m,{id:e})}):null}let u=p},40031:(e,s,l)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/place/[id]",function(){return l(29907)}])}},e=>{e.O(0,[636,6593,8792],()=>e(e.s=40031)),_N_E=e.O()}]); 2//# sourceMappingURL=[id]-c88ea42c40cca541.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.