1"use strict";(self.webpackChunkmy_carrier=self.webpackChunkmy_carrier||[]).push([[8911],{81125(E,y,o){o.d(y,{k:()=>_});var s=o(23214),t=o(29318);class _{constructor(){this.animationEnd=new s.bkB}ngOnInit(){this.elementClass=`${this.elementClass||""} ${document.body.className}`}static{this.\u0275fac=function(b){return new(b||_)}}static{this.\u0275cmp=s.VBU({type:_,selectors:[["itm-progress-bar"]],hostVars:2,hostBindings:function(b,D){2&b&&s.HbH(D.elementClass)},inputs:{bufferValue:"bufferValue",color:"color",mode:"mode",value:"value",elementClass:[0,"class","elementClass"]},outputs:{animationEnd:"animationEnd"},standalone:!1,decls:1,vars:4,consts:[[3,"animationEnd","mode","color","bufferValue","value"]],template:function(b,D){1&b&&(s.j41(0,"mat-progress-bar",0),s.bIt("animationEnd",function(G){return D.animationEnd.emit(G)}),s.k0s()),2&b&&s.Y8G("mode",D.mode)("color",D.color)("bufferValue",D.bufferValue)("value",D.value)},dependencies:[t.o],styles:["[_nghost-%COMP%] .mat-focused .mat-form-field-underline .mat-form-field-ripple {\n color: #007aff;\n background-color: #007aff;\n}\n.inverse-progress [_nghost-%COMP%] .mat-focused .mat-form-field-underline .mat-form-field-ripple {\n color: #007aff;\n background-color: #007aff;\n}\n[_nghost-%COMP%] .mat-progress-bar-fill::after {\n background-color: #007aff;\n}\n.inverse-progress [_nghost-%COMP%] .mat-progress-bar-fill::after {\n background-color: #007aff;\n}\n[_nghost-%COMP%] .mat-progress-bar-background {\n fill: rgba(0, 122, 255, 0.12);\n}\n.inverse-progress [_nghost-%COMP%] .mat-progress-bar-background {\n fill: #eaeced;\n}\n[_nghost-%COMP%] .mat-progress-bar-buffer {\n background-color: rgba(0, 122, 255, 0.12);\n}\n.inverse-progress [_nghost-%COMP%] .mat-progress-bar-buffer {\n background-color: #eaeced;\n}\n[_nghost-%COMP%] defs {\n display: none;\n}\n\n[_nghost-%COMP%] {\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n background: rgba(255, 255, 255, 0.5);\n z-index: 1;\n cursor: no-drop;\n}\n[_nghost-%COMP%] mat-progress-bar[_ngcontent-%COMP%] {\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n}\n.progress-pos-r[_nghost-%COMP%] {\n position: relative;\n display: block;\n height: 4px;\n}\n.without-bg[_nghost-%COMP%] {\n background: transparent;\n}\n.progress-bar-top[_nghost-%COMP%] {\n top: 0;\n bottom: initial;\n}\n.wide-line[_nghost-%COMP%] mat-progress-bar[_ngcontent-%COMP%] {\n height: 10px;\n}\n\n .progress-bar-fit {\n position: relative;\n max-width: fit-content;\n}\n .progress-bar-full {\n position: relative;\n}"]})}}},59562(E,y,o){o.d(y,{F:()=>L});var s=o(23214),t=o(16213),_=o(89417),T=o(84221),R=o(97997);const b=F=>({active:F});function D(F,g){if(1&F){const v=s.RV6();s.j41(0,"span",6),s.bIt("click",function(){s.eBV(v);const e=s.XpG();return s.Njj(e.prevPage())}),s.EFF(1,"Prev"),s.k0s()}}function P(F,g){if(1&F){const v=s.RV6();s.j41(0,"span",7),s.bIt("click",function(){const e=s.eBV(v).$implicit,k=s.XpG();return s.Njj(k.onPageNumberClick(e))}),s.EFF(1),s.k0s()}if(2&F){const v=g.$implicit,u=s.XpG();s.Y8G("ngClass",s.eq3(2,b,u.selectedPage==v)),s.R7$(),s.SpI(" ",v," ")}}function G(F,g){if(1&F){const v=s.RV6();s.j41(0,"span",8),s.bIt("click",function(){s.eBV(v);const e=s.XpG();return s.Njj(e.nextPage())}),s.EFF(1," Next "),s.k0s()}}class L{constructor(){this.changed=new s.bkB}ngOnInit(){}ngOnChanges(){this.configurePageNumbers(),this.configurePageSelectDropdown()}onPageNumberClick(g){this.selectedPage=g,this.updateShowedNumbers(),this.emitChanges()}prevPage(){this.selectedPage--,this.updateShowedNumbers(),this.emitChanges()}nextPage(){this.selectedPage++,this.updateShowedNumbers(),this.emitChanges()}dropdownValueChange(g){this.selectedPerPageCount=g,this.configurePageNumbers(),this.emitChanges()}resetPages(){this.selectedPage=1}configurePageNumbers(){this.totalPages=Math.ceil(this.totalRecords/this.selectedPerPageCount),this.selectedPage||(this.startWithPage?this.selectedPage=this.startWithPage:this.totalPages&&this.resetPages()),this.selectedPage>this.totalPages&&(this.resetPages(),this.emitChanges()),this.updateShowedNumbers()}updateShowedNumbers(){if(this.showedPageNumbers=[],this.selectedPage){for(this.selectedPage-2>0&&this.showedPageNumbers.push(this.selectedPage-2),this.selectedPage-1>0&&this.showedPageNumbers.push(this.selectedPage-1),this.showedPageNumbers.push(this.selectedPage);this.showedPageNumbers.length<5;){let g=this.showedPageNumbers[this.showedPageNumbers.length-1]+1;if(!(g<=this.totalPages))break;this.showedPageNumbers.push(g)}for(;this.showedPageNumbers.length<this.totalPages&&this.showedPageNumbers.length<5;
1){let g=this.showedPageNumbers[0]-1;if(!(g>0))break;this.showedPageNumbers.unshift(g)}}}configurePageSelectDropdown(){this.perPageCountData=[],this.perPageCount&&this.perPageCount.length&&this.perPageCount.forEach(g=>{this.perPageCountData.push({label:g.toString(),value:g})})}emitChanges(){this.changed.emit({take:this.selectedPerPageCount,page:this.selectedPage})}static{this.\u0275fac=function(v){return new(v||L)}}static{this.\u0275cmp=s.VBU({type:L,selectors:[["grid-footer"]],inputs:{totalRecords:"totalRecords",perPageCount:"perPageCount",selectedPerPageCount:"selectedPerPageCount",startWithPage:"startWithPage"},outputs:{changed:"changed"},standalone:!1,features:[s.OA$],decls:6,vars:5,consts:[[1,"pagination","d-f","ai-c","jc-end"],[1,"full-width-of-container","max-w-40","itm-pagination",3,"ngModelChange","onChange","options","ngModel"],[1,"pages","d-f","ai-c","m-l-15"],["class","prev",3,"click",4,"ngIf"],["class","page-number",3,"ngClass","click",4,"ngFor","ngForOf"],["class","next",3,"click",4,"ngIf"],[1,"prev",3,"click"],[1,"page-number",3,"click","ngClass"],[1,"next",3,"click"]],template:function(v,u){1&v&&(s.j41(0,"div",0)(1,"itm-dropdown",1),s.mxI("ngModelChange",function(k){return s.DH7(u.selectedPerPageCount,k)||(u.selectedPerPageCount=k),k}),s.bIt("onChange",function(k){return u.dropdownValueChange(k.value)}),s.k0s(),s.j41(2,"div",2),s.DNE(3,D,2,0,"span",3)(4,P,2,4,"span",4)(5,G,2,0,"span",5),s.k0s()()),2&v&&(s.R7$(),s.Y8G("options",u.perPageCountData),s.R50("ngModel",u.selectedPerPageCount),s.R7$(2),s.Y8G("ngIf",u.selectedPage>1),s.R7$(),s.Y8G("ngForOf",u.showedPageNumbers),s.R7$(),s.Y8G("ngIf",u.selectedPage<u.totalPages))},dependencies:[t.YU,t.Sq,t.bT,_.BC,_.vS,T.P,R.B],styles:["itm-dropdown[_ngcontent-%COMP%] {\n width: 40px;\n margin-right: 20px;\n min-width: 40px;\n}\nitm-dropdown[_ngcontent-%COMP%] .ui-dropdown-items-wrapper .ui-dropdown-item {\n padding: 0;\n text-align: center;\n}\nitm-dropdown[_ngcontent-%COMP%] .ui-dropdown-items-wrapper .ui-dropdown-item span {\n line-height: 30px;\n}"]})}}},4574(E,y,o){o.d(y,{R:()=>N});var s=o(31635),t=o(23214),_=o(49894),T=o(8623),R=o(31249),b=o(16213),D=o(89417),P=o(84221),G=o(87387),L=o(3527),F=o(1799);const g=(h,p)=>({"data-is-fill":h,"sort-field":p}),v=h=>({active:h});function u(h,p){if(1&h){const n=t.RV6();t.j41(0,"span",9),t.bIt("click",function(){t.eBV(n);const m=t.XpG(3);return t.Njj(m.triggerSortOrder())}),t.nrm(1,"i",10),t.k0s()}if(2&h){const n=t.XpG(3);t.R7$(),t.Y8G("ngClass",t.eq3(1,v,n.sortOrder&&n.currentSortField==n.columnName))}}function e(h,p){if(1&h){const n=t.RV6();t.j41(0,"div",6)(1,"itm-input",7),t.mxI("ngModelChange",function(m){t.eBV(n);const f=t.XpG(2);return t.DH7(f.modelProperty,m)||(f.modelProperty=m),t.Njj(m)}),t.bIt("clear",function(){t.eBV(n);const m=t.XpG(2);return t.Njj(m.clearTerm())})("keyupEnter",function(){t.eBV(n);const m=t.XpG(2);return t.Njj(m.search())})("search",function(){t.eBV(n);const m=t.XpG(2);return t.Njj(m.search())}),t.k0s(),t.DNE(2,u,2,3,"span",8),t.k0s()}if(2&h){const n=t.XpG(2);t.R7$(),t.HbH(n.inputClass),t.Y8G("placeholder",n.columnTitle),t.R50("ngModel",n.modelProperty),t.Y8G("showClearButton",!0)("showSearchButton",!0),t.R7$(),t.Y8G("ngIf",n.sortable)}}function k(h,p){if(1&h){const n=t.RV6();t.j41(0,"div",6)(1,"itm-simple-multi-select",11),t.bIt("onChange",function(m){t.eBV(n);const f=t.XpG(2);return t.Njj(f.complicatedValueChanged(m.value))}),t.mxI("ngModelChange",function(m){t.eBV(n);const f=t.XpG(2);return t.DH7(f.dropDownSelectedValue,m)||(f.dropDownSelectedValue=m),t.Njj(m)}),t.k0s()()}if(2&h){const n=t.XpG(2);t.R7$(),t.Y8G("options",n.options)("filter",!0)("filterPlaceHolder",n.columnTitle)("defaultLabel",n.columnTitle),t.R50("ngModel",n.dropDownSelectedValue),t.Y8G("tabindex",-1)}}function M(h,p){if(1&h){const n=t.RV6();t.j41(0,"div",6)(1,"itm-input",12,0),t.mxI("ngModelChange",function(m){t.eBV(n);const f=t.XpG(2);return t.DH7(f.modelProperty,m)||(f.modelProperty=m),t.Njj(m)}),t.bIt("ngModelChange",function(m){t.eBV(n);const f=t.XpG(2);return t.Njj(f.emitUpdateAutocomplete(m))})("clear",function(){t.eBV(n);const m=t.XpG(2);return t.Njj(m.complicatedValueChanged(null))})("search",function(m){t.eBV(n);
1const f=t.XpG(2);return t.Njj(f.complicatedValueChanged(m))})("keyupEnter",function(){t.eBV(n);const m=t.sdS(2),f=t.XpG(2);return t.Njj(f.complicatedValueChanged(m.value))})("onSelectionChange",function(m){t.eBV(n);const f=t.XpG(2);return t.Njj(f.complicatedValueChanged(m.source.value))}),t.k0s()()}if(2&h){const n=t.XpG(2);t.R7$(),t.Y8G("placeholder",n.columnTitle),t.R50("ngModel",n.modelProperty),t.Y8G("isAutocomplete",!0)("autoCompleteResults",n.autoCompleteResults)("showClearButton",!0)("showSearchButton",!0)}}function j(h,p){if(1&h&&(t.j41(0,"div",4),t.DNE(1,e,3,7,"div",5)(2,k,2,6,"div",5)(3,M,3,6,"div",5),t.k0s()),2&h){const n=t.XpG();t.Y8G("ngClass",t.l_i(4,g,n.modelProperty,n.sortable)),t.R7$(),t.Y8G("ngIf",n.filterType===n.gridHeaderColumnType.ordinary),t.R7$(),t.Y8G("ngIf",n.filterType===n.gridHeaderColumnType.multiSelect),t.R7$(),t.Y8G("ngIf",n.filterType===n.gridHeaderColumnType.autoComplete)}}function O(h,p){if(1&h&&(t.j41(0,"span",15),t.nrm(1,"i",10),t.k0s()),2&h){const n=t.XpG(2);t.R7$(),t.Y8G("ngClass",t.eq3(1,v,n.sortOrder&&n.currentSortField==n.columnName))}}function A(h,p){if(1&h){const n=t.RV6();t.j41(0,"span",13),t.bIt("click",function(){t.eBV(n);const m=t.XpG();return t.Njj(m.triggerSortOrder())}),t.EFF(1),t.DNE(2,O,2,3,"span",14),t.k0s()}if(2&h){const n=t.XpG();t.AVh("label",n.sortable),t.R7$(),t.SpI(" ",n.columnTitle," "),t.R7$(),t.Y8G("ngIf",n.sortable)}}let N=class B{constructor(p){this.sharedEventService=p,this.filterType=T.w.ordinary,this.changed=new t.bkB,this.modelPropertyChange=new t.bkB,this.autoCompleteUpdate=new t.bkB,this.gridHeaderColumnType=T.w}ngOnInit(){this.filterType!==this.gridHeaderColumnType.ordinary&&(this.sortable=!1),this.sharedEventService.searchClicked.subscribe(()=>{this.modelPropertyChange.emit(this.modelProperty)}),this.sharedEventService.getSearchField().pipe((0,_.s)(this)).subscribe(()=>this.modelProperty=null)}get inputClass(){return this.classValue?`itm-search-table ${this.classValue}`:"itm-search-table"}ngOnChanges(p){p.dropdownOptions&&this.options.unshift({label:this.columnTitle,value:null})}triggerSortOrder(){let p={term:null,sortOrder:null,sortField:null};this.currentSortField==this.columnName?this.sortOrder=!this.sortOrder:this.isNumberOrder?this.sortOrder=!0:this.sortOrder=!1,p.sortOrder=!!this.sortOrder,p.sortField=this.columnName,this.changed.emit(p)}search(){let p={sortOrder:null,sortField:null};this.currentSortField==this.columnName&&(p.sortOrder=this.sortOrder,p.sortField=this.columnName),this.sharedEventService.searchClicked.next(null),this.changed.emit(p)}complicatedValueChanged(p){const n={sortOrder:null,sortField:null};this.currentSortField===this.columnName&&(n.sortOrder=this.sortOrder,n.sortField=this.columnName),this.modelProperty=p,Array.isArray(this.modelProperty)&&!this.modelProperty.length&&(this.modelProperty=null),this.modelPropertyChange.emit(this.modelProperty),this.changed.emit(n)}clearTerm(){this.modelProperty=null,this.modelPropertyChange.next(this.modelProperty),this.search()}emitUpdateAutocomplete(p){const n={phrase:p,columnName:this.columnName};this.autoCompleteUpdate.emit(n)}ngOnDestroy(){}static{this.\u0275fac=function(n){return new(n||B)(t.rXU(R.x))}}static{this.\u0275cmp=t.VBU({type:B,selectors:[["grid-header-column"]],inputs:{columnName:"columnName",columnTitle:"columnTitle",containFilter:"containFilter",modelProperty:"modelProperty",filterType:"filterType",sortable:"sortable",sortOrder:"sortOrder",isNumberOrder:"isNumberOrder",currentSortField:"currentSortField",autoCompleteResults:"autoCompleteResults",classValue:"classValue",options:"options"},outputs:{changed:"changed",modelPropertyChange:"modelPropertyChange",autoCompleteUpdate:"autoCompleteUpdate"},standalone:!1,features:[t.OA$],decls:3,vars:2,consts:[["autoComplete",""],[1,"column","w-100"],["class","search-field",3,"ngClass",4,"ngIf"],["class","sort-field w-100",3,"label","click",4,"ngIf"],[1,"search-field",3,"ngClass"],["class","w-100",4,"ngIf"],[1,"w-100"],["type","text","floatLabel","never","nullDefaultValue","",3,"ngModelChange","clear","keyupEnter","search","placeholder","ngModel","showClearButton","showSearchButton"],["class","sorting-shevrons",3,"click",4,"ngIf"],[1,"sorting-shevrons",3,"click"],[1,"asc",3,"ngClass"],[1,"itm-select-table","left-c
1heckboxes-in-panel","show-filter","filter-select-icon",3,"onChange","ngModelChange","options","filter","filterPlaceHolder","defaultLabel","ngModel","tabindex"],["type","text","floatLabel","never",1,"itm-search-table",3,"ngModelChange","clear","search","keyupEnter","onSelectionChange","placeholder","ngModel","isAutocomplete","autoCompleteResults","showClearButton","showSearchButton"],[1,"sort-field","w-100",3,"click"],["class","sorting-shevrons",4,"ngIf"],[1,"sorting-shevrons"]],template:function(n,C){1&n&&(t.j41(0,"div",1),t.DNE(1,j,4,7,"div",2)(2,A,3,4,"span",3),t.k0s()),2&n&&(t.R7$(),t.Y8G("ngIf",C.containFilter),t.R7$(),t.Y8G("ngIf",!C.containFilter))},dependencies:[b.YU,b.bT,D.BC,D.vS,P.P,G.v,L.E,F.B],encapsulation:2})}};N=(0,s.Cg)([(0,_.d)()],N)},8623(E,y,o){var s,t;o.d(y,{w:()=>s}),(t=s||(s={}))[t.ordinary=0]="ordinary",t[t.dropDown=1]="dropDown",t[t.multiSelect=2]="multiSelect",t[t.autoComplete=3]="autoComplete"},38288(E,y,o){var s,_;o.d(y,{r:()=>t,z:()=>s}),(_=s||(s={}))[_.LTLServiceType=1]="LTLServiceType",_[_.VLTLServiceType=2]="VLTLServiceType",_[_.TLServiceType=3]="TLServiceType",_[_.LTLGFPServiceType=4]="LTLGFPServiceType";const t={1:"LTL",2:"VLTL",3:"TL",4:"GFP"}},68911(E,y,o){o.d(y,{DashboardPageModule:()=>V});var s=o(74703),t=o(25207),_=o(31635),T=o(89417),R=o(49894),b=o(10674),D=o(83362),P=o(38288),G=o(97586),L=o(39323),F=o(71741);class g{constructor(){this.gridFilter=new L.J,this.gridFilter.take=10,this.gridFilter.skip=null,this.gridFilter.sortField="carrierName",this.activeDateFilter=1,this.carrierName=null,this.startDate=null,this.endDate=null,this.serviceTypes=new v,this.serviceTypes.isLTL=!0,this.serviceTypes.isVLTL=!1,this.serviceTypes.isTL=!1}updateData(a){this.gridFilter=a.gridFilter,this.carrierName=a.carrierName,this.activeDateFilter=a.activeDateFilter,this.endDate=new Date(a.endDate),this.startDate=new Date(a.startDate),this.serviceTypes=a.serviceTypes}toJSON(){return{activeDateFilter:this.activeDateFilter,gridFilter:this.gridFilter,carrierName:this.carrierName,startDate:G(this.startDate).format(F.A.dateFormat),endDate:G(this.endDate).format(F.A.dateFormat),serviceTypes:this.serviceTypes}}}class v{}var u=o(52396),e=o(23214),k=o(79359),M=o(89311);class j{constructor(a){this.baseApiService=a}getPreferredCarriers(a){return this.getPreferredCarriersApiCall(a)}getAllCarriers(a){return this.getAllCarriersApiCall(a)}getPreferredCarriersApiCall(a){return this.baseApiService.post("/SystemDashboard/GetPreferredCarriers",a)}getAllCarriersApiCall(a){return this.baseApiService.post("/SystemDashboard/GetAllCarriers",a)}static{this.\u0275fac=function(i){return new(i||j)(e.KVO(M.vA))}}static{this.\u0275prov=e.jDH({token:j,factory:j.\u0275fac,providedIn:"root"})}}var O=o(16213),A=o(73566),N=o(25883),h=o(51547),p=o(81125),n=o(59562),C=o(4574);const m=()=>[10,25,50];function f(c,a){if(1&c&&(e.j41(0,"div",24)(1,"div",25),e.EFF(2),e.k0s(),e.j41(3,"div",26),e.EFF(4),e.k0s(),e.j41(5,"div",26),e.EFF(6),e.k0s(),e.j41(7,"div",26),e.EFF(8),e.k0s(),e.j41(9,"div",26),e.EFF(10),e.nI1(11,"currency"),e.k0s(),e.j41(12,"div",26),e.EFF(13),e.nI1(14,"percent"),e.k0s()()),2&c){const i=a.$implicit;e.R7$(2),e.SpI(" ",i.carrierName," "),e.R7$(2),e.SpI(" ",i.integratedCustomers," "),e.R7$(2),e.SpI(" ",i.activeCustomers," "),e.R7$(2),e.SpI(" ",i.shipments," "),e.R7$(2),e.SpI(" ",e.ii3(11,6,i.revenue,"USD",!0,"1.2-2")," "),e.R7$(3),e.SpI(" ",e.i5U(14,11,i.tracking,"1.1-1")," ")}}function H(c,a){if(1&c&&(e.j41(0,"div",22),e.DNE(1,f,15,14,"div",23),e.k0s()),2&c){const i=e.XpG();e.R7$(),e.Y8G("ngForOf",i.listData)}}function x(c,a){1&c&&(e.j41(0,"div",27)(1,"p"),e.EFF(2,"Nothing was found"),e.k0s()())}class S{constructor(){this.updateData=new e.bkB}gridFooterValueChanged(a){this.filterData.gridFilter.take=a.take,this.filterData.gridFilter.skip=null,this.filterData.gridFilter.page=a.page,this.updateData.emit()}gridHeaderValueChanged(a){a.sortField&&(this.filterData.gridFilter.sortField=a.sortField),null!=a.sortOrder&&(this.filterData.gridFilter.sortOrder=a.sortOrder),this.applyFilters()}applyFilters(){this.filterData.gridFilter.skip=0,this.filterData.gridFilter.page=1,this.gridFooter&&this.gridFooter.resetPages(),this.updateData.emit()}static{this.\u0275fac=function(i){return new(i||S)}}static{this.\u0275cmp=e.VBU({type:S,selectors:[["admin-dashboard-all-carriers"]],viewQuery:function(i,r){if(1&i&&e.GBs(n.F,5),2&i){let l;e.mGM(l=e.lsd())&&(r.gridFooter=l.first)}},inputs:{listData:"listData",totalRecords:"totalRecords",totalRevenue:"totalRevenue",totalShipments:"totalShipments",totalQuotes:"totalQuotes",customerCount:"customerCount",customerCountWithQuote:"customerCountWithQuote",filterData:"filterData"},outputs:{updateData:"updateData"},standalone:!1,decls:59,vars:42,consts:[[1,"db-card","db-card-total"],[1,"db-card-item"],[1,"db-card-title","w-100"],[1,"db-card-unit","db-total-shipments"],[1,"db-card-name"],[1,"db-card-info"],[1,"db-card-value"],[1,"db-card-unit","db-total-quotes"],[1,"db-card-unit","db-total-revenue"],[1,"db-card-unit","db-customer-count"],[1,"db-card-unit","db-customer-count-with-quote"],[1,"custom-table"],[1,"table-head","row","filter","grey-text","d-f"],["columnTitle","Carrier Name","columnName","carrierName",1,"cell","text-padding","w-20","d-f",3,"changed","modelPropertyChange","sortable","containFilter","currentSortField","
1sortOrder","modelProperty"],["columnTitle","Integrated Customer","columnName","integratedCustomers",1,"cell","w-20","d-f","ai-c","text-padding","bordered","centered",3,"changed","sortable","isNumberOrder","currentSortField","sortOrder"],["columnTitle","Active Customers","columnName","activeCustomers",1,"cell","w-20","d-f","ai-c","text-padding","bordered","centered",3,"changed","sortable","isNumberOrder","currentSortField","sortOrder"],["columnTitle","Shipments","columnName","shipments",1,"cell","w-20","d-f","ai-c","text-padding","bordered","centered",3,"changed","sortable","isNumberOrder","currentSortField","sortOrder"],["columnTitle","Revenue","columnName","revenue",1,"cell","w-20","d-f","ai-c","text-padding","centered",3,"changed","sortable","isNumberOrder","currentSortField","sortOrder"],["columnTitle","Tracking","columnName","tracking",1,"cell","w-20","d-f","ai-c","text-padding","centered",3,"changed","sortable","isNumberOrder","currentSortField","sortOrder"],["class","hovering",4,"ngIf"],["class","empty-search",4,"ngIf"],[3,"changed","totalRecords","perPageCount","selectedPerPageCount","startWithPage"],[1,"hovering"],["class","row d-f",4,"ngFor","ngForOf"],[1,"row","d-f"],[1,"cell","text-padding","w-20"],[1,"cell","w-20","text-center","no-padding"],[1,"empty-search"]],template:function(i,r){1&i&&(e.j41(0,"div",0)(1,"div",1)(2,"h3",2),e.EFF(3,"Totals"),e.k0s(),e.j41(4,"div",3)(5,"div",4)(6,"span"),e.EFF(7,"Shipments"),e.k0s()(),e.j41(8,"div",5)(9,"div",6)(10,"span"),e.EFF(11),e.k0s()()()(),e.j41(12,"div",7)(13,"div",4)(14,"span"),e.EFF(15,"Quotes"),e.k0s()(),e.j41(16,"div",5)(17,"div",6)(18,"span"),e.EFF(19),e.k0s()()()(),e.j41(20,"div",8)(21,"div",4)(22,"span"),e.EFF(23,"Revenue"),e.k0s()(),e.j41(24,"div",5)(25,"div",6)(26,"span"),e.EFF(27),e.nI1(28,"currency"),e.k0s()()()()(),e.j41(29,"div",1)(30,"h3",2),e.EFF(31,"Customers"),e.k0s(),e.j41(32,"div",9)(33,"div",4)(34,"span"),e.EFF(35,"Shipping"),e.k0s()(),e.j41(36,"div",5)(37,"div",6)(38,"span"),e.EFF(39),e.k0s()()()(),e.j41(40,"div",10)(41,"div",4)(42,"span"),e.EFF(43,"Quoting"),e.k0s()(),e.j41(44,"div",5)(45,"div",6)(46,"span"),e.EFF(47),e.k0s()()()()()(),e.j41(48,"div",11)(49,"div",12)(50,"grid-header-column",13),e.bIt("changed",function(d){return r.gridHeaderValueChanged(d)}),e.mxI("modelPropertyChange",function(d){return e.DH7(r.filterData.carrierName,d)||(r.filterData.carrierName=d),d}),e.k0s(),e.j41(51,"grid-header-column",14),e.bIt("changed",function(d){return r.gridHeaderValueChanged(d)}),e.k0s(),e.j41(52,"grid-header-column",15),e.bIt("changed",function(d){return r.gridHeaderValueChanged(d)}),e.k0s(),e.j41(53,"grid-header-column",16),e.bIt("changed",function(d){return r.gridHeaderValueChanged(d)}),e.k0s(),e.j41(54,"grid-header-column",17),e.bIt("changed",function(d){return r.gridHeaderValueChanged(d)}),e.k0s(),e.j41(55,"grid-header-column",18),e.bIt("changed",function(d){return r.gridHeaderValueChanged(d)}),e.k0s()(),e.DNE(56,H,2,1,"div",19)(57,x,3,0,"div",20),e.j41(58,"grid-footer",21),e.bIt("changed",function(d){return r.gridFooterValueChanged(d)}),e.k0s()()),2&i&&(e.R7$(11),e.JRh(r.totalShipments),e.R7$(8),e.JRh(r.totalQuotes),e.R7$(8),e.JRh(e.ii3(28,36,r.totalRevenue,"USD",!0,"1.2-2")),e.R7$(12),e.JRh(r.customerCount),e.R7$(8),e.JRh(r.customerCountWithQuote),e.R7$(3),e.Y8G("sortable",!0)("containFilter",!0)("currentSortField",r.filterData.gridFilter.sortField)("sortOrder",r.filterData.gridFilter.sortOrder),e.R50("modelProperty",r.filterData.carrierName),e.R7$(),e.Y8G("sortable",!0)("isNumberOrder",!0)("currentSortField",r.filterData.gridFilter.sortField)("sortOrder",r.filterData.gridFilter.sortOrder),e.R7$(),e.Y8G("sortable",!0)("isNumberOrder",!0)("currentSortField",r.filterData.gridFilter.sortField)("sortOrder",r.filterData.gridFilter.sortOrder),e.R7$(),e.Y8G("sortable",!0)("isNumberOrder",!0)("currentSortField",r.filterData.gridFilter.sortField)("sortOrder",r.filterData.gridFilter.sortOrder),e.R7$(),e.Y8G("sortable",!0)("isNumberOrder",!0)("currentSortField",r.filterData.gridFilter.sortField)("sortOrder",r.filterData.gridFilter.sortOrder),e.R7$(),e.Y8G("sortable",!0)("isNumberOrder",!0)("currentSortField",r.filterData.gridFilter.sortField)("sortOrder",r.filterData.gridFilter.sortOrder),e.R7$(),e.Y8G("ngIf",r.totalRecords),e.R7$(),e.Y8G("ngIf",!r.totalRecords),e.R7$(),e.Y8G("totalRecords",r.totalRecords)("perPageCount",e.lJ4(41,m))("selectedPerPageCount",r.filterData.gridFilter.take)("startWithPage",r.filterData.gridFilter.page))},dependencies:[O.Sq,O.bT,n.F,C.R,O.m1,O.oe],encapsulation:2})}}const U=()=>[10,25,50];function X(c,a){if(1&c){const i=e.RV6();e.j41(0,"a",20),e.bIt("click",function(){e.eBV(i);const l=e.XpG().$implicit,d=e.XpG(2);return e.Njj(d.preferredCarrieDetails(l.carrierName))}),e.nrm(1,"i",21),e.k0s()}}function W(c,a){if(1&c){const i=e.RV6();e.j41(0,"a",20),e.bIt("click",function(){e.eBV(i);const l=e.XpG().$implicit,d=e.XpG(2);return e.Njj(d.preferredCarrieDetails(l.carrierName))}),e.nrm(1,"i",22),e.k0s()}}function Q(c,a){1&c&&e.nrm(0,"div",23)}function K(c,a){if(1&c&&(e.j41(0,"div",14),e.nrm(1,"div",23),e.j41(2,"div",17),e.EFF(3),e.k0s(),e.nrm(4,"div",18),e.j41(5,"div",18),e.EFF(6),e.k0s(),e.j41(7,"div",18),e.EFF(8),e.k0s(),e.j41(9,"div",18),e.EFF(10),e.k0s(),e.j41(11,"div",18),e.EFF(12),e.k0s()()),2&c){const i=a.$implicit;e.R7$(3),e.SpI(" ",i.fullName," "),e.R7$(3),e.SpI(" ",i.invites," "),e.R7$(2),e.SpI(" ",i.activations," "),e.R7$(2),e.SpI(" ",i.indirectIntegrations," "),e.R7$(2),e.SpI(" ",i.directIntegrations," ")}}function z(c,a){if(1&c&&(e.j41(0,"div"),e.DNE(1,K,13,5,"div",24),e.k0s()),2&c){const i=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",i.preferredCarrierDetails)}}function J(c,a){if(1&c&&(e.j41(0,"div",13)(1,"div",14)(2,"div"),e.DNE(3,X,2,0,"a",15)(4,W,2,0,"a",15)(5,Q,1,0,"div",16),e.k0s(),e.j41(6,"div",17),e.EFF(7),e.k0s(),e.j41(8,"div",18),e.EFF(9),e.k0s(),e.j41(10,"div",18),e.EFF(11),e.k0s(),e.j41(12,"div",18),e.EFF(13),e.k0s(),e.j41(14,"div",18),e.EFF(15),e.k0s(),e.j41(16,"div",18),e.EFF(17),e.k0s()(),e.DNE(18,z,2,1,"div",19),e.k0s()),2&c){const i=a.$implicit;e.R7$(3),e.Y8G("ngIf",!i.isOpened&&i.preferredCarrierDetails.length>0),e.R7$(),e.Y8G("ngIf",i.isOpened&&i.preferredCarrierDetails.length>0),e.R7$(),e.Y8G("ngIf",0===i.preferredCarrierDetails.length),e.R7$(2),e.SpI(" ",i.carrierName," "),e.R7$(2),e.SpI(" ",i.activeUsers," "),e.R7$(2),e.SpI(" ",i.invites," "),e.R7$(2),e.SpI(" ",i.activations," "),e.R7$(2),e.SpI(" ",i.indirectIntegrations," "),e.R7$(2),e.SpI(" ",i.directIntegrations," "),e.R7$(),e.Y8G("ngIf",i.isOpened)}}function Z(c,a){if(1&c&&(e.j41(0,"div",11),e.DNE(1,J,19,10,"div",12),e.k0s()),2&c){const i=e.XpG();e.R7$(),e.Y8G("ngForOf",i.listData)}}function q(c,a){1&c&&(e.j41(0,"div",25)(1,"p"),e.EFF(2,"Nothing was found"),e.k0s()())}class I{constructor(){this.updateData=new e.bkB}gridFooterValueChanged(a){this.filterData.gridFilter.take=a.take,this.filterData.gridFilter.skip=null,this.filterData.gridFilter.page=a.page,this.updateData.emit()}gridHeaderValueChanged(a){a.sortField&&(this.filterData.gridFilter.sortField=a.sortField),null!=a.sortOrder&&(this.filterData.gridFilter.sortOrder=a.sortOrder),this.applyFilters()}applyFilters(){this.filterData.gridFilter.skip=0,this.filterData.gridFilter.page=1,this.gridFooter&&this.gridFooter.resetPages(),this.updateData.emit()}preferredCarrieDetails(a){this.listData.forEach(i=>
1{i.carrierName==a&&(i.isOpened=!i.isOpened)})}static{this.\u0275fac=function(i){return new(i||I)}}static{this.\u0275cmp=e.VBU({type:I,selectors:[["admin-dashboard-preferred-carriers"]],viewQuery:function(i,r){if(1&i&&e.GBs(n.F,5),2&i){let l;e.mGM(l=e.lsd())&&(r.gridFooter=l.first)}},inputs:{listData:"listData",totalRecords:"totalRecords",filterData:"filterData"},outputs:{updateData:"updateData"},standalone:!1,decls:11,vars:32,consts:[[1,"custom-table","m-t-20"],[1,"table-head","row","filter","grey-text","d-f"],["columnTitle","Carrier Name","columnName","carrierName",1,"cell","no-padding","w-25","d-f",3,"modelPropertyChange","changed","sortable","containFilter","currentSortField","sortOrder","modelProperty"],["columnTitle","Active Users","columnName","activeUsers",1,"cell","w-15","d-f","ai-c","bordered","text-padding","centered",3,"changed","sortable","isNumberOrder","currentSortField","sortOrder"],["columnTitle","Invites","columnName","invites",1,"cell","w-15","d-f","ai-c","bordered","text-padding","centered",3,"changed","sortable","isNumberOrder","currentSortField","sortOrder"],["columnTitle","Activations","columnName","activations",1,"cell","w-15","d-f","ai-c","bordered","text-padding","centered",3,"changed","sortable","isNumberOrder","currentSortField","sortOrder"],["columnTitle","Indirect Integrations","columnName","indirectIntegrations",1,"cell","w-15","d-f","ai-c","bordered","text-padding","centered",3,"changed","sortable","isNumberOrder","currentSortField","sortOrder"],["columnTitle","Direct Integrations","columnName","directIntegrations",1,"cell","w-15","d-f","ai-c","text-padding","centered",3,"changed","sortable","isNumberOrder","currentSortField","sortOrder"],["class","hovering",4,"ngIf"],["class","empty-search",4,"ngIf"],[3,"changed","totalRecords","perPageCount","selectedPerPageCount","startWithPage"],[1,"hovering"],["class","row",4,"ngFor","ngForOf"],[1,"row"],[1,"d-f"],["class","light-blue-text",3,"click",4,"ngIf"],["class","empty-icon",4,"ngIf"],[1,"cell","text-padding","w-25"],[1,"cell","w-15","text-center","no-padding"],[4,"ngIf"],[1,"light-blue-text",3,"click"],["aria-hidden","true",1,"tms-icon","tms-icon-plus"],[1,"tms-icon","tms-icon-hide"],[1,"empty-icon"],["class","d-f",4,"ngFor","ngForOf"],[1,"empty-search"]],template:function(i,r){1&i&&(e.j41(0,"div",0)(1,"div",1)(2,"grid-header-column",2),e.mxI("modelPropertyChange",function(d){return e.DH7(r.filterData.carrierName,d)||(r.filterData.carrierName=d),d}),e.bIt("changed",function(d){return r.gridHeaderValueChanged(d)}),e.k0s(),e.j41(3,"grid-header-column",3),e.bIt("changed",function(d){return r.gridHeaderValueChanged(d)}),e.k0s(),e.j41(4,"grid-header-column",4),e.bIt("changed",function(d){return r.gridHeaderValueChanged(d)}),e.k0s(),e.j41(5,"grid-header-column",5),e.bIt("changed",function(d){return r.gridHeaderValueChanged(d)}),e.k0s(),e.j41(6,"grid-header-column",6),e.bIt("changed",function(d){return r.gridHeaderValueChanged(d)}),e.k0s(),e.j41(7,"grid-header-column",7),e.bIt("changed",function(d){return r.gridHeaderValueChanged(d)}),e.k0s()(),e.DNE(8,Z,2,1,"div",8)(9,q,3,0,"div",9),e.j41(10,"grid-footer",10),e.bIt("changed",function(d){return r.gridFooterValueChanged(d)}),e.k0s()()),2&i&&(e.R7$(2),e.Y8G("sortable",!0)("containFilter",!0)("currentSortField",r.filterData.gridFilter.sortField)("sortOrder",r.filterData.gridFilter.sortOrder),e.R50("modelProperty",r.filterData.carrierName),e.R7$(),e.Y8G("sortable",!0)("isNumberOrder",!0)("currentSortField",r.filterData.gridFilter.sortField)("sortOrder",r.filterData.gridFilter.sortOrder),e.R7$(),e.Y8G("sortable",!0)("isNumberOrder",!0)("currentSortField",r.filterData.gridFilter.sortField)("sortOrder",r.filterData.gridFilter.sortOrder),e.R7$(),e.Y8G("sortable",!0)("isNumberOrder",!0)("currentSortField",r.filterData.gridFilter.sortField)("sortOrder",r.filterData.gridFilter.sortOrder),e.R7$(),e.Y8G("sortable",!0)("isNumberOrder",!0)("currentSortField",r.filterData.gridFilter.sortField)("sortOrder",r.filterData.gridFilter.sortOrder),e.R7$(),e.Y8G("sortable",!0)("isNumberOrder",!0)("currentSortField",r.filterData.gridFilter.sortField)("sortOrder",r.filterData.gridFilter.sortOrder),e.R7$(),e.Y8G("ngIf",r.totalRecords),e.R7$(),e.Y8G("ngIf",!r.totalRecords),e.R7$(),e.Y8G("totalRecords",r.totalRecords)("perPageCount",e.lJ4(31,U))("selectedPerPageCount",r.filterData.gridFilter.take)("startWithPage",r.filterData.gridFilter.page))},dependencies:[O.Sq,O.bT,n.F,C.R],encapsulation:2})}}function ee(c,a){if(1&c){const i=e.RV6();e.j41(0,"div",16)(1,"div",17)(2,"div",18)(3,"date-time-picker",19),e.bIt("changed",function(l){e.eBV(i);const d=e.XpG();return e.Njj(d.validateDate(l.date,"startDate"))}),e.k0s()(),e.j41(4,"div",18)(5,"date-time-picker",20),e.bIt("changed",function(l){e.eBV(i);const d=e.XpG();
1return e.Njj(d.validateDate(l.date,"endDate"))}),e.k0s()()(),e.j41(6,"div",21)(7,"itm-button",22),e.bIt("click",function(){e.eBV(i);const l=e.XpG();return e.Njj(l.applyDateFilters())}),e.k0s()()()}if(2&c){const i=e.XpG();e.R7$(),e.Y8G("formGroup",i.mainFormGroup),e.R7$(2),e.Y8G("dateModel",i.filterData.startDate)("formGroup",i.mainFormGroup)("formError",i.formErrors.startDate)("disabledDates",i.disabledDates),e.R7$(2),e.Y8G("dateModel",i.filterData.endDate)("formGroup",i.mainFormGroup)("formError",i.formErrors.endDate)("disabledDates",i.disabledDates),e.R7$(2),e.Y8G("loading",i.isReqestProccessing)}}function te(c,a){1&c&&e.nrm(0,"itm-progress-bar",23)}function re(c,a){if(1&c){const i=e.RV6();e.j41(0,"admin-dashboard-preferred-carriers",24),e.bIt("updateData",function(){e.eBV(i);const l=e.XpG();return e.Njj(l.getItems())}),e.k0s()}if(2&c){const i=e.XpG();e.Y8G("listData",i.data.sourceList)("totalRecords",i.data.totalCount)("filterData",i.filterData)}}function ie(c,a){if(1&c){const i=e.RV6();e.j41(0,"admin-dashboard-all-carriers",25),e.bIt("updateData",function(){e.eBV(i);const l=e.XpG();return e.Njj(l.getItems())}),e.k0s()}if(2&c){const i=e.XpG();e.Y8G("listData",i.allCarriersData.sourceList)("totalRecords",i.allCarriersData.totalCount)("totalRevenue",i.allCarriersData.totalRevenue)("totalShipments",i.allCarriersData.totalShipments)("totalQuotes",i.allCarriersData.totalQuotes)("customerCount",i.allCarriersData.customerCount)("customerCountWithQuote",i.allCarriersData.customerCountWithQuote)("filterData",i.filterData)}}let $=class Y extends D.z{constructor(a,i,r){super(),this.filtersService=a,this.adminDashboardService=i,this.changeDetector=r,this.filtersName="AdminDashboard",this.dateFilterTypes=u.v,this.disabledDates=[{from:new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()+1),to:null}],this.activeDateFilter=1,this.isAllCarriers=!1,this.serviceType=P.z,this.isLTL=!0,this.isVLTL=!1,this.isTL=!1}ngOnInit(){const a=this.filtersService.getFilters(this.filtersName);this.filterData=new g,a&&(this.filterData.updateData(a),this.activeDateFilter=a.activeDateFilter,this.setServiceTypes()),this.buildForm(),this.changeFilter(this.activeDateFilter)}setServiceTypes(){this.filterData.serviceTypes&&(this.filterData.serviceTypes.isLTL||this.filterData.serviceTypes.isVLTL||this.filterData.serviceTypes.isTL)||(this.filterData.serviceTypes=new v,this.filterData.serviceTypes.isLTL=!0,this.filterData.serviceTypes.isVLTL=!1,this.filterData.serviceTypes.isTL=!1),this.isLTL=this.filterData.serviceTypes.isLTL,this.isVLTL=this.filterData.serviceTypes.isVLTL,this.isTL=this.filterData.serviceTypes.isTL}buildForm(){this.mainFormGroup=new T.J3({startDate:new T.hs("",[T.k0.required]),endDate:new T.hs("",[T.k0.required])}),this.formErrors={startDate:"",endDate:""},this.validationMessages={startDate:{lessThanNeeded:b.Q.fieldShouldBeLessField("Start date","End date"),lessThanFuture:b.Q.fieldShouldBeLessField("Start date","Future date"),required:b.Q.Required("Start date")},endDate:{lessThanNeeded:b.Q.fieldShouldBeMoreField("End date","Start date"),lessThanFuture:b.Q.fieldShouldBeLessField("End date","Future date"),required:b.Q.Required("End date")}},this.activeDateFilter!==u.v.Custom&&this.mainFormGroup.disable()}changeCarriersList(a){this.isAllCarriers=a,this.data=null,this.filterData.carrierName=null,this.filterData.gridFilter.sortField=null,this.applyDateFilters()}getItems(){this.filtersService.saveFilters(this.filtersName,Object.assign(this.filterData,{activeDateFilter:this.activeDateFilter})),!this.isReqestProccessing&&(this.isReqestProccessing=!0,this.changeDetector.detectChanges(),this.isAllCarriers?this.adminDashboardService.getAllCarriers(this.filterData).pipe((0,R.s)(this)).subscribe(a=>{a&&(this.allCarriersData=a),this.isReqestProccessing=!1,this.changeDetector.detectChanges()},()=>{this.isReqestProccessing=!1,this.changeDetector.detectChanges()}):this.adminDashboardService.getPreferredCarriers(this.filterData).pipe((0,R.s)(this)).subscribe(a=>{a&&(this.data=a),this.isReqestProccessing=!1,this.changeDetector.detectChanges()},()=>{this.isReqestProccessing=!1,this.changeDetector.detectChanges()}))}isActiveFilter(a){return this.activeDateFilter===a}isActiveServiceFilter(a){switch(a){case P.z.LTLServiceType:return this.isLTL;case P.z.VLTLServiceType:return this.isVLTL;case P.z.TLServiceType:return this.isTL}}changeFilter(a){this.activeDateFilter=a;const i=new Date;switch(a){case u.v.ThirtyDays:this.filterData.endDate=new Date,this.filterData.startDate=new Date,this.filterData.startDate.setDate(i.getDate()-30),this.mainFormGroup.disable(),this.applyFilters();break;case u.v.CurrentMonth:this.filterData.endDate=new Date,this.filterData.startDate=new Date,this.filterData.startDate.setDate(1),this.mainFormGroup.disable(),this.applyFilters();break;case u.v.PriorMonth:this.filterData.startDate=new Date(i.getFullYear(),i.getMonth()-1,1),this.filterData.endDate=new Date(i.getFullYear(),i.getMonth(),0),this.mainFormGroup.disable(),this.applyFilters();break;case u.v.YearToDate:this.filterData.endDate=new Date,this.filterData.startDate=new Date,this.filterData.startDate.setMonth(0),this.filterData.startDate.setDate(1),this.mainFormGroup.disable(),this.applyFilters();break;case u.v.Custom:this.filterData.activeDateFilter===u.v.Custom?(this.mainFormGroup.controls.startDate.setValue(this.filterData.startDate),this.mainFormGroup.controls.endDate.setValue(this.filterData.endDate),this.mainFormGroup.enable(),this.applyFilters()):(this.filterData.endDate=null,this.filterData.startDate=null,this.mainFormGroup.controls.endDate.setValue(null),this.mainFormGroup.controls.startDate.setValue(null),this.mainFormGroup.enable(),this.filtersService.saveFilters(this.filtersName,Object.assign(this.filterData,{activeDateFilter:this.activeDateFilter})));break;case u.v.CurrentDay:this.filterData.startDate=new Date,this.filterData.endDate=new Date,this.mainFormGroup.disable(),this.applyFilters()}}changeServiceFilter(a){switch(a){case P.z.LTLServiceType:this.isLTL=!this.isLTL;break;case P.z.VLTLServiceType:this.isVLTL=!this.isVLTL;break;case P.z.TLServiceType:this.isTL=!this.isTL}0==this.isLTL&&0==this.isVLTL&&0==this.isTL&&(this.isLTL=!0),this.data=null,this.allCarriersData=null,this.filterData.carrierName=null,this.filterData.gridFilter.sortField=null,this.filterData.serviceTypes.isLTL=this.isLTL,this.filterData.serviceTypes.isVLTL=this.isVLTL,this.filterData.serviceTypes.isTL=this.isTL,this.applyFilters()}validateDate(a,i){this.filterData[i]=a,this.filterData.startDate&&this.filterData.endDate&&(this.filterData.startDate>this.filterData.endDate?(this.mainFormGroup.controls.endDate.setErrors({lessThanNeeded:!0}),this.mainFormGroup.controls.endDate.markAsDirty(),this.mainFormGroup.controls.endDate.markAsTouched()):this.mainFormGroup.controls.endDate.setErrors(null)),this.collectErrorsForFormControl(this.mainFormGroup,this.formErrors)}applyDateFilters(){if(this.mainFormGroup.enabled&&this.mainFormGroup.invalid)return this.markFormElementsAsDirty(this.mainFormGroup,this.formErrors),void this.collectErrorsForFormControl(this.mainFormGroup,this.formErrors);this.applyFilters()}applyFilters(){this.filterData.gridFilter.page=1,this.filtersService.saveFilters(this.filtersName,Object.assign(this.filterData,{activeDateFilter:this.activeDateFilter})),this.getItems()}static{this.\u0275fac=function(i){return new(i||Y)(e.rXU(k.d),e.rXU(j),e.rXU(e.gRc))}}static{this.\u0275cmp=e.VBU({type:Y,selectors:[["admin-dashboard"]],standalone:!1,features:[e.Vt3],decls:42,vars:23,consts:[[1,"admin-dashboard-page","body-page"],[1,"row","top-row","d-f","ai-c","progress-bar-fit"],[1,"top-row","d-f","ai-c","m-r-20"],[1,"right-spacing","p-t-16","p-b-16"],[1,"underlined-toggle",3,"change","checked"],["slot","left-side"],["slot","right-side"],[1,"group-filter","right-spacing","p-t-16","p-b-16"],[1,"group-item","group-item-auto","first-item","active",3,"click"],[1,"group-item","group-item-auto",3,"click"],[1,"group-item","group-item-auto","last-item",3,"click"],[1,"group-filter","p-t-16","p-b-16"],["class","custom-date-section d-f ai-c jc-sb",4,"ngIf"],["mode","indeterminate",4,"ngIf"],[3,"listData","totalRecords","filterData","updateData",4,"ngIf"],[3,"listData","totalRecords","totalRevenue","totalShipments","totalQuotes","customerCount","customerCountWithQuote","filterData","updateData",4,"ngIf"],[1,"custom-date-section","d-f","ai-c","jc-sb"],[1,"d-f",3,"formGroup"],[1,"m-r-20","min-w-160"],["fieldControlName","startDate","mode","date","placeholder","Start",3,"changed","dateModel","formGroup","formError","disabledDates"],["fieldControlName","endDate","mode","date","placeholder","End",3,"changed","dateModel","formGroup","formError","disabledDates"],[1,"d-f","jc-end"],["text","Apply",1,"btn-secondary","min-w-120",3,"click","loading"],["mode","indeterminate"],[3,"updateData","listData","totalRecords","filterData"],[3,"updateData","listData","totalRecords","totalRevenue","totalShipments","totalQuotes","customerCount","customerCountWithQuote","filterData"]],template:function(i,r){1&i&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"itm-slide-toggle",4),e.bIt("change",function(d){return r.changeCarriersList(d.checked)}),e.j41(5,"span",5),e.EFF(6,"Partner Carriers"),e.k0s(),e.j41(7,"span",6),e.EFF(8,"All Carriers"),e.k0s()()(),e.j41(9,"div",7)(10,"div",8),e.bIt("click",function(){return r.changeServiceFilter(r.serviceType.LTLServiceType)}),e.j41(11,"label"),e.EFF(12,"LTL"),e.k0s()(),e.j41(13,"div",9),e.bIt("click",function(){return r.changeServiceFilter(r.serviceType.VLTLServiceType)}),e.j41(14,"label"),e.EFF(15,"VLTL"),e.k0s()(),e.j41(16,"div",10),e.bIt("click",function(){return r.changeServiceFilter(r.serviceType.TLServiceType)}),e.j41(17,"label"),e.EFF(18,"TL"),e.k0s()()(),e.j41(19,"div",11)(20,"div",8),e.bIt("click",function(){return r.changeFilter(r.dateFilterTypes.CurrentDay)}),e.j41(21,"label"),e.EFF(22,"Current Day"),e.k0s()(),e.j41(23,"div",9),e.bIt("click",function(){return r.changeFilter(r.dateFilterTypes.ThirtyDays)}),e.j41(24,"label"),e.EFF(25,"30 Days"),e.k0s()(),e.j41(26,"div",9),e.bIt("click",function(){return r.changeFilter(r.dateFilterTypes.CurrentMonth)}),e.j41(27,"label"),e.EFF(28,"Current Month"),e.k0s()(),e.j41(29,"div",9),e.bIt("click",function(){return r.changeFilter(r.dateFilterTypes.PriorMonth)}
1),e.j41(30,"label"),e.EFF(31,"Prior Month"),e.k0s()(),e.j41(32,"div",9),e.bIt("click",function(){return r.changeFilter(r.dateFilterTypes.YearToDate)}),e.j41(33,"label"),e.EFF(34,"Year To Date"),e.k0s()(),e.j41(35,"div",10),e.bIt("click",function(){return r.changeFilter(r.dateFilterTypes.Custom)}),e.j41(36,"label"),e.EFF(37,"Custom"),e.k0s()()()(),e.DNE(38,ee,8,10,"div",12)(39,te,1,0,"itm-progress-bar",13),e.k0s(),e.DNE(40,re,1,3,"admin-dashboard-preferred-carriers",14)(41,ie,1,8,"admin-dashboard-all-carriers",15),e.k0s()),2&i&&(e.R7$(4),e.Y8G("checked",r.isAllCarriers),e.R7$(6),e.AVh("active",r.isActiveServiceFilter(r.serviceType.LTLServiceType)),e.R7$(3),e.AVh("active",r.isActiveServiceFilter(r.serviceType.VLTLServiceType)),e.R7$(3),e.AVh("active",r.isActiveServiceFilter(r.serviceType.TLServiceType)),e.R7$(4),e.AVh("active",r.isActiveFilter(r.dateFilterTypes.CurrentDay)),e.R7$(3),e.AVh("active",r.isActiveFilter(r.dateFilterTypes.ThirtyDays)),e.R7$(3),e.AVh("active",r.isActiveFilter(r.dateFilterTypes.CurrentMonth)),e.R7$(3),e.AVh("active",r.isActiveFilter(r.dateFilterTypes.PriorMonth)),e.R7$(3),e.AVh("active",r.isActiveFilter(r.dateFilterTypes.YearToDate)),e.R7$(3),e.AVh("active",r.isActiveFilter(r.dateFilterTypes.Custom)),e.R7$(3),e.Y8G("ngIf",r.isActiveFilter(r.dateFilterTypes.Custom)),e.R7$(),e.Y8G("ngIf",r.isReqestProccessing),e.R7$(),e.Y8G("ngIf",!r.isAllCarriers&&r.data),e.R7$(),e.Y8G("ngIf",r.isAllCarriers&&r.allCarriersData))},dependencies:[O.bT,T.cb,T.j4,A.P,N.q,h.$,p.k,S,I],styles:[".admin-dashboard-page {\n padding: 20px;\n}\n.admin-dashboard-page .progress-bar-wrapper {\n position: absolute;\n left: 0;\n width: 100%;\n max-width: 1107px;\n z-index: 1;\n top: 0;\n bottom: -10px;\n height: auto;\n display: flex;\n align-items: flex-end;\n background: rgba(255, 255, 255, 0.5);\n cursor: no-drop;\n}\n@media screen and (max-width: 1195px) {\n .admin-dashboard-page .progress-bar-wrapper {\n max-width: 625px;\n }\n}\n.admin-dashboard-page .cell.centered {\n text-align: center;\n padding-left: 15px !important;\n}\nadmin-insurance-table .admin-dashboard-page .cell.centered {\n padding-left: 0 !important;\n}\n.admin-dashboard-page .cell.centered .sort-field.label {\n padding-left: 20px;\n padding-right: 20px;\n}\n@media (max-width: 1200px) {\n .admin-dashboard-page .cell.centered .sort-field.label {\n padding-left: 10px;\n }\n}\nadmin-insurance-table .admin-dashboard-page .cell.centered .sort-field.label {\n padding-left: 0;\n}\n.admin-dashboard-page admin-dashboard-all-carriers .cell.centered {\n padding-left: 0 !important;\n}\n.admin-dashboard-page .empty-icon {\n min-width: 20px;\n}\n.admin-dashboard-page .totals-box > h3,\n.admin-dashboard-page .customers-box > h3 {\n font-size: 1.3125em;\n}\n.admin-dashboard-page .top-row {\n position: relative;\n}\n.admin-dashboard-page.admin-insurance-page .custom-table .table-head .sort-field .sorting-shevrons {\n top: 50%;\n transform: translateY(-50%);\n height: 22px;\n}\n.admin-dashboard-page.admin-insurance-page .custom-table .table-head .sort-field.search-field .sorting-shevrons {\n top: 18px;\n}\n@media screen and (min-width: 1780px) {\n .admin-dashboard-page .top-common-block .card-unit {\n width: 33%;\n }\n}\n@media screen and (max-width: 1780px) and (min-width: 1025px) {\n .admin-dashboard-page .top-common-block {\n margin-bottom: 30px;\n }\n .admin-dashboard-page .top-common-block .totals-box > .d-f,\n .admin-dashboard-page .top-common-block .customers-box > .d-f {\n flex-wrap: wrap;\n }\n .admin-dashboard-page .top-common-block .card-unit {\n width: 50%;\n }\n}\n@media screen and (max-width: 1800px) {\n .admin-dashboard-page .top-row {\n flex-wrap: wrap;\n }\n .admin-dashboard-page .top-row .custom-date-section .timepicker .body {\n left: 0;\n right: auto;\n }\n}\n@media screen and (max-width: 1500px) {\n .admin-dashboard-page .custom-table .table-head .sort-field .sorting-shevrons {\n top: 50%;\n transform: translateY(-50%);\n height: 22px;\n }\n .admin-dashboard-page .custom-table .table-head .sort-field.search-field .sorting-shevrons {\n top: 18px;\n }\n}\n@media screen and (max-width: 1024px) {\n .admin-dashboard-page .top-common-block {\n margin-bottom: 30px;\n }\n .admin-dashboard-page .top-common-block .totals-box > .d-f,\n .admin-dashboard-page .top-common-block .customers-box > .d-f {\n flex-wrap: wrap;\n }\n .admin-dashboard-page .top-common-block .totals-box .card-unit,\n .admin-dashboard-page .top-common-block .customers-box .card-unit {\n width: 100%;\n }\n .admin-dashboard-page .top-common-block .totals-box .right-spacing,\n .admin-dashboard-page .top-common-block .customers-box .right-spacing {\n padding-right: 0;\n }\n .admin-dashboard-page .top-common-block .totals-box {\n padding-right: 20px;\n }\n .admin-dashboard-page .top-common-block .card-unit {\n width: 50%;\n }\n}"],encapsulation:2})}};$=(0,_.Cg)([(0,R.d)()],$);const ae=[{path:"",component:$,data:{title:"Dashboard"}}];class w{static{this.\u0275fac=function(i){return new(i||w)}}static{this.\u0275mod=e.$C({type:w})}static{this.\u0275inj=e.G2t({imports:[t.iI.forChild(ae),t.iI]})}}class V{static{this.\u0275fac=function(i){return new(i||V)}}static{this.\u0275mod=e.$C({type:V})}static{this.\u0275inj=e.G2t({imports:[s.G,w]})}}}}]);
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.