1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2822],{22822:(e,t,s)=>{"use strict";s.r(t),s.d(t,{NewMoments:()=>p});var n=s(11259),l=s(36497),i=s.n(l),a=s(5220),r=s(72390),o=s(61868),m=s(71943),u=s(48028),d=s(93474),h=s(20981),c=s(91355),w=s(26805);let f=()=>(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",children:(0,n.jsx)("path",{fill:"#fff",d:"M17.532 6.936A7.5 7.5 0 0 0 4.5 12h1.406a6.094 6.094 0 0 1 10.63-4.068l-2.192 2.193H19.5V4.969l-1.968 1.967ZM18.094 12a6.094 6.094 0 0 1-10.63 4.068l2.192-2.193H4.5v5.156l1.968-1.967A7.5 7.5 0 0 0 19.5 12h-1.406Z"})});s(61633);let p=e=>{let{liveBlogId:t,momentsCount:s,latestMomentDate:l,setLastestMomentDate:i,setNewMomentsCount:r,initialMomentIds:m}=e,[u,d]=(0,a.useState)([]),[h,c]=(0,a.useState)(!1);return(0,n.jsxs)(n.Fragment,{children:[h&&Array.from({length:s}).map((e,t)=>(0,n.jsx)(o.I,{},t)),(0,n.jsx)(x,{newMoments:u}),(0,n.jsx)(g,{liveBlogId:t,initialMomentIds:m,latestMomentDate:l,momentsCount:s,isLoading:h,setIsLoading:c,setLatestMomentDate:i,setNewMoments:d,setNewMomentsCount:r})]})},x=(0,a.memo)(e=>{let{newMoments:t}=e;return t.map(e=>(0,n.jsx)(m.Q,{moment:e},e.id))}),g=e=>{let{liveBlogId:t,initialMomentIds:s,momentsCount:l,isLoading:o,latestMomentDate:m,setIsLoading:p,setNewMoments:x,setLatestMomentDate:g,setNewMomentsCount:j}=e,M=(0,a.useRef)(null),N=async e=>{var n;let l=null==(n=M.current)?void 0:n.parentElement;(0,d.P)(l,50);try{p(!0);let e=await (0,w.a)({liveBlogId:t,dateTime:m});if(e.error)throw Error(e.error.message);x((0,c.J)((0,h.s)(s,e.moments))),g(e.moments[0].dateTime),j(0),p(!1),null==l||l.focus()}catch(e){p(!1),(0,u.A)("Laden mislukt. Probeer opnieuw")}};return l?(0,n.jsx)("aside",{className:"qiidzf1",ref:M,children:(0,n.jsxs)(r.PrimaryButton,{"aria-live":"polite",onClick:N,size:"medium",disabled:o,type:"button",testId:"load-new-moments-button",className:i()("qiidzf0"),title:"Nieuwe berichten laden",children:[(0,n.jsx)(f,{}),"Nieuwe berichten (",l,")"]})}):null}},61633:()=>{}}]);
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.