PageSourceSearch

https://image.news1.kr/system/_sjs/_next/static/chunks/pages/breakingnews-e45926866bcc0c69.js

js news1.kr collected 2026-09-24 08:37:57 UTC 5,856 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6670],{64913:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/breakingnews",function(){return s(67059)}])},14219:function(e,t,s){"use strict";s.d(t,{Z:function(){return m}});var n=s(85893),r=s(67294),i=s(76720),a=s(93967),l=s.n(a),d=s(97400);let c=r.forwardRef(({bsPrefix:e,variant:t,animation:s="border",size:r,as:i="div",className:a,...c},o)=>{e=(0,d.vE)(e,"spinner");let m=`${e}-${s}`;return(0,n.jsx)(i,{ref:o,...c,className:l()(a,m,r&&`${m}-${r}`,t&&`text-${t}`)})});c.displayName="Spinner";var o=s(37271),m=({onSubmit:e,loading:t=!1,disabled:s=!1,text:r="기사 더보기"})=>(0,n.jsx)(i.Z,{className:"read-more",variant:"dark",onClick:e,disabled:s,children:t?(0,n.jsx)(c,{as:"span",animation:"border",size:"sm",role:"status"}):(0,n.jsxs)("span",{className:"",children:[r," ",(0,n.jsx)(o.Z,{})," "]})})},28973:function(e,t,s){"use strict";var n=s(85893),r=s(34156),i=s(67294);t.Z=i.memo(({section_id:e,section_kor:t,children:s,mostnews_type:a,mostnews_max:l,isMostView:d},{...c})=>{let[o]=(0,i.useState)(c.items),[m,u]=(0,i.useState)(!1!==d);return(0,i.useEffect)(()=>{o?.includes("MostViewNews")&&u(!1!==d)},[o,d]),(0,n.jsxs)(n.Fragment,{children:[m&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:`d-sm-none d-md-none d-none d-lg-block mt-20 ${"NewsSlider"!=a?"":"most-h480"} `,children:(0,n.jsx)(r.Z,{id:e,listType:a||"NewsSlider",name:t,type:10,limit:l||10})}),(0,n.jsxs)("div",{className:"d-sm-block d-md-block d-none d-lg-none most-h520",children:[(0,n.jsx)("div",{className:"container",children:(0,n.jsx)("div",{className:"row widget-border-top-3"})}),(0,n.jsx)(r.Z,{id:e,listType:"NewsSlider",name:t,slidesToShow:2,slidesToScroll:2,type:10,limit:10})]}),(0,n.jsxs)("div",{className:"d-block d-sm-none d-md-none d-lg-none mt-20 most-h520",children:[(0,n.jsx)("div",{className:"container",children:(0,n.jsx)("div",{className:"row widget-border-top-3"})}),(0,n.jsx)(r.Z,{id:e,listType:"NewsSlider",name:t,type:10,limit:10})]})]}),s]})})},29976:function(e,t,s){"use strict";var n=s(88767);t.Z=({queryKey:e,fetchData:t,initialData:s,staleTime:r=6e4})=>(0,n.useInfiniteQuery)(e,({pageParam:e=s?2:1})=>t({pageParam:e}),{getNextPageParam:e=>e.isLast?void 0:e.nextPage,staleTime:r,initialData:s?{pages:[s],pageParams:[1]}:void 0})},12099:function(e,t,s){"use strict";var n=s(67294);t.Z=()=>{let[e,t]=(0,n.useState)(0);return(0,n.useEffect)(()=>{t(window.innerWidth);let e=()=>t(window.innerWidth);return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),e}},68070:function(e,t,s){"use strict";s.d(t,{r:function(){return d}});var n=s(93967),r=s.n(n),i=s(67294),a=s(97400),l=s(85893);function d({as:e,bsPrefix:t,className:s,...n}){t=(0,a.vE)(t,"col");let i=(0,a.pi)(),l=(0,a.zG)(),d=[],c=[];return i.forEach(e=>{let s,r,i;let a=n[e];delete n[e],"object"==typeof a&&null!=a?{span:s,offset:r,order:i}=a:s=a;let o=e!==l?`-${e}`:"";s&&d.push(!0===s?`${t}${o}`:`${t}${o}-${s}`),null!=i&&c.push(`order${o}-${i}`),null!=r&&c.push(`offset${o}-${r}`)}),[{...n,className:r()(s,...d,...c)},{as:e,bsPrefix:t,spans:d}]}let c=i.forwardRef((e,t)=>{let[{className:s,...n},{as:i="div",bsPrefix:a,spans:c}]=d(e);return(0,l.jsx)(i,{...n,ref:t,className:r()(s,!c.length&&a)})});c.displayName="Col",t.Z=c},80129:function(e,t,s){"use strict";s.d(t,{Z:function(){return h}});var n=s(67294),r=s(93967),i=s.n(r),a=s(97400),l=s(68070);function d({animation:e,bg:t,bsPrefix:s,size:n,...r}){s=(0,a.vE)(s,"placeholder");let[{className:d,...c}]=(0,l.r)(r);return{...c,className:i()(d,e?`${s}-${e}`:s,n&&`${s}-${n}`,t&&`bg-${t}`)}}var c=s(76720),o=s(85893);let m=n.forwardRef((e,t)=>{let s=d(e);return(0,o.jsx)(c.Z,{...s,ref:t,disabled:!0,tabIndex:-1})});m.displayName="PlaceholderButton";let u=n.forwardRef(({as:e="span",...t},s)=>{let n=d(t);return(0,o.jsx)(e,{...n,ref:s})});u.displayName="Placeholder";var h=Object.assign(u,{Button:m})},67059:function(e,t,s){"use strict";s.r(t),s.d(t,{__N_SSG:function(){return w}});var n=s(85893),r=s(67294),i=s(27415),a=s(9830),l=s(97347),d=s(59639),c=s(14219),o=s(28973),m=s(12099),u=s(29976);let h=async({pageParam:e=1,limit:t})=>{try{let s=await (0,i.Nz)({start:e,limit:t}).then(e=>e.data)||[],n=s.length<t;return{articles:s,nextPage:n?null:e+1,isLast:n}}catch(e){return console.error("Error fetching data:",e),{articles:[],nextPage:null,isLast:!0}}};var w=!0;t.default=({breakingNews:e=[]})=>{let t=(0,m.Z)(),[s]=(0,r.useState)("실시간 속보"),[i,w]=(0,r.useState)({listType:"newsItemType2",width:400,height:300,title_tag:"h2",title_class:"n1-header-title-1-2",title_row:"text-limit-3-row",summary_row:"text-limit-3-row",related_class:"n1-header-title-related text-limit-1-row",related_count:2,useCol:"col-5 col-md-4 col-sm-4 col-lg-4 mb-3 mb-lg-0 mb-md-0",useImageClass:"thumb-lg-h200 thumb-md-h150 thumb-sm-h100 thumb-wide-h150"}),{data:x,fetchNextPage:f,hasNextPage:N,isFetchingNextPage:v}=(0,u.Z)({queryKey:["breakingnews","latest"],fetchData:e=>h({...e,limit:10}),initialData:{articles:e||[],nextPage:2,isLast:e.length<10}});return(0,n.jsx)(l.Z,{title:s,children:(0,n.jsx)("main",{className:"breaking-news",children:(0,n.jsx)("div",{className:"container",children:(0,n.jsxs)("div",{className:"row mt-20",children:[(0,n.jsxs)("div",{className:t>991&&t<1290?"col-md-8":"col",children:[(0,n.jsx)(d.Sk,{title:s}),(0,n.jsx)("div",{children:x?.pages.map((e,t)=>n.jsx(a.Z,{posts:e.articles,settings:i},t))}),N&&(0,n.jsx)("div",{className:"text-center mt-20 mb-30",children:(0,n.jsx)(c.Z,{text:"더보기",onSubmit:f,loading:v,disabled:v})})]}),(0,n.jsx)("div",{className:"col-lg-3",children:(0,n.jsx)("div",{className:"row",children:(0,n.jsx)(o.Z,{mostnews_type:"NewsItemF"})})})]})})})})}}},function(e){e.O(0,[1664,2693,7534,3448,5675,393,2230,8732,7347,4156,2888,9774,179],function(){return e(e.s=64913)}),_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.