1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5230],{95085:function(e,t,l){"use strict";l.d(t,{e:function(){return h}});var a=l(30748),o=l(68137),n=l(64321),i=l(53882),r=l(60103),s=l(36341),d=l(89786),u=l(74193),v=l(90275),c=l(56858),g=l(11788),m=l(52262);let p=(0,u.z)("div")({name:"EmptyContainer",class:"eo8nzhl",propsAsIs:!1}),E=(0,u.z)("div")({name:"TagContainer",class:"t1ya3db2",propsAsIs:!1}),h=e=>{var t;let{data:l,style:r,gtmEvent:d,isPortfolios:u=!1}=e,v=(0,g.Z)("(min-width:".concat(m.y.DESKTOP,"px)"),!0),{title:p,newsId:h,publishAt:P,categoryName:T,coverSrc:y,keyword:_,isCategoryHeadline:f,quotes:N}=l,A=null==y?void 0:null===(t=y.s)||void 0===t?void 0:t.src;return v?(0,a.jsx)(i.ZP.CategoryNewsList,{newsId:h,title:p,publishAt:P,breadcrumbs:T,coverSrc:A,Tags:(0,a.jsxs)(E,{children:[(0,a.jsx)(n.Yj,{tags:_,gtmEventNewsTagType:o.NewsTagGtmEventType.NEWS_LIST,gtmEventQuoteType:n.qS.NEWS_LIST,otherProduct:N,isVariablesFontSize:!0}),(0,a.jsx)(s.default,{newsId:h,gtmEvent:u?{[c.Pj.EVENT_NAME]:c.PL.FAVORITE,[c.Pj.SECTION]:"News_Category_æç追蹤",[c.Pj.CLICK_ITEM]:"èªé¸è¡æ°è_".concat(h,"_").concat(p)}:{[c.Pj.EVENT_NAME]:c.PL.FAVORITE,[c.Pj.SECTION]:"News_Category",[c.Pj.CLICK_ITEM]:"".concat(h,"_").concat(p)}})]}),isHeadline:f,enableShowHeadlineMark:!0,gtmEventType:i.Hi.NEWS_CATEGORY,style:r,gtmEvent:d,isPortfolios:u}):(0,a.jsx)(i.ZP.AsideNews,{newsId:h,title:p,publishAt:P,categoryName:T,coverSrc:A,Tags:(0,a.jsxs)(E,{children:[(0,a.jsx)(n.Yj,{tags:_,gtmEventNewsTagType:o.NewsTagGtmEventType.NEWS_LIST,gtmEventQuoteType:n.qS.NEWS_LIST,otherProduct:N,isVariablesFontSize:!0}),(0,a.jsx)(s.default,{newsId:h,gtmEvent:u?{[c.Pj.EVENT_NAME]:c.PL.FAVORITE,[c.Pj.SECTION]:"News_Category_æç追蹤",[c.Pj.CLICK_ITEM]:"èªé¸è¡æ°è_".concat(h,"_").concat(p)}:{[c.Pj.EVENT_NAME]:c.PL.FAVORITE,[c.Pj.SECTION]:"News_Category",[c.Pj.CLICK_ITEM]:"".concat(h,"_").concat(p)}})]}),gtmEvent:d,coverWidth:85,coverHeight:60})};t.Z=e=>{let{index:t,data:l,style:o,setSize:n}=e;return((0,v.useEffect)(()=>{null==n||n(t,d.Z.DesktopNews)},[n]),l&&l[t])?(0,a.jsx)("div",{style:o,children:(0,a.jsx)(h,{data:l[t]})},"news-card-".concat(t)):(0,a.jsx)(p,{style:o,children:(0,a.jsx)(r.default.NewsSkeleton,{})})},l(95213)},84983:function(e,t,l){"use strict";var a=l(38139),o=l(38900),n=l(73793),i=l(33174),r=l(10340),s=l(59941),d=l(97253),u=l(13055),v=l(89464),c=l(25032),g=l(89786),m=l(84920),p=l(24123),E=l(11684),h=l(67906);let P={data:[],total:0,currentPage:1,lastPage:1,perPage:20,from:1,to:1},T=async e=>{let{pageParam:t=1,category:l,startAt:n,endAt:r,showOutsource:s,isCategoryHeadline:d}=e;if(l===u.p.ALL)return y({pageParam:t,startAt:n,endAt:r});try{var v,c,g,m,p,E,h;let e={limit:30,page:t,startAt:n,endAt:r,isCategoryHeadline:d};l&&(e=(0,o._)((0,a._)({},e),{categories:l,showOutsource:s}));let u=await (0,i.t)(e);return{data:(null==u?void 0:null===(v=u.items)||void 0===v?void 0:v.data)||[],total:(null==u?void 0:null===(c=u.items)||void 0===c?void 0:c.total)||0,currentPage:(null==u?void 0:null===(g=u.items)||void 0===g?void 0:g.current_page)||1,lastPage:(null==u?void 0:null===(m=u.items)||void 0===m?void 0:m.last_page)||1,perPage:(null==u?void 0:null===(p=u.items)||void 0===p?void 0:p.per_page)||20,from:(null==u?void 0:null===(E=u.items)||void 0===E?void 0:E.from)||1,to:(null==u?void 0:null===(h=u.items)||void 0===h?void 0:h.to)||1}}catch(e){return console.error("[API Error]: GETNewsOfMultipleCategory",e),P}},y=async e=>{let{pageParam:t=1,startAt:l,endAt:a}=e;try{var o,n,r,s,d,u,v;let e=await (0,i.Py)({page:t,startAt:l,endAt:a});return{data:(null==e?void 0:null===(o=e.items)||void 0===o?void 0:o.data)||[],total:(null==e?void 0:null===(n=e.items)||void 0===n?void 0:n.total)||0,currentPage:(null==e?void 0:null===(r=e.items)||void 0===r?void 0:r.current_page)||1,lastPage:(null==e?void 0:null===(s=e.items)||void 0===s?void 0:s.last_page)||1,perPage:(null==e?void 0:null===(d=e.items)||void 0===d?void 0:d.per_page)||20,from:(null==e?void 0:null===(u=e.items)||void 0===u?void 0:u.from)||1,to:(null==e?void 0:null===(v=e.items)||void 0===v?void 0:v.to)||1}}catch(e){return console.error("[API Error]: GETv1AllNews",e),P}},_=()=>{let e=new Date().getHours();return e>=9&&e<=18?6e4:3e5};t.ZP=e=>{var t,l;let{category:i=u.p.HEADLINE,dates:P=[],isShowOutsource:f=!0,enableFetchQuotes:N,isCategoryHeadline:A="1",isShowReportNews:I=!0,isShowAd:w=!0,device:j=v.A.DESKTOP}=e,[C,S]=P||[],b=f?"1":"0",{data:D,fetchNextPage:M,isFetching:L}=(0,p.useInfiniteQuery)({queryKey:["news",i,Math.floor(Number(C)/1e3/100),Math.floor(Number(S)/1e3/100),b,A],queryFn:i===u.p.ALL?e=>{let{pageParam:t}=e;return y({pageParam:t,startAt:C,endAt:S})}:e=>{let{pageParam:t}=e;return T({pageParam:t,category:i,startAt:C,endAt:S,showOutsource:b,isCategoryHeadline:A})},getNextPageParam:(e,t)=>t.length+1,initialPageParam:1,notifyOnChangeProps:["data"],staleTime:_(),gcTime:6e5,refetchOnWindowFocus:!0,refetchOnReconnect:!0,refetchOnMount:!1}),O=(null==D?void 0:D.pages)||[],x=(null==O?void 0:O.map(e=>e.data||[]).flat())||[],R=null==O?void 0:null===(t=O[0])||void 0===t?void 0:t.total,Y=(0,h.bJ)(null===(l=O[0])||void 0===l?void 0:l.data),{data:k}=(0,E.useQuery)({queryKey:[...Y],queryFn:()=>(0,r.TX)([...Y]),enabled:N&&O.length<=1,notifyOnChangeProps:["data"],select:h.DB}),F=k&&N&&x.map(e=>{var t;let l=e.market,n=(null==l?void 0:null===(t=l.map(e=>{let{symbol:t}=e;return null==k?void 0:k[t]}))||void 0===t?void 0:t.filter(e=>e))||null;return(0,o._)((0,a._)({},e),{quotes:n,type:c.R.NEWS})})||x,V=[...new Set(F.map(e=>(0,n.uv)(e.publishAt)).filter(e=>e!==(0,n.uv)(Math.floor(Date.now()/1e3))))].map(e=>({type:c.R.DATE,publishAt:e+86400-1,height:g.Z.DesktopDate})),q=[...F,...V];q.sort((e,t)=>
1t.publishAt-e.publishAt);let Z=w?(0,m.m0)(q,j):q;if(I){let e={type:c.R.REPORT,height:s.REPORT_CARD_HEIGHT_CONTAINER};Z.splice(d.l,0,e)}return{data:Z,isItemLoaded:e=>e<x.length&&null!==x[e],loadMoreItems:()=>{M()},total:R>Z.length?R:Z.length,isFetching:L}}},24661:function(e,t,l){"use strict";var a=l(73793),o=l(33174),n=l(25032),i=l(89786),r=l(24123);let s=async e=>{let{pageParam:t=1,queryKey:l,dates:a=[],title:n}=e,[,i]=l||[],[r="",s=""]=a;try{var d,u,v,c,g,m,p;let e=await (0,o.jE)({q:i,page:t,startAt:r,endAt:s,title:n});return{data:(null==e?void 0:null===(d=e.items)||void 0===d?void 0:d.data)||[],total:(null==e?void 0:null===(u=e.items)||void 0===u?void 0:u.total)||0,currentPage:(null==e?void 0:null===(v=e.items)||void 0===v?void 0:v.current_page)||1,lastPage:(null==e?void 0:null===(c=e.items)||void 0===c?void 0:c.last_page)||1,perPage:(null==e?void 0:null===(g=e.items)||void 0===g?void 0:g.per_page)||20,from:(null==e?void 0:null===(m=e.items)||void 0===m?void 0:m.from)||1,to:(null==e?void 0:null===(p=e.items)||void 0===p?void 0:p.to)||1}}catch(e){return console.error("[API Error]: GETv2Search",e),{data:[],total:0,currentPage:1,lastPage:1,perPage:20,from:1,to:1}}},d=(0,a.mr)(Date.now()/1e3,"YYYYMMDD"),u=function(e){var t,l;let o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!(null==e?void 0:e.length))return[];let r={dates:new Set,items:[]};return e.sort((e,t)=>t.publishAt-e.publishAt),null!==(l=null===(t=e.reduce((e,t,l)=>{let r=(0,a.mr)(t.publishAt,"YYYYMMDD");return e.dates.has(r)||r===d||(e.dates.add(r),o||0===l||e.items.push({type:n.R.DATE,publishAt:t.publishAt,height:i.Z.DesktopDate})),e.items.push(t),e},r))||void 0===t?void 0:t.items)&&void 0!==l?l:[]};t.Z=e=>{var t,l,a,o;let{tag:n,page:i=1,dates:d=[],title:v}=e,c=i+1,[g,m]=null!=d?d:[],p=new Date(g).getTime(),E=new Date(m).getTime(),h=["news",n,"startAtDate:".concat(Math.floor(p/6e4)),"endAtDate:".concat(Math.floor(E/6e4)),"title:".concat(v)],{data:P,hasNextPage:T,fetchNextPage:y,isFetching:_}=(0,r.useInfiniteQuery)({queryKey:h,queryFn:e=>{let{pageParam:t=c}=e;return s({queryKey:h,pageParam:t,dates:d,title:v})},getNextPageParam:(e,t)=>t.length+1,initialPageParam:1}),f=(null==P?void 0:null===(t=P.pages)||void 0===t?void 0:t.map(e=>e.data||[]).flat())||[],N=null==P?void 0:null===(l=P.pages[0])||void 0===l?void 0:l.total;return{data:u(f,(null==P?void 0:null===(a=P.pages[0])||void 0===a?void 0:a.currentPage)===(null==P?void 0:null===(o=P.pages[0])||void 0===o?void 0:o.lastPage)),isItemLoaded:e=>e<f.length&&null!==f[e],loadMoreItems:()=>{T&&y()},isFetching:_,total:N}}},95213:function(e){e.exports={eo8nzhl:"eo8nzhl",t1ya3db2:"t1ya3db2"}}}]); 2//# sourceMappingURL=5230.62423d89e2776e2a.js.map
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.