PageSourceSearch

https://tonviewer.com/_next/static/chunks/pages/blocks-b325b1c38c5bb217.js

js tonviewer.com collected 2026-10-03 19:22:45 UTC 11,690 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4562],{11813:e=>{e.exports={c1bxdtch:"c1bxdtch",c2s6p5h:"c2s6p5h",tvubogc:"tvubogc",bgyraxp:"bgyraxp",eo2h95h:"eo2h95h",b1f4kumf:"b1f4kumf",b1mexpyc:"b1mexpyc",i613qtt:"i613qtt","incomingBlock-i613qtt":"incomingBlock-i613qtt",tnebf6c:"tnebf6c",h1pymxhe:"h1pymxhe"}},28691:(e,t,n)=>{"use strict";n.d(t,{u:()=>l});var a=n(37876),c=n(14232),s=n(86774);n(59259);let l=c.memo(e=>{let[t,n]=c.useState(!1);return c.useEffect(()=>{let a=async()=>{!t&&e.hasMore&&window.innerHeight+window.scrollY+80>=document.body.clientHeight&&(n(!0),await e.handleNext(),n(!1))};return a(),window.addEventListener("scroll",a,{passive:!0}),window.addEventListener("resize",a,{passive:!0}),()=>{window.removeEventListener("scroll",a),window.removeEventListener("resize",a)}},[e,t]),(0,a.jsxs)("div",{className:"c1n9ovn1",children:[e.children,e.hasMore&&(0,a.jsx)("div",{className:"lxe3v47",children:(0,a.jsx)(s.p,{})})]})})},44602:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>M});var a=n(75714),c=n(43651);let s=async()=>{let e=Math.round(new Date().getTime()/1e3),t=e-60;return{blocks:(await c.Sn.blockchain.getReducedBlockchainBlocks({from:t,to:e})).blocks,from:t,to:e}};var l=n(37876),o=n(14232),r=n(43545),i=n(67601),h=n(52902),u=n(65959),d=n(62512),m=n(28691),x=n(81643),f=n(85671);n(11813);let v=(0,r.cx)(f.cf,"tvubogc"),p="b1mexpyc",g="tnebf6c",w=(0,r.cx)(f.jz,"h1pymxhe"),b=e=>"".concat(e.workchain_id,":").concat(e.shard,":").concat(e.seqno),k=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,a=e.concat(t),c=new Map;for(let e of a){let t=b(e);c.has(t)||c.set(t,e)}return Array.from(c.values()).sort((e,t)=>t.utime!==e.utime?t.utime-e.utime:t.workchain_id!==e.workchain_id?t.workchain_id-e.workchain_id:t.shard!==e.shard?t.shard.localeCompare(e.shard):t.seqno-e.seqno).slice(0,n)},y=o.memo(e=>{var t;let{lang:n}=(0,i.F)(),a="".concat(e.workchain_id,":").concat(e.shard,":").concat(e.seqno),c=null!=(t=e.tx_quantity)?t:0;return(0,l.jsxs)("div",{className:(0,r.cx)(p,e.isIncoming&&"i613qtt"),children:[(0,l.jsx)(d.w,{text:(0,u.iR)(e.utime,n)}),(0,l.jsx)(d.w,{textClassName:f.Tr,text:a,copyContent:a,href:(e=>"/block/(".concat(e.workchain_id,",").concat(e.shard,",").concat(e.seqno,")"))(e)}),(0,l.jsx)(d.w,{text:e.master_ref||"-",copyContent:e.master_ref||void 0,href:e.master_ref?"/block/".concat(e.master_ref):void 0}),(0,l.jsx)(d.w,{className:g,text:"".concat(c)})]})}),j=o.memo(e=>{let{t}=(0,i.F)(),[n,a]=o.useState(()=>k(e.blocks,[],300)),[s,u]=o.useState(e.from),[d,f]=o.useState({}),j=o.useRef(n);o.useEffect(()=>{j.current=n},[n]);let M=o.useCallback(async()=>{let e=Math.max(0,s-1),t=Math.max(0,e-60),n=await (0,h.kF)(async()=>await c.Sn.blockchain.getReducedBlockchainBlocks({from:t,to:e}));a(e=>k(n.blocks,e,300)),u(t)},[s]);return o.useEffect(()=>{let e=setInterval(async()=>{try{let e=Math.floor(Date.now()/1e3),t=Math.max(0,e-60),n=await c.Sn.blockchain.getReducedBlockchainBlocks({from:t,to:e}),s=new Map(j.current.map(e=>[b(e),!0])),l=n.blocks.filter(e=>!s.has(b(e)));if(!l.length)return;f(e=>{let t={...e};for(let e of l)t[b(e)]=!0;return t}),a(e=>k(l,e,300))}catch(e){console.log(e)}},1e3);return()=>clearInterval(e)},[]),o.useEffect(()=>{if(!Object.keys(d).length)return;let e=setTimeout(()=>{f({})},500);return()=>clearTimeout(e)},[d]),(0,l.jsxs)("div",{className:"c1bxdtch",children:[(0,l.jsx)(x.o,{items:[{title:t("breadcrumbMain"),link:"/"},{title:t("lastBlocks"),link:"/blocks"}]}),(0,l.jsxs)("div",{className:"c2s6p5h",children:[(0,l.jsx)("h3",{className:v,children:t("lastBlocks")}),(0,l.jsx)("div",{className:"bgyraxp",children:(0,l.jsx)("div",{className:"eo2h95h",children:(0,l.jsx)(m.u,{handleNext:M,hasMore:!1,children:(0,l.jsxs)("div",{className:"b1f4kumf","data-nosnippet":!0,children:[(0,l.jsxs)("div",{className:p,children:[(0,l.jsx)("div",{className:w,children:t("date")}),(0,l.jsx)("div",{className:w,children:t("block")}),(0,l.jsx)("div",{className:w,children:"Master ref"}),(0,l.jsx)("div",{className:(0,r.cx)(w,g),children:"Txs"})]}),n.map(e=>(0,l.jsx)(y,{...e,isIncoming:!!d[b(e)]},b(e)))]})})})})]})]})}),M=(0,a.L4)(j,s,!0)}
1,51174:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a,c=n(14232);function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}let l=function(e){return c.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),a||(a=c.createElement("path",{fill:"#000",fillRule:"evenodd",d:"M6.273 3.171a.75.75 0 0 1 1.056.102l3.5 4.25a.75.75 0 0 1 0 .954l-3.5 4.25a.75.75 0 1 1-1.158-.954L9.278 8 6.171 4.227a.75.75 0 0 1 .102-1.056",clipRule:"evenodd"})))}},55231:e=>{e.exports={i15xgc4h:"i15xgc4h",i1yxgbh8:"i1yxgbh8",active:"active"}},59259:e=>{e.exports={c1n9ovn1:"c1n9ovn1",lxe3v47:"lxe3v47"}},62512:(e,t,n)=>{"use strict";n.d(t,{w:()=>k});var a,c,s=n(37876),l=n(14232),o=n(48230),r=n.n(o),i=n(26269),h=n.n(i),u=n(43545),d=n(57064),m=n(45944),x=n(85671),f=n(69644),v=n(74098);function p(){return(p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}function g(){return(g=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}n(97041);let w=(0,u.cx)(x.jz,x.xG,"t1g1t0q6"),b={normal:{copy:(0,s.jsx)(v.A,{}),done:(0,s.jsx)(f.A,{})},thin:{copy:(0,s.jsx)(function(e){return l.createElement("svg",g({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),c||(c=l.createElement("path",{fill:"#000",fillRule:"evenodd",d:"M5.447 2.396c-.272.534-.272 1.234-.272 2.635v.005H5.01c-1.4 0-2.1 0-2.635.272a2.5 2.5 0 0 0-1.093 1.093c-.272.535-.272 1.235-.272 2.635v1c0 1.4 0 2.1.272 2.635a2.5 2.5 0 0 0 1.093 1.093c.535.272 1.235.272 2.635.272h1c1.4 0 2.1 0 2.635-.272a2.5 2.5 0 0 0 1.093-1.093c.272-.535.272-1.235.272-2.635v-.005h.165c1.4 0 2.1 0 2.634-.273a2.5 2.5 0 0 0 1.093-1.092c.273-.535.273-1.235.273-2.635v-1c0-1.4 0-2.1-.273-2.635a2.5 2.5 0 0 0-1.092-1.093c-.535-.272-1.235-.272-2.636-.272h-1c-1.4 0-2.1 0-2.634.272a2.5 2.5 0 0 0-1.093 1.093M10.01 9.03h.765c.84 0 1.26 0 1.58-.164a1.5 1.5 0 0 0 .656-.655c.164-.321.164-.741.164-1.581v-2.2c0-.84 0-1.26-.164-1.581a1.5 1.5 0 0 0-.655-.656c-.321-.163-.741-.163-1.582-.163h-2.2c-.84 0-1.26 0-1.58.163a1.5 1.5 0 0 0-.656.656c-.163.32-.163.74-.163 1.58v.606c1.29 0 1.957.01 2.47.272a2.5 2.5 0 0 1 1.093 1.093c.272.534.272 1.233.272 2.63m-8-.595c0-.84 0-1.26.164-1.58a1.5 1.5 0 0 1 .655-.656c.32-.164.74-.164 1.581-.164h2.2c.84 0 1.26 0 1.581.164a1.5 1.5 0 0 1 .656.655c.163.32.163.741.163 1.581v2.2c0 .84 0 1.26-.163 1.581a1.5 1.5 0 0 1-.656.656c-.32.163-.74.163-1.581.163h-2.2c-.84 0-1.26 0-1.581-.163a1.5 1.5 0 0 1-.655-.656c-.164-.32-.164-.74-.164-1.58z",clipRule:"evenodd"})))},{}),done:(0,s.jsx)(function(e){return l.createElement("svg",p({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),a||(a=l.createElement("path",{fill:"#000",fillRule:"evenodd",d:"M12.354 4.646a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708 0l-3-3a.5.5 0 1 1 .708-.708L6 10.293l5.646-5.647a.5.5 0 0 1 .708 0",clipRule:"evenodd"})))},{})}},k=l.memo(e=>{let{hiddenIcon:t=!0,as:n="div",iconStyle:a="normal"}=e,[c,o]=l.useState(!1),[i]=(0,m.W)({title:"Copied!",autoCloseTimeout:1e3}),x=l.useCallback(()=>{o(!0),h()(e.copyContent),setTimeout(()=>{o(!1)},500),e.fullClickCopy&&i()},[e.copyContent]);return(0,s.jsxs)("div",{className:(0,u.cx)("crjtn7o",t&&"in6dwcq",e.fullClickCopy&&"pointer",e.className),onClick:e.fullClickCopy?e=>{e.preventDefault(),e.stopPropagation(),x()}:void 0,"data-nosnippet":e.dataNosnippet,children:[e.beforeText,e.href?(0,s.jsx)(r(),{href:e.href,target:e.href.startsWith("http")?"_blank":void 0,rel:e.rel,className:(0,u.cx)(w,"link",e.textClassName),onMouseEnter:e.onMouseEnter,children:e.text}):(0,s.jsx)(n,{className:(0,u.cx)(w,e.textClassName),onMouseEnter:e.onMouseEnter,children:e.text}),e.afterText,!!e.copyContent&&(0,s.jsx)(d.N,{icon:c?b[a].done:b[a].copy,color:c?"var(--accentGreen)":void 0,className:"copy-icon",onClick:e.fullClickCopy?void 0:e=>{e.preventDefault(),e.stopPropagation(),x()}})]})})},65959:(e,t,n)=>{"use strict";n.d(t,{C7:()=>j,Cj:()=>y,Cm:()=>v,J2:()=>p,QU:()=>f,bO:()=>w,i3:()=>g,iR:()=>k,uA:()=>b});var a=n(56557),c=n.n(a);n(52204),n(6350),n(66479),n(47418),n(14059),n(83141),n(99722);var s=n(71576),l=n.n(s),o=n(27808),r=n.n(o),i=n(66315),h=n.n(i),u=n(22429),d=n.n(u),m=n(82908),x=n.n(m);c().extend(l()),c().extend(r()),c().extend(h()),c().extend(x()),c().extend(d()),c().updateLocale("ru",{months:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"]});let f=(e,t,n)=>
1c()(new Date(Number(e))).locale(n||"en").format(t),v=(e,t,n)=>c().unix(e).locale(n||"en").format(t),p=e=>c().unix(e).format("DD.MM.YYYY, HH:mm:ss"),g=(e,t)=>{let n=new Date,a=new Date(1e3*e);return n.getFullYear()===a.getFullYear()?v(e,"DD MMM HH:mm:ss",t):v(e,"DD MMM YYYY HH:mm:ss",t)},w=(e,t)=>c()(e).locale(t||"en").format("DD MMM YYYY"),b=(e,t,n)=>c()(e).locale(n||"en").format(t),k=(e,t)=>{let n=new Date,a=new Date(1e3*e);if(n.getTime()-a.getTime()<864e5)return c()(a).locale(t).fromNow();let s={sameDay:{en:"Today at",ru:"Сегодня в",bg:"Днес в",tr:"Bug\xfcn saat",es:"Hoy a las",zh:"今天在",uk:"Сьогодні о",uz:"Bugun soat"},lastDay:{en:"Yesterday at",ru:"Вчера в",bg:"Вчера в",tr:"D\xfcn saat",es:"Ayer a las",zh:"昨天在",uk:"Вчора о",uz:"Kecha soat"}},l={sameDay:"[".concat(s.sameDay[t],"] HH:mm"),lastDay:"[".concat(s.lastDay[t],"] HH:mm"),lastWeek:"DD MMM HH:mm",sameElse:"DD MMM YYYY"};return n.getFullYear()===a.getFullYear()&&(l.sameElse="DD MMM HH:mm"),c()(a).locale(t).calendar(null,l)};function y(e,t){let n=new Date,a=e.getTime()-n.getTime(),c=Math.floor(a/864e5),s=Math.floor(a%864e5/36e5),l=Math.floor(a%36e5/6e4),o=Math.floor(a%6e4/1e3),r=c?"".concat(c).concat({en:"d",ru:"д",bg:"д",tr:"g",es:"d",zh:"天",uk:"д",uz:"к"}[t]):"",i=s?"".concat(s).concat({en:"h",ru:"ч",bg:"ч",tr:"s",es:"h",zh:"时",uk:"г",uz:"с"}[t]):"";return[r,i,l&&!c?"".concat(l).concat({en:"m",ru:"м",bg:"м",tr:"d",es:"m",zh:"分",uk:"хв",uz:"д"}[t]):"",o&&!s?"".concat(o).concat({en:"s",ru:"с",bg:"с",tr:"s",es:"s",zh:"秒",uk:"с",uz:"с"}[t]):""].filter(Boolean).join(" ")}function j(e){e<1e12&&(e*=1e3);let t=-new Date(e).getTimezoneOffset()/60,n=Math.abs(t),a="UTC".concat(t>=0?"+":"-").concat(n);return"(".concat(a,")")}},77674:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/blocks",function(){return n(44602)}])},81643:(e,t,n)=>{"use strict";n.d(t,{o:()=>d});var a=n(37876),c=n(14232),s=n(48230),l=n.n(s),o=n(43545),r=n(57064),i=n(85671),h=n(51174);n(55231);let u=(0,o.cx)(i.np,"i1yxgbh8"),d=c.memo(e=>(0,a.jsx)("div",{className:(0,o.cx)("i15xgc4h",e.className),children:e.items.map((t,n)=>(0,a.jsxs)(l(),{className:(0,o.cx)(u,n===e.items.length-1&&"active"),href:t.link,children:[(0,a.jsx)("div",{className:i.xG,style:{overflow:t.title.length<6?"visible":"hidden"},children:t.title}),n!==e.items.length-1&&(0,a.jsx)(r.N,{icon:(0,a.jsx)(h.A,{})})]},n))}))},97041:e=>{e.exports={crjtn7o:"crjtn7o",pointer:"pointer",in6dwcq:"in6dwcq","copy-icon":"copy-icon","hover-icon":"hover-icon",t1g1t0q6:"t1g1t0q6",link:"link"}}},e=>{e.O(0,[7933,636,6593,8792],()=>e(e.s=77674)),_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.