1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[470],{9900:function(e,t,a){"use strict";a.d(t,{Z:function(){return n}});let n=(0,a(9182).Z)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},1831:function(e,t,a){"use strict";a.d(t,{Z:function(){return n}});let n=(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"}]])},7147:function(e,t,a){"use strict";a.d(t,{Z:function(){return n}});let n=(0,a(9182).Z)("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]])},5111:function(e,t,a){"use strict";a.d(t,{Z:function(){return n}});let n=(0,a(9182).Z)("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]])},6708:function(e,t,a){"use strict";a.d(t,{Z:function(){return n}});let n=(0,a(9182).Z)("Hash",[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]])},6531:function(e,t,a){"use strict";a.d(t,{Z:function(){return n}});let n=(0,a(9182).Z)("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},4579:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/my-votes",function(){return a(6375)}])},6375:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return w}});var n=a(4512),l=a(5306),s=a(3478),r=a(2679);let i={en:{pending:"pending",includedInBlock:"includedInBlock",finalized:"finalized",error:"error"},zh:{pending:"å¾
å¤ç",includedInBlock:"å·²å
¥å",finalized:"已宿",error:"é误"}};function o(e){let{status:t,className:a}=e,{language:l}=(0,r.Q)(),o={label:i[l][t],className:"pending"===t?"status-pending":"includedInBlock"===t?"status-included":"finalized"===t?"status-finalized":"status-error"};return(0,n.jsxs)("span",{className:(0,s.cn)("inline-flex items-center gap-2 px-3 py-[5px] rounded-[8px] text-[10px] font-mono font-medium tracking-[0.05em]",o.className,a),children:[(0,n.jsx)("span",{className:(0,s.cn)("w-[5px] h-[5px] rounded-full","pending"===t&&"bg-zk-pending animate-pulse-glow","includedInBlock"===t&&"bg-zk-included animate-pulse-glow","finalized"===t&&"bg-zk-finalized","error"===t&&"bg-zk-error")}),o.label]})}var c=a(7994),d=a(2620),p=a(9218),u=a.n(p),x=a(4830),m=a(1831),f=a(7147),h=a(9900),g=a(6894),v=a(6708),y=a(5111),k=a(6531),N=a(2385),j=a(2735);let b={en:{back:"Back to proposals",title:"My Anonymous Votes",description:"Review your voting history and proof verification status. This page is reconstructed from local identity context and backend records and does not expose any wallet-to-vote identity mapping.",stats:{total:"Total Votes",counted:"Counted",failed:"Failed"},filters:{all:"All",finalized:"Finalized",failed:"Failed"},counted:"Counted",notCounted:"Not Counted",votedLabel:"Voted",intermediateWarning:"Intermediate state - not yet counted toward tally",failedWarning:"Proof verification failed - vote not counted",noVotes:"No votes in this category",nullifierNote:"This nullifier is deterministic and single-use. Resubmission with the same nullifier will be rejected, preventing duplicate votes without revealing voter identity.",viewProposal:"View proposal"},zh:{back:"è¿åææ¡å表",title:"æçå¿åæç¥¨",description:"æ¥çä½ çæç¥¨åå²åè¯æéªè¯ç¶æã该页é¢åºäºæ¬å°èº«ä»½ä¸ä¸æä¸å端记å½é建ï¼ä¸ä¼æ´é²ä»»ä½é±å
å°æç¥¨ç身份æ å°ã",stats:{total:"æç¥¨æ»æ°",counted:"已计票",failed:"失败"},filters:{all:"å
¨é¨",finalized:"å·² Finalized",failed:"失败"},counted:"已计票",notCounted:"æªè®¡ç¥¨",votedLabel:"å·²æ",intermediateWarning:"ä¸é´ç¶æï¼å°æªè®¡å
¥ç»æ",failedWarning:"è¯æéªè¯å¤±è´¥ï¼æç¥¨æªè®¡å
¥ç»æ",noVotes:"该åç±»ä¸ææ æç¥¨è®°å½",nullifierNote:"该 nullifier æ¯ç¡®å®æ§çä¸åªè½ä½¿ç¨ä¸æ¬¡ãéå¤æäº¤ç¸å nullifier ä¼è¢«æç»ï¼ä»èå¨ä¸æ´é²èº«ä»½çåæä¸é²æ¢éå¤æç¥¨ã",viewProposal:"æ¥çææ¡"}};var w=()=>{let{language:e}=(0,r.Q)(),{address:t}
1=(0,d.O)(),a=b[e],[i,p]=(0,j.useState)("all"),[w,z]=(0,j.useState)(null),{data:Z=[]}=(0,c.pC)(t),S=(0,j.useMemo)(()=>Z.map(e=>({...e,counted:"finalized"===e.proofStatus})),[Z]),C=(0,j.useMemo)(()=>"finalized"===i?S.filter(e=>"finalized"===e.proofStatus):"failed"===i?S.filter(e=>"error"===e.proofStatus):S,[i,S]),_=(0,j.useMemo)(()=>({total:S.length,counted:S.filter(e=>e.counted).length,failed:S.filter(e=>"error"===e.proofStatus).length}),[S]),H=[{key:"all",label:a.filters.all,count:_.total},{key:"finalized",label:a.filters.finalized,count:_.counted},{key:"failed",label:a.filters.failed,count:_.failed}],I=e=>"finalized"===e?{label:a.counted,color:"--zk-finalized",icon:x.Z}:"error"===e?{label:a.notCounted,color:"--zk-error",icon:m.Z}:{label:a.notCounted,color:"--zk-pending",icon:f.Z};return(0,n.jsx)(l.L,{children:(0,n.jsxs)("div",{className:"container max-w-[64rem] py-10 space-y-8 animate-slide-in",children:[(0,n.jsx)("div",{className:"flex items-start justify-between gap-6",children:(0,n.jsxs)("div",{className:"space-y-3",children:[(0,n.jsxs)(u(),{href:"/proposals",className:"inline-flex items-center gap-2 text-[11px] text-muted-foreground/35 hover:text-muted-foreground/55 transition-colors tracking-[0.03em] mb-2",children:[(0,n.jsx)(h.Z,{className:"w-3.5 h-3.5"}),a.back]}),(0,n.jsx)("h1",{className:"text-[1.6rem] font-bold tracking-[-0.03em]",children:a.title}),(0,n.jsx)("p",{className:"text-[13px] text-muted-foreground/40 leading-[1.7] max-w-xl tracking-[0.005em]",children:a.description})]})}),(0,n.jsx)("div",{className:"grid grid-cols-3 gap-4",children:[{label:a.stats.total,value:_.total,icon:g.Z,color:"--foreground"},{label:a.stats.counted,value:_.counted,icon:x.Z,color:"--zk-finalized"},{label:a.stats.failed,value:_.failed,icon:m.Z,color:"--zk-error"}].map(e=>(0,n.jsxs)("div",{className:"glass-panel p-4 flex items-center gap-3.5",children:[(0,n.jsx)("div",{className:"w-9 h-9 rounded-[9px] flex items-center justify-center shrink-0",style:{background:"linear-gradient(145deg, hsl(var(".concat(e.color,") / 0.08), hsl(var(").concat(e.color,") / 0.03))"),border:"1px solid hsl(var(".concat(e.color,") / 0.07)"),boxShadow:"inset 0 1px 0 0 hsl(var(".concat(e.color,") / 0.04)")},children:(0,n.jsx)(e.icon,{className:"w-4 h-4",style:{color:"hsl(var(".concat(e.color,"))"),opacity:.7}})}),(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:"text-[20px] font-bold tracking-[-0.02em] font-mono",children:e.value}),(0,n.jsx)("div",{className:"text-[9px] text-muted-foreground/35 tracking-[0.07em] uppercase font-medium",children:e.label})]})]},e.label))}),(0,n.jsx)("div",{className:"flex items-center gap-1.5",children:H.map(e=>(0,n.jsxs)("button",{onClick:()=>{p(e.key),z(null)},className:(0,s.cn)("px-4 py-2.5 rounded-[9px] text-[11px] font-semibold tracking-[0.05em] uppercase transition-all duration-350 flex items-center gap-2",i===e.key?"text-primary":"text-muted-foreground/40 hover:text-muted-foreground/60"),style:i===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,(0,n.jsx)("span",{className:(0,s.cn)("text-[9px] font-mono",i===e.key?"text-primary/60":"text-muted-foreground/25"),children:e.count})]},e.key))}),(0,n.jsx)("div",{className:"space-y-3",children:C.map((e,t)=>{let l=I(e.proofStatus),r=w===t;return(0,n.jsxs)("div",{className:"animate-slide-in",style:{animationDelay:"".concat(40*t,"ms")},children:[(0,n.jsxs)("button",{onClick:()=>z(r?null:t),className:"w-full text-left glass-panel-hover p-0 overflow-hidden",children:[(0,n.jsx)("div",{className:"h-[1px]",style:{background:"finalized"===e.proofStatus?"linear-gradient(90deg, transparent, hsl(var(--zk-finalized) / 0.2), transparent)":"error"===e.proofStatus?"linear-gradient(90deg, transparent, hsl(var(--zk-error) / 0.15), transparent)":"linear-gradient(90deg, transparent, hsl(var(--zk-pending) / 0.15), transparent)"}}),(0,n.jsxs)("div",{className:"p-6",children:[(0,n.jsxs)("div",{className:"flex items-center gap-5",children:[(0,n.jsx)("div",{className:"w-9 h-9 rounded-[9px] flex items-center justify-center shrink-0",style:{background:"linear-gradient(145deg, hsl(var(".concat(l.color,") / 0.1), hsl(var(").concat(l.color,") / 0.03))"),border:"1px solid hsl(var(".concat(l.color,") / 0.12)"),boxShadow:"0 0 12px -4px hsl(var(".concat(l.color,") / 0.1), inset 0 1px 0 0 hsl(var(").concat(l.color,") / 0.05)")},children:(0,n.jsx)(l.icon,{className:"w-4 h-4",style:{color:"hsl(var(".concat(l.color,"))")}})}),(0,n.jsxs)("div",{className:"flex-1 min-w-0 space-y-1.5",children:[(0,n.jsxs)("div",{className:"flex items-center gap-3",children:[(0,n.jsx)("span",{className:"text-[10px] font-mono text-muted-foreground
1/35 tracking-[0.04em]",children:e.proposalId}),(0,n.jsx)("span",{className:"text-[10px] text-muted-foreground/25",children:"\xb7"}),(0,n.jsxs)("span",{className:"text-[10px] text-muted-foreground/40 tracking-[0.02em]",children:[a.votedLabel,": ",(0,n.jsx)("span",{className:"text-foreground/65 font-medium",children:e.option})]})]}),(0,n.jsx)("p",{className:"text-[13px] font-medium truncate tracking-[-0.01em] text-foreground/80",children:e.proposalTitle})]}),(0,n.jsxs)("div",{className:"flex items-center gap-3 shrink-0",children:[(0,n.jsx)("span",{className:(0,s.cn)("px-2.5 py-[4px] rounded-[7px] text-[9px] font-mono font-semibold tracking-[0.06em] uppercase"),style:{background:"linear-gradient(135deg, hsl(var(".concat(l.color,") / 0.08), hsl(var(").concat(l.color,") / 0.03))"),color:"hsl(var(".concat(l.color,"))"),border:"1px solid hsl(var(".concat(l.color,") / 0.12)"),boxShadow:"inset 0 1px 0 0 hsl(var(".concat(l.color,") / 0.04)")},children:l.label}),(0,n.jsx)(o,{status:e.proofStatus})]})]}),(0,n.jsxs)("div",{className:"flex items-center gap-5 mt-3.5 ml-14 text-[9px] font-mono text-muted-foreground/28 tracking-[0.04em]",children:[(0,n.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,n.jsx)(v.Z,{className:"w-3 h-3 opacity-50"}),e.nullifierHash.slice(0,12),"â¦",e.nullifierHash.slice(-4)]}),(0,n.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,n.jsx)(y.Z,{className:"w-3 h-3 opacity-40"}),e.txHash.slice(0,12),"â¦",e.txHash.slice(-4)]}),(0,n.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,n.jsx)(f.Z,{className:"w-3 h-3 opacity-40"}),e.submittedAt]}),(0,n.jsxs)("span",{className:"text-muted-foreground/20",children:["statusSource: ",(0,n.jsx)("span",{className:"text-primary/50",children:e.statusSource})]})]}),"includedInBlock"===e.proofStatus&&(0,n.jsxs)("div",{className:"flex items-center gap-2 mt-3 ml-14 text-[9px] text-zk-pending/60 tracking-[0.02em]",children:[(0,n.jsx)(k.Z,{className:"w-3 h-3"}),a.intermediateWarning]}),"error"===e.proofStatus&&(0,n.jsxs)("div",{className:"flex items-center gap-2 mt-3 ml-14 text-[9px] text-zk-error/60 tracking-[0.02em]",children:[(0,n.jsx)(k.Z,{className:"w-3 h-3"}),a.failedWarning]})]})]}),r&&(0,n.jsxs)("div",{className:"glass-panel mt-1 p-6 space-y-5 animate-slide-in",children:[(0,n.jsx)("div",{className:"grid sm:grid-cols-2 gap-3",children:[{label:"proofId",value:e.proofId},{label:"nullifierHash",value:e.nullifierHash},{label:"txHash",value:e.txHash},{label:"statusSource",value:e.statusSource,highlight:!0},{label:"zkVerifyStatus",value:e.proofStatus},{label:"submittedAt",value:e.submittedAt}].map(t=>(0,n.jsxs)("div",{className:"info-panel px-4 py-3 space-y-1",children:[(0,n.jsx)("span",{className:"text-[7px] font-mono text-muted-foreground/25 tracking-[0.12em] uppercase block",children:t.label}),"zkVerifyStatus"===t.label?(0,n.jsx)(o,{status:e.proofStatus}):(0,n.jsx)("p",{className:(0,s.cn)("font-mono text-[9px] break-all tracking-[0.02em]",t.highlight?"text-primary/70":"text-foreground/55"),children:t.value})]},t.label))}),(0,n.jsxs)("div",{className:"flex items-start gap-2.5 text-[8px] text-muted-foreground/25 font-mono tracking-[0.04em] leading-[1.7]",children:[(0,n.jsx)(N.Z,{className:"w-3 h-3 mt-0.5 shrink-0 text-primary/30"}),(0,n.jsx)("span",{children:a.nullifierNote})]}),(0,n.jsxs)(u(),{href:"/proposal/".concat(e.proposalId),className:"inline-flex items-center gap-1.5 text-[10px] text-primary/60 hover:text-primary transition-colors tracking-[0.02em] font-medium",children:[a.viewProposal," ",(0,n.jsx)(y.Z,{className:"w-3 h-3"})]})]})]},t)})}),0===C.length&&(0,n.jsxs)("div",{className:"glass-panel p-16 text-center space-y-3",children:[(0,n.jsx)(g.Z,{className:"w-7 h-7 text-muted-foreground/15 mx-auto"}),(0,n.jsx)("p",{className:"text-[12px] text-muted-foreground/30 tracking-[0.01em]",children:a.noVotes})]})]})})}}},function(e){e.O(0,[451,385,764,888,774,179],function(){return e(e.s=4579)}),_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.