PageSourceSearch

https://smartcargo.global/assets/index-CKTfKGEg.js

js smartcargo.global collected 2026-09-24 14:02:44 UTC 2,658 bytes, 1 lines download raw bytes

1import{r as x,j as e,y as g,p as h,aB as p,aC as u,B as f,E as j,P as N}from"./index-DFDoyO67.js";import{u as w}from"./api-CmStNb96.js";import{g as v}from"./newsImage-C-da-Ndo.js";const b=({post:s})=>{const[a,r]=x.useState(!1),t=v(s.imageUrl),i=!!t&&!a;return e.jsxs(g,{to:`/news/${s.slug}`,className:"group flex h-full flex-col overflow-hidden rounded-2xl border border-[rgba(11,18,32,0.09)] bg-white transition-all hover:-translate-y-1 hover:shadow-lg",children:[i&&e.jsx("div",{className:"aspect-video shrink-0 overflow-hidden bg-[#EDF1FF]",children:e.jsx("img",{src:t,alt:s.title,loading:"lazy",onError:()=>r(!0),className:"size-full object-cover transition-transform duration-500 group-hover:scale-105"})}),e.jsxs("div",{className:"flex flex-1 flex-col gap-2 p-4",children:[e.jsx("h3",{className:"text-[15px] font-bold leading-snug text-[#0B1220] transition-colors group-hover:text-[#2448D7]",children:s.title}),s.excerpt&&e.jsx("p",{className:"text-[13.5px] leading-relaxed text-[#46556d]",children:s.excerpt})]})]})},n=12,F=()=>{const{t:s}=h("landing/News"),[a,r]=x.useState(0),{data:t,isLoading:i,isError:d,refetch:m}=w(a,n),o=(t==null?void 0:t.content)??[],c=(t==null?void 0:t.totalElements)??0;return e.jsxs("div",{className:"text-[#0B1220]",children:[e.jsx("section",{className:"bg-gradient-to-br from-[#2448D7] to-[#152b81] text-white",children:e.jsxs("div",{className:"mx-auto w-full max-w-6xl px-4 py-16 sm:py-20",children:[e.jsxs("span",{className:"inline-flex items-center gap-2 rounded-full bg-white/15 px-3 py-1 text-sm font-medium",children:[e.jsx(p,{className:"size-4"}),s("badge")]}),e.jsx("h1",{className:"mt-4 max-w-3xl text-4xl font-extrabold leading-tight tracking-tight sm:text-5xl",children:s("title")}),e.jsx("p",{className:"mt-4 max-w-2xl text-lg text-blue-100",children:s("subtitle")})]})}),e.jsx("section",{className:"bg-[#FAFBFE]",children:e.jsx("div",{className:"mx-auto w-full max-w-6xl px-4 py-12",children:i?e.jsx("div",{className:"flex justify-center py-24",children:e.jsx(u,{size:"large"})}):d?e.jsxs("div",{className:"flex flex-col items-center gap-4 py-24",children:[e.jsx("p",{className:"text-[#46556d]",children:s("error")}),e.jsx(f,{onClick:()=>m(),children:s("retry")})]}):o.length===0?e.jsx(j,{description:s("empty"),className:"py-24"}):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2 lg:grid-cols-3",children:o.map(l=>e.jsx(b,{post:l},l.id))}),c>n&&e.jsx("div",{className:"mt-10 flex justify-center",children:e.jsx(N,{current:a+1,pageSize:n,total:c,showSizeChanger:!1,onChange:l=>{r(l-1),window.scrollTo({top:0,behavior:"smooth"})}})})]})})})]})};export{F 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.