1 line
9.3 KiB
JavaScript
1 line
9.3 KiB
JavaScript
import{S as _e,c as ge,a as me,d,e as h,m as b,b as v,t as w,f as S,g as Z,l as D,o as H,p as I,q as de,n as z}from"./index-C1iGU3rq.js";import{b as T,k as F,i as g,d as $,a as q,f as G,h as K,l as he,v as te,u as be,q as ve,w as we,t as E,j as N,r as ae,m as R,n as B}from"./lifecycle-B8I1Hqtw.js";import{e as re}from"./each-Bn1pG6U6.js";import{a as Se,b as ke,c as L,d as Q}from"./XPro-h1IbUAAk.js";import{b as ne,c as Ae,$ as Pe}from"./runtime-CtT-6RLV.js";import{P as Ce,g as Ee,K as Ne,h as Te,B as Fe}from"./ZoomOut24-6gteXZNx.js";import"./index-BN_smRix.js";import"./spread-CgU5AtxT.js";import"./globals-D0QH3NT1.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./tslib.es6-pJfR_DrR.js";function le(n,e,a){const t=n.slice();return t[12]=e[a],t}function qe(n){let e,a=n[3]("settings.profile.label")+"",t;return{c(){e=q("span"),t=E(a)},l(r){e=G(r,"SPAN",{});var l=K(e);t=N(l,a),l.forEach($)},m(r,l){g(r,e,l),R(e,t)},p(r,l){l&8&&a!==(a=r[3]("settings.profile.label")+"")&&B(t,a)},d(r){r&&$(e)}}}function Ge(n){let e,a;return e=new Ce({props:{fill:"currentColor",class:"inline"}}),{c(){d(e.$$.fragment)},l(t){h(e.$$.fragment,t)},m(t,r){b(e,t,r),a=!0},p:z,i(t){a||(v(e.$$.fragment,t),a=!0)},o(t){w(e.$$.fragment,t),a=!1},d(t){S(e,t)}}}function Ke(n){let e,a=n[3]("settings.account.label")+"",t;return{c(){e=q("span"),t=E(a)},l(r){e=G(r,"SPAN",{});var l=K(e);t=N(l,a),l.forEach($)},m(r,l){g(r,e,l),R(e,t)},p(r,l){l&8&&a!==(a=r[3]("settings.account.label")+"")&&B(t,a)},d(r){r&&$(e)}}}function Oe(n){let e,a;return e=new Ee({props:{fill:"currentColor",class:"inline"}}),{c(){d(e.$$.fragment)},l(t){h(e.$$.fragment,t)},m(t,r){b(e,t,r),a=!0},p:z,i(t){a||(v(e.$$.fragment,t),a=!0)},o(t){w(e.$$.fragment,t),a=!1},d(t){S(e,t)}}}function Re(n){let e,a=n[3]("settings.ssh_gpg_keys.label")+"",t;return{c(){e=q("span"),t=E(a)},l(r){e=G(r,"SPAN",{});var l=K(e);t=N(l,a),l.forEach($)},m(r,l){g(r,e,l),R(e,t)},p(r,l){l&8&&a!==(a=r[3]("settings.ssh_gpg_keys.label")+"")&&B(t,a)},d(r){r&&$(e)}}}function Be(n){let e,a;return e=new Ne({props:{fill:"currentColor",class:"inline"}}),{c(){d(e.$$.fragment)},l(t){h(e.$$.fragment,t)},m(t,r){b(e,t,r),a=!0},p:z,i(t){a||(v(e.$$.fragment,t),a=!0)},o(t){w(e.$$.fragment,t),a=!1},d(t){S(e,t)}}}function Me(n){let e,a=n[3]("settings.appearance.label")+"",t;return{c(){e=q("span"),t=E(a)},l(r){e=G(r,"SPAN",{});var l=K(e);t=N(l,a),l.forEach($)},m(r,l){g(r,e,l),R(e,t)},p(r,l){l&8&&a!==(a=r[3]("settings.appearance.label")+"")&&B(t,a)},d(r){r&&$(e)}}}function je(n){let e,a;return e=new Te({props:{fill:"currentColor",class:"inline"}}),{c(){d(e.$$.fragment)},l(t){h(e.$$.fragment,t)},m(t,r){b(e,t,r),a=!0},p:z,i(t){a||(v(e.$$.fragment,t),a=!0)},o(t){w(e.$$.fragment,t),a=!1},d(t){S(e,t)}}}function De(n){let e,a=n[3]("settings.notifications.label")+"",t;return{c(){e=q("span"),t=E(a)},l(r){e=G(r,"SPAN",{});var l=K(e);t=N(l,a),l.forEach($)},m(r,l){g(r,e,l),R(e,t)},p(r,l){l&8&&a!==(a=r[3]("settings.notifications.label")+"")&&B(t,a)},d(r){r&&$(e)}}}function He(n){let e,a;return e=new Fe({props:{fill:"currentColor",class:"inline"}}),{c(){d(e.$$.fragment)},l(t){h(e.$$.fragment,t)},m(t,r){b(e,t,r),a=!0},p:z,i(t){a||(v(e.$$.fragment,t),a=!0)},o(t){w(e.$$.fragment,t),a=!1},d(t){S(e,t)}}}function Ie(n){let e,a,t,r,l,p,_,P,C,m,A,c,o,f,i;function O(s){n[6](s)}let M={name:"profile",value:"profile",title:"Profile",$$slots:{lead:[Ge],default:[qe]},$$scope:{ctx:n}};n[0]!==void 0&&(M.group=n[0]),e=new L({props:M}),D.push(()=>H(e,"group",O)),e.$on("change",n[4]);function k(s){n[7](s)}let j={name:"account",value:"account",title:"Account",$$slots:{lead:[Oe],default:[Ke]},$$scope:{ctx:n}};n[0]!==void 0&&(j.group=n[0]),r=new L({props:j}),D.push(()=>H(r,"group",k)),r.$on("change",n[4]);function ue(s){n[8](s)}let y={name:"ssh_gpg_keys",value:"ssh_gpg_keys",title:"SSH/GPG Keys",$$slots:{lead:[Be],default:[Re]},$$scope:{ctx:n}};n[0]!==void 0&&(y.group=n[0]),_=new L({props:y}),D.push(()=>H(_,"group",ue)),_.$on("change",n[4]);function $e(s){n[9](s)}let x={name:"appearance",value:"appearance",title:"Appearance",$$slots:{lead:[je],default:[Me]},$$scope:{ctx:n}};n[0]!==void 0&&(x.group=n[0]),m=new L({props:x}),D.push(()=>H(m,"group",$e)),m.$on("change",n[4]);function ce(s){n[10](s)}let ee={name:"notifications",value:"notifications",title:"Notifications",$$slots:{lead:[He],default:[De]},$$scope:{ctx:n}};return n[0]!==void 0&&(ee.group=n[0]),o=new L({props:ee}),D.push(()=>H(o,"group",ce)),o.$on("change",n[4]),{c(){d(e.$$.fragment),t=T(),d(r.$$.fragment),p=T(),d(_.$$.fragment),C=T(),d(m.$$.fragment),c=T(),d(o.$$.fragment)},l(s){h(e.$$.fragment,s),t=F(s),h(r.$$.fragment,s),p=F(s),h(_.$$.fragment,s),C=F(s),h(m.$$.fragment,s),c=F(s),h(o.$$.fragment,s)},m(s,u){b(e,s,u),g(s,t,u),b(r,s,u),g(s,p,u),b(_,s,u),g(s,C,u),b(m,s,u),g(s,c,u),b(o,s,u),i=!0},p(s,u){const U={};u&32776&&(U.$$scope={dirty:u,ctx:s}),!a&&u&1&&(a=!0,U.group=s[0],I(()=>a=!1)),e.$set(U);const V={};u&32776&&(V.$$scope={dirty:u,ctx:s}),!l&&u&1&&(l=!0,V.group=s[0],I(()=>l=!1)),r.$set(V);const W={};u&32776&&(W.$$scope={dirty:u,ctx:s}),!P&&u&1&&(P=!0,W.group=s[0],I(()=>P=!1)),_.$set(W);const X={};u&32776&&(X.$$scope={dirty:u,ctx:s}),!A&&u&1&&(A=!0,X.group=s[0],I(()=>A=!1)),m.$set(X);const Y={};u&32776&&(Y.$$scope={dirty:u,ctx:s}),!f&&u&1&&(f=!0,Y.group=s[0],I(()=>f=!1)),o.$set(Y)},i(s){i||(v(e.$$.fragment,s),v(r.$$.fragment,s),v(_.$$.fragment,s),v(m.$$.fragment,s),v(o.$$.fragment,s),i=!0)},o(s){w(e.$$.fragment,s),w(r.$$.fragment,s),w(_.$$.fragment,s),w(m.$$.fragment,s),w(o.$$.fragment,s),i=!1},d(s){s&&($(t),$(p),$(C),$(c)),S(e,s),S(r,s),S(_,s),S(m,s),S(o,s)}}}function Le(n){let e;return{c(){e=E("Anvil")},l(a){e=N(a,"Anvil")},m(a,t){g(a,e,t)},d(a){a&&$(e)}}}function ze(n){let e,a;return e=new Q({props:{href:"/",$$slots:{default:[Le]},$$scope:{ctx:n}}}),{c(){d(e.$$.fragment)},l(t){h(e.$$.fragment,t)},m(t,r){b(e,t,r),a=!0},p(t,r){const l={};r&32768&&(l.$$scope={dirty:r,ctx:t}),e.$set(l)},i(t){a||(v(e.$$.fragment,t),a=!0)},o(t){w(e.$$.fragment,t),a=!1},d(t){S(e,t)}}}function se(n){let e,a=n[12]+"",t,r;return{c(){e=q("option"),t=E(a),this.h()},l(l){e=G(l,"OPTION",{});var p=K(e);t=N(p,a),p.forEach($),this.h()},h(){e.__value=r=n[12],ae(e,e.__value)},m(l,p){g(l,e,p),R(e,t)},p(l,p){p&4&&a!==(a=l[12]+"")&&B(t,a),p&4&&r!==(r=l[12])&&(e.__value=r,ae(e,e.__value))},d(l){l&&$(e)}}}function Je(n){let e;return{c(){e=E("Matrix")},l(a){e=N(a,"Matrix")},m(a,t){g(a,e,t)},d(a){a&&$(e)}}}function Qe(n){let e;return{c(){e=E("ForgeFed")},l(a){e=N(a,"ForgeFed")},m(a,t){g(a,e,t)},d(a){a&&$(e)}}}function Ue(n){let e;return{c(){e=E("Code")},l(a){e=N(a,"Code")},m(a,t){g(a,e,t)},d(a){a&&$(e)}}}function Ve(n){let e,a,t,r,l,p,_,P,C,m,A=re(n[2]),c=[];for(let o=0;o<A.length;o+=1)c[o]=se(le(n,A,o));return t=new Q({props:{href:"https://matrix.to/#/#general-forgefed:matrix.batsense.net",target:"_blank",rel:"noreferrer",$$slots:{default:[Je]},$$scope:{ctx:n}}}),l=new Q({props:{href:"https://forgefed.org",target:"_blank",rel:"noreferrer",$$slots:{default:[Qe]},$$scope:{ctx:n}}}),_=new Q({props:{href:"https://codeberg.org/anvil/anvil",target:"_blank",rel:"noreferrer",$$slots:{default:[Ue]},$$scope:{ctx:n}}}),{c(){e=q("select");for(let o=0;o<c.length;o+=1)c[o].c();a=T(),d(t.$$.fragment),r=T(),d(l.$$.fragment),p=T(),d(_.$$.fragment),this.h()},l(o){e=G(o,"SELECT",{class:!0});var f=K(e);for(let i=0;i<c.length;i+=1)c[i].l(f);f.forEach($),a=F(o),h(t.$$.fragment,o),r=F(o),h(l.$$.fragment,o),p=F(o),h(_.$$.fragment,o),this.h()},h(){he(e,"class","select"),n[1]===void 0&&de(()=>n[5].call(e))},m(o,f){g(o,e,f);for(let i=0;i<c.length;i+=1)c[i]&&c[i].m(e,null);te(e,n[1],!0),g(o,a,f),b(t,o,f),g(o,r,f),b(l,o,f),g(o,p,f),b(_,o,f),P=!0,C||(m=be(e,"change",n[5]),C=!0)},p(o,f){if(f&4){A=re(o[2]);let k;for(k=0;k<A.length;k+=1){const j=le(o,A,k);c[k]?c[k].p(j,f):(c[k]=se(j),c[k].c(),c[k].m(e,null))}for(;k<c.length;k+=1)c[k].d(1);c.length=A.length}f&6&&te(e,o[1]);const i={};f&32768&&(i.$$scope={dirty:f,ctx:o}),t.$set(i);const O={};f&32768&&(O.$$scope={dirty:f,ctx:o}),l.$set(O);const M={};f&32768&&(M.$$scope={dirty:f,ctx:o}),_.$set(M)},i(o){P||(v(t.$$.fragment,o),v(l.$$.fragment,o),v(_.$$.fragment,o),P=!0)},o(o){w(t.$$.fragment,o),w(l.$$.fragment,o),w(_.$$.fragment,o),P=!1},d(o){o&&($(e),$(a),$(r),$(p)),ve(c,o),S(t,o),S(l,o),S(_,o),C=!1,m()}}}function We(n){let e,a;return e=new Se({props:{$$slots:{trail:[Ve],lead:[ze],default:[Ie]},$$scope:{ctx:n}}}),{c(){d(e.$$.fragment)},l(t){h(e.$$.fragment,t)},m(t,r){b(e,t,r),a=!0},p(t,[r]){const l={};r&32783&&(l.$$scope={dirty:r,ctx:t}),e.$set(l)},i(t){a||(v(e.$$.fragment,t),a=!0)},o(t){w(e.$$.fragment,t),a=!1},d(t){S(e,t)}}}function Xe(n,e,a){let t,r,l;Z(n,ne,i=>a(1,t=i)),Z(n,Ae,i=>a(2,r=i)),Z(n,Pe,i=>a(3,l=i));let p=0;const _=ke();function P(i){const O={id:i.target.value};_.open(O)}function C(){t=we(this),ne.set(t)}function m(i){p=i,a(0,p)}function A(i){p=i,a(0,p)}function c(i){p=i,a(0,p)}function o(i){p=i,a(0,p)}function f(i){p=i,a(0,p)}return[p,t,r,l,P,C,m,A,c,o,f]}class fe extends _e{constructor(e){super(),ge(this,e,Xe,We,me,{})}}fe.__docgen={version:3,name:"SettingsSidebar.svelte",data:[],computed:[],methods:[],components:[],description:null,keywords:[],events:[],slots:[],refs:[]};const ot={title:"Atoms/SettingsSidebar",component:fe,tags:["autodocs"]},J={};var oe,ie,pe;J.parameters={...J.parameters,docs:{...(oe=J.parameters)==null?void 0:oe.docs,source:{originalSource:"{}",...(pe=(ie=J.parameters)==null?void 0:ie.docs)==null?void 0:pe.source}}};const it=["Plain"];export{J as Plain,it as __namedExportsOrder,ot as default};
|