-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path721.4060c8f3544ebefbb1b6.js
More file actions
1 lines (1 loc) · 7.57 KB
/
Copy path721.4060c8f3544ebefbb1b6.js
File metadata and controls
1 lines (1 loc) · 7.57 KB
1
(self.webpackChunkmuzli_colors=self.webpackChunkmuzli_colors||[]).push([[721],{2721:(n,t,e)=>{"use strict";e.r(t),e.d(t,{AccountModule:()=>M});var o=e(8583),c=e(4152),i=e(2340),a=e(1584),r=e(639),s=e(1841);function g(n,t){if(1&n&&(r.TgZ(0,"div",14),r._UZ(1,"img",15),r.qZA()),2&n){const n=r.oxw(2);r.xp6(1),r.s9C("alt",n.user.displayName),r.s9C("src",n.user.photo,r.LSH)}}function l(n,t){if(1&n&&(r.TgZ(0,"div",10),r.YNc(1,g,2,2,"div",11),r.TgZ(2,"div",12),r.TgZ(3,"h3"),r._uU(4),r.qZA(),r.TgZ(5,"p",13),r._uU(6,"Signed in with "),r.TgZ(7,"span"),r._uU(8),r.qZA(),r._uU(9),r.qZA(),r.qZA(),r.qZA()),2&n){const n=r.oxw();r.xp6(1),r.Q6J("ngIf",n.user),r.xp6(3),r.Oqu(n.user.displayName),r.xp6(4),r.Oqu(n.user.provider),r.xp6(1),r.hij(" (",n.user.email,")")}}function p(n,t){if(1&n){const n=r.EpF();r.TgZ(0,"a",16),r.NdJ("click",function(t){return r.CHM(n),r.oxw().showDeletePrompt(t)}),r._uU(1,"Delete Account"),r.qZA()}}function u(n,t){if(1&n){const n=r.EpF();r.TgZ(0,"div",17),r.TgZ(1,"p"),r.TgZ(2,"strong"),r._uU(3,"Warning!"),r.qZA(),r._uU(4," If you delete your account all your data in Muzli will be lost. Than includes your feed preferences, color collections and favorite links."),r.qZA(),r.TgZ(5,"button",18),r.NdJ("click",function(t){return r.CHM(n),r.oxw().confirmDelete(t)}),r._uU(6,"Confirm"),r.qZA(),r.qZA()}}function d(n,t){1&n&&(r.TgZ(0,"div",19),r.TgZ(1,"p"),r._uU(2,"Account delete request was successfully logged. You will receive additional notification once your data will be removed from Muzli servers."),r.qZA(),r.qZA())}const _=[{path:"",component:(()=>{class n{constructor(n,t,e){this.userService=n,this.http=t,this.router=e,this.state=""}showDeletePrompt(n){n.preventDefault(),this.state="prompt"}confirmDelete(n){n.preventDefault(),this.state="success",this.http.delete(`${i.N.muzliAPI}/user/delete`,{withCredentials:!0}).subscribe(n=>{console.log("Added to server")})}ngOnInit(){this.userService.getUser().subscribe(n=>{this.user=n},n=>{this.router.navigate(["/"])})}}return n.\u0275fac=function(t){return new(t||n)(r.Y36(a.K),r.Y36(s.eN),r.Y36(c.F0))},n.\u0275cmp=r.Xpm({type:n,selectors:[["app-account"]],decls:20,vars:4,consts:[[1,"wrapper"],[1,"content","empty"],["class","user",4,"ngIf"],[1,"links"],["href","https://muz.li/contact/#report"],["href","https://www.invisionapp.com/privacy"],["href","https://www.invisionapp.com/terms"],["href","/","class","delete",3,"click",4,"ngIf"],["class","delete-account",4,"ngIf"],["class","delete-success",4,"ngIf"],[1,"user"],["class","avatar",4,"ngIf"],[1,"details"],[1,"provider"],[1,"avatar"],[3,"alt","src"],["href","/",1,"delete",3,"click"],[1,"delete-account"],[1,"cta",3,"click"],[1,"delete-success"]],template:function(n,t){1&n&&(r.TgZ(0,"main"),r.TgZ(1,"div",0),r.TgZ(2,"div",1),r.TgZ(3,"h1"),r._uU(4,"Account settings"),r.qZA(),r.YNc(5,l,10,4,"div",2),r.TgZ(6,"ul",3),r.TgZ(7,"li"),r.TgZ(8,"a",4),r._uU(9,"Report a bug"),r.qZA(),r.qZA(),r.TgZ(10,"li"),r.TgZ(11,"a",5),r._uU(12,"Privacy Policy"),r.qZA(),r.qZA(),r.TgZ(13,"li"),r.TgZ(14,"a",6),r._uU(15,"Terms of Service"),r.qZA(),r.qZA(),r.TgZ(16,"li"),r.YNc(17,p,2,0,"a",7),r.qZA(),r.qZA(),r.YNc(18,u,7,0,"div",8),r.YNc(19,d,3,0,"div",9),r.qZA(),r.qZA(),r.qZA()),2&n&&(r.xp6(5),r.Q6J("ngIf",t.user),r.xp6(12),r.Q6J("ngIf",""===t.state),r.xp6(1),r.Q6J("ngIf","prompt"===t.state),r.xp6(1),r.Q6J("ngIf","success"===t.state))},directives:[o.O5],styles:["main[_ngcontent-%COMP%]{position:relative;text-align:center;min-height:100%;padding:65px 0 0;box-sizing:border-box;display:flex;flex-direction:column;align-items:center}main[_ngcontent-%COMP%], main[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{color:#303030}main[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{clear:both;margin:50px 0 0;font-size:22px;display:inline-block}main[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], main[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-weight:500}main[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] strong.color[_ngcontent-%COMP%]{padding:3px 10px;border-radius:2px;color:#fff;font-size:18px}main[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] strong.color.light[_ngcontent-%COMP%]{color:#7a858c}main[_ngcontent-%COMP%] .user[_ngcontent-%COMP%]{background-color:#f2f3f4;display:flex;text-align:left;align-content:center;margin:30px auto;width:600px;padding:30px;align-items:center}main[_ngcontent-%COMP%] .user[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], main[_ngcontent-%COMP%] .user[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:5px 0}main[_ngcontent-%COMP%] .user[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{height:75px;width:75px;line-height:75px;text-align:center;text-decoration:none;display:inline-block;margin:10px 20px 10px 10px;font-size:13px;font-weight:500;position:relative}main[_ngcontent-%COMP%] .user[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;overflow:hidden;border-radius:50%}main[_ngcontent-%COMP%] .user[_ngcontent-%COMP%] .provider[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{text-transform:capitalize}main[_ngcontent-%COMP%] ul.links[_ngcontent-%COMP%]{padding:0;list-style:none;text-align:left;width:600px;margin:0 auto}main[_ngcontent-%COMP%] ul.links[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#000;text-decoration:none;line-height:30px}main[_ngcontent-%COMP%] ul.links[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a.delete[_ngcontent-%COMP%]{color:red}main[_ngcontent-%COMP%] .delete-account[_ngcontent-%COMP%], main[_ngcontent-%COMP%] .delete-success[_ngcontent-%COMP%]{width:600px;margin:15px auto;text-align:left;background-color:#f2f3f4;padding:30px}main[_ngcontent-%COMP%] .delete-account[_ngcontent-%COMP%] p[_ngcontent-%COMP%], main[_ngcontent-%COMP%] .delete-success[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 15px;white-space:normal}main[_ngcontent-%COMP%] .delete-account[_ngcontent-%COMP%] .cta[_ngcontent-%COMP%], main[_ngcontent-%COMP%] .delete-success[_ngcontent-%COMP%] .cta[_ngcontent-%COMP%]{height:40px;line-height:40px;padding:0 35px;font-size:14px;font-weight:500;display:inline-block;text-decoration:none;cursor:pointer;border:none;border-radius:20px;background-color:#ff0063;color:#fff;transition:all .15s ease-in}main[_ngcontent-%COMP%] .delete-account[_ngcontent-%COMP%] .cta[_ngcontent-%COMP%]:focus, main[_ngcontent-%COMP%] .delete-success[_ngcontent-%COMP%] .cta[_ngcontent-%COMP%]:focus{outline:none}main[_ngcontent-%COMP%] .delete-account[_ngcontent-%COMP%] .cta[_ngcontent-%COMP%]:hover, main[_ngcontent-%COMP%] .delete-success[_ngcontent-%COMP%] .cta[_ngcontent-%COMP%]:hover{background-color:#2d2d2d;transform:translateY(-2px)}main[_ngcontent-%COMP%] .delete-account[_ngcontent-%COMP%] .cta[disabled][_ngcontent-%COMP%], main[_ngcontent-%COMP%] .delete-success[_ngcontent-%COMP%] .cta[disabled][_ngcontent-%COMP%]{background-color:#7a858c}main[_ngcontent-%COMP%] .delete-success[_ngcontent-%COMP%]{padding-bottom:10px;background-color:#faebd7}main[_ngcontent-%COMP%] .wrapper[_ngcontent-%COMP%]{position:relative;white-space:nowrap;display:inline-block;margin:0 auto;padding:0 100px;box-sizing:border-box;width:100%}@media (max-width:840px){main[_ngcontent-%COMP%] .wrapper[_ngcontent-%COMP%]{width:100%;padding:65px 10px 0;box-sizing:border-box}main[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin:10px 0 0;white-space:normal;font-size:16px;font-weight:600;color:#000}}"]}),n})()}];let C=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=r.oAB({type:n}),n.\u0275inj=r.cJS({imports:[[c.Bz.forChild(_)],c.Bz]}),n})(),M=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=r.oAB({type:n}),n.\u0275inj=r.cJS({imports:[[o.ez,C]]}),n})()}}]);