PageSourceSearch

https://mintgarden.io/_nuxt/DrdEYupb.js

js mintgarden.io collected 2026-09-25 02:31:03 UTC 4,785 bytes, 2 lines download raw bytes

1import{_ as D}from"./B7MGxRNM.js";import{_ as M}from"./BkzE7SHL.js";import{r as V}from"./CBup2dbw.js";import{r as j}from"./DrsTH9Ic.js";import{d as y,t as C}from"./0R3QGgUD.js";import{L as G,a4 as I,A as T,e as E,c as K,w as x,o as d,a as e,S as c,i as g,b as u,u as N,j as L,f as R,k as _,g as q}from"./Bm0snyCd.js";import{u as z}from"./CzySEcBD.js";import"./hW91WZFw.js";import"./BulR4f5p.js";import"./Dsb3hOHN.js";import"./B4sO8TnZ.js";import"./DAIF4Q0I.js";const H={class:"flex min-h-full justify-center p-4 text-center sm:items-center sm:p-0"},J={class:"relative flex-grow overflow-hidden rounded-lg pb-4 pt-5 text-left sm:my-8 lg:w-full lg:max-w-4xl"},U={class:"sm:flex sm:items-start"},W={class:"mt-3 flex-grow text-center sm:mt-0"},Y={class:"mt-8"},F={class:"space-y-8 divide-y divide-neutral-200 dark:divide-neutral-700"},O={key:0,class:"flex justify-center gap-4 pt-5"},Q={class:"mt-4 inline rounded-md border border-neutral-300 bg-white px-4 py-2 text-sm font-medium text-neutral-700 shadow-sm hover:bg-neutral-50 focus:outline-none focus:ring-2 focus:ring-emerald-500 focus:ring-offset-2 dark:bg-black dark:text-neutral-200 dark:hover:bg-neutral-900"},X={key:1,class:"mt-8"},Z={class:"relative flex w-full flex-col rounded-lg p-12 text-center hover:border-neutral-400 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 dark:border-neutral-500"},ee={key:0,class:"mt-4 border-l-4 border-red-400 bg-red-50 p-4 dark:border-red-500 dark:bg-red-900/20"},te={class:"flex"},oe={class:"flex-shrink-0"},se={class:"ml-3"},re={class:"whitespace-pre-wrap text-sm font-medium text-red-800 dark:text-red-300"},be=G({__name:"callback",async setup(ne){let b,h;const v=I(),{$axios:B}=T(),r=z();[b,h]=E(()=>r.initialize()),await b,h();let n=v.hash;const m={};if(n!==void 0){n=n.substring(1);const s=n.split("&");for(const t of s){const[o,i]=t.split("=");m[o]=i}}const f=m.state,a=m.access_token;console.log("routeState: ",f),console.log("routeToken: ",a),console.log("route.hash: ",v.hash);const k=_(void 0),l=_(void 0),w=_(void 0);async function P(){if(a!==void 0){console.log("Got access token: ",a);try{await r.loadProfiles();const{words:s}=y.bech32m.decode(f),t=C(new Uint8Array(y.bech32m.fromWords(s)));console.log(t),console.log(r.profiles);const o=r.profile(t);if(!o){l.value="Profile not found";return}w.value=t;const p=`Verifying my profile on MintGarden at ${Math.floor(Date.now()/1e3)}.`,{signature:S,publicKey:$}=await r.signMessage(C(new TextEncoder().encode(p)),o.publicKey),A={message:p,signature:S,pubkey:$,latestCoinId:o.didCoin.coinName};await B.post(`${q()}/goby/profile/${f}/discord`,{access_token:a,signature_json:A}),k.value=!0,await r.loadProfiles()}catch(s){l.value=s.response?.data?.detail||s.message}}}return(s,t)=>{const o=D,i=M;return d(),K(i,null,{default:x(()=>[e("div",H,[e("div",J,[e("div",U,[e("div",W,[t[5]||(t[5]=e("h3",{class:"mt-2 text-3xl font-extrabold tracking-tight text-neutral-900 dark:text-neutral-50 sm:text-4xl"}," My Profiles ",-1)),e("div",Y,[e("div",F,[t[4]||(t[4]=e("div",null,[e("h3",{class:"text-lg font-medium leading-6 text-neutral-900 dark:text-neutral-50"}," Connecting your Discord Account... "),e("p",{class:"mt-1 text-sm text-neutral-500 dark:text-neutral-400"},[c(" You should receive a welcome message."),e("br"),c(" Note: Discord requires you to be on the same server as the Mintgarden Bot. ")])],-1)),k.value?(d(),g("div",X,[e("div",null,[e("div",Z,[u(N(V),{class:"pointer-events-none mx-auto h-12 w-12 text-emerald-600"}),t[2]||(t[2]=e("span",{class:"mt-2 block text-sm font-semibold text-emerald-600"},"Discord Profile connected successfully! ",-1))])]),e("div",null,[u(o,{to:`/wallet?tab=profiles&profileId=${w.value}`,class:"mt-4 inline rounded-md border border-neutral-300 bg-white px-4 py-2 text-sm font-medium text-neutral-700 shadow-sm hover:bg-neutral-50 focus:outline-none focus:ring-2 focus:ring-emerald-500 focus:ring-offset-2 dark:bg-black dark:text-neutral-200 dark:hover:bg-neutral-900"},{default:x(()=>[...t[3]||(t[3]=[c(" Back ",-1)])]),_:1},8,["to"])])])):(d(),g("div",O,[e("div",Q,[e("button",{onClick:t[0]||(t[0]=p=>P())},"Complete the claim")]),u(o,{to:"/wallet?tab=profiles",class:"mt-4 inline rounded-md border border-neutral-300 bg-white px-4 py-2 text-sm font-medium text-neutral-700 shadow-sm hover:bg-neutral-50 focus:outline-none focus:ring-2 focus:ring-emerald-500 focus:ring-offset-2 dark:bg-black dark:text-neutral-200 dark:hover:bg-neutral-900"},{default:x(()=>[...t[1]||(t[1]=[c(" Go Back ",-1)])]),_:1})]))]),l.value?(d(),g("div",ee,[e("div",te,[e("div",oe,[u(N(j),{class:"h-5 w-5 text-red-400 dark:text-red-500","aria-hidden":"true"})]),e("div",se,[e("h3",re,L(l.value),1)])])])):R("",!0)])])])])])]),_:1})}}});
1export{be as default};
2//# sourceMappingURL=DrdEYupb.js.map

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.