PageSourceSearch

https://www.dbcscan.io/_next/static/chunks/2842.4299188d2aceb5d1.js

js dbcscan.io collected 2026-09-28 06:48:55 UTC 11,072 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2842],{42842:function(e,r,n){n.r(r);var l=n(85893),o=n(12498),t=n(23100),i=n(88911),s=n(93344),a=n(90634),d=n(24804),c=n(41689),u=n(31708),h=n(776),x=n(92874),m=n(36557),g=n(24304),f=n(36526),b=n(75421),p=n(28650),v=n(577);n(67294);var j=n(28276),_=n(84508),y=n(71577);let S=e=>e?e.length<=16?e:"".concat(e.slice(0,8),"...").concat(e.slice(-6)):"—",C=e=>{let r=e.toLowerCase();return"approved"===r||"executed"===r?"green":"disapproved"===r||"rejected"===r?"red":"proposed"===r?"yellow":"closed"===r?"gray":"voting"===r?"blue":"gray"},w=e=>{let{label:r,children:n,isLoading:a}=e,d=(0,o.ff)("gray.600","gray.400");return(0,l.jsxs)(t.xu,{children:[(0,l.jsx)(i.x,{fontSize:"xs",color:d,mb:1,children:r}),(0,l.jsx)(s.O,{isLoaded:!a,children:n})]})};r.default=e=>{var r;let{proposalId:n}=e,{t:k}=(0,j.$G)("common"),L=(0,o.ff)("white","gray.800"),W=(0,o.ff)("gray.200","gray.700"),V=(0,o.ff)("gray.50","gray.700"),T=(0,o.ff)("gray.600","gray.400"),{data:z,isPlaceholderData:P,isLoading:R}=(0,_.Z)("governance_council_proposal_detail",{pathParams:{id:n},queryOptions:{enabled:!!n}}),N=P||R;if(!N&&!z)return(0,l.jsx)(t.xu,{bg:L,borderRadius:"lg",borderWidth:"1px",borderColor:W,p:6,textAlign:"center",children:(0,l.jsx)(i.x,{color:T,children:k("no_data",{defaultValue:"No data"})})});let G=((null==z?void 0:z.aye_votes)||0)+((null==z?void 0:z.nay_votes)||0),O=G>0?((null==z?void 0:z.aye_votes)||0)/G*100:0;return(0,l.jsxs)(a.g,{align:"stretch",spacing:4,children:[(0,l.jsx)(t.xu,{bg:L,borderRadius:"lg",borderWidth:"1px",borderColor:W,p:4,children:(0,l.jsxs)(d.U,{justify:"space-between",align:"center",children:[(0,l.jsx)(s.O,{isLoaded:!N,children:(0,l.jsx)(i.x,{fontSize:"xl",fontWeight:"bold",children:k("governance_council_motion_title",{defaultValue:"Council Motion #".concat(n)})})}),(0,l.jsx)(s.O,{isLoaded:!N,children:(0,l.jsx)(c.C,{colorScheme:C((null==z?void 0:z.status)||""),fontSize:"md",px:3,py:1,borderRadius:"md",children:k("governance_status_".concat(((null==z?void 0:z.status)||"").toLowerCase()),{defaultValue:(null==z?void 0:z.status)||""})})})]})}),(0,l.jsxs)(t.xu,{bg:L,borderRadius:"lg",borderWidth:"1px",borderColor:W,p:4,children:[(0,l.jsx)(i.x,{fontWeight:"bold",mb:3,children:k("governance_proposal_info",{defaultValue:"Proposal info"})}),(0,l.jsxs)(u.r,{templateColumns:{base:"1fr",md:"repeat(2, 1fr)"},gap:4,children:[(0,l.jsx)(h.P,{children:(0,l.jsx)(w,{label:k("governance_proposer"),isLoading:N,children:(0,l.jsx)(y.Z,{href:"/substrate/account/".concat(null==z?void 0:z.proposer),color:"link_hovered",children:(0,l.jsx)(i.x,{fontWeight:"medium",children:(null==z?void 0:z.proposer_name)||S((null==z?void 0:z.proposer)||"")})})})}),(0,l.jsx)(h.P,{children:(0,l.jsx)(w,{label:k("governance_module_call"),isLoading:N,children:(0,l.jsx)(i.x,{fontWeight:"medium",children:"".concat((null==z?void 0:z.call_module)||"","/").concat((null==z?void 0:z.call_name)||"")})})}),(0,l.jsx)(h.P,{children:(0,l.jsx)(w,{label:k("governance_block"),isLoading:N,children:(0,l.jsx)(i.x,{fontWeight:"medium",children:(null==z?void 0:z.created_block)||0})})}),(0,l.jsx)(h.P,{children:(0,l.jsx)(w,{label:k("governance_created_time",{defaultValue:"Created time"}),isLoading:N,children:(0,l.jsx)(i.x,{fontWeight:"medium",children:(null==z?void 0:z.created_at)?new Date(z.created_at).toLocaleString():"—"})})}),(null==z?void 0:z.proposal_hash)&&(0,l.jsx)(h.P,{colSpan:{base:1,md:2},children:(0,l.jsx)(w,{label:k("governance_proposal_hash",{defaultValue:"Proposal Hash"}),isLoading:N,children:(0,l.jsx)(i.x,{fontFamily:"mono",fontSize:"sm",wordBreak:"break-all",children:z.proposal_hash})})})]})]}),(0,l.jsxs)(t.xu,{bg:L,borderRadius:"lg",borderWidth:"1px",borderColor:W,p:4,children:[(0,l.jsx)(i.x,{fontWeight:"bold",mb:3,children:k("governance_vote_breakdown",{defaultValue:"Vote breakdown"})}),(0,l.jsxs)(u.r,{templateColumns:{base:"1fr",md:"repeat(2, 1fr)"},gap:4,mb:3,children:[(0,l.jsx)(h.P,{children:(0,l.jsxs)(t.xu,{bg:V,borderRadius:"md",p:3,children:[(0,l.jsx)(i.x,{fontSize:"sm",color:"green.500",children:k("governance_aye_votes",{defaultValue:"Aye votes"})}),(0,l.jsx)(s.O,{isLoaded:!N,children:(0,l.jsx)(i.x,{fontSize:"2xl",fontWeight:"bold",children:(null==z?void 0:z.aye_votes)||0})})]})}),(0,l.jsx)(h.P,{children:(0,l.jsxs)(t.xu,{bg:V,borderRadius:"md",p:3,children:[(0,l.jsx)(i.x,{fontSize:"sm",color:"red.500",children:k("governance_nay_votes",{defaultValue:"Nay votes"})}),(0,l.jsx)(s.O,{isLoaded:!N,children:(0,l.jsx)(i.x,{fontSize:"2xl",fontWeight:"bold",children:(null==z?void 0:z.nay_votes)||0})})]})})]}),(0,l.jsx)(s.O,{isLoaded:!N,children:(0,l.jsx)(x.E,{value:O,size:"md",colorScheme:"green",borderRadius:"md"})}),(0,l.jsx)(s.O,{isLoaded:!N,children:(0,l.jsxs)(i.x,{mt:3,fontSize:"sm",color:T,children:[k("governance_threshold",{defaultValue:"Threshold"}),": ",(null==z?void 0:z.member_threshold)||0]})})]}),(null==z?void 0:z.votes)&&z.votes.length>0&&(0,l.jsxs)(t.xu,{bg:L,borderRadius:"lg",borderWidth:"1px",borderColor:W,overflow:"auto",children:[(0,l.jsx)(t.xu,{p:4,borderBottomWidth:"1px",borderColor:W,children:(0,l.jsxs)(i.x,{fontWeight:"bold",children:[k("governance_votes",{defaultValue:"Votes"}),(0,l.jsxs)(i.x,{as:"span",fontSize:"sm",fontWeight:"normal",color:T,ml:2,children:["(",z.votes.length,")"]})]})}),(0,l.jsxs)(m.i,{variant:"simple",size:"sm",children:[(0,l.jsx)(g.h,{children:(0,l.jsxs)(f.Tr,{children:[(0,l.jsx)(b.Th,{children:k("governance_voter",{defaultValue:"Voter"})}),(0,l.jsx)(b.Th,{children:k("governance_vote_result",{defaultValue:"Vote"})}),(0,l.jsx)(b.Th,{display:{base:"none",md:"table-cell"},children:k("governance_time")}
1)]})}),(0,l.jsx)(p.p,{children:z.votes.map((e,r)=>(0,l.jsxs)(f.Tr,{children:[(0,l.jsx)(v.Td,{children:(0,l.jsx)(y.Z,{href:"/substrate/account/".concat(e.address),color:"link_hovered",children:(0,l.jsx)(i.x,{fontWeight:"medium",children:e.name||S(e.address)})})}),(0,l.jsx)(v.Td,{children:(0,l.jsx)(c.C,{colorScheme:e.passed?"green":"red",variant:"subtle",children:e.passed?"Aye":"Nay"})}),(0,l.jsx)(v.Td,{display:{base:"none",md:"table-cell"},children:(0,l.jsx)(i.x,{fontSize:"sm",color:T,children:e.voting_time?new Date(e.voting_time).toLocaleString():"—"})})]},r))})]})]}),(0,l.jsxs)(t.xu,{bg:L,borderRadius:"lg",borderWidth:"1px",borderColor:W,p:4,children:[(0,l.jsx)(i.x,{fontWeight:"bold",mb:3,children:k("governance_timeline",{defaultValue:"Timeline"})}),(0,l.jsx)(a.g,{align:"stretch",spacing:2,children:(null==z?void 0:null===(r=z.timeline)||void 0===r?void 0:r.length)?z.timeline.map((e,r)=>(0,l.jsx)(t.xu,{borderWidth:"1px",borderColor:W,borderRadius:"md",p:3,children:(0,l.jsxs)(d.U,{justify:"space-between",children:[(0,l.jsxs)(d.U,{spacing:2,children:[(0,l.jsx)(c.C,{colorScheme:C(e.status),variant:"subtle",children:k("governance_status_".concat(e.status.toLowerCase()),{defaultValue:e.status})}),e.block>0&&(0,l.jsxs)(i.x,{fontSize:"sm",color:T,children:["Block #",e.block]})]}),(0,l.jsx)(i.x,{fontSize:"sm",color:T,children:e.timestamp?new Date(e.timestamp).toLocaleString():""})]})},r)):(0,l.jsx)(i.x,{fontSize:"sm",color:T,children:k("governance_timeline_empty",{defaultValue:"No timeline events yet."})})})]})]})}},41689:function(e,r,n){n.d(r,{C:function(){return d}});var l=n(35059),o=n(91639),t=n(33179),i=n(75350),s=n(25432),a=n(85893),d=(0,l.G)(function(e,r){let n=(0,o.mq)("Badge",e),{className:l,...d}=(0,t.Lr)(e);return(0,a.jsx)(i.m.span,{ref:r,className:(0,s.cx)("chakra-badge",e.className),...d,__css:{display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle",...n}})});d.displayName="Badge"},776:function(e,r,n){n.d(r,{P:function(){return d}});var l=n(35059),o=n(75350),t=n(87052),i=n(33951),s=n(85893);function a(e){return(0,i.XQ)(e,e=>"auto"===e?"auto":`span ${e}/span ${e}`)}var d=(0,l.G)(function(e,r){let{area:n,colSpan:l,colStart:i,colEnd:d,rowEnd:c,rowSpan:u,rowStart:h,...x}=e,m=(0,t.o)({gridArea:n,gridColumn:a(l),gridRow:a(u),gridColumnStart:i,gridColumnEnd:d,gridRowStart:h,gridRowEnd:c});return(0,s.jsx)(o.m.div,{ref:r,__css:m,...x})});d.displayName="GridItem"},92874:function(e,r,n){n.d(r,{E:function(){return x}});var l=n(37301),o=n(35059),t=n(75350),i=n(33179),s=n(91639),a=n(55227),d=n(85893),[c,u]=(0,a.k)({name:"ProgressStylesContext",errorMessage:"useProgressStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<Progress />\" "}),h=(0,o.G)((e,r)=>{let{min:n,max:o,value:i,isIndeterminate:s,role:a,...c}=e,h=(0,l.Wt)({value:i,min:n,max:o,isIndeterminate:s,role:a}),x={height:"100%",...u().filledTrack};return(0,d.jsx)(t.m.div,{ref:r,style:{width:`${h.percent}%`,...c.style},...h.bind,...c,__css:x})}),x=(0,o.G)((e,r)=>{var n;let{value:o,min:a=0,max:u=100,hasStripe:x,isAnimated:m,children:g,borderRadius:f,isIndeterminate:b,"aria-label":p,"aria-labelledby":v,"aria-valuetext":j,title:_,role:y,...S}=(0,i.Lr)(e),C=(0,s.jC)("Progress",e),w=null!=f?f:null==(n=C.track)?void 0:n.borderRadius,k={animation:`${l.Ag} 1s linear infinite`},L={...!b&&x&&m&&k,...b&&{position:"absolute",willChange:"left",minWidth:"50%",animation:`${l.YD} 1s ease infinite normal none running`}},W={overflow:"hidden",position:"relative",...C.track};return(0,d.jsx)(t.m.div,{ref:r,borderRadius:w,__css:W,...S,children:(0,d.jsxs)(c,{value:C,children:[(0,d.jsx)(h,{"aria-label":p,"aria-labelledby":v,"aria-valuetext":j,min:a,max:u,value:o,isIndeterminate:b,css:L,borderRadius:w,title:_,role:y}),g]})})});x.displayName="Progress"},36557:function(e,r,n){n.d(r,{i:function(){return h},p:function(){return u}});var l=n(35059),o=n(91639),t=n(33179),i=n(75350),s=n(25432),a=n(55227),d=n(85893),[c,u]=(0,a.k)({name:"TableStylesContext",errorMessage:"useTableStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<Table />\" "}),h=(0,l.G)((e,r)=>{let n=(0,o.jC)("Table",e),{className:l,layout:a,...u}=(0,t.Lr)(e);return(0,d.jsx)(c,{value:n,children:(0,d.jsx)(i.m.table,{ref:r,__css:{tableLayout:a,...n.table},className:(0,s.cx)("chakra-table",l),...u})})});h.displayName="Table"}
1,577:function(e,r,n){n.d(r,{Td:function(){return s}});var l=n(36557),o=n(35059),t=n(75350),i=n(85893),s=(0,o.G)(({isNumeric:e,...r},n)=>{let o=(0,l.p)();return(0,i.jsx)(t.m.td,{...r,ref:n,__css:o.td,"data-is-numeric":e})})},28650:function(e,r,n){n.d(r,{p:function(){return s}});var l=n(36557),o=n(35059),t=n(75350),i=n(85893),s=(0,o.G)((e,r)=>{let n=(0,l.p)();return(0,i.jsx)(t.m.tbody,{...e,ref:r,__css:n.tbody})})},24304:function(e,r,n){n.d(r,{h:function(){return s}});var l=n(36557),o=n(35059),t=n(75350),i=n(85893),s=(0,o.G)((e,r)=>{let n=(0,l.p)();return(0,i.jsx)(t.m.thead,{...e,ref:r,__css:n.thead})})},36526:function(e,r,n){n.d(r,{Tr:function(){return s}});var l=n(36557),o=n(35059),t=n(75350),i=n(85893),s=(0,o.G)((e,r)=>{let n=(0,l.p)();return(0,i.jsx)(t.m.tr,{...e,ref:r,__css:n.tr})})},75421:function(e,r,n){n.d(r,{Th:function(){return s}});var l=n(36557),o=n(35059),t=n(75350),i=n(85893),s=(0,o.G)(({isNumeric:e,...r},n)=>{let o=(0,l.p)();return(0,i.jsx)(t.m.th,{...r,ref:n,__css:o.th,"data-is-numeric":e})})}}]);
2//# sourceMappingURL=2842.4299188d2aceb5d1.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.