site-libsoc/Server/public/js/components/profile-component.js

2 lines
7.1 KiB
JavaScript
Raw Normal View History

2023-08-17 16:01:26 +07:00
import{S as e,i as t,a as n,b as o,s as i,h as s,j as l,n as r,k as m,l as a,m as u,d as p,r as c,c as d,q as f,o as g,e as h,f as b,z as j}from"./index-0d9f0c09.js";import{w as y}from"./index-1c123138.js";import*as v from"../../../../../../../../../js/libraries/authTools.js";import{svgFromObject as x}from"../../../../../../../../../js/libraries/miscTools.js";import"../../../../../../../../../js/components/pane-aligner.js";import"../../../../../../../../../js/components/profile-general.js";import"../../../../../../../../../js/components/profile-groups.js";import"../../../../../../../../../js/components/profile-communes.js";import"../../../../../../../../../js/components/profile-coops.js";import"../../../../../../../../../js/components/profile-parties.js";import"../../../../../../../../../js/components/profile-trade-unions.js";import"../../../../../../../../../js/components/groups-add-component.js";function w(e){let t,n,i,m,a,u,c,d,f,g,h;return{c(){t=s("profile-general"),n=l(),i=s("profile-groups"),m=l(),a=s("profile-parties"),u=l(),c=s("profile-trade-unions"),d=l(),f=s("profile-coops"),g=l(),h=s("profile-communes"),j(t,"display","none"),j(i,"display","none"),j(a,"display","none"),j(c,"display","none"),j(f,"display","none"),j(h,"display","none")},m(s,l){o(s,t,l),e[29](t),o(s,n,l),o(s,i,l),e[30](i),o(s,m,l),o(s,a,l),e[31](a),o(s,u,l),o(s,c,l),e[32](c),o(s,d,l),o(s,f,l),e[33](f),o(s,g,l),o(s,h,l),e[34](h)},p:r,d(o){o&&p(t),e[29](null),o&&p(n),o&&p(i),e[30](null),o&&p(m),o&&p(a),e[31](null),o&&p(u),o&&p(c),e[32](null),o&&p(d),o&&p(f),e[33](null),o&&p(g),o&&p(h),e[34](null)}}}function T(e){let t,n=1==e[13]&&w(e);return{c(){n&&n.c(),t=h()},m(e,i){n&&n.m(e,i),o(e,t,i)},p(e,o){1==e[13]?n?n.p(e,o):(n=w(e),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},d(e){n&&n.d(e),e&&p(t)}}}function k(e){let t,n,d,f,g,h,b,j,y,x,w,k,L,H,M,q,A,E,N,R=e[13],S=T(e);return{c(){t=s("pane-aligner"),n=s("div"),d=s("button"),d.innerHTML='<object id="general-img" class="icons" type="image/svg+xml" data="/img/profile/icons/general.svg" title="general"></object> \n <span>general</span>',f=l(),g=s("button"),g.innerHTML='<object id="groups-img" class="icons" type="image/svg+xml" data="/img/common/groups.svg" title="groups"></object> \n <span>groups</span>',h=l(),b=s("button"),b.innerHTML='<object id="communes-img" class="icons" type="image/svg+xml" data="/img/common/communes.svg" title="communes"></object> \n <span>communes</span>',j=l(),y=s("button"),y.innerHTML='<object id="coops-img" class="icons" type="image/svg+xml" data="/img/common/coops.svg" title="coops"></object> \n <span>cooperatives</span>',x=l(),w=s("button"),w.innerHTML='<object id="parties-img" class="icons" type="image/svg+xml" data="/img/common/parties.svg" title="parties"></object> \n <span>parties</span>',k=l(),L=s("button"),L.innerHTML='<object id="trade-unions-img" class="icons" type="image/svg+xml" data="/img/common/trade-unions.svg" title="trade unions"></object> \n <span>trade unions</span>',H=l(),M=s("button"),M.innerHTML='<object id="logout-img" class="icons" type="image/svg+xml" data="/img/profile/icons/logout.svg" title=""></object> \n <span>logout</span>',q=l(),A=s("div"),S.c(),this.c=r,m(M,"id","logout-button"),m(n,"id","left-column"),m(n,"class","pane"),m(n,"slot","sidebar-left"),m(A,"id","main-column"),m(A,"slot","main")},m(i,s){o(i,t,s),a(t,n),a(n,d),e[16](d),a(n,f),a(n,g),e[18](g),a(n,h),a(n,b),e[20](b),a(n,j),a(n,y),e[22](y),a(n,x),a(n,w),e[24](w),a(n,k),a(n,L),e[26](L),a(n,H),a(n,M),e[28](n),a(t,q),a(t,A),S.m(A,null),E||(N=[u(d,"click",e[17]),u(g,"click",e[19]),u(b,"click",e[21]),u(y,"click",e[23]),u(w,"click",e[25]),u(L,"click",e[27]),u(M,"click",v.logout)],E=!0)},p(e,t){8192&t[0]&&i(R,R=e[13])?(S.d(1),S=T(e),S.c(),S.m(A,null)):S.p(e,t)},i:r,o:r,d(n){n&&p(t),e[16](null),e[18](null),e[20](null),e[22](null),e[24](null),e[26](null),e[28](null),S.d(n),E=!1,c(N)}}}function L(e){return null!=e&&null!=e}function H(e,t,n){let o,i,s,l