1"use strict";(self.webpackChunkfrontend=self.webpackChunkfrontend||[]).push([[669],{2669:(ce,k,s)=>{s.r(k),s.d(k,{OrdersModule:()=>uo});var p=s(36895),c=s(24006),T=s(4392),D=s(35882),e=s(94650),O=s(17471),Z=s(65412),B=s(69907),q=s(42867),v=s(8058),b=s(42649),M=s(4859),F=s(44850),R=s(28255),I=s(51432),w=s(30780),W=s(61135),j=s(78372),K=s(71884),pe=s(23694),de=s(93662),f=s(59549),L=s(97392),Q=s(44144),r=s(30671),A=s(10266),ee=s(10879),te=s(78524),z=s(45029),ne=s(95184),U=s(96308);function ge(o,i){1&o&&(e.TgZ(0,"th",37),e.SDv(1,38),e.qZA())}function Se(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",t.order_id),e.xp6(1),e.hij(" ",t.order_id," ")}}function ue(o,i){1&o&&(e.TgZ(0,"th",37),e.SDv(1,41),e.qZA())}function me(o,i){if(1&o&&(e.TgZ(0,"td",39),e._uU(1),e.qZA()),2&o){const t=i.$implicit;e.xp6(1),e.hij(" ",t.service_type," ")}}function Ee(o,i){1&o&&(e.TgZ(0,"th",37),e.SDv(1,42),e.qZA())}function Ce(o,i){if(1&o&&(e.TgZ(0,"td",43),e._uU(1),e.qZA()),2&o){const t=i.$implicit;e.xp6(1),e.hij(" ",t.status," ")}}function Te(o,i){1&o&&(e.TgZ(0,"th",37),e.SDv(1,44),e.qZA())}function Oe(o,i){if(1&o&&(e.TgZ(0,"td",39)(1,"span",45),e._uU(2),e.qZA()()),2&o){const t=i.$implicit;e.xp6(1),e.s9C("matTooltip",t.order_date),e.xp6(1),e.Oqu(t.order_date)}}function fe(o,i){1&o&&(e.TgZ(0,"th",37),e.SDv(1,46),e.qZA())}function Pe(o,i){if(1&o&&(e.TgZ(0,"td",39)(1,"span",45),e._uU(2),e.qZA()()),2&o){const t=i.$implicit;e.xp6(1),e.s9C("matTooltip",t.last_update),e.xp6(1),e.Oqu(t.last_update)}}function he(o,i){1&o&&(e.TgZ(0,"th",47),e.SDv(1,48),e.qZA())}function Me(o,i){if(1&o&&(e.TgZ(0,"a",57),e.SDv(1,58),e.qZA()),2&o){const t=e.oxw().$implicit;e.s9C("href",null==t?null:t.order_form_download,e.LSH)}}function Re(o,i){if(1&o&&(e.TgZ(0,"td",39)(1,"button",49),e.O4$(),e.TgZ(2,"svg",50),e._UZ(3,"path",51),e.qZA()(),e.kcU(),e.TgZ(4,"mat-menu",52,53),e.YNc(6,Me,2,1,"a",54),e.TgZ(7,"a",55),e.SDv(8,56),e.qZA()()()),2&o){const t=i.$implicit,n=e.MAs(5),l=e.oxw();e.xp6(1),e.Q6J("matMenuTriggerFor",n),e.xp6(5),e.Q6J("ngIf",(null==t?null:t.order_form_download)&&l.canAction("download","order")),e.xp6(1),e.s9C("routerLink",t.order_id)}}function Ae(o,i){1&o&&e._UZ(0,"tr",59)}function Ne(o,i){1&o&&e._UZ(0,"tr",60)}function De(o,i){1&o&&(e.TgZ(0,"div",61),e.SDv(1,62),e.qZA())}function Fe(o,i){if(1&o){const t=e.EpF();e.TgZ(0,"label",63)(1,"input",64),e.NdJ("click",function(){const a=e.CHM(t).index,_=e.oxw();return e.KtG(_.onChangeView(_.pageSizeOptions[a]))}),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.search.pageSize),e.xp6(1),e.Oqu(n.pageSizeOptions[t])}}const xe=function(o){return{rotate:o}},ve=function(o){return{"search-input__container_hidden":o}};let be=(()=>{class o{constructor(t,n,l){this.getOrdersUsecase=t,this.getOrdersFilters=n,this.rolesService=l,this.displayedColumns=["order_id","service_type","status","order_date","last_update","actions"],this.dataSource=[],this.service_type=[],this.status=[],this.allStatusesTranslated=["New","In Progress","Delivered","Superseded","Cancelled"],this.allStatuses=["New","In Progress","Delivered","Superseded","Cancelled"],this.serviceTypeLabel="Service Type",this.statusLabel="Order Status",this.menuOpened=!1,this.dateForm=new c.cw({start:new c.NI,end:new c.NI}),this.searchToggled=!1,this.direction="desc",this.total=0,this.totalPages=1,this.currentPage=0,this.pageSize=10,this.pageSizeOptions=[10,30,50],this.search={page:0,pageSize:10,common:"",sort_field:"",sort_direction:"",condition:{}},this.filterParamsSubject=new W.X(this.search.common)}canAction(t,n){return this.rolesService.canAction(t,n)}ngOnInit(){this.loadData(),this.refreshFilters(),this.filterParamsSubject.pipe((0,j.b)(800),(0,K.x)()).subscribe(t=>{this.search.common=t,this.resetPaginationSettings(),this.loadData()})}resetPaginationSettings(){this.search.page=0,this.currentPage=0}loadData(){this.search.condition=I.g.removeEmptyProperties(this.search.condition),this.getOrdersUsecase.execute(I.g.removeEmptyProperties(this.search)).subscribe({next:t=>{this.dataSource=t.rows,this.currentPage=t.pagination.current_page,this.total=t.pagination.rows_total,this.totalPages=t.pagination.last_page}})}onSearch(){this.loadData()}sortBy(t){t.direction?(this.search.sort_field=t.active,this.search.sort_direction=t.direction,this.direction=t.direction):(this.search.sort_field="",this.search.sort_direction=""),this.loadData()}onChangeView(t){this.search.pageSize=t,this.search.page=0,this.loadData()}onChangePage(t){this.search.page=t.page-1,this.loadData()}onSelectFilters(t,n){if("status"===n){let l=[];t.map(a=>{("New"===a||"\u041d\u043e\u0432\u044b\u0439"===a)&&(a="New"),("In Progress"===a||"\u0412 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435"===a)&&(a="In progress"),("Delivered"===a||"\u0414\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043e"===a)&&(a="Delivered"),("Superseded"===a||"\u0417\u0430\u043c\u0435\u043d\u0435\u043d\u043e"===a)&&(a="Superseded"),("Cancelled"===a||"\u041e\u0442\u043c\u0435\u043d\u0435\u043d\u043e"===a)&&(a="Cancelled"),l.push(a)}),this.search.condition[n]=l}else this.search.condition[n]=t;this.loadData()}refreshFilters(){this.getOrdersFilters.execute().subscribe(t=>{this.service_type=t.service_type,this.status=t.status.map(n=>{switch(n){case"New":return "New";case"In Progress":return "In Progress";case"Delivered":return "Delivered";case"Superseded":return "Superseded";case"Cancelled":return "Cancelled";default:return n}})})}get selectDateRangeLabel(){if(this.search.condition.order_date){if(this.search.condition.order_date.from&&this.search.condition.order_date.to)return`${(0,w.Z)(new Date(this.search.condition.order_date.from),"dd/MM/yyyy")} - ${(0,w.Z)(new Date(this.search.condition.order_date.to),"dd/MM/yyyy")}`;if(this.search.condition.order_date.from)return`${(0,w.Z)(new Date(this.search.condition.order_date.from),"dd/MM/yyyy")}`}return""}setDate(t){this.matDateTrigger.closeMenu(),this.search.condition.order_date=I.g.removeEmptyProperties(t),this.onSearch()}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(pe.r),e.Y36(de.q),e.Y36(B.f))}
1,o.\u0275cmp=e.Xpm({type:o,selectors:[["orders-list"]],viewQuery:function(t,n){if(1&t&&e.Gf(R.p6,5),2&t){let l;e.iGM(l=e.CRH())&&(n.matDateTrigger=l.first)}},decls:50,vars:26,consts:function(){let i,t,n,l,a,_,d,g,E,C,P,h;return i=" Period " + "\ufffd#4\ufffd" + "" + "\ufffd0\ufffd" + "" + "\ufffd/#4\ufffd" + "" + "\ufffd#5\ufffd" + "" + "\ufffd/#5\ufffd" + "",t="Type here",n="show ",l="Order ID",a="Service Type",_="Status",d="Order Date",g="Last Update",E="Actions",C="View Details",P="Download Order Form",h="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",3,"ngClass"],["appearance","fill",1,"search-input"],["matPrefix",""],["src","/en/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","order_id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","service_type"],["matColumnDef","status"],["mat-cell","","class","cell-nowrap",4,"matCellDef"],["matColumnDef","order_date"],["matColumnDef","last_update"],["matColumnDef","actions"],["style","width: 120px","mat-header-cell","",4,"matHeaderCellDef"],["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",""],l,["mat-cell",""],[1,"link","capital-gothic",3,"routerLink"],a,_,["mat-cell","",1,"cell-nowrap"],d,["ShowTooltipIfTruncated","",1,"crop-text",3,"matTooltip"],g,["mat-header-cell","",2,"width","120px"],E,["mat-button","",1,"dropdown-menu__trigger",3,"matMenuTriggerFor"],["width","21","height","5","viewBox","0 0 21 5","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M2.358 4.288C1.44 4.288 0.72 3.55 0.72 2.614C0.72 1.696 1.44 0.958 2.358 0.958C3.24 0.958 3.96 1.696 3.96 2.614C3.96 3.55 3.24 4.288 2.358 4.288ZM10.3821 4.288C9.46406 4.288 8.74406 3.55 8.74406 2.614C8.74406 1.696 9.46406 0.958 10.3821 0.958C11.2641 0.958 11.9841 1.696 11.9841 2.614C11.9841 3.55 11.2641 4.288 10.3821 4.288ZM18.4061 4.288C17.4881 4.288 16.7681 3.55 16.7681 2.614C16.7681 1.696 17.4881 0.958 18.4061 0.958C19.2881 0.958 20.0081 1.696 20.0081 2.614C20.0081 3.55 19.2881 4.288 18.4061 4.288Z","fill","black"],[1,"dropdown-menu"],["menu","matMenu"],["class","dropdown-menu__item","mat-menu-item","",3,"href",4,"ngIf"],["mat-menu-item","",1,"dropdown-menu__item",3,"routerLink"],C,["mat-menu-item","",1,"dropdown-menu__item",3,"href"],P,["mat-header-row",""],["mat-row",""],[1,"no-records"],h,[1,"view__label"],["type","radio",1,"view__input",3,"id","checked","click"]]},template:function(t,n){if(1&t){const l=e.EpF();e.TgZ(0,"div",0),e.ynx(1),e.TgZ(2,"div",1),e.NdJ("menuOpened",function(){return n.menuOpened=!0})("menuClosed",function(){return n.menuOpened=!1}),e.tHW(3,2),e._UZ(4,"span")(5,"div",3),e.N_p(),e.qZA(),e.TgZ(6,"mat-menu",4,5)(8,"custom-date-range-picker",6),e.NdJ("dateRangeChanged",function(_){return n.resetPaginationSettings(),n.setDate(_)})("click",function(_){return _.stopPropagation()}),e.qZA()(),e.BQk(),e.TgZ(9,"app-custom-search-multiselect",7),e.NdJ("selectedItems",function(_){return n.resetPaginationSettings(),n.onSelectFilters(_,"service_type")}),e.qZA(),e.TgZ(10,"app-custom-search-multiselect",7),e.NdJ("selectedItems",function(_){return n.resetPaginationSettings(),n.onSelectFilters(_,"status")}),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(l);const _=e.MAs(19);return e.KtG(n.filterParamsSubject.next(_.value))}),e.qZA()()(),e.TgZ(20,"div",16)(21,"table",17),e.NdJ("matSortChange",function(_){return n.sortBy(_)}),e.ynx(22,18),e.YNc(23,ge,2,0,"th",19),e.YNc(24,Se,3,2,"td",20),e.BQk(),e.ynx(25,21),e.YNc(26,ue,2,0,"th",19),e.YNc(27,me,2,1,"td",20),e.BQk(),e.ynx(28,22),e.YNc(29,Ee,2,0,"th",19),e.YNc(30,Ce,2,1,"td",23),e.BQk(),e.ynx(31,24),e.YNc(32,Te,2,0,"th",19),e.YNc(33,Oe,3,2,"td",20),e.BQk(),e.ynx(34,25),e.YNc(35,fe,2,0,"th",19),e.YNc(36,Pe,3,2,"td",20),e.BQk(),e.ynx(37,26),e.YNc(38,he,2,0,"th",27),e.YNc(39,Re,9,3,"td",20),e.BQk(),e.YNc(40,Ae,1,0,"tr",28),e.YNc(41,Ne,1,0,"tr",29),e.qZA(),e.YNc(42,De,2,0,"div",30),e.qZA(),e.TgZ(43,"div",31)(44,"div",32)(45,"span"),e.SDv(46,33),e.qZA(),e.YNc(47,Fe,3,3,"label",34),e.qZA(),e.TgZ(48,"div",35)(49,"wo-paginator",36),e.NdJ("changePage",function(_){return n.onChangePage(_)}
1),e.qZA()()()}if(2&t){const l=e.MAs(7);e.xp6(2),e.Q6J("matMenuTriggerFor",l),e.xp6(3),e.Q6J("ngClass",e.VKq(22,xe,!n.menuOpened)),e.pQV(n.selectDateRangeLabel),e.QtT(3),e.xp6(4),e.Q6J("data",n.service_type)("label",n.serviceTypeLabel),e.xp6(1),e.Q6J("data",n.status)("label",n.statusLabel),e.xp6(1),e.Q6J("disableRipple",!0),e.xp6(3),e.Q6J("ngClass",e.VKq(24,ve,!n.searchToggled)),e.xp6(7),e.Q6J("dataSource",n.dataSource)("matSortActive",n.search.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===(null==n.dataSource?null:n.dataSource.length)),e.xp6(5),e.Q6J("ngForOf",n.pageSizeOptions),e.xp6(2),e.Q6J("current",n.currentPage+1)("last",n.totalPages>0?n.totalPages:1)("count",n.total)("length",null==n.dataSource?null:n.dataSource.length)("limit",n.pageSize)("pageSizeOptions",n.pageSizeOptions)}},dependencies:[p.mk,p.sg,p.O5,f.KE,f.qo,f.R9,L.Hw,Q.Nt,r.BZ,r.fO,r.as,r.w1,r.Dz,r.nj,r.ge,r.ev,r.XQ,r.Gk,A.gM,T.yS,ee.H,te.D,z.w,ne.o,M.lW,U.YE,U.nU,R.VK,R.OP,R.p6],styles:["[_nghost-%COMP%]{position:relative}.new[_ngcontent-%COMP%]{font-weight:700;font-size:16}.link[_ngcontent-%COMP%]{font-family:Capital Gothic;font-size:14px;font-style:normal;font-weight:400;line-height:normal;text-transform:uppercase}.link[_ngcontent-%COMP%], .link[_ngcontent-%COMP%]:visited{color:var(--blue, #144A90);text-decoration:none}[_nghost-%COMP%] .header__container .search_container{gap:20px}[_nghost-%COMP%] .header__container .search_container .field__container{padding-right:0!important}@media (max-width: 1180px){[_nghost-%COMP%] .header__container .search_container .field__container{flex:0 0 48%;max-width:unset}}@media (max-width: 940px){[_nghost-%COMP%] .header__container .search_container .field__container{flex:0 0 46%;max-width:unset}}@media (max-width: 1180px){[_nghost-%COMP%] .header__container .search_container{flex-wrap:wrap}[_nghost-%COMP%] .header__container .search_container .search-select{width:unset}[_nghost-%COMP%] .header__container .search_container .mat-form-field{width:100%}}.table-wrap[_ngcontent-%COMP%]{overflow-x:auto;white-space:nowrap;padding-bottom:5px}table[_ngcontent-%COMP%]{width:100%;table-layout:fixed;min-width:1130px}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}.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%]{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}}[_nghost-%COMP%] .search-input__container{display:flex;justify-content:flex-start;height:40px}@media (min-width: 1180px){[_nghost-%COMP%] .search-input__container{position:absolute;left:540px;top:61px}}@media (min-width: 980px) and (max-width: 1180px){[_nghost-%COMP%] .search-input__container{justify-content:center;transform:translate(-160px)}}[_nghost-%COMP%] .search-input__container mat-form-field{width:unset}[_nghost-%COMP%] .search-input__container.search-input__container_hidden{visibility:hidden;height:40px}[_nghost-%COMP%] .search-input__container .search-input img{width:20px;height:20px;transform:translateY(2px)}[_nghost-%COMP%] .search-input__container .search-input .mat-form-field-flex{width:390px;padding:0 13px;border-radius:0;border-bottom:none;background:#F3F3F3}[_nghost-%COMP%] .search-input__container .search-input .mat-form-field-wrapper{padding-bottom:0}[_nghost-%COMP%] .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}[_nghost-%COMP%] .search-input__container .search-input .mat-form-field-infix{padding:9px;border-top:0}[_nghost-%COMP%] .search-input__container .search-input .mat-form-field-underline{display:none}[_nghost-%COMP%] .mat-menu-trigger{padding:0;min-width:unset}.crop-text[_ngcontent-%COMP%]{min-width:5em;max-width:18em;width:100%;text-transform:none!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}@media (min-width: 1800px){.crop-text[_ngcontent-%COMP%]{max-width:35em}}.search-select[_ngcontent-%COMP%]{max-width:280px;padding-left:.75em;padding-right:.75em;background-color:#d9eaff;width:100%;height:42px;display:flex;align-items:center;box-sizing:border-box;cursor:pointer}.search-select[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{margin-left:auto;color:#d6117f;padding-left:5px}.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}.search-select[_ngcontent-%COMP%] .rotate[_ngcontent-%COMP%]{transform:rotate(180deg)}@media (max-width: 1180px){.search-select[_ngcontent-%COMP%]{flex:0 0 48%;max-width:unset}} .date-menu{width:100%;max-width:100%;padding:10px 20px}[_nghost-%COMP%] .mat-form-field-appearance-outline .mat-form-field-wrapper{margin:0}"]}),o})();var Ie=s(16859),we=s(70077);function Le(o,i){1&o&&(e.TgZ(0,"th",27),e.SDv(1,28),e.qZA())}const Ue=function(o){return["sales-request/",o]};function $e(o,i){if(1&o&&(e.TgZ(0,"td",29)(1,"a",30),e._uU(2),e.qZA()()),2&o){const t=i.$implicit;e.xp6(1),e.Q6J("routerLink",e.VKq(2,Ue,t.id)),e.xp6(1),e.hij(" ",t.request_type," ")}}function ye(o,i){1&o&&(e.TgZ(0,"th",27),e.SDv(1,31),e.qZA())}function Ze(o,i){if(1&o&&(e.TgZ(0,"td",29),e._uU(1),e.qZA()),2&o){const t=i.$implicit;e.xp6(1),e.hij(" ",t.service_type," ")}}function qe(o,i){1&o&&(e.TgZ(0,"th",27),e.SDv(1,32),e.qZA())}function Qe(o,i){if(1&o&&(e.TgZ(0,"td",29)(1,"span",33),e._uU(2),e.qZA()()),2&o){const t=i.$implicit;e.xp6(1),e.s9C("matTooltip",t.date),e.xp6(1),e.Oqu(t.date)}}function ke(o,i){1&o&&e._UZ(0,"tr",34)}function ze(o,i){1&o&&e._UZ(0,"tr",35)}function Ge(o,i){1&o&&(e.TgZ(0,"div",36),e.SDv(1,37),e.qZA())}function Xe(o,i){if(1&o){const t=e.EpF();e.TgZ(0,"label",44)(1,"input",45),e.NdJ("click",function(){const a=e.CHM(t).index,_=e.oxw(2);return e.KtG(_.onChangeView(_.pageSizeOptions[a]))}),e.qZA(),e._uU(2),e.qZA()}if(2&o){const t=i.index,n=e.oxw(2);e.xp6(1),e.MGl("id","view-",n.pageSizeOptions[t],""),e.Q6J("checked",n.pageSizeOptions[t]==n.search.pageSize),e.xp6(1),e.Oqu(n.pageSizeOptions[t])}}function Je(o,i){if(1&o){const t=e.EpF();e.TgZ(0,"div",38)(1,"div",39)(2,"span"),e.SDv(3,40),e.qZA(),e.YNc(4,Xe,3,3,"label",41),e.qZA(),e.TgZ(5,"div",42)(6,"wo-paginator",43),e.NdJ("changePage",function(l){e.CHM(t);const a=e.oxw();return e.KtG(a.onChangePage(l))}),e.qZA()()()}if(2&o){const t=e.oxw();e.xp6(4),e.Q6J("ngForOf",t.pageSizeOptions),e.xp6(2),e.Q6J("current",t.currentPage+1)("last",t.totalPages)("count",t.total)("length",null==t.dataSource?null:t.dataSource.length)("limit",t.pageSize)("pageSizeOptions",t.pageSizeOptions)}}const Ye=function(o){return{rotate:o}},Ve=function(o){return{"search-input__container_hidden":o}};let He=(()=>
1{class o{constructor(t,n){this.getSalesRequestsUsecase=t,this.getSalesRequestsFilters=n,this.displayedColumns=["request_type","service_type","date"],this.dataSource=[],this.service_type=[],this.serviceTypeLabel="Service Type",this.menuOpened=!1,this.dateForm=new c.cw({start:new c.NI,end:new c.NI}),this.searchToggled=!1,this.direction="desc",this.total=0,this.totalPages=1,this.currentPage=0,this.pageSize=10,this.pageSizeOptions=[10,30,50],this.search={page:0,pageSize:10,common:"",sort_field:"",sort_direction:"",condition:{}},this.filterParamsSubject=new W.X(this.search.common)}ngOnInit(){this.loadData(),this.refreshFilters(),this.filterParamsSubject.pipe((0,j.b)(800),(0,K.x)()).subscribe(t=>{this.search.common=t,this.resetPaginationSettings(),this.loadData()})}loadData(){this.search.condition=I.g.removeEmptyProperties(this.search.condition),this.getSalesRequestsUsecase.execute(I.g.removeEmptyProperties(this.search)).subscribe({next:t=>{this.dataSource=t.rows,this.currentPage=t.pagination.current_page,this.total=t.pagination.rows_total,this.totalPages=t.pagination.last_page}})}onSearch(){this.loadData()}resetPaginationSettings(){this.search.page=0,this.currentPage=0}sortBy(t){t.direction?(this.search.sort_field=t.active,this.search.sort_direction=t.direction,this.direction=t.direction):(this.search.sort_field="",this.search.sort_direction=""),this.loadData()}onChangeView(t){this.search.pageSize=t,this.search.page=0,this.loadData()}onChangePage(t){this.search.page=t.page-1,this.loadData()}get selectDateRangeLabel(){if(this.search.condition.date){if(this.search.condition.date.from&&this.search.condition.date.to)return`${(0,w.Z)(new Date(this.search.condition.date.from),"dd/MM/yyyy")} - ${(0,w.Z)(new Date(this.search.condition.date.to),"dd/MM/yyyy")}`;if(this.search.condition.date.from)return`${(0,w.Z)(new Date(this.search.condition.date.from),"dd/MM/yyyy")}`}return""}setDate(t){this.matDateTrigger.closeMenu(),this.search.condition.date=I.g.removeEmptyProperties(t),this.onSearch()}onSelectFilters(t,n){this.search.condition[n]=t,this.loadData()}refreshFilters(){this.getSalesRequestsFilters.execute().subscribe(t=>{this.service_type=t.service_type})}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(Ie.l),e.Y36(we.J))},o.\u0275cmp=e.Xpm({type:o,selectors:[["sales-list"]],viewQuery:function(t,n){if(1&t&&e.Gf(R.p6,5),2&t){let l;e.iGM(l=e.CRH())&&(n.matDateTrigger=l.first)}},decls:34,vars:18,consts:function(){let i,t,n,l,a,_,d;return i=" Period " + "\ufffd#4\ufffd" + "" + "\ufffd0\ufffd" + "" + "\ufffd/#4\ufffd" + "" + "\ufffd#5\ufffd" + "" + "\ufffd/#5\ufffd" + "",t="Type here",n="Request Type",l="Product",a="Request Date",_="No records",d="show ",[[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",3,"ngClass"],["appearance","fill",1,"search-input"],["matPrefix",""],["src","/en/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","request_type"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","service_type"],["matColumnDef","date"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["class","no-records",4,"ngIf"],["class","table-sort",4,"ngIf"],["mat-header-cell","","mat-sort-header",""],n,["mat-cell",""],[1,"link","capital-gothic",3,"routerLink"],l,a,["ShowTooltipIfTruncated","",1,"crop-text",3,"matTooltip"],["mat-header-row",""],["mat-row",""],[1,"no-records"],_,[1,"table-sort"],[1,"table-view","view"],d,["class","view__label",4,"ngFor","ngForOf"],[1,"table__paginator"],[1,"table-paginator",3,"current","last","count","length","limit","pageSizeOptions","changePage"],[1,"view__label"],["type","radio",1,"view__input",3,"id","checked","click"]]},template:function(t,n){if(1&t){const l=e.EpF();e.TgZ(0,"div",0),e.ynx(1),e.TgZ(2,"div",1),e.NdJ("menuOpened",function(){return n.menuOpened=!0})("menuClosed",function(){return n.menuOpened=!1}),e.tHW(3,2),e._UZ(4,"span")(5,"div",3),e.N_p(),e.qZA(),e.TgZ(6,"mat-menu",4,5)(8,"custom-date-range-picker",6),e.NdJ("dateRangeChanged",function(_){return n.resetPaginationSettings(),n.setDate(_)})("click",function(_){return _.stopPropagation()}),e.qZA()(),e.BQk(),e.TgZ(9,"app-custom-search-multiselect",7),e.NdJ("selectedItems",function(_){return n.resetPaginationSettings(),n.onSelectFilters(_,"service_type")}),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(l);const _=e.MAs(18);return e.KtG(n.filterParamsSubject.next(_.value))}),e.qZA()()(),e.TgZ(19,"div",16)(20,"table",17),e.NdJ("matSortChange",function(_){return n.sortBy(_)}),e.ynx(21,18),e.YNc(22,Le,2,0,"th",19),e.YNc(23,$e,3,4,"td",20),e.BQk(),e.ynx(24,21),e.YNc(25,ye,2,0,"th",19),e.YNc(26,Ze,2,1,"td",20),e.BQk(),e.ynx(27,22),e.YNc(28,qe,2,0,"th",19),e.YNc(29,Qe,3,2,"td",20),e.BQk(),e.YNc(30,ke,1,0,"tr",23),e.YNc(31,ze,1,0,"tr",24),e.qZA(),e.YNc(32,Ge,2,0,"div",25),e.qZA(),e.YNc(33,Je,7,7,"div",26)}if(2&t){const l=e.MAs(7);e.xp6(2),e.Q6J("matMenuTriggerFor",l),e.xp6(3),e.Q6J("ngClass",e.VKq(14,Ye,!n.menuOpened)),e.pQV(n.selectDateRangeLabel),e.QtT(3),e.xp6(4),e.Q6J("data",n.service_type)("label",n.serviceTypeLabel),e.xp6(1),e.Q6J("disableRipple",!0),e.xp6(3),e.Q6J("ngClass",e.VKq(16,Ve,!n.searchToggled)),e.xp6(7),e.Q6J("dataSource",n.dataSource)("matSortActive",n.search.sort)("matSortDirection",n.direction),e.xp6(10),e.Q6J("matHeaderRowDef",n.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",n.displayedColumns),e.xp6(1),e.Q6J("ngIf",0===(null==n.dataSource?null:n.dataSource.length)),e.xp6(1),e.Q6J("ngIf",n.dataSource.length>0)}},dependencies:[p.mk,p.sg,p.O5,f.KE,f.qo,f.R9,L.Hw,Q.Nt,r.BZ,r.fO,r.as,r.w1,r.Dz,r.nj,r.ge,r.ev,r.XQ,r.Gk,A.gM,T.yS,ee.H,te.D,z.w,ne.o,M.lW,U.YE,U.nU,R.VK,R.p6],styles:[".table-wrap[_ngcontent-%COMP%]{background:#EAF2FC;padding:20px;border:1px solid #E0E0E0;margin-top:10px}.table-wrap[_ngcontent-%COMP%] .link[_ngcontent-%COMP%]{font-family:Capital Gothic;font-size:14px;font-style:normal;font-weight:400;line-height:normal;text-transform:uppercase}.table-wrap[_ngcontent-%COMP%] .link[_ngcontent-%COMP%], .table-wrap[_ngcontent-%COMP%] .link[_ngcontent-%COMP%]:visited{color:var(--blue, #144A90);text-decoration:none}[_nghost-%COMP%] table td.mat-cell{border-bottom:0}[_nghost-%COMP%] table.mat-table td.mat-cell, [_nghost-%COMP%] table.mat-table th{padding:0 15px!important}[_nghost-%COMP%] table.mat-table tr.mat-row{height:42px}table[_ngcontent-%COMP%]{width:100%;background:#EAF2FC}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%] td.mat-cell[_ngcontent-%COMP%]{border-bottom:0}table.mat-table[_ngcontent-%COMP%] td.mat-cell[_ngcontent-%COMP%], table.mat-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:0 15px!important}table.mat-table[_ngcontent-%COMP%] tr.mat-row[_ngcontent-%COMP%]{height:42px}.number-cell[_ngcontent-%COMP%]{display:block;text-align:right}[_nghost-%COMP%] .header__container .search_container{justify-content:flex-start}[_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(even){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%]{display:flex;column-gap:20px;justify-content:flex-start}.services__filters[_ngcontent-%COMP%] app-custom-search-multiselect[_ngcontent-%COMP%]{flex:1;max-width:260px}@media (max-width: 1180px){.services__filters[_ngcontent-%COMP%] app-custom-search-multiselect[_ngcontent-%COMP%]{flex:0 0 44%;max-width:unset}}@media (max-width: 940px){.services__filters[_ngcontent-%COMP%] app-custom-search-multiselect[_ngcontent-%COMP%]{flex:0 0 42%;max-width:unset}}[_nghost-%COMP%] .search-input__container{display:flex;justify-content:flex-end;height:40px}[_nghost-%COMP%] .search-input__container mat-form-field{width:unset}[_nghost-%COMP%] .search-input__container.search-input__container_hidden{visibility:hidden;height:40px}[_nghost-%COMP%] .search-input__container .search-input img{width:20px;height:20px;transform:translateY(2px)}[_nghost-%COMP%] .search-input__container .search-input .mat-form-field-flex{width:390px;padding:0 13px;border-radius:0;border-bottom:none;background:#F3F3F3}[_nghost-%COMP%] .search-input__container .search-input .mat-form-field-wrapper{padding-bottom:0}[_nghost-%COMP%] .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}[_nghost-%COMP%] .search-input__container .search-input .mat-form-field-infix{padding:9px;border-top:0}[_nghost-%COMP%] .search-input__container .search-input .mat-form-field-underline{display:none}[_nghost-%COMP%] .mat-menu-trigger{padding:0;min-width:unset}.crop-text[_ngcontent-%COMP%]{min-width:5em;max-width:18em;width:100%;text-transform:none!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}@media (min-width: 1800px){.crop-text[_ngcontent-%COMP%]{max-width:35em}}.search-select[_ngcontent-%COMP%]{padding-left:.75em;padding-right:.75em;background-color:#d9eaff;width:100%;max-width:280px;height:42px;display:flex;align-items:center;box-sizing:border-box;cursor:pointer}.search-select[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{margin-left:auto;color:#d6117f;padding-left:5px}.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}.search-select[_ngcontent-%COMP%] .rotate[_ngcontent-%COMP%]{transform:rotate(180deg)}@media (max-width: 1180px){.search-select[_ngcontent-%COMP%]{flex:0 0 44%;max-width:unset}}@media (max-width: 940px){.search-select[_ngcontent-%COMP%]{flex:0 0 42%;max-width:unset}} .date-menu{width:100%;max-width:100%;padding:10px 20px}[_nghost-%COMP%] .mat-form-field-appearance-outline .mat-form-field-wrapper{margin:0}"]}),o})();function Be(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.orders),e.QtT(0)}}function We(o,i){if(1&o){const t=e.EpF();e.TgZ(0,"button",7),e.NdJ("click",function(){e.CHM(t);const l=e.oxw();return e.KtG(l.openSalesRequest())}),e.SDv(1,8),e.qZA()}}function je(o,i){1&o&&e._UZ(0,"orders-list")}function Ke(o,i){if(1&o&&(e.tHW(0,10,1),e.TgZ(1,"app-tooltip"),e._UZ(2,"p"),e.qZA(),e.N_p()),2&o){const t=e.oxw(2);e.xp6(2),e.pQV(t.tooltipsService.tooltips.sales_requests),e.QtT(0)}}function et(o,i){if(1&o&&(e.ynx(0),e.TgZ(1,"h3",9),e.tHW(2,10),e.YNc(3,Ke,3,1,"app-tooltip",4),e.N_p(),e.qZA(),e._UZ(4,"mat-divider",11)(5,"sales-list"),e.BQk()),2&o){const t=e.oxw();e.xp6(3),e.Q6J("ngIf",null==t.tooltipsService||null==t.tooltipsService.tooltips?null:t.tooltipsService.tooltips.sales_requests)}}let tt=(()=>{class o{constructor(t,n,l,a,_){this.breadcrumbs=t,this.matDialog=n,this.router=l,this.rolesService=a,this.tooltipsService=_,this.breadcrumbs.set
1Links([{route:"/",text:"Home"},{text:"Orders"}])}ngOnInit(){}canAction(t,n){return this.rolesService.canAction(t,n)}openSalesRequest(){this.matDialog.open(D.c,{width:"415px",data:{title:"Your request refers to",items:[{id:1,value:"New Service"},{id:2,value:"Active Service \n(Renewal, Modification, Cancellation)"}],btn:"Create request"}}).afterClosed().subscribe(n=>{switch(n){case 1:this.router.navigate(["/main/orders/sales-request/new"]);break;case 2:this.router.navigate(["/main/orders/sales-request/active"])}})}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(O.W),e.Y36(Z.uw),e.Y36(T.F0),e.Y36(B.f),e.Y36(q.b))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-orders-list"]],decls:10,vars:4,consts:function(){let i,t,n;return i=" Orders " + "\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" + "",t="New sales request ",n="Sales Requests " + "\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,"orders-list"],[1,"title","margin-top"],[1,"title-text","capital-gothic"],i,[4,"ngIf"],[1,"breadcrumbs"],["class","btn btn_blue capital-gothic","mat-raised-button","",3,"click",4,"ngIf"],["mat-raised-button","",1,"btn","btn_blue","capital-gothic",3,"click"],t,[1,"section-title"],n,[1,"pink-divider"]]},template:function(t,n){1&t&&(e.TgZ(0,"div",0)(1,"div",1)(2,"p",2),e.tHW(3,3),e.YNc(4,Be,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,We,2,0,"button",6),e.YNc(8,je,1,0,"orders-list",4),e.YNc(9,et,6,1,"ng-container",4),e.qZA()),2&t&&(e.xp6(4),e.Q6J("ngIf",null==n.tooltipsService||null==n.tooltipsService.tooltips?null:n.tooltipsService.tooltips.orders),e.xp6(3),e.Q6J("ngIf",n.canAction("create","sale_request")),e.xp6(1),e.Q6J("ngIf",n.canAction("view","order")),e.xp6(1),e.Q6J("ngIf",n.canAction("view","sale_request")))},dependencies:[p.O5,v.K,b.g,M.lW,F.d,be,He],styles:[".orders-list[_ngcontent-%COMP%]{padding:0 60px 40px 0;font-family:Arial,Helvetica Neue,sans-serif}@media (max-width: 960px){.orders-list[_ngcontent-%COMP%]{padding-right:1rem}}.orders-list[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{text-transform:uppercase;margin-bottom:35px}.orders-list[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{margin:0 0 35px;display:block}.orders-list[_ngcontent-%COMP%] .title-text[_ngcontent-%COMP%] app-tooltip .right{top:13px}.margin-top[_ngcontent-%COMP%]{margin-top:.8rem!important}.pink-divider[_ngcontent-%COMP%]{background-color:#d6117f;height:2px;border:none;margin-bottom:48px}.section-title[_ngcontent-%COMP%]{margin:55px 0 10px;padding-left:20px}sales-list[_ngcontent-%COMP%]{display:block;width:50%}@media (max-width: 1180px){sales-list[_ngcontent-%COMP%]{width:70%}}@media (max-width: 940px){sales-list[_ngcontent-%COMP%]{width:100%}}"]}),o})();function nt(o,i){if(1&o&&(e.TgZ(0,"p",7)(1,"span",10),e.SDv(2,11),e.qZA(),e._uU(3),e.qZA()),2&o){const t=e.oxw();e.xp6(3),e.Oqu(t.comment.files)}}function ot(o,i){1&o&&(e.TgZ(0,"span",12),e.SDv(1,13),e.qZA())}const it=function(o,i){return{high:o,client:i}};let at=(()=>{class o{constructor(){}ngOnInit(){}}return o.\u0275fac=function(t){return new(t||o)}
1,o.\u0275cmp=e.Xpm({type:o,selectors:[["comment-item"]],inputs:{comment:"comment"},decls:13,vars:11,consts:function(){let i,t;return i="Attached File: ",t="High Importance",[[1,"comment"],[1,"comment__avatar"],["alt","",3,"src"],[1,"comment__body"],[1,"comment__header"],[1,"comment__title"],[1,"comment__time"],[1,"comment__text"],["class","comment__text",4,"ngIf"],["class","high-importance",4,"ngIf"],[1,"comment__files"],i,[1,"high-importance"],t]},template:function(t,n){1&t&&(e.TgZ(0,"article",0)(1,"div",1),e._UZ(2,"img",2),e.qZA(),e.TgZ(3,"div",3)(4,"div",4)(5,"h3",5),e._uU(6),e.qZA(),e.TgZ(7,"time",6),e._uU(8),e.qZA()(),e.TgZ(9,"p",7),e._uU(10),e.qZA(),e.YNc(11,nt,4,1,"p",8),e.YNc(12,ot,2,0,"span",9),e.qZA()()),2&t&&(e.xp6(2),e.s9C("src",n.comment.img,e.LSH),e.xp6(1),e.Tol(e.WLB(8,it,n.comment.high,n.comment.isClient)),e.xp6(3),e.Oqu(n.comment.title),e.xp6(2),e.Oqu(n.comment.time),e.xp6(2),e.Oqu(n.comment.text),e.xp6(1),e.Q6J("ngIf",n.comment.files),e.xp6(1),e.Q6J("ngIf",n.comment.high))},dependencies:[p.O5],styles:[".comment[_ngcontent-%COMP%]{display:flex;max-width:950px;min-height:137px;width:100%;justify-content:space-between;position:relative}.comment__avatar[_ngcontent-%COMP%]{flex:0 0 70px}.comment__avatar[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:50px;width:50px}.comment__body[_ngcontent-%COMP%]{flex:1;background:#FFF;border:1px solid #E0E0E0;padding:20px 15px 60px}.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}.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}"]}),o})();var G=s(73162),Y=s(56709);function lt(o,i){1&o&&(e.TgZ(0,"th",11),e._uU(1,"Type"),e.qZA())}function _t(o,i){if(1&o&&(e.TgZ(0,"td",12),e._uU(1),e.qZA()),2&o){const t=i.$implicit;e.xp6(1),e.Oqu(t.type)}}function st(o,i){1&o&&(e.TgZ(0,"th",11),e._uU(1,"File Name"),e.qZA())}function rt(o,i){if(1&o&&(e.TgZ(0,"td",12)(1,"a",13),e._uU(2),e._UZ(3,"br"),e.qZA()()),2&o){const t=i.$implicit;e.xp6(2),e.hij(" ",t.file_name," ")}}function ct(o,i){1&o&&(e.TgZ(0,"th",11),e._uU(1,"Actions"),e.qZA())}function pt(o,i){1&o&&(e.TgZ(0,"td",14)(1,"div",15)(2,"a",16),e._UZ(3,"span",17),e._uU(4," Download "),e.qZA(),e.TgZ(5,"a",18),e._UZ(6,"span",19),e._uU(7," Print "),e.qZA()()())}function dt(o,i){1&o&&e._UZ(0,"tr",20)}function gt(o,i){1&o&&e._UZ(0,"tr",21),2&o&&e.Q6J("ngClass",i.$implicit.file_name.length>1?"align-top":"")}function St(o,i){1&o&&(e.TgZ(0,"div",22),e._uU(1,"No records"),e.qZA())}const ut=[{id:1,type:"Order Form",file_name:"file name.pdf"},{id:2,type:"Letter Of Authorization",file_name:"file name.pdf"}];let mt=(()=>{class o{constructor(){this.displayedColumns=["type","file_name","actions"],this.dataSource=ut}ngOnInit(){}}return o.\u0275fac=function(t){return new(t||o)}
1,o.\u0275cmp=e.Xpm({type:o,selectors:[["documents"]],decls:14,vars:4,consts:[[1,"table-wrap"],["mat-table","",3,"dataSource"],["matColumnDef","type"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","file_name"],["matColumnDef","actions"],["mat-cell","","class","cell-nowrap",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"ngClass",4,"matRowDef","matRowDefColumns"],["class","no-records",4,"ngIf"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["href","#",1,"cell-link","capital-gothic"],["mat-cell","",1,"cell-nowrap"],[1,"file"],["href","",1,"file__download"],[1,"download-icon"],["href","",1,"file__print"],[1,"print-icon"],["mat-header-row",""],["mat-row","",3,"ngClass"],[1,"no-records"]],template:function(t,n){1&t&&(e.TgZ(0,"div",0)(1,"table",1),e.ynx(2,2),e.YNc(3,lt,2,0,"th",3),e.YNc(4,_t,2,1,"td",4),e.BQk(),e.ynx(5,5),e.YNc(6,st,2,0,"th",3),e.YNc(7,rt,4,1,"td",4),e.BQk(),e.ynx(8,6),e.YNc(9,ct,2,0,"th",3),e.YNc(10,pt,8,0,"td",7),e.BQk(),e.YNc(11,dt,1,0,"tr",8),e.YNc(12,gt,1,1,"tr",9),e.qZA(),e.YNc(13,St,2,0,"div",10),e.qZA()),2&t&&(e.xp6(1),e.Q6J("dataSource",n.dataSource),e.xp6(10),e.Q6J("matHeaderRowDef",n.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",n.displayedColumns),e.xp6(1),e.Q6J("ngIf",0===n.dataSource.length))},dependencies:[p.mk,p.O5,r.BZ,r.fO,r.as,r.w1,r.Dz,r.nj,r.ge,r.ev,r.XQ,r.Gk,U.nU],styles:[".table-wrap[_ngcontent-%COMP%]{overflow-x:auto;white-space:nowrap;padding-bottom:5px;max-width:60%}table[_ngcontent-%COMP%]{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}table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child, table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:first-child{padding-left:20px;height:45px}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;padding-top:10px}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}table[_ngcontent-%COMP%] .align-top[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .file[_ngcontent-%COMP%]{margin-bottom:10px;position:relative;top:3px}table[_ngcontent-%COMP%] .align-top[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .file[_ngcontent-%COMP%]:not(:last-child){margin-bottom:26px}[_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(even){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;text-transform:uppercase}.cell-nowrap[_ngcontent-%COMP%]{white-space:nowrap}.file[_ngcontent-%COMP%]{display:flex;align-items:center;gap:38px}.file[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-size:14px;text-decoration:none;color:#144a90;text-transform:uppercase;font-family:Capital Gothic,Arial,sans-serif;display:flex;align-items:center;gap:17px}.file[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:#d6117f!important}.file[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover .print-icon[_ngcontent-%COMP%]{background:url(/en/assets/pic/icons/print-pink.svg) no-repeat;background-size:contain}.file[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover .download-icon[_ngcontent-%COMP%]{background:url(/en/assets/pic/icons/download-pink.svg) no-repeat;background-size:contain}.download-icon[_ngcontent-%COMP%]{height:19px;width:19px;
1background:url(/en/assets/pic/icons/download.svg) no-repeat;background-size:contain}.print-icon[_ngcontent-%COMP%]{height:19px;width:19px;background:url(/en/assets/pic/icons/print.svg) no-repeat;background-size:contain}"]}),o})();function Et(o,i){1&o&&e._UZ(0,"comment-item",27),2&o&&e.Q6J("comment",i.$implicit)}function Ct(o,i){if(1&o&&(e.TgZ(0,"div",24)(1,"span",25),e._uU(2),e.qZA(),e.YNc(3,Et,1,1,"comment-item",26),e.qZA()),2&o){const t=i.$implicit;e.xp6(2),e.Oqu(t.key),e.xp6(1),e.Q6J("ngForOf",t.value)}}const Tt=function(o){return{invalid:o}};let Ot=(()=>{class o{constructor(t){this.breadcrumbs=t,this.requiredErorr=!1,this.comments={"26 April":[{title:"Account Name",text:"Text comment from the client.",time:"18:30",img:"assets/pic/avatar2.jpeg",isClient:!0,date:"26/04/2023",files:"Screen Shot 2023-04-25 in 13.15.36. png"},{title:"Account Name",text:"Text comment from the client.",time:"18:30",img:"assets/pic/avatar2.jpeg",isClient:!0,date:"26/04/2023",files:"Screen Shot 2023-04-25 in 13.15.36. png",high:!0}],"25 April":[{title:"Test started",text:"The RETN engineering service has started an inspection according to the subject matter of the customer's request.",time:"19:05",img:"assets/pic/avatar1.png",isClient:!1,date:"25/04/2023"},{title:"John Smith",text:"Text message from the task owner.",time:"19:02",img:"assets/pic/avatar1.png",isClient:!1,date:"25/04/2023"},{title:"Task owner defined",text:"John Smith, NOC engineer",time:"18:38",img:"assets/pic/avatar1.png",isClient:!1,date:"25/04/2023"},{title:"Ticket created",text:"Ticket #TRB-908-IS",time:"18:30",img:"assets/pic/avatar2.jpeg",isClient:!0,date:"25/04/2023"}]},this.breadcrumbs.setLinks([{route:"/",text:"Home"},{route:"/main/orders",text:"Orders"},{route:"/main/orders/0",text:"Order #ORD-342678-IPT"},{text:"Service implementation details"}])}ngOnInit(){}sortNull(t,n){return 0}onClick(){console.log("clicked")}fileChangeEvent(t){console.log(t)}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(O.W))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-service-implementation-details"]],decls:53,vars:9,consts:[[1,"implementation"],[1,"title","margin-top"],[1,"title-text","capital-gothic"],[1,"breadcrumbs"],[1,"implementation__name"],[1,"section-title"],["routerLink","../../0",1,"link"],[1,"implementation__progress","progress-bar"],[1,"progress-bar__percents",2,"padding-left","calc(10% - 20px)"],["mode","determinate","value","10"],[1,"progress-bar__labels"],[1,"active"],[1,"pink-divider"],[1,"implementation__comment-block"],["matinput","","name","","id","","rows","5","placeholder","Type your comment here"],[1,"image-upload"],[1,"image-upload__info"],["type","button",1,"attach-btn",3,"click"],["type","file",2,"display","none",3,"multiple","click","change"],["file",""],[1,"importance"],["mat-raised-button","",1,"btn","btn_dark"],["history",""],["class","comments",4,"ngFor","ngForOf"],[1,"comments"],[1,"comments__date"],[3,"comment",4,"ngFor","ngForOf"],[3,"comment"]],template:function(t,n){if(1&t){const l=e.EpF();e.TgZ(0,"div",0)(1,"div",1)(2,"p",2),e._uU(3,"Service implementation details "),e.TgZ(4,"app-tooltip")(5,"p"),e._uU(6,"A tooltip is often used to specify extra information about something when the user moves the mouse pointer over an element"),e.qZA()()(),e.TgZ(7,"div",3),e._UZ(8,"wo-breadcrumbs"),e.qZA()(),e.TgZ(9,"div",4)(10,"h3",5),e._uU(11,"Internet Access"),e.qZA(),e.TgZ(12,"a",6),e._uU(13,"Order #ORD-342678-IPT"),e.qZA()(),e.TgZ(14,"div",7)(15,"div",8),e._uU(16,"10%"),e.qZA(),e._UZ(17,"mat-progress-bar",9),e.TgZ(18,"div",10)(19,"span"),e._uU(20,"New"),e.qZA(),e.TgZ(21,"span",11),e._uU(22,"In Work"),e.qZA(),e.TgZ(23,"span"),e._uU(24,"Completed"),e.qZA()()(),e.TgZ(25,"h3",5),e._uU(26,"Documents"),e.qZA(),e._UZ(27,"mat-divider",12)(28,"documents"),e.TgZ(29,"div",13)(30,"h3",5),e._uU(31,"Leave Comment"),e.qZA(),e._UZ(32,"mat-divider",12)(33,"textarea",14),e.TgZ(34,"div",15)(35,"div",16)(36,"button",17),e.NdJ("click",function(){e.CHM(l);const _=e.MAs(39);return e.KtG(_.click())}),e._uU(37," Attach Files "),e.qZA()()(),e.TgZ(38,"input",18,19),e.NdJ("click",function(){return n.onClick()})("change",function(_){return n.fileChangeEvent(_)}),e.qZA(),e.TgZ(40,"div",20)(41,"mat-checkbox"),e._uU(42,"High importance"),e.qZA(),e.TgZ(43,"p"),e._uU(44,"Check this box and the head of the Implementation team will be notified that you need an urgent response"),e.qZA()(),e.TgZ(45,"button",21),e._uU(46,"Comment"),e.qZA()(),e.TgZ(47,"h3",5,22),e._uU(49,"History"),e.qZA(),e._UZ(50,"mat-divider",12),e.YNc(51,Ct,4,2,"div",23),e.ALo(52,"keyvalue"),e.qZA()}2&t&&(e.xp6(34),e.Tol(e.VKq(7,Tt,n.requiredErorr)),e.xp6(4),e.Q6J("multiple",!0),e.xp6(13),e.Q6J("ngForOf",e.xi3(52,4,n.comments,n.sortNull)))},dependencies:[p.sg,T.yS,v.K,at,b.g,M.lW,F.d,G.pW,Y.oG,mt,p.Nd],styles:['.implementation[_ngcontent-%COMP%]{padding:0 60px 40px 0}@media (max-width: 960px){.implementation[_ngcontent-%COMP%]{padding-right:1rem}}.implementation__name[_ngcontent-%COMP%]{display:flex;align-items:baseline;gap:20px;margin-top:20px}.implementation__name[_ngcontent-%COMP%] .section-title[_ngcontent-%COMP%]{padding-left:0}.implementation__progress[_ngcontent-%COMP%]{margin-bottom:50px}.implementation__services-block[_ngcontent-%COMP%]{margin:50px 0}.implementation__services-block[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:20px 0!important}.implementation__comment-block[_ngcontent-%COMP%]{margin:50px 0}.section-title[_ngcontent-%COMP%]{padding-left:20px}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 20px 70px}.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;margin:0 0 34px}textarea[_ngcontent-%COMP%]{background:#F3F3F3;border-radius:none;border:0;max-width:80%;width:100%;padding:15px 10px;margin-top:54px;margin-bottom:34px}textarea[_ngcontent-%COMP%]::placeholder{color:#a6a6a6;font:300 20px Capital Gothic,Arial,sans-serif;line-height:1}.link[_ngcontent-%COMP%]{color:#144a90;text-decoration:none;cursor:pointer;text-transform:uppercase}[_nghost-%COMP%] .mat-progress-bar{height:10px}[_nghost-%COMP%] .mat-progress-bar-buffer{background:#D9D9D9}[_nghost-%COMP%] .mat-progress-bar-fill:after{background:#144A90}.progress-bar__percents[_ngcontent-%COMP%]{margin-bottom:10px}.progress-bar__labels[_ngcontent-%COMP%]{margin-top:10px;display:flex;justify-content:space-between}.progress-bar__labels[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;color:#d9d9d9;font:700 14px Capital Gothic,Arial,sans-serif;text-transform:uppercase}.progress-bar__labels[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:before{content:"";display:block;height:6px;width:6px;background:#D9D9D9}.progress-bar__labels[_ngcontent-%COMP%] span.active[_ngcontent-%COMP%]{color:#144a90}.progress-bar__labels[_ngcontent-%COMP%] span.active[_ngcontent-%COMP%]:before{background:#144A90}.importance[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:34px;margin-bottom:70px}.importance[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{line-height:1.5} .mat-pseudo-checkbox, .mat-checkbox-indeterminate.mat-accent .mat-checkbox-background, .mat-checkbox-checked.mat-accent .mat-checkbox-background{background:#D6117F;border-radius:0} .mat-checkbox{display:block!important} .mat-checkbox-frame{height:6px;width:6px;border-radius:0!important;border:0!important;background:#DDDDDD} .mat-checkbox-inner-container{height:6px!important;width:6px!important;border-radius:0;border:0;background:#DDDDDD;margin-right:25px!important} .mat-checkbox-inner-container svg{display:none} .mat-checkbox .mat-checkbox-label{font-family:Arial,sans-serif} .mat-checkbox .mat-checkbox-ripple{display:none} .mat-checkbox-layout{width:100%} .mat-checkbox.mat-checkbox-checked .mat-checkbox-label{font-weight:700}[_nghost-%COMP%] .mat-checkbox .mat-checkbox-ripple{display:none}']}),o})();var ft=s(60507),V=s(98990);function Pt(o,i){if(1&o&&(e.ynx(0),e.TgZ(1,"div",4)(2,"p",5),e._uU(3),e.qZA(),e.TgZ(4,"p",6),e._uU(5),e.qZA()(),e._UZ(6,"mat-divider"),e.BQk()),2&o){const t=i.$implicit;e.xp6(3),e.Oqu(t.label),e.xp6(2),e.Oqu(t.value)}}let ht=(()=>{class o{constructor(){}ngOnInit(){}}return o.\u0275fac=function(t){return new(t||o)}
1,o.\u0275cmp=e.Xpm({type:o,selectors:[["details-block"]],inputs:{details:"details"},decls:5,vars:2,consts:[[1,"details"],[1,"section-title"],[1,"pink-divider"],[4,"ngFor","ngForOf"],[1,"details__field"],[1,"details__label"],[1,"details__value"]],template:function(t,n){1&t&&(e.TgZ(0,"div",0)(1,"h3",1),e._uU(2),e.qZA(),e._UZ(3,"mat-divider",2),e.YNc(4,Pt,7,2,"ng-container",3),e.qZA()),2&t&&(e.xp6(2),e.Oqu(n.details.title),e.xp6(2),e.Q6J("ngForOf",n.details.data))},dependencies:[p.sg,F.d],styles:[".details__field[_ngcontent-%COMP%]{display:grid;grid-template-columns:30% 1fr;gap:15px;padding:18px 18px 18px 28px}.details__label[_ngcontent-%COMP%]{font-size:16px;font-weight:700}.section-title[_ngcontent-%COMP%]{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}.link[_ngcontent-%COMP%]{color:#144a90;text-decoration:none;cursor:pointer}"]}),o})();function Mt(o,i){1&o&&(e.TgZ(0,"th",15),e.SDv(1,16),e.qZA())}function Rt(o,i){if(1&o&&(e.TgZ(0,"td",17),e._uU(1),e.qZA()),2&o){const t=i.$implicit;e.s9C("matTooltip",t.service_type),e.xp6(1),e.hij(" ",t.service_type," ")}}function At(o,i){1&o&&(e.TgZ(0,"th",15),e.SDv(1,18),e.qZA())}const Nt=function(o,i,t,n,l,a){return{"status-label_purple":o,"status-label_blue":i,"status-label_green":t,"status-label_grey":n,"status-label_orange":l,"status-label_red":a}};function Dt(o,i){if(1&o&&(e.TgZ(0,"td",19)(1,"span",20),e._uU(2),e.qZA()()),2&o){const t=i.$implicit;e.xp6(1),e.Q6J("ngClass",e.HTZ(2,Nt,"new"===t.status,"in work"===t.status,"completed"===t.status||"testing"===t.status,"cancelled"===t.status,"closed"===t.status,"hold"===t.status)),e.xp6(1),e.hij(" ",t.status," ")}}function Ft(o,i){1&o&&(e.TgZ(0,"th",21),e.SDv(1,22),e.qZA())}function xt(o,i){if(1&o&&(e.TgZ(0,"td",17),e._uU(1),e.qZA()),2&o){const t=i.$implicit;e.s9C("matTooltip",t.service_id),e.xp6(1),e.hij(" ",t.service_id?t.service_id:"n/a"," ")}}function vt(o,i){1&o&&(e.TgZ(0,"th",23),e.SDv(1,24),e.qZA())}function bt(o,i){if(1&o&&(e.ynx(0),e.TgZ(1,"b"),e._uU(2),e.qZA(),e.BQk()),2&o){const t=e.oxw().$implicit;e.xp6(2),e.hij("",t.last_update," new")}}function It(o,i){if(1&o&&(e.ynx(0),e._uU(1),e.BQk()),2&o){const t=e.oxw().$implicit;e.xp6(1),e.hij(" ",t.last_update," ")}}function wt(o,i){if(1&o&&(e.TgZ(0,"td",25),e.YNc(1,bt,3,1,"ng-container",26),e.YNc(2,It,2,1,"ng-container",26),e.qZA()),2&o){const t=i.$implicit;e.xp6(1),e.Q6J("ngIf",t.isNew),e.xp6(1),e.Q6J("ngIf",!t.isNew)}}function Lt(o,i){1&o&&e._UZ(0,"tr",27)}function Ut(o,i){1&o&&e._UZ(0,"tr",28)}function $t(o,i){1&o&&(e.TgZ(0,"div",29),e.SDv(1,30),e.qZA())}let yt=(()=>{class o{constructor(){this.displayedColumns=["service_type","status","service_id","last_update"]}ngOnInit(){}}return o.\u0275fac=function(t){return new(t||o)}
1,o.\u0275cmp=e.Xpm({type:o,selectors:[["services-table"]],inputs:{dataSource:"dataSource"},decls:17,vars:4,consts:function(){let i,t,n,l,a;return i="Service Type",t="Task Status",n="Service ID",l="Last Updated",a="No records",[[1,"table-wrap"],["mat-table","",3,"dataSource"],["matColumnDef","service_type"],["style","width: 20%","mat-header-cell","",4,"matHeaderCellDef"],["ShowTooltipIfTruncated","","mat-cell","","class","truncated",3,"matTooltip",4,"matCellDef"],["matColumnDef","status"],["mat-cell","",4,"matCellDef"],["matColumnDef","service_id"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","last_update"],["style","width: 170px","mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","class","cell-nowrap",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["class","no-records",4,"ngIf"],["mat-header-cell","",2,"width","20%"],i,["ShowTooltipIfTruncated","","mat-cell","",1,"truncated",3,"matTooltip"],t,["mat-cell",""],[1,"status-label","capital-gothic",3,"ngClass"],["mat-header-cell",""],n,["mat-header-cell","",2,"width","170px"],l,["mat-cell","",1,"cell-nowrap"],[4,"ngIf"],["mat-header-row",""],["mat-row",""],[1,"no-records"],a]},template:function(t,n){1&t&&(e.TgZ(0,"div",0)(1,"table",1),e.ynx(2,2),e.YNc(3,Mt,2,0,"th",3),e.YNc(4,Rt,2,2,"td",4),e.BQk(),e.ynx(5,5),e.YNc(6,At,2,0,"th",3),e.YNc(7,Dt,3,9,"td",6),e.BQk(),e.ynx(8,7),e.YNc(9,Ft,2,0,"th",8),e.YNc(10,xt,2,2,"td",4),e.BQk(),e.ynx(11,9),e.YNc(12,vt,2,0,"th",10),e.YNc(13,wt,3,2,"td",11),e.BQk(),e.YNc(14,Lt,1,0,"tr",12),e.YNc(15,Ut,1,0,"tr",13),e.qZA(),e.YNc(16,$t,2,0,"div",14),e.qZA()),2&t&&(e.xp6(1),e.Q6J("dataSource",n.dataSource),e.xp6(13),e.Q6J("matHeaderRowDef",n.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",n.displayedColumns),e.xp6(1),e.Q6J("ngIf",0===(null==n.dataSource?null:n.dataSource.length)))},dependencies:[p.mk,p.O5,r.BZ,r.fO,r.as,r.w1,r.Dz,r.nj,r.ge,r.ev,r.XQ,r.Gk,A.gM,z.w],styles:[".table-wrap[_ngcontent-%COMP%]{overflow-x:auto;white-space:nowrap;padding-bottom:5px}table[_ngcontent-%COMP%]{width:100%;background:#EAF2FC;padding:5px 20px 10px;border:1px solid #E0E0E0}table[_ngcontent-%COMP%] td[_ngcontent-%COMP%], table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-size:16px;padding:0 10px;text-align:left;border:none}table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child, table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:first-child{padding-left:0}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}[_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(even){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;text-transform:uppercase}.cell-nowrap[_ngcontent-%COMP%]{white-space:nowrap}"]}),o})();function Zt(o,i){1&o&&(e.TgZ(0,"th",16),e.SDv(1,17),e.qZA())}function qt(o,i){if(1&o&&(e.TgZ(0,"td",18),e._uU(1),e.qZA()),2&o){const t=i.$implicit;e.s9C("matTooltip",t.type),e.xp6(1),e.Oqu(t.type)}}function Qt(o,i){1&o&&(e.TgZ(0,"th",19),e.SDv(1,20),e.qZA())}function kt(o,i){if(1&o&&(e.TgZ(0,"a",23)(1,"span",24),e._uU(2),e.qZA(),e._UZ(3,"br"),e.qZA()),2&o){const t=i.index,n=e.oxw().$implicit;e.s9C("href",n.preview_link[t],e.LSH),e.xp6(1),e.s9C("matTooltip",n.filename[t]),e.xp6(1),e.Oqu(n.filename[t])}}function zt(o,i){if(1&o&&(e.TgZ(0,"td",21),e.YNc(1,kt,4,3,"a",22),e.qZA()),2&o){const t=i.$implicit;e.xp6(1),e.Q6J("ngForOf",t.filename)}}function Gt(o,i){1&o&&(e.TgZ(0,"th",25),e.SDv(1,26),e.qZA())}function Xt(o,i){if(1&o&&(e.TgZ(0,"span",28),e._uU(1),e._UZ(2,"br"),e.qZA()),2&o){const t=i.index,n=e.oxw().$implicit;e.xp6(1),e.hij(" ",n.service_type[t].abbr," ")}}function Jt(o,i){if(1&o&&(e.TgZ(0,"td",21),e.YNc(1,Xt,3,1,"span",27),e.qZA()),2&o){const t=i.$implicit;e.xp6(1),e.Q6J("ngForOf",t.service_type)}}function Yt(o,i){1&o&&(e.TgZ(0,"th",29),e.SDv(1,30),e.qZA())}function Vt(o,i){if(1&o&&(e.TgZ(0,"div",33)(1,"a",34),e.tHW(2,35),e._UZ(3,"span",36),e.N_p(),e.qZA(),e.TgZ(4,"a",37),e.tHW(5,38),e._UZ(6,"span",39),e.N_p(),e.qZA()()),2&o){const t=i.index,n=e.oxw().$implicit;e.xp6(1),e.s9C("href",n.download_link[t],e.LSH),e.xp6(3),e.s9C("href",n.preview_link[t],e.LSH)}}function Ht(o,i){if(1&o&&(e.TgZ(0,"td",31),e.YNc(1,Vt,7,2,"div",32),e.qZA()),2&o){const t=i.$implicit;e.xp6(1),e.Q6J("ngForOf",t.filename)}}function Bt(o,i){1&o&&e._UZ(0,"tr",40)}function Wt(o,i){if(1&o&&e._UZ(0,"tr",41),2&o){const t=i.$implicit;e.Q6J("ngClass",(null==t.filename?null:t.filename.length)>1?"align-top":"")}}function jt(o,i){1&o&&(e.TgZ(0,"div",42),e.SDv(1,43),e.qZA())}let Kt=(()=>{class o{constructor(){this.displayedColumns=["type","filename","service_type","actions"],this.dataSource=[],this.documents=[]}ngOnInit(){this.dataSource=this.documents}}return o.\u0275fac=function(t){return new(t||o)}
1,o.\u0275cmp=e.Xpm({type:o,selectors:[["documents-table"]],inputs:{documents:"documents"},decls:17,vars:4,consts:function(){let i,t,n,l,a,_,d;return i="Type",t="File Name",n="Service Type",l="Actions",a="" + "\ufffd#3\ufffd" + "" + "\ufffd/#3\ufffd" + " Download ",_="" + "\ufffd#6\ufffd" + "" + "\ufffd/#6\ufffd" + " Print ",d="No records",[[1,"table-wrap"],["mat-table","",3,"dataSource"],["matColumnDef","type"],["class","calculated-width_type","mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","ShowTooltipIfTruncated","","class","truncated",3,"matTooltip",4,"matCellDef"],["matColumnDef","filename"],["class","calculated-width_filename","mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","class","truncated",4,"matCellDef"],["matColumnDef","service_type"],["class","calculated-width_service-type","mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","actions"],["style","width: 180px","mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","class","cell-nowrap",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"ngClass",4,"matRowDef","matRowDefColumns"],["class","no-records",4,"ngIf"],["mat-header-cell","",1,"calculated-width_type"],i,["mat-cell","","ShowTooltipIfTruncated","",1,"truncated",3,"matTooltip"],["mat-header-cell","",1,"calculated-width_filename"],t,["mat-cell","",1,"truncated"],["class","cell-link capital-gothic","target","_blank",3,"href",4,"ngFor","ngForOf"],["target","_blank",1,"cell-link","capital-gothic",3,"href"],["ShowTooltipIfTruncated","",3,"matTooltip"],["mat-header-cell","",1,"calculated-width_service-type"],n,["class","cell-span",4,"ngFor","ngForOf"],[1,"cell-span"],["mat-header-cell","",2,"width","180px"],l,["mat-cell","",1,"cell-nowrap"],["class","file",4,"ngFor","ngForOf"],[1,"file"],[1,"file__download",3,"href"],a,[1,"download-icon"],["target","_blank",1,"file__print",3,"href"],_,[1,"print-icon"],["mat-header-row",""],["mat-row","",3,"ngClass"],[1,"no-records"],d]},template:function(t,n){1&t&&(e.TgZ(0,"div",0)(1,"table",1),e.ynx(2,2),e.YNc(3,Zt,2,0,"th",3),e.YNc(4,qt,2,2,"td",4),e.BQk(),e.ynx(5,5),e.YNc(6,Qt,2,0,"th",6),e.YNc(7,zt,2,1,"td",7),e.BQk(),e.ynx(8,8),e.YNc(9,Gt,2,0,"th",9),e.YNc(10,Jt,2,1,"td",7),e.BQk(),e.ynx(11,10),e.YNc(12,Yt,2,0,"th",11),e.YNc(13,Ht,2,1,"td",12),e.BQk(),e.YNc(14,Bt,1,0,"tr",13),e.YNc(15,Wt,1,1,"tr",14),e.qZA(),e.YNc(16,jt,2,0,"div",15),e.qZA()),2&t&&(e.xp6(1),e.Q6J("dataSource",n.dataSource),e.xp6(13),e.Q6J("matHeaderRowDef",n.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",n.displayedColumns),e.xp6(1),e.Q6J("ngIf",0===(null==n.dataSource?null:n.dataSource.length)))},dependencies:[p.mk,p.sg,p.O5,r.BZ,r.fO,r.as,r.w1,r.Dz,r.nj,r.ge,r.ev,r.XQ,r.Gk,A.gM,z.w],styles:[".table-wrap[_ngcontent-%COMP%]{overflow-x:auto;white-space:nowrap;padding-bottom:5px}table[_ngcontent-%COMP%]{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}table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child, table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:first-child{padding-left:20px;height:45px}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;padding-top:10px}table[_ngcontent-%COMP%] .align-top[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .cell-link[_ngcontent-%COMP%], table[_ngcontent-%COMP%] .align-top[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .cell-span[_ngcontent-%COMP%]{display:block;margin-bottom: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%] .cell-span[_ngcontent-%COMP%]:not(:last-child){margin-bottom:26px}table[_ngcontent-%COMP%] .align-top[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .file[_ngcontent-%COMP%]{margin-bottom:10px;position:relative;top:3px}table[_ngcontent-%COMP%] .align-top[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .file[_ng
1content-%COMP%]:not(:last-child){margin-bottom:26px}[_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;text-transform:uppercase}.cell-nowrap[_ngcontent-%COMP%]{white-space:nowrap}.file[_ngcontent-%COMP%]{display:flex;align-items:center;gap:38px}.file[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-size:14px;text-decoration:none;color:#144a90;text-transform:uppercase;font-family:Capital Gothic,Arial,sans-serif;display:flex;align-items:center;gap:17px}.file[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:#d6117f!important}.file[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover .print-icon[_ngcontent-%COMP%]{background:url(/en/assets/pic/icons/print-pink.svg) no-repeat;background-size:contain}.file[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover .download-icon[_ngcontent-%COMP%]{background:url(/en/assets/pic/icons/download-pink.svg) no-repeat;background-size:contain}.download-icon[_ngcontent-%COMP%]{height:19px;width:19px;background:url(/en/assets/pic/icons/download.svg) no-repeat;background-size:contain}.print-icon[_ngcontent-%COMP%]{height:19px;width:19px;background:url(/en/assets/pic/icons/print.svg) no-repeat;background-size:contain}.crop-text[_ngcontent-%COMP%]{display:block;min-width:5em;max-width:15em;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}@media (min-width: 1800px){.crop-text[_ngcontent-%COMP%]{max-width:35em}}.calculated-width_type[_ngcontent-%COMP%]{width:clamp(15vw,(100vw - 160px) / 6,20vw)}.calculated-width_filename[_ngcontent-%COMP%]{min-width:calc((100vw - 240px)/4)}.calculated-width_service-type[_ngcontent-%COMP%]{width:clamp(15vw,(100vw - 160px) / 6,20vw)}@media (min-width: 1900px){.calculated-width_service-type[_ngcontent-%COMP%]{width:clamp(15vw,(100vw - 160px) / 5,20vw)}}"]}),o})();function en(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.order_details),e.QtT(0)}}function tn(o,i){if(1&o&&(e.tHW(0,16,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.services),e.QtT(0)}}function nn(o,i){if(1&o&&(e.tHW(0,20,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.documents),e.QtT(0)}}function on(o,i){if(1&o&&e._UZ(0,"documents-table",22),2&o){const t=e.oxw();e.Q6J("documents",t.order.documents)}}const an=function(o,i,t,n,l){return{status_purple:o,status_blue:i,status_grey:t,status_orange:n,status_red:l}};let ln=(()=>{class o{constructor(t,n,l,a,_){this.breadcrumbs=t,this.getOrderDetails=n,this.route=l,this.loading=a,this.toolTipsService=_,this.order={},this.order_id="",this.details={title:"New Service Order",data:[{label:"Created",value:"",isLink:!1},{label:"Description",value:"",isLink:!1},{label:"Order Form Number",value:"",isLink:!1}]}}ngOnInit(){this.route.params.subscribe(t=>{this.order_id=t.id,this.loadData()})}loadData(){this.loading.set(!0),this.getOrderDetails.execute(encodeURIComponent(this.order_id)).subscribe({next:t=>{this.order=t,this.details.data[0].value=t.order_date,this.details.data[1].value=t.description,this.details.data[2].value=t.order_id},complete:()=>{this.breadcrumbs.setLinks([{route:"/",text:"Home"},{route:"/main/orders",text:"Orders"},{text:"Order " + this.order_id + ""}]),this.loading.set(!1)}})}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(O.W),e.Y36(ft.k),e.Y36(T.gz),e.Y36(V.D),e.Y36(q.b))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-order-details"]],decls:28,vars:15,consts:function(){let i,t,n,l;return i="Status",t=" Order #" + "\ufffd0\ufffd" + " " + "\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" + "",n="Services " + "\ufffd*19:1\ufffd\ufffd#1:1\ufffd" + "" + "\ufffd#2:1\ufffd" + "" + "\ufffd0:1\ufffd" + "" + "\ufffd/#2:1\ufffd" + "" + "\ufffd/#1:1\ufffd\ufffd/*19:1\ufffd" + "",l="Documents " + "\ufffd*25:1\ufffd\ufffd#1:1\ufffd" + "" + "\ufffd#2:1\ufffd" + "" + "\ufffd0:1\ufffd" + "" + "\ufffd/#2:1\ufffd" + "" + "\ufffd/#1:1\ufffd\ufffd/*25:1\ufffd" + "",[[1,"order-details"],[1,"title","margin-top"],[1,"title-text","capital-gothic"],t,[4,"ngIf"],[1,"breadcrumbs"],[1,"order-details__wrap"],[1,"order-details__actions"],[1,"order-details__status","status","capital-gothic",3,"ngClass"],[1,"status__name"],[1,"status__label"],i,[1,"order-details__details"],[3,"details"],[1,"services-block"],[1,"section-title"],n,[1,"pink-divider"],[3,"dataSource"],[1,"documents-block"],l,[3,"documents",4,"ngIf"],[3,"documents"]]},template:function(t,n){1&t&&(e.TgZ(0,"div",0)(1,"div",1)(2,"p",2),e.tHW(3,3),e.YNc(4,en,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,"div",8)(10,"span",9),e._uU(11),e.qZA(),e.TgZ(12,"span",10),e.SDv(13,11),e.qZA()()(),e.TgZ(14,"div",12),e._UZ(15,"details-block",13),e.qZA()(),e.TgZ(16,"div",14)(17,"h3",15),e.tHW(18,16),e.YNc(19,tn,3,1,"app-tooltip",4),e.N_p(),e.qZA(),e._UZ(20,"mat-divider",17)(21,"services-table",18),e.qZA(),e.TgZ(22,"div",19)(23,"h3",15),e.tHW(24,20),e.YNc(25,nn,3,1,"app-tooltip",4),e.N_p(),e.qZA(),e._UZ(26,"mat-divider",17),e.YNc(27,on,1,1,"documents-table",21),e.qZA()()),2&t&&(e.xp6(4),e.Q6J("ngIf",null==n.toolTipsService||null==n.toolTipsService.tooltips?null:n.toolTipsService.tooltips.order_details),e.pQV(n.order_id),e.QtT(3),e.xp6(5),e.Q6J("ngClass",e.qbA(9,an,"New"===n.order.status,"In progress"===n.order.status,"Completed"===n.order.status,"Delivered"===n.order.status,"Superseded"===n.order.status)),e.xp6(2),e.Oqu(n.order.status),e.xp6(4),e.Q6J("details",n.details),e.xp6(4),e.Q6J("ngIf",null==n.toolTipsService||null==n.toolTipsService.tooltips?null:n.toolTipsService.tooltips.services),e.xp6(2),e.Q6J("dataSource",n.order.services),e.xp6(4),e.Q6J("ngIf",null==n.toolTipsService||null==n.toolTipsService.tooltips?null:n.toolTipsService.tooltips.order_details),e.xp6(2),e.Q6J("ngIf",n.order.documents))},dependencies:[p.mk,p.O5,v.K,ht,b.g,F.d,yt,Kt],styles:[".margin-top[_ngcontent-%COMP%]{margin-top:.8px!important}.order-details[_ngcontent-%COMP%]{padding:0 60px 40px 0}@media (max-width: 960px){.order-details[_ngcontent-%COMP%]{padding-right:1rem}}.order-details__wrap[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-wrap:wrap;margin:40px 0 50px;gap:30px}.order-details__actions[_ngcontent-%COMP%]{flex:0 0 46%;display:flex;flex-direction:column}.order-details__details[_ngcontent-%COMP%]{flex:1 0 46%}.order-details__banner[_ngcontent-%COMP%]{margin-top:40px}.order-details[_ngcontent-%COMP%] .title-text[_ngcontent-%COMP%] app-tooltip .right{top:13px}.banner[_ngcontent-%COMP%]{background:#144A90;display:flex;justify-content:space-between;color:#fff;padding:10px 20px}.banner__body[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:space-between}.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;margin-top:10px}.banner[_ngcontent-%COMP%] time[_ngcontent-%COMP%]{font-size:14px}.banner__anckor[_ngcontent-%COMP%]{display:flex;align-items:flex-start;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(/en/assets/pic/vector-pink.svg) no-repeat}.vector[_ngcontent-%COMP%]{height:39px;width:43px;background:url(/en/assets/pic/icons/white-vector.svg) no-repeat}mat-divider[_ngcontent-%COMP%]{border-top-color:#000}mat-divider.pink-divider[_ngcontent-%COMP%]{border-top-color:#d6117f;border-top-width:2px}[_nghost-%COMP%] .details__field{grid-template-columns:42% 1fr!important}.services-block[_ngcontent-%COMP%]{margin-bottom:50px;width:80%}.services-block__text[_ngcontent-%COMP%]{margin:20px 0!important}@media (max-width: 960px){.services-block[_ngcontent-%COMP%]{width:100%}}documents-table[_ngcontent-%COMP%]{display:block;margin-top:10px}.section-title[_ngcontent-%COMP%]{padding-left:20px}"]}),o})();var _n=s(66853),sn=s(15439),rn=s(40069);function cn(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.tooltipService.tooltips.sales_request_details),e.QtT(0)}}function pn(o,i){if(1&o&&(e.TgZ(0,"div",22)(1,"div",23)(2,"p",24),e.SDv(3,25),e.qZA(),e.TgZ(4,"time"),e._uU(5),e.qZA()(),e.TgZ(6,"div",26)(7,"i"),e.SDv(8,27),e.qZA()()()),2&o){const t=e.oxw();e.xp6(5),e.Oqu(null==t.details?null:t.details.created_at)}}function dn(o,i){if(1&o){const t=e.EpF();e.TgZ(0,"a",28),e.NdJ("click",function(){const a=e.CHM(t).$implicit,_=e.oxw();return e.KtG(_.getFile(a.uid))}),e._uU(1),e.qZA()}if(2&o){const t=i.$implicit;e.xp6(1),e.Oqu(t.name)}}function gn(o,i){if(1&o&&(e.TgZ(0,"div",11)(1,"p",12),e.SDv(2,29),e.qZA(),e.TgZ(3,"p",14),e._uU(4),e.qZA()()),2&o){const t=e.oxw();e.xp6(4),e.Oqu(null==t.details?null:t.details.product)}}function Sn(o,i){1&o&&e._UZ(0,"mat-divider")}function un(o,i){1&o&&(e.TgZ(0,"th",42),e.SDv(1,43),e.qZA())}function mn(o,i){if(1&o&&(e.TgZ(0,"td",44),e._uU(1),e.qZA()),2&o){const t=i.$implicit;e.xp6(1),e.hij(" ",t.product," ")}}function En(o,i){1&o&&(e.TgZ(0,"th",42),e.SDv(1,45),e.qZA())}function Cn(o,i){if(1&o&&(e.TgZ(0,"td",44),e._uU(1),e.qZA()),2&o){const t=i.$implicit;e.xp6(1),e.hij(" ",t.service_id," ")}}function Tn(o,i){1&o&&(e.TgZ(0,"th",42),e.SDv(1,46),e.qZA())}function On(o,i){if(1&o&&(e.TgZ(0,"td",44),e._uU(1),e.qZA()),2&o){const t=i.$implicit;e.xp6(1),e.hij(" ",t.start_date," ")}}function fn(o,i){1&o&&e._UZ(0,"tr",47)}function Pn(o,i){1&o&&e._UZ(0,"tr",48)}function hn(o,i){1&o&&(e.TgZ(0,"div",49),e.SDv(1,50),e.qZA())}function Mn(o,i){if(1&o&&(e.TgZ(0,"div",30)(1,"h3",8),e.SDv(2,31),e.qZA(),e._UZ(3,"mat-divider",10),e.TgZ(4,"div",32)(5,"table",33),e.ynx(6,34),e.YNc(7,un,2,0,"th",35),e.YNc(8,mn,2,1,"td",36),e.BQk(),e.ynx(9,37),e.YNc(10,En,2,0,"th",35),e.YNc(11,Cn,2,1,"td",36),e.BQk(),e.ynx(12,38),e.YNc(13,Tn,2,0,"th",35),e.YNc(14,On,2,1,"td",36),e.BQk(),e.YNc(15,fn,1,0,"tr",39),e.YNc(16,Pn,1,0,"tr",40),e.qZA(),e.YNc(17,hn,2,0,"div",41),e.qZA()()),2&o){const t=e.oxw();e.xp6(5),e.Q6J("dataSource",t.dataSource),e.xp6(10),e.Q6J("matHeaderRowDef",t.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",t.displayedColumns),e.xp6(1),e.Q6J("ngIf",0===(null==t.dataSource?null:t.dataSource.length))}}let Rn=(()=>
1{class o{constructor(t,n,l,a){this.breadcrumbs=t,this.getSalesRequestDetails=n,this.route=l,this.tooltipService=a,this.displayedColumns=["product","service_id","start_date"],this.id=0,this.showBanner=!1,this.breadcrumbs.setLinks([{route:"/",text:"Home"},{route:"/main/orders",text:"Orders"},{text:"Sales Request"}])}ngOnInit(){this.route.params.subscribe(t=>{this.id=t.id}),this.route.queryParams.subscribe(t=>{"created"===t.prev&&(this.showBanner=!0)}),this.loadData()}loadData(){this.getSalesRequestDetails.execute(this.id).subscribe({next:t=>{this.details=t.data,this.dataSource=t.services,this.details.created_at=sn(this.details.created_at).format("DD/MM/YYYY HH:mm")},complete:()=>{}})}getFile(t){let n=localStorage.getItem(_n.m.ACCESS_TOKEN);const l=window.location.protocol,a=window.location.host;window.open(`${l}//${a}/en/api/member/sales-requests/download-sales-requests-file?uid=${t}&access-token=${n}`,"_blank")}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(O.W),e.Y36(rn.N),e.Y36(T.gz),e.Y36(q.b))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-sales-request"]],decls:38,vars:9,consts:function(){let i,t,n,l,a,_,d,g,E,C,P,h,u,N;return i="Details",t="Request Type",n="Created",l="Description",a="Attached Files",_=" Sales Request " + "\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" + "",d="You successfully created a sales request",g="Our manager will c
1ontact you as soon as possible.",E="Product",C="Services",P="Product",h="Service ID",u="Start Date",N="No records",[[1,"sales-request"],[1,"title","margin-top"],[1,"title-text","capital-gothic"],_,[4,"ngIf"],[1,"breadcrumbs"],["class","sales-request__banner banner",4,"ngIf"],[1,"sales-request__details"],[1,"section-title"],i,[1,"pink-divider"],[1,"sales-request__field"],[1,"sales-request__label"],t,[1,"sales-request__value"],n,l,[1,"sales-request__value",3,"innerHTML"],a,["class","link capital-gothic",3,"click",4,"ngFor","ngForOf"],["class","sales-request__field",4,"ngIf"],["class","sales-request__service-table",4,"ngIf"],[1,"sales-request__banner","banner"],[1,"banner__header"],[1,"banner__title"],d,[1,"banner__message"],g,[1,"link","capital-gothic",3,"click"],E,[1,"sales-request__service-table"],C,[1,"table-wrap"],["mat-table","",3,"dataSource"],["matColumnDef","product"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","service_id"],["matColumnDef","start_date"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["class","no-records",4,"ngIf"],["mat-header-cell",""],P,["mat-cell",""],h,u,["mat-header-row",""],["mat-row",""],[1,"no-records"],N]},template:function(t,n){1&t&&(e.TgZ(0,"div",0)(1,"div",1)(2,"p",2),e.tHW(3,3),e.YNc(4,cn,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,pn,9,1,"div",6),e.TgZ(8,"div",7)(9,"h3",8),e.SDv(10,9),e.qZA(),e._UZ(11,"mat-divider",10),e.TgZ(12,"div",11)(13,"p",12),e.SDv(14,13),e.qZA(),e.TgZ(15,"p",14),e._uU(16),e.qZA()(),e._UZ(17,"mat-divider"),e.TgZ(18,"div",11)(19,"p",12),e.SDv(20,15),e.qZA(),e.TgZ(21,"p",14),e._uU(22),e.qZA()(),e._UZ(23,"mat-divider"),e.TgZ(24,"div",11)(25,"p",12),e.SDv(26,16),e.qZA(),e._UZ(27,"p",17),e.qZA(),e._UZ(28,"mat-divider"),e.TgZ(29,"div",11)(30,"p",12),e.SDv(31,18),e.qZA(),e.TgZ(32,"p",14),e.YNc(33,dn,2,1,"a",19),e.qZA()(),e._UZ(34,"mat-divider"),e.YNc(35,gn,5,1,"div",20),e.YNc(36,Sn,1,0,"mat-divider",4),e.qZA(),e.YNc(37,Mn,18,4,"div",21),e.qZA()),2&t&&(e.xp6(4),e.Q6J("ngIf",null==n.tooltipService||null==n.tooltipService.tooltips?null:n.tooltipService.tooltips.sales_request_details),e.xp6(3),e.Q6J("ngIf",n.showBanner),e.xp6(9),e.Oqu(null==n.details?null:n.details.request_type),e.xp6(6),e.Oqu(null==n.details?null:n.details.created_at),e.xp6(5),e.Q6J("innerHTML",null==n.details?null:n.details.request,e.oJD),e.xp6(6),e.Q6J("ngForOf",null==n.details?null:n.details.files),e.xp6(2),e.Q6J("ngIf","new"===(null==n.details?null:n.details.type)),e.xp6(1),e.Q6J("ngIf","new"===(null==n.details?null:n.details.type)),e.xp6(1),e.Q6J("ngIf","edit"===(null==n.details?null:n.details.type)))},dependencies:[p.sg,p.O5,r.BZ,r.fO,r.as,r.w1,r.Dz,r.nj,r.ge,r.ev,r.XQ,r.Gk,v.K,b.g,F.d],styles:[".margin-top[_ngcontent-%COMP%]{margin-top:.8em!important}.section-title[_ngcontent-%COMP%]{margin-left:20px}.sales-request[_ngcontent-%COMP%]{padding:0 60px 40px 0}@media (max-width: 960px){.sales-request[_ngcontent-%COMP%]{padding-right:1rem}}.sales-request__details[_ngcontent-%COMP%]{margin-top:40px;width:50%;max-width:650px}@media (max-width: 1200px){.sales-request__details[_ngcontent-%COMP%]{width:70%}}@media (max-width: 992px){.sales-request__details[_ngcontent-%COMP%]{width:100%}}.sales-request__field[_ngcontent-%COMP%]{display:grid;grid-template-columns:30% 1fr;gap:15px;padding:18px 18px 18px 28px}.sales-request__label[_ngcontent-%COMP%]{width:130px;font-weight:700}.sales-request__service-table[_ngcontent-%COMP%]{margin-top:50px;width:50%;max-width:650px}@media (max-width: 1200px){.sales-request__service-table[_ngcontent-%COMP%]{width:70%}}@media (max-width: 992px){.sales-request__service-table[_ngcontent-%COMP%]{width:100%}}mat-divider[_ngcontent-%COMP%]{border-top-color:#000}mat-divider.pink-divider[_ngcontent-%COMP%]{border-top-color:#d6117f;border-top-width:2px}.link[_ngcontent-%COMP%]{color:#144a90;text-decoration:none;cursor:pointer;text-transform:uppercase}.table-wrap[_ngcontent-%COMP%]{background:#EAF2FC;padding:20px;border:1px solid #E0E0E0;margin-top:20px}table[_ngcontent-%COMP%]{width:100%;background:#EAF2FC}table[_ngcontent-%COMP%] td[_ngcontent-%COMP%], table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-size:16px;padding:0 10px;text-align:left;border:none}table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child, table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:first-child{padding-left:0}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}.banner[_ngcontent-%COMP%]{margin-top:20px;background:#144A90;min-height:68px;color:#fff;padding:10px 20px;max-width:422px;width:100%}.banner__header[_ngcontent-%COMP%]{margin-bottom:10px}.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%] time[_ngcontent-%COMP%]{font-size:14px}"]}),o})();var X=s(80529),H=s(54004),oe=s(70262),ie=s(62843),$=s(84385),ae=s(77969),x=s(63262),le=s(50593),_e=s(43746),An=s(14143),se=s(49403),re=s(72305);function Nn(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_sales_request),e.QtT(0)}}function Dn(o,i){if(1&o){const t=e.EpF();
1e.TgZ(0,"div",43)(1,"p"),e.SDv(2,44),e.qZA(),e.TgZ(3,"app-custom-search-select",45),e.NdJ("selectedItem",function(l){e.CHM(t);const a=e.oxw();return e.KtG(a.onProductSelect(l))}),e.qZA(),e.TgZ(4,"p",46),e.SDv(5,47),e.qZA()()}if(2&o){const t=e.oxw();let n,l,a;e.xp6(3),e.Q6J("data",t.products)("label",t.productLabel)("errors",null==(n=t.formData.get("product"))?null:n.errors)("touched",null==(l=t.formData.get("product"))?null:l.touched)("value",null==(a=t.formData.get("product"))?null:a.value)}}function Fn(o,i){1&o&&(e.TgZ(0,"p",48),e.SDv(1,49),e.qZA())}function xn(o,i){if(1&o&&(e.TgZ(0,"p",48),e._uU(1),e.qZA()),2&o){const t=e.oxw();e.xp6(1),e.Oqu(t.errorMessage)}}function vn(o,i){if(1&o&&(e.TgZ(0,"div",56),e._UZ(1,"mat-progress-bar",57),e.TgZ(2,"p",58),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 bn(o,i){if(1&o){const t=e.EpF();e.TgZ(0,"div",50)(1,"div",51)(2,"p",52),e._uU(3),e.qZA(),e.TgZ(4,"mat-icon",53),e.NdJ("click",function(){const a=e.CHM(t).index,_=e.oxw();return e.KtG(_.deleteFile(a))}),e._uU(5,"close"),e.qZA()(),e.YNc(6,vn,4,2,"div",54),e.TgZ(7,"p",55),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 In=function(o){return{"error-border":o}},wn=function(o){return{"error-show":o}};let Ln=(()=>{class o{constructor(t,n,l,a,_,d,g,E,C){this.breadcrumbs=t,this.setSalesRequestDetails=n,this.updateSalesRequestFields=l,this.getClientInfo=a,this.sendFileUsecase=_,this.loading=d,this.router=g,this.modal=E,this.tooltipsService=C,this.showedFiles=[],this.id=1,this.products=[],this.productLabel="Select product",this.textareaLabel="Describe",this.formData=new c.cw({product:new c.NI(null,c.kI.required),request:new c.NI(null,c.kI.required),file_uids:new c.NI([])}),this.data={id:0,request_type:"New Service",product:"",services:[],request:"",type:"New",file_uids:[]},this.getData={type:"new",product:"",services:[]},this.editor=new x.ML,this.errorMessage="",this.emptyProductList="No products available",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.breadcrumbs.setLinks([{route:"/",text:"Home"},{route:"/main/orders",text:"Orders"},{text:"New sales request"}])}ngOnInit(){this.loadData()}loadData(){this.updateSalesRequestFields.execute(this.getData).subscribe({next:t=>{this.products=t.products?.map(n=>n.name)}}),this.getClientInfo.execute().subscribe({next:t=>{this.details=t}})}onSave(){if(this.formData.markAllAsTouched(),this.formData.invalid)return;let t=this.formData.getRawValue();Object.keys(t).map(n=>{this.data[n]=t[n]}),this.setSalesRequestDetails.execute(this.data).subscribe({next:n=>{n&&this.router.navigate(["/main/orders/sales-request/"+n],{queryParams:{prev:"created"}})},complete:()=>{}})}onCancel(t){this.formData.dirty?this.modal.open(ae.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(n=>{n&&(history.back(),t.preventDefault())}):(history.back(),t.preventDefault())}doFileInput(t){const n=t.target.files;if(n&&!(n.length<1)){this.errorMessage="";for(let l=0;l<n.length;l++){const a=n[l];if(!this.isFilesValid)break;if(a.size>26214400)return void(this.errorMessage="File size should be less than 25MB");if(!a.type)return void(this.errorMessage="File type is not allowed");{const _=a.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(_))return void(this.errorMessage="File type " + _ + " is not allowed")}this.showedFiles.push({name:a.name,size:a.size,percentage:0,isUploading:!1}),this.sendFile(a,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.formData.get("file_uids").value.splice(t,1),this.showedFiles.splice(t,1)}sendFile(t,n){const l=new FormData;l.append("file",t,t.name),this.showedFiles[n].percentage=0,this.showedFiles[n].isUploading=!0,this.sendFileUsecase.execute(l).pipe((0,H.U)(a=>{a.type===X.dt.UploadProgress?this.showedFiles[n].percentage=Math.round(100/a.total*a.loaded):a.type===X.dt.Response&&(this.showedFiles[n].isUploading=!1,this.formData.get("file_uids").value[n]=a.body)}),(0,oe.K)(a=>(this.showedFiles[n].percentage=0,this.showedFiles[n].isUploading=!1,(0,ie._)(a.message)))).subscribe()}onProductSelect(t){this.formData.get("product").setValue(t),this.formData.get("product").markAsDirty()}get control(){return this.formData.controls.request}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(O.W),e.Y36(le.k),e.Y36(_e.j),e.Y36(An.p),e.Y36(se.b),e.Y36(V.D),e.Y36(T.F0),e.Y36(Z.uw),e.Y36(q.b))}
1,o.\u0275cmp=e.Xpm({type:o,selectors:[["app-new-sales-request"]],features:[e._Bn([{provide:$.PG,useValue:{overlayPanelClass:"select-overlay"}}])],decls:63,vars:26,consts:function(){let i,t,n,l,a,_,d,g,E,C,P,h,u,N,m;return i="Details",t="Service Agreement \u2116",n="Service Agreement date",l="Customer ID",a="RETN Unit",_="Please fill in the form below:",d="Request *",g=" This field is required ",E=" Attach Files " + "\ufffd#52\ufffd\ufffd/#52\ufffd" + "",C="Cancel",P="Save",h="New Sales Request " + "\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="Product *",N="Please select the product to which your request applies",m="You can attach max 5 files",[[1,"new-request"],[1,"title","margin-top"],[1,"title-text","capital-gothic"],h,[4,"ngIf"],[1,"breadcrumbs"],[1,"request-details",3,"formGroup"],[1,"request-details__static"],[1,"section-title"],i,[1,"pink-divider"],[1,"request-details__field"],[1,"request-details__label"],t,[1,"request-details__value"],n,l,a,[1,"capital-gothic","fill-text"],_,[1,"editable","form"],["class","flex space-between",4,"ngIf"],[1,"align-end","flex","space-between"],d,[1,"editor",2,"width","100%",3,"ngClass"],[3,"editor"],[3,"editor","placeholder","formControl"],[1,"error",3,"ngClass"],g,[1,"file-upload"],[1,"flex","files-wrapper"],["matTooltipPosition","above","matTooltipClass","attach-files-tooltip",1,"capital-gothic","margin-right","attach-files-text","pointer",3,"matTooltip","matTooltipDisabled","ngClass","click"],E,["multiple","","type","file","hidden","",3,"input"],["fileInput",""],["class","warning",4,"ngIf"],[1,"items-wrapper"],["class","file-data",4,"ngFor","ngForOf"],[1,"actions"],["mat-raised-button","",1,"btn","btn_light",3,"click"],C,["matTooltipPosition","above","matTooltipClass","attach-files-tooltip","mat-raised-button","",1,"btn","btn_dark",3,"matTooltipDisabled","matTooltip","disabled","click"],P,[1,"flex","space-between"],u,[3,"data","label","errors","touched","value","selectedItem"],[1,"note",2,"bottom","25px"],N,[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 l=e.EpF();e.TgZ(0,"div",0)(1,"div",1)(2,"p",2),e.tHW(3,3),e.YNc(4,Nn,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,"h3",8),e.SDv(10,9),e.qZA(),e._UZ(11,"mat-divider",10),e.TgZ(12,"div",11)(13,"p",12),e.SDv(14,13),e.qZA(),e.TgZ(15,"p",14),e._uU(16),e.qZA()(),e._UZ(17,"mat-divider"),e.TgZ(18,"div",11)(19,"p",12),e.SDv(20,15),e.qZA(),e.TgZ(21,"p",14),e._uU(22),e.qZA()(),e._UZ(23,"mat-divider"),e.TgZ(24,"div",11)(25,"p",12),e.SDv(26,16),e.qZA(),e.TgZ(27,"p",14),e._uU(28),e.qZA()(),e._UZ(29,"mat-divider"),e.TgZ(30,"div",11)(31,"p",12),e.SDv(32,17),e.qZA(),e.TgZ(33,"p",14),e._uU(34),e.qZA()(),e._UZ(35,"mat-divider"),e.qZA(),e.TgZ(36,"p",18),e.SDv(37,19),e.qZA(),e.TgZ(38,"div",20),e.YNc(39,Dn,6,5,"div",21),e.TgZ(40,"div",22)(41,"p"),e.SDv(42,23),e.qZA(),e.TgZ(43,"div",24),e._UZ(44,"ngx-editor-menu",25)(45,"ngx-editor",26),e.TgZ(46,"div",27),e.SDv(47,28),e.qZA()()(),e.TgZ(48,"div",29)(49,"div",30)(50,"p",31),e.NdJ("click",function(){e.CHM(l);const _=e.MAs(53);return e.KtG(n.isFilesValid&&_.click())}),e.tHW(51,32),e.TgZ(52,"input",33,34),e.NdJ("input",function(_){return n.doFileInput(_)}),e.qZA(),e.N_p(),e.qZA(),e.YNc(54,Fn,2,0,"p",35),e.YNc(55,xn,2,1,"p",35),e.qZA(),e.TgZ(56,"div",36),e.YNc(57,bn,9,3,"div",37),e.qZA()()()(),e.TgZ(58,"div",38)(59,"button",39),e.NdJ("click",function(_){return n.onCancel(_)}),e.SDv(60,40),e.qZA(),e.TgZ(61,"button",41),e.NdJ("click",function(){return n.onSave()}),e.SDv(62,42),e.qZA()()()}2&t&&(e.xp6(4),e.Q6J("ngIf",null==n.tooltipsService||null==n.tooltipsService.tooltips?null:n.tooltipsService.tooltips.new_sales_request),e.xp6(3),e.Q6J("formGroup",n.formData),e.xp6(9),e.Oqu(null==n.details?null:n.details.service_agreement_number),e.xp6(6),e.Oqu(null==n.details?null:n.details.agreement_date),e.xp6(6),e.Oqu(null==n.details?null:n.details.id),e.xp6(6),e.Oqu(null==n.details?null:n.details.retn_unit),e.xp6(5),e.Q6J("ngIf",n.products.length>0),e.xp6(4),e.Q6J("ngClass",e.VKq(22,In,n.control.invalid&&(n.control.dirty||n.control.touched))
1),e.xp6(1),e.Q6J("editor",n.editor),e.xp6(1),e.Q6J("editor",n.editor)("placeholder",n.textareaLabel)("formControl",n.control),e.xp6(1),e.Q6J("ngClass",e.VKq(24,wn,n.control.invalid&&(n.control.dirty||n.control.touched))),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(2),e.Q6J("ngForOf",n.showedFiles),e.xp6(4),e.Q6J("matTooltipDisabled",!!n.products.length)("matTooltip",n.emptyProductList)("disabled",!n.products.length))},dependencies:[p.mk,p.sg,p.O5,c.JJ,c.JL,c.oH,c.sg,L.Hw,A.gM,re.m,v.K,b.g,M.lW,F.d,G.pW,x.tP,x.Mn],styles:['.request-details[_ngcontent-%COMP%]{width:50%;margin-top:25px}@media (max-width: 960px){.request-details[_ngcontent-%COMP%]{width:55%}}.request-details__field[_ngcontent-%COMP%]{display:grid;grid-template-columns:45% 1fr;gap:15px;padding:18px 18px 18px 28px}@media (max-width: 1180px){.request-details__field[_ngcontent-%COMP%]{grid-template-columns:53% 1fr}}.request-details__label[_ngcontent-%COMP%]{font-size:16px;font-weight:700}.title-text[_ngcontent-%COMP%] app-tooltip .right{top:13px}.section-title[_ngcontent-%COMP%]{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}.link[_ngcontent-%COMP%]{color:#144a90;text-decoration:none;cursor:pointer}.editable[_ngcontent-%COMP%]{background-color:#eaf2fc;padding:24px;margin-top:34px;flex:0 0 48%}@media (max-width: 960px){.editable[_ngcontent-%COMP%]{padding:24px 12px}}.editable[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%}.editable[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{flex:0 0 120px}@media (max-width: 960px){.editable[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{flex:0 0 95px}}.editable[_ngcontent-%COMP%] .form-field[_ngcontent-%COMP%]{flex:1}.editable[_ngcontent-%COMP%] .flex[_ngcontent-%COMP%]{align-items:baseline;position:relative}.editable[_ngcontent-%COMP%] .align-end[_ngcontent-%COMP%]{align-items:flex-end}mat-form-field[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{padding-left:1rem!important}mat-form-field[_ngcontent-%COMP%] mat-select[_ngcontent-%COMP%]{padding-left:1rem!important;width:96%}mat-form-field[_ngcontent-%COMP%] mat-label[_ngcontent-%COMP%]{margin-left:1rem!important;font-weight:300;font-size:14px}.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;margin:40px 0 16px}.actions[_ngcontent-%COMP%]{display:flex;margin:54px auto 0;justify-content:center;gap:10%}[_nghost-%COMP%] .mat-form-field-infix:has(textarea){border:1px solid #D9D9D9}textarea[_ngcontent-%COMP%]{box-sizing:border-box}.note[_ngcontent-%COMP%]{position:absolute;bottom:15px;left:calc(100% + 50px);width:90%}@media (max-width: 960px){.note[_ngcontent-%COMP%]{left:calc(100% + 30px);width:70%}}.file-upload[_ngcontent-%COMP%]{position:relative}.fill-text[_ngcontent-%COMP%]{margin:50px 28px 24px!important;text-transform:uppercase;font-size:14px}.btn[_ngcontent-%COMP%]:disabled{background:#D9EAFF;color:#fff} .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}.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}.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-files-text[_ngcontent-%COMP%]{color:#144a90;text-transform:uppercase;font-size:14px;margin-top:18px!important;width:-moz-fit-content;width:fit-content} .select-overlay .mat-select-panel-wrap .mat-select-panel{max-height:unset;border-radius:0;width:100%!important;min-width:100%!important} .select-overlay{min-width:unset!important;max-width:300px;width:100%;transform:translate(0) translateY(35px)!important} .select-overlay .mat-select-panel .mat-option.mat-active{background:none} .select-overlay .mat-select-panel .mat-option{border-bottom:1px solid #000;height:40px} .select-overlay .mat-select-panel .mat-option:hover:not(.mat-option-disabled), .select-overlay .mat-select-panel .mat-option:focus:not(.mat-option-disabled){background:none}.select-container[_ngcontent-%COMP%]{padding:20px 0 40px}.custom-panel[_ngcontent-%COMP%]{max-height:200px;overflow:auto;padding:0 40px 0 20px} .custom-panel_simple-select .mat-option-text{padding-left:30px;display:flex;align-items:center} .custom-panel_simple-select mat-option:hover .mat-option-text:before{content:"";display:block;width:5px;height:5px;background:#D6117F;position:absolute;left:15px}app-custom-search-select[_ngcontent-%COMP%]{width:100%;display:block}[_nghost-%COMP%] .form .mat-form-field-infix, [_nghost-%COMP%] .form .mat-form-field-infix{border-bottom:1px solid #000!important}[_nghost-%COMP%] .mat-form-field label, [_nghost-%COMP%] .form mat-form-field .mat-select-placeholder{font-size:14px;padding-left:20px;font-weight:300;color:#0000006b!important}[_nghost-%COMP%] .select-overlay .mat-form-field-appearance-outline .mat-select-arrow, [_nghost-%COMP%] .mat-form-field-appearance-outline .mat-select-arrow, [_nghost-%COMP%] .custom-select .mat-form-field-appearance-outline .mat-select-arrow{border-image-source:url(/assets/pic/select-arrow.svg)!important;transform:rotate(0)}[_nghost-%COMP%] mat-select[aria-expanded=true] .mat-select-arrow{transform:rotate(180deg)}.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})();var Un=s(68675),J=s(3238);const $n=["search"];function yn(o,i){if(1&o&&(e.TgZ(0,"p",23),e._uU(1),e.qZA()),2&o){const t=e.oxw();e.xp6(1),e.Oqu(t.label)}}function Zn(o,i){if(1&o&&(e.TgZ(0,"p",26),e._uU(1),e.qZA()),2&o){const t=i.$implicit;e.xp6(1),e.Oqu(t)}}function qn(o,i){if(1&o&&(e.ynx(0),e.TgZ(1,"div",24),e.YNc(2,Zn,2,1,"p",25),e.qZA(),e.BQk()),2&o){const t=e.oxw();e.xp6(2),e.Q6J("ngForOf",t.selectedItemsValue)}}function Qn(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 kn(o,i){if(1&o&&(e.ynx(0),e.YNc(1,Qn,2,1,"p",27),e.BQk()),2&o){const t=e.oxw();e.xp6(1),e.Q6J("ngForOf",t.selectedItemsValue)}}function zn(o,i){if(1&o&&(e.TgZ(0,"p",28),e._uU(1),e.qZA()),2&o){const t=e.oxw();e.xp6(1),e.Oqu(t.label)}}function Gn(o,i){1&o&&(e.TgZ(0,"button",29)(1,"mat-icon"),e.O4$(),e.TgZ(2,"svg",30),e._UZ(3,"circle",31)(4,"line",32),e.qZA()()()),2&o&&e.Q6J("disableRipple",!0)}function Xn(o,i){if(1&o){const t=e.EpF();e.TgZ(0,"button",33),e.NdJ("click",function(l){e.CHM(t);const a=e.oxw();return e.KtG(a.clearSearch(l))}),e.TgZ(1,"mat-icon"),e._uU(2,"close"),e.qZA()()}2&o&&e.Q6J("disableRipple",!0)}function Jn(o,i){1&o&&(e.TgZ(0,"mat-optgroup")(1,"div"),e.SDv(2,34),e.qZA()())}function Yn(o,i){if(1&o&&(e.TgZ(0,"span",35),e.SDv(1,36),e.qZA()),2&o){const t=e.oxw();e.xp6(1),e.pQV(t.selectFormControl.value.length)(1===t.selectFormControl.value.length?"item":"items"),e.QtT(1)}}function Vn(o,i){if(1&o){const t=e.EpF();e.TgZ(0,"mat-checkbox",37),e.NdJ("change",function(){e.CHM(t);const l=e.oxw(),a=e.MAs(5);return e.KtG(l.toggleSelection(a))}),e.SDv(1,38),e.qZA()}if(2&o){const t=e.oxw(),n=e.MAs(5);e.Q6J("checked","all"===t.selected(n))}}function Hn(o,i){if(1&o){const t=e.EpF();e.TgZ(0,"mat-option",39),e.NdJ("onSelectionChange",function(l){e.CHM(t);const a=e.oxw();return e.KtG(a.onSelectionChange(l))}),e._uU(1),e.qZA()}if(2&o){const t=i.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function Bn(o,i){1&o&&e._UZ(0,"mat-option",40)}const Wn=function(o){return{transform:o}};let jn=(()=>{class o{constructor(){this.selectFormControl=new c.NI,this.searchTextboxControl=new c.NI,this.selectedItemsValue=[],this.data=[],this.label="",this.selectedItems=new e.vpe}ngOnChanges(t){t.data&&(this.filteredOptions=this.searchTextboxControl.valueChanges.pipe((0,Un.O)(""),(0,H.U)(n=>this._filter(n)))),this.value?(this.selectFormControl.setValue(this.value),1===this.data.length&&(this.selectedItemsValue=this.value)):(this.selectFormControl.setValue(null),this.selectedItemsValue=[]),this.errors&&Object.keys(this.errors).length>0&&this.selectFormControl.setErrors(this.errors),this.touched&&this.selectFormControl.markAsTouched()}_filter(t){const n=t.toLowerCase();return this.data?.filter(l=>0===l.toLowerCase().indexOf(n))}selected(t){if(null!=t.options&&0!==t.options.length)return t._selectionModel.selected.length===t.options.length?"all":void 0}toggleSelection(t){let n=this.selectFormControl.value||[];t.options.forEach(l=>{"all"===this.selected(t)||n.includes(l.value)?"all"===this.selected(t)&&n?.includes(l.value)&&(n=n.filter(a=>a!==l.value)):n.push(l.value)}),this.selectFormControl?.setValue(n)}onSelectionChange(t){let n=this.selectFormControl?.value||[];t.isUserInput&&(t.source.selected&&!n.includes(t.source.value)?n.push(t.source.value):!t.source.selected&&n.includes(t.source.value)&&(n=n.filter(l=>l!==t.source.value)),this.selectFormControl?.setValue(n))}clearSelection(t){let n=this.selectFormControl.value||[];t.options.forEach(l=>{n?.includes(l.value)&&(n=n.filter(a=>a!==l.value))}),this.selectFormControl?.setValue(n)}clearSearch(t){t.stopPropagation(),this.searchTextboxControl.patchValue("")}
1applySelection(){this.selectedItemsValue=0===this.selectFormControl.value.length?[]:[...this.selectFormControl.value],this.selectedItems.emit(this.selectFormControl.value)}touch(){this.selectFormControl.markAsUntouched()}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-custom-search-multiselect-selected"]],viewQuery:function(t,n){if(1&t&&e.Gf($n,5),2&t){let l;e.iGM(l=e.CRH())&&(n.searchTextBox=l.first)}},inputs:{data:"data",label:"label",errors:"errors",touched:"touched",value:"value"},outputs:{selectedItems:"selectedItems"},features:[e.TTD],decls:31,vars:22,consts:function(){let i,t,n,l,a,_;return i="Search",t="Clear All",n="Apply",l="No records!",a="You selected " + "\ufffd0\ufffd" + " " + "\ufffd1\ufffd" + " ",_="Select All ",[[1,"custom-select",3,"ngClass"],["appearance","outline"],["class","absolute_pseudo_label absolute",4,"ngIf"],[4,"ngIf"],["multiple","",3,"formControl","openedChange","click"],["opts",""],["class","pseudo_label",4,"ngIf"],[1,"select-container"],["appearance","outline",2,"width","100%"],["autocomplete","off","placeholder",i,"aria-label","Search","matInput","",3,"formControl"],["search",""],["matSuffix","","mat-icon-button","","aria-label","Search",3,"disableRipple",4,"ngIf"],["matSuffix","","mat-icon-button","","aria-label","Clear",3,"disableRipple","click",4,"ngIf"],[1,"scroll"],[1,"custom-panel"],["class","additional-selection__total",4,"ngIf"],[3,"checked","change",4,"ngIf"],["color","accent",3,"value","onSelectionChange",4,"ngFor","ngForOf"],["style","display: none;",4,"ngIf"],["mat-button","",1,"clear-btn",3,"click"],t,["mat-button","",3,"click"],n,[1,"absolute_pseudo_label","absolute"],[1,"pseudo_selected__wrapper"],["class","pseudo_selected",4,"ngFor","ngForOf"],[1,"pseudo_selected"],[4,"ngFor","ngForOf"],[1,"pseudo_label"],["matSuffix","","mat-icon-button","","aria-label","Search",3,"disableRipple"],["width","23","height","23","viewBox","0 0 23 23","fill","none","xmlns","http://www.w3.org/2000/svg"],["cx","9.5","cy","9.5","r","8.5","stroke","#A6A6A6","stroke-width","2"],["x1","15.7071","y1","16.2929","x2","21.7071","y2","22.2929","stroke","#A6A6A6","stroke-width","2"],["matSuffix","","mat-icon-button","","aria-label","Clear",3,"disableRipple","click"],l,[1,"additional-selection__total"],a,[3,"checked","change"],_,["color","accent",3,"value","onSelectionChange"],[2,"display","none"]]},template:function(t,n){if(1&t){const l=e.EpF();e.TgZ(0,"form",0)(1,"mat-form-field",1),e.YNc(2,yn,2,1,"p",2),e.YNc(3,qn,3,1,"ng-container",3),e.TgZ(4,"mat-select",4,5),e.NdJ("openedChange",function(){return n.searchTextboxControl.setValue("")})("click",function(){return n.touch()}),e.TgZ(6,"mat-select-trigger"),e.YNc(7,kn,2,1,"ng-container",3),e.YNc(8,zn,2,1,"p",6),e.qZA(),e.TgZ(9,"div",7)(10,"mat-optgroup")(11,"mat-form-field",8),e._UZ(12,"input",9,10),e.YNc(14,Gn,5,1,"button",11),e.YNc(15,Xn,3,1,"button",12),e.qZA()(),e.TgZ(16,"div",13)(17,"div",14),e.YNc(18,Jn,3,0,"mat-optgroup",3),e.ALo(19,"async"),e.YNc(20,Yn,2,2,"span",15),e.YNc(21,Vn,2,1,"mat-checkbox",16),e.ALo(22,"async"),e.YNc(23,Hn,2,2,"mat-option",17),e.ALo(24,"async"),e.YNc(25,Bn,1,0,"mat-option",18),e.qZA()(),e.TgZ(26,"footer")(27,"button",19),e.NdJ("click",function(){e.CHM(l);const _=e.MAs(5);return e.KtG(n.clearSelection(_))}),e.SDv(28,20),e.qZA(),e.TgZ(29,"button",21),e.NdJ("click",function(){e.CHM(l);const _=e.MAs(5);return n.applySelection(),e.KtG(_.close())}),e.SDv(30,22),e.qZA()()()()()()}if(2&t){const l=e.MAs(13);let a,_;e.Q6J("ngClass",e.VKq(20,Wn,n.selectedItemsValue.length&&!(null!=n.selectFormControl.value&&n.selectFormControl.value.length))),e.xp6(2),e.Q6J("ngIf",!(null!=n.selectFormControl.value&&n.selectFormControl.value.length||n.selectedItemsValue.length)),e.xp6(1),e.Q6J("ngIf",n.selectedItemsValue.length&&!(null!=n.selectFormControl.value&&n.selectFormControl.value.length)),e.xp6(1),e.Q6J("formControl",n.selectFormControl),e.xp6(3),e.Q6J("ngIf",n.selectedItemsValue.length),e.xp6(1),e.Q6J("ngIf",!n.selectedItemsValue.length),e.xp6(4),e.Q6J("formControl",n.searchTextboxControl),e.xp6(2),e.Q6J("ngIf",!l.value),e.xp6(1),e.Q6J("ngIf",l.value),e.xp6(3),e.Q6J("ngIf",0==(null==(a=e.lcZ(19,14,n.filteredOptions))?null:a.length)),e.xp6(2),e.Q6J("ngIf",(null==n.selectFormControl.value?null:n.selectFormControl.value.length)>0),e.xp6(1),e.Q6J("ngIf",0!==(null==(_=e.lcZ(22,16,n.filteredOptions))?null:_.length)),e.xp6(2),e.Q6J("ngForOf",e.lcZ(24,18,n.filteredOptions)),e.xp6(2),e.Q6J("ngIf",0===(null==n.data?null:n.data.length))}}
1,dependencies:[p.mk,p.sg,p.O5,c._Y,c.Fj,c.JJ,c.JL,c.F,M.lW,Y.oG,f.KE,f.R9,L.Hw,Q.Nt,$.gD,$.$L,J.ey,J.Nv,c.oH,p.Ov],styles:["mat-select-trigger[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}mat-select-trigger[_ngcontent-%COMP%] p[_ngcontent-%COMP%]:not(:last-child){margin-bottom:3px!important}[_nghost-%COMP%] .mat-select-trigger{height:100%;align-items:flex-end!important}.additional-selection[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.additional-selection__amount[_ngcontent-%COMP%]{font-size:14px;color:#d6117f;margin-left:10px}.additional-selection__total[_ngcontent-%COMP%]{font-size:12px;color:#d6117f}.select-container[_ngcontent-%COMP%]{margin-top:10px}.custom-panel[_ngcontent-%COMP%]{max-height:200px;overflow:auto;padding:0 20px}footer[_ngcontent-%COMP%]{height:44px;padding:10px 0 0 20px}footer[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{text-transform:uppercase;color:#144a90;font-weight:400}footer[_ngcontent-%COMP%] button.clear-btn[_ngcontent-%COMP%]{color:#1a1b1d}footer[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#d6117f} .select-overlay .mat-select-panel .mat-optgroup-label{padding:10px 20px} .select-overlay .mat-select-panel .mat-option{border-bottom:1px solid #000;height:40px} .select-overlay .mat-select-panel .mat-option .mat-pseudo-checkbox{height:6px;width:6px;border-radius:0;border:0;background:#DDDDDD} .select-overlay .mat-select-panel .mat-option .mat-option-ripple{display:none} .select-overlay .mat-select-panel-wrap .mat-select-panel{max-height:unset;border-radius:0;width:100%!important;min-width:100%!important} .select-overlay .mat-select-panel .mat-option.mat-active{background:none} .select-overlay .mat-select-panel mat-form-field input::placeholder{font:300 16px Capital Gothic,Arial,sans-serif} .select-overlay .mat-select-panel .mat-form-field-infix{width:unset} .select-overlay .mat-select-panel .mat-option.mat-selected:not(.mat-option-disabled), .select-overlay .mat-checkbox.mat-checkbox-checked{border-bottom:2px solid #D6117F;font-weight:500;color:#000} .select-overlay .mat-select-panel .mat-selected:not(.mat-option-disabled) .mat-pseudo-checkbox, .select-overlay .mat-checkbox-indeterminate.mat-accent .mat-checkbox-background, .select-overlay .mat-checkbox-checked.mat-accent .mat-checkbox-background{background:#D6117F;border-radius:0} .select-overlay .mat-checkbox{display:block!important;padding:10px 0;border-bottom:1px solid #000} .select-overlay .mat-checkbox-frame{height:6px;width:6px;border-radius:0!important;border:0!important;background:#DDDDDD} .select-overlay .mat-checkbox-inner-container{height:6px!important;width:6px!important;border-radius:0;border:0;background:#DDDDDD;margin-left:15px!important} .select-overlay .mat-checkbox-inner-container svg{display:none} .select-overlay .mat-checkbox .mat-checkbox-ripple{display:none} .select-overlay .mat-checkbox-layout{width:100%} .select-overlay .mat-form-field-appearance-outline .mat-form-field-infix, .custom-select .mat-form-field-appearance-outline .mat-form-field-infix{padding:2px 0 12px} .select-overlay .mat-form-field-appearance-outline .mat-select-arrow-wrapper, .custom-select .mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(0)!important} .select-overlay .mat-form-field-appearance-outline .mat-form-field-outline-start, .select-overlay .mat-form-field-appearance-outline .mat-form-field-outline-end, .custom-select .mat-form-field-appearance-outline .mat-form-field-outline-start, .custom-select .mat-form-field-appearance-outline .mat-form-field-outline-end{border:none!important;background:#D9EAFF;border-radius:0!important} .select-overlay .mat-form-field-appearance-outline .mat-select-arrow, .custom-select .mat-form-field-appearance-outline .mat-select-arrow{border-image-source:url(/en/assets/pic/icons/arrow.svg)!important;transform:rotate(180deg)} .select-container .mat-form-field-appearance-outline .mat-form-field-outline-start, .select-container .mat-form-field-appearance-outline .mat-form-field-outline-end{border:none;background:#F3F3F3;border-radius:0}[_nghost-%COMP%] mat-select[aria-expanded=true] .mat-form-field-appearance-outline .mat-select-arrow{transform:rotate(0)}[_nghost-%COMP%] mat-form-field{width:100%}[_nghost-%COMP%] mat-form-field .mat-select-placeholder{color:#000!important} .select-overlay{transform:translate(-12px) translateY(35px)!important} .select-container .mat-form-field-suffix{right:-10px} .select-container .mat-form-field-suffix:has(svg){top:.5em!important} .select-container .mat-form-field-suffix:has(svg) svg{height:20px;width:19px} .select-container .mat-form-field-appearance-outline .mat-form-field-infix, .select-container .custom-select .mat-form-field-appearance-outline .mat-form-field-infix{padding:2px 0 10px;border-top:0} .select-container .mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{height:33px}.scroll[_ngcontent-%COMP%]{height:100%;overflow-y:auto;margin-right: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}[_nghost-%COMP%] .mat-select.ng-invalid.ng-touched .mat-select-placeholder{color:#d6117f!important}[_nghost-%COMP%] .mat-form-field.ng-invalid.ng-touched .absolute_pseudo_label{color:#d6117f!important}[_nghost-%COMP%] .mat-form-field.ng-invalid.ng-touched .mat-form-field-infix{border-bottom-color:#d6117f!important}.pseudo_label[_ngcontent-%COMP%]{color:#0000006b!important;font-size:14px;padding-left:20px;font-weight:400;font-family:Arial}.absolute_pseudo_label[_ngcontent-%COMP%]{color:#0000006b!important;font-size:14px;padding-left:20px;font-weight:400;font-family:Arial;transform:translateY(1.5px)}.pseudo_selected[_ngcontent-%COMP%]{margin-bottom:3px!important;font-family:Arial}.absolute[_ngcontent-%COMP%]{position:absolute}.pseudo_selected__wrapper[_ngcontent-%COMP%]{transform:translateY(20px)}.transform[_ngcontent-%COMP%]{transform:translateY(-20px)} .transform .mat-form-field-wrapper{padding-bottom:0!important}"]}),o})();function Kn(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.active_sales_request),e.QtT(0)}}function eo(o,i){1&o&&(e.TgZ(0,"mat-label"),e.SDv(1,47),e.qZA())}function to(o,i){if(1&o&&(e.TgZ(0,"mat-option",48),e._uU(1),e.qZA()),2&o){const t=i.$implicit;e.Q6J("value",t),e.xp6(1),e.Oqu(t)}}function no(o,i){1&o&&(e.TgZ(0,"p",49),e.SDv(1,50),e.qZA())}function oo(o,i){if(1&o&&(e.TgZ(0,"p",49),e._uU(1),e.qZA()),2&o){const t=e.oxw();e.xp6(1),e.Oqu(t.errorMessage)}}function io(o,i){if(1&o&&(e.TgZ(0,"div",57),e._UZ(1,"mat-progress-bar",58),e.TgZ(2,"p",59),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",51)(1,"div",52)(2,"p",53),e._uU(3),e.qZA(),e.TgZ(4,"mat-icon",54),e.NdJ("click",function(){const a=e.CHM(t).index,_=e.oxw();return e.KtG(_.deleteFile(a))}),e._uU(5,"close"),e.qZA()(),e.YNc(6,io,4,2,"div",55),e.TgZ(7,"p",56),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 lo=function(o){return{"error-border":o}},_o=function(o){return{"error-show":o}};let so=(()=>{class o{constructor(t,n,l,a,_,d,g,E,C){this.breadcrumbs=t,this.router=n,this.route=l,this.setSalesRequestDetails=a,this.updateSalesRequestFields=_,this.sendFileUsecase=d,this.loading=g,this.modal=E,this.tooltipsService=C,this.showedFiles=[],this.request_types=["Cancellation","Modification","Renewal"],this.products=[],this.services=[],this.productLabel="Select product",this.serviceLable="Select services",this.textareaLabel="Describe",this.formData=new c.cw({product:new c.NI(null,c.kI.required),request_type:new c.NI(null,c.kI.required),services:new c.NI([],c.kI.required),request:new c.NI(null,c.kI.required),file_uids:new c.NI([])}),this.data={id:0,request_type:"Service",product:"",services:[],request:"",type:"Edit",file_uids:[]},this.getData={type:"edit",product:"",services:[]},this.editor=new x.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 )",this.breadcrumbs.setLinks([{route:"/",text:"Home"},{route:"/main/orders",text:"Orders"},{text:"New sales request"}])}ngOnInit(){this.route.queryParams.subscribe(t=>{t.service_id&&this.onServicesSelect([t.service_id])}),this.loadData()}loadData(){this.loading.set(!0),this.updateSalesRequestFields.execute(this.getData).subscribe({next:t=>{this.products=t.products?.map(n=>n.name),this.services=t.services},complete:()=>this.loading.set(!1)})}onSave(){if(this.loading.set(!0),this.formData.markAllAsTouched(),this.formData.invalid)return void this.loading.set(!1);let t=this.formData.getRawValue();Object.keys(t).map(n=>{this.data[n]=t[n]}),this.setSalesRequestDetails.execute(this.data).subscribe({next:n=>{n&&this.router.navigate(["/main/orders/sales-request/"+n],{queryParams:{prev:"created"}})},complete:()=>this.loading.set(!1)})}doCancel(t){this.formData.dirty?this.modal.open(ae.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(n=>{n&&(history.back(),t.preventDefault())}):(history.back(),t.preventDefault())}doFileInput(t){const n=t.target.files;if(n&&!(n.length<1)){this.errorMessage="";for(let l=0;l<n.length;l++){const a=n[l];if(!this.isFilesValid)break;if(a.size>26214400)return void(this.errorMessage="File size should be less than 25MB");if(!a.type)return void(this.errorMessage="File type is not allowed");{const _=a.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(_))return void(this.errorMessage="File type " + _ + " is not allowed")}this.showedFiles.push({name:a.name,size:a.size,percentage:0,isUploading:!1}),this.sendFile(a,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.formData.get("file_uids").value.splice(t,1),this.showedFiles.splice(t,1)}sendFile(t,n){const l=new FormData;l.append("file",t,t.name),this.showedFiles[n].percentage=0,this.showedFiles[n].isUploading=!0,this.sendFileUsecase.execute(l).pipe((0,H.U)(a=>{a.type===X.dt.UploadProgress?this.showedFiles[n].percentage=Math.round(100/a.total*a.loaded):a.type===X.dt.Response&&(this.showedFiles[n].isUploading=!1,this.formData.get("file_uids").value[n]=a.body)}),(0,oe.K)(a=>(this.showedFiles[n].percentage=0,this.showedFiles[n].isUploading=!1,(0,ie._)(a.message)))).subscribe()}onProductSelect(t){this.formData.get("product").setValue(t),this.formData.get("product").markAsDirty(),this.getData.product=t,t||(this.getData.product="",this.getData.services=[],this.formData.get("product").setValue(t),this.formData.get("services").setValue(t)),this.updateSalesRequestFields.execute(this.getData).subscribe({next:n=>{this.products=n.products?.map(l=>
1l.name),this.services=n.services,1===this.services.length?this.formData.get("services").setValue(this.services):this.formData.get("services").setValue(null)}})}onServicesSelect(t){this.formData.get("services").setValue(t),this.formData.get("services").markAsDirty(),this.getData.services=t,this.updateSalesRequestFields.execute(this.getData).subscribe({next:n=>{this.products=n.products?.map(l=>l.name),this.services=n.services,1===this.products.length&&this.formData.get("product").setValue(this.products[0])}})}onTypeSelect(t){this.formData.get("request_type").setValue(t),this.formData.get("request_type").markAsDirty()}get control(){return this.formData.controls.request}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(O.W),e.Y36(T.F0),e.Y36(T.gz),e.Y36(le.k),e.Y36(_e.j),e.Y36(se.b),e.Y36(V.D),e.Y36(Z.uw),e.Y36(q.b))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-active-sales-request"]],features:[e._Bn([{provide:$.PG,useValue:{overlayPanelClass:"select-overlay"}}])],decls:58,vars:31,consts:function(){let i,t,n,l,a,_,d,g,E,C,P,h,u,N,m;return i="Please fill in the form below:",t="Request Type *",n="Please select the type of your request",l="Product *",a="Please select the product to which your request applies",_="Services *",d="From the list of your active services, check the ones your request concerns",g="Request *",E=" This field is required ",C=" Attach Files " + "\ufffd#47\ufffd\ufffd/#47\ufffd" + "",P="Cancel",h="Save",u="New Sales Request " + "\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" + "",N="Select request type",m="You can attach max 5 files",[[1,"new-request"],[1,"title","margin-top"],[1,"title-text","capital-gothic"],u,[4,"ngIf"],[1,"breadcrumbs"],[1,"request-details","form",3,"formGroup"],[1,"capital-gothic","fill-text"],i,[1,"editable"],[1,"flex","space-between"],t,["floatLabel","never",1,"simple-select"],["formControlName","request_type"],[1,"select-container"],[1,"scroll"],[1,"custom-panel","custom-panel_simple-select"],[3,"value",4,"ngFor","ngForOf"],[1,"note",2,"bottom","25px"],n,l,[3,"data","label","errors","touched","value","button","selectedItem"],a,_,[3,"data","label","errors","touched","value","selectedItems"],d,[1,"align-end","flex","space-between"],g,[1,"editor",2,"width","100%",3,"ngClass"],[3,"editor"],[3,"editor","placeholder","formControl"],[1,"error",3,"ngClass"],E,[1,"file-upload"],[1,"flex","files-wrapper"],["matTooltipPosition","above","matTooltipClass","attach-files-tooltip",1,"capital-gothic","margin-right","attach-files-text","pointer",3,"matTooltip","matTooltipDisabled","ngClass","click"],C,["multiple","","type","file","hidden","",3,"input"],["fileInput",""],["class","warning",4,"ngIf"],[1,"items-wrapper"],["class","file-data",4,"ngFor","ngForOf"],[1,"actions"],["mat-raised-button","",1,"btn","btn_light",3,"click"],P,["mat-raised-button","",1,"btn","btn_dark",3,"click"],h,N,[3,"value"],[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 l=e.EpF();e.TgZ(0,"div",0)(1,"div",1)(2,"p",2),e.tHW(3,3),e.YNc(4,Kn,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,"p",7),e.SDv(9,8),e.qZA(),e.TgZ(10,"div",9)(11,"div",10)(12,"p"),e.SDv(13,11),e.qZA(),e.TgZ(14,"mat-form-field",12),e.YNc(15,eo,2,0,"mat-label",4),e.TgZ(16,"mat-select",13)(17,"div",14)(18,"div",15)(19,"div",16),e.YNc(20,to,2,2,"mat-option",17),e.qZA()()()()(),e.TgZ(21,"p",18),e.SDv(22,19),e.qZA()(),e.TgZ(23,"div",10)(24,"p"),e.SDv(25,20),e.qZA(),e.TgZ(26,"app-custom-search-select",21),e.NdJ("selectedItem",function(_){return n.onProductSelect(_)}),e.qZA(),e.TgZ(27,"p",18),e.SDv(28,22),e.qZA()(),e.TgZ(29,"div",10)(30,"p"),e.SDv(31,23),e.qZA(),e.TgZ(32,"app-custom-search-multiselect-selected",24),e.NdJ("selectedItems",function(_){return n.onServicesSelect(_)}),e.qZA(),e.TgZ(33,"p",18),e.SDv(34,25),e.qZA()(),e.TgZ(35,"div",26)(36,"p"),e.SDv(37,27),e.qZA(),e.TgZ(38,"div",28),e._UZ(39,"ngx-editor-menu",29)(40,"ngx-editor",30),e.TgZ(41,"div",31),e.SDv(42,32),e.qZA()()(),e.TgZ(43,"div",33)(44,"div",34)(45,"p",35),e.NdJ("click",function(){e.CHM(l);const _=e.MAs(48);return e.KtG(n.isFilesValid&&_.click())}),e.tHW(46,36),e.TgZ(47,"input",37,38),e.NdJ("input",function(_){return n.doFileInput(_)}),e.qZA(),e.N_p(),e.qZA(),e.YNc(49,no,2,0,"p",39),e.YNc(50,oo,2,1,"p",39),e.qZA(),e.TgZ(51,"div",40),e.YNc(52,ao,9,3,"div",41),e.qZA()()()(),e.TgZ(53,"div",42)(54,"button",43),e.NdJ("click",function(_){return n.doCancel(_)}),e.SDv(55,44),e.qZA(),e.TgZ(56,"button",45),e.NdJ("click",function(){return n.onSave()}),e.SDv(57,46),e.qZA()()()}if(2&t){let l,a,_,d,g,E;e.xp6(4),e.Q6J("ngIf",null==n.tooltipsService||null==n.tooltipsService.tooltips?null:n.tooltipsService.tooltips.active_sales_request),e.xp6(3),e.Q6J("formGroup",n.formData),e.xp6(8),e.Q6J("ngIf",!n.formData.get("request_type").value),e.xp6(5),e.Q6J("ngForOf",n.request_types),e.xp6(6),e.Q6J("data",n.products)("label",n.productLabel)("errors",null==(l=n.formData.get("product"))?null:l.errors)("touched",null==(a=n.formData.get("product"))?null:a.touched)("value",null==(_=n.formData.get("product"))?null:_.value)("button",!0),e.xp6(6),e.Q6J("data",n.services)("label",n.serviceLable)("errors",null==(d=n.formData.get("services"))?null:d.errors)("touched",null==(g=n.formData.get("services"))?null:g.touched)("value",null==(E=n.formData.get("services"))?null:E.value),e.xp6(6),e.Q6J("ngClass",e.VKq(27,lo,n.control.invalid&&(n.control.dirty||n.control.touched))
1),e.xp6(1),e.Q6J("editor",n.editor),e.xp6(1),e.Q6J("editor",n.editor)("placeholder",n.textareaLabel)("formControl",n.control),e.xp6(1),e.Q6J("ngClass",e.VKq(29,_o,n.control.invalid&&(n.control.dirty||n.control.touched))),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(2),e.Q6J("ngForOf",n.showedFiles)}},dependencies:[p.mk,p.sg,p.O5,c.JJ,c.JL,c.oH,c.sg,c.u,f.KE,f.hX,L.Hw,A.gM,re.m,v.K,jn,b.g,M.lW,G.pW,$.gD,J.ey,x.tP,x.Mn],styles:['.request-details[_ngcontent-%COMP%]{width:50%;margin-top:25px}@media (max-width: 960px){.request-details[_ngcontent-%COMP%]{width:55%}}.section-title[_ngcontent-%COMP%]{padding-left:20px}mat-divider[_ngcontent-%COMP%]{border-top-color:#000}.title-text[_ngcontent-%COMP%] app-tooltip .right{top:13px}mat-divider.pink-divider[_ngcontent-%COMP%]{border-top-color:#d6117f;border-top-width:2px}.link[_ngcontent-%COMP%]{color:#144a90;text-decoration:none;cursor:pointer}.editable[_ngcontent-%COMP%]{background-color:#eaf2fc;padding:24px;margin-top:34px;flex:0 0 48%}@media (max-width: 960px){.editable[_ngcontent-%COMP%]{padding:24px 12px}}.editable[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%}.editable[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{flex:0 0 120px}.editable[_ngcontent-%COMP%] .form-field[_ngcontent-%COMP%]{flex:1}.editable[_ngcontent-%COMP%] .flex[_ngcontent-%COMP%]{align-items:baseline;position:relative}.editable[_ngcontent-%COMP%] .align-end[_ngcontent-%COMP%]{align-items:flex-end}mat-form-field[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{padding-left:1rem!important}mat-form-field[_ngcontent-%COMP%] mat-label[_ngcontent-%COMP%]{margin-left:1rem!important;font-weight:400;font-size:14px}.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;margin:40px 0 16px}.actions[_ngcontent-%COMP%]{display:flex;margin:54px auto 0;justify-content:center;gap:10%}[_nghost-%COMP%] .mat-form-field-infix:has(textarea){border:1px solid #D9D9D9}textarea[_ngcontent-%COMP%]{width:100%;box-sizing:border-box;padding:0}.note[_ngcontent-%COMP%]{position:absolute;bottom:15px;left:calc(100% + 50px);width:90%}@media (max-width: 960px){.note[_ngcontent-%COMP%]{left:calc(100% + 30px);width:70%}}.file-upload[_ngcontent-%COMP%]{position:relative}.fill-text[_ngcontent-%COMP%]{margin:50px 28px 24px!important;text-transform:uppercase;font-size:14px}.btn[_ngcontent-%COMP%]:disabled{background:#D9EAFF;color:#fff}[_nghost-%COMP%] .mat-form-field label, [_nghost-%COMP%] .form mat-form-field .mat-select-placeholder{font-size:14px;padding-left:20px;font-weight:300;color:#0000006b!important}app-custom-search-select[_ngcontent-%COMP%], app-custom-search-multiselect-selected[_ngcontent-%COMP%]{width:100%;display:block}[_nghost-%COMP%] .form .mat-form-field-infix, [_nghost-%COMP%] .form .mat-form-field-infix{border-bottom:1px solid #000!important}[_nghost-%COMP%] .mat-form-field-appearance-outline .mat-form-field-flex{padding:0}[_nghost-%COMP%] .select-overlay .mat-form-field-appearance-outline .mat-form-field-outline-start, [_nghost-%COMP%] .select-overlay .mat-form-field-appearance-outline .mat-form-field-outline-end, [_nghost-%COMP%] .custom-select .mat-form-field-appearance-outline .mat-form-field-outline-start, [_nghost-%COMP%] .custom-select .mat-form-field-appearance-outline .mat-form-field-outline-end{background:none} .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}.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}.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-files-text[_ngcontent-%COMP%]{color:#144a90;text-transform:uppercase;font-size:14px;margin-top:18px!important;width:-moz-fit-content;width:fit-content}[_nghost-%COMP%] .mat-select.ng-invalid.ng-touched mat-select-placeholder{color:#d6117f!important}textarea.ng-invalid.ng-touched[_ngcontent-%COMP%]{border-color:#d6117f}textarea.ng-invalid.ng-touched[_ngcontent-%COMP%]::placeholder{color:#d6117f}[_nghost-%COMP%] .select-overlay .mat-form-field-appearance-outline .mat-form-field-infix, [_nghost-%COMP%] .custom-select .mat-form-field-appearance-outline .mat-form-field-infix{padding:.4375em 0}.select-container[_ngcontent-%COMP%]{padding:20px 0 40px}.custom-panel[_ngcontent-%COMP%]{max-height:200px;overflow:auto;padding:0 40px 0 20px} .custom-panel_simple-select .mat-option-text{padding-left:30px;display:flex;align-items:center} .custom-panel_simple-select mat-option:hover .mat-option-text:before{content:"";display:block;width:5px;height:5px;background:#D6117F;position:absolute;left:15px}[_nghost-%COMP%] .simple-select.mat-form-field label, [_nghost-%COMP%] .simple-select.mat-form-field .mat-select-placeholder{padding-left:5px;position:relative;top:10px}[_nghost-%COMP%] .select-overlay .mat-form-field-appearance-outline .mat-select-arrow, [_nghost-%COMP%] .mat-form-field-appearance-outline .mat-select-arrow, [_nghost-%COMP%] .custom-select .mat-form-field-appearance-outline .mat-select-arrow{border-image-source:url(/assets/pic/select-arrow.svg)!important;transform:rotate(0)}[_nghost-%COMP%] mat-select[aria-expanded=true] .mat-select-arrow{transform:rotate(180deg)}[_nghost-%COMP%] .custom-select mat-select[aria-expanded=true] .mat-select-arrow{transform:rotate(180deg)} .select-overlay .mat-radio-button .mat-radio-label-content{white-space:nowrap!important}.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})();var y=s(82311);const ro=[{path:"",component:tt,canActivate:[y.p],data:{view:"order",action:"view"}},{path:":id",component:ln,canActivate:[y.p],data:{view:"order",action:"view"}},{path:"sales-request/new",component:Ln,canActivate:[y.p],data:{view:"sale_request",action:"create"}},{path:"sales-request/active",component:so,canActivate:[y.p],data:{view:"sale_request",action:"create"}},{path:"sales-request/:id",component:Rn,canActivate:[y.p],data:{view:"sale_request",action:"view"}},{path:"service-implementation-details/:id",canActivate:[y.p],data:{view:"service",action:"view"},component:Ot}];let co=(()=>{class o{}return o.\u0275fac=function(t){return new(t||o)}
1,o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({imports:[T.Bz.forChild(ro),T.Bz]}),o})();var po=s(7876),go=s(10794),So=s(5658);let uo=(()=>{class o{}return o.\u0275fac=function(t){return new(t||o)},o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({imports:[p.ez,c.u5,c.UX,f.lN,L.Ps,Q.c,r.p0,A.AV,co,po.G,So.M,go.C,M.ot,F.t,G.Cv,Y.p9,$.LD,Q.c,J.Ng,U.JX,R.Tx,A.AV,x.FP]}),o})()},45029:(ce,k,s)=>{s.d(k,{w:()=>T});var p=s(94650),c=s(10266);let T=(()=>{class D{constructor(O,Z){this.matTooltip=O,this.elementRef=Z}ngAfterViewInit(){const O=this.elementRef.nativeElement;this.matTooltip.disabled=O.scrollWidth<=O.clientWidth}}return D.\u0275fac=function(O){return new(O||D)(p.Y36(c.gM),p.Y36(p.SBq))},D.\u0275dir=p.lG2({type:D,selectors:[["","ShowTooltipIfTruncated",""]]}),D})()}}]);
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.