PageSourceSearch

https://www.alphafc.xyz/_next/static/chunks/1666.fb3ac9a32a8d3814.js

js alphafc.xyz collected 2026-10-05 01:07:11 UTC 9,898 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1666],{3058:e=>{e.exports={cardLink:"ProposalCard_cardLink__6f_Sn",featureProposalCard:"ProposalCard_featureProposalCard__3Gzl5",featureProposalStatus:"ProposalCard_featureProposalStatus__rhzbX",featureProposalTitle:"ProposalCard_featureProposalTitle__YHFpv",leftSection:"ProposalCard_leftSection__tb_Gi",rightSection:"ProposalCard_rightSection__0nMmN",proposalCard:"ProposalCard_proposalCard__sUBlv",topSection:"ProposalCard_topSection__ZkMj0",bottomSection:"ProposalCard_bottomSection__yEi0V",proposalStatus:"ProposalCard_proposalStatus__xhpDM",proposalTitle:"ProposalCard_proposalTitle__P3u1Z",proposalResult:"ProposalCard_proposalResult___rEcr",resultIcon:"ProposalCard_resultIcon__p_GYZ",resultText:"ProposalCard_resultText__zfssd",proposalResultPlaceholder:"ProposalCard_proposalResultPlaceholder__FxWgx"}},9372:e=>{e.exports={teamImage:"ProposalsSection_teamImage__kw_c7",emptyState:"ProposalsSection_emptyState__fYvSU"}},17187:(e,t,o)=>{"use strict";o.d(t,{S:()=>n});var s=o(30563),a=o(93867);let r=(0,s.h)();class l{async fetchApi(e,t){try{var o;let s=new URL("".concat("/api").concat(e),r),a=await fetch(s.toString(),{...t,headers:{"Content-Type":"application/json",...null!=(o=null==t?void 0:t.headers)?o:{}},cache:"no-store"});if(!a.ok){let e="Service unavailable (".concat(a.status,"). Please try again.");try{let t=await a.json();e=t.error||t.message||e}catch(e){}if(404===a.status)throw Error("Proposals service not available. Please try again later.");if(500===a.status)throw Error("Unable to load proposals. Please try again.");throw Error(e)}let l=await a.json();if(!l.success)throw Error(l.error||"API request failed");return l.data}catch(e){if(console.error("Proposals API request failed:",e),e instanceof Error&&(e.message.includes("Failed to fetch")||e.message.includes("NetworkError")))throw Error("Network issue. Check your connection and try again.");throw e}}async list(e){let t=new URLSearchParams;(null==e?void 0:e.teamId)&&t.set("teamId",e.teamId),(null==e?void 0:e.activeOnly)!=null&&t.set("activeOnly",String(e.activeOnly)),(null==e?void 0:e.limit)!=null&&t.set("limit",String(e.limit));let o=t.toString()?"?".concat(t.toString()):"";return this.fetchApi("/proposals".concat(o))}async getById(e){let t={};try{let e=(0,a.iD)();e&&(t={Authorization:"Bearer ".concat(e)})}catch(e){}return this.fetchApi("/proposals/".concat(e),{headers:t})}async vote(e){let{proposalId:t,optionId:o,userId:s,votingPowerPct:r,submission:l,txSignature:n,walletAddress:i}=e,c=(0,a.iD)();return this.fetchApi("/proposals/".concat(t,"/vote"),{method:"POST",headers:{Authorization:"Bearer ".concat(c)},body:JSON.stringify({optionId:o,votingPowerPct:r,submission:l,txSignature:n,walletAddress:i})})}async listOptions(e){var t,o,s,a;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=function(e){let t=new URLSearchParams;Object.entries(e).forEach(e=>{let[o,s]=e;null!=s&&""!==s&&t.set(o,String(s))});let o=t.toString();return o?"?".concat(o):""}({search:r.search,page:null!=(t=r.page)?t:1,pageSize:null!=(o=r.pageSize)?o:100,sortKey:null!=(s=r.sortKey)?s:"votes",sortDir:null!=(a=r.sortDir)?a:"DESC"});return this.fetchApi("/proposals/".concat(e,"/options").concat(l))}async createOption(e,t){let o=(0,a.iD)();return this.fetchApi("/proposals/".concat(e,"/options"),{method:"POST",headers:{Authorization:"Bearer ".concat(o)},body:JSON.stringify(t)})}async getExecutionLog(e){return this.fetchApi("/proposals/".concat(e,"/execution-log"))}}let n=new l},27994:(e,t,o)=>{"use strict";o.d(t,{A:()=>i});var s=o(95155),a=o(75403),r=o(59142),l=o(70030),n=o.n(l);let i=function(e){let{headline:t,copy:o,body:l,children:i}=e;return(0,s.jsx)("section",{className:n().contentSection,children:(0,s.jsxs)(a.xA9,{children:[(0,s.jsxs)(a.VPZ,{sm:4,md:4,lg:8,className:n().textColumn,children:[(0,s.jsxs)("div",{className:n().sectionHeader,children:[(0,s.jsx)(r.jH,{className:n().sectionHeaderIcon}),(0,s.jsx)("h2",{className:n().sectionHeaderText,children:t})]}),l?(0,s.jsx)("div",{className:n().sectionBody,children:l}):o?(0,s.jsx)("p",{className:n().sectionBodyText,children:o}):null]}),(0,s.jsx)(a.VPZ,{sm:4,md:4,lg:8,children:i})]})})}},51666:(e,t,o)=>{"use strict";o.r(t),o.d(t,{default:()=>S});var s=o(95155),a=o(75403),r=o(12115),l=o(17187),n=o(27994),i=o(70030),c=o.n(i),d=o(6874),p=o.n(d),u=o(3058),h=o.n(u);function m(e){let{className:t}=e;return(0,s.jsx)("svg",{className:t,xmlns:"http://www.w3.org/2000/svg",width:"9",height:"14",viewBox:"0 0 9 14",fill:"none",children:(0,s.jsx)("path",{d:"M4.48987 0C3.58053 0.00204756 2.69315 0.27954 1.94465 0.795913C1.19615 1.31229 0.621647 2.04331 0.296847 2.89266C-0.0279538 3.74202 -0.0878138 4.66984 0.125154 5.55389C0.338122 6.43794 0.813924 7.23673 1.48987 7.845V14L4.48987 12L7.48987 14V7.845C8.16581 7.23673 8.64161 6.43794 8.85458 5.55389C9.06755 4.66984 9.00769 3.74202 8.68289 2.89266C8.35809 2.04331 7.78359 1.31229 7.03509 0.795913C6.28
1659 0.27954 5.3992 0.00204756 4.48987 0ZM6.48987 12.13L5.04487 11.17L4.48987 10.8L3.93487 11.17L2.48987 12.13V8.525C3.11012 8.83794 3.79515 9.00096 4.48987 9.00096C5.18459 9.00096 5.86962 8.83794 6.48987 8.525V12.13ZM6.93487 7C6.35662 7.56454 5.60083 7.91158 4.79579 7.98221C3.99076 8.05285 3.18608 7.84272 2.51835 7.38751C1.85063 6.9323 1.361 6.26005 1.13259 5.48487C0.904172 4.7097 0.951042 3.87936 1.26524 3.13481C1.57944 2.39026 2.14161 1.77738 2.85632 1.40021C3.57103 1.02303 4.39424 0.904795 5.18621 1.06558C5.97819 1.22636 6.69012 1.65624 7.20117 2.28227C7.71221 2.90829 7.99088 3.69187 7.98987 4.5C7.98928 4.96596 7.89566 5.4271 7.7145 5.8564C7.53334 6.2857 7.26828 6.6745 6.93487 7Z",fill:"#F1C21B"})})}function _(e){let{href:t,image:o,title:a,status:r,statusColor:l}=e;return(0,s.jsx)(p(),{className:h().cardLink,href:t,children:(0,s.jsxs)("div",{className:h().featureProposalCard,children:[(0,s.jsxs)("div",{className:h().leftSection,children:[(0,s.jsx)("span",{className:h().featureProposalStatus,style:l?{color:l}:void 0,children:r}),(0,s.jsx)("h3",{className:h().featureProposalTitle,children:a})]}),(0,s.jsx)("div",{className:h().rightSection,style:{background:o?'url("'.concat(o,'") lightgray 50% / cover no-repeat'):"linear-gradient(135deg, #262626 0%, #121212 100%)"}})]})})}function g(e){let{href:t,title:o,status:a,result:r,image:l}=e;return(0,s.jsx)(p(),{className:h().cardLink,href:t,children:(0,s.jsxs)("div",{className:h().proposalCard,children:[(0,s.jsx)("div",{className:h().topSection,style:{background:l?'url("'.concat(l,'") lightgray 50% / cover no-repeat'):"linear-gradient(135deg, #262626 0%, #121212 100%)"}}),(0,s.jsxs)("div",{className:h().bottomSection,children:[(0,s.jsx)("span",{className:h().proposalStatus,children:a}),(0,s.jsx)("h4",{className:h().proposalTitle,children:o}),r?(0,s.jsxs)("div",{className:h().proposalResult,children:[(0,s.jsx)(m,{className:h().resultIcon}),(0,s.jsx)("span",{className:h().resultText,children:r})]}):(0,s.jsx)("div",{className:h().proposalResultPlaceholder,children:"View proposal"})]})]})})}var f=o(9372),x=o.n(f);let v="var(--cds-green-30, #6FDC8C)",C=["Club tokens unlock the ability to participate in proposals: structured votes that give the community a say in club decisions.","1 token = 1 vote","Proposals are the primary way token holders exercise governance rights. Token holders can review upcoming decisions, discuss them with the community, and vote on the options put forward. Each proposal is classified as binding or advisory before the vote opens."];function y(e){var t;let o=(null==(t=e.status)?void 0:t.toLowerCase())||"";return"active"===o||"open"===o?{label:function(e){if(e<=0)return"Voting ended";let t=Math.floor(e/86400),o=Math.floor(e%86400/3600);if(t>0)return"Ends in ".concat(t,"d ").concat(o,"h");let s=Math.floor(e%3600/60);return"Ends in ".concat(o,"h ").concat(s,"m")}(e.ends_in_seconds),color:v}:"executed"===o||"completed"===o||"closed"===o?{label:"Completed",color:"#f1c21b"}:"pending"===o?{label:"Pending",color:"#8d8d8d"}:{label:e.status||"Active",color:v}}let S=function(e){let{config:t}=e,[o,i]=(0,r.useState)([]),[d,p]=(0,r.useState)(!0),u=t.proposalsDescription.split(/\n\n|\n/).map(e=>e.trim()).filter(Boolean),h=u.length?u:C;(0,r.useEffect)(()=>{let e=!0;return async function(){try{var o;let s=null==(o=t.clubId)?void 0:o.trim(),a=await l.S.list({teamId:s||void 0,activeOnly:!1,limit:3});e&&i(a.filter(e=>!/solana/i.test(e.title)).slice(0,3))}catch(t){console.error("Failed to load proposals",t),e&&i([])}finally{e&&p(!1)}}(),()=>{e=!1}},[t.clubId]);let[m,...f]=o;return(0,s.jsx)(n.A,{headline:t.proposalsHeadline.trim()||"Proposals",body:h.map(e=>(0,s.jsx)("p",{className:c().sectionBodyText,children:e},e)),children:(0,s.jsx)(a.xA9,{children:d?(0,s.jsx)(a.VPZ,{sm:4,md:4,lg:8,children:(0,s.jsx)("div",{className:x().emptyState,children:"Loading proposals..."})}):0===o.length?(0,s.jsx)(a.VPZ,{sm:4,md:4,lg:8,children:(0,s.jsx)("div",{className:x().emptyState,children:"No active proposals are available for this club yet."})}):(0,s.jsxs)(s.Fragment,{children:[m?(0,s.jsx)(a.VPZ,{sm:4,md:4,lg:8,children:(0,s.jsx)(_,{href:"/proposals/".concat(m.id),image:m.hero_image_url,status:y(m).label,statusColor:y(m).color,title:m.title})}):null,f.map(e=>{var t;let o=y(e),r=e.winning_option,l="Completed"===o.label;return(0,s.jsx)(a.VPZ,{sm:2,md:2,lg:4,children:(0,s.jsx)(g,{href:"/proposals/".concat(e.id),image:e.hero_image_url,result:l&&null!=(t=null==r?void 0:r.title)?t:null,status:o.label,title:e.title})},e.id)})]})})})}},70030:e=>{e.exports={contentSection:"ContentSection_contentSection__u7vsR",sectionHeader:"ContentSection_sectionHeader__JHJzR",sectionHeaderIcon:"ContentSection_sectionHeaderIcon___UTZ5",sectionHeaderText:"ContentSection_sectionHeaderText__zelNh",sectionBody:"ContentSection_sectionBody__J0vMy",sectionBodyText:"ContentSection_sectionBodyText___qHdw",textColumn:"ContentSection_textColumn__rkCKc"}}}]);

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.