Anvil/assets/Profile-b350073d.js
André Jaenisch e5b80964ed
Updates
2024-02-23 14:08:28 +01:00

1 line
7.2 KiB
JavaScript

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