import{a as ea,c as Ze}from"./utils-09ff0c0e.js";import{a as l,l as c,t as g,H as aa,b as n,f as o,d as t,m,h as $,c as ta,j as i,i as xe,k as a,n as A}from"./lifecycle-96ebe68d.js";import{S as sa,i as ra,c as M,a as Q,m as W,t as X,b as Y,d as Z}from"./index-9669f5df.js";import{$ as la,a as na}from"./runtime-ea3b2d3b.js";import{S as oa,N as ia}from"./ZoomOut24-23fb22e7.js";import{A as pa}from"./Avatar-dac7a148.js";import{B as fa}from"./BlockOrReport-360ad42f.js";import{C as da}from"./Created-4789a277.js";import{D as ca}from"./DisplayName-af3c6b6a.js";function ma(s){let f,h,u,q,_,v,p,je,O,Ce,E,y,L,w,Pe,N,ee=s[0].user.username+"",fe,Ae,ae=s[0].user.instance+"",de,Oe,H,T,ce,b,R,D,U,te=s[2]("page.profile.projects.heading")+"",me,He,k,se=s[2]("page.profile.projects.empty")+"",ue,Te,re,_e=s[2]("page.profile.projects.add_or_import",{values:{addElementOpen:'',addElementClose:"",importElementOpen:``,importElementClose:""}})+"",Be,x,S,z,le=s[2]("page.profile.history.heading")+"",ve,qe,ne,I,V,F,B,Le,j,oe=s[3](new Date("2023-04-23"))+"",he,Re,ie=s[2]("page.profile.history.activities.setup.summary")+"",ge,Ue,G,J,pe=s[2]("page.profile.history.activities.setup.description",{values:{created_with:s[0].user.created_with,instance:s[0].user.instance,username:s[0].user.username}})+"",$e,d;return u=new pa({props:{avatar:s[0].user.avatar,displayName:s[0].user.display_name}}),p=new da({props:{created_at:s[0].user.created_at,created_at_formatted:s[0].user.created_at_formatted}}),O=new fa({}),w=new ca({props:{displayName:s[0].user.display_name,pronoun:s[0].user.pronoun}}),T=new oa({props:{fill:"currentColor"}}),B=new ia({props:{fill:"currentColor"}}),{c(){f=l("section"),h=l("div"),M(u.$$.fragment),q=c(),_=l("div"),v=l("div"),M(p.$$.fragment),je=c(),M(O.$$.fragment),Ce=c(),E=l("div"),y=l("div"),L=l("div"),M(w.$$.fragment),Pe=c(),N=l("span"),fe=g(ee),Ae=g("@"),de=g(ae),Oe=c(),H=l("button"),M(T.$$.fragment),ce=c(),b=l("section"),R=l("div"),D=l("div"),U=l("h2"),me=g(te),He=c(),k=l("p"),ue=g(se),Te=c(),re=new aa(!1),Be=c(),x=l("div"),S=l("div"),z=l("h2"),ve=g(le),qe=c(),ne=l("ul"),I=l("li"),V=l("span"),F=l("span"),M(B.$$.fragment),Le=c(),j=l("span"),he=g(oe),Re=g(" - "),ge=g(ie),Ue=c(),G=l("span"),J=l("span"),$e=g(pe),this.h()},l(e){f=n(e,"SECTION",{class:!0});var r=o(f);h=n(r,"DIV",{});var K=o(h);Q(u.$$.fragment,K),K.forEach(t),q=m(r),_=n(r,"DIV",{class:!0});var C=o(_);v=n(C,"DIV",{class:!0});var P=o(v);Q(p.$$.fragment,P),je=m(P),Q(O.$$.fragment,P),P.forEach(t),Ce=m(C),E=n(C,"DIV",{class:!0});var be=o(E);y=n(be,"DIV",{class:!0});var Ee=o(y);L=n(Ee,"DIV",{class:!0});var ze=o(L);Q(w.$$.fragment,ze),ze.forEach(t),Pe=m(Ee),N=n(Ee,"SPAN",{class:!0});var ye=o(N);fe=$(ye,ee),Ae=$(ye,"@"),de=$(ye,ae),ye.forEach(t),Ee.forEach(t),Oe=m(be),H=n(be,"BUTTON",{type:!0,class:!0});var Fe=o(H);Q(T.$$.fragment,Fe),Fe.forEach(t),be.forEach(t),C.forEach(t),r.forEach(t),ce=m(e),b=n(e,"SECTION",{class:!0});var we=o(b);R=n(we,"DIV",{class:!0});var Ge=o(R);D=n(Ge,"DIV",{class:!0});var Ne=o(D);U=n(Ne,"H2",{class:!0});var Je=o(U);me=$(Je,te),Je.forEach(t),He=m(Ne),k=n(Ne,"P",{class:!0});var De=o(k);ue=$(De,se),Te=m(De),re=ta(De,!1),De.forEach(t),Ne.forEach(t),Ge.forEach(t),Be=m(we),x=n(we,"DIV",{class:!0});var Ke=o(x);S=n(Ke,"DIV",{class:!0});var ke=o(S);z=n(ke,"H2",{class:!0});var Me=o(z);ve=$(Me,le),Me.forEach(t),qe=m(ke),ne=n(ke,"UL",{});var Qe=o(ne);I=n(Qe,"LI",{class:!0});var Se=o(I);V=n(Se,"SPAN",{class:!0});var Ie=o(V);F=n(Ie,"SPAN",{class:!0});var We=o(F);Q(B.$$.fragment,We),We.forEach(t),Le=m(Ie),j=n(Ie,"SPAN",{class:!0});var Ve=o(j);he=$(Ve,oe),Re=$(Ve," - "),ge=$(Ve,ie),Ve.forEach(t),Ie.forEach(t),Ue=m(Se),G=n(Se,"SPAN",{class:!0});var Xe=o(G);J=n(Xe,"SPAN",{class:!0});var Ye=o(J);$e=$(Ye,pe),Ye.forEach(t),Xe.forEach(t),Se.forEach(t),Qe.forEach(t),ke.forEach(t),Ke.forEach(t),we.forEach(t),this.h()},h(){i(v,"class","self-end"),i(L,"class","flex items-end"),i(N,"class","leading-tight"),i(y,"class","flex flex-col flex-1 gap-2"),i(H,"type","button"),i(H,"class","btn-icon border rounded-none self-start"),i(E,"class","flex mt-2"),i(_,"class","flex flex-1 flex-col ps-8"),i(f,"class","w-full mx-auto flex px-8 pt-8"),i(U,"class","h2 font-semibold leading-tight text-base px-4"),re.a=null,i(k,"class","px-4"),i(D,"class","space-y-6"),i(R,"class","flex flex-1 flex-col px-4"),i(z,"class","h2 font-semibold leading-tight text-base"),i(F,"class","absolute ltr:-left-3 rtl:-right-3"),i(j,"class","ms-4"),i(V,"class","relative"),i(J,"class","border box-decoration-clone px-4 py-2 leading-10"),i(G,"class","ms-6 mt-8"),i(I,"class","flex flex-col ltr:border-l-2 rtl:border-r-2 ms-2"),i(S,"class","space-y-6"),i(x,"class","flex flex-1 flex-col px-4"),i(b,"class","w-full h-full mx-auto flex mt-8 px-8")},m(e,r){xe(e,f,r),a(f,h),W(u,h,null),a(f,q),a(f,_),a(_,v),W(p,v,null),a(v,je),W(O,v,null),a(_,Ce),a(_,E),a(E,y),a(y,L),W(w,L,null),a(y,Pe),a(y,N),a(N,fe),a(N,Ae),a(N,de),a(E,Oe),a(E,H),W(T,H,null),xe(e,ce,r),xe(e,b,r),a(b,R),a(R,D),a(D,U),a(U,me),a(D,He),a(D,k),a(k,ue),a(k,Te),re.m(_e,k),a(b,Be),a(b,x),a(x,S),a(S,z),a(z,ve),a(S,qe),a(S,ne),a(ne,I),a(I,V),a(V,F),W(B,F,null),a(V,Le),a(V,j),a(j,he),a(j,Re),a(j,ge),a(I,Ue),a(I,G),a(G,J),a(J,$e),d=!0},p(e,[r]){const K={};r&1&&(K.avatar=e[0].user.avatar),r&1&&(K.displayName=e[0].user.display_name),u.$set(K);const C={};r&1&&(C.created_at=e[0].user.created_at),r&1&&(C.created_at_formatted=e[0].user.created_at_formatted),p.$set(C);const P={};r&1&&(P.displayName=e[0].user.display_name),r&1&&(P.pronoun=e[0].user.pronoun),w.$set(P),(!d||r&1)&&ee!==(ee=e[0].user.username+"")&&A(fe,ee),(!d||r&1)&&ae!==(ae=e[0].user.instance+"")&&A(de,ae),(!d||r&4)&&te!==(te=e[2]("page.profile.projects.heading")+"")&&A(me,te),(!d||r&4)&&se!==(se=e[2]("page.profile.projects.empty")+"")&&A(ue,se),(!d||r&6)&&_e!==(_e=e[2]("page.profile.projects.add_or_import",{values:{addElementOpen:'',addElementClose:"",importElementOpen:``,importElementClose:""}})+"")&&re.p(_e),(!d||r&4)&&le!==(le=e[2]("page.profile.history.heading")+"")&&A(ve,le),(!d||r&8)&&oe!==(oe=e[3](new Date("2023-04-23"))+"")&&A(he,oe),(!d||r&4)&&ie!==(ie=e[2]("page.profile.history.activities.setup.summary")+"")&&A(ge,ie),(!d||r&5)&&pe!==(pe=e[2]("page.profile.history.activities.setup.description",{values:{created_with:e[0].user.created_with,instance:e[0].user.instance,username:e[0].user.username}})+"")&&A($e,pe)},i(e){d||(X(u.$$.fragment,e),X(p.$$.fragment,e),X(O.$$.fragment,e),X(w.$$.fragment,e),X(T.$$.fragment,e),X(B.$$.fragment,e),d=!0)},o(e){Y(u.$$.fragment,e),Y(p.$$.fragment,e),Y(O.$$.fragment,e),Y(w.$$.fragment,e),Y(T.$$.fragment,e),Y(B.$$.fragment,e),d=!1},d(e){e&&(t(f),t(ce),t(b)),Z(u),Z(p),Z(O),Z(w),Z(T),Z(B)}}}function ua(s,f,h){let u,q;Ze(s,la,p=>h(2,u=p)),Ze(s,na,p=>h(3,q=p));let{data:_=null}=f,{sb:v=""}=f;return s.$$set=p=>{"data"in p&&h(0,_=p.data),"sb"in p&&h(1,v=p.sb)},[_,v,u,q]}class _a extends sa{constructor(f){super(),ra(this,f,ua,ma,ea,{data:0,sb:1})}}_a.__docgen={version:3,name:"Profile.svelte",data:[{keywords:[],visibility:"public",description:"Required context for populating the template.",name:"data",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"object",type:"object"},defaultValue:null},{keywords:[],visibility:"public",description:"Allow for linking stories in Storybook.",name:"sb",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"string",type:"string"},defaultValue:""}],computed:[],methods:[],components:[],description:null,keywords:[],events:[],slots:[],refs:[]};export{_a as P};