1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[2835,1149,1536],{1149:(_,p,o)=>{o.d(p,{c:()=>s});var s=(()=>{return(l=s||(s={}))[l.Pending=0]="Pending",l[l.Accepted=1]="Accepted",l[l.Rejected=-1]="Rejected",s;var l})()},9633:(_,p,o)=>{o.r(p),o.d(p,{SoloTruckerDashboardPageModule:()=>q});var s=o(6895),l=o(433),g=o(1082),h=o(4979),f=o(5861),m=o(7579),x=o(2722),P=o(1722),b=o(2155),d=o(2346),t=o(8256),C=o(6587),M=o(6041),O=o(8267),v=o(1202),T=o(4761),k=o(5329);function Z(e,i){if(1&e&&t._UZ(0,"img",31),2&e){const n=t.oxw(2);t.Q6J("src",n.userDoc.profilePhotoUrl,t.LSH)}}function I(e,i){if(1&e&&(t.TgZ(0,"div",32),t._uU(1),t.qZA()),2&e){const n=t.oxw(2);t.xp6(1),t.AsE(" ",null==n.userDoc||null==n.userDoc.name?null:n.userDoc.name.charAt(0),"",null==n.userDoc||null==n.userDoc.surname?null:n.userDoc.surname.charAt(0)," ")}}function j(e,i){if(1&e&&t._UZ(0,"app-fleet-invitations",33),2&e){const n=t.oxw(2);t.Q6J("userDocId",n.userDoc.docId)}}function w(e,i){if(1&e&&t._UZ(0,"app-operator-invitations",33),2&e){const n=t.oxw(2);t.Q6J("userDocId",n.userDoc.docId)}}function D(e,i){if(1&e&&(t.TgZ(0,"span",38),t._uU(1),t.qZA()),2&e){const n=t.oxw().$implicit;t.xp6(1),t.Oqu(n.count)}}function y(e,i){if(1&e){const n=t.EpF();t.TgZ(0,"div",34),t.NdJ("click",function(){const r=t.CHM(n).index,u=t.oxw(2);return t.KtG(u.selectProjectBar(r))}),t.YNc(1,D,2,1,"span",35),t._UZ(2,"div",36),t.TgZ(3,"span",37),t._uU(4),t.qZA()()}if(2&e){const n=i.$implicit,c=i.index,a=t.oxw(2);t.ekj("selected",a.selectedProjectIdx===c),t.xp6(1),t.Q6J("ngIf",a.selectedProjectIdx===c),t.xp6(1),t.Udp("height",n.heightPct,"%"),t.xp6(2),t.Oqu(n.label)}}function A(e,i){if(1&e&&(t.TgZ(0,"div",39),t._uU(1),t.qZA()),2&e){const n=t.oxw(2);t.xp6(1),t.hij(" vs ",null==n.projectBuckets[n.projectBuckets.length-2]?null:n.projectBuckets[n.projectBuckets.length-2].label," ")}}function S(e,i){if(1&e&&(t.TgZ(0,"span",38),t._uU(1),t.qZA()),2&e){const n=t.oxw().$implicit;t.xp6(1),t.Oqu(n.count)}}function U(e,i){if(1&e){const n=t.EpF();t.TgZ(0,"div",34),t.NdJ("click",function(){const r=t.CHM(n).index,u=t.oxw(2);return t.KtG(u.selectLoadBar(r))}),t.YNc(1,S,2,1,"span",35),t._UZ(2,"div",40),t.TgZ(3,"span",37),t._uU(4),t.qZA()()}if(2&e){const n=i.$implicit,c=i.index,a=t.oxw(2);t.ekj("selected",a.selectedLoadIdx===c),t.xp6(1),t.Q6J("ngIf",a.selectedLoadIdx===c),t.xp6(1),t.Udp("height",n.heightPct,"%"),t.xp6(2),t.Oqu(n.label)}}function B(e,i){if(1&e&&(t.TgZ(0,"div",39),t._uU(1),t.qZA()),2&e){const n=t.oxw(2);t.xp6(1),t.hij(" vs ",null==n.loadBuckets[n.loadBuckets.length-2]?null:n.loadBuckets[n.loadBuckets.length-2].label," ")}}function J(e,i){if(1&e){const n=t.EpF();t.TgZ(0,"ion-grid",3)(1,"div",4)(2,"div",5)(3,"div",6)(4,"ion-avatar"),t.YNc(5,Z,1,1,"img",7),t.YNc(6,I,2,2,"div",8),t.qZA(),t.TgZ(7,"div",9)(8,"b"),t._uU(9),t.qZA(),t.TgZ(10,"div"),t._uU(11),t.qZA()(),t._UZ(12,"app-subscription-status"),t.qZA()(),t.TgZ(13,"div",10)(14,"div",9)(15,"b"),t._uU(16),t.qZA(),t.TgZ(17,"div"),t._uU(18),t.qZA()()(),t.YNc(19,j,1,1,"app-fleet-invitations",11),t.YNc(20,w,1,1,"app-operator-invitations",11),t.TgZ(21,"div",12)(22,"ion-card",13)(23,"div",14)(24,"div",15)(25,"div",16),t._UZ(26,"ion-icon",17),t.qZA(),t.TgZ(27,"span"),t._uU(28,"Total Projects"),t.qZA()(),t._UZ(29,"ion-icon",18),t.qZA(),t.TgZ(30,"div",19)(31,"div",20)(32,"div",21),t.YNc(33,y,5,6,"div",22),t.qZA()(),t.TgZ(34,"div",23)(35,"div",24),t._uU(36),t.qZA(),t.TgZ(37,"div",25),t._UZ(38,"ion-icon",26),t._uU(39),t.ALo(40,"number"),t.TgZ(41,"ion-icon",27),t.NdJ("click",function(a){t.CHM(n);const r=t.oxw();return t.KtG(r.toggleProjectInfo(a))}),t.qZA()(),t.YNc(42,A,2,1,"div",28),t.qZA()()(),t.TgZ(43,"ion-card",13)(44,"div",14)(45,"div",15)(46,"div",29),t._UZ(47,"ion-icon",30),t.qZA(),t.TgZ(48,"span"),t._uU(49,"Total Loads"),t.qZA()(),t._UZ(50,"ion-icon",18),t.qZA(),t.TgZ(51,"div",19)(52,"div",20)(53,"div",21),t.YNc(54,U,5,6,"div",22),t.qZA()(),t.TgZ(55,"div",23)(56,"div",24),t._uU(57),t.qZA(),t.TgZ(58,"div",25),t._UZ(59,"ion-icon",26),t._uU(60),t.ALo(61,"number"),t.TgZ(62,"ion-icon",27),t.NdJ("click",function(a){t.CHM(n);const r=t.oxw();return t.KtG(r.toggleLoadInfo(a))}),t.qZA()(),t.YNc(63,B,2,1,"div",28),t.qZA()()()()()()}if(2&e){const n=t.oxw();t.Q6J("fixed",!0),t.xp6(5),t.Q6J("ngIf",null==n.userDoc?null:n.userDoc.profilePhotoUrl),t.xp6(1),t.Q6J("ngIf",!(null!=n.userDoc&&n.userDoc.profilePhotoUrl)),t.xp6(3),t.Oqu(n.entityDoc.pocFullName),t.xp6(2),t.Oqu(n.entityDoc.companyName),t.xp6(5),t.hij("Truck Number: ",n.entityDoc.callNumber,""),t.xp6(2),t.hij("License Plate: ",n.entityDoc.licensePlate,""),t.xp6(1),t.Q6J("ngIf",null==n.userDoc?null:n.userDoc.docId),t.xp6(1),t.Q6J("ngIf",null==n.userDoc?null:n.userDoc.docId),t.xp6(13),t.Q6J("ngForOf",n.projectBuckets),t.xp6(3),t.Oqu(n.projectTotal),t.xp6(1),t.ekj("negative",n.projectChangePct<0),t.xp6(1),t.Q6J("name",n.projectChangePct>=0?"arrow-up-outline":"arrow-down-outline"),t.xp6(1),t.hij(" ",t.xi3(40,23,n.projectChangePct<0?-n.projectChangePct:n.projectChangePct,"1.2-2"),"% "),t.xp6(3),t.Q6J("ngIf",n.showProjectInfo),t.xp6(12),t.Q6J("ngForOf",n.loadBuckets),t.xp6(3),t.Oqu(n.loadTotal),t.xp6(1),t.ekj("negative",n.loadChangePct<0),t.xp6(1),t.Q6J("name",n.loadChangePct>=0?"arrow-up-outline":"arrow-down-outline"),t.xp6(1),t.hij(" ",t.xi3(61,26,n.loadChangePct<0?-n.loadChangePct:n.loadChangePct,"1.2-2"),"% "),t.xp6(3),t.Q6J("ngIf",n.showLoadInfo)}}const z=[{path:"",component:(()=>{class e{constructor(n,c,a){this.sharedService=n,this.modalController=c,this.projectService=a,this.projectBuckets=[],this.loadBuckets=[],this.projectChangePct=0,this.loadChangePct=0,this.projectTotal=0,this.loadTotal=0,this.selectedProjectIdx=null,this.selectedLoadIdx=null,this.showProjectInfo=!1,this.showLoadInfo=!1}selectProjectBar(n){this.selectedProjectIdx=this.selectedProjectIdx===n?null:n}selectLoadBar(n){this.selectedLoadIdx=this.selectedLoadIdx===n?null:n}toggleProjectInfo(n){n.stopPropagation(),this.showProjectInfo=!this.showProjectInfo}toggleLoadInfo(n){n.stopPropagation(),this.showLoadInfo=!this.showLoadInfo}ngOnInit(){}ionViewWillEnter(){this.destroySubs=new m.x,this.sharedService.currentEntity$.pipe((0,x.R)(this.destroySubs)).subscribe({next:n=>{this.entityDoc=n,n&&this.loadChartData()}}),this.sharedService.currentUser$.pipe((0,x.R)(this.destroySubs)).subscribe({next:n=>{this.userDoc=n}})}loadChartData(){var n=this;return(0,f.Z)(function*(){n.projectBuckets=(0,d.Jr)(12),n.loadBuckets=(0,d.Jr)(12);const a=yield n.projectService.getDashboardCache(n.entityDoc.docId);
1a&&(n.projectBuckets.forEach(r=>r.count=a.projectsByMonth?.[r.key]||0),n.loadBuckets.forEach(r=>r.count=a.loadsByMonth?.[r.key]||0)),(0,d.FW)(n.projectBuckets),(0,d.FW)(n.loadBuckets),n.projectTotal=(0,d.Az)(n.projectBuckets),n.loadTotal=(0,d.Az)(n.loadBuckets),n.projectChangePct=(0,d._T)(n.projectBuckets),n.loadChangePct=(0,d._T)(n.loadBuckets)})()}goToTrucks(){var n=this;return(0,f.Z)(function*(){yield(yield n.modalController.create({component:P.X,componentProps:{rootPage:b.Y}})).present()})()}ionViewWillLeave(){this.destroySubs&&(this.destroySubs.next(!0),this.destroySubs.complete())}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(C.V),t.Y36(g.IN),t.Y36(M.n))},e.\u0275cmp=t.Xpm({type:e,selectors:[["app-solo-trucker-dashboard"]],decls:3,vars:2,consts:[["fullscreen","true"],[3,"pageTitle"],[3,"fixed",4,"ngIf"],[3,"fixed"],[1,"ion-padding","dashboard-content"],[1,"userInfo"],[1,"user-info-row"],["alt","Profile photo",3,"src",4,"ngIf"],["class","initials-avatar",4,"ngIf"],[1,"user-info-text"],[1,"userInfo2"],[3,"userDocId",4,"ngIf"],[1,"stats-section"],[1,"stats-card"],[1,"stats-card-header"],[1,"stats-card-title"],[1,"icon-wrapper"],["name","logo-buffer","color","success"],["name","ellipsis-vertical-outline",1,"menu-icon"],[1,"stats-card-content"],[1,"mini-bar-chart"],[1,"mini-bar-chart-bars"],["class","mini-bar-wrap",3,"selected","click",4,"ngFor","ngForOf"],[1,"stats-card-numbers"],[1,"stats-main-number"],[1,"stats-change"],[3,"name"],["name","information-circle-outline",1,"info-icon",3,"click"],["class","info-tooltip",4,"ngIf"],[1,"icon-wrapper","icon-wrapper-blue"],["name","bar-chart","color","primary"],["alt","Profile photo",3,"src"],[1,"initials-avatar"],[3,"userDocId"],[1,"mini-bar-wrap",3,"click"],["class","bar-count",4,"ngIf"],[1,"mini-bar","mini-bar-green"],[1,"mini-bar-label"],[1,"bar-count"],[1,"info-tooltip"],[1,"mini-bar","mini-bar-blue"]],template:function(n,c){1&n&&(t.TgZ(0,"ion-content",0),t._UZ(1,"app-common-header",1),t.YNc(2,J,64,29,"ion-grid",2),t.qZA()),2&n&&(t.xp6(1),t.Q6J("pageTitle","Dashboard"),t.xp6(1),t.Q6J("ngIf",c.entityDoc))},dependencies:[s.sg,s.O5,g.BJ,g.PM,g.W2,g.jY,g.gu,O.M,v.R,T.J,k.e,s.JJ],styles:["ion-badge[_ngcontent-%COMP%]{--padding-end: 20px;--padding-start: 20px}ion-card-header[_ngcontent-%COMP%]{--padding-start: none }.dashboard-content[_ngcontent-%COMP%]{max-width:500px;margin:0 auto;display:flex;flex-direction:column;min-height:calc(100vh - 144px)}.stats-section[_ngcontent-%COMP%]{margin-top:auto;margin-bottom:150px}.container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:100%}.ion-title[_ngcontent-%COMP%]{margin-top:25px;color:#0f465a;font-size:25px;font-weight:700;align-items:center}.user-info-text[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start}.userInfo[_ngcontent-%COMP%]{background-color:#f3f5f7;border-radius:8px;padding:20px 12px;border:1px solid #E0E0E0;margin-bottom:15px}.userInfo[_ngcontent-%COMP%] .user-info-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px}.userInfo[_ngcontent-%COMP%] ion-avatar[_ngcontent-%COMP%]{width:32px;height:32px;min-width:32px;min-height:32px;max-width:32px;max-height:32px;flex-shrink:0}.userInfo[_ngcontent-%COMP%] ion-avatar[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover}.userInfo[_ngcontent-%COMP%] ion-avatar[_ngcontent-%COMP%] .initials-avatar[_ngcontent-%COMP%]{width:100%;height:100%;border-radius:50%;background:#0F465A;color:#fff;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:600;letter-spacing:.5px;text-transform:uppercase}.userInfo[_ngcontent-%COMP%] .user-info-text[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;flex:1;gap:0}.userInfo[_ngcontent-%COMP%] .user-info-text[_ngcontent-%COMP%] b[_ngcontent-%COMP%]{font-size:14px;font-weight:600;color:#1a1a1a;line-height:1.2}.userInfo[_ngcontent-%COMP%] .user-info-text[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{font-size:12px;color:#6b7280;line-height:1.2}.userInfo[_ngcontent-%COMP%] app-subscription-status[_ngcontent-%COMP%]{flex-shrink:0}.pitStatus[_ngcontent-%COMP%]{border-radius:8px;--background: #009B5C;height:44px;margin:6px 0 15px}.pitStatus[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{margin-right:8px}.stats-card[_ngcontent-%COMP%]{--background: #fff;margin:20px 0;margin-inline:0;padding:10px 12px;box-shadow:none;border:1px solid #E0E0E0}.stats-card[_ngcontent-%COMP%] .stats-card-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}.stats-card[_ngcontent-%COMP%] .stats-card-title[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}.stats-card[_ngcontent-%COMP%] .stats-card-title[_ngcontent-%COMP%] .icon-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:35px;height:35px;border-radius:6px;background-color:#e0f2f1}.stats-card[_ngcontent-%COMP%] .stats-card-title[_ngcontent-%COMP%] .icon-wrapper.icon-wrapper-blue[_ngcontent-%COMP%]{background-color:#e3f2fd}.stats-card[_ngcontent-%COMP%] .stats-card-title[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{font-size:16px}.stats-card[_ngcontent-%COMP%] .stats-card-title[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:13px;font-weight:500;
1color:#1a1a1a}.stats-card[_ngcontent-%COMP%] .menu-icon[_ngcontent-%COMP%]{font-size:16px;color:#9ca3af}.stats-card[_ngcontent-%COMP%] .stats-card-content[_ngcontent-%COMP%]{display:flex;align-items:flex-end;justify-content:space-between;gap:20px}.mini-bar-chart[_ngcontent-%COMP%]{flex:1;height:90px;display:flex;align-items:flex-end}.mini-bar-chart[_ngcontent-%COMP%] .mini-bar-chart-bars[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:2px;height:100%;width:100%}.mini-bar-chart[_ngcontent-%COMP%] .mini-bar-chart-bars[_ngcontent-%COMP%] .mini-bar-wrap[_ngcontent-%COMP%]{flex:1;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:flex-end}.mini-bar-chart[_ngcontent-%COMP%] .mini-bar-chart-bars[_ngcontent-%COMP%] .mini-bar-wrap[_ngcontent-%COMP%] .mini-bar[_ngcontent-%COMP%]{width:100%;min-height:4px;border-radius:2px 2px 0 0}.mini-bar-chart[_ngcontent-%COMP%] .mini-bar-chart-bars[_ngcontent-%COMP%] .mini-bar-wrap[_ngcontent-%COMP%] .mini-bar.mini-bar-green[_ngcontent-%COMP%]{background:#009B5C}.mini-bar-chart[_ngcontent-%COMP%] .mini-bar-chart-bars[_ngcontent-%COMP%] .mini-bar-wrap[_ngcontent-%COMP%] .mini-bar.mini-bar-blue[_ngcontent-%COMP%]{background:#1565C0}.mini-bar-chart[_ngcontent-%COMP%] .mini-bar-chart-bars[_ngcontent-%COMP%] .mini-bar-wrap[_ngcontent-%COMP%] .bar-count[_ngcontent-%COMP%]{font-size:9px;font-weight:700;color:#1a1a1a;background:#fff;border:1px solid #e0e0e0;border-radius:3px;padding:1px 4px;margin-bottom:3px;white-space:nowrap}.mini-bar-chart[_ngcontent-%COMP%] .mini-bar-chart-bars[_ngcontent-%COMP%] .mini-bar-wrap[_ngcontent-%COMP%] .mini-bar-label[_ngcontent-%COMP%]{font-size:8px;color:#9ca3af;margin-top:3px;text-align:center;white-space:nowrap}.mini-bar-chart[_ngcontent-%COMP%] .mini-bar-chart-bars[_ngcontent-%COMP%] .mini-bar-wrap.selected[_ngcontent-%COMP%] .mini-bar[_ngcontent-%COMP%]{opacity:.75}.mini-bar-chart[_ngcontent-%COMP%] .mini-bar-chart-bars[_ngcontent-%COMP%] .mini-bar-wrap[_ngcontent-%COMP%]{cursor:pointer}.stats-card-numbers[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-end;white-space:nowrap}.stats-card-numbers[_ngcontent-%COMP%] .stats-main-number[_ngcontent-%COMP%]{font-size:20px;font-weight:700;color:#1a1a1a}.stats-card-numbers[_ngcontent-%COMP%] .stats-change[_ngcontent-%COMP%]{display:flex;align-items:center;gap:2px;font-size:12px;color:#009b5c}.stats-card-numbers[_ngcontent-%COMP%] .stats-change[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{font-size:12px}.stats-card-numbers[_ngcontent-%COMP%] .stats-change.negative[_ngcontent-%COMP%]{color:#d32f2f}.userInfo2[_ngcontent-%COMP%]{background-color:#f3f5f7;border-radius:8px;border:1px solid #E0E0E0;padding:12px;margin-bottom:15px}.userInfo2[_ngcontent-%COMP%] .user-info-text[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;gap:4px}.userInfo2[_ngcontent-%COMP%] .user-info-text[_ngcontent-%COMP%] b[_ngcontent-%COMP%]{font-size:14px;font-weight:600;color:#1a1a1a;line-height:1.2}.userInfo2[_ngcontent-%COMP%] .user-info-text[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{font-size:12px;color:#6b7280;line-height:1.2}.info-icon[_ngcontent-%COMP%]{font-size:11px;color:#9ca3af;cursor:pointer;margin-left:2px;vertical-align:middle}.info-tooltip[_ngcontent-%COMP%]{font-size:9px;color:#6b7280;text-align:right;margin-top:1px}"]}),e})()}];let L=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[h.Bz.forChild(z),h.Bz]}),e})();var Q=o(7468),E=o(4429);let q=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[s.ez,l.u5,g.Pc,L,Q.I,E.f]}),e})()}}]);
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.