PageSourceSearch

https://shovel-pwa.web.app/3751.631bc5a0e4b243f3.js

js shovel-pwa.web.app collected 2026-10-03 12:36:19 UTC 86,876 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[3751],{6090:(F,b,l)=>{l.d(b,{b:()=>i});const i=(0,l(7423).fo)("Geolocation",{web:()=>l.e(4561).then(l.bind(l,4561)).then(a=>new a.GeolocationWeb)})},3751:(F,b,l)=>{l.r(b),l.d(b,{EntityFormPageModule:()=>Pe});var p=l(6895),i=l(433),a=l(1082),m=l(4979),e=l(8256),y=l(6587),_=l(5861),T=l(7579),C=l(2722),v=l(9746),h=l(8558),Z=l(3986),k=l(5589);let U=(()=>{class o{constructor(t,n,r,s){this.fb=t,this.sharedService=n,this.entityBaseService=r,this.router=s,this.allowClick=!0,this.jobberData=new e.vpe,this.jobberForm=this.fb.group({companyName:["",i.kI.required],einTitle:["",i.kI.required],city:["",i.kI.required],state:["",i.kI.required],zipCode:["",i.kI.required],insuranceConfirmed:[!1,i.kI.requiredTrue]})}ngOnInit(){this.destroySubs=new T.x,this.sharedService.currentUser$.pipe((0,C.R)(this.destroySubs)).subscribe({next:t=>{console.log("EntityFormContentComponent--\x3engOnInit userDocVal: ",t),this.curUserDoc=t}})}submitForm(){if(this.allowClick){this.allowClick=!1;let t={projectCount:0,entityType:h.p.Jobber,completedProjectCount:0,companyTitle:this.jobberForm.get("companyName").value,einTitle:this.jobberForm.get("einTitle").value,city:this.jobberForm.get("city").value,state:this.jobberForm.get("state").value,zipCode:this.jobberForm.get("zipCode").value,insuranceConfirmed:this.jobberForm.get("insuranceConfirmed").value,activeProjectCount:0,title:this.jobberForm.get("companyName").value,entityState:k.n.Active};this.jobberDataSave(t)}}jobberDataSave(t){var n=this;return(0,_.Z)(function*(){if(n.curUserDoc){let r={...t,pocEmail:n.curUserDoc.email,pocFullName:n.curUserDoc.name+" "+n.curUserDoc.surname,pocPhone:n.curUserDoc.phoneNo,userId:n.curUserDoc.uid,userDocId:n.curUserDoc.docId,accountBalance:0,totalEarned:0,completedJobCount:0},s=yield n.entityBaseService.createEntityDocument(r);s.isSuccessful?(yield n.sharedService.showToastr({color:"success",duration:2e3,message:"Your Account Has Been Created"}),n.sharedService.startEntityDataSubscription(s.entityId),n.router.navigate(["/notifications-permission"],{replaceUrl:!0,queryParams:{next:v.d[t.entityType]}})):yield n.sharedService.showToastr({color:"danger",duration:2e3,message:"Something Went Wrong. Please Try Again."})}else console.log("Entity Data Retrieved But curUserDocument Not Found!")})()}ngOnDestroy(){this.destroySubs&&(this.destroySubs.next(!0),this.destroySubs.complete())}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(i.qu),e.Y36(y.V),e.Y36(Z.L),e.Y36(m.F0))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-jobber-sign-up-form"]],outputs:{jobberData:"jobberData"},decls:47,vars:2,consts:[[1,"entity-card","builder-card"],[1,"card-content"],[1,"card-subtitle"],[1,"card-title"],[1,"card-icon"],["src","/assets/shovel-icons/entity-types/jobber-type.svg","alt","Builder icon"],[3,"formGroup","ngSubmit"],[1,"roundedInput"],["position","floating"],["autocapitalize","true","formControlName","companyName","type","text","required",""],["size","12"],["formControlName","einTitle","type","text","required",""],[1,"ion-margin-bottom"],["size","12","size-md","4"],["autocapitalize","true","formControlName","city","type","text","required",""],["autocapitalize","characters","formControlName","state","type","text","required",""],["formControlName","zipCode","type","text","required",""],[1,"checkbox-row"],["formControlName","insuranceConfirmed"],[1,"checkbox-label"],[1,"button-container"],["type","submit","expand","block","size","large",1,"continue-button",3,"disabled"]],template:function(t,n){1&t&&(e.TgZ(0,"div",0)(1,"div",1)(2,"span",2),e._uU(3,"Material Customer"),e.qZA(),e.TgZ(4,"span",3),e._uU(5,"Builder"),e.qZA()(),e.TgZ(6,"div",4),e._UZ(7,"img",5),e.qZA()(),e.TgZ(8,"form",6),e.NdJ("ngSubmit",function(){return n.submitForm()}),e.TgZ(9,"ion-grid")(10,"ion-row")(11,"ion-col")(12,"ion-item",7)(13,"ion-label",8),e._uU(14,"Company Name"),e.qZA(),e._UZ(15,"ion-input",9),e.qZA()()(),e.TgZ(16,"ion-row")(17,"ion-col",10)(18,"ion-item",7)(19,"ion-label",8),e._uU(20,"EIN/TIN"),e.qZA(),e._UZ(21,"ion-input",11),e.qZA()()(),e.TgZ(22,"ion-row",12)(23,"ion-col",13)(24,"ion-item",7)(25,"ion-label",8),e._uU(26,"City"),e.qZA(),e._UZ(27,"ion-input",14),e.qZA()(),e.TgZ(28,"ion-col")(29,"ion-item",7)(30,"ion-label",8),e._uU(31,"State"),e.qZA(),e._UZ(32,"ion-input",15),e.qZA()(),e.TgZ(33,"ion-col")(34,"ion-item",7)(35,"ion-label",8),e._uU(36,"Zip Code"),e.qZA(),e._UZ(37,"ion-input",16),e.qZA()()(),e.TgZ(38,"ion-row")(39,"ion-col")(40,"div",17),e._UZ(41,"ion-checkbox",18),e.TgZ(42,"span",19),e._uU(43,"I confirm that I/my business are insured"),e.qZA()()()()(),e.TgZ(44,"div",20)(45,"ion-button",21),e._uU(46,"Continue"),e.qZA()()()),2&t&&(e.xp6(8),e.Q6J("formGroup",n.jobberForm),e.xp6(37),e.Q6J("disabled",!n.jobberForm.valid||!n.allowClick))},dependencies:[a.YG,a.nz,a.wI,a.jY,a.pK,a.Ie,a.Q$,a.Nd,a.w,a.j9,i._Y,i.JJ,i.JL,i.Q7,i.sg,i.u],styles:["*[_ngcontent-%COMP%]{font-family:Montserrat,system-ui;font-optical-sizing:auto;font-weight:400;font-style:normal}ion-button[_ngcontent-%COMP%]{--background: #0F465A}.roundedInput[_ngcontent-%COMP%]{--border-color: #e7e5e5;--border-radius: 8px;--border-width: 1px;
1--box-shadow: 2px grey;--highlight-height: 0;--background: white}.entity-card[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:20px 24px;border-radius:12px;margin:0 8px 16px}.builder-card[_ngcontent-%COMP%]{background:#3BADD4}.card-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px}.card-subtitle[_ngcontent-%COMP%]{font-size:12px;color:#fffc;font-weight:400}.card-title[_ngcontent-%COMP%]{font-size:20px;color:#fff;font-weight:600}.card-icon[_ngcontent-%COMP%]{width:48px;height:48px;background:rgba(255,255,255,.2);border-radius:8px;display:flex;align-items:center;justify-content:center}.card-icon[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:28px;height:28px}.checkbox-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;padding:12px 0}.checkbox-label[_ngcontent-%COMP%]{font-size:14px;color:#333}ion-checkbox[_ngcontent-%COMP%]{--size: 22px;--checkbox-background: #ffffff;--checkbox-background-checked: #0F465A;--border-color: #0F465A;--border-color-checked: #0F465A;--border-radius: 4px;--border-width: 2px;--checkmark-color: #ffffff}.button-container[_ngcontent-%COMP%]{padding:24px 24px 0}.continue-button[_ngcontent-%COMP%]{--background: #0F465A;--background-hover: #0d3a4a;--border-radius: 12px;--padding-top: 16px;--padding-bottom: 16px;font-size:16px;font-weight:600;text-transform:none;height:52px;margin:0}"]}),o})();var d=l(7705),g=l(6090),f=l(7423),x=(()=>{return(o=x||(x={}))[o.Initial=-1]="Initial",o[o.DropoffService=0]="DropoffService",o[o.HaulbackService=1]="HaulbackService",o[o.CombinedService=2]="CombinedService",x;var o})(),w=l(529);function S(o,c){if(1&o){const t=e.EpF();e.TgZ(0,"map-marker",28,29),e.NdJ("mapClick",function(){e.CHM(t);const r=e.MAs(1),s=e.oxw();return e.KtG(s.markerClicked(r))})("mapDrag",function(r){e.CHM(t);const s=e.oxw();return e.KtG(s.dragTest(r))}),e.qZA()}if(2&o){const t=e.oxw();e.Q6J("position",t.mapMarkerPosition)("options",t.mapMarkerOption)}}let I=(()=>{class o{constructor(t,n,r,s,u,O){this.fb=t,this.httpClient=n,this.toastr=r,this.sharedService=s,this.entityBaseService=u,this.router=O,this.mapCenter={lat:39.854513029967535,lng:-99.18384509155419},this.allowClick=!0,this.pitOperationData=new e.vpe,this.markerPlaced=new T.x,this.mapMarkerOption={draggable:!0},this.pitOperationForm=this.fb.group({address:["",i.kI.required],city:["",i.kI.required],state:["",i.kI.required],zipCode:["",i.kI.required],pitTitle:["",i.kI.required],einTitle:["",i.kI.required],insuranceConfirmed:[!1,i.kI.requiredTrue]})}ngOnInit(){this.map&&console.log("Map Already Initialized"),console.log("Pit Operation Form: ngOnInit"),this.destroySubs=new T.x,this.sharedService.currentUser$.pipe((0,C.R)(this.destroySubs)).subscribe({next:t=>{console.log("EntityFormContentComponent--\x3engOnInit userDocVal: ",t),this.curUserDoc=t}})}submitForm(){if(this.allowClick){this.allowClick=!1;let t={suppliedMaterials:[],excavatorLocations:[],haulbackLocation:[],providedServiceType:x.Initial,longAddress:this.pitOperationForm.get("address").value+", "+this.pitOperationForm.get("city").value+", "+this.pitOperationForm.get("state").value+" "+this.pitOperationForm.get("zipCode").value+", USA",address1:this.pitOperationForm.get("address").value,state:this.pitOperationForm.get("state").value,zipCode:this.pitOperationForm.get("zipCode").value,city:this.pitOperationForm.get("city").value,country:"USA",title:this.pitOperationForm.get("pitTitle").value,pitTitle:this.pitOperationForm.get("pitTitle").value,einTitle:this.pitOperationForm.get("einTitle").value,insuranceConfirmed:this.pitOperationForm.get("insuranceConfirmed").value,geoLocation:{latitude:this.mapMarkerPosition.lat,longitude:this.mapMarkerPosition.lng,description:"Generated While Creating The Pit Entity",label:"Pit Operation Geolocation"},entityType:h.p.PitOperation,entityState:k.n.Active};this.pitDataSave(t)}}pitDataSave(t){var n=this;return(0,_.Z)(function*(){if(n.curUserDoc){let r={...t,pocEmail:n.curUserDoc.email,pocFullName:n.curUserDoc.name+" "+n.curUserDoc.surname,pocPhone:n.curUserDoc.phoneNo,userId:n.curUserDoc.uid,userDocId:n.curUserDoc.docId,accountBalance:0,totalEarned:0,completedJobCount:0},s=yield n.entityBaseService.createEntityDocument(r);s.isSuccessful?(yield n.sharedService.showToastr({color:"success",duration:2e3,message:"Your Account Has Been Created"}
1),n.sharedService.startEntityDataSubscription(s.entityId),n.router.navigate(["/notifications-permission"],{replaceUrl:!0,queryParams:{next:v.d[t.entityType]}})):yield n.sharedService.showToastr({color:"danger",duration:2e3,message:"Something Went Wrong. Please Try Again."})}else console.log("Entity Data Retrieved But curUserDocument Not Found!")})()}get invalidMessage(){let t="";for(const n in this.pitOperationForm.controls)if(this.pitOperationForm.get(n).invalid){t=n;break}switch(t){case"address":return"Please enter your address";case"city":return"Please enter your city";case"state":return"Please enter your state";case"zipCode":return"Please enter your zip code";case"pitTitle":return"Please enter your Pit Title";default:return"Please fill in all the fields"}}placeMarkerOnMap(t){let n=t.latLng.toJSON();this.markerPlaced.next(!1),this.mapMarkerPosition=n,console.log("mapMarkerPosition: ",this.mapMarkerPosition),(new google.maps.Geocoder).geocode({location:n}).then(s=>{s.results[0]?(console.log("Reverse Geocoded. Formatted Address: ",s.results[1].formatted_address),this.updateFormAddress(s.results[1].formatted_address)):console.log("Reverse GEOCODING FAILED")}).catch(s=>{console.log("Error in geocode: ",s)}),this.markerPlaced.next(!0)}markerClicked(t){this.infoWindow.open(t)}useCurrentLocation(){var t=this;return(0,_.Z)(function*(){if(t.allowClick){t.allowClick=!1;let n=yield g.b.checkPermissions();if(console.log(n),console.log(n.location),console.log(n.coarseLocation),f.dV.isNativePlatform()&&"denied"==n.location&&"denied"==(yield g.b.requestPermissions()).location)return void(yield(yield t.toastr.create({color:"danger",duration:2e3,message:"You Need To Allow Location."})).present());let r=yield g.b.getCurrentPosition({enableHighAccuracy:!0});t.markerPlaced.next(!1),t.mapMarkerPosition={lat:r.coords.latitude,lng:r.coords.longitude},t.mapCenter=t.mapMarkerPosition,(new google.maps.Geocoder).geocode({location:t.mapMarkerPosition}).then(u=>{u.results[0]?(console.log(u.results[1]),console.log("Reverse Geocoded. Formatted Address: ",u.results[1].formatted_address),t.updateFormAddress(u.results[1].formatted_address)):console.log("Use Current Location: Reverse Geocoding Failed.")}).catch(u=>{console.log("Error in geocode: ",u)}).finally(()=>{t.allowClick=!0}),t.markerPlaced.next(!0)}})()}checkAddress(){var t=this;return(0,_.Z)(function*(){if(t.allowClick){t.allowClick=!1;let n=new google.maps.Geocoder,r=t.pitOperationForm.get("address").value+", "+t.pitOperationForm.get("city").value+", "+t.pitOperationForm.get("state").value+" "+t.pitOperationForm.get("zipCode")+", USA";try{let s=yield n.geocode({address:r});t.mapMarkerPosition=s.results[0].geometry.location.toJSON(),t.markerPlaced.next(!0),(yield t.toastr.create({color:"success",duration:2e3,message:"Please Check The Marker On The Map."})).present()}catch{console.log("Error While Finding Address"),(yield t.toastr.create({color:"danger",duration:2e3,message:"Please check your address or place a marker on the map directly."})).present()}finally{t.allowClick=!0}}})()}dragTest(t){console.log("Marker Dragged"),console.log(t.latLng.toJSON()),this.mapMarkerPosition=t.latLng.toJSON()}formatAddress(t){let n=t.replace("\n"," "),r=n.indexOf("\n");for(console.log("Init Format: ",n);-1!=r;)n=n.replace("\n"," "),r=n.indexOf("\n");return n}updateFormAddress(t){var n=this;return(0,_.Z)(function*(){let r=t,s=t.lastIndexOf(",");r=r.substring(0,s);let u=r.lastIndexOf(" "),O=r.substring(u+1);n.pitOperationForm.get("zipCode").setValue(O.replace(" ","")),r=r.substring(0,u),s=r.lastIndexOf(",");let Ae=r.substring(s+1);n.pitOperationForm.get("state").setValue(Ae.replace(" ","")),r=r.substring(0,s),s=r.lastIndexOf(",");let Se=r.substring(s+1);n.pitOperationForm.get("city").setValue(Se.replace(" ","")),r=r.substring(0,s),n.pitOperationForm.get("address").setValue(r),(yield n.toastr.create({color:"primary",duration:3e3,message:"Please Check The Address. If it is not correct please manually enter the address."})).present()})()}testButton(){this.useCurrentLocation()}ngOnDestroy(){this.destroySubs&&(this.destroySubs.next(!0),this.destroySubs.complete())}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(i.qu),e.Y36(w.eN),e.Y36(a.yF),e.Y36(y.V),e.Y36(Z.L),e.Y36(m.F0))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-pit-operation-sign-up-form"]],viewQuery:function(t,n){if(1&t&&e.Gf(d.ch,5),2&t){let r;e.iGM(r=e.CRH())&&(n.infoWindow=r.first)}},outputs:{pitOperationData:"pitOperationData"},decls:76,vars:11,consts:[[1,"entity-card","pit-card"],[1,"card-content"],[1,"card-subtitle"],[1,"card-title"],[1,"card-icon"],["src","/assets/shovel-icons/entity-types/pit-type.svg","alt","Pit icon"],[3,"formGroup","ngSubmit"],["size","12"],["lines","none",1,"roundedInput"],["position","floating"],["autocapitalize","true","formControlName","pitTitle","type","text","required",""],["formControlName","einTitle","type","text","required",""],[1,"map-container"],[1,"entity-form-map"],[3,"width","height","center","zoom","mapClick"],[3,"position","options","mapClick","mapDrag",4,"ngIf"],["type","button",1,"location-button",3,"disabled","click"],["name","locate-outline"],["name","checkmark-circle-outline"],["formControlName","address"],["formControlName","city","autocapitalize","true","type","text","required",""],["size","6"],["formControlName","state","autocapitalize","characters","type","text","required",""],["formControlName","zipCode","type","text","required",""],[1,"checkbox-row"],["formControlName","insuranceConfirmed"],[1,"checkbox-label"],["type","submit","expand","block","size","large",3,"disabled"],[3,"position","options","mapClick","mapDrag"],["clickedMarker","mapMarker"]],template:function(t,n){1&t&&(e.TgZ(0,"div",0)(1,"div",1)(2,"span",2),e._uU(3,"Material Provider"),e.qZA(),e.TgZ(4,"span",3),e._uU(5,"Mineral Pit"),e.qZA()(),e.TgZ(6,"div",4),e._UZ(7,"img",5),e.qZA()(),e.TgZ(8,"form",6),e.NdJ("ngSubmit",function(){return n.submitForm(
1)}),e.TgZ(9,"ion-grid")(10,"ion-row")(11,"ion-col",7)(12,"ion-item",8)(13,"ion-label",9),e._uU(14,"Company Name"),e.qZA(),e._UZ(15,"ion-input",10),e.qZA()()(),e.TgZ(16,"ion-row")(17,"ion-col",7)(18,"ion-item",8)(19,"ion-label",9),e._uU(20,"EIN/TIN"),e.qZA(),e._UZ(21,"ion-input",11),e.qZA()()(),e.TgZ(22,"ion-row")(23,"ion-col",7)(24,"div",12)(25,"div",13)(26,"google-map",14),e.NdJ("mapClick",function(s){return n.placeMarkerOnMap(s)}),e.YNc(27,S,2,2,"map-marker",15),e.ALo(28,"async"),e.TgZ(29,"map-info-window"),e._uU(30,"Pit Location"),e.qZA()()()()()(),e.TgZ(31,"ion-row")(32,"ion-col",7)(33,"button",16),e.NdJ("click",function(){return n.useCurrentLocation()}),e._UZ(34,"ion-icon",17),e.TgZ(35,"span"),e._uU(36,"Use Current Location"),e.qZA()()()(),e.TgZ(37,"ion-row")(38,"ion-col",7)(39,"button",16),e.NdJ("click",function(){return n.checkAddress()}),e._UZ(40,"ion-icon",18),e.TgZ(41,"span"),e._uU(42,"Confirm Custom Address"),e.qZA()()()(),e.TgZ(43,"ion-row")(44,"ion-col",7)(45,"ion-item",8)(46,"ion-label",9),e._uU(47,"Address"),e.qZA(),e._UZ(48,"ion-input",19),e.qZA()()(),e.TgZ(49,"ion-row")(50,"ion-col",7)(51,"ion-item",8)(52,"ion-label",9),e._uU(53,"City"),e.qZA(),e._UZ(54,"ion-input",20),e.qZA()()(),e.TgZ(55,"ion-row")(56,"ion-col",21)(57,"ion-item",8)(58,"ion-label",9),e._uU(59,"State"),e.qZA(),e._UZ(60,"ion-input",22),e.qZA()(),e.TgZ(61,"ion-col",21)(62,"ion-item",8)(63,"ion-label",9),e._uU(64,"ZIP Code"),e.qZA(),e._UZ(65,"ion-input",23),e.qZA()()(),e.TgZ(66,"ion-row")(67,"ion-col")(68,"div",24),e._UZ(69,"ion-checkbox",25),e.TgZ(70,"span",26),e._uU(71,"I confirm that I/my business are insured"),e.qZA()()()(),e.TgZ(72,"ion-row")(73,"ion-col")(74,"ion-button",27),e._uU(75,"Continue"),e.qZA()()()()()),2&t&&(e.xp6(8),e.Q6J("formGroup",n.pitOperationForm),e.xp6(18),e.Q6J("width","100%")("height","100%")("center",n.mapCenter)("zoom",4),e.xp6(1),e.Q6J("ngIf",e.lcZ(28,9,n.markerPlaced)),e.xp6(6),e.Q6J("disabled",!n.allowClick),e.xp6(6),e.Q6J("disabled",!n.allowClick),e.xp6(35),e.Q6J("disabled",!n.pitOperationForm.valid||!n.allowClick))},dependencies:[p.O5,a.YG,a.nz,a.wI,a.jY,a.gu,a.pK,a.Ie,a.Q$,a.Nd,a.w,a.j9,i._Y,i.JJ,i.JL,i.Q7,i.sg,i.u,d.b6,d.ch,d.O_,p.Ov],styles:["*[_ngcontent-%COMP%]{font-family:Montserrat,system-ui;font-optical-sizing:auto;font-weight:400;font-style:normal}ion-button[_ngcontent-%COMP%]{--background: #0F465A}.roundedInput[_ngcontent-%COMP%]{--border-color: #e7e5e5;--border-radius: 8px;--border-width: 1px;--box-shadow: 2px grey;--highlight-height: 0;--background: white}.entity-card[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:20px 24px;border-radius:12px;margin:0 8px 16px}.pit-card[_ngcontent-%COMP%]{background:#0F465A}.card-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px}.card-subtitle[_ngcontent-%COMP%]{font-size:12px;color:#fffc;font-weight:400}.card-title[_ngcontent-%COMP%]{font-size:20px;color:#fff;font-weight:600}.card-icon[_ngcontent-%COMP%]{width:48px;height:48px;background:rgba(255,255,255,.2);border-radius:8px;display:flex;align-items:center;justify-content:center}.card-icon[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:28px;height:28px}.map-container[_ngcontent-%COMP%]{margin-bottom:8px}.entity-form-map[_ngcontent-%COMP%]{height:200px;border-radius:8px;overflow:hidden}.location-button[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;width:100%;padding:14px 16px;background:white;border:1px solid #e7e5e5;border-radius:8px;cursor:pointer;margin-bottom:8px;font-family:inherit;font-size:14px;color:#333;text-align:left}.location-button[_ngcontent-%COMP%]   ion-icon[_ngcontent-%COMP%]{font-size:20px;color:#0f465a}.location-button[_ngcontent-%COMP%]:disabled{opacity:.6;cursor:not-allowed}.location-button[_ngcontent-%COMP%]:hover:not(:disabled){background:#f9f9f9}.checkbox-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;padding:12px 0}.checkbox-label[_ngcontent-%COMP%]{font-size:14px;color:#333}ion-checkbox[_ngcontent-%COMP%]{--size: 22px;--checkbox-background: #ffffff;--checkbox-background-checked: #0F465A;--border-color: #0F465A;--border-color-checked: #0F465A;--border-radius: 4px;--border-width: 2px;--checkmark-color: #ffffff}"]}),o})();var E=l(6492),q=l(6489);function D(o,c){if(1&o&&(e.TgZ(0,"ion-select-option",30),e._uU(1),e.qZA()),2&o){const t=c.$implicit;e.Q6J("value",c.index),e.xp6(1),e.hij(" ",t.title," ")}}function N(o,c){if(1&o&&(e.TgZ(0,"ion-select-option",30),e._uU(1),e.qZA()),2&o){const t=c.$implicit;e.Q6J("value",c.index),e.xp6(1),e.hij(" ",t," yd\xb3 ")}}let z=(()=>{class o{constructor(t,n,r,s,u){this.fb=t,this.toastr=n,this.sharedService=r,this.entityBaseService=s,this.router=u,this.truckerTypeOptions=[{code:"dualAxel",title:"Dual Axle (Tandem)"},{code:"triAxel",title:"Tri-Axle"},{code:"quadAxel",title:"Quad Axle"},{code:"trailer",title:"Trailer"}],this.allowClick=!0,this.soloTruckerData=new e.vpe,this.soloTruckerForm=this.fb.group({companyName:["",i.kI.required],einNumber:["",i.
1kI.required],cdl:["",i.kI.required],licensePlate:["",i.kI.required],vin:["",[i.kI.minLength(17),i.kI.maxLength(17)]],callNumber:["",i.kI.required],truckType:["",i.kI.required],truckSize:["",i.kI.required],city:["",i.kI.required],state:["",i.kI.required],zipCode:["",i.kI.required],insuranceConfirmed:[!1,i.kI.requiredTrue]})}get truckTypeSelected(){return this.soloTruckerForm.get("truckType").valid}get vinLength(){return this.soloTruckerForm.get("vin").value?.length||0}get vinValidationState(){const t=this.vinLength;return 0===t?"empty":17===t?"valid":"invalid"}get truckSizeOptions(){let t=[];if(this.truckTypeSelected)switch(this.truckerTypeOptions[this.soloTruckerForm.get("truckType").value].code){case"dualAxel":case"triAxel":case"trailer":case"quadAxel":t=["10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25"];break;default:t=[]}return t}ngOnInit(){this.destroySubs=new T.x,console.log("Solo Trucker Form ngOnInit"),this.soloTruckerForm.get("truckType").valueChanges.pipe((0,C.R)(this.destroySubs)).subscribe(t=>{console.log("New Trucker Type Value: ",t),this.soloTruckerForm.get("truckSize").reset(),this.soloTruckerForm.get("truckSize").addValidators(i.kI.required),this.soloTruckerForm.get("truckSize").updateValueAndValidity()}),this.sharedService.currentUser$.pipe((0,C.R)(this.destroySubs)).subscribe({next:t=>{console.log("EntityFormContentComponent--\x3engOnInit userDocVal: ",t),this.curUserDoc=t}})}submitForm(){if(this.allowClick&&this.soloTruckerForm.valid){this.allowClick=!1;let t={companyName:this.soloTruckerForm.get("companyName").value,einNumber:this.soloTruckerForm.get("einNumber").value,vin:this.soloTruckerForm.get("vin").value,cdl:this.soloTruckerForm.get("cdl").value,licensePlate:this.soloTruckerForm.get("licensePlate").value,callNumber:this.soloTruckerForm.get("callNumber").value,currentlyCarrying:!1,currentlyEmployed:!1,currentlyCarryingLoadCount:null,currentlyCarryingProjectId:null,currentProjectId:null,loadCount:null,loadDocumentId:null,truckerState:q.I.Free,truckerProjectState:E.h.NotOnProject,carryingLoadType:null,entityType:h.p.SoloTrucker,truckType:this.truckerTypeOptions[this.soloTruckerForm.get("truckType").value].code,truckSize:this.truckSizeOptions[this.soloTruckerForm.get("truckType").value],city:this.soloTruckerForm.get("city").value,state:this.soloTruckerForm.get("state").value,zipCode:this.soloTruckerForm.get("zipCode").value,insuranceConfirmed:this.soloTruckerForm.get("insuranceConfirmed").value};console.log("Emitting Solo Trucker Data: ",t),this.soloDataSave(t)}}soloDataSave(t){var n=this;return(0,_.Z)(function*(){if(n.curUserDoc){let r={...t,pocEmail:n.curUserDoc.email,pocFullName:n.curUserDoc.name+" "+n.curUserDoc.surname,pocPhone:n.curUserDoc.phoneNo,userId:n.curUserDoc.uid,userDocId:n.curUserDoc.docId,accountBalance:0,totalEarned:0,completedJobCount:0},s=yield n.entityBaseService.createEntityDocument(r);s.isSuccessful?(yield n.sharedService.showToastr({color:"success",duration:2e3,message:"Your Account Has Been Created"}),n.sharedService.startEntityDataSubscription(s.entityId),n.router.navigate(["/notifications-permission"],{replaceUrl:!0,queryParams:{next:v.d[t.entityType]}})):yield n.sharedService.showToastr({color:"danger",duration:2e3,message:"Something Went Wrong. Please Try Again."})}else console.log("Entity Data Retrieved But curUserDocument Not Found!")})()}get invalidMessage(){let t="";for(const n in this.soloTruckerForm.controls)if(this.soloTruckerForm.get(n).invalid){t=n;break}switch(t){case"cdl":return"Please enter your CDL.";case"licensePlate":return"Please enter a license plate number.";case"callNumber":return"Please provide a truck number.";case"truckType":return"Please select a truck type.";case"truckSize":return"Please select a truck size.";default:return"Please fill in all the fields"}}ngOnDestroy(){console.log("Solo Trucker Form ngOnDestroy"),this.destroySubs.next(!0),this.destroySubs.complete()}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(i.qu),e.Y36(a.yF),e.Y36(y.V),e.Y36(Z.L),e.Y36(m.F0))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-solo-trucker-sign-up-form"]],outputs:{soloTruckerData:"soloTruckerData"},decls:85,vars:13,consts:[[1,"entity-card","solo-card"],[1,"card-content"],[1,"card-subtitle"],[1,"card-title"],[1,"card-icon"],["src","/assets/shovel-icons/entity-types/solo-trucker-type.svg","alt","Solo trucker icon"],[3,"formGroup","ngSubmit"],["size","12","size-lg","4"],["lines","none",1,"roundedInput"],["position","floating"],["autocapitalize","true","type","text","formControlName","companyName"],["type","text","formControlName","einNumber"],["type","text","formControlName","cdl"],[1,"vin-input-wrapper"],["type","text","formControlName","vin","maxlength","17","autocapitalize","characters"],[1,"vin-counter"],["size","6"],["type","text","formControlName","callNumber"],["type","text","formControlName","licensePlate"],["formControlName","truckType"],[3,"value",4,"ngFor","ngForOf"],["formControlName","truckSize"],["size","12"],["autocapitalize","true","type","text","formControlName","city"],["autocapitalize","characters","type","text","formControlName","state"],["type","text","formControlName","zipCode"],[1,"checkbox-row"],["formControlName","insuranceConfirmed"],[1,"checkbox-label"],["type","submit","expand","block","size","large",3,"disabled"],[3,"value"]],template:function(t,n){1&t&&(e.TgZ(0,"div",0)(1,"div",1)(2,"span",2),e._uU(3,"Material Hauler"),e.qZA(),e.TgZ(4,"span",3),e._uU(5,"Owner/Operator"),e.qZA()(),e.TgZ(6,"div",4),e._UZ(7,"img",5),e.qZA()(),e.TgZ(8,"form",6),e.NdJ("ngSubmit",function(){return n.submitForm(
1)}),e.TgZ(9,"ion-grid")(10,"ion-row")(11,"ion-col",7)(12,"ion-item",8)(13,"ion-label",9),e._uU(14,"Company Name"),e.qZA(),e._UZ(15,"ion-input",10),e.qZA()(),e.TgZ(16,"ion-col",7)(17,"ion-item",8)(18,"ion-label",9),e._uU(19,"EIN/TIN"),e.qZA(),e._UZ(20,"ion-input",11),e.qZA()(),e.TgZ(21,"ion-col",7)(22,"ion-item",8)(23,"ion-label",9),e._uU(24,"CDL Number"),e.qZA(),e._UZ(25,"ion-input",12),e.qZA()(),e.TgZ(26,"ion-col",7)(27,"div",13)(28,"ion-item",8)(29,"ion-label",9),e._uU(30,"VIN (optional)"),e.qZA(),e._UZ(31,"ion-input",14),e.qZA(),e.TgZ(32,"div",15),e._uU(33),e.qZA()()()(),e.TgZ(34,"ion-row")(35,"ion-col",16)(36,"ion-item",8)(37,"ion-label",9),e._uU(38,"Truck Number"),e.qZA(),e._UZ(39,"ion-input",17),e.qZA()(),e.TgZ(40,"ion-col",16)(41,"ion-item",8)(42,"ion-label",9),e._uU(43,"License Plate"),e.qZA(),e._UZ(44,"ion-input",18),e.qZA()()(),e.TgZ(45,"ion-row")(46,"ion-col",7)(47,"ion-item",8)(48,"ion-label"),e._uU(49,"Truck Type"),e.qZA(),e.TgZ(50,"ion-select",19),e.YNc(51,D,2,2,"ion-select-option",20),e.qZA()()(),e.TgZ(52,"ion-col",7)(53,"ion-item",8)(54,"ion-label"),e._uU(55,"Truck Size"),e.qZA(),e.TgZ(56,"ion-select",21),e.YNc(57,N,2,2,"ion-select-option",20),e.qZA()()()(),e.TgZ(58,"ion-row")(59,"ion-col",22)(60,"ion-item",8)(61,"ion-label",9),e._uU(62,"City"),e.qZA(),e._UZ(63,"ion-input",23),e.qZA()()(),e.TgZ(64,"ion-row")(65,"ion-col",16)(66,"ion-item",8)(67,"ion-label",9),e._uU(68,"State"),e.qZA(),e._UZ(69,"ion-input",24),e.qZA()(),e.TgZ(70,"ion-col",16)(71,"ion-item",8)(72,"ion-label",9),e._uU(73,"ZIP Code"),e.qZA(),e._UZ(74,"ion-input",25),e.qZA()()(),e.TgZ(75,"ion-row")(76,"ion-col")(77,"div",26),e._UZ(78,"ion-checkbox",27),e.TgZ(79,"span",28),e._uU(80,"I confirm that I/my business are insured"),e.qZA()()()(),e.TgZ(81,"ion-row")(82,"ion-col")(83,"ion-button",29),e._uU(84,"Continue"),e.qZA()()()()()),2&t&&(e.xp6(8),e.Q6J("formGroup",n.soloTruckerForm),e.xp6(20),e.ekj("vin-valid","valid"===n.vinValidationState)("vin-invalid","invalid"===n.vinValidationState),e.xp6(4),e.ekj("vin-counter-valid","valid"===n.vinValidationState)("vin-counter-invalid","invalid"===n.vinValidationState),e.xp6(1),e.hij(" ",n.vinLength,"/17 "),e.xp6(18),e.Q6J("ngForOf",n.truckerTypeOptions),e.xp6(6),e.Q6J("ngForOf",n.truckSizeOptions),e.xp6(26),e.Q6J("disabled",!n.soloTruckerForm.valid||!n.allowClick))},dependencies:[p.sg,a.YG,a.nz,a.wI,a.jY,a.pK,a.Ie,a.Q$,a.Nd,a.t9,a.n0,a.w,a.QI,a.j9,i._Y,i.JJ,i.JL,i.nD,i.sg,i.u],styles:["*[_ngcontent-%COMP%]{font-family:Montserrat,system-ui;font-optical-sizing:auto;font-weight:400;font-style:normal}ion-button[_ngcontent-%COMP%]{--background: #0F465A}.roundedInput[_ngcontent-%COMP%]{--border-color: #e7e5e5;--border-radius: 8px;--border-width: 1px;--box-shadow: 2px grey;--highlight-height: 0;--background: white}.entity-card[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:20px 24px;border-radius:12px;margin:0 8px 16px}.solo-card[_ngcontent-%COMP%]{background:#FC4E45}.card-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px}.card-subtitle[_ngcontent-%COMP%]{font-size:12px;color:#fffc;font-weight:400}.card-title[_ngcontent-%COMP%]{font-size:20px;color:#fff;font-weight:600}.card-icon[_ngcontent-%COMP%]{width:48px;height:48px;background:rgba(255,255,255,.2);border-radius:8px;display:flex;align-items:center;justify-content:center}.card-icon[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:28px;height:28px}.checkbox-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;padding:12px 0}.checkbox-label[_ngcontent-%COMP%]{font-size:14px;color:#333}ion-checkbox[_ngcontent-%COMP%]{--size: 22px;--checkbox-background: #ffffff;--checkbox-background-checked: #0F465A;--border-color: #0F465A;--border-color-checked: #0F465A;--border-radius: 4px;--border-width: 2px;--checkmark-color: #ffffff}.vin-input-wrapper[_ngcontent-%COMP%]{position:relative}.vin-counter[_ngcontent-%COMP%]{position:absolute;right:12px;bottom:8px;font-size:12px;color:#999}.vin-counter-valid[_ngcontent-%COMP%]{color:#28a745}.vin-counter-invalid[_ngcontent-%COMP%]{color:#dc3545}.vin-valid[_ngcontent-%COMP%]{--border-color: #28a745}.vin-invalid[_ngcontent-%COMP%]{--border-color: #dc3545}"]}),o})(),J=(()=>{class o{constructor(t,n,r,s){this.fb=t,this.sharedService=n,this.entityBaseService=r,this.router=s,this.truckingFleetData=new e.vpe,this.fleetForm=this.fb.group({companyTitle:["",i.kI.required],einTitle:["",i.kI.required],city:["",i.kI.required],state:["",i.kI.required],zipCode:["",i.
1kI.required],insuranceConfirmed:[!1,i.kI.requiredTrue]})}ngOnInit(){this.destroySubs=new T.x,this.allowClick=!0,this.sharedService.currentUser$.pipe((0,C.R)(this.destroySubs)).subscribe({next:t=>{console.log("EntityFormContentComponent--\x3engOnInit userDocVal: ",t),this.curUserDoc=t}})}submitForm(){if(this.allowClick){this.allowClick=!1;let t={projectCount:0,truckerCount:0,completedProjectCount:0,completedJobCount:0,activeProjectCount:0,companyTitle:this.fleetForm.get("companyTitle").value,einTitle:this.fleetForm.get("einTitle").value,city:this.fleetForm.get("city").value,state:this.fleetForm.get("state").value,zipCode:this.fleetForm.get("zipCode").value,insuranceConfirmed:this.fleetForm.get("insuranceConfirmed").value,entityType:h.p.TruckingFleet};this.fleetDataSave(t)}}fleetDataSave(t){var n=this;return(0,_.Z)(function*(){if(n.curUserDoc){let r={...t,pocEmail:n.curUserDoc.email,pocFullName:n.curUserDoc.name+" "+n.curUserDoc.surname,pocPhone:n.curUserDoc.phoneNo,userId:n.curUserDoc.uid,userDocId:n.curUserDoc.docId,accountBalance:0,totalEarned:0,completedJobCount:0},s=yield n.entityBaseService.createEntityDocument(r);s.isSuccessful?(yield n.sharedService.showToastr({color:"success",duration:2e3,message:"Your Account Has Been Created"}),n.sharedService.startEntityDataSubscription(s.entityId),n.router.navigate(["/notifications-permission"],{replaceUrl:!0,queryParams:{next:v.d[t.entityType]}})):yield n.sharedService.showToastr({color:"danger",duration:2e3,message:"Something Went Wrong. Please Try Again."})}else console.log("Entity Data Retrieved But curUserDocument Not Found!")})()}ngOnDestroy(){this.destroySubs&&(this.destroySubs.next(!0),this.destroySubs.complete())}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(i.qu),e.Y36(y.V),e.Y36(Z.L),e.Y36(m.F0))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-trucking-company-sign-up-form"]],outputs:{truckingFleetData:"truckingFleetData"},decls:48,vars:2,consts:[[1,"entity-card","fleet-card"],[1,"card-content"],[1,"card-subtitle"],[1,"card-title"],[1,"card-icon"],["src","/assets/shovel-icons/entity-types/trucking-fleet-type.svg","alt","Fleet icon"],[3,"formGroup","ngSubmit"],[1,"roundedInput"],["position","floating"],["formControlName","companyTitle","autocapitalize","true","type","text","required",""],["size","12"],["formControlName","einTitle","type","text","required",""],[1,"ion-margin-bottom"],["size","12","size-md","4"],["formControlName","city","autocapitalize","true","type","text","required",""],["formControlName","state","autocapitalize","characters","type","text","required",""],["formControlName","zipCode","type","text","required",""],[1,"checkbox-row"],["formControlName","insuranceConfirmed"],[1,"checkbox-label"],["expand","block","size","large",3,"disabled","click"]],template:function(t,n){1&t&&(e.TgZ(0,"div",0)(1,"div",1)(2,"span",2),e._uU(3,"Material Hauler"),e.qZA(),e.TgZ(4,"span",3),e._uU(5,"Truck Fleet"),e.qZA()(),e.TgZ(6,"div",4),e._UZ(7,"img",5),e.qZA()(),e.TgZ(8,"form",6),e.NdJ("ngSubmit",function(){return n.submitForm()}),e.TgZ(9,"ion-grid")(10,"ion-row")(11,"ion-col")(12,"ion-item",7)(13,"ion-label",8),e._uU(14,"Company Name"),e.qZA(),e._UZ(15,"ion-input",9),e.qZA()()(),e.TgZ(16,"ion-row")(17,"ion-col",10)(18,"ion-item",7)(19,"ion-label",8),e._uU(20,"EIN/TIN"),e.qZA(),e._UZ(21,"ion-input",11),e.qZA()()(),e.TgZ(22,"ion-row",12)(23,"ion-col",13)(24,"ion-item",7)(25,"ion-label",8),e._uU(26,"City"),e.qZA(),e._UZ(27,"ion-input",14),e.qZA()(),e.TgZ(28,"ion-col")(29,"ion-item",7)(30,"ion-label",8),e._uU(31,"State"),e.qZA(),e._UZ(32,"ion-input",15),e.qZA()(),e.TgZ(33,"ion-col")(34,"ion-item",7)(35,"ion-label",8),e._uU(36,"Zip Code"),e.qZA(),e._UZ(37,"ion-input",16),e.qZA()()(),e.TgZ(38,"ion-row")(39,"ion-col")(40,"div",17),e._UZ(41,"ion-checkbox",18),e.TgZ(42,"span",19),e._uU(43,"I confirm that I/my business are insured"),e.qZA()()()(),e.TgZ(44,"ion-row")(45,"ion-col")(46,"ion-button",20),e.NdJ("click",function(){return n.submitForm()}),e._uU(47,"Continue"),e.qZA()()()()()),2&t&&(e.xp6(8),e.Q6J("formGroup",n.fleetForm),e.xp6(38),e.Q6J("disabled",!n.allowClick||!n.fleetForm.valid))},dependencies:[a.YG,a.nz,a.wI,a.jY,a.pK,a.Ie,a.Q$,a.Nd,a.w,a.j9,i._Y,i.JJ,i.JL,i.Q7,i.sg,i.u],styles:["*[_ngcontent-%COMP%]{font-family:Montserrat,system-ui;font-optical-sizing:auto;font-weight:400;font-style:normal}ion-button[_ngcontent-%COMP%]{--background: #0F465A}.roundedInput[_ngcontent-%COMP%]{--border-color: #e7e5e5;--border-radius: 8px;--border-width: 1px;
1--box-shadow: 2px grey;--highlight-height: 0;--background: white}.entity-card[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:20px 24px;border-radius:12px;margin:0 8px 16px}.fleet-card[_ngcontent-%COMP%]{background:#39373C}.card-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px}.card-subtitle[_ngcontent-%COMP%]{font-size:12px;color:#fffc;font-weight:400}.card-title[_ngcontent-%COMP%]{font-size:20px;color:#fff;font-weight:600}.card-icon[_ngcontent-%COMP%]{width:48px;height:48px;background:rgba(255,255,255,.2);border-radius:8px;display:flex;align-items:center;justify-content:center}.card-icon[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:28px;height:28px}.checkbox-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;padding:12px 0}.checkbox-label[_ngcontent-%COMP%]{font-size:14px;color:#333}ion-checkbox[_ngcontent-%COMP%]{--size: 22px;--checkbox-background: #ffffff;--checkbox-background-checked: #0F465A;--border-color: #0F465A;--border-color-checked: #0F465A;--border-radius: 4px;--border-width: 2px;--checkmark-color: #ffffff}"]}),o})();var M=l(3905),P=l(4649),A=l(7230);function L(o,c){if(1&o){const t=e.EpF();e.ynx(0),e.TgZ(1,"div",10)(2,"h2",11),e._uU(3,"You've been invited to a Fleet!"),e.qZA(),e.TgZ(4,"p",12)(5,"strong"),e._uU(6,"Hello!"),e.qZA(),e._uU(7," A fleet owner has sent you an invite to join their Fleet on The Shovel App. Tap Continue to enter your 6-character invite code and finish setting up your Fleet Driver profile. "),e.qZA(),e.TgZ(8,"p",12),e._uU(9," This new profile will be listed in your "),e.TgZ(10,"strong"),e._uU(11,"Change Business"),e.qZA(),e._uU(12," menu in your Account Settings. "),e.qZA(),e.TgZ(13,"div",13)(14,"div",14)(15,"span",15),e._uU(16,"Got questions?"),e.qZA(),e.TgZ(17,"a",16),e._uU(18,"Contact us"),e.qZA()()()(),e.TgZ(19,"div",17)(20,"ion-button",18),e.NdJ("click",function(){e.CHM(t);const r=e.oxw();return e.KtG(r.goToForm())}),e._uU(21," Continue "),e.qZA()(),e.BQk()}}function Y(o,c){if(1&o&&(e.TgZ(0,"p",26),e._uU(1),e.qZA()),2&o){const t=e.oxw(3);e.xp6(1),e.Oqu(t.codeError)}}function j(o,c){1&o&&e._UZ(0,"ion-spinner",27)}function B(o,c){1&o&&(e.TgZ(0,"span"),e._uU(1,"Validate Code"),e.qZA())}function Q(o,c){if(1&o){const t=e.EpF();e.TgZ(0,"div",10)(1,"h2",11),e._uU(2,"Enter Your Invite Code"),e.qZA(),e.TgZ(3,"p",19),e._uU(4," Enter the 6-character code your fleet owner sent you. "),e.qZA(),e.TgZ(5,"form",20),e.NdJ("ngSubmit",function(){e.CHM(t);const r=e.oxw(2);return e.KtG(r.validateCode())}),e.TgZ(6,"ion-item",21),e._UZ(7,"ion-input",22),e.qZA(),e.YNc(8,Y,2,1,"p",23),e.TgZ(9,"ion-button",24),e.YNc(10,j,1,0,"ion-spinner",25),e.YNc(11,B,2,0,"span",8),e.qZA()()()}if(2&o){const t=e.oxw(2);e.xp6(5),e.Q6J("formGroup",t.codeForm),e.xp6(3),e.Q6J("ngIf",t.codeError),e.xp6(1),e.Q6J("disabled",!t.codeForm.valid||t.isValidating),e.xp6(1),e.Q6J("ngIf",t.isValidating),e.xp6(1),e.Q6J("ngIf",!t.isValidating)}}function V(o,c){if(1&o&&(e.TgZ(0,"p",26),e._uU(1),e.qZA()),2&o){const t=e.oxw(3);e.xp6(1),e.Oqu(t.submitError)}}function R(o,c){1&o&&e._UZ(0,"ion-spinner",27)}function G(o,c){1&o&&(e.TgZ(0,"span"),e._uU(1,"Join Fleet"),e.qZA())}function H(o,c){if(1&o){const t=e.EpF();e.TgZ(0,"div",10)(1,"h2",11),e._uU(2,"Fleet Driver Set-up"),e.qZA(),e.TgZ(3,"p",19),e._uU(4," Enter your CDL to finish joining the fleet. "),e.qZA(),e.TgZ(5,"div",28),e._UZ(6,"ion-icon",29),e.TgZ(7,"div",30)(8,"span",31),e._uU(9,"Invited to join"),e.qZA(),e.TgZ(10,"span",32),e._uU(11),e.qZA()()(),e.TgZ(12,"form",20),e.NdJ("ngSubmit",function(){e.CHM(t);const r=e.oxw(2);return e.KtG(r.submitRegistration())}),e.TgZ(13,"ion-item",33),e._UZ(14,"ion-input",34),e.qZA(),e.YNc(15,V,2,1,"p",23),e.TgZ(16,"ion-button",24),e.YNc(17,R,1,0,"ion-spinner",25),e.YNc(18,G,2,0,"span",8),e.qZA()()()}if(2&o){const t=e.oxw(2);e.xp6(11),e.Oqu(null==t.inviteData?null:t.inviteData.fleetName),e.xp6(1),e.Q6J("formGroup",t.driverForm),e.xp6(3),e.Q6J("ngIf",t.submitError),e.xp6(1),e.Q6J("disabled",!t.driverForm.valid||t.isSubmitting),e.xp6(1),e.Q6J("ngIf",t.isSubmitting),e.xp6(1),e.Q6J("ngIf",!t.isSubmitting)}}function K(o,c){if(1&o&&(e.ynx(0),e.YNc(1,Q,12,5,"div",9),e.YNc(2,H,19,6,"div",9),e.BQk()),2&o){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",1===t.step),e.xp6(1),e.Q6J("ngIf",2===t.step)}}function W(o,c){if(1&o&&(e.ynx(0),e._uU(1),e.BQk()),2&o){const t=e.oxw(2);e.xp6(1),e.Oqu(null==t.inviteData?null:t.inviteData.fleetName)}}function $(o,c){1&o&&e._uU(0,"the fleet")}function X(o,c){if(1&o){const t=e.EpF();e.TgZ(0,"div",10)(1,"h2",11),e._uU(2,"Success!"),e.qZA(),e.TgZ(3,"p",12)(4,"strong"),e._uU(5,"Congrats!"),e.qZA(),e._uU(6," You've successfully joined "),e.YNc(7,W,2,1,"ng-container",35),e.YNc(8,$,1,0,"ng-template",null,36,e.W1O),e._uU(10," as a Fleet Driver. Tap Continue to enter the app. "),e.qZA(),e.TgZ(11,"div",13)(12,"div",14)(13,"span",15),e._uU(14,"Got questions?"),e.qZA(),e.TgZ(15,"a",16),e._uU(16,"Contact us"),e.qZA()()(),e.TgZ(17,"ion-button",18),e.NdJ("click",function(){e.CHM(t);const r=e.oxw();return e.KtG(r.finishSuccess())}),e._uU(18," Continue "),e.qZA()()}if(2&o){const t=e.MAs(9),n=e.oxw();
1e.xp6(7),e.Q6J("ngIf",null==n.inviteData?null:n.inviteData.fleetName)("ngIfElse",t)}}let ee=(()=>{class o{constructor(t,n,r,s,u){this.fb=t,this.truckingFleetService=n,this.userNotificationsService=r,this.sharedService=s,this.router=u,this.backRequested=new e.vpe,this.currentStep="welcome",this.step=1,this.isValidating=!1,this.isSubmitting=!1,this.codeError="",this.submitError="",this.joinedEntityId=null,this.inviteData=null,this.codeForm=this.fb.group({inviteCode:["",[i.kI.required,i.kI.minLength(6),i.kI.maxLength(6)]]}),this.driverForm=this.fb.group({cdl:["",i.kI.required]})}validateCode(){var t=this;return(0,_.Z)(function*(){if(!t.codeForm.valid||t.isValidating)return;t.isValidating=!0,t.codeError="";const n=t.codeForm.get("inviteCode").value.trim().toUpperCase();try{t.inviteData=yield t.truckingFleetService.validateInviteCode(n),t.step=2}catch{t.codeError="Invalid or expired invite code. Please check and try again."}finally{t.isValidating=!1}})()}submitRegistration(){var t=this;return(0,_.Z)(function*(){if(!t.driverForm.valid||t.isSubmitting||!t.inviteData)return;t.isSubmitting=!0,t.submitError="";const n=t.driverForm.get("cdl").value,r=t.codeForm.get("inviteCode").value.toUpperCase();try{const s=yield(0,M.z)(t.userNotificationsService.acceptFleetInviteByCode({inviteCode:r,cdl:n}));t.joinedEntityId=s?.entityId??null,t.currentStep="success"}catch{t.submitError="Something went wrong. Please try again."}finally{t.isSubmitting=!1}})()}goToForm(){this.currentStep="form"}finishSuccess(){this.joinedEntityId&&this.sharedService.startEntityDataSubscription(this.joinedEntityId),this.router.navigate([v.d[h.p.FleetTrucker]],{replaceUrl:!0})}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(i.qu),e.Y36(P.u),e.Y36(A._),e.Y36(y.V),e.Y36(m.F0))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-fleet-driver-sign-up-form"]],outputs:{backRequested:"backRequested"},decls:14,vars:3,consts:[[1,"fleet-driver-page"],[1,"mobile-header"],["aria-label","Back",1,"header-back-button",3,"click"],["name","chevron-back-outline"],["src","assets/icons/us-flag.png","alt","US Flag",1,"flag-icon"],["src","assets/shovel-logo/shovel-email-logo.png",1,"logo-image"],[1,"tagline"],[1,"invite-section"],[4,"ngIf"],["class","form-card",4,"ngIf"],[1,"form-card"],[1,"form-title"],[1,"info-body"],[1,"account-links"],[1,"create-account-row"],[1,"n
1o-account-text"],["href","mailto:[email protected]",1,"link-button"],[1,"mobile-button-section"],["expand","block",1,"continue-button",3,"click"],[1,"form-subtitle"],[3,"formGroup","ngSubmit"],["lines","none",1,"roundedInput","code-input"],["label","Invite Code","labelPlacement","floating","type","text","formControlName","inviteCode","autocapitalize","characters","maxlength","6","placeholder","e.g. ABC123"],["class","error-text",4,"ngIf"],["expand","block","type","submit",1,"continue-button",3,"disabled"],["name","crescent",4,"ngIf"],[1,"error-text"],["name","crescent"],[1,"fleet-confirmed-banner"],["name","checkmark-circle","color","success"],[1,"fleet-confirmed-text"],[1,"fleet-confirmed-label"],[1,"fleet-confirmed-name"],["lines","none",1,"roundedInput"],["label","CDL Number","labelPlacement","floating","type","text","formControlName","cdl"],[4,"ngIf","ngIfElse"],["genericFleet",""]],template:function(t,n){1&t&&(e.TgZ(0,"div",0)(1,"div",1)(2,"button",2),e.NdJ("click",function(){return n.backRequested.emit()}),e._UZ(3,"ion-icon",3),e.qZA(),e._UZ(4,"ion-img",4)(5,"ion-img",5),e.TgZ(6,"p",6),e._uU(7,"The best way to move the Earth"),e.TgZ(8,"sup"),e._uU(9,"TM"),e.qZA()()(),e.TgZ(10,"div",7),e.YNc(11,L,22,0,"ng-container",8),e.YNc(12,K,3,2,"ng-container",8),e.YNc(13,X,19,2,"div",9),e.qZA()()),2&t&&(e.xp6(11),e.Q6J("ngIf","welcome"===n.currentStep),e.xp6(1),e.Q6J("ngIf","form"===n.currentStep),e.xp6(1),e.Q6J("ngIf","success"===n.currentStep))},dependencies:[p.O5,a.YG,a.gu,a.Xz,a.pK,a.Ie,a.PQ,a.j9,i._Y,i.JJ,i.JL,i.nD,i.sg,i.u],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;min-height:100%;font-family:Montserrat,system-ui}.fleet-driver-page[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex:1;background:#ffffff}.mobile-header[_ngcontent-%COMP%]{position:relative;background:#39373C;padding:40px 24px;display:flex;flex-direction:column;align-items:center;justify-content:center}.header-back-button[_ngcontent-%COMP%]{position:absolute;top:16px;left:12px;background:transparent;border:none;padding:6px;cursor:pointer}.header-back-button[_ngcontent-%COMP%]   ion-icon[_ngcontent-%COMP%]{font-size:26px;color:#fff}.flag-icon[_ngcontent-%COMP%]{width:32px;height:auto;margin-bottom:24px}.logo-image[_ngcontent-%COMP%]{width:260px;max-width:80%;height:auto;margin-bottom:8px}.tagline[_ngcontent-%COMP%]{color:#fff;font-size:14px;font-weight:400;margin:0;text-align:center}.tagline[_ngcontent-%COMP%]   sup[_ngcontent-%COMP%]{font-size:8px;vertical-align:super}.invite-section[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;min-height:0}.mobile-button-section[_ngcontent-%COMP%]{margin-top:auto;padding:24px;max-width:600px;width:100%;margin-left:auto;margin-right:auto;box-sizing:border-box}.form-card[_ngcontent-%COMP%]{padding:32px 24px;background:#ffffff;max-width:600px;margin:0 auto;width:100%;box-sizing:border-box}.form-title[_ngcontent-%COMP%]{color:#0f465a;font-size:20px;font-weight:600;margin:0 0 16px}.form-subtitle[_ngcontent-%COMP%]{color:#666;font-size:14px;margin:0 0 24px}.info-body[_ngcontent-%COMP%]{color:#333;font-size:14px;line-height:1.6;margin:0 0 16px}.account-links[_ngcontent-%COMP%]{margin-top:8px}.create-account-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;margin-bottom:16px}.no-account-text[_ngcontent-%COMP%]{font-size:14px;color:#333}.link-button[_ngcontent-%COMP%]{background:transparent;border:none;color:#3badd4;font-size:14px;font-weight:500;cursor:pointer;padding:0;text-decoration:none}.link-button[_ngcontent-%COMP%]:hover{text-decoration:underline}.roundedInput[_ngcontent-%COMP%]{--border-color: #0F465A;--border-radius: 6px;--border-width: 1px;--highlight-height: 0;--background: #ffffff;--padding-start: 14px;--padding-end: 14px;--min-height: 48px;border:1px solid #0F465A;border-radius:6px;margin-bottom:16px}.roundedInput[_ngcontent-%COMP%]   ion-input[_ngcontent-%COMP%]{--color: #333333;font-size:14px}.code-input[_ngcontent-%COMP%]   ion-input[_ngcontent-%COMP%]{font-size:20px;font-weight:700;letter-spacing:.2em}.error-text[_ngcontent-%COMP%]{color:#fc4e46;font-size:13px;margin:4px 0 12px;padding:0 4px}.fleet-confirmed-banner[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;background:#eaf7ee;border:1px solid #6fcf97;border-radius:10px;padding:14px 16px;margin-bottom:20px}.fleet-confirmed-banner[_ngcontent-%COMP%]   ion-icon[_ngcontent-%COMP%]{font-size:28px;flex-shrink:0}.fleet-confirmed-text[_ngcontent-%COMP%]{display:flex;flex-direction:column}.fleet-confirmed-label[_ngcontent-%COMP%]{font-size:11px;color:#555;font-weight:600;text-transform:uppercase;letter-spacing:.08em}
1.fleet-confirmed-name[_ngcontent-%COMP%]{font-size:16px;font-weight:700;color:#1a1a1a}.continue-button[_ngcontent-%COMP%]{--background: #0F465A;--border-radius: 12px;height:52px;font-weight:600;font-size:16px;margin:16px 0 0}"]}),o})();function te(o,c){if(1&o){const t=e.EpF();e.ynx(0),e.TgZ(1,"div",10)(2,"h2",11),e._uU(3,"You've been invited to operate an excavator!"),e.qZA(),e.TgZ(4,"p",12)(5,"strong"),e._uU(6,"Hello!"),e.qZA(),e._uU(7," A Pit or Jobber has invited you to operate an excavator on The Shovel App. Tap Continue to enter your 6-character invite code and join their team. "),e.qZA(),e.TgZ(8,"p",12),e._uU(9," This new profile will be listed in your "),e.TgZ(10,"strong"),e._uU(11,"Change Business"),e.qZA(),e._uU(12," menu in your Account Settings. "),e.qZA(),e.TgZ(13,"div",13)(14,"div",14)(15,"span",15),e._uU(16,"Got questions?"),e.qZA(),e.TgZ(17,"a",16),e._uU(18,"Contact us"),e.qZA()()()(),e.TgZ(19,"div",17)(20,"ion-button",18),e.NdJ("click",function(){e.CHM(t);const r=e.oxw();return e.KtG(r.goToForm())}),e._uU(21," Continue "),e.qZA()(),e.BQk()}}function ne(o,c){if(1&o&&(e.TgZ(0,"p",26),e._uU(1),e.qZA()),2&o){const t=e.oxw(3);e.xp6(1),e.Oqu(t.codeError)}}function oe(o,c){1&o&&e._UZ(0,"ion-spinner",27)}function ie(o,c){1&o&&(e.TgZ(0,"span"),e._uU(1,"Validate Code"),e.qZA())}function re(o,c){if(1&o){const t=e.EpF();e.TgZ(0,"div",10)(1,"h2",11),e._uU(2,"Enter Your Invite Code"),e.qZA(),e.TgZ(3,"p",19),e._uU(4," Enter the 6-character code your Pit or Jobber sent you. "),e.qZA(),e.TgZ(5,"form",20),e.NdJ("ngSubmit",function(){e.CHM(t);const r=e.oxw(2);return e.KtG(r.validateCode())}),e.TgZ(6,"ion-item",21),e._UZ(7,"ion-input",22),e.qZA(),e.YNc(8,ne,2,1,"p",23),e.TgZ(9,"ion-button",24),e.YNc(10,oe,1,0,"ion-spinner",25),e.YNc(11,ie,2,0,"span",8),e.qZA()()()}if(2&o){const t=e.oxw(2);e.xp6(5),e.Q6J("formGroup",t.codeForm),e.xp6(3),e.Q6J("ngIf",t.codeError),e.xp6(1),e.Q6J("disabled",!t.codeForm.valid||t.isValidating),e.xp6(1),e.Q6J("ngIf",t.isValidating),e.xp6(1),e.Q6J("ngIf",!t.isValidating)}}function ae(o,c){if(1&o&&(e.TgZ(0,"p",26),e._uU(1),e.qZA()),2&o){const t=e.oxw(3);e.xp6(1),e.Oqu(t.submitError)}}function ce(o,c){1&o&&e._UZ(0,"ion-spinner",27)}function se(o,c){1&o&&(e.TgZ(0,"span"),e._uU(1,"Join as Excavator Operator"),e.qZA())}function le(o,c){if(1&o){const t=e.EpF();e.TgZ(0,"div",10)(1,"h2",11),e._uU(2,"Confirm Your Invite"),e.qZA(),e.TgZ(3,"p",19),e._uU(4," Verify the details below, then tap Join to accept the invitation. "),e.qZA(),e.TgZ(5,"div",28),e._UZ(6,"ion-icon",29),e.TgZ(7,"div",30)(8,"span",31),e._uU(9,"Invited to operate for"),e.qZA(),e.TgZ(10,"span",32),e._uU(11),e.qZA()()(),e.YNc(12,ae,2,1,"p",23),e.TgZ(13,"ion-button",33),e.NdJ("click",function(){e.CHM(t);const r=e.oxw(2);return e.KtG(r.submitRegistration())}),e.YNc(14,ce,1,0,"ion-spinner",25),e.YNc(15,se,2,0,"span",8),e.qZA()()}if(2&o){const t=e.oxw(2);e.xp6(11),e.Oqu(null==t.inviteData?null:t.inviteData.parentName),e.xp6(1),e.Q6J("ngIf",t.submitError),e.xp6(1),e.Q6J("disabled",t.isSubmitting),e.xp6(1),e.Q6J("ngIf",t.isSubmitting),e.xp6(1),e.Q6J("ngIf",!t.isSubmitting)}}function pe(o,c){if(1&o&&(e.ynx(0),e.YNc(1,re,12,5,"div",9),e.YNc(2,le,16,5,"div",9),e.BQk()),2&o){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",1===t.step),e.xp6(1),e.Q6J("ngIf",2===t.step)}}function ue(o,c){if(1&o&&(e.ynx(0),e._uU(1),e.BQk()),2&o){const t=e.oxw(2);e.xp6(1),e.Oqu(null==t.inviteData?null:t.inviteData.parentName)}}function de(o,c){1&o&&e._uU(0,"your new team")}function ge(o,c){if(1&o){const t=e.EpF();e.TgZ(0,"div",10)(1,"h2",11),e._uU(2,"Success!"),e.qZA(),e.TgZ(3,"p",12)(4,"strong"),e._uU(5,"Congrats!"),e.qZA(),e._uU(6," You've successfully joined "),e.YNc(7,ue,2,1,"ng-container",34),e.YNc(8,de,1,0,"ng-template",null,35,e.W1O),e._uU(10," as an Excavator Operator. Tap Continue to enter the app. "),e.qZA(),e.TgZ(11,"div",13)(12,"div",14)(13,"span",15),e._uU(14,"Got questions?"),e.qZA(),e.TgZ(15,"a",16),e._uU(16,"Contact us"),e.qZA()()(),e.TgZ(17,"ion-button",18),e.NdJ("click",function(){e.CHM(t);const r=e.oxw();return e.KtG(r.finishSuccess())}),e._uU(18," Continue "),e.qZA()()}if(2&o){const t=e.MAs(9),n=e.oxw();
1e.xp6(7),e.Q6J("ngIf",null==n.inviteData?null:n.inviteData.parentName)("ngIfElse",t)}}let me=(()=>{class o{constructor(t,n,r,s,u){this.fb=t,this.truckingFleetService=n,this.userNotificationsService=r,this.sharedService=s,this.router=u,this.backRequested=new e.vpe,this.currentStep="welcome",this.step=1,this.isValidating=!1,this.isSubmitting=!1,this.codeError="",this.submitError="",this.joinedEntityId=null,this.joinedOperatorType=null,this.inviteData=null,this.codeForm=this.fb.group({inviteCode:["",[i.kI.required,i.kI.minLength(6),i.kI.maxLength(6)]]})}validateCode(){var t=this;return(0,_.Z)(function*(){if(!t.codeForm.valid||t.isValidating)return;t.isValidating=!0,t.codeError="";const n=t.codeForm.get("inviteCode").value.trim().toUpperCase();try{const r=yield t.truckingFleetService.validateInviteCode(n);if("operator"!==r?.type)return void(t.codeError="That code is for a Fleet invite, not an Operator invite. Use the Fleet Driver option instead.");t.inviteData=r,t.step=2}catch{t.codeError="Invalid or expired invite code. Please check and try again."}finally{t.isValidating=!1}})()}submitRegistration(){var t=this;return(0,_.Z)(function*(){if(t.isSubmitting||!t.inviteData)return;t.isSubmitting=!0,t.submitError="";const n=t.codeForm.get("inviteCode").value.toUpperCase();try{const r=yield(0,M.z)(t.userNotificationsService.acceptOperatorInviteByCode(n));t.joinedEntityId=r?.entityId??null,t.joinedOperatorType=r?.operatorEntityType??null,t.currentStep="success"}catch{t.submitError="Something went wrong. Please try again."}finally{t.isSubmitting=!1}})()}goToForm(){this.currentStep="form"}finishSuccess(){this.joinedEntityId&&this.sharedService.startEntityDataSubscription(this.joinedEntityId),this.router.navigate([v.d[this.joinedOperatorType??h.p.PitOperator]],{replaceUrl:!0})}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(i.qu),e.Y36(P.u),e.Y36(A._),e.Y36(y.V),e.Y36(m.F0))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-excavator-operator-sign-up-form"]],outputs:{backRequested:"backRequested"},decls:14,vars:3,consts:[[1,"operator-page"],[1,"mobile-header"],["aria-label","Back",1,"header-back-button",3,"click"],["name","chevron-back-outline"],["src","assets/icons/us-flag.png","alt","US Flag",1,"flag-icon"],["src","assets/shovel-logo/shovel-email-logo.png",1,"logo-image"],[1,"tagline"],[1,"invite-section"],[4,"ngIf"],["class","form-card",4,"ngIf"],[1,"form-card"],[1,"form-title"],[1,"info-body"],[1,"account-links"],[1,"create-account-row"],[1,"n
1o-account-text"],["href","mailto:[email protected]",1,"link-button"],[1,"mobile-button-section"],["expand","block",1,"continue-button",3,"click"],[1,"form-subtitle"],[3,"formGroup","ngSubmit"],["lines","none",1,"roundedInput","code-input"],["label","Invite Code","labelPlacement","floating","type","text","formControlName","inviteCode","autocapitalize","characters","maxlength","6","placeholder","e.g. ABC123"],["class","error-text",4,"ngIf"],["expand","block","type","submit",1,"continue-button",3,"disabled"],["name","crescent",4,"ngIf"],[1,"error-text"],["name","crescent"],[1,"fleet-confirmed-banner"],["name","checkmark-circle","color","success"],[1,"fleet-confirmed-text"],[1,"fleet-confirmed-label"],[1,"fleet-confirmed-name"],["expand","block",1,"continue-button",3,"disabled","click"],[4,"ngIf","ngIfElse"],["genericParent",""]],template:function(t,n){1&t&&(e.TgZ(0,"div",0)(1,"div",1)(2,"button",2),e.NdJ("click",function(){return n.backRequested.emit()}),e._UZ(3,"ion-icon",3),e.qZA(),e._UZ(4,"ion-img",4)(5,"ion-img",5),e.TgZ(6,"p",6),e._uU(7,"The best way to move the Earth"),e.TgZ(8,"sup"),e._uU(9,"TM"),e.qZA()()(),e.TgZ(10,"div",7),e.YNc(11,te,22,0,"ng-container",8),e.YNc(12,pe,3,2,"ng-container",8),e.YNc(13,ge,19,2,"div",9),e.qZA()()),2&t&&(e.xp6(11),e.Q6J("ngIf","welcome"===n.currentStep),e.xp6(1),e.Q6J("ngIf","form"===n.currentStep),e.xp6(1),e.Q6J("ngIf","success"===n.currentStep))},dependencies:[p.O5,a.YG,a.gu,a.Xz,a.pK,a.Ie,a.PQ,a.j9,i._Y,i.JJ,i.JL,i.nD,i.sg,i.u],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;min-height:100%;font-family:Montserrat,system-ui}.operator-page[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex:1;background:#ffffff}.mobile-header[_ngcontent-%COMP%]{position:relative;background:#39373C;padding:40px 24px;display:flex;flex-direction:column;align-items:center;justify-content:center}.header-back-button[_ngcontent-%COMP%]{position:absolute;top:16px;left:12px;background:transparent;border:none;padding:6px;cursor:pointer}.header-back-button[_ngcontent-%COMP%]   ion-icon[_ngcontent-%COMP%]{font-size:26px;color:#fff}.flag-icon[_ngcontent-%COMP%]{width:32px;height:auto;margin-bottom:24px}.logo-image[_ngcontent-%COMP%]{width:260px;max-width:80%;height:auto;margin-bottom:8px}.tagline[_ngcontent-%COMP%]{color:#fff;font-size:14px;font-weight:400;margin:0;text-align:center}.tagline[_ngcontent-%COMP%]   sup[_ngcontent-%COMP%]{font-size:8px;vertical-align:super}.invite-section[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;min-height:0}.mobile-button-section[_ngcontent-%COMP%]{margin-top:auto;padding:24px;max-width:600px;width:100%;margin-left:auto;margin-right:auto;box-sizing:border-box}.form-card[_ngcontent-%COMP%]{padding:32px 24px;background:#ffffff;max-width:600px;margin:0 auto;width:100%;box-sizing:border-box}.form-title[_ngcontent-%COMP%]{color:#0f465a;font-size:20px;font-weight:600;margin:0 0 16px}.form-subtitle[_ngcontent-%COMP%]{color:#666;font-size:14px;margin:0 0 24px}.info-body[_ngcontent-%COMP%]{color:#333;font-size:14px;line-height:1.6;margin:0 0 16px}.account-links[_ngcontent-%COMP%]{margin-top:8px}.create-account-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;margin-bottom:16px}.no-account-text[_ngcontent-%COMP%]{font-size:14px;color:#333}.link-button[_ngcontent-%COMP%]{background:transparent;border:none;color:#009b5c;font-size:14px;font-weight:500;cursor:pointer;padding:0;text-decoration:none}.link-button[_ngcontent-%COMP%]:hover{text-decoration:underline}.roundedInput[_ngcontent-%COMP%]{--border-color: #009B5C;--border-radius: 6px;--border-width: 1px;--highlight-height: 0;--background: #ffffff;--padding-start: 14px;--padding-end: 14px;--min-height: 48px;border:1px solid #009B5C;border-radius:6px;margin-bottom:16px}.roundedInput[_ngcontent-%COMP%]   ion-input[_ngcontent-%COMP%]{--color: #333333;font-size:14px}.code-input[_ngcontent-%COMP%]   ion-input[_ngcontent-%COMP%]{font-size:20px;font-weight:700;letter-spacing:.2em}.error-text[_ngcontent-%COMP%]{color:#fc4e46;font-size:13px;margin:4px 0 12px;padding:0 4px}.fleet-confirmed-banner[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;background:#eaf7ee;border:1px solid #6fcf97;border-radius:10px;padding:14px 16px;margin-bottom:20px}.fleet-confirmed-banner[_ngcontent-%COMP%]   ion-icon[_ngcontent-%COMP%]{font-size:28px;flex-shrink:0}.fleet-confirmed-text[_ngcontent-%COMP%]{display:flex;flex-direction:column}.fleet-confirmed-label[_ngcontent-%COMP%]{font-size:11px;color:#555;font-weight:600;text-transform:uppercase;letter-spacing:.08em}
1.fleet-confirmed-name[_ngcontent-%COMP%]{font-size:16px;font-weight:700;color:#1a1a1a}.continue-button[_ngcontent-%COMP%]{--background: #009B5C;--background-hover: #008851;--background-activated: #007446;--border-radius: 12px;height:52px;font-weight:600;font-size:16px;margin:16px 0 0}"]}),o})();function fe(o,c){if(1&o){const t=e.EpF();e.ynx(0),e.TgZ(1,"app-fleet-driver-sign-up-form",3),e.NdJ("backRequested",function(){e.CHM(t);const r=e.oxw();return e.KtG(r.goBack())}),e.qZA(),e.BQk()}}function _e(o,c){if(1&o){const t=e.EpF();e.ynx(0),e.TgZ(1,"app-excavator-operator-sign-up-form",3),e.NdJ("backRequested",function(){e.CHM(t);const r=e.oxw();return e.KtG(r.goBack())}),e.qZA(),e.BQk()}}function he(o,c){1&o&&(e.TgZ(0,"div",12)(1,"div",13)(2,"span",14),e._uU(3,"Select Business"),e.qZA()(),e.TgZ(4,"p",15),e._uU(5,"Select your business type."),e.qZA()())}function Ce(o,c){1&o&&(e.TgZ(0,"div",12)(1,"div",13)(2,"span",14),e._uU(3,"Business Info"),e.qZA()(),e._UZ(4,"div",16),e.TgZ(5,"p",15),e._uU(6,"Tell us about your company."),e.qZA()())}function xe(o,c){if(1&o){const t=e.EpF();e.TgZ(0,"div",17)(1,"ion-card",18),e.NdJ("click",function(){e.CHM(t);const r=e.oxw(2);return e.KtG(r.selectEntityType(r.enumEntityType.Jobber))}),e.TgZ(2,"ion-card-header",19)(3,"div",20)(4,"ion-card-subtitle"),e._uU(5,"Material Customer"),e.qZA(),e.TgZ(6,"ion-card-title"),e._uU(7,"Builder"),e.qZA()(),e.TgZ(8,"div",21),e.O4$(),e.TgZ(9,"svg",22)(10,"g",23),e._UZ(11,"path",24)(12,"path",25)(13,"path",26)(14,"path",27),e.qZA(),e.TgZ(15,"defs")(16,"clipPath",28),e._UZ(17,"rect",29),e.qZA()()()()()(),e.kcU(),e.TgZ(18,"ion-card",30),e.NdJ("click",function(){e.CHM(t);const r=e.oxw(2);return e.KtG(r.selectEntityType(r.enumEntityType.PitOperation))}),e.TgZ(19,"ion-card-header",19)(20,"div",20)(21,"ion-card-subtitle"),e._uU(22,"Material Provider"),e.qZA(),e.TgZ(23,"ion-card-title"),e._uU(24,"Mineral Pit"),e.qZA()(),e.TgZ(25,"div",21),e.O4$(),e.TgZ(26,"svg",31)(27,"g",32),e._UZ(28,"path",33)(29,"path",34)(30,"path",35)(31,"path",36)(32,"path",37)(33,"path",38)(34,"path",39)(35,"path",40),e.qZA(),e.TgZ(36,"defs")(37,"clipPath",41),e._UZ(38,"rect",29),e.qZA()()()()()(),e.kcU(),e.TgZ(39,"ion-card",42),e.NdJ("click",function(){e.CHM(t);const r=e.oxw(2);return e.KtG(r.selectEntityType(r.enumEntityType.SoloTrucker))}),e.TgZ(40,"ion-card-header",19)(41,"div",20)(42,"ion-card-subtitle"),e._uU(43,"Material Hauler"),e.qZA(),e.TgZ(44,"ion-card-title"),e._uU(45,"Owner/Operator"),e.qZA()(),e.TgZ(46,"div",21),e.O4$(),e.TgZ(47,"svg",22)(48,"g",43),e._UZ(49,"path",44)(50,"path",45)(51,"path",46)(52,"path",47)(53,"path",48)(54,"path",49)(55,"path",50)(56,"path",51),e.qZA(),e.TgZ(57,"defs")(58,"clipPath",52),e._UZ(59,"rect",29),e.qZA()()()()()(),e.kcU(),e.TgZ(60,"ion-card",53),e.NdJ("click",function(){e.CHM(t);const r=e.oxw(2);return e.KtG(r.selectEntityType(r.enumEntityType.TruckingFleet))}),e.TgZ(61,"ion-card-header",19)(62,"div",20)(63,"ion-card-subtitle"),e._uU(64,"Material Hauler"),e.qZA(),e.TgZ(65,"ion-card-title"),e._uU(66,"Truck Fleet"),e.qZA()(),e.TgZ(67,"div",21),e.O4$(),e.TgZ(68,"svg",31)(69,"g",54),e._UZ(70,"path",55)(71,"path",56)(72,"path",57)(73,"path",58)(74,"path",59),e.qZA(),e.TgZ(75,"defs")(76,"clipPath",60),e._UZ(77,"rect",29),e.qZA()()()()()(),e.kcU(),e.TgZ(78,"ion-card",61),e.NdJ("click",function(){e.CHM(t);const r=e.oxw(2);return e.KtG(r.selectEntityType(r.enumEntityType.FleetTrucker))}),e.TgZ(79,"ion-card-header",19)(80,"div",20)(81,"ion-card-subtitle"),e._uU(82,"Have an Invite Code?"),e.qZA(),e.TgZ(83,"ion-card-title"),e._uU(84,"Fleet Driver"),e.qZA()(),e.TgZ(85,"div",21),e.O4$(),e.TgZ(86,"svg",22),e._UZ(87,"path",24)(88,"path",62)(89,"path",63)(90,"path",64),e.qZA()()(),e.kcU(),e.TgZ(91,"div",65),e._uU(92,"Requires invite code from a fleet owner"),e.qZA()(),e.TgZ(93,"ion-card",66),e.NdJ("click",function(){e.CHM(t);const r=e.oxw(2);return e.KtG(r.selectEntityType(r.enumEntityType.PitOperator))}),e.TgZ(94,"ion-card-header",19)(95,"div",20)(96,"ion-card-subtitle"),e._uU(97,"Have an Invite Code?"),e.qZA(),e.TgZ(98,"ion-card-title"),e._uU(99,"Excavator Operator"),e.qZA()(),e.TgZ(100,"div",21),e.O4$(),e.TgZ(101,"svg",22),e._UZ(102,"path",67)(103,"path",68)(104,"path",69)(105,"path",70)(106,"path",71),e.qZA()()(),e.kcU(),e.TgZ(107,"div",65),e._uU(108,"For operators invited by a P
1it or Jobber. Different from Owner/Operator."),e.qZA()()()}}function be(o,c){if(1&o){const t=e.EpF();e.ynx(0),e.TgZ(1,"app-jobber-sign-up-form",74),e.NdJ("jobberData",function(r){e.CHM(t);const s=e.oxw(3);return e.KtG(s.entityDataListener(r))}),e.qZA(),e.BQk()}}function ve(o,c){if(1&o){const t=e.EpF();e.ynx(0),e.TgZ(1,"app-pit-operation-sign-up-form",75),e.NdJ("pitOperationData",function(r){e.CHM(t);const s=e.oxw(3);return e.KtG(s.entityDataListener(r))}),e.qZA(),e.BQk()}}function ye(o,c){if(1&o){const t=e.EpF();e.ynx(0),e.TgZ(1,"app-trucking-company-sign-up-form",76),e.NdJ("truckingFleetData",function(r){e.CHM(t);const s=e.oxw(3);return e.KtG(s.entityDataListener(r))}),e.qZA(),e.BQk()}}function ke(o,c){if(1&o){const t=e.EpF();e.ynx(0),e.TgZ(1,"app-solo-trucker-sign-up-form",77),e.NdJ("soloTruckerData",function(r){e.CHM(t);const s=e.oxw(3);return e.KtG(s.entityDataListener(r))}),e.qZA(),e.BQk()}}function Te(o,c){1&o&&(e.ynx(0),e._UZ(1,"app-fleet-driver-sign-up-form"),e.BQk())}function Ze(o,c){if(1&o&&(e.TgZ(0,"ion-grid")(1,"ion-row")(2,"ion-col"),e.ynx(3,72),e.YNc(4,be,2,0,"ng-container",73),e.YNc(5,ve,2,0,"ng-container",73),e.YNc(6,ye,2,0,"ng-container",73),e.YNc(7,ke,2,0,"ng-container",73),e.YNc(8,Te,2,0,"ng-container",73),e.BQk(),e.qZA()()()),2&o){const t=e.oxw(2);e.xp6(3),e.Q6J("ngSwitch",t.selectedEntityType.value),e.xp6(1),e.Q6J("ngSwitchCase",t.enumEntityType.Jobber),e.xp6(1),e.Q6J("ngSwitchCase",t.enumEntityType.PitOperation),e.xp6(1),e.Q6J("ngSwitchCase",t.enumEntityType.TruckingFleet),e.xp6(1),e.Q6J("ngSwitchCase",t.enumEntityType.SoloTrucker),e.xp6(1),e.Q6J("ngSwitchCase",t.enumEntityType.FleetTrucker)}}function Fe(o,c){if(1&o){const t=e.EpF();e.TgZ(0,"div",4)(1,"div",5)(2,"div",6)(3,"button",7),e.NdJ("click",function(){e.CHM(t);const r=e.oxw();return e.KtG(r.goBack())}),e._UZ(4,"ion-icon",8),e.qZA(),e._UZ(5,"ion-img",9),e.qZA(),e.YNc(6,he,6,0,"div",10),e.YNc(7,Ce,7,0,"div",10),e.qZA(),e.YNc(8,xe,109,0,"div",11),e.YNc(9,Ze,9,6,"ion-grid",1),e.qZA()}if(2&o){const t=e.oxw();e.xp6(6),e.Q6J("ngIf",null===t.selectedEntityType.value),e.xp6(1),e.Q6J("ngIf",null!==t.selectedEntityType.value),e.xp6(1),e.Q6J("ngIf",null===t.selectedEntityType.value),e.xp6(1),e.Q6J("ngIf",null!==t.selectedEntityType.value)}}let Oe=(()=>{class o{constructor(t,n,r,s,u){this.router=t,this.route=n,this.entityBaseService=r,this.sharedService=s,this.navController=u,this.selectedEntityType=new i.NI(null,i.kI.required),this.enumEntityType=h.p}get entityTypeKeys(){var t=Object.keys(h.p);return t.slice(t.length/2,t.length-1)}goBack(){null!==this.selectedEntityType.value?this.selectedEntityType.setValue(null):this.navController.back()}selectEntityType(t){this.selectedEntityType.setValue(t)}ngOnInit(){this.destroySubs=new T.x,this.route.queryParams.pipe((0,C.R)(this.destroySubs)).subscribe(t=>{if(t.type){const r={jobber:h.p.Jobber,pit:h.p.PitOperation,solo:h.p.SoloTrucker,fleet:h.p.TruckingFleet,"fleet-driver":h.p.FleetTrucker}[t.type];r&&this.selectedEntityType.setValue(r)}}),this.sharedService.currentUser$.pipe((0,C.R)(this.destroySubs)).subscribe({next:t=>{console.log("EntityFormContentComponent--\x3engOnInit userDocVal: ",t),this.curUserDoc=t}})}pitRedirect(){}jobberRedirect(){this.router.navigate(["./jobber-sign-up-form.component.html"])}fleetRedirect(){this.router.navigate(["app-trucking-company-sign-up-form"])}soloRedirect(){this.router.navigate(["./solo-trucker-sign-up-form.component.html"])}entityDataListener(t){var n=this;return(0,_.Z)(function*(){if(n.curUserDoc){let r={...t,pocEmail:n.curUserDoc.email,pocFullName:n.curUserDoc.name+" "+n.curUserDoc.surname,pocPhone:n.curUserDoc.phoneNo,userId:n.curUserDoc.uid,userDocId:n.curUserDoc.docId,accountBalance:0,totalEarned:0,completedJobCount:0},s=yield n.entityBaseService.createEntityDocument(r);s.isSuccessful?(yield n.sharedService.showToastr({color:"success",duration:2e3,message:"Your Account Has Been Created"}),n.sharedService.startEntityDataSubscription(s.entityId),n.router.navigate(["/notifications-permission"],{replaceUrl:!0,queryParams:{next:v.d[t.entityType]}})):yield n.sharedService.showToastr({color:"danger",duration:2e3,message:"Something Went Wrong. Please Try Again."})}else console.log("Entity Data Retrieved But curUserDocument Not Found!")})()}ngOnDestroy(){this.destroySubs.next(!0),this.destroySubs.complete(),this.destroySubs=null}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(m.F0),e.Y36(m.gz),e.Y36(Z.L),e.Y36(y.V),e.Y36(a.SH))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-entity-form-content"]],decls:4,vars:3,consts:[["fullscreen","true"],[4,"ngIf"],["class","page-container",4,"ngIf"],[3,"backRequested"],[1,"page-container"],[1,"header-section"],[1,"header-top-row"],[1,"back-button",3,"click"],["name","chevron-back-outline"],["src","/assets/images/shovelminilogo.png",1,"header-logo"],["class","title-block",4,"ngIf"],["class","entity-cards-container",4,"ngIf"],[1,"title-block"],[1,"page-title"],[1,"title-circle"],[1,"page-subtitle"],[1,"title-underline"],[1,"entity-cards-container"],["button","true",1,"entity-card","builder",3,"click"],[1,"entity-card-header"],[1,"entity-card-text"],[1,"entity-card-icon"],["xmlns","http://www.w3.org/2000/svg","width","24","height","24","viewBox","0 0 24 24","fill","none"],["clip-path","url(#clip0_3111_32683)"],["d","M12 12C14.7614 12 17 9.76142 17 7C17 4.23858 14.7614 2 12 2C9.23858 2 7 4.23858 7 7C7 9.76142 9.23858 12 12 12Z","stroke","#fff","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["opacity","0.4","d","M3.41003 22C3.41003 18.13 7.26003 15 12 15C12.96 15 13.89 15.13 14.76 15.37","stroke","#fff","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M22 18C22 18.75 21.79 19.46 21.42 20.06C21.21 20.42 20.94 20.74 20.63 21C19.93 21.63 19.01 22 18 22C16.54 22 15.27 21.22 14.58 20.06C14.21 19.46 14 18.75 14 18C14 16.74 14.58 15.61 15.5 14.88C16.19 14.33 17.06 14 18 14C20.21 14 22 15.79 22 18Z","stroke","#fff","stroke-width","1.5","stroke-miterlimit","10","stroke-linecap","round","stroke-linejoin","round"],["d","M16.4399 17.9995L17.4299 18.9895L19.5599 17.0195","stroke","#fff","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["id","clip0_3111_32683"],["width","24","height","24","fill","white"],["button","true",1,"entity-card","pit",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","24","height","24","viewBox","0 0 24 24","fill","#fff"],["clip-path","url(#clip0_4418_7064)"],["d","M15.0002 22.75C14.7302 22.75 14.4802 22.6 14.3502 22.37C14.2202 22.14 14.2202 21.85 14.3602 21.62L15.4102 19.87C15.6202 19.51 16.0802 19.4 16.4402 19.61C16.8002 19.82 16.9102 20.28 16.7002 20.64L16.4302 21.09C19.1902 20.44 21.2602 17.9
16 21.2602 15C21.2602 14.59 21.6002 14.25 22.0102 14.25C22.4202 14.25 22.7602 14.59 22.7602 15C22.7502 19.27 19.2702 22.75 15.0002 22.75Z","fill","white",2,"fill","var(--fillg)"],["d","M2 9.75C1.59 9.75 1.25 9.41 1.25 9C1.25 4.73 4.73 1.25 9 1.25C9.27 1.25 9.51999 1.4 9.64999 1.63C9.77999 1.86 9.78 2.15 9.64 2.38L8.59 4.13C8.38 4.49001 7.92 4.60001 7.56 4.39001C7.2 4.18001 7.09 3.71999 7.3 3.35999L7.57001 2.90997C4.81001 3.55997 2.74001 6.04 2.74001 9C2.75001 9.41 2.41 9.75 2 9.75Z","fill","white",2,"fill","var(--fillg)"],["d","M17.6799 7.50061C17.5499 7.50061 17.4199 7.47063 17.2999 7.40063L13.3299 5.10058C12.9699 4.89058 12.8499 4.43061 13.0599 4.07061C13.2699 3.71061 13.7299 3.59059 14.0799 3.80059L17.6799 5.88061L21.2499 3.8106C21.6099 3.6006 22.0699 3.73062 22.2699 4.08062C22.4799 4.44062 22.3499 4.90059 21.9999 5.11059L18.0499 7.39062C17.9399 7.46062 17.8099 7.50061 17.6799 7.50061Z","fill","white",2,"fill","var(--fillg)"],["d","M17.6802 11.5703C17.2702 11.5703 16.9302 11.2303 16.9302 10.8203V6.74023C16.9302 6.33023 17.2702 5.99023 17.6802 5.99023C18.0902 5.99023 18.4302 6.33023 18.4302 6.74023V10.8203C18.4302 11.2403 18.0902 11.5703 17.6802 11.5703Z","fill","white",2,"fill","var(--fillg)"],["d","M17.6799 11.7492C17.2199 11.7492 16.7499 11.6492 16.3799 11.4392L13.9799 10.1092C13.1999 9.6792 12.6099 8.66924 12.6099 7.77924V5.2392C12.6099 4.3392 13.1999 3.33924 13.9899 2.89924L16.3899 1.56922C17.1299 1.15922 18.2399 1.15922 18.9899 1.56922L21.3899 2.89924C22.1699 3.32924 22.7599 4.33919 22.7599 5.22919V7.76923C22.7599 8.66923 22.1699 9.66919 21.3899 10.0992L18.9899 11.4292C18.5999 11.6492 18.1399 11.7492 17.6799 11.7492ZM17.1099 2.86921L14.7099 4.19922C14.4099 4.36922 14.1099 4.87918 14.1099 5.21918V7.75922C14.1099 8.10922 14.4099 8.61924 14.7099 8.77924L17.1099 10.1192C17.3999 10.2792 17.9599 10.2792 18.2499 10.1192L20.6499 8.78919C20.9499 8.61919 21.2499 8.10923 21.2499 7.76923V5.22919C21.2499 4.87919 20.9499 4.36923 20.6499 4.20923L18.2499 2.87922C17.9599 2.70922 17.3899 2.70921 17.1099 2.86921Z","fill","white",2,"fill","var(--fillg)"],["d","M6.32002 18.5006C6.19002 18.5006 6.06002 18.4706 5.94002 18.4006L1.97002 16.1006C1.61002 15.8906 1.49001 15.4306 1.70001 15.0706C1.91001 14.7106 2.37002 14.5906 2.72002 14.8006L6.32002 16.8806L9.89001 14.8106C10.25 14.6006 10.71 14.7306 10.91 15.0806C11.12 15.4406 10.99 15.9006 10.64 16.1106L6.69002 18.3906C6.58002 18.4606 6.45002 18.5006 6.32002 18.5006Z","fill","white",2,"fill","var(--fillg)"],["d","M6.31982 22.5703C5.90982 22.5703 5.56982 22.2303 5.56982 21.8203V17.7402C5.56982 17.3302 5.90982 16.9902 6.31982 16.9902C6.72982 16.9902 7.06982 17.3302 7.06982 17.7402V21.8203C7.06982 22.2403 6.73982 22.5703 6.31982 22.5703Z","fill","white",2,"fill","var(--fillg)"],["d","M6.32001 22.7509C5.86001 22.7509 5.39 22.6509 5.02 22.4409L2.62 21.1109C1.84 20.6809 1.25 19.6709 1.25 18.7809V16.2409C1.25 15.3409 1.84 14.3409 2.62 13.9109L5.02 12.5809C5.76 12.1709 6.88 12.1709 7.62 12.5809L10.02 13.9109C10.8 14.3409 11.39 15.3509 11.39 16.2409V18.7809C11.39 19.6809 10.8 20.6809 10.01 21.1209L7.61 22.4509C7.25 22.6509 6.79001 22.7509 6.32001 22.7509ZM5.75 13.8709L3.35001 15.2009C3.05001 15.3709 2.75 15.8809 2.75 16.2209V18.7609C2.75 19.1109 3.05001 19.6209 3.35001 19.7809L5.75 21.1109C6.04 21.2709 6.6 21.2709 6.89 21.1109L9.28999 19.7809C9.58999 19.6109 9.89 19.1009 9.89 18.7609V16.2209C9.89 15.8709 9.58999 15.3609 9.28999 15.2009L6.89 13.8609C6.61 13.7109 6.04 13.7109 5.75 13.8709Z","fill","white",2,"fill","var(--fillg)"],["id","clip0_4418_7064"],["button","true",1,"entity-card","owner-operator",3,"click"],["clip-path","url(#clip0_4418_3397)"],["d","M11.9998 14H12.9998C14.0998 14 14.9998 13.1 14.9998 12V2H5.99976C4.49976 2 3.18977 2.82999 2.50977 4.04999","stroke","#fff","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M2 17C2 18.66 3.34 20 5 20H6C6 18.9 6.9 18 8 18C9.1 18 10 18.9 10 20H14C14 18.9 14.9 18 16 18C17.1 18 18 18.9 18 20H19C20.66 20 22 18.66 22 17V14H19C18.45 14 18 13.55 18 13V10C18 9.45 18.45 9 19 9H20.29L18.58 6.01001C18.22 5.39001 17.56 5 16.84 5H15V12C15 13.1 14.1 14 13 14H12","stroke","#fff","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M8 22C9.1045
17 22 10 21.1046 10 20C10 18.8954 9.10457 18 8 18C6.89543 18 6 18.8954 6 20C6 21.1046 6.89543 22 8 22Z","stroke","#fff","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M16 22C17.1046 22 18 21.1046 18 20C18 18.8954 17.1046 18 16 18C14.8954 18 14 18.8954 14 20C14 21.1046 14.8954 22 16 22Z","stroke","#fff","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M22 12V14H19C18.45 14 18 13.55 18 13V10C18 9.45 18.45 9 19 9H20.29L22 12Z","stroke","#fff","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M2 8H8","stroke","#fff","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M2 11H6","stroke","#fff","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M2 14H4","stroke","#fff","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["id","clip0_4418_3397"],["button","true",1,"entity-card","fleet",3,"click"],["clip-path","url(#clip0_4418_8281)"],["d","M14 2.92V11.23C14 12.25 13.17 13.08 12.15 13.08H3C2.45 13.08 2 12.63 2 12.08V5.69C2 3.65 3.65 2 5.69 2H13.07C13.59 2 14 2.41 14 2.92Z","fill","white",2,"fill","var(--fillg)"],["d","M21.5 15.5C21.78 15.5 22 15.72 22 16V17C22 18.66 20.66 20 19 20C19 18.35 17.65 17 16 17C14.35 17 13 18.35 13 20H11C11 18.35 9.65 17 8 17C6.35 17 5 18.35 5 20C3.34 20 2 18.66 2 17V15C2 14.45 2.45 14 3 14H12.5C13.88 14 15 12.88 15 11.5V6C15 5.45 15.45 5 16 5H16.84C17.56 5 18.22 5.39 18.58 6.01L19.22 7.13C19.31 7.29 19.19 7.5 19 7.5C17.62 7.5 16.5 8.62 16.5 10V13C16.5 14.38 17.62 15.5 19 15.5H21.5Z","fill","white",2,"fill","var(--fillg)"],["d","M8 22C9.10457 22 10 21.1046 10 20C10 18.8954 9.10457 18 8 18C6.89543 18 6 18.8954 6 20C6 21.1046 6.89543 22 8 22Z","fill","white",2,"fill","var(--fillg)"],["d","M16 22C17.1046 22 18 21.1046 18 20C18 18.8954 17.1046 18 16 18C14.8954 18 14 18.8954 14 20C14 21.1046 14.8954 22 16 22Z","fill","white",2,"fill","var(--fillg)"],["d","M22 12.53V14H19C18.45 14 18 13.55 18 13V10C18 9.45 18.45 9 19 9H20.29L21.74 11.54C21.91 11.84 22 12.18 22 12.53Z","fill","white",2,"fill","var(--fillg)"],["id","clip0_4418_8281"],["button","true",1,"entity-card","fleet-driver",3,"click"],["opacity","0.4","d","M3.41003 22C3.41003 18.13 7.26003 15 12 15","stroke","#fff","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M18 21L20 23L23 19","stroke","#fff","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M18 15C15.79 15 14 16.79 14 19C14 21.21 15.79 23 18 23C20.21 23 22 21.21 22 19C22 16.79 20.21 15 18 15Z","stroke","#fff","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],[1,"entity-card-notice"],["button","true",1,"entity-card","excavator-operator",3,"click"],["d","M22.9999 17.9091C23.0199 18.6591 22.8199 19.3691 22.4599 19.9791C22.2599 20.3391 21.9899 20.6691 21.6899 20.9391C20.9999 21.5791 20.0899 21.9691 19.0799 21.9991C17.6199 22.0291 16.3299 21.2791 15.6199 20.1291C15.2399 19.5391 15.0099 18.8291 14.9999 18.0791C14.9699 16.8191 15.5299 15.6791 16.4299 14.9291C17.1099 14.3691 17.9699 14.0191 18.9099 13.9991C21.1199 13.9491 22.9499 15.6991 22.9999 17.9091Z","stroke","#fff","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M17.4399 18.0288L18.45 18.9888L20.5399 16.9688","stroke","#fff","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M3.17004 7.43945L12 12.5494L20.77 7.46942","stroke","#fff","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M12 21.6091V12.5391","stroke","#fff","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M21.61 9.17V14.83C21.6 14.88 21.61 14.92 21.6 14.97C20.9 14.36 20 14 19 14C18.06 14 17.19 14.33 16.5 14.88C15.58 15.61 15 16.74 15 18C15 18.75 15.21 19.46 15.58 20.06C15.67 20.22 15.78 20.37 15.9 20.51L14.07 21.52C12.93 22.16 11.07 22.16 9.92999 21.52L4.59 18.56C3.38 17.89 2.39001 16.21 2.39001 14.83V9.17C2.39001 7.79 3.38 6.11002 4.59 5.44002L9.92999 2.48C11.07 1.84 12.93 1.84 14.07 2.48L19.41 5.44002C20.62 6.11002 21.61 7.79 21.61 9.17Z","stroke","#fff","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],[3,"ngSwitch"],[4,"ngSwitchCase"],[3,"jobberData"],[3,"pitOperationData"],[3,"truckingFleetData"],[3,"soloTruckerData"]],template:function(t,n){1&t&&(e.TgZ(0,"ion-content",0),e.YNc(1,fe,2,0,"ng-container",1),e.YNc(2,_e,2,0,"ng-container",1),e.YNc(3,Fe,10,4,"div",2),e.qZA()),2&t&&(e.xp6(1),e.Q6J("ngIf",n.selectedEntityType.value===n.enumEntityType.FleetTrucker),e.xp6(1),e.Q6J("ngIf",n.selectedEntityType.value===n.enumEntityType.PitOperator),e.xp6(1),e.Q6J("ngIf",n.selectedEntityType.value!==n.enumEntityType.FleetTrucker&&n.selectedEntityType.value!==n.enumEntityType.PitOperator))},dependencies:[p.O5,p.RF,p.n9,a.PM,a.Zi,a.tO,a.Dq,a.wI,a.W2,a.jY,a.gu,a.Xz,a.Nd,U,I,z,J,ee,me],styles:["ion-card-subtitle[_ngcontent-%COMP%]{--color: white}ion-card-title[_ngcontent-%COMP%]{--color: white}.page-title[_ngcontent-%COMP%]{font-size:20px;font-weight:700;color:#0f465a;margin:0}
1.title-circle[_ngcontent-%COMP%]{display:inline-block;padding:8px 20px;border:2px solid #FC4E46;border-radius:12px;font-weight:700}.ion-card-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.center-right[_ngcontent-%COMP%]{background-color:#b1afaf56;font-size:50px;padding:20%;color:#fff;border-radius:8px;margin-right:30px}.header[_ngcontent-%COMP%]{margin-left:10px}.line[_ngcontent-%COMP%]{font-size:65px;color:red;padding-left:0;margin-left:0%}ion-button[_ngcontent-%COMP%]{--background: #0F465A}.roundedInput[_ngcontent-%COMP%]{--border-color: #e7e5e5;--border-radius: 8px;--border-width: 1px;--box-shadow: 2px grey;--highlight-height: 0;--background: white}*[_ngcontent-%COMP%]{font-family:Montserrat,system-ui;font-optical-sizing:auto;font-weight:400;font-style:normal}ion-content[_ngcontent-%COMP%]{--background: #ffffff}.page-container[_ngcontent-%COMP%]{max-width:600px;margin:0 auto}.header-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:60px 24px 24px;background:#ffffff}.header-top-row[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.back-button[_ngcontent-%COMP%]{background:transparent;border:none;padding:0;cursor:pointer}.back-button[_ngcontent-%COMP%]   ion-icon[_ngcontent-%COMP%]{font-size:24px;color:#0f465a}.header-logo[_ngcontent-%COMP%]{width:50px;height:auto}.title-block[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.page-subtitle[_ngcontent-%COMP%]{font-weight:400;font-size:13px;color:#0f465a;margin:16px 0 0;align-self:flex-start}.entity-cards-container[_ngcontent-%COMP%]{padding:0 24px 100px}.entity-card[_ngcontent-%COMP%]{border-radius:12px;margin:12px 0;--background: transparent}.entity-card.builder[_ngcontent-%COMP%]{background:#3BADD4}.entity-card.pit[_ngcontent-%COMP%]{background:#0F465A}.entity-card.owner-operator[_ngcontent-%COMP%]{background:#FC4E46}.entity-card.fleet[_ngcontent-%COMP%]{background:#39373C}.entity-card.fleet-driver[_ngcontent-%COMP%]{background:#FFA500}.entity-card.excavator-operator[_ngcontent-%COMP%]{background:#009B5C}.entity-card-notice[_ngcontent-%COMP%]{font-size:11px;color:#ffffffd9;font-weight:600;text-align:center;padding:6px 16px 14px;letter-spacing:.04em}.entity-card-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:16px}.entity-card-text[_ngcontent-%COMP%]   ion-card-subtitle[_ngcontent-%COMP%]{color:#fffc;font-size:12px;text-transform:none;margin-bottom:4px}.entity-card-text[_ngcontent-%COMP%]   ion-card-title[_ngcontent-%COMP%]{color:#fff;font-size:18px;font-weight:700}.entity-card-icon[_ngcontent-%COMP%]{background:rgba(255,255,255,.2);border-radius:8px;padding:12px;display:flex;align-items:center;justify-content:center}.entity-card-icon[_ngcontent-%COMP%]   ion-icon[_ngcontent-%COMP%]{font-size:28px;color:#fff}.button-container[_ngcontent-%COMP%]{position:fixed;bottom:0;left:0;right:0;padding:16px 24px;background:#ffffff;max-width:600px;margin:0 auto}.continue-button[_ngcontent-%COMP%]{--background: #0F465A;--background-hover: #0d3a4a;--border-radius: 12px;--padding-top: 16px;--padding-bottom: 16px;font-size:16px;font-weight:600;text-transform:none;height:52px;margin:0}"]}),o})();const Ue=[{path:"",component:(()=>{class o{constructor(t){this.sharedService=t}ngOnInit(){}ionViewWillEnter(){this.sharedService.dismissLoadingElement()}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(y.V))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-entity-form"]],decls:2,vars:0,consts:[["fullscreen","true"]],template:function(t,n){1&t&&(e.TgZ(0,"ion-content",0),e._UZ(1,"app-entity-form-content"),e.qZA())},dependencies:[a.W2,Oe]}),o})()}];let we=(()=>{class o{}return o.\u0275fac=function(t){return new(t||o)}
1,o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({imports:[m.Bz.forChild(Ue),m.Bz]}),o})();var Me=l(7468);let Pe=(()=>{class o{}return o.\u0275fac=function(t){return new(t||o)},o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({imports:[p.ez,i.u5,a.Pc,we,Me.I]}),o})()},7230:(F,b,l)=>{l.d(b,{_:()=>Z});var p=l(5861),i=l(529),a=l(7323),m=l(2634),e=l(262),y=l(9646),_=l(3900),T=l(8996),C=l(7359),v=l(2340),h=l(8256);let Z=(()=>{class k{constructor(d,g,f){this.firestore=d,this.http=g,this.afAuth=f}getFleetInvitations(d){const g=(0,m.collection)(this.firestore,`${C.Ym}/${d}/${C.Mo}`),f=(0,m.query)(g,(0,m.where)("type","==","fleet-invitation"));return(0,m.collectionData)(f,{idField:"docId"}).pipe((0,e.K)(x=>{if("permission-denied"===x?.code||x?.message?.includes("Missing or insufficient permissions"))return(0,y.of)([]);throw x}))}getAuthToken(){return(0,a.fD)(this.afAuth).pipe((0,_.w)(d=>{if(d)return(0,T.D)(d.getIdToken());throw new Error("No Authorization Token. Unauthorized")}))}acceptInvitation(d){return this.getAuthToken().pipe((0,_.w)(g=>{const f=new i.WM({"Content-Type":"application/json",Authorization:`Bearer ${g}`});return this.http.post(v.N.cloudEndpoint+"accept-fleet-invitation",{invitationId:d},{headers:f})}))}acceptFleetInviteByCode(d){return this.getAuthToken().pipe((0,_.w)(g=>{const f=new i.WM({"Content-Type":"application/json",Authorization:`Bearer ${g}`});return this.http.post(v.N.cloudEndpoint+"accept-fleet-invitation",d,{headers:f})}))}declineInvitation(d){return this.getAuthToken().pipe((0,_.w)(g=>{const f=new i.WM({"Content-Type":"application/json",Authorization:`Bearer ${g}`});return this.http.post(v.N.cloudEndpoint+"decline-fleet-invitation",{invitationId:d},{headers:f})}))}getOperatorInvitations(d){const g=(0,m.collection)(this.firestore,`${C.Ym}/${d}/${C.Mo}`),f=(0,m.query)(g,(0,m.where)("type","==","operator-invitation"));return(0,m.collectionData)(f,{idField:"docId"}).pipe((0,e.K)(x=>{if("permission-denied"===x?.code||x?.message?.includes("Missing or insufficient permissions"))return(0,y.of)([]);throw x}))}acceptOperatorInvitation(d){return this.getAuthToken().pipe((0,_.w)(g=>{const f=new i.WM({"Content-Type":"application/json",Authorization:`Bearer ${g}`});return this.http.post(v.N.cloudEndpoint+"accept-operator-invitation",{invitationId:d},{headers:f})}))}acceptOperatorInviteByCode(d){return this.getAuthToken().pipe((0,_.w)(g=>{const f=new i.WM({"Content-Type":"application/json",Authorization:`Bearer ${g}`});return this.http.post(v.N.cloudEndpoint+"accept-operator-invitation",{inviteCode:d},{headers:f})}))}declineOperatorInvitation(d){return this.getAuthToken().pipe((0,_.w)(g=>{const f=new i.WM({"Content-Type":"application/json",Authorization:`Bearer ${g}`});return this.http.post(v.N.cloudEndpoint+"decline-operator-invitation",{invitationId:d},{headers:f})}))}markAsRead(d,g){var f=this;return(0,p.Z)(function*(){const x=(0,m.doc)(f.firestore,`${C.Ym}/${d}/${C.Mo}/${g}`),{updateDoc:w}=yield Promise.resolve().then(l.bind(l,2634));yield w(x,{read:!0})})()}deleteNotification(d,g){var f=this;return(0,p.Z)(function*(){const x=(0,m.doc)(f.firestore,`${C.Ym}/${d}/${C.Mo}/${g}`);yield(0,m.deleteDoc)(x)})()}}return k.\u0275fac=function(d){return new(d||k)(h.LFG(m.Firestore),h.LFG(i.eN),h.LFG(a.gx))},k.\u0275prov=h.Yz7({token:k,factory:k.\u0275fac,providedIn:"root"}),k})()},8558:(F,b,l)=>{l.d(b,{p:()=>p});var p=(()=>{return(i=p||(p={}))[i.Jobber=0]="Jobber",i[i.PitOperation=1]="PitOperation",i[i.SoloTrucker=2]="SoloTrucker",i[i.TruckingFleet=3]="TruckingFleet",i[i.FleetTrucker=4]="FleetTrucker",i[i.PitOperator=6]="PitOperator",i[i.JobberOperator=7]="JobberOperator",p;var i})()},5589:(F,b,l)=>{l.d(b,{n:()=>p});var p=(()=>{return(i=p||(p={}))[i.Initial=0]="Initial",i[i.Active=1]="Active",i[i.Paused=2]="Paused",p;var i})()},6492:(F,b,l)=>{l.d(b,{h:()=>p});var p=(()=>{return(i=p||(p={}))[i.NotOnProject=-1]="NotOnProject",i[i.Initial=0]="Initial",i[i.WaitingForOperator=1]="WaitingForOperator",i[i.CurrentlyCarrying=2]="CurrentlyCarrying",i[i.ConfirmedByOperator=3]="ConfirmedByOperator",i[i.DoneForToday=4]="DoneForToday",i[i.WaitingForJobSite=5]="WaitingForJobSite",i[i.ConfirmedByJobSite=6]="ConfirmedByJobSite",p;var i})()},6489:(F,b,l)=>{l.d(b,{I:()=>p});var p=(()=>{return(i=p||(p={}))[i.Purgatory=-1]="Purgatory",i[i.Free=0]="Free",i[i.Employed=1]="Employed",i[i.ProjectPaused=2]="ProjectPaused",i[i.DoneForToday=3]="DoneForToday",p;var i})()}}]);

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.