diff --git a/dist/fansubid/browser/794.c5cc34d0eff7897d.js b/dist/fansubid/browser/794.c5cc34d0eff7897d.js
new file mode 100644
index 000000000..792dfbeb9
--- /dev/null
+++ b/dist/fansubid/browser/794.c5cc34d0eff7897d.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkfansubid=self.webpackChunkfansubid||[]).push([[794],{2794:(B,Z,n)=>{n.r(Z),n.d(Z,{UserModule:()=>$t});var d=n(9808),l=n(8406),c=n(3075),E=n(9345),v=n(1385),b=n(6271),g=n(4249),y=n(2777),O=n(7355),w=n(210),h=n(6020),x=n(6436),m=n(4167),U=n(8613),A=n(2438),I=n(5934),t=n(5e3),L=n(4137),k=n(8696),M=n(3e3),J=n(6382),q=n(8745),N=n(8058),Y=n(8381),K=n(5245),F=n(7238),S=n(4623),R=n(7423),Q=n(508),G=n(7567),H=n(325),j=n(8757);function V(s,r){if(1&s&&(t.TgZ(0,"mat-icon",27),t._uU(1,"handyman"),t.qZA()),2&s){const e=t.oxw(2);t.s9C("matTooltip",e.userData.role)}}function z(s,r){if(1&s&&(t.TgZ(0,"mat-icon",27),t._uU(1,"security"),t.qZA()),2&s){const e=t.oxw(2);t.s9C("matTooltip",e.userData.role)}}function $(s,r){if(1&s&&(t.TgZ(0,"mat-icon",27),t._uU(1,"rate_review"),t.qZA()),2&s){const e=t.oxw(2);t.s9C("matTooltip",e.userData.role)}}function W(s,r){1&s&&(t.TgZ(0,"mat-icon",28),t._uU(1,"verified"),t.qZA())}function X(s,r){if(1&s&&(t.TgZ(0,"mat-icon",27),t._uU(1,"lock"),t.qZA()),2&s){const e=t.oxw(2);t.MGl("matTooltip","Banned :: ",e.userBanned.reason,"")}}function tt(s,r){if(1&s&&(t.TgZ(0,"mat-icon",27),t._uU(1,"military_tech"),t.qZA()),2&s){const e=t.oxw(2);t.MGl("matTooltip","",e.accountAge," Years of Service")}}function et(s,r){1&s&&(t.TgZ(0,"mat-icon",29),t._uU(1,"volunteer_activism"),t.qZA())}function it(s,r){1&s&&(t.TgZ(0,"mat-icon",30),t._uU(1,"sensor_occupied"),t.qZA())}function st(s,r){if(1&s&&(t.TgZ(0,"mat-list-option",39),t._UZ(1,"img",40),t.TgZ(2,"a",41)(3,"span",42),t._uU(4),t.qZA(),t.TgZ(5,"span",43),t._uU(6),t.qZA()()()),2&s){const e=r.$implicit;t.MGl("routerLink","/fansub/",e.fansub_.slug,""),t.xp6(1),t.s9C("src",e.fansub_.image_url,t.LSH),t.xp6(3),t.hij(" ",e.keterangan," "),t.xp6(2),t.Oqu(e.fansub_.slug)}}function at(s,r){if(1&s&&(t.TgZ(0,"div",6)(1,"div",31)(2,"div",32)(3,"h2",33)(4,"b",34),t._uU(5,"Group Fansub"),t.qZA()()(),t.TgZ(6,"div",35)(7,"div",36)(8,"mat-selection-list",37),t.YNc(9,st,7,4,"mat-list-option",38),t.qZA()()()()()),2&s){const e=t.oxw(2);t.xp6(8),t.Q6J("multiple",!1),t.xp6(1),t.Q6J("ngForOf",e.groupFansub)}}function nt(s,r){if(1&s&&(t.TgZ(0,"button",44)(1,"mat-icon",21),t._uU(2,"accessibility_new"),t.qZA(),t._uU(3),t.qZA()),2&s){const e=t.oxw(2);t.xp6(3),t.hij(" ",e.userData.id," ")}}function ot(s,r){if(1&s&&(t.TgZ(0,"button",45)(1,"mat-icon",21),t._uU(2,"access_time"),t.qZA(),t._uU(3),t.ALo(4,"date"),t.qZA()),2&s){const e=t.oxw(2);t.xp6(3),t.hij(" ",t.xi3(4,1,e.userData.created_at,"d/M/yyyy, hh:mm:ss a z")," ")}}function rt(s,r){if(1&s&&(t.TgZ(0,"div",31),t._UZ(1,"app-material-expansion-panel",46),t.qZA()),2&s){const e=t.oxw(2);t.xp6(1),t.Q6J("panelData",e.panelData)}}function lt(s,r){1&s&&(t.TgZ(0,"div",31)(1,"div",6),t._UZ(2,"app-report"),t.qZA()())}function ut(s,r){if(1&s){const e=t.EpF();t.TgZ(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"div",5)(5,"div",6),t._UZ(6,"img",7),t.qZA(),t.TgZ(7,"div",8),t.YNc(8,V,2,1,"mat-icon",9),t.YNc(9,z,2,1,"mat-icon",9),t.YNc(10,$,2,1,"mat-icon",9),t.YNc(11,W,2,0,"mat-icon",10),t.YNc(12,X,2,1,"mat-icon",9),t.YNc(13,tt,2,1,"mat-icon",9),t.YNc(14,et,2,0,"mat-icon",11),t.YNc(15,it,2,0,"mat-icon",12),t.qZA(),t.YNc(16,at,10,2,"div",13),t.qZA()(),t.TgZ(17,"div",14)(18,"div",15)(19,"h1",16)(20,"b"),t._uU(21),t.qZA()()(),t.TgZ(22,"div",17),t.YNc(23,nt,4,1,"button",18),t.YNc(24,ot,5,4,"button",19),t.TgZ(25,"button",20)(26,"mat-icon",21),t._uU(27,"email"),t.qZA(),t._uU(28),t.qZA()(),t.YNc(29,rt,2,1,"div",22),t.YNc(30,lt,3,0,"div",22),t.qZA()(),t.TgZ(31,"div",23)(32,"div",6)(33,"app-material-tab",24),t.NdJ("tableRowClicked",function(a){return t.CHM(e),t.oxw().openBerkas(a)})("paginatorClicked",function(a){return t.CHM(e),t.oxw().onPaginatorClicked(a)})("serverSideFilter",function(a){return t.CHM(e),t.oxw().onServerSideFilter(a)})("serverSideOrder",function(a){return t.CHM(e),t.oxw().onServerSideOrder(a)}),t.qZA()()()(),t._UZ(34,"div",25)(35,"div",26),t.qZA()}if(2&s){const e=t.oxw();t.xp6(6),t.s9C("src",e.userData.image_url,t.LSH),t.xp6(2),t.Q6J("ngIf",e.userData.role===e.ADMIN),t.xp6(1),t.Q6J("ngIf",e.userData.role===e.MODERATOR),t.xp6(1),t.Q6J("ngIf",e.userData.role===e.FANSUBBER),t.xp6(1),t.Q6J("ngIf",e.userData.verified),t.xp6(1),t.Q6J("ngIf",e.userBanned),t.xp6(1),t.Q6J("ngIf",e.accountAge>0),t.xp6(1),t.Q6J("ngIf",e.count>0),t.xp6(1),t.Q6J("ngIf",e.userData.private),t.xp6(1),t.Q6J("ngIf",e.groupFansub.length>0),t.xp6(5),t.Oqu(e.userData.kartu_tanda_penduduk_.nama),t.xp6(2),t.Q6J("ngIf",e.userData.id),t.xp6(1),t.Q6J("ngIf",e.userData.created_at),t.xp6(4),t.AsE(" ",e.userData.username,"@",e.ENV.domain," "),t.xp6(1),t.Q6J("ngIf",e.panelData.length>0),t.xp6(1),t.Q6J("ngIf",null==e.SS.mySocket?null:e.SS.mySocket.id),t.xp6(3),t.Q6J("tabData",e.tabData)("count",e.count)("serverSide",!0),t.xp6(1),t.Udp("background-image","url("+e.userData.profile_.cover_url+")")}}let ct=(()=>{class s{constructor(e,i,a,o,u,p,_,f,T){this.router=e,this.activatedRoute=i,this.as=a,this.gs=o,this.bs=u,this.fs=p,this.pi=_,this.us=f,this.ss=T,this.username="",this.userData=null,this.userBanned=null,this.groupFansub=[],this.berkasData=[],this.panelData=[],this.tabData=[],this.count=0,this.page=1,this.row=10,this.q="",this.sort="",this.order="",this.subsUser=null,this.subsBerkas=null,this.subsBanned=null,this.subsParam=null,this.subsGroupGet=null,this.gs.bannerImg=null,this.gs.sizeContain=!1,this.gs.bgRepeat=!1}get SS(){return this.ss}ngOnDestroy(){var e,i,a,o,u;null===(e=this.subsUser)||void 0===e||e.unsubscribe(),null===(i=this.subsBerkas)||void 0===i||i.unsubscribe(),null===(a=this.subsBanned)||void 0===a||a.unsubscribe(),null===(o=this.subsParam)||void 0===o||o.unsubscribe(),null===(u=this.subsGroupGet)||void 0===u||u.unsubscribe()}get ADMIN(){return g.yS.ADMIN}get MODERATOR(){return g.yS.MODERATOR}get FANSUBBER(){return g.yS.FANSUBBER}get accountAge(){return Math.abs(new Date((new Date).getTime()-new Date(this.userData.created_at).getTime()).getUTCFullYear()-1970)}get ENV(){return I.N}ngOnInit(){this.subsParam=this.activatedRoute.params.subscribe({next:e=>{this.username=e.username,this.bs.busy(),this.subsUser=this.us.getUserData(this.username).subscribe({next:i=>{var a,o,u,p,_,f;this.gs.log("[USER_DETAIL_SUCCESS]",i),this.userData=i.result,this.pi.updatePageMetaData(`${this.userData.kartu_tanda_penduduk_.nama}`,`${this.userData.profile_.description}`,`${this.userData.username}`,this.userData.image_url,this.userData.username),this.bs.idle(),this.gs.isBrowser&&(this.panelData=[],this.panelData.push({title:"Tentang Saya",icon:"info",text:this.userData.profile_.description}),this.fs.initializeFab("edit",null,"Ubah Profil",`/user/${this.username}/edit`,!1),this.checkBanned(),this.getUserGroup(),this.tabData=[],(!this.userData.private||(null===(o=null===(a=this.as.currentUserSubject)||void 0===a?void 0:a.value)||void 0===o?void 0:o.username)===this.username||(null===(p=null===(u=this.as.currentUserSubject)||void 0===u?void 0:u.value)||void 0===p?void 0:p.role)===g.yS.ADMIN||(null===(f=null===(_=this.as.currentUserSubject)||void 0===_?void 0:_.value)||void 0===f?void 0:f.role)===g.yS.MODERATOR)&&(this.tabData.push({name:"Berkas",icon:"file_copy",type:"table",data:{column:["Proyek","Nama Berkas","Tanggal","Kunjungan","Pemilik"],row:[]}}),this.getUserBerkas()))},error:i=>{this.gs.log("[USER_DETAIL_ERROR]",i,"error"),this.bs.idle(),this.router.navigate(["/error"],{queryParams:{returnUrl:"/"}})}})}})}checkBanned(){this.bs.busy(),this.subsBanned=this.us.checkBanned(this.userData.username).subscribe({next:e=>{this.gs.log("[USER_CHECK_BANNED_SUCCESS]",e),Object.keys(e.results[this.userData.username]).length>0&&(this.userBanned=e.results[this.userData.username]),this.bs.idle()},error:e=>{this.gs.log("[USER_CHECK_BANNED_ERROR]",e,"error"),this.bs.idle()}})}getUserBerkas(){this.bs.busy(),this.subsBerkas=this.us.getUserBerkas(this.username,this.q,this.page,this.row,this.sort,this.order).subscribe({next:e=>{this.gs.log("[USER_BERKAS_LIST_SUCCESS]",e),this.count=e.count,this.berkasData=[];for(const i of e.results)this.berkasData.push({id:i.id,foto:i.user_.image_url,Proyek:i.project_type_.name,Tanggal:i.created_at,Kunjungan:i.view_count,Pemilik:i.user_.username,"Nama Berkas":i.name});this.tabData[0].data.row=this.berkasData,this.bs.idle()},error:e=>{this.gs.log("[USER_BERKAS_LIST_ERROR]",e,"error"),this.bs.idle()}})}openBerkas(e){this.gs.log("[USER_BERKAS_LIST_CLICK_BERKAS]",e),this.router.navigateByUrl(`/berkas/${e.id}`)}onPaginatorClicked(e){this.gs.log("[USER_BERKAS_LIST_CLICK_PAGINATOR]",e),this.page=e.pageIndex+1,this.row=e.pageSize,this.getUserBerkas()}onServerSideFilter(e){this.gs.log("[USER_BERKAS_LIST_ENTER_FILTER]",e),this.q=e,this.getUserBerkas()}onServerSideOrder(e){this.gs.log("[USER_BERKAS_CLICK_ORDER]",e),this.q=e.q,this.sort=e.active,this.order=e.direction,this.getUserBerkas()}getUserGroup(){this.bs.busy(),this.subsGroupGet=this.us.getUserGroup(this.username).subscribe({next:e=>{this.gs.log("[USER_DETAIL_GROUP_LIST_SUCCESS]",e),this.groupFansub=e.results,this.bs.idle()},error:e=>{this.gs.log("[USER_DETAIL_GROUP_LIST_ERROR]",e,"error"),this.bs.idle()}})}}return s.\u0275fac=function(e){return new(e||s)(t.Y36(l.F0),t.Y36(l.gz),t.Y36(L.e),t.Y36(k.U),t.Y36(M.z),t.Y36(J.r),t.Y36(q.Z),t.Y36(N.K),t.Y36(Y.R))},s.\u0275cmp=t.Xpm({type:s,selectors:[["app-user-detail"]],decls:1,vars:1,consts:[["class","container",4,"ngIf"],[1,"container"],[1,"profile-info","align-items-center"],[1,"media","row","py-3","px-2"],[1,"col-md-4","col-xl-3","px-3"],[1,"row","sticky-top","pt-3"],[1,"col-12"],[1,"w-100",3,"src"],[1,"col-12","my-3"],["class","mx-1","style","cursor: pointer;",3,"matTooltip",4,"ngIf"],["class","mx-1","matTooltip","Terverifikasi","style","cursor: pointer;",4,"ngIf"],["class","mx-1","matTooltip","Sharing is Caring","style","cursor: pointer;",4,"ngIf"],["class","mx-1","matTooltip","Akun Private","style","cursor: pointer;",4,"ngIf"],["class","col-12",4,"ngIf"],[1,"col-md-8","col-xl-9","pt-3"],[1,"row","py-3","px-0","profile-height-large"],[1,"m-0","mt-auto"],[1,"row","p-3"],["mat-stroked-button","","matLine","","class","col-12 col-md-4 text-truncate","matTooltip","Nomor ID Pengguna","color","accent","style","overflow: hidden;",4,"ngIf"],["mat-stroked-button","","matLine","","class","col-12 col-md-8 text-truncate","matTooltip","Tanggal Bergabung","color","accent","style","overflow: hidden;",4,"ngIf"],["mat-stroked-button","","matLine","","matTooltip","Alamat Surel","color","accent",1,"col","text-truncate",2,"overflow","hidden"],[1,"me-1"],["class","row py-3",4,"ngIf"],[1,"row"],[3,"tabData","count","serverSide","tableRowClicked","paginatorClicked","serverSideFilter","serverSideOrder"],[1,"profile-banner","profile-banner-1","align-items-center"],[1,"profile-banner","profile-banner-2","align-items-center"],[1,"mx-1",2,"cursor","pointer",3,"matTooltip"],["matTooltip","Terverifikasi",1,"mx-1",2,"cursor","pointer"],["matTooltip","Sharing is Caring",1,"mx-1",2,"cursor","pointer"],["matTooltip","Akun Private",1,"mx-1",2,"cursor","pointer"],[1,"row","py-3"],[1,"col-12","pt-3","sticky-top","bg-bifeldy"],[1,"border-bottom-dotted"],[1,"text-bifeldy"],[1,"col-12",2,"max-height","288px"],[1,"h-100",2,"overflow-y","auto"],[3,"multiple"],["class","h-100",3,"routerLink",4,"ngFor","ngForOf"],[1,"h-100",3,"routerLink"],["matListAvatar","",1,"ms-3",3,"src"],[1,"text-truncate","text-decoration-none"],[1,"bg-bifeldy","px-2","me-1","text-warning",2,"position","absolute","right","0"],[1,"text-success"],["mat-stroked-button","","matLine","","matTooltip","Nomor ID Pengguna","color","accent",1,"col-12","col-md-4","text-truncate",2,"overflow","hidden"],["mat-stroked-button","","matLine","","matTooltip","Tanggal Bergabung","color","accent",1,"col-12","col-md-8","text-truncate",2,"overflow","hidden"],[3,"panelData"]],template:function(e,i){1&e&&t.YNc(0,ut,36,22,"div",0),2&e&&t.Q6J("ngIf",i.userData)},directives:[d.O5,K.Hw,F.gM,S.Ub,d.sg,S.vS,l.rH,S.eA,R.lW,Q.X2,G.Q,H.Y,j.H],pipes:[d.uU],styles:[".profile-banner[_ngcontent-%COMP%]{height:128px;width:100%;background-size:cover;background-position:center;background-repeat:no-repeat;opacity:.75}.profile-banner-1[_ngcontent-%COMP%]{position:absolute;top:0;left:0}.profile-banner-2[_ngcontent-%COMP%]{position:absolute;top:128px;left:0}.profile-info[_ngcontent-%COMP%]{position:relative;height:256px;z-index:1}@media (min-width: 768px){.profile-height-large[_ngcontent-%COMP%]{height:100px}}"]}),s})();var pt=n(9287),mt=n(7261),dt=n(7845),gt=n(6781),_t=n(9731);let ht=(()=>{class s{constructor(e,i){this.api=e,this.gs=i}getUserApiKey(e){return this.api.getData(`/api-key?username=${e}`)}createApiKey(e){return this.api.postData("/api-key",e)}editApiKey(e,i){return this.api.putData(`/api-key/${e}`,i)}revokeApiKey(e){return this.api.deleteData(`/api-key/${e}`)}}return s.\u0275fac=function(e){return new(e||s)(t.LFG(_t.s),t.LFG(k.U))},s.\u0275prov=t.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();var bt=n(8616),ft=n(192),vt=n(6766);function xt(s,r){if(1&s){const e=t.EpF();t.TgZ(0,"mat-list-option",25)(1,"mat-icon",26),t._uU(2,"add_comment"),t.qZA(),t.TgZ(3,"a",27),t.NdJ("click",function(){const o=t.CHM(e).$implicit;return t.oxw(2).openComment(o)}),t.TgZ(4,"span",28),t._uU(5),t.ALo(6,"dateAgo"),t.qZA(),t.TgZ(7,"span",29),t._uU(8),t.qZA()()()}if(2&s){const e=r.$implicit;t.xp6(5),t.Oqu(t.lcZ(6,2,e.created_at)),t.xp6(3),t.Oqu(e.comment)}}function Ut(s,r){if(1&s&&(t.TgZ(0,"div",11)(1,"mat-selection-list",23),t.YNc(2,xt,9,4,"mat-list-option",24),t.ALo(3,"slice"),t.qZA()()),2&s){const e=t.oxw();t.xp6(1),t.Q6J("multiple",!1),t.xp6(1),t.Q6J("ngForOf",t.Dn7(3,2,e.feedKomentarData,0,5))}}function Tt(s,r){if(1&s&&(t.TgZ(0,"mat-list-option",25)(1,"mat-icon",26),t._uU(2,"volunteer_activism"),t.qZA(),t.TgZ(3,"a",30)(4,"span",28),t._uU(5),t.ALo(6,"dateAgo"),t.qZA(),t.TgZ(7,"span",31),t._uU(8),t.qZA(),t.TgZ(9,"span",32),t._uU(10),t.qZA(),t.TgZ(11,"span",29),t._uU(12),t.qZA()()()),2&s){const e=r.$implicit;t.xp6(3),t.Q6J("routerLink",e.berkas_?"/berkas/"+(null==e.berkas_?null:e.berkas_.id):e.fansub_?"/fansub/"+(null==e.fansub_?null:e.fansub_.slug):e.user_?"/user/"+(null==e.user_?null:e.user_.username):e.news_?"/news/"+(null==e.news_?null:e.news_.id):""),t.xp6(2),t.Oqu(t.lcZ(6,5,e.created_at)),t.xp6(3),t.Oqu(e.type),t.xp6(2),t.Oqu(e.berkas_?"Berkas":e.fansub_?"Fansub":e.user_?"User":e.news_?"News":""),t.xp6(2),t.Oqu((null==e.berkas_?null:e.berkas_.name)||(null==e.fansub_?null:e.fansub_.name)||(null==e.user_||null==e.user_.kartu_tanda_penduduk_?null:e.user_.kartu_tanda_penduduk_.nama)||(null==e.news_?null:e.news_.title))}}function Et(s,r){if(1&s&&(t.TgZ(0,"div",11)(1,"mat-selection-list",23),t.YNc(2,Tt,13,7,"mat-list-option",24),t.ALo(3,"slice"),t.qZA()()),2&s){const e=t.oxw();t.xp6(1),t.Q6J("multiple",!1),t.xp6(1),t.Q6J("ngForOf",t.Dn7(3,2,e.feedLikeDislikeData,0,5))}}function At(s,r){if(1&s&&(t.TgZ(0,"mat-list-option",25)(1,"mat-icon",26),t._uU(2,"directions_run"),t.qZA(),t.TgZ(3,"a",30)(4,"span",28),t._uU(5),t.ALo(6,"dateAgo"),t.qZA(),t.TgZ(7,"span",32),t._uU(8),t.qZA(),t.TgZ(9,"span",29),t._uU(10),t.qZA()()()),2&s){const e=r.$implicit;t.xp6(3),t.Q6J("routerLink",e.berkas_?"/berkas/"+(null==e.berkas_?null:e.berkas_.id):e.fansub_?"/fansub/"+(null==e.fansub_?null:e.fansub_.slug):e.user_?"/user/"+(null==e.user_?null:e.user_.username):e.news_?"/news/"+(null==e.news_?null:e.news_.id):""),t.xp6(2),t.Oqu(t.lcZ(6,4,e.created_at)),t.xp6(3),t.Oqu(e.berkas_?"Berkas":e.fansub_?"Fansub":e.user_?"User":e.news_?"News":""),t.xp6(2),t.Oqu((null==e.berkas_?null:e.berkas_.name)||(null==e.fansub_?null:e.fansub_.name)||(null==e.user_||null==e.user_.kartu_tanda_penduduk_?null:e.user_.kartu_tanda_penduduk_.nama)||(null==e.news_?null:e.news_.title))}}function St(s,r){if(1&s&&(t.TgZ(0,"div",11)(1,"mat-selection-list",23),t.YNc(2,At,11,6,"mat-list-option",24),t.ALo(3,"slice"),t.qZA()()),2&s){const e=t.oxw();t.xp6(1),t.Q6J("multiple",!1),t.xp6(1),t.Q6J("ngForOf",t.Dn7(3,2,e.feedVisitData,0,5))}}function Ct(s,r){if(1&s){const e=t.EpF();t.TgZ(0,"div",33),t.NdJ("click",function(){const o=t.CHM(e).$implicit,u=t.oxw();return u.copyApiKey(o),u.editApiKey(o)}),t.TgZ(1,"p",34),t._uU(2," Nama :: "),t.TgZ(3,"span",35),t._uU(4),t.qZA()(),t.TgZ(5,"p",36),t._uU(6," Origin :: "),t.TgZ(7,"span",35),t._uU(8),t.qZA()(),t.TgZ(9,"p",37),t._uU(10," Key :: "),t.TgZ(11,"span",35),t._uU(12),t.qZA()(),t.TgZ(13,"a",17),t.NdJ("click",function(a){const u=t.CHM(e).$implicit;return t.oxw().revokeApiKey(u),a.stopPropagation()}),t.TgZ(14,"mat-icon",15),t._uU(15,"delete_sweep"),t.qZA(),t._uU(16," Hapus Akses "),t.qZA()()}if(2&s){const e=r.$implicit;t.xp6(4),t.hij(" ",e.name," "),t.xp6(4),t.hij(" ",e.ip_domain," "),t.xp6(4),t.hij(" ",e.api_key," ")}}function Dt(s,r){if(1&s){const e=t.EpF();t.TgZ(0,"mat-list-option",41),t.NdJ("click",function(){const o=t.CHM(e).$implicit;return t.oxw(2).editSubDomain(o.fansub_)}),t._UZ(1,"img",42),t.TgZ(2,"a",43)(3,"span",44),t._uU(4),t.ALo(5,"date"),t.qZA(),t.TgZ(6,"span",35),t._uU(7),t.qZA()()()}if(2&s){const e=r.$implicit;t.xp6(1),t.s9C("src",e.fansub_.image_url,t.LSH),t.xp6(3),t.hij(" ",t.xi3(5,3,e.updated_at,"d-MM-y")," "),t.xp6(3),t.Oqu(e.fansub_.slug)}}function Zt(s,r){if(1&s&&(t.TgZ(0,"div",38)(1,"div",39)(2,"mat-selection-list",23),t.YNc(3,Dt,8,6,"mat-list-option",40),t.qZA()()()),2&s){const e=t.oxw();t.xp6(2),t.Q6J("multiple",!1),t.xp6(1),t.Q6J("ngForOf",e.groupFansub)}}function yt(s,r){1&s&&t._UZ(0,"app-no-data",45)}let It=(()=>{class s{constructor(e,i,a,o,u,p,_,f,T,C,D){this.clipboard=e,this.router=i,this.snackBar=a,this.as=o,this.ds=u,this.gs=p,this.fs=_,this.bs=f,this.us=T,this.fansub=C,this.aks=D,this.feedKomentarData=[],this.feedLikeDislikeData=[],this.feedVisitData=[],this.subsFeedKomentar=null,this.subsFeedLikeDislike=null,this.subsFeedVisit=null,this.subsGetApiKey=null,this.subsDialog=null,this.subsCreateApiKey=null,this.subsEditApiKey=null,this.subsRevokeApiKey=null,this.subsGroupGet=null,this.subsUpdateSubDomain=null,this.subsGetSubDomain=null,this.apiKey=[],this.groupFansub=[],this.gs.bannerImg=null,this.gs.sizeContain=!1,this.gs.bgRepeat=!1}get AS(){return this.as}get ENV(){return I.N}ngOnInit(){var e,i;this.gs.isBrowser&&(this.getUserFeedComment(),this.getUserFeedLikeDislike(),this.getUserFeedVisit(),this.getUserApiKey(),this.getUserGroup(),this.fs.initializeFab("arrow_forward",null,"Menuju Halaman Profile",`/user/${null===(i=null===(e=this.as.currentUserSubject)||void 0===e?void 0:e.value)||void 0===i?void 0:i.username}`,!1))}ngOnDestroy(){var e,i,a,o,u,p,_,f,T,C,D;null===(e=this.subsFeedKomentar)||void 0===e||e.unsubscribe(),null===(i=this.subsFeedLikeDislike)||void 0===i||i.unsubscribe(),null===(a=this.subsFeedVisit)||void 0===a||a.unsubscribe(),null===(o=this.subsGetApiKey)||void 0===o||o.unsubscribe(),null===(u=this.subsDialog)||void 0===u||u.unsubscribe(),null===(p=this.subsCreateApiKey)||void 0===p||p.unsubscribe(),null===(_=this.subsEditApiKey)||void 0===_||_.unsubscribe(),null===(f=this.subsRevokeApiKey)||void 0===f||f.unsubscribe(),null===(T=this.subsGroupGet)||void 0===T||T.unsubscribe(),null===(C=this.subsUpdateSubDomain)||void 0===C||C.unsubscribe(),null===(D=this.subsGetSubDomain)||void 0===D||D.unsubscribe()}getUserFeedComment(){var e,i;this.bs.busy(),this.subsFeedKomentar=this.us.getUserFeedComment(null===(i=null===(e=this.as.currentUserSubject)||void 0===e?void 0:e.value)||void 0===i?void 0:i.username,"",1,5).subscribe({next:a=>{this.gs.log("[USER_FEED_COMMENT_SUCCESS]",a),this.feedKomentarData=a.results,this.bs.idle()},error:a=>{this.gs.log("[USER_FEED_COMMENT_ERROR]",a,"error"),this.bs.idle()}})}getUserFeedLikeDislike(){var e,i;this.bs.busy(),this.subsFeedLikeDislike=this.us.getUserFeedLikeDislike(null===(i=null===(e=this.as.currentUserSubject)||void 0===e?void 0:e.value)||void 0===i?void 0:i.username,"",1,5).subscribe({next:a=>{this.gs.log("[USER_FEED_LIKEDISLIKE_SUCCESS]",a),this.feedLikeDislikeData=a.results,this.bs.idle()},error:a=>{this.gs.log("[USER_FEED_LIKEDISLIKE_ERROR]",a,"error"),this.bs.idle()}})}getUserFeedVisit(){var e,i;this.bs.busy(),this.subsFeedVisit=this.us.getUserFeedVisit(null===(i=null===(e=this.as.currentUserSubject)||void 0===e?void 0:e.value)||void 0===i?void 0:i.username,"",1,5).subscribe({next:a=>{this.gs.log("[USER_FEED_VISIT_SUCCESS]",a),this.feedVisitData=a.results,this.bs.idle()},error:a=>{this.gs.log("[USER_FEED_VISIT_ERROR]",a,"error"),this.bs.idle()}})}getUserApiKey(){var e,i;this.bs.busy(),this.subsGetApiKey=this.aks.getUserApiKey(null===(i=null===(e=this.as.currentUserSubject)||void 0===e?void 0:e.value)||void 0===i?void 0:i.username).subscribe({next:a=>{var o,u;this.gs.log("[USER_FEED_VISIT_SUCCESS]",a),this.apiKey=a.results[null===(u=null===(o=this.as.currentUserSubject)||void 0===o?void 0:o.value)||void 0===u?void 0:u.username],this.bs.idle()},error:a=>{this.gs.log("[USER_FEED_VISIT_ERROR]",a,"error"),this.bs.idle()}})}copyApiKey(e){this.clipboard.copy(e.api_key)&&this.snackBar.open("API Key :: Telah Di Salin Pada Clipboard","Ok")}generateNewApiKey(){var e,i;this.subsDialog=this.ds.openInputDialog({data:{title:"Tambah API Key Baru",input:{name:{inputLabel:"Nama / Deskripsi",inputPlaceholder:`${null===(i=null===(e=this.as.currentUserSubject)||void 0===e?void 0:e.value)||void 0===i?void 0:i.username}_${(new Date).getTime()}`,inputValue:null,inputRequired:!0},ip_domain:{inputLabel:"Origin Tanpa http://",inputPlaceholder:"example.com; 1.1.1.1; *",inputValue:null,inputRequired:!0}},confirmText:"OK",cancelText:"Batal",infoText:"Gunakan * Saja Untuk Perbolehkan Semua Dan Titik Koma ; Untuk Lebih Dari Satu"}}).afterClosed().subscribe({next:a=>{this.gs.log("[INPUT_DIALOG_CLOSED]",a),a&&(this.bs.busy(),this.subsCreateApiKey=this.aks.createApiKey({name:a.name,ip_domain:a.ip_domain}).subscribe({next:o=>{this.gs.log("[USER_CREATE_APIKEY_SUCCESS]",o),this.bs.idle(),this.getUserApiKey()},error:o=>{this.gs.log("[USER_CREATE_APIKEY_ERROR]",o,"error"),this.bs.idle(),this.getUserApiKey()}})),this.subsDialog.unsubscribe()}})}editApiKey(e){this.subsDialog=this.ds.openInputDialog({data:{title:"Ubah API Key",input:{name:{inputLabel:"Nama / Deskripsi",inputPlaceholder:e.name,inputValue:e.name,inputRequired:!0},ip_domain:{inputLabel:"Origin Tanpa http://",inputPlaceholder:e.ip_domain,inputValue:e.ip_domain,inputRequired:!0}},confirmText:"OK",cancelText:"Batal",infoText:"Gunakan * Saja Untuk Perbolehkan Semua Dan Titik Koma ; Untuk Lebih Dari Satu"}}).afterClosed().subscribe({next:i=>{this.gs.log("[INPUT_DIALOG_CLOSED]",i),i&&(this.bs.busy(),this.subsEditApiKey=this.aks.editApiKey(e.id,{name:i.name,ip_domain:i.ip_domain}).subscribe({next:a=>{this.gs.log("[USER_EDIT_APIKEY_SUCCESS]",a),this.bs.idle(),this.getUserApiKey()},error:a=>{this.gs.log("[USER_EDIT_APIKEY_ERROR]",a,"error"),this.bs.idle(),this.getUserApiKey()}})),this.subsDialog.unsubscribe()}})}revokeApiKey(e){this.bs.busy(),this.subsRevokeApiKey=this.aks.revokeApiKey(e.id).subscribe({next:i=>{this.gs.log("[USER_REVOKE_APIKEY_SUCCESS]",i),this.bs.idle(),this.getUserApiKey()},error:i=>{this.gs.log("[USER_REVOKE_APIKEY_ERROR]",i,"error"),this.bs.idle(),this.getUserApiKey()}})}getUserGroup(){var e,i;this.bs.busy(),this.subsGroupGet=this.us.getUserGroup(null===(i=null===(e=this.as.currentUserSubject)||void 0===e?void 0:e.value)||void 0===i?void 0:i.username).subscribe({next:a=>{this.gs.log("[USER_GROUP_LIST_SUCCESS]",a),this.groupFansub=a.results,this.bs.idle()},error:a=>{this.gs.log("[USER_GROUP_LIST_ERROR]",a,"error"),this.bs.idle()}})}editSubDomain(e){this.bs.busy(),this.subsGetSubDomain=this.fansub.getSubDomain(e.slug).subscribe({next:i=>{var a,o;this.gs.log("[USER_FANSUB_SUBDOMAIN_SUCCESS]",i),this.bs.idle();const u=i.result;this.subsDialog=this.ds.openInputDialog({data:{title:`Ubah CNAME / A Record IP v4 v6 :: '${e.slug}'`,input:{server_target:{inputLabel:"Server Target",inputPlaceholder:"ghs.google.com",inputValue:u.dns_id.content,inputRequired:!0},verification_name:{inputLabel:"Tambahan Khusus Blogger :: Name",inputPlaceholder:"blablabla-name",inputValue:null===(a=u.dns_id_alt)||void 0===a?void 0:a.name,inputRequired:!1},verification_target:{inputLabel:"Tambahan Khusus Blogger :: Target",inputPlaceholder:"blablabla-target.dv.googlehosted.com",inputValue:null===(o=u.dns_id_alt)||void 0===o?void 0:o.content,inputRequired:!1}},confirmText:"OK",cancelText:"Batal",infoText:"Abaikan 2 Input Terakhir Jika Bukan Blogger"}}).afterClosed().subscribe({next:p=>{this.gs.log("[INPUT_DIALOG_CLOSED]",p),p&&(this.bs.busy(),this.subsUpdateSubDomain=this.fansub.updateSubDomain(e.slug,{server_target:p.server_target,verification_name:p.verification_name,verification_target:p.verification_target}).subscribe({next:_=>{this.gs.log("[FANSUB_UPDATE_SUBDOMAIN_SUCCESS]",_),this.bs.idle(),this.getUserGroup()},error:_=>{this.gs.log("[FANSUB_UPDATE_SUBDOMAIN_ERROR]",_,"error"),this.bs.idle(),this.getUserGroup()}})),this.subsDialog.unsubscribe()}})},error:i=>{this.gs.log("[USER_FANSUB_SUBDOMAIN_ERROR]",i,"error"),this.bs.idle(),this.subsDialog=this.ds.openInfoDialog({data:{title:`Sepertinya Sub-Domain '${e.slug}' Belum Di Klaim`,htmlMessage:"Silahkan ambil sub-domain pada halaman fansub, ingin ke sana sekarang?",confirmText:"Ya",cancelText:"Tidak"},disableClose:!1}).afterClosed().subscribe({next:a=>{this.gs.log("[INFO_DIALOG_CLOSED]",a),!0===a?this.router.navigateByUrl(`/fansub/${e.slug}`):this.getUserGroup(),this.subsDialog.unsubscribe()}})}})}openComment(e){this.router.navigate([e.path],{queryParams:{comment:e.id}})}}return s.\u0275fac=function(e){return new(e||s)(t.Y36(pt.TU),t.Y36(l.F0),t.Y36(mt.ux),t.Y36(L.e),t.Y36(dt.x),t.Y36(k.U),t.Y36(J.r),t.Y36(M.z),t.Y36(N.K),t.Y36(gt.T),t.Y36(ht))},s.\u0275cmp=t.Xpm({type:s,selectors:[["app-user-list"]],decls:64,vars:12,consts:[[1,"container"],[1,"row","pb-3","px-0"],[1,"col-lg-8","col-xl-9"],[1,"row"],[1,"col-12","sticky-top","bg-bifeldy"],[1,"pt-3","border-bottom-dotted"],[1,"float-end","text-warning",2,"font-size","small","cursor","pointer",3,"click"],[1,"text-bifeldy"],["class","col-12",4,"ngIf","ngIfElse"],[1,"col-lg-4","col-xl-3"],[1,"row","sticky-top"],[1,"col-12"],["matTooltip","Khusus Pengguna Terverifikasi",1,"text-bifeldy"],[1,"col-12","mb-2"],["mat-button","","color","accent","matTooltip","Buka Kotak Pesan","routerLink","/mailbox",1,"w-100"],[1,"me-1"],[1,"text-bifeldy",3,"matTooltip"],["mat-button","","color","accent",1,"w-100",3,"click"],["class","my-2 gradient-border",3,"click",4,"ngFor","ngForOf"],[1,"row","mt-4"],[1,"border-bottom-dotted"],["class","col-12 mb-2","style","max-height: 288px;",4,"ngIf","ngIfElse"],["noData",""],[3,"multiple"],["class","h-100",4,"ngFor","ngForOf"],[1,"h-100"],["mat-list-icon","",1,"ps-3"],[1,"text-truncate","text-decoration-none",3,"click"],[1,"bg-bifeldy","px-2","me-1","text-danger",2,"position","absolute","right","0"],[1,"text-warning"],[1,"text-truncate","text-decoration-none",3,"routerLink"],[1,"me-3","text-success"],[1,"me-3","text-info"],[1,"my-2","gradient-border",3,"click"],[1,"ps-2","pe-2","pt-2","text-truncate","my-0"],[1,"text-success"],[1,"ps-2","pe-2","pt-0","text-truncate","my-0"],[1,"ps-2","pe-2","pb-2","text-truncate","my-0"],[1,"col-12","mb-2",2,"max-height","288px"],[1,"h-100",2,"overflow-y","auto"],["class","h-100",3,"click",4,"ngFor","ngForOf"],[1,"h-100",3,"click"],["matListAvatar","",1,"ms-3",3,"src"],[1,"text-truncate","text-decoration-none"],[1,"bg-bifeldy","px-2","me-1","text-warning",2,"position","absolute","right","0"],[1,"col-12","p-3"]],template:function(e,i){if(1&e&&(t._UZ(0,"app-notifications"),t.TgZ(1,"div",0)(2,"div",1)(3,"div",2)(4,"div",3)(5,"div",4)(6,"h2",5)(7,"span",6),t.NdJ("click",function(){return i.getUserFeedComment()}),t._uU(8," Refresh "),t.qZA(),t.TgZ(9,"b",7),t._uU(10,"Riwayat Komentar"),t.qZA()()(),t.YNc(11,Ut,4,6,"div",8),t.qZA(),t.TgZ(12,"div",3)(13,"div",4)(14,"h2",5)(15,"span",6),t.NdJ("click",function(){return i.getUserFeedLikeDislike()}),t._uU(16," Refresh "),t.qZA(),t.TgZ(17,"b",7),t._uU(18,"Riwayat Like & Dislike"),t.qZA()()(),t.YNc(19,Et,4,6,"div",8),t.qZA(),t.TgZ(20,"div",3)(21,"div",4)(22,"h2",5)(23,"span",6),t.NdJ("click",function(){return i.getUserFeedVisit()}),t._uU(24," Refresh "),t.qZA(),t.TgZ(25,"b",7),t._uU(26,"Riwayat Kunjungan"),t.qZA()()(),t.YNc(27,St,4,6,"div",8),t.qZA()(),t.TgZ(28,"div",9)(29,"div",10)(30,"div",11)(31,"div",3)(32,"div",4)(33,"h2",5)(34,"b",12),t._uU(35,"Alamat Email"),t.qZA()()(),t.TgZ(36,"div",13)(37,"a",14)(38,"mat-icon",15),t._uU(39,"email"),t.qZA(),t._uU(40),t.qZA()()(),t.TgZ(41,"div",3)(42,"div",4)(43,"h2",5)(44,"span",6),t.NdJ("click",function(){return i.getUserApiKey()}),t._uU(45," Refresh "),t.qZA(),t.TgZ(46,"b",16),t._uU(47,"API Key"),t.qZA()()(),t.TgZ(48,"div",13)(49,"a",17),t.NdJ("click",function(){return i.generateNewApiKey()}),t.TgZ(50,"mat-icon",15),t._uU(51,"webhook"),t.qZA(),t._uU(52," Buat API Key Baru "),t.qZA(),t.YNc(53,Ct,17,3,"div",18),t.qZA()(),t.TgZ(54,"div",19)(55,"div",4)(56,"h2",20)(57,"span",6),t.NdJ("click",function(){return i.getUserGroup()}),t._uU(58," Refresh "),t.qZA(),t.TgZ(59,"b",7),t._uU(60,"DNS Fansub"),t.qZA()()(),t.YNc(61,Zt,4,2,"div",21),t.qZA()()()()()(),t.YNc(62,yt,1,0,"ng-template",null,22,t.W1O)),2&e){const a=t.MAs(63);t.xp6(11),t.Q6J("ngIf",i.feedKomentarData.length>0)("ngIfElse",a),t.xp6(8),t.Q6J("ngIf",i.feedLikeDislikeData.length>0)("ngIfElse",a),t.xp6(8),t.Q6J("ngIf",i.feedVisitData.length>0)("ngIfElse",a),t.xp6(13),t.AsE(" '",null==i.AS.currentUserSubject||null==i.AS.currentUserSubject.value?null:i.AS.currentUserSubject.value.username,"@",i.ENV.domain,"' "),t.xp6(6),t.MGl("matTooltip","Aktivitas Terakhir :: ",null==i.AS.currentUserSubject||null==i.AS.currentUserSubject.value?null:i.AS.currentUserSubject.value._session_origin,""),t.xp6(7),t.Q6J("ngForOf",i.apiKey),t.xp6(8),t.Q6J("ngIf",i.groupFansub.length>0)("ngIfElse",a)}},directives:[bt.t,d.O5,S.Ub,d.sg,S.vS,K.Hw,S.Nh,l.yS,F.gM,R.zs,S.eA,ft.d],pipes:[d.OU,vt.R,d.uU],styles:[""]}),s})();var kt=n(6925),Rt=n(7902),Pt=n(8379),P=n(7322),Ot=n(2368),wt=n(7531),Lt=n(3626);function Mt(s,r){if(1&s&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"bytes"),t.qZA()),2&s){const e=t.oxw(2);t.xp6(1),t.hij("Ukuran Upload Melebihi Batas ",t.lcZ(2,1,e.imagePhotoLimitExceeded)," !")}}function Nt(s,r){if(1&s&&(t.TgZ(0,"div"),t._uU(1),t.qZA()),2&s){const e=t.oxw(2);t.xp6(1),t.Oqu(e.imagePhotoErrorText)}}function Kt(s,r){if(1&s){const e=t.EpF();t.TgZ(0,"div",42)(1,"button",43),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).submitPhotoImage()}),t.TgZ(2,"mat-icon",37),t._uU(3,"add_photo_alternate"),t.qZA(),t._uU(4," Unggah "),t.qZA()()}if(2&s){const e=t.oxw(2);t.xp6(1),t.Q6J("disabled",e.submitted)}}function Ft(s,r){if(1&s&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"bytes"),t.qZA()),2&s){const e=t.oxw(2);t.xp6(1),t.hij("Ukuran Upload Melebihi Batas ",t.lcZ(2,1,e.imageCoverLimitExceeded)," !")}}function Bt(s,r){if(1&s&&(t.TgZ(0,"div"),t._uU(1),t.qZA()),2&s){const e=t.oxw(2);t.xp6(1),t.Oqu(e.imageCoverErrorText)}}function Jt(s,r){if(1&s){const e=t.EpF();t.TgZ(0,"div",16)(1,"button",43),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).submitCoverImage()}),t.TgZ(2,"mat-icon",37),t._uU(3,"add_photo_alternate"),t.qZA(),t._uU(4," Unggah "),t.qZA()()}if(2&s){const e=t.oxw(2);t.xp6(1),t.Q6J("disabled",e.submitted)}}function qt(s,r){1&s&&(t.TgZ(0,"div"),t._uU(1,"Password Tidak Boleh Kosong"),t.qZA())}function Yt(s,r){1&s&&(t.TgZ(0,"div"),t._uU(1,"Password Minimal 8 Huruf"),t.qZA())}function Qt(s,r){1&s&&(t.TgZ(0,"div"),t._uU(1,"Password Hanya Boleh Huruf Standar Papan Ketik"),t.qZA())}function Gt(s,r){1&s&&(t.TgZ(0,"div"),t._uU(1,"Password Minimal 8 Huruf"),t.qZA())}function Ht(s,r){1&s&&(t.TgZ(0,"div"),t._uU(1,"Password Hanya Boleh Huruf Standar Papan Ketik"),t.qZA())}function jt(s,r){if(1&s){const e=t.EpF();t.TgZ(0,"form",1),t.NdJ("submit",function(){return t.CHM(e),t.oxw().onSubmit()}),t.TgZ(1,"div",2)(2,"div",3)(3,"div",4)(4,"div",5)(5,"div",6)(6,"div",7),t._UZ(7,"img",8),t.TgZ(8,"mat-form-field",9)(9,"mat-label"),t._uU(10,"Profile Image"),t.qZA(),t.TgZ(11,"ngx-mat-file-input",10,11),t.NdJ("change",function(a){t.CHM(e);const o=t.MAs(12);return t.oxw().uploadPhotoImage(a,o)}),t.qZA(),t.TgZ(13,"mat-icon",12),t._uU(14,"image"),t.qZA()(),t.TgZ(15,"mat-error",13)(16,"small"),t.YNc(17,Mt,3,3,"div",14),t.YNc(18,Nt,2,1,"div",14),t.qZA()()(),t.YNc(19,Kt,5,1,"div",15),t.TgZ(20,"div",16)(21,"mat-slide-toggle",17),t._uU(22," Jadikan Private, Sembunyikan Aktivitas "),t.qZA()()()(),t.TgZ(23,"div",18)(24,"div",19)(25,"h1",20)(26,"b"),t._uU(27),t.qZA()()(),t.TgZ(28,"div",21)(29,"mat-form-field",22)(30,"mat-label"),t._uU(31,"Cover Image"),t.qZA(),t.TgZ(32,"ngx-mat-file-input",23,24),t.NdJ("change",function(a){t.CHM(e);const o=t.MAs(33);return t.oxw().uploadCoverImage(a,o)}),t.qZA(),t.TgZ(34,"mat-icon",12),t._uU(35,"image"),t.qZA()(),t.TgZ(36,"mat-error",13)(37,"small"),t.YNc(38,Ft,3,3,"div",14),t.YNc(39,Bt,2,1,"div",14),t.qZA()(),t.YNc(40,Jt,5,1,"div",25),t._UZ(41,"angular-editor",26),t.TgZ(42,"mat-form-field",27)(43,"mat-label"),t._uU(44,"Username / Email (Optional Autocomplete)"),t.qZA(),t._UZ(45,"input",28),t.qZA(),t.TgZ(46,"mat-form-field",29)(47,"mat-label"),t._uU(48,"Konfirmasi Kata Sandi"),t.qZA(),t._UZ(49,"input",30),t.TgZ(50,"button",31),t.NdJ("click",function(){return t.CHM(e),t.oxw().togglePassword()}),t.TgZ(51,"mat-icon"),t._uU(52),t.qZA()(),t.TgZ(53,"mat-error"),t.YNc(54,qt,2,0,"div",14),t.YNc(55,Yt,2,0,"div",14),t.YNc(56,Qt,2,0,"div",14),t.qZA()(),t.TgZ(57,"mat-form-field",29)(58,"mat-label"),t._uU(59,"Ubah Kata Sandi"),t.qZA(),t._UZ(60,"input",32),t.TgZ(61,"button",31),t.NdJ("click",function(){return t.CHM(e),t.oxw().togglePassword()}),t.TgZ(62,"mat-icon"),t._uU(63),t.qZA()(),t.TgZ(64,"mat-error"),t.YNc(65,Gt,2,0,"div",14),t.YNc(66,Ht,2,0,"div",14),t.qZA()()(),t.TgZ(67,"div",33)(68,"div",7)(69,"div",33),t._UZ(70,"div",34),t.TgZ(71,"div",35)(72,"a",36)(73,"mat-icon",37),t._uU(74,"undo"),t.qZA(),t._uU(75," Batal "),t.qZA()(),t.TgZ(76,"div",35)(77,"button",38),t._uU(78," Simpan "),t.TgZ(79,"mat-icon",39),t._uU(80,"save"),t.qZA()()()()()()()()(),t._UZ(81,"div",40)(82,"div",41),t.qZA()()}if(2&s){const e=t.oxw();t.Q6J("formGroup",e.fg),t.xp6(7),t.s9C("src",e.image_photo,t.LSH),t.xp6(1),t.Q6J("color","accent"),t.xp6(3),t.Q6J("accept","image/gif, image/jpeg, image/jpg, image/png"),t.xp6(6),t.Q6J("ngIf",e.imagePhotoLimitExceeded),t.xp6(1),t.Q6J("ngIf",e.imagePhotoErrorText),t.xp6(1),t.Q6J("ngIf",e.imagePhoto&&!e.fg.value.image_photo),t.xp6(8),t.Oqu(e.userData.kartu_tanda_penduduk_.nama),t.xp6(2),t.Q6J("color","accent"),t.xp6(3),t.Q6J("accept","image/gif, image/jpeg, image/jpg, image/png"),t.xp6(6),t.Q6J("ngIf",e.imageCoverLimitExceeded),t.xp6(1),t.Q6J("ngIf",e.imageCoverErrorText),t.xp6(1),t.Q6J("ngIf",e.imageCover&&!e.fg.value.image_cover),t.xp6(1),t.Q6J("config",e.GS.angularEditorConfig),t.xp6(1),t.Q6J("color","accent"),t.xp6(3),t.s9C("value",e.userData.username),t.xp6(1),t.Q6J("color","accent"),t.xp6(3),t.Q6J("type",e.passwordHide?"password":"text"),t.xp6(3),t.Oqu(e.passwordHide?"visibility_off":"visibility"),t.xp6(2),t.Q6J("ngIf",e.fg.get("old_password").hasError("required")),t.xp6(1),t.Q6J("ngIf",e.fg.get("old_password").hasError("minlength")),t.xp6(1),t.Q6J("ngIf",e.fg.get("old_password").hasError("pattern")),t.xp6(1),t.Q6J("color","accent"),t.xp6(3),t.Q6J("type",e.passwordHide?"password":"text"),t.xp6(3),t.Oqu(e.passwordHide?"visibility_off":"visibility"),t.xp6(2),t.Q6J("ngIf",e.fg.get("new_password").hasError("minlength")),t.xp6(1),t.Q6J("ngIf",e.fg.get("new_password").hasError("pattern")),t.xp6(6),t.Q6J("disabled",e.submitted),t.xp6(5),t.Q6J("disabled",e.submitted||e.fg.invalid||!e.fg.dirty),t.xp6(4),t.Udp("background-image","url("+e.image_cover+")")}}const zt=[{path:"",pathMatch:"full",component:It,canActivate:[y.t],data:{title:"User - Dashboard Overview",description:"Halaman Informasi Pengguna",keywords:"User",[b.t.decoratorRoles]:[g.yS.ADMIN,g.yS.MODERATOR,g.yS.FANSUBBER,g.yS.USER]}},{path:":username",children:[{path:"",pathMatch:"full",component:ct},{path:"edit",component:(()=>{class s{constructor(e,i,a,o,u,p,_,f,T,C,D){this.router=e,this.activatedRoute=i,this.toast=a,this.bs=o,this.us=u,this.pi=p,this.fb=_,this.imgbb=f,this.gs=T,this.as=C,this.cs=D,this.submitted=!1,this.username=null,this.userData=null,this.imagePhoto=null,this.imagePhotoErrorText=null,this.imagePhotoLimitExceeded=null,this.image_photo=null,this.image_photo_original=null,this.imageCover=null,this.imageCoverErrorText=null,this.imageCoverLimitExceeded=null,this.image_cover=null,this.image_cover_original=null,this.passwordHide=!0,this.photoImage=null,this.coverImage=null,this.subsUserDetail=null,this.subsImgbb1=null,this.subsImgbb2=null,this.subsUserUpdate=null,this.subsVerify=null,this.gs.bannerImg=null,this.gs.sizeContain=!1,this.gs.bgRepeat=!1}get GS(){return this.gs}togglePassword(){this.passwordHide=!this.passwordHide}ngOnDestroy(){var e,i,a,o,u;null===(e=this.subsUserDetail)||void 0===e||e.unsubscribe(),null===(i=this.subsImgbb1)||void 0===i||i.unsubscribe(),null===(a=this.subsImgbb2)||void 0===a||a.unsubscribe(),null===(o=this.subsUserUpdate)||void 0===o||o.unsubscribe(),null===(u=this.subsVerify)||void 0===u||u.unsubscribe()}ngOnInit(){this.pi.updatePageMetaData("User - Ubah Profile","Halaman Pembaharuan Profile","Ubah Profile"),this.gs.isBrowser&&(this.username=this.activatedRoute.snapshot.paramMap.get("username"),this.bs.busy(),this.subsUserDetail=this.us.getUserData(this.username).subscribe({next:e=>{var i,a;this.gs.log("[USER_DETAIL_SUCCESS]",e),this.bs.idle(),(null===(a=null===(i=this.as.currentUserSubject)||void 0===i?void 0:i.value)||void 0===a?void 0:a.id)!==e.result.id?(this.toast.warning("Profile Ini Milik Orang Lain","Whoops!",null,!0),this.router.navigateByUrl(`/user/${this.username}`)):this.initForm(e.result)},error:e=>{this.gs.log("[USER_DETAIL_ERROR]",e,"error"),this.bs.idle(),this.router.navigate(["/error"],{queryParams:{returnUrl:`/user/${this.username}`}})}}))}initForm(e){this.fg=this.fb.group({description:[e.profile_.description,c.kI.compose([c.kI.pattern(b.t.regexEnglishKeyboardKeys)])],old_password:[null,c.kI.compose([c.kI.required,c.kI.minLength(8),c.kI.pattern(b.t.regexEnglishKeyboardKeys)])],new_password:[null,c.kI.compose([c.kI.minLength(8),c.kI.pattern(b.t.regexEnglishKeyboardKeys)])],image_photo:[null,c.kI.compose([c.kI.pattern(b.t.regexUrl)])],image_cover:[null,c.kI.compose([c.kI.pattern(b.t.regexUrl)])],private:[e.private,c.kI.compose([c.kI.required])]}),this.image_photo=e.image_url,this.image_photo_original=this.image_photo,this.image_cover=e.profile_.cover_url,this.image_cover_original=this.image_cover,this.userData=e}uploadPhotoImage(e,i){this.photoImage=i,this.imagePhoto=null,this.imagePhotoLimitExceeded=null,this.imagePhotoErrorText=null,this.fg.controls.image_photo.patchValue(null),this.fg.controls.image_photo.markAsPristine();const a=e.target.files[0];try{const o=new FileReader;o.readAsDataURL(a),o.onload=u=>{if(this.gs.log("[IMAGE_PHOTO_SELECTED]",u),a.size<=b.t.fileSizeImageLimit){const p=this.gs.document.createElement("img");p.onload=()=>{this.imagePhoto=a,this.image_photo=o.result.toString()},p.src=o.result.toString()}else this.imagePhoto=null,this.image_photo="/assets/img/form/image-error.png",this.imagePhotoLimitExceeded=b.t.fileSizeImageLimit,this.photoImage.clear(e)}}catch(o){this.imagePhoto=null,this.image_photo=this.image_photo_original,this.photoImage.clear(e)}}submitPhotoImage(){this.submitted=!0,this.subsImgbb1=this.imgbb.uploadImage({file:this.imagePhoto}).subscribe({next:e=>{this.gs.log("[IMAGE_PHOTO_SUCCESS]",e),this.fg.controls.image_photo.patchValue(e.result.url),this.fg.controls.image_photo.markAsDirty(),this.submitted=!1},error:e=>{var i;this.gs.log("[IMAGE_PHOTO_ERROR]",e,"error"),this.fg.controls.image_photo.patchValue(null),this.fg.controls.image_photo.markAsPristine(),this.submitted=!1,this.imagePhotoErrorText=(null===(i=e.result)||void 0===i?void 0:i.message)||e.info}})}uploadCoverImage(e,i){this.coverImage=i,this.imageCover=null,this.imageCoverLimitExceeded=null,this.imageCoverErrorText=null,this.fg.controls.image_cover.patchValue(null),this.fg.controls.image_cover.markAsPristine();const a=e.target.files[0];try{const o=new FileReader;o.readAsDataURL(a),o.onload=u=>{if(this.gs.log("[IMAGE_COVER_SELECTED]",u),a.size<=b.t.fileSizeImageLimit){const p=this.gs.document.createElement("img");p.onload=()=>{this.imageCover=a,this.image_cover=o.result.toString()},p.src=o.result.toString()}else this.imageCover=null,this.image_cover="/assets/img/form/image-error.png",this.imageCoverLimitExceeded=b.t.fileSizeImageLimit,this.coverImage.clear(e)}}catch(o){this.imageCover=null,this.image_cover=this.image_cover_original,this.coverImage.clear(e)}}submitCoverImage(){this.submitted=!0,this.subsImgbb2=this.imgbb.uploadImage({file:this.imageCover}).subscribe({next:e=>{this.gs.log("[IMAGE_COVER_SUCCESS]",e),this.fg.controls.image_cover.patchValue(e.result.url),this.fg.controls.image_cover.markAsDirty(),this.submitted=!1},error:e=>{var i;this.gs.log("[IMAGE_COVER_ERROR]",e,"error"),this.fg.controls.image_cover.patchValue(null),this.fg.controls.image_cover.markAsPristine(),this.submitted=!1,this.imageCoverErrorText=(null===(i=e.result)||void 0===i?void 0:i.message)||e.info}})}onSubmit(){this.bs.busy();const e=this.gs.getDirtyValues(this.fg);if(e.old_password=this.cs.hashPassword(this.fg.value.old_password),"new_password"in e&&e.new_password&&(e.new_password=this.cs.hashPassword(this.fg.value.new_password)),this.gs.log("[USER_EDIT_DIRTY]",e),this.submitted=!0,this.fg.invalid)return this.submitted=!1,void this.bs.idle();this.subsUserUpdate=this.us.updateUser(this.username,{...e}).subscribe({next:i=>{this.gs.log("[USER_EDIT_SUCCESS]",i),this.submitted=!1,this.bs.idle(),this.as.removeUser(),this.bs.busy(),this.subsVerify=this.as.verify(this.as.token).subscribe({next:a=>{this.gs.log("[VERIFY_LOGIN_SUCCESS]",a),this.bs.idle(),this.router.navigateByUrl(`/user/${this.username}`)},error:a=>{this.gs.log("[VERIFY_LOGIN_ERROR]",a,"error"),this.bs.idle(),this.as.removeUser(),this.router.navigateByUrl(`/user/${this.username}`)}})},error:i=>{this.gs.log("[USER_EDIT_ERROR]",i,"error"),this.submitted=!1,this.bs.idle()}})}}return s.\u0275fac=function(e){return new(e||s)(t.Y36(l.F0),t.Y36(l.gz),t.Y36(kt.k),t.Y36(M.z),t.Y36(N.K),t.Y36(q.Z),t.Y36(c.qu),t.Y36(Rt.X),t.Y36(k.U),t.Y36(L.e),t.Y36(Pt.$))},s.\u0275cmp=t.Xpm({type:s,selectors:[["app-user-edit"]],decls:1,vars:1,consts:[[3,"formGroup","submit",4,"ngIf"],[3,"formGroup","submit"],[1,"container"],[1,"profile-info","align-items-center"],[1,"media","row","py-3","px-2"],[1,"col-md-4","col-xl-3","px-3"],[1,"row","sticky-top","pt-3"],[1,"col-12"],[1,"w-100","border","rounded-circle",3,"src"],["appearance","outline",1,"pt-3","w-100",3,"color"],[1,"w-100",3,"accept","change"],["photoImage",""],["matSuffix",""],[1,"px-3","w-100"],[4,"ngIf"],["class","col-12 mb-4",4,"ngIf"],[1,"col-12","p-3"],["formControlName","private","matTooltip","Hanya Tampilkan Informasi Profil"],[1,"col-md-8","col-xl-9","pt-3"],[1,"row","py-3","px-0","profile-height-large"],[1,"m-0","mt-auto"],[1,"row","py-3"],["appearance","outline",1,"px-3","pt-3","w-100",3,"color"],["placeholder","Basic Input",1,"w-100",3,"accept","change"],["coverImage",""],["class","col-12 p-3",4,"ngIf"],["formControlName","description",1,"p-3","w-100",3,"config"],["appearance","outline",1,"p-3","w-100",2,"display","none",3,"color"],["matInput","","disabled","","autocomplete","email, username",3,"value"],["appearance","outline",1,"p-3","w-100",3,"color"],["matInput","","formControlName","old_password","required","","placeholder","Password Sekarang","autocomplete","current-password",3,"type"],["mat-icon-button","","matSuffix","","type","button",3,"click"],["matInput","","formControlName","new_password","placeholder","Isi Jika Ingin Ubah Password Baru","autocomplete","new-password",3,"type"],[1,"row"],[1,"col"],[1,"col-12","col-md-3","pb-3"],["mat-stroked-button","","routerLink","../",1,"w-100",3,"disabled"],[1,"me-1"],["mat-flat-button","","color","accent","type","submit",1,"w-100",3,"disabled"],[1,"ms-1"],[1,"profile-banner","profile-banner-1","align-items-center"],[1,"profile-banner","profile-banner-2","align-items-center"],[1,"col-12","mb-4"],["mat-raised-button","","color","primary","type","button",1,"w-100",3,"disabled","click"]],template:function(e,i){1&e&&t.YNc(0,jt,83,31,"form",0),2&e&&t.Q6J("ngIf",i.fg)},directives:[d.O5,c._Y,c.JL,c.sg,P.KE,P.hX,v.Yh,K.Hw,P.R9,P.TO,R.lW,Ot.Rr,c.JJ,c.u,F.gM,E.s6,wt.Nt,c.Fj,c.Q7,R.zs,l.yS],pipes:[Lt.$],styles:[".profile-banner[_ngcontent-%COMP%]{height:128px;width:100%;background-size:cover;background-position:center;background-repeat:no-repeat;opacity:.75}.profile-banner-1[_ngcontent-%COMP%]{position:absolute;top:0;left:0}.profile-banner-2[_ngcontent-%COMP%]{position:absolute;top:128px;left:0}.profile-info[_ngcontent-%COMP%]{position:relative;height:256px;z-index:1}@media (min-width: 768px){.profile-height-large[_ngcontent-%COMP%]{height:100px}}"]}),s})(),canActivate:[y.t],data:{title:"User - Ubah Profil",description:"Halaman Pembaharuan Profil Pengguna",keywords:"Ubah Profil",[b.t.decoratorRoles]:[g.yS.ADMIN,g.yS.MODERATOR,g.yS.FANSUBBER,g.yS.USER]}}]}];let $t=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=t.oAB({type:s}),s.\u0275inj=t.cJS({imports:[[d.ez,l.Bz.forChild(zt),w.m,h.$,x.L,c.u5,c.UX,v.Ad,E.UM,m.b,U.F,O.T,A.d]]}),s})()},7567:(B,Z,n)=>{n.d(Z,{Q:()=>w});var d=n(1125),l=n(5e3),c=n(8696),E=n(9808),v=n(7238),b=n(5245);function g(h,x){if(1&h&&l._UZ(0,"h3",8),2&h){const m=l.oxw().$implicit;l.Q6J("innerHTML",m.text,l.oJD)}}function y(h,x){if(1&h&&(l.TgZ(0,"mat-expansion-panel",3)(1,"mat-expansion-panel-header")(2,"mat-panel-title",4)(3,"span",5),l._uU(4),l.qZA()(),l.TgZ(5,"mat-panel-description")(6,"mat-icon",6),l._uU(7),l.qZA()()(),l.YNc(8,g,1,1,"ng-template",7),l.qZA()),2&h){const m=x.$implicit,U=x.first,A=l.oxw(2);l.Q6J("expanded",A.GS.isDesktop&&U),l.xp6(3),l.s9C("matTooltip",m.tooltip),l.Q6J("matTooltipPosition","above"),l.xp6(1),l.hij(" ",m.title," "),l.xp6(3),l.Oqu(m.icon)}}function O(h,x){if(1&h&&(l.TgZ(0,"mat-accordion",1),l.YNc(1,y,9,5,"mat-expansion-panel",2),l.qZA()),2&h){const m=l.oxw();l.xp6(1),l.Q6J("ngForOf",m.panelData)}}let w=(()=>{class h{constructor(m){this.gs=m,this.panelData=[{title:"Title",icon:"warning",text:"Lorem ipsum ...",tooltip:"Info"}]}onResize(m){this.gs.onResize(m,"MATERIAL_EXPANSION_PANEL"),this.gs.isDesktop?this.accordion.openAll():this.accordion.closeAll()}get GS(){return this.gs}ngOnInit(){}}return h.\u0275fac=function(m){return new(m||h)(l.Y36(c.U))},h.\u0275cmp=l.Xpm({type:h,selectors:[["app-material-expansion-panel"]],viewQuery:function(m,U){if(1&m&&l.Gf(d.pp,5),2&m){let A;l.iGM(A=l.CRH())&&(U.accordion=A.first)}},hostBindings:function(m,U){1&m&&l.NdJ("resize",function(I){return U.onResize(I)},!1,l.Jf7)},inputs:{panelData:"panelData"},decls:1,vars:1,consts:[["class","example-headers-align","multi","",4,"ngIf"],["multi","",1,"example-headers-align"],[3,"expanded",4,"ngFor","ngForOf"],[3,"expanded"],[1,"font-weight-bold"],[3,"matTooltip","matTooltipPosition"],[1,"ms-auto"],["matExpansionPanelContent",""],[1,"m-0","text-justify",2,"white-space","pre-line !important",3,"innerHTML"]],template:function(m,U){1&m&&l.YNc(0,O,2,1,"mat-accordion",0),2&m&&l.Q6J("ngIf",U.panelData.length>0)},directives:[E.O5,d.pp,E.sg,d.ib,d.yz,d.yK,v.gM,d.u4,b.Hw,d.HS],styles:[""]}),h})()},6020:(B,Z,n)=>{n.d(Z,{$:()=>E});var d=n(9808),l=n(210),c=n(5e3);let E=(()=>{class v{}return v.\u0275fac=function(g){return new(g||v)},v.\u0275mod=c.oAB({type:v}),v.\u0275inj=c.cJS({imports:[[d.ez,l.m]]}),v})()}}]);
\ No newline at end of file
diff --git a/dist/fansubid/browser/794.f3db1bf0aae161fa.js b/dist/fansubid/browser/794.f3db1bf0aae161fa.js
deleted file mode 100644
index 9e974efa5..000000000
--- a/dist/fansubid/browser/794.f3db1bf0aae161fa.js
+++ /dev/null
@@ -1 +0,0 @@
-"use strict";(self.webpackChunkfansubid=self.webpackChunkfansubid||[]).push([[794],{2794:(B,Z,n)=>{n.r(Z),n.d(Z,{UserModule:()=>zt});var d=n(9808),l=n(8406),c=n(3075),E=n(9345),v=n(1385),b=n(6271),g=n(4249),y=n(2777),O=n(7355),w=n(210),h=n(6020),U=n(6436),m=n(4167),x=n(8613),A=n(2438),I=n(5934),t=n(5e3),L=n(4137),k=n(8696),M=n(3e3),J=n(6382),q=n(8745),K=n(8058),Y=n(8381),N=n(5245),F=n(7238),S=n(4623),R=n(7423),Q=n(508),G=n(7567),H=n(325),j=n(8757);function V(s,r){if(1&s&&(t.TgZ(0,"mat-icon",26),t._uU(1,"handyman"),t.qZA()),2&s){const e=t.oxw(2);t.s9C("matTooltip",e.userData.role)}}function z(s,r){if(1&s&&(t.TgZ(0,"mat-icon",26),t._uU(1,"security"),t.qZA()),2&s){const e=t.oxw(2);t.s9C("matTooltip",e.userData.role)}}function $(s,r){if(1&s&&(t.TgZ(0,"mat-icon",26),t._uU(1,"rate_review"),t.qZA()),2&s){const e=t.oxw(2);t.s9C("matTooltip",e.userData.role)}}function W(s,r){1&s&&(t.TgZ(0,"mat-icon",27),t._uU(1,"verified"),t.qZA())}function X(s,r){if(1&s&&(t.TgZ(0,"mat-icon",26),t._uU(1,"lock"),t.qZA()),2&s){const e=t.oxw(2);t.MGl("matTooltip","Banned :: ",e.userBanned.reason,"")}}function tt(s,r){if(1&s&&(t.TgZ(0,"mat-icon",26),t._uU(1,"military_tech"),t.qZA()),2&s){const e=t.oxw(2);t.MGl("matTooltip","",e.accountAge," Years of Service")}}function et(s,r){1&s&&(t.TgZ(0,"mat-icon",28),t._uU(1,"volunteer_activism"),t.qZA())}function it(s,r){if(1&s&&(t.TgZ(0,"mat-list-option",37),t._UZ(1,"img",38),t.TgZ(2,"a",39)(3,"span",40),t._uU(4),t.qZA(),t.TgZ(5,"span",41),t._uU(6),t.qZA()()()),2&s){const e=r.$implicit;t.MGl("routerLink","/fansub/",e.fansub_.slug,""),t.xp6(1),t.s9C("src",e.fansub_.image_url,t.LSH),t.xp6(3),t.hij(" ",e.keterangan," "),t.xp6(2),t.Oqu(e.fansub_.slug)}}function st(s,r){if(1&s&&(t.TgZ(0,"div",6)(1,"div",29)(2,"div",30)(3,"h2",31)(4,"b",32),t._uU(5,"Group Fansub"),t.qZA()()(),t.TgZ(6,"div",33)(7,"div",34)(8,"mat-selection-list",35),t.YNc(9,it,7,4,"mat-list-option",36),t.qZA()()()()()),2&s){const e=t.oxw(2);t.xp6(8),t.Q6J("multiple",!1),t.xp6(1),t.Q6J("ngForOf",e.groupFansub)}}function at(s,r){if(1&s&&(t.TgZ(0,"button",42)(1,"mat-icon",20),t._uU(2,"accessibility_new"),t.qZA(),t._uU(3),t.qZA()),2&s){const e=t.oxw(2);t.xp6(3),t.hij(" ",e.userData.id," ")}}function nt(s,r){if(1&s&&(t.TgZ(0,"button",43)(1,"mat-icon",20),t._uU(2,"access_time"),t.qZA(),t._uU(3),t.ALo(4,"date"),t.qZA()),2&s){const e=t.oxw(2);t.xp6(3),t.hij(" ",t.xi3(4,1,e.userData.created_at,"d/M/yyyy, hh:mm:ss a z")," ")}}function ot(s,r){if(1&s&&(t.TgZ(0,"div",29),t._UZ(1,"app-material-expansion-panel",44),t.qZA()),2&s){const e=t.oxw(2);t.xp6(1),t.Q6J("panelData",e.panelData)}}function rt(s,r){1&s&&(t.TgZ(0,"div",29)(1,"div",6),t._UZ(2,"app-report"),t.qZA()())}function lt(s,r){if(1&s){const e=t.EpF();t.TgZ(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"div",5)(5,"div",6),t._UZ(6,"img",7),t.qZA(),t.TgZ(7,"div",8),t.YNc(8,V,2,1,"mat-icon",9),t.YNc(9,z,2,1,"mat-icon",9),t.YNc(10,$,2,1,"mat-icon",9),t.YNc(11,W,2,0,"mat-icon",10),t.YNc(12,X,2,1,"mat-icon",9),t.YNc(13,tt,2,1,"mat-icon",9),t.YNc(14,et,2,0,"mat-icon",11),t.qZA(),t.YNc(15,st,10,2,"div",12),t.qZA()(),t.TgZ(16,"div",13)(17,"div",14)(18,"h1",15)(19,"b"),t._uU(20),t.qZA()()(),t.TgZ(21,"div",16),t.YNc(22,at,4,1,"button",17),t.YNc(23,nt,5,4,"button",18),t.TgZ(24,"button",19)(25,"mat-icon",20),t._uU(26,"email"),t.qZA(),t._uU(27),t.qZA()(),t.YNc(28,ot,2,1,"div",21),t.YNc(29,rt,3,0,"div",21),t.qZA()(),t.TgZ(30,"div",22)(31,"div",6)(32,"app-material-tab",23),t.NdJ("tableRowClicked",function(a){return t.CHM(e),t.oxw().openBerkas(a)})("paginatorClicked",function(a){return t.CHM(e),t.oxw().onPaginatorClicked(a)})("serverSideFilter",function(a){return t.CHM(e),t.oxw().onServerSideFilter(a)})("serverSideOrder",function(a){return t.CHM(e),t.oxw().onServerSideOrder(a)}),t.qZA()()()(),t._UZ(33,"div",24)(34,"div",25),t.qZA()}if(2&s){const e=t.oxw();t.xp6(6),t.s9C("src",e.userData.image_url,t.LSH),t.xp6(2),t.Q6J("ngIf",e.userData.role===e.ADMIN),t.xp6(1),t.Q6J("ngIf",e.userData.role===e.MODERATOR),t.xp6(1),t.Q6J("ngIf",e.userData.role===e.FANSUBBER),t.xp6(1),t.Q6J("ngIf",e.userData.verified),t.xp6(1),t.Q6J("ngIf",e.userBanned),t.xp6(1),t.Q6J("ngIf",e.accountAge>0),t.xp6(1),t.Q6J("ngIf",e.count>0),t.xp6(1),t.Q6J("ngIf",e.groupFansub.length>0),t.xp6(5),t.Oqu(e.userData.kartu_tanda_penduduk_.nama),t.xp6(2),t.Q6J("ngIf",e.userData.id),t.xp6(1),t.Q6J("ngIf",e.userData.created_at),t.xp6(4),t.AsE(" ",e.userData.username,"@",e.ENV.domain," "),t.xp6(1),t.Q6J("ngIf",e.panelData.length>0),t.xp6(1),t.Q6J("ngIf",null==e.SS.mySocket?null:e.SS.mySocket.id),t.xp6(3),t.Q6J("tabData",e.tabData)("count",e.count)("serverSide",!0),t.xp6(1),t.Udp("background-image","url("+e.userData.profile_.cover_url+")")}}let ut=(()=>{class s{constructor(e,i,a,o,u,p,_,f,T){this.router=e,this.activatedRoute=i,this.as=a,this.gs=o,this.bs=u,this.fs=p,this.pi=_,this.us=f,this.ss=T,this.username="",this.userData=null,this.userBanned=null,this.groupFansub=[],this.berkasData=[],this.panelData=[],this.tabData=[],this.count=0,this.page=1,this.row=10,this.q="",this.sort="",this.order="",this.subsUser=null,this.subsBerkas=null,this.subsBanned=null,this.subsParam=null,this.subsGroupGet=null,this.gs.bannerImg=null,this.gs.sizeContain=!1,this.gs.bgRepeat=!1}get SS(){return this.ss}ngOnDestroy(){var e,i,a,o,u;null===(e=this.subsUser)||void 0===e||e.unsubscribe(),null===(i=this.subsBerkas)||void 0===i||i.unsubscribe(),null===(a=this.subsBanned)||void 0===a||a.unsubscribe(),null===(o=this.subsParam)||void 0===o||o.unsubscribe(),null===(u=this.subsGroupGet)||void 0===u||u.unsubscribe()}get ADMIN(){return g.yS.ADMIN}get MODERATOR(){return g.yS.MODERATOR}get FANSUBBER(){return g.yS.FANSUBBER}get accountAge(){return Math.abs(new Date((new Date).getTime()-new Date(this.userData.created_at).getTime()).getUTCFullYear()-1970)}get ENV(){return I.N}ngOnInit(){this.subsParam=this.activatedRoute.params.subscribe({next:e=>{this.username=e.username,this.bs.busy(),this.subsUser=this.us.getUserData(this.username).subscribe({next:i=>{var a,o,u,p,_,f;this.gs.log("[USER_DETAIL_SUCCESS]",i),this.userData=i.result,this.pi.updatePageMetaData(`${this.userData.kartu_tanda_penduduk_.nama}`,`${this.userData.profile_.description}`,`${this.userData.username}`,this.userData.image_url,this.userData.username),this.bs.idle(),this.gs.isBrowser&&(this.panelData=[],this.panelData.push({title:"Tentang Saya",icon:"info",text:this.userData.profile_.description}),this.fs.initializeFab("edit",null,"Ubah Profil",`/user/${this.username}/edit`,!1),this.checkBanned(),this.getUserGroup(),this.tabData=[],(!this.userData.private||(null===(o=null===(a=this.as.currentUserSubject)||void 0===a?void 0:a.value)||void 0===o?void 0:o.username)===this.username||(null===(p=null===(u=this.as.currentUserSubject)||void 0===u?void 0:u.value)||void 0===p?void 0:p.role)===g.yS.ADMIN||(null===(f=null===(_=this.as.currentUserSubject)||void 0===_?void 0:_.value)||void 0===f?void 0:f.role)===g.yS.MODERATOR)&&(this.tabData.push({name:"Berkas",icon:"file_copy",type:"table",data:{column:["Proyek","Nama Berkas","Tanggal","Kunjungan","Pemilik"],row:[]}}),this.getUserBerkas()))},error:i=>{this.gs.log("[USER_DETAIL_ERROR]",i,"error"),this.bs.idle(),this.router.navigate(["/error"],{queryParams:{returnUrl:"/"}})}})}})}checkBanned(){this.bs.busy(),this.subsBanned=this.us.checkBanned(this.userData.username).subscribe({next:e=>{this.gs.log("[USER_CHECK_BANNED_SUCCESS]",e),Object.keys(e.results[this.userData.username]).length>0&&(this.userBanned=e.results[this.userData.username]),this.bs.idle()},error:e=>{this.gs.log("[USER_CHECK_BANNED_ERROR]",e,"error"),this.bs.idle()}})}getUserBerkas(){this.bs.busy(),this.subsBerkas=this.us.getUserBerkas(this.username,this.q,this.page,this.row,this.sort,this.order).subscribe({next:e=>{this.gs.log("[USER_BERKAS_LIST_SUCCESS]",e),this.count=e.count,this.berkasData=[];for(const i of e.results)this.berkasData.push({id:i.id,foto:i.user_.image_url,Proyek:i.project_type_.name,Tanggal:i.created_at,Kunjungan:i.view_count,Pemilik:i.user_.username,"Nama Berkas":i.name});this.tabData[0].data.row=this.berkasData,this.bs.idle()},error:e=>{this.gs.log("[USER_BERKAS_LIST_ERROR]",e,"error"),this.bs.idle()}})}openBerkas(e){this.gs.log("[USER_BERKAS_LIST_CLICK_BERKAS]",e),this.router.navigateByUrl(`/berkas/${e.id}`)}onPaginatorClicked(e){this.gs.log("[USER_BERKAS_LIST_CLICK_PAGINATOR]",e),this.page=e.pageIndex+1,this.row=e.pageSize,this.getUserBerkas()}onServerSideFilter(e){this.gs.log("[USER_BERKAS_LIST_ENTER_FILTER]",e),this.q=e,this.getUserBerkas()}onServerSideOrder(e){this.gs.log("[USER_BERKAS_CLICK_ORDER]",e),this.q=e.q,this.sort=e.active,this.order=e.direction,this.getUserBerkas()}getUserGroup(){this.bs.busy(),this.subsGroupGet=this.us.getUserGroup(this.username).subscribe({next:e=>{this.gs.log("[USER_DETAIL_GROUP_LIST_SUCCESS]",e),this.groupFansub=e.results,this.bs.idle()},error:e=>{this.gs.log("[USER_DETAIL_GROUP_LIST_ERROR]",e,"error"),this.bs.idle()}})}}return s.\u0275fac=function(e){return new(e||s)(t.Y36(l.F0),t.Y36(l.gz),t.Y36(L.e),t.Y36(k.U),t.Y36(M.z),t.Y36(J.r),t.Y36(q.Z),t.Y36(K.K),t.Y36(Y.R))},s.\u0275cmp=t.Xpm({type:s,selectors:[["app-user-detail"]],decls:1,vars:1,consts:[["class","container",4,"ngIf"],[1,"container"],[1,"profile-info","align-items-center"],[1,"media","row","py-3","px-2"],[1,"col-md-4","col-xl-3","px-3"],[1,"row","sticky-top","pt-3"],[1,"col-12"],[1,"w-100",3,"src"],[1,"col-12","my-3"],["class","mx-1","style","cursor: pointer;",3,"matTooltip",4,"ngIf"],["class","mx-1","matTooltip","Terverifikasi","style","cursor: pointer;",4,"ngIf"],["class","mx-1","matTooltip","Sharing is Caring","style","cursor: pointer;",4,"ngIf"],["class","col-12",4,"ngIf"],[1,"col-md-8","col-xl-9","pt-3"],[1,"row","py-3","px-0","profile-height-large"],[1,"m-0","mt-auto"],[1,"row","p-3"],["mat-stroked-button","","matLine","","class","col-12 col-md-4 text-truncate","matTooltip","Nomor ID Pengguna","color","accent","style","overflow: hidden;",4,"ngIf"],["mat-stroked-button","","matLine","","class","col-12 col-md-8 text-truncate","matTooltip","Tanggal Bergabung","color","accent","style","overflow: hidden;",4,"ngIf"],["mat-stroked-button","","matLine","","matTooltip","Alamat Surel","color","accent",1,"col","text-truncate",2,"overflow","hidden"],[1,"me-1"],["class","row py-3",4,"ngIf"],[1,"row"],[3,"tabData","count","serverSide","tableRowClicked","paginatorClicked","serverSideFilter","serverSideOrder"],[1,"profile-banner","profile-banner-1","align-items-center"],[1,"profile-banner","profile-banner-2","align-items-center"],[1,"mx-1",2,"cursor","pointer",3,"matTooltip"],["matTooltip","Terverifikasi",1,"mx-1",2,"cursor","pointer"],["matTooltip","Sharing is Caring",1,"mx-1",2,"cursor","pointer"],[1,"row","py-3"],[1,"col-12","pt-3","sticky-top","bg-bifeldy"],[1,"border-bottom-dotted"],[1,"text-bifeldy"],[1,"col-12",2,"max-height","288px"],[1,"h-100",2,"overflow-y","auto"],[3,"multiple"],["class","h-100",3,"routerLink",4,"ngFor","ngForOf"],[1,"h-100",3,"routerLink"],["matListAvatar","",1,"ms-3",3,"src"],[1,"text-truncate","text-decoration-none"],[1,"bg-bifeldy","px-2","me-1","text-warning",2,"position","absolute","right","0"],[1,"text-success"],["mat-stroked-button","","matLine","","matTooltip","Nomor ID Pengguna","color","accent",1,"col-12","col-md-4","text-truncate",2,"overflow","hidden"],["mat-stroked-button","","matLine","","matTooltip","Tanggal Bergabung","color","accent",1,"col-12","col-md-8","text-truncate",2,"overflow","hidden"],[3,"panelData"]],template:function(e,i){1&e&&t.YNc(0,lt,35,21,"div",0),2&e&&t.Q6J("ngIf",i.userData)},directives:[d.O5,N.Hw,F.gM,S.Ub,d.sg,S.vS,l.rH,S.eA,R.lW,Q.X2,G.Q,H.Y,j.H],pipes:[d.uU],styles:[".profile-banner[_ngcontent-%COMP%]{height:128px;width:100%;background-size:cover;background-position:center;background-repeat:no-repeat;opacity:.75}.profile-banner-1[_ngcontent-%COMP%]{position:absolute;top:0;left:0}.profile-banner-2[_ngcontent-%COMP%]{position:absolute;top:128px;left:0}.profile-info[_ngcontent-%COMP%]{position:relative;height:256px;z-index:1}@media (min-width: 768px){.profile-height-large[_ngcontent-%COMP%]{height:100px}}"]}),s})();var ct=n(9287),pt=n(7261),mt=n(7845),dt=n(6781),gt=n(9731);let _t=(()=>{class s{constructor(e,i){this.api=e,this.gs=i}getUserApiKey(e){return this.api.getData(`/api-key?username=${e}`)}createApiKey(e){return this.api.postData("/api-key",e)}editApiKey(e,i){return this.api.putData(`/api-key/${e}`,i)}revokeApiKey(e){return this.api.deleteData(`/api-key/${e}`)}}return s.\u0275fac=function(e){return new(e||s)(t.LFG(gt.s),t.LFG(k.U))},s.\u0275prov=t.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();var ht=n(8616),bt=n(192),ft=n(6766);function vt(s,r){if(1&s){const e=t.EpF();t.TgZ(0,"mat-list-option",25)(1,"mat-icon",26),t._uU(2,"add_comment"),t.qZA(),t.TgZ(3,"a",27),t.NdJ("click",function(){const o=t.CHM(e).$implicit;return t.oxw(2).openComment(o)}),t.TgZ(4,"span",28),t._uU(5),t.ALo(6,"dateAgo"),t.qZA(),t.TgZ(7,"span",29),t._uU(8),t.qZA()()()}if(2&s){const e=r.$implicit;t.xp6(5),t.Oqu(t.lcZ(6,2,e.created_at)),t.xp6(3),t.Oqu(e.comment)}}function Ut(s,r){if(1&s&&(t.TgZ(0,"div",11)(1,"mat-selection-list",23),t.YNc(2,vt,9,4,"mat-list-option",24),t.ALo(3,"slice"),t.qZA()()),2&s){const e=t.oxw();t.xp6(1),t.Q6J("multiple",!1),t.xp6(1),t.Q6J("ngForOf",t.Dn7(3,2,e.feedKomentarData,0,5))}}function xt(s,r){if(1&s&&(t.TgZ(0,"mat-list-option",25)(1,"mat-icon",26),t._uU(2,"volunteer_activism"),t.qZA(),t.TgZ(3,"a",30)(4,"span",28),t._uU(5),t.ALo(6,"dateAgo"),t.qZA(),t.TgZ(7,"span",31),t._uU(8),t.qZA(),t.TgZ(9,"span",32),t._uU(10),t.qZA(),t.TgZ(11,"span",29),t._uU(12),t.qZA()()()),2&s){const e=r.$implicit;t.xp6(3),t.Q6J("routerLink",e.berkas_?"/berkas/"+(null==e.berkas_?null:e.berkas_.id):e.fansub_?"/fansub/"+(null==e.fansub_?null:e.fansub_.slug):e.user_?"/user/"+(null==e.user_?null:e.user_.username):e.news_?"/news/"+(null==e.news_?null:e.news_.id):""),t.xp6(2),t.Oqu(t.lcZ(6,5,e.created_at)),t.xp6(3),t.Oqu(e.type),t.xp6(2),t.Oqu(e.berkas_?"Berkas":e.fansub_?"Fansub":e.user_?"User":e.news_?"News":""),t.xp6(2),t.Oqu((null==e.berkas_?null:e.berkas_.name)||(null==e.fansub_?null:e.fansub_.name)||(null==e.user_||null==e.user_.kartu_tanda_penduduk_?null:e.user_.kartu_tanda_penduduk_.nama)||(null==e.news_?null:e.news_.title))}}function Tt(s,r){if(1&s&&(t.TgZ(0,"div",11)(1,"mat-selection-list",23),t.YNc(2,xt,13,7,"mat-list-option",24),t.ALo(3,"slice"),t.qZA()()),2&s){const e=t.oxw();t.xp6(1),t.Q6J("multiple",!1),t.xp6(1),t.Q6J("ngForOf",t.Dn7(3,2,e.feedLikeDislikeData,0,5))}}function Et(s,r){if(1&s&&(t.TgZ(0,"mat-list-option",25)(1,"mat-icon",26),t._uU(2,"directions_run"),t.qZA(),t.TgZ(3,"a",30)(4,"span",28),t._uU(5),t.ALo(6,"dateAgo"),t.qZA(),t.TgZ(7,"span",32),t._uU(8),t.qZA(),t.TgZ(9,"span",29),t._uU(10),t.qZA()()()),2&s){const e=r.$implicit;t.xp6(3),t.Q6J("routerLink",e.berkas_?"/berkas/"+(null==e.berkas_?null:e.berkas_.id):e.fansub_?"/fansub/"+(null==e.fansub_?null:e.fansub_.slug):e.user_?"/user/"+(null==e.user_?null:e.user_.username):e.news_?"/news/"+(null==e.news_?null:e.news_.id):""),t.xp6(2),t.Oqu(t.lcZ(6,4,e.created_at)),t.xp6(3),t.Oqu(e.berkas_?"Berkas":e.fansub_?"Fansub":e.user_?"User":e.news_?"News":""),t.xp6(2),t.Oqu((null==e.berkas_?null:e.berkas_.name)||(null==e.fansub_?null:e.fansub_.name)||(null==e.user_||null==e.user_.kartu_tanda_penduduk_?null:e.user_.kartu_tanda_penduduk_.nama)||(null==e.news_?null:e.news_.title))}}function At(s,r){if(1&s&&(t.TgZ(0,"div",11)(1,"mat-selection-list",23),t.YNc(2,Et,11,6,"mat-list-option",24),t.ALo(3,"slice"),t.qZA()()),2&s){const e=t.oxw();t.xp6(1),t.Q6J("multiple",!1),t.xp6(1),t.Q6J("ngForOf",t.Dn7(3,2,e.feedVisitData,0,5))}}function St(s,r){if(1&s){const e=t.EpF();t.TgZ(0,"div",33),t.NdJ("click",function(){const o=t.CHM(e).$implicit,u=t.oxw();return u.copyApiKey(o),u.editApiKey(o)}),t.TgZ(1,"p",34),t._uU(2," Nama :: "),t.TgZ(3,"span",35),t._uU(4),t.qZA()(),t.TgZ(5,"p",36),t._uU(6," Origin :: "),t.TgZ(7,"span",35),t._uU(8),t.qZA()(),t.TgZ(9,"p",37),t._uU(10," Key :: "),t.TgZ(11,"span",35),t._uU(12),t.qZA()(),t.TgZ(13,"a",17),t.NdJ("click",function(a){const u=t.CHM(e).$implicit;return t.oxw().revokeApiKey(u),a.stopPropagation()}),t.TgZ(14,"mat-icon",15),t._uU(15,"delete_sweep"),t.qZA(),t._uU(16," Hapus Akses "),t.qZA()()}if(2&s){const e=r.$implicit;t.xp6(4),t.hij(" ",e.name," "),t.xp6(4),t.hij(" ",e.ip_domain," "),t.xp6(4),t.hij(" ",e.api_key," ")}}function Ct(s,r){if(1&s){const e=t.EpF();t.TgZ(0,"mat-list-option",41),t.NdJ("click",function(){const o=t.CHM(e).$implicit;return t.oxw(2).editSubDomain(o.fansub_)}),t._UZ(1,"img",42),t.TgZ(2,"a",43)(3,"span",44),t._uU(4),t.ALo(5,"date"),t.qZA(),t.TgZ(6,"span",35),t._uU(7),t.qZA()()()}if(2&s){const e=r.$implicit;t.xp6(1),t.s9C("src",e.fansub_.image_url,t.LSH),t.xp6(3),t.hij(" ",t.xi3(5,3,e.updated_at,"d-MM-y")," "),t.xp6(3),t.Oqu(e.fansub_.slug)}}function Dt(s,r){if(1&s&&(t.TgZ(0,"div",38)(1,"div",39)(2,"mat-selection-list",23),t.YNc(3,Ct,8,6,"mat-list-option",40),t.qZA()()()),2&s){const e=t.oxw();t.xp6(2),t.Q6J("multiple",!1),t.xp6(1),t.Q6J("ngForOf",e.groupFansub)}}function Zt(s,r){1&s&&t._UZ(0,"app-no-data",45)}let yt=(()=>{class s{constructor(e,i,a,o,u,p,_,f,T,C,D){this.clipboard=e,this.router=i,this.snackBar=a,this.as=o,this.ds=u,this.gs=p,this.fs=_,this.bs=f,this.us=T,this.fansub=C,this.aks=D,this.feedKomentarData=[],this.feedLikeDislikeData=[],this.feedVisitData=[],this.subsFeedKomentar=null,this.subsFeedLikeDislike=null,this.subsFeedVisit=null,this.subsGetApiKey=null,this.subsDialog=null,this.subsCreateApiKey=null,this.subsEditApiKey=null,this.subsRevokeApiKey=null,this.subsGroupGet=null,this.subsUpdateSubDomain=null,this.subsGetSubDomain=null,this.apiKey=[],this.groupFansub=[],this.gs.bannerImg=null,this.gs.sizeContain=!1,this.gs.bgRepeat=!1}get AS(){return this.as}get ENV(){return I.N}ngOnInit(){var e,i;this.gs.isBrowser&&(this.getUserFeedComment(),this.getUserFeedLikeDislike(),this.getUserFeedVisit(),this.getUserApiKey(),this.getUserGroup(),this.fs.initializeFab("arrow_forward",null,"Menuju Halaman Profile",`/user/${null===(i=null===(e=this.as.currentUserSubject)||void 0===e?void 0:e.value)||void 0===i?void 0:i.username}`,!1))}ngOnDestroy(){var e,i,a,o,u,p,_,f,T,C,D;null===(e=this.subsFeedKomentar)||void 0===e||e.unsubscribe(),null===(i=this.subsFeedLikeDislike)||void 0===i||i.unsubscribe(),null===(a=this.subsFeedVisit)||void 0===a||a.unsubscribe(),null===(o=this.subsGetApiKey)||void 0===o||o.unsubscribe(),null===(u=this.subsDialog)||void 0===u||u.unsubscribe(),null===(p=this.subsCreateApiKey)||void 0===p||p.unsubscribe(),null===(_=this.subsEditApiKey)||void 0===_||_.unsubscribe(),null===(f=this.subsRevokeApiKey)||void 0===f||f.unsubscribe(),null===(T=this.subsGroupGet)||void 0===T||T.unsubscribe(),null===(C=this.subsUpdateSubDomain)||void 0===C||C.unsubscribe(),null===(D=this.subsGetSubDomain)||void 0===D||D.unsubscribe()}getUserFeedComment(){var e,i;this.bs.busy(),this.subsFeedKomentar=this.us.getUserFeedComment(null===(i=null===(e=this.as.currentUserSubject)||void 0===e?void 0:e.value)||void 0===i?void 0:i.username,"",1,5).subscribe({next:a=>{this.gs.log("[USER_FEED_COMMENT_SUCCESS]",a),this.feedKomentarData=a.results,this.bs.idle()},error:a=>{this.gs.log("[USER_FEED_COMMENT_ERROR]",a,"error"),this.bs.idle()}})}getUserFeedLikeDislike(){var e,i;this.bs.busy(),this.subsFeedLikeDislike=this.us.getUserFeedLikeDislike(null===(i=null===(e=this.as.currentUserSubject)||void 0===e?void 0:e.value)||void 0===i?void 0:i.username,"",1,5).subscribe({next:a=>{this.gs.log("[USER_FEED_LIKEDISLIKE_SUCCESS]",a),this.feedLikeDislikeData=a.results,this.bs.idle()},error:a=>{this.gs.log("[USER_FEED_LIKEDISLIKE_ERROR]",a,"error"),this.bs.idle()}})}getUserFeedVisit(){var e,i;this.bs.busy(),this.subsFeedVisit=this.us.getUserFeedVisit(null===(i=null===(e=this.as.currentUserSubject)||void 0===e?void 0:e.value)||void 0===i?void 0:i.username,"",1,5).subscribe({next:a=>{this.gs.log("[USER_FEED_VISIT_SUCCESS]",a),this.feedVisitData=a.results,this.bs.idle()},error:a=>{this.gs.log("[USER_FEED_VISIT_ERROR]",a,"error"),this.bs.idle()}})}getUserApiKey(){var e,i;this.bs.busy(),this.subsGetApiKey=this.aks.getUserApiKey(null===(i=null===(e=this.as.currentUserSubject)||void 0===e?void 0:e.value)||void 0===i?void 0:i.username).subscribe({next:a=>{var o,u;this.gs.log("[USER_FEED_VISIT_SUCCESS]",a),this.apiKey=a.results[null===(u=null===(o=this.as.currentUserSubject)||void 0===o?void 0:o.value)||void 0===u?void 0:u.username],this.bs.idle()},error:a=>{this.gs.log("[USER_FEED_VISIT_ERROR]",a,"error"),this.bs.idle()}})}copyApiKey(e){this.clipboard.copy(e.api_key)&&this.snackBar.open("API Key :: Telah Di Salin Pada Clipboard","Ok")}generateNewApiKey(){var e,i;this.subsDialog=this.ds.openInputDialog({data:{title:"Tambah API Key Baru",input:{name:{inputLabel:"Nama / Deskripsi",inputPlaceholder:`${null===(i=null===(e=this.as.currentUserSubject)||void 0===e?void 0:e.value)||void 0===i?void 0:i.username}_${(new Date).getTime()}`,inputValue:null,inputRequired:!0},ip_domain:{inputLabel:"Origin Tanpa http://",inputPlaceholder:"example.com; 1.1.1.1; *",inputValue:null,inputRequired:!0}},confirmText:"OK",cancelText:"Batal",infoText:"Gunakan * Saja Untuk Perbolehkan Semua Dan Titik Koma ; Untuk Lebih Dari Satu"}}).afterClosed().subscribe({next:a=>{this.gs.log("[INPUT_DIALOG_CLOSED]",a),a&&(this.bs.busy(),this.subsCreateApiKey=this.aks.createApiKey({name:a.name,ip_domain:a.ip_domain}).subscribe({next:o=>{this.gs.log("[USER_CREATE_APIKEY_SUCCESS]",o),this.bs.idle(),this.getUserApiKey()},error:o=>{this.gs.log("[USER_CREATE_APIKEY_ERROR]",o,"error"),this.bs.idle(),this.getUserApiKey()}})),this.subsDialog.unsubscribe()}})}editApiKey(e){this.subsDialog=this.ds.openInputDialog({data:{title:"Ubah API Key",input:{name:{inputLabel:"Nama / Deskripsi",inputPlaceholder:e.name,inputValue:e.name,inputRequired:!0},ip_domain:{inputLabel:"Origin Tanpa http://",inputPlaceholder:e.ip_domain,inputValue:e.ip_domain,inputRequired:!0}},confirmText:"OK",cancelText:"Batal",infoText:"Gunakan * Saja Untuk Perbolehkan Semua Dan Titik Koma ; Untuk Lebih Dari Satu"}}).afterClosed().subscribe({next:i=>{this.gs.log("[INPUT_DIALOG_CLOSED]",i),i&&(this.bs.busy(),this.subsEditApiKey=this.aks.editApiKey(e.id,{name:i.name,ip_domain:i.ip_domain}).subscribe({next:a=>{this.gs.log("[USER_EDIT_APIKEY_SUCCESS]",a),this.bs.idle(),this.getUserApiKey()},error:a=>{this.gs.log("[USER_EDIT_APIKEY_ERROR]",a,"error"),this.bs.idle(),this.getUserApiKey()}})),this.subsDialog.unsubscribe()}})}revokeApiKey(e){this.bs.busy(),this.subsRevokeApiKey=this.aks.revokeApiKey(e.id).subscribe({next:i=>{this.gs.log("[USER_REVOKE_APIKEY_SUCCESS]",i),this.bs.idle(),this.getUserApiKey()},error:i=>{this.gs.log("[USER_REVOKE_APIKEY_ERROR]",i,"error"),this.bs.idle(),this.getUserApiKey()}})}getUserGroup(){var e,i;this.bs.busy(),this.subsGroupGet=this.us.getUserGroup(null===(i=null===(e=this.as.currentUserSubject)||void 0===e?void 0:e.value)||void 0===i?void 0:i.username).subscribe({next:a=>{this.gs.log("[USER_GROUP_LIST_SUCCESS]",a),this.groupFansub=a.results,this.bs.idle()},error:a=>{this.gs.log("[USER_GROUP_LIST_ERROR]",a,"error"),this.bs.idle()}})}editSubDomain(e){this.bs.busy(),this.subsGetSubDomain=this.fansub.getSubDomain(e.slug).subscribe({next:i=>{var a,o;this.gs.log("[USER_FANSUB_SUBDOMAIN_SUCCESS]",i),this.bs.idle();const u=i.result;this.subsDialog=this.ds.openInputDialog({data:{title:`Ubah CNAME / A Record IP v4 v6 :: '${e.slug}'`,input:{server_target:{inputLabel:"Server Target",inputPlaceholder:"ghs.google.com",inputValue:u.dns_id.content,inputRequired:!0},verification_name:{inputLabel:"Tambahan Khusus Blogger :: Name",inputPlaceholder:"blablabla-name",inputValue:null===(a=u.dns_id_alt)||void 0===a?void 0:a.name,inputRequired:!1},verification_target:{inputLabel:"Tambahan Khusus Blogger :: Target",inputPlaceholder:"blablabla-target.dv.googlehosted.com",inputValue:null===(o=u.dns_id_alt)||void 0===o?void 0:o.content,inputRequired:!1}},confirmText:"OK",cancelText:"Batal",infoText:"Abaikan 2 Input Terakhir Jika Bukan Blogger"}}).afterClosed().subscribe({next:p=>{this.gs.log("[INPUT_DIALOG_CLOSED]",p),p&&(this.bs.busy(),this.subsUpdateSubDomain=this.fansub.updateSubDomain(e.slug,{server_target:p.server_target,verification_name:p.verification_name,verification_target:p.verification_target}).subscribe({next:_=>{this.gs.log("[FANSUB_UPDATE_SUBDOMAIN_SUCCESS]",_),this.bs.idle(),this.getUserGroup()},error:_=>{this.gs.log("[FANSUB_UPDATE_SUBDOMAIN_ERROR]",_,"error"),this.bs.idle(),this.getUserGroup()}})),this.subsDialog.unsubscribe()}})},error:i=>{this.gs.log("[USER_FANSUB_SUBDOMAIN_ERROR]",i,"error"),this.bs.idle(),this.subsDialog=this.ds.openInfoDialog({data:{title:`Sepertinya Sub-Domain '${e.slug}' Belum Di Klaim`,htmlMessage:"Silahkan ambil sub-domain pada halaman fansub, ingin ke sana sekarang?",confirmText:"Ya",cancelText:"Tidak"},disableClose:!1}).afterClosed().subscribe({next:a=>{this.gs.log("[INFO_DIALOG_CLOSED]",a),!0===a?this.router.navigateByUrl(`/fansub/${e.slug}`):this.getUserGroup(),this.subsDialog.unsubscribe()}})}})}openComment(e){this.router.navigate([e.path],{queryParams:{comment:e.id}})}}return s.\u0275fac=function(e){return new(e||s)(t.Y36(ct.TU),t.Y36(l.F0),t.Y36(pt.ux),t.Y36(L.e),t.Y36(mt.x),t.Y36(k.U),t.Y36(J.r),t.Y36(M.z),t.Y36(K.K),t.Y36(dt.T),t.Y36(_t))},s.\u0275cmp=t.Xpm({type:s,selectors:[["app-user-list"]],decls:64,vars:12,consts:[[1,"container"],[1,"row","pb-3","px-0"],[1,"col-lg-8","col-xl-9"],[1,"row"],[1,"col-12","sticky-top","bg-bifeldy"],[1,"pt-3","border-bottom-dotted"],[1,"float-end","text-warning",2,"font-size","small","cursor","pointer",3,"click"],[1,"text-bifeldy"],["class","col-12",4,"ngIf","ngIfElse"],[1,"col-lg-4","col-xl-3"],[1,"row","sticky-top"],[1,"col-12"],["matTooltip","Khusus Pengguna Terverifikasi",1,"text-bifeldy"],[1,"col-12","mb-2"],["mat-button","","color","accent","matTooltip","Buka Kotak Pesan","routerLink","/mailbox",1,"w-100"],[1,"me-1"],[1,"text-bifeldy",3,"matTooltip"],["mat-button","","color","accent",1,"w-100",3,"click"],["class","my-2 gradient-border",3,"click",4,"ngFor","ngForOf"],[1,"row","mt-4"],[1,"border-bottom-dotted"],["class","col-12 mb-2","style","max-height: 288px;",4,"ngIf","ngIfElse"],["noData",""],[3,"multiple"],["class","h-100",4,"ngFor","ngForOf"],[1,"h-100"],["mat-list-icon","",1,"ps-3"],[1,"text-truncate","text-decoration-none",3,"click"],[1,"bg-bifeldy","px-2","me-1","text-danger",2,"position","absolute","right","0"],[1,"text-warning"],[1,"text-truncate","text-decoration-none",3,"routerLink"],[1,"me-3","text-success"],[1,"me-3","text-info"],[1,"my-2","gradient-border",3,"click"],[1,"ps-2","pe-2","pt-2","text-truncate","my-0"],[1,"text-success"],[1,"ps-2","pe-2","pt-0","text-truncate","my-0"],[1,"ps-2","pe-2","pb-2","text-truncate","my-0"],[1,"col-12","mb-2",2,"max-height","288px"],[1,"h-100",2,"overflow-y","auto"],["class","h-100",3,"click",4,"ngFor","ngForOf"],[1,"h-100",3,"click"],["matListAvatar","",1,"ms-3",3,"src"],[1,"text-truncate","text-decoration-none"],[1,"bg-bifeldy","px-2","me-1","text-warning",2,"position","absolute","right","0"],[1,"col-12","p-3"]],template:function(e,i){if(1&e&&(t._UZ(0,"app-notifications"),t.TgZ(1,"div",0)(2,"div",1)(3,"div",2)(4,"div",3)(5,"div",4)(6,"h2",5)(7,"span",6),t.NdJ("click",function(){return i.getUserFeedComment()}),t._uU(8," Refresh "),t.qZA(),t.TgZ(9,"b",7),t._uU(10,"Riwayat Komentar"),t.qZA()()(),t.YNc(11,Ut,4,6,"div",8),t.qZA(),t.TgZ(12,"div",3)(13,"div",4)(14,"h2",5)(15,"span",6),t.NdJ("click",function(){return i.getUserFeedLikeDislike()}),t._uU(16," Refresh "),t.qZA(),t.TgZ(17,"b",7),t._uU(18,"Riwayat Like & Dislike"),t.qZA()()(),t.YNc(19,Tt,4,6,"div",8),t.qZA(),t.TgZ(20,"div",3)(21,"div",4)(22,"h2",5)(23,"span",6),t.NdJ("click",function(){return i.getUserFeedVisit()}),t._uU(24," Refresh "),t.qZA(),t.TgZ(25,"b",7),t._uU(26,"Riwayat Kunjungan"),t.qZA()()(),t.YNc(27,At,4,6,"div",8),t.qZA()(),t.TgZ(28,"div",9)(29,"div",10)(30,"div",11)(31,"div",3)(32,"div",4)(33,"h2",5)(34,"b",12),t._uU(35,"Alamat Email"),t.qZA()()(),t.TgZ(36,"div",13)(37,"a",14)(38,"mat-icon",15),t._uU(39,"email"),t.qZA(),t._uU(40),t.qZA()()(),t.TgZ(41,"div",3)(42,"div",4)(43,"h2",5)(44,"span",6),t.NdJ("click",function(){return i.getUserApiKey()}),t._uU(45," Refresh "),t.qZA(),t.TgZ(46,"b",16),t._uU(47,"API Key"),t.qZA()()(),t.TgZ(48,"div",13)(49,"a",17),t.NdJ("click",function(){return i.generateNewApiKey()}),t.TgZ(50,"mat-icon",15),t._uU(51,"webhook"),t.qZA(),t._uU(52," Buat API Key Baru "),t.qZA(),t.YNc(53,St,17,3,"div",18),t.qZA()(),t.TgZ(54,"div",19)(55,"div",4)(56,"h2",20)(57,"span",6),t.NdJ("click",function(){return i.getUserGroup()}),t._uU(58," Refresh "),t.qZA(),t.TgZ(59,"b",7),t._uU(60,"DNS Fansub"),t.qZA()()(),t.YNc(61,Dt,4,2,"div",21),t.qZA()()()()()(),t.YNc(62,Zt,1,0,"ng-template",null,22,t.W1O)),2&e){const a=t.MAs(63);t.xp6(11),t.Q6J("ngIf",i.feedKomentarData.length>0)("ngIfElse",a),t.xp6(8),t.Q6J("ngIf",i.feedLikeDislikeData.length>0)("ngIfElse",a),t.xp6(8),t.Q6J("ngIf",i.feedVisitData.length>0)("ngIfElse",a),t.xp6(13),t.AsE(" '",null==i.AS.currentUserSubject||null==i.AS.currentUserSubject.value?null:i.AS.currentUserSubject.value.username,"@",i.ENV.domain,"' "),t.xp6(6),t.MGl("matTooltip","Aktivitas Terakhir :: ",null==i.AS.currentUserSubject||null==i.AS.currentUserSubject.value?null:i.AS.currentUserSubject.value._session_origin,""),t.xp6(7),t.Q6J("ngForOf",i.apiKey),t.xp6(8),t.Q6J("ngIf",i.groupFansub.length>0)("ngIfElse",a)}},directives:[ht.t,d.O5,S.Ub,d.sg,S.vS,N.Hw,S.Nh,l.yS,F.gM,R.zs,S.eA,bt.d],pipes:[d.OU,ft.R,d.uU],styles:[""]}),s})();var It=n(6925),kt=n(7902),Rt=n(8379),P=n(7322),Pt=n(2368),Ot=n(7531),wt=n(3626);function Lt(s,r){if(1&s&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"bytes"),t.qZA()),2&s){const e=t.oxw(2);t.xp6(1),t.hij("Ukuran Upload Melebihi Batas ",t.lcZ(2,1,e.imagePhotoLimitExceeded)," !")}}function Mt(s,r){if(1&s&&(t.TgZ(0,"div"),t._uU(1),t.qZA()),2&s){const e=t.oxw(2);t.xp6(1),t.Oqu(e.imagePhotoErrorText)}}function Kt(s,r){if(1&s){const e=t.EpF();t.TgZ(0,"div",42)(1,"button",43),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).submitPhotoImage()}),t.TgZ(2,"mat-icon",37),t._uU(3,"add_photo_alternate"),t.qZA(),t._uU(4," Unggah "),t.qZA()()}if(2&s){const e=t.oxw(2);t.xp6(1),t.Q6J("disabled",e.submitted)}}function Nt(s,r){if(1&s&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"bytes"),t.qZA()),2&s){const e=t.oxw(2);t.xp6(1),t.hij("Ukuran Upload Melebihi Batas ",t.lcZ(2,1,e.imageCoverLimitExceeded)," !")}}function Ft(s,r){if(1&s&&(t.TgZ(0,"div"),t._uU(1),t.qZA()),2&s){const e=t.oxw(2);t.xp6(1),t.Oqu(e.imageCoverErrorText)}}function Bt(s,r){if(1&s){const e=t.EpF();t.TgZ(0,"div",16)(1,"button",43),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).submitCoverImage()}),t.TgZ(2,"mat-icon",37),t._uU(3,"add_photo_alternate"),t.qZA(),t._uU(4," Unggah "),t.qZA()()}if(2&s){const e=t.oxw(2);t.xp6(1),t.Q6J("disabled",e.submitted)}}function Jt(s,r){1&s&&(t.TgZ(0,"div"),t._uU(1,"Password Tidak Boleh Kosong"),t.qZA())}function qt(s,r){1&s&&(t.TgZ(0,"div"),t._uU(1,"Password Minimal 8 Huruf"),t.qZA())}function Yt(s,r){1&s&&(t.TgZ(0,"div"),t._uU(1,"Password Hanya Boleh Huruf Standar Papan Ketik"),t.qZA())}function Qt(s,r){1&s&&(t.TgZ(0,"div"),t._uU(1,"Password Minimal 8 Huruf"),t.qZA())}function Gt(s,r){1&s&&(t.TgZ(0,"div"),t._uU(1,"Password Hanya Boleh Huruf Standar Papan Ketik"),t.qZA())}function Ht(s,r){if(1&s){const e=t.EpF();t.TgZ(0,"form",1),t.NdJ("submit",function(){return t.CHM(e),t.oxw().onSubmit()}),t.TgZ(1,"div",2)(2,"div",3)(3,"div",4)(4,"div",5)(5,"div",6)(6,"div",7),t._UZ(7,"img",8),t.TgZ(8,"mat-form-field",9)(9,"mat-label"),t._uU(10,"Profile Image"),t.qZA(),t.TgZ(11,"ngx-mat-file-input",10,11),t.NdJ("change",function(a){t.CHM(e);const o=t.MAs(12);return t.oxw().uploadPhotoImage(a,o)}),t.qZA(),t.TgZ(13,"mat-icon",12),t._uU(14,"image"),t.qZA()(),t.TgZ(15,"mat-error",13)(16,"small"),t.YNc(17,Lt,3,3,"div",14),t.YNc(18,Mt,2,1,"div",14),t.qZA()()(),t.YNc(19,Kt,5,1,"div",15),t.TgZ(20,"div",16)(21,"mat-slide-toggle",17),t._uU(22," Jadikan Private, Sembunyikan Aktivitas "),t.qZA()()()(),t.TgZ(23,"div",18)(24,"div",19)(25,"h1",20)(26,"b"),t._uU(27),t.qZA()()(),t.TgZ(28,"div",21)(29,"mat-form-field",22)(30,"mat-label"),t._uU(31,"Cover Image"),t.qZA(),t.TgZ(32,"ngx-mat-file-input",23,24),t.NdJ("change",function(a){t.CHM(e);const o=t.MAs(33);return t.oxw().uploadCoverImage(a,o)}),t.qZA(),t.TgZ(34,"mat-icon",12),t._uU(35,"image"),t.qZA()(),t.TgZ(36,"mat-error",13)(37,"small"),t.YNc(38,Nt,3,3,"div",14),t.YNc(39,Ft,2,1,"div",14),t.qZA()(),t.YNc(40,Bt,5,1,"div",25),t._UZ(41,"angular-editor",26),t.TgZ(42,"mat-form-field",27)(43,"mat-label"),t._uU(44,"Username / Email (Optional Autocomplete)"),t.qZA(),t._UZ(45,"input",28),t.qZA(),t.TgZ(46,"mat-form-field",29)(47,"mat-label"),t._uU(48,"Konfirmasi Kata Sandi"),t.qZA(),t._UZ(49,"input",30),t.TgZ(50,"button",31),t.NdJ("click",function(){return t.CHM(e),t.oxw().togglePassword()}),t.TgZ(51,"mat-icon"),t._uU(52),t.qZA()(),t.TgZ(53,"mat-error"),t.YNc(54,Jt,2,0,"div",14),t.YNc(55,qt,2,0,"div",14),t.YNc(56,Yt,2,0,"div",14),t.qZA()(),t.TgZ(57,"mat-form-field",29)(58,"mat-label"),t._uU(59,"Ubah Kata Sandi"),t.qZA(),t._UZ(60,"input",32),t.TgZ(61,"button",31),t.NdJ("click",function(){return t.CHM(e),t.oxw().togglePassword()}),t.TgZ(62,"mat-icon"),t._uU(63),t.qZA()(),t.TgZ(64,"mat-error"),t.YNc(65,Qt,2,0,"div",14),t.YNc(66,Gt,2,0,"div",14),t.qZA()()(),t.TgZ(67,"div",33)(68,"div",7)(69,"div",33),t._UZ(70,"div",34),t.TgZ(71,"div",35)(72,"a",36)(73,"mat-icon",37),t._uU(74,"undo"),t.qZA(),t._uU(75," Batal "),t.qZA()(),t.TgZ(76,"div",35)(77,"button",38),t._uU(78," Simpan "),t.TgZ(79,"mat-icon",39),t._uU(80,"save"),t.qZA()()()()()()()()(),t._UZ(81,"div",40)(82,"div",41),t.qZA()()}if(2&s){const e=t.oxw();t.Q6J("formGroup",e.fg),t.xp6(7),t.s9C("src",e.image_photo,t.LSH),t.xp6(1),t.Q6J("color","accent"),t.xp6(3),t.Q6J("accept","image/gif, image/jpeg, image/jpg, image/png"),t.xp6(6),t.Q6J("ngIf",e.imagePhotoLimitExceeded),t.xp6(1),t.Q6J("ngIf",e.imagePhotoErrorText),t.xp6(1),t.Q6J("ngIf",e.imagePhoto&&!e.fg.value.image_photo),t.xp6(8),t.Oqu(e.userData.kartu_tanda_penduduk_.nama),t.xp6(2),t.Q6J("color","accent"),t.xp6(3),t.Q6J("accept","image/gif, image/jpeg, image/jpg, image/png"),t.xp6(6),t.Q6J("ngIf",e.imageCoverLimitExceeded),t.xp6(1),t.Q6J("ngIf",e.imageCoverErrorText),t.xp6(1),t.Q6J("ngIf",e.imageCover&&!e.fg.value.image_cover),t.xp6(1),t.Q6J("config",e.GS.angularEditorConfig),t.xp6(1),t.Q6J("color","accent"),t.xp6(3),t.s9C("value",e.userData.username),t.xp6(1),t.Q6J("color","accent"),t.xp6(3),t.Q6J("type",e.passwordHide?"password":"text"),t.xp6(3),t.Oqu(e.passwordHide?"visibility_off":"visibility"),t.xp6(2),t.Q6J("ngIf",e.fg.get("old_password").hasError("required")),t.xp6(1),t.Q6J("ngIf",e.fg.get("old_password").hasError("minlength")),t.xp6(1),t.Q6J("ngIf",e.fg.get("old_password").hasError("pattern")),t.xp6(1),t.Q6J("color","accent"),t.xp6(3),t.Q6J("type",e.passwordHide?"password":"text"),t.xp6(3),t.Oqu(e.passwordHide?"visibility_off":"visibility"),t.xp6(2),t.Q6J("ngIf",e.fg.get("new_password").hasError("minlength")),t.xp6(1),t.Q6J("ngIf",e.fg.get("new_password").hasError("pattern")),t.xp6(6),t.Q6J("disabled",e.submitted),t.xp6(5),t.Q6J("disabled",e.submitted||e.fg.invalid||!e.fg.dirty),t.xp6(4),t.Udp("background-image","url("+e.image_cover+")")}}const Vt=[{path:"",pathMatch:"full",component:yt,canActivate:[y.t],data:{title:"User - Dashboard Overview",description:"Halaman Informasi Pengguna",keywords:"User",[b.t.decoratorRoles]:[g.yS.ADMIN,g.yS.MODERATOR,g.yS.FANSUBBER,g.yS.USER]}},{path:":username",children:[{path:"",pathMatch:"full",component:ut},{path:"edit",component:(()=>{class s{constructor(e,i,a,o,u,p,_,f,T,C,D){this.router=e,this.activatedRoute=i,this.toast=a,this.bs=o,this.us=u,this.pi=p,this.fb=_,this.imgbb=f,this.gs=T,this.as=C,this.cs=D,this.submitted=!1,this.username=null,this.userData=null,this.imagePhoto=null,this.imagePhotoErrorText=null,this.imagePhotoLimitExceeded=null,this.image_photo=null,this.image_photo_original=null,this.imageCover=null,this.imageCoverErrorText=null,this.imageCoverLimitExceeded=null,this.image_cover=null,this.image_cover_original=null,this.passwordHide=!0,this.photoImage=null,this.coverImage=null,this.subsUserDetail=null,this.subsImgbb1=null,this.subsImgbb2=null,this.subsUserUpdate=null,this.subsVerify=null,this.gs.bannerImg=null,this.gs.sizeContain=!1,this.gs.bgRepeat=!1}get GS(){return this.gs}togglePassword(){this.passwordHide=!this.passwordHide}ngOnDestroy(){var e,i,a,o,u;null===(e=this.subsUserDetail)||void 0===e||e.unsubscribe(),null===(i=this.subsImgbb1)||void 0===i||i.unsubscribe(),null===(a=this.subsImgbb2)||void 0===a||a.unsubscribe(),null===(o=this.subsUserUpdate)||void 0===o||o.unsubscribe(),null===(u=this.subsVerify)||void 0===u||u.unsubscribe()}ngOnInit(){this.pi.updatePageMetaData("User - Ubah Profile","Halaman Pembaharuan Profile","Ubah Profile"),this.gs.isBrowser&&(this.username=this.activatedRoute.snapshot.paramMap.get("username"),this.bs.busy(),this.subsUserDetail=this.us.getUserData(this.username).subscribe({next:e=>{var i,a;this.gs.log("[USER_DETAIL_SUCCESS]",e),this.bs.idle(),(null===(a=null===(i=this.as.currentUserSubject)||void 0===i?void 0:i.value)||void 0===a?void 0:a.id)!==e.result.id?(this.toast.warning("Profile Ini Milik Orang Lain","Whoops!",null,!0),this.router.navigateByUrl(`/user/${this.username}`)):this.initForm(e.result)},error:e=>{this.gs.log("[USER_DETAIL_ERROR]",e,"error"),this.bs.idle(),this.router.navigate(["/error"],{queryParams:{returnUrl:`/user/${this.username}`}})}}))}initForm(e){this.fg=this.fb.group({description:[e.profile_.description,c.kI.compose([c.kI.pattern(b.t.regexEnglishKeyboardKeys)])],old_password:[null,c.kI.compose([c.kI.required,c.kI.minLength(8),c.kI.pattern(b.t.regexEnglishKeyboardKeys)])],new_password:[null,c.kI.compose([c.kI.minLength(8),c.kI.pattern(b.t.regexEnglishKeyboardKeys)])],image_photo:[null,c.kI.compose([c.kI.pattern(b.t.regexUrl)])],image_cover:[null,c.kI.compose([c.kI.pattern(b.t.regexUrl)])],private:[e.private,c.kI.compose([c.kI.required])]}),this.image_photo=e.image_url,this.image_photo_original=this.image_photo,this.image_cover=e.profile_.cover_url,this.image_cover_original=this.image_cover,this.userData=e}uploadPhotoImage(e,i){this.photoImage=i,this.imagePhoto=null,this.imagePhotoLimitExceeded=null,this.imagePhotoErrorText=null,this.fg.controls.image_photo.patchValue(null),this.fg.controls.image_photo.markAsPristine();const a=e.target.files[0];try{const o=new FileReader;o.readAsDataURL(a),o.onload=u=>{if(this.gs.log("[IMAGE_PHOTO_SELECTED]",u),a.size<=b.t.fileSizeImageLimit){const p=this.gs.document.createElement("img");p.onload=()=>{this.imagePhoto=a,this.image_photo=o.result.toString()},p.src=o.result.toString()}else this.imagePhoto=null,this.image_photo="/assets/img/form/image-error.png",this.imagePhotoLimitExceeded=b.t.fileSizeImageLimit,this.photoImage.clear(e)}}catch(o){this.imagePhoto=null,this.image_photo=this.image_photo_original,this.photoImage.clear(e)}}submitPhotoImage(){this.submitted=!0,this.subsImgbb1=this.imgbb.uploadImage({file:this.imagePhoto}).subscribe({next:e=>{this.gs.log("[IMAGE_PHOTO_SUCCESS]",e),this.fg.controls.image_photo.patchValue(e.result.url),this.fg.controls.image_photo.markAsDirty(),this.submitted=!1},error:e=>{var i;this.gs.log("[IMAGE_PHOTO_ERROR]",e,"error"),this.fg.controls.image_photo.patchValue(null),this.fg.controls.image_photo.markAsPristine(),this.submitted=!1,this.imagePhotoErrorText=(null===(i=e.result)||void 0===i?void 0:i.message)||e.info}})}uploadCoverImage(e,i){this.coverImage=i,this.imageCover=null,this.imageCoverLimitExceeded=null,this.imageCoverErrorText=null,this.fg.controls.image_cover.patchValue(null),this.fg.controls.image_cover.markAsPristine();const a=e.target.files[0];try{const o=new FileReader;o.readAsDataURL(a),o.onload=u=>{if(this.gs.log("[IMAGE_COVER_SELECTED]",u),a.size<=b.t.fileSizeImageLimit){const p=this.gs.document.createElement("img");p.onload=()=>{this.imageCover=a,this.image_cover=o.result.toString()},p.src=o.result.toString()}else this.imageCover=null,this.image_cover="/assets/img/form/image-error.png",this.imageCoverLimitExceeded=b.t.fileSizeImageLimit,this.coverImage.clear(e)}}catch(o){this.imageCover=null,this.image_cover=this.image_cover_original,this.coverImage.clear(e)}}submitCoverImage(){this.submitted=!0,this.subsImgbb2=this.imgbb.uploadImage({file:this.imageCover}).subscribe({next:e=>{this.gs.log("[IMAGE_COVER_SUCCESS]",e),this.fg.controls.image_cover.patchValue(e.result.url),this.fg.controls.image_cover.markAsDirty(),this.submitted=!1},error:e=>{var i;this.gs.log("[IMAGE_COVER_ERROR]",e,"error"),this.fg.controls.image_cover.patchValue(null),this.fg.controls.image_cover.markAsPristine(),this.submitted=!1,this.imageCoverErrorText=(null===(i=e.result)||void 0===i?void 0:i.message)||e.info}})}onSubmit(){this.bs.busy();const e=this.gs.getDirtyValues(this.fg);if(e.old_password=this.cs.hashPassword(this.fg.value.old_password),"new_password"in e&&e.new_password&&(e.new_password=this.cs.hashPassword(this.fg.value.new_password)),this.gs.log("[USER_EDIT_DIRTY]",e),this.submitted=!0,this.fg.invalid)return this.submitted=!1,void this.bs.idle();this.subsUserUpdate=this.us.updateUser(this.username,{...e}).subscribe({next:i=>{this.gs.log("[USER_EDIT_SUCCESS]",i),this.submitted=!1,this.bs.idle(),this.as.removeUser(),this.bs.busy(),this.subsVerify=this.as.verify(this.as.token).subscribe({next:a=>{this.gs.log("[VERIFY_LOGIN_SUCCESS]",a),this.bs.idle(),this.router.navigateByUrl(`/user/${this.username}`)},error:a=>{this.gs.log("[VERIFY_LOGIN_ERROR]",a,"error"),this.bs.idle(),this.as.removeUser(),this.router.navigateByUrl(`/user/${this.username}`)}})},error:i=>{this.gs.log("[USER_EDIT_ERROR]",i,"error"),this.submitted=!1,this.bs.idle()}})}}return s.\u0275fac=function(e){return new(e||s)(t.Y36(l.F0),t.Y36(l.gz),t.Y36(It.k),t.Y36(M.z),t.Y36(K.K),t.Y36(q.Z),t.Y36(c.qu),t.Y36(kt.X),t.Y36(k.U),t.Y36(L.e),t.Y36(Rt.$))},s.\u0275cmp=t.Xpm({type:s,selectors:[["app-user-edit"]],decls:1,vars:1,consts:[[3,"formGroup","submit",4,"ngIf"],[3,"formGroup","submit"],[1,"container"],[1,"profile-info","align-items-center"],[1,"media","row","py-3","px-2"],[1,"col-md-4","col-xl-3","px-3"],[1,"row","sticky-top","pt-3"],[1,"col-12"],[1,"w-100","border","rounded-circle",3,"src"],["appearance","outline",1,"pt-3","w-100",3,"color"],[1,"w-100",3,"accept","change"],["photoImage",""],["matSuffix",""],[1,"px-3","w-100"],[4,"ngIf"],["class","col-12 mb-4",4,"ngIf"],[1,"col-12","p-3"],["formControlName","private","matTooltip","Hanya Tampilkan Informasi Profil"],[1,"col-md-8","col-xl-9","pt-3"],[1,"row","py-3","px-0","profile-height-large"],[1,"m-0","mt-auto"],[1,"row","py-3"],["appearance","outline",1,"px-3","pt-3","w-100",3,"color"],["placeholder","Basic Input",1,"w-100",3,"accept","change"],["coverImage",""],["class","col-12 p-3",4,"ngIf"],["formControlName","description",1,"p-3","w-100",3,"config"],["appearance","outline",1,"p-3","w-100",2,"display","none",3,"color"],["matInput","","disabled","","autocomplete","email, username",3,"value"],["appearance","outline",1,"p-3","w-100",3,"color"],["matInput","","formControlName","old_password","required","","placeholder","Password Sekarang","autocomplete","current-password",3,"type"],["mat-icon-button","","matSuffix","","type","button",3,"click"],["matInput","","formControlName","new_password","placeholder","Isi Jika Ingin Ubah Password Baru","autocomplete","new-password",3,"type"],[1,"row"],[1,"col"],[1,"col-12","col-md-3","pb-3"],["mat-stroked-button","","routerLink","../",1,"w-100",3,"disabled"],[1,"me-1"],["mat-flat-button","","color","accent","type","submit",1,"w-100",3,"disabled"],[1,"ms-1"],[1,"profile-banner","profile-banner-1","align-items-center"],[1,"profile-banner","profile-banner-2","align-items-center"],[1,"col-12","mb-4"],["mat-raised-button","","color","primary","type","button",1,"w-100",3,"disabled","click"]],template:function(e,i){1&e&&t.YNc(0,Ht,83,31,"form",0),2&e&&t.Q6J("ngIf",i.fg)},directives:[d.O5,c._Y,c.JL,c.sg,P.KE,P.hX,v.Yh,N.Hw,P.R9,P.TO,R.lW,Pt.Rr,c.JJ,c.u,F.gM,E.s6,Ot.Nt,c.Fj,c.Q7,R.zs,l.yS],pipes:[wt.$],styles:[".profile-banner[_ngcontent-%COMP%]{height:128px;width:100%;background-size:cover;background-position:center;background-repeat:no-repeat;opacity:.75}.profile-banner-1[_ngcontent-%COMP%]{position:absolute;top:0;left:0}.profile-banner-2[_ngcontent-%COMP%]{position:absolute;top:128px;left:0}.profile-info[_ngcontent-%COMP%]{position:relative;height:256px;z-index:1}@media (min-width: 768px){.profile-height-large[_ngcontent-%COMP%]{height:100px}}"]}),s})(),canActivate:[y.t],data:{title:"User - Ubah Profil",description:"Halaman Pembaharuan Profil Pengguna",keywords:"Ubah Profil",[b.t.decoratorRoles]:[g.yS.ADMIN,g.yS.MODERATOR,g.yS.FANSUBBER,g.yS.USER]}}]}];let zt=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=t.oAB({type:s}),s.\u0275inj=t.cJS({imports:[[d.ez,l.Bz.forChild(Vt),w.m,h.$,U.L,c.u5,c.UX,v.Ad,E.UM,m.b,x.F,O.T,A.d]]}),s})()},7567:(B,Z,n)=>{n.d(Z,{Q:()=>w});var d=n(1125),l=n(5e3),c=n(8696),E=n(9808),v=n(7238),b=n(5245);function g(h,U){if(1&h&&l._UZ(0,"h3",8),2&h){const m=l.oxw().$implicit;l.Q6J("innerHTML",m.text,l.oJD)}}function y(h,U){if(1&h&&(l.TgZ(0,"mat-expansion-panel",3)(1,"mat-expansion-panel-header")(2,"mat-panel-title",4)(3,"span",5),l._uU(4),l.qZA()(),l.TgZ(5,"mat-panel-description")(6,"mat-icon",6),l._uU(7),l.qZA()()(),l.YNc(8,g,1,1,"ng-template",7),l.qZA()),2&h){const m=U.$implicit,x=U.first,A=l.oxw(2);l.Q6J("expanded",A.GS.isDesktop&&x),l.xp6(3),l.s9C("matTooltip",m.tooltip),l.Q6J("matTooltipPosition","above"),l.xp6(1),l.hij(" ",m.title," "),l.xp6(3),l.Oqu(m.icon)}}function O(h,U){if(1&h&&(l.TgZ(0,"mat-accordion",1),l.YNc(1,y,9,5,"mat-expansion-panel",2),l.qZA()),2&h){const m=l.oxw();l.xp6(1),l.Q6J("ngForOf",m.panelData)}}let w=(()=>{class h{constructor(m){this.gs=m,this.panelData=[{title:"Title",icon:"warning",text:"Lorem ipsum ...",tooltip:"Info"}]}onResize(m){this.gs.onResize(m,"MATERIAL_EXPANSION_PANEL"),this.gs.isDesktop?this.accordion.openAll():this.accordion.closeAll()}get GS(){return this.gs}ngOnInit(){}}return h.\u0275fac=function(m){return new(m||h)(l.Y36(c.U))},h.\u0275cmp=l.Xpm({type:h,selectors:[["app-material-expansion-panel"]],viewQuery:function(m,x){if(1&m&&l.Gf(d.pp,5),2&m){let A;l.iGM(A=l.CRH())&&(x.accordion=A.first)}},hostBindings:function(m,x){1&m&&l.NdJ("resize",function(I){return x.onResize(I)},!1,l.Jf7)},inputs:{panelData:"panelData"},decls:1,vars:1,consts:[["class","example-headers-align","multi","",4,"ngIf"],["multi","",1,"example-headers-align"],[3,"expanded",4,"ngFor","ngForOf"],[3,"expanded"],[1,"font-weight-bold"],[3,"matTooltip","matTooltipPosition"],[1,"ms-auto"],["matExpansionPanelContent",""],[1,"m-0","text-justify",2,"white-space","pre-line !important",3,"innerHTML"]],template:function(m,x){1&m&&l.YNc(0,O,2,1,"mat-accordion",0),2&m&&l.Q6J("ngIf",x.panelData.length>0)},directives:[E.O5,d.pp,E.sg,d.ib,d.yz,d.yK,v.gM,d.u4,b.Hw,d.HS],styles:[""]}),h})()},6020:(B,Z,n)=>{n.d(Z,{$:()=>E});var d=n(9808),l=n(210),c=n(5e3);let E=(()=>{class v{}return v.\u0275fac=function(g){return new(g||v)},v.\u0275mod=c.oAB({type:v}),v.\u0275inj=c.cJS({imports:[[d.ez,l.m]]}),v})()}}]);
\ No newline at end of file
diff --git a/dist/fansubid/browser/index.html b/dist/fansubid/browser/index.html
index a02a52014..d4da0d8d2 100644
--- a/dist/fansubid/browser/index.html
+++ b/dist/fansubid/browser/index.html
@@ -63,7 +63,7 @@
-
+