PageSourceSearch

https://sadr.com.sa/_nuxt/CqatWROV.js

js sadr.com.sa collected 2026-09-30 15:32:37 UTC 4,255 bytes, 1 lines download raw bytes

1import{L as z,a as k,m as S,u as V,p as B,c as L,b as d,e as f,f as e,t as l,i as o,w as n,O as N,P,j as t,N as $,_ as j,q as w,v as A,n as C,x as D}from"./DGM8lNn8.js";import{i as I}from"./Dawc10Na.js";import{l as M}from"./DArcwcNc.js";import{S as Z,N as E,A as F,Z as H,a as O}from"./7CgD_Lxk.js";import{i as R}from"./D8ErBtR8.js";import{u as T}from"./Bz-yLh1F.js";import{u as U}from"./BmPUAtpk.js";import{u as q}from"./BFoC_60u.js";import"./Glv5KJBU.js";const X=""+new URL("bg.VZ6RNaSV.webp",import.meta.url).href,G={class:"relative min-w-screen pb-8 md:min-h-screen"},J={class:"relative z-20 pt-8 px-4 md:px-16"},K={"data-aos":"fade-up","data-aos-duration":"300","data-aos-easing":"ease-in-sine","data-aos-delay":"100","data-allow-mismatch":"class",class:"text-white text-center w-full text-outline pt-6 pb-4 md:py-4 font-[600] text-2xl md:text-6xl"},Q={class:"relative mt-4 md:mt-8 md:px-24"},W={class:"overflow-hidden rounded-xl"},Y={class:"p-2"},ee={class:"text-black line-clamp-2 font-bold mt-2 text-base md:text-lg"},te=["innerHTML"],se={class:"flex justify-end mt-3 md:mt-4"},ae={class:"font-bold text-c7 capitalize border-b-2 border-b-c7 block w-fit hover:text-c6 hover:border-b-c6 transition-colors duration-300"},oe={class:"flex w-full text-white z-20 px-4 justify-center mt-6 md:justify-between gap-2 items-center relative md:-mt-60"},re={class:"hover:bg-transparent cursor-pointer transition-all duration-300 border-2 border-c8 hover:border-white bg-c8 px-6 py-2 md:px-8 md:py-3 rounded-lg text-white font-bold text-lg md:text-xl hover:text-white"},le={__name:"news",async setup(ne){let r,c;const x=k(),{isMobile:u}=T(),b=[E,F,H],{locale:i}=S(),{stripDefaultSpanStyle:v}=U(),g=D().public.ConstUrl,m=V(),{data:y}=([r,c]=B(()=>q(L(()=>`${g}/news/latest`),{headers:{"X-Localization":i},getCachedData:a=>m?.payload?.data[a]||m?.static?.data[a]},"$c4nZV-OrhM")),r=await r,c(),r);return(a,p)=>{const h=j,_=A;return d(),f("section",{style:C(`background: url(${t(X)}) no-repeat center center; background-size: cover; width: 100%; height: 100%;`),class:"news-section"},[e("div",G,[p[0]||(p[0]=e("div",{class:"bg-oneF dark:bg-black/80 absolute top-0 left-0 w-full h-full"},null,-1)),e("div",J,[e("h2",K,l(a.$t("Latest News")),1)]),e("div",Q,[o(t(O),{autoHeight:!0,breakpoints:{0:{centeredSlides:!0,slidesPerView:1.2,spaceBetween:16},480:{centeredSlides:!1,slidesPerView:1.5,spaceBetween:20},640:{slidesPerView:2,spaceBetween:20},1024:{slidesPerView:3,spaceBetween:20},1280:{slidesPerView:4,spaceBetween:20}},modules:b,lazy:!0,loop:!0,preloadImages:!1,zoom:!0,autoplay:{disableOnInteraction:!1,delay:3e3},class:"my-swiper rounded-lg",navigation:{nextEl:".next",prevEl:".prev"}},{default:n(()=>[(d(!0),f(N,null,P(t(y).data,s=>(d(),$(t(Z),{key:s.id},{default:n(()=>[o(h,{target:"_blank",to:s.link,"aria-label":s.title,class:"bg-white relative rounded-xl p-3 md:p-4 block h-full shadow-lg hover:shadow-xl transition-shadow duration-300"},{default:n(()=>[e("div",W,[o(t(I),{src:s.image||t(R),"src-placeholder":t(M),alt:s?.image_alt,class:"rounded-xl h-[140px] md:h-[180px] w-full object-cover hover:scale-105 transition-transform duration-500"},null,8,["src","src-placeholder","alt"])]),e("div",Y,[e("h3",ee,l(s.title),1),e("div",{innerHTML:t(v)(s.description),class:"text-[#000008] line-clamp-3 font-semibold my-2 text-sm md:text-base"},null,8,te),e("div",se,[e("div",ae,l(a.$t("read")),1)])])]),_:2},1032,["to","aria-label"])]),_:2},1024))),128))]),_:1})]),e("div",oe,[e("div",{class:w([t(i)==="en"?"order-1":"order-2","grid place-items-center border transition-all duration-300 hover:bg-c8 rounded-full cursor-pointer prev z-20 w-10 h-10 md:w-16 md:h-16"])},[o(_,{name:"mdi:chevron-left",size:t(u)?"1.5rem":"2.5rem"},null,8,["size"])],2),e("div",{class:w([t(i)==="en"?"order-2":"order-1","grid place-items-center next z-20 border rounded-full cursor-pointer transition-all duration-300 hover:bg-c8 w-10 h-10 md:w-16 md:h-16"])},[o(_,{name:"mdi:chevron-right",size:t(u)?"1.5rem":"2.5rem"},null,8,["size"])],2)]),o(h,{to:t(x)("news"),class:"flex justify-center mt-8 md:mt-60 text-center w-full z-20 relative"},{default:n(()=>[e("button",re,l(a.$t("viewAll")),1)]),_:1},8,["to"])])],4)}}},xe=z(le,[["__scopeId","data-v-9010e610"]]);export{xe 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.