1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[705],{3855:function(e,t,n){Promise.resolve().then(n.bind(n,2529))},2529:function(e,t,n){"use strict";n.r(t);var s=n(7437),c=n(2265);let r=["France","Belgique","Suisse","Japon","USA"];t.default=()=>{let[e,t]=(0,c.useState)([]);(0,c.useEffect)(()=>{(async()=>{try{let e=await fetch("/api/points"),n=await e.json();n.sort((e,t)=>r.indexOf(e.country)-r.indexOf(t.country)),t(n)}catch(e){console.error("Error fetching points of sale:",e)}})()},[]),(0,c.useEffect)(()=>(document.documentElement.style.scrollBehavior="smooth",()=>{document.documentElement.style.scrollBehavior=""}),[]);let n=r.map(t=>({country:t,points:e.filter(e=>e.country===t)}));return(0,s.jsxs)("div",{className:"container mx-auto py-14 md:py-20 px-4 xs:mt-16 md:px-10 lg:px-10",children:[(0,s.jsx)("h1",{className:"text-4xl sm:text-5xl font-bold mb-20 text-center tracking-wide",children:"Points de vente"}),n.map(e=>(0,s.jsxs)("div",{className:"mb-8",children:[(0,s.jsx)("h2",{className:"text-3xl font-bold bg-background border-2 border-custom-black px-4 py-2 rounded-lg text-center mb-8",children:e.country}),(0,s.jsx)("ul",{className:"flex flex-col items-center text-center",children:e.points.map(e=>(0,s.jsxs)("li",{className:"mb-4 max-w-lg",children:[(0,s.jsx)("h3",{className:"text-xl font-bold",children:e.name}),(0,s.jsxs)("p",{children:[e.street&&"".concat(e.street," "),(0,s.jsx)("br",{}),e.cp&&"".concat(e.cp," "),e.city]}),e.phone&&(0,s.jsxs)("p",{children:["T\xe9l\xe9phone: ",e.phone]}),e.website&&(0,s.jsx)("p",{children:(0,s.jsx)("a",{href:e.website,className:"text-custom-orange-dark hover-text-custom-orange-light",target:"_blank",rel:"noopener noreferrer",children:e.website})}),e.comment&&(0,s.jsx)("p",{children:e.comment})]},e.id))})]},e.country))]})}}},function(e){e.O(0,[971,23,744],function(){return e(e.s=3855)}),_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.