PageSourceSearch

https://www.maghreb-fes.com/assets/News-BQSd3MN4.js

js maghreb-fes.com collected 2026-10-03 18:30:00 UTC 2,873 bytes, 1 lines download raw bytes

1import{j as e}from"./vendor-ui-CEF-15Lq.js";import{r as m}from"./vendor-query-CljUsS_6.js";import{m as c}from"./news-C1Y-zYUg.js";import{c as x,d as u}from"./index-C_q6uVHq.js";import{u as p}from"./vendor-i18n-D1qYDCqT.js";import{m as d}from"./vendor-motion-CxS1umQS.js";import"./vendor-router-Bf1XnPSO.js";import"./vendor-icons-MWwHR2z7.js";const f="/favicon.ico",g=(t,s)=>{try{return new Date(t).toLocaleDateString(s,{day:"numeric",month:"long",year:"numeric"})}catch{return t}},h=({src:t,alt:s})=>{const[a,o]=m.useState(!1);return!t||a?e.jsx("div",{className:"w-full h-full flex items-center justify-center bg-gradient-to-br from-zinc-800 to-zinc-950",children:e.jsx("img",{src:f,alt:"MAS Fès",width:64,height:64,className:"w-16 h-16 opacity-30"})}):e.jsx("img",{src:t,alt:s,loading:"lazy",className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500",onError:()=>o(!0)})},k=()=>{var l;const{t,i18n:s}=p(),a=((l=s.language)==null?void 0:l.slice(0,2))??"fr",o=a==="ar"?"ar-MA":a==="en"?"en-GB":"fr-FR",n=x("news")?u("news")??c:c;return e.jsx("section",{id:"actualites","aria-label":"Actualités MAS Fès",className:"py-16 md:py-24 bg-surface-1",children:e.jsxs("div",{className:"container px-4",children:[e.jsxs(d.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[e.jsx("p",{className:"text-primary uppercase tracking-[0.3em] text-sm mb-2 text-center font-body",children:t("news.eyebrow")}),e.jsx("h2",{className:"font-heading text-4xl md:text-6xl text-foreground text-center mb-12",children:t("news.title")})]}),n.length===0?e.jsx("p",{className:"text-center text-muted-foreground",children:t("news.empty")}):e.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:n.map((r,i)=>e.jsxs(d.article,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:Math.min(i*.08,.4)},className:"group bg-gradient-card border border-border overflow-hidden hover:border-primary/50 transition-all duration-300 flex flex-col",children:[e.jsx("div",{className:"h-48 overflow-hidden",children:e.jsx(h,{src:r.imageUrl,alt:r.title})}),e.jsxs("div",{className:"p-5 flex flex-col flex-1",children:[e.jsxs("p",{className:"text-xs text-muted-foreground mb-2 uppercase tracking-wider",children:[r.sourceName," · ",g(r.date,o)]}),e.jsx("h3",{className:"font-heading text-lg text-foreground group-hover:text-primary transition-colors leading-snug flex-1",children:r.title}),r.excerpt&&e.jsx("p",{className:"text-sm text-muted-foreground mt-2 line-clamp-2",children:r.excerpt}),r.sourceUrl&&r.sourceUrl!=="#"&&e.jsx("a",{href:r.sourceUrl,target:"_blank",rel:"noopener noreferrer",className:"mt-4 text-primary text-sm font-semibold uppercase tracking-wider hover:underline self-start",children:t("news.readMore")})]})]}
1,`${r.sourceUrl}-${i}`))})]})})};export{k as default};

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.