1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,22428,8862,e=>{"use strict";var t=e.i(70476);e.s(["Section",()=>t.default],22428);var s=e.i(83118);e.s(["Typography",()=>s.default],8862)},18679,(e,t,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0}),Object.defineProperty(s,"warnOnce",{enumerable:!0,get:function(){return a}});let a=e=>{}},11625,4280,e=>{"use strict";var t=e.i(42548),s=e.i(70119),a=e.i(56691),l=e.i(76195);function r({children:e,showBanner:r=!1,bannerProps:i}){return(0,t.jsxs)("div",{className:"min-h-screen",children:[(0,t.jsx)(s.default,{}),r&&(0,t.jsx)(l.default,{...i}),(0,t.jsx)("main",{children:e}),(0,t.jsx)(a.default,{})]})}e.s([],11625),e.s(["MainLayout",()=>r],4280)},4121,7284,5050,59887,76525,70476,83118,46788,43161,e=>{"use strict";var t=e.i(42548);function s(){for(var e,t,s=0,a="",l=arguments.length;s<l;s++)(e=arguments[s])&&(t=function e(t){var s,a,l="";if("string"==typeof t||"number"==typeof t)l+=t;else if("object"==typeof t)if(Array.isArray(t)){var r=t.length;for(s=0;s<r;s++)t[s]&&(a=e(t[s]))&&(l&&(l+=" "),l+=a)}else for(a in t)t[a]&&(l&&(l+=" "),l+=a);return l}(e))&&(a&&(a+=" "),a+=t);return a}function a({children:e,variant:a="default",size:l="md",hover:r=!0,className:i}){return(0,t.jsx)("div",{className:s("rounded-2xl transition-all duration-300",{default:"bg-white shadow-lg",gradient:"bg-gradient-to-br from-teal-50 to-teal-100",highlight:"bg-gradient-to-r from-teal-600 to-blue-600 text-white",glass:"bg-white/80 backdrop-blur-sm shadow-xl border border-white/20"}[a],{sm:"p-4",md:"p-6",lg:"p-8"}[l],r?"hover:shadow-xl hover:-translate-y-1":"",i),children:e})}function l({children:e,cols:a=3,gap:l=8,responsive:r=!0,className:i}){let n=r?`grid-cols-1 md:grid-cols-${a}`:`grid-cols-${a}`,c=`gap-${l}`;return(0,t.jsx)("div",{className:s("grid",n,c,i),children:e})}function r({children:e,variant:a="primary",size:l="md",icon:r,iconPosition:i="left",loading:n=!1,fullWidth:c=!1,className:o,disabled:d,...x}){let m=r?"left"===i?"space-x-2":"space-x-reverse space-x-2":"",h=d||n?"opacity-50 cursor-not-allowed":"";return(0,t.jsx)("button",{className:s("inline-flex items-center justify-center font-medium rounded-lg transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2",{primary:"bg-teal-600 text-white hover:bg-teal-700 focus:ring-teal-500",secondary:"bg-gray-600 text-white hover:bg-gray-700 focus:ring-gray-500",outline:"border-2 border-teal-600 text-teal-600 hover:bg-teal-600 hover:text-white focus:ring-teal-500",ghost:"text-teal-600 hover:bg-teal-50 focus:ring-teal-500",danger:"bg-red-600 text-white hover:bg-red-700 focus:ring-red-500"}[a],{sm:"px-3 py-2 text-sm",md:"px-4 py-2",lg:"px-6 py-3 text-lg"}[l],m,c?"w-full":"",h,o),disabled:d||n,...x,children:n?(0,t.jsx)("i",{className:"ri-loader-4-line animate-spin"}):(0,t.jsxs)(t.Fragment,{children:[r&&"left"===i&&r,e,r&&"right"===i&&r]})})}function i({children:e,variant:a="default",padding:l="lg",maxWidth:r="6xl",className:i}){return(0,t.jsx)("section",{className:s("w-full",{default:"bg-white",gradient:"bg-gradient-to-br from-teal-50 to-blue-50",dark:"bg-gray-900 text-white"}[a],{sm:"py-8",md:"py-12",lg:"py-16",xl:"py-24"}[l],i),children:(0,t.jsx)("div",{className:s("mx-auto px-4 sm:px-6 lg:px-8",{sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-xl","2xl":"max-w-2xl","4xl":"max-w-4xl","6xl":"max-w-6xl",full:"max-w-full"}[r]),children:e})})}function n({children:e,variant:a="body",as:l,color:r="default",align:i="left",weight:n,className:c}){let o={h1:{element:"h1",classes:"text-3xl md:text-4xl font-bold leading-tight"},h2:{element:"h2",classes:"text-2xl md:text-3xl font-bold leading-tight"},h3:{element:"h3",classes:"text-xl md:text-2xl font-semibold leading-tight"},h4:{element:"h4",classes:"text-lg md:text-xl font-semibold leading-tight"},h5:{element:"h5",classes:"text-base md:text-lg font-medium leading-tight"},h6:{element:"h6",classes:"text-sm md:text-base font-medium leading-tight"},body:{element:"p",classes:"text-sm md:text-base leading-relaxed"},caption:{element:"span",classes:"text-xs md:text-sm leading-normal"},subtitle:{element:"p",classes:"text-base md:text-lg leading-relaxed"}},d=l||o[a].element;return(0,t.jsx)(d,{className:s(o[a].classes,{default:"text-gray-900",primary:"text-teal-600",
1secondary:"text-gray-600",muted:"text-gray-500",white:"text-white"}[r],{left:"text-left",center:"text-center",right:"text-right"}[i],n?({normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold"})[n]:"",c),children:e})}function c({icon:e,title:l,description:r,variant:i="default",iconColor:c="text-teal-600",href:o,onClick:d,className:x}){let m=(0,t.jsx)(a,{variant:i,className:s("text-center",x),children:(0,t.jsxs)("div",{className:"flex flex-col items-center space-y-4",children:[(0,t.jsx)("div",{className:s("w-16 h-16 flex items-center justify-center rounded-full","highlight"===i?"bg-white/20":"bg-teal-50"),children:(0,t.jsx)("i",{className:s(e,"text-2xl",c)})}),(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)(n,{variant:"h4",color:"highlight"===i?"white":"default",className:"font-bold",children:l}),r&&(0,t.jsx)(n,{variant:"body",color:"highlight"===i?"white":"secondary",className:"mt-2",children:r})]})]})});return o?(0,t.jsx)("a",{href:o,className:"block transition-transform hover:scale-105",children:m}):d?(0,t.jsx)("button",{onClick:d,className:"block w-full transition-transform hover:scale-105",children:m}):m}function o({title:e,date:l,category:r,excerpt:i,image:c,href:o,featured:d=!1,className:x}){let m=(0,t.jsxs)(a,{variant:"default",hover:!0,className:s("overflow-hidden",x),children:[c&&(0,t.jsx)("div",{className:"aspect-video overflow-hidden rounded-t-2xl -m-6 mb-4",children:(0,t.jsx)("img",{src:c,alt:e,className:"w-full h-full object-cover transition-transform hover:scale-105"})}),(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("span",{className:"px-3 py-1 rounded-full text-xs font-medium bg-teal-100 text-teal-700",children:r}),(0,t.jsx)(n,{variant:"caption",color:"secondary",children:l})]}),(0,t.jsx)(n,{variant:"h5",color:"default",className:"line-clamp-2",children:e}),i&&(0,t.jsx)(n,{variant:"body",color:"secondary",className:"line-clamp-3",children:i}),o&&(0,t.jsxs)("div",{className:"flex items-center space-x-2 text-sm font-medium text-teal-600",children:[(0,t.jsx)("span",{children:"é±è®æ´å¤"}),(0,t.jsx)("i",{className:"ri-arrow-right-line"})]})]})]});return o?(0,t.jsx)("a",{href:o,className:"block transition-transform hover:scale-105",children:m}):m}e.s(["clsx",()=>s],7284),e.s(["default",()=>a],5050),e.s(["default",()=>l],59887),e.s(["default",()=>r],76525),e.s(["default",()=>i],70476),e.s(["default",()=>n],83118),e.s(["default",()=>c],46788),e.s(["default",()=>o],43161),e.s([],4121)},39210,e=>{"use strict";var t=e.i(59887);e.s(["Grid",()=>t.default])},15765,e=>{"use strict";var t=e.i(76525);e.s(["Button",()=>t.default])},35278,e=>{"use strict";var t=e.i(42548);e.i(11625);var s=e.i(4280),a=e.i(9039),l=e.i(5614);e.i(4121);var r=e.i(22428),i=e.i(8862),n=e.i(39210),c=e.i(15765),o=e.i(43161),o=o;function d(){let{t:e,language:s}=(0,a.useLanguage)(),d=["all","company","product","finance","research","regulation","events"],[x,m]=(0,l.useState)("all"),h=(0,l.useMemo)(()=>d.map(t=>({key:t,label:e(`categories.${t}`,"news")})),[e]),[u,g]=(0,l.useState)([]),[f,p]=(0,l.useState)([]),[b,j]=(0,l.useState)(1),[y,v]=(0,l.useState)(1),[w,N]=(0,l.useState)(!1);(0,l.useEffect)(()=>{console.log("[Debug] Reset - lang:",s,"category:",x),g([]),p([]),j(1),v(1),N(!1)},[s,x]),(0,l.useEffect)(()=>{let e=!1;return(async()=>{try{let t=new URLSearchParams({lang:s,important:"1",page:"1",pageSize:"3"});"all"!==x&&t.set("category",x);let a=await fetch(`/api/public/news?${t.toString()}`,{cache:"no-store"}),l=await a.json();e||p(l.items)}catch(t){e||p([])}})(),()=>{e=!0}},[s,x]),(0,l.useEffect)(()=>{let e=!1;return(async()=>{if(console.log("[Debug] Loading page:",b,"lang:",s,"category:",x),w)return console.log("[Debug] Skipped - already loading");N(!0);try{let t=new URLSearchParams({lang:s,page:String(b),pageSize:String(10)});"all"!==x&&t.set("category",x);let a=`/api/public/news?${t.toString()}`;console.log("[Debug] Fetching:",a);let l=await fetch(a,{cache:"no-store"}),r=await l.json();console.log("[Debug] Loaded:",r.items.length,"items, total:",r.total),e||(g(r.items),v(Math.ceil(r.total/10)))}catch(t){console.error("[Debug] Error:",t),e||(g([]),v(1))}finally{e||N(!1)}})(),()=>{e=!0}},[s,x,b]);let S=t=>e(`categories.${t}`,"news")||t,k=e=>{e>=1&&e<=y&&e!==b&&(j(e),window.scrollTo({top:0,behavior:"smooth"}))};return(0,t.jsx)("div",{className:"min-h-screen bg-gray-50",children:(0,t.jsxs)(r.Section,{padding:"xl",children:[(0,t.jsxs)("div",{className:"mb-16",children:[(0,t.jsx)(i.Typography,{variant:"h3",className:"mb-8",children:e("labels.featured","news")}),(0,t.jsx)(n.Grid,{cols:3,children:f.map(e=>(0,t.jsx)(o.default,{title:e.title,category:S(e.category),date:e.date,image:e.image,featured:e.isImportant},e.id))})]}),(0,t.jsx)("div",{className:"mb-8",children:(0,t.jsx)("div",{className:"flex flex-wrap gap-3",children:h.map(({key:e,label:s})=>(0,t.jsx)(c.Button,{onClick:()=>m(e),variant:x===e?"primary":"outline",size:"sm",className:"whitespace-nowrap",children:s},e))})}),w?(0,t.jsxs)("div",{className:"text-center text-gray-500 py-12",children:[(0,t.jsx)("div",{className:"inline-block animate-spin rounded-full h-8 w-8 border-b-2 border-teal-600"}),(0,t.jsx)("p",{className:"mt-4",children:"è¼å
¥ä¸..."})]}):u.length>0?(0,t.jsx)("div",{className:"space-y-6",children:u.map(s=>(0,t.jsx)("div",{className:"bg-white rounded-2xl shadow-lg overflow-hidden hover:shadow-xl transition-shadow cursor-pointer",children:(0,t.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:[(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("img",{src:s.image,alt:s.title,className:"w-full h-48 md:h-full object-cover object-top"}),s.isImportant&&(0,t.jsx)("div",{className:"absolute top-4 left-4",children:(0,t.jsx)("span",{className:"bg-red-600 text-white px-3 py-1 rounded-full text-sm font-medium",children:e("labels.important","news")})})]}),(0,t.jsxs)("div",{className:"md:col-span-2 p-6",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,t.jsx)("span",{className:"text-teal-600 text-sm font-medium",children:S(s.category)}),(0,t.jsx)("span",{className:"text-gray-500 text-sm",children:s.date})]}),(0,t.jsx)("h3",{className:"text-xl font-semibold text-gray-900 mb-3",children:s.title}),(0,t.jsx)("p",{className:"text-gray-600 leading-relaxed mb-4",children:s.summary}),(0,t.jsx)("div",{className:"flex flex-wrap gap-2 mb-4",children:s.tags.map((e,s)=>(0,t.jsxs)("span",{className:"text-xs bg-gray-100 text-gray-700 px-2 py-1 rounded-full",children:["#",e]},s))}),(0,t.jsxs)("div",{className:"flex items-center space-x-4 text-gray-500",children:[(0,t.jsx)("button",{className:"hover:text-teal-600 transition-colors cursor-pointer",children:(0,t.jsx)("i",{className:"ri-share-line"})}),(0,t.jsx)("button",{className:"hover:text-teal-600 transition-colors cursor-pointer",children:(0,t.jsx)("i",{className:"ri-bookmark-line"})})]})]})]})},s.id))}):(0,t.jsx)("div",{className:"text-center text-gray-500 py-12",children:(0,t.jsx)("p",{children:"ç®åæ²ææ°è"})}),y>1&&!w&&(0,t.jsxs)("div",{className:"mt-12 flex items-center justify-center space-x-2",children:[(0,t.jsx)(c.Button,{variant:"outline",size:"sm",onClick:()=>k(b-1),disabled:1===b,className:1===b?"opacity-50 cursor-not-allowed":"",children:(0,t.jsx)("i",{className:"ri-arrow-left-line"})}),(()=>{let e=[];
1if(y<=5)for(let t=1;t<=y;t++)e.push(t);else{e.push(1);let t=Math.max(2,b-1),s=Math.min(y-1,b+1);b<=2?s=4:b>=y-1&&(t=y-3),t>2&&e.push("...");for(let a=t;a<=s;a++)e.push(a);s<y-1&&e.push("..."),e.push(y)}return e})().map((e,s)=>"..."===e?(0,t.jsx)("span",{className:"px-3 py-1 text-gray-400",children:"..."},`ellipsis-${s}`):(0,t.jsx)(c.Button,{variant:b===e?"primary":"outline",size:"sm",onClick:()=>k(e),children:e},e)),(0,t.jsx)(c.Button,{variant:"outline",size:"sm",onClick:()=>k(b+1),disabled:b===y,className:b===y?"opacity-50 cursor-not-allowed":"",children:(0,t.jsx)("i",{className:"ri-arrow-right-line"})})]}),(0,t.jsxs)("div",{className:"mt-20 bg-gradient-to-r from-teal-600 to-blue-600 rounded-2xl p-8 text-center text-white",children:[(0,t.jsx)("h2",{className:"text-2xl font-bold mb-4",children:e("subscription.title","news")}),(0,t.jsx)("p",{className:"text-teal-100 mb-6",children:e("subscription.description","news")}),(0,t.jsx)("div",{className:"max-w-md mx-auto",children:(0,t.jsxs)("div",{className:"flex space-x-3",children:[(0,t.jsx)("input",{type:"email",placeholder:e("subscription.email_placeholder","news"),className:"flex-1 px-4 py-3 rounded-lg text-gray-900 focus:outline-none focus:ring-2 focus:ring-white/50"}),(0,t.jsx)("button",{className:"bg-white/20 hover:bg-white/30 px-6 py-3 rounded-lg font-medium transition-colors whitespace-nowrap cursor-pointer",children:e("subscription.subscribe_button","news")})]})})]})]})})}function x(){let{t:e}=(0,a.useLanguage)();return(0,t.jsx)(s.MainLayout,{showBanner:!0,bannerProps:{children:(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("h1",{className:"text-4xl font-bold bg-gradient-to-r from-teal-600 to-blue-600 bg-clip-text text-transparent mb-6",children:e("banner.title","news")}),(0,t.jsx)("p",{className:"text-lg md:text-xl text-gray-600 max-w-3xl mx-auto leading-relaxed",children:e("banner.description","news")})]})},children:(0,t.jsx)(d,{})})}e.s(["default",()=>x],35278)}]);
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.