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