diff --git a/Server/app/svelte/src/profile/profile-general.svelte b/Server/app/svelte/src/profile/profile-general.svelte index bbe6470..e75d9b7 100644 --- a/Server/app/svelte/src/profile/profile-general.svelte +++ b/Server/app/svelte/src/profile/profile-general.svelte @@ -171,13 +171,26 @@
Verified: - {user.verified} + {user.verified} + {#if !user.verified} + (go here) + {/if} +
",i(this,{target:this.shadowRoot,props:t(this.attributes),customElement:!0},x,b,s,{},null,[-1,-1]),e&&e.target&&n(e.target,this,e.anchor)}}customElements.define("profile-general",j);export{j as default}; +import{S as e,i,a as t,b as n,s,h as o,j as a,t as r,n as l,k as d,z as c,l as p,m as u,d as m,r as h,g as f,o as g,v,f as y}from"./index-0d9f0c09.js";import*as w from"../../../../../../../../../js/libraries/authTools.js";import"../../../../../../../../../js/components/select-component.js";import"../../../../../../../../../js/components/switch-component.js";function b(e){let i,t,s,f,g,y,w,b,x,j,k,T,L,H,I,M,z,C,D,E,P,U,R,S,V,W,G,K,O,Q,_,q,A,B,F,J,N,X,Y,Z,$,ee,ie,te=e[13].verified+"",ne=!e[13].verified&&function(e){let i;return{c(){i=o("span"),i.innerHTML='(go here)',d(i,"id","verify-span")},m(e,t){n(e,i,t)},d(e){e&&m(i)}}}();return{c(){i=o("section"),t=o("h2"),t.textContent="General",s=a(),f=o("div"),g=o("div"),y=o("span"),y.textContent="Email:",w=a(),b=o("span"),x=a(),j=o("div"),k=o("button"),k.textContent="save",T=a(),L=o("div"),H=o("input"),I=a(),M=o("div"),z=a(),C=o("div"),D=o("div"),E=o("div"),P=o("span"),P.textContent="Password:",U=a(),R=o("span"),S=a(),V=o("div"),W=o("button"),W.innerHTML='change\n ',G=a(),K=o("div"),O=o("button"),O.textContent="save",Q=a(),_=o("input"),q=a(),A=o("button"),A.innerHTML='',B=a(),F=o("div"),J=o("div"),N=o("span"),N.textContent="Verified:",X=a(),Y=o("span"),Z=r(te),$=a(),ne&&ne.c(),this.c=l,d(t,"class","title-highlight"),d(b,"id","signup-email-msg"),d(g,"class","title-msg"),d(k,"id","save-email"),d(k,"class","save-button"),d(H,"id","emailInput"),d(H,"class","text-input"),d(H,"type","text"),d(M,"class","ghost-input"),d(L,"class","input-wrapper"),d(j,"id","emailInputDiv"),d(R,"id","signup-password-msg"),d(E,"class","title-msg"),d(W,"id","change-password"),d(V,"id","change-password-div"),d(D,"id","change-password-line"),d(O,"id","save-password"),d(O,"class","save-button"),d(_,"id","passwordInput"),d(_,"class","text-input"),d(_,"type","password"),d(A,"class","eye-icon"),d(K,"id","change-password-input-div"),d(C,"id","change-password-line-wrapper"),c(Y,"color",e[13].verified?"green":"red"),d(J,"id","verifiedDiv"),d(i,"id","general-section")},m(o,a){n(o,i,a),p(i,t),p(i,s),p(i,f),p(f,g),p(g,y),p(g,w),p(g,b),e[18](b),p(f,x),p(f,j),p(j,k),e[19](k),p(j,T),p(j,L),p(L,H),e[20](H),p(L,I),p(L,M),e[23](j),e[24](f),p(i,z),p(i,C),p(C,D),p(D,E),p(E,P),p(E,U),p(E,R),e[25](R),p(D,S),p(D,V),p(V,W),e[26](V),p(C,G),p(C,K),p(K,O),e[27](O),p(K,Q),p(K,_),e[28](_),p(K,q),p(K,A),e[29](A),e[31](K),e[32](C),p(i,B),p(i,F),p(F,J),p(J,N),p(J,X),p(J,Y),p(Y,Z),p(Y,$),ne&&ne.m(Y,null),e[33](i),ee||(ie=[u(k,"click",e[15]),u(H,"click",e[21]),u(H,"input",e[22]),u(f,"mouseenter",(function(){v(e[11].focused=!0)&&(e[11].focused=!0).apply(this,arguments)})),u(f,"mouseleave",(function(){v(e[11].focused=!1)&&(e[11].focused=!1).apply(this,arguments)})),u(W,"click",e[16]),u(O,"click",e[17]),u(A,"click",e[30]),u(C,"mouseenter",(function(){v(e[10].focused=!0)&&(e[10].focused=!0).apply(this,arguments)})),u(C,"mouseleave",(function(){v(e[10].focused=!1)&&(e[10].focused=!1).apply(this,arguments)}))],ee=!0)},p(i,t){e=i},i:l,o:l,d(t){t&&m(i),e[18](null),e[19](null),e[20](null),e[23](null),e[24](null),e[25](null),e[26](null),e[27](null),e[28](null),e[29](null),e[31](null),e[32](null),ne&&ne.d(),e[33](null),ee=!1,h(ie)}}}function x(e,i,t){let n,s,o,a,r,l,d,c,p,u,m,h,v,b,x=f("profile-component").user;function j(e){b=n.value,e.style.display="initial",t(9,u.style.display="inline",u),window.innerWidth<1100&&(t(12,v.style.marginTop="1rem",v),t(11,h.style.flexDirection="column",h))}function k(){null!=b&&t(0,n.value=b,n),t(0,n.style.width="100%",n),t(9,u.style.display="none",u),t(11,h.style.flexDirection="row",h),t(12,v.style.marginTop="0rem",v),t(2,o.style.display="none",o),t(9,u.innerHTML="",u)}function T(){t(3,a.style.display="none",a),t(7,c.style.display="initial",c),t(4,r.innerHTML="",r)}function L(){null!=x&&0!=Object.keys(x).length&&null!=s?t(0,n.value=x.email,n):setTimeout(L,10)}g((()=>{L(),document.addEventListener("click",(function(e){m.focused?k():(h.focused||k(),T())}))}));return[n,s,o,a,r,l,d,c,p,u,m,h,v,x,j,function(){let e=n.value;w.checkEmail(e,u)&&(e!=x.email&&w.changeUser("email",e,x),k())},function(){let e=window.innerWidth;t(3,a.style.display=e<1100?"flex":"initial",a),t(7,c.style.display="none",c),d.focus()},function(){let e=d.value;w.checkPassword(e,r)&&(e!=x.password&&w.changeUser("password",e,x),t(4,r.innerHTML="",r),T())},function(e){y[e?"unshift":"push"]((()=>{u=e,t(9,u)}))},function(e){y[e?"unshift":"push"]((()=>{o=e,t(2,o)}))},function(e){y[e?"unshift":"push"]((()=>{n=e,t(0,n)}))},()=>j(o),()=>{var e;(e=n).nextElementSibling.innerHTML=e.value},function(e){y[e?"unshift":"push"]((()=>{v=e,t(12,v)}))},function(e){y[e?"unshift":"push"]((()=>{h=e,t(11,h)}))},function(e){y[e?"unshift":"push"]((()=>{r=e,t(4,r)}))},function(e){y[e?"unshift":"push"]((()=>{c=e,t(7,c)}))},function(e){y[e?"unshift":"push"]((()=>{l=e,t(5,l)}))},function(e){y[e?"unshift":"push"]((()=>{d=e,t(6,d)}))},function(e){y[e?"unshift":"push"]((()=>{p=e,t(8,p)}))},()=>w.changePasswordVisibility(p),function(e){y[e?"unshift":"push"]((()=>{a=e,t(3,a)}))},function(e){y[e?"unshift":"push"]((()=>{m=e,t(10,m)}))},function(e){y[e?"unshift":"push"]((()=>{s=e,t(1,s)}))}]}class j extends e{constructor(e){super(),this.shadowRoot.innerHTML="",i(this,{target:this.shadowRoot,props:t(this.attributes),customElement:!0},x,b,s,{},null,[-1,-1]),e&&e.target&&n(e.target,this,e.anchor)}}customElements.define("profile-general",j);export{j as default};