import{o as s,c as i,a as o,bJ as C,_ as w1,aB as y1,aC as q1,aD as E,aF as b1,aE as k1,q as x1,ah as $,aH as Q,b,f as M1,l as e,h as n,g as f,w as u,j as g,n as K,F as y,p as F,t as c,aL as z1,av as V,k as A,ar as j1,X as e1,i as m,bG as H,D as C1,b2 as D1,N as t1,bc as T1,a$ as B1,b0 as a1,L as $1,aS as F1,b1 as V1,b5 as s1,s as o1,bS as r1,a2 as A1,a9 as N1,a5 as P1,cq as I1,Q as l1,b4 as L1}from"./Co0rzPff.js";import{A as S}from"./CCBW7oxg.js";import{C as E1}from"./CBDBpC1o.js";import{O as H1}from"./Bbq8WD3f.js";import{N as S1}from"./DXpa0SRI.js";import{u as O1}from"./mxhR-slD.js";import{c as j}from"./DcFkmsmp.js";import{U as i1}from"./09RuyJiz.js";import{A as U1}from"./DcnV1fqM.js";import{C as R1}from"./CZ3vxeFi.js";import{_ as J1}from"./BjhB7gm_.js";import{N as W1}from"./BzMaBFYO.js";import{P as Y1}from"./CNjYxwaV.js";import{i as O}from"./B3C4hpIi.js";import{b as X1}from"./Dv8m3Ifq.js";import{d as Z1}from"./BfaRX-7s.js";import{u as G1}from"./863uBYmK.js";import{d as Q1}from"./BKvmybFC.js";import{u as N}from"./CdDJKVfF.js";import{u as K1}from"./DN-g_sLF.js";import{i as k}from"./BLsG2mcq.js";import{g as e0}from"./BtFsflhq.js";import"./C3q4b65f.js";import"./BOP48qSs.js";import"./L_4X0bf_.js";import"./fCBWAsuZ.js";import"./DOEaqF_O.js";import"./BEt1WLUe.js";import"./BB5xSxcZ.js";import"./z-xUYPp7.js";const t0={xmlns:"http://www.w3.org/2000/svg",width:"59",height:"59",fill:"none",viewBox:"0 0 59 59"};function a0(x,d){return s(),i("svg",t0,d[0]||(d[0]=[o("path",{fill:"#1C3360",stroke:"#4F9CFF","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M7.116 20.193a11.005 11.005 0 0 1 7.676-12.95 11 11 0 0 1 5.465-.168A11 11 0 0 1 29.522 2a11 11 0 0 1 9.264 5.075 10.99 10.99 0 0 1 12.974 7.67c.517 1.782.574 3.666.167 5.476A11 11 0 0 1 57 29.489a11 11 0 0 1-5.073 9.269 11.004 11.004 0 0 1-7.649 12.966c-1.777.52-3.657.581-5.464.18a11 11 0 0 1-14.571 3.738 11 11 0 0 1-3.986-3.738 10.99 10.99 0 0 1-12.962-7.652 11 11 0 0 1-.179-5.467A11 11 0 0 1 2 29.489a11 11 0 0 1 5.116-9.296"},null,-1),o("path",{stroke:"#4F9CFF","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M22 24.5v1a3 3 0 0 0 3 3h10a3 3 0 0 0 3-3v-1m-4-4-4 4m0 0-4-4m4 4v-12"},null,-1),o("path",{fill:"#fff",d:"M19.822 37.227V44.5h-1.754v-5.632h-.043l-1.626.994v-1.52l1.793-1.115zm4.616 7.45q-.953 0-1.641-.45-.69-.455-1.062-1.304-.373-.851-.37-2.049.005-1.196.374-2.031.372-.839 1.058-1.275.69-.44 1.64-.44.953 0 1.641.44.693.437 1.066 1.275.372.838.369 2.031 0 1.2-.373 2.053-.373.852-1.062 1.303-.686.448-1.64.448m0-1.438q.567 0 .92-.578.351-.583.347-1.787 0-.788-.16-1.3-.16-.514-.443-.767a.97.97 0 0 0-.664-.252q-.565 0-.913.572-.349.568-.352 1.747-.003.799.153 1.325.16.525.447.785a.97.97 0 0 0 .665.255m4.096-6.012h2.177l1.846 4.503h.085l1.847-4.503h2.177V44.5h-1.712v-4.467h-.06l-1.747 4.42h-1.094l-1.747-4.445h-.06V44.5h-1.712zm11.395 6.222v-5.142h1.43v5.142zm-1.858-1.854v-1.434h5.142v1.434z"},null,-1)]))}const s0={render:a0},o0={xmlns:"http://www.w3.org/2000/svg",width:"59",height:"59",fill:"none",viewBox:"0 0 59 59"};function r0(x,d){return s(),i("svg",o0,d[0]||(d[0]=[C('',2)]))}const l0={render:r0},i0={xmlns:"http://www.w3.org/2000/svg",width:"59",height:"59",fill:"none",viewBox:"0 0 59 59"};function n0(x,d){return s(),i("svg",i0,d[0]||(d[0]=[C('',2)]))}const d0={render:n0},c0={xmlns:"http://www.w3.org/2000/svg",width:"59",height:"59",fill:"none",viewBox:"0 0 59 59"};function h0(x,d){return s(),i("svg",c0,d[0]||(d[0]=[C('',6)]))}const u0={render:h0},p0={xmlns:"http://www.w3.org/2000/svg",width:"59",height:"59",fill:"none",viewBox:"0 0 59 59"};function f0(x,d){return s(),i("svg",p0,d[0]||(d[0]=[o("path",{fill:"#362924",stroke:"#FFA347","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M52 32.346c0 14.248-9.844 21.372-21.544 25.503-.612.21-1.278.2-1.884-.028C16.844 53.718 7 46.594 7 32.346V12.399c0-.755.296-1.48.824-2.014a2.8 2.8 0 0 1 1.989-.835c5.624 0 12.656-3.42 17.55-7.75A3.27 3.27 0 0 1 29.5 1c.784 0 1.542.283 2.137.8 4.922 4.359 11.926 7.75 17.55 7.75.746 0 1.462.3 1.99.834.527.535.823 1.26.823 2.015z"},null,-1),o("path",{stroke:"#FFA347","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m20.5 16 3 1m0 0-3 9a5 5 0 0 0 6.001 0M23.5 17l3 9m-3-9 6-2m0 0 6 2m-6-2v-2m0 2v16m6-14 3-1m-3 1-3 9a5 5 0 0 0 6.001 0zm-6 14h-3m3 0h3"},null,-1),o("path",{fill:"#fff",d:"M17.839 38.727h2.176l1.847 4.503h.085l1.847-4.503h2.177V46h-1.712v-4.467h-.06l-1.748 4.42h-1.093l-1.748-4.445h-.06V46h-1.712zm16.092 3.637q0 1.2-.461 2.034a3.14 3.14 0 0 1-1.25 1.268 3.6 3.6 0 0 1-1.762.433 3.57 3.57 0 0 1-1.765-.436 3.2 3.2 0 0 1-1.246-1.268q-.458-.835-.458-2.031 0-1.2.458-2.035a3.15 3.15 0 0 1 1.246-1.268 3.6 3.6 0 0 1 1.765-.433q.977 0 1.762.433.788.434 1.25 1.268t.461 2.035m-1.796 0q0-.711-.203-1.2-.199-.49-.575-.743-.373-.252-.899-.252-.522 0-.898.252-.377.252-.579.742-.2.49-.199 1.2 0 .711.2 1.2.201.492.578.743.376.252.898.252.525 0 .899-.252.375-.252.575-.742.203-.49.203-1.2M37.645 46h-2.687v-7.273h2.684q1.112 0 1.914.437.807.434 1.243 1.25.437.813.437 1.946 0 1.137-.437 1.953a3 3 0 0 1-1.24 1.254q-.804.433-1.913.433m-.93-1.499h.863q.612 0 1.034-.206.426-.21.642-.678.22-.472.22-1.257t-.22-1.25a1.36 1.36 0 0 0-.65-.675q-.425-.21-1.05-.21h-.839z"},null,-1)]))}const m0={render:f0},v0={xmlns:"http://www.w3.org/2000/svg",width:"59",height:"59",fill:"none",viewBox:"0 0 59 59"};function g0(x,d){return s(),i("svg",v0,d[0]||(d[0]=[C('',2)]))}const _0={render:g0},w0={xmlns:"http://www.w3.org/2000/svg",width:"59",height:"59",fill:"none",viewBox:"0 0 59 59"};function y0(x,d){return s(),i("svg",w0,d[0]||(d[0]=[C('',5)]))}const q0={render:y0},b0={key:0,class:"experimental-styles-within"},k0={class:"flex flex-col gap-3"},x0={class:"flex flex-col gap-1"},M0={class:"flex w-fit items-center gap-1"},z0={class:"flex flex-col gap-1"},j0={class:"flex flex-col gap-1"},C0={class:"flex flex-col gap-1"},D0={class:"flex flex-col gap-1"},T0={class:"normal-page__header py-4"},B0={class:"flex items-center gap-2 border-0 border-r border-solid border-divider pr-4 font-semibold"},$0={class:"flex items-center gap-2 border-0 border-r border-solid border-divider pr-4 font-semibold"},F0={class:"flex items-center gap-2 font-semibold"},V0={class:"normal-page__content"},A0={key:0,class:"mb-4 max-w-full overflow-x-auto"},N0={key:1},P0={key:2,class:"error"},I0={key:0,class:"preserve-lines text"},L0={key:1,class:"text"},E0={key:3,class:"collections-grid"},H0={class:"collection"},S0={class:"details"},O0={class:"title"},U0={class:"stats"},R0={class:"description"},J0={class:"stat-bar"},W0={class:"stats"},Y0={class:"stats"},X0={key:4,class:"error"},Z0={key:0,class:"preserve-lines text"},G0={key:1,class:"text"},Q0={class:"normal-page__sidebar"},K0={key:0,class:"card flex-card"},ee={class:"text-lg text-contrast"},te={class:"flex flex-wrap gap-2"},ae={key:1,class:"card flex-card"},se={class:"text-lg text-contrast"},oe={class:"flex flex-wrap gap-2"},re=Z1({methods:{}},"$UyXwLZ6VfH"),le=Object.assign(re,{__name:"[id]",async setup(x){let d,z;const n1=y1(),v=q1(),h=([d,z]=E(()=>z1()),d=await d,z(),d),P=b1(),U=k1(),d1=L1(),c1=x1(),{formatMessage:p}=c1,R=G1(!0),h1=O1(),w=Q1({profileProjectsStats:{id:"profile.stats.projects",defaultMessage:"{count, plural, one {{count} project} other {{count} projects}}"},profileDownloadsStats:{id:"profile.stats.downloads",defaultMessage:"{count, plural, one {{count} project download} other {{count} project downloads}}"},profileProjectsFollowersStats:{id:"profile.stats.projects-followers",defaultMessage:"{count, plural, one {{count} project follower} other {{count} project followers}}"},profileJoinedAt:{id:"profile.joined-at",defaultMessage:"Joined {ago}"},profileUserId:{id:"profile.user-id",defaultMessage:"User ID: {id}"},profileDetails:{id:"profile.label.details",defaultMessage:"Details"},profileOrganizations:{id:"profile.label.organizations",defaultMessage:"Organizations"},profileBadges:{id:"profile.label.badges",defaultMessage:"Badges"},profileManageProjectsButton:{id:"profile.button.manage-projects",defaultMessage:"Manage projects"},profileMetaDescription:{id:"profile.meta.description",defaultMessage:"Download {username}'s projects on Modrinth"},profileMetaDescriptionWithBio:{id:"profile.meta.description-with-bio",defaultMessage:"{bio} - Download {username}'s projects on Modrinth"},profileNoProjectsLabel:{id:"profile.label.no-projects",defaultMessage:"This user has no projects!"},profileNoProjectsAuthLabel:{id:"profile.label.no-projects-auth",defaultMessage:`You don't have any projects.
Would you like to create one?`},profileNoCollectionsLabel:{id:"profile.label.no-collections",defaultMessage:"This user has no collections!"},profileNoCollectionsAuthLabel:{id:"profile.label.no-collections-auth",defaultMessage:`You don't have any collections.
Would you like to create one?`},billingButton:{id:"profile.button.billing",defaultMessage:"Manage user billing"},infoButton:{id:"profile.button.info",defaultMessage:"View user details"},userNotFoundError:{id:"profile.error.not-found",defaultMessage:"User not found"}});let a,q,D,T;try{[{data:a},{data:q},{data:D},{data:T}]=([d,z]=E(()=>Promise.all([N(`user/${v.params.id}`,()=>$(`user/${v.params.id}`)),N(`user/${v.params.id}/projects`,()=>$(`user/${v.params.id}/projects`),{transform:l=>{for(const r of l)r.categories=r.categories.concat(r.loaders),r.project_type=n1.$getProjectTypeForUrl(r.project_type,r.categories,U.value);return l}}),N(`user/${v.params.id}/organizations`,()=>$(`user/${v.params.id}/organizations`,{apiVersion:3})),N(`user/${v.params.id}/collections`,()=>$(`user/${v.params.id}/collections`,{apiVersion:3}))])),d=await d,z(),d)}catch{throw Q({fatal:!0,statusCode:404,message:p(w.userNotFoundError)})}const u1=b(()=>D.value?[...D.value].sort((l,r)=>l.name.localeCompare(r.name)):[]);if(!a.value)throw Q({fatal:!0,statusCode:404,message:p(w.userNotFoundError)});a.value.username!==v.params.id&&([d,z]=E(()=>V(`/user/${a.value.username}`,{redirectCode:301})),await d,z());const J=b(()=>`${a.value.username} - Modrinth`),W=b(()=>a.value.bio?p(w.profileMetaDescriptionWithBio,{bio:a.value.bio,username:a.value.username}):p(w.profileMetaDescription,{username:a.value.username}));K1({title:()=>J.value,description:()=>W.value,ogTitle:()=>J.value,ogDescription:()=>W.value,ogImage:()=>a.value.avatar_url??"https://cdn.modrinth.com/placeholder.png"});const p1=b(()=>{const l={};T.value.length>0&&(l.collection=!0);for(const r of q.value)l[r.project_type]=!0;return delete l.project,Object.keys(l)}),I=b(()=>{let l=0;for(const r of q.value)l+=r.downloads;return l}),Y=b(()=>new Date(a.value.created)),f1=new Date("2022-02-27T08:00:00.000Z"),m1=new Date("2020-11-30T08:00:00.000Z"),X=b(()=>{const l=[];return a.value.role==="admin"&&l.push("staff"),a.value.role==="moderator"&&l.push("mod"),k(a.value.badges,1)&&l.push("plus"),I.value>1e7&&l.push("10m-club"),(k(a.value.badges,2)||k(a.value.badges,4)||k(a.value.badges,8))&&l.push("early-adopter"),k(a.value.badges,16)||Y.value[{label:p(j.allProjectType),href:`/user/${a.value.username}`},...p1.value.map(l=>({label:p(e0(l,!0)),href:`/user/${a.value.username}/${l}s`})).slice().sort((l,r)=>l.label.localeCompare(r.label))]);return(l,r)=>{const _1=l1,L=l1,B=M1("tooltip");return e(a)?(s(),i("div",b0,[n(J1,{ref:"modal_creation"},null,512),n(R1,{ref:"modal_collection_creation"},null,512),e(h).user&&e(O)(e(h).user)?(s(),f(e(S1),{key:0,ref:"userDetailsModal",header:"User details"},{default:u(()=>{var t,_,M,G;return[o("div",k0,[o("div",x0,[r[2]||(r[2]=o("span",{class:"text-lg font-bold text-primary"},"Email",-1)),o("div",null,[A((s(),i("span",M0,[o("span",null,c(e(a).email),1),e(a).email_verified?(s(),f(e(j1),{key:0,class:"h-4 w-4 text-brand"})):(s(),f(e(e1),{key:1,class:"h-4 w-4 text-red"}))])),[[B,e(a).email_verified?"Email verified":"Email not verified"]])])]),o("div",z0,[r[3]||(r[3]=o("span",{class:"text-lg font-bold text-primary"}," Auth providers ",-1)),o("span",null,c(e(a).auth_providers.join(", ")),1)]),o("div",j0,[r[4]||(r[4]=o("span",{class:"text-lg font-bold text-primary"}," Payment methods",-1)),o("span",null,[(t=e(a).payout_data)!=null&&t.paypal_address?(s(),i(y,{key:0},[m(" Paypal ("+c(e(a).payout_data.paypal_address)+" - "+c(e(a).payout_data.paypal_country)+") ",1)],64)):g("",!0),(_=e(a).payout_data)!=null&&_.paypal_address&&((M=e(a).payout_data)!=null&&M.venmo_address)?(s(),i(y,{key:1},[m(" , ")],64)):g("",!0),(G=e(a).payout_data)!=null&&G.venmo_address?(s(),i(y,{key:2},[m(" Venmo ("+c(e(a).payout_data.venmo_address)+") ",1)],64)):g("",!0)])]),o("div",C0,[r[5]||(r[5]=o("span",{class:"text-lg font-bold text-primary"}," Has password ",-1)),o("span",null,c(e(a).has_password?"Yes":"No"),1)]),o("div",D0,[r[6]||(r[6]=o("span",{class:"text-lg font-bold text-primary"}," Has TOTP ",-1)),o("span",null,c(e(a).has_totp?"Yes":"No"),1)])])]}),_:1},512)):g("",!0),o("div",{class:K(["new-page sidebar",{"alt-layout":e(P).leftContentLayout}])},[o("div",T0,[n(e(E1),null,{icon:u(()=>[n(e(S),{src:e(a).avatar_url,alt:e(a).username,size:"96px",circle:""},null,8,["src","alt"])]),title:u(()=>[m(c(e(a).username),1)]),summary:u(()=>[m(c(e(a).bio?e(a).bio:e(q).length===0?"A Modrinth user.":"A Modrinth creator."),1)]),stats:u(()=>{var t;return[o("div",B0,[n(e(H),{class:"h-6 w-6 text-secondary"}),m(" "+c(e(R)(((t=e(q))==null?void 0:t.length)||0))+" projects ",1)]),A((s(),i("div",$0,[n(e(C1),{class:"h-6 w-6 text-secondary"}),m(" "+c(e(R)(e(I)))+" downloads ",1)])),[[B,e(I).toLocaleString()]]),A((s(),i("div",F0,[n(e(D1),{class:"h-6 w-6 text-secondary"}),m(" Joined "+c(e(h1)(e(a).created)),1)])),[[B,e(p)(e(j).dateAtTimeTooltip,{date:new Date(e(a).created),time:new Date(e(a).created)})]])]}),actions:u(()=>[n(e(t1),{size:"large"},{default:u(()=>[e(h).user&&e(h).user.id===e(a).id?(s(),f(_1,{key:0,to:"/settings/profile"},{default:u(()=>[n(e(T1),{"aria-hidden":"true"}),m(" "+c(e(p)(e(j).editButton)),1)]),_:1})):g("",!0)]),_:1}),n(e(t1),{size:"large",circular:"",type:"transparent"},{default:u(()=>{var t;return[n(e(H1),{options:[{id:"manage-projects",action:()=>("navigateTo"in l?l.navigateTo:e(V))("/dashboard/projects"),hoverOnly:!0,shown:e(h).user&&e(h).user.id===e(a).id},{divider:!0,shown:e(h).user&&e(h).user.id===e(a).id},{id:"report",action:()=>e(h).user?e(X1)(e(a).id):("navigateTo"in l?l.navigateTo:e(V))("/auth/sign-in"),color:"red",hoverOnly:!0,shown:((t=e(h).user)==null?void 0:t.id)!==e(a).id},{id:"copy-id",action:()=>v1()},{id:"copy-permalink",action:()=>g1()},{id:"open-billing",action:()=>("navigateTo"in l?l.navigateTo:e(V))(`/admin/billing/${e(a).id}`),shown:e(h).user&&e(O)(e(h).user)},{id:"open-info",action:()=>l.$refs.userDetailsModal.show(),shown:e(h).user&&e(O)(e(h).user)}],"aria-label":"More options"},{"manage-projects":u(()=>[n(e(H),{"aria-hidden":"true"}),m(" "+c(e(p)(e(w).profileManageProjectsButton)),1)]),report:u(()=>[n(e(B1),{"aria-hidden":"true"}),m(" "+c(e(p)(e(j).reportButton)),1)]),"copy-id":u(()=>[n(e(a1),{"aria-hidden":"true"}),m(" "+c(e(p)(e(j).copyIdButton)),1)]),"copy-permalink":u(()=>[n(e(a1),{"aria-hidden":"true"}),m(" "+c(e(p)(e(j).copyPermalinkButton)),1)]),"open-billing":u(()=>[n(e($1),{"aria-hidden":"true"}),m(" "+c(e(p)(e(w).billingButton)),1)]),"open-info":u(()=>[n(e(F1),{"aria-hidden":"true"}),m(" "+c(e(p)(e(w).infoButton)),1)]),default:u(()=>[n(e(V1),{"aria-hidden":"true"})]),_:1},8,["options"])]}),_:1})]),_:1})]),o("div",V0,[e(Z).length>=2?(s(),i("div",A0,[n(W1,{links:e(Z)},null,8,["links"])])):g("",!0),e(q).length>0?(s(),i("div",N0,[e(v).params.projectType!=="collections"?(s(),i("div",{key:0,class:K("project-list display-mode--"+e(P).searchDisplayMode.user)},[(s(!0),i(y,null,F((e(v).params.projectType!==void 0?e(q).filter(t=>t.project_type===e(v).params.projectType.substr(0,e(v).params.projectType.length-1)):e(q)).slice().sort((t,_)=>_.downloads-t.downloads),t=>{var _;return s(),f(Y1,{id:t.slug||t.id,key:t.id,name:t.title,display:e(P).searchDisplayMode.user,"featured-image":(_=t.gallery.find(M=>M.featured))==null?void 0:_.url,description:t.description,"created-at":t.published,"updated-at":t.updated,downloads:t.downloads.toString(),follows:t.followers.toString(),"icon-url":t.icon_url,categories:t.categories,"client-side":t.client_side,"server-side":t.server_side,status:e(h).user&&(e(h).user.id===e(a).id||e(U).staffRoles.includes(e(h).user.role))?t.status:null,type:t.project_type,color:t.color},null,8,["id","name","display","featured-image","description","created-at","updated-at","downloads","follows","icon-url","categories","client-side","server-side","status","type","color"])}),128))],2)):g("",!0)])):e(v).params.projectType!=="collections"?(s(),i("div",P0,[n(e(i1),{class:"icon"}),r[7]||(r[7]=o("br",null,null,-1)),e(h).user&&e(h).user.id===e(a).id?(s(),i("span",I0,[n(e(r1),{"message-id":e(w).profileNoProjectsAuthLabel},{"create-link":u(({children:t})=>[o("a",{class:"link",onClick:r[0]||(r[0]=s1(_=>l.$refs.modal_creation.show(),["prevent"]))},[(s(),f(o1(()=>t)))])]),_:1},8,["message-id"])])):(s(),i("span",L0,c(e(p)(e(w).profileNoProjectsLabel)),1))])):g("",!0),["collections"].includes(e(v).params.projectType)?(s(),i("div",E0,[(s(!0),i(y,null,F(e(T).sort((t,_)=>new Date(_.created)-new Date(t.created)),t=>(s(),f(L,{key:t.id,to:`/collection/${t.id}`,class:"card collection-item"},{default:u(()=>{var _,M;return[o("div",H0,[n(e(S),{src:t.icon_url,class:"icon"},null,8,["src"]),o("div",S0,[o("h2",O0,c(t.name),1),o("div",U0,[n(e(A1),{"aria-hidden":"true"}),r[8]||(r[8]=m(" Collection "))])])]),o("div",R0,c(t.description),1),o("div",J0,[o("div",W0,[n(e(H)),m(" "+c(`${l.$formatNumber(((_=t.projects)==null?void 0:_.length)||0,!1)} project${(((M=t.projects)==null?void 0:M.length)||0)!==1?"s":""}`),1)]),o("div",Y0,[t.status==="listed"?(s(),i(y,{key:0},[n(e(N1)),r[9]||(r[9]=o("span",null," Public ",-1))],64)):t.status==="unlisted"?(s(),i(y,{key:1},[n(e(P1)),r[10]||(r[10]=o("span",null," Unlisted ",-1))],64)):t.status==="private"?(s(),i(y,{key:2},[n(e(I1)),r[11]||(r[11]=o("span",null," Private ",-1))],64)):t.status==="rejected"?(s(),i(y,{key:3},[n(e(e1)),r[12]||(r[12]=o("span",null," Rejected ",-1))],64)):g("",!0)])])]}),_:2},1032,["to"]))),128))])):g("",!0),e(v).params.projectType==="collections"&&e(T).length===0?(s(),i("div",X0,[n(e(i1),{class:"icon"}),r[13]||(r[13]=o("br",null,null,-1)),e(h).user&&e(h).user.id===e(a).id?(s(),i("span",Z0,[n(e(r1),{"message-id":e(w).profileNoCollectionsAuthLabel},{"create-link":u(({children:t})=>[o("a",{class:"link",onClick:r[1]||(r[1]=s1(_=>l.$refs.modal_collection_creation.show(_),["prevent"]))},[(s(),f(o1(()=>t)))])]),_:1},8,["message-id"])])):(s(),i("span",G0,c(e(p)(e(w).profileNoCollectionsLabel)),1))])):g("",!0)]),o("div",Q0,[e(D).length>0?(s(),i("div",K0,[o("h2",ee,c(e(p)(e(w).profileOrganizations)),1),o("div",te,[(s(!0),i(y,null,F(e(u1),t=>A((s(),f(L,{key:t.id,class:"organization",to:`/organization/${t.slug}`},{default:u(()=>[n(e(S),{src:t.icon_url,alt:"Icon for "+t.name,size:"3rem"},null,8,["src","alt"])]),_:2},1032,["to"])),[[B,t.name]])),128))])])):g("",!0),e(X).length>0?(s(),i("div",ae,[o("h2",se,c(e(p)(e(w).profileBadges)),1),o("div",oe,[(s(!0),i(y,null,F(e(X),t=>(s(),i("div",{key:t},[t==="staff"?(s(),f(e(q0),{key:0,class:"h-14 w-14"})):t==="mod"?(s(),f(e(m0),{key:1,class:"h-14 w-14"})):t==="plus"?(s(),f(L,{key:2,to:"/plus"},{default:u(()=>[n(e(_0),{class:"h-14 w-14"})]),_:1})):t==="10m-club"?(s(),f(e(s0),{key:3,class:"h-14 w-14"})):t==="early-adopter"?(s(),f(e(u0),{key:4,class:"h-14 w-14"})):t==="alpha-tester"?(s(),f(e(l0),{key:5,class:"h-14 w-14"})):t==="beta-tester"?(s(),f(e(d0),{key:6,class:"h-14 w-14"})):g("",!0)]))),128))])])):g("",!0),e(h).user?g("",!0):(s(),f(U1,{key:2}))])],2)])):g("",!0)}}}),Pe=w1(le,[["__scopeId","data-v-3815b85c"]]);export{Pe as default};