PageSourceSearch

https://portal.retn.net/en/927.8881e88984ed4106.js

js retn.net collected 2026-10-01 10:44:13 UTC 370,685 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkfrontend=self.webpackChunkfrontend||[]).push([[927],{46927:(Qs,Ae,l)=>{l.r(Ae),l.d(Ae,{SupportModule:()=>zs});var T=l(36895),x=l(4392),Oe=l(34059),le=l(35882),me=l(92340),e=l(94650),$=l(65412),q=l(17471),Me=l(54031),Q=l(42867),Y=l(8058),z=l(42649),y=l(4859);function it(o,i){if(1&o&&(e.tHW(0,3,1),e.TgZ(1,"app-tooltip"),e._UZ(2,"p"),e.qZA(),e.N_p()),2&o){const t=e.oxw();e.xp6(2),e.pQV(t.tooltipsService.tooltips.support),e.QtT(0)}}let _t=(()=>{class o{constructor(t,n,a,_,s,c){this.router=t,this.activatedRoute=n,this.matDialog=a,this.breadcrumbs=_,this.getUserAccountManagerUsecase=s,this.tooltipsService=c,this.accountManager={first_name:"",last_name:"",email:"",phone_number:""},this.breadcrumbs.setLinks([{route:"/",text:"HOME"},{text:"SUPPORT"}])}ngOnInit(){this.getUserAccountManagerUsecase.execute().subscribe(t=>{this.accountManager=t})}createTicket(){this.matDialog.open(le.c,{exitAnimationDuration:"0ms",data:{title:"You Request Refers To: ",items:[{id:1,value:"Billing Issue"},{id:2,value:"Services" + "" + ""}],btn:"Create Ticket"}}).afterClosed().subscribe(t=>{1==t&&this.openBillingIssue(),2==t&&this.openServices()})}redirectTo(t){switch(t){case 0:this.router.navigate(["faq"],{relativeTo:this.activatedRoute});break;case 1:this.router.navigate(["noc"],{relativeTo:this.activatedRoute});break;case 2:this.router.navigate(["escalation-matrix"],{relativeTo:this.activatedRoute});break;case 3:window.open("https://rtt.retn."+(this.isRuby?"ru":"net"),"_blank");break;case 4:window.open(`https://retn.${this.isRuby?"ru":"net"}/network/points-of-presence`,"_blank");break;case 5:this.matDialog.open(Oe.e);break;case 6:this.router.navigateByUrl("main/services/service-documentation")}}toTicketingSystem(){this.router.navigateByUrl("/main/support/tickets")}writeEmail(t){window.open(`mailto:${t}`,"_blank")}makeCall(t){window.open(`tel:${t}`,"_blank")}openBillingIssue(){this.matDialog.open(le.c,{enterAnimationDuration:"0ms",data:{title:"You Request Refers To:",items:[{id:0,value:"Change Company Information"},{id:1,value:"Request Outage Compensation"},{id:4,value:"Request Statement of Account"},{id:2,value:"Dispute Invoice"},{id:3,value:"Other Billing Related Issue"}],btn:"Create Ticket"}}).afterClosed().subscribe(t=>{"number"==typeof t&&this.router.navigateByUrl("main/support/"+{0:"change-company-information",1:"request-outage-compensation",2:"dispute-invoice",3:"other-billing-related-issue",4:"request-statement-of-account"}[t])})}openServices(){this.router.navigateByUrl("main/support/create-trouble-ticket")}get isRuby(){return"RUBY"===me.N.PORTAL_REGION}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(x.F0),e.Y36(x.gz),e.Y36($.uw),e.Y36(q.W),e.Y36(Me.y),e.Y36(Q.b))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-support"]],decls:68,vars:5,consts:function(){let i,t,n,a,_,s,c,p,g,u,d,O,b,v,P,U,D;return i="Ticketing System",t="You can report and track any issue here. You are free to raise an issue with the service, your order implementation process or invoices and payment process 24/7 and receive immediate feedback on the progress of the resolution.",n=" Create Ticket",a="Here we provide answers to basic questions about the Customer Portal and our processes.",_="NOC",s="Our NOC team is dedicated to timely detect, diagnose and resolve issues that may arise throughout RETN\u2019s network. The RETN NOC is at your service 24/7. Support is provided via ticketing system, email, phone or online contact form.",c="ESCALATION MATRIX",p="If there is a delay in resolving your problem, you can expedite the process by calling or emailing directly the next level of priority on the escalation matrix.",g="USEFUL LINKS",u="network map",d="Point Of Presence",O="Maintenance Schedule",b="Service Documentation",v=" Your Account Manager",P="If you are experiencing difficulty resolving your issue with our Help Center, your personal manager is available to help you from 9 a.m. to 6 p.m. on weekdays.",U="Your Account Manager",D="SUPPORT " + "\ufffd*4:1\ufffd\ufffd#1:1\ufffd" + "" + "\ufffd#2:1\ufffd" + "" + "\ufffd0:1\ufffd" + "" + "\ufffd/#2:1\ufffd" + "" + "\ufffd/#1:1\ufffd\ufffd/*4:1\ufffd" + "",[[1,"support"],[1,"flex"],[1,"text-title","margin-right","capital-gothic"],D,[4,"ngIf"],[1,"breadcrumbs"],[1,"links_ticketing-system"],[1,"ticketing-system"],[1,"ticketing-system_title","capital-gothic",3,"click"],i,[1,"ticketing-system_describe","capital-gothic"],t,["mat-button","","color","accent","mat-raised-button","",3,"click"],n,[1,"links"],[1,"faq","link",3,"click"],[1,"link-title"],[1,"link-description"],a,[1,"link-arrow-container"],[1,"arrow"],[1,"n
1oc","link",3,"click"],_,s,[1,"escalation-matrix","link",3,"click"],c,p,[1,"useful-links","link"],g,[1,"useful-links-items"],[1,"capital-gothic",3,"click"],u,d,O,b,[1,"acc-manager"],[1,"text"],[1,"subtitle","capital-gothic"],v,P,["src","assets/pic/icons/black-vector.svg","alt","black-vector"],[1,"contact"],[1,"mng-name"],[1,"name"],[1,"position"],U,[1,"email","pointer",3,"click"],[1,"pointer",3,"click"]]},template:function(t,n){1&t&&(e.TgZ(0,"div",0)(1,"div",1)(2,"p",2),e.tHW(3,3),e.YNc(4,it,3,1,"app-tooltip",4),e.N_p(),e.qZA(),e.TgZ(5,"div",5),e._UZ(6,"wo-breadcrumbs"),e.qZA()(),e.TgZ(7,"div",6)(8,"div",7)(9,"p",8),e.NdJ("click",function(){return n.toTicketingSystem()}),e.SDv(10,9),e.qZA(),e.TgZ(11,"p",10),e.SDv(12,11),e.qZA(),e.TgZ(13,"button",12),e.NdJ("click",function(){return n.createTicket()}),e.SDv(14,13),e.qZA()(),e.TgZ(15,"div",14)(16,"div",15),e.NdJ("click",function(){return n.redirectTo(0)}),e.TgZ(17,"p",16),e._uU(18,"FAQ"),e.qZA(),e.TgZ(19,"p",17),e.SDv(20,18),e.qZA(),e.TgZ(21,"div",19),e._UZ(22,"div",20),e.qZA()(),e.TgZ(23,"div",21),e.NdJ("click",function(){return n.redirectTo(1)}),e.TgZ(24,"p",16),e.SDv(25,22),e.qZA(),e.TgZ(26,"p",17),e.SDv(27,23),e.qZA(),e.TgZ(28,"div",19),e._UZ(29,"div",20),e.qZA()(),e.TgZ(30,"div",24),e.NdJ("click",function(){return n.redirectTo(2)}),e.TgZ(31,"p",16),e.SDv(32,25),e.qZA(),e.TgZ(33,"p",17),e.SDv(34,26),e.qZA(),e.TgZ(35,"div",19),e._UZ(36,"div",20),e.qZA()(),e.TgZ(37,"div",27)(38,"p",16),e.SDv(39,28),e.qZA(),e.TgZ(40,"div",29)(41,"div")(42,"p",30),e.NdJ("click",function(){return n.redirectTo(3)}),e.SDv(43,31),e.qZA(),e.TgZ(44,"p",30),e.NdJ("click",function(){return n.redirectTo(4)}),e.SDv(45,32),e.qZA()(),e.TgZ(46,"div")(47,"p",30),e.NdJ("click",function(){return n.redirectTo(5)}),e.SDv(48,33),e.qZA(),e.TgZ(49,"p",30),e.NdJ("click",function(){return n.redirectTo(6)}),e.SDv(50,34),e.qZA()()()()()(),e.TgZ(51,"div",35)(52,"div",36)(53,"p",37),e.SDv(54,38),e.qZA(),e.TgZ(55,"p"),e.SDv(56,39),e.qZA()(),e._UZ(57,"img",40),e.TgZ(58,"div",41)(59,"div",42)(60,"p",43),e._uU(61),e.qZA(),e.TgZ(62,"p",44),e.SDv(63,45),e.qZA()(),e.TgZ(64,"p",46),e.NdJ("click",function(){return n.writeEmail(n.accountManager.email)}),e._uU(65),e.qZA(),e.TgZ(66,"p",47),e.NdJ("click",function(){return n.makeCall(n.accountManager.phone_number)}),e._uU(67),e.qZA()()()()),2&t&&(e.xp6(4),e.Q6J("ngIf",null==n.tooltipsService||null==n.tooltipsService.tooltips?null:n.tooltipsService.tooltips.support),e.xp6(57),e.AsE("",n.accountManager.first_name," ",n.accountManager.last_name,""),e.xp6(4),e.Oqu(n.accountManager.email),e.xp6(2),e.Oqu(n.accountManager.phone_number))},dependencies:[T.O5,Y.K,z.g,y.lW],styles:[".links_ticketing-system[_ngcontent-%COMP%]{display:flex;gap:20px}@media (max-width: 1100px){.links_ticketing-system[_ngcontent-%COMP%]{flex-wrap:wrap}}.links_ticketing-system[_ngcontent-%COMP%]   .ticketing-system[_ngcontent-%COMP%]{display:flex;box-sizing:border-box;flex-direction:column;gap:40px;justify-content:center;background-color:#144a90;padding:50px 16px 54px}@media (max-width: 1100px){.links_ticketing-system[_ngcontent-%COMP%]   .ticketing-system[_ngcontent-%COMP%]{gap:20px;padding:30px 16px}}.links_ticketing-system[_ngcontent-%COMP%]   .ticketing-system[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{background-color:#d6117f;height:50px;text-transform:uppercase}.links_ticketing-system[_ngcontent-%COMP%]   .ticketing-system[_ngcontent-%COMP%]   .ticketing-system_title[_ngcontent-%COMP%]{color:#fff;font-size:30px;font-weight:700;letter-spacing:.3px;padding:0 20px;text-align:center;cursor:pointer}.links_ticketing-system[_ngcontent-%COMP%]   .ticketing-system[_ngcontent-%COMP%]   .ticketing-system_title[_ngcontent-%COMP%]:hover{color:#d6117f}.links_ticketing-system[_ngcontent-%COMP%]   .ticketing-system[_ngcontent-%COMP%]   .ticketing-system_describe[_ngcontent-%COMP%]{color:#fff;font-size:16px;font-style:normal;font-weight:400;line-height:136%;letter-spacing:.16px;padding:0 20px;width:236px}@media (max-width: 1100px){.links_ticketing-system[_ngcontent-%COMP%]   .ticketing-system[_ngcontent-%COMP%]   .ticketing-system_describe[_ngcontent-%COMP%]{width:100%}}.link[_ngcontent-%COMP%]{display:flex;border-top:1px solid black;gap:20px;cursor:pointer}.link[_ngcontent-%COMP%]:last-child{border-bottom:1px solid black;cursor:auto;justify-content:initial}.link[_ngcontent-%COMP%]:last-child:hover   .link-title[_ngcontent-%COMP%]{color:#000}.link[_ngcontent-%COMP%]:hover   .link-title[_ngcontent-%COMP%]{color:#d6117f}.link[_ngcontent-%COMP%]:hover   .link-arrow-container[_ngcontent-%COMP%]   .arrow[_ngcontent-%COMP%]{background-color:#d6117f}.link-title[_ngcontent-%COMP%]{min-width:385px;color:#000;font-size:35px;font-style:normal;font-weight:400;line-height:normal;letter-spacing:.35px;text-transform:uppercase;padding:37.5px 0}@media (max-width: 1440px){.link-title[_ngcontent-%COMP%]{width:230px;min-width:unset}}.link-description[_ngcontent-%COMP%]{width:45%;display:flex;align-items:center;flex:1}.support[_ngcontent-%COMP%]{padding:0 60px 60px 0}@media (max-width: 960px){.support[_ngcontent-%COMP%]{padding-right:1rem}}.link-arrow-container[_ngcontent-%COMP%]{display:flex;width:-moz-fit-content;width:fit-content;margin:10px 0 0 auto}.link-arrow-container[_ngcontent-%COMP%]   .arrow[_ngcontent-%COMP%]{width:39px;height:39px;background-color:#000;-webkit-mask:url(black-vector.78cb717a6995b208.svg) no-repeat center;mask:url(black-vector.78cb717a6995b208.svg) no-repeat center}.useful-links-items[_ngcontent-%COMP%]{display:flex;gap:20px;align-items:center}.useful-links-items[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{display:flex;gap:20px;flex-direction:column;text-transform:uppercase;color:#144a90}.useful-links-items[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{cursor:pointer}.useful-links-items[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]:hover{color:#d6117f}.text-title[_ngcontent-%COMP%]{font-size:44px;font-style:normal;font-weight:700;margin-top:7px!important;letter-spacing:.44px;margin-bottom:46px!important}.acc-manager[_ngcontent-%COMP%]{display:flex;align-items:flex-start;margin-top:31px}.acc-manager[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{margin-right:40px;
1display:flex;flex-direction:column;width:366px;gap:14px}.acc-manager[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]   .subtitle[_ngcontent-%COMP%]{font-size:30px;font-style:normal;font-weight:700;letter-spacing:.3px}.acc-manager[_ngcontent-%COMP%]   .contact[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:14px;margin-left:24px}.acc-manager[_ngcontent-%COMP%]   .contact[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]{font-weight:700}"]}),o})();var fe=l(69907),_e=l(3848),k=l(51432),F=l(28255),ce=l(61135),Te=l(78372),pe=l(71884),I=l(30780),at=l(96492),Ne=l(10879),de=l(78524),Fe=l(45029),Pe=l(95184),C=l(30671),V=l(96308),f=l(59549),Z=l(44144),G=l(97392),X=l(10266);function st(o,i){1&o&&(e.TgZ(0,"th",36),e.SDv(1,37),e.qZA())}const rt=function(o){return["/main/support/tickets/",o]};function lt(o,i){if(1&o&&(e.TgZ(0,"td",38)(1,"a",39),e._uU(2),e.qZA()()),2&o){const t=i.$implicit;e.s9C("matTooltip",t.category),e.xp6(1),e.Q6J("routerLink",e.VKq(3,rt,t.ticket_id)),e.xp6(1),e.Oqu(t.ticket_id)}}function ct(o,i){1&o&&(e.TgZ(0,"th",36),e.SDv(1,40),e.qZA())}function Tt(o,i){if(1&o&&(e.TgZ(0,"td",38),e._uU(1),e.qZA()),2&o){const t=i.$implicit;e.s9C("matTooltip",t.category),e.xp6(1),e.hij(" ",t.category," ")}}function pt(o,i){1&o&&(e.TgZ(0,"th",36),e.SDv(1,41),e.qZA())}function dt(o,i){if(1&o&&(e.TgZ(0,"td",38),e._uU(1),e.qZA()),2&o){const t=i.$implicit;e.s9C("matTooltip",t.subject),e.xp6(1),e.hij(" ",t.subject," ")}}function gt(o,i){1&o&&(e.TgZ(0,"th",36),e.SDv(1,42),e.qZA())}function Ct(o,i){if(1&o&&(e.TgZ(0,"td",38),e._uU(1),e.qZA()),2&o){const t=i.$implicit;e.s9C("matTooltip",t.created_at),e.xp6(1),e.hij(" ",t.created_at," ")}}function ut(o,i){1&o&&(e.TgZ(0,"th",36),e.SDv(1,43),e.qZA())}function Et(o,i){if(1&o&&(e.TgZ(0,"td",38),e._uU(1),e.qZA()),2&o){const t=i.$implicit;e.s9C("matTooltip",t.last_update),e.xp6(1),e.hij(" ",t.last_update," ")}}function Ot(o,i){1&o&&(e.TgZ(0,"th",36),e.SDv(1,44),e.qZA())}const Pt=function(o,i,t,n,a,_){return{"status-label_purple":o,"status-label_blue":i,"status-label_green":t,"status-label_red":n,"status-label_orange":a,"status-label_gray":_}};function St(o,i){if(1&o&&(e.TgZ(0,"td",45)(1,"span",46),e._uU(2),e.qZA()()),2&o){const t=i.$implicit;e.xp6(1),e.Q6J("ngClass",e.HTZ(2,Pt,"New"===t.status,"In progress"===t.status,"Resolved"===t.status,"Hold"===t.status,"Closed"===t.status,"Removed"===t.status)),e.xp6(1),e.hij(" ",t.status," ")}}function mt(o,i){1&o&&e._UZ(0,"tr",47)}function Mt(o,i){1&o&&e._UZ(0,"tr",48)}function ft(o,i){1&o&&(e.TgZ(0,"div",49),e.SDv(1,50),e.qZA())}function Nt(o,i){if(1&o){const t=e.EpF();e.TgZ(0,"label",51)(1,"input",52),e.NdJ("change",function(){const _=e.CHM(t).index,s=e.oxw();return s.filterParams.pageSize=s.pageSizeOptions[_],s.resetPaginationParams(),e.KtG(s.refreshTable())}),e.qZA(),e._uU(2),e.qZA()}if(2&o){const t=i.index,n=e.oxw();e.xp6(1),e.MGl("id","view-",n.pageSizeOptions[t],""),e.Q6J("checked",n.pageSizeOptions[t]==n.filterParams.pageSize),e.xp6(1),e.hij("",n.pageSizeOptions[t]," ")}}const It=function(o){return{rotate:o}},ht=function(o){return{"search-input__container_hidden":o}};let At=(()=>{class o{constructor(t){this.getBillingTicketsUsecase=t,this.menuOpened=!1,this.displayedColumns=["ticket_id","category","subject","created_at","last_update","status"],this.dataSource=[],this.direction="desc",this.statuses=["New","Hold","Closed","Removed","Resolved","In progress"],this.categories=["\u0421hange Info","Other","Request Statement","Request Compensation","Dispute Invoice"],this.searchToggled=!1,this.filterParams={page:0,pageSize:10,common:"",sort_field:"",sort_direction:"",condition:{}},this.filterParamsSubject=new ce.X(this.filterParams.common),this.statusLabel="Status",this.categoryLabel="Category",this.numberOfRowsAtAll=0,this.currentPage=0,this.pageSizeOptions=[10,30,50],this.numberOfPages=0}ngOnInit(){this.refreshTable(),this.filterParamsSubject.pipe((0,Te.b)(800),(0,pe.x)()).subscribe(t=>{this.filterParams.common=t,this.resetPaginationParams(),this.refreshTable()})}get language(){return"ru"===location.pathname.split("/")[1]?"ru":"en"}refreshTable(){this.getBillingTicketsUsecase.execute({...this.filterParams},this.language).subscribe(t=>{this.dataSource=t.rows,this.currentPage=t.pagination.current_page,this.numberOfPages=t.pagination.last_page,this.numberOfRowsAtAll=t.pagination.rows_total})}resetPaginationParams(){this.filterParams.page=0,this.currentPage=0}sort(t){this.filterParams.sort_direction=t.direction,this.filterParams.sort_field=t.direction?t.active:"",this.refreshTable()}filterRows(t,n){if("status"===n){let a=[];t.map(_=>{("New"===_||"\u041d\u043e\u0432\u044b\u0439"===_)&&(_="New"),("Hold"===_||"\u041d\u0430 \u0443\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u0438"===_)&&(_="Hold"),("Closed"===_||"\u0417\u0430\u043a\u0440\u044b\u0442\u043e"===_)&&(_="Closed"),("Removed"===_||"\u0423\u0434\u0430\u043b\u0435\u043d\u043d\u044b\u0439"===_)&&(_="Removed"),("Resolved"===_||"\u0420\u0435\u0448\u0435\u043d\u043d\u044b\u0439"===_)&&(_="Resolved"),("In progress"===_||"\u0412 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435"===_)&&(_="In progress"),a.push(_)}),this.filterParams.condition[n]=a}else if("category"===n){let a=[];t.map(_=>{("\u0421hange Info"===_||"\u0418\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438"===_)&&(_="Change Company Information"),("Other"===_||"\u0414\u0440\u0443\u0433\u043e\u0435"===_)&&(_="Other Billing Related Issue"),("Request Statement"===_||"\u0417\u0430\u043f\u0440\u043e\u0441 \u043d\u0430 \u0432\u044b\u043f\u0438\u0441\u043a\u0443"===_)&&(_="Request Statement of Account"),("Request Compensation"===_||"\u0417\u0430\u043f\u0440\u043e\u0441 \u043a\u043e\u043c\u043f\u0435\u043d\u0441\u0430\u0446\u0438\u0438"===_)&&(_="Request Outage Compensation"),("Dispute Invoice"===_||"\u041e\u0441\u043f\u043e\u0440\u0438\u0442\u044c \u0441\u0447\u0435\u0442"===_)&&(_="Dispute Invoice"),a.push(_)}),this.filterParams.condition[n]=a}else this.filterParams.condition[n]=t;this.refreshTable()}get selectDateRangeLabel(){if(this.filterParams.condition.created_at){if(this.filterParams.condition.created_at.from&&this.filterParams.condition.created_at.to)return`${(0,I.Z)(new Date(this.filterParams.condition.created_at.from),"dd/MM/yyyy")} - ${(0,I.Z)(new Date(this.filterParams.condition.created_at.to),"dd/MM/yyyy")}`;if(this.filterParams.condition.created_at.from)return`${(0,I.Z)(new Date(this.filterParams.condition.created_at.from),"dd/MM/yyyy")}`}return""}setDate(t){this.matDateTrigger.closeMenu(),this.filterParams.condition.created_at=k.g.removeEmptyProperties(t),this.refreshTable()}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(at.a))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-billing-tickets-tab"]],viewQuery:function(t,n){if(1&t&&e.Gf(F.p6,5),2&t){let a;e.iGM(a=e.CRH())&&(n.matDateTrigger=a.first)}},decls:49,vars:26,consts:function(){let i,t,n,a,_,s,c,p,g,u;return i=" Created " + "\ufffd#3\ufffd" + "" + "\ufffd0\ufffd" + "" + "\ufffd/#3\ufffd" + "" + "\ufffd#4\ufffd" + "" + "\ufffd/#4\ufffd" + "",t="Type here",n="show ",a="Ticket ID",_="Category",s="Subject",c="Created At",p="Updated At",g="Status",u="No records",[[1,"services__filters"],[1,"search-select",3,"matMenuTriggerFor","menuOpened","menuClosed"],i,[1,"select-arrow",3,"ngClass"],["xPosition","after","yPosition","above",1,"date-menu"],["dateMenu","matMenu"],[3,"dateRangeChanged","click"],[3,"data","label","selectedItems"],["matSuffix","","mat-icon-button","","aria-label","Search",1,"search",3,"disableRipple"],["src","assets/pic/icons/search-icon.svg","alt","Search",3,"click"],[1,"search-input__container-billing",3,"ngClass"],["appearance","fill",1,"search-input"],["matPrefix",""],["src","assets/pic/icons/search-icon.svg","alt","search icon"],["placeholder",t,"matInput","","type","text",3,"input"],["commonInput",""],[1,"table-wrap"],["mat-table","","matSort","",3,"dataSource","matSortActive","matSortDirection","matSortChange"],["matColumnDef","ticket_id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["ShowTooltipIfTruncated","","mat-cell","",3,"matTooltip",4,"matCellDef"],["matColumnDef","category"],["matColumnDef","subject"],["matColumnDef","created_at"],["matColumnDef","last_update"],["matColumnDef","status"],["mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["class","no-records",4,"ngIf"],[1,"table-sort"],[1,"table-view","view"],n,["class","view__label",4,"ngFor","ngForOf"],[1,"table__paginator"],[1,"table-paginator",3,"current","last","count","length","limit","pageSizeOptions","changePage"],["mat-header-cell","","mat-sort-header",""],a,["ShowTooltipIfTruncated","","mat-cell","",3,"matTooltip"],[1,"cell-link","capital-gothic",3,"routerLink"],_,s,c,p,g,["mat-cell",""],[1,"status-label","capital-gothic",3,"ngClass"],["mat-header-row",""],["mat-row",""],[1,"no-records"],u,[1,"view__label"],["name","view","type","radio",1,"view__input",3,"id","checked","change"]]},template:function(t,n){if(1&t){const a=e.EpF();e.TgZ(0,"div",0)(1,"div",1),e.NdJ("menuOpened",function(){return n.menuOpened=!0})("menuClosed",function(){return n.menuOpened=!1}),e.tHW(2,2),e._UZ(3,"span")(4,"div",3),e.N_p(),e.qZA(),e.TgZ(5,"mat-menu",4,5)(7,"custom-date-range-picker",6),e.NdJ("dateRangeChanged",function(s){return n.resetPaginationParams(),n.setDate(s)})("click",function(s){return s.stopPropagation()}),e.qZA()(),e.TgZ(8,"app-custom-search-multiselect",7),e.NdJ("selectedItems",function(s){return n.resetPaginationParams(),n.filterRows(s,"category")}),e.qZA(),e.TgZ(9,"app-custom-search-multiselect",7),e.NdJ("selectedItems",function(s){return n.resetPaginationParams(),n.filterRows(s,"status")}),e.qZA(),e.TgZ(10,"button",8)(11,"mat-icon")(12,"img",9),e.NdJ("click",function(){return n.searchToggled=!n.searchToggled}),e.qZA()()()(),e.TgZ(13,"div",10)(14,"mat-form-field",11)(15,"span",12),e._UZ(16,"img",13),e.qZA(),e.TgZ(17,"input",14,15),e.NdJ("input",function(){e.CHM(a);const s=e.MAs(18);return e.KtG(n.filterParamsSubject.next(s.value))}),e.qZA()()(),e.TgZ(19,"div",16)(20,"table",17),e.NdJ("matSortChange",function(s){return n.sort(s)}),e.ynx(21,18),e.YNc(22,st,2,0,"th",19),e.YNc(23,lt,3,5,"td",20),e.BQk(),e.ynx(24,21),e.YNc(25,ct,2,0,"th",19),e.YNc(26,Tt,2,2,"td",20),e.BQk(),e.ynx(27,22),e.YNc(28,pt,2,0,"th",19),e.YNc(29,dt,2,2,"td",20),e.BQk(),e.ynx(30,23),e.YNc(31,gt,2,0,"th",19),e.YNc(32,Ct,2,2,"td",20),e.BQk(),e.ynx(33,24),e.YNc(34,ut,2,0,"th",19),e.YNc(35,Et,2,2,"td",20),e.BQk(),e.ynx(36,25),e.YNc(37,Ot,2,0,"th",19),e.YNc(38,St,3,9,"td",26),e.BQk(),e.YNc(39,mt,1,0,"tr",27),e.YNc(40,Mt,1,0,"tr",28),e.qZA(),e.YNc(41,ft,2,0,"div",29),e.qZA(),e.TgZ(42,"div",30)(43,"div",31)(44,"span"),e.SDv(45,32),e.qZA(),e.YNc(46,Nt,3,3,"label",33),e.qZA(),e.TgZ(47,"div",34)(48,"wo-paginator",35),e.NdJ("changePage",function(s){return n.filterParams.page=s.page-1,n.refreshTable()}),e.qZA()()()}if(2&t){const a=e.MAs(6);e.xp6(1),e.Q6J("matMenuTriggerFor",a),e.xp6(3),e.Q6J("ngClass",e.VKq(22,It,!n.menuOpened)),e.pQV(n.selectDateRangeLabel),e.QtT(2),e.xp6(4),e.Q6J("data",n.categories)("label",n.categoryLabel),e.xp6(1),e.Q6J("data",n.statuses)("label",n.statusLabel),e.xp6(1),e.Q6J("disableRipple",!0),e.xp6(3),e.Q6J("ngClass",e.VKq(24,ht,!n.searchToggled)),e.xp6(7),e.Q6J("dataSource",n.dataSource)("matSortActive",n.filterParams.sort)("matSortDirection",n.direction),e.xp6(19),e.Q6J("matHeaderRowDef",n.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",n.displayedColumns),e.xp6(1),e.Q6J("ngIf",0===n.dataSource.length),e.xp6(
15),e.Q6J("ngForOf",n.pageSizeOptions),e.xp6(2),e.Q6J("current",n.filterParams.page+1)("last",n.numberOfPages)("count",n.numberOfRowsAtAll)("length",n.filterParams.pageSize)("limit",n.filterParams.pageSize)("pageSizeOptions",n.pageSizeOptions)}},dependencies:[T.mk,T.sg,T.O5,x.yS,Ne.H,de.D,Fe.w,Pe.o,C.BZ,C.fO,C.as,C.w1,C.Dz,C.nj,C.ge,C.ev,C.XQ,C.Gk,V.YE,V.nU,y.lW,F.VK,F.p6,f.KE,f.qo,f.R9,Z.Nt,G.Hw,X.gM],styles:[".table-wrap[_ngcontent-%COMP%]{white-space:nowrap;padding-bottom:5px}  .mat-tab-body-content{overflow:hidden!important}table[_ngcontent-%COMP%]{width:100%;table-layout:fixed;min-width:100%}table[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], table[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{font-size:16px;padding:0 10px;text-align:left;border:none;text-overflow:ellipsis;overflow:hidden}table[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{font-weight:700;color:#000;border-bottom:1px solid #000}table[_ngcontent-%COMP%]   .align-top[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{vertical-align:baseline}table[_ngcontent-%COMP%]   .align-top[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]   .cell-link[_ngcontent-%COMP%]{display:block;margin-bottom:10px}table[_ngcontent-%COMP%]   .align-top[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]   .cell-link[_ngcontent-%COMP%]:not(:last-child){margin-bottom:26px}th.mat-header-cell[_ngcontent-%COMP%]:first-of-type, td.mat-cell[_ngcontent-%COMP%]:first-of-type, td.mat-footer-cell[_ngcontent-%COMP%]:first-of-type{padding-left:10px}[_nghost-%COMP%]     .mat-table tbody tr:nth-child(odd){background:#EAF2FC}[_nghost-%COMP%]     .mat-table .mat-sort-header-content{text-align:left}[_nghost-%COMP%]     .mat-button-ripple.mat-ripple, [_nghost-%COMP%]     .mat-button-focus-overlay{display:none}.cell-link[_ngcontent-%COMP%]{font-size:14px;color:#144a90;text-decoration:none;cursor:pointer}.cell-nowrap[_ngcontent-%COMP%]{white-space:nowrap}table[_ngcontent-%COMP%]   td.cell-center[_ngcontent-%COMP%]{text-align:center}.table-sort[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-items:center;margin-top:15px;gap:40px}.view__title[_ngcontent-%COMP%]{font-size:1rem;font-weight:300}.view__label[_ngcontent-%COMP%]{position:relative;padding:5px;height:30px;border:1px solid #fff;font-size:1rem;font-weight:300;line-height:24px;transition:all .2s linear;margin-right:3px;
1cursor:pointer}.view__input[_ngcontent-%COMP%]{position:absolute;opacity:0;cursor:pointer}.view[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]:has(input:checked){background:#D9EAFF}[_nghost-%COMP%]     wo-paginator .wo-paginator__link{background:none;border:none;font-size:16px;padding:4px}[_nghost-%COMP%]     wo-paginator .wo-paginator__link:hover{background:none;border:none}[_nghost-%COMP%]     wo-paginator .wo-paginator__item_disabled .wo-paginator__link:hover{background:none;border:none!important}[_nghost-%COMP%]     wo-paginator .wo-paginator__item_active .wo-paginator__link{background:#D9EAFF!important;box-shadow:none!important;color:#000!important}.services__filters[_ngcontent-%COMP%]{margin-top:30px;display:flex;column-gap:20px;justify-content:flex-start;flex-wrap:wrap}@media (min-width: 1180px){.services__filters[_ngcontent-%COMP%]{flex-wrap:nowrap;margin-bottom:50px}}.services__filters[_ngcontent-%COMP%]   app-custom-search-multiselect[_ngcontent-%COMP%]{flex:1;max-width:280px}@media (max-width: 1180px){.services__filters[_ngcontent-%COMP%]   app-custom-search-multiselect[_ngcontent-%COMP%]{flex:0 0 48%;max-width:unset}}.services__filters[_ngcontent-%COMP%]   .search-select[_ngcontent-%COMP%]{padding-left:.75em;padding-right:.75em;background-color:#d9eaff;width:24%;min-width:300px;height:42px;display:flex;align-items:center;margin-top:4px!important;box-sizing:border-box;cursor:pointer}@media (max-width: 1180px){.services__filters[_ngcontent-%COMP%]   .search-select[_ngcontent-%COMP%]{flex:0 0 48%;max-width:unset}}.services__filters[_ngcontent-%COMP%]   .search-select[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{margin-left:auto;color:#d6117f}.services__filters[_ngcontent-%COMP%]   .search-select[_ngcontent-%COMP%]   .select-arrow[_ngcontent-%COMP%]{height:8px;width:13px;background:url(/en/assets/pic/icons/arrow.svg) no-repeat;margin-left:10px}.services__filters[_ngcontent-%COMP%]   .search-select[_ngcontent-%COMP%]   .rotate[_ngcontent-%COMP%]{transform:rotate(180deg)}  .search-input__container{display:flex;justify-content:flex-end}  .search-input__container mat-form-field{width:unset}  .search-input__container.search-input__container_hidden{visibility:hidden;height:0}  .search-input__container .search-input img{width:20px;height:20px;transform:translateY(2px)}  .search-input__container .search-input .mat-form-field-flex{width:390px;padding:0 13px;border-radius:0;border-bottom:none;background:#F3F3F3}  .search-input__container .search-input .mat-form-field-wrapper{padding-bottom:0}  .search-input__container .search-input .mat-input-element{color:#a6a6a6;font-family:Capital Gothic;font-size:16px;font-style:normal;font-weight:300;line-height:normal;letter-spacing:.16px}  .search-input__container .search-input .mat-form-field-infix{padding:9px;border-top:0}  .search-input__container .search-input .mat-form-field-underline{display:none}[_nghost-%COMP%]     .mat-menu-trigger{padding:0;min-width:unset}  .date-menu{width:100%;max-width:100%;padding:10px 20px}  .search-input__container-billing{display:flex;margin-bottom:10px}  .search-input__container-billing.search-input__container_hidden{visibility:hidden;height:0}  .search-input__container-billing .search-input img{width:20px;height:20px;transform:translateY(2px)}  .search-input__container-billing .search-input .mat-form-field-flex{width:390px;padding:0 13px;border-radius:0;border-bottom:none;background:#F3F3F3}  .search-input__container-billing .search-input .mat-form-field-wrapper{padding-bottom:0}  .search-input__container-billing .search-input .mat-input-element{color:#a6a6a6;font-family:Capital Gothic;font-size:16px;font-style:normal;font-weight:300;line-height:normal;letter-spacing:.16px}  .search-input__container-billing .search-input .mat-form-field-infix{padding:9px;border-top:0}  .search-input__container-billing .search-input .mat-form-field-underline{display:none}"]}),o})();var Ft=l(49710);function Rt(o,i){1&o&&(e.TgZ(0,"th",37),e.SDv(1,38),e.qZA())}const xt=function(o){return["/main/support/tickets/",o]};function bt(o,i){if(1&o&&(e.TgZ(0,"td",39)(1,"a",40),e._uU(2),e.qZA()()),2&o){const t=i.$implicit;e.xp6(1),e.Q6J("routerLink",e.VKq(2,xt,t.ticket_id)),e.xp6(1),e.Oqu(t.ticket_id)}}function vt(o,i){1&o&&(e.TgZ(0,"th",37),e.SDv(1,41),e.qZA())}function Ut(o,i){if(1&o&&(e.TgZ(0,"td",42),e._uU(1),e.qZA()),2&o){const t=i.$implicit;e.s9C("matTooltip",t.category),e.xp6(1),e.hij(" ",t.category," ")}}function Dt(o,i){1&o&&(e.TgZ(0,"th",37),e.SDv(1,43),e.qZA())}function $t(o,i){if(1&o&&(e.TgZ(0,"td",42),e._uU(1),e.qZA()),2&o){const t=i.$implicit;e.s9C("matTooltip",t.priority),e.xp6(1),e.hij(" ",t.priority," ")}}function yt(o,i){1&o&&(e.TgZ(0,"th",37),e.SDv(1,44),e.qZA())}function wt(o,i){if(1&o&&(e.TgZ(0,"td",42),e._uU(1),e.qZA()),2&o){const t=i.$implicit;e.s9C("matTooltip",t.subject),e.xp6(1),e.hij(" ",t.subject," ")}}function kt(o,i){1&o&&(e.TgZ(0,"th",37),e.SDv(1,45),e.qZA())}function Lt(o,i){if(1&o&&(e.TgZ(0,"td",42),e._uU(1),e.qZA()),2&o){const t=i.$implicit;e.s9C("matTooltip",t.created_at),e.xp6(1),e.hij(" ",t.created_at," ")}}function Gt(o,i){1&o&&(e.TgZ(0,"th",37),e.SDv(1,46),e.qZA())}function Zt(o,i){if(1&o&&(e.TgZ(0,"td",42),e._uU(1),e.qZA()),2&o){const t=i.$implicit;e.s9C("matTooltip",t.last_update),e.xp6(1),e.hij(" ",t.last_update," ")}}function qt(o,i){1&o&&(e.TgZ(0,"th",37),e.SDv(1,47),e.qZA())}const Kt=function(o,i,t,n,a,_){return{"status-label_purple":o,"status-label_blue":i,"status-label_green":t,"status-label_red":n,"status-label_orange":a,"status-label_gray":_}};function Yt(o,i){if(1&o&&(e.TgZ(0,"td",39)(1,"span",48),e._uU(2),e.qZA()()),2&o){const t=i.$implicit;e.xp6(1),e.Q6J("ngClass",e.HTZ(2,Kt,"New"===t.status,"In progress"===t.status,"Resolved"===t.status,"Hold"===t.status,"Closed"===t.status,"Removed"===t.status)),e.xp6(1),e.hij(" ",t.status," ")}}function zt(o,i){1&o&&e._UZ(0,"tr",49)}
1function Qt(o,i){1&o&&e._UZ(0,"tr",50)}function Xt(o,i){1&o&&(e.TgZ(0,"div",51),e.SDv(1,52),e.qZA())}function Bt(o,i){if(1&o){const t=e.EpF();e.TgZ(0,"label",53)(1,"input",54),e.NdJ("change",function(){const _=e.CHM(t).index,s=e.oxw();return s.filterParams.pageSize=s.pageSizeOptions[_],s.resetPaginationParams(),e.KtG(s.refreshTable())}),e.qZA(),e._uU(2),e.qZA()}if(2&o){const t=i.index,n=e.oxw();e.xp6(1),e.MGl("id","view-",n.pageSizeOptions[t],""),e.Q6J("checked",n.pageSizeOptions[t]==n.filterParams.pageSize),e.xp6(1),e.hij("",n.pageSizeOptions[t]," ")}}const Jt=function(o){return{rotate:o}},Vt=function(o){return{"search-input__container_hidden":o}};let Ht=(()=>{class o{constructor(t){this.getTroubleTicketsUsecase=t,this.displayedColumns=["ticket_id","category","priority","subject","created_at","last_update","status"],this.dataSource=[],this.direction="desc",this.statuses=["New","Hold","Closed","Removed","Resolved","In progress"],this.priority=["high","normal","low"],this.menuOpened=!1,this.searchToggled=!1,this.filterParams={page:0,pageSize:10,common:"",sort_field:"",sort_direction:"",condition:{}},this.filterParamsSubject=new ce.X(this.filterParams.common),this.priorityLabel="Priority",this.statusLabel="Status",this.numberOfRowsAtAll=0,this.currentPage=0,this.pageSizeOptions=[10,30,50],this.numberOfPages=0}ngOnInit(){this.refreshTable(),this.filterParamsSubject.pipe((0,Te.b)(800),(0,pe.x)()).subscribe(t=>{this.filterParams.common=t,this.resetPaginationParams(),this.refreshTable()})}get language(){return"ru"===location.pathname.split("/")[1]?"ru":"en"}refreshTable(){this.getTroubleTicketsUsecase.execute({...this.filterParams},this.language).subscribe(t=>{this.dataSource=t.rows,this.currentPage=t.pagination.current_page,this.numberOfPages=t.pagination.last_page,this.numberOfRowsAtAll=t.pagination.rows_total})}resetPaginationParams(){this.filterParams.page=0,this.currentPage=0}sort(t){this.filterParams.sort_direction=t.direction,this.filterParams.sort_field=t.direction?t.active:"",this.refreshTable()}get selectDateRangeLabel(){if(this.filterParams.condition.created_at){if(this.filterParams.condition.created_at.from&&this.filterParams.condition.created_at.to)return`${(0,I.Z)(new Date(this.filterParams.condition.created_at.from),"dd/MM/yyyy")} - ${(0,I.Z)(new Date(this.filterParams.condition.created_at.to),"dd/MM/yyyy")}`;if(this.filterParams.condition.created_at.from)return`${(0,I.Z)(new Date(this.filterParams.condition.created_at.from),"dd/MM/yyyy")}`}return""}setDate(t){this.matDateTrigger.closeMenu(),this.filterParams.condition.created_at=k.g.removeEmptyProperties(t),this.refreshTable()}filterRows(t,n){if("status"===n){let a=[];t.map(_=>{("New"===_||"\u041d\u043e\u0432\u044b\u0439"===_)&&(_="New"),("Hold"===_||"\u041d\u0430 \u0443\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u0438"===_)&&(_="Hold"),("Closed"===_||"\u0417\u0430\u043a\u0440\u044b\u0442\u043e"===_)&&(_="Closed"),("Removed"===_||"\u0423\u0434\u0430\u043b\u0435\u043d\u043d\u044b\u0439"===_)&&(_="Removed"),("Resolved"===_||"\u0420\u0435\u0448\u0435\u043d\u043d\u044b\u0439"===_)&&(_="Resolved"),("In progress"===_||"\u0412 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435"===_)&&(_="In progress"),a.push(_)}),this.filterParams.condition[n]=a}else if("priority"===n){let a=[];t.map(_=>{("high"===_||"\u0412\u044b\u0441\u043e\u043a\u0438\u0439"===_)&&(_="high"),("normal"===_||"\u041d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u044b\u0439"===_)&&(_="normal"),("low"===_||"\u041d\u0438\u0437\u043a\u0438\u0439"===_)&&(_="low"),a.push(_)}),this.filterParams.condition[n]=a}else this.filterParams.condition[n]=t;this.refreshTable()}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(Ft.Y))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-trouble-tickets-tab"]],viewQuery:function(t,n){if(1&t&&e.Gf(F.p6,5),2&t){let a;e.iGM(a=e.CRH())&&(n.matDateTrigger=a.first)}},decls:52,vars:26,consts:function(){let i,t,n,a,_,s,c,p,g,u,d;return i=" Created " + "\ufffd#3\ufffd" + "" + "\ufffd0\ufffd" + "" + "\ufffd/#3\ufffd" + "" + "\ufffd#4\ufffd" + "" + "\ufffd/#4\ufffd" + "",t="Type here",n="show ",a="Ticket ID",_="Category",s="Priority",c="Subject",p="Created At",g="Updated At",u="Status",d="No records",[[1,"services__filters"],[1,"search-select",3,"matMenuTriggerFor","menuOpened","menuClosed"],i,[1,"select-arrow",3,"ngClass"],["xPosition","after","yPosition","above",1,"date-menu"],["dateMenu","matMenu"],[3,"dateRangeChanged","click"],[3,"data","label","selectedItems"],["matSuffix","","mat-icon-button","","aria-label","Search",1,"search",3,"disableRipple"],["src","assets/pic/icons/search-icon.svg","alt","Search",3,"click"],[1,"search-input__container-trouble",3,"ngClass"],["appearance","fill",1,"search-input"],["matPrefix",""],["src","assets/pic/icons/search-icon.svg","alt","search icon"],["placeholder",t,"matInput","","type","text",3,"input"],["commonInput",""],[1,"table-wrap"],["mat-table","","matSort","",3,"dataSource","matSortActive","matSortDirection","matSortChange"],["matColumnDef","ticket_id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","category"],["ShowTooltipIfTruncated","","mat-cell","",3,"matTooltip",4,"matCellDef"],["matColumnDef","priority"],["matColumnDef","subject"],["matColumnDef","created_at"],["matColumnDef","last_update"],["matColumnDef","status"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["class","no-records",4,"ngIf"],[1,"table-sort"],[1,"table-view","view"],n,["class","view__label",4,"ngFor","ngForOf"],[1,"table__paginator"],[1,"table-paginator",3,"current","last","count","length","limit","pageSizeOptions","changePage"],["mat-header-cell","","mat-sort-header",""],a,["mat-cell",""],[1,"cell-link","capital-gothic",3,"routerLink"],_,["ShowTooltipIfTruncated","","mat-cell","",3,"matTooltip"],s,c,p,g,u,[1,"status-label","capital-gothic",3,"ngClass"],["mat-header-row",""],["mat-row",""],[1,"no-records"],d,[1,"view__label"],["name","view","type","radio",1,"view__input",3,"id","checked","change"]]},template:function(t,n){if(1&t){const a=e.EpF();e.TgZ(0,"div",0)(1,"div",1),e.NdJ("menuOpened",function(){return n.menuOpened=!0})("menuClosed",function(){return n.menuOpened=!1}),e.tHW(2,2),e._UZ(3,"span")(4,"div",3),e.N_p(),e.qZA(),e.TgZ(5,"mat-menu",4,5)(7,"custom-date-range-picker",6),e.NdJ("dateRangeChanged",function(s){return n.resetPaginationParams(),n.setDate(s)})("click",function(s){return s.stopPropagation()}),e.qZA()(),e.TgZ(8,"app-custom-search-multiselect",7),e.NdJ("selectedItems",function(s){return n.resetPaginationParams(),n.filterRows(s,"priority")}),e.qZA(),e.TgZ(9,"app-custom-search-multiselect",7),e.NdJ("selectedItems",function(s){return n.resetPaginationParams(),n.filterRows(s,"status")}),e.qZA(),e.TgZ(10,"button",8)(11,"mat-icon")(12,"img",9),e.NdJ("click",function(){return n.searchToggled=!n.searchToggled}),e.qZA()()()(),e.TgZ(13,"div",10)(14,"mat-form-field",11)(15,"span",12),e._UZ(16,"img",13),e.qZA(),e.TgZ(17,"input",14,15),e.NdJ("input",function(){e.CHM(a);const s=e.MAs(18);return e.KtG(n.filterParamsSubject.next(s.value))}),e.qZA()()(),e.TgZ(19,"div",16)(20,"table",17),e.NdJ("matSortChange",function(s){return n.sort(s)}),e.ynx(21,18),e.YNc(22,Rt,2,0,"th",19),e.YNc(23,bt,3,4,"td",20),e.BQk(),e.ynx(24,21),e.YNc(25,vt,2,0,"th",19),e.YNc(26,Ut,2,2,"td",22),e.BQk(),e.ynx(27,23),e.YNc(28,Dt,2,0,"th",19),e.YNc(29,$t,2,2,"td",22),e.BQk(),e.ynx(30,24),e.YNc(31,yt,2,0,"th",19),e.YNc(32,wt,2,2,"td",22),e.BQk(),e.ynx(33,25),e.YNc(34,kt,2,0,"th",19),e.YNc(35,Lt,2,2,"td",22),e.BQk(),e.ynx(36,26),e.YNc(37,Gt,2,0,"th",19),e.YNc(38,Zt,2,2,"td",22),e.BQk(),e.ynx(39,27),e.YNc(40,qt,2,0,"th",19),e.YNc(41,Yt,3,9,"td",20),e.BQk(),e.YNc(42,zt,1,0,"tr",28),e.YNc(43,Qt,1,0,"tr",29),e.qZA(),e.YNc(44,Xt,2,0,"div",30),e.qZA(),e.TgZ(45,"div",31)(46,"div",32)(47,"span"),e.SDv(48,33),e.qZA(),e.YNc(49,Bt,3,3,"label",34),e.qZA(),e.TgZ(50,"div",35)(51,"wo-paginator",36),e.NdJ("changePage",function(s){return n.filterParams.page=s.page-1,n.refreshTable()}),e.qZA()()()}if(2&t){const a=e.MAs(6);e.xp6(1),e.Q6J("matMenuTriggerFor",a),e.xp6(3),e.Q6J("ngClass",e.VKq(22,Jt,!n.menuOpened)),e.pQV(n.selectDateRangeLabel),e.QtT(2),e.xp6(4),e.Q6J("data",n.priority)("label",n.priorityLabel),e.xp6(1),e.Q6J("data",n.statuses)("label",n.statusLabel),e.xp6(1),e.Q6J("disableRipple",!0),e.xp6(3),e.Q6J("ngClass",e.VKq(24,Vt,!n.searchToggled)),e.xp6(7),e.Q6J("dataSource",n.dataSource)("matSortActive",n.filterParams.sort)("matSortDirection",n.direction),e.xp6(22),e.Q6J("matHeaderRowDef",n.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",n.displayedColumns),e.xp6(1),e.Q6J("ngIf",0===n.dataSource.length),e.xp6(
15),e.Q6J("ngForOf",n.pageSizeOptions),e.xp6(2),e.Q6J("current",n.filterParams.page+1)("last",n.numberOfPages)("count",n.numberOfRowsAtAll)("length",n.filterParams.pageSize)("limit",n.filterParams.pageSize)("pageSizeOptions",n.pageSizeOptions)}},dependencies:[T.mk,T.sg,T.O5,x.yS,Ne.H,de.D,Fe.w,Pe.o,C.BZ,C.fO,C.as,C.w1,C.Dz,C.nj,C.ge,C.ev,C.XQ,C.Gk,V.YE,V.nU,y.lW,F.VK,F.p6,f.KE,f.qo,f.R9,Z.Nt,G.Hw,X.gM],styles:[".table-wrap[_ngcontent-%COMP%]{max-width:100%;overflow-x:auto;white-space:nowrap;padding-bottom:5px}table[_ngcontent-%COMP%]{width:100%;table-layout:fixed;min-width:100%}table[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], table[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{font-size:16px;padding:0 10px;text-align:left;border:none;text-overflow:ellipsis;overflow:hidden}table[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{font-weight:700;color:#000;border-bottom:1px solid #000}table[_ngcontent-%COMP%]   .align-top[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{vertical-align:baseline}table[_ngcontent-%COMP%]   .align-top[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]   .cell-link[_ngcontent-%COMP%]{display:block;margin-bottom:10px}table[_ngcontent-%COMP%]   .align-top[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]   .cell-link[_ngcontent-%COMP%]:not(:last-child){margin-bottom:26px}th.mat-header-cell[_ngcontent-%COMP%]:first-of-type, td.mat-cell[_ngcontent-%COMP%]:first-of-type, td.mat-footer-cell[_ngcontent-%COMP%]:first-of-type{padding-left:10px}[_nghost-%COMP%]     .mat-table tbody tr:nth-child(odd){background:#EAF2FC}[_nghost-%COMP%]     .mat-table .mat-sort-header-content{text-align:left}[_nghost-%COMP%]     .mat-button-ripple.mat-ripple, [_nghost-%COMP%]     .mat-button-focus-overlay{display:none}.cell-link[_ngcontent-%COMP%]{font-size:14px;color:#144a90;text-decoration:none;cursor:pointer}.cell-nowrap[_ngcontent-%COMP%]{white-space:nowrap}table[_ngcontent-%COMP%]   td.cell-center[_ngcontent-%COMP%]{text-align:center}.table-sort[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-items:center;margin-top:15px;gap:40px}.view__title[_ngcontent-%COMP%]{font-size:1rem;font-weight:300}.view__label[_ngcontent-%COMP%]{position:relative;padding:5px;height:30px;border:1px solid #fff;font-size:1rem;font-weight:300;line-height:24px;transition:all .2s linear;margin-right:3px;
1cursor:pointer}.view__input[_ngcontent-%COMP%]{position:absolute;opacity:0;cursor:pointer}.view[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]:has(input:checked){background:#D9EAFF}[_nghost-%COMP%]     wo-paginator .wo-paginator__link{background:none;border:none;font-size:16px;padding:4px}[_nghost-%COMP%]     wo-paginator .wo-paginator__link:hover{background:none;border:none}[_nghost-%COMP%]     wo-paginator .wo-paginator__item_disabled .wo-paginator__link:hover{background:none;border:none!important}[_nghost-%COMP%]     wo-paginator .wo-paginator__item_active .wo-paginator__link{background:#D9EAFF!important;box-shadow:none!important;color:#000!important}.services__filters[_ngcontent-%COMP%]{margin-top:30px;display:flex;column-gap:20px;justify-content:flex-start;flex-wrap:wrap}@media (min-width: 1180px){.services__filters[_ngcontent-%COMP%]{flex-wrap:nowrap;margin-bottom:50px}}.services__filters[_ngcontent-%COMP%]   app-custom-search-multiselect[_ngcontent-%COMP%]{flex:1;max-width:280px}@media (max-width: 1180px){.services__filters[_ngcontent-%COMP%]   app-custom-search-multiselect[_ngcontent-%COMP%]{flex:0 0 48%;max-width:unset}}.services__filters[_ngcontent-%COMP%]   .search-select[_ngcontent-%COMP%]{padding-left:.75em;padding-right:.75em;background-color:#d9eaff;width:24%;min-width:300px;height:42px;display:flex;align-items:center;margin-top:4px!important;box-sizing:border-box;cursor:pointer}@media (max-width: 1180px){.services__filters[_ngcontent-%COMP%]   .search-select[_ngcontent-%COMP%]{flex:0 0 48%;max-width:unset}}.services__filters[_ngcontent-%COMP%]   .search-select[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{margin-left:auto;color:#d6117f}.services__filters[_ngcontent-%COMP%]   .search-select[_ngcontent-%COMP%]   .select-arrow[_ngcontent-%COMP%]{height:8px;width:13px;background:url(/en/assets/pic/icons/arrow.svg) no-repeat;margin-left:10px}.services__filters[_ngcontent-%COMP%]   .search-select[_ngcontent-%COMP%]   .rotate[_ngcontent-%COMP%]{transform:rotate(180deg)}  .search-input__container{display:flex;justify-content:flex-end}  .search-input__container mat-form-field{width:unset}  .search-input__container.search-input__container_hidden{visibility:hidden;height:0}  .search-input__container .search-input img{width:20px;height:20px;transform:translateY(2px)}  .search-input__container .search-input .mat-form-field-flex{width:390px;padding:0 13px;border-radius:0;border-bottom:none;background:#F3F3F3}  .search-input__container .search-input .mat-form-field-wrapper{padding-bottom:0}  .search-input__container .search-input .mat-input-element{color:#a6a6a6;font-family:Capital Gothic;font-size:16px;font-style:normal;font-weight:300;line-height:normal;letter-spacing:.16px}  .search-input__container .search-input .mat-form-field-infix{padding:9px;border-top:0}  .search-input__container .search-input .mat-form-field-underline{display:none}[_nghost-%COMP%]     .mat-menu-trigger{padding:0;min-width:unset}  .date-menu{width:100%;max-width:100%;padding:10px 20px}  .search-input__container-trouble{display:flex;margin-bottom:10px}  .search-input__container-trouble.search-input__container_hidden{visibility:hidden;height:0}  .search-input__container-trouble .search-input img{width:20px;height:20px;transform:translateY(2px)}  .search-input__container-trouble .search-input .mat-form-field-flex{width:390px;padding:0 13px;border-radius:0;border-bottom:none;background:#F3F3F3}  .search-input__container-trouble .search-input .mat-form-field-wrapper{padding-bottom:0}  .search-input__container-trouble .search-input .mat-input-element{color:#a6a6a6;font-family:Capital Gothic;font-size:16px;font-style:normal;font-weight:300;line-height:normal;letter-spacing:.16px}  .search-input__container-trouble .search-input .mat-form-field-infix{padding:9px;border-top:0}  .search-input__container-trouble .search-input .mat-form-field-underline{display:none}"]}),o})();function jt(o,i){if(1&o&&(e.tHW(0,3,1),e.TgZ(1,"app-tooltip"),e._UZ(2,"p"),e.qZA(),e.N_p()),2&o){const t=e.oxw();e.xp6(2),e.pQV(t.tooltipsService.tooltips.ticketing_system),e.QtT(0)}}function Wt(o,i){if(1&o){const t=e.EpF();e.TgZ(0,"button",11),e.NdJ("click",function(){e.CHM(t);const a=e.oxw();return e.KtG(a.openTroubleTicket())}),e.SDv(1,12),e.qZA()}}function en(o,i){1&o&&(e.TgZ(0,"mat-tab",13),e._UZ(1,"app-trouble-tickets-tab"),e.qZA())}function tn(o,i){1&o&&(e.TgZ(0,"mat-tab",14),e._UZ(1,"app-billing-tickets-tab"),e.qZA())}let nn=(()=>{class o{constructor(t,n,a,_,s){this.rolesService=t,this.breadcrumbs=n,this.router=a,this.matDialog=_,this.tooltipsService=s,this.items=[{id:1,value:"Trouble Tickets"},{id:0,value:"Billing Tickets"}]}ngOnInit(){this.breadcrumbsSetup(),this.items=this.items.filter((t,
1n)=>this.canAction("create",0===t.id?"billing_tickets":"trouble_tickets"))}canAction(t,n){return this.rolesService.canAction(t,n)}breadcrumbsSetup(t="Trouble Tickets"){this.breadcrumbs.setLinks([{route:"/",text:"Home"},{route:"/main/support",text:"SUPPORT"},{text:t}])}openTroubleTicket(){this.matDialog.open(le.c,{exitAnimationDuration:"0ms",data:{title:"You Request Refers To",items:this.items,btn:"Create Ticket"}}).afterClosed().subscribe(t=>{0===t&&this.openBillingIssue(),1===t&&this.openServices()})}openBillingIssue(){this.matDialog.open(le.c,{enterAnimationDuration:"0ms",data:{title:"You Request Refers To",items:[{id:0,value:"Change Company Information"},{id:1,value:"Request Outage Compensation"},{id:4,value:"Request Statement of Account"},{id:2,value:"Dispute Invoice"},{id:3,value:"Other Billing Related Issue"}],btn:"Create Ticket"}}).afterClosed().subscribe(t=>{"number"==typeof t&&this.router.navigateByUrl("main/support/"+{0:"change-company-information",1:"request-outage-compensation",2:"dispute-invoice",3:"other-billing-related-issue",4:"request-statement-of-account"}[t])})}openServices(){this.router.navigateByUrl("main/support/create-trouble-ticket")}changeTab(t){const n={0:"Trouble Tickets",1:"Billing Tickets"};this.breadcrumbsSetup(n[t.index])}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(fe.f),e.Y36(q.W),e.Y36(x.F0),e.Y36($.uw),e.Y36(Q.b))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-ticketing-system"]],features:[e._Bn([{provide:e.QbO,useValue:"NoopAnimations"}])],decls:12,vars:4,consts:function(){let i,t,n,a;return i="TROUBLE TICKETS",t="BILLING TICKETS",n="TICKETING SYSTEM " + "\ufffd*4:1\ufffd\ufffd#1:1\ufffd" + "" + "\ufffd#2:1\ufffd" + "" + "\ufffd0:1\ufffd" + "" + "\ufffd/#2:1\ufffd" + "" + "\ufffd/#1:1\ufffd\ufffd/*4:1\ufffd" + "",a="New ticket ",[[1,"main-wrapper"],[1,"title","margin-top"],[1,"title-text","capital-gothic"],n,[4,"ngIf"],[1,"breadcrumbs"],[1,"tickets__actions","action-btns"],["class","btn btn_pink capital-gothic","mat-raised-button","",3,"click",4,"ngIf"],["animationDuration","0",3,"selectedTabChange"],["label",i,4,"ngIf"],["label",t,4,"ngIf"],["mat-raised-button","",1,"btn","btn_pink","capital-gothic",3,"click"],a,["label",i],["label",t]]},template:function(t,n){1&t&&(e.TgZ(0,"div",0)(1,"div",1)(2,"p",2),e.tHW(3,3),e.YNc(4,jt,3,1,"app-tooltip",4),e.N_p(),e.qZA(),e.TgZ(5,"div",5),e._UZ(6,"wo-breadcrumbs"),e.qZA()(),e.TgZ(7,"div",6),e.YNc(8,Wt,2,0,"button",7),e.qZA(),e.TgZ(9,"mat-tab-group",8),e.NdJ("selectedTabChange",function(_){return n.changeTab(_)}),e.YNc(10,en,2,0,"mat-tab",9),e.YNc(11,tn,2,0,"mat-tab",10),e.qZA()()),2&t&&(e.xp6(4),e.Q6J("ngIf",null==n.tooltipsService||null==n.tooltipsService.tooltips?null:n.tooltipsService.tooltips.ticketing_system),e.xp6(4),e.Q6J("ngIf",n.canAction("create","billing_tickets")||n.canAction("create","trouble_tickets")),e.xp6(2),e.Q6J("ngIf",n.canAction("view","trouble_tickets")),e.xp6(1),e.Q6J("ngIf",n.canAction("view","billing_tickets")))},dependencies:[T.O5,Y.K,z.g,y.lW,_e.SP,_e.uX,At,Ht],styles:[".main-wrapper[_ngcontent-%COMP%]{padding:0 60px 40px 0}@media (max-width: 960px){.main-wrapper[_ngcontent-%COMP%]{padding-right:1rem}}.tickets__actions[_ngcontent-%COMP%]{padding:34px 0 35px}  .mat-tab-body-content{overflow:hidden!important}.title-text[_ngcontent-%COMP%]     app-tooltip .right{top:12px}"]}),o})();var on=l(53504),_n=l(77579);let ge=(()=>{class o{constructor(){this.refreshPage=new _n.x}}return o.\u0275fac=function(t){return new(t||o)}
1,o.\u0275prov=e.Yz7({token:o,factory:o.\u0275fac}),o})();var B=l(44850);function an(o,i){if(1&o&&(e.TgZ(0,"p",8),e._uU(1),e.qZA()),2&o){const t=e.oxw().$implicit,n=e.oxw();e.xp6(1),e.Oqu(n.ticketDetails[t])}}function sn(o,i){if(1&o&&(e.TgZ(0,"div",8)(1,"p"),e._uU(2),e.qZA(),e.TgZ(3,"p"),e._uU(4),e.qZA()()),2&o){const t=e.oxw().$implicit,n=e.oxw();e.xp6(2),e.Oqu(n.ticketDetails[t].name),e.xp6(2),e.Oqu(n.ticketDetails[t].position)}}function rn(o,i){if(1&o&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&o){const t=i.$implicit;e.xp6(1),e.Oqu(t)}}function ln(o,i){if(1&o&&(e.TgZ(0,"div",8),e.YNc(1,rn,2,1,"p",4),e.qZA()),2&o){const t=e.oxw().$implicit,n=e.oxw();e.xp6(1),e.Q6J("ngForOf",n.ticketDetails[t])}}function cn(o,i){if(1&o&&(e.ynx(0),e.TgZ(1,"div",5)(2,"p",6),e._uU(3),e.qZA(),e.YNc(4,an,2,1,"p",7),e.YNc(5,sn,5,2,"div",7),e.YNc(6,ln,2,1,"div",7),e.qZA(),e._UZ(7,"mat-divider"),e.BQk()),2&o){const t=i.$implicit,n=e.oxw();e.xp6(3),e.Oqu(n.titles[t]),e.xp6(1),e.Q6J("ngIf","task_owner"!==t&&"ticket_contacts"!==t),e.xp6(1),e.Q6J("ngIf","task_owner"==t),e.xp6(1),e.Q6J("ngIf","ticket_contacts"==t)}}let Tn=(()=>{class o{constructor(){this.ticketDetails={},this.columnName=["category","statement_of_account_as_of","subject","created","ticket_contacts","task_owner"],this.resultNames=[],this.titles={category:"Category ",statement_of_account_as_of:"Statement Of Account As Of",subject:"Subject",created:"Created",ticket_contacts:"Ticket Contacts",task_owner:"Task Owner"}}ngOnChanges(t){t.ticketDetails&&(this.resultNames=this.columnName.filter(n=>Object.keys(this.ticketDetails).includes(n)))}}return o.\u0275fac=function(t){return new(t||o)}
1,o.\u0275cmp=e.Xpm({type:o,selectors:[["ticket-details"]],inputs:{ticketDetails:"ticketDetails"},features:[e.TTD],decls:5,vars:1,consts:function(){let i;return i="Ticket Details",[[1,"ticket-details"],[1,"section-title"],i,[1,"pink-divider"],[4,"ngFor","ngForOf"],[1,"ticket-details__field"],[1,"ticket-details__label"],["class","ticket-details__value",4,"ngIf"],[1,"ticket-details__value"]]},template:function(t,n){1&t&&(e.TgZ(0,"div",0)(1,"h3",1),e.SDv(2,2),e.qZA(),e._UZ(3,"mat-divider",3),e.YNc(4,cn,8,4,"ng-container",4),e.qZA()),2&t&&(e.xp6(4),e.Q6J("ngForOf",n.resultNames))},dependencies:[T.sg,T.O5,B.d],styles:[".ticket-details__field[_ngcontent-%COMP%]{display:grid;grid-template-columns:35% 1fr;gap:15px;padding:18px 18px 18px 28px}.ticket-details__label[_ngcontent-%COMP%]{font-size:16px;font-weight:700}.section-title[_ngcontent-%COMP%]{padding-left:20px}.link[_ngcontent-%COMP%]{color:#144a90;text-decoration:none;cursor:pointer}mat-divider[_ngcontent-%COMP%]{border-top-color:#000}mat-divider.pink-divider[_ngcontent-%COMP%]{border-top-color:#d6117f;border-top-width:2px}"]}),o})();function pn(o,i){if(1&o&&(e.ynx(0),e.TgZ(1,"h3",1),e.SDv(2,2),e.qZA(),e._UZ(3,"mat-divider",3),e.TgZ(4,"div",4),e._UZ(5,"p",5),e.qZA(),e.BQk()),2&o){const t=e.oxw();e.xp6(5),e.Q6J("innerHTML",t.parsedDescription,e.oJD)}}let dn=(()=>{class o{constructor(){this.description=""}get parsedDescription(){return this.description?this.description=this.description.split("<br />")[0]:""}}return o.\u0275fac=function(t){return new(t||o)}
1,o.\u0275cmp=e.Xpm({type:o,selectors:[["ticket-description"]],inputs:{description:"description"},decls:1,vars:1,consts:function(){let i;return i="Ticket Description",[[4,"ngIf"],[1,"section-title"],i,[1,"pink-divider"],[1,"scroll"],[3,"innerHTML"]]},template:function(t,n){1&t&&e.YNc(0,pn,6,1,"ng-container",0),2&t&&e.Q6J("ngIf",n.parsedDescription)},dependencies:[T.O5,B.d],styles:["h3[_ngcontent-%COMP%]{padding-left:20px}p[_ngcontent-%COMP%]{font-weight:400;line-height:18px}mat-divider[_ngcontent-%COMP%]{border-top-color:#000}mat-divider.pink-divider[_ngcontent-%COMP%]{border-top-color:#d6117f;border-top-width:2px}.scroll[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{max-height:170px;overflow-y:auto;margin:34px 0!important;font-style:normal;font-weight:400;line-height:normal;padding:0 40px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:2px;height:2px;background-color:#fff;padding:0 4px}[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:rgb(230,230,230)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#BBBBBB;border-radius:0}"]}),o})();var gn=l(15439),Cn=l.n(gn);function un(o,i){if(1&o&&(e.TgZ(0,"div",14),e._uU(1),e.qZA()),2&o){const t=e.oxw(2);e.xp6(1),e.hij("",t.banner.number_of_unread_events>9?"9+":t.banner.number_of_unread_events," ")}}const En=function(o){return{unread:o}};function On(o,i){if(1&o&&(e.TgZ(0,"div",12),e.YNc(1,un,2,1,"div",13),e.qZA()),2&o){const t=e.oxw();e.Q6J("ngClass",e.VKq(2,En,!!t.banner.number_of_unread_events)),e.xp6(1),e.Q6J("ngIf",!!t.banner.number_of_unread_events)}}function Pn(o,i){1&o&&(e.TgZ(0,"p",15),e.SDv(1,16),e.qZA())}function Sn(o,i){1&o&&(e.TgZ(0,"p",15),e.SDv(1,17),e.qZA())}function mn(o,i){1&o&&(e.TgZ(0,"p",18),e.tHW(1,19),e._UZ(2,"i"),e.N_p(),e.qZA())}function Mn(o,i){if(1&o&&(e.TgZ(0,"p",18),e.tHW(1,20),e._UZ(2,"i"),e.N_p(),e.qZA()),2&o){const t=e.oxw();e.xp6(2),e.pQV(t.banner.last_unread_event_message),e.QtT(1)}}function fn(o,i){if(1&o){const t=e.EpF();e.TgZ(0,"div",21),e.NdJ("click",function(){e.CHM(t);const a=e.oxw();return e.KtG(a.scrollToHistory())}),e.TgZ(1,"a",22),e.tHW(2,23),e._UZ(3,"div",24),e.N_p(),e.qZA()()}}let Nn=(()=>{class o{constructor(t,n){this.activatedRoute=t,this.ticketService=n,this.ticketStatus={},this.banner={},this.last_updated="",this.ticketCreated=!1}scrollToHistory(){document.getElementById("history").scrollIntoView({behavior:"smooth"})}ngOnInit(){this.ticketService.refreshPage.subscribe(t=>{this.ticketCreated=!1,this.last_updated=(0,I.Z)(new Date,"dd/mm/yyyy HH:mm")}),this.activatedRoute.queryParams.subscribe(t=>{t.status&&(this.ticketCreated=!0)})}get ticketStatusClass(){switch(this.ticketStatus.status){case"New":return"status_purple";case"In progress":default:return"status_blue";case"Cancelled":return"status_grey";case"Superseded":return"status_red";case"Delivered":return"status_orange"}}transformTimeToRegion(t){return Cn()(1e3*+t).format("DD/MM/YYYY HH:mm")}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(x.gz),e.Y36(ge))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-ticket-status"]],inputs:{ticketStatus:"ticketStatus",banner:"banner",last_updated:"last_updated"},decls:17,vars:9,consts:function(){let i,t,n,a,_,s;return i="Status",t="Last Updated",n="You successfully created a ticket",a="" + "\ufffd#2\ufffd" + "We will start working on your issue as soon as possible." + "\ufffd/#2\ufffd" + "",_="" + "\ufffd#2\ufffd" + "" + "\ufffd0\ufffd" + "" + "\ufffd/#2\ufffd" + "",s="" + "\ufffd#3\ufffd" + "" + "\ufffd/#3\ufffd" + " See More ",[[1,"ticket__actions"],[1,"ticket__status","status","capital-gothic",3,"ngClass"],[1,"status__name"],[1,"status__label"],i,[1,"ticket__banner","banner"],["class","banner__icon",3,"ngClass",4,"ngIf"],[1,"banner__body"],[1,"banner__header"],["class","banner__title",4,"ngIf"],["class","capital-gothic italic",4,"ngIf"],["class","more",3,"click",4,"ngIf"],[1,"banner__icon",3,"ngClass"],["class","banner__counter",4,"ngIf"],[1,"banner__counter"],[1,"banner__title"],t,n,[1,"capital-gothic","italic"],a,_,[1,"more",3,"click"],[1,"banner__anckor"],s,[1,"additional-info__vector","vector"]]},template:function(t,n){1&t&&(e.TgZ(0,"div",0)(1,"div",1)(2,"span",2),e._uU(3),e.qZA(),e.TgZ(4,"span",3),e.SDv(5,4),e.qZA()(),e.TgZ(6,"div",5),e.YNc(7,On,2,4,"div",6),e.TgZ(8,"div",7)(9,"div",8),e.YNc(10,Pn,2,0,"p",9),e.YNc(11,Sn,2,0,"p",9),e.TgZ(12,"time"),e._uU(13),e.qZA(),e.YNc(14,mn,3,0,"p",10),e.YNc(15,Mn,3,1,"p",10),e.qZA()(),e.YNc(16,fn,4,0,"div",11),e.qZA()()),2&t&&(e.xp6(1),e.Q6J("ngClass",n.ticketStatusClass),e.xp6(2),e.Oqu(n.ticketStatus.status),e.xp6(4),e.Q6J("ngIf",!n.ticketCreated),e.xp6(3),e.Q6J("ngIf",!n.ticketCreated),e.xp6(1),e.Q6J("ngIf",n.ticketCreated),e.xp6(2),e.Oqu(n.transformTimeToRegion(n.banner.last_updated_at)),e.xp6(1),e.Q6J("ngIf",n.ticketCreated),e.xp6(1),e.Q6J("ngIf",!n.ticketCreated&&n.banner.last_unread_event_message),e.xp6(1),e.Q6J("ngIf",!n.ticketCreated))},dependencies:[T.mk,T.O5],styles:[".ticket__actions[_ngcontent-%COMP%]{flex:0 0 46%;display:flex;flex-direction:column}.ticket__actions[_ngcontent-%COMP%]   .status[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block;text-transform:uppercase}.ticket__actions[_ngcontent-%COMP%]   .status[_ngcontent-%COMP%]   span.status__label[_ngcontent-%COMP%]{display:block;color:#d9d9d9;font-weight:700;text-transform:uppercase}.banner[_ngcontent-%COMP%]{background:#144A90;display:flex;color:#fff;padding:10px 20px;max-width:460px;margin-top:40px}.banner__body[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:space-between}.banner__counter[_ngcontent-%COMP%]{display:flex;min-width:30px;max-width:30px;justify-content:center;height:91%;align-items:center}.banner__title[_ngcontent-%COMP%]{font-weight:700}.banner[_ngcontent-%COMP%]   time[_ngcontent-%COMP%], .banner__message[_ngcontent-%COMP%]{font-weight:300;font-family:Capital Gothic,Arial,sans-serif}.banner[_ngcontent-%COMP%]   .italic[_ngcontent-%COMP%]{font-weight:300}.banner[_ngcontent-%COMP%]   time[_ngcontent-%COMP%]{font-size:14px}.banner__anckor[_ngcontent-%COMP%]{display:flex;align-items:flex-end;color:#fff;text-decoration:none;gap:10px;cursor:pointer}.banner__anckor[_ngcontent-%COMP%]:hover{color:#d6117f}.banner__anckor[_ngcontent-%COMP%]:hover   .vector[_ngcontent-%COMP%]{background:url(/assets/pic/vector-pink.svg) no-repeat}.banner__icon[_ngcontent-%COMP%]{min-width:33px;width:33px;
1height:33px;background-color:#d9eaff;-webkit-mask:url(/assets/pic/header/newmessage.svg) no-repeat center;mask:url(/assets/pic/header/newmessage.svg) no-repeat center;margin-right:24px}.banner[_ngcontent-%COMP%]   .unread[_ngcontent-%COMP%]{background-color:#d6117f}.banner[_ngcontent-%COMP%]   .more[_ngcontent-%COMP%]{margin-left:auto;display:flex;align-items:center;justify-content:flex-end}.vector[_ngcontent-%COMP%]{margin-left:68px;height:39px;width:55px;background:url(/assets/pic/icons/white-vector.svg) no-repeat}"]}),o})();function In(o,i){if(1&o){const t=e.EpF();e.TgZ(0,"div",6)(1,"div",7),e.NdJ("click",function(){const _=e.CHM(t).$implicit,s=e.oxw();return e.KtG(s.toFilePreview(_.preview_link))}),e._uU(2),e.qZA(),e.TgZ(3,"div",8),e._uU(4),e.qZA(),e.TgZ(5,"div",9),e._uU(6),e.qZA()()}if(2&o){const t=i.$implicit;e.xp6(2),e.Oqu(t.name),e.xp6(2),e.Oqu(t.date),e.xp6(2),e.Oqu(t.author)}}let hn=(()=>{class o{constructor(){this.files=[]}toFilePreview(t){window.open(t,"_blank")}}return o.\u0275fac=function(t){return new(t||o)}
1,o.\u0275cmp=e.Xpm({type:o,selectors:[["app-ticket-files"]],inputs:{files:"files"},decls:6,vars:1,consts:function(){let i;return i="Attached Files",[[1,"section-title"],i,[1,"pink-divider"],[1,"scroll"],[1,"attached-files"],["class","file-item",4,"ngFor","ngForOf"],[1,"file-item"],[1,"file-item__name",3,"click"],[1,"file-item__date"],[1,"file-item__author"]]},template:function(t,n){1&t&&(e.TgZ(0,"h3",0),e.SDv(1,1),e.qZA(),e._UZ(2,"mat-divider",2),e.TgZ(3,"div",3)(4,"div",4),e.YNc(5,In,7,3,"div",5),e.qZA()()),2&t&&(e.xp6(5),e.Q6J("ngForOf",n.files))},dependencies:[T.sg,B.d],styles:["h3[_ngcontent-%COMP%]{margin-top:54px;padding-left:20px}mat-divider[_ngcontent-%COMP%]{border-top-color:#000}mat-divider.pink-divider[_ngcontent-%COMP%]{border-top-color:#d6117f;border-top-width:2px}.attached-files[_ngcontent-%COMP%]{max-height:74px;overflow-y:auto;padding:0 40px;margin:34px 0 114px;direction:rtl}.attached-files[_ngcontent-%COMP%]   .file-item[_ngcontent-%COMP%]{display:grid;grid-template-columns:40% 30% 1fr;column-gap:20px;margin:5px 0;direction:ltr}.attached-files[_ngcontent-%COMP%]   .file-item__name[_ngcontent-%COMP%]{text-transform:uppercase;color:#144a90;font:400 14px Capital Gothic,Arial,sans-serif;cursor:pointer;line-height:18px}.attached-files[_ngcontent-%COMP%]   .file-item__author[_ngcontent-%COMP%]{color:#e0e0e0;font-family:Arial;font-size:16px;font-style:normal;font-weight:700;line-height:normal}[_ngcontent-%COMP%]::-webkit-scrollbar{width:2px;height:2px;background-color:#fff;padding:0 4px}[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:rgb(230,230,230)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#BBBBBB;border-radius:0}.scroll[_ngcontent-%COMP%]{width:100%;height:100%;overflow-y:auto}"]}),o})();function An(o,i){if(1&o&&(e.tHW(0,2,1),e.TgZ(1,"app-tooltip"),e._UZ(2,"p"),e.qZA(),e.N_p()),2&o){const t=e.oxw();e.xp6(2),e.pQV(t.tooltipsService.tooltips.change_company_information_ticket_details),e.QtT(0)}}function Fn(o,i){if(1&o&&(e.tHW(0,2,2),e.TgZ(1,"app-tooltip"),e._UZ(2,"p"),e.qZA(),e.N_p()),2&o){const t=e.oxw();e.xp6(2),e.pQV(t.tooltipsService.tooltips.other_billing_related_issues_ticket_details),e.QtT(0)}}function Rn(o,i){if(1&o&&(e.tHW(0,2,3),e.TgZ(1,"app-tooltip"),e._UZ(2,"p"),e.qZA(),e.N_p()),2&o){const t=e.oxw();e.xp6(2),e.pQV(t.tooltipsService.tooltips.dispute_invoice_ticket_details),e.QtT(0)}}function xn(o,i){if(1&o&&(e.tHW(0,2,4),e.TgZ(1,"app-tooltip"),e._UZ(2,"p"),e.qZA(),e.N_p()),2&o){const t=e.oxw();e.xp6(2),e.pQV(t.tooltipsService.tooltips.request_statement_of_account_ticket_details),e.QtT(0)}}function bn(o,i){if(1&o&&(e.tHW(0,2,5),e.TgZ(1,"app-tooltip"),e._UZ(2,"p"),e.qZA(),e.N_p()),2&o){const t=e.oxw();e.xp6(2),e.pQV(t.tooltipsService.tooltips.request_outage_compensation_ticket_details),e.QtT(0)}}function vn(o,i){if(1&o&&(e.tHW(0,2,6),e.TgZ(1,"app-tooltip"),e._UZ(2,"p"),e.qZA(),e.N_p()),2&o){const t=e.oxw();e.xp6(2),e.pQV(t.tooltipsService.tooltips.trouble_ticket_details),e.QtT(0)}}let Un=(()=>{class o{constructor(t){this.tooltipsService=t,this.ticketId="",this.category=""}ngOnInit(){}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(Q.b))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-ticket-title"]],inputs:{ticketId:"ticketId",category:"category"},decls:11,vars:7,consts:function(){let i;return i="Ticket #" + "\ufffd0\ufffd" + " " + "\ufffd*3:1\ufffd\ufffd#1:1\ufffd" + "" + "[\ufffd#2:1\ufffd|\ufffd#2:2\ufffd|\ufffd#2:3\ufffd|\ufffd#2:4\ufffd|\ufffd#2:5\ufffd|\ufffd#2:6\ufffd]" + "" + "\ufffd0:1\ufffd" + "" + "[\ufffd/#2:1\ufffd|\ufffd/#2:2\ufffd|\ufffd/#2:3\ufffd|\ufffd/#2:4\ufffd|\ufffd/#2:5\ufffd|\ufffd/#2:6\ufffd]" + "" + "[\ufffd/#1:1\ufffd\ufffd/*3:1\ufffd|\ufffd/#1:2\ufffd\ufffd/*4:2\ufffd|\ufffd/#1:3\ufffd\ufffd/*5:3\ufffd|\ufffd/#1:4\ufffd\ufffd/*6:4\ufffd|\ufffd/#1:5\ufffd\ufffd/*7:5\ufffd|\ufffd/#1:6\ufffd\ufffd/*8:6\ufffd]" + "" + "\ufffd*4:2\ufffd\ufffd#1:2\ufffd" + "" + "[\ufffd#2:1\ufffd|\ufffd#2:2\ufffd|\ufffd#2:3\ufffd|\ufffd#2:4\ufffd|\ufffd#2:5\ufffd|\ufffd#2:6\ufffd]" + "" + "\ufffd0:2\ufffd" + "" + "[\ufffd/#2:1\ufffd|\ufffd/#2:2\ufffd|\ufffd/#2:3\ufffd|\ufffd/#2:4\ufffd|\ufffd/#2:5\ufffd|\ufffd/#2:6\ufffd]" + "" + "[\ufffd/#1:1\ufffd\ufffd/*3:1\ufffd|\ufffd/#1:2\ufffd\ufffd/*4:2\ufffd|\ufffd/#1:3\ufffd\ufffd/*5:3\ufffd|\ufffd/#1:4\ufffd\ufffd/*6:4\ufffd|\ufffd/#1:5\ufffd\ufffd/*7:5\ufffd|\ufffd/#1:6\ufffd\ufffd/*8:6\ufffd]" + "" + "\ufffd*5:3\ufffd\ufffd#1:3\ufffd" + "" + "[\ufffd#2:1\ufffd|\ufffd#2:2\ufffd|\ufffd#2:3\ufffd|\ufffd#2:4\ufffd|\ufffd#2:5\ufffd|\ufffd#2:6\ufffd]" + "" + "\ufffd0:3\ufffd" + "" + "[\ufffd/#2:1\ufffd|\ufffd/#2:2\ufffd|\ufffd/#2:3\ufffd|\ufffd/#2:4\ufffd|\ufffd/#2:5\ufffd|\ufffd/#2:6\ufffd]" + "" + "[\ufffd/#1:1\ufffd\ufffd/*3:1\ufffd|\ufffd/#1:2\ufffd\ufffd/*4:2\ufffd|\ufffd/#1:3\ufffd\ufffd/*5:3\ufffd|\ufffd/#1:4\ufffd\ufffd/*6:4\ufffd|\ufffd/#1:5\ufffd\ufffd/*7:5\ufffd|\ufffd/#1:6\ufffd\ufffd/*8:6\ufffd]" + "" + "\ufffd*6:4\ufffd\ufffd#1:4\ufffd" + "" + "[\ufffd#2:1\ufffd|\ufffd#2:2\ufffd|\ufffd#2:3\ufffd|\ufffd#2:4\ufffd|\ufffd#2:5\ufffd|\ufffd#2:6\ufffd]" + "" + "\ufffd0:4\ufffd" + "" + "[\ufffd/#2:1\ufffd|\ufffd/#2:2\ufffd|\ufffd/#2:3\ufffd|\ufffd/#2:4\ufffd|\ufffd/#2:5\ufffd|\ufffd/#2:6\ufffd]" + "" + "[\ufffd/#1:1\ufffd\ufffd/*3:1\ufffd|\ufffd/#1:2\ufffd\ufffd/*4:2\ufffd|\ufffd/#1:3\ufffd\ufffd/*5:3\ufffd|\ufffd/#1:4\ufffd\ufffd/*6:4\ufffd|\ufffd/#1:5\ufffd\ufffd/*7:5\ufffd|\ufffd/#1:6\ufffd\ufffd/*8:6\ufffd]" + "" + "\ufffd*7:5\ufffd\ufffd#1:5\ufffd" + "" + "[\ufffd#2:1\ufffd|\ufffd#2:2\ufffd|\ufffd#2:3\ufffd|\ufffd#2:4\ufffd|\ufffd#2:5\ufffd|\ufffd#2:6\ufffd]" + "" + "\ufffd0:5\ufffd" + "" + "[\ufffd/#2:1\ufffd|\ufffd/#2:2\ufffd|\ufffd/#2:3\ufffd|\ufffd/#2:4\ufffd|\ufffd/#2:5\ufffd|\ufffd/#2:6\ufffd]" + "" + "[\ufffd/#1:1\ufffd\ufffd/*3:1\ufffd|\ufffd/#1:2\ufffd\ufffd/*4:2\ufffd|\ufffd/#1:3\ufffd\ufffd/*5:3\ufffd|\ufffd/#1:4\ufffd\ufffd/*6:4\ufffd|\ufffd/#1:5\ufffd\ufffd/*7:5\ufffd|\ufffd/#1:6\ufffd\ufffd/*8:6\ufffd]" + "" + "\ufffd*8:6\ufffd\ufffd#1:6\ufffd" + "" + "[\ufffd#2:1\ufffd|\ufffd#2:2\ufffd|\ufffd#2:3\ufffd|\ufffd#2:4\ufffd|\ufffd#2:5\ufffd|\ufffd#2:6\ufffd]" + "" + "\ufffd0:6\ufffd" + "" + "[\ufffd/#2:1\ufffd|\ufffd/#2:2\ufffd|\ufffd/#2:3\ufffd|\ufffd/#2:4\ufffd|\ufffd/#2:5\ufffd|\ufffd/#2:6\ufffd]" + "" + "[\ufffd/#1:1\ufffd\ufffd/*3:1\ufffd|\ufffd/#1:2\ufffd\ufffd/*4:2\ufffd|\ufffd/#1:3\ufffd\ufffd/*5:3\ufffd|\ufffd/#1:4\ufffd\ufffd/*6:4\ufffd|\ufffd/#1:5\ufffd\ufffd/*7:5\ufffd|\ufffd/#1:6\ufffd\ufffd/*8:6\ufffd]" + "",i=e.Zx4(i),[[1,"title","margin-top"],[1,"title-text","capital-gothic"],i,[4,"ngIf"],[1,"breadcrumbs"]]},template:function(t,n){1&t&&(e.TgZ(0,"div",0)(1,"p",1),e.tHW(2,2),e.YNc(3,An,3,1,"app-tooltip",3),e.YNc(4,Fn,3,1,"app-tooltip",3),e.YNc(5,Rn,3,1,"app-tooltip",3),e.YNc(6,xn,3,1,"app-tooltip",3),e.YNc(7,bn,3,1,"app-tooltip",3),e.YNc(8,vn,3,1,"app-tooltip",3),e.N_p(),e.qZA(),e.TgZ(9,"div",4),e._UZ(10,"wo-breadcrumbs"),e.qZA()()),2&t&&(e.xp6(3),e.Q6J("ngIf",(null==n.tooltipsService||null==n.tooltipsService.tooltips?null:n.tooltipsService.tooltips.change_company_information_ticket_details)&&"change_info"===n.category),e.xp6(1),e.Q6J("ngIf",(null==n.tooltipsService||null==n.tooltipsService.tooltips?null:n.tooltipsService.tooltips.other_billing_related_issues_ticket_details)&&"other"===n.category),e.xp6(1),e.Q6J("ngIf",(null==n.tooltipsService||null==n.tooltipsService.tooltips?null:n.tooltipsService.tooltips.dispute_invoice_ticket_details)&&"dis
1pute_invoice"===n.category),e.xp6(1),e.Q6J("ngIf",(null==n.tooltipsService||null==n.tooltipsService.tooltips?null:n.tooltipsService.tooltips.request_statement_of_account_ticket_details)&&"request_statement"===n.category),e.xp6(1),e.Q6J("ngIf",(null==n.tooltipsService||null==n.tooltipsService.tooltips?null:n.tooltipsService.tooltips.request_outage_compensation_ticket_details)&&"request_compensation"===n.category),e.xp6(1),e.Q6J("ngIf",(null==n.tooltipsService||null==n.tooltipsService.tooltips?null:n.tooltipsService.tooltips.trouble_ticket_details)&&null===n.category),e.pQV(n.ticketId),e.QtT(2))},dependencies:[T.O5,Y.K,z.g],styles:[".title-text[_ngcontent-%COMP%]     app-tooltip .right{top:13px}"]}),o})();var H=l(54004),Dn=l(27851),$n=l(11481);function yn(o,i){if(1&o&&(e.TgZ(0,"p",9),e._uU(1),e.qZA()),2&o){const t=e.oxw(2);e.xp6(1),e.Oqu(t.typeMessage)}}function wn(o,i){if(1&o&&(e.TgZ(0,"p",10),e._UZ(1,"i",11),e.qZA()),2&o){const t=e.oxw(2);e.xp6(1),e.Q6J("innerHTML",t.event.message,e.oJD)}}function kn(o,i){if(1&o&&(e.TgZ(0,"div",15)(1,"a",16),e._uU(2),e.qZA()()),2&o){const t=i.$implicit;e.xp6(1),e.Q6J("href",t.preview_link,e.LSH),e.xp6(1),e.Oqu(t.name)}}function Ln(o,i){if(1&o&&(e.TgZ(0,"div")(1,"p",12),e.SDv(2,13),e.qZA(),e.YNc(3,kn,3,2,"div",14),e.qZA()),2&o){const t=e.oxw(2);e.xp6(3),e.Q6J("ngForOf",t.event.attachments)}}const Re=function(o){return{high:!1,client:o}};function Gn(o,i){if(1&o&&(e.TgZ(0,"div",2)(1,"div",3)(2,"p",4),e._uU(3),e.qZA(),e.TgZ(4,"time",5),e._uU(5),e.qZA()(),e.YNc(6,yn,2,1,"p",6),e.YNc(7,wn,2,1,"p",7),e.YNc(8,Ln,4,1,"div",8),e.qZA()),2&o){const t=e.oxw();e.Tol(e.VKq(7,Re,t.event.is_client)),e.xp6(3),e.Oqu(t.event.who),e.xp6(2),e.Oqu(t.getEventTime(t.event.date)),e.xp6(1),e.Q6J("ngIf",t.event.type),e.xp6(1),e.Q6J("ngIf",t.event.message),e.xp6(1),e.Q6J("ngIf",null==t.event||null==t.event.attachments?null:t.event.attachments.length)}}function Zn(o,i){1&o&&(e.TgZ(0,"span",19),e.SDv(1,20),e.qZA())}function qn(o,i){if(1&o&&(e.TgZ(0,"div",15)(1,"a",16),e._uU(2),e.qZA()()),2&o){const t=i.$implicit;e.xp6(1),e.Q6J("href",t.preview_link,e.LSH),e.xp6(1),e.Oqu(t.name)}}function Kn(o,i){if(1&o&&(e.TgZ(0,"div")(1,"p",12),e.SDv(2,21),e.qZA(),e.YNc(3,qn,3,2,"div",14),e.qZA()),2&o){const t=e.oxw(2);e.xp6(3),e.Q6J("ngForOf",t.event.attachments)}}function Yn(o,i){if(1&o&&(e.TgZ(0,"div",2)(1,"div",3)(2,"p",4),e._uU(3),e.qZA(),e.TgZ(4,"time",5),e._uU(5),e.qZA()(),e._UZ(6,"p",17),e.YNc(7,Zn,2,0,"span",18),e.YNc(8,Kn,4,1,"div",8),e.qZA()),2&o){const t=e.oxw();e.Tol(e.VKq(7,Re,t.event.is_client)),e.xp6(3),e.Oqu(t.event.who),e.xp6(2),e.Oqu(t.getEventTime(t.event.date)),e.xp6(1),e.Q6J("innerHTML",t.event.message,e.oJD),e.xp6(1),e.Q6J("ngIf",!1),e.xp6(1),e.Q6J("ngIf",null==t.event||null==t.event.attachments?null:t.event.attachments.length)}}let zn=(()=>{class o{constructor(t){this.activatedRoute=t}getEventTime(t){return t.split(" ")[1].slice(0,5)}get typeMessage(){switch(this.event.type){case"open":return "Ticket #" + this.activatedRoute.snapshot.params.id + " opened";case"update2client":return "Ticket #" + this.activatedRoute.snapshot.params.id + " updated";case"incoming":case"outcoming":return "";case"close":return "Ticket closing request.";case"escalate":return "Ticket was escalated";case"resolve":return "Ticket resolving request.";case"reopen":return "Ticket was reopened";default:return""}}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(x.gz))},o.\u0275cmp=e.Xpm({type:o,selectors:[["ticket-event"]],inputs:{event:"event"},decls:3,vars:3,consts:function(){let i,t,n;return i="Attached Files:",t="High Importance",n="Attached Files:",[[1,"comment",3,"ngSwitch"],["class","comment__body",3,"class",4,"ngSwitchCase"],[1,"comment__body"],[1,"comment__header"],[1,"comment__title"],[1,"comment__time"],["class"," key-words capital-gothic",4,"ngIf"],["class","comment__text capital-gothic",4,"ngIf"],[4,"ngIf"],[1,"key-words","capital-gothic"],[1,"comment__text","capital-gothic"],[3,"innerHTML"],[1,"comment__text"],i,["class","comment__attachment",4,"ngFor","ngForOf"],[1,"comment__attachment"],["target","_blank",1,"comment__attachment-link",3,"href"],[1,"comment__text",3,"innerHTML"],["class","high-importance",4,"ngIf"],[1,"high-importance"],t,n]},template:function(t,n){1&t&&(e.TgZ(0,"article",0),e.YNc(1,Gn,9,9,"div",1),e.YNc(2,Yn,9,9,"div",1),e.qZA()),2&t&&(e.Q6J("ngSwitch",n.event.is_client),e.xp6(1),e.Q6J("ngSwitchCase",!0),e.xp6(1),e.Q6J("ngSwitchCase",!1))},dependencies:[T.sg,T.O5,T.RF,T.n9],styles:[".comment[_ngcontent-%COMP%]{display:flex;max-width:950px;box-sizing:border-box;width:100%;position:relative;margin-bottom:20px}.comment[_ngcontent-%COMP%]   .attached-files[_ngcontent-%COMP%]{font-weight:700}.comment[_ngcontent-%COMP%]   .attached-files[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-weight:400}.comment__body[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;gap:10px;background:#FFF;border:1px solid #E0E0E0;padding:20px 15px}.comment__body[_ngcontent-%COMP%]   .key-words[_ngcontent-%COMP%]{font-weight:300}.comment__header[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;align-items:flex-start}.comment__title[_ngcontent-%COMP%]{font:700 16px Capital Gothic,Arial,sans-serif;margin-right:10px!important}.comment__time[_ngcontent-%COMP%]{color:#ababad;font:300 14px Capital Gothic,Arial,sans-serif;line-height:1.8}.comment__text[_ngcontent-%COMP%]{font:300 16px Capital Gothic,Arial,sans-serif}.comment__text[_ngcontent-%COMP%]   .comment__files[_ngcontent-%COMP%]{font-weight:700}.comment__text[_ngcontent-%COMP%]:has(.comment__files){margin-top:10px!important}.client[_ngcontent-%COMP%]{background:#D9EAFF;border:0}.high[_ngcontent-%COMP%]{border:2px solid #D6117F}.high-importance[_ngcontent-%COMP%]{text-transform:uppercase;color:#d6117f;font:700 14px Capital Gothic,Arial,sans-serif;position:absolute;bottom:20px;right:15px}.comment__attachment-link[_ngcontent-%COMP%]{color:#144a90;font:400 14px Capital Gothic,Arial,sans-serif;cursor:pointer;text-decoration:none;text-transform:uppercase}"]}),o})();function Qn(o,i){1&o&&e._UZ(0,"ticket-event",17),2&o&&e.Q6J("event",i.$implicit)}function Xn(o,i){if(1&o&&(e.TgZ(0,"div",14)(1,"span",15),e._uU(2),e.qZA(),e.YNc(3,Qn,1,1,"ticket-event",16),e.qZA()),2&o){const t=i.$implicit;e.xp6(2),e.Oqu(t.key),e.xp6(1),e.Q6J("ngForOf",t.value)}}const Bn=function(o){return{"date-selected":o}};let Jn=(()=>{class o{constructor(t,n,a,_){this.getTicketHistory=t,this.activatedRoute=n,this.ticketService=a,this.sanitizer=_,this.events=[],this.filteringParams={condition:{date:{from:null,to:null},ticket_id:""},common:""}
1,this.filterParamsSubject=new ce.X(this.filteringParams.common)}ngOnInit(){this.filterParamsSubject.pipe((0,Te.b)(800),(0,pe.x)()).subscribe(t=>{this.filteringParams.common=t,this.refreshComments()}),this.ticketService.refreshPage.subscribe(t=>{this.refreshComments()})}sortNull(t,n){return new Date(n.key.replace(/\//g,"-").split("-").reverse().join("-")).getTime()-new Date(t.key.replace(/\//g,"-").split("-").reverse().join("-")).getTime()}get sortedEvents(){const t={};for(const n of this.events){const a=n.date.split(" ")[0];t[a]||(t[a]=[]),t[a].push(n)}for(let n in t)t[n].sort((a,_)=>new Date(_.date).getTime()-new Date(a.date).getTime()).reverse();return t}setDate(t){this.filteringParams.condition.date=t,this.refreshComments(),this.trigger.closeMenu()}refreshComments(){this.filteringParams.condition.date=k.g.removeEmptyProperties(this.filteringParams.condition.date);const t=k.g.removeEmptyProperties(this.filteringParams);t.condition.ticket_id=this.activatedRoute.snapshot.params.id,this.getTicketHistory.execute(JSON.parse(JSON.stringify(t))).pipe((0,H.U)(n=>n.rows.map(a=>({...a,message:a.message?this.sanitizer.bypassSecurityTrustHtml(a.message):null})))).subscribe(n=>{this.events=n})}get dateRangeLabel(){return this.filteringParams.condition.date.from&&this.filteringParams.condition.date.to?this.filteringParams.condition.date.from.toLocaleDateString()+" - "+this.filteringParams.condition.date.to.toLocaleDateString():this.filteringParams.condition.date.from?this.filteringParams.condition.date.from.toLocaleDateString():"Select date"}get isDateSelected(){return!!this.filteringParams.condition.date.from}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(Dn.R),e.Y36(x.gz),e.Y36(ge),e.Y36($n.H7))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-ticket-history"]],viewQuery:function(t,n){if(1&t&&e.Gf(F.p6,5),2&t){let a;e.iGM(a=e.CRH())&&(n.trigger=a.first)}},decls:17,vars:9,consts:function(){let i,t;return i="History",t="Search",[[1,"section-title"],i,[1,"pink-divider"],[1,"filtering"],[1,"calendar"],[1,"capital-gothic",3,"ngClass"],[1,"img",3,"matMenuTriggerFor"],["xPosition","after","yPosition","above",1,"date-menu"],["dateMenu","matMenu"],[3,"dateRangeChanged","click"],["placeholder",t,1,"capital-gothic",3,"input"],["commonInput",""],[1,"search-img"],["class","comments",4,"ngFor","ngForOf"],[1,"comments"],[1,"comments__date"],[3,"event",4,"ngFor","ngForOf"],[3,"event"]]},template:function(t,n){if(1&t){const a=e.EpF();e.TgZ(0,"h3",0),e.SDv(1,1),e.qZA(),e._UZ(2,"mat-divider",2),e.TgZ(3,"div",3)(4,"div",4)(5,"p",5),e._uU(6),e.qZA(),e._UZ(7,"div",6),e.TgZ(8,"mat-menu",7,8)(10,"custom-date-range-picker",9),e.NdJ("dateRangeChanged",function(s){return n.setDate(s)})("click",function(s){return s.stopPropagation()}),e.qZA()()(),e.TgZ(11,"div")(12,"input",10,11),e.NdJ("input",function(){e.CHM(a);const s=e.MAs(13);return e.KtG(n.filterParamsSubject.next(s.value))}),e.qZA(),e._UZ(14,"div",12),e.qZA()(),e.YNc(15,Xn,4,2,"div",13),e.ALo(16,"keyvalue")}if(2&t){const a=e.MAs(9);e.xp6(5),e.Q6J("ngClass",e.VKq(7,Bn,n.isDateSelected)),e.xp6(1),e.Oqu(n.dateRangeLabel),e.xp6(1),e.Q6J("matMenuTriggerFor",a),e.xp6(8),e.Q6J("ngForOf",e.xi3(16,4,n.sortedEvents,n.sortNull))}},dependencies:[T.mk,T.sg,de.D,B.d,F.VK,F.p6,zn,T.Nd],styles:["mat-divider[_ngcontent-%COMP%]{border-top-color:#000}mat-divider.pink-divider[_ngcontent-%COMP%]{border-top-color:#d6117f;border-top-width:2px}comment-item[_ngcontent-%COMP%]:not(:last-child){display:block;margin-bottom:20px}.comments__date[_ngcontent-%COMP%]{display:inline-block;padding:8px 20px;background:#144A90;color:#fff;font-weight:700;margin:20px 0}h3[_ngcontent-%COMP%]{padding-left:20px}.filtering[_ngcontent-%COMP%]{display:flex;gap:46px;margin-bottom:34px;margin-top:54px}.filtering[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{position:relative}.filtering[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]   .search-img[_ngcontent-%COMP%]{mask:url(/assets/pic/icons/search-icon.svg) no-repeat center;-webkit-mask:url(/assets/pic/icons/search-icon.svg) no-repeat center;position:absolute;top:50%;transform:translateY(-50%);right:10px;width:25px;z-index:3;height:23px;background-color:#000}.filtering[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]   .img[_ngcontent-%COMP%]{mask:url(/assets/pic/icons/calendar.svg) no-repeat center;-webkit-mask:url(/assets/pic/icons/calendar.svg) no-repeat center;position:absolute;top:50%;transform:translateY(-50%);right:10px;width:25px;z-index:3;height:21px;background-color:#000;cursor:pointer}.filtering[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]   .img[_ngcontent-%COMP%]:hover{cursor:pointer;background-color:#d6117f}.filtering[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:453px;height:50px;background-color:#f3f3f3;display:flex;align-items:center;padding:0 14px 0 6px;border:none;color:#a6a6a6;font-size:20px;font-style:normal;font-weight:300;line-height:normal;letter-spacing:.2px}.filtering[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]::placeholder{color:#a6a6a6}.filtering[_ngcontent-%COMP%]   .calendar[_ngcontent-%COMP%]{width:453px;height:50px;background-color:#f3f3f3;display:flex;align-items:center;padding:0 14px 0 6px}.filtering[_ngcontent-%COMP%]   .calendar[_ngcontent-%COMP%]   .date-selected[_ngcontent-%COMP%]{color:#d6117f;font-size:20px;font-style:normal;font-weight:300;line-height:normal;letter-spacing:.2px}.filtering[_ngcontent-%COMP%]   .calendar[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:#a6a6a6;font-size:20px;font-style:normal;font-weight:300;line-height:normal;letter-spacing:.2px}  .date-menu{width:100%;max-width:100%;padding:10px 20px}"]}),o})();var J=l(44539),r=l(24006);class xe extends J.I{constructor(){super({}),this.addControl("message",new r.NI("")),this.addControl("files",new r.NI([])),this.addControl("communication",new r.NI("")),this.addControl("communication_type",new r.NI(""))}get message(){return this.controls.message}get files(){return this.controls.files}get communication(){return this.controls.communication}get communication_type(){return this.controls.communication_type}}var w=l(80529),ee=l(70262),j=l(62843),L=l(63262),Vn=l(16347),te=l(90008),W=l(73162);function Hn(o,i){1&o&&(e.TgZ(0,"p",15),e.SDv(1,16),e.qZA())}function jn(o,i){if(1&o&&(e.TgZ(0,"p",15),e._uU(1),e.qZA()),2&o){const t=e.oxw();e.xp6(1),e.Oqu(t.errorMessage)}}function Wn(o,i){if(1&o&&(e.TgZ(0,"div",23),e._UZ(1,"mat-progress-bar",24),e.TgZ(2,"p",25),e._uU(3),e.qZA()()),2&o){const t=e.oxw().index,n=e.oxw();e.xp6(1),e.Q6J("value",n.showedFiles[t].percentage),e.xp6(2),e.hij("",n.showedFiles[t].percentage,"%")}}function eo(o,i){if(1&o){const t=e.EpF();e.TgZ(0,"div",17)(1,"div",18)(2,"p",19),e._uU(3),e.qZA(),e.TgZ(4,"mat-icon",20),e.NdJ("click",function(){const _=e.CHM(t).index,s=e.oxw();return e.KtG(s.deleteFile(_))}),e._uU(5,"close"),e.qZA()(),e.YNc(6,Wn,4,2,"div",21),e.TgZ(7,"p",22),e._uU(8),e.qZA()()}if(2&o){const t=i.index,n=e.oxw();e.xp6(3),e.Oqu(n.getFileNameFromForm(t)),e.xp6(3),e.Q6J("ngIf",n.showedFiles[t].isUploading),e.xp6(2),e.hij("",n.getFileSizeFromForm(t)," MB")}
1}let to=(()=>{class o{constructor(t,n,a,_){this.commentTicketUsecase=t,this.sendFileUsecase=n,this.activatedRoute=a,this.ticketService=_,this.commentTicketForm=new xe,this.showedFiles=[],this.editor=new L.ML,this.errorMessage="",this.tooltipText="You can attach max 5 files each below 25Mb. ( .doc, .docx, .txt, .rtf, .xls, .xlsx, .pdf, .csv, .png, .jpg, .jpeg, .tiff, .gif, .zip, .rar, .tar, .gz, .pcap, .cap )"}doFileInput(t){const n=t.target.files;if(n&&!(n.length<1)){this.errorMessage="";for(let a=0;a<n.length;a++){const _=n[a];if(!this.isFilesValid)break;if(_.size>26214400)return void(this.errorMessage="File size should be less than 25MB");if(!_.type)return void(this.errorMessage="File type is not allowed");{const s=_.type.split("/")[1];if(!["doc","docx","txt","rtf","xls","xlsx","pdf","csv","png","jpg","jpeg","tiff","gif","zip","rar","tar","gz","pcap","cap","vnd.openxmlformats-officedocument.spreadsheetml.sheet","vnd.openxmlformats-officedocument.wordprocessingml.document"].includes(s))return void(this.errorMessage="File type " + s + " is not allowed")}this.showedFiles.push({name:_.name,size:_.size,percentage:0,isUploading:!1}),console.log(this.showedFiles),this.sendFile(_,this.showedFiles.length-1)}t.target.value=null}}get isFilesValid(){return this.showedFiles.length<5}getFileNameFromForm(t){return this.showedFiles[t]?.name||""}getFileSizeFromForm(t){return Math.ceil((this.showedFiles[t]?.size||0)/1048576)||0}deleteFile(t){this.commentTicketForm.files.value.splice(t,1),this.showedFiles.splice(t,1)}sendFile(t,n){const a=new FormData;a.append("file",t,t.name),this.showedFiles[n].percentage=0,this.showedFiles[n].isUploading=!0,this.sendFileUsecase.execute(a,"TICKET").pipe((0,H.U)(_=>{_.type===w.dt.UploadProgress?this.showedFiles[n].percentage=Math.round(100/_.total*_.loaded):_.type===w.dt.Response&&(this.showedFiles[n].isUploading=!1,this.commentTicketForm.files.value[n]=_.body)}),(0,ee.K)(_=>(this.showedFiles[n]&&(this.showedFiles[n].percentage=0,this.showedFiles[n].isUploading=!1),(0,j._)(_.message)))).subscribe()}ngOnInit(){}commentTicket(){this.commentTicketForm.markAllAsTouched(),this.commentTicketForm.valid&&this.commentTicketUsecase.execute(this.activatedRoute.snapshot.params.id,this.ticketType,k.g.removeEmptyProperties(this.commentTicketForm.value)).subscribe(()=>{this.commentTicketForm.reset(),this.commentTicketForm.files.setValue([]),this.showedFiles=[],this.errorMessage="",this.ticketService.refreshPage.next(!0)})}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(Vn.Z),e.Y36(te.b),e.Y36(x.gz),e.Y36(ge))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-comment-ticket"]],inputs:{ticketType:"ticketType"},decls:16,vars:11,consts:function(){let i,t,n;return i=" Attach Files " + "\ufffd#8\ufffd\ufffd/#8\ufffd" + "",t="Comment",n="You can attach max 5 files",[[3,"formGroup"],[1,"relative-container"],[1,"editor",2,"width","100%"],[3,"editor"],[3,"editor","placeholder","formControl"],[1,"flex","files-wrapper"],["matTooltipPosition","above","matTooltipClass","attach-files-tooltip",1,"capital-gothic","margin-right","attach-files-text","pointer",3,"matTooltip","matTooltipDisabled","ngClass","click"],i,["multiple","","type","file","hidden","",3,"input"],["fileInput",""],["class","warning",4,"ngIf"],[1,"items-wrapper"],["class","file-data",4,"ngFor","ngForOf"],["mat-raised-button","",1,"btn","btn_dark",3,"click"],t,[1,"warning"],n,[1,"file-data"],[1,"flex"],[1,"file-name","capital-gothic"],[1,"pointer",3,"click"],["class","flex progress-bar align-center",4,"ngIf"],[1,"size","capital-gothic"],[1,"flex","progress-bar","align-center"],["mode","determinate",3,"value"],[1,"capital-gothic"]]},template:function(t,n){if(1&t){const a=e.EpF();e.ynx(0,0),e.TgZ(1,"div",1)(2,"div",2),e._UZ(3,"ngx-editor-menu",3)(4,"ngx-editor",4),e.qZA()(),e.TgZ(5,"div",5)(6,"p",6),e.NdJ("click",function(){e.CHM(a);const s=e.MAs(9);return e.KtG(n.isFilesValid&&s.click())}),e.tHW(7,7),e.TgZ(8,"input",8,9),e.NdJ("input",function(s){return n.doFileInput(s)}),e.qZA(),e.N_p(),e.qZA(),e.YNc(10,Hn,2,0,"p",10),e.YNc(11,jn,2,1,"p",10),e.qZA(),e.TgZ(12,"div",11),e.YNc(13,eo,9,3,"div",12),e.qZA(),e.TgZ(14,"button",13),e.NdJ("click",function(){return n.commentTicket()}),e.SDv(15,14),e.qZA(),e.BQk()}2&t&&(e.Q6J("formGroup",n.commentTicketForm),e.xp6(3),e.Q6J("editor",n.editor),e.xp6(1),e.Q6J("editor",n.editor)("placeholder","Type your comment here")("formControl",n.commentTicketForm.message),e.xp6(2),e.Q6J("matTooltip",n.tooltipText)("matTooltipDisabled",!n.isFilesValid)("ngClass",n.isFilesValid?"":"attach-disabled"),e.xp6(4),e.Q6J("ngIf",!n.isFilesValid),e.xp6(1),e.Q6J("ngIf",n.errorMessage),e.xp6(2),e.Q6J("ngForOf",n.showedFiles))},dependencies:[T.mk,T.sg,T.O5,r.JJ,r.JL,r.oH,r.sg,y.lW,G.Hw,X.gM,W.pW,L.tP,L.Mn],styles:[".attach-btn[_ngcontent-%COMP%]{border:0;background:none;text-transform:uppercase;color:#144a90;font:400 14px Capital Gothic,Arial,sans-serif;cursor:pointer;padding:0}textarea[_ngcontent-%COMP%]{background:#F3F3F3;border:0;max-width:80%;width:100%;padding:15px 10px;margin-bottom:34px}textarea[_ngcontent-%COMP%]::placeholder{color:#a6a6a6;font:300 20px Capital Gothic,Arial,sans-serif;line-height:1}.communication[_ngcontent-%COMP%]{font-family:Arial,sans-serif;margin-top:34px}.communication[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin-bottom:6px!important}.communication__list[_ngcontent-%COMP%]{list-style:none;margin:0;padding:10px 0}.communication__list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{display:inline-block;color:#144a90;text-transform:uppercase;font:400 14px Capital Gothic,Arial,sans-serif;margin-right:27px}.communication__list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{cursor:pointer}.communication__list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{height:0;width:0}.communication__list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:has(input:checked){color:#d6117f}.communication__list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:hover{color:#d6117f}.communication__label[_ngcontent-%COMP%]{position:absolute;
1left:10px;top:13px;color:#a6a6a6;font:400 16px Capital Gothic,Arial,sans-serif;z-index:0}.warning[_ngcontent-%COMP%]{color:#d6117f;font-size:12px}.form-field[_ngcontent-%COMP%]{position:relative;display:inline-block;background:#F3F3F3;margin:10px 0;max-width:580px;width:100%}.form-field[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{position:relative;z-index:1;background:transparent;border:0;padding:15px 10px 25px;width:100%}.form-field[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:focus ~ .communication__label[_ngcontent-%COMP%], .form-field[_ngcontent-%COMP%]   input.filled[_ngcontent-%COMP%] ~ .communication__label[_ngcontent-%COMP%]{display:none}.files-wrapper[_ngcontent-%COMP%]{align-items:flex-end;gap:20px}.attach-disabled[_ngcontent-%COMP%]{color:#d9d9d9!important;cursor:auto}.attach-files-text[_ngcontent-%COMP%]{color:#144a90;text-transform:uppercase;font-size:14px;margin-top:18px!important;width:-moz-fit-content;width:fit-content}.file-data[_ngcontent-%COMP%]{display:flex;align-items:center;gap:14px}.file-data[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin-left:14px;color:#e0e0e0;font-size:19px;width:-moz-fit-content;width:fit-content;height:-moz-fit-content;height:fit-content}.file-data[_ngcontent-%COMP%]   .size[_ngcontent-%COMP%]{font-size:12px;color:#000;text-align:right}.file-data[_ngcontent-%COMP%]   .file-name[_ngcontent-%COMP%]{color:#144a90;width:270px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}  .attach-files-tooltip{padding:19px!important;width:125px;border-radius:0!important;background-color:#fff;border-top:2px solid #D6117F;color:#000!important;font-size:12px!important;font-style:normal;font-weight:400}.error[_ngcontent-%COMP%]{color:#d6117f!important;font-size:12px!important;top:calc(100% - 1.6666666667em);position:absolute;box-sizing:border-box;width:100%;overflow:hidden;opacity:1;transform:translateY(0);z-index:0;transition:.2s all}[_nghost-%COMP%]     .editor .NgxEditor__MenuBar, [_nghost-%COMP%]     .editor .NgxEditor{z-index:1}[_nghost-%COMP%]     .editor .NgxEditor{min-height:100px}[_nghost-%COMP%]     .error-border .NgxEditor{border:1px solid #D6117F!important}.error-show[_ngcontent-%COMP%]{transform:translateY(20px)}"]}),o})();var no=l(38307);function oo(o,i){1&o&&(e.TgZ(0,"p",17),e.SDv(1,18),e.qZA())}function io(o,i){if(1&o&&(e.TgZ(0,"p",17),e._uU(1),e.qZA()),2&o){const t=e.oxw();e.xp6(1),e.Oqu(t.errorMessage)}}function _o(o,i){if(1&o&&(e.TgZ(0,"div",25),e._UZ(1,"mat-progress-bar",26),e.TgZ(2,"p",27),e._uU(3),e.qZA()()),2&o){const t=e.oxw().index,n=e.oxw();e.xp6(1),e.Q6J("value",n.showedFiles[t].percentage),e.xp6(2),e.hij("",n.showedFiles[t].percentage,"%")}}function ao(o,i){if(1&o){const t=e.EpF();e.TgZ(0,"div",19)(1,"div",20)(2,"p",21),e._uU(3),e.qZA(),e.TgZ(4,"mat-icon",22),e.NdJ("click",function(){const _=e.CHM(t).index,s=e.oxw();return e.KtG(s.deleteFile(_))}),e._uU(5,"close"),e.qZA()(),e.YNc(6,_o,4,2,"div",23),e.TgZ(7,"p",24),e._uU(8),e.qZA()()}if(2&o){const t=i.index,n=e.oxw();e.xp6(3),e.Oqu(n.getFileNameFromForm(t)),e.xp6(3),e.Q6J("ngIf",n.showedFiles[t].isUploading),e.xp6(2),e.hij("",n.getFileSizeFromForm(t)," MB")}}const so=function(o){return{"error-border":o}},ro=function(o){return{"error-show":o}};let lo=(()=>{class o{constructor(t,n,a,_){this.closeTicketUsecase=t,this.sendFileUsecase=n,this.ticketService=a,this.activatedRoute=_,this.requiredMessage=!1,this.closeTicketForm=new xe,this.showedFiles=[],this.editor=new L.ML,this.errorMessage="",this.tooltipText="You can attach max 5 files each below 25Mb. ( .doc, .docx, .txt, .rtf, .xls, .xlsx, .pdf, .csv, .png, .jpg, .jpeg, .tiff, .gif, .zip, .rar, .tar, .gz, .pcap, .cap )"}doFileInput(t){const n=t.target.files;if(n&&!(n.length<1)){this.errorMessage="";for(let a=0;a<n.length;a++){const _=n[a];if(!this.isFilesValid)break;if(_.size>26214400)return void(this.errorMessage="File size should be less than 25MB");if(!_.type)return void(this.errorMessage="File type is not allowed");{const s=_.type.split("/")[1];if(!["doc","docx","txt","rtf","xls","xlsx","pdf","csv","png","jpg","jpeg","tiff","gif","zip","rar","tar","gz","pcap","cap","vnd.openxmlformats-officedocument.spreadsheetml.sheet","vnd.openxmlformats-officedocument.wordprocessingml.document"].includes(s))return void(this.errorMessage="File type " + s + " is not allowed")}
1this.showedFiles.push({name:_.name,size:_.size,percentage:0,isUploading:!1}),this.sendFile(_,this.showedFiles.length-1)}t.target.value=null}}get isFilesValid(){return this.showedFiles.length<5}getFileNameFromForm(t){return this.showedFiles[t]?.name||""}getFileSizeFromForm(t){return Math.ceil((this.showedFiles[t]?.size||0)/1048576)||0}deleteFile(t){this.closeTicketForm.files.value.splice(t,1),this.showedFiles.splice(t,1)}sendFile(t,n){const a=new FormData;a.append("file",t,t.name),this.showedFiles[n].percentage=0,this.showedFiles[n].isUploading=!0,this.sendFileUsecase.execute(a,"TICKET").pipe((0,H.U)(_=>{_.type===w.dt.UploadProgress?this.showedFiles[n].percentage=Math.round(100/_.total*_.loaded):_.type===w.dt.Response&&(this.showedFiles[n].isUploading=!1,this.closeTicketForm.files.value[n]=_.body)}),(0,ee.K)(_=>(this.showedFiles[n].percentage=0,this.showedFiles[n].isUploading=!1,(0,j._)(_.message)))).subscribe()}ngOnInit(){}closeTicket(){if(!this.closeTicketForm.message.value)return this.requiredMessage=!0,void(this.closeTicketSubscription=this.closeTicketForm.message.valueChanges.subscribe(()=>{this.requiredMessage=!1,this.closeTicketSubscription.unsubscribe()}));this.closeTicketForm.markAllAsTouched(),this.closeTicketForm.valid&&this.closeTicketUsecase.execute(this.activatedRoute.snapshot.params.id,this.ticketType,k.g.removeEmptyProperties(this.closeTicketForm.value)).subscribe(()=>{this.ticketService.refreshPage.next(!0),this.closeTicketForm.reset(),this.closeTicketForm.files.setValue([]),this.errorMessage="",this.showedFiles=[]})}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(no.u),e.Y36(te.b),e.Y36(ge),e.Y36(x.gz))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-close-ticket"]],inputs:{ticketType:"ticketType"},decls:19,vars:17,consts:function(){let i,t,n,a;return i=" This field is required ",t=" Attach Files " + "\ufffd#11\ufffd\ufffd/#11\ufffd" + "",n="Close Ticket",a="You can attach max 5 files",[[3,"formGroup"],[1,"relative-container"],[1,"editor",2,"width","100%",3,"ngClass"],[3,"editor"],[3,"editor","placeholder","formControl"],[1,"error",3,"ngClass"],i,[1,"flex","files-wrapper"],["matTooltipPosition","above","matTooltipClass","attach-files-tooltip",1,"capital-gothic","margin-right","attach-files-text","pointer",3,"matTooltip","matTooltipDisabled","ngClass","click"],t,["multiple","","type","file","hidden","",3,"input"],["fileInput",""],["class","warning",4,"ngIf"],[1,"items-wrapper"],["class","file-data",4,"ngFor","ngForOf"],["mat-raised-button","",1,"btn","btn_dark",3,"click"],n,[1,"warning"],a,[1,"file-data"],[1,"flex"],[1,"file-name","capital-gothic"],[1,"pointer",3,"click"],["class","flex progress-bar align-center",4,"ngIf"],[1,"size","capital-gothic"],[1,"flex","progress-bar","align-center"],["mode","determinate",3,"value"],[1,"capital-gothic"]]},template:function(t,n){if(1&t){const a=e.EpF();e.ynx(0,0),e.TgZ(1,"div",1)(2,"div",1)(3,"div",2),e._UZ(4,"ngx-editor-menu",3)(5,"ngx-editor",4),e.TgZ(6,"div",5),e.SDv(7,6),e.qZA()()()(),e.TgZ(8,"div",7)(9,"p",8),e.NdJ("click",function(){e.CHM(a);const s=e.MAs(12);return e.KtG(n.isFilesValid&&s.click())}),e.tHW(10,9),e.TgZ(11,"input",10,11),e.NdJ("input",function(s){return n.doFileInput(s)}),e.qZA(),e.N_p(),e.qZA(),e.YNc(13,oo,2,0,"p",12),e.YNc(14,io,2,1,"p",12),e.qZA(),e.TgZ(15,"div",13),e.YNc(16,ao,9,3,"div",14),e.qZA(),e.TgZ(17,"button",15),e.NdJ("click",function(){return n.closeTicket()}),e.SDv(18,16),e.qZA(),e.BQk()}2&t&&(e.Q6J("formGroup",n.closeTicketForm),e.xp6(3),e.Q6J("ngClass",e.VKq(13,so,n.requiredMessage)),e.xp6(1),e.Q6J("editor",n.editor),e.xp6(1),e.Q6J("editor",n.editor)("placeholder","Type your comment here (required)")("formControl",n.closeTicketForm.message),e.xp6(1),e.Q6J("ngClass",e.VKq(15,ro,n.requiredMessage)),e.xp6(3),e.Q6J("matTooltip",n.tooltipText)("matTooltipDisabled",!n.isFilesValid)("ngClass",n.isFilesValid?"":"attach-disabled"),e.xp6(4),e.Q6J("ngIf",!n.isFilesValid),e.xp6(1),e.Q6J("ngIf",n.errorMessage),e.xp6(2),e.Q6J("ngForOf",n.showedFiles))},dependencies:[T.mk,T.sg,T.O5,r.JJ,r.JL,r.oH,r.sg,y.lW,G.Hw,X.gM,W.pW,L.tP,L.Mn],styles:[".attach-btn[_ngcontent-%COMP%]{border:0;background:none;text-transform:uppercase;color:#144a90;font:400 14px Capital Gothic,Arial,sans-serif;cursor:pointer;padding:0}textarea[_ngcontent-%COMP%]{background:#F3F3F3;border-radius:none;max-width:80%;width:100%;padding:15px 10px;margin-bottom:34px;border:1px solid transparent;transition:border .2s ease-in-out}textarea[_ngcontent-%COMP%]::placeholder{color:#a6a6a6;font:300 20px Capital Gothic,Arial,sans-serif;line-height:1}.communication[_ngcontent-%COMP%]{font-family:Arial,sans-serif;margin-top:34px}.communication[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin-bottom:6px!important}.communication__list[_ngcontent-%COMP%]{list-style:none;margin:0;padding:10px 0}.communication__list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{display:inline-block;color:#144a90;text-transform:uppercase;font:400 14px Capital Gothic,Arial,sans-serif;margin-right:27px}.communication__list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{cursor:pointer}.communication__list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{height:0;width:0}.communication__list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:has(input:checked){color:#d6117f}.communication__list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:hover{color:#d6117f}.communication__label[_ngcontent-%COMP%]{position:absolute;
1left:10px;top:13px;color:#a6a6a6;font:400 16px Capital Gothic,Arial,sans-serif;z-index:0}.form-field[_ngcontent-%COMP%]{position:relative;display:inline-block;background:#F3F3F3;margin:10px 0;max-width:580px;width:100%}.form-field[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{position:relative;z-index:1;background:transparent;border:0;padding:15px 10px 25px;width:100%}.form-field[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:focus ~ .communication__label[_ngcontent-%COMP%], .form-field[_ngcontent-%COMP%]   input.filled[_ngcontent-%COMP%] ~ .communication__label[_ngcontent-%COMP%]{display:none}.files-wrapper[_ngcontent-%COMP%]{align-items:flex-end;gap:20px}.attach-disabled[_ngcontent-%COMP%]{color:#d9d9d9!important;cursor:auto}.attach-files-text[_ngcontent-%COMP%]{color:#144a90;text-transform:uppercase;font-size:14px;margin-top:18px!important;width:-moz-fit-content;width:fit-content}.file-data[_ngcontent-%COMP%]{display:flex;align-items:center;gap:14px}.file-data[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin-left:14px;color:#e0e0e0;font-size:19px;width:-moz-fit-content;width:fit-content;height:-moz-fit-content;height:fit-content}.file-data[_ngcontent-%COMP%]   .size[_ngcontent-%COMP%]{font-size:12px;color:#000;text-align:right}.file-data[_ngcontent-%COMP%]   .file-name[_ngcontent-%COMP%]{color:#144a90;width:270px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}  .attach-files-tooltip{padding:19px!important;width:225px;border-radius:0!important;background-color:#fff;border-top:2px solid #D6117F;color:#000!important;font-size:12px!important;font-style:normal;font-weight:400}.attach-disabled[_ngcontent-%COMP%]{color:#d9d9d9}.warning[_ngcontent-%COMP%]{color:#d6117f;font-size:12px}.progress-bar[_ngcontent-%COMP%]{width:170px}.progress-bar[_ngcontent-%COMP%]   mat-progress-bar[_ngcontent-%COMP%]{background-color:#144a90;margin-right:10px}.progress-bar[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:#144a90}.relative-container[_ngcontent-%COMP%]{position:relative}.relative-container[_ngcontent-%COMP%]   .error-text[_ngcontent-%COMP%]{bottom:13px!important;visibility:visible!important}.relative-container[_ngcontent-%COMP%]   .error-arrow[_ngcontent-%COMP%]{background-color:#d6117f!important}.relative-container[_ngcontent-%COMP%]   .error-line[_ngcontent-%COMP%]{border:1px solid #D6117F!important}.relative-container[_ngcontent-%COMP%]   .error-color-text[_ngcontent-%COMP%]{color:#d6117f!important}.relative-container[_ngcontent-%COMP%]   .required-error[_ngcontent-%COMP%]{color:#d6117f;font-size:12px;position:absolute;bottom:18px;padding-left:0!important;z-index:1;visibility:hidden;transition:bottom .2s ease-in-out}.error[_ngcontent-%COMP%]{color:#d6117f!important;font-size:12px!important;top:calc(100% - 1.6666666667em);position:absolute;box-sizing:border-box;width:100%;overflow:hidden;opacity:1;transform:translateY(0);z-index:0;transition:.2s all}[_nghost-%COMP%]     .editor .NgxEditor__MenuBar, [_nghost-%COMP%]     .editor .NgxEditor{z-index:1}[_nghost-%COMP%]     .error-border .NgxEditor{border:1px solid #D6117F!important}.error-show[_ngcontent-%COMP%]{transform:translateY(20px)}[_nghost-%COMP%]     .editor .NgxEditor{min-height:100px}"]}),o})(),co=(()=>{class o{constructor(){this.subType="",this.ticket_type=""}}return o.\u0275fac=function(t){return new(t||o)}
1,o.\u0275cmp=e.Xpm({type:o,selectors:[["app-ticket-tab-group"]],inputs:{subType:"subType",ticket_type:"ticket_type"},features:[e._Bn([{provide:e.QbO,useValue:"NoopAnimations"}])],decls:5,vars:3,consts:function(){let i,t;return i="COMMENT",t="CLOSE TICKET",[[3,"animationDuration"],["label",i],[3,"ticketType"],["label",t]]},template:function(t,n){1&t&&(e.TgZ(0,"mat-tab-group",0)(1,"mat-tab",1),e._UZ(2,"app-comment-ticket",2),e.qZA(),e.TgZ(3,"mat-tab",3),e._UZ(4,"app-close-ticket",2),e.qZA()()),2&t&&(e.Q6J("animationDuration","0"),e.xp6(2),e.Q6J("ticketType",n.ticket_type),e.xp6(2),e.Q6J("ticketType",n.ticket_type))},dependencies:[_e.SP,_e.uX,to,lo],styles:["[_nghost-%COMP%]     .mat-tab-group{margin-bottom:50px}[_nghost-%COMP%]     .mat-tab-body-content{padding:50px 0 90px}[_nghost-%COMP%]     .mat-tab-body-content .btn{margin-top:70px}[_nghost-%COMP%]     .mat-tab-body.mat-tab-body-active{overflow-y:hidden!important}"]}),o})();var be=l(47013);function To(o,i){if(1&o&&(e.TgZ(0,"div",8),e._uU(1),e.ALo(2,"formatString"),e.qZA()),2&o){const t=i.$implicit;e.xp6(1),e.hij(" ",e.lcZ(2,1,t)," ")}}function po(o,i){if(1&o){const t=e.EpF();e.TgZ(0,"p",15),e.NdJ("click",function(){const _=e.CHM(t).$implicit,s=e.oxw(4);return e.KtG(s.toServiceDetails(_))}),e._uU(1),e.qZA()}if(2&o){const t=i.$implicit;e.xp6(1),e.Oqu(t)}}function go(o,i){if(1&o&&(e.ynx(0),e.YNc(1,po,2,1,"p",14),e.BQk()),2&o){const t=e.oxw().$implicit,n=e.oxw().$implicit;e.xp6(1),e.Q6J("ngForOf",n[t])}}function Co(o,i){if(1&o){const t=e.EpF();e.TgZ(0,"span",15),e.NdJ("click",function(){e.CHM(t);const a=e.oxw().$implicit,_=e.oxw().$implicit,s=e.oxw();return e.KtG(s.toInvoiceDetails(_[a],a))}),e._uU(1),e.qZA()}if(2&o){const t=e.oxw().$implicit,n=e.oxw().$implicit;e.xp6(1),e.Oqu(n[t])}}const uo=function(o){return{"blue-text":o}};function Eo(o,i){if(1&o&&(e.TgZ(0,"div",10)(1,"div",11),e.YNc(2,go,2,1,"ng-container",12),e.YNc(3,Co,2,1,"ng-template",null,13,e.W1O),e.qZA()()),2&o){const t=i.$implicit,n=e.MAs(4);e.xp6(1),e.Q6J("ngClass",e.VKq(3,uo,"services"===t||"invoice_id"===t)),e.xp6(1),e.Q6J("ngIf","services"==t)("ngIfElse",n)}}function Oo(o,i){if(1&o&&(e.TgZ(0,"div",5),e.YNc(1,Eo,5,5,"div",9),e.qZA()),2&o){const t=e.oxw();e.xp6(1),e.Q6J("ngForOf",t.keys)}}let Po=(()=>{class o{constructor(t){this.router=t,this.keys=[],this.data=[]}ngOnInit(){this.keys=["invoice_id","period","services"]}toInvoiceDetails(t,n){"invoice_id"===n&&this.router.navigateByUrl(`/main/invoices/${t}`)}toServiceDetails(t){this.router.navigateByUrl(`/main/services/${t}`)}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(x.F0))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-ticket-invoices-table"]],inputs:{data:"data"},decls:8,vars:2,consts:function(){let i;return i="Invoices",[[1,"section-title"],i,[1,"pink-divider"],[1,"table-wrapper"],[1,"table-container"],[1,"table-row"],["class","table-header-cell",4,"ngFor","ngForOf"],["class","table-row",4,"ngFor","ngForOf"],[1,"table-header-cell"],["class","table-cell",4,"ngFor","ngForOf"],[1,"table-cell"],[3,"ngClass"],[4,"ngIf","ngIfElse"],["normalCell",""],[3,"click",4,"ngFor","ngForOf"],[3,"click"]]},template:function(t,n){1&t&&(e.TgZ(0,"h3",0),e.SDv(1,1),e.qZA(),e._UZ(2,"mat-divider",2),e.TgZ(3,"div",3)(4,"div",4)(5,"div",5),e.YNc(6,To,3,3,"div",6),e.qZA(),e.YNc(7,Oo,2,1,"div",7),e.qZA()()),2&t&&(e.xp6(6),e.Q6J("ngForOf",n.keys),e.xp6(1),e.Q6J("ngForOf",n.data))},dependencies:[T.mk,T.sg,T.O5,B.d,be.$],styles:["h3[_ngcontent-%COMP%]{margin-top:68px;padding-left:20px}mat-divider[_ngcontent-%COMP%]{border-top-color:#000}mat-divider.pink-divider[_ngcontent-%COMP%]{border-top-color:#d6117f;border-top-width:2px}.table-container[_ngcontent-%COMP%]{display:table;overflow-x:auto;padding:0 17px 17px;background-color:#eaf2fc;box-sizing:border-box}.table-row[_ngcontent-%COMP%]{display:table-row;width:100%;background-color:#eaf2fc}.table-header-cell[_ngcontent-%COMP%]{padding-top:17px!important;font-size:16px;font-style:normal;font-weight:700;line-height:normal;border-bottom:1px solid black;position:sticky;top:0;background-color:#eaf2fc}.table-header-cell[_ngcontent-%COMP%], .table-cell[_ngcontent-%COMP%]{display:table-cell;padding:7px 40px 7px 10px;text-align:left;flex:1;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.table-header-cell[_ngcontent-%COMP%]:last-child, .table-cell[_ngcontent-%COMP%]:last-child{padding-right:10px}.blue-text[_ngcontent-%COMP%]{line-height:25px;font-size:14px;font-style:normal;font-weight:400;font-family:Capital Gothic,sans-serif;color:#144a90;cursor:pointer}.table-wrapper[_ngcontent-%COMP%]{margin-top:20px;overflow-y:auto;max-height:400px;width:-moz-fit-content;width:fit-content;margin-bottom:20px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:2px;height:2px;background-color:#fff;padding:0 4px}[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:rgb(230,230,230)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#BBBBBB;border-radius:0}"]}),o})();function So(o,i){if(1&o&&(e.TgZ(0,"div",7),e._uU(1),e.ALo(2,"formatString"),e.qZA()),2&o){const t=i.$implicit;e.xp6(1),e.hij(" ",e.lcZ(2,1,t)," ")}}function mo(o,i){if(1&o){const t=e.EpF();e.TgZ(0,"p",14),e.NdJ("click",function(){const _=e.CHM(t).$implicit,s=e.oxw(4);return e.KtG(s.toServiceDetails(_))}),e._uU(1),e.qZA()}if(2&o){const t=i.$implicit;e.xp6(1),e.Oqu(t)}}function Mo(o,i){if(1&o&&(e.ynx(0),e.YNc(1,mo,2,1,"p",13),e.BQk()),2&o){const t=e.oxw().$implicit,n=e.oxw().$implicit;e.xp6(1),e.Q6J("ngForOf",n[t])}}function fo(o,i){if(1&o&&(e.TgZ(0,"div",15),e._uU(1),e.qZA()),2&o){const t=e.oxw().$implicit,n=e.oxw().$implicit;e.xp6(1),e.hij(" ",n[t]," ")}}const No=function(o){return{"blue-text":o}};function Io(o,i){if(1&o&&(e.TgZ(0,"div",9)(1,"div",10),e.YNc(2,Mo,2,1,"ng-container",11),e.YNc(3,fo,2,1,"ng-template",null,12,e.W1O),e.qZA()()),2&o){const t=i.$implicit,n=e.MAs(4);e.xp6(1),e.Q6J("ngClass",e.VKq(3,No,"services"===t)),e.xp6(1),e.Q6J("ngIf","services"==t)("ngIfElse",n)}}function ho(o,i){if(1&o&&(e.TgZ(0,"div",4),e.YNc(1,Io,5,5,"div",8),e.qZA()),2&o){const t=e.oxw();e.xp6(1),e.Q6J("ngForOf",t.keys)}}let Ao=(()=>{class o{constructor(t){this.router=t}get keys(){return["services","period"]}toServiceDetails(t){this.router.navigateByUrl(`/main/services/${t}`)}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(x.F0))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-billing-tickets-services-and-periods-table"]],inputs:{data:"data"},decls:7,vars:2,consts:function(){let i;return i="Services",[[1,"section-title"],i,[1,"pink-divider"],[1,"table-container"],[1,"table-row"],["class","table-header-cell",4,"ngFor","ngForOf"],["class","table-row",4,"ngFor","ngForOf"],[1,"table-header-cell"],["class","table-cell",4,"ngFor","ngForOf"],[1,"table-cell"],[3,"ngClass"],[4,"ngIf","ngIfElse"],["normalCell",""],[3,"click",4,"ngFor","ngForOf"],[3,"click"],[1,"periods"]]},template:function(t,n){1&t&&(e.TgZ(0,"h3",0),e.SDv(1,1),e.qZA(),e._UZ(2,"mat-divider",2),e.TgZ(3,"div",3)(4,"div",4),e.YNc(5,So,3,3,"div",5),e.qZA(),e.YNc(6,ho,2,1,"div",6),e.qZA()),2&t&&(e.xp6(5),e.Q6J("ngForOf",n.keys),e.xp6(1),e.Q6J("ngForOf",n.data))},dependencies:[T.mk,T.sg,T.O5,B.d,be.$],styles:["h3[_ngcontent-%COMP%]{margin-top:68px;padding-left:20px}mat-divider[_ngcontent-%COMP%]{border-top-color:#000}mat-divider.pink-divider[_ngcontent-%COMP%]{border-top-color:#d6117f;border-top-width:2px}.table-container[_ngcontent-%COMP%]{margin-top:20px;margin-bottom:20px;
1display:table;overflow-x:auto;padding:17px;background-color:#eaf2fc;box-sizing:border-box}.table-row[_ngcontent-%COMP%]{display:table-row;width:100%;background-color:#eaf2fc}.table-header-cell[_ngcontent-%COMP%]{font-size:16px;font-style:normal;font-weight:700;line-height:normal;border-bottom:1px solid black}.table-header-cell[_ngcontent-%COMP%], .table-cell[_ngcontent-%COMP%]{display:table-cell;padding:7px 61px 7px 10px;text-align:left;flex:1;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;vertical-align:middle}.table-header-cell[_ngcontent-%COMP%]:last-child, .table-cell[_ngcontent-%COMP%]:last-child{padding-right:10px}.blue-text[_ngcontent-%COMP%]{line-height:25px;font-size:14px;font-style:normal;font-weight:400;font-family:Capital Gothic,sans-serif;color:#144a90;cursor:pointer}.periods[_ngcontent-%COMP%]{max-width:600px;white-space:normal;word-wrap:break-word}"]}),o})();function Fo(o,i){if(1&o&&(e.TgZ(0,"div",7),e._uU(1),e.qZA()),2&o){const t=i.$implicit;e.xp6(1),e.hij(" ",t," ")}}function Ro(o,i){if(1&o&&(e.TgZ(0,"div",10)(1,"div"),e.ynx(2),e._uU(3),e.BQk(),e.qZA()()),2&o){const t=i.$implicit,n=e.oxw(2).$implicit;e.xp6(3),e.hij(" ",n[t]," ")}}function xo(o,i){if(1&o&&(e.ynx(0),e.YNc(1,Ro,4,1,"div",9),e.BQk()),2&o){const t=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",t.columns)}}function bo(o,i){if(1&o&&(e.TgZ(0,"div",4),e.YNc(1,xo,2,1,"ng-container",8),e.qZA()),2&o){const t=i.$implicit;e.xp6(1),e.Q6J("ngIf",t.requested_value)}}let vo=(()=>{class o{constructor(){this.columns=["information_type","current_value","requested_value"],this.rows=[],this.titles=["Information Type","Current Value","Requested Value"]}ngOnChanges(){!this.informationForChange||(this.rows=Object.values(this.informationForChange))}}return o.\u0275fac=function(t){return new(t||o)}
1,o.\u0275cmp=e.Xpm({type:o,selectors:[["app-information-for-change"]],inputs:{informationForChange:"informationForChange"},features:[e.TTD],decls:7,vars:2,consts:function(){let i;return i="Information For Change",[[1,"section-title"],i,[1,"pink-divider"],[1,"table-container"],[1,"table-row"],["class","table-header-cell",4,"ngFor","ngForOf"],["class","table-row",4,"ngFor","ngForOf"],[1,"table-header-cell"],[4,"ngIf"],["class","table-cell",4,"ngFor","ngForOf"],[1,"table-cell"]]},template:function(t,n){1&t&&(e.TgZ(0,"h3",0),e.SDv(1,1),e.qZA(),e._UZ(2,"mat-divider",2),e.TgZ(3,"div",3)(4,"div",4),e.YNc(5,Fo,2,1,"div",5),e.qZA(),e.YNc(6,bo,2,1,"div",6),e.qZA()),2&t&&(e.xp6(5),e.Q6J("ngForOf",n.titles),e.xp6(1),e.Q6J("ngForOf",n.rows))},dependencies:[T.sg,T.O5,B.d],styles:["h3[_ngcontent-%COMP%]{margin-top:68px;padding-left:20px}mat-divider[_ngcontent-%COMP%]{border-top-color:#000}mat-divider.pink-divider[_ngcontent-%COMP%]{border-top-color:#d6117f;border-top-width:2px}.table-container[_ngcontent-%COMP%]{margin-top:20px;display:table;overflow-x:auto;padding:17px;background-color:#eaf2fc;box-sizing:border-box;margin-bottom:54px}.table-row[_ngcontent-%COMP%]{display:table-row;width:100%;background-color:#eaf2fc}.table-header-cell[_ngcontent-%COMP%]{font-size:16px;font-style:normal;font-weight:700;line-height:normal;border-bottom:1px solid black}.table-header-cell[_ngcontent-%COMP%], .table-cell[_ngcontent-%COMP%]{display:table-cell;padding:10px 120px 10px 10px;text-align:left;flex:1;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;vertical-align:middle}.table-header-cell[_ngcontent-%COMP%]:last-child, .table-cell[_ngcontent-%COMP%]:last-child{padding-right:10px}"]}),o})();function Uo(o,i){if(1&o&&e._UZ(0,"ticket-description",12),2&o){const t=e.oxw(2);e.Q6J("description",t.ticket.description)}}function Do(o,i){if(1&o&&e._UZ(0,"app-information-for-change",13),2&o){const t=e.oxw(2);e.Q6J("informationForChange",t.ticket.data.information_for_change)}}function $o(o,i){if(1&o&&e._UZ(0,"app-billing-tickets-services-and-periods-table",14),2&o){const t=e.oxw(2);e.Q6J("data",t.compensationServices)}}function yo(o,i){if(1&o&&e._UZ(0,"app-ticket-invoices-table",14),2&o){const t=e.oxw(2);e.Q6J("data",t.invoicesTableData)}}function wo(o,i){if(1&o&&e._UZ(0,"app-ticket-files",15),2&o){const t=e.oxw(2);e.Q6J("files",t.ticket.attachments)}}function ko(o,i){if(1&o&&e._UZ(0,"app-ticket-tab-group",16),2&o){const t=e.oxw(2);e.Q6J("ticket_type",t.ticket.type)("subType",t.ticket.category)}}function Lo(o,i){if(1&o&&(e.TgZ(0,"div",1),e._UZ(1,"app-ticket-title",2),e.TgZ(2,"div",3),e._UZ(3,"app-ticket-status",4)(4,"ticket-details",5),e.qZA(),e.YNc(5,Uo,1,1,"ticket-description",6),e.YNc(6,Do,1,1,"app-information-for-change",7),e.YNc(7,$o,1,1,"app-billing-tickets-services-and-periods-table",8),e.YNc(8,yo,1,1,"app-ticket-invoices-table",8),e.YNc(9,wo,1,1,"app-ticket-files",9),e.YNc(10,ko,1,2,"app-ticket-tab-group",10),e._UZ(11,"app-ticket-history",11),e.qZA()),2&o){const t=e.oxw();e.xp6(1),e.Q6J("category",t.ticket.category)("ticketId",t.ticket.id),e.xp6(2),e.Q6J("banner",t.ticket.banner_info)("last_updated",t.ticket.last_updated_at)("ticketStatus",t.ticket.status),e.xp6(1),e.Q6J("ticketDetails",t.ticket.details),e.xp6(1),e.Q6J("ngIf",t.ticket.description),e.xp6(1),e.Q6J("ngIf","change_info"==t.ticket.category&&("CI"==t.ticket.type||"BCI"==t.ticket.type)),e.xp6(1),e.Q6J("ngIf","request_compensation"==t.ticket.category&&("CI"==t.ticket.type||"BCI"==t.ticket.type)),e.xp6(1),e.Q6J("ngIf","dispute_invoice"==t.ticket.category&&("CI"==t.ticket.type||"BCI"==t.ticket.type)),e.xp6(1),e.Q6J("ngIf",t.ticket.attachments.length),e.xp6(1),e.Q6J("ngIf","CI"==t.ticket.type&&t.canAction("edit","trouble_tickets")||"BCI"==t.ticket.type&&t.canAction("edit","billing_tickets"))}}let Go=(()=>{class o{constructor(t,n,a,_,s){this.breadcrumbs=t,this.activeRoute=n,this.getTicketsDetailsUsecase=a,this.rolesService=_,this.ticketService=s,this.ticket=null}ngOnInit(){this.activeRoute.params.subscribe(t=>{this.loadData(t.id)}),this.ticketService.refreshPage.subscribe(()=>{this.loadData(this.activeRoute.snapshot.params.id)})}canAction(t,n){return this.rolesService.canAction(t,n)}loadData(t){const n="ru"===location.pathname.split("/")[1]?"ru":"en";this.getTicketsDetailsUsecase.execute(t,n).subscribe(a=>{this.ticket=a,this.setUpBreadcrumb(a.id,"BCI"===a.type?"Billing Tickets":"Trouble Tickets")})}scroll(t){t.scrollIntoView({behavior:"smooth"})}
1setUpBreadcrumb(t,n){this.breadcrumbs.setLinks([{route:"/",text:"Home"},{route:"/main/support",text:"Support"},{route:"/main/support/tickets",text:n},{text:"Ticket #" + t + ""}])}get compensationServices(){return Array.isArray(this.ticket.data)?this.ticket.data:[this.ticket.data]}get invoicesTableData(){return Array.isArray(this.ticket.data)?this.ticket.data:[this.ticket.data]}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(q.W),e.Y36(x.gz),e.Y36(on.N),e.Y36(fe.f),e.Y36(ge))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-ticket"]],decls:1,vars:1,consts:[["class","ticket",4,"ngIf"],[1,"ticket"],[3,"category","ticketId"],[1,"ticket__wrap"],[3,"banner","last_updated","ticketStatus"],[3,"ticketDetails"],[3,"description",4,"ngIf"],[3,"informationForChange",4,"ngIf"],[3,"data",4,"ngIf"],[3,"files",4,"ngIf"],[3,"ticket_type","subType",4,"ngIf"],["id","history"],[3,"description"],[3,"informationForChange"],[3,"data"],[3,"files"],[3,"ticket_type","subType"]],template:function(t,n){1&t&&e.YNc(0,Lo,12,12,"div",0),2&t&&e.Q6J("ngIf",n.ticket)},dependencies:[T.O5,Tn,dn,Nn,hn,Un,Jn,co,Po,Ao,vo],styles:[".ticket[_ngcontent-%COMP%]{padding:0 0 40px;width:90%}.ticket[_ngcontent-%COMP%]   .ticket__wrap[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin:40px 0 50px;gap:100px}.ticket[_ngcontent-%COMP%]   ticket-details[_ngcontent-%COMP%]{width:50%}"]}),o})();class Zo extends J.I{constructor(){super({}),this.addControl("name",new r.NI("",r.kI.required)),this.addControl("phone_number",new r.NI("",r.kI.required))}get name(){return this.controls.name}get phone_number(){return this.controls.phone_number}}var ne=l(77969),qo=l(23887),Ko=l(94799);function Yo(o,i){if(1&o&&(e.tHW(0,3,1),e.TgZ(1,"app-tooltip"),e._UZ(2,"p"),e.qZA(),e.N_p()),2&o){const t=e.oxw();e.xp6(2),e.pQV(t.tooltipsService.tooltips.noc),e.QtT(0)}}function zo(o,i){if(1&o&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&o){const t=e.oxw();e.xp6(1),e.Oqu(t.nocNumber)}}function Qo(o,i){if(1&o){const t=e.EpF();e.TgZ(0,"p",48),e.NdJ("click",function(){e.CHM(t);const a=e.oxw();return e.KtG(a.openNocPage())}),e._uU(1,"https://retn.net/support/noc"),e.qZA()}}function Xo(o,i){if(1&o){const t=e.EpF();e.TgZ(0,"p",48),e.NdJ("click",function(){e.CHM(t);const a=e.oxw();return e.KtG(a.openNocPage())}),e._uU(1,"https://retn.ru/support/noc"),e.qZA()}}function Bo(o,i){1&o&&(e.TgZ(0,"mat-error"),e.SDv(1,49),e.qZA())}function Jo(o,i){1&o&&(e.TgZ(0,"mat-error"),e.SDv(1,50),e.qZA())}const Vo=function(o){return{invisible:o}};let Ho=(()=>{class o{constructor(t,n,a,_,s,c,p){this.matDialog=t,this.router=n,this.breadcrumbs=a,this.sendCallMeBackRequest=_,this.getNocContactInfo=s,this.modal=c,this.tooltipsService=p,this.customerId="",this.contactForm=new Zo,this.nocNumber="",this.nocEmail="",this.loaded=!1,this.breadcrumbs.setLinks([{route:"/",text:"HOME"},{route:"/main/support",text:"SUPPORT"},{text:"NOC"}])}createTicket(){this.matDialog.open(le.c,{exitAnimationDuration:"0ms",data:{title:"You Request Refers To",items:[{id:0,value:"Billing Issue"},{id:1,value:"Services"}],btn:"Create Ticket"}}).afterClosed().subscribe(t=>{0===t&&this.openBillingIssue(),1===t&&this.openServices()})}openBillingIssue(){this.matDialog.open(le.c,{enterAnimationDuration:"0ms",data:{title:"You Request Refers To",items:[{id:0,value:"Change Company Information"},{id:1,value:"Request Outage Compensation"},{id:4,value:"Request Statement of Account"},{id:2,value:"Dispute Invoice"},{id:3,value:"Other Billing Related Issue"}],btn:"Create Ticket"}}).afterClosed().subscribe(t=>{"number"==typeof t&&this.router.navigateByUrl("main/support/"+{0:"change-company-information",1:"request-outage-compensation",2:"dispute-invoice",3:"other-billing-related-issue",4:"request-statement-of-account"}[t])})}openServices(){this.router.navigateByUrl("main/support/create-trouble-ticket")}redirectTo(t){switch(t){case 0:this.router.navigateByUrl("/main/support/faq");break;case 1:this.router.navigateByUrl("/main/support")}}callNoc(){window.open(`tel:${this.nocNumber}`,"_blank")}writeEmail(){window.open(`mailto:${this.nocEmail}`,"_blank")}openNocPage(){window.open(`https://retn.${this.isRuby?"ru":"net"}/support/noc`,"_blank")}ngOnInit(){this.getNocContactInfo.execute().subscribe(t=>{this.nocNumber=t.phone,this.nocEmail=t.mail,this.customerId=t.client_id,this.loaded=!0})}toTicketingSystem(){this.router.navigateByUrl("/main/support/tickets")}sendCallBackRequest(){this.contactForm.markAllAsTouched(),this.contactForm.valid&&this.sendCallMeBackRequest.execute(this.contactForm.value).subscribe(()=>{this.modal.open(ne.S,{panelClass:"general-information-popup",data:{text:"Thank y
1ou for your request.<br> We will <span class=\"dedicated-text\">call you back</span> soon.",actions:!1}}),this.contactForm.reset()})}get isRuby(){return"RUBY"===me.N.PORTAL_REGION}}return o.\u0275fac=function(t){return new(t||o)(e.Y36($.uw),e.Y36(x.F0),e.Y36(q.W),e.Y36(qo.K),e.Y36(Ko.G),e.Y36($.uw),e.Y36(Q.b))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-noc"]],decls:78,vars:11,consts:function(){let i,t,n,a,_,s,c,p,g,u,d,O,b,v,P,U,D,S,m,M,K;return i="Ticketing System",t="The most effective way to create and track your requests.",n=" Create Ticket",a="Not sure if you can solve the issue yourself? Check our FAQ.",_="For more information about our network and services check our useful links.",s="USEFUL LINKS",c="Please have your Customer ID when contacting NOC by phone or requesting a call.",p="Customer ID " + "\ufffd0\ufffd" + "",g="Contact noc",u="Write to the NOC by e-mail.",d="WRITE NOC",O="Call noc",b="NOC phone number in your region",v="CALL NOC",P="Request a call",U="Name",D="Phone number",S="CALL ME BACK",m="network operations center " + "\ufffd*4:1\ufffd\ufffd#1:1\ufffd" + "" + "\ufffd#2:1\ufffd" + "" + "\ufffd0:1\ufffd" + "" + "\ufffd/#2:1\ufffd" + "" + "\ufffd/#1:1\ufffd\ufffd/*4:1\ufffd" + "",M="This field is required",K="This field is required",[[1,"support"],[1,"flex"],[1,"text-title","margin-right","capital-gothic"],m,[4,"ngIf"],[1,"breadcrumbs"],[1,"links_ticketing-system"],[1,"ticketing-system"],[1,"ticketing-system_title","capital-gothic",3,"click"],i,[1,"ticketing-system_describe","capital-gothic"],t,["mat-button","","color","accent","mat-raised-button","",3,"click"],n,[1,"links"],[1,"link"],[1,"link-description"],a,[1,"arrow-container","mr",3,"click"],[1,"arrow"],_,[1,"arrow-container",3,"click"],s,c,[1,"customer-id"],p,[1,"contact-cards"],[1,"card","white"],[1,"contact-cards__title"],g,u,d,[1,"card"],O,b,["class","email_link",3,"click",4,"ngIf"],[1,"arrow-container",3,"ngClass","click"],v,[1,"card",3,"formGroup"],P,[1,"card__form"],[1,"flex","space-between","align-center"],U,[1,"card__form__field"],["matInput","","formControlName","name"],D,["matInput","","formControlName","phone_number"],S,[1,"email_link",3,"click"],M,K]},template:function(t,n){1&t&&(e.TgZ(0,"div",0)(1,"div",1)(2,"p",2),e.tHW(3,3),e.YNc(4,Yo,3,1,"app-tooltip",4),e.N_p(),e.qZA(),e.TgZ(5,"div",5),e._UZ(6,"wo-breadcrumbs"),e.qZA()(),e.TgZ(7,"div",6)(8,"div",7)(9,"p",8),e.NdJ("click",function(){return n.toTicketingSystem()}),e.SDv(10,9),e.qZA(),e.TgZ(11,"p",10),e.SDv(12,11),e.qZA(),e.TgZ(13,"button",12),e.NdJ("click",function(){return n.createTicket()}),e.SDv(14,13),e.qZA()(),e.TgZ(15,"div",14)(16,"div",15)(17,"p",16),e.SDv(18,17),e.qZA(),e.TgZ(19,"div",18),e.NdJ("click",function(){return n.redirectTo(0)}),e._UZ(20,"div",19),e.TgZ(21,"p"),e._uU(22,"FAQ"),e.qZA()()(),e.TgZ(23,"div",15)(24,"p",16),e.SDv(25,20),e.qZA(),e.TgZ(26,"div",21),e.NdJ("click",function(){return n.redirectTo(1)}),e._UZ(27,"div",19),e.TgZ(28,"p"),e.SDv(29,22),e.qZA()()(),e.TgZ(30,"div",15)(31,"p",16),e.SDv(32,23),e.qZA(),e.TgZ(33,"p",24),e.SDv(34,25),e.qZA()()()(),e.TgZ(35,"div",26)(36,"div",27)(37,"p",28),e.SDv(38,29),e.qZA(),e.TgZ(39,"p"),e.SDv(40,30),e.qZA(),e.TgZ(41,"div",21),e.NdJ("click",function(){return n.writeEmail()}),e._UZ(42,"div",19),e.TgZ(43,"p"),e.SDv(44,31),e.qZA()()(),e.TgZ(45,"div",32)(46,"p",28),e.SDv(47,33),e.qZA(),e.TgZ(48,"div")(49,"p"),e.SDv(50,34),e.qZA(),e.YNc(51,zo,2,1,"p",4),e.YNc(52,Qo,2,0,"p",35),e.YNc(53,Xo,2,0,"p",35),e.qZA(),e.TgZ(54,"div",36),e.NdJ("click",function(){return n.callNoc()}),e._UZ(55,"div",19),e.TgZ(56,"p"),e.SDv(57,37),e.qZA()()(),e.TgZ(58,"div",38)(59,"p",28),e.SDv(60,39),e.qZA(),e.TgZ(61,"div",40)(62,"div",41)(63,"p"),e.SDv(64,42),e.qZA(),e.TgZ(65,"mat-form-field",43),e._UZ(66,"input",44),e.YNc(67,Bo,2,0,"mat-error",4),e.qZA()(),e.TgZ(68,"div",41)(69,"p"),e.SDv(70,45),e.qZA(),e.TgZ(71,"mat-form-field",43),e._UZ(72,"input",46),e.YNc(73,Jo,2,0,"mat-error",4),e.qZA()()(),e.TgZ(74,"div",21),e.NdJ("click",function(){return n.sendCallBackRequest()}),e._UZ(75,"div",19),e.TgZ(76,"p"),e.SDv(77,47),e.qZA()()()()()),2&t&&(e.xp6(4),e.Q6J("ngIf",null==n.tooltipsService||null==n.tooltipsService.tooltips?null:n.tooltipsService.tooltips.noc),e.xp6(30),e.pQV(n.customerId),e.QtT(34),e.xp6(17),e.Q6J("ngIf",n.nocNumber&&n.loaded),e.xp6(1),e.Q6J("ngIf",!n.nocNumber&&n.loaded&&!n.isRuby),e.xp6(1),e.Q6J("ngIf",!n.nocNumber&&n.loaded&&n.isRuby),e.xp6(1),e.Q6J("ngClass",e.VKq(9,Vo,!n.nocNumber)),e.xp6(4),e.Q6J("formGroup",n.contactForm),e.xp6(9),e.Q6J("ngIf",n.contactForm.name.hasError("required")),e.xp6(6),e.Q6J("ngIf",n.contactForm.phone_number.hasError("required")))},dependencies:[T.mk,T.O5,r.Fj,r.JJ,r.JL,r.sg,r.u,Y.K,z.g,y.lW,f.TO,f.KE,Z.Nt],styles:[".links_ticketing-system[_ngcontent-%COMP%]{display:flex;gap:20px}.links_ticketing-system[_ngcontent-%COMP%]   .ticketing-system[_ngcontent-%COMP%]{display:flex;box-sizing:border-box;flex-direction:column;gap:40px;justify-content:center;background-color:#144a90;padding:50px 20px 54px;width:49.5%;align-items:center}.links_ticketing-system[_ngcontent-%COMP%]   .ticketing-system[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{background-color:#d6117f;height:50px;text-transform:uppercase;width:80%}@media (max-width: 1180px){.links_ticketing-system[_ngcontent-%COMP%]   .ticketing-system[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%}}.links_ticketing-system[_ngcontent-%COMP%]   .ticketing-system[_ngcontent-%COMP%]   .ticketing-system_title[_ngcontent-%COMP%]{color:#fff;font-size:30px;font-weight:700;letter-spacing:.3px;line-height:1;text-align:center;cursor:pointer}.links_ticketing-system[_ngcontent-%COMP%]   .ticketing-system[_ngcontent-%COMP%]   .ticketing-system_title[_ngcontent-%COMP%]:hover{color:#d6117f}.links_ticketing-system[_ngcontent-%COMP%]   .ticketing-system[_ngcontent-%COMP%]   .ticketing-system_describe[_ngcontent-%COMP%]{color:#fff;text-align:center;font-size:16px;font-style:normal;font-weight:400;line-height:136%;letter-spacing:.16px;width:20vw}.link[_ngcontent-%COMP%]{display:flex;border-top:1px solid black;justify-content:space-between;
1height:103px;align-items:center;gap:10px}.link-description[_ngcontent-%COMP%]{width:60%;display:flex;align-items:center}.support[_ngcontent-%COMP%]{padding:0 60px 60px 0}@media (max-width: 960px){.support[_ngcontent-%COMP%]{padding-right:1rem}}.text-title[_ngcontent-%COMP%]{font-size:44px;font-style:normal;font-weight:700;margin-top:7px!important;letter-spacing:.44px;margin-bottom:46px!important;text-transform:uppercase}.arrow-container[_ngcontent-%COMP%]{width:165px}.customer-id[_ngcontent-%COMP%]{color:#d6117f;font-size:20px;font-style:normal;font-weight:400;line-height:normal;letter-spacing:.2px;text-transform:uppercase;text-align:right}.contact-cards[_ngcontent-%COMP%]{display:flex}@media (max-width: 1180px){.contact-cards[_ngcontent-%COMP%]{flex-wrap:wrap}}.contact-cards[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]{padding:50px 30px 30px 10px;display:flex;flex-direction:column;justify-content:space-between;width:33.3333333333%}@media (max-width: 1180px){.contact-cards[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]:not(:last-child){flex:1}.contact-cards[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]:last-child{width:100%}}.contact-cards[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]   .contact-cards__title[_ngcontent-%COMP%]{color:#000;font-size:35px;font-style:normal;font-weight:400;line-height:normal;letter-spacing:.35px;text-transform:uppercase}@media (max-width: 1440px){.contact-cards[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]   .contact-cards__title[_ngcontent-%COMP%]{font-size:30px}}@media (max-width: 1180px){.contact-cards[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]   .contact-cards__title[_ngcontent-%COMP%]{font-size:26px}}.contact-cards[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]:nth-child(2){background-color:#eaf2fc}.contact-cards[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]:nth-child(3){background-color:#d9eaff}@media (max-width: 1180px){.contact-cards[_ngcontent-%COMP%]   .card__form[_ngcontent-%COMP%]   div.flex[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{width:130px}.contact-cards[_ngcontent-%COMP%]   .card__form[_ngcontent-%COMP%]   div.flex[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]{flex:1}}.arrow-container[_ngcontent-%COMP%]{margin-left:auto;width:-moz-fit-content;width:fit-content}.links[_ngcontent-%COMP%]{width:100%}.mr[_ngcontent-%COMP%]{margin-right:80px}.email_link[_ngcontent-%COMP%]{cursor:pointer;color:#144a90;text-decoration:underline}.invisible[_ngcontent-%COMP%]{visibility:hidden}"]}),o})();var jo=l(9785),Wo=l(11207),Ce=l(37084);function ei(o,i){1&o&&e._UZ(0,"mat-divider")}function ti(o,i){if(1&o&&(e.ynx(0),e._UZ(1,"mat-divider"),e.TgZ(2,"mat-expansion-panel",2,3)(4,"mat-expansion-panel-header")(5,"mat-panel-title",4),e._uU(6),e.qZA(),e.TgZ(7,"mat-panel-description"),e._UZ(8,"div",5),e.qZA()(),e._UZ(9,"div",6),e.qZA(),e.YNc(10,ei,1,0,"mat-divider",7),e.BQk()),2&o){const t=i.$implicit,n=i.last,a=e.MAs(3);e.xp6(5),e.Q6J("ngClass",a.expanded?"text-pink":""),e.xp6(1),e.hij(" ",t.question," "),e.xp6(2),e.Q6J("ngClass",a.expanded?"arrow-selected-mode":""),e.xp6(1),e.Q6J("innerHTML",t.answer,e.oJD),e.xp6(1),e.Q6J("ngIf",n)}}let ni=(()=>{class o{constructor(){}ngOnInit(){}}return o.\u0275fac=function(t){return new(t||o)}
1,o.\u0275cmp=e.Xpm({type:o,selectors:[["app-login-tab"]],inputs:{panels:"panels"},decls:2,vars:1,consts:[[1,"wrapper"],[4,"ngFor","ngForOf"],["hideToggle",""],["fpanel",""],[3,"ngClass"],[1,"arrow",3,"ngClass"],[3,"innerHTML"],[4,"ngIf"]],template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.YNc(1,ti,11,5,"ng-container",1),e.qZA()),2&t&&(e.xp6(1),e.Q6J("ngForOf",n.panels))},dependencies:[T.mk,T.sg,T.O5,B.d,Ce.ib,Ce.yz,Ce.yK,Ce.u4],styles:["mat-divider[_ngcontent-%COMP%]{border-top-color:#000}mat-expansion-panel-header[_ngcontent-%COMP%]{height:100px;padding:0}mat-expansion-panel-header[_ngcontent-%COMP%]:hover{background-color:#0000!important}mat-expansion-panel-header[_ngcontent-%COMP%]:hover   mat-panel-title[_ngcontent-%COMP%]{color:#d6117f!important;flex-basis:1}mat-expansion-panel-header[_ngcontent-%COMP%]:hover   .arrow[_ngcontent-%COMP%]{background:url(/assets/pic/profile/down-pink.svg) no-repeat}  .mat-expansion-panel-body{padding:24px 0!important;color:#000;font-size:16px;font-style:normal;font-weight:400;line-height:normal}  .mat-tab-body-content{overflow:hidden!important}mat-panel-title[_ngcontent-%COMP%]{font-size:20px;font-weight:400;text-transform:uppercase;color:#000}mat-panel-description[_ngcontent-%COMP%]{justify-content:end}  .mat-expansion-panel-header.mat-expanded{height:100px!important}.arrow[_ngcontent-%COMP%]{display:block;background:url(/assets/pic/profile/down.svg) no-repeat;width:42px;height:30px}.arrow-selected-mode[_ngcontent-%COMP%]{background:url(/assets/pic/profile/up-pink.svg) no-repeat!important}.wrapper[_ngcontent-%COMP%]{margin-top:30px}  .mat-expansion-panel-header-title{flex-basis:fit-content!important}  .blue-text{color:#144a90}"]}),o})();var oi=l(48952);let ii=(()=>{class o{constructor(t,n,a){this.breadcrumbs=t,this.getUserAccountManagerUsecase=n,this.matDialog=a,this.accountManager={first_name:"",last_name:"",email:"",phone_number:""}}ngOnInit(){this.getUserAccountManagerUsecase.execute().subscribe(t=>{this.accountManager=t})}openContactUsDialog(){this.matDialog.open(oi.A)}writeEmail(){window.open("mailto:"+this.contactEmail,"_blank")}get contactEmail(){return"RUBY"==me.N.PORTAL_REGION?"[email protected]":"[email protected]"}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(q.W),e.Y36(Me.y),e.Y36($.uw))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-faq-table"]],decls:29,vars:5,consts:function(){let i,t,n,a,_;return i="Use the Contact Us section.",t="CONTACT US",n="Contact us via the email",a="WRITE US",_="Get in touch with your account representative",[[1,"links"],[1,"link"],[1,"link-description"],i,[1,"arrow-container",3,"click"],[1,"arrow"],t,[1,"desc"],n,[1,"pointer","capital-gothic",3,"click"],a,_,[1,"contact"],[1,"mng-name"],[1,"name"],[1,"email"]]},template:function(t,n){1&t&&(e.TgZ(0,"div",0)(1,"div",1)(2,"p",2),e.SDv(3,3),e.qZA(),e.TgZ(4,"div",4),e.NdJ("click",function(){return n.openContactUsDialog()}),e._UZ(5,"div",5),e.TgZ(6,"p"),e.SDv(7,6),e.qZA()()(),e.TgZ(8,"div",1)(9,"p",2)(10,"span",7),e.SDv(11,8),e.qZA(),e.TgZ(12,"span",9),e.NdJ("click",function(){return n.writeEmail()}),e._uU(13),e.qZA()(),e.TgZ(14,"div",4),e.NdJ("click",function(){return n.writeEmail()}),e._UZ(15,"div",5),e.TgZ(16,"p"),e.SDv(17,10),e.qZA()()(),e.TgZ(18,"div",1)(19,"p",2),e.SDv(20,11),e.qZA(),e.TgZ(21,"div",12)(22,"div",13)(23,"p",14),e._uU(24),e.qZA()(),e.TgZ(25,"p",15),e._uU(26),e.qZA(),e.TgZ(27,"p"),e._uU(28),e.qZA()()()()),2&t&&(e.xp6(13),e.Oqu(n.contactEmail),e.xp6(11),e.AsE("",n.accountManager.first_name," ",n.accountManager.last_name,""),e.xp6(2),e.Oqu(n.accountManager.email),e.xp6(2),e.Oqu(n.accountManager.phone_number))},styles:[".link[_ngcontent-%COMP%]{display:flex;border-top:1px solid black;justify-content:space-between;height:103px;align-items:center}.link[_ngcontent-%COMP%]   .arrow-container[_ngcontent-%COMP%]{width:170px}.link[_ngcontent-%COMP%]:last-child{border-bottom:1px solid black}.contact[_ngcontent-%COMP%]{width:170px}.contact[_ngcontent-%COMP%]   .mng-name[_ngcontent-%COMP%]{font-size:16px;font-style:normal;font-weight:700;line-height:normal;margin-bottom:10px!important}.contact[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:#144a90}.link-description[_ngcontent-%COMP%]{width:62%;display:flex;align-items:center;gap:5px}@media (max-width: 960px){.link-description[_ngcontent-%COMP%]{display:block}}.link-description[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:not(.desc){color:#144a90;font-size:14px;font-style:normal;font-weight:400;line-height:normal;text-transform:uppercase}.links[_ngcontent-%COMP%]{margin:54px 0}@media (min-width: 960px){.links[_ngcontent-%COMP%]{width:690px}}"]}),o})();function _i(o,i){if(1&o&&(e.TgZ(0,"app-tooltip")(1,"p"),e._uU(2),e.qZA()()),2&o){const t=e.oxw();e.xp6(2),e.Oqu(t.tooltipsService.tooltips.faq)}}function ai(o,i){if(1&o&&(e.TgZ(0,"mat-tab",23),e._UZ(1,"app-login-tab",24),e.qZA()),2&o){const t=i.$implicit;e.Q6J("label",t.title),e.xp6(1),e.Q6J("panels",t.articles)}}let si=(()=>{class o{constructor(t,n,a,_,s){this.breadcrumbs=t,this.matDialog=n,this.router=a,this.getFaqText=_,this.tooltipsService=s,this.breadcrumbs.set
1Links([{route:"/",text:"HOME"},{route:"/main/support",text:"SUPPORT"},{text:"FAQ"}])}openContactForm(){this.matDialog.open(jo.S,{panelClass:"general-information-popup",data:{selectedLabel:5}})}redirectTo(t){switch(t){case 3:window.open("https://retn.net/network/network-map","_blank");break;case 4:window.open("https://retn.net/network/points-of-presence","_blank");break;case 5:this.matDialog.open(Oe.e);break;case 6:this.router.navigateByUrl("main/services/service-documentation")}}ngOnInit(){this.getFaqText.execute().subscribe(t=>{this.tabs=t})}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(q.W),e.Y36($.uw),e.Y36(x.F0),e.Y36(Wo.o),e.Y36(Q.b))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-faq"]],features:[e._Bn([{provide:e.QbO,useValue:"NoopAnimations"}])],decls:32,vars:3,consts:function(){let i,t,n,a,_,s,c,p;return i="Welcome to the FAQ section of the RETN customer portal. Here you can find answers to some of the most common questions that our customers have. If you have a question that is not answered here, please feel free to contact us.",t="For more information about our network and services send us a request using the",n="CONTACT FORM",a="Or check out the Useful Links",_="Network map",s="Point of presence",c="Service documentation",p="Maintenance schedule",[[1,"main-wrapper"],[1,"flex"],[1,"title","capital-gothic"],[4,"ngIf"],[1,"breadcrumbs"],[1,"text-description"],i,[3,"animationDuration"],[3,"label",4,"ngFor","ngForOf"],[1,"blue-rectangle","capital-gothic"],[1,"arrow"],[1,"more-information"],t,[1,"pointer","contact",3,"click"],n,[1,"useful-links"],a,[1,"links"],[3,"click"],_,s,c,p,[3,"label"],[3,"panels"]]},template:function(t,n){1&t&&(e.TgZ(0,"div",0)(1,"div",1)(2,"p",2),e._uU(3,"faq "),e.YNc(4,_i,3,1,"app-tooltip",3),e.qZA(),e.TgZ(5,"div",4),e._UZ(6,"wo-breadcrumbs"),e.qZA()(),e.TgZ(7,"div",5)(8,"p"),e.SDv(9,6),e.qZA()(),e._UZ(10,"app-faq-table"),e.TgZ(11,"mat-tab-group",7),e.YNc(12,ai,2,2,"mat-tab",8),e.qZA(),e.TgZ(13,"div",9),e._UZ(14,"div",10),e.TgZ(15,"div",11)(16,"p"),e.SDv(17,12),e.qZA(),e.TgZ(18,"p",13),e.NdJ("click",function(){return n.openContactForm()}),e.SDv(19,14),e.qZA()(),e.TgZ(20,"div",15)(21,"p"),e.SDv(22,16),e.qZA(),e.TgZ(23,"div",17)(24,"p",18),e.NdJ("click",function(){return n.redirectTo(3)}),e.SDv(25,19),e.qZA(),e.TgZ(26,"p",18),e.NdJ("click",function(){return n.redirectTo(4)}),e.SDv(27,20),e.qZA(),e.TgZ(28,"p",18),e.NdJ("click",function(){return n.redirectTo(6)}),e.SDv(29,21),e.qZA(),e.TgZ(30,"p",18),e.NdJ("click",function(){return n.redirectTo(5)}),e.SDv(31,22),e.qZA()()()()()),2&t&&(e.xp6(4),e.Q6J("ngIf",null==n.tooltipsService||null==n.tooltipsService.tooltips?null:n.tooltipsService.tooltips.faq),e.xp6(7),e.Q6J("animationDuration","0"),e.xp6(1),e.Q6J("ngForOf",n.tabs))},dependencies:[T.sg,T.O5,Y.K,z.g,_e.SP,_e.uX,ni,ii],styles:[".main-wrapper[_ngcontent-%COMP%]{padding:0 60px 40px 0}@media (max-width: 960px){.main-wrapper[_ngcontent-%COMP%]{padding-right:1rem}}.blue-rectangle[_ngcontent-%COMP%]{background-color:#144a90;margin-top:54px;display:flex;color:#fff;padding:30px 45px;box-sizing:border-box;gap:30px}.blue-rectangle[_ngcontent-%COMP%]   .arrow[_ngcontent-%COMP%]{margin-top:5px;width:39px;height:39px;background-color:#fff;-webkit-mask:url(/assets/pic/profile/blue-vector.svg) no-repeat center;mask:url(/assets/pic/profile/blue-vector.svg) no-repeat center}.more-information[_ngcontent-%COMP%]{flex:0 0 38%;display:flex;flex-direction:column;gap:17px}.more-information[_ngcontent-%COMP%]   .contact[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content}.more-information[_ngcontent-%COMP%]   .contact[_ngcontent-%COMP%]:hover{color:#d6117f}.useful-links[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:39px}.useful-links[_ngcontent-%COMP%]   .links[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:18px}.useful-links[_ngcontent-%COMP%]   .links[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{cursor:pointer;width:-moz-fit-content;width:fit-content;text-transform:uppercase;font-size:14px}.useful-links[_ngcontent-%COMP%]   .links[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]:hover{color:#d6117f}.title[_ngcontent-%COMP%]{padding:0 0 23px;font-size:44px;font-style:normal;font-weight:700;text-transform:uppercase;line-height:37px;margin-right:10px!important}.title[_ngcontent-%COMP%]     app-tooltip .right{top:10px}.text-description[_ngcontent-%COMP%]{margin-top:20px}"]}),o})();var ri=l(97153),li=l.n(ri),ci=l(92461);function Ti(o,i){if(1&o&&(e.TgZ(0,"div",13),e._uU(1),e.qZA()),2&o){const t=i.$implicit;e.xp6(1),e.hij(" ",t," ")}}function pi(o,i){if(1&o&&(e.TgZ(0,"div",16)(1,"div"),e.ynx(2),e._uU(3),e.BQk(),e.qZA()()),2&o){const t=i.$implicit,n=e.oxw().$implicit;e.xp6(3),e.hij(" ",n[t]," ")}}function di(o,i){if(1&o&&(e.TgZ(0,"div",14),e.YNc(1,pi,4,1,"div",15),e.qZA()),2&o){const t=i.odd,n=e.oxw();e.Q6J("ngClass",t?"":"odd-row"),e.xp6(1),e.Q6J("ngForOf",n.keys)}}let gi=(()=>{class o{constructor(t){this.getEscalationMatrixDataUsecase=t,this.data=[],this.keys=[],this.titles=["Level","Title","Name","Email","Phone"]}ngOnInit(){this.getEscalationMatrixDataUsecase.execute().subscribe(t=>{this.data=t,this.keys=Object.keys(this.data[0])})}downloadTable(){const t=document.querySelector(".table-container");li()().from(t).set({margin:3,filename:"table.pdf",image:{type:"jpeg",quality:.98},html2canvas:{scale:1},jsPDF:{unit:"mm",format:"a4",orientation:"landscape"}}).save()}printTable(){window.print()}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(ci.H))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-escalation-matrix-table"]],decls:16,vars:2,consts:function(){let i,t,n;return i="Contact Us To Escalate",t="DOWNLOAD",n="PRINT",[[1,"sub-title","capital-gothic"],i,[1,"table-container"],[1,"table-row"],["class","table-header-cell",4,"ngFor","ngForOf"],["class","table-row",3,"ngClass",4,"ngFor","ngForOf"],[1,"footer"],[1,"icon-container",3,"click"],[1,"download"],[1,"capital-gothic"],t,[1,"print"],n,[1,"table-header-cell"],[1,"table-row",3,"ngClass"],["class","table-cell",4,"ngFor","ngForOf"],[1,"table-cell"]]},template:function(t,n){1&t&&(e.TgZ(0,"p",0),e.SDv(1,1),e.qZA(),e.TgZ(2,"div",2)(3,"div",3),e.YNc(4,Ti,2,1,"div",4),e.qZA(),e.YNc(5,di,2,2,"div",5),e.qZA(),e._UZ(6,"mat-divider"),e.TgZ(7,"div",6)(8,"div",7),e.NdJ("click",function(){return n.downloadTable()}),e._UZ(9,"div",8),e.TgZ(10,"p",9),e.SDv(11,10),e.qZA()(),e.TgZ(12,"div",7),e.NdJ("click",function(){return n.printTable()}),e._UZ(13,"div",11),e.TgZ(14,"p",9),e.SDv(15,12),e.qZA()()()),2&t&&(e.xp6(4),e.Q6J("ngForOf",n.titles),e.xp6(1),e.Q6J("ngForOf",n.data))},dependencies:[T.mk,T.sg,B.d],styles:[".table-container[_ngcontent-%COMP%]{display:table;width:90%;overflow-x:auto}@media (max-width: 1180px){.table-container[_ngcontent-%COMP%]{width:100%}}.table-row[_ngcontent-%COMP%]{display:table-row;width:100%;background-color:#fff}.odd-row[_ngcontent-%COMP%]{background-color:#eaf2fc}.table-header-cell[_ngcontent-%COMP%]{font-size:16px;font-weight:700;line-height:normal;background-color:#fff;border-bottom:1px solid black;border-top:2px solid #D6117F!important;margin-bottom:15px;padding:11px!important}.table-header-cell[_ngcontent-%COMP%], .table-cell[_ngcontent-%COMP%]{padding:10px;text-align:left;text-overflow:ellipsis;white-space:nowrap;display:table-cell;box-sizing:border-box;max-width:100px}.table-header-cell[_ngcontent-%COMP%]   div[_ngcontent-%COMP%], .table-cell[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{text-overflow:ellipsis;white-space:normal;overflow:hidden}.blue-text[_ngcontent-%COMP%]{font-size:14px;font-style:normal;font-weight:400;line-height:normal;font-family:Capital Gothic,sans-serif;color:#144a90;text-transform:uppercase;cursor:pointer}.sub-title[_ngcontent-%COMP%]{padding:54px 0 18px 20px;font-size:30px;font-style:normal;font-weight:700}.footer[_ngcontent-%COMP%]{display:flex;gap:35px;padding-top:19px;margin-bottom:60px}.download[_ngcontent-%COMP%]{width:30px;height:30px;background-color:#144a90;
1-webkit-mask:url(/assets/pic/dashboard/download.svg) no-repeat center;mask:url(/assets/pic/dashboard/download.svg) no-repeat center;margin:0 13px}.print[_ngcontent-%COMP%]{width:30px;height:30px;background-color:#144a90;-webkit-mask:url(/assets/pic/dashboard/print.svg) no-repeat center;mask:url(/assets/pic/dashboard/print.svg) no-repeat center;margin:0 13px}.icon-container[_ngcontent-%COMP%]{display:flex;align-items:center;cursor:pointer}.icon-container[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:#144a90}.icon-container[_ngcontent-%COMP%]:hover   .download[_ngcontent-%COMP%], .icon-container[_ngcontent-%COMP%]:hover   .print[_ngcontent-%COMP%]{background-color:#d6117f}.icon-container[_ngcontent-%COMP%]:hover   p[_ngcontent-%COMP%]{color:#d6117f}mat-divider[_ngcontent-%COMP%]{border-top-color:#000;width:90%}@media print{@page{margin:0}  body *{visibility:hidden}.table-container[_ngcontent-%COMP%], .table-container[_ngcontent-%COMP%]   *[_ngcontent-%COMP%]{visibility:visible!important}  .content{margin-left:0!important;margin-right:0!important}.table-container[_ngcontent-%COMP%]{position:absolute;left:0!important;right:0!important;top:20%;padding:0!important;margin:0!important;width:100%!important;box-sizing:border-box}.table-row[_ngcontent-%COMP%]{display:table-row;border-bottom:.5px solid #000}.table-header-cell[_ngcontent-%COMP%], .table-cell[_ngcontent-%COMP%]{display:table-cell;text-align:left}.table-header-cell[_ngcontent-%COMP%]   div[_ngcontent-%COMP%], .table-cell[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{width:100%;overflow:initial}.table-header-cell[_ngcontent-%COMP%]{font-weight:700;background-color:#f0f0f0}.odd-row[_ngcontent-%COMP%]{background-color:#f9f9f9}.footer[_ngcontent-%COMP%]{display:none}}"]}),o})();function Ci(o,i){if(1&o&&(e.tHW(0,2,1),e.TgZ(1,"app-tooltip"),e._UZ(2,"p"),e.qZA(),e.N_p()),2&o){const t=e.oxw();e.xp6(2),e.pQV(t.tooltipsService.tooltips.escalation_matrix),e.QtT(0)}}let ui=(()=>{class o{constructor(t,n,a,_){this.router=t,this.breadcrumbs=n,this.getUserAccountManagerUsecase=a,this.tooltipsService=_,this.accountManager={first_name:"",last_name:"",email:"",phone_number:""},this.breadcrumbs.setLinks([{route:"/",text:"HOME"},{route:"/main/support",text:"SUPPORT"},{text:"ESCALATION MATRIX"}])}toNoc(){this.router.navigateByUrl("/main/support/noc")}ngOnInit(){this.getUserAccountManagerUsecase.execute().subscribe(t=>{this.accountManager=t})}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(x.F0),e.Y36(q.W),e.Y36(Me.y),e.Y36(Q.b))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-escalation-matrix"]],decls:31,vars:5,consts:function(){let i,t,n,a,_,s;return i="You can be assured that our professional support team is always available to help you. Please contact the NOC in any way that works for you.",t="CONTACT NOC",n="Your Account Manager",a="If you are experiencing difficulties resolving your issue, your account manager is available to assist you.",_="Your Account Manager",s="ESCALATION MATRIX " + "\ufffd*3:1\ufffd\ufffd#1:1\ufffd" + "" + "\ufffd#2:1\ufffd" + "" + "\ufffd0:1\ufffd" + "" + "\ufffd/#2:1\ufffd" + "" + "\ufffd/#1:1\ufffd\ufffd/*3:1\ufffd" + "",[[1,"flex"],[1,"title","margin-right"],s,[4,"ngIf"],[1,"breadcrumbs"],[1,"head-info"],[1,"blue-rectangle"],i,[1,"arrow-container",3,"click"],[1,"arrow"],t,[1,"manager-info"],[1,"account-mgr"],[1,"capital-gothic"],n,a,[1,"account-mgr-info"],[1,"mng-name"],[1,"name"],[1,"position"],_,[1,"email"]]},template:function(t,n){1&t&&(e.TgZ(0,"div",0)(1,"p",1),e.tHW(2,2),e.YNc(3,Ci,3,1,"app-tooltip",3),e.N_p(),e.qZA(),e.TgZ(4,"div",4),e._UZ(5,"wo-breadcrumbs"),e.qZA()(),e.TgZ(6,"div",5)(7,"div",6)(8,"p"),e.SDv(9,7),e.qZA(),e.TgZ(10,"div",8),e.NdJ("click",function(){return n.toNoc()}),e._UZ(11,"div",9),e.TgZ(12,"p"),e.SDv(13,10),e.qZA()()(),e.TgZ(14,"div",11)(15,"div",12)(16,"p",13),e.SDv(17,14),e.qZA(),e.TgZ(18,"p"),e.SDv(19,15),e.qZA()(),e.TgZ(20,"div",16)(21,"div",17)(22,"p",18),e._uU(23),e.qZA(),e.TgZ(24,"p",19),e.SDv(25,20),e.qZA()(),e.TgZ(26,"p",21),e._uU(27),e.qZA(),e.TgZ(28,"p"),e._uU(29),e.qZA()()()(),e._UZ(30,"app-escalation-matrix-table")),2&t&&(e.xp6(3),e.Q6J("ngIf",null==n.tooltipsService||null==n.tooltipsService.tooltips?null:n.tooltipsService.tooltips.escalation_matrix),e.xp6(20
1),e.AsE("",n.accountManager.first_name," ",n.accountManager.last_name,""),e.xp6(4),e.Oqu(n.accountManager.email),e.xp6(2),e.Oqu(n.accountManager.phone_number))},dependencies:[T.O5,Y.K,z.g,gi],styles:["[_nghost-%COMP%]{display:block;padding:0 60px 40px 0}@media (max-width: 960px){[_nghost-%COMP%]{padding-right:1rem}}.title[_ngcontent-%COMP%]{font-size:44px;font-style:normal;font-weight:700;line-height:1;letter-spacing:.44px}.title[_ngcontent-%COMP%]     app-tooltip .right{top:13px}.head-info[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:80%;margin-top:23px;column-gap:30px}@media (max-width: 1180px){.head-info[_ngcontent-%COMP%]{width:100%}}@media (max-width: 960px){.head-info[_ngcontent-%COMP%]{flex-wrap:wrap}}.blue-rectangle[_ngcontent-%COMP%]{background-color:#144a90;padding:28px 20px 8px;box-sizing:border-box;width:27vw}@media (max-width: 1180px){.blue-rectangle[_ngcontent-%COMP%]{width:unset}}@media (max-width: 960px){.blue-rectangle[_ngcontent-%COMP%]{width:100%}}.blue-rectangle[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:#fff}.blue-rectangle[_ngcontent-%COMP%]   .arrow-container[_ngcontent-%COMP%]{margin-left:auto}.blue-rectangle[_ngcontent-%COMP%]   .arrow-container[_ngcontent-%COMP%]   .arrow[_ngcontent-%COMP%]{background-color:#fff}.blue-rectangle[_ngcontent-%COMP%]   .arrow-container[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:#fff}.blue-rectangle[_ngcontent-%COMP%]   .arrow-container[_ngcontent-%COMP%]:hover   .arrow[_ngcontent-%COMP%]{background-color:#d6117f}.blue-rectangle[_ngcontent-%COMP%]   .arrow-container[_ngcontent-%COMP%]:hover   p[_ngcontent-%COMP%]{color:#d6117f}.account-mgr[_ngcontent-%COMP%]{width:24vw;padding:20px 0}@media (max-width: 960px){.account-mgr[_ngcontent-%COMP%]{flex:1;width:unset}}.account-mgr[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:#000;font-size:16px;font-style:normal;font-weight:400;line-height:normal}.account-mgr[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]:first-child{font-size:30px;font-style:normal;font-weight:700;letter-spacing:.3px;margin-bottom:14px!important}.account-mgr-info[_ngcontent-%COMP%]{color:#144a90;padding:20px 0}.account-mgr-info[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]{font-weight:700}.account-mgr-info[_ngcontent-%COMP%]   .email[_ngcontent-%COMP%]{margin:14px 0!important}.account-mgr-info[_ngcontent-%COMP%]   .mng-name[_ngcontent-%COMP%]{display:flex;flex-direction:column}.manager-info[_ngcontent-%COMP%]{display:flex;gap:31px}"]}),o})();var ve=l(73440);class Ei extends J.I{constructor(){super({}),this.addControl("legal_name",new r.NI("")),this.addControl("registration_number",new r.NI("")),this.addControl("vat_number",new r.NI("")),this.addControl("legal_address",new r.NI("")),this.addControl("country",new r.NI("",r.kI.required)),this.addControl("city",new r.NI("",r.kI.required)),this.addControl("post_code",new r.NI("",[r.kI.required,r.kI.pattern(ve.T.PHONE_REGEX)]))}get legal_name(){return this.controls.legal_name}get registration_number(){return this.controls.registration_number}get vat_number(){return this.controls.vat_number}get legal_address(){return this.controls.legal_address}get country(){return this.controls.country}get city(){return this.controls.city}get post_code(){return this.controls.post_code}}class Oi extends J.I{constructor(){super({}),this.addControl("legal_name",new r.NI("")),this.addControl("registration_number",new r.NI("")),this.addControl("vat_number",new r.NI("")),this.addControl("legal_address",new r.NI("")),this.addControl("country",new r.NI("")),this.addControl("city",new r.NI("")),this.addControl("post_code",new r.NI("")),this.addControl("comment",new r.NI("")),this.addControl("files",new r.NI([]))}get legal_name(){return this.controls.legal_name}get registration_number(){return this.controls.registration_number}get vat_number(){return this.controls.vat_number}get legal_address(){return this.controls.legal_address}get country(){return this.controls.country}get city(){return this.controls.city}get post_code(){return this.controls.post_code}get comment(){return this.controls.comment}get files(){return this.controls.files}}var Ue=l(59312),Pi=l(14143),Si=l(461),ae=l(87052),Ie=l(97726);class mi extends J.I{constructor(){super({}),this.addControl("emails",new r.NI(""))}get emails(){return this.controls.emails}}function Mi(o,i){if(1&o&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&o){const t=i.$implicit;e.xp6(1),e.hij(" ",t," ")}}function fi(o,i){1&o&&(e.TgZ(0,"mat-error"),e.SDv(1,21),e.qZA())}let se=(()=>{class o{constructor(t){this.getCompanyContactsUseCase=t,this.contactsType=null,this.contactForm=new mi,this.defaultEmails=[]}ngOnInit(){this.getCompanyContactsUseCase.execute(this.contactsType).subscribe(t=>{this.defaultEmails=t})}get emails(){return[...this.defaultEmails,...this.contactForm.emails.value.split(",")].join(",")}checkEmailValidity(){if(""===this.contactForm.emails.value)return!0;let t=!0;const n=ve.T.EMAIL_REGEX;return this.contactForm.emails.value.split(",").forEach(_=>{if(!n.test(_))return this.contactForm.emails.setErrors({invalidEmail
1s:!0}),void(t=!1)}),t}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(ae.P))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-contact-form"]],inputs:{contactsType:"contactsType"},decls:22,vars:3,consts:function(){let i,t,n,a,_,s,c;return i="Contacts",t="Default Emails:",n="All ticket updates will be sent to these emails.",a="Add emails",_="Type emails",s="Type here additional email (comma separated) if you want to receive copies of all updates within this ticket.",c="Please enter a valid email address",[[1,"contacts"],[1,"title","capital-gothic"],i,[1,"pink-divider"],[1,"flex","wrapper"],[1,"emails"],[1,"relative-container"],[1,"default-emails","flex"],[1,"default-emails__description"],t,[1,"email-value"],[4,"ngFor","ngForOf"],[1,"field-description"],n,[1,"emails-form","flex","relative-container",3,"formGroup"],a,["floatLabel","never"],["matInput","","placeholder",_,"formControlName","emails"],[4,"ngIf"],[1,"field-description","up"],s,c]},template:function(t,n){1&t&&(e.TgZ(0,"div",0)(1,"p",1),e.SDv(2,2),e.qZA(),e._UZ(3,"mat-divider",3),e.TgZ(4,"div",4)(5,"div",5)(6,"div",6)(7,"div",7)(8,"p",8),e.SDv(9,9),e.qZA(),e.TgZ(10,"p",10),e.YNc(11,Mi,2,1,"span",11),e.qZA()(),e.TgZ(12,"p",12),e.SDv(13,13),e.qZA()(),e.TgZ(14,"div",14)(15,"p"),e.SDv(16,15),e.qZA(),e.TgZ(17,"mat-form-field",16),e._UZ(18,"input",17),e.YNc(19,fi,2,0,"mat-error",18),e.qZA(),e.TgZ(20,"p",19),e.SDv(21,20),e.qZA()()()()()),2&t&&(e.xp6(11),e.Q6J("ngForOf",n.defaultEmails),e.xp6(3),e.Q6J("formGroup",n.contactForm),e.xp6(5),e.Q6J("ngIf",n.contactForm.emails.hasError("invalidEmail
1s")))},dependencies:[T.sg,T.O5,r.Fj,r.JJ,r.JL,r.sg,r.u,B.d,f.TO,f.KE,Z.Nt],styles:[".contacts[_ngcontent-%COMP%]{margin-top:80px}.contacts[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-size:30px;font-style:normal;font-weight:700;letter-spacing:.3px;padding-left:28px}.contacts[_ngcontent-%COMP%]   .pink-divider[_ngcontent-%COMP%]{margin-top:20px;background-color:#d6117f;height:2px;border:none;margin-bottom:40px}.contacts[_ngcontent-%COMP%]   .emails-form[_ngcontent-%COMP%]{background-color:#eaf2fc;align-items:center;padding:15px 28px;gap:54px}@media (max-width: 1180px){.contacts[_ngcontent-%COMP%]   .emails-form[_ngcontent-%COMP%]{gap:20px}}.contacts[_ngcontent-%COMP%]   .emails-form[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]{width:68%}.contacts[_ngcontent-%COMP%]   .emails-form[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{padding-left:10px}.contacts[_ngcontent-%COMP%]   .emails-form[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]     .mat-form-field-label{font-size:14px;margin-top:5px;margin-left:10px;font-family:Capital Gothic,sans-serif}.contacts[_ngcontent-%COMP%]   .emails-form[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]:first-child{white-space:nowrap}.contacts[_ngcontent-%COMP%]   .emails[_ngcontent-%COMP%]{min-width:590px;box-sizing:border-box}@media (max-width: 1440px){.contacts[_ngcontent-%COMP%]   .emails[_ngcontent-%COMP%]{min-width:unset;width:40vw}}.contacts[_ngcontent-%COMP%]   .emails[_ngcontent-%COMP%]   .default-emails[_ngcontent-%COMP%]{border-bottom:1px solid black;padding-bottom:20px;margin-bottom:40px;gap:20px}.contacts[_ngcontent-%COMP%]   .emails[_ngcontent-%COMP%]   .default-emails[_ngcontent-%COMP%]   .email-value[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:10px}.contacts[_ngcontent-%COMP%]   .emails[_ngcontent-%COMP%]   .default-emails[_ngcontent-%COMP%]   .default-emails__description[_ngcontent-%COMP%]{font-weight:700;padding-left:28px;width:122px}@media (max-width: 960px){.contacts[_ngcontent-%COMP%]   .emails[_ngcontent-%COMP%]   .default-emails[_ngcontent-%COMP%]   .default-emails__description[_ngcontent-%COMP%]{padding-left:0}}.wrapper[_ngcontent-%COMP%]{gap:50px}.describe[_ngcontent-%COMP%]{display:flex;padding-top:20px;flex-direction:column;justify-content:flex-end;gap:60px;padding-bottom:32px}.relative-container[_ngcontent-%COMP%]{position:relative}.relative-container[_ngcontent-%COMP%]   .field-description[_ngcontent-%COMP%]{position:absolute;bottom:-3px;right:-502px;width:460px;min-width:250px}.relative-container[_ngcontent-%COMP%]   .field-description.up[_ngcontent-%COMP%]{bottom:28px}@media (max-width: 1440px){.relative-container[_ngcontent-%COMP%]   .field-description[_ngcontent-%COMP%]{width:30vw;left:calc(100% + 22px)}}@media (max-width: 1180px){.relative-container[_ngcontent-%COMP%]   .field-description[_ngcontent-%COMP%]{width:25vw;left:calc(100% + 18px)}}@media (max-width: 960px){.relative-container[_ngcontent-%COMP%]   .field-description[_ngcontent-%COMP%]{width:20vw}}"]}),o})();const Ni=["contactForm"];function Ii(o,i){if(1&o&&(e.tHW(0,2,1),e.TgZ(1,"app-tooltip"),e._UZ(2,"p"),e.qZA(),e.N_p()),2&o){const t=e.oxw();e.xp6(2),e.pQV(t.tooltipsService.tooltips.new_change_company_information_ticket),e.QtT(0)}}function hi(o,i){1&o&&(e.TgZ(0,"p",54),e.SDv(1,55),e.qZA())}function Ai(o,i){if(1&o&&(e.TgZ(0,"p",54),e._uU(1),e.qZA()),2&o){const t=e.oxw();e.xp6(1),e.Oqu(t.errorMessage)}}function Fi(o,i){if(1&o&&(e.TgZ(0,"div",62),e._UZ(1,"mat-progress-bar",63),e.TgZ(2,"p",64),e._uU(3),e.qZA()()),2&o){const t=e.oxw().index,n=e.oxw();e.xp6(1),e.Q6J("value",n.showedFiles[t].percentage),e.xp6(2),e.hij("",n.showedFiles[t].percentage,"%")}}function Ri(o,i){if(1&o){const t=e.EpF();e.TgZ(0,"div",56)(1,"div",57)(2,"p",58),e._uU(3),e.qZA(),e.TgZ(4,"mat-icon",59),e.NdJ("click",function(){const _=e.CHM(t).index,s=e.oxw();return e.KtG(s.deleteFile(_))}),e._uU(5,"close"),e.qZA()(),e.YNc(6,Fi,4,2,"div",60),e.TgZ(7,"p",61),e._uU(8),e.qZA()()}if(2&o){const t=i.index,n=e.oxw();e.xp6(3),e.Oqu(n.getFileNameFromForm(t)),e.xp6(3),e.Q6J("ngIf",n.showedFiles[t].isUploading),e.xp6(2),e.hij("",n.getFileSizeFromForm(t)," MB")}
1}function xi(o,i){1&o&&(e.TgZ(0,"p",65),e.SDv(1,66),e.qZA())}let bi=(()=>{class o{constructor(t,n,a,_,s,c,p,g){this.getCompanyInformationUseCase=t,this.breadcrumbs=n,this.sendFileUsecase=a,this.sendCompanyInformationChangeRequestUsecase=_,this.router=s,this.getCompanyContactsUseCase=c,this.matDialog=p,this.tooltipsService=g,this.companyInformationForm=new Ei,this.newCompanyInformationForm=new Oi,this.required=!1,this.errorMessage="",this.tooltipText="You can attach max 5 files each below 25Mb. ( .doc, .docx, .txt, .rtf, .xls, .xlsx, .pdf, .csv, .png, .jpg, .jpeg, .tiff, .gif, .zip, .rar, .tar, .gz, .pcap, .cap )",this.textareaLabel="Leave your comment ",this.defaultEmails=[],this.showedFiles=[],this.getTimeZoneEnumLabel=Ue.s}ngOnInit(){this.setUpBreadcrumbLinks(),this.getCompanyInformationUseCase.execute().subscribe(t=>{this.companyInformationForm.patchValue(t)}),this.getCompanyContactsUseCase.execute("commercial").subscribe(t=>{this.defaultEmails=t})}doFileInput(t){const n=t.target.files;if(n&&!(n.length<1)){this.errorMessage="";for(let a=0;a<n.length;a++){const _=n[a];if(!this.isFilesValid)break;if(_.size>26214400)return void(this.errorMessage="File size should be less than 25MB");if(!_.type)return void(this.errorMessage="File type is not allowed");{const s=_.type.split("/")[1];if(!["doc","docx","txt","rtf","xls","xlsx","pdf","csv","png","jpg","jpeg","tiff","gif","zip","rar","tar","gz","pcap","cap","vnd.openxmlformats-officedocument.spreadsheetml.sheet","vnd.openxmlformats-officedocument.wordprocessingml.document"].includes(s))return void(this.errorMessage="File type " + s + " is not allowed")}this.showedFiles.push({name:_.name,size:_.size,percentage:0,isUploading:!1}),this.sendFile(_,this.showedFiles.length-1)}t.target.value=null}}get isFilesValid(){return this.showedFiles.length<5}getFileNameFromForm(t){return this.showedFiles[t]?.name||""}getFileSizeFromForm(t){return Math.ceil((this.showedFiles[t]?.size||0)/1048576)||0}deleteFile(t){this.newCompanyInformationForm.files.value.splice(t,1),this.showedFiles.splice(t,1)}sendFile(t,n){const a=new FormData;a.append("file",t,t.name),this.showedFiles[n].percentage=0,this.showedFiles[n].isUploading=!0,this.sendFileUsecase.execute(a,"TICKET").pipe((0,H.U)(_=>{_.type===w.dt.UploadProgress?this.showedFiles[n].percentage=Math.round(100/_.total*_.loaded):_.type===w.dt.Response&&(this.showedFiles[n].isUploading=!1,this.newCompanyInformationForm.files.value[n]=_.body)}),(0,ee.K)(_=>(this.showedFiles[n].percentage=0,this.showedFiles[n].isUploading=!1,(0,j._)(_.message)))).subscribe()}setUpBreadcrumbLinks(){this.breadcrumbs.setLinks([{route:"/",text:"HOME"},{route:"/main/support",text:"SUPPORT"},{route:"/main/support/tickets",text:"BILLING TICKETS"},{text:"CHANGE COMPANY INFORMATION"}])}
1sendRequest(){if(this.formHasAnyValue){if(!this.contactForm.checkEmailValidity())return;this.sendCompanyInformationChangeRequestUsecase.execute({emails:this.contactForm.emails,...k.g.removeEmptyProperties(this.newCompanyInformationForm.value)}).subscribe(n=>{this.router.navigate(["/main/support/tickets/"+n.ticketId],{queryParams:{status:"created"}})})}else this.required=!0,this.formChangesSubscription=this.newCompanyInformationForm.valueChanges.subscribe(t=>{this.required=!1,this.formChangesSubscription.unsubscribe()})}goBack(){this.newCompanyInformationForm.touched||this.contactForm.contactForm.dirty?this.matDialog.open(ne.S,{panelClass:"general-information-popup",data:{text:"Are you sure you want to <span class=\"dedicated-text\">cancel</span>?<br> Entered data will not be saved."}}).afterClosed().subscribe(t=>{t&&history.back()}):history.back()}get formHasAnyValue(){return this.newCompanyInformationForm.legal_address.value||this.newCompanyInformationForm.legal_name.value||this.newCompanyInformationForm.vat_number.value||this.newCompanyInformationForm.country.value||this.newCompanyInformationForm.registration_number.value||this.newCompanyInformationForm.city.value||this.newCompanyInformationForm.post_code.value}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(Pi.p),e.Y36(q.W),e.Y36(te.b),e.Y36(Si.d),e.Y36(x.F0),e.Y36(ae.P),e.Y36($.uw),e.Y36(Q.b))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-change-company-information-ticket"]],viewQuery:function(t,n){if(1&t&&e.Gf(Ni,5),2&t){let a;e.iGM(a=e.CRH())&&(n.contactForm=a.first)}},decls:97,vars:19,consts:function(){let i,t,n,a,_,s,c,p,g,u,d,O,b,v,P,U,D,S,m,M,K,N,h,oe,ie;return i="You can request company details change within this ticket. Please provide supportive documents proving details change if possible. Our team will review " + "\ufffd#8\ufffd\ufffd/#8\ufffd" + " required changes and will contact you in case of additional questions.",t="Please enter new values for the fields you want to change:",n="Company Name:",a="Registration \u2116:",_="VAT \u2116:",s="Legal Address:",c="Country:",p="City:",g="Post Code:",u="Leave your comment",d="Attach screenshots or other files related to your request ",O="New value",b="New value",v="New value",P="New value",U="New value",D="New value",S="New value",m="Comment",M=" Attach Files " + "\ufffd#83\ufffd\ufffd/#83\ufffd" + "",K="CANCEL",N="SAVE",h="change company information " + "\ufffd*3:1\ufffd\ufffd#1:1\ufffd" + "" + "\ufffd#2:1\ufffd" + "" + "\ufffd0:1\ufffd" + "" + "\ufffd/#2:1\ufffd" + "" + "\ufffd/#1:1\ufffd\ufffd/*3:1\ufffd" + "",oe="You can attach max 5 files",ie="To create a ticket, at least one field must be filled in",[[1,"header","flex"],[1,"capital-gothic","header-text"],h,[4,"ngIf"],[1,"breadcrumbs"],[1,"sub-text"],i,[1,"subtitle-text","capital-gothic"],t,[1,"forms"],[1,"current-data"],[1,"flex","align-center"],[1,"name"],n,[1,"value"],a,_,s,c,p,g,[1,"describe-text"],u,[1,"attach-files-descr"],d,[1,"new-data",3,"formGroup"],["floatLabel","never"],["matInput","","placeholder",O,"formControlName","legal_name"],["placeholder",b,"matInput","","formControlName","registration_number"],["matInput","","placeholder",v,"formControlName","vat_number"],["matInput","","placeholder",P,"formControlName","legal_address"],["placeholder",U,"matInput","","formControlName","country"],["matInput","","placeholder",D,"formControlName","city"],["matInput","","placeholder",S,"formControlName","post_code"],[1,"flex","comment"],m,["matInput","",2,"display","none"],[3,"control","label"],[1,"flex","files-wrapper"],["matTooltipPosition","above","matTooltipClass","attach-files-tooltip",1,"capital-gothic","margin-right","attach-files-text","pointer",3,"matTooltip","matTooltipDisabled","ngClass","click"],M,["multiple","","type","file","hidden","",3,"input"],["fileInput",""],["class","warning",4,"ngIf"],[1,"items-wrapper"],["class","file-data",4,"ngFor","ngForOf"],["class","absolute",4,"ngIf"],[3,"contactsType"],["contactForm",""],[1,"actions"],["mat-raised-button","","color","primary",1,"cancel",3,"click"],K,["mat-raised-button","","color","primary",1,"save",3,"click"],N,[1,"warning"],oe,[1,"file-data"],[1,"flex"],[1,"file-name","capital-gothic"],[1,"pointer",3,"click"],["class","flex progress-bar align-center",4,"ngIf"],[1,"size","capital-gothic"],[1,"flex","progress-bar","align-center"],["mode","determinate",3,"value"],[1,"capital-gothic"],[1,"absolute"],ie]},template:function(t,n){if(1&t){const a=e.EpF();e.TgZ(0,"div",0)(1,"p",1),e.tHW(2,2),e.YNc(3,Ii,3,1,"app-tooltip",3),e.N_p(),e.qZA(),e.TgZ(4,"div",4),e._UZ(5,"wo-breadcrumbs"),e.qZA()(),e.TgZ(6,"p",5),e.tHW(7,6),e._UZ(8,"br"),e.N_p(),e.qZA(),e.TgZ(9,"p",7),e.SDv(10,8),e.qZA(),e.TgZ(11,"div",9)(12,"div",10)(13,"div",11)(14,"p",12),e.SDv(15,13),e.qZA(),e.TgZ(16,"p",14),e._uU(17),e.qZA()(),e._UZ(18,"mat-divider"),e.TgZ(19,"div",11)(20,"p",12),e.SDv(21,15),e.qZA(),e.TgZ(22,"p",14),e._uU(23),e.qZA()(),e._UZ(24,"mat-divider"),e.TgZ(25,"div",11)(26,"p",12),e.SDv(27,16),e.qZA(),e.TgZ(28,"p",14),e._uU(29),e.qZA()(),e._UZ(30,"mat-divider"),e.TgZ(31,"div",11)(32,"p",12),e.SDv(33,17),e.qZA(),e.TgZ(34,"p",14),e._uU(35),e.qZA()(),e._UZ(36,"mat-divider"),e.TgZ(37,"div",11)(38,"p",12),e.SDv(39,18),e.qZA(),e.TgZ(40,"p",14),e._uU(41),e.qZA()(),e._UZ(42,"mat-divider"),e.TgZ(43,"div",11)(44,"p",12),e.SDv(45,19),e.qZA(),e.TgZ(46,"p",14),e._uU(47),e.qZA()(),e._UZ(48,"mat-divider"),e.TgZ(49,"div",11)(50,"p",12),e.SDv(51,20),e.qZA(),e.TgZ(52,"p",14),e._uU(53),e.qZA()(),e._UZ(54,"mat-divider"),e.TgZ(55,"p",21),e.SDv(56,22),e.qZA(),e.TgZ(57,"p",23),e.SDv(58,24),e.qZA()(),e.TgZ(59,"div",25)(60,"mat-form-field",26),e._UZ(61,"input",27),e.qZA(),e.TgZ(62,"mat-form-field",26),e._UZ(63,"input",28),e.qZA(),e.TgZ(64,"mat-form-field",26),e._UZ(65,"input",29),e.qZA(),e.TgZ(66,"mat-form-field",26),e._UZ(67,"input",30),e.qZA(),e.TgZ(68,"mat-form-field",26),e._UZ(69,"input",31),e.qZA(),e.TgZ(70,"mat-form-field",26),e._UZ(71,"input",32),e.qZA(),e.TgZ(72,"mat-form-field",26),e._UZ(73,"input",33),e.qZA(),e.TgZ(74,"div",34)(75,"p"),e.SDv(76,35),e.qZA(),e.TgZ(77,"mat-form-field",26),e._UZ(78,"textarea",36)(79,"custom-textarea",37),e.qZA()(),e.TgZ(80,"div",38)(81,"p",39),e.NdJ("click",function(){e.CHM(a);const s=e.MAs(84);return e.KtG(n.isFilesValid&&s.click())}),e.tHW(82,40),e.TgZ(83,"input",41,42),e.NdJ("input",function(s){return n.doFileInput(s)}),e.qZA(),e.N_p(),e.qZA(),e.YNc(85,hi,2,0,"p",43),e.YNc(86,Ai,2,1,"p",43),e.qZA(),e.TgZ(87,"div",44),e.YNc(88,Ri,9,3,"div",45),e.qZA()(),e.YNc(89,xi,2,0,"p",46),e.qZA(),e._UZ(90,"app-contact-form",47,48),e.TgZ(92,"div",49)(93,"button",50),e.NdJ("click",function(){return n.goBack()}),e.SDv(94,51),e.qZA(),e.TgZ(95,"button",52),e.NdJ("click",function(){return n.sendRequest()}),e.SDv(96,53),e.qZA()()}2&t&&(e.xp6(3),e.Q6J("ngIf",null==n.tooltipsService||null==n.tooltipsService.tooltips?null:n.tooltipsService.tooltips.new_change_company_information_ticket),e.xp6(14),e.Oqu(null==n.companyInformationForm.legal_name?null:n.companyInformationForm.legal_name.value),e.xp6(6),e.Oqu(null==n.companyInformationForm.registration_number?null:n.companyInformationForm.registration_number.value),e.xp6(6),e.Oqu(null==n.companyInformationForm.vat_number?null:n.companyInformationForm.vat_number.value),e.xp6(6),e.Oqu(null==n.companyInformationForm.legal_address?null:n.companyInformationForm.legal_address.value),e.xp6(6),e.Oqu(null==n.companyInformationForm.country?null:n.companyInformationForm.country.value),e.xp6(6),e.Oqu(null==n.companyInformationForm.city?null:n.companyInformationForm.city.value),e.xp6(6),e.Oqu(null==n.companyInformationForm.post_code?null:n.companyInformationForm.post_code.value),e.xp6(6),e.Q6J("formGroup",n.newCompanyInformationForm),e.xp6(20
1),e.Q6J("control",n.newCompanyInformationForm.comment)("label",n.textareaLabel),e.xp6(2),e.Q6J("matTooltip",n.tooltipText)("matTooltipDisabled",!n.isFilesValid)("ngClass",n.isFilesValid?"":"attach-disabled"),e.xp6(4),e.Q6J("ngIf",!n.isFilesValid),e.xp6(1),e.Q6J("ngIf",n.errorMessage),e.xp6(2),e.Q6J("ngForOf",n.showedFiles),e.xp6(1),e.Q6J("ngIf",n.required),e.xp6(1),e.Q6J("contactsType","commercial"))},dependencies:[T.mk,T.sg,T.O5,r.Fj,r.JJ,r.JL,r.sg,r.u,Y.K,Ie.U,z.g,B.d,y.lW,f.KE,Z.Nt,G.Hw,X.gM,W.pW,se],styles:["[_nghost-%COMP%]{display:block;padding:0 60px 40px 0}@media (max-width: 960px){[_nghost-%COMP%]{padding-right:1rem}}.forms[_ngcontent-%COMP%]{display:flex;position:relative;gap:100px}@media (max-width: 1180px){.forms[_ngcontent-%COMP%]{gap:40px}}@media (max-width: 960px){.forms[_ngcontent-%COMP%]{flex-wrap:wrap}}.new-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;background-color:#eaf2fc;width:53%;padding:12px 28px 40px}@media (max-width: 960px){.new-data[_ngcontent-%COMP%]{width:90%}}.new-data[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]{height:50px;padding-left:144px}.new-data[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{padding-left:10px}.new-data[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]     .mat-form-field-label{font-size:14px;margin-top:5px;margin-left:10px;font-family:Capital Gothic,sans-serif}.current-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding-top:10px;padding-bottom:10px;width:460px}.current-data[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{height:2.35rem}.name[_ngcontent-%COMP%]{width:200px;font-weight:700}.value[_ngcontent-%COMP%]{width:100%}mat-divider[_ngcontent-%COMP%]{height:1px;border-top-color:#000}.header[_ngcontent-%COMP%]{gap:10px}.header[_ngcontent-%COMP%]   .header-text[_ngcontent-%COMP%]{font-size:44px;font-style:normal;font-weight:700;line-height:43px;letter-spacing:.44px;text-transform:uppercase}.header[_ngcontent-%COMP%]   .header-text[_ngcontent-%COMP%]     app-tooltip .right{top:13px}.sub-text[_ngcontent-%COMP%]{margin-top:23px!important}.subtitle-text[_ngcontent-%COMP%]{margin-top:40px!important;margin-bottom:40px!important;font-size:14px;font-style:normal;font-weight:400;line-height:normal;text-transform:uppercase}.comment[_ngcontent-%COMP%]{margin-top:20px;align-items:flex-end;gap:85px!important}.comment[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]{padding-left:0;width:100%;height:-moz-fit-content;height:fit-content}.comment[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]{height:65px!important;border:#E0E0E0 1px solid!important;padding:10px;resize:none;box-sizing:border-box}.comment[_ngcontent-%COMP%]     .mat-form-field-underline{display:none}.comment[_ngcontent-%COMP%]     .mat-form-field-label{margin-top:40px!important}.comment[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{padding-bottom:22px}.breadcrumbs[_ngcontent-%COMP%]{width:300px}.attach-files-text[_ngcontent-%COMP%]{color:#144a90;text-transform:uppercase;font-size:14px;margin-top:18px!important;width:-moz-fit-content;width:fit-content}.describe-text[_ngcontent-%COMP%]{margin-top:93px!important}.attach-files-descr[_ngcontent-%COMP%]{margin-top:50px!important}.contacts[_ngcontent-%COMP%]{width:90%;margin-top:80px}.contacts[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-size:30px;font-style:normal;font-weight:700;letter-spacing:.3px;padding-left:28px}.contacts[_ngcontent-%COMP%]   .pink-divider[_ngcontent-%COMP%]{margin-top:20px;background-color:#d6117f;height:2px;border:none;margin-bottom:40px}.contacts[_ngcontent-%COMP%]   .emails-form[_ngcontent-%COMP%]{background-color:#eaf2fc;align-items:center;padding:15px 28px;gap:54px}.contacts[_ngcontent-%COMP%]   .emails-form[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]{width:68%}.contacts[_ngcontent-%COMP%]   .emails-form[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{padding-left:10px}.contacts[_ngcontent-%COMP%]   .emails-form[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]     .mat-form-field-label{font-size:14px;margin-top:5px;margin-left:10px;font-family:Capital Gothic,sans-serif}.contacts[_ngcontent-%COMP%]   .emails[_ngcontent-%COMP%]{min-width:590px;box-sizing:border-box}.contacts[_ngcontent-%COMP%]   .emails[_ngcontent-%COMP%]   .default-emails[_ngcontent-%COMP%]{border-bottom:1px solid black;padding-bottom:20px;margin-bottom:40px;gap:20px}.contacts[_ngcontent-%COMP%]   .emails[_ngcontent-%COMP%]   .default-emails[_ngcontent-%COMP%]   .email-value[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:10px}.contacts[_ngcontent-%COMP%]   .emails[_ngcontent-%COMP%]   .default-emails[_ngcontent-%COMP%]   .default-emails__description[_ngcontent-%COMP%]{font-weight:700;padding-left:28px;width:122px}.actions[_ngcontent-%COMP%]{display:flex;gap:55px;margin-top:40px;width:90%;justify-content:center;margin-bottom:60px}.actions[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:310px;height:50px;text-transform:uppercase;font-size:16px;font-style:normal;font-weight:700}.actions[_ngcontent-%COMP%]   .cancel[_ngcontent-%COMP%]{background-color:#4698ff;color:#fff}
1.actions[_ngcontent-%COMP%]   .save[_ngcontent-%COMP%]{background-color:#144a90}.describe[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:flex-end;padding-bottom:30px;gap:65px}.wrapper[_ngcontent-%COMP%]{gap:50px}.items-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;row-gap:8px;margin-top:10px}  .attach-files-tooltip{padding:19px!important;width:225px;border-radius:0!important;background-color:#fff!important;border-top:2px solid #D6117F;color:#000!important;font-size:12px!important;font-style:normal;font-weight:400}.file-data[_ngcontent-%COMP%]{display:flex;align-items:center;gap:14px}.file-data[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin-left:14px;color:#e0e0e0;font-size:19px;width:-moz-fit-content;width:fit-content;height:-moz-fit-content;height:fit-content}.file-data[_ngcontent-%COMP%]   .size[_ngcontent-%COMP%]{font-size:12px;color:#000;text-align:right}.file-data[_ngcontent-%COMP%]   .file-name[_ngcontent-%COMP%]{color:#144a90;width:270px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.progress-bar[_ngcontent-%COMP%]{width:170px}.progress-bar[_ngcontent-%COMP%]   mat-progress-bar[_ngcontent-%COMP%]{background-color:#144a90;margin-right:10px}.progress-bar[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:#144a90}.close[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;color:#e0e0e0;cursor:pointer}.warning[_ngcontent-%COMP%]{color:#d6117f;font-size:12px}.files-wrapper[_ngcontent-%COMP%]{align-items:flex-end;gap:20px}.attach-disabled[_ngcontent-%COMP%]{color:#d9d9d9}.absolute[_ngcontent-%COMP%]{position:absolute;width:90%;bottom:-45px;display:flex;align-items:center;justify-content:center;color:#d6117f;font-size:14px;text-transform:uppercase}[_nghost-%COMP%]     #contentEditableDiv{height:60px!important}[_nghost-%COMP%]     #editableP{max-height:40px!important}[_nghost-%COMP%]     .comment .mat-form-field-wrapper{padding-bottom:0}"]}),o})();class vi extends J.I{constructor(){super({}),this.addControl("period",new r.NI("",r.kI.required)),this.addControl("subject",new r.NI("",r.kI.required)),this.addControl("request",new r.NI("")),this.addControl("files",new r.NI([]))}get period(){return this.controls.period}get subject(){return this.controls.subject}get request(){return this.controls.request}get files(){return this.controls.files}}var Ui=l(95399),Di=l(56463),De=l(91998),$i=l(85866),$e=l(40833);function ye(o,i){(0,$e.Z)(2,arguments);var t=(0,De.Z)(i);return(0,$i.Z)(o,12*t)}function wi(o,i){if(1&o&&(e.TgZ(0,"p",14),e.SDv(1,15),e.ALo(2,"date"),e.qZA()),2&o){const t=e.oxw();e.xp6(2),e.pQV(t.selectedMonths[0]?e.xi3(2,1,t.format(t.selectedMonths[0],"MMMM yyyy"),"MMMM yyyy"):""),e.QtT(1)}}function ki(o,i){1&o&&e._UZ(0,"div",16)}const Li=function(o,i,t){return{selected:o,"after-today":i,"date-now":t}};function Gi(o,i){if(1&o){const t=e.EpF();e.TgZ(0,"div",17),e.NdJ("click",function(){const _=e.CHM(t).$implicit,s=e.oxw();return e.KtG(s.selectDate(_))}),e._uU(1),e.qZA()}if(2&o){const t=i.$implicit,n=e.oxw();e.Q6J("ngClass",e.kEZ(2,Li,n.isDateSelected(t.date),n.isDateAfterToday(t.date),n.format(n.dateNow,"MMMM yyyy")===n.format(t.date,"MMMM yyyy"))),e.xp6(1),e.hij(" ",t.name," ")}}function Zi(o,i){1&o&&(e.TgZ(0,"div")(1,"p",27),e.SDv(2,28),e.qZA()())}function qi(o,i){if(1&o){const t=e.EpF();e.TgZ(0,"div",29)(1,"mat-icon",30),e.NdJ("click",function(){const _=e.CHM(t).$implicit,s=e.oxw(2);return e.KtG(s.tryToDeleteMonth(_))}),e._uU(2,"close"),e.qZA(),e.TgZ(3,"p",27),e._uU(4),e.ALo(5,"date"),e.qZA()()}if(2&o){const t=i.$implicit,n=e.oxw(2);e.xp6(4),e.Oqu(e.xi3(5,1,n.format(t,"MMMM yyyy"),"MMM yyyy"))}}function Ki(o,i){if(1&o){const t=e.EpF();e.TgZ(0,"div",18)(1,"div",19),e.YNc(2,Zi,3,0,"div",20),e.YNc(3,qi,6,4,"div",21),e.qZA(),e.TgZ(4,"div",22)(5,"span",23),e.NdJ("click",function(){e.CHM(t);const a=e.oxw();return e.KtG(a.cancel())}),e.SDv(6,24),e.qZA(),e.TgZ(7,"span",25),e.NdJ("click",function(){e.CHM(t);const a=e.oxw();return e.KtG(a.apply())}),e.SDv(8,26),e.qZA()()()}if(2&o){const t=e.oxw();e.xp6(2),e.Q6J("ngIf",t.selectedMonths.length<1),e.xp6(1),e.Q6J("ngForOf",t.selectedMonths)}}function Yi(o,i){if(1&o){const t=e.EpF();e.TgZ(0,"div",31)(1,"span",23),e.NdJ("click",function(){e.CHM(t);const a=e.oxw();return e.KtG(a.cancel())}),e.SDv(2,32),e.qZA(),e.TgZ(3,"span",25),e.NdJ("click",function(){e.CHM(t);const a=e.oxw();return e.KtG(a.apply())}),e.SDv(4,33),e.qZA()()}}let he=(()=>{class o{constructor(){this.type="multiply",this.dateRangeChanged=new e.vpe,this.year=[],this.currentDate=new Date,this.dateNow=new Date,this.selectedMonths=[],this.calendarMode="month",this.format=I.Z}
1ngOnInit(){this.generateCalendar(),"single"==this.type&&this.selectedMonths.push((0,Di.Z)(this.currentDate,1))}generateCalendar(t=this.currentDate.getFullYear()){const n=["JAN","FEB","MAR","APR","MAY","JUN","JUL","AUG","SEP","OCT","NOV","DEC"],a=[];for(let _=0;_<12;_++){const s=new Date(t,_,1);a.push({date:s,name:n[_]})}this.year=a}generateYearsCalendar(){const t=[];for(let n=(new Date).getFullYear()-11;n<(new Date).getFullYear()+1;n++)t.push({name:n,date:new Date(n,0,1)});this.year=t}selectDate(t){if(!this.isDateAfterToday(t.date)){if("year"===this.calendarMode)return this.currentDate=t.date,this.calendarMode="month",void this.generateCalendar(this.currentDate.getFullYear());"single"===this.type&&(this.selectedMonths.length=0),this.tryToDeleteMonth(t.date)&&this.selectedMonths.push(t.date)}}get yearsRange(){return"year"===this.calendarMode?`${(new Date).getFullYear()-11} - ${(new Date).getFullYear()}`:this.currentDate.getFullYear()}tryToDeleteMonth(t){return!this.selectedMonths.some(n=>(0,I.Z)(n,"MM/yyyy")===(0,I.Z)(t,"MM/yyyy"))||(this.selectedMonths=this.selectedMonths.filter(n=>(0,I.Z)(n,"MM/yyyy")!==(0,I.Z)(t,"MM/yyyy")),!1)}isDateAfterToday(t){if("single"==this.type){let n=new Date,a=n.getFullYear(),_=n.getMonth();return t.getFullYear()>a||t.getFullYear()===a&&t.getMonth()>=_}return t>new Date}isDateSelected(t){return this.selectedMonths.some("year"===this.calendarMode?n=>(0,I.Z)(n,"yyyy")===(0,I.Z)(t,"yyyy"):n=>(0,I.Z)(n,"MM/yyyy")===(0,I.Z)(t,"MM/yyyy"))}nextYear(){"year"!==this.calendarMode?(this.currentDate=ye(this.currentDate,1),this.generateCalendar()):this.generateYearsCalendar()}prevYear(){"year"!==this.calendarMode?(this.currentDate=function yi(o,i){(0,$e.Z)(2,arguments);var t=(0,De.Z)(i);return ye(o,-t)}(this.currentDate,1),this.generateCalendar()):this.generateYearsCalendar()}apply(){this.dateRangeChanged.emit(this.selectedMonths)}cancel(){this.selectedMonths=[]}}return o.\u0275fac=function(t){return new(t||o)}
1,o.\u0275cmp=e.Xpm({type:o,selectors:[["app-custom-year-date-picker"]],inputs:{type:"type"},outputs:{dateRangeChanged:"dateRangeChanged"},decls:16,vars:6,consts:function(){let i,t,n,a,_,s;return i="Last day of " + "\ufffd0\ufffd" + "",t="CLEAR ALL",n="APPLY",a="Select Periods",_="CLEAR ALL",s="APPLY",[[1,"date-picker__period-selector"],[1,"calendar"],["class","selected-month",4,"ngIf"],[1,"header"],[1,"arrow-container",3,"click"],["class","arrow",4,"ngIf"],[1,"capital-gothic"],[1,"controls"],[1,"control",3,"click"],[1,"control","right-control",3,"click"],[1,"year"],["class","month capital-gothic",3,"ngClass","click",4,"ngFor","ngForOf"],["class","selectors",4,"ngIf"],["class","actions single",4,"ngIf"],[1,"selected-month"],i,[1,"arrow"],[1,"month","capital-gothic",3,"ngClass","click"],[1,"selectors"],[1,"month-container"],[4,"ngIf"],["class","flex align-center",4,"ngFor","ngForOf"],[1,"actions"],[1,"cancel-button","capital-gothic",3,"click"],t,[1,"apply","capital-gothic",3,"click"],n,[1,"capital-gothic","month-name"],a,[1,"flex","align-center"],[1,"pointer",3,"click"],[1,"actions","single"],_,s]},template:function(t,n){1&t&&(e.TgZ(0,"div",0)(1,"div",1),e.YNc(2,wi,3,4,"p",2),e.TgZ(3,"div",3)(4,"div")(5,"div",4),e.NdJ("click",function(){return n.generateYearsCalendar(),n.calendarMode="year"}),e.YNc(6,ki,1,0,"div",5),e.TgZ(7,"p",6),e._uU(8),e.qZA()()(),e.TgZ(9,"div",7)(10,"div",8),e.NdJ("click",function(){return n.prevYear()}),e.qZA(),e.TgZ(11,"div",9),e.NdJ("click",function(){return n.nextYear()}),e.qZA()()(),e.TgZ(12,"div",10),e.YNc(13,Gi,2,6,"div",11),e.qZA()(),e.YNc(14,Ki,9,2,"div",12),e.qZA(),e.YNc(15,Yi,5,0,"div",13)),2&t&&(e.xp6(2),e.Q6J("ngIf","single"===n.type),e.xp6(4),e.Q6J("ngIf","month"==n.calendarMode),e.xp6(2),e.Oqu(n.yearsRange),e.xp6(5),e.Q6J("ngForOf",n.year),e.xp6(1),e.Q6J("ngIf","multiply"===n.type),e.xp6(1),e.Q6J("ngIf","single"===n.type))},dependencies:[T.mk,T.sg,T.O5,G.Hw,T.uU],styles:[".calendar[_ngcontent-%COMP%]{text-align:center;border:1px solid #ccc;max-width:430px;height:-moz-fit-content;height:fit-content;padding:0 22px;background-color:#eaf2fc}.header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;padding-left:10px;border-bottom:1px solid black;position:relative;align-items:flex-end}.month[_ngcontent-%COMP%]{flex:1;width:44px;height:44px;display:flex;color:#144a90;justify-content:center;align-items:center;cursor:pointer;font-size:14px}.year[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:56px;padding:10px 34px}.date-picker__period-selector[_ngcontent-%COMP%]{display:flex;height:350px}.selectors[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin-left:10px;width:220px;margin-top:29px}.selectors[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:#e0e0e0;font-size:19px;width:-moz-fit-content;width:fit-content;height:-moz-fit-content;height:fit-content}.selectors[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{padding-left:10px}.selectors[_ngcontent-%COMP%]   .month-name[_ngcontent-%COMP%]{font-size:14px;font-style:normal;font-weight:400;line-height:normal;text-transform:uppercase;color:#144a90;line-height:40px}.selected[_ngcontent-%COMP%]{background-color:#144a90;color:#fff}.day-name[_ngcontent-%COMP%]{color:#144a90;cursor:auto!important}.mode-name[_ngcontent-%COMP%]{color:#144a90}.uppercase[_ngcontent-%COMP%]{text-transform:uppercase;position:absolute;top:23px;left:10px}.controls[_ngcontent-%COMP%]{display:flex;align-items:center;gap:5px;margin-bottom:16px}.controls[_ngcontent-%COMP%]   .control[_ngcontent-%COMP%]{width:16px;height:20px;background-color:#144a90;-webkit-mask:url(/assets/pic/small-vector.svg) no-repeat center;mask:url(/assets/pic/small-vector.svg) no-repeat center;cursor:pointer}.controls[_ngcontent-%COMP%]   .right-control[_ngcontent-%COMP%]{transform:rotate(180deg)}.actions[_ngcontent-%COMP%]{display:flex;margin-top:auto;justify-content:center;gap:50px}.actions[_ngcontent-%COMP%]   .cancel-button[_ngcontent-%COMP%]{color:#1a1b1d;cursor:pointer}.actions[_ngcontent-%COMP%]   .apply[_ngcontent-%COMP%]{color:#144a90;cursor:pointer}.out-of-month[_ngcontent-%COMP%]{cursor:auto!important}.after-today[_ngcontent-%COMP%]{cursor:auto!important;color:#d9d9d9!important}.date-now[_ngcontent-%COMP%]{border:1px solid black!important}.month-container[_ngcontent-%COMP%]{margin-top:18px;height:245px;overflow-y:auto}[_ngcontent-%COMP%]::-webkit-scrollbar{width:2px;height:2px;background-color:#fff;padding:0 4px}[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:rgb(230,230,230)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#BBBBBB;border-radius:0}.single[_ngcontent-%COMP%]{justify-content:flex-start;margin-top:45px}.selected-month[_ngcontent-%COMP%]{color:#144a90;display:flex;justify-content:flex-end;padding-top:10px}"]}),o})();const zi=["contactForm"];function Qi(o,i){if(1&o&&(e.tHW(0,3,1),e.TgZ(1,"app-tooltip"),e._UZ(2,"p"),e.qZA(),e.N_p()),2&o){const t=e.oxw();e.xp6(2),e.pQV(t.tooltipsService.tooltips.new_request_statement_of_account_ticket),e.QtT(0)}}function Xi(o,i){if(1&o&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&o){const t=i.$implicit;e.xp6(1),e.Oqu(t)}}function Bi(o,i){if(1&o&&(e.TgZ(0,"p",55),e.SDv(1,56),e.qZA()),2&o){const t=e.oxw();e.Q6J("ngClass",t.periodsRequired?"error-color-text":"")}}function Ji(o,i){1&o&&(e.TgZ(0,"mat-error"),e.SDv(1,57),e.qZA())}function Vi(o,i){1&o&&(e.TgZ(0,"p",58),e.SDv(1,59),e.qZA())}function Hi(o,i){1&o&&(e.TgZ(0,"p",60),e.SDv(1,61),e.qZA())}function ji(o,i){if(1&o&&(e.TgZ(0,"p",60),e._uU(1),e.qZA()),2&o){const t=e.oxw();e.xp6(1),e.Oqu(t.errorMessage)}}function Wi(o,i){if(1&o&&(e.TgZ(0,"div",68),e._UZ(1,"mat-progress-bar",69),e.TgZ(2,"p",70),e._uU(3),e.qZA()()),2&o){const t=e.oxw().index,n=e.oxw();e.xp6(1),e.Q6J("value",n.showedFiles[t].percentage),e.xp6(2),e.hij("",n.showedFiles[t].percentage,"%")}}function e_(o,i){if(1&o){const t=e.EpF();e.TgZ(0,"div",62)(1,"div",63)(2,"p",64),e._uU(3),e.qZA(),e.TgZ(4,"mat-icon",65),e.NdJ("click",function(){const _=e.CHM(t).index,s=e.oxw();return e.KtG(s.deleteFile(_))}),e._uU(5,"close"),e.qZA()(),e.YNc(6,Wi,4,2,"div",66),e.TgZ(7,"p",67),e._uU(8),e.qZA()()}if(2&o){const t=i.index,n=e.oxw();e.xp6(3),e.Oqu(n.getFileNameFromForm(t)),e.xp6(3),e.Q6J("ngIf",n.showedFiles[t].isUploading),e.xp6(2),e.hij("",n.getFileSizeFromForm(t)," MB")}
1}let t_=(()=>{class o{constructor(t,n,a,_,s,c,p){this.getCompanyContactsUseCase=t,this.breadcrumbs=n,this.sendFileUsecase=a,this.modal=_,this.sendRequestStatementOfAccountUsecase=s,this.router=c,this.tooltipsService=p,this.requestStatementOfAccountForm=new vi,this.periodsRequired=!1,this.textareaLabel="Describe your request",this.defaultEmails=[],this.showedFiles=[],this.menuOpened=!1,this.errorMessage="",this.tooltipText="You can attach max 5 files each below 25Mb. ( .doc, .docx, .txt, .rtf, .xls, .xlsx, .pdf, .csv, .png, .jpg, .jpeg, .tiff, .gif, .zip, .rar, .tar, .gz, .pcap, .cap )",this.format=I.Z}ngOnInit(){this.setUpBreadcrumbLinks(),this.getCompanyContactsUseCase.execute("commercial").subscribe(t=>{this.defaultEmails=t})}setUpBreadcrumbLinks(){this.breadcrumbs.setLinks([{route:"/",text:"HOME"},{route:"/main/support",text:"SUPPORT"},{route:"/main/support/tickets",text:"BILLING TICKETS"},{text:"REQUEST STATEMENT OF ACCOUNT"}])}doFileInput(t){const n=t.target.files;if(n&&!(n.length<1)){this.errorMessage="";for(let a=0;a<n.length;a++){const _=n[a];if(!this.isFilesValid)break;if(_.size>26214400)return void(this.errorMessage="File size should be less than 25MB");if(!_.type)return void(this.errorMessage="File type is not allowed");{const s=_.type.split("/")[1];if(!["doc","docx","txt","rtf","xls","xlsx","pdf","csv","png","jpg","jpeg","tiff","gif","zip","rar","tar","gz","pcap","cap","vnd.openxmlformats-officedocument.spreadsheetml.sheet","vnd.openxmlformats-officedocument.wordprocessingml.document"].includes(s))return void(this.errorMessage="File type " + s + " is not allowed")}this.showedFiles.push({name:_.name,size:_.size,percentage:0,isUploading:!1}),this.sendFile(_,this.showedFiles.length-1)}t.target.value=null}}get isFilesValid(){return this.showedFiles.length<5}getFileNameFromForm(t){return this.showedFiles[t]?.name||""}getFileSizeFromForm(t){return Math.ceil((this.showedFiles[t]?.size||0)/1048576)||0}deleteFile(t){this.requestStatementOfAccountForm.files.value.splice(t,1),this.requestStatementOfAccountForm.files.value.splice(t,1),this.showedFiles.splice(t,1)}sendFile(t,n){const a=new FormData;a.append("file",t,t.name),this.showedFiles[n].percentage=0,this.showedFiles[n].isUploading=!0,this.sendFileUsecase.execute(a,"TICKET").pipe((0,H.U)(_=>{_.type===w.dt.UploadProgress?this.showedFiles[n].percentage=Math.round(100/_.total*_.loaded):_.type===w.dt.Response&&(this.showedFiles[n].isUploading=!1,this.requestStatementOfAccountForm.files.value[n]=_.body,this.requestStatementOfAccountForm.files.value[n]=_.body)}),(0,ee.K)(_=>(this.showedFiles[n].percentage=0,this.showedFiles[n].isUploading=!1,(0,j._)(_.message)))).subscribe()}setDate(t){this.periodsRequired=!t.length,this.matMenuTrigger.closeMenu(),this.requestStatementOfAccountForm.period.setValue(t.flatMap(n=>(0,I.Z)(n,"MMMM yyyy")))}cancel(){this.requestStatementOfAccountForm.touched||this.contactForm.contactForm.dirty||this.requestStatementOfAccountForm.period.value?this.modal.open(ne.S,{panelClass:"general-information-popup",data:{text:"Are you sure you want to <span class=\"dedicated-text\">cancel</span>?<br> Entered data will not be saved."}}).afterClosed().subscribe(t=>{t&&history.back()}):history.back()}sendRequest(){this.checkValidity()&&this.requestStatementOfAccountForm.markAllAsTouched(),this.requestStatementOfAccountForm.valid&&this.sendRequestStatementOfAccountUsecase.execute({...this.requestStatementOfAccountForm.value,period:this.requestStatementOfAccountForm.period.value[0],emails:this.contactForm.emails}).subscribe(t=>{this.router.navigate(["/main/support/tickets/"+t.ticketId],{queryParams:{status:"created"}})})}checkValidity(){return 0===this.requestStatementOfAccountForm.period.value.length?(this.requestStatementOfAccountForm.markAllAsTouched(),this.contactForm.checkEmailValidity(),this.periodsRequired=!0,!1):!!this.contactForm.checkEmailValidity()}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(ae.P),e.Y36(q.W),e.Y36(te.b),e.Y36($.uw),e.Y36(Ui.A),e.Y36(x.F0),e.Y36(Q.b))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-request-statement-of-account"]],viewQuery:function(t,n){if(1&t&&(e.Gf(F.p6,5),e.Gf(zi,5)),2&t){let a;e.iGM(a=e.CRH())&&(n.matMenuTrigger=a.first),e.iGM(a=e.CRH())&&(n.contactForm=a.first)}},decls:63,vars:20,consts:function(){let i,t,n,a,_,s,c,p,g,u,d,O,b,v,P,U,D,S,m;return i="You can request your company Statement of Account within this ticket. Please note it can only be generated as of the last day of relevant period. Our team will prepare requested information and send it to you as soon as possible, but it may take up to several days.",t="Please fill in the form below:",n="Statement of account as of\xA0*",a="This field is required",_="Select end day of the peri
1od that you would like to review",s="Subject *",c="Type the subject",p=" Briefly describe the subject of your appeal, so that it can be easily identified from the title later on",g="Comment",u="Leave your comment",d=" Attach Files " + "\ufffd#48\ufffd\ufffd/#48\ufffd" + "",O="Attach screenshots or other files related to your request",b="CANCEL",v="SAVE",P="Request Statement Of Account " + "\ufffd*4:1\ufffd\ufffd#1:1\ufffd" + "" + "\ufffd#2:1\ufffd" + "" + "\ufffd0:1\ufffd" + "" + "\ufffd/#2:1\ufffd" + "" + "\ufffd/#1:1\ufffd\ufffd/*4:1\ufffd" + "",U="Select period",D="This field is required ",S="This field is required",m="You can attach max 5 files",[[1,"main-wrapper"],[1,"header","flex"],[1,"capital-gothic","header-text"],P,[4,"ngIf"],[1,"breadcrumbs"],[1,"sub-text"],i,[1,"subtitle-text","capital-gothic"],t,[1,"flex","wrapper"],[1,"form_fields",3,"formGroup"],[1,"flex","property","field"],[1,"fields-name"],n,[1,"periods","pointer",3,"matMenuTriggerFor","ngClass","menuOpened","menuClosed"],[1,"periods-list","pointer"],[4,"ngFor","ngForOf"],["class","disabled",3,"ngClass",4,"ngIf"],[1,"pointer","small-arrow",3,"ngClass"],[1,"required-error",3,"ngClass"],a,["xPosition","after","yPosition","above",1,"date-menu"],["dateMenu","matMenu"],[3,"type","dateRangeChanged","click"],[1,"field-describe"],_,[1,"flex","property","align-center"],s,["floatLabel","never"],["matInput","","placeholder",c,"formControlName","subject"],[1,"field-describe","up"],p,[1,"flex","property","comment"],g,["matInput","",2,"display","none"],[3,"control","label"],["class","error",4,"ngIf"],u,[1,"flex","property","files-wrapper"],["matTooltipPosition","above","matTooltipClass","attach-files-tooltip",1,"capital-gothic","margin-right","attach-files-text","pointer",3,"matTooltip","matTooltipDisabled","ngClass","click"],d,["multiple","","type","file","hidden","",3,"input"],["fileInput",""],["class","warning",4,"ngIf"],O,[1,"items-wrapper"],["class","file-data",4,"ngFor","ngForOf"],[3,"contactsType"],["contactForm",""],[1,"actions"],["mat-raised-button","","color","primary",1,"cancel",3,"click"],b,["mat-raised-button","","color","primary",1,"save",3,"click"],v,[1,"disabled",3,"ngClass"],U,D,[1,"error"],S,[1,"warning"],m,[1,"file-data"],[1,"flex"],[1,"file-name","capital-gothic"],[1,"pointer",3,"click"],["class","flex progress-bar align-center",4,"ngIf"],[1,"size","capital-gothic"],[1,"flex","progress-bar","align-center"],["mode","determinate",3,"value"],[1,"capital-gothic"]]},template:function(t,n){if(1&t){const a=e.EpF();e.TgZ(0,"div",0)(1,"div",1)(2,"p",2),e.tHW(3,3),e.YNc(4,Qi,3,1,"app-tooltip",4),e.N_p(),e.qZA(),e.TgZ(5,"div",5),e._UZ(6,"wo-breadcrumbs"),e.qZA()(),e.TgZ(7,"p",6),e.SDv(8,7),e.qZA(),e.TgZ(9,"p",8),e.SDv(10,9),e.qZA(),e.TgZ(11,"div",10)(12,"div",11)(13,"div",12)(14,"p",13),e.SDv(15,14),e.qZA(),e.TgZ(16,"div",15),e.NdJ("menuOpened",function(){return n.menuOpened=!0})("menuClosed",function(){return n.menuOpened=!1}),e.TgZ(17,"div",16),e.YNc(18,Xi,2,1,"p",17),e.YNc(19,Bi,2,1,"p",18),e.qZA(),e._UZ(20,"div",19),e.TgZ(21,"p",20),e.SDv(22,21),e.qZA()(),e.TgZ(23,"mat-menu",22,23)(25,"app-custom-year-date-picker",24),e.NdJ("dateRangeChanged",function(s){return n.setDate(s)})("click",function(s){return s.stopPropagation()}),e.qZA()(),e.TgZ(26,"p",25),e.SDv(27,26),e.qZA()(),e.TgZ(28,"div",27)(29,"p",13),e.SDv(30,28),e.qZA(),e.TgZ(31,"mat-form-field",29),e._UZ(32,"input",30),e.YNc(33,Ji,2,0,"mat-error",4),e.qZA(),e.TgZ(34,"p",31),e.SDv(35,32),e.qZA()(),e.TgZ(36,"div",33)(37,"p",13),e.SDv(38,34),e.qZA(),e.TgZ(39,"mat-form-field",29),e._UZ(40,"textarea",35)(41,"custom-textarea",36),e.YNc(42,Vi,2,0,"p",37),e.qZA(),e.TgZ(43,"p",25),e.SDv(44,38),e.qZA()(),e.TgZ(45,"div",39)(46,"p",40),e.NdJ("click",function(){e.CHM(a);const s=e.MAs(49);return e.KtG(n.isFilesValid&&s.click())}),e.tHW(47,41),e.TgZ(48,"input",42,43),e.NdJ("input",function(s){return n.doFileInput(s)}),e.qZA(),e.N_p(),e.qZA(),e.YNc(50,Hi,2,0,"p",44),e.YNc(51,ji,2,1,"p",44),e.TgZ(52,"p",25),e.SDv(53,45),e.qZA()(),e.TgZ(54,"div",46),e.YNc(55,e_,9,3,"div",47),e.qZA()()(),e._UZ(56,"app-contact-form",48,49),e.TgZ(58,"div",50)(59,"button",51),e.NdJ("click",function(){return n.cancel()}),e.SDv(60,52),e.qZA(),e.TgZ(61,"button",53),e.NdJ("click",function(){return n.sendRequest()}),e.SDv(62,54),e.qZA()()()}if(2&t){const a=e.MAs(24);e.xp6(4),e.Q6J("ngIf",null==n.tooltipsService||null==n.tooltipsService.tooltips?null:n.tooltipsService.tooltips.new_request_statement_of_account_ticket),e.xp6(8),e.Q6J("formGroup",n.requestStatementOfAccountForm),e.xp6(4),e.Q6J("matMenuTriggerFor",a)("ngClass",n.periodsRequired?"error-line":""),e.xp6(2),e.Q6J("ngForOf",n.requestStatementOfAccountForm.period.value),e.xp6(1),e.Q6J("ngIf",!n.requestStatementOfAccountForm.period.value.length),e.xp6(1),e.Q6J("ngClass",n.periodsRequired?"error-arrow":""),e.xp6(1),e.Q6J("ngClass",n.periodsRequired?"error-text":""),e.xp6(4),e.Q6J("type","single"),e.xp6(8),e.Q6J("ngIf",n.requestStatementOfAccountForm.subject.hasError("required")),e.xp6(8),e.Q6J("control",n.requestStatementOfAccountForm.request)("label",n.textareaLabel),e.xp6(1),e.Q6J("ngIf",n.requestStatementOfAccountForm.request.touched&&(null==n.requestStatementOfAccountForm.request?null:n.requestStatementOfAccountForm.request.errors)&&(null==n.requestStatementOfAccountForm.request?null:n.requestStatementOfAccountForm.request.errors.required)),e.xp6(4),e.Q6J("matTooltip",n.tooltipText)("matTooltipDisabled",!n.isFilesValid)("ngClass",n.isFilesValid?"":"attach-disabled"),e.xp6(4),e.Q6J("ngIf",!n.isFilesValid),e.xp6(1),e.Q6J("ngIf",n.errorMessage),e.xp6(4),e.Q6J("ngForOf",n.showedFiles),e.xp6(1),e.Q6J("contactsType","commercial")}},dependencies:[T.mk,T.sg,T.O5,r.Fj,r.JJ,r.JL,r.sg,r.u,Y.K,he,Ie.U,z.g,y.lW,F.VK,F.p6,f.TO,f.KE,Z.Nt,G.Hw,X.gM,W.pW,se],styles:["[_nghost-%COMP%]{display:block;padding:0 60px 40px 0}@media (max-width: 960px){[_nghost-%COMP%]{padding-right:1rem}}.actions[_ngcontent-%COMP%]{display:flex;gap:55px;margin-top:40px;width:90%;justify-content:center;margin-bottom:60px}.actions[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:310px;height:50px;text-transform:uppercase;font-size:16px;font-style:normal;font-weight:700}.actions[_ngcontent-%COMP%]   .cancel[_ngcontent-%COMP%]{background-color:#4698ff;color:#fff}
1.actions[_ngcontent-%COMP%]   .save[_ngcontent-%COMP%]{background-color:#144a90}.wrapper[_ngcontent-%COMP%]{gap:50px}.header[_ngcontent-%COMP%]{gap:10px}.header[_ngcontent-%COMP%]   .header-text[_ngcontent-%COMP%]{font-size:44px;font-style:normal;font-weight:700;line-height:43px;letter-spacing:.44px;text-transform:uppercase}.header[_ngcontent-%COMP%]   .header-text[_ngcontent-%COMP%]     app-tooltip .right{top:13px}.sub-text[_ngcontent-%COMP%]{margin-top:23px!important}.subtitle-text[_ngcontent-%COMP%]{margin-top:40px!important;margin-bottom:40px!important;font-size:14px;font-style:normal;font-weight:400;line-height:normal;text-transform:uppercase}.form_fields[_ngcontent-%COMP%]{background-color:#eaf2fc;padding:20px 28px 40px;min-width:590px;box-sizing:border-box}@media (max-width: 1440px){.form_fields[_ngcontent-%COMP%]{min-width:unset;width:40vw}}@media (max-width: 1180px){.form_fields[_ngcontent-%COMP%]{padding:50px 12px 40px}}.form_fields[_ngcontent-%COMP%]   .fields-name[_ngcontent-%COMP%]{width:175px}.form_fields[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]{width:100%}.form_fields[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{padding-left:10px}.form_fields[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]     .mat-form-field-label{margin-left:10px!important}.form_fields[_ngcontent-%COMP%]   .comment[_ngcontent-%COMP%]{margin-top:20px;align-items:flex-end}.form_fields[_ngcontent-%COMP%]   .comment[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]{padding-left:0;width:100%;height:-moz-fit-content;height:fit-content}.form_fields[_ngcontent-%COMP%]   .comment[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]{height:65px!important;border:#E0E0E0 1px solid!important;padding:10px;resize:none;box-sizing:border-box}.form_fields[_ngcontent-%COMP%]   .comment[_ngcontent-%COMP%]     .mat-form-field-underline{display:none}.form_fields[_ngcontent-%COMP%]   .comment[_ngcontent-%COMP%]     .mat-form-field-label{margin-top:40px!important}.form_fields[_ngcontent-%COMP%]   .comment[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{padding-bottom:22px}  .attach-files-tooltip{padding:19px!important;width:225px;border-radius:0!important;background-color:#fff!important;border-top:2px solid #D6117F;color:#000!important;font-size:12px!important;font-style:normal;font-weight:400}.file-data[_ngcontent-%COMP%]{display:flex;align-items:center;gap:14px}.file-data[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin-left:14px;color:#e0e0e0;font-size:19px;width:-moz-fit-content;width:fit-content;height:-moz-fit-content;height:fit-content}.file-data[_ngcontent-%COMP%]   .size[_ngcontent-%COMP%]{font-size:12px;color:#000;text-align:right}.file-data[_ngcontent-%COMP%]   .file-name[_ngcontent-%COMP%]{color:#144a90;width:270px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.attach-disabled[_ngcontent-%COMP%]{color:#d9d9d9}.progress-bar[_ngcontent-%COMP%]{width:170px}.progress-bar[_ngcontent-%COMP%]   mat-progress-bar[_ngcontent-%COMP%]{background-color:#144a90;margin-right:10px}.progress-bar[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:#144a90}.items-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;row-gap:8px;margin-top:10px}.close[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;color:#e0e0e0;cursor:pointer}.warning[_ngcontent-%COMP%]{color:#d6117f;font-size:12px}.files-wrapper[_ngcontent-%COMP%]{align-items:flex-end;gap:20px}.attach-disabled[_ngcontent-%COMP%]{color:#d9d9d9!important;cursor:auto}.attach-files-text[_ngcontent-%COMP%]{color:#144a90;text-transform:uppercase;font-size:14px;margin-top:18px!important;width:-moz-fit-content;width:fit-content}.form_text_wrapper[_ngcontent-%COMP%]{gap:40px}.bold[_ngcontent-%COMP%]{font-weight:700}  .date-menu{width:100%;max-width:100%;padding:10px 20px}.field[_ngcontent-%COMP%]{min-height:40px;align-items:flex-end;margin-bottom:31px;position:relative;z-index:2}.field[_ngcontent-%COMP%]   .required-error[_ngcontent-%COMP%]{color:#d6117f;font-size:12px;position:absolute;bottom:-18px;padding-left:0;z-index:1;visibility:hidden;transition:bottom .3s ease-in-out}.error-text[_ngcontent-%COMP%]{bottom:-25px!important;visibility:visible!important}.small-arrow[_ngcontent-%COMP%]{width:20px;position:absolute;right:0;bottom:0;
1rotate:x;height:20px;margin-left:auto;background-color:#7d7d7d;mask:url(/assets/pic/sidebar/arrow-down.svg) no-repeat;-webkit-mask:url(/assets/pic/sidebar/arrow-down.svg) no-repeat}.error-arrow[_ngcontent-%COMP%]{background-color:#d6117f!important}.undo-changes[_ngcontent-%COMP%]{position:absolute;right:0;bottom:0;color:#a6a6a6;font-size:14px;font-style:normal;font-weight:400;line-height:normal;text-transform:uppercase}.error-line[_ngcontent-%COMP%]{border-bottom-color:#d6117f!important}.error-color-text[_ngcontent-%COMP%]{color:#d6117f!important}.periods[_ngcontent-%COMP%]{max-height:100px;position:relative;display:flex;flex-direction:column;gap:8px;width:100%;border-bottom:1px solid black;transition:border-bottom-color .3s ease-in-out}.periods[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin-left:14px;color:#e0e0e0;font-size:19px;width:-moz-fit-content;width:fit-content;height:-moz-fit-content;height:fit-content}.periods[_ngcontent-%COMP%]   [_ngcontent-%COMP%]::-webkit-scrollbar{width:2px;height:2px;background-color:#fff;padding:0 4px}.periods[_ngcontent-%COMP%]   [_ngcontent-%COMP%]::-webkit-scrollbar-track{background:rgb(230,230,230)}.periods[_ngcontent-%COMP%]   [_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#BBBBBB;border-radius:0}.periods[_ngcontent-%COMP%]   .periods-list[_ngcontent-%COMP%]{width:220px;overflow-y:auto;display:flex;flex-direction:column;gap:8px}@media (max-width: 1180px){.periods[_ngcontent-%COMP%]   .periods-list[_ngcontent-%COMP%]{width:unset}}.periods[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{padding-left:10px;padding-bottom:3px}.fields-name[_ngcontent-%COMP%]{width:150px}.disabled[_ngcontent-%COMP%]{color:#0000008a}.describe[_ngcontent-%COMP%]{display:flex;padding-top:20px;flex-direction:column;justify-content:flex-end;gap:60px;padding-bottom:32px}.property[_ngcontent-%COMP%]{position:relative}.property[_ngcontent-%COMP%]   .field-describe[_ngcontent-%COMP%]{position:absolute;bottom:-3px;right:-550px;width:460px;min-width:250px}@media (max-width: 1440px){.property[_ngcontent-%COMP%]   .field-describe[_ngcontent-%COMP%]{width:30vw;left:calc(100% + 50px)}}@media (max-width: 1180px){.property[_ngcontent-%COMP%]   .field-describe[_ngcontent-%COMP%]{left:calc(100% + 30px)}}.property[_ngcontent-%COMP%]   .up[_ngcontent-%COMP%]{bottom:10px}[_nghost-%COMP%]     #contentEditableDiv{height:65px!important}[_nghost-%COMP%]     #editableP{max-height:45px!important}[_nghost-%COMP%]     .comment .mat-form-field-wrapper{padding-bottom:0}.error[_ngcontent-%COMP%]{color:#d6117f!important;font-size:12px!important;margin-top:.5416666667em;top:calc(100% - 1.6666666667em);position:absolute;box-sizing:border-box;width:100%;overflow:hidden;opacity:1;transform:translateY(0)}"]}),o})();class n_ extends J.I{constructor(){super({}),this.editor=new L.ML,this.addControl("subject",new r.NI("",r.kI.required)),this.addControl("request",new r.NI("",r.kI.required)),this.addControl("files",new r.NI([]))}get subject(){return this.controls.subject}get request(){return this.controls.request}get files(){return this.controls.files}}var o_=l(93997);const i_=["contactForm"];function __(o,i){if(1&o&&(e.tHW(0,3,1),e.TgZ(1,"app-tooltip"),e._UZ(2,"p"),e.qZA(),e.N_p()),2&o){const t=e.oxw();e.xp6(2),e.pQV(t.tooltipsService.tooltips.new_other_billing_related_issues_ticket),e.QtT(0)}}function a_(o,i){1&o&&(e.TgZ(0,"mat-error"),e.SDv(1,42),e.qZA())}function s_(o,i){1&o&&(e.TgZ(0,"p",43),e.SDv(1,44),e.qZA())}function r_(o,i){if(1&o&&(e.TgZ(0,"p",43),e._uU(1),e.qZA()),2&o){const t=e.oxw();e.xp6(1),e.Oqu(t.errorMessage)}}function l_(o,i){if(1&o&&(e.TgZ(0,"div",51),e._UZ(1,"mat-progress-bar",52),e.TgZ(2,"p",53),e._uU(3),e.qZA()()),2&o){const t=e.oxw().index,n=e.oxw();e.xp6(1),e.Q6J("value",n.showedFiles[t].percentage),e.xp6(2),e.hij("",n.showedFiles[t].percentage,"%")}}function c_(o,i){if(1&o){const t=e.EpF();e.TgZ(0,"div",45)(1,"div",46)(2,"p",47),e._uU(3),e.qZA(),e.TgZ(4,"mat-icon",48),e.NdJ("click",function(){const _=e.CHM(t).index,s=e.oxw();return e.KtG(s.deleteFile(_))}),e._uU(5,"close"),e.qZA()(),e.YNc(6,l_,4,2,"div",49),e.TgZ(7,"p",50),e._uU(8),e.qZA()()}if(2&o){const t=i.index,n=e.oxw();e.xp6(3),e.Oqu(n.getFileNameFromForm(t)),e.xp6(3),e.Q6J("ngIf",n.showedFiles[t].isUploading),e.xp6(2),e.hij("",n.getFileSizeFromForm(t)," MB")}
1}const T_=function(o){return{"error-border":o}},p_=function(o){return{"error-show":o}};let d_=(()=>{class o{constructor(t,n,a,_,s,c,p){this.getCompanyContactsUseCase=t,this.breadcrumbs=n,this.sendFileUsecase=a,this.sendOtherBillingIssue=_,this.modal=s,this.router=c,this.tooltipsService=p,this.otherBillingIssueForm=new n_,this.textareaLabel="Describe your request",this.defaultEmails=[],this.showedFiles=[],this.menuOpened=!1,this.tooltipText="You can attach max 5 files each below 25Mb. ( .doc, .docx, .txt, .rtf, .xls, .xlsx, .pdf, .csv, .png, .jpg, .jpeg, .tiff, .gif, .zip, .rar, .tar, .gz, .pcap, .cap )",this.errorMessage=""}ngOnInit(){this.setUpBreadcrumbLinks(),this.getCompanyContactsUseCase.execute("commercial").subscribe(t=>{this.defaultEmails=t})}setUpBreadcrumbLinks(){this.breadcrumbs.setLinks([{route:"/",text:"HOME"},{route:"/main/support",text:"SUPPORT"},{route:"/main/support/tickets",text:"BILLING TICKETS"},{text:"OTHER BILLING RELATED ISSUE"}])}doFileInput(t){const n=t.target.files;if(n&&!(n.length<1)){this.errorMessage="";for(let a=0;a<n.length;a++){const _=n[a];if(!this.isFilesValid)break;if(_.size>26214400)return void(this.errorMessage="File size should be less than 25MB");if(!_.type)return void(this.errorMessage="File type is not allowed");{const s=_.type.split("/")[1];if(!["doc","docx","txt","rtf","xls","xlsx","pdf","csv","png","jpg","jpeg","tiff","gif","zip","rar","tar","gz","pcap","cap","vnd.openxmlformats-officedocument.spreadsheetml.sheet","vnd.openxmlformats-officedocument.wordprocessingml.document"].includes(s))return void(this.errorMessage="File type " + s + " is not allowed")}this.showedFiles.push({name:_.name,size:_.size,percentage:0,isUploading:!1}),this.sendFile(_,this.showedFiles.length-1)}t.target.value=null}}get isFilesValid(){return this.showedFiles.length<5}getFileNameFromForm(t){return this.showedFiles[t]?.name||""}getFileSizeFromForm(t){return Math.ceil((this.showedFiles[t]?.size||0)/1048576)||0}deleteFile(t){this.otherBillingIssueForm.files.value.splice(t,1),this.otherBillingIssueForm.files.value.splice(t,1),this.showedFiles.splice(t,1)}sendFile(t,n){const a=new FormData;a.append("file",t,t.name),this.showedFiles[n].percentage=0,this.showedFiles[n].isUploading=!0,this.sendFileUsecase.execute(a,"TICKET").pipe((0,H.U)(_=>{_.type===w.dt.UploadProgress?this.showedFiles[n].percentage=Math.round(100/_.total*_.loaded):_.type===w.dt.Response&&(this.showedFiles[n].isUploading=!1,this.otherBillingIssueForm.files.value[n]=_.body,this.otherBillingIssueForm.files.value[n]=_.body)}),(0,ee.K)(_=>(this.showedFiles[n].percentage=0,this.showedFiles[n].isUploading=!1,(0,j._)(_.message)))).subscribe()}goBack(){this.otherBillingIssueForm.touched||this.contactForm.contactForm.dirty?this.modal.open(ne.S,{panelClass:"general-information-popup",data:{text:"Are you sure you want to <span class=\"dedicated-text\">cancel</span>?<br> Entered data will not be saved."}}).afterClosed().subscribe(t=>{t&&history.back()}):history.back()}sendBillingTicket(){this.otherBillingIssueForm.markAllAsTouched(),this.contactForm.checkEmailValidity()&&this.otherBillingIssueForm.valid&&this.sendOtherBillingIssue.execute({...this.otherBillingIssueForm.value,emails:this.contactForm.emails}).subscribe(t=>{this.router.navigate(["/main/support/tickets/"+t.ticketId],{queryParams:{status:"created"}})})}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(ae.P),e.Y36(q.W),e.Y36(te.b),e.Y36(o_.r),e.Y36($.uw),e.Y36(x.F0),e.Y36(Q.b))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-other-billing-related-issue"]],viewQuery:function(t,n){if(1&t&&e.Gf(i_,5),2&t){let a;e.iGM(a=e.CRH())&&(n.contactForm=a.first)}},decls:47,vars:20,consts:function(){let i,t,n,a,_,s,c,p,g,u,d,O,b,v;return i="If none of Billing predefined standard tickets suits your problem, please use this ticket to describe it. Our team will c
1ontact you shortly.",t="Please fill in the form below:",n="Subject *",a="Type subject",_="Briefly describe the subject of your appeal, so that it can be easily identified from the title later on",s="Request *",c=" This field is required ",p=" Attach Files " + "\ufffd#32\ufffd\ufffd/#32\ufffd" + "",g="Attach screenshots or other files related to your request",u="CANCEL",d="SAVE",O="Other Billing Related Issues " + "\ufffd*4:1\ufffd\ufffd#1:1\ufffd" + "" + "\ufffd#2:1\ufffd" + "" + "\ufffd0:1\ufffd" + "" + "\ufffd/#2:1\ufffd" + "" + "\ufffd/#1:1\ufffd\ufffd/*4:1\ufffd" + "",b=" This field is required ",v="You can attach max 5 files",[[1,"other-issues"],[1,"header","flex"],[1,"capital-gothic","header-text"],O,[4,"ngIf"],[1,"breadcrumbs"],[1,"sub-text"],i,[1,"subtitle-text","capital-gothic"],t,[1,"flex","wrapper"],[1,"form_fields",3,"formGroup"],[1,"flex","align-center","relative-position"],[1,"fields-name"],n,["floatLabel","never"],["matInput","","placeholder",a,"formControlName","subject"],[1,"field-describe"],_,[1,"flex","comment","relative-position"],s,[1,"editor",2,"width","100%",3,"ngClass"],[3,"editor"],[3,"editor","placeholder","formControl"],[1,"error",3,"ngClass"],c,[1,"flex","files-wrapper","relative-position"],["matTooltipPosition","above","matTooltipClass","attach-files-tooltip",1,"capital-gothic","margin-right","attach-files-text","pointer",3,"matTooltip","matTooltipDisabled","ngClass","click"],p,["multiple","","type","file","hidden","",3,"input"],["fileInput",""],["class","warning",4,"ngIf"],g,[1,"items-wrapper"],["class","file-data",4,"ngFor","ngForOf"],[3,"contactsType"],["contactForm",""],[1,"actions"],["mat-raised-button","","color","primary",1,"cancel",3,"click"],u,["mat-raised-button","","color","primary",1,"save",3,"click"],d,b,[1,"warning"],v,[1,"file-data"],[1,"flex"],[1,"file-name","capital-gothic"],[1,"pointer",3,"click"],["class","flex progress-bar align-center",4,"ngIf"],[1,"size","capital-gothic"],[1,"flex","progress-bar","align-center"],["mode","determinate",3,"value"],[1,"capital-gothic"]]},template:function(t,n){if(1&t){const a=e.EpF();e.TgZ(0,"div",0)(1,"div",1)(2,"p",2),e.tHW(3,3),e.YNc(4,__,3,1,"app-tooltip",4),e.N_p(),e.qZA(),e.TgZ(5,"div",5),e._UZ(6,"wo-breadcrumbs"),e.qZA()(),e.TgZ(7,"p",6),e.SDv(8,7),e.qZA(),e.TgZ(9,"p",8),e.SDv(10,9),e.qZA(),e.TgZ(11,"div",10)(12,"div",11)(13,"div",12)(14,"p",13),e.SDv(15,14),e.qZA(),e.TgZ(16,"mat-form-field",15),e._UZ(17,"input",16),e.YNc(18,a_,2,0,"mat-error",4),e.qZA(),e.TgZ(19,"p",17),e.SDv(20,18),e.qZA()(),e.TgZ(21,"div",19)(22,"p",13),e.SDv(23,20),e.qZA(),e.TgZ(24,"div",21),e._UZ(25,"ngx-editor-menu",22)(26,"ngx-editor",23),e.TgZ(27,"div",24),e.SDv(28,25),e.qZA()()(),e.TgZ(29,"div",26)(30,"p",27),e.NdJ("click",function(){e.CHM(a);const s=e.MAs(33);return e.KtG(n.isFilesValid&&s.click())}),e.tHW(31,28),e.TgZ(32,"input",29,30),e.NdJ("input",function(s){return n.doFileInput(s)}),e.qZA(),e.N_p(),e.qZA(),e.YNc(34,s_,2,0,"p",31),e.YNc(35,r_,2,1,"p",31),e.TgZ(36,"p",17),e.SDv(37,32),e.qZA()(),e.TgZ(38,"div",33),e.YNc(39,c_,9,3,"div",34),e.qZA()()(),e._UZ(40,"app-contact-form",35,36),e.TgZ(42,"div",37)(43,"button",38),e.NdJ("click",function(){return n.goBack()}),e.SDv(44,39),e.qZA(),e.TgZ(45,"button",40),e.NdJ("click",function(){return n.sendBillingTicket()}),e.SDv(46,41),e.qZA()()()}2&t&&(e.xp6(4),e.Q6J("ngIf",null==n.tooltipsService||null==n.tooltipsService.tooltips?null:n.tooltipsService.tooltips.new_other_billing_related_issues_ticket),e.xp6(8),e.Q6J("formGroup",n.otherBillingIssueForm),e.xp6(6),e.Q6J("ngIf",n.otherBillingIssueForm.subject.hasError("required")),e.xp6(6),e.Q6J("ngClass",e.VKq(16,T_,n.otherBillingIssueForm.request.invalid&&(n.otherBillingIssueForm.request.dirty||n.otherBillingIssueForm.request.touched))
1),e.xp6(1),e.Q6J("editor",n.otherBillingIssueForm.editor),e.xp6(1),e.Q6J("editor",n.otherBillingIssueForm.editor)("placeholder",n.textareaLabel)("formControl",n.otherBillingIssueForm.request),e.xp6(1),e.Q6J("ngClass",e.VKq(18,p_,n.otherBillingIssueForm.request.invalid&&(n.otherBillingIssueForm.request.dirty||n.otherBillingIssueForm.request.touched))),e.xp6(3),e.Q6J("matTooltip",n.tooltipText)("matTooltipDisabled",!n.isFilesValid)("ngClass",n.isFilesValid?"":"attach-disabled"),e.xp6(4),e.Q6J("ngIf",!n.isFilesValid),e.xp6(1),e.Q6J("ngIf",n.errorMessage),e.xp6(4),e.Q6J("ngForOf",n.showedFiles),e.xp6(1),e.Q6J("contactsType","commercial"))},dependencies:[T.mk,T.sg,T.O5,r.Fj,r.JJ,r.JL,r.oH,r.sg,r.u,Y.K,z.g,y.lW,f.TO,f.KE,Z.Nt,G.Hw,X.gM,W.pW,L.tP,L.Mn,se],styles:[".other-issues[_ngcontent-%COMP%]{display:block;padding:0 60px 40px 0}@media (max-width: 960px){.other-issues[_ngcontent-%COMP%]{padding-right:1rem}}.actions[_ngcontent-%COMP%]{display:flex;gap:55px;margin-top:40px;width:90%;justify-content:center;margin-bottom:60px}.actions[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:310px;height:50px;text-transform:uppercase;font-size:16px;font-style:normal;font-weight:700}.actions[_ngcontent-%COMP%]   .cancel[_ngcontent-%COMP%]{background-color:#4698ff;color:#fff}.actions[_ngcontent-%COMP%]   .save[_ngcontent-%COMP%]{background-color:#144a90}.header[_ngcontent-%COMP%]{gap:10px}.header[_ngcontent-%COMP%]   .header-text[_ngcontent-%COMP%]{font-size:44px;font-style:normal;font-weight:700;line-height:43px;letter-spacing:.44px;text-transform:uppercase}.header[_ngcontent-%COMP%]   .header-text[_ngcontent-%COMP%]     app-tooltip .right{top:13px}.sub-text[_ngcontent-%COMP%]{margin-top:23px!important}.subtitle-text[_ngcontent-%COMP%]{margin-top:40px!important;margin-bottom:40px!important;font-size:14px;font-style:normal;font-weight:400;line-height:normal;text-transform:uppercase}.form_fields[_ngcontent-%COMP%]{background-color:#eaf2fc;padding:10px 28px 40px;min-width:590px;box-sizing:border-box}@media (max-width: 1440px){.form_fields[_ngcontent-%COMP%]{min-width:unset;width:40vw}}@media (max-width: 1180px){.form_fields[_ngcontent-%COMP%]{padding:50px 12px 40px}}.form_fields[_ngcontent-%COMP%]   .fields-name[_ngcontent-%COMP%]{width:150px}.form_fields[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]{width:100%}.form_fields[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{padding-left:10px}.form_fields[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]     .mat-form-field-label{margin-left:10px!important}.form_fields[_ngcontent-%COMP%]   .comment[_ngcontent-%COMP%]{margin-top:20px;align-items:flex-end}.form_fields[_ngcontent-%COMP%]   .comment[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]{padding-left:0;width:100%;height:-moz-fit-content;height:fit-content}.form_fields[_ngcontent-%COMP%]   .comment[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]{height:65px!important;border:#E0E0E0 1px solid!important;padding:10px;resize:none;box-sizing:border-box}.form_fields[_ngcontent-%COMP%]   .comment[_ngcontent-%COMP%]     .mat-form-field-underline{display:none}.form_fields[_ngcontent-%COMP%]   .comment[_ngcontent-%COMP%]     .mat-form-field-label{margin-top:40px!important}  .attach-files-tooltip{padding:19px!important;width:225px;border-radius:0!important;background-color:#fff!important;border-top:2px solid #D6117F;color:#000!important;font-size:12px!important;font-style:normal;font-weight:400}.file-data[_ngcontent-%COMP%]{display:flex;align-items:center;gap:14px}.file-data[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin-left:14px;color:#e0e0e0;font-size:19px;width:-moz-fit-content;width:fit-content;height:-moz-fit-content;height:fit-content}.file-data[_ngcontent-%COMP%]   .size[_ngcontent-%COMP%]{font-size:12px;color:#000;text-align:right}.file-data[_ngcontent-%COMP%]   .file-name[_ngcontent-%COMP%]{color:#144a90;width:270px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.attach-disabled[_ngcontent-%COMP%]{color:#d9d9d9}.progress-bar[_ngcontent-%COMP%]{width:170px}
1.progress-bar[_ngcontent-%COMP%]   mat-progress-bar[_ngcontent-%COMP%]{background-color:#144a90;margin-right:10px}.progress-bar[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:#144a90}.items-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;row-gap:8px;margin-top:10px}.close[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;color:#e0e0e0;cursor:pointer}.warning[_ngcontent-%COMP%]{color:#d6117f;font-size:12px}.files-wrapper[_ngcontent-%COMP%]{align-items:flex-end;gap:20px}.attach-disabled[_ngcontent-%COMP%]{color:#d9d9d9!important;cursor:auto}.attach-files-text[_ngcontent-%COMP%]{color:#144a90;text-transform:uppercase;font-size:14px;margin-top:18px!important;width:-moz-fit-content;width:fit-content}.form_text_wrapper[_ngcontent-%COMP%]{gap:40px}.fields_description[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:18px 0 0}.fields_description[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]:nth-child(1){padding-bottom:105px}.fields_description[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]:nth-child(2){padding-bottom:45px}.bold[_ngcontent-%COMP%]{font-weight:700}  .date-menu{width:100%;max-width:100%;padding:10px 20px}.wrapper[_ngcontent-%COMP%]{gap:50px}.relative-position[_ngcontent-%COMP%]{position:relative}.relative-position[_ngcontent-%COMP%]   .field-describe[_ngcontent-%COMP%]{position:absolute;bottom:-3px!important;right:-536px;width:460px;min-width:250px}@media (max-width: 1440px){.relative-position[_ngcontent-%COMP%]   .field-describe[_ngcontent-%COMP%]{width:30vw;left:calc(100% + 50px)}}@media (max-width: 1180px){.relative-position[_ngcontent-%COMP%]   .field-describe[_ngcontent-%COMP%]{left:calc(100% + 30px)}}[_nghost-%COMP%]     #contentEditableDiv{height:65px!important}[_nghost-%COMP%]     #editableP{max-height:45px!important}[_nghost-%COMP%]     .comment .mat-form-field-wrapper{padding-bottom:0}.error[_ngcontent-%COMP%]{color:#d6117f!important;font-size:12px!important;top:calc(100% - 1.6666666667em);position:absolute;box-sizing:border-box;width:100%;overflow:hidden;opacity:1;transform:translateY(0);z-index:0;transition:.2s all}[_nghost-%COMP%]     .editor .NgxEditor__MenuBar, [_nghost-%COMP%]     .editor .NgxEditor{background-color:#eaf2fc!important;z-index:1}[_nghost-%COMP%]     .error-border .NgxEditor{border:1px solid #D6117F!important}.error-show[_ngcontent-%COMP%]{transform:translateY(20px)}[_nghost-%COMP%]     .editor .NgxEditor{min-height:100px}"]}),o})();class g_ extends J.I{constructor(){super({}),this.editor=new L.ML,this.addControl("invoices",new r.NI([])),this.addControl("period",new r.NI({value:[],disabled:!0})),this.addControl("services",new r.NI({value:[],disabled:!0})),this.addControl("subject",new r.NI("",r.kI.required)),this.addControl("request",new r.NI("")),this.addControl("files",new r.NI([]))}get invoices(){return this.controls.invoices}get period(){return this.controls.period}get services(){return this.controls.services}get subject(){return this.controls.subject}get request(){return this.controls.request}get files(){return this.controls.files}}class C_ extends J.I{constructor(){super({}),this.editor=new L.ML,this.addControl("services",new r.NI([])),this.addControl("period",new r.NI("")),this.addControl("invoices",new r.NI([])),this.addControl("subject",new r.NI("",r.kI.required)),this.addControl("request",new r.NI("")),this.addControl("files",new r.NI([]))}get services(){return this.controls.services}get subject(){return this.controls.subject}get period(){return this.controls.period}get invoices(){return this.controls.invoices}get request(){return this.controls.request}get files(){return this.controls.files}}var u_=l(96457),E_=l(68675),O_=l(39841),P_=l(15617),ue=l(56709);function S_(o,i){if(1&o&&(e.TgZ(0,"span",43),e.SDv(1,44),e.qZA()),2&o){const t=e.oxw();e.xp6(1),e.pQV(t.numberOfSelectedProducts)(t.numberOfSelectedProducts>1?"items":"item"),e.QtT(1)}}function m_(o,i){if(1&o){const t=e.EpF();e.TgZ(0,"th",45)(1,"mat-checkbox",46),e.NdJ("change",function(a){e.CHM(t);const _=e.oxw();return e.KtG(_.onMainCheckboxChange(a))}),e.qZA()()}if(2&o){const t=e.oxw();e.xp6(1),e.Q6J("checked",t.isAllSelected)("indeterminate",t.isSomeSelected)}}function M_(o,i){if(1&o){const t=e.EpF();e.TgZ(0,"td",47)(1,"mat-checkbox",48),e.NdJ("ngModelChange",function(a){const s=e.CHM(t).$implicit;return e.KtG(s.selected=a)}),e.qZA()()}if(2&o){const t=i.$implicit;e.xp6(1),e.Q6J("ngModel",t.selected)}}function f_(o,i){1&o&&(e.TgZ(0,"th",49),e.SDv(1,50),e.qZA()),2&o&&e.Q6J("mat-sort-header","number")}function N_(o,i){if(1&o&&(e.TgZ(0,"td",51)(1,"a",52),e._uU(2),e.qZA()()),2&o){const t=i.$implicit;e.xp6(2),e.hij(" ",t.number," ")}}function I_(o,i){1&o&&(e.TgZ(0,"th",49),e.SDv(1,53),e.qZA()),2&o&&e.Q6J("mat-sort-header","due_date")}function h_(o,i){if(1&o&&(e.TgZ(0,"td",54),e._uU(1),e.qZA()),2&o){const t=i.$implicit;e.xp6(1),e.hij(" ",t.issued_date," ")}}function A_(o,i){1&o&&(e.TgZ(0,"th",49),e.SDv(1,55),e.qZA()),2&o&&e.Q6J("mat-sort-header","amount_due")}function F_(o,i){if(1&o&&(e.TgZ(0,"td",54),e._uU(1),e.ALo(2,"number"),e.qZA()),2&o){const t=i.$implicit;e.xp6(1),e.hij(" ",e.xi3(2,1,t.total,"0.2-2")," ")}}function R_(o,i){1&o&&(e.TgZ(0,"th",49),e.SDv(1,56),e.qZA()),2&o&&e.Q6J("mat-sort-header","currency")}function x_(o,i){if(1&o&&(e.TgZ(0,"td",54),e._uU(1),e.qZA()),2&o){const t=i.$implicit;e.xp6(1),e.hij(" ",t.currency," ")}}function b_(o,i){1&o&&e._UZ(0,"tr",57)}const v_=function(o){return{"selected-row":o}};function U_(o,i){if(1&o&&e._UZ(0,"tr",58),2&o){const t=i.$implicit,n=e.oxw();e.Q6J("ngClass",e.VKq(1,v_,n.isProductSelected(t)))}}function D_(o,i){1&o&&(e.TgZ(0,"div",59),e.SDv(1,60),e.qZA())}function $_(o,i){if(1&o){const t=e.EpF();e.TgZ(0,"label",61)(1,"input",62),e.NdJ("change",function(){const _=e.CHM(t).index,s=e.oxw();return s.filterParams.pageSize=s.pageSizeOptions[_],s.resetPaginationParams(),e.KtG(s.refreshTable())}),e.qZA(),e._uU(2),e.qZA()}if(2&o){const t=i.index,n=e.oxw();e.MGl("for","view-",n.pageSizeOptions[t],""),e.xp6(1),e.MGl("id","view-",n.pageSizeOptions[t],""),e.Q6J("checked",n.pageSizeOptions[t]==n.filterParams.pageSize),e.xp6(1),e.Oqu(n.pageSizeOptions[t])}}const y_=function(o){return{rotate:o}},w_=function(o){return{"search-input__container_hidden":o}};let k_=(()=>{class o{constructor(t,n,a){this.getListOfProducts=t,this.matDialogRef=n,this.data=a,this.menuOpened=!1,this.displayedColumns=["selected","invoice_number","due","balance_due","currency"],this.searchToggled=!1,this.direction="desc",this.filterParams={page:0,pageSize:10,
1common:"",sort_field:"",sort_direction:"",condition:{}},this.filterParamsSubject=new ce.X(this.filterParams.common),this.products=[],this.numberOfRowsAtAll=0,this.currentPage=0,this.pageSizeOptions=[10,30,50],this.numberOfPages=0}ngOnInit(){this.refreshTable(),this.filterParamsSubject.pipe((0,Te.b)(800),(0,pe.x)()).subscribe(t=>{this.filterParams.common=t,this.resetPaginationParams(),this.refreshTable()})}selectAllUsers(){this.products.forEach(t=>{t.selected=!0})}deselectAllUsers(){this.products.forEach(t=>{t.selected=!1})}onMainCheckboxChange(t){t.checked?this.selectAllUsers():this.deselectAllUsers()}sort(t){this.filterParams.sort_direction=t.direction,this.filterParams.sort_field=t.direction?t.active:"",this.refreshTable()}get isSomeSelected(){return this.products.some(t=>!0===t.selected)&&!this.isAllSelected}get isAllSelected(){return this.products.every(t=>!0===t.selected)}resetDialog(){this.products.forEach(t=>{t.selected=!1}),this.filterParams={},this.data.selectedInvoices=[],this.refreshTable()}isProductSelected(t){return!0===t.selected}get selectDateRangeLabel(){if(this.filterParams.condition.issued_date){if(this.filterParams.condition.issued_date.from&&this.filterParams.condition.issued_date.to)return`${(0,I.Z)(new Date(this.filterParams.condition.issued_date.from),"dd/MM/yyyy")} - ${(0,I.Z)(new Date(this.filterParams.condition.issued_date.to),"dd/MM/yyyy")}`;if(this.filterParams.condition.issued_date.from)return`${(0,I.Z)(new Date(this.filterParams.condition.issued_date.from),"dd/MM/yyyy")}`}return""}apply(){const t=this.products.filter(n=>!0===n.selected).map(n=>({id:n.id,isn_vd:n.number}));this.matDialogRef.close(t)}setDate(t){this.matDateTrigger.closeMenu(),this.filterParams.condition.issued_date=k.g.removeEmptyProperties(t),this.refreshTable()}resetPaginationParams(){this.filterParams.page=0,this.currentPage=0}refreshTable(){this.filterParams.condition=k.g.removeEmptyProperties(this.filterParams.condition);const t=k.g.removeEmptyProperties(this.filterParams);this.getListOfProducts.execute(t).subscribe(n=>{this.products=n.rows.map(a=>({selected:!1,number:a.num,due_date:a.due_date,total:a.total,currency:a.currency,id:a.number,issued_date:a.issued_date})),this.currentPage=n.pagination.current_page,this.numberOfPages=n.pagination.last_page,this.numberOfRowsAtAll=n.pagination.rows_total,this.sortSelectedInvoices()})}get numberOfSelectedProducts(){return this.products.filter(t=>!0===t.selected).length}sortSelectedInvoices(){this.data?.selectedInvoices?.forEach(t=>{const n=this.products.findIndex(a=>a.number===t);-1!==n&&(this.products[n].selected=!0,this.products.unshift(this.products.splice(n,1)[0]))})}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(P_.U),e.Y36($.so),e.Y36($.WI))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-products-list"]],viewQuery:function(t,n){if(1&t&&e.Gf(F.p6,5),2&t){let a;e.iGM(a=e.CRH())&&(n.matDateTrigger=a.first)}},decls:53,vars:24,consts:function(){let i,t,n,a,_,s,c,p,g,u;return i=" Period " + "\ufffd#6\ufffd" + "" + "\ufffd0\ufffd" + "" + "\ufffd/#6\ufffd" + "" + "\ufffd#7\ufffd" + "" + "\ufffd/#7\ufffd" + "",t="show ",n="CLEAR ALL",a="APPLY",_=" You selected " + "\ufffd0\ufffd" + " " + "\ufffd1\ufffd" + " ",s="Invoice Number",c="Issued",p="Amount Incl. VAT",g="Currency",u="No records",[[1,"searching","flex"],["type","button",1,"close-btn",3,"mat-dialog-close"],[1,"search-select",3,"matMenuTriggerFor","menuOpened","menuClosed"],i,[1,"select-arrow",3,"ngClass"],["xPosition","after","yPosition","above",1,"date-menu"],["dateMenu","matMenu"],[3,"dateRangeChanged","click"],["matSuffix","","mat-icon-button","","aria-label","Search",1,"search",3,"disableRipple"],["src","assets/pic/icons/search-icon.svg","alt","Search",3,"click"],[1,"search-input__container",3,"ngClass"],["appearance","fill",1,"search-input"],["matPrefix",""],["src","assets/pic/icons/search-icon.svg","alt","search icon"],["placeholder","Type here","matInput","","type","text",3,"input"],["commonInput",""],["class","multi-actions__label",4,"ngIf"],[1,"table-wrap"],["mat-table","","matSort","",1,"invoices-mini-table",3,"dataSource","matSortActive","matSortDirection","matSortChange"],["matColumnDef","selected"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","style","max-width: 50px;",4,"matCellDef"],["matColumnDef","invoice_number"],["mat-header-cell","",3,"mat-sort-header",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","due"],["mat-cell","","class","cell-nowrap",4,"matCellDef"],["matColumnDef","balance_due"],["matColumnDef","currency"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"ngClass",4,"matRowDef","matRowDefColumns"],["class","no-records",4,"ngIf"],[1,"table-sort"],[1,"table-view","view"],t,["class","view__label",3,"for",4,"ngFor","ngForOf"],[1,"table__paginator"],[1,"table-paginator",3,"current","last","count","length","limit","pageSizeOptions","changePage"],[1,"actions"],[1,"clear","pointer","capital-gothic",3,"click"],n,[1,"apply","pointer","capital-gothic",3,"click"],a,[1,"multi-actions__label"],_,["mat-header-cell",""],[3,"checked","indeterminate","change"],["mat-cell","",2,"max-width","50px"],[3,"ngModel","ngModelChange"],["mat-header-cell","",3,"mat-sort-header"],s,["mat-cell",""],[1,"capital-gothic"],c,["mat-cell","",1,"cell-nowrap"],p,g,["mat-header-row",""],["mat-row","",3,"ngClass"],[1,"n
1o-records"],u,[1,"view__label",3,"for"],["name","view","type","radio",1,"view__input",3,"id","checked","change"]]},template:function(t,n){if(1&t){const a=e.EpF();e.TgZ(0,"div",0)(1,"button",1)(2,"mat-icon"),e._uU(3,"close"),e.qZA()(),e.TgZ(4,"div",2),e.NdJ("menuOpened",function(){return n.menuOpened=!0})("menuClosed",function(){return n.menuOpened=!1}),e.tHW(5,3),e._UZ(6,"span")(7,"div",4),e.N_p(),e.qZA(),e.TgZ(8,"mat-menu",5,6)(10,"custom-date-range-picker",7),e.NdJ("dateRangeChanged",function(s){return n.resetPaginationParams(),n.setDate(s)})("click",function(s){return s.stopPropagation()}),e.qZA()(),e.TgZ(11,"button",8)(12,"mat-icon")(13,"img",9),e.NdJ("click",function(){return n.searchToggled=!n.searchToggled}),e.qZA()()(),e.TgZ(14,"div",10)(15,"mat-form-field",11)(16,"span",12),e._UZ(17,"img",13),e.qZA(),e.TgZ(18,"input",14,15),e.NdJ("input",function(){e.CHM(a);const s=e.MAs(19);return e.KtG(n.filterParamsSubject.next(s.value))}),e.qZA()()(),e.YNc(20,S_,2,2,"span",16),e.qZA(),e.TgZ(21,"div",17)(22,"table",18),e.NdJ("matSortChange",function(s){return n.sort(s)}),e.ynx(23,19),e.YNc(24,m_,2,2,"th",20),e.YNc(25,M_,2,1,"td",21),e.BQk(),e.ynx(26,22),e.YNc(27,f_,2,1,"th",23),e.YNc(28,N_,3,1,"td",24),e.BQk(),e.ynx(29,25),e.YNc(30,I_,2,1,"th",23),e.YNc(31,h_,2,1,"td",26),e.BQk(),e.ynx(32,27),e.YNc(33,A_,2,1,"th",23),e.YNc(34,F_,3,4,"td",26),e.BQk(),e.ynx(35,28),e.YNc(36,R_,2,1,"th",23),e.YNc(37,x_,2,1,"td",26),e.BQk(),e.YNc(38,b_,1,0,"tr",29),e.YNc(39,U_,1,3,"tr",30),e.qZA(),e.YNc(40,D_,2,0,"div",31),e.qZA(),e.TgZ(41,"div",32)(42,"div",33)(43,"span"),e.SDv(44,34),e.qZA(),e.YNc(45,$_,3,4,"label",35),e.qZA(),e.TgZ(46,"div",36)(47,"wo-paginator",37),e.NdJ("changePage",function(s){return n.filterParams.page=s.page-1,n.refreshTable()}),e.qZA()()(),e.TgZ(48,"div",38)(49,"p",39),e.NdJ("click",function(){return n.resetDialog()}),e.SDv(50,40),e.qZA(),e.TgZ(51,"p",41),e.NdJ("click",function(){return n.apply()}),e.SDv(52,42),e.qZA()()}if(2&t){const a=e.MAs(9);e.xp6(1),e.Q6J("mat-dialog-close",!1),e.xp6(3),e.Q6J("matMenuTriggerFor",a),e.xp6(3),e.Q6J("ngClass",e.VKq(20,y_,!n.menuOpened)),e.pQV(n.selectDateRangeLabel),e.QtT(5),e.xp6(4),e.Q6J("disableRipple",!0),e.xp6(3),e.Q6J("ngClass",e.VKq(22,w_,!n.searchToggled)),e.xp6(6),e.Q6J("ngIf",n.numberOfSelectedProducts>0),e.xp6(2),e.Q6J("dataSource",n.products)("matSortActive",n.filterParams.sort)("matSortDirection",n.direction),e.xp6(16),e.Q6J("matHeaderRowDef",n.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",n.displayedColumns),e.xp6(1),e.Q6J("ngIf",0===n.products.length),e.xp6(5),e.Q6J("ngForOf",n.pageSizeOptions),e.xp6(2),e.Q6J("current",n.filterParams.page+1)("last",n.numberOfPages)("count",n.numberOfRowsAtAll)("length",n.filterParams.pageSize)("limit",n.filterParams.pageSize)("pageSizeOptions",n.pageSizeOptions)}},dependencies:[T.mk,T.sg,T.O5,r.JJ,r.On,y.lW,ue.oG,$.ZT,f.KE,f.qo,f.R9,G.Hw,Z.Nt,de.D,Pe.o,F.VK,F.p6,C.BZ,C.fO,C.as,C.w1,C.Dz,C.nj,C.ge,C.ev,C.XQ,C.Gk,V.YE,V.nU,T.JJ],styles:[".close-btn[_ngcontent-%COMP%]{position:absolute;top:-11px;right:-11px}.table-wrap[_ngcontent-%COMP%]{overflow-x:hidden;white-space:nowrap;margin-top:20px;position:relative;max-height:320px;padding:20px 0;overflow-y:auto;border:1px solid #E0E0E0}[_ngcontent-%COMP%]::-webkit-scrollbar{width:2px;height:2px;background-color:#fff;padding:0 4px}[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:rgb(230,230,230)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#BBBBBB;border-radius:0}[_nghost-%COMP%]     .invoices-mini-table .mat-checkbox-inner-container{height:12px;width:12px}[_nghost-%COMP%]     .invoices-mini-table .mat-checkbox-ripple{display:none}[_nghost-%COMP%]     .invoices-mini-table .mat-checkbox-frame{border-radius:0;border:0;background:#DDDDDD}[_nghost-%COMP%]     .invoices-mini-table .mat-checkbox-indeterminate.mat-accent .mat-checkbox-background, [_nghost-%COMP%]     .invoices-mini-table .mat-checkbox-checked.mat-accent .mat-checkbox-background{background:#D6117F;border-radius:0}[_nghost-%COMP%]     .invoices-mini-table .mat-checkbox-indeterminate.mat-accent .mat-checkbox-background svg, [_nghost-%COMP%]     .invoices-mini-table .mat-checkbox-checked.mat-accent .mat-checkbox-background svg{display:none}[_nghost-%COMP%]     .invoices-mini-table .mat-select-trigger{background:#144A90;padding:5px 10px 5px 5px;color:#fff!important;display:flex;text-align:center;height:20px;width:130px;text-transform:uppercase;font-size:14px}[_nghost-%COMP%]     .invoices-mini-table .active .mat-select-trigger{background:#144A90}[_nghost-%COMP%]     .invoices-mini-table .disabled .mat-select-trigger{background:#A8B1C1}[_nghost-%COMP%]     .invoices-mini-table .mat-select-value{color:#fff!important}[_nghost-%COMP%]     .invoices-mini-table .mat-select-placeholder{color:#fff}table[_ngcontent-%COMP%]{width:90%;table-layout:auto;border-collapse:collapse}table[_ngcontent-%COMP%]     .mat-row{border-bottom:2px solid transparent}table[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], table[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{font-size:16px;padding:0 10px;text-align:left;border:none;text-overflow:ellipsis;overflow:hidden}table[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{font-weight:700;color:#000;border-bottom:1px solid #000}table[_ngcontent-%COMP%]   .align-top[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]   .cell-link[_ngcontent-%COMP%], table[_ngcontent-%COMP%]   .align-top[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]   .multi-cell[_ngcontent-%COMP%]{display:block;margin-bottom:10px;margin-top:10px}table[_ngcontent-%COMP%]   .align-top[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]   .cell-link[_ngcontent-%COMP%]:not(:last-child), table[_ngcontent-%COMP%]   .align-top[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]   .multi-cell[_ngcontent-%COMP%]:not(:last-child){margin-bottom:26px}table[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]   .note[_ngcontent-%COMP%]{font-size:12px;color:#a6a6a6}[_nghost-%COMP%]     table.mat-table tbody tr:first-child td{padding-top:18px!important}th.mat-header-cell[_ngcontent-%COMP%]:first-of-type, td.mat-cell[_ngcontent-%COMP%]:first-of-type, td.mat-footer-cell[_ngcontent-%COMP%]:first-of-type{padding-left:10px}[_nghost-%COMP%]     .mat-table tbody tr:nth-child(odd){background:#EAF2FC}[_nghost-%COMP%]     .mat-table .mat-sort-header-content{text-align:left}[_nghost-%COMP%]     .mat-button-ripple.mat-ripple, [_nghost-%COMP%]     .mat-button-focus-overlay{display:none}.cell-link[_ngcontent-%COMP%]{font-size:14px;color:#144a90;text-decoration:none;cursor:pointer}.cell-nowrap[_ngcontent-%COMP%]{white-space:nowrap}table[_ngcontent-%COMP%]   td.cell-center[_ngcontent-%COMP%]{text-align:center}.table-sort[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-items:center;margin-top:15px;gap:40px;width:100%}.view__title[_ngcontent-%COMP%]{font-size:1rem;font-weight:300}.view__label[_ngcontent-%COMP%]{position:relative;padding:5px;height:30px;border:1px solid #fff;font-size:1rem;font-weight:300;line-height:24px;transition:all .2s linear;margin-right:3px;
1cursor:pointer}.view__input[_ngcontent-%COMP%]{position:absolute;opacity:0;cursor:pointer}.view[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]:has(input:checked){background:#D9EAFF}[_nghost-%COMP%]     wo-paginator .wo-paginator__link{background:none;border:none;font-size:16px;padding:4px}[_nghost-%COMP%]     wo-paginator .wo-paginator__link:hover{background:none;border:none}[_nghost-%COMP%]     wo-paginator .wo-paginator__item_disabled .wo-paginator__link:hover{background:none;border:none!important}[_nghost-%COMP%]     wo-paginator .wo-paginator__item_active .wo-paginator__link{background:#D9EAFF!important;box-shadow:none!important;color:#000!important}.actions[_ngcontent-%COMP%]{display:flex;gap:40px;margin-top:23px}.actions[_ngcontent-%COMP%]   .apply[_ngcontent-%COMP%]{color:#144a90;font-size:14px;font-style:normal;font-weight:400;line-height:normal;text-transform:uppercase}.actions[_ngcontent-%COMP%]   .clear[_ngcontent-%COMP%]{color:#a6a6a6;font-size:14px;font-style:normal;font-weight:400;line-height:normal;text-transform:uppercase}.search-select[_ngcontent-%COMP%]{padding-left:.75em;padding-right:.75em;background-color:#d9eaff;width:20vw;height:42px;display:flex;align-items:center;margin-top:4px!important;box-sizing:border-box;cursor:pointer}.search-select[_ngcontent-%COMP%]   .select-arrow[_ngcontent-%COMP%]{height:8px;width:13px;background:url(/en/assets/pic/icons/arrow.svg) no-repeat;margin-left:auto}.search-select[_ngcontent-%COMP%]   .rotate[_ngcontent-%COMP%]{transform:rotate(180deg)}  .search-input__container{display:flex;justify-content:flex-end;position:absolute;bottom:-50px}  .search-input__container.search-input__container_hidden{visibility:hidden;height:0}  .search-input__container .search-input img{width:20px;height:20px;transform:translateY(2px)}  .search-input__container .search-input .mat-form-field-flex{width:390px;padding:0 13px;border-radius:0;border-bottom:none;background:#F3F3F3;position:relative;z-index:3}  .search-input__container .search-input .mat-form-field-wrapper{padding-bottom:0}  .search-input__container .search-input .mat-input-element{color:#a6a6a6;font-family:Capital Gothic;font-size:16px;font-style:normal;font-weight:300;line-height:normal;letter-spacing:.16px}  .search-input__container .search-input .mat-form-field-infix{padding:9px;border-top:0}  .search-input__container .search-input .mat-form-field-underline{display:none}.searching[_ngcontent-%COMP%]{gap:20px;position:relative;margin-bottom:64px}.searching[_ngcontent-%COMP%]   .multi-actions__label[_ngcontent-%COMP%]{position:absolute;left:0;bottom:-40px;font-size:12px;font-style:normal;color:#d6117f}.searching[_ngcontent-%COMP%]   .search-select[_ngcontent-%COMP%]{padding-left:.75em;padding-right:.75em;background-color:#d9eaff;width:285px;height:42px;display:flex;align-items:center;margin-top:4px!important;box-sizing:border-box;cursor:pointer}.searching[_ngcontent-%COMP%]   .search-select[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{margin-left:auto;color:#d6117f}.searching[_ngcontent-%COMP%]   .search-select[_ngcontent-%COMP%]   .select-arrow[_ngcontent-%COMP%]{height:8px;width:13px;background:url(/en/assets/pic/icons/arrow.svg) no-repeat;margin-left:10px}.searching[_ngcontent-%COMP%]   .search-select[_ngcontent-%COMP%]   .rotate[_ngcontent-%COMP%]{transform:rotate(180deg)}@media (max-width: 1180px){.searching[_ngcontent-%COMP%]   .search-select[_ngcontent-%COMP%]{flex:0 0 44%;max-width:unset}}@media (max-width: 940px){.searching[_ngcontent-%COMP%]   .search-select[_ngcontent-%COMP%]{flex:0 0 42%;max-width:unset}}  .date-menu{width:100%;max-width:100%;padding:10px 20px}.selected-row[_ngcontent-%COMP%]{text-shadow:.7px 0 0 currentColor;border-bottom:2px solid #D6117F!important}"]}),o})();var L_=l(42550);function G_(o,i){if(1&o&&(e.TgZ(0,"span",38),e.SDv(1,39),e.qZA()),2&o){const t=e.oxw();e.xp6(1),e.pQV(t.numberOfSelectedProducts)(t.numberOfSelectedProducts>1?"items":"item"),e.QtT(1)}}function Z_(o,i){if(1&o){const t=e.EpF();e.TgZ(0,"th",40)(1,"mat-checkbox",41),e.NdJ("change",function(a){e.CHM(t);const _=e.oxw();return e.KtG(_.onMainCheckboxChange(a))}),e.qZA()()}if(2&o){const t=e.oxw();e.xp6(1),e.Q6J("checked",t.isAllSelected)("indeterminate",t.isSomeSelected)}}
1function q_(o,i){if(1&o){const t=e.EpF();e.TgZ(0,"td",42)(1,"mat-checkbox",43),e.NdJ("ngModelChange",function(a){const s=e.CHM(t).$implicit;return e.KtG(s.selected=a)}),e.qZA()()}if(2&o){const t=i.$implicit;e.xp6(1),e.Q6J("ngModel",t.selected)}}function K_(o,i){1&o&&(e.TgZ(0,"th",44),e.SDv(1,45),e.qZA())}function Y_(o,i){if(1&o&&(e.TgZ(0,"td",46)(1,"a",47),e._uU(2),e.qZA()()),2&o){const t=i.$implicit;e.xp6(2),e.hij(" ",t.product," ")}}function z_(o,i){1&o&&(e.TgZ(0,"th",44),e.SDv(1,48),e.qZA())}function Q_(o,i){if(1&o&&(e.TgZ(0,"td",49),e._uU(1),e.qZA()),2&o){const t=i.$implicit;e.xp6(1),e.hij(" ",t.service_id," ")}}function X_(o,i){1&o&&(e.TgZ(0,"th",44),e.SDv(1,50),e.qZA())}function B_(o,i){if(1&o&&(e.TgZ(0,"td",49),e._uU(1),e.qZA()),2&o){const t=i.$implicit;e.xp6(1),e.hij(" ",t.start_date," ")}}function J_(o,i){1&o&&(e.TgZ(0,"th",44),e.SDv(1,51),e.qZA())}function V_(o,i){if(1&o&&(e.TgZ(0,"td",49),e._uU(1),e.qZA()),2&o){const t=i.$implicit;e.xp6(1),e.hij(" ",t.status," ")}}function H_(o,i){1&o&&e._UZ(0,"tr",52)}const j_=function(o){return{"selected-row":o}};function W_(o,i){if(1&o&&e._UZ(0,"tr",53),2&o){const t=i.$implicit,n=e.oxw();e.Q6J("ngClass",e.VKq(1,j_,n.isServiceSelected(t.service_id)))}}function ea(o,i){1&o&&(e.TgZ(0,"div",54),e.SDv(1,55),e.qZA())}function ta(o,i){if(1&o){const t=e.EpF();e.TgZ(0,"label",56)(1,"input",57),e.NdJ("change",function(){const _=e.CHM(t).index,s=e.oxw();return s.filterParams.pageSize=s.pageSizeOptions[_],s.resetPaginationParams(),e.KtG(s.refreshTable())}),e.qZA(),e._uU(2),e.qZA()}if(2&o){const t=i.index,n=e.oxw();e.MGl("for","view-",n.pageSizeOptions[t],""),e.xp6(1),e.MGl("id","view-",n.pageSizeOptions[t],""),e.Q6J("checked",n.pageSizeOptions[t]==n.filterParams.pageSize),e.xp6(1),e.Oqu(n.pageSizeOptions[t])}}const na=function(o){return{"search-input__container_hidden":o}};let Se=(()=>{class o{constructor(t,n,a){this.getListOfServices=t,this.matDialogRef=n,this.data=a,this.menuOpened=!1,this.displayedColumns=["selected","product","service_id","start_date","status"],this.searchToggled=!1,this.direction="desc",this.filterParams={page:0,pageSize:10,common:"",sort_field:"",sort_direction:"",condition:{}},this.product=[],this.serviceIds=[],this.filterParamsSubject=new ce.X(this.filterParams.common),this.products=[],this.productLabel="Product",this.serviceIDLabel="Service ID",this.numberOfRowsAtAll=0,this.currentPage=0,this.pageSizeOptions=[10,30,50],this.numberOfPages=0}ngOnInit(){this.refreshTable(),this.filterParamsSubject.pipe((0,Te.b)(800),(0,pe.x)()).subscribe(t=>{this.filterParams.common=t,this.resetPaginationParams(),this.refreshTable()})}selectAllUsers(){this.products.forEach(t=>{t.selected=!0})}deselectAllUsers(){this.products.forEach(t=>{t.selected=!1})}onMainCheckboxChange(t){t.checked?this.selectAllUsers():this.deselectAllUsers()}setSelectedServicesFirstly(){this.products.forEach(t=>{this.data.selectedServices.includes(t.service_id)&&(t.selected=!0)}),this.products.sort((t,n)=>this.data.selectedServices.indexOf(n.service_id)-this.data.selectedServices.indexOf(t.service_id))}sort(t){this.filterParams.sort_direction=t.direction,this.filterParams.sort_field=t.direction?t.active:"",this.refreshTable()}get isSomeSelected(){return this.products.some(t=>!0===t.selected)&&!this.isAllSelected}get isAllSelected(){return this.products.every(t=>!0===t.selected)}isServiceSelected(t){return this.products.find(n=>n.service_id===t).selected}close(){this.products.forEach(t=>{t.selected=!1}),this.filterParams={},this.data.selectedServices=[],this.refreshTable()}apply(){const t=this.products.filter(n=>!0===n.selected).map(n=>n.service_id);this.matDialogRef.close(t)}get numberOfSelectedProducts(){return this.products.filter(t=>!0===t.selected).length}resetPaginationParams(){this.filterParams.page=0,this.currentPage=0}setDate(t){this.matDateTrigger.closeMenu(),this.filterParams.condition.issued_date=k.g.removeEmptyProperties(t),this.refreshTable()}filterRows(t,n){this.filterParams.condition[n]=t,this.refreshTable()}refreshTable(){this.filterParams.condition=k.g.removeEmptyProperties(this.filterParams.condition);const t=k.g.removeEmptyProperties(this.filterParams);this.getListOfServices.execute(t).subscribe(n=>{this.products=n.rows,this.serviceIds=n.filters.service_id,this.product=n.filters.product,this.currentPage=n.pagination.current_page,this.numberOfPages=n.pagination.last_page,this.numberOfRowsAtAll=n.pagination.rows_total,this.setSelectedServicesFirstly()})}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(L_.Z),e.Y36($.so),e.Y36($.WI))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-services-modal"]],viewQuery:function(t,n){if(1&t&&e.Gf(F.p6,5),2&t){let a;e.iGM(a=e.CRH())&&(n.matDateTrigger=a.first)}},decls:48,vars:23,consts:function(){let i,t,n,a,_,s,c,p,g,u;return i="Type here",t="show ",n="CLEAR ALL",a="APPLY",_=" You selected " + "\ufffd0\ufffd" + " " + "\ufffd1\ufffd" + " ",s="Product",c="Service ID",p="Start",g="Status",u="No records",[[1,"searching","flex"],["type","button",1,"close-btn",3,"mat-dialog-close"],[3,"data","label","selectedItems"],["matSuffix","","mat-icon-button","","aria-label","Search",1,"search",3,"disableRipple"],["src","assets/pic/icons/search-icon.svg","alt","Search",3,"click"],[1,"services-search-input__container",3,"ngClass"],["appearance","fill",1,"search-input"],["matPrefix",""],["src","assets/pic/icons/search-icon.svg","alt","search icon"],["placeholder",i,"matInput","","type","text",3,"input"],["commonInput",""],["class","multi-actions__label",4,"ngIf"],[1,"table-wrap"],["mat-table","","matSort","",1,"user-table",3,"dataSource","matSortActive","matSortDirection","matSortChange"],["matColumnDef","selected"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","style","max-width: 50px;",4,"matCellDef"],["matColumnDef","product"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","service_id"],["mat-cell","","class","cell-nowrap",4,"matCellDef"],["matColumnDef","start_date"],["matColumnDef","status"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"ngClass",4,"matRowDef","matRowDefColumns"],["class","no-records",4,"ngIf"],[1,"table-sort"],[1,"table-view","view"],t,["class","view__label",3,"for",4,"ngFor","ngForOf"],[1,"table__paginator"],[1,"table-paginator",3,"current","last","count","length","limit","pageSizeOptions","changePage"],[1,"actions"],[1,"clear","pointer","capital-gothic",3,"click"],n,[1,"apply","pointer","capital-gothic",3,"click"],a,[1,"multi-actions__label"],_,["mat-header-cell",""],[3,"checked","indeterminate","change"],["mat-cell","",2,"max-width","50px"],[3,"ngModel","ngModelChange"],["mat-header-cell","","mat-sort-header",""],s,["mat-cell",""],[1,"capital-gothic"],c,["mat-cell","",1,"cell-nowrap"],p,g,["mat-header-row",""],["mat-row","",3,"ngClass"],[1,"n
1o-records"],u,[1,"view__label",3,"for"],["name","view","type","radio",1,"view__input",3,"id","checked","change"]]},template:function(t,n){if(1&t){const a=e.EpF();e.TgZ(0,"div",0)(1,"button",1)(2,"mat-icon"),e._uU(3,"close"),e.qZA()(),e.TgZ(4,"app-custom-search-multiselect",2),e.NdJ("selectedItems",function(s){return n.resetPaginationParams(),n.filterRows(s,"product")}),e.qZA(),e.TgZ(5,"app-custom-search-multiselect",2),e.NdJ("selectedItems",function(s){return n.resetPaginationParams(),n.filterRows(s,"service_id")}),e.qZA(),e.TgZ(6,"button",3)(7,"mat-icon")(8,"img",4),e.NdJ("click",function(){return n.searchToggled=!n.searchToggled}),e.qZA()()(),e.TgZ(9,"div",5)(10,"mat-form-field",6)(11,"span",7),e._UZ(12,"img",8),e.qZA(),e.TgZ(13,"input",9,10),e.NdJ("input",function(){e.CHM(a);const s=e.MAs(14);return e.KtG(n.filterParamsSubject.next(s.value))}),e.qZA()()(),e.YNc(15,G_,2,2,"span",11),e.qZA(),e.TgZ(16,"div",12)(17,"table",13),e.NdJ("matSortChange",function(s){return n.sort(s)}),e.ynx(18,14),e.YNc(19,Z_,2,2,"th",15),e.YNc(20,q_,2,1,"td",16),e.BQk(),e.ynx(21,17),e.YNc(22,K_,2,0,"th",18),e.YNc(23,Y_,3,1,"td",19),e.BQk(),e.ynx(24,20),e.YNc(25,z_,2,0,"th",18),e.YNc(26,Q_,2,1,"td",21),e.BQk(),e.ynx(27,22),e.YNc(28,X_,2,0,"th",18),e.YNc(29,B_,2,1,"td",21),e.BQk(),e.ynx(30,23),e.YNc(31,J_,2,0,"th",18),e.YNc(32,V_,2,1,"td",21),e.BQk(),e.YNc(33,H_,1,0,"tr",24),e.YNc(34,W_,1,3,"tr",25),e.qZA(),e.YNc(35,ea,2,0,"div",26),e.qZA(),e.TgZ(36,"div",27)(37,"div",28)(38,"span"),e.SDv(39,29),e.qZA(),e.YNc(40,ta,3,4,"label",30),e.qZA(),e.TgZ(41,"div",31)(42,"wo-paginator",32),e.NdJ("changePage",function(s){return n.filterParams.page=s.page-1,n.refreshTable()}),e.qZA()()(),e.TgZ(43,"div",33)(44,"p",34),e.NdJ("click",function(){return n.close()}),e.SDv(45,35),e.qZA(),e.TgZ(46,"p",36),e.NdJ("click",function(){return n.apply()}),e.SDv(47,37),e.qZA()()}2&t&&(e.xp6(1),e.Q6J("mat-dialog-close",!1),e.xp6(3),e.Q6J("data",n.product)("label",n.productLabel),e.xp6(1),e.Q6J("data",n.serviceIds)("label",n.serviceIDLabel),e.xp6(1),e.Q6J("disableRipple",!0),e.xp6(3),e.Q6J("ngClass",e.VKq(21,na,!n.searchToggled)),e.xp6(6),e.Q6J("ngIf",n.numberOfSelectedProducts>0),e.xp6(2),e.Q6J("dataSource",n.products)("matSortActive",n.filterParams.sort)("matSortDirection",n.direction),e.xp6(16),e.Q6J("matHeaderRowDef",n.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",n.displayedColumns),e.xp6(1),e.Q6J("ngIf",0===n.products.length),e.xp6(5),e.Q6J("ngForOf",n.pageSizeOptions),e.xp6(2),e.Q6J("current",n.filterParams.page+1)("last",n.numberOfPages)("count",n.numberOfRowsAtAll)("length",n.filterParams.pageSize)("limit",n.filterParams.pageSize)("pageSizeOptions",n.pageSizeOptions))},dependencies:[T.mk,T.sg,T.O5,r.JJ,r.On,y.lW,ue.oG,$.ZT,f.KE,f.qo,f.R9,G.Hw,Z.Nt,Ne.H,Pe.o,C.BZ,C.fO,C.as,C.w1,C.Dz,C.nj,C.ge,C.ev,C.XQ,C.Gk,V.YE,V.nU],styles:[".close-btn[_ngcontent-%COMP%]{position:absolute;top:-11px;right:-11px}.table-wrap[_ngcontent-%COMP%]{overflow-x:hidden;white-space:nowrap;margin-top:20px;position:relative;max-height:320px;padding:20px 0;overflow-y:auto;border:1px solid #E0E0E0}[_ngcontent-%COMP%]::-webkit-scrollbar{width:2px;height:2px;background-color:#fff;padding:0 4px}[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:rgb(230,230,230)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#BBBBBB;border-radius:0}[_nghost-%COMP%]     .user-table .mat-checkbox-inner-container{height:12px;width:12px}[_nghost-%COMP%]     .user-table .mat-checkbox-ripple{display:none}[_nghost-%COMP%]     .user-table .mat-checkbox-frame{border-radius:0;border:0;background:#DDDDDD}[_nghost-%COMP%]     .user-table .mat-checkbox-indeterminate.mat-accent .mat-checkbox-background, [_nghost-%COMP%]     .user-table .mat-checkbox-checked.mat-accent .mat-checkbox-background{background:#D6117F;border-radius:0}[_nghost-%COMP%]     .user-table .mat-checkbox-indeterminate.mat-accent .mat-checkbox-background svg, [_nghost-%COMP%]     .user-table .mat-checkbox-checked.mat-accent .mat-checkbox-background svg{display:none}[_nghost-%COMP%]     .user-table .mat-select-trigger{background:#144A90;padding:5px 10px 5px 5px;color:#fff!important;display:flex;text-align:center;height:20px;width:130px;text-transform:uppercase;font-size:14px}[_nghost-%COMP%]     .user-table .active .mat-select-trigger{background:#144A90}[_nghost-%COMP%]     .user-table .disabled .mat-select-trigger{background:#A8B1C1}[_nghost-%COMP%]     .user-table .mat-select-value{color:#fff!important}[_nghost-%COMP%]     .user-table .mat-select-placeholder{color:#fff}table[_ngcontent-%COMP%]{width:90%;table-layout:auto;border-collapse:collapse}table[_ngcontent-%COMP%]     .mat-row{border-bottom:2px solid transparent}table[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], table[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{font-size:16px;padding:0 10px;text-align:left;border:none;text-overflow:ellipsis;overflow:hidden;box-sizing:border-box}table[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{font-weight:700;color:#000;border-bottom:1px solid #000}table[_ngcontent-%COMP%]   .align-top[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]   .cell-link[_ngcontent-%COMP%], table[_ngcontent-%COMP%]   .align-top[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]   .multi-cell[_ngcontent-%COMP%]{display:block;margin-bottom:10px;margin-top:10px}table[_ngcontent-%COMP%]   .align-top[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]   .cell-link[_ngcontent-%COMP%]:not(:last-child), table[_ngcontent-%COMP%]   .align-top[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]   .multi-cell[_ngcontent-%COMP%]:not(:last-child){margin-bottom:26px}table[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]   .note[_ngcontent-%COMP%]{font-size:12px;color:#a6a6a6}th.mat-header-cell[_ngcontent-%COMP%]:first-of-type, td.mat-cell[_ngcontent-%COMP%]:first-of-type, td.mat-footer-cell[_ngcontent-%COMP%]:first-of-type{padding-left:10px}[_nghost-%COMP%]     .mat-table tbody tr:nth-child(odd){background:#EAF2FC}[_nghost-%COMP%]     .mat-table .mat-sort-header-content{text-align:left}[_nghost-%COMP%]     .mat-button-ripple.mat-ripple, [_nghost-%COMP%]     .mat-button-focus-overlay{display:none}.cell-link[_ngcontent-%COMP%]{font-size:14px;color:#144a90;text-decoration:none;cursor:pointer}.cell-nowrap[_ngcontent-%COMP%]{white-space:nowrap}table[_ngcontent-%COMP%]   td.cell-center[_ngcontent-%COMP%]{text-align:center}.table-sort[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-items:center;margin-top:15px;gap:40px;width:100%}.view__title[_ngcontent-%COMP%]{font-size:1rem;font-weight:300}.view__label[_ngcontent-%COMP%]{position:relative;padding:5px;height:30px;border:1px solid #fff;font-size:1rem;font-weight:300;line-height:24px;transition:all .2s linear;margin-right:3px;
1cursor:pointer}.view__input[_ngcontent-%COMP%]{position:absolute;opacity:0;cursor:pointer}.view[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]:has(input:checked){background:#D9EAFF}[_nghost-%COMP%]     wo-paginator .wo-paginator__link{background:none;border:none;font-size:16px;padding:4px}[_nghost-%COMP%]     wo-paginator .wo-paginator__link:hover{background:none;border:none}[_nghost-%COMP%]     wo-paginator .wo-paginator__item_disabled .wo-paginator__link:hover{background:none;border:none!important}[_nghost-%COMP%]     wo-paginator .wo-paginator__item_active .wo-paginator__link{background:#D9EAFF!important;box-shadow:none!important;color:#000!important}.actions[_ngcontent-%COMP%]{display:flex;gap:40px;margin-top:23px}.actions[_ngcontent-%COMP%]   .apply[_ngcontent-%COMP%]{color:#144a90;font-size:14px;font-style:normal;font-weight:400;line-height:normal;text-transform:uppercase}.actions[_ngcontent-%COMP%]   .clear[_ngcontent-%COMP%]{color:#a6a6a6;font-size:14px;font-style:normal;font-weight:400;line-height:normal;text-transform:uppercase}.search-select[_ngcontent-%COMP%]{padding-left:.75em;padding-right:.75em;background-color:#d9eaff;width:20vw;height:42px;display:flex;align-items:center;margin-top:4px!important;box-sizing:border-box;cursor:pointer}.search-select[_ngcontent-%COMP%]   .select-arrow[_ngcontent-%COMP%]{height:8px;width:13px;background:url(/en/assets/pic/icons/arrow.svg) no-repeat;margin-left:auto}.search-select[_ngcontent-%COMP%]   .rotate[_ngcontent-%COMP%]{transform:rotate(180deg)}  .services-search-input__container{display:flex;justify-content:flex-end;position:absolute;bottom:-20px}  .services-search-input__container.search-input__container_hidden{visibility:hidden;height:0}  .services-search-input__container .search-input img{width:20px;height:20px;transform:translateY(2px)}  .services-search-input__container .search-input .mat-form-field-flex{width:390px;padding:0 13px;border-radius:0;border-bottom:none;background:#F3F3F3;z-index:3;position:relative}  .services-search-input__container .search-input .mat-form-field-wrapper{padding-bottom:0}  .services-search-input__container .search-input .mat-input-element{color:#a6a6a6;font-family:Capital Gothic;font-size:16px;font-style:normal;font-weight:300;line-height:normal;letter-spacing:.16px}  .services-search-input__container .search-input .mat-form-field-infix{padding:9px;border-top:0}  .services-search-input__container .search-input .mat-form-field-underline{display:none}.searching[_ngcontent-%COMP%]{gap:20px;position:relative;margin-bottom:28px}.searching[_ngcontent-%COMP%]   .multi-actions__label[_ngcontent-%COMP%]{position:absolute;left:0;bottom:-10px;font-size:12px;font-style:normal;color:#d6117f}.selected-row[_ngcontent-%COMP%]{text-shadow:.7px 0 0 currentColor;border-bottom:2px solid #D6117F!important}"]}),o})();var oa=l(17172),ia=l(1107),_a=l(40626);const aa=["contactForm"];function sa(o,i){if(1&o&&(e.tHW(0,3,1),e.TgZ(1,"app-tooltip"),e._UZ(2,"p"),e.qZA(),e.N_p()),2&o){const t=e.oxw();e.xp6(2),e.pQV(t.tooltipsService.tooltips.new_dispute_invoice_ticket),e.QtT(0)}}function ra(o,i){if(1&o&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&o){const t=i.$implicit,n=e.oxw(2);e.xp6(1),e.Oqu(n.getInvoiceLabel(t))}}function la(o,i){if(1&o&&(e.TgZ(0,"p",71),e.SDv(1,72),e.qZA()),2&o){const t=e.oxw(2);e.Q6J("ngClass",t.invoicesRequired?"error-color-text":"")}}function ca(o,i){if(1&o&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&o){const t=i.$implicit;e.xp6(1),e.Oqu(t)}}function Ta(o,i){if(1&o){const t=e.EpF();e.TgZ(0,"div",73)(1,"p",74),e._uU(2),e.qZA(),e.TgZ(3,"mat-icon",75),e.NdJ("click",function(){const _=e.CHM(t).$implicit,s=e.oxw(2);return e.KtG(s.deleteService(_))}),e._uU(4,"close"),e.qZA()()}if(2&o){const t=i.$implicit;e.xp6(2),e.Oqu(t)}}function pa(o,i){if(1&o){const t=e.EpF();e.TgZ(0,"p",76),e.NdJ("click",function(){e.CHM(t);const a=e.oxw(2);return e.KtG(a.undoServiceChanges())}),e.SDv(1,77),e.qZA()}}function da(o,i){1&o&&(e.TgZ(0,"mat-error"),e.SDv(1,78),e.qZA())}function ga(o,i){1&o&&(e.TgZ(0,"p",79),e.SDv(1,80),e.qZA())}function Ca(o,i){if(1&o&&(e.TgZ(0,"p",79),e._uU(1),e.qZA()),2&o){const t=e.oxw(2);e.xp6(1),e.Oqu(t.errorMessage)}}function ua(o,i){if(1&o&&(e.TgZ(0,"div",85),e._UZ(1,"mat-progress-bar",86),e.TgZ(2,"p",87),e._uU(3),e.qZA()()),2&o){const t=e.oxw().index,n=e.oxw(2);e.xp6(1),e.Q6J("value",n.showedFiles[t].percentage),e.xp6(2),e.hij("",n.showedFiles[t].percentage,"%")}}function Ea(o,i){if(1&o){const t=e.EpF();e.TgZ(0,"div",81)(1,"div",73)(2,"p",82),e._uU(3),e.qZA(),e.TgZ(4,"mat-icon",75),e.NdJ("click",function(){const _=e.CHM(t).index,s=e.oxw(2);return e.KtG(s.deleteFile(_))}),e._uU(5,"close"),e.qZA()(),e.YNc(6,ua,4,2,"div",83),e.TgZ(7,"p",84),e._uU(8),e.qZA()()}if(2&o){const t=i.index,n=e.oxw(2);e.xp6(3),e.Oqu(n.getFileNameFromForm(t)),e.xp6(3),e.Q6J("ngIf",n.showedFiles[t].isUploading),e.xp6(2),e.hij("",n.getFileSizeFromForm(t)," MB")}
1}const we=function(o){return{"error-border":o}},ke=function(o){return{"error-show":o}};function Oa(o,i){if(1&o){const t=e.EpF();e.TgZ(0,"div",28)(1,"div",29)(2,"p",30),e.SDv(3,31),e.qZA(),e.TgZ(4,"div",32),e.NdJ("click",function(){e.CHM(t);const a=e.oxw();return e.KtG(a.openInvoicesModal())}),e.TgZ(5,"div",33),e.YNc(6,ra,2,1,"p",34),e.YNc(7,la,2,1,"p",35),e.qZA(),e.TgZ(8,"p",36),e.SDv(9,37),e.qZA(),e._UZ(10,"div",38),e.qZA(),e.TgZ(11,"p",39),e.SDv(12,40),e.qZA()(),e.TgZ(13,"div",29)(14,"p",30),e.SDv(15,41),e.qZA(),e.TgZ(16,"div",42)(17,"div",33),e.YNc(18,ca,2,1,"p",34),e.qZA()(),e.TgZ(19,"p",43),e.SDv(20,44),e.qZA()(),e.TgZ(21,"div",29)(22,"p",30),e.SDv(23,45),e.qZA(),e.TgZ(24,"div",42)(25,"div",33),e.YNc(26,Ta,5,1,"div",46),e.qZA(),e.TgZ(27,"p",43),e.SDv(28,47),e.qZA()(),e.YNc(29,pa,2,0,"p",48),e.qZA(),e.TgZ(30,"div",49)(31,"p",30),e.SDv(32,50),e.qZA(),e.TgZ(33,"mat-form-field",51),e._UZ(34,"input",52),e.YNc(35,da,2,0,"mat-error",4),e.qZA(),e.TgZ(36,"p",53),e.SDv(37,54),e.qZA()(),e.TgZ(38,"div",55)(39,"p",30),e.SDv(40,56),e.qZA(),e.TgZ(41,"div",57),e._UZ(42,"ngx-editor-menu",58)(43,"ngx-editor",59),e.TgZ(44,"div",60),e.SDv(45,61),e.qZA()()(),e.TgZ(46,"div",62)(47,"p",63),e.NdJ("click",function(){e.CHM(t);const a=e.MAs(50),_=e.oxw();return e.KtG(_.isFilesValid&&a.click())}),e.tHW(48,64),e.TgZ(49,"input",65,66),e.NdJ("input",function(a){e.CHM(t);const _=e.oxw();return e.KtG(_.doFileInput(a))}),e.qZA(),e.N_p(),e.qZA(),e.YNc(51,ga,2,0,"p",67),e.YNc(52,Ca,2,1,"p",67),e.TgZ(53,"p",39),e.SDv(54,68),e.qZA()(),e.TgZ(55,"div",69),e.YNc(56,Ea,9,3,"div",70),e.qZA()()}if(2&o){const t=e.oxw();e.Q6J("formGroup",t.disputeInvoiceForm),e.xp6(4),e.Q6J("ngClass",t.invoicesRequired?"error-line":""),e.xp6(2),e.Q6J("ngForOf",t.disputeInvoiceForm.invoices.value),e.xp6(1),e.Q6J("ngIf",!t.disputeInvoiceForm.invoices.value.length),e.xp6(1),e.Q6J("ngClass",t.invoicesRequired?"error-text":""),e.xp6(2),e.Q6J("ngClass",t.invoicesRequired?"error-arrow":""),e.xp6(8),e.Q6J("ngForOf",t.disputeInvoiceForm.period.value),e.xp6(8),e.Q6J("ngForOf",t.disputeInvoiceForm.services.value),e.xp6(3),e.Q6J("ngIf",t.deletedService),e.xp6(6),e.Q6J("ngIf",t.disputeInvoiceForm.subject.hasError("required")),e.xp6(6),e.Q6J("ngClass",e.VKq(22,we,t.disputeInvoiceForm.request.invalid&&(t.disputeInvoiceForm.request.dirty||t.disputeInvoiceForm.request.touched))
1),e.xp6(1),e.Q6J("editor",t.disputeInvoiceForm.editor),e.xp6(1),e.Q6J("editor",t.disputeInvoiceForm.editor)("placeholder",t.textareaLabel)("formControl",t.disputeInvoiceForm.request),e.xp6(1),e.Q6J("ngClass",e.VKq(24,ke,t.disputeInvoiceForm.request.invalid&&(t.disputeInvoiceForm.request.dirty||t.disputeInvoiceForm.request.touched))),e.xp6(3),e.Q6J("matTooltip",t.tooltipText)("matTooltipDisabled",!t.isFilesValid)("ngClass",t.isFilesValid?"":"attach-disabled"),e.xp6(4),e.Q6J("ngIf",!t.isFilesValid),e.xp6(1),e.Q6J("ngIf",t.errorMessage),e.xp6(4),e.Q6J("ngForOf",t.showedFiles)}}function Pa(o,i){if(1&o&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&o){const t=i.$implicit;e.xp6(1),e.Oqu(t)}}function Sa(o,i){if(1&o&&(e.TgZ(0,"p",71),e.SDv(1,107),e.qZA()),2&o){const t=e.oxw(2);e.Q6J("ngClass",t.servicesRequired?"error-color-text":"")}}function ma(o,i){if(1&o&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&o){const t=i.$implicit;e.xp6(1),e.Oqu(t)}}function Ma(o,i){if(1&o&&(e.TgZ(0,"p",71),e.SDv(1,108),e.qZA()),2&o){const t=e.oxw(2);e.Q6J("ngClass",t.periodsRequired?"error-color-text":"")}}function fa(o,i){if(1&o){const t=e.EpF();e.TgZ(0,"div",73)(1,"p",74),e._uU(2),e.qZA(),e.TgZ(3,"mat-icon",75),e.NdJ("click",function(){const _=e.CHM(t).$implicit,s=e.oxw(2);return e.KtG(s.deleteInvoice(_))}),e._uU(4,"close"),e.qZA()()}if(2&o){const t=i.$implicit;e.xp6(2),e.Oqu(t)}}function Na(o,i){if(1&o){const t=e.EpF();e.TgZ(0,"p",76),e.NdJ("click",function(){e.CHM(t);const a=e.oxw(2);return e.KtG(a.undoInvoiceChanges())}),e.SDv(1,109),e.qZA()}}function Ia(o,i){1&o&&(e.TgZ(0,"mat-error"),e.SDv(1,110),e.qZA())}function ha(o,i){1&o&&(e.TgZ(0,"p",79),e.SDv(1,111),e.qZA())}function Aa(o,i){if(1&o&&(e.TgZ(0,"div",85),e._UZ(1,"mat-progress-bar",86),e.TgZ(2,"p",87),e._uU(3),e.qZA()()),2&o){const t=e.oxw().index,n=e.oxw(2);e.xp6(1),e.Q6J("value",n.showedFiles[t].percentage),e.xp6(2),e.hij("",n.showedFiles[t].percentage,"%")}}function Fa(o,i){if(1&o){const t=e.EpF();e.TgZ(0,"div",81)(1,"div",73)(2,"p",82),e._uU(3),e.qZA(),e.TgZ(4,"mat-icon",75),e.NdJ("click",function(){const _=e.CHM(t).index,s=e.oxw(2);return e.KtG(s.deleteFile(_))}),e._uU(5,"close"),e.qZA()(),e.YNc(6,Aa,4,2,"div",83),e.TgZ(7,"p",84),e._uU(8),e.qZA()()}if(2&o){const t=i.index,n=e.oxw(2);e.xp6(3),e.Oqu(n.getFileNameFromForm(t)),e.xp6(3),e.Q6J("ngIf",n.showedFiles[t].isUploading),e.xp6(2),e.hij("",n.getFileSizeFromForm(t)," MB")}}function Ra(o,i){if(1&o){const t=e.EpF();e.TgZ(0,"div",28)(1,"div",29)(2,"p",30),e.SDv(3,88),e.qZA(),e.TgZ(4,"div",32),e.NdJ("click",function(){e.CHM(t);const a=e.oxw();return e.KtG(a.openServicesModal())}),e.TgZ(5,"div",33),e.YNc(6,Pa,2,1,"p",34),e.YNc(7,Sa,2,1,"p",35),e.qZA(),e._UZ(8,"div",38),e.TgZ(9,"p",36),e.SDv(10,89),e.qZA()(),e.TgZ(11,"p",39),e.SDv(12,90),e.qZA()(),e.TgZ(13,"div",29)(14,"p",30),e.SDv(15,91),e.qZA(),e.TgZ(16,"div",92),e.NdJ("menuOpened",function(){e.CHM(t);const a=e.oxw();return e.KtG(a.menuOpened=!0)})("menuClosed",function(){e.CHM(t);const a=e.oxw();return e.KtG(a.menuOpened=!1)}),e.TgZ(17,"div",33),e.YNc(18,ma,2,1,"p",34),e.YNc(19,Ma,2,1,"p",35),e.qZA(),e._UZ(20,"div",38),e.TgZ(21,"p",36),e.SDv(22,93),e.qZA()(),e.TgZ(23,"mat-menu",94,95)(25,"app-custom-year-date-picker",96),e.NdJ("dateRangeChanged",function(a){e.CHM(t);const _=e.oxw();return e.KtG(_.setDate(a))})("click",function(a){return a.stopPropagation()}),e.qZA()(),e.TgZ(26,"p",39),e.SDv(27,97),e.qZA()(),e.TgZ(28,"div",29)(29,"p",30),e.SDv(30,98),e.qZA(),e.TgZ(31,"div",42)(32,"div",33),e.YNc(33,fa,5,1,"div",46),e.qZA()(),e.TgZ(34,"p",43),e.SDv(35,99),e.qZA(),e.YNc(36,Na,2,0,"p",48),e.qZA(),e.TgZ(37,"div",49)(38,"p",30),e.SDv(39,100),e.qZA(),e.TgZ(40,"mat-form-field",51),e._UZ(41,"input",101),e.YNc(42,Ia,2,0,"mat-error",4),e.qZA(),e.TgZ(43,"p",53),e.SDv(44,102),e.qZA()(),e.TgZ(45,"div",55)(46,"p",30),e.SDv(47,103),e.qZA(),e.TgZ(48,"div",57),e._UZ(49,"ngx-editor-menu",58)(50,"ngx-editor",59),e.TgZ(51,"div",60),e.SDv(52,104),e.qZA()()(),e.TgZ(53,"div",62)(54,"p",63),e.NdJ("click",function(){e.CHM(t);const a=e.MAs(57),_=e.oxw();return e.KtG(_.isFilesValid&&a.click())}),e.tHW(55,105),e.TgZ(56,"input",65,66),e.NdJ("input",function(a){e.CHM(t);const _=e.oxw();return e.KtG(_.doFileInput(a))}),e.qZA(),e.N_p(),e.qZA(),e.YNc(58,ha,2,0,"p",67),e.TgZ(59,"p",39),e.SDv(60,106),e.qZA()(),e.TgZ(61,"div",69),e.YNc(62,Fa,9,3,"div",70),e.qZA()()}if(2&o){const t=e.MAs(24),n=e.oxw();e.Q6J("formGroup",n.disputeServiceForm),e.xp6(4),e.Q6J("ngClass",n.servicesRequired?"error-line":""),e.xp6(2),e.Q6J("ngForOf",n.disputeServiceForm.services.value),e.xp6(1),e.Q6J("ngIf",!n.disputeServiceForm.services.value.length),e.xp6(1),e.Q6J("ngClass",n.servicesRequired?"error-arrow":""),e.xp6(1),e.Q6J("ngClass",n.servicesRequired?"error-text":""),e.xp6(7),e.Q6J("matMenuTriggerFor",t)("ngClass",n.periodsRequired?"error-line":""),e.xp6(2),e.Q6J("ngForOf",n.disputeServiceForm.period.value),e.xp6(1),e.Q6J("ngIf",!n.disputeServiceForm.period.value.length),e.xp6(1),e.Q6J("ngClass",n.periodsRequired?"error-arrow":""),e.xp6(1),e.Q6J("ngClass",n.periodsRequired?"error-text":""),e.xp6(12),e.Q6J("ngForOf",n.disputeServiceForm.invoices.value),e.xp6(3),e.Q6J("ngIf",n.deletedInvoice),e.xp6(6),e.Q6J("ngIf",n.disputeServiceForm.subject.hasError("required")),e.xp6(6),e.Q6J("ngClass",e.VKq(26,we,n.disputeServiceForm.request.invali
1d&&(n.disputeServiceForm.request.dirty||n.disputeServiceForm.request.touched))),e.xp6(1),e.Q6J("editor",n.disputeServiceForm.editor),e.xp6(1),e.Q6J("editor",n.disputeServiceForm.editor)("placeholder",n.textareaLabel)("formControl",n.disputeServiceForm.request),e.xp6(1),e.Q6J("ngClass",e.VKq(28,ke,n.disputeServiceForm.request.invalid&&(n.disputeServiceForm.request.dirty||n.disputeServiceForm.request.touched))),e.xp6(3),e.Q6J("matTooltip",n.tooltipText)("matTooltipDisabled",!n.isFilesValid)("ngClass",n.isFilesValid?"":"attach-disabled"),e.xp6(4),e.Q6J("ngIf",!n.isFilesValid),e.xp6(4),e.Q6J("ngForOf",n.showedFiles)}}let xa=(()=>{class o{constructor(t,n,a,_,s,c,p,g,u,d){this.breadcrumbs=t,this.sendFileUsecase=n,this.router=a,this.route=_,this.getCompanyContactsUseCase=s,this.matDialog=c,this.getPeriodsAndServicesByInvoicesUsecase=p,this.getInvoicesByPeriodAndServicesUsecase=g,this.sendDisputeInvoiceRequestUsecase=u,this.tooltipsService=d,this.invoiceType="INVOICES",this.defaultEmails=[],this.disputeInvoiceForm=new g_,this.disputeServiceForm=new C_,this.showedFiles=[],this.menuOpened=!1,this.deletedService=!1,this.invoicesRequired=!1,this.servicesRequired=!1,this.periodsRequired=!1,this.selectedInvoices=[],this.textareaLabel="Describe your request",this.deletedInvoice=!1,this.errorMessage="",this.tooltipText="You can attach max 5 files each below 25Mb. ( .doc, .docx, .txt, .rtf, .xls, .xlsx, .pdf, .csv, .png, .jpg, .jpeg, .tiff, .gif, .zip, .rar, .tar, .gz, .pcap, .cap )",this.getLanguageEnumLabel=u_.q,this.getTimeZoneEnumLabel=Ue.s,this.format=I.Z}ngOnInit(){this.route.queryParams.subscribe(t=>{if(t.id&&t.isn_vd){let n={id:+t.id,isn_vd:t.isn_vd},a=[+t.id];this.invoicesRequired=!1,this.disputeInvoiceForm.invoices.setValue([{id:+t.id,isn_vd:t.isn_vd}]),this.menuOpened=!1,this.selectedInvoices=[n],this.getPeriodsAndServicesByInvoicesUsecase.execute(a).subscribe(_=>{this.invoicesTable=_,this.invoicesTableCopy=JSON.parse(JSON.stringify(_)),this.updateInvoiceForm(_),this.deletedService=!1})}}),this.setUpBreadcrumbLinks(),this.getCompanyContactsUseCase.execute("commercial").subscribe(t=>{this.defaultEmails=t}),this.handleServiceFormChanges()}handleServiceFormChanges(){(0,O_.a)([this.disputeServiceForm.services.valueChanges,this.disputeServiceForm.period.valueChanges]).pipe((0,H.U)(n=>((0,E_.O)(""),n))).subscribe(n=>{!this.disputeServiceForm.services.value.length||!this.disputeServiceForm.period.value.length||this.getInvoicesByPeriodAndServicesUsecase.execute({service_ids:this.disputeServiceForm.services.value,periods:this.disputeServiceForm.period.value}).subscribe(a=>{this.serviceTable=a,this.serviceTableCopy=JSON.parse(JSON.stringify(a)),this.updateServicesForm(a),this.deletedInvoice=!1})})}setUpBreadcrumbLinks(){this.breadcrumbs.setLinks([{route:"/",text:"HOME"},{route:"/main/support",text:"SUPPORT"},{route:"/main/support/tickets",text:"BILLING TICKETS"},{text:"DISPUTE INVOICE"}])}doFileInput(t){const n=t.target.files;if(n&&!(n.length<1)){this.errorMessage="";for(let a=0;a<n.length;a++){const _=n[a];if(!this.isFilesValid)break;if(_.size>26214400)return void(this.errorMessage="File size should be less than 25MB");if(!_.type)return void(this.errorMessage="File type is not allowed");{const s=_.type.split("/")[1];if(!["doc","docx","txt","rtf","xls","xlsx","pdf","csv","png","jpg","jpeg","tiff","gif","zip","rar","tar","gz","pcap","cap","vnd.openxmlformats-officedocument.spreadsheetml.sheet","vnd.openxmlformats-officedocument.wordprocessingml.document"].includes(s))return void(this.errorMessage="File type " + s + " is not allowed")}this.showedFiles.push({name:_.name,size:_.size,percentage:0,isUploading:!1}),this.sendFile(_,this.showedFiles.length-1)}t.target.value=null}}get isFilesValid(){return this.showedFiles.length<5}getFileNameFromForm(t){return this.showedFiles[t]?.name||""}getFileSizeFromForm(t){return Math.ceil((this.showedFiles[t]?.size||0)/1048576)||0}deleteFile(t){this.disputeInvoiceForm.files.value.splice(t,1),this.disputeServiceForm.files.value.splice(t,1),this.showedFiles.splice(t,1)}sendFile(t,n){const a=new FormData;a.append("file",t,t.name),this.showedFiles[n].percentage=0,this.showedFiles[n].isUploading=!0,this.sendFileUsecase.execute(a,"TICKET").pipe((0,H.U)(_=>{_.type===w.dt.UploadProgress?this.showedFiles[n].percentage=Math.round(100/_.total*_.loaded):_.type===w.dt.Response&&(this.showedFiles[n].isUploading=!1,this.disputeInvoiceForm.files.value[n]=_.body,this.disputeServiceForm.files.value[n]=_.body)}),(0,ee.K)(_=>(this.showedFiles[n].percentage=0,this.showedFiles[n].isUploading=!1,(0,j._)(_.message)))).subscribe()}changeInvoiceType(t){this.invoiceType=t}openInvoicesModal(){this.matDialog.open(k_,{data:{selectedInvoices:this.disputeInvoiceForm.invoices.value}}).afterClosed().subscribe(t=>{t?.length?(this.invoicesRequired=!1,this.disputeInvoiceForm.invoices.setValue(t),this.menuOpened=!1,this.selectedInvoices=t,this.getPeriodsAndServicesByInvoicesUsecase.execute(t.map(n=>n.id)).subscribe(n=>{this.invoicesTable=n,this.invoicesTableCopy=JSON.parse(JSON.stringify(n)),this.updateInvoiceForm(n),this.deletedService=!1})):(this.menuOpened=!1,this.invoicesRequired=!0)})}openServicesModal(){this.matDialog.open(Se,{data:{selectedServices:this.disputeServiceForm.services.value}}).afterClosed().subscribe(t=>{t?.length?(this.servicesRequired=!1,this.disputeServiceForm.services.setValue(t),this.menuOpened=!1):(this.menuOpened=!1,this.servicesRequired=!0)})}updateServicesForm(t){const n=new Set(t.map(s=>s.period)),a=new Set(t.map(s=>s.services).flat()),_=new Set(t.map(s=>s.invoice_id));this.disputeServiceForm.period.setValue(Array.from(n),{emitEvent:!1}),this.disputeServiceForm.services.setValue(Array.from(a),{emitEvent:!1}),this.disputeServiceForm.invoices.setValue(Array.from(_),{emitEvent:!1})}updateInvoiceForm(t){const n=new Set(t.map(s=>s.period)),a=new Set(t.map(s=>s.services).flat()),_=new Set(t.map(s=>s.invoice_id));this.disputeInvoiceForm.period.setValue(Array.from(n),{emitEvent:!1}),this.disputeInvoiceForm.services.setValue(Array.from(a),{emitEvent:!1}),this.disputeInvoiceForm.invoices.setValue(Array.from(_),{emitEvent:!1})}setDate(t){t.length?(this.disputeServiceForm.period.setValue(t.map(n=>(0,I.Z)(n,"MMMM yyyy"))),this.periodsRequired=!1):(this.periodsRequired=!0,this.disputeServiceForm.period.setValue(t)),this.matMenuTrigger.closeMenu(),this.menuOpened=!1}getInvoiceLabel(t){return this.selectedInvoices.find(n=>n.id===t)?.isn_vd}deleteService(t){this.disputeInvoiceForm.services.setValue(this.disputeInvoiceForm.services.value.filter(a=>a!==t));const n=this.invoicesTable.findIndex(a=>a.services.includes(t));-1!==n&&(this.invoicesTable[n].services=this.invoicesTable[n].services.filter(a=>a!==t),0===this.invoicesTable[n].services.length&&this.invoicesTable.splice(n,1)),this.updateInvoiceForm(this.invoicesTable),this.deletedService=!0}deleteInvoice(t){this.disputeServiceForm.invoices.setValue(this.disputeServiceForm.invoices.value.filter(a=>a!==t));const n=this.serviceTable.findIndex(a=>a.invoice_id===t);-1!==n&&this.serviceTable.splice(n,1),this.updateServicesForm(this.serviceTable),this.deletedInvoice=!0}undoServiceChanges(){this.invoicesTable=JSON.parse(JSON.stringify(this.invoicesTableCopy)),this.updateInvoiceForm(this.invoicesTable),this.deletedService=!1}undoInvoiceChanges(){this.serviceTable=JSON.parse(JSON.stringify(this.serviceTableCopy)),this.updateServicesForm(this.serviceTable),this.deletedInvoice=!1}cancel(){this.disputeInvoiceForm.touched||this.disputeServiceForm.touched||this.disputeServiceForm.period.value||this.disputeInvoiceForm.invoices.value||this.disputeServiceForm.services.value||this.disputeServiceForm.period.value||this.contactForm.contactForm.dirty?this.matDialog.open(ne.S,{panelClass:"general-information-popup",data:{text:"Are you sure you want to <span class=\"dedicated-text\">cancel</span>?<br> Entered data will not be saved."}}).afterClosed().subscribe(t=>{t&&history.back()}):history.back()}sendRequest(){"INVOICES"===this.invoiceType?this.sendDisputeInvoiceRequestUsecase.execute({request:this.disputeInvoiceForm.request.value,subject:this.disputeInvoiceForm.subject.value,data:this.invoicesTable,files:this.disputeInvoiceForm.files.value,contact_emails:this.contactForm.emails}).subscribe(t=>{this.router.navigate(["/main/support/tickets/"+t.ticketId],{queryParams:{status:"created"}})}):this.sendDisputeInvoiceRequestUsecase.execute({request:this.disputeServiceForm.request.value,subject:this.disputeServiceForm.subject.value,data:this.serviceTable,files:this.disputeServiceForm.files.value,contact_emails:this.contactForm.emails}).subscribe(t=>{this.router.navigate(["/main/support/tickets/"+t.ticketId],{queryParams:{status:"created"}})})}send(){this.checkValidity()&&this.sendRequest()}checkValidity(){return"INVOICES"===this.invoiceType?(this.disputeInvoiceForm.markAllAsTouched(),this.invoicesRequired=!this.disputeInvoiceForm.invoices.value.length,this.contactForm.checkEmailValidity(),!this.invoicesRequired&&this.contactForm.checkEmailValidity()&&this.disputeInvoiceForm.valid):(this.disputeServiceForm.markAllAsTouched(),this.periodsRequired=!this.disputeServiceForm.period.value.length,this.servicesRequired=!this.disputeServiceForm.services.value.length,this.contactForm.checkEmailValidity(),!this.periodsRequired&&!this.servicesRequired&&this.contactForm.checkEmailValidity()&&this.disputeServiceForm.valid)}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(q.W),e.Y36(te.b),e.Y36(x.F0),e.Y36(x.gz),e.Y36(ae.P),e.Y36($.uw),e.Y36(oa.f),e.Y36(ia.O),e.Y36(_a.o),e.Y36(Q.b))}
1,o.\u0275cmp=e.Xpm({type:o,selectors:[["app-dispute-invoice-request"]],viewQuery:function(t,n){if(1&t&&(e.Gf(F.p6,5),e.Gf(aa,5)),2&t){let a;e.iGM(a=e.CRH())&&(n.matMenuTrigger=a.first),e.iGM(a=e.CRH())&&(n.contactForm=a.first)}},decls:33,vars:8,consts:function(){let i,t,n,a,_,s,c,p,g,u,d,O,b,v,P,U,D,S,m,M,K,N,h,oe,ie,A,Ee,R,Ge,Ze,qe,Ke,Ye,ze,Qe,Xe,Be,Je,Ve,He,je,We,et,tt,nt,ot;return i="Within this ticket, you can dispute the entire invoice or individual charges for the service. Please choose your object of dispute and provide short comment on the cause of the dispute. Our team will review and contact you as soon as possible.",t="Please fill in the form below:",n="Invoices",a="Services",_="Select if your request applies to specific invoices or service",s="CANCEL",c="SAVE",p="dispute invoice " + "\ufffd*4:1\ufffd\ufffd#1:1\ufffd" + "" + "\ufffd#2:1\ufffd" + "" + "\ufffd0:1\ufffd" + "" + "\ufffd/#2:1\ufffd" + "" + "\ufffd/#1:1\ufffd\ufffd/*4:1\ufffd" + "",g="Invoices *",u="This field is required",d="From the list of your invoices, check the ones your request concerns",O="Period",b="Period will be filled in automatically",v="Services",P=" Services will be filled in automatically ",U="Subject *",D="Type the subject",S="Briefly describe the subject of your appeal, so that it can be easily identified from the title later on",m="Request",M=" This field is required ",K=" Attach Files " + "\ufffd#49\ufffd\ufffd/#49\ufffd" + "",N="Attach screenshots or other files related to your request",h="Select invoices",oe="UNDO CHANGES",ie=" This field is required ",A="You can attach max 5 files",Ee="Services *",R="This field is required",Ge="Specify Services to which your request applies",Ze="Period *",qe="This field is required",Ke="Specify Period to which your request applies",Ye="Invoices",ze="Related invoices will be chosen in automatically",Qe="Subject *",Xe="Type the subject",Be="Briefly describe the subject of your appeal, so that it can be easily identified from the title later on",Je="Request",Ve=" This field is required ",He=" Attach Files " + "\ufffd#56\ufffd\ufffd/#56\ufffd" + "",je="Attach screenshots or other files related to your request",We="Select services",et="Select period",tt="UNDO CHANGES",nt=" This field is required ",ot="You can attach max 5 files",[[1,"main-wrapper"],[1,"header","flex"],[1,"capital-gothic","header-text"],p,[4,"ngIf"],[1,"breadcrumbs"],[1,"sub-text"],i,[1,"subtitle-text","capital-gothic"],t,[1,"flex","form_text_wrapper"],[1,"forms"],[1,"modes","relative-container"],[1,"flex","pointer","align-center",3,"ngClass","click"],["disabled","",1,"pointer",3,"checked"],[1,"margin-left"],n,a,[1,"right","field-description","change-position"],_,["class","form_fields",3,"formGroup",4,"ngIf"],[3,"contactsType"],["contactForm",""],[1,"actions"],["mat-raised-button","","color","primary",1,"cancel",3,"click"],s,["mat-raised-button","","color","primary",1,"save",3,"click"],c,[1,"form_fields",3,"formGroup"],[1,"flex","relative-container","field"],[1,"fields-name"],g,[1,"periods","pointer",3,"ngClass","click"],[1,"periods-list"],[4,"ngFor","ngForOf"],["class","disabled",3,"ngClass",4,"ngIf"],[1,"required-error",3,"ngClass"],u,[1,"pointer","small-arrow",3,"ngClass"],[1,"field-description"],d,O,[1,"periods"],[1,"field-description","bold"],b,v,["class","flex",4,"ngFor","ngForOf"],P,["class","capital-gothic undo-changes pointer",3,"click",4,"ngIf"],[1,"flex","align-center","relative-container"],U,["floatLabel","never"],["matInput","","placeholder",D,"formControlName","subject"],[1,"field-description","up"],S,[1,"flex","relative-container","comment"],m,[1,"editor",2,"width","100%",3,"ngClass"],[3,"editor"],[3,"editor","placeholder","formControl"],[1,"error",3,"ngClass"],M,[1,"flex","relative-container","files-wrapper"],["matTooltipPosition","above","matTooltipClass","attach-files-tooltip",1,"capital-gothic","margin-right","attach-files-text","pointer",3,"matTooltip","matTooltipDisabled","ngClass","click"],K,["multiple","","type","file","hidden","",3,"input"],["fileInput",""],["class","warning",4,"ngIf"],N,[1,"items-wrapper"],["class","file-data",4,"ngFor","ngForOf"],[1,"disabled",3,"ngClass"],h,[1,"flex"],[1,"margin-right"],[1,"pointer",3,"click"],[1,"capital-gothic","undo-changes","pointer",3,"click"],oe,ie,[1,"warning"],A,[1,"file-data"],[1,"file-name","capital-gothic"],["class","flex progress-bar align-center",4,"ngIf"],[1,"size","capital-gothic"],[1,"flex","progress-bar","align-center"],["mode","determinate",3,"value"],[1,"capital-gothic"],Ee,R,Ge,Ze,[1,"relative-container","pointer","periods",3,"matMenuTriggerFor","ngClass","menuOpened","menuClosed"],qe,["xPosition","after","yPosition","above",1,"date-menu"],["dateMenu","matMenu"],[3,"dateRangeChanged","click"],Ke,Ye,ze,Qe,["matInput","","placeholder",Xe,"formControlName","subject"],Be,Je,Ve,He,je,We,et,tt,nt,ot]},template:function(t,n){1&t&&(e.TgZ(0,"div",0)(1,"div",1)(2,"p",2),e.tHW(3,3),e.YNc(4,sa,3,1,"app-tooltip",4),e.N_p(),e.qZA(),e.TgZ(5,"div",5),e._UZ(6,"wo-breadcrumbs"),e.qZA()(),e.TgZ(7,"p",6),e.SDv(8,7),e.qZA(),e.TgZ(9,"p",8),e.SDv(10,9),e.qZA(),e.TgZ(11,"div",10)(12,"div",11)(13,"div",12)(14,"div",13),e.NdJ("click",function(){return n.changeInvoiceType("INVOICES")}),e._UZ(15,"mat-checkbox",14),e.TgZ(16,"p",15),e.SDv(17,16),e.qZA()(),e.TgZ(18,"div",13),e.NdJ("click",function(){return n.changeInvoiceType("SERVICES")}),e._UZ(19,"mat-checkbox",14),e.TgZ(20,"p",15),e.SDv(21,17),e.qZA()(),e.TgZ(22,"p",18),e.SDv(23,19),e.qZA()(),e.YNc(24,Oa,57,26,"div",20),e.YNc(25,Ra,63,30,"div",20),e.qZA()(),e._UZ(26,"app-contact-form",21,22),e.TgZ(28,"div",23)(29,"button",24),e.NdJ("click",function(){return n.cancel()}),e.SDv(30,25),e.qZA(),e.TgZ(31,"button",26),e.NdJ("click",function(){return n.send()}),e.SDv(32,27),e.qZA()()()),2&t&&(e.xp6(4),e.Q6J("ngIf",null==n.tooltipsService||null==n.tooltipsService.tooltips?null:n.tooltipsService.tooltips.new_dispute_invoice_ticket),e.xp6(10),e.Q6J("ngClass","INVOICES"==n.invoiceType?"underline pb-05":"pb-05"),e.xp6(1),e.Q6J("checked","INVOICES"!==n.invoiceType),e.xp6(3),e.Q6J("ngClass","SERVICES"==n.invoiceType?"underline pb-05":"pb-05"),e.xp6(1),e.Q6J("checked","SERVICES"!==n.invoiceType),e.xp6(5),e.Q6J("ngIf","INVOICES"==n.invoiceType),e.xp6(1),e.Q6J("ngIf","SERVICES"==n.invoiceType),e.xp6(1),e.Q6J("contactsType","commercial"))},dependencies:[T.mk,T.sg,T.O5,r.Fj,r.JJ,r.JL,r.oH,r.sg,r.u,Y.K,he,z.g,y.lW,F.VK,F.p6,f.TO,f.KE,Z.Nt,G.Hw,X.gM,W.pW,ue.oG,L.tP,L.Mn,se],styles:["[_nghost-%COMP%]{display:block;padding:0 60px 40px 0}@media (max-width: 960px){[_nghost-%COMP%]{padding-right:1rem}}.forms[_ngcontent-%COMP%]{min-width:40vw;box-sizing:border-box}.forms[_ngcontent-%COMP%]   .modes[_ngcontent-%COMP%]{display:flex;gap:20px;margin-bottom:20px}.forms[_ngcontent-%COMP%]   .modes[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{width:50%;padding-left:13px;padding-bottom:5px;border-bottom:1px solid black}.forms[_ngcontent-%COMP%]   .modes[_ngcontent-%COMP%]     .mat-checkbox{width:6px!important;height:6px!important;background-color:#ddd!important;overflow:hidden}.forms[_ngcontent-%COMP%]   .modes[_ngcontent-%COMP%]     .mat-checkbox -inner-container{position:static}.forms[_ngcontent-%COMP%]   .modes[_ngcontent-%COMP%]     .mat-checkbox-checkmark{display:none!important}.forms[_ngcontent-%COMP%]   .modes[_ngcontent-%COMP%]     .mat-checkbox-disabled{background-color:#d6117f!important}.forms[_ngcontent-%COMP%]   .modes[_ngcontent-%COMP%]     .mat-checkbox .mat-checkbox-ripple{display:none!important}.forms[_ngcontent-%COMP%]   .modes[_ngcontent-%COMP%]     .mat-checkbox-frame{border-width:0!important}.forms[_ngcontent-%COMP%]   .modes[_ngcontent-%COMP%]     .mat-checkbox-background{border-radius:0!important}.forms[_ngcontent-%COMP%]   .modes[_ngcontent-%COMP%]   .password[_ngcontent-%COMP%]{letter-spacing:10px}.forms[_ngcontent-%COMP%]   .modes[_ngcontent-%COMP%]     .mat-checkbox-inner-container{position:static!important}.actions[_ngcontent-%COMP%]{display:flex;gap:55px;margin-top:40px;width:90%;justify-content:center;margin-bottom:60px}.actions[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:310px;height:50px;text-transform:uppercase;font-size:16px;font-style:normal;font-weight:700}.actions[_ngcontent-%COMP%]   .cancel[_ngcontent-%COMP%]{background-color:#4698ff;color:#fff}
1.actions[_ngcontent-%COMP%]   .save[_ngcontent-%COMP%]{background-color:#144a90}.describe[_ngcontent-%COMP%]{display:flex;padding-top:20px;padding-bottom:30px;flex-direction:column;justify-content:space-between}.wrapper[_ngcontent-%COMP%]{gap:50px}.absolute[_ngcontent-%COMP%]{position:absolute;width:90%;bottom:-45px;display:flex;align-items:center;justify-content:center;color:#d6117f;font-size:14px;text-transform:uppercase}.header[_ngcontent-%COMP%]{gap:10px}.header[_ngcontent-%COMP%]   .header-text[_ngcontent-%COMP%]{font-size:44px;font-style:normal;font-weight:700;line-height:43px;letter-spacing:.44px;text-transform:uppercase}.header[_ngcontent-%COMP%]   .header-text[_ngcontent-%COMP%]     app-tooltip .right{top:13px}.sub-text[_ngcontent-%COMP%]{margin-top:23px!important}.subtitle-text[_ngcontent-%COMP%]{margin-top:40px!important;margin-bottom:40px!important;font-size:14px;font-style:normal;font-weight:400;line-height:normal;text-transform:uppercase}.underline[_ngcontent-%COMP%]{border-bottom:2px solid #D6117F!important;width:-moz-fit-content;width:fit-content}.form_fields[_ngcontent-%COMP%]{background-color:#eaf2fc;padding:10px 28px 40px;box-sizing:border-box}@media (max-width: 1440px){.form_fields[_ngcontent-%COMP%]{min-width:unset;width:40vw}}@media (max-width: 1180px){.form_fields[_ngcontent-%COMP%]{padding:50px 12px 40px}}.form_fields[_ngcontent-%COMP%]   .field[_ngcontent-%COMP%]{min-height:40px;align-items:flex-end;margin-bottom:31px}.form_fields[_ngcontent-%COMP%]   .small-arrow[_ngcontent-%COMP%]{width:20px;position:absolute;right:0;bottom:0;rotate:x;height:20px;margin-left:auto;background-color:#7d7d7d;mask:url(/assets/pic/sidebar/arrow-down.svg) no-repeat;-webkit-mask:url(/assets/pic/sidebar/arrow-down.svg) no-repeat}.form_fields[_ngcontent-%COMP%]   .undo-changes[_ngcontent-%COMP%]{position:absolute;right:0;bottom:0;color:#a6a6a6;font-size:14px;font-style:normal;font-weight:400;line-height:normal;text-transform:uppercase}.form_fields[_ngcontent-%COMP%]   .periods[_ngcontent-%COMP%]{max-height:100px;position:relative;display:flex;flex-direction:column;gap:8px;width:100%;border-bottom:1px solid black}.form_fields[_ngcontent-%COMP%]   .periods[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin-right:15px;color:#e0e0e0;font-size:19px;width:-moz-fit-content;width:fit-content;height:-moz-fit-content;height:fit-content}.form_fields[_ngcontent-%COMP%]   .periods[_ngcontent-%COMP%]   [_ngcontent-%COMP%]::-webkit-scrollbar{width:2px;height:2px;background-color:#fff;padding:0 4px}.form_fields[_ngcontent-%COMP%]   .periods[_ngcontent-%COMP%]   [_ngcontent-%COMP%]::-webkit-scrollbar-track{background:rgb(230,230,230)}.form_fields[_ngcontent-%COMP%]   .periods[_ngcontent-%COMP%]   [_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#BBBBBB;border-radius:0}.form_fields[_ngcontent-%COMP%]   .periods[_ngcontent-%COMP%]   .periods-list[_ngcontent-%COMP%]{width:270px;overflow-y:auto;gap:8px;overflow-x:hidden}@media (max-width: 1180px){.form_fields[_ngcontent-%COMP%]   .periods[_ngcontent-%COMP%]   .periods-list[_ngcontent-%COMP%]{width:unset}}.form_fields[_ngcontent-%COMP%]   .periods[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{padding-left:10px;padding-bottom:3px;width:300px;height:25.5px}@media (max-width: 1180px){.form_fields[_ngcontent-%COMP%]   .periods[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{width:unset}}.form_fields[_ngcontent-%COMP%]   .fields-name[_ngcontent-%COMP%]{width:150px}.form_fields[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]{width:100%}.form_fields[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{padding-left:10px}.form_fields[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]     .mat-form-field-label{margin-left:10px!important}.form_fields[_ngcontent-%COMP%]   .comment[_ngcontent-%COMP%]{margin-top:20px;align-items:flex-end}.form_fields[_ngcontent-%COMP%]   .comment[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]{padding-left:0;width:100%;height:-moz-fit-content;height:fit-content}.form_fields[_ngcontent-%COMP%]   .comment[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]{height:65px!important;border:#E0E0E0 1px solid!important;padding:10px;resize:none;box-sizing:border-box}.form_fields[_ngcontent-%COMP%]   .comment[_ngcontent-%COMP%]     .mat-form-field-underline{display:none}.form_fields[_ngcontent-%COMP%]   .comment[_ngcontent-%COMP%]     .mat-form-field-label{margin-top:40px!important}.items-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;row-gap:8px;margin-top:10px}  .attach-files-tooltip{padding:19px!important;width:225px;border-radius:0!important;background-color:#fff!important;border-top:2px solid #D6117F;color:#000!important;font-size:12px!important;font-style:normal;font-weight:400}.file-data[_ngcontent-%COMP%]{display:flex;align-items:center;gap:14px}.file-data[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin-left:14px;color:#e0e0e0;font-size:19px;width:-moz-fit-content;width:fit-content;height:-moz-fit-content;height:fit-content}.file-data[_ngcontent-%COMP%]   .size[_ngcontent-%COMP%]{font-size:12px;color:#000;text-align:right}
1.file-data[_ngcontent-%COMP%]   .file-name[_ngcontent-%COMP%]{color:#144a90;width:270px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.progress-bar[_ngcontent-%COMP%]{width:170px}.progress-bar[_ngcontent-%COMP%]   mat-progress-bar[_ngcontent-%COMP%]{background-color:#144a90;margin-right:10px}.progress-bar[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:#144a90}.close[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;color:#e0e0e0;cursor:pointer}.warning[_ngcontent-%COMP%]{color:#d6117f;font-size:12px}.files-wrapper[_ngcontent-%COMP%]{align-items:flex-end;gap:20px}.attach-files-text[_ngcontent-%COMP%]{color:#144a90;text-transform:uppercase;font-size:14px;margin-top:18px!important;width:-moz-fit-content;width:fit-content}.form_text_wrapper[_ngcontent-%COMP%]{gap:50px}.relative-container[_ngcontent-%COMP%]{position:relative}.relative-container[_ngcontent-%COMP%]   .error-text[_ngcontent-%COMP%]{bottom:-30px!important;visibility:visible!important}.relative-container[_ngcontent-%COMP%]   .error-arrow[_ngcontent-%COMP%]{background-color:#d6117f!important}.relative-container[_ngcontent-%COMP%]   .error-line[_ngcontent-%COMP%]{border-bottom-color:#d6117f!important}.relative-container[_ngcontent-%COMP%]   .error-color-text[_ngcontent-%COMP%]{color:#d6117f!important}.relative-container[_ngcontent-%COMP%]   .required-error[_ngcontent-%COMP%]{color:#d6117f;font-size:12px;position:absolute;bottom:-26px;padding-left:0!important;z-index:1;visibility:hidden;transition:bottom .2s ease-in-out}.relative-container[_ngcontent-%COMP%]   .field-description[_ngcontent-%COMP%]{position:absolute;width:450px!important;right:-530px;height:-moz-fit-content!important;height:fit-content!important;padding:0!important;bottom:-3px;min-width:250px}@media (max-width: 1440px){.relative-container[_ngcontent-%COMP%]   .field-description[_ngcontent-%COMP%]{width:30vw!important;left:calc(100% + 50px)}}@media (max-width: 1180px){.relative-container[_ngcontent-%COMP%]   .field-description[_ngcontent-%COMP%]{left:calc(100% + 30px)}}.relative-container[_ngcontent-%COMP%]   .up[_ngcontent-%COMP%]{bottom:18px}.relative-container[_ngcontent-%COMP%]   .right[_ngcontent-%COMP%]{right:-500px}@media (max-width: 1440px){.relative-container[_ngcontent-%COMP%]   .right[_ngcontent-%COMP%]{left:calc(100% + 22px)}}@media (max-width: 1180px){.relative-container[_ngcontent-%COMP%]   .right[_ngcontent-%COMP%]{left:calc(100% + 30px)}}.bold[_ngcontent-%COMP%]{font-weight:700;bottom:-6px!important}  .date-menu{width:100%;max-width:100%;padding:10px 20px}.disabled[_ngcontent-%COMP%]{color:#0000008a}@media (max-width: 1180px){.relative-container[_ngcontent-%COMP%]   .field-description.change-position[_ngcontent-%COMP%]{top:-30px!important;left:0!important;width:100%!important}}[_nghost-%COMP%]     #contentEditableDiv{height:65px!important}[_nghost-%COMP%]     #editableP{max-height:45px!important}[_nghost-%COMP%]     .comment .mat-form-field-wrapper{padding-bottom:0}.attach-disabled[_ngcontent-%COMP%]{color:#d9d9d9}.error[_ngcontent-%COMP%]{color:#d6117f!important;font-size:12px!important;top:calc(100% - 1.6666666667em);position:absolute;box-sizing:border-box;width:100%;overflow:hidden;opacity:1;transform:translateY(0);z-index:0;transition:.2s all}[_nghost-%COMP%]     .editor .NgxEditor__MenuBar, [_nghost-%COMP%]     .editor .NgxEditor{background-color:#eaf2fc!important;z-index:1}[_nghost-%COMP%]     .error-border .NgxEditor{border:1px solid #D6117F!important}.error-show[_ngcontent-%COMP%]{transform:translateY(20px)}[_nghost-%COMP%]     .editor .NgxEditor{min-height:100px}"]}),o})();class ba extends J.I{constructor(){super({}),this.addControl("services",new r.NI("")),this.addControl("period",new r.NI("")),this.addControl("subject",new r.NI("",r.kI.required)),this.addControl("request",new r.NI("")),this.addControl("files",new r.NI([]))}get services(){return this.controls.services}get period(){return this.controls.period}get subject(){return this.controls.subject}get request(){return this.controls.request}get files(){return this.controls.files}}var va=l(77849);const Ua=["contactForm"];function Da(o,i){if(1&o&&(e.tHW(0,3,1),e.TgZ(1,"app-tooltip"),e._UZ(2,"p"),e.qZA(),e.N_p()),2&o){const t=e.oxw();e.xp6(2),e.pQV(t.tooltipsService.tooltips.new_request_outage_compensation_ticket),e.QtT(0)}}function $a(o,i){if(1&o&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&o){const t=i.$implicit;e.xp6(1),e.Oqu(t)}}function ya(o,i){if(1&o&&(e.TgZ(0,"p",58),e.SDv(1,59),e.qZA()),2&o){const t=e.oxw();e.Q6J("ngClass",t.servicesRequired?"error-color-text":"")}}function wa(o,i){if(1&o&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&o){const t=i.$implicit;e.xp6(1),e.Oqu(t)}}function ka(o,i){if(1&o&&(e.TgZ(0,"p",58),e.SDv(1,60),e.qZA()),2&o){const t=e.oxw();e.Q6J("ngClass",t.periodsRequired?"error-color-text":"")}}function La(o,i){1&o&&(e.TgZ(0,"mat-error"),e.SDv(1,61),e.qZA())}function Ga(o,i){1&o&&(e.TgZ(0,"p",62),e.SDv(1,63),e.qZA())}function Za(o,i){if(1&o&&(e.TgZ(0,"p",62),e._uU(1),e.qZA()),2&o){const t=e.oxw();e.xp6(1),e.Oqu(t.errorMessage)}}function qa(o,i){if(1&o&&(e.TgZ(0,"div",70),e._UZ(1,"mat-progress-bar",71),e.TgZ(2,"p",72),e._uU(3),e.qZA()()),2&o){const t=e.oxw().index,n=e.oxw();e.xp6(1),e.Q6J("value",n.showedFiles[t].percentage),e.xp6(2),e.hij("",n.showedFiles[t].percentage,"%")}}function Ka(o,i){if(1&o){const t=e.EpF();e.TgZ(0,"div",64)(1,"div",65)(2,"p",66),e._uU(3),e.qZA(),e.TgZ(4,"mat-icon",67),e.NdJ("click",function(){const _=e.CHM(t).index,s=e.oxw();return e.KtG(s.deleteFile(_))}),e._uU(5,"close"),e.qZA()(),e.YNc(6,qa,4,2,"div",68),e.TgZ(7,"p",69),e._uU(8),e.qZA()()}if(2&o){const t=i.index,n=e.oxw();e.xp6(3),e.Oqu(n.getFileNameFromForm(t)),e.xp6(3),e.Q6J("ngIf",n.showedFiles[t].isUploading),e.xp6(2),e.hij("",n.getFileSizeFromForm(t)," MB")}
1}let Ya=(()=>{class o{constructor(t,n,a,_,s,c,p){this.getCompanyContactsUseCase=t,this.breadcrumbs=n,this.sendFileUsecase=a,this.dialog=_,this.sendRequestOutageCompensationUsecase=s,this.router=c,this.tooltipsService=p,this.requestOutageCompensationForm=new ba,this.defaultEmails=[],this.showedFiles=[],this.menuOpened=!1,this.periodsRequired=!1,this.servicesRequired=!1,this.textareaLabel="Type your comment",this.errorMessage="",this.tooltipText="You can attach max 5 files each below 25Mb. ( .doc, .docx, .txt, .rtf, .xls, .xlsx, .pdf, .csv, .png, .jpg, .jpeg, .tiff, .gif, .zip, .rar, .tar, .gz, .pcap, .cap )",this.format=I.Z}ngOnInit(){this.setUpBreadcrumbLinks(),this.getCompanyContactsUseCase.execute("commercial").subscribe(t=>{this.defaultEmails=t})}setUpBreadcrumbLinks(){this.breadcrumbs.setLinks([{route:"/",text:"HOME"},{route:"/main/support",text:"SUPPORT"},{route:"/main/support/tickets",text:"BILLING TICKETS"},{text:"REQUEST OUTAGE COMPENSATION"}])}doFileInput(t){const n=t.target.files;if(n&&!(n.length<1)){this.errorMessage="";for(let a=0;a<n.length;a++){const _=n[a];if(!this.isFilesValid)break;if(_.size>26214400)return void(this.errorMessage="File size should be less than 25MB");if(!_.type)return void(this.errorMessage="File type is not allowed");{const s=_.type.split("/")[1];if(!["doc","docx","txt","rtf","xls","xlsx","pdf","csv","png","jpg","jpeg","tiff","gif","zip","rar","tar","gz","pcap","cap","vnd.openxmlformats-officedocument.spreadsheetml.sheet","vnd.openxmlformats-officedocument.wordprocessingml.document"].includes(s))return void(this.errorMessage="File type " + s + " is not allowed")}this.showedFiles.push({name:_.name,size:_.size,percentage:0,isUploading:!1}),this.sendFile(_,this.showedFiles.length-1)}t.target.value=null}}get isFilesValid(){return this.showedFiles.length<5}getFileNameFromForm(t){return this.showedFiles[t]?.name||""}getFileSizeFromForm(t){return Math.ceil((this.showedFiles[t]?.size||0)/1048576)||0}deleteFile(t){this.requestOutageCompensationForm.files.value.splice(t,1),this.requestOutageCompensationForm.files.value.splice(t,1),this.showedFiles.splice(t,1)}sendFile(t,n){const a=new FormData;a.append("file",t,t.name),this.showedFiles[n].percentage=0,this.showedFiles[n].isUploading=!0,this.sendFileUsecase.execute(a,"TICKET").pipe((0,H.U)(_=>{_.type===w.dt.UploadProgress?this.showedFiles[n].percentage=Math.round(100/_.total*_.loaded):_.type===w.dt.Response&&(this.showedFiles[n].isUploading=!1,this.requestOutageCompensationForm.files.value[n]=_.body,this.requestOutageCompensationForm.files.value[n]=_.body)}),(0,ee.K)(_=>(this.showedFiles[n].percentage=0,this.showedFiles[n].isUploading=!1,(0,j._)(_.message)))).subscribe()}setDate(t){this.periodsRequired=!t.length,this.trigger.closeMenu(),this.requestOutageCompensationForm.period.setValue(t.map(n=>(0,I.Z)(n,"MMMM yyyy")))}openServicesModal(){this.dialog.open(Se,{data:{selectedServices:this.requestOutageCompensationForm.services.value}}).afterClosed().subscribe(t=>{t?.length?(this.requestOutageCompensationForm.services.setValue(t),this.servicesRequired=!1):(this.requestOutageCompensationForm.services.setValue([]),this.servicesRequired=!0)})}cancel(){this.requestOutageCompensationForm.touched||this.contactForm.contactForm.dirty||this.requestOutageCompensationForm.services.value.length||this.requestOutageCompensationForm.period.value.length?this.dialog.open(ne.S,{panelClass:"general-information-popup",data:{text:"Are you sure you want to <span class=\"dedicated-text\">cancel</span>?<br> Entered data will not be saved."}}).afterClosed().subscribe(t=>{t&&history.back()}):history.back()}sendRequest(){this.checkValidity()&&this.requestOutageCompensationForm.markAllAsTouched(),this.requestOutageCompensationForm.valid&&this.sendRequestOutageCompensationUsecase.execute({...this.requestOutageCompensationForm.value,emails:this.contactForm.emails}).subscribe(t=>{this.router.navigate(["/main/support/tickets/"+t.ticketId],{queryParams:{status:"created"}})})}checkValidity(){return this.requestOutageCompensationForm.markAllAsTouched(),this.contactForm.checkEmailValidity(),this.periodsRequired=!this.requestOutageCompensationForm.period.value.length,this.servicesRequired=!this.requestOutageCompensationForm.services.value.length,!this.periodsRequired&&!this.servicesRequired&&this.contactForm.checkEmailValidity()}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(ae.P),e.Y36(q.W),e.Y36(te.b),e.Y36($.uw),e.Y36(va.i),e.Y36(x.F0),e.Y36(Q.b))}
1,o.\u0275cmp=e.Xpm({type:o,selectors:[["app-request-outage-compensation"]],viewQuery:function(t,n){if(1&t&&(e.Gf(F.p6,5),e.Gf(Ua,5)),2&t){let a;e.iGM(a=e.CRH())&&(n.trigger=a.first),e.iGM(a=e.CRH())&&(n.contactForm=a.first)}},decls:74,vars:23,consts:function(){let i,t,n,a,_,s,c,p,g,u,d,O,b,v,P,U,D,S,m,M,K,N;return i="You can request calculation of reimbursement for occurred outages within this ticket. Our team will prepare calculations and they will be sent for your review and approval. After amount is agreed we will issue a credit invoice.",t="Please fill in the form below:",n="Services *",a="This field is required",_="Specify services to which your request applies",s="Period *",c="This field is required",p="Specify Period to which your request applies",g="Subject *",u="Type the subject",d=" Briefly describe the subject of your appeal, so that it can be easily identified from the title later on",O="Comment",b="Add additional information if needed",v=" Attach Files " + "\ufffd#59\ufffd\ufffd/#59\ufffd" + "",P="Attach screenshots or other files related to your request",U="CANCEL",D="SAVE",S="Request Outage Compensation " + "\ufffd*4:1\ufffd\ufffd#1:1\ufffd" + "" + "\ufffd#2:1\ufffd" + "" + "\ufffd0:1\ufffd" + "" + "\ufffd/#2:1\ufffd" + "" + "\ufffd/#1:1\ufffd\ufffd/*4:1\ufffd" + "",m="Select services",M="Select period",K=" This field is required ",N="You can attach max 5 files",[[1,"main-wrapper"],[1,"header","flex"],[1,"capital-gothic","header-text"],S,[4,"ngIf"],[1,"breadcrumbs"],[1,"sub-text"],i,[1,"subtitle-text","capital-gothic"],t,[1,"flex","wrapper"],[1,"form_fields",3,"formGroup"],[1,"flex","property","field"],[1,"fields-name"],n,[1,"periods","pointer",3,"ngClass","click"],[1,"periods-list","pointer"],[4,"ngFor","ngForOf"],["class","disabled pointer",3,"ngClass",4,"ngIf"],[1,"pointer","small-arrow",3,"ngClass"],[1,"required-error",3,"ngClass"],a,[1,"field-describe"],_,s,[1,"periods","pointer",3,"matMenuTriggerFor","ngClass","menuOpened","menuClosed"],c,["xPosition","after","yPosition","above",1,"date-menu"],["dateMenu","matMenu"],[3,"dateRangeChanged","click"],p,[1,"flex","property","align-center"],g,["floatLabel","never"],["matInput","","placeholder",u,"formControlName","subject"],[1,"field-describe","two-lines"],d,[1,"flex","property","comment"],O,["matInput","",2,"display","none"],[3,"control","label"],b,[1,"flex","property","files-wrapper"],["matTooltipPosition","above","matTooltipClass","attach-files-tooltip",1,"capital-gothic","margin-right","attach-files-text","pointer",3,"matTooltip","matTooltipDisabled","ngClass","click"],v,["multiple","","type","file","hidden","",3,"input"],["fileInput",""],["class","warning",4,"ngIf"],P,[1,"items-wrapper"],["class","file-data",4,"ngFor","ngForOf"],[3,"contactsType"],["contactForm",""],[1,"actions"],["mat-raised-button","","color","primary",1,"cancel",3,"click"],U,["mat-raised-button","","color","primary",1,"save",3,"click"],D,[1,"disabled","pointer",3,"ngClass"],m,M,K,[1,"warning"],N,[1,"file-data"],[1,"flex"],[1,"file-name","capital-gothic"],[1,"pointer",3,"click"],["class","flex progress-bar align-center",4,"ngIf"],[1,"size","capital-gothic"],[1,"flex","progress-bar","align-center"],["mode","determinate",3,"value"],[1,"capital-gothic"]]},template:function(t,n){if(1&t){const a=e.EpF();e.TgZ(0,"div",0)(1,"div",1)(2,"p",2),e.tHW(3,3),e.YNc(4,Da,3,1,"app-tooltip",4),e.N_p(),e.qZA(),e.TgZ(5,"div",5),e._UZ(6,"wo-breadcrumbs"),e.qZA()(),e.TgZ(7,"p",6),e.SDv(8,7),e.qZA(),e.TgZ(9,"p",8),e.SDv(10,9),e.qZA(),e.TgZ(11,"div",10)(12,"div",11)(13,"div",12)(14,"p",13),e.SDv(15,14),e.qZA(),e.TgZ(16,"div",15),e.NdJ("click",function(){return n.openServicesModal()}),e.TgZ(17,"div",16),e.YNc(18,$a,2,1,"p",17),e.YNc(19,ya,2,1,"p",18),e.qZA(),e._UZ(20,"div",19),e.TgZ(21,"p",20),e.SDv(22,21),e.qZA()(),e.TgZ(23,"p",22),e.SDv(24,23),e.qZA()(),e.TgZ(25,"div",12)(26,"p",13),e.SDv(27,24),e.qZA(),e.TgZ(28,"div",25),e.NdJ("menuOpened",function(){return n.menuOpened=!0})("menuClosed",function(){return n.menuOpened=!1}),e.TgZ(29,"div",16),e.YNc(30,wa,2,1,"p",17),e.YNc(31,ka,2,1,"p",18),e.qZA(),e._UZ(32,"div",19),e.TgZ(33,"p",20),e.SDv(34,26),e.qZA()(),e.TgZ(35,"mat-menu",27,28)(37,"app-custom-year-date-picker",29),e.NdJ("dateRangeChanged",function(s){return n.setDate(s)})("click",function(s){return s.stopPropagation()}),e.qZA()(),e.TgZ(38,"p",22),e.SDv(39,30),e.qZA()(),e.TgZ(40,"div",31)(41,"p",13),e.SDv(42,32),e.qZA(),e.TgZ(43,"mat-form-field",33),e._UZ(44,"input",34),e.YNc(45,La,2,0,"mat-error",4),e.qZA(),e.TgZ(46,"p",35),e.SDv(47,36),e.qZA()(),e.TgZ(48,"div",37)(49,"p",13),e.SDv(50,38),e.qZA(),e.TgZ(51,"mat-form-field",33),e._UZ(52,"textarea",39)(53,"custom-textarea",40),e.qZA(),e.TgZ(54,"p",22),e.SDv(55,41),e.qZA()(),e.TgZ(56,"div",42)(57,"p",43),e.NdJ("click",function(){e.CHM(a);const s=e.MAs(60);return e.KtG(n.isFilesValid&&s.click())}),e.tHW(58,44),e.TgZ(59,"input",45,46),e.NdJ("input",function(s){return n.doFileInput(s)}),e.qZA(),e.N_p(),e.qZA(),e.YNc(61,Ga,2,0,"p",47),e.YNc(62,Za,2,1,"p",47),e.TgZ(63,"p",22),e.SDv(64,48),e.qZA()(),e.TgZ(65,"div",49),e.YNc(66,Ka,9,3,"div",50),e.qZA()()(),e._UZ(67,"app-contact-form",51,52),e.TgZ(69,"div",53)(70,"button",54),e.NdJ("click",function(){return n.cancel()}),e.SDv(71,55),e.qZA(),e.TgZ(72,"button",56),e.NdJ("click",function(){return n.sendRequest()}),e.SDv(73,57),e.qZA()()()}if(2&t){const a=e.MAs(36);e.xp6(4),e.Q6J("ngIf",null==n.tooltipsService||null==n.tooltipsService.tooltips?null:n.tooltipsService.tooltips.new_request_outage_compensation_ticket),e.xp6(8),e.Q6J("formGroup",n.requestOutageCompensationForm),e.xp6(4),e.Q6J("ngClass",n.servicesRequired?"error-line":""),e.xp6(2),e.Q6J("ngForOf",n.requestOutageCompensationForm.services.value),e.xp6(1),e.Q6J("ngIf",!n.requestOutageCompensationForm.services.value.length),e.xp6(1),e.Q6J("ngClass",n.servicesRequired?"error-arrow":""),e.xp6(1),e.Q6J("ngClass",n.servicesRequired?"error-text":""),e.xp6(7),e.Q6J("matMenuTriggerFor",a)("ngClass",n.periodsRequired?"error-line":""),e.xp6(2),e.Q6J("ngForOf",n.requestOutageCompensationForm.period.value),e.xp6(1),e.Q6J("ngIf",!n.requestOutageCompensationForm.period.value.length),e.xp6(1),e.Q6J("ngClass",n.periodsRequired?"error-arrow":""),e.xp6(1),e.Q6J("ngClass",n.periodsRequired?"error-text":""),e.xp6(12),e.Q6J("ngIf",n.requestOutageCompensationForm.subject.hasError("required")),e.xp6(8),e.Q6J("control",n.requestOutageCompensationForm.request)("label",n.textareaLabel),e.xp6(4),e.Q6J("matTooltip",n.tooltipText)("matTooltipDisabled",!n.isFilesValid)("ngClass",n.isFilesValid?"":"attach-disabled"),e.xp6(4),e.Q6J("ngIf",!n.isFilesValid),e.xp6(1),e.Q6J("ngIf",n.errorMessage),e.xp6(4),e.Q6J("ngForOf",n.showedFiles),e.xp6(1),e.Q6J("contactsType","commercial")}},dependencies:[T.mk,T.sg,T.O5,r.Fj,r.JJ,r.JL,r.sg,r.u,Y.K,he,Ie.U,z.g,y.lW,F.VK,F.p6,f.TO,f.KE,Z.Nt,G.Hw,X.gM,W.pW,se],styles:["[_nghost-%COMP%]{display:block;padding:0 60px 40px 0}@media (max-width: 960px){[_nghost-%COMP%]{padding-right:1rem}}.required-error[_ngcontent-%COMP%]{color:#d6117f;font-size:12px;position:absolute;bottom:-28px;padding-left:0!important;z-index:1;visibility:hidden;transition:bottom .2s ease-in-out}.error-text[_ngcontent-%COMP%]{bottom:-32px!important;visibility:visible!important}.actions[_ngcontent-%COMP%]{display:flex;gap:55px;margin-top:40px;width:90%;justify-content:center;margin-bottom:60px}.actions[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:310px;height:50px;text-transform:uppercase;font-size:16px;font-style:normal;font-weight:700}.actions[_ngcontent-%COMP%]   .cancel[_ngcontent-%COMP%]{background-color:#4698ff;color:#fff}
1.actions[_ngcontent-%COMP%]   .save[_ngcontent-%COMP%]{background-color:#144a90}.wrapper[_ngcontent-%COMP%]{gap:50px}.header[_ngcontent-%COMP%]{gap:10px}.header[_ngcontent-%COMP%]   .header-text[_ngcontent-%COMP%]{font-size:44px;font-style:normal;font-weight:700;line-height:43px;letter-spacing:.44px;text-transform:uppercase;width:130%}.header[_ngcontent-%COMP%]   .header-text[_ngcontent-%COMP%]     app-tooltip .right{top:13px}.sub-text[_ngcontent-%COMP%]{margin-top:23px!important}.subtitle-text[_ngcontent-%COMP%]{margin-top:40px!important;margin-bottom:40px!important;font-size:14px;font-style:normal;font-weight:400;line-height:normal;text-transform:uppercase}.form_fields[_ngcontent-%COMP%]{background-color:#eaf2fc;padding:10px 28px 40px;min-width:590px;box-sizing:border-box}@media (max-width: 1440px){.form_fields[_ngcontent-%COMP%]{min-width:unset;width:40vw}}@media (max-width: 1180px){.form_fields[_ngcontent-%COMP%]{padding:50px 12px 40px}}.form_fields[_ngcontent-%COMP%]   .fields-name[_ngcontent-%COMP%]{width:150px}.form_fields[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]{width:100%}.form_fields[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{padding-left:10px}.form_fields[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]     .mat-form-field-label{margin-left:10px!important}.form_fields[_ngcontent-%COMP%]   .comment[_ngcontent-%COMP%]{margin-top:20px;align-items:flex-end}.form_fields[_ngcontent-%COMP%]   .comment[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]{padding-left:0;width:100%;height:-moz-fit-content;height:fit-content}.form_fields[_ngcontent-%COMP%]   .comment[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]{height:65px!important;border:#E0E0E0 1px solid!important;padding:10px;resize:none;box-sizing:border-box}.form_fields[_ngcontent-%COMP%]   .comment[_ngcontent-%COMP%]     .mat-form-field-underline{display:none}.form_fields[_ngcontent-%COMP%]   .comment[_ngcontent-%COMP%]     .mat-form-field-label{margin-top:40px!important}.form_fields[_ngcontent-%COMP%]   .comment[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{padding-bottom:22px}  .attach-files-tooltip{padding:19px!important;width:225px;border-radius:0!important;background-color:#fff!important;border-top:2px solid #D6117F;color:#000!important;font-size:12px!important;font-style:normal;font-weight:400}.file-data[_ngcontent-%COMP%]{display:flex;align-items:center;gap:14px}.file-data[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin-left:14px;color:#e0e0e0;font-size:19px;width:-moz-fit-content;width:fit-content;height:-moz-fit-content;height:fit-content}.file-data[_ngcontent-%COMP%]   .size[_ngcontent-%COMP%]{font-size:12px;color:#000;text-align:right}.file-data[_ngcontent-%COMP%]   .file-name[_ngcontent-%COMP%]{color:#144a90;width:270px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.attach-disabled[_ngcontent-%COMP%]{color:#d9d9d9}.progress-bar[_ngcontent-%COMP%]{width:170px}.progress-bar[_ngcontent-%COMP%]   mat-progress-bar[_ngcontent-%COMP%]{background-color:#144a90;margin-right:10px}.progress-bar[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:#144a90}.items-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;row-gap:8px;margin-top:10px}.close[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;color:#e0e0e0;cursor:pointer}.warning[_ngcontent-%COMP%]{color:#d6117f;font-size:12px}.files-wrapper[_ngcontent-%COMP%]{align-items:flex-end;gap:20px}.attach-disabled[_ngcontent-%COMP%]{color:#d9d9d9!important;cursor:auto}.attach-files-text[_ngcontent-%COMP%]{color:#144a90;text-transform:uppercase;font-size:14px;margin-top:18px!important;width:-moz-fit-content;width:fit-content}.form_text_wrapper[_ngcontent-%COMP%]{gap:40px}.fields_description[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:flex-end;padding:35px 0 0}.bold[_ngcontent-%COMP%]{font-weight:700}  .date-menu{width:100%;max-width:100%;padding:10px 20px}.describe[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:flex-end;padding-bottom:30px;gap:65px}.field[_ngcontent-%COMP%]{min-height:40px;align-items:flex-end;margin-bottom:31px}.property[_ngcontent-%COMP%]{position:relative}.property[_ngcontent-%COMP%]   .field-describe[_ngcontent-%COMP%]{position:absolute;bottom:-3px!important;right:-536px;width:460px;min-width:250px}@media (max-width: 1440px){.property[_ngcontent-%COMP%]   .field-describe[_ngcontent-%COMP%]{width:30vw;left:calc(100% + 50px)}}@media (max-width: 1180px){.property[_ngcontent-%COMP%]   .field-describe[_ngcontent-%COMP%]{left:calc(100% + 30px)}}.property[_ngcontent-%COMP%]   .two-lines[_ngcontent-%COMP%]{bottom:15px!important}.small-arrow[_ngcontent-%COMP%]{width:20px;position:absolute;right:0;bottom:0;
1rotate:x;height:20px;margin-left:auto;background-color:#7d7d7d;mask:url(/assets/pic/sidebar/arrow-down.svg) no-repeat;-webkit-mask:url(/assets/pic/sidebar/arrow-down.svg) no-repeat}.error-arrow[_ngcontent-%COMP%]{background-color:#d6117f!important}.error-line[_ngcontent-%COMP%]{border-bottom-color:#d6117f!important}.error-color-text[_ngcontent-%COMP%]{color:#d6117f!important}.undo-changes[_ngcontent-%COMP%]{position:absolute;right:0;bottom:0;color:#a6a6a6;font-size:14px;font-style:normal;font-weight:400;line-height:normal;text-transform:uppercase}.periods[_ngcontent-%COMP%]{max-height:100px;position:relative;display:flex;flex-direction:column;gap:8px;width:100%;border-bottom:1px solid black;cursor:pointer}.periods[_ngcontent-%COMP%]   .periods-list[_ngcontent-%COMP%]{width:300px;overflow-y:auto;gap:8px;overflow-x:hidden;cursor:pointer}@media (max-width: 1180px){.periods[_ngcontent-%COMP%]   .periods-list[_ngcontent-%COMP%]{width:unset}}.periods[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{padding-left:10px;padding-bottom:3px;width:300px;overflow-y:hidden;overflow-x:hidden;text-overflow:ellipsis;white-space:nowrap;height:25.5px}@media (max-width: 1180px){.periods[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{width:unset}}.periods[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin-left:14px;color:#e0e0e0;font-size:19px;width:-moz-fit-content;width:fit-content;height:-moz-fit-content;height:fit-content}.periods[_ngcontent-%COMP%]   [_ngcontent-%COMP%]::-webkit-scrollbar{width:2px;height:2px;background-color:#fff;padding:0 4px}.periods[_ngcontent-%COMP%]   [_ngcontent-%COMP%]::-webkit-scrollbar-track{background:rgb(230,230,230)}.periods[_ngcontent-%COMP%]   [_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#BBBBBB;border-radius:0}.disabled[_ngcontent-%COMP%]{color:#0000008a}[_nghost-%COMP%]     #contentEditableDiv{height:65px!important}[_nghost-%COMP%]     #editableP{max-height:45px!important}[_nghost-%COMP%]     .comment .mat-form-field-wrapper{padding-bottom:0}"]}),o})();class za extends J.I{constructor(){super({}),this.editor=new L.ML,this.addControl("tickets",new r.NI([])),this.addControl("services",new r.NI([])),this.addControl("period",new r.NI("")),this.addControl("subject",new r.NI("",r.kI.required)),this.addControl("request",new r.NI("",r.kI.required)),this.addControl("files",new r.NI([]))}get tickets(){return this.controls.tickets}get period(){return this.controls.period}get services(){return this.controls.services}get subject(){return this.controls.subject}get request(){return this.controls.request}get files(){return this.controls.files}}var Qa=l(69045);function Xa(o,i){if(1&o){const t=e.EpF();e.TgZ(0,"th",36)(1,"mat-checkbox",37),e.NdJ("change",function(a){e.CHM(t);const _=e.oxw();return e.KtG(_.onMainCheckboxChange(a))}),e.qZA()()}if(2&o){const t=e.oxw();e.xp6(1),e.Q6J("checked",t.isAllSelected)("indeterminate",t.isSomeSelected)}}function Ba(o,i){if(1&o){const t=e.EpF();e.TgZ(0,"td",38)(1,"mat-checkbox",39),e.NdJ("ngModelChange",function(a){const s=e.CHM(t).$implicit;return e.KtG(s.selected=a)}),e.qZA()()}if(2&o){const t=i.$implicit;e.xp6(1),e.Q6J("ngModel",t.selected)}}function Ja(o,i){1&o&&(e.TgZ(0,"th",40),e.SDv(1,41),e.qZA())}function Va(o,i){if(1&o&&(e.TgZ(0,"td",42)(1,"a",43),e._uU(2),e.qZA()()),2&o){const t=i.$implicit;e.xp6(2),e.hij(" ",t.ticket_id," ")}}function Ha(o,i){1&o&&(e.TgZ(0,"th",40),e.SDv(1,44),e.qZA())}function ja(o,i){if(1&o&&(e.TgZ(0,"td",45),e._uU(1),e.qZA()),2&o){const t=i.$implicit;e.xp6(1),e.hij(" ",t.category," ")}}function Wa(o,i){1&o&&(e.TgZ(0,"th",40),e.SDv(1,46),e.qZA())}function es(o,i){if(1&o&&(e.TgZ(0,"td",45),e._uU(1),e.qZA()),2&o){const t=i.$implicit;e.xp6(1),e.hij(" ",t.subject," ")}}function ts(o,i){1&o&&(e.TgZ(0,"th",40),e.SDv(1,47),e.qZA())}function ns(o,i){if(1&o&&(e.TgZ(0,"td",45),e._uU(1),e.qZA()),2&o){const t=i.$implicit;e.xp6(1),e.hij(" ",t.last_update," ")}}function os(o,i){1&o&&e._UZ(0,"tr",48)}const is=function(o){return{"selected-row":o}};function _s(o,i){if(1&o&&e._UZ(0,"tr",49),2&o){const t=i.$implicit,n=e.oxw();e.Q6J("ngClass",e.VKq(1,is,n.isProductSelected(t)))}}function as(o,i){1&o&&(e.TgZ(0,"div",50),e.SDv(1,51),e.qZA())}const ss=function(o){return{rotate:o}},rs=function(o){return{"search-input__container_hidden":o}};let ls=(()=>{class o{constructor(t,n,a){this.getListOfTicketsUsecase=t,this.matDialogRef=n,this.data=a,this.menuOpened=!1,this.displayedColumns=["selected","ticket_id","category","subject","last_update"],this.searchToggled=!1,this.direction="desc",this.filterParams={common:"",sort_field:"",sort_direction:"",condition:{}}
1,this.filterParamsSubject=new ce.X(this.filterParams.common),this.products=[]}ngOnInit(){this.refreshTable(),this.filterParamsSubject.pipe((0,Te.b)(800),(0,pe.x)()).subscribe(t=>{this.filterParams.common=t,this.refreshTable()})}setSelectedServicesFirstly(){this.products.forEach(t=>{this.data.selectedTickets.includes(t.ticket_id)&&(t.selected=!0)}),this.products.sort((t,n)=>this.data.selectedTickets.indexOf(n.ticket_id)-this.data.selectedTickets.indexOf(t.ticket_id))}selectAllUsers(){this.products.forEach(t=>{t.selected=!0})}deselectAllUsers(){this.products.forEach(t=>{t.selected=!1})}onMainCheckboxChange(t){t.checked?this.selectAllUsers():this.deselectAllUsers()}get selectDateRangeLabel(){if(this.filterParams.condition.created_at){if(this.filterParams.condition.created_at.from&&this.filterParams.condition.created_at.to)return`${(0,I.Z)(new Date(this.filterParams.condition.created_at.from),"dd/MM/yyyy")} - ${(0,I.Z)(new Date(this.filterParams.condition.created_at.to),"dd/MM/yyyy")}`;if(this.filterParams.condition.created_at.from)return`${(0,I.Z)(new Date(this.filterParams.condition.created_at.from),"dd/MM/yyyy")}`}return""}sort(t){this.filterParams.sort_direction=t.direction,this.filterParams.sort_field=t.direction?t.active:"",this.refreshTable()}get isSomeSelected(){return this.products.some(t=>!0===t.selected)&&!this.isAllSelected}get isAllSelected(){return this.products.every(t=>!0===t.selected)}close(){this.products.forEach(t=>{t.selected=!1})}apply(){const t=this.products.filter(n=>!0===n.selected).map(n=>n.ticket_id);this.matDialogRef.close(t)}setDate(t){this.matDateTrigger.closeMenu(),this.filterParams.condition.created_at=k.g.removeEmptyProperties(t),this.refreshTable()}isProductSelected(t){return!0===t.selected}refreshTable(){this.filterParams.condition=k.g.removeEmptyProperties(this.filterParams.condition);const t=k.g.removeEmptyProperties(this.filterParams);this.getListOfTicketsUsecase.execute(t).subscribe(n=>{this.products=n.rows.map(a=>({selected:!1,ticket_id:a.ticket_id,category:a.category,subject:a.subject,last_update:a.last_update})),this.setSelectedServicesFirstly()})}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(Qa.u),e.Y36($.so),e.Y36($.WI))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-tickets-list"]],viewQuery:function(t,n){if(1&t&&e.Gf(F.p6,5),2&t){let a;e.iGM(a=e.CRH())&&(n.matDateTrigger=a.first)}},decls:45,vars:16,consts:function(){let i,t,n,a,_,s,c,p,g;return i=" Period " + "\ufffd#6\ufffd" + "" + "\ufffd0\ufffd" + "" + "\ufffd/#6\ufffd" + "" + "\ufffd#7\ufffd" + "" + "\ufffd/#7\ufffd" + "",t="Type here",n="CLEAR ALL",a="APPLY",_="Ticket ID",s="Category",c="Subject",p="Closed",g="No records",[[1,"searching","flex"],["type","button",1,"close-btn",3,"mat-dialog-close"],[1,"search-select",3,"matMenuTriggerFor","menuOpened","menuClosed"],i,[1,"select-arrow",3,"ngClass"],["xPosition","after","yPosition","above",1,"date-menu"],["dateMenu","matMenu"],[3,"dateRangeChanged","click"],["matSuffix","","mat-icon-button","","aria-label","Search",1,"search",3,"disableRipple"],["src","assets/pic/icons/search-icon.svg","alt","Search",3,"click"],[1,"search-input__container",3,"ngClass"],["appearance","fill",1,"search-input"],["matPrefix",""],["src","assets/pic/icons/search-icon.svg","alt","search icon"],["placeholder",t,"matInput","","type","text",3,"input"],["commonInput",""],[1,"table-wrap"],["mat-table","","matSort","",1,"user-table",3,"dataSource","matSortActive","matSortDirection","matSortChange"],["matColumnDef","selected"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","style","max-width: 50px;",4,"matCellDef"],["matColumnDef","ticket_id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","category"],["mat-cell","","class","cell-nowrap",4,"matCellDef"],["matColumnDef","subject"],["matColumnDef","last_update"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"ngClass",4,"matRowDef","matRowDefColumns"],["class","no-records",4,"ngIf"],[1,"actions"],[1,"clear","pointer","capital-gothic",3,"click"],n,[1,"apply","pointer","capital-gothic",3,"click"],a,["mat-header-cell",""],[3,"checked","indeterminate","change"],["mat-cell","",2,"max-width","50px"],[3,"ngModel","ngModelChange"],["mat-header-cell","","mat-sort-header",""],_,["mat-cell",""],[1,"capital-gothic"],s,["mat-cell","",1,"cell-nowrap"],c,p,["mat-header-row",""],["mat-row","",3,"ngClass"],[1,"n
1o-records"],g]},template:function(t,n){if(1&t){const a=e.EpF();e.TgZ(0,"div",0)(1,"button",1)(2,"mat-icon"),e._uU(3,"close"),e.qZA()(),e.TgZ(4,"div",2),e.NdJ("menuOpened",function(){return n.menuOpened=!0})("menuClosed",function(){return n.menuOpened=!1}),e.tHW(5,3),e._UZ(6,"span")(7,"div",4),e.N_p(),e.qZA(),e.TgZ(8,"mat-menu",5,6)(10,"custom-date-range-picker",7),e.NdJ("dateRangeChanged",function(s){return n.setDate(s)})("click",function(s){return s.stopPropagation()}),e.qZA()(),e.TgZ(11,"button",8)(12,"mat-icon")(13,"img",9),e.NdJ("click",function(){return n.searchToggled=!n.searchToggled}),e.qZA()()(),e.TgZ(14,"div",10)(15,"mat-form-field",11)(16,"span",12),e._UZ(17,"img",13),e.qZA(),e.TgZ(18,"input",14,15),e.NdJ("input",function(){e.CHM(a);const s=e.MAs(19);return e.KtG(n.filterParamsSubject.next(s.value))}),e.qZA()()()(),e.TgZ(20,"div",16)(21,"table",17),e.NdJ("matSortChange",function(s){return n.sort(s)}),e.ynx(22,18),e.YNc(23,Xa,2,2,"th",19),e.YNc(24,Ba,2,1,"td",20),e.BQk(),e.ynx(25,21),e.YNc(26,Ja,2,0,"th",22),e.YNc(27,Va,3,1,"td",23),e.BQk(),e.ynx(28,24),e.YNc(29,Ha,2,0,"th",22),e.YNc(30,ja,2,1,"td",25),e.BQk(),e.ynx(31,26),e.YNc(32,Wa,2,0,"th",22),e.YNc(33,es,2,1,"td",25),e.BQk(),e.ynx(34,27),e.YNc(35,ts,2,0,"th",22),e.YNc(36,ns,2,1,"td",25),e.BQk(),e.YNc(37,os,1,0,"tr",28),e.YNc(38,_s,1,3,"tr",29),e.qZA(),e.YNc(39,as,2,0,"div",30),e.qZA(),e.TgZ(40,"div",31)(41,"p",32),e.NdJ("click",function(){return n.close()}),e.SDv(42,33),e.qZA(),e.TgZ(43,"p",34),e.NdJ("click",function(){return n.apply()}),e.SDv(44,35),e.qZA()()}if(2&t){const a=e.MAs(9);e.xp6(1),e.Q6J("mat-dialog-close",!1),e.xp6(3),e.Q6J("matMenuTriggerFor",a),e.xp6(3),e.Q6J("ngClass",e.VKq(12,ss,!n.menuOpened)),e.pQV(n.selectDateRangeLabel),e.QtT(5),e.xp6(4),e.Q6J("disableRipple",!0),e.xp6(3),e.Q6J("ngClass",e.VKq(14,rs,!n.searchToggled)),e.xp6(7),e.Q6J("dataSource",n.products)("matSortActive",n.filterParams.sort)("matSortDirection",n.direction),e.xp6(16),e.Q6J("matHeaderRowDef",n.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",n.displayedColumns),e.xp6(1),e.Q6J("ngIf",0===n.products.length)}},dependencies:[T.mk,T.O5,r.JJ,r.On,y.lW,ue.oG,$.ZT,f.KE,f.qo,f.R9,G.Hw,Z.Nt,de.D,F.VK,F.p6,C.BZ,C.fO,C.as,C.w1,C.Dz,C.nj,C.ge,C.ev,C.XQ,C.Gk,V.YE,V.nU],styles:[".close-btn[_ngcontent-%COMP%]{position:absolute;top:-11px;right:-11px}.table-wrap[_ngcontent-%COMP%]{overflow-x:hidden;white-space:nowrap;margin-top:20px;position:relative;height:320px;padding:20px 0;overflow-y:auto;border:1px solid #E0E0E0}[_ngcontent-%COMP%]::-webkit-scrollbar{width:2px;height:2px;background-color:#fff;padding:0 4px}[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:rgb(230,230,230)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#BBBBBB;border-radius:0}[_nghost-%COMP%]     .user-table .mat-checkbox-inner-container{height:12px;width:12px}[_nghost-%COMP%]     .user-table .mat-checkbox-ripple{display:none}[_nghost-%COMP%]     .user-table .mat-checkbox-frame{border-radius:0;border:0;background:#DDDDDD}[_nghost-%COMP%]     .user-table .mat-checkbox-indeterminate.mat-accent .mat-checkbox-background, [_nghost-%COMP%]     .user-table .mat-checkbox-checked.mat-accent .mat-checkbox-background{background:#D6117F;border-radius:0}[_nghost-%COMP%]     .user-table .mat-checkbox-indeterminate.mat-accent .mat-checkbox-background svg, [_nghost-%COMP%]     .user-table .mat-checkbox-checked.mat-accent .mat-checkbox-background svg{display:none}[_nghost-%COMP%]     .user-table .mat-select-trigger{background:#144A90;padding:5px 10px 5px 5px;color:#fff!important;display:flex;text-align:center;height:20px;width:130px;text-transform:uppercase;font-size:14px}[_nghost-%COMP%]     .user-table .active .mat-select-trigger{background:#144A90}[_nghost-%COMP%]     .user-table .disabled .mat-select-trigger{background:#A8B1C1}[_nghost-%COMP%]     .user-table .mat-select-value{color:#fff!important}[_nghost-%COMP%]     .user-table .mat-select-placeholder{color:#fff}table[_ngcontent-%COMP%]{width:100%;table-layout:auto;border-collapse:collapse}table[_ngcontent-%COMP%]     .mat-row{border-bottom:2px solid transparent}table[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], table[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{font-size:16px;padding:0 10px;text-align:left;border:none;text-overflow:ellipsis;overflow:hidden}table[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{font-weight:700;color:#000;border-bottom:1px solid #000}table[_ngcontent-%COMP%]   .align-top[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]   .cell-link[_ngcontent-%COMP%], table[_ngcontent-%COMP%]   .align-top[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]   .multi-cell[_ngcontent-%COMP%]{display:block;margin-bottom:10px;margin-top:10px}table[_ngcontent-%COMP%]   .align-top[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]   .cell-link[_ngcontent-%COMP%]:not(:last-child), table[_ngcontent-%COMP%]   .align-top[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]   .multi-cell[_ngcontent-%COMP%]:not(:last-child){margin-bottom:26px}table[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]   .note[_ngcontent-%COMP%]{font-size:12px;color:#a6a6a6}th.mat-header-cell[_ngcontent-%COMP%]:first-of-type, td.mat-cell[_ngcontent-%COMP%]:first-of-type, td.mat-footer-cell[_ngcontent-%COMP%]:first-of-type{padding-left:10px}[_nghost-%COMP%]     .mat-table tbody tr:nth-child(odd){background:#EAF2FC}[_nghost-%COMP%]     .mat-table .mat-sort-header-content{text-align:left}[_nghost-%COMP%]     .mat-button-ripple.mat-ripple, [_nghost-%COMP%]     .mat-button-focus-overlay{display:none}.cell-link[_ngcontent-%COMP%]{font-size:14px;color:#144a90;text-decoration:none;cursor:pointer}.cell-nowrap[_ngcontent-%COMP%]{white-space:nowrap}table[_ngcontent-%COMP%]   td.cell-center[_ngcontent-%COMP%]{text-align:center}.table-sort[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-items:center;margin-top:15px;gap:40px;width:80%}.view__title[_ngcontent-%COMP%]{font-size:1rem;font-weight:300}.view__label[_ngcontent-%COMP%]{position:relative;padding:5px;height:30px;border:1px solid #fff;font-size:1rem;font-weight:300;line-height:24px;transition:all .2s linear;margin-right:3px;
1cursor:pointer}.view__input[_ngcontent-%COMP%]{position:absolute;opacity:0;cursor:pointer}.view[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]:has(input:checked){background:#D9EAFF}.actions[_ngcontent-%COMP%]{display:flex;gap:40px;margin-top:23px}.actions[_ngcontent-%COMP%]   .apply[_ngcontent-%COMP%]{color:#144a90;font-size:14px;font-style:normal;font-weight:400;line-height:normal;text-transform:uppercase}.actions[_ngcontent-%COMP%]   .clear[_ngcontent-%COMP%]{color:#a6a6a6;font-size:14px;font-style:normal;font-weight:400;line-height:normal;text-transform:uppercase}.search-select[_ngcontent-%COMP%]{padding-left:.75em;padding-right:.75em;background-color:#d9eaff;width:20vw;height:42px;display:flex;align-items:center;margin-top:4px!important;box-sizing:border-box;cursor:pointer}.search-select[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#d6117f;margin-left:auto}.search-select[_ngcontent-%COMP%]   .select-arrow[_ngcontent-%COMP%]{height:8px;width:13px;background:url(/assets/pic/icons/arrow.svg) no-repeat;margin-left:auto}.search-select[_ngcontent-%COMP%]   .rotate[_ngcontent-%COMP%]{transform:rotate(180deg)}  .search-input__container{display:flex;justify-content:flex-end;position:absolute;bottom:-50px}  .search-input__container.search-input__container_hidden{visibility:hidden;height:0}  .search-input__container .search-input img{width:20px;height:20px;transform:translateY(2px)}  .search-input__container .search-input .mat-form-field-flex{width:308px;padding:0 13px;border-radius:0;border-bottom:none;background:#F3F3F3}  .search-input__container .search-input .mat-form-field-wrapper{padding-bottom:0}  .search-input__container .search-input .mat-input-element{color:#a6a6a6;font-family:Capital Gothic;font-size:16px;font-style:normal;font-weight:300;line-height:normal;letter-spacing:.16px}  .search-input__container .search-input .mat-form-field-infix{padding:9px;border-top:0}  .search-input__container .search-input .mat-form-field-underline{display:none}.searching[_ngcontent-%COMP%]{gap:20px;position:relative;margin-bottom:64px}  .date-menu{width:100%;max-width:100%;padding:10px 20px}.selected-row[_ngcontent-%COMP%]{text-shadow:.7px 0 0 currentColor;border-bottom:2px solid #D6117F!important}"]}),o})();var cs=l(81875),Le=l(85231);const Ts=["contactForm"];function ps(o,i){if(1&o&&(e.tHW(0,3,1),e.TgZ(1,"app-tooltip"),e._UZ(2,"p"),e.qZA(),e.N_p()),2&o){const t=e.oxw();e.xp6(2),e.pQV(t.tooltipsService.tooltips.new_trouble_ticket),e.QtT(0)}}function ds(o,i){if(1&o){const t=e.EpF();e.TgZ(0,"div",65),e.NdJ("click",function(){e.CHM(t);const a=e.oxw();return e.KtG(a.openMaintenanceDialog())}),e.TgZ(1,"div",66)(2,"p"),e.SDv(3,67),e.qZA(),e.TgZ(4,"p",68),e.SDv(5,69),e.qZA(),e.TgZ(6,"p",68),e.SDv(7,70),e.qZA()(),e.TgZ(8,"div",71),e._UZ(9,"div",72),e.TgZ(10,"p"),e.tHW(11,73),e._UZ(12,"span"),e.N_p(),e.qZA()()()}if(2&o){const t=e.oxw();e.xp6(7),e.pQV(t.numberOfDaysString),e.QtT(7)}}function gs(o,i){if(1&o&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&o){const t=i.$implicit;e.xp6(1),e.Oqu(t)}}function Cs(o,i){1&o&&(e.TgZ(0,"p",74),e.SDv(1,75),e.qZA())}function us(o,i){if(1&o&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&o){const t=i.$implicit;e.xp6(1),e.Oqu(t)}}function Es(o,i){if(1&o&&(e.TgZ(0,"p",76),e.SDv(1,77),e.qZA()),2&o){const t=e.oxw();e.Q6J("ngClass",t.servicesRequired?"error-color-text":"")}}function Os(o,i){if(1&o&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&o){const t=e.oxw();e.xp6(1),e.Oqu(t.periodLabel)}}function Ps(o,i){1&o&&(e.TgZ(0,"p",74),e.SDv(1,78),e.qZA())}function Ss(o,i){1&o&&(e.TgZ(0,"mat-error"),e.SDv(1,79),e.qZA())}function ms(o,i){1&o&&(e.TgZ(0,"p",80),e.SDv(1,81),e.qZA())}function Ms(o,i){if(1&o&&(e.TgZ(0,"p",80),e._uU(1),e.qZA()),2&o){const t=e.oxw();e.xp6(1),e.Oqu(t.errorMessage)}}function fs(o,i){if(1&o&&(e.TgZ(0,"div",88),e._UZ(1,"mat-progress-bar",89),e.TgZ(2,"p",66),e._uU(3),e.qZA()()),2&o){const t=e.oxw().index,n=e.oxw();e.xp6(1),e.Q6J("value",n.showedFiles[t].percentage),e.xp6(2),e.hij("",n.showedFiles[t].percentage,"%")}}function Ns(o,i){if(1&o){const t=e.EpF();e.TgZ(0,"div",82)(1,"div",83)(2,"p",84),e._uU(3),e.qZA(),e.TgZ(4,"mat-icon",85),e.NdJ("click",function(){const _=e.CHM(t).index,s=e.oxw();return e.KtG(s.deleteFile(_))}),e._uU(5,"close"),e.qZA()(),e.YNc(6,fs,4,2,"div",86),e.TgZ(7,"p",87),e._uU(8),e.qZA()()}if(2&o){const t=i.index,n=e.oxw();e.xp6(3),e.Oqu(n.getFileNameFromForm(t)),e.xp6(3),e.Q6J("ngIf",n.showedFiles[t].isUploading),e.xp6(2),e.hij("",n.getFileSizeFromForm(t)," MB")}
1}const Is=function(o){return{"error-border":o}},hs=function(o){return{"error-show":o}};let As=(()=>{class o{constructor(t,n,a,_,s,c,p,g,u,d){this.getCompanyContactsUseCase=t,this.breadcrumbs=n,this.sendFileUsecase=a,this.sendTroubleTicket=_,this.matDialog=s,this.router=c,this.route=p,this.tooltipsService=g,this.rolesService=u,this.getNearestMaintenanceWorkDateUsecase=d,this.troubleTicketForm=new za,this.servicesRequired=!1,this.tooltipText="You can attach max 5 files each below 25Mb. ( .doc, .docx, .txt, .rtf, .xls, .xlsx, .pdf, .csv, .png, .jpg, .jpeg, .tiff, .gif, .zip, .rar, .tar, .gz, .pcap, .cap )",this.errorMessage="",this.defaultEmails=[],this.showedFiles=[],this.menuOpened=!1,this.numberOfDaysString="",this.textareaLabel="Describe your request",this.format=I.Z}canAction(t,n){return this.rolesService.canAction(t,n)}ngOnInit(){this.route.queryParams.subscribe(t=>{t.service_id&&this.troubleTicketForm.services.setValue([t.service_id])}),this.setUpBreadcrumbLinks(),this.getCompanyContactsUseCase.execute("technical").subscribe(t=>{this.defaultEmails=t}),this.getNearestMaintenanceWorkDateUsecase.execute().subscribe(t=>{this.numberOfDaysString=t})}setUpBreadcrumbLinks(){this.breadcrumbs.setLinks([{route:"/",text:"HOME"},{route:"/main/support",text:"SUPPORT"},{route:"/main/support/tickets",text:"TROUBLE TICKETS"},{text:"NEW TROUBLE TICKET"}])}doFileInput(t){const n=t.target.files;if(n&&!(n.length<1)){this.errorMessage="";for(let a=0;a<n.length;a++){const _=n[a];if(!this.isFilesValid)break;if(_.size>26214400)return void(this.errorMessage="File size should be less than 25MB");if(!_.type)return void(this.errorMessage="File type is not allowed");{const s=_.type.split("/")[1];if(!["doc","docx","txt","rtf","xls","xlsx","pdf","csv","png","jpg","jpeg","tiff","gif","zip","rar","tar","gz","pcap","cap","vnd.openxmlformats-officedocument.spreadsheetml.sheet","vnd.openxmlformats-officedocument.wordprocessingml.document"].includes(s))return void(this.errorMessage="File type " + s + " is not allowed")}this.showedFiles.push({name:_.name,size:_.size,percentage:0,isUploading:!1}),this.sendFile(_,this.showedFiles.length-1)}t.target.value=null}}get isFilesValid(){return this.showedFiles.length<5}getFileNameFromForm(t){return this.showedFiles[t]?.name||""}getFileSizeFromForm(t){return Math.ceil((this.showedFiles[t]?.size||0)/1048576)||0}deleteFile(t){this.troubleTicketForm.files.value.splice(t,1),this.troubleTicketForm.files.value.splice(t,1),this.showedFiles.splice(t,1)}sendFile(t,n){const a=new FormData;a.append("file",t,t.name),this.showedFiles[n].percentage=0,this.showedFiles[n].isUploading=!0,this.sendFileUsecase.execute(a,"TICKET").pipe((0,H.U)(_=>{_.type===w.dt.UploadProgress?this.showedFiles[n].percentage=Math.round(100/_.total*_.loaded):_.type===w.dt.Response&&(this.showedFiles[n].isUploading=!1,this.troubleTicketForm.files.value[n]=_.body,this.troubleTicketForm.files.value[n]=_.body)}),(0,ee.K)(_=>(this.showedFiles[n].percentage=0,this.showedFiles[n].isUploading=!1,(0,j._)(_.message)))).subscribe()}goBack(){this.troubleTicketForm.touched||this.troubleTicketForm.dirty||this.troubleTicketForm.tickets.value||this.troubleTicketForm.services.value||this.troubleTicketForm.period.value.from?this.matDialog.open(ne.S,{panelClass:"general-information-popup",data:{text:"Are you sure you want to <span class=\"dedicated-text\">cancel</span>?<br> Entered data will not be saved."}}).afterClosed().subscribe(t=>{t&&history.back()}):history.back()}setDate(t){this.troubleTicketForm.period.setValue({from:t.from?(0,I.Z)(t.from,"dd MMMM yyyy"):null,to:t.to?(0,I.Z)(t.to,"dd MMMM yyyy"):null},{emitEvent:!1}),this.matMenuTrigger.closeMenu(),this.menuOpened=!1}sendBillingTicket(){if(this.troubleTicketForm.markAllAsTouched(),this.checkValidity()&&this.troubleTicketForm.valid){const n={emails:this.contactForm.emails,...k.g.removeEmptyProperties(this.troubleTicketForm.value)};this.sendTroubleTicket.execute(n).subscribe(a=>{this.router.navigate(["/main/support/tickets/"+a.ticketId],{queryParams:{status:"created"}})})}}openTicketsModal(){this.matDialog.open(ls,{data:{selectedTickets:this.troubleTicketForm.tickets.value}}).afterClosed().subscribe(t=>{t.length?(this.troubleTicketForm.tickets.setValue(t),this.menuOpened=!1):(this.troubleTicketForm.tickets.setValue([]),this.menuOpened=!1)})}get periodLabel(){return this.troubleTicketForm.period.value.from&&this.troubleTicketForm.period.value.to?`${this.troubleTicketForm.period.value.from} - ${this.troubleTicketForm.period.value.to}`:this.troubleTicketForm.period.value.from?`${this.troubleTicketForm.period.value.from} `:null}openServicesModal(){this.matDialog.open(Se,{data:{selectedServices:this.troubleTicketForm.services.value}}).afterClosed().subscribe(t=>{t.length?(this.troubleTicketForm.services.setValue(t),this.menuOpened=!1,this.servicesRequired=!1):(this.servicesRequired=!0,this.troubleTicketForm.services.setValue([]),this.menuOpened=!1)})}openMaintenanceDialog(){this.matDialog.open(Oe.e)}checkValidity(){return this.troubleTicketForm.markAllAsTouched(),this.servicesRequired=!this.troubleTicketForm.services.value.length,this.contactForm.checkEmailValidity(),!this.servicesRequired&&this.contactForm.checkEmailValidity()&&this.troubleTicketForm.valid}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(ae.P),e.Y36(q.W),e.Y36(te.b),e.Y36(cs.p),e.Y36($.uw),e.Y36(x.F0),e.Y36(x.gz),e.Y36(Q.b),e.Y36(fe.f),e.Y36(Le.B))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-create-trouble-ticket"]],viewQuery:function(t,n){if(1&t&&(e.Gf(Ts,5),e.Gf(F.p6,5)),2&t){let a;e.iGM(a=e.CRH())&&(n.contactForm=a.first),e.iGM(a=e.CRH())&&(n.matMenuTrigger=a.first)}},decls:81,vars:31,consts:function(){let i,t,n,a,_,s,c,p,g,u,d,O,b,v,P,U,D,S,m,M,K,N,h,oe,ie,A,Ee;return i="Please fill in the form below:",t="Closed Tickets",n="Please select the closed trouble tickets if your request refers to any of them",a="Services *",_="This field is required",s="From the list of your active services, check the ones your request concerns",c="Issue Started",p="Specify Period to which your request applies",g="Subject *",u="Type subject",d="Briefly describe the subject of your appeal, so that it can be easily identified from the title later on",O="Request *",b=" This field is required ",v=" Attach Files " + "\ufffd#66\ufffd\ufffd/#66\ufffd" + "",P="Attach screenshots or other files related to your request",U="CANCEL",D="SAVE",S="Trouble Ticket " + "\ufffd*4:1\ufffd\ufffd#1:1\ufffd" + "" + "\ufffd#2:1\ufffd" + "" + "\ufffd0:1\ufffd" + "" + "\ufffd/#2:1\ufffd" + "" + "\ufffd/#1:1\ufffd\ufffd/*4:1\ufffd" + "",m="You have",M=" MAINTENANCE WORK ",K=" for the next " + "\ufffd0\ufffd" + " days",N="See The Whole " + "\ufffd#12\ufffd" + "Schedule" + "\ufffd/#12\ufffd" + "",h="Select Tickets",oe="Select Services",ie="Select period",A=" This field is required ",Ee="You can attach max 5 files",[[1,"other-issues"],[1,"header","flex"],[1,"capital-gothic","header-text"],S,[4,"ngIf"],[1,"breadcrumbs"],["class","schedule",3,"click",4,"ngIf"],[1,"subtitle-text","capital-gothic"],i,[1,"flex","form_text_wrapper"],[1,"form_fields",3,"formGroup"],[1,"flex","relative-container","closed-field"],[1,"fields-name"],t,[1,"periods","pointer",3,"click"],[1,"periods-list"],[4,"ngFor","ngForOf"],["class","disabled",4,"ngIf"],[1,"pointer","small-arrow"],[1,"field-description"],n,a,[1,"periods","pointer","relative-container",3,"click"],[1,"periods-list",3,"ngClass"],["class","disabled",3,"ngClass",4,"ngIf"],[1,"pointer","small-arrow",3,"ngClass"],[1,"required-error",3,"ngClass"],_,s,[1,"flex","relative-container","field"],c,[1,"pointer","relative-container","periods",3,"matMenuTriggerFor","menuOpened","menuClosed"],["xPosition","after","yPosition","above",1,"date-menu"],["dateMenu","matMenu"],[3,"dateRangeChanged","click"],p,[1,"flex","relative-container","field","align-center"],g,["floatLabel","never"],["matInput","","placeholder",u,"formControlName","subject"],[1,"field-description","up"],d,[1,"flex","relative-container","comment"],O,[1,"editor",2,"width","100%",3,"ngClass"],[3,"editor"],[3,"editor","placeholder","formControl"],[1,"error",3,"ngClass"],b,[1,"flex","relative-container","files-wrapper"],["matTooltipPosition","above","matTooltipClass","attach-files-tooltip",1,"capital-gothic","margin-right","attach-files-text","pointer",3,"matTooltip","matTooltipDisabled","ngClass","click"],v,["multiple","","type","file","hidden","",3,"input"],["fileInput",""],["class","warning",4,"ngIf"],P,[1,"items-wrapper"],["class","file-data",4,"ngFor","ngForOf"],[3,"contactsType"],["contactForm",""],[1,"actions"],["mat-raised-button","","color","primary",1,"cancel",3,"click"],U,["mat-raised-button","","color","primary",1,"save",3,"click"],D,[1,"schedule",3,"click"],[1,"capital-gothic"],m,[1,"bold"],M,K,[1,"arrow-container"],[1,"arrow"],N,[1,"disabled"],h,[1,"disabled",3,"ngClass"],oe,ie,A,[1,"warning"],Ee,[1,"file-data"],[1,"flex"],[1,"file-name","capital-gothic"],[1,"pointer",3,"click"],["class","flex progress-bar align-center",4,"ngIf"],[1,"size","capital-gothic"],[1,"flex","progress-bar","align-center"],["mode","determinate",3,"value"]]},template:function(t,n){if(1&t){const a=e.EpF();e.TgZ(0,"div",0)(1,"div",1)(2,"p",2),e.tHW(3,3),e.YNc(4,ps,3,1,"app-tooltip",4),e.N_p(),e.qZA(),e.TgZ(5,"div",5),e._UZ(6,"wo-breadcrumbs"),e.qZA(),e.YNc(7,ds,13,1,"div",6),e.qZA(),e.TgZ(8,"p",7),e.SDv(9,8),e.qZA(),e.TgZ(10,"div",9)(11,"div",10)(12,"div",11)(13,"p",12),e.SDv(14,13),e.qZA(),e.TgZ(15,"div",14),e.NdJ("click",function(){return n.openTicketsModal()}),e.TgZ(16,"div",15),e.YNc(17,gs,2,1,"p",16),e.YNc(18,Cs,2,0,"p",17),e.qZA(),e._UZ(19,"div",18),e.qZA(),e.TgZ(20,"p",19),e.SDv(21,20),e.qZA()(),e.TgZ(22,"div",11)(23,"p",12),e.SDv(24,21),e.qZA(),e.TgZ(25,"div",22),e.NdJ("click",function(){return n.openServicesModal()}),e.TgZ(26,"div",23),e.YNc(27,us,2,1,"p",16),e.YNc(28,Es,2,1,"p",24),e.qZA(),e._UZ(29,"div",25),e.TgZ(30,"p",26),e.SDv(31,27),e.qZA()(),e.TgZ(32,"p",19),e.SDv(33,28),e.qZA()(),e.TgZ(34,"div",29)(35,"p",12),e.SDv(36,30),e.qZA(),e.TgZ(37,"div",31),e.NdJ("menuOpened",function(){return n.menuOpened=!0})("menuClosed",function(){return n.menuOpened=!1}),e.TgZ(38,"div",15),e.YNc(39,Os,2,1,"p",4),e.YNc(40,Ps,2,0,"p",17),e.qZA(),e._UZ(41,"div",18),e.qZA(),e.TgZ(42,"mat-menu",32,33)(44,"custom-date-range-picker",34),e.NdJ("dateRangeChanged",function(s){return n.setDate(s)})("click",function(s){return s.stopPropagation()}),e.qZA()(),e.TgZ(45,"p",19),e.SDv(46,35),e.qZA()(),e.TgZ(47,"div",36)(48,"p",12),e.SDv(49,37),e.qZA(),e.TgZ(50,"mat-form-field",38),e._UZ(51,"input",39),e.YNc(52,Ss,2,0,"mat-error",4),e.qZA(),e.TgZ(53,"p",40),e.SDv(54,41),e.qZA()(),e.TgZ(55,"div",42)(56,"p",12),e.SDv(57,43),e.qZA(),e.TgZ(58,"div",44),e._UZ(59,"ngx-editor-menu",45)(60,"ngx-editor",46),e.TgZ(61,"div",47),e.SDv(62,48),e.qZA()()(),e.TgZ(63,"div",49)(64,"p",50),e.NdJ("click",function(){e.CHM(a);const s=e.MAs(67);return e.KtG(n.isFilesValid&&s.click())}),e.tHW(65,51),e.TgZ(66,"input",52,53),e.NdJ("input",function(s){return n.doFileInput(s)}),e.qZA(),e.N_p(),e.qZA(),e.YNc(68,ms,2,0,"p",54),e.YNc(69,Ms,2,1,"p",54),e.TgZ(70,"p",19),e.SDv(71,55),e.qZA()(),e.TgZ(72,"div",56),e.YNc(73,Ns,9,3,"div",57),e.qZA()()(),e._UZ(74,"app-contact-form",58,59),e.TgZ(76,"div",60)(77,"button",61),e.NdJ("click",function(){return n.goBack()}),e.SDv(78,62),e.qZA(),e.TgZ(79,"button",63),e.NdJ("click",function(){return n.sendBillingTicket()}),e.SDv(80,64),e.qZA()()()}if(2&t){const a=e.MAs(43);e.xp6(4),e.Q6J("ngIf",null==n.tooltipsService||null==n.tooltipsService.tooltips?null:n.tooltipsService.tooltips.new_trouble_ticket),e.xp6(3),e.Q6J("ngIf",n.canAction("view","trouble_tickets")&&n.numberOfDaysString),e.xp6(4),e.Q6J("formGroup",n.troubleTicketForm),e.xp6(6),e.Q6J("ngForOf",n.troubleTicketForm.tickets.value),e.xp6(1),e.Q6J("ngIf",!n.troubleTicketForm.tickets.value.length),e.xp6(8),e.Q6J("ngClass",n.servicesRequired?"error-line":""),e.xp6(1),e.Q6J("ngForOf",n.troubleTicketForm.services.value),e.xp6(1),e.Q6J("ngIf",!n.troubleTicketForm.services.value.length),e.xp6(1),e.Q6J("ngClass",n.servicesRequired?"error-arrow":""),e.xp6(1),e.Q6J("ngClass",n.servicesRequired?"error-text":""),e.xp6(7),e.Q6J("matMenuTriggerFor",a),e.xp6(2),e.Q6J("ngIf",n.troubleTicketForm.period.value.from),e.xp6(1),e.Q6J("ngIf",!n.troubleTicketForm.period.value.from),e.xp6(12),e.Q6J("ngIf",n.troubleTicketForm.subject.hasError("required")),e.xp6(6),e.Q6J("ngClass",e.VKq(27,Is,n.troubleTicketForm.request.invali
1d&&(n.troubleTicketForm.request.dirty||n.troubleTicketForm.request.touched))),e.xp6(1),e.Q6J("editor",n.troubleTicketForm.editor),e.xp6(1),e.Q6J("editor",n.troubleTicketForm.editor)("placeholder",n.textareaLabel)("formControl",n.troubleTicketForm.request),e.xp6(1),e.Q6J("ngClass",e.VKq(29,hs,n.troubleTicketForm.request.invalid&&(n.troubleTicketForm.request.dirty||n.troubleTicketForm.request.touched))),e.xp6(3),e.Q6J("matTooltip",n.tooltipText)("matTooltipDisabled",!n.isFilesValid)("ngClass",n.isFilesValid?"":"attach-disabled"),e.xp6(4),e.Q6J("ngIf",!n.isFilesValid),e.xp6(1),e.Q6J("ngIf",n.errorMessage),e.xp6(4),e.Q6J("ngForOf",n.showedFiles),e.xp6(1),e.Q6J("contactsType","technical")}},dependencies:[T.mk,T.sg,T.O5,r.Fj,r.JJ,r.JL,r.oH,r.sg,r.u,Y.K,de.D,z.g,y.lW,F.VK,F.p6,f.TO,f.KE,Z.Nt,G.Hw,X.gM,W.pW,L.tP,L.Mn,se],styles:[".other-issues[_ngcontent-%COMP%]{width:90%}.actions[_ngcontent-%COMP%]{display:flex;gap:55px;margin-top:40px;width:90%;justify-content:center;margin-bottom:60px}.actions[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:310px;height:50px;text-transform:uppercase;font-size:16px;font-style:normal;font-weight:700}.actions[_ngcontent-%COMP%]   .cancel[_ngcontent-%COMP%]{background-color:#4698ff;color:#fff}.actions[_ngcontent-%COMP%]   .save[_ngcontent-%COMP%]{background-color:#144a90}.header[_ngcontent-%COMP%]{gap:10px;position:relative}.header[_ngcontent-%COMP%]   .header-text[_ngcontent-%COMP%]{font-size:44px;font-style:normal;font-weight:700;line-height:43px;letter-spacing:.44px;text-transform:uppercase}.header[_ngcontent-%COMP%]   .header-text[_ngcontent-%COMP%]     app-tooltip .right{top:13px}.header[_ngcontent-%COMP%]   .schedule[_ngcontent-%COMP%]{position:absolute;right:0;top:20px;display:flex;align-items:center;cursor:pointer}.header[_ngcontent-%COMP%]   .schedule[_ngcontent-%COMP%]   .bold[_ngcontent-%COMP%]{font-weight:700}.header[_ngcontent-%COMP%]   .schedule[_ngcontent-%COMP%]   .capital-gothic[_ngcontent-%COMP%]{margin-right:24px}.header[_ngcontent-%COMP%]   .schedule[_ngcontent-%COMP%]   .capital-gothic[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:#144a90;text-align:end}.header[_ngcontent-%COMP%]   .schedule[_ngcontent-%COMP%]   .arrow-container[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block}.header[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:hover   .arrow-container[_ngcontent-%COMP%]   .arrow[_ngcontent-%COMP%]{background-color:#d6117f}.header[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:hover   .arrow-container[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:#d6117f}.sub-text[_ngcontent-%COMP%]{margin-top:23px!important}.subtitle-text[_ngcontent-%COMP%]{margin-top:40px!important;margin-bottom:40px!important;font-size:14px;font-style:normal;font-weight:400;line-height:normal;text-transform:uppercase}.closed-field[_ngcontent-%COMP%]{margin-bottom:50px}.form_fields[_ngcontent-%COMP%]{background-color:#eaf2fc;padding:50px 28px 40px;min-width:590px;box-sizing:border-box}@media (max-width: 1440px){.form_fields[_ngcontent-%COMP%]{min-width:unset;width:40vw}}@media (max-width: 1180px){.form_fields[_ngcontent-%COMP%]{padding:50px 12px 40px}}.form_fields[_ngcontent-%COMP%]   .fields-name[_ngcontent-%COMP%]{width:165px}.form_fields[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]{width:100%}.form_fields[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{padding-left:10px}.form_fields[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]     .mat-form-field-label{margin-left:10px!important}.form_fields[_ngcontent-%COMP%]   .comment[_ngcontent-%COMP%]{margin-top:20px;align-items:flex-end}.form_fields[_ngcontent-%COMP%]   .comment[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]{padding-left:0;width:100%;height:-moz-fit-content;height:fit-content}.form_fields[_ngcontent-%COMP%]   .comment[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]{height:65px!important;border:#E0E0E0 1px solid!important;padding:10px;resize:none;box-sizing:border-box}.form_fields[_ngcontent-%COMP%]   .comment[_ngcontent-%COMP%]     .mat-form-field-underline{display:none}.form_fields[_ngcontent-%COMP%]   .comment[_ngcontent-%COMP%]     .mat-form-field-label{margin-top:40px!important}  .attach-files-tooltip{padding:19px!important;width:225px;border-radius:0!important;background-color:#fff!important;border-top:2px solid #D6117F;color:#000!important;font-size:12px!important;font-style:normal;font-weight:400}.file-data[_ngcontent-%COMP%]{display:flex;align-items:center;gap:14px}.file-data[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin-left:14px;color:#e0e0e0;font-size:19px;width:-moz-fit-content;width:fit-content;height:-moz-fit-content;height:fit-content}.file-data[_ngcontent-%COMP%]   .size[_ngcontent-%COMP%]{font-size:12px;color:#000;text-align:right}
1.file-data[_ngcontent-%COMP%]   .file-name[_ngcontent-%COMP%]{color:#144a90;width:270px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.attach-disabled[_ngcontent-%COMP%]{color:#d9d9d9}.progress-bar[_ngcontent-%COMP%]{width:170px}.progress-bar[_ngcontent-%COMP%]   mat-progress-bar[_ngcontent-%COMP%]{background-color:#144a90;margin-right:10px}.progress-bar[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:#144a90}.items-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;row-gap:8px;margin-top:10px}.close[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;color:#e0e0e0;cursor:pointer}.warning[_ngcontent-%COMP%]{color:#d6117f;font-size:12px}.files-wrapper[_ngcontent-%COMP%]{align-items:flex-end}.attach-disabled[_ngcontent-%COMP%]{color:#d9d9d9!important;cursor:auto}.attach-files-text[_ngcontent-%COMP%]{color:#144a90;text-transform:uppercase;font-size:14px;margin-top:18px!important;width:-moz-fit-content;width:fit-content}.form_text_wrapper[_ngcontent-%COMP%]{gap:40px}.bold[_ngcontent-%COMP%]{font-weight:700}  .date-menu{width:100%;max-width:100%;padding:10px 20px}.wrapper[_ngcontent-%COMP%]{gap:50px}.describe[_ngcontent-%COMP%]{display:flex;padding-top:20px;flex-direction:column;justify-content:flex-end;gap:60px;padding-bottom:32px}.disabled[_ngcontent-%COMP%]{color:#0000008f}.field[_ngcontent-%COMP%]{margin-bottom:31px}.small-arrow[_ngcontent-%COMP%]{width:20px;position:absolute;right:0;bottom:0;rotate:x;height:20px;margin-left:auto;background-color:#7d7d7d;mask:url(/assets/pic/sidebar/arrow-down.svg) no-repeat;-webkit-mask:url(/assets/pic/sidebar/arrow-down.svg) no-repeat}.periods[_ngcontent-%COMP%]{max-height:100px;position:relative;display:flex;flex-direction:column;gap:8px;width:100%;border-bottom:1px solid black}.periods[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin-left:14px;color:#e0e0e0;font-size:19px;width:-moz-fit-content;width:fit-content;height:-moz-fit-content;height:fit-content}.periods[_ngcontent-%COMP%]   [_ngcontent-%COMP%]::-webkit-scrollbar{width:2px;height:2px;background-color:#fff;padding:0 4px}.periods[_ngcontent-%COMP%]   [_ngcontent-%COMP%]::-webkit-scrollbar-track{background:rgb(230,230,230)}.periods[_ngcontent-%COMP%]   [_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#BBBBBB;border-radius:0}.periods[_ngcontent-%COMP%]   .periods-list[_ngcontent-%COMP%]{width:300px;overflow-y:auto;display:flex;flex-direction:column;gap:8px}@media (max-width: 1180px){.periods[_ngcontent-%COMP%]   .periods-list[_ngcontent-%COMP%]{width:unset}}.periods[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{padding-left:10px;padding-bottom:3px}.relative-container[_ngcontent-%COMP%]{position:relative;gap:20px}.relative-container[_ngcontent-%COMP%]   .field-description[_ngcontent-%COMP%]{position:absolute;bottom:-3px;right:-530px;width:460px;min-width:250px}@media (max-width: 1440px){.relative-container[_ngcontent-%COMP%]   .field-description[_ngcontent-%COMP%]{width:30vw;left:calc(100% + 50px)}}@media (max-width: 1180px){.relative-container[_ngcontent-%COMP%]   .field-description[_ngcontent-%COMP%]{width:25vw;left:calc(100% + 30px)}}@media (max-width: 960px){.relative-container[_ngcontent-%COMP%]   .field-description[_ngcontent-%COMP%]{width:20vw}}.relative-container[_ngcontent-%COMP%]   .up[_ngcontent-%COMP%]{bottom:15px}.relative-container[_ngcontent-%COMP%]   .error-text[_ngcontent-%COMP%]{bottom:-30px!important;visibility:visible!important}.relative-container[_ngcontent-%COMP%]   .error-arrow[_ngcontent-%COMP%]{background-color:#d6117f!important}.relative-container[_ngcontent-%COMP%]   .error-line[_ngcontent-%COMP%]{border-bottom-color:#d6117f!important}.relative-container[_ngcontent-%COMP%]   .error-color-text[_ngcontent-%COMP%]{color:#d6117f!important}.relative-container[_ngcontent-%COMP%]   .required-error[_ngcontent-%COMP%]{color:#d6117f;font-size:12px;position:absolute;bottom:-26px;padding-left:0!important;z-index:1;visibility:hidden;transition:bottom .2s ease-in-out}[_nghost-%COMP%]     #contentEditableDiv{height:65px!important}[_nghost-%COMP%]     #editableP{max-height:45px!important}[_nghost-%COMP%]     .comment .mat-form-field-wrapper{padding-bottom:0}.error[_ngcontent-%COMP%]{color:#d6117f!important;font-size:12px!important;top:calc(100% - 1.6666666667em);position:absolute;box-sizing:border-box;width:100%;overflow:hidden;opacity:1;transform:translateY(0);z-index:0;transition:.2s all}[_nghost-%COMP%]     .editor .NgxEditor__MenuBar, [_nghost-%COMP%]     .editor .NgxEditor{background-color:#eaf2fc!important;z-index:1}[_nghost-%COMP%]     .error-border .NgxEditor{border:1px solid #D6117F!important}.error-show[_ngcontent-%COMP%]{transform:translateY(20px)}[_nghost-%COMP%]     .editor .NgxEditor{min-height:100px}"]}),o})();class Fs extends J.I{constructor(){super({}),this.addControl("services",new r.NI([])),this.addControl("subject",new r.NI("",r.kI.required)),this.addControl("request",new r.NI("")),this.addControl("files",new r.NI([])),this.addControl("emails",new r.NI(""))}get services(){return this.controls.services}get subject(){return this.controls.subject}get request(){return this.controls.request}get files(){return this.controls.files}get emails(){return this.controls.files}}var Rs=l(74621);const xs=["contactForm"];function bs(o,i){if(1&o&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&o){const t=i.$implicit;e.xp6(1),e.Oqu(t)}}function vs(o,i){1&o&&(e.TgZ(0,"p",54),e.SDv(1,55),e.qZA())}function Us(o,i){1&o&&(e.TgZ(0,"mat-error"),e.SDv(1,56),e.qZA())}function Ds(o,i){1&o&&(e.TgZ(0,"p",57),e.SDv(1,58),e.qZA())}function $s(o,i){if(1&o&&(e.TgZ(0,"div",65),e._UZ(1,"mat-progress-bar",66),e.TgZ(2,"p",6),e._uU(3),e.qZA()()),2&o){const t=e.oxw().index,n=e.oxw();e.xp6(1),e.Q6J("value",n.showedFiles[t].percentage),e.xp6(2),e.hij("",n.showedFiles[t].percentage,"%")}}function ys(o,i){if(1&o){const t=e.EpF();e.TgZ(0,"div",59)(1,"div",60)(2,"p",61),e._uU(3),e.qZA(),e.TgZ(4,"mat-icon",62),e.NdJ("click",function(){const _=e.CHM(t).index,s=e.oxw();return e.KtG(s.deleteFile(_))}),e._uU(5,"close"),e.qZA()(),e.YNc(6,$s,4,2,"div",63),e.TgZ(7,"p",64),e._uU(8),e.qZA()()}if(2&o){const t=i.index,n=e.oxw();e.xp6(3),e.Oqu(n.getFileNameFromForm(t)),e.xp6(3),e.Q6J("ngIf",n.showedFiles[t].isUploading),e.xp6(2),e.hij("",n.getFileSizeFromForm(t)," MB")}
1}let ws=(()=>{class o{constructor(t,n,a,_,s){this.breadcrumbs=t,this.sendFileUsecase=n,this.dialog=a,this.sendInformationalTicketUsecase=_,this.router=s,this.informationalTicketForm=new Fs,this.showedFiles=[],this.menuOpened=!1}ngOnInit(){this.setUpBreadcrumbLinks()}openMaintenanceDialog(){this.dialog.open(Oe.e)}setUpBreadcrumbLinks(){this.breadcrumbs.setLinks([{route:"/",text:"HOME"},{route:"/main/support",text:"SUPPORT"},{route:"/main/support/tickets",text:"TROUBLE TICKETS"},{text:"INFORMATIONAL TICKET"}])}doFileInput(t){const n=t.target.files;if(n&&!(n.length<1)){for(let a=0;a<n.length;a++){const _=n[a];if(!this.isFilesValid)break;this.showedFiles.push({name:_.name,size:_.size,percentage:0,isUploading:!1}),this.sendFile(_,this.showedFiles.length-1)}t.target.value=null}}get isFilesValid(){const t=this.showedFiles,n=t.reduce((a,_)=>a+(_.size||0)/1048576,0);return t.length<5&&n<500}getFileNameFromForm(t){return this.showedFiles[t]?.name||""}getFileSizeFromForm(t){return Math.ceil((this.showedFiles[t]?.size||0)/1048576)||0}deleteFile(t){this.informationalTicketForm.files.value.splice(t,1),this.showedFiles.splice(t,1)}sendFile(t,n){const a=new FormData;a.append("file",t,t.name),this.showedFiles[n].percentage=0,this.showedFiles[n].isUploading=!0,this.sendFileUsecase.execute(a,"TICKET").pipe((0,H.U)(_=>{_.type===w.dt.UploadProgress?this.showedFiles[n].percentage=Math.round(100/_.total*_.loaded):_.type===w.dt.Response&&(this.showedFiles[n].isUploading=!1,this.informationalTicketForm.files.value[n]=_.body)}),(0,ee.K)(_=>(this.showedFiles[n].percentage=0,this.showedFiles[n].isUploading=!1,(0,j._)(_.message)))).subscribe()}openServicesModal(){this.dialog.open(Se,{data:{selectedServices:this.informationalTicketForm.services.value}}).afterClosed().subscribe(t=>{t&&this.informationalTicketForm.services.setValue(t)})}cancel(){this.informationalTicketForm.dirty?this.dialog.open(ne.S,{panelClass:"general-information-popup",data:{text:"Are you sure you want to <span class=\"dedicated-text\">cancel</span>?<br> Entered data will not be saved."}}).afterClosed().subscribe(t=>{t&&history.back()}):history.back()}sendRequest(){this.informationalTicketForm.markAllAsTouched(),this.informationalTicketForm.valid&&this.sendInformationalTicketUsecase.execute({emails:this.contactForm.emails,...this.informationalTicketForm.value}).subscribe(t=>{this.router.navigate(["/main/support/tickets/"+t.ticketId],{queryParams:{status:"created"}})})}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(q.W),e.Y36(te.b),e.Y36($.uw),e.Y36(Rs.K),e.Y36(x.F0))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-informational-ticket"]],viewQuery:function(t,n){if(1&t&&e.Gf(xs,5),2&t){let a;e.iGM(a=e.CRH())&&(n.contactForm=a.first)}},decls:68,vars:10,consts:function(){let i,t,n,a,_,s,c,p,g,u,d,O,b,v,P,U,D,S;return i="informational ticket " + "\ufffd#4\ufffd" + "" + "\ufffd#5\ufffd" + "A tooltip is often used to specify extra information about something when the user moves the mouse pointer over an element" + "\ufffd/#5\ufffd" + "" + "\ufffd/#4\ufffd" + "",t=" MAINTENANCE WORK ",n=" for the next two days",a="See The Whole " + "\ufffd#20\ufffd" + "Schedule" + "\ufffd/#20\ufffd" + "",_="Please enter new values for the fields you want to change:",s="Services",c="Subject",p="Request",g=" Attach Files " + "\ufffd#47\ufffd\ufffd/#47\ufffd" + "",u="Specify Services to which your request applies",d=" Briefly describe the subject of your appeal, so that it can be easily identified from the title later on",O="Add additional information if needed",b="Attach screenshots or other files related to your request",v="CANCEL",P="SAVE",U="Select services",D=" This field is required ",S="You can attach max 5 files/500Mb",[[1,"main-wrapper"],[1,"header","flex"],[1,"capital-gothic","header-text"],i,[1,"breadcrumbs"],[1,"schedule",3,"click"],[1,"capital-gothic"],[1,"bold"],t,n,[1,"arrow-container"],[1,"arrow"],a,[1,"subtitle-text","capital-gothic"],_,[1,"flex","wrapper"],[1,"form_fields",3,"formGroup"],[1,"flex","field"],[1,"fields-name"],s,[1,"periods"],[1,"periods-list"],[4,"ngFor","ngForOf"],["class","disabled",4,"ngIf"],[1,"pointer","small-arrow",3,"click"],[1,"flex","align-center"],c,["floatLabel","never"],["matInput","","placeholder","Type the subject","formControlName","subject"],[4,"ngIf"],[1,"flex","comment"],p,["matInput","","placeholder","Describe your request","formControlName","request"],[1,"flex","files-wrapper"],["matTooltip","You can attach max 5 files/500Mb (.pdf, .exls, .jpeg)","matTooltipPosition","above","matTooltipClass","attach-files-tooltip",1,"capital-gothic","margin-right","attach-files-text","pointer",3,"matTooltipDisabled","ngClass","click"],g,["multiple","","type","file","hidden","",3,"input"],["fileInput",""],["class","warning",4,"ngIf"],[1,"items-wrapper"],["class","file-data",4,"ngFor","ngForOf"],[1,"fields_description"],[3,"ngClass"],u,d,O,b,[3,"contactsType"],["contactForm",""],[1,"actions"],["mat-raised-button","","color","primary",1,"cancel",3,"click"],v,["mat-raised-button","","color","primary",1,"save",3,"click"],P,[1,"disabled"],U,D,[1,"warning"],S,[1,"file-data"],[1,"flex"],[1,"file-name","capital-gothic"],[1,"pointer",3,"click"],["class","flex progress-bar align-center",4,"ngIf"],[1,"size","capital-gothic"],[1,"flex","progress-bar","align-center"],["mode","determinate",3,"value"]]},template:function(t,n){if(1&t){const a=e.EpF();e.TgZ(0,"div",0)(1,"div",1)(2,"p",2),e.tHW(3,3),e.TgZ(4,"app-tooltip"),e._UZ(5,"p"),e.qZA(),e.N_p(),e.qZA(),e.TgZ(6,"div",4),e._UZ(7,"wo-breadcrumbs"),e.qZA(),e.TgZ(8,"div",5),e.NdJ("click",function(){return n.openMaintenanceDialog()}),e.TgZ(9,"div",6)(10,"p"),e._uU(11,"You have"),e.qZA(),e.TgZ(12,"p",7),e.SDv(13,8),e.qZA(),e.TgZ(14,"p",7),e.SDv(15,9),e.qZA()(),e.TgZ(16,"div",10),e._UZ(17,"div",11),e.TgZ(18,"p"),e.tHW(19,12),e._UZ(20,"span"),e.N_p(),e.qZA()()()(),e.TgZ(21,"p",13),e.SDv(22,14),e.qZA(),e.TgZ(23,"div",15)(24,"div",16)(25,"div",17)(26,"p",18),e.SDv(27,19),e.qZA(),e.TgZ(28,"div",20)(29,"div",21),e.YNc(30,bs,2,1,"p",22),e.YNc(31,vs,2,0,"p",23),e.qZA(),e.TgZ(32,"div",24),e.NdJ("click",function(){return n.openServicesModal()}),e.qZA()()(),e.TgZ(33,"div",25)(34,"p",18),e.SDv(35,26),e.qZA(),e.TgZ(36,"mat-form-field",27),e._UZ(37,"input",28),e.YNc(38,Us,2,0,"mat-error",29),e.qZA()(),e.TgZ(39,"div",30)(40,"p",18),e.SDv(41,31),e.qZA(),e.TgZ(42,"mat-form-field",27),e._UZ(43,"textarea",32),e.qZA()(),e.TgZ(44,"div",33)(45,"p",34),e.NdJ("click",function(){e.CHM(a);const s=e.MAs(48);return e.KtG(n.isFilesValid&&s.click())}),e.tHW(46,35),e.TgZ(47,"input",36,37),e.NdJ("input",function(s){return n.doFileInput(s)}),e.qZA(),e.N_p(),e.qZA(),e.YNc(49,Ds,2,0,"p",38),e.qZA(),e.TgZ(50,"div",39),e.YNc(51,ys,9,3,"div",40),e.qZA()(),e.TgZ(52,"div",41)(53,"p",42),e.SDv(54,43),e.qZA(),e.TgZ(55,"p"),e.SDv(56,44),e.qZA(),e.TgZ(57,"p"),e.SDv(58,45),e.qZA(),e.TgZ(59,"p"),e.SDv(60,46),e.qZA()()(),e._UZ(61,"app-contact-form",47,48),e.TgZ(63,"div",49)(64,"button",50),e.NdJ("click",function(){return n.cancel()}),e.SDv(65,51),e.qZA(),e.TgZ(66,"button",52),e.NdJ("click",function(){return n.sendRequest()}),e.SDv(67,53),e.qZA()()()}2&t&&(e.xp6(24),e.Q6J("formGroup",n.informationalTicketForm),e.xp6(6),e.Q6J("ngForOf",n.informationalTicketForm.services.value),e.xp6(1),e.Q6J("ngIf",!n.informationalTicketForm.services.value.length),e.xp6(7),e.Q6J("ngIf",n.informationalTicketForm.subject.hasError("required")),e.xp6(7),e.Q6J("matTooltipDisabled",!n.isFilesValid)("ngClass",n.isFilesValid?"":"attach-disabled"),e.xp6(4),e.Q6J("ngIf",!n.isFilesValid),e.xp6(2),e.Q6J("ngForOf",n.showedFiles),e.xp6(2),e.Q6J("ngClass","padding-increase-"+n.informationalTicketForm.services.value.slice(0,4).length),e.xp6(8),e.Q6J("contactsType","technical"))},dependencies:[T.mk,T.sg,T.O5,r.Fj,r.JJ,r.JL,r.sg,r.u,Y.K,z.g,y.lW,f.TO,f.KE,Z.Nt,G.Hw,X.gM,W.pW,se],styles:[".main-wrapper[_ngcontent-%COMP%]{width:90%}.actions[_ngcontent-%COMP%]{display:flex;gap:55px;margin-top:40px;width:90%;justify-content:center;margin-bottom:60px}.actions[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:310px;height:50px;text-transform:uppercase;font-size:16px;font-style:normal;font-weight:700}.actions[_ngcontent-%COMP%]   .cancel[_ngcontent-%COMP%]{background-color:#4698ff;color:#fff}
1.actions[_ngcontent-%COMP%]   .save[_ngcontent-%COMP%]{background-color:#144a90}.header[_ngcontent-%COMP%]{gap:10px;position:relative}.header[_ngcontent-%COMP%]   .header-text[_ngcontent-%COMP%]{font-size:44px;font-style:normal;font-weight:700;line-height:43px;letter-spacing:.44px;text-transform:uppercase}.header[_ngcontent-%COMP%]   .schedule[_ngcontent-%COMP%]{position:absolute;right:0;top:20px;display:flex;align-items:center;cursor:pointer}.header[_ngcontent-%COMP%]   .schedule[_ngcontent-%COMP%]   .bold[_ngcontent-%COMP%]{font-weight:700}.header[_ngcontent-%COMP%]   .schedule[_ngcontent-%COMP%]   .capital-gothic[_ngcontent-%COMP%]{margin-right:24px}.header[_ngcontent-%COMP%]   .schedule[_ngcontent-%COMP%]   .capital-gothic[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:#144a90;text-align:end}.header[_ngcontent-%COMP%]   .schedule[_ngcontent-%COMP%]   .arrow-container[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block}.header[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:hover   .arrow-container[_ngcontent-%COMP%]   .arrow[_ngcontent-%COMP%]{background-color:#d6117f}.header[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:hover   .arrow-container[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:#d6117f}.sub-text[_ngcontent-%COMP%]{margin-top:23px!important}.subtitle-text[_ngcontent-%COMP%]{margin-top:40px!important;margin-bottom:40px!important;font-size:14px;font-style:normal;font-weight:400;line-height:normal;text-transform:uppercase}.form_fields[_ngcontent-%COMP%]{background-color:#eaf2fc;padding:10px 28px 40px;min-width:590px;box-sizing:border-box}.form_fields[_ngcontent-%COMP%]   .fields-name[_ngcontent-%COMP%]{width:150px}.form_fields[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]{width:100%}.form_fields[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{padding-left:10px}.form_fields[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]     .mat-form-field-label{margin-left:10px!important}.form_fields[_ngcontent-%COMP%]   .comment[_ngcontent-%COMP%]{margin-top:20px;align-items:flex-end}.form_fields[_ngcontent-%COMP%]   .comment[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]{padding-left:0;width:100%;height:-moz-fit-content;height:fit-content}.form_fields[_ngcontent-%COMP%]   .comment[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]{height:65px!important;border:#E0E0E0 1px solid!important;padding:10px;resize:none;box-sizing:border-box}.form_fields[_ngcontent-%COMP%]   .comment[_ngcontent-%COMP%]     .mat-form-field-underline{display:none}.form_fields[_ngcontent-%COMP%]   .comment[_ngcontent-%COMP%]     .mat-form-field-label{margin-top:40px!important}.form_fields[_ngcontent-%COMP%]   .comment[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{padding-bottom:22px}  .attach-files-tooltip{padding:19px!important;width:125px;border-radius:0!important;background-color:#eaf2fc80;border-top:2px solid #D6117F;color:#000!important;font-size:12px!important;font-style:normal;font-weight:400}.file-data[_ngcontent-%COMP%]{display:flex;align-items:center;gap:14px}.file-data[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin-left:14px;color:#e0e0e0;font-size:19px;width:-moz-fit-content;width:fit-content;height:-moz-fit-content;height:fit-content}.file-data[_ngcontent-%COMP%]   .size[_ngcontent-%COMP%]{font-size:12px;color:#000;text-align:right}.file-data[_ngcontent-%COMP%]   .file-name[_ngcontent-%COMP%]{color:#144a90;width:270px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.attach-disabled[_ngcontent-%COMP%]{color:#d9d9d9}.progress-bar[_ngcontent-%COMP%]{width:170px}.progress-bar[_ngcontent-%COMP%]   mat-progress-bar[_ngcontent-%COMP%]{background-color:#144a90;margin-right:10px}.progress-bar[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:#144a90}.items-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;row-gap:8px;margin-top:10px}.close[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;color:#e0e0e0;cursor:pointer}.warning[_ngcontent-%COMP%]{color:#d6117f;font-size:12px}.files-wrapper[_ngcontent-%COMP%]{align-items:flex-end}.attach-disabled[_ngcontent-%COMP%]{color:#d9d9d9!important;cursor:auto}.attach-files-text[_ngcontent-%COMP%]{color:#144a90;text-transform:uppercase;font-size:14px;margin-top:18px!important;width:-moz-fit-content;width:fit-content}.form_text_wrapper[_ngcontent-%COMP%]{gap:40px}.fields_description[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:flex-end;padding:30px 0 0}.fields_description[_ngcontent-%COMP%]   .padding-increase-0[_ngcontent-%COMP%], .fields_description[_ngcontent-%COMP%]   .padding-increase-1[_ngcontent-%COMP%]{padding-top:0}.fields_description[_ngcontent-%COMP%]   .padding-increase-2[_ng
1content-%COMP%]{padding-top:17px}.fields_description[_ngcontent-%COMP%]   .padding-increase-3[_ngcontent-%COMP%]{padding-top:50px}.fields_description[_ngcontent-%COMP%]   .padding-increase-4[_ngcontent-%COMP%]{padding-top:66px}.fields_description[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]:nth-child(2){margin-top:37px!important}.fields_description[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]:nth-child(3){padding-top:108px}.fields_description[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]:nth-child(4){padding-top:110px}.fields_description[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]:last-child{margin-bottom:auto!important;padding-top:35px}.bold[_ngcontent-%COMP%]{font-weight:700}  .date-menu{width:100%;max-width:100%;padding:10px 20px}.wrapper[_ngcontent-%COMP%]{gap:50px}.describe[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:flex-end;padding-bottom:30px;gap:65px}.field[_ngcontent-%COMP%]{min-height:40px;align-items:flex-end;margin-bottom:31px}.small-arrow[_ngcontent-%COMP%]{width:20px;position:absolute;right:0;bottom:0;rotate:x;height:20px;margin-left:auto;background-color:#7d7d7d;mask:url(/assets/pic/sidebar/arrow-down.svg) no-repeat;-webkit-mask:url(/assets/pic/sidebar/arrow-down.svg) no-repeat}.undo-changes[_ngcontent-%COMP%]{position:absolute;right:0;bottom:0;color:#a6a6a6;font-size:14px;font-style:normal;font-weight:400;line-height:normal;text-transform:uppercase}.periods[_ngcontent-%COMP%]{max-height:100px;position:relative;display:flex;flex-direction:column;gap:8px;width:100%;border-bottom:1px solid black}.periods[_ngcontent-%COMP%]   .periods-list[_ngcontent-%COMP%]{width:320px;overflow-y:auto;display:flex;flex-direction:column;gap:8px}.periods[_ngcontent-%COMP%]   .periods-list[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{padding-left:10px;padding-bottom:3px}.periods[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin-left:14px;color:#e0e0e0;font-size:19px;width:-moz-fit-content;width:fit-content;height:-moz-fit-content;height:fit-content}.periods[_ngcontent-%COMP%]   [_ngcontent-%COMP%]::-webkit-scrollbar{width:2px;height:2px;background-color:#fff;padding:0 4px}.periods[_ngcontent-%COMP%]   [_ngcontent-%COMP%]::-webkit-scrollbar-track{background:rgb(230,230,230)}.periods[_ngcontent-%COMP%]   [_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#BBBBBB;border-radius:0}.disabled[_ngcontent-%COMP%]{color:#0000008a;cursor:auto}"]}),o})();var re=l(82311);const ks=[{path:"",pathMatch:"full",component:_t},{path:"faq",component:si},{path:"noc",component:Ho},{path:"escalation-matrix",component:ui},{path:"tickets",component:nn},{path:"tickets/:id",component:Go},{path:"change-company-information",component:bi,data:{view:"company_information",action:"edit"},canActivate:[re.p]},{path:"request-outage-compensation",component:Ya,data:{view:"billing_tickets",action:"create"},canActivate:[re.p]},{path:"dispute-invoice",component:xa,data:{view:"billing_tickets",action:"create"},canActivate:[re.p]},{path:"other-billing-related-issue",component:d_,data:{view:"billing_tickets",action:"create"},canActivate:[re.p]},{path:"request-statement-of-account",component:t_,data:{view:"billing_tickets",action:"create"},canActivate:[re.p]},{path:"create-trouble-ticket",component:As,data:{view:"trouble_tickets",action:"create"},canActivate:[re.p]},{path:"informational-ticket",component:ws,data:{view:"trouble_tickets",action:"create"},canActivate:[re.p]}];let Ls=(()=>{class o{}return o.\u0275fac=function(t){return new(t||o)}
1,o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({imports:[x.Bz.forChild(ks),x.Bz]}),o})();var Gs=l(7876),Zs=l(10794),qs=l(15475),Ks=l(3238),Ys=l(84385);let zs=(()=>{class o{}return o.\u0275fac=function(t){return new(t||o)},o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({providers:[ge,Le.B],imports:[T.ez,Ls,r.UX,Gs.G,Zs.C,B.t,C.p0,V.JX,y.ot,_e.Nh,Ce.To,qs.A,F.Tx,Z.c,G.Ps,Ks.Ng,Ys.LD,X.AV,W.Cv,ue.p9,r.u5,L.FP]}),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.