1"use strict";(self.webpackChunkcontrol_panel=self.webpackChunkcontrol_panel||[]).push([[206],{3206:(J,c,o)=>{o.r(c),o.d(c,{OverviewModule:()=>X});var v=o(177),p=o(3955),d=o(9572),i=o(4710),l=o(4572),h=o(604),g=o(2989),t=o(4438),w=o(1348),m=o(1285),F=o(60),u=o(1912),b=o(7064),_=o(8777),I=o(8663),R=o(2545),C=o(2707);const $=()=>({rows:18});function S(a,s){if(1&a&&t.nrm(0,"app-breadcrumbs",1),2&a){const e=t.XpG();t.Y8G("breadcrumbs",e.routes)}}function E(a,s){1&a&&t.nrm(0,"nz-skeleton",5),2&a&&t.Y8G("nzParagraph",t.lJ4(1,$))}function f(a,s){if(1&a&&(t.j41(0,"div")(1,"span",7),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span"),t.EFF(5),t.nI1(6,"date"),t.k0s()(),t.j41(7,"div")(8,"span",7),t.EFF(9),t.nI1(10,"translate"),t.k0s(),t.j41(11,"span"),t.EFF(12),t.nI1(13,"date"),t.k0s()()),2&a){const e=t.XpG(3);t.R7$(2),t.SpI(" ",t.bMT(3,4,"pages.contract.webhosting.overview.card1.possible-end-of-contract")," : "),t.R7$(3),t.JRh(t.i5U(6,6,e.contract.termination_on,"dd.MM.yyyy")||"-"),t.R7$(4),t.SpI(" ",t.bMT(10,9,"pages.contract.webhosting.overview.card1.last-possible-termination-date")," : "),t.R7$(3),t.JRh(t.i5U(13,11,e.contract.notice_period,"dd.MM.yyyy")||"-")}}function k(a,s){if(1&a&&(t.j41(0,"div")(1,"span",7),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span"),t.EFF(5),t.nI1(6,"date"),t.k0s()()),2&a){const e=t.XpG(3);t.R7$(2),t.SpI(" ",t.bMT(3,2,"pages.contract.webhosting.overview.card1.terminated")," : "),t.R7$(3),t.JRh(t.i5U(6,4,e.contract.contract_end,"dd.MM.yyyy"))}}function M(a,s){if(1&a){const e=t.RV6();t.j41(0,"app-php-extended-support-card",9),t.bIt("cardVisibilityChange",function(r){t.eBV(e);const U=t.XpG(3);return t.Njj(U.phpSupportCardVisible=r)}),t.k0s()}if(2&a){const e=t.XpG(3);t.Y8G("embedded",!0)("contractNumber",e.contract.ContractNumber)}}function y(a,s){if(1&a&&t.nrm(0,"fa-icon",17),2&a){const e=t.XpG(5);t.Y8G("icon",e.faTriangleExclamation)}}function x(a,s){if(1&a&&t.EFF(0),2&a){const e=t.XpG().$implicit;t.SpI(" ",e,"% ")}}function T(a,s){1&a&&t.DNE(0,y,1,1,"fa-icon",17)(1,x,1,1),2&a&&t.vxM(s.$implicit>=100?0:1)}function j(a,s){if(1&a&&(t.j41(0,"div",10)(1,"div")(2,"h4",11),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.j41(5,"div",12)(6,"div",13)(7,"div")(8,"strong"),t.EFF(9),t.nI1(10,"translate"),t.k0s(),t.EFF(11),t.k0s(),t.j41(12,"div")(13,"strong"),t.EFF(14),t.nI1(15,"translate"),t.k0s(),t.EFF(16),t.k0s(),t.j41(17,"div")(18,"strong"),t.EFF(19),t.nI1(20,"translate"),t.k0s(),t.EFF(21),t.k0s()(),t.nrm(22,"nz-progress",14),t.DNE(23,T,2,1,"ng-template",null,0,t.C5r),t.k0s()(),t.j41(25,"div")(26,"h4",11),t.EFF(27),t.nI1(28,"translate"),t.k0s(),t.j41(29,"div",15)(30,"div")(31,"strong"),t.EFF(32),t.nI1(33,"translate"),t.k0s(),t.EFF(34),t.k0s(),t.j41(35,"div")(36,"strong"),t.EFF(37),t.nI1(38,"translate"),t.k0s(),t.EFF(39),t.k0s()()(),t.j41(40,"div")(41,"h4",11),t.EFF(42),t.nI1(43,"translate"),t.k0s(),t.j41(44,"div",15)(45,"div")(46,"strong"),t.EFF(47),t.nI1(48,"translate"),t.k0s(),t.EFF(49),t.k0s(),t.j41(50,"div")(51,"strong"),t.EFF(52),t.nI1(53,"translate"),t.k0s(),t.EFF(54),t.k0s()()(),t.j41(55,"div")(56,"h4",11),t.EFF(57),t.nI1(58,"translate"),t.k0s(),t.j41(59,"div",15)(60,"div")(61,"strong"),t.EFF(62),t.nI1(63,"translate"),t.k0s(),t.EFF(64),t.k0s(),t.j41(65,"div")(66,"strong"),t.EFF(67),t.nI1(68,"translate"),t.k0s(),t.EFF(69),t.k0s()()(),t.j41(70,"div")(71,"h4",11),t.EFF(72),t.nI1(73,"translate"),t.k0s(),t.j41(74,"div",15)(75,"div")(76,"strong"),t.EFF(77),t.nI1(78,"translate"),t.k0s(),t.EFF(79),t.k0s()()(),t.j41(80,"div")(81,"h4",11),t.EFF(82),t.nI1(83,"translate"),t.k0s(),t.j41(84,"div",15)(85,"div")(86,"strong"),t.EFF(87),t.nI1(88,"translate"),t.k0s(),t.EFF(89),t.k0s(),t.j41(90,"div")(91,"strong"),t.EFF(92),t.nI1(93,"translate"),t.k0s(),t.EFF(94),t.k0s()()(),t.j41(95,"div")(96,"h4",11),t.EFF(97),t.nI1(98,"translate"),t.k0s(),t.j41(99,"div",15)(100,"div")(101,"strong"),t.EFF(102),t.nI1(103,"translate"),t.k0s(),t.EFF(104),t.k0s(),t.j41(105,"div")(106,"strong"),t.EFF(107),t.nI1(108,"translate"),t.k0s(),t.EFF(109),t.k0s()()(),t.j41(110,"div")(111,"h4",11),t.EFF(112),t.nI1(113,"translate"),t.k0s(),t.j41(114,"div",15)(115,"div")(116,"strong"),t.EFF(117),t.nI1(118,"translate"),t.k0s(),t.EFF(119),t.k0s(),t.j41(120,"div")(121,"strong"),t.EFF(122),t.nI1(123,"translate"),t.k0s(),t.EFF(124),t.k0s()()(),t.j41(125,"div")(126,"h4",11),t.EFF(127),t.nI1(128,"translate"),t.k0s(),t.j41(129,"div",15)(130,"div")(131,"strong"),t.EFF(132),t.nI1(133,"translate"),t.k0s(),t.EFF(134),t.k0s(),t.j41(135,"div")(136,"strong"),t.EFF(137),t.nI1(138,"translate"),t.k0s(),t.EFF(139),t.k0s()()()(),t.j41(140,"div",16)(141,"div")(142,"strong"),t.EFF(143),t.nI1(144,"translate"),t.k0s(),t.EFF(145),t.k0s(),t.j41(146,"div")(147,"strong"),t.EFF(148),t.nI1(149,"translate"),t.k0s(),t.EFF(150),t.k0s(),t.j41(151,"div")(152,"strong"),t.EFF(153),t.nI1(154,"translate"),t.k0s(),t.EFF(155),t.k0s()()),2&a){const e=t.sdS(24),n=t.XpG(3);t.R7$(3),t.SpI(" ",t.bMT(4,55,"pages.contract.webhosting.overview.contract-overview.disk-space.title")," "),t.R7$(6),t.SpI(" ",t.bMT(10,57,"pages.contract.webhosting.overview.contract-overview.disk-space.used"),": "),t.R7$(2),t.SpI(" ",n.contractOverview.disk_space.used," "),t.R7$(3),t.SpI(" ",t.bMT(15,59,"pages.contract.webhosting.overview.contract-overview.disk-space.free"),": "),t.R7$(2),t.SpI(" ",n.contractOverview.disk_space.free," "),t.R7$(3),t.SpI(" ",t.bMT(20,61,"pages.contract.webhosting.overview.contract-overview.max"),": "),t.R7$(2),t.SpI(" ",n.contractOverview.disk_space.max," "),t.R7$(),t.Y8G("nzStrokeColor","#ff5d19")("nzPercent",n.extractPercent(n.contractOverview.disk_space.used))("nzWidth",80)("nzFormat",e),t.R7$(5),t.SpI(" ",t.bMT(28,63,"pages.contract.webhosting.overview.contract-overview.pop3.title")," "),t.R7$(5),t.SpI(" ",t.bMT(33,65,"pages.contract.webhosting.overview.contract-overview.current"),": "),t.R7$(2),t.SpI(" ",n.contractOverview.pop3.current," "),t.R7$(3),t.SpI(" ",t.bMT(38,67,"pages.contract.webhosting.overview.contract-overview.max"),": "),t.R7$(2),t.SpI(" ",n.contractOverview.pop3.max," "),t.R7$(3),t.SpI(" ",t.bMT(43,69,"pages.contract.webhosting.overview.contract-overview.sql-databases.title")," "),t.R7$(5),t.SpI(" ",t.bMT(48,71,"pages.contract.webhosting.overview.contract-overview.current"),": "),t.R7$(2),t.SpI(" ",n.contractOverview.sql_databases.current," "),t.R7$(3),t.SpI(" ",t.bMT(53,73,"pages.contract.webhosting.overview.contract-overview.max"),": "),t.R7$(2),t.SpI(" ",n.contractOverview.sql_databases.max," "),t.R7$(3),t.SpI(" ",t.bMT(58,75,"pages.contract.webhosting.overview.contract-overview.email-addresses.title")," "),t.R7$(5),t.SpI(" ",t.bMT(63,77,"pages.contract.webhosting.overview.contract-overview.current"),": "),t.R7$(2),t.SpI(" ",n.contractOverview.email_addresses.current," "),t.R7$(3),t.SpI(" ",t.bMT(68,79,"pages.contract.webhosting.overview.contract-overview.max"),": "),t.R7$(2),t.SpI(" ",n.contractOverview.email_addresses.max," "),t.R7$(3),t.SpI(" ",t.bMT(73,81,"pages.contract.webhosting.overview.contract-overview.domains.title")," "),t.R7$(5),t.SpI(" ",t.bMT(78,83,"pages.contract.webhosting.overview.contract-overview.current"),": "),t.R7$(2),t.SpI(" ",n.contractOverview.domains.current," "),t.R7$(3),t.SpI(" ",t.bMT(83,85,"pages.contract.webhosting.overview.contract-overview.subdomains.title")," "),t.R7$(5),t.SpI(" ",t.bMT(88,87,"pages.contract.webhosting.overview.contract-overview.current"),": "),t.R7$(2),t.SpI(" ",n.contractOverview.subdomains.current," "),t.R7$(3),t.SpI(" ",t.bMT(93,89,"pages.contract.webhosting.overview.contract-overview.max"),": "),t.R7$(2),t.SpI(" ",n.contractOverview.subdomains.max," "),t.R7$(3),t.SpI(" ",t.bMT(98,91,"pages.contract.webhosting.overview.contract-overview.autoresponder.title")," "),t.R7$(5),t.SpI(" ",t.bMT(103,93,"pages.contract.webhosting.overview.contract-overview.current"),": "),t.R7$(2),t.SpI(" ",n.contractOverview.autoresponder.current," "),t.R7$(3),t.SpI(" ",t.bMT(108,95,"pages.contract.webhosting.overview.contract-overview.max"),": "),t.R7$(2),t.SpI(" ",n.contractOverview.autoresponder.max," "),t.R7$(3),t.SpI(" ",t.bMT(113,97,"pages.contract.webhosting.overview.contract-overview.cronjobs-light.title")," "),t.R7$(5),t.SpI(" ",t.bMT(118,99,"pages.contract.webhosting.overview.contract-overview.current"),": "),t.R7$(2),t.SpI(" ",n.contractOverview.cronjobs_light.current," "),t.R7$(3),t.SpI(" ",t.bMT(123,101,"pages.contract.webhosting.overview.contract-overview.max"),": "),t.R7$(2),t.SpI(" ",n.contractOverview.cronjobs_light.max," "),t.R7$(3),t.SpI(" ",t.bMT(128,103,"pages.contract.webhosting.overview.contract-overview.cronjobs.title")," "),t.R7$(5),t.SpI(" ",t.bMT(133,105,"pages.contract.webhosting.overview.contract-overview.current"),": "),t.R7$(2),t.SpI(" ",n.contractOverview.cronjobs.current," "),t.R7$(3),t.SpI(" ",t.bMT(138,107,"pages.contract.webhosting.overview.contract-overview.max"),": "),t.R7$(2),t.SpI(" ",n.contractOverview.cronjobs.max," "),t.R7$(4),t.SpI(" ",t.bMT(144,109,"pages.contract.webhosting.overview.contract-overview.company"),": "),t.R7$(2),t.SpI(" ",n.contractOverview.company||"-"," "),t.R7$(3),t.SpI(" ",t.bMT(149,111,"pages.contract.webhosting.overview.contract-overview.comment"),": "),t.R7$(2),t.SpI(" ",n.contract.comment||"-"," "),t.R7$(3),t.SpI(" ",t.bMT(154,113,"pages.contract.webhosting.overview.contract-overview.ssh-fingerprint"),": "),t.R7$(2),t.SpI(" ",n.contractOverview.ssh_rsa_fingerprint||"-"," ")}}function O(a,s){if(1&a&&(t.j41(0,"div")(1,"div",6)(2,"div")(3,"span",7),t.EFF(4),t.nI1(5,"translate"),t.k0s(),t.j41(6,"span"),t.EFF(7),t.k0s()(),t.j41(8,"div")(9,"span",7),t.EFF(10),t.nI1(11,"translate"),t.k0s(),t.j41(12,"span"),t.EFF(13),t.k0s()(),t.j41(14,"div")(15,"span",7),t.EFF(16),t.nI1(17,"translate"),t.k0s(),t.j41(18,"span"),t.EFF(19),t.k0s()(),t.j41(20,"div")(21,"span",7),t.EFF(22),t.nI1(23,"translate"),t.k0s(),t.j41(24,"span"),t.EFF(25),t.nI1(26,"date"),t.k0s()(),t.DNE(27,f,14,14)(28,k,7,7,"div"),t.j41(29,"div")(30,"span",7),t.EFF(31),t.nI1(32,"translate"),t.k0s(),t.j41(33,"span"),t.EFF(34),t.k0s()()(),t.DNE(35,M,1,2,"app-php-extended-support-card",8),t.k0s(),t.DNE(36,j,156,115)),2&a){const e=t.XpG(2);t.HbH(e.phpSupportCardVisible?"grid gap-6 xl:grid-cols-[minmax(0,1fr)_minmax(400px,440px)] xl:items-start":"grid gap-6"),t.R7$(4),t.SpI(" ",t.bMT(5,16,"pages.contract.webhosting.overview.card1.your-customer-number")," : "),t.R7$(3),t.JRh((null==e.contract.Customer?null:e.contract.Customer.CustomerNumber)||"-"),t.R7$(3),t.SpI(" ",t.bMT(11,18,"pages.contract.webhosting.overview.card1.your-contract-number")," : "),t.R7$(3),t.JRh(e.contract.ContractNumber),t.R7$(3),t.SpI(" ",t.bMT(17,20,"pages.contract.webhosting.overview.card1.product-tariff")," : "),t.R7$(3),t.Lme(" ",e.contract.tariff.description," (",e.contract.tariff.ProductType.ProductFamily.name,") "),t.R7$(3),t.SpI(" ",t.bMT(23,22,"pages.contract.webhosting.overview.card1.contract-start")," : "),t.R7$(3),t.JRh(t.i5U(26,24,e.contract.CreatedAt,"dd.MM.yyyy")),t.R7$(2),t.vxM("close"!==e.contract.status.status?27:28),t.R7$(4),t.SpI(" ",t.bMT(32,27,"pages.contract.webhosting.overview.card1.status"),": "),t.R7$(3),t.JRh(e.contract.status.status),t.R7$(),t.vxM(e.isWebhostingContract?35:-1),t.R7$(),t.vxM(e.contractOverview?36:-1)}}function N(a,s){if(1&a&&(t.j41(0,"app-card")(1,"div",2)(2,"h3",3),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.nrm(5,"app-contract-pin-button",4),t.k0s(),t.DNE(6,E,1,2,"nz-skeleton",5)(7,O,37,29),t.k0s()),2&a){const e=t.XpG();t.R7$(3),t.SpI(" ",t.bMT(4,3,"pages.contract.webhosting.overview.contract-overview.title")," "),t.R7$(2),t.Y8G("contractNumber",e.contract.ContractNumber),t.R7$(),t.vxM(e.isOverviewLoading?6:7
1)}}const D=new Set(["okay","transfer","close","suspend"]),P=[{path:"details/:contractnumber",component:(()=>{class a extends g.${userService;activatedRoute;contractService;contract;userPrivate;conNo;last_contract_day;last_cancel_day;contractOverview;isOverviewLoading=!1;isWebhostingContract=!1;phpSupportCardVisible=!1;routes;faTriangleExclamation=h.JAe;constructor(e,n,r){super(),this.userService=e,this.activatedRoute=n,this.contractService=r}ngOnInit(){this.activatedRoute.params.pipe(this.takeUntilDestroyed()).subscribe(e=>{this.conNo=e.contractnumber,(0,l.z)([this.userService.userObs,this.contractService.getContractForContext(this.conNo)]).pipe(this.takeUntilDestroyed()).subscribe(([n,r])=>{this.userPrivate=n.user.private,r&&(this.contractOverview=void 0,this.contract=r,this.isWebhostingContract=1===r.tariff?.ProductType?.ProductFamily?.ID,this.phpSupportCardVisible=this.isWebhostingContract,this.calculateCancelDate(r.CreatedAt),D.has(r.status?.status)?this.loadContractOverview(r.ContractNumber):this.isOverviewLoading=!1)}),this.routes=[{name:"contract",number:`#${this.conNo}`,route:`/contract/overview/details/${this.conNo}`},{name:"menu.contract.webhosting.contract-overview.label",route:`/contract/overview/details/${this.conNo}`}]})}calculateCancelDate(e){if(this.last_contract_day=new Date(e),this.userPrivate){this.last_contract_day.setMonth(this.last_contract_day.getMonth()+this.contract.tariff.contract_period);const n=new Date;for(n.setMonth(n.getMonth()+1);this.last_contract_day<=n;)this.last_contract_day.setMonth(this.last_contract_day.getMonth()+1)}else for(;this.last_contract_day<new Date;)this.last_contract_day.setMonth(this.last_contract_day.getMonth()+this.contract.tariff.contract_period);this.userPrivate||(this.last_contract_day.setMonth(this.last_contract_day.getMonth()-1),this.last_contract_day<new Date&&this.last_contract_day.setMonth(this.last_contract_day.getMonth()+this.contract.tariff.contract_period),this.last_contract_day.setMonth(this.last_contract_day.getMonth()+1)),this.last_cancel_day=new Date,this.last_cancel_day.setDate(this.last_contract_day.getDate()),this.last_cancel_day.setMonth(this.last_contract_day.getMonth()),this.last_cancel_day.setFullYear(this.last_contract_day.getFullYear()),this.last_cancel_day.setMonth(this.last_cancel_day.getMonth()-1)}loadContractOverview(e){this.isOverviewLoading=!0,this.contractService.getContractOverview(e).pipe(this.takeUntilDestroyed()).subscribe({next:n=>{const r=this.extractPercent(n.disk_space?.used);this.contractOverview={...n,disk_space:{...n.disk_space,percent:r}},this.isOverviewLoading=!1},error:()=>{this.isOverviewLoading=!1}})}extractPercent(e){if(!e)return 0;const n=e.match(/\(([\d.]+)%\)/);return n?Number(n[1]):0}static \u0275fac=function(n){return new(n||a)(t.rXU(w.D),t.rXU(i.nX),t.rXU(m.y))};static \u0275cmp=t.VBU({type:a,selectors:[["app-contract-overview"]],features:[t.Vt3],decls:2,vars:2,consts:[["diskSpaceFormatTpl",""],[1,"d-block","mb-7",3,"breadcrumbs"],[1,"mb-4","flex","items-center","gap-4"],[1,"mb-0"],[3,"contractNumber"],[3,"nzParagraph"],[1,"grid","gap-2"],[1,"font-semibold"],[1,"min-w-[400px]",3,"embedded","contractNumber"],[1,"min-w-[400px]",3,"cardVisibilityChange","embedded","contractNumber"],[1,"my-6","grid","gap-4","md:grid-cols-3"],[1,"mb-2"],[1,"flex"],[1,"mr-4","grid","gap-1"],["nzStatus","exception","nzType","circle",3,"nzStrokeColor","nzPercent","nzWidth","nzFormat"],[1,"grid","gap-1"],[1,"mb-6","grid","gap-2"],[1,"chevron",3,"icon"]],template:function(n,r){1&n&&t.DNE(0,S,1,1,"app-breadcrumbs",1)(1,N,8,5,"app-card"),2&n&&(t.vxM(r.routes?0:-1),t.R7$(),t.vxM(r.contract?1:-1))},dependencies:[F.aY,u.Bi,b.V,_.m,I.i,R.l,C.o,v.vh,p.D9],encapsulation:2})}return a})(),canActivate:[o(3072).q],runGuardsAndResolvers:"always"}];let V=(()=>{class a{static \u0275fac=function(n){return new(n||a)};static \u0275mod=t.$C({type:a});static \u0275inj=t.G2t({imports:[i.iI.forChild(P),i.iI]})}return a})(),X=(()=>{class a{static \u0275fac=function(n){return new(n||a)};static \u0275mod=t.$C({type:a});static \u0275inj=t.G2t({imports:[v.MD,V,d.G,p.h.forChild()]})}return a})()}}]);
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.