1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3732],{14967:(e,t,r)=>{"use strict";r.d(t,{Wy:()=>i,aN:()=>l,rF:()=>n});let s=["/uploads/patrimoine/"];function n(e){return!!e&&(!!e.startsWith("/api/uploads/")||s.some(t=>e.startsWith(t)))}function i(e){return e.startsWith("/api/uploads/")?e:e.startsWith("/uploads/")?`/api${e}`:e}function l(e){if(!e)return"";if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith("/api/uploads/"))return e;let t=e.startsWith("/")?e:`/${e}`;if(n(t)||n(e))return i(t);let r="https://new.raonletape.fr/api-raon".replace(/\/$/,"");return r?`${r}${t}`:t.startsWith("/uploads/")?i(t):t}},16960:(e,t,r)=>{"use strict";r.d(t,{default:()=>c});var s=r(9910),n=r(80342),i=r(69869),l=r.n(i),o=r(18013),a=r(67337);r(46196);var d=r(14967);let c=()=>{let[e,t]=(0,n.useState)([]);return(0,n.useEffect)(()=>{(async()=>{let e=await (0,a.A)();t(e?.bulletins)})()},[]),(0,s.jsxs)("div",{children:[(0,s.jsx)("h2",{className:"text-4xl font-bold",children:"Liste des Bulletins Municipaux de la commune"}),(0,s.jsx)("ul",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4 p-4",children:e&&e.map((e,t)=>{let r,n,i,a;return(0,s.jsx)("li",{className:"m-2 group justify-around flex-wrap lg:flex-nowrap items-center bg-gray-100 rounded-md hover:scale-105 transition-all ease-in-out",children:(0,s.jsxs)(l(),{href:(0,d.aN)(e.pdf_link),className:"grid sm:grid-cols-2 p-5 h-full",target:"_blank",children:[(0,s.jsx)("div",{className:"cursor-pointer text-center flex justify-center",children:(0,s.jsx)(o.default,{className:"self-center",src:(0,d.aN)(e.thumbnail),alt:"thumbnail",width:200,height:200})}),(0,s.jsxs)("div",{className:"text-primary flex flex-col justify-between h-full",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("h3",{className:"text-center",children:e.title}),(0,s.jsx)("p",{className:"text-center italic",children:(n=(r=new Date(e.date)).getUTCDate(),i=r.getUTCMonth()+1,a=r.getUTCFullYear(),`${n} ${["Janvier","F\xe9vrier","Mars","Avril","Mai","Juin","Juillet","Aout","Septembre","Octobre","Novembre","D\xe9cembre"][i-1]} ${a}`)}),(0,s.jsx)("p",{className:"p-4 text-justify text-primary",children:e.description})]}),(0,s.jsx)("div",{className:"text-center group-hover:underline group-hover:underline-offset-4 group-hover:underline-secondary",children:"Voir le bulletin"})]})]})},t)})})]})}},18013:(e,t,r)=>{"use strict";r.d(t,{default:()=>n.a});var s=r(98962),n=r.n(s)},18793:(e,t,r)=>{"use strict";r.d(t,{default:()=>i});var s=r(9910),n=r(80342);r(75701);let i=({children:e})=>{let t=(0,n.useRef)(null);return(0,n.useEffect)(()=>{t.current&&t.current.querySelectorAll("table").forEach(e=>{e.querySelectorAll("tr").forEach(e=>{e.querySelectorAll("td").forEach((e,t)=>{e.setAttribute("data-column",(t+1).toString()),e.innerHTML=e.innerHTML.replace(/\\/g,"<br>")})})})},[]),(0,s.jsx)("div",{ref:t,className:"mdx-content",children:e})}},46196:()=>{},61830:(e,t,r)=>{Promise.resolve().then(r.bind(r,71793)),Promise.resolve().then(r.bind(r,70322)),Promise.resolve().then(r.bind(r,80553)),Promise.resolve().then(r.bind(r,23473)),Promise.resolve().then(r.bind(r,19980)),Promise.resolve().then(r.bind(r,34407)),Promise.resolve().then(r.bind(r,21697)),Promise.resolve().then(r.bind(r,11196)),Promise.resolve().then(r.bind(r,497)),Promise.resolve().then(r.bind(r,70686)),Promise.resolve().then(r.bind(r,74524)),Promise.resolve().then(r.bind(r,58866)),Promise.resolve().then(r.bind(r,8735)),Promise.resolve().then(r.bind(r,99485)),Promise.resolve().then(r.bind(r,37717)),Promise.resolve().then(r.bind(r,9906)),Promise.resolve().then(r.bind(r,88416)),Promise.resolve().then(r.bind(r,43923)),Promise.resolve().then(r.bind(r,19860)),Promise.resolve().then(r.bind(r,77860)),Promise.resolve().then(r.bind(r,65295)),Promise.resolve().then(r.bind(r,78003)),Promise.resolve().then(r.bind(r,3417)),Promise.resolve().then(r.bind(r,85513)),Promise.resolve().then(r.bind(r,49069)),Promise.resolve().then(r.bind(r,84109)),Promise.resolve().then(r.bind(r,83962)),Promise.resolve().then(r.bind(r,3833)),Promise.resolve().then(r.bind(r,71126)),Promise.resolve().then(r.bind(r,5281)),Promise.resolve().then(r.bind(r,7579)),Promise.resolve().then(r.bind(r,43262)),Promise.resolve().then(r.bind(r,8173)),Promise.resolve().then(r.bind(r,8421)),Promise.resolve().then(r.bind(r,86569)),Promise.resolve().then(r.bind(r,5
15607)),Promise.resolve().then(r.bind(r,86183)),Promise.resolve().then(r.bind(r,27359)),Promise.resolve().then(r.bind(r,62177)),Promise.resolve().then(r.bind(r,4231)),Promise.resolve().then(r.bind(r,44481)),Promise.resolve().then(r.bind(r,11689)),Promise.resolve().then(r.bind(r,95170)),Promise.resolve().then(r.bind(r,3810)),Promise.resolve().then(r.bind(r,66825)),Promise.resolve().then(r.bind(r,38532)),Promise.resolve().then(r.bind(r,52558)),Promise.resolve().then(r.bind(r,5177)),Promise.resolve().then(r.bind(r,31429)),Promise.resolve().then(r.bind(r,23485)),Promise.resolve().then(r.bind(r,27273)),Promise.resolve().then(r.bind(r,74853)),Promise.resolve().then(r.t.bind(r,69869,23)),Promise.resolve().then(r.t.bind(r,62498,23)),Promise.resolve().then(r.bind(r,18793)),Promise.resolve().then(r.bind(r,70621)),Promise.resolve().then(r.bind(r,16960))},67337:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var s=r(87316);let n=(0,s.createServerReference)("005a0a057705d04fd2d1472abd2aeb7948021e9a30",s.callServer,void 0,s.findSourceMapURL,"default")},70621:(e,t,r)=>{"use strict";r.d(t,{default:()=>o});var s=r(9910),n=r(87316);let i=(0,n.createServerReference)("405f66d22b36ccf7ab12f472d1bf7b0af0e674b251",n.callServer,void 0,n.findSourceMapURL,"getContentStaticByTitle");var l=r(80342);let o=e=>{let{title:t,description:r,image:n,video:o,contentTitle:a}=e,[d,c]=(0,l.useState)(null);switch((0,l.useEffect)(()=>{(async()=>{a&&c(await i(a))})()},[a]),a&&d&&(d?(t=d?.title,r=d?.description,n=d?.image):(t="Bienvenue sur le site de Raon l'\xc9tape",r="D\xe9couvrez les informations sur ce joyau au coeur des Vosges",n="/images/header.jpg")),t=t?.replace(/-/g," ").replace(/^\w/,e=>e.toUpperCase()),t?.toLowerCase()){case"raon letape ma ville":t="Pr\xe9sentation";break;case"consulter laffichage legal":t="Consulter l'affichage l\xe9gal";break;case"annuaire de raon":t="Annuaire de Raon l'\xc9tape";break;case"actes detat civil":t="Actes d'\xe9tat civil";break;case"sinformer":t="S'informer";break;case"sante et solidarite":t="Sant\xe9 et solidarit\xe9";break;case"securite et prevention":t="S\xe9curit\xe9 et pr\xe9vention";break;case"agenda_des_evenements":t="Agenda des \xe9v\xe9nements";break;case"marches publics":t="March\xe9s publics";break;case"cimetieres":t="Cimeti\xe8res"}let[u,m]=(0,l.useState)(!0),h=(0,l.useRef)(null);return(0,s.jsxs)("section",{className:"h-[70vh] flex flex-col justify-center items-center text-white relative",children:[o?(0,s.jsx)("video",{ref:h,className:"absolute top-0 left-0 w-full h-full object-cover",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,children:(0,s.jsx)("source",{src:o,type:"video/mp4"})}):(0,s.jsx)("div",{className:"absolute top-0 left-0 w-full h-full bg-no-repeat bg-cover bg-center transition-opacity pt-16 flex items-center duration-1000",style:{backgroundImage:`url(${n||"/images/header.jpg"})`},children:(0,s.jsxs)("div",{className:"z-10 p-2 flex flex-col bg-[rgb(39,50,73,0.50)] md:p-5 w-full lg:mb-20",children:[(0,s.jsx)("h1",{className:"text-3xl border-none text-center mx-auto items-center font-bold pb-5 font-sans md:text-left text-[white]",children:t||"Bienvenue sur le site de Raon l'\xc9tape"}),(0,s.jsx)("p",{className:"font-sans text-xl font-bold mx-auto leading-5 text-[white]",children:r||"D\xe9couvrez les informations sur ce joyau au coeur des Vosges"})]})}),o&&(0,s.jsxs)("div",{className:"z-10 p-2 flex flex-col md:p-5 w-full lg:mb-20 absolute top-0 left-0 h-full justify-center items-center",children:[(0,s.jsx)("h1",{className:"text-5xl border-none text-center mx-auto items-center font-bold pb-5 font-sans md:text-left text-[white]",children:t||"Bienvenue sur le site de Raon l'\xc9tape"}),(0,s.jsx)("p",{className:"font-sans text-xl font-bold mx-auto leading-5 text-[white]",children:r||"D\xe9couvrez les informations sur ce joyau au coeur des Vosges"})]}),o&&(0,s.jsx)("button",{onClick:()=>{h.current&&(u?h.current.pause():h.current.play(),m(!u))},className:"z-20 p-2 bg-white text-black rounded-md absolute bottom-5 right-5",children:u?"Pause":"Play"})]})}},75701:()=>{},87316:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0});var s={callServer:function(){return i.callServer},createServerReference:function(){return o.createServerReference},findSourceMapURL:function(){return l.findSourceMapURL}};for(var n in s)Object.defineProperty(t,n,{enumerable:!0,get:s[n]});let i=r(95939),l=r(50827),o=r(34932)},98962:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s={default:function(){return c},getImageProps:function(){return d}};for(var n in s)Object.defineProperty(t,n,{enumerable:!0,get:s[n]});let i=r(92491),l=r(93914),o=r(62498),a=i._(r(34250));function d(e){let{props:t}=(0,l.getImgProps)(e,{defaultLoader:a.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let c=o.Image}},e=>{e.O(0,[2372,1901,2397,1663,5825,2669,2498,9869,8657,4524,7358],()=>e(e.s=61830)),_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.