1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3035],{3166:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(71847).A)("Wifi",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]])},6132:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(71847).A)("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]])},14755:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(71847).A)("Headset",[["path",{d:"M3 11h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-5Zm0 0a9 9 0 1 1 18 0m0 0v5a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3Z",key:"12oyoe"}],["path",{d:"M21 16v2a4 4 0 0 1-4 4h-5",key:"1x7m43"}]])},16485:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(71847).A)("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]])},20508:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(71847).A)("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]])},21873:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(71847).A)("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]])},23664:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(71847).A)("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]])},42529:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(71847).A)("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]])},50680:(e,s,t)=>{Promise.resolve().then(t.bind(t,96167))},52987:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(71847).A)("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]])},67001:(e,s,t)=>{"use strict";t.d(s,{T:()=>i});var a=t(95155),l=t(12115),r=t(25016);let i=l.forwardRef((e,s)=>{let{className:t,...l}=e;return(0,a.jsx)("textarea",{className:(0,r.cn)("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",t),ref:s,...l})});i.displayName="Textarea"},86651:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(71847).A)("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]])},90420:(e,s,t)=>{"use strict";function a(e){if(e.featuredImage&&""!==e.featuredImage.trim())return e.featuredImage;if(e.image&&""!==e.image.trim())return e.image;if(e.additionalImages&&e.additionalImages.length>0){let s=e.additionalImages[0];if(s&&""!==s.trim())return s}if(e.relatedImages&&e.relatedImages.length>0){let s=e.relatedImages[0];if(s&&s.url&&""!==s.url.trim())return s.url}return"/placeholder.jpg"}function l(e){return e.imageAlt&&""!==e.imageAlt.trim()?e.imageAlt:e.title||"H\xecnh ảnh tin tức"}function r(e){return!!(e.featuredImage&&""!==e.featuredImage.trim()||e.image&&""!==e.image.trim()||e.additionalImages&&e.additionalImages.length>0||e.relatedImages&&e.relatedImages.length>0)}function i(e){let s=[];return e.featuredImage&&""!==e.featuredImage.trim()&&s.push(e.featuredImage),e.image&&""!==e.image.trim()&&e.image!==e.featuredImage&&s.push(e.image),e.additionalImages&&e.additionalImages.length>0&&e.additionalImages.forEach(e=>{e&&""!==e.trim()&&!s.includes(e)&&s.push(e)}),e.relatedImages&&e.relatedImages.length>0&&e.relatedImages.forEach(e=>{e.url&&""!==e.url.trim()&&!s.includes(e.url)&&s.push(e.url)}),s}function n(e){return new Promise((s,t)=>{let a=new FileReader;a.onload=()=>s(a.result),a.onerror=t,a.readAsDataURL(e)})}t.d(s,{CK:()=>a,JF:()=>l,Uj:()=>i,e_:()=>r,zM:()=>n})},96167:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>z});var a=t(95155),l=t(76203),r=t(18503),i=t(97003),n=t(33789),c=t(67001),d=t(15239),o=t(52619),m=t.n(o),x=t(39068),h=t(95707),g=t(16485),u=t(20508),p=t(52987),f=t(6132),j=t(86651),b=t(3166),v=t(14755),y=t(23664),N=t(21873),w=t(42529),A=t(18085),C=t(12115),k=t(11615),F=t(90420),M=t(20063),I=t(21789);function S(){var e,s;let t,c=(0,M.useSearchParams)(),[o,w]=(0,C.useState)(""),[A,S]=(0,C.useState)([]),[z,E]=(0,C.useState)(null),[L,T]=(0,C.useState)(!0),[_,W]=(0,C.useState)([]),[q,D]=(0,C.useState)(""),[$,H]=(0,C.useState)(1),[P]=(0,C.useState)(4),{t:R}=(0,k.B)();(0,C.useEffect)(()=>{(async()=>{try{T(!0);let e=await fetch("/api/news?status=published&limit=1000"),s=await e.json();if(s.success){let e=s.data;S(e);let t=e.find(e=>e.featured)||e[0]||null;E(t);let a=t?e.filter(e=>e.id!==t.id):e;S(a);let l=[...new Set(e.map(e=>
1e.category).filter(Boolean))];W(l)}}catch(e){console.error("Error fetching news:",e)}finally{T(!1)}})()},[]),(0,C.useEffect)(()=>{D(c.get("category")||"")},[c]);let V=e=>new Date(e).toLocaleDateString("vi-VN",{day:"numeric",month:"long",year:"numeric"}),J=e=>e?e.replace(/<(div|p|br|li|h[1-6])[^>]*>/gi," ").replace(/<[^>]*>/g,"").replace(/ /g," ").replace(/&/g,"&").replace(/"/g,'"').replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(/\s+/g," ").trim():"",K=e=>e?e.includes("@")?e.split("@")[0]:"lta2"===e||"admin"===e||"Admin"===e?"Admin LTA":e.length>20?e.substring(0,20)+"...":e:"Admin LTA",O=A.slice(0,3),U=q?A.filter(e=>e.category===q):A,Z=Math.ceil(U.length/P),G=($-1)*P,Q=G+P,X=U.slice(G,Q);(0,C.useEffect)(()=>{H(1)},[q]);let Y=e=>{H(e),window.scrollTo({top:0,behavior:"smooth"})};return(0,a.jsxs)("div",{className:"flex min-h-screen flex-col public-page",children:[(0,a.jsx)(l.Header,{}),(0,a.jsxs)("main",{className:"flex-1",children:[(0,a.jsxs)("section",{className:"bg-[#1a2332] py-20 relative overflow-hidden",children:[(0,a.jsx)("div",{className:"absolute inset-0 overflow-hidden",children:(0,a.jsx)(d.default,{src:"/slider-logista-4.jpg",alt:"Logistics transportation with containers and cargo",fill:!0,className:"object-cover opacity-25",priority:!0})}),(0,a.jsx)(I.W,{variant:"radial",theme:"dark",className:"opacity-70"}),(0,a.jsx)("div",{className:"absolute inset-0 bg-gradient-to-b from-[#1a2332]/60 via-trans
1parent to-[#1a2332]/80 pointer-events-none"}),(0,a.jsx)("div",{className:"container text-center text-white relative z-10",children:(0,a.jsxs)("div",{className:"mx-auto max-w-3xl flex flex-col items-center",children:[(0,a.jsxs)("div",{className:"flex items-center justify-center gap-4 mb-6",children:[(0,a.jsx)("div",{className:"h-[2px] w-16 sm:w-24 bg-gradient-to-r from-transparent to-[#4CAF50]/60 rounded-full"}),(0,a.jsx)(x.A,{className:"h-8 w-8 text-[#4CAF50] drop-shadow-[0_0_12px_rgba(76,175,80,0.8)] fill-[#4CAF50]/10 animate-pulse"}),(0,a.jsx)("div",{className:"h-[2px] w-16 sm:w-24 bg-gradient-to-l from-transparent to-[#4CAF50]/60 rounded-full"})]}),(0,a.jsx)("h1",{className:"text-5xl lg:text-6xl font-extrabold mb-6 tracking-tight",children:R("newsTitle")}),(0,a.jsx)("p",{className:"text-lg md:text-xl max-w-3xl mx-auto text-gray-200 leading-relaxed [text-wrap:balance]",children:R("newsSubtitle")})]})}),(0,a.jsx)("div",{className:"absolute bottom-0 left-0 w-full h-[1px] bg-gradient-to-r from-transparent via-[#4CAF50]/30 to-transparent"})]}),(0,a.jsxs)("section",{className:"relative py-12 overflow-hidden bg-gray-50",children:[(0,a.jsx)(I.W,{variant:"diagonal",theme:"light",className:"opacity-25"}),(0,a.jsx)("div",{className:"absolute top-[10%] right-[5%] pointer-events-none",style:{animation:"techFloat 7s ease-in-out infinite"},children:(0,a.jsx)(x.A,{className:"h-5 w-5 text-[#4CAF50]/[0.06]"})}),(0,a.jsx)("div",{className:"absolute bottom-[15%] left-[3%] pointer-events-none",style:{animation:"techFloat 6s ease-in-out 1s infinite"},children:(0,a.jsx)(h.A,{className:"h-4 w-4 text-[#4CAF50]/[0.06]"})}),(0,a.jsx)("div",{className:"absolute top-0 left-0 w-[300px] h-[300px] bg-[#4CAF50]/[0.02] rounded-full blur-[100px] pointer-events-none"}),(0,a.jsx)("div",{className:"absolute bottom-0 right-0 w-[250px] h-[250px] bg-blue-500/[0.02] rounded-full blur-[100px] pointer-events-none"}),(0,a.jsxs)("div",{className:"container py-0 mx-auto relative z-10",style:{maxWidth:"1200px"},children:[z&&A.length>0&&(0,a.jsxs)("div",{className:"bg-gradient-to-br from-[#4CAF50]/3 to-[#4CAF50]/8 rounded-xl p-6 mb-12 border border-[#4CAF50]/10",children:[(0,a.jsx)("div",{className:"inline-block bg-[#4CAF50] text-white text-xs font-medium px-3 py-1.5 rounded-full mb-4 shadow-sm",children:R("latestNews")}),(0,a.jsxs)("div",{className:"grid lg:grid-cols-2 gap-8",children:[(0,a.jsxs)("div",{className:"flex flex-col justify-center",children:[(0,a.jsx)("h2",{className:"text-xl lg:text-2xl font-semibold text-gray-900 hover:text-[#4CAF50] transition-colors duration-300 leading-tight mb-4 line-clamp-3",children:z.title}),(0,a.jsx)("p",{className:"text-gray-600 text-sm leading-relaxed mb-6 line-clamp-2",children:J(z.excerpt)}),(0,a.jsxs)("div",{className:"flex items-center gap-4 mb-6",children:[(0,a.jsxs)("div",{className:"flex items-center gap-1.5 text-xs text-gray-500 bg-white/60 px-2 py-1 rounded-md",children:[(0,a.jsx)(g.A,{className:"h-3 w-3 text-[#4CAF50]"}),(0,a.jsx)("span",{children:V(z.publishedAt||z.createdAt)})]}),(0,a.jsxs)("div",{className:"flex items-center gap-1.5 text-xs text-gray-500 bg-white/60 px-2 py-1 rounded-md",children:[(0,a.jsx)(u.A,{className:"h-3 w-3 text-[#4CAF50]"}),(0,a.jsx)("span",{children:K(z.author)})]})]}),(0,a.jsx)(m(),{href:"/tin-tuc/".concat(z.slug),children:(0,a.jsxs)(i.$,{className:"bg-[#4CAF50]/85 backdrop-blur-md border border-white/20 hover:bg-[#45a049] text-white px-6 py-2 text-sm font-medium rounded-lg shadow-md hover:shadow-lg transition-all duration-300 group",children:[R("readMore"),(0,a.jsx)(p.A,{className:"ml-2 h-4 w-4 transition-transform group-hover:translate-x-0.5"})]})})]}),(0,a.jsx)("div",{className:"flex items-center justify-center",children:(0,a.jsxs)("div",{className:"relative w-full overflow-hidden rounded-xl shadow-lg",style:{height:"calc(16rem * 1.2)"},children:[(0,a.jsx)(d.default,{src:(0,F.CK)(z),alt:(0,F.JF)(z),fill:!0,className:"object-cover"}),(0,a.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/20 via-transparent to-transparent"}),z.category&&(0,a.jsx)("div",{className:"absolute top-4 left-4 bg-white/90 backdrop-blur-sm text-[#4CAF50] text-xs px-3 py-1.5 rounded-full font-medium shadow-sm",children:z.category})]})})]})]}),(0,a.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-8",children:[(0,a.jsxs)("div",{className:"lg:col-span-2",children:[(0,a.jsx)("h2",{className:"text-2xl font-bold mb-6",children:R("latestNews")}),L?(0,a.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[1,2,3,4].map(e=>(0,a.jsxs)("div",{className:"bg-gray-100 rounded-lg overflow-hidden animate-pulse",children:[(0,a.jsx)("div",{className:"h-48 bg-gray-200"}),(0,a.jsxs)("div",{className:"p-4",children:[(0,a.jsx)("div",{className:"h-4 bg-gray-200 rounded mb-2"}),(0,a.jsx)("div",{className:"h-3 bg-gray-200 rounded w-1/2"})]})]},e))}):0===U.length?(0,a.jsxs)("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[(0,a.jsx)("div",{className:"w-16 h-16 bg-gray-100 rounded-full flex items-center justify-center mb-4",children:(0,a.jsx)(f.A,{className:"h-8 w-8 text-gray-400"})}),(0,a.jsx)("h3",{className:"text-lg font-medium text-gray-900 mb-2",children:"Chưa c\xf3 tin tức"}),(0,a.jsx)("p",{className:"text-gray-500 max-w-md",children:"Hiá»n tại chưa c\xf3 tin tức n\xe0o ÄÆ°á»£c ÄÄng. Vui l\xf2ng quay lại sau hoặc li\xean há» vá»i ch\xfang t\xf4i Äá» biết th\xeam th\xf4ng tin."})]}):(0,a.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:X.map(e=>(0,a.jsx)(m(),{href:"/tin-tuc/".concat(e.slug),children:(0,a.jsxs)("article",{className:"bg-white rounded-lg overflow-hidden group cursor-pointer shadow-md hover:shadow-lg transition-all duration-300 border border-gray-100 h-full flex flex-col",children:[(0,a.jsxs)("div",{className:"relative h-48 w-full overflow-hidden",children:[(0,a.jsx)(d.default,{src:(0,F.CK)(e),alt:(0,F.JF)(e),fill:!0,className:"object-cover group-hover:scale-105 transition-transform duration-300"}),(0,a.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/10 to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-300"}),e.category&&(0,a.jsx)("div",{className:"absolute top-3 left-3 bg-[#4CAF50] text-white text-xs px-2 py-1 rounded-md font-medium shadow-sm",children:e.category}),(0,a.jsx)("div",{className:"absolute bottom-3 right-3 bg-white/90 backdrop-blur-sm text-[#4CAF50] text-xs px-2 py-1 rounded-md font-medium opacity-0 group-hover:opacity-100 transition-all duration-300 transform translate-y-1 group-hover:translate-y-0",children:R("readMore")})]}),(0,a.jsxs)("div",{className:"p-4 flex flex-col flex-grow",children:[(0,a.jsx)("h3",{className:"font-semibold text-gray-900 mb-2 text-base leading-tight group-hover:text-[#4CAF50] transition-colors duration-300 line-clamp-2",children:e.title}),(0,a.jsx)("p",{className:"text-gray-600 mb-3 text-sm leading-relaxed line-clamp-2 flex-grow",children:J(e.excerpt)}),(0,a.jsxs)("div",{className:"flex items-center justify-between mt-auto",children:[(0,a.jsxs)("div",{className:"flex items-center gap-1.5 text-xs text-gray-500",children:[(0,a.jsx)(g.A,{className:"h-3 w-3 text-[#4CAF50]"}),(0,a.jsx)("span",{children:V(e.publishedAt||e.createdAt)})]}),(0,a.jsxs)("div",{className:"flex items-center gap-1.5 text-xs text-gray-500",children:[(0,a.jsx)(u.A,{className:"h-3 w-3 text-[#4CAF50]"}),(0,a.jsx)("span",{children:K(e.author)})]})]})]})]})},e.id))}),U.length>0&&(0,a.jsx)("div",{className:"flex justify-center mt-8",children:(0,a.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,a.jsxs)(i.$,{variant:"outline",size:"sm",onClick:()=>Y($-1),disabled:1===$,className:"flex items-center",children:[(0,a.jsx)(p.A,{className:"h-4 w-4 rotate-180 mr-1"}),R("previous")]}),(0,a.jsx)("div",{className:"flex items-center space-x-1",children:Array.from({length:Z},(e,s)=>s+1).map(e=>(0,a.jsx)(i.$,{variant:$===e?"default":"outline",size:"sm",onClick:()=>Y(e),className:"w-10 h-10 ".concat($===e?"bg-[#4CAF50]/85 backdrop-blur-md border border-[#4CAF50]/50 hover:bg-[#45a049] text-white":"hover:bg-gray-100"),children:e},e))}),(0,a.jsxs)(i.$,{variant:"outline",size:"sm",onClick:()=>Y($+1),disabled:$===Z,className:"flex items-center",children:[R("next"),(0,a.jsx)(p.A,{className:"h-4 w-4 ml-1"})]})]})}),U.length>0&&(0,a.jsx)("div",{className:"text-center mt-4 text-sm text-gray-500",children:(e=R("showingResults"),s={start:G+1,end:Math.min(Q,U.length),total:U.length}
1,t=e,Object.entries(s).forEach(e=>{let[s,a]=e;t=t.replace("{".concat(s,"}"),String(a))}),t)})]}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"bg-white rounded-lg p-6 shadow-sm border border-gray-100 mb-6",children:[(0,a.jsxs)("h3",{className:"text-xl font-semibold mb-4 flex items-center",children:[(0,a.jsx)(j.A,{className:"h-5 w-5 mr-2 text-[#4CAF50]"}),R("search")]}),(0,a.jsxs)("form",{onSubmit:e=>{e.preventDefault(),console.log("Searching for:",o)},className:"relative",children:[(0,a.jsxs)("div",{className:"flex",children:[(0,a.jsx)(n.p,{type:"text",placeholder:R("searchPlaceholder"),value:o,onChange:e=>w(e.target.value),className:"focus-visible:ring-[#4CAF50] focus-visible:border-[#4CAF50]"}),(0,a.jsxs)(i.$,{type:"submit",size:"icon",className:"ml-2 bg-[#4CAF50]/85 backdrop-blur-md border border-[#4CAF50]/50 text-white hover:bg-[#45a049]",children:[(0,a.jsx)(j.A,{className:"h-4 w-4"}),(0,a.jsx)("span",{className:"sr-only",children:R("searchButton")})]})]}),(0,a.jsxs)("div",{className:"mt-3 flex flex-wrap gap-2",children:[(0,a.jsx)("span",{className:"text-xs text-gray-500",children:R("popularKeywords")}),(0,a.jsx)(i.$,{variant:"link",size:"sm",className:"h-auto p-0 text-xs text-[#4CAF50]",onClick:()=>w(R("promotion")),children:R("promotion")}),(0,a.jsx)(i.$,{variant:"link",size:"sm",className:"h-auto p-0 text-xs text-[#4CAF50]",onClick:()=>w(R("deposit")),children:R("deposit")}),(0,a.jsx)(i.$,{variant:"link",size:"sm",className:"h-auto p-0 text-xs text-[#4CAF50]",onClick:()=>w(R("application")),children:R("application")})]})]})]}),(0,a.jsxs)("div",{className:"bg-white rounded-lg p-6 shadow-sm border border-gray-100 mb-6",children:[(0,a.jsxs)("h3",{className:"text-xl font-semibold mb-4 flex items-center",children:[(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5 mr-2 text-[#4CAF50]",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"})}),R("categories")]}),(0,a.jsxs)("ul",{className:"space-y-2",children:[(0,a.jsx)("li",{children:(0,a.jsxs)(m(),{href:"/tin-tuc",className:"flex items-center justify-between text-gray-700 hover:text-[#4CAF50] transition-colors duration-200 font-medium",children:[(0,a.jsx)("span",{children:R("all")}),(0,a.jsx)("span",{className:"text-xs text-gray-400",children:A.length})]})}),_.length>0?_.map(e=>(0,a.jsx)("li",{children:(0,a.jsxs)(m(),{href:"/tin-tuc?category=".concat(encodeURIComponent(e)),className:"flex items-center justify-between text-gray-700 hover:text-[#4CAF50] transition-colors duration-200",children:[(0,a.jsx)("span",{children:e}),(0,a.jsx)("span",{className:"text-xs text-gray-400",children:A.filter(s=>s.category===e).length})]})},e)):(0,a.jsx)("li",{className:"text-gray-500 text-sm",children:"Chưa c\xf3 danh mục"})]})]}),(0,a.jsxs)("div",{className:"bg-white rounded-lg p-6 shadow-sm border border-gray-100 mb-6",children:[(0,a.jsxs)("h3",{className:"text-xl font-semibold mb-4 flex items-center",children:[(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5 mr-2 text-[#4CAF50]",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"})}),R("recentPosts")]}),(0,a.jsx)("ul",{className:"space-y-4",children:O.length>0?O.map(e=>(0,a.jsxs)("li",{className:"flex gap-3 group",children:[(0,a.jsx)("div",{className:"relative h-16 w-16 flex-shrink-0 overflow-hidden rounded",children:(0,a.jsx)(d.default,{src:(0,F.CK)(e),alt:(0,F.JF)(e),fill:!0,className:"object-cover group-hover:scale-105 transition-transform duration-300"})}),(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)(m(),{href:"/tin-tuc/".concat(e.slug),children:(0,a.jsx)("h4",{className:"text-sm font-medium text-gray-900 group-hover:text-[#4CAF50] transition-colors duration-200 line-clamp-2",children:e.title})}),(0,a.jsx)("p",{className:"text-xs text-gray-500 mt-1",children:V(e.publishedAt||e.createdAt)})]})]},e.id)):(0,a.jsx)("li",{className:"text-gray-500 text-sm text-center py-4",children:"Chưa c\xf3 tin tức gần Ä\xe2y"})})]})]})]})]})]})]}),(0,a.jsxs)("section",{id:"contact",className:"relative bg-white py-16 overflow-hidden",children:[(0,a.jsx)(I.W,{variant:"matrix",theme:"light",className:"opacity-30"}),(0,a.jsxs)("svg",{className:"absolute inset-0 w-full h-full pointer-events-none opacity-[0.03]",viewBox:"0 0 800 600",fill:"none",children:[(0,a.jsx)("path",{d:"M100 100 L300 200 L500 150 L700 250",stroke:"#4CAF50",strokeWidth:"1",strokeDasharray:"6 4"}),(0,a.jsx)("path",{d:"M50 400 L250 350 L450 420 L650 380 L800 450",stroke:"#4CAF50",strokeWidth:"1",strokeDasharray:"6 4"}),(0,a.jsx)("circle",{cx:"300",cy:"200",r:"5",fill:"#4CAF50",opacity:"0.2"}),(0,a.jsx)("circle",{cx:"500",cy:"150",r:"4",fill:"#4CAF50",opacity:"0.3"}),(0,a.jsx)("circle",{cx:"450",cy:"420",r:"5",fill:"#4CAF50",opacity:"0.2"})]}),(0,a.jsx)("div",{className:"absolute top-[15%] left-[3%] pointer-events-none",style:{animation:"techFloat 7s ease-in-out infinite"},children:(0,a.jsx)(b.A,{className:"h-4 w-4 text-[#4CAF50]/[0.06]"})}),(0,a.jsx)("div",{className:"absolute bottom-[20%] right-[5%] pointer-events-none",style:{animation:"techFloat 6s ease-in-out 1.5s infinite"},children:(0,a.jsx)(v.A,{className:"h-5 w-5 text-[#4CAF50]/[0.06]"})}),(0,a.jsx)("div",{className:"absolute top-0 right-0 w-[400px] h-[400px] bg-[#4CAF50]/[0.02] rounded-full blur-[100px] pointer-events-none"}),(0,a.jsx)("div",{className:"absolute bottom-0 left-0 w-[300px] h-[300px] bg-blue-500/[0.02] rounded-full blur-[100px] pointer-events-none"}),(0,a.jsxs)("div",{className:"container mx-auto relative z-10",style:{maxWidth:"1200px"},children:[(0,a.jsxs)("div",{className:"mx-auto max-w-3xl flex flex-col items-center text-center mb-12",children:[(0,a.jsxs)("div",{className:"flex items-center justify-center gap-4 mb-5",children:[(0,a.jsx)("div",{className:"h-[2px] w-12 sm:w-20 bg-gradient-to-r from-transparent to-[#4CAF50]/60 rounded-full"}),(0,a.jsx)(v.A,{className:"h-6 w-6 text-[#4CAF50] drop-shadow-[0_0_8px_rgba(76,175,80,0.8)] fill-[#4CAF50]/20"}),(0,a.jsx)("div",{className:"h-[2px] w-12 sm:w-20 bg-gradient-to-l from-transparent to-[#4CAF50]/60 rounded-full"})]}),(0,a.jsx)("h2",{className:"text-4xl font-extrabold tracking-tight text-gray-900 sm:text-5xl mb-6",children:R("contactUs")}),(0,a.jsx)("p",{className:"text-lg text-gray-600 leading-relaxed max-w-2xl mx-auto [text-wrap:balance]",children:R("contactDescription")})]}),(0,a.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8",children:[(0,a.jsxs)("div",{className:"rounded-2xl bg-white p-8 shadow-sm border border-gray-100",children:[(0,a.jsx)("h3",{className:"text-xl font-semibold text-gray-900 mb-6",children:R("sendMessage")}),(0,a.jsx)(B,{})]}),(0,a.jsxs)("div",{className:"rounded-2xl bg-white p-8 shadow-sm border border-gray-100",children:[(0,a.jsx)("h3",{className:"text-xl font-semibold text-gray-900 mb-6",children:R("contactInfo")}),(0,a.jsxs)("div",{className:"space-y-6",children:[(0,a.jsxs)("div",{className:"flex items-start gap-4",children:[(0,a.jsx)("div",{className:"flex h-10 w-10 flex-shrink-0 items-center justify-center rounded-full bg-[#4CAF50]/10",children:(0,a.jsx)(y.A,{className:"h-5 w-5 text-[#4CAF50]"})}),(0,a.jsxs)("div",{className:"min-w-0",children:[(0,a.jsx)("div",{className:"font-medium text-gray-900",children:R("email")}),(0,a.jsx)("div",{className:"mt-1 text-gray-600 break-words",children:"[email protected]"})]})]}),(0,a.jsxs)("div",{className:"flex items-start gap-4",children:[(0,a.jsx)("div",{className:"flex h-10 w-10 flex-shrink-0 items-center justify-center rounded-full bg-[#4CAF50]/10",children:(0,a.jsx)(N.A,{className:"h-5 w-5 text-[#4CAF50]"})}),(0,a.jsxs)("div",{className:"min-w-0",children:[(0,a.jsx)("div",{className:"font-medium text-gray-900",children:R("address")}),(0,a.jsx)("div",{className:"mt-1 text-gray-600 break-words",children:R("addressText")})]})]})]}),(0,a.jsx)("div",{className:"mt-8",children:(0,a.jsx)("div",{className:"aspect-video overflow-hidden rounded-lg",children:(0,a.jsx)("iframe",{src:"https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3918.4648712934485!2d106.7497269!3d10.8070702!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x3175266a1a196d79%3A0x3ce72ceea3523a9f!2s2A%20%C4%90%C6%B0%E1%BB%9Dng%2
10S%E1%BB%91%205%2C%20An%20Ph%C3%BA%2C%20Th%E1%BB%A7%20%C4%90%E1%BB%A9c%2C%20H%E1%BB%93%20Ch%C3%AD%20Minh%2C%20Vi%E1%BB%87t%20Nam!5e0!3m2!1sen!2s!4v1649299914899!5m2!1sen!2s",width:"600",height:"450",style:{border:0},allowFullScreen:!0,loading:"lazy",referrerPolicy:"no-referrer-when-downgrade",className:"h-full w-full"})})})]})]})]})]}),(0,a.jsx)(r.Footer,{})]})}function B(){let{t:e}=(0,k.B)(),[s,t]=(0,C.useState)({name:"",email:"",company:"",message:""}),[l,r]=(0,C.useState)(!1),[d,o]=(0,C.useState)("idle"),[m,x]=(0,C.useState)("");(0,C.useEffect)(()=>{if("success"===d){let e=setTimeout(()=>{o("idle"),x("")},2e3);return()=>clearTimeout(e)}},[d]);let h=e=>{let{name:s,value:a}=e.target;t(e=>({...e,[s]:a}))},g=async e=>{if(e.preventDefault(),o("idle"),x(""),!s.name.trim()||!s.email.trim()||!s.message.trim()){o("error"),x("Vui l\xf2ng Äiá»n Äầy Äá»§ th\xf4ng tin bắt buá»c");return}if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(s.email)){o("error"),x("Email kh\xf4ng hợp lá»");return}r(!0);try{let e=await fetch("/api/contact",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s)}),a=await e.json();a.success?(o("success"),x(a.message),t({name:"",email:"",company:"",message:""})):(o("error"),x(a.error||"C\xf3 lá»i xảy ra khi gá»i th\xf4ng tin li\xean há»"))}catch(e){o("error"),x("C\xf3 lá»i xảy ra khi gá»i th\xf4ng tin li\xean há». Vui l\xf2ng thá» lại sau.")}finally{r(!1)}};return(0,a.jsxs)(a.Fragment,{children:["idle"!==d&&(0,a.jsxs)("div",{className:"mb-6 p-4 rounded-lg flex items-center gap-3 ".concat("success"===d?"bg-green-50 text-green-800 border border-green-200":"bg-red-50 text-red-800 border border-red-200"),children:["success"===d?(0,a.jsx)(w.A,{className:"h-5 w-5 text-green-600"}):(0,a.jsx)(f.A,{className:"h-5 w-5 text-red-600"}),(0,a.jsx)("span",{className:"text-sm font-medium",children:m}),(0,a.jsx)("button",{onClick:()=>{o("idle"),x("")},className:"ml-auto text-sm underline hover:no-underline",children:"Ä\xf3ng"})]}),(0,a.jsxs)("form",{onSubmit:g,className:"space-y-6",children:[(0,a.jsxs)("div",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2",children:[(0,a.jsxs)("div",{children:[(0,a.jsxs)("label",{htmlFor:"news-name",className:"block text-sm font-medium text-gray-700",children:[e("fullName")," ",(0,a.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,a.jsx)(n.p,{id:"news-name",name:"name",type:"text",className:"mt-1",value:s.name,onChange:h,required:!0})]}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("label",{htmlFor:"news-email",className:"block text-sm font-medium text-gray-700",children:[e("email")," ",(0,a.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,a.jsx)(n.p,{id:"news-email",name:"email",type:"email",className:"mt-1",value:s.email,onChange:h,required:!0})]})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{htmlFor:"news-company",className:"block text-sm font-medium text-gray-700",children:e("company")}),(0,a.jsx)(n.p,{id:"news-company",name:"company",type:"text",className:"mt-1",value:s.company,onChange:h})]}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("label",{htmlFor:"news-message",className:"block text-sm font-medium text-gray-700",children:[e("message")," ",(0,a.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,a.jsx)(c.T,{id:"news-message",name:"message",rows:4,className:"mt-1",value:s.message,onChange:h,required:!0})]}),(0,a.jsx)(i.$,{type:"submit",className:"w-full group bg-[#4CAF50]/85 backdrop-blur-md border border-white/20 text-white hover:bg-[#45a049] disabled:opacity-50 disabled:cursor-not-allowed",disabled:l,children:l?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"animate-spin rounded-full h-4 w-4 border-b-2 border-white mr-2"}),"Äang gá»i..."]}):(0,a.jsxs)(a.Fragment,{children:[e("sendButton"),(0,a.jsx)(A.A,{className:"ml-2 h-4 w-4 transition-transform group-hover:translate-x-1"})]})})]})]})}function z(){return(0,a.jsx)(C.Suspense,{fallback:(0,a.jsxs)("div",{className:"flex min-h-screen flex-col public-page",children:[(0,a.jsx)(l.Header,{}),(0,a.jsx)("main",{className:"flex-1",children:(0,a.jsx)("div",{className:"container py-12 mx-auto",style:{maxWidth:"1200px"},children:(0,a.jsxs)("div",{className:"animate-pulse",children:[(0,a.jsx)("div",{className:"h-8 bg-gray-200 rounded mb-4"}),(0,a.jsx)("div",{className:"h-4 bg-gray-200 rounded mb-8"}),(0,a.jsx)("div",{className:"h-96 bg-gray-200 rounded mb-8"})]})})}),(0,a.jsx)(r.Footer,{})]}),children:(0,a.jsx)(S,{})})}}},e=>{e.O(0,[5707,297,6948,60,8998,5239,5975,7513,5881,8441,1255,7358],()=>e(e.s=50680)),_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.