1(self.webpackChunkcore_app=self.webpackChunkcore_app||[]).push([["default-apps_connect-app_fleet_fleet_module_ts"],{34752(Ht,T,d){"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.AppRoutingModule=void 0;const S=d(31635),N=d(7901),O=d(12918),u=d(13463),o=d(73525),b=d(85049),g=d(21481),h=d(58434),D=d(73270),f=d(82920),v=d(3816),p=d(38532),J=S.__importStar(d(49849)),r=(S.__importStar(d(7901)),[{path:"",data:{title:"Equipment Information"},children:[{path:"",redirectTo:"search",pathMatch:"full"},{path:"search",component:O.FleetSearchComponent,canActivate:[p.RoutePrivilegeGuard],data:{privileges:(0,v.MatchAll)(["B2B_Fleet_Search"])}},{path:"details/:identifier",resolve:{unitDetail:h.UnitDetailResolver,hasSmsContact:D.HasSmsResolver},component:u.FleetDetailComponent,canActivate:[p.RoutePrivilegeGuard],data:{privileges:(0,v.MatchAll)(["B2B_Fleet_Search"])}},{path:"details/:identifier/:showTab",resolve:{unitDetail:h.UnitDetailResolver,hasSmsContact:D.HasSmsResolver},component:u.FleetDetailComponent,canActivate:[p.RoutePrivilegeGuard],data:{privileges:(0,v.MatchAll)(["B2B_Fleet_Search"])}},{path:"details/:identifier/:showTab/:analyticsTab",resolve:{unitDetail:h.UnitDetailResolver,hasSmsContact:D.HasSmsResolver},component:u.FleetDetailComponent,canActivate:[p.RoutePrivilegeGuard],data:{privileges:(0,v.MatchAll)(["B2B_Fleet_Search"])}},{path:"partsBreakDown",component:o.FleetPartsBreakdownComponent,canActivate:[p.RoutePrivilegeGuard],data:{title:"Parts Breakdown",privileges:(0,v.MatchAll)(["B2B_Fleet_Search"])}},{path:"partsBreakDown/:itemNo/:skuNo",component:f.CommerceItemComponent,runGuardsAndResolvers:"always",canActivate:[p.RoutePrivilegeGuard],data:{privileges:(0,v.MatchAll)(["B2B_Fleet_Search"])}},{path:"edit/:identifier",component:b.FleetEditUnitComponent,canActivate:[p.RoutePrivilegeGuard],data:{privileges:(0,v.MatchAll)(["B2B_Fleet_Search","B2B_Fleet_Update"])}},{path:"equipment/fleet/index.jsp",redirectTo:"search"},{path:"billOfMaterials/search",component:g.BomSearchComponent,canActivate:[p.RoutePrivilegeGuard],data:{privileges:(0,v.MatchAll)(["B2B_Fleet_Search"])}},{path:"billOfMaterials/search/:itemNo/:skuNo",component:f.CommerceItemComponent,canActivate:[p.RoutePrivilegeGuard],data:{privileges:(0,v.MatchAll)(["B2B_Fleet_Search"])}},{path:"equipment/fleet/search.jsp",redirectTo:"search"},{path:"equipment/fleet/detail.jsp",redirectTo:"details"}]}]);T.AppRoutingModule=(()=>{class vt{static{this.\u0275fac=function(F){return new(F||vt)}}static{this.\u0275mod=J.\u0275\u0275defineNgModule({type:vt})}static{this.\u0275inj=J.\u0275\u0275defineInjector({imports:[N.RouterModule.forChild(r),N.RouterModule]})}}return vt})()},89823(Ht,T,d){"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.AltecProductNoticesTabContentComponent=void 0;const S=d(31635),N=S.__importDefault(d(97586)),u=(d(21916),S.__importStar(d(49849))),o=S.__importStar(d(21916)),b=S.__importStar(d(92325)),g=S.__importStar(d(31003)),h=S.__importStar(d(7901)),D=S.__importStar(d(22850)),f=k=>({eventCategory:"Unit Detail",eventAction:"Download APN CSV",eventLabel:k}),v=k=>({eventCategory:"Unit Detail",eventAction:"Download APN",eventLabel:k}),p=k=>[k],J=k=>({eventCategory:"Unit Detail",eventAction:"View APN Detail",eventLabel:k});function lt(k,R){if(1&k&&(u.\u0275\u0275elementStart(0,"a",9),u.\u0275\u0275text(1),u.\u0275\u0275elementEnd()),2&k){const U=u.\u0275\u0275nextContext().$implicit;u.\u0275\u0275property("routerLink",u.\u0275\u0275pureFunction1(3,p,"/pages/dashboard/equipment/apns/details/"+U.apnId))("gaEvent",u.\u0275\u0275pureFunction1(5,J,U.apnNumber)),u.\u0275\u0275advance(),u.\u0275\u0275textInterpolate1(" ",U.apnNumber," ")}}function r(k,R){if(1&k&&(u.\u0275\u0275elementStart(0,"app-apn-download-link",10),u.\u0275\u0275text(1),u.\u0275\u0275elementEnd()),2&k){const U=u.\u0275\u0275nextContext().$implicit;u.\u0275\u0275property("apn",U)("gaEvent",u.\u0275\u0275pureFunction1(3,v,U.apnNumber)),u.\u0275\u0275advance(),u.\u0275\u0275textInterpolate1(" ",U.apnNumber," ")}}function I(k,R){1&k&&(u.\u0275\u0275elementStart(0,"span"),u.\u0275\u0275text(1,"Open"),u.\u0275\u0275elementEnd())}function vt(k,R){1&k&&(u.\u0275\u0275elementStart(0,"span"),u.\u0275\u0275text(1,"Closed"),u.\u0275\u0275elementEnd())}function C(k,R){if(1&k&&(u.\u0275\u0275conditionalCreate(0,I,2,0,"span"),u.\u0275\u0275conditionalCreate(1,vt,2,0,"span")),2&k){const U=u.\u0275\u0275nextContext().$implicit;u.\u0275\u0275conditional(U.closed?-1:0),u.\u0275\u0275advance(),u.\u0275\u0275conditional(U.closed?1:-1)}}function ht(k,R){1&k&&(u.\u0275\u0275elementStart(0,"span"),u.\u0275\u0275text(1," Informational "),u.\u0275\u0275elementEnd())}function F(k,R){if(1&k&&(u.\u0275\u0275elementStart(0,"span"),u.\u0275\u0275text(1),u.\u0275\u0275elementEnd()),2&k){const U=u.\u0275\u0275nextContext().$implicit;u.\u0275\u0275advance(),u.\u0275\u0275textInterpolate1("(",U.attachments.length,")")}}function ct(k,R){if(1&k&&(u.\u0275\u0275elementStart(0,"tr")(1,"td",8),u.\u0275\u0275conditionalCreate(2,lt,2,7,"a",9),u.\u0275\u0275conditionalCreate(3,r,2,5,"app-apn-download-l
1ink",10),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(4,"td",8),u.\u0275\u0275text(5),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(6,"td",8),u.\u0275\u0275text(7),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(8,"td",11),u.\u0275\u0275text(9),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(10,"td",8),u.\u0275\u0275conditionalCreate(11,C,2,2)(12,ht,2,0,"span"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(13,"td",12)(14,"app-apn-download-link",10)(15,"span"),u.\u0275\u0275element(16,"i",13),u.\u0275\u0275conditionalCreate(17,F,2,1,"span"),u.\u0275\u0275elementEnd()()()()),2&k){const U=R.$implicit,st=u.\u0275\u0275nextContext(3);u.\u0275\u0275classMap(st.apnWarningFlag(U)?"row-warning":""),u.\u0275\u0275advance(2),u.\u0275\u0275conditional(st.detailResponse.unitInFleet?2:-1),u.\u0275\u0275advance(),u.\u0275\u0275conditional(st.detailResponse.unitInFleet?-1:3),u.\u0275\u0275advance(2),u.\u0275\u0275textInterpolate(st.apnStartDateStr(U)),u.\u0275\u0275advance(2),u.\u0275\u0275textInterpolate(U.apnTypeDescription),u.\u0275\u0275advance(2),u.\u0275\u0275textInterpolate(U.description),u.\u0275\u0275advance(2),u.\u0275\u0275conditional("Y"!==U.informationOnlyFlag?11:12),u.\u0275\u0275advance(3),u.\u0275\u0275property("apn",U)("gaEvent",u.\u0275\u0275pureFunction1(11,v,U.apnNumber)),u.\u0275\u0275advance(3),u.\u0275\u0275conditional(U.attachments.length>1?17:-1)}}function at(k,R){if(1&k&&(u.\u0275\u0275elementStart(0,"div",5)(1,"div",0)(2,"table",6)(3,"thead")(4,"tr")(5,"th"),u.\u0275\u0275text(6,"Notice #"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(7,"th"),u.\u0275\u0275text(8,"Issued Date"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(9,"th"),u.\u0275\u0275text(10,"Type"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(11,"th"),u.\u0275\u0275text(12,"Description"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(13,"th"),u.\u0275\u0275text(14,"Status"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(15,"th"),u.\u0275\u0275text(16,"PDF"),u.\u0275\u0275elementEnd()()(),u.\u0275\u0275elementStart(17,"tbody"),u.\u0275\u0275repeaterCreate(18,ct,18,13,"tr",7,u.\u0275\u0275repeaterTrackByIdentity),u.\u0275\u0275elementEnd()()()()),2&k){const U=u.\u0275\u0275nextContext(2);u.\u0275\u0275advance(18),u.\u0275\u0275repeater(U.detailResponse.apnList)}}function rt(k,R){if(1&k&&(u.\u0275\u0275elementStart(0,"a",15)(1,"strong"),u.\u0275\u0275text(2),u.\u0275\u0275elementEnd()()),2&k){const U=u.\u0275\u0275nextContext().$implicit;u.\u0275\u0275property("routerLink",u.\u0275\u0275pureFunction1(3,p,"/pages/dashboard/equipment/apns/details/"+U.apnId))("gaEvent",u.\u0275\u0275pureFunction1(5,J,U.apnNumber)),u.\u0275\u0275advance(2),u.\u0275\u0275textInterpolate1("APN #: ",U.apnNumber)}}function X(k,R){if(1&k&&(u.\u0275\u0275elementStart(0,"app-apn-download-link",16)(1,"strong"),u.\u0275\u0275text(2),u.\u0275\u0275elementEnd()()),2&k){const U=u.\u0275\u0275nextContext().$implicit;u.\u0275\u0275property("gaEvent",u.\u0275\u0275pureFunction1(3,v,U.apnNumber))("apn",U),u.\u0275\u0275advance(2),u.\u0275\u0275textInterpolate1("APN #: ",U.apnNumber)}}function gt(k,R){1&k&&(u.\u0275\u0275elementStart(0,"span"),u.\u0275\u0275text(1,"Open"),u.\u0275\u0275elementEnd())}function mt(k,R){1&k&&(u.\u0275\u0275elementStart(0,"span"),u.\u0275\u0275text(1,"Closed"),u.\u0275\u0275elementEnd())}function St(k,R){if(1&k&&(u.\u0275\u0275conditionalCreate(0,gt,2,0,"span"),u.\u0275\u0275conditionalCreate(1,mt,2,0,"span")),2&k){const U=u.\u0275\u0275nextContext().$implicit;u.\u0275\u0275conditional(U.closed?-1:0),u.\u0275\u0275advance(),u.\u0275\u0275conditional(U.closed?1:-1)}}function ft(k,R){1&k&&(u.\u0275\u0275elementStart(0,"span"),u.\u0275\u0275text(1," Informational "),u.\u0275\u0275elementEnd())}function ot(k,R){if(1&k&&(u.\u0275\u0275elementStart(0,"span"),u.\u0275\u0275text(1),u.\u0275\u0275elementEnd()),2&k){const U=u.\u0275\u0275nextContext().$implicit;u.\u0275\u0275advance(),u.\u0275\u0275textInterpolate1("(",U.attachments.length,")")}}function B(k,R){if(1&k&&(u.\u0275\u0275elementStart(0,"div")(1,"div",0),u.\u0275\u0275conditionalCreate(2,rt,3,7,"a",15),u.\u0275\u0275conditionalCreate(3,X,3,5,"app-apn-download-l
1ink",16),u.\u0275\u0275element(4,"br"),u.\u0275\u0275elementStart(5,"strong"),u.\u0275\u0275text(6,"Issued Date"),u.\u0275\u0275elementEnd(),u.\u0275\u0275text(7),u.\u0275\u0275element(8,"br"),u.\u0275\u0275elementStart(9,"strong"),u.\u0275\u0275text(10,"Type"),u.\u0275\u0275elementEnd(),u.\u0275\u0275text(11),u.\u0275\u0275element(12,"br"),u.\u0275\u0275elementStart(13,"strong"),u.\u0275\u0275text(14,"Description"),u.\u0275\u0275elementEnd(),u.\u0275\u0275text(15),u.\u0275\u0275element(16,"br"),u.\u0275\u0275elementStart(17,"strong"),u.\u0275\u0275text(18,"Status"),u.\u0275\u0275elementEnd(),u.\u0275\u0275text(19,": "),u.\u0275\u0275conditionalCreate(20,St,2,2)(21,ft,2,0,"span"),u.\u0275\u0275element(22,"br"),u.\u0275\u0275elementStart(23,"strong"),u.\u0275\u0275text(24,"PDF"),u.\u0275\u0275elementEnd(),u.\u0275\u0275text(25,": "),u.\u0275\u0275elementStart(26,"app-apn-download-link",16)(27,"span"),u.\u0275\u0275element(28,"i",13),u.\u0275\u0275conditionalCreate(29,ot,2,1,"span"),u.\u0275\u0275elementEnd()()()()),2&k){const U=R.$implicit,st=u.\u0275\u0275nextContext(3);u.\u0275\u0275classMap(u.\u0275\u0275interpolate1("fleet-row ",st.apnWarningFlag(U)?"warned":"")),u.\u0275\u0275advance(2),u.\u0275\u0275conditional(st.detailResponse.unitInFleet?2:-1),u.\u0275\u0275advance(),u.\u0275\u0275conditional(st.detailResponse.unitInFleet?-1:3),u.\u0275\u0275advance(4),u.\u0275\u0275textInterpolate1(": ",st.apnStartDateStr(U)),u.\u0275\u0275advance(4),u.\u0275\u0275textInterpolate1(": ",U.apnTypeDescription),u.\u0275\u0275advance(4),u.\u0275\u0275textInterpolate1(": ",U.description),u.\u0275\u0275advance(5),u.\u0275\u0275conditional("Y"!==U.informationOnlyFlag?20:21),u.\u0275\u0275advance(6),u.\u0275\u0275property("gaEvent",u.\u0275\u0275pureFunction1(12,v,U.apnNumber))("apn",U),u.\u0275\u0275advance(3),u.\u0275\u0275conditional(U.attachments.length>1?29:-1)}}function Ot(k,R){if(1&k&&(u.\u0275\u0275elementStart(0,"div",5)(1,"div")(2,"div",14),u.\u0275\u0275repeaterCreate(3,B,30,14,"div",7,u.\u0275\u0275repeaterTrackByIdentity),u.\u0275\u0275elementEnd()()()),2&k){const U=u.\u0275\u0275nextContext(2);u.\u0275\u0275advance(3),u.\u0275\u0275repeater(U.detailResponse.apnList)}}function $(k,R){if(1&k){const U=u.\u0275\u0275getCurrentView();u.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"a",2),u.\u0275\u0275listener("click",function(){u.\u0275\u0275restoreView(U);const Dt=u.\u0275\u0275nextContext();return u.\u0275\u0275resetView(Dt.exportApnResults())}),u.\u0275\u0275element(3,"i",3),u.\u0275\u0275text(4," Export Results "),u.\u0275\u0275elementEnd()(),u.\u0275\u0275template(5,at,20,0,"div",4)(6,Ot,5,0,"div",4),u.\u0275\u0275elementEnd()}if(2&k){const U=u.\u0275\u0275nextContext();u.\u0275\u0275advance(2),u.\u0275\u0275property("gaEvent",u.\u0275\u0275pureFunction1(3,f,U.detailResponse.unitSerial)),u.\u0275\u0275advance(3),u.\u0275\u0275property("isMobileView",!1),u.\u0275\u0275advance(),u.\u0275\u0275property("isMobileView",!0)}}function j(k,R){1&k&&(u.\u0275\u0275elementStart(0,"div")(1,"div",5)(2,"div",0),u.\u0275\u0275text(3," No APNs found for Unit "),u.\u0275\u0275elementEnd()()())}T.AltecProductNoticesTabContentComponent=(()=>{class k{constructor(U){this.fleetService=U}ngOnInit(){}exportApnResults(){window.open(this.fleetService.getApnCsvDownloadUrl({query:"",sortOptions:[],filterOptions:[],instanceId:this.detailResponse.instanceId,multiValueFilterOptions:[]}))}apnWarningFlag(U){return void 0!==U.closed&&!U.closed&&(U.apnNumber.indexOf("MAB")>-1||U.apnNumber.indexOf("CSN")>-1&&null!=U.actionRequiredDate&&""!==U.actionRequiredDate&&N.default.utc().isAfter(N.default.utc(U.actionRequiredDate)))}apnStartDateStr(U){return U.dateApplied?(0,N.default)(U.dateApplied).format("MM/DD/YYYY"):""}static{this.\u0275fac=function(st){return new(st||k)(u.\u0275\u0275directiveInject(o.FleetService))}}static{this.\u0275cmp=u.\u0275\u0275defineComponent({type:k,selectors:[["altecConnect-altec-product-notices-tab-content"]],inputs:{detailResponse:"detailResponse"},standalone:!1,decls:2,vars:2,consts:[[1,"col-12"],[1,"text-end","mb-3","export-button"],["href","#",1,"btn","btn-excel","btn-sm",3,"click","gaEvent"],[1,"fa","fa-download","fa-lg"],["class","row",4,"isMobileView"],[1,"row"],[1,"table","table-bordered","table-striped"],[3,"class"],[1,"col-sm-2"],[3,"routerLink","gaEvent"],[3,"apn","gaEvent"],[1,"col-sm-5"],[1,"col-sm-1"],["aria-hidden","true",1,"fa","fa-file"],[1,"fleet-table"],[1,"refNum",3,"routerLink","gaEvent"],[3,"gaEvent","apn"]],template:function(st,Dt){1&st&&(u.\u0275\u0275conditionalCreate(0,$,7,5,"div",0),u.\u0275\u0275conditionalCreate(1,j,4,0,"div")),2&st&&(u.\u0275\u0275conditional(null!=Dt.detailResponse.apnList&&Dt.detailResponse.apnList.length>0?0:-1),u.\u0275\u0275advance(),u.\u0275\u0275conditional(0===Dt.detailResponse.apnList.length?1:-1))},dependencies:[b.GaEventDirective,g.ApnDownloadLinkComponent,h.RouterLink,D.SelectiveView],styles:["td[_ngcontent-%COMP%]{border-top:0!important;padding:15px 8px!important;vertical-align:middle!important}th[_ngcontent-%COMP%]{border-bottom:0!important;position:sticky;top:0;z-index:1;background:#fff}.table-container[_ngcontent-%COMP%]{overflow-y:auto}@media(min-width:768px){.table-container[_ngcontent-%COMP%]{height:260px}}@media(max-width:767px){.table-container[_ngcontent-%COMP%]{height:400px}}.table[_ngcontent-%COMP%]{margin-bottom:15px}@media(max-width:576px){.export-button[_ngcontent-%COMP%]{width:100%}.export-button[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:100%;text-align:center;display:inline-block}}table[_ngcontent-%COMP%] tr.row-warning[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{background-color:#f2dede!important}table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-of-type(odd).row-warning td[_ngcontent-%COMP%]{background-color:#e9c8c8!important}"]})}}return k})()},76981(Ht,T,d){"use strict";
1Object.defineProperty(T,"__esModule",{value:!0}),T.ContractSupportModalComponent=void 0;const S=d(31635),N=d(84341),o=(d(6324),d(97377),d(59091)),g=(d(27575),S.__importStar(d(49849))),h=S.__importStar(d(6324)),D=S.__importStar(d(84341)),f=S.__importStar(d(27575)),v=S.__importStar(d(97377)),p=S.__importStar(d(60177)),J=ft=>({"is-invalid":ft});function lt(ft,ot){1&ft&&(g.\u0275\u0275elementStart(0,"small",22),g.\u0275\u0275text(1,"Email is required"),g.\u0275\u0275elementEnd())}function r(ft,ot){1&ft&&(g.\u0275\u0275elementStart(0,"small",22),g.\u0275\u0275text(1,"Must be a valid email address"),g.\u0275\u0275elementEnd())}function I(ft,ot){if(1&ft&&(g.\u0275\u0275elementStart(0,"div"),g.\u0275\u0275conditionalCreate(1,lt,2,0,"small",22),g.\u0275\u0275conditionalCreate(2,r,2,0,"small",22),g.\u0275\u0275elementEnd()),2&ft){const B=g.\u0275\u0275nextContext(2);g.\u0275\u0275advance(),g.\u0275\u0275conditional(B.formControls.email.errors.required?1:-1),g.\u0275\u0275advance(),g.\u0275\u0275conditional(B.formControls.email.errors.email?2:-1)}}function vt(ft,ot){1&ft&&(g.\u0275\u0275elementStart(0,"small",22),g.\u0275\u0275text(1,"A 10 digit Phone Number is required"),g.\u0275\u0275elementEnd())}function C(ft,ot){if(1&ft&&(g.\u0275\u0275elementStart(0,"div"),g.\u0275\u0275conditionalCreate(1,vt,2,0,"small",22),g.\u0275\u0275elementEnd()),2&ft){const B=g.\u0275\u0275nextContext(2);g.\u0275\u0275advance(),g.\u0275\u0275conditional(B.formControls.phone.errors.required?1:-1)}}function ht(ft,ot){1&ft&&(g.\u0275\u0275elementStart(0,"small",22),g.\u0275\u0275text(1,"Preferred Contact Method is required"),g.\u0275\u0275elementEnd())}function F(ft,ot){if(1&ft&&(g.\u0275\u0275elementStart(0,"div"),g.\u0275\u0275conditionalCreate(1,ht,2,0,"small",22),g.\u0275\u0275elementEnd()),2&ft){const B=g.\u0275\u0275nextContext(2);g.\u0275\u0275advance(),g.\u0275\u0275conditional(B.formControls.contactMethod.errors.required?1:-1)}}function ct(ft,ot){1&ft&&(g.\u0275\u0275elementStart(0,"small",22),g.\u0275\u0275text(1,"Description is required"),g.\u0275\u0275elementEnd())}function at(ft,ot){if(1&ft&&(g.\u0275\u0275elementStart(0,"div"),g.\u0275\u0275conditionalCreate(1,ct,2,0,"small",22),g.\u0275\u0275elementEnd()),2&ft){const B=g.\u0275\u0275nextContext(2);g.\u0275\u0275advance(),g.\u0275\u0275conditional(B.formControls.description.errors.required?1:-1)}}function rt(ft,ot){if(1&ft&&(g.\u0275\u0275elementStart(0,"div",7),g.\u0275\u0275text(1,"("),g.\u0275\u0275elementStart(2,"span",8),g.\u0275\u0275text(3,"*"),g.\u0275\u0275elementEnd(),g.\u0275\u0275text(4,") Required Information"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(5,"div",9),g.\u0275\u0275text(6,"All fields required unless noted"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(7,"form",10)(8,"div",11)(9,"label",12),g.\u0275\u0275text(10,"Email:"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(11,"div",13),g.\u0275\u0275element(12,"input",14),g.\u0275\u0275conditionalCreate(13,I,3,2,"div"),g.\u0275\u0275elementEnd()(),g.\u0275\u0275elementStart(14,"div",11)(15,"label",12),g.\u0275\u0275text(16,"Phone Number:"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(17,"div",13),g.\u0275\u0275element(18,"input",15),g.\u0275\u0275conditionalCreate(19,C,2,1,"div"),g.\u0275\u0275elementEnd()(),g.\u0275\u0275elementStart(20,"div",11)(21,"label",12),g.\u0275\u0275text(22,"Preferred Contact Method:"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(23,"div",16)(24,"label"),g.\u0275\u0275text(25,"Preferred Contact Method"),g.\u0275\u0275elementEnd()(),g.\u0275\u0275elementStart(26,"div",17)(27,"label",18),g.\u0275\u0275element(28,"input",19),g.\u0275\u0275elementStart(29,"span"),g.\u0275\u0275text(30,"Email"),g.\u0275\u0275elementEnd()(),g.\u0275\u0275elementStart(31,"label",18),g.\u0275\u0275element(32,"input",20),g.\u0275\u0275elementStart(33,"span"),g.\u0275\u0275text(34,"Phone"),g.\u0275\u0275elementEnd()(),g.\u0275\u0275conditionalCreate(35,F,2,1,"div"),g.\u0275\u0275elementEnd()(),g.\u0275\u0275elementStart(36,"div",11)(37,"label",12),g.\u0275\u0275text(38,"How can we help you?:"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(39,"div",13),g.\u0275\u0275element(40,"textarea",21),g.\u0275\u0275conditionalCreate(41,at,2,1,"div"),g.\u0275\u0275elementEnd()()()),2&ft){const B=g.\u0275\u0275nextContext();g.\u0275\u0275advance(7),g.\u0275\u0275property("formGroup",B.formGroup),g.\u0275\u0275advance(5),g.\u0275\u0275property("ngClass",g.\u0275\u0275pureFunction1(10,J,B.submitted&&B.formControls.email.errors)),g.\u0275\u0275advance(),g.\u0275\u0275conditional(B.submitted&&B.formControls.email.errors?13:-1),g.\u0275\u0275advance(5),g.\u0275\u0275property("ngClass",g.\u0275\u0275pureFunction1(12,J,B.submitted&&B.formControls.phone.errors)),g.\u0275\u0275advance(),g.\u0275\u0275conditional(B.submitted&&B.formControls.phone.errors?19:-1),g.\u0275\u0275advance(9),g.\u0275\u0275property("ngClass",g.\u0275\u0275pureFunction1(14,J,B.submitted&&B.formControls.contactMethod.errors)),g.\u0275\u0275advance(4),g.\u0275\u0275property("ngClass",g.\u0275\u0275pureFunction1(16,J,B.submitted&&B.formControls.contactMethod.errors)),g.\u0275\u0275advance(3),g.\u0275\u0275conditional(B.submitted&&B.formControls.contactMethod.errors?35:-1),g.\u0275\u0275advance(5),g.\u0275\u0275property("ngClass",g.\u0275\u0275pureFunction1(18,J,B.submitted&&B.formControls.description.errors)),g.\u0275\u0275advance(),g.\u0275\u0275conditional(B.submitted&&B.formControls.description.errors?41:-1)}}function X(ft,ot){1&ft&&(g.\u0275\u0275element(0,"i",23),g.\u0275\u0275text(1,"Your support request has been submitted. You will hear back from an Altec representative shortly. "))}function gt(ft,ot){if(1&ft){const B=g.\u0275\u0275getCurrentView();g.\u0275\u0275elementStart(0,"button",24),g.\u0275\u0275listener("click",function(){g.\u0275\u0275restoreView(B);const $=g.\u0275\u0275nextContext();
1return g.\u0275\u0275resetView($.activeModal.dismiss())}),g.\u0275\u0275text(1,"Cancel"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(2,"button",25),g.\u0275\u0275listener("click",function(){g.\u0275\u0275restoreView(B);const $=g.\u0275\u0275nextContext();return $.submitSubject.next({email:$.formGroup.controls.email.value,phone:$.formGroup.controls.phone.value,responseByEmail:"Email"===$.formGroup.controls.contactMethod.value,description:$.formGroup.controls.description.value}),g.\u0275\u0275resetView($.submitted=!0)}),g.\u0275\u0275text(3,"Submit"),g.\u0275\u0275elementEnd()}if(2&ft){const B=g.\u0275\u0275nextContext();g.\u0275\u0275advance(2),g.\u0275\u0275property("disabled",""===(null==B.formGroup.controls.description?null:B.formGroup.controls.description.value)||""===(null==B.formGroup.controls.email?null:B.formGroup.controls.email.value)||""===(null==B.formGroup.controls.phone?null:B.formGroup.controls.phone.value))}}function mt(ft,ot){if(1&ft){const B=g.\u0275\u0275getCurrentView();g.\u0275\u0275elementStart(0,"button",26),g.\u0275\u0275listener("click",function(){g.\u0275\u0275restoreView(B);const $=g.\u0275\u0275nextContext();return g.\u0275\u0275resetView($.activeModal.close())}),g.\u0275\u0275text(1,"Close"),g.\u0275\u0275elementEnd()}}T.ContractSupportModalComponent=(()=>{class ft{get formControls(){return this.formGroup.controls}constructor(B,Ot,$,j){this.activeModal=B,this.formBuilder=Ot,this.notmanService=$,this.statefulService=j,this.submitted=!1,this.submitSubject=new o.Subject,this.submitObservable=this.submitSubject.asObservable(),this.formGroup=this.formBuilder.group({email:["",[N.Validators.required,N.Validators.email]],phone:["",[N.Validators.required]],contactMethod:["Email",[N.Validators.required]],description:["",[N.Validators.required]]})}ngOnInit(){this.setProfileFormVals()}setProfileFormVals(){this.formGroup.controls.email.patchValue(this.statefulService.profile.email),this.notmanService.getUserPhoneNumber().subscribe(B=>{B&&B.phoneNumber&&this.formGroup.controls.phone.patchValue(B.phoneNumber)})}static{this.\u0275fac=function(Ot){return new(Ot||ft)(g.\u0275\u0275directiveInject(h.NgbActiveModal),g.\u0275\u0275directiveInject(D.FormBuilder),g.\u0275\u0275directiveInject(f.NotmanService),g.\u0275\u0275directiveInject(v.StatefulService))}}static{this.\u0275cmp=g.\u0275\u0275defineComponent({type:ft,selectors:[["altecConnect-contract-support-modal"]],standalone:!1,decls:13,vars:6,consts:[[1,"modal-header"],[1,"modal-title"],["type","button","data-bs-dismiss","modal","aria-label","Close",1,"close","ms-auto",3,"click"],["aria-hidden","true"],[1,"modal-body"],[1,"modal-footer"],["type","button",1,"btn","btn-altec"],[1,"d-none","d-sm-block","pb-2"],[1,"red"],[1,"d-block","d-sm-none","mb-1"],[3,"formGroup"],[1,"row","mb-3","required"],[1,"col-sm-4","col-form-label","form-label","d-none","d-sm-block"],[1,"col-12","col-sm-7"],["type","text","formControlName","email","placeholder","Email",1,"form-control","form-control-sm",3,"ngClass"],["type","text","formControlName","phone","data-mask","(000) 000-0000","placeholder","Phone Number",1,"form-control","form-control-sm",3,"ngClass"],[1,"col-12","d-block","d-sm-none"],[1,"col-12","col-sm-7","col-form-label"],[1,"radio-inline"],["type","radio","formControlName","contactMethod","value","Email",3,"ngClass"],["type","radio","formControlName","contactMethod","value","Phone",3,"ngClass"],["rows","5","formControlName","description",1,"form-control","form-control-sm",3,"ngClass"],[1,"form-text","has-error"],[1,"fa","fa-check","me-1"],["type","button",1,"btn","btn-light","ms-2",3,"click"],["type","button",1,"btn","btn-altec",3,"click","disabled"],["type","button",1,"btn","btn-altec",3,"click"]],template:function(Ot,$){1&Ot&&(g.\u0275\u0275elementStart(0,"div",0)(1,"h4",1)(2,"b"),g.\u0275\u0275text(3,"Coverage Support Request"),g.\u0275\u0275elementEnd()(),g.\u0275\u0275elementStart(4,"button",2),g.\u0275\u0275listener("click",function(){return $.activeModal.dismiss(null)}),g.\u0275\u0275elementStart(5,"span",3),g.\u0275\u0275text(6,"\xd7"),g.\u0275\u0275elementEnd()()(),g.\u0275\u0275elementStart(7,"div",4),g.\u0275\u0275conditionalCreate(8,rt,42,20),g.\u0275\u0275conditionalCreate(9,X,2,0),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(10,"div",5),g.\u0275\u0275conditionalCreate(11,gt,4,1),g.\u0275\u0275conditionalCreate(12,mt,2,0,"button",6),g.\u0275\u0275elementEnd()),2&Ot&&(g.\u0275\u0275advance(7),g.\u0275\u0275classProp("success-background",!0===$.submitted),g.\u0275\u0275advance(),g.\u0275\u0275conditional($.
1submitted?-1:8),g.\u0275\u0275advance(),g.\u0275\u0275conditional($.submitted?9:-1),g.\u0275\u0275advance(2),g.\u0275\u0275conditional($.submitted?-1:11),g.\u0275\u0275advance(),g.\u0275\u0275conditional($.submitted?12:-1))},dependencies:[p.NgClass,D.\u0275NgNoValidate,D.DefaultValueAccessor,D.RadioControlValueAccessor,D.NgControlStatus,D.NgControlStatusGroup,D.FormGroupDirective,D.FormControlName],styles:[".success-background[_ngcontent-%COMP%]{background-color:#dff0d8}.fa-check[_ngcontent-%COMP%]{color:#3c763d}.radio-inline[_ngcontent-%COMP%]{margin-right:1.5rem}.radio-inline[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{margin-right:.35rem}.required[_ngcontent-%COMP%] .radio-inline[_ngcontent-%COMP%]{font-weight:400}.required[_ngcontent-%COMP%] .radio-inline[_ngcontent-%COMP%]:before, .required[_ngcontent-%COMP%] .radio-inline[_ngcontent-%COMP%]:after{content:none}.required[_ngcontent-%COMP%] .d-sm-none[_ngcontent-%COMP%] label[_ngcontent-%COMP%]:after{content:none}textarea.form-control[_ngcontent-%COMP%]{min-height:calc(7.5em + .5rem + 2px)}"]})}}return ft})()},57687(Ht,T,d){"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.DocumentationTabContentComponent=void 0;const S=d(31635),b=(d(60102),d(2490),d(7901),d(62351),d(83352)),D=(d(1707),d(20851),d(43481)),v=(d(53323),d(76849)),p=S.__importStar(d(49849)),J=S.__importStar(d(60102)),lt=S.__importStar(d(2490)),r=S.__importStar(d(7901)),I=S.__importStar(d(62351)),vt=S.__importStar(d(1707)),C=S.__importStar(d(53323)),ht=S.__importStar(d(20851)),F=S.__importStar(d(92325)),ct=S.__importStar(d(22850)),at=S.__importStar(d(60177)),rt=x=>({eventCategory:"Unit Detail",eventAction:"Download Manual",eventLabel:x}),X=x=>({eventCategory:"Unit Detail",eventAction:"Download Inspection Paperwork",eventLabel:x}),gt=x=>["../../../service/details/",x],mt=x=>({eventCategory:"Unit Detail",eventAction:"View Service Request",eventLabel:x});function St(x,W){if(1&x){const E=p.\u0275\u0275getCurrentView();p.\u0275\u0275elementStart(0,"tr")(1,"td",7),p.\u0275\u0275text(2),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(3,"td",8)(4,"a",9),p.\u0275\u0275listener("click",function(){const V=p.\u0275\u0275restoreView(E).$implicit,Et=p.\u0275\u0275nextContext(2);
1return p.\u0275\u0275resetView(Et.openReferenceMaterial(V))}),p.\u0275\u0275text(5),p.\u0275\u0275elementEnd()(),p.\u0275\u0275elementStart(6,"td",7),p.\u0275\u0275text(7),p.\u0275\u0275elementEnd()()}if(2&x){const E=W.$implicit;p.\u0275\u0275advance(2),p.\u0275\u0275textInterpolate(E.name),p.\u0275\u0275advance(2),p.\u0275\u0275property("gaEvent",p.\u0275\u0275pureFunction1(4,rt,E.name)),p.\u0275\u0275advance(),p.\u0275\u0275textInterpolate1(" ",E.description?E.description:E.name," "),p.\u0275\u0275advance(2),p.\u0275\u0275textInterpolate1(" ",E.manualTitle&&"Supplemental Manual"==E.name?E.manualTitle:"N/A"," ")}}function ft(x,W){if(1&x){const E=p.\u0275\u0275getCurrentView();p.\u0275\u0275elementStart(0,"div",3),p.\u0275\u0275listener("click",function(){p.\u0275\u0275restoreView(E);const V=p.\u0275\u0275nextContext();return p.\u0275\u0275resetView(V.inspectionTourCheck())}),p.\u0275\u0275elementStart(1,"div",4)(2,"div",5)(3,"table",6)(4,"thead")(5,"tr")(6,"th"),p.\u0275\u0275text(7,"Type"),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(8,"th"),p.\u0275\u0275text(9,"Details"),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(10,"th"),p.\u0275\u0275text(11,"Manual Title"),p.\u0275\u0275elementEnd()()(),p.\u0275\u0275elementStart(12,"tbody"),p.\u0275\u0275repeaterCreate(13,St,8,6,"tr",null,p.\u0275\u0275repeaterTrackByIdentity),p.\u0275\u0275elementEnd()()()()()}if(2&x){const E=p.\u0275\u0275nextContext();p.\u0275\u0275advance(13),p.\u0275\u0275repeater(E.detailResponse.referenceMaterials)}}function ot(x,W){1&x&&(p.\u0275\u0275elementStart(0,"div")(1,"div",4)(2,"div",5),p.\u0275\u0275text(3,"No Documents found for Unit"),p.\u0275\u0275elementEnd()()())}function B(x,W){if(1&x){const E=p.\u0275\u0275getCurrentView();p.\u0275\u0275elementStart(0,"tr")(1,"td",14),p.\u0275\u0275text(2),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(3,"td",7)(4,"a",9),p.\u0275\u0275listener("click",function(){const V=p.\u0275\u0275restoreView(E).$implicit,Et=p.\u0275\u0275nextContext(3);
1return p.\u0275\u0275resetView(Et.openServiceInspectionPaperwork(V))}),p.\u0275\u0275text(5),p.\u0275\u0275elementEnd()(),p.\u0275\u0275elementStart(6,"td",15)(7,"a",16),p.\u0275\u0275text(8),p.\u0275\u0275elementEnd()(),p.\u0275\u0275elementStart(9,"td",17),p.\u0275\u0275text(10),p.\u0275\u0275pipe(11,"date"),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(12,"td",17),p.\u0275\u0275text(13),p.\u0275\u0275pipe(14,"date"),p.\u0275\u0275elementEnd()()}if(2&x){const E=W.$implicit,tt=p.\u0275\u0275nextContext(3);p.\u0275\u0275advance(2),p.\u0275\u0275textInterpolate1(" ",E.categoryDescription," "),p.\u0275\u0275advance(2),p.\u0275\u0275property("gaEvent",p.\u0275\u0275pureFunction1(14,X,E.fileName)),p.\u0275\u0275advance(),p.\u0275\u0275textInterpolate1(" ",E.fileName," "),p.\u0275\u0275advance(2),p.\u0275\u0275property("routerLink",p.\u0275\u0275pureFunction1(16,gt,E.serviceRequestId))("gaEvent",p.\u0275\u0275pureFunction1(18,mt,E.serviceRequestNumber)),p.\u0275\u0275advance(),p.\u0275\u0275textInterpolate1(" ",E.serviceRequestNumber?E.serviceRequestNumber:"\xa0"," "),p.\u0275\u0275advance(2),p.\u0275\u0275textInterpolate1(" ",p.\u0275\u0275pipeBind2(11,8,E.serviceRequestClosedDate,tt.dateFormat)," "),p.\u0275\u0275advance(3),p.\u0275\u0275textInterpolate1(" ",p.\u0275\u0275pipeBind2(14,11,E.uploadDate,tt.dateFormat)," ")}}function Ot(x,W){if(1&x){const E=p.\u0275\u0275getCurrentView();p.\u0275\u0275elementStart(0,"a",21),p.\u0275\u0275listener("click",function(){p.\u0275\u0275restoreView(E);const V=p.\u0275\u0275nextContext(2).$implicit,Et=p.\u0275\u0275nextContext(3);
1return p.\u0275\u0275resetView(Et.openInspectionPaperwork(V))}),p.\u0275\u0275text(1),p.\u0275\u0275elementEnd()}if(2&x){const E=p.\u0275\u0275nextContext(2).$implicit,tt=p.\u0275\u0275nextContext(3);p.\u0275\u0275advance(),p.\u0275\u0275textInterpolate1(" ",tt.getFileDescription(E)," ")}}function $(x,W){if(1&x){const E=p.\u0275\u0275getCurrentView();p.\u0275\u0275elementStart(0,"a",22),p.\u0275\u0275listener("click",function(){p.\u0275\u0275restoreView(E);const V=p.\u0275\u0275nextContext(2).$implicit,Et=p.\u0275\u0275nextContext(3);return p.\u0275\u0275resetView(Et.openInspectionPaperwork(V))}),p.\u0275\u0275text(1),p.\u0275\u0275elementEnd()}if(2&x){const E=p.\u0275\u0275nextContext(2).$implicit,tt=p.\u0275\u0275nextContext(3);p.\u0275\u0275property("download",tt.getDownloadName(E)),p.\u0275\u0275advance(),p.\u0275\u0275textInterpolate1(" ",tt.getFileDescription(E)," ")}}function j(x,W){if(1&x&&(p.\u0275\u0275elementStart(0,"tr")(1,"td",14),p.\u0275\u0275text(2),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(3,"td",7),p.\u0275\u0275conditionalCreate(4,Ot,2,1,"a",18)(5,$,2,2,"a",19),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(6,"td",15)(7,"span"),p.\u0275\u0275text(8," N/A "),p.\u0275\u0275elementEnd()(),p.\u0275\u0275elementStart(9,"td",20)(10,"span"),p.\u0275\u0275text(11," N/A "),p.\u0275\u0275elementEnd()(),p.\u0275\u0275elementStart(12,"td",17),p.\u0275\u0275text(13),p.\u0275\u0275pipe(14,"date"),p.\u0275\u0275elementEnd()()),2&x){const E=p.\u0275\u0275nextContext().$implicit,tt=p.\u0275\u0275nextContext(3);p.\u0275\u0275advance(2),p.\u0275\u0275textInterpolate1(" ",tt.getFileTitle(E)," "),p.\u0275\u0275advance(2),p.\u0275\u0275conditional(E.metaData["file-name"].endsWith(".pdf")?4:5),p.\u0275\u0275advance(9),p.\u0275\u0275textInterpolate1(" ",E.uploadDate?p.\u0275\u0275pipeBind2(14,3,E.uploadDate,tt.dateFormat):"N/A"," ")}}function G(x,W){if(1&x&&p.\u0275\u0275conditionalCreate(0,j,15,6,"tr"),2&x){const E=W.$implicit;p.\u0275\u0275conditional(E&&E.metaData&&E.metaData["file-name"]?0:-1)}}function k(x,W){if(1&x){const E=p.\u0275\u0275getCurrentView();p.\u0275\u0275elementStart(0,"a",21),p.\u0275\u0275listener("click",function(){p.\u0275\u0275restoreView(E);const V=p.\u0275\u0275nextContext(2).$implicit,Et=p.\u0275\u0275nextContext(3);
1return p.\u0275\u0275resetView(Et.openUnitMaintenanceDocumentation(V))}),p.\u0275\u0275text(1),p.\u0275\u0275elementEnd()}if(2&x){const E=p.\u0275\u0275nextContext(2).$implicit;p.\u0275\u0275advance(),p.\u0275\u0275textInterpolate1(" ",E.metaData.fileName," ")}}function R(x,W){if(1&x){const E=p.\u0275\u0275getCurrentView();p.\u0275\u0275elementStart(0,"a",22),p.\u0275\u0275listener("click",function(){p.\u0275\u0275restoreView(E);const V=p.\u0275\u0275nextContext(2).$implicit,Et=p.\u0275\u0275nextContext(3);return p.\u0275\u0275resetView(Et.openUnitMaintenanceDocumentation(V))}),p.\u0275\u0275text(1),p.\u0275\u0275elementEnd()}if(2&x){const E=p.\u0275\u0275nextContext(2).$implicit,tt=p.\u0275\u0275nextContext(3);p.\u0275\u0275property("download",tt.getDownloadUnitMaintenance(E)),p.\u0275\u0275advance(),p.\u0275\u0275textInterpolate1(" ",E.metaData.fileName," ")}}function U(x,W){if(1&x&&(p.\u0275\u0275elementStart(0,"tr")(1,"td",14),p.\u0275\u0275text(2),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(3,"td",7),p.\u0275\u0275conditionalCreate(4,k,2,1,"a",18)(5,R,2,2,"a",19),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(6,"td",15)(7,"span"),p.\u0275\u0275text(8," N/A "),p.\u0275\u0275elementEnd()(),p.\u0275\u0275elementStart(9,"td",17),p.\u0275\u0275text(10,"N/A"),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(11,"td",17),p.\u0275\u0275text(12),p.\u0275\u0275pipe(13,"date"),p.\u0275\u0275elementEnd()()),2&x){const E=p.\u0275\u0275nextContext().$implicit,tt=p.\u0275\u0275nextContext(3);p.\u0275\u0275advance(2),p.\u0275\u0275textInterpolate1(" ",tt.getFileTitleUnitMaintenance(E)," "),p.\u0275\u0275advance(2),p.\u0275\u0275conditional(E.metaData.fileName.endsWith(".pdf")?4:5),p.\u0275\u0275advance(8),p.\u0275\u0275textInterpolate1(" ",p.\u0275\u0275pipeBind2(13,3,E.uploadDate,tt.dateFormat)," ")}}function st(x,W){if(1&x&&p.\u0275\u0275conditionalCreate(0,U,14,6,"tr"),2&x){const E=W.$implicit;p.\u0275\u0275conditional(E&&E.metaData&&E.metaData.fileName?0:-1)}}function Dt(x,W){if(1&x&&(p.\u0275\u0275elementStart(0,"div",13)(1,"table",6)(2,"thead")(3,"tr")(4,"th"),p.\u0275\u0275text(5,"Type"),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(6,"th"),p.\u0275\u0275text(7,"Description"),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(8,"th"),p.\u0275\u0275text(9,"Job #"),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(10,"th"),p.\u0275\u0275text(11,"Date Closed"),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(12,"th"),p.\u0275\u0275text(13,"Date Uploaded"),p.\u0275\u0275elementEnd()()(),p.\u0275\u0275elementStart(14,"tbody"),p.\u0275\u0275repeaterCreate(15,B,15,20,"tr",null,p.\u0275\u0275repeaterTrackByIdentity),p.\u0275\u0275repeaterCreate(17,G,1,1,null,null,p.\u0275\u0275repeaterTrackByIdentity),p.\u0275\u0275repeaterCreate(19,st,1,1,null,null,p.\u0275\u0275repeaterTrackByIdentity),p.\u0275\u0275elementEnd()()()),2&x){const E=p.\u0275\u0275nextContext(2),tt=p.\u0275\u0275reference(4),V=p.\u0275\u0275reference(6),Et=p.\u0275\u0275reference(8);p.\u0275\u0275property("stepContent",Et)("doneTemplate",tt)("counterTemplate",V)("title","Inspection Paperwork"),p.\u0275\u0275advance(15),p.\u0275\u0275repeater(E.inspectionPaperwork),p.\u0275\u0275advance(2),p.\u0275\u0275repeater(E.detailResponse.inspectionPaperwork),p.\u0275\u0275advance(2),p.\u0275\u0275repeater(E.detailResponse.unitMaintenancePaperwork)}}function Jt(x,W){if(1&x){const E=p.\u0275\u0275getCurrentView();p.\u0275\u0275elementStart(0,"div",24)(1,"div",5)(2,"div")(3,"strong"),p.\u0275\u0275text(4,"Type"),p.\u0275\u0275elementEnd(),p.\u0275\u0275text(5),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(6,"div")(7,"strong"),p.\u0275\u0275text(8,"Description"),p.\u0275\u0275elementEnd(),p.\u0275\u0275text(9,": "),p.\u0275\u0275elementStart(10,"a",25),p.\u0275\u0275listener("click",function(){const V=p.\u0275\u0275restoreView(E).$implicit,Et=p.\u0275\u0275nextContext(3);
1return p.\u0275\u0275resetView(Et.openServiceInspectionPaperwork(V))}),p.\u0275\u0275text(11),p.\u0275\u0275elementEnd()(),p.\u0275\u0275elementStart(12,"div")(13,"strong"),p.\u0275\u0275text(14,"Job #"),p.\u0275\u0275elementEnd(),p.\u0275\u0275text(15,": "),p.\u0275\u0275elementStart(16,"a",16),p.\u0275\u0275text(17),p.\u0275\u0275elementEnd()(),p.\u0275\u0275elementStart(18,"div")(19,"strong"),p.\u0275\u0275text(20,"Date Closed"),p.\u0275\u0275elementEnd(),p.\u0275\u0275text(21),p.\u0275\u0275pipe(22,"date"),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(23,"div")(24,"strong"),p.\u0275\u0275text(25,"Date Uploaded"),p.\u0275\u0275elementEnd(),p.\u0275\u0275text(26),p.\u0275\u0275pipe(27,"date"),p.\u0275\u0275elementEnd()()()}if(2&x){const E=W.$implicit,tt=p.\u0275\u0275nextContext(3);p.\u0275\u0275advance(5),p.\u0275\u0275textInterpolate1(": ",E.categoryDescription),p.\u0275\u0275advance(6),p.\u0275\u0275textInterpolate1(" ",E.fileName," "),p.\u0275\u0275advance(5),p.\u0275\u0275property("routerLink",p.\u0275\u0275pureFunction1(13,gt,E.serviceRequestId))("gaEvent",p.\u0275\u0275pureFunction1(15,mt,E.serviceRequestNumber)),p.\u0275\u0275advance(),p.\u0275\u0275textInterpolate1(" ",E.serviceRequestNumber?E.serviceRequestNumber:"\xa0"," "),p.\u0275\u0275advance(4),p.\u0275\u0275textInterpolate1(": ",p.\u0275\u0275pipeBind2(22,7,E.serviceRequestClosedDate,tt.dateFormat)),p.\u0275\u0275advance(5),p.\u0275\u0275textInterpolate1(": ",p.\u0275\u0275pipeBind2(27,10,E.uploadDate,tt.dateFormat))}}function bt(x,W){if(1&x&&(p.\u0275\u0275elementStart(0,"div",24)(1,"div",5)(2,"div")(3,"strong"),p.\u0275\u0275text(4,"Type"),p.\u0275\u0275elementEnd(),p.\u0275\u0275text(5,": Dielectric Inspection-Initial"),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(6,"div")(7,"strong"),p.\u0275\u0275text(8,"Description"),p.\u0275\u0275elementEnd(),p.\u0275\u0275text(9,": "),p.\u0275\u0275elementStart(10,"a",26),p.\u0275\u0275text(11," Final Assembly Dielectric Test Form "),p.\u0275\u0275elementEnd()(),p.\u0275\u0275elementStart(12,"div")(13,"strong"),p.\u0275\u0275text(14,"Job #"),p.\u0275\u0275elementEnd(),p.\u0275\u0275text(15,": "),p.\u0275\u0275elementStart(16,"span"),p.\u0275\u0275text(17," N/A "),p.\u0275\u0275elementEnd()(),p.\u0275\u0275elementStart(18,"div")(19,"strong"),p.\u0275\u0275text(20,"Date Closed"),p.\u0275\u0275elementEnd(),p.\u0275\u0275text(21),p.\u0275\u0275pipe(22,"date"),p.\u0275\u0275elementEnd()()()),2&x){const E=W.$implicit,tt=p.\u0275\u0275nextContext(3);p.\u0275\u0275advance(10),p.\u0275\u0275property("href",tt.getDownloadUrl(E),p.\u0275\u0275sanitizeUrl)("download",tt.getDownloadName(E)),p.\u0275\u0275advance(11),p.\u0275\u0275textInterpolate1(": ",p.\u0275\u0275pipeBind2(22,3,E.uploadDate,tt.dateFormat))}}function kt(x,W){if(1&x){const E=p.\u0275\u0275getCurrentView();p.\u0275\u0275elementStart(0,"a",21),p.\u0275\u0275listener("click",function(){p.\u0275\u0275restoreView(E);const V=p.\u0275\u0275nextContext().$implicit,Et=p.\u0275\u0275nextContext(3);
1return p.\u0275\u0275resetView(Et.openUnitMaintenanceDocumentation(V))}),p.\u0275\u0275text(1),p.\u0275\u0275elementEnd()}if(2&x){const E=p.\u0275\u0275nextContext().$implicit;p.\u0275\u0275advance(),p.\u0275\u0275textInterpolate1(" ",E.metaData.fileName," ")}}function K(x,W){if(1&x){const E=p.\u0275\u0275getCurrentView();p.\u0275\u0275elementStart(0,"a",22),p.\u0275\u0275listener("click",function(){p.\u0275\u0275restoreView(E);const V=p.\u0275\u0275nextContext().$implicit,Et=p.\u0275\u0275nextContext(3);return p.\u0275\u0275resetView(Et.openUnitMaintenanceDocumentation(V))}),p.\u0275\u0275text(1),p.\u0275\u0275elementEnd()}if(2&x){const E=p.\u0275\u0275nextContext().$implicit,tt=p.\u0275\u0275nextContext(3);p.\u0275\u0275property("download",tt.getDownloadUnitMaintenance(E)),p.\u0275\u0275advance(),p.\u0275\u0275textInterpolate1(" ",E.metaData.fileName," ")}}function xt(x,W){if(1&x&&(p.\u0275\u0275elementStart(0,"div",24)(1,"div",5)(2,"div")(3,"strong"),p.\u0275\u0275text(4,"Type"),p.\u0275\u0275elementEnd(),p.\u0275\u0275text(5),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(6,"div")(7,"strong"),p.\u0275\u0275text(8,"Description"),p.\u0275\u0275elementEnd(),p.\u0275\u0275text(9,": "),p.\u0275\u0275conditionalCreate(10,kt,2,1,"a",18)(11,K,2,2,"a",19),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(12,"div")(13,"strong"),p.\u0275\u0275text(14,"Job #"),p.\u0275\u0275elementEnd(),p.\u0275\u0275text(15,": "),p.\u0275\u0275elementStart(16,"span"),p.\u0275\u0275text(17," N/A "),p.\u0275\u0275elementEnd()(),p.\u0275\u0275elementStart(18,"div")(19,"strong"),p.\u0275\u0275text(20,"Date Closed"),p.\u0275\u0275elementEnd(),p.\u0275\u0275text(21,": N/A"),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(22,"div")(23,"strong"),p.\u0275\u0275text(24,"Date Uploaded"),p.\u0275\u0275elementEnd(),p.\u0275\u0275text(25),p.\u0275\u0275pipe(26,"date"),p.\u0275\u0275elementEnd()()()),2&x){const E=W.$implicit,tt=p.\u0275\u0275nextContext(3);p.\u0275\u0275advance(5),p.\u0275\u0275textInterpolate1(": ",tt.getFileTitleUnitMaintenance(E)),p.\u0275\u0275advance(5),p.\u0275\u0275conditional(E.metaData.fileName.endsWith(".pdf")?10:11),p.\u0275\u0275advance(15),p.\u0275\u0275textInterpolate1(": ",p.\u0275\u0275pipeBind2(26,3,E.uploadDate,tt.dateFormat))}}function q(x,W){if(1&x&&(p.\u0275\u0275elementStart(0,"div")(1,"div",23),p.\u0275\u0275repeaterCreate(2,Jt,28,17,"div",24,p.\u0275\u0275repeaterTrackByIdentity),p.\u0275\u0275repeaterCreate(4,bt,23,6,"div",24,p.\u0275\u0275repeaterTrackByIdentity),p.\u0275\u0275repeaterCreate(6,xt,27,6,"div",24,p.\u0275\u0275repeaterTrackByIdentity),p.\u0275\u0275elementEnd()()),2&x){const E=p.\u0275\u0275nextContext(2);p.\u0275\u0275advance(2),p.\u0275\u0275repeater(E.inspectionPaperwork),p.\u0275\u0275advance(2),p.\u0275\u0275repeater(E.detailResponse.inspectionPaperwork),p.\u0275\u0275advance(2),p.\u0275\u0275repeater(E.detailResponse.unitMaintenancePaperwork)}}function Tt(x,W){if(1&x){const E=p.\u0275\u0275getCurrentView();p.\u0275\u0275elementStart(0,"h4"),p.\u0275\u0275text(1," Inspection Paperwork "),p.\u0275\u0275elementStart(2,"i",10),p.\u0275\u0275listener("click",function(){p.\u0275\u0275restoreView(E);const V=p.\u0275\u0275nextContext();
1return p.\u0275\u0275resetView(V.startInspectionTour())}),p.\u0275\u0275elementEnd()(),p.\u0275\u0275template(3,Dt,21,4,"div",11)(4,q,8,0,"div",12)}2&x&&(p.\u0275\u0275advance(3),p.\u0275\u0275property("isMobileView",!1),p.\u0275\u0275advance(),p.\u0275\u0275property("isMobileView",!0))}function _t(x,W){1&x&&(p.\u0275\u0275elementStart(0,"button",27),p.\u0275\u0275text(1,"Confirm"),p.\u0275\u0275elementEnd())}function dt(x,W){}function Mt(x,W){1&x&&p.\u0275\u0275text(0," Altec is now providing access to inspection forms through Altec Connect. We strive to provide accurate information. However, we ask that you practice verification to ensure the information that has been accessed is correct. If you detect any errors, please report them to [email protected]\n")}T.DocumentationTabContentComponent=(()=>{class x{constructor(E,tt,V,Et,nt,Gt,Ct){this.joyrideService=E,this.cookieService=tt,this.router=V,this.srService=Et,this.sanitizer=nt,this.integrationClient=Gt,this.loadingService=Ct,this.inspectionPaperwork=[],this.dateFormat=b.GlobalConstants.DATE_FORMAT,this.inspectionCheck=!1,this.unsubscribe$=new v.Subject}ngOnInit(){}ngAfterViewInit(){(this.inspectionPaperwork?.length>0||this.detailResponse.inspectionPaperwork?.length>0)&&!this.inspectionCheck&&this.inspectionTourCheck()}inspectionTourCheck(){this.inspectionCheck=!0,""===this.getInspectionTourCookie()&&this.startInspectionTour()}startInspectionTour(){this.joyrideService.startTour({steps:["inspectionPaperworkJoyride"],stepDefaultPosition:"bottom",themeColor:"#212f23"}).subscribe(E=>{},E=>{},()=>{this.setInspectionTourCookie()})}getInspectionTourCookie(){return this.cookieService.check("inspectionTour")?this.cookieService.get("inspectionTour"):""}setInspectionTourCookie(){this.cookieService.set("inspectionTour","seen")}openReferenceMaterial(E){this.loadingService.start(),this.integrationClient.request("/fleet/downloadManual",{manualId:E.manualId,instanceId:this.detailResponse.instanceId,pdfTitle:E.name}).pipe((0,D.tap)(()=>{this.loadingService.stop()}),(0,D.takeUntil)(this.unsubscribe$)).subscribe(V=>{this.downloadFile(V.fileUrl,E.name||"manual.pdf")})}openInspectionPaperwork(E){this.loadingService.start(),this.integrationClient.request("/fleet/downloadInspectionDocument",E).pipe((0,D.tap)(()=>{this.loadingService.stop()}),(0,D.takeUntil)(this.unsubscribe$)).subscribe(tt=>{const V=this.getFileDescription(E)+".pdf";this.downloadFile(tt.fileUrl,V)})}openUnitMaintenanceDocumentation(E){this.loadingService.start(),this.integrationClient.request("/fleet/downloadInspectionDocument",E).pipe((0,D.tap)(()=>{this.loadingService.stop()}),(0,D.takeUntil)(this.unsubscribe$)).subscribe(tt=>{this.downloadFile(tt.fileUrl,E.metaData.fileName||"unit_maintenance.pdf")})}openServiceInspectionPaperwork(E){this.loadingService.start(!1),this.srService.getInspectionPaperworkUrl(E.attachedDocumentId,E.fileName).pipe((0,D.tap)(tt=>{this.loadingService.stop()}),(0,D.takeUntil)(this.unsubscribe$)).subscribe(tt=>{this.downloadFile(tt.fileUrl,E.fileName)})}getDownloadUrl(E){return this.sanitizer.bypassSecurityTrustResourceUrl("data:application/octet-stream;base64,"+E.base64)}getDownloadName(E){let tt=E.metaData["file-name"].split(".");return"Final_Assembly_Dielectric_Test_Form."+tt[tt.length-1]}getDownloadUnitMaintenance(E){let tt=E.metaData.fileName.split(".");return"Unit_Maintenance."+tt[tt.length-1]}getFileTitle(E){switch(E.metaData.finalInspectionDocumentParent??E.metaData.finalInspectionDocument){case"DOT":return"DOT Inspection-Initial";case"Dielectric":return"Dielectric Inspection-Initial";default:return"Other Documents"}}getFileTitleUnitMaintenance(E){switch(E.metaData.fleetCategoryId){case"2":return"State/Province Required Inspections";case"6":return"Dielectric Inspection - Hand Controller";case"7":return"Dielectric Inspection - Liner";case"8":return"Dielectric Inspection - Unit";case"9":return"DOT/CVI";case"10":return"Global - New Unit Inspections";case"16":return"PM (Preventative Maintenance Inspection)"}}getFileDescription(E){switch(E.metaData.finalInspectionDocumentParent??E.metaData.finalInspectionDocument){case"DOT":return"Final Assembly DOT Test Form";case"Dielectric":return"Final Assembly Dielectric Test Form";default:return"Other Documents"}}downloadFile(E,tt){window.open(E,"_blank")||fetch(E).then(Et=>(Et.ok||console.error("Download failed:",Et.statusText),Et.blob())).then(Et=>{const nt=URL.createObjectURL(Et),Gt=document.createElement("a");Gt.href=nt,Gt.download=tt,Gt.style.display="none",document.body.appendChild(Gt),Gt.click(),document.body.removeChild(Gt),setTimeout(()=>URL.revokeObjectURL(nt),100)}).catch(Et=>{console.error("Download failed:",Et),window.open(E,"_blank")}),E.startsWith("blob:")&&setTimeout(()=>URL.revokeObjectURL(E),1e3)}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}static{this.\u0275fac=function(tt){return new(tt||x)(p.\u0275\u0275directiveInject(J.JoyrideService),p.\u0275\u0275directiveInject(lt.CookieService),p.\u0275\u0275directiveInject(r.Router),p.\u0275\u0275directiveInject(I.ServicesService),p.\u0275\u0275directiveInject(vt.DomSanitizer),p.\u0275\u0275directiveInject(C.IntegrationClientService),p.\u0275\u0275directiveInject(ht.Loa
1dingService))}}static{this.\u0275cmp=p.\u0275\u0275defineComponent({type:x,selectors:[["altecConnect-documentation-tab-content"]],inputs:{detailResponse:"detailResponse",inspectionPaperwork:"inspectionPaperwork"},standalone:!1,decls:9,vars:3,consts:[["doneButton",""],["counter",""],["inspectionPaperworkJoyride",""],[3,"click"],[1,"row"],[1,"col-12"],[1,"table","table-bordered","table-striped"],[1,"col-sm-3"],[1,"col-sm-9"],[1,"a-tag-color",3,"click","gaEvent"],["aria-hidden","true",1,"fa","fa-question-circle","tour-icon","pointer",3,"click"],["joyrideStep","inspectionPaperworkJoyride",3,"stepContent","doneTemplate","counterTemplate","title",4,"isMobileView"],[4,"isMobileView"],["joyrideStep","inspectionPaperworkJoyride",3,"stepContent","doneTemplate","counterTemplate","title"],[1,"col-sm-4"],[1,"col-sm-1","text-center"],[3,"routerLink","gaEvent"],[1,"col-sm-2"],["target","_blank",1,"cursor-pointer","a-tag-color"],[1,"a-tag-color",3,"download"],[1,"col-sm-2","text-center"],["target","_blank",1,"cursor-pointer","a-tag-color",3,"click"],[1,"a-tag-color",3,"click","download"],[1,"fleet-table"],[1,"fleet-row"],[1,"a-tag-color",3,"click"],[3,"href","download"],["type","button",1,"btn","btn-altec"]],template:function(tt,V){1&tt&&(p.\u0275\u0275conditionalCreate(0,ft,15,0,"div"),p.\u0275\u0275conditionalCreate(1,ot,4,0,"div"),p.\u0275\u0275conditionalCreate(2,Tt,5,2),p.\u0275\u0275template(3,_t,2,0,"ng-template",null,0,p.\u0275\u0275templateRefExtractor)(5,dt,0,0,"ng-template",null,1,p.\u0275\u0275templateRefExtractor)(7,Mt,1,0,"ng-template",null,2,p.\u0275\u0275templateRefExtractor)),2&tt&&(p.\u0275\u0275conditional(V.detailResponse.referenceMaterials&&V.detailResponse.referenceMaterials.length>0?0:-1),p.\u0275\u0275advance(),p.\u0275\u0275conditional(V.detailResponse.referenceMaterials&&0!==V.detailResponse.referenceMaterials.length||V.inspectionPaperwork&&0!==(null==V.inspectionPaperwork?null:V.inspectionPaperwork.length)||V.detailResponse.inspectionPaperwork&&0!==(null==V.detailResponse.inspectionPaperwork?null:V.detailResponse.inspectionPaperwork.length)?-1:1),p.\u0275\u0275advance(),p.\u0275\u0275conditional((null==V.inspectionPaperwork?null:V.inspectionPaperwork.length)>0||(null==V.detailResponse.inspectionPaperwork?null:V.detailResponse.inspectionPaperwork.length)>0||(null==V.detailResponse.unitMaintenancePaperwork?null:V.detailResponse.unitMaintenancePaperwork.length)>0?2:-1))},dependencies:[F.GaEventDirective,r.RouterLink,ct.SelectiveView,J.JoyrideDirective,at.DatePipe],styles:["td[_ngcontent-%COMP%]{border-top:0!important;padding:15px 8px!important;vertical-align:middle!important}th[_ngcontent-%COMP%]{border-bottom:0!important;position:sticky;top:0;z-index:1;background:#fff}.table-container[_ngcontent-%COMP%]{overflow-y:auto}@media(min-width:768px){.table-container[_ngcontent-%COMP%]{height:260px}}@media(max-width:767px){.table-container[_ngcontent-%COMP%]{height:400px}}[_ngcontent-%COMP%]:root{--bs-gutter-x: 1.5rem;--bs-gutter-y: 1.5rem}.d-flex[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{float:none}.col[_ngcontent-%COMP%]{flex:1 0 0;padding-left:var(--bs-gutter-x, 1.5rem);padding-right:var(--bs-gutter-x, 1.5rem)}@media only screen and (min-width:576px){.col-sm-auto[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;max-width:none}}@media only screen and (min-width:768px){.col-md-auto[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;max-width:none}}.col-auto[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;max-width:100%;padding-left:var(--bs-gutter-x, 1.5rem);padding-right:var(--bs-gutter-x, 1.5rem)}.justify-content-center[_ngcontent-%COMP%]{justify-content:center}.justify-content-end[_ngcontent-%COMP%]{justify-content:end}.align-items-center[_ngcontent-%COMP%]{align-items:center}.align-items-end[_ngcontent-%COMP%]{align-items:end}.flex-column-reverse[_ngcontent-%COMP%]{flex-direction:column-reverse}.d-flex[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}@media only screen and (min-width:768px){.d-md-block[_ngcontent-%COMP%]{display:block}}@media only screen and (min-width:768px){.d-md-none[_ngcontent-%COMP%]{display:none}}@media only screen and (min-width:768px){.d-md-flex[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}}@media only screen and (min-width:992px){.d-lg-none[_ngcontent-%COMP%]{display:none!important}}@media only screen and (min-width:992px){.d-lg-block[_ngcontent-%COMP%]{display:block!important}}.w-100[_ngcontent-%COMP%]{width:100%!important}.h-100[_ngcontent-%COMP%]{height:100%!important}.px-3[_ngcontent-%COMP%]{padding-left:15px!important;padding-right:15px!important}.pr-0[_ngcontent-%COMP%]{padding-right:0!important}.pl-0[_ngcontent-%COMP%]{padding-left:0!important}.pt-3[_ngcontent-%COMP%]{padding-top:1rem}.pb-3[_ngcontent-%COMP%]{padding-bottom:1rem}.mb-3[_ngcontent-%COMP%]{margin-bottom:1rem}.pb-2[_ngcontent-%COMP%]{padding-bottom:.5rem}@media print{.no-print[_ngcontent-%COMP%]{display:none!important}}.m-0[_ngcontent-%COMP%]{margin:0!important}.mt-0[_ngcontent-%COMP%]{margin-top:0!important}.mb-0[_ngcontent-%COMP%]{margin-bottom:0!important}.ms-0[_ngcontent-%COMP%]{margin-left:0!important}.me-0[_ngcontent-%COMP%]{margin-right:0!important}.mx-0[_ngcontent-%COMP%]{margin-left:0!important;margin-right:0!important}.my-0[_ngcontent-%COMP%]{margin-top:0!important;margin-bottom:0!important}.p-0[_ngcontent-%COMP%]{padding:0!important}.pt-0[_ngcontent-%COMP%]{padding-top:0!important}.pb-0[_ngcontent-%COMP%]{padding-bottom:0!important}.ps-0[_ngcontent-%COMP%]{padding-left:0!important}.pe-0[_ngcontent-%COMP%]{padding-right:0!important}.px-0[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.py-0[_ngcontent-%COMP%]{padding-top:0!important;padding-bottom:0!important}.m-1[_ngcontent-%COMP%]{margin:.25rem!important}.mt-1[_ngcontent-%COMP%]{margin-top:.25rem!important}.mb-1[_ngcontent-%COMP%]{margin-bottom:.25rem!important}.ms-1[_ngcontent-%COMP%]{margin-left:.25rem!important}.me-1[_ngcontent-%COMP%]{margin-right:.25rem!important}.mx-1[_ngcontent-%COMP%]{margin-left:.25rem!important;margin-right:.25rem!important}.my-1[_ngcontent-%COMP%]{margin-top:.25rem!important;margin-bottom:.25rem!important}.p-1[_ngcontent-%COMP%]{padding:.25rem!important}.pt-1[_ngcontent-%COMP%]{padding-top:.25rem!important}.pb-1[_ngcontent-%COMP%]{padding-bottom:.25rem!important}.ps-1[_ngcontent-%COMP%]{padding-left:.25rem!important}.pe-1[_ngcontent-%COMP%]{padding-right:.25rem!important}.px-1[_ngcontent-%COMP%]{padding-left:.25rem!important;padding-right:.25rem!important}.py-1[_ngcontent-%COMP%]{padding-top:.25rem!important;padding-bottom:.25rem!important}.m-2[_ngcontent-%COMP%]{margin:.5rem!important}.mt-2[_ngcontent-%COMP%]{margin-top:.5rem!important}.mb-2[_ngcontent-%COMP%]{margin-bottom:.5rem!important}.ms-2[_ngcontent-%COMP%]{margin-left:.5rem!important}.me-2[_ngcontent-%COMP%]{margin-right:.5rem!important}.mx-2[_ngcontent-%COMP%]{margin-left:.5rem!important;margin-right:.5rem!important}.my-2[_ngcontent-%COMP%]{margin-top:.5rem!important;margin-bottom:.5rem!important}.p-2[_ngcontent-%COMP%]{padding:.5rem!important}.pt-2[_ngcontent-%COMP%]{padding-top:.5rem!important}.pb-2[_ngcontent-%COMP%]{padding-bottom:.5rem!important}.ps-2[_ngcontent-%COMP%]{padding-left:.5rem!important}
1.pe-2[_ngcontent-%COMP%]{padding-right:.5rem!important}.px-2[_ngcontent-%COMP%]{padding-left:.5rem!important;padding-right:.5rem!important}.py-2[_ngcontent-%COMP%]{padding-top:.5rem!important;padding-bottom:.5rem!important}.m-3[_ngcontent-%COMP%]{margin:1rem!important}.mt-3[_ngcontent-%COMP%]{margin-top:1rem!important}.mb-3[_ngcontent-%COMP%]{margin-bottom:1rem!important}.ms-3[_ngcontent-%COMP%]{margin-left:1rem!important}.me-3[_ngcontent-%COMP%]{margin-right:1rem!important}.mx-3[_ngcontent-%COMP%]{margin-left:1rem!important;margin-right:1rem!important}.my-3[_ngcontent-%COMP%]{margin-top:1rem!important;margin-bottom:1rem!important}.p-3[_ngcontent-%COMP%]{padding:1rem!important}.pt-3[_ngcontent-%COMP%]{padding-top:1rem!important}.pb-3[_ngcontent-%COMP%]{padding-bottom:1rem!important}.ps-3[_ngcontent-%COMP%]{padding-left:1rem!important}.pe-3[_ngcontent-%COMP%]{padding-right:1rem!important}.px-3[_ngcontent-%COMP%]{padding-left:1rem!important;padding-right:1rem!important}.py-3[_ngcontent-%COMP%]{padding-top:1rem!important;padding-bottom:1rem!important}.m-4[_ngcontent-%COMP%]{margin:1.5rem!important}.mt-4[_ngcontent-%COMP%]{margin-top:1.5rem!important}.mb-4[_ngcontent-%COMP%]{margin-bottom:1.5rem!important}.ms-4[_ngcontent-%COMP%]{margin-left:1.5rem!important}.me-4[_ngcontent-%COMP%]{margin-right:1.5rem!important}.mx-4[_ngcontent-%COMP%]{margin-left:1.5rem!important;margin-right:1.5rem!important}.my-4[_ngcontent-%COMP%]{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.p-4[_ngcontent-%COMP%]{padding:1.5rem!important}.pt-4[_ngcontent-%COMP%]{padding-top:1.5rem!important}.pb-4[_ngcontent-%COMP%]{padding-bottom:1.5rem!important}.ps-4[_ngcontent-%COMP%]{padding-left:1.5rem!important}.pe-4[_ngcontent-%COMP%]{padding-right:1.5rem!important}.px-4[_ngcontent-%COMP%]{padding-left:1.5rem!important;padding-right:1.5rem!important}.py-4[_ngcontent-%COMP%]{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.m-5[_ngcontent-%COMP%]{margin:3rem!important}.mt-5[_ngcontent-%COMP%]{margin-top:3rem!important}.mb-5[_ngcontent-%COMP%]{margin-bottom:3rem!important}.ms-5[_ngcontent-%COMP%]{margin-left:3rem!important}.me-5[_ngcontent-%COMP%]{margin-right:3rem!important}.mx-5[_ngcontent-%COMP%]{margin-left:3rem!important;margin-right:3rem!important}.my-5[_ngcontent-%COMP%]{margin-top:3rem!important;margin-bottom:3rem!important}.p-5[_ngcontent-%COMP%]{padding:3rem!important}.pt-5[_ngcontent-%COMP%]{padding-top:3rem!important}.pb-5[_ngcontent-%COMP%]{padding-bottom:3rem!important}.ps-5[_ngcontent-%COMP%]{padding-left:3rem!important}.pe-5[_ngcontent-%COMP%]{padding-right:3rem!important}.px-5[_ngcontent-%COMP%]{padding-left:3rem!important;padding-right:3rem!important}.py-5[_ngcontent-%COMP%]{padding-top:3rem!important;padding-bottom:3rem!important}.table[_ngcontent-%COMP%]{margin-bottom:15px}.text-center[_ngcontent-%COMP%]{text-align:center}a[_ngcontent-%COMP%]{cursor:pointer}.a-tag-color[_ngcontent-%COMP%]{color:#1d81b0}"]})}}return x})()},12287(Ht,T,d){"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.FleetDetailSummaryBoxComponent=void 0;const S=d(31635),N=S.__importDefault(d(97586)),o=(d(91898),d(97377),S.__importStar(d(49849))),b=S.__importStar(d(91898)),g=S.__importStar(d(97377)),h=S.__importStar(d(92325)),D=S.__importStar(d(7901)),f=S.__importStar(d(47291)),v=S.__importStar(d(8606)),p=x=>[x],J=x=>({eventCategory:"Unit Summary Box",eventAction:"Edit Unit",eventLabel:x}),lt=(x,W)=>({eventCategory:x,eventAction:"Click to Register Unit",eventLabel:W});function r(x,W){if(1&x&&(o.\u0275\u0275elementStart(0,"div",10),o.\u0275\u0275text(1),o.\u0275\u0275elementEnd()),2&x){const E=o.\u0275\u0275nextContext(3);o.\u0275\u0275advance(),o.\u0275\u0275textInterpolate1(" ",E.detailResponse.customerName," ")}}function I(x,W){if(1&x&&(o.\u0275\u0275elementStart(0,"span")(1,"h3"),o.\u0275\u0275text(2),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(3,"div",8),o.\u0275\u0275conditionalCreate(4,r,2,1,"div",10),o.\u0275\u0275elementEnd()()),2&x){const E=o.\u0275\u0275nextContext(2);o.\u0275\u0275advance(2),o.\u0275\u0275textInterpolate2("Model ",E.detailResponse.model,", #",E.detailResponse.customerVehicleNumber),o.\u0275\u0275advance(2),o.\u0275\u0275conditional(E.statefulService.isParentHoldingAndViewingAll()&&null!=E.detailResponse.customerName?4:-1)}}function vt(x,W){if(1&x&&(o.\u0275\u0275elementStart(0,"div",10),o.\u0275\u0275text(1),o.\u0275\u0275elementEnd()),2&x){const E=o.\u0275\u0275nextContext(3);o.\u0275\u0275advance(),o.\u0275\u0275textInterpolate1(" ",E.detailResponse.customerName," ")}}function C(x,W){if(1&x&&(o.\u0275\u0275elementStart(0,"span")(1,"h3"),o.\u0275\u0275text(2),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(3,"div",8),o.\u0275\u0275conditionalCreate(4,vt,2,1,"div",10),o.\u0275\u0275elementEnd()()),2&x){const E=o.\u0275\u0275nextContext(2);o.\u0275\u0275advance(2),o.\u0275\u0275textInterpolate2("Model ",E.detailResponse.model,", #",E.detailResponse.unitSeri
1al),o.\u0275\u0275advance(2),o.\u0275\u0275conditional(E.statefulService.isParentHoldingAndViewingAll()&&null!=E.detailResponse.customerName?4:-1)}}function ht(x,W){if(1&x&&(o.\u0275\u0275elementStart(0,"span"),o.\u0275\u0275conditionalCreate(1,I,5,3,"span"),o.\u0275\u0275conditionalCreate(2,C,5,3,"span"),o.\u0275\u0275elementEnd()),2&x){const E=o.\u0275\u0275nextContext();o.\u0275\u0275advance(),o.\u0275\u0275conditional(E.detailResponse.unitInFleet?1:-1),o.\u0275\u0275advance(),o.\u0275\u0275conditional(E.detailResponse.unitInFleet?-1:2)}}function F(x,W){if(1&x&&(o.\u0275\u0275elementStart(0,"div",4)(1,"div",11),o.\u0275\u0275text(2),o.\u0275\u0275pipe(3,"truncate"),o.\u0275\u0275elementEnd()()),2&x){const E=o.\u0275\u0275nextContext();o.\u0275\u0275advance(2),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(3,1,E.detailResponse.customerName)," ")}}function ct(x,W){1&x&&(o.\u0275\u0275elementStart(0,"strong",14),o.\u0275\u0275text(1," Stop unit operation until the Mandatory Action Bulletin is resolved. "),o.\u0275\u0275elementEnd())}function at(x,W){1&x&&(o.\u0275\u0275elementStart(0,"strong",14),o.\u0275\u0275text(1," Stop unit operation until the service condition is resolved. "),o.\u0275\u0275elementEnd())}function rt(x,W){1&x&&(o.\u0275\u0275elementStart(0,"strong",14),o.\u0275\u0275text(1," If this vehicle is no longer in operation, please contact Altec to remove from customer records. "),o.\u0275\u0275elementEnd())}function X(x,W){1&x&&(o.\u0275\u0275elementStart(0,"strong",14),o.\u0275\u0275text(1," If this vehicle is no longer in operation, please contact Altec to remove from customer records. "),o.\u0275\u0275elementEnd())}function gt(x,W){1&x&&(o.\u0275\u0275elementStart(0,"strong",14),o.\u0275\u0275text(1," Resolve requested action from open CSN. "),o.\u0275\u0275elementEnd())}function mt(x,W){if(1&x&&(o.\u0275\u0275elementStart(0,"span")(1,"div",12)(2,"span"),o.\u0275\u0275element(3,"i",13),o.\u0275\u0275elementEnd(),o.\u0275\u0275conditionalCreate(4,ct,2,0,"strong",14),o.\u0275\u0275conditionalCreate(5,at,2,0,"strong",14),o.\u0275\u0275conditionalCreate(6,rt,2,0,"strong",14),o.\u0275\u0275conditionalCreate(7,X,2,0,"strong",14),o.\u0275\u0275conditionalCreate(8,gt,2,0,"strong",14),o.\u0275\u0275elementEnd()()),2&x){const E=o.\u0275\u0275nextContext();o.\u0275\u0275advance(4),o.\u0275\u0275conditional("MAB"===E.detailResponse.warning?4:-1),o.\u0275\u0275advance(),o.\u0275\u0275conditional("RED_TAG"===E.detailResponse.warning?5:-1),o.\u0275\u0275advance(),o.\u0275\u0275conditional("STOLEN"===E.detailResponse.warning?6:-1),o.\u
10275\u0275advance(),o.\u0275\u0275conditional("TOTALED"===E.detailResponse.warning?7:-1),o.\u0275\u0275advance(),o.\u0275\u0275conditional("UNRESOLVED_CSN"===E.detailResponse.warning?8:-1)}}function St(x,W){1&x&&(o.\u0275\u0275elementStart(0,"span")(1,"div",12)(2,"span"),o.\u0275\u0275element(3,"i",13),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(4,"strong",14),o.\u0275\u0275text(5," Unit not serviceable by Altec. "),o.\u0275\u0275elementEnd()()())}function ft(x,W){1&x&&(o.\u0275\u0275elementStart(0,"span")(1,"div",12)(2,"span"),o.\u0275\u0275element(3,"i",13),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(4,"strong",14),o.\u0275\u0275text(5," Replacement recommended. No service, parts, or support available. "),o.\u0275\u0275elementEnd()()())}function ot(x,W){1&x&&(o.\u0275\u0275elementStart(0,"div",6)(1,"span",15),o.\u0275\u0275text(2," Rental "),o.\u0275\u0275elementEnd()())}function B(x,W){if(1&x&&(o.\u0275\u0275elementStart(0,"div")(1,"strong"),o.\u0275\u0275text(2,"JEMS Model"),o.\u0275\u0275elementEnd(),o.\u0275\u0275text(3),o.\u0275\u0275elementEnd()),2&x){const E=o.\u0275\u0275nextContext();o.\u0275\u0275advance(3),o.\u0275\u0275textInterpolate1(": ",E.jemsModel)}}function Ot(x,W){if(1&x&&(o.\u0275\u0275elementStart(0,"div")(1,"strong"),o.\u0275\u0275text(2,"Customer Vehicle Number"),o.\u0275\u0275elementEnd(),o.\u0275\u0275text(3),o.\u0275\u0275elementEnd()),2&x){const E=o.\u0275\u0275nextContext();o.\u0275\u0275advance(3),o.\u0275\u0275textInterpolate1(": ",E.detailResponse.customerVehicleNumber)}}function $(x,W){if(1&x){const E=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"i",19),o.\u0275\u0275listener("click",function(){o.\u0275\u0275restoreView(E);const V=o.\u0275\u0275nextContext(3);return o.\u0275\u0275resetView(V.showChassisInformation=!V.showChassisInformation)}),o.\u0275\u0275elementEnd()}}function j(x,W){if(1&x){const E=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"i",20),o.\u0275\u0275listener("click",function(){o.\u0275\u0275restoreView(E);const V=o.\u0275\u0275nextContext(3);return o.\u0275\u0275resetView(V.showChassisInformation=!V.showChassisInformation)}),o.\u0275\u0275elementEnd()}}function G(x,W){if(1&x&&(o.\u0275\u0275conditionalCreate(0,$,1,0,"i",17),o.\u0275\u0275conditionalCreate(1,j,1,0,"i",18)),2&x){const E=o.\u0275\u0275nextContext(2);o.\u0275\u0275conditional(E.showChassisInformation?-1:0),o.\u0275\u0275advance(),o.\u0275\u0275conditional(E.showChassisInformation?1:-1)}}function k(x,W){if(1&x&&(o.\u0275\u0275elementStart(0,"span")(1,"div",16)(2,"strong"),o.\u0275\u0275text(3,"F/A Serial #"),o.\u0275\u0275elementEnd(),o.\u0275\u0275text(4),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(5,"div")(6,"strong"),o.\u0275\u0275text(7,"Chassis VIN"),o.\u0275\u0275elementEnd(),o.\u0275\u0275text(8),o.\u0275\u0275conditionalCreate(9,G,2,2),o.\u0275\u0275elementEnd()()),2&x){const E=o.\u0275\u0275nextContext();o.\u0275\u0275advance(4),o.\u0275\u0275textInterpolate1(": ",E.detailResponse.faSerial," "),o.\u0275\u0275advance(4),o.\u0275\u0275textInterpolate1(": ",E.detailResponse.chassisVin," "),o.\u0275\u0275advance(),o.\u0275\u0275conditional(null!=E.detailResponse.unitSpecs&&E.detailResponse.unitSpecs.length>0?9:-1)}}function R(x,W){if(1&x&&(o.\u0275\u0275elementStart(0,"div")(1,"strong"),o.\u0275\u0275text(2),o.\u0275\u0275elementEnd(),o.\u0275\u0275text(3),o.\u0275\u0275elementEnd()),2&x){const E=W.$implicit;o.\u0275\u0275advance(2),o.\u0275\u0275textInterpolate(E.name),o.\u0275\u0275advance(),o.\u0275\u0275textInterpolate1(": ",E.value)}}function U(x,W){if(1&x&&(o.\u0275\u0275elementStart(0,"div"),o.\u0275\u0275repeaterCreate(1,R,4,2,"div",null,o.\u0275\u0275repeaterTrackByIdentity),o.\u0275\u0275elementEnd()),2&x){const E=o.\u0275\u0275nextContext();o.\u0275\u0275advance(),o.\u0275\u0275repeater(E.detailResponse.unitSpecs)}}function st(x,W){if(1&x&&(o.\u0275\u0275elementStart(0,"span")(1,"div")(2,"strong"),o.\u0275\u0275text(3,"F/A Serial #"),o.\u0275\u0275elementEnd(),o.\u0275\u0275text(4),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(5,"div")(6,"strong"),o.\u0275\u0275text(7,"Chassis VIN"),o.\u0275\u0275elementEnd(),o.\u0275\u0275text(8),o.\u0275\u0275elementEnd()()),2&x){const E=o.\u0275\u0275nextContext();o.\u0275\u0275advance(4),o.\u0275\u0275textInterpolate1(": ",E.detailResponse.faSerial),o.\u0275\u0275advance(4),o.\u0275\u0275textInterpolate1(": ",E.detailResponse.chassisVin)}}function Dt(x,W){if(1&x&&(o.\u0275\u0275elementStart(0,"div")(1,"strong"),o.\u0275\u0275text(2,"Rental Start"),o.\u0275\u0275elementEnd(),o.\u0275\u0275text(3),o.\u0275\u0275elementEnd()),2&x){const E=o.\u0275\u0275nextContext(2);o.\u0275\u0275advance(3),o.\u0275\u0275textInterpolate1(": ",E.rentalStartDateStr())}}function Jt(x,W){if(1&x&&(o.\u0275\u0275elementStart(0,"div")(1,"strong"),o.\u0275\u0275text(2,"In Service"),o.\u0275\u0275elementEnd(),o.\u0275\u0275text(3),o.\u0275\u0275elementEnd()),2&x){const E=o.\u0275\u0275nextContext(2);o.\u0275\u0275advance(3),o.\u0275\u0275textInterpolate1(": ",E.serviceDateStr())}}function bt(x,W){if(1&x&&(o.\u0275\u0275elementStart(0,"div")(1,"strong"),o.\u0275\u0275text(2,"Total Boom Out Of Rest Time"),o.\u0275\u0275elementEnd(),o.\u0275\u0275text(3),o.\u0275\u0275elementEnd()),2&x){const E=o.\u0275\u0275nextContext(2);o.\u0275\u0275advance(3),o.\u0275\u0275textInterpolate1(": ",E.boomHours," hrs")}}function kt(x,W){if(1&x&&(o.\u0275\u0275elementStart(0,"span"),o.\u0275\u0275conditionalCreate(1,Dt,4,1,"div")(2,Jt,4,1,"div"),o.\u0275\u0275conditionalCreate(3,bt,4,1,"div"),o.\u0275\u0275elementStart(4,"div")(5,"strong"),o.\u0275\u0275text(6,"Location"),o.\u0275\u0275elementEnd(),o.\u0275\u0275text(7,": "),o.\u0275\u0275elementStart(8,"span",21),o.\u0275\u0275text(9),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(10,"span",21),o.\u0275\u0275text(11),o.\u
10275\u0275elementEnd(),o.\u0275\u0275elementStart(12,"span",21),o.\u0275\u0275text(13),o.\u0275\u0275elementEnd()()()),2&x){const E=o.\u0275\u0275nextContext();o.\u0275\u0275advance(),o.\u0275\u0275conditional(E.detailResponse.globalRental?1:2),o.\u0275\u0275advance(2),o.\u0275\u0275conditional(E.boomHours?3:-1),o.\u0275\u0275advance(6),o.\u0275\u0275textInterpolate(E.detailResponse.currentLocation.address1),o.\u0275\u0275advance(2),o.\u0275\u0275textInterpolate(E.detailResponse.currentLocation.address2),o.\u0275\u0275advance(2),o.\u0275\u0275textInterpolate(E.locationStr())}}function K(x,W){if(1&x&&(o.\u0275\u0275elementStart(0,"span")(1,"div",22)(2,"a",23),o.\u0275\u0275text(3," View Unit Information "),o.\u0275\u0275elementEnd()()()),2&x){const E=o.\u0275\u0275nextContext();o.\u0275\u0275advance(2),o.\u0275\u0275property("routerLink",o.\u0275\u0275pureFunction1(1,p,"/pages/dashboard/equipment/fleet/details/"+E.detailResponse.instanceId))}}function xt(x,W){if(1&x&&(o.\u0275\u0275elementStart(0,"div",26)(1,"a",27),o.\u0275\u0275text(2," Edit Unit Information "),o.\u0275\u0275elementEnd()()),2&x){const E=o.\u0275\u0275nextContext(2);o.\u0275\u0275advance(),o.\u0275\u0275property("gaEvent",o.\u0275\u0275pureFunction1(2,J,E.detailResponse.unitSerial))("routerLink",o.\u0275\u0275pureFunction1(4,p,"/pages/dashboard/equipment/fleet/edit/"+E.detailResponse.instanceId))}}function q(x,W){if(1&x&&(o.\u0275\u0275elementStart(0,"div",28)(1,"a",27),o.\u0275\u0275text(2," Edit Unit Information "),o.\u0275\u0275elementEnd()()),2&x){const E=o.\u0275\u0275nextContext(2);o.\u0275\u0275advance(),o.\u0275\u0275property("gaEvent",o.\u0275\u0275pureFunction1(2,J,E.detailResponse.unitSerial))("routerLink",o.\u0275\u0275pureFunction1(4,p,"/pages/dashboard/equipment/fleet/edit/"+E.detailResponse.instanceId))}}function Tt(x,W){1&x&&(o.\u0275\u0275elementStart(0,"span"),o.\u0275\u0275template(1,xt,3,6,"div",24)(2,q,3,6,"div",25),o.\u0275\u0275elementEnd()),2&x&&(o.\u0275\u0275advance(),o.\u0275\u0275property("hasPrivilege","B2B_Fleet_Update"),o.\u0275\u0275advance(),o.\u0275\u0275property("hasPrivilege","B2B_Fleet_Update"))}function _t(x,W){1&x&&(o.\u0275\u0275elementStart(0,"div",29)(1,"a",30),o.\u0275\u0275text(2," Register This Unit "),o.\u0275\u0275elementEnd()())}function dt(x,W){if(1&x&&(o.\u0275\u0275elementStart(0,"div",29)(1,"a",31),o.\u0275\u0275text(2,"Register This Unit "),o.\u0275\u0275elementEnd()()),2&x){const E=o.\u0275\u0275nextContext(2);o.\u0275\u0275advance(),o.\u0275\u0275property("gaEvent",o.\u0275\u0275pureFunction2(1,lt,E.detailEventCategory,E.detailResponse.customerVehicleNumber))}}function Mt(x,W){if(1&x&&o.\u0275\u0275conditionalCreate(0,_t,3,0,"div",29)(1,dt,3,4,"div",29),2&x){const E=o.\u0275\u0275nextContext();o.\u0275\u0275conditional(E.disallowCustomerDataModification?0:1)}}T.FleetDetailSummaryBoxComponent=(()=>{class x{constructor(E,tt){this.privilegeService=E,this.statefulService=tt,this.disallowCustomerDataModification=!1,this.showChassisInformation=!1,this.mockUnitDetail={totalPtoEngagedTime:526}}ngOnInit(){this.disallowCustomerDataModification=this.privilegeService.hasPrivilege("Demo_Only_Fleet_Update")}rentalStartDateStr(){return this.detailResponse.rentalStartDate?(0,N.default)(this.detailResponse.rentalStartDate).utc().format("MM/DD/YYYY"):""}serviceDateStr(){return this.detailResponse.inServiceDate?(0,N.default)(this.detailResponse.inServiceDate).utc().format("MM/DD/YYYY"):""}locationStr(){return this.detailResponse.currentLocation?`${this.detailResponse.currentLocation.city}, ${this.detailResponse.currentLocation.state}, ${this.detailResponse.currentLocation.postalCode}`:""}uriContainsFleet(){return window.location.href.indexOf("/fleet/details")>-1}static{this.\u0275fac=function(tt){return new(tt||x)(o.\u0275\u0275directiveInject(b.PrivilegeService),o.\u0275\u0275directiveInject(g.StatefulService))}}static{this.\u0275cmp=o.\u0275\u0275defineComponent({type:x,selectors:[["app-fleet-detail-summary-box"]],inputs:{detailResponse:"detailResponse",hideTitle:"hideTitle",boomHours:"boomHours",jemsModel:"jemsModel"}
1,standalone:!1,decls:40,vars:17,consts:[[1,"unit-page","w-100"],[1,"row"],[1,"col-12"],[1,"col-sm-6"],[1,"me-1","company-label-lg","d-none","d-sm-flex","col-sm-6","align-items-center","justify-content-end"],[1,"unit-detail"],[1,"col-12","col-md-4"],[2,"font-size","16px"],[1,"d-block","d-sm-none"],[1,"mt-3"],[1,"company-label","mt-2","mb-2"],[1,"customer-name"],[1,"pb-1"],[1,"fa","fa-exclamation-triangle","dno"],[1,"media-middle"],[1,"text-global-rental"],["title","Final Assembly Number"],[1,"fa","fa-chevron-down","pointer"],[1,"fa","fa-chevron-up","pointer"],[1,"fa","fa-chevron-down","pointer",3,"click"],[1,"fa","fa-chevron-up","pointer",3,"click"],[1,"location"],[1,"edit-btn"],[1,"btn-altec","btn-block-xs",3,"routerLink"],["class","edit-btn d-none d-sm-block",4,"hasPrivilege"],["class","edit-btn d-block d-sm-none mt-2 pt-2 d-grid","id","editButtonMobile",4,"hasPrivilege"],[1,"edit-btn","d-none","d-sm-block"],[1,"btn-altec",3,"gaEvent","routerLink"],["id","editButtonMobile",1,"edit-btn","d-block","d-sm-none","mt-2","pt-2","d-grid"],[1,"d-grid"],["href","javascript:;","data-bs-toggle","tooltip","data-trigger","click","data-placement","top","title","Submit is disabled",1,"tooltip-large","btn-altec"],["href","https://www.altec.com/service/unit-registration/","target","_blank",1,"btn-altec",3,"gaEvent"]],template:function(tt,V){1&tt&&(o.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",1)(4,"div",3),o.\u0275\u0275conditionalCreate(5,ht,3,2,"span"),o.\u0275\u0275elementEnd(),o.\u0275\u0275conditionalCreate(6,F,4,3,"div",4),o.\u0275\u0275elementEnd(),o.\u0275\u0275conditionalCreate(7,mt,9,5,"span"),o.\u0275\u0275conditionalCreate(8,St,6,0,"span"),o.\u0275\u0275conditionalCreate(9,ft,6,0,"span"),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(10,"div",2)(11,"div",5)(12,"div",1)(13,"div",6)(14,"h5",7),o.\u0275\u0275text(15," Equipment Information "),o.\u0275\u0275elementEnd()(),o.\u0275\u0275conditionalCreate(16,ot,3,0,"div",6),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(17,"div",1)(18,"div",6)(19,"div")(20,"strong"),o.\u0275\u0275text(21,"Model"),o.\u0275\u0275elementEnd(),o.\u0275\u0275text(22),o.\u0275\u0275elementEnd(),o.\u0275\u0275conditionalCreate(23,B,4,1,"div"),o.\u0275\u0275conditionalCreate(24,Ot,4,1,"div"),o.\u0275\u0275elementStart(25,"div")(26,"strong"),o.\u0275\u0275text(27,"Unit Serial #"),o.\u0275\u0275elementEnd(),o.\u0275\u0275text(28),o.\u0275\u0275elementEnd(),o.\u0275\u0275conditionalCreate(29,k,10,3,"span"),o.\u0275\u0275conditionalCreate(30,U,3,0,"div"),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(31,"div",6),o.\u0275\u0275conditionalCreate(32,st,9,2,"span"),o.\u0275\u0275conditionalCreate(33,kt,14,5,"span"),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(34,"div",6)(35,"span",8),o.\u0275\u0275element(36,"div",9),o.\u0275\u0275elementEnd(),o.\u0275\u0275conditionalCreate(37,K,4,3,"span"),o.\u0275\u0275conditionalCreate(38,Tt,3,2,"span"),o.\u0275\u0275conditionalCreate(39,Mt,2,1),o.\u0275\u0275elementEnd()()()()()()),2&tt&&(o.\u0275\u0275advance(5),o.\u0275\u0275conditional(V.hideTitle?-1:5),o.\u0275\u0275advance(),o.\u0275\u0275conditional(V.statefulService.isParentHoldingAndViewingAll()&&null!=V.detailResponse.customerName?6:-1),o.\u
10275\u0275advance(),o.\u0275\u0275conditional(V.detailResponse.warning&&"NONE"!=V.detailResponse.warning?7:-1),o.\u0275\u0275advance(),o.\u0275\u0275conditional("EndOfService"===V.detailResponse.instanceStatus?8:-1),o.\u0275\u0275advance(),o.\u0275\u0275conditional("EndOfProductLife"===V.detailResponse.instanceStatus?9:-1),o.\u0275\u0275advance(7),o.\u0275\u0275conditional(V.detailResponse.globalRental?16:-1),o.\u0275\u0275advance(6),o.\u0275\u0275textInterpolate1(": ",V.detailResponse.model),o.\u0275\u0275advance(),o.\u0275\u0275conditional(V.jemsModel?23:-1),o.\u0275\u0275advance(),o.\u0275\u0275conditional(V.detailResponse.unitInFleet?24:-1),o.\u0275\u0275advance(4),o.\u0275\u0275textInterpolate1(": ",V.detailResponse.unitSerial),o.\u0275\u0275advance(),o.\u0275\u0275conditional(V.detailResponse.unitInFleet?29:-1),o.\u0275\u0275advance(),o.\u0275\u0275conditional(V.showChassisInformation?30:-1),o.\u0275\u0275advance(2),o.\u0275\u0275conditional(V.detailResponse.unitInFleet?-1:32),o.\u0275\u0275advance(),o.\u0275\u0275conditional(V.detailResponse.unitInFleet?33:-1),o.\u0275\u0275advance(4),o.\u0275\u0275conditional(V.detailResponse.unitInFleet&&!V.uriContainsFleet()?37:-1),o.\u0275\u0275advance(),o.\u0275\u0275conditional(V.detailResponse.unitInFleet&&V.uriContainsFleet()?38:-1),o.\u0275\u0275advance(),o.\u0275\u0275conditional(V.detailResponse.unitInFleet?-1:39))},dependencies:[h.GaEventDirective,D.RouterLink,f.HasPrivilegeDirective,v.TruncatePipe],styles:[".unit-page[_ngcontent-%COMP%]{width:100%;max-width:100%}.unit-detail[_ngcontent-%COMP%]{width:100%}#editButtonMobile[_ngcontent-%COMP%] .btn-altec[_ngcontent-%COMP%]{width:-webkit-fill-available;width:-moz-available}.pointer[_ngcontent-%COMP%]:hover{cursor:pointer}.company-label-lg[_ngcontent-%COMP%]{margin:-10px 12px 10px auto}"]})}}return x})()},89419(Ht,T,d){"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.FleetSearchTabularcardComponent=void 0;const S=d(31635),N=S.__importDefault(d(97586)),u=(d(40846),d(24893)),b=(d(51186),d(65041)),h=(d(97377),S.__importStar(d(49849))),D=S.__importStar(d(51186)),f=S.__importStar(d(97377)),v=S.__importStar(d(92325)),p=S.__importStar(d(7901)),J=S.__importStar(d(47291)),lt=S.__importStar(d(57504)),r=S.__importStar(d(60177)),I=S.__importStar(d(8606)),vt=(ut,Qt)=>({eventCategory:ut,eventAction:"Open Fleet Detail Page",eventLabel:Qt}),C=ut=>[ut],ht=(ut,Qt)=>({eventCategory:ut,eventAction:"Open Fleet Detail Page with Parts Breakdown Link",eventLabel:Qt}),F=(ut,Qt)=>({eventCategory:ut,eventAction:"Open Fleet Detail Page with Service Request Link",eventLabel:Qt}),ct=(ut,Qt)=>({eventCategory:ut,eventAction:"Open Fleet Detail Page with APN Link",eventLabel:Qt}),at=(ut,Qt)=>({eventCategory:ut,eventAction:"Open Fleet Detail Page with Documentation Link",eventLabel:Qt}),rt=(ut,Qt)=>({eventCategory:ut,eventAction:"Open Groups & Contacts tab with Groups Link",eventLabel:Qt}),X=(ut,Qt)=>({eventCategory:ut,eventAction:"Open Groups & Contacts tab with Contacts Link",eventLabel:Qt});function gt(ut,Qt){if(1&ut&&(h.\u0275\u0275elementStart(0,"span"),h.\u0275\u0275text(1),h.\u0275\u0275elementEnd()),2&ut){const wt=h.\u0275\u0275nextContext(2);h.\u0275\u0275advance(),h.\u0275\u0275textInterpolate1(" ",null==wt.content?null:wt.content.customerVehicleNumber," ")}}function mt(ut,Qt){1&ut&&(h.\u0275\u0275elementStart(0,"span"),h.\u0275\u0275text(1," None "),h.\u0275\u0275elementEnd())}function St(ut,Qt){if(1&ut&&(h.\u0275\u0275elementStart(0,"a",8)(1,"strong"),h.\u0275\u0275text(2," Customer Vehicle #: "),h.\u0275\u0275conditionalCreate(3,gt,2,1,"span")(4,mt,2,0,"span"),h.\u0275\u0275elementEnd()()),2&ut){const wt=h.\u0275\u0275nextContext();h.\u0275\u0275property("gaEvent",h.\u0275\u0275pureFunction2(3,vt,wt.searchEventCategory,null==wt.content?null:wt.content.customerVehicleNumber))("routerLink",h.\u0275\u0275pureFunction1(6,C,"../details/"+wt.content.instanceId+"/apn")),h.\u0275\u0275advance(3),h.\u0275\u0275conditional(null!=wt.content&&wt.content.customerVehicleNumber?3:4)}}function ft(ut,Qt){if(1&ut&&(h.\u0275\u0275elementStart(0,"span"),h.\u0275\u0275text(1),h.\u0275\u0275elementEnd()),2&ut){const wt=h.\u0275\u0275nextContext(2);h.\u0275\u0275advance(),h.\u0275\u0275textInterpolate1(" ",null==wt.content?null:wt.content.customerVehicleNumber," ")}}function ot(ut,Qt){1&ut&&(h.\u0275\u0275elementStart(0,"span"),h.\u0275\u0275text(1," None "),h.\u0275\u0275elementEnd())}function B(ut,Qt){if(1&ut&&(h.\u0275\u0275elementStart(0,"a",8)(1,"strong"),h.\u0275\u0275text(2," Customer Vehicle #: "),h.\u0275\u0275conditionalCreate(3,ft,2,1,"span")(4,ot,2,0,"span"),h.\u0275\u0275elementEnd()()),2&ut){const wt=h.\u0275\u0275nextContext();
1h.\u0275\u0275property("gaEvent",h.\u0275\u0275pureFunction2(3,vt,wt.searchEventCategory,null==wt.content?null:wt.content.customerVehicleNumber))("routerLink",h.\u0275\u0275pureFunction1(6,C,"../details/"+wt.content.instanceId)),h.\u0275\u0275advance(3),h.\u0275\u0275conditional(null!=wt.content&&wt.content.customerVehicleNumber?3:4)}}function Ot(ut,Qt){if(1&ut&&(h.\u0275\u0275elementStart(0,"a",9),h.\u0275\u0275element(1,"i",25),h.\u0275\u0275elementEnd()),2&ut){const wt=h.\u0275\u0275nextContext();h.\u0275\u0275property("routerLink",h.\u0275\u0275pureFunction1(1,C,"../details/"+wt.content.instanceId+"/analytics"))}}function $(ut,Qt){if(1&ut&&(h.\u0275\u0275elementStart(0,"a",9)(1,"span",26),h.\u0275\u0275text(2,"DTC"),h.\u0275\u0275elementEnd()()),2&ut){const wt=h.\u0275\u0275nextContext();h.\u0275\u0275property("routerLink",h.\u0275\u0275pureFunction1(1,C,"../details/"+wt.content.instanceId+"/analytics/dtcLog"))}}function j(ut,Qt){1&ut&&h.\u0275\u0275text(0,"Resolve requested action from open CSN")}function G(ut,Qt){if(1&ut&&(h.\u0275\u0275elementStart(0,"span",27),h.\u0275\u0275template(1,j,1,0,"ng-template",null,0,h.\u0275\u0275templateRefExtractor),h.\u0275\u0275elementStart(3,"span",28),h.\u0275\u0275element(4,"i",29),h.\u0275\u0275text(5," \xa0Action Required "),h.\u0275\u0275elementEnd()()),2&ut){const wt=h.\u0275\u0275reference(2);h.\u0275\u0275advance(3),h.\u0275\u0275property("ngbTooltip",wt)}}function k(ut,Qt){1&ut&&h.\u0275\u0275text(0,"Stop unit operation until the service condition is resolved")}function R(ut,Qt){if(1&ut&&(h.\u0275\u0275elementStart(0,"span",27),h.\u0275\u0275template(1,k,1,0,"ng-template",null,1,h.\u0275\u0275templateRefExtractor),h.\u0275\u0275elementStart(3,"span",28),h.\u0275\u0275element(4,"i",29),h.\u0275\u0275text(5," \xa0Do Not Operate "),h.\u0275\u0275elementEnd()()),2&ut){const wt=h.\u0275\u0275reference(2);h.\u0275\u0275advance(3),h.\u0275\u0275property("ngbTooltip",wt)}}function U(ut,Qt){if(1&ut&&(h.\u0275\u0275elementStart(0,"span",10),h.\u0275\u0275conditionalCreate(1,G,6,1,"span",27)(2,R,6,1,"span",27),h.\u0275\u0275elementEnd()),2&ut){const wt=h.\u0275\u0275nextContext();h.\u0275\u0275advance(),h.\u0275\u0275conditional("UNRESOLVED_CSN"==(null==wt.content?null:wt.content.warning)?1:2)}}function st(ut,Qt){1&ut&&h.\u0275\u0275text(0,'"Aged Unit" notifications indicate a unit is over 25 years old, and Altec will no longer service it. We will continue to provide parts if they are available for purchase. If parts are not available, we will not engineer retrofit solutions but will provide technical support.')}function Dt(ut,Qt){if(1&ut&&(h.\u0275\u0275elementStart(0,"span",11)(1,"span",27),h.\u0275\u0275template(2,st,1,0,"ng-template",null,2,h.\u0275\u0275templateRefExtractor),h.\u0275\u0275elementStart(4,"span",28),h.\u0275\u0275element(5,"i",29),h.\u0275\u0275text(6,"\xa0Aged Unit "),h.\u0275\u0275elementEnd()()()),2&ut){const wt=h.\u0275\u0275reference(3);h.\u0275\u0275advance(4),h.\u0275\u0275property("ngbTooltip",wt)}}function Jt(ut,Qt){1&ut&&h.\u0275\u0275text(0,'"Aged Obsoleted Unit" notifications indicate a unit model was obsoleted from production for over 25 years. Altec will no longer service, provide parts, or technical support for it. Replacement recommended.')}function bt(ut,Qt){if(1&ut&&(h.\u0275\u0275elementStart(0,"span",12)(1,"span",27),h.\u0275\u0275template(2,Jt,1,0,"ng-template",null,3,h.\u0275\u0275templateRefExtractor),h.\u0275\u0275elementStart(4,"span",28),h.\u0275\u0275element(5,"i",29),h.\u0275\u0275text(6,"\xa0Aged Obsoleted Unit "),h.\u0275\u0275elementEnd()()()),2&ut){const wt=h.\u0275\u0275reference(3);h.\u0275\u0275advance(4),h.\u0275\u0275property("ngbTooltip",wt)}}function kt(ut,Qt){if(1&ut&&(h.\u0275\u0275elementStart(0,"div",14)(1,"div",30),h.\u0275\u0275text(2),h.\u0275\u0275pipe(3,"truncate"),h.\u0275\u0275elementEnd()()),2&ut){const wt=h.\u0275\u0275nextContext();h.\u0275\u0275advance(2),h.\u0275\u0275textInterpolate(h.\u0275\u0275pipeBind1(3,1,null==wt.content?null:wt.content.customerName))}}function K(ut,Qt){if(1&ut&&(h.\u0275\u0275elementStart(0,"div",16),h.\u0275\u0275text(1),h.\u0275\u0275elementEnd()),2&ut){const wt=h.\u0275\u0275nextContext();
1h.\u0275\u0275advance(),h.\u0275\u0275textInterpolate1(" ",null==wt.content?null:wt.content.customerName," ")}}function xt(ut,Qt){1&ut&&h.\u0275\u0275text(0,"Resolve requested action from open CSN")}function q(ut,Qt){if(1&ut&&(h.\u0275\u0275elementStart(0,"span"),h.\u0275\u0275template(1,xt,1,0,"ng-template",null,1,h.\u0275\u0275templateRefExtractor),h.\u0275\u0275elementStart(3,"span",28)(4,"i",29),h.\u0275\u0275text(5," Action Required"),h.\u0275\u0275elementEnd()()()),2&ut){const wt=h.\u0275\u0275reference(2);h.\u0275\u0275advance(3),h.\u0275\u0275property("ngbTooltip",wt)}}function Tt(ut,Qt){1&ut&&h.\u0275\u0275text(0,"Stop unit operation until the service condition is resolved")}function _t(ut,Qt){if(1&ut&&(h.\u0275\u0275template(0,Tt,1,0,"ng-template",null,1,h.\u0275\u0275templateRefExtractor),h.\u0275\u0275elementStart(2,"span",28)(3,"i",29),h.\u0275\u0275text(4," Do Not Operate"),h.\u0275\u0275elementEnd()()),2&ut){const wt=h.\u0275\u0275reference(1);h.\u0275\u0275advance(2),h.\u0275\u0275property("ngbTooltip",wt)}}function dt(ut,Qt){if(1&ut&&(h.\u0275\u0275elementStart(0,"div",17),h.\u0275\u0275conditionalCreate(1,q,6,1,"span")(2,_t,5,1),h.\u0275\u0275elementEnd()),2&ut){const wt=h.\u0275\u0275nextContext();h.\u0275\u0275advance(),h.\u0275\u0275conditional("UNRESOLVED_CSN"==(null==wt.content?null:wt.content.warning)?1:2)}}function Mt(ut,Qt){1&ut&&h.\u0275\u0275text(0,'"Aged Unit" notifications indicate a unit is over 25 years old, and Altec will no longer service it. We will continue to provide parts if they are available for purchase. If parts are not available, we will not engineer retrofit solutions but will provide technical support.')}function y(ut,Qt){if(1&ut&&(h.\u0275\u0275elementStart(0,"div",18),h.\u0275\u0275template(1,Mt,1,0,"ng-template",null,4,h.\u0275\u0275templateRefExtractor),h.\u0275\u0275elementStart(3,"span",28)(4,"i",29),h.\u0275\u0275text(5,"\xa0Aged Unit"),h.\u0275\u0275elementEnd()()()),2&ut){const wt=h.\u0275\u0275reference(2);h.\u0275\u0275advance(3),h.\u0275\u0275property("ngbTooltip",wt)}}function x(ut,Qt){1&ut&&h.\u0275\u0275text(0,'"Aged Obsoleted Unit" notifications indicate a unit model was obsoleted from production for over 25 years. Altec will no longer service, provide parts, or technical support for it. Replacement recommended.')}function W(ut,Qt){if(1&ut&&(h.\u0275\u0275elementStart(0,"div",19),h.\u0275\u0275template(1,x,1,0,"ng-template",null,5,h.\u0275\u0275templateRefExtractor),h.\u0275\u0275elementStart(3,"span",28)(4,"i",29),h.\u0275\u0275text(5,"\xa0Aged Obsoleted Unit"),h.\u0275\u0275elementEnd()()()),2&ut){const wt=h.\u0275\u0275reference(2);h.\u0275\u0275advance(3),h.\u0275\u0275property("ngbTooltip",wt)}}function E(ut,Qt){1&ut&&(h.\u0275\u0275elementStart(0,"a",22),h.\u0275\u0275text(1,"Rental"),h.\u0275\u0275elementEnd())}function tt(ut,Qt){if(1&ut&&(h.\u0275\u0275elementStart(0,"span"),h.\u0275\u0275text(1),h.\u0275\u0275elementEnd()),2&ut){const wt=h.\u0275\u0275nextContext();h.\u0275\u0275advance(),h.\u0275\u0275textInterpolate(null==wt.content?null:wt.content.inServiceDate)}}function V(ut,Qt){if(1&ut&&(h.\u0275\u0275elementStart(0,"span")(1,"strong"),h.\u0275\u0275text(2,"Parts Breakdowns"),h.\u0275\u0275elementEnd(),h.\u0275\u0275text(3,": "),h.\u0275\u0275elementStart(4,"a",31),h.\u0275\u0275element(5,"i",32),h.\u0275\u0275elementEnd(),h.\u0275\u0275element(6,"br"),h.\u0275\u0275elementEnd()),2&ut){const wt=h.\u0275\u0275nextContext(2);h.\u0275\u0275advance(4),h.\u0275\u0275property("gaEvent",h.\u0275\u0275pureFunction2(2,ht,wt.searchEventCategory,null==wt.content?null:wt.content.customerVehicleNumber))("routerLink",h.\u0275\u0275pureFunction1(5,C,"../details/"+(null==wt.content?null:wt.content.instanceId)+"/parts"))}}function Et(ut,Qt){if(1&ut&&(h.\u0275\u0275elementStart(0,"span"),h.\u0275\u0275conditionalCreate(1,V,7,7,"span"),h.\u0275\u0275elementEnd()),2&ut){const wt=h.\u0275\u0275nextContext();h.\u0275\u0275advance(),h.\u0275\u0275conditional(null!=wt.content&&wt.content.webEnabled?1:-1)}}function nt(ut,Qt){1&ut&&(h.\u0275\u0275elementStart(0,"span"),h.\u0275\u0275text(1,"For parts information please call 1-877-GO ALTEC, Option 1"),h.\u0275\u0275element(2,"br"),h.\u0275\u0275elementEnd())}function Gt(ut,Qt){if(1&ut&&(h.\u0275\u0275elementStart(0,"span"),h.\u0275\u0275conditionalCreate(1,nt,3,0,"span"),h.\u0275\u0275elementEnd()),2&ut){const wt=h.\u0275\u0275nextContext();
1h.\u0275\u0275advance(),h.\u0275\u0275conditional(null!=wt.content&&wt.content.webEnabled?-1:1)}}function Ct(ut,Qt){if(1&ut&&(h.\u0275\u0275elementStart(0,"span")(1,"strong"),h.\u0275\u0275text(2,"Open Service Jobs"),h.\u0275\u0275elementEnd(),h.\u0275\u0275text(3,": "),h.\u0275\u0275elementStart(4,"a",31)(5,"strong"),h.\u0275\u0275text(6),h.\u0275\u0275elementEnd()(),h.\u0275\u0275element(7,"br"),h.\u0275\u0275elementEnd()),2&ut){const wt=h.\u0275\u0275nextContext();h.\u0275\u0275advance(4),h.\u0275\u0275property("gaEvent",h.\u0275\u0275pureFunction2(3,F,wt.searchEventCategory,null==wt.content?null:wt.content.customerVehicleNumber))("routerLink",h.\u0275\u0275pureFunction1(6,C,"../details/"+(null==wt.content?null:wt.content.instanceId)+"/service")),h.\u0275\u0275advance(2),h.\u0275\u0275textInterpolate(null==wt.content?null:wt.content.openSrCount)}}function Ut(ut,Qt){if(1&ut&&(h.\u0275\u0275elementStart(0,"span")(1,"strong"),h.\u0275\u0275text(2,"Altec Product Notices"),h.\u0275\u0275elementEnd(),h.\u0275\u0275text(3,": "),h.\u0275\u0275elementStart(4,"a",31)(5,"strong"),h.\u0275\u0275text(6),h.\u0275\u0275elementEnd()(),h.\u0275\u0275element(7,"br"),h.\u0275\u0275elementEnd()),2&ut){const wt=h.\u0275\u0275nextContext();h.\u0275\u0275advance(4),h.\u0275\u0275property("gaEvent",h.\u0275\u0275pureFunction2(3,ct,wt.searchEventCategory,null==wt.content?null:wt.content.customerVehicleNumber))("routerLink",h.\u0275\u0275pureFunction1(6,C,"../details/"+(null==wt.content?null:wt.content.instanceId)+"/apn")),h.\u0275\u0275advance(2),h.\u0275\u0275textInterpolate(null==wt.content?null:wt.content.bulletinCount)}}function it(ut,Qt){if(1&ut&&(h.\u0275\u0275elementStart(0,"span")(1,"strong"),h.\u0275\u0275text(2,"Documentation"),h.\u0275\u0275elementEnd(),h.\u0275\u0275text(3,": "),h.\u0275\u0275elementStart(4,"a",31),h.\u0275\u0275element(5,"i",32),h.\u0275\u0275elementEnd(),h.\u0275\u0275element(6,"br"),h.\u0275\u0275elementEnd()),2&ut){const wt=h.\u0275\u0275nextContext();h.\u0275\u0275advance(4),h.\u0275\u0275property("gaEvent",h.\u0275\u0275pureFunction2(2,at,wt.searchEventCategory,null==wt.content?null:wt.content.customerVehicleNumber))("routerLink",h.\u0275\u0275pureFunction1(5,C,"../details/"+(null==wt.content?null:wt.content.instanceId)+"/docs"))}}function Ft(ut,Qt){if(1&ut&&(h.\u0275\u0275elementStart(0,"span")(1,"strong"),h.\u0275\u0275text(2,"Groups"),h.\u0275\u0275elementEnd(),h.\u0275\u0275text(3,": "),h.\u0275\u0275elementStart(4,"a",31)(5,"strong"),h.\u0275\u0275text(6),h.\u0275\u0275elementEnd()(),h.\u0275\u0275element(7,"br"),h.\u0275\u0275elementStart(8,"strong"),h.\u0275\u0275text(9,"Contacts"),h.\u0275\u0275elementEnd(),h.\u0275\u0275text(10,": "),h.\u0275\u0275elementStart(11,"a",31)(12,"strong"),h.\u0275\u0275text(13),h.\u0275\u0275elementEnd()(),h.\u0275\u0275element(14,"br"),h.\u0275\u0275elementEnd()),2&ut){const wt=h.\u0275\u0275nextContext();h.\u0275\u0275advance(4),h.\u0275\u0275property("gaEvent",h.\u0275\u0275pureFunction2(6,rt,wt.searchEventCategory,null==wt.content?null:wt.content.customerVehicleNumber))("routerLink",h.\u0275\u0275pureFunction1(9,C,"../details/"+(null==wt.content?null:wt.content.instanceId)+"/groups-contacts")),h.\u0275\u0275advance(2),h.\u0275\u0275textInterpolate(null==wt.content?null:wt.content.groupCount),h.\u0275\u0275advance(5),h.\u0275\u0275property("gaEvent",h.\u0275\u0275pureFunction2(11,X,wt.searchEventCategory,null==wt.content?null:wt.content.customerVehicleNumber))("routerLink",h.\u0275\u0275pureFunction1(14,C,"../details/"+(null==wt.content?null:wt.content.instanceId)+"/groups-contacts")),h.\u0275\u0275advance(2),h.\u0275\u0275textInterpolate(null==wt.content?null:wt.content.contactCount)}}T.FleetSearchTabularcardComponent=(()=>{class ut{constructor(wt,he){this.launchDarklyService=wt,this.statefulService=he,this.searchEventCategory=u.SEARCH_EVENT_CATEGORY,this.showUnitDTC=!1}ngOnInit(){this.$darkly_unitDTC_phaseOne=this.launchDarklyService.getFlag(b.LDFeatureFlag.unitDtcPhaseOne),"NONE"!==this.content.analytics[0]&&(this.showUnitDTC=!0),this.content.inServiceDate=(0,N.default)(this.content.inServiceDate).utc().format("MM/DD/YYYY")}static{this.\u0275fac=function(he){return new(he||ut)(h.\u0275\u0275directiveInject(D.LaunchDarklyService),h.\u0275\u0275directiveInject(f.StatefulService))}}static{this.\u0275cmp=h.\u0275\u0275defineComponent({type:ut,selectors:[["app-fleet-search-tabularcard"]],inputs:{content:"content"},standalone:!1,decls:53,vars:29,consts:[["warningToolTipContent",""],["xsWarningToolTipContent",""],["endOfServiceToolTipContent",""],["endOfProductLifeToolTipContent",""],["xsEOSToolTipContent",""],["xsEOPLToolTipContent",""],[1,"col-12"],["id","title",1,"col-12","col-sm-8"],[1,"refNum",3,"gaEvent","routerLink"],[3,"routerLink"],["id","warning",1,"text-red","d-none","d-sm-block"],["id","endOfService",1,"text-red","d-none","d-sm-block","pointer"],["id","endOfProductLife",1,"text-red","d-none","d-sm-block","pointer"],[1,"d-none","d-sm-block"],[1,"col-12","col-sm-4","company-label-lg","float-end"],[1,"d-block","d-sm-none"],[1,"col-12","col-sm-6","company-label"],["id","warning",1,"text-red","col-12"],["id","endOfServiceSmall",1,"text-red","col-12"],["id","endOfProductLifeSmall",1,"text-red","col-12"],[1,"row","mt-2"],[1,"col-12","col-sm-6"],[1,"text-global-rental"],["t
1itle","Final Assembly Number"],[4,"hasPrivilege"],[1,"fa","fa-wifi",2,"transform","rotate(45deg)"],[1,"badge"],[1,"text-red","d-none","d-sm-block"],["placement","top","triggers","mouseenter:mouseleave",3,"ngbTooltip"],[1,"fa","fa-exclamation-triangle"],[1,"customer-name"],[3,"gaEvent","routerLink"],["aria-hidden","true",1,"fa","fa-file-text"]],template:function(he,Xt){1&he&&(h.\u0275\u0275elementStart(0,"div")(1,"div",6)(2,"div",7),h.\u0275\u0275conditionalCreate(3,St,5,8,"a",8)(4,B,5,8,"a",8),h.\u0275\u0275conditionalCreate(5,Ot,2,3,"a",9),h.\u0275\u0275pipe(6,"async"),h.\u0275\u0275conditionalCreate(7,$,3,3,"a",9),h.\u0275\u0275conditionalCreate(8,U,3,1,"span",10),h.\u0275\u0275conditionalCreate(9,Dt,7,1,"span",11),h.\u0275\u0275conditionalCreate(10,bt,7,1,"span",12),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementStart(11,"span",13),h.\u0275\u0275conditionalCreate(12,kt,4,3,"div",14),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementStart(13,"div",15),h.\u0275\u0275conditionalCreate(14,K,2,1,"div",16),h.\u0275\u0275conditionalCreate(15,dt,3,1,"div",17),h.\u0275\u0275conditionalCreate(16,y,6,1,"div",18),h.\u0275\u0275conditionalCreate(17,W,6,1,"div",19),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementStart(18,"div",20)(19,"div",21)(20,"strong"),h.\u0275\u0275text(21,"Model"),h.\u0275\u0275elementEnd(),h.\u0275\u0275text(22),h.\u0275\u0275conditionalCreate(23,E,2,0,"a",22),h.\u0275\u0275element(24,"br"),h.\u0275\u0275elementStart(25,"strong"),h.\u0275\u0275text(26,"Unit Serial #"),h.\u0275\u0275elementEnd(),h.\u0275\u0275text(27),h.\u0275\u0275element(28,"br"),h.\u0275\u0275elementStart(29,"strong"),h.\u0275\u0275text(30,"In Service"),h.\u0275\u0275elementEnd(),h.\u0275\u0275text(31,": "),h.\u0275\u0275conditionalCreate(32,tt,2,1,"span"),h.\u0275\u0275element(33,"br"),h.\u0275\u0275elementStart(34,"span",23)(35,"strong"),h.\u0275\u0275text(36,"F/A Serial #"),h.\u0275\u0275elementEnd(),h.\u0275\u0275text(37),h.\u0275\u0275element(38,"br"),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementStart(39,"strong"),h.\u0275\u0275text(40,"Chassis VIN"),h.\u0275\u0275elementEnd(),h.\u0275\u0275text(41),h.\u0275\u0275element(42,"br"),h.\u0275\u0275elementStart(43,"strong"),h.\u0275\u0275text(44,"Location"),h.\u0275\u0275elementEnd(),h.\u0275\u0275text(45),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementStart(46,"div",21),h.\u0275\u0275template(47,Et,2,1,"span",24)(48,Gt,2,1,"span",24)(49,Ct,8,8,"span",24)(50,Ut,8,8,"span",24),h.\u0275\u0275conditionalCreate(51,it,7,7,"span"),h.\u0275\u0275template(52,Ft,15,16,"span",24),h.\u0275\u0275elementEnd()()()()),2&he&&(h.\u0275\u0275classProp("warned","NONE"!=Xt.content.warning),h.\u0275\u0275advance(3),h.\u0275\u0275conditional("MAB"===(null==Xt.content?null:Xt.content.warning)?3:4),h.\u0275\u0275advance(2),h.\u0275\u0275conditional(1==h.\u0275\u0275pipeBind1(6,27,Xt.$darkly_unitDTC_phaseOne)&&Xt.showUnitDTC?5:-1),h.\u0275\u0275advance(2),h.\u0275\u0275conditional(null!=Xt.content&&Xt.content.activeDTC?7:-1),h.\u0275\u0275advance(),h.\u0275\u0275conditional("NONE"!==(null==Xt.content?null:Xt.content.warning)?8:-1),h.\u0275\u0275advance(),h.\u0275\u0275conditional("EndOfService"===(null==Xt.content?null:Xt.content.instanceStatus)?9:-1),h.\u0275\u0275advance(),h.\u0275\u0275conditional("EndOfProductLife"===(null==Xt.content?null:Xt.content.instanceStatus)?10:-1),h.\u0275\u0275advance(2),h.\u0275\u0275conditional(Xt.statefulService.isParentHoldingAndViewingAll()&&null!==(null==Xt.content?null:Xt.content.customerName)?12:-1),h.\u0275\u0275advance(2),h.\u0275\u0275conditional(Xt.statefulService.isParentHoldingAndViewingAll()&&null!=(null==Xt.content?null:Xt.content.customerName)?14:-1),h.\u0275\u0275advance(),h.\u0275\u0275conditional("NONE"!==(null==Xt.content?null:Xt.content.warning)?15:-1),h.\u0275\u0275advance(),h.\u0275\u0275conditional("EndOfService"==(null==Xt.content?null:Xt.content.instanceStatus)?16:-1),h.\u0275\u0275advance(),h.\u0275\u0275conditional("EndOfProductLife"==(null==Xt.content?null:Xt.content.instanceStatus)?17:-1),h.\u0275\u0275advance(5),h.\u0275\u0275textInterpolate1(": ",null!=Xt.content&&Xt.content.model?null==Xt.content?null:Xt.content.model:"\xa0"," "),h.\u0275\u0275advance(),h.\u0275\u0275conditional(null!=Xt.content&&Xt.content.globalRental?23:-1),h.\u0275\u0275advance(4),h.\u0275\u0275textInterpolate1(": ",null!=Xt.content&&Xt.content.unitSeri
1al?null==Xt.content?null:Xt.content.unitSerial:"\xa0"),h.\u0275\u0275advance(5),h.\u0275\u0275conditional(null!=Xt.content&&Xt.content.inServiceDate?32:-1),h.\u0275\u0275advance(5),h.\u0275\u0275textInterpolate1(": ",null!=Xt.content&&Xt.content.faSerial?null==Xt.content?null:Xt.content.faSerial:"\xa0"),h.\u0275\u0275advance(4),h.\u0275\u0275textInterpolate1(": ",null!=Xt.content&&Xt.content.chassisVin?null==Xt.content?null:Xt.content.chassisVin:"\xa0"),h.\u0275\u0275advance(4),h.\u0275\u0275textInterpolate2(": ",null==Xt.content?null:Xt.content.city,", ",null==Xt.content?null:Xt.content.stateProvince," "),h.\u0275\u0275advance(2),h.\u0275\u0275property("hasPrivilege","B2B_View_Replacement_Parts"),h.\u0275\u0275advance(),h.\u0275\u0275property("hasPrivilege","B2B_View_Replacement_Parts"),h.\u0275\u0275advance(),h.\u0275\u0275property("hasPrivilege","B2B_View_SRs"),h.\u0275\u0275advance(),h.\u0275\u0275property("hasPrivilege","B2B_View_APNs"),h.\u0275\u0275advance(),h.\u0275\u0275conditional(null!=Xt.content&&Xt.content.webEnabled?51:-1),h.\u0275\u0275advance(),h.\u0275\u0275property("hasPrivilege","B2B_View_Organization_Groups"))},dependencies:[v.GaEventDirective,p.RouterLink,J.HasPrivilegeDirective,lt.NgbTooltip,r.AsyncPipe,I.TruncatePipe],styles:["[_nghost-%COMP%] > div[_ngcontent-%COMP%]{position:relative}#title[_ngcontent-%COMP%]{padding-left:0!important}#warning[_ngcontent-%COMP%]{cursor:pointer;padding-left:0}.badge[_ngcontent-%COMP%]{background-color:#337ab7;font-weight:400;font-size:11px;vertical-align:text-top;margin-left:3px}"]})}}return ut})()},5881(Ht,T,d){"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.FleetUnitMissingComponent=void 0;const S=d(31635),O=(d(91898),S.__importStar(d(49849))),u=S.__importStar(d(91898)),o=S.__importStar(d(79702)),b=S.__importStar(d(57504));function g(lt,r){1<&&(O.\u0275\u0275elementStart(0,"div",2),O.\u0275\u0275text(1," Sorry, unit does not exist or is not a part of your fleet. "),O.\u0275\u0275elementEnd())}function h(lt,r){1<&&(O.\u0275\u0275elementStart(0,"div",2),O.\u0275\u0275text(1," Sorry, no unit was found matching the serial number entered. "),O.\u0275\u0275elementEnd())}function D(lt,r){1<&&(O.\u0275\u0275elementStart(0,"li"),O.\u0275\u0275text(1,"You must enter a complete unit serial number in order to search external equipment."),O.\u0275\u0275elementEnd())}function f(lt,r){1<&&O.\u0275\u0275text(0,"Submit is disabled.")}function v(lt,r){if(1<&&(O.\u0275\u0275elementStart(0,"li"),O.\u0275\u0275template(1,f,1,0,"ng-template",null,0,O.\u0275\u0275templateRefExtractor),O.\u0275\u0275elementStart(3,"span",5)(4,"a",6),O.\u0275\u0275text(5,"Unit Registration."),O.\u0275\u0275elementEnd()()()),2<){const I=O.\u0275\u0275reference(2),vt=O.\u0275\u0275nextContext();O.\u0275\u0275advance(3),O.\u0275\u0275property("ngbTooltip",I)("placement",vt.document.body.offsetWidth<991?"right":"bottom")}}function p(lt,r){1<&&(O.\u0275\u0275elementStart(0,"li")(1,"a",7),O.\u0275\u0275text(2,"Need to register a unit?"),O.\u0275\u0275elementEnd()())}T.FleetUnitMissingComponent=(()=>{class lt{constructor(I){this.privilegeService=I,this.disallowCustomerDataModification=!1}ngOnInit(){this.disallowCustomerDataModification=this.privilegeService.hasPrivilege("Demo_Only_Fleet_Update")}get document(){return document}static{this.\u0275fac=function(vt){return new(vt||lt)(O.\u0275\u0275directiveInject(u.PrivilegeService))}}static{this.\u0275cmp=O.\u0275\u0275defineComponent({type:lt,selectors:[["altecConnect-fleet-unit-missing"]],inputs:{detailResponse:"detailResponse"},standalone:!1,decls:12,vars:5,consts:[["toolTipContent",""],[1,"row","mt-5"],[1,"text-center"],[3,"showCustomMessage"],[1,"col-12"],["triggers","mouseenter:mouseleave",3,"ngbTooltip","placement"],["href","javascript:;"],["href","https://www.altec.com/service/unit-registration/","target","_blank"]],template:function(vt,C){1&vt&&(O.\u0275\u0275elementStart(0,"div",1),O.\u0275\u0275conditionalCreate(1,g,2,0,"div",2),O.\u0275\u0275conditionalCreate(2,h,2,0,"div",2),O.\u0275\u0275elementEnd(),O.\u0275\u0275elementStart(3,"div",1)(4,"app-no-results",3)(5,"div",4)(6,"ul"),O.\u0275\u0275conditionalCreate(7,D,2,0,"li"),O.\u0275\u0275elementStart(8,"li"),O.\u0275\u0275text(9,"Contact us at 1-877-GO ALTEC, Option 1."),O.\u0275\u0275elementEnd(),O.\u0275\u0275conditionalCreate(10,v,6,2,"li")(11,p,3,0,"li"),O.\u0275\u0275elementEnd()()()()),2&vt&&(O.\u0275\u0275advance(),O.\u0275\u0275conditional(C.detailResponse.unitInFleet?1:-1),O.\u0275\u0275advance(),O.\u0275\u0275conditional(C.detailResponse.unitInFleet?-1:2),O.\u0275\u0275advance(2),O.\u0275\u0275property("showCustomMessage",!0),O.\u0275\u0275advance(3),O.\u0275\u0275conditional(C.detailResponse.unitInFleet?-1:7),O.\u0275\u0275advance(3),O.\u0275\u0275conditional(C.disallowCustomerDataModification?10:11))},dependencies:[o.NoResultsComponent,b.NgbTooltip],encapsulation:2})}}return lt})()},26891(Ht,T,d){"use strict";
1Object.defineProperty(T,"__esModule",{value:!0}),T.GroupsAndContactsTabContentComponent=void 0;const S=d(31635),N=d(49849),O=d(59091),u=d(43481),b=(d(64688),d(83352)),g=d(40206),h=d(86574),f=(d(97377),S.__importStar(d(49849))),v=S.__importStar(d(64688)),p=S.__importStar(d(97377)),J=S.__importStar(d(98461)),lt=S.__importStar(d(72293)),r=S.__importStar(d(96521)),I=S.__importStar(d(7901)),vt=S.__importStar(d(47291)),C=S.__importStar(d(34603)),ht=S.__importStar(d(22850)),F=S.__importStar(d(16544)),ct=S.__importStar(d(1629)),at=S.__importStar(d(20010)),rt=()=>["/pages/dashboard/admin/contactManagement/userManagement/detail"],X=Ct=>({contactId:Ct});function gt(Ct,Ut){1&Ct&&(f.\u0275\u0275elementStart(0,"div",0),f.\u0275\u0275element(1,"i",3),f.\u0275\u0275elementEnd())}function mt(Ct,Ut){if(1&Ct){const it=f.\u0275\u0275getCurrentView();f.\u0275\u0275elementStart(0,"altec-alert",4),f.\u0275\u0275listener("onClose",function(){f.\u0275\u0275restoreView(it);const jt=f.\u0275\u0275nextContext();return f.\u0275\u0275resetView(jt.showAlert=!1)}),f.\u0275\u0275elementEnd()}if(2&Ct){const it=f.\u0275\u0275nextContext();f.\u0275\u0275property("alertMessage",it.alertMessage)}}function St(Ct,Ut){if(1&Ct&&(f.\u0275\u0275elementStart(0,"td",22)(1,"a",26),f.\u0275\u0275text(2),f.\u0275\u0275elementEnd()()),2&Ct){const it=f.\u0275\u0275nextContext().$implicit,Ft=f.\u0275\u0275nextContext(4);f.\u0275\u0275advance(),f.\u0275\u0275property("routerLink",f.\u0275\u0275pureFunction0(3,rt))("queryParams",f.\u0275\u0275pureFunction1(4,X,it.id)),f.\u0275\u0275advance(),f.\u0275\u0275textInterpolate(Ft.contactName(it.firstName,it.lastName))}}function ft(Ct,Ut){if(1&Ct&&(f.\u0275\u0275elementStart(0,"td",22)(1,"span"),f.\u0275\u0275text(2),f.\u0275\u0275elementEnd()()),2&Ct){const it=f.\u0275\u0275nextContext().$implicit,Ft=f.\u0275\u0275nextContext(4);f.\u0275\u0275advance(2),f.\u0275\u0275textInterpolate(Ft.contactName(it.firstName,it.lastName))}}function ot(Ct,Ut){if(1&Ct){const it=f.\u0275\u0275getCurrentView();f.\u0275\u0275elementStart(0,"i",27),f.\u0275\u0275listener("click",function(){f.\u0275\u0275restoreView(it);const jt=f.\u0275\u0275nextContext().$implicit,ut=f.\u0275\u0275nextContext(4);return f.\u0275\u0275resetView(ut.updateContacts("remove",jt))}),f.\u0275\u0275elementEnd()}}function B(Ct,Ut){if(1&Ct&&(f.\u0275\u0275elementStart(0,"tr"),f.\u0275\u0275template(1,St,3,6,"td",20)(2,ft,3,1,"td",21),f.\u0275\u0275elementStart(3,"td",22),f.\u0275\u0275text(4),f.\u0275\u0275pipe(5,"email"),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementStart(6,"td",22),f.\u0275\u0275text(7),f.\u0275\u0275pipe(8,"phoneNumber"),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementStart(9,"td",23),f.\u0275\u0275text(10),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementStart(11,"td",24),f.\u0275\u0275template(12,ot,1,0,"i",25),f.\u0275\u0275elementEnd()()),2&Ct){const it=Ut.$implicit;f.\u0275\u0275advance(),f.\u0275\u0275property("hasPrivilege","B2B_Delegated_Customer_Admin"),f.\u0275\u0275advance(),f.\u0275\u0275property("notHasPrivilege","B2B_Delegated_Customer_Admin"),f.\u0275\u0275advance(2),f.\u0275\u0275textInterpolate(f.\u0275\u0275pipeBind1(5,6,it.email)),f.\u0275\u0275advance(3),f.\u0275\u0275textInterpolate(f.\u0275\u0275pipeBind1(8,8,it.phoneNumber)),f.\u0275\u0275advance(3),f.\u0275\u0275textInterpolate(it.jobTitle),f.\u0275\u0275advance(2),f.\u0275\u0275property("hasPrivilege","B2B_Update_Organization_Groups")}}function Ot(Ct,Ut){if(1&Ct&&(f.\u0275\u0275elementStart(0,"div")(1,"table",19)(2,"thead")(3,"tr")(4,"th"),f.\u0275\u0275text(5,"Name"),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementStart(6,"th"),f.\u0275\u0275text(7,"Email"),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementStart(8,"th"),f.\u0275\u0275text(9,"Phone Number"),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementStart(10,"th"),f.\u0275\u0275text(11,"Job Title"),f.\u0275\u0275elementEnd(),f.\u0275\u0275element(12,"th"),f.\u0275\u0275elementEnd()(),f.\u0275\u0275elementStart(13,"tbody"),f.\u0275\u0275repeaterCreate(14,B,13,10,"tr",null,f.\u0275\u0275repeaterTrackByIdentity),f.\u0275\u0275elementEnd()()()),2&Ct){const it=f.\u0275\u0275nextContext(3);f.\u0275\u0275advance(14),f.\u0275\u0275repeater(it.displayContacts)}}function $(Ct,Ut){if(1&Ct&&(f.\u0275\u0275elementContainerStart(0),f.\u0275\u0275conditionalCreate(1,Ot,16,0,"div"),f.\u0275\u0275elementContainerEnd()),2&Ct){const it=f.\u0275\u0275nextContext(2);f.\u0275\u0275advance(),f.\u0275\u0275conditional(it.displayContacts&&it.displayContacts.length>0?1:-1)}}function j(Ct,Ut){if(1&Ct&&(f.\u0275\u0275elementStart(0,"div")(1,"strong"),f.\u0275\u0275text(2,"Name"),f.\u0275\u0275elementEnd(),f.\u0275\u0275text(3,": "),f.\u0275\u0275elementStart(4,"a",26),f.\u0275\u0275text(5),f.\u0275\u0275elementEnd()()),2&Ct){const it=f.\u0275\u0275nextContext().$implicit,Ft=f.\u0275\u0275nextContext(4);f.\u0275\u0275advance(4),f.\u0275\u0275property("routerLink",f.\u0275\u0275pureFunction0(3,rt))("queryParams",f.\u0275\u0275pureFunction1(4,X,it.id)),f.\u0275\u0275advance(),f.\u0275\u0275textInterpolate(Ft.contactName(it.firstName,it.lastName))}}function G(Ct,Ut){if(1&Ct&&(f.\u0275\u0275elementStart(0,"div")(1,"strong"),f.\u0275\u0275text(2,"Name"),f.\u0275\u0275elementEnd(),f.\u0275\u0275text(3),f.\u0275\u0275elementEnd()),2&Ct){const it=f.\u0275\u0275nextContext().$implicit,Ft=f.\u0275\u0275nextContext(4);f.\u0275\u0275advance(3),f.\u0275\u0275textInterpolate1(": ",Ft.contactName(it.firstName,it.lastName))}}function k(Ct,Ut){if(1&Ct){const it=f.\u0275\u0275getCurrentView();f.\u0275\u0275elementStart(0,"i",27),f.\u0275\u0275listener("click",function(){f.\u0275\u0275restoreView(it);const jt=f.\u0275\u0275nextContext().$implicit,ut=f.\u0275\u0275nextContext(4);
1return f.\u0275\u0275resetView(ut.updateContacts("remove",jt))}),f.\u0275\u0275elementEnd()}}function R(Ct,Ut){if(1&Ct&&(f.\u0275\u0275elementStart(0,"div",29)(1,"div",30),f.\u0275\u0275template(2,j,6,6,"div",31)(3,G,4,1,"div",32),f.\u0275\u0275elementStart(4,"div")(5,"strong"),f.\u0275\u0275text(6,"Email"),f.\u0275\u0275elementEnd(),f.\u0275\u0275text(7),f.\u0275\u0275pipe(8,"email"),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementStart(9,"div")(10,"strong"),f.\u0275\u0275text(11,"Phone Number"),f.\u0275\u0275elementEnd(),f.\u0275\u0275text(12),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementStart(13,"div")(14,"strong"),f.\u0275\u0275text(15,"Job Title"),f.\u0275\u0275elementEnd(),f.\u0275\u0275text(16),f.\u0275\u0275elementEnd()(),f.\u0275\u0275elementStart(17,"div",33),f.\u0275\u0275template(18,k,1,0,"i",25),f.\u0275\u0275elementEnd()()),2&Ct){const it=Ut.$implicit;f.\u0275\u0275advance(2),f.\u0275\u0275property("hasPrivilege","B2B_Delegated_Customer_Admin"),f.\u0275\u0275advance(),f.\u0275\u0275property("notHasPrivilege","B2B_Delegated_Customer_Admin"),f.\u0275\u0275advance(4),f.\u0275\u0275textInterpolate1(": ",f.\u0275\u0275pipeBind1(8,6,it.email)),f.\u0275\u0275advance(5),f.\u0275\u0275textInterpolate1(": ",it.phoneNumber),f.\u0275\u0275advance(4),f.\u0275\u0275textInterpolate1(": ",it.jobTitle),f.\u0275\u0275advance(2),f.\u0275\u0275property("hasPrivilege","B2B_Update_Organization_Groups")}}function U(Ct,Ut){if(1&Ct&&(f.\u0275\u0275elementStart(0,"div")(1,"div",28),f.\u0275\u0275repeaterCreate(2,R,19,8,"div",29,f.\u0275\u0275repeaterTrackByIdentity),f.\u0275\u0275elementEnd()()),2&Ct){const it=f.\u0275\u0275nextContext(3);f.\u0275\u0275advance(2),f.\u0275\u0275repeater(it.displayContacts)}}function st(Ct,Ut){if(1&Ct&&(f.\u0275\u0275elementContainerStart(0,5),f.\u0275\u0275conditionalCreate(1,U,4,0,"div"),f.\u0275\u0275elementContainerEnd()),2&Ct){const it=f.\u0275\u0275nextContext(2);f.\u0275\u0275advance(),f.\u0275\u0275conditional(it.displayContacts&&it.displayContacts.length>0?1:-1)}}function Dt(Ct,Ut){if(1&Ct){const it=f.\u0275\u0275getCurrentView();f.\u0275\u0275elementStart(0,"span",35),f.\u0275\u0275listener("click",function(){f.\u0275\u0275restoreView(it);const jt=f.\u0275\u0275nextContext(3);return f.\u0275\u0275resetView(jt.searchingContacts=!0)}),f.\u0275\u0275elementStart(1,"strong"),f.\u0275\u0275text(2," + Add Contacts "),f.\u0275\u0275elementEnd()()}}function Jt(Ct,Ut){1&Ct&&f.\u0275\u0275template(0,Dt,3,0,"span",34),2&Ct&&f.\u0275\u0275property("hasPrivilege","B2B_Update_Organization_Groups")}function bt(Ct,Ut){if(1&Ct){const it=f.\u0275\u0275getCurrentView();f.\u0275\u0275elementStart(0,"i",44),f.\u0275\u0275listener("click",function(){f.\u0275\u0275restoreView(it);const jt=f.\u0275\u0275nextContext().$implicit,ut=f.\u0275\u0275nextContext(3);return f.\u0275\u0275resetView(ut.updateContacts("add",jt))}),f.\u0275\u0275elementEnd()}}function kt(Ct,Ut){if(1&Ct){const it=f.\u0275\u0275getCurrentView();f.\u0275\u0275elementStart(0,"i",45),f.\u0275\u0275listener("click",function(){f.\u0275\u0275restoreView(it);const jt=f.\u0275\u0275nextContext().$implicit,ut=f.\u0275\u0275nextContext(3);return f.\u0275\u0275resetView(ut.updateContacts("remove",jt))}),f.\u0275\u0275elementEnd()}}function K(Ct,Ut){if(1&Ct&&(f.\u0275\u0275elementStart(0,"div",46)(1,"strong",47),f.\u0275\u0275text(2,"Name: "),f.\u0275\u0275elementEnd(),f.\u0275\u0275text(3),f.\u0275\u0275element(4,"br"),f.\u0275\u0275elementStart(5,"strong",47),f.\u0275\u0275text(6,"Job Title: "),f.\u0275\u0275elementEnd(),f.\u0275\u0275text(7),f.\u0275\u0275element(8,"br"),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementStart(9,"div",6)(10,"strong",47),f.\u0275\u0275text(11,"Email: "),f.\u0275\u0275elementEnd(),f.\u0275\u0275text(12),f.\u0275\u0275pipe(13,"email"),f.\u0275\u0275element(14,"br"),f.\u0275\u0275elementStart(15,"strong",47),f.\u0275\u0275text(16,"Phone #: "),f.\u0275\u0275elementEnd(),f.\u0275\u0275text(17),f.\u0275\u0275pipe(18,"phoneNumber"),f.\u0275\u0275elementEnd()),2&Ct){const it=f.\u0275\u0275nextContext().$implicit,Ft=f.\u0275\u0275nextContext(3);f.\u0275\u0275advance(3),f.\u0275\u0275textInterpolate1(" ",Ft.contactName(it.firstName,it.lastName)),f.\u0275\u0275advance(4),f.\u0275\u0275textInterpolate1(" ",it.jobTitle),f.\u0275\u0275advance(5),f.\u0275\u0275textInterpolate1(" ",f.\u0275\u0275pipeBind1(13,4,it.email)),f.\u0275\u0275advance(5),f.\u0275\u0275textInterpolate1(" ",f.\u0275\u0275pipeBind1(18,6,it.phoneNumber)," ")}}function xt(Ct,Ut){if(1&Ct&&(f.\u0275\u0275elementStart(0,"div",48)(1,"strong",47),f.\u0275\u0275text(2,"Name: "),f.\u0275\u0275elementEnd(),f.\u0275\u0275text(3),f.\u0275\u0275element(4,"br"),f.\u0275\u0275elementStart(5,"strong",47),f.\u0275\u0275text(6,"Email: "),f.\u0275\u0275elementEnd(),f.\u0275\u0275text(7),f.\u0275\u0275pipe(8,"email"),f.\u0275\u0275element(9,"br"),f.\u0275\u0275elementStart(10,"strong",47),f.\u0275\u0275text(11,"Job Title: "),f.\u0275\u0275elementEnd(),f.\u0275\u0275text(12),f.\u0275\u0275element(13,"br"),f.\u0275\u0275elementStart(14,"strong",47),f.\u0275\u0275text(15,"Phone #: "),f.\u0275\u0275elementEnd(),f.\u0275\u0275text(16),f.\u0275\u0275pipe(17,"phoneNumber"),f.\u0275\u0275elementEnd()),2&Ct){const it=f.\u0275\u0275nextContext().$implicit,Ft=f.\u0275\u0275nextContext(3);f.\u0275\u0275advance(3),f.\u0275\u0275textInterpolate1(" ",Ft.contactName(it.firstName,it.lastName)),f.\u0275\u0275advance(4),f.\u0275\u0275textInterpolate1(" ",f.\u0275\u0275pipeBind1(8,4,it.email)),f.\u0275\u0275advance(5),f.\u0275\u0275textInterpolate1(" ",it.jobTitle),f.\u0275\u0275advance(4),f.\u0275\u0275textInterpolate1(" ",f.\u0275\u0275pipeBind1(17,6,it.phoneNumber)," ")}}function q(Ct,Ut){if(1&Ct){const it=f.\u0275\u0275getCurrentView();f.\u0275\u0275elementStart(0,"div",38),f.\u0275\u0275listener("click",function(jt){f.\u0275\u0275restoreView(it);const ut=f.\u0275\u0275nextContext(3);
1return f.\u0275\u0275resetView(ut.stopPropagation(jt))}),f.\u0275\u0275elementStart(1,"div",13)(2,"div",39)(3,"div",40),f.\u0275\u0275conditionalCreate(4,bt,1,0,"i",41)(5,kt,1,0,"i",42),f.\u0275\u0275elementEnd(),f.\u0275\u0275template(6,K,19,8,"ng-template",43)(7,xt,18,8,"ng-template",43),f.\u0275\u0275elementEnd()()()}if(2&Ct){const it=Ut.$implicit,Ft=f.\u0275\u0275nextContext(3);f.\u0275\u0275property("hidden",Ft.loadingContactSearch||0===(null==Ft.contactResults?null:Ft.contactResults.length)),f.\u0275\u0275advance(4),f.\u0275\u0275conditional(Ft.contactExistsOnInstance(it)?5:4),f.\u0275\u0275advance(2),f.\u0275\u0275property("isMobileView",!1)("breakPoint",Ft.tabletBreakpoint),f.\u0275\u0275advance(),f.\u0275\u0275property("isMobileView",!0)("breakPoint",Ft.tabletBreakpoint)}}function Tt(Ct,Ut){if(1&Ct){const it=f.\u0275\u0275getCurrentView();f.\u0275\u0275elementStart(0,"div",11)(1,"altcon-autocomplete-dropdown",36),f.\u0275\u0275listener("searchChange",function(jt){f.\u0275\u0275restoreView(it);const ut=f.\u0275\u0275nextContext(2);return f.\u0275\u0275resetView(ut.searchContacts(jt))})("bottomButtonPressed",function(){f.\u0275\u0275restoreView(it);const jt=f.\u0275\u0275nextContext(2);return jt.searchingContacts=!1,jt.contactResults.length=0,f.\u0275\u0275resetView(jt.contactBottomButtonActive=!1)}),f.\u0275\u0275elementStart(2,"div",28),f.\u0275\u0275repeaterCreate(3,q,8,6,"div",37,f.\u0275\u0275repeaterTrackByIdentity),f.\u0275\u0275elementEnd()()()}if(2&Ct){const it=f.\u0275\u0275nextContext(2);f.\u0275\u0275advance(),f.\u0275\u0275property("placeholder","Search Contacts")("selectMessage","Select a Contact...")("searchTip","Search by First Name, Last Name, Job Title, Email")("resultsLength",it.contactResults.length)("loading",it.loadingContactSearch)("autoCompleteOn",!1)("bottomButtonActive",it.contactBottomButtonActive)("bottomButtonText","Done"),f.\u0275\u0275advance(2),f.\u0275\u0275repeater(it.contactResults)}}function _t(Ct,Ut){if(1&Ct){const it=f.\u0275\u0275getCurrentView();f.\u0275\u0275elementStart(0,"div",12),f.\u0275\u0275element(1,"br",49),f.\u0275\u0275elementStart(2,"div",50)(3,"button",51),f.\u0275\u0275listener("click",function(){f.\u0275\u0275restoreView(it);const jt=f.\u0275\u0275nextContext(2);return jt.searchingContacts=!1,jt.contactResults.length=0,f.\u0275\u0275resetView(jt.contactBottomButtonActive=!1)}),f.\u0275\u0275text(4," Cancel "),f.\u0275\u0275elementEnd()()()}}function dt(Ct,Ut){if(1&Ct){const it=f.\u0275\u0275getCurrentView();f.\u0275\u0275elementStart(0,"div",52)(1,"app-small-group-card",53),f.\u0275\u0275listener("removeSubGroup",function(){const jt=f.\u0275\u0275restoreView(it).$implicit,ut=f.\u0275\u0275nextContext(3);return f.\u0275\u0275resetView(ut.removeFleetGroup(jt.groupId))}),f.\u0275\u0275elementEnd()()}if(2&Ct){const it=Ut.$implicit,Ft=Ut.$index;f.\u0275\u0275advance(),f.\u0275\u0275property("group",it)("index",Ft)}}function Mt(Ct,Ut){if(1&Ct&&(f.\u0275\u0275elementStart(0,"div",15),f.\u0275\u0275repeaterCreate(1,dt,2,2,"div",52,f.\u0275\u0275repeaterTrackByIdentity),f.\u0275\u0275elementEnd()),2&Ct){const it=f.\u0275\u0275nextContext(2);f.\u0275\u0275advance(),f.\u0275\u0275repeater(it.displayGroups)}}function y(Ct,Ut){if(1&Ct){const it=f.\u0275\u0275getCurrentView();f.\u0275\u0275elementStart(0,"span",35),f.\u0275\u0275listener("click",function(){f.\u0275\u0275restoreView(it);const jt=f.\u0275\u0275nextContext(3);return f.\u0275\u0275resetView(jt.searchingGroups=!jt.searchingGroups)}),f.\u0275\u0275elementStart(1,"strong"),f.\u0275\u0275text(2," + Add Groups "),f.\u0275\u0275elementEnd()()}}function x(Ct,Ut){1&Ct&&f.\u0275\u0275template(0,y,3,0,"span",34),2&Ct&&f.\u0275\u0275property("hasPrivilege","B2B_Update_Organization_Groups")}function W(Ct,Ut){if(1&Ct){const it=f.\u0275\u0275getCurrentView();f.\u0275\u0275elementStart(0,"div",12),f.\u0275\u0275element(1,"br",49),f.\u0275\u0275elementStart(2,"div",50)(3,"button",51),f.\u0275\u0275listener("click",function(){f.\u0275\u0275restoreView(it);const jt=f.\u0275\u0275nextContext(2);return f.\u0275\u0275resetView(jt.searchingGroups=!1)}),f.\u0275\u0275text(4," Cancel "),f.\u0275\u0275elementEnd()()()}}function E(Ct,Ut){1&Ct&&(f.\u0275\u0275elementStart(0,"button",18),f.\u0275\u0275text(1," Submit is disabled "),f.\u0275\u0275elementEnd())}function tt(Ct,Ut){if(1&Ct){const it=f.\u0275\u0275getCurrentView();f.\u0275\u0275elementStart(0,"button",56),f.\u0275\u0275listener("click",function(){f.\u0275\u0275restoreView(it);const jt=f.\u0275\u0275nextContext(4);
1return f.\u0275\u0275resetView(jt.saveFleetGroupChanges())}),f.\u0275\u0275text(1,"Save Changes"),f.\u0275\u0275elementEnd()}}function V(Ct,Ut){1&Ct&&f.\u0275\u0275template(0,tt,2,0,"button",55),2&Ct&&f.\u0275\u0275property("hasPrivilege","B2B_Update_Organization_Groups")}function Et(Ct,Ut){if(1&Ct&&f.\u0275\u0275conditionalCreate(0,V,1,1,"button",54),2&Ct){const it=f.\u0275\u0275nextContext(2);f.\u0275\u0275conditional(it.unsavedFleetGroupChanges?0:-1)}}function nt(Ct,Ut){if(1&Ct){const it=f.\u0275\u0275getCurrentView();f.\u0275\u0275elementStart(0,"div",2)(1,"div",5)(2,"div",6)(3,"label"),f.\u0275\u0275text(4,"Contacts"),f.\u0275\u0275elementEnd()(),f.\u0275\u0275elementStart(5,"div",6)(6,"span",7),f.\u0275\u0275text(7),f.\u0275\u0275elementEnd()()(),f.\u0275\u0275template(8,$,2,1,"ng-container",8)(9,st,2,1,"ng-container",9),f.\u0275\u0275conditionalCreate(10,Jt,1,1,"span",10),f.\u0275\u0275elementStart(11,"div",5),f.\u0275\u0275conditionalCreate(12,Tt,5,8,"div",11),f.\u0275\u0275conditionalCreate(13,_t,5,0,"div",12),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementStart(14,"div",13),f.\u0275\u0275element(15,"hr",14),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementStart(16,"div",5)(17,"div",6)(18,"label"),f.\u0275\u0275text(19,"Groups"),f.\u0275\u0275elementEnd()(),f.\u0275\u0275elementStart(20,"div",6)(21,"span",7),f.\u0275\u0275text(22),f.\u0275\u0275elementEnd()()(),f.\u0275\u0275conditionalCreate(23,Mt,3,0,"div",15),f.\u0275\u0275conditionalCreate(24,x,1,1,"span",10),f.\u0275\u0275elementStart(25,"div",5)(26,"div",16)(27,"app-groups-autocomplete",17),f.\u0275\u0275listener("groupsOutput",function(jt){f.\u0275\u0275restoreView(it);const ut=f.\u0275\u0275nextContext();return f.\u0275\u0275resetView(ut.fleetGroupsUpdated(jt))})("done",function(){f.\u0275\u0275restoreView(it);const jt=f.\u0275\u0275nextContext();return f.\u0275\u0275resetView(jt.searchingGroups=!1)}),f.\u0275\u0275elementEnd()(),f.\u0275\u0275conditionalCreate(28,W,5,0,"div",12),f.\u0275\u0275elementEnd(),f.\u0275\u0275element(29,"br"),f.\u0275\u0275conditionalCreate(30,E,2,0,"button",18)(31,Et,1,1),f.\u0275\u0275elementEnd()}if(2&Ct){const it=f.\u0275\u0275nextContext();f.\u0275\u0275advance(7),f.\u0275\u0275textInterpolate1(" ",null!=it.detailResponse&&null!=it.detailResponse.instanceContactDetails&&it.detailResponse.instanceContactDetails.detailedContacts?null==it.detailResponse||null==it.detailResponse.instanceContactDetails?null:it.detailResponse.instanceContactDetails.detailedContacts.length:0," total "),f.\u0275\u0275advance(),f.\u0275\u0275property("isMobileView",!1),f.\u0275\u0275advance(),f.\u0275\u0275property("isMobileView",!0),f.\u0275\u0275advance(),f.\u0275\u0275conditional(it.searchingContacts?-1:10),f.\u0275\u0275advance(2),f.\u0275\u0275conditional(it.searchingContacts?12:-1),f.\u0275\u0275advance(),f.\u0275\u0275conditional(it.searchingContacts?13:-1),f.\u0275\u0275advance(9),f.\u0275\u0275textInterpolate1("",it.displayGroups.length," total"),f.\u0275\u0275advance(),f.\u0275\u0275conditional(it.displayGroups&&it.displayGroups.length>0?23:-1),f.\u0275\u0275advance(),f.\u0275\u0275conditional(it.searchingGroups?-1:24),f.\u0275\u0275advance(3),f.\u0275\u0275property("accountIds",it.activeAccountIds)("searching",it.searchingGroups)("showCreateNewGroup",!1)("existingGroups",it.displayGroups),f.\u0275\u0275advance(),f.\u0275\u0275conditional(it.searchingGroups?28:-1),f.\u0275\u0275advance(2),f.\u0275\u0275conditional(it.disallowOrgOfFleet?30:31)}}T.GroupsAndContactsTabContentComponent=(()=>{class Ct{constructor(it,Ft,jt){this.groupsService=it,this.cdRef=Ft,this.statefulService=jt,this.tabletBreakpoint=b.GlobalConstants.TABLET_SIZE_BREAKPOINT,this.ALTEC_STANDARD_DEBOUNCE_LARGE=b.GlobalConstants.ALTEC_STANDARD_DEBOUNCE_LARGE,this.disallowOrgOfFleet=!1,this.reinitializeParentComponent=new N.EventEmitter,this.unsavedFleetGroupChanges=!1,this.searchingGroups=!1,this.loadingFleetGroups=!1,this.searchingContacts=!1,this.fleetGroupUpdateDtoArray=[],this.alertMessage="",this.showAlert=!1,this.contactsChanged=!1,this.contactResults=[],this.contactSearchSubject=ne
1w O.Subject,this.unsubscribe$=new O.Subject}ngOnInit(){this.addedGroupIds=[],this.removedGroupIds=[],this.addedContactIds=[],this.removedContactIds=[],this.fleetGroupUpdateDtoArray=[],this.loadingFleetGroups=!1,this.unsavedFleetGroupChanges=!1,this.searchContactsSubscription(),this.activeAccountIds=this.statefulService.profile.activeOrganizations.map(it=>it.accountId)}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}searchContactsSubscription(){this.contactSearchSubject.pipe((0,u.debounceTime)(this.ALTEC_STANDARD_DEBOUNCE_LARGE),(0,u.takeUntil)(this.unsubscribe$),(0,u.switchMap)(it=>{const Ft=new g.ContactSearchRequest;return Ft.query=it,Ft.accountId=this.accountIdForRelationships,it?this.groupsService.searchContacts(Ft).pipe((0,u.take)(1)):(0,O.of)([])})).subscribe(it=>{it&&it.length>0?(this.contactResults=it,this.contactBottomButtonActive=!0):(this.contactResults=[],this.contactBottomButtonActive=!1),this.loadingContactSearch=!1,this.cdRef.detectChanges()})}removeFleetGroup(it){this.checkIfGroupExists(it)&&(this.unsavedFleetGroupChanges=!0,this.removedGroupIds.push(it));const jt={...this.displayGroups[this.displayGroups.findIndex(ut=>ut.groupId===it)]};this.alertMessage=jt.name+" removed from unit.",this.showAlert=!0,this.displayGroups.splice(this.displayGroups.findIndex(ut=>ut.groupId===it),1),this.checkForGroupChanges()}checkIfGroupExists(it){return this.detailResponse.groups.some(Ft=>Ft.groupId===it)}updateContacts(it,Ft){"add"===it?(this.detailResponse.instanceContactDetails.orgOfFleetInstance.contacts.push({ebsContactId:Ft.id,accountId:+this.accountIdForRelationships}),this.displayContacts.push(Ft),this.alertMessage=Ft.firstName+" "+Ft.lastName+" added to unit.",this.showAlert=!0):(this.detailResponse.instanceContactDetails.orgOfFleetInstance.contacts.splice(this.detailResponse.instanceContactDetails.orgOfFleetInstance.contacts.findIndex(jt=>jt.ebsContactId===Ft.id),1),this.displayContacts.splice(this.detailResponse.instanceContactDetails.detailedContacts.findIndex(jt=>jt.id===Ft.id),1),this.alertMessage=Ft.firstName+" "+Ft.lastName+" removed from unit.",this.showAlert=!0),this.checkForContactChanges()}checkForContactChanges(){const it=[];for(let jt of this.displayContacts)it.push(jt.id);const Ft=[];for(let jt of this.detailResponse.instanceContactDetails.detailedContacts)Ft.push(jt.id);this.addedContactIds=it.filter(jt=>Ft.indexOf(jt)<0),this.removedContactIds=Ft.filter(jt=>it.indexOf(jt)<0),this.addedContactIds.length>0||this.removedContactIds.length>0?(this.unsavedFleetGroupChanges=!0,this.contactsChanged=!0):(this.unsavedFleetGroupChanges=!1,this.contactsChanged=!1)}fleetGroupsUpdated(it){"add"===it.action?(this.displayGroups.push(it.group),this.alertMessage=it.group.name+" added to unit."):(this.displayGroups.splice(this.displayGroups.findIndex(Ft=>Ft.groupId===it.group.groupId),1),this.alertMessage=it.group.name+" removed from unit."),this.showAlert=!0,this.checkForGroupChanges()}checkForGroupChanges(){const it=[];for(let jt of this.displayGroups)it.push(jt.groupId);const Ft=[];for(let jt of this.detailResponse.groups)Ft.push(jt.groupId);this.addedGroupIds=it.filter(jt=>Ft.indexOf(jt)<0),this.removedGroupIds=Ft.filter(jt=>it.indexOf(jt)<0),this.unsavedFleetGroupChanges=this.addedGroupIds.length>0||this.removedGroupIds.length>0}groupToFleetGroupsContent(it){return{contactCount:it.contacts?.length,description:it.description,groupId:it.groupId,instanceCount:it.instances?.length,name:it.name,subGroups:it.subGroups?.map(Ft=>this.groupToFleetGroupsContent(Ft)),customerName:this.detailResponse.customerName,version:it.version,multiOrg:it.multiOrg,accountId:it.accountId}}saveFleetGroupChanges(){let it,Ft;if(this.loadingFleetGroups=!0,this.addedGroupIds&&this.addedGroupIds.length>0)for(let ut of this.addedGroupIds)this.fleetGroupUpdateDtoArray.push(this.createFleetGroupUpdateDto(ut,!0));if(this.removedGroupIds&&this.removedGroupIds.length>0)for(let ut of this.removedGroupIds)this.fleetGroupUpdateDtoArray.push(this.createFleetGroupUpdateDto(ut,!1));let jt=[];this.fleetGroupUpdateDtoArray.forEach(ut=>{jt.push(this.groupsService.updateGroup(ut).pipe((0,u.take)(1)))}),it=this.fleetGroupUpdateDtoArray.length>0?(0,O.forkJoin)(jt):(0,O.of)(null),Ft=this.contactsChanged?this.groupsService.createOrUpdateInstance(this.orgOfFleetInstance).pipe((0,u.take)(1)):(0,O.of)(null),(0,O.forkJoin)([it,Ft]).subscribe(ut
1=>{if(ut[0]){for(let Qt of this.removedGroupIds)this.detailResponse.groups.splice(this.detailResponse.groups.findIndex(wt=>wt.groupId===Qt),1);for(let Qt of this.addedGroupIds)this.detailResponse.groups.push(this.groupToFleetGroupsContent(ut[0].find(wt=>wt.group.groupId===Qt)?.group));this.addedContactIds=[],this.addedGroupIds=[],this.removedContactIds=[],this.removedGroupIds=[],this.fleetGroupUpdateDtoArray=[],this.unsavedFleetGroupChanges=!1}if(ut[1]){this.detailResponse.instanceContactDetails.orgOfFleetInstance=ut[1].instance;let Qt=[];Object.keys(ut[1].detailedContacts).forEach(wt=>{Qt.push(ut[1].detailedContacts[wt])}),this.detailResponse.instanceContactDetails.detailedContacts=Qt,this.contactsChanged=!1}this.searchingContacts=!1,this.searchingGroups=!1,this.reinitializeParentComponent.emit(),this.loadingFleetGroups=!1})}createFleetGroupUpdateDto(it,Ft){let jt=new h.FleetGroupUpdateDto;return jt.groupId=it,Ft?jt.instancesToAdd=[{ebsInstanceId:this.detailResponse.instanceId,groupId:it,accountId:+this.accountIdForRelationships}]:jt.instancesToRemove=[{ebsInstanceId:this.detailResponse.instanceId,groupId:it,accountId:+this.accountIdForRelationships}],jt}get orgOfFleetInstance(){return this.detailResponse?.instanceContactDetails?.orgOfFleetInstance}searchContacts(it){this.loadingContactSearch=!0,this.contactSearchSubject.next(it)}contactExistsOnInstance(it){return!(!this.orgOfFleetInstance||!this.orgOfFleetInstance.contacts)&&this.orgOfFleetInstance.contacts.findIndex(Ft=>Ft.ebsContactId===it.id)>-1}contactName(it,Ft){return it&&Ft?`${it.charAt(0).toUpperCase()+it.slice(1).toLowerCase()} ${Ft.charAt(0).toUpperCase()}${Ft.slice(1).toLowerCase()}`:""}stopPropagation(it){it.stopPropagation()}static{this.\u0275fac=function(Ft){return new(Ft||Ct)(f.\u0275\u0275directiveInject(v.FleetGroupsService),f.\u0275\u0275directiveInject(f.ChangeDetectorRef),f.\u0275\u0275directiveInject(p.StatefulService))}}static{this.\u0275cmp=f.\u0275\u0275defineComponent({type:Ct,selectors:[["altecConnect-groups-and-contacts-tab-content"]],inputs:{detailResponse:"detailResponse",displayGroups:"displayGroups",displayContacts:"displayContacts",accountIdForRelationships:"accountIdForRelationships",disallowOrgOfFleet:"disallowOrgOfFleet"},outputs:{reinitializeParentComponent:"reinitializeParentComponent"},standalone:!1,decls:3,vars:3,consts:[[1,"text-center","mt-5"],[3,"alertMessage"],[1,"mb-3"],[1,"fa","fa-spinner","fa-pulse","fa-4x","fa-fw","gold"],[3,"onClose","alertMessage"],[1,"row"],[1,"col-6"],[1,"group-total","float-end","me-3"],[4,"isMobileView"],["class","row",4,"isMobileView"],[1,"sub-group","link","pointer"],[1,"col-sm-8","col-12","mb-2"],[1,"col-sm-2","col-12"],[1,"col-12"],[1,"solid"],[1,"row","mt-4"],[1,"col-sm-8","col-12"],[3,"groupsOutput","done","accountIds","searching","showCreateNewGroup","existingGroups"],["type","button",1,"btn","btn-disabled","mt-4","me-3"],[1,"table","table-striped"],["class","col-sm-3",4,"hasPrivilege"],["class","col-sm-3",4,"notHasPrivilege"],[1,"col-sm-3"],[1,"col-sm-2"],[1,"col-sm-1"],["class","pointer fa fa-times-circle delete-icon dark-red fa-lg float-end","aria-hidden","true",3,"click",4,"hasPrivilege"],[1,"link","pointer",3,"routerLink","queryParams"],["aria-hidden","true",1,"pointer","fa","fa-times-circle","delete-icon","dark-red","fa-lg","float-end",3,"click"],[1,"fleet-table"],[1,"fleet-row"],[1,"col-10"],[4,"hasPrivilege"],[4,"notHasPrivilege"],[1,"col-2"],["class","sub-group link pointer",3,"click",4,"hasPrivilege"],[1,"sub-group","link","pointer",3,"click"],[3,"searchChange","bottomButtonPressed","placeholder","selectMessage","searchTip","resultsLength","loading","autoCompleteOn","bottomButtonActive","bottomButtonText"],[1,"fleet-row",3,"hidden"],[1,"fleet-row",3,"click","hidden"],[1,"row",2,"display","flex","align-items","center"],[1,"col-1","text-center"],["aria-hidden","true",1,"fa","fa-lg","me-1","fa-plus","add-icon","pointer"],["aria-hidden","true",1,"fa","fa-lg","me-1","fa-minus","remove-icon","pointer"],[3,"isMobileView","breakPoint"],["aria-hidden","true",1,"fa","fa-lg","me-1","fa-plus","add-icon","pointer",3,"click"],["aria-hidden","true",1,"fa","fa-lg","me-1","fa-minus","remove-icon","pointer",3,"click"],[1,"col-5"],[1,"equipment-font"],[1,"col-11"],[1,"d-block","d-sm-none"],[1,"d-grid"],[1,"btn-altec",3,"click"],[1,"groups","col-12","col-sm-6","col-md-4"],[3,"removeSubGroup","group","index"],[1,"btn-altec","mt-4"],["class","btn-altec mt-4",3,"click",4,"hasPrivilege"],[1,"btn-altec","mt-4",3,"click"]],template:function(Ft,jt){1&Ft&&(f.\u0275\u0275conditionalCreate(0,gt,2,0,"div",0),f.\u0275\u0275conditionalCreate(1,mt,1,1,"altec-alert",1),f.\u0275\u0275conditionalCreate(2,nt,32,15,"div",2)),2&Ft&&(f.\u0275\u0275conditional(jt.loadingFleetGroups?0:-1),f.\u0275\u0275advance(),f.\u0275\u0275conditional(jt.showAlert?1:-1),f.\u0275\u0275advance(),f.\u0275\u0275conditional(jt.loadingFleetGroups?-1:2))},dependencies:[J.SmallGroupCardComponent,lt.AutocompleteDropdownComponent,r.GroupsAutocompleteComponent,I.RouterLink,vt.HasPrivilegeDirective,C.NotHasPrivilegeDirective,ht.SelectiveView,F.AlertComponent,ct.PhoneNumberPipe,at.EmailToStringPipe],styles:[".table[_ngcontent-%COMP%]{margin-bottom:15px}td[_ngcontent-%COMP%]{border-top:0!important;padding:15px 8px!important;vertical-align:middle!important}th[_ngcontent-%COMP%]{border-bottom:0!important;position:sticky;top:0;z-index:1;background:#fff}.table-container[_ngcontent-%COMP%]{overflow-y:auto}@media(min-width:768px){.table-container[_ngcontent-%COMP%]{height:260px}}@media(max-width:767px){.table-container[_ngcontent-%COMP%]{height:400px}}[_ngcontent-%COMP%]:root{--bs-gutter-x: 1.5rem;--bs-gutter-y: 1.5rem}.d-flex[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{float:none}.col[_ngcontent-%COMP%]{flex:1 0 0;padding-left:var(--bs-gutter-x, 1.5rem);padding-right:var(--bs-gutter-x, 1.5rem)}@media only screen and (min-width:576px){.col-sm-auto[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;max-width:none}}@media only screen and (min-width:768px){.col-md-auto[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;max-width:none}}.col-auto[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;max-width:100%;padding-left:var(--bs-gutter-x, 1.5rem);padding-right:var(--bs-gutter-x, 1.5rem)}.justify-content-center[_ngcontent-%COMP%]{justify-content:center}.justify-content-end[_ngcontent-%COMP%]{justify-content:end}.align-items-center[_ngcontent-%COMP%]{align-items:center}.align-items-end[_ngcontent-%COMP%]{align-items:end}.flex-column-reverse[_ngcontent-%COMP%]{flex-direction:column-reverse}.d-flex[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}@media only screen and (min-width:768px){.d-md-block[_ngcontent-%COMP%]{display:block}}@media only screen and (min-width:768px){.d-md-none[_ngcontent-%COMP%]{display:none}}@media only screen and (min-width:768px){.d-md-flex[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}}@media only screen and (min-width:992px){.d-lg-none[_ngcontent-%COMP%]{display:none!important}}@media only screen and (min-width:992px){.d-lg-block[_ngcontent-%COMP%]{display:block!important}}.w-100[_ngcontent-%COMP%]{width:100%!important}.h-100[_ngcontent-%COMP%]{height:100%!important}.px-3[_ngcontent-%COMP%]{padding-left:15px!important;padding-right:15px!important}.pr-0[_ngcontent-%COMP%]{padding-right:0!important}.pl-0[_ngcontent-%COMP%]{padding-left:0!important}.pt-3[_ngcontent-%COMP%]{padding-top:1rem}.pb-3[_ngcontent-%COMP%]{padding-bottom:1rem}.mb-3[_ngcontent-%COMP%]{margin-bottom:1rem}.pb-2[_ngcontent-%COMP%]{padding-bottom:.5rem}@media print{.no-print[_ngcontent-%COMP%]{display:none!important}}.m-0[_ngcontent-%COMP%]{margin:0!important}.mt-0[_ngcontent-%COMP%]{margin-top:0!important}.mb-0[_ngcontent-%COMP%]{margin-bottom:0!important}.ms-0[_ngcontent-%COMP%]{margin-left:0!important}.me-0[_ngcontent-%COMP%]{margin-right:0!important}.mx-0[_ngcontent-%COMP%]{margin-left:0!important;margin-right:0!important}.my-0[_ngcontent-%COMP%]{margin-top:0!important;margin-bottom:0!important}.p-0[_ngcontent-%COMP%]{padding:0!important}.pt-0[_ngcontent-%COMP%]{padding-top:0!important}.pb-0[_ngcontent-%COMP%]{padding-bottom:0!important}.ps-0[_ngcontent-%COMP%]{padding-left:0!important}.pe-0[_ngcontent-%COMP%]{padding-right:0!important}.px-0[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.py-0[_ngcontent-%COMP%]{padding-top:0!important;padding-bottom:0!important}.m-1[_ngcontent-%COMP%]{margin:.25rem!important}.mt-1[_ngcontent-%COMP%]{margin-top:.25rem!important}.mb-1[_ngcontent-%COMP%]{margin-bottom:.25rem!important}.ms-1[_ngcontent-%COMP%]{margin-left:.25rem!important}.me-1[_ngcontent-%COMP%]{margin-right:.25rem!important}.mx-1[_ngcontent-%COMP%]{margin-left:.25rem!important;margin-right:.25rem!important}.my-1[_ngcontent-%COMP%]{margin-top:.25rem!important;margin-bottom:.25rem!important}.p-1[_ngcontent-%COMP%]{padding:.25rem!important}.pt-1[_ngcontent-%COMP%]{padding-top:.25rem!important}.pb-1[_ngcontent-%COMP%]{padding-bottom:.25rem!important}.ps-1[_ngcontent-%COMP%]{padding-left:.25rem!important}.pe-1[_ngcontent-%COMP%]{padding-right:.25rem!important}.px-1[_ngcontent-%COMP%]{padding-left:.25rem!important;padding-right:.25rem!important}.py-1[_ngcontent-%COMP%]{padding-top:.25rem!important;padding-bottom:.25rem!important}.m-2[_ngcontent-%COMP%]{margin:.5rem!important}.mt-2[_ngcontent-%COMP%]{margin-top:.5rem!important}.mb-2[_ngcontent-%COMP%]{margin-bottom:.5rem!important}.ms-2[_ngcontent-%COMP%]{margin-left:.5rem!important}.me-2[_ngcontent-%COMP%]{margin-right:.5rem!important}.mx-2[_ngcontent-%COMP%]{margin-left:.5rem!important;margin-right:.5rem!important}.my-2[_ngcontent-%COMP%]{margin-top:.5rem!important;margin-bottom:.5rem!important}.p-2[_ngcontent-%COMP%]{padding:.5rem!important}.pt-2[_ngcontent-%COMP%]{padding-top:.5rem!important}.pb-2[_ngcontent-%COMP%]{padding-bottom:.5rem!important}.ps-2[_ngcontent-%COMP%]{padding-left:.5rem!important}
1.pe-2[_ngcontent-%COMP%]{padding-right:.5rem!important}.px-2[_ngcontent-%COMP%]{padding-left:.5rem!important;padding-right:.5rem!important}.py-2[_ngcontent-%COMP%]{padding-top:.5rem!important;padding-bottom:.5rem!important}.m-3[_ngcontent-%COMP%]{margin:1rem!important}.mt-3[_ngcontent-%COMP%]{margin-top:1rem!important}.mb-3[_ngcontent-%COMP%]{margin-bottom:1rem!important}.ms-3[_ngcontent-%COMP%]{margin-left:1rem!important}.me-3[_ngcontent-%COMP%]{margin-right:1rem!important}.mx-3[_ngcontent-%COMP%]{margin-left:1rem!important;margin-right:1rem!important}.my-3[_ngcontent-%COMP%]{margin-top:1rem!important;margin-bottom:1rem!important}.p-3[_ngcontent-%COMP%]{padding:1rem!important}.pt-3[_ngcontent-%COMP%]{padding-top:1rem!important}.pb-3[_ngcontent-%COMP%]{padding-bottom:1rem!important}.ps-3[_ngcontent-%COMP%]{padding-left:1rem!important}.pe-3[_ngcontent-%COMP%]{padding-right:1rem!important}.px-3[_ngcontent-%COMP%]{padding-left:1rem!important;padding-right:1rem!important}.py-3[_ngcontent-%COMP%]{padding-top:1rem!important;padding-bottom:1rem!important}.m-4[_ngcontent-%COMP%]{margin:1.5rem!important}.mt-4[_ngcontent-%COMP%]{margin-top:1.5rem!important}.mb-4[_ngcontent-%COMP%]{margin-bottom:1.5rem!important}.ms-4[_ngcontent-%COMP%]{margin-left:1.5rem!important}.me-4[_ngcontent-%COMP%]{margin-right:1.5rem!important}.mx-4[_ngcontent-%COMP%]{margin-left:1.5rem!important;margin-right:1.5rem!important}.my-4[_ngcontent-%COMP%]{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.p-4[_ngcontent-%COMP%]{padding:1.5rem!important}.pt-4[_ngcontent-%COMP%]{padding-top:1.5rem!important}.pb-4[_ngcontent-%COMP%]{padding-bottom:1.5rem!important}.ps-4[_ngcontent-%COMP%]{padding-left:1.5rem!important}.pe-4[_ngcontent-%COMP%]{padding-right:1.5rem!important}.px-4[_ngcontent-%COMP%]{padding-left:1.5rem!important;padding-right:1.5rem!important}.py-4[_ngcontent-%COMP%]{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.m-5[_ngcontent-%COMP%]{margin:3rem!important}.mt-5[_ngcontent-%COMP%]{margin-top:3rem!important}.mb-5[_ngcontent-%COMP%]{margin-bottom:3rem!important}.ms-5[_ngcontent-%COMP%]{margin-left:3rem!important}.me-5[_ngcontent-%COMP%]{margin-right:3rem!important}.mx-5[_ngcontent-%COMP%]{margin-left:3rem!important;margin-right:3rem!important}.my-5[_ngcontent-%COMP%]{margin-top:3rem!important;margin-bottom:3rem!important}.p-5[_ngcontent-%COMP%]{padding:3rem!important}.pt-5[_ngcontent-%COMP%]{padding-top:3rem!important}.pb-5[_ngcontent-%COMP%]{padding-bottom:3rem!important}.ps-5[_ngcontent-%COMP%]{padding-left:3rem!important}.pe-5[_ngcontent-%COMP%]{padding-right:3rem!important}.px-5[_ngcontent-%COMP%]{padding-left:3rem!important;padding-right:3rem!important}.py-5[_ngcontent-%COMP%]{padding-top:3rem!important;padding-bottom:3rem!important}.add-icon[_ngcontent-%COMP%]{color:green}.remove-icon[_ngcontent-%COMP%]{color:#a94442}.remove-icon-disabled[_ngcontent-%COMP%]{color:#707070!important;cursor:default!important}.dark-red[_ngcontent-%COMP%]{color:#a94442}.delete-icon[_ngcontent-%COMP%]{width:fit-content;cursor:pointer;color:#a94442;padding:var(--bs-gutter-x, 1.5rem)}"]})}}return Ct})()},77279(Ht,T,d){"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.JemsInsightsTabContentComponent=void 0;const S=d(31635),N=d(49849),O=d(43481),u=d(59091),b=(d(60177),d(6324)),h=(d(39756),d(32791)),D=d(98259),v=(d(86229),d(88088)),J=(d(20851),S.__importStar(d(49849))),lt=S.__importStar(d(60177)),r=S.__importStar(d(86229)),I=S.__importStar(d(39756)),vt=S.__importStar(d(20851)),C=S.__importStar(d(87248)),ht=S.__importStar(d(40336)),F=S.__importStar(d(71424)),ct=S.__importStar(d(40509)),at=["rightColumn"],rt=["graph"];function X(St,ft){if(1&St){const ot=J.\u0275\u0275getCurrentView();J.\u0275\u0275elementStart(0,"div",2)(1,"div",4)(2,"div",5)(3,"div",6)(4,"altcon-inline-daterange",7),J.\u0275\u0275listener("dateRangeSelection",function(Ot){J.\u0275\u0275restoreView(ot);const $=J.\u0275\u0275nextContext();return J.\u0275\u0275resetView($.insightsService.setDateRange(Ot))}),J.\u0275\u0275elementEnd()(),J.\u0275\u0275elementStart(5,"div",8)(6,"button",9),J.\u0275\u0275listener("click",function(){J.\u0275\u0275restoreView(ot);const Ot=J.\u0275\u0275nextContext();
1return J.\u0275\u0275resetView(Ot.exportData())}),J.\u0275\u0275element(7,"i",10),J.\u0275\u0275text(8," Export"),J.\u0275\u0275elementEnd()()()()()}if(2&St){const ot=J.\u0275\u0275nextContext();J.\u0275\u0275advance(4),J.\u0275\u0275property("initialStartDate",ot.insightsService.startDate)("initialEndDate",ot.insightsService.endDate)("earliestDate",ot.earliestAllowedDateParam)("latestDate",ot.latestAllowedDateParam)("alignDatePicker","LEFT")("showClearSelectionButton",!1)}}function gt(St,ft){if(1&St&&(J.\u0275\u0275elementStart(0,"div",3,0)(2,"div",11),J.\u0275\u0275element(3,"altec-connect-performance-chart",12),J.\u0275\u0275elementEnd(),J.\u0275\u0275elementStart(4,"div",13)(5,"div",14,1)(7,"div",15),J.\u0275\u0275element(8,"altec-connect-fuel-maintenance-avoidance",16),J.\u0275\u0275elementEnd(),J.\u0275\u0275elementStart(9,"div",15),J.\u0275\u0275element(10,"altec-connect-emissions-avoidance",17),J.\u0275\u0275elementEnd()()()()),2&St){const ot=J.\u0275\u0275nextContext();J.\u0275\u0275advance(3),J.\u0275\u0275property("antiIdleTotal",ot.antiIdleTotal)("idleTotal",ot.idleTotal)("chargingHrTotal",ot.chargingHrTotal)("view","utilization")("chart",ot.utilizationGraph),J.\u0275\u0275advance(5),J.\u0275\u0275property("hideGearIcon",!0)("fuelSavings",ot.fuelSavings)("estMaintSavings",ot.maintenanceSavings),J.\u0275\u0275advance(2),J.\u0275\u0275property("co2",ot.co2)("nox",ot.nox)}}T.JemsInsightsTabContentComponent=(()=>{class St{constructor(ot,B,Ot,$){this.datePipe=ot,this.breakpointObserver=B,this.insightsService=Ot,this.loader=$,this.jemsModel=new N.EventEmitter,this.unsubscribe$=new u.Subject,this.fuelSavings=0,this.maintenanceSavings=0,this.allAssets=[],this.dataAssets=[]}ngOnInit(){this.initializeDates(),this.insightsService.selectedDateRange.pipe((0,O.tap)(ot=>{const B=this.insightsService.getInsightInterval();(0,h.setInterval)(B),this.utilizationGraph=(0,h.getUtilizationGraph)(ot.startDate,B)}),(0,O.switchMap)(ot=>ot?.startDate&&ot?.endDate?this.getAssetList():(0,u.of)([])),(0,O.takeUntil)(this.unsubscribe$)).subscribe(ot=>{this.allAssets=[],this.dataAssets=[],ot.forEach(B=>{this.allAssets.push({unit:B}),this.jemsModel.emit(B.jemsModel)}),ot&&ot.length>0&&this.initData()})}ngAfterViewInit(){this.breakpointObserver.observe(["(min-width: 768px)"]).pipe((0,O.takeUntil)(this.unsubscribe$)).subscribe(ot=>{this.rightColumn.nativeElement.style.height=ot.breakpoints["(min-width: 768px)"]?this.graph.nativeElement.clientHeight+"px":"auto"})}getAssetList(){let ot=new Date(this.insightsService.endDate);return this.endDate=this.datePipe.transform(ot.setDate(ot.getDate()+1),"yyyy-MM-dd"),this.startDate=this.datePipe.transform(this.insightsService.startDate,"yyyy-MM-dd"),this.insightsService.getAssetList({startDate:this.startDate,endDate:this.endDate,instanceIds:[this.instanceId]})}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}initializeDates(){let ot=new Date,B=ot.getFullYear();this.yesterday=new Date(ot.getFullYear(),ot.getMonth(),ot.getDate()-1),this.earliestAllowedDate=new Date(B-1,0,1),this.earliestAllowedDateParam=new b.NgbDate(this.earliestAllowedDate.getFullYear(),this.earliestAllowedDate.getMonth()+1,this.earliestAllowedDate.getDate()),this.latestAllowedDateParam=new b.NgbDate(this.yesterday.getFullYear(),this.yesterday.getMonth()+1,this.yesterday.getDate())}initData(){this.getCalculationBulk(["AntiIdleHours","JobsiteIdleHours","JobsiteChargingHours"],!1).pipe((0,O.takeUntil)(this.unsubscribe$)).subscribe(ot=>{let B=ot.AntiIdleHours,Ot=ot.JobsiteIdleHours,$=ot.JobsiteChargingHours;this.antiIdleTotal=(0,D.timeStringConvert)(B?.totals?.overallValue??0),this.idleTotal=(0,D.timeStringConvert)(Ot?.totals?.overallValue??0),this.chargingHrTotal=(0,D.timeStringConvert)($?.totals?.overallValue??0),this.editUnitData("antiIdle",B?.values),this.editUnitData("idleHrs",Ot?.values),this.editUnitData("plugInHrs",$?.values),this.generateGraphData(this.utilizationGraph,[B,Ot,$])}),this.getCalculationBulk(["FuelSavingsDollars","MaintenanceAvoidanceDollars","CO2EmissionsAvoidanceLbs","NOxEmissionsAvoidanceGrams"],!1).pipe((0,O.takeUntil)(this.unsubscribe$)).subscribe(ot=>{let Ot=ot.MaintenanceAvoidanceDollars,$=ot.CO2EmissionsAvoidanceLbs,j=ot.NOxEmissionsAvoidanceGrams;this.fuelSavings=Math.round(ot.FuelSavingsDollars.totals.overallValue),this.insightsService.setFuelSavings(this.fuelSavings),this.maintenanceSavings=Math.round(Ot.totals.overallValue),this.editUnitData("maintenanceSavings",Ot?.values),this.editUnitData("c
1o2Avoidance",$?.values),this.editUnitData("noxAvoidance",j?.values),this.co2=Math.round($.totals.overallValue),this.nox=Math.round(j.totals.overallValue)})}getCalculation(ot){let B=new Date(this.insightsService.endDate);return this.endDate=this.datePipe.transform(B.setDate(B.getDate()+1),"yyyy-MM-dd"),this.startDate=this.datePipe.transform(this.insightsService.startDate,"yyyy-MM-dd"),this.interval=D.InsightDate[this.insightsService.getInsightInterval()],this.insightsService.getInsightCalculation({calculationName:ot,startDate:this.startDate,endDate:this.endDate,dateGroupings:[this.interval],instanceIds:[this.instanceId],excludeInstanceData:!0})}getCalculationBulk(ot,B){let Ot=new Date(this.insightsService.endDate);return this.endDate=this.datePipe.transform(Ot.setDate(Ot.getDate()+1),"yyyy-MM-dd"),this.startDate=this.datePipe.transform(this.insightsService.startDate,"yyyy-MM-dd"),this.interval=D.InsightDate[this.insightsService.getInsightInterval()],this.insightsService.getInsightCalculationBulk({calculationNames:ot,trimUnitData:!0,calculationRequest:{calculationName:"",startDate:this.startDate,endDate:this.endDate,dateGroupings:[this.interval],instanceIds:[this.instanceId],excludeInstanceData:B}})}generateGraphData(ot,B){let Ot=new Date(this.insightsService.startDate);ot.labels=[];let $,j=this.insightsService.daysDiff,G=new Date(this.insightsService.startDate),k=[];const R=this.insightsService.getInsightInterval();switch(R){case"WEEKLY":j=Math.ceil(j/7),G.setDate(G.getDate()-(0===G.getDay()?6:G.getDay()-1)),B.forEach(U=>{k.push(U.totals.weeklyValues)});break;case"MONTHLY":j=Math.ceil(j/30),Ot.setDate(1),G.setDate(1),B.forEach(U=>{k.push(U.totals.monthlyValues)});break;default:B.forEach(U=>{k.push(U.totals.dailyValues)})}k.forEach((U,st)=>{$=0;const Dt=Object.keys(U).length;if(j<Dt&&(j=Dt),ot.data[st].data=new Array(j),Dt>0){let Jt,kt,bt=new Date;for(let K=0;K<j;K++){if(0===st){Ot=new Date(G);let xt=(0,D.customDateFormatter)(Ot,K,R);ot.labels.push(xt),kt=xt.split("/")}else kt=ot.labels[K].split("/");if($<Dt){"MONTHLY"!=R?(Jt=U[`20${kt[2]}-${kt[0]}-${kt[1]}`],bt=new Date(+kt[2],parseInt(kt[0],10)-1,+kt[1])):(Jt=U[`20${kt[1]}-${kt[0]}`],bt=new Date(+kt[1],parseInt(kt[0],10)-1));let q=ot.labels.indexOf((0,D.customDateFormatter)(bt,0,R),0);q>-1&&Jt&&(ot.data[st].data[q]=Jt,$++)}}}})}exportData(){this.loader.start(),this.getCalculationBulk(["PlugInChargeCount","JobsiteIdleGallons","JobsiteIdleDollars","JobsiteChargingGallons","JobsiteChargingDollars","MPTOHours","EPTOHours","JobsiteUtilizationPercentage","JobsiteIdlePercentage","PlugInChargingPercentage","GasSavingsGallons","DieselSavingsGallons","GasSavingsDollars","MaintenanceAvoidanceDollars","DieselSavingsDollars","PlugInChargingKWH"],!1).pipe((0,O.takeUntil)(this.unsubscribe$)).subscribe(ot=>{let B=ot.PlugInChargeCount,Ot=ot.JobsiteIdleGallons,$=ot.JobsiteIdleDollars,j=ot.JobsiteChargingGallons,G=ot.JobsiteChargingDollars,k=ot.MPTOHours,R=ot.EPTOHours,U=ot.JobsiteUtilizationPercentage,st=ot.JobsiteIdlePercentage,Dt=ot.PlugInChargingPercentage,Jt=ot.GasSavingsGallons,bt=ot.DieselSavingsGallons,kt=ot.GasSavingsDollars,K=ot.MaintenanceAvoidanceDollars,xt=ot.DieselSavingsDollars,q=ot.PlugInChargingKWH;this.editUnitData("plugInCount",B?.values),this.editUnitData("idleGallons",Ot?.values),this.editUnitData("idleDollars",$?.values),this.editUnitData("chargingGallons",j?.values),this.editUnitData("chargingDollars",G?.values),this.editUnitData("mPTOTime",k?.values),this.editUnitData("ePTOTime",R?.values),this.editUnitData("utilization",U?.values),this.editUnitData("idle",st?.values),this.editUnitData("plugIn",Dt?.values),this.editUnitData("gasSavingsGallons",Jt?.values),this.editUnitData("dieselSavingsGallons",bt?.values),this.editUnitData("gasSavingsDollars",kt?.values),this.editUnitData("maintenanceSavings",K?.values),this.editUnitData("dieselSavingsDollars",xt?.values),this.editUnitData("plugInKw",q?.values),(0,v.downloadDataAsCsvFile)(this.dataAssets,this.insightsService.INSIGHTS_CSV_COLUMNS,"jems-export.csv"),this.loader.stop()})}editUnitData(ot,B){B.forEach(Ot=>{let $=this.dataAssets.find(j=>j.unit.instanceId===Ot.instanceId);$||($=this.allAssets.find(j=>j.unit.instanceId===Ot.instanceId),$[ot]="antiIdle"===ot?Math.round(10*Ot.overallValue)/10:Math.round(100*Ot.overallValue)/100,this.dataAssets.push($)),$[ot]="antiIdle"===ot?Math.round(10*Ot.overallValue)/10:Math.round(Ot.overallValue)})}static{this.\u0275fac=function(B){return new(B||St)(J.\u0275\u0275directiveInject(lt.DatePipe),J.\u0275\u0275directiveInject(r.BreakpointObserver),J.\u0275\u0275directiveInject(I.InsightsService),J.\u0275\u0275directiveInject(vt.LoadingService))}}static{this.\u0275cmp=J.\u0275\u0275defineComponent({type:St,selectors:[["altecConnect-jems-insights-tab-content"]],viewQuery:function(B,Ot){if(1&B&&J.\u0275\u0275viewQuery(at,5)(rt,5),2&B){let $;J.\u0275\u0275queryRefresh($=J.\u0275\u0275loadQuery())&&(Ot.rightColumn=$.first),J.\u0275\u0275queryRefresh($=J.\u0275\u0275loadQuery())&&(Ot.graph=$.first)}},inputs:{hasJEMS:"hasJEMS",instanceId:"instanceId"},outputs:{jemsModel:"jemsModel"},standalone:!1,decls:2,vars:2,consts:[["graph",""],["rightColumn",""],[1,"row"],[1,"row","mt-4","chart
1-row"],[1,"col-12"],[1,"date-export-row"],[1,"mt-4"],[1,"datepicker",3,"dateRangeSelection","initialStartDate","initialEndDate","earliestDate","latestDate","alignDatePicker","showClearSelectionButton"],[1,"mt-4","ms-2"],[1,"btn","btn-light","btn-sm",3,"click"],[1,"fa","fa-download"],[1,"col-12","col-md-8"],[3,"antiIdleTotal","idleTotal","chargingHrTotal","view","chart"],[1,"col-12","col-md-4"],[1,"right-col"],[1,"col-sm-12"],[3,"hideGearIcon","fuelSavings","estMaintSavings"],[3,"co2","nox"]],template:function(B,Ot){1&B&&(J.\u0275\u0275conditionalCreate(0,X,9,6,"div",2),J.\u0275\u0275conditionalCreate(1,gt,11,10,"div",3)),2&B&&(J.\u0275\u0275conditional(Ot.hasJEMS?0:-1),J.\u0275\u0275advance(),J.\u0275\u0275conditional(Ot.hasJEMS?1:-1))},dependencies:[C.PerformanceChartComponent,ht.EmissionsAvoidanceComponent,F.FuelMaintenanceAvoidanceComponent,ct.InlineDaterangeComponent],styles:[".flex-col[_ngcontent-%COMP%]{display:flex;flex-direction:column}.flex-grow[_ngcontent-%COMP%]{flex:1;display:flex}.pl-0[_ngcontent-%COMP%]{padding-left:0}.padding-0[_ngcontent-%COMP%]{padding:0}.block-component[_ngcontent-%COMP%], .block-component-table[_ngcontent-%COMP%]{border:1px solid #777;width:100%}.block-component[_ngcontent-%COMP%] .block-header[_ngcontent-%COMP%], .block-component-table[_ngcontent-%COMP%] .block-header[_ngcontent-%COMP%]{border-bottom:1px solid #CCC}.block-component[_ngcontent-%COMP%] .block-header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%], .block-component-table[_ngcontent-%COMP%] .block-header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:28px;padding:20px 10px 0}.block-component[_ngcontent-%COMP%] .chart-container[_ngcontent-%COMP%], .block-component-table[_ngcontent-%COMP%] .chart-container[_ngcontent-%COMP%]{position:relative;margin:auto;height:23vh;width:100%}.block-component-table[_ngcontent-%COMP%]{padding:5px 10px}.block-component-table[_ngcontent-%COMP%] .fa[_ngcontent-%COMP%]{color:#a94442}.idle-data[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{color:#3f60a6}.idle-data[_ngcontent-%COMP%] .title-data[_ngcontent-%COMP%]{color:#3f60a6;font-size:18px;padding:4px}.idle-data[_ngcontent-%COMP%] .title-data.loading[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:transparent;background-color:#3f60a6;animation-name:_ngcontent-%COMP%_jobsite-color;animation-duration:2s;animation-iteration-count:infinite}@media(min-width:1200px){.idle-data[_ngcontent-%COMP%] .title-data[_ngcontent-%COMP%]{text-align:right}}@keyframes _ngcontent-%COMP%_jobsite-color{0%{background-color:#a2b5dc}50%{background-color:#6b88c7}to{background-color:#3f60a6}}.idle-mit[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{color:#398fac;font-size:24px!important;padding:14px 5px 14px 10px!important}.idle-mit[_ngcontent-%COMP%] .title.loading[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:transparent;background-color:#53a9c6;animation-name:_ngcontent-%COMP%_idle-color;animation-duration:2s;animation-iteration-count:infinite}@keyframes _ngcontent-%COMP%_idle-color{0%{background-color:#53a9c6}50%{background-color:#79bcd2}to{background-color:#53a9c6}}.idle-mit[_ngcontent-%COMP%] .block-content[_ngcontent-%COMP%]{margin:7px 0 0 -4px}.plug-stats[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{color:#41a1aa}.plug-stats[_ngcontent-%COMP%] .title-data[_ngcontent-%COMP%]{color:#41a1aa;font-size:24px;padding:4px 8px 4px 4px;margin-top:12px;text-align:end}.plug-stats[_ngcontent-%COMP%] .title-data.loading[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:transparent;background-color:#59b7c0;animation-name:_ngcontent-%COMP%_plugin-color;animation-duration:2s;animation-iteration-count:infinite}@keyframes _ngcontent-%COMP%_plugin-color{0%{background-color:#59b7c0}50%{background-color:#7ec7ce}to{background-color:#59b7c0}}.data-box[_ngcontent-%COMP%], .savings-box[_ngcontent-%COMP%], .emission-box[_ngcontent-%COMP%]{color:#fff;padding:0 10px}.data-box[_ngcontent-%COMP%] .title[_ngcontent-%COMP%], .savings-box[_ngcontent-%COMP%] .title[_ngcontent-%COMP%], .emission-box[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:24px;vertical-align:middle}.data-box[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .fa[_ngcontent-%COMP%], .savings-box[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .fa[_ngcontent-%COMP%], .emission-box[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .fa[_ngcontent-%COMP%]{font-size:30px;vertical-align:sub;margin-right:5px}.data-box[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .savings-box[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .emission-box[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{vertical-align:middle}.data-box[_ngcontent-%COMP%] .data[_ngcontent-%COMP%], .savings-box[_ngcontent-%COMP%] .data[_ngcontent-%COMP%], .emission-box[_ngcontent-%COMP%] .data[_ngcontent-%COMP%]{font-size:18px;padding:5px}.data-box[_ngcontent-%COMP%] .data[_ngcontent-%COMP%] .data-label[_ngcontent-%COMP%], .savings-box[_ngcontent-%COMP%] .data[_ngcontent-%COMP%] .data-label[_ngcontent-%COMP%], .emission-box[_ngcontent-%COMP%] .data[_ngcontent-%COMP%] .data-label[_ngcontent-%COMP%]{text-align:justify}.data-box[_ngcontent-%COMP%] .data[_ngcontent-%COMP%] .value[_ngcontent-%COMP%], .savings-box[_ngcontent-%COMP%] .data[_ngcontent-%COMP%] .value[_ngcontent-%COMP%], .emission-box[_ngcontent-%COMP%] .data[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{text-align:left}.emission-box[_ngcontent-%COMP%]{background-color:#578ebe}.emission-box.loading[_ngcontent-%COMP%] .value[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{color:transparent;background-color:#7ea8cd;animation-name:_ngcontent-%COMP%_emissions-color;animation-duration:2s;animation-iteration-count:infinite}@keyframes _ngcontent-%COMP%_emissions-color{0%{background-color:#7ea8cd}50%{background-color:#a3c1db}to{background-color:#7ea8cd}}.savings-box[_ngcontent-%COMP%]{background-color:#72a798}.savings-box[_ngcontent-%COMP%] #fuelPrice[_ngcontent-%COMP%]{font-size:20px;vertical-align:middle}.savings-box[_ngcontent-%COMP%] #fuelPrice[_ngcontent-%COMP%]:hover{cursor:pointer}.savings-box.loading[_ngcontent-%COMP%] .value[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{color:transparent;background-color:#91baaf;animation-name:_ngcontent-%COMP%_savings-color;animation-duration:2s;animation-iteration-count:infinite}@keyframes _ngcontent-%COMP%_savings-color{0%{background-color:#91baaf}50%{background-color:#b1cec6}to{background-color:#91baaf}}.table-loading[_ngcontent-%COMP%]{color:transparent;background-color:#f0f0f0;animation-name:_ngcontent-%COMP%_table-animation-color;animation-duration:2s;animation-iteration-count:infinite;width:auto}@keyframes _ngcontent-%COMP%_table-animation-color{0%{background-color:#f0f0f0}50%{background-color:#e0e0e0}to{background-color:#f0f0f0}}.status-text.loading[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{color:transparent;background-color:#f0f0f0;animation-name:_ngcontent-%COMP%_table-animation-color;animation-duration:2s;animation-iteration-count:infinite}@media(max-width:991px){.pl-0[_ngcontent-%COMP%]{padding:0!important}}
1@media(max-width:575px){.block-component[_ngcontent-%COMP%] .text-right[_ngcontent-%COMP%], .block-component-table[_ngcontent-%COMP%] .text-right[_ngcontent-%COMP%]{text-align:left}.plug-stats[_ngcontent-%COMP%] .title-data[_ngcontent-%COMP%]{margin-top:0}.block-btn-xs[_ngcontent-%COMP%]{width:100%}.block-table[_ngcontent-%COMP%]{display:block!important}}.table[_ngcontent-%COMP%]{margin-bottom:15px}td[_ngcontent-%COMP%]{border-top:0!important;padding:15px 8px!important;vertical-align:middle!important}th[_ngcontent-%COMP%]{border-bottom:0!important;position:sticky;top:0;z-index:1;background:#fff}.table-container[_ngcontent-%COMP%]{overflow-y:auto}@media(min-width:768px){.table-container[_ngcontent-%COMP%]{height:260px}}@media(max-width:767px){.table-container[_ngcontent-%COMP%]{height:400px}}[_ngcontent-%COMP%]:root{--bs-gutter-x: 1.5rem;--bs-gutter-y: 1.5rem}.d-flex[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{float:none}.col[_ngcontent-%COMP%]{flex:1 0 0;padding-left:var(--bs-gutter-x, 1.5rem);padding-right:var(--bs-gutter-x, 1.5rem)}@media only screen and (min-width:576px){.col-sm-auto[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;max-width:none}}@media only screen and (min-width:768px){.col-md-auto[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;max-width:none}}.col-auto[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;max-width:100%;padding-left:var(--bs-gutter-x, 1.5rem);padding-right:var(--bs-gutter-x, 1.5rem)}.justify-content-center[_ngcontent-%COMP%]{justify-content:center}.justify-content-end[_ngcontent-%COMP%]{justify-content:end}.align-items-center[_ngcontent-%COMP%]{align-items:center}.align-items-end[_ngcontent-%COMP%]{align-items:end}.flex-column-reverse[_ngcontent-%COMP%]{flex-direction:column-reverse}.d-flex[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}@media only screen and (min-width:768px){.d-md-block[_ngcontent-%COMP%]{display:block}}@media only screen and (min-width:768px){.d-md-none[_ngcontent-%COMP%]{display:none}}@media only screen and (min-width:768px){.d-md-flex[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}}@media only screen and (min-width:992px){.d-lg-none[_ngcontent-%COMP%]{display:none!important}}@media only screen and (min-width:992px){.d-lg-block[_ngcontent-%COMP%]{display:block!important}}.w-100[_ngcontent-%COMP%]{width:100%!important}.h-100[_ngcontent-%COMP%]{height:100%!important}.px-3[_ngcontent-%COMP%]{padding-left:15px!important;padding-right:15px!important}.pr-0[_ngcontent-%COMP%]{padding-right:0!important}.pl-0[_ngcontent-%COMP%]{padding-left:0!important}.pt-3[_ngcontent-%COMP%]{padding-top:1rem}.pb-3[_ngcontent-%COMP%]{padding-bottom:1rem}.mb-3[_ngcontent-%COMP%]{margin-bottom:1rem}.pb-2[_ngcontent-%COMP%]{padding-bottom:.5rem}@media print{.no-print[_ngcontent-%COMP%]{display:none!important}}.m-0[_ngcontent-%COMP%]{margin:0!important}.mt-0[_ngcontent-%COMP%]{margin-top:0!important}.mb-0[_ngcontent-%COMP%]{margin-bottom:0!important}.ms-0[_ngcontent-%COMP%]{margin-left:0!important}.me-0[_ngcontent-%COMP%]{margin-right:0!important}.mx-0[_ngcontent-%COMP%]{margin-left:0!important;margin-right:0!important}.my-0[_ngcontent-%COMP%]{margin-top:0!important;margin-bottom:0!important}.p-0[_ngcontent-%COMP%]{padding:0!important}.pt-0[_ngcontent-%COMP%]{padding-top:0!important}.pb-0[_ngcontent-%COMP%]{padding-bottom:0!important}.ps-0[_ngcontent-%COMP%]{padding-left:0!important}.pe-0[_ngcontent-%COMP%]{padding-right:0!important}.px-0[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.py-0[_ngcontent-%COMP%]{padding-top:0!important;padding-bottom:0!important}.m-1[_ngcontent-%COMP%]{margin:.25rem!important}.mt-1[_ngcontent-%COMP%]{margin-top:.25rem!important}.mb-1[_ngcontent-%COMP%]{margin-bottom:.25rem!important}.ms-1[_ngcontent-%COMP%]{margin-left:.25rem!important}.me-1[_ngcontent-%COMP%]{margin-right:.25rem!important}.mx-1[_ngcontent-%COMP%]{margin-left:.25rem!important;margin-right:.25rem!important}.my-1[_ngcontent-%COMP%]{margin-top:.25rem!important;margin-bottom:.25rem!important}.p-1[_ngcontent-%COMP%]{padding:.25rem!important}.pt-1[_ngcontent-%COMP%]{padding-top:.25rem!important}.pb-1[_ngcontent-%COMP%]{padding-bottom:.25rem!important}.ps-1[_ngcontent-%COMP%]{padding-left:.25rem!important}.pe-1[_ngcontent-%COMP%]{padding-right:.25rem!important}.px-1[_ngcontent-%COMP%]{padding-left:.25rem!important;padding-right:.25rem!important}.py-1[_ngcontent-%COMP%]{padding-top:.25rem!important;padding-bottom:.25rem!important}.m-2[_ngcontent-%COMP%]{margin:.5rem!important}.mt-2[_ngcontent-%COMP%]{margin-top:.5rem!important}.mb-2[_ngcontent-%COMP%]{margin-bottom:.5rem!important}.ms-2[_ngcontent-%COMP%]{margin-left:.5rem!important}.me-2[_ngcontent-%COMP%]{margin-right:.5rem!important}.mx-2[_ngcontent-%COMP%]{margin-left:.5rem!important;margin-right:.5rem!important}.my-2[_ngcontent-%COMP%]{margin-top:.5rem!important;margin-bottom:.5rem!important}.p-2[_ngcontent-%COMP%]{padding:.5rem!important}.pt-2[_ngcontent-%COMP%]{padding-top:.5rem!important}.pb-2[_ngcontent-%COMP%]{padding-bottom:.5rem!important}.ps-2[_ngcontent-%COMP%]{padding-left:.5rem!important}
1.pe-2[_ngcontent-%COMP%]{padding-right:.5rem!important}.px-2[_ngcontent-%COMP%]{padding-left:.5rem!important;padding-right:.5rem!important}.py-2[_ngcontent-%COMP%]{padding-top:.5rem!important;padding-bottom:.5rem!important}.m-3[_ngcontent-%COMP%]{margin:1rem!important}.mt-3[_ngcontent-%COMP%]{margin-top:1rem!important}.mb-3[_ngcontent-%COMP%]{margin-bottom:1rem!important}.ms-3[_ngcontent-%COMP%]{margin-left:1rem!important}.me-3[_ngcontent-%COMP%]{margin-right:1rem!important}.mx-3[_ngcontent-%COMP%]{margin-left:1rem!important;margin-right:1rem!important}.my-3[_ngcontent-%COMP%]{margin-top:1rem!important;margin-bottom:1rem!important}.p-3[_ngcontent-%COMP%]{padding:1rem!important}.pt-3[_ngcontent-%COMP%]{padding-top:1rem!important}.pb-3[_ngcontent-%COMP%]{padding-bottom:1rem!important}.ps-3[_ngcontent-%COMP%]{padding-left:1rem!important}.pe-3[_ngcontent-%COMP%]{padding-right:1rem!important}.px-3[_ngcontent-%COMP%]{padding-left:1rem!important;padding-right:1rem!important}.py-3[_ngcontent-%COMP%]{padding-top:1rem!important;padding-bottom:1rem!important}.m-4[_ngcontent-%COMP%]{margin:1.5rem!important}.mt-4[_ngcontent-%COMP%]{margin-top:1.5rem!important}.mb-4[_ngcontent-%COMP%]{margin-bottom:1.5rem!important}.ms-4[_ngcontent-%COMP%]{margin-left:1.5rem!important}.me-4[_ngcontent-%COMP%]{margin-right:1.5rem!important}.mx-4[_ngcontent-%COMP%]{margin-left:1.5rem!important;margin-right:1.5rem!important}.my-4[_ngcontent-%COMP%]{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.p-4[_ngcontent-%COMP%]{padding:1.5rem!important}.pt-4[_ngcontent-%COMP%]{padding-top:1.5rem!important}.pb-4[_ngcontent-%COMP%]{padding-bottom:1.5rem!important}.ps-4[_ngcontent-%COMP%]{padding-left:1.5rem!important}.pe-4[_ngcontent-%COMP%]{padding-right:1.5rem!important}.px-4[_ngcontent-%COMP%]{padding-left:1.5rem!important;padding-right:1.5rem!important}.py-4[_ngcontent-%COMP%]{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.m-5[_ngcontent-%COMP%]{margin:3rem!important}.mt-5[_ngcontent-%COMP%]{margin-top:3rem!important}.mb-5[_ngcontent-%COMP%]{margin-bottom:3rem!important}.ms-5[_ngcontent-%COMP%]{margin-left:3rem!important}.me-5[_ngcontent-%COMP%]{margin-right:3rem!important}.mx-5[_ngcontent-%COMP%]{margin-left:3rem!important;margin-right:3rem!important}.my-5[_ngcontent-%COMP%]{margin-top:3rem!important;margin-bottom:3rem!important}.p-5[_ngcontent-%COMP%]{padding:3rem!important}.pt-5[_ngcontent-%COMP%]{padding-top:3rem!important}.pb-5[_ngcontent-%COMP%]{padding-bottom:3rem!important}.ps-5[_ngcontent-%COMP%]{padding-left:3rem!important}.pe-5[_ngcontent-%COMP%]{padding-right:3rem!important}.px-5[_ngcontent-%COMP%]{padding-left:3rem!important;padding-right:3rem!important}.py-5[_ngcontent-%COMP%]{padding-top:3rem!important;padding-bottom:3rem!important}.right-col[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center}@media only screen and (min-width:768px){.right-col[_ngcontent-%COMP%]{justify-content:space-evenly}}.datepicker[_ngcontent-%COMP%]{display:inline-block;float:left}.date-export-row[_ngcontent-%COMP%]{display:flex;justify-content:space-between}@media screen and (max-width:767px){.date-export-row[_ngcontent-%COMP%]{flex-direction:column;align-items:stretch;gap:calc(var(--bs-gutter-x, 1.5rem) * .5)}.date-export-row[_ngcontent-%COMP%] .mt-4[_ngcontent-%COMP%]{margin-top:0!important}.date-export-row[_ngcontent-%COMP%] .ms-2[_ngcontent-%COMP%]{margin-left:0!important}}.date-export-row[_ngcontent-%COMP%] .btn-sm[_ngcontent-%COMP%]{padding:4px calc(var(--bs-gutter-x, 1.5rem) * .667);white-space:nowrap}@media screen and (max-width:767px){.date-export-row[_ngcontent-%COMP%] .btn-sm[_ngcontent-%COMP%]{width:100%}}"]})}}return St})()},83775(Ht,T,d){"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.NotificationManagementRowComponent=void 0;const S=d(31635),O=(d(49849),d(83352)),u=d(8347),b=(d(27575),S.__importStar(d(40178))),g=d(59091),h=d(59832),f=(d(64688),d(43481)),v=d(43410),r=(d(62351),d(97377),d(20851),S.__importStar(d(49849))),I=S.__importStar(d(27575)),vt=S.__importStar(d(64688)),C=S.__importStar(d(62351)),ht=S.__importStar(d(20851)),F=S.__importStar(d(97377
1)),ct=S.__importStar(d(60177)),at=S.__importStar(d(92325)),rt=S.__importStar(d(72293)),X=S.__importStar(d(82955)),gt=S.__importStar(d(84341)),mt=S.__importStar(d(7901)),St=S.__importStar(d(47291)),ft=S.__importStar(d(22850)),ot=S.__importStar(d(57504)),B=S.__importStar(d(1629)),Ot=["openSubscriberManageHeight"],$=(H,Rt)=>({eventCategory:"Unit Detail",eventAction:H,eventLabel:Rt}),j=()=>["/pages/my-account/notificationSettings"],G=()=>["/pages/my-account/editAccountInfo"],k=H=>({"top.px":H}),R=()=>[0,1,2,4,5],U=(H,Rt)=>({"top.px":H,"left.px":Rt}),st=()=>[0,1,2,3];function Dt(H,Rt){1&H&&(r.\u0275\u0275elementStart(0,"span",11)(1,"strong"),r.\u0275\u0275text(2,"Event"),r.\u0275\u0275elementEnd()())}function Jt(H,Rt){1&H&&(r.\u0275\u0275elementStart(0,"span",11)(1,"strong"),r.\u0275\u0275text(2,"Notification Type"),r.\u0275\u0275elementEnd()())}function bt(H,Rt){if(1&H&&(r.\u0275\u0275elementStart(0,"span",27),r.\u0275\u0275text(1,"\xa0ON"),r.\u0275\u0275elementEnd()),2&H){const P=r.\u0275\u0275nextContext(3);r.\u0275\u0275classProp("disabled-switch",P.unitDetailTypeDef.disabled||P.hasNotificationViewOnly)}}function kt(H,Rt){if(1&H&&(r.\u0275\u0275elementStart(0,"span",28),r.\u0275\u0275text(1,"\xa0\xa0\xa0\xa0OFF"),r.\u0275\u0275elementEnd()),2&H){const P=r.\u0275\u0275nextContext(3);r.\u0275\u0275classProp("disabled-switch",P.unitDetailTypeDef.disabled||P.hasNotificationViewOnly)}}function K(H,Rt){if(1&H){const P=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"label",17)(1,"input",24),r.\u0275\u0275listener("click",function(){r.\u0275\u0275restoreView(P);const pt=r.\u0275\u0275nextContext(2);return r.\u0275\u0275resetView(pt.toggleEventEmailNotifications())}),r.\u0275\u0275elementEnd(),r.\u0275\u0275conditionalCreate(2,bt,2,2,"span",25)(3,kt,2,2,"span",26),r.\u0275\u0275elementEnd()}if(2&H){const P=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(),r.\u0275\u0275classProp("disabled-switch",P.unitDetailTypeDef.disabled||P.hasNotificationViewOnly),r.\u0275\u0275property("checked",P.emailEnabled())("disabled",P.unitDetailTypeDef.disabled||P.hasNotificationViewOnly)("gaEvent",r.\u0275\u0275pureFunction2(6,$,"Toggle "+P.eventType+" notif email on/off","contactId: "+P.getContactId())),r.\u0275\u0275advance(),r.\u0275\u0275conditional(P.emailEnabled()?2:3)}}function xt(H,Rt){if(1&H&&(r.\u0275\u0275elementStart(0,"div",18),r.\u0275\u0275element(1,"i",29),r.\u0275\u0275elementEnd()),2&H){const P=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(),r.\u0275\u0275classProp("fa-check",P.emailEnabled())("fa-times",!P.emailEnabled())}}function q(H,Rt){if(1&H&&(r.\u0275\u0275elementStart(0,"span",27),r.\u0275\u0275element(1,"span"),r.\u0275\u0275text(2,"\xa0ON"),r.\u0275\u0275elementEnd()),2&H){const P=r.\u0275\u0275nextContext(3);r.\u0275\u0275classProp("disabled-switch",P.unitDetailTypeDef.disabled||P.hasNotificationViewOnly)}}function Tt(H,Rt){if(1&H&&(r.\u0275\u0275elementStart(0,"span",28),r.\u0275\u0275element(1,"span"),r.\u0275\u0275text(2,"\xa0\xa0\xa0\xa0OFF"),r.\u0275\u0275elementEnd()),2&H){const P=r.\u0275\u0275nextContext(3);r.\u0275\u0275classProp("disabled-switch",P.unitDetailTypeDef.disabled||P.hasNotificationViewOnly)}}function _t(H,Rt){if(1&H){const P=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"label",17)(1,"input",24),r.\u0275\u0275listener("click",function(){r.\u0275\u0275restoreView(P);const pt=r.\u0275\u0275nextContext(2);return r.\u0275\u0275resetView(pt.toggleEventTextNotifications())}),r.\u0275\u0275elementEnd(),r.\u0275\u0275conditionalCreate(2,q,3,2,"span",25)(3,Tt,3,2,"span",26),r.\u0275\u0275elementEnd()}if(2&H){const P=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(),r.\u0275\u0275classProp("disabled-switch",P.unitDetailTypeDef.disabled||P.hasNotificationViewOnly),r.\u0275\u0275property("checked",P.smsEnabled())("disabled",P.unitDetailTypeDef.disabled||P.hasNotificationViewOnly)("gaEvent",r.\u0275\u0275pureFunction2(6,$,"Toggle "+P.eventType+" notif text on/off","contactId: "+P.getContactId())),r.\u0275\u0275advance(),r.\u0275\u0275conditional(P.smsEnabled()?2:3)}}function dt(H,Rt){if(1&H&&(r.\u0275\u0275elementStart(0,"div",18),r.\u0275\u0275element(1,"i",29),r.\u0275\u0275elementEnd()),2&H){const P=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(),r.\u0275\u0275classProp("fa-check",P.smsEnabled())("fa-times",!P.smsEnabled())}}function Mt(H,Rt){if(1&H){const P=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"div",30),r.\u0275\u0275text(1," Severity: "),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(2,"div",31),r.\u0275\u0275element(3,"i",32),r.\u0275\u0275text(4," High "),r.\u0275\u0275elementStart(5,"div",33),r.\u0275\u0275listener("click",function(){r.\u0275\u0275restoreView(P);const pt=r.\u0275\u0275nextContext(2);
1return r.\u0275\u0275resetView(!pt.unitDetailTypeDef.disabled&&!pt.hasNotificationViewOnly&&!pt.notificationSeverityToggle("high"))}),r.\u0275\u0275element(6,"input",34)(7,"label"),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(8,"i",35),r.\u0275\u0275text(9," Medium "),r.\u0275\u0275elementStart(10,"div",33),r.\u0275\u0275listener("click",function(){r.\u0275\u0275restoreView(P);const pt=r.\u0275\u0275nextContext(2);return r.\u0275\u0275resetView(!pt.unitDetailTypeDef.disabled&&!pt.hasNotificationViewOnly&&!pt.notificationSeverityToggle("medium"))}),r.\u0275\u0275element(11,"input",34)(12,"label"),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(13,"i",36),r.\u0275\u0275text(14," Low "),r.\u0275\u0275elementStart(15,"div",33),r.\u0275\u0275listener("click",function(){r.\u0275\u0275restoreView(P);const pt=r.\u0275\u0275nextContext(2);return r.\u0275\u0275resetView(!pt.unitDetailTypeDef.disabled&&!pt.hasNotificationViewOnly&&!pt.notificationSeverityToggle("low"))}),r.\u0275\u0275element(16,"input",34)(17,"label"),r.\u0275\u0275elementEnd()()}if(2&H){const P=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(3),r.\u0275\u0275property("ngClass",P.eventClass),r.\u0275\u0275advance(2),r.\u0275\u0275classProp("disabled-toggle",P.unitDetailTypeDef.disabled||P.hasNotificationViewOnly),r.\u0275\u0275property("gaEvent",r.\u0275\u0275pureFunction2(15,$,"Toggle "+P.eventType+" high severity on/off","contactId: "+P.getContactId())),r.\u0275\u0275advance(),r.\u0275\u0275property("ngModel",P.unitDetailTypeDef.notificationSeverityStatus.highSeverity),r.\u0275\u0275advance(2),r.\u0275\u0275property("ngClass",P.eventClass),r.\u0275\u0275advance(2),r.\u0275\u0275classProp("disabled-toggle",P.unitDetailTypeDef.disabled||P.hasNotificationViewOnly),r.\u0275\u0275property("gaEvent",r.\u0275\u0275pureFunction2(18,$,"Toggle "+P.eventType+" medium severity on/off","contactId: "+P.getContactId())),r.\u0275\u0275advance(),r.\u0275\u0275property("ngModel",P.unitDetailTypeDef.notificationSeverityStatus.mediumSeverity),r.\u0275\u0275advance(2),r.\u0275\u0275property("ngClass",P.eventClass),r.\u0275\u0275advance(2),r.\u0275\u0275classProp("disabled-toggle",P.unitDetailTypeDef.disabled||P.hasNotificationViewOnly),r.\u0275\u0275property("gaEvent",r.\u0275\u0275pureFunction2(21,$,"Toggle "+P.eventType+" low severity on/off","contactId: "+P.getContactId())),r.\u0275\u0275advance(),r.\u0275\u0275property("ngModel",P.unitDetailTypeDef.notificationSeverityStatus.lowSeverity)}}function y(H,Rt){1&H&&r.\u0275\u0275text(0,"Manage Subscribers ")}function x(H,Rt){if(1&H){const P=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementContainerStart(0),r.\u0275\u0275elementStart(1,"div",37),r.\u0275\u0275template(2,y,1,0,"ng-template",null,2,r.\u0275\u0275templateRefExtractor),r.\u0275\u0275elementStart(4,"span",38)(5,"i",39),r.\u0275\u0275listener("click",function(){r.\u0275\u0275restoreView(P),r.\u0275\u0275nextContext();const pt=r.\u0275\u0275reference(2),Vt=r.\u0275\u0275nextContext();return r.\u0275\u0275resetView(Vt.openSubscriberManage(pt.offsetTop))}),r.\u0275\u0275elementEnd()()(),r.\u0275\u0275elementContainerEnd()}if(2&H){const P=r.\u0275\u0275reference(3);r.\u0275\u0275advance(4),r.\u0275\u0275property("ngbTooltip",P)}}function W(H,Rt){1&H&&r.\u0275\u0275elementContainer(0)}function E(H,Rt){if(1&H&&(r.\u0275\u0275elementStart(0,"div",8)(1,"div",9,1)(3,"div",10),r.\u0275\u0275conditionalCreate(4,Dt,3,0,"span",11),r.\u0275\u0275text(5),r.\u0275\u0275element(6,"i",12),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(7,"div",13),r.\u0275\u0275conditionalCreate(8,Jt,3,0,"span",11),r.\u0275\u0275elementStart(9,"div",14)(10,"div")(11,"div",15),r.\u0275\u0275element(12,"i",16),r.\u0275\u0275text(13,"\xa0 "),r.\u0275\u0275elementStart(14,"strong"),r.\u0275\u0275text(15,"Email"),r.\u0275\u0275elementEnd(),r.\u0275\u0275text(16,"\xa0 "),r.\u0275\u0275conditionalCreate(17,K,4,9,"label",17),r.\u0275\u0275conditionalCreate(18,xt,2,4,"div",18),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(19,"div",19),r.\u0275\u0275element(20,"i",20),r.\u0275\u0275text(21,"\xa0 "),r.\u0275\u0275elementStart(22,"strong"),r.\u0275\u0275text(23,"Text"),r.\u0275\u0275elementEnd(),r.\u0275\u0275text(24,"\xa0\xa0\xa0\xa0 "),r.\u0275\u0275conditionalCreate(25,_t,4,9,"label",17),r.\u0275\u0275conditionalCreate(26,dt,2,4,"div",18),r.\u0275\u0275elementEnd()()(),r.\u0275\u0275elementStart(27,"div",21),r.\u0275\u0275conditionalCreate(28,Mt,18,24),r.\u0275\u0275elementEnd(),r.\u0275\u0275template(29,x,6,1,"ng-container",22),r.\u0275\u0275elementEnd()(),r.\u0275\u0275template(30,W,1,0,"ng-container",23),r.\u0275\u0275elementEnd()),2&H){const P=r.\u0275\u0275nextContext(),z=r.\u0275\u0275reference(3);r.\u0275\u0275classProp("alternate-row",P.index%2==0)("first",0===P.index),r.\u0275\u0275advance(4),r.\u0275\u0275conditional(0===P.index?4:-1),r.\u0275\u0275advance(),r.\u0275\u0275textInterpolate1(" ",P.unitDetailTypeDef.typeDef.notifTypeDisplayName," "),r.\u0275\u0275advance(),r.\u0275\u0275property("ngClass",P.eventClass),r.\u0275\u0275advance(2),r.\u0275\u0275conditional(0===P.index?8:-1),r.\u0275\u0275advance(9),r.\u0275\u0275conditional("ALL"!==(null==P.unitDetailTypeDef.primaryNotifRecord?null:P.unitDetailTypeDef.primaryNotifRecord.notifSubjectIdentifier)||P.hasNotificationViewOnl
1y?17:-1),r.\u0275\u0275advance(),r.\u0275\u0275conditional("ALL"===(null==P.unitDetailTypeDef.primaryNotifRecord?null:P.unitDetailTypeDef.primaryNotifRecord.notifSubjectIdentifier)&&!1===P.hasNotificationViewOnly?18:-1),r.\u0275\u0275advance(7),r.\u0275\u0275conditional("ALL"!==(null==P.unitDetailTypeDef.primaryNotifRecord?null:P.unitDetailTypeDef.primaryNotifRecord.notifSubjectIdentifier)&&(P.hasMobileNumber||void 0===P.hasMobileNumber)||P.hasNotificationViewOnly?25:-1),r.\u0275\u0275advance(),r.\u0275\u0275conditional("ALL"!==(null==P.unitDetailTypeDef.primaryNotifRecord?null:P.unitDetailTypeDef.primaryNotifRecord.notifSubjectIdentifier)&&!1!==P.hasMobileNumber||!1!==P.hasNotificationViewOnly?-1:26),r.\u0275\u0275advance(),r.\u0275\u0275classProp("severity-border",P.showSeverityToggles&&(P.emailEnabled()||P.smsEnabled())),r.\u0275\u0275advance(),r.\u0275\u0275conditional(P.showSeverityToggles&&(P.emailEnabled()||P.smsEnabled())?28:-1),r.\u0275\u0275advance(),r.\u0275\u0275property("hasPrivilege","B2B_Delegated_Customer_Admin"),r.\u0275\u0275advance(),r.\u0275\u0275property("ngTemplateOutlet",z)}}function tt(H,Rt){if(1&H&&(r.\u0275\u0275elementStart(0,"span",27),r.\u0275\u0275text(1,"\xa0ON"),r.\u0275\u0275elementEnd()),2&H){const P=r.\u0275\u0275nextContext(3);r.\u0275\u0275classProp("disabled-switch",P.unitDetailTypeDef.disabled||P.hasNotificationViewOnly)}}function V(H,Rt){if(1&H&&(r.\u0275\u0275elementStart(0,"span",28),r.\u0275\u0275text(1,"\xa0\xa0\xa0\xa0OFF"),r.\u0275\u0275elementEnd()),2&H){const P=r.\u0275\u0275nextContext(3);r.\u0275\u0275classProp("disabled-switch",P.unitDetailTypeDef.disabled||P.hasNotificationViewOnly)}}function Et(H,Rt){if(1&H){const P=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"label",17)(1,"input",24),r.\u0275\u0275listener("click",function(){r.\u0275\u0275restoreView(P);const pt=r.\u0275\u0275nextContext(2);return r.\u0275\u0275resetView(pt.toggleEventEmailNotifications())}),r.\u0275\u0275elementEnd(),r.\u0275\u0275conditionalCreate(2,tt,2,2,"span",25)(3,V,2,2,"span",26),r.\u0275\u0275elementEnd()}if(2&H){const P=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(),r.\u0275\u0275classProp("disabled-switch",P.unitDetailTypeDef.disabled||P.hasNotificationViewOnly),r.\u0275\u0275property("checked",P.emailEnabled())("disabled",P.unitDetailTypeDef.disabled||P.hasNotificationViewOnly)("gaEvent",r.\u0275\u0275pureFunction2(6,$,"Toggle "+P.eventType+" notif email on/off","contactId: "+P.getContactId())),r.\u0275\u0275advance(),r.\u0275\u0275conditional(P.emailEnabled()?2:3)}}function nt(H,Rt){if(1&H&&(r.\u0275\u0275elementStart(0,"div",18),r.\u0275\u0275element(1,"i",29),r.\u0275\u0275elementEnd()),2&H){const P=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(),r.\u0275\u0275classProp("fa-check",P.emailEnabled())("fa-times",!P.emailEnabled())}}function Gt(H,Rt){if(1&H&&(r.\u0275\u0275elementStart(0,"span",27),r.\u0275\u0275element(1,"span"),r.\u0275\u0275text(2,"\xa0ON"),r.\u0275\u0275elementEnd()),2&H){const P=r.\u0275\u0275nextContext(3);r.\u0275\u0275classProp("disabled-switch",P.unitDetailTypeDef.disabled||P.hasNotificationViewOnly)}}function Ct(H,Rt){if(1&H&&(r.\u0275\u0275elementStart(0,"span",28),r.\u0275\u0275element(1,"span"),r.\u0275\u0275text(2,"\xa0\xa0\xa0\xa0OFF"),r.\u0275\u0275elementEnd()),2&H){const P=r.\u0275\u0275nextContext(3);r.\u0275\u0275classProp("disabled-switch",P.unitDetailTypeDef.disabled||P.hasNotificationViewOnly)}}function Ut(H,Rt){if(1&H){const P=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"label",17)(1,"input",24),r.\u0275\u0275listener("click",function(){r.\u0275\u0275restoreView(P);const pt=r.\u0275\u0275nextContext(2);return r.\u0275\u0275resetView(pt.toggleEventTextNotifications())}),r.\u0275\u0275elementEnd(),r.\u0275\u0275conditionalCreate(2,Gt,3,2,"span",25)(3,Ct,3,2,"span",26),r.\u0275\u0275elementEnd()}if(2&H){const P=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(),r.\u0275\u0275classProp("disabled-switch",P.unitDetailTypeDef.disabled||P.hasNotificationViewOnly),r.\u0275\u0275property("checked",P.smsEnabled())("disabled",P.unitDetailTypeDef.disabled||P.hasNotificationViewOnl
1y)("gaEvent",r.\u0275\u0275pureFunction2(6,$,"Toggle "+P.eventType+" notif text on/off","contactId: "+P.getContactId())),r.\u0275\u0275advance(),r.\u0275\u0275conditional(P.smsEnabled()?2:3)}}function it(H,Rt){if(1&H&&(r.\u0275\u0275elementStart(0,"div",18),r.\u0275\u0275element(1,"i",29),r.\u0275\u0275elementEnd()),2&H){const P=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(),r.\u0275\u0275classProp("fa-check",P.smsEnabled())("fa-times",!P.smsEnabled())}}function Ft(H,Rt){if(1&H){const P=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"div",44)(1,"div",46),r.\u0275\u0275text(2," Severity: "),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(3,"div",47),r.\u0275\u0275element(4,"i",32),r.\u0275\u0275text(5," High "),r.\u0275\u0275elementStart(6,"div",33),r.\u0275\u0275listener("click",function(){r.\u0275\u0275restoreView(P);const pt=r.\u0275\u0275nextContext(2);return r.\u0275\u0275resetView(!pt.unitDetailTypeDef.disabled&&!pt.hasNotificationViewOnly&&!pt.notificationSeverityToggle("high"))}),r.\u0275\u0275element(7,"input",34)(8,"label"),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(9,"i",35),r.\u0275\u0275text(10," Medium "),r.\u0275\u0275elementStart(11,"div",33),r.\u0275\u0275listener("click",function(){r.\u0275\u0275restoreView(P);const pt=r.\u0275\u0275nextContext(2);return r.\u0275\u0275resetView(!pt.unitDetailTypeDef.disabled&&!pt.hasNotificationViewOnly&&!pt.notificationSeverityToggle("medium"))}),r.\u0275\u0275element(12,"input",34)(13,"label"),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(14,"i",36),r.\u0275\u0275text(15," Low "),r.\u0275\u0275elementStart(16,"div",33),r.\u0275\u0275listener("click",function(){r.\u0275\u0275restoreView(P);const pt=r.\u0275\u0275nextContext(2);return r.\u0275\u0275resetView(!pt.unitDetailTypeDef.disabled&&!pt.hasNotificationViewOnly&&!pt.notificationSeverityToggle("low"))}),r.\u0275\u0275element(17,"input",34)(18,"label"),r.\u0275\u0275elementEnd()()()}if(2&H){const P=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(4),r.\u0275\u0275property("ngClass",P.eventClass),r.\u0275\u0275advance(2),r.\u0275\u0275classProp("disabled-toggle",P.unitDetailTypeDef.disabled||P.hasNotificationViewOnly),r.\u0275\u0275property("gaEvent",r.\u0275\u0275pureFunction2(15,$,"Toggle "+P.eventType+" high severity on/off","contactId: "+P.getContactId())),r.\u0275\u0275advance(),r.\u0275\u0275property("ngModel",P.unitDetailTypeDef.notificationSeverityStatus.highSeverity),r.\u0275\u0275advance(2),r.\u0275\u0275property("ngClass",P.eventClass),r.\u0275\u0275advance(2),r.\u0275\u0275classProp("disabled-toggle",P.unitDetailTypeDef.disabled||P.hasNotificationViewOnly),r.\u0275\u0275property("gaEvent",r.\u0275\u0275pureFunction2(18,$,"Toggle "+P.eventType+" medium severity on/off","contactId: "+P.getContactId())),r.\u0275\u0275advance(),r.\u0275\u0275property("ngModel",P.unitDetailTypeDef.notificationSeverityStatus.mediumSeverity),r.\u0275\u0275advance(2),r.\u0275\u0275property("ngClass",P.eventClass),r.\u0275\u0275advance(2),r.\u0275\u0275classProp("disabled-toggle",P.unitDetailTypeDef.disabled||P.hasNotificationViewOnly),r.\u0275\u0275property("gaEvent",r.\u0275\u0275pureFunction2(21,$,"Toggle "+P.eventType+" low severity on/off","contactId: "+P.getContactId())),r.\u0275\u0275advance(),r.\u0275\u0275property("ngModel",P.unitDetailTypeDef.notificationSeverityStatus.lowSeverity)}}function jt(H,Rt){1&H&&r.\u0275\u0275elementContainer(0)}function ut(H,Rt){if(1&H&&(r.\u0275\u0275elementStart(0,"div",40)(1,"div"),r.\u0275\u0275element(2,"i",41),r.\u0275\u0275elementStart(3,"strong"),r.\u0275\u0275text(4),r.\u0275\u0275elementEnd()(),r.\u0275\u0275element(5,"br")(6,"i",42),r.\u0275\u0275text(7,"\xa0 "),r.\u0275\u0275elementStart(8,"strong"),r.\u0275\u0275text(9,"Email"),r.\u0275\u0275elementEnd(),r.\u0275\u0275text(10,"\xa0 "),r.\u0275\u0275conditionalCreate(11,Et,4,9,"label",17),r.\u0275\u0275conditionalCreate(12,nt,2,4,"div",18),r.\u0275\u0275element(13,"br")(14,"i",43),r.\u0275\u0275text(15,"\xa0 "),r.\u0275\u0275elementStart(16,"strong"),r.\u0275\u0275text(17,"Text"),r.\u0275\u0275elementEnd(),r.\u0275\u0275text(18,"\xa0\xa0\xa0\xa0 "),r.\u0275\u0275conditionalCreate(19,Ut,4,9,"label",17),r.\u0275\u0275conditionalCreate(20,it,2,4,"div",18),r.\u0275\u0275conditionalCreate(21,Ft,19,24,"div",44),r.\u0275\u0275elementStart(22,"div",45),r.\u0275\u0275template(23,jt,1,0,"ng-container",23),r.\u0275\u0275elementEnd()()),2&H){const P=r.\u0275\u0275nextContext(),z=r.\u0275\u0275reference(3);r.\u0275\u0275classProp("alternate-row",P.index%2==1)("first",0===P.index),r.\u0275\u0275advance(2),r.\u0275\u0275property("ngClass",P.eventClass),r.\u0275\u0275advance(2),r.\u0275\u0275textInterpolate(P.unitDetailTypeDef.typeDef.notifTypeDisplayName),r.\u0275\u0275advance(7),r.\u0275\u0275conditional("ALL"!==(null==P.unitDetailTypeDef.primaryNotifRecord?null:P.unitDetailTypeDef.primaryNotifRecord.notifSubjectIdentifier)||P.hasNotificationViewOnl
1y?11:-1),r.\u0275\u0275advance(),r.\u0275\u0275conditional("ALL"===(null==P.unitDetailTypeDef.primaryNotifRecord?null:P.unitDetailTypeDef.primaryNotifRecord.notifSubjectIdentifier)&&!1===P.hasNotificationViewOnly?12:-1),r.\u0275\u0275advance(7),r.\u0275\u0275conditional("ALL"!==(null==P.unitDetailTypeDef.primaryNotifRecord?null:P.unitDetailTypeDef.primaryNotifRecord.notifSubjectIdentifier)&&(P.hasMobileNumber||void 0===P.hasMobileNumber)||P.hasNotificationViewOnly?19:-1),r.\u0275\u0275advance(),r.\u0275\u0275conditional("ALL"!==(null==P.unitDetailTypeDef.primaryNotifRecord?null:P.unitDetailTypeDef.primaryNotifRecord.notifSubjectIdentifier)&&!1!==P.hasMobileNumber||!1!==P.hasNotificationViewOnly?-1:20),r.\u0275\u0275advance(),r.\u0275\u0275conditional(P.showSeverityToggles&&(P.emailEnabled()||P.smsEnabled())?21:-1),r.\u0275\u0275advance(2),r.\u0275\u0275property("ngTemplateOutlet",z)}}function Qt(H,Rt){if(1&H&&(r.\u0275\u0275elementStart(0,"div",48)(1,"small"),r.\u0275\u0275text(2),r.\u0275\u0275elementStart(3,"a",49),r.\u0275\u0275element(4,"i",50),r.\u0275\u0275text(5," Notification Settings"),r.\u0275\u0275elementEnd()()()),2&H){const P=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(2),r.\u0275\u0275textInterpolate1(" Notifications are configured to send for all units with ",P.eventType," events\xa0 "),r.\u0275\u0275advance(),r.\u0275\u0275property("routerLink",r.\u0275\u0275pureFunction0(2,j))}}function wt(H,Rt){1&H&&(r.\u0275\u0275elementStart(0,"div",48)(1,"small"),r.\u0275\u0275text(2," This notification configuration cannot be changed because it has been configured with a group. To make changes contact a system administrator. "),r.\u0275\u0275elementEnd()())}function he(H,Rt){1&H&&(r.\u0275\u0275elementStart(0,"div",48)(1,"small"),r.\u0275\u0275text(2," You do not have a mobile number that is configured to receive text notifications.\xa0 "),r.\u0275\u0275elementStart(3,"a",49),r.\u0275\u0275element(4,"i",50),r.\u0275\u0275text(5," Edit Account Info"),r.\u0275\u0275elementEnd()()()),2&H&&(r.\u0275\u0275advance(3),r.\u0275\u0275property("routerLink",r.\u0275\u0275pureFunction0(1,G)))}function Xt(H,Rt){if(1&H){const P=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"div",52)(1,"a",53),r.\u0275\u0275listener("click",function(){r.\u0275\u0275restoreView(P);const pt=r.\u0275\u0275nextContext(3);return r.\u0275\u0275resetView(pt.openSubscriberManage())}),r.\u0275\u0275text(2," Manage Subscribers "),r.\u0275\u0275elementEnd()()}}function Zn(H,Rt){1&H&&r.\u0275\u0275element(0,"i",71)}function _n(H,Rt){1&H&&r.\u0275\u0275element(0,"i",72)}function wn(H,Rt){1&H&&r.\u0275\u0275element(0,"i",73)}function En(H,Rt){1&H&&r.\u0275\u0275text(0," Email & Text ")}function Ie(H,Rt){1&H&&r.\u0275\u0275text(0," Email ")}function en(H,Rt){1&H&&r.\u0275\u0275text(0," Text ")}function je(H,Rt){1&H&&r.\u0275\u0275text(0," Off ")}function Ae(H,Rt){if(1&H&&(r.\u0275\u0275elementStart(0,"div",74)(1,"div"),r.\u0275\u0275element(2,"i",76)(3,"i",77),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(4,"div",78),r.\u0275\u0275element(5,"i",79)(6,"i",77),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(7,"div",78),r.\u0275\u0275element(8,"i",80)(9,"i",77),r.\u0275\u0275elementEnd()()),2&H){const P=r.\u0275\u0275nextContext(2).$implicit,z=r.\u0275\u0275nextContext(5);r.\u0275\u0275advance(3),r.\u0275\u0275classProp("fa-check",z.getSeverityNotificationStatus(P.notificationRecords).highSeverity)("fa-times",!z.getSeverityNotificationStatus(P.notificationRecords).highSeverity),r.\u0275\u0275advance(3),r.\u0275\u0275classProp("fa-check",z.getSeverityNotificationStatus(P.notificationRecords).mediumSeverity)("fa-times",!z.getSeverityNotificationStatus(P.notificationRecords).mediumSeverity),r.\u0275\u0275advance(3),r.\u0275\u0275classProp("fa-check",z.getSeverityNotificationStatus(P.notificationRecords).lowSeverity)("fa-times",!z.getSeverityNotificationStatus(P.notificationRecords).lowSeverity)}}function Cn(H,Rt){if(1&H){const P=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"div",81)(1,"altcon-notifications-edit-control",82),r.\u0275\u0275listener("cancel",function(){r.\u0275\u0275restoreView(P);const pt=r.\u0275\u0275nextContext(8);
1return r.\u0275\u0275resetView(pt.showEditSubscriber=!1)})("save",function(pt){r.\u0275\u0275restoreView(P);const Vt=r.\u0275\u0275nextContext(3).$implicit,Yt=r.\u0275\u0275nextContext(5);return Yt.updateSubscriber(Vt,pt),r.\u0275\u0275resetView(Yt.showEditSubscriber=!1)}),r.\u0275\u0275elementEnd()()}if(2&H){r.\u0275\u0275nextContext(2);const P=r.\u0275\u0275reference(8),z=r.\u0275\u0275nextContext().$implicit;r.\u0275\u0275nextContext();const pt=r.\u0275\u0275reference(2),Vt=r.\u0275\u0275nextContext(4);r.\u0275\u0275property("ngStyle",r.\u0275\u0275pureFunction2(8,U,P.offsetTop-pt.scrollTop+35,P.offsetLeft+20)),r.\u0275\u0275advance(),r.\u0275\u0275property("hasNotificationViewOnly",Vt.hasNotificationViewOnly)("allowSelectOff",!1)("initialSetup",Vt.getSeverityNotificationStatus(z.notificationRecords))("showSeverities",Vt.showSeverityToggles)("title","Notifications")("smsOptionEnabled",z.contact.smsEnabled)("gaEvent",r.\u0275\u0275pureFunction2(11,$,"Notif del. admin "+Vt.eventType+" updated subscriber settings","contactId: "+z.contact.
1id))}}function Tn(H,Rt){if(1&H){const P=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"i",39),r.\u0275\u0275listener("click",function(){r.\u0275\u0275restoreView(P);const pt=r.\u0275\u0275nextContext(2).$implicit,Vt=r.\u0275\u0275nextContext(5);return r.\u0275\u0275resetView(Vt.showEditSubscriber=pt.contact.email)}),r.\u0275\u0275elementEnd(),r.\u0275\u0275conditionalCreate(1,Cn,2,14,"div",81)}if(2&H){const P=r.\u0275\u0275nextContext(2).$implicit,z=r.\u0275\u0275nextContext(5);r.\u0275\u0275classProp("edit-active",z.showEditSubscriber===P.contact.email),r.\u0275\u0275advance(),r.\u0275\u0275conditional(z.showEditSubscriber===P.contact.email?1:-1)}}function ie(H,Rt){if(1&H&&r.\u0275\u0275text(0),2&H){const P=r.\u0275\u0275nextContext(8);r.\u0275\u0275textInterpolate1("This user has selected to receive notifications for all ",P.tooltipEventName," events. Notifications are not editable at the individual unit level. ")}}function de(H,Rt){if(1&H&&(r.\u0275\u0275template(0,ie,1,1,"ng-template",null,5,r.\u0275\u0275templateRefExtractor),r.\u0275\u0275elementStart(2,"span",38),r.\u0275\u0275element(3,"i",83),r.\u0275\u0275elementEnd()),2&H){const P=r.\u0275\u0275reference(1);r.\u0275\u0275advance(2),r.\u0275\u0275property("ngbTooltip",P)}}function Dn(H,Rt){1&H&&r.\u0275\u0275text(0," This notification configuration cannot be changed because it has been configured with a group. To make changes contact a system administrator. ")}function Je(H,Rt){if(1&H&&(r.\u0275\u0275template(0,Dn,1,0,"ng-template",null,5,r.\u0275\u0275templateRefExtractor),r.\u0275\u0275elementStart(2,"span",38),r.\u0275\u0275element(3,"i",83),r.\u0275\u0275elementEnd()),2&H){const P=r.\u0275\u0275reference(1);r.\u0275\u0275advance(2),r.\u0275\u0275property("ngbTooltip",P)}}function In(H,Rt){if(1&H){const P=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"i",86),r.\u0275\u0275listener("click",function(){r.\u0275\u0275restoreView(P);const pt=r.\u0275\u0275nextContext(3).$implicit,Vt=r.\u0275\u0275nextContext(5);return r.\u0275\u0275resetView(Vt.disableNotification(pt))}),r.\u0275\u0275elementEnd()}if(2&H){const P=r.\u0275\u0275nextContext(3).$implicit,z=r.\u0275\u0275nextContext(5);r.\u0275\u0275property("gaEvent",r.\u0275\u0275pureFunction2(1,$,"Notif del. admin "+z.eventType+" remove subscriber","contactId: "+P.contact.id))}}function ge(H,Rt){1&H&&r.\u0275\u0275element(0,"i",85)}function Re(H,Rt){if(1&H&&r.\u0275\u0275conditionalCreate(0,In,1,4,"i",84)(1,ge,1,0,"i",85),2&H){const P=r.\u0275\u0275nextContext(7);r.\u0275\u0275conditional(P.hasNotificationViewOnly?1:0)}}function At(H,Rt){if(1&H&&r.\u0275\u0275text(0),2&H){const P=r.\u0275\u0275nextContext(8);r.\u0275\u0275textInterpolate1("This user has selected to receive notifications for all ",P.tooltipEventName," events. Notifications are not editable at the individual unit level. ")}}function te(H,Rt){if(1&H&&(r.\u0275\u0275template(0,At,1,1,"ng-template",null,5,r.\u0275\u0275templateRefExtractor),r.\u0275\u0275elementStart(2,"span",38),r.\u0275\u0275element(3,"i",87),r.\u0275\u0275elementEnd()),2&H){const P=r.\u0275\u0275reference(1);r.\u0275\u0275advance(2),r.\u0275\u0275property("ngbTooltip",P)}}function Z(H,Rt){1&H&&r.\u0275\u0275text(0," This notification configuration cannot be changed because it has been configured with a group. To make changes contact a system administrator. ")}function $t(H,Rt){if(1&H&&(r.\u0275\u0275template(0,Z,1,0,"ng-template",null,5,r.\u0275\u0275templateRefExtractor),r.\u0275\u0275elementStart(2,"span",38),r.\u0275\u0275element(3,"i",87),r.\u0275\u0275elementEnd()),2&H){const P=r.\u0275\u0275reference(1);r.\u0275\u0275advance(2),r.\u0275\u0275property("ngbTooltip",P)}}function zt(H,Rt){if(1&H&&(r.\u0275\u0275elementStart(0,"td"),r.\u0275\u0275text(1),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(2,"td"),r.\u0275\u0275text(3),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(4,"td"),r.\u0275\u0275text(5),r.\u0275\u0275pipe(6,"phoneNumber"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(7,"td",null,4)(9,"div",68)(10,"div",69)(11,"div",70),r.\u0275\u0275elementContainerStart(12),r.\u0275\u0275conditionalCreate(13,Zn,1,0,"i",71),r.\u0275\u0275conditionalCreate(14,_n,1,0,"i",72),r.\u0275\u0275conditionalCreate(15,wn,1,0,"i",73),r.\u0275\u0275conditionalCreate(16,En,1,0),r.\u0275\u0275conditionalCreate(17,Ie,1,0),r.\u0275\u0275conditionalCreate(18,en,1,0),r.\u0275\u0275conditionalCreate(19,je,1,0),r.\u0275\u0275elementContainerEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275conditionalCreate(20,Ae,10,12,"div",74),r.\u0275\u0275elementEnd(),r.\u0275\u0275conditionalCreate(21,Tn,2,3),r.\u0275\u0275conditionalCreate(22,de,4,1),r.\u0275\u0275conditionalCreate(23,Je,4,1),r.\u0275\u0275elementEnd()(),r.\u0275\u0275elementStart(24,"td",75),r.\u0275\u0275conditionalCreate(25,Re,2,1),r.\u0275\u0275conditionalCreate(26,te,4,1),r.\u0275\u0275conditionalCreate(27,$t,4,1),r.\u0275\u0275elementEnd()),2&H){const P=r.\u0275\u0275nextContext().$implicit,z=r.\u0275\u0275readContextLet(1),pt=r.\u0275\u0275nextContext(5);r.\u0275\u0275advance(),r.\u0275\u0275textInterpolate1(" ",pt.contactName(P.contact.firstName,P.contact.lastName)," "),r.\u0275\u0275advance(2),r.\u0275\u0275textInterpolate(P.contact.email),r.\u0275\u0275advance(2),r.\u0275\u0275textInterpolate(r.\u0275\u0275pipeBind1(6,19,P.contact.phoneNumber)),r.\u0275\u0275advance(4),r.\u0275\u0275classProp("edit-active",pt.showEditSubscriber===P.contact.email),r.\u0275\u0275advance(4),r.\u0275\u0275conditional(z.emailEnabled?13:-1),r.\u0275\u0275advance(),r.\u0275\u0275conditional(z.smsEnabled?14:-1),r.\u0275\u0275advance(),r.\u0275\u0275conditional(z.smsEnabled||z.emailEnabled?-1:15),r.\u0275\u0275advance(),r.\u0275\u0275conditional(z.emailEnabled&&z.smsEnabled?16:-1),r.\u0275\u0275advance(),r.\u0275\u0275conditional(z.emailEnabled&&!z.smsEnabled?17:-1),r.\u0275\u0275advance(),r.\u0275\u0275conditional(!z.emailEnabled&&z.smsEnabled?18:-1),r.\u0275\u0275advance(),r.\u0275\u0275conditional(z.emailEnabled||z.smsEnabled?-1:19),r.\u0275\u0275advance(),r.\u0275\u0275conditional(pt.showSeverityToggles&&null!==z.status&&"Off"!=z.status?20:-1),r.\u0275\u0275advance(),r.\u0275\u0275conditional("ALL"===z.origNotifSubjectType||"GROUP"===z.origNotifSubjectType||pt.hasNotificationViewOnl
1y?-1:21),r.\u0275\u0275advance(),r.\u0275\u0275conditional("ALL"===z.origNotifSubjectType?22:-1),r.\u0275\u0275advance(),r.\u0275\u0275conditional("GROUP"===z.origNotifSubjectType?23:-1),r.\u0275\u0275advance(2),r.\u0275\u0275conditional("ALL"!==z.origNotifSubjectType&&"GROUP"!==z.origNotifSubjectType?25:-1),r.\u0275\u0275advance(),r.\u0275\u0275conditional("ALL"===z.origNotifSubjectType?26:-1),r.\u0275\u0275advance(),r.\u0275\u0275conditional("GROUP"===z.origNotifSubjectType?27:-1)}}function qt(H,Rt){if(1&H&&(r.\u0275\u0275elementStart(0,"tr",67),r.\u0275\u0275declareLet(1),r.\u0275\u0275conditionalCreate(2,zt,28,21),r.\u0275\u0275elementEnd()),2&H){const P=Rt.$implicit,z=r.\u0275\u0275nextContext(5);r.\u0275\u0275property("hidden",z.loadingSubscribers),r.\u0275\u0275advance();const pt=r.\u0275\u0275storeLet(z.findPrimaryNotificationRecord(P.notificationRecords));r.\u0275\u0275advance(),r.\u0275\u0275conditional(pt?2:-1)}}function Se(H,Rt){if(1&H&&(r.\u0275\u0275elementStart(0,"td")(1,"div",88),r.\u0275\u0275text(2),r.\u0275\u0275elementEnd()()),2&H){const P=r.\u0275\u0275nextContext().$implicit;r.\u0275\u0275advance(2),r.\u0275\u0275textInterpolate(P)}}function Oe(H,Rt){if(1&H&&(r.\u0275\u0275elementStart(0,"tr",67),r.\u0275\u0275repeaterCreate(1,Se,3,1,"td",null,r.\u0275\u0275repeaterTrackByIdentity),r.\u0275\u0275elementEnd()),2&H){const P=r.\u0275\u0275nextContext(5);r.\u0275\u0275property("hidden",!P.loadingSubscribers),r.\u0275\u0275advance(),r.\u0275\u0275repeater(r.\u0275\u0275pureFunction0(1,st))}}function Ve(H,Rt){if(1&H){const P=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"div",63)(1,"div",64,3),r.\u0275\u0275listener("scroll",function(){r.\u0275\u0275restoreView(P);const pt=r.\u0275\u0275nextContext(4);return r.\u0275\u0275resetView(pt.detectChanges())}),r.\u0275\u0275elementStart(3,"table",65)(4,"thead",66)(5,"tr")(6,"th"),r.\u0275\u0275text(7,"Name"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(8,"th"),r.\u0275\u0275text(9,"Email Address"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(10,"th"),r.\u0275\u0275text(11,"Phone Number"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(12,"th"),r.\u0275\u0275text(13,"Notifications"),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(14,"th"),r.\u0275\u0275elementEnd()(),r.\u0275\u0275elementStart(15,"tbody"),r.\u0275\u0275repeaterCreate(16,qt,3,3,"tr",67,r.\u0275\u0275repeaterTrackByIdentity),r.\u0275\u0275repeaterCreate(18,Oe,3,2,"tr",67,r.\u0275\u0275repeaterTrackByIdentity),r.\u0275\u0275elementEnd()()()()}if(2&H){const P=r.\u0275\u0275nextContext(4);r.\u0275\u0275advance(16),r.\u0275\u0275repeater(P.notificationSubscribers),r.\u0275\u0275advance(2),r.\u0275\u0275repeater(r.\u0275\u0275pureFunction0(0,R))}}function vn(H,Rt){1&H&&r.\u0275\u0275element(0,"i",71)}function we(H,Rt){1&H&&r.\u0275\u0275element(0,"i",72)}function nn(H,Rt){1&H&&r.\u0275\u0275element(0,"i",73)}function qn(H,Rt){1&H&&r.\u0275\u0275text(0," Email & Text ")}function ti(H,Rt){1&H&&r.\u0275\u0275text(0," Email ")}function An(H,Rt){1&H&&r.\u0275\u0275text(0," Text ")}function Ri(H,Rt){1&H&&r.\u0275\u0275text(0," Off ")}function ve(H,Rt){if(1&H&&(r.\u0275\u0275elementStart(0,"div",74)(1,"div"),r.\u0275\u0275element(2,"i",76)(3,"i",77),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(4,"div",78),r.\u0275\u0275element(5,"i",79)(6,"i",77),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(7,"div",78),r.\u0275\u0275element(8,"i",80)(9,"i",77),r.\u0275\u0275elementEnd()()),2&H){const P=r.\u0275\u0275nextContext(2).$implicit,z=r.\u0275\u0275nextContext(5);r.\u0275\u0275advance(3),r.\u0275\u0275classProp("fa-check",z.getSeverityNotificationStatus(P.notificationRecords).highSeverity)("fa-times",!z.getSeverityNotificationStatus(P.notificationRecords).highSeverity),r.\u0275\u0275advance(3),r.\u0275\u0275classProp("fa-check",z.getSeverityNotificationStatus(P.notificationRecords).mediumSeverity)("fa-times",!z.getSeverityNotificationStatus(P.notificationRecords).mediumSeverity),r.\u0275\u0275advance(3),r.\u0275\u0275classProp("fa-check",z.getSeverityNotificationStatus(P.notificationRecords).lowSeverity)("fa-times",!z.getSeverityNotificationStatus(P.notificationRecords).lowSeverity)}}function on(H,Rt){if(1&H){const P=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"div",81)(1,"altcon-notifications-edit-control",82),r.\u0275\u0275listener("cancel",function(){r.\u0275\u0275restoreView(P);const pt=r.\u0275\u0275nextContext(8);
1return r.\u0275\u0275resetView(pt.showEditSubscriber=!1)})("save",function(pt){r.\u0275\u0275restoreView(P);const Vt=r.\u0275\u0275nextContext(3).$implicit,Yt=r.\u0275\u0275nextContext(5);return Yt.updateSubscriber(Vt,pt),r.\u0275\u0275resetView(Yt.showEditSubscriber=!1)}),r.\u0275\u0275elementEnd()()}if(2&H){r.\u0275\u0275nextContext(2);const P=r.\u0275\u0275reference(23),z=r.\u0275\u0275nextContext().$implicit;r.\u0275\u0275nextContext();const pt=r.\u0275\u0275reference(2),Vt=r.\u0275\u0275nextContext(4);r.\u0275\u0275property("ngStyle",r.\u0275\u0275pureFunction2(8,U,P.offsetTop-pt.scrollTop+25,P.offsetLeft+15)),r.\u0275\u0275advance(),r.\u0275\u0275property("hasNotificationViewOnly",Vt.hasNotificationViewOnly)("allowSelectOff",!1)("initialSetup",Vt.getSeverityNotificationStatus(z.notificationRecords))("showSeverities",Vt.showSeverityToggles)("title","Notifications")("smsOptionEnabled",z.contact.smsEnabled)("gaEvent",r.\u0275\u0275pureFunction2(11,$,"Notif del. admin "+Vt.eventType+" updated subscriber settings","contactId: "+z.contact.
1id))}}function _e(H,Rt){if(1&H){const P=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"i",39),r.\u0275\u0275listener("click",function(){r.\u0275\u0275restoreView(P);const pt=r.\u0275\u0275nextContext(2).$implicit,Vt=r.\u0275\u0275nextContext(5);return r.\u0275\u0275resetView(Vt.showEditSubscriber=pt.contact.email)}),r.\u0275\u0275elementEnd(),r.\u0275\u0275conditionalCreate(1,on,2,14,"div",81)}if(2&H){const P=r.\u0275\u0275nextContext(2).$implicit,z=r.\u0275\u0275nextContext(5);r.\u0275\u0275advance(),r.\u0275\u0275conditional(z.showEditSubscriber===P.contact.email?1:-1)}}function ki(H,Rt){if(1&H&&r.\u0275\u0275text(0),2&H){const P=r.\u0275\u0275nextContext(8);r.\u0275\u0275textInterpolate1("This user has selected to receive notifications for all ",P.tooltipEventName," events. Notifications are not editable at the individual unit level. ")}}function ke(H,Rt){if(1&H&&(r.\u0275\u0275template(0,ki,1,1,"ng-template",null,5,r.\u0275\u0275templateRefExtractor),r.\u0275\u0275elementStart(2,"span",38),r.\u0275\u0275element(3,"i",83),r.\u0275\u0275elementEnd()),2&H){const P=r.\u0275\u0275reference(1);r.\u0275\u0275advance(2),r.\u0275\u0275property("ngbTooltip",P)}}function Rn(H,Rt){1&H&&r.\u0275\u0275text(0," This notification configuration cannot be changed because it has been configured with a group. To make changes contact a system administrator. ")}function Fe(H,Rt){if(1&H&&(r.\u0275\u0275template(0,Rn,1,0,"ng-template",null,5,r.\u0275\u0275templateRefExtractor),r.\u0275\u0275elementStart(2,"span",38),r.\u0275\u0275element(3,"i",83),r.\u0275\u0275elementEnd()),2&H){const P=r.\u0275\u0275reference(1);r.\u0275\u0275advance(2),r.\u0275\u0275property("ngbTooltip",P)}}function Fi(H,Rt){if(1&H){const P=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"i",86),r.\u0275\u0275listener("click",function(){r.\u0275\u0275restoreView(P);const pt=r.\u0275\u0275nextContext(2).$implicit,Vt=r.\u0275\u0275nextContext(5);return r.\u0275\u0275resetView(Vt.disableNotification(pt))}),r.\u0275\u0275elementEnd()}if(2&H){const P=r.\u0275\u0275nextContext(2).$implicit,z=r.\u0275\u0275nextContext(5);r.\u0275\u0275property("gaEvent",r.\u0275\u0275pureFunction2(1,$,"Notif del. admin "+z.eventType+" remove subscriber","contactId: "+P.contact.id))}}function Ni(H,Rt){if(1&H&&r.\u0275\u0275text(0),2&H){const P=r.\u0275\u0275nextContext(8);r.\u0275\u0275textInterpolate1("This user has selected to receive notifications for all ",P.tooltipEventName," events. Notifications are not editable at the individual unit level. ")}}
1function ei(H,Rt){if(1&H&&(r.\u0275\u0275template(0,Ni,1,1,"ng-template",null,5,r.\u0275\u0275templateRefExtractor),r.\u0275\u0275elementStart(2,"span",38),r.\u0275\u0275element(3,"i",87),r.\u0275\u0275elementEnd()),2&H){const P=r.\u0275\u0275reference(1);r.\u0275\u0275advance(2),r.\u0275\u0275property("ngbTooltip",P)}}function Li(H,Rt){1&H&&r.\u0275\u0275text(0," This notification configuration cannot be changed because it has been configured with a group. To make changes contact a system administrator. ")}function ni(H,Rt){if(1&H&&(r.\u0275\u0275template(0,Li,1,0,"ng-template",null,5,r.\u0275\u0275templateRefExtractor),r.\u0275\u0275elementStart(2,"span",38),r.\u0275\u0275element(3,"i",87),r.\u0275\u0275elementEnd()),2&H){const P=r.\u0275\u0275reference(1);r.\u0275\u0275advance(2),r.\u0275\u0275property("ngbTooltip",P)}}function ii(H,Rt){if(1&H&&(r.\u0275\u0275elementStart(0,"div",90)(1,"div",54)(2,"div",91)(3,"div",92)(4,"a",93)(5,"strong"),r.\u0275\u0275text(6,"Name"),r.\u0275\u0275elementEnd(),r.\u0275\u0275text(7),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(8,"br"),r.\u0275\u0275elementStart(9,"strong"),r.\u0275\u0275text(10,"Email Address"),r.\u0275\u0275elementEnd(),r.\u0275\u0275text(11),r.\u0275\u0275element(12,"br"),r.\u0275\u0275elementStart(13,"strong"),r.\u0275\u0275text(14,"Phone Number"),r.\u0275\u0275elementEnd(),r.\u0275\u0275text(15),r.\u0275\u0275pipe(16,"phoneNumber"),r.\u0275\u0275element(17,"br"),r.\u0275\u0275elementStart(18,"div",54)(19,"strong"),r.\u0275\u0275text(20,"Notifications"),r.\u0275\u0275elementEnd(),r.\u0275\u0275text(21,": "),r.\u0275\u0275elementStart(22,"div",94,4)(24,"div",69)(25,"div",70),r.\u0275\u0275conditionalCreate(26,vn,1,0,"i",71),r.\u0275\u0275conditionalCreate(27,we,1,0,"i",72),r.\u0275\u0275conditionalCreate(28,nn,1,0,"i",73),r.\u0275\u0275conditionalCreate(29,qn,1,0),r.\u0275\u0275conditionalCreate(30,ti,1,0),r.\u0275\u0275conditionalCreate(31,An,1,0),r.\u0275\u0275conditionalCreate(32,Ri,1,0),r.\u0275\u0275elementEnd(),r.\u0275\u0275conditionalCreate(33,ve,10,12,"div",74),r.\u0275\u0275elementEnd(),r.\u0275\u0275conditionalCreate(34,_e,2,1),r.\u0275\u0275conditionalCreate(35,ke,4,1),r.\u0275\u0275conditionalCreate(36,Fe,4,1),r.\u0275\u0275elementEnd()()()(),r.\u0275\u0275elementStart(37,"div",95),r.\u0275\u0275conditionalCreate(38,Fi,1,4,"i",84),r.\u0275\u0275conditionalCreate(39,ei,4,1),r.\u0275\u0275conditionalCreate(40,ni,4,1),r.\u0275\u0275elementEnd()()()),2&H){const P=r.\u0275\u0275nextContext().$implicit,z=r.\u0275\u0275readContextLet(0),pt=r.\u0275\u0275nextContext(5);r.\u0275\u0275advance(7),r.\u0275\u0275textInterpolate1(": ",pt.contactName(P.contact.firstName,P.contact.lastName)," "),r.\u0275\u0275advance(4),r.\u0275\u0275textInterpolate1(": ",P.contact.email),r.\u0275\u0275advance(4),r.\u0275\u0275textInterpolate1(": ",r.\u0275\u0275pipeBind1(16,19,P.contact.phoneNumber)),r.\u0275\u0275advance(7),r.\u0275\u0275classProp("edit-active",pt.showEditSubscriber===P.contact.email),r.\u0275\u0275advance(4),r.\u0275\u0275conditional(z.emailEnabled?26:-1),r.\u0275\u0275advance(),r.\u0275\u0275conditional(z.smsEnabled?27:-1),r.\u0275\u0275advance(),r.\u0275\u0275conditional(z.smsEnabled||z.emailEnabled?-1:28),r.\u0275\u0275advance(),r.\u0275\u0275conditional(z.emailEnabled&&z.smsEnabled?29:-1),r.\u0275\u0275advance(),r.\u0275\u0275conditional(z.emailEnabled&&!z.smsEnabled?30:-1),r.\u0275\u0275advance(),r.\u0275\u0275conditional(!z.emailEnabled&&z.smsEnabled?31:-1),r.\u0275\u0275advance(),r.\u0275\u0275conditional(z.emailEnabled||z.smsEnabled?-1:32),r.\u0275\u0275advance(),r.\u0275\u0275conditional(null!==z.status&&"Off"!=z.status?33:-1),r.\u0275\u0275advance(),r.\u0275\u0275conditional("ALL"===z.origNotifSubjectType||"GROUP"===z.origNotifSubjectType||pt.hasNotificationViewOnly?-1:34),r.\u0275\u0275advance(),r.\u0275\u0275conditional("ALL"===z.origNotifSubjectType?35:-1),r.\u0275\u0275advance(),r.\u0275\u0275conditional("GROUP"===z.origNotifSubjectType?36:-1),r.\u0275\u0275advance(2),r.\u0275\u0275conditional("ALL"===z.origNotifSubjectType||"GROUP"===z.origNotifSubjectType||pt.hasNotificationViewOnl
1y?-1:38),r.\u0275\u0275advance(),r.\u0275\u0275conditional("ALL"===z.origNotifSubjectType?39:-1),r.\u0275\u0275advance(),r.\u0275\u0275conditional("GROUP"===z.origNotifSubjectType?40:-1)}}function xo(H,Rt){if(1&H&&(r.\u0275\u0275declareLet(0),r.\u0275\u0275conditionalCreate(1,ii,41,21,"div",90)),2&H){const P=Rt.$implicit,z=r.\u0275\u0275storeLet(r.\u0275\u0275nextContext(5).findPrimaryNotificationRecord(P.notificationRecords));r.\u0275\u0275advance(),r.\u0275\u0275conditional(z?1:-1)}}function oi(H,Rt){if(1&H&&(r.\u0275\u0275elementStart(0,"div",88),r.\u0275\u0275text(1),r.\u0275\u0275elementEnd()),2&H){const P=Rt.$index,z=r.\u0275\u0275nextContext().$implicit;r.\u0275\u0275classProp("mb-1",3!==P),r.\u0275\u0275advance(),r.\u0275\u0275textInterpolate(z)}}function ai(H,Rt){1&H&&(r.\u0275\u0275elementStart(0,"div",90)(1,"div",91)(2,"div",96),r.\u0275\u0275repeaterCreate(3,oi,2,3,"div",97,r.\u0275\u0275repeaterTrackByIdentity),r.\u0275\u0275elementEnd()()()),2&H&&(r.\u0275\u0275advance(3),r.\u0275\u0275repeater(r.\u0275\u0275pureFunction0(0,st)))}function Vi(H,Rt){if(1&H){const P=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"div",63)(1,"div",64,3),r.\u0275\u0275listener("scroll",function(){r.\u0275\u0275restoreView(P);const pt=r.\u0275\u0275nextContext(4);return r.\u0275\u0275resetView(pt.detectChanges())}),r.\u0275\u0275elementStart(3,"div",89),r.\u0275\u0275repeaterCreate(4,xo,2,2,null,null,r.\u0275\u0275repeaterTrackByIdentity),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(6,"div",89),r.\u0275\u0275repeaterCreate(7,ai,5,1,"div",90,r.\u0275\u0275repeaterTrackByIdentity),r.\u0275\u0275elementEnd()()()}if(2&H){const P=r.\u0275\u0275nextContext(4);r.\u0275\u0275advance(3),r.\u0275\u0275property("hidden",P.loadingSubscribers),r.\u0275\u0275advance(),r.\u0275\u0275repeater(P.notificationSubscribers),r.\u0275\u0275advance(2),r.\u0275\u0275property("hidden",!P.loadingSubscribers),r.\u0275\u0275advance(),r.\u0275\u0275repeater(r.\u0275\u0275pureFunction0(2,R))}}function kn(H,Rt){if(1&H){const P=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"div",98),r.\u0275\u0275listener("click",function(){r.\u0275\u0275restoreView(P);const pt=r.\u0275\u0275nextContext(4);return r.\u0275\u0275resetView(pt.notifSearchingGroups=!0)}),r.\u0275\u0275elementStart(1,"strong",99),r.\u0275\u0275text(2," + Add Users from a Group "),r.\u0275\u0275elementEnd()()}}function be(H,Rt){if(1&H){const P=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"div",81)(1,"altcon-notifications-edit-control",111),r.\u0275\u0275listener("cancel",function(){r.\u0275\u0275restoreView(P);const pt=r.\u0275\u0275nextContext(7);return r.\u0275\u0275resetView(pt.showAddContact=null)})("save",function(pt){r.\u0275\u0275restoreView(P);const Vt=r.\u0275\u0275nextContext(2).$implicit,Yt=r.\u0275\u0275nextContext(5);return Yt.addSubscribers([Vt],pt),r.\u0275\u0275resetView(Yt.showAddContact=null)}),r.\u0275\u0275elementEnd()()}if(2&H){r.\u0275\u0275nextContext();const P=r.\u0275\u0275reference(2),z=r.\u0275\u0275nextContext().$implicit,pt=r.\u0275\u0275nextContext(5);r.\u0275\u0275property("ngStyle",r.\u0275\u0275pureFunction1(7,k,P.offsetTop-pt.autoCompleteScroll+12)),r.\u0275\u0275advance(),r.\u0275\u0275property("hasNotificationViewOnly",pt.hasNotificationViewOnly)("initialSetup",pt.getNewSeverityNotificationStatus())("showSeverities",pt.showSeverityToggles)("title","Notifications")("smsOptionEnabled",null==z||null==z.phoneNumbers[0]?null:z.phoneNumbers[0].textEnabled)("gaEvent",r.\u0275\u0275pureFunction2(9,$,"Notif del. admin "+pt.eventType+" add individual recipient","contactId: "+z.id))}}function Bi(H,Rt){if(1&H){const P=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"div",109)(1,"i",110,6),r.\u0275\u0275listener("click",function(){r.\u0275\u0275restoreView(P);const pt=r.\u0275\u0275nextContext().$implicit,Vt=r.\u0275\u0275nextContext(5);return r.\u0275\u0275resetView(Vt.showAddContact=pt.id)}),r.\u0275\u0275elementEnd()(),r.\u0275\u0275conditionalCreate(3,be,2,12,"div",81)}if(2&H){const P=r.\u0275\u0275nextContext().$implicit,z=r.\u0275\u0275nextContext(5);r.\u0275\u0275classProp("active",z.showAddContact===P.id),r.\u0275\u0275advance(3),r.\u0275\u0275conditional(z.showAddContact===P.id?3:-1)}}function ri(H,Rt){if(1&H){const P=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"i",114),r.\u0275\u0275listener("click",function(){r.\u0275\u0275restoreView(P);const pt=r.\u0275\u0275nextContext(2).$implicit,Vt=r.\u0275\u0275nextContext(5);
1return r.\u0275\u0275resetView(Vt.removeSubscriber(pt))}),r.\u0275\u0275elementEnd()}if(2&H){const P=r.\u0275\u0275nextContext(2).$implicit,z=r.\u0275\u0275nextContext(5);r.\u0275\u0275property("gaEvent",r.\u0275\u0275pureFunction2(1,$,"Notif del. admin "+z.eventType+" remove subscriber","contactId: "+P.id))}}function si(H,Rt){1&H&&(r.\u0275\u0275elementStart(0,"i",115),r.\u0275\u0275listener("click",function(){return null}),r.\u0275\u0275elementEnd())}function bn(H,Rt){if(1&H&&r.\u0275\u0275conditionalCreate(0,ri,1,4,"i",112)(1,si,1,0,"i",113),2&H){const P=r.\u0275\u0275nextContext().$implicit,z=r.\u0275\u0275nextContext(5);r.\u0275\u0275conditional(z.canRemoveSubscriber(P)?0:1)}}function li(H,Rt){if(1&H&&(r.\u0275\u0275elementStart(0,"div",116)(1,"strong",117),r.\u0275\u0275text(2,"Name: "),r.\u0275\u0275elementEnd(),r.\u0275\u0275text(3),r.\u0275\u0275element(4,"br"),r.\u0275\u0275elementStart(5,"strong",117),r.\u0275\u0275text(6,"Job Title: "),r.\u0275\u0275elementEnd(),r.\u0275\u0275text(7),r.\u0275\u0275element(8,"br"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(9,"div",118)(10,"strong",117),r.\u0275\u0275text(11,"Email: "),r.\u0275\u0275elementEnd(),r.\u0275\u0275text(12),r.\u0275\u0275element(13,"br"),r.\u0275\u0275elementStart(14,"strong",117),r.\u0275\u0275text(15,"Phone #: "),r.\u0275\u0275elementEnd(),r.\u0275\u0275text(16),r.\u0275\u0275pipe(17,"phoneNumber"),r.\u0275\u0275elementEnd()),2&H){const P=r.\u0275\u0275nextContext().$implicit,z=r.\u0275\u0275nextContext(5);r.\u0275\u0275advance(3),r.\u0275\u0275textInterpolate1(" ",z.contactName(P.firstName,P.lastName)),r.\u0275\u0275advance(4),r.\u0275\u0275textInterpolate1(" ",P.jobTitle),r.\u0275\u0275advance(5),r.\u0275\u0275textInterpolate1(" ",P.email),r.\u0275\u0275advance(4),r.\u0275\u0275textInterpolate1(" ",r.\u0275\u0275pipeBind1(17,4,P.phoneNumber)," ")}}function ci(H,Rt){if(1&H&&(r.\u0275\u0275elementStart(0,"div",119)(1,"strong",117),r.\u0275\u0275text(2,"Name: "),r.\u0275\u0275elementEnd(),r.\u0275\u0275text(3),r.\u0275\u0275element(4,"br"),r.\u0275\u0275elementStart(5,"strong",117),r.\u0275\u0275text(6,"Email: "),r.\u0275\u0275elementEnd(),r.\u0275\u0275text(7),r.\u0275\u0275element(8,"br"),r.\u0275\u0275elementStart(9,"strong",117),r.\u0275\u0275text(10,"Job Title: "),r.\u0275\u0275elementEnd(),r.\u0275\u0275text(11),r.\u0275\u0275element(12,"br"),r.\u0275\u0275elementStart(13,"strong",117),r.\u0275\u0275text(14,"Phone #: "),r.\u0275\u0275elementEnd(),r.\u0275\u0275text(15),r.\u0275\u0275pipe(16,"phoneNumber"),r.\u0275\u0275elementEnd()),2&H){const P=r.\u0275\u0275nextContext().$implicit,z=r.\u0275\u0275nextContext(5);r.\u0275\u0275advance(3),r.\u0275\u0275textInterpolate1(" ",z.contactName(P.firstName,P.lastName)),r.\u0275\u0275advance(4),r.\u0275\u0275textInterpolate1(" ",P.email),r.\u0275\u0275advance(4),r.\u0275\u0275textInterpolate1(" ",P.jobTitle),r.\u0275\u0275advance(4),r.\u0275\u0275textInterpolate1(" ",r.\u0275\u0275pipeBind1(16,4,P.phoneNumber)," ")}}function an(H,Rt){if(1&H){const P=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"div",107),r.\u0275\u0275listener("click",function(pt){r.\u0275\u0275restoreView(P);const Vt=r.\u0275\u0275nextContext(5);return r.\u0275\u0275resetView(Vt.stopPropagation(pt))}),r.\u0275\u0275elementStart(1,"div",54)(2,"div",108),r.\u0275\u0275conditionalCreate(3,Bi,4,3)(4,bn,2,1),r.\u0275\u0275elementEnd(),r.\u0275\u0275template(5,li,18,6,"ng-template",7)(6,ci,17,6,"ng-template",7),r.\u0275\u0275elementEnd()()}if(2&H){const P=Rt.$implicit,z=r.\u0275\u0275nextContext(5);r.\u0275\u0275property("hidden",z.loadingContactSearch||0===(null==z.contactResults?null:z.contactResults.length)),r.\u0275\u0275advance(3),r.\u0275\u0275conditional(z.isContactSubscribed(P.id)?4:3),r.\u0275\u0275advance(2),r.\u0275\u0275property("isMobileView",!1)("breakPoint",z.tabletBreakpoint),r.\u0275\u0275advance(),r.\u0275\u0275property("isMobileView",!0)("breakPoint",z.tabletBreakpoint)}}function Fn(H,Rt){if(1&H){const P=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"div",62)(1,"div",100)(2,"altcon-autocomplete-dropdown",101),r.\u0275\u0275listener("searchChange",function(pt){r.\u0275\u0275restoreView(P);const Vt=r.\u0275\u0275nextContext(4);
1return Vt.loadingContactSearch=!0,r.\u0275\u0275resetView(Vt.contactSearchSubject.next(pt))})("bottomButtonPressed",function(){r.\u0275\u0275restoreView(P);const pt=r.\u0275\u0275nextContext(4);return pt.searchingContacts=!1,pt.contactResults.length=0,r.\u0275\u0275resetView(pt.contactBottomButtonActive=!1)}),r.\u0275\u0275elementStart(3,"div",102),r.\u0275\u0275repeaterCreate(4,an,7,6,"div",103,r.\u0275\u0275repeaterTrackByIdentity),r.\u0275\u0275elementEnd()()(),r.\u0275\u0275elementStart(6,"div",104),r.\u0275\u0275element(7,"br",105),r.\u0275\u0275elementContainerStart(8),r.\u0275\u0275elementStart(9,"div",106)(10,"button",53),r.\u0275\u0275listener("click",function(){r.\u0275\u0275restoreView(P);const pt=r.\u0275\u0275nextContext(4);return pt.searchingContacts=!1,pt.contactResults.length=0,pt.contactBottomButtonActive=!1,r.\u0275\u0275resetView(pt.showAddContact=null)}),r.\u0275\u0275text(11," Cancel "),r.\u0275\u0275elementEnd()(),r.\u0275\u0275elementContainerEnd(),r.\u0275\u0275elementEnd()()}if(2&H){const P=r.\u0275\u0275nextContext(4);r.\u0275\u0275advance(2),r.\u0275\u0275property("placeholder","Search Users")("selectMessage","Select a User...")("searchTip","Search by First Name, Last Name, Job Title, Email")("resultsLength",P.contactResults.length)("loading",P.loadingContactSearch)("autoCompleteOn",!1)("bottomButtonActive",P.contactBottomButtonActive)("bottomButtonText","Done"),r.\u0275\u0275advance(2),r.\u0275\u0275repeater(P.contactResults)}}function di(H,Rt){if(1&H){const P=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"div",81)(1,"altcon-notifications-edit-control",124),r.\u0275\u0275listener("cancel",function(){r.\u0275\u0275restoreView(P);const pt=r.\u0275\u0275nextContext(6);return r.\u0275\u0275resetView(pt.showAddFromGroup=null)})("save",function(pt){r.\u0275\u0275restoreView(P);const Vt=r.\u0275\u0275nextContext().$implicit,Yt=r.\u0275\u0275nextContext(5);return Yt.addSubscribersFromGroup(Vt,pt),r.\u0275\u0275resetView(Yt.showAddFromGroup=null)}),r.\u0275\u0275elementEnd()()}if(2&H){const P=r.\u0275\u0275nextContext().$implicit,z=r.\u0275\u0275reference(4),pt=r.\u0275\u0275nextContext(5);r.\u0275\u0275property("ngStyle",r.\u0275\u0275pureFunction1(7,k,z.offsetTop-pt.autoCompleteScroll+12)),r.\u0275\u0275advance(),r.\u0275\u0275property("hasNotificationViewOnly",pt.hasNotificationViewOnly)("smsOptionEnabled",!0)("initialSetup",pt.getNewSeverityNotificationStatus())("showSeverities",pt.showSeverityToggles)("title","Notifications")("gaEvent",r.\u0275\u0275pureFunction2(9,$,"Notif del. admin "+pt.eventType+" add recipients from group","groupId: "+P.groupId))}}function Nn(H,Rt){if(1&H){const P=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"div",90)(1,"div",121)(2,"div",122)(3,"i",110,6),r.\u0275\u0275listener("click",function(){const pt=r.\u0275\u0275restoreView(P).$implicit,Vt=r.\u0275\u0275nextContext(5);return r.\u0275\u0275resetView(Vt.showAddFromGroup=pt.groupId)}),r.\u0275\u0275elementEnd(),r.\u0275\u0275conditionalCreate(5,di,2,12,"div",81),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(6,"div")(7,"span",123),r.\u0275\u0275text(8),r.\u0275\u0275elementEnd()()()()}if(2&H){const P=Rt.$implicit,z=r.\u0275\u0275nextContext(5);r.\u0275\u0275advance(2),r.\u0275\u0275classProp("active",z.showAddFromGroup===P.groupId),r.\u0275\u0275advance(3),r.\u0275\u0275conditional(z.showAddFromGroup===P.groupId?5:-1),r.\u0275\u0275advance(3),r.\u0275\u0275textInterpolate1(" ",P.name," ")}}function zi(H,Rt){if(1&H){const P=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"div",62)(1,"div",100)(2,"altcon-autocomplete-dropdown",120),r.\u0275\u0275listener("bottomButtonPressed",function(){r.\u0275\u0275restoreView(P);const pt=r.\u0275\u0275nextContext(4);return r.\u0275\u0275resetView(pt.notifSearchingGroups=!1)})("searchChange",function(pt){r.\u0275\u0275restoreView(P);const Vt=r.\u0275\u0275nextContext(4);return Vt.notifLoadingGroupSearch=!0,r.\u0275\u0275resetView(Vt.notifGroupsSearchSubject.next(pt))}),r.\u0275\u0275elementStart(3,"div",102),r.\u0275\u0275repeaterCreate(4,Nn,9,4,"div",90,r.\u0275\u0275repeaterTrackByIdentity),r.\u0275\u0275elementEnd()()(),r.\u0275\u0275elementStart(6,"div",104),r.\u0275\u0275element(7,"br",105),r.\u0275\u0275elementContainerStart(8),r.\u0275\u0275elementStart(9,"div",106)(10,"button",53),r.\u0275\u0275listener("click",function(){r.\u0275\u0275restoreView(P);const pt=r.\u0275\u0275nextContext(4);return pt.notifSearchingGroups=!1,pt.notifGroupResults=null,pt.notifGroupsBottomButtonActive=!1,r.\u0275\u0275resetVie
1w(pt.showAddFromGroup=null)}),r.\u0275\u0275text(11," Cancel "),r.\u0275\u0275elementEnd()(),r.\u0275\u0275elementContainerEnd(),r.\u0275\u0275elementEnd()()}if(2&H){const P=r.\u0275\u0275nextContext(4);r.\u0275\u0275advance(2),r.\u0275\u0275property("bottomButtonActive",P.notifGroupsBottomButtonActive)("bottomButtonText","Done")("placeholder","Search Groups")("selectMessage","Select a Group...")("resultsLength",P.notifGroupsTotalResults)("loading",P.notifLoadingGroupSearch)("stopPropogation",!0),r.\u0275\u0275advance(2),r.\u0275\u0275repeater(null==P.notifGroupResults?null:P.notifGroupResults.content)}}function ji(H,Rt){if(1&H){const P=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"div",54)(1,"h4",55),r.\u0275\u0275text(2),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(3,"div",56)(4,"i",57),r.\u0275\u0275listener("click",function(){r.\u0275\u0275restoreView(P);const pt=r.\u0275\u0275nextContext(3);return pt.showSubscribers=!1,pt.managingSubscribers=!1,pt.searchingContacts=!1,pt.contactResults.length=0,pt.contactBottomButtonActive=!1,r.\u0275\u0275resetView(pt.showAddContact=null)}),r.\u0275\u0275elementEnd()()(),r.\u0275\u0275elementStart(5,"div",58)(6,"i")(7,"strong"),r.\u0275\u0275text(8),r.\u0275\u0275elementEnd(),r.\u0275\u0275text(9," total"),r.\u0275\u0275elementEnd()(),r.\u0275\u0275template(10,Ve,20,1,"ng-template",7)(11,Vi,9,3,"ng-template",7),r.\u0275\u0275elementStart(12,"div",59)(13,"div",60),r.\u0275\u0275listener("click",function(){r.\u0275\u0275restoreView(P);const pt=r.\u0275\u0275nextContext(3);return r.\u0275\u0275resetView(pt.searchingContacts=!0)}),r.\u0275\u0275elementStart(14,"strong"),r.\u0275\u0275text(15," + Add Users "),r.\u0275\u0275elementEnd()(),r.\u0275\u0275template(16,kn,3,0,"div",61),r.\u0275\u0275elementEnd(),r.\u0275\u0275conditionalCreate(17,Fn,12,8,"div",62),r.\u0275\u0275conditionalCreate(18,zi,12,7,"div",62)}if(2&H){const P=r.\u0275\u0275nextContext(3);r.\u0275\u0275advance(2),r.\u0275\u0275textInterpolate(P.subscriberSearchTitle),r.\u0275\u0275advance(6),r.\u0275\u0275textInterpolate(P.notificationSubscribers.length),r.\u0275\u0275advance(2),r.\u0275\u0275property("isMobileView",!1)("breakPoint",P.tabletBreakpoint),r.\u0275\u0275advance(),r.\u0275\u0275property("isMobileView",!0)("breakPoint",P.tabletBreakpoint),r.\u0275\u0275advance(),r.\u0275\u0275property("hidden",P.searchingContacts||P.notifSearchingGroups),r.\u0275\u0275advance(4),r.\u0275\u0275property("hasPrivilege","B2B_View_Organization_Groups"),r.\u0275\u0275advance(),r.\u0275\u0275conditional(P.searchingContacts?17:-1),r.\u0275\u0275advance(),r.\u0275\u0275conditional(P.notifSearchingGroups?18:-1)}}function Gi(H,Rt){if(1&H&&(r.\u0275\u0275elementContainerStart(0),r.\u0275\u0275template(1,Xt,3,0,"ng-template",7),r.\u0275\u0275elementStart(2,"div",51),r.\u0275\u0275conditionalCreate(3,ji,19,10),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementContainerEnd()),2&H){const P=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(),r.\u0275\u0275property("isMobileView",!0)("breakPoint",P.tabletBreakpoint),r.\u0275\u0275advance(),r.\u0275\u0275classProp("active",P.managingSubscribers),r.\u0275\u0275property("ngStyle",r.\u0275\u0275pureFunction1(6,k,P.managingSubscribers?0:null==P.openSubscriberManageHeight?null:P.openSubscriberManageHeight.nativeElement.offsetTop)),r.\u0275\u0275advance(),r.\u0275\u0275conditional(P.managingSubscribers&&P.showSubscribers?3:-1)}}function Ui(H,Rt){if(1&H&&(r.\u0275\u0275conditionalCreate(0,Qt,6,3,"div",48),r.\u0275\u0275conditionalCreate(1,wt,3,0,"div",48),r.\u0275\u0275conditionalCreate(2,he,6,2,"div",48),r.\u0275\u0275template(3,Gi,4,8,"ng-container",22)),2&H){const P=r.\u0275\u0275nextContext();r.\u0275\u0275conditional("ALL"===P.unitDetailTypeDef.primaryNotifRecord.notifSubjectType?0:-1),r.\u0275\u0275advance(),r.\u0275\u0275conditional("GROUP"===P.unitDetailTypeDef.primaryNotifRecord.notifSubjectType?1:-1),r.\u0275\u0275advance(),r.\u0275\u0275conditional(!1===P.hasMobileNumber&&!1===P.hasNotificationViewOnly?2:-1),r.\u0275\u0275advance(),r.\u0275\u0275property("hasPrivilege","B2B_Delegated_Customer_Admin")}}const Ne="INDIVIDUAL",Ge="GROUP",Ye="instanceId",oe="ON",se="OFF",Ue="Email",rn="Text",Ln="Email & Text";T.NotificationManagementRowComponent=(()=>{class H{constructor(P,z,pt,Vt,Yt,le){this.cdRef=P,this.notmanService=z,this.groupsService=pt,this.srService=Vt,this.loader=Yt,this.statefulService=le,this.contactSearchSubject=ne
1w g.Subject,this.notifGroupsSearchSubject=new g.Subject,this.tabletBreakpoint=O.GlobalConstants.TABLET_SIZE_BREAKPOINT,this.contactResults=[],this.notificationSubscribers=[],this.notificationSubscribersDisabled=[],this.notifGroupsBottomButtonActive=!1,this.notifGroupResults=new h.FleetGroupsSearchResponse,this.ALTEC_STANDARD_DEBOUNCE_LARGE=O.GlobalConstants.ALTEC_STANDARD_DEBOUNCE_LARGE,this.unsubscribe$=new g.Subject}ngOnInit(){this.initializeSearchContactsSubscription(),this.initializeNotifSearchGroupsSubscription()}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}initializeSearchContactsSubscription(){this.contactSearchSubject.pipe((0,f.debounceTime)(this.ALTEC_STANDARD_DEBOUNCE_LARGE),(0,f.takeUntil)(this.unsubscribe$),(0,f.switchMap)(P=>P?this.srService.searchContacts(P,[parseInt(this.accountIdForRelationships)]).pipe((0,f.take)(1)):(0,g.of)([]))).subscribe(P=>{P&&P.length>0?(this.contactResults=P,this.contactBottomButtonActive=!0):(this.contactResults=[],this.contactBottomButtonActive=!1),this.loadingContactSearch=!1,this.cdRef.detectChanges()})}initializeNotifSearchGroupsSubscription(){this.notifGroupsSearchSubject.pipe((0,f.debounceTime)(this.ALTEC_STANDARD_DEBOUNCE_LARGE),(0,f.takeUntil)(this.unsubscribe$),(0,f.switchMap)(P=>{const z=new v.RequestData(9);return z.content.query=P,this.statefulService.hasPrivilege("B2B_View_Parent_Holding")||(z.content.accountIds=[this.statefulService.profile.parentOrganization.accountId]),P?this.groupsService.searchGroups(z).pipe((0,f.take)(1)):(0,g.of)([])})).subscribe(P=>{P?(this.notifGroupResults=P,this.notifGroupsTotalResults=P.totalRecords):this.notifGroupResults=null,this.notifLoadingGroupSearch=!1,this.cdRef.detectChanges()})}toggleEventEmailNotifications(){let P=this.unitDetailTypeDef.primaryNotifRecord;if(void 0!==P&&null!==P.notifId)P.emailEnabled=!P.emailEnabled,this.updateNotification(P);else{let z=new u.NotificationDto;z.smsEnabled=!1,z.emailEnabled=!0,this.createNewNotification(z)}}toggleEventTextNotifications(){let P=this.unitDetailTypeDef.primaryNotifRecord;if(void 0!==P&&null!==P.notifId)P.smsEnabled=!P.smsEnabled,this.updateNotification(P);else{let z=new u.NotificationDto;z.smsEnabled=!0,z.emailEnabled=!1,this.createNewNotification(z)}}openSubscriberManage(){this.cdRef.detectChanges(),0===this.notificationSubscribers.length&&this.loadSubscribersData(),this.managingSubscribers=!0,setTimeout(()=>{this.showSubscribers=!0},150)}getContactId(){return this.statefulService.profile.contactId.toString()}detectChanges(){this.cdRef.detectChanges()}findPrimaryNotificationRecord(P){return P.find(P[0].origNotifSubjectType!==Ge?z=>!z.notifSubtypeDef:z=>!z.notifTypeGrpSubtypeDef)}findSubtypeNotificationRecords(P){return P.filter(z=>null!=z.notifSubtypeDef)}findNotifTypeGroupSubtypeRecords(P){return P.filter(z=>null!=z.grpSubtypeNotifId)}updateSubscriber(P,z){let pt=this.findPrimaryNotificationRecord(P.notificationRecords),Vt=this.notmanService.notificationExplodedContentToNotificationDto(pt);if(Vt.notifSubjectType!==Ge&&"ALL"!==Vt.notifSubjectType){if(null!==Vt.notifType.notifSubtypeDefs&&Vt.notifType.notifSubtypeDefs.length>0){Vt.subNotifications=this.findSubtypeNotificationRecords(P.notificationRecords).map(re=>this.notmanService.notificationExplodedContentToNotificationSubtypeDto(re));let Yt=Vt.subNotifications.find(re=>"LOW_SEVERITY"===re.notifSubtypeDef.notifSubtype),le=Vt.subNotifications.find(re=>"MEDIUM_SEVERITY"===re.notifSubtypeDef.notifSubtype),ce=Vt.subNotifications.find(re=>"HIGH_SEVERITY"===re.notifSubtypeDef.notifSubtype);null!=Yt&&(Yt.status=z.lowSeverity?"ON":"OFF"),null!=le&&(le.status=z.mediumSeverity?"ON":"OFF"),null!=ce&&(ce.status=z.highSeverity?"ON":"OFF")}switch(z.notificationStatus?z.notificationStatus.toUpperCase():z.toString().toUpperCase()){case"EMAIL":Vt.emailEnabled=!0,Vt.smsEnabled=!1;break;case"TEXT":Vt.emailEnabled=!1,Vt.smsEnabled=!0;break;case"EMAIL & TEXT":Vt.emailEnabled=!0,Vt.smsEnabled=!0}this.updateDelegatedNotification(P,Vt).then(()=>{this.loadSubscribersData()},()=>{})}}
1disableNotification(P){let z=this.notmanService.notificationExplodedContentToNotificationDto(this.findPrimaryNotificationRecord(P.notificationRecords));"ALL"!==z.notifSubjectType&&"GROUP"!==z.notifSubjectType&&(z.emailEnabled=!1,z.smsEnabled=!1,z.subNotifications=this.findSubtypeNotificationRecords(P.notificationRecords).map(pt=>this.notmanService.notificationExplodedContentToNotificationSubtypeDto(pt)),this.updateDelegatedNotification(P,z).then(()=>{this.loadSubscribersData()},()=>{}))}updateDelegatedNotification(P,z){if("ALL"!==z.notifSubjectType&&"GROUP"!==z.notifSubjectType){if(!1===z.emailEnabled&&!1===z.smsEnabled){z.status=se;for(let pt of z.subNotifications)pt.status=se}else if(z.status=oe,void 0!==z.subNotifications&&z.subNotifications.length>0&&z.subNotifications[0].status===se&&z.subNotifications[1].status===se&&z.subNotifications[2].status===se)for(let pt of z.subNotifications)pt.status=oe;return new Promise((pt,Vt)=>{this.loader.start(!1);let Yt=this.notmanService.notificationExplodedContentToNotificationDto(this.findPrimaryNotificationRecord(P.notificationRecords));b.isEqual(z,Yt)||this.notmanService.createOrUpdateNotification(z).subscribe(le=>{this.loader.stop(),pt(!0)})})}}getSeverityNotificationStatus(P){let z=new u.SeverityNotificationStatus;if(null!=P){let Vt,pt=this.findPrimaryNotificationRecord(P);z.notificationStatus=this.calcNotificationStatusText(pt),P[0].origNotifSubjectType===Ne||"ALL"===P[0].origNotifSubjectType?(Vt=this.findSubtypeNotificationRecords(P),Vt.forEach(Yt=>{switch(Yt.notifSubtypeDef.notifSubtype){case"HIGH_SEVERITY":z.highSeverity=Yt.subtypeStatus===oe;break;case"MEDIUM_SEVERITY":z.mediumSeverity=Yt.subtypeStatus===oe;break;case"LOW_SEVERITY":z.lowSeverity=Yt.subtypeStatus===oe}})):P[0].origNotifSubjectType===Ge&&(Vt=this.findNotifTypeGroupSubtypeRecords(P),Vt.forEach(Yt=>{switch(Yt.notifTypeGrpSubtypeDef.typeGrpSubtypeDef){case"HIGH_SEVERITY":z.highSeverity=Yt.subtypeStatus===oe;break;case"MEDIUM_SEVERITY":z.mediumSeverity=Yt.subtypeStatus===oe;break;case"LOW_SEVERITY":z.lowSeverity=Yt.subtypeStatus===oe}}))}return z}getNewSeverityNotificationStatus(){let P=new u.SeverityNotificationStatus;return P.notificationStatus="Off",P}notificationSeverityToggle(P){if(null!==this.unitDetailTypeDef.primaryNotifRecord.subNotifications&&this.unitDetailTypeDef.primaryNotifRecord.subNotifications.length>0)switch(P){case"high":this.unitDetailTypeDef.notificationSeverityStatus.highSeverity=!this.unitDetailTypeDef.notificationSeverityStatus.highSeverity,this.unitDetailTypeDef.primaryNotifRecord.subNotifications.find(z=>"HIGH_SEVERITY"===z.notifSubtypeDef.notifSubtype).status=this.unitDetailTypeDef.notificationSeverityStatus.highSeverity?oe:se;break;case"medium":this.unitDetailTypeDef.notificationSeverityStatus.mediumSeverity=!this.unitDetailTypeDef.notificationSeverityStatus.mediumSeverity,this.unitDetailTypeDef.primaryNotifRecord.subNotifications.find(z=>"MEDIUM_SEVERITY"===z.notifSubtypeDef.notifSubtype).status=this.unitDetailTypeDef.notificationSeverityStatus.mediumSeverity?oe:se;break;case"low":this.unitDetailTypeDef.notificationSeverityStatus.lowSeverity=!this.unitDetailTypeDef.notificationSeverityStatus.lowSeverity,this.unitDetailTypeDef.primaryNotifRecord.subNotifications.find(z=>"LOW_SEVERITY"===z.notifSubtypeDef.notifSubtype).status=this.unitDetailTypeDef.notificationSeverityStatus.lowSeverity?oe:se}else if(null!==this.unitDetailTypeDef.primaryNotifRecord.typeGroupSubNotifications&&this.unitDetailTypeDef.primaryNotifRecord.typeGroupSubNotifications.length>0)switch(P){case"high":this.unitDetailTypeDef.notificationSeverityStatus.highSeverity=!this.unitDetailTypeDef.notificationSeverityStatus.highSeverity,this.unitDetailTypeDef.primaryNotifRecord.typeGroupSubNotifications.find(z=>"HIGH_SEVERITY"===z.notifTypeGrpSubtypeDef.typeGrpSubtypeDef).status=this.unitDetailTypeDef.notificationSeverityStatus.highSeverity?oe:se;break;case"medium":this.unitDetailTypeDef.notificationSeverityStatus.mediumSeverity=!this.unitDetailTypeDef.notificationSeverityStatus.mediumSeverity,this.unitDetailTypeDef.primaryNotifRecord.typeGroupSubNotifications.find(z=>"MEDIUM_SEVERITY"===z.notifTypeGrpSubtypeDef.typeGrpSubtypeDef).status=this.unitDetailTypeDef.notificationSeverityStatus.mediumSeverity?oe:se;break;case"low":this.unitDetailTypeDef.notificationSeverityStatus.lowSeverity=!this.unitDetailTypeDef.notificationSeverityStatus.lowSeverity,this.unitDetailTypeDef.primaryNotifRecord.typeGroupSubNotifications.find(z=>"LOW_SEVERITY"===z.notifTypeGrpSubtypeDef.typeGrpSubtypeDef).status=this.unitDetailTypeDef.notificationSeverityStatus.lowSeverity?oe:se}this.updateNotification(this.unitDetailTypeDef.primaryNotifRecord)}createNewNotification(P,z){if(null!==P){this.loader.start(),P.notifId=null,P.notifRecipientType=Ne,P.notifRecipientIdentifier=z??Number(this.getContactId()),P.notifSubjectType=Ne,P.notifCreator=this.statefulService.profile.email,P.status=oe,P.notifType=this.unitDetailTypeDef.typeDef,P.notifTypeGroupDef=P.notifType.notifTypeGroup,P.notifType.notifSubjectType===Ye&&(P.notifSubjectIdentifier=String(this.instanceId));for(let pt of this.unitDetailTypeDef.typeDef.notifSubtypeDefs){let Vt=new u.NotificationSubtypeDto;Vt.parentNotifId=null,Vt.notifSubtypeDef=pt,Vt.status=oe,Vt.notifCreator=this.statefulService.profile.email,P.subNotifications.push(Vt)}this.notmanService.createOrUpdateNotification(P).subscribe(pt=>{this.unitDetailTypeDef.primaryNotifRecord=pt,this.showSeverityToggles&&this.updateNotificationSeverityStatus(),this.loader.stop()})}}updateNotification(P){if(null!=this.unitDetailTypeDef.primaryNotifRecord&&"ALL"!==this.unitDetailTypeDef.primaryNotifRecord.notifSubjectType&&this.unitDetailTypeDef.primaryNotifRecord.notifSubjectType!==Ge){if(!1===P.emailEnabled&&!1===P.smsEnabled){P.status=se;for(let z of this.unitDetailTypeDef.primaryNotifRecord.subNotifications)z.status=se;for(let z of this.unitDetailTypeDef.primaryNotifRecord.typeGroupSubNotifications)z.status=se}else if(P.status=oe,null!==this.unitDetailTypeDef.primaryNotifRecord.subNotifications&&this.unitDetailTypeDef.primaryNotifRecord.subNotifications.length>0){if(this.unitDetailTypeDef.primaryNotifRecord.subNotifications[0]&&this.unitDetailTypeDef.primaryNotifRecord.subNotifications[0].status===se&&this.unitDetailTypeDef.primaryNotifRecord.subNotifications[1].status===se&&this.unitDetailTypeDef.primaryNotifRecord.subNotifications[2].status===se)for(let z of this.unitDetailTypeDef.primaryNotifRecord.subNotifications)z.status=oe}else if(null!==this.unitDetailTypeDef.primaryNotifRecord.typeGroupSubNotifications&&this.unitDetailTypeDef.primaryNotifRecord.typeGroupSubNotifications.length>0&&this.unitDetailTypeDef.primaryNotifRecord.typeGroupSubNotifications[0]&&this.unitDetailTypeDef.primaryNotifRecord.typeGroupSubNotifications[0].status===se&&this.unitDetailTypeDef.primaryNotifRecord.typeGroupSubNotifications[1].status===se&&this.unitDetailTypeDef.primaryNotifRecord.typeGroupSubNotifications[2].status===se)for(let z of this.unitDetailTypeDef.primaryNotifRecord.typeGroupSubNotifications)z.status=oe;this.loader.start(!1),P.subNotifications=this.unitDetailTypeDef.primaryNotifRecord.subNotifications,this.notmanService.createOrUpdateNotification(P).subscribe(z=>{this.unitDetailTypeDef.primaryNotifRecord=z,this.showSeverityToggles&&this.updateNotificationSeverityStatus(),this.loader.stop()})}}updateNotificationSeverityStatus(){if(null!=this.unitDetailTypeDef.primaryNotifRecord.subNotifications&&this.unitDetailTypeDef.primaryNotifRecord.subNotifications.length>0)for(let P of this.unitDetailTypeDef.primaryNotifRecord.subNotifications)switch(P.notifSubtypeDef.notifSubtype){case"HIGH_SEVERITY":this.unitDetailTypeDef.notificationSeverityStatus.highSeverity=P.status===oe;break;case"MEDIUM_SEVERITY":this.unitDetailTypeDef.notificationSeverityStatus.mediumSeverity=P.status===oe;break;case"LOW_SEVERITY":this.unitDetailTypeDef.notificationSeverityStatus.lowSeverity=P.status===oe}}isContactSubscribed(P){return-1!==this.notificationSubscribers.findIndex(z=>
1z.contact.id===P)}get autoCompleteScroll(){return this.autoCompleteRefs.last.dropdownInner.nativeElement.scrollTop}canRemoveSubscriber(P){let z=this.findPrimaryNotificationRecord(this.notificationSubscribers.find(pt=>pt.contact.id===P.id).notificationRecords);return!("ALL"===z.origNotifSubjectType||"GROUP"===z.origNotifSubjectType||this.hasNotificationViewOnly)}removeSubscriber(P){let z=this.notificationSubscribers.find(Vt=>Vt.contact.id===P.id),pt=this.notmanService.notificationExplodedContentToNotificationDto(this.findPrimaryNotificationRecord(z.notificationRecords));"ALL"!==pt.notifSubjectType&&pt.notifSubjectType!==Ge&&(pt.emailEnabled=!1,pt.smsEnabled=!1,pt.subNotifications=this.findSubtypeNotificationRecords(z.notificationRecords).map(Vt=>this.notmanService.notificationExplodedContentToNotificationSubtypeDto(Vt)),this.updateDelegatedNotification(z,pt).then(()=>{this.loadSubscribersData()},()=>{}))}contactName(P,z){return P&&z?`${P.charAt(0).toUpperCase()+P.slice(1).toLowerCase()} ${z.charAt(0).toUpperCase()}${z.slice(1).toLowerCase()}`:""}stopPropagation(P){P.stopPropagation()}loadSubscribersData(){this.loadingSubscribers=!0;let P=new u.NotificationExplodedSearchRequest;P.content.notifTypeId=[this.unitDetailTypeDef.typeDef.notifTypeId],P.content.notifSubjectType=Ye,P.content.notifSubjectIdentifier=[String(this.instanceId)],P.content.combineGroupDupes=!0,P.content.accountId=this.statefulService.profile.accountId.toString(),this.notmanService.getNotificationSubscribers(P.content).subscribe(z=>{this.notificationSubscribersDisabled=z.filter(pt=>this.findPrimaryNotificationRecord(pt.notificationRecords).status===se),this.notificationSubscribers=z.filter(pt=>this.findPrimaryNotificationRecord(pt.notificationRecords).status===oe),this.notificationSubscribers.sort((pt,Vt)=>pt.contact.lastName>Vt.contact.lastName?1:-1),this.loadingSubscribers=!1})}addSubscribers(P,z){this.loader.start(!1),P.forEach(pt=>{let Vt=this.notificationSubscribersDisabled.find(Yt=>Yt.contact.id===pt.id);if(Vt){if(null!=Vt&&"ALL"!==Vt.notificationRecords[0].origNotifSubjectType&&Vt.notificationRecords[0].origNotifSubjectType!==Ge){let Yt=this.notmanService.notificationExplodedContentToNotificationDto(this.findPrimaryNotificationRecord(Vt.notificationRecords)),le=this.findSubtypeNotificationRecords(Vt.notificationRecords),ce=[];switch(le.forEach(re=>{ce.push(this.notmanService.notificationExplodedContentToNotificationSubtypeDto(re))}),Yt.status=oe,void 0!==z.notificationStatus?z.notificationStatus:z){case Ue:Yt.emailEnabled=!0,Yt.smsEnabled=!1;break;case rn:Yt.emailEnabled=!1,Yt.smsEnabled=!0;break;case Ln:Yt.emailEnabled=!0,Yt.smsEnabled=!0}null!=ce&&(null!==ce.find(re=>"LOW_SEVERITY"===re.notifSubtypeDef.notifSubtype)&&void 0!==ce.find(re=>"LOW_SEVERITY"===re.notifSubtypeDef.notifSubtype)&&(ce.find(re=>"LOW_SEVERITY"===re.notifSubtypeDef.notifSubtype).status=z.lowSeverity?"ON":"OFF"),null!==ce.find(re=>"MEDIUM_SEVERITY"===re.notifSubtypeDef.notifSubtype)&&void 0!==ce.find(re=>"MEDIUM_SEVERITY"===re.notifSubtypeDef.notifSubtype)&&(ce.find(re=>"MEDIUM_SEVERITY"===re.notifSubtypeDef.notifSubtype).status=z.mediumSeverity?"ON":"OFF"),null!==ce.find(re=>"HIGH_SEVERITY"===re.notifSubtypeDef.notifSubtype)&&void 0!==ce.find(re=>"HIGH_SEVERITY"===re.notifSubtypeDef.notifSubtype)&&(ce.find(re=>"HIGH_SEVERITY"===re.notifSubtypeDef.notifSubtype).status=z.highSeverity?"ON":"OFF")),Yt.subNotifications=ce,this.notmanService.createOrUpdateNotification(Yt).subscribe(re=>{this.loadSubscribersData()})}}else{let Yt=new u.NotificationDto;switch(void 0!==z.notificationStatus?z.notificationStatus:z){case Ue:Yt.emailEnabled=!0,Yt.smsEnabled=!1;break;case rn:Yt.emailEnabled=!1,Yt.smsEnabled=!0;break;case Ln:Yt.emailEnabled=!0,Yt.smsEnabled=!0}Yt.notifId=null,Yt.notifRecipientType=Ne,Yt.notifRecipientIdentifier=pt.id,Yt.notifSubjectType=Ne,Yt.notifCreator=this.statefulService.profile.email,Yt.status=oe,Yt.notifType=this.unitDetailTypeDef.typeDef,Yt.notifTypeGroupDef=Yt.notifType.notifTypeGroup,Yt.notifType.notifSubjectType===Ye&&(Yt.notifSubjectIdentifier=String(this.instanceId)),Yt.subNotifications=this.unitDetailTypeDef.typeDef.notifSubtypeDefs.map(le=>{let ce=new u.NotificationSubtypeDto;switch(ce.parentNotifId=null,ce.notifSubtypeDef=le,le.notifSubtype){case"HIGH_SEVERITY":ce.status=void 0!==z.notificationStatus&&z.highSeverity?oe:se;break;case"MEDIUM_SEVERITY":ce.status=void 0!==z.notificationStatus&&z.mediumSeverity?oe:se;break;case"LOW_SEVERITY":ce.status=void 0!==z.notificationStatus&&z.lowSeverity?oe:se}return ce.notifCreator=this.statefulService.profile.email,ce}),this.notmanService.createOrUpdateNotification(Yt).subscribe(le=>{this.loadSubscribersData()})}}),this.loader.stop()}addSubscribersFromGroup(P,z){this.loader.start(!1),this.groupsService.getFlattenedGroup(P.groupId).pipe((0,f.take)(1)).subscribe(pt=>{this.loader.start();let Vt=this.notificationSubscribers.map(le=>
1le.contact.id),Yt=pt.group.contacts.map(le=>pt.contactDetails[le.ebsContactId]);Yt=Yt.filter(le=>!(Vt.indexOf(le.id)>-1)),("Text"===z.notificationStatus||"Email & Text"===z.notificationStatus)&&(Yt=Yt.filter(le=>le.smsEnabled)),this.addSubscribers(Yt,z)})}get eventClass(){switch(this.unitDetailTypeDef.typeDef.notifTypeGroup.notifGrpType){case"SAFETY":default:return"fa-warning";case"PERFORMANCE":return"fa-tachometer"}}calcNotificationStatusText(P){return P.emailEnabled&&P.smsEnabled?Ln:P.emailEnabled&&!P.smsEnabled?Ue:!P.emailEnabled&&P.smsEnabled?rn:"Off"}emailEnabled(){return!0===this.unitDetailTypeDef?.primaryNotifRecord?.emailEnabled}smsEnabled(){return!0===this.unitDetailTypeDef?.primaryNotifRecord?.smsEnabled}static{this.\u0275fac=function(z){return new(z||H)(r.\u0275\u0275directiveInject(r.ChangeDetectorRef),r.\u0275\u0275directiveInject(I.NotmanService),r.\u0275\u0275directiveInject(vt.FleetGroupsService),r.\u0275\u0275directiveInject(C.ServicesService),r.\u0275\u0275directiveInject(ht.LoadingService),r.\u0275\u0275directiveInject(F.StatefulService))}}static{this.\u0275cmp=r.\u0275\u0275defineComponent({type:H,selectors:[["altecConnect-notification-management-row"]],viewQuery:function(z,pt){if(1&z&&r.\u0275\u0275viewQuery(Ot,5)(O.AutocompleteDropdownComponent,5),2&z){let Vt;r.\u0275\u0275queryRefresh(Vt=r.\u0275\u0275loadQuery())&&(pt.openSubscriberManageHeight=Vt.first),r.\u0275\u0275queryRefresh(Vt=r.\u0275\u0275loadQuery())&&(pt.autoCompleteRefs=Vt)}},inputs:{hasNotificationViewOnly:"hasNotificationViewOnly",hasMobileNumber:"hasMobileNumber",instanceId:"instanceId",accountIdForRelationships:"accountIdForRelationships",showSeverityToggles:"showSeverityToggles",unitDetailTypeDef:"unitDetailTypeDef",index:"index"},standalone:!1,decls:4,vars:4,consts:[["manageTemplate",""],["openSubscriberManageHeight",""],["manageToolTipContent",""],["tableContainer",""],["statusRow",""],["toolTipContent",""],["addIcon",""],[3,"isMobileView","breakPoint"],[1,"desktop-container"],[1,"buttons-container"],[1,"inline-title"],[1,"notification-label"],[1,"fa","event-type-icon",3,"ngClass"],[1,"toggles-container"],[1,"slider-container"],[1,"email-toggle"],[1,"fa","fa-envelope"],[1,"notification-switch"],[1,"all-icon-container"],[1,"text-toggle"],[1,"fa","fa-mobile","fa-2x"],[1,"severity-row","ms-3"],[4,"hasPrivilege"],[4,"ngTemplateOutlet"],["type","checkbox","id","notification-checkbox",3,"click","checked","disabled","gaEvent"],[1,"slider","round","notifications-on",3,"disabled-switch"],[1,"slider","round","notifications-off",3,"disabled-switch"],[1,"slider","round","notifications-on"],[1,"slider","round","notifications-off"],[1,"fa","fa-lg"],[1,"header-font","ms-3","severity-header"],[1,"toggle-row","ms-2"],[1,"fa","high",3,"ngClass"],[1,"toggle-container","ms-1",3,"click","gaEvent"],["hidden","","type","checkbox",3,"ngModel"],[1,"fa","medium","ms-3",3,"ngClass"],[1,"fa","low","ms-3",3,"ngClass"],[1,"ms-3"],["container","body","placement","top","triggers","mouseenter:mouseleave",1,"card-tooltip",3,"ngbTooltip"],[1,"fa","fa-edit",3,"click"],[1,"mobile-card"],[1,"fa","pe-1",3,"ngClass"],[1,"fa","fa-envelope","mt-1"],[1,"fa","fa-mobile","fa-2x","mt-1"],[1,"severity-row","mobile","mt-2"],[1,"pt-3"],[1,"header-font","severity-header"],[1,"toggle-row"],[1,"info-width"],[1,"clickable",3,"routerLink"],[1,"fa","fa-cog"],[1,"subscriber-container",3,"ngStyle"],[1,"mt-4","pb-4","d-grid"],[1,"btn-altec",3,"click"],[1,"flex-center-align"],[1,"no-margin"],[1,"margin-left-auto"],[1,"fa","fa-times","fa-lg",3,"click"],[1,"mt-2"],[1,"flex-center-align","mt-2",3,"hidden"],[1,"link","pointer",3,"click"],["class","link pointer ms-2 from-groups",3,"click",4,"hasPrivilege"],[1,"row","mt-1"],[1,"position-relative"],[1,"table-container",3,"scroll"],[1,"table","table-striped","table-responsive"],[1,""],[3,"hidden"],[1,"notification-status-row"],[1,"status-group"],[1,"notifications"],[1,"fa","fa-envelope","fa-envelope-manage"],[1,"fa","fa-mobile","fa-mobile-manage"],[1,"fa","fa-times","fa-times-manage"],[1,"severities"],[1,"margin-left-auto","delete-icon","text-end"],[1,"fa","fa-warning","high"],[1,"fa"],[1,"ms-2"],[1,"fa","fa-warning","medium"],[1,"fa","fa-warning","low"],[1,"edit-subscriber-container",3,"ngStyle"],[3,"cancel","save","hasNotificationViewOnl
1y","allowSelectOff","initialSetup","showSeverities","title","smsOptionEnabled","gaEvent"],[1,"fa","fa-edit","edit-disabled"],["aria-hidden","true",1,"fa","fa-times-circle","fa-lg","cursor-pointer",3,"gaEvent"],["aria-hidden","true",1,"fa","fa-times-circle","fa-lg","disabled"],["aria-hidden","true",1,"fa","fa-times-circle","fa-lg","cursor-pointer",3,"click","gaEvent"],[1,"fa","fa-times-circle","fa-lg","delete-icon-disabled"],[1,"table-loading"],[1,"fleet-table","mt-2",3,"hidden"],[1,"fleet-row"],[1,"row"],[1,"col-12","position-static"],[1,"refNum"],[1,"notification-status-row","ms-2"],[1,"margin-left-auto","delete-icon"],[1,"col-12"],[1,"table-loading",3,"mb-1"],[1,"link","pointer","ms-2","from-groups",3,"click"],[1,"ps-2"],[1,"col-sm-9","col-12"],[3,"searchChange","bottomButtonPressed","placeholder","selectMessage","searchTip","resultsLength","loading","autoCompleteOn","bottomButtonActive","bottomButtonText"],[1,"fleet-table"],[1,"fleet-row",3,"hidden"],[1,"col-sm-2","col-12"],[1,"d-block","d-sm-none"],[1,"d-grid"],[1,"fleet-row",3,"click","hidden"],[1,"ps-3","me-3"],[1,"add-user"],["aria-hidden","true",1,"fa","fa-lg","fa-plus","add-icon","pointer",3,"click"],[3,"cancel","save","hasNotificationViewOnly","initialSetup","showSeverities","title","smsOptionEnabled","gaEvent"],["aria-hidden","true",1,"fa","fa-lg","me-1","fa-minus","remove-icon","pointer",3,"gaEvent"],["aria-hidden","true",1,"fa","fa-lg","me-1","fa-minus","remove-icon-disabled"],["aria-hidden","true",1,"fa","fa-lg","me-1","fa-minus","remove-icon","pointer",3,"click","gaEvent"],["aria-hidden","true",1,"fa","fa-lg","me-1","fa-minus","remove-icon-disabled",3,"click"],[1,"col-5"],[1,"equipment-font"],[1,"col-6"],[1,"col-11"],[3,"bottomButtonPressed","searchChange","bottomButtonActive","bottomButtonText","placeholder","selectMessage","resultsLength","loading","stopPropogation"],[1,"flex-center-align","pt-2","pb-2"],[1,"add-user","ms-3","me-4"],[1,"group-label"],[3,"cancel","save","hasNotificationViewOnly","smsOptionEnabled","initialSetup","showSeverities","title","gaEvent"]],template:function(z,pt){1&z&&r.\u0275\u0275template(0,E,31,17,"ng-template",7)(1,ut,24,12,"ng-template",7)(2,Ui,4,4,"ng-template",null,0,r.\u0275\u0275templateRefExtractor),2&z&&(r.\u0275\u0275property("isMobileView",!1)("breakPoint",pt.tabletBreakpoint),r.\u0275\u0275advance(),r.\u0275\u0275property("isMobileView",!0)("breakPoint",pt.tabletBreakpoint))},dependencies:[ct.NgClass,ct.NgTemplateOutlet,ct.NgStyle,at.GaEventDirective,rt.AutocompleteDropdownComponent,X.NotificationsEditControlComponent,gt.CheckboxControlValueAccessor,gt.NgControlStatus,gt.NgModel,mt.RouterLink,St.HasPrivilegeDirective,ft.SelectiveView,ot.NgbTooltip,B.PhoneNumberPipe],styles:['.table[_ngcontent-%COMP%]{margin-bottom:15px}td[_ngcontent-%COMP%]{border-top:0!important;padding:15px 8px!important;vertical-align:middle!important}th[_ngcontent-%COMP%]{border-bottom:0!important;position:sticky;top:0;z-index:1;background:#fff}.table-container[_ngcontent-%COMP%]{overflow-y:auto}@media(min-width:768px){.table-container[_ngcontent-%COMP%]{height:260px}}@media(max-width:767px){.table-container[_ngcontent-%COMP%]{height:400px}}[_ngcontent-%COMP%]:root{--bs-gutter-x: 1.5rem;--bs-gutter-y: 1.5rem}.d-flex[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{float:none}.col[_ngcontent-%COMP%]{flex:1 0 0;padding-left:var(--bs-gutter-x, 1.5rem);padding-right:var(--bs-gutter-x, 1.5rem)}@media only screen and (min-width:576px){.col-sm-auto[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;max-width:none}}@media only screen and (min-width:768px){.col-md-auto[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;max-width:none}}.col-auto[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;max-width:100%;padding-left:var(--bs-gutter-x, 1.5rem);padding-right:var(--bs-gutter-x, 1.5rem)}.justify-content-center[_ngcontent-%COMP%]{justify-content:center}.justify-content-end[_ngcontent-%COMP%]{justify-content:end}.align-items-center[_ngcontent-%COMP%]{align-items:center}.align-items-end[_ngcontent-%COMP%]{align-items:end}.flex-column-reverse[_ngcontent-%COMP%]{flex-direction:column-reverse}.d-flex[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}@media only screen and (min-width:768px){.d-md-block[_ngcontent-%COMP%]{display:block}}@media only screen and (min-width:768px){.d-md-none[_ngcontent-%COMP%]{display:none}}@media only screen and (min-width:768px){.d-md-flex[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}}@media only screen and (min-width:992px){.d-lg-none[_ngcontent-%COMP%]{display:none!important}}@media only screen and (min-width:992px){.d-lg-block[_ngcontent-%COMP%]{display:block!important}}.w-100[_ngcontent-%COMP%]{width:100%!important}.h-100[_ngcontent-%COMP%]{height:100%!important}.px-3[_ngcontent-%COMP%]{padding-left:15px!important;padding-right:15px!important}.pr-0[_ngcontent-%COMP%]{padding-right:0!important}.pl-0[_ngcontent-%COMP%]{padding-left:0!important}.pt-3[_ngcontent-%COMP%]{padding-top:1rem}.pb-3[_ngcontent-%COMP%]{padding-bottom:1rem}.mb-3[_ngcontent-%COMP%]{margin-bottom:1rem}.pb-2[_ngcontent-%COMP%]{padding-bottom:.5rem}@media print{.no-print[_ngcontent-%COMP%]{display:none!important}}.m-0[_ngcontent-%COMP%]{margin:0!important}.mt-0[_ngcontent-%COMP%]{margin-top:0!important}.mb-0[_ngcontent-%COMP%]{margin-bottom:0!important}.ms-0[_ngcontent-%COMP%]{margin-left:0!important}.me-0[_ngcontent-%COMP%]{margin-right:0!important}.mx-0[_ngcontent-%COMP%]{margin-left:0!important;margin-right:0!important}.my-0[_ngcontent-%COMP%]{margin-top:0!important;margin-bottom:0!important}.p-0[_ngcontent-%COMP%]{padding:0!important}.pt-0[_ngcontent-%COMP%]{padding-top:0!important}.pb-0[_ngcontent-%COMP%]{padding-bottom:0!important}.ps-0[_ngcontent-%COMP%]{padding-left:0!important}.pe-0[_ngcontent-%COMP%]{padding-right:0!important}.px-0[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.py-0[_ngcontent-%COMP%]{padding-top:0!important;padding-bottom:0!important}.m-1[_ngcontent-%COMP%]{margin:.25rem!important}.mt-1[_ngcontent-%COMP%]{margin-top:.25rem!important}.mb-1[_ngcontent-%COMP%]{margin-bottom:.25rem!important}.ms-1[_ngcontent-%COMP%]{margin-left:.25rem!important}.me-1[_ngcontent-%COMP%]{margin-right:.25rem!important}.mx-1[_ngcontent-%COMP%]{margin-left:.25rem!important;margin-right:.25rem!important}.my-1[_ngcontent-%COMP%]{margin-top:.25rem!important;margin-bottom:.25rem!important}.p-1[_ngcontent-%COMP%]{padding:.25rem!important}.pt-1[_ngcontent-%COMP%]{padding-top:.25rem!important}.pb-1[_ngcontent-%COMP%]{padding-bottom:.25rem!important}.ps-1[_ngcontent-%COMP%]{padding-left:.25rem!important}.pe-1[_ngcontent-%COMP%]{padding-right:.25rem!important}.px-1[_ngcontent-%COMP%]{padding-left:.25rem!important;padding-right:.25rem!important}.py-1[_ngcontent-%COMP%]{padding-top:.25rem!important;padding-bottom:.25rem!important}.m-2[_ngcontent-%COMP%]{margin:.5rem!important}.mt-2[_ngcontent-%COMP%]{margin-top:.5rem!important}.mb-2[_ngcontent-%COMP%]{margin-bottom:.5rem!important}.ms-2[_ngcontent-%COMP%]{margin-left:.5rem!important}.me-2[_ngcontent-%COMP%]{margin-right:.5rem!important}.mx-2[_ngcontent-%COMP%]{margin-left:.5rem!important;margin-right:.5rem!important}.my-2[_ngcontent-%COMP%]{margin-top:.5rem!important;margin-bottom:.5rem!important}.p-2[_ngcontent-%COMP%]{padding:.5rem!important}.pt-2[_ngcontent-%COMP%]{padding-top:.5rem!important}.pb-2[_ngcontent-%COMP%]{padding-bottom:.5rem!important}.ps-2[_ngcontent-%COMP%]{padding-left:.5rem!important}
1.pe-2[_ngcontent-%COMP%]{padding-right:.5rem!important}.px-2[_ngcontent-%COMP%]{padding-left:.5rem!important;padding-right:.5rem!important}.py-2[_ngcontent-%COMP%]{padding-top:.5rem!important;padding-bottom:.5rem!important}.m-3[_ngcontent-%COMP%]{margin:1rem!important}.mt-3[_ngcontent-%COMP%]{margin-top:1rem!important}.mb-3[_ngcontent-%COMP%]{margin-bottom:1rem!important}.ms-3[_ngcontent-%COMP%]{margin-left:1rem!important}.me-3[_ngcontent-%COMP%]{margin-right:1rem!important}.mx-3[_ngcontent-%COMP%]{margin-left:1rem!important;margin-right:1rem!important}.my-3[_ngcontent-%COMP%]{margin-top:1rem!important;margin-bottom:1rem!important}.p-3[_ngcontent-%COMP%]{padding:1rem!important}.pt-3[_ngcontent-%COMP%]{padding-top:1rem!important}.pb-3[_ngcontent-%COMP%]{padding-bottom:1rem!important}.ps-3[_ngcontent-%COMP%]{padding-left:1rem!important}.pe-3[_ngcontent-%COMP%]{padding-right:1rem!important}.px-3[_ngcontent-%COMP%]{padding-left:1rem!important;padding-right:1rem!important}.py-3[_ngcontent-%COMP%]{padding-top:1rem!important;padding-bottom:1rem!important}.m-4[_ngcontent-%COMP%]{margin:1.5rem!important}.mt-4[_ngcontent-%COMP%]{margin-top:1.5rem!important}.mb-4[_ngcontent-%COMP%]{margin-bottom:1.5rem!important}.ms-4[_ngcontent-%COMP%]{margin-left:1.5rem!important}.me-4[_ngcontent-%COMP%]{margin-right:1.5rem!important}.mx-4[_ngcontent-%COMP%]{margin-left:1.5rem!important;margin-right:1.5rem!important}.my-4[_ngcontent-%COMP%]{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.p-4[_ngcontent-%COMP%]{padding:1.5rem!important}.pt-4[_ngcontent-%COMP%]{padding-top:1.5rem!important}.pb-4[_ngcontent-%COMP%]{padding-bottom:1.5rem!important}.ps-4[_ngcontent-%COMP%]{padding-left:1.5rem!important}.pe-4[_ngcontent-%COMP%]{padding-right:1.5rem!important}.px-4[_ngcontent-%COMP%]{padding-left:1.5rem!important;padding-right:1.5rem!important}.py-4[_ngcontent-%COMP%]{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.m-5[_ngcontent-%COMP%]{margin:3rem!important}.mt-5[_ngcontent-%COMP%]{margin-top:3rem!important}.mb-5[_ngcontent-%COMP%]{margin-bottom:3rem!important}.ms-5[_ngcontent-%COMP%]{margin-left:3rem!important}.me-5[_ngcontent-%COMP%]{margin-right:3rem!important}.mx-5[_ngcontent-%COMP%]{margin-left:3rem!important;margin-right:3rem!important}.my-5[_ngcontent-%COMP%]{margin-top:3rem!important;margin-bottom:3rem!important}.p-5[_ngcontent-%COMP%]{padding:3rem!important}.pt-5[_ngcontent-%COMP%]{padding-top:3rem!important}.pb-5[_ngcontent-%COMP%]{padding-bottom:3rem!important}.ps-5[_ngcontent-%COMP%]{padding-left:3rem!important}.pe-5[_ngcontent-%COMP%]{padding-right:3rem!important}.px-5[_ngcontent-%COMP%]{padding-left:3rem!important;padding-right:3rem!important}.py-5[_ngcontent-%COMP%]{padding-top:3rem!important;padding-bottom:3rem!important}.slider-container[_ngcontent-%COMP%]{display:flex;align-items:center}.notification-switch[_ngcontent-%COMP%]{position:relative;display:inline-block;width:40px;height:20px;margin-bottom:0}.notification-switch[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{opacity:0;width:0;height:0}.slider[_ngcontent-%COMP%]{position:absolute;cursor:pointer;inset:0;background-color:#ccc;transition:.4s;font-size:small}.slider[_ngcontent-%COMP%]:before{position:absolute;content:"";height:15px;width:15px;margin-top:2px;margin-bottom:2px;background-color:#fff;transition:.4s}input[_ngcontent-%COMP%]:checked + .slider[_ngcontent-%COMP%]{background-color:#efb310;color:#fff}input[_ngcontent-%COMP%] + .slider.disabled-switch[_ngcontent-%COMP%]{cursor:not-allowed}input[_ngcontent-%COMP%]:checked + .slider.disabled-switch[_ngcontent-%COMP%]{background-color:#ffd86d!important}input[_ngcontent-%COMP%]:checked + .slider[_ngcontent-%COMP%]:before{transform:translate(25px)}.slider.round[_ngcontent-%COMP%]{border-radius:10px}.slider.round[_ngcontent-%COMP%]:before{border-radius:70%}@media(max-width:812px){.notifications-info[_ngcontent-%COMP%]{font-style:italic}.event-notification-container[_ngcontent-%COMP%]{display:block}.notifications-bar[_ngcontent-%COMP%]{display:none}.severity-row[_ngcontent-%COMP%]{margin-left:calc(var(--bs-gutter-x, 1.5rem) * -2);font-size:small}}.notifications-off[_ngcontent-%COMP%]{color:#a9a9a9}.notifications-container[_ngcontent-%COMP%]{display:flex}
1.notifications-bar[_ngcontent-%COMP%]{background-color:#efb310;width:2px;height:60px;margin-left:calc(var(--bs-gutter-x, 1.5rem) * .667);margin-top:0}.buttons-container[_ngcontent-%COMP%]{display:flex;align-items:stretch;justify-content:space-between;position:relative}.alternate-row[_ngcontent-%COMP%]{background-color:#f9f9f9}.severity-row[_ngcontent-%COMP%]{display:flex;align-items:center;min-width:375px}.severity-row.severity-border[_ngcontent-%COMP%]{border-left:solid 2px #EFB310}.severity-row.mobile[_ngcontent-%COMP%]{border-left:none;margin-left:0;flex-wrap:wrap;min-width:unset}.severity-header[_ngcontent-%COMP%]{font-weight:700}.toggle-row[_ngcontent-%COMP%]{display:flex;align-items:center}.toggle-row[_ngcontent-%COMP%] .fa-warning[_ngcontent-%COMP%]{padding-top:1%;margin-right:3px}.toggle-row[_ngcontent-%COMP%] .fa-tachometer[_ngcontent-%COMP%]{margin-right:3px}@media(min-width:410px){.toggle-row[_ngcontent-%COMP%]{margin-left:calc(var(--bs-gutter-x, 1.5rem) * .667)}}.toggle-container[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;height:fit-content;width:fit-content;text-align:center}.toggle-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{visibility:hidden;width:0;height:0;margin:0}.toggle-container[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{position:relative;display:inline-block;width:30px;height:16px;background-color:#d7d8da;border-radius:15px;transition:background .15s linear;cursor:pointer;margin-bottom:0}.toggle-container[_ngcontent-%COMP%] label[_ngcontent-%COMP%]:after{content:"";position:absolute;left:6%;top:6.5%;width:14px;height:14px;border-radius:50%;background-color:#fff;transition:left .15s ease-out}.toggle-container[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]:checked ~ label[_ngcontent-%COMP%]{background-color:#efb310}.toggle-container[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]:checked ~ label[_ngcontent-%COMP%]:after{left:15px}.toggle-container.disabled-toggle[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%] ~ label[_ngcontent-%COMP%]{cursor:not-allowed}.toggle-container.disabled-toggle[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]:checked ~ label[_ngcontent-%COMP%]{background-color:#ffd86d!important}.toggle-container.disabled-toggle[_ngcontent-%COMP%] label[_ngcontent-%COMP%]:after{background-color:#fafafa!important}.subscriber-container[_ngcontent-%COMP%]{position:absolute;border:2px solid #EFB310;border-radius:5px;transition:all .2s;height:36px;width:168.58px;visibility:hidden;padding:var(--bs-gutter-x, 1.5rem)}.subscriber-container[_ngcontent-%COMP%] .fa-times[_ngcontent-%COMP%]{color:#a4a3a3;cursor:pointer}.subscriber-container[_ngcontent-%COMP%] .fa-times[_ngcontent-%COMP%]:hover{color:#262626}@media(min-width:768px){.subscriber-container[_ngcontent-%COMP%]{right:0}}.subscriber-container.active[_ngcontent-%COMP%]{width:100%;box-shadow:0 5px 25px #000;box-shadow:0 5px 25px #000000b3;background:#fff;visibility:visible;z-index:99;transition:all .5s}@media(min-width:768px){.subscriber-container.active[_ngcontent-%COMP%]{height:380px}}@media(max-width:767px){.subscriber-container.active[_ngcontent-%COMP%]{height:fit-content}}.no-margin[_ngcontent-%COMP%]{margin:0}.width-fit-content[_ngcontent-%COMP%]{width:fit-content}.notification-select[_ngcontent-%COMP%]{height:fit-content;width:100%!important;cursor:pointer;border:1px solid #ccc}.notification-select[_ngcontent-%COMP%]:focus{border-color:#66afe9;outline:0;box-shadow:inset 0 1px 1px #00000013,0 0 8px #66afe999}.notification-select[_ngcontent-%COMP%]{border-radius:2px}.delete-icon[_ngcontent-%COMP%]{width:fit-content;color:#a94442;padding:var(--bs-gutter-x, 1.5rem)}.delete-icon-disabled[_ngcontent-%COMP%]{color:#707070!important;cursor:default!important}.from-groups[_ngcontent-%COMP%]{border-left:2px solid #E6E6E6}.add-icon[_ngcontent-%COMP%]{color:green}.remove-icon[_ngcontent-%COMP%]{color:#a94442}.remove-icon-disabled[_ngcontent-%COMP%]{color:#707070!important;cursor:not-allowed!important}.position-static[_ngcontent-%COMP%]{position:static!important}.control-container[_ngcontent-%COMP%]{position:absolute;border:1px solid #707070;background-color:#fff;border-radius:3px;box-shadow:0 8px 20px #000;box-shadow:0 8px 20px #00000059;overflow-x:hidden;overflow-y:hidden;margin:0;padding:0;outline:0;z-index:100;width:max-content;font-weight:400}.control-container[_ngcontent-%COMP%] .notification-select[_ngcontent-%COMP%]{width:100%!important}.control-button-wrapper[_ngcontent-%COMP%]{display:flex;border-top:1px solid #707070;font-weight:500}.control-body[_ngcontent-%COMP%]{max-height:200px;overflow-y:auto;padding:5px calc(var(--bs-gutter-x, 1.5rem) * .667) calc(var(--bs-gutter-x, 1.5rem) * .667) calc(var(--bs-gutter-x, 1.5rem) * .667)}.control-button[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;padding:5px calc(var(--bs-gutter-x, 1.5rem) * .667) 5px calc(var(--bs-gutter-x, 1.5rem) * .667);font-size:15px}.cancel-button[_ngcontent-%COMP%]{background-color:#eee}.cancel-button[_ngcontent-%COMP%]:hover, .cancel-button[_ngcontent-%COMP%]:focus{background:#ddd;cursor:pointer}.cancel-button[_ngcontent-%COMP%]{width:50%}.add-button[_ngcontent-%COMP%]{background-color:#efb310;color:#fff}.add-button[_ngcontent-%COMP%]:hover, .add-button[_ngcontent-%COMP%]:focus{background:#d7a10f;cursor:pointer}.add-button[_ngcontent-%COMP%]{width:50%}.add-user[_ngcontent-%COMP%]{border:1px solid transparent}.add-user.active[_ngcontent-%COMP%]{border-color:#66afe9;outline:0;box-shadow:inset 0 1px 1px #00000013,0 0 8px #66afe999}.notification-status-row[_ngcontent-%COMP%]{display:flex;align-items:center;width:fit-content;border:1px solid transparent}.status-group[_ngcontent-%COMP%]{min-width:110px}.severities[_ngcontent-%COMP%]{padding-top:2px;display:flex;align-items:center;border-top:1px solid #E6E6E6}.severities[_ngcontent-%COMP%] .fa-check[_ngcontent-%COMP%]{color:#efb310}.severities[_ngcontent-%COMP%] .fa-times[_ngcontent-%COMP%]{color:#b8b8b8;margin-left:2px}.high[_ngcontent-%COMP%]{color:#c8102e}
1.medium[_ngcontent-%COMP%]{color:#ff8200}.low[_ngcontent-%COMP%]{color:#ffd100}.fa-edit[_ngcontent-%COMP%]{color:#337ab7;cursor:pointer;margin-left:var(--bs-gutter-x, 1.5rem);font-weight:600}.edit-active[_ngcontent-%COMP%]{border-color:#66afe9!important;outline:0;box-shadow:inset 0 1px 1px #00000013,0 0 8px #66afe999}.edit-disabled[_ngcontent-%COMP%]{color:#707070;cursor:default}.edit-subscriber-container[_ngcontent-%COMP%]{left:3%;top:40%;position:absolute;z-index:999}input[type=checkbox][_ngcontent-%COMP%]{cursor:pointer}.severity-check[_ngcontent-%COMP%]{display:flex;align-items:center}.severity-check[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{margin:0}.fa-envelope-manage[_ngcontent-%COMP%], .fa-mobile-manage[_ngcontent-%COMP%], .fa-times-manage[_ngcontent-%COMP%]{font-size:15px;margin-right:5px}.disabled[_ngcontent-%COMP%]{cursor:not-allowed!important}.all-icon-container[_ngcontent-%COMP%]{display:inline-block}.all-icon-container[_ngcontent-%COMP%] .fa-check[_ngcontent-%COMP%]{color:#efb310}.all-icon-container[_ngcontent-%COMP%] .fa-times[_ngcontent-%COMP%]{color:#b8b8b8;margin-left:2px}.inline-title[_ngcontent-%COMP%]{display:flex;align-items:center;margin-right:16px;width:200px}.toggles-container[_ngcontent-%COMP%]{display:flex}.notification-label[_ngcontent-%COMP%]{position:absolute;top:-40px}.mobile-card[_ngcontent-%COMP%]{margin-left:calc(var(--bs-gutter-x, 1.5rem) * -1);margin-right:calc(var(--bs-gutter-x, 1.5rem) * -1);padding:var(--bs-gutter-x, 1.5rem) var(--bs-gutter-x, 1.5rem) 0px;border-top:solid 1px #dddddd}.mobile-card.first[_ngcontent-%COMP%]{border-top:none}.desktop-container[_ngcontent-%COMP%]{border-bottom:solid 2px #dddddd;padding:8px}.desktop-container.first[_ngcontent-%COMP%]{margin-top:40px}.event-type-icon[_ngcontent-%COMP%]{position:absolute;top:40%;left:220px}@media(max-width:1199px){.inline-title[_ngcontent-%COMP%]{width:120px}.event-type-icon[_ngcontent-%COMP%]{left:140px}}']})}}return H})()},13960(Ht,T,d){"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.NotificationsTabContentComponent=void 0;const S=d(31635),N=d(8347),b=(d(27575),d(91898),d(7901),d(43481)),g=d(59091),D=(d(97377),S.__importStar(d(49849))),f=S.__importStar(d(27575)),v=S.__importStar(d(91898)),p=S.__importStar(d(7901)),J=S.__importStar(d(97377)),lt=S.__importStar(d(27175)),r=S.__importStar(d(84341)),I=S.__importStar(d(83775));function vt(mt,St){1&mt&&(D.\u0275\u0275elementStart(0,"div",1)(1,"div",2),D.\u0275\u0275element(2,"span")(3,"span")(4,"span"),D.\u0275\u0275elementEnd()())}function C(mt,St){if(1&mt&&D.\u0275\u0275element(0,"altecConnect-notification-management-row",11),2&mt){const ft=St.$implicit,ot=St.$index,B=D.\u0275\u0275nextContext(2);D.\u0275\u0275property("instanceId",B.instanceId)("accountIdForRelationships",B.accountIdForRelationships)("hasMobileNumber",B.hasMobileNumber)("hasNotificationViewOnly",B.hasNotificationViewOnly)("showSeverityToggles",null!==(null==ft?null:ft.typeDef.notifSubtypeDefs)&&(null==ft?null:ft.typeDef.notifSubtypeDefs.length)>0)("unitDetailTypeDef",ft)("index",ot)}}function ht(mt,St){if(1&mt){const ft=D.\u0275\u0275getCurrentView();D.\u0275\u0275elementStart(0,"div",3)(1,"div",4)(2,"div")(3,"div",5)(4,"app-dropdown-filter-container",6),D.\u0275\u0275listener("filtersApplied",function(){D.\u0275\u0275restoreView(ft);const B=D.\u0275\u0275reference(8),Ot=D.\u0275\u0275nextContext();return D.\u0275\u0275resetView(Ot.applyFilter(B.value))})("filtersCleared",function(){D.\u0275\u0275restoreView(ft);const B=D.\u0275\u0275nextContext();return D.\u0275\u0275resetView(B.clearFilters())}),D.\u0275\u0275elementStart(5,"label"),D.\u0275\u0275text(6,"Event Category"),D.\u0275\u0275elementEnd(),D.\u0275\u0275elementStart(7,"select",7,0)(9,"option",8),D.\u0275\u0275text(10,"Show All"),D.\u0275\u0275elementEnd(),D.\u0275\u0275elementStart(11,"option",9),D.\u0275\u0275text(12,"Safety"),D.\u0275\u0275elementEnd(),D.\u0275\u0275elementStart(13,"option",10),D.\u0275\u0275text(14,"Performance"),D.\u0275\u0275elementEnd()()()()()()(),D.\u0275\u0275repeaterCreate(15,C,1,7,"altecConnect-notification-management-row",11,D.\u0275\u0275repeaterTrackByIdentity)}
1if(2&mt){const ft=D.\u0275\u0275nextContext();D.\u0275\u0275advance(4),D.\u0275\u0275property("appliedFilterCount",""!==ft.eventCategoryFilter?1:0),D.\u0275\u0275advance(11),D.\u0275\u0275repeater(ft.getNotifTypeMappings())}}const rt="ON";T.NotificationsTabContentComponent=(()=>{class mt{constructor(ft,ot,B,Ot){this.notmanService=ft,this.privilegeService=ot,this.route=B,this.statefulService=Ot,this.notifTypeMappings=[],this.eventCategoryFilter="",this.loading=!0,this.dummyNotifTypes=[{id:null,notifSubjectType:"instanceId",notifType:"ESLP",notifTypeDisplayName:"Electronic Side Load Protection",notifTypeGroup:{id:null,notifGrpDisplayName:"Performance",notifGrpId:2,notifGrpType:"PERFORMANCE"},notifTypeId:4},{id:null,notifSubjectType:"instanceId",notifType:"ANGLE",notifTypeDisplayName:"Setup Angle",notifTypeGroup:{id:null,notifGrpDisplayName:"Performance",notifGrpId:2,notifGrpType:"PERFORMANCE"},notifTypeId:4}]}ngAfterViewInit(){if(this.hasNotificationViewOnly=this.statefulService.hasPrivilege("Demo_Only_Notifications"),this.instanceId&&this.privilegeService.hasPrivilege("B2B_View_APNs")){let ft=new N.NotifSettingsStructureRequest;ft.accountIds=[Number(this.accountIdForRelationships)],ft.instanceIds=[this.instanceId],this.notmanService.getUnitDetailNotifTypeDefs(ft).pipe((0,b.take)(1),(0,b.switchMap)(ot=>{for(let B of ot)this.notifTypeMappings.push(new N.UnitDetailTypeDef(B));return this.route.data.pipe((0,b.take)(1))}),(0,b.switchMap)(ot=>{this.hasMobileNumber=ot.hasSmsContact;let B=[];for(let Ot of this.notifTypeMappings.map($=>$.typeDef)){let $=new N.NotificationExplodedSearchRequestContent;$.notifSubjectType="instanceId",$.notifSubjectIdentifier=[String(this.instanceId)],$.recipientContactId=[this.statefulService.profile.contactId],$.accountId=this.statefulService.profile.accountId.toString(),$.combineGroupDupes=!0,$.notifTypeId=[Ot.notifTypeId],B.push(this.notmanService.findHighestPriorityNotifications($).pipe((0,b.take)(1)))}return B.length>0?(0,g.forkJoin)(B):(0,g.of)(null)})).subscribe(ot=>{if(null!==ot&&ot.length>0)for(let B of this.notifTypeMappings){let Ot=ot.find($=>void 0!==$[0]&&null!==$[0].notifTypeDef&&$[0].notifTypeDef.notifTypeId===B.typeDef.notifTypeId);if(void 0!==Ot)B.primaryNotifRecord=this.notmanService.notificationExplodedContentToNotificationDto(Ot.find($=>!$.notifSubtypeDef)),B.primaryNotifRecord.subNotifications=Ot.filter($=>null!=$.notifSubtypeDef).map($=>this.notmanService.notificationExplodedContentToNotificationSubtypeDto($)),"ALL"===B.primaryNotifRecord.notifSubjectType&&(B.disabled=!0),B.notificationSeverityStatus.lowSeverity=B.primaryNotifRecord.subNotifications.find($=>"LOW_SEVERITY"===$.notifSubtypeDef.notifSubtype)?.status===rt,B.notificationSeverityStatus.mediumSeverity=B.primaryNotifRecord.subNotifications.find($=>"MEDIUM_SEVERITY"===$.notifSubtypeDef.notifSubtype)?.status===rt,B.notificationSeverityStatus.highSeverity=B.primaryNotifRecord.subNotifications.find($=>"HIGH_SEVERITY"===$.notifSubtypeDef.notifSubtype)?.status===rt;else{let $=ot.find(j=>void 0!==j[0]&&null===j[0].notifTypeDef&&null!==j[0].notifTypeGroupDef&&j[0].notifTypeGroupDef.notifGrpId===B.typeDef.notifTypeGroup.notifGrpId);void 0!==$&&(B.primaryNotifRecord=this.notmanService.notificationExplodedContentToNotificationDto($.find(j=>null===j.notifTypeGrpSubtypeDef)),B.primaryNotifRecord.typeGroupSubNotifications=$.filter(j=>null!==j.notifTypeGrpSubtypeDef).map(j=>this.notmanService.notificationExplodedContentToNotifTypeGroupSubtypeDto(j)),B.disabled=!0),B.notificationSeverityStatus.lowSeverity=B.primaryNotifRecord.typeGroupSubNotifications.find(j=>"LOW_SEVERITY"===j.notifTypeGrpSubtypeDef.typeGrpSubtypeDef)?.status===rt,B.notificationSeverityStatus.mediumSeverity=B.primaryNotifRecord.typeGroupSubNotifications.find(j=>"MEDIUM_SEVERITY"===j.notifTypeGrpSubtypeDef.typeGrpSubtypeDef)?.status===rt,B.notificationSeverityStatus.highSeverity=B.primaryNotifRecord.typeGroupSubNotifications.find(j=>"HIGH_SEVERITY"===j.notifTypeGrpSubtypeDef.typeGrpSubtypeDef)?.status===rt}}this.loading=!1})}}applyFilter(ft){this.eventCategoryFilter=ft}clearFilters(){this.eventCategoryFilter=""}getNotifTypeMappings(){return""===this.eventCategoryFilter?this.notifTypeMappings:this.notifTypeMappings.filter(ft=>ft.typeDef.notifTypeGroup.notifGrpType.toLocaleLowerCase()===this.eventCategoryFilter)}static{this.\u0275fac=function(ot){return new(ot||mt)(D.\u0275\u0275directiveInject(f.NotmanService),D.\u0275\u0275directiveInject(v.PrivilegeService),D.\u0275\u0275directiveInject(p.ActivatedRoute),D.\u
10275\u0275directiveInject(J.StatefulService))}}static{this.\u0275cmp=D.\u0275\u0275defineComponent({type:mt,selectors:[["altecConnect-notifications-tab-content"]],inputs:{accountIdForRelationships:"accountIdForRelationships",instanceId:"instanceId",telematicsData:"telematicsData"},standalone:!1,decls:2,vars:2,consts:[["optionSelect",""],[1,"dot-loader-container"],[1,"dot-loader"],[1,"row"],[1,"col-12"],[1,"pull-left-filter"],[3,"filtersApplied","filtersCleared","appliedFilterCount"],[1,"form-control","form-control-sm"],["value",""],["value","safety"],["value","performance"],[3,"instanceId","accountIdForRelationships","hasMobileNumber","hasNotificationViewOnly","showSeverityToggles","unitDetailTypeDef","index"]],template:function(ot,B){1&ot&&(D.\u0275\u0275conditionalCreate(0,vt,5,0,"div",1),D.\u0275\u0275conditionalCreate(1,ht,17,1)),2&ot&&(D.\u0275\u0275conditional(B.loading?0:-1),D.\u0275\u0275advance(),D.\u0275\u0275conditional(B.loading?-1:1))},dependencies:[lt.DropdownFilterContainerComponent,r.NgSelectOption,r.\u0275NgSelectMultipleOption,I.NotificationManagementRowComponent],styles:[".dot-loader-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;margin-top:75px}@media(min-width:800px){.pull-left-filter[_ngcontent-%COMP%]{float:left!important}}"]})}}return mt})()},18985(Ht,T,d){"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.PdiDownloadModalComponent=void 0;const S=d(31635),u=(d(49849),d(6324),S.__importStar(d(49849))),o=S.__importStar(d(6324)),b=S.__importStar(d(22850));function g(lt,r){1<&&(u.\u0275\u0275elementContainerStart(0),u.\u0275\u0275elementStart(1,"span"),u.\u0275\u0275text(2," (400 x 250)"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementContainerEnd())}function h(lt,r){1<&&(u.\u0275\u0275elementContainerStart(0),u.\u0275\u0275elementStart(1,"div"),u.\u0275\u0275text(2,"(400 x 250)"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementContainerEnd())}function D(lt,r){if(1<&&(u.\u0275\u0275elementContainerStart(0),u.\u0275\u0275elementStart(1,"span"),u.\u0275\u0275text(2),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementContainerEnd()),2<){const I=u.\u0275\u0275nextContext();u.\u0275\u0275advance(2),u.\u0275\u0275textInterpolate1(" ",I.previewDimensions)}}function f(lt,r){if(1<&&(u.\u0275\u0275elementContainerStart(0),u.\u0275\u0275elementStart(1,"div"),u.\u0275\u0275text(2),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementContainerEnd()),2<){const I=u.\u0275\u0275nextContext();u.\u0275\u0275advance(2),u.\u0275\u0275textInterpolate(I.previewDimensions)}}function v(lt,r){1<&&(u.\u0275\u0275elementContainerStart(0),u.\u0275\u0275elementStart(1,"span"),u.\u0275\u0275text(2," (2880 x 1800)"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementContainerEnd())}function p(lt,r){1<&&(u.\u0275\u0275elementContainerStart(0),u.\u0275\u0275elementStart(1,"div"),u.\u0275\u0275text(2,"(2880 x 1800)"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementContainerEnd())}T.PdiDownloadModalComponent=(()=>{class lt{constructor(I,vt){this.activeModal=I,this.cdRef=vt,this.title="",this.selectedSize="thumbnail",this.previewDimensions="",this.downloadAll=!0}ngOnInit(){}static{this.\u0275fac=function(vt){return new(vt||lt)(u.\u0275\u0275directiveInject(o.NgbActiveModal),u.\u0275\u0275directiveInject(u.ChangeDetectorRef))}}static{this.\u0275cmp=u.\u0275\u0275defineComponent({type:lt,selectors:[["altecConnect-pdi-download-modal"]],standalone:!1,decls:45,vars:19,consts:[[1,"modal-header"],["type","button","data-bs-dismiss","modal","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],[1,"mb-3"],[1,"form-label"],[1,"radio-inline"],["type","radio",3,"click","checked"],[1,"toggle-buttons","no-select"],[1,"size-toggle","side-toggle","left","desktop-line-height",3,"click"],[1,"mobile-font"],[4,"isMobileView"],[1,"size-toggle","middle","desktop-line-height",3,"click"],[1,"size-toggle","side-toggle","right","desktop-line-height",3,"click"],[1,"modal-footer"],["type","button",1,"btn","btn-light","ms-2",3,"click"],["type","button",1,"btn","btn-altec",3,"click"]],template:function(vt,C){1&vt&&(u.\u0275\u0275elementStart(0,"div",0)(1,"button",1),u.\u0275\u0275listener("click",function(){return C.activeModal.dismiss(null)}),u.\u0275\u0275elementStart(2,"span",2),u.\u0275\u0275text(3,"\xd7"),u.\u0275\u0275elementEnd()(),u.\u0275\u0275elementStart(4,"h4")(5,"b"),u.\u0275\u0275text(6),u.\u0275\u0275elementEnd()()(),u.\u0275\u0275elementStart(7,"div",3)(8,"div",4)(9,"label",5),u.\u0275\u0275text(10,"Photo(s) to download"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(11,"div")(12,"label",6)(13,"input",7),u.\u0275\u0275listener("click",function(){return C.downloadAll=!0}),u.\u0275\u0275elementEnd(),u.\u0275\u0275text(14," All Photos (.zip) "),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(15,"label",6)(16,"input",7),u.\u0275\u0275listener("click",function(){return C.downloadAll=!1,C.cdRef.detectChanges()}),u.\u0275\u0275elementEnd(),u.\u0275\u0275text(17," Selected "),u.\u0275\u0275elementEnd()()(),u.\u0275\u0275elementStart(18,"div",4)(19,"label",5),u.\u0275\u0275text(20,"Size"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(21,"div",8)(22,"div",9),u.\u0275\u0275listener("click",function(){return C.selectedSize="thumbnail"}),u.\u0275\u0275elementStart(23,"div",10)(24,"div"),u.\u0275\u0275text(25," Small "),u.\u0275\u0275template(26,g,3,0,"ng-container",11),u.\u0275\u0275elementEnd(),u.\u0275\u0275template(27,h,3,0,"ng-container",11),u.\u0275\u0275elementEnd()(),u.\u0275\u0275elementStart(28,"div",12),u.\u0275\u0275listener("click",function(){return C.selectedSize="preview"}),u.\u0275\u0275elementStart(29,"div",10)(30,"div"),u.\u0275\u0275text(31," Medium "),u.\u0275\u0275template(32,D,3,1,"ng-container",11),u.\u0275\u0275elementEnd(),u.\u0275\u0275template(33,f,3,1,"ng-container",11),u.\u0275\u0275elementEnd()(),u.\u0275\u0275elementStart(34,"div",13),u.\u0275\u0275listener("click",function(){return C.selectedSize="original"}),u.\u0275\u0275elementStart(35,"div",10)(36,"div"),u.\u0275\u0275text(37," Large "),u.\u0275\u0275template(38,v,3,0,"ng-container",11),u.\u0275\u0275elementEnd(),u.\u0275\u0275template(39,p,3,0,"ng-container",11),u.\u0275\u0275elementEnd()()()()(),u.\u0275\u0275elementStart(40,"div",14)(41,"button",15),u.\u0275\u0275listener("click",function(){return C.activeModal.dismiss()}),u.\u0275\u0275text(42,"Cancel"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(43,"button",16),u.\u0275\u0275listener("click",function(){return C.activeModal.close({size:C.selectedSize,downloadAll:C.downloadAll})}),u.\u0275\u0275text(44,"Download"),u.\u0275\u0275elementEnd()()),2&vt&&(u.\u0275\u0275advance(6),u.\u0275\u0275textInterpolate1("Download ",C.title),u.\u0275\u0275advance(7),u.\u0275\u0275property("checked",!0===C.downloadAll),u.\u0275\u0275advance(3),u.\u0275\u0275property("checked",!1===C.downloadAll),u.\u0275\u0275advance(6),u.\u0275\u0275classProp("selected","thumbnail"===C.selectedSize)("right-border","preview"===C.selectedSize),u.\u0275\u0275advance(4),u.\u0275\u0275property("isMobileView",!1),u.\u0275\u0275advance(),u.\u0275\u0275property("isMobileView",!0),u.\u0275\u0275advance(),u.\u0275\u0275classProp("selected","preview"===C.selectedSize),u.\u0275\u0275advance(4),u.\u0275\u0275property("isMobileView",!1),u.\u0275\u0275advance(),u.\u0275\u0275property("isMobileView",!0),u.\u0275\u0275advance(),u.\u0275\u0275classProp("selected","original"===C.selectedSize)("left-border","preview"===C.selectedSize),u.\u0275\u0275advance(4),u.\u0275\u0275property("isMobileView",!1),u.\u0275\u0275advance(),u.\u0275\u0275property("isMobileView",!0))},dependencies:[b.SelectiveView],styles:[".table[_ngcontent-%COMP%]{margin-bottom:15px}td[_ngcontent-%COMP%]{border-top:0!important;padding:15px 8px!important;vertical-align:middle!important}th[_ngcontent-%COMP%]{border-bottom:0!important;position:sticky;top:0;z-index:1;background:#fff}.table-container[_ngcontent-%COMP%]{overflow-y:auto}@media(min-width:768px){.table-container[_ngcontent-%COMP%]{height:260px}}@media(max-width:767px){.table-container[_ngcontent-%COMP%]{height:400px}}.size-toggle[_ngcontent-%COMP%]{height:fit-content;text-align:center;min-height:30px}.size-toggle[_ngcontent-%COMP%]:hover, .size-toggle[_ngcontent-%COMP%]:focus{cursor:pointer;background:#eaeaea}.side-toggle[_ngcontent-%COMP%]{border:2px solid #BCBCBC;width:145px}.left[_ngcontent-%COMP%]{border-radius:5px 0 0 5px}
1.middle[_ngcontent-%COMP%]{border-top:2px solid #BCBCBC;border-bottom:2px solid #BCBCBC;width:147px}.right[_ngcontent-%COMP%]{border-radius:0 5px 5px 0}.right-border[_ngcontent-%COMP%]{border-right:2px solid #337AB7}.left-border[_ngcontent-%COMP%]{border-left:2px solid #337AB7}.selected[_ngcontent-%COMP%]{border-color:#337ab7;color:#337ab7;font-weight:600;background-color:#f5faff}.selected[_ngcontent-%COMP%]:hover, .selected[_ngcontent-%COMP%]:focus{cursor:pointer;background:#e3e7ea}.toggle-buttons[_ngcontent-%COMP%]{display:flex}@media(max-width:768px){.mobile-font[_ngcontent-%COMP%]{font-size:13px}}@media(min-width:768px){.desktop-line-height[_ngcontent-%COMP%]{line-height:30px}}"]})}}return lt})()},14943(Ht,T,d){"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.PdiPhotosComponent=void 0;const S=d(31635),N=d(83352),b=(d(49849),d(6324),d(20851),d(59091)),g=d(60150),D=(d(21916),d(18985)),f=S.__importStar(d(49849)),v=S.__importStar(d(21916)),p=S.__importStar(d(6324)),J=S.__importStar(d(20851)),lt=S.__importStar(d(67531)),r=S.__importStar(d(22850)),I=["preview"];function vt(X,gt){if(1&X){const mt=f.\u0275\u0275getCurrentView();f.\u0275\u0275elementContainerStart(0),f.\u0275\u0275elementStart(1,"button",10),f.\u0275\u0275listener("click",function(){f.\u0275\u0275restoreView(mt);const ft=f.\u0275\u0275nextContext();return f.\u0275\u0275resetView(ft.openDownloadModal())}),f.\u0275\u0275element(2,"i",11),f.\u0275\u0275text(3," Download "),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementContainerEnd()}}function C(X,gt){if(1&X){const mt=f.\u0275\u0275getCurrentView();f.\u0275\u0275elementContainerStart(0),f.\u0275\u0275elementStart(1,"button",10),f.\u0275\u0275listener("click",function(){f.\u0275\u0275restoreView(mt);const ft=f.\u0275\u0275nextContext();return f.\u0275\u0275resetView(ft.openDownloadModal())}),f.\u0275\u0275element(2,"i",11),f.\u0275\u0275text(3," Download "),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementContainerEnd()}}function ht(X,gt){if(1&X){const mt=f.\u0275\u0275getCurrentView();f.\u0275\u0275elementStart(0,"altecConnect-item-carousel",12),f.\u0275\u0275listener("thumbClickEvent",function(ft){f.\u0275\u0275restoreView(mt);const ot=f.\u0275\u0275nextContext();return f.\u0275\u0275resetView(ot.onClickEvent(ft))}),f.\u0275\u0275elementEnd()}if(2&X){const mt=f.\u0275\u0275nextContext();f.\u0275\u0275property("items",mt.carouselImages)("carouselType","horizontal-thumb")("activeThumbIndex",mt.selectedIndex)("showNavigationIndicators",!1)}}function F(X,gt){1&X&&f.\u0275\u0275element(0,"i",14)}function ct(X,gt){if(1&X){const mt=f.\u0275\u0275getCurrentView();f.\u0275\u0275elementStart(0,"img",16),f.\u0275\u0275listener("click",function(){f.\u0275\u0275restoreView(mt);const ft=f.\u0275\u0275nextContext(2);return f.\u0275\u0275resetView(ft.viewingOriginal=!1)}),f.\u0275\u0275elementEnd()}if(2&X){const mt=f.\u0275\u0275nextContext(2);f.\u0275\u0275property("src",mt.getOriginalImagePath(),f.\u0275\u0275sanitizeUrl)}}function at(X,gt){if(1&X){const mt=f.\u0275\u0275getCurrentView();f.\u0275\u0275elementStart(0,"div",13),f.\u0275\u0275listener("click",function(){f.\u0275\u0275restoreView(mt);const ft=f.\u0275\u0275nextContext();return f.\u0275\u0275resetView(ft.viewingOriginal=!1)}),f.\u0275\u0275conditionalCreate(1,F,1,0,"i",14),f.\u0275\u0275elementEnd(),f.\u0275\u0275conditionalCreate(2,ct,1,1,"img",15)}if(2&X){const mt=f.\u0275\u0275nextContext();f.\u0275\u0275advance(),f.\u0275\u0275conditional(mt.loadingOriginal?1:-1),f.\u0275\u0275advance(),f.\u0275\u0275conditional(mt.loadingOriginal?-1:2)}}T.PdiPhotosComponent=(()=>{class X{constructor(mt,St,ft,ot){this.fleetService=mt,this.modal=St,this.cdRef=ft,this.loader=ot,this.pdiImageGroups=[],this.viewingOriginal=!1,this.loadingOriginal=!1,this.loadedOriginals=[],this.modalDefaultOptions=N.GlobalConstants.MODAL_DEFAULT_OPTIONS,this.tabletBreakpoint=N.GlobalConstants.IPAD_PRO_BREAKPOINT,this.mobileLeftPosition=0,this.mobileEffectStyle="none",this.viewCheckCounter=0,this.numberOfPhotos=0,this.imageResponse=[],this.currentPage=0,this.carouselImages=[]}handleKeyboardEVent(mt){this.document.body.offsetWidth>
1this.tabletBreakpoint&&("ArrowLeft"===mt.key?this.cycleLeft():"ArrowRight"===mt.key&&this.cycleRight())}ngOnInit(){this.selectedIndex=0,this.numberOfPhotos=this.pdiImageGroups.length,this.getImages()}get document(){return document}openOriginal(){if(this.viewingOriginal=!0,-1===this.loadedOriginals.findIndex(mt=>mt.pdiImageEnum===this.pdiImageGroups[this.selectedIndex].pdiImageEnum)){this.loadingOriginal=!0;const mt=this.pdiImageGroups[this.selectedIndex];this.fleetService.getPdiOriginal({pdiImageEnum:mt.pdiImageEnum,uuid:mt.uuid}).pipe((0,b.take)(1)).subscribe(ft=>{this.loadedOriginals.push(ft),this.loadingOriginal=!1})}}getOriginalImagePath(){return this.loadedOriginals.length>0?`data:image/jpg;base64,${this.loadedOriginals[this.loadedOriginals.findIndex(St=>St.pdiImageEnum===this.pdiImageGroups[this.selectedIndex].pdiImageEnum)].originalBase64}`:""}getTitle(){switch(this.pdiImageGroups[this.selectedIndex].pdiImageEnum){case g.PDIImageEnum.FRONT:return"Front View";case g.PDIImageEnum.STREET_SIDE_FRONT_CORNER:return"Street-Side Front Corner View";case g.PDIImageEnum.STREET_SIDE:return"Street-Side View";case g.PDIImageEnum.REAR:return"Rear View";case g.PDIImageEnum.CURB_SIDE_REAR_CORNER:return"Curb-Side Rear Corner View";case g.PDIImageEnum.CURB_SIDE:return"Curb-Side View";case g.PDIImageEnum.REGISTRATION_ECL:return"Vehicle Emission Control Information";case g.PDIImageEnum.REGISTRATION_ENGINE:return"Engine Information";case g.PDIImageEnum.REGISTRATION_ODOMETER:return"Odometer";case g.PDIImageEnum.REGISTRATION_VIN:return"VIN";case g.PDIImageEnum.REGISTRATION_INCOMPLETE_TAG:return"Chassis OEM Incomplete Tag";case g.PDIImageEnum.REGISTRATION_UPFITTER:return"Upfitter Tag";default:return""}}cycleLeft(){0===this.selectedIndex?this.selectedIndex=this.numberOfPhotos-1:this.selectedIndex-=1}cycleRight(){this.selectedIndex===this.numberOfPhotos-1?this.selectedIndex=0:this.selectedIndex+=1}cycleMobileLeft(){this.mobileEffectStyle="all 0.75s ease-in-out",this.mobileLeftPosition=0,setTimeout(()=>{this.mobileEffectStyle="none",this.mobileLeftPosition=-185,this.pdiImageGroups.unshift(this.pdiImageGroups[this.numberOfPhotos-1]),this.pdiImageGroups.pop()},750)}cycleMobileRight(){this.mobileEffectStyle="all 0.75s ease-in-out",this.mobileLeftPosition=-370,setTimeout(()=>{this.mobileEffectStyle="none",this.pdiImageGroups.push(this.pdiImageGroups[0]),this.pdiImageGroups.shift(),this.mobileLeftPosition=-185},750)}openDownloadModal(){const mt=this.modal.open(D.PdiDownloadModalComponent,this.modalDefaultOptions);mt.componentInstance.title=this.getTitle();const St=new Image;let ft,ot;St.src=this.imageResponse[this.selectedIndex],St.onload=function(){ot=St.width,ft=St.height,mt.componentInstance.previewDimensions=`(${ot} x ${ft})`},mt.result.then(B=>{let Ot;this.loader.start(),Ot=B.downloadAll?this.pdiImageGroups.map($=>$.uuid):[this.pdiImageGroups[this.selectedIndex].uuid],this.fleetService.getPdiImageDownloadUrl(Ot,B.size).pipe((0,b.take)(1)).subscribe($=>{this.loader.stop(),window.open($,"_blank")})})}onClickEvent(mt){this.selectedIndex=mt}getImages(){if(0==this.imageResponse.length)for(let mt of this.pdiImageGroups)this.imageResponse.push("data:image/jpg;base64,"+mt.previewBase64);this.carouselImages=this.imageResponse.map(mt=>({src:mt,isVideo:!1}))}static{this.\u0275fac=function(St){return new(St||X)(f.\u0275\u0275directiveInject(v.FleetService),f.\u0275\u0275directiveInject(p.NgbModal),f.\u0275\u0275directiveInject(f.ChangeDetectorRef),f.\u0275\u0275directiveInject(J.LoadingService))}}static{this.\u0275cmp=f.\u0275\u0275defineComponent({type:X,selectors:[["altecConnect-pdi-photos"]],viewQuery:function(St,ft){if(1&St&&f.\u0275\u0275viewQuery(I,5),2&St){let ot;f.\u0275\u0275queryRefresh(ot=f.\u0275\u0275loadQuery())&&(ft.previewRef=ot.first)}},hostBindings:function(St,ft){1&St&&f.\u0275\u0275listener("keydown",function(B){return ft.handleKeyboardEVent(B)},f.\u0275\u0275resolveDocument)},inputs:{pdiImageGroups:"pdiImageGroups"},standalone:!1,decls:14,vars:6,consts:[["preview",""],[1,"title-group"],[1,"pane-title","mt-2","mobile-title"],[1,"align-right"],[4,"isMobileView"],[1,"hr-margins"],[1,"item-thumb-col"],[3,"items","carouselType","activeThumbIndex","showNavigationIndicators"],[1,"mt-3"],[1,"pdi-preview",3,"click","
1src"],[1,"btn","btn-sm","btn-download",3,"click"],[1,"fa","fa-download"],[3,"thumbClickEvent","items","carouselType","activeThumbIndex","showNavigationIndicators"],[1,"backdrop",3,"click"],[1,"fa","fa-spinner","fa-pulse","fa-5x","fa-fw","icon-cog"],[1,"pdi-original",3,"src"],[1,"pdi-original",3,"click","src"]],template:function(St,ft){1&St&&(f.\u0275\u0275elementStart(0,"div",1)(1,"div",2),f.\u0275\u0275text(2),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementStart(3,"div",3),f.\u0275\u0275template(4,vt,4,0,"ng-container",4)(5,C,4,0,"ng-container",4),f.\u0275\u0275elementEnd()(),f.\u0275\u0275element(6,"hr",5),f.\u0275\u0275elementStart(7,"div")(8,"div",6),f.\u0275\u0275conditionalCreate(9,ht,1,4,"altecConnect-item-carousel",7),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementStart(10,"div",8)(11,"img",9,0),f.\u0275\u0275listener("click",function(){return ft.openOriginal()}),f.\u0275\u0275elementEnd()(),f.\u0275\u0275conditionalCreate(13,at,3,2),f.\u0275\u0275elementEnd()),2&St&&(f.\u0275\u0275advance(2),f.\u0275\u0275textInterpolate1(" ",ft.getTitle()," "),f.\u0275\u0275advance(2),f.\u0275\u0275property("isMobileView",!1),f.\u0275\u0275advance(),f.\u0275\u0275property("isMobileView",!0),f.\u0275\u0275advance(4),f.\u0275\u0275conditional(ft.carouselImages.length>1?9:-1),f.\u0275\u0275advance(2),f.\u0275\u0275property("src","data:image/jpg;base64,"+ft.pdiImageGroups[ft.selectedIndex].previewBase64,f.\u0275\u0275sanitizeUrl),f.\u0275\u0275advance(2),f.\u0275\u0275conditional(ft.viewingOriginal?13:-1))},dependencies:[lt.ItemCarouselComponent,r.SelectiveView],styles:[".table[_ngcontent-%COMP%]{margin-bottom:15px}td[_ngcontent-%COMP%]{border-top:0!important;padding:15px 8px!important;vertical-align:middle!important}th[_ngcontent-%COMP%]{border-bottom:0!important;position:sticky;top:0;z-index:1;background:#fff}.table-container[_ngcontent-%COMP%]{overflow-y:auto}@media(min-width:768px){.table-container[_ngcontent-%COMP%]{height:260px}}@media(max-width:767px){.table-container[_ngcontent-%COMP%]{height:400px}}[_ngcontent-%COMP%]:root{--bs-gutter-x: 1.5rem;--bs-gutter-y: 1.5rem}.d-flex[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{float:none}.col[_ngcontent-%COMP%]{flex:1 0 0;padding-left:var(--bs-gutter-x, 1.5rem);padding-right:var(--bs-gutter-x, 1.5rem)}@media only screen and (min-width:576px){.col-sm-auto[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;max-width:none}}@media only screen and (min-width:768px){.col-md-auto[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;max-width:none}}.col-auto[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;max-width:100%;padding-left:var(--bs-gutter-x, 1.5rem);padding-right:var(--bs-gutter-x, 1.5rem)}.justify-content-center[_ngcontent-%COMP%]{justify-content:center}.justify-content-end[_ngcontent-%COMP%]{justify-content:end}.align-items-center[_ngcontent-%COMP%]{align-items:center}.align-items-end[_ngcontent-%COMP%]{align-items:end}.flex-column-reverse[_ngcontent-%COMP%]{flex-direction:column-reverse}.d-flex[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}@media only screen and (min-width:768px){.d-md-block[_ngcontent-%COMP%]{display:block}}@media only screen and (min-width:768px){.d-md-none[_ngcontent-%COMP%]{display:none}}@media only screen and (min-width:768px){.d-md-flex[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}}@media only screen and (min-width:992px){.d-lg-none[_ngcontent-%COMP%]{display:none!important}}@media only screen and (min-width:992px){.d-lg-block[_ngcontent-%COMP%]{display:block!important}}.w-100[_ngcontent-%COMP%]{width:100%!important}.h-100[_ngcontent-%COMP%]{height:100%!important}.px-3[_ngcontent-%COMP%]{padding-left:15px!important;padding-right:15px!important}.pr-0[_ngcontent-%COMP%]{padding-right:0!important}.pl-0[_ngcontent-%COMP%]{padding-left:0!important}.pt-3[_ngcontent-%COMP%]{padding-top:1rem}.pb-3[_ngcontent-%COMP%]{padding-bottom:1rem}.mb-3[_ngcontent-%COMP%]{margin-bottom:1rem}.pb-2[_ngcontent-%COMP%]{padding-bottom:.5rem}@media print{.no-print[_ngcontent-%COMP%]{display:none!important}}.m-0[_ngcontent-%COMP%]{margin:0!important}.mt-0[_ngcontent-%COMP%]{margin-top:0!important}.mb-0[_ngcontent-%COMP%]{margin-bottom:0!important}.ms-0[_ngcontent-%COMP%]{margin-left:0!important}.me-0[_ngcontent-%COMP%]{margin-right:0!important}.mx-0[_ngcontent-%COMP%]{margin-left:0!important;margin-right:0!important}.my-0[_ngcontent-%COMP%]{margin-top:0!important;margin-bottom:0!important}.p-0[_ngcontent-%COMP%]{padding:0!important}.pt-0[_ngcontent-%COMP%]{padding-top:0!important}.pb-0[_ngcontent-%COMP%]{padding-bottom:0!important}.ps-0[_ngcontent-%COMP%]{padding-left:0!important}.pe-0[_ngcontent-%COMP%]{padding-right:0!important}.px-0[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.py-0[_ngcontent-%COMP%]{padding-top:0!important;padding-bottom:0!important}.m-1[_ngcontent-%COMP%]{margin:.25rem!important}.mt-1[_ngcontent-%COMP%]{margin-top:.25rem!important}.mb-1[_ngcontent-%COMP%]{margin-bottom:.25rem!important}.ms-1[_ngcontent-%COMP%]{margin-left:.25rem!important}.me-1[_ngcontent-%COMP%]{margin-right:.25rem!important}.mx-1[_ngcontent-%COMP%]{margin-left:.25rem!important;margin-right:.25rem!important}.my-1[_ngcontent-%COMP%]{margin-top:.25rem!important;margin-bottom:.25rem!important}.p-1[_ngcontent-%COMP%]{padding:.25rem!important}.pt-1[_ngcontent-%COMP%]{padding-top:.25rem!important}.pb-1[_ngcontent-%COMP%]{padding-bottom:.25rem!important}.ps-1[_ngcontent-%COMP%]{padding-left:.25rem!important}.pe-1[_ngcontent-%COMP%]{padding-right:.25rem!important}.px-1[_ngcontent-%COMP%]{padding-left:.25rem!important;padding-right:.25rem!important}.py-1[_ngcontent-%COMP%]{padding-top:.25rem!important;padding-bottom:.25rem!important}.m-2[_ngcontent-%COMP%]{margin:.5rem!important}.mt-2[_ngcontent-%COMP%]{margin-top:.5rem!important}.mb-2[_ngcontent-%COMP%]{margin-bottom:.5rem!important}.ms-2[_ngcontent-%COMP%]{margin-left:.5rem!important}.me-2[_ngcontent-%COMP%]{margin-right:.5rem!important}.mx-2[_ngcontent-%COMP%]{margin-left:.5rem!important;margin-right:.5rem!important}.my-2[_ngcontent-%COMP%]{margin-top:.5rem!important;margin-bottom:.5rem!important}.p-2[_ngcontent-%COMP%]{padding:.5rem!important}.pt-2[_ngcontent-%COMP%]{padding-top:.5rem!important}.pb-2[_ngcontent-%COMP%]{padding-bottom:.5rem!important}.ps-2[_ngcontent-%COMP%]{padding-left:.5rem!important}
1.pe-2[_ngcontent-%COMP%]{padding-right:.5rem!important}.px-2[_ngcontent-%COMP%]{padding-left:.5rem!important;padding-right:.5rem!important}.py-2[_ngcontent-%COMP%]{padding-top:.5rem!important;padding-bottom:.5rem!important}.m-3[_ngcontent-%COMP%]{margin:1rem!important}.mt-3[_ngcontent-%COMP%]{margin-top:1rem!important}.mb-3[_ngcontent-%COMP%]{margin-bottom:1rem!important}.ms-3[_ngcontent-%COMP%]{margin-left:1rem!important}.me-3[_ngcontent-%COMP%]{margin-right:1rem!important}.mx-3[_ngcontent-%COMP%]{margin-left:1rem!important;margin-right:1rem!important}.my-3[_ngcontent-%COMP%]{margin-top:1rem!important;margin-bottom:1rem!important}.p-3[_ngcontent-%COMP%]{padding:1rem!important}.pt-3[_ngcontent-%COMP%]{padding-top:1rem!important}.pb-3[_ngcontent-%COMP%]{padding-bottom:1rem!important}.ps-3[_ngcontent-%COMP%]{padding-left:1rem!important}.pe-3[_ngcontent-%COMP%]{padding-right:1rem!important}.px-3[_ngcontent-%COMP%]{padding-left:1rem!important;padding-right:1rem!important}.py-3[_ngcontent-%COMP%]{padding-top:1rem!important;padding-bottom:1rem!important}.m-4[_ngcontent-%COMP%]{margin:1.5rem!important}.mt-4[_ngcontent-%COMP%]{margin-top:1.5rem!important}.mb-4[_ngcontent-%COMP%]{margin-bottom:1.5rem!important}.ms-4[_ngcontent-%COMP%]{margin-left:1.5rem!important}.me-4[_ngcontent-%COMP%]{margin-right:1.5rem!important}.mx-4[_ngcontent-%COMP%]{margin-left:1.5rem!important;margin-right:1.5rem!important}.my-4[_ngcontent-%COMP%]{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.p-4[_ngcontent-%COMP%]{padding:1.5rem!important}.pt-4[_ngcontent-%COMP%]{padding-top:1.5rem!important}.pb-4[_ngcontent-%COMP%]{padding-bottom:1.5rem!important}.ps-4[_ngcontent-%COMP%]{padding-left:1.5rem!important}.pe-4[_ngcontent-%COMP%]{padding-right:1.5rem!important}.px-4[_ngcontent-%COMP%]{padding-left:1.5rem!important;padding-right:1.5rem!important}.py-4[_ngcontent-%COMP%]{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.m-5[_ngcontent-%COMP%]{margin:3rem!important}.mt-5[_ngcontent-%COMP%]{margin-top:3rem!important}.mb-5[_ngcontent-%COMP%]{margin-bottom:3rem!important}.ms-5[_ngcontent-%COMP%]{margin-left:3rem!important}.me-5[_ngcontent-%COMP%]{margin-right:3rem!important}.mx-5[_ngcontent-%COMP%]{margin-left:3rem!important;margin-right:3rem!important}.my-5[_ngcontent-%COMP%]{margin-top:3rem!important;margin-bottom:3rem!important}.p-5[_ngcontent-%COMP%]{padding:3rem!important}.pt-5[_ngcontent-%COMP%]{padding-top:3rem!important}.pb-5[_ngcontent-%COMP%]{padding-bottom:3rem!important}.ps-5[_ngcontent-%COMP%]{padding-left:3rem!important}.pe-5[_ngcontent-%COMP%]{padding-right:3rem!important}.px-5[_ngcontent-%COMP%]{padding-left:3rem!important;padding-right:3rem!important}.py-5[_ngcontent-%COMP%]{padding-top:3rem!important;padding-bottom:3rem!important}.pane-title[_ngcontent-%COMP%]{font-size:20px}.align-right[_ngcontent-%COMP%]{text-align:right}.pdi-thumbnail[_ngcontent-%COMP%]{width:145px;height:91px}.pdi-thumbnail-mobile[_ngcontent-%COMP%]{width:165px;height:103px}.slider-container[_ngcontent-%COMP%]{overflow:hidden;position:absolute;height:108px;width:100%}.slider[_ngcontent-%COMP%]{display:inline-block;position:relative;width:100%;height:108px}.slider-inner[_ngcontent-%COMP%]{width:1205px}img[_ngcontent-%COMP%]{border:1px solid #B2B2B2}.scroll-arrow-container[_ngcontent-%COMP%]{position:absolute;z-index:100;top:137px}.scroll-arrow-container-mobile[_ngcontent-%COMP%]{position:absolute;z-index:100;top:25px}.right-arrow[_ngcontent-%COMP%]{right:14px}.right-arrow-mobile[_ngcontent-%COMP%]{right:0}.scroll-arrow[_ngcontent-%COMP%]{color:#fff;font-size:25px}.scroll-arrow[_ngcontent-%COMP%]:hover, .scroll-arrow[_ngcontent-%COMP%]:focus{cursor:pointer;background:#111;opacity:.9}.arrow-background[_ngcontent-%COMP%], .arrow-background-mobile[_ngcontent-%COMP%]{background:#333;text-align:center;vertical-align:middle;width:28px;height:53px;line-height:55px;border-radius:4px;opacity:.6}.pdi-thumbnail[_ngcontent-%COMP%]:hover{cursor:pointer}.pdi-preview[_ngcontent-%COMP%]:hover{cursor:zoom-in}.pdi-original[_ngcontent-%COMP%]:hover{cursor:zoom-out}.edge-left[_ngcontent-%COMP%]{margin-left:var(--bs-gutter-x, 1.5rem)}.title-group[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.pad-left[_ngcontent-%COMP%]{margin-left:4px}.pad-left-mobile[_ngcontent-%COMP%]{margin-left:calc(var(--bs-gutter-x, 1.5rem) * .667)}.pad-right-mobile[_ngcontent-%COMP%]{margin-right:calc(var(--bs-gutter-x, 1.5rem) * .667)}.btn-download[_ngcontent-%COMP%]{background:#1d81b0;color:#fff}.btn-download[_ngcontent-%COMP%]:hover, .btn-download[_ngcontent-%COMP%]:focus{background:#1a7099;color:#fff;text-decoration:none;cursor:pointer}.hr-margins[_ngcontent-%COMP%]{margin-top:0;margin-bottom:calc(var(--bs-gutter-x, 1.5rem) * .667)}.selected[_ngcontent-%COMP%]{border:3px solid #EFB310}.pdi-preview[_ngcontent-%COMP%]{width:920px;height:auto;max-width:100%}.original-container[_ngcontent-%COMP%]{position:absolute;inset:0;z-index:100}
1.icon-cog[_ngcontent-%COMP%]{color:#efb310;position:relative;top:40%;z-index:1999}.backdrop[_ngcontent-%COMP%]{z-index:1000;position:fixed;inset:0;background-color:#0000004d;text-align:center}.pdi-original[_ngcontent-%COMP%]{z-index:1001;width:1400px;height:auto;position:fixed;inset:0;margin:auto;max-width:100%}@media(max-width:768px){.mobile-title[_ngcontent-%COMP%]{font-size:16px}}"]})}}return X})()},39027(Ht,T,d){"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.PdiTabContentComponent=void 0;const S=d(31635),N=S.__importStar(d(49849)),O=S.__importStar(d(14943));function u(g,h){1&g&&(N.\u0275\u0275elementStart(0,"div",0)(1,"span"),N.\u0275\u0275element(2,"i",2),N.\u0275\u0275elementEnd()())}function o(g,h){if(1&g&&N.\u0275\u0275element(0,"altecConnect-pdi-photos",1),2&g){const D=N.\u0275\u0275nextContext();N.\u0275\u0275property("pdiImageGroups",D.pdiImageGroups)}}T.PdiTabContentComponent=(()=>{class g{constructor(){this.pdiImageGroups=[]}ngOnInit(){}static{this.\u0275fac=function(f){return new(f||g)}}static{this.\u0275cmp=N.\u0275\u0275defineComponent({type:g,selectors:[["altecConnect-pdi-tab-content"]],inputs:{loadingPDIImages:"loadingPDIImages",pdiImageGroups:"pdiImageGroups"},standalone:!1,decls:2,vars:2,consts:[[1,"text-center","img-loader"],[3,"pdiImageGroups"],[1,"fa","fa-spinner","fa-pulse","fa-fw","fa-5x"]],template:function(f,v){1&f&&(N.\u0275\u0275conditionalCreate(0,u,3,0,"div",0),N.\u0275\u0275conditionalCreate(1,o,1,1,"altecConnect-pdi-photos",1)),2&f&&(N.\u0275\u0275conditional(v.loadingPDIImages?0:-1),N.\u0275\u0275advance(),N.\u0275\u0275conditional(v.loadingPDIImages?-1:1))},dependencies:[O.PdiPhotosComponent],styles:[".img-loader[_ngcontent-%COMP%]{color:#efb310}"]})}}return g})()},18917(Ht,T,d){"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.SearchAndOrderPartsTabContentComponent=void 0;const S=d(31635),N=S.__importDefault(d(97586)),u=(d(7901),S.__importStar(d(49849))),o=S.__importStar(d(7901)),b=S.__importStar(d(92325)),g=S.__importStar(d(84341)),h=S.__importStar(d(60177)),D=()=>({eventCategory:"Unit Detail",eventAction:"Button Click",eventLabel:"Search Bill of Materials"}),f=bt=>({eventCategory:"Unit Detail",eventAction:"View BOM",eventLabel:bt}),v=()=>["/pages/dashboard/equipment/fleet/billOfMaterials/search"],p=(bt,kt)=>({instanceId:bt,query:"",accountId:kt}),J=(bt,kt,K)=>({instanceId:bt,unitSerial:kt,query:"",accountId:K}),lt=()=>["/pages/dashboard/equipment/fleet/partsBreakDown"],r=(bt,kt)=>({unitId:bt,pageItemNumber:kt}),I=bt=>({eventCategory:"Unit Detail",eventAction:"View Parts Breakdown",eventLabel:bt}),vt=(bt,kt,K)=>({unitId:bt,unitSerial:kt,pageItemNumber:K}),C=()=>({eventCategory:"Unit Detail",eventAction:"Link Clicked",eventLabel:"Show More Breakdowns"});function ht(bt,kt){if(1&bt){const K=u.\u0275\u0275getCurrentView();u.\u0275\u0275elementStart(0,"span",13),u.\u0275\u0275listener("click",function(){u.\u0275\u0275restoreView(K),u.\u0275\u0275nextContext();const q=u.\u0275\u0275reference(7);return u.\u0275\u0275resetView(q.value="")}),u.\u0275\u0275elementEnd()}}function F(bt,kt){if(1&bt&&(u.\u0275\u0275elementStart(0,"div",12)(1,"a",14),u.\u0275\u0275text(2," View Bill of Materials "),u.\u0275\u0275elementEnd()()),2&bt){const K=u.\u0275\u0275nextContext(2);u.\u0275\u0275advance(),u.\u0275\u0275property("gaEvent",u.\u0275\u0275pureFunction1(3,f,K.detailResponse.unitSerial))("routerLink",u.\u0275\u0275pureFunction0(5,v))("queryParams",u.\u0275\u0275pureFunction2(6,p,K.detailResponse.instanceId,K.accountIdForRelationships))}}function ct(bt,kt){if(1&bt&&(u.\u0275\u0275elementStart(0,"div",12)(1,"a",14),u.\u0275\u0275text(2," View Bill of Materials "),u.\u0275\u0275elementEnd()()),2&bt){const K=u.\u0275\u0275nextContext(2);u.\u0275\u0275advance(),u.\u0275\u0275property("gaEvent",u.\u0275\u0275pureFunction1(3,f,K.detailResponse.unitSerial))("routerLink",u.\u0275\u0275pureFunction0(5,v))("queryParams",u.\u0275\u0275pureFunction3(6,J,K.detailResponse.instanceId,K.detailResponse.unitSerial,K.accountIdForRelationships))}}function at(bt,kt){if(1&bt){const K=u.\u0275\u0275getCurrentView();u.\u0275\u0275elementStart(0,"span")(1,"div",2)(2,"div",3)(3,"form",4,0),u.\u0275\u0275listener("ngSubmit",function(){u.\u0275\u0275restoreView(K);const q=u.\u0275\u0275reference(7),Tt=u.\u0275\u0275nextContext();
1return u.\u0275\u0275resetView(Tt.submitBomSearch(q.value))}),u.\u0275\u0275elementStart(5,"div",5),u.\u0275\u0275element(6,"input",6,1),u.\u0275\u0275conditionalCreate(8,ht,1,0,"span",7),u.\u0275\u0275elementStart(9,"button",8),u.\u0275\u0275element(10,"i",9),u.\u0275\u0275elementEnd()()()()(),u.\u0275\u0275elementStart(11,"div",10)(12,"div",11)(13,"span"),u.\u0275\u0275conditionalCreate(14,F,3,9,"div",12),u.\u0275\u0275conditionalCreate(15,ct,3,10,"div",12),u.\u0275\u0275elementEnd()()()()}if(2&bt){const K=u.\u0275\u0275reference(7),xt=u.\u0275\u0275nextContext();u.\u0275\u0275advance(8),u.\u0275\u0275conditional(""!=K.value?8:-1),u.\u0275\u0275advance(),u.\u0275\u0275property("gaEvent",u.\u0275\u0275pureFunction0(4,D)),u.\u0275\u0275advance(5),u.\u0275\u0275conditional(xt.detailResponse.unitInFleet?14:-1),u.\u0275\u0275advance(),u.\u0275\u0275conditional(xt.detailResponse.unitInFleet?-1:15)}}function rt(bt,kt){1&bt&&(u.\u0275\u0275elementStart(0,"span"),u.\u0275\u0275text(1," For parts information please call 1-877-GO ALTEC, Option 1. "),u.\u0275\u0275elementEnd())}function X(bt,kt){1&bt&&(u.\u0275\u0275elementStart(0,"span"),u.\u0275\u0275text(1," To ensure accuracy, please call 1-877-GO ALTEC, Option 1 for parts needs on units built prior to 2007. "),u.\u0275\u0275elementEnd())}function gt(bt,kt){if(1&bt&&(u.\u0275\u0275elementStart(0,"span"),u.\u0275\u0275conditionalCreate(1,rt,2,0,"span"),u.\u0275\u0275conditionalCreate(2,X,2,0,"span"),u.\u0275\u0275elementEnd()),2&bt){const K=u.\u0275\u0275nextContext();u.\u0275\u0275advance(),u.\u0275\u0275conditional(K.isOlderThan2007()?-1:1),u.\u0275\u0275advance(),u.\u0275\u0275conditional(K.isOlderThan2007()?2:-1)}}function mt(bt,kt){if(1&bt&&(u.\u0275\u0275elementStart(0,"a",20),u.\u0275\u0275text(1),u.\u0275\u0275elementEnd()),2&bt){const K=u.\u0275\u0275nextContext().$implicit,xt=u.\u0275\u0275nextContext(3);u.\u0275\u0275property("routerLink",u.\u0275\u0275pureFunction0(4,lt))("queryParams",u.\u0275\u0275pureFunction2(5,r,xt.detailResponse.instanceId,K.itemNumber))("gaEvent",u.\u0275\u0275pureFunction1(8,I,K.itemNumber)),u.\u0275\u0275advance(),u.\u0275\u0275textInterpolate1(" ",K.itemDescription)}}function St(bt,kt){if(1&bt&&(u.\u0275\u0275elementStart(0,"a",20),u.\u0275\u0275text(1),u.\u0275\u0275elementEnd()),2&bt){const K=u.\u0275\u0275nextContext().$implicit,xt=u.\u0275\u0275nextContext(3);u.\u0275\u0275property("routerLink",u.\u0275\u0275pureFunction0(4,lt))("queryParams",u.\u0275\u0275pureFunction3(5,vt,xt.detailResponse.instanceId,xt.detailResponse.unitSerial,K.itemNumber))("gaEvent",u.\u0275\u0275pureFunction1(9,I,K.itemNumber)),u.\u0275\u0275advance(),u.\u0275\u0275textInterpolate1(" ",K.itemDescription)}}function ft(bt,kt){if(1&bt&&(u.\u0275\u0275elementStart(0,"div",19),u.\u0275\u0275conditionalCreate(1,mt,2,10,"a",20),u.\u0275\u0275conditionalCreate(2,St,2,11,"a",20),u.\u0275\u0275element(3,"hr",16),u.\u0275\u0275elementEnd()),2&bt){const K=u.\u0275\u0275nextContext(3);u.\u0275\u0275advance(),u.\u0275\u0275conditional(K.detailResponse.unitInFleet?1:-1),u.\u0275\u0275advance(),u.\u0275\u0275conditional(K.detailResponse.unitInFleet?-1:2)}}function ot(bt,kt){if(1&bt&&(u.\u0275\u0275elementStart(0,"div",15),u.\u0275\u0275repeaterCreate(1,ft,4,2,"div",19,u.\u0275\u0275repeaterTrackByIdentity),u.\u0275\u0275pipe(3,"slice"),u.\u0275\u0275elementEnd()),2&bt){const K=u.\u0275\u0275nextContext(2);u.\u0275\u0275advance(),u.\u0275\u0275repeater(u.\u0275\u0275pipeBind3(3,0,K.detailResponse.partsPages,0,5))}}function B(bt,kt){if(1&bt&&(u.\u0275\u0275elementStart(0,"a",20),u.\u0275\u0275text(1),u.\u0275\u0275elementEnd()),2&bt){const K=u.\u0275\u0275nextContext().$implicit,xt=u.\u0275\u0275nextContext(3);u.\u0275\u0275property("routerLink",u.\u0275\u0275pureFunction0(4,lt))("queryParams",u.\u0275\u0275pureFunction2(5,r,xt.detailResponse.instanceId,K.itemNumber))("gaEvent",u.\u0275\u0275pureFunction1(8,I,K.itemNumber)),u.\u0275\u0275advance(),u.\u0275\u0275textInterpolate1(" ",K.itemDescription)}}function Ot(bt,kt){if(1&bt&&(u.\u0275\u0275elementStart(0,"a",20),u.\u0275\u0275text(1),u.\u0275\u0275elementEnd()),2&bt){const K=u.\u0275\u0275nextContext().$implicit,xt=u.\u0275\u0275nextContext(3);u.\u0275\u0275property("routerLink",u.\u0275\u0275pureFunction0(4,lt))("queryParams",u.\u0275\u0275pureFunction3(5,vt,xt.detailResponse.instanceId,xt.detailResponse.unitSeri
1al,K.itemNumber))("gaEvent",u.\u0275\u0275pureFunction1(9,I,K.itemNumber)),u.\u0275\u0275advance(),u.\u0275\u0275textInterpolate1(" ",K.itemDescription)}}function $(bt,kt){if(1&bt&&(u.\u0275\u0275elementStart(0,"div",19),u.\u0275\u0275conditionalCreate(1,B,2,10,"a",20),u.\u0275\u0275conditionalCreate(2,Ot,2,11,"a",20),u.\u0275\u0275element(3,"hr",16),u.\u0275\u0275elementEnd()),2&bt){const K=u.\u0275\u0275nextContext(3);u.\u0275\u0275advance(),u.\u0275\u0275conditional(K.detailResponse.unitInFleet?1:-1),u.\u0275\u0275advance(),u.\u0275\u0275conditional(K.detailResponse.unitInFleet?-1:2)}}function j(bt,kt){if(1&bt&&(u.\u0275\u0275elementStart(0,"div",15),u.\u0275\u0275repeaterCreate(1,$,4,2,"div",19,u.\u0275\u0275repeaterTrackByIdentity),u.\u0275\u0275elementEnd()),2&bt){const K=u.\u0275\u0275nextContext(2);u.\u0275\u0275advance(),u.\u0275\u0275repeater(K.detailResponse.partsPages)}}function G(bt,kt){if(1&bt){const K=u.\u0275\u0275getCurrentView();u.\u0275\u0275elementStart(0,"a",21),u.\u0275\u0275listener("click",function(){u.\u0275\u0275restoreView(K);const q=u.\u0275\u0275nextContext(2);return u.\u0275\u0275resetView(q.togglePartsList())}),u.\u0275\u0275text(1,"Show More Breakdowns"),u.\u0275\u0275elementEnd()}2&bt&&u.\u0275\u0275property("gaEvent",u.\u0275\u0275pureFunction0(1,C))}function k(bt,kt){if(1&bt){const K=u.\u0275\u0275getCurrentView();u.\u0275\u0275elementStart(0,"a",22),u.\u0275\u0275listener("click",function(){u.\u0275\u0275restoreView(K);const q=u.\u0275\u0275nextContext(2);return u.\u0275\u0275resetView(q.togglePartsList())}
1),u.\u0275\u0275text(1,"Show Fewer Breakdowns"),u.\u0275\u0275elementEnd()}}function R(bt,kt){if(1&bt&&(u.\u0275\u0275elementStart(0,"div",2)(1,"div",15)(2,"strong"),u.\u0275\u0275text(3),u.\u0275\u0275elementEnd(),u.\u0275\u0275element(4,"hr",16),u.\u0275\u0275elementEnd(),u.\u0275\u0275conditionalCreate(5,ot,4,4,"div",15),u.\u0275\u0275conditionalCreate(6,j,3,0,"div",15),u.\u0275\u0275elementStart(7,"div",15),u.\u0275\u0275conditionalCreate(8,G,2,2,"a",17),u.\u0275\u0275conditionalCreate(9,k,2,0,"a",18),u.\u0275\u0275elementEnd()()),2&bt){const K=u.\u0275\u0275nextContext();u.\u0275\u0275advance(3),u.\u0275\u0275textInterpolate1(" Parts Breakdown: (",K.detailResponse.partsPages.length,") "),u.\u0275\u0275advance(2),u.\u0275\u0275conditional(K.showMoreParts?-1:5),u.\u0275\u0275advance(),u.\u0275\u0275conditional(K.showMoreParts?6:-1),u.\u0275\u0275advance(2),u.\u0275\u0275conditional(K.showMoreParts?-1:8),u.\u0275\u0275advance(),u.\u0275\u0275conditional(K.showMoreParts?9:-1)}}function U(bt,kt){1&bt&&(u.\u0275\u0275elementStart(0,"span"),u.\u0275\u0275text(1," No unit specific parts pages exist for this unit. Please call 1-877-GO- ALTEC, Option 1 for assistance "),u.\u0275\u0275elementEnd())}function st(bt,kt){1&bt&&(u.\u0275\u0275elementStart(0,"span"),u.\u0275\u0275text(1," To ensure accuracy, please call Please call 1-877-GO ALTEC, Option 1 for parts needs on units built prior to 2007. "),u.\u0275\u0275elementEnd())}function Dt(bt,kt){if(1&bt&&(u.\u0275\u0275elementStart(0,"span"),u.\u0275\u0275conditionalCreate(1,U,2,0,"span"),u.\u0275\u0275conditionalCreate(2,st,2,0,"span"),u.\u0275\u0275elementEnd()),2&bt){const K=u.\u0275\u0275nextContext();u.\u0275\u0275advance(),u.\u0275\u0275conditional(K.isOlderThan2007()?-1:1),u.\u0275\u0275advance(),u.\u0275\u0275conditional(K.isOlderThan2007()?2:-1)}}T.SearchAndOrderPartsTabContentComponent=(()=>{class bt{constructor(K){this.router=K,this.showMoreParts=!1}ngOnInit(){}submitBomSearch(K){this.router.navigateByUrl(`/pages/dashboard/equipment/fleet/billOfMaterials/search?query=${K}&instanceId=${this.detailResponse.instanceId}&accountId=${this.accountIdForRelationships}${this.detailResponse.unitInFleet?"":`&unitSerial=${this.detailResponse.unitSerial}`}`)}isOlderThan2007(){return!!this.detailResponse.inServiceDate&&(0,N.default)(this.detailResponse.inServiceDate).isBefore((0,N.default)("2007-01-01"))}togglePartsList(){this.showMoreParts=!this.showMoreParts}static{this.\u0275fac=function(xt){return new(xt||bt)(u.\u0275\u0275directiveInject(o.Router))}}static{this.\u0275cmp=u.\u0275\u0275defineComponent({type:bt,selectors:[["altecConnect-search-and-order-parts-tab-content"]],inputs:{detailResponse:"detailResponse",showMoreParts:"showMoreParts",isExternal:"isExternal",accountIdForRelationships:"accountIdForRelationships"},standalone:!1,decls:4,vars:4,consts:[["partsSearch","ngForm"],["searchInput",""],[1,"row"],[1,"col-lg-4","col-sm-6","col-12",2,"padding-bottom","15px"],[3,"ngSubmit"],[1,"input-group"],["placeholder","Search Bill of Materials","name","serial","type","text","autocomplete","off","ngModel","",1,"form-control","show-placeholder","no-ms-clear"],["id","search-clear",1,"fa","fa-times"],["type","submit",1,"btn-altec",3,"gaEvent"],["aria-hidden","true",1,"fa","fa-search"],[1,"row","mb-3"],[1,"col-lg-4","col-sm-6","col-12"],[1,"d-grid"],["id","search-clear",1,"fa","fa-times",3,"click"],[1,"btn-altec","text-center",3,"gaEvent","routerLink","queryParams"],[1,"col-12"],[1,"sm-margin"],["href","javascript:;",3,"gaEvent"],["href","javascript:;"],[1,"ps-3"],[3,"routerLink","queryParams","gaEvent"],["href","javascript:;",3,"click","gaEvent"],["href","javascript:;",3,"click"]],template:function(xt,q){1&xt&&(u.\u0275\u0275conditionalCreate(0,at,16,5,"span"),u.\u0275\u0275conditionalCreate(1,gt,3,2,"span"),u.\u0275\u0275conditionalCreate(2,R,10,5,"div",2),u.\u0275\u0275conditionalCreate(3,Dt,3,2,"span")),2&xt&&(u.\u0275\u0275conditional(q.detailResponse.hasWIP||q.detailResponse.partsPages.length>0?0:-1),u.\u0275\u0275advance(),u.\u0275\u0275conditional(q.detailResponse.hasWIP?-1:1),u.\u0275\u0275advance(),u.\u0275\u0275conditional(q.detailResponse.partsPages.length>0?2:-1),u.\u0275\u0275advance(),u.\u0275\u0275conditional(0==q.detailResponse.partsPages.length&&q.detailResponse.hasWIP?3:-1))},dependencies:[b.GaEventDirective,g.\u0275NgNoValidate,g.DefaultValueAccessor,g.NgControlStatus,g.NgControlStatusGroup,g.NgModel,g.NgForm,o.RouterLink,h.SlicePipe],styles:[".table[_ngcontent-%COMP%]{margin-bottom:15px}td[_ngcontent-%COMP%]{border-top:0!important;padding:15px 8px!important;vertical-align:middle!important}th[_ngcontent-%COMP%]{border-bottom:0!important;position:sticky;top:0;z-index:1;background:#fff}.table-container[_ngcontent-%COMP%]{overflow-y:auto}@media(min-width:768px){.table-container[_ngcontent-%COMP%]{height:260px}}@media(max-width:767px){.table-container[_ngcontent-%COMP%]{height:400px}}"]})}}return bt})()},65549(Ht,T,d){"use strict";
1Object.defineProperty(T,"__esModule",{value:!0}),T.ServicesTabContentComponent=void 0;const S=d(31635),N=d(49849),u=(d(21916),d(83352)),o=S.__importStar(d(49849)),b=S.__importStar(d(21916)),g=S.__importStar(d(92325)),h=S.__importStar(d(7901)),D=S.__importStar(d(22850)),f=S.__importStar(d(57504)),v=S.__importStar(d(60177)),p=R=>({eventCategory:"Unit Detail",eventAction:"Download Service CSV",eventLabel:R}),J=R=>["/pages/dashboard/equipment/service/details/",R],lt=R=>({eventCategory:"Unit Detail",eventAction:"View Service Request",eventLabel:R});function r(R,U){if(1&R&&(o.\u0275\u0275elementStart(0,"tr")(1,"td",8)(2,"a",9),o.\u0275\u0275text(3),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(4,"td",10),o.\u0275\u0275text(5),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(6,"td",10),o.\u0275\u0275text(7),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(8,"td",11),o.\u0275\u0275text(9),o.\u0275\u0275elementEnd()()),2&R){const st=U.$implicit;o.\u0275\u0275advance(2),o.\u0275\u0275property("routerLink",o.\u0275\u0275pureFunction1(6,J,st.serviceRequestId))("gaEvent",o.\u0275\u0275pureFunction1(8,lt,st.serviceRequestNumber)),o.\u0275\u0275advance(),o.\u0275\u0275textInterpolate1(" ",st.serviceRequestNumber?st.serviceRequestNumber:"\xa0"," "),o.\u0275\u0275advance(2),o.\u0275\u0275textInterpolate(st.type),o.\u0275\u0275advance(2),o.\u0275\u0275textInterpolate(st.status),o.\u0275\u0275advance(2),o.\u0275\u0275textInterpolate(st.summary)}}
1function I(R,U){if(1&R&&(o.\u0275\u0275elementStart(0,"div",6)(1,"div",1)(2,"table",7)(3,"thead")(4,"tr")(5,"th"),o.\u0275\u0275text(6,"Job #"),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(7,"th"),o.\u0275\u0275text(8,"Type"),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(9,"th"),o.\u0275\u0275text(10,"Status"),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(11,"th"),o.\u0275\u0275text(12,"Description"),o.\u0275\u0275elementEnd()()(),o.\u0275\u0275elementStart(13,"tbody"),o.\u0275\u0275repeaterCreate(14,r,10,10,"tr",null,o.\u0275\u0275repeaterTrackByIdentity),o.\u0275\u0275elementEnd()()()()),2&R){const st=o.\u0275\u0275nextContext(2);o.\u0275\u0275advance(14),o.\u0275\u0275repeater(st.detailResponse.srList)}}function vt(R,U){if(1&R&&(o.\u0275\u0275elementStart(0,"div",13)(1,"div",1)(2,"div")(3,"a",14)(4,"strong"),o.\u0275\u0275text(5),o.\u0275\u0275elementEnd()()(),o.\u0275\u0275elementStart(6,"div")(7,"strong"),o.\u0275\u0275text(8,"Type"),o.\u0275\u0275elementEnd(),o.\u0275\u0275text(9),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(10,"div")(11,"strong"),o.\u0275\u0275text(12,"Status"),o.\u0275\u0275elementEnd(),o.\u0275\u0275text(13),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(14,"div")(15,"strong"),o.\u0275\u0275text(16,"Description"),o.\u0275\u0275elementEnd(),o.\u0275\u0275text(17),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(18,"div")(19,"strong"),o.\u0275\u0275text(20,"Severity"),o.\u0275\u0275elementEnd(),o.\u0275\u0275text(21),o.\u0275\u0275elementEnd()()()),2&R){const st=U.$implicit;o.\u0275\u0275advance(3),o.\u0275\u0275property("routerLink",o.\u0275\u0275pureFunction1(7,J,st.serviceRequestId))("gaEvent",o.\u0275\u0275pureFunction1(9,lt,st.serviceRequestNumber)),o.\u0275\u0275advance(2),o.\u0275\u0275textInterpolate1("Job #: ",st.serviceRequestNumber?st.serviceRequestNumber:"\xa0"),o.\u0275\u0275advance(4),o.\u0275\u0275textInterpolate1(": ",st.type),o.\u0275\u0275advance(4),o.\u0275\u0275textInterpolate1(": ",st.status),o.\u0275\u0275advance(4),o.\u0275\u0275textInterpolate1(": ",st.summary),o.\u0275\u0275advance(4),o.\u0275\u0275textInterpolate1(": ",st.severity)}}function C(R,U){if(1&R&&(o.\u0275\u0275elementStart(0,"div",13)(1,"div",1)(2,"div")(3,"a",14)(4,"strong"),o.\u0275\u0275text(5),o.\u0275\u0275elementEnd()()(),o.\u0275\u0275elementStart(6,"div")(7,"strong"),o.\u0275\u0275text(8,"Type"),o.\u0275\u0275elementEnd(),o.\u0275\u0275text(9),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(10,"div")(11,"strong"),o.\u0275\u0275text(12,"Status"),o.\u0275\u0275elementEnd(),o.\u0275\u0275text(13),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(14,"div")(15,"strong"),o.\u0275\u0275text(16,"Description"),o.\u0275\u0275elementEnd(),o.\u0275\u0275text(17),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(18,"div")(19,"strong"),o.\u0275\u0275text(20,"Severity"),o.\u0275\u0275elementEnd(),o.\u0275\u0275text(21),o.\u0275\u0275elementEnd()()()),2&R){const st=U.$implicit;o.\u0275\u0275advance(3),o.\u0275\u0275property("routerLink",o.\u0275\u0275pureFunction1(7,J,st.serviceRequestId))("gaEvent",o.\u0275\u0275pureFunction1(9,lt,st.serviceRequestNumber)),o.\u0275\u0275advance(2),o.\u0275\u0275textInterpolate1("Job #: ",st.serviceRequestNumber?st.serviceRequestNumber:"\xa0"),o.\u0275\u0275advance(4),o.\u0275\u0275textInterpolate1(": ",st.type),o.\u0275\u0275advance(4),o.\u0275\u0275textInterpolate1(": ",st.status),o.\u0275\u0275advance(4),o.\u0275\u0275textInterpolate1(": ",st.summary),o.\u0275\u0275advance(4),o.\u0275\u0275textInterpolate1(": ",st.severity)}}function ht(R,U){if(1&R&&(o.\u0275\u0275elementStart(0,"div",6)(1,"div")(2,"div",12),o.\u0275\u0275repeaterCreate(3,vt,22,11,"div",13,o.\u0275\u0275repeaterTrackByIdentity),o.\u0275\u0275repeaterCreate(5,C,22,11,"div",13,o.\u0275\u0275repeaterTrackByIdentity),o.\u0275\u0275elementEnd()()()),2&R){const st=o.\u0275\u0275nextContext(2);o.\u0275\u0275advance(3),o.\u0275\u0275repeater(st.detailResponse.srList),o.\u0275\u0275advance(2),o.\u0275\u0275repeater(st.detailResponse.srList)}}function F(R,U){if(1&R){const st=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"div",1)(1,"div",2)(2,"button",3),o.\u0275\u0275listener("click",function(){o.\u0275\u0275restoreView(st);const Jt=o.\u0275\u0275nextContext();
1return o.\u0275\u0275resetView(Jt.exportSrResults())}),o.\u0275\u0275element(3,"i",4),o.\u0275\u0275text(4," Export Results "),o.\u0275\u0275elementEnd()(),o.\u0275\u0275template(5,I,16,0,"div",5)(6,ht,7,0,"div",5),o.\u0275\u0275elementEnd()}if(2&R){const st=o.\u0275\u0275nextContext();o.\u0275\u0275advance(2),o.\u0275\u0275property("gaEvent",o.\u0275\u0275pureFunction1(3,p,st.detailResponse.unitSerial)),o.\u0275\u0275advance(3),o.\u0275\u0275property("isMobileView",!1),o.\u0275\u0275advance(),o.\u0275\u0275property("isMobileView",!0)}}function ct(R,U){1&R&&(o.\u0275\u0275elementStart(0,"div")(1,"div",1),o.\u0275\u0275text(2,"No Jobs found for Unit"),o.\u0275\u0275elementEnd()())}function at(R,U){1&R&&o.\u0275\u0275text(0,"Submit a question or comment to Altec regarding these coverages ")}function rt(R,U){if(1&R){const st=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementContainerStart(0),o.\u0275\u0275elementStart(1,"a",18),o.\u0275\u0275listener("click",function(){o.\u0275\u0275restoreView(st);const Jt=o.\u0275\u0275nextContext(3);return o.\u0275\u0275resetView(Jt.openContractSupportOutput.emit())}),o.\u0275\u0275template(2,at,1,0,"ng-template",null,0,o.\u0275\u0275templateRefExtractor),o.\u0275\u0275text(4," Support "),o.\u0275\u0275elementStart(5,"span",19),o.\u0275\u0275element(6,"i",20),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementContainerEnd()}if(2&R){const st=o.\u0275\u0275reference(3);o.\u0275\u0275advance(5),o.\u0275\u0275property("ngbTooltip",st)}}function X(R,U){1&R&&o.\u0275\u0275text(0,"Submit a question or comment to Altec regarding these coverages ")}function gt(R,U){if(1&R){const st=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementContainerStart(0),o.\u0275\u0275elementStart(1,"span",21),o.\u0275\u0275element(2,"i",22),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(3,"a",18),o.\u0275\u0275listener("click",function(){o.\u0275\u0275restoreView(st);const Jt=o.\u0275\u0275nextContext(3);return o.\u0275\u0275resetView(Jt.openContractSupportOutput.emit())}),o.\u0275\u0275template(4,X,1,0,"ng-template",null,0,o.\u0275\u0275templateRefExtractor),o.\u0275\u0275text(6," Support "),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementContainerEnd()}if(2&R){const st=o.\u0275\u0275reference(5);o.\u0275\u0275advance(),o.\u0275\u0275property("ngbTooltip",st)}}function mt(R,U){if(1&R&&(o.\u0275\u0275elementStart(0,"tr")(1,"td",8),o.\u0275\u0275text(2),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(3,"td",10),o.\u0275\u0275text(4),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(5,"td",8),o.\u0275\u0275text(6),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(7,"td",11),o.\u0275\u0275text(8),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(9,"td",8),o.\u0275\u0275text(10),o.\u0275\u0275pipe(11,"date"),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(12,"td",8),o.\u0275\u0275text(13),o.\u0275\u0275pipe(14,"date"),o.\u0275\u0275elementEnd()()),2&R){const st=o.\u0275\u0275nextContext().$implicit,Dt=o.\u0275\u0275nextContext(4);o.\u0275\u0275advance(2),o.\u0275\u0275textInterpolate(st.contractNumber),o.\u0275\u0275advance(2),o.\u0275\u0275textInterpolate(st.coverageType),o.\u0275\u0275advance(2),o.\u0275\u0275textInterpolate(st.lineStatusCode),o.\u0275\u0275advance(2),o.\u0275\u0275textInterpolate1(" ","S"==st.contractNumber.charAt(0)?st.lineItemDesc:st.coverageDesc," "),o.\u0275\u0275advance(2),o.\u0275\u0275textInterpolate(o.\u0275\u0275pipeBind3(11,6,st.lineStartDate,Dt.dateFormat,"UTC")),o.\u0275\u0275advance(3),o.\u0275\u0275textInterpolate(o.\u0275\u0275pipeBind3(14,10,st.lineEndDate,Dt.dateFormat,"UTC"))}}function St(R,U){if(1&R&&o.\u0275\u0275conditionalCreate(0,mt,15,14,"tr"),2&R){const st=U.$implicit;o.\u0275\u0275conditional("ACTIVE"===st.lineStatusCode||"EXPIRED"===st.lineStatusCode||"SIGNED"===st.lineStatusCode?0:-1)}}function ft(R,U){if(1&R&&(o.\u0275\u0275elementStart(0,"div",6)(1,"div",1)(2,"table",7)(3,"thead")(4,"tr")(5,"th"),o.\u0275\u0275text(6,"Contract #"),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(7,"th"),o.\u0275\u0275text(8,"Coverage Type"),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(9,"th"),o.\u0275\u0275text(10,"Status"),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(11,"th"),o.\u0275\u0275text(12,"Description"),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(13,"th"),o.\u0275\u0275text(14,"Start Date"),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(15,"th"),o.\u0275\u0275text(16,"End Date"),o.\u0275\u0275elementEnd()()(),o.\u0275\u0275elementStart(17,"tbody"),o.\u0275\u0275repeaterCreate(18,St,1,1,null,null,o.\u0275\u0275repeaterTrackByIdentity),o.\u0275\u0275elementEnd()()()()),2&R){const st=o.\u0275\u0275nextContext(3);o.\u0275\u0275advance(18),o.\u0275\u0275repeater(st.detailResponse.serviceContracts)}}function ot(R,U){if(1&R&&(o.\u0275\u0275elementStart(0,"div",1)(1,"div")(2,"strong"),o.\u0275\u0275text(3,"Contract #"),o.\u0275\u0275elementEnd(),o.\u0275\u0275text(4),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(5,"div")(6,"strong"),o.\u0275\u0275text(7,"Coverage Type"),o.\u0275\u0275elementEnd(),o.\u0275\u0275text(8),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(9,"div")(10,"strong"),o.\u0275\u0275text(11,"Status"),o.\u0275\u0275elementEnd(),o.\u0275\u0275text(12),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(13,"div")(14,"strong"),o.\u0275\u0275text(15,"Description"),o.\u0275\u0275elementEnd(),o.\u0275\u0275text(16),o.\u
10275\u0275elementEnd(),o.\u0275\u0275elementStart(17,"div")(18,"strong"),o.\u0275\u0275text(19,"Start Date"),o.\u0275\u0275elementEnd(),o.\u0275\u0275text(20),o.\u0275\u0275pipe(21,"date"),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(22,"div")(23,"strong"),o.\u0275\u0275text(24,"End Date"),o.\u0275\u0275elementEnd(),o.\u0275\u0275text(25),o.\u0275\u0275pipe(26,"date"),o.\u0275\u0275elementEnd()()),2&R){const st=o.\u0275\u0275nextContext().$implicit,Dt=o.\u0275\u0275nextContext(4);o.\u0275\u0275advance(4),o.\u0275\u0275textInterpolate1(": ",st.contractNumber),o.\u0275\u0275advance(4),o.\u0275\u0275textInterpolate1(": ",st.coverageType),o.\u0275\u0275advance(4),o.\u0275\u0275textInterpolate1(": ",st.lineStatusCode),o.\u0275\u0275advance(4),o.\u0275\u0275textInterpolate1(": ","S"==st.contractNumber.charAt(0)?st.lineItemDesc:st.coverageDesc," "),o.\u0275\u0275advance(4),o.\u0275\u0275textInterpolate1(": ",o.\u0275\u0275pipeBind3(21,6,st.lineStartDate,Dt.dateFormat,"UTC")),o.\u0275\u0275advance(5),o.\u0275\u0275textInterpolate1(": ",o.\u0275\u0275pipeBind3(26,10,st.lineEndDate,Dt.dateFormat,"UTC"))}}
1function B(R,U){if(1&R&&(o.\u0275\u0275elementStart(0,"div",13),o.\u0275\u0275conditionalCreate(1,ot,27,14,"div",1),o.\u0275\u0275elementEnd()),2&R){const st=U.$implicit;o.\u0275\u0275advance(),o.\u0275\u0275conditional("ACTIVE"===st.lineStatusCode||"EXPIRED"===st.lineStatusCode||"SIGNED"===st.lineStatusCode?1:-1)}}function Ot(R,U){if(1&R&&(o.\u0275\u0275elementStart(0,"div",6)(1,"div")(2,"div",12),o.\u0275\u0275repeaterCreate(3,B,2,1,"div",13,o.\u0275\u0275repeaterTrackByIdentity),o.\u0275\u0275elementEnd()()()),2&R){const st=o.\u0275\u0275nextContext(3);o.\u0275\u0275advance(3),o.\u0275\u0275repeater(st.detailResponse.serviceContracts)}}function $(R,U){1&R&&(o.\u0275\u0275elementStart(0,"div",1)(1,"div",16),o.\u0275\u0275template(2,rt,7,1,"ng-container",17)(3,gt,7,1,"ng-container",17),o.\u0275\u0275elementEnd(),o.\u0275\u0275template(4,ft,20,0,"div",5)(5,Ot,5,0,"div",5),o.\u0275\u0275elementEnd()),2&R&&(o.\u0275\u0275advance(2),o.\u0275\u0275property("isMobileView",!1),o.\u0275\u0275advance(),o.\u0275\u0275property("isMobileView",!0),o.\u0275\u0275advance(),o.\u0275\u0275property("isMobileView",!1),o.\u0275\u0275advance(),o.\u0275\u0275property("isMobileView",!0))}function j(R,U){1&R&&(o.\u0275\u0275elementStart(0,"div")(1,"div",1),o.\u0275\u0275text(2,"No Contracts found for Unit"),o.\u0275\u0275elementEnd()())}function G(R,U){if(1&R&&(o.\u0275\u0275elementStart(0,"div")(1,"h4",15),o.\u0275\u0275text(2,"Coverages"),o.\u0275\u0275elementEnd(),o.\u0275\u0275conditionalCreate(3,$,6,4,"div",1),o.\u0275\u0275conditionalCreate(4,j,3,0,"div"),o.\u0275\u0275elementEnd()),2&R){const st=o.\u0275\u0275nextContext();o.\u0275\u0275advance(3),o.\u0275\u0275conditional(null!=st.detailResponse.serviceContracts&&st.detailResponse.serviceContracts.length>0?3:-1),o.\u0275\u0275advance(),o.\u0275\u0275conditional(st.isExternal||0!==st.detailResponse.serviceContracts.length?-1:4)}}T.ServicesTabContentComponent=(()=>{class R{constructor(st){this.fleetService=st,this.openContractSupportOutput=new N.EventEmitter,this.dateFormat=u.GlobalConstants.DATE_FORMAT}ngOnInit(){}exportSrResults(){window.open(this.fleetService.getSrCsvDownloadUrl({query:"",sortOptions:[],filterOptions:[],instanceId:this.detailResponse.instanceId,multiValueFilterOptions:[]}),"_blank")}static{this.\u0275fac=function(Dt){return new(Dt||R)(o.\u0275\u0275directiveInject(b.FleetService))}}static{this.\u0275cmp=o.\u0275\u0275defineComponent({type:R,selectors:[["altecConnect-services-tab-content"]],inputs:{detailResponse:"detailResponse",isExternal:"isExternal"},outputs:{openContractSupportOutput:"openContractSupportOutput"},standalone:!1,decls:7,vars:3,consts:[["toolTipContent",""],[1,"col-12"],[1,"text-end","mb-2"],[1,"btn","btn-excel","btn-sm",3,"click","gaEvent"],[1,"fa","fa-download","fa-lg"],["class","row",4,"isMobileView"],[1,"row"],[1,"table","table-bordered","table-striped"],[1,"col-sm-1"],[3,"routerLink","gaEvent"],[1,"col-sm-2"],[1,"col-sm-5"],[1,"fleet-table"],[1,"fleet-row"],[1,"refNum",3,"routerLink","gaEvent"],[1,"mb-4"],[1,"button-row","mb-2"],[4,"isMobileView"],[1,"btn-altec",3,"click"],["container","body","placement","left","triggers","mouseenter:mouseleave",3,"ngbTooltip"],[1,"fa","fa-question-circle","yellow"],["container","body","placement","left","triggers","click:blur",3,"ngbTooltip"],[1,"fa","fa-question-circle"]],template:function(Dt,Jt){1&Dt&&(o.\u0275\u0275elementStart(0,"h4"),o.\u0275\u0275text(1,"Service Jobs"),o.\u0275\u0275elementEnd(),o.\u0275\u0275conditionalCreate(2,F,7,5,"div",1),o.\u0275\u0275conditionalCreate(3,ct,3,0,"div"),o.\u0275\u0275element(4,"br")(5,"br"),o.\u0275\u0275conditionalCreate(6,G,5,2,"div")),2&Dt&&(o.\u0275\u0275advance(2),o.\u0275\u0275conditional(null!=Jt.detailResponse.srList&&Jt.detailResponse.srList.length>0?2:-1),o.\u0275\u0275advance(),o.\u0275\u0275conditional(0===Jt.detailResponse.srList.length?3:-1),o.\u0275\u0275advance(3),o.\u0275\u0275conditional(Jt.isExternal||Jt.detailResponse.globalRental?-1:6))},dependencies:[g.GaEventDirective,h.RouterLink,D.SelectiveView,f.NgbTooltip,v.DatePipe],styles:[".table[_ngcontent-%COMP%]{margin-bottom:15px}td[_ngcontent-%COMP%]{border-top:0!important;padding:15px 8px!important;vertical-align:middle!important}th[_ngcontent-%COMP%]{border-bottom:0!important;position:sticky;top:0;z-index:1;background:#fff}.table-container[_ngcontent-%COMP%]{overflow-y:auto}@media(min-width:768px){.table-container[_ngcontent-%COMP%]{height:260px}}@media(max-width:767px){.table-container[_ngcontent-%COMP%]{height:400px}}
1.fa-question-circle[_ngcontent-%COMP%]{font-size:16px;margin:0 5px;opacity:1}.fa-question-circle.yellow[_ngcontent-%COMP%]{color:#aa7d0b}.button-row[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-end}@media(max-width:576px){.btn-excel[_ngcontent-%COMP%]{width:100%}}"]})}}return R})()},97019(Ht,T,d){"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.TabbedAnalyticsTabContentComponent=void 0;const S=d(31635),N=d(49849),O=d(62190),o=(d(6324),d(83352)),b=d(59091),D=(d(21916),d(51186),d(65041)),f=S.__importDefault(d(97586)),v=d(43481),p=S.__importStar(d(49849)),J=S.__importStar(d(6324)),lt=S.__importStar(d(21916)),r=S.__importStar(d(51186)),I=S.__importStar(d(92325)),vt=S.__importStar(d(74348)),C=S.__importStar(d(21691)),ht=S.__importStar(d(75950)),F=S.__importStar(d(30222)),ct=S.__importStar(d(36862)),at=S.__importStar(d(57504)),rt=S.__importStar(d(13960)),X=S.__importStar(d(77279)),gt=S.__importStar(d(60177)),mt=()=>({eventCategory:"Unit Detail",eventAction:"Tab Click",eventLabel:"Analytics - Event Log"}),St=()=>({eventCategory:"Unit Detail",eventAction:"Tab Click",eventLabel:"Analytics - Notification Management"}),ft=()=>({eventCategory:"Unit Detail",eventAction:"Link Click",eventLabel:"Last Known Location"}),ot=()=>({eventCategory:"Unit Detail",eventAction:"Tab Click",eventLabel:"Analytics - JEMS"}),B=()=>({eventCategory:"Unit Detail",eventAction:"Tab Click",eventLabel:"Vehicle Status"}),Ot=()=>({eventCategory:"Unit Detail",eventAction:"Tab Click",eventLabel:"DTC Log"});function $(xt,q){if(1&xt&&(p.\u0275\u0275elementStart(0,"span"),p.\u0275\u0275text(1),p.\u0275\u0275elementEnd()),2&xt){const Tt=p.\u0275\u0275nextContext();p.\u0275\u0275advance(),p.\u0275\u0275textInterpolate(Tt.closestAddress)}}function j(xt,q){if(1&xt){const Tt=p.\u0275\u0275getCurrentView();p.\u0275\u0275elementStart(0,"a",12),p.\u0275\u0275listener("click",function(){p.\u0275\u0275restoreView(Tt);const dt=p.\u0275\u0275nextContext();
1return p.\u0275\u0275resetView(dt.openEventMap())}),p.\u0275\u0275elementStart(1,"div"),p.\u0275\u0275text(2),p.\u0275\u0275elementEnd()()}if(2&xt){const Tt=p.\u0275\u0275nextContext();p.\u0275\u0275property("gaEvent",p.\u0275\u0275pureFunction0(4,ft)),p.\u0275\u0275advance(),p.\u0275\u0275classProp("skeleton-loading",Tt.loadingAssetData),p.\u0275\u0275advance(),p.\u0275\u0275textInterpolate(Tt.closestAddress)}}function G(xt,q){1&xt&&p.\u0275\u0275text(0,"Shows the last Altec TCU activity, which may not include equipment data. ")}function k(xt,q){if(1&xt&&p.\u0275\u0275element(0,"app-event-log",13),2&xt){const Tt=p.\u0275\u0275nextContext();p.\u0275\u0275property("instanceId",Tt.instanceId)("isUnitDetail",!0)("telematicsData",Tt.telematicsData)("filterEventLogObservable",Tt.filterEventLogObservable)("exportObservable",Tt.exportObservable)}}function R(xt,q){if(1&xt){const Tt=p.\u0275\u0275getCurrentView();p.\u0275\u0275elementStart(0,"altecConnect-jems-insights-tab-content",14),p.\u0275\u0275listener("jemsModel",function(dt){p.\u
10275\u0275restoreView(Tt);const Mt=p.\u0275\u0275nextContext(2);return p.\u0275\u0275resetView(Mt.outputJEMSModel(dt))}),p.\u0275\u0275elementEnd()}if(2&xt){const Tt=p.\u0275\u0275nextContext(2);p.\u0275\u0275property("hasJEMS",Tt.hasJEMS)("instanceId",Tt.instanceId)}}function U(xt,q){1&xt&&(p.\u0275\u0275elementStart(0,"altcon-tab-content",11),p.\u0275\u0275template(1,R,1,2,"ng-template",null,1,p.\u0275\u0275templateRefExtractor),p.\u0275\u0275elementEnd()),2&xt&&p.\u0275\u0275property("gaEvent",p.\u0275\u0275pureFunction0(3,ot))("id","jemsInsights")("title","JEMS")}function st(xt,q){if(1&xt){const Tt=p.\u0275\u0275getCurrentView();p.\u0275\u0275elementStart(0,"altec-connect-vehicle-status",15),p.\u0275\u0275listener("viewActiveDTCs",function(){p.\u0275\u0275restoreView(Tt);const dt=p.\u0275\u0275nextContext(2);return p.\u0275\u0275resetView(dt.viewActiveDTCs())}),p.\u0275\u0275elementEnd()}if(2&xt){const Tt=p.\u0275\u0275nextContext(2);p.\u0275\u0275property("instanceId",Tt.instanceId)}}function Dt(xt,q){1&xt&&(p.\u0275\u0275elementStart(0,"altcon-tab-content",11),p.\u0275\u0275template(1,st,1,1,"ng-template",null,1,p.\u0275\u0275templateRefExtractor),p.\u0275\u0275elementEnd()),2&xt&&p.\u0275\u0275property("gaEvent",p.\u0275\u0275pureFunction0(3,B))("id","vehicleStatus")("title","Vehicle Status")}function Jt(xt,q){if(1&xt&&p.\u0275\u0275element(0,"altec-connect-dtc-log",16),2&xt){const Tt=p.\u0275\u0275nextContext(2);p.\u0275\u0275property("instanceId",Tt.instanceId)("isActiveDTCFilter",Tt.isActiveDTCFilter)}}function bt(xt,q){1&xt&&(p.\u0275\u0275elementStart(0,"altcon-tab-content",11),p.\u0275\u0275template(1,Jt,1,2,"ng-template",null,1,p.\u0275\u0275templateRefExtractor),p.\u0275\u0275elementEnd()),2&xt&&p.\u0275\u0275property("gaEvent",p.\u0275\u0275pureFunction0(3,Ot))("id","dtcLog")("title","DTC Log")}function kt(xt,q){if(1&xt&&p.\u0275\u0275element(0,"altecConnect-notifications-tab-content",17),2&xt){const Tt=p.\u0275\u0275nextContext();p.\u0275\u0275property("telematicsData",Tt.telematicsData)("accountIdForRelationships",Tt.accountIdForRelationships)("instanceId",Tt.instanceId)}}T.TabbedAnalyticsTabContentComponent=(()=>{class xt{constructor(Tt,_t,dt){this.modalService=Tt,this.fleetService=_t,this.launchDarklyService=dt,this.activeAnalyticsTab="eventLog",this.jemsModel=new N.EventEmitter,this.tabletBreakpoint=o.GlobalConstants.TABLET_SIZE_BREAKPOINT,this.modalDefaultOptions=o.GlobalConstants.MODAL_DEFAULT_OPTIONS,this.currentTabSubject=new b.BehaviorSubject(""),this.filterEventLogSubject=new b.Subject,this.filterEventLogObservable=this.filterEventLogSubject.asObservable(),this.exportSubject=new b.Subject,this.exportObservable=this.exportSubject.asObservable(),this.assetSignals=[],this.isActiveDTCFilter=!1,this.unsubscribe$=new b.Subject}ngOnInit(){const Tt=new Date,_t=f.default.tz.guess(),dt=f.default.tz(new Date,_t);this.timeZoneOffset=Tt.getTimezoneOffset(),this.timeZoneAbbreviation=dt.zoneAbbr(),this.$darkly_unitDTC_phaseOne=this.launchDarklyService.getFlag(D.LDFeatureFlag.unitDtcPhaseOne),this.$darkly_unitDTC_phaseTwo=this.launchDarklyService.getFlag(D.LDFeatureFlag.unitDtcPhaseTwo),this.currentTabSubject=new b.BehaviorSubject(this.activeAnalyticsTab),this.currentTabSubject.pipe((0,v.takeUntil)(this.unsubscribe$)).subscribe(Mt=>{this.activeAnalyticsTab=Mt})}openEventMap(){const Tt=this.modalService.open(O.EventMapModalComponent,this.modalDefaultOptions);Tt.componentInstance.asset=this.asset,Tt.componentInstance.showMapDetailsLink=!1}viewActiveDTCs(){this.isActiveDTCFilter=!0,this.currentTabSubject.next("dtcLog"),this.activeAnalyticsTab="dtcLog"}setEventLogFilter(){this.filterEventLogSubject.next("Unit_faults")}exportEvents(){this.exportSubject.next()}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}outputJEMSModel(Tt){this.jemsModel.emit(Tt)}static{this.\u0275fac=function(_t){return new(_t||xt)(p.\u0275\u0275directiveInject(J.NgbModal),p.\u0275\u0275directiveInject(lt.FleetService),p.\u0275\u0275directiveInject(r.LaunchDarklyService))}}static{this.\u0275cmp=p.\u0275\u0275defineComponent({type:xt,selectors:[["altecConnect-tabbed-analytics-tab-content"]],inputs:{hasJEMS:"hasJEMS",hasDevAdmin:"hasDevAdmin",activeAnalyticsTab:"activeAnalyticsTab",hasVehicleStatus:"hasVehicleStatus",telematicsData:"telematicsData",instanceId:"instanceId",accountIdForRelationships:"accountIdForRelationships",asset:"asset",closestAddress:"closestAddress",lastUpdated:"lastUpdated",assetSignals:"assetSignals"},outputs:{jemsModel:"jemsModel"},standalone:!1,decls:31,vars:26,consts:[["toolTipContent",""],["content",""],[1,"last-unit-location"],[1,"last-known-location"],[1,"float-start","link"],[1,"fa","fa-map-marker","fa-2x","pt-1","pe-2"],[1,"float-start"],["href","javascript:;",3,"gaEvent"],["tooltipClass","tooltip-bg-solid","triggers","hover click","placement","end-bottom",1,"fa","fa-info-circle",3,"ngbTooltip"],[1,"position-relative"],["id","eventLogTabEngine",3,"currentTab","initialActive"],[3,"gaEvent","id","title"],["href","javascript:;",3,"click","gaEvent"],[3,"instanceId","isUnitDetail","telematicsData","filterEventLogObservable","exportObservable"],[3,"jemsModel","hasJEMS","instanceId"],[3,"viewActiveDTCs","instanceId"],[3,"instanceId","isActiveDTCFilter"],[3,"telematicsData","accountIdForRelationships","instanceId"]],template:function(_t,dt){if(1&_t&&(p.\u0275\u0275elementStart(0,"div",2)(1,"div"),p.\u0275\u0275text(2,"Last Unit Location:"),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(3,"div",3)(4,"div",4),p.\u0275\u0275element(5,"i",5),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(6,"div",6),p.\u0275\u0275conditionalCreate(7,$,2,1,"span")(8,j,3,5,"a",7),p.\u0275\u0275elementEnd()()(),p.\u0275\u0275elementStart(9,"div",2),p.\u0275\u0275template(10,G,1,0,"ng-template",null,0,p.\u0275\u0275templateRefExtractor),p.\u0275\u0275elementStart(12,"div"),p.\u0275\u0275text(13,"Last Altec TCU Ping: "),p.\u0275\u0275element(14,"i",8),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(15,"div"),p.\u0275\u0275text(16),p.\u0275\u0275pipe(17,"date"),p.\u0275\u0275elementEnd()(),p.\u0275\u0275elementStart(18,"div",9)(19,"altcon-tab-engine",10),p.\u0275\u0275listener("currentTab",function(y){return dt.currentTabSubject.next(y)}),p.\u0275\u0275elementStart(20,"altcon-tab-content",11),p.\u0275\u0275template(21,k,1,5,"ng-template",null,1,p.\u0275\u0275templateRefExtractor),p.\u0275\u0275elementEnd(),p.\u0275\u0275conditionalCreate(23,U,3,4,"altcon-tab-content",11),p.\u0275\u0275conditionalCreate(24,Dt,3,4,"altcon-tab-content",11),p.\u0275\u0275pipe(25,"async"),p.\u0275\u0275conditionalCreate(26,bt,3,4,"altcon-tab-content",11),p.\u0275\u0275pipe(27,"async"),p.\u0275\u0275elementStart(28,"altcon-tab-content",11),p.\u0275\u0275template(29,kt,1,3,"ng-template",null,1,p.\u0275\u0275templateRefExtractor),p.\u0275\u0275elementEnd()()()),2&_t){const Mt=p.\u0275\u0275reference(11);p.\u0275\u0275advance(7),p.\u0275\u0275conditional("Not Enabled"===dt.closestAddress?7:8),p.\u0275\u0275advance(7),p.\u0275\u0275property("ngbTooltip",Mt),p.\u0275\u0275advance(),p.\u0275\u0275classProp("skeleton-loading",dt.loadingAssetData),p.\u0275\u0275advance(),p.\u0275\u0275textInterpolate2("",p.\u0275\u0275pipeBind3(17,16,dt.lastUpdated,"MMM d, y, h:mm:ss a",dt.timeZoneAbbreviation),"\xa0",dt.timeZoneAbbreviation),p.\u0275\u0275advance(3),p.\u0275\u0275property("initialActive",dt.activeAnalyticsTab),p.\u0275\u0275advance(),p.\u0275\u0275property("gaEvent",p.\u0275\u0275pureFunction0(24,mt))("id","eventLog")("title","Event Log"),p.\u0275\u0275advance(3),p.\u0275\u0275conditional(dt.hasJEMS?23:-1),p.\u0275\u0275advance(),p.\u0275\u0275conditional(!0===p.\u0275\u0275pipeBind1(25,20,dt.$darkly_unitDTC_phaseOne)?24:-1),p.\u0275\u0275advance(2),p.\u0275\u0275conditional(!0===p.\u0275\u0275pipeBind1(27,22,dt.$darkly_unitDTC_phaseTwo)?26:-1),p.\u0275\u0275advance(2),p.\u0275\u0275property("gaEvent",p.\u0275\u0275pureFunction0(25,St))("id","notMan")("title","Notification Management")}},dependencies:[I.GaEventDirective,vt.TabEngineComponent,C.TabContentDirective,ht.EventLogComponent,F.VehicleStatusComponent,ct.DtcLogComponent,at.NgbTooltip,rt.NotificationsTabContentComponent,X.JemsInsightsTabContentComponent,gt.AsyncPipe,gt.DatePipe],styles:[".last-known-location[_ngcontent-%COMP%]{display:flex;align-items:center}.skeleton-loading[_ngcontent-%COMP%]{color:transparent;background-color:#aaa;animation-name:_ngcontent-%COMP%_loading-color-animation;animation-duration:2s;animation-iteration-count:infinite;width:100px;height:20px}[_ngcontent-%COMP%]:root{--bs-gutter-x: 1.5rem;--bs-gutter-y: 1.5rem}.d-flex[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{float:none}.col[_ngcontent-%COMP%]{flex:1 0 0;padding-left:var(--bs-gutter-x, 1.5rem);padding-right:var(--bs-gutter-x, 1.5rem)}@media only screen and (min-width:576px){.col-sm-auto[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;max-width:none}}@media only screen and (min-width:768px){.col-md-auto[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;max-width:none}}.col-auto[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;max-width:100%;padding-left:var(--bs-gutter-x, 1.5rem);padding-right:var(--bs-gutter-x, 1.5rem)}.justify-content-center[_ngcontent-%COMP%]{justify-content:center}.justify-content-end[_ngcontent-%COMP%]{justify-content:end}.align-items-center[_ngcontent-%COMP%]{align-items:center}.align-items-end[_ngcontent-%COMP%]{align-items:end}.flex-column-reverse[_ngcontent-%COMP%]{flex-direction:column-reverse}.d-flex[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}@media only screen and (min-width:768px){.d-md-block[_ngcontent-%COMP%]{display:block}}@media only screen and (min-width:768px){.d-md-none[_ngcontent-%COMP%]{display:none}}@media only screen and (min-width:768px){.d-md-flex[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}}@media only screen and (min-width:992px){.d-lg-none[_ngcontent-%COMP%]{display:none!important}}@media only screen and (min-width:992px){.d-lg-block[_ngcontent-%COMP%]{display:block!important}}.w-100[_ngcontent-%COMP%]{width:100%!important}.h-100[_ngcontent-%COMP%]{height:100%!important}.px-3[_ngcontent-%COMP%]{padding-left:15px!important;padding-right:15px!important}.pr-0[_ngcontent-%COMP%]{padding-right:0!important}.pl-0[_ngcontent-%COMP%]{padding-left:0!important}.pt-3[_ngcontent-%COMP%]{padding-top:1rem}.pb-3[_ngcontent-%COMP%]{padding-bottom:1rem}.mb-3[_ngcontent-%COMP%]{margin-bottom:1rem}.pb-2[_ngcontent-%COMP%]{padding-bottom:.5rem}@media print{.no-print[_ngcontent-%COMP%]{display:none!important}}.m-0[_ngcontent-%COMP%]{margin:0!important}.mt-0[_ngcontent-%COMP%]{margin-top:0!important}.mb-0[_ngcontent-%COMP%]{margin-bottom:0!important}.ms-0[_ngcontent-%COMP%]{margin-left:0!important}.me-0[_ngcontent-%COMP%]{margin-right:0!important}.mx-0[_ngcontent-%COMP%]{margin-left:0!important;margin-right:0!important}.my-0[_ngcontent-%COMP%]{margin-top:0!important;margin-bottom:0!important}.p-0[_ngcontent-%COMP%]{padding:0!important}.pt-0[_ngcontent-%COMP%]{padding-top:0!important}.pb-0[_ngcontent-%COMP%]{padding-bottom:0!important}.ps-0[_ngcontent-%COMP%]{padding-left:0!important}.pe-0[_ngcontent-%COMP%]{padding-right:0!important}.px-0[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.py-0[_ngcontent-%COMP%]{padding-top:0!important;padding-bottom:0!important}.m-1[_ngcontent-%COMP%]{margin:.25rem!important}.mt-1[_ngcontent-%COMP%]{margin-top:.25rem!important}.mb-1[_ngcontent-%COMP%]{margin-bottom:.25rem!important}.ms-1[_ngcontent-%COMP%]{margin-left:.25rem!important}.me-1[_ngcontent-%COMP%]{margin-right:.25rem!important}.mx-1[_ngcontent-%COMP%]{margin-left:.25rem!important;margin-right:.25rem!important}.my-1[_ngcontent-%COMP%]{margin-top:.25rem!important;margin-bottom:.25rem!important}.p-1[_ngcontent-%COMP%]{padding:.25rem!important}.pt-1[_ngcontent-%COMP%]{padding-top:.25rem!important}.pb-1[_ngcontent-%COMP%]{padding-bottom:.25rem!important}.ps-1[_ngcontent-%COMP%]{padding-left:.25rem!important}.pe-1[_ngcontent-%COMP%]{padding-right:.25rem!important}.px-1[_ngcontent-%COMP%]{padding-left:.25rem!important;padding-right:.25rem!important}.py-1[_ngcontent-%COMP%]{padding-top:.25rem!important;padding-bottom:.25rem!important}.m-2[_ngcontent-%COMP%]{margin:.5rem!important}.mt-2[_ngcontent-%COMP%]{margin-top:.5rem!important}.mb-2[_ngcontent-%COMP%]{margin-bottom:.5rem!important}.ms-2[_ngcontent-%COMP%]{margin-left:.5rem!important}.me-2[_ngcontent-%COMP%]{margin-right:.5rem!important}.mx-2[_ngcontent-%COMP%]{margin-left:.5rem!important;margin-right:.5rem!important}.my-2[_ngcontent-%COMP%]{margin-top:.5rem!important;margin-bottom:.5rem!important}.p-2[_ngcontent-%COMP%]{padding:.5rem!important}.pt-2[_ngcontent-%COMP%]{padding-top:.5rem!important}.pb-2[_ngcontent-%COMP%]{padding-bottom:.5rem!important}.ps-2[_ngcontent-%COMP%]{padding-left:.5rem!important}
1.pe-2[_ngcontent-%COMP%]{padding-right:.5rem!important}.px-2[_ngcontent-%COMP%]{padding-left:.5rem!important;padding-right:.5rem!important}.py-2[_ngcontent-%COMP%]{padding-top:.5rem!important;padding-bottom:.5rem!important}.m-3[_ngcontent-%COMP%]{margin:1rem!important}.mt-3[_ngcontent-%COMP%]{margin-top:1rem!important}.mb-3[_ngcontent-%COMP%]{margin-bottom:1rem!important}.ms-3[_ngcontent-%COMP%]{margin-left:1rem!important}.me-3[_ngcontent-%COMP%]{margin-right:1rem!important}.mx-3[_ngcontent-%COMP%]{margin-left:1rem!important;margin-right:1rem!important}.my-3[_ngcontent-%COMP%]{margin-top:1rem!important;margin-bottom:1rem!important}.p-3[_ngcontent-%COMP%]{padding:1rem!important}.pt-3[_ngcontent-%COMP%]{padding-top:1rem!important}.pb-3[_ngcontent-%COMP%]{padding-bottom:1rem!important}.ps-3[_ngcontent-%COMP%]{padding-left:1rem!important}.pe-3[_ngcontent-%COMP%]{padding-right:1rem!important}.px-3[_ngcontent-%COMP%]{padding-left:1rem!important;padding-right:1rem!important}.py-3[_ngcontent-%COMP%]{padding-top:1rem!important;padding-bottom:1rem!important}.m-4[_ngcontent-%COMP%]{margin:1.5rem!important}.mt-4[_ngcontent-%COMP%]{margin-top:1.5rem!important}.mb-4[_ngcontent-%COMP%]{margin-bottom:1.5rem!important}.ms-4[_ngcontent-%COMP%]{margin-left:1.5rem!important}.me-4[_ngcontent-%COMP%]{margin-right:1.5rem!important}.mx-4[_ngcontent-%COMP%]{margin-left:1.5rem!important;margin-right:1.5rem!important}.my-4[_ngcontent-%COMP%]{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.p-4[_ngcontent-%COMP%]{padding:1.5rem!important}.pt-4[_ngcontent-%COMP%]{padding-top:1.5rem!important}.pb-4[_ngcontent-%COMP%]{padding-bottom:1.5rem!important}.ps-4[_ngcontent-%COMP%]{padding-left:1.5rem!important}.pe-4[_ngcontent-%COMP%]{padding-right:1.5rem!important}.px-4[_ngcontent-%COMP%]{padding-left:1.5rem!important;padding-right:1.5rem!important}.py-4[_ngcontent-%COMP%]{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.m-5[_ngcontent-%COMP%]{margin:3rem!important}.mt-5[_ngcontent-%COMP%]{margin-top:3rem!important}.mb-5[_ngcontent-%COMP%]{margin-bottom:3rem!important}.ms-5[_ngcontent-%COMP%]{margin-left:3rem!important}.me-5[_ngcontent-%COMP%]{margin-right:3rem!important}.mx-5[_ngcontent-%COMP%]{margin-left:3rem!important;margin-right:3rem!important}.my-5[_ngcontent-%COMP%]{margin-top:3rem!important;margin-bottom:3rem!important}.p-5[_ngcontent-%COMP%]{padding:3rem!important}.pt-5[_ngcontent-%COMP%]{padding-top:3rem!important}.pb-5[_ngcontent-%COMP%]{padding-bottom:3rem!important}.ps-5[_ngcontent-%COMP%]{padding-left:3rem!important}.pe-5[_ngcontent-%COMP%]{padding-right:3rem!important}.px-5[_ngcontent-%COMP%]{padding-left:3rem!important;padding-right:3rem!important}.py-5[_ngcontent-%COMP%]{padding-top:3rem!important;padding-bottom:3rem!important}.last-unit-location[_ngcontent-%COMP%]{display:grid;grid-template-rows:auto;grid-template-columns:20% 50%;padding-bottom:var(--bs-gutter-x, 1.5rem);padding-left:var(--bs-gutter-x, 1.5rem)}@media(max-width:820px){.last-unit-location[_ngcontent-%COMP%]{display:grid;grid-template-rows:auto;grid-template-columns:30% 50%;padding-bottom:var(--bs-gutter-x, 1.5rem);padding-left:var(--bs-gutter-x, 1.5rem)}}@keyframes _ngcontent-%COMP%_loading-color-animation{0%{background-color:#aaa}50%{background-color:#ddd}to{background-color:#aaa}}"]})}}return xt})()},24893(Ht,T){"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.DETAIL_EVENT_CATEGORY=T.SEARCH_EVENT_CATEGORY=void 0,T.SEARCH_EVENT_CATEGORY="Fleet Search",T.DETAIL_EVENT_CATEGORY="Fleet Detail"},9968(Ht,T,d){"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.FleetModule=void 0;const S=d(31635),N=d(60177),O=d(79591),u=d(91898),o=d(2490),b=d(21445),g=d(32788),h=d(83352),D=d(84341),f=d(69812),v=d(60102),p=d(6324),J=d(85049),lt=d(5881),r=d(12287),I=d(13463),vt=d(34752),C=d(19704),ht=d(18917),F=d(65549),ct=d(89823),at=d(57687),rt=d(26891),X=d(39027),gt=d(97019),mt=d(49764),St=d(55937),ft=d(82920),ot=d(68312),B=d(15736),Ot=d(79702),$=d(96478),j=d(16544),G=d(89414),k=d(35250),R=d(40509),U=d(43332),st=d(8504),Dt=S.__importStar(d(49849)),bt=(S.__importStar(d(60102)),S.__importStar(d(92325))),kt=S.__importStar(d(47291)),K=S.__importStar(d(74348)),xt=S.__importStar(d(21691)),q=S.__importStar(d(60177)),Tt=S.__importStar(d(20145)),_t=S.__importStar(d(84341)),dt=S.__importStar(d(69673)),Mt=S.__importStar(d(43332));T.FleetModule=(()=>{class x{constructor(){}static{this.\u0275fac=function(tt){return new(tt||x)}}static{this.\u0275mod=Dt.\u0275\u0275defineNgModule({type:x})}static{this.\u0275inj=Dt.\u0275\u0275defineInjector({providers:[o.C
1ookieService,O.GoogleServicesService,N.DatePipe],imports:[N.CommonModule,h.CommonProjModule,B.SearchWidgetComponent,ot.PaginationWidgetComponent,Ot.NoResultsComponent,$.BaseSearchPageComponent,D.FormsModule,vt.AppRoutingModule,O.GoogleAnalyticsModule,u.CommonPrivilegeModule,b.SelectiveViewModule,g.ResponsiveTabsModule,D.ReactiveFormsModule,k.AddToListModalComponent,G.AddAllToCartModalComponent,f.TelematicsModule,C.JemsModule,mt.JemsInsightsModule,v.JoyrideModule.forChild(),p.NgbModule,R.InlineDaterangeComponent,St.AlgoliaStorefrontModule,ft.CommerceItemComponent,U.GlobalFilterComponent,st.OrderableStatusComponent,j.AlertComponent]})}}return x})(),Dt.\u0275\u0275setComponentScope(I.FleetDetailComponent,function(){return[bt.GaEventDirective,kt.HasPrivilegeDirective,K.TabEngineComponent,xt.TabContentDirective,r.FleetDetailSummaryBoxComponent,lt.FleetUnitMissingComponent,ht.SearchAndOrderPartsTabContentComponent,F.ServicesTabContentComponent,ct.AltecProductNoticesTabContentComponent,at.DocumentationTabContentComponent,rt.GroupsAndContactsTabContentComponent,X.PdiTabContentComponent,gt.TabbedAnalyticsTabContentComponent]},[]),Dt.\u0275\u0275setComponentScope(J.FleetEditUnitComponent,function(){return[q.NgClass,bt.GaEventDirective,Tt.AddressAutocompleteComponent,_t.\u0275NgNoValidate,_t.DefaultValueAccessor,_t.NgControlStatus,_t.NgControlStatusGroup,_t.NgModel,_t.NgForm,dt.HasAnyPrivilegesDirective,Mt.GlobalFilterComponent,r.FleetDetailSummaryBoxComponent,lt.FleetUnitMissingComponent]},[])},21481(Ht,T,d){"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.BomSearchComponent=void 0;const S=d(31635),N=d(59091),b=(d(7901),d(84341),d(91898),d(83352)),g=d(43481),h=d(80732),lt=(d(21916),d(49729),d(6127),d(26773),d(20851),d(33447)),r=S.__importStar(d(49849)),I=S.__importStar(d(21916)),vt=S.__importStar(d(20851)),C=S.__importStar(d(7901)),ht=S.__importStar(d(84341)),F=S.__importStar(d(91898)),ct=S.__importStar(d(26773)),at=S.__importStar(d(83352)),rt=S.__importStar(d(6127)),X=S.__importStar(d(49729)),gt=S.__importStar(d(40787)),mt=S.__importStar(d(68312)),St=S.__importStar(d(79702)),ft=S.__importStar(d(69673)),ot=S.__importStar(d(79777)),B=S.__importStar(d(43332)),Ot=()=>["B2B_View_Parent_Holding","B2B_View_Organization_Groups"],$=E=>[E],j=()=>({external:!0}),G=E=>({itemsInStock:E}),k=()=>[];function R(E,tt){1&E&&(r.\u0275\u0275elementContainerStart(0),r.\u0275\u0275element(1,"altcon-global-filter"),r.\u0275\u0275elementContainerEnd())}function U(E,tt){if(1&E&&(r.\u0275\u0275elementStart(0,"a",7),r.\u0275\u0275element(1,"i",22),r.\u0275\u0275text(2),r.\u0275\u0275elementEnd()),2&E){const V=r.\u0275\u0275nextContext(2);r.\u0275\u0275property("routerLink",r.\u0275\u0275pureFunction1(3,$,"../../details/"+V.responseData.searchInstanceParts.unitSummary.instanceId)),r.\u0275\u0275advance(2),r.\u0275\u0275textInterpolate2(" Back to ",V.responseData.searchInstanceParts.unitSummary.model,", #",V.responseData.searchInstanceParts.unitSummary.customerVehicleNumber," ")}}function st(E,tt){if(1&E&&(r.\u0275\u0275elementStart(0,"a",8),r.\u0275\u0275element(1,"i",22),r.\u0275\u0275text(2),r.\u0275\u0275elementEnd()),2&E){const V=r.\u0275\u0275nextContext(2);r.\u0275\u0275property("routerLink",r.\u0275\u0275pureFunction1(4,$,"../../details/"+V.responseData.searchInstanceParts.unitSummary.unitSerial))("queryParams",r.\u0275\u0275pureFunction0(6,j)),r.\u0275\u0275advance(2),r.\u0275\u0275textInterpolate2(" Back to ",V.responseData.searchInstanceParts.unitSummary.model,", #",V.responseData.searchInstanceParts.unitSummary.unitSerial," ")}}function Dt(E,tt){if(1&E&&(r.\u0275\u0275elementStart(0,"span"),r.\u0275\u0275element(1,"altcon-resultnumberdisplay",23),r.\u0275\u0275elementEnd()),2&E){const V=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(),r.\u0275\u0275property("totalRecordSize",V.responseData.searchInstanceParts.parts.totalRecords)("itemsPerPage",V.requestData.instancePartsRequest.size)("initialPageNum",V.requestData.instancePartsRequest.page)}}function Jt(E,tt){if(1&E&&(r.\u0275\u0275elementStart(0,"div",9),r.\u0275\u0275text(1),r.\u0275\u0275elementEnd()),2&E){const V=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(),r.\u0275\u0275textInterpolate1(' Search results for "',V.requestData.instancePartsRequest.query,'" ')}}function bt(E,tt){if(1&E){const V=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"span",24),r.\u0275\u0275listener("click",function(){r.\u0275\u0275restoreView(V);const nt=r.\u0275\u0275nextContext(2);
1return r.\u0275\u0275resetView(nt.clearSearch())}),r.\u0275\u0275elementEnd()}}function kt(E,tt){if(1&E){const V=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"button",28),r.\u0275\u0275listener("click",function(){r.\u0275\u0275restoreView(V);const nt=r.\u0275\u0275nextContext(4);return r.\u0275\u0275resetView(nt.addSelectedToCart())}),r.\u0275\u0275text(1," Add All Selected to Cart "),r.\u0275\u0275elementEnd()}if(2&E){const V=r.\u0275\u0275nextContext(4);r.\u0275\u0275classProp("btn-disabled",!V.productsSelected)}}function K(E,tt){if(1&E){const V=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"div",25)(1,"label")(2,"input",26),r.\u0275\u0275twoWayListener("ngModelChange",function(nt){r.\u0275\u0275restoreView(V);const Gt=r.\u0275\u0275nextContext(3);return r.\u0275\u0275twoWayBindingSet(Gt.allSelected,nt)||(Gt.allSelected=nt),r.\u0275\u0275resetView(nt)}),r.\u0275\u0275listener("change",function(nt){r.\u0275\u0275restoreView(V);const Gt=r.\u0275\u0275nextContext(3);return r.\u0275\u0275resetView(Gt.allSelectedChanged(nt))}),r.\u0275\u0275elementEnd(),r.\u0275\u0275text(3," \xa0Select All "),r.\u0275\u0275elementEnd(),r.\u0275\u0275conditionalCreate(4,kt,2,2,"button",27),r.\u0275\u0275elementEnd()}if(2&E){const V=r.\u0275\u0275nextContext(3);r.\u0275\u0275advance(2),r.\u0275\u0275twoWayProperty("ngModel",V.allSelected),r.\u0275\u0275advance(2),r.\u0275\u0275conditional(V.anyOrderable()?4:-1)}}function xt(E,tt){if(1&E&&(r.\u0275\u0275elementStart(0,"div",19),r.\u0275\u0275conditionalCreate(1,K,5,2,"div",25),r.\u0275\u0275elementEnd()),2&E){const V=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(),r.\u0275\u0275conditional(V.isDataAvailable&&V.anyOrderable()?1:-1)}}function q(E,tt){if(1&E){const V=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"altecConnect-product-row",30),r.\u0275\u0275listener("productSelectedEvt",function(nt){r.\u0275\u0275restoreView(V);const Gt=r.\u0275\u0275nextContext(3);return r.\u0275\u0275resetView(Gt.updateSelectedProducts(nt))})("quantityChangedEvt",function(nt){r.\u0275\u0275restoreView(V);const Gt=r.\u0275\u0275nextContext(3);return r.\u0275\u0275resetView(Gt.updateSelectedQuantity(nt))})("removeEvt",function(nt){r.\u0275\u0275restoreView(V);const Gt=r.\u0275\u0275nextContext(3);return r.\u0275\u0275resetView(Gt.removeProduct(nt))}),r.\u0275\u0275elementEnd()}if(2&E){const V=tt.$implicit,Et=tt.$index,nt=r.\u0275\u0275nextContext(3);r.\u0275\u0275property("imageUrl",nt.getImageUrl(V))("showPrice",V.childSkus[0].showPrice&&null!==V.childSkus[0].partPrice)("displayName",V.childSkus[0].displayName)("inStock",r.\u0275\u0275pureFunction1(27,G,nt.itemsInStock))("partNumber",V.childSkus[0].id)("partPrice",V.childSkus[0].partPrice)("partUom",V.childSkus[0].partUom)("orderable",nt.checkIfOrderable(V.childSkus[0].showOnline,V.childSkus[0].purchasable,V.childSkus[0].showPrice))("stripeTable",Et%2==0)("selectedUnitSerial",nt.responseData.searchInstanceParts.unitSummary.unitSerial)("canOrderParts",nt.canOrderParts)("canViewPrices",nt.canViewPrices)("id",V.id)("relatedParts",V.fixedRelatedProducts?V.fixedRelatedProducts:r.\u0275\u0275pureFunction0(29,k))("onBom",!0)("index",Et)("showSelectCheck",nt.anyOrderable())("allSelected",nt.allSelected)("standalone",!0)("hideStatusAndShipDate",!0)("shipByDate",V.childSkus[0].shipByDate)("showShipDateMessage",nt.showShipDateMessage)("reservedQuantity",V.childSkus[0].reservedQuantity)("quantityOnHand",V.childSkus[0].quantityOnHand)("fullLeadTime",V.childSkus[0].partLeadTime)("minMinmaxQuantity",V.childSkus[0].minMinmaxQuantity)("maxMinmaxQuantity",V.childSkus[0].maxMinmaxQuantity)}}function Tt(E,tt){if(1&E&&(r.\u0275\u0275elementStart(0,"span",20),r.\u0275\u0275repeaterCreate(1,q,1,30,"altecConnect-product-row",29,r.\u0275\u0275repeaterTrackByIdentity),r.\u0275\u0275elementEnd()),2&E){const V=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(),r.\u0275\u0275repeater(V.responseData.searchInstanceParts.parts.content)}}function _t(E,tt){if(1&E){const V=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"button",33),r.\u0275\u0275listener("click",function(){r.\u0275\u0275restoreView(V);const nt=r.\u0275\u0275nextContext(3);
1return r.\u0275\u0275resetView(nt.addSelectedToCart())}),r.\u0275\u0275text(1," Add All Selected to Cart "),r.\u0275\u0275elementEnd()}if(2&E){const V=r.\u0275\u0275nextContext(3);r.\u0275\u0275classProp("btn-disabled",!V.productsSelected)}}function dt(E,tt){if(1&E&&(r.\u0275\u0275elementStart(0,"div",3)(1,"div",31),r.\u0275\u0275conditionalCreate(2,_t,2,2,"button",32),r.\u0275\u0275elementEnd()()),2&E){const V=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(2),r.\u0275\u0275conditional(V.anyOrderable()?2:-1)}}function Mt(E,tt){if(1&E){const V=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"div",3)(1,"div",34)(2,"nav",35)(3,"altcon-pagination",36),r.\u0275\u0275listener("paging",function(nt){r.\u0275\u0275restoreView(V);const Gt=r.\u0275\u0275nextContext(2);return r.\u0275\u0275resetView(Gt.paginationRequest(nt))}),r.\u0275\u0275elementEnd()()()()}if(2&E){const V=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(3),r.\u0275\u0275property("pageSize",V.requestData.instancePartsRequest.size)("numberOfItems",V.responseData.searchInstanceParts.parts.totalRecords)("index",V.requestData.instancePartsRequest.page)}}function y(E,tt){1&E&&(r.\u0275\u0275elementStart(0,"div",21),r.\u0275\u0275element(1,"app-no-results"),r.\u0275\u0275elementEnd())}function x(E,tt){if(1&E){const V=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"div")(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"h3",5),r.\u0275\u0275text(6,"Part Search"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(7,"h4",6),r.\u0275\u0275conditionalCreate(8,U,3,5,"a",7),r.\u0275\u0275conditionalCreate(9,st,3,7,"a",8),r.\u0275\u0275elementEnd()()(),r.\u0275\u0275elementStart(10,"div",3)(11,"div",9),r.\u0275\u0275conditionalCreate(12,Dt,2,3,"span"),r.\u0275\u0275elementEnd(),r.\u0275\u0275conditionalCreate(13,Jt,2,1,"div",9),r.\u0275\u0275elementEnd()(),r.\u0275\u0275elementStart(14,"div",10)(15,"form",11),r.\u0275\u0275listener("ngSubmit",function(){r.\u0275\u0275restoreView(V);const nt=r.\u0275\u0275nextContext();return r.\u0275\u0275resetView(nt.search())}),r.\u0275\u0275elementStart(16,"div",12)(17,"div",13),r.\u0275\u0275element(18,"input",14),r.\u0275\u0275conditionalCreate(19,bt,1,0,"span",15),r.\u0275\u0275elementStart(20,"button",16),r.\u0275\u0275element(21,"i",17),r.\u0275\u0275elementEnd()(),r.\u0275\u0275elementStart(22,"span"),r.\u0275\u0275text(23," Part Name or Number as shown in Bill of Materials "),r.\u0275\u0275elementEnd()()()()(),r.\u0275\u0275elementStart(24,"div",3)(25,"div",18),r.\u0275\u0275conditionalCreate(26,xt,2,1,"div",19),r.\u0275\u0275conditionalCreate(27,Tt,3,0,"span",20),r.\u0275\u0275elementEnd()(),r.\u0275\u0275conditionalCreate(28,dt,3,1,"div",3),r.\u0275\u0275conditionalCreate(29,Mt,4,3,"div",3),r.\u0275\u0275conditionalCreate(30,y,2,0,"div",21),r.\u0275\u0275elementEnd()}if(2&E){const V=r.\u0275\u0275nextContext();r.\u0275\u0275advance(8),r.\u0275\u0275conditional(V.unitSerial?-1:8),r.\u0275\u0275advance(),r.\u0275\u0275conditional(V.unitSerial?9:-1),r.\u0275\u0275advance(3),r.\u0275\u0275conditional(V.isDataAvailable?12:-1),r.\u0275\u0275advance(),r.\u0275\u0275conditional(V.isDataAvailable&&V.requestData.instancePartsRequest.query?13:-1),r.\u0275\u0275advance(2),r.\u0275\u0275property("formGroup",V.queryForm),r.\u0275\u0275advance(4),r.\u0275\u0275conditional(""!=V.formControls.query.value?19:-1),r.\u0275\u0275advance(7),r.\u0275\u0275conditional(V.isDataAvailable?26:-1),r.\u0275\u0275advance(),r.\u0275\u0275conditional(V.isDataAvailable?27:-1),r.\u0275\u0275advance(),r.\u0275\u0275conditional(V.isDataAvailable?28:-1),r.\u0275\u0275advance(),r.\u0275\u0275conditional(V.hidePagination?-1:29),r.\u0275\u0275advance(),r.\u0275\u0275conditional(V.isDataAvailable||null==V.isDataAvailable||V.loading?-1:30)}}T.BomSearchComponent=(()=>{class E{constructor(V,Et,nt,Gt,Ct,Ut,it,Ft,jt,ut){this.fleetService=V,this.loader=Et,this.route=nt,this.router=Gt,this.formBuilder=Ct,this.privileges=Ut,this.addAllToCartModal=it,this.searchRoutingService=Ft,this.httpClient=jt,this.configService=ut,this.hidePagination=!0,this.unsubscribe$=new N.Subject,this.requestData=new h.SearchInstancePartsRequest,this.stream$=new N.Observable,this.selectedProducts=[],this.isDataAvailable=!1,this.queryForm=this.formBuilder.group({query:[""]}),this.productsSelected=!1,this.allSelected=!1,this.checkingBOM=!0,this.onBOM=!0,this.loading=!0,this.initialized=!1,this.instanceId=null}get formControls(){return this.queryForm.controls}ngOnInit(){let V;
1this.loader.start(),this.checkPrivileges(),null!=this.route.snapshot.queryParamMap.get("instanceId")&&(this.instanceId=this.route.snapshot.queryParamMap.get("instanceId")),null!=this.route.snapshot.queryParamMap.get("unitSerial")&&(this.unitSerial=this.route.snapshot.queryParamMap.get("unitSerial")),null!=this.route.snapshot.queryParamMap.get("accountId")&&(this.accountId=+this.route.snapshot.queryParamMap.get("accountId")),this.searchRoutingService.routingObservable.pipe((0,g.map)(Et=>(this.loading||this.loader.start(),V=Et,Et===b.SearchRoutingService.ParamEnums.FIRST_LOAD||Et===b.SearchRoutingService.ParamEnums.POP_STATE?this.searchRoutingService.queryParamsToRequest(this.requestData.instancePartsRequest):this.requestData)),(0,g.switchMap)(Et=>(this.requestData.instanceId=this.instanceId,this.requestData.unitSerial=this.unitSerial,this.requestData.accountId=this.accountId,this.fleetService.searchInstanceParts(this.requestData).pipe((0,g.take)(1)))),(0,g.takeUntil)(this.unsubscribe$)).subscribe(Et=>{this.responseData=Et,this.responseData.searchInstanceParts.parts.content.forEach(nt=>{this.itemsInStock=nt.childSkus[0].quantityOnHand-nt.childSkus[0].reservedQuantity;let Gt=new Date;Gt=(0,lt.addBusinessDays)(Gt,this.itemsInStock>0?1:nt.childSkus[0].partLeadTime),this.showShipDateMessage=this.itemsInStock<1&&nt.childSkus[0].partLeadTime>30,nt.childSkus[0].shipByDate=Gt}),this.responseData.searchInstanceParts&&this.responseData.searchInstanceParts.parts.totalRecords>0?(this.isDataAvailable=!0,this.responseData.searchInstanceParts.parts.content.forEach(nt=>{this.httpClient.get(this.configService.replacePartImageUrl+nt.id).subscribe(Gt=>{Gt.digitalassets.length>0&&(nt.childSkus[0].images=Gt.digitalassets)})}),this.hidePagination=!(this.responseData.searchInstanceParts.parts.totalRecords>this.requestData.instancePartsRequest.size)):this.isDataAvailable=!1,(V===b.SearchRoutingService.ParamEnums.FIRST_LOAD||V===b.SearchRoutingService.ParamEnums.POP_STATE)&&this.setFormContent(V),this.loading=!1,this.loader.stop()})}getImageUrl(V){return V.childSkus[0].images?V.childSkus[0].images[0]:"https://connect.altec.com/static/photos/000000000_LG.png"}setFormContent(V){this.requestData.instancePartsRequest.query&&this.formControls.query.patchValue(this.requestData.instancePartsRequest.query)}search(){this.requestData.instancePartsRequest.page=0,this.allSelected=!1,this.formControls.query&&(this.requestData.instancePartsRequest.query=this.formControls.query.value),this.searchRoutingService.queryParamMap(this.requestData)}clearSearch(){this.formControls.query.patchValue(""),this.requestData.instancePartsRequest.page=0,this.requestData.instancePartsRequest.query="",this.searchRoutingService.queryParamMap(this.requestData),this.allSelected=!1}allSelectedChanged(V){this.allSelected=V.target.checked}checkIfOrderable(V,Et,nt){return V&&Et&&nt}anyOrderable(){let V=0;for(let Et of this.responseData.searchInstanceParts.parts.content)Et.childSkus[0].showOnline&&Et.childSkus[0].purchasable&&Et.childSkus[0].showPrice&&V++;return V>0}checkPrivileges(){this.canOrderParts=this.privileges.hasPrivilege("B2B_Order_Replacement_Parts"),this.canViewPrices=this.privileges.hasPrivilege("B2B_See_Replacement_Parts_Pricing")}paginationRequest(V){this.requestData.instancePartsRequest.page=V,this.searchRoutingService.queryParamMap(this.requestData)}updateSelectedProducts(V){if(V.event.target.checked)this.selectedProducts.push(V.product);else{const Et=this.selectedProducts.indexOf(V.product);Et>-1&&this.selectedProducts.splice(Et,1)}this.productsSelected=this.selectedProducts.length>0}updateSelectedQuantity(V){const Et=this.selectedProducts.map(nt=>nt.id).indexOf(V.product.id);Et>-1?this.selectedProducts[Et]=V.product:this.selectedProducts.push(V.product),this.productsSelected=this.selectedProducts.length>0}removeProduct(V){const Et=this.selectedProducts.indexOf(V.product);Et>-1&&this.selectedProducts.splice(Et,1),this.productsSelected=this.selectedProducts.length>0}addSelectedToCart(){const V=[],Et=String(this.responseData.searchInstanceParts.unitSummary.unitSerial);for(const nt of this.selectedProducts)V.push({itemId:nt.id,quantity:nt.quantity,unitId:Et}),nt.boxChecked=!1;this.addAllToCartModal.open(V),!1!==this.allSelected&&(this.allSelected=!1)}static{this.\u0275fac=function(Et){return new(Et||E)(r.\u0275\u0275directiveInject(I.FleetService),r.\u0275\u0275directiveInject(vt.LoadingService),r.\u0275\u0275directiveInject(C.ActivatedRoute),r.\u0275\u0275directiveInject(C.Router),r.\u0275\u0275directiveInject(ht.FormBuilder),r.\u0275\u0275directiveInject(F.PrivilegeService),r.\u0275\u0275directiveInject(ct.AddAllToCartModalService),r.\u0275\u0275directiveInject(at.SearchRoutingService),r.\u0275\u0275directiveInject(rt.HttpClient),r.\u0275\u0275directiveInject(X.ConfigService))}}static{this.\u0275cmp=r.\u0275\u0275defineComponent({type:E,selectors:[["app-bom-search"]],standalone:!1,features:[r.\u0275\u0275ProvidersFeature([b.SearchRoutingService])],decls:2,vars:3,consts:[[4,"hasAnyPrivileges"],[1,"row","mt-4"],[1,"col-sm-6"],[1,"row"],[1,"col-sm-12"],[1,"mb-1"],[1,"mt-1","mb-1"],[3,"routerLink"],[3,"routerLink","queryParams"],[1,"col-12"],[1,"col-sm-6","offset-lg-2","col-lg-4","mt-3"],[3,"ngSubmit","formGroup"],[1,"mb-3"],[1,"input-group"],["formControlName","query","placeholder","Search Bill of Materials",1,"form-control","show-placeholder","no-ms-clear"],["id","search-clear",1,"fa","fa-times"],["type","submit",1,"btn-altec"],["aria-hidden","true",1,"fa","fa-search"],["id","parts-list-container",1,"col-12"],[1,"text-end","mb-2"],[1,"parts-search"],[1,"row","mt-5"],[1,"fa","fa-angle-left"],[3,"totalRecordSize","itemsPerPage","initialPageNum"],["id","search-clear",1,"fa","fa-times",3,"click"],[1,"mb-2"],["type","checkbox",1,"me-3",3,"ngModelChange","change","ngModel"],[1,"btn-altec","ms-3",3,"btn-disabled"],[1,"btn-altec","ms-3",3,"click"],[3,"imageUrl","showPrice","displayName","inStock","partNumber","partPrice","partUom","orderable","stripeTable","selectedUnitSerial","canOrderParts","canViewPrices","id","relatedParts","onBom","index","showSelectCheck","allSelected","standalone","hideStatusAndShipDate","shipByDate","showShipDateMessage","reservedQuantity","quantityOnHand","fullLeadTime","minMinmaxQuantity","max
1MinmaxQuantity"],[3,"productSelectedEvt","quantityChangedEvt","removeEvt","imageUrl","showPrice","displayName","inStock","partNumber","partPrice","partUom","orderable","stripeTable","selectedUnitSerial","canOrderParts","canViewPrices","id","relatedParts","onBom","index","showSelectCheck","allSelected","standalone","hideStatusAndShipDate","shipByDate","showShipDateMessage","reservedQuantity","quantityOnHand","fullLeadTime","minMinmaxQuantity","maxMinmaxQuantity"],[1,"col-12","text-end","mt-5","mb-4"],[1,"btn-altec",3,"btn-disabled"],[1,"btn-altec",3,"click"],[1,"col-sm-12","text-center"],["aria-label","invoice pagination navigation"],[3,"paging","pageSize","numberOfItems","index"]],template:function(Et,nt){1&Et&&(r.\u0275\u0275template(0,R,2,0,"ng-container",0),r.\u0275\u0275conditionalCreate(1,x,31,11,"div")),2&Et&&(r.\u0275\u0275property("hasAnyPrivileges",r.\u0275\u0275pureFunction0(2,Ot)),r.\u0275\u0275advance(),r.\u0275\u0275conditional(nt.loading?-1:1))},dependencies:[gt.ProductRowComponent,mt.PaginationWidgetComponent,St.NoResultsComponent,ht.\u0275NgNoValidate,ht.DefaultValueAccessor,ht.CheckboxControlValueAccessor,ht.NgControlStatus,ht.NgControlStatusGroup,ht.NgModel,C.RouterLink,ft.HasAnyPrivilegesDirective,ht.FormGroupDirective,ht.FormControlName,ot.ResultNumberDisplayComponent,B.GlobalFilterComponent],styles:[".col-sm-offset-2[_ng
1content-%COMP%]{margin-left:16.66667%}"]})}}return E})()},13463(Ht,T,d){"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.FleetDetailComponent=T.ServiceInspectionPaperwork=void 0;const S=d(31635),u=(d(49849),d(7901),d(59091)),o=d(43481),b=d(83352),h=(d(91898),S.__importStar(d(40178))),f=(d(75113),d(81025)),p=(d(21916),d(40846)),J=d(8347),r=(d(6324),d(76981)),I=d(58715),F=(d(97377),d(20851),d(60177),S.__importStar(d(49849))),ct=S.__importStar(d(21916)),at=S.__importStar(d(7901)),rt=S.__importStar(d(20851)),X=S.__importStar(d(91898)),gt=S.__importStar(d(75113)),mt=S.__importStar(d(6324)),St=S.__importStar(d(97377)),ft=S.__importStar(d(60177)),ot=()=>({eventCategory:"Unit Detail",eventAction:"Tab Click",eventLabel:"Documentation"}),B=()=>({eventCategory:"Unit Detail",eventAction:"Tab Click",eventLabel:"Parts"}),Ot=()=>({eventCategory:"Unit Detail",eventAction:"Tab Click",eventLabel:"Service"}),$=()=>({eventCategory:"Unit Detail",eventAction:"Tab Click",eventLabel:"APN"}),j=()=>({eventCategory:"Unit Detail",eventAction:"Tab Click",eventLabel:"Groups & Contacts"}),G=()=>({eventCategory:"Unit Detail",eventAction:"Tab Click",eventLabel:"Analytics"}),k=()=>({eventCategory:"Unit Detail",eventAction:"Tab Click",eventLabel:"Photos"});function R(V,Et){if(1&V&&F.\u0275\u0275element(0,"altecConnect-search-and-order-parts-tab-content",10),2&V){const nt=F.\u0275\u0275nextContext(3);F.\u0275\u0275property("detailResponse",nt.detailResponse)("isExternal",nt.isExternal)("accountIdForRelationships",nt.determineAccountIdForRelationships())}}function U(V,Et){if(1&V&&(F.\u0275\u0275elementStart(0,"altcon-tab-content",9),F.\u0275\u0275template(1,R,1,3,"ng-template",null,0,F.\u0275\u0275templateRefExtractor),F.\u0275\u0275elementEnd()),2&V){const nt=F.\u0275\u0275nextContext(2);F.\u0275\u0275property("gaEvent",F.\u0275\u0275pureFunction0(3,B))("id","parts")("title","Search & Order Parts ("+nt.detailResponse.partsPages.length+")")}}function st(V,Et){if(1&V){const nt=F.\u0275\u0275getCurrentView();F.\u0275\u0275elementStart(0,"altecConnect-services-tab-content",11),F.\u0275\u0275listener("openContractSupportOutput",function(){F.\u0275\u0275restoreView(nt);const Ct=F.\u0275\u0275nextContext(3);return F.\u0275\u0275resetView(Ct.openContractSupportModal())}),F.\u0275\u0275elementEnd()}if(2&V){const nt=F.\u0275\u0275nextContext(3);F.\u0275\u0275property("detailResponse",nt.detailResponse)("isExternal",nt.isExternal)}}function Dt(V,Et){1&V&&(F.\u0275\u0275elementStart(0,"altcon-tab-content",9),F.\u0275\u0275template(1,st,1,2,"ng-template",null,0,F.\u0275\u0275templateRefExtractor),F.\u0275\u0275elementEnd()),2&V&&F.\u0275\u0275property("gaEvent",F.\u0275\u0275pureFunction0(3,Ot))("id","service")("title","Services")}function Jt(V,Et){if(1&V&&F.\u0275\u0275element(0,"altecConnect-altec-product-notices-tab-content",12),2&V){const nt=F.\u0275\u0275nextContext(3);F.\u0275\u0275property("detailResponse",nt.detailResponse)}}function bt(V,Et){if(1&V&&(F.\u0275\u0275elementStart(0,"altcon-tab-content",9),F.\u0275\u0275template(1,Jt,1,1,"ng-template",null,0,F.\u0275\u0275templateRefExtractor),F.\u0275\u0275elementEnd()),2&V){const nt=F.\u0275\u0275nextContext(2);F.\u0275\u0275property("gaEvent",F.\u0275\u0275pureFunction0(3,$))("id","apn")("title","Altec Product Notices ("+nt.detailResponse.apnList.length+")")}}function kt(V,Et){if(1&V&&F.\u0275\u0275element(0,"altecConnect-documentation-tab-content",13),2&V){const nt=F.\u0275\u0275nextContext(2);F.\u0275\u0275property("detailResponse",nt.detailResponse)("inspectionPaperwork",nt.inspectionPaperwork)}}function K(V,Et){if(1&V){const nt=F.\u0275\u0275getCurrentView();F.\u0275\u0275elementStart(0,"altecConnect-groups-and-contacts-tab-content",14),F.\u0275\u0275listener("reinitializeParentComponent",function(){F.\u0275\u0275restoreView(nt);const Ct=F.\u0275\u0275nextContext(4);return F.\u0275\u0275resetView(Ct.initialize())}),F.\u0275\u0275elementEnd()}if(2&V){const nt=F.\u0275\u0275nextContext(4);F.\u0275\u0275property("detailResponse",nt.detailResponse)("accountIdForRelationships",nt.determineAccountIdForRelationships())("displayContacts",nt.displayContacts)("displayGroups",nt.displayGroups)("disallowOrgOfFleet",nt.disallowOrgOfFleet)}}function xt(V,Et){if(1&V&&(F.\u0275\u0275elementStart(0,"altcon-tab-content",9),F.\u0275\u0275template(1,K,1,5,"ng-template",null,0,F.\u0275\u0275templateRefExtractor),F.\u0275\u0275elementEnd()),2&V){const nt=F.\u0275\u0275nextContext(3);F.\u0275\u0275property("gaEvent",F.\u0275\u0275pureFunction0(3,j))("id","groups-contacts")("title","Groups & Contacts ("+(nt.displayGroups.length+(null==nt.detailResponse||null==nt.detailResponse.instanceContactDetails?null:nt.detailResponse.instanceContactDetails.detailedContacts.length))+")")}}function q(V,Et){1&V&&F.\u0275\u0275template(0,xt,3,4,"altcon-tab-content",8),2&V&&F.\u0275\u0275property("hasPrivilege","B2B_View_Organization_Groups")}function Tt(V,Et){if(1&V){const nt=F.\u0275\u0275getCurrentView();F.\u0275\u0275elementStart(0,"altecConnect-tabbed-analytics-tab-content",15),F.\u0275\u0275listener("jemsModel",function(Ct){F.\u0275\u0275restoreView(nt);const Ut=F.\u0275\u0275nextContext(4);
1return F.\u0275\u0275resetView(Ut.setJEMSModel(Ct))}),F.\u0275\u0275elementEnd()}if(2&V){const nt=F.\u0275\u0275nextContext(4);F.\u0275\u0275property("assetSignals",nt.assetSignals)("closestAddress",nt.closestAddress)("lastUpdated",nt.lastUpdated)("accountIdForRelationships",nt.determineAccountIdForRelationships())("hasTelematics",nt.hasTelematics)("asset",nt.asset)("hasJEMS",nt.hasJEMS)("hasDevAdmin",nt.hasDevAdmin)("activeAnalyticsTab",nt.activeAnalyticsTab)("hasVehicleStatus",nt.hasVehicleStatus)("instanceId",nt.instanceId)("telematicsData",nt.telematicsData)("gaEvent",F.\u0275\u0275pureFunction0(13,G))}}function _t(V,Et){if(1&V&&(F.\u0275\u0275elementStart(0,"altcon-tab-content",9),F.\u0275\u0275template(1,Tt,1,14,"ng-template",null,0,F.\u0275\u0275templateRefExtractor),F.\u0275\u0275elementEnd()),2&V){const nt=F.\u0275\u0275nextContext(3);F.\u0275\u0275property("gaEvent",F.\u0275\u0275pureFunction0(3,G))("id","analytics")("title",nt.generateTelematicsTitle())}}function dt(V,Et){1&V&&F.\u0275\u0275template(0,_t,3,4,"altcon-tab-content",8),2&V&&F.\u0275\u0275property("hasPrivilege","B2B_View_APNs")}function Mt(V,Et){if(1&V&&F.\u0275\u0275element(0,"altecConnect-pdi-tab-content",16),2&V){const nt=F.\u0275\u0275nextContext(3);F.\u0275\u0275property("loadingPDIImages",nt.loadingPDIImages)("pdiImageGroups",nt.pdiImageGroups)}}function y(V,Et){1&V&&(F.\u0275\u0275elementStart(0,"altcon-tab-content",9),F.\u0275\u0275template(1,Mt,1,2,"ng-template",null,0,F.\u0275\u0275templateRefExtractor),F.\u0275\u0275elementEnd()),2&V&&F.\u0275\u0275property("gaEvent",F.\u0275\u0275pureFunction0(3,k))("id","photos")("title","Photos")}function x(V,Et){if(1&V){const nt=F.\u0275\u0275getCurrentView();F.\u0275\u0275elementStart(0,"div",2)(1,"div"),F.\u0275\u0275element(2,"app-fleet-detail-summary-box",3),F.\u0275\u0275elementStart(3,"div",4)(4,"div",5)(5,"div",6)(6,"altcon-tab-engine",7),F.\u0275\u0275listener("currentTab",function(Ct){F.\u0275\u0275restoreView(nt);const Ut=F.\u0275\u0275nextContext();return F.\u0275\u0275resetView(Ut.currentTabSubject.next(Ct))}),F.\u0275\u0275template(7,U,3,4,"altcon-tab-content",8)(8,Dt,3,4,"altcon-tab-content",8)(9,bt,3,4,"altcon-tab-content",8),F.\u0275\u0275elementStart(10,"altcon-tab-content",9),F.\u0275\u0275template(11,kt,1,2,"ng-template",null,0,F.\u0275\u0275templateRefExtractor),F.\u0275\u0275elementEnd(),F.\u0275\u0275conditionalCreate(13,q,1,1,"altcon-tab-content",9),F.\u0275\u0275conditionalCreate(14,dt,1,1,"altcon-tab-content",9),F.\u0275\u0275conditionalCreate(15,y,3,4,"altcon-tab-content",9),F.\u0275\u0275elementEnd()()()()()()}if(2&V){const nt=F.\u0275\u0275nextContext();F.\u0275\u0275advance(2),F.\u0275\u0275property("detailResponse",nt.detailResponse)("hideTitle",nt.hideTitle)("boomHours",nt.boomHours)("jemsModel",nt.jemsModel),F.\u0275\u0275advance(4),F.\u0275\u0275property("breakPoint",nt.tabletBreakpoint)("initialActive",nt.active),F.\u0275\u0275advance(),F.\u0275\u0275property("hasPrivilege","B2B_View_Replacement_Parts"),F.\u0275\u0275advance(),F.\u0275\u0275property("hasPrivilege","B2B_View_SRs"),F.\u0275\u0275advance(),F.\u0275\u0275property("hasPrivilege","B2B_View_APNs"),F.\u0275\u0275advance(),F.\u0275\u0275property("gaEvent",F.\u0275\u0275pureFunction0(15,ot))("id","docs")("title","Documentation ("+(nt.detailResponse.referenceMaterials.length+(null==nt.inspectionPaperwork?null:nt.inspectionPaperwork.length)+(null==nt.detailResponse.inspectionPaperwork?null:nt.detailResponse.inspectionPaperwork.length)+(null==nt.detailResponse.unitMaintenancePaperwork?null:nt.detailResponse.unitMaintenancePaperwork.length))+")"),F.\u0275\u0275advance(3),F.\u0275\u0275conditional(nt.isExternal?-1:13),F.\u0275\u0275advance(),F.\u0275\u0275conditional("NONE"==nt.detailResponse.analytics||nt.isExternal?-1:14),F.\u0275\u0275advance(),F.\u0275\u0275conditional((null==nt.detailResponse||null==nt.detailResponse.pdiUuidPairs?null:nt.detailResponse.pdiUuidPairs.length)>0?15:-1)}}function W(V,Et){if(1&V&&(F.\u0275\u0275elementStart(0,"span"),F.\u0275\u0275element(1,"altecConnect-fleet-unit-missing",12),F.\u0275\u0275elementEnd()),2&V){const nt=F.\u0275\u0275nextContext();F.\u0275\u0275advance(),F.\u0275\u0275property("detailResponse",nt.detailResponse)}}class E{}
1T.ServiceInspectionPaperwork=E,T.FleetDetailComponent=(()=>{class V{constructor(nt,Gt,Ct,Ut,it,Ft,jt,ut,Qt,wt){this.fleetService=nt,this.route=Gt,this.router=Ct,this.loader=Ut,this.privilegeService=it,this.cdRef=Ft,this.errorHandler=jt,this.modal=ut,this.statefulService=Qt,this.location=wt,this.tabletBreakpoint=b.GlobalConstants.TABLET_SIZE_BREAKPOINT,this.hideTitle=!1,this.unitMissing=!1,this.hasJEMS=!1,this.hasDevAdmin=!1,this.hasVehicleStatus=!1,this.hasTelematics=!1,this.hasHOP=!1,this.isExternal=!1,this.addNotificationStatus={notificationStatus:J.NotificationStatusEnum.EMAIL,highSeverity:!0,mediumSeverity:!0,lowSeverity:!0},this.pdiImageGroups=[],this.loadingPDIImages=!1,this.modalDefaultOptions=b.GlobalConstants.MODAL_DEFAULT_OPTIONS,this.contactSearchSubject=new u.Subject,this.ALTEC_STANDARD_DEBOUNCE_LARGE=b.GlobalConstants.ALTEC_STANDARD_DEBOUNCE_LARGE,this.contactResults=[],this.searchingContacts=!1,this.inspectionPaperwork=[],this.disallowOrgOfFleet=!1,this.unsubscribe$=new u.Subject,this.errorHandler.errorObservable.pipe((0,o.takeUntil)(this.unsubscribe$)).subscribe(he=>{const Xt=he.exceptionMessages;Xt&&(Xt[0].indexOf("No Unit belonging to this account with")>-1||Xt[0].indexOf("Unit with")>-1&&Xt[0].indexOf("does not belong to the currently selected organization.")>-1)&&this.router.navigate(["equipment/fleet/search"])}),this.detailResponse=new f.FleetDetailResponse,this.displayGroups=[],this.displayContacts=[],this.loader.start(),this.telematicsData={loaded:!1,events:[],resultCount:0}}ngOnInit(){this.route.data.subscribe(nt=>{this.detailResponse=nt.unitDetail,this.instanceId=this.route.snapshot.queryParamMap.get("external")?this.detailResponse.instanceId:Number(this.route.snapshot.paramMap.get("identifier")),this.detailResponse.inspectionPaperwork||(this.detailResponse.inspectionPaperwork=[]),null!=this.detailResponse.analytics?this.fleetService.getAssets([this.detailResponse.instanceId],["SYS0"]).subscribe(Gt=>{if(Gt?.assets)for(let Ct of Gt.assets){this.assetSignals=Ct.lastKnownSignals;for(let Ut of this.assetSignals)"BOOM OUT OF STOW HOURS"===Ut.name.toUpperCase()&&(this.boomHours=+Ut.value)}Gt?.assets?.length>0?(this.asset=Gt.assets[0],this.lastUpdated=Gt.assets[0].onlineTime,this.fleetService.reverseGeocodeAddress(this.asset?.lastKnownLocation?.latitude,this.asset?.lastKnownLocation?.longitude).subscribe(Ct=>{this.closestAddress=Ct,this.loader.stop()})):this.loader.stop()}):this.loader.stop(),null!=this.detailResponse.analytics&&this.fleetService.getAssets([this.detailResponse.instanceId],["RemoteDiag"]).subscribe(Gt=>{Gt.assets[0].lastKnownSignals.length>0&&(this.hasVehicleStatus=!0)})}),this.active=this.route.snapshot.paramMap.get("showTab")?this.route.snapshot.paramMap.get("showTab"):"",this.currentTabSubject=new u.BehaviorSubject(this.active),this.currentTabSubject.subscribe(nt=>{if(this.selectedTabId=nt,"analytics"===nt){const Gt=`/pages/dashboard/equipment/fleet/details/${this.detailResponse.instanceId}/analytics`,Ct=this.route.snapshot.queryParamMap.keys.map(it=>`${it}=${encodeURIComponent(this.route.snapshot.queryParamMap.get(it)??"")}`).join("&");this.location.replaceState(Ct?`${Gt}?${Ct}`:Gt)}}),this.active&&this.route.snapshot.paramMap.get("analyticsTab")&&(this.activeAnalyticsTab=this.route.snapshot.paramMap.get("analyticsTab")),this.isExternal=!!this.route.snapshot.queryParamMap.get("external"),this.disallowOrgOfFleet=this.privilegeService.hasPrivilege("Demo_Only_Organization_Of_Fleet_Update"),this.initialize()}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}initialize(){if(null==this.detailResponse||null==this.detailResponse.instanceId)return this.unitMissing=!0,this.loader.stop(),null;this.displayGroups=h.cloneDeep(this.detailResponse.groups),this.displayContacts=h.cloneDeep(this.detailResponse.instanceContactDetails?.detailedContacts),this.hasJEMS=null!=this.detailResponse.analytics&&(this.detailResponse.analytics.includes(p.UnitAnalytics.JEMS)||!this.statefulService.userRequiresAnalyticsContracts()),this.hasDevAdmin=this.statefulService.hasPrivilege("Developer_Admin"),this.detailResponse.instanceContactDetails&&!this.detailResponse.instanceContactDetails.orgOfFleetInstance.instanceId&&(this.detailResponse.instanceContactDetails.orgOfFleetInstance.accountId=+this.determineAccountIdForRelationships(),this.detailResponse.instanceContactDetails.orgOfFleetInstance.ebsInstanceId=this.detailResponse.instanceId);for(const nt of this.detailResponse.srList)for(const Gt of nt.attachments){const Ct=new E;Ct.attachedDocumentId=Gt.attachedDocumentId,Ct.categoryId=Gt.categoryId,Ct.categoryDescription=Gt.categoryDescription,Ct.fileName=Gt.fileName,Ct.serviceRequestClosedDate=nt.closedDate,Ct.serviceRequestNumber=nt.serviceRequestNumber,Ct.serviceRequestId=nt.serviceRequestId,Ct.uploadDate=Gt.uploadDate,this.inspectionPaperwork.push(Ct)}this.detailResponse?.pdiUuidPairs?.length>0&&(this.loadingPDIImages=!0,this.fleetService.getPdiImages(this.detailResponse.pdiUuidPairs).pipe((0,o.take)(1)).subscribe(nt=>{nt&&(this.pdiImageGroups=nt),this.loadingPDIImages=!1}))}detectChanges(){this.cdRef.detectChanges()}generateTelematicsTitle(){return this.telematicsData.loaded&&this.telematicsData.resultCount>0?`Analytics (${this.telematicsData.resultCount})`:"Analytics"}determineAccountIdForRelationships(){if(this.isExternal)return this.statefulService.profile.accountId.toString();for(let nt of this.statefulService.getAllAccountIds())if(this.detailResponse.custAcctIds&&this.detailResponse.custAcctIds.indexOf(+nt)>-1)return nt;return""}stopPropagation(nt){nt.stopPropagation()}openContractSupportModal(){const nt=this.modal.open(r.ContractSupportModalComponent,this.modalDefaultOptions);nt.componentInstance.submitObservable.pipe((0,o.take)(1)).subscribe(Gt=>{let Ct=new I.ContractSupportRequest;Ct.type="ContractSupportEmail",Ct.content.fullName=this.statefulService.getFullName(),Ct.content.enteredEmail=Gt.email,Ct.content.enteredPhone=Gt.phone,Ct.content.responseByEmail=Gt.responseByEmail,Ct.content.orgName=this.statefulService.profile.businessName,Ct.content.instanceId=this.detailResponse.instanceId,Ct.content.unitSeri
1al=this.detailResponse.unitSerial,Ct.content.faSerial=this.detailResponse.faSerial,Ct.content.chassisVin=this.detailResponse.chassisVin,Ct.content.description=Gt.description,this.fleetService.contractSupportEmail(Ct).pipe((0,o.take)(1)).subscribe(()=>{})}),nt.result.then(()=>{},()=>{})}setJEMSModel(nt){this.jemsModel=nt}static{this.\u0275fac=function(Gt){return new(Gt||V)(F.\u0275\u0275directiveInject(ct.FleetService),F.\u0275\u0275directiveInject(at.ActivatedRoute),F.\u0275\u0275directiveInject(at.Router),F.\u0275\u0275directiveInject(rt.LoadingService),F.\u0275\u0275directiveInject(X.PrivilegeService),F.\u0275\u0275directiveInject(F.ChangeDetectorRef),F.\u0275\u0275directiveInject(gt.ErrorHandlerService),F.\u0275\u0275directiveInject(mt.NgbModal),F.\u0275\u0275directiveInject(St.StatefulService),F.\u0275\u0275directiveInject(ft.Location))}}static{this.\u0275cmp=F.\u0275\u0275defineComponent({type:V,selectors:[["app-fleet-detail"]],standalone:!1,decls:3,vars:2,consts:[["content",""],[1,"unit-page"],[1,"row","mt-4"],[3,"detailResponse","hideTitle","boomHours","jemsModel"],[1,"col-12"],[1,"row"],[1,"col-md-12","mt-2","px-0"],[3,"currentTab","breakPoint","initialActive"],[3,"gaEvent","id","title",4,"hasPrivilege"],[3,"gaEvent","id","title"],[3,"detailResponse","isExternal","accountIdForRelationships"],[3,"openContractSupportOutput","detailResponse","isExternal"],[3,"detailResponse"],[3,"detailResponse","inspectionPaperwork"],[3,"reinitializeParentComponent","detailResponse","accountIdForRelationships","displayContacts","displayGroups","disallowOrgOfFleet"],[3,"jemsModel","assetSignals","closestAddress","lastUpdated","accountIdForRelationships","hasTelematics","asset","hasJEMS","hasDevAdmin","activeAnalyticsTab","hasVehicleStatus","instanceId","telematicsData","gaEvent"],[3,"loadingPDIImages","pdiImageGroups"]],template:function(Gt,Ct){1&Gt&&(F.\u0275\u0275elementStart(0,"div",1),F.\u0275\u0275conditionalCreate(1,x,16,16,"div",2),F.\u0275\u0275conditionalCreate(2,W,2,1,"span"),F.\u0275\u0275elementEnd()),2&Gt&&(F.\u0275\u0275advance(),F.\u0275\u0275conditional(Ct.unitMissing?-1:1),F.\u0275\u0275advance(),F.\u0275\u0275conditional(Ct.unitMissing?2:-1))},styles:[".table[_ngcontent-%COMP%]{margin-bottom:15px}td[_ngcontent-%COMP%]{border-top:0!important;padding:15px 8px!important;vertical-align:middle!important}th[_ngcontent-%COMP%]{border-bottom:0!important;position:sticky;top:0;z-index:1;background:#fff}.table-container[_ngcontent-%COMP%]{overflow-y:auto}@media(min-width:768px){.table-container[_ngcontent-%COMP%]{height:260px}}@media(max-width:767px){.table-container[_ngcontent-%COMP%]{height:400px}}.gold[_ngcontent-%COMP%]{color:#efb310}.custom-hide[_ngcontent-%COMP%]{visibility:hidden}.float-right[_ngcontent-%COMP%]{margin-left:auto}"]})}}return V})()},85049(Ht,T,d){"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.FleetEditUnitComponent=void 0;const S=d(31635),O=(d(49849),d(59091)),u=d(43481),b=(d(7901),d(83352)),D=(d(91898),d(21916),d(11293)),f=d(81025),p=(d(97377),d(27831)),lt=(d(6324),d(74389)),I=(d(20851),S.__importStar(d(49849))),vt=S.__importStar(d(21916)),C=S.__importStar(d(7901)),ht=S.__importStar(d(20851)),F=S.__importStar(d(91898)),ct=S.__importStar(d(6324)),at=S.__importStar(d(97377)),rt=["ownershipModal"],X=["modificationsModal"],gt=()=>["B2B_View_Parent_Holding","B2B_View_Organization_Groups"],mt=K=>({"edit-form":K}),St=()=>({eventCategory:"Fleet Edit Page",eventAction:"Edit Unit Details",eventLabel:"Edit Unit Details"});function ft(K,xt){1&K&&(I.\u0275\u0275elementContainerStart(0),I.\u0275\u0275element(1,"altcon-global-filter"),I.\u0275\u0275elementContainerEnd())}function ot(K,xt){1&K&&I.\u0275\u0275text(0," Unit Ownership Change submitted ")}function B(K,xt){1&K&&I.\u0275\u0275text(0," Unit Modifications submitted ")}function Ot(K,xt){if(1&K){const q=I.\u0275\u0275getCurrentView();I.\u0275\u0275elementStart(0,"div",5)(1,"button",20),I.\u0275\u0275listener("click",function(){I.\u0275\u0275restoreView(q);const _t=I.\u0275\u0275nextContext(2);
1return _t.showUnitModSuccess=!1,I.\u0275\u0275resetView(_t.showUnitOwnerSuccess=!1)}),I.\u0275\u0275elementStart(2,"span",21),I.\u0275\u0275text(3,"\xd7"),I.\u0275\u0275elementEnd()(),I.\u0275\u0275conditionalCreate(4,ot,1,0),I.\u0275\u0275conditionalCreate(5,B,1,0),I.\u0275\u0275elementEnd()}if(2&K){const q=I.\u0275\u0275nextContext(2);I.\u0275\u0275advance(4),I.\u0275\u0275conditional(q.showUnitOwnerSuccess?4:-1),I.\u0275\u0275advance(),I.\u0275\u0275conditional(q.showUnitModSuccess?5:-1)}}function $(K,xt){1&K&&I.\u0275\u0275text(0," An error occurred while submitting unit ownership change ")}function j(K,xt){1&K&&I.\u0275\u0275text(0," An error occurred while submitting modifications ")}function G(K,xt){if(1&K&&(I.\u0275\u0275elementStart(0,"div",6)(1,"button",22)(2,"span",21),I.\u0275\u0275text(3,"\xd7"),I.\u0275\u0275elementEnd()(),I.\u0275\u0275conditionalCreate(4,$,1,0),I.\u0275\u0275conditionalCreate(5,j,1,0),I.\u0275\u0275elementEnd()),2&K){const q=I.\u0275\u0275nextContext(2);I.\u0275\u0275advance(4),I.\u0275\u0275conditional(q.showUnitOwnershipError?4:-1),I.\u0275\u0275advance(),I.\u0275\u0275conditional(q.showUnitModError?5:-1)}}function k(K,xt){1&K&&(I.\u0275\u0275elementStart(0,"span",14),I.\u0275\u0275text(1,"*Contact Global Rental to update Customer Vehicle #."),I.\u0275\u0275elementEnd())}function R(K,xt){if(1&K){const q=I.\u0275\u0275getCurrentView();I.\u0275\u0275elementStart(0,"app-address-autocomplete",23),I.\u0275\u0275listener("addressSelected",function(_t){I.\u0275\u0275restoreView(q);const dt=I.\u0275\u0275nextContext(2);return I.\u0275\u0275resetView(dt.setLocation(_t))}),I.\u0275\u0275elementEnd()}if(2&K){const q=I.\u0275\u0275nextContext(2);I.\u0275\u0275property("initiallySelectedAddress",q.selectedLocation)("accountId",q.detailResponse.custAcctIds[0])("partyId",q.getPartyIdWithOrgName(q.detailResponse.customerName))("showFavoriteToggle",!0)("showShowMoreButton",!0)}}function U(K,xt){1&K&&(I.\u0275\u0275elementStart(0,"a",17),I.\u0275\u0275text(1,"Submit is disabled"),I.\u0275\u0275elementEnd())}function st(K,xt){if(1&K){const q=I.\u0275\u0275getCurrentView();I.\u0275\u0275elementStart(0,"button",24),I.\u0275\u0275listener("click",function(){I.\u0275\u0275restoreView(q);const _t=I.\u0275\u0275nextContext(2);return I.\u0275\u0275resetView(_t.submit())}),I.\u0275\u0275text(1,"Submit"),I.\u0275\u0275elementEnd()}if(2&K){const q=I.\u0275\u0275nextContext(2);I.\u0275\u0275property("disabled",""===q.customerVehicleNumber)("gaEvent",I.\u0275\u0275pureFunction0(2,St))}}function Dt(K,xt){if(1&K){const q=I.\u0275\u0275getCurrentView();I.\u0275\u0275elementStart(0,"div",19)(1,"h5")(2,"strong"),I.\u0275\u0275text(3,"Unit Communication"),I.\u0275\u0275elementEnd()(),I.\u0275\u0275elementStart(4,"div",25)(5,"a",26),I.\u0275\u0275listener("click",function(){I.\u0275\u0275restoreView(q);const _t=I.\u0275\u0275nextContext(2);return I.\u0275\u0275resetView(_t.openUnitOwnershipChangeModal())}),I.\u0275\u0275text(6," Communicate Unit Ownership Change "),I.\u0275\u0275elementEnd()(),I.\u0275\u0275elementStart(7,"div")(8,"a",26),I.\u0275\u0275listener("click",function(){I.\u0275\u0275restoreView(q);const _t=I.\u0275\u0275nextContext(2);return I.\u0275\u0275resetView(_t.openUnitModificationsModal())}),I.\u0275\u0275text(9," Communicate Unit Modifications "),I.\u0275\u0275elementEnd()()()}}function Jt(K,xt){if(1&K){const q=I.\u0275\u0275getCurrentView();I.\u0275\u0275elementStart(0,"div",1)(1,"div",2),I.\u0275\u0275element(2,"app-fleet-detail-summary-box",3),I.\u0275\u0275elementStart(3,"div",4),I.\u0275\u0275conditionalCreate(4,Ot,6,2,"div",5),I.\u0275\u0275conditionalCreate(5,G,6,2,"div",6),I.\u0275\u0275elementEnd(),I.\u0275\u0275elementStart(6,"div",7)(7,"div",8)(8,"h5")(9,"strong"),I.\u0275\u0275text(10,"Edit Unit Details"),I.\u0275\u0275elementEnd()(),I.\u0275\u0275elementStart(11,"form",9)(12,"div",10)(13,"label",11),I.\u0275\u0275text(14,"Customer Vehicle #"),I.\u0275\u0275elementEnd(),I.\u0275\u0275elementStart(15,"div",12)(16,"input",13),I.\u0275\u0275twoWayListener("ngModelChange",function(_t){I.\u0275\u0275restoreView(q);const dt=I.\u0275\u0275nextContext();return I.\u0275\u0275twoWayBindingSet(dt.customerVehicleNumber,_t)||(dt.customerVehicleNumber=_t),I.\u
10275\u0275resetView(_t)}),I.\u0275\u0275elementEnd(),I.\u0275\u0275conditionalCreate(17,k,2,0,"span",14),I.\u0275\u0275elementEnd()(),I.\u0275\u0275elementStart(18,"div",10)(19,"label",11),I.\u0275\u0275text(20,"Location"),I.\u0275\u0275elementEnd(),I.\u0275\u0275elementStart(21,"div",12),I.\u0275\u0275conditionalCreate(22,R,1,5,"app-address-autocomplete",15),I.\u0275\u0275elementEnd()(),I.\u0275\u0275elementStart(23,"div",10)(24,"div",16)(25,"div"),I.\u0275\u0275conditionalCreate(26,U,2,0,"a",17)(27,st,2,3,"button",18),I.\u0275\u0275elementEnd()()()()(),I.\u0275\u0275conditionalCreate(28,Dt,10,0,"div",19),I.\u0275\u0275elementEnd()()()}if(2&K){const q=I.\u0275\u0275nextContext();I.\u0275\u0275advance(),I.\u0275\u0275property("hidden",q.loading),I.\u0275\u0275advance(),I.\u0275\u0275property("detailResponse",q.detailResponse)("hideTitle",q.hideTitle),I.\u0275\u0275advance(2),I.\u0275\u0275conditional(q.showUnitOwnerSuccess||q.showUnitModSuccess?4:-1),I.\u0275\u0275advance(),I.\u0275\u0275conditional(q.showUnitOwnershipError||q.showUnitModError?5:-1),I.\u0275\u0275advance(2),I.\u0275\u0275property("ngClass",I.\u0275\u0275pureFunction1(12,mt,!q.detailResponse.globalRental)),I.\u0275\u0275advance(9),I.\u0275\u0275property("disabled",q.detailResponse.globalRental),I.\u0275\u0275twoWayProperty("ngModel",q.customerVehicleNumber),I.\u0275\u0275advance(),I.\u0275\u0275conditional(q.detailResponse.globalRental?17:-1),I.\u0275\u0275advance(5),I.\u0275\u0275conditional(q.detailResponse.custAcctIds.length>0?22:-1),I.\u0275\u0275advance(4),I.\u0275\u0275conditional(q.disallowCustomerDataModification?26:27),I.\u0275\u0275advance(2),I.\u0275\u0275conditional(q.detailResponse.globalRental?-1:28)}}function bt(K,xt){if(1&K&&(I.\u0275\u0275elementStart(0,"span"),I.\u0275\u0275element(1,"altecConnect-fleet-unit-missing",27),I.\u0275\u0275elementEnd()),2&K){const q=I.\u0275\u0275nextContext();I.\u0275\u0275advance(),I.\u0275\u0275property("detailResponse",q.detailResponse)}}T.FleetEditUnitComponent=(()=>{class K{constructor(q,Tt,_t,dt,Mt,y,x){this.fleetService=q,this.route=Tt,this.loader=_t,this.router=dt,this.privilegeService=Mt,this.modal=y,this.statefulService=x,this.unitMissing=!1,this.hideTitle=!1,this.removalSelection=!1,this.removalOptions=[],this.privilegedRemovalOptions=[],this.companySelection=!1,this.date="",this.showRemovalError=!1,this.showCompanyError=!1,this.updateMessage="",this.showUnitOwnershipError=!1,this.showUnitModError=!1,this.showUnitOwnerSuccess=!1,this.showUnitModSuccess=!1,this.detailsMessage="",this.showDetail
1sMessageError=!1,this.dateError=!1,this.showUpdateMessageError=!1,this.parentHoldingCompanies=[],this.disallowCustomerDataModification=!1,this.unsubscribe$=new O.Subject,this.modalDefaultOptions=b.GlobalConstants.MODAL_DEFAULT_OPTIONS,this.detailRequest=new D.FleetDetailRequest,this.detailResponse=new f.FleetDetailResponse,this.stream$=new O.Observable,this.loading=!0,this.loader.start(),this.disallowCustomerDataModification=this.privilegeService.hasPrivilege("Demo_Only_Fleet_Update")}ngOnInit(){this.parentHoldingCompanies=[this.statefulService.profile.parentOrganization,...this.statefulService.profile.altecSecondaryOrgs.filter(q=>q.accountId!=this.statefulService.profile.parentOrganization.accountId)],this.parentOrgAccountId=this.statefulService.profile.parentOrganization.accountId.toString(),this.route.snapshot.queryParamMap.get("external")?this.detailRequest.externalIdentifier=this.route.snapshot.paramMap.get("identifier"):this.detailRequest.instanceId=Number(this.route.snapshot.paramMap.get("identifier")),this.stream$=this.fleetService.detailRequest(this.detailRequest),this.removalOptions=["Retired From Service","Sold Direct","Sold At Auction","Other"],this.privilegeService.hasPrivilege("B2B_View_Parent_Holding")&&(this.privilegedRemovalOptions=this.removalOptions.splice(3,0,"Inter-Company Transfer"))}ngAfterViewInit(){this.stream$.pipe((0,u.take)(1)).subscribe(q=>{null!=q&&(this.detailResponse=q,this.loading=!1,this.loader.stop(),this.detailResponse&&(this.selectedLocation=this.detailResponse.currentLocation,this.selectedLocation.ebsAddressId=this.selectedLocation.addressId,this.customerVehicleNumber=this.detailResponse.customerVehicleNumber))},()=>{this.unitMissing=!0,this.loading=!1,this.loader.stop()})}setSelectedRemovalOption(q){""!==q?(this.removalSelection=!0,this.showRemovalError=!1):(this.removalSelection=!1,this.showRemovalError=!0),this.selectedRemovalOption=q,this.showUpdateMessageError=!1}setSelectedCompanyOption(q){""!==q?(this.companySelection=!0,this.showCompanyError=!1):(this.companySelection=!1,this.showCompanyError=!0),this.selectedCompanyOption=q,this.showUpdateMessageError=!1}updateUnitOwnership(){this.loader.start(),this.fleetService.updateUnitOwnership(this.detailResponse.instanceId,this.detailResponse.faSerial,this.detailResponse.unitSerial,this.date,this.updateMessage,this.selectedRemovalOption).pipe((0,u.take)(1)).subscribe(q=>{q.formError?(this.showUnitOwnershipError=!0,this.showUnitOwnerSuccess=!1,this.loader.stop()):(this.showUnitOwnerSuccess=!0,this.showUnitOwnershipError=!1,this.loader.stop(),this.date="",this.updateMessage="",this.removalSelection=!1)})}updateUnitModifications(){this.loader.start();let q={type:"UnitModificationEmail",content:{reporterEmail:this.statefulService.profile.email,fullName:this.statefulService.getFullName(),businessName:this.statefulService.profile.businessName,accountId:this.parentOrgAccountId,faSerial:this.detailResponse.faSerial,instanceId:this.detailResponse.instanceId,message:this.detailsMessage,unitSeri
1al:this.detailResponse.unitSerial}};this.fleetService.updateUnitModifications(q).pipe((0,u.take)(1)).subscribe(Tt=>{this.detailsMessage="",this.showUnitModSuccess=!0,this.showUnitModError=!1,this.loader.stop()})}setLocation(q){this.selectedLocation=q}submit(){let q="";q=null===this.customerVehicleNumber?void 0:this.customerVehicleNumber;const Tt=this.statefulService.profile.partyId;this.loader.start(),this.fleetService.updateUnit(this.detailResponse.instanceId,this.selectedLocation.ebsAddressId||this.selectedLocation.addressId,q,Tt).pipe((0,u.take)(1)).subscribe(_t=>{_t&&this.router.navigate(["/pages/dashboard/equipment/fleet/details/"+this.detailResponse.instanceId],{skipLocationChange:!1})})}checkDateLength(){this.dateError=this.date.length>40}checkForOwnershipErrors(){""===this.updateMessage?this.showUpdateMessageError=!0:(this.showUpdateMessageError=!1,this.ownershipModal.nativeElement.click(),this.updateUnitOwnership())}checkForModificationsErrors(){""===this.detailsMessage?this.showUpdateMessageError=!0:(this.showUpdateMessageError=!1,this.modificationsModal.nativeElement.click(),this.updateUnitModifications())}getPartyIdWithOrgName(q){const Tt=this.statefulService.profile;if(Tt.parentOrganization.name.toLowerCase()===q.toLowerCase())return Tt.parentOrganization.partyId;for(let _t of Tt.altecSecondaryOrgs)if(_t.name.toLowerCase()===q.toLowerCase())return _t.partyId}openUnitOwnershipChangeModal(){const q=this.modal.open(p.UnitOwnershipChangeComponent,this.modalDefaultOptions);q.componentInstance.showRemovalError=this.showRemovalError,q.componentInstance.removalOptions=this.removalOptions,q.componentInstance.removalSelection=this.removalSelection,q.componentInstance.date=this.date,q.componentInstance.dateError=this.dateError,q.componentInstance.selectedRemovalOption=this.selectedRemovalOption,q.componentInstance.showUpdateMessageError=this.showUpdateMessageError,q.componentInstance.updateMessage=this.updateMessage,q.componentInstance.companySelection=this.companySelection,q.componentInstance.showCompanyError=this.showCompanyError,q.componentInstance.selectedCompanyOption=this.selectedCompanyOption,q.componentInstance.parentHoldingCompanies=this.parentHoldingCompanies,q.componentInstance.detailResponse=this.detailResponse,q.componentInstance.disallowCustomerDataModification=this.disallowCustomerDataModification,q.componentInstance.showUnitOwnershipError=this.showUnitOwnershipError,q.componentInstance.showUnitOwnerSuccess=this.showUnitOwnerSuccess}openUnitModificationsModal(){const q=this.modal.open(lt.UnitModificationsComponent,this.modalDefaultOptions);q.componentInstance.showUpdateMessageError=this.showUpdateMessageError,q.componentInstance.detailsMessage=this.detailsMessage,q.componentInstance.disallowCustomerDataModification=this.disallowCustomerDataModification,q.componentInstance.activeAccountId=this.parentOrgAccountId,q.componentInstance.detailResponse=this.detailResponse,q.componentInstance.showUnitModError=this.showUnitModError,q.componentInstance.showUnitOwnerSuccess=this.showUnitModSuccess,q.componentInstance.showUnitModSuccess=this.showUnitModSuccess,q.componentInstance.email=this.statefulService.profile.email,q.componentInstance.fullName=this.statefulService.getFullName(),q.componentInstance.businessName=this.statefulService.profile.businessName}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}static{this.\u0275fac=function(Tt){return new(Tt||K)(I.\u0275\u0275directiveInject(vt.FleetService),I.\u0275\u0275directiveInject(C.ActivatedRoute),I.\u0275\u0275directiveInject(ht.LoadingService),I.\u0275\u0275directiveInject(C.Router),I.\u0275\u0275directiveInject(F.PrivilegeService),I.\u0275\u0275directiveInject(ct.NgbModal),I.\u0275\u0275directiveInject(at.StatefulService))}}static{this.\u0275cmp=I.\u0275\u0275defineComponent({type:K,selectors:[["altecConnect-fleet-edit-unit"]],viewQuery:function(Tt,_t){if(1&Tt&&I.\u0275\u0275viewQuery(rt,7)(X,7),2&Tt){let dt;I.\u0275\u0275queryRefresh(dt=I.\u0275\u0275loadQuery())&&(_t.ownershipModal=dt.first),I.\u0275\u0275queryRefresh(dt=I.\u0275\u0275loadQuery())&&(_t.modificationsModal=dt.first)}},standalone:!1,decls:3,vars:4,consts:[[4,"hasAnyPrivileges"],[1,"row","mt-4"],[3,"hidden"],[3,"detailResponse","hideTitle"],[1,"col-12","mt-4"],["id","successAlert","role","alert",1,"alert","alert-success","alert-dismissible"],["id","errorAlert","role","alert",1,"alert","alert-danger","alert-dismissible"],[1,"row"],[1,"col-12","col-md-8",3,"ngClass"],["
1id","unit-information-form",1,"form-horizontal"],[1,"row","mb-3"],["for","custref",1,"col-sm-3","form-label","pe-1"],[1,"col-sm-9"],["name","vehicleNumber","type","text",1,"form-control","form-control-sm",3,"ngModelChange","disabled","ngModel"],[1,"form-text"],[3,"initiallySelectedAddress","accountId","partyId","showFavoriteToggle","showShowMoreButton"],[1,"offset-sm-3","col-sm-9"],[1,"btn","btn-disabled","btn-block-xs",2,"border","1px transparent"],[1,"btn-altec","btn-block-xs",3,"disabled","gaEvent"],[1,"col-12","col-md-4","mt-4"],["type","button","aria-label","Close","data-bs-dismiss","alert",1,"close",3,"click"],["aria-hidden","true"],["type","button","aria-label","Close","data-bs-dismiss","alert",1,"close"],[3,"addressSelected","initiallySelectedAddress","accountId","partyId","showFavoriteToggle","showShowMoreButton"],[1,"btn-altec","btn-block-xs",3,"click","disabled","gaEvent"],[1,"row","mb-1"],["href","javascript:;",3,"click"],[3,"detailResponse"]],template:function(Tt,_t){1&Tt&&(I.\u0275\u0275template(0,ft,2,0,"ng-container",0),I.\u0275\u0275conditionalCreate(1,Jt,29,14,"div",1),I.\u0275\u0275conditionalCreate(2,bt,2,1,"span")),2&Tt&&(I.\u0275\u0275property("hasAnyPrivileges",I.\u0275\u0275pureFunction0(3,gt)),I.\u0275\u0275advance(),I.\u0275\u0275conditional(_t.unitMissing?-1:1),I.\u0275\u0275advance(),I.\u0275\u0275conditional(_t.unitMissing?2:-1))},styles:["[_ngcontent-%COMP%]:root{--bs-gutter-x: 1.5rem;--bs-gutter-y: 1.5rem}.d-flex[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{float:none}.col[_ngcontent-%COMP%]{flex:1 0 0;padding-left:var(--bs-gutter-x, 1.5rem);padding-right:var(--bs-gutter-x, 1.5rem)}@media only screen and (min-width:576px){.col-sm-auto[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;max-width:none}}@media only screen and (min-width:768px){.col-md-auto[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;max-width:none}}.col-auto[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;max-width:100%;padding-left:var(--bs-gutter-x, 1.5rem);padding-right:var(--bs-gutter-x, 1.5rem)}.justify-content-center[_ngcontent-%COMP%]{justify-content:center}.justify-content-end[_ngcontent-%COMP%]{justify-content:end}.align-items-center[_ngcontent-%COMP%]{align-items:center}.align-items-end[_ngcontent-%COMP%]{align-items:end}.flex-column-reverse[_ngcontent-%COMP%]{flex-direction:column-reverse}.d-flex[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}@media only screen and (min-width:768px){.d-md-block[_ngcontent-%COMP%]{display:block}}@media only screen and (min-width:768px){.d-md-none[_ngcontent-%COMP%]{display:none}}@media only screen and (min-width:768px){.d-md-flex[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}}@media only screen and (min-width:992px){.d-lg-none[_ngcontent-%COMP%]{display:none!important}}@media only screen and (min-width:992px){.d-lg-block[_ngcontent-%COMP%]{display:block!important}}.w-100[_ngcontent-%COMP%]{width:100%!important}.h-100[_ngcontent-%COMP%]{height:100%!important}.px-3[_ngcontent-%COMP%]{padding-left:15px!important;padding-right:15px!important}.pr-0[_ngcontent-%COMP%]{padding-right:0!important}.pl-0[_ngcontent-%COMP%]{padding-left:0!important}.pt-3[_ngcontent-%COMP%]{padding-top:1rem}.pb-3[_ngcontent-%COMP%]{padding-bottom:1rem}.mb-3[_ngcontent-%COMP%]{margin-bottom:1rem}.pb-2[_ngcontent-%COMP%]{padding-bottom:.5rem}@media print{.no-print[_ngcontent-%COMP%]{display:none!important}}.m-0[_ngcontent-%COMP%]{margin:0!important}.mt-0[_ngcontent-%COMP%]{margin-top:0!important}.mb-0[_ngcontent-%COMP%]{margin-bottom:0!important}.ms-0[_ngcontent-%COMP%]{margin-left:0!important}.me-0[_ngcontent-%COMP%]{margin-right:0!important}.mx-0[_ngcontent-%COMP%]{margin-left:0!important;margin-right:0!important}.my-0[_ngcontent-%COMP%]{margin-top:0!important;margin-bottom:0!important}.p-0[_ngcontent-%COMP%]{padding:0!important}.pt-0[_ngcontent-%COMP%]{padding-top:0!important}.pb-0[_ngcontent-%COMP%]{padding-bottom:0!important}.ps-0[_ngcontent-%COMP%]{padding-left:0!important}.pe-0[_ngcontent-%COMP%]{padding-right:0!important}.px-0[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.py-0[_ngcontent-%COMP%]{padding-top:0!important;padding-bottom:0!important}.m-1[_ngcontent-%COMP%]{margin:.25rem!important}.mt-1[_ngcontent-%COMP%]{margin-top:.25rem!important}.mb-1[_ngcontent-%COMP%]{margin-bottom:.25rem!important}.ms-1[_ngcontent-%COMP%]{margin-left:.25rem!important}.me-1[_ngcontent-%COMP%]{margin-right:.25rem!important}.mx-1[_ngcontent-%COMP%]{margin-left:.25rem!important;margin-right:.25rem!important}.my-1[_ngcontent-%COMP%]{margin-top:.25rem!important;margin-bottom:.25rem!important}.p-1[_ngcontent-%COMP%]{padding:.25rem!important}.pt-1[_ngcontent-%COMP%]{padding-top:.25rem!important}.pb-1[_ngcontent-%COMP%]{padding-bottom:.25rem!important}.ps-1[_ngcontent-%COMP%]{padding-left:.25rem!important}.pe-1[_ngcontent-%COMP%]{padding-right:.25rem!important}.px-1[_ngcontent-%COMP%]{padding-left:.25rem!important;padding-right:.25rem!important}.py-1[_ngcontent-%COMP%]{padding-top:.25rem!important;padding-bottom:.25rem!important}.m-2[_ngcontent-%COMP%]{margin:.5rem!important}.mt-2[_ngcontent-%COMP%]{margin-top:.5rem!important}.mb-2[_ngcontent-%COMP%]{margin-bottom:.5rem!important}.ms-2[_ngcontent-%COMP%]{margin-left:.5rem!important}.me-2[_ngcontent-%COMP%]{margin-right:.5rem!important}.mx-2[_ngcontent-%COMP%]{margin-left:.5rem!important;margin-right:.5rem!important}.my-2[_ngcontent-%COMP%]{margin-top:.5rem!important;margin-bottom:.5rem!important}.p-2[_ngcontent-%COMP%]{padding:.5rem!important}.pt-2[_ngcontent-%COMP%]{padding-top:.5rem!important}.pb-2[_ngcontent-%COMP%]{padding-bottom:.5rem!important}.ps-2[_ngcontent-%COMP%]{padding-left:.5rem!important}
1.pe-2[_ngcontent-%COMP%]{padding-right:.5rem!important}.px-2[_ngcontent-%COMP%]{padding-left:.5rem!important;padding-right:.5rem!important}.py-2[_ngcontent-%COMP%]{padding-top:.5rem!important;padding-bottom:.5rem!important}.m-3[_ngcontent-%COMP%]{margin:1rem!important}.mt-3[_ngcontent-%COMP%]{margin-top:1rem!important}.mb-3[_ngcontent-%COMP%]{margin-bottom:1rem!important}.ms-3[_ngcontent-%COMP%]{margin-left:1rem!important}.me-3[_ngcontent-%COMP%]{margin-right:1rem!important}.mx-3[_ngcontent-%COMP%]{margin-left:1rem!important;margin-right:1rem!important}.my-3[_ngcontent-%COMP%]{margin-top:1rem!important;margin-bottom:1rem!important}.p-3[_ngcontent-%COMP%]{padding:1rem!important}.pt-3[_ngcontent-%COMP%]{padding-top:1rem!important}.pb-3[_ngcontent-%COMP%]{padding-bottom:1rem!important}.ps-3[_ngcontent-%COMP%]{padding-left:1rem!important}.pe-3[_ngcontent-%COMP%]{padding-right:1rem!important}.px-3[_ngcontent-%COMP%]{padding-left:1rem!important;padding-right:1rem!important}.py-3[_ngcontent-%COMP%]{padding-top:1rem!important;padding-bottom:1rem!important}.m-4[_ngcontent-%COMP%]{margin:1.5rem!important}.mt-4[_ngcontent-%COMP%]{margin-top:1.5rem!important}.mb-4[_ngcontent-%COMP%]{margin-bottom:1.5rem!important}.ms-4[_ngcontent-%COMP%]{margin-left:1.5rem!important}.me-4[_ngcontent-%COMP%]{margin-right:1.5rem!important}.mx-4[_ngcontent-%COMP%]{margin-left:1.5rem!important;margin-right:1.5rem!important}.my-4[_ngcontent-%COMP%]{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.p-4[_ngcontent-%COMP%]{padding:1.5rem!important}.pt-4[_ngcontent-%COMP%]{padding-top:1.5rem!important}.pb-4[_ngcontent-%COMP%]{padding-bottom:1.5rem!important}.ps-4[_ngcontent-%COMP%]{padding-left:1.5rem!important}.pe-4[_ngcontent-%COMP%]{padding-right:1.5rem!important}.px-4[_ngcontent-%COMP%]{padding-left:1.5rem!important;padding-right:1.5rem!important}.py-4[_ngcontent-%COMP%]{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.m-5[_ngcontent-%COMP%]{margin:3rem!important}.mt-5[_ngcontent-%COMP%]{margin-top:3rem!important}.mb-5[_ngcontent-%COMP%]{margin-bottom:3rem!important}.ms-5[_ngcontent-%COMP%]{margin-left:3rem!important}.me-5[_ngcontent-%COMP%]{margin-right:3rem!important}.mx-5[_ngcontent-%COMP%]{margin-left:3rem!important;margin-right:3rem!important}.my-5[_ngcontent-%COMP%]{margin-top:3rem!important;margin-bottom:3rem!important}.p-5[_ngcontent-%COMP%]{padding:3rem!important}.pt-5[_ngcontent-%COMP%]{padding-top:3rem!important}.pb-5[_ngcontent-%COMP%]{padding-bottom:3rem!important}.ps-5[_ngcontent-%COMP%]{padding-left:3rem!important}.pe-5[_ngcontent-%COMP%]{padding-right:3rem!important}.px-5[_ngcontent-%COMP%]{padding-left:3rem!important;padding-right:3rem!important}.py-5[_ngcontent-%COMP%]{padding-top:3rem!important;padding-bottom:3rem!important}.unit-detail[_ngcontent-%COMP%]{background-color:#e1e1e1;border:1px solid #b2b2b2;border-radius:4px;padding:calc(var(--bs-gutter-x, 1.5rem) * .667)}.edit-form[_ngcontent-%COMP%]{border-right:solid 1px #e1e1e1}.select-has-error[_ngcontent-%COMP%]{border-color:#a94442;box-shadow:inset 0 1px 1px #00000013}"]})}}return K})()},73525(Ht,T,d){"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.FleetPartsBreakdownComponent=void 0;const S=d(31635),u=(d(49849),d(7901),d(43481)),o=d(238),b=d(11293),h=(d(21916),d(81025)),vt=(d(6127),d(49729),d(62351),d(97377),d(26773),d(88679),d(47025),d(20851),d(33447)),C=S.__importStar(d(49849)),ht=S.__importStar(d(21916)),F=S.__importStar(d(7901)),ct=S.__importStar(d(20851)),at=S.__importStar(d(88679)),rt=S.__importStar(d(47025)),X=S.__importStar(d(26773)),gt=S.__importStar(d(6127)),mt=S.__importStar(d(49729)),St=S.__importStar(d(62351)),ft=S.__importStar(d(97377)),ot=S.__importStar(d(60177)),B=S.__importStar(d(77617)),Ot=S.__importStar(d(92325)),$=S.__importStar(d(91578)),j=S.__importStar(d(84341)),G=S.__importStar(d(69673)),k=S.__importStar(d(43332)),R=S.__importStar(d(8504)),U=S.__importStar(d(12287)),st=S.__importStar(d(5881)),Dt=["selectAllCheckBox"],Jt=["partImage"],bt=["innerImageDiv"],kt=["scrollable"],K=()=>["B2B_View_Parent_Holding","B2B_View_Organization_Groups"],xt=At=>({transform:At}),q=At=>({eventCategory:"Parts Breakdown Page",eventAction:"Download PDF",eventLabel:At}),Tt=At=>({eventCategory:"Parts Breakdown Page",eventAction:"Add All Selected To Cart",eventLabel:At}),_t=()=>({eventCategory:"Parts Breakdown Page",eventAction:"Link Clicked",eventLabel:"Add to List"}),dt=()=>({eventCategory:"Parts Breakdown Page",eventAction:"Button Click",eventLabel:"Add to Cart"});function Mt(At,te){1&At&&(C.\u0275\u0275elementContainerStart(0),C.\u0275\u0275element(1,"altcon-global-filter"),C.\u0275\u0275elementContainerEnd())}function y(At,te){if(1&At){const Z=C.\u0275\u0275getCurrentView();C.\u0275\u0275elementStart(0,"div",10)(1,"div",14)(2,"div",15)(3,"div",16)(4,"button",17),C.\u0275\u0275listener("click",function(){C.\u0275\u0275restoreView(Z);
1const zt=C.\u0275\u0275nextContext(2);return C.\u0275\u0275resetView(zt.prevPage())}),C.\u0275\u0275element(5,"i",18),C.\u0275\u0275elementEnd(),C.\u0275\u0275elementStart(6,"button",19),C.\u0275\u0275listener("click",function(){C.\u0275\u0275restoreView(Z);const zt=C.\u0275\u0275nextContext(2);return C.\u0275\u0275resetView(zt.rotate("left"))}),C.\u0275\u0275element(7,"i",20),C.\u0275\u0275elementEnd()(),C.\u0275\u0275elementStart(8,"div",21),C.\u0275\u0275text(9),C.\u0275\u0275elementEnd(),C.\u0275\u0275elementStart(10,"div",16)(11,"button",19),C.\u0275\u0275listener("click",function(){C.\u0275\u0275restoreView(Z);const zt=C.\u0275\u0275nextContext(2);return C.\u0275\u0275resetView(zt.rotate("right"))}),C.\u0275\u0275element(12,"i",22),C.\u0275\u0275elementEnd(),C.\u0275\u0275elementStart(13,"button",17),C.\u0275\u0275listener("click",function(){C.\u0275\u0275restoreView(Z);const zt=C.\u0275\u0275nextContext(2);return C.\u0275\u0275resetView(zt.nextPage())}),C.\u0275\u0275element(14,"i",23),C.\u0275\u0275elementEnd()()(),C.\u0275\u0275elementStart(15,"div",24)(16,"div",25)(17,"button",26),C.\u0275\u0275listener("click",function(){C.\u0275\u0275restoreView(Z);const zt=C.\u0275\u0275nextContext(2);return C.\u0275\u0275resetView(zt.prevPage())}),C.\u0275\u0275element(18,"i",27),C.\u0275\u0275elementEnd(),C.\u0275\u0275elementStart(19,"button",28),C.\u0275\u0275listener("click",function(){C.\u0275\u0275restoreView(Z);const zt=C.\u0275\u0275nextContext(2);return C.\u0275\u0275resetView(zt.rotate("left"))}),C.\u0275\u0275element(20,"i",29),C.\u0275\u0275elementEnd()(),C.\u0275\u0275elementStart(21,"div",30),C.\u0275\u0275text(22),C.\u0275\u0275elementEnd(),C.\u0275\u0275elementStart(23,"div",25)(24,"button",28),C.\u0275\u0275listener("click",function(){C.\u0275\u0275restoreView(Z);const zt=C.\u0275\u0275nextContext(2);return C.\u0275\u0275resetView(zt.rotate("right"))}),C.\u0275\u0275element(25,"i",31),C.\u0275\u0275elementEnd(),C.\u0275\u0275elementStart(26,"button",26),C.\u0275\u0275listener("click",function(){C.\u0275\u0275restoreView(Z);const zt=C.\u0275\u0275nextContext(2);return C.\u0275\u0275resetView(zt.nextPage())}),C.\u0275\u0275element(27,"i",32),C.\u0275\u0275elementEnd()()()(),C.\u0275\u0275elementStart(28,"div",33,0)(30,"div",34,1)(32,"span"),C.\u0275\u0275element(33,"img",35,2)(35,"br"),C.\u0275\u0275elementEnd()()()()}if(2&At){const Z=C.\u0275\u0275nextContext(2);C.\u0275\u0275advance(4),C.\u0275\u0275property("ngClass",Z.selectedImageIndex>0?"btn-altec":"btn-altec btn-disabled"),C.\u0275\u0275advance(5),C.\u0275\u0275textInterpolate2(" Page ",Z.selectedImageIndex+1," of ",Z.imageUrls.length," "),C.\u0275\u0275advance(4),C.\u0275\u0275property("ngClass",Z.selectedImageIndex<Z.imageUrls.length-1?"btn-altec":"btn-altec btn-disabled"),C.\u0275\u0275advance(4),C.\u0275\u0275property("ngClass",Z.selectedImageIndex>0?"btn-altec":"btn-altec btn-disabled"),C.\u0275\u0275advance(5),C.\u0275\u0275textInterpolate2(" ",Z.selectedImageIndex+1," / ",Z.imageUrls.length," "),C.\u0275\u0275advance(4),C.\u0275\u0275property("ngClass",Z.selectedImageIndex<Z.imageUrls.length-1?"btn-altec":"btn-altec btn-disabled"),C.\u0275\u0275advance(7),C.\u0275\u0275property("id","partImage-"+Z.selectedImageIndex)("src",Z.imageUrls[Z.selectedImageIndex],C.\u0275\u0275sanitizeUrl)("ngStyle",C.\u0275\u0275pureFunction1(11,xt,"rotate("+Z.imageIndexRotation[Z.selectedImageIndex]+"deg)"))}}function x(At,te){1&At&&C.\u0275\u0275text(0," No images found ")}function W(At,te){if(1&At){const Z=C.\u0275\u0275getCurrentView();C.\u0275\u0275elementStart(0,"app-ga-gold-button",36),C.\u0275\u0275listener("click",function(){C.\u0275\u0275restoreView(Z);const zt=C.\u0275\u0275nextContext(2);return C.\u0275\u0275resetView(zt.openPdfUrl())}),C.\u0275\u0275elementEnd()}if(2&At){const Z=C.\u0275\u0275nextContext(2);C.\u0275\u0275property("gaEvent",C.\u0275\u0275pureFunction1(2,q,Z.detailResponse.model))("label","Download PDF")}}function E(At,te){1&At&&(C.\u0275\u0275elementStart(0,"div",12),C.\u0275\u0275element(1,"i",37),C.\u0275\u0275elementEnd())}function tt(At,te){if(1&At&&(C.\u0275\u0275elementStart(0,"span",58),C.\u0275\u0275element(1,"i",64),C.\u0275\u0275elementStart(2,"span",65),C.\u0275\u0275text(3),C.\u0275\u0275elementEnd()()),2&At){const Z=C.\u0275\u0275nextContext().$implicit;C.\u0275\u0275advance(3),C.\u0275\u0275textInterpolate(Z.balloonNumber)}}function V(At,te){1&At&&(C.\u0275\u0275elementStart(0,"span",58),C.\u0275\u0275element(1,"i",64),C.\u0275\u0275elementStart(2,"span",66),C.\u0275\u0275text(3,"N/A"),C.\u0275\u0275elementEnd()())}function Et(At,te){1&At&&(C.\u0275\u0275elementStart(0,"div",61),C.\u0275\u0275element(1,"i",67),C.\u0275\u0275text(2," On Your Unit "),C.\u0275\u0275elementEnd())}function nt(At,te){1&At&&(C.\u0275\u0275elementStart(0,"div",10),C.\u0275\u0275text(1," Please call 1-877-GO ALTEC, Option 1, to check availability. "),C.\u0275\u0275elementEnd())}function Gt(At,te){if(1&At&&C.\u0275\u0275element(0,"altec-connect-orderable-status",62),2&At){const Z=C.\u0275\u0275nextContext(2).$implicit;C.\u0275\u0275property("quantityOnHand",Z.quantityOnHand)("reservedQuantity",Z.reservedQuantity)("minMinmaxQuantity",Z.minMinmaxQuantity)("maxMinmaxQuantity",Z.maxMinmaxQuantity)("userLoggedIn",!0)}}function Ct(At,te){if(1&At&&C.\u0275\u0275template(0,Gt,1,5,"altec-connect-orderable-status",68),2&At){const Z=C.\u0275\u0275nextContext().$implicit;C.\u0275\u0275property("ngIf",Z.orderablePart)}}function Ut(At,te){if(1&At&&(C.\u0275\u0275elementStart(0,"div"),C.\u0275\u0275text(1),C.\u0275\u0275elementEnd()),2&At){const Z=C.\u0275\u0275nextContext().$implicit;C.\u0275\u0275advance(),C.\u0275\u0275textInterpolate2("",Z.partQtyOnAssembly," ",Z.partUom)}}function it(At,te){if(1&At&&(C.\u0275\u0275elementStart(0,"div")(1,"span",69),C.\u0275\u0275text(2),C.\u0275\u0275pipe(3,"currency"),C.\u0275\u0275elementEnd(),C.\u0275\u0275text(4),C.\u0275\u0275elementEnd()),2&At){const Z=C.\u0275\u0275nextContext().$implicit;C.\u0275\u0275advance(2),C.\u0275\u0275textInterpolate(C.\u0275\u0275pipeBind1(3,2,Z.partPrice)),C.\u0275\u0275advance(2),C.\u0275\u0275textInterpolate1(" / ",Z.partUom," ")}}function Ft(At,te){if(1&At){const Z=C.\u0275\u0275getCurrentView();C.\u0275\u0275elementStart(0,"div")(1,"div",70)(2,"label",71)(3,"span",72),C.\u0275\u0275text(4,"Quantity:"),C.\u0275\u0275elementEnd(),C.\u0275\u0275elementStart(5,"input",73),C.\u0275\u0275twoWayListener("ngModelChange",function(zt){C.\u0275\u0275restoreView(Z);const qt=C.\u0275\u0275nextContext().$implicit;return C.\u0275\u0275twoWayBindingSet(qt.quantity,zt)||(qt.quantity=zt),C.\u0275\u0275resetVie
1w(zt)}),C.\u0275\u0275elementEnd()(),C.\u0275\u0275elementStart(6,"button",74),C.\u0275\u0275listener("click",function(){C.\u0275\u0275restoreView(Z);const zt=C.\u0275\u0275nextContext().$implicit,qt=C.\u0275\u0275nextContext(3);return C.\u0275\u0275resetView(qt.openAddToCartModal(zt))}),C.\u0275\u0275text(7," Add to Cart "),C.\u0275\u0275elementEnd()(),C.\u0275\u0275elementStart(8,"div",75)(9,"div",76)(10,"a",77),C.\u0275\u0275listener("click",function(){C.\u0275\u0275restoreView(Z);const zt=C.\u0275\u0275nextContext().$implicit,qt=C.\u0275\u0275nextContext(3);return C.\u0275\u0275resetView(qt.openAddToListModal(zt))}),C.\u0275\u0275element(11,"i",78),C.\u0275\u0275text(12," Add to List "),C.\u0275\u0275elementEnd()()()()}if(2&At){const Z=C.\u0275\u0275nextContext().$implicit;C.\u0275\u0275advance(5),C.\u0275\u0275twoWayProperty("ngModel",Z.quantity),C.\u0275\u0275advance(5),C.\u0275\u0275property("gaEvent",C.\u0275\u0275pureFunction0(2,_t))}}function jt(At,te){1&At&&C.\u0275\u0275text(0," This item cannot be ordered online but please call us at 1-877-GO-ALTEC, Option 1 to place an order. ")}function ut(At,te){1&At&&(C.\u0275\u0275text(0," This item cannot be ordered online but please email us at "),C.\u0275\u0275elementStart(1,"a",79),C.\u0275\u0275text(2,"[email protected]"),C.\u0275\u0275elementEnd(),C.\u0275\u0275text(3," to place an order. "))}function Qt(At,te){if(1&At&&C.\u0275\u0275conditionalCreate(0,jt,1,0)(1,ut,4,0),2&At){const Z=C.\u0275\u0275nextContext(4);C.\u0275\u0275conditional(Z.internationalCustomer?1:0)}}function wt(At,te){if(1&At){const Z=C.\u0275\u0275getCurrentView();C.\u0275\u0275elementStart(0,"div")(1,"label")(2,"input",80),C.\u0275\u0275twoWayListener("ngModelChange",function(zt){C.\u0275\u0275restoreView(Z);const qt=C.\u0275\u0275nextContext().$implicit;return C.\u0275\u0275twoWayBindingSet(qt.selected,zt)||(qt.selected=zt),C.\u0275\u0275resetView(zt)}),C.\u0275\u0275listener("ngModelChange",function(){C.\u0275\u0275restoreView(Z);const zt=C.\u0275\u0275nextContext(4);return C.\u0275\u0275resetView(zt.updatePartsSelected())}),C.\u0275\u0275elementEnd()()()}if(2&At){const Z=C.\u0275\u0275nextContext().$implicit;C.\u0275\u0275advance(2),C.\u0275\u0275twoWayProperty("ngModel",Z.selected)}}function he(At,te){if(1&At&&(C.\u0275\u0275elementStart(0,"tr",52)(1,"td",57),C.\u0275\u0275conditionalCreate(2,tt,4,1,"span",58)(3,V,4,0,"span",58),C.\u0275\u0275elementEnd(),C.\u0275\u0275elementStart(4,"td",59)(5,"div")(6,"a",60),C.\u0275\u0275text(7),C.\u0275\u0275elementEnd()(),C.\u0275\u0275elementStart(8,"div"),C.\u0275\u0275text(9),C.\u0275\u0275elementEnd(),C.\u0275\u0275conditionalCreate(10,Et,3,0,"div",61),C.\u0275\u0275conditionalCreate(11,nt,2,0,"div",10)(12,Ct,1,1,"altec-connect-orderable-status",62),C.\u0275\u0275elementEnd(),C.\u0275\u0275elementStart(13,"td",57),C.\u0275\u0275conditionalCreate(14,Ut,2,2,"div"),C.\u0275\u0275elementEnd(),C.\u0275\u0275elementStart(15,"td",57),C.\u0275\u0275conditionalCreate(16,it,5,4,"div"),C.\u0275\u0275elementEnd(),C.\u0275\u0275elementStart(17,"td",63),C.\u0275\u0275conditionalCreate(18,Ft,13,3,"div")(19,Qt,2,1),C.\u0275\u0275elementEnd(),C.\u0275\u0275elementStart(20,"td",57),C.\u0275\u0275conditionalCreate(21,wt,3,1,"div"),C.\u0275\u0275elementEnd()()),2&At){const Z=te.$implicit,$t=C.\u0275\u0275nextContext(3);C.\u0275\u0275advance(2),C.\u0275\u0275conditional(Z.balloonNumber&&"0"!==Z.balloonNumber?2:3),C.\u0275\u0275advance(2),C.\u0275\u0275property("ngClass",Z.calculatedShowPrice?"col-5":"col-6"),C.\u0275\u0275advance(2),C.\u0275\u0275property("routerLink",$t.productDetailLink(Z.partNumber)),C.\u0275\u0275advance(),C.\u0275\u0275textInterpolate(Z.displayName),C.\u0275\u0275advance(2),C.\u0275\u0275textInterpolate1("Part Number: ",Z.partNumber),C.\u0275\u0275advance(),C.\u0275\u0275conditional(Z.onWipRequirements&&Z.partQtyOnAssembly>0?10:-1),C.\u0275\u0275advance(),C.\u0275\u0275conditional(Z.quantityOnHand-Z.reservedQuantity<1&&Z.fullLeadTime>30?11:12),C.\u0275\u0275advance(3),C.\u0275\u0275conditional(Z.partQtyOnAssembly&&Z.partQtyOnAssembly>0?14:-1),C.\u0275\u0275advance(2),C.\u0275\u0275conditional(Z.calculatedShowPrice?16:-1),C.\u0275\u0275advance(),C.\u0275\u0275property("ngClass",Z.calculatedShowPrice?"col
1-3":"col-4"),C.\u0275\u0275advance(),C.\u0275\u0275conditional(Z.orderablePart?18:19),C.\u0275\u0275advance(3),C.\u0275\u0275conditional(Z.orderablePart?21:-1)}}function Xt(At,te){if(1&At&&(C.\u0275\u0275elementStart(0,"span",58),C.\u0275\u0275element(1,"i",64),C.\u0275\u0275elementStart(2,"span",65),C.\u0275\u0275text(3),C.\u0275\u0275elementEnd()()),2&At){const Z=C.\u0275\u0275nextContext().$implicit;C.\u0275\u0275advance(3),C.\u0275\u0275textInterpolate(Z.balloonNumber)}}function Zn(At,te){1&At&&(C.\u0275\u0275elementStart(0,"span",58),C.\u0275\u0275element(1,"i",64),C.\u0275\u0275elementStart(2,"span",66),C.\u0275\u0275text(3,"N/A"),C.\u0275\u0275elementEnd()())}function _n(At,te){if(1&At){const Z=C.\u0275\u0275getCurrentView();C.\u0275\u0275elementStart(0,"div")(1,"label",84)(2,"span",85),C.\u0275\u0275text(3,"Select:\xa0"),C.\u0275\u0275elementEnd(),C.\u0275\u0275elementStart(4,"input",86),C.\u0275\u0275twoWayListener("ngModelChange",function(zt){C.\u0275\u0275restoreView(Z);const qt=C.\u0275\u0275nextContext().$implicit;return C.\u0275\u0275twoWayBindingSet(qt.selected,zt)||(qt.selected=zt),C.\u0275\u0275resetView(zt)}),C.\u0275\u0275listener("ngModelChange",function(){C.\u0275\u0275restoreView(Z);const zt=C.\u0275\u0275nextContext(4);return C.\u0275\u0275resetView(zt.updatePartsSelected())}),C.\u0275\u0275elementEnd()()()}if(2&At){const Z=C.\u0275\u0275nextContext().$implicit;C.\u0275\u0275advance(4),C.\u0275\u0275twoWayProperty("ngModel",Z.selected)}}function wn(At,te){if(1&At&&(C.\u0275\u0275elementStart(0,"div"),C.\u0275\u0275text(1),C.\u0275\u0275elementEnd()),2&At){const Z=C.\u0275\u0275nextContext().$implicit;C.\u0275\u0275advance(),C.\u0275\u0275textInterpolate2("Qty on Assembly: ",Z.partQtyOnAssembly," ",Z.partUom)}}function En(At,te){1&At&&(C.\u0275\u0275elementStart(0,"div",61),C.\u0275\u0275element(1,"i",67),C.\u0275\u0275text(2," On Your Unit "),C.\u0275\u0275elementEnd())}function Ie(At,te){1&At&&(C.\u0275\u0275elementStart(0,"div",10),C.\u0275\u0275text(1," Please call 1-877-GO ALTEC, Option 1, to check availability. "),C.\u0275\u0275elementEnd())}function en(At,te){if(1&At&&C.\u0275\u0275element(0,"altec-connect-orderable-status",62),2&At){const Z=C.\u0275\u0275nextContext(2).$implicit;C.\u0275\u0275property("quantityOnHand",Z.quantityOnHand)("reservedQuantity",Z.reservedQuantity)("minMinmaxQuantity",Z.minMinmaxQuantity)("maxMinmaxQuantity",Z.maxMinmaxQuantity)("userLoggedIn",!0)}}function je(At,te){if(1&At&&C.\u0275\u0275template(0,en,1,5,"altec-connect-orderable-status",68),2&At){const Z=C.\u0275\u0275nextContext().$implicit;C.\u0275\u0275property("ngIf",Z.orderablePart)}}function Ae(At,te){if(1&At&&(C.\u0275\u0275elementStart(0,"div")(1,"span",69),C.\u0275\u0275text(2),C.\u0275\u0275pipe(3,"currency"),C.\u0275\u0275elementEnd(),C.\u0275\u0275text(4),C.\u0275\u0275elementEnd()),2&At){const Z=C.\u0275\u0275nextContext().$implicit;C.\u0275\u0275advance(2),C.\u0275\u0275textInterpolate(C.\u0275\u0275pipeBind1(3,2,Z.partPrice)),C.\u0275\u0275advance(2),C.\u0275\u0275textInterpolate1(" / ",Z.partUom," ")}}function Cn(At,te){if(1&At){const Z=C.\u0275\u0275getCurrentView();C.\u0275\u0275elementStart(0,"div")(1,"div",87)(2,"label"),C.\u0275\u0275text(3," Quantity: "),C.\u0275\u0275elementStart(4,"input",73),C.\u0275\u0275twoWayListener("ngModelChange",function(zt){C.\u0275\u0275restoreView(Z);const qt=C.\u0275\u0275nextContext().$implicit;return C.\u0275\u0275twoWayBindingSet(qt.quantity,zt)||(qt.quantity=zt),C.\u0275\u0275resetView(zt)}),C.\u0275\u0275elementEnd()(),C.\u0275\u0275elementStart(5,"button",88),C.\u0275\u0275listener("click",function(){C.\u0275\u0275restoreView(Z);const zt=C.\u0275\u0275nextContext().$implicit,qt=C.\u0275\u0275nextContext(3);return C.\u0275\u0275resetView(qt.openAddToCartModal(zt))}),C.\u0275\u0275text(6," Add to Cart "),C.\u0275\u0275elementEnd()(),C.\u0275\u0275elementStart(7,"div",75)(8,"div",7)(9,"a",89),C.\u0275\u0275listener("click",function(){C.\u0275\u0275restoreView(Z);const zt=C.\u0275\u0275nextContext().$implicit,qt=C.\u0275\u0275nextContext(3);
1return C.\u0275\u0275resetView(qt.openAddToListModal(zt))}),C.\u0275\u0275element(10,"i",78),C.\u0275\u0275text(11," Add to List "),C.\u0275\u0275elementEnd()()()()}if(2&At){const Z=C.\u0275\u0275nextContext().$implicit;C.\u0275\u0275advance(4),C.\u0275\u0275twoWayProperty("ngModel",Z.quantity),C.\u0275\u0275advance(),C.\u0275\u0275property("gaEvent",C.\u0275\u0275pureFunction0(3,dt)),C.\u0275\u0275advance(4),C.\u0275\u0275property("gaEvent",C.\u0275\u0275pureFunction0(4,_t))}}function Tn(At,te){1&At&&C.\u0275\u0275text(0," This item cannot be ordered online but please call us at 1-877-GO-ALTEC, Option 1 to place an order. ")}function ie(At,te){1&At&&(C.\u0275\u0275text(0," This item cannot be ordered online but please email us at "),C.\u0275\u0275elementStart(1,"a",79),C.\u0275\u0275text(2,"[email protected]"),C.\u0275\u0275elementEnd(),C.\u0275\u0275text(3," to place an order. "))}function de(At,te){if(1&At&&C.\u0275\u0275conditionalCreate(0,Tn,1,0)(1,ie,4,0),2&At){const Z=C.\u0275\u0275nextContext(4);C.\u0275\u0275conditional(Z.internationalCustomer?1:0)}}function Dn(At,te){if(1&At&&(C.\u0275\u0275elementStart(0,"div",54)(1,"div",51)(2,"div",81),C.\u0275\u0275conditionalCreate(3,Xt,4,1,"span",58),C.\u0275\u0275conditionalCreate(4,Zn,4,0,"span",58),C.\u0275\u0275elementEnd(),C.\u0275\u0275elementStart(5,"div",82),C.\u0275\u0275conditionalCreate(6,_n,5,1,"div"),C.\u0275\u0275elementEnd()(),C.\u0275\u0275elementStart(7,"div",83)(8,"div")(9,"a",60),C.\u0275\u0275text(10),C.\u0275\u0275elementEnd()(),C.\u0275\u0275elementStart(11,"div"),C.\u0275\u0275text(12),C.\u0275\u0275elementEnd(),C.\u0275\u0275conditionalCreate(13,wn,2,2,"div"),C.\u0275\u0275conditionalCreate(14,En,3,0,"div",61),C.\u0275\u0275conditionalCreate(15,Ie,2,0,"div",10)(16,je,1,1,"altec-connect-orderable-status",62),C.\u0275\u0275conditionalCreate(17,Ae,5,4,"div"),C.\u0275\u0275conditionalCreate(18,Cn,12,5,"div")(19,de,2,1),C.\u0275\u0275elementEnd()()),2&At){const Z=te.$implicit,$t=C.\u0275\u0275nextContext(3);C.\u0275\u0275advance(3),C.\u0275\u0275conditional(Z.balloonNumber?3:-1),C.\u0275\u0275advance(),C.\u0275\u0275conditional(Z.balloonNumber?-1:4),C.\u0275\u0275advance(2),C.\u0275\u0275conditional(Z.orderablePart?6:-1),C.\u0275\u0275advance(3),C.\u0275\u0275property("routerLink",$t.productDetailLink(Z.partNumber)),C.\u0275\u0275advance(),C.\u0275\u0275textInterpolate(Z.displayName),C.\u0275\u0275advance(2),C.\u0275\u0275textInterpolate1("Part Number: ",Z.partNumber),C.\u0275\u0275advance(),C.\u0275\u0275conditional(Z.partQtyOnAssembly&&Z.partQtyOnAssembly>0?13:-1),C.\u0275\u0275advance(),C.\u0275\u0275conditional(Z.onWipRequirements&&Z.partQtyOnAssembly>0?14:-1),C.\u0275\u0275advance(),C.\u0275\u0275conditional(Z.quantityOnHand-Z.reservedQuantity<1&&Z.fullLeadTime>30?15:16),C.\u0275\u0275advance(2),C.\u0275\u0275conditional(Z.calculatedShowPrice?17:-1),C.\u0275\u0275advance(),C.\u0275\u0275conditional(Z.orderablePart?18:19)}}function Je(At,te){if(1&At){const Z=C.\u0275\u0275getCurrentView();C.\u0275\u0275elementStart(0,"div",7)(1,"div",38)(2,"div",39)(3,"h4",40),C.\u0275\u0275text(4,"Parts List"),C.\u0275\u0275elementEnd()(),C.\u0275\u0275elementStart(5,"div",41)(6,"label",40)(7,"input",42,3),C.\u0275\u0275listener("click",function(zt){C.\u0275\u0275restoreView(Z);const qt=C.\u0275\u0275nextContext(2);return C.\u0275\u0275resetView(qt.selectAll(zt))}),C.\u0275\u0275elementEnd(),C.\u0275\u0275text(9," Select All "),C.\u0275\u0275elementEnd()(),C.\u0275\u0275elementStart(10,"div",43)(11,"button",44),C.\u0275\u0275listener("click",function(){C.\u0275\u0275restoreView(Z);const zt=C.\u0275\u0275nextContext(2);return C.\u0275\u0275resetView(zt.addSelectedToCart())}),C.\u0275\u0275text(12,"Add All Selected To Cart"),C.\u0275\u0275elementEnd()()(),C.\u0275\u0275elementStart(13,"div",45)(14,"app-ga-gold-button",36),C.\u0275\u0275listener("click",function(){C.\u0275\u0275restoreView(Z);const zt=C.\u0275\u0275nextContext(2);return C.\u0275\u0275resetView(zt.addSelectedToCart())}),C.\u0275\u0275elementEnd()(),C.\u0275\u0275elementStart(15,"div",46)(16,"label")(17,"input",42,3),C.\u0275\u0275listener("click",function(zt){C.\u0275\u0275restoreView(Z);const qt=C.\u0275\u0275nextContext(2);
1return C.\u0275\u0275resetView(qt.selectAll(zt))}),C.\u0275\u0275elementEnd(),C.\u0275\u0275text(19," Select All "),C.\u0275\u0275elementEnd()(),C.\u0275\u0275elementStart(20,"table",47)(21,"thead")(22,"tr"),C.\u0275\u0275element(23,"th",48)(24,"th",49),C.\u0275\u0275elementStart(25,"th",50),C.\u0275\u0275text(26,"Qty on Assembly"),C.\u0275\u0275elementEnd(),C.\u0275\u0275element(27,"th",48)(28,"th",51),C.\u0275\u0275elementStart(29,"th",50),C.\u0275\u0275text(30,"Select"),C.\u0275\u0275elementEnd()()(),C.\u0275\u0275elementStart(31,"tbody"),C.\u0275\u0275repeaterCreate(32,he,22,12,"tr",52,C.\u0275\u0275repeaterTrackByIdentity),C.\u0275\u0275elementEnd()(),C.\u0275\u0275elementStart(34,"div",53),C.\u0275\u0275repeaterCreate(35,Dn,20,11,"div",54,C.\u0275\u0275repeaterTrackByIdentity),C.\u0275\u0275elementEnd()(),C.\u0275\u0275elementStart(37,"div",7)(38,"div",55)(39,"button",56),C.\u0275\u0275listener("click",function(){C.\u0275\u0275restoreView(Z);const zt=C.\u0275\u0275nextContext(2);return C.\u0275\u0275resetView(zt.addSelectedToCart())}),C.\u0275\u0275text(40,"Add All Selected To Cart"),C.\u0275\u0275elementEnd()()()}if(2&At){const Z=C.\u0275\u0275nextContext(2);C.\u0275\u0275advance(11),C.\u0275\u0275property("gaEvent",C.\u0275\u0275pureFunction1(4,Tt,Z.detailResponse.model)),C.\u0275\u0275advance(3),C.\u0275\u0275property("gaEvent",C.\u0275\u0275pureFunction1(6,Tt,Z.detailResponse.model))("label","Add All Selected To Cart"),C.\u0275\u0275advance(18),C.\u0275\u0275repeater(Z.partsPageDetailResponse.partsPageDetail.foundItems),C.\u0275\u0275advance(3),C.\u0275\u0275repeater(Z.partsPageDetailResponse.partsPageDetail.foundItems),C.\u0275\u0275advance(4),C.\u0275\u0275property("gaEvent",C.\u0275\u0275pureFunction1(8,Tt,Z.detailResponse.model))}}function In(At,te){if(1&At&&C.\u0275\u0275element(0,"altecConnect-fleet-unit-missing",13),2&At){const Z=C.\u0275\u0275nextContext(2);C.\u0275\u0275property("detailResponse",Z.detailResponse)}}function ge(At,te){if(1&At&&(C.\u0275\u0275elementStart(0,"div",6)(1,"div",7),C.\u0275\u0275element(2,"app-fleet-detail-summary-box",8),C.\u0275\u0275elementEnd(),C.\u0275\u0275elementStart(3,"div",9),C.\u0275\u0275conditionalCreate(4,y,36,13,"div",10)(5,x,1,0),C.\u0275\u0275elementStart(6,"div",9),C.\u0275\u0275conditionalCreate(7,W,1,4,"app-ga-gold-button",11),C.\u0275\u0275elementEnd(),C.\u0275\u0275elementStart(8,"div",7),C.\u0275\u0275element(9,"hr"),C.\u0275\u0275elementEnd(),C.\u0275\u0275conditionalCreate(10,E,2,0,"div",12),C.\u0275\u0275conditionalCreate(11,Je,41,10),C.\u0275\u0275elementEnd(),C.\u0275\u0275conditionalCreate(12,In,1,1,"altecConnect-fleet-unit-missing",13),C.\u0275\u0275elementEnd()),2&At){const Z=C.\u0275\u0275nextContext();C.\u0275\u0275advance(2),C.\u0275\u0275property("detailResponse",Z.detailResponse)("hideTitle",!1),C.\u0275\u0275advance(2),C.\u0275\u0275conditional(Z.imageUrls&&Z.imageUrls.length>0?4:5),C.\u0275\u0275advance(3),C.\u0275\u0275conditional(Z.loadingPartsPageDetail?-1:7),C.\u0275\u0275advance(3),C.\u0275\u0275conditional(!Z.loading&&Z.loadingPartsPageDetail?10:-1),C.\u0275\u0275advance(),C.\u0275\u0275conditional(Z.loadingPartsPageDetail?-1:11),C.\u0275\u0275advance(),C.\u0275\u0275conditional(Z.unitMissing?12:-1)}}T.FleetPartsBreakdownComponent=(()=>{class At{constructor(Z,$t,zt,qt,Se,Oe,Ve,vn,we,nn){this.fleetService=Z,this.route=$t,this.loader=zt,this.addToCartModal=qt,this.addToListModal=Se,this.addAllToCartModal=Oe,this.httpClient=Ve,this.configService=vn,this.srService=we,this.statefulService=nn,this.detailRequest=new b.FleetDetailRequest,this.detailResponse=new h.FleetDetailResponse,this.loading=!0,this.loadingDetail=!0,this.loadingPartsPageDetail=!0,this.loadingPageItemImages=!0,this.partsSelected=!1,this.unitMissing=!1,this.imageUrls=[],this.selectedImageIndex=0,this.imageIndexRotation=[],this.internationalCustomer=!1,this.showShipDateMessage=!1}ngOnInit(){this.loader.start(),this.unitId=this.route.snapshot.queryParamMap.get("unitId"),this.pageItemNumber=this.route.snapshot.queryParamMap.get("pageItemNumber"),this.unitSerial=this.route.snapshot.queryParamMap.get("unitSeri
1al"),this.unitSerial&&this.unitSerial.length>0?this.detailRequest.externalIdentifier=this.unitSerial:this.detailRequest.instanceId=Number(this.unitId),this.detailRequest.onBOM=!0,this.fleetService.detailRequest(this.detailRequest).pipe((0,u.take)(1)).pipe((0,u.finalize)(()=>{this.loadingDetail=!1,this.checkLoadingStatus()})).subscribe(Z=>{Z&&(this.detailResponse=Z)},()=>{this.unitMissing=!0}),this.fleetService.getPageItemImages(parseInt(this.unitId),this.pageItemNumber).pipe((0,u.finalize)(()=>{this.loadingPageItemImages=!1,this.checkLoadingStatus()})).subscribe(Z=>{Z&&(this.imageUrls=Z,this.imageIndexRotation=new Array(this.imageUrls.length).fill(0))}),this.fleetService.getPartsPageDetail(+this.unitId,this.pageItemNumber).pipe((0,u.finalize)(()=>{this.loadingPartsPageDetail=!1,this.checkLoadingStatus()})).subscribe(Z=>{this.partsPageDetailResponse=Z,Z&&(this.partsPageDetailResponse.partsPageDetail.foundItems.forEach($t=>{this.httpClient.get(this.configService.replacePartImageUrl+$t.partNumber).subscribe(zt=>{zt.digitalassets.length>0&&($t.images=zt.digitalassets)})}),console.log("partsPageDetailResponse: ",this.partsPageDetailResponse),this.partsPageDetailResponse=Z)})}ngAfterViewInit(){}prevPage(){this.selectedImageIndex>0&&(this.selectedImageIndex--,this.resizeImageAndDiv())}nextPage(){this.selectedImageIndex<this.imageUrls.length-1&&(this.selectedImageIndex++,this.resizeImageAndDiv())}resizeImageAndDiv(){this.innerImageDiv.nativeElement.style.height="",this.innerImageDiv.nativeElement.style.width="";let Z=this.imageIndexRotation[this.selectedImageIndex];0==Z||180==Z?(this.partImage.nativeElement.style.width="100%",this.partImage.nativeElement.style.height="auto",this.innerImageDiv.nativeElement.style.height=`${this.partImage.nativeElement.style.height+2}px`,this.scrollable.nativeElement.scrollTo(0,0)):(this.partImage.nativeElement.style.height=this.innerImageDiv.nativeElement.offsetWidth-2+"px",this.partImage.nativeElement.style.width="auto",this.innerImageDiv.nativeElement.style.height=`${this.partImage.nativeElement.offsetWidth+2}px`,this.scrollable.nativeElement.scrollTo(0,0))}rotate(Z){let $t=this.imageIndexRotation[this.selectedImageIndex];this.imageIndexRotation[this.selectedImageIndex]="right"===Z?$t<270?$t+90:0:$t>0?$t-90:270;
1const zt=document.getElementById(`partImage-${this.selectedImageIndex}`).offsetWidth,qt=document.getElementById(`partImage-${this.selectedImageIndex}`).offsetHeight;if(0==$t||180==$t){let Oe=zt*(zt/qt),Ve=zt;this.partImage.nativeElement.style.width=`${Oe}px`,this.partImage.nativeElement.style.height=`${Ve}px`,this.innerImageDiv.nativeElement.style.height=`${Oe+2}px`}else{let Se=qt/zt,Ve=qt*Se;this.partImage.nativeElement.style.width=zt*Se+"px",this.partImage.nativeElement.style.height=`${Ve}px`,this.innerImageDiv.nativeElement.style.height=`${Ve+2}px`}this.scrollable.nativeElement.scrollTo(0,0)}checkLoadingStatus(){this.loadingDetail||this.loadingPageItemImages||(this.loading=!1,this.loader.stop(),this.internationalCustomer="en"===this.statefulService.profile.locale),!this.loadingDetail&&!this.loadingPageItemImages&&!this.loadingPartsPageDetail&&this.prepareParts()}prepareParts(){for(const Z of this.partsPageDetailResponse.partsPageDetail.foundItems)Z.detailPageUrl=Z.url,Z.showPrice&&Z.partPrice&&Z.partPrice>0&&(Z.calculatedShowPrice=!0),Z.replacementPart=!Z.supplyItem,Z.orderablePart=Z.replacementPart?Z.purchasable&&Z.replacementPartShowOnline&&Z.calculatedShowPrice:Z.purchasable,Z.quantity=parseInt(Z.partQtyOnAssembly,10)||1}openPdfUrl(){this.loader.start();const Z=new o.PageItemPdfDownloadRequestDto;Z.attachmentId=this.partsPageDetailResponse.partsPageDetail.pageDetails.page.attachmentId,Z.pdfTitle=`Item #${this.pageItemNumber} (Model ${this.detailResponse.model}).pdf`,Z.unitId=this.unitId,Z.pageItemNumber=this.pageItemNumber,Z.download=1,this.srService.getInspectionPaperworkUrl(+Z.attachmentId,Z.pdfTitle).pipe((0,u.tap)($t=>{this.loader.stop()})).subscribe($t=>{window.open($t.fileUrl,"_blank")})}openAddToCartModal(Z){let $t=new Date;$t=(0,vt.addBusinessDays)($t,Z.quantityOnHand-Z.reservedQuantity>0?1:Z.fullLeadTime),Z.quantityOnHand-Z.reservedQuantity<1&&Z.fullLeadTime>30&&(this.showShipDateMessage=!0),this.addToCartModal.open(Z.displayName,Z.partNumber,null,this.detailResponse.unitSerial,Z.quantity,Z.partPrice,Z?.images&&Z?.images.length>0?Z.images[0]:"",Z.partNumber,[],$t,this.showShipDateMessage)}openAddToListModal(Z){this.addToListModal.open(Z.displayName,Z.partNumber,Z.partNumber,Z.quantity)}arePartsSelected(){const Z=this.partsPageDetailResponse.partsPageDetail.foundItems.filter($t=>$t.selected);return!!(Z&&Z.length>0)}updatePartsSelected(){this.partsSelected=this.arePartsSelected()}addSelectedToCart(){if(!this.arePartsSelected())return;const Z=this.partsPageDetailResponse.partsPageDetail.foundItems.filter(zt=>zt.selected),$t=new Map;for(const zt of Z){const qt=$t.get(zt.partNumber);if(void 0!==qt)qt.quantity+=Number(zt.quantity);else{const Se={itemId:zt.partNumber,quantity:Number(zt.quantity)};$t.set(zt.partNumber,Se)}}this.addAllToCartModal.open(Array.from($t.values())),this.partsPageDetailResponse.partsPageDetail.foundItems.forEach(zt=>{zt.selected=!1}),this.selectAllCheckBox.nativeElement.checked=!1}selectAll(Z){if(Z.target.checked)for(const $t of this.partsPageDetailResponse.partsPageDetail.foundItems){let qt=!1,Se=!1;$t.showPrice&&$t.partPrice&&$t.partPrice>0&&(Se=!0),qt=$t.supplyItem?$t.purchasable:$t.purchasable&&$t.replacementPartShowOnline&&Se,qt&&($t.selected=!0)}else this.partsPageDetailResponse.partsPageDetail.foundItems.forEach($t=>{$t.selected=!1})}productDetailLink(Z){return`/pages/dashboard/equipment/fleet/partsBreakDown/${Z}/${Z}`}static{this.\u0275fac=function($t){return new($t||At)(C.\u0275\u0275directiveInject(ht.FleetService),C.\u0275\u0275directiveInject(F.ActivatedRoute),C.\u0275\u0275directiveInject(ct.LoadingService),C.\u0275\u0275directiveInject(at.AddToCartModalService),C.\u0275\u0275directiveInject(rt.AddToListModalService),C.\u0275\u0275directiveInject(X.AddAllToCartModalService),C.\u0275\u0275directiveInject(gt.HttpClient),C.\u0275\u0275directiveInject(mt.ConfigService),C.\u0275\u0275directiveInject(St.ServicesService),C.\u0275\u0275directiveInject(ft.StatefulService))}}static{this.\u0275cmp=C.\u0275\u0275defineComponent({type:At,selectors:[["altecConnect-fleet-parts-breakdown"]],viewQuery:function($t,zt){if(1&$t&&C.\u0275\u0275viewQuery(Dt,5)(Jt,5)(bt,5)(kt,5),2&$t){let qt;C.\u0275\u0275queryRefresh(qt=C.\u0275\u0275loadQuery())&&(zt.selectAllCheckBox=qt.first),C.\u0275\u0275queryRefresh(qt=C.\u0275\u0275loadQuery())&&(zt.partImage=qt.first),C.\u0275\u0275queryRefresh(qt=C.\u0275\u0275loadQuery())&&(zt.innerImageDiv=qt.first),C.\u0275\u0275queryRefresh(qt=C.\u0275\u0275loadQuery())&&(zt.scrollable=qt.first)}},standalone:!1,decls:3,vars:3,consts:[["scrollable",""],["innerImageDiv",""],["partImage",""],["selectAllCheckBox",""],[4,"hasAnyPrivileges"],[1,"parts-page"],[1,"row","mt-5"],[1,"col-12"],[3,"detailResponse","hideTitle"],[1,"col-12","mt-3"],[1,"mt-2"],[3,"gaEvent","label"],["id","spinner",1,"col-12"],[3,"detailResponse"],[1,"parts-image-header"],[1,"p-2","d-none","d-md-flex","align-items-center","justify-content-between","w-100"],[1,"col-auto","d-flex","gap-2"],[1,"control-btn",3,"click","ngClass"],[1,"fa","fa-lg","fa-angle-double-left"],[1,"btn-altec","control-btn",3,"click"],[1,"fa","fa-lg","fa-rotate-left"],[1,"col-auto","page-num-div","bold","text-center"],[1,"fa","fa-lg","fa-rotate-right"],[1,"fa","fa-lg","fa-angle-double-right"],[1,"p-2","d-flex","d-md-none","align-items-center","justify-content-between","w-100"],[1,"d-flex","gap-2"],[1,"control-btn-mobile",3,"click","ngClass"],[1,"fa","fa-angle-double-left"],[1,"btn-altec","control-btn-mobile",3,"click"],[1,"fa","fa-rotate-left"],[1,"page-num-div-mobile","bold","text-center"],[1,"fa","fa-rotate-right"],[1,"fa","fa-angle-double-right"],[1,"parts-image-scrollable","w-100"],[1,"inner"],[1,"part-image",3,"id","src","ngStyle"],[3,"click","gaEvent","label"],[1,"fa","fa-spinner","fa-spin","fa-fw","fa-5x"],[1,"row","align-items-center","mb-3"],[1,"col-12","col-md-4"],[1,"mb-0"],[1,"col-md-4","text-align-right","d-none","d-md-block"],["type","checkbox",3,"click"],[1,"col-md-4","text-end","d-none","d-md-block"],[1,"btn","btn-altec",2,"width","90%",3,"click","gaEvent"],["id","buttonMobile",1,"col-12","d-block","d-sm-none"],[1,"d-block","d-sm-none","mb-3"],[1,"table","table-striped","d-none","d-md-block","w-100"],[1,"col-1"],[1,"col-5"],[1,"col-1","small","text-center"],[1,"col-3"],[1,"parts"],[1,"d-block","d-md-none","parts","w-100"],[1,"mobile-parts-row"],[1,"text-end","mb-2",2,"padding-top","30px"],[1,"btn","btn-altec",3,"click","gaEvent"],[1,"col-1","text-center"],[1,"fa-stack"],[1,"column",3,"ngClass"],[3,"routerLink"],[1,"mt-1","verified"],[1,"color-block",3,"quantityOnHand","reservedQuantity","minMinmaxQuantity","max
1MinmaxQuantity","userLoggedIn"],[3,"ngClass"],[1,"fa","fa-circle-thin","fa-stack-2x"],[1,"fa-stack-1x"],[1,"fa-stack-1x","small-text"],["aria-hidden","true",1,"fa","fa-lg","fa-check"],["class","color-block",3,"quantityOnHand","reservedQuantity","minMinmaxQuantity","maxMinmaxQuantity","userLoggedIn",4,"ngIf"],[1,"price"],[1,"mb-3","quantity-div","text-center"],["for","product-quantity"],[1,"d-none","d-sm-block"],["type","number","digitOnly","",1,"form-control","product-quantity","mt-1","me-1",3,"ngModelChange","ngModel"],[1,"btn-altec","add-to-cart-btn",3,"click"],[1,"row","mt-2"],[1,"col-12","text-center"],[1,"add-to-list","no-border",3,"click","gaEvent"],["aria-hidden","true",1,"fa","fa-plus-square"],["href","mailto:[email protected]"],["type","checkbox",3,"ngModelChange","ngModel"],[1,"center-helper"],[1,"mobile-select-input-div"],[1,"col-9"],[1,"checkbox-label"],[1,"input-label-v-align"],["type","checkbox",1,"input-label-v-align",3,"ngModelChange","ngModel"],[1,"mb-3","quantity-div"],[1,"btn-altec","add-to-cart-btn",3,"click","gaEvent"],[1,"add-to-list-mobile","no-border",3,"click","gaEvent"]],template:function($t,zt){1&$t&&(C.\u0275\u0275template(0,Mt,2,0,"ng-container",4),C.\u0275\u0275elementStart(1,"div",5),C.\u0275\u0275conditionalCreate(2,ge,13,7,"div",6),C.\u0275\u0275elementEnd()),2&$t&&(C.\u0275\u0275property("hasAnyPrivileges",C.\u0275\u0275pureFunction0(2,K)),C.\u0275\u0275advance(2),C.\u0275\u0275conditional(zt.loading?-1:2))},dependencies:[ot.NgClass,ot.NgIf,ot.NgStyle,B.GaGoldButtonComponent,Ot.GaEventDirective,$.DigitOnlyDirective,j.DefaultValueAccessor,j.NumberValueAccessor,j.CheckboxControlValueAccessor,j.NgControlStatus,j.NgModel,F.RouterLink,G.HasAnyPrivilegesDirective,k.GlobalFilterComponent,R.OrderableStatusComponent,U.FleetDetailSummaryBoxComponent,st.FleetUnitMissingComponent,ot.CurrencyPipe],styles:[".parts-page[_ngcontent-%COMP%]{width:100%;max-width:100%}.not-verified[_ngcontent-%COMP%]{color:#d06800;font-weight:700}.add-to-cart-btn[_ngcontent-%COMP%]{vertical-align:bottom!important}#spinner[_ngcontent-%COMP%]{display:inline-block;text-align:center}#buttonMobile[_ngcontent-%COMP%]{padding-bottom:20px}.parts-image-scrollable[_ngcontent-%COMP%]{max-height:600px;background-color:#b2b2b2;border:1px solid #777777;padding:25px;overflow-y:auto}.parts-image-header[_ngcontent-%COMP%]{min-height:60px;top:0;background-color:#777;border:1px solid #555555;color:#fff;display:flex;align-items:center}.parts-image-header[_ngcontent-%COMP%] .control-btn[_ngcontent-%COMP%]{width:45px;height:45px;display:inline-flex;align-items:center;justify-content:center;padding:0}.parts-image-header[_ngcontent-%COMP%] .control-btn-mobile[_ngcontent-%COMP%]{width:35px;height:35px;display:inline-flex;align-items:center;justify-content:center;padding:0}.parts-image-header[_ngcontent-%COMP%] .gap-2[_ngcontent-%COMP%]{gap:.5rem}.parts-image-footer[_ngcontent-%COMP%]{height:auto;bottom:0;background-color:#777;border:1px solid #555555;color:#fff} altec-connect-orderable-status, altec-connect-orderable-status *{color:#000!important} .tooltip-inner{color:#fff!important}.inner[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.page-num-div[_ngcontent-%COMP%]{font-size:16px;display:flex;align-items:center;justify-content:center;height:45px;line-height:45px}.page-num-div-mobile[_ngcontent-%COMP%]{font-size:14px;display:flex;align-items:center;justify-content:center;height:35px;line-height:35px}.part-image[_ngcontent-%COMP%]{display:block;flex-shrink:0;max-width:100%;width:100%;height:auto}.small-text[_ngcontent-%COMP%]{font-size:12px!important}.table[_ngcontent-%COMP%]{width:100%!important;margin-bottom:0;max-width:none!important;table-layout:auto}.parts[_ngcontent-%COMP%]{width:100%;max-width:100%}.btn-disabled[_ngcontent-%COMP%]{background:#d9d9d9!important;color:#555!important;cursor:not-allowed!important}.btn-altec[_ngcontent-%COMP%]{border:1px solid transparent!important;font-size:16px}.label[_ngcontent-%COMP%]{display:inline-block;max-width:100%;margin-bottom:5px;font-weight:600}"]}
1)}}return At})()},12918(Ht,T,d){"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.FleetSearchComponent=void 0;const S=d(31635),O=(d(84341),d(43481)),u=d(83352),h=(d(79591),d(21916),d(97377),d(80980)),D=d(63556),v=(d(20851),S.__importStar(d(49849))),p=S.__importStar(d(21916)),J=S.__importStar(d(20851)),lt=S.__importStar(d(83352)),r=S.__importStar(d(84341)),I=S.__importStar(d(79591)),vt=S.__importStar(d(97377)),C=S.__importStar(d(96478)),ht=S.__importStar(d(17606)),F=S.__importStar(d(69673)),ct=S.__importStar(d(47291)),at=S.__importStar(d(57504)),rt=S.__importStar(d(43332)),X=S.__importStar(d(89419)),gt=S.__importStar(d(9231)),mt=()=>["B2B_View_Parent_Holding","B2B_View_Organization_Groups"],St=()=>["B2B_View_APNs","B2B_View_Analytics_Summary"];function ft(Dt,Jt){1&Dt&&(v.\u0275\u0275elementContainerStart(0),v.\u0275\u0275element(1,"altcon-global-filter"),v.\u0275\u0275elementContainerEnd())}function ot(Dt,Jt){1&Dt&&v.\u0275\u0275element(0,"app-fleet-search-tabularcard",5),2&Dt&&v.\u0275\u0275property("content",Jt.$implicit)}function B(Dt,Jt){if(1&Dt&&(v.\u0275\u0275elementStart(0,"option",13),v.\u0275\u0275text(1),v.\u0275\u0275elementEnd()),2&Dt){const bt=Jt.$implicit;v.\u0275\u0275property("value",v.\u0275\u0275interpolate(bt)),v.\u0275\u0275advance(),v.\u0275\u0275textInterpolate(bt)}}function Ot(Dt,Jt){if(1&Dt&&(v.\u0275\u0275elementStart(0,"option",13),v.\u0275\u0275text(1),v.\u0275\u0275elementEnd()),2&Dt){const bt=Jt.$implicit;v.\u0275\u0275property("value",v.\u0275\u0275interpolate(bt.city+","+bt.stateProvince)),v.\u0275\u0275advance(),v.\u0275\u0275textInterpolate2("",bt.city,", ",bt.stateProvince," ")}}function $(Dt,Jt){1&Dt&&v.\u0275\u0275text(0,"Equipment Warnings are notifications that a unit has a Mandatory Action Bulletin, an out of service condition, a Customer Service Notice past action required date, or been reported totaled or stolen.")}function j(Dt,Jt){1&Dt&&(v.\u0275\u0275elementStart(0,"div",9)(1,"div",10)(2,"label"),v.\u0275\u0275text(3,"Rental Units"),v.\u0275\u0275elementEnd(),v.\u0275\u0275elementStart(4,"select",33)(5,"option",19),v.\u0275\u0275text(6,"Show All"),v.\u0275\u0275elementEnd(),v.\u0275\u0275elementStart(7,"option",34),v.\u0275\u0275text(8,"Show Only Owned Units"),v.\u0275\u0275elementEnd(),v.\u0275\u0275elementStart(9,"option",20),v.\u0275\u0275text(10,"Show Only Rental Units"),v.\u0275\u0275elementEnd()()()())}function G(Dt,Jt){1&Dt&&(v.\u0275\u0275elementStart(0,"div",9)(1,"div",10)(2,"label"),v.\u0275\u0275text(3,"Connectivity"),v.\u0275\u0275elementEnd(),v.\u0275\u0275elementStart(4,"select",35)(5,"option",19),v.\u0275\u0275text(6,"Show All"),v.\u0275\u0275elementEnd(),v.\u0275\u0275elementStart(7,"option",36),v.\u0275\u0275text(8,"Show Only Connected Units"),v.\u0275\u0275elementEnd()()()())}function k(Dt,Jt){1&Dt&&(v.\u0275\u0275elementStart(0,"div",9)(1,"div",10)(2,"label"),v.\u0275\u0275text(3,"Diagnostic Trouble Codes"),v.\u0275\u0275elementEnd(),v.\u0275\u0275elementStart(4,"select",37)(5,"option",19),v.\u0275\u0275text(6,"Show All"),v.\u0275\u0275elementEnd(),v.\u0275\u0275elementStart(7,"option",38),v.\u0275\u0275text(8,"Show Only Units with Active DTC"),v.\u0275\u0275elementEnd()()()())}function R(Dt,Jt){1&Dt&&(v.\u0275\u0275elementStart(0,"div",9)(1,"div",10)(2,"label"),v.\u0275\u0275text(3,"Direction"),v.\u0275\u0275elementEnd(),v.\u0275\u0275elementStart(4,"div",39)(5,"label",40),v.\u0275\u0275element(6,"input",41),v.\u0275\u0275text(7," Ascending "),v.\u0275\u0275elementEnd(),v.\u0275\u0275elementStart(8,"label",40),v.\u0275\u0275element(9,"input",42),v.\u0275\u0275text(10," Descending "),v.\u0275\u0275elementEnd()()()())}function U(Dt,Jt){if(1&Dt){const bt=v.\u0275\u0275getCurrentView();v.\u0275\u0275elementStart(0,"form",6),v.\u0275\u0275listener("ngSubmit",function(){v.\u0275\u0275restoreView(bt);const K=v.\u0275\u0275nextContext();return v.\u0275\u0275resetView(K.onApply())}),v.\u0275\u0275elementStart(1,"div",7)(2,"h6",8),v.\u0275\u0275text(3,"Filter Options"),v.\u0275\u0275elementEnd(),v.\u0275\u0275elementStart(4,"div",9)(5,"div",10)(6,"label"),v.\u0275\u0275text(7,"Model"),v.\u0275\u0275elementEnd(),v.\u0275\u0275elementStart(8,"select",11)(9,"option",12),v.\u0275\u0275text(10,"Show All"),v.\u0275\u0275elementEnd(),v.\u0275\u0275repeaterCreate(11,B,2,3,"option",13,v.\u0275\u0275repeaterTrackByIdentity),v.\u0275\u0275pipe(13,"filterUnique"),v.\u0275\u0275elementEnd()()(),v.\u0275\u0275elementStart(14,"div",9)(15,"div",10)(16,"label"),v.\u0275\u0275text(17,"Location"),v.\u0275\u0275elementEnd(),v.\u0275\u0275elementStart(18,"select",14)(19,"o
1ption",12),v.\u0275\u0275text(20,"Show All"),v.\u0275\u0275elementEnd(),v.\u0275\u0275repeaterCreate(21,Ot,2,4,"option",13,v.\u0275\u0275repeaterTrackByIdentity),v.\u0275\u0275elementEnd()()(),v.\u0275\u0275elementStart(23,"div",9)(24,"div",15)(25,"label"),v.\u0275\u0275text(26,"Warnings"),v.\u0275\u0275elementEnd(),v.\u0275\u0275template(27,$,1,0,"ng-template",null,2,v.\u0275\u0275templateRefExtractor),v.\u0275\u0275elementStart(29,"span",16),v.\u0275\u0275element(30,"i",17),v.\u0275\u0275elementEnd(),v.\u0275\u0275elementStart(31,"select",18)(32,"option",19),v.\u0275\u0275text(33,"Show All"),v.\u0275\u0275elementEnd(),v.\u0275\u0275elementStart(34,"option",20),v.\u0275\u0275text(35,"Show Only Warned Units"),v.\u0275\u0275elementEnd()()()()(),v.\u0275\u0275elementStart(36,"div",7),v.\u0275\u0275template(37,j,11,0,"div",21)(38,G,9,0,"div",22)(39,k,9,0,"div",22),v.\u0275\u0275elementEnd(),v.\u0275\u0275elementStart(40,"div",7)(41,"h6",8),v.\u0275\u0275text(42,"Sort Options"),v.\u0275\u0275elementEnd(),v.\u0275\u0275elementStart(43,"div",9)(44,"div",10)(45,"label"),v.\u0275\u0275text(46,"Field"),v.\u0275\u0275elementEnd(),v.\u0275\u0275elementStart(47,"select",23),v.\u0275\u0275listener("change",function(K){v.\u0275\u0275restoreView(bt);const xt=v.\u0275\u0275nextContext();return v.\u0275\u0275resetView(xt.showSortByOption(K.target.value))}),v.\u0275\u0275elementStart(48,"option",19),v.\u0275\u0275text(49,"Select..."),v.\u0275\u0275elementEnd(),v.\u0275\u0275elementStart(50,"option",24),v.\u0275\u0275text(51,"Model"),v.\u0275\u0275elementEnd(),v.\u0275\u0275elementStart(52,"option",25),v.\u0275\u0275text(53,"City"),v.\u0275\u0275elementEnd(),v.\u0275\u0275elementStart(54,"option",26),v.\u0275\u0275text(55,"State"),v.\u0275\u0275elementEnd(),v.\u0275\u0275elementStart(56,"option",27),v.\u0275\u0275text(57,"Customer Vehicle Number"),v.\u0275\u0275elementEnd(),v.\u0275\u0275elementStart(58,"option",28),v.\u0275\u0275text(59,"In Service Date"),v.\u0275\u0275elementEnd(),v.\u0275\u0275elementStart(60,"option",29),v.\u0275\u0275text(61,"Unit Serial"),v.\u0275\u0275elementEnd(),v.\u0275\u0275elementStart(62,"option",30),v.\u0275\u0275text(63,"F/A Serial"),v.\u0275\u0275elementEnd(),v.\u0275\u0275elementStart(64,"option",31),v.\u0275\u0275text(65,"Chassis VIN"),v.\u0275\u0275elementEnd()()()(),v.\u0275\u0275conditionalCreate(66,R,11,0,"div",9),v.\u0275\u0275elementEnd(),v.\u0275\u0275elementStart(67,"div",7)(68,"div",8)(69,"button",32),v.\u0275\u0275text(70,"Apply"),v.\u0275\u0275elementEnd()()()()}if(2&Dt){const bt=v.\u0275\u0275reference(28),kt=v.\u0275\u0275nextContext();v.\u0275\u0275property("formGroup",kt.searchOptionsForm),v.\u0275\u0275advance(11),v.\u0275\u0275repeater(v.\u0275\u0275pipeBind1(13,6,null==kt.filterLists?null:kt.filterLists.models)),v.\u0275\u0275advance(10),v.\u0275\u0275repeater(null==kt.filterLists?null:kt.filterLists.locations),v.\u0275\u0275advance(8),v.\u0275\u0275property("ngbTooltip",bt),v.\u0275\u0275advance(8),v.\u0275\u0275property("hasPrivilege","B2B_Global_Rental_Fleet_Search"),v.\u0275\u0275advance(),v.\u0275\u0275property("hasAllPrivileges",v.\u0275\u0275pureFunction0(8,St)),v.\u0275\u0275advance(),v.\u0275\u0275property("hasAllPrivileges",v.\u0275\u0275pureFunction0(9,St)),v.\u0275\u0275advance(27),v.\u0275\u0275conditional(kt.showSorterOptions?66:-1)}}T.FleetSearchComponent=(()=>{class Dt extends h.BaseSearchPageFunctions{constructor(bt,kt,K,xt,q,Tt){super(kt,K,q,bt,10),this.fleetService=bt,this.formBuilder=xt,this.statefulService=Tt,this.searchOptionsForm=this.formBuilder.group({models:[""],warnings:[""],rental:[""],analytics:[""],dtc:[""],locations:[""],sort:[""],sortDirectionSelect:["ASC"]}),this.controlGroup=new D.ControlGroup([new D.StandardFilter("models","MODEL"),new D.StandardFilter("warnings","WARNINGS"),new D.StandardFilter("rental","SHOWGLOBALRENTAL"),new D.StandardFilter("analytics","ANALYTICS"),new D.StandardFilter("dtc","DTC")],null,[new D.LocationFilter("locations","CITY","STATE")]),this.tooltip="You can search by Model, Serial, VIN, Customer Vehicle Number, or Location"}get searchValuePlaceholder(){return this.searchCmpFrm.searchValue}ngOnInit(){this.searchLogic(),this.privilege="B2B_View_Parent_Holding",this.businessName=this.statefulService.profile.businessName,this.service.getFleetFilterLists().pipe((0,O.take)(1)).subscribe(bt=>{this.filterLists=bt})}ngOnDestroy(){this.unsubscribe()}static{this.\u0275fac=function(kt){return new(kt||Dt)(v.\u0275\u0275directiveInject(p.FleetService),v.\u0275\u0275directiveInject(J.LoadingService),v.\u0275\u0275directiveInject(lt.SearchRoutingService),v.\u0275\u0275directiveInject(r.FormBuilder),v.\u0275\u0275directiveInject(I.GoogleServicesService),v.\u0275\u0275directiveInject(vt.StatefulService))}}static{this.\u0275cmp=v.\u0275\u0275defineComponent({type:Dt,selectors:[["app-fleet-search"]],standalone:!1,features:[v.\u0275\u0275ProvidersFeature([u.SearchRoutingService]),v.\u0275\u0275InheritDefinitionFeature],decls:6,vars:11,consts:[["tabularcard",""],["optionsForm",""],["toolTipContent",""],[4,"hasAnyPrivileges"],[3,"searchOutput","resetOutput","exportOutput","paginationOutput","searchCmpOutput","loading","requestData","responseData","pageTitle","searchFormTitle","isDataAvailable","searchOptionsForm","tooltipInput","hidePdfButton"],[3,"content"],[3,"ngSubmit","formGroup"],[1,"row"],[1,"col-12"],[1,"col-sm-12","col-md-4"],[1,"mb-3"],["formControlName","models",1,"form-control","form-control-sm"],["value","","selected","true"],[3,"value"],["formControlName","locations",1,"form-control","form-control-sm"],["id","warningGroup",1,"mb-3"],["placement","top","triggers","mouseenter:mouseleave",3,"ngbTooltip"],[1,"fa","fa-question-circle",2,"margin-left","3px"],["formControlName","warnings",1,"form-control","form-control-sm"],["value",""],["value","true"],["class","col-sm-12 col-md-4",4,"hasPrivilege"],["class","col-sm-12 col-md-4",4,"hasAllPrivileges"],["id","sortSelect","formControlName","sort",1,"form-control","form-control-sm",3,"change"],["value","MODEL"],["value","CITY"],["value","STATE"],["value","CUSTOMERVEHICLENUMBER"],["value","INSERVICEDATE"],["value","UNITSERIAL"],["value","FASERIAL"],["value","CHASSISVIN"],["type","submit",1,"btn","btn-altec","float-end"],["formControlName","rental",1,"form-control","form-control-sm"],["value","false"],["formControlName","analytics",1,"form-control","form-control-sm"],["value","connected-units"],["formControlName","dtc",1,"form-control","form-control-sm"],["value","activeDTC"],["id","sort-direction-radios"],[1,"radio-inline"],["type","radio","value","ASC","formControlName","sortDirectionSelect"],["type","radio","value","DESC","formControlName","sortDirectionSelect"]],template:function(kt,K){1&kt&&(v.\u0275\u0275template(0,ft,2,0,"ng-container",3),v.\u0275\u0275elementStart(1,"altcon-base-search-page",4),v.\u0275\u0275listener("searchOutput",function(q){return K.onSearchit(q)})("resetOutput",function(){return K.resetSearchOptions()})("exportOutput",function(){return K.onExport()})("paginationOutput",function(q){return K.onPagination(q)})("searchCmpOutput",function(q){return K.setSearchCmpFrm(q)}),v.\u0275\u0275template(2,ot,1,1,"ng-template",null,0,v.\u0275\u0275templateRefExtractor)(4,U,71,
110,"ng-template",null,1,v.\u0275\u0275templateRefExtractor),v.\u0275\u0275elementEnd()),2&kt&&(v.\u0275\u0275property("hasAnyPrivileges",v.\u0275\u0275pureFunction0(10,mt)),v.\u0275\u0275advance(),v.\u0275\u0275property("loading",K.loading)("requestData",K.requestData)("responseData",K.responseData)("pageTitle","My Fleet")("searchFormTitle","Search My Fleet")("isDataAvailable",K.isDataAvailable)("searchOptionsForm",K.searchOptionsForm)("tooltipInput",K.tooltip)("hidePdfButton",!0))},dependencies:[C.BaseSearchPageComponent,r.\u0275NgNoValidate,r.NgSelectOption,r.\u0275NgSelectMultipleOption,r.DefaultValueAccessor,r.SelectControlValueAccessor,r.RadioControlValueAccessor,r.NgControlStatus,r.NgControlStatusGroup,ht.HasAllPrivilegesDirective,F.HasAnyPrivilegesDirective,ct.HasPrivilegeDirective,r.FormGroupDirective,r.FormControlName,at.NgbTooltip,rt.GlobalFilterComponent,X.FleetSearchTabularcardComponent,gt.FilterPipe],encapsulation:2})}}return Dt})()},73270(Ht,T,d){"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.HasSmsResolver=void 0;const S=d(31635),O=(d(7901),d(59091)),g=(d(27575),d(20851),d(97377),S.__importStar(d(49849))),h=S.__importStar(d(27575)),D=S.__importStar(d(20851)),f=S.__importStar(d(97377));T.HasSmsResolver=(()=>{class p{constructor(lt,r,I){this.notmanService=lt,this.loader=r,this.statefulService=I}resolve(lt,r){return this.loader.start(),this.statefulService.profile.isInternalAssociate||null===this.statefulService.profile.contactId?(0,O.of)(!1):this.notmanService.hasSMSContact()}static{this.\u0275fac=function(r){return new(r||p)(g.\u0275\u0275inject(h.NotmanService),g.\u0275\u0275inject(D.LoadingService),g.\u0275\u0275inject(f.StatefulService))}}static{this.\u0275prov=g.\u0275\u0275defineInjectable({token:p,factory:p.\u0275fac,providedIn:"root"})}}return p})()},58434(Ht,T,d){"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.UnitDetailResolver=void 0;const S=d(31635),O=(d(7901),d(11293)),b=(d(21916),d(20851),S.__importStar(d(49849))),g=S.__importStar(d(21916)),h=S.__importStar(d(20851));T.UnitDetailResolver=(()=>{class f{constructor(p,J){this.fleetService=p,this.loader=J,this.UNIT_SERIAL_REGEX=new RegExp("^\\d{4}[-\\w]?\\w\\d{4}\\d?$"),this.FA_SERIAL_REGEX=new RegExp("^\\d{3}-\\d{7,10}$"),this.VIN_REGEX=new RegExp("^[A-HJ-NPR-Z0-9]{17}?$"),this.count=0}resolve(p,J){this.loader.start();let lt=new O.FleetDetailRequest,r=p.params.identifier;return p.queryParams.external?lt.externalIdentifier=r:lt.instanceId=Number(r),this.fleetService.detailRequest(lt)}static{this.\u0275fac=function(J){return new(J||f)(b.\u0275\u0275inject(g.FleetService),b.\u0275\u0275inject(h.LoadingService))}}static{this.\u0275prov=b.\u0275\u0275defineInjectable({token:f,factory:f.\u0275fac,providedIn:"root"})}}return f})()},58715(Ht,T){"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.ContractSupportRequest=void 0,T.ContractSupportRequest=class d{constructor(){this.type="",this.content={fullName:"",orgName:"",enteredEmail:"",enteredPhone:"",responseByEmail:!0,description:"",instanceId:null,unitSeri
1al:"",faSerial:"",chassisVin:""}}}},60150(Ht,T){"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.PDIOriginal=T.PDIUuidPair=T.PDIPreviewImage=T.PDIImageEnum=void 0;var d=function(u){return u.FRONT="FRONT",u.STREET_SIDE_FRONT_CORNER="STREET_SIDE_FRONT_CORNER",u.STREET_SIDE="STREET_SIDE",u.REAR="REAR",u.CURB_SIDE_REAR_CORNER="CURB_SIDE_REAR_CORNER",u.CURB_SIDE="CURB_SIDE",u.REGISTRATION_ECL="REGISTRATION_ECL",u.REGISTRATION_ENGINE="REGISTRATION_ENGINE",u.REGISTRATION_ODOMETER="REGISTRATION_ODOMETER",u.REGISTRATION_VIN="REGISTRATION_VIN",u.REGISTRATION_INCOMPLETE_TAG="REGISTRATION_INCOMPLETE_TAG",u.REGISTRATION_UPFITTER="REGISTRATION_UPFITTER",u}(d||(T.PDIImageEnum=d={}));T.PDIPreviewImage=class S{constructor(){this.pdiImageEnum=null,this.uuid="",this.previewBase64=""}},T.PDIUuidPair=class N{constructor(){this.pdiImageEnum=null,this.uuid=""}},T.PDIOriginal=class O{constructor(){this.pdiImageEnum=null,this.originalBase64=""}}},11293(Ht,T){"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.FleetDetailRequest=void 0,T.FleetDetailRequest=class d{constructor(){this.instanceId=null,this.locale="",this.externalIdentifier="",this.onBOM=!1}}},80732(Ht,T){"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.InstancePartsRequest=T.SearchInstancePartsRequest=void 0,T.SearchInstancePartsRequest=class d{constructor(){this.instanceId=null,this.unitSerial=null,this.accountId=null,this.instancePartsRequest=new S}};class S{constructor(){this.page=0,this.size=15,this.query=""}}T.InstancePartsRequest=S},23375(Ht,T,d){"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.AppRoutingModule=void 0;const S=d(31635),N=d(7901),O=S.__importStar(d(49849)),o=(S.__importStar(d(7901)),[]);T.AppRoutingModule=(()=>{class g{static{this.\u0275fac=function(f){return new(f||g)}}static{this.\u0275mod=O.\u0275\u0275defineNgModule({type:g})}static{this.\u0275inj=O.\u0275\u0275defineInjector({imports:[N.RouterModule.forChild(o),N.RouterModule]})}}return g})()},88588(Ht,T,d){"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.AssetTableComponent=void 0;const S=d(31635),N=d(49849),u=(d(6324),d(26672)),o=S.__importStar(d(49849)),b=S.__importStar(d(6324)),g=S.__importStar(d(60177)),h=S.__importStar(d(84341)),D=S.__importStar(d(34664));function f(Mt,y){if(1&Mt){const x=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"li")(1,"a",32),o.\u0275\u0275listener("click",function(E){o.\u0275\u0275restoreView(x);const tt=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(tt.viewSort(E,"utilization"))}),o.\u0275\u0275text(2,"Jobsite Utilization"),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(3,"li")(4,"a",32),o.\u0275\u0275listener("click",function(E){o.\u0275\u0275restoreView(x);const tt=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(tt.viewSort(E,"idle"))}),o.\u0275\u0275text(5,"Jobsite Idle"),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(6,"li")(7,"a",32),o.\u0275\u0275listener("click",function(E){o.\u0275\u0275restoreView(x);const tt=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(tt.viewSort(E,"plugIn"))}),o.\u0275\u0275text(8,"Plug-In Charging"),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(9,"li")(10,"a",32),o.\u0275\u0275listener("click",function(E){o.\u0275\u0275restoreView(x);const tt=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(tt.viewSort(E,"antiIdle"))}),o.\u0275\u0275text(11,"Anti-Idle Hours"),o.\u0275\u0275elementEnd()()}}function v(Mt,y){if(1&Mt){const x=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"li")(1,"a",32),o.\u0275\u0275listener("click",function(E){o.\u0275\u0275restoreView(x);const tt=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(tt.viewSort(E,"base"))}),o.\u0275\u0275element(2,"i",33),o.\u0275\u0275text(3," Back"),o.\u0275\u0275elementEnd()(),o.\u0275\u0275element(4,"li",34),o.\u0275\u0275elementStart(5,"li",35),o.\u0275\u0275text(6),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(7,"li")(8,"a",32),o.\u0275\u0275listener("click",function(){o.\u0275\u0275restoreView(x);const E=o.\u0275\u0275nextContext();
1return o.\u0275\u0275resetView(E.clickSort("asc"))}),o.\u0275\u0275element(9,"i",36),o.\u0275\u0275text(10," Ascending"),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(11,"li")(12,"a",32),o.\u0275\u0275listener("click",function(){o.\u0275\u0275restoreView(x);const E=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(E.clickSort("desc"))}),o.\u0275\u0275element(13,"i",37),o.\u0275\u0275text(14," Descending"),o.\u0275\u0275elementEnd()()}if(2&Mt){const x=o.\u0275\u0275nextContext();o.\u0275\u0275advance(6),o.\u0275\u0275textInterpolate(x.sortString())}}function p(Mt,y){if(1&Mt){const x=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"li")(1,"a",32),o.\u0275\u0275listener("click",function(E){o.\u0275\u0275restoreView(x);const tt=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(tt.viewFilters(E,"altec"))}),o.\u0275\u0275text(2,"Altec Model"),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(3,"li")(4,"a",32),o.\u0275\u0275listener("click",function(E){o.\u0275\u0275restoreView(x);const tt=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(tt.viewFilters(E,"jems"))}),o.\u0275\u0275text(5,"JEMS Model"),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(6,"li")(7,"a",32),o.\u0275\u0275listener("click",function(){o.\u0275\u0275restoreView(x);const E=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(E.clickFilter({key:"dtc",value:"Active DTC"}))}),o.\u0275\u0275text(8,"Active DTC"),o.\u0275\u0275elementEnd()()}}function J(Mt,y){if(1&Mt){const x=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"li")(1,"a",32),o.\u0275\u0275listener("click",function(){const E=o.\u0275\u0275restoreView(x).$implicit,tt=o.\u0275\u0275nextContext(2);return o.\u0275\u0275resetView(tt.clickFilter({key:"altec",value:E}))}),o.\u0275\u0275text(2),o.\u0275\u0275elementEnd()()}if(2&Mt){const x=y.$implicit;o.\u0275\u0275advance(2),o.\u0275\u0275textInterpolate(x)}}function lt(Mt,y){if(1&Mt){const x=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"li")(1,"a",32),o.\u0275\u0275listener("click",function(E){o.\u0275\u0275restoreView(x);const tt=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(tt.viewFilters(E,"base"))}),o.\u0275\u0275element(2,"i",33),o.\u0275\u0275text(3," Back"),o.\u0275\u0275elementEnd()(),o.\u0275\u0275element(4,"li",34),o.\u0275\u0275elementStart(5,"li",35),o.\u0275\u0275text(6,"Altec Model"),o.\u0275\u0275elementEnd(),o.\u0275\u0275repeaterCreate(7,J,3,1,"li",null,o.\u0275\u0275repeaterTrackByIdentity)}if(2&Mt){const x=o.\u0275\u0275nextContext();o.\u0275\u0275advance(7),o.\u0275\u0275repeater(x.altecFilters)}}function r(Mt,y){if(1&Mt){const x=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"li")(1,"a",32),o.\u0275\u0275listener("click",function(){const E=o.\u0275\u0275restoreView(x).$implicit,tt=o.\u0275\u0275nextContext(2);return o.\u0275\u0275resetView(tt.clickFilter({key:"jems",value:E}))}),o.\u0275\u0275text(2),o.\u0275\u0275elementEnd()()}if(2&Mt){const x=y.$implicit;o.\u0275\u0275advance(2),o.\u0275\u0275textInterpolate(x)}}function I(Mt,y){if(1&Mt){const x=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"li")(1,"a",32),o.\u0275\u0275listener("click",function(E){o.\u0275\u0275restoreView(x);const tt=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(tt.viewFilters(E,"base"))}),o.\u0275\u0275element(2,"i",33),o.\u0275\u0275text(3," Back"),o.\u0275\u0275elementEnd()(),o.\u0275\u0275element(4,"li",34),o.\u0275\u0275elementStart(5,"li",35),o.\u0275\u0275text(6,"JEMS Model"),o.\u0275\u0275elementEnd(),o.\u0275\u0275repeaterCreate(7,r,3,1,"li",null,o.\u0275\u0275repeaterTrackByIdentity)}if(2&Mt){const x=o.\u0275\u0275nextContext();o.\u0275\u0275advance(7),o.\u0275\u0275repeater(x.jemsFilters)}}function vt(Mt,y){if(1&Mt){const x=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"li")(1,"a",32),o.\u0275\u0275listener("click",function(E){o.\u0275\u0275restoreView(x);const tt=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(tt.viewSort(E,"utilization"))}),o.\u0275\u0275text(2,"Jobsite Utilization"),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(3,"li")(4,"a",32),o.\u0275\u0275listener("click",function(E){o.\u0275\u0275restoreView(x);const tt=o.\u0275\u0275nextContext();
1return o.\u0275\u0275resetView(tt.viewSort(E,"idle"))}),o.\u0275\u0275text(5,"Jobsite Idle"),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(6,"li")(7,"a",32),o.\u0275\u0275listener("click",function(E){o.\u0275\u0275restoreView(x);const tt=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(tt.viewSort(E,"plugIn"))}),o.\u0275\u0275text(8,"Plug-In Charging"),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(9,"li")(10,"a",32),o.\u0275\u0275listener("click",function(E){o.\u0275\u0275restoreView(x);const tt=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(tt.viewSort(E,"antiIdle"))}),o.\u0275\u0275text(11,"Anti-Idle Hours"),o.\u0275\u0275elementEnd()()}}function C(Mt,y){if(1&Mt){const x=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"li")(1,"a",32),o.\u0275\u0275listener("click",function(E){o.\u0275\u0275restoreView(x);const tt=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(tt.viewSort(E,"base"))}),o.\u0275\u0275element(2,"i",33),o.\u0275\u0275text(3," Back"),o.\u0275\u0275elementEnd()(),o.\u0275\u0275element(4,"li",34),o.\u0275\u0275elementStart(5,"li",35),o.\u0275\u0275text(6),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(7,"li")(8,"a",32),o.\u0275\u0275listener("click",function(){o.\u0275\u0275restoreView(x);const E=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(E.clickSort("asc"))}),o.\u0275\u0275element(9,"i",36),o.\u0275\u0275text(10," Ascending"),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(11,"li")(12,"a",32),o.\u0275\u0275listener("click",function(){o.\u0275\u0275restoreView(x);const E=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(E.clickSort("desc"))}),o.\u0275\u0275element(13,"i",37),o.\u0275\u0275text(14," Descending"),o.\u0275\u0275elementEnd()()}if(2&Mt){const x=o.\u0275\u0275nextContext();o.\u0275\u0275advance(6),o.\u0275\u0275textInterpolate(x.sortString())}}function ht(Mt,y){if(1&Mt){const x=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"li")(1,"a",32),o.\u0275\u0275listener("click",function(E){o.\u0275\u0275restoreView(x);const tt=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(tt.viewFilters(E,"altec"))}),o.\u0275\u0275text(2,"Altec Model"),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(3,"li")(4,"a",32),o.\u0275\u0275listener("click",function(E){o.\u0275\u0275restoreView(x);const tt=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(tt.viewFilters(E,"jems"))}),o.\u0275\u0275text(5,"JEMS Model"),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(6,"li")(7,"a",32),o.\u0275\u0275listener("click",function(){o.\u0275\u0275restoreView(x);const E=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(E.clickFilter({key:"dtc",value:"Active DTC"}))}),o.\u0275\u0275text(8,"Active DTC"),o.\u0275\u0275elementEnd()()}}function F(Mt,y){if(1&Mt){const x=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"li")(1,"a",32),o.\u0275\u0275listener("click",function(){const E=o.\u0275\u0275restoreView(x).$implicit,tt=o.\u0275\u0275nextContext(2);return o.\u0275\u0275resetView(tt.clickFilter({key:"altec",value:E}))}),o.\u0275\u0275text(2),o.\u0275\u0275elementEnd()()}if(2&Mt){const x=y.$implicit;o.\u0275\u0275advance(2),o.\u0275\u0275textInterpolate(x)}}function ct(Mt,y){if(1&Mt){const x=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"li")(1,"a",32),o.\u0275\u0275listener("click",function(E){o.\u0275\u0275restoreView(x);const tt=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(tt.viewFilters(E,"base"))}),o.\u0275\u0275element(2,"i",33),o.\u0275\u0275text(3," Back"),o.\u0275\u0275elementEnd()(),o.\u0275\u0275element(4,"li",34),o.\u0275\u0275elementStart(5,"li",35),o.\u0275\u0275text(6,"Altec Model"),o.\u0275\u0275elementEnd(),o.\u0275\u0275repeaterCreate(7,F,3,1,"li",null,o.\u0275\u0275repeaterTrackByIdentity)}if(2&Mt){const x=o.\u0275\u0275nextContext();o.\u0275\u0275advance(7),o.\u0275\u0275repeater(x.altecFilters)}}function at(Mt,y){if(1&Mt){const x=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"li")(1,"a",32),o.\u0275\u0275listener("click",function(){const E=o.\u0275\u0275restoreView(x).$implicit,tt=o.\u0275\u0275nextContext(2);
1return o.\u0275\u0275resetView(tt.clickFilter({key:"jems",value:E}))}),o.\u0275\u0275text(2),o.\u0275\u0275elementEnd()()}if(2&Mt){const x=y.$implicit;o.\u0275\u0275advance(2),o.\u0275\u0275textInterpolate(x)}}function rt(Mt,y){if(1&Mt){const x=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"li")(1,"a",32),o.\u0275\u0275listener("click",function(E){o.\u0275\u0275restoreView(x);const tt=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(tt.viewFilters(E,"base"))}),o.\u0275\u0275element(2,"i",33),o.\u0275\u0275text(3," Back"),o.\u0275\u0275elementEnd()(),o.\u0275\u0275element(4,"li",34),o.\u0275\u0275elementStart(5,"li",35),o.\u0275\u0275text(6,"JEMS Model"),o.\u0275\u0275elementEnd(),o.\u0275\u0275repeaterCreate(7,at,3,1,"li",null,o.\u0275\u0275repeaterTrackByIdentity)}if(2&Mt){const x=o.\u0275\u0275nextContext();o.\u0275\u0275advance(7),o.\u0275\u0275repeater(x.jemsFilters)}}function X(Mt,y){if(1&Mt){const x=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"span",38),o.\u0275\u0275listener("click",function(){o.\u0275\u0275restoreView(x);const E=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(E.clearSort())}),o.\u0275\u0275element(1,"i"),o.\u0275\u0275text(2),o.\u0275\u0275element(3,"i",39),o.\u0275\u0275elementEnd()}if(2&Mt){const x=o.\u0275\u0275nextContext();o.\u0275\u0275advance(),o.\u0275\u0275classMap(o.\u0275\u0275interpolate1("fa ","asc"===x.currentSort.value?"fa-sort-numeric-asc":"fa-sort-numeric-desc"," me-1")),o.\u0275\u0275advance(),o.\u0275\u0275textInterpolate1("",x.sortString()," ")}}function gt(Mt,y){if(1&Mt){const x=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"span",38),o.\u0275\u0275listener("click",function(){o.\u0275\u0275restoreView(x);const E=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(E.clearFilter())}),o.\u0275\u0275element(1,"i",40),o.\u0275\u0275text(2),o.\u0275\u0275element(3,"i",39),o.\u0275\u0275elementEnd()}if(2&Mt){const x=o.\u0275\u0275nextContext();o.\u0275\u0275advance(2),o.\u0275\u0275textInterpolate1("",x.currentFilter," ")}}function mt(Mt,y){1&Mt&&o.\u0275\u0275element(0,"th")}function St(Mt,y){1&Mt&&o.\u0275\u0275element(0,"th")}function ft(Mt,y){if(1&Mt&&o.\u0275\u0275text(0),2&Mt){const x=o.\u0275\u0275nextContext().$implicit;o.\u0275\u0275textInterpolate1(" ",x.utilization,"% ")}}function ot(Mt,y){1&Mt&&(o.\u0275\u0275elementStart(0,"div",42),o.\u0275\u0275text(1,"cell"),o.\u0275\u0275elementEnd())}function B(Mt,y){1&Mt&&o.\u0275\u0275text(0," -- ")}function Ot(Mt,y){if(1&Mt&&o.\u0275\u0275text(0),2&Mt){const x=o.\u0275\u0275nextContext().$implicit;o.\u0275\u0275textInterpolate1(" ",x.idle,"% ")}}function $(Mt,y){1&Mt&&(o.\u0275\u0275elementStart(0,"div",42),o.\u0275\u0275text(1,"cell"),o.\u0275\u0275elementEnd())}function j(Mt,y){1&Mt&&o.\u0275\u0275text(0," -- ")}function G(Mt,y){if(1&Mt&&o.\u0275\u0275text(0),2&Mt){const x=o.\u0275\u0275nextContext().$implicit;o.\u0275\u0275textInterpolate1(" ",x.plugIn,"% ")}}function k(Mt,y){1&Mt&&(o.\u0275\u0275elementStart(0,"div",42),o.\u0275\u0275text(1,"cell"),o.\u0275\u0275elementEnd())}function R(Mt,y){1&Mt&&o.\u0275\u0275text(0," -- ")}function U(Mt,y){if(1&Mt&&o.\u0275\u0275text(0),2&Mt){const x=o.\u0275\u0275nextContext().$implicit;o.\u0275\u0275textInterpolate1(" ",x.antiIdle," ")}}function st(Mt,y){1&Mt&&(o.\u0275\u0275elementStart(0,"div",42),o.\u0275\u0275text(1,"cell"),o.\u0275\u0275elementEnd())}function Dt(Mt,y){1&Mt&&o.\u0275\u0275text(0," -- ")}function Jt(Mt,y){1&Mt&&(o.\u0275\u0275elementStart(0,"a")(1,"span",43),o.\u0275\u0275text(2,"DTC"),o.\u0275\u0275elementEnd()())}function bt(Mt,y){if(1&Mt&&(o.\u0275\u0275elementStart(0,"td"),o.\u0275\u0275conditionalCreate(1,Jt,3,0,"a"),o.\u0275\u0275elementEnd()),2&Mt){const x=o.\u0275\u0275nextContext().$implicit;o.\u0275\u0275advance(),o.\u0275\u0275conditional((null==x.activeDTCs?null:x.activeDTCs.length)>0?1:-1)}}function kt(Mt,y){if(1&Mt&&(o.\u0275\u0275elementStart(0,"td"),o.\u0275\u0275element(1,"altec-connect-firmware-update-indicator",44),o.\u0275\u0275elementEnd()),2&Mt){const x=o.\u0275\u0275nextContext().$implicit;o.\u0275\u0275advance(),o.\u0275\u0275property("asset",x)}}function K(Mt,y){if(1&Mt){const x=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"tr")(1,"td")(2,"a",41),o.\u0275\u0275listener("click",function(){const E=o.\u0275\u0275restoreView(x).$implicit,tt=o.\u0275\u0275nextContext();
1return o.\u0275\u0275resetView(tt.openJemsModal(E))}),o.\u0275\u0275text(3),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(4,"td"),o.\u0275\u0275text(5),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(6,"td"),o.\u0275\u0275text(7),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(8,"td"),o.\u0275\u0275conditionalCreate(9,ft,1,1),o.\u0275\u0275conditionalCreate(10,ot,2,0,"div",42),o.\u0275\u0275conditionalCreate(11,B,1,0),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(12,"td"),o.\u0275\u0275conditionalCreate(13,Ot,1,1),o.\u0275\u0275conditionalCreate(14,$,2,0,"div",42),o.\u0275\u0275conditionalCreate(15,j,1,0),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(16,"td"),o.\u0275\u0275conditionalCreate(17,G,1,1),o.\u0275\u0275conditionalCreate(18,k,2,0,"div",42),o.\u0275\u0275conditionalCreate(19,R,1,0),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(20,"td"),o.\u0275\u0275conditionalCreate(21,U,1,1),o.\u0275\u0275conditionalCreate(22,st,2,0,"div",42),o.\u0275\u0275conditionalCreate(23,Dt,1,0),o.\u0275\u0275elementEnd(),o.\u0275\u0275conditionalCreate(24,bt,2,1,"td"),o.\u0275\u0275conditionalCreate(25,kt,2,1,"td"),o.\u0275\u0275elementEnd()}if(2&Mt){const x=y.$implicit,W=o.\u0275\u0275nextContext(),E=o.\u0275\u0275readContextLet(65);o.\u0275\u0275advance(3),o.\u0275\u0275textInterpolate(x.unit.externalReference?x.unit.externalReference:"None"),o.\u0275\u0275advance(2),o.\u0275\u0275textInterpolate(x.unit.model),o.\u0275\u0275advance(2),o.\u0275\u0275textInterpolate(x.unit.jemsModel),o.\u0275\u0275advance(2),o.\u0275\u0275conditional(!x.utilization&&0!==x.utilization||!0!==W.calcLoadCompletionMappings.utilization?-1:9),o.\u0275\u0275advance(),o.\u0275\u0275conditional(!1===W.calcLoadCompletionMappings.utilization?10:-1),o.\u0275\u0275advance(),o.\u0275\u0275conditional(x.utilization||0===x.utilization||!0!==W.calcLoadCompletionMappings.utilization?-1:11),o.\u0275\u0275advance(2),o.\u0275\u0275conditional(!x.idle&&0!==x.idle||!0!==W.calcLoadCompletionMappings.idle?-1:13),o.\u0275\u0275advance(),o.\u0275\u0275conditional(!1===W.calcLoadCompletionMappings.idle?14:-1),o.\u0275\u0275advance(),o.\u0275\u0275conditional(x.idle||0===x.idle||!0!==W.calcLoadCompletionMappings.idle?-1:15),o.\u0275\u0275advance(2),o.\u0275\u0275conditional(!x.plugIn&&0!==x.plugIn||!0!==W.calcLoadCompletionMappings.plugIn?-1:17),o.\u0275\u0275advance(),o.\u0275\u0275conditional(!1===W.calcLoadCompletionMappings.plugIn?18:-1),o.\u0275\u0275advance(),o.\u0275\u0275conditional(x.plugIn||0===x.plugIn||!0!==W.calcLoadCompletionMappings.plugIn?-1:19),o.\u0275\u0275advance(2),o.\u0275\u0275conditional(!x.antiIdle&&0!==x.antiIdle||!0!==W.calcLoadCompletionMappings.antiIdle?-1:21),o.\u0275\u0275advance(),o.\u0275\u0275conditional(!1===W.calcLoadCompletionMappings.antiIdle?22:-1),o.\u0275\u0275advance(),o.\u0275\u0275conditional(x.antiIdle||0===x.antiIdle||!0!==W.calcLoadCompletionMappings.antiIdle?-1:23),o.\u0275\u0275advance(),o.\u0275\u0275conditional(W.activeFaults?24:-1),o.\u0275\u0275advance(),o.\u0275\u0275conditional(E?25:-1)}}function xt(Mt,y){1&Mt&&(o.\u0275\u0275elementStart(0,"a")(1,"span",43),o.\u0275\u0275text(2,"DTC"),o.\u0275\u0275elementEnd()())}function q(Mt,y){if(1&Mt&&o.\u0275\u0275element(0,"altec-connect-firmware-update-indicator",44),2&Mt){const x=o.\u0275\u0275nextContext().$implicit;o.\u0275\u0275property("asset",x)}}function Tt(Mt,y){if(1&Mt){const x=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"div",29)(1,"div",1)(2,"a",41),o.\u0275\u0275listener("click",function(){const E=o.\u0275\u0275restoreView(x).$implicit,tt=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(tt.openJemsModal(E))}),o.\u0275\u0275elementStart(3,"strong"),o.\u0275\u0275text(4,"Customer Vehicle Number"),o.\u0275\u0275elementEnd(),o.\u0275\u0275text(5),o.\u0275\u0275elementEnd(),o.\u0275\u0275conditionalCreate(6,xt,3,0,"a"),o.\u0275\u0275template(7,q,1,1,"altec-connect-firmware-update-indicator",45),o.\u0275\u0275elementStart(8,"div")(9,"strong"),o.\u0275\u0275text(10,"Altec Model"),o.\u0275\u0275elementEnd(),o.\u0275\u0275text(11),o.\u
10275\u0275elementEnd(),o.\u0275\u0275elementStart(12,"div")(13,"strong"),o.\u0275\u0275text(14,"JEMS Model"),o.\u0275\u0275elementEnd(),o.\u0275\u0275text(15),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(16,"div")(17,"strong"),o.\u0275\u0275text(18,"Jobsite Utilization"),o.\u0275\u0275elementEnd(),o.\u0275\u0275text(19),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(20,"div")(21,"strong"),o.\u0275\u0275text(22,"Jobsite Idle"),o.\u0275\u0275elementEnd(),o.\u0275\u0275text(23),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(24,"div")(25,"strong"),o.\u0275\u0275text(26,"Plug-In Charging"),o.\u0275\u0275elementEnd(),o.\u0275\u0275text(27),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(28,"div")(29,"strong"),o.\u0275\u0275text(30,"Anti-Idle Hours"),o.\u0275\u0275elementEnd(),o.\u0275\u0275text(31),o.\u0275\u0275elementEnd()()()}if(2&Mt){const x=y.$implicit;o.\u0275\u0275nextContext();const W=o.\u0275\u0275readContextLet(65);o.\u0275\u0275advance(5),o.\u0275\u0275textInterpolate1(": ",x.unit.externalReference?x.unit.externalReference:"None"," "),o.\u0275\u0275advance(),o.\u0275\u0275conditional((null==x.activeDTCs?null:x.activeDTCs.length)>0?6:-1),o.\u0275\u0275advance(),o.\u0275\u0275property("ngIf",W),o.\u0275\u0275advance(4),o.\u0275\u0275textInterpolate1(": ",x.unit.model),o.\u0275\u0275advance(4),o.\u0275\u0275textInterpolate1(": ",x.unit.jemsModel),o.\u0275\u0275advance(4),o.\u0275\u0275textInterpolate1(": ",x.utilization??"--","%"),o.\u0275\u0275advance(4),o.\u0275\u0275textInterpolate1(": ",x.idle??"--","%"),o.\u0275\u0275advance(4),o.\u0275\u0275textInterpolate1(": ",x.plugIn??"--","%"),o.\u0275\u0275advance(4),o.\u0275\u0275textInterpolate1(": ",x.antiIdle??0)}}function _t(Mt,y){if(1&Mt){const x=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"a",46),o.\u0275\u0275listener("click",function(){o.\u0275\u0275restoreView(x);const E=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(E.showAll.next())}),o.\u0275\u0275text(1,"see all..."),o.\u0275\u0275elementEnd()}}T.AssetTableComponent=(()=>{class Mt{constructor(x){this.modalService=x,this.showAll=new N.EventEmitter,this.searchAssets=new N.EventEmitter,this.sortAssets=new N.EventEmitter,this.filterAssets=new N.EventEmitter,this.sortView="base",this.filterView="base"}viewSort(x,W){"base"===W?this.sortView="base":(this.sortView="choice",this.currentSort={key:W,value:void 0}),x.stopPropagation()}clickSort(x){this.sortView="base",this.currentSort={key:this.currentSort.key,value:x},this.sortAssets.emit(this.currentSort)}clearSort(){this.sortAssets.emit(void 0),this.currentSort=void 0}sortString(){switch(this.currentSort?.key){case"utilization":return"Jobsite Utilization";case"idle":return"Jobsite Idle";case"plugIn":return"Plug-In Charging";case"antiIdle":return"Anti-Idle Hours"}}viewFilters(x,W){this.filterView=W,x.stopPropagation()}clickFilter(x){this.filterView="base",this.currentFilter=x.value,this.filterAssets.emit({key:x.key,value:x.value})}clearFilter(){this.filterAssets.emit(void 0),this.currentFilter=void 0}focusIcon(){let x=document.getElementById("searchIcon");x.classList.contains("focus")?x.classList.remove("focus"):x.classList.add("focus")}openJemsModal(x){this.modalService.open(u.JemsModalComponent,{windowClass:"jems-modal"}).componentInstance.asset=x}search(x){this.searchAssets.emit(x.target.value)}get anyAssetHasFirmwareUpdate(){return this.assetList.map(x=>"OUT_OF_DATE"===x.unit.firmwareStatus?.JEMS).reduce((x,W)=>x||W,!1)}static{this.\u0275fac=function(W){return new(W||Mt)(o.\u0275\u0275directiveInject(b.NgbModal))}}static{this.\u0275cmp=o.\u0275\u0275defineComponent({type:Mt,selectors:[["altec-connect-asset-table"]],inputs:{assetList:"assetList",altecFilters:"altecFilters",jemsFilters:"jemsFilters",showingAll:"showingAll",activeFaults:"activeFaults",calcLoadCompletionMappings:"calcLoadCompletionMappings",currentSort:"currentSort"},outputs:{showAll:"showAll",searchAssets:"searchAssets",sortAssets:"sortAssets",filterAssets:"filterAssets"},standalone:!1,decls:95,vars:18,consts:[[1,"row"],[1,"col-12"],[1,"box"],[1,"flex-row"],[1,"title","me-auto"],[1,"text-end","pe-1","margin-left-auto","d-none","d-sm-block"],[1,"btn-group","me-2"],["type","button","data-bs-toggle","dropdown","aria-haspopup","true","aria-expanded","fal
1se",1,"btn","btn-sm","btn-light","dropdown-toggle"],[1,"fa","fa-sort"],[1,"dropdown-menu"],[1,"text-end","pe-1","d-none","d-sm-block"],["id","filterBtn",1,"btn-group"],[1,"fa","fa-filter"],[1,"chip-container"],[1,"search","ps-1","d-none","d-sm-block"],[1,"input-group"],["id","searchIcon",1,"input-group-text"],[1,"fa","fa-search"],["type","text","placeholder","Search","aria-describedby","basic-addon1",1,"form-control",3,"focusin","focusout","keyup"],[1,"row","d-flex","d-sm-none","mt-2"],[1,"col-6"],[1,"d-grid","btn-group"],[1,"search","d-block","d-sm-none","mt-2"],["id","searchIconXs",1,"input-group-text"],[1,"flex-row","chips"],[1,"chip"],[1,"col-sm-12","d-none","d-sm-block","mt-3"],[1,"table","table-striped"],[1,"col-12","d-block","d-sm-none"],[1,"row","asset-row"],[1,"col-12","mt-2","text-end"],[1,"pointer"],[1,"dropdown-item",3,"click"],[1,"fa","fa-chevron-left"],["role","separator",1,"divider"],[1,"dropdown-header"],[1,"fa","fa-sort-numeric-asc"],[1,"fa","fa-sort-numeric-desc"],[1,"chip",3,"click"],[1,"fa","fa-times","remove-chip"],[1,"fa","fa-filter","me-1"],[1,"cust-vehicle-no-col",3,"click"],[1,"cell-loader"],[1,"badge"],[3,"asset"],[3,"asset",4,"ngIf"],[3,"click"]],template:function(W,E){if(1&W&&(o.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"h4"),o.\u0275\u0275text(6,"Assets Reporting Data"),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(7,"div",5)(8,"div",6)(9,"button",7),o.\u0275\u0275element(10,"i",8),o.\u0275\u0275text(11," Sort "),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(12,"ul",9),o.\u0275\u0275conditionalCreate(13,f,12,0),o.\u0275\u0275conditionalCreate(14,v,15,1),o.\u0275\u0275elementEnd()()(),o.\u0275\u0275elementStart(15,"div",10)(16,"div",11)(17,"button",7),o.\u0275\u0275element(18,"i",12),o.\u0275\u0275text(19," Filter "),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(20,"ul",9),o.\u0275\u0275conditionalCreate(21,p,9,0),o.\u0275\u0275conditionalCreate(22,lt,9,0),o.\u0275\u0275conditionalCreate(23,I,9,0),o.\u0275\u0275elementEnd()(),o.\u0275\u0275element(24,"div",13),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(25,"div",14)(26,"form")(27,"div",15)(28,"span",16),o.\u0275\u0275element(29,"i",17),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(30,"input",18),o.\u0275\u0275listener("focusin",function(){return E.focusIcon()})("focusout",function(){return E.focusIcon()})("keyup",function(V){return E.search(V)}),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(31,"small"),o.\u0275\u0275text(32,"Search by Customer Vehicle Number, VIN, or Unit Serial"),o.\u0275\u0275elementEnd()()()(),o.\u0275\u0275elementStart(33,"div",19)(34,"div",20)(35,"div",21)(36,"button",7),o.\u0275\u0275element(37,"i",8),o.\u0275\u0275text(38," Sort "),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(39,"ul",9),o.\u0275\u0275conditionalCreate(40,vt,12,0),o.\u0275\u0275conditionalCreate(41,C,15,1),o.\u0275\u0275elementEnd()()(),o.\u0275\u0275elementStart(42,"div",20)(43,"div",21)(44,"button",7),o.\u0275\u0275element(45,"i",12),o.\u0275\u0275text(46," Filter "),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(47,"ul",9),o.\u0275\u0275conditionalCreate(48,ht,9,0),o.\u0275\u0275conditionalCreate(49,ct,9,0),o.\u0275\u0275conditionalCreate(50,rt,9,0),o.\u0275\u0275elementEnd()()()(),o.\u0275\u0275elementStart(51,"div",22)(52,"form")(53,"div",15)(54,"span",23),o.\u0275\u0275element(55,"i",17),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(56,"input",18),o.\u0275\u0275listener("focusin",function(){return E.focusIcon()})("focusout",function(){return E.focusIcon()})("keyup",function(V){return E.search(V)}),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(57,"small"),o.\u0275\u0275text(58,"Search by Customer Vehicle Number, VIN, or Unit Serial"),o.\u0275\u0275elementEnd()()(),o.\u0275\u0275elementStart(59,"div",24)(60,"div",13),o.\u0275\u0275conditionalCreate(61,X,4,4,"span",25),o.\u0275\u0275conditionalCreate(62,gt,4,1,"span",25),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(63,"div",0)(64,"div",26),o.\u0275\u0275declareLet(65),o.\u0275\u0275elementStart(66,"table",27)(67,"thead")(68,"tr")(69,"th"),o.\u0275\u0275text(70,"Customer Vehicle Number"),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(71,"th"),o.\u0275\u0275text(72,"Altec Model"),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(73,"th"),o.\u0275\u0275text(74,"JEMS Model"),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(75,"th"),o.\u0275\u0275text(76,"Jobsite Utilization"),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(77,"th"),o.\u0275\u0275text(78,"Jobsite Idle"),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(79,"th"),o.\u0275\u0275text(80,"Plug-In Charging"),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(81,"th"),o.\u0275\u0275text(82,"Anti-Idle Hours"),o.\u0275\u0275elementEnd(),o.\u0275\u0275conditionalCreate(83,mt,1,0,"th"),o.\u0275\u0275conditionalCreate(84,St,1,0,"th"),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(85,"tbody"),o.\u0275\u0275repeaterCreate(86,K,26,17,"tr",null,o.\u0275\u0275repeaterTrackByIdentity),o.\u0275\u0275elementEnd()()(),o.\u0275\u0275elementStart(88,"div",28),o.\u0275\u0275repeaterCreate(89,Tt,32,9,"div",29,o.\u0275\u0275repeaterTrackByIdentity),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(91,"div",30)(92,"small",31),o.\u0275\u0275text(93),o.\u0275\u0275conditionalCreate(94,_t,2,0,"a"),o.\u0275\u0275elementEnd()()()()()()),2&W){o.\u0275\u0275advance(13),o.\u0275\u0275conditional("base"===E.sortView?13:-1),o.\u
10275\u0275advance(),o.\u0275\u0275conditional("choice"===E.sortView?14:-1),o.\u0275\u0275advance(7),o.\u0275\u0275conditional("base"===E.filterView?21:-1),o.\u0275\u0275advance(),o.\u0275\u0275conditional("altec"===E.filterView?22:-1),o.\u0275\u0275advance(),o.\u0275\u0275conditional("jems"===E.filterView?23:-1),o.\u0275\u0275advance(17),o.\u0275\u0275conditional("base"===E.sortView?40:-1),o.\u0275\u0275advance(),o.\u0275\u0275conditional("choice"===E.sortView?41:-1),o.\u0275\u0275advance(7),o.\u0275\u0275conditional("base"===E.filterView?48:-1),o.\u0275\u0275advance(),o.\u0275\u0275conditional("altec"===E.filterView?49:-1),o.\u0275\u0275advance(),o.\u0275\u0275conditional("jems"===E.filterView?50:-1),o.\u0275\u0275advance(11),o.\u0275\u0275conditional(null!=E.currentSort&&E.currentSort.value?61:-1),o.\u0275\u0275advance(),o.\u0275\u0275conditional(E.currentFilter?62:-1),o.\u0275\u0275advance(3);const tt=o.\u0275\u0275storeLet(E.anyAssetHasFirmwareUpdate);o.\u0275\u0275advance(18),o.\u0275\u0275conditional(E.activeFaults?83:-1),o.\u0275\u0275advance(),o.\u0275\u0275conditional(tt?84:-1),o.\u0275\u0275advance(2),o.\u0275\u0275repeater(E.showingAll?E.assetList:E.assetList.slice(0,30)),o.\u0275\u0275advance(3),o.\u0275\u0275repeater(E.showingAll?E.assetList:E.assetList.slice(0,30)),o.\u0275\u0275advance(4),o.\u0275\u0275textInterpolate2(" ",E.assetList.length<31||E.showingAll?E.assetList.length:30," of ",E.assetList.length," assets "),o.\u0275\u0275advance(),o.\u0275\u0275conditional(E.showingAll?-1:94)}},dependencies:[g.NgIf,h.\u0275NgNoValidate,h.NgControlStatusGroup,h.NgForm,D.FirmwareUpdateIndicatorComponent],styles:["[_ngcontent-%COMP%]:root{--bs-gutter-x: 1.5rem;--bs-gutter-y: 1.5rem}.d-flex[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{float:none}.col[_ngcontent-%COMP%]{flex:1 0 0;padding-left:var(--bs-gutter-x, 1.5rem);padding-right:var(--bs-gutter-x, 1.5rem)}@media only screen and (min-width:576px){.col-sm-auto[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;max-width:none}}@media only screen and (min-width:768px){.col-md-auto[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;max-width:none}}.col-auto[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;max-width:100%;padding-left:var(--bs-gutter-x, 1.5rem);padding-right:var(--bs-gutter-x, 1.5rem)}.justify-content-center[_ngcontent-%COMP%]{justify-content:center}.justify-content-end[_ngcontent-%COMP%]{justify-content:end}.align-items-center[_ngcontent-%COMP%]{align-items:center}.align-items-end[_ngcontent-%COMP%]{align-items:end}.flex-column-reverse[_ngcontent-%COMP%]{flex-direction:column-reverse}.d-flex[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}@media only screen and (min-width:768px){.d-md-block[_ngcontent-%COMP%]{display:block}}@media only screen and (min-width:768px){.d-md-none[_ngcontent-%COMP%]{display:none}}@media only screen and (min-width:768px){.d-md-flex[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}}@media only screen and (min-width:992px){.d-lg-none[_ngcontent-%COMP%]{display:none!important}}@media only screen and (min-width:992px){.d-lg-block[_ngcontent-%COMP%]{display:block!important}}.w-100[_ngcontent-%COMP%]{width:100%!important}.h-100[_ngcontent-%COMP%]{height:100%!important}.px-3[_ngcontent-%COMP%]{padding-left:15px!important;padding-right:15px!important}.pr-0[_ngcontent-%COMP%]{padding-right:0!important}.pl-0[_ngcontent-%COMP%]{padding-left:0!important}.pt-3[_ngcontent-%COMP%]{padding-top:1rem}.pb-3[_ngcontent-%COMP%]{padding-bottom:1rem}.mb-3[_ngcontent-%COMP%]{margin-bottom:1rem}.pb-2[_ngcontent-%COMP%]{padding-bottom:.5rem}@media print{.no-print[_ngcontent-%COMP%]{display:none!important}}.m-0[_ngcontent-%COMP%]{margin:0!important}.mt-0[_ngcontent-%COMP%]{margin-top:0!important}.mb-0[_ngcontent-%COMP%]{margin-bottom:0!important}.ms-0[_ngcontent-%COMP%]{margin-left:0!important}.me-0[_ngcontent-%COMP%]{margin-right:0!important}.mx-0[_ngcontent-%COMP%]{margin-left:0!important;margin-right:0!important}.my-0[_ngcontent-%COMP%]{margin-top:0!important;margin-bottom:0!important}.p-0[_ngcontent-%COMP%]{padding:0!important}.pt-0[_ngcontent-%COMP%]{padding-top:0!important}.pb-0[_ngcontent-%COMP%]{padding-bottom:0!important}.ps-0[_ngcontent-%COMP%]{padding-left:0!important}.pe-0[_ngcontent-%COMP%]{padding-right:0!important}.px-0[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.py-0[_ngcontent-%COMP%]{padding-top:0!important;padding-bottom:0!important}.m-1[_ngcontent-%COMP%]{margin:.25rem!important}.mt-1[_ngcontent-%COMP%]{margin-top:.25rem!important}.mb-1[_ngcontent-%COMP%]{margin-bottom:.25rem!important}.ms-1[_ngcontent-%COMP%]{margin-left:.25rem!important}.me-1[_ngcontent-%COMP%]{margin-right:.25rem!important}.mx-1[_ngcontent-%COMP%]{margin-left:.25rem!important;margin-right:.25rem!important}.my-1[_ngcontent-%COMP%]{margin-top:.25rem!important;margin-bottom:.25rem!important}.p-1[_ngcontent-%COMP%]{padding:.25rem!important}.pt-1[_ngcontent-%COMP%]{padding-top:.25rem!important}.pb-1[_ngcontent-%COMP%]{padding-bottom:.25rem!important}.ps-1[_ngcontent-%COMP%]{padding-left:.25rem!important}.pe-1[_ngcontent-%COMP%]{padding-right:.25rem!important}.px-1[_ngcontent-%COMP%]{padding-left:.25rem!important;padding-right:.25rem!important}.py-1[_ngcontent-%COMP%]{padding-top:.25rem!important;padding-bottom:.25rem!important}.m-2[_ngcontent-%COMP%]{margin:.5rem!important}.mt-2[_ngcontent-%COMP%]{margin-top:.5rem!important}.mb-2[_ngcontent-%COMP%]{margin-bottom:.5rem!important}.ms-2[_ngcontent-%COMP%]{margin-left:.5rem!important}.me-2[_ngcontent-%COMP%]{margin-right:.5rem!important}.mx-2[_ngcontent-%COMP%]{margin-left:.5rem!important;margin-right:.5rem!important}.my-2[_ngcontent-%COMP%]{margin-top:.5rem!important;margin-bottom:.5rem!important}.p-2[_ngcontent-%COMP%]{padding:.5rem!important}.pt-2[_ngcontent-%COMP%]{padding-top:.5rem!important}.pb-2[_ngcontent-%COMP%]{padding-bottom:.5rem!important}.ps-2[_ngcontent-%COMP%]{padding-left:.5rem!important}
1.pe-2[_ngcontent-%COMP%]{padding-right:.5rem!important}.px-2[_ngcontent-%COMP%]{padding-left:.5rem!important;padding-right:.5rem!important}.py-2[_ngcontent-%COMP%]{padding-top:.5rem!important;padding-bottom:.5rem!important}.m-3[_ngcontent-%COMP%]{margin:1rem!important}.mt-3[_ngcontent-%COMP%]{margin-top:1rem!important}.mb-3[_ngcontent-%COMP%]{margin-bottom:1rem!important}.ms-3[_ngcontent-%COMP%]{margin-left:1rem!important}.me-3[_ngcontent-%COMP%]{margin-right:1rem!important}.mx-3[_ngcontent-%COMP%]{margin-left:1rem!important;margin-right:1rem!important}.my-3[_ngcontent-%COMP%]{margin-top:1rem!important;margin-bottom:1rem!important}.p-3[_ngcontent-%COMP%]{padding:1rem!important}.pt-3[_ngcontent-%COMP%]{padding-top:1rem!important}.pb-3[_ngcontent-%COMP%]{padding-bottom:1rem!important}.ps-3[_ngcontent-%COMP%]{padding-left:1rem!important}.pe-3[_ngcontent-%COMP%]{padding-right:1rem!important}.px-3[_ngcontent-%COMP%]{padding-left:1rem!important;padding-right:1rem!important}.py-3[_ngcontent-%COMP%]{padding-top:1rem!important;padding-bottom:1rem!important}.m-4[_ngcontent-%COMP%]{margin:1.5rem!important}.mt-4[_ngcontent-%COMP%]{margin-top:1.5rem!important}.mb-4[_ngcontent-%COMP%]{margin-bottom:1.5rem!important}.ms-4[_ngcontent-%COMP%]{margin-left:1.5rem!important}.me-4[_ngcontent-%COMP%]{margin-right:1.5rem!important}.mx-4[_ngcontent-%COMP%]{margin-left:1.5rem!important;margin-right:1.5rem!important}.my-4[_ngcontent-%COMP%]{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.p-4[_ngcontent-%COMP%]{padding:1.5rem!important}.pt-4[_ngcontent-%COMP%]{padding-top:1.5rem!important}.pb-4[_ngcontent-%COMP%]{padding-bottom:1.5rem!important}.ps-4[_ngcontent-%COMP%]{padding-left:1.5rem!important}.pe-4[_ngcontent-%COMP%]{padding-right:1.5rem!important}.px-4[_ngcontent-%COMP%]{padding-left:1.5rem!important;padding-right:1.5rem!important}.py-4[_ngcontent-%COMP%]{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.m-5[_ngcontent-%COMP%]{margin:3rem!important}.mt-5[_ngcontent-%COMP%]{margin-top:3rem!important}.mb-5[_ngcontent-%COMP%]{margin-bottom:3rem!important}.ms-5[_ngcontent-%COMP%]{margin-left:3rem!important}.me-5[_ngcontent-%COMP%]{margin-right:3rem!important}.mx-5[_ngcontent-%COMP%]{margin-left:3rem!important;margin-right:3rem!important}.my-5[_ngcontent-%COMP%]{margin-top:3rem!important;margin-bottom:3rem!important}.p-5[_ngcontent-%COMP%]{padding:3rem!important}.pt-5[_ngcontent-%COMP%]{padding-top:3rem!important}.pb-5[_ngcontent-%COMP%]{padding-bottom:3rem!important}.ps-5[_ngcontent-%COMP%]{padding-left:3rem!important}.pe-5[_ngcontent-%COMP%]{padding-right:3rem!important}.px-5[_ngcontent-%COMP%]{padding-left:3rem!important;padding-right:3rem!important}.py-5[_ngcontent-%COMP%]{padding-top:3rem!important;padding-bottom:3rem!important}.box[_ngcontent-%COMP%]{border:solid 1px #EEEEEE;border-radius:3px;box-shadow:1px 1px 3px #ededed;padding:var(--bs-gutter-x, 1.5rem)}.box[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{color:#707070;margin-top:0}.box[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%] .input-group-text[_ngcontent-%COMP%]{background-color:#fff;color:#000;box-shadow:inset 0 1px 1px #00000013;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s}.box[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%] .input-group-text.focus[_ngcontent-%COMP%]{border-color:#66afe9;outline:0;box-shadow:inset 0 1px 1px #00000013,0 0 8px #66afe999}.box[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%]{border-left:0}.box[_ngcontent-%COMP%] .dropdown-menu[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]:hover{cursor:pointer}.box[_ngcontent-%COMP%] .badge[_ngcontent-%COMP%]{background-color:#337ab7;font-weight:400;font-size:11px;vertical-align:baseline}@media(max-width:991px){.box[_ngcontent-%COMP%] .search[_ngcontent-%COMP%]{flex-grow:1}.box[_ngcontent-%COMP%] .dropdown-toggle[_ngcontent-%COMP%]{padding-right:3px!important}.box[_ngcontent-%COMP%] .dropdown-menu[_ngcontent-%COMP%]{right:0;left:auto}}.box[_ngcontent-%COMP%] table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .box[_ngcontent-%COMP%] table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{text-align:center}.box[_ngcontent-%COMP%] .asset-row[_ngcontent-%COMP%]{padding:calc(var(--bs-gutter-x, 1.5rem) * .667) 0;margin:0;border-top:1px solid #aeaeae}.box[_ngcontent-%COMP%] .asset-row[_ngcontent-%COMP%]:nth-of-type(odd){background-color:#f9f9f9}.box[_ngcontent-%COMP%] .cust-vehicle-no-col[_ngcontent-%COMP%]:hover{cursor:pointer}.flex-row[_ngcontent-%COMP%]{justify-content:flex-end}.flex-row.chips[_ngcontent-%COMP%]{justify-content:flex-start}.flex-row[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{display:block}.chip-container[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;padding:8px}.chip-container[_ngcontent-%COMP%] .chip[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;background-color:#d9edf7;border-radius:4px;padding:4px;margin-right:4px;margin-bottom:4px;cursor:pointer}.chip-container[_ngcontent-%COMP%] .chip[_ngcontent-%COMP%] .remove-chip[_ngcontent-%COMP%]{padding-left:4px;padding-right:4px}.cell-loader[_ngcontent-%COMP%]{color:transparent;background-color:#f0f0f0;animation-name:_ngcontent-%COMP%_table-animation-color;animation-duration:1s;animation-iteration-count:infinite;width:30px;margin:0 auto}@keyframes _ngcontent-%COMP%_table-animation-color{0%{background-color:#f0f0f0}50%{background-color:#e0e0e0}to{background-color:#f0f0f0}}small[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#1d81b0}small[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:#12516e}"]})}}return Mt})()},99250(Ht,T,d){"use strict";
1Object.defineProperty(T,"__esModule",{value:!0}),T.AssetsNotReportingModalComponent=void 0;const S=d(31635),o=(d(6324),d(7901),d(39756),S.__importStar(d(49849))),b=S.__importStar(d(6324)),g=S.__importStar(d(7901)),h=S.__importStar(d(39756)),D=S.__importStar(d(60177));function f(p,J){if(1&p){const lt=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"tr")(1,"td")(2,"a",7),o.\u0275\u0275listener("click",function(){const I=o.\u0275\u0275restoreView(lt).$implicit,vt=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(vt.openUnitDetailsPage(I.unit.instanceId))}),o.\u0275\u0275text(3),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(4,"td"),o.\u0275\u0275text(5),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(6,"td"),o.\u0275\u0275text(7),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(8,"td"),o.\u0275\u0275text(9),o.\u0275\u0275pipe(10,"date"),o.\u0275\u0275elementEnd()()}if(2&p){const lt=J.$implicit;o.\u0275\u0275advance(3),o.\u0275\u0275textInterpolate(lt.unit.externalReference?lt.unit.externalReference:"None"),o.\u0275\u0275advance(2),o.\u0275\u0275textInterpolate(lt.unit.model),o.\u0275\u0275advance(2),o.\u0275\u0275textInterpolate(lt.unit.jemsModel),o.\u0275\u0275advance(2),o.\u0275\u0275textInterpolate(lt.unit.lastReportedDate?o.\u0275\u0275pipeBind2(10,4,lt.unit.lastReportedDate,"MM/dd/yyyy"):"--")}}T.AssetsNotReportingModalComponent=(()=>{class p{constructor(lt,r,I){this.activeModal=lt,this.router=r,this.insightsService=I}openUnitDetailsPage(lt){this.router.navigateByUrl(`/pages/dashboard/equipment/fleet/details/${lt}/analytics`),this.activeModal.close()}static{this.\u0275fac=function(r){return new(r||p)(o.\u0275\u0275directiveInject(b.NgbActiveModal),o.\u0275\u0275directiveInject(g.Router),o.\u0275\u0275directiveInject(h.InsightsService))}}static{this.\u0275cmp=o.\u0275\u0275defineComponent({type:p,selectors:[["altec-connect-assets-not-reporting-modal"]],inputs:{asset:"asset"},standalone:!1,decls:24,vars:8,consts:[[1,"modal-dialog-scrollable"],[1,"modal-header"],[1,"modal-title"],[1,"time-period"],["type","button","data-bs-dismiss","modal","aria-label","Close",1,"btn-close",3,"click"],[1,"modal-body",2,"overflow-y","scroll"],[1,"table","table-striped"],[1,"cust-vehicle-no-col",3,"click"]],template:function(r,I){1&r&&(o.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"h4",2),o.\u0275\u0275text(3,"Assets Not Reporting Data"),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(4,"div",3),o.\u0275\u0275text(5),o.\u0275\u0275pipe(6,"date"),o.\u0275\u0275pipe(7,"date"),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(8,"button",4),o.\u0275\u0275listener("click",function(){return I.activeModal.dismiss(null)}),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(9,"div",5)(10,"table",6)(11,"thead")(12,"tr")(13,"th"),o.\u0275\u0275text(14,"Customer Vehicle Number"),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(15,"th"),o.\u0275\u0275text(16,"Altec Model"),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(17,"th"),o.\u0275\u0275text(18,"JEMS Model"),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(19,"th"),o.\u0275\u0275text(20,"JEMS Last Reported"),o.\u0275\u0275elementEnd()()(),o.\u0275\u0275elementStart(21,"tbody"),o.\u0275\u0275repeaterCreate(22,f,11,7,"tr",null,o.\u0275\u0275repeaterTrackByIdentity),o.\u0275\u0275elementEnd()()()()),2&r&&(o.\u0275\u0275advance(5),o.\u0275\u0275textInterpolate2("During the selected time period ",o.\u0275\u0275pipeBind2(6,2,I.insightsService.startDate,"MM/dd")," - ",o.\u0275\u0275pipeBind2(7,5,I.insightsService.endDate,"MM/dd")),o.\u0275\u0275advance(17),o.\u0275\u0275repeater(I.asset))},dependencies:[D.DatePipe],styles:[".cust-vehicle-no-col[_ngcontent-%COMP%]:hover{cursor:pointer}.modal[_ngcontent-%COMP%]{text-align:center}th[_ngcontent-%COMP%]{text-align:center;position:sticky;top:0;background-color:#fff}td[_ngcontent-%COMP%]{width:100px}.modal[_ngcontent-%COMP%]{display:block!important}.modal-dialog[_ngcontent-%COMP%]{overflow-y:initial!important}.modal-body[_ngcontent-%COMP%]{text-align:center;height:500px;overflow-y:auto;padding-top:0}@media only screen and (max-width:700px){.modal-content[_ngcontent-%COMP%]{width:100%!important;position:relative!important;left:0!important}.modal-body[_ngcontent-%COMP%]{text-align:center;width:100%!important;position:relative!important;left:0!important}}.time-period[_ngcontent-%COMP%]{font-size:smaller}"]})}}return p})()},74782(Ht,T,d){"use strict";
1Object.defineProperty(T,"__esModule",{value:!0}),T.AssetsNotReportingComponent=void 0;const S=d(31635),O=(d(6324),d(99250)),u=S.__importStar(d(49849)),o=S.__importStar(d(6324));function b(v,p){1&v&&(u.\u0275\u0275elementStart(0,"div",1)(1,"h5")(2,"a",2),u.\u0275\u0275text(3,"Assets Not Reporting:"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(4,"span",3),u.\u0275\u0275element(5,"i",4),u.\u0275\u0275elementEnd()()())}function g(v,p){1&v&&(u.\u0275\u0275elementStart(0,"p"),u.\u0275\u0275text(1,"Assets Not Reporting: 0 "),u.\u0275\u0275elementEnd())}function h(v,p){if(1&v){const J=u.\u0275\u0275getCurrentView();u.\u0275\u0275element(0,"i",5),u.\u0275\u0275elementStart(1,"a",6),u.\u0275\u0275listener("click",function(){u.\u0275\u0275restoreView(J);const r=u.\u0275\u0275nextContext(2);return u.\u0275\u0275resetView(r.openAssetsNotReportingDataModal())}),u.\u0275\u0275text(2,"Assets Not Reporting:"),u.\u0275\u0275elementEnd(),u.\u0275\u0275text(3)}if(2&v){const J=u.\u0275\u0275nextContext(2);u.\u0275\u0275advance(3),u.\u0275\u0275textInterpolate1(" ",J.unitsNotReportingDataCount," ")}}function D(v,p){if(1&v&&(u.\u0275\u0275elementStart(0,"div",1)(1,"h5"),u.\u0275\u0275conditionalCreate(2,g,2,0,"p"),u.\u0275\u0275conditionalCreate(3,h,4,1),u.\u0275\u0275elementEnd()()),2&v){const J=u.\u0275\u0275nextContext();u.\u0275\u0275advance(2),u.\u0275\u0275conditional(J.unitsNotReportingDataCount?-1:2),u.\u0275\u0275advance(),u.\u0275\u0275conditional(J.unitsNotReportingDataCount?3:-1)}}T.AssetsNotReportingComponent=(()=>{class v{constructor(J){this.modalService=J,this.unitsNotReportingData=[]}openAssetsNotReportingDataModal(){let J;this.unitsNotReportingData=this.assetList.filter(lt=>!this.dataList.includes(lt)),J=this.modalService.open(O.AssetsNotReportingModalComponent),J.componentInstance.asset=this.unitsNotReportingData}static{this.\u0275fac=function(lt){return new(lt||v)(u.\u0275\u0275directiveInject(o.NgbModal))}}static{this.\u0275cmp=u.\u0275\u0275defineComponent({type:v,selectors:[["altec-connect-assets-not-reporting"]],inputs:{assetList:"assetList",dataList:"dataList",unitsNotReportingDataCount:"unitsNotReportingDataCount",loadingAssetsNotReporting:"loadingAssetsNotReporting"},standalone:!1,decls:3,vars:2,consts:[[1,"row","box"],[1,"col-12","assets"],[1,"assets-link"],[1,"loader"],[1,"fa","fa-spinner","fa-pulse","fa-fw","fa-1x"],[1,"fa","fa-exclamation-triangle",2,"color","#C8102E"],[1,"assets-link",3,"click"]],template:function(lt,r){1<&&(u.\u0275\u0275elementStart(0,"div",0),u.\u0275\u0275conditionalCreate(1,b,6,0,"div",1),u.\u0275\u0275conditionalCreate(2,D,4,2,"div",1),u.\u0275\u0275elementEnd()),2<&&(u.\u0275\u0275advance(),u.\u0275\u0275conditional(r.loadingAssetsNotReporting?1:-1),u.\u0275\u0275advance(),u.\u0275\u0275conditional(r.loadingAssetsNotReporting?-1:2))},styles:["[_ngcontent-%COMP%]:root{--bs-gutter-x: 1.5rem;--bs-gutter-y: 1.5rem}.d-flex[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{float:none}.col[_ngcontent-%COMP%]{flex:1 0 0;padding-left:var(--bs-gutter-x, 1.5rem);padding-right:var(--bs-gutter-x, 1.5rem)}@media only screen and (min-width:576px){.col-sm-auto[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;max-width:none}}@media only screen and (min-width:768px){.col-md-auto[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;max-width:none}}.col-auto[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;max-width:100%;padding-left:var(--bs-gutter-x, 1.5rem);padding-right:var(--bs-gutter-x, 1.5rem)}.justify-content-center[_ngcontent-%COMP%]{justify-content:center}.justify-content-end[_ngcontent-%COMP%]{justify-content:end}.align-items-center[_ngcontent-%COMP%]{align-items:center}.align-items-end[_ngcontent-%COMP%]{align-items:end}.flex-column-reverse[_ngcontent-%COMP%]{flex-direction:column-reverse}.d-flex[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}@media only screen and (min-width:768px){.d-md-block[_ngcontent-%COMP%]{display:block}}@media only screen and (min-width:768px){.d-md-none[_ngcontent-%COMP%]{display:none}}@media only screen and (min-width:768px){.d-md-flex[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}}@media only screen and (min-width:992px){.d-lg-none[_ngcontent-%COMP%]{display:none!important}}@media only screen and (min-width:992px){.d-lg-block[_ngcontent-%COMP%]{display:block!important}}.w-100[_ngcontent-%COMP%]{width:100%!important}.h-100[_ngcontent-%COMP%]{height:100%!important}.px-3[_ngcontent-%COMP%]{padding-left:15px!important;padding-right:15px!important}.pr-0[_ngcontent-%COMP%]{padding-right:0!important}.pl-0[_ngcontent-%COMP%]{padding-left:0!important}.pt-3[_ngcontent-%COMP%]{padding-top:1rem}.pb-3[_ngcontent-%COMP%]{padding-bottom:1rem}.mb-3[_ngcontent-%COMP%]{margin-bottom:1rem}.pb-2[_ngcontent-%COMP%]{padding-bottom:.5rem}@media print{.no-print[_ngcontent-%COMP%]{display:none!important}}.m-0[_ngcontent-%COMP%]{margin:0!important}.mt-0[_ngcontent-%COMP%]{margin-top:0!important}.mb-0[_ngcontent-%COMP%]{margin-bottom:0!important}.ms-0[_ngcontent-%COMP%]{margin-left:0!important}.me-0[_ngcontent-%COMP%]{margin-right:0!important}.mx-0[_ngcontent-%COMP%]{margin-left:0!important;margin-right:0!important}.my-0[_ngcontent-%COMP%]{margin-top:0!important;margin-bottom:0!important}.p-0[_ngcontent-%COMP%]{padding:0!important}.pt-0[_ngcontent-%COMP%]{padding-top:0!important}.pb-0[_ngcontent-%COMP%]{padding-bottom:0!important}.ps-0[_ngcontent-%COMP%]{padding-left:0!important}.pe-0[_ngcontent-%COMP%]{padding-right:0!important}.px-0[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.py-0[_ngcontent-%COMP%]{padding-top:0!important;padding-bottom:0!important}.m-1[_ngcontent-%COMP%]{margin:.25rem!important}.mt-1[_ngcontent-%COMP%]{margin-top:.25rem!important}.mb-1[_ngcontent-%COMP%]{margin-bottom:.25rem!important}.ms-1[_ngcontent-%COMP%]{margin-left:.25rem!important}.me-1[_ngcontent-%COMP%]{margin-right:.25rem!important}.mx-1[_ngcontent-%COMP%]{margin-left:.25rem!important;margin-right:.25rem!important}.my-1[_ngcontent-%COMP%]{margin-top:.25rem!important;margin-bottom:.25rem!important}.p-1[_ngcontent-%COMP%]{padding:.25rem!important}.pt-1[_ngcontent-%COMP%]{padding-top:.25rem!important}.pb-1[_ngcontent-%COMP%]{padding-bottom:.25rem!important}.ps-1[_ngcontent-%COMP%]{padding-left:.25rem!important}.pe-1[_ngcontent-%COMP%]{padding-right:.25rem!important}.px-1[_ngcontent-%COMP%]{padding-left:.25rem!important;padding-right:.25rem!important}.py-1[_ngcontent-%COMP%]{padding-top:.25rem!important;padding-bottom:.25rem!important}.m-2[_ngcontent-%COMP%]{margin:.5rem!important}.mt-2[_ngcontent-%COMP%]{margin-top:.5rem!important}.mb-2[_ngcontent-%COMP%]{margin-bottom:.5rem!important}.ms-2[_ngcontent-%COMP%]{margin-left:.5rem!important}.me-2[_ngcontent-%COMP%]{margin-right:.5rem!important}.mx-2[_ngcontent-%COMP%]{margin-left:.5rem!important;margin-right:.5rem!important}.my-2[_ngcontent-%COMP%]{margin-top:.5rem!important;margin-bottom:.5rem!important}.p-2[_ngcontent-%COMP%]{padding:.5rem!important}.pt-2[_ngcontent-%COMP%]{padding-top:.5rem!important}.pb-2[_ngcontent-%COMP%]{padding-bottom:.5rem!important}.ps-2[_ngcontent-%COMP%]{padding-left:.5rem!important}
1.pe-2[_ngcontent-%COMP%]{padding-right:.5rem!important}.px-2[_ngcontent-%COMP%]{padding-left:.5rem!important;padding-right:.5rem!important}.py-2[_ngcontent-%COMP%]{padding-top:.5rem!important;padding-bottom:.5rem!important}.m-3[_ngcontent-%COMP%]{margin:1rem!important}.mt-3[_ngcontent-%COMP%]{margin-top:1rem!important}.mb-3[_ngcontent-%COMP%]{margin-bottom:1rem!important}.ms-3[_ngcontent-%COMP%]{margin-left:1rem!important}.me-3[_ngcontent-%COMP%]{margin-right:1rem!important}.mx-3[_ngcontent-%COMP%]{margin-left:1rem!important;margin-right:1rem!important}.my-3[_ngcontent-%COMP%]{margin-top:1rem!important;margin-bottom:1rem!important}.p-3[_ngcontent-%COMP%]{padding:1rem!important}.pt-3[_ngcontent-%COMP%]{padding-top:1rem!important}.pb-3[_ngcontent-%COMP%]{padding-bottom:1rem!important}.ps-3[_ngcontent-%COMP%]{padding-left:1rem!important}.pe-3[_ngcontent-%COMP%]{padding-right:1rem!important}.px-3[_ngcontent-%COMP%]{padding-left:1rem!important;padding-right:1rem!important}.py-3[_ngcontent-%COMP%]{padding-top:1rem!important;padding-bottom:1rem!important}.m-4[_ngcontent-%COMP%]{margin:1.5rem!important}.mt-4[_ngcontent-%COMP%]{margin-top:1.5rem!important}.mb-4[_ngcontent-%COMP%]{margin-bottom:1.5rem!important}.ms-4[_ngcontent-%COMP%]{margin-left:1.5rem!important}.me-4[_ngcontent-%COMP%]{margin-right:1.5rem!important}.mx-4[_ngcontent-%COMP%]{margin-left:1.5rem!important;margin-right:1.5rem!important}.my-4[_ngcontent-%COMP%]{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.p-4[_ngcontent-%COMP%]{padding:1.5rem!important}.pt-4[_ngcontent-%COMP%]{padding-top:1.5rem!important}.pb-4[_ngcontent-%COMP%]{padding-bottom:1.5rem!important}.ps-4[_ngcontent-%COMP%]{padding-left:1.5rem!important}.pe-4[_ngcontent-%COMP%]{padding-right:1.5rem!important}.px-4[_ngcontent-%COMP%]{padding-left:1.5rem!important;padding-right:1.5rem!important}.py-4[_ngcontent-%COMP%]{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.m-5[_ngcontent-%COMP%]{margin:3rem!important}.mt-5[_ngcontent-%COMP%]{margin-top:3rem!important}.mb-5[_ngcontent-%COMP%]{margin-bottom:3rem!important}.ms-5[_ngcontent-%COMP%]{margin-left:3rem!important}.me-5[_ngcontent-%COMP%]{margin-right:3rem!important}.mx-5[_ngcontent-%COMP%]{margin-left:3rem!important;margin-right:3rem!important}.my-5[_ngcontent-%COMP%]{margin-top:3rem!important;margin-bottom:3rem!important}.p-5[_ngcontent-%COMP%]{padding:3rem!important}.pt-5[_ngcontent-%COMP%]{padding-top:3rem!important}.pb-5[_ngcontent-%COMP%]{padding-bottom:3rem!important}.ps-5[_ngcontent-%COMP%]{padding-left:3rem!important}.pe-5[_ngcontent-%COMP%]{padding-right:3rem!important}.px-5[_ngcontent-%COMP%]{padding-left:3rem!important;padding-right:3rem!important}.py-5[_ngcontent-%COMP%]{padding-top:3rem!important;padding-bottom:3rem!important}.box[_ngcontent-%COMP%]{border:solid 1px #EEEEEE;border-radius:3px;box-shadow:1px 1px 3px #ededed}@media(max-width:768px){.box[_ngcontent-%COMP%]{margin-top:calc(var(--bs-gutter-x, 1.5rem) * .667)}}.assets[_ngcontent-%COMP%]{padding:calc(var(--bs-gutter-x, 1.5rem) * .667) 25px}.assets-link[_ngcontent-%COMP%]{padding-left:calc(var(--bs-gutter-x, 1.5rem) * .667);color:#1d81b0;cursor:pointer}"]})}}return v})()},40336(Ht,T,d){"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.EmissionsAvoidanceComponent=void 0;const S=d(31635),N=S.__importStar(d(49849)),O=S.__importStar(d(60177));T.EmissionsAvoidanceComponent=(()=>{class o{constructor(){}static{this.\u0275fac=function(h){return new(h||o)}}static{this.\u0275cmp=N.\u0275\u0275defineComponent({type:o,selectors:[["altec-connect-emissions-avoidance"]],inputs:{co2:"co2",nox:"nox"},standalone:!1,decls:16,vars:6,consts:[[1,"row","box"],[1,"col-12"],[1,"col-12","co2"],[1,"col-12","nox"]],template:function(h,D){1&h&&(N.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"h5"),N.\u0275\u0275text(3,"Total Emission Avoidance"),N.\u0275\u0275elementEnd()(),N.\u0275\u0275elementStart(4,"div",2),N.\u0275\u0275text(5," CO"),N.\u0275\u0275elementStart(6,"sub"),N.\u0275\u0275text(7,"2"),N.\u0275\u0275elementEnd(),N.\u0275\u0275text(8),N.\u0275\u0275pipe(9,"number"),N.\u0275\u0275elementEnd(),N.\u0275\u0275elementStart(10,"div",3),N.\u0275\u0275text(11," NO"),N.\u0275\u0275elementStart(12,"sub"),N.\u0275\u0275text(13,"x"),N.\u0275\u0275elementEnd(),N.\u0275\u0275text(14),N.\u0275\u0275pipe(15,"number"),N.\u0275\u0275elementEnd()()),2&h&&(N.\u0275\u0275advance(8),N.\u0275\u0275textInterpolate1(": ",N.\u0275\u0275pipeBind1(9,2,D.co2??0)," lbs "),N.\u0275\u0275advance(6),N.\u0275\u0275textInterpolate1(": ",N.\u0275\u0275pipeBind1(15,4,D.nox??0)," g "))},dependencies:[O.DecimalPipe],styles:[".box[_ngcontent-%COMP%]{border:solid 1px #EEEEEE;border-radius:3px;box-shadow:1px 1px 3px #ededed}@media(max-width:768px){.box[_ngcontent-%COMP%]{margin-top:10px}}.co2[_ngcontent-%COMP%]{padding:5px 25px}.nox[_ngcontent-%COMP%]{padding:5px 25px 10px}"]})}}return o}
1)()},34664(Ht,T,d){"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.FirmwareUpdateIndicatorComponent=void 0;const S=d(31635),N=S.__importStar(d(49849)),O=S.__importStar(d(6324));function u(g,h){1&g&&(N.\u0275\u0275elementStart(0,"div"),N.\u0275\u0275text(1,"JEMS Firmware Update Available"),N.\u0275\u0275elementEnd())}function o(g,h){if(1&g&&N.\u0275\u0275element(0,"i",1),2&g){const D=N.\u0275\u0275nextContext(),f=N.\u0275\u0275reference(1);N.\u0275\u0275property("ngbTooltip",f)("placement",D.tooltipPlacement)}}T.FirmwareUpdateIndicatorComponent=(()=>{class g{constructor(){this.tooltipPlacement="top"}get assetHasFirmwareUpdate(){return"OUT_OF_DATE"===this.asset.unit.firmwareStatus?.JEMS}static{this.\u0275fac=function(f){return new(f||g)}}static{this.\u0275cmp=N.\u0275\u0275defineComponent({type:g,selectors:[["altec-connect-firmware-update-indicator"]],inputs:{asset:"asset",tooltipPlacement:"tooltipPlacement"},standalone:!1,decls:3,vars:1,consts:[["firmwareTooltip",""],["tooltipClass","firmware-tooltip",1,"fa","fa-exclamation-circle",3,"ngbTooltip","placement"]],template:function(f,v){1&f&&(N.\u0275\u0275template(0,u,2,0,"ng-template",null,0,N.\u0275\u0275templateRefExtractor),N.\u0275\u0275conditionalCreate(2,o,1,2,"i",1)),2&f&&(N.\u0275\u0275advance(2),N.\u0275\u0275conditional(v.assetHasFirmwareUpdate?2:-1))},dependencies:[O.NgbTooltip],styles:[".fa-exclamation-circle[_ngcontent-%COMP%]{color:#efb310;margin-left:5px;margin-right:5px}"]})}}return g})()},19588(Ht,T,d){"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.FuelAvoidanceModalComponent=void 0;const S=d(31635),u=(d(6324),d(60177),d(38726)),b=(d(39756),S.__importStar(d(49849))),g=S.__importStar(d(39756)),h=S.__importStar(d(6324)),D=S.__importStar(d(60177)),f=S.__importStar(d(22850));function v(r,I){1&r&&b.\u0275\u0275text(0,"Fuel prices default to Energy Information Administration's weekly regional prices unless customized. ")}function p(r,I){if(1&r){const vt=b.\u0275\u0275getCurrentView();b.\u0275\u0275elementContainerStart(0),b.\u0275\u0275elementStart(1,"div",8),b.\u0275\u0275text(2),b.\u0275\u0275pipe(3,"date"),b.\u0275\u0275elementStart(4,"a",9),b.\u0275\u0275listener("click",function(){b.\u0275\u0275restoreView(vt);const ht=b.\u0275\u0275nextContext();return b.\u0275\u0275resetView(ht.openFuelPricesModal())}),b.\u0275\u0275text(5,"Set Custom Fuel Prices"),b.\u0275\u0275elementEnd()(),b.\u0275\u0275elementStart(6,"div",10)(7,"div",11)(8,"div",12),b.\u0275\u0275text(9," Average Gasoline Price "),b.\u0275\u0275elementEnd(),b.\u0275\u0275elementStart(10,"div",13)(11,"div",14),b.\u0275\u0275text(12),b.\u0275\u0275pipe(13,"currency"),b.\u0275\u0275elementEnd(),b.\u0275\u0275elementStart(14,"div",14),b.\u0275\u0275text(15),b.\u0275\u0275elementEnd()()(),b.\u0275\u0275elementStart(16,"div",11)(17,"div",12),b.\u0275\u0275text(18," Average Diesel Price "),b.\u0275\u0275elementEnd(),b.\u0275\u0275elementStart(19,"div",13)(20,"div",14),b.\u0275\u0275text(21),b.\u0275\u0275pipe(22,"currency"),b.\u0275\u0275elementEnd(),b.\u0275\u0275elementStart(23,"div",14),b.\u0275\u0275text(24),b.\u0275\u0275elementEnd()()(),b.\u0275\u0275elementStart(25,"div",15)(26,"div",16),b.\u0275\u0275text(27),b.\u0275\u0275pipe(28,"currency"),b.\u0275\u0275elementEnd()()(),b.\u0275\u0275elementContainerEnd()}if(2&r){const vt=b.\u0275\u0275nextContext();b.\u0275\u0275advance(2),b.\u0275\u0275textInterpolate2(" ",b.\u0275\u0275pipeBind2(3,7,vt.startDate,"MM/dd/yyyy")," to ",vt.yesterday," "),b.\u0275\u0275advance(10),b.\u0275\u0275textInterpolate1(" Gasoline: ",b.\u0275\u0275pipeBind3(13,10,vt.gasolineGallonsSaved?vt.gasolineSavingsDollars/vt.gasolineGallonsSaved:0,"USD","symbol")," "),b.\u0275\u0275advance(3),b.\u0275\u0275textInterpolate1(" Gallons Saved: ",vt.gasolineGallonsSaved," "),b.\u0275\u0275advance(6),b.\u0275\u0275textInterpolate1(" Diesel: ",b.\u0275\u0275pipeBind3(22,14,vt.dieselGallonsSaved?vt.dieselSavingsDollars/vt.dieselGallonsSaved:0,"USD","symbol")," "),b.\u0275\u0275advance(3),b.\u0275\u0275textInterpolate1(" Gallons Saved: ",vt.dieselGallonsSaved," "),b.\u0275\u0275advance(3),b.\u0275\u0275textInterpolate1(" Total Fuel Savings: ",b.\u0275\u0275pipeBind4(28,18,vt.fuelSavings,"USD","symbol","1.0")," ")}}function J(r,I){if(1&r){const vt=b.\u0275\u0275getCurrentView();b.\u0275\u0275elementContainerStart(0),b.\u0275\u0275elementStart(1,"div",10)(2,"div",17),b.\u0275\u0275text(3),b.\u0275\u0275pipe(4,"date"),b.\u0275\u0275elementStart(5,"a",18),b.\u0275\u0275listener("click",function(){b.\u0275\u0275restoreView(vt);const ht=b.\u0275\u0275nextContext();
1return b.\u0275\u0275resetView(ht.openFuelPricesModal())}),b.\u0275\u0275text(6,"Set Custom Fuel Prices"),b.\u0275\u0275elementEnd()(),b.\u0275\u0275elementStart(7,"div",19)(8,"div",20),b.\u0275\u0275text(9," Average Gasoline Price "),b.\u0275\u0275elementEnd(),b.\u0275\u0275elementStart(10,"div",21)(11,"div",14),b.\u0275\u0275text(12),b.\u0275\u0275pipe(13,"currency"),b.\u0275\u0275elementEnd(),b.\u0275\u0275elementStart(14,"div",14),b.\u0275\u0275text(15),b.\u0275\u0275elementEnd()()(),b.\u0275\u0275elementStart(16,"div",19)(17,"div",20),b.\u0275\u0275text(18," Average Diesel Price "),b.\u0275\u0275elementEnd(),b.\u0275\u0275elementStart(19,"div",21)(20,"div",14),b.\u0275\u0275text(21),b.\u0275\u0275pipe(22,"currency"),b.\u0275\u0275elementEnd(),b.\u0275\u0275elementStart(23,"div",14),b.\u0275\u0275text(24),b.\u0275\u0275elementEnd()()(),b.\u0275\u0275elementStart(25,"div",15)(26,"div",16),b.\u0275\u0275text(27),b.\u0275\u0275pipe(28,"currency"),b.\u0275\u0275elementEnd()()(),b.\u0275\u0275elementContainerEnd()}if(2&r){const vt=b.\u0275\u0275nextContext();b.\u0275\u0275advance(3),b.\u0275\u0275textInterpolate2(" ",b.\u0275\u0275pipeBind2(4,7,vt.startDate,"MM/dd/yyyy")," to ",vt.yesterday," "),b.\u0275\u0275advance(9),b.\u0275\u0275textInterpolate1(" Gasoline: ",b.\u0275\u0275pipeBind3(13,10,vt.gasolineGallonsSaved?vt.gasolineSavingsDollars/vt.gasolineGallonsSaved:0,"USD","symbol")," "),b.\u0275\u0275advance(3),b.\u0275\u0275textInterpolate1(" Gallons Saved: ",vt.gasolineGallonsSaved," "),b.\u0275\u0275advance(6),b.\u0275\u0275textInterpolate1(" Diesel: ",b.\u0275\u0275pipeBind3(22,14,vt.dieselGallonsSaved?vt.dieselSavingsDollars/vt.dieselGallonsSaved:0,"USD","symbol")," "),b.\u0275\u0275advance(3),b.\u0275\u0275textInterpolate1(" Gallons Saved: ",vt.dieselGallonsSaved," "),b.\u0275\u0275advance(3),b.\u0275\u0275textInterpolate1(" Total Fuel Savings: ",b.\u0275\u0275pipeBind4(28,18,vt.fuelSavings,"USD","symbol","1.0")," ")}}T.FuelAvoidanceModalComponent=(()=>{class r{constructor(vt,C,ht,F){this.insightService=vt,this.activeModal=C,this.datePipe=ht,this.modalService=F}ngOnInit(){let vt=this.datePipe.transform(this.endDate,"yyyy/MM/dd"),C=new Date(vt);this.gasPrice=this.insightService.getGasPrice(),this.dieselPrice=this.insightService.getDieselPrice(),this.gasolineGallonsSaved=this.insightService.getGasolineGallonsSaved(),this.gasolineSavingsDollars=this.insightService.getGasolineDollarsSaved(),this.dieselGallonsSaved=this.insightService.getDieselGallonsSaved(),this.dieselSavingsDollars=this.insightService.getDieselDollarsSaved(),this.yesterday=this.datePipe.transform(C.setDate(C.getDate()-1),"MM/dd/yyyy"),this.endDateFormatted=this.endDate?this.datePipe.transform(this.endDate,"MM/dd/yyyy"):this.yesterday}openFuelPricesModal(){let vt;this.activeModal.close(),vt=this.modalService.open(u.FuelPricesEditModalComponent),vt.componentInstance.endDateFormatted=this.endDateFormatted,vt.componentInstance.startDate=this.startDate}static{this.\u0275fac=function(C){return new(C||r)(b.\u0275\u0275directiveInject(g.InsightsService),b.\u0275\u0275directiveInject(h.NgbActiveModal),b.\u0275\u0275directiveInject(D.DatePipe),b.\u0275\u0275directiveInject(h.NgbModal))}}static{this.\u0275cmp=b.\u0275\u0275defineComponent({type:r,selectors:[["altec-connect-fuel-avoidance-modal"]],inputs:{gasolineGallonsSaved:"gasolineGallonsSaved",dieselGallonsSaved:"dieselGallonsSaved",gasolineSavingsDollars:"gasolineSavingsDollars",dieselSavingsDollars:"dieselSavingsDollars",gasPrice:"gasPrice",dieselPrice:"dieselPrice",hideGearIcon:"hideGearIcon",fuelSavings:"fuelSavings",startDate:"startDate",endDate:"endDate"},standalone:!1,decls:11,vars:3,consts:[["toolTipContent",""],[1,"modal-dialog-scrollable"],[1,"modal-header"],[1,"modal-title"],["tooltipClass","tooltip-bg-solid","triggers","hover click","placement","bottom",1,"fa","fa-info-circle",3,"ngbTooltip"],["type","button","data-bs-dismiss","modal","aria-label","Close",1,"btn-close",3,"click"],[1,"modal-body"],[4,"isMobileView"],[1,"sub-text","small-text","w-100","center-text","mobile-set-custom-fuel-prices"],[1,"float-end","pointer","w-100",3,"click"],[1,"row","box"],[1,"col-12","center-text"],[1,"col-sm-12","bold"],[1,"col-sm-12","sub-text"],[1,"col-12"],[1,"col-sm-12"],[1,"col-lg-12","bold","pt-5","text-center"],[1,"sub-text","small-text","ms-4"],[1,"float-end","pointer","me-4",3,"click"],[1,"col-6","padding"],[1,"bold"],[1,"sub-text"]],template:function(C,ht){if(1&C&&(b.\u0275\u0275elementStart(0,"div",1)(1,"div",2),b.\u0275\u0275template(2,v,1,0,"ng-template",null,0,b.\u0275\u0275templateRefExtractor),b.\u0275\u0275elementStart(4,"h4",3),b.\u0275\u0275text(5,"Fuel Calculations "),b.\u0275\u0275element(6,"i",4),b.\u0275\u0275elementEnd(),b.\u0275\u0275elementStart(7,"button",5),b.\u0275\u0275listener("click",function(){return ht.activeModal.dismiss(null)}),b.\u0275\u0275elementEnd()(),b.\u0275\u0275elementStart(8,"div",6),b.\u0275\u0275template(9,p,29,23,"ng-container",7)(10,J,29,23,"ng-container",7),b.\u0275\u0275elementEnd()()),2&C){const F=b.\u0275\u0275reference(3);b.\u0275\u0275advance(6),b.\u0275\u0275property("ngbTooltip",F),b.\u0275\u0275advance(3),b.\u0275\u0275property("isMobileView",!0),b.\u0275\u0275advance(),b.\u0275\u0275property("isMobileView",!1)}},dependencies:[h.NgbTooltip,f.SelectiveView,D.CurrencyPipe,D.DatePipe],styles:[".smaller-text[_ngcontent-%COMP%]{text-align:left;font-size:x-small}.center-text[_ngcontent-%COMP%]{text-align:center}.mobile-click[_ngcontent-%COMP%]{position:absolute;z-index:10}.padding[_ngcontent-%COMP%]{padding-top:10px;padding-left:30px}.mobile-set-custom-fuel-prices[_ngcontent-%COMP%]{z-index:3;position:relative}"]})}}return r})()},71424(Ht,T,d){"use strict";
1Object.defineProperty(T,"__esModule",{value:!0}),T.FuelMaintenanceAvoidanceComponent=void 0;const S=d(31635),O=(d(6324),d(19588)),o=(d(39756),S.__importStar(d(49849))),b=S.__importStar(d(6324)),g=S.__importStar(d(39756)),h=S.__importStar(d(7901)),D=S.__importStar(d(60177));T.FuelMaintenanceAvoidanceComponent=(()=>{class v{constructor(J,lt){this.modalService=J,this.insightService=lt,this.fuelSavings=0,this.gasolineGallonsSaved=0,this.dieselGallonsSaved=0,this.gasolineSavingsDollars=0,this.estMaintSavings=0,this.dieselSavingsDollars=0}openFuelandMaintenanceModal(){let J;J=this.modalService.open(O.FuelAvoidanceModalComponent,{size:"sm"}),J.componentInstance.gasolineGallonsSaved=this.gasolineGallonsSaved,J.componentInstance.dieselGallonsSaved=this.dieselGallonsSaved,J.componentInstance.gasolineSavingsDollars=this.gasolineSavingsDollars,J.componentInstance.gasPrice=this.gasPrice,J.componentInstance.dieselPrice=this.dieselPrice,J.componentInstance.dieselSavingsDollars=this.dieselSavingsDollars,J.componentInstance.fuelSavings=this.fuelSavings,J.componentInstance.startDate=this.startDate,J.componentInstance.endDate=this.endDate}getFuelSavings(){return this.fuelSavings=this.insightService.fuelSavings,this.fuelSavings}static{this.\u0275fac=function(lt){return new(lt||v)(o.\u0275\u0275directiveInject(b.NgbModal),o.\u0275\u0275directiveInject(g.InsightsService))}}static{this.\u0275cmp=o.\u0275\u0275defineComponent({type:v,selectors:[["altec-connect-fuel-maintenance-avoidance"]],inputs:{fuelSavings:"fuelSavings",gasolineGallonsSaved:"gasolineGallonsSaved",dieselGallonsSaved:"dieselGallonsSaved",gasolineSavingsDollars:"gasolineSavingsDollars",estMaintSavings:"estMaintSavings",gasPrice:"gasPrice",dieselPrice:"dieselPrice",hideGearIcon:"hideGearIcon",dieselSavingsDollars:"dieselSavingsDollars",startDate:"startDate",endDate:"endDate"},standalone:!1,decls:28,vars:20,consts:[[1,"row","box"],[1,"col-12"],[1,"fa","fa-gear","float-end","pointer",3,"click","hidden"],[1,"col-12","sub-text"],[1,"row"],[1,"col-8"],[1,"col-4"],[1,"col-8","bold"],[1,"col-4","bold","pb-2"],[1,"col-12","potential-savings"],[3,"routerLink"],[1,"fa","fa-chevron-right"]],template:function(lt,r){1<&&(o.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"h5"),o.\u0275\u0275text(3,"Fuel and Maintenance Avoidance"),o.\u0275\u0275elementStart(4,"i",2),o.\u0275\u0275listener("click",function(){return r.openFuelandMaintenanceModal()}),o.\u0275\u0275elementEnd()()(),o.\u0275\u0275elementStart(5,"div",3)(6,"div",4)(7,"div",5),o.\u0275\u0275text(8," Fuel Savings "),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(9,"div",6),o.\u0275\u0275text(10),o.\u0275\u0275pipe(11,"currency"),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(12,"div",4)(13,"div",5),o.\u0275\u0275text(14," Estimated Maintenance "),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(15,"div",6),o.\u0275\u0275text(16),o.\u0275\u0275pipe(17,"currency"),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(18,"div",4)(19,"div",7),o.\u
10275\u0275text(20," Total "),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(21,"div",8),o.\u0275\u0275text(22),o.\u0275\u0275pipe(23,"currency"),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(24,"div",9)(25,"a",10),o.\u0275\u0275text(26,"View Potential Savings\xa0"),o.\u0275\u0275element(27,"i",11),o.\u0275\u0275elementEnd()()()()),2<&&(o.\u0275\u0275advance(4),o.\u0275\u0275property("hidden",r.hideGearIcon),o.\u0275\u0275advance(6),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind4(11,5,r.getFuelSavings(),"USD","symbol","1.0")," "),o.\u0275\u0275advance(6),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind4(17,10,r.estMaintSavings,"USD","symbol","1.0")," "),o.\u0275\u0275advance(6),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind4(23,15,r.fuelSavings+r.estMaintSavings,"USD","symbol","1.0")," "),o.\u0275\u0275advance(3),o.\u0275\u0275property("routerLink","/pages/dashboard/equipment/fleetservices/compliance/jems/insights/potentialSavings"))},dependencies:[h.RouterLink,D.CurrencyPipe],styles:["[_ngcontent-%COMP%]:root{--bs-gutter-x: 1.5rem;--bs-gutter-y: 1.5rem}.d-flex[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{float:none}.col[_ngcontent-%COMP%]{flex:1 0 0;padding-left:var(--bs-gutter-x, 1.5rem);padding-right:var(--bs-gutter-x, 1.5rem)}@media only screen and (min-width:576px){.col-sm-auto[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;max-width:none}}@media only screen and (min-width:768px){.col-md-auto[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;max-width:none}}.col-auto[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;max-width:100%;padding-left:var(--bs-gutter-x, 1.5rem);padding-right:var(--bs-gutter-x, 1.5rem)}.justify-content-center[_ngcontent-%COMP%]{justify-content:center}.justify-content-end[_ngcontent-%COMP%]{justify-content:end}.align-items-center[_ngcontent-%COMP%]{align-items:center}.align-items-end[_ngcontent-%COMP%]{align-items:end}.flex-column-reverse[_ngcontent-%COMP%]{flex-direction:column-reverse}.d-flex[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}@media only screen and (min-width:768px){.d-md-block[_ngcontent-%COMP%]{display:block}}@media only screen and (min-width:768px){.d-md-none[_ngcontent-%COMP%]{display:none}}@media only screen and (min-width:768px){.d-md-flex[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}}@media only screen and (min-width:992px){.d-lg-none[_ngcontent-%COMP%]{display:none!important}}@media only screen and (min-width:992px){.d-lg-block[_ngcontent-%COMP%]{display:block!important}}.w-100[_ngcontent-%COMP%]{width:100%!important}.h-100[_ngcontent-%COMP%]{height:100%!important}.px-3[_ngcontent-%COMP%]{padding-left:15px!important;padding-right:15px!important}.pr-0[_ngcontent-%COMP%]{padding-right:0!important}.pl-0[_ngcontent-%COMP%]{padding-left:0!important}.pt-3[_ngcontent-%COMP%]{padding-top:1rem}.pb-3[_ngcontent-%COMP%]{padding-bottom:1rem}.mb-3[_ngcontent-%COMP%]{margin-bottom:1rem}.pb-2[_ngcontent-%COMP%]{padding-bottom:.5rem}@media print{.no-print[_ngcontent-%COMP%]{display:none!important}}.m-0[_ngcontent-%COMP%]{margin:0!important}.mt-0[_ngcontent-%COMP%]{margin-top:0!important}.mb-0[_ngcontent-%COMP%]{margin-bottom:0!important}.ms-0[_ngcontent-%COMP%]{margin-left:0!important}.me-0[_ngcontent-%COMP%]{margin-right:0!important}.mx-0[_ngcontent-%COMP%]{margin-left:0!important;margin-right:0!important}.my-0[_ngcontent-%COMP%]{margin-top:0!important;margin-bottom:0!important}.p-0[_ngcontent-%COMP%]{padding:0!important}.pt-0[_ngcontent-%COMP%]{padding-top:0!important}.pb-0[_ngcontent-%COMP%]{padding-bottom:0!important}.ps-0[_ngcontent-%COMP%]{padding-left:0!important}.pe-0[_ngcontent-%COMP%]{padding-right:0!important}.px-0[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.py-0[_ngcontent-%COMP%]{padding-top:0!important;padding-bottom:0!important}.m-1[_ngcontent-%COMP%]{margin:.25rem!important}.mt-1[_ngcontent-%COMP%]{margin-top:.25rem!important}.mb-1[_ngcontent-%COMP%]{margin-bottom:.25rem!important}.ms-1[_ngcontent-%COMP%]{margin-left:.25rem!important}.me-1[_ngcontent-%COMP%]{margin-right:.25rem!important}.mx-1[_ngcontent-%COMP%]{margin-left:.25rem!important;margin-right:.25rem!important}.my-1[_ngcontent-%COMP%]{margin-top:.25rem!important;margin-bottom:.25rem!important}.p-1[_ngcontent-%COMP%]{padding:.25rem!important}.pt-1[_ngcontent-%COMP%]{padding-top:.25rem!important}.pb-1[_ngcontent-%COMP%]{padding-bottom:.25rem!important}.ps-1[_ngcontent-%COMP%]{padding-left:.25rem!important}.pe-1[_ngcontent-%COMP%]{padding-right:.25rem!important}.px-1[_ngcontent-%COMP%]{padding-left:.25rem!important;padding-right:.25rem!important}.py-1[_ngcontent-%COMP%]{padding-top:.25rem!important;padding-bottom:.25rem!important}.m-2[_ngcontent-%COMP%]{margin:.5rem!important}.mt-2[_ngcontent-%COMP%]{margin-top:.5rem!important}.mb-2[_ngcontent-%COMP%]{margin-bottom:.5rem!important}.ms-2[_ngcontent-%COMP%]{margin-left:.5rem!important}.me-2[_ngcontent-%COMP%]{margin-right:.5rem!important}.mx-2[_ngcontent-%COMP%]{margin-left:.5rem!important;margin-right:.5rem!important}.my-2[_ngcontent-%COMP%]{margin-top:.5rem!important;margin-bottom:.5rem!important}.p-2[_ngcontent-%COMP%]{padding:.5rem!important}.pt-2[_ngcontent-%COMP%]{padding-top:.5rem!important}.pb-2[_ngcontent-%COMP%]{padding-bottom:.5rem!important}.ps-2[_ngcontent-%COMP%]{padding-left:.5rem!important}
1.pe-2[_ngcontent-%COMP%]{padding-right:.5rem!important}.px-2[_ngcontent-%COMP%]{padding-left:.5rem!important;padding-right:.5rem!important}.py-2[_ngcontent-%COMP%]{padding-top:.5rem!important;padding-bottom:.5rem!important}.m-3[_ngcontent-%COMP%]{margin:1rem!important}.mt-3[_ngcontent-%COMP%]{margin-top:1rem!important}.mb-3[_ngcontent-%COMP%]{margin-bottom:1rem!important}.ms-3[_ngcontent-%COMP%]{margin-left:1rem!important}.me-3[_ngcontent-%COMP%]{margin-right:1rem!important}.mx-3[_ngcontent-%COMP%]{margin-left:1rem!important;margin-right:1rem!important}.my-3[_ngcontent-%COMP%]{margin-top:1rem!important;margin-bottom:1rem!important}.p-3[_ngcontent-%COMP%]{padding:1rem!important}.pt-3[_ngcontent-%COMP%]{padding-top:1rem!important}.pb-3[_ngcontent-%COMP%]{padding-bottom:1rem!important}.ps-3[_ngcontent-%COMP%]{padding-left:1rem!important}.pe-3[_ngcontent-%COMP%]{padding-right:1rem!important}.px-3[_ngcontent-%COMP%]{padding-left:1rem!important;padding-right:1rem!important}.py-3[_ngcontent-%COMP%]{padding-top:1rem!important;padding-bottom:1rem!important}.m-4[_ngcontent-%COMP%]{margin:1.5rem!important}.mt-4[_ngcontent-%COMP%]{margin-top:1.5rem!important}.mb-4[_ngcontent-%COMP%]{margin-bottom:1.5rem!important}.ms-4[_ngcontent-%COMP%]{margin-left:1.5rem!important}.me-4[_ngcontent-%COMP%]{margin-right:1.5rem!important}.mx-4[_ngcontent-%COMP%]{margin-left:1.5rem!important;margin-right:1.5rem!important}.my-4[_ngcontent-%COMP%]{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.p-4[_ngcontent-%COMP%]{padding:1.5rem!important}.pt-4[_ngcontent-%COMP%]{padding-top:1.5rem!important}.pb-4[_ngcontent-%COMP%]{padding-bottom:1.5rem!important}.ps-4[_ngcontent-%COMP%]{padding-left:1.5rem!important}.pe-4[_ngcontent-%COMP%]{padding-right:1.5rem!important}.px-4[_ngcontent-%COMP%]{padding-left:1.5rem!important;padding-right:1.5rem!important}.py-4[_ngcontent-%COMP%]{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.m-5[_ngcontent-%COMP%]{margin:3rem!important}.mt-5[_ngcontent-%COMP%]{margin-top:3rem!important}.mb-5[_ngcontent-%COMP%]{margin-bottom:3rem!important}.ms-5[_ngcontent-%COMP%]{margin-left:3rem!important}.me-5[_ngcontent-%COMP%]{margin-right:3rem!important}.mx-5[_ngcontent-%COMP%]{margin-left:3rem!important;margin-right:3rem!important}.my-5[_ngcontent-%COMP%]{margin-top:3rem!important;margin-bottom:3rem!important}.p-5[_ngcontent-%COMP%]{padding:3rem!important}.pt-5[_ngcontent-%COMP%]{padding-top:3rem!important}.pb-5[_ngcontent-%COMP%]{padding-bottom:3rem!important}.ps-5[_ngcontent-%COMP%]{padding-left:3rem!important}.pe-5[_ngcontent-%COMP%]{padding-right:3rem!important}.px-5[_ngcontent-%COMP%]{padding-left:3rem!important;padding-right:3rem!important}.py-5[_ngcontent-%COMP%]{padding-top:3rem!important;padding-bottom:3rem!important}.box[_ngcontent-%COMP%]{border:solid 1px #EEEEEE;border-radius:3px;box-shadow:1px 1px 3px #ededed}@media(max-width:768px){.box[_ngcontent-%COMP%]{margin-top:calc(var(--bs-gutter-x, 1.5rem) * .667)}}.info-icon[_ngcontent-%COMP%]{flex:0 1 0;margin-top:calc(var(--bs-gutter-x, 1.5rem) * .667)}.sub-text[_ngcontent-%COMP%]{padding:0 calc(var(--bs-gutter-x, 1.5rem) * .667) calc(var(--bs-gutter-x, 1.5rem) * .667) calc(var(--bs-gutter-x, 1.5rem) * .667)}.potential-savings[_ngcontent-%COMP%]{display:flex;align-items:center;padding:calc(var(--bs-gutter-x, 1.5rem) * .667) 0 0;border-top:2px solid #EEEEEE}a[_ngcontent-%COMP%]{text-decoration:none;color:inherit}"]})}}return v})()},38726(Ht,T,d){"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.FuelPricesEditModalComponent=void 0;const S=d(31635),N=d(84341),b=(d(6324),d(39756),d(97377),d(19588)),h=(d(98259),S.__importStar(d(49849))),D=S.__importStar(d(6324)),f=S.__importStar(d(84341)),v=S.__importStar(d(39756)),p=S.__importStar(d(97377)),J=S.__importStar(d(92325)),lt=S.__importStar(d(60177)),r=()=>({eventCategory:"JEMS",eventAction:"Button Click",eventLabel:"Submit Fuel Price"});function I(ct,at){1&ct&&(h.\u0275\u0275elementStart(0,"label",20),h.\u0275\u0275text(1,"Please enter a valid gas price"),h.\u0275\u0275elementEnd())}function vt(ct,at){if(1&ct&&(h.\u0275\u0275elementStart(0,"div",11),h.\u0275\u0275conditionalCreate(1,I,2,0,"label",20),h.\u0275\u0275elementEnd()),2&ct){const rt=h.\u0275\u0275nextContext();
1h.\u0275\u0275advance(),h.\u0275\u0275conditional(rt.gasAmtControl.errors.pattern?1:-1)}}function C(ct,at){1&ct&&(h.\u0275\u0275elementStart(0,"label",20),h.\u0275\u0275text(1,"Please enter a valid diesel price"),h.\u0275\u0275elementEnd())}function ht(ct,at){if(1&ct&&(h.\u0275\u0275elementStart(0,"div",11),h.\u0275\u0275conditionalCreate(1,C,2,0,"label",20),h.\u0275\u0275elementEnd()),2&ct){const rt=h.\u0275\u0275nextContext();h.\u0275\u0275advance(),h.\u0275\u0275conditional(rt.dieselAmtControl.errors.pattern?1:-1)}}T.FuelPricesEditModalComponent=(()=>{class ct{constructor(rt,X,gt,mt,St){this.activeModal=rt,this.modalService=X,this.formBuilder=gt,this.insightsService=mt,this.statefulService=St,this.fuelArray=[],this.fuelPriceForm=this.formBuilder.group({gasAmtForm:[this.gasAmt,[N.Validators.pattern(/(?=.*?\d)^\$?(([1-9]\d{0,2}(,\d{3})*)|\d+)?(\.\d{1,2})?$/)]],dieselAmtForm:[this.dieselAmt,[N.Validators.pattern(/(?=.*?\d)^\$?(([1-9]\d{0,2}(,\d{3})*)|\d+)?(\.\d{1,2})?$/)]]}),this.gasAmtControl=this.fuelPriceForm.get("gasAmtForm"),this.dieselAmtControl=this.fuelPriceForm.get("dieselAmtForm"),this.gasAmtControl.setValue(this.gasAmt),this.dieselAmtControl.setValue(this.dieselAmt)}ngOnInit(){this.customGasPrice=this.insightsService.getGasPrice(),this.customDieselPrice=this.insightsService.getDieselPrice()}savePrices(){this.gasAmt=this.gasAmtControl.value,this.dieselAmt=this.dieselAmtControl.value,this.activeModal.close();let rt=this.dateFormatter(new Date);return this.fuelArray.push({fuelType:"GASOLINE",startDate:rt,endDate:rt,currency:"USD",price:this.gasAmtControl.value?this.gasAmtControl.value:this.customGasPrice?this.customGasPrice:0}),this.fuelArray.push({fuelType:"DIESEL",startDate:rt,endDate:rt,currency:"USD",price:this.dieselAmtControl.value?this.dieselAmtControl.value:this.customDieselPrice?this.customDieselPrice:0}),this.insightsService.changeFuelPrice(this.fuelArray).subscribe(mt=>{this.activeModal.close();let ot,St=this.fuelArray.find(B=>"GASOLINE"===B.fuelType),ft=this.fuelArray.find(B=>"DIESEL"===B.fuelType);this.insightsService.setGasPrice(St.price),this.insightsService.setDieselPrice(ft.price),ot=this.modalService.open(b.FuelAvoidanceModalComponent,{size:"sm"}),this.insightsService.getCalculation("FuelSavingsDollars",this.startDate,this.endDate).subscribe(B=>{this.insightsService.setFuelSavings(Math.round(B.totals.overallValue)),ot.componentInstance.fuelSavings=Math.round(B.totals.overallValue),this.fuelSavings=ot.componentInstance.fuelSavings}),this.insightsService.getCalculation("GasSavingsGallons",this.startDate,this.endDate).subscribe(B=>{ot.componentInstance.gasolineGallonsSaved=Math.round(B.totals.overallValue),this.insightsService.setGasolineGallonsSaved(Math.round(B.totals.overallValue))}),this.insightsService.getCalculation("DieselSavingsGallons",this.startDate,this.endDate).subscribe(B=>{ot.componentInstance.dieselGallonsSaved=Math.round(B.totals.overallValue),this.insightsService.setDieselGallonsSaved(Math.round(B.totals.overallValue))}),this.insightsService.getCalculation("GasSavingsDollars",this.startDate,this.endDate).subscribe(B=>{ot.componentInstance.gasolineSavingsDollars=B.totals.overallValue,this.insightsService.setGasolineDollarsSaved(B.totals.overallValue)}),this.insightsService.getCalculation("DieselSavingsDollars",this.startDate,this.endDate).subscribe(B=>{ot.componentInstance.dieselSavingsDollars=B.totals.overallValue,this.insightsService.setDieselDollarsSaved(B.totals.overallValue)}),ot.componentInstance.gasPrice=this.insightsService.getGasPrice(),ot.componentInstance.dieselPrice=this.insightsService.getDieselPrice(),ot.componentInstance.startDate=this.startDate,ot.componentInstance.endDate=this.endDateFormatted,ot.componentInstance.endDateFormatted=this.endDateFormatted})}dateFormatter(rt,X){let gt=rt.getFullYear().toString(),mt=(rt.getMonth()+1).toString();mt=1===mt.length?`0${mt}`:mt;let St=X?(rt.getDate()+1).toString():rt.getDate().toString();return St=1===St.length?`0${St}`:St,`${gt}-${mt}-${St}`}static{this.\u0275fac=function(X){return new(X||ct)(h.\u0275\u0275directiveInject(D.NgbActiveModal),h.\u0275\u0275directiveInject(D.NgbModal),h.\u0275\u0275directiveInject(f.FormBuilder),h.\u0275\u0275directiveInject(v.InsightsService),h.\u0275\u0275directiveInject(p.StatefulService))}}static{this.\u0275cmp=h.\u0275\u0275defineComponent({type:ct,selectors:[["altec-connect-fuel-prices-edit-modal"]],inputs:{startDate:"startDate",endDate:"endDate",endDateFormatted:"endDateFormatted"},outputs:{fuelSavings:"fuelSavings"},standalone:!1,decls:37,vars:20,consts:[["gasAmtField",""],["dieselAmtField",""],[1,"modal-dialog-scrollable"],[1,"modal-header"],[1,"modal-title"],["type","button","data-bs-dismiss","modal","aria-label","Close",1,"btn-close",3,"click"],[1,"modal-body"],[1,"row"],[1,"col-12"],[1,"row","mb-2",3,"formGroup"],[1,"col-12","mb-2"],[1,"error-message","ms-2"],[1,"input-group"],[1,"input-group-text"],["aria-hidden","true",1,"fa","fa-usd"],["formControlName","gasAmtForm","type","text","maxlength","10",1,"form-control-sm","number","w-100","light-grey-border"],["formControlName","dieselAmtForm","type","text","maxlength","10",1,"form-control-sm","number","w-100","light-grey-border"],[1,"modal-footer"],["type","button",1,"btn","btn-light",3,"click"],["type","button",1,"btn","btn-altec","btn-large",3,"click","gaEvent","disabled"],[1,"text-error"]],template:function(X,gt){1&X&&(h.\u0275\u0275elementStart(0,"div",2)(1,"div",3)(2,"h4",4),h.\u0275\u0275text(3,"Set Custom Fuel Prices"),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementStart(4,"button",5),h.\u0275\u0275listener("click",function(){return gt.activeModal.dismiss()}),h.\u0275\u0275elementEnd()(),h.\u0275\u0275elementStart(5,"div",6)(6,"div",7)(7,"div",8)(8,"p"),h.\u0275\u0275text(9,"Updates submitted below only affect future calculations. Custom fuel prices apply to the business account and impact the fuel savings calculations for all users."),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementStart(10,"form",9)(11,"div",10),h.\u0275\u0275element(12,"div",7),h.\u0275\u0275elementStart(13,"label"),h.\u0275\u0275text(14,"Gasoline"),h.\u0275\u0275elementEnd(),h.\u0275\u0275conditionalCreate(15,vt,2,1,"div",11),h.\u0275\u0275elementStart(16,"div",12)(17,"span",13),h.\u0275\u0275element(18,"i",14),h.\u0275\u0275elementEnd(),h.\u0275\u0275element(19,"input",15,0),h.\u0275\u0275pipe(21,"number"),h.\u0275\u0275elementEnd()(),h.\u0275\u0275elementStart(22,"div",8)(23,"label"),h.\u0275\u0275text(24,"Diesel"),h.\u0275\u0275elementEnd(),h.\u0275\u0275conditionalCreate(25,ht,2,1,"div",11),h.\u0275\u0275elementStart(26,"div",12)(27,"span",13),h.\u0275\u0275element(28,"i",14),h.\u0275\u0275elementEnd(),h.\u0275\u0275element(29,"input",16,1),h.\u0275\u0275pipe(31,"number"),h.\u0275\u0275elementEnd()()()()()(),h.\u0275\u0275elementStart(32,"div",17)(33,"button",18),h.\u0275\u0275listener("click",function(){return gt.activeModal.dismiss()}),h.\u0275\u0275text(34," Cancel"),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementStart(35,"button",19),h.\u0275\u0275listener("click",function(){return gt.savePrice
1s()}),h.\u0275\u0275text(36," Submit"),h.\u0275\u0275elementEnd()()()),2&X&&(h.\u0275\u0275advance(10),h.\u0275\u0275property("formGroup",gt.fuelPriceForm),h.\u0275\u0275advance(5),h.\u0275\u0275conditional(gt.gasAmtControl.invalid&&(gt.gasAmtControl.dirty||gt.gasAmtControl.touched)?15:-1),h.\u0275\u0275advance(),h.\u0275\u0275classProp("has-error",gt.gasAmtControl.invalid&&(gt.gasAmtControl.dirty||gt.gasAmtControl.touched)),h.\u0275\u0275advance(3),h.\u0275\u0275attribute("placeholder",h.\u0275\u0275pipeBind2(21,13,gt.customGasPrice,"1.2-2")),h.\u0275\u0275advance(6),h.\u0275\u0275conditional(gt.dieselAmtControl.invalid&&(gt.dieselAmtControl.dirty||gt.dieselAmtControl.touched)?25:-1),h.\u0275\u0275advance(),h.\u0275\u0275classProp("has-error",gt.dieselAmtControl.invalid&&(gt.dieselAmtControl.dirty||gt.dieselAmtControl.touched)),h.\u0275\u0275advance(3),h.\u0275\u0275attribute("placeholder",h.\u0275\u0275pipeBind2(31,16,gt.customDieselPrice,"1.2-2")),h.\u0275\u0275advance(6),h.\u0275\u0275classProp("disabled",gt.statefulService.profile.isInternalAssociate),h.\u0275\u0275property("gaEvent",h.\u0275\u0275pureFunction0(19,r))("disabled",gt.statefulService.profile.isInternalAssociate))},dependencies:[J.GaEventDirective,f.\u0275NgNoValidate,f.DefaultValueAccessor,f.NgControlStatus,f.NgControlStatusGroup,f.MaxLengthValidator,f.FormGroupDirective,f.FormControlName,lt.DecimalPipe],styles:["input[_ngcontent-%COMP%]::placeholder{font-style:italic}.light-grey-border[_ngcontent-%COMP%]{border:1px solid lightgrey}"]})}}return ct})()},67936(Ht,T,d){"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.InsightCardComponent=T.InsightCardConfig=void 0;const S=d(31635),N=S.__importStar(d(49849)),O=S.__importStar(d(6324));function u(h,D){if(1&h&&(N.\u0275\u0275elementStart(0,"h3",11),N.\u0275\u0275text(1),N.\u0275\u0275elementEnd(),N.\u0275\u0275elementStart(2,"h3",12),N.\u0275\u0275text(3,"Jobsite"),N.\u0275\u0275element(4,"br"),N.\u0275\u0275text(5,"Idle"),N.\u0275\u0275elementEnd()),2&h){const f=N.\u0275\u0275nextContext();N.\u0275\u0275advance(),N.\u0275\u0275textInterpolate(f.cardConfig.title)}}function o(h,D){if(1&h&&(N.\u0275\u0275elementStart(0,"h3"),N.\u0275\u0275text(1),N.\u0275\u0275elementEnd()),2&h){const f=N.\u0275\u0275nextContext();N.\u0275\u0275advance(),N.\u0275\u0275textInterpolate(f.cardConfig.title)}}class b{static{this.JobsiteUtilization=new b("Jobsite Utilization","/static/angular-resources/jems/JobsiteUtilizationIcon.svg","/static/angular-resources/jems/JobsiteUtilization_Highlighted.svg","Altec recommends 60% or more","This metric shows the percentage of time\nJEMS is engaged to avoid idling at the jobsite.\nA higher value indicates more JEMS utilization\nand less time idling at the jobsite.")}static{this.JobsiteIdle=new b("Jobsite Idle","/static/angular-resources/jems/JobsiteIdleIcon.svg","/static/angular-resources/jems/JobsiteIdleIcon_Highlighted.svg","Altec recommends 25% or less","This metric reports the percentage of time the JEMS is not activated and was idling at the jobsite. A lower value indicates less jobsite idling due to an engaged JEMS override.")}static{this.PluginCharging=new b("Plug-In Charging","/static/angular-resources/jems/PlugInChargingIcon.svg","/static/angular-resources/jems/PlugInChargingIcon_Highlighted.svg","Altec recommends 75% or more","This metric measures the percentage of JEMS energy from plug-in charging. A higher value indicates more energy is sourced from plug-in charging, reducing the need for the chassis engine to run.")}constructor(D,f,v,p,J){this.title=D,this.svgUrl=f,this.activeSvgUrl=v,this.recommends=p,this.tooltip=J}}T.InsightCardConfig=b,T.InsightCardComponent=(()=>{class h{constructor(){}static{this.\u0275fac=function(v){return new(v||h)}}static{this.\u0275cmp=N.\u0275\u0275defineComponent({type:h,selectors:[["altec-connect-insight-card"]],inputs:{cardConfig:"cardConfig",score:"score",active:"active"},standalone:!1,decls:19,vars:8,consts:[[1,"row"],[1,"col-12","insight-card","box"],[1,"col-12","title"],[1,"title-row"],[1,"info-icon"],["tooltipClass","tooltip-bg-solid","triggers","hover click","placement","right left",1,"fa","fa-info-circle",3,"ngbTooltip"],[1,"row","d-flex"],[1,"col","score","text-center"],[1,"col-auto","icon","text-center"],[3,"src"],[1,"col-12","text-center"],[1,"d-none","d-md-block"],[1,"d-none","d-sm-none","d-md-none"]],template:function(v,p){1&v&&(N.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",0)(3,"div",2)(4,"div",3),N.\u0275\u0275conditionalCreate(5,u,6,1),N.\u0275\u0275conditionalCreate(6,o,2,1,"h3"),N.\u0275\u0275elementStart(7,"div",4),N.\u0275\u0275element(8,"i",5),N.\u0275\u0275elementEnd()()()(),N.\u0275\u0275elementStart(9,"div",6)(10,"div",7)(11,"h3"),N.\u0275\u0275text(12),N.\u0275\u0275elementEnd()(),N.\u0275\u0275elementStart(13,"div",8),N.\u0275\u0275element(14,"img",9),N.\u0275\u0275elementEnd()(),N.\u0275\u0275elementStart(15,"div",0)(16,"div",10)(17,"small"),N.\u0275\u0275text(18),N.\u0275\u0275elementEnd()()()()()),2&v&&(N.\u0275\u0275advance(),N.\u0275\u0275classProp("active",p.active),N.\u0275\u0275advance(4),N.\u0275\u0275conditional("Jobsite Idle"===p.cardConfig.title?5:-1),N.\u0275\u0275advance(),N.\u0275\u0275conditional("Jobsite Idle"!==p.cardConfig.title?6:-1),N.\u0275\u0275advance(2),N.\u0275\u0275property("ngbTooltip",p.cardConfig.tooltip),N.\u0275\u0275advance(4),N.\u0275\u0275textInterpolate1("",p.score??0,"%"),N.\u0275\u0275advance(2),N.\u0275\u0275property("src",p.active?p.cardConfig.activeSvgUrl:p.cardConfig.svgUrl,N.\u0275\u0275sanitizeUrl),N.\u0275\u0275advance(4),N.\u0275\u0275textInterpolate(p.cardConfig.recommends))},dependencies:[O.NgbTooltip],styles:["[_ngcontent-%COMP%]:root{--bs-gutter-x: 1.5rem;--bs-gutter-y: 1.5rem}.d-flex[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{float:none}.col[_ngcontent-%COMP%]{flex:1 0 0;padding-left:var(--bs-gutter-x, 1.5rem);padding-right:var(--bs-gutter-x, 1.5rem)}@media only screen and (min-width:576px){.col-sm-auto[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;max-width:none}}@media only screen and (min-width:768px){.col-md-auto[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;max-width:none}}.col-auto[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;max-width:100%;padding-left:var(--bs-gutter-x, 1.5rem);padding-right:var(--bs-gutter-x, 1.5rem)}.justify-content-center[_ngcontent-%COMP%]{justify-content:center}.justify-content-end[_ngcontent-%COMP%]{justify-content:end}.align-items-center[_ngcontent-%COMP%]{align-items:center}.align-items-end[_ngcontent-%COMP%]{align-items:end}.flex-column-reverse[_ngcontent-%COMP%]{flex-direction:column-reverse}.d-flex[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}@media only screen and (min-width:768px){.d-md-block[_ngcontent-%COMP%]{display:block}}@media only screen and (min-width:768px){.d-md-none[_ngcontent-%COMP%]{display:none}}@media only screen and (min-width:768px){.d-md-flex[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}}@media only screen and (min-width:992px){.d-lg-none[_ngcontent-%COMP%]{display:none!important}}@media only screen and (min-width:992px){.d-lg-block[_ngcontent-%COMP%]{display:block!important}}.w-100[_ngcontent-%COMP%]{width:100%!important}.h-100[_ngcontent-%COMP%]{height:100%!important}.px-3[_ngcontent-%COMP%]{padding-left:15px!important;padding-right:15px!important}.pr-0[_ngcontent-%COMP%]{padding-right:0!important}.pl-0[_ngcontent-%COMP%]{padding-left:0!important}.pt-3[_ngcontent-%COMP%]{padding-top:1rem}.pb-3[_ngcontent-%COMP%]{padding-bottom:1rem}.mb-3[_ngcontent-%COMP%]{margin-bottom:1rem}.pb-2[_ngcontent-%COMP%]{padding-bottom:.5rem}@media print{.no-print[_ngcontent-%COMP%]{display:none!important}}.m-0[_ngcontent-%COMP%]{margin:0!important}.mt-0[_ngcontent-%COMP%]{margin-top:0!important}.mb-0[_ngcontent-%COMP%]{margin-bottom:0!important}.ms-0[_ngcontent-%COMP%]{margin-left:0!important}.me-0[_ngcontent-%COMP%]{margin-right:0!important}.mx-0[_ngcontent-%COMP%]{margin-left:0!important;margin-right:0!important}.my-0[_ngcontent-%COMP%]{margin-top:0!important;margin-bottom:0!important}.p-0[_ngcontent-%COMP%]{padding:0!important}.pt-0[_ngcontent-%COMP%]{padding-top:0!important}.pb-0[_ngcontent-%COMP%]{padding-bottom:0!important}.ps-0[_ngcontent-%COMP%]{padding-left:0!important}.pe-0[_ngcontent-%COMP%]{padding-right:0!important}.px-0[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.py-0[_ngcontent-%COMP%]{padding-top:0!important;padding-bottom:0!important}.m-1[_ngcontent-%COMP%]{margin:.25rem!important}.mt-1[_ngcontent-%COMP%]{margin-top:.25rem!important}.mb-1[_ngcontent-%COMP%]{margin-bottom:.25rem!important}.ms-1[_ngcontent-%COMP%]{margin-left:.25rem!important}.me-1[_ngcontent-%COMP%]{margin-right:.25rem!important}.mx-1[_ngcontent-%COMP%]{margin-left:.25rem!important;margin-right:.25rem!important}.my-1[_ngcontent-%COMP%]{margin-top:.25rem!important;margin-bottom:.25rem!important}.p-1[_ngcontent-%COMP%]{padding:.25rem!important}.pt-1[_ngcontent-%COMP%]{padding-top:.25rem!important}.pb-1[_ngcontent-%COMP%]{padding-bottom:.25rem!important}.ps-1[_ngcontent-%COMP%]{padding-left:.25rem!important}.pe-1[_ngcontent-%COMP%]{padding-right:.25rem!important}.px-1[_ngcontent-%COMP%]{padding-left:.25rem!important;padding-right:.25rem!important}.py-1[_ngcontent-%COMP%]{padding-top:.25rem!important;padding-bottom:.25rem!important}.m-2[_ngcontent-%COMP%]{margin:.5rem!important}.mt-2[_ngcontent-%COMP%]{margin-top:.5rem!important}.mb-2[_ngcontent-%COMP%]{margin-bottom:.5rem!important}.ms-2[_ngcontent-%COMP%]{margin-left:.5rem!important}.me-2[_ngcontent-%COMP%]{margin-right:.5rem!important}.mx-2[_ngcontent-%COMP%]{margin-left:.5rem!important;margin-right:.5rem!important}.my-2[_ngcontent-%COMP%]{margin-top:.5rem!important;margin-bottom:.5rem!important}.p-2[_ngcontent-%COMP%]{padding:.5rem!important}.pt-2[_ngcontent-%COMP%]{padding-top:.5rem!important}.pb-2[_ngcontent-%COMP%]{padding-bottom:.5rem!important}.ps-2[_ngcontent-%COMP%]{padding-left:.5rem!important}
1.pe-2[_ngcontent-%COMP%]{padding-right:.5rem!important}.px-2[_ngcontent-%COMP%]{padding-left:.5rem!important;padding-right:.5rem!important}.py-2[_ngcontent-%COMP%]{padding-top:.5rem!important;padding-bottom:.5rem!important}.m-3[_ngcontent-%COMP%]{margin:1rem!important}.mt-3[_ngcontent-%COMP%]{margin-top:1rem!important}.mb-3[_ngcontent-%COMP%]{margin-bottom:1rem!important}.ms-3[_ngcontent-%COMP%]{margin-left:1rem!important}.me-3[_ngcontent-%COMP%]{margin-right:1rem!important}.mx-3[_ngcontent-%COMP%]{margin-left:1rem!important;margin-right:1rem!important}.my-3[_ngcontent-%COMP%]{margin-top:1rem!important;margin-bottom:1rem!important}.p-3[_ngcontent-%COMP%]{padding:1rem!important}.pt-3[_ngcontent-%COMP%]{padding-top:1rem!important}.pb-3[_ngcontent-%COMP%]{padding-bottom:1rem!important}.ps-3[_ngcontent-%COMP%]{padding-left:1rem!important}.pe-3[_ngcontent-%COMP%]{padding-right:1rem!important}.px-3[_ngcontent-%COMP%]{padding-left:1rem!important;padding-right:1rem!important}.py-3[_ngcontent-%COMP%]{padding-top:1rem!important;padding-bottom:1rem!important}.m-4[_ngcontent-%COMP%]{margin:1.5rem!important}.mt-4[_ngcontent-%COMP%]{margin-top:1.5rem!important}.mb-4[_ngcontent-%COMP%]{margin-bottom:1.5rem!important}.ms-4[_ngcontent-%COMP%]{margin-left:1.5rem!important}.me-4[_ngcontent-%COMP%]{margin-right:1.5rem!important}.mx-4[_ngcontent-%COMP%]{margin-left:1.5rem!important;margin-right:1.5rem!important}.my-4[_ngcontent-%COMP%]{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.p-4[_ngcontent-%COMP%]{padding:1.5rem!important}.pt-4[_ngcontent-%COMP%]{padding-top:1.5rem!important}.pb-4[_ngcontent-%COMP%]{padding-bottom:1.5rem!important}.ps-4[_ngcontent-%COMP%]{padding-left:1.5rem!important}.pe-4[_ngcontent-%COMP%]{padding-right:1.5rem!important}.px-4[_ngcontent-%COMP%]{padding-left:1.5rem!important;padding-right:1.5rem!important}.py-4[_ngcontent-%COMP%]{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.m-5[_ngcontent-%COMP%]{margin:3rem!important}.mt-5[_ngcontent-%COMP%]{margin-top:3rem!important}.mb-5[_ngcontent-%COMP%]{margin-bottom:3rem!important}.ms-5[_ngcontent-%COMP%]{margin-left:3rem!important}.me-5[_ngcontent-%COMP%]{margin-right:3rem!important}.mx-5[_ngcontent-%COMP%]{margin-left:3rem!important;margin-right:3rem!important}.my-5[_ngcontent-%COMP%]{margin-top:3rem!important;margin-bottom:3rem!important}.p-5[_ngcontent-%COMP%]{padding:3rem!important}.pt-5[_ngcontent-%COMP%]{padding-top:3rem!important}.pb-5[_ngcontent-%COMP%]{padding-bottom:3rem!important}.ps-5[_ngcontent-%COMP%]{padding-left:3rem!important}.pe-5[_ngcontent-%COMP%]{padding-right:3rem!important}.px-5[_ngcontent-%COMP%]{padding-left:3rem!important;padding-right:3rem!important}.py-5[_ngcontent-%COMP%]{padding-top:3rem!important;padding-bottom:3rem!important}.insight-card.box[_ngcontent-%COMP%]{border:solid 1px #EEEEEE;border-radius:3px;box-shadow:1px 1px 3px #ededed;cursor:pointer}.insight-card[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:calc(var(--bs-gutter-x, 1.5rem) * .667) 0}.insight-card[_ngcontent-%COMP%] .title-row[_ngcontent-%COMP%]{display:flex}.insight-card[_ngcontent-%COMP%] .title-row[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{flex:1 1 0}.insight-card[_ngcontent-%COMP%] .title-row[_ngcontent-%COMP%] .info-icon[_ngcontent-%COMP%]{flex:0 1 0;margin-top:calc(var(--bs-gutter-x, 1.5rem) * .667)}.insight-card[_ngcontent-%COMP%] .title-row[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:1.275em}.insight-card[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{position:relative;text-align:center;padding:0 7px}.insight-card[_ngcontent-%COMP%] .score[_ngcontent-%COMP%]{display:inline-block;vertical-align:middle;float:none}.insight-card[_ngcontent-%COMP%] .score[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:34px;margin:var(--bs-gutter-x, 1.5rem) 0 calc(var(--bs-gutter-x, 1.5rem) * .667);text-align:right}.insight-card[_ngcontent-%COMP%] .score[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{font-size:80%}.insight-card[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{display:inline-block;vertical-align:middle;float:none;min-width:33%}.insight-card[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] .fa[_ngcontent-%COMP%]{border:solid .03em #EFB310;border-radius:5em;background-color:#f8c8436e;color:#efb310}.insight-card[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] .fa-power-off[_ngcontent-%COMP%]{padding:.2em .25em .15em}.insight-card[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] .fa-tachometer[_ngcontent-%COMP%], .insight-card[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] .fa-plug[_ngcontent-%COMP%]{padding:.2em .24em .3em}.insight-card.active[_ngcontent-%COMP%]{background-color:#bb8806;color:#fff}.insight-card.active[_ngcontent-%COMP%] .fa[_ngcontent-%COMP%]{color:#fff!important}.insight-card.active[_ngcontent-%COMP%]:hover{background-color:#956d05}.insight-card[_ngcontent-%COMP%]:hover{background-color:#fdeecc}"]})}}return h})()},26672(Ht,T,d){"use strict";
1Object.defineProperty(T,"__esModule",{value:!0}),T.JemsModalComponent=void 0;const S=d(31635),o=(d(6324),d(94318),d(39756),S.__importDefault(d(97586))),b=d(83352),g=S.__importStar(d(49849)),h=S.__importStar(d(6324)),D=S.__importStar(d(39756)),f=S.__importStar(d(94318)),v=S.__importStar(d(60177)),p=S.__importStar(d(7901)),J=S.__importStar(d(22850)),lt=S.__importStar(d(34664)),r=K=>["./pages/dashboard/equipment/fleet/details",K,"analytics","jemsInsights"],I=K=>({even:K}),vt=K=>["./pages/dashboard/equipment/fleet/details",K,"analytics","eventLog"];function C(K,xt){if(1&K&&g.\u0275\u0275text(0),2&K){const q=g.\u0275\u0275nextContext();g.\u0275\u0275textInterpolate1(" #",null==q.asset||null==q.asset.unit?null:q.asset.unit.externalReference," ")}}function ht(K,xt){1&K&&g.\u0275\u0275text(0," None ")}function F(K,xt){if(1&K&&(g.\u0275\u0275elementStart(0,"small",20),g.\u0275\u0275text(1),g.\u0275\u0275pipe(2,"date"),g.\u0275\u0275pipe(3,"date"),g.\u0275\u0275elementEnd()),2&K){const q=g.\u0275\u0275nextContext();g.\u0275\u0275advance(),g.\u0275\u0275textInterpolate2("Calculations for ",g.\u0275\u0275pipeBind2(2,2,q.insightsService.startDate,"MM/dd")," - ",g.\u0275\u0275pipeBind2(3,5,q.insightsService.endDate,"MM/dd"))}}function ct(K,xt){if(1&K&&(g.\u0275\u0275elementStart(0,"small",20),g.\u0275\u0275text(1),g.\u0275\u0275pipe(2,"date"),g.\u0275\u0275pipe(3,"date"),g.\u0275\u0275elementEnd()),2&K){const q=g.\u0275\u0275nextContext();g.\u0275\u0275advance(),g.\u0275\u0275textInterpolate2("Calculations for ",g.\u0275\u0275pipeBind2(2,2,q.insightsService.startDate,"MM/dd")," - ",g.\u0275\u0275pipeBind2(3,5,q.insightsService.endDate,"MM/dd"))}}function at(K,xt){if(1&K&&g.\u0275\u0275text(0),2&K){const q=g.\u0275\u0275nextContext();g.\u0275\u0275textInterpolate1(" ",null==q.asset?null:q.asset.utilization,"% ")}}function rt(K,xt){1&K&&g.\u0275\u0275text(0," -- ")}function X(K,xt){if(1&K&&g.\u0275\u0275text(0),2&K){const q=g.\u0275\u0275nextContext();g.\u0275\u0275textInterpolate1(" ",null==q.asset?null:q.asset.idle,"% ")}}function gt(K,xt){1&K&&g.\u0275\u0275text(0," -- ")}function mt(K,xt){if(1&K&&g.\u0275\u0275text(0),2&K){const q=g.\u0275\u0275nextContext();g.\u0275\u0275textInterpolate1(" ",null==q.asset?null:q.asset.plugIn,"% ")}}function St(K,xt){1&K&&g.\u0275\u0275text(0," -- ")}function ft(K,xt){if(1&K&&g.\u0275\u0275text(0),2&K){const q=g.\u0275\u0275nextContext();g.\u0275\u0275textInterpolate1(" ",null==q.asset?null:q.asset.utilization,"% ")}}function ot(K,xt){1&K&&g.\u0275\u0275text(0," -- ")}function B(K,xt){if(1&K&&g.\u0275\u0275text(0),2&K){const q=g.\u0275\u0275nextContext();g.\u0275\u0275textInterpolate1(" ",null==q.asset?null:q.asset.idle,"% ")}}function Ot(K,xt){1&K&&g.\u0275\u0275text(0," -- ")}function $(K,xt){if(1&K&&g.\u0275\u0275text(0),2&K){const q=g.\u0275\u0275nextContext();g.\u0275\u0275textInterpolate1(" ",null==q.asset?null:q.asset.plugIn,"% ")}}function j(K,xt){1&K&&g.\u0275\u0275text(0," -- ")}function G(K,xt){if(1&K&&(g.\u0275\u0275elementStart(0,"li")(1,"strong"),g.\u0275\u0275text(2,"Potential Impact"),g.\u0275\u0275elementEnd(),g.\u0275\u0275text(3),g.\u0275\u0275elementEnd()),2&K){const q=g.\u0275\u0275nextContext().$implicit;g.\u0275\u0275advance(3),g.\u0275\u0275textInterpolate1(" ",q.impactSymptoms)}}function k(K,xt){if(1&K&&(g.\u0275\u0275elementStart(0,"li",30)(1,"strong"),g.\u0275\u0275text(2,"Potential Cause"),g.\u0275\u0275elementEnd(),g.\u0275\u0275text(3),g.\u0275\u0275elementEnd()),2&K){const q=g.\u0275\u0275nextContext().$implicit;g.\u0275\u0275advance(3),g.\u0275\u0275textInterpolate1(" ",q.possibleCause)}}function R(K,xt){if(1&K&&(g.\u0275\u0275elementStart(0,"li",30)(1,"strong"),g.\u0275\u0275text(2,"Recommendation"),g.\u0275\u0275elementEnd(),g.\u0275\u0275text(3),g.\u0275\u0275elementEnd()),2&K){const q=g.\u0275\u0275nextContext().$implicit;g.\u0275\u0275advance(3),g.\u0275\u0275textInterpolate1(" ",q.recommendedAction)}}function U(K,xt){if(1&K&&(g.\u0275\u0275elementStart(0,"div",27)(1,"div",22)(2,"span",28),g.\u0275\u0275text(3,"Type: "),g.\u0275\u0275elementEnd(),g.\u0275\u0275text(4),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(5,"div",23)(6,"span",28),g.\u0275\u0275text(7,"Name: "),g.\u0275\u0275elementEnd(),g.\u0275\u0275text(8),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(9,"div",24)(10,"span",28),g.\u0275\u0275text(11,"Severity: "),g.\u0275\u0275elementEnd(),g.\u0275\u0275text(12),g.\u0275\u0275pipe(13,"titlecase"),g.\u0275\u0275element(14,"i",29),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(15,"div",25)(16,"span",28),g.\u0275\u0275text(17,"Date/Time: "),g.\u0275\u0275elementEnd(),g.\u0275\u0275text(18),g.\u0275\u0275pipe(19,"date"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(20,"div",26)(21,"span",28),g.\u0275\u0275text(22,"Additional Information: "),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(23,"ul"),g.\u0275\u0275conditionalCreate(24,G,4,1,"li"),g.\u0275\u0275conditionalCreate(25,k,4,1,"li",30),g.\u0275\u0275conditionalCreate(26,R,4,1,"li",30),g.\u0275\u0275elementEnd()()()),2&K){const q=xt.$implicit,Tt=xt.$index,_t=g.\u0275\u0275nextContext(2);g.\u0275\u0275property("ngClass",g.\u0275\u0275pureFunction1(22,I,Tt%2==0)),g.\u0275\u0275advance(4),g.\u0275\u0275textInterpolate(q.type),g.\u0275\u0275advance(4),g.\u0275\u0275textInterpolate(q.name),g.\u0275\u0275advance(4),g.\u0275\u0275textInterpolate1("",g.\u0275\u0275pipeBind1(13,17,q.severity)," "),g.\u0275\u0275advance(2),g.\u0275\u0275classProp("info","Info"===q.severity)("low","Low"===q.severity)("med","Medium"===q.severity)("high","High"===q.severity),g.\u0275\u0275advance(4),g.\u0275\u0275textInterpolate2("",g.\u0275\u0275pipeBind2(19,19,q.time,"medium")," ",_t.timeZoneAbbreviation),g.\u0275\u0275advance(6),g.\u0275\u0275conditional(q.impactSymptoms?24:-1),g.\u0275\u0275advance(),g.\u0275\u0275conditional(q.possibleCause?25:-1),g.\u0275\u0275advance(),g.\u0275\u0275conditional(q.recommendedAction?26:-1)}}function st(K,xt){if(1&K&&(g.\u0275\u0275elementStart(0,"div",2)(1,"div",21)(2,"div",22),g.\u0275\u0275text(3,"Type"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(4,"div",23),g.\u0275\u0275text(5,"Name"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(6,"div",24),g.\u0275\u0275text(7,"Severity"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(8,"div",25),g.\u0275\u0275text(9,"Date/Time"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(10,"div",26),g.\u0275\u0275text(11,"Additional Information"),g.\u0275\u0275elementEnd()(),g.\u0275\u0275repeaterCreate(12,U,27,24,"div",27,g.\u0275\u0275repeaterTrackByIdentity),g.\u0275\u0275elementEnd()),2&K){const q=g.\u0275\u0275nextContext();g.\u0275\u0275advance(12),g.\u0275\u0275repeater(q.correctiveActions)}}function Dt(K,xt){1&K&&(g.\u0275\u0275elementStart(0,"div",19)(1,"i"),g.\u0275\u0275text(2,"No Corrective Actions"),g.\u0275\u0275elementEnd()())}function Jt(K,xt){1&K&&(g.\u0275\u0275elementStart(0,"div",19)(1,"i"),g.\u0275\u0275text(2,"Loading Corrective Actions"),g.\u0275\u0275elementEnd()())}function bt(K,xt){if(1&K){const q=g.\u0275\u0275getCurrentView();g.\u0275\u0275elementStart(0,"div",2)(1,"a",5),g.\u0275\u0275listener("click",function(){g.\u0275\u0275restoreView(q);const _t=g.\u0275\u0275nextContext();
1return g.\u0275\u0275resetView(_t.onClose())}),g.\u0275\u0275text(2,"See More Corrective Actions"),g.\u0275\u0275elementEnd()()}if(2&K){const q=g.\u0275\u0275nextContext();g.\u0275\u0275advance(),g.\u0275\u0275property("routerLink",g.\u0275\u0275pureFunction1(1,vt,null==q.asset||null==q.asset.unit?null:q.asset.unit.instanceId))}}T.JemsModalComponent=(()=>{class K{constructor(q,Tt,_t){this.activeModal=q,this.insightsService=Tt,this.telematicsService=_t,this.correctiveActions=[],this.tabletBreakpoint=b.GlobalConstants.TABLET_SIZE_BREAKPOINT}ngOnInit(){this.loading=!0;const q=new Date,Tt=new Date,_t=new Date(Tt.setFullYear(Tt.getFullYear()-1)),dt=o.default.tz.guess();this.timeZoneOffset=q.getTimezoneOffset(),this.timeZoneAbbreviation=o.default.tz.zone(dt).abbr(this.timeZoneOffset),this.telematicsService.getEvents("jems",_t,q,"","",0,void 0,[this.asset.unit.instanceId]).subscribe(Mt=>{Mt.results.forEach(y=>{this.correctiveActions.push({type:"Event",name:y.eventType?y.eventType:"Other",severity:"informational"===y.ruleSeverity.toLowerCase()?"Info":"1"===y.ruleSeverity||"high"===y.ruleSeverity.toLowerCase()?"High":"2"===y.ruleSeverity||"medium"===y.ruleSeverity.toLowerCase()?"Medium":"Low",time:new Date(y.startTimestamp),possibleCause:y.rulePotentialCause,recommendedAction:y.ruleRecommendedAction})}),this.asset.activeDTCs?.forEach(y=>{let x="1"===y.severity||"high"===y.severity.toLowerCase()?"High":"2"===y.severity||"medium"===y.severity.toLowerCase()?"Medium":"Low";this.correctiveActions.push({type:"Active DTC",name:y.codeName,severity:x,time:y.transitionTime,impactSymptoms:y.impactSymptoms,possibleCause:y.possibleCause,recommendedAction:y.recommendedAction})}),this.correctiveActions.sort((y,x)=>new Date(x.time).getTime()-new Date(y.time).getTime()),this.loading=!1,this.correctiveActions.length>10&&(this.correctiveActions.splice(10),this.showMore=!0)})}onClose(){this.activeModal.close()}static{this.\u0275fac=function(Tt){return new(Tt||K)(g.\u0275\u0275directiveInject(h.NgbActiveModal),g.\u0275\u0275directiveInject(D.InsightsService),g.\u0275\u0275directiveInject(f.TelematicsDataService))}}static{this.\u0275cmp=g.\u0275\u0275defineComponent({type:K,selectors:[["altec-connect-jems-modal"]],inputs:{asset:"asset"},standalone:!1,decls:66,vars:27,consts:[[1,"row","mx-0","d-flex","jems-modal-wrap"],[1,"fa","fa-times","close-icon",3,"click"],[1,"col-12"],[1,"modal-title"],["tooltipPlacement","bottom",3,"asset"],[1,"unit-detail-link",3,"click","routerLink"],[3,"isMobileView","breakPoint"],[1,"col-12","stats-col"],[1,"row","mx-0","d-none","justify-content-center","d-md-flex"],[1,"col-auto","jems-icon-class"],["src","/static/angular-resources/jems/JobsiteUtilizationIcon.svg"],[1,"unit-stat-title"],[1,"unit-stat"],["src","/static/angular-resources/jems/JobsiteIdleIcon.svg"],["src","/static/angular-resources/jems/PlugInChargingIcon.svg"],[1,"row","mx-0","d-flex","justify-content-center","d-md-none"],[1,"col-auto"],[1,"w-100"],[1,"col-12","mt-5"],[1,"col-12","mt-4","text-center"],[1,"float-start"],[1,"row","d-flex","mx-0","header-wrap"],[1,"col-auto","custom-col-1"],[1,"col-auto","custom-col-2"],[1,"col-auto","custom-col-3"],[1,"col-auto","custom-col-4"],[1,"col-auto","custom-col-5"],[1,"row","d-flex","mx-0","row-wrap",3,"ngClass"],[1,"mobile-header"],[1,"fa","fa-exclamation-triangle"],[1,"pt-2"]],template:function(Tt,_t){1&Tt&&(g.\u0275\u0275elementStart(0,"div",0)(1,"span",1),g.\u0275\u0275listener("click",function(){return _t.onClose()}),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(2,"div",2)(3,"span",3),g.\u0275\u0275text(4),g.\u0275\u0275conditionalCreate(5,C,1,1),g.\u0275\u0275conditionalCreate(6,ht,1,0),g.\u0275\u0275elementEnd(),g.\u0275\u0275element(7,"altec-connect-firmware-update-indicator",4),g.\u0275\u0275elementStart(8,"a",5),g.\u0275\u0275listener("click",function(){return _t.onClose()}),g.\u0275\u0275text(9,"View Unit Details Page"),g.\u0275\u0275elementEnd()(),g.\u0275\u0275elementStart(10,"div",2),g.\u0275\u0275template(11,F,4,8,"ng-template",6)(12,ct,4,8,"ng-template",6),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(13,"div",7)(14,"div",8)(15,"div",9),g.\u0275\u0275element(16,"img",10),g.\u0275\u0275elementStart(17,"span",11),g.\u0275\u0275text(18,"Jobsite Utilization"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(19,"span",12),g.\u0275\u0275conditionalCreate(20,at,1,1),g.\u0275\u0275conditionalCreate(21,rt,1,0),g.\u0275\u0275elementEnd()(),g.\u0275\u0275elementStart(22,"div",9),g.\u0275\u0275element(23,"img",13),g.\u0275\u0275elementStart(24,"span",11),g.\u0275\u0275text(25,"Jobsite Idle"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(26,"span",12),g.\u0275\u0275conditionalCreate(27,X,1,1),g.\u0275\u0275conditionalCreate(28,gt,1,0),g.\u0275\u0275elementEnd()(),g.\u0275\u0275elementStart(29,"div",9),g.\u0275\u0275element(30,"img",14),g.\u0275\u0275elementStart(31,"span",11),g.\u0275\u0275text(32,"Plug-In Charging"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(33,"span",12),g.\u0275\u0275conditionalCreate(34,mt,1,1
1),g.\u0275\u0275conditionalCreate(35,St,1,0),g.\u0275\u0275elementEnd()()(),g.\u0275\u0275elementStart(36,"div",15)(37,"div",16),g.\u0275\u0275element(38,"img",10),g.\u0275\u0275elementStart(39,"span",11),g.\u0275\u0275text(40,"Jobsite Utilization"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(41,"span",12),g.\u0275\u0275conditionalCreate(42,ft,1,1),g.\u0275\u0275conditionalCreate(43,ot,1,0),g.\u0275\u0275elementEnd(),g.\u0275\u0275element(44,"div",17)(45,"img",13),g.\u0275\u0275elementStart(46,"span",11),g.\u0275\u0275text(47,"Jobsite Idle"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(48,"span",12),g.\u0275\u0275conditionalCreate(49,B,1,1),g.\u0275\u0275conditionalCreate(50,Ot,1,0),g.\u0275\u0275elementEnd(),g.\u0275\u0275element(51,"div",17)(52,"img",14),g.\u0275\u0275elementStart(53,"span",11),g.\u0275\u0275text(54,"Plug-In Charging"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(55,"span",12),g.\u0275\u0275conditionalCreate(56,$,1,1),g.\u0275\u0275conditionalCreate(57,j,1,0),g.\u0275\u0275elementEnd(),g.\u0275\u0275element(58,"div",17),g.\u0275\u0275elementEnd()()(),g.\u0275\u0275elementStart(59,"div",18)(60,"span",3),g.\u0275\u0275text(61," Latest JEMS Corrective Actions "),g.\u0275\u0275elementEnd()(),g.\u0275\u0275conditionalCreate(62,st,14,0,"div",2),g.\u0275\u0275conditionalCreate(63,Dt,3,0,"div",19),g.\u0275\u0275conditionalCreate(64,Jt,3,0,"div",19),g.\u0275\u0275conditionalCreate(65,bt,3,3,"div",2),g.\u0275\u0275elementEnd()),2&Tt&&(g.\u0275\u0275advance(4),g.\u0275\u0275textInterpolate1("Model ",null==_t.asset||null==_t.asset.unit?null:_t.asset.unit.model,", "),g.\u0275\u0275advance(),g.\u0275\u0275conditional(null!=_t.asset&&null!=_t.asset.unit&&_t.asset.unit.externalReference?5:-1),g.\u0275\u0275advance(),g.\u0275\u0275conditional(null!=_t.asset&&null!=_t.asset.unit&&_t.asset.unit.externalReference?-1:6),g.\u0275\u0275advance(),g.\u0275\u0275property("asset",_t.asset),g.\u0275\u0275advance(),g.\u0275\u0275property("routerLink",g.\u0275\u0275pureFunction1(25,r,null==_t.asset||null==_t.asset.unit?null:_t.asset.unit.instanceId)),g.\u0275\u0275advance(3),g.\u0275\u0275property("isMobileView",!0)("breakPoint",_t.tabletBreakpoint),g.\u0275\u0275advance(),g.\u0275\u0275property("isMobileView",!1)("breakPoint",_t.tabletBreakpoint),g.\u0275\u0275advance(8),g.\u0275\u0275conditional(null!=_t.asset&&_t.asset.utilization||0===(null==_t.asset?null:_t.asset.utilization)?20:-1),g.\u0275\u0275advance(),g.\u0275\u0275conditional(null!=_t.asset&&_t.asset.utilization||0===(null==_t.asset?null:_t.asset.utilization)?-1:21),g.\u0275\u0275advance(6),g.\u0275\u0275conditional(null!=_t.asset&&_t.asset.idle||0===(null==_t.asset?null:_t.asset.idle)?27:-1),g.\u0275\u0275advance(),g.\u0275\u0275conditional(null!=_t.asset&&_t.asset.idle||0===(null==_t.asset?null:_t.asset.idle)?-1:28),g.\u0275\u0275advance(6),g.\u0275\u0275conditional(null!=_t.asset&&_t.asset.plugIn||0===(null==_t.asset?null:_t.asset.plugIn)?34:-1),g.\u0275\u0275advance(),g.\u0275\u0275conditional(null!=_t.asset&&_t.asset.plugIn||0===(null==_t.asset?null:_t.asset.plugIn)?-1:35),g.\u0275\u0275advance(7),g.\u0275\u0275conditional(null!=_t.asset&&_t.asset.utilization||0===(null==_t.asset?null:_t.asset.utilization)?42:-1),g.\u0275\u0275advance(),g.\u0275\u0275conditional(null!=_t.asset&&_t.asset.utilization||0===(null==_t.asset?null:_t.asset.utilization)?-1:43),g.\u0275\u0275advance(6),g.\u0275\u0275conditional(null!=_t.asset&&_t.asset.idle||0===(null==_t.asset?null:_t.asset.idle)?49:-1),g.\u0275\u0275advance(),g.\u0275\u0275conditional(null!=_t.asset&&_t.asset.idle||0===(null==_t.asset?null:_t.asset.idle)?-1:50),g.\u0275\u0275advance(6),g.\u0275\u0275conditional(null!=_t.asset&&_t.asset.plugIn||0===(null==_t.asset?null:_t.asset.plugIn)?56:-1),g.\u0275\u0275advance(),g.\u0275\u0275conditional(null!=_t.asset&&_t.asset.plugIn||0===(null==_t.asset?null:_t.asset.plugIn)?-1:57),g.\u0275\u0275advance(5),g.\u0275\u0275conditional(_t.correctiveActions.length>0?62:-1),g.\u0275\u0275advance(),g.\u0275\u0275conditional(_t.loading||0!=_t.correctiveActions.length?-1:63),g.\u0275\u0275advance(),g.\u0275\u0275conditional(_t.loading?64:-1),g.\u0275\u0275advance(),g.\u0275\u0275conditional(_t.showMore?65:-1))},dependencies:[v.NgClass,p.RouterLink,J.SelectiveView,lt.FirmwareUpdateIndicatorComponent,v.TitleCasePipe,v.DatePipe],styles:["[_ngcontent-%COMP%]:root{--bs-gutter-x: 1.5rem;--bs-gutter-y: 1.5rem}.d-flex[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{float:none}.col[_ngcontent-%COMP%]{flex:1 0 0;padding-left:var(--bs-gutter-x, 1.5rem);padding-right:var(--bs-gutter-x, 1.5rem)}@media only screen and (min-width:576px){.col-sm-auto[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;max-width:none}}@media only screen and (min-width:768px){.col-md-auto[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;max-width:none}}.col-auto[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;max-width:100%;padding-left:var(--bs-gutter-x, 1.5rem);padding-right:var(--bs-gutter-x, 1.5rem)}.justify-content-center[_ngcontent-%COMP%]{justify-content:center}.justify-content-end[_ngcontent-%COMP%]{justify-content:end}.align-items-center[_ngcontent-%COMP%]{align-items:center}.align-items-end[_ngcontent-%COMP%]{align-items:end}.flex-column-reverse[_ngcontent-%COMP%]{flex-direction:column-reverse}.d-flex[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}@media only screen and (min-width:768px){.d-md-block[_ngcontent-%COMP%]{display:block}}@media only screen and (min-width:768px){.d-md-none[_ngcontent-%COMP%]{display:none}}@media only screen and (min-width:768px){.d-md-flex[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}}@media only screen and (min-width:992px){.d-lg-none[_ngcontent-%COMP%]{display:none!important}}@media only screen and (min-width:992px){.d-lg-block[_ngcontent-%COMP%]{display:block!important}}.w-100[_ngcontent-%COMP%]{width:100%!important}.h-100[_ngcontent-%COMP%]{height:100%!important}.px-3[_ngcontent-%COMP%]{padding-left:15px!important;padding-right:15px!important}.pr-0[_ngcontent-%COMP%]{padding-right:0!important}.pl-0[_ngcontent-%COMP%]{padding-left:0!important}.pt-3[_ngcontent-%COMP%]{padding-top:1rem}.pb-3[_ngcontent-%COMP%]{padding-bottom:1rem}.mb-3[_ngcontent-%COMP%]{margin-bottom:1rem}.pb-2[_ngcontent-%COMP%]{padding-bottom:.5rem}@media print{.no-print[_ngcontent-%COMP%]{display:none!important}}.m-0[_ngcontent-%COMP%]{margin:0!important}.mt-0[_ngcontent-%COMP%]{margin-top:0!important}.mb-0[_ngcontent-%COMP%]{margin-bottom:0!important}.ms-0[_ngcontent-%COMP%]{margin-left:0!important}.me-0[_ngcontent-%COMP%]{margin-right:0!important}.mx-0[_ngcontent-%COMP%]{margin-left:0!important;margin-right:0!important}.my-0[_ngcontent-%COMP%]{margin-top:0!important;margin-bottom:0!important}.p-0[_ngcontent-%COMP%]{padding:0!important}.pt-0[_ngcontent-%COMP%]{padding-top:0!important}.pb-0[_ngcontent-%COMP%]{padding-bottom:0!important}.ps-0[_ngcontent-%COMP%]{padding-left:0!important}.pe-0[_ngcontent-%COMP%]{padding-right:0!important}.px-0[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.py-0[_ngcontent-%COMP%]{padding-top:0!important;padding-bottom:0!important}.m-1[_ngcontent-%COMP%]{margin:.25rem!important}.mt-1[_ngcontent-%COMP%]{margin-top:.25rem!important}.mb-1[_ngcontent-%COMP%]{margin-bottom:.25rem!important}.ms-1[_ngcontent-%COMP%]{margin-left:.25rem!important}.me-1[_ngcontent-%COMP%]{margin-right:.25rem!important}.mx-1[_ngcontent-%COMP%]{margin-left:.25rem!important;margin-right:.25rem!important}.my-1[_ngcontent-%COMP%]{margin-top:.25rem!important;margin-bottom:.25rem!important}.p-1[_ngcontent-%COMP%]{padding:.25rem!important}.pt-1[_ngcontent-%COMP%]{padding-top:.25rem!important}.pb-1[_ngcontent-%COMP%]{padding-bottom:.25rem!important}.ps-1[_ngcontent-%COMP%]{padding-left:.25rem!important}.pe-1[_ngcontent-%COMP%]{padding-right:.25rem!important}.px-1[_ngcontent-%COMP%]{padding-left:.25rem!important;padding-right:.25rem!important}.py-1[_ngcontent-%COMP%]{padding-top:.25rem!important;padding-bottom:.25rem!important}.m-2[_ngcontent-%COMP%]{margin:.5rem!important}.mt-2[_ngcontent-%COMP%]{margin-top:.5rem!important}.mb-2[_ngcontent-%COMP%]{margin-bottom:.5rem!important}.ms-2[_ngcontent-%COMP%]{margin-left:.5rem!important}.me-2[_ngcontent-%COMP%]{margin-right:.5rem!important}.mx-2[_ngcontent-%COMP%]{margin-left:.5rem!important;margin-right:.5rem!important}.my-2[_ngcontent-%COMP%]{margin-top:.5rem!important;margin-bottom:.5rem!important}.p-2[_ngcontent-%COMP%]{padding:.5rem!important}.pt-2[_ngcontent-%COMP%]{padding-top:.5rem!important}.pb-2[_ngcontent-%COMP%]{padding-bottom:.5rem!important}.ps-2[_ngcontent-%COMP%]{padding-left:.5rem!important}
1.pe-2[_ngcontent-%COMP%]{padding-right:.5rem!important}.px-2[_ngcontent-%COMP%]{padding-left:.5rem!important;padding-right:.5rem!important}.py-2[_ngcontent-%COMP%]{padding-top:.5rem!important;padding-bottom:.5rem!important}.m-3[_ngcontent-%COMP%]{margin:1rem!important}.mt-3[_ngcontent-%COMP%]{margin-top:1rem!important}.mb-3[_ngcontent-%COMP%]{margin-bottom:1rem!important}.ms-3[_ngcontent-%COMP%]{margin-left:1rem!important}.me-3[_ngcontent-%COMP%]{margin-right:1rem!important}.mx-3[_ngcontent-%COMP%]{margin-left:1rem!important;margin-right:1rem!important}.my-3[_ngcontent-%COMP%]{margin-top:1rem!important;margin-bottom:1rem!important}.p-3[_ngcontent-%COMP%]{padding:1rem!important}.pt-3[_ngcontent-%COMP%]{padding-top:1rem!important}.pb-3[_ngcontent-%COMP%]{padding-bottom:1rem!important}.ps-3[_ngcontent-%COMP%]{padding-left:1rem!important}.pe-3[_ngcontent-%COMP%]{padding-right:1rem!important}.px-3[_ngcontent-%COMP%]{padding-left:1rem!important;padding-right:1rem!important}.py-3[_ngcontent-%COMP%]{padding-top:1rem!important;padding-bottom:1rem!important}.m-4[_ngcontent-%COMP%]{margin:1.5rem!important}.mt-4[_ngcontent-%COMP%]{margin-top:1.5rem!important}.mb-4[_ngcontent-%COMP%]{margin-bottom:1.5rem!important}.ms-4[_ngcontent-%COMP%]{margin-left:1.5rem!important}.me-4[_ngcontent-%COMP%]{margin-right:1.5rem!important}.mx-4[_ngcontent-%COMP%]{margin-left:1.5rem!important;margin-right:1.5rem!important}.my-4[_ngcontent-%COMP%]{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.p-4[_ngcontent-%COMP%]{padding:1.5rem!important}.pt-4[_ngcontent-%COMP%]{padding-top:1.5rem!important}.pb-4[_ngcontent-%COMP%]{padding-bottom:1.5rem!important}.ps-4[_ngcontent-%COMP%]{padding-left:1.5rem!important}.pe-4[_ngcontent-%COMP%]{padding-right:1.5rem!important}.px-4[_ngcontent-%COMP%]{padding-left:1.5rem!important;padding-right:1.5rem!important}.py-4[_ngcontent-%COMP%]{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.m-5[_ngcontent-%COMP%]{margin:3rem!important}.mt-5[_ngcontent-%COMP%]{margin-top:3rem!important}.mb-5[_ngcontent-%COMP%]{margin-bottom:3rem!important}.ms-5[_ngcontent-%COMP%]{margin-left:3rem!important}.me-5[_ngcontent-%COMP%]{margin-right:3rem!important}.mx-5[_ngcontent-%COMP%]{margin-left:3rem!important;margin-right:3rem!important}.my-5[_ngcontent-%COMP%]{margin-top:3rem!important;margin-bottom:3rem!important}.p-5[_ngcontent-%COMP%]{padding:3rem!important}.pt-5[_ngcontent-%COMP%]{padding-top:3rem!important}.pb-5[_ngcontent-%COMP%]{padding-bottom:3rem!important}.ps-5[_ngcontent-%COMP%]{padding-left:3rem!important}.pe-5[_ngcontent-%COMP%]{padding-right:3rem!important}.px-5[_ngcontent-%COMP%]{padding-left:3rem!important;padding-right:3rem!important}.py-5[_ngcontent-%COMP%]{padding-top:3rem!important;padding-bottom:3rem!important}.jems-modal-wrap[_ngcontent-%COMP%]{padding:2rem}@media(min-width:768px){.jems-modal-wrap[_ngcontent-%COMP%]{padding:4rem 7rem 7rem 5rem}}.jems-modal-wrap[_ngcontent-%COMP%]{position:relative}.jems-modal-wrap[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%]{font-size:1.25rem;display:inline-block;width:100%}@media(min-width:768px){.jems-modal-wrap[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%]{width:auto}}.jems-modal-wrap[_ngcontent-%COMP%] .unit-detail-link[_ngcontent-%COMP%]{padding-left:.5rem;text-decoration:none}.jems-modal-wrap[_ngcontent-%COMP%] .unit-detail-link[_ngcontent-%COMP%]:active, .jems-modal-wrap[_ngcontent-%COMP%] .unit-detail-link[_ngcontent-%COMP%]:focus{outline:none;text-decoration:none}.jems-modal-wrap[_ngcontent-%COMP%] .unit-detail-link[_ngcontent-%COMP%]:hover{text-decoration:underline;cursor:pointer}.jems-modal-wrap[_ngcontent-%COMP%] .stats-col[_ngcontent-%COMP%]{padding-top:3rem}.jems-modal-wrap[_ngcontent-%COMP%] .stats-col[_ngcontent-%COMP%] .unit-stat-title[_ngcontent-%COMP%]{font-weight:600;padding-right:1.5rem;padding-left:1.25rem}.jems-modal-wrap[_ngcontent-%COMP%] .stats-col[_ngcontent-%COMP%] .unit-stat-title[_ngcontent-%COMP%], .jems-modal-wrap[_ngcontent-%COMP%] .stats-col[_ngcontent-%COMP%] .unit-stat[_ngcontent-%COMP%]{font-size:.9375rem}.jems-modal-wrap[_ngcontent-%COMP%] .close-icon[_ngcontent-%COMP%]{position:absolute;top:1rem;right:2rem;font-size:1.25rem;padding:1rem;z-index:2}.jems-modal-wrap[_ngcontent-%COMP%] .close-icon[_ngcontent-%COMP%]:hover{cursor:pointer}.jems-modal-wrap[_ngcontent-%COMP%] .header-wrap[_ngcontent-%COMP%]{font-size:.8125rem;font-weight:700;border-bottom:1px solid;margin-bottom:4px;padding:11px 11px 0 calc(var(--bs-gutter-x, 1.5rem) * .733)}@media only screen and (max-width:991px){.jems-modal-wrap[_ngcontent-%COMP%] .header-wrap[_ngcontent-%COMP%]{font-size:.75rem}}@media only screen and (max-width:768px){.jems-modal-wrap[_ngcontent-%COMP%] .header-wrap[_ngcontent-%COMP%]{display:none!important}}.jems-modal-wrap[_ngcontent-%COMP%] .row-wrap[_ngcontent-%COMP%]{font-size:.8125rem;padding:calc(var(--bs-gutter-x, 1.5rem) * .733)}.jems-modal-wrap[_ngcontent-%COMP%] .row-wrap.even[_ngcontent-%COMP%]{background-color:#f9f9f9}@media only screen and (max-width:768px){.jems-modal-wrap[_ngcontent-%COMP%] .row-wrap[_ngcontent-%COMP%]{padding-bottom:8px;text-align:left}}.jems-modal-wrap[_ngcontent-%COMP%] .row-wrap[_ngcontent-%COMP%] .mobile-header[_ngcontent-%COMP%]{width:100%;font-weight:700}@media only screen and (min-width:768px){.jems-modal-wrap[_ngcontent-%COMP%] .row-wrap[_ngcontent-%COMP%] .mobile-header[_ngcontent-%COMP%]{display:none}}.jems-modal-wrap[_ngcontent-%COMP%] .custom-col-1[_ngcontent-%COMP%]{width:15%;padding:0}@media only screen and (max-width:768px){.jems-modal-wrap[_ngcontent-%COMP%] .custom-col-1[_ngcontent-%COMP%]{width:100%;padding-bottom:4px}}.jems-modal-wrap[_ngcontent-%COMP%] .custom-col-2[_ngcontent-%COMP%]{width:25%;padding:0}@media only screen and (max-width:991px)and (min-width:769px){.jems-modal-wrap[_ngcontent-%COMP%] .custom-col-2[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:.6875rem}}@media only screen and (max-width:768px){.jems-modal-wrap[_ngcontent-%COMP%] .custom-col-2[_ngcontent-%COMP%]{width:100%;padding-bottom:4px}}.jems-modal-wrap[_ngcontent-%COMP%] .custom-col-3[_ngcontent-%COMP%]{width:15%;padding:0}@media only screen and (max-width:991px)and (min-width:769px){.jems-modal-wrap[_ngcontent-%COMP%] .custom-col-3[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:.6875rem}}@media only screen and (max-width:768px){.jems-modal-wrap[_ngcontent-%COMP%] .custom-col-3[_ngcontent-%COMP%]{width:100%;padding-bottom:4px}}.jems-modal-wrap[_ngcontent-%COMP%] .custom-col-4[_ngcontent-%COMP%]{width:20%;padding:0}@media only screen and (max-width:768px){.jems-modal-wrap[_ngcontent-%COMP%] .custom-col-4[_ngcontent-%COMP%]{width:100%;padding-bottom:4px}}.jems-modal-wrap[_ngcontent-%COMP%] .custom-col-5[_ngcontent-%COMP%]{width:25%;padding:0}@media only screen and (max-width:768px){.jems-modal-wrap[_ngcontent-%COMP%] .custom-col-5[_ngcontent-%COMP%]{width:100%;padding-bottom:4px}}.jems-modal-wrap[_ngcontent-%COMP%] .info[_ngcontent-%COMP%]{color:#0072ce}.jems-modal-wrap[_ngcontent-%COMP%] .low[_ngcontent-%COMP%]{color:#ffd100}.jems-modal-wrap[_ngcontent-%COMP%] .med[_ngcontent-%COMP%]{color:#ff8200}.jems-modal-wrap[_ngcontent-%COMP%] .high[_ngcontent-%COMP%]{color:#c8102e}.jems-modal-wrap[_ngcontent-%COMP%] .d-flex[_ngcontent-%COMP%]{align-items:center}.jems-modal-wrap[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin:5px 0}@media only screen and (max-width:991px){.jems-modal-wrap[_ngcontent-%COMP%] .jems-icon-class[_ngcontent-%COMP%]{width:290px}}.jems-modal-wrap[_ngcontent-%COMP%] altec-connect-firmware-update-indicator[_ngcontent-%COMP%]{margin-left:20px;margin-right:calc(var(--bs-gutter-x, 1.5rem) * .667)}"]})}}return K})()},87248(Ht,T,d){"use strict";
1Object.defineProperty(T,"__esModule",{value:!0}),T.PerformanceChartComponent=void 0;const S=d(31635),O=(d(70344),S.__importStar(d(49849))),u=S.__importStar(d(35235));function o(D,f){if(1&D&&(O.\u0275\u0275elementStart(0,"div",3)(1,"span"),O.\u0275\u0275element(2,"i",6),O.\u0275\u0275text(3),O.\u0275\u0275elementEnd(),O.\u0275\u0275elementStart(4,"span"),O.\u0275\u0275element(5,"i",7),O.\u0275\u0275text(6),O.\u0275\u0275elementEnd(),O.\u0275\u0275elementStart(7,"span"),O.\u0275\u0275element(8,"i",8),O.\u0275\u0275text(9),O.\u0275\u0275elementEnd()()),2&D){const v=O.\u0275\u0275nextContext();O.\u0275\u0275advance(3),O.\u0275\u0275textInterpolate1("Jobsite Anti-Idle: ",v.antiIdleTotal),O.\u0275\u0275advance(3),O.\u0275\u0275textInterpolate1("Jobsite Idle: ",v.idleTotal),O.\u0275\u0275advance(3),O.\u0275\u0275textInterpolate1("Jobsite Charging: ",v.chargingHrTotal)}}function b(D,f){if(1&D&&(O.\u0275\u0275elementStart(0,"div",3)(1,"span"),O.\u0275\u0275element(2,"i",7),O.\u0275\u0275text(3),O.\u0275\u0275elementEnd()()),2&D){const v=O.\u0275\u0275nextContext();O.\u0275\u0275advance(3),O.\u0275\u0275textInterpolate1("Jobsite Idle: ",v.idleTotal)}}function g(D,f){if(1&D&&(O.\u0275\u0275elementStart(0,"div",3)(1,"span"),O.\u0275\u0275element(2,"i",8),O.\u0275\u0275text(3),O.\u0275\u0275elementEnd(),O.\u0275\u0275elementStart(4,"span"),O.\u0275\u0275element(5,"i",9),O.\u0275\u0275text(6),O.\u0275\u0275elementEnd()()),2&D){const v=O.\u0275\u0275nextContext();O.\u0275\u0275advance(3),O.\u0275\u0275textInterpolate1("Jobsite Charging: ",v.chargingKwTotal),O.\u0275\u0275advance(3),O.\u0275\u0275textInterpolate1("Plug-In Charging: ",v.pluginTotal)}}T.PerformanceChartComponent=(()=>{class D{constructor(){}static{this.\u0275fac=function(p){return new(p||D)}}static{this.\u0275cmp=O.\u0275\u0275defineComponent({type:D,selectors:[["altec-connect-performance-chart"]],inputs:{chart:"chart",view:"view",antiIdleTotal:"antiIdleTotal",idleTotal:"idleTotal",chargingHrTotal:"chargingHrTotal",chargingKwTotal:"chargingKwTotal",pluginTotal:"pluginTotal"},standalone:!1,decls:10,vars:7,consts:[[1,"row"],[1,"col-12"],[1,"box","chart-container"],[1,"legend"],[1,"chart"],["baseChart","",3,"datasets","labels","options","type"],[1,"fa","fa-square","anti"],[1,"fa","fa-square","idle"],[1,"fa","fa-square","charge"],[1,"fa","fa-square","plugin"]],template:function(p,J){1&p&&(O.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2)(3,"h4"),O.\u0275\u0275text(4,"Fleet Performance"),O.\u0275\u0275elementEnd(),O.\u0275\u0275conditionalCreate(5,o,10,3,"div",3),O.\u0275\u0275conditionalCreate(6,b,4,1,"div",3),O.\u0275\u0275conditionalCreate(7,g,7,2,"div",3),O.\u0275\u0275elementStart(8,"div",4),O.\u0275\u0275element(9,"canvas",5),O.\u0275\u0275elementEnd()()()()),2&p&&(O.\u0275\u0275advance(5),O.\u0275\u0275conditional("utilization"===J.view?5:-1),O.\u0275\u0275advance(),O.\u0275\u0275conditional("idle"===J.view?6:-1),O.\u0275\u0275advance(),O.\u0275\u0275conditional("plugin"===J.view?7:-1),O.\u0275\u0275advance(2),O.\u0275\u0275property("datasets",J.chart.data)("labels",J.chart.labels)("options",J.chart.options)("type",J.chart.type))},dependencies:[u.BaseChartDirective],styles:["[_ngcontent-%COMP%]:root{--bs-gutter-x: 1.5rem;--bs-gutter-y: 1.5rem}.d-flex[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{float:none}.col[_ngcontent-%COMP%]{flex:1 0 0;padding-left:var(--bs-gutter-x, 1.5rem);padding-right:var(--bs-gutter-x, 1.5rem)}@media only screen and (min-width:576px){.col-sm-auto[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;max-width:none}}@media only screen and (min-width:768px){.col-md-auto[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;max-width:none}}.col-auto[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;max-width:100%;padding-left:var(--bs-gutter-x, 1.5rem);padding-right:var(--bs-gutter-x, 1.5rem)}.justify-content-center[_ngcontent-%COMP%]{justify-content:center}.justify-content-end[_ngcontent-%COMP%]{justify-content:end}.align-items-center[_ngcontent-%COMP%]{align-items:center}.align-items-end[_ngcontent-%COMP%]{align-items:end}.flex-column-reverse[_ngcontent-%COMP%]{flex-direction:column-reverse}.d-flex[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}@media only screen and (min-width:768px){.d-md-block[_ngcontent-%COMP%]{display:block}}@media only screen and (min-width:768px){.d-md-none[_ngcontent-%COMP%]{display:none}}@media only screen and (min-width:768px){.d-md-flex[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}}@media only screen and (min-width:992px){.d-lg-none[_ngcontent-%COMP%]{display:none!important}}@media only screen and (min-width:992px){.d-lg-block[_ngcontent-%COMP%]{display:block!important}}.w-100[_ngcontent-%COMP%]{width:100%!important}.h-100[_ngcontent-%COMP%]{height:100%!important}.px-3[_ngcontent-%COMP%]{padding-left:15px!important;padding-right:15px!important}.pr-0[_ngcontent-%COMP%]{padding-right:0!important}.pl-0[_ngcontent-%COMP%]{padding-left:0!important}.pt-3[_ngcontent-%COMP%]{padding-top:1rem}.pb-3[_ngcontent-%COMP%]{padding-bottom:1rem}.mb-3[_ngcontent-%COMP%]{margin-bottom:1rem}.pb-2[_ngcontent-%COMP%]{padding-bottom:.5rem}@media print{.no-print[_ngcontent-%COMP%]{display:none!important}}.m-0[_ngcontent-%COMP%]{margin:0!important}.mt-0[_ngcontent-%COMP%]{margin-top:0!important}.mb-0[_ngcontent-%COMP%]{margin-bottom:0!important}.ms-0[_ngcontent-%COMP%]{margin-left:0!important}.me-0[_ngcontent-%COMP%]{margin-right:0!important}.mx-0[_ngcontent-%COMP%]{margin-left:0!important;margin-right:0!important}.my-0[_ngcontent-%COMP%]{margin-top:0!important;margin-bottom:0!important}.p-0[_ngcontent-%COMP%]{padding:0!important}.pt-0[_ngcontent-%COMP%]{padding-top:0!important}.pb-0[_ngcontent-%COMP%]{padding-bottom:0!important}.ps-0[_ngcontent-%COMP%]{padding-left:0!important}.pe-0[_ngcontent-%COMP%]{padding-right:0!important}.px-0[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.py-0[_ngcontent-%COMP%]{padding-top:0!important;padding-bottom:0!important}.m-1[_ngcontent-%COMP%]{margin:.25rem!important}.mt-1[_ngcontent-%COMP%]{margin-top:.25rem!important}.mb-1[_ngcontent-%COMP%]{margin-bottom:.25rem!important}.ms-1[_ngcontent-%COMP%]{margin-left:.25rem!important}.me-1[_ngcontent-%COMP%]{margin-right:.25rem!important}.mx-1[_ngcontent-%COMP%]{margin-left:.25rem!important;margin-right:.25rem!important}.my-1[_ngcontent-%COMP%]{margin-top:.25rem!important;margin-bottom:.25rem!important}.p-1[_ngcontent-%COMP%]{padding:.25rem!important}.pt-1[_ngcontent-%COMP%]{padding-top:.25rem!important}.pb-1[_ngcontent-%COMP%]{padding-bottom:.25rem!important}.ps-1[_ngcontent-%COMP%]{padding-left:.25rem!important}.pe-1[_ngcontent-%COMP%]{padding-right:.25rem!important}.px-1[_ngcontent-%COMP%]{padding-left:.25rem!important;padding-right:.25rem!important}.py-1[_ngcontent-%COMP%]{padding-top:.25rem!important;padding-bottom:.25rem!important}.m-2[_ngcontent-%COMP%]{margin:.5rem!important}.mt-2[_ngcontent-%COMP%]{margin-top:.5rem!important}.mb-2[_ngcontent-%COMP%]{margin-bottom:.5rem!important}.ms-2[_ngcontent-%COMP%]{margin-left:.5rem!important}.me-2[_ngcontent-%COMP%]{margin-right:.5rem!important}.mx-2[_ngcontent-%COMP%]{margin-left:.5rem!important;margin-right:.5rem!important}.my-2[_ngcontent-%COMP%]{margin-top:.5rem!important;margin-bottom:.5rem!important}.p-2[_ngcontent-%COMP%]{padding:.5rem!important}.pt-2[_ngcontent-%COMP%]{padding-top:.5rem!important}.pb-2[_ngcontent-%COMP%]{padding-bottom:.5rem!important}.ps-2[_ngcontent-%COMP%]{padding-left:.5rem!important}
1.pe-2[_ngcontent-%COMP%]{padding-right:.5rem!important}.px-2[_ngcontent-%COMP%]{padding-left:.5rem!important;padding-right:.5rem!important}.py-2[_ngcontent-%COMP%]{padding-top:.5rem!important;padding-bottom:.5rem!important}.m-3[_ngcontent-%COMP%]{margin:1rem!important}.mt-3[_ngcontent-%COMP%]{margin-top:1rem!important}.mb-3[_ngcontent-%COMP%]{margin-bottom:1rem!important}.ms-3[_ngcontent-%COMP%]{margin-left:1rem!important}.me-3[_ngcontent-%COMP%]{margin-right:1rem!important}.mx-3[_ngcontent-%COMP%]{margin-left:1rem!important;margin-right:1rem!important}.my-3[_ngcontent-%COMP%]{margin-top:1rem!important;margin-bottom:1rem!important}.p-3[_ngcontent-%COMP%]{padding:1rem!important}.pt-3[_ngcontent-%COMP%]{padding-top:1rem!important}.pb-3[_ngcontent-%COMP%]{padding-bottom:1rem!important}.ps-3[_ngcontent-%COMP%]{padding-left:1rem!important}.pe-3[_ngcontent-%COMP%]{padding-right:1rem!important}.px-3[_ngcontent-%COMP%]{padding-left:1rem!important;padding-right:1rem!important}.py-3[_ngcontent-%COMP%]{padding-top:1rem!important;padding-bottom:1rem!important}.m-4[_ngcontent-%COMP%]{margin:1.5rem!important}.mt-4[_ngcontent-%COMP%]{margin-top:1.5rem!important}.mb-4[_ngcontent-%COMP%]{margin-bottom:1.5rem!important}.ms-4[_ngcontent-%COMP%]{margin-left:1.5rem!important}.me-4[_ngcontent-%COMP%]{margin-right:1.5rem!important}.mx-4[_ngcontent-%COMP%]{margin-left:1.5rem!important;margin-right:1.5rem!important}.my-4[_ngcontent-%COMP%]{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.p-4[_ngcontent-%COMP%]{padding:1.5rem!important}.pt-4[_ngcontent-%COMP%]{padding-top:1.5rem!important}.pb-4[_ngcontent-%COMP%]{padding-bottom:1.5rem!important}.ps-4[_ngcontent-%COMP%]{padding-left:1.5rem!important}.pe-4[_ngcontent-%COMP%]{padding-right:1.5rem!important}.px-4[_ngcontent-%COMP%]{padding-left:1.5rem!important;padding-right:1.5rem!important}.py-4[_ngcontent-%COMP%]{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.m-5[_ngcontent-%COMP%]{margin:3rem!important}.mt-5[_ngcontent-%COMP%]{margin-top:3rem!important}.mb-5[_ngcontent-%COMP%]{margin-bottom:3rem!important}.ms-5[_ngcontent-%COMP%]{margin-left:3rem!important}.me-5[_ngcontent-%COMP%]{margin-right:3rem!important}.mx-5[_ngcontent-%COMP%]{margin-left:3rem!important;margin-right:3rem!important}.my-5[_ngcontent-%COMP%]{margin-top:3rem!important;margin-bottom:3rem!important}.p-5[_ngcontent-%COMP%]{padding:3rem!important}.pt-5[_ngcontent-%COMP%]{padding-top:3rem!important}.pb-5[_ngcontent-%COMP%]{padding-bottom:3rem!important}.ps-5[_ngcontent-%COMP%]{padding-left:3rem!important}.pe-5[_ngcontent-%COMP%]{padding-right:3rem!important}.px-5[_ngcontent-%COMP%]{padding-left:3rem!important;padding-right:3rem!important}.py-5[_ngcontent-%COMP%]{padding-top:3rem!important;padding-bottom:3rem!important}.box[_ngcontent-%COMP%]{border:solid 1px #EEEEEE;border-radius:3px;box-shadow:1px 1px 3px #ededed;padding:var(--bs-gutter-x, 1.5rem)}.box[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{color:#707070;margin-top:0}.box[_ngcontent-%COMP%] .legend[_ngcontent-%COMP%]{display:flex;justify-content:space-evenly}.box[_ngcontent-%COMP%] .legend[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin-right:5px}.box[_ngcontent-%COMP%] .legend[_ngcontent-%COMP%] i.anti[_ngcontent-%COMP%]{color:#2ac081}.box[_ngcontent-%COMP%] .legend[_ngcontent-%COMP%] i.idle[_ngcontent-%COMP%]{color:#c0362a}.box[_ngcontent-%COMP%] .legend[_ngcontent-%COMP%] i.charge[_ngcontent-%COMP%]{color:#2a69c0}.box[_ngcontent-%COMP%] .legend[_ngcontent-%COMP%] i.plugin[_ngcontent-%COMP%]{color:#c0812a}.box[_ngcontent-%COMP%] .chart[_ngcontent-%COMP%]{min-height:325px}"]})}}return D})()},49764(Ht,T,d){"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.JemsInsightsModule=void 0;const S=d(31635),N=d(83352),O=d(91898),u=d(35235),o=d(60177),b=d(60102),g=d(23375),h=d(72696),D=d(67936),f=d(87248),v=d(40509),p=d(40336),J=d(74782),lt=d(88588),r=d(84341),I=d(71424),vt=d(21445),C=d(43332),ht=S.__importStar(d(49849)),ct=(S.__importStar(d(60102)),S.__importStar(d(69673))),at=S.__importStar(d(40509)),rt=S.__importStar(d(43332)),X=S.__importStar(d(60177));T.JemsInsightsModule=(()=>{class mt{static{this.\u0275fac=function(ot){return new(ot||mt)}}static{this.\u0275mod=ht.\u0275\u0275defineNgModule({type:mt})}static{this.\u0275inj=ht.\u0275\u0275defineInjector({providers:[o.DatePipe],imports:[b.JoyrideModule.forRoot(),o.CommonModule,g.App
1RoutingModule,N.CommonProjModule,O.CommonPrivilegeModule,u.NgChartsModule,v.InlineDaterangeComponent,r.FormsModule,r.ReactiveFormsModule,vt.SelectiveViewModule,v.InlineDaterangeComponent,C.GlobalFilterComponent]})}}return mt})(),ht.\u0275\u0275setComponentScope(h.JemsInsightsDashboardComponent,function(){return[ct.HasAnyPrivilegesDirective,at.InlineDaterangeComponent,rt.GlobalFilterComponent,D.InsightCardComponent,f.PerformanceChartComponent,p.EmissionsAvoidanceComponent,J.AssetsNotReportingComponent,I.FuelMaintenanceAvoidanceComponent,lt.AssetTableComponent]},function(){return[X.AsyncPipe]})},72696(Ht,T,d){"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.JemsInsightsDashboardComponent=void 0;const S=d(31635),O=(d(49849),d(6324)),u=d(59091),o=d(32791),g=(d(39756),d(98259)),h=d(67936),D=d(43481),J=(d(86229),d(21916),d(97377),d(88088)),I=(d(60177),d(20851),S.__importStar(d(49849))),vt=S.__importStar(d(39756)),C=S.__importStar(d(21916)),ht=S.__importStar(d(60177)),F=S.__importStar(d(86229)),ct=S.__importStar(d(97377)),at=S.__importStar(d(20851)),rt=["rightColumn"],X=["graph"],gt=()=>["B2B_View_Parent_Holding","B2B_View_Organization_Groups"];function mt(Ot,$){1&Ot&&(I.\u0275\u0275elementContainerStart(0),I.\u0275\u0275element(1,"altcon-global-filter"),I.\u0275\u0275elementContainerEnd())}function St(Ot,$){if(1&Ot&&I.\u0275\u0275element(0,"altec-connect-performance-chart",20),2&Ot){const j=I.\u0275\u0275nextContext();I.\u0275\u0275property("antiIdleTotal",j.antiIdleTotal)("idleTotal",j.idleTotal)("chargingHrTotal",j.chargingHrTotal)("view",j.view)("chart",j.utilizationGraph)}}function ft(Ot,$){if(1&Ot&&I.\u0275\u0275element(0,"altec-connect-performance-chart",21),2&Ot){const j=I.\u0275\u0275nextContext();I.\u0275\u0275property("idleTotal",j.idleTotal)("view",j.view)("chart",j.idleGraph)}}function ot(Ot,$){if(1&Ot&&I.\u0275\u0275element(0,"altec-connect-performance-chart",22),2&Ot){const j=I.\u0275\u0275nextContext();I.\u0275\u0275property("chargingKwTotal",j.chargingKwTotal)("pluginTotal",j.pluginTotal)("view",j.view)("chart",j.pluginGraph)}}T.JemsInsightsDashboardComponent=(()=>{class Ot{constructor(j,G,k,R,U,st){this.insightsService=j,this.fleetService=G,this.datePipe=k,this.breakpointObserver=R,this.statefulService=U,this.loader=st,this.view="utilization",this.fuelSavings=0,this.gasolineGallonsSaved=0,this.gasolineSavingsDollars=0,this.dieselGallonsSaved=0,this.maintenanceSavings=0,this.dieselSavingsDollars=0,this.altecFilters=[],this.jemsFilters=[],this.allAssets=[],this.dataAssets=[],this.shownAssets=[],this.showingAll=!0,this.hideGearIcon=!1,this.assetRefinement={sort:{key:"utilization",value:"desc"},filter:void 0,search:""},this.unsubscribe$=new u.Subject,this.activeFaults=!1,this.loadingAssetsNotReporting=!1,this.calcLoadCompletionMappings={utilization:!1,idle:!1,plugIn:!1,antiIdle:!1,idleHrs:!1,plugInHrs:!1,plugInKw:!1,maintenanceSavings:!1,co2Avoidance:!1,noxAvoidance:!1},this.InsightCardConfig=h.InsightCardConfig}ngOnInit(){this.initializeDates(),this.insightsService.selectedDateRange.pipe((0,D.tap)(j=>{const G=this.insightsService.getInsightInterval();(0,o.setInterval)(G),this.utilizationGraph=(0,o.getUtilizationGraph)(j.startDate,G),this.idleGraph=(0,o.getIdleGraph)(j.startDate,G),this.pluginGraph=(0,o.getPluginGraph)(j.startDate,G)}),(0,D.switchMap)(j=>j?.startDate&&j?.endDate?this.getAssetList():(0,u.of)([])),(0,D.takeUntil)(this.unsubscribe$)).subscribe(j=>{this.allAssets=[],this.dataAssets=[],this.allAssets.push(...j.map(G=>({unit:G}))),j&&j.length>0&&(this.initData(),1===this.statefulService.getAllAccountIds().length?this.getFuelPrice():this.hideGearIcon=!0)})}ngAfterViewInit(){this.breakpointObserver.observe(["(min-width: 992px)"]).pipe((0,D.takeUntil)(this.unsubscribe$)).subscribe(j=>{this.rightColumn.nativeElement.style.height=j.breakpoints["(min-width: 992px)"]?this.graph.nativeElement.clientHeight+"px":"auto"})}initializeDates(){let j=new Date,G=j.getFullYear();this.yesterday=new Date(j.getFullYear(),j.getMonth(),j.getDate()-1),this.earliestAllowedDate=new Date(G-1,0,1),this.earliestAllowedDateParam=new O.NgbDate(this.earliestAllowedDate.getFullYear(),this.earliestAllowedDate.getMonth()+1,this.earliestAllowedDate.getDate()),this.latestAllowedDateParam=new O.NgbDate(this.yesterday.getFullYear(),this.yesterday.getMonth()+1,this.yesterday.getDate())}getFuelPrice(){return this.insightsService.getFuelPrice().subscribe(j=>{let G=[...j],k=G.findIndex(U=>"GASOLINE"===U.fuelType.toString());k>-1&&(this.gasPrice=G[k].price,this.insightsService.setGasPrice(this.gasPrice));let R=G.findIndex(U=>"DIESEL"===U.fuelType.toString());R>
1-1&&(this.dieselPrice=G[R].price,this.insightsService.setDieselPrice(this.dieselPrice))})}initData(){this.loader.start();const j=(G,k)=>(this.editUnitData(k,G.values),Math.round(G.totals.overallValue));this.getCalculationBulk(["JobsiteUtilizationPercentage","JobsiteIdlePercentage","PlugInChargingPercentage","AntiIdleHours","JobsiteIdleHours","JobsiteChargingHours"],!1).pipe((0,D.takeUntil)(this.unsubscribe$)).subscribe(G=>{this.jobsiteUtilizationPercentage$=(0,u.of)(j(G.JobsiteUtilizationPercentage,"utilization")),this.jobsiteIdlePercentage$=(0,u.of)(j(G.JobsiteIdlePercentage,"idle")),this.pluginChargingPercentage$=(0,u.of)(j(G.PlugInChargingPercentage,"plugIn"));let k=G.AntiIdleHours,R=G.JobsiteIdleHours,U=G.JobsiteChargingHours;this.antiIdleTotal=(0,g.timeStringConvert)(k?.totals?.overallValue??0),this.idleTotal=(0,g.timeStringConvert)(R?.totals?.overallValue??0),this.chargingHrTotal=(0,g.timeStringConvert)(U?.totals?.overallValue??0),this.generateGraphData(this.utilizationGraph,[k,R,U]),this.generateGraphData(this.idleGraph,[R]),this.editUnitData("antiIdle",k?.values),this.editUnitData("idleHrs",R?.values),this.editUnitData("plugInHrs",U?.values)}),this.getCalculationBulk(["FuelSavingsDollars","MaintenanceAvoidanceDollars","CO2EmissionsAvoidanceLbs","NOxEmissionsAvoidanceGrams"],!1).pipe((0,D.takeUntil)(this.unsubscribe$)).subscribe(G=>{this.fuelSavings=Math.round(G.FuelSavingsDollars.totals.overallValue),this.insightsService.setFuelSavings(this.fuelSavings),this.maintenanceSavings=Math.round(G.MaintenanceAvoidanceDollars.totals.overallValue),this.editUnitData("maintenanceSavings",G.MaintenanceAvoidanceDollars?.values);let k=G.CO2EmissionsAvoidanceLbs,R=G.NOxEmissionsAvoidanceGrams;
1this.editUnitData("co2Avoidance",k?.values),this.editUnitData("noxAvoidance",R?.values),this.co2=Math.round(k.totals.overallValue),this.nox=Math.round(R.totals.overallValue)}),this.getCalculationBulk(["JobsiteChargingKWH","PlugInChargingKWH","GasSavingsGallons","DieselSavingsGallons","GasSavingsDollars","DieselSavingsDollars"],!1).pipe((0,D.takeUntil)(this.unsubscribe$)).subscribe(G=>{let k=G.JobsiteChargingKWH,R=G.PlugInChargingKWH;this.chargingKwTotal=Math.round(10*(k.totals?.overallValue??0))/10+" kWh",this.pluginTotal=Math.round(10*(R.totals?.overallValue??0))/10+" kWh",this.generateGraphData(this.pluginGraph,[k,R]),this.editUnitData("plugInKw",R?.values),this.gasolineGallonsSaved=Math.round(G.GasSavingsGallons.totals.overallValue),this.editUnitData("gasSavingsGallons",G.GasSavingsGallons?.values),this.insightsService.setGasolineGallonsSaved(this.gasolineGallonsSaved),this.dieselGallonsSaved=Math.round(G.DieselSavingsGallons.totals.overallValue),this.editUnitData("dieselSavingsGallons",G.DieselSavingsGallons?.values),this.insightsService.setDieselGallonsSaved(this.dieselGallonsSaved),this.gasolineSavingsDollars=G.GasSavingsDollars.totals.overallValue,this.editUnitData("gasSavingsDollars",G.GasSavingsDollars?.values),this.insightsService.setGasolineDollarsSaved(this.gasolineSavingsDollars),this.dieselSavingsDollars=G.DieselSavingsDollars.totals.overallValue,this.editUnitData("dieselSavingsDollars",G.DieselSavingsDollars?.values),this.insightsService.setDieselDollarsSaved(this.dieselSavingsDollars)})}editUnitData(j,G){G.forEach(k=>{let R=this.dataAssets.find(U=>U.unit.instanceId===k.instanceId);R?R[j]="antiIdle"===j?Math.round(10*k.overallValue)/10:Math.round(k.overallValue):(R=this.allAssets.find(U=>U.unit.instanceId===k.instanceId),R&&(R[j]="antiIdle"===j?Math.round(10*k.overallValue)/10:Math.round(k.overallValue),this.dataAssets=[...this.dataAssets,R],this.shownAssets=[...this.shownAssets,R],this.shownAssets.length>30&&(this.showingAll=!1),this.modifyFilters(R)))}),this.refineAssets(),this.calcLoadCompletionMappings[j]=!0,Object.values(this.calcLoadCompletionMappings).every(k=>!0===k)&&(this.getAssetDTCsBulk(this.dataAssets),this.unitsNotReportingDataCount=this.allAssets.length-this.dataAssets.length,this.loader.stop())}resetCalcLoadCompletionMappings(){for(let j of Object.keys(this.calcLoadCompletionMappings))this.calcLoadCompletionMappings[j]=!1}modifyFilters(j){this.altecFilters.find(R=>R===j.unit.model)||(this.altecFilters.push(j.unit.model),this.altecFilters.sort()),!this.jemsFilters.find(R=>R===j.unit.jemsModel)&&j.unit.jemsModel&&(this.jemsFilters.push(j.unit.jemsModel),this.jemsFilters.sort())}showAll(){this.showingAll=!0}filterAssets(j){this.assetRefinement.filter=j,this.refineAssets()}sortAssets(j){this.assetRefinement.sort=j,this.refineAssets()}searchAssets(j){this.assetRefinement.search=j,this.refineAssets()}refineAssets(){let j=this.dataAssets;if(this.assetRefinement.sort){let G=this.assetRefinement.sort.key;j=j.sort("asc"===this.assetRefinement.sort.value?function(k,R){return(k[G]??0)-(R[G]??0)}:function(k,R){return(R[G]??0)-(k[G]??0)})}if(this.assetRefinement.filter&&(j=j.filter("altec"===this.assetRefinement.filter.key?G=>G.unit.model===this.assetRefinement.filter.value:"jems"===this.assetRefinement.filter.key?G=>G.unit.jemsModel===this.assetRefinement.filter.value:G=>G.activeDTCs&&G.activeDTCs.length>0)),""!==this.assetRefinement.search){let G=this.assetRefinement.search.toUpperCase();j=j.filter(k=>k.unit.externalReference?.toUpperCase().includes(G)||k.unit.altecChsSerial?.toUpperCase().includes(G)||k.unit.altecUnit1Serial?.toUpperCase().includes(G))}this.shownAssets=j,this.showingAll=!(this.shownAssets.length>30)}getCalculationBulk(j,G){let k=new Date(this.insightsService.endDate);return this.endDate=this.datePipe.transform(k.setDate(k.getDate()+1),"yyyy-MM-dd"),this.startDate=this.datePipe.transform(this.insightsService.startDate,"yyyy-MM-dd"),this.interval=g.InsightDate[this.insightsService.getInsightInterval()],this.insightsService.getInsightCalculationBulk({calculationNames:j,trimUnitData:!0,calculationRequest:{calculationName:"",startDate:this.startDate,endD
1ate:this.endDate,dateGroupings:[this.interval],excludeInstanceData:G}})}getAssetList(){let j=new Date(this.insightsService.endDate);return this.endDate=this.datePipe.transform(j.setDate(j.getDate()+1),"yyyy-MM-dd"),this.startDate=this.datePipe.transform(this.insightsService.startDate,"yyyy-MM-dd"),this.insightsService.getAssetList({startDate:this.startDate,endDate:this.endDate})}getAssetDTCsBulk(j){let G=j.map(k=>k.unit.instanceId);this.fleetService.findUnitDTCsBulk(G,"JEMS0").subscribe(k=>{k&&k.results&&k.results.length>0&&(this.activeFaults=!0,k.results.forEach(R=>{let U=this.dataAssets.find(st=>st.unit.instanceId===R.instanceId);U&&(U.activeDTCs||(U.activeDTCs=[]),U.activeDTCs.push({code:R.code,codeName:R.codeName,faultMatrixKey:R.faultMatrixKey,impactSymptoms:R.impactSymptoms,possibleCause:R.possibleCause,properties:R.properties,recommendedAction:R.recommendedAction,severity:R.severity,status:R.status,system:R.system,template:R.template,transitionTime:new Date(R.transitionTime)}))}))})}exportData(){this.loader.start(),this.getCalculationBulk(["PlugInChargeCount","JobsiteIdleGallons","JobsiteIdleDollars","JobsiteChargingGallons","JobsiteChargingDollars","MPTOHours","EPTOHours"],!1).pipe((0,D.takeUntil)(this.unsubscribe$)).subscribe(j=>{let G=j.PlugInChargeCount,k=j.JobsiteIdleGallons,R=j.JobsiteIdleDollars,U=j.JobsiteChargingGallons,st=j.JobsiteChargingDollars,Dt=j.MPTOHours,Jt=j.EPTOHours;this.editUnitData("plugInCount",G?.values),this.editUnitData("idleGallons",k?.values),this.editUnitData("idleDollars",R?.values),this.editUnitData("chargingGallons",U?.values),this.editUnitData("chargingDollars",st?.values),this.editUnitData("mPTOTime",Dt?.values),this.editUnitData("ePTOTime",Jt?.values),(0,J.downloadDataAsCsvFile)(this.dataAssets,this.insightsService.INSIGHTS_CSV_COLUMNS,"jems-export.csv"),this.loader.stop()})}generateGraphData(j,G){let k=new Date(this.insightsService.startDate);j.labels=[];let R,U=this.insightsService.daysDiff,st=new Date(this.insightsService.startDate),Dt=[];const Jt=this.insightsService.getInsightInterval();switch(Jt){case"WEEKLY":U=Math.ceil(U/7),st.setDate(st.getDate()-(0===st.getDay()?6:st.getDay()-1)),G.forEach(bt=>{Dt.push(bt.totals.weeklyValues)});break;case"MONTHLY":U=Math.ceil(U/30),k.setDate(1),st.setDate(1),G.forEach(bt=>{Dt.push(bt.totals.monthlyValues)});break;default:G.forEach(bt=>{Dt.push(bt.totals.dailyValues)})}Dt.forEach((bt,kt)=>{R=0;const K=Object.keys(bt).length;if(U<K&&(U=K),j.data[kt].data=new Array(U),K>0){let xt,Tt,q=new Date;for(let _t=0;_t<U;_t++){if(0===kt){k=new Date(st);let dt=(0,g.customDateFormatter)(k,_t,Jt);j.labels.push(dt),Tt=dt.split("/")}else Tt=j.labels[_t].split("/");if(R<K){"MONTHLY"!=Jt?(xt=bt[`20${Tt[2]}-${Tt[0]}-${Tt[1]}`],q=new Date(+Tt[2],parseInt(Tt[0],10)-1,+Tt[1])):(xt=bt[`20${Tt[1]}-${Tt[0]}`],q=new Date(+Tt[1],parseInt(Tt[0],10)-1));let Mt=j.labels.indexOf((0,g.customDateFormatter)(q,0,Jt),0);Mt>-1&&xt&&(j.data[kt].data[Mt]=xt,R++)}}}})}swapPerformanceChart(j){switch(this.view=j,j){case"utilization":this.assetRefinement.sort={key:"utilization",value:"desc"};break;case"idle":this.assetRefinement.sort={key:"idle",value:"asc"};break;case"plugin":this.assetRefinement.sort={key:"plugIn",value:"desc"}}this.refineAssets()}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}static{this.\u0275fac=function(G){return new(G||Ot)(I.\u0275\u0275directiveInject(vt.InsightsService),I.\u0275\u0275directiveInject(C.FleetService),I.\u0275\u0275directiveInject(ht.DatePipe),I.\u0275\u0275directiveInject(F.BreakpointObserver),I.\u0275\u0275directiveInject(ct.StatefulService),I.\u0275\u0275directiveInject(at.LoadingService))}}static{this.\u0275cmp=I.\u0275\u0275defineComponent({type:Ot,selectors:[["altec-connect-jems-insights-dashboard"]],viewQuery:function(G,k){if(1&G&&I.\u0275\u0275viewQuery(rt,5)(X,5),2&G){let R;I.\u0275\u0275queryRefresh(R=I.\u0275\u0275loadQuery())&&(k.rightColumn=R.first),I.\u0275\u0275queryRefresh(R=I.\u0275\u0275loadQuery())&&(k.graph=R.first)}},standalone:!1,decls:45,vars:50,consts:[["graph",""],["rightColumn",""],[4,"hasAnyPrivileges"],[1,"row"],[1,"col-12"],[1,"flex-row"],[1,"title"],[1,"mt-4","margin-left-auto"],[1,"datepicker",3,"dateRangeSelection","initialStartDate","initialEndDate","earliestDate","latestDate","showClearSelectionButton","maxSelectedDays"],[1,"mt-4","ms-2"],[1,"btn","btn-light","btn-sm",3,"click"],[1,"fa","fa-download"],[1,"flex-row","no-padding-flex-row"],[1,"learn-about-link","ms-2"],["href","https://www.youtube.com/watch?v=R4tyGiA_qok","target","_blank"],[1,"row","card-row"],[1,"col-md-4"],[3,"click","cardConfig","score","active"],[1,"row","chart-row"],[1,"col-md-8"],[3,"antiIdleTotal","idleTotal","chargingHrTotal","view","chart"],[3,"idleTotal","view","chart"],[3,"chargingKwTotal","pluginTotal","view","chart"],[1,"right-col"],[1,"col-md-12"],[3,"loadingAssetsNotReporting","unitsNotReportingDataCount","assetList","dataList"],[3,"startDate","endDate","hideGearIcon","gasPrice","dieselPrice","gasolineSavingsDollars","dieselSavingsDollars","gasolineGallonsSaved","dieselGallonsSaved","fuelSavings","estMaintSavings"],[3,"co2","nox"],[1,"row","mt-4"],[3,"showAll","searchAssets","sortAssets","filterAssets","calcLoadCompletionMappings","assetList","altecFilters","jemsFilters","showingAll","currentSort","activeFaults"]],template:function(G,k){if(1&G){const R=I.\u0275\u0275getCurrentView();
1I.\u0275\u0275template(0,mt,2,0,"ng-container",2),I.\u0275\u0275elementStart(1,"div",3)(2,"div",4)(3,"div",5)(4,"div")(5,"h3",6),I.\u0275\u0275text(6,"JEMS Insights"),I.\u0275\u0275elementEnd()(),I.\u0275\u0275elementStart(7,"div",7)(8,"altcon-inline-daterange",8),I.\u0275\u0275listener("dateRangeSelection",function(st){return I.\u0275\u0275restoreView(R),k.resetCalcLoadCompletionMappings(),I.\u0275\u0275resetView(k.insightsService.setDateRange(st))}),I.\u0275\u0275elementEnd()(),I.\u0275\u0275elementStart(9,"div",9)(10,"button",10),I.\u0275\u0275listener("click",function(){return k.exportData()}),I.\u0275\u0275element(11,"i",11),I.\u0275\u0275text(12," Export"),I.\u0275\u0275elementEnd()()(),I.\u0275\u0275elementStart(13,"div",12)(14,"div",13)(15,"a",14),I.\u0275\u0275text(16,"Learn About This Page"),I.\u0275\u0275elementEnd()()()()(),I.\u0275\u0275elementStart(17,"div",15)(18,"div",16)(19,"altec-connect-insight-card",17),I.\u0275\u0275pipe(20,"async"),I.\u0275\u0275listener("click",function(){return k.swapPerformanceChart("utilization")}),I.\u0275\u0275elementEnd()(),I.\u0275\u0275elementStart(21,"div",16)(22,"altec-connect-insight-card",17),I.\u0275\u0275pipe(23,"async"),I.\u0275\u0275listener("click",function(){return k.swapPerformanceChart("idle")}),I.\u0275\u0275elementEnd()(),I.\u0275\u0275elementStart(24,"div",16)(25,"altec-connect-insight-card",17),I.\u0275\u0275pipe(26,"async"),I.\u0275\u0275listener("click",function(){return k.swapPerformanceChart("plugin")}),I.\u0275\u0275elementEnd()()(),I.\u0275\u0275elementStart(27,"div",18,0)(29,"div",19),I.\u0275\u0275conditionalCreate(30,St,1,5,"altec-connect-performance-chart",20),I.\u0275\u0275conditionalCreate(31,ft,1,3,"altec-connect-performance-chart",21),I.\u0275\u0275conditionalCreate(32,ot,1,4,"altec-connect-performance-chart",22),I.\u0275\u0275elementEnd(),I.\u0275\u0275elementStart(33,"div",16)(34,"div",23,1)(36,"div",24),I.\u0275\u0275element(37,"altec-connect-assets-not-reporting",25),I.\u0275\u0275elementEnd(),I.\u0275\u0275elementStart(38,"div",24),I.\u0275\u0275element(39,"altec-connect-fuel-maintenance-avoidance",26),I.\u0275\u0275elementEnd(),I.\u0275\u0275elementStart(40,"div",24),I.\u0275\u0275element(41,"altec-connect-emissions-avoidance",27),I.\u0275\u0275elementEnd()()()(),I.\u0275\u0275elementStart(42,"div",28)(43,"div",24)(44,"altec-connect-asset-table",29),I.\u0275\u0275listener("showAll",function(){return k.showAll()})("searchAssets",function(st){return k.searchAssets(st)})("sortAssets",function(st){return k.sortAssets(st)})("filterAssets",function(st){return k.filterAssets(st)}),I.\u0275\u0275elementEnd()()()}2&G&&(I.\u0275\u0275property("hasAnyPrivileges",I.\u0275\u0275pureFunction0(49,gt)),I.\u0275\u0275advance(8),I.\u0275\u0275property("initialStartDate",k.insightsService.startDate)("initialEndDate",k.insightsService.endDate)("earliestDate",k.earliestAllowedDateParam)("latestDate",k.latestAllowedDateParam)("showClearSelectionButton",!1)("maxSelectedDays",k.insightsService.jemsDateRangeMaxDays),I.\u0275\u0275advance(11),I.\u0275\u0275property("cardConfig",k.InsightCardConfig.JobsiteUtilization)("score",I.\u0275\u0275pipeBind1(20,43,k.jobsiteUtilizationPercentage$))("active","utilization"===k.view),I.\u0275\u0275advance(3),I.\u0275\u0275property("cardConfig",k.InsightCardConfig.JobsiteIdle)("score",I.\u0275\u0275pipeBind1(23,45,k.jobsiteIdlePercentage$))("active","idle"===k.view),I.\u0275\u0275advance(3),I.\u0275\u0275property("cardConfig",k.InsightCardConfig.PluginCharging)("score",I.\u0275\u0275pipeBind1(26,47,k.pluginChargingPercentage$))("active","plugin"===k.view),I.\u0275\u0275advance(5),I.\u0275\u0275conditional("utilization"===k.view?30:-1),I.\u0275\u0275advance(),I.\u0275\u0275conditional("idle"===k.view?31:-1),I.\u0275\u0275advance(),I.\u0275\u0275conditional("plugin"===k.view?32:-1),I.\u0275\u0275advance(5),I.\u0275\u0275property("loadingAssetsNotReporting",k.loadingAssetsNotReporting)("unitsNotReportingDataCount",k.unitsNotReportingDataCount)("assetList",k.allAssets)("dataList",k.dataAssets),I.\u0275\u0275advance(2),I.\u0275\u0275property("startDate",k.startDate)("endDate",k.endDate)("hideGearIcon",k.hideGearIcon)("gasPrice",k.gasPrice)("dieselPrice",k.dieselPrice)("gasolineSavingsDollars",k.gasolineSavingsDollars)("dieselSavingsDollars",k.dieselSavingsDollars)("gasolineGallonsSaved",k.gasolineGallonsSaved)("dieselGallonsSaved",k.dieselGallonsSaved)("fuelSavings",k.fuelSavings)("estMaintSavings",k.maintenanceSavings),I.\u0275\u0275advance(2),I.\u0275\u0275property("co2",k.co2)("nox",k.nox),I.\u0275\u0275advance(3),I.\u0275\u0275property("calcLoadCompletionMappings",k.calcLoadCompletionMappings)("assetList",k.shownAssets)("altecFilters",k.altecFilters)("jemsFilters",k.jemsFilters)("showingAll",k.showingAll)("currentSort",k.assetRefinement.sort)("activeFaults",k.activeFaults))},styles:["[_ngcontent-%COMP%]:root{--bs-gutter-x: 1.5rem;--bs-gutter-y: 1.5rem}.d-flex[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{float:none}.col[_ngcontent-%COMP%]{flex:1 0 0;padding-left:var(--bs-gutter-x, 1.5rem);padding-right:var(--bs-gutter-x, 1.5rem)}@media only screen and (min-width:576px){.col-sm-auto[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;max-width:none}}@media only screen and (min-width:768px){.col-md-auto[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;max-width:none}}.col-auto[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;max-width:100%;padding-left:var(--bs-gutter-x, 1.5rem);padding-right:var(--bs-gutter-x, 1.5rem)}.justify-content-center[_ngcontent-%COMP%]{justify-content:center}.justify-content-end[_ngcontent-%COMP%]{justify-content:end}.align-items-center[_ngcontent-%COMP%]{align-items:center}.align-items-end[_ngcontent-%COMP%]{align-items:end}.flex-column-reverse[_ngcontent-%COMP%]{flex-direction:column-reverse}.d-flex[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}@media only screen and (min-width:768px){.d-md-block[_ngcontent-%COMP%]{display:block}}@media only screen and (min-width:768px){.d-md-none[_ngcontent-%COMP%]{display:none}}@media only screen and (min-width:768px){.d-md-flex[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}}@media only screen and (min-width:992px){.d-lg-none[_ngcontent-%COMP%]{display:none!important}}@media only screen and (min-width:992px){.d-lg-block[_ngcontent-%COMP%]{display:block!important}}.w-100[_ngcontent-%COMP%]{width:100%!important}.h-100[_ngcontent-%COMP%]{height:100%!important}.px-3[_ngcontent-%COMP%]{padding-left:15px!important;padding-right:15px!important}.pr-0[_ngcontent-%COMP%]{padding-right:0!important}.pl-0[_ngcontent-%COMP%]{padding-left:0!important}.pt-3[_ngcontent-%COMP%]{padding-top:1rem}.pb-3[_ngcontent-%COMP%]{padding-bottom:1rem}.mb-3[_ngcontent-%COMP%]{margin-bottom:1rem}.pb-2[_ngcontent-%COMP%]{padding-bottom:.5rem}@media print{.no-print[_ngcontent-%COMP%]{display:none!important}}.m-0[_ngcontent-%COMP%]{margin:0!important}.mt-0[_ngcontent-%COMP%]{margin-top:0!important}.mb-0[_ngcontent-%COMP%]{margin-bottom:0!important}.ms-0[_ngcontent-%COMP%]{margin-left:0!important}.me-0[_ngcontent-%COMP%]{margin-right:0!important}.mx-0[_ngcontent-%COMP%]{margin-left:0!important;margin-right:0!important}.my-0[_ngcontent-%COMP%]{margin-top:0!important;margin-bottom:0!important}.p-0[_ngcontent-%COMP%]{padding:0!important}.pt-0[_ngcontent-%COMP%]{padding-top:0!important}.pb-0[_ngcontent-%COMP%]{padding-bottom:0!important}.ps-0[_ngcontent-%COMP%]{padding-left:0!important}.pe-0[_ngcontent-%COMP%]{padding-right:0!important}.px-0[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.py-0[_ngcontent-%COMP%]{padding-top:0!important;padding-bottom:0!important}.m-1[_ngcontent-%COMP%]{margin:.25rem!important}.mt-1[_ngcontent-%COMP%]{margin-top:.25rem!important}.mb-1[_ngcontent-%COMP%]{margin-bottom:.25rem!important}.ms-1[_ngcontent-%COMP%]{margin-left:.25rem!important}.me-1[_ngcontent-%COMP%]{margin-right:.25rem!important}.mx-1[_ngcontent-%COMP%]{margin-left:.25rem!important;margin-right:.25rem!important}.my-1[_ngcontent-%COMP%]{margin-top:.25rem!important;margin-bottom:.25rem!important}.p-1[_ngcontent-%COMP%]{padding:.25rem!important}.pt-1[_ngcontent-%COMP%]{padding-top:.25rem!important}.pb-1[_ngcontent-%COMP%]{padding-bottom:.25rem!important}.ps-1[_ngcontent-%COMP%]{padding-left:.25rem!important}.pe-1[_ngcontent-%COMP%]{padding-right:.25rem!important}.px-1[_ngcontent-%COMP%]{padding-left:.25rem!important;padding-right:.25rem!important}.py-1[_ngcontent-%COMP%]{padding-top:.25rem!important;padding-bottom:.25rem!important}.m-2[_ngcontent-%COMP%]{margin:.5rem!important}.mt-2[_ngcontent-%COMP%]{margin-top:.5rem!important}.mb-2[_ngcontent-%COMP%]{margin-bottom:.5rem!important}.ms-2[_ngcontent-%COMP%]{margin-left:.5rem!important}.me-2[_ngcontent-%COMP%]{margin-right:.5rem!important}.mx-2[_ngcontent-%COMP%]{margin-left:.5rem!important;margin-right:.5rem!important}.my-2[_ngcontent-%COMP%]{margin-top:.5rem!important;margin-bottom:.5rem!important}.p-2[_ngcontent-%COMP%]{padding:.5rem!important}.pt-2[_ngcontent-%COMP%]{padding-top:.5rem!important}.pb-2[_ngcontent-%COMP%]{padding-bottom:.5rem!important}.ps-2[_ngcontent-%COMP%]{padding-left:.5rem!important}
1.pe-2[_ngcontent-%COMP%]{padding-right:.5rem!important}.px-2[_ngcontent-%COMP%]{padding-left:.5rem!important;padding-right:.5rem!important}.py-2[_ngcontent-%COMP%]{padding-top:.5rem!important;padding-bottom:.5rem!important}.m-3[_ngcontent-%COMP%]{margin:1rem!important}.mt-3[_ngcontent-%COMP%]{margin-top:1rem!important}.mb-3[_ngcontent-%COMP%]{margin-bottom:1rem!important}.ms-3[_ngcontent-%COMP%]{margin-left:1rem!important}.me-3[_ngcontent-%COMP%]{margin-right:1rem!important}.mx-3[_ngcontent-%COMP%]{margin-left:1rem!important;margin-right:1rem!important}.my-3[_ngcontent-%COMP%]{margin-top:1rem!important;margin-bottom:1rem!important}.p-3[_ngcontent-%COMP%]{padding:1rem!important}.pt-3[_ngcontent-%COMP%]{padding-top:1rem!important}.pb-3[_ngcontent-%COMP%]{padding-bottom:1rem!important}.ps-3[_ngcontent-%COMP%]{padding-left:1rem!important}.pe-3[_ngcontent-%COMP%]{padding-right:1rem!important}.px-3[_ngcontent-%COMP%]{padding-left:1rem!important;padding-right:1rem!important}.py-3[_ngcontent-%COMP%]{padding-top:1rem!important;padding-bottom:1rem!important}.m-4[_ngcontent-%COMP%]{margin:1.5rem!important}.mt-4[_ngcontent-%COMP%]{margin-top:1.5rem!important}.mb-4[_ngcontent-%COMP%]{margin-bottom:1.5rem!important}.ms-4[_ngcontent-%COMP%]{margin-left:1.5rem!important}.me-4[_ngcontent-%COMP%]{margin-right:1.5rem!important}.mx-4[_ngcontent-%COMP%]{margin-left:1.5rem!important;margin-right:1.5rem!important}.my-4[_ngcontent-%COMP%]{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.p-4[_ngcontent-%COMP%]{padding:1.5rem!important}.pt-4[_ngcontent-%COMP%]{padding-top:1.5rem!important}.pb-4[_ngcontent-%COMP%]{padding-bottom:1.5rem!important}.ps-4[_ngcontent-%COMP%]{padding-left:1.5rem!important}.pe-4[_ngcontent-%COMP%]{padding-right:1.5rem!important}.px-4[_ngcontent-%COMP%]{padding-left:1.5rem!important;padding-right:1.5rem!important}.py-4[_ngcontent-%COMP%]{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.m-5[_ngcontent-%COMP%]{margin:3rem!important}.mt-5[_ngcontent-%COMP%]{margin-top:3rem!important}.mb-5[_ngcontent-%COMP%]{margin-bottom:3rem!important}.ms-5[_ngcontent-%COMP%]{margin-left:3rem!important}.me-5[_ngcontent-%COMP%]{margin-right:3rem!important}.mx-5[_ngcontent-%COMP%]{margin-left:3rem!important;margin-right:3rem!important}.my-5[_ngcontent-%COMP%]{margin-top:3rem!important;margin-bottom:3rem!important}.p-5[_ngcontent-%COMP%]{padding:3rem!important}.pt-5[_ngcontent-%COMP%]{padding-top:3rem!important}.pb-5[_ngcontent-%COMP%]{padding-bottom:3rem!important}.ps-5[_ngcontent-%COMP%]{padding-left:3rem!important}.pe-5[_ngcontent-%COMP%]{padding-right:3rem!important}.px-5[_ngcontent-%COMP%]{padding-left:3rem!important;padding-right:3rem!important}.py-5[_ngcontent-%COMP%]{padding-top:3rem!important;padding-bottom:3rem!important}.card-row[_ngcontent-%COMP%]{margin:var(--bs-gutter-x, 1.5rem) -6px 20px}.card-row[_ngcontent-%COMP%] .col-md-4[_ngcontent-%COMP%]{padding:0 23px!important}.right-col[_ngcontent-%COMP%]{margin:0;display:flex;flex-direction:column;justify-content:center;gap:1rem}@media only screen and (min-width:768px){.right-col[_ngcontent-%COMP%]{justify-content:flex-start}}.right-col[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(:last-child){margin-bottom:1rem}.right-col[_ngcontent-%COMP%] h5{padding-top:10px;font-size:16px}.flex-row[_ngcontent-%COMP%] .btn-sm[_ngcontent-%COMP%]{padding:4px 10px}.no-padding-flex-row[_ngcontent-%COMP%], .no-padding-flex-row[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{padding:0!important}.learn-about-link[_ngcontent-%COMP%]{color:#1d81b0;cursor:pointer}"]})}}return Ot})()},70344(Ht,T){"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.BarChart=void 0,T.BarChart=class d{constructor(){this.type="bar",this.legend=!0,this.data=[]}}},98259(Ht,T){"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.GasType=T.InsightDate=void 0,T.dateFormatter=N,T.customDateFormatter=function O(o,b,g){const h=o;switch(g){case"DAILY":return h.setDate(h.getDate()+b),N(h);case"WEEKLY":return h.setDate(h.getDate()+7*b),N(h);case"MONTHLY":return h.setMonth(h.getMonth()+b),N(h,!0);default:return""}}
1,T.timeStringConvert=function u(o){return Math.round(10*o)/10+"h"};var d=function(o){return o.DAILY="DAILY",o.WEEKLY="WEEKLY",o.MONTHLY="MONTHLY",o}(d||(T.InsightDate=d={})),S=function(o){return o.GASOLINE="GASOLINE",o.DIESEL="DIESEL",o}(S||(T.GasType=S={}));function N(o,b){let g=o.getFullYear().toString().substring(2),h=(o.getMonth()+1).toString();if(+h<10&&(h="0"+h),b)return`${h}/${g}`;let D=o.getDate().toString();return+D<10&&(D="0"+D),`${h}/${D}/${g}`}},39756(Ht,T,d){"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.InsightsService=void 0;const S=d(31635),O=(d(53323),d(98259)),u=S.__importDefault(d(97586)),o=d(60177),b=d(90984),g=d(88088),h=d(59091),D=d(43481),p=(d(87453),d(9310),d(7721)),lt=(d(97377),S.__importStar(d(49849))),r=S.__importStar(d(53323)),I=S.__importStar(d(87453)),vt=S.__importStar(d(9310)),C=S.__importStar(d(97377));T.InsightsService=(()=>{class at{constructor(X,gt,mt,St){this.integrationClient=X,this.cfsPublicApi=gt,this.store=mt,this.statefulService=St,this.datePipe=new o.DatePipe("en-US"),this.INSIGHTS_CSV_COLUMNS=[{columnName:"Customer Vehicle #",columnValue:B=>B.unit.externalReference??"None"},{columnName:"Unit Model",columnValue:B=>B.unit.model},{columnName:"JEMS Model",columnValue:B=>B.unit.jemsModel},{columnName:"Chassis VIN",columnValue:B=>B.unit.altecChsSerial},{columnName:"Unit Serial Number",columnValue:B=>B.unit.altecUnit1Serial},{columnName:"F/A Serial",columnValue:B=>B.unit.faSerialNumber},{columnName:"Jobsite Utilization %",columnValue:B=>(0,g.FormatPercentage)(B.utilization??0,!1)},{columnName:"Jobsite Idle %",columnValue:B=>(0,g.FormatPercentage)(B.idle??0,!1)},{columnName:"Plug-In Charging %",columnValue:B=>(0,g.FormatPercentage)(B.plugIn??0,!1)},{columnName:"Jobsite Anti-Idle (hrs)",columnValue:B=>B.antiIdle?Math.round(10*B.antiIdle)/10:0},{columnName:"Jobsite Idle (hrs)",columnValue:B=>B.idleHrs?Math.round(10*B.idleHrs)/10:0},{columnName:"Jobsite Charging (hrs)",columnValue:B=>B.plugInHrs?Math.round(10*B.plugInHrs)/10:0},{columnName:"Gasoline Savings (gal)",columnValue:B=>B.gasSavingsGallons??0},{columnName:"Diesel Savings (gal)",columnValue:B=>B.dieselSavingsGallons??0},{columnName:"Gasoline Cost Savings ($ USD)",columnValue:B=>(0,g.FormatDollars)(B.gasSavingsDollars??0)},{columnName:"Diesel Cost Savings ($ USD)",columnValue:B=>(0,g.FormatDollars)(B.dieselSavingsDollars??0)},{columnName:"CO2 Avoidance (lbs)",columnValue:B=>B.co2Avoidance??0},{columnName:"NOx Avoidance (g)",columnValue:B=>B.noxAvoidance??0},{columnName:"Est. Maintenance Savings ($ USD)",columnValue:B=>(0,g.FormatDollars)(B.maintenanceSavings??0)},{columnName:"Plug-In Count",columnValue:B=>B.plugInCount??0},{columnName:"Plug-In Charging Energy (kWh)",columnValue:B=>B.plugInKw??0},{columnName:"Jobsite Idle Gasoline (gal)",columnValue:B=>"GASOLINE"===B.unit.fuelType?B.idleGallons??0:0},{columnName:"Jobsite Idle Diesel (gal)",columnValue:B=>"DIESEL"===B.unit.fuelType?B.idleGallons??0:0},{columnName:"Jobsite Idle Gasoline Cost ($ USD)",columnValue:B=>(0,g.FormatDollars)("GASOLINE"===B.unit.fuelType?B.idleDollars??0:0)},{columnName:"Jobsite Idle Diesel Cost ($ USD)",columnValue:B=>(0,g.FormatDollars)("DIESEL"===B.unit.fuelType?B.idleDollars??0:0)},{columnName:"Jobsite Charging Gasoline (gal)",columnValue:B=>"GASOLINE"===B.unit.fuelType?B.chargingGallons??0:0},{columnName:"Jobsite Charging Diesel (gal)",columnValue:B=>"DIESEL"===B.unit.fuelType?B.chargingGallons??0:0},{columnName:"Jobsite Charging Gasoline Cost ($ USD)",columnValue:B=>(0,g.FormatDollars)("GASOLINE"===B.unit.fuelType?B.chargingDollars??0:0)},{columnName:"Jobsite Charging Diesel Cost ($ USD)",columnValue:B=>(0,g.FormatDollars)("DIESEL"===B.unit.fuelType?B.chargingDollars??0:0)},{columnName:"mPTO Time (hrs)",columnValue:B=>B.mPTOTime??0},{columnName:"ePTO Time (hrs)",columnValue:B=>B.ePTOTime??0}];let ft=new Date,ot=new Date;ft.setDate(ft.getDate()-7),ot.setDate(ot.getDate()-1),this._dateRange=new h.BehaviorSubject({startDate:ft,endDate:ot})}getInsightCalculation(X){return this.integrationClient.request("/telematics/jems/aggregation/calculations",X)}getInsightCalculationBulk(X){return this.integrationClient.request("/telematics/jems/aggregation/calculations/bulk",X)}getFuelPrice(){return this.integrationClient.request("/telematics/jems/custom-fuel-prices",null)}changeFuelPrice(X){return this.integrationClient.request("/telematics/jems/update-fuel-prices",X)}getAssetList(X){return this.integrationClient.request("/telematics/jems/assets",X)}get startDate(){return this._dateRange.getValue().startDate}get endDate(){return this._dateRange.getValue().endDate}get jemsDateRangeMaxDays(){return 365}setDateRange(X){let gt=(0,u.default)(this.startDate),mt=(0,u.default)(this.endDate);this.daysDiff=Math.abs(mt.diff(gt,"days"))+1,this.daysDiff>10&&this.daysDiff<=70&&(gt.day()>1?gt.day(1):gt.day()<1&>.day(-6)),this._dateRange.next(X)}get selectedDateRange(){return this._dateRange.asObservable()}getInsightInterval(){return(0,b.getInsightDateIntervalFromDaysDiff)(this.daysDiff)}setFuelSavings(X){this.savings=X}get fuelSavings(){return this.savings}setGasPrice(X){this.gasPrice=X}getGasPrice(){return this.gasPrice}setGasolineGallonsSaved(X){this.gasGallonsSaved=X}getGasolineGallonsSaved(){return this.gasGallonsSaved}setGasolineDollarsSaved(X){this.gasDollarsSaved=X}getGasolineDollarsSaved(){return this.gasDollarsSaved}setDieselGallonsSaved(X){this.dieselGallonsSaved=X}getDieselGallonsSaved(){return this.dieselGallonsSaved}setDieselDollarsSaved(X){this.dieselDollarsSaved=X}getDieselDollarsSaved(){return this.dieselDollarsSaved}setDieselPrice(X){this.dieselPrice=X}getDieselPrice(){return this.dieselPrice}getCalculation(X,gt,mt){let St=new Date(this.endDate);return mt=this.datePipe.transform(St.setDate(St.getDate()+1),"yyyy-MM-dd"),gt=this.datePipe.transform(this.startDate,"yyyy-MM-dd"),this.interval=O.InsightDate[this.getInsightInterval()],this.getInsightCalculation({calculationName:X,startDate:gt,endDate:mt,dateGroupings:[this.interval],excludeInstanceData:!0}
1)}getReportsStart(){return this.cfsPublicApi.authenticatedGraphql("query Query {\n getJemsInsightsReportStart\n}",{}).pipe((0,D.map)(X=>X))}getJemsInsightsReportDownloadUrl(X,gt,mt){return this.store.select(p.selectTransientProfile).pipe((0,D.switchMap)(St=>this.cfsPublicApi.post("/getJemsInsightsReportDownloadUrl",{accountId:St.activeOrganizations[0].accountId,year:X,format:gt,quarter:mt},!1,!1).pipe((0,D.map)(ft=>ft))))}getInsightsReportSubscribers(X){return this.integrationClient.request("jemsInsightsReportSubscriber/search",X,"/connectApi")}createOrUpdateInsightsReportSubscriber(X){return this.integrationClient.request("jemsInsightsReportSubscriber/createOrUpdate",X,"/connectApi")}bulkCreateOrUpdateInsightsReportSubscriber(X){return this.integrationClient.request("jemsInsightsReportSubscriber/createOrUpdate/bulk",X,"/connectApi")}deleteJemsInsightsReportSubscriber(X){return this.integrationClient.request("jemsInsightsReportSubscriber/delete",X,"/connectApi")}static{this.\u0275fac=function(gt){return new(gt||at)(lt.\u0275\u0275inject(r.IntegrationClientService),lt.\u0275\u0275inject(I.CfsPublicApiService),lt.\u0275\u0275inject(vt.Store),lt.\u0275\u0275inject(C.StatefulService))}}static{this.\u0275prov=lt.\u0275\u0275defineInjectable({token:at,factory:at.\u0275fac,providedIn:"root"})}}return at})()},32791(Ht,T,d){"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.PLUGIN_BAR_HOVER_COLOR=T.PLUGIN_BAR_COLOR=T.ANTI_IDLE_BAR_HOVER_COLOR=T.ANTI_IDLE_BAR_COLOR=T.CHARGE_BAR_HOVER_COLOR=T.CHARGE_BAR_COLOR=T.IDLE_BAR_HOVER_COLOR=T.IDLE_BAR_COLOR=void 0,T.setInterval=function g(v){b=v},T.getUtilizationGraph=function h(v,p){return N.options={responsive:!0,maintainAspectRatio:!1,scales:{x:{stacked:!1,display:!0,ticks:{callback:function(J,lt){return 0===lt&&"MONTHLY"!==p?v.toLocaleDateString("en-US",{month:"2-digit",day:"2-digit",year:"2-digit"}):this.getLabelForValue(J)},display:!0,maxRotation:45,minRotation:0,font:{size:14}},grid:{display:!1}},y:{stacked:!1,ticks:{suggestedMin:0,maxTicksLimit:7,font:{size:14}},title:{text:"Total Hours",display:!0}}},plugins:{datalabels:{anchor:"end",align:"end"},legend:{display:!1,maxHeight:0},tooltip:{mode:"x",callbacks:{title:function(J){return""},label:function(J){return Math.round(10*J.raw)/10+"h"}}}}},N.data=[{data:[],label:"Jobsite Anti-Idle",barPercentage:.6,backgroundColor:T.ANTI_IDLE_BAR_COLOR,borderColor:T.ANTI_IDLE_BAR_COLOR,borderRadius:1,hoverBackgroundColor:T.ANTI_IDLE_BAR_COLOR,hoverBorderColor:T.ANTI_IDLE_BAR_HOVER_COLOR,hoverBorderWidth:3},{data:[],label:"Jobsite Idle",barPercentage:.6,backgroundColor:T.IDLE_BAR_COLOR,borderColor:T.IDLE_BAR_COLOR,borderRadius:1,hoverBackgroundColor:T.IDLE_BAR_COLOR,hoverBorderColor:T.IDLE_BAR_HOVER_COLOR,hoverBorderWidth:3},{data:[],label:"Jobsite Charging",barPercentage:.6,backgroundColor:T.CHARGE_BAR_COLOR,borderColor:T.CHARGE_BAR_COLOR,borderRadius:1,hoverBackgroundColor:T.CHARGE_BAR_COLOR,hoverBorderColor:T.CHARGE_BAR_HOVER_COLOR,hoverBorderWidth:3}],N},T.getIdleGraph=function D(v,p){return O.options={responsive:!0,maintainAspectRatio:!1,scales:{x:{stacked:!1,display:!0,ticks:{callback:function(J,lt){return 0===lt&&"MONTHLY"!==p?v.toLocaleDateString("en-US",{month:"2-digit",day:"2-digit",year:"2-digit"}):this.getLabelForValue(J)},display:!0,maxRotation:45,minRotation:0,font:{size:14}},grid:{display:!1}},y:{stacked:!1,ticks:{suggestedMin:0,maxTicksLimit:7,font:{size:14}},title:{text:"Total Hours",display:!0}}},plugins:{datalabels:{anchor:"end",align:"end"},legend:{display:!1,maxHeight:0},tooltip:{mode:"x",callbacks:{title:function(J){return""},label:function(J){return Math.round(10*J.raw)/10+"h"}}}}},O.data=[{data:[],label:"Jobsite Idle",barPercentage:.3,backgroundColor:T.IDLE_BAR_COLOR,borderColor:T.IDLE_BAR_COLOR,borderRadius:1,hoverBackgroundColor:T.IDLE_BAR_COLOR,hoverBorderColor:T.IDLE_BAR_HOVER_COLOR,hoverBorderWidth:3}],O},T.getPluginGraph=function f(v,p){return u.options={responsive:!0,maintainAspectRatio:!1,scales:{x:{stacked:!1,display:!0,ticks:{callback:function(J,lt){return 0===lt&&"MONTHLY"!==p?v.toLocaleDateString("en-US",{month:"2-digit",day:"2-digit",year:"2-digit"}):this.getLabelForValue(J)},display:!0,maxRotation:45,minRotation:0,font:{size:14}},grid:{display:!1}},y:{stacked:!1,ticks:{suggestedMin:0,maxTicksLimit:7,font:{size:14}},title:{text:"Total Kilowatt Hours",display:!0}}},plugins:{datalabels:{anchor:"end",align:"end"}
1,legend:{display:!1,maxHeight:0},tooltip:{mode:"x",callbacks:{title:function(J){return""},label:function(J){return Math.round(10*J.raw)/10+" kWh"}}}}},u.data=[{data:[],label:"Jobsite Charging",barPercentage:.3,backgroundColor:T.CHARGE_BAR_COLOR,borderColor:T.CHARGE_BAR_COLOR,borderRadius:1,hoverBackgroundColor:T.CHARGE_BAR_COLOR,hoverBorderColor:T.CHARGE_BAR_HOVER_COLOR,hoverBorderWidth:3},{data:[],label:"Plug-In Charging",barPercentage:.3,backgroundColor:T.PLUGIN_BAR_COLOR,borderColor:T.PLUGIN_BAR_COLOR,borderRadius:1,hoverBackgroundColor:T.PLUGIN_BAR_COLOR,hoverBorderColor:T.PLUGIN_BAR_HOVER_COLOR,hoverBorderWidth:3}],u};const S=d(70344);let N=new S.BarChart,O=new S.BarChart,u=new S.BarChart,b="";T.IDLE_BAR_COLOR="#C0362A",T.IDLE_BAR_HOVER_COLOR="#7D241C",T.CHARGE_BAR_COLOR="#2A69C0",T.CHARGE_BAR_HOVER_COLOR="#1C447D",T.ANTI_IDLE_BAR_COLOR="#2AC081",T.ANTI_IDLE_BAR_HOVER_COLOR="#1C7D55",T.PLUGIN_BAR_COLOR="#C0812A",T.PLUGIN_BAR_HOVER_COLOR="#7D551C"},75067(Ht,T,d){"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.AppRoutingModule=void 0;const S=d(31635),N=d(7901),O=S.__importStar(d(49849)),o=(S.__importStar(d(7901)),[]);T.AppRoutingModule=(()=>{class g{static{this.\u0275fac=function(f){return new(f||g)}}static{this.\u0275mod=O.\u0275\u0275defineNgModule({type:g})}static{this.\u0275inj=O.\u0275\u0275defineInjector({imports:[N.RouterModule.forChild(o),N.RouterModule]})}}return g})()},19704(Ht,T,d){"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.JemsModule=void 0;const S=d(31635),N=d(83352),O=d(91898),u=d(35235),o=d(84341),b=d(60177),g=d(60102),h=d(69812),D=d(75067),f=d(68312),v=d(15736),p=d(40509),J=d(43332),lt=S.__importStar(d(49849));S.__importStar(d(60102)),T.JemsModule=(()=>{class vt{static{this.\u0275fac=function(F){return new(F||vt)}}static{this.\u0275mod=lt.\u0275\u0275defineNgModule({type:vt})}static{this.\u0275inj=lt.\u0275\u0275defineInjector({imports:[g.JoyrideModule.forRoot(),b.CommonModule,D.AppRoutingModule,N.CommonProjModule,O.CommonPrivilegeModule,u.NgChartsModule,o.FormsModule,b.CommonModule,h.TelematicsModule,v.SearchWidgetComponent,o.ReactiveFormsModule,f.PaginationWidgetComponent,p.InlineDaterangeComponent,J.GlobalFilterComponent]})}}return vt})()},80053(Ht,T,d){"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.AppRoutingModule=void 0;const S=d(31635),N=d(7901),O=S.__importStar(d(49849)),o=(S.__importStar(d(7901)),[]);T.AppRoutingModule=(()=>{class g{static{this.\u0275fac=function(f){return new(f||g)}}static{this.\u0275mod=O.\u0275\u0275defineNgModule({type:g})}static{this.\u0275inj=O.\u0275\u0275defineInjector({imports:[N.RouterModule.forChild(o),N.RouterModule]})}}return g})()},4958(Ht,T,d){"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.ActiveFaultsComponent=void 0;const S=d(31635),O=(d(21916),S.__importDefault(d(96508))),o=(d(20851),S.__importStar(d(49849))),b=S.__importStar(d(21916)),g=S.__importStar(d(20851)),h=S.__importStar(d(60177));function D(C,ht){if(1&C){const F=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"div",1)(1,"button",2),o.\u0275\u0275listener("click",function(){o.\u0275\u0275restoreView(F);const at=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(at.refreshActiveDTCs())}),o.\u0275\u0275element(2,"i",3),o.\u0275\u0275text(3," Refresh "),o.\u0275\u0275elementEnd()()}}function f(C,ht){1&C&&(o.\u0275\u0275elementStart(0,"div")(1,"i",8),o.\u0275\u0275text(2,"* Due to data limitations, we can only provide up to 25 records at this time. We apologize for any inconvenience."),o.\u0275\u0275elementEnd()())}function v(C,ht){if(1&C&&(o.\u0275\u0275elementStart(0,"tr")(1,"td"),o.\u0275\u0275text(2),o.\u0275\u0275pipe(3,"titlecase"),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(4,"td"),o.\u0275\u0275text(5),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(6,"td"),o.\u0275\u0275text(7),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(8,"td"),o.\u0275\u0275text(9),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(10,"td"),o.\u0275\u0275text(11),o.\u0275\u0275pipe(12,"titlecase"),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(13,"td",9),o.\u0275\u0275text(14),o.\u0275\u0275pipe(15,"date"),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(16,"td")(17,"ul",10)(18,"li")(19,"strong"),o.\u0275\u0275text(20,"Potential Impact"),o.\u0275\u0275elementEnd(),o.\u0275\u0275text(2
11),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(22,"li",11)(23,"strong"),o.\u0275\u0275text(24,"Potential Cause"),o.\u0275\u0275elementEnd(),o.\u0275\u0275text(25),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(26,"li",11)(27,"strong"),o.\u0275\u0275text(28,"Recommendation"),o.\u0275\u0275elementEnd(),o.\u0275\u0275text(29),o.\u0275\u0275elementEnd()()()()),2&C){const F=ht.$implicit,ct=o.\u0275\u0275nextContext(2);o.\u0275\u0275advance(2),o.\u0275\u0275textInterpolate(o.\u0275\u0275pipeBind1(3,10,F.system)),o.\u0275\u0275advance(3),o.\u0275\u0275textInterpolate(F.code),o.\u0275\u0275advance(2),o.\u0275\u0275textInterpolate(F.codeName),o.\u0275\u0275advance(2),o.\u0275\u0275textInterpolate("1"===F.severity?"High":"2"===F.severity?"Medium":"Low"),o.\u0275\u0275advance(2),o.\u0275\u0275textInterpolate(o.\u0275\u0275pipeBind1(12,12,F.status)),o.\u0275\u0275advance(3),o.\u0275\u0275textInterpolate2("",o.\u0275\u0275pipeBind3(15,14,F.transitionTime,"MMM d, y, h:mm:ss a",ct.timeZoneAbbreviation),"\xa0",ct.timeZoneAbbreviation),o.\u0275\u0275advance(7),o.\u0275\u0275textInterpolate1(" ",F.impactSymptoms),o.\u0275\u0275advance(4),o.\u0275\u0275textInterpolate1(" ",F.possibleCause),o.\u0275\u0275advance(4),o.\u0275\u0275textInterpolate1(" ",F.recommendedAction)}}function p(C,ht){if(1&C&&(o.\u0275\u0275elementStart(0,"div",7)(1,"strong"),o.\u0275\u0275text(2,"System"),o.\u0275\u0275elementEnd(),o.\u0275\u0275text(3),o.\u0275\u0275pipe(4,"titlecase"),o.\u0275\u0275element(5,"br"),o.\u0275\u0275elementStart(6,"strong"),o.\u0275\u0275text(7,"Code"),o.\u0275\u0275elementEnd(),o.\u0275\u0275text(8),o.\u0275\u0275element(9,"br"),o.\u0275\u0275elementStart(10,"strong"),o.\u0275\u0275text(11,"Code Name"),o.\u0275\u0275elementEnd(),o.\u0275\u0275text(12),o.\u0275\u0275element(13,"br"),o.\u0275\u0275elementStart(14,"strong"),o.\u0275\u0275text(15,"Severity"),o.\u0275\u0275elementEnd(),o.\u0275\u0275text(16),o.\u0275\u0275element(17,"br"),o.\u0275\u0275elementStart(18,"strong"),o.\u0275\u0275text(19,"Status"),o.\u0275\u0275elementEnd(),o.\u0275\u0275text(20),o.\u0275\u0275pipe(21,"titlecase"),o.\u0275\u0275element(22,"br"),o.\u0275\u0275elementStart(23,"strong"),o.\u0275\u0275text(24,"Date/Time"),o.\u0275\u0275elementEnd(),o.\u0275\u0275text(25),o.\u0275\u0275pipe(26,"date"),o.\u0275\u0275element(27,"br"),o.\u0275\u0275elementStart(28,"strong"),o.\u0275\u0275text(29,"Additional Information"),o.\u0275\u0275elementEnd(),o.\u0275\u0275text(30,": "),o.\u0275\u0275elementStart(31,"ul",12)(32,"li")(33,"strong"),o.\u0275\u0275text(34,"Potential Impact"),o.\u0275\u0275elementEnd(),o.\u0275\u0275text(35),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(36,"li",11)(37,"strong"),o.\u0275\u0275text(38,"Potential Cause"),o.\u0275\u0275elementEnd(),o.\u0275\u0275text(39),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(40,"li",11)(41,"strong"),o.\u0275\u0275text(42,"Recommendation"),o.\u0275\u0275elementEnd(),o.\u0275\u0275text(43),o.\u0275\u0275elementEnd()()()),2&C){const F=ht.$implicit,ct=o.\u0275\u0275nextContext(2);o.\u0275\u0275advance(3),o.\u0275\u0275textInterpolate1(": ",o.\u0275\u0275pipeBind1(4,10,F.system)),o.\u0275\u0275advance(5),o.\u0275\u0275textInterpolate1(": ",F.code),o.\u0275\u0275advance(4),o.\u0275\u0275textInterpolate1(": ",F.codeName),o.\u0275\u0275advance(4),o.\u0275\u0275textInterpolate1(": ","1"===F.severity?"High":"2"===F.severity?"Medium":"Low"),o.\u0275\u0275advance(4),o.\u0275\u0275textInterpolate1(": ",o.\u0275\u0275pipeBind1(21,12,F.status)),o.\u0275\u0275advance(5),o.\u0275\u0275textInterpolate2(": ",o.\u0275\u0275pipeBind3(26,14,F.transitionTime,"MMM d, y, h:mm:ss a",ct.timeZoneAbbreviation),"\xa0",ct.timeZoneAbbreviation),o.\u0275\u0275advance(10),o.\u0275\u0275textInterpolate1(" ",F.impactSymptoms),o.\u0275\u0275advance(4),o.\u0275\u0275textInterpolate1(" ",F.possibleCause),o.\u0275\u0275advance(4),o.\u0275\u0275textInterpolate1(" ",F.recommendedAction)}}function J(C,ht){if(1&C&&(o.\u0275\u0275elementStart(0,"div"),o.\u0275\u0275conditionalCreate(1,f,3,0,"div"),o.\u0275\u0275elementStart(2,"div",4)(3,"table",5)(4,"thead")(5,"tr")(6,"th"),o.\u0275\u0275text(7,"System"),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(8,"th"),o.\u0275\u0275text(9,"Code"),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(10,"th"),o.\u0275\u0275text(11,"Code Name"),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(12,"th"),o.\u0275\u0275text(13,"Severity"),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(14,"th"),o.\u0275\u0275text(15,"Status"),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(16,"th"),o.\u0275\u0275text(17,"Date/Time"),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(18,"th"),o.\u0275\u0275text(19,"Additional Information"),o.\u0275\u0275elementEnd()()(),o.\u0275\u0275elementStart(20,"tbody"),o.\u0275\u0275repeaterCreate(21,v,30,18,"tr",null,o.\u0275\u0275repeaterTrackByIdentity),o.\u0275\u0275elementEnd()()(),o.\u0275\u0275elementStart(23,"div",6),o.\u0275\u0275repeaterCreate(24,p,44,18,"div",7,o.\u0275\u0275repeaterTrackByIdentity),o.\u0275\u0275elementEnd()()),2&C){const F=o.\u0275\u0275nextContext();o.\u0275\u0275advance(),o.\u0275\u0275conditional(F.showDataLimitMessage?1:-1),o.\u
10275\u0275advance(20),o.\u0275\u0275repeater(F.activeFaults),o.\u0275\u0275advance(3),o.\u0275\u0275repeater(F.activeFaults)}}function lt(C,ht){1&C&&(o.\u0275\u0275elementStart(0,"div")(1,"div",13)(2,"div",14),o.\u0275\u0275element(3,"i",15),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(4,"div")(5,"h5"),o.\u0275\u0275text(6,"Active unit diagnostic trouble code (DTC) data is not currently available. Potential reasons include:"),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(7,"ul")(8,"li"),o.\u0275\u0275text(9," Vehicle does not have a paid access package. "),o.\u0275\u0275elementEnd()(),o.\u0275\u0275text(10," Need additional help? Please contact "),o.\u0275\u0275elementStart(11,"a",16),o.\u0275\u0275text(12,"Altec Fleet Services."),o.\u0275\u0275elementEnd()()()())}function r(C,ht){1&C&&(o.\u0275\u0275elementStart(0,"div")(1,"div",13)(2,"div",14),o.\u0275\u0275element(3,"i",15),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(4,"div")(5,"h5"),o.\u0275\u0275text(6,"Unit does not have diagnostic trouble code (DTC) capabilities."),o.\u0275\u0275elementEnd(),o.\u0275\u0275element(7,"br"),o.\u0275\u0275text(8," Need additional help? Please contact "),o.\u0275\u0275elementStart(9,"a",16),o.\u0275\u0275text(10,"Altec Fleet Services."),o.\u0275\u0275elementEnd()()()())}function I(C,ht){1&C&&(o.\u0275\u0275elementStart(0,"div")(1,"div",13)(2,"div",14),o.\u0275\u0275element(3,"i",15),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(4,"div")(5,"h5"),o.\u0275\u0275text(6,"Active unit diagnostic trouble code (DTC) data is not currently available. Potential reasons include:"),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(7,"ul")(8,"li"),o.\u0275\u0275text(9," Vehicle has not created or sent data in the last 28 days. "),o.\u0275\u0275elementEnd()(),o.\u0275\u0275text(10," Need additional help? Please contact "),o.\u0275\u0275elementStart(11,"a",16),o.\u0275\u0275text(12,"Altec Fleet Services."),o.\u0275\u0275elementEnd()()()())}T.ActiveFaultsComponent=(()=>{class C{constructor(F,ct){this.fleetService=F,this.loader=ct,this.showRefresh=!0,this.showDataLimitMessage=!1,this.instanceIds=[],this.hasDTCContract=!0}ngOnInit(){const F=new Date,ct=O.default.tz.guess(),at=O.default.tz(new Date,ct);this.timeZoneAbbreviation=at.zoneAbbr(),this.timeZoneOffset=F.getTimezoneOffset(),this.instanceIds.push(this.instanceId),this.instanceId&&this.fleetService.findUnitDTCs(this.instanceId,"UDTC0",!0).subscribe(rt=>{this.loader.start(),rt?(this.hasDTCContract=!0,this.activeFaults=rt.results,this.unitDtcCapable=rt.unitDtcCapable,this.activeFaults.sort((gt,mt)=>gt.transitionTime>mt.transitionTime?-1:gt.transitionTime<mt.transitionTime?1:0),this.loader.stop()):(this.hasDTCContract=!1,this.loader.stop())})}refreshActiveDTCs(){this.loader.start(),this.fleetService.findUnitDTCs(this.instanceId,"UDTC0",!0).subscribe(F=>{F?(this.activeFaults=F.results,this.unitDtcCapable=F.unitDtcCapable,this.activeFaults.sort((at,rt)=>at.transitionTime>rt.transitionTime?-1:at.transitionTime<rt.transitionTime?1:0),this.loader.stop()):this.loader.stop(),this.loader.stop()})}static{this.\u0275fac=function(ct){return new(ct||C)(o.\u0275\u0275directiveInject(b.FleetService),o.\u0275\u0275directiveInject(g.LoadingService))}}static{this.\u0275cmp=o.\u0275\u0275defineComponent({type:C,selectors:[["altec-connect-active-faults"]],inputs:{instanceId:"instanceId",activeFaults:"activeFaults",unitDtcCapable:"unitDtcCapable",showRefresh:"showRefresh",showDataLimitMessage:"showDataLimitMessage"},standalone:!1,decls:6,vars:5,consts:[[1,"row","refresh-box"],[1,"d-grid"],[1,"float-end","btn","bs-placeholder","btn-light","text-start","form-control","refresh-button",3,"click"],[1,"fa","fa-refresh"],[1,"table-responsive","d-none","d-md-block"],[1,"table","table-striped"],[1,"d-block","d-md-none","fleet-table","mt-3"],[1,"fleet-row"],[2,"font-size","small"],[1,"text-nowrap"],[1,"mb-0"],[1,"pt-2"],[1,"mb-0","mt-1"],[1,"vehicle-status-alert"],[1,"alert-triangle"],[1,"fa","fa-exclamation-triangle"],["href","mailto:[email protected]"]],template:function(ct,at){1&ct&&(o.\u0275\u0275elementStart(0,"div",0),o.\u0275\u0275conditionalCreate(1,D,4,0,"div",1),o.\u0275\u0275elementEnd(),o.\u0275\u0275conditionalCreate(2,J,26,1,"div"),o.\u0275\u0275conditionalCreate(3,lt,13,0,"div"),o.\u0275\u0275conditionalCreate(4,r,11,0,"div"),o.\u0275\u0275conditionalCreate(5,I,13,0,"div")),2&ct&&(o.\u0275\u0275advance(),o.\u0275\u0275conditional(at.showRefresh?1:-1),o.\u
10275\u0275advance(),o.\u0275\u0275conditional(at.unitDtcCapable&&at.hasDTCContract?2:-1),o.\u0275\u0275advance(),o.\u0275\u0275conditional(at.hasDTCContract?-1:3),o.\u0275\u0275advance(),o.\u0275\u0275conditional(!at.unitDtcCapable&&at.hasDTCContract?4:-1),o.\u0275\u0275advance(),o.\u0275\u0275conditional(at.unitDtcCapable&&at.activeFaults&&0===at.activeFaults.length&&at.hasDTCContract?5:-1))},dependencies:[h.TitleCasePipe,h.DatePipe],styles:["[_ngcontent-%COMP%]:root{--bs-gutter-x: 1.5rem;--bs-gutter-y: 1.5rem}.d-flex[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{float:none}.col[_ngcontent-%COMP%]{flex:1 0 0;padding-left:var(--bs-gutter-x, 1.5rem);padding-right:var(--bs-gutter-x, 1.5rem)}@media only screen and (min-width:576px){.col-sm-auto[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;max-width:none}}@media only screen and (min-width:768px){.col-md-auto[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;max-width:none}}.col-auto[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;max-width:100%;padding-left:var(--bs-gutter-x, 1.5rem);padding-right:var(--bs-gutter-x, 1.5rem)}.justify-content-center[_ngcontent-%COMP%]{justify-content:center}.justify-content-end[_ngcontent-%COMP%]{justify-content:end}.align-items-center[_ngcontent-%COMP%]{align-items:center}.align-items-end[_ngcontent-%COMP%]{align-items:end}.flex-column-reverse[_ngcontent-%COMP%]{flex-direction:column-reverse}.d-flex[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}@media only screen and (min-width:768px){.d-md-block[_ngcontent-%COMP%]{display:block}}@media only screen and (min-width:768px){.d-md-none[_ngcontent-%COMP%]{display:none}}@media only screen and (min-width:768px){.d-md-flex[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}}@media only screen and (min-width:992px){.d-lg-none[_ngcontent-%COMP%]{display:none!important}}@media only screen and (min-width:992px){.d-lg-block[_ngcontent-%COMP%]{display:block!important}}.w-100[_ngcontent-%COMP%]{width:100%!important}.h-100[_ngcontent-%COMP%]{height:100%!important}.px-3[_ngcontent-%COMP%]{padding-left:15px!important;padding-right:15px!important}.pr-0[_ngcontent-%COMP%]{padding-right:0!important}.pl-0[_ngcontent-%COMP%]{padding-left:0!important}.pt-3[_ngcontent-%COMP%]{padding-top:1rem}.pb-3[_ngcontent-%COMP%]{padding-bottom:1rem}.mb-3[_ngcontent-%COMP%]{margin-bottom:1rem}.pb-2[_ngcontent-%COMP%]{padding-bottom:.5rem}@media print{.no-print[_ngcontent-%COMP%]{display:none!important}}.m-0[_ngcontent-%COMP%]{margin:0!important}.mt-0[_ngcontent-%COMP%]{margin-top:0!important}.mb-0[_ngcontent-%COMP%]{margin-bottom:0!important}.ms-0[_ngcontent-%COMP%]{margin-left:0!important}.me-0[_ngcontent-%COMP%]{margin-right:0!important}.mx-0[_ngcontent-%COMP%]{margin-left:0!important;margin-right:0!important}.my-0[_ngcontent-%COMP%]{margin-top:0!important;margin-bottom:0!important}.p-0[_ngcontent-%COMP%]{padding:0!important}.pt-0[_ngcontent-%COMP%]{padding-top:0!important}.pb-0[_ngcontent-%COMP%]{padding-bottom:0!important}.ps-0[_ngcontent-%COMP%]{padding-left:0!important}.pe-0[_ngcontent-%COMP%]{padding-right:0!important}.px-0[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.py-0[_ngcontent-%COMP%]{padding-top:0!important;padding-bottom:0!important}.m-1[_ngcontent-%COMP%]{margin:.25rem!important}.mt-1[_ngcontent-%COMP%]{margin-top:.25rem!important}.mb-1[_ngcontent-%COMP%]{margin-bottom:.25rem!important}.ms-1[_ngcontent-%COMP%]{margin-left:.25rem!important}.me-1[_ngcontent-%COMP%]{margin-right:.25rem!important}.mx-1[_ngcontent-%COMP%]{margin-left:.25rem!important;margin-right:.25rem!important}.my-1[_ngcontent-%COMP%]{margin-top:.25rem!important;margin-bottom:.25rem!important}.p-1[_ngcontent-%COMP%]{padding:.25rem!important}.pt-1[_ngcontent-%COMP%]{padding-top:.25rem!important}.pb-1[_ngcontent-%COMP%]{padding-bottom:.25rem!important}.ps-1[_ngcontent-%COMP%]{padding-left:.25rem!important}.pe-1[_ngcontent-%COMP%]{padding-right:.25rem!important}.px-1[_ngcontent-%COMP%]{padding-left:.25rem!important;padding-right:.25rem!important}.py-1[_ngcontent-%COMP%]{padding-top:.25rem!important;padding-bottom:.25rem!important}.m-2[_ngcontent-%COMP%]{margin:.5rem!important}.mt-2[_ngcontent-%COMP%]{margin-top:.5rem!important}.mb-2[_ngcontent-%COMP%]{margin-bottom:.5rem!important}.ms-2[_ngcontent-%COMP%]{margin-left:.5rem!important}.me-2[_ngcontent-%COMP%]{margin-right:.5rem!important}.mx-2[_ngcontent-%COMP%]{margin-left:.5rem!important;margin-right:.5rem!important}.my-2[_ngcontent-%COMP%]{margin-top:.5rem!important;margin-bottom:.5rem!important}.p-2[_ngcontent-%COMP%]{padding:.5rem!important}.pt-2[_ngcontent-%COMP%]{padding-top:.5rem!important}.pb-2[_ngcontent-%COMP%]{padding-bottom:.5rem!important}.ps-2[_ngcontent-%COMP%]{padding-left:.5rem!important}
1.pe-2[_ngcontent-%COMP%]{padding-right:.5rem!important}.px-2[_ngcontent-%COMP%]{padding-left:.5rem!important;padding-right:.5rem!important}.py-2[_ngcontent-%COMP%]{padding-top:.5rem!important;padding-bottom:.5rem!important}.m-3[_ngcontent-%COMP%]{margin:1rem!important}.mt-3[_ngcontent-%COMP%]{margin-top:1rem!important}.mb-3[_ngcontent-%COMP%]{margin-bottom:1rem!important}.ms-3[_ngcontent-%COMP%]{margin-left:1rem!important}.me-3[_ngcontent-%COMP%]{margin-right:1rem!important}.mx-3[_ngcontent-%COMP%]{margin-left:1rem!important;margin-right:1rem!important}.my-3[_ngcontent-%COMP%]{margin-top:1rem!important;margin-bottom:1rem!important}.p-3[_ngcontent-%COMP%]{padding:1rem!important}.pt-3[_ngcontent-%COMP%]{padding-top:1rem!important}.pb-3[_ngcontent-%COMP%]{padding-bottom:1rem!important}.ps-3[_ngcontent-%COMP%]{padding-left:1rem!important}.pe-3[_ngcontent-%COMP%]{padding-right:1rem!important}.px-3[_ngcontent-%COMP%]{padding-left:1rem!important;padding-right:1rem!important}.py-3[_ngcontent-%COMP%]{padding-top:1rem!important;padding-bottom:1rem!important}.m-4[_ngcontent-%COMP%]{margin:1.5rem!important}.mt-4[_ngcontent-%COMP%]{margin-top:1.5rem!important}.mb-4[_ngcontent-%COMP%]{margin-bottom:1.5rem!important}.ms-4[_ngcontent-%COMP%]{margin-left:1.5rem!important}.me-4[_ngcontent-%COMP%]{margin-right:1.5rem!important}.mx-4[_ngcontent-%COMP%]{margin-left:1.5rem!important;margin-right:1.5rem!important}.my-4[_ngcontent-%COMP%]{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.p-4[_ngcontent-%COMP%]{padding:1.5rem!important}.pt-4[_ngcontent-%COMP%]{padding-top:1.5rem!important}.pb-4[_ngcontent-%COMP%]{padding-bottom:1.5rem!important}.ps-4[_ngcontent-%COMP%]{padding-left:1.5rem!important}.pe-4[_ngcontent-%COMP%]{padding-right:1.5rem!important}.px-4[_ngcontent-%COMP%]{padding-left:1.5rem!important;padding-right:1.5rem!important}.py-4[_ngcontent-%COMP%]{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.m-5[_ngcontent-%COMP%]{margin:3rem!important}.mt-5[_ngcontent-%COMP%]{margin-top:3rem!important}.mb-5[_ngcontent-%COMP%]{margin-bottom:3rem!important}.ms-5[_ngcontent-%COMP%]{margin-left:3rem!important}.me-5[_ngcontent-%COMP%]{margin-right:3rem!important}.mx-5[_ngcontent-%COMP%]{margin-left:3rem!important;margin-right:3rem!important}.my-5[_ngcontent-%COMP%]{margin-top:3rem!important;margin-bottom:3rem!important}.p-5[_ngcontent-%COMP%]{padding:3rem!important}.pt-5[_ngcontent-%COMP%]{padding-top:3rem!important}.pb-5[_ngcontent-%COMP%]{padding-bottom:3rem!important}.ps-5[_ngcontent-%COMP%]{padding-left:3rem!important}.pe-5[_ngcontent-%COMP%]{padding-right:3rem!important}.px-5[_ngcontent-%COMP%]{padding-left:3rem!important;padding-right:3rem!important}.py-5[_ngcontent-%COMP%]{padding-top:3rem!important;padding-bottom:3rem!important}@media only screen and (min-width:768px){.refresh-button[_ngcontent-%COMP%]{width:100px}}.refresh-box[_ngcontent-%COMP%]{padding-right:var(--bs-gutter-x, 1.5rem)}@media only screen and (max-width:768px){.refresh-box[_ngcontent-%COMP%]{padding-left:var(--bs-gutter-x, 1.5rem);padding-bottom:var(--bs-gutter-x, 1.5rem)}}table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{white-space:nowrap}table[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{list-style-type:none;padding-left:0;margin-bottom:0}table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:last-child, table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child{min-width:320px}.fleet-table[_ngcontent-%COMP%] .fleet-row[_ngcontent-%COMP%]{padding:var(--bs-gutter-x, 1.5rem);word-break:break-word}.fleet-table[_ngcontent-%COMP%] .fleet-row[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{list-style-type:none;padding-left:1rem}.fleet-table[_ngcontent-%COMP%] .fleet-row[_ngcontent-%COMP%]:nth-of-type(odd){background-color:#f9f9f9}.fleet-table[_ngcontent-%COMP%] .fleet-row[_ngcontent-%COMP%]:nth-of-type(2n){background-color:#fff}@media screen and (max-width:900px){.refresh-button[_ngcontent-%COMP%]{display:inline-block!important;align-self:flex-start!important}
1.modal-content[_ngcontent-%COMP%], .modal-body[_ngcontent-%COMP%]{width:100%!important;position:relative!important;left:0!important}}.fa-exclamation-triangle[_ngcontent-%COMP%]{color:#a94442;font-size:5em!important;vertical-align:middle}.vehicle-status-alert[_ngcontent-%COMP%]{display:grid;grid-template-rows:auto;grid-template-columns:auto 1fr;column-gap:var(--bs-gutter-x, 1.5rem);margin-left:150px}@media only screen and (max-width:1199.98px){.vehicle-status-alert[_ngcontent-%COMP%]{margin-left:0;column-gap:calc(var(--bs-gutter-x, 1.5rem) * .667);align-items:center}}@media only screen and (max-width:1199.98px){.fa-exclamation-triangle[_ngcontent-%COMP%]{font-size:4em!important}.alert-triangle[_ngcontent-%COMP%]{padding-top:0;display:flex;align-items:center;justify-content:center}}@media only screen and (max-width:575.98px){.fa-exclamation-triangle[_ngcontent-%COMP%]{font-size:3em!important}}.alert-triangle[_ngcontent-%COMP%]{padding-top:var(--bs-gutter-x, 1.5rem)}"]})}}return C})()},36862(Ht,T,d){"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.DtcLogComponent=void 0;const S=d(31635),u=(d(49849),d(21916),d(46346)),b=(d(79591),S.__importStar(d(33447))),g=d(6324),D=(d(20851),d(59091)),f=d(43481),v=d(59091),p=S.__importStar(d(49849)),J=S.__importStar(d(21916)),lt=S.__importStar(d(79591)),r=S.__importStar(d(20851)),I=S.__importStar(d(60177)),vt=S.__importStar(d(84341)),C=S.__importStar(d(4958));function ht(G,k){1&G&&p.\u0275\u0275elementContainer(0)}function F(G,k){if(1&G){const R=p.\u0275\u0275getCurrentView();p.\u0275\u0275elementStart(0,"div",10)(1,"div",11),p.\u0275\u0275text(2,"\xa0"),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(3,"div",12)(4,"div",13)(5,"div",14)(6,"i",15),p.\u0275\u0275listener("click",function(){p.\u0275\u0275restoreView(R);const st=p.\u0275\u0275nextContext(3);
1return p.\u0275\u0275resetView(st.searchDtc())}),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(7,"input",16),p.\u0275\u0275twoWayListener("ngModelChange",function(st){p.\u0275\u0275restoreView(R);const Dt=p.\u0275\u0275nextContext(3);return p.\u0275\u0275twoWayBindingSet(Dt.searchValue,st)||(Dt.searchValue=st),p.\u0275\u0275resetView(st)}),p.\u0275\u0275listener("keyup.enter",function(){p.\u0275\u0275restoreView(R);const st=p.\u0275\u0275nextContext(3);return p.\u0275\u0275resetView(st.searchDtc())}),p.\u0275\u0275elementEnd()()()()()}if(2&G){const R=p.\u0275\u0275nextContext(3);p.\u0275\u0275advance(7),p.\u0275\u0275twoWayProperty("ngModel",R.searchValue)}}function ct(G,k){if(1&G){const R=p.\u0275\u0275getCurrentView();p.\u0275\u0275elementStart(0,"div",6)(1,"div",7),p.\u0275\u0275listener("click",function(){p.\u0275\u0275restoreView(R);const st=p.\u0275\u0275nextContext(2);return p.\u0275\u0275resetView(st.toggleIsActive())}),p.\u0275\u0275element(2,"input",8)(3,"label"),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(4,"div",9),p.\u0275\u0275text(5," View Only Active DTCs "),p.\u0275\u0275elementEnd()(),p.\u0275\u0275conditionalCreate(6,F,8,1,"div",10)}if(2&G){const R=p.\u0275\u0275nextContext(2);p.\u0275\u0275advance(2),p.\u0275\u0275property("checked",R.isActiveDTCFilter),p.\u0275\u0275advance(4),p.\u0275\u0275conditional(R.unitDtcCapable&&R.hasDTCContract?6:-1)}}function at(G,k){1&G&&(p.\u0275\u0275elementStart(0,"div")(1,"div",5)(2,"div",17),p.\u0275\u0275element(3,"i",18),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(4,"div")(5,"h5"),p.\u0275\u0275text(6,"Active unit diagnostic trouble code (DTC) data is not currently available. Potential reasons include:"),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(7,"ul")(8,"li"),p.\u0275\u0275text(9," Vehicle has not created or sent data in the last 28 days. "),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(10,"li"),p.\u0275\u0275text(11," Vehicle does not have a paid access package. "),p.\u0275\u0275elementEnd()(),p.\u0275\u0275text(12," Need additional help? Please contact "),p.\u0275\u0275elementStart(13,"a",19),p.\u0275\u0275text(14,"Altec Fleet Services."),p.\u0275\u0275elementEnd()()()())}function rt(G,k){if(1&G&&p.\u0275\u0275element(0,"altec-connect-active-faults",4),2&G){const R=p.\u0275\u0275nextContext(2);p.\u0275\u0275property("activeFaults",R.unitFaults)("showRefresh",!1)("showDataLimitMessage",R.showDataLimitMessage)("unitDtcCapable",R.unitDtcCapable)}}function X(G,k){1&G&&(p.\u0275\u0275elementStart(0,"div")(1,"div")(2,"h5"),p.\u0275\u0275text(3,"Unit does not have diagnostic trouble code (DTC) capabilities."),p.\u0275\u0275elementEnd(),p.\u0275\u0275element(4,"br"),p.\u0275\u0275text(5," Need additional help? Please contact "),p.\u0275\u0275elementStart(6,"a",19),p.\u0275\u0275text(7,"Altec Fleet Services."),p.\u0275\u0275elementEnd()()())}function gt(G,k){1&G&&(p.\u0275\u0275elementStart(0,"div")(1,"h5"),p.\u0275\u0275text(2,"Unit diagnostic trouble code (DTC) data is not available within this date range. Please adjust your date selection."),p.\u0275\u0275elementEnd(),p.\u0275\u0275element(3,"br"),p.\u0275\u0275text(4," Need additional help? Please contact "),p.\u0275\u0275elementStart(5,"a",19),p.\u0275\u0275text(6,"Altec Fleet Services."),p.\u0275\u0275elementEnd()())}function mt(G,k){if(1&G&&(p.\u0275\u0275elementStart(0,"div")(1,"h5"),p.\u0275\u0275text(2),p.\u0275\u0275elementEnd(),p.\u0275\u0275element(3,"br"),p.\u0275\u0275text(4," Need additional help? Please contact "),p.\u0275\u0275elementStart(5,"a",19),p.\u0275\u0275text(6,"Altec Fleet Services."),p.\u0275\u0275elementEnd()()),2&G){const R=p.\u0275\u0275nextContext(3);p.\u0275\u0275advance(2),p.\u0275\u0275textInterpolate1('Your search "',R.searchValue,"\" didn't return any results. ")}}
1function St(G,k){if(1&G&&(p.\u0275\u0275elementStart(0,"div",5)(1,"div",17),p.\u0275\u0275element(2,"i",18),p.\u0275\u0275elementEnd(),p.\u0275\u0275conditionalCreate(3,X,8,0,"div"),p.\u0275\u0275conditionalCreate(4,gt,7,0,"div"),p.\u0275\u0275conditionalCreate(5,mt,7,1,"div"),p.\u0275\u0275elementEnd()),2&G){const R=p.\u0275\u0275nextContext(2);p.\u0275\u0275advance(3),p.\u0275\u0275conditional(!R.unitDtcCapable&&R.hasDTCContract?3:-1),p.\u0275\u0275advance(),p.\u0275\u0275conditional(!R.showEmptySearch&&R.unitDtcCapable?4:-1),p.\u0275\u0275advance(),p.\u0275\u0275conditional(R.showEmptySearch?5:-1)}}function ft(G,k){if(1&G&&(p.\u0275\u0275template(0,ht,1,0,"ng-container",1)(1,ct,7,2,"ng-template",null,0,p.\u0275\u0275templateRefExtractor),p.\u0275\u0275conditionalCreate(3,at,15,0,"div"),p.\u0275\u0275elementStart(4,"div",2)(5,"div",3),p.\u0275\u0275element(6,"br"),p.\u0275\u0275conditionalCreate(7,rt,1,4,"altec-connect-active-faults",4)(8,St,6,3,"div",5),p.\u0275\u0275elementEnd()()),2&G){const R=p.\u0275\u0275reference(2),U=p.\u0275\u0275nextContext();p.\u0275\u0275property("ngTemplateOutlet",R),p.\u0275\u0275advance(3),p.\u0275\u0275conditional(U.unitDtcCapable&&U.unitFaults&&0===U.unitFaults.length&&U.asset&&0===U.asset.length&&U.hasDTCContract?3:-1),p.\u0275\u0275advance(4),p.\u0275\u0275conditional(U.showDTCLog?7:8)}}function ot(G,k){1&G&&(p.\u0275\u0275elementStart(0,"div")(1,"div",5)(2,"div",17),p.\u0275\u0275element(3,"i",18),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(4,"div")(5,"h5"),p.\u0275\u0275text(6,"Active unit diagnostic trouble code (DTC) data is not currently available. Potential reasons include:"),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(7,"ul")(8,"li"),p.\u0275\u0275text(9," Vehicle does not have a paid access package. "),p.\u0275\u0275elementEnd()(),p.\u0275\u0275text(10," Need additional help? Please contact "),p.\u0275\u0275elementStart(11,"a",19),p.\u0275\u0275text(12,"Altec Fleet Services."),p.\u0275\u0275elementEnd()()()())}function B(G,k){1&G&&(p.\u0275\u0275elementStart(0,"div",5)(1,"div",17),p.\u0275\u0275element(2,"i",18),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(3,"div")(4,"h5"),p.\u0275\u0275text(5,"Active unit diagnostic trouble code (DTC) data is not currently available. Potential reasons include:"),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(6,"ul")(7,"li"),p.\u0275\u0275text(8," Vehicle has not created or sent data in the last 28 days. "),p.\u0275\u0275elementEnd()(),p.\u0275\u0275text(9," Need additional help? Please contact "),p.\u0275\u0275elementStart(10,"a",19),p.\u0275\u0275text(11,"Altec Fleet Services."),p.\u0275\u0275elementEnd()()())}function Ot(G,k){1&G&&(p.\u0275\u0275elementStart(0,"div",5)(1,"div",17),p.\u0275\u0275element(2,"i",18),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementStart(3,"div")(4,"h5"),p.\u0275\u0275text(5,"Unit does not have diagnostic trouble code (DTC) capabilities."),p.\u0275\u0275elementEnd(),p.\u0275\u0275element(6,"br"),p.\u0275\u0275text(7," Need additional help? Please contact "),p.\u0275\u0275elementStart(8,"a",19),p.\u0275\u0275text(9,"Altec Fleet Services."),p.\u0275\u0275elementEnd()()())}function $(G,k){if(1&G&&(p.\u0275\u0275conditionalCreate(0,ot,13,0,"div"),p.\u0275\u0275conditionalCreate(1,B,12,0,"div",5),p.\u0275\u0275conditionalCreate(2,Ot,10,0,"div",5)),2&G){const R=p.\u0275\u0275nextContext();p.\u0275\u0275conditional(R.hasDTCContract?-1:0),p.\u0275\u0275advance(),p.\u0275\u0275conditional(R.dtcCapableNoAssets&&R.hasDTCContract?1:-1),p.\u0275\u0275advance(),p.\u0275\u0275conditional(!R.dtcCapableNoAssets&&R.hasDTCContract?2:-1)}}T.DtcLogComponent=(()=>{class G{constructor(R,U,st,Dt){this.fleetService=R,this.googleService=U,this.loader=st,this.cd=Dt,this.isActiveDTCFilter=!1,this.showSorterOptions=!1,this.showDTCLog=!1,this.showEmptySearch=!1,this.hasDTCLog=!1,this.showAllDates=!0,this.searchValue="",this.hasDTCContract=!0,this.showDataLimitMessage=!1,this.$unsub=new D.Subject}ngOnInit(){this.initializeDates(),this.findUnitFaults();let R=[];R.push(this.instanceId),this.fleetService.getAssets(R,["RemoteDiag"]).pipe((0,f.takeUntil)(this.$unsub)).subscribe(U=>
1{U&&U.assets[0].lastKnownSignals.length>0&&(this.asset=U.assets)})}searchDtc(){this.showEmptySearch=!1,this.findUnitFaults(this.searchValue)}initializeDates(){let R=new Date;this.earliestAllowedDate=new Date(b.subDays(R,28)),this.earliestAllowedDateParam=new g.NgbDate(this.earliestAllowedDate.getFullYear(),this.earliestAllowedDate.getMonth()+1,this.earliestAllowedDate.getDate()),this.startTime=new Date(b.subDays(R,28)),this.endTime=R,this.showAllDates=!1}setDateRange(R){R.startDate&&R.endDate?(this.startTime=R.startDate,this.endTime=R.endDate,this.showAllDates=!1):(this.startTime=new Date(u.FIRST_TELEMATICS_EVENT_DATE),this.endTime=new Date,this.showAllDates=!0),this.googleService.emitEvent({eventCategory:"Unit Detail",eventAction:"Date Applied",eventLabel:"Unit DTC Historical Log Date Range"},()=>{}),this.hasDTCLog&&this.findUnitFaults()}toggleIsActive(){this.isActiveDTCFilter=!this.isActiveDTCFilter,this.findUnitFaults(this.searchValue)}findUnitFaults(R){this.loader.start(),this.showDTCLog=!1,this.showDataLimitMessage=!1;const U=b.format(this.startTime,"yyyy-MM-dd"),st=b.format(this.endTime,"yyyy-MM-dd");if(this.isActiveDTCFilter)this.fleetService.findUnitDTCs(this.instanceId,"UDTC0",this.isActiveDTCFilter,U,st,R).pipe((0,f.takeUntil)(this.$unsub)).subscribe(Dt=>{this.processUnitDTCs(Dt,R),this.cd.detectChanges()});else{const Dt=this.fleetService.findUnitDTCs(this.instanceId,"UDTC0",!1,U,st,R),Jt=this.fleetService.findUnitDTCs(this.instanceId,"UDTC0",!0,U,st,R);(0,v.forkJoin)([Dt,Jt]).pipe((0,f.takeUntil)(this.$unsub)).subscribe(([bt,kt])=>{const q=[...Array.isArray(bt?.results)?bt.results:[],...Array.isArray(kt?.results)?kt.results:[]].filter((Tt,_t,dt)=>dt.findIndex(Mt=>Mt.transitionTime===Tt.transitionTime&&Mt.codeName===Tt.codeName)===_t);this.processUnitDTCs({...bt,results:q},R),this.cd.detectChanges()})}}processUnitDTCs(R,U){R?(R.matchingCount>25&&(this.showDataLimitMessage=!0),this.hasDTCLog=!0,this.hasDTCContract=!0,this.unitFaults=R.results.sort((st,Dt)=>st.transitionTime>Dt.transitionTime?-1:st.transitionTime<Dt.transitionTime?1:0),this.unitDtcCapable=R.unitDtcCapable,this.showDTCLog=!0,this.showEmptySearch=!1,0===R.matchingCount&&this.unitDtcCapable&&(this.dtcCapableNoAssets=!0),this.loader.stop()):(this.hasDTCContract=!1,this.hasDTCLog=!1,this.unitFaults=[],this.showDTCLog=!1,U&&U?.length>0&&(this.showEmptySearch=!0),this.loader.stop())}ngOnDestroy(){this.$unsub.next(),this.$unsub.complete()}static{this.\u0275fac=function(U){return new(U||G)(p.\u0275\u0275directiveInject(J.FleetService),p.\u0275\u0275directiveInject(lt.GoogleServicesService),p.\u0275\u0275directiveInject(r.LoadingService),p.\u0275\u0275directiveInject(p.ChangeDetectorRef))}}static{this.\u0275cmp=p.\u0275\u0275defineComponent({type:G,selectors:[["altec-connect-dtc-log"]],inputs:{instanceId:"instanceId",isActiveDTCFilter:"isActiveDTCFilter"},standalone:!1,decls:2,vars:1,consts:[["optionsForm",""],[4,"ngTemplateOutlet"],[1,"row"],[1,"col-12"],[3,"activeFaults","showRefresh","showDataLimitMessage","unitDtcCapable"],[1,"vehicle-status-alert"],[1,"row","d-flex","toggle-row","mx-0","mb-3"],[1,"col-auto","toggle-container","px-0",3,"click"],["type","checkbox",3,"checked"],[1,"col-auto","label-col"],[1,"row","d-flex","align-items-center","justify-content-center"],[1,"w-100","d-block","d-md-none"],[1,"col"],[1,"row","search-input-row"],[1,"col-12","px-0","dtc-search-col"],[1,"fa","fa-search",3,"click"],["name","searchValue","type","search","autocomplete","off","placeholder","Search for Code Name, Impact, Cause, or Recommendation ",1,"form-control","show-placeholder","no-ms-clear","dtc-search-input",3,"ngModelChange","keyup.enter","ngModel"],[1,"alert-triangle"],[1,"fa","fa-exclamation-triangle"],["href","mailto:[email protected]"]],template:function(U,st){1&U&&p.\u0275\u0275conditionalCreate(0,ft,9,3)(1,$,3,3),2&U&&p.\u0275\u0275conditional(st.hasDTCLog?0:1)},dependencies:[I.NgTemplateOutlet,vt.DefaultValueAccessor,vt.NgControlStatus,vt.NgModel,C.ActiveFaultsComponent],styles:['[_ngcontent-%COMP%]:root{--bs-gutter-x: 1.5rem;--bs-gutter-y: 1.5rem}.d-flex[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{float:none}.col[_ngcontent-%COMP%]{flex:1 0 0;padding-left:var(--bs-gutter-x, 1.5rem);padding-right:var(--bs-gutter-x, 1.5rem)}@media only screen and (min-width:576px){.col-sm-auto[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;max-width:none}}@media only screen and (min-width:768px){.col-md-auto[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;max-width:none}}.col-auto[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;max-width:100%;padding-left:var(--bs-gutter-x, 1.5rem);padding-right:var(--bs-gutter-x, 1.5rem)}.justify-content-center[_ngcontent-%COMP%]{justify-content:center}.justify-content-end[_ngcontent-%COMP%]{justify-content:end}.align-items-center[_ngcontent-%COMP%]{align-items:center}.align-items-end[_ngcontent-%COMP%]{align-items:end}.flex-column-reverse[_ngcontent-%COMP%]{flex-direction:column-reverse}.d-flex[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}@media only screen and (min-width:768px){.d-md-block[_ngcontent-%COMP%]{display:block}}@media only screen and (min-width:768px){.d-md-none[_ngcontent-%COMP%]{display:none}}@media only screen and (min-width:768px){.d-md-flex[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}}@media only screen and (min-width:992px){.d-lg-none[_ngcontent-%COMP%]{display:none!important}}@media only screen and (min-width:992px){.d-lg-block[_ngcontent-%COMP%]{display:block!important}}.w-100[_ngcontent-%COMP%]{width:100%!important}.h-100[_ngcontent-%COMP%]{height:100%!important}.px-3[_ngcontent-%COMP%]{padding-left:15px!important;padding-right:15px!important}.pr-0[_ngcontent-%COMP%]{padding-right:0!important}.pl-0[_ngcontent-%COMP%]{padding-left:0!important}.pt-3[_ngcontent-%COMP%]{padding-top:1rem}.pb-3[_ngcontent-%COMP%]{padding-bottom:1rem}.mb-3[_ngcontent-%COMP%]{margin-bottom:1rem}.pb-2[_ngcontent-%COMP%]{padding-bottom:.5rem}@media print{.no-print[_ngcontent-%COMP%]{display:none!important}}.m-0[_ngcontent-%COMP%]{margin:0!important}.mt-0[_ngcontent-%COMP%]{margin-top:0!important}.mb-0[_ngcontent-%COMP%]{margin-bottom:0!important}.ms-0[_ngcontent-%COMP%]{margin-left:0!important}.me-0[_ngcontent-%COMP%]{margin-right:0!important}.mx-0[_ngcontent-%COMP%]{margin-left:0!important;margin-right:0!important}.my-0[_ngcontent-%COMP%]{margin-top:0!important;margin-bottom:0!important}.p-0[_ngcontent-%COMP%]{padding:0!important}.pt-0[_ngcontent-%COMP%]{padding-top:0!important}.pb-0[_ngcontent-%COMP%]{padding-bottom:0!important}.ps-0[_ngcontent-%COMP%]{padding-left:0!important}.pe-0[_ngcontent-%COMP%]{padding-right:0!important}.px-0[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.py-0[_ngcontent-%COMP%]{padding-top:0!important;padding-bottom:0!important}.m-1[_ngcontent-%COMP%]{margin:.25rem!important}.mt-1[_ngcontent-%COMP%]{margin-top:.25rem!important}.mb-1[_ngcontent-%COMP%]{margin-bottom:.25rem!important}.ms-1[_ngcontent-%COMP%]{margin-left:.25rem!important}.me-1[_ngcontent-%COMP%]{margin-right:.25rem!important}.mx-1[_ngcontent-%COMP%]{margin-left:.25rem!important;margin-right:.25rem!important}.my-1[_ngcontent-%COMP%]{margin-top:.25rem!important;margin-bottom:.25rem!important}.p-1[_ngcontent-%COMP%]{padding:.25rem!important}.pt-1[_ngcontent-%COMP%]{padding-top:.25rem!important}.pb-1[_ngcontent-%COMP%]{padding-bottom:.25rem!important}.ps-1[_ngcontent-%COMP%]{padding-left:.25rem!important}.pe-1[_ngcontent-%COMP%]{padding-right:.25rem!important}.px-1[_ngcontent-%COMP%]{padding-left:.25rem!important;padding-right:.25rem!important}.py-1[_ngcontent-%COMP%]{padding-top:.25rem!important;padding-bottom:.25rem!important}.m-2[_ngcontent-%COMP%]{margin:.5rem!important}.mt-2[_ngcontent-%COMP%]{margin-top:.5rem!important}.mb-2[_ngcontent-%COMP%]{margin-bottom:.5rem!important}.ms-2[_ngcontent-%COMP%]{margin-left:.5rem!important}.me-2[_ngcontent-%COMP%]{margin-right:.5rem!important}.mx-2[_ngcontent-%COMP%]{margin-left:.5rem!important;margin-right:.5rem!important}.my-2[_ngcontent-%COMP%]{margin-top:.5rem!important;margin-bottom:.5rem!important}.p-2[_ngcontent-%COMP%]{padding:.5rem!important}.pt-2[_ngcontent-%COMP%]{padding-top:.5rem!important}.pb-2[_ngcontent-%COMP%]{padding-bottom:.5rem!important}.ps-2[_ngcontent-%COMP%]{padding-left:.5rem!important}
1.pe-2[_ngcontent-%COMP%]{padding-right:.5rem!important}.px-2[_ngcontent-%COMP%]{padding-left:.5rem!important;padding-right:.5rem!important}.py-2[_ngcontent-%COMP%]{padding-top:.5rem!important;padding-bottom:.5rem!important}.m-3[_ngcontent-%COMP%]{margin:1rem!important}.mt-3[_ngcontent-%COMP%]{margin-top:1rem!important}.mb-3[_ngcontent-%COMP%]{margin-bottom:1rem!important}.ms-3[_ngcontent-%COMP%]{margin-left:1rem!important}.me-3[_ngcontent-%COMP%]{margin-right:1rem!important}.mx-3[_ngcontent-%COMP%]{margin-left:1rem!important;margin-right:1rem!important}.my-3[_ngcontent-%COMP%]{margin-top:1rem!important;margin-bottom:1rem!important}.p-3[_ngcontent-%COMP%]{padding:1rem!important}.pt-3[_ngcontent-%COMP%]{padding-top:1rem!important}.pb-3[_ngcontent-%COMP%]{padding-bottom:1rem!important}.ps-3[_ngcontent-%COMP%]{padding-left:1rem!important}.pe-3[_ngcontent-%COMP%]{padding-right:1rem!important}.px-3[_ngcontent-%COMP%]{padding-left:1rem!important;padding-right:1rem!important}.py-3[_ngcontent-%COMP%]{padding-top:1rem!important;padding-bottom:1rem!important}.m-4[_ngcontent-%COMP%]{margin:1.5rem!important}.mt-4[_ngcontent-%COMP%]{margin-top:1.5rem!important}.mb-4[_ngcontent-%COMP%]{margin-bottom:1.5rem!important}.ms-4[_ngcontent-%COMP%]{margin-left:1.5rem!important}.me-4[_ngcontent-%COMP%]{margin-right:1.5rem!important}.mx-4[_ngcontent-%COMP%]{margin-left:1.5rem!important;margin-right:1.5rem!important}.my-4[_ngcontent-%COMP%]{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.p-4[_ngcontent-%COMP%]{padding:1.5rem!important}.pt-4[_ngcontent-%COMP%]{padding-top:1.5rem!important}.pb-4[_ngcontent-%COMP%]{padding-bottom:1.5rem!important}.ps-4[_ngcontent-%COMP%]{padding-left:1.5rem!important}.pe-4[_ngcontent-%COMP%]{padding-right:1.5rem!important}.px-4[_ngcontent-%COMP%]{padding-left:1.5rem!important;padding-right:1.5rem!important}.py-4[_ngcontent-%COMP%]{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.m-5[_ngcontent-%COMP%]{margin:3rem!important}.mt-5[_ngcontent-%COMP%]{margin-top:3rem!important}.mb-5[_ngcontent-%COMP%]{margin-bottom:3rem!important}.ms-5[_ngcontent-%COMP%]{margin-left:3rem!important}.me-5[_ngcontent-%COMP%]{margin-right:3rem!important}.mx-5[_ngcontent-%COMP%]{margin-left:3rem!important;margin-right:3rem!important}.my-5[_ngcontent-%COMP%]{margin-top:3rem!important;margin-bottom:3rem!important}.p-5[_ngcontent-%COMP%]{padding:3rem!important}.pt-5[_ngcontent-%COMP%]{padding-top:3rem!important}.pb-5[_ngcontent-%COMP%]{padding-bottom:3rem!important}.ps-5[_ngcontent-%COMP%]{padding-left:3rem!important}.pe-5[_ngcontent-%COMP%]{padding-right:3rem!important}.px-5[_ngcontent-%COMP%]{padding-left:3rem!important;padding-right:3rem!important}.py-5[_ngcontent-%COMP%]{padding-top:3rem!important;padding-bottom:3rem!important}select[_ngcontent-%COMP%]{overflow:auto;width:100%;height:auto;cursor:pointer}option[_ngcontent-%COMP%]:hover{background-color:#d3d3d3}.alert-triangle[_ngcontent-%COMP%]{padding-top:15px}.search-input-row[_ngcontent-%COMP%]{display:flex;width:100%;margin-left:0;margin-right:0;justify-content:right}@media(max-width:768px){.search-input-row[_ngcontent-%COMP%]{justify-content:center}}.search-input-row[_ngcontent-%COMP%] .dtc-search-col[_ngcontent-%COMP%]{position:relative;width:100%;max-width:500px}.search-input-row[_ngcontent-%COMP%] .dtc-search-col[_ngcontent-%COMP%] .fa-search[_ngcontent-%COMP%]{position:absolute;top:12px;left:10px}.search-input-row[_ngcontent-%COMP%] .dtc-search-col[_ngcontent-%COMP%] .fa-search[_ngcontent-%COMP%]:hover{cursor:pointer}.dtc-search-input[_ngcontent-%COMP%]{width:100%;border-radius:4px;border:1px solid #ccc;font-size:16px;color:#555;height:36px;box-shadow:inset 0 1px 1px #00000013;padding-left:3rem}.dtc-search-input[_ngcontent-%COMP%]:focus{outline:none;border-color:#ccc;box-shadow:inset 0 1px 1px #00000013}.date-col[_ngcontent-%COMP%]{max-height:34px;width:auto}@media(max-width:768px){.date-col[_ngcontent-%COMP%]{width:100%;max-width:530px}}.fa-exclamation-triangle[_ngcontent-%COMP%]{color:#a94442;font-size:5em!important;vertical-align:middle}@media(max-width:800px){.fa-exclamation-triangle[_ngcontent-%COMP%]{color:#a94442;font-size:2em!important;vertical-align:middle}}.vehicle-status-alert[_ngcontent-%COMP%]{display:grid;grid-template-rows:auto;grid-template-columns:10% 90%}@media(max-width:800px){.vehicle-status-alert[_ngcontent-%COMP%]{display:grid;grid-template-rows:auto;grid-template-columns:15% 85%}}.toggle-row[_ngcontent-%COMP%]{justify-content:end;align-items:center}.toggle-row[_ngcontent-%COMP%] .label-col[_ngcontent-%COMP%]{padding-left:1rem}.toggle-container[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;height:fit-content;width:fit-content;text-align:center}.toggle-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{visibility:hidden;width:0;height:0;margin:0}.toggle-container[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{position:relative;display:inline-block;width:30px;height:16px;background-color:#d7d8da;border-radius:15px;transition:background .15s linear;cursor:pointer;margin-bottom:0}.toggle-container[_ngcontent-%COMP%] label[_ngcontent-%COMP%]:after{content:"";position:absolute;
1left:6%;top:6.5%;width:14px;height:14px;border-radius:50%;background-color:#fff;transition:left .15s ease-out}.toggle-container[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]:checked ~ label[_ngcontent-%COMP%]{background-color:#efb310}.toggle-container[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]:checked ~ label[_ngcontent-%COMP%]:after{left:15px}']})}}return G})()},29854(Ht,T,d){"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.EventCardComponent=void 0;const S=d(31635),N=S.__importStar(d(77162)),O=d(83352),o=(d(6324),d(62190)),D=(d(79591),d(97377),d(7901),S.__importStar(d(49849))),f=S.__importStar(d(6324)),v=S.__importStar(d(79591)),p=S.__importStar(d(97377)),J=S.__importStar(d(7901)),lt=S.__importStar(d(60177)),r=S.__importStar(d(92325)),I=S.__importStar(d(22850)),vt=$=>({eventCategory:$,eventAction:"Link Clicked",eventLabel:"Event Details viewed"}),C=($,j)=>["/pages/dashboard/equipment/fleetservices/event-details",$,j],ht=($,j,G,k)=>({eventFilter:$,eventCategoryFilter:j,sortDirection:G,sortBy:k});function F($,j){if(1&$&&D.\u0275\u0275element(0,"i",9)(1,"div",10),2&$){const G=D.\u0275\u0275nextContext();D.\u0275\u0275property("ngClass",G.isSafetyEvent?"fa-exclamation-triangle":"fa-tachometer")}}function ct($,j){if(1&$&&D.\u0275\u0275element(0,"i",11)(1,"div",12),2&$){const G=D.\u0275\u0275nextContext();D.\u0275\u0275property("ngClass",G.isSafetyEvent?"fa-exclamation-triangle":"fa-tachometer")}}function at($,j){if(1&$&&D.\u0275\u0275element(0,"i",13)(1,"div",14),2&$){const G=D.\u0275\u0275nextContext();D.\u0275\u0275property("ngClass",G.isSafetyEvent?"fa-exclamation-triangle":"fa-tachometer")}}function rt($,j){if(1&$&&D.\u0275\u0275element(0,"i",15)(1,"div",16),2&$){const G=D.\u0275\u0275nextContext();D.\u0275\u0275property("ngClass",G.isSafetyEvent?"fa-exclamation-triangle":"fa-tachometer")}}function X($,j){if(1&$&&(D.\u0275\u0275elementContainerStart(0),D.\u0275\u0275elementStart(1,"div",18)(2,"div",19),D.\u0275\u0275text(3),D.\u0275\u0275elementEnd()(),D.\u0275\u0275elementContainerEnd()),2&$){const G=D.\u0275\u0275nextContext(2);D.\u0275\u0275advance(3),D.\u0275\u0275textInterpolate(G.statefulService.getOrgNameWithId(G.event.custAccountId))}}function gt($,j){1&$&&D.\u0275\u0275template(0,X,4,1,"ng-container",17),2&$&&D.\u0275\u0275property("isMobileView",!0)}function mt($,j){if(1&$&&(D.\u0275\u0275elementStart(0,"div",5)(1,"div",6)(2,"span",7),D.\u0275\u0275text(3,"Customer Vehicle #: "),D.\u0275\u0275elementEnd(),D.\u0275\u0275text(4),D.\u0275\u0275elementEnd(),D.\u0275\u0275elementStart(5,"div",6)(6,"span",7),D.\u0275\u0275text(7,"Unit Model: "),D.\u0275\u0275elementEnd(),D.\u0275\u0275text(8),D.\u0275\u0275elementEnd(),D.\u0275\u0275elementStart(9,"div",6)(10,"span",7),D.\u0275\u0275text(11,"Unit Serial #: "),D.\u0275\u0275elementEnd(),D.\u0275\u0275text(12),D.\u0275\u0275elementEnd(),D.\u0275\u0275elementStart(13,"div",6)(14,"span",7),D.\u0275\u0275text(15,"FA Serial #: "),D.\u0275\u0275elementEnd(),D.\u0275\u0275text(16),D.\u0275\u0275elementEnd(),D.\u0275\u0275elementStart(17,"div",6)(18,"span",7),D.\u0275\u0275text(19,"Chassis VIN: "),D.\u0275\u0275elementEnd(),D.\u0275\u0275text(20),D.\u0275\u0275elementEnd()()),2&$){const G=D.\u0275\u0275nextContext();D.\u0275\u0275advance(4),D.\u0275\u0275textInterpolate1(" ",G.event.externalReference?G.event.externalReference:"None"," "),D.\u0275\u0275advance(4),D.\u0275\u0275textInterpolate1(" ",G.event.model," "),D.\u0275\u0275advance(4),D.\u0275\u0275textInterpolate1(" ",G.event.unitSeri
1alNumber," "),D.\u0275\u0275advance(4),D.\u0275\u0275textInterpolate1(" ",G.event.finalAssemblyNumber," "),D.\u0275\u0275advance(4),D.\u0275\u0275textInterpolate1(" ",G.event.altecChsSerial," ")}}function St($,j){if(1&$&&(D.\u0275\u0275elementContainerStart(0),D.\u0275\u0275elementStart(1,"div",20)(2,"div",19),D.\u0275\u0275text(3),D.\u0275\u0275elementEnd()(),D.\u0275\u0275elementContainerEnd()),2&$){const G=D.\u0275\u0275nextContext(2);D.\u0275\u0275advance(3),D.\u0275\u0275textInterpolate(G.statefulService.getOrgNameWithId(G.event.custAccountId))}}function ft($,j){1&$&&D.\u0275\u0275template(0,St,4,1,"ng-container",17),2&$&&D.\u0275\u0275property("isMobileView",!1)}function ot($,j){if(1&$){const G=D.\u0275\u0275getCurrentView();D.\u0275\u0275elementStart(0,"div")(1,"a",21),D.\u0275\u0275listener("click",function(){D.\u0275\u0275restoreView(G);const R=D.\u0275\u0275nextContext();return D.\u0275\u0275resetView(R.openEventMap())}),D.\u0275\u0275text(2," View Location "),D.\u0275\u0275elementEnd()()}}function B($,j){1&$&&(D.\u0275\u0275elementStart(0,"div")(1,"div",22),D.\u0275\u0275text(2," Event Location Unavailable "),D.\u0275\u0275elementEnd()())}T.EventCardComponent=(()=>{class ${constructor(G,k,R,U){this.modalService=G,this.googleService=k,this.statefulService=R,this.router=U,this.formatters=N,this.isUnitDetail=!1,this.showMapDetailsLink=!0,this.showUnitInformation=!0,this.modalDefaultOptions=O.GlobalConstants.MODAL_DEFAULT_OPTIONS,this.locationStatus="DIAGNOSTIC"}ngOnInit(){this.setLocationStatus(),this.router.queryParams.subscribe(G=>{this.eventFilter=G.eventFilter||"",this.eventCategoryFilter=G.eventCategoryFilter||"",this.sortDirection=G.sortDirection||"",this.sortBy=G.sortBy||""})}get isFirst(){return 0===this.index}get isEven(){return this.index%2==0}setLocationStatus(){this.locationStatus="DIAGNOSTIC"===this.event.source.toUpperCase()?"DIAGNOSTIC":this.event.locationLatitude||this.event.locationLongitude?"visible":"unavailable"}openEventMap(){this.googleService.emitEvent({eventCategory:this.isSafetyEvent?"Safety Event Search":"Performance Event Search",eventAction:"Clicked link",eventLabel:"Show location"},()=>{});const R=this.modalService.open(o.EventMapModalComponent,this.modalDefaultOptions);R.componentInstance.event=this.event,R.componentInstance.showMapDetailsLink=this.showMapDetailsLink}static{this.\u0275fac=function(k){return new(k||$)(D.\u0275\u0275directiveInject(f.NgbModal),D.\u0275\u0275directiveInject(v.GoogleServicesService),D.\u0275\u0275directiveInject(p.StatefulService),D.\u0275\u0275directiveInject(J.ActivatedRoute))}}static{this.\u0275cmp=D.\u0275\u0275defineComponent({type:$,selectors:[["app-event-card"]],inputs:{event:"event",isUnitDetail:"isUnitDetail",showMapDetailsLink:"showMapDetailsLink",index:"index",showUnitInformation:"showUnitInformation",isSafetyEvent:"isSafetyEvent"},standalone:!1,decls:35,vars:33,consts:[[1,"list-item"],[1,"item-content"],[1,"event-title"],[3,"gaEvent","routerLink","queryParams"],[1,"content-section"],[1,"content-subsection"],[1,"subsection-item"],[1,"subsection-label"],[1,"org-badge"],[1,"fa","item-header-critical",3,"ngClass"],[1,"header-arrow-critical"],[1,"fa","item-header-major",3,"ngClass"],[1,"header-arrow-major"],[1,"fa","item-header-moderate",3,"ngClass"],[1,"header-arrow-moderate"],[1,"fa","item-header-none",3,"ngClass"],[1,"header-arrow-none"],[4,"isMobileView"],[1,"object-company-label","mobile-label","mobile-margin"],[1,"customer-name"],[1,"object-company-label"],["href","javascript:;",1,"float-end",3,"click"],[1,"float-end"]],template:function(k,R){if(1&k&&(D.\u0275\u0275elementStart(0,"div",0),D.\u0275\u0275conditionalCreate(1,F,2,1),D.\u0275\u0275conditionalCreate(2,ct,2,1),D.\u0275\u0275conditionalCreate(3,at,2,1),D.\u0275\u0275conditionalCreate(4,rt,2,1),D.\u0275\u0275elementStart(5,"div",1)(6,"div")(7,"div",2)(8,"a",3),D.\u0275\u0275text(9),D.\u0275\u0275elementEnd()(),D.\u0275\u0275conditionalCreate(10,gt,1,1,"ng-container"),D.\u0275\u0275elementEnd(),D.\u0275\u0275elementStart(11,"div",4),D.\u0275\u0275conditionalCreate(12,mt,21,5,"div",5),D.\u0275\u0275elementStart(13,"div",5)(14,"div",6)(15,"span",7),D.\u0275\u0275text(16,"Severity: "),D.\u0275\u0275elementEnd(),D.\u0275\u0275text(17),D.\u0275\u0275elementEnd(),D.\u0275\u0275elementStart(18,"div",6)(19,"span",7),D.\u0275\u0275text(20,"Potential Cause: "),D.\u0275\u0275elementEnd(),D.\u0275\u0275text(2
11),D.\u0275\u0275elementEnd(),D.\u0275\u0275elementStart(22,"div",6)(23,"span",7),D.\u0275\u0275text(24,"Recommendation: "),D.\u0275\u0275elementEnd(),D.\u0275\u0275text(25),D.\u0275\u0275elementEnd(),D.\u0275\u0275elementStart(26,"div",6)(27,"span",7),D.\u0275\u0275text(28,"Date & Time: "),D.\u0275\u0275elementEnd(),D.\u0275\u0275text(29),D.\u0275\u0275pipe(30,"date"),D.\u0275\u0275elementEnd()()(),D.\u0275\u0275elementStart(31,"div",8),D.\u0275\u0275conditionalCreate(32,ft,1,1,"ng-container"),D.\u0275\u0275elementEnd(),D.\u0275\u0275conditionalCreate(33,ot,3,0,"div")(34,B,3,0,"div"),D.\u0275\u0275elementEnd()()),2&k){let U;D.\u0275\u0275classProp("list-item-first",R.isFirst)("list-item-even",R.isEven),D.\u0275\u0275advance(),D.\u0275\u0275conditional(R.formatters.isSeverityHigh(R.event)?1:-1),D.\u0275\u0275advance(),D.\u0275\u0275conditional(R.formatters.isSeverityMedium(R.event)?2:-1),D.\u0275\u0275advance(),D.\u0275\u0275conditional(R.formatters.isSeverityLow(R.event)?3:-1),D.\u0275\u0275advance(),D.\u0275\u0275conditional(R.formatters.isSeverityInformational(R.event)?4:-1),D.\u0275\u0275advance(4),D.\u0275\u0275property("gaEvent",D.\u0275\u0275pureFunction1(23,vt,R.isSafetyEvent?"Safety Event Search":"Performance Event Search"))("routerLink",D.\u0275\u0275pureFunction2(25,C,R.event.eventId,R.isSafetyEvent?"safety":"performance"))("queryParams",D.\u0275\u0275pureFunction4(28,ht,R.eventFilter,R.eventCategoryFilter,R.sortDirection,R.sortBy)),D.\u0275\u0275advance(),D.\u0275\u0275textInterpolate1(" ",R.event.eventType||"Other"," "),D.\u0275\u0275advance(),D.\u0275\u0275conditional(R.statefulService.isParentHoldingAndViewingAll()&&!R.isUnitDetail&&""!==R.statefulService.getOrgNameWithId(R.event.custAccountId)?10:-1),D.\u0275\u0275advance(2),D.\u0275\u0275conditional(R.showUnitInformation?12:-1),D.\u0275\u0275advance(5),D.\u0275\u0275textInterpolate1(" ",R.formatters.severityLabel(R.event)," "),D.\u0275\u0275advance(4),D.\u0275\u0275textInterpolate1(" ",R.event.rulePotentialCause||"-"," "),D.\u0275\u0275advance(4),D.\u0275\u0275textInterpolate1(" ",R.event.ruleRecommendedAction||"-"," "),D.\u0275\u0275advance(4),D.\u0275\u0275textInterpolate1(" ",D.\u0275\u0275pipeBind2(30,20,R.formatters.startTimeLabelDate(R.event),"medium")," "),D.\u0275\u0275advance(3),D.\u0275\u0275conditional(R.statefulService.isParentHoldingAndViewingAll()&&!R.isUnitDetail&&""!==R.statefulService.getOrgNameWithId(R.event.custAccountId)?32:-1),D.\u0275\u0275advance(),D.\u0275\u0275conditional("visible"===(U=R.locationStatus)?33:"unavailable"===U?34:-1)}},dependencies:[lt.NgClass,J.RouterLink,r.GaEventDirective,I.SelectiveView,lt.DatePipe],styles:["[_ngcontent-%COMP%]:root{--bs-gutter-x: 1.5rem;--bs-gutter-y: 1.5rem}.d-flex[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{float:none}.col[_ngcontent-%COMP%]{flex:1 0 0;padding-left:var(--bs-gutter-x, 1.5rem);padding-right:var(--bs-gutter-x, 1.5rem)}@media only screen and (min-width:576px){.col-sm-auto[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;max-width:none}}@media only screen and (min-width:768px){.col-md-auto[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;max-width:none}}.col-auto[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;max-width:100%;padding-left:var(--bs-gutter-x, 1.5rem);padding-right:var(--bs-gutter-x, 1.5rem)}.justify-content-center[_ngcontent-%COMP%]{justify-content:center}.justify-content-end[_ngcontent-%COMP%]{justify-content:end}.align-items-center[_ngcontent-%COMP%]{align-items:center}.align-items-end[_ngcontent-%COMP%]{align-items:end}.flex-column-reverse[_ngcontent-%COMP%]{flex-direction:column-reverse}.d-flex[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}@media only screen and (min-width:768px){.d-md-block[_ngcontent-%COMP%]{display:block}}@media only screen and (min-width:768px){.d-md-none[_ngcontent-%COMP%]{display:none}}@media only screen and (min-width:768px){.d-md-flex[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}}@media only screen and (min-width:992px){.d-lg-none[_ngcontent-%COMP%]{display:none!important}}@media only screen and (min-width:992px){.d-lg-block[_ngcontent-%COMP%]{display:block!important}}.w-100[_ngcontent-%COMP%]{width:100%!important}.h-100[_ngcontent-%COMP%]{height:100%!important}.px-3[_ngcontent-%COMP%]{padding-left:15px!important;padding-right:15px!important}.pr-0[_ngcontent-%COMP%]{padding-right:0!important}.pl-0[_ngcontent-%COMP%]{padding-left:0!important}.pt-3[_ngcontent-%COMP%]{padding-top:1rem}.pb-3[_ngcontent-%COMP%]{padding-bottom:1rem}.mb-3[_ngcontent-%COMP%]{margin-bottom:1rem}.pb-2[_ngcontent-%COMP%]{padding-bottom:.5rem}@media print{.no-print[_ngcontent-%COMP%]{display:none!important}}.m-0[_ngcontent-%COMP%]{margin:0!important}.mt-0[_ngcontent-%COMP%]{margin-top:0!important}.mb-0[_ngcontent-%COMP%]{margin-bottom:0!important}.ms-0[_ngcontent-%COMP%]{margin-left:0!important}.me-0[_ngcontent-%COMP%]{margin-right:0!important}.mx-0[_ngcontent-%COMP%]{margin-left:0!important;margin-right:0!important}.my-0[_ngcontent-%COMP%]{margin-top:0!important;margin-bottom:0!important}.p-0[_ngcontent-%COMP%]{padding:0!important}.pt-0[_ngcontent-%COMP%]{padding-top:0!important}.pb-0[_ngcontent-%COMP%]{padding-bottom:0!important}.ps-0[_ngcontent-%COMP%]{padding-left:0!important}.pe-0[_ngcontent-%COMP%]{padding-right:0!important}.px-0[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.py-0[_ngcontent-%COMP%]{padding-top:0!important;padding-bottom:0!important}.m-1[_ngcontent-%COMP%]{margin:.25rem!important}.mt-1[_ngcontent-%COMP%]{margin-top:.25rem!important}.mb-1[_ngcontent-%COMP%]{margin-bottom:.25rem!important}.ms-1[_ngcontent-%COMP%]{margin-left:.25rem!important}.me-1[_ngcontent-%COMP%]{margin-right:.25rem!important}.mx-1[_ngcontent-%COMP%]{margin-left:.25rem!important;margin-right:.25rem!important}.my-1[_ngcontent-%COMP%]{margin-top:.25rem!important;margin-bottom:.25rem!important}.p-1[_ngcontent-%COMP%]{padding:.25rem!important}.pt-1[_ngcontent-%COMP%]{padding-top:.25rem!important}.pb-1[_ngcontent-%COMP%]{padding-bottom:.25rem!important}.ps-1[_ngcontent-%COMP%]{padding-left:.25rem!important}.pe-1[_ngcontent-%COMP%]{padding-right:.25rem!important}.px-1[_ngcontent-%COMP%]{padding-left:.25rem!important;padding-right:.25rem!important}.py-1[_ngcontent-%COMP%]{padding-top:.25rem!important;padding-bottom:.25rem!important}.m-2[_ngcontent-%COMP%]{margin:.5rem!important}.mt-2[_ngcontent-%COMP%]{margin-top:.5rem!important}.mb-2[_ngcontent-%COMP%]{margin-bottom:.5rem!important}.ms-2[_ngcontent-%COMP%]{margin-left:.5rem!important}.me-2[_ngcontent-%COMP%]{margin-right:.5rem!important}.mx-2[_ngcontent-%COMP%]{margin-left:.5rem!important;margin-right:.5rem!important}.my-2[_ngcontent-%COMP%]{margin-top:.5rem!important;margin-bottom:.5rem!important}.p-2[_ngcontent-%COMP%]{padding:.5rem!important}.pt-2[_ngcontent-%COMP%]{padding-top:.5rem!important}.pb-2[_ngcontent-%COMP%]{padding-bottom:.5rem!important}.ps-2[_ngcontent-%COMP%]{padding-left:.5rem!important}
1.pe-2[_ngcontent-%COMP%]{padding-right:.5rem!important}.px-2[_ngcontent-%COMP%]{padding-left:.5rem!important;padding-right:.5rem!important}.py-2[_ngcontent-%COMP%]{padding-top:.5rem!important;padding-bottom:.5rem!important}.m-3[_ngcontent-%COMP%]{margin:1rem!important}.mt-3[_ngcontent-%COMP%]{margin-top:1rem!important}.mb-3[_ngcontent-%COMP%]{margin-bottom:1rem!important}.ms-3[_ngcontent-%COMP%]{margin-left:1rem!important}.me-3[_ngcontent-%COMP%]{margin-right:1rem!important}.mx-3[_ngcontent-%COMP%]{margin-left:1rem!important;margin-right:1rem!important}.my-3[_ngcontent-%COMP%]{margin-top:1rem!important;margin-bottom:1rem!important}.p-3[_ngcontent-%COMP%]{padding:1rem!important}.pt-3[_ngcontent-%COMP%]{padding-top:1rem!important}.pb-3[_ngcontent-%COMP%]{padding-bottom:1rem!important}.ps-3[_ngcontent-%COMP%]{padding-left:1rem!important}.pe-3[_ngcontent-%COMP%]{padding-right:1rem!important}.px-3[_ngcontent-%COMP%]{padding-left:1rem!important;padding-right:1rem!important}.py-3[_ngcontent-%COMP%]{padding-top:1rem!important;padding-bottom:1rem!important}.m-4[_ngcontent-%COMP%]{margin:1.5rem!important}.mt-4[_ngcontent-%COMP%]{margin-top:1.5rem!important}.mb-4[_ngcontent-%COMP%]{margin-bottom:1.5rem!important}.ms-4[_ngcontent-%COMP%]{margin-left:1.5rem!important}.me-4[_ngcontent-%COMP%]{margin-right:1.5rem!important}.mx-4[_ngcontent-%COMP%]{margin-left:1.5rem!important;margin-right:1.5rem!important}.my-4[_ngcontent-%COMP%]{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.p-4[_ngcontent-%COMP%]{padding:1.5rem!important}.pt-4[_ngcontent-%COMP%]{padding-top:1.5rem!important}.pb-4[_ngcontent-%COMP%]{padding-bottom:1.5rem!important}.ps-4[_ngcontent-%COMP%]{padding-left:1.5rem!important}.pe-4[_ngcontent-%COMP%]{padding-right:1.5rem!important}.px-4[_ngcontent-%COMP%]{padding-left:1.5rem!important;padding-right:1.5rem!important}.py-4[_ngcontent-%COMP%]{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.m-5[_ngcontent-%COMP%]{margin:3rem!important}.mt-5[_ngcontent-%COMP%]{margin-top:3rem!important}.mb-5[_ngcontent-%COMP%]{margin-bottom:3rem!important}.ms-5[_ngcontent-%COMP%]{margin-left:3rem!important}.me-5[_ngcontent-%COMP%]{margin-right:3rem!important}.mx-5[_ngcontent-%COMP%]{margin-left:3rem!important;margin-right:3rem!important}.my-5[_ngcontent-%COMP%]{margin-top:3rem!important;margin-bottom:3rem!important}.p-5[_ngcontent-%COMP%]{padding:3rem!important}.pt-5[_ngcontent-%COMP%]{padding-top:3rem!important}.pb-5[_ngcontent-%COMP%]{padding-bottom:3rem!important}.ps-5[_ngcontent-%COMP%]{padding-left:3rem!important}.pe-5[_ngcontent-%COMP%]{padding-right:3rem!important}.px-5[_ngcontent-%COMP%]{padding-left:3rem!important;padding-right:3rem!important}.py-5[_ngcontent-%COMP%]{padding-top:3rem!important;padding-bottom:3rem!important}.list-item[_ngcontent-%COMP%]{display:flex;align-items:center;border-bottom:1px solid #dddddd}.list-item-first[_ngcontent-%COMP%]{border-top:1px solid #dddddd}.list-item-even[_ngcontent-%COMP%]{background-color:#f9f9f9}.item-header-critical[_ngcontent-%COMP%]{min-height:10rem;width:5rem;display:flex;align-items:center;justify-content:center;color:#fff;background-color:#c8102e;font-size:1.6em;align-self:stretch}.item-header-major[_ngcontent-%COMP%]{min-height:10rem;width:5rem;display:flex;align-items:center;justify-content:center;color:#fff;background-color:#ff8200;font-size:1.6em;align-self:stretch}.item-header-moderate[_ngcontent-%COMP%]{min-height:10rem;width:5rem;display:flex;align-items:center;justify-content:center;color:#fff;background-color:#ffd100;font-size:1.6em;align-self:stretch}.item-header-minor[_ngcontent-%COMP%]{min-height:10rem;width:5rem;display:flex;align-items:center;justify-content:center;color:#fff;background-color:#0072ce;font-size:1.6em;align-self:stretch}.item-header-none[_ngcontent-%COMP%]{min-height:10rem;width:5rem;display:flex;align-items:center;justify-content:center;color:#fff;background-color:#834d9f;font-size:1.6em;align-self:stretch}.header-arrow-critical[_ngcontent-%COMP%]{border-left:.5rem solid #C8102E;border-top:.5rem solid transparent;border-bottom:.5rem solid transparent}.header-arrow-major[_ngcontent-%COMP%]{border-left:.5rem solid #FF8200;border-top:.5rem solid transparent;border-bottom:.5rem solid transparent}.header-arrow-moderate[_ngcontent-%COMP%]{border-left:.5rem solid #FFD100;border-top:.5rem solid transparent;border-bottom:.5rem solid transparent}.header-arrow-minor[_ngcontent-%COMP%]{border-left:.5rem solid #0072CE;border-top:.5rem solid transparent;border-bottom:.5rem solid transparent}.header-arrow-none[_ngcontent-%COMP%]{border-left:.5rem solid #834D9F;border-top:.5rem solid transparent;border-bottom:.5rem solid transparent}.item-content[_ngcontent-%COMP%]{min-height:10rem;display:flex;flex-direction:column;justify-content:space-evenly;width:100%;margin:0 1rem}.event-title[_ngcontent-%COMP%]{font-size:20px}.event-subtitle[_ngcontent-%COMP%]{color:#333}.content-section[_ngcontent-%COMP%]{display:flex}.content-subsection[_ngcontent-%COMP%]{flex-grow:1;max-width:50%}.subsection-item[_ngcontent-%COMP%]{margin:.2rem 0}.subsection-label[_ngcontent-%COMP%]{font-weight:600}.link[_ngcontent-%COMP%]{color:#1d81b0;text-decoration:underline}.link[_ngcontent-%COMP%]:hover{cursor:pointer}@media(max-width:700px){.item-header-critical[_ngcontent-%COMP%], .item-header-major[_ngcontent-%COMP%], .item-header-moderate[_ngcontent-%COMP%], .item-header-minor[_ngcontent-%COMP%], .item-header-none[_ngcontent-%COMP%]{min-height:15rem;width:4rem}.item-content[_ngcontent-%COMP%]{padding-top:calc(var(--bs-gutter-x, 1.5rem) * .667);padding-bottom:calc(var(--bs-gutter-x, 1.5rem) * .667);min-height:15rem}.content-section[_ngcontent-%COMP%]{flex-direction:column}}.object-company-label[_ngcontent-%COMP%]{border-radius:8px;background:#8877a9;color:#fff;text-transform:uppercase;font-weight:600;right:calc(var(--bs-gutter-x, 1.5rem) * .667);height:var(--bs-gutter-x, 1.5rem);letter-spacing:.2px;font-size:11px;text-align:center;vertical-align:center;width:fit-content;margin:0 auto}.mobile-label[_ngcontent-%COMP%]{height:25px;font-size:10px}
1.customer-name[_ngcontent-%COMP%]{position:relative;top:50%;left:50%;transform:translate(-50%,-50%);padding-top:5px;padding-bottom:5px;padding-left:calc(var(--bs-gutter-x, 1.5rem) * .667);padding-right:calc(var(--bs-gutter-x, 1.5rem) * .667)}.org-badge[_ngcontent-%COMP%]{display:flex}.mobile-margin[_ngcontent-%COMP%]{margin:inherit!important}"]})}}return $})()},75950(Ht,T,d){"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.EventLogComponent=void 0;const S=d(31635),N=d(49849),u=(d(94318),d(46346)),o=d(59091),b=d(43481),h=(d(7901),d(60177)),v=(d(79591),d(20851),S.__importStar(d(49849))),p=S.__importStar(d(20851)),J=S.__importStar(d(94318)),lt=S.__importStar(d(79591)),r=S.__importStar(d(7901)),I=S.__importStar(d(68310)),vt=S.__importStar(d(84341)),C=S.__importStar(d(68312)),ht=S.__importStar(d(27175)),F=S.__importStar(d(77295)),ct=S.__importStar(d(40509)),at=S.__importStar(d(29854)),rt=["eventLogAnchor"],X=["topRow"];function gt(B,Ot){if(1&B&&(v.\u0275\u0275elementStart(0,"option",21),v.\u0275\u0275text(1),v.\u0275\u0275elementEnd()),2&B){const $=Ot.$implicit;v.\u0275\u0275property("value",v.\u0275\u0275interpolate($.description)),v.\u0275\u0275advance(),v.\u0275\u0275textInterpolate($.description)}}function mt(B,Ot){if(1&B&&(v.\u0275\u0275elementStart(0,"div",26),v.\u0275\u0275text(1),v.\u0275\u0275elementEnd()),2&B){const $=v.\u0275\u0275nextContext();v.\u0275\u0275advance(),v.\u0275\u0275textInterpolate3("Displaying ",$.currentOffset+1," - ",$.currentOffset+10>$.count?$.count:$.currentOffset+10," of ",$.count," ")}}function St(B,Ot){if(1&B&&(v.\u0275\u0275elementStart(0,"div",3)(1,"div",30),v.\u0275\u0275text(2),v.\u0275\u0275elementEnd()()),2&B){const $=v.\u0275\u0275nextContext();v.\u0275\u0275advance(2),v.\u0275\u0275textInterpolate($.loading?"Loading events...":"No events found")}}function ft(B,Ot){if(1&B&&v.\u0275\u0275element(0,"app-event-card",27),2&B){const $=Ot.$implicit,j=Ot.$index,G=v.\u0275\u0275nextContext();v.\u0275\u0275property("event",$)("index",j)("showMapDetailsLink",G.showMapDetails)("isUnitDetail",G.isUnitDetail)("isSafetyEvent",G.service.isSafetyEvent($))}}T.EventLogComponent=(()=>{class B{constructor($,j,G,k,R){this.loader=$,this.service=j,this.googleService=G,this.route=k,this.router=R,this.isUnitDetail=!1,this.pageSize=10,this.events=[],this.selectedPage=0,this.currentOffset=0,this.loading=!1,this.showMapDetails=!1,this.filterCount=0,this.eventCategoryFilter="",this.eventFilter="",this.sortField="",this.sortDirection="desc",this.ruleTags=[],this.showAllDates=!0,this.unsubscribe$=new o.Subject,this.initialPageLoad=!0,this.datePipe=new h.DatePipe("en-US"),this.eventType=[],this.eventRule=[],this.safetyEventTypes=[],this.performanceEventTypes=[],this.allEventTypes=[],this.pageChange=new N.EventEmitter}ngOnInit(){this.filterEventLogObservable?.pipe((0,b.takeUntil)(this.unsubscribe$)).subscribe($=>{this.eventFilter=$,this.applyFilters()}),this.exportObservable?.pipe((0,b.takeUntil)(this.unsubscribe$)).subscribe(()=>{this.exportEvents()}),this.service.fetchRuleTags().subscribe($=>{this.ruleTags=$.ruleTags}),this.initializeDates(),this.initializeSortAndFilters(),this.loadAllEventTypes()}loadAllEventTypes(){(0,o.forkJoin)([this.service.getEventTypeFilter(!1,this.instanceId),this.service.getEventTypeFilter(!0,this.instanceId)]).subscribe(([$,j])=>{if(0===$.length)this.performanceEventTypes=[];else for(let G of $)for(let k of G.rules)this.performanceEventTypes.find(U=>U.name===k.tags[0].name&&U.description===k.tags[0].description)||this.performanceEventTypes.push(k.tags[0]);if(0===j.length)this.safetyEventTypes=[];else for(let G of j)for(let k of G.rules)this.safetyEventTypes.find(U=>U.name===k.tags[0].name&&U.description===k.tags[0].description)||this.safetyEventTypes.push(k.tags[0]);this.allEventTypes=[].concat(...this.safetyEventTypes,...this.performanceEventTypes)})}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}generateRequestObject($){let j=null,G=[];this.filterCount>0&&(j=this.eventCategoryFilter,G=[this.eventFilter]);let R,k="startTimestamp:desc";return this.sortApplied&&(k=`${this.sortField}:${this.sortDirection}`),G&&G.length>0&&(R=G[0]),{startTime:this.startTime,endTime:this.endTime,instanceId:this.instanceId,offset:this.currentOffset,sortString:k,eventCategoryFilter:j,eventType:R}}selectPage($){this.selectedPage=$,this.initialPageLoad||this.router.navigate([`/pages/dashboard/equipment/fleet/detail
1s/${this.instanceId}/analytics`],{relativeTo:this.route,queryParams:{page:this.selectedPage,eventFilter:this.eventFilter?this.eventFilter:null,eventCategoryFilter:this.eventCategoryFilter?this.eventCategoryFilter:null,sortBy:this.sortField?this.sortField:null,sortDirection:this.sortField&&this.sortDirection?this.sortDirection:null,startTime:!this.showAllDates&&this.startTime?this.datePipe.transform(this.startTime,"shortDate"):null,endTime:!this.showAllDates&&this.endTime?this.datePipe.transform(this.endTime,"shortDate"):null},queryParamsHandling:"merge",skipLocationChange:!1}),this.currentOffset=this.pageSize*this.selectedPage,this.loading=!0,this.loader.start();const j=this.generateRequestObject($);this.service.fetchInstanceEvents(j.startTime,j.endTime,j.instanceId,j.offset,j.sortString,j.eventCategoryFilter,j.eventType).subscribe(G=>{this.events=G.results,this.count=G.matchingCount,this.telematicsData.resultCount=this.count,this.telematicsData.loaded=!0,this.loading=!1,this.loader.stop(),setTimeout(()=>{this.initialPageLoad?this.initialPageLoad=!1:this.eventLogAnchor?.nativeElement?.scrollIntoView({behavior:"smooth",block:"start"}),this.topRow?.nativeElement?.click()},500)})}applyFilters(){this.filterCount=0,this.eventCategoryFilter&&this.filterCount++,this.eventFilter&&this.filterCount++,this.googleService.emitEvent({eventCategory:"Unit Detail",eventAction:"Filter Applied",eventLabel:"Unit Event Log Filtered"},()=>{}),this.selectPage(0)}filter(){"safety"===this.eventCategoryFilter?this.eventType=this.safetyEventTypes:"performance"===this.eventCategoryFilter?this.eventType=this.performanceEventTypes:""===this.eventCategoryFilter&&(this.eventType=this.allEventTypes)}applySort(){this.sortField&&(this.sortApplied=!0,this.googleService.emitEvent({eventCategory:"Unit Detail",eventAction:"Sort Applied",eventLabel:"Unit Event Log Sorted"},()=>{}),this.selectPage(0))}clearFilters(){this.eventFilter="",this.eventCategoryFilter="",this.filterCount=0,this.selectPage(0)}clearSort(){this.sortField="",this.sortDirection="desc",this.sortApplied=!1,this.selectPage(0)}setDateRange($){$.startDate&&$.endDate?(this.startTime=$.startDate,this.endTime=$.endDate,this.showAllDates=!1):(this.startTime=new Date(u.FIRST_TELEMATICS_EVENT_DATE),this.endTime=new Date,this.showAllDates=!0),this.googleService.emitEvent({eventCategory:"Unit Detail",eventAction:"Date Applied",eventLabel:"Unit Event Log Date Range"},()=>{}),this.selectPage(this.initialPageLoad&&this.selectedPage>0?this.selectedPage:0)}initializeDates(){let $=this.route.snapshot.queryParams;$.startTime?(this.startTime=new Date($.startTime),this.showAllDates=!1):(this.startTime=new Date(u.FIRST_TELEMATICS_EVENT_DATE),this.showAllDates=!0),$.endTime?(this.endTime=new Date($.endTime),this.showAllDates=!1):this.endTime=new Date}initializeSortAndFilters(){let $=this.route.snapshot.queryParams;$.page&&(this.selectedPage=Number($.page)),$.eventFilter&&(this.eventFilter=$.eventFilter,this.filterCount++),$.eventCategoryFilter&&(this.eventCategoryFilter=$.eventCategoryFilter,this.filterCount++),$.sortBy&&$.sortDirection&&(this.sortField=$.sortBy,this.sortDirection=$.sortDirection,this.sortApplied=!0)}exportEvents(){this.googleService.emitEvent({eventCategory:"Unit Detail",eventAction:"Button clicked",eventLabel:"Unit Event Log Export"},()=>{});const $=this.generateRequestObject(0);window.open(this.service.generateEventsExportUrl($.startTime,$.endTime,$.instanceId,$.offset,null,$.sortString,$.eventCategoryFilter,$.eventType))}static{this.\u0275fac=function(j){return new(j||B)(v.\u0275\u0275directiveInject(p.LoadingService),v.\u0275\u0275directiveInject(J.TelematicsDataService),v.\u0275\u0275directiveInject(lt.GoogleServicesService),v.\u0275\u0275directiveInject(r.ActivatedRoute),v.\u0275\u0275directiveInject(r.Router))}}static{this.\u0275cmp=v.\u0275\u0275defineComponent({type:B,selectors:[["app-event-log"]],viewQuery:function(j,G){if(1&j&&v.\u0275\u0275viewQuery(rt,5)(X,5),2&j){let k;v.\u0275\u0275queryRefresh(k=v.\u0275\u0275loadQuery())&&(G.eventLogAnchor=k.first),v.\u0275\u0275queryRefresh(k=v.\u0275\u0275loadQuery())&&(G.topRow=k.first)}},inputs:{isUnitDetail:"isUnitDetail",instanceId:"instanceId",telematicsData:"telematicsData",filterEventLogObservable:"filterEventLogObservable",exportObservable:"exportObservable"},outputs:{pageChange:"pageChange"},standalone:!1,decls:58,vars:13,consts:[["eventLogAnchor",""],["topRow",""],[1,"eventLogAnchor"],[1,"row"],[1,"col-12","col-lg-9","filter-button-padding"],[1,"dropdowns"],[1,"sort"],[3,"sortAppliedEvent","sortCleared","sortApplied"],[1,"form-control","form-control-sm",3,"ngModelChange","ngModel"],["value",""],["value","eventType"],["value","startTimestamp"],["value","durationSeconds"],["value","ruleSeverity"],["value","asc"],["value","desc"],[1,"filter"],[3,"filtersApplied","filtersCleared","appliedFilterCount"],["value","safety"],["value","performance"],[1,"form-control","form-control-sm",3,"ngModelChange","click","ngModel"],[3,"value"],[1,"date"],[3,"dateRangeSelection","initialStartDate","initialEndDate"],[1,"col-12","col-lg-3","filter-button-padding","text-end"],[3,"click","label"],[1,"col-12","no-padding"],[3,"event","index","showMapDetailsLink","isUnitDetail","isSafetyEvent"],[1,"pagination-container","col-12","no-padding"],[3,"paging","pageSize","numberOfItems","index"],[1,"col-12"]],template:function(j,G){if(1&j){const k=v.\u0275\u0275getCurrentView();v.\u0275\u0275elementStart(0,"div"),v.\u0275\u0275element(1,"span",2,0),v.\u0275\u0275elementStart(3,"div",3)(4,"div",4,1)(6,"div",5)(7,"div",6)(8,"altcon-event-details-sort",7),v.\u0275\u0275listener("sortAppliedEvent",function(){return G.applySort()})("sortCleared",function(){return G.clearSort()}),v.\u0275\u0275elementStart(9,"label"),v.\u0275\u0275text(10,"Sort By"),v.\u0275\u0275elementEnd(),v.\u0275\u0275elementStart(11,"select",8),v.\u0275\u0275twoWayListener("ngModelChange",function(U){return v.\u0275\u0275restoreView(k),v.\u0275\u0275twoWayBindingSet(G.sortField,U)||(G.sortField=U),v.\u0275\u0275resetVie
1w(U)}),v.\u0275\u0275elementStart(12,"option",9),v.\u0275\u0275text(13,"Select..."),v.\u0275\u0275elementEnd(),v.\u0275\u0275elementStart(14,"option",10),v.\u0275\u0275text(15,"Event Type"),v.\u0275\u0275elementEnd(),v.\u0275\u0275elementStart(16,"option",11),v.\u0275\u0275text(17,"Event Start"),v.\u0275\u0275elementEnd(),v.\u0275\u0275elementStart(18,"option",12),v.\u0275\u0275text(19,"Duration"),v.\u0275\u0275elementEnd(),v.\u0275\u0275elementStart(20,"option",13),v.\u0275\u0275text(21,"Severity"),v.\u0275\u0275elementEnd()(),v.\u0275\u0275elementStart(22,"label"),v.\u0275\u0275text(23,"Order By"),v.\u0275\u0275elementEnd(),v.\u0275\u0275elementStart(24,"select",8),v.\u0275\u0275twoWayListener("ngModelChange",function(U){return v.\u0275\u0275restoreView(k),v.\u0275\u0275twoWayBindingSet(G.sortDirection,U)||(G.sortDirection=U),v.\u0275\u0275resetView(U)}),v.\u0275\u0275elementStart(25,"option",14),v.\u0275\u0275text(26,"Ascending"),v.\u0275\u0275elementEnd(),v.\u0275\u0275elementStart(27,"option",15),v.\u0275\u0275text(28,"Descending"),v.\u0275\u0275elementEnd()()()(),v.\u0275\u0275elementStart(29,"div",16)(30,"app-dropdown-filter-container",17),v.\u0275\u0275listener("filtersApplied",function(){return G.applyFilters()})("filtersCleared",function(){return G.clearFilters()}),v.\u0275\u0275elementStart(31,"label"),v.\u0275\u0275text(32,"Event Category"),v.\u0275\u0275elementEnd(),v.\u0275\u0275elementStart(33,"select",8),v.\u0275\u0275twoWayListener("ngModelChange",function(U){return v.\u0275\u0275restoreView(k),v.\u0275\u0275twoWayBindingSet(G.eventCategoryFilter,U)||(G.eventCategoryFilter=U),v.\u0275\u0275resetView(U)}),v.\u0275\u0275elementStart(34,"option",9),v.\u0275\u0275text(35,"Show All"),v.\u0275\u0275elementEnd(),v.\u0275\u0275elementStart(36,"option",18),v.\u0275\u0275text(37,"Safety"),v.\u0275\u0275elementEnd(),v.\u0275\u0275elementStart(38,"option",19),v.\u0275\u0275text(39,"Performance"),v.\u0275\u0275elementEnd()(),v.\u0275\u0275elementStart(40,"label"),v.\u0275\u0275text(41,"Event"),v.\u0275\u0275elementEnd(),v.\u0275\u0275elementStart(42,"select",20),v.\u0275\u0275twoWayListener("ngModelChange",function(U){return v.\u0275\u0275restoreView(k),v.\u0275\u0275twoWayBindingSet(G.eventFilter,U)||(G.eventFilter=U),v.\u0275\u0275resetView(U)}),v.\u0275\u0275listener("click",function(){return G.filter()}),v.\u0275\u0275elementStart(43,"option",9),v.\u0275\u0275text(44,"Show All"),v.\u0275\u0275elementEnd(),v.\u0275\u0275repeaterCreate(45,gt,2,3,"option",21,v.\u0275\u0275repeaterTrackByIdentity),v.\u0275\u0275elementEnd()()(),v.\u0275\u0275elementStart(47,"div",22)(48,"altcon-inline-daterange",23),v.\u0275\u0275listener("dateRangeSelection",function(U){return G.setDateRange(U)}),v.\u0275\u0275elementEnd()()()(),v.\u0275\u0275elementStart(49,"div",24)(50,"app-ga-export-button",25),v.\u0275\u0275listener("click",function(){return G.exportEvents()}),v.\u0275\u0275elementEnd()()(),v.\u0275\u0275conditionalCreate(51,mt,2,3,"div",26)(52,St,3,1,"div",3),v.\u0275\u0275elementStart(53,"div",26),v.\u0275\u0275repeaterCreate(54,ft,1,5,"app-event-card",27,v.\u0275\u0275repeaterTrackByIdentity),v.\u0275\u0275elementEnd(),v.\u0275\u0275elementStart(56,"div",28)(57,"altcon-pagination",29),v.\u0275\u0275listener("paging",function(U){return G.selectPage(U)}),v.\u0275\u0275elementEnd()()()}2&j&&(v.\u0275\u0275advance(8),v.\u0275\u0275property("sortApplied",G.sortApplied),v.\u0275\u0275advance(3),v.\u0275\u0275twoWayProperty("ngModel",G.sortField),v.\u0275\u0275advance(13),v.\u0275\u0275twoWayProperty("ngModel",G.sortDirection),v.\u0275\u0275advance(6),v.\u0275\u0275property("appliedFilterCount",G.filterCount),v.\u0275\u0275advance(3),v.\u0275\u0275twoWayProperty("ngModel",G.eventCategoryFilter),v.\u0275\u0275advance(9),v.\u0275\u0275twoWayProperty("ngModel",G.eventFilter),v.\u0275\u0275advance(3),v.\u0275\u0275repeater(G.eventType),v.\u0275\u0275advance(3),v.\u0275\u0275property("initialStartDate",G.showAllDates?null:G.startTime)("initialEndDate",G.showAllDates?null:G.endTime),v.\u0275\u0275advance(2),v.\u0275\u0275property("label","Export Details"),v.\u0275\u0275advance(),v.\u0275\u0275conditional((null==G.events?null:G.events.length)>0?51:52),v.\u0275\u0275advance(3),v.\u0275\u0275repeater(G.events),v.\u0275\u0275advance(3),v.\u0275\u0275property("pageSize",G.pageSize)("numberOfItems",G.count)("index",G.selectedPage))},dependencies:[I.GaExportButtonComponent,vt.NgSelectOption,vt.\u0275NgSelectMultipleOption,vt.SelectControlValueAccessor,vt.NgControlStatus,C.PaginationWidgetComponent,ht.DropdownFilterContainerComponent,F.DropdownSortContainerComponent,vt.NgModel,ct.InlineDaterangeComponent,at.EventCardComponent],styles:["table[_ngcontent-%COMP%]{width:100%;border-collapse:collapse;font-size:15px}thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{height:36px}th[_ngcontent-%COMP%]{padding:0 36px}tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{height:54px;border-top:solid 1px #dddddd}tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(odd){background-color:#f9f9f9}td[_ngcontent-%COMP%]{padding:0 36px}tr[_ngcontent-%COMP%]:focus{outline:none}[_ngcontent-%COMP%]:root{--bs-gutter-x: 1.5rem;--bs-gutter-y: 1.5rem}.d-flex[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{float:none}.col[_ngcontent-%COMP%]{flex:1 0 0;padding-left:var(--bs-gutter-x, 1.5rem);padding-right:var(--bs-gutter-x, 1.5rem)}@media only screen and (min-width:576px){.col-sm-auto[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;max-width:none}}@media only screen and (min-width:768px){.col-md-auto[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;max-width:none}}.col-auto[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;max-width:100%;padding-left:var(--bs-gutter-x, 1.5rem);padding-right:var(--bs-gutter-x, 1.5rem)}.justify-content-center[_ngcontent-%COMP%]{justify-content:center}.justify-content-end[_ngcontent-%COMP%]{justify-content:end}.align-items-center[_ngcontent-%COMP%]{align-items:center}.align-items-end[_ngcontent-%COMP%]{align-items:end}.flex-column-reverse[_ngcontent-%COMP%]{flex-direction:column-reverse}.d-flex[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}@media only screen and (min-width:768px){.d-md-block[_ngcontent-%COMP%]{display:block}}@media only screen and (min-width:768px){.d-md-none[_ngcontent-%COMP%]{display:none}}@media only screen and (min-width:768px){.d-md-flex[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}}@media only screen and (min-width:992px){.d-lg-none[_ngcontent-%COMP%]{display:none!important}}@media only screen and (min-width:992px){.d-lg-block[_ngcontent-%COMP%]{display:block!important}}.w-100[_ngcontent-%COMP%]{width:100%!important}.h-100[_ngcontent-%COMP%]{height:100%!important}.px-3[_ngcontent-%COMP%]{padding-left:15px!important;padding-right:15px!important}.pr-0[_ngcontent-%COMP%]{padding-right:0!important}.pl-0[_ngcontent-%COMP%]{padding-left:0!important}.pt-3[_ngcontent-%COMP%]{padding-top:1rem}.pb-3[_ngcontent-%COMP%]{padding-bottom:1rem}.mb-3[_ngcontent-%COMP%]{margin-bottom:1rem}.pb-2[_ngcontent-%COMP%]{padding-bottom:.5rem}@media print{.no-print[_ngcontent-%COMP%]{display:none!important}}.m-0[_ngcontent-%COMP%]{margin:0!important}.mt-0[_ngcontent-%COMP%]{margin-top:0!important}.mb-0[_ngcontent-%COMP%]{margin-bottom:0!important}.ms-0[_ngcontent-%COMP%]{margin-left:0!important}.me-0[_ngcontent-%COMP%]{margin-right:0!important}.mx-0[_ngcontent-%COMP%]{margin-left:0!important;margin-right:0!important}.my-0[_ngcontent-%COMP%]{margin-top:0!important;margin-bottom:0!important}.p-0[_ngcontent-%COMP%]{padding:0!important}.pt-0[_ngcontent-%COMP%]{padding-top:0!important}.pb-0[_ngcontent-%COMP%]{padding-bottom:0!important}.ps-0[_ngcontent-%COMP%]{padding-left:0!important}.pe-0[_ngcontent-%COMP%]{padding-right:0!important}.px-0[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.py-0[_ngcontent-%COMP%]{padding-top:0!important;padding-bottom:0!important}.m-1[_ngcontent-%COMP%]{margin:.25rem!important}.mt-1[_ngcontent-%COMP%]{margin-top:.25rem!important}.mb-1[_ngcontent-%COMP%]{margin-bottom:.25rem!important}.ms-1[_ngcontent-%COMP%]{margin-left:.25rem!important}.me-1[_ngcontent-%COMP%]{margin-right:.25rem!important}.mx-1[_ngcontent-%COMP%]{margin-left:.25rem!important;margin-right:.25rem!important}.my-1[_ngcontent-%COMP%]{margin-top:.25rem!important;margin-bottom:.25rem!important}.p-1[_ngcontent-%COMP%]{padding:.25rem!important}.pt-1[_ngcontent-%COMP%]{padding-top:.25rem!important}.pb-1[_ngcontent-%COMP%]{padding-bottom:.25rem!important}.ps-1[_ngcontent-%COMP%]{padding-left:.25rem!important}.pe-1[_ngcontent-%COMP%]{padding-right:.25rem!important}.px-1[_ngcontent-%COMP%]{padding-left:.25rem!important;padding-right:.25rem!important}.py-1[_ngcontent-%COMP%]{padding-top:.25rem!important;padding-bottom:.25rem!important}.m-2[_ngcontent-%COMP%]{margin:.5rem!important}.mt-2[_ngcontent-%COMP%]{margin-top:.5rem!important}.mb-2[_ngcontent-%COMP%]{margin-bottom:.5rem!important}.ms-2[_ngcontent-%COMP%]{margin-left:.5rem!important}.me-2[_ngcontent-%COMP%]{margin-right:.5rem!important}.mx-2[_ngcontent-%COMP%]{margin-left:.5rem!important;margin-right:.5rem!important}.my-2[_ngcontent-%COMP%]{margin-top:.5rem!important;margin-bottom:.5rem!important}.p-2[_ngcontent-%COMP%]{padding:.5rem!important}.pt-2[_ngcontent-%COMP%]{padding-top:.5rem!important}.pb-2[_ngcontent-%COMP%]{padding-bottom:.5rem!important}.ps-2[_ngcontent-%COMP%]{padding-left:.5rem!important}
1.pe-2[_ngcontent-%COMP%]{padding-right:.5rem!important}.px-2[_ngcontent-%COMP%]{padding-left:.5rem!important;padding-right:.5rem!important}.py-2[_ngcontent-%COMP%]{padding-top:.5rem!important;padding-bottom:.5rem!important}.m-3[_ngcontent-%COMP%]{margin:1rem!important}.mt-3[_ngcontent-%COMP%]{margin-top:1rem!important}.mb-3[_ngcontent-%COMP%]{margin-bottom:1rem!important}.ms-3[_ngcontent-%COMP%]{margin-left:1rem!important}.me-3[_ngcontent-%COMP%]{margin-right:1rem!important}.mx-3[_ngcontent-%COMP%]{margin-left:1rem!important;margin-right:1rem!important}.my-3[_ngcontent-%COMP%]{margin-top:1rem!important;margin-bottom:1rem!important}.p-3[_ngcontent-%COMP%]{padding:1rem!important}.pt-3[_ngcontent-%COMP%]{padding-top:1rem!important}.pb-3[_ngcontent-%COMP%]{padding-bottom:1rem!important}.ps-3[_ngcontent-%COMP%]{padding-left:1rem!important}.pe-3[_ngcontent-%COMP%]{padding-right:1rem!important}.px-3[_ngcontent-%COMP%]{padding-left:1rem!important;padding-right:1rem!important}.py-3[_ngcontent-%COMP%]{padding-top:1rem!important;padding-bottom:1rem!important}.m-4[_ngcontent-%COMP%]{margin:1.5rem!important}.mt-4[_ngcontent-%COMP%]{margin-top:1.5rem!important}.mb-4[_ngcontent-%COMP%]{margin-bottom:1.5rem!important}.ms-4[_ngcontent-%COMP%]{margin-left:1.5rem!important}.me-4[_ngcontent-%COMP%]{margin-right:1.5rem!important}.mx-4[_ngcontent-%COMP%]{margin-left:1.5rem!important;margin-right:1.5rem!important}.my-4[_ngcontent-%COMP%]{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.p-4[_ngcontent-%COMP%]{padding:1.5rem!important}.pt-4[_ngcontent-%COMP%]{padding-top:1.5rem!important}.pb-4[_ngcontent-%COMP%]{padding-bottom:1.5rem!important}.ps-4[_ngcontent-%COMP%]{padding-left:1.5rem!important}.pe-4[_ngcontent-%COMP%]{padding-right:1.5rem!important}.px-4[_ngcontent-%COMP%]{padding-left:1.5rem!important;padding-right:1.5rem!important}.py-4[_ngcontent-%COMP%]{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.m-5[_ngcontent-%COMP%]{margin:3rem!important}.mt-5[_ngcontent-%COMP%]{margin-top:3rem!important}.mb-5[_ngcontent-%COMP%]{margin-bottom:3rem!important}.ms-5[_ngcontent-%COMP%]{margin-left:3rem!important}.me-5[_ngcontent-%COMP%]{margin-right:3rem!important}.mx-5[_ngcontent-%COMP%]{margin-left:3rem!important;margin-right:3rem!important}.my-5[_ngcontent-%COMP%]{margin-top:3rem!important;margin-bottom:3rem!important}.p-5[_ngcontent-%COMP%]{padding:3rem!important}.pt-5[_ngcontent-%COMP%]{padding-top:3rem!important}.pb-5[_ngcontent-%COMP%]{padding-bottom:3rem!important}.ps-5[_ngcontent-%COMP%]{padding-left:3rem!important}.pe-5[_ngcontent-%COMP%]{padding-right:3rem!important}.px-5[_ngcontent-%COMP%]{padding-left:3rem!important;padding-right:3rem!important}.py-5[_ngcontent-%COMP%]{padding-top:3rem!important;padding-bottom:3rem!important}.pagination-container[_ngcontent-%COMP%]{display:flex;justify-content:center}.dropdowns[_ngcontent-%COMP%]{display:flex;flex-flow:row wrap;justify-content:flex-start}.filter-button-padding[_ngcontent-%COMP%]{padding-top:0!important;padding-bottom:calc(var(--bs-gutter-x, 1.5rem) * .667)!important}.no-padding[_ngcontent-%COMP%]{padding:0!important}.filter[_ngcontent-%COMP%]{padding-right:calc(var(--bs-gutter-x, 1.5rem) * .667);padding-left:calc(var(--bs-gutter-x, 1.5rem) * .667)}.date[_ngcontent-%COMP%]{padding-right:var(--bs-gutter-x, 1.5rem);padding-left:calc(var(--bs-gutter-x, 1.5rem) * .667)}.sort[_ngcontent-%COMP%]{padding-right:calc(var(--bs-gutter-x, 1.5rem) * .667)}.eventLogAnchor[_ngcontent-%COMP%]{display:block;position:relative;top:-80px}@media(max-width:800px){.dropdowns[_ngcontent-%COMP%]{flex-direction:column}.filter[_ngcontent-%COMP%], .sort[_ngcontent-%COMP%]{padding:0px 0px calc(var(--bs-gutter-x, 1.5rem) * .667)}.date[_ngcontent-%COMP%]{padding:0}.filter-button-padding[_ngcontent-%COMP%]{padding-bottom:0!important}.eventLogAnchor[_ngcontent-%COMP%]{top:-140px}}"]})}}return B})()},62190(Ht,T,d){"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.EventMapModalComponent=void 0;const S=d(31635),O=(d(6324),S.__importStar(d(49849))),u=S.__importStar(d(6324)),o=S.__importStar(d(98848)),b=h=>[h];T.EventMapModalComponent=(()=>{class h{constructor(f){this.activeModal=f}ngOnInit(){}static{this.\u0275fac=function(v){return new(v||h)(O.\u0275\u0275directiveInject(u.NgbActiveModal))}}static{this.\u0275cmp=O.\u0275\u0275defineComponent({type:h,selectors:[["altecConnect-event-map-modal"]],standalone:!1,decls:11,vars:6,consts:[[1,"modal-header"],[1,"modal-title",2,"font-size","20px"],["type","button","data-bs-dismiss","modal","aria-label","Close",1,"close","ms-auto",3,"click"],["aria-hidden","true"],[1,"modal-body"],[3,"detailClickedEvent","showDetail
1sLink","eventDetails","events","asset"],[1,"modal-footer"],["type","button",1,"btn","btn-light",2,"border-color","#ccc",3,"click"]],template:function(v,p){1&v&&(O.\u0275\u0275elementStart(0,"div",0)(1,"h4",1),O.\u0275\u0275text(2,"Event Location"),O.\u0275\u0275elementEnd(),O.\u0275\u0275elementStart(3,"button",2),O.\u0275\u0275listener("click",function(){return p.activeModal.dismiss()}),O.\u0275\u0275elementStart(4,"span",3),O.\u0275\u0275text(5,"\xd7"),O.\u0275\u0275elementEnd()()(),O.\u0275\u0275elementStart(6,"div",4)(7,"telematics-map-events",5),O.\u0275\u0275listener("detailClickedEvent",function(){return p.activeModal.dismiss()}),O.\u0275\u0275elementEnd()(),O.\u0275\u0275elementStart(8,"div",6)(9,"button",7),O.\u0275\u0275listener("click",function(){return p.activeModal.dismiss()}),O.\u0275\u0275text(10," Dismiss"),O.\u0275\u0275elementEnd()()),2&v&&(O.\u0275\u0275advance(7),O.\u0275\u0275property("showDetailsLink",p.showMapDetailsLink)("eventDetails",p.eventDetail)("events",O.\u0275\u0275pureFunction1(4,b,p.event))("asset",p.asset))},dependencies:[o.MapEventsComponent],encapsulation:2})}}return h})()},98848(Ht,T,d){"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.MapEventsComponent=void 0;const S=d(31635),N=d(49849),O=d(15443),u=d(77162),b=(d(22391),d(50969)),g=S.__importStar(d(49849)),h=S.__importStar(d(7901)),D=S.__importStar(d(50969)),f=S.__importStar(d(60177)),v=F=>[F];function p(F,ct){1&F&&g.\u0275\u0275element(0,"img",5)}function J(F,ct){if(1&F){const at=g.\u0275\u0275getCurrentView();g.\u0275\u0275elementStart(0,"map-marker",7,2),g.\u0275\u0275listener("mapClick",function(){const X=g.\u0275\u0275restoreView(at).$implicit,gt=g.\u0275\u0275reference(1),mt=g.\u0275\u0275nextContext(2);return g.\u0275\u0275resetView(mt.clickedMarker(X,gt))}),g.\u0275\u0275elementEnd()}if(2&F){const at=ct.$implicit,rt=g.\u0275\u0275nextContext(2);g.\u0275\u0275property("options",rt.getMarkerOptions(at))}}function lt(F,ct){if(1&F&&g.\u0275\u0275repeaterCreate(0,J,2,1,"map-marker",6,g.\u0275\u0275repeaterTrackByIdentity),2&F){const at=g.\u0275\u0275nextContext();g.\u0275\u0275repeater(at.events)}}function r(F,ct){if(1&F&&g.\u0275\u0275element(0,"map-marker",6,3),2&F){const at=g.\u0275\u0275nextContext();g.\u0275\u0275property("options",at.getMarkerOptions(at.eventDetails))}}function I(F,ct){if(1&F&&g.\u0275\u0275element(0,"map-marker",6,3),2&F){const at=g.\u0275\u0275nextContext();g.\u0275\u0275property("options",at.getAssetMarkerOptions())}}function vt(F,ct){if(1&F){const at=g.\u0275\u0275getCurrentView();g.\u0275\u0275elementStart(0,"a",9),g.\u0275\u0275listener("click",function(){g.\u0275\u0275restoreView(at);const X=g.\u0275\u0275nextContext(2);return g.\u0275\u0275resetView(X.detailLinkClicked())}),g.\u0275\u0275text(1,"Details"),g.\u0275\u0275elementEnd()}if(2&F){const at=g.\u0275\u0275nextContext(2);g.\u0275\u0275property("routerLink",g.\u0275\u0275pureFunction1(1,v,"/pages/dashboard/equipment/fleet/details/"+at.selectedEvent.instanceId+"/analytics"))}}function C(F,ct){if(1&F&&(g.\u0275\u0275elementStart(0,"b"),g.\u0275\u0275text(1,"Customer Vehicle #:"),g.\u0275\u0275elementEnd(),g.\u0275\u0275text(2),g.\u0275\u0275element(3,"br"),g.\u0275\u0275elementStart(4,"b"),g.\u0275\u0275text(5,"Event: "),g.\u0275\u0275elementEnd(),g.\u0275\u0275text(6),g.\u0275\u0275element(7,"br"),g.\u0275\u0275elementStart(8,"b"),g.\u0275\u0275text(9,"Start Timestamp:"),g.\u0275\u0275elementEnd(),g.\u0275\u0275text(10),g.\u0275\u0275pipe(11,"date"),g.\u0275\u0275element(12,"br"),g.\u0275\u0275elementStart(13,"b"),g.\u0275\u0275text(14,"Categories: "),g.\u0275\u0275elementEnd(),g.\u0275\u0275text(15),g.\u0275\u0275element(16,"br"),g.\u0275\u0275elementStart(17,"b"),g.\u0275\u0275text(18,"Severity:"),g.\u0275\u0275elementEnd(),g.\u0275\u0275text(19),g.\u0275\u0275element(20,"br"),g.\u0275\u0275elementStart(21,"b"),g.\u0275\u0275text(22,"Nearest Address:"),g.\u0275\u0275elementEnd(),g.\u0275\u0275text(23),g.\u0275\u0275element(24,"br"),g.\u0275\u0275conditionalCreate(25,vt,2,3,"a",8)),2&F){const at=g.\u0275\u0275nextContext();g.\u0275\u0275advance(2),g.\u0275\u0275textInterpolate1(" ",at.selectedEvent.externalReference),g.\u0275\u0275advance(4),g.\u0275\u0275textInterpolate1(" ",at.selectedEvent.eventType||"Other"),g.\u0275\u0275advance(4),g.\u0275\u0275textInterpolate1(" ",g.\u0275\u0275pipeBind2(11,7,at.selectedEvent.startTimestamp,"medium")),g.\u0275\u0275advance(5),g.\u0275\u0275textInterpolate1(" ",at.getCategories(at.selectedEvent.ruleCategories)),g.\u0275\u0275advance(4),g.\u0275\u0275textInterpolate1(" ",at.getSeverityString(at.selectedEvent.ruleSeverity)
1),g.\u0275\u0275advance(4),g.\u0275\u0275textInterpolate1(" ",at.markerAddress),g.\u0275\u0275advance(2),g.\u0275\u0275conditional(at.showDetailsLink?25:-1)}}T.MapEventsComponent=(()=>{class F{constructor(at){this.cd=at,this.events=[],this.showDetailsLink=!0,this.detailClickedEvent=new N.EventEmitter,this.informationalSeverity=O.RuleSeverity.Informational,this.mapOptions={fullscreenControl:!0,mapTypeControl:!0}}ngAfterViewInit(){const at=document.getElementById("legend");at&&this.map.controls[google.maps.ControlPosition.LEFT_BOTTOM].push(at);const rt=new google.maps.LatLngBounds;this.asset&&rt.extend({lat:this.asset.lastKnownLocation.latitude,lng:this.asset.lastKnownLocation.longitude}),this.events&&this.events.forEach(X=>{null!=X&&rt.extend({lat:X.locationLatitude,lng:X.locationLongitude})}),this.eventDetails&&rt.extend({lat:this.eventDetails.locationLatitude,lng:this.eventDetails.locationLongitude}),this.map.fitBounds(rt)}ngOnDestroy(){}getSeverityMarker(at){return at?at.valueOf()===O.RuleSeverity.High?"/static/angular-resources/telematics/pins/red.png":at.valueOf()===O.RuleSeverity.Medium?"/static/angular-resources/telematics/pins/orange.png":at.valueOf()===O.RuleSeverity.Low?
1"/static/angular-resources/telematics/pins/yellow.png":(console.log("Error: Unknown Severity"),null)
1:null}getSeverityString(at){return at?at.valueOf()===O.RuleSeverity.High?"High":at.valueOf()===O.RuleSeverity.Medium?"Medium":at.valueOf()===O.RuleSeverity.Low?"Low":at.valueOf()===O.RuleSeverity.Informational?"Informational":(console.log("Error: Unknown Severity: ",at),"Not Found (Error)"):"Unknown"}getAssetMarkerOptions(){return this.asset?.lastKnownLocation?{position:{lat:this.asset.lastKnownLocation.latitude,lng:this.asset.lastKnownLocation.longitude}}:null}getMarkerOptions(at){const rt={position:{lat:at.locationLatitude,lng:at.locationLongitude},clickable:!0},X=this.getSeverityMarker(at.ruleSeverity);if(X){const gt=new google.maps.Size(21,30);rt.icon={url:X,scaledSize:gt}}return rt}getCategories(at){return at.map(u.capitalizeFirstLetter).join(",")}clickedMarker(at,rt){this.getClosestAddress(at.locationLatitude,at.locationLongitude),this.selectedEvent=at,this.infoWindow.open(rt)}getClosestAddress(at,rt){let X=new google.maps.Geocoder,mt={latLng:new google.maps.LatLng(at,rt)};X.geocode(mt,(St,ft)=>{ft===google.maps.GeocoderStatus.OK?(this.markerAddress=St[0].formatted_address,this.cd.detectChanges()):(this.markerAddress="Not Enabled",this.cd.detectChanges(),console.log("Error reverse geocoding Google API with status: ",ft))})}detailLinkClicked(){this.detailClickedEvent.emit()}static{this.\u0275fac=function(rt){return new(rt||F)(g.\u0275\u0275directiveInject(g.ChangeDetectorRef))}}static{this.\u0275cmp=g.\u0275\u0275defineComponent({type:F,selectors:[["telematics-map-events"]],viewQuery:function(rt,X){if(1&rt&&g.\u0275\u0275viewQuery(b.GoogleMap,5)(b.MapInfoWindow,5),2&rt){let gt;g.\u0275\u0275queryRefresh(gt=g.\u0275\u0275loadQuery())&&(X.map=gt.first),g.\u0275\u0275queryRefresh(gt=g.\u0275\u0275loadQuery())&&(X.infoWindow=gt.first)}},inputs:{events:"events",eventDetails:"eventDetails",showDetailsLink:"showDetailsLink",asset:"asset"},outputs:{detailClickedEvent:"detailClickedEvent"},standalone:!1,decls:9,vars:6,consts:[["gmap",""],["infoWindow",""],["markerElement","mapMarker"],["marker",""],["width","100%","height","500px",3,"options"],["id","legend","src","/static/angular-resources/telematics/NotMan_Legend.png","width","110","height","61"],[3,"options"],[3,"mapClick","options"],[3,"routerLink"],[3,"click","routerLink"]],template:function(rt,X){1&rt&&(g.\u0275\u0275elementStart(0,"google-map",4,0),g.\u0275\u0275conditionalCreate(2,p,1,0,"img",5),g.\u0275\u0275conditionalCreate(3,lt,2,0),g.\u0275\u0275conditionalCreate(4,r,2,1,"map-marker",6),g.\u0275\u0275conditionalCreate(5,I,2,1,"map-marker",6),g.\u0275\u0275elementStart(6,"map-info-window",null,1),g.\u0275\u0275conditionalCreate(8,C,26,10),g.\u0275\u0275elementEnd()()),2&rt&&(g.\u0275\u0275property("options",X.mapOptions),g.\u0275\u0275advance(2),g.\u0275\u0275conditional((null==X.events?null:X.events.length)>0&&X.events[0]?2:-1),g.\u0275\u0275advance(),g.\u0275\u0275conditional((null==X.events?null:X.events.length)>0&&X.events[0]?3:-1),g.\u0275\u0275advance(),g.\u0275\u0275conditional(X.eventDetails?4:-1),g.\u0275\u0275advance(),g.\u0275\u0275conditional(X.asset?5:-1),g.\u0275\u0275advance(3),g.\u0275\u0275conditional(X.selectedEvent?8:-1))},dependencies:[h.RouterLink,D.GoogleMap,D.MapInfoWindow,D.MapMarker,f.DatePipe],styles:["agm-map[_ngcontent-%COMP%]{height:500px}"],changeDetection:0})}}return F})()},30222(Ht,T,d){"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.VehicleStatusComponent=void 0;const S=d(31635),N=d(49849),o=(d(21916),d(84341),S.__importDefault(d(97586))),g=(d(20851),d(59091)),h=S.__importStar(d(49849)),D=S.__importStar(d(21916)),f=S.__importStar(d(84341)),v=S.__importStar(d(20851)),p=S.__importStar(d(47917));function J(F,ct){if(1&F){const at=h.\u0275\u0275getCurrentView();h.\u0275\u0275elementStart(0,"select",16),h.\u0275\u0275listener("change",function(){h.\u0275\u0275restoreView(at);const X=h.\u0275\u0275nextContext(2);return h.\u0275\u0275resetView(X.sortSignals())}),h.\u0275\u0275elementStart(1,"option",17),h.\u0275\u0275listener("click",function(){h.\u0275\u0275restoreView(at);const X=h.\u0275\u0275nextContext(2);
1return h.\u0275\u0275resetView(X.dropDownToggle())}),h.\u0275\u0275text(2,"System"),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementStart(3,"option",18),h.\u0275\u0275listener("click",function(){h.\u0275\u0275restoreView(at);const X=h.\u0275\u0275nextContext(2);return h.\u0275\u0275resetView(X.dropDownToggle())}),h.\u0275\u0275text(4,"Status"),h.\u0275\u0275elementEnd()()}}function lt(F,ct){if(1&F){const at=h.\u0275\u0275getCurrentView();h.\u0275\u0275elementStart(0,"form",8),h.\u0275\u0275listener("ngSubmit",function(){h.\u0275\u0275restoreView(at);const X=h.\u0275\u0275nextContext();return h.\u0275\u0275resetView(X.sortSignals())}),h.\u0275\u0275elementStart(1,"div",9)(2,"button",10),h.\u0275\u0275listener("click",function(){h.\u0275\u0275restoreView(at);const X=h.\u0275\u0275nextContext();return h.\u0275\u0275resetView(X.dropDownToggle())}),h.\u0275\u0275elementStart(3,"span",11),h.\u0275\u0275element(4,"span",12),h.\u0275\u0275elementStart(5,"small"),h.\u0275\u0275text(6,"Sort"),h.\u0275\u0275elementEnd()()(),h.\u0275\u0275conditionalCreate(7,J,5,0,"select",13),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementStart(8,"div",9)(9,"button",14),h.\u0275\u0275listener("click",function(){h.\u0275\u0275restoreView(at);const X=h.\u0275\u0275nextContext();return h.\u0275\u0275resetView(X.refresh())}),h.\u0275\u0275elementStart(10,"span",11),h.\u0275\u0275element(11,"span",15),h.\u0275\u0275elementStart(12,"small"),h.\u0275\u0275text(13,"Refresh"),h.\u0275\u0275elementEnd()()()()()}if(2&F){const at=h.\u0275\u0275nextContext();h.\u0275\u0275property("formGroup",at.vehicleStatusForm),h.\u0275\u0275advance(7),h.\u0275\u0275conditional(at.showDropDown?7:-1)}}function r(F,ct){1&F&&(h.\u0275\u0275elementStart(0,"div",6)(1,"div",19),h.\u0275\u0275element(2,"i",20),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementStart(3,"div")(4,"h5"),h.\u0275\u0275text(5,"Vehicle status information is not currently available. Potential reasons include:"),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementStart(6,"ul")(7,"li"),h.\u0275\u0275text(8," Vehicle has not created or sent data in the last 7 days. "),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementStart(9,"li"),h.\u0275\u0275text(10," Vehicle does not have a paid access package. "),h.\u0275\u0275elementEnd()(),h.\u0275\u0275text(11," Need additional help? Please contact "),h.\u0275\u0275elementStart(12,"a",21),h.\u0275\u0275text(13,"Altec Fleet Services."),h.\u0275\u0275elementEnd()()())}function I(F,ct){if(1&F&&(h.\u0275\u0275elementStart(0,"tr")(1,"td"),h.\u0275\u0275text(2),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementStart(3,"td"),h.\u0275\u0275text(4),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementStart(5,"td"),h.\u0275\u0275text(6),h.\u0275\u0275pipe(7,"timeStampConvert"),h.\u0275\u0275elementEnd()()),2&F){const at=ct.$implicit;h.\u0275\u0275advance(2),h.\u0275\u0275textInterpolate(at.name),h.\u0275\u0275advance(2),h.\u0275\u0275textInterpolate(at.translatedValue?at.translatedValue:at.value),h.\u0275\u0275advance(2),h.\u0275\u0275textInterpolate(h.\u0275\u0275pipeBind1(7,3,at.timestamp))}}function vt(F,ct){if(1&F&&(h.\u0275\u0275elementStart(0,"div",22)(1,"div",23)(2,"div",24,0)(4,"table",25)(5,"thead")(6,"tr")(7,"th"),h.\u0275\u0275text(8,"System"),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementStart(9,"th"),h.\u0275\u0275text(10,"Status"),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementStart(11,"th"),h.\u0275\u0275text(12,"Last Updated"),h.\u0275\u0275elementEnd()()(),h.\u0275\u0275elementStart(13,"tbody"),h.\u0275\u0275repeaterCreate(14,I,8,5,"tr",null,h.\u0275\u0275repeaterTrackByIdentity),h.\u0275\u0275elementEnd()()()()()),2&F){const at=ct.$implicit;h.\u0275\u0275advance(14),h.\u0275\u0275repeater(at.lastKnownSignals)}}function C(F,ct){if(1&F&&(h.\u0275\u0275elementStart(0,"div",7),h.\u0275\u0275repeaterCreate(1,vt,16,0,"div",22,h.\u
10275\u0275repeaterTrackByIdentity),h.\u0275\u0275elementEnd()),2&F){const at=h.\u0275\u0275nextContext();h.\u0275\u0275advance(),h.\u0275\u0275repeater(at.asset)}}T.VehicleStatusComponent=(()=>{class F{constructor(at,rt,X){this.fleetService=at,this.fb=rt,this.loader=X,this.showSorterOptions=!1,this.showActiveDTCs=!1,this.hasVehicleStatus=!1,this.instanceIds=[],this.viewActiveDTCs=new N.EventEmitter,this.createFormGroup()}ngOnDestroy(){}fireViewActiveDTCs(){this.viewActiveDTCs.next()}ngOnInit(){const at=new Date,rt=o.default.tz.guess();this.timeZoneOffset=at.getTimezoneOffset(),this.timeZoneAbbreviation=o.default.tz.zone(rt).abbr(this.timeZoneOffset),this.instanceIds.push(this.instanceId),this.loader.start(),this.fleetService.getAssets(this.instanceIds,["RemoteDiag"]).pipe((0,g.take)(1)).subscribe(X=>{X&&(X.assets[0].lastKnownSignals.length>0&&(this.hasVehicleStatus=!0,this.asset=X.assets,this.fleetService.findUnitDTCs(this.instanceId,"UDTC0",!0).pipe((0,g.take)(1)).subscribe(mt=>{mt?(this.activeFaults=mt.results,this.unitDtcCapable=mt.unitDtcCapable,this.activeFaults.sort((ft,ot)=>ft.transitionTime>ot.transitionTime?-1:ft.transitionTime<ot.transitionTime?1:0),this.activeFaults.length>0&&(this.showActiveDTCs=!0),this.loader.stop()):(this.unitDtcCapable=!1,this.loader.stop())}),this.asset[0].lastKnownSignals.sort((mt,St)=>mt.name<St.name?-1:mt.name>St.name?1:0)),this.loader.stop()),this.loader.stop()})}dropDownToggle(){this.showDropDown=!this.showDropDown}sortSignals(){"system"===this.vehicleStatusForm.value.sortBy&&this.asset[0].lastKnownSignals.sort((rt,X)=>rt.name<X.name?-1:rt.name>X.name?1:0),"status"===this.vehicleStatusForm.value.sortBy&&this.asset[0].lastKnownSignals.sort((rt,X)=>{let gt=rt.translatedValue??rt.value,mt=X.translatedValue??X.value;if(gt===mt)return 0;if(null==gt)return 1;if(null==mt)return-1;const St=parseFloat(gt.match(/\d+/)?.[0]||"NaN"),ft=parseFloat(mt.match(/\d+/)?.[0]||"NaN"),ot=/\d/.test(gt),B=/\d/.test(mt);return ot&&!B?1:B&&!ot?-1:St&&ft?St<ft?-1:St>ft?1:0:gt<mt?-1:1})}createFormGroup(){this.vehicleStatusForm=this.fb.group({system:[""],status:[""],sortBy:[""],sortDirection:["DESC"]})}refresh(){this.loader.start(),this.fleetService.getAssets(this.instanceIds,["RemoteDiag"]).subscribe(at=>{at&&at.assets[0].lastKnownSignals.length>0&&(this.hasVehicleStatus=!0,this.asset=at.assets,this.asset[0].lastKnownSignals.sort((X,gt)=>X.name<gt.name?-1:X.name>gt.name?1:0)),this.loader.stop()})}static{this.\u0275fac=function(rt){return new(rt||F)(h.\u0275\u0275directiveInject(D.FleetService),h.\u0275\u0275directiveInject(f.FormBuilder),h.\u0275\u0275directiveInject(v.LoadingService))}}static{this.\u0275cmp=h.\u0275\u0275defineComponent({type:F,selectors:[["altec-connect-vehicle-status"]],inputs:{instanceId:"instanceId",asset:"asset",activeFaults:"activeFaults",unitDtcCapable:"unitDtcCapable"},outputs:{viewActiveDTCs:"viewActiveDTCs"},standalone:!1,decls:8,vars:3,consts:[["tableContainer",""],[1,"d-flex","flex-wrap","align-items-start","gap-2","mb-3","vehicle-status-toolbar"],[1,"d-flex","flex-wrap","align-items-start","gap-2","mb-0",3,"formGroup"],[1,"dtc-link"],[1,"btn","btn-altec",3,"click"],[1,"fa","fa-external-link"],[1,"vehicle-status-alert"],[1,"row"],[1,"d-flex","flex-wrap","align-items-start","gap-2","mb-0",3,"ngSubmit","formGroup"],[1,"toolbar-item"],["type","button","data-bs-toggle","dropdown","role","button","data-id","unitSelect",1,"btn","bs-placeholder","btn-light","text-start","form-control","dropdown-toggle",3,"click"],[1,"filter-option"],[1,"fa","fa-sort","pe-2"],["size","2","id","sortSelect","formControlName","sortBy",1,"form-control","form-control-sm"],["type","button",1,"btn","bs-placeholder","btn-light","text-start","form-control",3,"click"],[1,"fa","fa-refresh","pe-2"],["size","2","id","sortSelect","formControlName","sortBy",1,"form-control","form-control-sm",3,"change"],["value","system",3,"click"],["value","status",3,"click"],[1,"alert-triangle"],[1,"fa","fa-exclamation-triangle"],["href","mailto:[email protected]"],[1,"col-12"],[1,"position-relative"],[1,"table-container"],[1,"table","table-striped","table-responsive"]],template:function(rt,X){1&rt&&(h.\u0275\u0275elementStart(0,"div",1),h.\u0275\u0275conditionalCreate(1,lt,14,2,"form",2),h.\u0275\u0275elementStart(2,"div",3)(3,"button",4),h.\u0275\u0275listener("click",function(){return X.fireViewActiveDTCs()}),h.\u0275\u0275element(4,"i",5),h.\u0275\u0275text(5," View Active DTCs"),h.\u0275\u0275elementEnd()()(),h.\u0275\u0275conditionalCreate(6,r,14,0,"div",6),h.\u0275\u0275conditionalCreate(7,C,3,0,"div",7)),2&rt&&(h.\u0275\u0275advance(),h.\u0275\u0275conditional(X.hasVehicleStatus?1:-1),h.\u0275\u0275advance(5),h.\u0275\u0275conditional(X.hasVehicleStatus?-1:6),h.\u0275\u0275advance(),h.\u0275\u0275conditional(X.hasVehicleStatus?7:-1))},dependencies:[f.\u0275NgNoValidate,f.NgSelectOption,f.\u0275NgSelectMultipleOption,f.SelectControlValueAccessor,f.NgControlStatus,f.NgControlStatusGroup,f.FormGroupDirective,f.FormControlName,p.TimeStampConvertPipe],styles:["[_ngcontent-%COMP%]:root{--bs-gutter-x: 1.5rem;--bs-gutter-y: 1.5rem}.d-flex[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{float:none}.col[_ngcontent-%COMP%]{flex:1 0 0;padding-left:var(--bs-gutter-x, 1.5rem);padding-right:var(--bs-gutter-x, 1.5rem)}@media only screen and (min-width:576px){.col-sm-auto[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;max-width:none}}@media only screen and (min-width:768px){.col-md-auto[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;max-width:none}}.col-auto[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;max-width:100%;padding-left:var(--bs-gutter-x, 1.5rem);padding-right:var(--bs-gutter-x, 1.5rem)}.justify-content-center[_ngcontent-%COMP%]{justify-content:center}.justify-content-end[_ngcontent-%COMP%]{justify-content:end}.align-items-center[_ngcontent-%COMP%]{align-items:center}.align-items-end[_ngcontent-%COMP%]{align-items:end}.flex-column-reverse[_ngcontent-%COMP%]{flex-direction:column-reverse}.d-flex[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}@media only screen and (min-width:768px){.d-md-block[_ngcontent-%COMP%]{display:block}}@media only screen and (min-width:768px){.d-md-none[_ngcontent-%COMP%]{display:none}}@media only screen and (min-width:768px){.d-md-flex[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}}@media only screen and (min-width:992px){.d-lg-none[_ngcontent-%COMP%]{display:none!important}}@media only screen and (min-width:992px){.d-lg-block[_ngcontent-%COMP%]{display:block!important}}.w-100[_ngcontent-%COMP%]{width:100%!important}.h-100[_ngcontent-%COMP%]{height:100%!important}.px-3[_ngcontent-%COMP%]{padding-left:15px!important;padding-right:15px!important}.pr-0[_ngcontent-%COMP%]{padding-right:0!important}.pl-0[_ngcontent-%COMP%]{padding-left:0!important}.pt-3[_ngcontent-%COMP%]{padding-top:1rem}.pb-3[_ngcontent-%COMP%]{padding-bottom:1rem}.mb-3[_ngcontent-%COMP%]{margin-bottom:1rem}.pb-2[_ngcontent-%COMP%]{padding-bottom:.5rem}@media print{.no-print[_ngcontent-%COMP%]{display:none!important}}.m-0[_ngcontent-%COMP%]{margin:0!important}.mt-0[_ngcontent-%COMP%]{margin-top:0!important}.mb-0[_ngcontent-%COMP%]{margin-bottom:0!important}.ms-0[_ngcontent-%COMP%]{margin-left:0!important}.me-0[_ngcontent-%COMP%]{margin-right:0!important}.mx-0[_ngcontent-%COMP%]{margin-left:0!important;margin-right:0!important}.my-0[_ngcontent-%COMP%]{margin-top:0!important;margin-bottom:0!important}.p-0[_ngcontent-%COMP%]{padding:0!important}.pt-0[_ngcontent-%COMP%]{padding-top:0!important}.pb-0[_ngcontent-%COMP%]{padding-bottom:0!important}.ps-0[_ngcontent-%COMP%]{padding-left:0!important}.pe-0[_ngcontent-%COMP%]{padding-right:0!important}.px-0[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.py-0[_ngcontent-%COMP%]{padding-top:0!important;padding-bottom:0!important}.m-1[_ngcontent-%COMP%]{margin:.25rem!important}.mt-1[_ngcontent-%COMP%]{margin-top:.25rem!important}.mb-1[_ngcontent-%COMP%]{margin-bottom:.25rem!important}.ms-1[_ngcontent-%COMP%]{margin-left:.25rem!important}.me-1[_ngcontent-%COMP%]{margin-right:.25rem!important}.mx-1[_ngcontent-%COMP%]{margin-left:.25rem!important;margin-right:.25rem!important}.my-1[_ngcontent-%COMP%]{margin-top:.25rem!important;margin-bottom:.25rem!important}.p-1[_ngcontent-%COMP%]{padding:.25rem!important}.pt-1[_ngcontent-%COMP%]{padding-top:.25rem!important}.pb-1[_ngcontent-%COMP%]{padding-bottom:.25rem!important}.ps-1[_ngcontent-%COMP%]{padding-left:.25rem!important}.pe-1[_ngcontent-%COMP%]{padding-right:.25rem!important}.px-1[_ngcontent-%COMP%]{padding-left:.25rem!important;padding-right:.25rem!important}.py-1[_ngcontent-%COMP%]{padding-top:.25rem!important;padding-bottom:.25rem!important}.m-2[_ngcontent-%COMP%]{margin:.5rem!important}.mt-2[_ngcontent-%COMP%]{margin-top:.5rem!important}.mb-2[_ngcontent-%COMP%]{margin-bottom:.5rem!important}.ms-2[_ngcontent-%COMP%]{margin-left:.5rem!important}.me-2[_ngcontent-%COMP%]{margin-right:.5rem!important}.mx-2[_ngcontent-%COMP%]{margin-left:.5rem!important;margin-right:.5rem!important}.my-2[_ngcontent-%COMP%]{margin-top:.5rem!important;margin-bottom:.5rem!important}.p-2[_ngcontent-%COMP%]{padding:.5rem!important}.pt-2[_ngcontent-%COMP%]{padding-top:.5rem!important}.pb-2[_ngcontent-%COMP%]{padding-bottom:.5rem!important}.ps-2[_ngcontent-%COMP%]{padding-left:.5rem!important}
1.pe-2[_ngcontent-%COMP%]{padding-right:.5rem!important}.px-2[_ngcontent-%COMP%]{padding-left:.5rem!important;padding-right:.5rem!important}.py-2[_ngcontent-%COMP%]{padding-top:.5rem!important;padding-bottom:.5rem!important}.m-3[_ngcontent-%COMP%]{margin:1rem!important}.mt-3[_ngcontent-%COMP%]{margin-top:1rem!important}.mb-3[_ngcontent-%COMP%]{margin-bottom:1rem!important}.ms-3[_ngcontent-%COMP%]{margin-left:1rem!important}.me-3[_ngcontent-%COMP%]{margin-right:1rem!important}.mx-3[_ngcontent-%COMP%]{margin-left:1rem!important;margin-right:1rem!important}.my-3[_ngcontent-%COMP%]{margin-top:1rem!important;margin-bottom:1rem!important}.p-3[_ngcontent-%COMP%]{padding:1rem!important}.pt-3[_ngcontent-%COMP%]{padding-top:1rem!important}.pb-3[_ngcontent-%COMP%]{padding-bottom:1rem!important}.ps-3[_ngcontent-%COMP%]{padding-left:1rem!important}.pe-3[_ngcontent-%COMP%]{padding-right:1rem!important}.px-3[_ngcontent-%COMP%]{padding-left:1rem!important;padding-right:1rem!important}.py-3[_ngcontent-%COMP%]{padding-top:1rem!important;padding-bottom:1rem!important}.m-4[_ngcontent-%COMP%]{margin:1.5rem!important}.mt-4[_ngcontent-%COMP%]{margin-top:1.5rem!important}.mb-4[_ngcontent-%COMP%]{margin-bottom:1.5rem!important}.ms-4[_ngcontent-%COMP%]{margin-left:1.5rem!important}.me-4[_ngcontent-%COMP%]{margin-right:1.5rem!important}.mx-4[_ngcontent-%COMP%]{margin-left:1.5rem!important;margin-right:1.5rem!important}.my-4[_ngcontent-%COMP%]{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.p-4[_ngcontent-%COMP%]{padding:1.5rem!important}.pt-4[_ngcontent-%COMP%]{padding-top:1.5rem!important}.pb-4[_ngcontent-%COMP%]{padding-bottom:1.5rem!important}.ps-4[_ngcontent-%COMP%]{padding-left:1.5rem!important}.pe-4[_ngcontent-%COMP%]{padding-right:1.5rem!important}.px-4[_ngcontent-%COMP%]{padding-left:1.5rem!important;padding-right:1.5rem!important}.py-4[_ngcontent-%COMP%]{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.m-5[_ngcontent-%COMP%]{margin:3rem!important}.mt-5[_ngcontent-%COMP%]{margin-top:3rem!important}.mb-5[_ngcontent-%COMP%]{margin-bottom:3rem!important}.ms-5[_ngcontent-%COMP%]{margin-left:3rem!important}.me-5[_ngcontent-%COMP%]{margin-right:3rem!important}.mx-5[_ngcontent-%COMP%]{margin-left:3rem!important;margin-right:3rem!important}.my-5[_ngcontent-%COMP%]{margin-top:3rem!important;margin-bottom:3rem!important}.p-5[_ngcontent-%COMP%]{padding:3rem!important}.pt-5[_ngcontent-%COMP%]{padding-top:3rem!important}.pb-5[_ngcontent-%COMP%]{padding-bottom:3rem!important}.ps-5[_ngcontent-%COMP%]{padding-left:3rem!important}.pe-5[_ngcontent-%COMP%]{padding-right:3rem!important}.px-5[_ngcontent-%COMP%]{padding-left:3rem!important;padding-right:3rem!important}.py-5[_ngcontent-%COMP%]{padding-top:3rem!important;padding-bottom:3rem!important}select[_ngcontent-%COMP%]{overflow:auto;width:100%;height:auto;cursor:pointer}option[_ngcontent-%COMP%]:hover{background-color:#d3d3d3}.fa-exclamation-triangle[_ngcontent-%COMP%]{color:#a94442;font-size:5em!important;vertical-align:middle}.vehicle-status-alert[_ngcontent-%COMP%]{display:grid;grid-template-rows:auto;grid-template-columns:auto 1fr;column-gap:var(--bs-gutter-x, 1.5rem)}.alert-triangle[_ngcontent-%COMP%]{padding-top:var(--bs-gutter-x, 1.5rem)}.dtc-link[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;padding-right:var(--bs-gutter-x, 1.5rem);margin-left:auto;cursor:pointer}@media only screen and (max-width:767.98px){.dtc-link[_ngcontent-%COMP%]{width:100%;justify-content:center;text-align:center;padding-right:0;padding-bottom:var(--bs-gutter-x, 1.5rem);margin-left:0}}.vehicle-status-toolbar[_ngcontent-%COMP%] .toolbar-item[_ngcontent-%COMP%]{width:140px}@media only screen and (max-width:767.98px){.vehicle-status-toolbar[_ngcontent-%COMP%]{flex-direction:column;align-items:stretch}.vehicle-status-toolbar[_ngcontent-%COMP%] .dtc-link[_ngcontent-%COMP%]{order:-1}.vehicle-status-toolbar[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{flex-direction:column;width:100%}.vehicle-status-toolbar[_ngcontent-%COMP%] .toolbar-item[_ngcontent-%COMP%]{width:100%}.vehicle-status-toolbar[_ngcontent-%COMP%] .toolbar-item[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{text-align:center!important}}@media(max-width:800px){.fa-exclamation-triangle[_ngcontent-%COMP%]{color:#a94442;font-size:2em!important;vertical-align:middle}.vehicle-status-alert[_ngcontent-%COMP%]{display:grid;grid-template-rows:auto;grid-template-columns:15% 85%}.alert-triangle[_ngcontent-%COMP%]{padding-top:var(--bs-gutter-x, 1.5rem)}}"]})}}return F})()},46346(Ht,T){"use strict";
1Object.defineProperty(T,"__esModule",{value:!0}),T.FIRST_TELEMATICS_EVENT_DATE=void 0,T.FIRST_TELEMATICS_EVENT_DATE=16409952e5},4071(Ht,T,d){"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.TelematicsPrivilegeGuard=void 0;const S=d(31635),N=d(91898),O=S.__importStar(d(49849));T.TelematicsPrivilegeGuard=(()=>{class o extends N.AbstractPrivilegeGuard{getRequiredPrivileges(){return["B2B_View_Analytics_Summary"]}static{this.\u0275fac=(()=>{let g;return function(D){return(g||(g=O.\u0275\u0275getInheritedFactory(o)))(D||o)}})()}static{this.\u0275prov=O.\u0275\u0275defineInjectable({token:o,factory:o.\u0275fac})}}return o})()},15443(Ht,T){"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.RuleSeverityStringToNumber=T.RuleSeverity=T.RuleStatus=void 0;var d=function(O){return O.Active="ACTIVE",O.Inactive="INACTIVE",O}(d||(T.RuleStatus=d={})),S=function(O){return O.High="HIGH",O.Medium="MEDIUM",O.Low="LOW",O.Informational="INFORMATIONAL",O}(S||(T.RuleSeverity=S={})),N=function(O){return O[O.HIGH=0]="HIGH",O[O.MEDIUM=1]="MEDIUM",O[O.LOW=2]="LOW",O[O.INFORMATIONAL=3]="INFORMATIONAL",O}(N||(T.RuleSeverityStringToNumber=N={}))},22391(Ht,T){"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.EventDetails=void 0,T.EventDetails=class d{constructor(){this.altecChsSerial="",this.custAccountId=0,this.delegateAccountId=0,this.durationSeconds=0,this.endTimestamp="",this.eventId="",this.externalReference="",this.finalAssemblyNumber="",this.instanceId=0,this.locationCellId="",this.locationIpv4="",this.locationLac="",this.locationLatitude=0,this.locationLongitude=0,this.locationMcc="",this.locationMnc="",this.model="",this.ruleCategories=[],this.ruleDescription="",this.ruleId=0,this.ruleName="",this.rulePotentialCause="",this.ruleRecommendedAction="",this.ruleSeverity="",this.ruleStatus="",this.ruleTageName=[],this.source="",this.startTimestamp="",this.status="",this.telematicsAssetId="",this.unitSerialNumber="",this.eventType="",this.inServiceDate=""}}},94318(Ht,T,d){"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.TelematicsDataService=T.EventDetailsResponse=T.Summary=T.AnalyticsEventsSummaryResponse=T.AnalyticsEventsResponse=void 0;const S=d(31635),N=S.__importDefault(d(97586)),O=d(1559),g=(d(97377),d(53323),d(6127),S.__importStar(d(49849))),h=S.__importStar(d(53323)),D=S.__importStar(d(97377)),f=S.__importStar(d(6127));T.AnalyticsEventsResponse=class v{constructor(){this.matchingCount=0,this.results=[]}},T.AnalyticsEventsSummaryResponse=class p{constructor(){this.summaries=[],this.totalDuration=0,this.totalEvents=0}},T.Summary=class J{constructor(){this.count=0,this.duration=0,this.groupName=""}},T.EventDetailsResponse=class lt{constructor(){this.associatedSignals=[],this.eventDetails=[]}},T.TelematicsDataService=(()=>{class I{constructor(C,ht,F){this.integrationClient=C,this.statefulService=ht,this.http=F,this.safetyRuleIds=[],this.performanceRuleIds=[],this.fetchFeatures().subscribe(ct=>{if(ct?.features){const at=["BSE0","SE0"],rt=["PE0"],X=ct.features.filter(mt=>at.indexOf(mt.id)>=0),gt=ct.features.filter(mt=>rt.indexOf(mt.id)>=0);for(let mt of X)this.safetyRuleIds=this.safetyRuleIds.concat(mt.ruleIds);for(let mt of gt)this.performanceRuleIds=this.performanceRuleIds.concat(mt.ruleIds)}})}getEvents(C,ht,F,ct,at,rt,X,gt,mt){const St=this.buildEventParams(ht,F,gt??null,ct,at,C,rt,X,mt);return this.integrationClient.request("/telematics/events",St)}buildEventParams(C,ht,F,ct,at,rt,X,gt,mt){let St={startDate:(0,N.default)(C).format("YYYY-MM-DD"),endDate:(0,N.default)(ht).add(1,"day").format("YYYY-MM-DD"),timeZone:(0,O.getTimeZone)(new Date(ht)),offset:X,limit:gt,sortOptions:at,eventType:mt};switch(F&&(St.instanceIds=F),rt){case"safety":St.featureIds=["SE0","BSE0"];break;case"performance":St.featureIds=["PE0"];break;case"jems":St.featureIds=["JEMS0"];break;default:St.featureIds=["SE0","BSE0","PE0"]}return ct&&""!=ct&&(St.flexibleSearch=ct),St}getEventsSummary(C,ht,F,ct,at){let rt={customerAccountIds:this.statefulService.getAllAccountIds(),startDate:(0,N.default)(ht).format("YYYY-MM-DD"),endDate:(0,N.default)(F).add(1,"day").format("YYYY-MM-DD"),timeZone:(0,O.getTimeZone)(new Date(F)),eventType:at,flexibleSearch:ct};return rt.featureIds=C?["SE0","BSE0"]:["PE0"],this.integrationClient.request("/telematics/events/summary",rt)}getEventDetails(C){let ht={eventId:C,featureIds:["SE0","BSE0","PE0"],timeZone:(0,O.getTimeZone)(new Date)};return this.integrationClient.request("/telematics/event/details",ht)}fetchInstanceEvents(C,ht,F,ct,at,rt,X){let gt={startDate:(0,N.default)(C).format("YYYY-MM-DD"),endDate:(0,N.default)(ht).add(1,"day").format("YYYY-MM-DD"),timeZone:(0,O.getTimeZone)(new Date(ht)),offset:ct,limit:"10",sortOptions:at,instanceIds:[F.toString()],eventType:X};return gt.featureIds="safety"===rt?["SE0","BSE0"]:"performance"===rt?["PE0"]:["SE0","BSE0","PE0"],this.integrationClient.request("/telematics/events",gt)}fetchRuleTags(){return this.integrationClient.request("/iotRules/ruleTags",{})}fetchFeatures(){return this.integrationClient.request("/featureMgmt/features",{})}generateEventsExportUrl(C,ht,F,ct,at,rt,X,gt){const St=this.buildEventParam
1s(C,ht,[F],at,rt,X,0,"999999999",gt);return this.integrationClient.generateGetUrl("/telematics/events/csv",St,"text/csv")}generateEventDetailsExportUrl(C){let ht={eventId:C,featureIds:["SE0","BSE0","PE0"],timeZone:(0,O.getTimeZone)(new Date)};return this.integrationClient.generateGetUrl("/telematics/event/details/export",ht,"text/csv")}exportEventDetails(C){let ht={eventId:C,featureIds:["SE0","BSE0","PE0"],timeZone:(0,O.getTimeZone)(new Date)};return this.integrationClient.request("/telematics/event/details/exportasync",ht)}getEventTypeFilter(C,ht){let F={customerAccountIds:this.statefulService.getAllAccountIds(),instanceId:ht};return F.featureKeys=C?["SE0","BSE0"]:["PE0"],this.integrationClient.request("/telematics/impact-analysis/query/notification-options",F)}getAllEventTypesFilter(C){let ht={customerAccountIds:this.statefulService.getAllAccountIds(),instanceId:C,featureKeys:["SE0","PE0","BSE0"]};return this.integrationClient.request("/telematics/impact-analysis/query/notification-options",ht)}isSafetyEvent(C){return this.safetyRuleIds.indexOf(C.ruleId)>=0}static{this.\u0275fac=function(ht){return new(ht||I)(g.\u0275\u0275inject(h.IntegrationClientService),g.\u0275\u0275inject(D.StatefulService),g.\u0275\u0275inject(f.HttpClient))}}static{this.\u0275prov=g.\u0275\u0275defineInjectable({token:I,factory:I.\u0275fac,providedIn:"root"})}}return I})()},69812(Ht,T,d){"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.TelematicsModule=void 0;const S=d(31635),N=d(60177),O=d(84341),u=d(83352),o=d(91898),b=d(35235),g=d(4071),h=d(80053),D=d(76301),f=d(21445),v=d(6324),p=d(50969),J=d(68312),lt=d(15736),r=d(40509),I=S.__importStar(d(49849));T.TelematicsModule=(()=>{class C{static{this.\u0275fac=function(ct){return new(ct||C)}}static{this.\u0275mod=I.\u0275\u0275defineNgModule({type:C})}static{this.\u0275inj=I.\u0275\u0275defineInjector({providers:[D.AnalyticsTokenRefreshGuard,g.TelematicsPrivilegeGuard,N.DatePipe,p.GoogleMap],imports:[N.CommonModule,h.AppRoutingModule,O.ReactiveFormsModule,lt.SearchWidgetComponent,J.PaginationWidgetComponent,u.CommonProjModule,o.CommonPrivilegeModule,b.NgChartsModule,v.NgbModule,O.FormsModule,f.SelectiveViewModule,r.InlineDaterangeComponent,p.GoogleMapsModule]})}}return C})()},1106(Ht,T){"use strict";function d(g,h){return g.toLocaleDateString("en-US",h).replace(/\u200E/g,"")}Object.defineProperty(T,"__esModule",{value:!0}),T.localDateString=function S(g){return d(g,{year:"numeric",month:"short",day:"numeric"})},T.localShortDateTimeString=function N(g){return d(g,{month:"short",day:"numeric",hour:"numeric",minute:"numeric"})},T.localDateTimeString=function O(g){return d(g,{month:"short",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"})},T.localStartOfDay=function u(g){return new Date(g.getFullYear(),g.getMonth(),g.getDate())},T.startOfHour=function o(g){return new Date(g.getFullYear(),g.getMonth(),g.getDate(),g.getHours())},T.clone=function b(g){return new Date(g.valueOf())}},77162(Ht,T,d){"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.capitalizeFirstLetter=u,T.severityLabel=function o(ct){return u(ct.ruleSeverity)},T.eventDetailSeverityLabel=function b(ct){return u(ct.ruleSeverity)},T.localDateTimeLabel=g,T.startTimeLabel=function h(ct){return g(parseInt(ct.startTimestamp))},T.eventDetailStartTimeLabel=function D(ct){return g(parseInt(ct.startTimestamp))},T.startTimeLabelDate=function f(ct){return new Date(ct.startTimestamp)},T.eventDetailStartTimeLabelDate=function v(ct){return new Date(ct.startTimestamp)},T.endTimeLabel=function p(ct){return g(parseInt(ct.endTimestamp))},T.endTimeLabelDate=function J(ct){return new Date(ct.endTimestamp)},T.durationInSToHHMMSS=function lt(ct){const at=Math.floor(ct%60),rt=Math.floor(ct/60%60),X=Math.floor(ct/3600);return`${X<10?`0${X}`:String(X)}:${rt<10?`0${rt}`:String(rt)}:${at<10?`0${at}`:String(at)}`},T.toPercentString=function r(ct){return`${(0,S.roundToDecimalsAfterPoint)(100*ct,0)}%`},T.toHoursPerDayString=function I(ct){return`${(0,S.roundToDecimalsAfterPoint)(24*ct,1)}h`},T.isSeverityHigh=function vt(ct){return ct.ruleSeverity===N.RuleSeverity.High},T.isSeverityMedium=function C(ct){return ct.ruleSeverity===N.RuleSeverity.Medium},T.isSeverityLow=function ht(ct){return ct.ruleSeverity===N.RuleSeverity.Low},T.isSeverityInformational=function F(ct){return ct.ruleSeverity===N.RuleSeverity.Informational};const S=d(42008),N=d(15443),O=d(1106);function u(ct){return ct.charAt(0).toUpperCase()+ct.slice(1).toLowerCase()}function g(ct){return(0,O.localDateTimeString)(new Date(ct))}},42008(Ht,T){"use strict";
1Object.defineProperty(T,"__esModule",{value:!0}),T.roundToDecimalsAfterPoint=function d(S,N){const O=10**N;return Math.round(O*S)/O}},16544(Ht,T,d){"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.AlertComponent=void 0;const S=d(31635),N=d(49849),O=d(60177),u=d(7901),o=S.__importStar(d(49849)),b=S.__importStar(d(60177)),g=(D,f)=>({"alert-success":D,"alert-danger":f});T.AlertComponent=(()=>{class D{constructor(){this.alertType="success",this.onClose=new N.EventEmitter}ngOnInit(){}static{this.\u0275fac=function(p){return new(p||D)}}static{this.\u0275cmp=o.\u0275\u0275defineComponent({type:D,selectors:[["altec-alert"]],inputs:{alertType:"alertType",alertMessage:"alertMessage"},outputs:{onClose:"onClose"},decls:5,vars:5,consts:[["role","alert",1,"alert","alert-dismissible","mb-3",3,"ngClass"],["type","button","data-bs-dismiss","alert",1,"close",3,"click"],["aria-hidden","true"]],template:function(p,J){1&p&&(o.\u0275\u0275elementStart(0,"div",0)(1,"button",1),o.\u0275\u0275listener("click",function(){return J.onClose.next()}),o.\u0275\u0275elementStart(2,"span",2),o.\u0275\u0275text(3,"\xd7"),o.\u0275\u0275elementEnd()(),o.\u0275\u0275text(4),o.\u0275\u0275elementEnd()),2&p&&(o.\u0275\u0275property("ngClass",o.\u0275\u0275pureFunction2(2,g,"success"===J.alertType,"danger"===J.alertType)),o.\u0275\u0275advance(4),o.\u0275\u0275textInterpolate1(" ",J.alertMessage,"\n"))},dependencies:[O.CommonModule,b.NgClass,u.RouterModule],encapsulation:2})}}return D})()},79777(Ht,T,d){"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.ResultNumberDisplayComponent=void 0;const N=d(31635).__importStar(d(49849));function O(o,b){if(1&o&&(N.\u0275\u0275domElementStart(0,"div"),N.\u0275\u0275text(1),N.\u0275\u0275domElementEnd()),2&o){const g=N.\u0275\u0275nextContext();N.\u0275\u0275advance(),N.\u0275\u0275textInterpolate3(" Displaying ",g.currentPage," - ",g.SegmentPageCount," of ",g.totalRecordSize," ")}}T.ResultNumberDisplayComponent=(()=>{class o{constructor(){}ngOnChanges(){this.paginationCounter()}paginationCounter(){this.currentPage=(this.initialPageNum-1+1)*this.itemsPerPage+1,this.SegmentPageCount=(this.initialPageNum+1)*this.itemsPerPage<this.totalRecordSize?(this.initialPageNum+1)*this.itemsPerPage:this.totalRecordSize}static{this.\u0275fac=function(h){return new(h||o)}}static{this.\u0275cmp=N.\u0275\u0275defineComponent({type:o,selectors:[["altcon-resultnumberdisplay"]],inputs:{totalRecordSize:"totalRecordSize",itemsPerPage:"itemsPerPage",initialPageNum:"initialPageNum"},features:[N.\u0275\u0275NgOnChangesFeature],decls:1,vars:1,template:function(h,D){1&h&&N.\u0275\u0275conditionalCreate(0,O,2,3,"div"),2&h&&N.\u0275\u0275conditional(D.totalRecordSize?0:-1)},encapsulation:2})}}return o})()},90984(Ht,T){"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.getDateIntervalFromDaysDiff=function d(N){return N<=2?"HOUR":N>2&&N<=31?"DAY":N>31&&N<=210?"WEEK":N>210&&N<=720?"MONTH":"YEAR"},T.getInsightDateIntervalFromDaysDiff=function S(N){return N<=10?"DAILY":N>10&&N<=70?"WEEKLY":"MONTHLY"}},88088(Ht,T,d){"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.CSV_LINE_ENDING=T.MIME_TYPE_CSV=void 0,T.FormatPercentage=function N(g,h=!0,D=0){if(null!=g)return`${(g*(h?100:1)).toFixed(D)}%`},T.FormatDollars=function O(g){if(null!=g)return`$${g.toFixed(2)}`},T.downloadDataAsCsvFile=function u(g,h,D){let f=[];f.push(h.map(p=>o(p.columnName)).join(",")),g.forEach(p=>{let J=[];h.forEach(lt=>{J.push(o(lt.columnValue(p)))}),f.push(J.join(","))}),b(new Blob([f.join(T.CSV_LINE_ENDING)],{type:T.MIME_TYPE_CSV}),D)},T.downloadFileBlob=b;const S=d(2578);function o(g){return null!=g?"string"==typeof g?`"${g.trim().replace('"','""')}"`:`${g}`:""}function b(g,h){(0,S.saveAs)(g,h)}T.MIME_TYPE_CSV="text/csv;charset=utf-8;",T.CSV_LINE_ENDING="\r\n"},17606(Ht,T,d){"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.HasAllPrivilegesDirective=void 0;const S=d(31635),u=(d(49849),d(20492),d(18435)),o=S.__importStar(d(49849)),b=S.__importStar(d(20492));T.HasAllPrivilegesDirective=(()=>{class h extends u.BasePrivilegeDirective{constructor(f,v,p){super(f,v),this.privilegeService=p}isAllowed(){return this.privilegeService.hasAllPrivileges(this.hasAllPrivileges)}static{this.\u0275fac=function(v){return new(v||h)(o.\u0275\u0275directiveInject(o.TemplateRef),o.\u0275\u0275directiveInject(o.ViewContainerRef),o.\u0275\u0275directiveInject(b.PrivilegeService))}}static{this.\u0275dir=o.\u0275\u0275defineDirective({type:h,selectors:[["","hasAllPrivileges",""]],inputs:{hasAllPrivileges:"hasAllPrivileges"},standalone:!1,features:[o.\u0275\u0275InheritDefinitionFeature]})}}return h})()},34603(Ht,T,d){"use strict";
1Object.defineProperty(T,"__esModule",{value:!0}),T.NotHasPrivilegeDirective=void 0;const S=d(31635),O=(d(49849),d(18435)),o=(d(20492),S.__importStar(d(49849))),b=S.__importStar(d(20492));T.NotHasPrivilegeDirective=(()=>{class h extends O.BasePrivilegeDirective{constructor(f,v,p){super(f,v),this.privilegeService=p}isAllowed(){return!this.privilegeService.hasPrivilege(this.notHasPrivilege)}static{this.\u0275fac=function(v){return new(v||h)(o.\u0275\u0275directiveInject(o.TemplateRef),o.\u0275\u0275directiveInject(o.ViewContainerRef),o.\u0275\u0275directiveInject(b.PrivilegeService))}}static{this.\u0275dir=o.\u0275\u0275defineDirective({type:h,selectors:[["","notHasPrivilege",""]],inputs:{notHasPrivilege:"notHasPrivilege"},standalone:!1,features:[o.\u0275\u0275InheritDefinitionFeature]})}}return h})()},96521(Ht,T,d){"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.GroupsAutocompleteComponent=void 0;const S=d(31635),N=d(49849),O=d(59091),u=d(43481),o=d(59832),g=(d(6324),d(83489)),D=(d(64688),d(98979)),f=d(43410),v=S.__importStar(d(49849)),p=S.__importStar(d(64688)),J=S.__importStar(d(6324)),lt=S.__importStar(d(72293));function r(ct,at){if(1&ct){const rt=v.\u0275\u0275getCurrentView();v.\u0275\u0275elementStart(0,"i",9),v.\u0275\u0275listener("mousedown",function(gt){v.\u0275\u0275restoreView(rt);const mt=v.\u0275\u0275nextContext(2).$implicit,St=v.\u0275\u0275nextContext(2);return v.\u0275\u0275resetView(St.groupUpdated("add",mt,gt))}),v.\u0275\u0275elementEnd()}}function I(ct,at){if(1&ct){const rt=v.\u0275\u0275getCurrentView();v.\u0275\u0275elementStart(0,"i",10),v.\u0275\u0275listener("mousedown",function(gt){v.\u0275\u0275restoreView(rt);const mt=v.\u0275\u0275nextContext(2).$implicit,St=v.\u0275\u0275nextContext(2);return v.\u0275\u0275resetView(St.groupUpdated("remove",mt,gt))}),v.\u0275\u0275elementEnd()}}function vt(ct,at){if(1&ct&&(v.\u0275\u0275elementStart(0,"div",3)(1,"div",4)(2,"div",5)(3,"div",6)(4,"label"),v.\u0275\u0275conditionalCreate(5,r,1,0,"i",7),v.\u0275\u0275conditionalCreate(6,I,1,0,"i",8),v.\u0275\u0275text(7),v.\u0275\u0275elementEnd()()()()()),2&ct){const rt=v.\u0275\u0275nextContext().$implicit,X=v.\u0275\u0275nextContext(2);v.\u0275\u0275advance(5),v.\u0275\u0275conditional(X.subGroupExistsInGroup(rt)?-1:5),v.\u0275\u0275advance(),v.\u0275\u0275conditional(X.subGroupExistsInGroup(rt)?6:-1),v.\u0275\u0275advance(),v.\u0275\u0275textInterpolate1(" ",rt.name," ")}}function C(ct,at){if(1&ct&&v.\u0275\u0275conditionalCreate(0,vt,8,3,"div",3),2&ct){const rt=at.$implicit,X=v.\u0275\u0275nextContext(2);v.\u0275\u0275conditional(rt.groupId!==X.currentGroupId?0:-1)}}function ht(ct,at){if(1&ct){const rt=v.\u0275\u0275getCurrentView();v.\u0275\u0275elementStart(0,"altcon-autocomplete-dropdown",1),v.\u0275\u0275listener("bottomButtonPressed",function(){v.\u0275\u0275restoreView(rt);const gt=v.\u0275\u0275nextContext();return gt.showCreateNewGroup?gt.createGroupModal():gt.groups.content.length=0,v.\u0275\u0275resetView(gt.emitDone())})("bottomButton2Pressed",function(){v.\u0275\u0275restoreView(rt);const gt=v.\u0275\u0275nextContext();return gt.groups.content.length=0,v.\u0275\u0275resetView(gt.emitDone())})("searchChange",function(gt){v.\u0275\u0275restoreView(rt);const mt=v.\u0275\u0275nextContext();return v.\u0275\u0275resetView(mt.autoGroups(gt))}),v.\u0275\u0275elementStart(1,"div",2),v.\u0275\u0275repeaterCreate(2,C,1,1,null,null,v.\u0275\u0275repeaterTrackByIdentity),v.\u0275\u0275elementEnd()()}if(2&ct){const rt=v.\u0275\u0275nextContext();v.\u0275\u0275property("bottomButtonActive",!0)("bothBottomButtonsActive",rt.showCreateNewGroup)("bottomButtonText",rt.showCreateNewGroup?"+ Create Group":"Done")("bottomButton2Text","Done")("placeholder","Search Groups")("selectMessage","Select a Group...")("resultsLength",rt.totalResults)("loading",rt.loadingAutocomplete)("isSmallDropdown",rt.isSmallDropdown)("stopPropogation",!0),v.\u0275\u0275advance(2),v.\u0275\u0275repeater(null==rt.groups?null:rt.groups.content)}}T.GroupsAutocompleteComponent=(()=>{class ct{constructor(rt,X){this.service=rt,this.modalService=X,this.isSmallDropdown=!1,this.showCreateNewGroup=!0,this.accountIds=[],this.createGroup=new N.EventEmitter,this.groupsOutput=new N.EventEmitter,this.done=new N.EventEmitter,this.customInput=new O.Subject,this.requestData=new f.RequestData(9),this.loadingAutocomplete=!1,this.totalResults=0}ngOnInit(){}ngOnChanges(){this.searching&&(this.requestData.content.query="",this.requestData.content.accountIds=this.accountIds,this.getGroupsAutocomplete(),this.searchGroups())}groupUpdated(rt,X,gt){gt&&(gt.stopPropagation(),gt.preventDefault()),this.groupsOutput.emit(new D.GroupsAutoCompleteUpdateAction(rt,X))}subGroupExistsInGroup(rt){return this.existingGroups.findIndex(X=>X.groupId===rt.groupId)>-1}createGroupModal(){this.modalService.open(g.NewGroupModalComponent,{backdrop:"static",keyboard:!1}).result.then(X=>{null!==X&&this.createGroup.emit(X)})}getGroupsAutocomplete(){this.customInput.pipe((0,u.debounceTime)(500),(0,u.distinctUntilChanged)()).subscribe(rt=>{void 0!==rt&&rt.length>2?(this.loadingAutocomplete=!0,this.requestData.content.query=rt,this.searchGroups()):(this.groups=new o.FleetGroupsSearchResponse,this.loadingAutocomplete=!1,this.totalResults=0)})}searchGroups(){this.service.searchGroups(this.requestData).pipe((0,u.take)(1)).subscribe(rt=>{this.groups=rt,this.groups&&(this.loadingAutocomplete=!1,this.totalResults=rt.totalRecords)})}autoGroups(rt){this.customInput.next(rt)}emitDone(){this.done.emit()}static{this.\u0275fac=function(X){return new(X||ct)(v.\u0275\u0275directiveInject(p.FleetGroupsService),v.\u0275\u0275directiveInject(J.NgbModal))}}static{this.\u0275cmp=v.\u0275\u0275defineComponent({type:ct,selectors:[["app-groups-autocomplete"]],inputs:{isSmallDropdown:"isSmallDropdown",existingGroups:"existingGroups",searching:"searching",showCreateNewGroup:"showCreateNewGroup",currentGroupId:"currentGroupId",accountIds:"accountIds"},outputs:{createGroup:"createGroup",groupsOutput:"groupsOutput",done:"done"},standalone:!1,features:[v.\u0275\u0275NgOnChangesFeature],decls:1,vars:1,consts:[[3,"bottomButtonActive","bothBottomButtonsActive","bottomButtonText","bottomButton2Text","placeholder","selectMessage","resultsLength","loading","isSmallDropdown","stopPropogation"],[3,"bottomButtonPressed","bottomButton2Pressed","searchChange","bottomButtonActive","bothBottomButtonsActive","bottomButtonText","bottomButton2Text","placeholder","selectMessage","resultsLength","loading","isSmallDropdown","stopPropogation"],[1,"fleet-table"],[1,"fleet-row"],[1,"mb-2","col-12"],[1,"row","mt-2"],[1,"col-12"],["aria-hidden","true",1,"fa","fa-lg","me-1","fa-plus","add-icon","pointer"],["aria-hidden","true",1,"fa","fa-lg","me-1","fa-minus","remove-icon","pointer"],["aria-hidden","true",1,"fa","fa-lg","me-1","fa-plus","add-icon","pointer",3,"mousedown"],["aria-hidden","true",1,"fa","fa-lg","me-1","fa-minus","remove-icon","pointer",3,"mousedown"]],template:function(X,gt){1&X&&v.\u0275\u0275conditionalCreate(0,ht,4,10,"altcon-autocomplete-dropdown",0),2&X&&v.\u0275\u0275conditional(gt.searching?0:-1)},dependencies:[lt.AutocompleteDropdownComponent],styles:["[_ngcontent-%COMP%]:root{--bs-gutter-x: 1.5rem;--bs-gutter-y: 1.5rem}.d-flex[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{float:none}.col[_ngcontent-%COMP%]{flex:1 0 0;padding-left:var(--bs-gutter-x, 1.5rem);padding-right:var(--bs-gutter-x, 1.5rem)}@media only screen and (min-width:576px){.col-sm-auto[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;max-width:none}}@media only screen and (min-width:768px){.col-md-auto[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;max-width:none}}.col-auto[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;max-width:100%;padding-left:var(--bs-gutter-x, 1.5rem);padding-right:var(--bs-gutter-x, 1.5rem)}.justify-content-center[_ngcontent-%COMP%]{justify-content:center}.justify-content-end[_ngcontent-%COMP%]{justify-content:end}.align-items-center[_ngcontent-%COMP%]{align-items:center}.align-items-end[_ngcontent-%COMP%]{align-items:end}.flex-column-reverse[_ngcontent-%COMP%]{flex-direction:column-reverse}.d-flex[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}@media only screen and (min-width:768px){.d-md-block[_ngcontent-%COMP%]{display:block}}@media only screen and (min-width:768px){.d-md-none[_ngcontent-%COMP%]{display:none}}@media only screen and (min-width:768px){.d-md-flex[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}}@media only screen and (min-width:992px){.d-lg-none[_ngcontent-%COMP%]{display:none!important}}@media only screen and (min-width:992px){.d-lg-block[_ngcontent-%COMP%]{display:block!important}}.w-100[_ngcontent-%COMP%]{width:100%!important}.h-100[_ngcontent-%COMP%]{height:100%!important}.px-3[_ngcontent-%COMP%]{padding-left:15px!important;padding-right:15px!important}.pr-0[_ngcontent-%COMP%]{padding-right:0!important}.pl-0[_ngcontent-%COMP%]{padding-left:0!important}.pt-3[_ngcontent-%COMP%]{padding-top:1rem}.pb-3[_ngcontent-%COMP%]{padding-bottom:1rem}.mb-3[_ngcontent-%COMP%]{margin-bottom:1rem}.pb-2[_ngcontent-%COMP%]{padding-bottom:.5rem}@media print{.no-print[_ngcontent-%COMP%]{display:none!important}}.m-0[_ngcontent-%COMP%]{margin:0!important}.mt-0[_ngcontent-%COMP%]{margin-top:0!important}.mb-0[_ngcontent-%COMP%]{margin-bottom:0!important}.ms-0[_ngcontent-%COMP%]{margin-left:0!important}.me-0[_ngcontent-%COMP%]{margin-right:0!important}.mx-0[_ngcontent-%COMP%]{margin-left:0!important;margin-right:0!important}.my-0[_ngcontent-%COMP%]{margin-top:0!important;margin-bottom:0!important}.p-0[_ngcontent-%COMP%]{padding:0!important}.pt-0[_ngcontent-%COMP%]{padding-top:0!important}.pb-0[_ngcontent-%COMP%]{padding-bottom:0!important}.ps-0[_ngcontent-%COMP%]{padding-left:0!important}.pe-0[_ngcontent-%COMP%]{padding-right:0!important}.px-0[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.py-0[_ngcontent-%COMP%]{padding-top:0!important;padding-bottom:0!important}.m-1[_ngcontent-%COMP%]{margin:.25rem!important}.mt-1[_ngcontent-%COMP%]{margin-top:.25rem!important}.mb-1[_ngcontent-%COMP%]{margin-bottom:.25rem!important}.ms-1[_ngcontent-%COMP%]{margin-left:.25rem!important}.me-1[_ngcontent-%COMP%]{margin-right:.25rem!important}.mx-1[_ngcontent-%COMP%]{margin-left:.25rem!important;margin-right:.25rem!important}.my-1[_ngcontent-%COMP%]{margin-top:.25rem!important;margin-bottom:.25rem!important}.p-1[_ngcontent-%COMP%]{padding:.25rem!important}.pt-1[_ngcontent-%COMP%]{padding-top:.25rem!important}.pb-1[_ngcontent-%COMP%]{padding-bottom:.25rem!important}.ps-1[_ngcontent-%COMP%]{padding-left:.25rem!important}.pe-1[_ngcontent-%COMP%]{padding-right:.25rem!important}.px-1[_ngcontent-%COMP%]{padding-left:.25rem!important;padding-right:.25rem!important}.py-1[_ngcontent-%COMP%]{padding-top:.25rem!important;padding-bottom:.25rem!important}.m-2[_ngcontent-%COMP%]{margin:.5rem!important}.mt-2[_ngcontent-%COMP%]{margin-top:.5rem!important}.mb-2[_ngcontent-%COMP%]{margin-bottom:.5rem!important}.ms-2[_ngcontent-%COMP%]{margin-left:.5rem!important}.me-2[_ngcontent-%COMP%]{margin-right:.5rem!important}.mx-2[_ngcontent-%COMP%]{margin-left:.5rem!important;margin-right:.5rem!important}.my-2[_ngcontent-%COMP%]{margin-top:.5rem!important;margin-bottom:.5rem!important}.p-2[_ngcontent-%COMP%]{padding:.5rem!important}.pt-2[_ngcontent-%COMP%]{padding-top:.5rem!important}.pb-2[_ngcontent-%COMP%]{padding-bottom:.5rem!important}.ps-2[_ngcontent-%COMP%]{padding-left:.5rem!important}
1.pe-2[_ngcontent-%COMP%]{padding-right:.5rem!important}.px-2[_ngcontent-%COMP%]{padding-left:.5rem!important;padding-right:.5rem!important}.py-2[_ngcontent-%COMP%]{padding-top:.5rem!important;padding-bottom:.5rem!important}.m-3[_ngcontent-%COMP%]{margin:1rem!important}.mt-3[_ngcontent-%COMP%]{margin-top:1rem!important}.mb-3[_ngcontent-%COMP%]{margin-bottom:1rem!important}.ms-3[_ngcontent-%COMP%]{margin-left:1rem!important}.me-3[_ngcontent-%COMP%]{margin-right:1rem!important}.mx-3[_ngcontent-%COMP%]{margin-left:1rem!important;margin-right:1rem!important}.my-3[_ngcontent-%COMP%]{margin-top:1rem!important;margin-bottom:1rem!important}.p-3[_ngcontent-%COMP%]{padding:1rem!important}.pt-3[_ngcontent-%COMP%]{padding-top:1rem!important}.pb-3[_ngcontent-%COMP%]{padding-bottom:1rem!important}.ps-3[_ngcontent-%COMP%]{padding-left:1rem!important}.pe-3[_ngcontent-%COMP%]{padding-right:1rem!important}.px-3[_ngcontent-%COMP%]{padding-left:1rem!important;padding-right:1rem!important}.py-3[_ngcontent-%COMP%]{padding-top:1rem!important;padding-bottom:1rem!important}.m-4[_ngcontent-%COMP%]{margin:1.5rem!important}.mt-4[_ngcontent-%COMP%]{margin-top:1.5rem!important}.mb-4[_ngcontent-%COMP%]{margin-bottom:1.5rem!important}.ms-4[_ngcontent-%COMP%]{margin-left:1.5rem!important}.me-4[_ngcontent-%COMP%]{margin-right:1.5rem!important}.mx-4[_ngcontent-%COMP%]{margin-left:1.5rem!important;margin-right:1.5rem!important}.my-4[_ngcontent-%COMP%]{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.p-4[_ngcontent-%COMP%]{padding:1.5rem!important}.pt-4[_ngcontent-%COMP%]{padding-top:1.5rem!important}.pb-4[_ngcontent-%COMP%]{padding-bottom:1.5rem!important}.ps-4[_ngcontent-%COMP%]{padding-left:1.5rem!important}.pe-4[_ngcontent-%COMP%]{padding-right:1.5rem!important}.px-4[_ngcontent-%COMP%]{padding-left:1.5rem!important;padding-right:1.5rem!important}.py-4[_ngcontent-%COMP%]{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.m-5[_ngcontent-%COMP%]{margin:3rem!important}.mt-5[_ngcontent-%COMP%]{margin-top:3rem!important}.mb-5[_ngcontent-%COMP%]{margin-bottom:3rem!important}.ms-5[_ngcontent-%COMP%]{margin-left:3rem!important}.me-5[_ngcontent-%COMP%]{margin-right:3rem!important}.mx-5[_ngcontent-%COMP%]{margin-left:3rem!important;margin-right:3rem!important}.my-5[_ngcontent-%COMP%]{margin-top:3rem!important;margin-bottom:3rem!important}.p-5[_ngcontent-%COMP%]{padding:3rem!important}.pt-5[_ngcontent-%COMP%]{padding-top:3rem!important}.pb-5[_ngcontent-%COMP%]{padding-bottom:3rem!important}.ps-5[_ngcontent-%COMP%]{padding-left:3rem!important}.pe-5[_ngcontent-%COMP%]{padding-right:3rem!important}.px-5[_ngcontent-%COMP%]{padding-left:3rem!important;padding-right:3rem!important}.py-5[_ngcontent-%COMP%]{padding-top:3rem!important;padding-bottom:3rem!important}.added-groups[_ngcontent-%COMP%]{padding:calc(var(--bs-gutter-x, 1.5rem) * .667);border:1px solid #E8E8E8;width:90%;margin:0 auto;border-radius:5px}.add-icon[_ngcontent-%COMP%]{color:green}.remove-icon[_ngcontent-%COMP%]{color:#a94442}"]})}}return ct})()},77295(Ht,T,d){"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.DropdownSortContainerComponent=void 0;const S=d(31635),N=d(49849),O=S.__importStar(d(49849)),u=["*"];function o(h,D){1&h&&(O.\u0275\u0275elementStart(0,"span",4),O.\u0275\u0275element(1,"i",11),O.\u0275\u0275elementStart(2,"span",12),O.\u0275\u0275text(3,"1"),O.\u0275\u0275elementEnd()())}function b(h,D){if(1&h){const f=O.\u0275\u0275getCurrentView();O.\u0275\u0275elementStart(0,"button",13),O.\u0275\u0275listener("click",function(){O.\u0275\u0275restoreView(f);const p=O.\u0275\u0275nextContext();return O.\u0275\u0275resetView(p.emitSortCleared())}),O.\u0275\u0275elementStart(1,"small",14),O.\u0275\u0275text(2,"Clear Sort"),O.\u0275\u0275elementEnd()()}}T.DropdownSortContainerComponent=(()=>{class h{constructor(){this.sortAppliedEvent=new N.EventEmitter,this.sortCleared=new N.EventEmitter}ngOnInit(){}emitSortApplied(){this.sortAppliedEvent.emit()}emitSortCleared(){this.sortCleared.emit(),this.sortApplied=!1}static{this.\u0275fac=function(v){return new(v||h)}}static{this.\u0275cmp=O.\u0275\u0275defineComponent({type:h,selectors:[["altcon-event-details-sort"]],inputs:{sortApplied:"sortApplied"},outputs:{sortAppliedEvent:"sortAppliedEvent",sortCleared:"sortCleared"},standalone:!1,ngContentSelectors:u,decls:16,vars:2,consts:[[1,"btn-group","bootstrap-select"],["type","button","data-bs-toggle","dropdown","role","button","data-id","unitSelect",1,"btn","btn-light","btn-sm","text-start","border","dropdown-toggle"],[1,"filter-option"],[1,"fa","fa-sort","pe-2"],[1,"fa-stack","filter-counter"],["role","combobox",1,"dropdown-menu","dropdown-menu-end","open"],[1,"filter-wrapper"],[3,"click"],[1,"btn-altec","mt-3","float-end",3,"click"],[1,"d-grid"],[1,"btn","btn-link","btn-sm","clear-filter-btn-link"],[1,"fa","fa-circle","fa-stack-1x","gold-circle"],[1,"fa-stack-1x","filter-count-text"],[1,"btn","btn-link","btn-sm","clear-filter-btn-link",3,"click"],[1,"clearButton"]],template:function(v,p){1&v&&(O.\u0275\u0275projectionDef(),O.\u0275\u0275elementStart(0,"div")(1,"div",0)(2,"button",1)(3,"span",2),O.\u0275\u0275element(4,"span",3),O.\u0275\u0275elementStart(5,"small"),O.\u0275\u0275text(6,"Sort "),O.\u0275\u0275conditionalCreate(7,o,4,0,"span",4),O.\u0275\u0275elementEnd()()(),O.\u0275\u0275elementStart(8,"div",5)(9,"div",6)(10,"div",7),O.\u0275\u0275listener("click",function(lt){return lt.stopPropagation()}),O.\u0275\u0275projection(11),O.\u0275\u0275elementEnd(),O.\u0275\u0275elementStart(12,"a",8),O.\u0275\u0275listener("click",function(){return p.emitSortApplied()}),O.\u0275\u0275text(13,"Sort"),O.\u0275\u0275elementEnd()()()(),O.\u0275\u0275elementStart(14,"div",9),O.\u0275\u0275conditionalCreate(15,b,3,0,"button",10),O.\u0275\u0275elementEnd()()),2&v&&(O.\u0275\u0275advance(7),O.\u0275\u0275conditional(p.sortApplied?7:-1),O.\u0275\u0275advance(8),O.\u0275\u0275conditional(p.sortApplied?15:-1))},styles:['[_ngcontent-%COMP%]:root{--bs-gutter-x: 1.5rem;--bs-gutter-y: 1.5rem}.d-flex[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{float:none}.col[_ngcontent-%COMP%]{flex:1 0 0;padding-left:var(--bs-gutter-x, 1.5rem);padding-right:var(--bs-gutter-x, 1.5rem)}@media only screen and (min-width:576px){.col-sm-auto[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;max-width:none}}@media only screen and (min-width:768px){.col-md-auto[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;max-width:none}}.col-auto[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;max-width:100%;padding-left:var(--bs-gutter-x, 1.5rem);padding-right:var(--bs-gutter-x, 1.5rem)}.justify-content-center[_ngcontent-%COMP%]{justify-content:center}.justify-content-end[_ngcontent-%COMP%]{justify-content:end}.align-items-center[_ngcontent-%COMP%]{align-items:center}.align-items-end[_ngcontent-%COMP%]{align-items:end}.flex-column-reverse[_ngcontent-%COMP%]{flex-direction:column-reverse}.d-flex[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}@media only screen and (min-width:768px){.d-md-block[_ngcontent-%COMP%]{display:block}}@media only screen and (min-width:768px){.d-md-none[_ngcontent-%COMP%]{display:none}}@media only screen and (min-width:768px){.d-md-flex[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}}@media only screen and (min-width:992px){.d-lg-none[_ngcontent-%COMP%]{display:none!important}}@media only screen and (min-width:992px){.d-lg-block[_ngcontent-%COMP%]{display:block!important}}.w-100[_ngcontent-%COMP%]{width:100%!important}.h-100[_ngcontent-%COMP%]{height:100%!important}.px-3[_ngcontent-%COMP%]{padding-left:15px!important;padding-right:15px!important}.pr-0[_ngcontent-%COMP%]{padding-right:0!important}.pl-0[_ngcontent-%COMP%]{padding-left:0!important}.pt-3[_ngcontent-%COMP%]{padding-top:1rem}.pb-3[_ngcontent-%COMP%]{padding-bottom:1rem}.mb-3[_ngcontent-%COMP%]{margin-bottom:1rem}.pb-2[_ngcontent-%COMP%]{padding-bottom:.5rem}@media print{.no-print[_ngcontent-%COMP%]{display:none!important}}.m-0[_ngcontent-%COMP%]{margin:0!important}.mt-0[_ngcontent-%COMP%]{margin-top:0!important}.mb-0[_ngcontent-%COMP%]{margin-bottom:0!important}.ms-0[_ngcontent-%COMP%]{margin-left:0!important}.me-0[_ngcontent-%COMP%]{margin-right:0!important}.mx-0[_ngcontent-%COMP%]{margin-left:0!important;margin-right:0!important}.my-0[_ngcontent-%COMP%]{margin-top:0!important;margin-bottom:0!important}.p-0[_ngcontent-%COMP%]{padding:0!important}.pt-0[_ngcontent-%COMP%]{padding-top:0!important}.pb-0[_ngcontent-%COMP%]{padding-bottom:0!important}.ps-0[_ngcontent-%COMP%]{padding-left:0!important}.pe-0[_ngcontent-%COMP%]{padding-right:0!important}.px-0[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.py-0[_ngcontent-%COMP%]{padding-top:0!important;padding-bottom:0!important}.m-1[_ngcontent-%COMP%]{margin:.25rem!important}.mt-1[_ngcontent-%COMP%]{margin-top:.25rem!important}.mb-1[_ngcontent-%COMP%]{margin-bottom:.25rem!important}.ms-1[_ngcontent-%COMP%]{margin-left:.25rem!important}.me-1[_ngcontent-%COMP%]{margin-right:.25rem!important}.mx-1[_ngcontent-%COMP%]{margin-left:.25rem!important;margin-right:.25rem!important}.my-1[_ngcontent-%COMP%]{margin-top:.25rem!important;margin-bottom:.25rem!important}.p-1[_ngcontent-%COMP%]{padding:.25rem!important}.pt-1[_ngcontent-%COMP%]{padding-top:.25rem!important}.pb-1[_ngcontent-%COMP%]{padding-bottom:.25rem!important}.ps-1[_ngcontent-%COMP%]{padding-left:.25rem!important}.pe-1[_ngcontent-%COMP%]{padding-right:.25rem!important}.px-1[_ngcontent-%COMP%]{padding-left:.25rem!important;padding-right:.25rem!important}.py-1[_ngcontent-%COMP%]{padding-top:.25rem!important;padding-bottom:.25rem!important}.m-2[_ngcontent-%COMP%]{margin:.5rem!important}.mt-2[_ngcontent-%COMP%]{margin-top:.5rem!important}.mb-2[_ngcontent-%COMP%]{margin-bottom:.5rem!important}.ms-2[_ngcontent-%COMP%]{margin-left:.5rem!important}.me-2[_ngcontent-%COMP%]{margin-right:.5rem!important}.mx-2[_ngcontent-%COMP%]{margin-left:.5rem!important;margin-right:.5rem!important}.my-2[_ngcontent-%COMP%]{margin-top:.5rem!important;margin-bottom:.5rem!important}.p-2[_ngcontent-%COMP%]{padding:.5rem!important}.pt-2[_ngcontent-%COMP%]{padding-top:.5rem!important}.pb-2[_ngcontent-%COMP%]{padding-bottom:.5rem!important}.ps-2[_ngcontent-%COMP%]{padding-left:.5rem!important}
1.pe-2[_ngcontent-%COMP%]{padding-right:.5rem!important}.px-2[_ngcontent-%COMP%]{padding-left:.5rem!important;padding-right:.5rem!important}.py-2[_ngcontent-%COMP%]{padding-top:.5rem!important;padding-bottom:.5rem!important}.m-3[_ngcontent-%COMP%]{margin:1rem!important}.mt-3[_ngcontent-%COMP%]{margin-top:1rem!important}.mb-3[_ngcontent-%COMP%]{margin-bottom:1rem!important}.ms-3[_ngcontent-%COMP%]{margin-left:1rem!important}.me-3[_ngcontent-%COMP%]{margin-right:1rem!important}.mx-3[_ngcontent-%COMP%]{margin-left:1rem!important;margin-right:1rem!important}.my-3[_ngcontent-%COMP%]{margin-top:1rem!important;margin-bottom:1rem!important}.p-3[_ngcontent-%COMP%]{padding:1rem!important}.pt-3[_ngcontent-%COMP%]{padding-top:1rem!important}.pb-3[_ngcontent-%COMP%]{padding-bottom:1rem!important}.ps-3[_ngcontent-%COMP%]{padding-left:1rem!important}.pe-3[_ngcontent-%COMP%]{padding-right:1rem!important}.px-3[_ngcontent-%COMP%]{padding-left:1rem!important;padding-right:1rem!important}.py-3[_ngcontent-%COMP%]{padding-top:1rem!important;padding-bottom:1rem!important}.m-4[_ngcontent-%COMP%]{margin:1.5rem!important}.mt-4[_ngcontent-%COMP%]{margin-top:1.5rem!important}.mb-4[_ngcontent-%COMP%]{margin-bottom:1.5rem!important}.ms-4[_ngcontent-%COMP%]{margin-left:1.5rem!important}.me-4[_ngcontent-%COMP%]{margin-right:1.5rem!important}.mx-4[_ngcontent-%COMP%]{margin-left:1.5rem!important;margin-right:1.5rem!important}.my-4[_ngcontent-%COMP%]{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.p-4[_ngcontent-%COMP%]{padding:1.5rem!important}.pt-4[_ngcontent-%COMP%]{padding-top:1.5rem!important}.pb-4[_ngcontent-%COMP%]{padding-bottom:1.5rem!important}.ps-4[_ngcontent-%COMP%]{padding-left:1.5rem!important}.pe-4[_ngcontent-%COMP%]{padding-right:1.5rem!important}.px-4[_ngcontent-%COMP%]{padding-left:1.5rem!important;padding-right:1.5rem!important}.py-4[_ngcontent-%COMP%]{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.m-5[_ngcontent-%COMP%]{margin:3rem!important}.mt-5[_ngcontent-%COMP%]{margin-top:3rem!important}.mb-5[_ngcontent-%COMP%]{margin-bottom:3rem!important}.ms-5[_ngcontent-%COMP%]{margin-left:3rem!important}.me-5[_ngcontent-%COMP%]{margin-right:3rem!important}.mx-5[_ngcontent-%COMP%]{margin-left:3rem!important;margin-right:3rem!important}.my-5[_ngcontent-%COMP%]{margin-top:3rem!important;margin-bottom:3rem!important}.p-5[_ngcontent-%COMP%]{padding:3rem!important}.pt-5[_ngcontent-%COMP%]{padding-top:3rem!important}.pb-5[_ngcontent-%COMP%]{padding-bottom:3rem!important}.ps-5[_ngcontent-%COMP%]{padding-left:3rem!important}.pe-5[_ngcontent-%COMP%]{padding-right:3rem!important}.px-5[_ngcontent-%COMP%]{padding-left:3rem!important;padding-right:3rem!important}.py-5[_ngcontent-%COMP%]{padding-top:3rem!important;padding-bottom:3rem!important}[_nghost-%COMP%]{display:block;width:100%}.btn-group.bootstrap-select[_ngcontent-%COMP%]{width:100%!important}.btn-group.bootstrap-select[_ngcontent-%COMP%] .dropdown-toggle[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.btn-group.bootstrap-select[_ngcontent-%COMP%] .dropdown-toggle[_ngcontent-%COMP%]:after{vertical-align:middle;margin-left:.5em}.filter-wrapper[_ngcontent-%COMP%]{min-width:280px;padding:16px}.filter-counter[_ngcontent-%COMP%]{top:-5px}.filter-count-text[_ngcontent-%COMP%]{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol!important;font-weight:600;color:#fff;vertical-align:top;font-size:11px}.gold-circle[_ngcontent-%COMP%]{color:#efb310}.clear-filter-btn-link[_ngcontent-%COMP%]{margin-left:auto;padding-right:0}.clearButton[_ngcontent-%COMP%]{margin-left:unset}@media(min-width:992px){.clear-filter-btn-link[_ngcontent-%COMP%]{padding-top:5px}.clearButton[_ngcontent-%COMP%]{margin-left:auto}}']})}}return h})()},74389(Ht,T,d){"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.UnitModificationsComponent=void 0;const S=d(31635),O=(d(6324),d(43481)),b=(d(21916),d(20851),S.__importStar(d(49849))),g=S.__importStar(d(21916)),h=S.__importStar(d(6324)),D=S.__importStar(d(20851)),f=S.__importStar(d(60177)),v=S.__importStar(d(84341)),p=S.__importStar(d(92325)),J=ht=>({"select-has-error":ht}),lt=()=>({eventCategory:"Fleet Edit Page",eventAction:"Unit Modification",eventLabel:"Unit Modification"});function r(ht,F){1&ht&&(b.\u0275\u0275elementStart(0,"small",10),b.\u0275\u0275text(1,"Details must be between 1 and 300 characters"),b.\u0275\u0275elementEnd())}function I(ht,F){1&ht&&(b.\u0275\u0275elementStart(0,"a",15),b.\u0275\u0275text(1,"Submit is disabled"),b.\u0275\u0275elementEnd())}function vt(ht,F){if(1&ht){const ct=b.\u0275\u0275getCurrentView();b.\u0275\u0275elementStart(0,"button",17),b.\u0275\u0275listener("click",function(){b.\u0275\u0275restoreView(ct);const rt=b.\u0275\u0275nextContext();
1return b.\u0275\u0275resetView(rt.checkForModificationsErrors())}),b.\u0275\u0275text(1," Submit"),b.\u0275\u0275elementEnd()}2&ht&&b.\u0275\u0275property("gaEvent",b.\u0275\u0275pureFunction0(1,lt))}T.UnitModificationsComponent=(()=>{class ht{constructor(ct,at,rt){this.fleetService=ct,this.activeModal=at,this.loader=rt,this.showUpdateMessageError=!1,this.detailsMessage="",this.disallowCustomerDataModification=!1,this.showUnitModError=!1,this.showUnitOwnerSuccess=!1,this.showUnitModSuccess=!1,this.email="",this.fullName="",this.businessName=""}ngOnInit(){}checkForModificationsErrors(){""===this.detailsMessage?this.showUpdateMessageError=!0:(this.showUpdateMessageError=!1,this.updateUnitModifications())}updateUnitModifications(){this.loader.start(),this.fleetService.updateUnitModifications({type:"UnitModificationEmail",content:{reporterEmail:this.email,fullName:this.fullName,businessName:this.businessName,accountId:this.activeAccountId,faSerial:this.detailResponse.faSerial,instanceId:this.detailResponse.instanceId,message:this.detailsMessage,unitSeri
1al:this.detailResponse.unitSerial}}).pipe((0,O.take)(1)).subscribe(at=>{this.detailsMessage="",this.showUnitModSuccess=!0,this.showUnitModError=!1,this.loader.stop()}),this.activeModal.dismiss(null)}static{this.\u0275fac=function(at){return new(at||ht)(b.\u0275\u0275directiveInject(g.FleetService),b.\u0275\u0275directiveInject(h.NgbActiveModal),b.\u0275\u0275directiveInject(D.LoadingService))}}static{this.\u0275cmp=b.\u0275\u0275defineComponent({type:ht,selectors:[["altec-connect-unit-modifications"]],standalone:!1,decls:24,vars:6,consts:[[1,"modal-header"],["type","button","data-bs-dismiss","modal","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-title"],[1,"modal-body"],["id","form",1,"form-horizontal","mt-4"],[1,"mb-3","required"],[1,"col-sm-3","form-label","d-none","d-sm-block"],[1,"col-sm-9"],["name","details","rows","6","maxlength","1000",1,"form-control","form-control-sm",3,"ngModelChange","ngClass","ngModel"],[1,"has-error","form-text"],[1,"modal-footer","d-grid","gap-2"],["type","button","data-bs-dismiss","modal",1,"btn","btn-light",3,"click"],[1,"d-block","d-sm-none"],[1,"d-none","d-sm-block"],[1,"btn","btn-disabled"],["type","button",1,"btn","btn-altec",3,"gaEvent"],["type","button",1,"btn","btn-altec",3,"click","gaEvent"]],template:function(at,rt){1&at&&(b.\u0275\u0275elementStart(0,"div",0)(1,"button",1),b.\u0275\u0275listener("click",function(){return rt.activeModal.dismiss(null)}),b.\u0275\u0275elementStart(2,"span",2),b.\u0275\u0275text(3,"\xd7"),b.\u0275\u0275elementEnd()(),b.\u0275\u0275elementStart(4,"h4",3),b.\u0275\u0275text(5," Communicate Unit Modifications "),b.\u0275\u0275elementEnd()(),b.\u0275\u0275elementStart(6,"div",4),b.\u0275\u0275text(7," If you have made modifications to your vehicle, we'd love to hear about it and update our records. Please describe the work done to this unit below. "),b.\u0275\u0275elementStart(8,"form",5)(9,"div",6)(10,"label",7),b.\u0275\u0275text(11," Details"),b.\u0275\u0275elementEnd(),b.\u0275\u0275elementStart(12,"div",8)(13,"textarea",9),b.\u0275\u0275twoWayListener("ngModelChange",function(gt){return b.\u0275\u0275twoWayBindingSet(rt.detailsMessage,gt)||(rt.detailsMessage=gt),gt}),b.\u0275\u0275elementEnd(),b.\u0275\u0275conditionalCreate(14,r,2,0,"small",10),b.\u0275\u0275elementEnd()()()(),b.\u0275\u0275elementStart(15,"div",11)(16,"button",12),b.\u0275\u0275listener("click",function(){return rt.activeModal.dismiss(null)}),b.\u0275\u0275text(17," Cancel"),b.\u0275\u0275elementEnd(),b.\u0275\u0275elementStart(18,"span",13),b.\u0275\u0275element(19,"br"),b.\u0275\u0275elementEnd(),b.\u0275\u0275elementStart(20,"span",14),b.\u0275\u0275text(21,"\xa0"),b.\u0275\u0275elementEnd(),b.\u0275\u0275conditionalCreate(22,I,2,0,"a",15)(23,vt,2,2,"button",16),b.\u0275\u0275elementEnd()),2&at&&(b.\u0275\u0275advance(13),b.\u0275\u0275property("ngClass",b.\u0275\u0275pureFunction1(4,J,rt.showUpdateMessageError&&""===rt.detailsMessage)),b.\u0275\u0275twoWayProperty("ngModel",rt.detailsMessage),b.\u0275\u0275advance(),b.\u0275\u0275conditional(rt.showUpdateMessageError&&""===rt.detailsMessage?14:-1),b.\u0275\u0275advance(8),b.\u0275\u0275conditional(rt.disallowCustomerDataModification?22:23))},dependencies:[f.NgClass,v.\u0275NgNoValidate,v.DefaultValueAccessor,v.NgControlStatus,v.NgControlStatusGroup,v.MaxLengthValidator,v.NgModel,v.NgForm,p.GaEventDirective],encapsulation:2})}}return ht})()},27831(Ht,T,d){"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.UnitOwnershipChangeComponent=void 0;const S=d(31635),O=(d(6324),d(43481)),b=(d(21916),d(20851),S.__importStar(d(49849))),g=S.__importStar(d(21916)),h=S.__importStar(d(6324)),D=S.__importStar(d(20851)),f=S.__importStar(d(60177)),v=S.__importStar(d(84341)),p=S.__importStar(d(92325)),J=j=>({"select-has-error":j}),lt=j=>({"has-error":j}),r=()=>({eventCategory:"Fleet Edit Page",eventAction:"Ownership Change",eventLabel:"Ownership Change"});function I(j,G){if(1&j&&(b.\u0275\u0275elementStart(0,"option",13),b.\u0275\u0275text(1),b.\u0275\u0275elementEnd()),2&j){const k=G.$implicit;b.\u0275\u0275property("value",k),b.\u0275\u0275advance(),b.\u0275\u0275textInterpolate1(" ",k)}}function vt(j,G){if(1&j&&(b.\u0275\u0275elementStart(0,"small",14),b.\u0275\u0275text(1,"Method of Removal is required"),b.\u0275\u0275elementEnd()),2&j){const k=b.\u0275\u0275nextContext();b.\u0275\u0275property("ngClass",b.\u0275\u0275pureFunction1(1,lt,k.showRemovalError))}}function C(j,G){1&j&&(b.\u0275\u0275elementStart(0,"small",23),b.\u0275\u0275text(1,"Date cannot be longer than 40 characters"),b.\u0275\u0275elementEnd())}function ht(j,G){1&j&&(b.\u0275\u0275elementStart(0,"small",25),b.\u0275\u0275text(1,"Description must be between 1 and 300 characters"),b.\u0275\u0275elementEnd())}function F(j,G){if(1&j){const k=b.\u0275\u0275getCurrentView();b.\u0275\u0275elementStart(0,"div",8)(1,"label",9),b.\u0275\u0275text(2," Description"),b.\u0275\u0275elementEnd(),b.\u0275\u0275elementStart(3,"div",10)(4,"textarea",24),b.\u0275\u0275twoWayListener("ngModelChange",function(U){b.\u0275\u0275restoreView(k);const st=b.\u0275\u0275nextContext(2);return b.\u0275\u0275twoWayBindingSet(st.updateMessage,U)||(st.updateMessage=U),b.\u0275\u0275resetVie
1w(U)}),b.\u0275\u0275elementEnd(),b.\u0275\u0275conditionalCreate(5,ht,2,0,"small",25),b.\u0275\u0275elementEnd()()}if(2&j){const k=b.\u0275\u0275nextContext(2);b.\u0275\u0275advance(4),b.\u0275\u0275property("ngClass",b.\u0275\u0275pureFunction1(3,J,k.showUpdateMessageError&&""===k.updateMessage)),b.\u0275\u0275twoWayProperty("ngModel",k.updateMessage),b.\u0275\u0275advance(),b.\u0275\u0275conditional(k.showUpdateMessageError&&""===k.updateMessage?5:-1)}}function ct(j,G){1&j&&(b.\u0275\u0275elementStart(0,"small",25),b.\u0275\u0275text(1,"Buyer is required"),b.\u0275\u0275elementEnd())}function at(j,G){if(1&j){const k=b.\u0275\u0275getCurrentView();b.\u0275\u0275elementStart(0,"div",8)(1,"label",9),b.\u0275\u0275text(2," Buyer"),b.\u0275\u0275elementEnd(),b.\u0275\u0275elementStart(3,"div",10)(4,"input",26),b.\u0275\u0275twoWayListener("ngModelChange",function(U){b.\u0275\u0275restoreView(k);const st=b.\u0275\u0275nextContext(2);return b.\u0275\u0275twoWayBindingSet(st.updateMessage,U)||(st.updateMessage=U),b.\u0275\u0275resetView(U)}),b.\u0275\u0275elementEnd(),b.\u0275\u0275conditionalCreate(5,ct,2,0,"small",25),b.\u0275\u0275elementEnd()()}if(2&j){const k=b.\u0275\u0275nextContext(2);b.\u0275\u0275advance(4),b.\u0275\u0275property("ngClass",b.\u0275\u0275pureFunction1(3,J,k.showUpdateMessageError&&""===k.updateMessage)),b.\u0275\u0275twoWayProperty("ngModel",k.updateMessage),b.\u0275\u0275advance(),b.\u0275\u0275conditional(k.showUpdateMessageError&&""===k.updateMessage?5:-1)}}function rt(j,G){1&j&&(b.\u0275\u0275elementStart(0,"small",25),b.\u0275\u0275text(1,"Auctioneer is required"),b.\u0275\u0275elementEnd())}function X(j,G){if(1&j){const k=b.\u0275\u0275getCurrentView();b.\u0275\u0275elementStart(0,"div",8)(1,"label",9),b.\u0275\u0275text(2," Auctioneer"),b.\u0275\u0275elementEnd(),b.\u0275\u0275elementStart(3,"div",10)(4,"input",27),b.\u0275\u0275twoWayListener("ngModelChange",function(U){b.\u0275\u0275restoreView(k);const st=b.\u0275\u0275nextContext(2);return b.\u0275\u0275twoWayBindingSet(st.updateMessage,U)||(st.updateMessage=U),b.\u0275\u0275resetView(U)}),b.\u0275\u0275elementEnd(),b.\u0275\u0275conditionalCreate(5,rt,2,0,"small",25),b.\u0275\u0275elementEnd()()}if(2&j){const k=b.\u0275\u0275nextContext(2);b.\u0275\u0275advance(4),b.\u0275\u0275property("ngClass",b.\u0275\u0275pureFunction1(3,J,k.showUpdateMessageError&&""===k.updateMessage)),b.\u0275\u0275twoWayProperty("ngModel",k.updateMessage),b.\u0275\u0275advance(),b.\u0275\u0275conditional(k.showUpdateMessageError&&""===k.updateMessage?5:-1)}}function gt(j,G){if(1&j&&(b.\u0275\u0275elementStart(0,"option",13),b.\u0275\u0275text(1),b.\u0275\u0275elementEnd()),2&j){const k=b.\u0275\u0275nextContext().$implicit;b.\u0275\u0275property("value",k.accountNumber),b.\u0275\u0275advance(),b.\u0275\u0275textInterpolate1(" ",k.name)}}function mt(j,G){if(1&j&&b.\u0275\u0275conditionalCreate(0,gt,2,2,"option",13),2&j){const k=G.$implicit,R=b.\u0275\u0275nextContext(3);b.\u0275\u0275conditional(k.accountId!==R.detailResponse.custAcctIds[0]?0:-1)}}function St(j,G){if(1&j&&(b.\u0275\u0275elementStart(0,"small",14),b.\u0275\u0275text(1,"Company is required"),b.\u0275\u0275elementEnd()),2&j){const k=b.\u0275\u0275nextContext(3);b.\u0275\u0275property("ngClass",b.\u0275\u0275pureFunction1(1,lt,k.showCompanyError))}}function ft(j,G){if(1&j){const k=b.\u0275\u0275getCurrentView();b.\u0275\u0275elementStart(0,"div",8)(1,"label",9),b.\u0275\u0275text(2," Transfer To Company"),b.\u0275\u0275elementEnd(),b.\u0275\u0275elementStart(3,"div",10)(4,"select",28,1),b.\u0275\u0275twoWayListener("ngModelChange",function(U){b.\u0275\u0275restoreView(k);const st=b.\u0275\u0275nextContext(2);return b.\u0275\u0275twoWayBindingSet(st.updateMessage,U)||(st.updateMessage=U),b.\u0275\u0275resetView(U)}),b.\u0275\u0275listener("change",function(){b.\u0275\u0275restoreView(k);const U=b.\u0275\u0275reference(5),st=b.\u0275\u0275nextContext(2);return b.\u0275\u0275resetView(st.setSelectedCompanyOption(U.value))}),b.\u0275\u0275elementStart(6,"option",12),b.\u0275\u0275text(7,"Select Company"),b.\u0275\u0275elementEnd(),b.\u0275\u0275repeaterCreate(8,mt,1,1,null,null,b.\u0275\u0275repeaterTrackByIdentity),b.\u0275\u0275elementEnd(),b.\u0275\u0275conditionalCreate(10,St,2,3,"small",14),b.\u0275\u0275elementEnd()()}if(2&j){const k=b.\u0275\u0275nextContext(2);b.\u0275\u0275advance(4),b.\u0275\u0275property("ngClass",b.\u0275\u0275pureFunction1(3,J,k.showUpdateMessageError&&""===k.updateMessage)),b.\u0275\u0275twoWayProperty("ngModel",k.updateMessage),b.\u0275\u0275advance(4),b.\u0275\u0275repeater(k.parentHoldingCompanies),b.\u0275\u0275advance(2),b.\u0275\u0275conditional(k.showCompanyError?10:-1)}}function ot(j,G){if(1&j){const k=b.\u0275\u0275getCurrentView();b.\u0275\u0275elementStart(0,"div",21)(1,"label",9),b.\u0275\u0275text(2," Date"),b.\u0275\u0275elementEnd(),b.\u0275\u0275elementStart(3,"div",10)(4,"input",22),b.\u0275\u0275listener("keyup",function(){b.\u0275\u0275restoreView(k);const U=b.\u0275\u0275nextContext();
1return b.\u0275\u0275resetView(U.checkDateLength())}),b.\u0275\u0275twoWayListener("ngModelChange",function(U){b.\u0275\u0275restoreView(k);const st=b.\u0275\u0275nextContext();return b.\u0275\u0275twoWayBindingSet(st.date,U)||(st.date=U),b.\u0275\u0275resetView(U)}),b.\u0275\u0275elementEnd(),b.\u0275\u0275conditionalCreate(5,C,2,0,"small",23),b.\u0275\u0275elementEnd()(),b.\u0275\u0275conditionalCreate(6,F,6,5,"div",8),b.\u0275\u0275conditionalCreate(7,at,6,5,"div",8),b.\u0275\u0275conditionalCreate(8,X,6,5,"div",8),b.\u0275\u0275conditionalCreate(9,ft,11,5,"div",8)}if(2&j){const k=b.\u0275\u0275nextContext();b.\u0275\u0275advance(4),b.\u0275\u0275twoWayProperty("ngModel",k.date),b.\u0275\u0275advance(),b.\u0275\u0275conditional(k.dateError?5:-1),b.\u0275\u0275advance(),b.\u0275\u0275conditional("Retired From Service"===k.selectedRemovalOption||"Other"==k.selectedRemovalOption?6:-1),b.\u0275\u0275advance(),b.\u0275\u0275conditional("Sold Direct"===k.selectedRemovalOption?7:-1),b.\u0275\u0275advance(),b.\u0275\u0275conditional("Sold At Auction"===k.selectedRemovalOption?8:-1),b.\u0275\u0275advance(),b.\u0275\u0275conditional("Inter-Company Transfer"===k.selectedRemovalOption?9:-1)}}function B(j,G){1&j&&(b.\u0275\u0275elementStart(0,"a",19),b.\u0275\u0275text(1,"Submit is disabled"),b.\u0275\u0275elementEnd())}function Ot(j,G){if(1&j){const k=b.\u0275\u0275getCurrentView();b.\u0275\u0275elementStart(0,"button",29),b.\u0275\u0275listener("click",function(){b.\u0275\u0275restoreView(k);const U=b.\u0275\u0275nextContext();return b.\u0275\u0275resetView(U.checkForOwnershipErrors())}),b.\u0275\u0275text(1," Submit"),b.\u0275\u0275elementEnd()}2&j&&b.\u0275\u0275property("gaEvent",b.\u0275\u0275pureFunction0(1,r))}T.UnitOwnershipChangeComponent=(()=>{class j{constructor(k,R,U){this.fleetService=k,this.activeModal=R,this.loader=U,this.showRemovalError=!1,this.removalOptions=[],this.removalSelection=!1,this.date="",this.dateError=!1,this.showUpdateMessageError=!1,this.updateMessage="",this.companySelection=!1,this.showCompanyError=!1,this.parentHoldingCompanies=[],this.disallowCustomerDataModification=!1,this.showUnitOwnershipError=!1,this.showUnitOwnerSuccess=!1}ngOnInit(){}setSelectedRemovalOption(k){""!==k?(this.removalSelection=!0,this.showRemovalError=!1):(this.removalSelection=!1,this.showRemovalError=!0),this.selectedRemovalOption=k,this.showUpdateMessageError=!1}checkDateLength(){this.dateError=this.date.length>40}setSelectedCompanyOption(k){""!==k?(this.companySelection=!0,this.showCompanyError=!1):(this.companySelection=!1,this.showCompanyError=!0),this.selectedCompanyOption=k,this.showUpdateMessageError=!1}checkForOwnershipErrors(){""===this.updateMessage?this.showUpdateMessageError=!0:(this.showUpdateMessageError=!1,this.updateUnitOwnership())}updateUnitOwnership(){this.loader.start(),this.fleetService.updateUnitOwnership(this.detailResponse.instanceId,this.detailResponse.faSerial,this.detailResponse.unitSerial,this.date,this.updateMessage,this.selectedRemovalOption).pipe((0,O.take)(1)).subscribe(k=>{k.formError?(this.showUnitOwnershipError=!0,this.showUnitOwnerSuccess=!1,this.loader.stop()):(this.showUnitOwnerSuccess=!0,this.showUnitOwnershipError=!1,this.loader.stop(),this.date="",this.updateMessage="",this.removalSelection=!1),this.activeModal.dismiss(null)})}static{this.\u0275fac=function(R){return new(R||j)(b.\u0275\u0275directiveInject(g.FleetService),b.\u0275\u0275directiveInject(h.NgbActiveModal),b.\u0275\u0275directiveInject(D.LoadingService))}}static{this.\u0275cmp=b.\u0275\u0275defineComponent({type:j,selectors:[["altec-connect-unit-ownership-change"]],standalone:!1,decls:30,vars:6,consts:[["removalMethodSelect",""],["companyMethodSelect",""],[1,"modal-header"],["type","button","data-bs-dismiss","modal","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-title"],[1,"modal-body"],["id","form",1,"form-horizontal","mt-4"],[1,"mb-3","required"],[1,"col-sm-4","form-label"],[1,"col-sm-8"],[1,"form-control","form-control-sm",3,"change","ngClass"],["value",""],[3,"value"],[1,"form-text",3,"ngClass"],[1,"modal-footer","d-grid","gap-2"],["type","button","data-bs-dismiss","modal",1,"btn","btn-light",3,"click"],[1,"d-block","d-sm-none"],[1,"d-none","d-sm-block"],[1,"btn","btn-disabled"],["type","button",1,"btn","btn-altec",3,"gaEvent"],[1,"mb-3"],["name","date","type","text",1,"form-control","form-control-sm",3,"keyup","ngModelChange","ngModel"],[1,"has-error","form-text"],["name","description","tabindex","20","rows","6","maxlength","300",1,"form-control","form-control-sm",3,"ngModelChange","ngClass","ngModel"],[1,"form-text","has-error"],["name","buyer","type","text",1,"form-control","form-control-sm",3,"ngModelChange","ngClass","ngModel"],["name","auctioneer","type","text",1,"form-control","form-control-sm",3,"ngModelChange","ngClass","ngModel"],["name","company",1,"form-control","form-control-sm",3,"ngModelChange","change","ngClass","ngModel"],["type","button",1,"btn","btn-altec",3,"click","gaEvent"]],template:function(R,U){if
1(1&R){const st=b.\u0275\u0275getCurrentView();b.\u0275\u0275elementStart(0,"div",2)(1,"button",3),b.\u0275\u0275listener("click",function(){return U.activeModal.dismiss(null)}),b.\u0275\u0275elementStart(2,"span",4),b.\u0275\u0275text(3,"\xd7"),b.\u0275\u0275elementEnd()(),b.\u0275\u0275elementStart(4,"h4",5),b.\u0275\u0275text(5," Request Unit Ownership Change "),b.\u0275\u0275elementEnd()(),b.\u0275\u0275elementStart(6,"div",6),b.\u0275\u0275text(7," If you need to remove ownership of this unit, fill out the form below. An email will be sent to our customer service, who will work to fulfill your request. "),b.\u0275\u0275elementStart(8,"form",7)(9,"div",8)(10,"label",9),b.\u0275\u0275text(11," Removal Method"),b.\u0275\u0275elementEnd(),b.\u0275\u0275elementStart(12,"div",10)(13,"select",11,0),b.\u0275\u0275listener("change",function(){b.\u0275\u0275restoreView(st);const Jt=b.\u0275\u0275reference(14);return b.\u0275\u0275resetView(U.setSelectedRemovalOption(Jt.value))}),b.\u0275\u0275elementStart(15,"option",12),b.\u0275\u0275text(16,"Select a method"),b.\u0275\u0275elementEnd(),b.\u0275\u0275repeaterCreate(17,I,2,2,"option",13,b.\u0275\u0275repeaterTrackByIdentity),b.\u0275\u0275elementEnd(),b.\u0275\u0275conditionalCreate(19,vt,2,3,"small",14),b.\u0275\u0275elementEnd()(),b.\u0275\u0275conditionalCreate(20,ot,10,6),b.\u0275\u0275elementEnd()(),b.\u0275\u0275elementStart(21,"div",15)(22,"button",16),b.\u0275\u0275listener("click",function(){return U.activeModal.dismiss(null)}),b.\u0275\u0275text(23," Cancel"),b.\u0275\u0275elementEnd(),b.\u0275\u0275elementStart(24,"span",17),b.\u0275\u0275element(25,"br"),b.\u0275\u0275elementEnd(),b.\u0275\u0275elementStart(26,"span",18),b.\u0275\u0275text(27,"\xa0"),b.\u0275\u0275elementEnd(),b.\u0275\u0275conditionalCreate(28,B,2,0,"a",19)(29,Ot,2,2,"button",20),b.\u0275\u0275elementEnd()}2&R&&(b.\u0275\u0275advance(13),b.\u0275\u0275property("ngClass",b.\u0275\u0275pureFunction1(4,J,U.showRemovalError)),b.\u0275\u0275advance(4),b.\u0275\u0275repeater(U.removalOptions),b.\u0275\u0275advance(2),b.\u0275\u0275conditional(U.showRemovalError?19:-1),b.\u0275\u0275advance(),b.\u0275\u0275conditional(U.removalSelection?20:-1),b.\u0275\u0275advance(8),b.\u0275\u0275conditional(U.disallowCustomerDataModification?28:29))},dependencies:[f.NgClass,v.\u0275NgNoValidate,v.NgSelectOption,v.\u0275NgSelectMultipleOption,v.DefaultValueAccessor,v.SelectControlValueAccessor,v.NgControlStatus,v.NgControlStatusGroup,v.MaxLengthValidator,v.NgModel,v.NgForm,p.GaEventDirective],encapsulation:2})}}return j})()},86574(Ht,T){"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.Instance=T.FleetGroup=T.FleetGroupUpdateDto=void 0,T.FleetGroupUpdateDto=class d{constructor(){this.groupId=0,this.accountId=0,this.subGroupsToAdd=[],this.subGroupsToRemove=[],this.name="",this.description="",this.instancesToAdd=[],this.instancesToRemove=[]}},T.FleetGroup=class S{constructor(){this.accountId=0,this.name="",this.description="",this.parents=[],this.subGroups=[],this.groupId=0,this.version=0,this.contacts=[],this.instances=[],this.detailedInstances=[]}},T.Instance=class N{constructor(){this.ebsInstanceId=0,this.groupId=0,this.accountId=0}}},9231(Ht,T,d){"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.FilterPipe=void 0;const N=d(31635).__importStar(d(49849));T.FilterPipe=(()=>{class u{transform(b,g){return b?b.filter((D,f,v)=>v.indexOf(D)===f):null}static{this.\u0275fac=function(g){return new(g||u)}}static{this.\u0275pipe=N.\u0275\u0275definePipe({name:"filterUnique",type:u,pure:!1,standalone:!1})}}return u})()},47917(Ht,T,d){"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.TimeStampConvertPipe=void 0;const S=d(31635),N=S.__importDefault(d(97586)),O=S.__importStar(d(49849));T.TimeStampConvertPipe=(()=>{class o{transform(g){const D=(0,N.default)().diff(g,"minute");switch(!0){case D<=1:this.bracket="< 1 min";break;case D<=5:this.bracket="> 1 min";break;case D<=10:this.bracket="> 5 min";break;case D<=30:this.bracket="> 10 min";break;case D<=60:this.bracket="> 30 min";break;case D<=720:this.bracket="> 1 hour";break;case D<=1440:this.bracket="> 12 hours";break;case D<=2880:this.bracket="> 1 day";break;default:this.bracket="> 2 days"}return this.bracket}static{this.\u0275fac=function(h){return new(h||o)}}static{this.\u0275pipe=O.\u0275\u0275definePipe({name:"timeStampConvert",type:o,pure:!0,standalone:!1})}}return o}
1)()},2578(Ht,T){var d,N;void 0!==(N="function"==typeof(d=function(){"use strict";function u(f,v,p){var J=new XMLHttpRequest;J.open("GET",f),J.responseType="blob",J.onload=function(){D(J.response,v,p)},J.onerror=function(){console.error("could not download file")},J.send()}function o(f){var v=new XMLHttpRequest;v.open("HEAD",f,!1);try{v.send()}catch{}return 200<=v.status&&299>=v.status}function b(f){try{f.dispatchEvent(new MouseEvent("click"))}catch{var v=document.createEvent("MouseEvents");v.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),f.dispatchEvent(v)}}var g="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,h=g.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),D=g.saveAs||("object"!=typeof window||window!==g?function(){}:"download"in HTMLAnchorElement.prototype&&!h?function(f,v,p){var J=g.URL||g.webkitURL,lt=document.createElement("a");lt.download=v=v||f.name||"download",lt.rel="noopener","string"==typeof f?(lt.href=f,lt.origin===location.origin?b(lt):o(lt.href)?u(f,v,p):b(lt,lt.target="_blank")):(lt.href=J.createObjectURL(f),setTimeout(function(){J.revokeObjectURL(lt.href)},4e4),setTimeout(function(){b(lt)},0))}:"msSaveOrOpenBlob"in navigator?function(f,v,p){if(v=v||f.name||"download","string"!=typeof f)navigator.msSaveOrOpenBlob(function O(f,v){return typeof v>"u"?v={autoBom:!1}:"object"!=typeof v&&(console.warn("Deprecated: Expected third argument to be a object"),v={autoBom:!v}),v.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(f.type)?new Blob(["\ufeff",f],{type:f.type}):f}(f,p),v);else if(o(f))u(f,v,p);else{var J=document.createElement("a");J.href=f,J.target="_blank",setTimeout(function(){b(J)})}}:function(f,v,p,J){if((J=J||open("","_blank"))&&(J.document.title=J.document.body.innerText="downloading..."),"string"==typeof f)return u(f,v,p);var lt="application/octet-stream"===f.type,r=/constructor/i.test(g.HTMLElement)||g.safari,I=/CriOS\/[\d]+/.test(navigator.userAgent);if((I||lt&&r||h)&&typeof FileReader<"u"){var vt=new FileReader;vt.onloadend=function(){var F=vt.result;F=I?F:F.replace(/^data:[^;]*;/,"data:attachment/file;"),J?J.location.href=F:location=F,J=null},vt.readAsDataURL(f)}else{var C=g.URL||g.webkitURL,ht=C.createObjectURL(f);J?J.location=ht:location.href=ht,J=null,setTimeout(function(){C.revokeObjectURL(ht)},4e4)}});g.saveAs=D.saveAs=D,Ht.exports=D})?d.apply(T,[]):d)&&(Ht.exports=N)},50969(Ht,T,d){"use strict";d.r(T),d.d(T,{DeprecatedMapMarkerClusterer:()=>j,GoogleMap:()=>ht,GoogleMapsModule:()=>q,MapAdvancedMarker:()=>kt,MapBaseLayer:()=>at,MapBicyclingLayer:()=>rt,MapCircle:()=>X,MapDirectionsRenderer:()=>gt,MapDirectionsService:()=>Tt,MapEventManager:()=>r,MapGeocoder:()=>_t,MapGroundOverlay:()=>mt,MapHeatmapLayer:()=>Dt,MapInfoWindow:()=>St,MapKmlLayer:()=>ft,MapMarker:()=>Ot,MapMarkerClusterer:()=>K,MapPolygon:()=>G,MapPolyline:()=>k,MapRectangle:()=>R,MapTrafficLayer:()=>U,MapTransitLayer:()=>st});var S=d(10467),N=d(35547),O=d(60414),u=d(71985),o=d(21413),b=d(84412),g=d(18359),h=d(84572),D=d(96354),f=d(25558),v=d(96697),p=d(56977),J=d(60177);const lt=["*"];class r{_ngZone;_pending=[];_listeners=[];_targetStream=new b.t(void 0);_clearListeners(){for(const Mt of this._listeners)Mt.remove();this._listeners=[]}constructor(Mt){this._ngZone=Mt}getLazyEmitter(Mt,y){return this._targetStream.pipe((0,f.n)(x=>{const W=new u.c(E=>{if(!x)return void this._pending.push({observable:W,observer:E});let tt;const V=Et=>{this._ngZone.run(()=>E.next(Et))};if("native"===y?(x.addEventListener(Mt,V),tt={remove:()=>x.removeEventListener(Mt,V)}):tt=x.addListener(Mt,V),tt)return this._listeners.push(tt),()=>tt.remove();E.complete()});return W}))}setTarget(Mt){const y=this._targetStream.value;Mt!==y&&(y&&(this._clearListeners(),this._pending=[]),this._targetStream.next(Mt),this._pending.forEach(x=>x.observable.subscribe(x.observer)),this._pending=[])}destroy(){this._clearListeners(),this._pending=[],this._targetStream.complete()}}const I={center:{lat:37.421995,lng:-122.084092},zoom:17,mapTypeId:"roadmap"},C="500px";let ht=(()=>{class dt{_elementRef=(0,O.WQX)(N.aKT);_ngZone=(0,O.WQX)(O.SKi);_eventManager=new r((0,O.WQX)(O.SKi));_mapEl;_existingAuthFailureCallback;googleMap;_isBrowser;height="500px";width=C;mapId;mapTypeId;set center(y){this._center=y}_center;set zoom(y){this._zoom=y}_zoom;set options(y){this._options=y||I}_options=I;mapInitialized=new O.bkB;authFailure=new O.bkB;boundsChanged=this._eventManager.getLazyEmitter("bounds_changed");centerChanged=this._eventManager.getLazyEmitter("center_changed");mapClick=this._eventManager.getLazyEmitter("click");mapDblclick=this._eventManager.getLazyEmitter("dblclick");mapDrag=this._eventManager.getLazyEmitter("drag");mapDragend=this._eventManager.getLazyEmitter("dragend");mapDragstart=this._eventManager.getLazyEmitter("dragstart");headingChanged=this._eventManager.getLazyEmitter("heading_changed");idle=this._eventManager.getLazyEmitter("idle");maptypeidChanged=this._eventManager.getLazyEmitter("maptypeid_changed");mapMousemove=this._eventManager.getLazyEmitter("mousemove");mapMouseout=this._eventManager.getLazyEmitter("mouseout");mapMouseover=this._eventManager.getLazyEmitter("mouseover");projectionChanged=this._eventManager.getLazyEmitter("projection_changed");mapRightclick=this._eventManager.getLazyEmitter("rightclick");tilesloaded=this._eventManager.getLazyEmitter("tilesloaded");tiltChanged=this._eventManager.getLazyEmitter("tilt_changed");zoomChanged=this._eventManager.getLazyEmitter("zoom_changed");constructor(){const y=(0,O.WQX)(N.Agw);if(this._isBrowser=(0,J.isPlatformBrowser)(y),this._isBrowser){const x=window;this._existingAuthFailureCallback=x.gm_authFailure,x.gm_authFailure=()=>{this._existingAuthFailureCallback&&this._existingAuthFailureCallback(),this.authFailure.emit()}}}ngOnChanges(y){(y.height||y.width)&&this._setSize();const x=this.googleMap;x&&(y.options&&x.setOptions(this._combineOptions()),y.center&&this._center&&x.setCenter(this._center),y.zoom&&null!=this._zoom&&x.setZoom(this._zoom),y.mapTypeId&&this.mapTypeId&&x.setMapTypeId(this.mapTypeId)
1)}ngOnInit(){this._isBrowser&&(this._mapEl=this._elementRef.nativeElement.querySelector(".map-container"),this._setSize(),google.maps.Map?this._initialize(google.maps.Map):this._ngZone.runOutsideAngular(()=>{google.maps.importLibrary("maps").then(y=>this._initialize(y.Map))}))}_initialize(y){this._ngZone.runOutsideAngular(()=>{this.googleMap=new y(this._mapEl,this._combineOptions()),this._eventManager.setTarget(this.googleMap),this.mapInitialized.emit(this.googleMap)})}ngOnDestroy(){this.mapInitialized.complete(),this._eventManager.destroy(),this._isBrowser&&(window.gm_authFailure=this._existingAuthFailureCallback)}fitBounds(y,x){this._assertInitialized(),this.googleMap.fitBounds(y,x)}panBy(y,x){this._assertInitialized(),this.googleMap.panBy(y,x)}panTo(y){this._assertInitialized(),this.googleMap.panTo(y)}panToBounds(y,x){this._assertInitialized(),this.googleMap.panToBounds(y,x)}getBounds(){return this._assertInitialized(),this.googleMap.getBounds()||null}getCenter(){return this._assertInitialized(),this.googleMap.getCenter()}getClickableIcons(){return this._assertInitialized(),this.googleMap.getClickableIcons()}getHeading(){return this._assertInitialized(),this.googleMap.getHeading()}getMapTypeId(){return this._assertInitialized(),this.googleMap.getMapTypeId()}getProjection(){return this._assertInitialized(),this.googleMap.getProjection()||null}getStreetView(){return this._assertInitialized(),this.googleMap.getStreetView()}getTilt(){return this._assertInitialized(),this.googleMap.getTilt()}getZoom(){return this._assertInitialized(),this.googleMap.getZoom()}get controls(){return this._assertInitialized(),this.googleMap.controls}get data(){return this._assertInitialized(),this.googleMap.data}get mapTypes(){return this._assertInitialized(),this.googleMap.mapTypes}get overlayMapTypes(){return this._assertInitialized(),this.googleMap.overlayMapTypes}_resolveMap(){return this.googleMap?Promise.resolve(this.googleMap):this.mapInitialized.pipe((0,v.s)(1)).toPromise()}_setSize(){if(this._mapEl){const y=this._mapEl.style;y.height=null===this.height?"":ct(this.height)||"500px",y.width=null===this.width?"":ct(this.width)||C}}_combineOptions(){const y=this._options||{};return{...y,center:this._center||y.center||I.center,zoom:this._zoom??y.zoom??I.zoom,mapTypeId:this.mapTypeId||y.mapTypeId||I.mapTypeId,mapId:this.mapId||y.mapId}}_assertInitialized(){}static \u0275fac=function(x){return new(x||dt)};static \u0275cmp=N.VBU({type:dt,selectors:[["google-map"]],inputs:{height:"height",width:"width",mapId:"mapId",mapTypeId:"mapTypeId",center:"center",zoom:"zoom",options:"options"},outputs:{mapInitialized:"mapInitialized",authFailure:"authFailure",boundsChanged:"boundsChanged",centerChanged:"centerChanged",mapClick:"mapClick",mapDblclick:"mapDblclick",mapDrag:"mapDrag",mapDragend:"mapDragend",mapDragstart:"mapDragstart",headingChanged:"headingChanged",idle:"idle",maptypeidChanged:"maptypeidChanged",mapMousemove:"mapMousemove",mapMouseout:"mapMouseout",mapMouseover:"mapMouseover",projectionChanged:"projectionChanged",mapRightclick:"mapRightclick",tilesloaded:"tilesloaded",tiltChanged:"tiltChanged",zoomChanged:"zoomChanged"},exportAs:["googleMap"],features:[N.OA$],ngContentSelectors:lt,decls:2,vars:0,consts:[[1,"map-container"]],template:function(x,W){1&x&&(N.NAR(),N.Hgh(0,"div",0),N.SdG(1))},encapsulation:2,changeDetection:0})}return dt})();const F=/([A-Za-z%]+)$/;function ct(dt){return null==dt?"":F.test(dt)?dt:`${dt}px`}let at=(()=>{class dt{_map=(0,O.WQX)(ht);_ngZone=(0,O.WQX)(O.SKi);constructor(){}ngOnInit(){this._map._isBrowser&&(this._ngZone.runOutsideAngular(()=>{this._initializeObject()}),this._assertInitialized(),this._setMap())}ngOnDestroy(){this._unsetMap()}_assertInitialized(){if(!this._map.googleMap)throw Error("Cannot access Google Map information before the API has been initialized. Please wait for the API to load before trying to interact with it.")}_initializeObject(){}_setMap(){}_unsetMap(){}static \u0275fac=function(x){return new(x||dt)};static \u0275dir=N.FsC({type:dt,selectors:[["map-base-layer"]],exportAs:["mapBaseLayer"]})}return dt})(),rt=(()=>{class dt{_map=(0,O.WQX)(ht);_zone=(0,O.WQX)(O.SKi);bicyclingLayer;bicyclingLayerInitialized=new O.bkB;ngOnInit(){this._map._isBrowser&&(google.maps.BicyclingLayer&&this._map.googleMap?this._initialize(this._map.googleMap,google.maps.BicyclingLayer):this._zone.runOutsideAngular(()=>{Promise.all([this._map._resolveMap(),google.maps.importLibrary("maps")]).then(([y,x])=>{this._initialize(y,x.BicyclingLayer)})}))}_initialize(y,x){this._zone.runOutsideAngular(()=>{this.bicyclingLayer=new x,this.bicyclingLayerInitialized.emit(this.bicyclingLayer),this._assertLayerInitialized(),this.bicyclingLayer.setMap(y)})}ngOnDestroy(){this.bicyclingLayer?.setMap(null)}_assertLayerInitialized(){if(!this.bicyclingLayer)throw Error("Cannot interact with a Google Map Bicycling Layer before it has been initialized. Please wait for the Transit Layer to load before trying to interact with it.")}static \u0275fac=function(x){return new(x||dt)};static \u0275dir=N.FsC({type:dt,selectors:[["map-bicycling-layer"]],outputs:{bicyclingLayerInitialized:"bicyclingLayerInitialized"},exportAs:["mapBicyclingLayer"]})}return dt})(),X=(()=>{class dt{_map=(0,O.WQX)(ht);_ngZone=(0,O.WQX)(O.SKi);_eventManager=new r((0,O.WQX)(O.SKi));_options=new b.t({});_center=new b.t(void 0);_radius=new b.t(void 0);_destroyed=new o.B;circle;set options(y){this._options.next(y||{})}set center(y){this._center.next(y)}set radius(y){this._radius.next(y)}centerChanged=this._eventManager.getLazyEmitter("center_changed");circleClick=this._eventManager.getLazyEmitter("click");circleDblclick=this._eventManager.getLazyEmitter("dblclick");circleDrag=this._eventManager.getLazyEmitter("drag");circleDragend=this._eventManager.getLazyEmitter("dragend");circleDragstart=this._eventManager.getLazyEmitter("dragstart");circleMousedown=this._eventManager.getLazyEmitter("mousedown");circleMousemove=this._eventManager.getLazyEmitter("mousemove");circleMouseout=this._eventManager.getLazyEmitter("mouseout");circleMouseover=this._eventManager.getLazyEmitter("mouseover");circleMouseup=this._eventManager.getLazyEmitter("mouseup");radiusChanged=this._eventManager.getLazyEmitter("radius_changed");circleRightclick=this._eventManager.getLazyEmitter("rightclick");circleInitialized=new O.bkB;constructor(){}ngOnInit(){this._map._isBrowser&&this._combineOptions().pipe((0,v.s)(1)).subscribe(y=>{google.maps.Circle&&this._map.googleMap?this._initialize(this._map.googleMap,google.maps.Circle,y):this._ngZone.runOutsideAngular(()=>{Promise.all([this._map._resolveMap(),google.maps.importLibrary("maps")]).then(([x,W])=>{this._initialize(x,W.Circle,y)})})})}_initialize(y,x,W){this._ngZone.runOutsideAngular(()=>{this.circle=new x(W),this._assertInitialized(),this.circle.setMap(y),this._eventManager.setTarget(this.circle),this.circleInitialized.emit(this.circle),this._watchForOptionsChanges(),this._watchForCenterChanges(),this._watchForRadiusChanges()})}ngOnDestroy(){this._eventManager.destroy(),this._destroyed.next(),this._destroyed.complete(),this.circle?.setMap(null)}getBounds(){return this._assertInitialized(),this.circle.getBounds()}getCenter(){return this._assertInitialized(),this.circle.getCenter()}getDraggable(){return this._assertInitialized(),this.circle.getDraggable()}getEditable(){return this._assertInitialized(),this.circle.getEditable()}getRadius(){return this._assertInitialized(),this.circle.getRadius()}getVisible(){return this._assertInitialized(),this.circle.getVisible()}_combineOptions(){return(0,h.z)([this._options,this._center,this._radius]).pipe((0,D.T)(([y,x,W])=>
1({...y,center:x||y.center,radius:void 0!==W?W:y.radius})))}_watchForOptionsChanges(){this._options.pipe((0,p.Q)(this._destroyed)).subscribe(y=>{this._assertInitialized(),this.circle.setOptions(y)})}_watchForCenterChanges(){this._center.pipe((0,p.Q)(this._destroyed)).subscribe(y=>{y&&(this._assertInitialized(),this.circle.setCenter(y))})}_watchForRadiusChanges(){this._radius.pipe((0,p.Q)(this._destroyed)).subscribe(y=>{void 0!==y&&(this._assertInitialized(),this.circle.setRadius(y))})}_assertInitialized(){}static \u0275fac=function(x){return new(x||dt)};static \u0275dir=N.FsC({type:dt,selectors:[["map-circle"]],inputs:{options:"options",center:"center",radius:"radius"},outputs:{centerChanged:"centerChanged",circleClick:"circleClick",circleDblclick:"circleDblclick",circleDrag:"circleDrag",circleDragend:"circleDragend",circleDragstart:"circleDragstart",circleMousedown:"circleMousedown",circleMousemove:"circleMousemove",circleMouseout:"circleMouseout",circleMouseover:"circleMouseover",circleMouseup:"circleMouseup",radiusChanged:"radiusChanged",circleRightclick:"circleRightclick",circleInitialized:"circleInitialized"},exportAs:["mapCircle"]})}return dt})(),gt=(()=>{class dt{_googleMap=(0,O.WQX)(ht);_ngZone=(0,O.WQX)(O.SKi);_eventManager=new r((0,O.WQX)(O.SKi));set directions(y){this._directions=y}_directions;set options(y){this._options=y}_options;directionsChanged=this._eventManager.getLazyEmitter("directions_changed");directionsRendererInitialized=new O.bkB;directionsRenderer;constructor(){}ngOnInit(){this._googleMap._isBrowser&&(google.maps.DirectionsRenderer&&this._googleMap.googleMap?this._initialize(this._googleMap.googleMap,google.maps.DirectionsRenderer):this._ngZone.runOutsideAngular(()=>{Promise.all([this._googleMap._resolveMap(),google.maps.importLibrary("routes")]).then(([y,x])=>{this._initialize(y,x.DirectionsRenderer)})}))}_initialize(y,x){this._ngZone.runOutsideAngular(()=>{this.directionsRenderer=new x(this._combineOptions()),this._assertInitialized(),this.directionsRenderer.setMap(y),this._eventManager.setTarget(this.directionsRenderer),this.directionsRendererInitialized.emit(this.directionsRenderer)})}ngOnChanges(y){this.directionsRenderer&&(y.options&&this.directionsRenderer.setOptions(this._combineOptions()),y.directions&&void 0!==this._directions&&this.directionsRenderer.setDirections(this._directions))}ngOnDestroy(){this._eventManager.destroy(),this.directionsRenderer?.setMap(null)}getDirections(){return this._assertInitialized(),this.directionsRenderer.getDirections()}getPanel(){return this._assertInitialized(),this.directionsRenderer.getPanel()}getRouteIndex(){return this._assertInitialized(),this.directionsRenderer.getRouteIndex()}_combineOptions(){const y=this._options||{};return{...y,directions:this._directions||y.directions,map:this._googleMap.googleMap}}_assertInitialized(){}static \u0275fac=function(x){return new(x||dt)};static \u0275dir=N.FsC({type:dt,selectors:[["map-directions-renderer"]],inputs:{directions:"directions",options:"options"},outputs:{directionsChanged:"directionsChanged",directionsRendererInitialized:"directionsRendererInitialized"},exportAs:["mapDirectionsRenderer"],features:[N.OA$]})}return dt})(),mt=(()=>{class dt{_map=(0,O.WQX)(ht);_ngZone=(0,O.WQX)(O.SKi);_eventManager=new r((0,O.WQX)(O.SKi));_opacity=new b.t(1);_url=new b.t("");_bounds=new b.t(void 0);_destroyed=new o.B;_hasWatchers=!1;groundOverlay;set url(y){this._url.next(y)}get bounds(){return this._bounds.value}set bounds(y){this._bounds.next(y)}clickable=!1;set opacity(y){this._opacity.next(y)}mapClick=this._eventManager.getLazyEmitter("click");mapDblclick=this._eventManager.getLazyEmitter("dblclick");groundOverlayInitialized=new O.bkB;constructor(){}ngOnInit(){this._map._isBrowser&&this._bounds.pipe((0,p.Q)(this._destroyed)).subscribe(y=>{this.groundOverlay&&(this.groundOverlay.setMap(null),this.groundOverlay=void 0),y&&(google.maps.GroundOverlay&&this._map.googleMap?this._initialize(this._map.googleMap,google.maps.GroundOverlay,y):this._ngZone.runOutsideAngular(()=>{Promise.all([this._map._resolveMap(),google.maps.importLibrary("maps")]).then(([x,W])=>{this._initialize(x,W.GroundOverlay,y)})}))})}_initialize(y,x,W){this._ngZone.runOutsideAngular(()=>{this.groundOverlay=new x(this._url.getValue(),W,{clickable:this.clickable,opacity:this._opacity.value}),this._assertInitialized(),this.groundOverlay.setMap(y),this._eventManager.setTarget(this.groundOverlay),this.groundOverlayInitialized.emit(this.groundOverlay),this._hasWatchers||
1(this._hasWatchers=!0,this._watchForOpacityChanges(),this._watchForUrlChanges())})}ngOnDestroy(){this._eventManager.destroy(),this._destroyed.next(),this._destroyed.complete(),this.groundOverlay?.setMap(null)}getBounds(){return this._assertInitialized(),this.groundOverlay.getBounds()}getOpacity(){return this._assertInitialized(),this.groundOverlay.getOpacity()}getUrl(){return this._assertInitialized(),this.groundOverlay.getUrl()}_watchForOpacityChanges(){this._opacity.pipe((0,p.Q)(this._destroyed)).subscribe(y=>{null!=y&&this.groundOverlay?.setOpacity(y)})}_watchForUrlChanges(){this._url.pipe((0,p.Q)(this._destroyed)).subscribe(y=>{const x=this.groundOverlay;x&&(x.set("url",y),x.setMap(null),x.setMap(this._map.googleMap))})}_assertInitialized(){}static \u0275fac=function(x){return new(x||dt)};static \u0275dir=N.FsC({type:dt,selectors:[["map-ground-overlay"]],inputs:{url:"url",bounds:"bounds",clickable:"clickable",opacity:"opacity"},outputs:{mapClick:"mapClick",mapDblclick:"mapDblclick",groundOverlayInitialized:"groundOverlayInitialized"},exportAs:["mapGroundOverlay"]})}return dt})(),St=(()=>{class dt{_googleMap=(0,O.WQX)(ht);_elementRef=(0,O.WQX)(N.aKT);_ngZone=(0,O.WQX)(O.SKi);_eventManager=new r((0,O.WQX)(O.SKi));_options=new b.t({});_position=new b.t(void 0);_destroy=new o.B;infoWindow;set options(y){this._options.next(y||{})}set position(y){this._position.next(y)}closeclick=this._eventManager.getLazyEmitter("closeclick");contentChanged=this._eventManager.getLazyEmitter("content_changed");domready=this._eventManager.getLazyEmitter("domready");positionChanged=this._eventManager.getLazyEmitter("position_changed");zindexChanged=this._eventManager.getLazyEmitter("zindex_changed");infoWindowInitialized=new O.bkB;constructor(){}ngOnInit(){this._googleMap._isBrowser&&this._combineOptions().pipe((0,v.s)(1)).subscribe(y=>{google.maps.InfoWindow?this._initialize(google.maps.InfoWindow,y):this._ngZone.runOutsideAngular(()=>{google.maps.importLibrary("maps").then(x=>{this._initialize(x.InfoWindow,y)})})})}_initialize(y,x){this._ngZone.runOutsideAngular(()=>{this.infoWindow=new y(x),this._eventManager.setTarget(this.infoWindow),this.infoWindowInitialized.emit(this.infoWindow),this._watchForOptionsChanges(),this._watchForPositionChanges()})}ngOnDestroy(){this._eventManager.destroy(),this._destroy.next(),this._destroy.complete(),this.infoWindow&&this.close()}close(){this._assertInitialized(),this.infoWindow.close()}getContent(){return this._assertInitialized(),this.infoWindow.getContent()||null}getPosition(){return this._assertInitialized(),this.infoWindow.getPosition()||null}getZIndex(){return this._assertInitialized(),this.infoWindow.getZIndex()}openAdvancedMarkerElement(y,x){this.open({getAnchor:()=>y},void 0,x)}open(y,x,W){this._assertInitialized();const E=y?y.getAnchor():void 0;(this.infoWindow.get("anchor")!==E||!E)&&(this._elementRef.nativeElement.style.display=W?"none":"",W&&this.infoWindow.setContent(W),this.infoWindow.open({map:this._googleMap.googleMap,anchor:E,shouldFocus:x}))}_combineOptions(){return(0,h.z)([this._options,this._position]).pipe((0,D.T)(([y,x])=>({...y,position:x||y.position,content:this._elementRef.nativeElement})))}_watchForOptionsChanges(){this._options.pipe((0,p.Q)(this._destroy)).subscribe(y=>{this._assertInitialized(),this.infoWindow.setOptions(y)})}_watchForPositionChanges(){this._position.pipe((0,p.Q)(this._destroy)).subscribe(y=>{y&&(this._assertInitialized(),this.infoWindow.setPosition(y))})}_assertInitialized(){}static \u0275fac=function(x){return new(x||dt)};static \u0275dir=N.FsC({type:dt,selectors:[["map-info-window"]],hostAttrs:[2,"display","none"],inputs:{options:"options",position:"position"},outputs:{closeclick:"closeclick",contentChanged:"contentChanged",domready:"domready",positionChanged:"positionChanged",zindexChanged:"zindexChanged",infoWindowInitialized:"infoWindowInitialized"},exportAs:["mapInfoWindow"]})}return dt})(),ft=(()=>{class dt{_map=(0,O.WQX)(ht);_ngZone=(0,O.WQX)(O.SKi);_eventManager=new r((0,O.WQX)(O.SKi));_options=new b.t({});_url=new b.t("");_destroyed=new o.B;kmlLayer;set options(y){this._options.next(y||{})}set url(y){this._url.next(y)}kmlClick=this._eventManager.getLazyEmitter("click");defaultviewportChanged=this._eventManager.getLazyEmitter("defaultviewport_changed");statusChanged=this._eventManager.getLazyEmitter("status_changed");kmlLayerInitialized=new O.bkB;constructor(){}ngOnInit(){this._map._isBrowser&&this._combineOptions().pipe((0,v.s)(1)).subscribe(y=>{google.maps.KmlLayer&&this._map.googleMap?this._initialize(this._map.googleMap,google.maps.KmlLayer,y):this._ngZone.runOutsideAngular(()=>{Promise.all([this._map._resolveMap(),google.maps.importLibrary("maps")]).then(([x,W])=>{this._initialize(x,W.KmlLayer,y)})})})}_initialize(y,x,W){this._ngZone.runOutsideAngular(()=>{this.kmlLayer=new x(W),this._assertInitialized(),this.kmlLayer.setMap(y),this._eventManager.setTarget(this.kmlLayer),this.kmlLayerInitialized.emit(this.kmlLayer),this._watchForOptionsChanges(),this._watchForUrlChanges()})}ngOnDestroy(){this._eventManager.destroy(),this._destroyed.next(),this._destroyed.complete(),this.kmlLayer?.setMap(null)}getDefaultViewport(){return this._assertInitialized(),this.kmlLayer.getDefaultViewport()}getMetadata(){return this._assertInitialized(),this.kmlLayer.getMetadata()}getStatus(){return this._assertInitialized(),this.kmlLayer.getStatus()}getUrl(){return this._assertInitialized(),this.kmlLayer.getUrl()}getZIndex(){return this._assertInitialized(),this.kmlLayer.getZIndex()}
1_combineOptions(){return(0,h.z)([this._options,this._url]).pipe((0,D.T)(([y,x])=>({...y,url:x||y.url})))}_watchForOptionsChanges(){this._options.pipe((0,p.Q)(this._destroyed)).subscribe(y=>{this.kmlLayer&&(this._assertInitialized(),this.kmlLayer.setOptions(y))})}_watchForUrlChanges(){this._url.pipe((0,p.Q)(this._destroyed)).subscribe(y=>{y&&this.kmlLayer&&(this._assertInitialized(),this.kmlLayer.setUrl(y))})}_assertInitialized(){}static \u0275fac=function(x){return new(x||dt)};static \u0275dir=N.FsC({type:dt,selectors:[["map-kml-layer"]],inputs:{options:"options",url:"url"},outputs:{kmlClick:"kmlClick",defaultviewportChanged:"defaultviewportChanged",statusChanged:"statusChanged",kmlLayerInitialized:"kmlLayerInitialized"},exportAs:["mapKmlLayer"]})}return dt})();const ot=new O.nKC("MAP_MARKER"),B={position:{lat:37.421995,lng:-122.084092}};let Ot=(()=>{class dt{_googleMap=(0,O.WQX)(ht);_ngZone=(0,O.WQX)(O.SKi);_eventManager=new r((0,O.WQX)(O.SKi));set title(y){this._title=y}_title;set position(y){this._position=y}_position;set label(y){this._label=y}_label;set clickable(y){this._clickable=y}_clickable;set options(y){this._options=y}_options;set icon(y){this._icon=y}_icon;set visible(y){this._visible=y}_visible;animationChanged=this._eventManager.getLazyEmitter("animation_changed");mapClick=this._eventManager.getLazyEmitter("click");clickableChanged=this._eventManager.getLazyEmitter("clickable_changed");cursorChanged=this._eventManager.getLazyEmitter("cursor_changed");mapDblclick=this._eventManager.getLazyEmitter("dblclick");mapDrag=this._eventManager.getLazyEmitter("drag");mapDragend=this._eventManager.getLazyEmitter("dragend");draggableChanged=this._eventManager.getLazyEmitter("draggable_changed");mapDragstart=this._eventManager.getLazyEmitter("dragstart");flatChanged=this._eventManager.getLazyEmitter("flat_changed");iconChanged=this._eventManager.getLazyEmitter("icon_changed");mapMousedown=this._eventManager.getLazyEmitter("mousedown");mapMouseout=this._eventManager.getLazyEmitter("mouseout");mapMouseover=this._eventManager.getLazyEmitter("mouseover");mapMouseup=this._eventManager.getLazyEmitter("mouseup");positionChanged=this._eventManager.getLazyEmitter("position_changed");mapRightclick=this._eventManager.getLazyEmitter("rightclick");shapeChanged=this._eventManager.getLazyEmitter("shape_changed");titleChanged=this._eventManager.getLazyEmitter("title_changed");visibleChanged=this._eventManager.getLazyEmitter("visible_changed");zindexChanged=this._eventManager.getLazyEmitter("zindex_changed");markerInitialized=new O.bkB;marker;constructor(){}ngOnInit(){this._googleMap._isBrowser&&(google.maps.Marker&&this._googleMap.googleMap?this._initialize(this._googleMap.googleMap,google.maps.Marker):this._ngZone.runOutsideAngular(()=>{Promise.all([this._googleMap._resolveMap(),google.maps.importLibrary("marker")]).then(([y,x])=>{this._initialize(y,x.Marker)})}))}_initialize(y,x){this._ngZone.runOutsideAngular(()=>{this.marker=new x(this._combineOptions()),this._assertInitialized(),this.marker.setMap(y),this._eventManager.setTarget(this.marker),this.markerInitialized.next(this.marker)})}ngOnChanges(y){const{marker:x,_title:W,_position:E,_label:tt,_clickable:V,_icon:Et,_visible:nt}=this;x&&(y.options&&x.setOptions(this._combineOptions()),y.title&&void 0!==W&&x.setTitle(W),y.position&&E&&x.setPosition(E),y.label&&void 0!==tt&&x.setLabel(tt),y.clickable&&void 0!==V&&x.setClickable(V),y.icon&&Et&&x.setIcon(Et),y.visible&&void 0!==nt&&x.setVisible(nt))}ngOnDestroy(){this.markerInitialized.complete(),this._eventManager.destroy(),this.marker?.setMap(null)}getAnimation(){return this._assertInitialized(),this.marker.getAnimation()||null}getClickable(){return this._assertInitialized(),this.marker.getClickable()}getCursor(){return this._assertInitialized(),this.marker.getCursor()||null}getDraggable(){return this._assertInitialized(),!!this.marker.getDraggable()}getIcon(){return this._assertInitialized(),this.marker.getIcon()||null}getLabel(){return this._assertInitialized(),this.marker.getLabel()||null}getOpacity(){return this._assertInitialized(),this.marker.getOpacity()||null}getPosition(){return this._assertInitialized(),this.marker.getPosition()||null}getShape(){return this._assertInitialized(),this.marker.getShape()||null}getTitle(){return this._assertInitialized(),this.marker.getTitle()||null}getVisible(){return this._assertInitialized(),this.marker.getVisible()}getZIndex(){return this._assertInitialized(),this.marker.getZIndex()||null}getAnchor(){return this._assertInitialized(),this.marker}_resolveMarker(){return this.marker?Promise.resolve(this.marker):this.markerInitialized.pipe((0,v.s)(1)).toPromise()}_combineOptions(){const y=this._options||B;return{...y,title:this._title||y.title,position:this._position||y.position,label:this._label||y.label,clickable:this._clickable??y.clickable,map:this._googleMap.googleMap,icon:this._icon||y.icon,visible:this._visible??y.visible}}_assertInitialized(){}static \u0275fac=function(x){return new(x||dt)};static \u0275dir=N.FsC({type:dt,selectors:[["map-marker"]],inputs:{title:"title",position:"position",label:"label",clickable:"clickable",options:"options",icon:"icon",visible:"visible"},outputs:{animationChanged:"animationChanged",mapClick:"mapClick",clickableChanged:"clickableChanged",cursorChanged:"cursorChanged",mapDblclick:"mapDblclick",mapDrag:"mapDrag",mapDragend:"mapDragend",draggableChanged:"draggableChanged",mapDragstart:"mapDragstart",flatChanged:"flatChanged",iconChanged:"iconChanged",mapMousedown:"mapMousedown",mapMouseout:"mapMouseout",mapM
1ouseover:"mapMouseover",mapMouseup:"mapMouseup",positionChanged:"positionChanged",mapRightclick:"mapRightclick",shapeChanged:"shapeChanged",titleChanged:"titleChanged",visibleChanged:"visibleChanged",zindexChanged:"zindexChanged",markerInitialized:"markerInitialized"},exportAs:["mapMarker"],features:[N.Jv_([{provide:ot,useExisting:dt}]),N.OA$]})}return dt})();const $={};let j=(()=>{class dt{_googleMap=(0,O.WQX)(ht);_ngZone=(0,O.WQX)(O.SKi);_currentMarkers=new Set;_eventManager=new r((0,O.WQX)(O.SKi));_destroy=new o.B;_canInitialize=this._googleMap._isBrowser;ariaLabelFn=()=>"";set averageCenter(y){this._averageCenter=y}_averageCenter;batchSize;set batchSizeIE(y){this._batchSizeIE=y}_batchSizeIE;set calculator(y){this._calculator=y}_calculator;set clusterClass(y){this._clusterClass=y}_clusterClass;set enableRetinaIcons(y){this._enableRetinaIcons=y}_enableRetinaIcons;set gridSize(y){this._gridSize=y}_gridSize;set ignoreHidden(y){this._ignoreHidden=y}_ignoreHidden;set imageExtension(y){this._imageExtension=y}_imageExtension;set imagePath(y){this._imagePath=y}_imagePath;set imageSizes(y){this._imageSizes=y}_imageSizes;set maxZoom(y){this._maxZoom=y}_maxZoom;set minimumClusterSize(y){this._minimumClusterSize=y}_minimumClusterSize;set styles(y){this._styles=y}_styles;set title(y){this._title=y}_title;set zIndex(y){this._zIndex=y}_zIndex;set zoomOnClick(y){this._zoomOnClick=y}_zoomOnClick;set options(y){this._options=y}_options;clusteringbegin=this._eventManager.getLazyEmitter("clusteringbegin");clusteringend=this._eventManager.getLazyEmitter("clusteringend");clusterClick=this._eventManager.getLazyEmitter("click");_markers;markerClusterer;markerClustererInitialized=new O.bkB;constructor(){}ngOnInit(){this._canInitialize&&this._ngZone.runOutsideAngular(()=>{this._googleMap._resolveMap().then(y=>{this.markerClusterer=this._ngZone.runOutsideAngular(()=>new MarkerClusterer(y,[],this._combineOptions())),this._assertInitialized(),this._eventManager.setTarget(this.markerClusterer),this.markerClustererInitialized.emit(this.markerClusterer)})})}ngAfterContentInit(){this._canInitialize&&(this.markerClusterer?this._watchForMarkerChanges():this.markerClustererInitialized.pipe((0,v.s)(1),(0,p.Q)(this._destroy)).subscribe(()=>this._watchForMarkerChanges()))}ngOnChanges(y){const{markerClusterer:x,ariaLabelFn:W,_averageCenter:E,_batchSizeIE:tt,_calculator:V,_styles:Et,_clusterClass:nt,_enableRetinaIcons:Gt,_gridSize:Ct,_ignoreHidden:Ut,_imageExtension:it,_imagePath:Ft,_imageSizes:jt,_maxZoom:ut,_minimumClusterSize:Qt,_title:wt,_zIndex:he,_zoomOnClick:Xt}=this;x&&(y.options&&x.setOptions(this._combineOptions()),y.ariaLabelFn&&(x.ariaLabelFn=W),y.averageCenter&&void 0!==E&&x.setAverageCenter(E),y.batchSizeIE&&void 0!==tt&&x.setBatchSizeIE(tt),y.calculator&&V&&x.setCalculator(V),y.clusterClass&&void 0!==nt&&x.setClusterClass(nt),y.enableRetinaIcons&&void 0!==Gt&&x.setEnableRetinaIcons(Gt),y.gridSize&&void 0!==Ct&&x.setGridSize(Ct),y.ignoreHidden&&void 0!==Ut&&x.setIgnoreHidden(Ut),y.imageExtension&&void 0!==it&&x.setImageExtension(it),y.imagePath&&void 0!==Ft&&x.setImagePath(Ft),y.imageSizes&&jt&&x.setImageSizes(jt),y.maxZoom&&void 0!==ut&&x.setMaxZoom(ut),y.minimumClusterSize&&void 0!==Qt&&x.setMinimumClusterSize(Qt),y.styles&&Et&&x.setStyles(Et),y.title&&void 0!==wt&&x.setTitle(wt),y.zIndex&&void 0!==he&&x.setZIndex(he),y.zoomOnClick&&void 0!==Xt&&x.setZoomOnClick(Xt))}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this._eventManager.destroy(),this.markerClusterer?.setMap(null)}fitMapToMarkers(y){this._assertInitialized(),this.markerClusterer.fitMapToMarkers(y)}getAverageCenter(){return this._assertInitialized(),this.markerClusterer.getAverageCenter()}getBatchSizeIE(){return this._assertInitialized(),this.markerClusterer.getBatchSizeIE()}getCalculator(){return this._assertInitialized(),this.markerClusterer.getCalculator()}getClusterClass(){return this._assertInitialized(),this.markerClusterer.getClusterClass()}getClusters(){return this._assertInitialized(),this.markerClusterer.getClusters()}getEnableRetinaIcons(){return this._assertInitialized(),this.markerClusterer.getEnableRetinaIcons()}getGridSize(){return this._assertInitialized(),this.markerClusterer.getGridSize()}getIgnoreHidden(){return this._assertInitialized(),this.markerClusterer.getIgnoreHidden()}getImageExtension(){return this._assertInitialized(),this.markerClusterer.getImageExtension()}getImagePath(){return this._assertInitialized(),this.markerClusterer.getImagePath()}getImageSizes(){return this._assertInitialized(),this.markerClusterer.getImageSizes()}getMaxZoom(){return this._assertInitialized(),this.markerClusterer.getMaxZoom()}getMinimumClusterSize(){return this._assertInitialized(),this.markerClusterer.getMinimumClusterSize()}getStyles(){return this._assertInitialized(),this.markerClusterer.getStyles()}getTitle(){return this._assertInitialized(),this.markerClusterer.getTitle()}getTotalClusters(){return this._assertInitialized(),this.markerClusterer.getTotalClusters()}getTotalMarkers(){return this._assertInitialized(),this.markerClusterer.getTotalMarkers()}getZIndex(){return this._assertInitialized(),this.markerClusterer.getZIndex()}getZoomOnClick(){return this._assertInitialized(),this.markerClusterer.getZoomOnClick()}
1_combineOptions(){const y=this._options||$;return{...y,ariaLabelFn:this.ariaLabelFn??y.ariaLabelFn,averageCenter:this._averageCenter??y.averageCenter,batchSize:this.batchSize??y.batchSize,batchSizeIE:this._batchSizeIE??y.batchSizeIE,calculator:this._calculator??y.calculator,clusterClass:this._clusterClass??y.clusterClass,enableRetinaIcons:this._enableRetinaIcons??y.enableRetinaIcons,gridSize:this._gridSize??y.gridSize,ignoreHidden:this._ignoreHidden??y.ignoreHidden,imageExtension:this._imageExtension??y.imageExtension,imagePath:this._imagePath??y.imagePath,imageSizes:this._imageSizes??y.imageSizes,maxZoom:this._maxZoom??y.maxZoom,minimumClusterSize:this._minimumClusterSize??y.minimumClusterSize,styles:this._styles??y.styles,title:this._title??y.title,zIndex:this._zIndex??y.zIndex,zoomOnClick:this._zoomOnClick??y.zoomOnClick}}_watchForMarkerChanges(){this._assertInitialized(),this._ngZone.runOutsideAngular(()=>{this._getInternalMarkers(this._markers).then(y=>{const x=[];for(const W of y)this._currentMarkers.add(W),x.push(W);this.markerClusterer.addMarkers(x)})}),this._markers.changes.pipe((0,p.Q)(this._destroy)).subscribe(y=>{this._assertInitialized(),this._ngZone.runOutsideAngular(()=>{this._getInternalMarkers(y).then(x=>{const W=new Set(x),E=[],tt=[];for(const V of Array.from(W))this._currentMarkers.has(V)||(this._currentMarkers.add(V),E.push(V));for(const V of Array.from(this._currentMarkers))W.has(V)||tt.push(V);this.markerClusterer.addMarkers(E,!0),this.markerClusterer.removeMarkers(tt,!0),this.markerClusterer.repaint();for(const V of tt)this._currentMarkers.delete(V)})})})}_getInternalMarkers(y){return Promise.all(y.map(x=>x._resolveMarker()))}_assertInitialized(){}static \u0275fac=function(x){return new(x||dt)};static \u0275cmp=N.VBU({type:dt,selectors:[["deprecated-map-marker-clusterer"]],contentQueries:function(x,W,E){if(1&x&&N.wni(E,Ot,5),2&x){let tt;N.mGM(tt=N.lsd())&&(W._markers=tt)}},inputs:{ariaLabelFn:"ariaLabelFn",averageCenter:"averageCenter",batchSize:"batchSize",batchSizeIE:"batchSizeIE",calculator:"calculator",clusterClass:"clusterClass",enableRetinaIcons:"enableRetinaIcons",gridSize:"gridSize",ignoreHidden:"ignoreHidden",imageExtension:"imageExtension",imagePath:"imagePath",imageSizes:"imageSizes",maxZoom:"maxZoom",minimumClusterSize:"minimumClusterSize",styles:"styles",title:"title",zIndex:"zIndex",zoomOnClick:"zoomOnClick",options:"options"},outputs:{clusteringbegin:"clusteringbegin",clusteringend:"clusteringend",clusterClick:"clusterClick",markerClustererInitialized:"markerClustererInitialized"},exportAs:["mapMarkerClusterer"],features:[N.OA$],ngContentSelectors:lt,decls:1,vars:0,template:function(x,W){1&x&&(N.NAR(),N.SdG(0))},encapsulation:2,changeDetection:0})}return dt})(),G=(()=>{class dt{_map=(0,O.WQX)(ht);_ngZone=(0,O.WQX)(O.SKi);_eventManager=new r((0,O.WQX)(O.SKi));_options=new b.t({});_paths=new b.t(void 0);_destroyed=new o.B;polygon;set options(y){this._options.next(y||{})}set paths(y){this._paths.next(y)}polygonClick=this._eventManager.getLazyEmitter("click");polygonDblclick=this._eventManager.getLazyEmitter("dblclick");polygonDrag=this._eventManager.getLazyEmitter("drag");polygonDragend=this._eventManager.getLazyEmitter("dragend");polygonDragstart=this._eventManager.getLazyEmitter("dragstart");polygonMousedown=this._eventManager.getLazyEmitter("mousedown");polygonMousemove=this._eventManager.getLazyEmitter("mousemove");polygonMouseout=this._eventManager.getLazyEmitter("mouseout");polygonMouseover=this._eventManager.getLazyEmitter("mouseover");polygonMouseup=this._eventManager.getLazyEmitter("mouseup");polygonRightclick=this._eventManager.getLazyEmitter("rightclick");polygonInitialized=new O.bkB;constructor(){}ngOnInit(){this._map._isBrowser&&this._combineOptions().pipe((0,v.s)(1)).subscribe(y=>{google.maps.Polygon&&this._map.googleMap?this._initialize(this._map.googleMap,google.maps.Polygon,y):this._ngZone.runOutsideAngular(()=>{Promise.all([this._map._resolveMap(),google.maps.importLibrary("maps")]).then(([x,W])=>{this._initialize(x,W.Polygon,y)})})})}_initialize(y,x,W){this._ngZone.runOutsideAngular(()=>{this.polygon=new x(W),this._assertInitialized(),this.polygon.setMap(y),this._eventManager.setTarget(this.polygon),this.polygonInitialized.emit(this.polygon),this._watchForOptionsChanges(),this._watchForPathChanges()})}ngOnDestroy(){this._eventManager.destroy(),this._destroyed.next(),this._destroyed.complete(),this.polygon?.setMap(null)}getDraggable(){return this._assertInitialized(),this.polygon.getDraggable()}getEditable(){return this._assertInitialized(),this.polygon.getEditable()}getPath(){return this._assertInitialized(),this.polygon.getPath()}getPaths(){return this._assertInitialized(),this.polygon.getPaths()}getVisible(){return this._assertInitialized(),this.polygon.getVisible()}_combineOptions(){return(0,h.z)([this._options,this._paths]).pipe((0,D.T)(([y,x])=>({...y,paths:x||y.paths})))}_watchForOptionsChanges(){this._options.pipe((0,p.Q)(this._destroyed)).subscribe(y=>{this._assertInitialized(),this.polygon.setOptions(y)})}_watchForPathChanges(){this._paths.pipe((0,p.Q)(this._destroyed)).subscribe(y=>{y&&(this._assertInitialized(),this.polygon.setPaths(y))})}_assertInitialized(){}static \u0275fac=function(x){return new(x||dt)};static \u0275dir=N.FsC({type:dt,selectors:[["map-polygon"]],inputs:{options:"options",paths:"paths"},outputs:{polygonClick:"polygonClick",polygonDblclick:"polygonDblclick",polygonDrag:"polygonDrag",polygonDragend:"polygonDragend",polygonDragstart:"polygonDragstart",polygonMousedown:"polygonMousedown",polygonMousemove:"polygonMousemove",polygonMouseout:"polygonMouseout",polygonMouseover:"polygonMouseover",polygonMouseup:"polygonMouseup",polygonRightclick:"polygonRightclick",polygonInitialized:"polygonInitialized"},exportAs:["mapPolygon"]})}return dt})(),k=(()=>{class dt{_map=(0,O.WQX)(ht);_ngZone=(0,O.WQX)(O.SKi);_eventManager=new r((0,O.WQX)(O.SKi));_options=new b.t({});_path=new b.t(void 0);_destroyed=new o.B;polyline;set options(y){this._options.next(y||{})}set path(y){this._path.next(y)}polylineClick=this._eventManager.getLazyEmitter("click");polylineDblclick=this._eventManager.getLazyEmitter("dblclick");polylineDrag=this._eventManager.getLazyEmitter("drag");polylineDragend=this._eventManager.getLazyEmitter("dragend");polylineDragstart=this._eventManager.getLazyEmitter("dragstart");polylineMousedown=this._eventManager.getLazyEmitter("mousedown");polylineMousemove=this._eventManager.getLazyEmitter("mousemove");polylineMouseout=this._eventManager.getLazyEmitter("mouseout");polylineMouseover=this._eventManager.getLazyEmitter("mouseover");polylineMouseup=this._eventManager.getLazyEmitter("mouseup");polylineRightclick=this._eventManager.getLazyEmitter("rightclick");polylineInitialized=new O.bkB;constructor(){}ngOnInit(){this._map._isBrowser&&this._combineOptions().pipe((0,v.s)(1)).subscribe(y=>{google.maps.Polyline&&this._map.googleMap?this._initialize(this._map.googleMap,google.maps.Polyline,y):this._ngZone.runOutsideAngular(()=>{Promise.all([this._map._resolveMap(),google.maps.importLibrary("maps")]).then(([x,W])=>{this._initialize(x,W.Polyline,y)})})})}_initialize(y,x,W){this._ngZone.runOutsideAngular(()=>{this.polyline=new x(W),this._assertInitialized(),this.polyline.setMap(y),this._eventManager.setTarget(this.polyline),this.polylineInitialized.emit(this.polyline),this._watchForOptionsChanges(),this._watchForPathChanges()})}ngOnDestroy(){this._eventManager.destroy(),this._destroyed.next(),this._destroyed.complete(),this.polyline?.setMap(null)}getDraggable(){return this._assertInitialized(),this.polyline.getDraggable()}getEditable(){return this._assertInitialized(),this.polyline.getEditable()}getPath(){return this._assertInitialized(),this.polyline.getPath()}getVisible(){return this._assertInitialized(),this.polyline.getVisible()}_combineOptions(){return(0,h.z)([this._options,this._path]).pipe((0,D.T)(([y,x])=>({...y,path:x||y.path})))}_watchForOptionsChanges(){this._options.pipe((0,p.Q)(this._destroyed)).subscribe(y=>{this._assertInitialized(),this.polyline.setOptions(y)})}_watchForPathChanges(){this._path.pipe((0,p.Q)(this._destroyed)).subscribe(y=>{y&&(this._assertInitialized(),this.polyline.setPath(y))})}_assertInitialized(){}static \u0275fac=function(x){return new(x||dt)};static \u0275dir=N.FsC({type:dt,selectors:[["map-polyline"]],inputs:{options:"options",path:"path"},outputs:{polylineClick:"polylineClick",polylineDblclick:"polylineDblclick",polylineDrag:"polylineDrag",polylineDragend:"polylineDragend",polylineDragstart:"polylineDragstart",polylineMousedown:"polylineMousedown",polylineMousemove:"polylineMousemove",polylineMouseout:"polylineMouseout",polylineMouseover:"polylineMouseover",polylineMouseup:"polylineMouseup",polylineRightclick:"polylineRightclick",polylineInitialized:"polylineInitialized"},exportAs:["mapPolyline"]})}return dt})(),R=(()=>{class dt{_map=(0,O.WQX)(ht);_ngZone=(0,O.WQX)(O.SKi);_eventManager=new r((0,O.WQX)(O.SKi));_options=new b.t({});_bounds=new b.t(void 0);_destroyed=new o.B;rectangle;set options(y){this._options.next(y||{})}set bounds(y){this._bounds.next(y)}boundsChanged=this._eventManager.getLazyEmitter("bounds_changed");rectangleClick=this._eventManager.getLazyEmitter("click");rectangleDblclick=this._eventManager.getLazyEmitter("dblclick");rectangleDrag=this._eventManager.getLazyEmitter("drag");rectangleDragend=this._eventManager.getLazyEmitter("dragend");rectangleDragstart=this._eventManager.getLazyEmitter("dragstart");rectangleMousedown=this._eventManager.getLazyEmitter("mousedown");rectangleMousemove=this._eventManager.getLazyEmitter("mousemove");rectangleMouseout=this._eventManager.getLazyEmitter("mouseout");rectangleMouseover=this._eventManager.getLazyEmitter("mouseover");rectangleMouseup=this._eventManager.getLazyEmitter("mouseup");rectangleRightclick=this._eventManager.getLazyEmitter("rightclick");rectangleInitialized=new O.bkB;constructor(){}ngOnInit(){this._map._isBrowser&&this._combineOptions().pipe((0,v.s)(1)).subscribe(y=>{google.maps.Rectangle&&this._map.googleMap?this._initialize(this._map.googleMap,google.maps.Rectangle,y):this._ngZone.runOutsideAngular(()=>{Promise.all([this._map._resolveMap(),google.maps.importLibrary("maps")]).then(([x,W])=>{this._initialize(x,W.Rectangle,y)})})})}_initialize(y,x,W){this._ngZone.runOutsideAngular(()=>{this.rectangle=new x(W),this._assertInitialized(),this.rectangle.setMap(y),this._eventManager.setTarget(this.rectangle),this.rectangleInitialized.emit(this.rectangle),this._watchForOptionsChanges(),this._watchForBoundsChanges()})}ngOnDestroy(){this._eventManager.destroy(),this._destroyed.next(),this._destroyed.complete(),this.rectangle?.setMap(null)}getBounds(){return this._assertInitialized(),this.rectangle.getBounds()}getDraggable(){return this._assertInitialized(),this.rectangle.getDraggable()}getEditable(){return this._assertInitialized(),this.rectangle.getEditable()}getVisible(){return this._assertInitialized(),this.rectangle.getVisible()}_combineOptions(){return(0,h.z)([this._options,this._bounds]).pipe((0,D.T)(([y,x])=>({...y,bounds:x||y.bounds})))}_watchForOptionsChanges(){this._options.pipe((0,p.Q)(this._destroyed)).subscribe(y=>{this._assertInitialized(),this.rectangle.setOptions(y)})}_watchForBoundsChanges(){this._bounds.pipe((0,p.Q)(this._destroyed)).subscribe(y=>{y&&(this._assertInitialized(),this.rectangle.setBounds(y))})}_assertInitialized(){}static \u0275fac=function(x){return new(x||dt)};static \u0275dir=N.FsC({type:dt,selectors:[["map-rectangle"]],inputs:{options:"options",boun
1ds:"bounds"},outputs:{boundsChanged:"boundsChanged",rectangleClick:"rectangleClick",rectangleDblclick:"rectangleDblclick",rectangleDrag:"rectangleDrag",rectangleDragend:"rectangleDragend",rectangleDragstart:"rectangleDragstart",rectangleMousedown:"rectangleMousedown",rectangleMousemove:"rectangleMousemove",rectangleMouseout:"rectangleMouseout",rectangleMouseover:"rectangleMouseover",rectangleMouseup:"rectangleMouseup",rectangleRightclick:"rectangleRightclick",rectangleInitialized:"rectangleInitialized"},exportAs:["mapRectangle"]})}return dt})(),U=(()=>{class dt{_map=(0,O.WQX)(ht);_ngZone=(0,O.WQX)(O.SKi);_autoRefresh=new b.t(!0);_destroyed=new o.B;trafficLayer;set autoRefresh(y){this._autoRefresh.next(y)}trafficLayerInitialized=new O.bkB;constructor(){}ngOnInit(){this._map._isBrowser&&this._combineOptions().pipe((0,v.s)(1)).subscribe(y=>{google.maps.TrafficLayer&&this._map.googleMap?this._initialize(this._map.googleMap,google.maps.TrafficLayer,y):this._ngZone.runOutsideAngular(()=>{Promise.all([this._map._resolveMap(),google.maps.importLibrary("maps")]).then(([x,W])=>{this._initialize(x,W.TrafficLayer,y)})})})}_initialize(y,x,W){this._ngZone.runOutsideAngular(()=>{this.trafficLayer=new x(W),this._assertInitialized(),this.trafficLayer.setMap(y),this.trafficLayerInitialized.emit(this.trafficLayer),this._watchForAutoRefreshChanges()})}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this.trafficLayer?.setMap(null)}_combineOptions(){return this._autoRefresh.pipe((0,D.T)(y=>({autoRefresh:y})))}_watchForAutoRefreshChanges(){this._combineOptions().pipe((0,p.Q)(this._destroyed)).subscribe(y=>{this._assertInitialized(),this.trafficLayer.setOptions(y)})}_assertInitialized(){if(!this.trafficLayer)throw Error("Cannot interact with a Google Map Traffic Layer before it has been initialized. Please wait for the Traffic Layer to load before trying to interact with it.")}static \u0275fac=function(x){return new(x||dt)};static \u0275dir=N.FsC({type:dt,selectors:[["map-traffic-layer"]],inputs:{autoRefresh:"autoRefresh"},outputs:{trafficLayerInitialized:"trafficLayerInitialized"},exportAs:["mapTrafficLayer"]})}return dt})(),st=(()=>{class dt{_map=(0,O.WQX)(ht);_zone=(0,O.WQX)(O.SKi);transitLayer;transitLayerInitialized=new O.bkB;ngOnInit(){this._map._isBrowser&&(google.maps.TransitLayer&&this._map.googleMap?this._initialize(this._map.googleMap,google.maps.TransitLayer):this._zone.runOutsideAngular(()=>{Promise.all([this._map._resolveMap(),google.maps.importLibrary("maps")]).then(([y,x])=>{this._initialize(y,x.TransitLayer)})}))}_initialize(y,x){this._zone.runOutsideAngular(()=>{this.transitLayer=new x,this.transitLayerInitialized.emit(this.transitLayer),this._assertLayerInitialized(),this.transitLayer.setMap(y)})}ngOnDestroy(){this.transitLayer?.setMap(null)}_assertLayerInitialized(){if(!this.transitLayer)throw Error("Cannot interact with a Google Map Transit Layer before it has been initialized. Please wait for the Transit Layer to load before trying to interact with it.")}static \u0275fac=function(x){return new(x||dt)};static \u0275dir=N.FsC({type:dt,selectors:[["map-transit-layer"]],outputs:{transitLayerInitialized:"transitLayerInitialized"},exportAs:["mapTransitLayer"]})}return dt})(),Dt=(()=>{class dt{_googleMap=(0,O.WQX)(ht);_ngZone=(0,O.WQX)(O.SKi);set data(y){this._data=y}_data;set options(y){this._options=y}_options;heatmap;heatmapInitialized=new O.bkB;constructor(){}ngOnInit(){this._googleMap._isBrowser&&(!window.google?.maps?.visualization&&window,google.maps.visualization?.HeatmapLayer&&this._googleMap.googleMap?this._initialize(this._googleMap.googleMap,google.maps.visualization.HeatmapLayer):this._ngZone.runOutsideAngular(()=>{Promise.all([this._googleMap._resolveMap(),google.maps.importLibrary("visualization")]).then(([y,x])=>{this._initialize(y,x.HeatmapLayer)})}))}_initialize(y,x){this._ngZone.runOutsideAngular(()=>{this.heatmap=new x(this._combineOptions()),this._assertInitialized(),this.heatmap.setMap(y),this.heatmapInitialized.emit(this.heatmap)})}ngOnChanges(y){const{_data:x,heatmap:W}=this;W&&(y.options&&W.setOptions(this._combineOptions()),y.data&&void 0!==x&&W.setData(this._normalizeData(x)))}ngOnDestroy(){this.heatmap?.setMap(null)}getData(){return this._assertInitialized(),this.heatmap.getData()}
1_combineOptions(){const y=this._options||{};return{...y,data:this._normalizeData(this._data||y.data||[]),map:this._googleMap.googleMap}}_normalizeData(y){const x=[];return y.forEach(W=>{x.push(function Jt(dt){return dt&&"number"==typeof dt.lat&&"number"==typeof dt.lng}(W)?new google.maps.LatLng(W.lat,W.lng):W)}),x}_assertInitialized(){}static \u0275fac=function(x){return new(x||dt)};static \u0275dir=N.FsC({type:dt,selectors:[["map-heatmap-layer"]],inputs:{data:"data",options:"options"},outputs:{heatmapInitialized:"heatmapInitialized"},exportAs:["mapHeatmapLayer"],features:[N.OA$]})}return dt})();const bt={position:{lat:37.221995,lng:-122.184092}};let kt=(()=>{class dt{_googleMap=(0,O.WQX)(ht);_ngZone=(0,O.WQX)(O.SKi);_eventManager=new r((0,O.WQX)(O.SKi));set title(y){this._title=y}_title;set position(y){this._position=y}_position;set content(y){this._content=y}_content=null;set gmpDraggable(y){this._draggable=y}_draggable;set options(y){this._options=y}_options;set zIndex(y){this._zIndex=y}_zIndex;mapClick=this._eventManager.getLazyEmitter("click");mapDblclick=this._eventManager.getLazyEmitter("dblclick","native");mapMouseout=this._eventManager.getLazyEmitter("mouseout","native");mapMouseover=this._eventManager.getLazyEmitter("mouseover","native");mapMouseup=this._eventManager.getLazyEmitter("mouseup","native");mapRightclick=this._eventManager.getLazyEmitter("auxclick","native");mapDrag=this._eventManager.getLazyEmitter("drag");mapDragend=this._eventManager.getLazyEmitter("dragend");mapDragstart=this._eventManager.getLazyEmitter("dragstart");markerInitialized=new O.bkB;advancedMarker;constructor(){}ngOnInit(){this._googleMap._isBrowser&&(google.maps.marker?.AdvancedMarkerElement&&this._googleMap.googleMap?this._initialize(this._googleMap.googleMap,google.maps.marker.AdvancedMarkerElement):this._ngZone.runOutsideAngular(()=>{Promise.all([this._googleMap._resolveMap(),google.maps.importLibrary("marker")]).then(([y,x])=>{this._initialize(y,x.AdvancedMarkerElement)})}))}_initialize(y,x){this._ngZone.runOutsideAngular(()=>{this.advancedMarker=new x(this._combineOptions()),this._assertInitialized(),this.advancedMarker.map=y,this._eventManager.setTarget(this.advancedMarker),this.markerInitialized.next(this.advancedMarker)})}ngOnChanges(y){const{advancedMarker:x,_content:W,_position:E,_title:tt,_draggable:V,_zIndex:Et}=this;x&&(y.title&&(x.title=tt),y.gmpDraggable&&(x.gmpDraggable=V),y.content&&(x.content=W),y.position&&(x.position=E),y.zIndex&&(x.zIndex=Et))}ngOnDestroy(){this.markerInitialized.complete(),this._eventManager.destroy(),this.advancedMarker&&(this.advancedMarker.map=null)}getAnchor(){return this._assertInitialized(),this.advancedMarker}_resolveMarker(){return this.advancedMarker?Promise.resolve(this.advancedMarker):this.markerInitialized.pipe((0,v.s)(1)).toPromise()}_combineOptions(){const y=this._options||bt;return{...y,title:this._title||y.title,position:this._position||y.position,content:this._content||y.content,zIndex:this._zIndex??y.zIndex,gmpDraggable:this._draggable??y.gmpDraggable,map:this._googleMap.googleMap}}_assertInitialized(){}static \u0275fac=function(x){return new(x||dt)};static \u0275dir=N.FsC({type:dt,selectors:[["map-advanced-marker"]],inputs:{title:"title",position:"position",content:"content",gmpDraggable:"gmpDraggable",options:"options",zIndex:"zIndex"},outputs:{mapClick:"mapClick",mapDblclick:"mapDblclick",mapMouseout:"mapMouseout",mapMouseover:"mapMouseover",mapMouseup:"mapMouseup",mapRightclick:"mapRightclick",mapDrag:"mapDrag",mapDragend:"mapDragend",mapDragstart:"mapDragstart",markerInitialized:"markerInitialized"},exportAs:["mapAdvancedMarker"],features:[N.Jv_([{provide:ot,useExisting:dt}]),N.OA$]})}return dt})(),K=(()=>{class dt{_googleMap=(0,O.WQX)(ht);_ngZone=(0,O.WQX)(O.SKi);_currentMarkers=new Set;_closestMapEventManager=new r(this._ngZone);_markersSubscription=g.yU.EMPTY;_canInitialize=this._googleMap._isBrowser;renderer;algorithm;clusteringbegin=this._closestMapEventManager.getLazyEmitter("clusteringbegin");clusteringend=this._closestMapEventManager.getLazyEmitter("clusteringend");clusterClick=new O.bkB;markerClustererInitialized=new O.bkB;_markers;markerClusterer;ngOnInit(){var y=this;return(0,S.A)(function*(){y._canInitialize&&(yield y._createCluster(),y._closestMapEventManager.setTarget(y._googleMap.googleMap))})()}ngOnChanges(y){var x=this;return(0,S.A)(function*(){const W=y.renderer||y.algorithm;x.markerClusterer&&W&&!W.isFirstChange()&&(yield x._createCluster())})()}ngOnDestroy(){this._markersSubscription.unsubscribe(),this._closestMapEventManager.destroy(),this._destroyCluster()}_createCluster(){var y=this;return(0,S.A)(function*(){markerClusterer;const x=yield y._googleMap._resolveMap();y._destroyCluster(),y._ngZone.runOutsideAngular(()=>{y.markerClusterer=new markerClusterer.MarkerClusterer({map:x,renderer:y.renderer,algorithm:y.algorithm,onClusterClick:(W,E,tt)=>{y.clusterClick.observers.length?y._ngZone.run(()=>y.clusterClick.emit(E)):markerClusterer.defaultOnClusterClickHandler(W,E,tt)}}),y.markerClustererInitialized.emit(y.markerClusterer)}),yield y._watchForMarkerChanges()})()}_watchForMarkerChanges(){var y=this;return(0,S.A)(function*(){y._assertInitialized();const x=[],W=yield y._getInternalMarkers(y._markers.toArray());for(const E of W)y._currentMarkers.add(E),x.push(E);y.markerClusterer.addMarkers(x),y._markersSubscription.unsubscribe(),y._markersSubscription=y._markers.changes.subscribe(function(){var E=(0,S.A)(function*(tt){y._assertInitialized();const V=new Set(yield y._getInternalMarkers(tt)),Et=[],nt=[];for(const Gt of Array.from(V))y._currentMarkers.has(Gt)||(y._currentMarkers.add(Gt),Et.push(Gt));for(const Gt of Array.from(y._currentMarkers))V.has(Gt)||nt.push(Gt);y.markerClusterer.addMarkers(Et,!0),y.markerClusterer.removeMarkers(nt,!0),y.markerClusterer.render();for(const Gt of nt)y._currentMarkers.delete(Gt)});return function(tt){return E.apply(this,arguments)}}())})()}_destroyCluster(){this.markerClusterer?.onRemove(),this.markerClusterer=void 0}_getInternalMarkers(y){return Promise.all(y.map(x=>x._resolveMarker()))}_assertInitialized(){}static \u0275fac=function(x){return new(x||dt)};static \u0275cmp=N.VBU({type:dt,selectors:[["map-marker-clusterer"]],contentQueries:function(x,W,E){if(1&x&&N.wni(E,ot,5),2&x){let tt;N.mGM(tt=N.lsd())&&(W._markers=tt)}},inputs:{renderer:"renderer",algorithm:"algorithm"},outputs:{clusteringbegin:"clusteringbegin",clusteringend:"clusteringend",clusterClick:"clusterClick",markerClustererInitialized:"markerClustererInitialized"},exportAs:["mapMarkerClusterer"],features:[N.OA$],ngContentSelectors:lt,decls:1,vars:0,template:function(x,W){1&x&&(N.NAR(),N.SdG(0))},encapsulation:2,changeDetection:0})}return dt})(),q=(()=>{class dt{static \u0275fac=function(x){return new(x||dt)};static \u0275mod=N.$C({type:dt});static \u0275inj=O.G2t({})}return dt})(),Tt=(()=>{class dt{_ngZone=(0,O.WQX)(O.SKi);_directionsService;constructor(){}route(y){return new u.c(x=>{this._getService().then(W=>{W.route(y,(E,tt)=>{this._ngZone.run(()=>{x.next({result:E||void 0,status:tt}),x.complete()})})})})}_getService(){if(!this._directionsService){if(!google.maps.DirectionsService)return google.maps.importLibrary("routes").then(y=>(this._directionsService=new y.DirectionsService,this._directionsService));this._directionsService=new google.maps.DirectionsService}return Promise.resolve(this._directionsService)}static \u0275fac=function(x){return new(x||dt)};static \u0275prov=O.jDH({token:dt,factory:dt.\u0275fac,providedIn:"root"})}return dt})(),_t=(()=>{class dt{_ngZone=(0,O.WQX)(O.SKi);_geocoder;constructor(){}geocode(y){return new u.c(x=>{this._getGeocoder().then(W=>{W.geocode(y,(E,tt)=>{this._ngZone.run(()=>{x.next({results:E||[],status:tt}),x.complete()})})})})}
1_getGeocoder(){if(!this._geocoder){if(!google.maps.Geocoder)return google.maps.importLibrary("geocoding").then(y=>(this._geocoder=new y.Geocoder,this._geocoder));this._geocoder=new google.maps.Geocoder}return Promise.resolve(this._geocoder)}static \u0275fac=function(x){return new(x||dt)};static \u0275prov=O.jDH({token:dt,factory:dt.\u0275fac,providedIn:"root"})}return dt})()},35235(Ht,T,d){"use strict";d.r(T),d.d(T,{BaseChartDirective:()=>Gd,NgChartsConfiguration:()=>bo,NgChartsModule:()=>Wd,ThemeService:()=>fr,baseColors:()=>_r});var S=d(60414),N=d(35547);function O(e){return e+.5|0}const u=(e,n,t)=>Math.max(Math.min(e,t),n);function o(e){return u(O(2.55*e),0,255)}function g(e){return u(O(255*e),0,255)}function h(e){return u(O(e/2.55)/100,0,1)}function D(e){return u(O(100*e),0,100)}const f={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},v=[..."0123456789ABCDEF"],p=e=>v[15&e],J=e=>v[(240&e)>>4]+v[15&e],lt=e=>(240&e)>>4==(15&e);const ht=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function F(e,n,t){const i=n*Math.min(t,1-t),a=(s,l=(s+e/30)%12)=>t-i*Math.max(Math.min(l-3,9-l,1),-1);return[a(0),a(8),a(4)]}function ct(e,n,t){const i=(a,s=(a+e/60)%6)=>t-t*n*Math.max(Math.min(s,4-s,1),0);return[i(5),i(3),i(1)]}function at(e,n,t){const i=F(e,1,.5);let a;for(n+t>1&&(a=1/(n+t),n*=a,t*=a),a=0;a<3;a++)i[a]*=1-n-t,i[a]+=n;return i}function X(e){const t=e.r/255,i=e.g/255,a=e.b/255,s=Math.max(t,i,a),l=Math.min(t,i,a),c=(s+l)/2;let m,_,M;return s!==l&&(M=s-l,_=c>.5?M/(2-s-l):M/(s+l),m=function rt(e,n,t,i,a){return e===a?(n-t)/i+(n<t?6:0):n===a?(t-e)/i+2:(e-n)/i+4}(t,i,a,M,s),m=60*m+.5),[0|m,_||0,c]}function gt(e,n,t,i){return(Array.isArray(n)?e(n[0],n[1],n[2]):e(n,t,i)).map(g)}function mt(e,n,t){return gt(F,e,n,t)}function ot(e){return(e%360+360)%360}const j={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},G={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};let R;const st=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/,bt=e=>
vendor: 7,500 bytes, line 1
1e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055,kt=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function xt(e,n,t){if(e){let i=X(e);i[n]=Math.max(0,Math.min(i[n]+i[n]*t,0===n?360:1)),i=mt(i),e.r=i[0],e.g=i[1],e.b=i[2]}}function q(e,n){return e&&Object.assign(n||{},e)}function Tt(e){var n={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(n={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(n.a=g(e[3]))):(n=q(e,{r:0,g:0,b:0,a:1})).a=g(n.a),n}function _t(e){return"r"===e.charAt(0)?function Dt(e){const n=st.exec(e);let i,a,s,t=255;if(n){if(n[7]!==i){const l=+n[7];t=n[8]?o(l):u(255*l,0,255)}return i=+n[1],a=+n[3],s=+n[5],i=255&(n[2]?o(i):u(i,0,255)),a=255&(n[4]?o(a):u(a,0,255)),s=255&(n[6]?o(s):u(s,0,255)),{r:i,g:a,b:s,a:t}}}(e):function B(e){const n=ht.exec(e);let i,t=255;if(!n)return;n[5]!==i&&(t=n[6]?o(+n[5]):g(+n[5]));const a=ot(+n[2]),s=+n[3]/100,l=+n[4]/100;return i="hwb"===n[1]?function St(e,n,t){return gt(at,e,n,t)}(a,s,l):"hsv"===n[1]?function ft(e,n,t){return gt(ct,e,n,t)}(a,s,l):mt(a,s,l),{r:i[0],g:i[1],b:i[2],a:t}}(e)}class dt{constructor(n){if(n instanceof dt)return n;const t=typeof n;let i;"object"===t?i=Tt(n):"string"===t&&(i=function I(e){var t,n=e.length;return"#"===e[0]&&(4===n||5===n?t={r:255&17*f[e[1]],g:255&17*f[e[2]],b:255&17*f[e[3]],a:5===n?17*f[e[4]]:255}:(7===n||9===n)&&(t={r:f[e[1]]<<4|f[e[2]],g:f[e[3]]<<4|f[e[4]],b:f[e[5]]<<4|f[e[6]],a:9===n?f[e[7]]<<4|f[e[8]]:255})),t}(n)||function U(e){R||(R=function k(){const e={},n=Object.keys(G),t=Object.keys(j);let i,a,s,l,c;for(i=0;i<n.length;i++){for(l=c=n[i],a=0;a<t.length;a++)s=t[a],c=c.replace(s,j[s]);s=parseInt(G[l],16),e[c]=[s>>16&255,s>>8&255,255&s]}return e}(),R.transparent=[0,0,0,0]);const n=R[e.toLowerCase()];return n&&{r:n[0],g:n[1],b:n[2],a:4===n.length?n[3]:255}}(n)||_t(n)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var n=q(this._rgb);return n&&(n.a=h(n.a)),n}set rgb(n){this._rgb=Tt(n)}rgbString(){return this._valid?function Jt(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${h(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}(this._rgb):void 0}hexString(){return this._valid?function C(e){var n=(e=>lt(e.r)&<(e.g)&<(e.b)&<(e.a))(e)?p:J;return e?"#"+n(e.r)+n(e.g)+n(e.b)+((e,n)=>e<255?n(e):"")(e.a,n):void 0}(this._rgb):void 0}hslString(){return this._valid?function $(e){if(!e)return;const n=X(e),t=n[0],i=D(n[1]),a=D(n[2]);return e.a<255?`hsla(${t}, ${i}%, ${a}%, ${h(e.a)})`:`hsl(${t}, ${i}%, ${a}%)`}(this._rgb):void 0}mix(n,t){if(n){const i=this.rgb,a=n.rgb;let s;const l=t===s?.5:t,c=2*l-1,m=i.a-a.a,_=((c*m===-1?c:(c+m)/(1+c*m))+1)/2;s=1-_,i.r=255&_*i.r+s*a.r+.5,i.g=255&_*i.g+s*a.g+.5,i.b=255&_*i.b+s*a.b+.5,i.a=l*i.a+(1-l)*a.a,this.rgb=i}return this}interpolate(n,t){return n&&(this._rgb=function K(e,n,t){const i=kt(h(e.r)),a=kt(h(e.g)),s=kt(h(e.b));return{r:g(bt(i+t*(kt(h(n.r))-i))),g:g(bt(a+t*(kt(h(n.g))-a))),b:g(bt(s+t*(kt(h(n.b))-s))),a:e.a+t*(n.a-e.a)}}(this._rgb,n._rgb,t)),this}clone(){return new dt(this.rgb)}alpha(n){return this._rgb.a=g(n),this}clearer(n){return this._rgb.a*=1-n,this}greyscale(){const n=this._rgb,t=O(.3*n.r+.59*n.g+.11*n.b);return n.r=n.g=n.b=t,this}opaquer(n){return this._rgb.a*=1+n,this}negate(){const n=this._rgb;return n.r=255-n.r,n.g=255-n.g,n.b=255-n.b,this}lighten(n){return xt(this._rgb,2,n),this}darken(n){return xt(this._rgb,2,-n),this}saturate(n){return xt(this._rgb,1,n),this}desaturate(n){return xt(this._rgb,1,-n),this}rotate(n){return function Ot(e,n){var t=X(e);t[0]=ot(t[0]+n),t=mt(t),e.r=t[0],e.g=t[1],e.b=t[2]}(this._rgb,n),this}}function y(){}const x=(()=>{let e=0;return()=>e++})();function W(e){return null==e}function E(e){if(Array.isArray&&Array.isArray(e))return!0;const n=Object.prototype.toString.call(e);return"[object"===n.slice(0,7)&&"Array]"===n.slice(-6)}function tt(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)}function V(e){return("number"==typeof e||e instanceof Number)&&isFinite(+e)}function Et(e,n){return V(e)?e:n}function nt(e,n){return typeof e>"u"?n:e}const Ct=(e,n)=>"string"==typeof e&&e.endsWith("%")?parseFloat(e)/100*n:+e;function Ut(e,n,t){if(e&&"function"==typeof e.call)return e.apply(t,n)}function it(e,n,t,i){let a,s,l;if(E(e))if(s=e.length,i)for(a=s-1;a>=0;a--)n.call(t,e[a],a);else for(a=0;a<s;a++)n.call(t,e[a],a);else if(tt(e))for(l=Object.keys(e),s=l.length,a=0;a<s;a++)n.call(t,e[l[a]],l[a])}function Ft(e,n){let t,i,a,s;if(!e||!n||e.length!==n.length)return!1;for(t=0,i=e.length;t<i;++t)if(a=e[t],s=n[t],a.datasetIndex!==s.datasetIndex||a.index!==s.index)return!1;return!0}function jt(e){if(E(e))return e.map(jt);if(tt(e)){const n=Object.create(null),t=Object.keys(e),i=t.length;let a=0;for(;a<i;++a)n[t[a]]=jt(e[t[a]]);return n}return e}function ut(e){return-1===["__proto__","prototype","constructor"].indexOf(e)}function Qt(e,n,t,i){if(!ut(e))return;const a=n[e],s=t[e];tt(a)&&tt(s)?wt(a,s,i):n[e]=jt(s)}function wt(e,n,t){const i=E(n)?n:[n],a=i.length;if(!tt(e))return e;const s=(t=t||{}).merger||Qt;let l;for(let c=0;c<a;++c){if(l=i[c],!tt(l))continue;const m=Object.keys(l);for(let _=0,M=m.length;_<M;++_)s(m[_],e,l,t)}return e}function he(e,n){return wt(e,n,{merger:Xt})}function Xt(e,n,t){if(!ut(e))return;const i=n[e],a=t[e];tt(i)&&tt(a)?he(i,a):Object.prototype.hasOwnProperty.call(n,e)||(n[e]=jt(a))}const _n={"":e=>e,x:e=>e.x,y:e=>e.y};function Ie(e,n){return(_n[n]||(_n[n]=function En(e){const n=function wn(e){const n=e.split("."),t=[];let i="";for(const a of n)i+=a,i.endsWith("\\")?i=i.slice(0,-1)+".":(t.push(i),i="");return t}(e);return t=>{for(const i of n){if(""===i)break;t=t&&t[i]}return t}}(n)))(e)}function en(e){return e.charAt(0).toUpperCase()+e.slice(1)}const je=e=>typeof e<"u",Ae=e=>"function"==typeof e,Cn=(e,n)=>{if(e.size!==n.size)return!1;for(const t of e)if(!n.has(t))return!1;return!0},ie=Math.PI,de=2*ie,Dn=de+ie,Je=Number.POSITIVE_INFINITY,In=ie/180,ge=ie/2,Re=ie/4,At=2*ie/3,te=Math.log10,Z=Math.sign;function $t(e,n,t){return Math.abs(e-n)<t}function zt(e){const n=Math.round(e);e=$t(e,n,e/1e3)?n:e;const t=Math.pow(10,Math.floor(te(e))),i=e/t;return(i<=1?1:i<=2?2:i<=5?5:10)*t}function Oe(e){return!function Se(e){return"symbol"==typeof e||"object"==typeof e&&null!==e&&!(Symbol.toPrimitive in e||"toString"in e||"valueOf"in e)}(e)&&!isNaN(parseFloat(e))&&isFinite(e)}function vn(e,n,t){let i,a,s;for(i=0,a=e.length;i<a;i++)s=e[i][t],isNaN(s)||(n.min=Math.min(n.min,s),n.max=Math.max(n.max,s))}function we(e){return e*(ie/180)}function nn(e){return e*(180/ie)}function qn(e){if(!V(e))return;let n=1,t=0;for(;Math.round(e*n)/n!==e;)n*=10,t++;return t}function ti(e,n){const t=n.x-e.x,i=n.y-e.y,a=Math.sqrt(t*t+i*i);let s=Math.atan2(i,t);return s<-.5*ie&&(s+=de),{angle:s,distance:a}}function An(e,n){return Math.sqrt(Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2))}function Ri(e,n){return(e-n+Dn)%de-ie}function ve(e){return(e%de+de)%de}function on(e,n,t,i){const a=ve(e),s=ve(n),l=ve(t),c=ve(s-a),m=ve(l-a),_=ve(a-s),M=ve(a-l);return a===s||a===l||i&&s===l||c>m&&_<M}function _e(e,n,t){return Math.max(n,Math.min(t,e))}function ke(e,n,t,i=1e-6){return e>=Math.min(n,t)-i&&e<=Math.max(n,t)+i}function Rn(e,n,t){t=t||(l=>e[l]<n);let s,i=e.length-1,a=0;for(;i-a>1;)s=a+i>>1,t(s)?a=s:i=s;return{lo:a,hi:i}}const Fe=(e,n,t,i)=>Rn(e,t,i?a=>{const s=e[a][n];return s<t||s===t&&e[a+1][n]===t}:a=>e[a][n]<t),Fi=(e,n,t)=>Rn(e,t,i=>e[i][n]>=t),ei=["push","pop","shift","splice","unshift"];function ni(e,n){const t=e._chartjs;if(!t)return;const i=t.listeners,a=i.indexOf(n);-1!==a&&i.splice(a,1),!(i.length>
10)&&(ei.forEach(s=>{delete e[s]}),delete e._chartjs)}function ii(e){const n=new Set(e);return n.size===e.length?e:Array.from(n)}const oi=typeof window>"u"?function(e){return e()}:window.requestAnimationFrame;function ai(e,n){let t=[],i=!1;return function(...a){t=a,i||(i=!0,oi.call(window,()=>{i=!1,e.apply(n,t)}))}}const kn=e=>"start"===e?"left":"end"===e?"right":"center",be=(e,n,t)=>"start"===e?n:"end"===e?t:(n+t)/2;function ri(e,n,t){const i=n.length;let a=0,s=i;if(e._sorted){const{iScale:l,vScale:c,_parsed:m}=e,_=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null,M=l.axis,{min:w,max:A,minDefined:L,maxDefined:Q}=l.getUserBounds();if(L){if(a=Math.min(Fe(m,M,w).lo,t?i:Fe(n,M,l.getPixelForValue(w)).lo),_){const Y=m.slice(0,a+1).reverse().findIndex(et=>!W(et[c.axis]));a-=Math.max(0,Y)}a=_e(a,0,i-1)}if(Q){let Y=Math.max(Fe(m,l.axis,A,!0).hi+1,t?0:Fe(n,M,l.getPixelForValue(A),!0).hi+1);if(_){const et=m.slice(Y-1).findIndex(yt=>!W(yt[c.axis]));Y+=Math.max(0,et)}s=_e(Y,a,i)-a}else s=i-a}return{start:a,count:s}}function si(e){const{xScale:n,yScale:t,_scaleRanges:i}=e,a={xmin:n.min,xmax:n.max,ymin:t.min,ymax:t.max};if(!i)return e._scaleRanges=a,!0;const s=i.xmin!==n.min||i.xmax!==n.max||i.ymin!==t.min||i.ymax!==t.max;return Object.assign(i,a),s}const bn=e=>0===e||1===e,li=(e,n,t)=>-Math.pow(2,10*(e-=1))*Math.sin((e-n)*de/t),ci=(e,n,t)=>Math.pow(2,-10*e)*Math.sin((e-n)*de/t)+1,an={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>1-Math.cos(e*ge),easeOutSine:e=>Math.sin(e*ge),easeInOutSine:e=>-.5*(Math.cos(ie*e)-1),easeInExpo:e=>0===e?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>bn(e)?e:e<.5?.5*Math.pow(2,10*(2*e-1)):.5*(2-Math.pow(2,-10*(2*e-1))),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>bn(e)?e:li(e,.075,.3),easeOutElastic:e=>bn(e)?e:ci(e,.075,.3),easeInOutElastic:e=>bn(e)?e:e<.5?.5*li(2*e,.1125,.45):.5+.5*ci(2*e-1,.1125,.45),easeInBack:e=>e*e*(2.70158*e-1.70158),easeOutBack:e=>(e-=1)*e*(2.70158*e+1.70158)+1,easeInOutBack(e){let n=1.70158;return(e/=.5)<1?e*e*((1+(n*=1.525))*e-n)*.5:.5*((e-=2)*e*((1+(n*=1.525))*e+n)+2)},easeInBounce:e=>1-an.easeOutBounce(1-e),easeOutBounce:e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,easeInOutBounce:e=>e<.5?.5*an.easeInBounce(2*e):.5*an.easeOutBounce(2*e-1)+.5};function Fn(e){if(e&&"object"==typeof e){const n=e.toString();return"[object CanvasPattern]"===n||"[object CanvasGradient]"===n}return!1}function di(e){return Fn(e)?e:new dt(e)}function Nn(e){return Fn(e)?e:new dt(e).saturate(.5).darken(.1).hexString()}const zi=["x","y","borderWidth","radius","tension"],ji=["color","borderColor","backgroundColor"],Hi=new Map;function Ne(e,n,t){return function Mo(e,n){n=n||{};const t=e+JSON.stringify(n);let i=Hi.get(t);return i||(i=new Intl.NumberFormat(e,n),Hi.set(t,i)),i}(n,t).format(e)}const Ge={values:e=>E(e)?e:""+e,numeric(e,n,t){if(0===e)return"0";const i=this.chart.options.locale;let a,s=e;if(t.length>1){const _=Math.max(Math.abs(t[0].value),Math.abs(t[t.length-1].value));(_<1e-4||_>1e15)&&(a="scientific"),s=function yo(e,n){let t=n.length>3?n[2].value-n[1].value:n[1].value-n[0].value;return Math.abs(t)>=1&&e!==Math.floor(e)&&(t=e-Math.floor(e)),t}(e,t)}const l=te(Math.abs(s)),c=isNaN(l)?1:Math.max(Math.min(-1*Math.floor(l),20),0),m={notation:a,minimumFractionDigits:c,maximumFractionDigits:c};return Object.assign(m,this.options.ticks.format),Ne(e,i,m)},logarithmic(e,n,t){if(0===e)return"0";const i=t[n].significand||e/Math.pow(10,Math.floor(te(e)));return[1,2,3,5,10,15].includes(i)||n>.8*t.length?Ge.numeric.call(this,e,n,t):""}};var Ye={formatters:Ge};const oe=Object.create(null),se=Object.create(null);function Ue(e,n){if(!n)return e;const t=n.split(".");for(let i=0,a=t.length;i<a;++i){const s=t[i];e=e[s]||(e[s]=Object.create(null))}return e}function rn(e,n,t){return"string"==typeof n?wt(Ue(e,n),t):wt(Ue(e,""),n)}class Ln{constructor(n,t){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=i=>i.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={}
vendor: 4,291 bytes, line 1
1,this.hoverBackgroundColor=(i,a)=>Nn(a.backgroundColor),this.hoverBorderColor=(i,a)=>Nn(a.borderColor),this.hoverColor=(i,a)=>Nn(a.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(n),this.apply(t)}set(n,t){return rn(this,n,t)}get(n){return Ue(this,n)}describe(n,t){return rn(se,n,t)}override(n,t){return rn(oe,n,t)}route(n,t,i,a){const s=Ue(this,n),l=Ue(this,i),c="_"+t;Object.defineProperties(s,{[c]:{value:s[t],writable:!0},[t]:{enumerable:!0,get(){const m=this[c],_=l[a];return tt(m)?Object.assign({},_,m):nt(m,_)},set(m){this[c]=m}}})}apply(n){n.forEach(t=>t(this))}}var pe=new Ln({_scriptable:e=>!e.startsWith("on"),_indexable:e=>"events"!==e,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[function Gi(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:n=>"onProgress"!==n&&"onComplete"!==n&&"fn"!==n}),e.set("animations",{colors:{type:"color",properties:ji},numbers:{type:"number",properties:zi}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:n=>0|n}}}})},function Ui(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})},function mi(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(n,t)=>t.lineWidth,tickColor:(n,t)=>t.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Ye.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:n=>!n.startsWith("before")&&!n.startsWith("after")&&"callback"!==n&&"parser"!==n,_indexable:n=>"borderDash"!==n&&"tickBorderDash"!==n&&"dash"!==n}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:n=>"backdropPadding"!==n&&"callback"!==n,_indexable:n=>"backdropPadding"!==n})}]);function Rt(e,n,t,i,a){let s=n[a];return s||(s=n[a]=e.measureText(a).width,t.push(a)),s>i&&(i=s),i}function P(e,n,t,i){let a=(i=i||{}).data=i.data||{},s=i.garbageCollect=i.garbageCollect||[];i.font!==n&&(a=i.data={},s=i.garbageCollect=[],i.font=n),e.save(),e.font=n;let l=0;const c=t.length;let m,_,M,w,A;for(m=0;m<c;m++)if(w=t[m],null==w||E(w)){if(E(w))for(_=0,M=w.length;_<M;_++)A=w[_],null!=A&&!E(A)&&(l=Rt(e,a,s,l,A))}else l=Rt(e,a,s,l,w);e.restore();const L=s.length/2;if(L>t.length){for(m=0;m<L;m++)delete a[s[m]];s.splice(0,L)}return l}function z(e,n,t){const i=e.currentDevicePixelRatio,a=0!==t?Math.max(t/2,.5):0;return Math.round((n-a)*i)/i+a}function pt(e,n){!n&&!e||((n=n||e.getContext("2d")).save(),n.resetTransform(),n.clearRect(0,0,e.width,e.height),n.restore())}function Vt(e,n,t,i){Yt(e,n,t,i,null)}function Yt(e,n,t,i,a){let s,l,c,m,_,M,w,A;const L=n.pointStyle,Q=n.rotation,Y=n.radius;let et=(Q||0)*In;if(L&&"object"==typeof L&&(s=L.toString(),"[object HTMLImageElement]"===s||"[object HTMLCanvasElement]"===s))return e.save(),e.translate(t,i),e.rotate(et),e.drawImage(L,-L.width/2,-L.height/2,L.width,L.height),void e.restore();if(!(isNaN(Y)||Y<=0)){switch(e.beginPath(),L){default:a?e.ellipse(t,i,a/2,Y,0,0,de):e.arc(t,i,Y,0,de),e.closePath();break;case"triangle":M=a?a/2:Y,e.moveTo(t+Math.sin(et)*M,i-Math.cos(et)*Y),et+=At,e.lineTo(t+M
vendor: 6,424 bytes, line 1
1ath.sin(et)*M,i-Math.cos(et)*Y),et+=At,e.lineTo(t+Math.sin(et)*M,i-Math.cos(et)*Y),e.closePath();break;case"rectRounded":_=.516*Y,m=Y-_,l=Math.cos(et+Re)*m,w=Math.cos(et+Re)*(a?a/2-_:m),c=Math.sin(et+Re)*m,A=Math.sin(et+Re)*(a?a/2-_:m),e.arc(t-w,i-c,_,et-ie,et-ge),e.arc(t+A,i-l,_,et-ge,et),e.arc(t+w,i+c,_,et,et+ge),e.arc(t-A,i+l,_,et+ge,et+ie),e.closePath();break;case"rect":if(!Q){m=Math.SQRT1_2*Y,M=a?a/2:m,e.rect(t-M,i-m,2*M,2*m);break}et+=Re;case"rectRot":w=Math.cos(et)*(a?a/2:Y),l=Math.cos(et)*Y,c=Math.sin(et)*Y,A=Math.sin(et)*(a?a/2:Y),e.moveTo(t-w,i-c),e.lineTo(t+A,i-l),e.lineTo(t+w,i+c),e.lineTo(t-A,i+l),e.closePath();break;case"crossRot":et+=Re;case"cross":w=Math.cos(et)*(a?a/2:Y),l=Math.cos(et)*Y,c=Math.sin(et)*Y,A=Math.sin(et)*(a?a/2:Y),e.moveTo(t-w,i-c),e.lineTo(t+w,i+c),e.moveTo(t+A,i-l),e.lineTo(t-A,i+l);break;case"star":w=Math.cos(et)*(a?a/2:Y),l=Math.cos(et)*Y,c=Math.sin(et)*Y,A=Math.sin(et)*(a?a/2:Y),e.moveTo(t-w,i-c),e.lineTo(t+w,i+c),e.moveTo(t+A,i-l),e.lineTo(t-A,i+l),et+=Re,w=Math.cos(et)*(a?a/2:Y),l=Math.cos(et)*Y,c=Math.sin(et)*Y,A=Math.sin(et)*(a?a/2:Y),e.moveTo(t-w,i-c),e.lineTo(t+w,i+c),e.moveTo(t+A,i-l),e.lineTo(t-A,i+l);break;case"line":l=a?a/2:Math.cos(et)*Y,c=Math.sin(et)*Y,e.moveTo(t-l,i-c),e.lineTo(t+l,i+c);break;case"dash":e.moveTo(t,i),e.lineTo(t+Math.cos(et)*(a?a/2:Y),i+Math.sin(et)*Y);break;case!1:e.closePath()}e.fill(),n.borderWidth>0&&e.stroke()}}function le(e,n,t){return t=t||.5,!n||e&&e.x>n.left-t&&e.x<n.right+t&&e.y>n.top-t&&e.y<n.bottom+t}function ce(e,n){e.save(),e.beginPath(),e.rect(n.left,n.top,n.right-n.left,n.bottom-n.top),e.clip()}function re(e){e.restore()}function Cr(e,n,t,i,a){if(!n)return e.lineTo(t.x,t.y);if("middle"===a){const s=(n.x+t.x)/2;e.lineTo(s,n.y),e.lineTo(s,t.y)}else"after"===a!=!!i?e.lineTo(n.x,t.y):e.lineTo(t.x,n.y);e.lineTo(t.x,t.y)}function vr(e,n,t,i){if(!n)return e.lineTo(t.x,t.y);e.bezierCurveTo(i?n.cp1x:n.cp2x,i?n.cp1y:n.cp2y,i?t.cp2x:t.cp1x,i?t.cp2y:t.cp1y,t.x,t.y)}function xr(e,n,t,i,a){if(a.strikethrough||a.underline){const s=e.measureText(i),l=n-s.actualBoundingBoxLeft,c=n+s.actualBoundingBoxRight,_=t+s.actualBoundingBoxDescent,M=a.strikethrough?(t-s.actualBoundingBoxAscent+_)/2:_;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=a.decorationWidth||2,e.moveTo(l,M),e.lineTo(c,M),e.stroke()}}function Mr(e,n){const t=e.fillStyle;e.fillStyle=n.color,e.fillRect(n.left,n.top,n.width,n.height),e.fillStyle=t}function sn(e,n,t,i,a,s={}){const l=E(n)?n:[n],c=s.strokeWidth>0&&""!==s.strokeColor;let m,_;for(e.save(),e.font=a.string,function br(e,n){n.translation&&e.translate(n.translation[0],n.translation[1]),W(n.rotation)||e.rotate(n.rotation),n.color&&(e.fillStyle=n.color),n.textAlign&&(e.textAlign=n.textAlign),n.textBaseline&&(e.textBaseline=n.textBaseline)}(e,s),m=0;m<l.length;++m)_=l[m],s.backdrop&&Mr(e,s.backdrop),c&&(s.strokeColor&&(e.strokeStyle=s.strokeColor),W(s.strokeWidth)||(e.lineWidth=s.strokeWidth),e.strokeText(_,t,i,s.maxWidth)),e.fillText(_,t,i,s.maxWidth),xr(e,t,i,_,s),i+=Number(a.lineHeight);e.restore()}function Vn(e,n){const{x:t,y:i,w:a,h:s,radius:l}=n;e.arc(t+l.topLeft,i+l.topLeft,l.topLeft,1.5*ie,ie,!0),e.lineTo(t,i+s-l.bottomLeft),e.arc(t+l.bottomLeft,i+s-l.bottomLeft,l.bottomLeft,ie,ge,!0),e.lineTo(t+a-l.bottomRight,i+s),e.arc(t+a-l.bottomRight,i+s-l.bottomRight,l.bottomRight,ge,0,!0),e.lineTo(t+a,i+l.topRight),e.arc(t+a-l.topRight,i+l.topRight,l.topRight,0,-ge,!0),e.lineTo(t+l.topLeft,i)}const yr=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,Pr=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function Sr(e,n){const t=(""+e).match(yr);if(!t||"normal"===t[1])return 1.2*n;switch(e=+t[2],t[3]){case"px":return e;case"%":e/=100}return n*e}const Or=e=>+e||0;function Wi(e,n){const t={},i=tt(n),a=i?Object.keys(n):n,s=tt(e)?i?l=>nt(e[l],e[n[l]]):l=>e[l]:()=>e;for(const l of a)t[l]=Or(s(l));return t}function Po(e){return Wi(e,{top:"y",right:"x",bottom:"y",left:"x"})}function ln(e){return Wi(e,["topLeft","topRight","bottomLeft","bottomRight"])}function Me(e){const n=Po(e);return n.width=n.left+n.right,n.height=n.top+n.bottom,n}function Ce(e,n){let t=nt((e=e||{}).size,(n=n||pe.font).size);"string"==typeof t&&(t=parseInt(t,10));let i=nt(e.style,n.style);i&&!(""+i).match(Pr)&&(console.warn('Invalid font style specified: "'+i+'"'),i=void 0);const a={family:nt(e.family,n.family),lineHeight:Sr(nt(e.lineHeight,n.lineHeight),t),size:t,style:i,weight:nt(e.weight,n.weight),string:""};return a.string=function H(e){return!e||W(e.size)||W(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}(a),a}function Bn(e,n,t,i){let s,l,c,a=!0;for(s=0,l=e.length;s<l;++s)if(c=e[s],void 0!==c&&(void 0!==n&&"function"==typeof c&&(c=c(n),a=!1),void 0!==t&&E(c)&&(c=c[t%c.length],a=!1),void 0!==c))return i&&!a&&(i.cacheable=!1),c}function Qe(e,n){return Object.assign(Object.create(e),n)}function $i(e,n=[""],t,i,a=()=>e[0]){const s=t||e;typeof i>"u"&&(i=To("_fallback",e));const l={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:s,_fallback:i,_getTarget:a,override:c=>$i([c,...e],n,s,i)};return new Proxy(l,{deleteProperty:(c,m)=>(delete c[m],delete c._keys,delete e[0][m],!0),get:(c,m)=>Oo(c,m,()=>function Fr(e,n,t,i){let a;for(const s of n)if(a=To(Er(s,e),t),typeof a<"u")return Ji(e,a)?Yi(t,i,e,a):a}(m,n,e,c)),getOwnPropertyDescriptor:(c,m)=>Reflect.getOwnPropertyDescriptor(c._scopes[0],m),getPrototypeOf:()=>Reflect.getPrototypeOf(e[0]),has:(c,m)=>Do(c).includes(m),ownKeys:c=>Do(c),set(c,m,_){const M=c._storage||(c._storage=a());return c[m]=M[m]=_,delete c._keys,!0}})}function xn(e,n,t,i){const a={_cacheable:!1,_proxy:e,_context:n,_subProxy:t,_stack:new Set,_descriptors:So(e,i),setContext:s=>xn(e,s,t,i),override:s=>xn(e.override(s),n,t,i)};return new Proxy(a,{deleteProperty:(s,l)=>(delete s[l],delete e[l],!0),get:(s,l,c)=>Oo(s,l,()=>function Tr(e,n,t){const{_proxy:i,_context:a,_subProxy:s,_descriptors:l}=e;let c=i[n];return Ae(c)&&l.isScriptable(n)&&(c=function Dr(e,n,t,i){const{_proxy:a,_context:s,_subProxy:l,_stack:c}=t;if(c.has(e))throw new Error("Recursion detected: "+Array.from(c).join("->")+"->"+e);c.add(e);let m=n(s,l||i);return c.delete(e),Ji(e,m)&&(m=Yi(a._scopes,a,e,m)),m}(n,c,e,t)),E(c)&&c.length&&(c=function Ir(e,n,t,i){const{_proxy:a,_context:s,_subProxy:l,_descriptors:c}=t;if(typeof s.index<"u"&&i(e))return n[s.index%n.length];if(tt(n[0])){const m=n,_=a._scopes.filter(M=>M!==m);
1n=[];for(const M of m){const w=Yi(_,a,e,M);n.push(xn(w,s,l&&l[e],c))}}return n}(n,c,e,l.isIndexable)),Ji(n,c)&&(c=xn(c,a,s&&s[n],l)),c}(s,l,c)),getOwnPropertyDescriptor:(s,l)=>s._descriptors.allKeys?Reflect.has(e,l)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,l),getPrototypeOf:()=>Reflect.getPrototypeOf(e),has:(s,l)=>Reflect.has(e,l),ownKeys:()=>Reflect.ownKeys(e),set:(s,l,c)=>(e[l]=c,delete s[l],!0)})}function So(e,n={scriptable:!0,indexable:!0}){const{_scriptable:t=n.scriptable,_indexable:i=n.indexable,_allKeys:a=n.allKeys}=e;return{allKeys:a,scriptable:t,indexable:i,isScriptable:Ae(t)?t:()=>t,isIndexable:Ae(i)?i:()=>i}}const Er=(e,n)=>e?e+en(n):n,Ji=(e,n)=>tt(n)&&"adapters"!==e&&(null===Object.getPrototypeOf(n)||n.constructor===Object);function Oo(e,n,t){if(Object.prototype.hasOwnProperty.call(e,n)||"constructor"===n)return e[n];const i=t();return e[n]=i,i}function wo(e,n,t){return Ae(e)?e(n,t):e}const Ar=(e,n)=>!0===e?n:"string"==typeof e?Ie(n,e):void 0;function Rr(e,n,t,i,a){for(const s of n){const l=Ar(t,s);if(l){e.add(l);const c=wo(l._fallback,t,a);if(typeof c<"u"&&c!==t&&c!==i)return c}else if(!1===l&&typeof i<"u"&&t!==i)return null}return!1}function Yi(e,n,t,i){const a=n._rootScopes,s=wo(n._fallback,t,i),l=[...e,...a],c=new Set;c.add(i);let m=Eo(c,l,t,s||t,i);return!(null===m||typeof s<"u"&&s!==t&&(m=Eo(c,l,s,m,i),null===m))&&$i(Array.from(c),[""],a,s,()=>function kr(e,n,t){const i=e._getTarget();n in i||(i[n]={});const a=i[n];return E(a)&&tt(t)?t:a||{}}(n,t,i))}function Eo(e,n,t,i,a){for(;t;)t=Rr(e,n,t,i,a);return t}function To(e,n){for(const t of n){if(!t)continue;const i=t[e];if(typeof i<"u")return i}}function Do(e){let n=e._keys;return n||(n=e._keys=function Nr(e){const n=new Set;for(const t of e)for(const i of Object.keys(t).filter(a=>!a.startsWith("_")))n.add(i);return Array.from(n)}(e._scopes)),n}function Io(e,n,t,i){const{iScale:a}=e,{key:s="r"}=this._parsing,l=new Array(i);let c,m,_,M;for(c=0,m=i;c<m;++c)_=c+t,M=n[_],l[c]={r:a.parse(Ie(M,s),_)};return l}const Lr=Number.EPSILON||1e-14,Mn=(e,n)=>n<e.length&&!e[n].skip&&e[n],Ao=e=>"x"===e?"y":"x";function Vr(e,n,t,i){const a=e.skip?n:e,s=n,l=t.skip?n:t,c=An(s,a),m=An(l,s);let _=c/(c+m),M=m/(c+m);_=isNaN(_)?0:_,M=isNaN(M)?0:M;const w=i*_,A=i*M;return{previous:{x:s.x-w*(l.x-a.x),y:s.y-w*(l.y-a.y)},next:{x:s.x+A*(l.x-a.x),y:s.y+A*(l.y-a.y)}}}function pi(e,n,t){return Math.max(Math.min(e,t),n)}function Ur(e,n,t,i,a){let s,l,c,m;if(n.spanGaps&&(e=e.filter(_=>!_.skip)),"monotone"===n.cubicInterpolationMode)!function jr(e,n="x"){const t=Ao(n),i=e.length,a=Array(i).fill(0),s=Array(i);let l,c,m,_=Mn(e,0);for(l=0;l<i;++l)if(c=m,m=_,_=Mn(e,l+1),m){if(_){const M=_[n]-m[n];a[l]=0!==M?(_[t]-m[t])/M:0}s[l]=c?_?Z(a[l-1])!==Z(a[l])?0:(a[l-1]+a[l])/2:a[l-1]:a[l]}(function Br(e,n,t){const i=e.length;let a,s,l,c,m,_=Mn(e,0);for(let M=0;M<i-1;++M)if(m=_,_=Mn(e,M+1),m&&_){if($t(n[M],0,Lr)){t[M]=t[M+1]=0;continue}a=t[M]/n[M],s=t[M+1]/n[M],c=Math.pow(a,2)+Math.pow(s,2),!(c<=9)&&(l=3/Math.sqrt(c),t[M]=a*l*n[M],t[M+1]=s*l*n[M])}})(e,a,s),function zr(e,n,t="x"){const i=Ao(t),a=e.length;let s,l,c,m=Mn(e,0);for(let _=0;_<a;++_){if(l=c,c=m,m=Mn(e,_+1),!c)continue;const M=c[t],w=c[i];l&&(s=(M-l[t])/3,c[`cp1${t}`]=M-s,c[`cp1${i}`]=w-s*n[_]),m&&(s=(m[t]-M)/3,c[`cp2${t}`]=M+s,c[`cp2${i}`]=w+s*n[_])}}(e,s,n)}(e,a);else{let _=i?e[e.length-1]:e[0];for(s=0,l=e.length;s<l;++s)c=e[s],m=Vr(_,c,e[Math.min(s+1,l-(i?0:1))%l],n.tension),c.cp1x=m.previous.x,c.cp1y=m.previous.y,c.cp2x=m.next.x,c.cp2y=m.next.y,_=c}n.capBezierPoints&&function Gr(e,n){let t,i,a,s,l,c=le(e[0],n);for(t=0,i=e.length;t<i;++t)l=s,s=c,c=t<i-1&&le(e[t+1],n),s&&(a=e[t],l&&(a.cp1x=pi(a.cp1x,n.left,n.right),a.cp1y=pi(a.cp1y,n.top,n.bottom)),c&&(a.cp2x=pi(a.cp2x,n.left,n.right),a.cp2y=pi(a.cp2y,n.top,n.bottom)))}(e,t)}function Qi(){return typeof window<"u"&&typeof document<"u"}function Ki(e){let n=e.parentNode;return n&&"[object ShadowRoot]"===n.toString()&&(n=n.host),n}function gi(e,n,t){let i;return"string"==typeof e?(i=parseInt(e,10),-1!==e.indexOf("%")&&(i=i/100*n.parentNode[t])):i=e,i}const ui=e=>e.ownerDocument.defaultView.getComputedStyle(e,null),Wr=["top","right","bottom","left"];function cn(e,n,t){const i={};t=t?"-"+t:"";for(let a=0;a<4;a++){const s=Wr[a];i[s]=parseFloat(e[n+"-"+s+t])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}function dn(e,n){if("native"in e)return e;const{canvas:t,currentDevicePixelRatio:i}=n,a=ui(t),s="border-box"===a.boxSizing,l=cn(a,"padding"),c=cn(a,"border","width"),{x:m,y:_,box:M}=function Jr(e,n){const t=e.touches,i=t&&t.length?t[0]:e,{offsetX:a,offsetY:s}=i;let c,m,l=!1;if(((e,n,t)=>(e>0||n>0)&&(!t||!t.shadowRoot))(a,s,e.target))c=a,m=s;else{const _=n.getBoundingClientRect();c=i.clientX-_.left,m=i.clientY-_.top,l=!0}return{x:c,y:m,box:l}}(e,t),w=l.left+(M&&c.left),A=l.top+(M&&c.top);let{width:L,height:Q}=n;return s&&(L-=l.width+c.width,Q-=l.height+c.height),{x:Math.round((m-w)/L*t.width/i),y:Math.round((_-A)/Q*t.height/i)}}const Ke=e=>Math.round(10*e)/10;function Ro(e,n,t){const i=n||1,a=Ke(e.height*i),s=Ke(e.width*i);e.height=Ke(e.height),e.width=Ke(e.width);const l=e.canvas;return l.style&&(t||!l.style.height&&!l.style.width)&&(l.style.height=`${e.height}px`,l.style.width=`${e.width}px`),(e.currentDevicePixelRatio!==i||l.height!==a||l.width!==s)&&(e.currentDevicePixelRatio=i,l.height=a,l.width=s,e.ctx.setTransform(i,0,0,i,0,0),!0)}const Kr=function(){let e=!1;
1try{const n={get passive(){return e=!0,!1}};Qi()&&(window.addEventListener("test",null,n),window.removeEventListener("test",null,n))}catch{}return e}();function ko(e,n){const t=function Hr(e,n){return ui(e).getPropertyValue(n)}(e,n),i=t&&t.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}function mn(e,n,t,i){return{x:e.x+t*(n.x-e.x),y:e.y+t*(n.y-e.y)}}function Xr(e,n,t,i){return{x:e.x+t*(n.x-e.x),y:"middle"===i?t<.5?e.y:n.y:"after"===i?t<1?e.y:n.y:t>0?n.y:e.y}}function Zr(e,n,t,i){const a={x:e.cp2x,y:e.cp2y},s={x:n.cp1x,y:n.cp1y},l=mn(e,a,t),c=mn(a,s,t),m=mn(s,n,t),_=mn(l,c,t),M=mn(c,m,t);return mn(_,M,t)}function yn(e,n,t){return e?function(e,n){return{x:t=>e+e+n-t,setWidth(t){n=t},textAlign:t=>"center"===t?t:"right"===t?"left":"right",xPlus:(t,i)=>t-i,leftForLtr:(t,i)=>t-i}}(n,t):{x:e=>e,setWidth(e){},textAlign:e=>e,xPlus:(e,n)=>e+n,leftForLtr:(e,n)=>e}}function Fo(e,n){let t,i;("ltr"===n||"rtl"===n)&&(t=e.canvas.style,i=[t.getPropertyValue("direction"),t.getPropertyPriority("direction")],t.setProperty("direction",n,"important"),e.prevTextDirection=i)}function No(e,n){void 0!==n&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",n[0],n[1]))}function Lo(e){return"angle"===e?{between:on,compare:Ri,normalize:ve}:{between:ke,compare:(n,t)=>n-t,normalize:n=>n}}function Vo({start:e,end:n,count:t,loop:i,style:a}){return{start:e%t,end:n%t,loop:i&&(n-e+1)%t==0,style:a}}function Bo(e,n,t){if(!t)return[e];const{property:i,start:a,end:s}=t,l=n.length,{compare:c,between:m,normalize:_}=Lo(i),{start:M,end:w,loop:A,style:L}=function es(e,n,t){const{property:i,start:a,end:s}=t,{between:l,normalize:c}=Lo(i),m=n.length;let A,L,{start:_,end:M,loop:w}=e;if(w){for(_+=m,M+=m,A=0,L=m;A<L&&l(c(n[_%m][i]),a,s);++A)_--,M--;_%=m,M%=m}return M<_&&(M+=m),{start:_,end:M,loop:w,style:e.style}}(e,n,t),Q=[];let yt,Pt,Nt,Y=!1,et=null;const Lt=()=>Y||m(a,Nt,yt)&&0!==c(a,Nt),Kt=()=>!Y||0===c(s,yt)||m(s,Nt,yt);for(let Wt=M,Zt=M;Wt<=w;++Wt)Pt=n[Wt%l],!Pt.skip&&(yt=_(Pt[i]),yt!==Nt&&(Y=m(yt,a,s),null===et&&Lt()&&(et=0===c(yt,a)?Wt:Zt),null!==et&&Kt()&&(Q.push(Vo({start:et,end:Wt,loop:A,count:l,style:L})),et=null),Zt=Wt,Nt=yt));return null!==et&&Q.push(Vo({start:et,end:w,loop:A,count:l,style:L})),Q}function zo(e,n){const t=[],i=e.segments;for(let a=0;a<i.length;a++){const s=Bo(i[a],e.points,n);s.length&&t.push(...s)}return t}function Go(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function rs(e,n){if(!n)return!1;const t=[],i=function(a,s){return Fn(s)?(t.includes(s)||t.push(s),t.indexOf(s)):s};return JSON.stringify(e,i)!==JSON.stringify(n,i)}function hi(e,n,t){return e.options.clip?e[t]:n[t]}function Uo(e,n){const t=n._clip;if(t.disabled)return!1;const i=function ss(e,n){const{xScale:t,yScale:i}=e;return t&&i?{left:hi(t,n,"left"),right:hi(t,n,"right"),top:hi(i,n,"top"),bottom:hi(i,n,"bottom")}:n}(n,e.chartArea);return{left:!1===t.left?0:i.left-(!0===t.left?0:t.left),right:!1===t.right?e.width:i.right+(!0===t.right?0:t.right),top:!1===t.top?0:i.top-(!0===t.top?0:t.top),bottom:!1===t.bottom?e.height:i.bottom+(!0===t.bottom?0:t.bottom)}}class ls{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(n,t,i,a){const l=t.duration;t.listeners[a].forEach(c=>c({chart:n,initial:t.initial,numSteps:l,currentStep:Math.min(i-t.start,l)}))}_refresh(){this._request||(this._running=!0,this._request=oi.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(n=Date.now()){let t=0;this._charts.forEach((i,a)=>{if(!i.running||!i.items.length)return;const s=i.items;let m,l=s.length-1,c=!1;for(;l>=0;--l)m=s[l],m._active?(m._total>i.duration&&(i.duration=m._total),m.tick(n),c=!0):(s[l]=s[s.length-1],s.pop());c&&(a.draw(),this._notify(a,i,n,"progress")),s.length||(i.running=!1,this._notify(a,i,n,"complete"),i.initial=!1),t+=s.length}),this._lastDate=n,0===t&&(this._running=!1)}_getAnims(n){const t=this._charts;let i=t.get(n);
vendor: 2,636 bytes, line 1
1return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},t.set(n,i)),i}listen(n,t,i){this._getAnims(n).listeners[t].push(i)}add(n,t){!t||!t.length||this._getAnims(n).items.push(...t)}has(n){return this._getAnims(n).items.length>0}start(n){const t=this._charts.get(n);t&&(t.running=!0,t.start=Date.now(),t.duration=t.items.reduce((i,a)=>Math.max(i,a._duration),0),this._refresh())}running(n){if(!this._running)return!1;const t=this._charts.get(n);return!(!t||!t.running||!t.items.length)}stop(n){const t=this._charts.get(n);if(!t||!t.items.length)return;const i=t.items;let a=i.length-1;for(;a>=0;--a)i[a].cancel();t.items=[],this._notify(n,t,Date.now(),"complete")}remove(n){return this._charts.delete(n)}}var He=new ls;const Ho="transparent",cs={boolean:(e,n,t)=>t>.5?n:e,color(e,n,t){const i=di(e||Ho),a=i.valid&&di(n||Ho);return a&&a.valid?a.mix(i,t).hexString():n},number:(e,n,t)=>e+(n-e)*t};class ds{constructor(n,t,i,a){const s=t[i];a=Bn([n.to,a,s,n.from]);const l=Bn([n.from,s,a]);this._active=!0,this._fn=n.fn||cs[n.type||typeof l],this._easing=an[n.easing]||an.linear,this._start=Math.floor(Date.now()+(n.delay||0)),this._duration=this._total=Math.floor(n.duration),this._loop=!!n.loop,this._target=t,this._prop=i,this._from=l,this._to=a,this._promises=void 0}active(){return this._active}update(n,t,i){if(this._active){this._notify(!1);const a=this._target[this._prop],s=i-this._start,l=this._duration-s;this._start=i,this._duration=Math.floor(Math.max(l,n.duration)),this._total+=s,this._loop=!!n.loop,this._to=Bn([n.to,t,a,n.from]),this._from=Bn([n.from,a,t])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(n){const t=n-this._start,i=this._duration,a=this._prop,s=this._from,l=this._loop,c=this._to;let m;if(this._active=s!==c&&(l||t<i),!this._active)return this._target[a]=c,void this._notify(!0);t<0?this._target[a]=s:(m=t/i%2,m=l&&m>1?2-m:m,m=this._easing(Math.min(1,Math.max(0,m))),this._target[a]=this._fn(s,c,m))}wait(){const n=this._promises||(this._promises=[]);return new Promise((t,i)=>{n.push({res:t,rej:i})})}_notify(n){const t=n?"res":"rej",i=this._promises||[];for(let a=0;a<i.length;a++)i[a][t]()}}class Wo{constructor(n,t){this._chart=n,this._properties=new Map,this.configure(t)}configure(n){if(!tt(n))return;const t=Object.keys(pe.animation),i=this._properties;Object.getOwnPropertyNames(n).forEach(a=>{const s=n[a];if(!tt(s))return;const l={};for(const c of t)l[c]=s[c];(E(s.properties)&&s.properties||[a]).forEach(c=>{(c===a||!i.has(c))&&i.set(c,l)})})}_animateOptions(n,t){const i=t.options,a=function ps(e,n){if(!n)return;let t=e.options;
vendor: 11,531 bytes, line 1
1if(t)return t.$shared&&(e.options=t=Object.assign({},t,{$shared:!1,$animations:{}})),t;e.options=n}(n,i);if(!a)return[];const s=this._createAnimations(a,i);return i.$shared&&function ms(e,n){const t=[],i=Object.keys(n);for(let a=0;a<i.length;a++){const s=e[i[a]];s&&s.active()&&t.push(s.wait())}return Promise.all(t)}(n.options.$animations,i).then(()=>{n.options=i},()=>{}),s}_createAnimations(n,t){const i=this._properties,a=[],s=n.$animations||(n.$animations={}),l=Object.keys(t),c=Date.now();let m;for(m=l.length-1;m>=0;--m){const _=l[m];if("$"===_.charAt(0))continue;if("options"===_){a.push(...this._animateOptions(n,t));continue}const M=t[_];let w=s[_];const A=i.get(_);if(w){if(A&&w.active()){w.update(A,M,c);continue}w.cancel()}A&&A.duration?(s[_]=w=new ds(A,n,_,M),a.push(w)):n[_]=M}return a}update(n,t){if(0===this._properties.size)return void Object.assign(n,t);const i=this._createAnimations(n,t);return i.length?(He.add(this._chart,i),!0):void 0}}function $o(e,n){const t=e&&e.options||{},i=t.reverse,a=void 0===t.min?n:0,s=void 0===t.max?n:0;return{start:i?s:a,end:i?a:s}}function Jo(e,n){const t=[],i=e._getSortedDatasetMetas(n);let a,s;for(a=0,s=i.length;a<s;++a)t.push(i[a].index);return t}function Yo(e,n,t,i={}){const a=e.keys,s="single"===i.mode;let l,c,m,_;if(null===n)return;let M=!1;for(l=0,c=a.length;l<c;++l){if(m=+a[l],m===t){if(M=!0,i.all)continue;break}_=e.values[m],V(_)&&(s||0===n||Z(n)===Z(_))&&(n+=_)}return M||i.all?n:0}function Xi(e,n){const t=e&&e.options.stacked;return t||void 0===t&&void 0!==n.stack}function Cs(e,n,t){const i=e[n]||(e[n]={});return i[t]||(i[t]={})}function Qo(e,n,t,i){for(const a of n.getMatchingVisibleMetas(i).reverse()){const s=e[a.index];if(t&&s>0||!t&&s<0)return a.index}return null}function Ko(e,n){const{chart:t,_cachedMeta:i}=e,a=t._stacks||(t._stacks={}),{iScale:s,vScale:l,index:c}=i,m=s.axis,_=l.axis,M=function fs(e,n,t){return`${e.id}.${n.id}.${t.stack||t.type}`}(s,l,i),w=n.length;let A;for(let L=0;L<w;++L){const Q=n[L],{[m]:Y,[_]:et}=Q;A=(Q._stacks||(Q._stacks={}))[_]=Cs(a,M,Y),A[c]=et,A._top=Qo(A,l,!0,i.type),A._bottom=Qo(A,l,!1,i.type),(A._visualValues||(A._visualValues={}))[c]=et}}function Zi(e,n){const t=e.scales;return Object.keys(t).filter(i=>t[i].axis===n).shift()}function zn(e,n){const t=e.controller.index,i=e.vScale&&e.vScale.axis;if(i){n=n||e._parsed;for(const a of n){const s=a._stacks;if(!s||void 0===s[i]||void 0===s[i][t])return;delete s[i][t],void 0!==s[i]._visualValues&&void 0!==s[i]._visualValues[t]&&delete s[i]._visualValues[t]}}}const qi=e=>"reset"===e||"none"===e,Xo=(e,n)=>n?e:Object.assign({},e);let Xe=(()=>class e{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(t,i){this.chart=t,this._ctx=t.ctx,this.index=i,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=Xi(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&zn(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,i=this._cachedMeta,a=this.getDataset(),s=(A,L,Q,Y)=>"x"===A?L:"r"===A?Y:Q,l=i.xAxisID=nt(a.xAxisID,Zi(t,"x")),c=i.yAxisID=nt(a.yAxisID,Zi(t,"y")),m=i.rAxisID=nt(a.rAxisID,Zi(t,"r")),_=i.indexAxis,M=i.iAxisID=s(_,l,c,m),w=i.vAxisID=s(_,c,l,m);i.xScale=this.getScaleForId(l),i.yScale=this.getScaleForId(c),i.rScale=this.getScaleForId(m),i.iScale=this.getScaleForId(M),i.vScale=this.getScaleForId(w)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const i=this._cachedMeta;return t===i.iScale?i.vScale:i.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&ni(this._data,this),t._stacked&&zn(t)}_dataCheck(){const t=this.getDataset(),i=t.data||(t.data=[]),a=this._data;if(tt(i))this._data=function hs(e,n){const{iScale:t,vScale:i}=n,a="x"===t.axis?"x":"y",s="x"===i.axis?"x":"y",l=Object.keys(e),c=new Array(l.length);let m,_,M;for(m=0,_=l.length;m<_;++m)M=l[m],c[m]={[a]:M,[s]:e[M]};return c}(i,this._cachedMeta);else if(a!==i){if(a){ni(a,this);const s=this._cachedMeta;zn(s),s._parsed=[]}i&&Object.isExtensible(i)&&function Li(e,n){e._chartjs?e._chartjs.listeners.push(n):(Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[n]}}),ei.forEach(t=>{const i="_onData"+en(t),a=e[t];Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value(...s){const l=a.apply(this,s);return e._chartjs.listeners.forEach(c=>{"function"==typeof c[i]&&c[i](...s)}),l}})}))}(i,this),this._syncList=[],this._data=i}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const i=this._cachedMeta,a=this.getDataset();let s=!1;this._dataCheck();const l=i._stacked;i._stacked=Xi(i.vScale,i),i.stack!==a.stack&&(s=!0,zn(i),i.stack=a.stack),this._resyncElements(t),(s||l!==i._stacked)&&(Ko(this,i._parsed),i._stacked=Xi(i.vScale,i))}configure(){const t=this.chart.config,i=t.datasetScopeKeys(this._type),a=t.getOptionScopes(this.getDataset(),i,!0);this.options=t.createResolver(a,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,i){const{_cachedMeta:a,_data:s}=this,{iScale:l,_stacked:c}=a,m=l.axis;let w,A,L,_=0===t&&i===s.length||a._sorted,M=t>0&&a._parsed[t-1];if(!1===this._parsing)a._parsed=s,a._sorted=!0,L=s;else{L=E(s[t])?this.parseArrayData(a,s,t,i):tt(s[t])?this.parseObjectData(a,s,t,i):this.parsePrimitiveData(a,s,t,i);const Q=()=>null===A[m]||M&&A[m]<M[m];for(w=0;w<i;++w)a._parsed[w+t]=A=L[w],_&&(Q()&&(_=!1),M=A);a._sorted=_}c&&Ko(this,L)}parsePrimitiveData(t,i,a,s){const{iScale:l,vScale:c}=t,m=l.axis,_=c.axis,M=l.getLabels(),w=l===c,A=new Array(s);let L,Q,Y;for(L=0,Q=s;L<Q;++L)Y=L+a,A[L]={[m]:w||l.parse(M[Y],Y),[_]:c.parse(i[Y],Y)};return A}parseArrayData(t,i,a,s){const{xScale:l,yScale:c}=t,m=new Array(s);let _,M,w,A;for(_=0,M=s;_<M;++_)w=_+a,A=i[w],m[_]={x:l.parse(A[0],w),y:c.parse(A[1],w)};return m}parseObjectData(t,i,a,s){const{xScale:l,yScale:c}=t,{xAxisKey:m="x",yAxisKey:_="y"}=this._parsing,M=new Array(s);let w,A,L,Q;for(w=0,A=s;w<A;++w)L=w+a,Q=i[L],M[w]={x:l.parse(Ie(Q,m),L),y:c.parse(Ie(Q,_),L)};return M}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,i,a){const l=this._cachedMeta,c=i[t.axis];return Yo({keys:Jo(this.chart,!0),values:i._stacks[t.axis]._visualValues},c,l.index,{mode:a})}updateRangeFromParsed(t,i,a,s){const l=a[i.axis];let c=null===l?NaN:l;const m=s&&a._stacks[i.axis];s&&m&&(s.values=m,c=Yo(s,l,this._cachedMeta.index)),t.min=Math.min(t.min,c),t.max=Math.max(t.max,c)}getMinMax(t,i){const a=this._cachedMeta,s=a._parsed,l=a._sorted&&t===a.iScale,c=s.length,m=this._getOtherScale(t),_=((e,n)=>e&&!n.hidden&&n._stacked&&{keys:Jo(this.chart,!0),values:null})(i,a),M={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:w,max:A}=function _s(e){const{min:n,max:t,minDefined:i,maxDefined:a}=e.getUserBounds();return{min:i?n:Number.NEGATIVE_INFINITY,max:a?t:Number.POSITIVE_INFINITY}}(m);let L,Q;function Y(){Q=s[L];const et=Q[m.axis];return!V(Q[t.axis])||w>et||A<et}for(L=0;L<c&&(Y()||(this.updateRangeFromParsed(M,t,Q,_),!l));++L);if(l)for(L=c-1;L>=0;--L)if(!Y()){this.updateRangeFromParsed(M,t,Q,_);break}return M}getAllParsedValues(t){const i=this._cachedMeta._parsed,a=[];let s,l,c;for(s=0,l=i.length;s<l;++s)c=i[s][t.axis],V(c)&&a.push(c);return a}getMaxOverflow(){return!1}getLabelAndValue(t){const i=this._cachedMeta,a=i.iScale,s=i.vScale,l=this.getParsed(t);return{label:a?""+a.getLabelForValue(l[a.axis]):"",value:s?""+s.getLabelForValue(l[s.axis]):""}}_update(t){const i=this._cachedMeta;this.update(t||"default"),i._clip=function us(e){let n,t,i,a;return tt(e)?(n=e.top,t=e.right,i=e.bottom,a=e.left):n=t=i=a=e,{top:n,right:t,bottom:i,left:a,disabled:!1===e}}(nt(this.options.clip,function gs(e,n,t){if(!1===t)return!1;const i=$o(e,t),a=$o(n,t);return{top:a.end,right:i.end,bottom:a.start,left:i.start}}(i.xScale,i.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,a=this._cachedMeta,s=a.data||[],l=this.chart.chartArea,c=[],m=this._drawStart||0,_=this._drawCount||s.length-m,M=this.options.drawActiveElementsOnTop;let w;for(a.dataset&&a.dataset.draw(t,l,m,_),w=m;w<m+_;++w){const A=s[w];A.hidden||(A.active&&M?c.push(A):A.draw(t,l))}for(w=0;w<c.length;++w)c[w].draw(t,l)}getStyle(t,i){const a=i?"active":"default";return void 0===t&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(a):this.resolveDataElementOptions(t||0,a)}getContext(t,i,a){const s=this.getDataset();let l;if(t>=0&&t<this._cachedMeta.data.length){const c=this._cachedMeta.data[t];l=c.$context||(c.$context=function bs(e,n,t){return Qe(e,{active:!1,dataIndex:n,parsed:void 0,raw:void 0,element:t,index:n,mode:"default",type:"data"})}(this.getContext(),t,c)),l.parsed=this.getParsed(t),l.raw=s.data[t],l.index=l.dataIndex=t}else l=this.$context||(this.$context=function vs(e,n){return Qe(e,{active:!1,dataset:void 0,datasetIndex:n,index:n,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),l.dataset=s,l.index=l.datasetIndex=this.index;return l.active=!!i,l.mode=a,l}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,i){return this._resolveElementOptions(this.dataElementType.id,i,t)}_resolveElementOptions(t,i="default",a){const s="active"===i,l=this._cachedDataOpts,c=t+"-"+i,m=l[c],_=this.enableOptionSharing&&je(a);if(m)return Xo(m,_);const M=this.chart.config,w=M.datasetElementScopeKeys(this._type,t),A=s?[`${t}Hover`,"hover",t,""]:[t,""],L=M.getOptionScopes(this.getDataset(),w),Q=Object.keys(pe.elements[t]),et=M.resolveNamedOptions(L,Q,()=>this.getContext(a,s,i),A);return et.$shared&&(et.$shared=_,l[c]=Object.freeze(Xo(et,_))),et}_resolveAnimations(t,i,a){const s=this.chart,l=this._cachedDataOpts,c=`animation-${i}`,m=l[c];if(m)return m;let _;if(!1!==s.options.animation){const w=this.chart.config,A=w.datasetAnimationScopeKeys(this._type,i),L=w.getOptionScopes(this.getDataset(),A);_=w.createResolver(L,this.getContext(t,a,i))}const M=new Wo(s,_&&_.animations);return _&&_._cacheable&&(l[c]=Object.freeze(M)),M}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,i){return!i||qi(t)||this.chart._animationsDisabled}_getSharedOptions(t,i){const a=this.resolveDataElementOptions(t,i),s=this._sharedOptions,l=this.getSharedOptions(a),c=this.includeOptions(i,l)||l!==s;return this.updateSharedOptions(l,i,a),{sharedOptions:l,includeOptions:c}}updateElement(t,i,a,s){qi(s)?Object.assign(t,a):this._resolveAnimations(i,s).update(t,a)}updateSharedOptions(t,i,a){t&&!qi(i)&&this._resolveAnimations(void 0,i).update(t,a)}_setStyle(t,i,a,s){t.active=s;const l=this.getStyle(i,s);
vendor: 4,110 bytes, line 1
1this._resolveAnimations(i,a,s).update(t,{options:!s&&this.getSharedOptions(l)||l})}removeHoverStyle(t,i,a){this._setStyle(t,a,"active",!1)}setHoverStyle(t,i,a){this._setStyle(t,a,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const i=this._data,a=this._cachedMeta.data;for(const[m,_,M]of this._syncList)this[m](_,M);this._syncList=[];const s=a.length,l=i.length,c=Math.min(l,s);c&&this.parse(0,c),l>s?this._insertElements(s,l-s,t):l<s&&this._removeElements(l,s-l)}_insertElements(t,i,a=!0){const s=this._cachedMeta,l=s.data,c=t+i;let m;const _=M=>{for(M.length+=i,m=M.length-1;m>=c;m--)M[m]=M[m-i]};for(_(l),m=t;m<c;++m)l[m]=new this.dataElementType;this._parsing&&_(s._parsed),this.parse(t,i),a&&this.updateElements(l,t,i,"reset")}updateElements(t,i,a,s){}_removeElements(t,i){const a=this._cachedMeta;if(this._parsing){const s=a._parsed.splice(t,i);a._stacked&&zn(a,s)}a.data.splice(t,i)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[i,a,s]=t;this[i](a,s)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,i){i&&this._sync(["_removeElements",t,i]);const a=arguments.length-2;a&&this._sync(["_insertElements",t,a])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}})();function ys(e){const n=e.iScale,t=function Ms(e,n){if(!e._cache.$bar){const t=e.getMatchingVisibleMetas(n);let i=[];for(let a=0,s=t.length;a<s;a++)i=i.concat(t[a].controller.getAllParsedValues(e));e._cache.$bar=ii(i.sort((a,s)=>a-s))}return e._cache.$bar}(n,e.type);let a,s,l,c,i=n._length;const m=()=>{32767===l||-32768===l||(je(c)&&(i=Math.min(i,Math.abs(l-c)||i)),c=l)};for(a=0,s=t.length;a<s;++a)l=n.getPixelForValue(t[a]),m();for(c=void 0,a=0,s=n.ticks.length;a<s;++a)l=n.getPixelForTick(a),m();return i}function Zo(e,n,t,i){return E(e)?function Os(e,n,t,i){const a=t.parse(e[0],i),s=t.parse(e[1],i),l=Math.min(a,s),c=Math.max(a,s);let m=l,_=c;Math.abs(l)>Math.abs(c)&&(m=c,_=l),n[t.axis]=_,n._custom={barStart:m,barEnd:_,start:a,end:s,min:l,max:c}}(e,n,t,i):n[t.axis]=t.parse(e,i),n}function qo(e,n,t,i){const a=e.iScale,s=e.vScale,l=a.getLabels(),c=a===s,m=[];let _,M,w,A;for(_=t,M=t+i;_<M;++_)A=n[_],w={},w[a.axis]=c||a.parse(l[_],_),m.push(Zo(A,w,s,_));return m}function to(e){return e&&void 0!==e.barStart&&void 0!==e.barEnd}function Ts(e,n,t,i){let a=n.borderSkipped;const s={};if(!a)return void(e.borderSkipped=s);if(!0===a)return void(e.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:l,end:c,reverse:m,top:_,bottom:M}=function Es(e){let n,t,i,a,s;return e.horizontal?(n=e.base>e.x,t="left",i="right"):(n=e.base<e.y,t="bottom",i="top"),n?(a="end",s="start"):(a="start",s="end"),{start:t,end:i,reverse:n,top:a,bottom:s}}(e);"middle"===a&&t&&(e.enableBorderRadius=!0,(t._top||0)===i?a=_:(t._bottom||0)===i?a=M:(s[ta(M,l,c,m)]=!0,a=_)),s[ta(a,l,c,m)]=!0,e.borderSkipped=s}function ta(e,n,t,i){return i?(e=function Ds(e,n,t){return e===n?t:e===t?n:e}(e,n,t),e=ea(e,t,n)):e=ea(e,n,t),e}function ea(e,n,t){return"start"===e?n:"end"===e?t:e}function Is(e,{inflateAmount:n},t){e.inflateAmount="auto"===n?1===t?.33:0:n}let As=(()=>class e extends Xe{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(t,i,a,s){return qo(t,i,a,s)}parseArrayData(t,i,a,s){return qo(t,i,a,s)}parseObjectData(t,i,a,s){const{iScale:l,vScale:c}=t,{xAxisKey:m="x",yAxisKey:_="y"}=this._parsing,M="x"===l.axis?m:_,w="x"===c.axis?m:_,A=[];let L,Q,Y,et;for(L=a,Q=a+s;L<Q;++L)et=i[L],Y={}
vendor: 7,383 bytes, line 1
1,Y[l.axis]=l.parse(Ie(et,M),L),A.push(Zo(Ie(et,w),Y,c,L));return A}updateRangeFromParsed(t,i,a,s){super.updateRangeFromParsed(t,i,a,s);const l=a._custom;l&&i===this._cachedMeta.vScale&&(t.min=Math.min(t.min,l.min),t.max=Math.max(t.max,l.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const i=this._cachedMeta,{iScale:a,vScale:s}=i,l=this.getParsed(t),c=l._custom,m=to(c)?"["+c.start+", "+c.end+"]":""+s.getLabelForValue(l[s.axis]);return{label:""+a.getLabelForValue(l[a.axis]),value:m}}initialize(){this.enableOptionSharing=!0,super.initialize(),this._cachedMeta.stack=this.getDataset().stack}update(t){const i=this._cachedMeta;this.updateElements(i.data,0,i.data.length,t)}updateElements(t,i,a,s){const l="reset"===s,{index:c,_cachedMeta:{vScale:m}}=this,_=m.getBasePixel(),M=m.isHorizontal(),w=this._getRuler(),{sharedOptions:A,includeOptions:L}=this._getSharedOptions(i,s);for(let Q=i;Q<i+a;Q++){const Y=this.getParsed(Q),et=l||W(Y[m.axis])?{base:_,head:_}:this._calculateBarValuePixels(Q),yt=this._calculateBarIndexPixels(Q,w),Pt=(Y._stacks||{})[m.axis],Nt={horizontal:M,base:et.base,enableBorderRadius:!Pt||to(Y._custom)||c===Pt._top||c===Pt._bottom,x:M?et.head:yt.center,y:M?yt.center:et.head,height:M?yt.size:Math.abs(et.size),width:M?Math.abs(et.size):yt.size};L&&(Nt.options=A||this.resolveDataElementOptions(Q,t[Q].active?"active":s));const Bt=Nt.options||t[Q].options;Ts(Nt,Bt,Pt,c),Is(Nt,Bt,w.ratio),this.updateElement(t[Q],Q,Nt,s)}}_getStacks(t,i){const{iScale:a}=this._cachedMeta,s=a.getMatchingVisibleMetas(this._type).filter(w=>w.controller.options.grouped),l=a.options.stacked,c=[],m=this._cachedMeta.controller.getParsed(i),_=m&&m[a.axis],M=w=>{const A=w._parsed.find(Q=>Q[a.axis]===_),L=A&&A[w.vScale.axis];if(W(L)||isNaN(L))return!0};for(const w of s)if((void 0===i||!M(w))&&((!1===l||-1===c.indexOf(w.stack)||void 0===l&&void 0===w.stack)&&c.push(w.stack),w.index===t))break;return c.length||c.push(void 0),c}_getStackCount(t){return this._getStacks(void 0,t).length}_getAxisCount(){return this._getAxis().length}getFirstScaleIdForIndexAxis(){const t=this.chart.scales,i=this.chart.options.indexAxis;return Object.keys(t).filter(a=>t[a].axis===i).shift()}_getAxis(){const t={},i=this.getFirstScaleIdForIndexAxis();for(const a of this.chart.data.datasets)t[nt("x"===this.chart.options.indexAxis?a.xAxisID:a.yAxisID,i)]=!0;return Object.keys(t)}_getStackIndex(t,i,a){const s=this._getStacks(t,a),l=void 0!==i?s.indexOf(i):-1;return-1===l?s.length-1:l}_getRuler(){const t=this.options,i=this._cachedMeta,a=i.iScale,s=[];let l,c;for(l=0,c=i.data.length;l<c;++l)s.push(a.getPixelForValue(this.getParsed(l)[a.axis],l));const m=t.barThickness;return{min:m||ys(i),pixels:s,start:a._startPixel,end:a._endPixel,stackCount:this._getStackCount(),scale:a,grouped:t.grouped,ratio:m?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:i,_stacked:a,index:s},options:{base:l,minBarLength:c}}=this,m=l||0,_=this.getParsed(t),M=_._custom,w=to(M);let Y,et,A=_[i.axis],L=0,Q=a?this.applyStack(i,_,a):A;Q!==A&&(L=Q-A,Q=A),w&&(A=M.barStart,Q=M.barEnd-M.barStart,0!==A&&Z(A)!==Z(M.barEnd)&&(L=0),L+=A);const yt=W(l)||w?L:l;let Pt=i.getPixelForValue(yt);if(Y=this.chart.getDataVisibility(t)?i.getPixelForValue(L+Q):Pt,et=Y-Pt,Math.abs(et)<c){et=function ws(e,n,t){return 0!==e?Z(e):(n.isHorizontal()?1:-1)*(n.min>=t?1:-1)}(et,i,m)*c,A===m&&(Pt-=et/2);const Nt=i.getPixelForDecimal(0),Bt=i.getPixelForDecimal(1),It=Math.min(Nt,Bt),Lt=Math.max(Nt,Bt);Pt=Math.max(Math.min(Pt,Lt),It),Y=Pt+et,a&&!w&&(_._stacks[i.axis]._visualValues[s]=i.getValueForPixel(Y)-i.getValueForPixel(Pt))}if(Pt===i.getPixelForValue(m)){const Nt=Z(et)*i.getLineWidthForValue(m)/2;Pt+=Nt,et-=Nt}return{size:et,base:Pt,head:Y,center:Y+et/2}}_calculateBarIndexPixels(t,i){const a=i.scale,s=this.options,l=s.skipNull,c=nt(s.maxBarThickness,1/0);let m,_;const M=this._getAxisCount();if(i.grouped){const w=l?this._getStackCount(t):i.stackCount,A="flex"===s.barThickness?function Ss(e,n,t,i){const a=n.pixels,s=a[e];let l=e>0?a[e-1]:null,c=e<a.length-1?a[e+1]:null;const m=t.categoryPercentage;null===l&&(l=s-(null===c?n.end-n.start:c-s)),null===c&&(c=s+s-l);const _=s-(s-Math.min(l,c))/2*m;return{chunk:Math.abs(c-l)/2*m/i,ratio:t.barPercentage,start:_}}(t,i,s,w*M):function Ps(e,n,t,i){const a=t.barThickness;let s,l;return W(a)?(s=n.min*t.categoryPercentage,l=t.barPercentage):(s=a*i,l=1),{chunk:s/i,ratio:l,start:n.pixels[e]-s/2}}(t,i,s,w*M),L="x"===this.chart.options.indexAxis?this.getDataset().xAxisID:this.getDataset().yAxisID,Q=this._getAxis().indexOf(nt(L,this.getFirstScaleIdForIndexAxis())),Y=this._getStackIndex(this.index,this._cachedMeta.stack,l?t:void 0)+Q;m=A.start+A.chunk*Y+A.chunk/2,_=Math.min(c,A.chunk*A.ratio)}else m=a.getPixelForValue(this.getParsed(t)[a.axis],t),_=Math.min(c,i.min*i.ratio);return{base:m-_/2,head:m+_/2,center:m,size:_}}draw(){const t=this._cachedMeta,i=t.vScale,a=t.data,s=a.length;let l=0;for(;l<s;++l)null!==this.getParsed(l)[i.axis]&&!a[l].hidden&&a[l].draw(this._ctx)}})(),Rs=(()=>class e extends Xe{static id="bubble";static defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}};static overrides={scales:{x:{type:"linear"},y:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,i,a,s){const l=super.parsePrimitiveData(t,i,a,s);for(let c=0;c<l.length;c++)l[c]._custom=this.resolveDataElementOptions(c+a).radius;return l}parseArrayData(t,i,a,s){const l=super.parseArrayData(t,i,a,s);for(let c=0;c<l.length;c++)l[c]._custom=nt(i[a+c][2],this.resolveDataElementOptions(c+a).radius);return l}parseObjectData(t,i,a,s){const l=super.parseObjectData(t,i,a,s);for(let c=0;c<l.length;c++){const m=i[a+c];l[c]._custom=nt(m&&m.r&&+m.r,this.resolveDataElementOptions(c+a).radius)}return l}getMaxOverflow(){const t=this._cachedMeta.data;let i=0;for(let a=t.length-1;a>=0;--a)i=Math.max(i,t[a].size(this.resolveDataElementOptions(a))/2);return i>0&&i}getLabelAndValue(t){const i=this._cachedMeta,a=this.chart.data.labels||[],{xScale:s,yScale:l}=i,c=this.getParsed(t),m=s.getLabelForValue(c.x),_=l.getLabelForValue(c.y),M=c._custom;return{label:a[t]||"",value:"("+m+", "+_+(M?", "+M:"")+")"}}update(t){const i=this._cachedMeta.data;this.updateElements(i,0,i.length,t)}updateElements(t,i,a,s){const l="reset"===s,{iScale:c,vScale:m}=this._cachedMeta,{sharedOptions:_,includeOptions:M}=this._getSharedOptions(i,s),w=c.axis,A=m.axis;for(let L=i;L<i+a;L++){const Q=t[L],Y=!l&&this.getParsed(L),et={},yt=et[w]=l?c.getPixelForDecimal(.5):c.getPixelForValue(Y[w]),Pt=et[A]=l?m.getBasePixel():m.getPixelForValue(Y[A]);et.skip=isNaN(yt)||isNaN(Pt),M&&(et.options=_||this.resolveDataElementOptions(L,Q.active?"active":s),l&&(et.options.radius=0)),this.updateElement(Q,L,et,s)}}resolveDataElementOptions(t,i){const a=this.getParsed(t);let s=super.resolveDataElementOptions(t,i);s.$shared&&(s=Object.assign({},s,{$shared:!1}));const l=s.radius;return"active"!==i&&(s.radius=0),s.radius+=nt(a&&a._custom,l),s}})(),eo=(()=>class e extends Xe{static id="doughnut";static defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}}
vendor: 4,761 bytes, line 1
1,cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"};static descriptors={_scriptable:t=>"spacing"!==t,_indexable:t=>"spacing"!==t&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const i=t.data,{labels:{pointStyle:a,textAlign:s,color:l,useBorderRadius:c,borderRadius:m}}=t.legend.options;return i.labels.length&&i.datasets.length?i.labels.map((_,M)=>{const A=t.getDatasetMeta(0).controller.getStyle(M);return{text:_,fillStyle:A.backgroundColor,fontColor:l,hidden:!t.getDataVisibility(M),lineDash:A.borderDash,lineDashOffset:A.borderDashOffset,lineJoin:A.borderJoinStyle,lineWidth:A.borderWidth,strokeStyle:A.borderColor,textAlign:s,pointStyle:a,borderRadius:c&&(m||A.borderRadius),index:M}}):[]}},onClick(t,i,a){a.chart.toggleDataVisibility(i.index),a.chart.update()}}}};constructor(t,i){super(t,i),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,i){const a=this.getDataset().data,s=this._cachedMeta;if(!1===this._parsing)s._parsed=a;else{let c,m,l=_=>+a[_];if(tt(a[t])){const{key:_="value"}=this._parsing;l=M=>+Ie(a[M],_)}for(c=t,m=t+i;c<m;++c)s._parsed[c]=l(c)}}_getRotation(){return we(this.options.rotation-90)}_getCircumference(){return we(this.options.circumference)}_getRotationExtents(){let t=de,i=-de;for(let a=0;a<this.chart.data.datasets.length;++a)if(this.chart.isDatasetVisible(a)&&this.chart.getDatasetMeta(a).type===this._type){const s=this.chart.getDatasetMeta(a).controller,l=s._getRotation(),c=s._getCircumference();t=Math.min(t,l),i=Math.max(i,l+c)}return{rotation:t,circumference:i-t}}update(t){const i=this.chart,{chartArea:a}=i,s=this._cachedMeta,l=s.data,c=this.getMaxBorderWidth()+this.getMaxOffset(l)+this.options.spacing,m=Math.max((Math.min(a.width,a.height)-c)/2,0),_=Math.min(((e,n)=>"string"==typeof e&&e.endsWith("%")?parseFloat(e)/100:+e/n)(this.options.cutout,m),1),M=this._getRingWeight(this.index),{circumference:w,rotation:A}=this._getRotationExtents(),{ratioX:L,ratioY:Q,offsetX:Y,offsetY:et}=function ks(e,n,t){let i=1,a=1,s=0,l=0;if(n<de){const c=e,m=c+n,_=Math.cos(c),M=Math.sin(c),w=Math.cos(m),A=Math.sin(m),L=(Nt,Bt,It)=>on(Nt,c,m,!0)?1:Math.max(Bt,Bt*t,It,It*t),Q=(Nt,Bt,It)=>on(Nt,c,m,!0)?-1:Math.min(Bt,Bt*t,It,It*t),Y=L(0,_,w),et=L(ge,M,A),yt=Q(ie,_,w),Pt=Q(ie+ge,M,A);i=(Y-yt)/2,a=(et-Pt)/2,s=-(Y+yt)/2,l=-(et+Pt)/2}return{ratioX:i,ratioY:a,offsetX:s,offsetY:l}}(A,w,_),Nt=Math.max(Math.min((a.width-c)/L,(a.height-c)/Q)/2,0),Bt=Ct(this.options.radius,Nt),Lt=(Bt-Math.max(Bt*_,0))/this._getVisibleDatasetWeightTotal();this.offsetX=Y*Bt,this.offsetY=et*Bt,s.total=this.calculateTotal(),this.outerRadius=Bt-Lt*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-Lt*M,0),this.updateElements(l,0,l.length,t)}_circumference(t,i){const a=this.options,s=this._cachedMeta,l=this._getCircumference();return i&&a.animation.animateRotate||!this.chart.getDataVisibility(t)||null===s._parsed[t]||s.data[t].hidden?0:this.calculateCircumference(s._parsed[t]*l/de)}updateElements(t,i,a,s){const l="reset"===s,c=this.chart,m=c.chartArea,w=(m.left+m.right)/2,A=(m.top+m.bottom)/2,L=l&&c.options.animation.animateScale,Q=L?0:this.innerRadius,Y=L?0:this.outerRadius,{sharedOptions:et,includeOptions:yt}=this._getSharedOptions(i,s);let Nt,Pt=this._getRotation();for(Nt=0;Nt<i;++Nt)Pt+=this._circumference(Nt,l);for(Nt=i;Nt<i+a;++Nt){const Bt=this._circumference(Nt,l),It=t[Nt],Lt={x:w+this.offsetX,y:A+this.offsetY,startAngle:Pt,endAngle:Pt+Bt,circumference:Bt,outerRadius:Y,innerRadius:Q};yt&&(Lt.options=et||this.resolveDataElementOptions(Nt,It.active?"active":s)),Pt+=Bt,this.updateElement(It,Nt,Lt,s)}}calculateTotal(){const t=this._cachedMeta,i=t.data;let s,a=0;for(s=0;s<i.length;s++){const l=t._parsed[s];null!==l&&!isNaN(l)&&this.chart.getDataVisibility(s)&&!i[s].hidden&&(a+=Math.abs(l))}return a}calculateCircumference(t){const i=this._cachedMeta.total;return i>0&&!isNaN(t)?de*(Math.abs(t)/i):0}getLabelAndValue(t){const a=this.chart,s=a.data.labels||[],l=Ne(this._cachedMeta._parsed[t],a.options.locale);return{label:s[t]||"",value:l}}getMaxBorderWidth(t){let i=0;const a=this.chart;let s,l,c,m,_;if(!t)for(s=0,l=a.data.datasets.length;s<l;++s)if(a.isDatasetVisible(s)){c=a.getDatasetMeta(s),t=c.data,m=c.controller;break}if(!t)return 0;for(s=0,l=t.length;s<l;++s)_=m.resolveDataElementOptions(s),"inner"!==_.borderAlign&&(i=Math.max(i,_.borderWidth||0,_.hoverBorderWidth||0));return i}getMaxOffset(t){let i=0;for(let a=0,s=t.length;a<s;++a){const l=this.resolveDataElementOptions(a);i=Math.max(i,l.offset||0,l.hoverOffset||0)}return i}_getRingWeightOffset(t){let i=0;for(let a=0;a<t;
vendor: 8,099 bytes, line 1
1++a)this.chart.isDatasetVisible(a)&&(i+=this._getRingWeight(a));return i}_getRingWeight(t){return Math.max(nt(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}})(),Fs=(()=>class e extends Xe{static id="line";static defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const i=this._cachedMeta,{dataset:a,data:s=[],_dataset:l}=i,c=this.chart._animationsDisabled;let{start:m,count:_}=ri(i,s,c);this._drawStart=m,this._drawCount=_,si(i)&&(m=0,_=s.length),a._chart=this.chart,a._datasetIndex=this.index,a._decimated=!!l._decimated,a.points=s;const M=this.resolveDatasetElementOptions(t);this.options.showLine||(M.borderWidth=0),M.segment=this.options.segment,this.updateElement(a,void 0,{animated:!c,options:M},t),this.updateElements(s,m,_,t)}updateElements(t,i,a,s){const l="reset"===s,{iScale:c,vScale:m,_stacked:_,_dataset:M}=this._cachedMeta,{sharedOptions:w,includeOptions:A}=this._getSharedOptions(i,s),L=c.axis,Q=m.axis,{spanGaps:Y,segment:et}=this.options,yt=Oe(Y)?Y:Number.POSITIVE_INFINITY,Pt=this.chart._animationsDisabled||l||"none"===s,Nt=i+a,Bt=t.length;let It=i>0&&this.getParsed(i-1);for(let Lt=0;Lt<Bt;++Lt){const Kt=t[Lt],Wt=Pt?Kt:{};if(Lt<i||Lt>=Nt){Wt.skip=!0;continue}const Zt=this.getParsed(Lt),ne=W(Zt[Q]),ee=Wt[L]=c.getPixelForValue(Zt[L],Lt),ae=Wt[Q]=l||ne?m.getBasePixel():m.getPixelForValue(_?this.applyStack(m,Zt,_):Zt[Q],Lt);Wt.skip=isNaN(ee)||isNaN(ae)||ne,Wt.stop=Lt>0&&Math.abs(Zt[L]-It[L])>yt,et&&(Wt.parsed=Zt,Wt.raw=M.data[Lt]),A&&(Wt.options=w||this.resolveDataElementOptions(Lt,Kt.active?"active":s)),Pt||this.updateElement(Kt,Lt,Wt,s),It=Zt}}getMaxOverflow(){const t=this._cachedMeta,i=t.dataset,a=i.options&&i.options.borderWidth||0,s=t.data||[];if(!s.length)return a;const l=s[0].size(this.resolveDataElementOptions(0)),c=s[s.length-1].size(this.resolveDataElementOptions(s.length-1));return Math.max(a,l,c)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}})(),na=(()=>class e extends Xe{static id="polarArea";static defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const i=t.data;if(i.labels.length&&i.datasets.length){const{labels:{pointStyle:a,color:s}}=t.legend.options;return i.labels.map((l,c)=>{const _=t.getDatasetMeta(0).controller.getStyle(c);return{text:l,fillStyle:_.backgroundColor,strokeStyle:_.borderColor,fontColor:s,lineWidth:_.borderWidth,pointStyle:a,hidden:!t.getDataVisibility(c),index:c}})}return[]}},onClick(t,i,a){a.chart.toggleDataVisibility(i.index),a.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};constructor(t,i){super(t,i),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const a=this.chart,s=a.data.labels||[],l=Ne(this._cachedMeta._parsed[t].r,a.options.locale);return{label:s[t]||"",value:l}}parseObjectData(t,i,a,s){return Io.bind(this)(t,i,a,s)}update(t){const i=this._cachedMeta.data;this._updateRadius(),this.updateElements(i,0,i.length,t)}getMinMax(){const i={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return this._cachedMeta.data.forEach((a,s)=>{const l=this.getParsed(s).r;!isNaN(l)&&this.chart.getDataVisibility(s)&&(l<i.min&&(i.min=l),l>i.max&&(i.max=l))}),i}_updateRadius(){const t=this.chart,i=t.chartArea,a=t.options,s=Math.min(i.right-i.left,i.bottom-i.top),l=Math.max(s/2,0),m=(l-Math.max(a.cutoutPercentage?l/100*a.cutoutPercentage:1,0))/t.getVisibleDatasetCount();this.outerRadius=l-m*this.index,this.innerRadius=this.outerRadius-m}updateElements(t,i,a,s){const l="reset"===s,c=this.chart,_=c.options.animation,M=this._cachedMeta.rScale,w=M.xCenter,A=M.yCenter,L=M.getIndexAngle(0)-.5*ie;let Y,Q=L;const et=360/this.countVisibleElements();for(Y=0;Y<i;++Y)Q+=this._computeAngle(Y,s,et);for(Y=i;Y<i+a;Y++){const yt=t[Y];let Pt=Q,Nt=Q+this._computeAngle(Y,s,et),Bt=c.getDataVisibility(Y)?M.getDistanceFromCenterForValue(this.getParsed(Y).r):0;Q=Nt,l&&(_.animateScale&&(Bt=0),_.animateRotate&&(Pt=Nt=L));const It={x:w,y:A,innerRadius:0,outerRadius:Bt,startAngle:Pt,endAngle:Nt,options:this.resolveDataElementOptions(Y,yt.active?"active":s)};this.updateElement(yt,Y,It,s)}}countVisibleElements(){let i=0;return this._cachedMeta.data.forEach((a,s)=>{!isNaN(this.getParsed(s).r)&&this.chart.getDataVisibility(s)&&i++}),i}_computeAngle(t,i,a){return this.chart.getDataVisibility(t)?we(this.resolveDataElementOptions(t,i).angle||a):0}})();var Ns=Object.freeze({__proto__:null,BarController:As,BubbleController:Rs,DoughnutController:eo,LineController:Fs,PieController:(()=>class e extends eo{static id="pie";static defaults={cutout:0,rotation:0,circumference:360,radius:"100%"}})(),PolarAreaController:na,RadarController:(()=>class e extends Xe{static id="radar";static defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}};static overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};getLabelAndValue(t){const i=this._cachedMeta.vScale,a=this.getParsed(t);return{label:i.getLabels()[t],value:""+i.getLabelForValue(a[i.axis])}}parseObjectData(t,i,a,s){return Io.bind(this)(t,i,a,s)}update(t){const i=this._cachedMeta,a=i.dataset,s=i.data||[],l=i.iScale.getLabels();if(a.points=s,"resize"!==t){const c=this.resolveDatasetElementOptions(t);this.options.showLine||(c.borderWidth=0),this.updateElement(a,void 0,{_loop:!0,_fullLoop:l.length===s.length,options:c},t)}this.updateElements(s,0,s.length,t)}updateElements(t,i,a,s){const l=this._cachedMeta.rScale,c="reset"===s;for(let m=i;m<i+a;m++){const _=t[m],M=this.resolveDataElementOptions(m,_.active?"active":s),w=l.getPointPositionForValue(m,this.getParsed(m).r),A=c?l.xCenter:w.x,L=c?l.yCenter:w.y,Q={x:A,y:L,angle:w.angle,skip:isNaN(A)||isNaN(L),options:M};this.updateElement(_,m,Q,s)}}})(),ScatterController:(()=>class e extends Xe{static id="scatter";static defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1};static overrides={interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}};getLabelAndValue(t){const i=this._cachedMeta,a=this.chart.data.labels||[],{xScale:s,yScale:l}=i,c=this.getParsed(t),m=s.getLabelForValue(c.x),_=l.getLabelForValue(c.y);return{label:a[t]||"",value:"("+m+", "+_+")"}}update(t){const i=this._cachedMeta,{data:a=[]}=i,s=this.chart._animationsDisabled;let{start:l,count:c}=ri(i,a,s);if(this._drawStart=l,this._drawCount=c,si(i)&&(l=0,c=a.length),this.options.showLine){this.datasetElementType||this.addElements();const{dataset:m,_dataset:_}=i;m._chart=this.chart,m._datasetIndex=this.index,m._decimated=!!_._decimated,m.points=a;const M=this.resolveDatasetElementOptions(t);M.segment=this.options.segment,this.updateElement(m,void 0,{animated:!s,options:M},t)}else this.datasetElementType&&(delete i.dataset,this.datasetElementType=!1);this.updateElements(a,l,c,t)}addElements(){const{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(t,i,a,s){const l="reset"===s,{iScale:c,vScale:m,_stacked:_,_dataset:M}=this._cachedMeta,w=this.resolveDataElementOptions(i,s),A=this.getSharedOptions(w),L=this.includeOptions(s,A),Q=c.axis,Y=m.axis,{spanGaps:et,segment:yt}=this.options,Pt=Oe(et)?et:Number.POSITIVE_INFINITY,Nt=this.chart._animationsDisabled||l||"none"===s;let Bt=i>0&&this.getParsed(i-1);for(let It=i;It<i+a;++It){const Lt=t[It],Kt=this.getParsed(It),Wt=Nt?Lt:{},Zt=W(Kt[Y]),ne=Wt[Q]=c.getPixelForValue(Kt[Q],It),ee=Wt[Y]=l||Zt?m.getBasePixel():m.getPixelForValue(_?this.applyStack(m,
1Kt,_):Kt[Y],It);Wt.skip=isNaN(ne)||isNaN(ee)||Zt,Wt.stop=It>0&&Math.abs(Kt[Q]-Bt[Q])>Pt,yt&&(Wt.parsed=Kt,Wt.raw=M.data[It]),L&&(Wt.options=A||this.resolveDataElementOptions(It,Lt.active?"active":s)),Nt||this.updateElement(Lt,It,Wt,s),Bt=Kt}this.updateSharedOptions(A,s,w)}getMaxOverflow(){const t=this._cachedMeta,i=t.data||[];if(!this.options.showLine){let m=0;for(let _=i.length-1;_>=0;--_)m=Math.max(m,i[_].size(this.resolveDataElementOptions(_))/2);return m>0&&m}const a=t.dataset,s=a.options&&a.options.borderWidth||0;if(!i.length)return s;const l=i[0].size(this.resolveDataElementOptions(0)),c=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(s,l,c)/2}})()});function pn(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class no{static override(n){Object.assign(no.prototype,n)}options;constructor(n){this.options=n||{}}init(){}formats(){return pn()}parse(){return pn()}format(){return pn()}add(){return pn()}diff(){return pn()}startOf(){return pn()}endOf(){return pn()}}var Ls__date=no;function Vs(e,n,t,i){const{controller:a,data:s,_sorted:l}=e,c=a._cachedMeta.iScale,m=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null;if(c&&n===c.axis&&"r"!==n&&l&&s.length){const _=c._reversePixels?Fi:Fe;if(!i){const M=_(s,n,t);if(m){const{vScale:w}=a._cachedMeta,{_parsed:A}=e,L=A.slice(0,M.lo+1).reverse().findIndex(Y=>!W(Y[w.axis]));M.lo-=Math.max(0,L);const Q=A.slice(M.hi).findIndex(Y=>!W(Y[w.axis]));M.hi+=Math.max(0,Q)}return M}if(a._sharedOptions){const M=s[0],w="function"==typeof M.getRange&&M.getRange(n);if(w){const A=_(s,n,t-w),L=_(s,n,t+w);return{lo:A.lo,hi:L.hi}}}}return{lo:0,hi:s.length-1}}function jn(e,n,t,i,a){const s=e.getSortedVisibleDatasetMetas(),l=t[n];for(let c=0,m=s.length;c<m;++c){const{index:_,data:M}=s[c],{lo:w,hi:A}=Vs(s[c],n,l,a);for(let L=w;L<=A;++L){const Q=M[L];Q.skip||i(Q,_,L)}}}function io(e,n,t,i,a){const s=[];return!a&&!e.isPointInArea(n)||jn(e,t,n,function(c,m,_){!a&&!le(c,e.chartArea,0)||c.inRange(n.x,n.y,i)&&s.push({element:c,datasetIndex:m,index:_})},!0),s}function oo(e,n,t,i,a,s){return s||e.isPointInArea(n)?"r"!==t||i?function js(e,n,t,i,a,s){let l=[];const c=function Bs(e){const n=-1!==e.indexOf("x"),t=-1!==e.indexOf("y");return function(i,a){const s=n?Math.abs(i.x-a.x):0,l=t?Math.abs(i.y-a.y):0;return Math.sqrt(Math.pow(s,2)+Math.pow(l,2))}}(t);let m=Number.POSITIVE_INFINITY;return jn(e,t,n,function _(M,w,A){const L=M.inRange(n.x,n.y,a);if(i&&!L)return;const Q=M.getCenterPoint(a);if(!s&&!e.isPointInArea(Q)&&!L)return;const et=c(n,Q);et<m?(l=[{element:M,datasetIndex:w,index:A}],m=et):et===m&&l.push({element:M,datasetIndex:w,index:A})}),l}(e,n,t,i,a,s):function zs(e,n,t,i){let a=[];return jn(e,t,n,function s(l,c,m){const{startAngle:_,endAngle:M}=l.getProps(["startAngle","endAngle"],i),{angle:w}=ti(l,{x:n.x,y:n.y});on(w,_,M)&&a.push({element:l,datasetIndex:c,index:m})}),a}(e,n,t,a):[]}function ia(e,n,t,i,a){const s=[],l="x"===t?"inXRange":"inYRange";let c=!1;return jn(e,t,n,(m,_,M)=>{m[l]&&m[l](n[t],a)&&(s.push({element:m,datasetIndex:_,index:M}),c=c||m.inRange(n.x,n.y,a))}),i&&!c?[]:s}var Gs={evaluateInteractionItems:jn,modes:{index(e,n,t,i){const a=dn(n,e),s=t.axis||"x",l=t.includeInvisible||!1,c=t.intersect?io(e,a,s,i,l):oo(e,a,s,!1,i,l),m=[];return c.length?(e.getSortedVisibleDatasetMetas().forEach(_=>{const M=c[0].index,w=_.data[M];w&&!w.skip&&m.push({element:w,datasetIndex:_.index,index:M})}),m):[]},dataset(e,n,t,i){const a=dn(n,e),s=t.axis||"xy",l=t.includeInvisible||!1;let c=t.intersect?io(e,a,s,i,l):oo(e,a,s,!1,i,l);if(c.length>0){const m=c[0].datasetIndex,_=e.getDatasetMeta(m).data;c=[];for(let M=0;M<_.length;++M)c.push({element:_[M],datasetIndex:m,index:M})}return c},point:(e,n,t,i)=>io(e,dn(n,e),t.axis||"xy",i,t.includeInvisible||!1),nearest:(e,n,t,i)=>oo(e,dn(n,e),t.axis||"xy",t.intersect,i,t.includeInvisible||!1),x:(e,n,t,i)=>ia(e,dn(n,e),"x",t.intersect,i),y:(e,n,t,i)=>ia(e,dn(n,e),"y",t.intersect,i)}};const oa=["left","top","right","bottom"];function Gn(e,n){return e.filter(t=>t.pos===n)}
vendor: 6,047 bytes, line 1
1function aa(e,n){return e.filter(t=>-1===oa.indexOf(t.pos)&&t.box.axis===n)}function Un(e,n){return e.sort((t,i)=>{const a=n?i:t,s=n?t:i;return a.weight===s.weight?a.index-s.index:a.weight-s.weight})}function ra(e,n,t,i){return Math.max(e[t],n[t])+Math.max(e[i],n[i])}function sa(e,n){e.top=Math.max(e.top,n.top),e.left=Math.max(e.left,n.left),e.bottom=Math.max(e.bottom,n.bottom),e.right=Math.max(e.right,n.right)}function Js(e,n,t,i){const{pos:a,box:s}=t,l=e.maxPadding;if(!tt(a)){t.size&&(e[a]-=t.size);const w=i[t.stack]||{size:0,count:1};w.size=Math.max(w.size,t.horizontal?s.height:s.width),t.size=w.size/w.count,e[a]+=t.size}s.getPadding&&sa(l,s.getPadding());const c=Math.max(0,n.outerWidth-ra(l,e,"left","right")),m=Math.max(0,n.outerHeight-ra(l,e,"top","bottom")),_=c!==e.w,M=m!==e.h;return e.w=c,e.h=m,t.horizontal?{same:_,other:M}:{same:M,other:_}}function Qs(e,n){const t=n.maxPadding;return function i(a){const s={left:0,top:0,right:0,bottom:0};return a.forEach(l=>{s[l]=Math.max(n[l],t[l])}),s}(e?["left","right"]:["top","bottom"])}function Hn(e,n,t,i){const a=[];let s,l,c,m,_,M;for(s=0,l=e.length,_=0;s<l;++s){c=e[s],m=c.box,m.update(c.width||n.w,c.height||n.h,Qs(c.horizontal,n));const{same:w,other:A}=Js(n,t,c,i);_|=w&&a.length,M=M||A,m.fullSize||a.push(c)}return _&&Hn(a,n,t,i)||M}function fi(e,n,t,i,a){e.top=t,e.left=n,e.right=n+i,e.bottom=t+a,e.width=i,e.height=a}function la(e,n,t,i){const a=t.padding;let{x:s,y:l}=n;for(const c of e){const m=c.box,_=i[c.stack]||{count:1,placed:0,weight:1},M=c.stackWeight/_.weight||1;if(c.horizontal){const w=n.w*M,A=_.size||m.height;je(_.start)&&(l=_.start),m.fullSize?fi(m,a.left,l,t.outerWidth-a.right-a.left,A):fi(m,n.left+_.placed,l,w,A),_.start=l,_.placed+=w,l=m.bottom}else{const w=n.h*M,A=_.size||m.width;je(_.start)&&(s=_.start),m.fullSize?fi(m,s,a.top,A,t.outerHeight-a.bottom-a.top):fi(m,s,n.top+_.placed,A,w),_.start=s,_.placed+=w,s=m.right}}n.x=s,n.y=l}var ye={addBox(e,n){e.boxes||(e.boxes=[]),n.fullSize=n.fullSize||!1,n.position=n.position||"top",n.weight=n.weight||0,n._layers=n._layers||function(){return[{z:0,draw(t){n.draw(t)}}]},e.boxes.push(n)},removeBox(e,n){const t=e.boxes?e.boxes.indexOf(n):-1;-1!==t&&e.boxes.splice(t,1)},configure(e,n,t){n.fullSize=t.fullSize,n.position=t.position,n.weight=t.weight},update(e,n,t,i){if(!e)return;const a=Me(e.options.layout.padding),s=Math.max(n-a.width,0),l=Math.max(t-a.height,0),c=function $s(e){const n=function Us(e){const n=[];let t,i,a,s,l,c;for(t=0,i=(e||[]).length;t<i;++t)a=e[t],({position:s,options:{stack:l,stackWeight:c=1}}=a),n.push({index:t,box:a,pos:s,horizontal:a.isHorizontal(),weight:a.weight,stack:l&&s+l,stackWeight:c});return n}(e),t=Un(n.filter(_=>_.box.fullSize),!0),i=Un(Gn(n,"left"),!0),a=Un(Gn(n,"right")),s=Un(Gn(n,"top"),!0),l=Un(Gn(n,"bottom")),c=aa(n,"x"),m=aa(n,"y");return{fullSize:t,leftAndTop:i.concat(s),rightAndBottom:a.concat(m).concat(l).concat(c),chartArea:Gn(n,"chartArea"),vertical:i.concat(a).concat(m),horizontal:s.concat(l).concat(c)}}(e.boxes),m=c.vertical,_=c.horizontal;it(e.boxes,Y=>{"function"==typeof Y.beforeLayout&&Y.beforeLayout()});const M=m.reduce((Y,et)=>et.box.options&&!1===et.box.options.display?Y:Y+1,0)||1,w=Object.freeze({outerWidth:n,outerHeight:t,padding:a,availableWidth:s,availableHeight:l,vBoxMaxWidth:s/2/M,hBoxMaxHeight:l/2}),A=Object.assign({},a);sa(A,Me(i));const L=Object.assign({maxPadding:A,w:s,h:l,x:a.left,y:a.top},a),Q=function Ws(e,n){const t=function Hs(e){const n={};for(const t of e){const{stack:i,pos:a,stackWeight:s}=t;if(!i||!oa.includes(a))continue;const l=n[i]||(n[i]={count:0,placed:0,weight:0,size:0});l.count++,l.weight+=s}return n}(e),{vBoxMaxWidth:i,hBoxMaxHeight:a}=n;let s,l,c;for(s=0,l=e.length;s<l;++s){c=e[s];const{fullSize:m}=c.box,_=t[c.stack],M=_&&c.stackWeight/_.weight;c.horizontal?(c.width=M?M*i:m&&n.availableWidth,c.height=a):(c.width=i,c.height=M?M*a:m&&n.availableHeight)}return t}(m.concat(_),w);Hn(c.fullSize,L,w,Q),Hn(m,L,w,Q),Hn(_,L,w,Q)&&Hn(m,L,w,Q),function Ys(e){const n=e.maxPadding;function t(i){const a=Math.max(n[i]-e[i],0);return e[i]+=a,a}e.y+=t("top"),e.x+=t("left"),t("right"),t("bottom")}(L),la(c.leftAndTop,L,w,Q),L.x+=L.w,L.y+=L.h,la(c.rightAndBottom,L,w,Q),e.chartArea={left:L.left,top:L.top,right:L.left+L.w,bottom:L.top+L.h,height:L.h,width:L.w},it(c.chartArea,Y=>{const et=Y.box;Object.assign(et,e.chartArea),et.update(L.w,L.h,{left:0,top:0,right:0,bottom:0})})}};class ca{acquireContext(n,t){}releaseContext(n){return!1}addEventListener(n,t,i){}removeEventListener(n,t,i){}getDevicePixelRatio(){return 1}getMaximumSize(n,t,i,a){return t=Math.max(0,t||n.width),i=i||n.height,{width:t,height:Math.max(0,a?Math.floor(t/a):i)}}isAttached(n){return!0}updateConfig(n){}}class Ks extends ca{acquireContext(n){return n&&n.getContext&&n.getContext("2d")||null}updateConfig(n){n.options.animation=!1}}const _i="$chartjs",Xs={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},da=e=>null===e||""===e,ma=!!Kr&&{passive:!0};function tl(e,n,t){e&&e.canvas&&e.canvas.removeEventListener(n,t,ma)}function Ci(e,n){for(const t of e)if(t===n||t.contains(n))return!0}function nl(e,n,t){const i=e.canvas,a=new MutationObserver(s=>{let l=!1;for(const c of s)l=l||Ci(c.addedNodes,i),l=l&&!Ci(c.removedNodes,i);l&&t()});return a.observe(document,{childList:!0,subtree:!0}),a}function il(e,n,t){const i=e.canvas,a=new MutationObserver(s=>{let l=!1;for(const c of s)l=l||Ci(c.removedNodes,i),l=l&&!Ci(c.addedNodes,i);l&&t()});return a.observe(document,{childList:!0,subtree:!0}),a}const Wn=new Map;let pa=0;function ga(){const e=window.devicePixelRatio;e!==pa&&(pa=e,Wn.forEach((n,t)=>{t.currentDevicePixelRatio!==e&&n()}))}function rl(e,n,t){const i=e.canvas,a=i&&Ki(i);if(!a)return;const s=ai((c,m)=>{const _=a.clientWidth;t(c,m),_<a.clientWidth&&t()},window),l=new ResizeObserver(c=>{const m=c[0],_=m.contentRect.width,M=m.contentRect.height;0===_&&0===M||s(_,M)});
vendor: 6,048 bytes, line 1
1return l.observe(a),function ol(e,n){Wn.size||window.addEventListener("resize",ga),Wn.set(e,n)}(e,s),l}function ao(e,n,t){t&&t.disconnect(),"resize"===n&&function al(e){Wn.delete(e),Wn.size||window.removeEventListener("resize",ga)}(e)}function sl(e,n,t){const i=e.canvas,a=ai(s=>{null!==e.ctx&&t(function el(e,n){const t=Xs[e.type]||e.type,{x:i,y:a}=dn(e,n);return{type:t,chart:n,native:e,x:void 0!==i?i:null,y:void 0!==a?a:null}}(s,e))},e);return function qs(e,n,t){e&&e.addEventListener(n,t,ma)}(i,n,a),a}class ll extends ca{acquireContext(n,t){const i=n&&n.getContext&&n.getContext("2d");return i&&i.canvas===n?(function Zs(e,n){const t=e.style,i=e.getAttribute("height"),a=e.getAttribute("width");if(e[_i]={initial:{height:i,width:a,style:{display:t.display,height:t.height,width:t.width}}},t.display=t.display||"block",t.boxSizing=t.boxSizing||"border-box",da(a)){const s=ko(e,"width");void 0!==s&&(e.width=s)}if(da(i))if(""===e.style.height)e.height=e.width/(n||2);else{const s=ko(e,"height");void 0!==s&&(e.height=s)}}(n,t),i):null}releaseContext(n){const t=n.canvas;if(!t[_i])return!1;const i=t[_i].initial;["height","width"].forEach(s=>{const l=i[s];W(l)?t.removeAttribute(s):t.setAttribute(s,l)});const a=i.style||{};return Object.keys(a).forEach(s=>{t.style[s]=a[s]}),t.width=t.width,delete t[_i],!0}addEventListener(n,t,i){this.removeEventListener(n,t),(n.$proxies||(n.$proxies={}))[t]=({attach:nl,detach:il,resize:rl}[t]||sl)(n,t,i)}removeEventListener(n,t){const i=n.$proxies||(n.$proxies={}),a=i[t];a&&(({attach:ao,detach:ao,resize:ao}[t]||tl)(n,t,a),i[t]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(n,t,i,a){return function Qr(e,n,t,i){const a=ui(e),s=cn(a,"margin"),l=gi(a.maxWidth,e,"clientWidth")||Je,c=gi(a.maxHeight,e,"clientHeight")||Je,m=function Yr(e,n,t){let i,a;if(void 0===n||void 0===t){const s=e&&Ki(e);if(s){const l=s.getBoundingClientRect(),c=ui(s),m=cn(c,"border","width"),_=cn(c,"padding");n=l.width-_.width-m.width,t=l.height-_.height-m.height,i=gi(c.maxWidth,s,"clientWidth"),a=gi(c.maxHeight,s,"clientHeight")}else n=e.clientWidth,t=e.clientHeight}return{width:n,height:t,maxWidth:i||Je,maxHeight:a||Je}}(e,n,t);let{width:_,height:M}=m;if("content-box"===a.boxSizing){const A=cn(a,"border","width"),L=cn(a,"padding");_-=L.width+A.width,M-=L.height+A.height}return _=Math.max(0,_-s.width),M=Math.max(0,i?_/i:M-s.height),_=Ke(Math.min(_,l,m.maxWidth)),M=Ke(Math.min(M,c,m.maxHeight)),_&&!M&&(M=Ke(_/2)),(void 0!==n||void 0!==t)&&i&&m.height&&M>m.height&&(M=m.height,_=Ke(Math.floor(M*i))),{width:_,height:M}}(n,t,i,a)}isAttached(n){const t=n&&Ki(n);return!(!t||!t.isConnected)}}class We{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(n){const{x:t,y:i}=this.getProps(["x","y"],n);return{x:t,y:i}}hasValue(){return Oe(this.x)&&Oe(this.y)}getProps(n,t){const i=this.$animations;if(!t||!i)return this;const a={};return n.forEach(s=>{a[s]=i[s]&&i[s].active()?i[s]._to:this[s]}),a}}function vi(e,n,t,i,a){const s=nt(i,0),l=Math.min(nt(a,e.length),e.length);let m,_,M,c=0;for(t=Math.ceil(t),a&&(m=a-i,t=m/Math.floor(m/t)),M=s;M<0;)c++,M=Math.round(s+c*t);for(_=Math.max(s,0);_<l;_++)_===M&&(n.push(e[_]),c++,M=Math.round(s+c*t))}const ua=(e,n,t)=>"top"===n||"left"===n?e[n]+t:e[n]-t,ha=(e,n)=>Math.min(n||e,e);function fa(e,n){const t=[],i=e.length/n,a=e.length;let s=0;for(;s<a;s+=i)t.push(e[Math.floor(s)]);return t}function _l(e,n,t){const i=e.ticks.length,a=Math.min(n,i-1),s=e._startPixel,l=e._endPixel,c=1e-6;let _,m=e.getPixelForTick(a);if(!(t&&(_=1===i?Math.max(m-s,l-m):0===n?(e.getPixelForTick(1)-m)/2:(m-e.getPixelForTick(a-1))/2,m+=a<n?_:-_,m<s-c||m>l+c)))return m}function $n(e){return e.drawTicks?e.tickLength:0}function _a(e,n){if(!e.display)return 0;const t=Ce(e.font,n),i=Me(e.padding);return(E(e.text)?e.text.length:1)*t.lineHeight+i.height}function xl(e,n,t){let i=kn(e);return(t&&"right"!==n||!t&&"right"===n)&&(i=(e=>"left"===e?"right":"right"===e?"left":e)(i)),i}class gn extends We{constructor(n){super(),this.id=n.id,this.type=n.type,this.options=void 0,this.ctx=n.ctx,this.chart=n.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(n){this.options=n.setContext(this.getContext()),this.axis=n.axis,this._userMin=this.parse(n.min),this._userMax=this.parse(n.max),this._suggestedMin=this.parse(n.suggestedMin),this._suggestedMax=this.parse(n.suggestedMax)}parse(n,t){return n}getUserBounds(){let{_userMin:n,_userMax:t,_suggestedMin:i,_suggestedMax:a}=this;return n=Et(n,Number.POSITIVE_INFINITY),t=Et(t,Number.NEGATIVE_INFINITY),i=Et(i,Number.POSITIVE_INFINITY),a=Et(a,Number.NEGATIVE_INFINITY),{min:Et(n,i),max:Et(t,a),minDefined:V(n),maxDefined:V(t)}}getMinMax(n){let l,{min:t,max:i,minDefined:a,maxDefined:s}=this.getUserBounds();if(a&&s)return{min:t,max:i};const c=this.getMatchingVisibleMetas();for(let m=0,_=c.length;m<_;++m)l=c[m].controller.getMinMax(this,n),a||(t=Math.min(t,l.min)),s||(i=Math.max(i,l.max));return t=s&&t>i?i:t,i=a&&t>i?t:i,{min:Et(t,Et(i,t)),max:Et(i,Et(t,i))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const n=this.chart.data;return this.options.labels||(this.isHorizontal()?n.xLabels:n.yLabels)||n.labels||[]}
vendor: 9,029 bytes, line 1
1getLabelItems(n=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(n))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Ut(this.options.beforeUpdate,[this])}update(n,t,i){const{beginAtZero:a,grace:s,ticks:l}=this.options,c=l.sampleSize;this.beforeUpdate(),this.maxWidth=n,this.maxHeight=t,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function wr(e,n,t){const{min:i,max:a}=e,s=Ct(n,(a-i)/2),l=(c,m)=>t&&0===c?0:c+m;return{min:l(i,-Math.abs(s)),max:l(a,s)}}(this,s,a),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const m=c<this.ticks.length;this._convertTicksToLabels(m?fa(this.ticks,c):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),l.display&&(l.autoSkip||"auto"===l.source)&&(this.ticks=function dl(e,n){const t=e.options.ticks,i=function ml(e){const n=e.options.offset,t=e._tickSize();return Math.floor(Math.min(e._length/t+(n?0:1),e._maxLength/t))}(e),a=Math.min(t.maxTicksLimit||i,i),s=t.major.enabled?function gl(e){const n=[];let t,i;for(t=0,i=e.length;t<i;t++)e[t].major&&n.push(t);return n}(n):[],l=s.length,c=s[0],m=s[l-1],_=[];if(l>a)return function ul(e,n,t,i){let l,a=0,s=t[0];for(i=Math.ceil(i),l=0;l<e.length;l++)l===s&&(n.push(e[l]),a++,s=t[a*i])}(n,_,s,l/a),_;const M=function pl(e,n,t){const i=function hl(e){const n=e.length;let t,i;if(n<2)return!1;for(i=e[0],t=1;t<n;++t)if(e[t]-e[t-1]!==i)return!1;return i}(e),a=n.length/t;if(!i)return Math.max(a,1);const s=function qt(e){const n=[],t=Math.sqrt(e);let i;for(i=1;i<t;i++)e%i===0&&(n.push(i),n.push(e/i));return t===(0|t)&&n.push(t),n.sort((a,s)=>a-s).pop(),n}(i);for(let l=0,c=s.length-1;l<c;l++){const m=s[l];if(m>a)return m}return Math.max(a,1)}(s,n,a);if(l>0){let w,A;const L=l>1?Math.round((m-c)/(l-1)):null;for(vi(n,_,M,W(L)?0:c-L,c),w=0,A=l-1;w<A;w++)vi(n,_,M,s[w],s[w+1]);return vi(n,_,M,m,W(L)?n.length:m+L),_}return vi(n,_,M),_}(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),m&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t,i,n=this.options.reverse;this.isHorizontal()?(t=this.left,i=this.right):(t=this.top,i=this.bottom,n=!n),this._startPixel=t,this._endPixel=i,this._reversePixels=n,this._length=i-t,this._alignToPixels=this.options.alignToPixels}afterUpdate(){Ut(this.options.afterUpdate,[this])}beforeSetDimensions(){Ut(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){Ut(this.options.afterSetDimensions,[this])}_callHooks(n){this.chart.notifyPlugins(n,this.getContext()),Ut(this.options[n],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Ut(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(n){const t=this.options.ticks;let i,a,s;for(i=0,a=n.length;i<a;i++)s=n[i],s.label=Ut(t.callback,[s.value,i,n],this)}afterTickToLabelConversion(){Ut(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Ut(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const n=this.options,t=n.ticks,i=ha(this.ticks.length,n.ticks.maxTicksLimit),a=t.minRotation||0,s=t.maxRotation;let c,m,_,l=a;if(!this._isVisible()||!t.display||a>=s||i<=1||!this.isHorizontal())return void(this.labelRotation=a);const M=this._getLabelSizes(),w=M.widest.width,A=M.highest.height,L=_e(this.chart.width-w,0,this.maxWidth);c=n.offset?this.maxWidth/i:L/(i-1),w+6>c&&(c=L/(i-(n.offset?.5:1)),m=this.maxHeight-$n(n.grid)-t.padding-_a(n.title,this.chart.options.font),_=Math.sqrt(w*w+A*A),l=nn(Math.min(Math.asin(_e((M.highest.height+6)/c,-1,1)),Math.asin(_e(m/_,-1,1))-Math.asin(_e(A/_,-1,1)))),l=Math.max(a,Math.min(s,l))),this.labelRotation=l}afterCalculateLabelRotation(){Ut(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Ut(this.options.beforeFit,[this])}fit(){const n={width:0,height:0},{chart:t,options:{ticks:i,title:a,grid:s}}=this,l=this._isVisible(),c=this.isHorizontal();if(l){const m=_a(a,t.options.font);if(c?(n.width=this.maxWidth,n.height=$n(s)+m):(n.height=this.maxHeight,n.width=$n(s)+m),i.display&&this.ticks.length){const{first:_,last:M,widest:w,highest:A}=this._getLabelSizes(),L=2*i.padding,Q=we(this.labelRotation),Y=Math.cos(Q),et=Math.sin(Q);c?n.height=Math.min(this.maxHeight,n.height+(i.mirror?0:et*w.width+Y*A.height)+L):n.width=Math.min(this.maxWidth,n.width+(i.mirror?0:Y*w.width+et*A.height)+L),this._calculatePadding(_,M,et,Y)}}this._handleMargins(),c?(this.width=this._length=t.width-this._margins.left-this._margins.right,this.height=n.height):(this.width=n.width,this.height=this._length=t.height-this._margins.top-this._margins.bottom)}_calculatePadding(n,t,i,a){const{ticks:{align:s,padding:l},position:c}=this.options,m=0!==this.labelRotation,_="top"!==c&&"x"===this.axis;if(this.isHorizontal()){const M=this.getPixelForTick(0)-this.left,w=this.right-this.getPixelForTick(this.ticks.length-1);let A=0,L=0;m?_?(A=a*n.width,L=i*t.height):(A=i*n.height,L=a*t.width):"start"===s?L=t.width:"end"===s?A=n.width:"inner"!==s&&(A=n.width/2,L=t.width/2),this.paddingLeft=Math.max((A-M+l)*this.width/(this.width-M),0),this.paddingRight=Math.max((L-w+l)*this.width/(this.width-w),0)}else{let M=t.height/2,w=n.height/2;"start"===s?(M=0,w=n.height):"end"===s&&(M=t.height,w=0),this.paddingTop=M+l,this.paddingBottom=w+l}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Ut(this.options.afterFit,[this])}isHorizontal(){const{axis:n,position:t}=this.options;return"top"===t||"bottom"===t||"x"===n}isFullSize(){return this.options.fullSize}_convertTicksToLabels(n){let t,i;for(this.beforeTickToLabelConversion(),this.generateTickLabels(n),t=0,i=n.length;t<i;t++)W(n[t].label)&&(n.splice(t,1),i--,t--);this.afterTickToLabelConversion()}_getLabelSizes(){let n=this._labelSizes;if(!n){const t=this.options.ticks.sampleSize;let i=this.ticks;t<i.length&&(i=fa(i,t)),this._labelSizes=n=this._computeLabelSizes(i,i.length,this.options.ticks.maxTicksLimit)}return n}_computeLabelSizes(n,t,i){const{ctx:a,_longestTextCache:s}=this,l=[],c=[],m=Math.floor(t/ha(t,i));let w,A,L,Q,Y,et,yt,Pt,Nt,Bt,It,_=0,M=0;for(w=0;w<t;w+=m){if(Q=n[w].label,Y=this._resolveTickFontOptions(w),a.font=et=Y.string,yt=s[et]=s[et]||{data:{},gc:[]},Pt=Y.lineHeight,Nt=Bt=0,W(Q)||E(Q)){if(E(Q))for(A=0,L=Q.length;A<L;++A)It=Q[A],!W(It)&&!E(It)&&(Nt=Rt(a,yt.data,yt.gc,Nt,It),Bt+=Pt)}else Nt=Rt(a,yt.data,yt.gc,Nt,Q),Bt=Pt;l.push(Nt),c.push(Bt),_=Math.max(Nt,_),M=Math.max(Bt,M)}!function Cl(e,n){it(e,t=>{const i=t.gc,a=i.length/2;let s;if(a>n){for(s=0;s<a;++s)delete t.data[i[s]];i.splice(0,a)}})}(s,t);const Lt=l.indexOf(_),Kt=c.indexOf(M),Wt=Zt=>({width:l[Zt]||0,height:c[Zt]||0});return{first:Wt(0),last:Wt(t-1),widest:Wt(Lt),highest:Wt(Kt),widths:l,heights:c}}getLabelForValue(n){return n}getPixelForValue(n,t){return NaN}getValueForPixel(n){}getPixelForTick(n){const t=this.ticks;return n<0||n>t.length-1?null:this.getPixelForValue(t[n].value)}getPixelForDecimal(n){this._reversePixels&&(n=1-n);const t=this._startPixel+n*this._length;return function ki(e){return _e(e,-32768,32767)}(this._alignToPixels?z(this.chart,t,0):t)}getDecimalForPixel(n){const t=(n-this._startPixel)/this._length;return this._reversePixels?1-t:t}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:n,max:t}=this;return n<0&&t<0?t:n>0&&t>0?n:0}getContext(n){const t=this.ticks||[];if(n>=0&&n<t.length){const i=t[n];return i.$context||(i.$context=function bl(e,n,t){return Qe(e,{tick:t,index:n,type:"tick"})}(this.getContext(),n,i))}return this.$context||(this.$context=function vl(e,n){return Qe(e,{scale:n,type:"scale"})}(this.chart.getContext(),this))}_tickSize(){const n=this.options.ticks,t=we(this.labelRotation),i=Math.abs(Math.cos(t)),a=Math.abs(Math.sin(t)),s=this._getLabelSizes(),l=n.autoSkipPadding||0,c=s?s.widest.width+l:0,m=s?s.highe
vendor: 13,136 bytes, line 1
1st.height+l:0;return this.isHorizontal()?m*i>c*a?c/i:m/a:m*a<c*i?m/i:c/a}_isVisible(){const n=this.options.display;return"auto"!==n?!!n:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(n){const t=this.axis,i=this.chart,a=this.options,{grid:s,position:l,border:c}=a,m=s.offset,_=this.isHorizontal(),w=this.ticks.length+(m?1:0),A=$n(s),L=[],Q=c.setContext(this.getContext()),Y=Q.display?Q.width:0,et=Y/2,yt=function(ue){return z(i,ue,Y)};let Pt,Nt,Bt,It,Lt,Kt,Wt,Zt,ne,ee,ae,xe;if("top"===l)Pt=yt(this.bottom),Kt=this.bottom-A,Zt=Pt-et,ee=yt(n.top)+et,xe=n.bottom;else if("bottom"===l)Pt=yt(this.top),ee=n.top,xe=yt(n.bottom)-et,Kt=Pt+et,Zt=this.top+A;else if("left"===l)Pt=yt(this.right),Lt=this.right-A,Wt=Pt-et,ne=yt(n.left)+et,ae=n.right;else if("right"===l)Pt=yt(this.left),ne=n.left,ae=yt(n.right)-et,Lt=Pt+et,Wt=this.left+A;else if("x"===t){if("center"===l)Pt=yt((n.top+n.bottom)/2+.5);else if(tt(l)){const ue=Object.keys(l)[0];Pt=yt(this.chart.scales[ue].getPixelForValue(l[ue]))}ee=n.top,xe=n.bottom,Kt=Pt+et,Zt=Kt+A}else if("y"===t){if("center"===l)Pt=yt((n.left+n.right)/2);else if(tt(l)){const ue=Object.keys(l)[0];Pt=yt(this.chart.scales[ue].getPixelForValue(l[ue]))}Lt=Pt-et,Wt=Lt-A,ne=n.left,ae=n.right}const De=nt(a.ticks.maxTicksLimit,w),me=Math.max(1,Math.ceil(w/De));for(Nt=0;Nt<w;Nt+=me){const ue=this.getContext(Nt),fe=s.setContext(ue),Le=c.setContext(ue),Pe=fe.lineWidth,Sn=fe.color,Ai=Le.dash||[],On=Le.dashOffset,Kn=fe.tickWidth,hn=fe.tickColor,Xn=fe.tickBorderDash||[],fn=fe.tickBorderDashOffset;Bt=_l(this,Nt,m),void 0!==Bt&&(It=z(i,Bt,Pe),_?Lt=Wt=ne=ae=It:Kt=Zt=ee=xe=It,L.push({tx1:Lt,ty1:Kt,tx2:Wt,ty2:Zt,x1:ne,y1:ee,x2:ae,y2:xe,width:Pe,color:Sn,borderDash:Ai,borderDashOffset:On,tickWidth:Kn,tickColor:hn,tickBorderDash:Xn,tickBorderDashOffset:fn}))}return this._ticksLength=w,this._borderValue=Pt,L}_computeLabelItems(n){const t=this.axis,i=this.options,{position:a,ticks:s}=i,l=this.isHorizontal(),c=this.ticks,{align:m,crossAlign:_,padding:M,mirror:w}=s,A=$n(i.grid),L=A+M,Q=w?-M:L,Y=-we(this.labelRotation),et=[];let yt,Pt,Nt,Bt,It,Lt,Kt,Wt,Zt,ne,ee,ae,xe="middle";if("top"===a)Lt=this.bottom-Q,Kt=this._getXAxisLabelAlignment();else if("bottom"===a)Lt=this.top+Q,Kt=this._getXAxisLabelAlignment();else if("left"===a){const me=this._getYAxisLabelAlignment(A);Kt=me.textAlign,It=me.x}else if("right"===a){const me=this._getYAxisLabelAlignment(A);Kt=me.textAlign,It=me.x}else if("x"===t){if("center"===a)Lt=(n.top+n.bottom)/2+L;else if(tt(a)){const me=Object.keys(a)[0];Lt=this.chart.scales[me].getPixelForValue(a[me])+L}Kt=this._getXAxisLabelAlignment()}else if("y"===t){if("center"===a)It=(n.left+n.right)/2-L;else if(tt(a)){const me=Object.keys(a)[0];It=this.chart.scales[me].getPixelForValue(a[me])}Kt=this._getYAxisLabelAlignment(A).textAlign}"y"===t&&("start"===m?xe="top":"end"===m&&(xe="bottom"));const De=this._getLabelSizes();for(yt=0,Pt=c.length;yt<Pt;++yt){Nt=c[yt],Bt=Nt.label;const me=s.setContext(this.getContext(yt));Wt=this.getPixelForTick(yt)+s.labelOffset,Zt=this._resolveTickFontOptions(yt),ne=Zt.lineHeight,ee=E(Bt)?Bt.length:1;const ue=ee/2,fe=me.color,Le=me.textStrokeColor,Pe=me.textStrokeWidth;let Ai,Sn=Kt;if(l?(It=Wt,"inner"===Kt&&(Sn=yt===Pt-1?this.options.reverse?"left":"right":0===yt?this.options.reverse?"right":"left":"center"),ae="top"===a?"near"===_||0!==Y?-ee*ne+ne/2:"center"===_?-De.highest.height/2-ue*ne+ne:ne/2-De.highest.height:"near"===_||0!==Y?ne/2:"center"===_?De.highest.height/2-ue*ne:De.highest.height-ee*ne,w&&(ae*=-1),0!==Y&&!me.showLabelBackdrop&&(It+=ne/2*Math.sin(Y))):(Lt=Wt,ae=(1-ee)*ne/2),me.showLabelBackdrop){const On=Me(me.backdropPadding),Kn=De.heights[yt],hn=De.widths[yt];let Xn=ae-On.top,fn=0-On.left;switch(xe){case"middle":Xn-=Kn/2;break;case"bottom":Xn-=Kn}switch(Kt){case"center":fn-=hn/2;break;case"right":fn-=hn;break;case"inner":yt===Pt-1?fn-=hn:yt>0&&(fn-=hn/2)}Ai={left:fn,top:Xn,width:hn+On.width,height:Kn+On.height,color:me.backdropColor}}et.push({label:Bt,font:Zt,textOffset:ae,options:{rotation:Y,color:fe,strokeColor:Le,strokeWidth:Pe,textAlign:Sn,textBaseline:xe,translation:[It,Lt],backdrop:Ai}})}return et}_getXAxisLabelAlignment(){const{position:n,ticks:t}=this.options;if(-we(this.labelRotation))return"top"===n?"left":"right";let a="center";return"start"===t.align?a="left":"end"===t.align?a="right":"inner"===t.align&&(a="inner"),a}_getYAxisLabelAlignment(n){const{position:t,ticks:{crossAlign:i,mirror:a,padding:s}}=this.options,c=n+s,m=this._getLabelSizes().widest.width;let _,M;return"left"===t?a?(M=this.right+s,"near"===i?_="left":"center"===i?(_="center",M+=m/2):(_="right",M+=m)):(M=this.right-c,"near"===i?_="right":"center"===i?(_="center",M-=m/2):(_="left",M=this.left)):"right"===t?a?(M=this.left+s,"near"===i?_="right":"center"===i?(_="center",M-=m/2):(_="left",M-=m)):(M=this.left+c,"near"===i?_="left":"center"===i?(_="center",M+=m/2):(_="right",M=this.right)):_="right",{textAlign:_,x:M}}_computeLabelArea(){if(this.options.ticks.mirror)return;const n=this.chart,t=this.options.position;return"left"===t||"right"===t?{top:0,left:this.left,bottom:n.height,right:this.right}:"top"===t||"bottom"===t?{top:this.top,left:0,bottom:this.bottom,right:n.width}:void 0}drawBackground(){const{ctx:n,options:{backgroundColor:t},left:i,top:a,width:s,height:l}=this;t&&(n.save(),n.fillStyle=t,n.fillRect(i,a,s,l),n.restore())}getLineWidthForValue(n){const t=this.options.grid;if(!this._isVisible()||!t.display)return 0;const a=this.ticks.findIndex(s=>s.value===n);return a>=0?t.setContext(this.getContext(a)).lineWidth:0}drawGrid(n){const t=this.options.grid,i=this.ctx,a=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(n));let s,l;const c=(m,_,M)=>{!M.width||!M.color||(i.save(),i.lineWidth=M.width,i.strokeStyle=M.color,i.setLineDash(M.borderDash||[]),i.lineDashOffset=M.borderDashOffset,i.beginPath(),i.moveTo(m.x,m.y),i.lineTo(_.x,_.y),i.stroke(),i.restore())};if(t.display)for(s=0,l=a.length;s<l;++s){const m=a[s];t.drawOnChartArea&&c({x:m.x1,y:m.y1},{x:m.x2,y:m.y2},m),t.drawTicks&&c({x:m.tx1,y:m.ty1},{x:m.tx2,y:m.ty2},{color:m.tickColor,width:m.tickWidth,borderDash:m.tickBorderDash,borderDashOffset:m.tickBorderDashOffset})}}drawBorder(){const{chart:n,ctx:t,options:{border:i,grid:a}}=this,s=i.setContext(this.getContext()),l=i.display?s.width:0;if(!l)return;const c=a.setContext(this.getContext(0)).lineWidth,m=this._borderValue;let _,M,w,A;this.isHorizontal()?(_=z(n,this.left,l)-l/2,M=z(n,this.right,c)+c/2,w=A=m):(w=z(n,this.top,l)-l/2,A=z(n,this.bottom,c)+c/2,_=M=m),t.save(),t.lineWidth=s.width,t.strokeStyle=s.color,t.beginPath(),t.moveTo(_,w),t.lineTo(M,A),t.stroke(),t.restore()}drawLabels(n){if(!this.options.ticks.display)return;const i=this.ctx,a=this._computeLabelArea();a&&ce(i,a);const s=this.getLabelItems(n);for(const l of s)sn(i,l.label,0,l.textOffset,l.font,l.options);a&&re(i)}drawTitle(){const{ctx:n,options:{position:t,title:i,reverse:a}}=this;if(!i.display)return;const s=Ce(i.font),l=Me(i.padding),c=i.align;let m=s.lineHeight/2;"bottom"===t||"center"===t||tt(t)?(m+=l.bottom,E(i.text)&&(m+=s.lineHeight*(i.text.length-1))):m+=l.top;const{titleX:_,titleY:M,maxWidth:w,rotation:A}=function Ml(e,n,t,i){const{top:a,left:s,bottom:l,right:c,chart:m}=e,{chartArea:_,scales:M}=m;let A,L,Q,w=0;const Y=l-a,et=c-s;if(e.isHorizontal()){if(L=be(i,s,c),tt(t)){const yt=Object.keys(t)[0];Q=M[yt].getPixelForValue(t[yt])+Y-n}else Q="center"===t?(_.bottom+_.top)/2+Y-n:ua(e,t,n);A=c-s}else{if(tt(t)){const yt=Object.keys(t)[0];L=M[yt].getPixelForValue(t[yt])-et+n}else L="center"===t?(_.left+_.right)/2-et+n:ua(e,t,n);Q=be(i,l,a),w="left"===t?-ge:ge}return{titleX:L,titleY:Q,maxWidth:A,rotation:w}}(this,m,t,c);sn(n,i.text,0,0,s,{color:i.color,maxWidth:w,rotation:A,textAlign:xl(c,t,a),textBaseline:"middle",translation:[_,M]})}draw(n){this._isVisible()&&(this.drawBackground(),this.drawGrid(n),this.drawBorder(),this.drawTitle(),this.drawLabels(n))}_layers(){const n=this.options,t=n.ticks&&n.ticks.z||0,i=nt(n.grid&&n.grid.z,-1),a=nt(n.border&&n.border.z,0);return this._isVisible()&&this.draw===gn.prototype.draw?[{z:i,draw:s=>{this.drawBackground(),this.drawGrid(s),this.drawTitle()}},{z:a,draw:()=>{this.drawBorder()}},{z:t,draw:s=>{this.drawLabels(s)}}]:[{z:t,draw:s=>{this.draw(s)}}]}getMatchingVisibleMetas(n){const t=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",a=[];let s,l;for(s=0,l=t.length;s<l;++s){const c=t[s];c[i]===this.id&&(!n||c.type===n)&&a.push(c)}return a}_resolveTickFontOptions(n){return Ce(this.options.ticks.setContext(this.getContext(n)).font)}_maxDigits(){const n=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/n}}class bi{constructor(n,t,i){this.type=n,this.scope=t,this.override=i,this.items=Object.create(null)}isForType(n){return Object.prototype.isPrototypeOf.call(this.type.prototype,n.prototype)}register(n){const t=Object.getPrototypeOf(n);let i;(function Sl(e){return"id"in e&&"defaults"in e})(t)&&(i=this.register(t));const a=this.items,s=n.id,l=this.scope+"."+s;if(!s)throw new Error("class does not have id: "+n);return s in a||(a[s]=n,function yl(e,n,t){const i=wt(Object.create(null),[t?pe.get(t):{},pe.get(n),e.defaults]);pe.set(n,i),e.defaultRoutes&&function Pl(e,n){Object.keys(n).forEach(t=>{const i=t.split("."),a=i.pop(),s=[e].concat(i).join("."),l=n[t].split("."),c=l.pop(),m=l.join(".");pe.route(s,a,m,c)})}(n,e.defaultRoutes),e.descriptors&&pe.describe(n,e.descriptors)}(n,l,i),this.override&&pe.override(n.id,n.overrides)),l}get(n){return this.items[n]}unregister(n){const t=this.items,i=n.id,a=this.scope;i in t&&delete t[i],a&&i in pe[a]&&(delete pe[a][i],this.override&&delete oe[i])}}class Ol{constructor(){this.controllers=new bi(Xe,"datasets",!0),this.elements=new bi(We,"elements"),this.plugins=new bi(Object,"plugins"),this.scales=new bi(gn,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...n){this._each("register",n)}remove(...n){this._each("unregister",n)}addControllers(...n){this._each("register",n,this.controllers)}addElements(...n){this._each("register",n,this.elements)}addPlugins(...n){this._each("register",n,this.plugins)}addScales(...n){this._each("register",n,this.scales)}getController(n){return this._get(n,this.controllers,"controller")}getElement(n){return this._get(n,this.elements,"element")}getPlugin(n){return this._get(n,this.plugins,"plugin")}getScale(n){return this._get(n,this.scales,"scale")}removeControllers(...n){this._each("unregister",n,this.controllers)}removeElements(...n){this._each("unregister",n,this.elements)}removePlugins(...n){this._each("unregister",n,this.plugins)}removeScales(...n){this._each("unregister",n,this.scales)}_each(n,t,i){[...t].forEach(a=>{const s=i||this._getRegistryForType(a);i||s.isForType(a)||s===this.plugins&&a.id?this._exec(n,s,a):it(a,l=>{const c=i||this._getRegistryForType(l);this._exec(n,c,l)})})}_exec(n,t,i){const a=en(n);Ut(i["before"+a],[],i),t[n](i),Ut(i["after"+a],[],i)}_getRegistryForType(n){for(let t=0;t<this._typedRegistries.length;t++){const i=this._typedRegistries[t];if(i.isForType(n))return i}return this.plugins}_get(n,t,i){const a=t.get(n);if(void 0===a)throw new Error('"'+n+'" is not a registered '+i+".");return a}}var Be=new Ol;class wl{constructor(){this._init=void 0}notify(n,t,i,a){if("beforeInit"===t&&(this._init=this._createDescriptors(n,!0),this._notify(this._init,n,"install")),void 0===this._init)return;const s=a?this._descriptors(n).filter(a):this._descriptors(n),l=this._notify(s,n,t,i);return"afterDestroy"===t&&(this._notify(s,n,"stop"),this._notify(this._init,n,"uninstall"),this._init=void 0),l}_notify(n,t,i,a){a=a||{};for(const s of n){const l=s.plugin;if(!1===Ut(l[i],[t,a,s.options],l)&&a.cancelable)return!1}return!0}invalidate(){W(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(n){if(this._cache)return this._cache;const t=this._cache=this._createDescriptors(n);return this._notifyStateChanges(n),t}_createDescriptors(n,t){const i=n&&n.config,a=nt(i.options&&i.options.plugins,{}),s=function El(e){const n={},t=[],i=Object.keys(Be.plugins.items);for(let s=0;s<i.length;s++)t.push(Be.getPlugin(i[s]));const a=e.plugins||[];for(let s=0;s<a.length;s++){const l=a[s];-1===t.indexOf(l)&&(t.push(l),n[l.id]=!0)}return{plugins:t,localIds:n}}(i);return!1!==a||t?function Dl(e,{plugins:n,localIds:t},i,a){const s=[],l=e.getContext();for(const c of n){const m=c.id,_=Tl(i[m],a);null!==_&&s.push({plugin:c,options:Il(e.config,{plugin:c,local:t[m]},_,l)})}return s}(n,s,a,t):[]}_notifyStateChanges(n){const t=this._oldCache||[],i=this._cache,a=(s,l)=>s.filter(c=>!l.some(m=>c.plugin.id===m.plugin.id));this._notify(a(t,i),n,"stop"),this._notify(a(i,t),n,"start")}}function Tl(e,n){return n||!1!==e?!0===e?{}:e:null}function Il(e,{plugin:n,local:t},i,a){const s=e.pluginScopeKeys(n),l=e.getOptionScopes(i,s);return t&&n.defaults&&l.push(n.defaults),e.createResolver(l,a,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function ro(e,n){return((n.datasets||{})[e]||{}).indexAxis||n.indexAxis||(pe.datasets[e]||{}).indexAxis||"x"}function Ca(e){if("x"===e||"y"===e||"r"===e)return e}
1function kl(e){return"top"===e||"bottom"===e?"x":"left"===e||"right"===e?"y":void 0}function so(e,...n){if(Ca(e))return e;for(const t of n){const i=t.axis||kl(t.position)||e.length>1&&Ca(e[0].toLowerCase());if(i)return i}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function va(e,n,t){if(t[n+"AxisID"]===e)return{axis:n}}function ba(e){const n=e.options||(e.options={});n.plugins=nt(n.plugins,{}),n.scales=function Nl(e,n){const t=oe[e.type]||{scales:{}},i=n.scales||{},a=ro(e.type,n),s=Object.create(null);return Object.keys(i).forEach(l=>{const c=i[l];if(!tt(c))return console.error(`Invalid scale configuration for scale: ${l}`);if(c._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${l}`);const m=so(l,c,function Fl(e,n){if(n.data&&n.data.datasets){const t=n.data.datasets.filter(i=>i.xAxisID===e||i.yAxisID===e);if(t.length)return va(e,"x",t[0])||va(e,"y",t[0])}return{}}(l,e),pe.scales[c.type]),_=function Rl(e,n){return e===n?"_index_":"_value_"}(m,a),M=t.scales||{};s[l]=he(Object.create(null),[{axis:m},c,M[m],M[_]])}),e.data.datasets.forEach(l=>{const c=l.type||e.type,m=l.indexAxis||ro(c,n),M=(oe[c]||{}).scales||{};Object.keys(M).forEach(w=>{const A=function Al(e,n){let t=e;return"_index_"===e?t=n:"_value_"===e&&(t="x"===n?"y":"x"),t}(w,m),L=l[A+"AxisID"]||A;s[L]=s[L]||Object.create(null),he(s[L],[{axis:A},i[L],M[w]])})}),Object.keys(s).forEach(l=>{const c=s[l];he(c,[pe.scales[c.type],pe.scale])}),s}(e,n)}function xa(e){return(e=e||{}).datasets=e.datasets||[],e.labels=e.labels||[],e}const Ma=new Map,ya=new Set;function xi(e,n){let t=Ma.get(e);return t||(t=n(),Ma.set(e,t),ya.add(t)),t}const Jn=(e,n,t)=>{const i=Ie(n,t);void 0!==i&&e.add(i)};class Vl{constructor(n){this._config=function Ll(e){return(e=e||{}).data=xa(e.data),ba(e),e}(n),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(n){this._config.type=n}get data(){return this._config.data}set data(n){this._config.data=xa(n)}get options(){return this._config.options}set options(n){this._config.options=n}get plugins(){return this._config.plugins}update(){const n=this._config;this.clearCache(),ba(n)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(n){return xi(n,()=>[[`datasets.${n}`,""]])}datasetAnimationScopeKeys(n,t){return xi(`${n}.transition.${t}`,()=>[[`datasets.${n}.transitions.${t}`,`transitions.${t}`],[`datasets.${n}`,""]])}datasetElementScopeKeys(n,t){return xi(`${n}-${t}`,()=>[[`datasets.${n}.elements.${t}`,`datasets.${n}`,`elements.${t}`,""]])}pluginScopeKeys(n){const t=n.id;return xi(`${this.type}-plugin-${t}`,()=>[[`plugins.${t}`,...n.additionalOptionScopes||[]]])}_cachedScopes(n,t){const i=this._scopeCache;let a=i.get(n);return(!a||t)&&(a=new Map,i.set(n,a)),a}getOptionScopes(n,t,i){const{options:a,type:s}=this,l=this._cachedScopes(n,i),c=l.get(t);if(c)return c;const m=new Set;t.forEach(M=>{n&&(m.add(n),M.forEach(w=>Jn(m,n,w))),M.forEach(w=>Jn(m,a,w)),M.forEach(w=>Jn(m,oe[s]||{},w)),M.forEach(w=>Jn(m,pe,w)),M.forEach(w=>Jn(m,se,w))});const _=Array.from(m);return 0===_.length&&_.push(Object.create(null)),ya.has(t)&&l.set(t,_),_}chartOptionScopes(){const{options:n,type:t}=this;return[n,oe[t]||{},pe.datasets[t]||{},{type:t},pe,se]}resolveNamedOptions(n,t,i,a=[""]){const s={$shared:!0},{resolver:l,subPrefixes:c}=Pa(this._resolverCache,n,a);let m=l;(function zl(e,n){const{isScriptable:t,isIndexable:i}=So(e);for(const a of n){const s=t(a),l=i(a),c=(l||s)&&e[a];if(s&&(Ae(c)||Bl(c))||l&&E(c))return!0}return!1})(l,t)&&(s.$shared=!1,m=xn(l,i=Ae(i)?i():i,this.createResolver(n,i,c)));for(const _ of t)s[_]=m[_];return s}createResolver(n,t,i=[""],a){const{resolver:s}=Pa(this._resolverCache,n,i);return tt(t)?xn(s,t,void 0,a):s}}function Pa(e,n,t){let i=e.get(n);i||(i=new Map,e.set(n,i));const a=t.join();let s=i.get(a);return s||(s={resolver:$i(n,t),subPrefixes:t.filter(c=>!c.toLowerCase().includes("hover"))},i.set(a,s)),s}const Bl=e=>tt(e)&&Object.getOwnPropertyNames(e).some(n=>Ae(e[n])),Gl=["top","bottom","left","right","chartArea"];function Sa(e,n){return"top"===e||"bottom"===e||-1===Gl.indexOf(e)&&"x"===n}function Oa(e,n){return function(t,i){return t[e]===i[e]?t[n]-i[n]:t[e]-i[e]}}function wa(e){const n=e.chart,t=n.options.animation;
1n.notifyPlugins("afterRender"),Ut(t&&t.onComplete,[e],n)}function Ul(e){const n=e.chart,t=n.options.animation;Ut(t&&t.onProgress,[e],n)}function Ea(e){return Qi()&&"string"==typeof e?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const Mi={},Ta=e=>{const n=Ea(e);return Object.values(Mi).filter(t=>t.canvas===n).pop()};function Hl(e,n,t){const i=Object.keys(e);for(const a of i){const s=+a;if(s>=n){const l=e[a];delete e[a],(t>0||s>n)&&(e[s+t]=l)}}}let yi=(()=>class e{static defaults=pe;static instances=Mi;static overrides=oe;static registry=Be;static version="4.5.1";static getChart=Ta;static register(...t){Be.add(...t),Da()}static unregister(...t){Be.remove(...t),Da()}constructor(t,i){const a=this.config=new Vl(i),s=Ea(t),l=Ta(s);if(l)throw new Error("Canvas is already in use. Chart with ID '"+l.id+"' must be destroyed before the canvas with ID '"+l.canvas.id+"' can be reused.");const c=a.createResolver(a.chartOptionScopes(),this.getContext());this.platform=new(a.platform||function cl(e){return!Qi()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?Ks:ll}(s)),this.platform.updateConfig(a);const m=this.platform.acquireContext(s,c.aspectRatio),_=m&&m.canvas,M=_&&_.height,w=_&&_.width;this.id=x(),this.ctx=m,this.canvas=_,this.width=w,this.height=M,this._options=c,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new wl,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function Vi(e,n){let t;return function(...i){return n?(clearTimeout(t),t=setTimeout(e,n,i)):e.apply(this,i),n}}(A=>this.update(A),c.resizeDelay||0),this._dataChanges=[],Mi[this.id]=this,m&&_?(He.listen(this,"complete",wa),He.listen(this,"progress",Ul),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:i},width:a,height:s,_aspectRatio:l}=this;return W(t)?i&&l?l:s?a/s:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return Be}
vendor: 8,915 bytes, line 1
1_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Ro(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return pt(this.canvas,this.ctx),this}stop(){return He.stop(this),this}resize(t,i){He.running(this)?this._resizeBeforeDraw={width:t,height:i}:this._resize(t,i)}_resize(t,i){const a=this.options,c=this.platform.getMaximumSize(this.canvas,t,i,a.maintainAspectRatio&&this.aspectRatio),m=a.devicePixelRatio||this.platform.getDevicePixelRatio(),_=this.width?"resize":"attach";this.width=c.width,this.height=c.height,this._aspectRatio=this.aspectRatio,Ro(this,m,!0)&&(this.notifyPlugins("resize",{size:c}),Ut(a.onResize,[this,c],this),this.attached&&this._doResize(_)&&this.render())}ensureScalesHaveIDs(){it(this.options.scales||{},(a,s)=>{a.id=s})}buildOrUpdateScales(){const t=this.options,i=t.scales,a=this.scales,s=Object.keys(a).reduce((c,m)=>(c[m]=!1,c),{});let l=[];i&&(l=l.concat(Object.keys(i).map(c=>{const m=i[c],_=so(c,m),M="r"===_,w="x"===_;return{options:m,dposition:M?"chartArea":w?"bottom":"left",dtype:M?"radialLinear":w?"category":"linear"}}))),it(l,c=>{const m=c.options,_=m.id,M=so(_,m),w=nt(m.type,c.dtype);(void 0===m.position||Sa(m.position,M)!==Sa(c.dposition))&&(m.position=c.dposition),s[_]=!0;let A=null;_ in a&&a[_].type===w?A=a[_]:(A=new(Be.getScale(w))({id:_,type:w,ctx:this.ctx,chart:this}),a[A.id]=A),A.init(m,t)}),it(s,(c,m)=>{c||delete a[m]}),it(a,c=>{ye.configure(this,c,c.options),ye.addBox(this,c)})}_updateMetasets(){const t=this._metasets,i=this.data.datasets.length,a=t.length;if(t.sort((s,l)=>s.index-l.index),a>i){for(let s=i;s<a;++s)this._destroyDatasetMeta(s);t.splice(i,a-i)}this._sortedMetasets=t.slice(0).sort(Oa("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:i}}=this;t.length>i.length&&delete this._stacks,t.forEach((a,s)=>{0===i.filter(l=>l===a._dataset).length&&this._destroyDatasetMeta(s)})}buildOrUpdateControllers(){const t=[],i=this.data.datasets;let a,s;for(this._removeUnreferencedMetasets(),a=0,s=i.length;a<s;a++){const l=i[a];let c=this.getDatasetMeta(a);const m=l.type||this.config.type;if(c.type&&c.type!==m&&(this._destroyDatasetMeta(a),c=this.getDatasetMeta(a)),c.type=m,c.indexAxis=l.indexAxis||ro(m,this.options),c.order=l.order||0,c.index=a,c.label=""+l.label,c.visible=this.isDatasetVisible(a),c.controller)c.controller.updateIndex(a),c.controller.linkScales();else{const _=Be.getController(m),{datasetElementType:M,dataElementType:w}=pe.datasets[m];Object.assign(_,{dataElementType:Be.getElement(w),datasetElementType:M&&Be.getElement(M)}),c.controller=new _(this,a),t.push(c.controller)}}return this._updateMetasets(),t}_resetElements(){it(this.data.datasets,(t,i)=>{this.getDatasetMeta(i).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const i=this.config;i.update();const a=this._options=i.createResolver(i.chartOptionScopes(),this.getContext()),s=this._animationsDisabled=!a.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;const l=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let c=0;for(let M=0,w=this.data.datasets.length;M<w;M++){const{controller:A}=this.getDatasetMeta(M),L=!s&&-1===l.indexOf(A);A.buildOrUpdateElements(L),c=Math.max(+A.getMaxOverflow(),c)}c=this._minPadding=a.layout.autoPadding?c:0,this._updateLayout(c),s||it(l,M=>{M.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(Oa("z","_idx"));const{_active:m,_lastEvent:_}=this;_?this._eventHandler(_,!0):m.length&&this._updateHoverStyles(m,m,!0),this.render()}_updateScales(){it(this.scales,t=>{ye.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,i=new Set(Object.keys(this._listeners)),a=new Set(t.events);(!Cn(i,a)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,i=this._getUniformDataChanges()||[];for(const{method:a,start:s,count:l}of i)Hl(t,s,"_removeElements"===a?-l:l)}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const i=this.data.datasets.length,a=l=>new Set(t.filter(c=>c[0]===l).map((c,m)=>m+","+c.splice(1).join(","))),s=a(0);for(let l=1;l<i;l++)if(!Cn(s,a(l)))return;return Array.from(s).map(l=>l.split(",")).map(l=>({method:l[1],start:+l[2],count:+l[3]}))}_updateLayout(t){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;ye.update(this,this.width,this.height,t);const i=this.chartArea,a=i.width<=0||i.height<=0;this._layers=[],it(this.boxes,s=>{a&&"chartArea"===s.position||(s.configure&&s.configure(),this._layers.push(...s._layers()))},this),this._layers.forEach((s,l)=>{s._idx=l}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})){for(let i=0,a=this.data.datasets.length;i<a;++i)this.getDatasetMeta(i).controller.configure();for(let i=0,a=this.data.datasets.length;i<a;++i)this._updateDataset(i,Ae(t)?t({datasetIndex:i}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,i){const a=this.getDatasetMeta(t),s={meta:a,index:t,mode:i,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",s)&&(a.controller._update(i),s.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",s))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(He.has(this)?this.attached&&!He.running(this)&&He.start(this):(this.draw(),wa({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:a,height:s}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(a,s)}if(this.clear(),this.width<=0||this.height<=0||!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const i=this._layers;for(t=0;t<i.length&&i[t].z<=0;++t)i[t].draw(this.chartArea);for(this._drawDatasets();t<i.length;++t)i[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const i=this._sortedMetasets,a=[];let s,l;for(s=0,l=i.length;s<l;++s){const c=i[s];(!t||c.visible)&&a.push(c)}return a}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const t=this.getSortedVisibleDatasetMetas();for(let i=t.length-1;i>=0;--i)this._drawDataset(t[i]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const i=this.ctx,a={meta:t,index:t.index,cancelable:!0},s=Uo(this,t);!1!==this.notifyPlugins("beforeDatasetDraw",a)&&(s&&ce(i,s),t.controller.draw(),s&&re(i),a.cancelable=!1,this.notifyPlugins("afterDatasetDraw",a))}isPointInArea(t){return le(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,i,a,s){const l=Gs.modes[i];return"function"==typeof l?l(this,t,a,s):[]}getDatasetMeta(t){const i=this.data.datasets[t],a=this._metasets;let s=a.filter(l=>l&&l._dataset===i).pop();return s||(s={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:i&&i.order||0,index:t,_dataset:i,_parsed:[],_sorted:!1},a.push(s)),s}getContext(){return this.$context||(this.$context=Qe(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const i=this.data.datasets[t];if(!i)return!1;const a=this.getDatasetMeta(t);return"boolean"==typeof a.hidden?!a.hidden:!i.hidden}setDatasetVisibility(t,i){this.getDatasetMeta(t).hidden=!i}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,i,a){const s=a?"show":"hide",l=this.getDatasetMeta(t),c=l.controller._resolveAnimations(void 0,s);je(i)?(l.data[i].hidden=!a,this.update()):(this.setDatasetVisibility(t,a),c.update(l,{visible:a}),this.update(m=>m.datasetIndex===t?s:void 0))}hide(t,i){this._updateVisibility(t,i,!1)}show(t,i){this._updateVisibility(t,i,!0)}_destroyDatasetMeta(t){const i=this._metasets[t];i&&i.controller&&i.controller._destroy(),delete this._metasets[t]}_stop(){let t,i;for(this.stop(),He.remove(this),t=0,i=this.data.datasets.length;t<i;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:i}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),pt(t,i),this.platform.releaseContext(i),this.canvas=null,this.ctx=null),delete Mi[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,i=this.platform,a=(l,c)=>{i.addEventListener(this,l,c),t[l]=c},s=(l,c,m)=>{l.offsetX=c,l.offsetY=m,this._eventHandler(l)};it(this.options.events,l=>
vendor: 14,549 bytes, line 1
1a(l,s))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,i=this.platform,a=(_,M)=>{i.addEventListener(this,_,M),t[_]=M},s=(_,M)=>{t[_]&&(i.removeEventListener(this,_,M),delete t[_])},l=(_,M)=>{this.canvas&&this.resize(_,M)};let c;const m=()=>{s("attach",m),this.attached=!0,this.resize(),a("resize",l),a("detach",c)};c=()=>{this.attached=!1,s("resize",l),this._stop(),this._resize(0,0),a("attach",m)},i.isAttached(this.canvas)?m():c()}unbindEvents(){it(this._listeners,(t,i)=>{this.platform.removeEventListener(this,i,t)}),this._listeners={},it(this._responsiveListeners,(t,i)=>{this.platform.removeEventListener(this,i,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,i,a){const s=a?"set":"remove";let l,c,m,_;for("dataset"===i&&(l=this.getDatasetMeta(t[0].datasetIndex),l.controller["_"+s+"DatasetHoverStyle"]()),m=0,_=t.length;m<_;++m){c=t[m];const M=c&&this.getDatasetMeta(c.datasetIndex).controller;M&&M[s+"HoverStyle"](c.element,c.datasetIndex,c.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const i=this._active||[],a=t.map(({datasetIndex:l,index:c})=>{const m=this.getDatasetMeta(l);if(!m)throw new Error("No dataset found at index "+l);return{datasetIndex:l,element:m.data[c],index:c}});!Ft(a,i)&&(this._active=a,this._lastEvent=null,this._updateHoverStyles(a,i))}notifyPlugins(t,i,a){return this._plugins.notify(this,t,i,a)}isPluginEnabled(t){return 1===this._plugins._cache.filter(i=>i.plugin.id===t).length}_updateHoverStyles(t,i,a){const s=this.options.hover,l=(_,M)=>_.filter(w=>!M.some(A=>w.datasetIndex===A.datasetIndex&&w.index===A.index)),c=l(i,t),m=a?t:l(t,i);c.length&&this.updateHoverStyle(c,s.mode,!1),m.length&&s.mode&&this.updateHoverStyle(m,s.mode,!0)}_eventHandler(t,i){const a={event:t,replay:i,cancelable:!0,inChartArea:this.isPointInArea(t)},s=c=>(c.options.events||this.options.events).includes(t.native.type);if(!1===this.notifyPlugins("beforeEvent",a,s))return;const l=this._handleEvent(t,i,a.inChartArea);return a.cancelable=!1,this.notifyPlugins("afterEvent",a,s),(l||a.changed)&&this.render(),this}_handleEvent(t,i,a){const{_active:s=[],options:l}=this,m=this._getActiveElements(t,s,a,i),_=function Tn(e){return"mouseup"===e.type||"click"===e.type||"contextmenu"===e.type}(t),M=function Wl(e,n,t,i){return t&&"mouseout"!==e.type?i?n:e:null}(t,this._lastEvent,a,_);a&&(this._lastEvent=null,Ut(l.onHover,[t,m,this],this),_&&Ut(l.onClick,[t,m,this],this));const w=!Ft(m,s);return(w||i)&&(this._active=m,this._updateHoverStyles(m,s,i)),this._lastEvent=M,w}_getActiveElements(t,i,a,s){if("mouseout"===t.type)return[];if(!a)return i;const l=this.options.hover;return this.getElementsAtEventForMode(t,l.mode,l,s)}})();function Da(){return it(yi.instances,e=>e._plugins.invalidate())}function Pn(e,n,t,i){return{x:t+e*Math.cos(n),y:i+e*Math.sin(n)}}function Pi(e,n,t,i,a,s){const{x:l,y:c,startAngle:m,pixelMargin:_,innerRadius:M}=n,w=Math.max(n.outerRadius+i+t-_,0),A=M>0?M+i+t+_:0;let L=0;const Q=a-m;if(i){const fe=((M>0?M-i:0)+(w>0?w-i:0))/2;L=(Q-(0!==fe?Q*fe/(fe+i):Q))/2}const et=(Q-Math.max(.001,Q*w-t/ie)/w)/2,yt=m+et+L,Pt=a-et-L,{outerStart:Nt,outerEnd:Bt,innerStart:It,innerEnd:Lt}=function Ql(e,n,t,i){const a=function Yl(e){return Wi(e,["outerStart","outerEnd","innerStart","innerEnd"])}(e.options.borderRadius),s=(t-n)/2,l=Math.min(s,i*n/2),c=m=>{const _=(t-Math.min(s,m))*i/2;return _e(m,0,Math.min(s,_))};return{outerStart:c(a.outerStart),outerEnd:c(a.outerEnd),innerStart:_e(a.innerStart,0,l),innerEnd:_e(a.innerEnd,0,l)}}(n,A,w,Pt-yt),Kt=w-Nt,Wt=w-Bt,Zt=yt+Nt/Kt,ne=Pt-Bt/Wt,ee=A+It,ae=A+Lt,xe=yt+It/ee,De=Pt-Lt/ae;if(e.beginPath(),s){const me=(Zt+ne)/2;if(e.arc(l,c,w,Zt,me),e.arc(l,c,w,me,ne),Bt>0){const Pe=Pn(Wt,ne,l,c);e.arc(Pe.x,Pe.y,Bt,ne,Pt+ge)}const ue=Pn(ae,Pt,l,c);if(e.lineTo(ue.x,ue.y),Lt>0){const Pe=Pn(ae,De,l,c);e.arc(Pe.x,Pe.y,Lt,Pt+ge,De+Math.PI)}const fe=(Pt-Lt/A+(yt+It/A))/2;if(e.arc(l,c,A,Pt-Lt/A,fe,!0),e.arc(l,c,A,fe,yt+It/A,!0),It>0){const Pe=Pn(ee,xe,l,c);e.arc(Pe.x,Pe.y,It,xe+Math.PI,yt-ge)}const Le=Pn(Kt,yt,l,c);if(e.lineTo(Le.x,Le.y),Nt>0){const Pe=Pn(Kt,Zt,l,c);e.arc(Pe.x,Pe.y,Nt,yt-ge,Zt)}}else{e.moveTo(l,c);const me=Math.cos(Zt)*w+l,ue=Math.sin(Zt)*w+c;e.lineTo(me,ue);const fe=Math.cos(ne)*w+l,Le=Math.sin(ne)*w+c;e.lineTo(fe,Le)}e.closePath()}function Ia(e,n,t=n){e.lineCap=nt(t.borderCapStyle,n.borderCapStyle),e.setLineDash(nt(t.borderDash,n.borderDash)),e.lineDashOffset=nt(t.borderDashOffset,n.borderDashOffset),e.lineJoin=nt(t.borderJoinStyle,n.borderJoinStyle),e.lineWidth=nt(t.borderWidth,n.borderWidth),e.strokeStyle=nt(t.borderColor,n.borderColor)}function ql(e,n,t){e.lineTo(t.x,t.y)}function Aa(e,n,t={}){const i=e.length,{start:a=0,end:s=i-1}=t,{start:l,end:c}=n,m=Math.max(a,l),_=Math.min(s,c);return{count:i,start:m,loop:n.loop,ilen:_<m&&!(a<l&&s<l||a>c&&s>c)?i+_-m:_-m}}function ec(e,n,t,i){const{points:a,options:s}=n,{count:l,start:c,loop:m,ilen:_}=Aa(a,t,i),M=function tc(e){return e.stepped?Cr:e.tension||"monotone"===e.cubicInterpolationMode?vr:ql}(s);let L,Q,Y,{move:w=!0,reverse:A}=i||{};for(L=0;L<=_;++L)Q=a[(c+(A?_-L:L))%l],!Q.skip&&(w?(e.moveTo(Q.x,Q.y),w=!1):M(e,Y,Q,A,s.stepped),Y=Q);return m&&(Q=a[(c+(A?_:0))%l],M(e,Y,Q,A,s.stepped)),!!m}function nc(e,n,t,i){const a=n.points,{count:s,start:l,ilen:c}=Aa(a,t,i),{move:m=!0,reverse:_}=i||{};let A,L,Q,Y,et,yt,M=0,w=0;const Pt=Bt=>(l+(_?c-Bt:Bt))%s,Nt=()=>{Y!==et&&(e.lineTo(M,et),e.lineTo(M,Y),e.lineTo(M,yt))};for(m&&(L=a[Pt(0)],e.moveTo(L.x,L.y)),A=0;A<=c;++A){if(L=a[Pt(A)],L.skip)continue;const Bt=L.x,It=L.y,Lt=0|Bt;Lt===Q?(It<Y?Y=It:It>et&&(et=It),M=(w*M+Bt)/++w):(Nt(),e.lineTo(Bt,It),Q=Lt,w=0,Y=et=It),yt=It}Nt()}function lo(e){const n=e.options;return e._decimated||e._loop||n.tension||"monotone"===n.cubicInterpolationMode||n.stepped||n.borderDash&&n.borderDash.length?ec:nc}const rc="function"==typeof Path2D;let Si=(()=>class e extends We{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t&&"fill"!==t};constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,i){const a=this.options;!a.tension&&"monotone"!==a.cubicInterpolationMode||a.stepped||this._pointsUpdated||(Ur(this._points,a,t,a.spanGaps?this._loop:this._fullLoop,i),this._pointsUpdated=!0)}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=function os(e,n){const t=e.points,i=e.options.spanGaps,a=t.length;if(!a)return[];const s=!!e._loop,{start:l,end:c}=function ns(e,n,t,i){let a=0,s=n-1;if(t&&!i)for(;a<n&&!e[a].skip;)a++;for(;a<n&&e[a].skip;)a++;for(a%=n,t&&(s+=a);s>a&&e[s%n].skip;)s--;return s%=n,{start:a,end:s}}(t,a,s,i);return function jo(e,n,t,i){return i&&i.setContext&&t?function as(e,n,t,i){const a=e._chart.getContext(),s=Go(e.options),{_datasetIndex:l,options:{spanGaps:c}}=e,m=t.length,_=[];let M=s,w=n[0].start,A=w;function L(Q,Y,et,yt){const Pt=c?-1:1;if(Q!==Y){for(Q+=m;t[Q%m].skip;)Q-=Pt;for(;t[Y%m].skip;)Y+=Pt;Q%m!==Y%m&&(_.push({start:Q%m,end:Y%m,loop:et,style:yt}),M=yt,w=Y%m)}}for(const Q of n){w=c?w:Q.start;let et,Y=t[w%m];for(A=w+1;A<=Q.end;A++){const yt=t[A%m];et=Go(i.setContext(Qe(a,{type:"segment",p0:Y,p1:yt,p0DataIndex:(A-1)%m,p1DataIndex:A%m,datasetIndex:l}))),rs(et,M)&&L(w,A-1,Q.loop,M),Y=yt,M=et}w<A-1&&L(w,A-1,Q.loop,M)}return _}(e,n,t,i):n}(e,!0===i?[{start:l,end:c,loop:s}]:function is(e,n,t,i){const a=e.length,s=[];let m,l=n,c=e[n];for(m=n+1;m<=t;++m){const _=e[m%a];_.skip||_.stop?c.skip||(s.push({start:n%a,end:(m-1)%a,loop:i=!1}),n=l=_.stop?m:null):(l=m,c.skip&&(n=m)),c=_}return null!==l&&s.push({start:n%a,end:l%a,loop:i}),s}(t,l,c<l?c+a:c,!!e._fullLoop&&0===l&&c===a-1),t,n)}(this,this.options.segment))}first(){const t=this.segments;return t.length&&this.points[t[0].start]}last(){const t=this.segments,a=t.length;return a&&this.points[t[a-1].end]}interpolate(t,i){const a=this.options,s=t[i],l=this.points,c=zo(this,{property:i,start:s,end:s});if(!c.length)return;const m=[],_=function ic(e){return e.stepped?Xr:e.tension||"monotone"===e.cubicInterpolationMode?Zr:mn}(a);let M,w;for(M=0,w=c.length;M<w;++M){const{start:A,end:L}=c[M],Q=l[A],Y=l[L];if(Q===Y){m.push(Q);continue}const yt=_(Q,Y,Math.abs((s-Q[i])/(Y[i]-Q[i])),a.stepped);yt[i]=t[i],m.push(yt)}return 1===m.length?m[0]:m}pathSegment(t,i,a){return lo(this)(t,this,i,a)}path(t,i,a){const s=this.segments,l=lo(this);let c=this._loop;i=i||0,a=a||this.points.length-i;for(const m of s)c&=l(t,this,m,{start:i,end:i+a-1});return!!c}draw(t,i,a,s){(this.points||[]).length&&(this.options||{}).borderWidth&&(t.save(),function sc(e,n,t,i){rc&&!n.options.segment?function oc(e,n,t,i){let a=n._path;a||(a=n._path=new Path2D,n.path(a,t,i)&&a.closePath()),Ia(e,n.options),e.stroke(a)}(e,n,t,i):function ac(e,n,t,i){const{segments:a,options:s}=n,l=lo(n);for(const c of a)Ia(e,s,c.style),e.beginPath(),l(e,n,c,{start:t,end:t+i-1})&&e.closePath(),e.stroke()}(e,n,t,i)}(t,this,a,s),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}})();function Ra(e,n,t,i){const a=e.options,{[t]:s}=e.getProps([t],i);return Math.abs(n-s)<a.radius+a.hitRadius}let lc=(()=>class e extends We{static id="point";parsed;skip;stop;static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,i,a){const s=this.options,{x:l,y:c}=this.getProps(["x","y"],a);return Math.pow(t-l,2)+Math.pow(i-c,2)<Math.pow(s.hitRadius+s.radius,2)}inXRange(t,i){return Ra(this,t,"x",i)}inYRange(t,i){return Ra(this,t,"y",i)}getCenterPoint(t){const{x:i,y:a}=this.getProps(["x","y"],t);return{x:i,y:a}}size(t){let i=(t=t||this.options||{}).radius||0;return i=Math.max(i,i&&t.hoverRadius||0),2*(i+(i&&t.borderWidth||0))}draw(t,i){const a=this.options;this.skip||a.radius<.1||!le(this,i,this.size(a)/2)||(t.strokeStyle=a.borderColor,t.lineWidth=a.borderWidth,t.fillStyle=a.backgroundColor,Vt(t,a,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}})();function ka(e,n){const{x:t,y:i,base:a,width:s,height:l}=e.getProps(["x","y","base","width","height"],n);let c,m,_,M,w;return e.horizontal?(w=l/2,c=Math.min(t,a),m=Math.max(t,a),_=i-w,M=i+w):(w=s/2,c=t-w,m=t+w,_=Math.min(i,a),M=Math.max(i,a)),{left:c,top:_,right:m,bottom:M}}function Ze(e,n,t,i){return e?0:_e(n,t,i)}function co(e,n,t,i){const a=null===n,s=null===t,c=e&&!(a&&s)&&ka(e,i);return c&&(a||ke(n,c.left,c.right))&&(s||ke(t,c.top,c.bottom))}function gc(e,n){e.rect(n.x,n.y,n.w,n.h)}function mo(e,n,t={}){const i=e.x!==t.x?-n:0,a=e.y!==t.y?-n:0;return{x:e.x+i,y:e.y+a,w:e.w+((e.x+e.w!==t.x+t.w?n:0)-i),h:e.h+((e.y+e.h!==t.y+t.h?n:0)-a),radius:e.radius}}var hc=Object.freeze({__proto__:null,ArcElement:class Zl extends We{static id="arc";static defaults={borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0,selfJoin:!1};static defaultRoutes={backgroundColor:"backgroundColor"};static descriptors={_scriptable:!0,_indexable:n=>"borderDash"!==n};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;constructor(n){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,n&&Object.assign(this,n)}inRange(n,t,i){const a=this.getProps(["x","y"],i),{angle:s,distance:l}=ti(a,{x:n,y:t}),{startAngle:c,endAngle:m,innerRadius:_,outerRadius:M,circumference:w}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i),A=(this.options.spacing+this.options.borderWidth)/2,L=nt(w,m-c),Q=on(s,c,m)&&c!==m,Y=L>=de||Q,et=ke(l,_+A,M+A);return Y&&et}getCenterPoint(n){const{x:t,y:i,startAngle:a,endAngle:s,innerRadius:l,outerRadius:c}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],n),{offset:m,spacing:_}=this.options,M=(a+s)/2,w=(l+c+_+m)/2;return{x:t+Math.cos(M)*w,y:i+Math.sin(M)*w}}tooltipPosition(n){return this.getCenterPoint(n)}draw(n){const{options:t,circumference:i}=this,a=(t.offset||0)/4,s=(t.spacing||0)/2,l=t.circular;if(this.pixelMargin="inner"===t.borderAlign?.33:0,this.fullCircles=i>de?Math.floor(i/de):0,0===i||this.innerRadius<0||this.outerRadius<0)return;n.save();const c=(this.startAngle+this.endAngle)/2;n.translate(Math.cos(c)*a,Math.sin(c)*a);const _=a*(1-Math.sin(Math.min(ie,i||0)));n.fillStyle=t.backgroundColor,n.strokeStyle=t.borderColor,function Kl(e,n,t,i,a){const{fullCircles:s,startAngle:l,circumference:c}=n;let m=n.endAngle;if(s){Pi(e,n,t,i,m,a);for(let _=0;_<s;++_)e.fill();isNaN(c)||(m=l+(c%de||de))}Pi(e,n,t,i,m,a),e.fill()}(n,this,_,s,l),function Xl(e,n,t,i,a){const{fullCircles:s,startAngle:l,circumference:c,options:m}=n,{borderWidth:_,borderJoinStyle:M,borderDash:w,borderDashOffset:A,borderRadius:L}=m,Q="inner"===m.borderAlign;if(!_)return;e.setLineDash(w||[]),e.lineDashOffset=A,Q?(e.lineWidth=2*_,e.lineJoin=M||"round"):(e.lineWidth=_,e.lineJoin=M||"bevel");let Y=n.endAngle;if(s){Pi(e,n,t,i,Y,a);for(let et=0;et<s;++et)e.stroke();isNaN(c)||(Y=l+(c%de||de))}Q&&function Jl(e,n,t){const{startAngle:i,pixelMargin:a,x:s,y:l,outerRadius:c,innerRadius:m}=n;let _=a/c;e.beginPath(),e.arc(s,l,c,i-_,t+_),m>a?(_=a/m,e.arc(s,l,m,t+_,i-_,!0)):e.arc(s,l,a,t+ge,i-ge),e.closePath(),e.clip()}(e,n,Y),m.selfJoin&&Y-l>=ie&&0===L&&"miter"!==M&&function $l(e,n,t){const{startAngle:i,x:a,y:s,outerRadius:l,innerRadius:c,options:m}=n,{borderWidth:_,borderJoinStyle:M}=m,w=Math.min(_/l,ve(i-t));if(e.beginPath(),e.arc(a,s,l-_/2,i+w/2,t-w/2),c>0){const A=Math.min(_/c,ve(i-t));e.arc(a,s,c+_/2,t-A/2,i+A/2,!0)}else{const A=Math.min(_/2,l*ve(i-t));if("round"===M)e.arc(a,s,A,t-ie/2,i+ie/2,!0);else if("bevel"===M){const L=2*A*A,Q=-L*Math.cos(t+ie/2)+a,Y=-L*Math.sin(t
1+ie/2)+s,et=L*Math.cos(i+ie/2)+a,yt=L*Math.sin(i+ie/2)+s;e.lineTo(Q,Y),e.lineTo(et,yt)}}e.closePath(),e.moveTo(0,0),e.rect(0,0,e.canvas.width,e.canvas.height),e.clip("evenodd")}(e,n,Y),s||(Pi(e,n,t,i,Y,a),e.stroke())}(n,this,_,s,l),n.restore()}},BarElement:class uc extends We{static id="bar";static defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(n){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,n&&Object.assign(this,n)}draw(n){const{inflateAmount:t,options:{borderColor:i,backgroundColor:a}}=this,{inner:s,outer:l}=function mc(e){const n=ka(e),t=n.right-n.left,i=n.bottom-n.top,a=function cc(e,n,t){const a=e.borderSkipped,s=Po(e.options.borderWidth);return{t:Ze(a.top,s.top,0,t),r:Ze(a.right,s.right,0,n),b:Ze(a.bottom,s.bottom,0,t),l:Ze(a.left,s.left,0,n)}}(e,t/2,i/2),s=function dc(e,n,t){const{enableBorderRadius:i}=e.getProps(["enableBorderRadius"]),a=e.options.borderRadius,s=ln(a),l=Math.min(n,t),c=e.borderSkipped,m=i||tt(a);return{topLeft:Ze(!m||c.top||c.left,s.topLeft,0,l),topRight:Ze(!m||c.top||c.right,s.topRight,0,l),bottomLeft:Ze(!m||c.bottom||c.left,s.bottomLeft,0,l),bottomRight:Ze(!m||c.bottom||c.right,s.bottomRight,0,l)}}(e,t/2,i/2);return{outer:{x:n.left,y:n.top,w:t,h:i,radius:s},inner:{x:n.left+a.l,y:n.top+a.t,w:t-a.l-a.r,h:i-a.t-a.b,radius:{topLeft:Math.max(0,s.topLeft-Math.max(a.t,a.l)),topRight:Math.max(0,s.topRight-Math.max(a.t,a.r)),bottomLeft:Math.max(0,s.bottomLeft-Math.max(a.b,a.l)),bottomRight:Math.max(0,s.bottomRight-Math.max(a.b,a.r))}}}}(this),c=function pc(e){return e.topLeft||e.topRight||e.bottomLeft||e.bottomRight}(l.radius)?Vn:gc;n.save(),(l.w!==s.w||l.h!==s.h)&&(n.beginPath(),c(n,mo(l,t,s)),n.clip(),c(n,mo(s,-t,l)),n.fillStyle=i,n.fill("evenodd")),n.beginPath(),c(n,mo(s,t)),n.fillStyle=a,n.fill(),n.restore()}inRange(n,t,i){return co(this,n,t,i)}inXRange(n,t){return co(this,n,null,t)}inYRange(n,t){return co(this,null,n,t)}getCenterPoint(n){const{x:t,y:i,base:a,horizontal:s}=this.getProps(["x","y","base","horizontal"],n);return{x:s?(t+a)/2:t,y:s?i:(i+a)/2}}getRange(n){return"x"===n?this.width/2:this.height/2}},LineElement:Si,PointElement:lc});const po=["rgb(54, 162, 235)","rgb(255, 99, 132)","rgb(255, 159, 64)","rgb(255, 205, 86)","rgb(75, 192, 192)","rgb(153, 102, 255)","rgb(201, 203, 207)"],Fa=po.map(e=>e.replace("rgb(","rgba(").replace(")",", 0.5)"));function Na(e){return po[e%po.length]}function La(e){return Fa[e%Fa.length]}function Va(e){let n;for(n in e)if(e[n].borderColor||e[n].backgroundColor)return!0;return!1}var Mc={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(e,n,t){if(!t.enabled)return;const{data:{datasets:i},options:a}=e.config,{elements:s}=a,l=Va(i)||function bc(e){return e&&(e.borderColor||e.backgroundColor)}(a)||s&&Va(s)||function xc(){return"rgba(0,0,0,0.1)"!==pe.borderColor||"rgba(0,0,0,0.1)"!==pe.backgroundColor}();if(!t.forceOverride&&l)return;const c=function vc(e){let n=0;return(t,i)=>{const a=e.getDatasetMeta(i).controller;a instanceof eo?n=function _c(e,n){return e.backgroundColor=e.data.map(()=>Na(n++)),n}(t,n):a instanceof na?n=function Cc(e,n){return e.backgroundColor=e.data.map(()=>La(n++)),n}
vendor: 11,283 bytes, line 1
1(t,n):a&&(n=function fc(e,n){return e.borderColor=Na(n),e.backgroundColor=La(n),++n}(t,n))}}(e);i.forEach(c)}};function Ba(e){if(e._decimated){const n=e._data;delete e._decimated,delete e._data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,writable:!0,value:n})}}function za(e){e.data.datasets.forEach(n=>{Ba(n)})}var Oc={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(e,n,t)=>{if(!t.enabled)return void za(e);const i=e.width;e.data.datasets.forEach((a,s)=>{const{_data:l,indexAxis:c}=a,m=e.getDatasetMeta(s),_=l||a.data;if("y"===Bn([c,e.options.indexAxis])||!m.controller.supportsDecimation)return;const M=e.scales[m.xAxisID];if("linear"!==M.type&&"time"!==M.type||e.options.parsing)return;let Q,{start:w,count:A}=function Sc(e,n){const t=n.length;let a,i=0;const{iScale:s}=e,{min:l,max:c,minDefined:m,maxDefined:_}=s.getUserBounds();return m&&(i=_e(Fe(n,s.axis,l).lo,0,t-1)),a=_?_e(Fe(n,s.axis,c).hi+1,i,t)-i:t-i,{start:i,count:a}}(m,_);if(A<=(t.threshold||4*i))Ba(a);else{switch(W(l)&&(a._data=_,delete a.data,Object.defineProperty(a,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(Y){this._data=Y}})),t.algorithm){case"lttb":Q=function yc(e,n,t,i,a){const s=a.samples||i;if(s>=t)return e.slice(n,n+t);const l=[],c=(t-2)/(s-2);let m=0;const _=n+t-1;let w,A,L,Q,Y,M=n;for(l[m++]=e[M],w=0;w<s-2;w++){let Pt,et=0,yt=0;const Nt=Math.floor((w+1)*c)+1+n,Bt=Math.min(Math.floor((w+2)*c)+1,t)+n,It=Bt-Nt;for(Pt=Nt;Pt<Bt;Pt++)et+=e[Pt].x,yt+=e[Pt].y;et/=It,yt/=It;const Lt=Math.floor(w*c)+1+n,Kt=Math.min(Math.floor((w+1)*c)+1,t)+n,{x:Wt,y:Zt}=e[M];for(L=Q=-1,Pt=Lt;Pt<Kt;Pt++)Q=.5*Math.abs((Wt-et)*(e[Pt].y-Zt)-(Wt-e[Pt].x)*(yt-Zt)),Q>L&&(L=Q,A=e[Pt],Y=Pt);l[m++]=A,M=Y}return l[m++]=e[_],l}(_,w,A,i,t);break;case"min-max":Q=function Pc(e,n,t,i){let l,c,m,_,M,w,A,L,Q,Y,a=0,s=0;const et=[],Pt=e[n].x,Bt=e[n+t-1].x-Pt;for(l=n;l<n+t;++l){c=e[l],m=(c.x-Pt)/Bt*i,_=c.y;const It=0|m;if(It===M)_<Q?(Q=_,w=l):_>Y&&(Y=_,A=l),a=(s*a+c.x)/++s;else{const Lt=l-1;if(!W(w)&&!W(A)){const Kt=Math.min(w,A),Wt=Math.max(w,A);Kt!==L&&Kt!==Lt&&et.push({...e[Kt],x:a}),Wt!==L&&Wt!==Lt&&et.push({...e[Wt],x:a})}l>0&&Lt!==L&&et.push(e[Lt]),et.push(c),M=It,s=0,Q=Y=_,w=A=L=l}}return et}(_,w,A,i);break;default:throw new Error(`Unsupported decimation algorithm '${t.algorithm}'`)}a._decimated=Q}})},destroy(e){za(e)}};function go(e,n,t,i){if(i)return;let a=n[e],s=t[e];return"angle"===e&&(a=ve(a),s=ve(s)),{property:e,start:a,end:s}}function Oi(e,n,t){for(;n>e;n--){const i=t[n];if(!isNaN(i.x)&&!isNaN(i.y))break}return n}function ja(e,n,t,i){return e&&n?i(e[t],n[t]):e?e[t]:n?n[t]:0}function Ga(e,n){let t=[],i=!1;return E(e)?(i=!0,t=e):t=function Ec(e,n){const{x:t=null,y:i=null}=e||{},a=n.points,s=[];return n.segments.forEach(({start:l,end:c})=>{c=Oi(l,c,a);const m=a[l],_=a[c];null!==i?(s.push({x:m.x,y:i}),s.push({x:_.x,y:i})):null!==t&&(s.push({x:t,y:m.y}),s.push({x:t,y:_.y}))}),s}(e,n),t.length?new Si({points:t,options:{tension:0},_loop:i,_fullLoop:i}):null}function Ua(e){return e&&!1!==e.fill}function Tc(e,n,t){let a=e[n].fill;const s=[n];let l;if(!t)return a;for(;!1!==a&&-1===s.indexOf(a);){if(!V(a))return a;if(l=e[a],!l)return!1;if(l.visible)return a;s.push(a),a=l.fill}return!1}function Dc(e,n,t){const i=function kc(e){const n=e.options,t=n.fill;let i=nt(t&&t.target,t);return void 0===i&&(i=!!n.backgroundColor),!1!==i&&null!==i&&(!0===i?"origin":i)}(e);if(tt(i))return!isNaN(i.value)&&i;let a=parseFloat(i);return V(a)&&Math.floor(a)===a?function Ic(e,n,t,i){return("-"===e||"+"===e)&&(t=n+t),!(t===n||t<0||t>=i)&&t}(i[0],n,a,t):["origin","start","end","stack","shape"].indexOf(i)>=0&&i}function Lc(e,n,t){const i=[];for(let a=0;a<t.length;a++){const s=t[a],{first:l,last:c,point:m}=Vc(s,n,"x");if(!(!m||l&&c))if(l)i.unshift(m);else if(e.push(m),!c)break}e.push(...i)}function Vc(e,n,t){const i=e.interpolate(n,t);if(!i)return{};const a=i[t],s=e.segments,l=e.points;let c=!1,m=!1;for(let _=0;_<s.length;_++){const M=s[_],w=l[M.start][t],A=l[M.end][t];if(ke(a,w,A)){c=a===w,m=a===A;break}}return{first:c,last:m,point:i}}class Ha{constructor(n){this.x=n.x,this.y=n.y,this.radius=n.radius}pathSegment(n,t,i){const{x:a,y:s,radius:l}=this;return n.arc(a,s,l,(t=t||{start:0,end:de}).end,t.start,!0),!i.bounds}interpolate(n){const{x:t,y:i,radius:a}=this,s=n.angle;return{x:t+Math.cos(s)*a,y:i+Math.sin(s)*a,angle:s}}}function uo(e,n,t){const i=function Bc(e){const{chart:n,fill:t,line:i}=e;if(V(t))return function zc(e,n){const t=e.getDatasetMeta(n);return t&&e.isDatasetVisible(n)?t.dataset:null}(n,t);if("stack"===t)return function Fc(e){const{scale:n,index:t,line:i}=e,a=[],s=i.segments,l=i.points,c=function Nc(e,n){const t=[],i=e.getMatchingVisibleMetas("line");for(let a=0;a<i.length;a++){const s=i[a];if(s.index===n)break;s.hidden||t.unshift(s.dataset)}return t}(n,t);c.push(Ga({x:null,y:n.bottom},i));for(let m=0;m<s.length;m++){const _=s[m];for(let M=_.start;M<=_.end;M++)Lc(a,l[M],c)}return new Si({points:a,options:{}})}(e);if("shape"===t)return!0;const a=function jc(e){return(e.scale||{}).getPointPositionForValue?function Uc(e){const{scale:n,fill:t}=e,i=n.options,a=n.getLabels().length,s=i.reverse?n.max:n.min,l=function Rc(e,n,t){let i;return i="start"===e?t:"end"===e?n.options.reverse?n.min:n.max:tt(e)?e.value:n.getBaseValue(),i}(t,n,s),c=[];if(i.grid.circular){const m=n.getPointPositionForValue(0,s);return new Ha({x:m.x,y:m.y,radius:n.getDistanceFromCenterForValue(l)})}for(let m=0;m<a;++m)c.push(n.getPointPositionForValue(m,l));return c}(e):function Gc(e){const{scale:n={},fill:t}=e,i=function Ac(e,n){let t=null;return"start"===e?t=n.bottom:"end"===e?t=n.top:tt(e)?t=n.getPixelForValue(e.value):n.getBasePixel&&(t=n.getBasePixel()),t}(t,n);if(V(i)){const a=n.isHorizontal();return{x:a?i:null,y:a?null:i}}return null}(e)}(e);return a instanceof Ha?a:Ga(a,i)}(n),{chart:a,index:s,line:l,scale:c,axis:m}=n,_=l.options,M=_.fill,w=_.backgroundColor,{above:A=w,below:L=w}=M||{},Q=a.getDatasetMeta(s),Y=Uo(a,Q);i&&l.points.length&&(ce(e,t),function Hc(e,n){const{line:t,target:i,above:a,below:s,area:l,scale:c,clip:m}=n,_=t._loop?"angle":n.axis;e.save();let M=s;s!==a&&("x"===_?(Wa(e,i,l.top),ho(e,{line:t,target:i,color:a,scale:c,property:_,clip:m}),e.restore(),e.save(),Wa(e,i,l.bottom)):"y"===_&&($a(e,i,l.left),ho(e,{line:t,target:i,color:s,scale:c,property:_,clip:m}),e.restore(),e.save(),$a(e,i,l.right),M=a)),ho(e,{line:t,target:i,color:M,scale:c,property:_,clip:m}),e.restore()}(e,{line:l,target:i,above:A,below:L,area:t,scale:c,axis:m,clip:Y}),re(e))}function Wa(e,n,t){const{segments:i,points:a}=n;let s=!0,l=!1;e.beginPath();for(const c of i){const{start:m,end:_}=c,M=a[m],w=a[Oi(m,_,a)];s?(e.moveTo(M.x,M.y),s=!1):(e.lineTo(M.x,t),e.lineTo(M.x,M.y)),l=!!n.pathSegment(e,c,{move:l}),l?e.closePath():e.lineTo(w.x,t)}e.lineTo(n.first().x,t),e.closePath(),e.clip()}function $a(e,n,t){const{segments:i,points:a}=n;let s=!0,l=!1;e.beginPath();for(const c of i){const{start:m,end:_}=c,M=a[m],w=a[Oi(m,_,a)];s?(e.moveTo(M.x,M.y),s=!1):(e.lineTo(t,M.y),e.lineTo(M.x,M.y)),l=!!n.pathSegment(e,c,{move:l}),l?e.closePath():e.lineTo(t,w.y)}e.lineTo(t,n.first().y),e.closePath(),e.clip()}function ho(e,n){const{line:t,target:i,property:a,color:s,scale:l,clip:c}=n,m=function wc(e,n,t){const i=e.segments,a=e.points,s=n.points,l=[];for(const c of i){let{start:m,end:_}=c;_=Oi(m,_,a);const M=go(t,a[m],a[_],c.loop);if(!n.segments){l.push({source:c,target:M,start:a[m],end:a[_]});continue}const w=zo(n,M);for(const A of w){const L=go(t,s[A.start],s[A.end],A.loop),Q=Bo(c,a,L);for(const Y of Q)l.push({source:Y,target:A,start:{[t]:ja(M,L,"start",Math.max)},end:{[t]:ja(M,L,"end",Math.min)}})}}return l}(t,i,a);for(const{source:_,target:M,start:w,end:A}of m){const{style:{backgroundColor:L=s}={}}=_,Q=!0!==i;e.save(),e.fillStyle=L,Wc(e,l,c,Q&&go(a,w,A)),e.beginPath();const Y=!!t.pathSegment(e,_);let et;if(Q){Y?e.closePath():Ja(e,i,A,a);const yt=!!i.pathSegment(e,M,{move:Y,reverse:!0});et=Y&&yt,et||Ja(e,i,w,a)}e.closePath(),e.fill(et?"evenodd":"nonzero"),e.restore()}}function Wc(e,n,t,i){const a=n.chart.chartArea,{property:s,start:l,end:c}=i||{};if("x"===s||"y"===s){let m,_,M,w;"x"===s?(m=l,_=a.top,M=c,w=a.bottom):(m=a.left,_=l,M=a.right,w=c),e.beginPath(),t&&(m=Math.max(m,t.left),M=Math.min(M,t.right),_=Math.max(_,t.top),w=Math.min(w,t.bottom)),e.rect(m,_,M-m,w-_),e.clip()}}function Ja(e,n,t,i){const a=n.interpolate(t,i);a&&e.lineTo(a.x,a.y)}var $c={id:"filler",afterDatasetsUpdate(e,n,t){const i=(e.data.datasets||[]).length,a=[];let s,l,c,m;for(l=0;l<i;++l)s=e.getDatasetMeta(l),c=s.dataset,m=null,c&&c.options&&c instanceof Si&&(m={visible:e.isDatasetVisible(l),index:l,fill:Dc(c,l,i),chart:e,axis:s.controller.options.indexAxis,scale:s.vScale,line:c}),s.$filler=m,a.push(m);for(l=0;l<i;++l)m=a[l],m&&!1!==m.fill&&(m.fill=Tc(a,l,t.propagate))},beforeDraw(e,n,t){const i="beforeDraw"===t.drawTime,a=e.getSortedVisibleDatasetMetas(),s=e.chartArea;for(let l=a.length-1;l>=0;--l){const c=a[l].$filler;c&&(c.line.updateControlPoints(s,c.axis),i&&c.fill&&uo(e.ctx,c,s))}},beforeDatasetsDraw(e,n,t){if("beforeDatasetsDraw"!==t.drawTime)return;const i=e.getSortedVisibleDatasetMetas();for(let a=i.length-1;a>=0;--a){const s=i[a].$filler;Ua(s)&&uo(e.ctx,s,e.chartArea)}},beforeDatasetDraw(e,n,t){const i=n.meta.$filler;!Ua(i)||"beforeDatasetDraw"!==t.drawTime||uo(e.ctx,i,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const Ya=(e,n)=>{let{boxHeight:t=n,boxWidth:i=n}=e;return e.usePointStyle&&(t=Math.min(t,n),i=e.pointStyleWidth||Math.min(i,n)),{boxWidth:i,boxHeight:t,itemHeight:Math.max(n,t)}};class Qa extends We{constructor(n){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=n.chart,this.options=n.options,this.ctx=n.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(n,t,i){this.maxWidth=n,this.maxHeight=t,this._margins=i,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const n=this.options.labels||{};let t=Ut(n.generateLabels,[this.chart],this)||[];n.filter&&(t=t.filter(i=>n.filter(i,this.chart.data))),n.sort&&(t=t.sort((i,a)=>n.sort(i,a,this.chart.data))),this.options.reverse&&t.reverse(),this.legendItems=t}fit(){const{options:n,ctx:t}=this;if(!n.display)return void(this.width=this.height=0);const i=n.labels,a=Ce(i.font),s=a.size,l=this._computeTitleHeight(),{boxWidth:c,itemHeight:m}=Ya(i,s);let _,M;t.font=a.string,this.isHorizontal()?(_=this.maxWidth,M=this._fitRows(l,s,c,m)+10):(M=this.maxHeight,_=this._fitCols(l,a,c,m)+10),this.width=Math.min(_,n.maxWidth||this.maxWidth),this.height=Math.min(M,n.maxHeight||this.maxHeight)}_fitRows(n,t,i,a){const{ctx:s,maxWidth:l,options:{labels:{padding:c}}}=this,m=this.legendHitBoxes=[],_=this.lineWidths=[0],M=a+c;let w=n;s.textAlign="left",s.textBaseline="middle";let A=-1,L=-M;
vendor: 4,205 bytes, line 1
1return this.legendItems.forEach((Q,Y)=>{const et=i+t/2+s.measureText(Q.text).width;(0===Y||_[_.length-1]+et+2*c>l)&&(w+=M,_[_.length-(Y>0?0:1)]=0,L+=M,A++),m[Y]={left:0,top:L,row:A,width:et,height:a},_[_.length-1]+=et+c}),w}_fitCols(n,t,i,a){const{ctx:s,maxHeight:l,options:{labels:{padding:c}}}=this,m=this.legendHitBoxes=[],_=this.columnSizes=[],M=l-n;let w=c,A=0,L=0,Q=0,Y=0;return this.legendItems.forEach((et,yt)=>{const{itemWidth:Pt,itemHeight:Nt}=function Yc(e,n,t,i,a){const s=function Qc(e,n,t,i){let a=e.text;return a&&"string"!=typeof a&&(a=a.reduce((s,l)=>s.length>l.length?s:l)),n+t.size/2+i.measureText(a).width}(i,e,n,t),l=function Kc(e,n,t){let i=e;return"string"!=typeof n.text&&(i=Ka(n,t)),i}(a,i,n.lineHeight);return{itemWidth:s,itemHeight:l}}(i,t,s,et,a);yt>0&&L+Nt+2*c>M&&(w+=A+c,_.push({width:A,height:L}),Q+=A+c,Y++,A=L=0),m[yt]={left:Q,top:L,col:Y,width:Pt,height:Nt},A=Math.max(A,Pt),L+=Nt+c}),w+=A,_.push({width:A,height:L}),w}adjustHitBoxes(){if(!this.options.display)return;const n=this._computeTitleHeight(),{legendHitBoxes:t,options:{align:i,labels:{padding:a},rtl:s}}=this,l=yn(s,this.left,this.width);if(this.isHorizontal()){let c=0,m=be(i,this.left+a,this.right-this.lineWidths[c]);for(const _ of t)c!==_.row&&(c=_.row,m=be(i,this.left+a,this.right-this.lineWidths[c])),_.top+=this.top+n+a,_.left=l.leftForLtr(l.x(m),_.width),m+=_.width+a}else{let c=0,m=be(i,this.top+n+a,this.bottom-this.columnSizes[c].height);for(const _ of t)_.col!==c&&(c=_.col,m=be(i,this.top+n+a,this.bottom-this.columnSizes[c].height)),_.top=m,_.left+=this.left+a,_.left=l.leftForLtr(l.x(_.left),_.width),m+=_.height+a}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const n=this.ctx;ce(n,this),this._draw(),re(n)}}_draw(){const{options:n,columnSizes:t,lineWidths:i,ctx:a}=this,{align:s,labels:l}=n,c=pe.color,m=yn(n.rtl,this.left,this.width),_=Ce(l.font),{padding:M}=l,w=_.size,A=w/2;let L;this.drawTitle(),a.textAlign=m.textAlign("left"),a.textBaseline="middle",a.lineWidth=.5,a.font=_.string;const{boxWidth:Q,boxHeight:Y,itemHeight:et}=Ya(l,w),Nt=this.isHorizontal(),Bt=this._computeTitleHeight();L=Nt?{x:be(s,this.left+M,this.right-i[0]),y:this.top+M+Bt,line:0}:{x:this.left+M,y:be(s,this.top+Bt+M,this.bottom-t[0].height),line:0},Fo(this.ctx,n.textDirection);const It=et+M;this.legendItems.forEach((Lt,Kt)=>{a.strokeStyle=Lt.fontColor,a.fillStyle=Lt.fontColor;const Wt=a.measureText(Lt.text).width,Zt=m.textAlign(Lt.textAlign||(Lt.textAlign=l.textAlign)),ne=Q+A+Wt;let ee=L.x,ae=L.y;m.setWidth(this.width),Nt?Kt>0&&ee+ne+M>this.right&&(ae=L.y+=It,L.line++,ee=L.x=be(s,this.left+M,this.right-i[L.line])):Kt>0&&ae+It>this.bottom&&(ee=L.x=ee+t[L.line].width+M,L.line++,ae=L.y=be(s,this.top+Bt+M,this.bottom-t[L.line].height)),function(Lt,Kt,Wt){if(isNaN(Q)||Q<=0||isNaN(Y)||Y<0)return;a.save();const Zt=nt(Wt.lineWidth,1);if(a.fillStyle=nt(Wt.fillStyle,c),a.lineCap=nt(Wt.lineCap,"butt"),a.lineDashOffset=nt(Wt.lineDashOffset,0),a.lineJoin=nt(Wt.lineJoin,"miter"),a.lineWidth=Zt,a.strokeStyle=nt(Wt.strokeStyle,c),a.setLineDash(nt(Wt.lineDash,[])),l.usePointStyle){const ne={radius:Y*Math.SQRT2/2,pointStyle:Wt.pointStyle,rotation:Wt.rotation,borderWidth:Zt},ee=m.xPlus(Lt,Q/2);Yt(a,ne,ee,Kt+A,l.pointStyleWidth&&Q)}else{const ne=Kt+Math.max((w-Y)/2,0),ee=m.leftForLtr(Lt,Q),ae=ln(Wt.borderRadius);a.beginPath(),Object.values(ae).some(xe=>0!==xe)?Vn(a,{x:ee,y:ne,w:Q,h:Y,radius:ae}):a.rect(ee,ne,Q,Y),a.fill(),0!==Zt&&a.stroke()}a.restore()}(m.x(ee),ae,Lt),ee=((e,n,t,i)=>e===(i?"left":"right")?t:"center"===e?(n+t)/2:n)(Zt,ee+Q+A,Nt?ee+ne:this.right,n.rtl),function(Lt,Kt,Wt){sn(a,Wt.text,Lt,Kt+et/2,_,{strikethrough:Wt.hidden,textAlign:m.textAlign(Wt.textAlign)})}(m.x(ee),ae,Lt),Nt?L.x+=ne+M:L.y+="string"!=typeof Lt.text?Ka(Lt,_.lineHeight)+M:It}),No(this.ctx,n.textDirection)}drawTitle(){const n=this.options,t=n.title,i=Ce(t.font),a=Me(t.padding);if(!t.display)return;const s=yn(n.rtl,this.left,this.width),l=this.ctx,c=t.position,_=a.top+i.size/2;let M,w=this.left,A=this.width;if(this.isHorizontal())A=Math.max(...this.lineWidths),M=this.top+_,w=be(n.align,w,this.right-A);else{const Q=this.columnSizes.reduce((Y,et)=>
vendor: 12,235 bytes, line 1
1Math.max(Y,et.height),0);M=_+be(n.align,this.top,this.bottom-Q-n.labels.padding-this._computeTitleHeight())}const L=be(c,w,w+A);l.textAlign=s.textAlign(kn(c)),l.textBaseline="middle",l.strokeStyle=t.color,l.fillStyle=t.color,l.font=i.string,sn(l,t.text,L,M,i)}_computeTitleHeight(){const n=this.options.title,t=Ce(n.font),i=Me(n.padding);return n.display?t.lineHeight+i.height:0}_getLegendItemAt(n,t){let i,a,s;if(ke(n,this.left,this.right)&&ke(t,this.top,this.bottom))for(s=this.legendHitBoxes,i=0;i<s.length;++i)if(a=s[i],ke(n,a.left,a.left+a.width)&&ke(t,a.top,a.top+a.height))return this.legendItems[i];return null}handleEvent(n){const t=this.options;if(!function Xc(e,n){return!(("mousemove"!==e&&"mouseout"!==e||!n.onHover&&!n.onLeave)&&(!n.onClick||"click"!==e&&"mouseup"!==e))}(n.type,t))return;const i=this._getLegendItemAt(n.x,n.y);if("mousemove"===n.type||"mouseout"===n.type){const a=this._hoveredItem,s=((e,n)=>null!==e&&null!==n&&e.datasetIndex===n.datasetIndex&&e.index===n.index)(a,i);a&&!s&&Ut(t.onLeave,[n,a,this],this),this._hoveredItem=i,i&&!s&&Ut(t.onHover,[n,i,this],this)}else i&&Ut(t.onClick,[n,i,this],this)}}function Ka(e,n){return n*(e.text?e.text.length:0)}var Zc={id:"legend",_element:Qa,start(e,n,t){const i=e.legend=new Qa({ctx:e.ctx,options:t,chart:e});ye.configure(e,i,t),ye.addBox(e,i)},stop(e){ye.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,n,t){const i=e.legend;ye.configure(e,i,t),i.options=t},afterUpdate(e){const n=e.legend;n.buildLabels(),n.adjustHitBoxes()},afterEvent(e,n){n.replay||e.legend.handleEvent(n.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,n,t){const i=n.datasetIndex,a=t.chart;a.isDatasetVisible(i)?(a.hide(i),n.hidden=!0):(a.show(i),n.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const n=e.data.datasets,{labels:{usePointStyle:t,pointStyle:i,textAlign:a,color:s,useBorderRadius:l,borderRadius:c}}=e.legend.options;return e._getSortedDatasetMetas().map(m=>{const _=m.controller.getStyle(t?0:void 0),M=Me(_.borderWidth);return{text:n[m.index].label,fillStyle:_.backgroundColor,fontColor:s,hidden:!m.visible,lineCap:_.borderCapStyle,lineDash:_.borderDash,lineDashOffset:_.borderDashOffset,lineJoin:_.borderJoinStyle,lineWidth:(M.width+M.height)/4,strokeStyle:_.borderColor,pointStyle:i||_.pointStyle,rotation:_.rotation,textAlign:a||_.textAlign,borderRadius:l&&(c||_.borderRadius),datasetIndex:m.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class fo extends We{constructor(n){super(),this.chart=n.chart,this.options=n.options,this.ctx=n.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(n,t){const i=this.options;if(this.left=0,this.top=0,!i.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=n,this.height=this.bottom=t;const a=E(i.text)?i.text.length:1;this._padding=Me(i.padding);const s=a*Ce(i.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=s:this.width=s}isHorizontal(){const n=this.options.position;return"top"===n||"bottom"===n}_drawArgs(n){const{top:t,left:i,bottom:a,right:s,options:l}=this,c=l.align;let _,M,w,m=0;return this.isHorizontal()?(M=be(c,i,s),w=t+n,_=s-i):("left"===l.position?(M=i+n,w=be(c,a,t),m=-.5*ie):(M=s-n,w=be(c,t,a),m=.5*ie),_=a-t),{titleX:M,titleY:w,maxWidth:_,rotation:m}}draw(){const n=this.ctx,t=this.options;if(!t.display)return;const i=Ce(t.font),s=i.lineHeight/2+this._padding.top,{titleX:l,titleY:c,maxWidth:m,rotation:_}=this._drawArgs(s);sn(n,t.text,0,0,i,{color:t.color,maxWidth:m,rotation:_,textAlign:kn(t.align),textBaseline:"middle",translation:[l,c]})}}var td={id:"title",_element:fo,start(e,n,t){!function qc(e,n){const t=new fo({ctx:e.ctx,options:n,chart:e});ye.configure(e,t,n),ye.addBox(e,t),e.titleBlock=t}(e,t)},stop(e){ye.removeBox(e,e.titleBlock),delete e.titleBlock},beforeUpdate(e,n,t){const i=e.titleBlock;ye.configure(e,i,t),i.options=t},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const wi=new WeakMap;var ed={id:"subtitle",start(e,n,t){const i=new fo({ctx:e.ctx,options:t,chart:e});ye.configure(e,i,t),ye.addBox(e,i),wi.set(e,i)},stop(e){ye.removeBox(e,wi.get(e)),wi.delete(e)},beforeUpdate(e,n,t){const i=wi.get(e);ye.configure(e,i,t),i.options=t},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Yn={average(e){if(!e.length)return!1;let n,t,i=new Set,a=0,s=0;for(n=0,t=e.length;n<t;++n){const c=e[n].element;if(c&&c.hasValue()){const m=c.tooltipPosition();i.add(m.x),a+=m.y,++s}}return 0!==s&&0!==i.size&&{x:[...i].reduce((c,m)=>c+m)/i.size,y:a/s}},nearest(e,n){if(!e.length)return!1;let s,l,c,t=n.x,i=n.y,a=Number.POSITIVE_INFINITY;for(s=0,l=e.length;s<l;++s){const m=e[s].element;if(m&&m.hasValue()){const M=An(n,m.getCenterPoint());M<a&&(a=M,c=m)}}if(c){const m=c.tooltipPosition();t=m.x,i=m.y}return{x:t,y:i}}};function ze(e,n){return n&&(E(n)?Array.prototype.push.apply(e,n):e.push(n)),e}function $e(e){return("string"==typeof e||e instanceof String)&&e.indexOf("\n")>-1?e.split("\n"):e}function nd(e,n){const{element:t,datasetIndex:i,index:a}=n,s=e.getDatasetMeta(i).controller,{label:l,value:c}=s.getLabelAndValue(a);return{chart:e,label:l,parsed:s.getParsed(a),raw:e.data.datasets[i].data[a],formattedValue:c,dataset:s.getDataset(),dataIndex:a,datasetIndex:i,element:t}}function Xa(e,n){const t=e.chart.ctx,{body:i,footer:a,title:s}=e,{boxWidth:l,boxHeight:c}=n,m=Ce(n.bodyFont),_=Ce(n.titleFont),M=Ce(n.footerFont),w=s.length,A=a.length,L=i.length,Q=Me(n.padding);let Y=Q.height,et=0,yt=i.reduce((Bt,It)=>Bt+It.before.length+It.lines.length+It.after.length,0);yt+=e.beforeBody.length+e.afterBody.length,w&&(Y+=w*_.lineHeight+(w-1)*n.titleSpacing+n.titleMarginBottom),yt&&(Y+=L*(n.displayColors?Math.max(c,m.lineHeight):m.lineHeight)+(yt-L)*m.lineHeight+(yt-1)*n.bodySpacing),A&&(Y+=n.footerMarginTop+A*M.lineHeight+(A-1)*n.footerSpacing);let Pt=0;const Nt=function(Bt){et=Math.max(et,t.measureText(Bt).width+Pt)};return t.save(),t.font=_.string,it(e.title,Nt),t.font=m.string,it(e.beforeBody.concat(e.afterBody),Nt),Pt=n.displayColors?l+2+n.boxPadding:0,it(i,Bt=>{it(Bt.before,Nt),it(Bt.lines,Nt),it(Bt.after,Nt)}),Pt=0,t.font=M.string,it(e.footer,Nt),t.restore(),et+=Q.width,{width:et,height:Y}}function ad(e,n,t,i){const{x:a,width:s}=t,{width:l,chartArea:{left:c,right:m}}=e;let _="center";return"center"===i?_=a<=(c+m)/2?"left":"right":a<=s/2?_="left":a>=l-s/2&&(_="right"),function od(e,n,t,i){const{x:a,width:s}=i,l=t.caretSize+t.caretPadding;if("left"===e&&a+s+l>n.width||"right"===e&&a-s-l<0)return!0}(_,e,n,t)&&(_="center"),_}function Za(e,n,t){const i=t.yAlign||n.yAlign||function id(e,n){const{y:t,height:i}=n;return t<i/2?"top":t>e.height-i/2?"bottom":"center"}(e,t);return{xAlign:t.xAlign||n.xAlign||ad(e,n,t,i),yAlign:i}}function qa(e,n,t,i){const{caretSize:a,caretPadding:s,cornerRadius:l}=e,{xAlign:c,yAlign:m}=t,_=a+s,{topLeft:M,topRight:w,bottomLeft:A,bottomRight:L}=ln(l);let Q=function rd(e,n){let{x:t,width:i}=e;return"right"===n?t-=i:"center"===n&&(t-=i/2),t}(n,c);const Y=function sd(e,n,t){let{y:i,height:a}=e;return"top"===n?i+=t:i-="bottom"===n?a+t:a/2,i}(n,m,_);return"center"===m?"left"===c?Q+=_:"right"===c&&(Q-=_):"left"===c?Q-=Math.max(M,A)+a:"right"===c&&(Q+=Math.max(w,L)+a),{x:_e(Q,0,i.width-n.width),y:_e(Y,0,i.height-n.height)}}function Ei(e,n,t){const i=Me(t.padding);return"center"===n?e.x+e.width/2:"right"===n?e.x+e.width-i.right:e.x+i.left}function tr(e){return ze([],$e(e))}function er(e,n){const t=n&&n.dataset&&n.dataset.tooltip&&n.dataset.tooltip.callbacks;return t?e.override(t):e}const nr={beforeTitle:y,title(e){if(e.length>0){const n=e[0],t=n.chart.data.labels,i=t?t.length:0;if(this&&this.options&&"dataset"===this.options.mode)return n.dataset.label||"";if(n.label)return n.label;if(i>0&&n.dataIndex<i)return t[n.dataIndex]}return""},afterTitle:y,beforeBody:y,beforeLabel:y,label(e){if(this&&this.options&&"dataset"===this.options.mode)return e.label+": "+e.formattedValue||e.formattedValue;let n=e.dataset.label||"";n&&(n+=": ");const t=e.formattedValue;return W(t)||(n+=t),n},labelColor(e){const t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:t.borderColor,backgroundColor:t.backgroundColor,borderWidth:t.borderWidth,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:t.pointStyle,rotation:t.rotation}},afterLabel:y,afterBody:y,beforeFooter:y,footer:y,afterFooter:y};function Ee(e,n,t,i){const a=e[n].call(t,i);return typeof a>"u"?nr[n].call(t,i):a}let ir=(()=>class e extends We{static positioners=Yn;constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const i=this.chart,a=this.options.setContext(this.getContext()),s=a.enabled&&i.options.animation&&a.animations,l=new Wo(this.chart,s);return s._cacheable&&(this._cachedAnimations=Object.freeze(l)),l}getContext(){return this.$context||(this.$context=function ld(e,n,t){return Qe(e,{tooltip:n,tooltipItems:t,type:"tooltip"})}(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,i){const{callbacks:a}=i,s=Ee(a,"beforeTitle",this,t),l=Ee(a,"title",this,t),c=Ee(a,"afterTitle",this,t);let m=[];return m=ze(m,$e(s)),m=ze(m,$e(l)),m=ze(m,$e(c)),m}getBeforeBody(t,i){return tr(Ee(i.callbacks,"beforeBody",this,t))}getBody(t,i){const{callbacks:a}=i,s=[];return it(t,l=>{const c={before:[],lines:[],after:[]},m=er(a,l);ze(c.before,$e(Ee(m,"beforeLabel",this,l))),ze(c.lines,Ee(m,"label",this,l)),ze(c.after,$e(Ee(m,"afterLabel",this,l))),s.push(c)}),s}getAfterBody(t,i){return tr(Ee(i.callbacks,"afterBody",this,t))}getFooter(t,i){const{callbacks:a}=i,s=Ee(a,"beforeFooter",this,t),l=Ee(a,"footer",this,t),c=Ee(a,"afterFooter",this,t);let m=[];return m=ze(m,$e(s)),m=ze(m,$e(l)),m=ze(m,$e(c)),m}_createItems(t){const i=this._active,a=this.chart.data,s=[],l=[],c=[];let _,M,m=[];for(_=0,M=i.length;_<M;++_)m.push(nd(this.chart,i[_]));return t.filter&&(m=m.filter((w,A,L)=>t.filter(w,A,L,a))),t.itemSort&&(m=m.sort((w,A)=>t.itemSort(w,A,a))),it(m,w=>{const A=er(t.callbacks,w);s.push(Ee(A,"labelColor",this,w)),l.push(Ee(A,"labelPointStyle",this,w)),c.push(Ee(A,"labelTextColor",this,w))}),this.labelColors=s,this.labelPointStyles=l,this.labelTextColors=c,this.dataPoints=m,m}update(t,i){const a=this.options.setContext(this.getContext()),s=this._active;let l,c=[];if(s.length){const m=Yn[a.position].call(this,s,this._eventPosition);c=this._createItems(a),this.title=this.getTitle(c,a),this.beforeBody=this.getBeforeBody(c,a),this.body=this.getBody(c,a),this.afterBody=this.getAfterBody(c,a),this.footer=this.getFooter(c,a);const _=this._size=Xa(this,a),M=Object.assign({},m,_),w=Za(this.chart,a,M),A=qa(a,M,w,this.chart);this.xAlign=w.xAlign,this.yAlign=w.yAlign,l={opacity:1,x:A.x,y:A.y,width:_.width,height:_.height,caretX:m.x,caretY:m.y}}else 0!==this.opacity&&(l={opacity:0}
vendor: 5,075 bytes, line 1
1);this._tooltipItems=c,this.$context=void 0,l&&this._resolveAnimations().update(this,l),t&&a.external&&a.external.call(this,{chart:this.chart,tooltip:this,replay:i})}drawCaret(t,i,a,s){const l=this.getCaretPosition(t,a,s);i.lineTo(l.x1,l.y1),i.lineTo(l.x2,l.y2),i.lineTo(l.x3,l.y3)}getCaretPosition(t,i,a){const{xAlign:s,yAlign:l}=this,{caretSize:c,cornerRadius:m}=a,{topLeft:_,topRight:M,bottomLeft:w,bottomRight:A}=ln(m),{x:L,y:Q}=t,{width:Y,height:et}=i;let yt,Pt,Nt,Bt,It,Lt;return"center"===l?(It=Q+et/2,"left"===s?(yt=L,Pt=yt-c,Bt=It+c,Lt=It-c):(yt=L+Y,Pt=yt+c,Bt=It-c,Lt=It+c),Nt=yt):(Pt="left"===s?L+Math.max(_,w)+c:"right"===s?L+Y-Math.max(M,A)-c:this.caretX,"top"===l?(Bt=Q,It=Bt-c,yt=Pt-c,Nt=Pt+c):(Bt=Q+et,It=Bt+c,yt=Pt+c,Nt=Pt-c),Lt=Bt),{x1:yt,x2:Pt,x3:Nt,y1:Bt,y2:It,y3:Lt}}drawTitle(t,i,a){const s=this.title,l=s.length;let c,m,_;if(l){const M=yn(a.rtl,this.x,this.width);for(t.x=Ei(this,a.titleAlign,a),i.textAlign=M.textAlign(a.titleAlign),i.textBaseline="middle",c=Ce(a.titleFont),m=a.titleSpacing,i.fillStyle=a.titleColor,i.font=c.string,_=0;_<l;++_)i.fillText(s[_],M.x(t.x),t.y+c.lineHeight/2),t.y+=c.lineHeight+m,_+1===l&&(t.y+=a.titleMarginBottom-m)}}_drawColorBox(t,i,a,s,l){const c=this.labelColors[a],m=this.labelPointStyles[a],{boxHeight:_,boxWidth:M}=l,w=Ce(l.bodyFont),A=Ei(this,"left",l),L=s.x(A),Y=i.y+(_<w.lineHeight?(w.lineHeight-_)/2:0);if(l.usePointStyle){const et={radius:Math.min(M,_)/2,pointStyle:m.pointStyle,rotation:m.rotation,borderWidth:1},yt=s.leftForLtr(L,M)+M/2,Pt=Y+_/2;t.strokeStyle=l.multiKeyBackground,t.fillStyle=l.multiKeyBackground,Vt(t,et,yt,Pt),t.strokeStyle=c.borderColor,t.fillStyle=c.backgroundColor,Vt(t,et,yt,Pt)}else{t.lineWidth=tt(c.borderWidth)?Math.max(...Object.values(c.borderWidth)):c.borderWidth||1,t.strokeStyle=c.borderColor,t.setLineDash(c.borderDash||[]),t.lineDashOffset=c.borderDashOffset||0;const et=s.leftForLtr(L,M),yt=s.leftForLtr(s.xPlus(L,1),M-2),Pt=ln(c.borderRadius);Object.values(Pt).some(Nt=>0!==Nt)?(t.beginPath(),t.fillStyle=l.multiKeyBackground,Vn(t,{x:et,y:Y,w:M,h:_,radius:Pt}),t.fill(),t.stroke(),t.fillStyle=c.backgroundColor,t.beginPath(),Vn(t,{x:yt,y:Y+1,w:M-2,h:_-2,radius:Pt}),t.fill()):(t.fillStyle=l.multiKeyBackground,t.fillRect(et,Y,M,_),t.strokeRect(et,Y,M,_),t.fillStyle=c.backgroundColor,t.fillRect(yt,Y+1,M-2,_-2))}t.fillStyle=this.labelTextColors[a]}drawBody(t,i,a){const{body:s}=this,{bodySpacing:l,bodyAlign:c,displayColors:m,boxHeight:_,boxWidth:M,boxPadding:w}=a,A=Ce(a.bodyFont);let L=A.lineHeight,Q=0;const Y=yn(a.rtl,this.x,this.width),et=function(Zt){i.fillText(Zt,Y.x(t.x+Q),t.y+L/2),t.y+=L+l},yt=Y.textAlign(c);let Pt,Nt,Bt,It,Lt,Kt,Wt;for(i.textAlign=c,i.textBaseline="middle",i.font=A.string,t.x=Ei(this,yt,a),i.fillStyle=a.bodyColor,it(this.beforeBody,et),Q=m&&"right"!==yt?"center"===c?M/2+w:M+2+w:0,It=0,Kt=s.length;It<Kt;++It){for(Pt=s[It],Nt=this.labelTextColors[It],i.fillStyle=Nt,it(Pt.before,et),Bt=Pt.lines,m&&Bt.length&&(this._drawColorBox(i,t,It,Y,a),L=Math.max(A.lineHeight,_)),Lt=0,Wt=Bt.length;Lt<Wt;++Lt)et(Bt[Lt]),L=A.lineHeight;it(Pt.after,et)}Q=0,L=A.lineHeight,it(this.afterBody,et),t.y-=l}drawFooter(t,i,a){const s=this.footer,l=s.length;let c,m;if(l){const _=yn(a.rtl,this.x,this.width);for(t.x=Ei(this,a.footerAlign,a),t.y+=a.footerMarginTop,i.textAlign=_.textAlign(a.footerAlign),i.textBaseline="middle",c=Ce(a.footerFont),i.fillStyle=a.footerColor,i.font=c.string,m=0;m<l;++m)i.fillText(s[m],_.x(t.x),t.y+c.lineHeight/2),t.y+=c.lineHeight+a.footerSpacing}}drawBackground(t,i,a,s){const{xAlign:l,yAlign:c}=this,{x:m,y:_}=t,{width:M,height:w}=a,{topLeft:A,topRight:L,bottomLeft:Q,bottomRight:Y}=ln(s.cornerRadius);i.fillStyle=s.backgroundColor,i.strokeStyle=s.borderColor,i.lineWidth=s.borderWidth,i.beginPath(),i.moveTo(m+A,_),"top"===c&&this.drawCaret(t,i,a,s),i.lineTo(m+M-L,_),i.quadraticCurveTo(m+M,_,m+M,_+L),"center"===c&&"right"===l&&this.drawCaret(t,i,a,s),i.lineTo(m+M,_+w-Y),i.quadraticCurveTo(m+M,_+w,m+M-Y,_+w),"bottom"===c&&this.drawCaret(t,i,a,s),i.lineTo(m+Q,_+w),i.quadraticCurveTo(m,_+w,m,_+w-Q),"center"===c&&"left"===l&&this.drawCaret(t,i,a,s),i.lineTo(m,_+A),i.quadraticCurveTo(m,_,m+A,_),i.closePath(),i.fill(),s.borderWidth>0&&i.stroke()}_updateAnimationTarget(t){const i=this.chart,a=this.$animations,s=a&&a.x,l=a&&a.y;if(s||l){const c=Yn[t.position].call(this,this._active,this._eventPosition);if(!c)return;const m=this._size=Xa(this,t),_=Object.assign({},c,this._size),M=Za(i,t,_),w=qa(t,_,M,i);(s._to!==w.x||l._to!==w.y)&&(this.xAlign=M.xAlign,this.yAlign=M.yAlign,this.width=m.width,this.height=m.height,this.caretX=c.x,this.caretY=c.y,this._resolveAnimations().update(this,w))}}_willRender(){return!!this.opacity}draw(t){const i=this.options.setContext(this.getContext());let a=this.opacity;if(!a)return;this._updateAnimationTarget(i);const s={width:this.width,height:this.height},l={x:this.x,y:this.y};a=Math.abs(a)<.001?0:a;const c=Me(i.padding);i.enabled&&(this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length)&&(t.save(),t.globalAlpha=a,this.drawBackgroun
vendor: 2,349 bytes, line 1
1d(l,t,s,i),Fo(t,i.textDirection),l.y+=c.top,this.drawTitle(l,t,i),this.drawBody(l,t,i),this.drawFooter(l,t,i),No(t,i.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,i){const a=this._active,s=t.map(({datasetIndex:m,index:_})=>{const M=this.chart.getDatasetMeta(m);if(!M)throw new Error("Cannot find a dataset at index "+m);return{datasetIndex:m,element:M.data[_],index:_}}),l=!Ft(a,s),c=this._positionChanged(s,i);(l||c)&&(this._active=s,this._eventPosition=i,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,i,a=!0){if(i&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const s=this.options,l=this._active||[],c=this._getActiveElements(t,l,i,a),m=this._positionChanged(c,t),_=i||!Ft(c,l)||m;return _&&(this._active=c,(s.enabled||s.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,i))),_}_getActiveElements(t,i,a,s){const l=this.options;if("mouseout"===t.type)return[];if(!s)return i.filter(m=>this.chart.data.datasets[m.datasetIndex]&&void 0!==this.chart.getDatasetMeta(m.datasetIndex).controller.getParsed(m.index));const c=this.chart.getElementsAtEventForMode(t,l.mode,l,a);return l.reverse&&c.reverse(),c}_positionChanged(t,i){const{caretX:a,caretY:s,options:l}=this,c=Yn[l.position].call(this,t,i);return!1!==c&&(a!==c.x||s!==c.y)}})();var dd=Object.freeze({__proto__:null,Colors:Mc,Decimation:Oc,Filler:$c,Legend:Zc,SubTitle:ed,Title:td,Tooltip:{id:"tooltip",_element:ir,positioners:Yn,afterInit(e,n,t){t&&(e.tooltip=new ir({chart:e,options:t}))},beforeUpdate(e,n,t){e.tooltip&&e.tooltip.initialize(t)},reset(e,n,t){e.tooltip&&e.tooltip.initialize(t)},afterDraw(e){const n=e.tooltip;if(n&&n._willRender()){const t={tooltip:n};if(!1===e.notifyPlugins("beforeTooltipDraw",{...t,cancelable:!0}))return;n.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",t)}},afterEvent(e,n){e.tooltip&&e.tooltip.handleEvent(n.event,n.replay,n.inChartArea)&&(n.changed=!0)},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,n)=>
vendor: 4,702 bytes, line 1
1n.bodyFont.size,boxWidth:(e,n)=>n.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:nr},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>"filter"!==e&&"itemSort"!==e&&"external"!==e,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]}});function or(e){const n=this.getLabels();return e>=0&&e<n.length?n[e]:e}let ud=(()=>class e extends gn{static id="category";static defaults={ticks:{callback:or}};constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const i=this._addedLabels;if(i.length){const a=this.getLabels();for(const{index:s,label:l}of i)a[s]===l&&a.splice(s,1);this._addedLabels=[]}super.init(t)}parse(t,i){if(W(t))return null;const a=this.getLabels();return((e,n)=>null===e?null:_e(Math.round(e),0,n))(i=isFinite(i)&&a[i]===t?i:function pd(e,n,t,i){const a=e.indexOf(n);return-1===a?((e,n,t,i)=>("string"==typeof n?(t=e.push(n)-1,i.unshift({index:t,label:n})):isNaN(n)&&(t=null),t))(e,n,t,i):a!==e.lastIndexOf(n)?t:a}(a,t,nt(i,t),this._addedLabels),a.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:i}=this.getUserBounds();let{min:a,max:s}=this.getMinMax(!0);"ticks"===this.options.bounds&&(t||(a=0),i||(s=this.getLabels().length-1)),this.min=a,this.max=s}buildTicks(){const t=this.min,i=this.max,a=this.options.offset,s=[];let l=this.getLabels();l=0===t&&i===l.length-1?l:l.slice(t,i+1),this._valueRange=Math.max(l.length-(a?0:1),1),this._startValue=this.min-(a?.5:0);for(let c=t;c<=i;c++)s.push({value:c});return s}getLabelForValue(t){return or.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return"number"!=typeof t&&(t=this.parse(t)),null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const i=this.ticks;return t<0||t>i.length-1?null:this.getPixelForValue(i[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}})();function ar(e,n,{horizontal:t,minRotation:i}){const a=we(i),s=(t?Math.sin(a):Math.cos(a))||.001;return Math.min(n/s,.75*n*(""+e).length)}class Ti extends gn{constructor(n){super(n),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(n,t){return W(n)||("number"==typeof n||n instanceof Number)&&!isFinite(+n)?null:+n}handleTickRangeOptions(){const{beginAtZero:n}=this.options,{minDefined:t,maxDefined:i}=this.getUserBounds();let{min:a,max:s}=this;const l=m=>a=t?a:m,c=m=>s=i?s:m;if(n){const m=Z(a),_=Z(s);m<0&&_<0?c(0):m>0&&_>0&&l(0)}if(a===s){let m=0===s?1:Math.abs(.05*s);c(s+m),n||l(a-m)}this.min=a,this.max=s}getTickLimit(){const n=this.options.ticks;let a,{maxTicksLimit:t,stepSize:i}=n;return i?(a=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,a>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${i} would result generating up to ${a} ticks. Limiting to 1000.`),a=1e3)):(a=this.computeTickLimit(),t=t||11),t&&(a=Math.min(t,a)),a}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const n=this.options,t=n.ticks;let i=this.getTickLimit();i=Math.max(2,i);const l=function hd(e,n){const t=[],{bounds:a,step:s,min:l,max:c,precision:m,count:_,maxTicks:M,maxDigits:w,includeBounds:A}=e,L=s||1,Q=M-1,{min:Y,max:et}=n,yt=!W(l),Pt=!W(c),Nt=!W(_),Bt=(et-Y)/(w+1);let Lt,Kt,Wt,Zt,It=zt((et-Y)/Q/L)*L;if(It<1e-14&&!yt&&!Pt)return[{value:Y},{value:et}];Zt=Math.ceil(et/It)-Math.floor(Y/It),Zt>Q&&(It=zt(Zt*It/Q/L)*L),W(m)||(Lt=Math.pow(10,m),It=Math.ceil(It*Lt)/Lt),"ticks"===a?(Kt=Math.floor(Y/It)*It,Wt=Math.ceil(et/It)*It):(Kt=Y,Wt=et),yt&&Pt&&s&&function Ve(e,n){const t=Math.round(e);return t-n<=e&&t+n>=e}((c-l)/s,It/1e3)?(Zt=Math.round(Math.min((c-l)/It,M)),It=(c-l)/Zt,Kt=l,Wt=c):Nt?(Kt=yt?l:Kt,Wt=Pt?c:Wt,Zt=_-1,It=(Wt-Kt)/Zt):(Zt=(Wt-Kt)/It,Zt=$t(Zt,Math.round(Zt),It/1e3)?Math.round(Zt):Math.ceil(Zt));const ne=Math.max(qn(It),qn(Kt));Lt=Math.pow(10,W(m)?ne:m),Kt=Math.round(Kt*Lt)/Lt,Wt=Math.round(Wt*Lt)/Lt;let ee=0;for(yt&&(A&&Kt!==l?(t.push({value:l}),Kt<l&&ee++,$t(Math.round((Kt+ee*It)*Lt)/Lt,l,ar(l,Bt,e))&&ee++):Kt<l&&ee++);ee<Zt;++ee){const ae=Math.round((Kt+ee*It)*Lt)/Lt;if(Pt&&ae>c)break;t.push({value:ae})}return Pt&&A&&Wt!==c?t.length&&$t(t[t.length-1].value,c,ar(c,Bt,e))?t[t.length-1].value=c:t.push({value:c}
1):(!Pt||Wt===c)&&t.push({value:Wt}),t}({maxTicks:i,bounds:n.bounds,min:n.min,max:n.max,precision:t.precision,step:t.stepSize,count:t.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:t.minRotation||0,includeBounds:!1!==t.includeBounds},this._range||this);return"ticks"===n.bounds&&vn(l,this,"value"),n.reverse?(l.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),l}configure(){const n=this.ticks;let t=this.min,i=this.max;if(super.configure(),this.options.offset&&n.length){const a=(i-t)/Math.max(n.length-1,1)/2;t-=a,i+=a}this._startValue=t,this._endValue=i,this._valueRange=i-t}getLabelForValue(n){return Ne(n,this.chart.options.locale,this.options.ticks.format)}}const Qn=e=>Math.floor(te(e)),un=(e,n)=>Math.pow(10,Qn(e)+n);function rr(e){return e/Math.pow(10,Qn(e))===1}function sr(e,n,t){const i=Math.pow(10,t),a=Math.floor(e/i);return Math.ceil(n/i)-a}function _o(e){const n=e.ticks;if(n.display&&e.display){const t=Me(n.backdropPadding);return nt(n.font&&n.font.size,pe.font.size)+t.height}return 0}function bd(e,n,t){return t=E(t)?t:[t],{w:P(e,n.string,t),h:t.length*n.lineHeight}}function lr(e,n,t,i,a){return e===i||e===a?{start:n-t/2,end:n+t/2}:e<i||e>a?{start:n-t,end:n}:{start:n,end:n+t}}function Md(e,n,t,i,a){const s=Math.abs(Math.sin(t)),l=Math.abs(Math.cos(t));let c=0,m=0;i.start<n.l?(c=(n.l-i.start)/s,e.l=Math.min(e.l,n.l-c)):i.end>n.r&&(c=(i.end-n.r)/s,e.r=Math.max(e.r,n.r+c)),a.start<n.t?(m=(n.t-a.start)/l,e.t=Math.min(e.t,n.t-m)):a.end>n.b&&(m=(a.end-n.b)/l,e.b=Math.max(e.b,n.b+m))}function yd(e,n,t){const i=e.drawingArea,{extra:a,additionalAngle:s,padding:l,size:c}=t,m=e.getPointPosition(n,i+a+l,s),_=Math.round(nn(ve(m.angle+ge))),M=function Ed(e,n,t){return 90===t||270===t?e-=n/2:(t>270||t<90)&&(e-=n),e}(m.y,c.h,_),w=function Od(e){return 0===e||180===e?"center":e<180?"left":"right"}(_),A=function wd(e,n,t){return"right"===t?e-=n:"center"===t&&(e-=n/2),e}(m.x,c.w,w);return{visible:!0,x:m.x,y:M,textAlign:w,left:A,top:M,right:A+c.w,bottom:M+c.h}}function Pd(e,n){if(!n)return!0;const{left:t,top:i,right:a,bottom:s}=e;return!(le({x:t,y:i},n)||le({x:t,y:s},n)||le({x:a,y:i},n)||le({x:a,y:s},n))}function Td(e,n,t){const{left:i,top:a,right:s,bottom:l}=t,{backdropColor:c}=n;if(!W(c)){const m=ln(n.borderRadius),_=Me(n.backdropPadding);e.fillStyle=c;const M=i-_.left,w=a-_.top,A=s-i+_.width,L=l-a+_.height;Object.values(m).some(Q=>0!==Q)?(e.beginPath(),Vn(e,{x:M,y:w,w:A,h:L,radius:m}),e.fill()):e.fillRect(M,w,A,L)}}function cr(e,n,t,i){const{ctx:a}=e;if(t)a.arc(e.xCenter,e.yCenter,n,0,de);else{let s=e.getPointPosition(0,n);a.moveTo(s.x,s.y);for(let l=1;l<i;l++)s=e.getPointPosition(l,n),a.lineTo(s.x,s.y)}}const Di={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Te=Object.keys(Di);function dr(e,n){return e-n}function mr(e,n){if(W(n))return null;const t=e._adapter,{parser:i,round:a,isoWeekday:s}=e._parseOpts;let l=n;return"function"==typeof i&&(l=i(l)),V(l)||(l="string"==typeof i?t.parse(l,i):t.parse(l)),null===l?null:(a&&(l="week"!==a||!Oe(s)&&!0!==s?t.startOf(l,a):t.startOf(l,"isoWeek",s)),+l)}function pr(e,n,t,i){const a=Te.length;for(let s=Te.indexOf(e);s<a-1;++s){const l=Di[Te[s]];if(l.common&&Math.ceil((t-n)/((l.steps?l.steps:Number.MAX_SAFE_INTEGER)*l.size))<=i)return Te[s]}return Te[a-1]}function gr(e,n,t){if(t){if(t.length){const{lo:i,hi:a}=Rn(t,n);e[t[i]>=n?t[i]:t[a]]=!0}}else e[n]=!0}function ur(e,n,t){const i=[],a={},s=n.length;let l,c;for(l=0;l<s;++l)c=n[l],a[c]=l,i.push({value:c,major:!1});return 0!==s&&t?function Nd(e,n,t,i){const a=e._adapter,s=+a.startOf(n[0].value,i),l=n[n.length-1].value;let c,m;for(c=s;c<=l;c=+a.add(c,1,i))m=t[c],m>=0&&(n[m].major=!0);return n}(e,i,a,t):i}let Co=(()=>class e extends gn{static id="time";static defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}};constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,i={}){const a=t.time||(t.time={}),s=this._adapter=new Ls__date(t.adapters.date);s.init(i),he(a.displayFormats,s.formats()),this._parseOpts={parser:a.parser,round:a.roun
vendor: 8,077 bytes, line 1
1d,isoWeekday:a.isoWeekday},super.init(t),this._normalized=i.normalized}parse(t,i){return void 0===t?null:mr(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,i=this._adapter,a=t.time.unit||"day";let{min:s,max:l,minDefined:c,maxDefined:m}=this.getUserBounds();function _(M){!c&&!isNaN(M.min)&&(s=Math.min(s,M.min)),!m&&!isNaN(M.max)&&(l=Math.max(l,M.max))}(!c||!m)&&(_(this._getLabelBounds()),("ticks"!==t.bounds||"labels"!==t.ticks.source)&&_(this.getMinMax(!1))),s=V(s)&&!isNaN(s)?s:+i.startOf(Date.now(),a),l=V(l)&&!isNaN(l)?l:+i.endOf(Date.now(),a)+1,this.min=Math.min(s,l-1),this.max=Math.max(s+1,l)}_getLabelBounds(){const t=this.getLabelTimestamps();let i=Number.POSITIVE_INFINITY,a=Number.NEGATIVE_INFINITY;return t.length&&(i=t[0],a=t[t.length-1]),{min:i,max:a}}buildTicks(){const t=this.options,i=t.time,a=t.ticks,s="labels"===a.source?this.getLabelTimestamps():this._generate();"ticks"===t.bounds&&s.length&&(this.min=this._userMin||s[0],this.max=this._userMax||s[s.length-1]);const l=this.min,m=function Ni(e,n,t){let i=0,a=e.length;for(;i<a&&e[i]<n;)i++;for(;a>i&&e[a-1]>t;)a--;return i>0||a<e.length?e.slice(i,a):e}(s,l,this.max);return this._unit=i.unit||(a.autoSkip?pr(i.minUnit,this.min,this.max,this._getLabelCapacity(l)):function kd(e,n,t,i,a){for(let s=Te.length-1;s>=Te.indexOf(t);s--){const l=Te[s];if(Di[l].common&&e._adapter.diff(a,i,l)>=n-1)return l}return Te[t?Te.indexOf(t):0]}(this,m.length,i.minUnit,this.min,this.max)),this._majorUnit=a.major.enabled&&"year"!==this._unit?function Fd(e){for(let n=Te.indexOf(e)+1,t=Te.length;n<t;++n)if(Di[Te[n]].common)return Te[n]}(this._unit):void 0,this.initOffsets(s),t.reverse&&m.reverse(),ur(this,m,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let s,l,i=0,a=0;this.options.offset&&t.length&&(s=this.getDecimalForValue(t[0]),i=1===t.length?1-s:(this.getDecimalForValue(t[1])-s)/2,l=this.getDecimalForValue(t[t.length-1]),a=1===t.length?l:(l-this.getDecimalForValue(t[t.length-2]))/2);const c=t.length<3?.5:.25;i=_e(i,0,c),a=_e(a,0,c),this._offsets={start:i,end:a,factor:1/(i+1+a)}}_generate(){const t=this._adapter,i=this.min,a=this.max,s=this.options,l=s.time,c=l.unit||pr(l.minUnit,i,a,this._getLabelCapacity(i)),m=nt(s.ticks.stepSize,1),_="week"===c&&l.isoWeekday,M=Oe(_)||!0===_,w={};let L,Q,A=i;if(M&&(A=+t.startOf(A,"isoWeek",_)),A=+t.startOf(A,M?"day":c),t.diff(a,i,c)>1e5*m)throw new Error(i+" and "+a+" are too far apart with stepSize of "+m+" "+c);const Y="data"===s.ticks.source&&this.getDataTimestamps();for(L=A,Q=0;L<a;L=+t.add(L,m,c),Q++)gr(w,L,Y);return(L===a||"ticks"===s.bounds||1===Q)&&gr(w,L,Y),Object.keys(w).sort(dr).map(et=>+et)}getLabelForValue(t){const a=this.options.time;return this._adapter.format(t,a.tooltipFormat?a.tooltipFormat:a.displayFormats.datetime)}format(t,i){return this._adapter.format(t,i||this.options.time.displayFormats[this._unit])}_tickFormatFunction(t,i,a,s){const l=this.options,c=l.ticks.callback;if(c)return Ut(c,[t,i,a],this);const m=l.time.displayFormats,_=this._unit,M=this._majorUnit,A=M&&m[M],L=a[i];return this._adapter.format(t,s||(M&&A&&L&&L.major?A:_&&m[_]))}generateTickLabels(t){let i,a,s;for(i=0,a=t.length;i<a;++i)s=t[i],s.label=this._tickFormatFunction(s.value,i,t)}getDecimalForValue(t){return null===t?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const i=this._offsets,a=this.getDecimalForValue(t);return this.getPixelForDecimal((i.start+a)*i.factor)}getValueForPixel(t){const i=this._offsets,a=this.getDecimalForPixel(t)/i.factor-i.end;return this.min+a*(this.max-this.min)}_getLabelSize(t){const i=this.options.ticks,a=this.ctx.measureText(t).width,s=we(this.isHorizontal()?i.maxRotation:i.minRotation),l=Math.cos(s),c=Math.sin(s),m=this._resolveTickFontOptions(0).size;return{w:a*l+m*c,h:a*c+m*l}}_getLabelCapacity(t){const i=this.options.time,a=i.displayFormats,s=a[i.unit]||a.millisecond,l=this._tickFormatFunction(t,0,ur(this,[t],this._majorUnit),s),c=this._getLabelSize(l),m=Math.floor(this.isHorizontal()?this.width/c.w:this.height/c.h)-1;return m>0?m:1}getDataTimestamps(){let i,a,t=this._cache.data||[];if(t.length)return t;const s=this.getMatchingVisibleMetas();if(this._normalized&&s.length)return this._cache.data=s[0].controller.getAllParsedValues(this);for(i=0,a=s.length;i<a;++i)t=t.concat(s[i].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){const t=this._cache.labels||[];let i,a;if(t.length)return t;const s=this.getLabels();for(i=0,a=s.length;i<a;++i)t.push(mr(this,s[i]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return ii(t.sort(dr))}})();function Ii(e,n,t){let s,l,c,m,i=0,a=e.length-1;t?(n>=e[i].pos&&n<=e[a].pos&&({lo:i,hi:a}=Fe(e,"pos",n)),({pos:s,time:c}=e[i]),({pos:l,time:m}=e[a])):(n>=e[i].time&&n<=e[a].time&&({lo:i,hi:a}=Fe(e,"time",n)),({time:s,pos:c}=e[i]),({time:l,pos:m}=e[a]));const _=l-s;return _?c+(m-c)*(n-s)/_:c}const Bd=[Ns,hc,dd,Object.freeze({__proto__:null,CategoryScale:ud,LinearScale:class fd extends Ti{static id="linear";static defaults={ticks:{callback:Ye.formatters.numeric}};determineDataLimits(){const{min:n,max:t}=this.getMinMax(!0);this.min=V(n)?n:0,this.max=V(t)?t:1,this.handleTickRangeOptions()}computeTickLimit(){const n=this.isHorizontal(),t=n?this.width:this.height,i=we(this.options.ticks.minRotation),a=(n?Math.sin(i):Math.cos(i))||.001,s=this._resolveTickFontOptions(0);return Math.ceil(t/Math.min(40,s.lineHeight/a))}getPixelForValue(n){return null===n?NaN:this.getPixelForDecimal((n-this._startValue)/this._valueRange)}getValueForPixel(n){return this._startValue+this.getDecimalForPixel(n)*this._valueRange}},LogarithmicScale:class vd extends gn{static id="logarithmic";static defaults={ticks:{callback:Ye.formatters.logarithmic,major:{enabled:!0}}};constructor(n){super(n),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(n,t){const i=Ti.prototype.parse.apply(this,[n,t]);if(0!==i)return V(i)&&i>0?i:null;this._zero=!0}determineDataLimits(){const{min:n,max:t}=this.getMinMax(!0);this.min=V(n)?Math.max(0,n):null,this.max=V(t)?Math.max(0,t):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!V(this._userMin)&&(this.min=n===un(this.min,0)?un(this.min,-1):un(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:n,maxDefined:t}=this.getUserBounds();let i=this.min,a=this.max;const s=c=>i=n?i:c,l=c=>a=t?a:c;i===a&&(i<=0?(s(1),l(10)):(s(un(i,-1)),l(un(a,1)))),i<=0&&s(un(a,-1)),a<=0&&l(un(i,1)),this.min=i,this.max=a}buildTicks(){const n=this.options,i=function Cd(e,{min:n,max:t}){n=Et(e.min,n);const i=[],a=Qn(n);let s=function _d(e,n){let i=Qn(n-e);for(;sr(e,n,i)>10;)i++;for(;sr(e,n,i)<10;)i--;return Math.min(i,Qn(e))}(n,t),l=s<0?Math.pow(10,Math.abs(s)):1;const c=Math.pow(10,s),m=a>s?Math.pow(10,a):0,_=Math.round((n-m)*l)/l,M=Math.floor((n-m)/c/10)*c*10;let w=Math.floor((_-M)/Math.pow(10,s)),A=Et(e.min,Math.round((m+M+w*Math.pow(10,s))*l)/l);for(;A<t;)i.push({value:A,major:rr(A),significand:w}),w>=10?w=w<15?15:20:w++,w>=20&&(s++,w=2,l=s>=0?1:l),A=Math.round((m+M+w*Math.pow(10,s))*l)/l;const L=Et(e.max,A);return i.push({value:L,major:rr(L),significand:w}),i}({min:this._userMin,max:this._userMax},this);return"ticks"===n.bounds&&vn(i,this,"value"),n.reverse?(i.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),i}getLabelForValue(n){return void 0===n?"0":Ne(n,this.chart.options.locale,this.options.ticks.format)}configure(){const n=this.min;super.configure(),this._startValue=te(n),this._valueRange=te(this.max)-te(n)}getPixelForValue(n){return(void 0===n||0===n)&&(n=this.min),null===n||isNaN(n)?NaN:this.getPixelForDecimal(n===this.min?0:(te(n)-this._startValue)/this._valueRange)}getValueForPixel(n){const t=this.getDecimalForPixel(n);return Math.pow(10,this._startValue+t*this._valueRange)}},RadialLinearScale:class Rd extends Ti{static id="radialLinear";
vendor: 4,715 bytes, line 1
1static defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Ye.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:n=>n,padding:5,centerPointLabels:!1}};static defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"};static descriptors={angleLines:{_fallback:"grid"}};constructor(n){super(n),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const n=this._padding=Me(_o(this.options)/2),t=this.width=this.maxWidth-n.width,i=this.height=this.maxHeight-n.height;this.xCenter=Math.floor(this.left+t/2+n.left),this.yCenter=Math.floor(this.top+i/2+n.top),this.drawingArea=Math.floor(Math.min(t,i)/2)}determineDataLimits(){const{min:n,max:t}=this.getMinMax(!1);this.min=V(n)&&!isNaN(n)?n:0,this.max=V(t)&&!isNaN(t)?t:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/_o(this.options))}generateTickLabels(n){Ti.prototype.generateTickLabels.call(this,n),this._pointLabels=this.getLabels().map((t,i)=>{const a=Ut(this.options.pointLabels.callback,[t,i],this);return a||0===a?a:""}).filter((t,i)=>this.chart.getDataVisibility(i))}fit(){const n=this.options;n.display&&n.pointLabels.display?function xd(e){const n={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},t=Object.assign({},n),i=[],a=[],s=e._pointLabels.length,l=e.options.pointLabels,c=l.centerPointLabels?ie/s:0;for(let m=0;m<s;m++){const _=l.setContext(e.getPointLabelContext(m));a[m]=_.padding;const M=e.getPointPosition(m,e.drawingArea+a[m],c),w=Ce(_.font),A=bd(e.ctx,w,e._pointLabels[m]);i[m]=A;const L=ve(e.getIndexAngle(m)+c),Q=Math.round(nn(L));Md(t,n,L,lr(Q,M.x,A.w,0,180),lr(Q,M.y,A.h,90,270))}e.setCenterPoint(n.l-t.l,t.r-n.r,n.t-t.t,t.b-n.b),e._pointLabelItems=function Sd(e,n,t){const i=[],a=e._pointLabels.length,s=e.options,{centerPointLabels:l,display:c}=s.pointLabels,m={extra:_o(s)/2,additionalAngle:l?ie/a:0};let _;for(let M=0;M<a;M++){m.padding=t[M],m.size=n[M];const w=yd(e,M,m);i.push(w),"auto"===c&&(w.visible=Pd(w,_),w.visible&&(_=w))}return i}(e,i,a)}(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(n,t,i,a){this.xCenter+=Math.floor((n-t)/2),this.yCenter+=Math.floor((i-a)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(n,t,i,a))}getIndexAngle(n){return ve(n*(de/(this._pointLabels.length||1))+we(this.options.startAngle||0))}getDistanceFromCenterForValue(n){if(W(n))return NaN;const t=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-n)*t:(n-this.min)*t}getValueForDistanceFromCenter(n){if(W(n))return NaN;const t=n/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-t:this.min+t}getPointLabelContext(n){const t=this._pointLabels||[];if(n>=0&&n<t.length){const i=t[n];return function Ad(e,n,t){return Qe(e,{label:t,index:n,type:"pointLabel"})}(this.getContext(),n,i)}}getPointPosition(n,t,i=0){const a=this.getIndexAngle(n)-ge+i;return{x:Math.cos(a)*t+this.xCenter,y:Math.sin(a)*t+this.yCenter,angle:a}}getPointPositionForValue(n,t){return this.getPointPosition(n,this.getDistanceFromCenterForValue(t))}getBasePosition(n){return this.getPointPositionForValue(n||0,this.getBaseValue())}getPointLabelPosition(n){const{left:t,top:i,right:a,bottom:s}=this._pointLabelItems[n];return{left:t,top:i,right:a,bottom:s}}drawBackground(){const{backgroundColor:n,grid:{circular:t}}=this.options;if(n){const i=this.ctx;i.save(),i.beginPath(),cr(this,this.getDistanceFromCenterForValue(this._endValue),t,this._pointLabels.length),i.closePath(),i.fillStyle=n,i.fill(),i.restore()}}drawGrid(){const n=this.ctx,t=this.options,{angleLines:i,grid:a,border:s}=t,l=this._pointLabels.length;let c,m,_;if(t.pointLabels.display&&function Dd(e,n){const{ctx:t,options:{pointLabels:i}}=e;for(let a=n-1;a>=0;a--){const s=e._pointLabelItems[a];if(!s.visible)continue;const l=i.setContext(e.getPointLabelContext(a));Td(t,l,s);const c=Ce(l.font),{x:m,y:_,textAlign:M}=s;sn(t,e._pointLabels[a],m,_+c.lineHeight/2,c,{color:l.color,textAlign:M,textBaseline:"middle"})}}(this,l),a.display&&this.ticks.forEach((M,w)=>{if(0!==w||0===w&&this.min<0){m=this.getDistanceFromCenterForValue(M.value);const A=this.getContext(w),L=a.setContext(A),Q=s.setContext(A);!function Id(e,n,t,i,a){const s=e.ctx,l=n.circular,{color:c,lineWidth:m}=n;!l&&!i||!c||!m||t<0||(s.save(),s.strokeStyle=c,s.lineWidth=m,s.setLineDash(a.dash||[]),s.lineDashOffset=a.dashOffset,s.beginPath(),cr(e,t,l,i),s.closePath(),s.stroke(),s.restore(
1))}(this,L,m,l,Q)}}),i.display){for(n.save(),c=l-1;c>=0;c--){const M=i.setContext(this.getPointLabelContext(c)),{color:w,lineWidth:A}=M;!A||!w||(n.lineWidth=A,n.strokeStyle=w,n.setLineDash(M.borderDash),n.lineDashOffset=M.borderDashOffset,m=this.getDistanceFromCenterForValue(t.reverse?this.min:this.max),_=this.getPointPosition(c,m),n.beginPath(),n.moveTo(this.xCenter,this.yCenter),n.lineTo(_.x,_.y),n.stroke())}n.restore()}}drawBorder(){}drawLabels(){const n=this.ctx,t=this.options,i=t.ticks;if(!i.display)return;const a=this.getIndexAngle(0);let s,l;n.save(),n.translate(this.xCenter,this.yCenter),n.rotate(a),n.textAlign="center",n.textBaseline="middle",this.ticks.forEach((c,m)=>{if(0===m&&this.min>=0&&!t.reverse)return;const _=i.setContext(this.getContext(m)),M=Ce(_.font);if(s=this.getDistanceFromCenterForValue(this.ticks[m].value),_.showLabelBackdrop){n.font=M.string,l=n.measureText(c.label).width,n.fillStyle=_.backdropColor;const w=Me(_.backdropPadding);n.fillRect(-l/2-w.left,-s-M.size/2-w.top,l+w.width,M.size+w.height)}sn(n,c.label,0,-s,M,{color:_.color,strokeColor:_.textStrokeColor,strokeWidth:_.textStrokeWidth})}),n.restore()}drawTitle(){}},TimeScale:Co,TimeSeriesScale:class Ld extends Co{static id="timeseries";static defaults=Co.defaults;constructor(n){super(n),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const n=this._getTimestampsForTable(),t=this._table=this.buildLookupTable(n);this._minPos=Ii(t,this.min),this._tableRange=Ii(t,this.max)-this._minPos,super.initOffsets(n)}buildLookupTable(n){const{min:t,max:i}=this,a=[],s=[];let l,c,m,_,M;for(l=0,c=n.length;l<c;++l)_=n[l],_>=t&&_<=i&&a.push(_);if(a.length<2)return[{time:t,pos:0},{time:i,pos:1}];for(l=0,c=a.length;l<c;++l)M=a[l+1],m=a[l-1],_=a[l],Math.round((M+m)/2)!==_&&s.push({time:_,pos:l/(c-1)});return s}_generate(){const n=this.min,t=this.max;let i=super.getDataTimestamps();return(!i.includes(n)||!i.length)&&i.splice(0,0,n),(!i.includes(t)||1===i.length)&&i.push(t),i.sort((a,s)=>a-s)}_getTimestampsForTable(){let n=this._cache.all||[];if(n.length)return n;const t=this.getDataTimestamps(),i=this.getLabelTimestamps();return n=t.length&&i.length?this.normalize(t.concat(i)):t.length?t:i,n=this._cache.all=n,n}getDecimalForValue(n){return(Ii(this._table,n)-this._minPos)/this._tableRange}getValueForPixel(n){const t=this._offsets,i=this.getDecimalForPixel(n)/t.factor-t.end;return Ii(this._table,i*this._tableRange+this._minPos,!0)}}})];var zd=d(23294),hr=d(37553),jd=d(84412);let fr=(()=>{class e{constructor(){this.colorschemesOptions=new jd.t(void 0)}setColorschemesOptions(t){this.pColorschemesOptions=t,this.colorschemesOptions.next(t)}getColorschemesOptions(){return this.pColorschemesOptions}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=S.jDH({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Gd=(()=>{class e{constructor(t,i,a){this.zone=i,this.themeService=a,this.type="bar",this.plugins=[],this.chartClick=new S.bkB,this.chartHover=new S.bkB,this.subs=[],this.themeOverrides={},this.ctx=t.nativeElement.getContext("2d"),this.subs.push(this.themeService.colorschemesOptions.pipe((0,zd.F)()).subscribe(s=>this.themeChanged(s)))}ngOnChanges(t){const i=["type"],a=Object.getOwnPropertyNames(t);if(a.some(s=>i.includes(s))||a.every(s=>t[s].isFirstChange()))this.render();else{const s=this.getChartConfiguration();this.chart&&(Object.assign(this.chart.config.data,s.data),this.chart.config.plugins&&Object.assign(this.chart.config.plugins,s.plugins),this.chart.config.options&&Object.assign(this.chart.config.options,s.options)),this.update()}}ngOnDestroy(){this.chart&&(this.chart.destroy(),this.chart=void 0),this.subs.forEach(t=>t.unsubscribe())}render(){return this.chart&&this.chart.destroy(),this.zone.runOutsideAngular(()=>this.chart=new yi(this.ctx,this.getChartConfiguration()))}update(t){this.chart&&this.zone.runOutsideAngular(()=>this.chart?.update(t))}hideDataset(t,i){this.chart&&(this.chart.getDatasetMeta(t).hidden=i,this.update())}isDatasetHidden(t){return this.chart?.getDatasetMeta(t)?.hidden}toBase64Image(){return this.chart?.toBase64Image()}themeChanged(t){this.themeOverrides=t,this.chart&&(this.chart.config.options&&Object.assign(this.chart.config.options,this.getChartOptions()),this.update())}getChartOptions(){return(0,hr.A)({onHover:(t,i)=>{!this.chartHover.observed&&!this.chartHover.observers?.length||this.zone.run(()=>this.chartHover.emit({event:t,active:i}))},onClick:(t,i)=>{!this.chartClick.observed&&!this.chartClick.observers?.length||this.zone.run(()=>this.chartClick.emit({event:t,active:i}))}}
1,this.themeOverrides,this.options,{plugins:{legend:{display:this.legend}}})}getChartConfiguration(){return{type:this.type,data:this.getChartData(),options:this.getChartOptions(),plugins:this.plugins}}getChartData(){return this.data?this.data:{labels:this.labels||[],datasets:this.datasets||[]}}}return e.\u0275fac=function(t){return new(t||e)(N.rXU(N.aKT),N.rXU(S.SKi),N.rXU(fr))},e.\u0275dir=N.FsC({type:e,selectors:[["canvas","baseChart",""]],inputs:{type:"type",legend:"legend",data:"data",options:"options",plugins:"plugins",labels:"labels",datasets:"datasets"},outputs:{chartClick:"chartClick",chartHover:"chartHover"},exportAs:["base-chart"],standalone:!1,features:[N.OA$]}),e})();const _r=[[255,99,132],[54,162,235],[255,206,86],[231,233,237],[75,192,192],[151,187,205],[220,220,220],[247,70,74],[70,191,189],[253,180,92],[148,159,177],[77,83,96]],Ud={plugins:{colors:{enabled:!1}},datasets:{line:{backgroundColor:e=>qe(tn(e.datasetIndex),.4),borderColor:e=>qe(tn(e.datasetIndex),1),pointBackgroundColor:e=>qe(tn(e.datasetIndex),1),pointBorderColor:"#fff"},bar:{backgroundColor:e=>qe(tn(e.datasetIndex),.6),borderColor:e=>qe(tn(e.datasetIndex),1)},get radar(){return this.line},doughnut:{backgroundColor:e=>qe(tn(e.dataIndex),.6),borderColor:"#fff"},get pie(){return this.doughnut},polarArea:{backgroundColor:e=>qe(tn(e.dataIndex),.6),borderColor:e=>qe(tn(e.dataIndex),1)},get bubble(){return this.doughnut},get scatter(){return this.doughnut},get area(){return this.polarArea}}};function qe(e,n){return"rgba("+e.concat(n).join(",")+")"}function vo(e,n){return Math.floor(Math.random()*(n-e+1))+e}function tn(e=0){return _r[e]||function Hd(){return[vo(0,255),vo(0,255),vo(0,255)]}()}let bo=(()=>{class e{constructor(){this.generateColors=!0}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=S.jDH({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();yi.register(...Bd);let Wd=(()=>{class e{constructor(t){t?.plugins&&yi.register(...t?.plugins);const i=(0,hr.A)(t?.generateColors?Ud:{},t?.defaults||{});pe.set(i)}static forRoot(t){return{ngModule:e,providers:[{provide:bo,useValue:t}]}}}return e.\u0275fac=function(t){return new(t||e)(S.KVO(bo,8))},e.\u0275mod=N.$C({type:e}),e.\u0275inj=S.G2t({}),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.