PageSourceSearch

https://login.webgo.de/865.22cd3214cc44ff3a.js

js webgo.de collected 2026-10-09 22:40:15 UTC 35,098 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkcontrol_panel=self.webpackChunkcontrol_panel||[]).push([[865],{5865:(Ut,C,s)=>{s.r(C),s.d(C,{FolderProtectionsModule:()=>It});var p=s(177),h=s(3955),x=s(9572),t=s(4438),u=s(9417),D=s(6329),_=s(5190),I=s(1626),m=s(8248),R=s(8806),X=s(9683),Y=s(6066);let b=(()=>{class r{CRUD;RegEx;getUrl="folderprotection/contract";addUrl="folderprotection";userUrl="folderprotection-user";userConUrl="folderprotection-user/contract";userFPUrl="folderprotection-user/folderprotection";nameField;dirField;userField;fpIDField;pwField;pwConfField;pwFields;tabs;constructor(e,o){this.CRUD=e,this.RegEx=o,this.nameField=new m.F({id:"name",label:"modal.webhosting.folder-protection.input.name",required:!0,error:!0,errors:{required:"input.validation.required"}}),this.dirField=new m.F({id:"directory",label:"modal.webhosting.folder-protection.input.directory",value:"/",required:!0,pattern:this.RegEx.dirRegEx,error:!0,errors:{pattern:"input.validation.pattern.path",required:"input.validation.required"}}),this.userField=new m.F({id:"user",label:"modal.webhosting.folder-protection.input.username",required:!0,maxlength:16,pattern:/^(?!.*wcsstat).{0,16}$/i,error:!0,errors:{required:"input.validation.required",maxlength:"input.validation.maxlength.fp-user",pattern:"input.validation.pattern.text"}}),this.fpIDField=new m.F({type:"select",id:"fpID",label:"modal.webhosting.folder-protection.input.id",required:!0,error:!0,errors:{required:"input.validation.required"}}),this.pwField=new m.F({type:"password",id:"password",label:"input.password",required:!0,minlength:8,maxlength:32,pattern:this.RegEx.passwordRegEx,matching:(0,R.f)("confirm_password",!0),error:!0,errors:{minlength:"input.validation.minlength.password",maxlength:"input.validation.maxlength.password",pattern:"input.validation.pattern.password",required:"input.validation.required"}}),this.pwConfField=new m.F({type:"password",id:"confirm_password",label:"input.password-confirm",required:!0,matching:(0,R.f)("password"),error:!0,errors:{matching:"input.validation.matching.password",required:"input.validation.required"}})}getFP(e){return this.CRUD.loadData(this.getUrl,e)}loadFP(e){return this.getFP(e)}loadFPPaginated(e,o={}){let i=new I.Nl;void 0!==o.offset&&(i=i.set("offset",o.offset.toString())),void 0!==o.limit&&(i=i.set("limit",o.limit.toString()));const n=o.query?.trim();return n&&(i=i.set("query",n)),o.sortBy&&(i=i.set("sortBy",o.sortBy),i=i.set("sortOrder",o.sortOrder??"asc")),this.CRUD.loadData(this.getUrl,e,{params:i})}postFP(e){return this.CRUD.submitData(this.addUrl,e)}submitFP(e){return this.postFP(e)}patchFP(e,o){return this.CRUD.updateData(this.addUrl,e,o)}updateFP(e,o){return this.patchFP(e,o)}deleteFP(e){return this.CRUD.removeData(this.addUrl,e)}removeFP(e){return this.deleteFP(e)}getFPUserByConNo(e){return this.CRUD.loadData(this.userConUrl,e)}loadFPUserByConNo(e){return this.getFPUserByConNo(e)}loadFPUserByConNoPaginated(e,o={}){let i=new I.Nl;void 0!==o.offset&&(i=i.set("offset",o.offset.toString())),void 0!==o.limit&&(i=i.set("limit",o.limit.toString()));const n=o.query?.trim();return n&&(i=i.set("query",n)),o.sortBy&&(i=i.set("sortBy",o.sortBy),i=i.set("sortOrder",o.sortOrder??"asc")),this.CRUD.loadData(this.userConUrl,e,{params:i})}getFPUserByFPID(e){return this.CRUD.loadData(this.userFPUrl,e)}loadFPUserByFPID(e){return this.getFPUserByFPID(e)}loadFPUserByFPIDPaginated(e,o={}){let i=new I.Nl;void 0!==o.offset&&(i=i.set("offset",o.offset.toString())),void 0!==o.limit&&(i=i.set("limit",o.limit.toString()));const n=o.query?.trim();return n&&(i=i.set("query",n)),o.sortBy&&(i=i.set("sortBy",o.sortBy),i=i.set("sortOrder",o.sortOrder??"asc")),this.CRUD.loadData(this.userFPUrl,e,{params:i})}getFPUserByUserID(e){return this.CRUD.loadData(this.userUrl,e)}loadFPUserByUserID(e){return this.getFPUserByUserID(e)}postFPUser(e){return this.CRUD.submitData(this.userUrl,e)}submitFPUser(e){return this.postFPUser(e)}patchFPUser(e,o){return this.CRUD.updateData(this.userUrl,e,o)}updateFPUser(e,o){return this.patchFPUser(e,o)}deleteFPUser(e){return this.CRUD.removeData(this.userUrl,e)}removeFPUser(e){return this.deleteFPUser(e)}static \u0275fac=function(o){return new(o||r)(t.KVO(X.Q),t.KVO(Y.A))};static \u0275prov=t.jDH({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();var v=s(2041),F=s(5783);const L=["form"];function J(r,c){1&r&&(t.qex(0),t.j41(1,"h3"),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"p",9),t.EFF(5),t.nI1(6,"translate"),t.k0s(),t.bVm()),2&r&&(t.R7$(2),t.SpI(" ",t.bMT(3,2,"modal.webhosting.folder-protection.title.edit.title1")," "),t.R7$(3),t.SpI(" ",t.bMT(6,4,"modal.webhosting.folder-protection.title.edit.title2")," "))}function A(r,c){1&r&&(t.j41(0,"h3"),t.EFF(1),t.nI1(2,"translate"),t.k0s(),t.j41(3,"p",9),t.EFF(4),t.nI1(5,"translate"),t.k0s()),2&r&&(t.R7$(),t.SpI(" ",t.bMT(2,2,"modal.webhosting.folder-protection.title.new.title1")," "),t.R7$(3),t.SpI(" ",t.bMT(5,4,"modal.webhosting.folder-protection.title.new.title2")," "))}function Q(r,c){if(1&r&&(t.qex(0),t.nrm(1,"app-input",4)(2,"app-input",4)(3,"app-input",4),t.bVm()),2&r){const e=t.XpG();t.R7$(),t.Y8G("field",e.userField),t.R7$(),t.Y8G("field",e.pwField),t.R7$(),t.Y8G("field",e.pwConfField)}}let N=(()=>{class r{folderProtectionService;CD;modalService;notificationService;form;conNo;fpEdit;fpEditChange=new t.bkB;fpNew=new t.bkB;_unsubscribers=[];nameField;dirField;userField;pwField;pwConfField;fpName;user=!1;add;editFP;constructor(e,o,i,n){this.folderProtectionService=e,this.CD=o,this.modalService=i,this.notificationService=n,this.nameField=this.folderProtectionService.nameField,this.dirField=this.folderProtectionService.dirField,this.userField=this.folderProtectionService.userField,this.pwField=this.folderProtectionService.pwField,this.pwConfField=this.folderProtectionService.pwConfField}ngOnInit(){this.nameField.class={field:void 0},this.dirField.class={field:void 0},this.userField.class={field:void 0},this.pwField.class={field:void 0},this.pwConfField.class={field:void 0}}ngAfterViewInit(){setTimeout(()=>{this.fpEdit?(this.editFP=!0,this.form.controls.name.patchValue(this.fpEdit.Name),this.form.controls.directory.patchValue(this.fpEdit.Directory),console.log(this.fpEdit,this.editFP)):this.form.controls.directory.patchValue("/")},0)}
1ngOnDestroy(){this._unsubscribers&&this._unsubscribers.forEach(e=>e.unsubscribe())}_submit(e){const o={ContractNumber:+this.conNo,Name:e.controls.name.value.trim(),Directory:e.controls.directory.value.trim(),Username:e.controls.user.value.trim(),Password:e.controls.password.value.trim()},i=this.folderProtectionService.submitFP(o);i&&this._unsubscribers.push(i.subscribe({next:n=>{n.Code?"V101"===n.Code&&this.notificationService.error("notification.error.code.V101"):(this.fpNew.emit(n),this.modalService.closeModal(),this.notificationService.success("notification.success.post.folder-protection.overview"))},error:()=>{this.notificationService.error("notification.error.post.folder-protection.overview")}}))}_edit(e){const o={Name:e.controls.name.value.trim(),Directory:e.controls.directory.value.trim()},i=this.fpEdit&&this.folderProtectionService.updateFP(this.fpEdit.ID,o);i&&this._unsubscribers.push(i.subscribe({next:n=>{n.Code?"V101"===n.Code&&this.notificationService.error("notification.error.code.V101"):(this.fpEdit.Name=o.Name,this.fpEdit.Directory=o.Directory,this.fpEditChange.emit(this.fpEdit),this.editFP=!1,this.modalService.closeModal(),this.notificationService.success("notification.success.post.folder-protection.overview"))},error:()=>{this.notificationService.error("notification.error.post.folder-protection.overview")}}))}_validateInputs(e,o){e.valid?o?this._edit(e):this._submit(e):(this.notificationService.warning("notification.warning.mandatory"),e.control.markAllAsTouched(),this.nameField.class&&(this.nameField.class={field:void 0}),this.dirField.class={field:void 0},this.userField.class={field:void 0},this.pwField.class&&(this.pwField.class={field:void 0}),this.pwConfField&&(this.pwConfField.class={field:void 0}),this.CD.detectChanges(),e.controls.name&&e.controls.name.invalid&&(this.nameField.class={field:"warning"}),e.controls.directory.invalid&&(this.dirField.class={field:"warning"}),e.controls.user&&e.controls.user.invalid&&(this.userField.class={field:"warning"}),e.controls.password&&e.controls.password.invalid&&(this.pwField.class={field:"warning"}),e.controls.confirm_password&&e.controls.confirm_password.invalid&&(this.pwConfField.class={field:"warning"}))}validateInputs(e,o){return this._validateInputs(e,o)}cancel(){this.modalService.closeModal()}static \u0275fac=function(o){return new(o||r)(t.rXU(b),t.rXU(t.gRc),t.rXU(v.B),t.rXU(F.J))};static \u0275cmp=t.VBU({type:r,selectors:[["app-folder-protection-modal"]],viewQuery:function(o,i){if(1&o&&t.GBs(L,5),2&o){let n;t.mGM(n=t.lsd())&&(i.form=n.first)}},inputs:{conNo:"conNo",fpEdit:"fpEdit"},outputs:{fpEditChange:"fpEditChange",fpNew:"fpNew"},standalone:!0,features:[t.aNF],decls:13,vars:11,consts:[["addFP",""],["form","ngForm"],[4,"ngIf","ngIfElse"],["name","form",3,"ngSubmit"],[3,"field"],[4,"ngIf"],[1,"button-container","button-container-end","button-spacing-top","d-flex-gap-2"],["theme","text",3,"clickEvent","title"],["btnType","submit",3,"title"],[1,"subline","mb-8"]],template:function(o,i){if(1&o){const n=t.RV6();t.DNE(0,J,7,6,"ng-container",2)(1,A,6,6,"ng-template",null,0,t.C5r),t.j41(3,"form",3,1),t.bIt("ngSubmit",function(){t.eBV(n);const a=t.sdS(4);return t.Njj(i.editFP?i.validateInputs(a,i.editFP):i.validateInputs(a))}),t.nrm(5,"app-input",4)(6,"app-input",4),t.DNE(7,Q,4,3,"ng-container",5),t.j41(8,"div",6)(9,"app-button",7),t.nI1(10,"translate"),t.bIt("clickEvent",function(){return t.eBV(n),t.Njj(i.cancel())}),t.k0s(),t.nrm(11,"app-button",8),t.nI1(12,"translate"),t.k0s()()}if(2&o){const n=t.sdS(2);t.Y8G("ngIf",i.editFP)("ngIfElse",n),t.R7$(5),t.Y8G("field",i.nameField),t.R7$(),t.Y8G("field",i.dirField),t.R7$(),t.Y8G("ngIf",!i.editFP),t.R7$(2),t.Y8G("title",t.bMT(10,7,"cancel")),t.R7$(2),t.Y8G("title",t.bMT(12,9,"save"))}},dependencies:[p.MD,p.bT,u.YN,u.qT,u.cb,u.cV,h.h,h.D9,_.S,D.Q],styles:[".label[_ngcontent-%COMP%]{color:#ff5d19;font-size:.75rem}.link[_ngcontent-%COMP%]{border:.0625rem solid #c0c0c0}.link[_ngcontent-%COMP%]:hover, .link[_ngcontent-%COMP%]:active, .link.selected[_ngcontent-%COMP%]{color:#ff5d19;border-color:#ff5d19;cursor:pointer}"]})}return r})();var f=s(4710),U=s(7673),y=s(9437),g=s(4841),W=s(5383),T=s(8540),E=s(9402),z=s(7039),K=s(60),d=s(3359),j=s(9039),B=s(8493),M=s(8663),k=s(8435),$=s(7217),O=s(2423);const Z=(r,c)=>c.ID;function H(r,c){if(1&r){const e=t.RV6();t.j41(0,"tr")(1,"td"),t.nrm(2,"fa-icon",13),t.j41(3,"span",14),t.EFF(4),t.k0s()(),t.j41(5,"td"),t.EFF(6),t.k0s(),t.j41(7,"td")(8,"div",15)(9,"app-icon-button",16),t.bIt("clickEvent",function(i){const n=t.eBV(e).$implicit,l=t.XpG();return t.Njj(l.onEditFP(i,n.ID))}),t.k0s(),t.nrm(10,"app-icon-button",17),t.j41(11,"app-icon-button",18),t.bIt("clickEvent",function(){const i=t.eBV(e).$implicit,n=t.XpG();return t.Njj(n.onRemoveFP(i.ID))}),t.k0s()()()()}if(2&r){const e=c.$implicit,o=t.XpG();t.R7$(2),t.Y8G("icon",o.faLock),t.R7$(2),t.JRh(e.Name),t.R7$(2),t.JRh(e.Directory),t.R7$(3),t.Y8G("icon",o.faPenToSquare),t.R7$(),t.Y8G("icon",o.faUsers
1)("routerLink","/contract/folder-protections/users/"+o.conNo+"/"+e.ID+"/"+e.Name),t.R7$(),t.Y8G("icon",o.faTrash)}}let q=(()=>{class r extends T.z{folderProtectionService;activatedRoute;modalService;notificationService;router;filterSortUrl;faTrash=g.yLS;faPenToSquare=g.LFz;faUsers=g.gdJ;faLock=W.DW4;conNo;sortBy=null;sortOrder=null;constructor(e,o,i,n,l,a){super(),this.folderProtectionService=e,this.activatedRoute=o,this.modalService=i,this.notificationService=n,this.router=l,this.filterSortUrl=a}ngOnInit(){const e=this.activatedRoute.snapshot.queryParamMap;this.sortBy=e.get("sortBy"),this.sortOrder=e.get("sortOrder")??null,this.activatedRoute.params.pipe(this.takeUntilDestroyed()).subscribe(o=>{this.conNo=o.contractnumber,this.reloadData()})}onSortChange(e){this.sortBy=e.sortBy,this.sortOrder=e.sortOrder,this.offset=0,this.filterSortUrl.updateParams(this.router,this.activatedRoute,{sortBy:e.sortBy,sortOrder:e.sortOrder,offset:null}),this.reloadData()}fetchData(){return this.conNo?this.folderProtectionService.loadFPPaginated(this.conNo,{offset:this.offset,limit:this.limit,query:this.searchSubject.getValue(),sortBy:this.sortBy,sortOrder:this.sortOrder}).pipe((0,y.W)(()=>(this.notificationService.error("notification.error.default"),(0,U.of)({itemsTotal:0,items:[]})))):(0,U.of)({itemsTotal:0,items:[]})}openModal(e){this.modalService.component=N,this.modalService.size="regular",this.modalService.openModal();const o=this.modalService.componentRef.instance;o.conNo=this.conNo,e?(o.fpEdit=e,o.fpEditChange.pipe(this.takeUntilDestroyed()).subscribe(()=>{this.reloadData()})):o.fpNew&&o.fpNew.pipe(this.takeUntilDestroyed()).subscribe(()=>{this.reloadData()})}onSubmit(){this.openModal()}onEditFP(e,o){e.preventDefault();const i=this.entities.find(n=>n.ID===o);i&&this.openModal(i)}onRemoveFP(e){this.modalService.component=E.M,this.modalService.size="regular",this.modalService.openModal();const o=this.modalService.componentRef.instance;o.confirmation={title:"modal.webhosting.folder-protection.delete.title1",prompt:"modal.webhosting.folder-protection.delete.text1",confirmName:"delete"},o.confirm.pipe(this.takeUntilDestroyed()).subscribe(i=>{i&&this.folderProtectionService.removeFP(e).pipe(this.takeUntilDestroyed()).subscribe({next:()=>{this.reloadData(),this.notificationService.success("notification.success.delete.folder-protection.overview")},error:()=>{this.notificationService.error("notification.error.delete.folder-protection.overview")}}),this.modalService.closeModal()})}static \u0275fac=function(o){return new(o||r)(t.rXU(b),t.rXU(f.nX),t.rXU(v.B),t.rXU(F.J),t.rXU(f.Ix),t.rXU(z.T))};static \u0275cmp=t.VBU({type:r,selectors:[["app-folder-protection-overview"]],features:[t.Vt3],decls:33,vars:39,consts:[["basicTable",""],["paginationItemRender","appPaginationItemRender"],[1,"mb-8"],[1,"d-flex","d-flex--down-lg-block","d-flex-gap-5","align-center"],[1,"d-block","mb-3",3,"clickEvent","text"],[1,"subline"],[1,"mb-4","flex","justify-end",3,"searchChange"],[1,"w-full","overflow-x-auto"],["nzShowSizeChanger","",1,"min-w-[1000px]",3,"nzPageIndexChange","nzPageSizeChange","nzData","nzLoading","nzBordered","nzSize","nzFrontPagination","nzShowPagination","nzPageSize","nzPageIndex","nzTotal","nzItemRender"],["appSortableColumn","realm",3,"sortChange","activeSortBy","activeSortOrder"],["appSortableColumn","path",3,"sortChange","activeSortBy","activeSortOrder"],["nzWidth","200px"],[3,"pageIndex","pageSize","totalItems"],[3,"icon"],[1,"ml-2"],[1,"d-flex","d-flex-gap-3"],["title","pages.contract.webhosting.folder-protection.actions.edit",3,"clickEvent","icon"],["title","pages.contract.webhosting.folder-protection.users.title",3,"icon","routerLink"],["title","pages.contract.webhosting.folder-protection.actions.delete",3,"clickEvent","icon"]],template:function(o,i){if(1&o){const n=t.RV6();t.j41(0,"app-card")(1,"div",2)(2,"div",3)(3,"h3"),t.EFF(4),t.nI1(5,"translate"),t.k0s(),t.j41(6,"app-add-button",4),t.nI1(7,"translate"),t.bIt("clickEvent",function(){return t.eBV(n),t.Njj(i.onSubmit())}),t.k0s()(),t.j41(8,"p",5),t.EFF(9),t.nI1(10,"translate"),t.k0s()(),t.j41(11,"app-search",6),t.bIt("searchChange",function(a){return t.eBV(n),t.Njj(i.onSearchChange(a))}),t.k0s(),t.j41(12,"div",7)(13,"nz-table",8,0),t.nI1(15,"async"),t.bIt("nzPageIndexChange",function(a){return t.eBV(n),t.Njj(i.pageIndexChange(a))})("nzPageSizeChange",function(a){return t.eBV(n),t.Njj(i.pageSizeChange(a))}),t.j41(16,"thead")(17,"tr")(18,"th",9),t.bIt("sortChange",function(a){return t.eBV(n),t.Njj(i.onSortChange(a))}),t.EFF(19),t.nI1(20,"translate"),t.k0s(),t.j41(21,"th",10),t.bIt("sortChange",function(a){return t.eBV(n),t.Njj(i.onSortChange(a))}),t.EFF(22),t.nI1(23,"translate"),t.k0s(),t.j41(24,"th",11),t.EFF(25),t.nI1(26,"translate"),t.k0s()()(),t.j41(27,"tbody"),t.Z7z(28,H,12,7,"tr",null,Z),t.k0s()(),t.nrm(30,"app-pagination-item-render",12,1),t.nI1(32,"async"),t.k0s()()}if(2&o){let n,l;const a=t.sdS(14),w=t.sdS(31);t.R7$(4),t.SpI(" ",t.bMT(5,23,"pages.contract.webhosting.folder-protection.overview.title")," "),t.R7$(2),t.Y8G("text",t.bMT(7,25,"add.folder-protection")),t.R7$(3),t.SpI(" ",t.bMT(10,27,"pages.contract.webhosting.folder-protection.overview.text")," "),t.R7$(4),t.Y8G("nzData",i.entities)("nzLoading",i.isLoading)("nzBordered",!0)("nzSize","middle")("nzFrontPagination",!1)("nzShowPagination",i.showPagination)("nzPageSize",i.limit)("nzPageIndex",i.offset?i.offset/i.limit+1:1)("nzTotal",null!==(n=t.bMT(15,29,i.total))&&void 0!==n?n:0)("nzItemRender",w.template),t.R7$(5),t.Y8G("activeSortBy",i.sortBy)("activeSortOrder",i.sortOrder),t.R7$(),t.SpI(" ",t.bMT(20,31,"pages.contract.webhosting.folder-protection.overview.table.name")," "),t.R7$(2),t.Y8G("activeSortBy",i.sortBy)("activeSortOrder",i.sortOrder),t.R7$(),t.SpI(" ",t.bMT(23,33,"pages.contract.webhosting.folder-protection.overview.table.directory")," "),t.R7$(3),t.SpI(" ",t.bMT(26,35,"pages.contract.webhosting.folder-protection.overview.table.action")," "),t.R7$(3),t.Dyx(a.data),t.R7$(2),t.Y8G("pageIndex",a.nzPageIndex)("pageSize",a.nzPageSize)("totalItems",null!==(l=t.bMT(32,37,i.total))&&void 0!==l?l:0)}},dependencies:[f.Wk,K.aY,d.CP,d.SO,d._4,d.IL,d.aj,d.kt,j.m,B.v,M.i,k.x,$.X,O.S,p.Jj,h.D9]})}return r})();var tt=s(1985);const et=["form"],S=r=>({fp_name:r});function ot(r,c){if(1&r&&(t.qex(0),t.nrm(1,"app-input",4),t.bVm()),2&r){const e=t.XpG();t.R7$(),t.Y8G("field",e.fpIDField)}}let it=(()=>{class r{FP;CD;Modal;Notification;form;conNo;fp;fpUsers;fpUserEdit;fpUserEditChange=new t.bkB;fpUserNew=new t.bkB;_notTrans=["notification.success.post.folder-protection.user","notification.success.delete.folder-protection.user","notification.error.default","notification.error.code.V101","notification.error.post.folder-protection.user","notification.error.delete.folder-protection.user","notification.warning.mandatory"];_unsubscribers=[];userField;fpIDField;pwField;pwConfField;editUser;fpName;constructor(e,o,i,n){this.FP=e,this.CD=o,this.Modal=i,this.Notification=n,this.userField=this.FP.userField,this.fpIDField=this.FP.fpIDField,this.pwField=this.FP.pwField,this.pwConfField=this.FP.pwConfField}ngOnInit(){if(this.fp&&(this.fpName=this.fp.name),this.fpIDField&&this.fpUserEdit&&(this.fpName=this.fpUserEdit.FolderProtection.Name),this.fpUsers){const e=[];
1this.fpUsers.forEach(o=>{e.push({key:o.FolderProtection.ID,value:o.FolderProtection.Name})}),this.fpIDField.options=e}this.userField.class={field:void 0},this.fpIDField.class={field:void 0},this.pwField.class={field:void 0},this.pwConfField.class={field:void 0}}ngAfterViewInit(){setTimeout(()=>{this.fpUserEdit&&(this.editUser=!0,this.form.controls.user.patchValue(this.fpUserEdit.Username),this.form.controls.fpID&&this.form.controls.fpID.patchValue(this.fpUserEdit.FolderProtectionID))},0)}ngOnDestroy(){this._unsubscribers&&this._unsubscribers.forEach(e=>e.unsubscribe())}_submit(e){const o={FolderProtectionID:e.controls.fpID?e.controls.fpID.value:this.fp.id,Username:e.controls.user.value.trim(),Password:e.controls.password.value.trim()},i=this.FP.submitFPUser(o);i&&this._unsubscribers.push(i.subscribe({next:n=>{n.Code?"V101"===n.Code&&this.Notification.error("notification.error.code.V101"):(this.fpUserNew.emit(n),this.Modal.closeModal(),this.Notification.success("notification.success.post.folder-protection.user"))},error:()=>{this.Notification.error("notification.error.post.folder-protection.user")}}))}_edit(e){const o={Username:e.controls.user.value.trim(),Password:e.controls.password.value.trim()},i=this.FP.updateFPUser(this.fpUserEdit.ID,o);i&&this._unsubscribers.push(i.subscribe({next:n=>{n.Code?"V101"===n.Code&&this.Notification.error("notification.error.code.V101"):(this.fpUserEdit.Username=o.Username,this.fpUserEditChange.emit(this.fpUserEdit),this.Modal.closeModal(),this.Notification.success("notification.success.post.folder-protection.user"))},error:()=>{this.Notification.error("notification.error.post.folder-protection.user")}}))}_validateInputs(e,o){e.valid?o?this._edit(e):this._submit(e):(this.Notification.warning("notification.warning.mandatory"),e.control.markAllAsTouched(),this.userField.class={field:void 0},this.fpIDField.class&&(this.fpIDField.class={field:void 0}),this.pwField.class&&(this.pwField.class={field:void 0}),this.pwConfField&&(this.pwConfField.class={field:void 0}),this.CD.detectChanges(),e.controls.user&&e.controls.user.invalid&&(this.userField.class={field:"warning"}),e.controls.fpID&&e.controls.fpID.invalid&&(this.fpIDField.class={field:"warning"}),e.controls.password&&e.controls.password.invalid&&(this.pwField.class={field:"warning"}),e.controls.confirm_password&&e.controls.confirm_password.invalid&&(this.pwConfField.class={field:"warning"}))}validateInputs(e,o){return this._validateInputs(e,o)}onSubmit(e){this._submit(e)}onEdit(e){this._edit(e)}cancel(){this.Modal.closeModal()}static \u0275fac=function(o){return new(o||r)(t.rXU(b),t.rXU(t.gRc),t.rXU(v.B),t.rXU(F.J))};static \u0275cmp=t.VBU({type:r,selectors:[["app-folder-protection-users-modal"]],viewQuery:function(o,i){if(1&o&&t.GBs(et,7),2&o){let n;t.mGM(n=t.lsd())&&(i.form=n.first)}},inputs:{conNo:"conNo",fp:"fp",fpUsers:"fpUsers",fpUserEdit:"fpUserEdit"},outputs:{fpUserEditChange:"fpUserEditChange",fpUserNew:"fpUserNew"},standalone:!0,features:[t.aNF],decls:17,vars:30,consts:[["form","ngForm"],[1,"mb-8"],["name","form",3,"ngSubmit"],[4,"ngIf"],[3,"field"],[1,"button-container","button-container-end","button-spacing-top","d-flex-gap-2"],["theme","text",3,"clickEvent","id","title"],["btnType","submit",3,"id","title"]],template:function(o,i){if(1&o){const n=t.RV6();t.j41(0,"h3",1),t.EFF(1),t.nI1(2,"translate"),t.nI1(3,"translate"),t.nI1(4,"translate"),t.nI1(5,"translate"),t.k0s(),t.j41(6,"form",2,0),t.bIt("ngSubmit",function(){t.eBV(n);const a=t.sdS(7);return t.Njj(i.editUser?i.validateInputs(a,i.editUser):i.validateInputs(a))}),t.DNE(8,ot,2,1,"ng-container",3),t.nrm(9,"app-input",4)(10,"app-input",4)(11,"app-input",4),t.j41(12,"div",5)(13,"app-button",6),t.nI1(14,"translate"),t.bIt("clickEvent",function(){return t.eBV(n),t.Njj(i.cancel())}),t.k0s(),t.nrm(15,"app-button",7),t.nI1(16,"translate"),t.k0s()()}2&o&&(t.R7$(),t.SpI(" ",i.editUser?i.fp?t.i5U(5,17,"modal.webhosting.folder-protection.title.user.edit",t.eq3(28,S,"'"+i.fpName+"'")):t.i5U(4,14,"modal.webhosting.folder-protection.title.users.edit",t.eq3(26,S,"'"+i.fpName+"'")):i.fp?t.i5U(3,11,"modal.webhosting.folder-protection.title.user.new",t.eq3(24,S,"'"+i.fpName+"'")):t.bMT(2,9,"modal.webhosting.folder-protection.title.users.new"),"\n"),t.R7$(7),t.Y8G("ngIf",!i.editUser&&!i.fp),t.R7$(),t.Y8G("field",i.userField),t.R7$(),t.Y8G("field",i.pwField),t.R7$(),t.Y8G("field",i.pwConfField),t.R7$(2),t.Y8G("id","fp-cancel")("title",t.bMT(14,20,"cancel")),t.R7$(2),t.Y8G("id","fp-submit")("title",t.bMT(16,22,"save")))},dependencies:[p.MD,p.bT,u.YN,u.qT,u.cb,u.cV,_.S,D.Q,h.h,h.D9]})}return r})();const nt=(r,c)=>c.ID,V=r=>({fp_name:r}),rt=r=>({$implicit:r});function st(r,c){if(1&r){const e=t.RV6();t.j41(0,"app-add-button",14),t.nI1(1,"translate"),t.bIt("clickEvent",function(){t.eBV(e);const i=t.XpG();return t.Njj(i.onSubmit(i.fpID))}),t.k0s()}2&r&&t.Y8G("text",t.bMT(1,1,"add.folder-protection-user"))}function at(r,c){1&r&&t.eu8(0)}function lt(r,c){if(1&r&&(t.j41(0,"tr")(1,"td"),t.EFF(2),t.k0s(),t.j41(3,"td"),t.EFF(4),t.k0s(),t.j41(5,"td"),t.EFF(6),t.k0s(),t.j41(7,"td"),t.DNE(8,at,1,0,"ng-container",15),t.k0s()()),2&r){const e=c.$implicit;t.XpG();const o=t.sdS(38);t.R7$(2),t.JRh(e.Username),t.R7$(2),t.JRh(e.FolderProtection),t.R7$(2),t.JRh(e.FolderProtectionID),t.R7$(2),t.Y8G("ngTemplateOutlet",o)("ngTemplateOutletContext",t.eq3(5,rt,e))}}function ct(r,c){if(1&r){const e=t.RV6();t.j41(0,"app-icon-button",16),t.bIt("clickEvent",function(i){const n=t.eBV(e).$implicit,l=t.XpG();return t.Njj(l.onEditFPUser(i,n.ID))}),t.k0s(),t.j41(1,"app-icon-button",17),t.bIt("clickEvent",function(){const i=t.eBV(e).$implicit,n=t.XpG();return t.Njj(n.openDeleteModal(i.ID))}),t.k0s()}if(2&r){const e=c.$implicit,o=t.XpG();t.Y8G("icon",o.faPenToSquare),t.R7$(),t.AVh("disabled",!e.canDelete),t.Y8G("icon",o.faTrash)}}let G=(()=>{class r extends T.z{folderProtectionService;activatedRoute;modalService;notificationService;router;
1filterSortUrl;conNo;_allUsers=[];fpID;fpName;routes;fpExist;faPenToSquare=g.LFz;faTrash=g.yLS;sortBy=null;sortOrder=null;constructor(e,o,i,n,l,a){super(),this.folderProtectionService=e,this.activatedRoute=o,this.modalService=i,this.notificationService=n,this.router=l,this.filterSortUrl=a}ngOnInit(){const e=this.activatedRoute.snapshot.queryParamMap;this.sortBy=e.get("sortBy"),this.sortOrder=e.get("sortOrder")??null,this.activatedRoute.params.pipe(this.takeUntilDestroyed()).subscribe(o=>{this.conNo=o.contractnumber,this.fpID=o.fpID,this.fpName=o.fpName,this.fpExist=!1,this.fpID&&(this.routes=[{name:"contract",number:`#${this.conNo}`,route:`/contract/overview/details/${this.conNo}`},{name:"menu.contract.webhosting.folder-protection.label",route:`/contract/folder-protections/overview/${this.conNo}`},{name:"menu.contract.webhosting.folder-protection.tabs.user",route:`/contract/folder-protections/users/${this.conNo}/${this.fpID}`}]),this.reloadData()})}onSortChange(e){this.sortBy=e.sortBy,this.sortOrder=e.sortOrder,this.offset=0,this.filterSortUrl.updateParams(this.router,this.activatedRoute,{sortBy:e.sortBy,sortOrder:e.sortOrder,offset:null}),this.reloadData()}fetchData(){return(this.fpID?this.folderProtectionService.loadFPUserByFPIDPaginated(this.fpID,{offset:this.offset,limit:this.limit,query:this.searchSubject.getValue(),sortBy:this.sortBy,sortOrder:this.sortOrder}):this.folderProtectionService.loadFPUserByConNoPaginated(this.conNo,{offset:this.offset,limit:this.limit,query:this.searchSubject.getValue(),sortBy:this.sortBy,sortOrder:this.sortOrder})).pipe((0,y.W)(()=>(this.notificationService.error("notification.error.default"),(0,U.of)({itemsTotal:0,items:[]}))),o=>new tt.c(i=>o.subscribe({next:n=>{this._allUsers=n.items,n.items.length>0&&(this.fpExist=!0,this.fpID&&(this.fpName=n.items[0].FolderProtection.Name)),i.next({itemsTotal:n.itemsTotal,items:this._toTableRows(n.items)}),i.complete()},error:n=>i.error(n)})))}_toTableRows(e){return e.map(o=>({ID:o.ID,Username:o.Username,FolderProtection:o.FolderProtection.Name,FolderProtectionID:o.FolderProtectionID,canDelete:this._checkUserDeletion(e,o.FolderProtectionID)}))}_checkUserDeletion(e,o){return e.filter(i=>i.FolderProtectionID===o).length>1}openModal(e){this.modalService.component=it,this.modalService.size="regular",this.modalService.openModal();const o=this.modalService.componentRef.instance;o.conNo=this.conNo,e?e.user?(o.fpUserEdit=e.user,o.fp={id:e.user.FolderProtectionID.toString(),name:e.user.FolderProtection.Name},o.fpUserEditChange.subscribe(()=>{this.reloadData()})):(e.fp&&(o.fp=e.fp),o.fpUserNew&&o.fpUserNew.subscribe(()=>{this.reloadData()})):(o.fpUsers=this._allUsers,o.fpUserNew&&o.fpUserNew.subscribe(()=>{this.reloadData()}))}onSubmit(e){e?this.openModal({fp:{id:e,name:this.fpName}}):this.openModal()}onEditFPUser(e,o){const i=this._allUsers.find(n=>n.ID===o);i&&this.openModal({user:i})}openDeleteModal(e){this.modalService.component=E.M,this.modalService.size="regular",this.modalService.openModal();const o=this.modalService.componentRef.instance;o.confirmation={title:"modal.warning",prompt:"modal.webhosting.folder-protection.delete.text1",confirmName:"delete"},o.confirm.subscribe(i=>{i&&this.folderProtectionService.removeFPUser(e).subscribe({next:()=>{this.reloadData(),this.notificationService.success("notification.success.delete.folder-protection.user")},error:()=>{this.notificationService.error("notification.error.delete.folder-protection.user")}}),this.modalService.closeModal()})}static \u0275fac=function(o){return new(o||r)(t.rXU(b),t.rXU(f.nX),t.rXU(v.B),t.rXU(F.J),t.rXU(f.Ix),t.rXU(z.T))};static \u0275cmp=t.VBU({type:r,selectors:[["app-folder-protection-users"]],features:[t.Vt3],decls:39,vars:50,consts:[["basicTable",""],["paginationItemRender","appPaginationItemRender"],["actionTpl",""],[1,"mb-8"],[1,"d-flex","d-flex--down-lg-block","d-flex-gap-5","align-center"],["class","d-block mb-3",3,"text","clickEvent",4,"ngIf"],[1,"subline"],[1,"mb-4","flex","justify-end",3,"searchChange"],[1,"w-full","overflow-x-auto"],["nzShowSizeChanger","",1,"min-w-[1000px]",3,"nzPageIndexChange","nzPageSizeChange","nzData","nzLoading","nzBordered","nzSize","nzFrontPagination","nzShowPagination","nzPageSize","nzPageIndex","
1nzTotal","nzItemRender"],["appSortableColumn","username",3,"sortChange","activeSortBy","activeSortOrder"],["appSortableColumn","realm",3,"sortChange","activeSortBy","activeSortOrder"],["nzWidth","200px"],[3,"pageIndex","pageSize","totalItems"],[1,"d-block","mb-3",3,"clickEvent","text"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["title","pages.contract.webhosting.folder-protection.actions.edit",3,"clickEvent","icon"],["title","pages.contract.webhosting.folder-protection.actions.delete",3,"clickEvent","icon"]],template:function(o,i){if(1&o){const n=t.RV6();t.j41(0,"app-card")(1,"div",3)(2,"div",4)(3,"h3"),t.EFF(4),t.nI1(5,"translate"),t.nI1(6,"translate"),t.k0s(),t.DNE(7,st,2,3,"app-add-button",5),t.k0s(),t.j41(8,"p",6),t.EFF(9),t.nI1(10,"translate"),t.nI1(11,"translate"),t.k0s()(),t.j41(12,"app-search",7),t.bIt("searchChange",function(a){return t.eBV(n),t.Njj(i.onSearchChange(a))}),t.k0s(),t.j41(13,"div",8)(14,"nz-table",9,0),t.nI1(16,"async"),t.bIt("nzPageIndexChange",function(a){return t.eBV(n),t.Njj(i.pageIndexChange(a))})("nzPageSizeChange",function(a){return t.eBV(n),t.Njj(i.pageSizeChange(a))}),t.j41(17,"thead")(18,"tr")(19,"th",10),t.bIt("sortChange",function(a){return t.eBV(n),t.Njj(i.onSortChange(a))}),t.EFF(20),t.nI1(21,"translate"),t.k0s(),t.j41(22,"th",11),t.bIt("sortChange",function(a){return t.eBV(n),t.Njj(i.onSortChange(a))}),t.EFF(23),t.nI1(24,"translate"),t.k0s(),t.j41(25,"th"),t.EFF(26),t.nI1(27,"translate"),t.k0s(),t.j41(28,"th",12),t.EFF(29),t.nI1(30,"translate"),t.k0s()()(),t.j41(31,"tbody"),t.Z7z(32,lt,9,7,"tr",null,nt),t.k0s()(),t.nrm(34,"app-pagination-item-render",13,1),t.nI1(36,"async"),t.k0s()(),t.DNE(37,ct,2,4,"ng-template",null,2,t.C5r)}if(2&o){let n,l;const a=t.sdS(15),w=t.sdS(35);t.R7$(4),t.SpI(" ",i.fpID?t.i5U(6,26,"pages.contract.webhosting.folder-protection.user.title",t.eq3(46,V,"'"+i.fpName+"'")):t.bMT(5,24,"pages.contract.webhosting.folder-protection.users.title")," "),t.R7$(3),t.Y8G("ngIf",i.fpExist||i.fpName),t.R7$(2),t.SpI(" ",i.fpID?t.i5U(11,31,"pages.contract.webhosting.folder-protection.user.text",t.eq3(48,V,"'"+i.fpName+"'")):t.bMT(10,29,"pages.contract.webhosting.folder-protection.users.text")," "),t.R7$(5),t.Y8G("nzData",i.entities)("nzLoading",i.isLoading)("nzBordered",!0)("nzSize","middle")("nzFrontPagination",!1)("nzShowPagination",i.showPagination)("nzPageSize",i.limit)("nzPageIndex",i.offset?i.offset/i.limit+1:1)("nzTotal",null!==(n=t.bMT(16,34,i.total))&&void 0!==n?n:0)("nzItemRender",w.template),t.R7$(5),t.Y8G("activeSortBy",i.sortBy)("activeSortOrder",i.sortOrder),t.R7$(),t.SpI(" ",t.bMT(21,36,"pages.contract.webhosting.folder-protection.users.table.user")," "),t.R7$(2),t.Y8G("activeSortBy",i.sortBy)("activeSortOrder",i.sortOrder),t.R7$(),t.SpI(" ",t.bMT(24,38,"pages.contract.webhosting.folder-protection.users.table.fp")," "),t.R7$(3),t.SpI(" ",t.bMT(27,40,"pages.contract.webhosting.folder-protection.users.table.fp-id")," "),t.R7$(3),t.SpI(" ",t.bMT(30,42,"pages.contract.webhosting.folder-protection.users.table.action")," "),t.R7$(3),t.Dyx(a.data),t.R7$(2),t.Y8G("pageIndex",a.nzPageIndex)("pageSize",a.nzPageSize)("totalItems",null!==(l=t.bMT(36,44,i.total))&&void 0!==l?l:0)}},dependencies:[p.bT,p.T3,d.CP,d.SO,d._4,d.IL,d.aj,d.kt,j.m,B.v,M.i,k.x,$.X,O.S,p.Jj,h.D9],styles:[".disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.2}"]})}return r})();var dt=s(2771),pt=s(2989),ft=s(2569),ht=s(5907),ut=s(1749),mt=s(8777),gt=s(8242);function bt(r,c){if(1&r&&t.nrm(0,"app-breadcrumbs",2),2&r){const e=t.XpG();t.Y8G("breadcrumbs",e.routes)}}let vt=(()=>{class r extends pt.${Router;Route;Tabs;Translate;Guard;CD;_tabTrans=["menu.contract.webhosting.folder-protection.tabs.overview","menu.contract.webhosting.folder-protection.tabs.user"];_conNo;_tabs=[{title:"",url:"/contract/folder-protections/overview/"},{title:"",url:"/contract/folder-protections/users/"}];tabsSubject=new dt.m;routes;get conNo(){return this._conNo}constructor(e,o,i,n,l,a){super(),this.Router=e,this.Route=o,this.Tabs=i,this.Translate=n,this.Guard=l,this.CD=a}ngOnInit(){this.Route.firstChild&&this.Route.firstChild.params.pipe(this.takeUntilDestroyed()).subscribe(e=>{this._conNo=e.contractnumber,this.routes=[{name:"contract",number:`#${this._conNo}`,route:`/contract/overview/details/${this._conNo}`},{name:"menu.contract.webhosting.folder-protection.label",route:`/contract/folder-protections/overview/${this._conNo}`}]}),this.Translate.get(this._tabTrans).pipe(this.takeUntilDestroyed()).subscribe(e=>{for(let o=0;o<this._tabs.length;o++)this._tabs[o].title=Object.entries(e)[o][1]}),this.Translate.onLangChange.pipe(this.takeUntilDestroyed()).subscribe(()=>{this.Translate.stream(this._tabTrans).pipe(this.takeUntilDestroyed()).subscribe(e=>{this.CD.detectChanges();for(let o=0;o<this._tabs.length;o++)this._tabs[o].title=Object.entries(e)[o][1]})}),(0,ft.h)(this.Router,this._tabs,this._conNo),this.Guard.getPermissions().pipe(this.takeUntilDestroyed()).subscribe(e=>{if(e){const o=this._tabs.filter(i=>i.permission?this.Guard.checkPermissions(e,i.permission,this._conNo)&&i:i);this.Tabs.tabs=this._tabs,this.tabsSubject.next(o),this.tabsSubject.complete()}})}static \u0275fac=function(o){return new(o||r)(t.rXU(f.Ix),t.rXU(f.nX),t.rXU(ht.q),t.rXU(h.c$),t.rXU(ut.k),t.rXU(t.gRc))};static \u0275cmp=t.VBU({type:r,selectors:[["app-folder-protection"]],features:[t.Vt3],decls:4,vars:4,consts:[["class","d-block mb-7",3,"breadcrumbs",4,"ngIf"],[3,"tabs"],[1,"d-block","mb-7",3,"breadcrumbs"]],template:function(o,i){1&o&&(t.DNE(0,bt,1,1,"app-breadcrumbs",0),t.j41(1,"app-tabs",1),t.nI1(2,"async"),t.nrm(3,"router-outlet"),t.k0s()),2&o&&(t.Y8G("ngIf",i.routes),t.R7$(),t.Y8G("tabs",t.bMT(2,2,i.tabsSubject)))},dependencies:[p.bT,f.n3,mt.m,gt.O,p.Jj]})}return r})();var P=s(3072);const Ft=[{path:"",component:vt,children:[{path:"overview/:contractnumber",component:q,canActivate:[P.q]},{path:"users/:contractnumber",component:G,canActivate:[P.q]},{path:"users/:contractnumber/:fpID/:fpName",component:G,canActivate:[P.q]}],canActivate:[P.q]}];let Pt=(()=>{class r{static \u0275fac=function(o){return new(o||r)};static \u0275mod=t.$C({type:r});static \u0275inj=t.G2t({imports:[f.iI.forChild(Ft),f.iI]})}return r})(),It=(()=>{class r{static \u0275fac=function(o){return new(o||r)};static \u0275mod=t.$C({type:r});static \u0275inj=t.G2t({imports:[p.MD,Pt,x.G,h.h.forChild(),N]})}return r})()}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.