1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4085],{726:function(e,n,t){t.d(n,{Z:function(){return p}});var s=t(15311);t(20132);var i=t(89534),c=t(55375),r=t(38071),o=t(98932),a=t(50082),l=t(5762),u={src:"/_next/static/media/access-denied.7f3746de.png",height:476,width:476,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAARVBMVEVMaXGxiYrZq6t7VVfAUl6di42Gb3N0MDC4qqNgX15xYWNFR0htbm3Uu6V6UlmwloRGRkZaV1W/tKDq0rlwbWmci4LBQlFr5DetAAAAEXRSTlMAii89/DhbAw2Ke560+6P02grkXLQAAAAJcEhZcwAACxIAAAsSAdLdfvwAAAA+SURBVHicFcpJDsAgDMBAA4EkdKHQ5f9PrXKyNDJQS8koSn9mQyHv6z0B+jzkS6D4LZKCfI0WrX5t8YKZAT85SwGCadFhywAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:8},d=t(19341),m=t(33326),x=t.n(m),h=t(5724);function p(){let e=(0,l.useRouter)(),{t:n}=(0,h.Z)("common");return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(x(),{children:(0,s.jsx)("title",{children:n("accessDenied.title")})}),(0,s.jsx)(i.W,{centerContent:!0,children:(0,s.jsx)(c.xu,{textAlign:"center",py:10,px:6,children:(0,s.jsxs)(r.g,{spacing:4,children:[(0,s.jsx)(d.Z,{boxSize:"300px",src:u,alt:n("accessDenied.title"),mb:4}),(0,s.jsx)(o.x,{color:"gray.500",children:n("accessDenied.message")}),(0,s.jsx)(a.z,{variant:"solid",mt:4,onClick:()=>e.push("/"),children:n("accessDenied.cta")})]})})})]})}},32834:function(e,n,t){t.a(e,async function(e,s){try{t.d(n,{Z:function(){return S}});var i=t(15311),c=t(20132),r=t(80288),o=t(54062),a=t(89534),l=t(27625),u=t(55375),d=t(73242),m=t(30623),x=t(95350),h=t(2105),p=t(67215),g=t(5724),f=t(25391),j=t(3136),b=t(67987),y=t(41247),A=t(66270),v=e([f,b]);[f,b]=v.then?(await v)():v;let w=["accounts","profile","notifications","achievements","premium"],Z=["/account","/account/profile","/account/notifications","/account/achievements","/account/premium"];function S(e){let{account:n,accountSettings:t,linkedAccounts:s,achievements:v,currentTab:S}=e,[k,C]=(0,c.useState)(w.indexOf(S)),I=(0,r.S)({base:"vertical",md:"vertical"}),{t:z}=(0,g.Z)("accounts"),W=e=>{C(e),window.history.pushState({},"",Z[e])};return(0,i.jsx)(o.m,{size:"lg",variant:"underline",orientation:I,defaultIndex:k,onChange:e=>W(e),children:(0,i.jsx)(a.W,{maxW:"5xl",children:(0,i.jsxs)(l.K,{direction:{base:"column",md:"row"},children:[(0,i.jsxs)(u.xu,{pt:{base:"12",md:"24"},pb:{base:"0",md:"24"},children:[(0,i.jsx)(d.t,{children:w.map(e=>(0,i.jsx)(m.O,{children:z("tabs.".concat(e))},e))}),(0,i.jsx)(x.c,{})]}),(0,i.jsxs)(h.n,{children:[(0,i.jsx)(p.x,{children:(0,i.jsx)(f.Z,{account:n,linkedAccounts:s,accountSettings:t})}),(0,i.jsx)(p.x,{children:(0,i.jsx)(A.Z,{account:n,accountSettings:t})}),(0,i.jsx)(p.x,{children:(0,i.jsx)(y.Z,{account:n,wallets:s.filter(e=>"cardano"===e.externalAccount.type)})}),(0,i.jsx)(p.x,{children:(0,i.jsx)(j.Z,{account:n,achievements:null!=v?v:[]})}),(0,i.jsx)(p.x,{children:(0,i.jsx)(b.Z,{account:n})})]})]})})})}s()}catch(e){s(e)}})},3136:function(e,n,t){t.d(n,{Z:function(){return S}});var s=t(15311),i=t(20132),c=t(55375),r=t(27625),o=t(5724),a=t(40086),l=t(46905),u=t(97682),d=t(78287);let m={signup:u.oV$,referral:u.Npg,premiumbuy:d.A_B};var x=t(95835),h=t(59884),p=t(98932),g=t(41272),f=t(53114),j=t(63503),b=t(4502);let y=e=>{let{achievement:n,value:t,limit:i,...a}=e,{t:l}=(0,o.Z)("accounts"),u=t>=i,d=(0,x.ff)(u?"green.500":"fg.muted",u?"green.300":"fg.muted");return(0,s.jsxs)(c.xu,{bg:"bg.surface",boxShadow:"sm",...a,borderRadius:"lg",w:{base:"100%",md:"md"},mx:"auto",children:[(0,s.jsx)(c.xu,{px:{base:"4",md:"6"},py:{base:"5",md:"6"},children:(0,s.jsxs)(h.U,{justifyContent:"space-between",children:[(0,s.jsxs)(r.K,{children:[(0,s.jsx)(p.x,{textStyle:"sm",color:"fg.muted",children:l(n.title)}),(0,s.jsxs)(r.K,{direction:"row",align:"baseline",children:[(0,s.jsx)(g.X,{size:{base:"sm",md:"md"},children:t}),(0,s.jsxs)(p.x,{"aria-hidden":!0,fontWeight:"semibold",color:"fg.muted",children:["/ ",i]}),(0,s.jsxs)(c.xu,{srOnly:!0,children:["out of ",i]})]})]}),(0,s.jsx)(f.J,{as:m[n.icon],color:d,boxSize:"3em"})]})}),(0,s.jsx)(j.E,{value:t/i*100,size:"xs",borderRadius:"none",bg:"bg.surface"}),(0,s.jsx)(b.i,{}),(0,s.jsx)(c.xu,{px:{base:"4",md:"6"},py:"4",children:(0,s.jsx)(p.x,{textStyle:"sm",color:"fg.muted",children:l(n.description)})})]})},A=e=>{let{achievement:n,achieved:t,...i}=e,a=(0,x.ff)(t?"green.500":"fg.muted",t?"green.300":"fg.muted"),{t:l}=(0,o.Z)("accounts");return(0,s.jsxs)(c.xu,{bg:"bg.surface",boxShadow:"sm",...i,borderRadius:"lg",w:{base:"100%",md:"md"},mx:"auto",children:[(0,s.jsx)(c.xu,{px:{base:"4",md:"6"},py:{base:"5",md:"6"},children:(0,s.jsxs)(h.U,{justifyContent:"space-between",children:[(0,s.jsxs)(r.K,{children:[(0,s.jsx)(p.x,{textStyle:"sm",color:"fg.muted",children:l(n.title)}),(0,s.jsxs)(r.K,{direction:"row",align:"baseline",children:[(0,s.jsx)(g.X,{size:{base:"sm",md:"md"},children:t?1:0}),(0,s.jsx)(p.x,{"aria-hidden":!0,fontWeight:"semibold",color:"fg.muted",children:"/ 1"}),(0,s.jsx)(c.xu,{srOnly:!0,children:l("achievements.achievedScreenReader")})]})]}),(0,s.jsx)(f.J,{as:m[n.icon],color:a,boxSize:"3em"})]})}),(0,s.jsx)(b.i,{}),(0,s.jsx)(c.xu,{px:{base:"4",md:"6"},py:"4",children:(0,s.jsx)(p.x,{textStyle:"sm",color:"fg.muted",children:l(n.description)})})]})};function v(e){var n,t,i;let{achievement:c,...r}=e;if("numeric"===c.type){let e=null!==(n=c.maxPoints)&&void 0!==n?n:1,i=Math.min(e,null!==(t=c.points)&&void 0!==t?t:0);return(0,s.jsx)(y,{achievement:c,value:i,limit:e,...r})}{let e=null!==(i=c.achieved)&&void 0!==i&&i;return(0,s.jsx)(A,{achievement:c,achieved:e,...r})}}function S(e){let{account:n,achievements:t}=e,{t:u}=(0,o.Z)("accounts"),d=(0,l.h_)(),[m,x]=i.useState(t);return(0,i.useEffect)(()=>{async function e(){x(await d.getAchievements())}0===m.length&&e()},[d,m.length]),(0,s.jsx)(c.xu,{maxW:"3xl",mx:"auto",px:"0",py:{base:"6",md:"8",lg:"12"},children:(0,s.jsxs)(r.K,{spacing:"8",children:[(0,s.jsx)(a.Z,{heading:u("achievements.title",{displayName:n.displayName}),description:u("achievements.description")}),m.map(e=>(0,s.jsx)(v,{achievement:e},e.id))]})})}},27888:function(e,n,t){t.d(n,{Z:function(){return c}});var s=t(15311),i=t(50082);function c(e){return(0,s.jsx)(i.z,{colorScheme:"brand",size:"lg",w:"full",fontWeight:"extrabold",py:{md:"8"},...e})}t(20132)},63052:function(e,n,t){t.a(e,async function(e,s){try{t.d(n,{Z:function(){return Z}});var i=t(15311),c=t(20132),r=t(62023),o=t(71206),a=t(33378),l=t(61698),u=t(87702),d=t(32036),m=t(85973),x=t(98932),h=t(10218),p=t(83290),g=t(4909),f=t(27625),j=t(50082),b=t(66502),y=t(84301),A=t(5724),v=t(46905),S=t(21105),w=e([S]);function Z(e){let{isOpen:n,completeOrder:t,paymentAborted:s,header:w}=e,{t:Z}=(0,A.Z)("accounts"),[k,C]=(0,c.useState)([]),[I,z]=(0,c.useState)(!1),[W,K]=(0,c.useState)("month"),D=(0,r.p)(),N=(0,v.h_)();(0,c.useEffect)(()=>{C(S.DG.getInstalledWallets())},[]);let R=async e=>{try{let n="month"===W?15e6:15e7,s=await S.DG.enable(e),i=new Date(new Date().getTime()+9e5),c=(0,S.Pz)("mainnet",i.getTime()),r=new S.YW({initiator:s}).setTimeToExpire(c).sendLovelace("addr1qy7t4shd57l8j7seqt405shjywnd44glksv2n28kxvuq4qt3l7n0g6rktqdpdcy3m4cnr8stsr62xeeu6asm5rkwhj5slxsvu8","".concat(n)),o=await r.build(),a=await s.signTx(o),l=await s.submitTx(a);await N.submitOrder(l,W),window.sessionStorage.setItem("premiumBuyInProgress",l),t(l)}catch(e){console.log(e),D({title:Z("walletSignInCancelled"),status:"error",duration:15e3,isClosable:!0,position:"top",variant:"solid"})}};return(0,i.jsxs)(o.u_,{isOpen:n,onClose:s,isCentered:!0,size:{base:"sm",lg:"xl"}
1,children:[(0,i.jsx)(a.Z,{}),(0,i.jsxs)(l.h,{children:[(0,i.jsx)(u.x,{children:w}),(0,i.jsx)(d.o,{}),(0,i.jsxs)(m.f,{children:[!I&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(x.x,{mb:"6",children:Z("premiumAccount.buy.description")}),(0,i.jsxs)(h.NI,{id:"productSelection",isRequired:!0,children:[(0,i.jsx)(p.l,{children:Z("premiumAccount.buy.productSelection")}),(0,i.jsxs)(g.P,{onChange:e=>K(e.currentTarget.value),children:[(0,i.jsx)("option",{value:"month",children:Z("premiumAccount.buy.1month")},"month"),(0,i.jsx)("option",{value:"year",children:Z("premiumAccount.buy.1year")},"year")]})]})]}),I&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(x.x,{mb:"6",children:Z("premiumAccount.buy.walletSelection")}),(0,i.jsx)(f.K,{spacing:"3",children:k.map(e=>(0,i.jsx)(j.z,{variant:"secondary",cursor:"pointer",leftIcon:(0,i.jsx)(b.E,{src:e.icon,alt:e.name,h:"1.5em",w:"1.5em"}),onClick:()=>{R(e.name)},children:e.name},e.name))})]})]}),(0,i.jsxs)(y.m,{children:[(0,i.jsx)(j.z,{onClick:()=>{z(!1),s()},variant:"outline",children:Z("premiumAccount.buy.cancelButton")}),!I&&(0,i.jsx)(j.z,{onClick:()=>z(!0),ml:4,children:Z("premiumAccount.buy.next")})]})]})]})}S=(w.then?(await w)():w)[0],s()}catch(e){s(e)}})},32587:function(e,n,t){t.d(n,{Z:function(){return g}});var s=t(15311),i=t(20132),c=t(68986),r=t(62023),o=t(55375),a=t(43510),l=t(98932),u=t(2982),d=t(27377),m=t(62903),x=t(97682),h=t(5724),p=t(46905);function g(e){let{transactionId:n,completeOrder:t}=e,{t:g}=(0,h.Z)("accounts"),{onCopy:f}=(0,c.V)(n),j=(0,r.p)(),b=(0,p.h_)();return(0,i.useEffect)(()=>{let e=setInterval(async()=>{try{let s=await b.getOrderStatus("cardano",n);s.amountReceived&&s.amountReceived>=s.amountRequested?(window.sessionStorage.removeItem("premiumBuyInProgress"),clearInterval(e),t()):null!==s.amountReceived&&void 0!==s.amountReceived&&s.amountReceived<s.amountRequested&&(window.sessionStorage.removeItem("premiumBuyInProgress"),clearInterval(e),window.setTimeout(()=>{t()},3e5),j({title:g("premiumAccount.buy.paymentFailed"),status:"error",duration:3e5,isClosable:!0,position:"top",variant:"solid"}))}catch(n){console.log(n),j({title:g("premiumAccount.buy.paymentFailed"),status:"error",duration:3e5,isClosable:!0,position:"top",variant:"solid"}),window.sessionStorage.removeItem("premiumBuyInProgress"),clearInterval(e)}},5e3);return()=>{clearInterval(e)}},[b,t,n,g,j]),(0,s.jsxs)(o.xu,{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",p:6,children:[(0,s.jsx)(a.$,{size:"xl",color:"brand.500",mb:4}),(0,s.jsx)(l.x,{fontSize:"lg",fontWeight:"semibold",mb:2,children:g("premiumAccount.buy.waitingForPayment")}),(0,s.jsxs)(u.k,{alignItems:"center",mt:4,children:[(0,s.jsx)(l.x,{fontSize:"sm",children:g("premiumAccount.buy.transactionId",{transactionId:n})}),(0,s.jsx)(d.u,{label:g("premiumAccount.buy.copyTransactionId"),fontSize:"md",children:(0,s.jsx)(m.h,{ml:2,size:"sm",icon:(0,s.jsx)(x.Fqs,{}),onClick:()=>{f(),j({title:g("premiumAccount.buy.transactionIdCopied"),status:"success",duration:2e3,isClosable:!0})},"aria-label":g("premiumAccount.buy.copyTransactionId"),variant:"outline"})})]})]})}},67987:function(e,n,t){t.a(e,async function(e,s){try{t.d(n,{Z:function(){return h}});var i=t(15311),c=t(20132),r=t(55375),o=t(27625),a=t(5724),l=t(40086),u=t(59176),d=t(514),m=t(42293),x=e([u,d]);function h(e){let{account:n}=e,{t}=(0,a.Z)("accounts"),[s]=(0,c.useState)((0,m.o)(n)),x=t(s?"premiumAccount.de
1scriptionPremium":"premiumAccount.descriptionNonPremium"),h=()=>{window.location.reload()};return(0,i.jsx)(r.xu,{maxW:"3xl",mx:"auto",px:"0",py:{base:"6",md:"8",lg:"12"},children:(0,i.jsxs)(o.K,{spacing:"8",children:[(0,i.jsx)(l.Z,{heading:t("premiumAccount.title",{displayName:n.displayName}),description:x}),s&&(0,i.jsx)(d.Z,{account:n,completeOrder:h}),!s&&(0,i.jsx)(u.Z,{completeOrder:h})]})})}[u,d]=x.then?(await x)():x,s()}catch(e){s(e)}})},514:function(e,n,t){t.a(e,async function(e,s){try{t.d(n,{Z:function(){return A}});var i=t(15311),c=t(20132),r=t(28563),o=t(55375),a=t(27625),l=t(38071),u=t(98932),d=t(41272),m=t(50082),x=t(51623),h=t(53114),p=t(5724),g=t(63052),f=t(32587),j=t(93114),b=t(97682),y=e([g]);g=(y.then?(await y)():y)[0];let v=[{name:"premiumAccount.features.noAds",description:"premiumAccount.features.noAdsDescription",icon:j.nfF},{name:"premiumAccount.features.customLink",description:"premiumAccount.features.customLinkDescription",icon:b.Npg}];function A(e){let{account:n,completeOrder:t}=e,{t:s}=(0,p.Z)("accounts"),{isOpen:j,onOpen:b,onClose:y}=(0,r.q)(),[A,S]=(0,c.useState)(null);(0,c.useEffect)(()=>{S(window.sessionStorage.getItem("premiumBuyInProgress"))},[]);let w=new Date(n.premiumUntil);return A?(0,i.jsx)(o.xu,{children:(0,i.jsx)(f.Z,{transactionId:A,completeOrder:t})}):(0,i.jsxs)(a.K,{spacing:"8",maxW:"3xl",mx:"auto",px:"0",py:{base:"6",md:"8"},children:[(0,i.jsx)(o.xu,{mx:"auto",px:{base:"4",md:"6"},py:{base:"5",md:"6"},bg:"bg.surface",borderRadius:"lg",boxShadow:"sm",children:(0,i.jsxs)(l.g,{spacing:6,children:[(0,i.jsxs)(a.K,{children:[(0,i.jsx)(u.x,{textStyle:"sm",color:"fg.muted",children:s("premiumAccount.premiumUntil")}),(0,i.jsx)(d.X,{size:{base:"sm",md:"md"},children:w.toDateString()})]}),(0,i.jsx)(m.z,{variant:"outline",colorScheme:"brand",onClick:()=>b(),children:s("premiumAccount.extend")})]})}),(0,i.jsx)(d.X,{size:"lg",children:s("premiumAccount.benefitsHeader")}),(0,i.jsx)(x.M,{columns:{base:1,md:2},columnGap:8,rowGap:{base:10,md:16},children:v.map(e=>(0,i.jsxs)(a.K,{spacing:{base:"4",md:"5"},children:[(0,i.jsx)(o.bK,{size:{base:"10",md:"12"},bg:"accent",color:"fg.inverted",borderRadius:"lg",children:(0,i.jsx)(h.J,{as:e.icon,boxSize:{base:"5",md:"6"}})}),(0,i.jsxs)(a.K,{spacing:{base:"1",md:"2"},flex:"1",children:[(0,i.jsx)(u.x,{fontSize:{base:"lg",md:"xl"},fontWeight:"medium",children:s(e.name)}),(0,i.jsx)(u.x,{color:"fg.muted",children:s(e.description)})]})]},e.name))}),(0,i.jsx)(g.Z,{isOpen:j,completeOrder:e=>{window.sessionStorage.setItem("premiumBuyInProgress",e),S(e),y()},paymentAborted:()=>{y()},header:s("premiumAccount.buy.headerExtend")})]})}s()}catch(e){s(e)}})},59176:function(e,n,t){t.a(e,async function(e,s){try{t.d(n,{Z:function(){return j}});var i=t(15311),c=t(20132),r=t(28563),o=t(55375),a=t(51623),l=t(98932),u=t(5724),d=t(27888),m=t(6359),x=t(78287),h=t(41187),p=t(32587),g=t(63052),f=e([g]);function j(e){let{completeOrder:n}=e,{t}=(0,u.Z)("accounts"),{isOpen:s,onOpen:f,onClose:j}=(0,r.q)(),[b,y]=(0,c.useState)(null);return((0,c.useEffect)(()=>{y(window.sessionStorage.getItem("premiumBuyInProgress"))},[]),b)?(0,i.jsx)(o.xu,{children:(0,i.jsx)(p.Z,{transactionId:b,completeOrder:n})}):(0,i.jsxs)(o.xu,{children:[(0,i.jsxs)(a.M,{columns:{base:1,lg:2},spacing:{base:"8",lg:"0"},mx:{base:"auto",lg:"8"},justifyItems:"center",alignItems:"center",children:[(0,i.jsx)(h.Z,{data:{price:(0,i.jsx)(l.x,{children:t("premiumAccount.levels.basic.price")}),name:t("premiumAccount.levels.basic.title"),features:[t("premiumAccount.features.privacy"),t("premiumAccount.features.projectAnnouncements"),t("premiumAccount.features.stakepoolAnnouncements"),t("premiumAccount.features.drepAnnouncements")]},icon:m.y5j}),(0,i.jsx)(h.Z,{zIndex:1,isPopular:!0,transform:{lg:"scale(1.05)"},data:{price:(0,i.jsx)(l.x,{children:t("premiumAccount.levels.premium.price")}),priceSub:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(l.x,{children:t("premiumAccount.levels.premium.priceSub1")}),(0,i.jsx)(l.x,{children:t("premiumAccount.levels.premium.or")}),(0,i.jsx)(l.x,{children:t("premiumAccount.levels.premium.priceSub2")})]}),name:t("premiumAccount.levels.premium.title"),features:[t("premiumAccount.features.allFree"),t("premiumAccount.features.customLink"),t("premiumAccount.features.earlySupporterAchievement"),t("premiumAccount.features.noAds"),t("premiumAccount.features.walletNotifications"),t("premiumAccount.features.instantUpdates")]},icon:x.nbP,button:(0,i.jsx)(d.Z,{onClick:()=>f(),children:t("premiumAccount.buy.ctaButton")})})]}),(0,i.jsx)(g.Z,{isOpen:s,completeOrder:e=>{window.sessionStorage.setItem("premiumBuyInProgress",e),y(e),j()},paymentAborted:()=>{j()},header:t("premiumAccount.buy.header")})]})}g=(f.then?(await f)():f)[0],s()}catch(e){s(e)}})},41187:function(e,n,t){t.d(n,{Z:function(){return g}});var s=t(15311),i=t(95835),c=t(38071),r=t(53114),o=t(41272),a=t(37961);t(20132);
1var l=t(77687),u=t(55375),d=t(2982),m=t(98932);function x(e){let{children:n,...t}=e;return(0,s.jsx)(d.k,{bg:(0,i.ff)("brand.500","brand.200"),position:"absolute",right:-20,top:6,width:"240px",transform:"rotate(45deg)",py:2,justifyContent:"center",alignItems:"center",...t,children:(0,s.jsx)(m.x,{fontSize:"xs",textTransform:"uppercase",fontWeight:"bold",letterSpacing:"wider",color:(0,i.ff)("white","gray.800"),children:n})})}var h=t(5724);function p(e){let{t:n}=(0,h.Z)("accounts"),{children:t,isPopular:c,...r}=e;return(0,s.jsxs)(u.xu,{bg:(0,i.ff)("white","gray.700"),position:"relative",px:"6",pb:"6",pt:"16",overflow:"hidden",shadow:"lg",maxW:"lg",width:"100%",...r,children:[c&&(0,s.jsx)(x,{children:n("premiumAccount.popular")}),t]})}function g(e){let{data:n,icon:t,button:u,...d}=e,{features:m,price:x,priceSub:h,name:g}=n,f=(0,i.ff)("brand.600","brand.200");return(0,s.jsxs)(p,{rounded:{sm:"xl"},...d,children:[(0,s.jsxs)(c.g,{spacing:6,children:[(0,s.jsx)(r.J,{"aria-hidden":!0,as:t,fontSize:"4xl",color:f}),(0,s.jsx)(o.X,{size:"xs",fontWeight:"extrabold",children:g})]}),(0,s.jsxs)(c.g,{fontWeight:"extrabold",color:f,my:"8",children:[(0,s.jsx)(o.X,{size:"3xl",fontWeight:"inherit",lineHeight:"0.9em",children:x}),h]}),(0,s.jsx)(a.aV,{spacing:"4",mb:"8",maxW:"36ch",mx:"auto",children:m.map((e,n)=>(0,s.jsxs)(a.HC,{fontWeight:"medium",children:[(0,s.jsx)(a.DE,{fontSize:"xl",as:l.HJi,marginEnd:2,color:f}),e]},n))}),u]})}},66270:function(e,n,t){t.d(n,{Z:function(){return g}});var s=t(15311),i=t(20132),c=t(62023),r=t(55375),o=t(27625),a=t(10218),l=t(83290),u=t(91058),d=t(50082),m=t(98932),x=t(5724),h=t(40086),p=t(46905);function g(e){let{account:n}=e,{t}=(0,x.Z)("accounts"),[g,f]=(0,i.useState)(n.displayName),[j,b]=(0,i.useState)(n.displayName),[y,A]=(0,i.useState)(!1),v=(0,p.h_)(),S=(0,c.p)(),w=async()=>{A(!0);try{await v.updateAccount(g),S({title:t("profileSettings.changesSaved"),status:"success",duration:3e3,isClosable:!0}),b(g)}catch(e){S({title:t("profileSettings.changesFailed"),description:t("profileSettings.changesFailedDetails"),status:"error",duration:3e3,isClosable:!0})}finally{A(!1)}};return(0,s.jsx)(r.xu,{maxW:"3xl",mx:"auto",px:"0",py:{base:"6",md:"8",lg:"12"},children:(0,s.jsxs)(o.K,{spacing:"8",children:[(0,s.jsx)(h.Z,{heading:t("profileSettings.title",{displayName:j}),description:t("profileSettings.description")}),(0,s.jsxs)(r.xu,{p:"6",children:[(0,s.jsxs)(a.NI,{id:"displayName",children:[(0,s.jsx)(l.l,{children:t("profileSettings.displayNameLabel")}),(0,s.jsx)(u.I,{value:g,onChange:e=>{f(e.target.value)},placeholder:t("profileSettings.displayNamePlaceholder"),maxLength:100})]}),(0,s.jsx)(d.z,{mt:"4",onClick:w,isLoading:y,isDisabled:!g||g===j,children:t("profileSettings.saveButton")}),g!==j&&(0,s.jsx)(m.x,{mt:"2",fontSize:"sm",color:"gray.500",children:t("profileSettings.unsavedChanges")})]})]})})}},41247:function(e,n,t){t.d(n,{Z:function(){return I}});var s=t(15311),i=t(20132),c=t(55375),r=t(5724),o=t(27625),a=t(41272),l=t(98932),u=t(89534),d=t(25038),m=t(90475),x=t(66274),h=t(84696),p=t(54590),g=t(90536),f=t(28500),j=t(71219),b=t(46905),y=t(70540);function A(e){var n,t,a,u,A;let{wallet:v,onChangeWalletSettings:S,...w}=e,[Z,k]=(0,i.useState)(v),[C,I]=(0,i.useState)(!0),[z,W]=(0,i.useState)(null),[K,D]=(0,i.useState)(!0),[N,R]=(0,i.useState)(null),{t:E}=(0,r.Z)("accounts"),F=(0,b.h_)(),T=(e,n)=>{let t={...Z};if(n.forEach(e=>{var n;t.settings=null===(n=t.settings)||void 0===n?void 0:n.filter(n=>n!==e)}),e){var s;null===(s=t.settings)||void 0===s||s.push(...n)}k(t),S(t)};(0,i.useEffect)(()=>{let e=async()=>{D(!0),F.getDRepDetailsForStakeAddress(v.externalAccount.referenceId).then(e=>{R(e)}).finally(()=>{D(!1)})};(async()=>{I(!0),F.getStakepoolDetailsForStakeAddress(v.externalAccount.referenceId).then(e=>{W(e)}).finally(()=>{I(!1)})})(),e()},[]);let P=(null===(n=Z.settings)||void 0===n?void 0:n.includes(j.vf.FungibleTokenAnnouncements))||(null===(t=Z.settings)||void 0===t?void 0:t.includes(j.vf.NonFungibleTokenAnnouncements))||(null===(a=Z.settings)||void 0===a?void 0:a.includes(j.vf.RichFungibleTokenAnnouncements)),B=null===(u=Z.settings)||void 0===u?void 0:u.includes(j.vf.StakepoolAnnouncements),O=null===(A=Z.settings)||void 0===A?void 0:A.includes(j.vf.DrepAnnouncements);return(0,s.jsx)(c.xu,{as:"form",bg:"bg.surface",boxShadow:"sm",borderRadius:"lg",...w,children:(0,s.jsxs)(o.K,{spacing:"5",px:{base:"4",md:"6"},py:{base:"5",md:"6"},divider:(0,s.jsx)(d.c,{}),children:[(0,s.jsxs)(o.K,{justify:"space-between",direction:"row",spacing:"16",children:[(0,s.jsxs)(o.K,{spacing:"0.5",fontSize:"sm",children:[(0,s.jsx)(l.x,{color:"fg.emphasized",fontWeight:"bold",children:E("settings.tokens.title")}),(0,s.jsx)(l.x,{color:"fg.muted",children:(0,s.jsx)(f.Z,{i18nKey:"accounts:settings.tokens.description",components:[(0,s.jsx)(g.Z,{href:"/projects"},"")]})})]}),(0,s.jsx)(m.r,{colorScheme:"brand",isChecked:P,onChange:e=>T(e.target.checked,[j.vf.FungibleTokenAnnouncements,j.vf.NonFungibleTokenAnnouncements,j.vf.RichFungibleTokenAnnouncements])})]}),(0,s.jsxs)(o.K,{justify:"space-between",direction:"row",spacing:"16",children:[(0,s.jsxs)(o.K,{spacing:"0.5",fontSize:"sm",children:[(0,s.jsx)(l.x,{color:"fg.emphasized",fontWeight:"bold",children:E("settings.spo.title")}),(0,s.jsx)(l.x,{color:"fg.muted",children:(0,s.jsx)(f.Z,{i18nKey:"accounts:settings.spo.description",components:[(0,s.jsx)(g.Z,{href:"/projects/spo"},"")]})})]}),(0,s.jsxs)(o.K,{direction:{base:"column-reverse",md:"row"},alignItems:{base:"flex-end",md:"flex-start"},justifyContent:"flex-end",spacing:"4",children:[(0,s.jsxs)(c.xu,{children:[C&&
1(0,s.jsx)(x.O,{height:"6",width:"15"}),!C&&null!==z&&(0,s.jsx)(h.E,{spacing:"2",children:(0,s.jsx)(p.Vp,{title:z.name,children:z.ticker})})]}),(0,s.jsx)(m.r,{colorScheme:"brand",isChecked:B,onChange:e=>T(e.target.checked,[j.vf.StakepoolAnnouncements])})]})]}),(0,s.jsxs)(o.K,{justify:"space-between",direction:"row",spacing:"16",children:[(0,s.jsxs)(o.K,{spacing:"0.5",fontSize:"sm",children:[(0,s.jsx)(l.x,{color:"fg.emphasized",fontWeight:"bold",children:E("settings.drep.title")}),(0,s.jsx)(l.x,{color:"fg.muted",children:(0,s.jsx)(f.Z,{i18nKey:"accounts:settings.drep.description",components:[(0,s.jsx)(g.Z,{href:"/projects/drep"},"")]})})]}),(0,s.jsxs)(o.K,{direction:{base:"column-reverse",md:"row"},alignItems:{base:"flex-end",md:"flex-start"},justifyContent:"flex-end",spacing:"4",children:[(0,s.jsxs)(c.xu,{children:[K&&(0,s.jsx)(x.O,{height:"6",width:"15"}),!K&&null!==N&&(0,s.jsx)(h.E,{spacing:"2",children:(0,s.jsx)(p.Vp,{title:N.displayName,children:(0,y.P_)(N.drepView)})})]}),(0,s.jsx)(m.r,{colorScheme:"brand",isChecked:O,onChange:e=>T(e.target.checked,[j.vf.DrepAnnouncements])})]})]})]})})}function v(e){let{wallet:n}=e,[t,a]=(0,i.useState)(n),m=(0,b.h_)(),{t:x}=(0,r.Z)("accounts");return(0,i.useEffect)(()=>{(async()=>{await m.updateLinkedExternalAccountSettings(n.externalAccount.id,t.settings)})()},[t,m,n.externalAccount.id]),(0,s.jsx)(u.W,{py:{base:"4",md:"8"},px:"0",children:(0,s.jsx)(o.K,{spacing:"5",divider:(0,s.jsx)(d.c,{}),children:(0,s.jsxs)(o.K,{direction:{base:"column",lg:"row"},spacing:{base:"5",lg:"8"},justify:"space-between",children:[(0,s.jsxs)(c.xu,{flexShrink:0,children:[(0,s.jsx)(l.x,{textStyle:"lg",fontWeight:"medium",children:n.externalAccount.displayName}),(0,s.jsx)(l.x,{color:"fg.muted",textStyle:"sm",children:x("walletSettings")})]}),(0,s.jsx)(A,{maxW:{base:"5xl",lg:"3xl"},wallet:t,onChangeWalletSettings:e=>a(e)})]})})})}var S=t(40086);function w(e){let{account:n,wallets:t}=e,{t:i}=(0,r.Z)("accounts");return(0,s.jsxs)(o.K,{spacing:"8",children:[(0,s.jsx)(S.Z,{heading:i("walletsTitle"),description:i("walletsDescription")}),0===t.length&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.X,{size:"md",children:i("noWallets")}),(0,s.jsx)(l.x,{color:"fg.muted",children:i("noWalletsDescription")})]}),t.length&&(0,s.jsx)(o.K,{spacing:"3",children:t.map(e=>(0,s.jsx)(v,{wallet:e},e.externalAccount.id))})]})}function Z(e){let{settings:n,onChangeCardanoSettings:t,...a}=e,[u,x]=(0,i.useState)(n),{t:h}=(0,r.Z)("accounts");(0,b.h_)();let p=(e,n)=>{let s=[...u];n.forEach(e=>{s=s.filter(n=>n!==e)}),e&&s.push(...n),x(s),t(s)},y=u.includes(j.WC.GovernanceActionAnnouncements);return(0,s.jsx)(c.xu,{as:"form",bg:"bg.surface",boxShadow:"sm",borderRadius:"lg",...a,children:(0,s.jsx)(o.K,{spacing:"5",px:{base:"4",md:"6"},py:{base:"5",md:"6"},divider:(0,s.jsx)(d.c,{}),children:(0,s.jsxs)(o.K,{justify:"space-between",direction:"row",spacing:"16",children:[(0,s.jsxs)(o.K,{spacing:"0.5",fontSize:"sm",children:[(0,s.jsx)(l.x,{color:"fg.emphasized",fontWeight:"bold",children:h("cardanoSettings.governance.title")}),(0,s.jsx)(l.x,{color:"fg.muted",children:(0,s.jsx)(f.Z,{i18nKey:"accounts:cardanoSettings.governance.description",components:[(0,s.jsx)(g.Z,{href:"/projects/drep"},"")]})})]}),(0,s.jsx)(m.r,{colorScheme:"brand",isChecked:y,onChange:e=>p(e.target.checked,[j.WC.GovernanceActionAnnouncements])})]})})})}function k(e){let{account:n}=e,[t,a]=(0,i.useState)(n.cardanoSettings),m=(0,b.h_)(),{t:x}=(0,r.Z)("accounts");return(0,i.useEffect)(()=>{(async()=>{await m.updateAccountCardanoSettings(t)})()},[t,m]),(0,s.jsx)(u.W,{py:{base:"4",md:"8"},px:"0",children:(0,s.jsx)(o.K,{spacing:"5",divider:(0,s.jsx)(d.c,{}),children:(0,s.jsxs)(o.K,{direction:{base:"column",lg:"row"},spacing:{base:"5",lg:"8"},justify:"space-between",children:[(0,s.jsx)(c.xu,{flexShrink:0,children:(0,s.jsx)(l.x,{textStyle:"lg",fontWeight:"medium",children:x("cardanoNotificationSettings")})}),(0,s.jsx)(Z,{maxW:{base:"5xl",lg:"3xl"},settings:t,onChangeCardanoSettings:e=>a(e)})]})})})}function C(e){let{account:n}=e,{t}=(0,r.Z)("accounts");return(0,s.jsxs)(o.K,{spacing:"8",children:[(0,s.jsx)(S.Z,{heading:t("globalNotificationsTitle"),description:t("globalNotificationsDescription")}),(0,s.jsx)(k,{account:n})]})}function I(e){let{account:n,wallets:t}=e,{t:i}=(0,r.Z)("accounts");return(0,s.jsxs)(c.xu,{maxW:"3xl",mx:"auto",px:"0",py:{base:"6",md:"8",lg:"12"},children:[(0,s.jsx)(C,{account:n}),(0,s.jsx)(w,{account:n,wallets:t})]})}},70540:function(e,n,t){t.d(n,{FX:function(){return a},P_:function(){return o},Tn:function(){return c},fI:function(){return r}});var s=t(98546),i=t(85145).Buffer;function c(e){return e.substring(0,11)+"â¦"+e.substring(e.length-5)}function r(e){return e.substring(0,11)+"â¦"+e.substring(e.length-5)}function o(e){return e.substring(0,11)+"â¦"+e.substring(e.length-5)}function a(e){return i.from(s.gW.fromWords(s.gW.decode(e).words)).toString("hex")}}}]);
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.