PageSourceSearch

https://lxdao.io/_next/static/chunks/pages/SBTCard-6ef02f9d8b1c6101.js

js lxdao.io collected 2026-10-03 22:55:54 UTC 11,446 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3311],{52329:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/SBTCard",function(){return i(71529)}])},21713:function(e,t,i){"use strict";var r=i(52676);i(75271);var o=i(87714),n=i(74491),l=i(82814),a=i(4369),d=i(28327),s=i(94314),x=i(47134);t.Z=e=>{let{project:t,index:i}=e,c=(0,o.useRouter)();return(0,r.jsxs)(n.Z,{sx:{position:"relative",paddingY:4,paddingX:2,cursor:"pointer",overflow:"visible",width:"100%",height:"100%",boxShadow:"none",border:"0.5px solid #D0D5DD",borderRadius:"6px"},onClick:()=>{c.push({pathname:"/projects/".concat(t.index_name)})},children:[(0,r.jsxs)(l.Z,{sx:{display:"flex"},marginBottom:4,children:[(0,r.jsx)(l.Z,{sx:{marginRight:"26px"},children:(0,r.jsxs)(l.Z,{sx:{position:"relative"},children:[(0,r.jsx)(l.Z,{component:"img",src:t.logo,style:{width:"60px",height:"60px",border:"0.5px solid #D0D5DD",borderRadius:"50%"}}),(0,r.jsx)(a.Z,{sx:{background:"#36AFF9",width:"38px",height:"16px",fontSize:"12px",lineHeight:"16px",color:"#fff",position:"absolute",bottom:"2px",left:"11px",textAlign:"center"},children:"#"+t.id})]})}),(0,r.jsxs)(l.Z,{textAlign:"left",children:[(0,r.jsx)(a.Z,{sx:{marginBottom:{xs:"8px",md:"16px"},fontWeight:600,color:"#101828"},textAlign:"left",variant:"subtitle1",children:t.name}),(0,r.jsxs)(l.Z,{display:"flex",gap:{md:"8px",xs:"4px"},flexWrap:"wrap",justifyContent:"flex-start",height:60,children:[t.status&&(0,r.jsx)(d.Z,{size:"small",label:t.status,variant:"outlined",sx:{borderRadius:"4px",fontSize:"14px",background:"rgba(77, 204, 158, 0.1)",color:"#4DCC9E",border:"none"}}),t.tags&&t.tags.map((e,t)=>(0,r.jsx)(d.Z,{size:"small",label:e,variant:"outlined",sx:{borderRadius:"2px",fontSize:"14px",border:"none",color:"#36AFF9",background:"rgba(54, 175, 249, 0.1)"}},t))]})]})]}),(0,r.jsx)(l.Z,{sx:{width:"100%",height:"auto",background:"#FFFFFF",border:"0.5px solid #D0D5DD",boxShadow:"0px 6px 60px rgba(0, 0, 0, 0.06)",borderRadius:"6px",overflow:"hidden"},children:(0,r.jsx)(l.Z,{component:"img",src:t.banner,style:{width:"100%",display:"block"}})}),t.description?(0,r.jsx)(a.Z,{marginTop:1,color:"#666f85",textAlign:"left",variant:"body1",sx:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"3"},children:t.description}):(0,r.jsx)(s.Z,{variant:"rectangular",width:"100%",height:72,sx:{marginTop:1}}),t.buidlersOnProject.length>0?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a.Z,{color:"#101828",variant:"body1",textAlign:"left",fontWeight:600,marginTop:4,marginBottom:2,children:"Buidler"}),(0,r.jsx)(l.Z,{display:"flex",gap:"10px",flexWrap:"noWrap",justifyContent:"flex-start",overflow:"hidden",children:t.buidlersOnProject.sort((e,t)=>e.projectRole.includes("Project Manager")?-1:t.projectRole.includes("Project Manager")?1:0).map((e,t)=>{var i,o,n;return(0,r.jsx)(x.Z,{href:"/buidlers/".concat(null==e?void 0:null===(i=e.buidler)||void 0===i?void 0:i.address),children:(0,r.jsxs)(l.Z,{width:60,height:60,sx:{position:"relative",border:"0.5px solid #D0D5DD",borderRadius:"2px"},children:[(null==e?void 0:null===(o=e.buidler)||void 0===o?void 0:o.avatar)&&(0,r.jsx)(l.Z,{component:"img",src:null==e?void 0:null===(n=e.buidler)||void 0===n?void 0:n.avatar,alt:"avatar",style:{cursor:"pointer",zIndex:2,width:"100%",height:"100%"}}),(null==e?void 0:e.projectRole.includes("Project Manager"))&&(0,r.jsx)(a.Z,{position:"absolute",sx:{left:0,top:0,fontSize:"12px",lineHeight:"15px",color:"#fff",background:"#36AFF9",width:"30px",zIndex:3,textAlign:"center"},children:"PM"}),"PENDING"==e.status&&(0,r.jsx)(l.Z,{position:"absolute",width:"100%",height:"100%",sx:{background:"rgba(0, 0, 0, 0.5)",borderRadius:"2px",top:0,left:0,zIndex:3}})]})},t)})})]}):null]},i)}},88738:function(e,t,i){"use strict";i.d(t,{Z:function(){return a}});var r=i(52676),o=i(47134),n=i(82814),l=i(4369);function a(e){var t,i;let{data:a,width:d}=e,s=null==a?void 0:null===(t=a.membersInWorkingGroup)||void 0===t?void 0:t.filter(e=>{var t;return!(null==e?void 0:null===(t=e.role)||void 0===t?void 0:t.includes("Working Group Leader"))}),x=null==a?void 0:null===(i=a.membersInWorkingGroup)||void 0===i?void 0:i.filter(e=>{var t;return null==e?void 0:null===(t=e.role)||void 0===t?void 0:t.includes("Working Group Leader")});return(0,r.jsxs)(o.Z,{href:"/workingGroups/".concat(null==a?void 0:a.id),sx:{display:"flex",flexDirection:"column",textDecoration:"none",borderRadius:"5px",border:"0.5px solid #D0D5DD",width:d||"384px",backgroundColor:"#ffffff"},children:[(0,r.jsx)(n.Z,{sx:{backgroundImage:"url(".concat(null==a?void 0:a.bannerURI,")"),backgroundSize:"cover",backgroundPosition:"center",borderRadius:"5px 5px 0 0"},width:"100%",height:"160px"}),(0,r.jsxs)(n.Z,{padding:"16px 24px",textAlign:"left",children:[(0,r.jsx)(l.Z,{color:"#101828",fontSize:"16px",fontWeight:600,marginBottom:"16
1px",children:null==a?void 0:a.name}),(0,r.jsx)(l.Z,{color:"#666F85",fontSize:"16px",fontWeight:400,lineHeight:"24px",marginBottom:"16px",maxHeight:"100px",overflow:"hidden",textOverflow:"ellipsis",children:null==a?void 0:a.shortDescription}),(0,r.jsx)(l.Z,{color:"#101828",fontSize:"16px",fontWeight:600,marginBottom:"16px",children:"Members"}),(0,r.jsxs)(n.Z,{display:"flex",gap:"10px",overflow:"hidden",children:[x&&x.map((e,t)=>{var i,a;return(0,r.jsxs)(o.Z,{sx:{border:"0.5px solid #d0d5dd",borderRadius:"2px",width:"60px",height:"60px",position:"relative"},target:"_blank",href:"/buidlers/".concat(null==e?void 0:null===(i=e.member)||void 0===i?void 0:i.address),children:[(0,r.jsx)(n.Z,{component:"img",src:null==e?void 0:null===(a=e.member)||void 0===a?void 0:a.avatar,alt:"avatar",style:{width:"59px",height:"59px"}}),(0,r.jsx)(l.Z,{position:"absolute",sx:{right:0,bottom:0,fontSize:"10px",lineHeight:"12px",color:"#fff",background:"#36AFF9",width:"28px",zIndex:3,textAlign:"center"},children:"Lead"})]},t)}),s&&s.map((e,t)=>{var i,l;return(0,r.jsx)(o.Z,{sx:{border:"0.5px solid #d0d5dd",borderRadius:"2px",width:"60px",height:"60px",position:"relative"},target:"_blank",href:"/buidlers/".concat(null==e?void 0:null===(i=e.member)||void 0===i?void 0:i.address),children:(0,r.jsx)(n.Z,{component:"img",src:null==e?void 0:null===(l=e.member)||void 0===l?void 0:l.avatar,alt:"avatar",style:{width:"59px",height:"59px"}})},t)})]})]})]})}},71529:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return F}});var r=i(52676),o=i(75271),n=i(87714),l=i(76237),a=i(35371),d=i(82814),s=i(31771),x=i(47134),c=i(4369),p=i(41879),u=i(16220),h=i(25802),g=i(21713),f=i(10489),b=i(72974),m=i(88738),v=i(37833),j=i(53517),Z=i(12736),w=i(18977),y=i(16884),k=i(98899),S=i(66525),D=i(39616);function F(){let{address:e,chainId:t}=(0,j.m)(),[i,F]=o.useState(!1),[R,C]=o.useState([]),[,W,,z]=(0,b.Z)(e),E=(0,n.useRouter)(),[I,_]=(0,o.useState)([]),{data:A}=(0,Z.K)({address:e}),{switchChainAsync:B}=(0,w.o)(),{writeContractAsync:T,isError:P,error:N}=(0,y.S)();(0,o.useEffect)(()=>{(async()=>{try{let e=await S.Z.get("/workinggroup/list"),t=null==e?void 0:e.data;if((null==t?void 0:t.status)==="SUCCESS")_(null==t?void 0:t.data);else throw Error(t.message)}catch(e){(0,f.Z)({type:"error",title:"Failed to get the working group list",body:e.message})}})()},[]),(0,o.useEffect)(()=>{S.Z.get("/project?page=1&per_page=30").then(e=>{var t,i;(null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.status)==="SUCCESS"&&C(null==e?void 0:null===(i=e.data)||void 0===i?void 0:i.data)}).catch(e=>{console.error(e)})},[]);let M=async()=>{if(!i){F(!0);try{t!=k.SF.chainId&&await B({chainId:k.SF.chainId});let i=(await S.Z.post("/buidler/".concat(e,"/signature"))).data.data.signature,r=W.ipfsURI,o=(0,D.j)(r);await T({...k.SF,functionName:"mint",args:[(0,v.NC)(o),i]})&&(await S.Z.post("/buidler/activate"),z(),E.push("/buidlers/".concat(e)))}catch(e){(0,f.Z)({type:"error",title:"Failed to mint",body:e.toString()})}F(!1)}};return(0,r.jsx)(h.Z,{children:(0,r.jsxs)(a.Z,{sx:{maxWidth:1216,display:"flex",flexDirection:"column",mb:"55px"},children:[(0,r.jsx)(d.Z,{children:(0,r.jsxs)(s.Z,{separator:(0,r.jsx)(l.Z,{fontSize:"small"}),"aria-label":"breadcrumb",children:[(0,r.jsx)(x.Z,{underline:"hover",color:"inherit",href:"/buidlers/".concat(e,"?isFromOnboarding=true"),children:(0,r.jsx)(c.Z,{variant:"body1",children:"Member profile"})}),(0,r.jsx)(x.Z,{underline:"none",color:"#437EF7","aria-current":"page",children:(0,r.jsx)(c.Z,{variant:"body1",children:"Earn your SBT Card"})})]})}),(0,r.jsxs)(p.Z,{sx:{display:"flex",textAlign:"center",alignItems:{xs:"center",md:"left"},gap:3,py:6},children:[(0,r.jsxs)(d.Z,{position:"relative",children:[(0,r.jsx)(d.Z,{sx:{position:"absolute",width:"145.8px",borderBottom:"28.28px solid #d0d5dd",borderLeft:"28.28px solid transparent",borderRight:"28.28px solid transparent",textAlign:"center",transform:"rotate(-45deg)",top:27.5,left:-31.5}}),(0,r.jsx)(d.Z,{sx:{position:"absolute",width:"145.8px",height:"28.28px",textAlign:"center",transform:"rotate(-45deg)",top:27.5,left:-31.5},children:(0,r.jsx)(c.Z,{color:"#fff",variant:"body2",lineHeight:"28.28px",children:"To be earned"})}),(0,r.jsx)(d.Z,{component:"img",src:"/images/card.png",width:"368px"})]}),(0,r.jsx)(c.Z,{fontFamily:"Inter",fontSize:"48px",lineHeight:"44px",fontWeight:"800",children:"Earn 
1your SBT Card"}),(0,r.jsx)(c.Z,{fontSize:"20px",color:"#666F85",children:"Governance rights entitled"}),(0,r.jsx)(u.Z,{variant:"gradient",width:"200px",disabled:(null==W?void 0:W.status)!=="READYTOMINT",onClick:()=>{M()},children:i?"Minting...":"Mint"}),(0,r.jsxs)(c.Z,{fontSize:"16px",color:"#666F85",children:["Contribute in projects or pick up some bounty tasks from"," ",(0,r.jsx)(x.Z,{href:"https://www.notion.so/lxdao/1341eee9bd9343a7a60b211de7822af3?v=101f42763e12488999211f15a7b75b81",target:"_blank",children:"here"})," ","to earn USDC rewards by contributing to Pods or operational work (community operations, design, finance, etc.). Then request a current member with SBT held to initialize a proposal."]})]}),(0,r.jsxs)(p.Z,{gap:3,mb:3,children:[(0,r.jsxs)(d.Z,{display:"flex",alignItems:"center",gap:1.5,children:[(0,r.jsx)(c.Z,{variant:"subtitle2",fontWeight:"800",children:"Working groups"}),(0,r.jsx)(d.Z,{sx:{backgroundColor:"#FEF3F2",border:"1px solid #FEE4E2",borderRadius:"6px",padding:"4px 10px",display:"inline-flex",alignItems:"center"},children:(0,r.jsx)(c.Z,{fontSize:"12px",fontWeight:"500",color:"#B42318",sx:{textTransform:"uppercase",letterSpacing:"0.3px"},children:"Archive"})})]}),(0,r.jsx)(d.Z,{display:"flex",gap:"24px",flexWrap:"wrap",justifyContent:{xs:"center",md:"center",lg:"flex-start"},children:I.length>0&&I.map((e,t)=>(0,r.jsx)(m.Z,{data:e,width:"368px"},t))})]}),(0,r.jsxs)(p.Z,{gap:3,children:[(0,r.jsx)(c.Z,{variant:"subtitle2",fontWeight:"800",children:"Projects"}),(0,r.jsx)(d.Z,{overflow:"scroll",children:(0,r.jsx)(d.Z,{display:"flex",flexDirection:{md:"row",sm:"column",xs:"column"},alignItems:"stretch",flexWrap:"nowrap",gap:3,children:R.map((e,t)=>(0,r.jsx)(d.Z,{width:{md:"500px",sm:"calc(100% - 40px)",xs:"calc(100% - 40px)"},flexShrink:0,marginLeft:{sm:"auto",xs:"auto"},marginRight:{sm:"auto",xs:"auto"},children:(0,r.jsx)(g.Z,{project:e})},t))})}),(0,r.jsx)(u.Z,{variant:"outlined",width:"200px",children:(0,r.jsx)(x.Z,{href:"/projects",target:"_blank",sx:{textDecoration:"none"},children:"View all projects"})})]})]})})}}},function(e){e.O(0,[4518,9314,3358,8327,1879,1866,5580,5802,8899,2888,9774,179],function(){return e(e.s=52329)}),_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.