Anvil/assets/OverlayAvatar-DV5B6-xY.js
André Jaenisch e545bd2756
Updates
2024-07-22 13:59:31 +02:00

1 line
3.9 KiB
JavaScript

import{S as $e,i as _e,s as he,c as G,a as T,m as q,t as z,b as B,d as U,e as be}from"./index-7XOhh2kt.js";import{e as r,a as m,t as F,c as n,b as i,d as u,f as H,h as l,i as ye,j as o,k as we,l as e,m as Se,n as J}from"./lifecycle-Dpe71s4v.js";import{g as xe}from"./XPro-R6-17FUT.js";import{$ as Ee}from"./runtime-BQCs4yl7.js";import{P as Ce,G as Ie,M as Ae,I as Pe,S as ke}from"./ZoomOut24-Cmc7Jjj8.js";function De(p){let a,f,c,N,g,y=p[0]("overlay.avatar.profile")+"",C,ee,$,w,te,_,O=p[0]("overlay.avatar.settings")+"",K,ae,v,S,se,I,V=p[0]("overlay.avatar.dark_mode")+"",L,re,A,ce="Slider missing",ne,h,x,le,P,M=p[0]("overlay.avatar.about_anvil")+"",Q,oe,b,E,ie,k,j=p[0]("overlay.avatar.sign_out")+"",R,d,fe,ve;return c=new Ce({props:{fill:"currentColor",class:"text-white bg-surface-400 rounded-full"}}),w=new Ie({props:{fill:"currentColor"}}),S=new Ae({props:{fill:"currentColor"}}),x=new Pe({props:{fill:"currentColor"}}),E=new ke({props:{fill:"currentColor"}}),{c(){a=r("div"),f=r("div"),G(c.$$.fragment),N=m(),g=r("span"),C=F(y),ee=m(),$=r("div"),G(w.$$.fragment),te=m(),_=r("button"),K=F(O),ae=m(),v=r("div"),G(S.$$.fragment),se=m(),I=r("span"),L=F(V),re=m(),A=r("span"),A.textContent=ce,ne=m(),h=r("div"),G(x.$$.fragment),le=m(),P=r("span"),Q=F(M),oe=m(),b=r("div"),G(E.$$.fragment),ie=m(),k=r("span"),R=F(j),this.h()},l(t){a=n(t,"DIV",{class:!0});var s=i(a);f=n(s,"DIV",{class:!0});var W=i(f);T(c.$$.fragment,W),N=u(W),g=n(W,"SPAN",{class:!0});var me=i(g);C=H(me,y),me.forEach(l),W.forEach(l),ee=u(s),$=n(s,"DIV",{class:!0});var X=i($);T(w.$$.fragment,X),te=u(X),_=n(X,"BUTTON",{type:!0,class:!0});var ue=i(_);K=H(ue,O),ue.forEach(l),X.forEach(l),ae=u(s),v=n(s,"DIV",{class:!0});var D=i(v);T(S.$$.fragment,D),se=u(D),I=n(D,"SPAN",{class:!0});var pe=i(I);L=H(pe,V),pe.forEach(l),re=u(D),A=n(D,"SPAN",{"data-svelte-h":!0}),ye(A)!=="svelte-pjmbzv"&&(A.textContent=ce),D.forEach(l),ne=u(s),h=n(s,"DIV",{class:!0});var Y=i(h);T(x.$$.fragment,Y),le=u(Y),P=n(Y,"SPAN",{class:!0});var de=i(P);Q=H(de,M),de.forEach(l),Y.forEach(l),oe=u(s),b=n(s,"DIV",{class:!0});var Z=i(b);T(E.$$.fragment,Z),ie=u(Z),k=n(Z,"SPAN",{class:!0});var ge=i(k);R=H(ge,j),ge.forEach(l),Z.forEach(l),s.forEach(l),this.h()},h(){o(g,"class","text-surface-500 -mb-2"),o(f,"class","bg-white flex gap-4"),o(_,"type","button"),o(_,"class","text-surface-500 -mb-2"),o($,"class","bg-white flex gap-4"),o(I,"class","text-surface-500 -mb-2"),o(v,"class","bg-white flex gap-4"),o(P,"class","text-surface-500 -mb-2"),o(h,"class","bg-white flex gap-4"),o(k,"class","text-surface-500 -mb-2"),o(b,"class","bg-white flex gap-4"),o(a,"class","flex flex-col bg-white border-surface-300 border-rounded drop-shadow px-4 py-2")},m(t,s){we(t,a,s),e(a,f),q(c,f,null),e(f,N),e(f,g),e(g,C),e(a,ee),e(a,$),q(w,$,null),e($,te),e($,_),e(_,K),e(a,ae),e(a,v),q(S,v,null),e(v,se),e(v,I),e(I,L),e(v,re),e(v,A),e(a,ne),e(a,h),q(x,h,null),e(h,le),e(h,P),e(P,Q),e(a,oe),e(a,b),q(E,b,null),e(b,ie),e(b,k),e(k,R),d=!0,fe||(ve=Se(_,"click",p[1]),fe=!0)},p(t,[s]){(!d||s&1)&&y!==(y=t[0]("overlay.avatar.profile")+"")&&J(C,y),(!d||s&1)&&O!==(O=t[0]("overlay.avatar.settings")+"")&&J(K,O),(!d||s&1)&&V!==(V=t[0]("overlay.avatar.dark_mode")+"")&&J(L,V),(!d||s&1)&&M!==(M=t[0]("overlay.avatar.about_anvil")+"")&&J(Q,M),(!d||s&1)&&j!==(j=t[0]("overlay.avatar.sign_out")+"")&&J(R,j)},i(t){d||(z(c.$$.fragment,t),z(w.$$.fragment,t),z(S.$$.fragment,t),z(x.$$.fragment,t),z(E.$$.fragment,t),d=!0)},o(t){B(c.$$.fragment,t),B(w.$$.fragment,t),B(S.$$.fragment,t),B(x.$$.fragment,t),B(E.$$.fragment,t),d=!1},d(t){t&&l(a),U(c),U(w),U(S),U(x),U(E),fe=!1,ve()}}}function Ne(p,a,f){let c;be(p,Ee,C=>f(0,c=C));const N={type:"component",component:"settings"},g=xe();function y(){g.trigger(N)}return[c,y]}class Oe extends $e{constructor(a){super(),_e(this,a,Ne,De,he,{})}}Oe.__docgen={version:3,name:"OverlayAvatar.svelte",data:[],computed:[],methods:[],components:[],description:null,keywords:[],events:[],slots:[],refs:[]};export{Oe as O};