1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1340],{68548:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/projects/[category]",function(){return n(3633)}])},75680:function(e,t,n){"use strict";n.d(t,{$u:function(){return j},RO:function(){return p}});var r=n(15311),i=n(37059),s=n(27625),l=n(41650),a=n(54509),c=n(18539),o=n(55375),d=n(62903),u=n(53114),x=n(90858),h=n(20132);let j=e=>{let{children:t,name:n,defaultValue:l,value:a,onChange:c,...o}=e,{getRootProps:d,getRadioProps:u}=(0,i.a)({name:n,defaultValue:l,value:a,onChange:c}),x=(0,h.useMemo)(()=>{let e=h.Children.toArray(t);return e.filter(h.isValidElement).map(t=>{var n;return(0,h.cloneElement)(t,{radioProps:u({value:t.props.value,isDisabled:null===(n=t.props.radioProps)||void 0===n?void 0:n.isDisabled}),choices:e.length})})},[t,u]);return(0,r.jsx)(s.K,{...d(o),children:x})},p=e=>{let{radioProps:t,choices:n,icon:i,iconVariant:x,children:h,...j}=e,{getInputProps:p,getCheckboxProps:b,getLabelProps:g,state:m}=(0,l.x)(t),v=(0,a.Me)(void 0,"radio-button"),y=(0,c.mq)("RadioCard",e);1===n&&(y._checked={borderColor:"bg.accent"});let S=p(),Z=b(),w=g();return(0,r.jsxs)(o.xu,{as:"label",cursor:"pointer",...w,sx:{".focus-visible + [data-focus]":{boxShadow:"outline",zIndex:1}},children:[(0,r.jsx)("input",{...S,"aria-labelledby":v}),(0,r.jsx)(o.xu,{sx:y,...Z,...j,children:(0,r.jsxs)(s.K,{direction:"row",children:[i&&x&&(0,r.jsx)(d.h,{icon:i,variant:x,color:(null==t?void 0:t.isDisabled)?"fg.muted":void 0,disabled:!0,"aria-label":""}),(0,r.jsx)(o.xu,{flex:"1",children:h}),!(null==t?void 0:t.isDisabled)&&(0,r.jsx)(r.Fragment,{children:m.isChecked?(0,r.jsx)(o.Cd,{bg:"accent",size:"4",children:(0,r.jsx)(u.J,{as:f,boxSize:"2.5",color:"fg.inverted"})}):(0,r.jsx)(o.Cd,{borderWidth:"2px",size:"4"})})]})})]})},f=(0,x.I)({displayName:"CheckIcon",viewBox:"0 0 12 10",path:(0,r.jsx)("polyline",{fill:"none",strokeWidth:"2px",stroke:"currentColor",strokeDasharray:"16px",points:"1.5 6 4.5 9 10.5 1"})})},52549:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(15311),i=n(27377),s=n(62903),l=n(50082),a=n(97682),c=n(58527),o=n(5724);function d(e){let{fullButton:t}=e,{t:n}=(0,o.Z)("common"),d=(0,c.useRouter)(),u=n("signInToSubscribe");return t?(0,r.jsx)(l.z,{leftIcon:(0,r.jsx)(a.HOZ,{}),"aria-label":u,variant:"outline",children:u}):(0,r.jsx)(i.u,{label:u,"aria-label":u,hasArrow:!0,children:(0,r.jsx)(s.h,{icon:(0,r.jsx)(a.HOZ,{}),"aria-label":u,variant:"outline",onClick:()=>{d.push("/login")}})})}},29956:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(15311),i=n(55375),s=n(89534);function l(e){let{header:t,children:n,...l}=e;return(0,r.jsxs)(i.xu,{as:"section",py:{base:"4",md:"8"},children:[t,(0,r.jsx)(s.W,{...l,children:n})]})}},11880:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(15311),i=n(55375),s=n(95835);function l(e){return(0,r.jsx)(i.xu,{bg:(0,s.ff)("gray.50","gray.700"),maxWidth:"2xl",mx:"auto",p:{base:"6",md:"8"},rounded:{sm:"lg"},shadow:{md:"base"},...e,h:"100%"})}},80177:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(15311),i=n(55375);function s(e){return(0,r.jsx)(i.xu,{width:"full",...e})}},42491:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(15311),i=n(2982),s=n(41272),l=n(46147);function a(e){let{title:t,subscription:n,favoriteButton:a,...c}=e;return(0,r.jsxs)(i.k,{justifyContent:"start",alignItems:"center",...c,mb:"4",children:[(0,r.jsx)(s.X,{size:"sm",fontWeight:"extrabold",letterSpacing:"tight",marginEnd:"2",noOfLines:2,children:t}),a&&(0,r.jsx)(l.Z,{subscription:n})]})}},92896:function(e,t,n){"use strict";n.a(e,async function(e,r){try{n.d(t,{Z:function(){return z}});var i=n(15311),s=n(27625),l=n(99508),a=n(59884),c=n(53114),o=n(98932),d=n(84696),u=n(54590),x=n(62903),h=n(18732),j=n(11880),p=n(80177),f=n(42491),b=n(75125),g=n(51010),m=n(42806),v=n(5724),y=n(99713),S=n(4528),Z=n(90536),w=n(56340),C=n(93060),k=e([m]);function z(e){let{account:t,project:n,subscription:r,currentCategory:k}=e,{t:z}=(0,v.Z)("projects"),{t:I}=(0,v.Z)("common"),{name:W,tags:D,registrationTime:V}=n,R=null!==n.manuallyVerified;return(0,i.jsx)(j.Z,{children:(0,i.jsxs)(s.K,{direction:{base:"column",md:"row"},spacing:{base:"4",md:"10"},children:[(0,i.jsx)(g.Z,{name:W,src:(0,y.r)(n.logo),isVerified:R,fontSize:"2xl"}),(0,i.jsxs)(p.Z,{children:[(0,i.jsx)(f.Z,{title:W,subscription:r,favoriteButton:null!==t}),(0,i.jsx)(l.r,{href:n.url,isExternal:!0,fontWeight:"medium",children:n.url.replace("https://","")}),(0,i.jsx)(s.K,{spacing:"1",mt:"2",children:V&&(0,i.jsxs)(a.U,{fontSize:"sm",children:[(0,i.jsx)(c.J,{as:h.bgj,color:"gray.500"}),(0,i.jsx)(o.x,{children:(0,C.m)(V)})]})}),(0,i.jsx)(o.x,{fontWeight:"semibold",mt:"8",mb:"2",children:I("project.tags")}),(0,i.jsxs)(d.E,{shouldWrapChildren:!0,children:[(0,i.jsx)(b.Z,{category:n.category}),(0,i.jsx)(S.Z,{isVerified:R}),null==D?void 0:D.map(e=>(0,i.jsx)(u.Vp,{children:e},e))]})]}),(0,i.jsxs)(s.K,{spacing:"4",mt:{base:"4",md:"0"},direction:{base:"row",md:"column"},children:[(0,i.jsx)(m.Z,{account:t,project:n,subscription:r}),(0,i.jsx)(Z.Z,{href:"/projects/".concat(n.id),children:(0,i.jsx)(x.h,{icon:(0,i.jsx)(w.t_2,{}),variant:"ghost","aria-label":z("projectDetails")})})]})]})})}m=(k.then?(await k)():k)[0],r()}catch(e){r(e)}})},12007:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(15311),i=n(27625),s=n(53878),l=n(5145),a=n(11880);function c(){return(0,r.jsx)(a.Z,{children:(0,r.jsxs)(i.K,{direction:{base:"column",md:"row"},spacing:{base:"4",md:"10"},children:[(0,r.jsx)(s.s,{size:"20"}),(0,r.jsx)(l.N,{mt:"4",noOfLines:6,spacing:"4",w:"full"})]})})}},51010:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(15311),i=n(95835),s=n(6064),l=n(76350),a=n(96664);function c(e){let{isVerified:t,hideVerified:n,...c}=e,o=(0,i.ff)("white","gray.700");return(0,r.jsx)(s.q,{size:"2xl",...c,scale:.5,children:!n&&(0,r.jsx)(l.M,{borderWidth:"4px",borderColor:o,insetEnd:"3",bottom:"3",bg:o,children:(0,r.jsx)(a.Z,{isVerified:null!=t&&t,fontSize:"3xl"})})})}},75125:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(15311),i=n(45395),s=n(97682),l=n(54590),a=n(26934),c=n(5724);function o(e){let t,n,o,{category:d}=e,{t:u}=(0,c.Z)("common");switch(d){case a.Z.DeFi:n=s.UWZ,t="green",o=u("categories.defi.tag");break;case a.Z.NFT:n=i.QJe,t="yellow",o=u("categories.nft.tag");break;case a.Z.SPO:n=s.XQj,t="blue",o=u("categories.spo.tag");break;case a.Z.dRep:n=s.o2,t="purple",o=u("categories.drep.tag");break;case a.Z.DAO:n=s.bwC,t="orange",o=u("categories.dao.tag");break;case a.Z.Other:n=s.VzJ,t="red",o=u("categories.other.tag");break;default:t="gray",n=s.Fbu,o="N/A"}return(0,r.jsxs)(l.Vp,{size:"md",variant:"solid",colorScheme:t,children:[(0,r.jsx)(l.AD,{boxSize:"12px",as:n}),(0,r.jsx)(l.Sn,{children:o})]})}},96664:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(15311),i=n(95835),s=n(53114),l=n(5724),a=n(97682);function c(e){let{isVerified:t,fontSize:n}=e,{t:c}=(0,l.Z)("projects"),o=t?a.vr:a.JSF,d=t?"green":"red",u=(0,i.ff)("".concat(d,".600"),"".concat(d,".400")),x=c(t?"verified":"notVerified");return(0,r.jsx)(s.J,{as:o,fontSize:n,color:u,title:x})}},4528:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(15311),i=n(97682),s=n(54590),l=n(5724);function a(e){let t,n,a,{isVerified:c}=e,{t:o}=(0,l.Z)("projects");return c?(n=i.vr,t="green",a=o("verified")):(n=i.JSF,t="red",a=o("notVerified")),(0,r.jsxs)(s.Vp,{size:"md",variant:"solid",colorScheme:t,children:[(0,r.jsx)(s.AD,{boxSize:"12px",as:n}),(0,r.jsx)(s.Sn,{children:a})]})}},29586:function(e,t,n){"use strict";n.d(t,{r:function(){return m}});var r=n(15311),i=n(27625),s=n(55375),l=n(48270),a=n(19140),c=n(66274),o=n(59884),d=n(62903),u=n(95835),x=n(20132),h=n(88765),j=n(2982),p=n(36549);let f=(0,x.forwardRef)(function(e,t){return(0,r.jsx)(j.k,{ref:t,className:"chakra-carousel",overflow:"hidden",position:"relative",userSelect:"none",...e})}),b=e=>(0,r.jsx)(s.xu,{className:"chakra-carousel__slide",position:"relative",overflow:"hidden",
1width:"100%",minH:"100%",...e}),g=e=>(0,p.E)({selector:".chakra-carousel__slide",...e}),m=e=>{let{images:t,aspectRatio:n=4/3,rootProps:d}=e,[u,j]=(0,x.useState)(0),[p,m]=g({slideChanged:e=>j(e.track.details.rel)}),y=u<t.length-1;return(0,r.jsx)(i.K,{spacing:"4",...d,children:(0,r.jsxs)(s.xu,{position:"relative",sx:{_hover:{"> button":{display:"inline-flex"}}},children:[(0,r.jsx)(f,{ref:p,children:t.map((e,t)=>(0,r.jsx)(b,{children:(0,r.jsx)(l.o,{ratio:n,transition:"all 200ms",opacity:u===t?1:.4,_hover:{opacity:1},children:(0,r.jsx)(a.E,{src:e.src,objectFit:"cover",alt:e.alt,fallback:(0,r.jsx)(c.O,{})})})},t))}),0!==u&&(0,r.jsx)(v,{pos:"absolute",left:"3",top:"50%",transform:"translateY(-50%)",onClick:()=>{var e;return null===(e=m.current)||void 0===e?void 0:e.prev()},icon:(0,r.jsx)(h.$Ku,{}),"aria-label":"Previous Slide"}),y&&(0,r.jsx)(v,{pos:"absolute",right:"3",top:"50%",transform:"translateY(-50%)",onClick:()=>{var e;return null===(e=m.current)||void 0===e?void 0:e.next()},icon:(0,r.jsx)(h.nQU,{}),"aria-label":"Next Slide"}),(0,r.jsx)(o.U,{position:"absolute",width:"full",justify:"center",bottom:"0",py:"4",children:t.map((e,t)=>(0,r.jsx)(s.Cd,{size:"2",bg:u===t?"white":"whiteAlpha.400"},t))})]})})},v=e=>(0,r.jsx)(d.h,{display:"none",fontSize:"lg",isRound:!0,boxShadow:"base",color:(0,u.ff)("gray.600","gray.400"),bg:(0,u.ff)("white","gray.800"),_hover:{bg:(0,u.ff)("gray.100","gray.700")},_active:{bg:(0,u.ff)("gray.200","gray.600")},_focus:{boxShadow:"inerhit"},_focusVisible:{boxShadow:"outline"},...e})},61534:function(e,t,n){"use strict";n.d(t,{Z:function(){return x}});var r=n(15311),i=n(55375),s=n(89534),l=n(27625),a=n(50082),c=n(59884),o=n(98932),d=n(90536),u=n(45395);function x(e){let{backButtonLink:t,backButtonText:n,title:x,description:h,children:j}=e;return(0,r.jsx)(i.xu,{as:"section",pt:{base:"4",md:"8"},pb:{base:"12",md:"12"},children:(0,r.jsx)(s.W,{px:0,children:(0,r.jsx)(i.xu,{bg:"bg.surface",px:{base:"4",md:"6"},py:"5",boxShadow:"sm",borderRadius:"lg",children:(0,r.jsxs)(l.K,{direction:{base:"column",sm:"row"},spacing:"4",justify:"start",alignItems:"center",children:[t&&(0,r.jsx)(d.Z,{href:t,children:(0,r.jsx)(a.z,{variant:"ghost",size:"lg",children:(0,r.jsxs)(c.U,{children:[(0,r.jsx)(u.x_l,{}),(0,r.jsx)(o.x,{children:n})]})})}),(0,r.jsx)(i.xu,{flexGrow:"1",children:(0,r.jsxs)(l.K,{spacing:"1",children:[(0,r.jsx)(o.x,{textStyle:"lg",fontWeight:"medium",children:x}),h&&(0,r.jsx)(o.x,{textStyle:"sm",color:"fg.muted",children:h})]})}),j]})})})})}},46147:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(15311),i=n(95835),s=n(27377),l=n(62903),a=n(5724),c=n(97682);function o(e){let{subscription:t}=e,{t:n}=(0,a.Z)("projects"),o=n((null==t?void 0:t.favorite)?"removeFromFavorites":"addToFavorites"),d=(null==t?void 0:t.favorite)?(0,r.jsx)(c.MVI,{}):(0,r.jsx)(c.Ze$,{}),u=(null==t?void 0:t.favorite)?"yellow.400":"gray.400",x=(0,i.ff)("gray.100","gray.700");return(0,r.jsx)(s.u,{label:o,hasArrow:!0,children:(0,r.jsx)(l.h,{"aria-label":o,icon:d,variant:"ghost",textColor:u,sx:{_hover:{bg:x}}})})}},52157:function(e,t,n){"use strict";n.d(t,{Z:function(){return y}});var r=n(15311),i=n(62023),s=n(55375),l=n(89534),a=n(27625),c=n(98932),o=n(43510),d=n(59884),u=n(62903),x=n(53114),h=n(5724),j=n(45395),p=n(96664),f=n(20132),b=n(46905),g=n(98546),m=n(85145).Buffer;function v(e){return g.gW.encode("drep",g.gW.toWords(m.from("22".concat(e.drepId),"hex")))}function y(e){let{project:t}=e,{t:n}=(0,h.Z)("projects"),[y,S]=(0,f.useState)({}),Z=(0,i.p)(),w=(0,b.h_)();(0,f.useEffect)(()=>{(async()=>{try{let e=(await Promise.all(t.dreps.map(e=>w.getDRepDetails(e.drepId)))).reduce((e,t)=>(e[t.drepId]=t,e),{});S(e)}catch(e){S(t.dreps.reduce((e,t)=>(e[t.drepId]={drepId:t.drepId,displayName:g.gW.encode("drep",g.gW.toWords(m.from(t.drepId,"hex"))),drepView:g.gW.encode("drep",g.gW.toWords(m.from(t.drepId,"hex"))),currentEpoch:0,delegation:0},e),{})),console.error("Error fetching dRep details:",e)}})()},[w,t.dreps]);let C=Object.keys(y).length===t.dreps.length;return(0,r.jsxs)(s.xu,{as:"section",pt:{base:"4",md:"8"},pb:{base:"12",md:"12"},children:[(0,r.jsx)(l.W,{px:0,children:(0,r.jsx)(s.xu,{bg:"bg.surface",px:{base:"4",md:"6"},py:"5",boxShadow:"sm",borderRadius:"lg",children:(0,r.jsx)(a.K,{spacing:"4",justify:"space-between",direction:{base:"column",md:"row"},children:(0,r.jsx)(c.x,{textStyle:"lg",fontWeight:"medium",flexGrow:"1",children:n("projectDReps")})})})}),(0,r.jsx)(l.W,{py:{base:"4",md:"8"},children:(0,r.jsxs)(a.K,{spacing:"6",children:[!C&&(0,r.jsx)(o.$,{}),C&&t.dreps.map(e=>(0,r.jsxs)(a.K,{children:[(0,r.jsxs)(d.U,{children:[(0,r.jsx)(c.x,{fontSize:"lg",wordBreak:"break-word",children:n("dRepName",y[e.drepId])}),(0,r.jsx)(p.Z,{isVerified:!0})]}),(0,r.jsxs)(d.U,{spacing:"3",children:[(0,r.jsx)(c.x,{color:"fg.muted",wordBreak:"break-word",children:n("dRepIdHashTitle",{drepId:e.drepId})}),(0,r.jsx)(u.h,{"aria-label":n("copyDRepId"),icon:(0,r.jsx)(x.J,{as:j.esY}),size:"xs",variant:"ghost",color:"fg.muted",onClick:()=>{navigator.clipboard.writeText(e.drepId),Z({title:n("dRepIdCopied",y[e.drepId]),status:"success",duration:2e3})}})]}),(0,r.jsxs)(d.U,{spacing:"3",children:[(0,r.jsx)(c.x,{color:"fg.muted",wordBreak:"break-word",children:n("dRepIdCip105",{drepView:y[e.drepId].drepView})}),(0,r.jsx)(u.h,{"aria-label":n("copyDRepId"),icon:(0,r.jsx)(x.J,{as:j.esY}),size:"xs",variant:"ghost",color:"fg.muted",onClick:()=>{navigator.clipboard.writeText(y[e.drepId].drepView),Z({title:n("dRepIdCopied",y[e.drepId]),status:"success",duration:2e3})}})]}),(0,r.jsxs)(d.U,{spacing:"3",children:[(0,r.jsx)(c.x,{color:"fg.muted",wordBreak:"break-word",children:n("dRepIdCip129",{drepView129:v(y[e.drepId])})}),(0,r.jsx)(u.h,{"aria-label":n("copyDRepId"),icon:(0,r.jsx)(x.J,{as:j.esY}),size:"xs",variant:"ghost",color:"fg.muted",onClick:()=>{navigator.clipboard.writeText(v(y[e.drepId])),Z({title:n("dRepIdCopied",y[e.drepId]),status:"success",duration:2e3})}})]})]}
1,e.drepId))]})})]})}},46355:function(e,t,n){"use strict";n.a(e,async function(e,r){try{n.d(t,{Z:function(){return V}});var i=n(15311),s=n(27625),l=n(41272),a=n(55375),c=n(98932),o=n(95835),d=n(59884),u=n(53114),x=n(99508),h=n(84696),j=n(54590),p=n(50082),f=n(66274),b=n(29860),g=n(29586),m=n(99713),v=n(5724),y=n(92690),S=n(46905),Z=n(20132),w=n(89060),C=n(4528),k=n(75125),z=n(18732),I=n(52549),W=n(93060),D=e([y]);function V(e){var t;let{account:n,project:r}=e,{t:D}=(0,v.Z)("projects"),{t:V}=(0,v.Z)("common"),[R,T]=(0,Z.useState)(void 0),[P,_]=(0,Z.useState)(!1),E=(0,S.h_)(),F=""!==r.logo?[{id:"01",src:(0,m.r)(r.logo),alt:D("projectLogoAlt",{projectName:r.name})}]:[],K=async e=>{await E.changeSubscriptionPreference(r.id,e),T(await E.getSubscription(r.id)||void 0)};(0,Z.useEffect)(()=>{(async()=>{if(n){let e=await E.getSubscription(r.id);T(e||void 0)}_(!0)})()},[E,n,r.id]);let U=null!==r.manuallyVerified;return(0,i.jsxs)(s.K,{direction:{base:"column-reverse",lg:"row"},spacing:{base:"6",lg:"12",xl:"16"},children:[(0,i.jsxs)(s.K,{spacing:{base:"6",lg:"8"},maxW:{lg:"lg"},justify:"center",flex:"2",children:[(0,i.jsxs)(s.K,{spacing:{base:"3",md:"4"},children:[(0,i.jsx)(s.K,{spacing:"3",children:(0,i.jsxs)(s.K,{spacing:"1",mb:"3",children:[(0,i.jsx)(l.X,{size:"lg",fontWeight:"medium",children:r.name}),(0,i.jsx)(a.xu,{children:(0,i.jsx)(C.Z,{isVerified:U})})]})}),(0,i.jsx)(c.x,{color:(0,o.ff)("gray.600","gray.400"),children:r.description.split("\n").map((e,t)=>(0,i.jsxs)(Z.Fragment,{children:[e,(0,i.jsx)("br",{})]},t))})]}),(0,i.jsxs)(s.K,{direction:{base:"column",md:"row"},spacing:{base:"6",md:"8"},children:[(0,i.jsx)(s.K,{flex:"1",children:(0,i.jsxs)(d.U,{spacing:"1",color:(0,o.ff)("gray.600","gray.400"),children:[(0,i.jsx)(u.J,{as:z.bgj,boxSize:"5"}),(0,i.jsx)(c.x,{fontSize:"sm",fontWeight:"medium",children:V("project.joined",{joinDate:(0,W.m)(r.registrationTime)})})]})}),(0,i.jsx)(s.K,{flex:"1",children:(0,i.jsxs)(d.U,{spacing:"1",color:(0,o.ff)("gray.600","gray.400"),children:[(0,i.jsx)(u.J,{as:z.ZrU,boxSize:"5"}),(0,i.jsx)(x.r,{href:r.url,isExternal:!0,fontSize:"sm",fontWeight:"medium",children:r.url.replace("https://","")})]})})]}),(0,i.jsxs)(s.K,{spacing:{base:"4",md:"8"},align:"flex-start",justify:"space-evenly",direction:{base:"column",md:"row"},children:[(0,i.jsxs)(s.K,{flex:"1",children:[(0,i.jsx)(c.x,{fontWeight:"semibold",children:V("project.tags")}),(0,i.jsxs)(h.E,{shouldWrapChildren:!0,children:[(0,i.jsx)(k.Z,{category:r.category}),null===(t=r.tags)||void 0===t?void 0:t.map(e=>(0,i.jsx)(j.Vp,{children:e},e))]})]}),P&&null!==n&&(0,i.jsxs)(s.K,{flex:"1",width:{base:"full",md:"fit-content"},children:[(0,i.jsx)(c.x,{fontWeight:"semibold",children:V("project.actions")}),(0,i.jsx)(p.z,{variant:"outline",width:"full",leftIcon:(0,i.jsx)(u.J,{as:b.$aX,boxSize:"4"}),children:D("favorite")}),(0,i.jsx)(w.Z,{subscription:R,onStatusChange:K,fullButton:!0}),(0,i.jsx)(y.Z,{projectId:r.id,fullButton:!0})]}),P&&null===n&&(0,i.jsxs)(s.K,{flex:"1",children:[(0,i.jsx)(c.x,{fontWeight:"semibold",children:V("project.actions")}),(0,i.jsx)(I.Z,{fullButton:!0})]}),!P&&(0,i.jsxs)(s.K,{flex:"1",children:[(0,i.jsx)(c.x,{fontWeight:"semibold",children:V("project.actions")}),(0,i.jsx)(f.O,{height:"50"})]})]})]}),F.length&&(0,i.jsx)(g.r,{rootProps:{overflow:"hidden",flex:"3"},images:F.slice(0,5)})]})}y=(D.then?(await D)():D)[0],r()}catch(e){r(e)}})},92690:function(e,t,n){"use strict";n.a(e,async function(e,r){try{n.d(t,{Z:function(){return W}});var i=n(15311),s=n(27377),l=n(62903),a=n(50082),c=n(97411),o=n(57177),d=n(50586),u=n(9836),x=n(5702),h=n(1993),j=n(43510),p=n(27625),f=n(25038),b=n(55375),g=n(86316),m=n(59884),v=n(98932),y=n(20132),S=n(5724),Z=n(46905),w=n(71219),C=n(97682),k=n(25391),z=n(58733),I=e([k]);k=(I.then?(await I)():I)[0];let D=(0,y.forwardRef)(function(e,t){let{icon:n,label:r,fullButton:c,...o}=e;return c?(0,i.jsx)(a.z,{leftIcon:n,...o,"aria-label":r,variant:"outline",ref:t,children:r}):(0,i.jsx)(s.u,{label:r,"aria-label":r,hasArrow:!0,children:(0,i.jsx)(l.h,{icon:n,...o,"aria-label":r,variant:"ghost",ref:t})})}),V={linkId:0,name:"types.none",icon:(0,i.jsx)(C.YTL,{})};function W(e){let{projectId:t,fullButton:n}=e,[r,s]=(0,y.useState)([]),[l,a]=(0,y.useState)(V),[I,W]=(0,y.useState)([]),{t:R}=(0,S.Z)("projects"),{t:T}=(0,S.Z)("common"),P=(0,Z.h_)(),_=async()=>{var e;let n=await Promise.all([P.getLinkedExternalAccounts(),P.getNotificationsSettingsForAccountAndProject(t)]),r=["default"];n[1].length>0&&(r=n[1].map(e=>"".concat(e.externalAccountLinkId))),W(r),s((e=n[0],(0,k.h)(e).filter(e=>(0,z.m)(e.externalAccount.type)).reduce((e,t)=>
1{let n=(0,z.T)(t.externalAccount.type);return n&&e.push({linkId:t.id,name:"types.".concat(null==n?void 0:n.id),icon:null==n?void 0:n.Component}),e},[]))),a(function(e){var t;let n=null!==(t=e.find(e=>{var t;return null===(t=e.settings)||void 0===t?void 0:t.includes(w.j1.DefaultForNotifications)}))&&void 0!==t?t:null;if(null!==n){let e=(0,z.T)(n.externalAccount.type);if(e)return{linkId:0,name:"types.".concat(e.id),icon:e.Component}}return V}(n[0]))},E=e=>{let n=e.target.value;if("default"===n)W(["default"]),P.updateNotificationsSettingsForAccountAndProject(t,[]);else{let r=[...I.filter(e=>"default"!==e&&e!==n)];e.target.checked&&r.push(n),0===r.length&&r.push("default"),W(r),P.updateNotificationsSettingsForAccountAndProject(t,r.map(e=>({projectId:t,externalAccountLinkId:parseInt(e)})))}};return(0,i.jsxs)(c.J,{onOpen:_,children:[(0,i.jsx)(o.x,{children:(0,i.jsx)(D,{icon:(0,i.jsx)(C.crQ,{}),label:R("projectNotificationSettings.buttonText"),fullButton:n})}),(0,i.jsxs)(d.y,{children:[(0,i.jsx)(u.Y,{fontWeight:"semibold",fontSize:"lg",mt:"1",children:R("projectNotificationSettings.label")}),(0,i.jsx)(x.u,{size:"xs"}),(0,i.jsxs)(h.b,{children:[0===r.length&&(0,i.jsx)(j.$,{}),r.length>0&&(0,i.jsxs)(p.K,{spacing:"2",divider:(0,i.jsx)(f.c,{}),my:"2",children:[(0,i.jsx)(b.xu,{children:(0,i.jsx)(g.X,{value:"default",isChecked:I.includes("default"),onChange:E,children:(0,i.jsxs)(m.U,{children:[l.icon,(0,i.jsx)(v.x,{children:R("projectNotificationSettings.default",{defaultNotificationAccount:T(l.name)})})]})})}),(0,i.jsx)(p.K,{spacing:"2",children:r.map(e=>(0,i.jsx)(g.X,{value:e.linkId,isChecked:I.includes("".concat(e.linkId)),onChange:E,children:(0,i.jsxs)(m.U,{children:[e.icon,(0,i.jsx)(v.x,{children:T(e.name)})]})},e.linkId))})]})]})]})]})}r()}catch(e){r(e)}})},21528:function(e,t,n){"use strict";n.a(e,async function(e,r){try{n.d(t,{Z:function(){return p}});var i=n(15311),s=n(89534),l=n(61534),a=n(5724),c=n(46355),o=n(29956),d=n(5762),u=n(94333),x=n(64249),h=n(52157),j=e([c]);function p(e){let{account:t,project:n}=e,{t:r}=(0,a.Z)("projects"),j=(0,d.useRouter)().query.from,p="/projects/all";return j&&j.includes("-")?p="/announcements/".concat(j):j&&(p="/projects/".concat(j)),(0,i.jsxs)(o.Z,{header:(0,i.jsx)(l.Z,{backButtonLink:p,backButtonText:r("back"),title:r("projectDetails")}),px:"0",children:[(0,i.jsx)(s.W,{py:{base:"4",md:"8"},children:(0,i.jsx)(c.Z,{account:t,project:n})}),n.policies.length>0&&(0,i.jsx)(u.Z,{project:n}),n.stakepools.length>0&&(0,i.jsx)(x.Z,{project:n}),n.dreps.length>0&&(0,i.jsx)(h.Z,{project:n})]})}c=(j.then?(await j)():j)[0],r()}catch(e){r(e)}})},94333:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(15311),i=n(62023),s=n(55375),l=n(89534),a=n(27625),c=n(98932),o=n(59884),d=n(62903),u=n(53114),x=n(5724),h=n(45395),j=n(96664);function p(e){let{project:t}=e,{t:n}=(0,x.Z)("projects"),p=(0,i.p)();return(0,r.jsxs)(s.xu,{as:"section",pt:{base:"4",md:"8"},pb:{base:"12",md:"12"},children:[(0,r.jsx)(l.W,{px:0,children:(0,r.jsx)(s.xu,{bg:"bg.surface",px:{base:"4",md:"6"},py:"5",boxShadow:"sm",borderRadius:"lg",children:(0,r.jsx)(a.K,{spacing:"4",justify:"space-between",direction:{base:"column",md:"row"},children:(0,r.jsx)(c.x,{textStyle:"lg",fontWeight:"medium",flexGrow:"1",children:n("projectPolicies")})})})}),(0,r.jsx)(l.W,{py:{base:"4",md:"8"},children:(0,r.jsx)(a.K,{spacing:"6",children:t.policies.map(e=>(0,r.jsxs)(a.K,{children:[(0,r.jsxs)(o.U,{children:[(0,r.jsx)(c.x,{fontSize:"lg",children:e.name}),(0,r.jsx)(j.Z,{isVerified:null!==e.manuallyVerified})]}),(0,r.jsxs)(o.U,{spacing:"3",children:[(0,r.jsx)(c.x,{color:"fg.muted",wordBreak:{base:"break-all",md:"normal"},children:e.policyId}),(0,r.jsx)(d.h,{"aria-label":n("copyPolicyId"),icon:(0,r.jsx)(u.J,{as:h.esY}),size:"xs",variant:"ghost",color:"fg.muted",onClick:()=>{navigator.clipboard.writeText(e.policyId),p({title:n("policyCopied",{policyName:e.name}),status:"success",duration:2e3})}})]})]},e.policyId))})})]})}},64249:function(e,t,n){"use strict";n.d(t,{Z:function(){return g}});var r=n(15311),i=n(62023),s=n(55375),l=n(89534),a=n(27625),c=n(98932),o=n(43510),d=n(59884),u=n(62903),x=n(53114),h=n(5724),j=n(45395),p=n(96664),f=n(20132),b=n(46905);function g(e){let{project:t}=e,{t:n}=(0,h.Z)("projects"),[g,m]=(0,f.useState)({}),v=(0,i.p)(),y=(0,b.h_)();(0,f.useEffect)(()=>{(async()=>{try{let e=(await Promise.all(t.stakepools.map(e=>y.getStakepoolDetails(e.poolHash)))).reduce((e,t)=>
1(e[t.poolHash]=t,e),{});m(e)}catch(e){console.error("Error fetching pool details:",e)}})()},[y,t.stakepools]);let S=Object.keys(g).length===t.stakepools.length;return(0,r.jsxs)(s.xu,{as:"section",pt:{base:"4",md:"8"},pb:{base:"12",md:"12"},children:[(0,r.jsx)(l.W,{px:0,children:(0,r.jsx)(s.xu,{bg:"bg.surface",px:{base:"4",md:"6"},py:"5",boxShadow:"sm",borderRadius:"lg",children:(0,r.jsx)(a.K,{spacing:"4",justify:"space-between",direction:{base:"column",md:"row"},children:(0,r.jsx)(c.x,{textStyle:"lg",fontWeight:"medium",flexGrow:"1",children:n("projectStakepools")})})})}),(0,r.jsx)(l.W,{py:{base:"4",md:"8"},children:(0,r.jsxs)(a.K,{spacing:"6",children:[!S&&(0,r.jsx)(o.$,{}),S&&t.stakepools.map(e=>(0,r.jsxs)(a.K,{children:[(0,r.jsxs)(d.U,{children:[(0,r.jsx)(c.x,{fontSize:"lg",children:n("poolName",g[e.poolHash])}),(0,r.jsx)(p.Z,{isVerified:!0})]}),(0,r.jsxs)(d.U,{spacing:"3",children:[(0,r.jsx)(c.x,{color:"fg.muted",wordBreak:{base:"break-all",md:"normal"},children:e.poolHash}),(0,r.jsx)(u.h,{"aria-label":n("copyStakepoolHash"),icon:(0,r.jsx)(x.J,{as:j.esY}),size:"xs",variant:"ghost",color:"fg.muted",onClick:()=>{navigator.clipboard.writeText(e.poolHash),v({title:n("stakepoolHashCopied",g[e.poolHash]),status:"success",duration:2e3})}})]})]},e.poolHash))]})})]})}},42806:function(e,t,n){"use strict";n.a(e,async function(e,r){try{n.d(t,{Z:function(){return u}});var i=n(15311),s=n(52549),l=n(89060),a=n(46905),c=n(94431),o=n(92690),d=e([o]);function u(e){let{account:t,project:n,subscription:r}=e,d=(0,a.h_)(),{setSubscriptions:u}=(0,c.Pd)(),x=async e=>{await d.changeSubscriptionPreference(n.id,e),u(await d.getSubscriptions())};return null!=t?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(l.Z,{subscription:r,onStatusChange:x}),(0,i.jsx)(o.Z,{projectId:n.id})]}):(0,i.jsx)(s.Z,{})}o=(d.then?(await d)():d)[0],r()}catch(e){r(e)}})},89060:function(e,t,n){"use strict";n.d(t,{Z:function(){return C}});var r,i,s,l,a=n(15311);(r=s||(s={})).Default="Default",r.Subscribed="Subscribed",r.Unsubscribed="Unsubscribed",r.Muted="Muted",(i=l||(l={})).Subscribed="Subscribed",i.Unsubscribed="Unsubscribed";var c=n(27377),o=n(62903),d=n(50082),u=n(97411),x=n(57177),h=n(50586),j=n(9836),p=n(5702),f=n(1993),b=n(98932),g=n(20132),m=n(97682),v=n(75680),y=n(5724);let S=(e,t)=>{if(t){if(t.currentStatus===s.Default&&t.defaultStatus===l.Subscribed)return{label:e("subscriptionStatus.subscribedDefault.label"),icon:(0,a.jsx)(m.HhX,{}),variant:"outline"};if(t.currentStatus===s.Subscribed)return{label:e("subscriptionStatus.subscribedExplicitly.label"),icon:(0,a.jsx)(m.HhX,{}),variant:"solid"};if(t.currentStatus===s.Unsubscribed)return{label:e("subscriptionStatus.unsubscribedExplicitly.label"),icon:(0,a.jsx)(m.lig,{}),variant:"solid"};if(t.currentStatus===s.Muted)return{label:e("subscriptionStatus.muted.label"),icon:(0,a.jsx)(m.MCI,{}),variant:"solid"}}return{label:e("subscriptionStatus.unsubscribedDefault.label"),icon:(0,a.jsx)(m.lig,{}),variant:"outline"}},Z=(e,t)=>{let n=[{value:s.Subscribed,label:e("subscriptionStatus.subscribedExplicitly.label"),description:e("subscriptionStatus.subscribedExplicitly.description"),icon:(0,a.jsx)(m.HhX,{}),variant:"solid"},{value:s.Unsubscribed,label:e("subscriptionStatus.unsubscribedExplicitly.label"),description:e("subscriptionStatus.unsubscribedExplicitly.description"),icon:(0,a.jsx)(m.lig,{}),variant:"solid"}];return(null==t?void 0:t.defaultStatus)===l.Subscribed?n.unshift({value:s.Default,label:e("subscriptionStatus.subscribedDefault.label"),description:e("subscriptionStatus.subscribedDefault.description"),icon:(0,a.jsx)(m.HhX,{}),variant:"outline"}):n.unshift({value:s.Default,label:e("subscriptionStatus.unsubscribedDefault.label"),description:e("subscriptionStatus.unsubscribedDefault.description"),icon:(0,a.jsx)(m.lig,{}),variant:"outline"}),n},w=(0,g.forwardRef)(function(e,t){let{icon:n,label:r,variant:i,fullButton:s,...l}=e;return s?(0,a.jsx)(d.z,{leftIcon:n,...l,"aria-label":r,variant:i,ref:t,children:r}):(0,a.jsx)(c.u,{label:r,"aria-label":r,hasArrow:!0,children:(0,a.jsx)(o.h,{icon:n,...l,"aria-label":r,variant:i,ref:t})})});function C(e){let{subscription:t,fullButton:n,onStatusChange:r,...i}=e,[,l]=(0,g.useState)((null==t?void 0:t.currentStatus)||s.Default),{t:c}=(0,y.Z)("projects"),o=e=>{l(e),r&&r(e)},{icon:d,label:m,variant:C}=S(c,t),k=Z(c,t);return(0,a.jsx)(u.J,{children:e=>{var r;let{onClose:l}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(x.x,{children:(0,a.jsx)(w,{icon:d,label:m,variant:C,...i,fullButton:n})}),(0,a.jsxs)(h.y,{children:[(0,a.jsx)(j.Y,{fontWeight:"semibold",fontSize:"lg",mt:"1",children:c("subscriptionStatus.label")}),(0,a.jsx)(p.u,{size:"xs"}),(0,a.jsx)(f.b,{children:(0,a.jsx)(v.$u,{defaultValue:null!==(r=null==t?void 0:t.currentStatus)&&void 0!==r?r:s.Default,spacing:"3",onCh
1ange:e=>{o(e),l()},children:k.map(e=>(0,a.jsxs)(v.RO,{value:e.value,icon:e.icon,iconVariant:e.variant,children:[(0,a.jsx)(b.x,{color:"fg.emphasized",fontWeight:"bold",fontSize:"sm",children:e.label}),(0,a.jsx)(b.x,{color:"fg.muted",textStyle:"sm",children:e.description})]},e.value))})})]})]})}})}},71724:function(e,t,n){"use strict";n.a(e,async function(e,r){try{n.d(t,{f:function(){return v}});var i=n(15311),s=n(20132),l=n(3245),a=n(46905),c=n(28503),o=n(276),d=n(29956),u=n(73640),x=n(26934),h=n(94431),j=n(5724),p=n(5762),f=n(71125),b=e([c,o]);[c,o]=b.then?(await b)():b;let g=e=>{var t;let n=e.split("/").pop();return"all"===n?[]:[(null===(t=f.b.find(e=>e.type===n))||void 0===t?void 0:t.category)||x.Z.DeFi]},m=(e,t)=>"verifiedBoth"===t||("verified"===t?null!==e.manuallyVerified:null===e.manuallyVerified),v=e=>{let{account:t}=e,n=(0,a.h_)(),[r,f]=(0,s.useState)(!0),[b,v]=(0,s.useState)([]),[y,S]=(0,s.useState)([]),[Z,w]=(0,s.useState)(!1),[C,k]=(0,s.useState)(""),z=(0,p.useRouter)(),I=z.query.category,[W,D]=(0,s.useState)(g(z.query.category)),[V,R]=(0,s.useState)("verifiedBoth"),[T,P]=(0,s.useState)([]),{t:_}=(0,j.Z)("projects"),{t:E}=(0,j.Z)("common");(0,s.useEffect)(()=>{let e=window.localStorage.getItem("isListView");w("true"===e)},[]),(0,s.useEffect)(()=>{z.query.search&&k(z.query.search)},[z.query]),(0,s.useEffect)(()=>{let e=b.filter(e=>{var t,n;return(e.name.toLowerCase().includes(C)||(null===(t=e.url)||void 0===t?void 0:t.toLowerCase().includes(C))||e.category.toLowerCase().includes(C)||(null===(n=e.tags)||void 0===n?void 0:n.some(e=>e.toLowerCase().includes(C))))&&(0===W.length||W.includes(e.category))&&m(e,V)});P(e),b.length>0&&f(!1)},[W,C,b,V]);let F={defaultValue:W,options:[{label:E("categories.".concat(x.W[x.Z.DeFi],".name")),value:x.Z.DeFi,count:b.filter(e=>e.category===x.Z.DeFi).length},{label:E("categories.".concat(x.W[x.Z.NFT],".name")),value:x.Z.NFT,count:b.filter(e=>e.category===x.Z.NFT).length},{label:E("categories.".concat(x.W[x.Z.SPO],".name")),value:x.Z.SPO,count:b.filter(e=>e.category===x.Z.SPO).length},{label:E("categories.".concat(x.W[x.Z.dRep],".name")),value:x.Z.dRep,count:b.filter(e=>e.category===x.Z.dRep).length},{label:E("categories.".concat(x.W[x.Z.DAO],".name")),value:x.Z.DAO,count:b.filter(e=>e.category===x.Z.DAO).length},{label:E("categories.".concat(x.W[x.Z.Other],".name")),value:x.Z.Other,count:b.filter(e=>e.category===x.Z.Other).length}]};return(0,s.useEffect)(()=>{(async()=>{let e=n.getProjects(),r=null!==t?n.getSubscriptions():Promise.resolve([]),[i,s]=await Promise.all([e,r]);v(i),S(s)})()},[n,t]),(0,i.jsx)(d.Z,{header:(0,i.jsx)(l.Z,{title:_("allProjects"),currentType:Z?u.Z.list:u.Z.card,onChangeType:e=>{w("list"===e),window.localStorage.setItem("isListView","list"===e?"true":"false")},searchTerm:C,onSearch:e=>{k(e.toLowerCase())},filterData:F,onChangeFilter:e=>{D(e.map(e=>e))},verifiedFilterValue:V,onChangeVerifiedFilter:e=>R(e)}),px:"0",children:(0,i.jsxs)(h.e.Provider,{value:{subscriptions:y,setSubscriptions:S},children:[Z&&(0,i.jsx)(o.Z,{account:t,projects:T,subscriptions:y,isProjectsLoading:r,currentCategory:I}),!Z&&(0,i.jsx)(c.Z,{account:t,projects:T,subscriptions:y,isProjectsLoading:r,currentCategory:I})]})})};r()}catch(e){r(e)}})},28503:function(e,t,n){"use strict";n.a(e,async function(e,r){try{n.d(t,{Z:function(){return x}});var i=n(15311),s=n(51623),l=n(54333),a=n(98932),c=n(12007),o=n(92896),d=n(5724),u=e([o]);function x(e){let{account:t,projects:n,isProjectsLoading:r,subscriptions:u,currentCategory:x,...h}=e,{t:j}=(0,d.Z)("projects");return(0,i.jsxs)(s.M,{columns:{base:1,lg:2},spacing:"4",...h,children:[r&&0===n.length&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(l.P,{children:(0,i.jsx)(c.Z,{})}),(0,i.jsx)(l.P,{children:(0,i.jsx)(c.Z,{})})]}),!r&&0===n.length&&(0,i.jsx)(l.P,{colSpan:2,p:"4",children:(0,i.jsx)(a.x,{color:"fg.muted",children:j("noProjectsFound")})}),n.map(e=>{let n=u.find(t=>t.projectId===e.id);return(0,i.jsx)(l.P,{children:(0,i.jsx)(o.Z,{account:t,project:e,subscription:n,currentCategory:x})},e.id)})]})}o=(u.then?(await u)():u)[0],r()}catch(e){r(e)}})},3245:function(e,t,n){"use strict";n.d(t,{Z:function(){return en}});var r=n(15311),i=n(55375),s=n(89534),l=n(27625),a=n(59884),c=n(50082),o=n(98932),d=n(46796),u=n(19604),x=n(53114),h=n(95835),j=n(91058),p=n(62903),f=n(45395),b=n(29860),g=n(37059),m=n(63010),v=n(41650),y=n(54509),S=n(20132);let Z=e=>{let{children:t,name:n,defaultValue:i,value:s,onChange:l,...a}=e,{getRootProps:c,getRadioProps:o}=(0,g.a)({name:n,defaultValue:i,value:s,onChange:l}),d=(0,S.useMemo)(()=>S.Children.toArray(t).filter(S.isValidElement).map((t,n,r)=>{let i=0===n,s=r.length===n+1,l={...i&&!s?{borderRightRadius:0}:{},...!i&&s?{borderLeftRadius:0}:{},...i||s?{}:{borderRadius:0},...s?{}:{mr:"-px"}};return(0,S.cloneElement)(t,{...l,radioProps:o({value:t.props.value,disabled:e.isDisabled||t.props.isDisabled})})}),[t,o,e.isDisabled]);return(0,r.jsx)(m.h,{isAttached:!0,variant:"secondary",...c(a),children:d})},w=e=>{let{radioProps:t,...n}=e,{getInputProps:s,getCheckboxProps:l,getLabelProps:a}=(0,v.x)(t),c=(0,y.Me)(void 0,"radio-button"),o=s(),d=l(),u=a();return(0,r.jsxs)(i.xu,{as:"label",cursor:"pointer",...u,sx:{".focus-visible + [data-focus]":{boxShadow:"outline",zIndex:1}},children:[(0,r.jsx)("input",{...o,"aria-labelledby":c}),(0,r.jsx)(p.h,{id:c,as:"div",_focus:{boxShadow:"none"},...d,...n})]})};
1var C=n(73640),k=n(97411),z=n(83290),I=n(3729),W=n(86316),D=n(5724);function V(e){let{options:t,label:n,hideLabel:s,spacing:a="2",showSearch:c,...o}=e,{t:x}=(0,D.Z)("common");return(0,r.jsxs)(l.K,{as:"fieldset",spacing:a,children:[!s&&(0,r.jsx)(z.l,{fontWeight:"semibold",as:"legend",mb:"0",children:n}),c&&(0,r.jsxs)(d.B,{size:"md",pb:"1",children:[(0,r.jsx)(j.I,{placeholder:x("filterSearchPlaceholder"),rounded:"md",focusBorderColor:(0,h.ff)("brand.500","brand.200")}),(0,r.jsx)(u.x,{pointerEvents:"none",color:"gray.400",fontSize:"lg",children:(0,r.jsx)(b.jRj,{})})]}),(0,r.jsx)(I.c,{...o,children:t.map(e=>(0,r.jsxs)(W.X,{value:e.value,colorScheme:"brand",children:[(0,r.jsx)("span",{children:e.label}),null!=e.count&&(0,r.jsxs)(i.xu,{as:"span",color:"gray.500",fontSize:"sm",children:[" ","(",e.count,")"]})]},e.value))})]})}var R=n(57177),T=n(15248),P=n(50586),_=n(9836),E=n(1993),F=n(88933),K=n(77687);let U=e=>{let{onClickApply:t,onClickCancel:n,isCancelDisabled:i}=e;return(0,r.jsxs)(a.U,{spacing:"2",justify:"space-between",children:[(0,r.jsx)(c.z,{size:"sm",variant:"tertiary",onClick:n,isDisabled:i,children:"Cancel"}),(0,r.jsx)(c.z,{size:"sm",colorScheme:"brand",onClick:t,children:"Save"})]})},O=e=>{let{label:t,icon:n,selected:i}=e;return(0,r.jsx)(R.x,{children:(0,r.jsxs)(a.U,{justify:"space-between",position:"relative",as:"button",fontSize:"sm",borderWidth:"1px",zIndex:"2",rounded:"lg",paddingStart:"3",paddingEnd:"2",paddingY:"1.5",spacing:"1",height:"2.6rem","data-selected":i||void 0,_expanded:{bg:(0,h.ff)("gray.100","gray.700")},_selected:{bg:"blue.50",borderColor:"blue.500"},children:[n&&(0,r.jsx)(x.J,{as:n,boxSize:"2"}),(0,r.jsx)(o.x,{fontWeight:"medium",children:t}),(0,r.jsx)(x.J,{as:K.kWQ,fontSize:"xl",color:"gray.400"})]})})},A=e=>{let{header:t,children:n,onClickCancel:i,onClickApply:s,isCancelDisabled:l}=e,{onClose:a}=(0,T.lp)();return(0,r.jsxs)(P.y,{_focus:{shadow:"none",outline:0},_focusVisible:{shadow:"outline"},children:[t&&(0,r.jsx)(_.Y,{srOnly:!0,children:t}),(0,r.jsx)(E.b,{padding:"6",children:n}),(0,r.jsx)(F.D,{children:(0,r.jsx)(U,{onClickCancel:()=>{null==i||i(),a()},isCancelDisabled:l,onClickApply:()=>{null==s||s(),a()}})})]})};var N=function(e){let{defaultValue:t,onSubmit:n}=e,[r,i]=(0,S.useState)(t);return{canCancel:t!==r,value:r,onChange:i,onReset(){i(t)},onSubmit(){null==n||n(r)}}};function B(e){let{filterData:t,onSubmit:n}=e,i=N({defaultValue:t.defaultValue,onSubmit:n}),{t:s}=(0,D.Z)("projects");return(0,r.jsxs)(k.J,{placement:"bottom-start",children:[(0,r.jsx)(O,{label:s("typeFilterLabel")}),(0,r.jsx)(A,{isCancelDisabled:!i.canCancel,onClickApply:i.onSubmit,onClickCancel:i.onReset,children:(0,r.jsx)(V,{hideLabel:!0,value:i.value,onChange:e=>i.onChange(e),options:t.options})})]})}var J=n(90536),L=n(97682),H=n(10218),Y=n(84696),X=n(88310),M=n(21175),q=n(68416),$=n(6512);let G=e=>{let{value:t,label:n}=e,{getInputProps:i,htmlProps:s,getCheckboxProps:l,getLabelProps:a}=(0,v.x)(e),o=(0,X.F)();return(0,r.jsxs)(M.m.label,{...s,children:[(0,r.jsx)(M.m.input,{...i()}),(0,r.jsx)(c.z,{as:"span",cursor:"pointer",variant:"outline",colorScheme:"brand",color:(0,h.ff)("gray.600","gray.400"),borderRadius:"base",borderColor:(0,h.ff)("gray.200","gray.600"),_checked:{color:(0,h.ff)("brand.500","brand.200"),bg:(0,h.ff)("gray.200",(0,$.DZ)("brand.200",.12)(o)),borderColor:(0,h.ff)("brand.500","brand.200"),borderWidth:"2px"},_focus:{boxShadow:"none"},_focusVisible:{boxShadow:"outline"},...l(),children:n}),(0,r.jsxs)(q.TX,{...a(),children:[n," selected"]})]})},Q=e=>{let{options:t,rootProps:n,hideLabel:i,label:s,...l}=e,{getRadioProps:a,getRootProps:c,value:o}=(0,g.a)(l),{t:d}=(0,D.Z)("projects"),u=t.find(e=>e.value==o);return(0,r.jsxs)(H.NI,{...n,children:[!i&&(0,r.jsx)(z.l,{fontSize:"sm",fontWeight:"medium",children:null!=s?s:"Size: ".concat(null==u?void 0:u.label)}),(0,r.jsx)(Y.E,{...c(),children:t.map(e=>(0,r.jsx)(G,{label:d(e.label),...a({value:e.value})},e.value))})]})},ee={options:[{label:"verified",value:"verified"},{label:"notVerified",value:"notVerified"},{label:"verifiedBoth",value:"verifiedBoth"}]},et=e=>{let{defaultValue:t,onSubmit:n}=e,i=N({defaultValue:t,onSubmit:()=>{n(i.value)}}),{t:s}=(0,D.Z)("projects");return(0,r.jsxs)(k.J,{placement:"bottom-start",children:[(0,r.jsx)(O,{label:s("verificationStatus")}),(0,r.jsx)(A,{isCancelDisabled:!i.canCancel,onClickApply:i.onSubmit,onClickCancel:i.onReset,children:(0,r.jsx)(Q,{hideLabel:!0,value:i.value,onChange:i.onChange,options:ee.options})})]})};function en(e){let{title:t,currentType:n,onChangeType:g,searchTerm:m,onSearch:v,filterData:y,verifiedFilterValue:S,onChangeFilter:k,onChangeVerifiedFilter:z}=e,{t:I}=(0,D.Z)("projects"),{t:W}=(0,D.Z)("common");return(0,r.jsx)(i.xu,{as:"section",pt:{base:"4",md:"8"},pb:{base:"12",md:"12"},children:(0,r.jsx)(s.W,{px:0,children:(0,r.jsx)(i.xu,{bg:"bg.surface",px:{base:"4",md:"6"},py:"5",boxShadow:"sm",borderRadius:"lg",children:(0,r.jsxs)(l.K,{spacing:"4",justify:"space-between",direction:{base:"column",md:"row"},children:[(0,r.jsxs)(a.U,{spacing:"4",children:[(0,r.jsx)(J.Z,{href:"/projects",children:(0,r.jsx)(c.z,{variant:"ghost",size:"lg",children:(0,r.jsxs)(a.U,{children:[(0,r.jsx)(f.x_l,{}),(0,r.jsx)(o.x,{children:I("backToCategories")})]})})}),(0,r.jsx)(o.x,{textStyle:"lg",fontWeight:"medium",flexGrow:"1",children:t})]}),(0,r.jsxs)(l.K,{direction:{base:"column",md:"row"},spacing:"4",children:[(0,r.jsxs)(d.B,{maxW:"2xs",children:[(0,r.jsx)(u.Z,{children:(0,r.jsx)(x.J,{as:b.jRj,color:(0,h.ff)("fg.accent","fg.accent.muted"),fontSize:"lg"})}),(0,r.jsx)(j.I,{placeholder:I("searchProjectsPlaceholder"),variant:(0,h.ff)("flushed","flushed"),value:m,onChange:e=>v(e.target.value)}),(null==m?void 0:m.length)&&(0,r.jsx)(u.x,{children:(0,r.jsx)(p.h,{as:L.lUB,color:(0,h.ff)("fg.accent","fg.accent.muted"),size:"xs",variant:"ghost",onClick:()=>v(""),"aria-label":W("clearSearch")})})]}),(0,r.jsx)(B,{filterData:y,onSubmit:k}),(0,r.jsxs)(l.K,{spacing:"4",direction:{base:"column",md:"row"},children:[(0,r.jsx)(et,{defaultValue:S,onSubmit:z}),(0,r.jsxs)(Z,{defaultValue:C.Z.card,value:n,size:"md",onChange:e=>g(e),children:[(0,r.jsx)(w,{value:"card","aria-label":I("tileView.name"),icon:(0,r.jsx)(f.xyo,{})}),(0,r.jsx)(w,{value:"list","aria-label":I("listView.name"),icon:(0,r.jsx)(f.hON,{})})]})]})]})]})})})})}},276:function(e,t,n){"use strict";n.a(e,async function(e,r){try{n.d(t,{Z:function(){return z}});var i=n(15311),s=n(80288),l=n(79973),a=n(59081),c=n(92095),o=n(3527),d=n(74182),u=n(90399),x=n(66274),h=n(98932),j=n(38071),p=n(59884),f=n(89534),b=n(99508),g=n(51010),m=n(75125),v=n(96664),y=n(42806),S=n(46147),Z=n(5724),w=n(99713),C=n(90536),k=e([y]);function z(e){let{account:t,projects:n,subscriptions:r,isProjectsLoading:k,currentCategory:z,...I}=e,W=(0,s.S)({base:1,md:3,lg:4}),{t:D}=(0,Z.Z)("projects");return(0,i.jsxs)(l.i,{variant:"simple",whiteSpace:{base:"initial",lg:"nowrap"},...I,children:[(0,i.jsx)(a.h,{children:(0,i.jsxs)(c.Tr,{children:[(0,i.jsx)(o.Th,{children:D("listView.headers.name")}
1),(0,i.jsx)(o.Th,{display:{base:"none",lg:"table-cell"},children:D("listView.headers.url")}),(0,i.jsx)(o.Th,{display:{base:"none",md:"table-cell"},children:D("listView.headers.type")}),(0,i.jsx)(o.Th,{display:{base:"none",md:"table-cell"},children:D("listView.headers.actions")})]})}),(0,i.jsxs)(d.p,{children:[k&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(c.Tr,{children:(0,i.jsx)(u.Td,{colSpan:W,children:(0,i.jsx)(x.O,{h:"40px"})})}),(0,i.jsx)(c.Tr,{children:(0,i.jsx)(u.Td,{colSpan:W,children:(0,i.jsx)(x.O,{h:"40px"})})}),(0,i.jsx)(c.Tr,{children:(0,i.jsx)(u.Td,{colSpan:W,children:(0,i.jsx)(x.O,{h:"40px"})})}),(0,i.jsx)(c.Tr,{children:(0,i.jsx)(u.Td,{colSpan:W,children:(0,i.jsx)(x.O,{h:"40px"})})})]}),!k&&0===n.length&&(0,i.jsx)(c.Tr,{children:(0,i.jsx)(u.Td,{colSpan:W,children:(0,i.jsx)(h.x,{color:"fg.muted",children:D("noProjectsFound")})})}),!k&&n.map(e=>{let n=r.find(t=>t.projectId===e.id);return(0,i.jsxs)(c.Tr,{children:[(0,i.jsx)(u.Td,{children:(0,i.jsxs)(j.g,{alignItems:"start",children:[(0,i.jsxs)(p.U,{spacing:"4",children:[t&&(0,i.jsx)(S.Z,{subscription:n}),(0,i.jsx)(g.Z,{size:"sm",name:e.name,src:(0,w.r)(e.logo),hideVerified:!0}),(0,i.jsx)(v.Z,{isVerified:null!==e.manuallyVerified,fontSize:"lg"}),(0,i.jsx)(C.Z,{href:"/projects/".concat(e.id,"?from=").concat(z),children:e.name})]}),(0,i.jsx)(f.W,{display:{base:"block",md:"none"},px:"0",children:(0,i.jsx)(y.Z,{account:t,project:e,subscription:n})})]})}),(0,i.jsx)(u.Td,{display:{base:"none",lg:"table-cell"},children:(0,i.jsx)(b.r,{href:"".concat(e.url),isExternal:!0,fontWeight:"medium",children:e.url.replace("https://","")})}),(0,i.jsx)(u.Td,{display:{base:"none",md:"table-cell"},children:(0,i.jsx)(m.Z,{category:e.category})}),(0,i.jsx)(u.Td,{display:{base:"none",md:"table-cell"},children:(0,i.jsx)(p.U,{whiteSpace:"initial",children:(0,i.jsx)(y.Z,{account:t,project:e,subscription:n})})})]},e.id)})]})]})}y=(k.then?(await k)():k)[0],r()}catch(e){r(e)}})},71125:function(e,t,n){"use strict";n.d(t,{b:function(){return i}});var r=n(26934);let i=[{type:"defi",imageUrl:"/defi.jpg",category:r.Z.DeFi},{type:"spo",imageUrl:"/spo.jpg",category:r.Z.SPO},{type:"drep",imageUrl:"/drep.jpg",category:r.Z.dRep},{type:"nft",imageUrl:"/nft.jpg",category:r.Z.NFT},{type:"other",imageUrl:"/other.jpg",category:r.Z.Other},{type:"dao",imageUrl:"/dao.jpg",category:r.Z.DAO}]},94431:function(e,t,n){"use strict";n.d(t,{Pd:function(){return s},e:function(){return i}}),n(15311);var r=n(20132);let i=(0,r.createContext)({subscriptions:[],setSubscriptions:e=>{}});function s(){return(0,r.useContext)(i)}},99713:function(e,t,n){"use strict";n.d(t,{r:function(){return i}});let r="https://cdn.ryp.io".replace(/\/$/,"");function i(e){return"".concat(r,"/").concat(e)}},93060:function(e,t,n){"use strict";function r(e){let t=new Date(e),n=t.toLocaleString("en-US",{month:"long"}),r=t.getFullYear();return"".concat(n,", ").concat(r)}n.d(t,{m:function(){return r}})},73640:function(e,t){"use strict";var n,r;(r=n||(n={})).list="list",r.card="card",t.Z=n},3633:function(e,t,n){"use strict";n.a(e,async function(e,r){try{n.r(t),n.d(t,{__N_SSP:function(){return u},default:function(){return x}});var i=n(15311),s=n(5762),l=n(71724),a=n(21528),c=n(33326),o=n.n(c),d=e([l,a]);[l,a]=d.then?(await d)():d;var u=!0;function x(e){let{account:t,project:n}=e,{category:r}=(0,s.useRouter)().query;return n?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o(),{children:(0,i.jsx)("title",{children:"RYP: ".concat(n.name)})}),(0,i.jsx)(a.Z,{account:t,project:n})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o(),{children:(0,i.jsx)("title",{children:"RYP: Projects"})}),(0,i.jsx)(l.f,{account:t,title:r,all:!0})]})}r()}catch(e){r(e)}})}},function(e){e.O(0,[4396,6061,3417,3714,8127,4321,9317,7473,7275,1709,3693,665,7677,2888,9774,179],function(){return e(e.s=68548)}),_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.