PageSourceSearch

https://login.webgo.de/223.990b0ec177225068.js

js webgo.de collected 2026-10-09 22:39:59 UTC 23,102 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkcontrol_panel=self.webpackChunkcontrol_panel||[]).push([[223],{223:(St,w,s)=>{s.r(w),s.d(w,{FtpModule:()=>Ft});var h=s(177),p=s(3955),R=s(9572),t=s(4438),m=s(9417),_=s(6329),P=s(5190),b=s(2989),I=s(9943),F=s(2041),C=s(5783);const j=["form"];function D(o,d){1&o&&(t.qex(0),t.EFF(1),t.nI1(2,"translate"),t.bVm()),2&o&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"modal.webhosting.ftp.title1")," "))}function k(o,d){1&o&&(t.EFF(0),t.nI1(1,"translate")),2&o&&t.SpI(" ",t.bMT(1,1,"modal.webhosting.ftp.title2")," ")}function U(o,d){if(1&o&&(t.qex(0),t.nrm(1,"app-input",5)(2,"app-input",5),t.bVm()),2&o){const e=t.XpG();t.R7$(),t.Y8G("field",e.passwordField),t.R7$(),t.Y8G("field",e.passwordConfirmField)}}let x=(()=>{class o extends b.${FTP;CD;Modal;Notification;form;edit;ftpEdit;ftpEditChange=new t.bkB;ftpNew=new t.bkB;_notTrans=["notification.success.post.ftp","notification.success.delete.ftp","notification.error.default","notification.error.code.V101","notification.error.post.ftp","notification.error.delete.ftp","notification.warning.mandatory"];body;homeDirField;quotaField;passwordField;passwordConfirmField;commentEditField;likeMainUserField;pw=!1;constructor(e,n,i,a){super(),this.FTP=e,this.CD=n,this.Modal=i,this.Notification=a,this.homeDirField=this.FTP.homeDirField,this.quotaField=this.FTP.quotaField,this.passwordField=this.FTP.passwordField,this.passwordConfirmField=this.FTP.passwordConfirmField,this.commentEditField=this.FTP.commentField,this.likeMainUserField=this.FTP.likeMainUserField}ngOnInit(){this.homeDirField.class={field:void 0},this.quotaField.class={field:void 0},this.passwordField.class={field:void 0},this.passwordConfirmField.class={field:void 0}}ngAfterViewInit(){setTimeout(()=>{this.form.reset(),this.ftpEdit&&this.ftpEdit&&this._patchesEditValues(this.ftpEdit)},0)}_patchesEditValues(e){this.form.controls.homedir.patchValue(e.homedir),this.form.controls.quota.patchValue(e.quota),this.form.controls.comment.patchValue(e.comment),this.form.controls.LikeMainUser.patchValue(e.LikeMainUser)}getValueChanged(e){switch(e.field.id){case"homedir":this.body.homedir=e.value;break;case"quota":this.body.quota=e.value;break;case"comment":this.body.comment=e.value}}_onSubmitFTP(e,n){if(e.preventDefault(),n.valid){const i={contract_id:NaN,homedir:n.controls.homedir.value.trim(),quota:n.controls.quota.value,comment:n.controls.comment.value?n.controls.comment.value.trim():"",LikeMainUser:n.controls.LikeMainUser.value,password:n.controls.password.value.trim()};this.ftpNew.emit(i)}else this.Notification.warning("notification.warning.mandatory"),n.control.markAllAsTouched(),this.homeDirField.class={field:void 0},this.quotaField.class={field:void 0},this.passwordField.class={field:void 0},this.passwordConfirmField.class={field:void 0},this.CD.detectChanges(),n.controls.homedir.invalid&&(this.homeDirField.class={field:"warning"}),n.controls.quota.invalid&&(this.quotaField.class={field:"warning"}),n.controls.password.invalid&&(this.passwordField.class={field:"warning"}),n.controls.confirm_password.invalid&&(this.passwordConfirmField.class={field:"warning"})}onSubmitFTP(e,n){return this._onSubmitFTP(e,n)}onEditFTP(e,n){e.preventDefault(),n.valid?(this.ftpEdit.homedir=n.controls.homedir.value.trim(),this.ftpEdit.quota=n.controls.quota.value,this.ftpEdit.comment=n.controls.comment.value.trim(),this.ftpEdit.LikeMainUser=n.controls.LikeMainUser.value,this.ftpEditChange.emit(this.ftpEdit)):(this.Notification.warning("notification.warning.mandatory"),n.control.markAllAsTouched(),this.homeDirField.class={field:void 0},this.quotaField.class={field:void 0},this.CD.detectChanges(),n.controls.homedir.invalid&&(this.homeDirField.class={field:"warning"}),n.controls.quota.invalid&&(this.quotaField.class={field:"warning"}))}cancel(){this.Modal.closeModal()}static \u0275fac=function(n){return new(n||o)(t.rXU(I.s),t.rXU(t.gRc),t.rXU(F.B),t.rXU(C.J))};static \u0275cmp=t.VBU({type:o,selectors:[["app-ftp-modal"]],viewQuery:function(n,i){if(1&n&&t.GBs(j,5),2&n){let a;t.mGM(a=t.lsd())&&(i.form=a.first)}},inputs:{edit:"edit",ftpEdit:"ftpEdit"},outputs:{ftpEditChange:"ftpEditChange",ftpNew:"ftpNew"},standalone:!0,features:[t.Vt3,t.aNF],decls:16,vars:13,consts:[["editFtp",""],["form","ngForm"],[1,"mb-4"],[4,"ngIf","ngIfElse"],["name","form",3,"ngSubmit"],[3,"field"],[4,"ngIf"],[1,"button-container-end","button-spacing-top","d-flex-gap-2","mb-4"],["theme","text",3,"clickEvent","title"],["btnType","submit","theme","primary",3,"title"]],template:function(n,i){if
1(1&n){const a=t.RV6();t.j41(0,"h3",2),t.DNE(1,D,3,3,"ng-container",3)(2,k,2,3,"ng-template",null,0,t.C5r),t.k0s(),t.j41(4,"form",4,1),t.bIt("ngSubmit",function(r){t.eBV(a);const g=t.sdS(5);return t.Njj(i.edit?i.onEditFTP(r,g):i.onSubmitFTP(r,g))}),t.nrm(6,"app-input",5)(7,"app-input",5)(8,"app-input",5)(9,"app-input",5),t.DNE(10,U,3,2,"ng-container",6),t.j41(11,"div",7)(12,"app-button",8),t.nI1(13,"translate"),t.bIt("clickEvent",function(){return t.eBV(a),t.Njj(i.cancel())}),t.k0s(),t.nrm(14,"app-button",9),t.nI1(15,"translate"),t.k0s()()}if(2&n){const a=t.sdS(3);t.R7$(),t.Y8G("ngIf",!i.edit)("ngIfElse",a),t.R7$(5),t.Y8G("field",i.homeDirField),t.R7$(),t.Y8G("field",i.quotaField),t.R7$(),t.Y8G("field",i.commentEditField),t.R7$(),t.Y8G("field",i.likeMainUserField),t.R7$(),t.Y8G("ngIf",!i.edit),t.R7$(2),t.Y8G("title",t.bMT(13,9,"cancel")),t.R7$(2),t.Y8G("title",t.bMT(15,11,"save"))}},dependencies:[h.MD,h.bT,m.YN,m.qT,m.cb,m.cV,p.h,p.D9,P.S,_.Q],styles:[".link[_ngcontent-%COMP%]{text-decoration:underline;text-decoration-color:#ccc;text-underline-offset:40%}.link[_ngcontent-%COMP%]:hover, .link[_ngcontent-%COMP%]:active, .link.selected[_ngcontent-%COMP%]{color:#8c94a2;text-decoration-color:#8c94a2;cursor:pointer}"]})}return o})();var l=s(4710),u=s(9437),v=s(7673),S=s(4841),$=s(604),N=s(8540),G=s(9402),z=s(9170),y=s(1285),B=s(7039),X=s(60),f=s(3359),V=s(9039),A=s(8493),E=s(8663),O=s(8435),M=s(3473),L=s(7217),Y=s(2423);const J=(o,d)=>d.ID;function W(o,d){1&o&&t.nrm(0,"app-loading-app-card",2),2&o&&t.Y8G("rows",6)("showTitle",!0)}function Q(o,d){if(1&o){const e=t.RV6();t.j41(0,"app-add-button",18),t.nI1(1,"translate"),t.bIt("clickEvent",function(){t.eBV(e);const i=t.XpG(2);return t.Njj(i.onSubmitFTP())}),t.k0s()}2&o&&t.Y8G("text",t.bMT(1,1,"add.ftp"))}function H(o,d){if(1&o&&t.EFF(0),2&o){const e=t.XpG(2);t.SpI(" ",e.ftpAmount," ")}}function K(o,d){if(1&o&&t.nrm(0,"fa-icon",10),2&o){const e=t.XpG(2);t.Y8G("icon",e.faInfinity)}}function Z(o,d){if(1&o){const e=t.RV6();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.EFF(8),t.k0s(),t.j41(9,"td")(10,"div",19)(11,"app-icon-button",20),t.bIt("clickEvent",function(i){const a=t.eBV(e).$implicit,c=t.XpG(2);return t.Njj(c.onEditFTP(i,a.ID))}),t.k0s(),t.j41(12,"app-icon-button",21),t.bIt("clickEvent",function(i){const a=t.eBV(e).$implicit,c=t.XpG(2);return t.Njj(c.onEditPassFTP(i,a.ID))}),t.k0s(),t.j41(13,"app-icon-button",22),t.bIt("clickEvent",function(i){const a=t.eBV(e).$implicit,c=t.XpG(2);return t.Njj(c.openDeleteModal(i,a.ID,a.username))}),t.k0s()()()()}if(2&o){const e=d.$implicit,n=t.XpG(2);t.R7$(2),t.SpI(" ",e.username," "),t.R7$(2),t.JRh(e.homedir),t.R7$(2),t.JRh(e.quota),t.R7$(2),t.JRh(e.comment),t.R7$(3),t.AVh("inactive",e.username===n.productUser),t.Y8G("icon",n.faPenToSquare),t.R7$(),t.Y8G("icon",n.faKey),t.R7$(),t.AVh("inactive",e.username===n.productUser),t.Y8G("icon",n.faTrash)}}function q(o,d){if(1&o){const e=t.RV6();t.j41(0,"app-card")(1,"div",3)(2,"div",4)(3,"h3",5),t.EFF(4),t.nI1(5,"translate"),t.k0s(),t.DNE(6,Q,2,3,"app-add-button",6),t.k0s(),t.j41(7,"p",7),t.EFF(8),t.nI1(9,"translate"),t.k0s()(),t.j41(10,"div",8)(11,"p",9),t.EFF(12),t.nI1(13,"translate"),t.j41(14,"strong"),t.EFF(15),t.nI1(16,"async"),t.nI1(17,"translate"),t.DNE(18,H,1,1)(19,K,1,1,"fa-icon",10),t.k0s()(),t.j41(20,"app-search",11),t.bIt("searchChange",function(i){t.eBV(e);const a=t.XpG();return t.Njj(a.onSearchChange(i))}),t.k0s()(),t.j41(21,"div",12)(22,"nz-table",13,0),t.nI1(24,"async"),t.bIt("nzPageIndexChange",function(i){t.eBV(e);const a=t.XpG();return t.Njj(a.pageIndexChange(i))})("nzPageSizeChange",function(i){t.eBV(e);const a=t.XpG();return t.Njj(a.pageSizeChange(i))}),t.j41(25,"thead")(26,"tr")(27,"th",14),t.bIt("sortChange",function(i){t.eBV(e);const a=t.XpG();return t.Njj(a.onSortChange(i))}),t.EFF(28),t.nI1(29,"translate"),t.k0s(),t.j41(30,"th",15),t.bIt("sortChange",function(i){t.eBV(e);const a=t.XpG();return t.Njj(a.onSortChange(i))}),t.EFF(31),t.nI1(32,"translate"),t.k0s(),t.j41(33,"th",16),t.bIt("sortChange",function(i){t.eBV(e);const a=t.XpG();return t.Njj(a.onSortChange(i))}),t.EFF(34),t.nI1(35,"translate"),t.k0s(),t.j41(36,"th"),t.EFF(37),t.nI1(38,"translate"),t.k0s(),t.j41(39,"th"),t.EFF(40),t.nI1(41,"translate"),t.k0s()()(),t.j41(42,"tbody"),t.Z7z(43,Z,14,11,"tr",null,J),t.k0s()(),t.nrm(45,"app-pagination-item-render",17,1),t.nI1(47,"async"),t.k0s()()}if(2&o){let e,n,i;
1const a=t.sdS(23),c=t.sdS(46),r=t.XpG();t.R7$(4),t.SpI(" ",t.bMT(5,31,"pages.contract.webhosting.ftp.title2")," "),t.R7$(2),t.vxM(r.canAddFTP?6:-1),t.R7$(2),t.SpI(" ",t.bMT(9,33,"pages.contract.webhosting.ftp.text1")," "),t.R7$(4),t.SpI(" ",t.bMT(13,35,"featureLimits.ftp")," - "),t.R7$(3),t.Lme(" ",(null!==(e=t.bMT(16,37,r.total))&&void 0!==e?e:1)-1," ",t.bMT(17,39,"featureLimits.from")," "),t.R7$(3),t.vxM(-1!==r.ftpAmount?18:19),t.R7$(4),t.Y8G("nzData",r.entities)("nzLoading",r.isLoading)("nzBordered",!0)("nzSize","middle")("nzFrontPagination",!1)("nzShowPagination",r.showPagination)("nzPageSize",r.limit)("nzPageIndex",r.offset?r.offset/r.limit+1:1)("nzTotal",null!==(n=t.bMT(24,41,r.total))&&void 0!==n?n:0)("nzItemRender",c.template),t.R7$(5),t.Y8G("activeSortBy",r.sortBy)("activeSortOrder",r.sortOrder),t.R7$(),t.SpI(" ",t.bMT(29,43,"pages.contract.webhosting.ftp.table.user")," "),t.R7$(2),t.Y8G("activeSortBy",r.sortBy)("activeSortOrder",r.sortOrder),t.R7$(),t.SpI(" ",t.bMT(32,45,"pages.contract.webhosting.ftp.table.path")," "),t.R7$(2),t.Y8G("activeSortBy",r.sortBy)("activeSortOrder",r.sortOrder),t.R7$(),t.SpI(" ",t.bMT(35,47,"pages.contract.webhosting.ftp.table.memory")," "),t.R7$(3),t.SpI(" ",t.bMT(38,49,"pages.contract.webhosting.ftp.table.comment")," "),t.R7$(3),t.SpI(" ",t.bMT(41,51,"pages.contract.webhosting.ftp.table.action")," "),t.R7$(3),t.Dyx(a.data),t.R7$(2),t.Y8G("pageIndex",a.nzPageIndex)("pageSize",a.nzPageSize)("totalItems",null!==(i=t.bMT(47,53,r.total))&&void 0!==i?i:0)}}let tt=(()=>{class o extends N.z{activatedRoute;ftpService;contractService;modalService;translateService;notificationService;router;filterSortUrl;_ftpEditId;_conID;conNo;productUser;faKey=S.bMg;faPenToSquare=S.LFz;faTrash=S.yLS;ftpAmount;faInfinity=$.C8j;canAddFTP;isContractLoading=!0;sortBy=null;sortOrder=null;constructor(e,n,i,a,c,r,g,Ct){super(),this.activatedRoute=e,this.ftpService=n,this.contractService=i,this.modalService=a,this.translateService=c,this.notificationService=r,this.router=g,this.filterSortUrl=Ct}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(n=>{this.conNo=n.contractnumber,this.isContractLoading=!0,this.contractService.getContractForContext(this.conNo).pipe((0,u.W)(()=>(this.notificationService.error("notification.error.default"),(0,v.of)(void 0))),this.takeUntilDestroyed()).subscribe(i=>{i&&(this.canAddFTP=0!==i.tariff.ftp,this.ftpAmount=i.tariff.ftp,this.productUser=i.product_user),this.isContractLoading=!1}),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.ftpService.loadFTPPaginated(this.conNo,{offset:this.offset,limit:this.limit,query:this.searchSubject.getValue(),sortBy:this.sortBy,sortOrder:this.sortOrder}).pipe((0,u.W)(()=>(this.notificationService.error("notification.error.default"),(0,v.of)({itemsTotal:0,items:[]})))):(0,v.of)({itemsTotal:0,items:[]})}_createHttpBody(e){const n={homedir:e.homedir,quota:e.quota,comment:e.comment,LikeMainUser:e.LikeMainUser};return e.password&&(n.password=e.password),n}_openModal(e){this.modalService.component=x,this.modalService.size="regular",this.modalService.openModal();const n=this.modalService.componentRef.instance;e&&(n.edit=!0,n.ftpEdit=e),n.ftpNew&&n.ftpNew.subscribe(i=>{this._getConID(this.conNo,i)}),n.ftpEditChange&&n.ftpEditChange.subscribe(i=>{this._ftpEdit(i)})}onSubmitFTP(){this._openModal()}_submitFTP(e,n){const i=this._createHttpBody(n);i.contract_id=e,this.ftpService.submitFTP(i).subscribe({next:()=>{this.reloadData(),this.modalService.closeModal(),this.notificationService.success("notification.success.post.ftp")},error:a=>{this.ftpService.notifyFtpError(a.error)}})}_getConID(e,n){this.contractService.getContractForContext(e).pipe((0,u.W)(()=>(this.notificationService.error("notification.error.default"),(0,v.of)(void 0))),this.takeUntilDestroyed()).subscribe(i=>{i&&(this._conID=i.ID,this._submitFTP(this._conID,n))})}onEditFTP(e,n){e.preventDefault(),this._ftpEditId=n,this._openModal(this.entities.find(i=>i.ID===this._ftpEditId))}onEditPassFTP(e,n){e.preventDefault(),this._ftpEditId=n;const i=this.entities.find(c=>c.ID===this._ftpEditId);this.modalService.component=z.c,this.modalService.openModal();const a=this.modalService.componentRef.instance;a.passwordConfig={headline:"modal.webhosting.ftp.changePw.headline",title:this.translateService.instant("modal.webhosting.ftp.changePw.subline",{ftpUsername:i?.username})},a.password.subscribe(c=>{i.password=c.password,i&&this._ftpEdit(i,i.username)})}_ftpEdit(e,n){n===this.productUser&&e.password?this.ftpService.changeMainFtpUserPw(this.conNo,{password:e.password}).subscribe({next:()=>{this.notificationService.success("notification.success.patch.changeMainFTPPw"),this.modalService.closeModal()},error:()=>{this.notificationService.error("notification.error.patch.changeMainFTPPw")}}):this._ftpEditId?this.ftpService.updateFTP(this._ftpEditId,this._createHttpBody(e)).subscribe({next:()=>{this.reloadData(),this._ftpEditId=null,this.modalService.closeModal(),this.notificationService.success("notification.success.post.ftp")},error:i=>
1{this.ftpService.notifyFtpError(i.error)}}):this.notificationService.error("notification.error.default")}openDeleteModal(e,n,i){e.preventDefault(),this.modalService.component=G.M,this.modalService.openModal();const a=this.modalService.componentRef.instance;a.confirmation={title:this.translateService.instant("modal.webhosting.ftp.delete.headline",{ftpUsername:i}),prompt:"modal.webhosting.ftp.delete.prompt",confirmName:"delete"},a.confirm.subscribe(c=>{c&&this.ftpService.removeFTP(n).subscribe({next:()=>{this.reloadData(),this.notificationService.success("notification.success.delete.ftp")},error:()=>{this.notificationService.error("notification.error.delete.ftp")}}),this.modalService.closeModal()})}static \u0275fac=function(n){return new(n||o)(t.rXU(l.nX),t.rXU(I.s),t.rXU(y.y),t.rXU(F.B),t.rXU(p.c$),t.rXU(C.J),t.rXU(l.Ix),t.rXU(B.T))};static \u0275cmp=t.VBU({type:o,selectors:[["app-ftp-additional"]],features:[t.Vt3],decls:2,vars:1,consts:[["basicTable",""],["paginationItemRender","appPaginationItemRender"],[3,"rows","showTitle"],[1,"mb-8"],[1,"d-flex","d-flex--down-lg-block","d-flex-gap-5","align-center"],[1,"mb-3"],[1,"mb-3",3,"text"],[1,"subline"],[1,"flex","justify-between","items-end"],[1,"small-text"],[1,"xsmall-text",3,"icon"],[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","username",3,"sortChange","activeSortBy","activeSortOrder"],["appSortableColumn","home_dir",3,"sortChange","activeSortBy","activeSortOrder"],["appSortableColumn","quota",3,"sortChange","activeSortBy","activeSortOrder"],[3,"pageIndex","pageSize","totalItems"],[1,"mb-3",3,"clickEvent","text"],[1,"d-flex","d-flex-gap-1"],["title","pages.contract.webhosting.ftp.edit",3,"clickEvent","icon"],["title","pages.contract.webhosting.ftp.changePassword",3,"clickEvent","icon"],["title","pages.contract.webhosting.ftp.delete",3,"clickEvent","icon"]],template:function(n,i){1&n&&t.DNE(0,W,1,2,"app-loading-app-card",2)(1,q,48,55,"app-card"),2&n&&t.vxM(i.isContractLoading?0:1)},dependencies:[X.aY,f.CP,f.SO,f._4,f.IL,f.aj,f.kt,V.m,A.v,E.i,O.x,M.z,L.X,Y.S,h.Jj,p.D9],styles:[".inactive[_ngcontent-%COMP%]{pointer-events:none;opacity:.2}"]})}return o})();var et=s(9654),nt=s(983),it=s(1985),ot=s(1425);function at(o,d){1&o&&(t.j41(0,"div",0)(1,"div",1),t.nrm(2,"app-loading-app-card",2),t.k0s(),t.j41(3,"div",3),t.nrm(4,"app-loading-app-card",2),t.k0s()()),2&o&&(t.R
17$(2),t.Y8G("rows",4)("showTitle",!0),t.R7$(2),t.Y8G("rows",3)("showTitle",!0))}function st(o,d){if(1&o&&(t.nrm(0,"app-data-list",4),t.nI1(1,"async")),2&o){const e=t.XpG(2);t.Y8G("list",t.bMT(1,1,e.listFTP))}}function rt(o,d){if(1&o&&(t.j41(0,"div",3)(1,"app-card")(2,"div",7)(3,"h3",8),t.EFF(4),t.nI1(5,"translate"),t.k0s(),t.j41(6,"p",9),t.EFF(7),t.nI1(8,"translate"),t.k0s()(),t.j41(9,"div",10),t.nrm(10,"app-button",11),t.nI1(11,"translate"),t.k0s()()()),2&o){const e=t.XpG(2);t.R7$(4),t.SpI(" ",t.bMT(5,5,"pages.contract.webhosting.ftp.webftpTitle")," "),t.R7$(3),t.SpI(" ",t.bMT(8,7,"pages.contract.webhosting.ftp.webftpSubtitle")," "),t.R7$(3),t.Y8G("disabled",!e.webFtpLink)("title",t.bMT(11,9,"pages.contract.webhosting.ftp.webftpBtn"))("link",e.webFtpLink)}}function ct(o,d){if(1&o){const e=t.RV6();t.j41(0,"div",0)(1,"div",1)(2,"app-card"),t.DNE(3,st,2,3,"app-data-list",4),t.j41(4,"div",5)(5,"app-button",6),t.nI1(6,"translate"),t.bIt("clickEvent",function(){t.eBV(e);const i=t.XpG();return t.Njj(i.openModal())}),t.k0s()()()(),t.DNE(7,rt,12,11,"div",3),t.k0s()}if(2&o){const e=t.XpG();t.R7$(3),t.vxM(e.contract&&e.listFTP?3:-1),t.R7$(2),t.Y8G("title",t.bMT(6,3,"pages.contract.webhosting.overview.card3.change-pw-btn")),t.R7$(2),t.vxM(e.contract?7:-1)}}let dt=(()=>{class o extends b.${route;modal;contractService;notificationService;conNo;contract;listFTP;isLoading=!0;webFtpLink="";constructor(e,n,i,a){super(),this.route=e,this.modal=n,this.contractService=i,this.notificationService=a}ngOnInit(){this.route.params.pipe(this.takeUntilDestroyed()).subscribe(e=>{this.conNo=e.contractnumber,this.isLoading=!0,this.contract=void 0,this.webFtpLink="",this.contractService.getContractForContext(this.conNo).pipe((0,u.W)(()=>(this.isLoading=!1,this.notificationService.error("notification.error.default"),nt.w)),this.takeUntilDestroyed()).subscribe(n=>{n?(this._setListFTP(n),this.contract=n,this.webFtpLink=n.WebFTP||"",this.isLoading=!1):this.isLoading=!1})})}_setListFTP(e){this.listFTP=new it.c(n=>{n.next({id:"",name:"pages.contract.webhosting.overview.card3.text1",lists:[{keyword:"pages.contract.webhosting.overview.card3.server-host",text:e.server.servername},{keyword:"pages.contract.webhosting.overview.card3.main-user",text:e.product_user},{keyword:"pages.contract.webhosting.overview.card3.standard-port-ftp",text:"21"},{keyword:"pages.contract.webhosting.overview.card3.secure-port-sftp",text:"22"}]})})}openModal(){if(!this.contract)return;this.modal.component=et.x,this.modal.size="regular",this.modal.openModal();const e=this.modal.componentRef.instance;e.conNo=this.conNo,e.mainUserName=this.contract.product_user}static \u0275fac=function(n){return new(n||o)(t.rXU(l.nX),t.rXU(F.B),t.rXU(y.y),t.rXU(C.J))};static \u0275cmp=t.VBU({type:o,selectors:[["app-ftp-overview"]],features:[t.Vt3],decls:2,vars:1,consts:[[1,"row"],[1,"col-12","col-xl-6"],[3,"rows","showTitle"],[1,"col-12","col-xl-6","max-[1199px]:mt-6"],[3,"list"],[1,"button-container-end","button-spacing-top"],[3,"clickEvent","title"],[1,"mb-8"],[1,"mb-3"],[1,"subline"],[1,"button-container-end"],["id","webftp",3,"disabled","title","link"]],template:function(n,i){1&n&&t.DNE(0,at,5,4,"div",0)(1,ct,8,5,"div",0),2&n&&t.vxM(i.isLoading?0:1)},dependencies:[_.Q,E.i,ot.q,M.z,h.Jj,p.D9]})}return o})();var lt=s(2771),pt=s(2569),ht=s(1749),ft=s(8777),mt=s(8242);function ut(o,d){if(1&o&&t.nrm(0,"app-breadcrumbs",0),2&o){const e=t.XpG();t.Y8G("breadcrumbs",e.routes)}}let vt=(()=>{class o extends b.${router;guard;translate;changeDetectorRef;route;tabTrans;conNo;tabs;tabsSubject=new lt.m;routes;constructor(e,n,i,a,c){super(),this.router=e,this.guard=n,this.translate=i,this.changeDetectorRef=a,this.route=c,this.tabTrans=["menu.contract.webhosting.ftp.tabs.overview","menu.contract.webhosting.ftp.tabs.additional"],this.tabs=[{title:"",url:"/contract/ftp/overview/"},{title:"",url:"/contract/ftp/additionalftp/"}]}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.ftp.label",route:`/contract/ftp/overview/${this.conNo}`}],(0,pt.h)(this.router,this.tabs,this.conNo)}),this.translate.get(this.tabTrans).pipe(this.takeUntilDestroyed()).subscribe(e=>{for(let n=0;n<this.tabs.length;n++)this.tabs[n].title=e[this.tabTrans[n]]}),this.translate.onLangChange.pipe(this.takeUntilDestroyed()).subscribe(()=>{this.translate.stream(this.tabTrans).pipe(this.takeUntilDestroyed()).subscribe(e=>{this.changeDetectorRef.detectChanges();for(let n=0;n<this.tabs.length;n++)this.tabs[n].title=e[this.tabTrans[n]]})}),this.guard.getPermissions().pipe(this.takeUntilDestroyed()).subscribe(e=>{e&&(this.tabsSubject.next(this.tabs),this.tabsSubject.complete())})}static \u0275fac=function(n){return new(n||o)(t.rXU(l.Ix),t.rXU(ht.k),t.rXU(p.c$),t.rXU(t.gRc),t.rXU(l.nX))};static \u0275cmp=t.VBU({type:o,selectors:[["app-ftp"]],features:[t.Vt3],decls:4,vars:4,consts:[[1,"d-block","mb-7",3,"breadcrumbs"],[3,"tabs"]],template:function(n,i){1&n&&(t.DNE(0,ut,1,1,"app-breadcrumbs",0),t.j41(1,"app-tabs",1),t.nI1(2,"async"),t.nrm(3,"router-outlet"),t.k0s()),2&n&&(t.vxM(i.routes?0:-1),t.R7$(),t.Y8G("tabs",t.bMT(2,2,i.tabsSubject)))},dependencies:[l.n3,ft.m,mt.O,h.Jj]})}return o}
1)();var T=s(3072);const gt=[{path:"",component:vt,children:[{path:"overview/:contractnumber",component:dt,canActivate:[T.q],runGuardsAndResolvers:"always"},{path:"webftp/:contractnumber",redirectTo:"overview/:contractnumber",pathMatch:"full"},{path:"additionalftp/:contractnumber",component:tt,canActivate:[T.q],runGuardsAndResolvers:"always"}],canActivate:[T.q],runGuardsAndResolvers:"always"}];let bt=(()=>{class o{static \u0275fac=function(n){return new(n||o)};static \u0275mod=t.$C({type:o});static \u0275inj=t.G2t({imports:[l.iI.forChild(gt),l.iI]})}return o})(),Ft=(()=>{class o{static \u0275fac=function(n){return new(n||o)};static \u0275mod=t.$C({type:o});static \u0275inj=t.G2t({imports:[h.MD,bt,R.G,p.h.forChild(),x]})}return o})()}}]);

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.