1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[537],{6229:function(e,t,a){"use strict";a.d(t,{Z:function(){return s}});let s=(0,a(9182).Z)("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]])},1831:function(e,t,a){"use strict";a.d(t,{Z:function(){return s}});let s=(0,a(9182).Z)("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]])},8306:function(e,t,a){"use strict";a.d(t,{Z:function(){return s}});let s=(0,a(9182).Z)("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]])},6403:function(e,t,a){"use strict";a.d(t,{Z:function(){return s}});let s=(0,a(9182).Z)("Timer",[["line",{x1:"10",x2:"14",y1:"2",y2:"2",key:"14vaq8"}],["line",{x1:"12",x2:"15",y1:"14",y2:"11",key:"17fdiu"}],["circle",{cx:"12",cy:"14",r:"8",key:"1e1u0o"}]])},8389:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/proposals",function(){return a(1949)}])},1949:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return C}});var s=a(4512),r=a(5306),n=a(9218),i=a.n(n),l=a(3478),o=a(2679),c=a(4830),d=a(1831),p=a(6403),m=a(2385),x=a(8306),u=a(9182);let h=(0,u.Z)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);var g=a(6229);let f={en:{status:{active:"Active",ended:"Ended",upcoming:"Upcoming"},voted:"VOTED",votingClosed:"Voting closed",startsOn:"Starts {date}",remaining:"{time} remaining",finalized:"finalized",turnout:"turnout",viewDetails:"View Details"},zh:{status:{active:"è¿è¡ä¸",ended:"å·²ç»æ",upcoming:"å³å°å¼å§"},voted:"å·²æç¥¨",votingClosed:"æç¥¨å·²ç»æ",startsOn:"{date} å¼å§",remaining:"å©ä½ {time}",finalized:"å·² finalized",turnout:"æç¥¨ç",viewDetails:"æ¥ç详æ
"}};function y(e){let{proposal:t}=e,{language:a}=(0,o.Q)(),r=f[a],n="ended"===t.status,u="upcoming"===t.status;return(0,s.jsx)(i(),{href:"/proposal/".concat(t.id),className:"block group",children:(0,s.jsxs)("div",{className:(0,l.cn)("glass-panel-hover p-0 overflow-hidden",n&&"opacity-70"),children:[(0,s.jsx)("div",{className:"h-[1px]",style:{background:"active"===t.status?"linear-gradient(90deg, transparent, hsl(var(--zk-finalized) / 0.3), hsl(var(--primary) / 0.15), transparent)":"upcoming"===t.status?"linear-gradient(90deg, transparent, hsl(var(--zk-pending) / 0.25), transparent)":"linear-gradient(90deg, transparent, hsl(var(--glass-border) / 0.15), transparent)"}}),(0,s.jsxs)("div",{className:"p-7 space-y-5",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)("span",{className:(0,l.cn)("px-2.5 py-[4px] rounded-[7px] text-[9px] font-mono font-semibold tracking-[0.08em] uppercase",{active:"status-finalized",ended:"bg-muted/20 text-muted-foreground/50 border border-border/15",upcoming:"status-pending"}[t.status]),children:r.status[t.status]}),(0,s.jsx)("span",{className:"text-[11px] font-mono text-muted-foreground/40 tracking-[0.04em]",children:t.id}),t.voted&&(0,s.jsxs)("span",{className:"flex items-center gap-1.5 px-2.5 py-[4px] rounded-[7px] text-[9px] font-mono font-semibold tracking-[0.06em]",style:{background:"linear-gradient(135deg, hsl(var(--primary) / 0.08), hsl(var(--primary) / 0.03))",color:"hsl(var(--primary))",border:"1px solid hsl(var(--primary) / 0.12)",boxShadow:"inset 0 1px 0 0 hsl(var(--primary) / 0.04)"},children:[(0,s.jsx)(c.Z,{className:"w-[9px] h-[9px]"}),r.voted]})]}),(0,s.jsxs)("div",{className:"flex items-center gap-1.5 text-[10px] text-muted-foreground/40",children:[n?(0,s.jsx)(d.Z,{className:"w-3 h-3 opacity-40"}):(0,s.jsx)(p.Z,{className:"w-3 h-3 opacity-50"}),(0,s.jsx)("span",{className:(0,l.cn)("font-mono tracking-[0.03em]",!n&&!u&&"text-muted-foreground/60"),children:(()=>{if(n)return r.votingClosed;if(u)return r.startsOn.replace("{date}",t.endTime.split(" ")[0]);let e=new Date(t.endTime.replace(" UTC","Z")),a=new Date("2026-03-08T12:00:00Z"),s=e.getTime()-a.getTime(),i=Math.floor(s/864e5),l=Math.floor(s%864e5/36e5),o=i>0?"".concat(i,"d ").concat(l,"h"):"".concat(l,"h");return r.remaining.replace("{time}",o)})()})]})]}),(0,s.jsx)("h3",{className:"text-[15px] font-semibold leading-[1.45] tracking-[-0.015em] group-hover:text-foreground transition-colors duration-300",children:t.title}
1),(0,s.jsx)("p",{className:"text-[12px] text-muted-foreground/45 line-clamp-2 leading-[1.7] tracking-[0.005em]",children:t.description}),(0,s.jsx)("div",{className:"glow-line"}),(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsxs)("div",{className:"flex items-center gap-5 text-[10px] text-muted-foreground/40 tracking-[0.03em]",children:[(0,s.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,s.jsx)(m.Z,{className:"w-3 h-3 opacity-40"}),(0,s.jsx)("span",{className:"text-muted-foreground/50",children:t.nftSource})]}),(0,s.jsxs)("span",{className:"flex items-center gap-1.5 font-mono tracking-[0.04em]",children:[(0,s.jsx)(x.Z,{className:"w-3 h-3 opacity-35"}),"#",t.snapshotBlock.toLocaleString()]}),(0,s.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,s.jsx)(c.Z,{className:"w-3 h-3 text-zk-finalized/60"}),(0,s.jsx)("span",{className:"text-zk-finalized/60 font-mono",children:t.finalizedVotes}),(0,s.jsx)("span",{className:"text-muted-foreground/30",children:r.finalized})]}),(0,s.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,s.jsx)(h,{className:"w-3 h-3 opacity-35"}),(0,s.jsxs)("span",{className:"font-mono",children:[t.turnout,"%"]}),(0,s.jsx)("span",{className:"text-muted-foreground/30",children:r.turnout})]})]}),(0,s.jsxs)("span",{className:"flex items-center gap-1.5 text-[11px] font-medium text-primary/60 group-hover:text-primary transition-colors duration-300 tracking-[0.02em]",children:[r.viewDetails,(0,s.jsx)(g.Z,{className:"w-3.5 h-3.5 transition-transform duration-300 group-hover:translate-x-0.5"})]})]})]})]})})}var v=a(7994),k=a(2620),j=a(6894),N=a(6911);let b=(0,u.Z)("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]),w=(0,u.Z)("ChartColumn",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);var z=a(2735);let Z={en:{title:"Anonymous Proposals",description:"Browse governance proposals eligible for anonymous voting. Eligibility is locked at snapshotBlock and only finalized proofs via zkVerifyJS count toward the tally.",stats:{total:"Total Proposals",eligible:"Eligible",voted:"Voted"},filters:{eligible:"Eligible",active:"Ongoing",ended:"Ended"},searchPlaceholder:"Search proposals...",emptySearch:"No proposals match your search",emptyCategory:"No proposals in this category"},zh:{title:"å¿åææ¡",description:"æµè§æ¯æå¿åæç¥¨çæ²»çææ¡ãèµæ ¼å¨ snapshotBlock åºå®ï¼åªæéè¿ zkVerifyJS è¾¾å° finalized çè¯ææä¼è®¡å
¥ç»æã",stats:{total:"ææ¡æ»æ°",eligible:"å¯åä¸",voted:"å·²æç¥¨"},filters:{eligible:"å¯åä¸",active:"è¿è¡ä¸",ended:"å·²ç»æ"},searchPlaceholder:"æç´¢ææ¡...",emptySearch:"没æå¹é
æç´¢æ¡ä»¶çææ¡",emptyCategory:"该åç±»ä¸ææ ææ¡"}};var C=()=>{let{language:e}=(0,o.Q)(),{address:t}=(0,k.O)(),a=Z[e],[n,i]=(0,z.useState)("eligible"),[d,p]=(0,z.useState)(""),{data:m=[],isLoading:x}=(0,v.vf)(t),u=(0,z.useMemo)(()=>{let e=m;if("eligible"===n?e=e.filter(e=>e.eligible&&"ended"!==e.status):"active"===n?e=e.filter(e=>"active"===e.status||"upcoming"===e.status):"ended"===n&&(e=e.filter(e=>"ended"===e.status)),d.trim()){let t=d.toLowerCase();e=e.filter(e=>e.title.toLowerCase().includes(t)||e.description.toLowerCase().includes(t)||e.id.toLowerCase().includes(t))}return e},[n,m,d]),h=(0,z.useMemo)(()=>({total:m.length,eligible:m.filter(e=>e.eligible).length,voted:m.filter(e=>e.voted).length}),[m]),g=[{key:"eligible",label:a.filters.eligible},{key:"active",label:a.filters.active},{key:"ended",label:a.filters.ended}];return(0,s.jsx)(r.L,{children:(0,s.jsxs)("div",{className:"container max-w-[60rem] py-12 space-y-8 animate-slide-in",children:[(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsx)("h1",{className:"text-[1.75rem] font-bold tracking-[-0.03em]",children:a.title}),(0,s.jsx)("p",{className:"text-[13px] text-muted-foreground/45 leading-[1.7] max-w-2xl tracking-[0.005em]",children:a.description})]}),(0,s.jsx)("div",{className:"grid grid-cols-3 gap-4",children:[{label:a.stats.total,value:h.total,icon:j.Z,color:"--foreground"},{label:a.stats.eligible,value:h.eligible,icon:c.Z,color:"--zk-finalized"},{label:a.stats.voted,value:h.voted,icon:N.Z,color:"--primary"}].map(e=>(0,s.jsxs)("div",{className:"glass-panel p-5 flex items-center gap-4",children:[(0,s.jsx)("div",{className:"w-10 h-10 rounded-[10px] flex items-center justify-center shrink-0",style:{background:"linear-gradient(145deg, hsl(var(".concat(e.color,") / 0.1), hsl(var(").concat(e.color,") / 0.04))"),border:"1px solid hsl(var(".concat(e.color,") / 0.08)"),boxShadow:"inset 0 1px 0 0 hsl(var(".concat(e.color,") / 0.06), 0 0 16px -6px hsl(var(").concat(e.color,") / 0.06)")},children:(0,s.jsx)(e.icon,{className:"w-[17px] h-[17px]",style:{color:"hsl(var(".concat(e.color,"))"),opacity:.8}})}),(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"text-[22px] font-bold tracking-[-0.02em] font-mono",children:e.value}
1),(0,s.jsx)("div",{className:"text-[10px] text-muted-foreground/40 tracking-[0.06em] uppercase font-medium mt-0.5",children:e.label})]})]},e.label))}),(0,s.jsxs)("div",{className:"flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4",children:[(0,s.jsx)("div",{className:"flex items-center gap-1.5",children:g.map(e=>(0,s.jsx)("button",{onClick:()=>i(e.key),className:(0,l.cn)("px-4 py-2.5 rounded-[9px] text-[11px] font-semibold tracking-[0.05em] uppercase transition-all duration-350",n===e.key?"text-primary":"text-muted-foreground/50 hover:text-muted-foreground/70"),style:n===e.key?{background:"linear-gradient(135deg, hsl(var(--primary) / 0.08), hsl(var(--primary) / 0.03))",border:"1px solid hsl(var(--primary) / 0.12)",boxShadow:"inset 0 1px 0 0 hsl(var(--primary) / 0.05), 0 0 16px -6px hsl(var(--primary) / 0.1)"}:{background:"transparent",border:"1px solid transparent"},children:e.label},e.key))}),(0,s.jsxs)("div",{className:"flex items-center gap-2.5 px-4 py-3 rounded-[10px] glass-input w-full sm:w-auto sm:min-w-[260px]",children:[(0,s.jsx)(b,{className:"w-4 h-4 text-muted-foreground/25 shrink-0"}),(0,s.jsx)("input",{type:"text",value:d,onChange:e=>p(e.target.value),placeholder:a.searchPlaceholder,className:"bg-transparent text-[13px] outline-none placeholder:text-muted-foreground/30 w-full tracking-[0.01em]"})]})]}),(0,s.jsxs)("div",{className:"grid gap-5",children:[x&&(0,s.jsx)("div",{className:"glass-panel p-10 text-center text-[12px] text-muted-foreground/40",children:"Loading proposals..."}),u.map((e,t)=>(0,s.jsx)("div",{style:{animationDelay:"".concat(50*t,"ms")},className:"animate-slide-in",children:(0,s.jsx)(y,{proposal:e})},e.id))]}),0===u.length&&(0,s.jsxs)("div",{className:"glass-panel p-20 text-center space-y-3",children:[(0,s.jsx)(w,{className:"w-8 h-8 text-muted-foreground/20 mx-auto"}),(0,s.jsx)("p",{className:"text-[13px] text-muted-foreground/35 tracking-[0.01em]",children:d?a.emptySearch:a.emptyCategory})]})]})})}}},function(e){e.O(0,[451,385,764,888,774,179],function(){return e(e.s=8389)}),_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.