import{C as H,w as J,x as d,H as o,y as s,z as K,A as v,F as f,K as m,G as i,J as p,L}from"./load-CPo8yAZp.js";import{i as O}from"./legacy-Dspj-ZO2.js";var R=v('<img class="avatar-img svelte-1rj22fm"/>'),$=v('<div class="avatar-placeholder svelte-1rj22fm"> </div>'),q=v('<p class="actor-id svelte-1rj22fm"> </p>'),M=v('<a href="/-/user-profile/edit" class="edit-btn svelte-1rj22fm">Edit profile</a>'),N=v('<div class="bio svelte-1rj22fm"><p class="svelte-1rj22fm"> </p></div>'),Q=v('<div class="email svelte-1rj22fm"><a> </a></div>'),S=v('<main class="svelte-1rj22fm"><div class="profile-header svelte-1rj22fm"><div class="header-left svelte-1rj22fm"><div class="avatar"><!></div> <div class="profile-info"><h1 class="svelte-1rj22fm"> </h1> <!></div></div> <!></div> <!> <!> <div class="actions svelte-1rj22fm"><a href="/-/profiles/" class="link svelte-1rj22fm">All profiles</a></div></main>');function T(x,y){H(y,!1);const _=J(),e=_.profile,w=_.is_own_profile,c=e.has_photo?`/-/api/user-profile/photo/${encodeURIComponent(e.actor_id)}`:null;O();var n=S(),h=i(n),j=i(h),g=i(j),A=i(g);{var C=a=>{var r=R();o(()=>{p(r,"src",c),p(r,"alt",e.display_name||e.actor_id)}),s(a,r)},P=a=>{var r=$(),t=i(r);o(l=>m(t,l),[()=>(e.display_name||e.actor_id).charAt(0).toUpperCase()]),s(a,r)};d(A,a=>{c?a(C):a(P,-1)})}var U=f(g,2),u=i(U),k=i(u),D=f(u,2);{var E=a=>{var r=q(),t=i(r);o(()=>m(t,`@${e.actor_id??""}`)),s(a,r)};d(D,a=>{e.display_name&&a(E)})}var I=f(j,2);{var z=a=>{var r=M();s(a,r)};d(I,a=>{w&&a(z)})}var b=f(h,2);{var B=a=>{var r=N(),t=i(r),l=i(t);o(()=>m(l,e.bio)),s(a,r)};d(b,a=>{e.bio&&a(B)})}var F=f(b,2);{var G=a=>{var r=Q(),t=i(r),l=i(t);o(()=>{p(t,"href",`mailto:${e.email??""}`),m(l,e.email)}),s(a,r)};d(F,a=>{e.email&&a(G)})}o(()=>m(k,e.display_name||e.actor_id)),s(x,n),K()}L(T,{target:document.getElementById("app-root")});
