PageSourceSearch

https://maci-platform.vercel.app/_next/static/chunks/pages/rounds/[pollId]-debf927e7907590d.js

js maci-platform.vercel.app collected 2026-10-03 07:16:53 UTC 31,038 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9738,45],{60212:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/rounds/[pollId]",function(){return r(97122)}])},36943:function(e,t,r){"use strict";r.d(t,{u:function(){return l}});var n=r(97458),s=r(4581);let l=e=>{let{title:t,children:r=null}=e;return(0,n.jsxs)("div",{className:"m-2 flex flex-col items-center justify-center rounded border p-8",children:[(0,n.jsx)(s.X,{as:"h3",className:"mt-0",size:"lg",children:t}),(0,n.jsx)("div",{children:r})]})}},80413:function(e,t,r){"use strict";r.d(t,{X:function(){return l}});var n=r(97458),s=r(7829);let l=e=>{let{src:t="",fallbackSrc:r="",isLoading:l=!1,className:a="",...i}=e;return(0,n.jsx)("div",{...i,className:(0,s.Z)(a,"bg-cover bg-center",{"blur-[40px]":r&&!t,"animate-pulse bg-gray-100":l}),style:{backgroundImage:'url("'.concat(t||r,'")')}})}},99340:function(e,t,r){"use strict";r.d(t,{Bc:function(){return g},F2:function(){return j},Mj:function(){return v},NI:function(){return y},Ph:function(){return p},XZ:function(){return m},__:function(){return x},gx:function(){return b},hj:function(){return N},l0:function(){return w}});var n=r(97458),s=r(21743),l=r(13493),a=r(59800),i=r(52983),o=r(33596),u=r(43753),c=r(83270),d=r(4581),f=r(33302),h=r(75884);let p=(0,h.L)("select",(0,u.tv)({base:[...f.cX],variants:{error:{true:"!border-red-900"}}})),m=(0,h.L)("input",(0,u.tv)({base:[...f.cX,"rounded-none checked:focus:dark:bg-gray-700 checked:hover:dark:bg-gray-700"]})),x=(0,h.L)("label",(0,u.tv)({base:"block tracking-wider font-medium text-black font-sans text-sm leading-5 dark:text-white",variants:{required:{true:"after:content-['*'] after:text-blue-400",false:"after:content-['(optional)'] after:text-gray-300 after:leading-[18px] after:text-xs after:font-normal after:ml-1"}}})),g=(0,h.L)("div",(0,u.tv)({base:"pt-1 text-xs text-red"})),b=(0,h.L)("textarea",(0,u.tv)({base:[...f.cX,"w-full"]})),v=(0,i.forwardRef)((e,t)=>{let{...r}=e;return(0,n.jsxs)(f.SP,{children:[(0,n.jsx)(f.SQ,{children:(0,n.jsx)(l.Z,{})}),(0,n.jsx)(f.II,{ref:t,...r,className:"rounded-lg pl-10"})]})});v.displayName="SearchInput";let y=e=>{let{name:t,label:r="",hint:s="",required:l=!1,children:a=null,valueAsNumber:u=!1,className:d="",description:f=""}=e,{register:h,formState:{errors:p}}=(0,o.Gc)(),[m]=t.split("."),b=m&&p[m];return(0,n.jsxs)("fieldset",{className:(0,c.cn)("flex flex-col gap-1",d),children:[(0,n.jsxs)("div",{className:"flex items-center gap-1",children:[r&&(0,n.jsx)(x,{className:"dark:text-white",htmlFor:t,required:l,children:r}),s&&(0,n.jsx)("span",{className:"text-xs font-normal leading-[18px] text-gray-300",children:"(".concat(s,")")})]}),(0,i.cloneElement)(a,{id:t,error:String(b),...h(t,{valueAsNumber:u})}),f&&(0,n.jsx)("span",{className:"text-sm font-normal leading-5 text-gray-300",children:f}),b&&(0,n.jsx)(g,{children:b.message})]})},j=e=>{var t,r;let{title:s,description:l,name:i,renderField:u}=e,c=(0,o.Gc)(),{fields:f,append:h,remove:p}=(0,o.Dq)({control:c.control,name:i}),m=null!==(r=null===(t=c.formState.errors[i])||void 0===t?void 0:t.message)&&void 0!==r?r:"";return(0,n.jsxs)("div",{className:"flex flex-col gap-[10px] dark:text-white",children:[(0,n.jsxs)("div",{className:"flex flex-col gap-[3px]",children:[(0,n.jsx)(d.X,{className:"font-sans text-2xl font-bold",children:s}),(0,n.jsx)("span",{className:"font-sans text-sm font-normal leading-5 text-gray-400",children:l})]}),m&&(0,n.jsx)("div",{className:"border border-red-900 p-2",children:String(m)}),f.map((e,t)=>(0,n.jsxs)("div",{className:"relative flex flex-col",children:[(0,n.jsx)("div",{className:"gap-4 md:flex",children:u(e,t)}),(0,n.jsx)("button",{className:"absolute bottom-0 right-0 font-sans text-sm text-gray-400 underline duration-200 hover:text-blue-500",type:"button",onClick:()=>{p(t)},children:"Delete"})]},e.id)),(0,n.jsxs)("button",{className:"flex w-full items-center gap-[6px] border-t border-gray-100 p-[6px] pt-4 font-sans text-xs font-semibold uppercase text-black duration-200 hover:text-blue-500 dark:text-white",type:"button",onClick:()=>{h({})},children:[(0,n.jsx)(a.Z,{className:"size-4"}),"Add row"]})]})},N=e=>{let{title:t,description:r,children:s=null,className:l="",...a}=e;
1return(0,n.jsxs)("section",{className:(0,c.cn)("flex max-w-[824px] flex-col gap-10",l),...a,children:[(0,n.jsxs)("div",{className:"flex flex-col gap-[10px]",children:[(0,n.jsx)(d.X,{className:"font-sans text-2xl font-bold",children:t}),(0,n.jsx)("p",{className:"font-sans text-base font-normal leading-6 text-gray-400",children:r})]}),(0,n.jsx)("div",{className:"flex flex-col gap-6",children:s})]})},w=e=>{let{schema:t,children:r,values:l,defaultValues:a,onSubmit:u}=e,c=(0,o.cI)({defaultValues:a,values:l,resolver:(0,s.F)(t),mode:"onBlur"}),[d,f]=(0,i.useState)(null),h=(0,i.useCallback)(c.handleSubmit(e=>{f(null),u(e,c)},()=>{f("There are errors in the form. Please go back and check the warnings.")}),[f,u,c]);return(0,i.useEffect)(()=>{let e;return d&&(e=setTimeout(()=>{f(null)},7e3)),()=>{clearTimeout(e)}},[d]),(0,n.jsx)(o.RV,{...c,children:(0,n.jsxs)("form",{onSubmit:h,children:[r,d&&(0,n.jsx)(g,{style:{textAlign:"end"},children:d})]})})}},33302:function(e,t,r){"use strict";r.d(t,{ID:function(){return o},II:function(){return a},SP:function(){return i},SQ:function(){return u},cX:function(){return l}});var n=r(43753),s=r(75884);let l=["text-black text-sm leading-5 font-normala font-sans","duration-200","disabled:opacity-30","checked:bg-gray-800","rounded border outline border-gray-200 outline-transparent","py-[9px] px-[10px]","placeholder:text-gray-300","dark:bg-black dark:text-white dark:border-gray-800","focus:border-blue-300 focus:outline-blue-300"],a=(0,s.L)("input",(0,n.tv)({base:["w-full",...l],variants:{error:{true:"!border-red-900"}}})),i=(0,s.L)("div",(0,n.tv)({base:"flex w-full relative",variants:{}})),o=(0,s.L)("div",(0,n.tv)({base:"absolute right-0 text-gray-900 inline-flex items-center justify-center h-full border-gray-300 border-l px-4 font-semibold",variants:{disabled:{true:"text-gray-500"}}})),u=(0,s.L)("div",(0,n.tv)({base:"absolute text-gray-600 left-0 inline-flex items-center justify-center h-full px-4"}))},37114:function(e,t,r){"use strict";r.d(t,{O:function(){return l}});var n=r(97458),s=r(83270);let l=e=>{let{isLoading:t=!1,className:r,children:l}=e;return t?(0,n.jsx)("span",{className:(0,s.cn)("inline-flex h-full min-w-[20px] animate-pulse rounded bg-gray-200",r)}):(0,n.jsx)("div",{children:l})}},43902:function(e,t,r){"use strict";r.d(t,{A:function(){return a}});var n=r(97458),s=r(43753);let l=(0,r(75884).L)("div",(0,s.tv)({base:"flex rounded-lg text-base font-sans font-medium border py-6 px-4 leading-6 justify-center mb-4",variants:{status:{default:"text-blue-600 border-blue-600 bg-blue-400",pending:"text-[#4E1D0D] border-[#4E1D0D] bg-[#FFEDD5] dark:text-[#F1B37A] dark:bg-[#4E1D0D] dark:border-[#F1B37A]",approved:"text-[#14532D] border-[#14532D] bg-[#BBF7D0] dark:text-[#4ADE80] dark:border-[#4ADE80] dark:bg-[#031E0C]",declined:"text-[#F87171] border-[#F87171] bg-[#FEE2E2] dark:text-[#F87171] dark:border-[#F87171] dark:bg-[#3D0B0B]"}},defaultVariants:{status:"default"}})),a=e=>{let{status:t,content:r}=e;return(0,n.jsx)(l,{status:t,children:r})}},20265:function(e,t,r){"use strict";r.d(t,{V:function(){return s}});var n=r(43753);let s=(0,r(75884).L)("div",(0,n.tv)({base:"cursor-pointer font-inter inline-flex items-center border border-blue-500 justify-center gap-2 text-blue-500 whitespace-nowrap transition hover:bg-blue-50",variants:{size:{xs:"rounded py-1 px-[6px] text-[10px] leading-[16px] tracking-[0.05px]",sm:"rounded py-[2px] px-2 text-sm tracking-[0.05px]",md:"rounded-lg py-[2px] px-2 text-sm",lg:"rounded-xl py-2 px-4 text-lg"},selected:{true:"bg-blue-500 text-white hover:text-blue-500"},disabled:{true:"border-gray-200 text-gray-200 cursor-not-allowed"}},defaultVariants:{size:"md"}}))},14714:function(e,t,r){"use strict";r.d(t,{t:function(){return i}});var n=r(97458),s=r(43753),l=r(80413);let a=(0,r(75884).L)(l.X,(0,s.tv)({base:"bg-gray-200 border-2 border-white bg-center",variants:{size:{xs:"w-5 h-5 rounded-xs",sm:"w-12 h-12 rounded-md",md:"w-16 h-16 rounded-md",lg:"w-40 h-40 rounded-3xl"},rounded:{full:"rounded-full"},bordered:{true:"outline outline-white"}},defaultVariants:{size:"md"}})),i=e=>{let{url:t,...r}=e;return(0,n.jsx)(a,{...r,src:t})}},35857:function(e,t,r){"use strict";r.d(t,{Q:function(){return a}});var n=r(97458),s=r(80413),l=r(83270);let a=e=>{let{url:t,size:r="lg",className:a,...i}=e;return(0,n.jsx)("div",{className:"overflow-hidden",children:(0,n.jsx)(s.X,{className:(0,l.cn)("rounded-[10px]",a,{"h-[134px]":"sm"===r,"h-[211px]":"lg"===r}),fallbackSrc:t,src:t,...i})})}},22575:function(e,t,r){"use strict";r.d(t,{Lq:function(){return w},RS:function(){return S}});var n=r(97458),s=r(18035),l=r.n(s),a=r(17207),i=r.n(a),o=r(11251),u=r(54259),c=r(37114),d=r(41433),f=r(74262),h=r(73497),p=r(85704),m=r(38839),x=r(51638),g=r(27413),b=r(20265);let v=e=>{let{tags:t}=e;return(0,n.jsx)("div",{className:"no-scrollbar",children:(0,n.jsx)("div",{className:"flex gap-[6px] overflow-x-auto",children:null==t?void 0:t.map(e=>(0,n.jsx)("div",{children:Object.keys(d.Rm).includes(e)?(0,n.jsx)(b.V,{size:"xs",children:d.Rm[e].label}):null},e))})})};var y=r(14714),j=r(35857);let N=e=>{let{bannerImageUrl:t="",profileImageUrl:r="",name:s="",shortBio:l="",impactCategory:a,actionButton:i}=e;return(0,n.jsxs)("article",{className:"dark:bg-lightBlack shadow-project-card group w-full rounded-[10px] border border-gray-50 bg-white",children:[(0,n.jsxs)("div",{className:"opacity-70 transition-opacity duration-200 group-hover:opacity-100",children:[(0,n.jsx)(j.Q,{className:"!rounded-b-none",size:"sm",url:t}),(0,n.jsx)(y.t,{className:"-mt-8 ml-4",rounded:"full",url:r})]}),(0,n.jsxs)("div",{className:"flex flex-col gap-5 p-4 pt-2",children:[(0,n.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,n.jsx)("span",{className:"font-sans text-base font-semibold uppercase text-black dark:text-white",children:s}),(0,n.jsx)("span",{className:"line-clamp-2 h-10 font-sans text-sm text-gray-400",children:(l||"").replace(/!\[.*?\]\(.*?\)/g,"").replace(/\[.*?\]\(.*?\)/g,"").replace(/`{1,2}[^`](.*?)`{1,2}/g,"$1").replace(/```[\s\S]*?```/g,"").replace(/^[#]+ /gm,"").replace(/(\*\*|__)(.*?)\1/g,"$2").replace(/(\*|_)(.*?)\1/g,"$2").replace(/~~(.*?)~~/g,"$1").replace(/> /gm,"").replace(/^\s*\n/gm,"").replace(/^\s*-\s+/gm,"").replace(/^\s*\d+\.\s+/gm,"")})]}),(0,n.jsx)(v,{tags:a}),i]})]})},w=e=>{var t,r,s,a,d,h,b;let{pollId:v,recipient:y,isLoading:j,state:w,registryAddress:S=o.DR,action:E}=e,k=(0,x.D)(y.metadataUrl),D=(0,f.bH)(y.id,S),_=(0,p.i)({pollId:v}),I=y.bannerImageUrl?y.bannerImageUrl:null===(t=k.data)||void 0===t?void 0:t.bannerImageUrl,T=y.profileImageUrl?y.profileImageUrl:null===(r=k.data)||void 0===r?void 0:r.profileImageUrl,O=y.name?y.name:null===(s=k.data)||void 0===s?void 0:s.name,R=y.bio?y.bio:null===(a=k.data)||void 0===a?void 0:a.bio,U=y.impactCategory?y.impactCategory:null===(d=k.data)||void 0===d?void 0:d.impactCategory,A=y.shortBio?y.shortBio:null===(h=k.data)||void 0===h?void 0:h.shortBio;return(!A&&R&&(A=R.substring(0,140)),j)?(0,n.jsx)("div",{className:"flex h-[325px] w-full animate-pulse items-center justify-center rounded-[10px] bg-gray-100"}):(0,n.jsx)("div",{className:(null===(b=D.data)||void 0===b?void 0:b.requestType.toString())!=="Change"||y.initialized?"":"hidden",children:(0,n.jsx)(i(),{href:"/rounds/".concat(v,"/").concat(y.id),children:(0,n.jsx)(N,{actionButton:void 0!==w&&E&&_===m.e7.VOTING&&(0,n.jsx)("div",{className:"flex justify-end pt-6",children:(0,n.jsxs)(c.O,{children:[w===g.UN.DEFAULT&&(0,n.jsx)(u.z,{size:"sm",variant:"inverted",onClick:E,children:"Add to ballot"}),w===g.UN.ADDED&&(0,n.jsxs)(u.z,{size:"sm",variant:"primary",onClick:E,children:["Added",(0,n.jsx)(l(),{alt:"check-white",height:"18",src:"/check-white.svg",width:"18"})]}),w===g.UN.SUBMITTED&&(0,n.jsx)(u.z,{size:"sm",variant:"disabled",children:"Submitted"})]})}),bannerImageUrl:I,impactCategory:U,name:O,profileImageUrl:T,shortBio:A})})})},S=e=>{let{amount:t=0}=e;return(0,n.jsxs)("div",{className:"absolute right-2 top-[100px] z-10 -mt-2 rounded bg-gray-100 p-1 text-sm",children:[(0,n.jsx)("span",{className:"mr-1 font-bold",children:(0,h.u)(t)}),(0,n.jsx)("span",{children:d.vc.tokenName})]})}},27413:function(e,t,r){"use strict";var n,s,l,a,i,o,u,c;r.d(t,{$5:function(){return l},UN:function(){return a},lE:function(){return n}}),(i=n||(n={})).CONTRACT_ADDRESS="CONTRACT_ADDRESS",i.GITHUB_REPO="GIGHUB_REPO",i.OTHER="OTHER",(o=s||(s={})).OTHER="OTHER",o.RETROPGF_2="RETROPGF_2",o.GOVERNANCE_FUND="GOVERNANCE_FUND",o.PARTNER_FUND="PARTNER_FUND",o.REVENUE="REVENUE",(u=l||(l={}))[u.DEFAULT=0]="DEFAULT",u[u.ADDED=1]="ADDED",u[u.EDIT=2]="EDIT",u[u.UPDATED=3]="UPDATED",(c=a||(a={}))[c.UNREGISTERED=0]="UNREGISTERED",c[c.DEFAULT=1]="DEFAULT",c[c.ADDED=2]="ADDED",c[c.SUBMITTED=3]="SUBMITTED"},63981:function(e,t,r){"use strict";r.d(t,{$8:function(){return l},qo:function(){return s}}),r(41433);var n=r(77498);function s(e,t){return n.h.projects.getMine.useQuery({registryAddress:e,address:t})}function l(e,t){return n.h.projects.getWithMetadataById.useQuery({registryAddress:e,projectId:t})}},74262:function(e,t,r){"use strict";r.d(t,{H4:function(){return o},Lj:function(){return s},bH:function(){return a},hs:function(){return i}
1,x8:function(){return l}});var n=r(77498);function s(e){return n.h.requests.approvals.useQuery({registryAddress:e})}function l(e){return n.h.requests.pending.useQuery({registryAddress:e})}function a(e,t){return n.h.requests.getByProjectId.useQuery({projectId:e,registryAddress:t})}function i(e,t){return n.h.requests.getByIndex.useQuery({registryAddress:e,index:t})}function o(e,t){return n.h.requests.getEditionByRecipientIndex.useQuery({registryAddress:e,recipientIndex:t})}},63210:function(e,t,r){"use strict";r.d(t,{a0:function(){return a},jp:function(){return i}});var n=r(77498),s=r(85704),l=r(38839);function a(e,t,r){let a=(0,s.i)({pollId:e});return n.h.results.votes.useQuery({registryAddress:t,tallyAddress:r},{enabled:a===l.e7.RESULTS})}function i(e,t){return n.h.results.projects.useQuery({registryAddress:e,tallyAddress:t})}},97122:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSP:function(){return eb},default:function(){return ev}});var n,s,l,a,i,o=r(97458),u=r(7829),c=r(17207),d=r.n(c),f=r(52983),h=r(47896),p=r(11251),m=r(31622),x=r(41433),g=r(36943),b=function(e,t){var r=(0,f.useState)(null),n=r[0],s=r[1];return(0,f.useEffect)(function(){if(e.current&&"function"==typeof IntersectionObserver){var r=new IntersectionObserver(function(e){s(e[0])},t);return r.observe(e.current),function(){s(null),r.disconnect()}}return function(){}},[e.current,t.threshold,t.root,t.rootMargin]),n},v=r(15940);let y=e=>{let{hasMore:t=!1,isFetchingNextPage:r,fetchNextPage:n}=e,s=(0,f.useRef)(null),l=b(s,{root:null,rootMargin:"0px",threshold:.5});return(0,f.useEffect)(()=>{(null==l?void 0:l.isIntersecting)&&!r&&t&&n().catch(console.error)},[null==l?void 0:l.isIntersecting,r,t,n]),(0,o.jsx)("div",{ref:s,className:"flex h-96 items-center justify-center",children:r&&(0,o.jsx)(v.$,{})})},j={2:"grid-cols-1 lg:grid-cols-2",3:"grid-cols-1 lg:grid-cols-3"},N=e=>{let{data:t,columns:r=3,isFetchingNextPage:n,isLoading:s,renderItem:l,fetchNextPage:a}=e,i=(0,f.useMemo)(()=>Array.from({length:x.vc.pageSize}).map((e,t)=>({id:t})),[]),u=(0,f.useMemo)(()=>{var e;return null!==(e=null==t?void 0:t.pages)&&void 0!==e?e:[]},[null==t?void 0:t.pages]),c=(0,f.useMemo)(()=>{let e=u.reduce((e,t)=>e.concat(t),[]),t=new Set;return e.filter(e=>{let r=e.id;return!(!r||t.has(r))&&(t.add(r),!0)})},[u]),d=(0,f.useMemo)(()=>{var e,t;return!!u.length&&(null!==(t=null===(e=u[u.length-1])||void 0===e?void 0:e.length)&&void 0!==t?t:0)===x.vc.pageSize},[u]);return(0,o.jsxs)("div",{children:[s||c.length?null:(0,o.jsx)(g.u,{title:"No proposals yet! Be the first to create one."}),(0,o.jsxs)("div",{className:"mb-16 grid ".concat(j[r]," gap-4"),children:[c.map(e=>l(e,{isLoading:s})),(s||n)&&i.map(e=>l(e,{isLoading:s}))]}),(0,o.jsx)(y,{fetchNextPage:a,hasMore:d,isFetchingNextPage:n})]})};var w=function(){try{if("undefined"==typeof localStorage)return!1;let e="nuqs-localStorage-test";localStorage.setItem(e,e);let t=localStorage.getItem(e)===e;if(localStorage.removeItem(e),!t)return!1}catch(e){return console.error("[nuqs]: debug mode is disabled (localStorage unavailable).",e),!1}let e=localStorage.getItem("debug")??"";return e.includes("nuqs")||e.includes("next-usequerystate")}();function S(e,...t){if(!w)return;let r=function(e,...t){return e.replace(/%[sfdO]/g,e=>{let r=t.shift();return"%O"===e&&r?JSON.stringify(r).replace(/"([^"]+)":/g,"$1:"):String(r)})}(e,...t);performance.mark(r),console.log(e,...t)}function E(e,t,r){try{return e(t)}catch(e){return!function(e,...t){w&&console.warn(e,...t)}("[nuqs] Error while parsing value `%s`: %O"+(r?" (for key `%s`)":""),t,e,r),null}}function k(e){function t(t){if(void 0===t)return null;let r="";if(Array.isArray(t)){if(void 0===t[0])return null;r=t[0]}return"string"==typeof t&&(r=t),E(e.parse,r)}return{eq:(e,t)=>e===t,...e,parseServerSide:t,withDefault(e){return{...this,defaultValue:e,parseServerSide:r=>t(r)??e}},withOptions(e){return{...this,...e}}}}var D=k({parse:e=>e,serialize:e=>`${e}`});function _(e){return k({parse:t=>e.includes(t)?t:null,serialize:e=>e.toString()})}k({parse:e=>{let t=parseInt(e);return Number.isNaN(t)?null:t},serialize:e=>Math.round(e).toFixed()}),k({parse:e=>{let t=parseInt(e,16);return Number.isNaN(t)?null:t},serialize:e=>{let t=Math.round(e).toString(16);return t.padStart(t.length+t.length%2,"0")}}),k({parse:e=>{let t=parseFloat(e);return Number.isNaN(t)?null:t},serialize:e=>e.toString()}),k({parse:e=>"true"===e,serialize:e=>e?"true":"false"}),k({parse:e=>{let t=parseInt(e);return Number.isNaN(t)?null:new Date(t)},serialize:e=>e.valueOf().toString()}),k({parse:e=>{let t=new Date(e);return Number.isNaN(t.valueOf())?null:t},serialize:e=>e.toISOString()});var I={409:"Multiple versions of the library are loaded. This may lead to unexpected behavior. Currently using `%s`, but `%s` was about to load on top.",429:"URL update rate-limited by the browser. Consider increasing `throttleMs` for key(s) `%s`. %O",500:"Empty search params cac
1he. Search params can't be accessed in Layouts.",501:"Search params cache already populated. Have you called `parse` twice?"};function T(e){return`[nuqs] ${I[e]}
2  See https://err.47ng.com/NUQS-${e}`}var O=r(64124),R=function(){if("undefined"==typeof window||!window.GestureEvent)return 50;try{let e=navigator.userAgent?.match(/version\/([\d\.]+) safari/i);return parseFloat(e[1])>=17?120:320}catch{return 320}}(),U=new Map,A={history:"replace",scroll:!1,shallow:!0,throttleMs:R},q=new Set,C=0,P=null;function M(e){return U.get(e)??null}function L(e,t){return(e.split("#")[0]??"")+function(e){if(0===e.size)return"";let t=[];for(let[r,n]of e.entries())t.push(`${r}=${n.replace(/%/g,"%25").replace(/\+/g,"%2B").replace(/ /g,"+").replace(/#/g,"%23").replace(/&/g,"%26").replace(/"/g,"%22").replace(/'/g,"%27").replace(/`/g,"%60").replace(/</g,"%3C").replace(/>/g,"%3E")}`);return"?"+t.join("&")}(t)+location.hash}var F=Symbol("__nuqs__SYNC__"),z="__nuqs__NO_SYNC__",B=Symbol("__nuqs__NOTIFY__"),Z={all:n=n||new Map,on:function(e,t){var r=n.get(e);r?r.push(t):n.set(e,[t])},off:function(e,t){var r=n.get(e);r&&(t?r.splice(r.indexOf(t)>>>0,1):n.set(e,[]))},emit:function(e,t){var r=n.get(e);r&&r.slice().map(function(e){e(t)}),(r=n.get("*"))&&r.slice().map(function(r){r(e,t)})}};function V(e,t){return Object.keys(e).reduce((r,n)=>{let{defaultValue:s,parse:l}=e[n],a=t?.get(n)??null,i=M(n)??a,o=null===i?null:E(l,i,n);return r[n]=o??s??null,r},{})}"object"==typeof history&&function(){let e="1.17.7",t=history.__nuqs_patched;if(t){t!==e&&console.error(T(409),t,e);return}for(let t of(S("[nuqs] Patching history with %s",e),["pushState","replaceState"])){let e=history[t].bind(history);history[t]=function(r,n,s){if(!s)return S("[nuqs] history.%s(null) (%s) %O",t,n,r),e(r,n,s);let l=n===z?"internal":"external",a=new URL(s,location.origin).searchParams;if(S("[nuqs] history.%s(%s) (%s) %O",t,s,l,r),"external"===l){for(let[e,t]of a.entries()){let r=M(e);null!==r&&r!==t&&(S("[nuqs] Overwrite detected for key: %s, Server: %s, queue: %s",e,t,r),a.set(e,r))}setTimeout(()=>{S("[nuqs] External history.%s call: triggering sync with %s",t,a),Z.emit(F,a),Z.emit(B,{search:a,source:l})},0)}else setTimeout(()=>{Z.emit(B,{search:a,source:l})},0);return e(r,n===z?"":n,s)}}Object.defineProperty(history,"__nuqs_patched",{value:e,writable:!1,enumerable:!1,configurable:!1})}();var G=r(20322);(s=a||(a={})).name="name",s.time="time",(l=i||(i={})).asc="asc",l.desc="desc",G.ZP.object({limit:G.ZP.coerce.number().default(24),cursor:G.ZP.coerce.number().default(0),seed:G.ZP.coerce.number().default(0),orderBy:G.ZP.nativeEnum(a).default("name"),sortOrder:G.ZP.nativeEnum(i).default("asc"),search:G.ZP.preprocess(e=>"null"===e||"undefined"===e?null:e,G.ZP.string().nullish()),needApproval:G.ZP.boolean().optional().default(!0)});let X={name_asc:"A to Z",name_desc:"Z to A",time_asc:"Oldest",time_desc:"Newest"},Q={search:D.withDefault(""),orderBy:_(Object.values(a)).withDefault(a.name),sortOrder:_(Object.values(i)).withDefault(i.asc)};var $=r(42184),H=r(63);let Y=(0,H.Z)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),J=(0,H.Z)("ArrowUpDown",[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]]);var W=r(54259);let K=e=>{let{value:t="",label:r=""}=e;return(0,o.jsxs)($.Rk,{className:"dark:bg-lightBlack cursor-pointer rounded p-2 pl-8 text-sm text-gray-900 outline-none hover:bg-gray-100 focus-visible:ring-0 dark:text-white",value:t,children:[(0,o.jsx)($.wU,{className:"absolute left-4",children:(0,o.jsx)(Y,{className:"h-4 w-4"})}),r]})},ee=e=>{let{value:t,onChange:r,options:n=[]}=e,s=(0,f.useCallback)(e=>{r(e)},[r]);return(0,o.jsxs)($.fC,{children:[(0,o.jsx)($.xz,{asChild:!0,className:"rounded-md border-gray-200 text-gray-600 dark:border-gray-800",children:(0,o.jsxs)(W.h,{"aria-label":"Sort by",className:"my-0 w-48",icon:J,variant:"outline",children:["Sort by: ",X[t]]})}),(0,o.jsx)($.Uv,{children:(0,o.jsxs)($.VY,{className:"dark:bg-lightBlack z-50 w-[200px] rounded-md border border-gray-300 bg-white p-2",sideOffset:5,children:[(0,o.jsx)($.__,{className:"p-2 text-xs font-semibold uppercase text-gray-700 dark:text-white",children:"Sort By"}),(0,o.jsx)($.Ee,{value:t,onValueChange:s,children:n.map(e=>(0,o.jsx)(K,{label:X[e],value:e},e))})]})})]})};var et=r(99340);let er=e=>{var t,r,n,s,l,a,i,u,c,d;let{onSearchChange:h}=e,{orderBy:p,sortOrder:m,setFilter:x}=function(){let[e,t]=function(e,{history:t="replace",scroll:r=!1,shallow:n=!0,throttleMs:s=R,clearOnDefault:l=!1,startTransition:a}={}){let i=Object.keys(e).join(","),o=(0,O.useRouter)(),u=(0,O.useSearchParams)(),[c,d]=f.useState(()=>V(e,u??new URLSearchParams)),h=f.useRef(c);return S("[nuq+ `%s`] render - state: %O, iSP: %s",i,c,u),f.useInsertionEffect(()=>{function t(e){S("[nuq+ `%s`] updateInternalState %O",i,e),h.current=e,d(e)}function r(r){let n=V(e,r);S("[nuq+ `%s`] syncFromURL %O",i,n),t(n)}let n=Object.keys(e).reduce((r,n)=>(r[n]=r=>{let{defaultValue:s}=e[n];h.current={...h.current,[n]:r??s??null},S("[nuq+ `%s`] Cross-hook key sync %s: %O (default: %O). Resolved: %O",i,n,r,s,h.current),t(h.current)},r),{});for(let t of(Z.on(F,r),Object.keys(e)))S("[nuq+ `%s`] Subscribing to sync for `%s`",i,t),Z.on(t,n[t]);return()=>{for(let t of(Z.off(F,r),Object.keys(e)))S("[nuq+ `%s`] Unsubscribing to sync for `%s`",i,t),Z.off(t,n[t])}},[e]),[c,f.useCallback((u,c={})=>{let d="function"==typeof u?u(h.current):u;for(let[o,u]of(S("[nuq+ `%s`] setState: %O",i,d),Object.entries(d))){let i=e[o];i&&((c.clearOnDefault||l)&&null!==u&&void 0!==i.defaultValue&&(i.eq??((e,t)=>e===t))(u,i.defaultValue)&&(u=null),Z.emit(o,u),function(e,t,r,n){let s=null===t?null:r(t);S("[nuqs queue] Enqueueing %s=%s %O",e,s,n),U.set(e,s),"push"===n.history&&(A.history="push"),n.scroll&&(A.scroll=!0),!1===n.shallow&&(A.shallow=!1),n.startTransition&&(q.add(n.startTransition),A.shallow=!1),A.throttleMs=Math.max(n.throttleMs??R,Number.isFinite(A.throttleMs)?A.throttleMs:0)}(o,u,i.serialize??String,{history:c.history??t,shallow:c.shallow??n,scroll:c.scroll??r,throttleMs:c.throttleMs??s,startTransition:c.startTransition??a}))}return null===P&&(P=new Promise((e,t)=>
2{if(!Number.isFinite(A.throttleMs)){S("[nuqs queue] Skipping flush due to throttleMs=Infinity"),e(new URLSearchParams(location.search)),setTimeout(()=>{P=null},0);return}function r(){C=performance.now();let[r,n]=function(e){let t=new URLSearchParams(location.search);if(0===U.size)return[t,null];let r=Array.from(U.entries()),n={...A},s=Array.from(q);for(let[e,s]of(U.clear(),q.clear(),A.history="replace",A.scroll=!1,A.shallow=!0,A.throttleMs=R,S("[nuqs queue] Flushing queue %O with options %O",r,n),r))null===s?t.delete(e):t.set(e,s);try{let r=window.next?.router;if("string"==typeof r?.state?.asPath){let e=L(r.state.asPath.split("?")[0]??"",t);S("[nuqs queue (pages)] Updating url: %s",e),("push"===n.history?r.push:r.replace).call(r,e,e,{scroll:n.scroll,shallow:n.shallow})}else{let r=L(location.origin+location.pathname,t);S("[nuqs queue (app)] Updating url: %s",r);let l="push"===n.history?history.pushState:history.replaceState,a=(window.next?.version??"")>="14.1.0"?null:history.state;l.call(history,a,z,r),n.scroll&&window.scrollTo(0,0),n.shallow||function(e,t){let r=n=>{if(n===e.length)return t();let s=e[n];if(!s)throw Error("Invalid transition function");s(()=>r(n+1))};r(0)}(s,()=>{e.replace(r,{scroll:!1})})}return[t,null]}catch(e){return console.error(T(429),r.map(([e])=>e).join(),e),[t,e]}}(o);null===n?e(r):t(r),P=null}setTimeout(function(){let e=performance.now()-C,t=A.throttleMs,n=Math.max(0,Math.min(t,t-e));S("[nuqs queue] Scheduling flush in %f ms. Throttled at %f ms",n,t),0===n?r():setTimeout(r,n)},0)})),P},[e,t,n,r,s,a])]}(Q,{history:"replace"});return{...e,setFilter:t}}(),[g,b]=(0,f.useState)("");t=()=>x({search:g}),r=[g],(n=(0,f.useRef)(!1),s=(0,f.useRef)(),l=(0,f.useRef)(t),a=(0,f.useCallback)(function(){return n.current},[]),i=(0,f.useCallback)(function(){n.current=!1,s.current&&clearTimeout(s.current),s.current=setTimeout(function(){n.current=!0,l.current()},500)},[500]),u=(0,f.useCallback)(function(){n.current=null,s.current&&clearTimeout(s.current)},[]),(0,f.useEffect)(function(){l.current=t},[t]),(0,f.useEffect)(function(){return i(),u},[500]),c=[a,u,i])[0],c[1],d=c[2],(0,f.useEffect)(d,r);let v=(0,f.useCallback)(e=>{let t=e.target.value;b(t),h(t)},[b,h]),y=(0,f.useCallback)(async e=>{let[t,r]=e.split("_");await x({orderBy:t,sortOrder:r}).catch()},[x]);return(0,o.jsxs)("div",{className:"mb-2 flex flex-1 gap-2",children:[(0,o.jsx)(et.Mj,{className:"w-full",placeholder:"Search project...",value:g,onChange:v}),(0,o.jsx)(ee,{options:["name_asc","name_desc","time_asc","time_desc"],value:"".concat(p,"_").concat(m),onChange:y})]})};var en=r(4581),es=r(43902),el=r(14922),ea=r(83761),ei=r(81170),eo=r(58080),eu=r(63981),ec=r(63210),ed=r(85704),ef=r(38839),eh=r(22575),ep=r(51638),em=r(27413);let ex=e=>{var t,r,n,s;let{pollId:l=""}=e,[a,i]=(0,f.useState)(""),c=(0,f.useDeferredValue)(a),x=(0,ed.i)({pollId:l}),{address:g}=(0,m.m)(),{getRoundByPollId:b}=(0,ei.ay)(),v=(0,f.useMemo)(()=>b(l),[l,b]),y=(0,ep.H5)({pollId:l,search:c,registryAddress:null!==(t=null==v?void 0:v.registryAddress)&&void 0!==t?t:p.DR}),j=function(e,t){let[r]=(0,f.useState)(()=>{try{let e=window.localStorage.getItem("projectRandomSeed-".concat(t));if(e)return parseFloat(e);let r=Math.random();return window.localStorage.setItem("projectRandomSeed-".concat(t),r.toString()),r}catch(e){return Math.random()}});return(0,f.useMemo)(()=>{if(!e.data)return e;let t=e.data;return{...e,data:{...t,pages:t.pages.map(e=>[...e].sort(()=>r-.5))}}},[e,r])}(y,l),{isRegistered:w}=(0,ea.Zb)(),{addToBallot:S,removeFromBallot:E,ballotContains:k,getBallot:D}=(0,el.Sn)(),_=(0,ec.a0)(l,null!==(r=null==v?void 0:v.registryAddress)&&void 0!==r?r:p.DR,null!==(n=null==v?void 0:v.tallyAddress)&&void 0!==n?n:p.DR),I=(0,f.useMemo)(()=>D(l),[l,D]),T=(0,eo.d)(),O=(0,eu.qo)(null!==(s=null==v?void 0:v.registryAddress)&&void 0!==s?s:p.DR,null!=g?g:p.DR),R=(0,f.useMemo)(()=>O.data,[O]),U=(0,f.useCallback)((e,t)=>r=>{r.preventDefault(),l&&(k(e,l)?E(e,l):S([{projectIndex:e,projectId:t,amount:0}],l))},[k,S,E,l]),A=e=>w?k(e,l)&&I.published&&!I.edited?em.UN.SUBMITTED:k(e,l)?em.UN.ADDED:em.UN.DEFAULT:em.UN.UNREGISTERED;return(0,o.jsxs)("div",{children:[x===ef.e7.APPLICATION&&(0,o.jsx)(es.A,{content:(0,o.jsxs)("div",{className:"flex items-center gap-2",children:[(0,o.jsx)(h.bcx,{className:"h-4 w-4"}),"Voting is disabled until the Application period ends."]}),status:"default"}),(x===ef.e7.TALLYING||x===ef.e7.RESULTS)&&(0,o.jsx)(es.A,{content:(0,o.jsxs)("div",{className:"flex items-center gap-2",children:[(0,o.jsx)(h.bcx,{className:"h-4 w-4"}),"The voting period has ended."]}),status:"default"}),(0,o.jsxs)("div",{className:"mb-4 flex flex-col justify-between sm:flex-row",children:[(0,o.jsx)(en.X,{as:"h3",size:"3xl",children:"Projects"}),(0,o.jsx)("div",{children:(0,o.jsx)(er,{onSearchChange:i})})]}),x===ef.e7.APPLICATION&&g&&(0,o.jsxs)("div",{className:"mb-4 rounded-md border border-black p-4 dark:border-white",children:[(0,o.jsxs)("div",{className:"flex justify-between",children:[(0,o.jsx)(en.X,{size:"xl",children:"My Projects"}),(0,o.jsx)(d(),{href:"/rounds/".concat(l,"/proposals/new"),children:(0,o.jsx)(W.z,{size:"auto",variant:"primary",children:T?"Create":"Create Project Proposal"})})]}),(0,o.jsxs)("div",{className:"my-4 gap-4 md:grid md:grid-cols-2 lg:grid lg:grid-cols-3",children:[R&&R.length>0&&R.map(e=>(0,o.jsx)(eh.Lq,{isLoading:!1,pollId:l,recipient:e,registryAddress:null==v?void 0:v.registryAddress},e.id)),(!R||0===R.length)&&(0,o.jsx)("p",{className:"text-gray-400",children:"Create your project by clicking the button"})]})]}),(0,o.jsx)(N,{...j,renderItem:(e,t)=>
2{var r,n;let{isLoading:s}=t;return(0,o.jsxs)("div",{className:(0,u.Z)("relative",{"animate-pulse":s}),children:[_.isLoading||x!==ef.e7.RESULTS?null:(0,o.jsx)(eh.RS,{amount:null===(n=_.data)||void 0===n?void 0:null===(r=n.projects[e.id])||void 0===r?void 0:r.votes}),(0,o.jsx)(eh.Lq,{action:U(Number.parseInt(e.index,10),e.id),isLoading:y.isLoading,pollId:l,recipient:e,state:A(Number.parseInt(e.index,10))})]},e.id)}})]})};var eg=r(76200),eb=!0,ev=e=>{let{pollId:t}=e;return(0,o.jsx)(eg.i,{eligibilityCheck:!0,showBallot:!0,showInfo:!0,pollId:t,sidebar:"left",children:(0,o.jsx)(ex,{pollId:t})})}},73497:function(e,t,r){"use strict";r.d(t,{u:function(){return n}});let n=e=>Number.isNaN(e)?"0":Number(null!=e?e:0).toLocaleString("en-US",{minimumFractionDigits:0,maximumFractionDigits:0})}},function(e){e.O(0,[3282,2212,4960,6401,6535,7896,2883,4124,6200,2888,9774,179],function(){return e(e.s=60212)}),_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.