PageSourceSearch

https://www.dbcscan.io/_next/static/chunks/3111.d9e8ed3d52a5f51e.js

js dbcscan.io collected 2026-09-28 06:48:57 UTC 7,504 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3111],{83111:function(e,n,l){l.r(n),l.d(n,{default:function(){return y}});var r=l(85893);l(67294);var t=l(28276),a=l(30629),i=l(12498),s=l(31708),o=l(88911),d=l(93344),u=l(90634),c=l(23100),x=l(41689),h=l(36557),b=l(24304),f=l(36526),m=l(75421),p=l(28650),v=l(577),j=l(84508);let g=e=>{let{label:n,value:l,isLoading:t}=e,a=(0,i.ff)("gray.600","gray.400");return(0,r.jsxs)(s.r,{templateColumns:"180px 1fr",gap:2,py:1,children:[(0,r.jsx)(o.x,{fontSize:"sm",color:a,children:n}),(0,r.jsx)(d.O,{isLoaded:!t,children:(0,r.jsx)(o.x,{fontSize:"sm",wordBreak:"break-all",children:l})})]})};var _=e=>{let{eventId:n}=e,{t:l}=(0,t.$G)("common"),a=(0,i.ff)("white","gray.800"),s=(0,i.ff)("gray.200","gray.700"),{data:d,isPlaceholderData:_}=(0,j.Z)("substrate_event",{pathParams:{id:n},queryOptions:{enabled:!!n}}),y=_||!d;return(0,r.jsxs)(u.g,{align:"stretch",spacing:4,children:[(0,r.jsxs)(c.xu,{bg:a,borderRadius:"lg",borderWidth:"1px",borderColor:s,p:4,children:[(0,r.jsx)(o.x,{fontWeight:"bold",mb:3,children:l("substrate_event_info",{defaultValue:"Event Info"})}),(0,r.jsx)(g,{label:l("substrate_event_index",{defaultValue:"Event Index"}),value:null==d?void 0:d.event_index,isLoading:y}),(0,r.jsx)(g,{label:l("substrate_block",{defaultValue:"Block"}),value:null==d?void 0:d.block_num,isLoading:y}),(0,r.jsx)(g,{label:l("substrate_extrinsic",{defaultValue:"Extrinsic"}),value:(null==d?void 0:d.extrinsic_hash)||"".concat(null==d?void 0:d.block_num,"-").concat(null==d?void 0:d.extrinsic_idx),isLoading:y}),(0,r.jsx)(g,{label:l("substrate_module",{defaultValue:"Module"}),value:null==d?void 0:d.module_id,isLoading:y}),(0,r.jsx)(g,{label:l("substrate_event",{defaultValue:"Event"}),value:null==d?void 0:d.event_id,isLoading:y}),(0,r.jsx)(g,{label:"Phase",value:null==d?void 0:d.phase,isLoading:y}),(0,r.jsx)(g,{label:"Finalized",value:(0,r.jsx)(x.C,{colorScheme:(null==d?void 0:d.finalized)?"green":"yellow",variant:"subtle",children:(null==d?void 0:d.finalized)?"Yes":"No"}),isLoading:y})]}),(null==d?void 0:d.params)&&d.params.length>0&&(0,r.jsxs)(c.xu,{bg:a,borderRadius:"lg",borderWidth:"1px",borderColor:s,p:4,overflowX:"auto",children:[(0,r.jsx)(o.x,{fontWeight:"bold",mb:3,children:l("substrate_params",{defaultValue:"Parameters"})}),(0,r.jsxs)(h.i,{variant:"simple",size:"sm",children:[(0,r.jsx)(b.h,{children:(0,r.jsxs)(f.Tr,{children:[(0,r.jsx)(m.Th,{children:"Name"}),(0,r.jsx)(m.Th,{children:"Type"}),(0,r.jsx)(m.Th,{children:"Value"})]})}),(0,r.jsx)(p.p,{children:d.params.map((e,n)=>(0,r.jsxs)(f.Tr,{children:[(0,r.jsx)(v.Td,{children:(0,r.jsx)(o.x,{fontSize:"sm",children:e.name})}),(0,r.jsx)(v.Td,{children:(0,r.jsx)(o.x,{fontSize:"xs",color:"gray.500",children:e.type_name||e.type})}),(0,r.jsx)(v.Td,{children:(0,r.jsx)(o.x,{fontSize:"xs",wordBreak:"break-all",maxW:"400px",isTruncated:!0,children:"object"==typeof e.value?JSON.stringify(e.value):String(e.value)})})]},n))})]})]})]})},y=e=>{let{id:n}=e,{t:l}=(0,t.$G)("common");return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a.Z,{title:l("substrate_event_detail_title",{defaultValue:"Event Detail"})}),(0,r.jsx)(_,{eventId:n})]})}},30629:function(e,n,l){var r=l(85893),t=l(93344),a=l(47523),i=l(33838),s=l(62723),o=l(204),d=l(14418),u=l(75350),c=l(23279),x=l.n(c),h=l(67294),b=l(26156),f=l(46604),m=l(89633),p=l(71577);let v=e=>{if(!e)return null;if(e.isLoading)return(0,r.jsx)(t.O,{boxSize:6,display:"inline-block",borderRadius:"base",mr:3,my:2,verticalAlign:"text-bottom",isLoaded:!e.isLoading});let n=(0,r.jsx)(m.Z,{name:"arrows/east",boxSize:6,transform:"rotate(180deg)",margin:"auto",color:"gray.400"});return"url"in e?(0,r.jsx)(a.u,{label:e.label,children:(0,r.jsx)(p.Z,{display:"inline-flex",href:e.url,h:"40px",mr:3,children:n})}):(0,r.jsx)(a.u,{label:e.label,children:(0,r.jsx)(i.r,{display:"inline-flex",onClick:e.onClick,h:"40px",mr:3,children:n})})};n.Z=(0,u.m)(e=>{let{title:n,contentAfter:l,withTextAd:i,backLink:u,className:c,isLoading:m,afterTitle:p,beforeTitle:j,secondRow:g}=e,_=(0,s.q)(),y=(0,b.Z)(),[k,w]=h.useState(!1),L=h.useRef(null),C=h.useRef(null),T=h.useCallback(()=>
1{if(!L.current||!C.current)return;let e=L.current.getBoundingClientRect(),n=C.current.getBoundingClientRect();2*e.height<=n.height?w(!0):w(!1)},[]);return h.useEffect(()=>{m||T()},[m,T]),h.useEffect(()=>{let e=x()(T,1e3);return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}},[T]),(0,r.jsxs)(o.k,{className:c,flexDir:"column",rowGap:3,mb:6,children:[(0,r.jsxs)(o.k,{flexDir:"row",flexWrap:"wrap",rowGap:3,columnGap:3,alignItems:"center",children:[(0,r.jsxs)(o.k,{h:{base:"auto",lg:m?10:"auto"},maxW:"100%",alignItems:"center",children:[u&&(0,r.jsx)(v,{...u,isLoading:m}),j,(0,r.jsx)(t.O,{isLoaded:!m,overflow:"hidden",children:(0,r.jsx)(a.u,{label:n,isOpen:_.isOpen,onClose:_.onClose,maxW:{base:"calc(100vw - 32px)",lg:"500px"},closeOnScroll:!!y,isDisabled:!k,children:(0,r.jsx)(d.X,{ref:L,as:"h1",size:"lg",whiteSpace:"normal",wordBreak:"break-all",style:{WebkitLineClamp:1,WebkitBoxOrient:"vertical",display:"-webkit-box"},overflow:"hidden",textOverflow:"ellipsis",onMouseEnter:_.onOpen,onMouseLeave:_.onClose,onClick:y?_.onToggle:void 0,children:(0,r.jsx)("span",{ref:C,children:n})})})}),p]}),l,i&&(0,r.jsx)(f.Z,{order:{base:-1,lg:100},mb:{base:6,lg:0},ml:"auto",w:{base:"100%",lg:"auto"}})]}),g&&(0,r.jsx)(o.k,{alignItems:"center",minH:10,overflow:"hidden",_empty:{display:"none"},children:g})]})})},41689:function(e,n,l){l.d(n,{C:function(){return d}});var r=l(35059),t=l(91639),a=l(33179),i=l(75350),s=l(25432),o=l(85893),d=(0,r.G)(function(e,n){let l=(0,t.mq)("Badge",e),{className:r,...d}=(0,a.Lr)(e);return(0,o.jsx)(i.m.span,{ref:n,className:(0,s.cx)("chakra-badge",e.className),...d,__css:{display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle",...l}})});d.displayName="Badge"},36557:function(e,n,l){l.d(n,{i:function(){return x},p:function(){return c}});var r=l(35059),t=l(91639),a=l(33179),i=l(75350),s=l(25432),o=l(55227),d=l(85893),[u,c]=(0,o.k)({name:"TableStylesContext",errorMessage:"useTableStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<Table />\" "}),x=(0,r.G)((e,n)=>{let l=(0,t.jC)("Table",e),{className:r,layout:o,...c}=(0,a.Lr)(e);return(0,d.jsx)(u,{value:l,children:(0,d.jsx)(i.m.table,{ref:n,__css:{tableLayout:o,...l.table},className:(0,s.cx)("chakra-table",r),...c})})});x.displayName="Table"},577:function(e,n,l){l.d(n,{Td:function(){return s}});var r=l(36557),t=l(35059),a=l(75350),i=l(85893),s=(0,t.G)(({isNumeric:e,...n},l)=>{let t=(0,r.p)();return(0,i.jsx)(a.m.td,{...n,ref:l,__css:t.td,"data-is-numeric":e})})},28650:function(e,n,l){l.d(n,{p:function(){return s}});var r=l(36557),t=l(35059),a=l(75350),i=l(85893),s=(0,t.G)((e,n)=>{let l=(0,r.p)();return(0,i.jsx)(a.m.tbody,{...e,ref:n,__css:l.tbody})})},24304:function(e,n,l){l.d(n,{h:function(){return s}});var r=l(36557),t=l(35059),a=l(75350),i=l(85893),s=(0,t.G)((e,n)=>{let l=(0,r.p)();return(0,i.jsx)(a.m.thead,{...e,ref:n,__css:l.thead})})},36526:function(e,n,l){l.d(n,{Tr:function(){return s}});var r=l(36557),t=l(35059),a=l(75350),i=l(85893),s=(0,t.G)((e,n)=>{let l=(0,r.p)();return(0,i.jsx)(a.m.tr,{...e,ref:n,__css:l.tr})})},75421:function(e,n,l){l.d(n,{Th:function(){return s}});var r=l(36557),t=l(35059),a=l(75350),i=l(85893),s=(0,t.G)(({isNumeric:e,...n},l)=>{let t=(0,r.p)();return(0,i.jsx)(a.m.th,{...n,ref:l,__css:t.th,"data-is-numeric":e})})}}]);
2//# sourceMappingURL=3111.d9e8ed3d52a5f51e.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.