Anvil/assets/MainMenuSummary.stories-DSb3Ayib.js
André Jaenisch e545bd2756
Updates
2024-07-22 13:59:31 +02:00

1 line
5.1 KiB
JavaScript

import{S as ye,i as ke,s as we,c as V,a as x,m as q,o as Oe,t as U,b as j,d as H,e as Ce}from"./index-7XOhh2kt.js";import{e as s,a as $,t as Se,H as re,c as n,b as l,d as h,f as Pe,h as a,q as oe,j as o,k as pe,l as t,n as Te}from"./lifecycle-Dpe71s4v.js";import{p as Ae}from"./popup-B2aUHz7N.js";import"./XPro-R6-17FUT.js";import{$ as Ne}from"./runtime-BQCs4yl7.js";import{P as Ie,m as Be,n as De,B as Me}from"./ZoomOut24-Cmc7Jjj8.js";import{O as Ve}from"./OverlayAvatar-DV5B6-xY.js";import"./index-CGCTTfAD.js";import"./each-iA4Nym3y.js";import"./spread-CgU5AtxT.js";import"./globals-D0QH3NT1.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./tslib.es6-pJfR_DrR.js";function xe(c){let p,u,m,G,f,T=c[0]("page.profile.menu.buttons.avatar")+"",R,Z,i,O,d,E,ee,A,N,z=c[0]("page.profile.menu.buttons.issues",{values:{number:3,blockElementOpen:'<span class="sr-only">',blockElementClose:"</span>"}})+"",te,C,b,y,ae,I,B,F=c[0]("page.profile.menu.buttons.prs",{values:{number:1,blockElementOpen:'<span class="sr-only">',blockElementClose:"</span>"}})+"",se,S,v,k,ne,D,M,J=c[0]("page.profile.menu.buttons.notifications",{values:{number:2,blockElementOpen:'<span class="sr-only">',blockElementClose:"</span>"}})+"",K,g,w,_,le,ue;return m=new Ie({props:{fill:"currentColor"}}),E=new Be({props:{fill:"currentColor"}}),y=new De({props:{fill:"currentColor"}}),k=new Me({props:{fill:"currentColor"}}),w=new Ve({}),{c(){p=s("div"),u=s("button"),V(m.$$.fragment),G=$(),f=s("span"),R=Se(T),Z=$(),i=s("div"),O=s("div"),d=s("button"),V(E.$$.fragment),ee=$(),A=s("span"),N=new re(!1),te=$(),C=s("div"),b=s("button"),V(y.$$.fragment),ae=$(),I=s("span"),B=new re(!1),se=$(),S=s("div"),v=s("button"),V(k.$$.fragment),ne=$(),D=s("span"),M=new re(!1),K=$(),g=s("div"),V(w.$$.fragment),this.h()},l(e){p=n(e,"DIV",{class:!0});var r=l(p);u=n(r,"BUTTON",{type:!0,class:!0});var L=l(u);x(m.$$.fragment,L),G=h(L),f=n(L,"SPAN",{class:!0});var me=l(f);R=Pe(me,T),me.forEach(a),L.forEach(a),Z=h(r),i=n(r,"DIV",{class:!0});var P=l(i);O=n(P,"DIV",{class:!0});var ie=l(O);d=n(ie,"BUTTON",{class:!0});var Q=l(d);x(E.$$.fragment,Q),ee=h(Q),A=n(Q,"SPAN",{});var ce=l(A);N=oe(ce,!1),ce.forEach(a),Q.forEach(a),ie.forEach(a),te=h(P),C=n(P,"DIV",{class:!0});var fe=l(C);b=n(fe,"BUTTON",{class:!0});var W=l(b);x(y.$$.fragment,W),ae=h(W),I=n(W,"SPAN",{});var de=l(I);B=oe(de,!1),de.forEach(a),W.forEach(a),fe.forEach(a),se=h(P),S=n(P,"DIV",{class:!0});var be=l(S);v=n(be,"BUTTON",{class:!0});var X=l(v);x(k.$$.fragment,X),ne=h(X),D=n(X,"SPAN",{});var ve=l(D);M=oe(ve,!1),ve.forEach(a),X.forEach(a),be.forEach(a),P.forEach(a),r.forEach(a),K=h(e),g=n(e,"DIV",{class:!0,"data-popup":!0});var ge=l(g);x(w.$$.fragment,ge),ge.forEach(a),this.h()},h(){o(f,"class","sr-only"),o(u,"type","button"),o(u,"class","btn btn-icon text-white bg-surface-400 rounded-full"),N.a=null,o(d,"class","btn btn-icon rounded-full"),o(O,"class","flex items-center content-stretch gap-1 bg-white"),B.a=null,o(b,"class","btn btn-icon rounded-full"),o(C,"class","flex items-center content-stretch gap-1 bg-white"),M.a=null,o(v,"class","btn btn-icon rounded-full"),o(S,"class","flex items-center content-stretch gap-1 bg-white"),o(i,"class","flex flex-1 justify-around content-stretch bg-white"),o(p,"class","flex items-center content-stretch justify-start gap-4 ps-1"),o(g,"class","card p-4 bg-transparent"),o(g,"data-popup","overlayAvatar")},m(e,r){pe(e,p,r),t(p,u),q(m,u,null),t(u,G),t(u,f),t(f,R),t(p,Z),t(p,i),t(i,O),t(O,d),q(E,d,null),t(d,ee),t(d,A),N.m(z,A),t(i,te),t(i,C),t(C,b),q(y,b,null),t(b,ae),t(b,I),B.m(F,I),t(i,se),t(i,S),t(S,v),q(k,v,null),t(v,ne),t(v,D),M.m(J,D),pe(e,K,r),pe(e,g,r),q(w,g,null),_=!0,le||(ue=Oe(Ae.call(null,u,c[1])),le=!0)},p(e,[r]){(!_||r&1)&&T!==(T=e[0]("page.profile.menu.buttons.avatar")+"")&&Te(R,T),(!_||r&1)&&z!==(z=e[0]("page.profile.menu.buttons.issues",{values:{number:3,blockElementOpen:'<span class="sr-only">',blockElementClose:"</span>"}})+"")&&N.p(z),(!_||r&1)&&F!==(F=e[0]("page.profile.menu.buttons.prs",{values:{number:1,blockElementOpen:'<span class="sr-only">',blockElementClose:"</span>"}})+"")&&B.p(F),(!_||r&1)&&J!==(J=e[0]("page.profile.menu.buttons.notifications",{values:{number:2,blockElementOpen:'<span class="sr-only">',blockElementClose:"</span>"}})+"")&&M.p(J)},i(e){_||(U(m.$$.fragment,e),U(E.$$.fragment,e),U(y.$$.fragment,e),U(k.$$.fragment,e),U(w.$$.fragment,e),_=!0)},o(e){j(m.$$.fragment,e),j(E.$$.fragment,e),j(y.$$.fragment,e),j(k.$$.fragment,e),j(w.$$.fragment,e),_=!1},d(e){e&&(a(p),a(K),a(g)),H(m),H(E),H(y),H(k),H(w),le=!1,ue()}}}function qe(c,p,u){let m;return Ce(c,Ne,f=>u(0,m=f)),[m,{event:"click",target:"overlayAvatar",placement:"bottom"}]}class Ee extends ye{constructor(p){super(),ke(this,p,qe,xe,we,{})}}Ee.__docgen={version:3,name:"MainMenuSummary.svelte",data:[],computed:[],methods:[],components:[],description:null,keywords:[],events:[],slots:[],refs:[]};const Ye={title:"Atoms/MainMenuSummary",component:Ee,tags:["autodocs"]},Y={};var _e,$e,he;Y.parameters={...Y.parameters,docs:{...(_e=Y.parameters)==null?void 0:_e.docs,source:{originalSource:"{}",...(he=($e=Y.parameters)==null?void 0:$e.docs)==null?void 0:he.source}}};const Ze=["Plain"];export{Y as Plain,Ze as __namedExportsOrder,Ye as default};