1(self.webpackChunkapp=self.webpackChunkapp||[]).push([[3724],{16054(d,c,i){"use strict";i.d(c,{IconInformationModalPageModule:()=>S});var l=i(31635),s=i(23214),a=i(16213),h=i(89417),m=i(64211),g=i(25207),O=i(37486);const o=[{path:"",component:O.k}];let f=class{};f=(0,l.Cg)([(0,s.UQu)({imports:[g.iI.forChild(o)],exports:[g.iI]})],f);let S=class{};S=(0,l.Cg)([(0,s.UQu)({imports:[a.MD,h.YN,m.bv,f,O.k],exports:[O.k]})],S)},37486(d,c,i){"use strict";i.d(c,{k:()=>f});var l=i(10467),s=i(31635);var o,h=i(2057),m=i.n(h),g=i(23214),O=i(64211);let f=(class{constructor(){this.tappedCloseButton=new g.bkB,this.closeEventEmitter=new g.bkB}closeModal(){var E=this;return(0,l.A)(function*(){E.tappedCloseButton.emit()})()}static#t=o=()=>(this.ctorParameters=()=>[],this.propDecorators={tappedCloseButton:[{type:g.k7i}]},this)},o());f=(0,s.Cg)([(0,g.uAl)({selector:"app-icon-information-modal",template:'<div class="background">\n <div class="modal">\n <ion-row>\n <ion-item class="title-row" lines="full">\n <ion-label class="title-label">Opportunity Icons Description</ion-label>\n </ion-item>\n </ion-row>\n <ion-row>\n <ion-item lines="full">\n <div class="subtitle-row">\n <p>\n <img src="assets/Images/quickTime.svg" class="wait-list-icon" size="medium" alt="Quick time icon"/> This opportunity is available now.\n </p>\n <p>\n <ion-icon name="hourglass-outline" class="requested" size="medium"></ion-icon> You have requested this opportunity.\n </p> \n No Icon shown:\n <ul class="no-icon-shown">\n <li>This opportunity is not currently open, but can be requested.</li>\n </ul>\n </div>\n </ion-item>\n </ion-row>\n <ion-button (click)="closeModal()" (keypress)="closeModal()">Close</ion-button>\n </div>\n</div>\n',imports:[O.bv],styles:[m()]}),(0,s.Sn)("design:paramtypes",[])],f)},13724(d,c,i){"use strict";i.d(c,{OpportunitiesPageModule:()=>U});var l=i(31635),s=i(23214),a=i(16213),h=i(89417),m=i(64211),g=i(25207),O=i(8542),o=i(10467);var S=i(32646),E=i.n(S),J=i(20046);var N,q=i(71603),F=i.n(q),b=i(36388),A=i(17945),P=i(7575),C=i(28894),p=i(88254),y=i(51239),H=i(96354),w=i(7673);let I=(class{constructor(t,e){this.apiService=t,this.authService=e,this.identityKey="",this.labelAttribute="description",this.cities=[]}initialize(){var t=this;return(0,o.A)(function*(){t.identityKey=yield t.authService.getUserIdentitityKey()})()}getResults(t){let e;if(this.cities=[],null!==t&&!0===this.isNumber(t)&&5===t.length)return(0,w.of)(this.cities);if(0===this.cities.length){let n={keyword:t};e=this.apiService.citiesGet(n)}else e=(0,w.of)(this.cities);return e.pipe((0,H.T)(n=>n.filter(Boolean)))}isNumber(t){return!Number.isNaN(Number.parseFloat(t))&&!Number.isNaN(t-0)}turncateString(t,e){return t.length<=e?t:t.slice(0,e)+"..."}static#t=N=()=>(this.ctorParameters=()=>[{type:C.By},{type:y.u}],this)},N());var B;I=(0,l.Cg)([(0,s._qm)(),(0,l.Sn)("design:paramtypes",[C.By,y.u])],I);let L=(class{constructor(t,e,n,r,u){this.route=t,this.loadingUtility=e,this.apiService=n,this.authService=r,this.citiesAutoCompleteService=u,this.driverId="",this.SELECTED_OPPORTUNITY_KEY="selected-opportunity",this.OPPORTUNITIES_KEY="requested-opportunities",this.USER_OPERATION_KEY="user-operation",this.OPPORTUNITIES_PAGE_SELECTED_TAB_KEY="opportunities-page-selected-tab",this.requestedOpportunitiesListView=null,this.subscriptions$=new P.a}ngOnChanges(t){t.loadCareerRequestsApi?.currentValue&&this.loadRequestOppurtuntiesData()}ngOnInit(){this.initializeComponent()}initializeComponent(){var t=this;return(0,o.A)(function*(){yield t.loadRequestOppurtuntiesData()})()}loadRequestOppurtuntiesData(){var t=this;return(0,o.A)(function*(){const e=yield p.p.get({key:t.OPPORTUNITIES_KEY});yield p.p.set({key:t.OPPORTUNITIES_PAGE_SELECTED_TAB_KEY,value:"1"}),t.driverId=yield t.authService.getUserIdentitityKey(),e?.value?.length>0?(t.requestedOpportunitiesListView=JSON.parse(e.value),t.getOpportunitiesRequestedByDriver(t.driverId)):(t.loadingUtility.hideLoader(),yield t.loadingUtility.showLoader("Loading requested Career Opportunities..."),t.getOpportunitiesRequestedByDriver(t.driverId))})()}showJobOpportunity(t){var e=this;return(0,o.A)(function*(){null!==t&&(yield p.p.remove({key:e.SELECTED_OPPORTUNITY_KEY}),yield p.p.set({key:e.SELECTED_OPPORTUNITY_KEY,value:JSON.stringify(t)}),yield p.p.remove({key:e.USER_OPERATION_KEY}),yield p.p.set({key:e.USER_OPERATION_KEY,value:"cancel"}),yield p.p.remove({key:e.OPPORTUNITIES_PAGE_SELECTED_TAB_KEY}),yield p.p.set({key:e.OPPORTUNITIES_PAGE_SELECTED_TAB_KEY,value:"1"}),yield e.route.navigate(["/opportunities/job-opportunity-details"]))})()}getOpportunitiesRequestedByDriver(t){var e=this;return(0,o.A)(function*(){e.loadingUtility.hideLoader(),e.loadingUtility.showLoader("Loading requested Career Opportunities...");let n={driverId:t};e.subscriptions$.sink=e.apiService.driveropportunitiesGet(n).subscribe({next:r=>{e.requestedOpportunitiesListView=r,e.loadingUtility.hideLoader(),p.p.remove({key:e.OPPORTUNITIES_KEY}),p.p.set({key:e.OPPORTUNITIES_KEY,value:JSON.stringify(e.requestedOpportunitiesListView)})},error:r=>{p.p.remove({key:e.OPPORTUNITIES_KEY}),e.loadingUtility.hideLoader()}})})()}retrieveOpportunitiesRequestedByDriver(t){var e=this;return(0,o.A)(function*(){e.loadingUtility.hideLoader(),yield e.loadingUtility.showLoader("Loading requested Career Opportunities...");let n={driverId:t};e.subscriptions$.sink=e.apiService.driveropportunitiesGet(n).subscribe({next:r=>{e.requestedOpportunitiesListView=r,e.loadingUtility.hideLoader(),p.p.remove({key:e.OPPORTUNITIES_KEY}),p.p.set({key:e.OPPORTUNITIES_KEY,value:JSON.stringify(e.requestedOpportunitiesListView)})},error:r=>{e.requestedOpportunitiesListView=null,p.p.remove({key:e.OPPORTUNITIES_KEY}),e.loadingUtility.hideLoader()}})})()}turncateString(t,e){return this.citiesAutoCompleteService.turncateString(t,e)}ngOnDestroy(){this.subscriptions$.unsubscribe()}static#t=B=()=>(this.ctorParameters=()=>[{type:b.Ix},{type:A.N},{type:C.By},{type:y.u},{type:I}],this.propDecorators={loadCareerRequestsApi:[{type:s.pde}]},this)},B());L=(0,l.Cg)([(0,s.uAl)({selector:"app-job-requests-listing",template:'<div class="gray-panel">\n <div class="no-data-message" *ngIf="requestedOpportunitiesListView && requestedOpportunitiesListView.length === 0">No requests found</div>\n <ion-list class="list" *ngIf="requestedOpportunitiesListView !== null && requestedOpportunitiesListView.length > 0">\n <ion-item class="pointer" detail="true"\n *ngFor="let opportunityItem of requestedOpportunitiesListView; let i = index"\n (click)="showJobOpportunity(opportunityItem)" (keypress)="showJobOpportunity(opportunityItem)">\n <ion-label>\n <div class="opportunity-name">{{turncateString(opportunityItem.name, 33)}}</div>\n <ion-item-sliding>\n <p class="ion-text-wrap opportunity-description">\n {{turncateString(opportunityItem.description, 200)}}\n </p>\n </ion-item-sliding>\n </ion-label>\n <div slot="end" style="margin-left: 0px;">
1\n <span *ngIf="opportunityItem.isHotSheet === true">\n <img src="assets/Images/quickTime.svg" class="wait-list-icon" size="medium" alt="Quick time icon">\n </span>\n <span>\n <ion-icon name="hourglass-outline" class="requested" size="medium"></ion-icon>\n </span>\n </div>\n </ion-item>\n </ion-list>\n</div>',imports:[a.bT,m.bv,a.Sq],styles:[F()]}),(0,l.Sn)("design:paramtypes",[b.Ix,A.N,C.By,y.u,I])],L);var T=i(71631),M=i(50678),W=i(37486);var z,X=i(33823),Z=i.n(X),k=i(35797),_=i(25499),V=i(61955),K=i(61190),Y=i(18561),tt=i(24114),et=i(71049),it=i(77048),j=i(73931);let R=(class{constructor(t,e,n,r,u,at,lt,pt,ut,dt,ct,ht,gt){var mt=this;this.geolocation=t,this.route=e,this.loadingUtility=n,this.citiesAutoCompleteService=r,this.activatedRoute=u,this.platform=at,this._DIAGNOSTIC=lt,this.opportunitiesChangedEventService=pt,this.apiService=ut,this.mapService=dt,this.userStore=ct,this.authService=ht,this.dispatchService=gt,this.OPPORTUNITIES_KEY="initial-opportunities",this.SELECTED_OPPORTUNITY_KEY="selected-opportunity",this.OPPORTUNITIES_PAGE_SELECTED_TAB_KEY="opportunities-page-selected-tab",this.keyword="",this.driverId="",this.initialOpportunitiesListView=null,this.foundOpportunitiesListView=null,this.opportunitiesRequestedByDriver=null,this.opportunitiesSubscriptions$=new P.a,this.subscriptions$=new P.a,this.isLocationEnabled=!1,this.selected=[],this.searchText="",this.suggestedCities=[],this.selectedCity=null,this.mapApiKey="B6ED1A19F456AE45BD0A76E3813CC249",this.hideIonRefresher=new s.bkB,this.activatedRoute.params.subscribe(()=>{this.searchText="",this.suggestedCities=[]}),this.subscriptions$.sink=this.opportunitiesChangedEventService.getObservable().subscribe((0,o.A)(function*(){yield mt.buildOpportunitiesRequestedByDriver(!0)}))}ngOnChanges(t){t.loadCareerListingApi?.currentValue&&(this.searchText?(this.ionAutoInput(this.searchText),this.hideIonRefresher.emit(!0)):this.getUserCurrentCoordinates())}ngOnInit(){this.initializeComponent()}initializeComponent(){var t=this;return(0,o.A)(function*(){const e=yield p.p.get({key:t.OPPORTUNITIES_KEY});yield p.p.set({key:t.OPPORTUNITIES_PAGE_SELECTED_TAB_KEY,value:"0"}),t.driverId=yield t.authService.getUserIdentitityKey(),t.stakeHolderId=yield t.dispatchService.getStackholderId(),yield t.loadingUtility.showLoader("Loading Career Opportunities nearby..."),e?.value?.length>0?(t.initialOpportunitiesListView=JSON.parse(e.value),yield t.getUserCurrentCoordinates(),yield t.getDivisonInfo(t.stakeHolderId)):(yield t.getUserCurrentCoordinates(),yield t.getDivisonInfo(t.stakeHolderId))})()}getDivisonInfo(t){var e=this;return(0,o.A)(function*(){e.subscriptions$.sink=e.userStore.pipe((0,_.Lt)(tt.Ew),(0,it.v)(()=>!0)).subscribe(n=>{e.divisonInfo=n,null===n&&e.userStore.dispatch(new et.K(t.toString()))})})()}isDataAvailable(){return this.initialOpportunitiesListView&&Object.keys(this.initialOpportunitiesListView).length>0}closeAndClearAutoCompleteResults(){this.suggestedCities=[]}loadOpportunitiesNearByFromStorage(){var t=this;return(0,o.A)(function*(){const e=yield p.p.get({key:t.OPPORTUNITIES_KEY});e?.value?.length>0&&(t.initialOpportunitiesListView=JSON.parse(e.value))})()}searchForCity(t){var e=this;return(0,o.A)(function*(){null!=t&&(e.searchText=t.description,yield e.fillListViewWithOpportunitiesMatchingLocation(t),e.suggestedCities=[],e.selectedCity=t)})()}ionAutoInput(t){var e=this;return(0,o.A)(function*(){let n="";n=t.toString(),null!==n&&!0!==e.isNumber(n)&&null===e.selectedCity?n.length>=3?e.opportunitiesSubscriptions$.sink=e.citiesAutoCompleteService.getResults(n).subscribe(function(){var r=(0,o.A)(function*(u){e.suggestedCities=u,e.initialOpportunitiesListView=null});return function(u){return r.apply(this,arguments)}}()):e.suggestedCities=[]:e.searchForCity(e.selectedCity),null!==n&&n.length>=3&&!0===e.isNumber(n)&&(yield e.loadingUtility.showLoader("Loading Career Opportunities..."),yield e.fillListViewWithOpportunitiesMatchingZipcode(n))})()}showJobOpportunity(t){null!==t&&(this.closeAndClearAutoCompleteResults(),p.p.remove({key:this.SELECTED_OPPORTUNITY_KEY}),p.p.set({key:this.SELECTED_OPPORTUNITY_KEY,value:JSON.stringify(t)}),this.route.navigate(["/opportunities/job-opportunity-details"]))}getCurrentPosition(){var t=this;return(0,o.A)(function*(){yield t.geolocation.getCurrentPosition({enableHighAccuracy:!0}).then(function(){var e=(0,o.A)(function*(n){n?(t.currentLatitude=n.coords.latitude,t.currentLongitude=n.coords.longitude,t.mapService.setApiKey(t.mapApiKey),t.mapService.getReverseGeoCoder(t.currentLatitude,t.currentLongitude).then(function(){var r=(0,o.A)(function*(u){u?(t.hideIonRefresher.emit(!0),yield t.fillListViewWithOpportunitiesNearBy(u)):(t.initialOpportunitiesListView=null,t.loadingUtility.hideLoader(),t.hideIonRefresher.emit(!0))});return function(u){return r.apply(this,arguments)}}()).catch(r=>{console.log(r),t.hideIonRefresher.emit(!0)})):(t.initialOpportunitiesListView=null,t.loadingUtility.hideLoader(),t.hideIonRefresher.emit(!0))});return function(n){return e.apply(this,arguments)}}()).catch(e=>{t.initialOpportunitiesListView=null,t.loadingUtility.hideLoader(),t.hideIonRefresher.emit(!0),!0===t.platform.is("hybrid")&&console.log("An error occurred while getting location",e)})})()}getUserCurrentCoordinates(){var t=this;return(0,o.A)(function*(){!0===t.platform.is("hybrid")?t._DIAGNOSTIC.isLocationEnabled().then(function(){var e=(0,o.A)(function*(n){t.isLocationEnabled=n,n?yield t.getCurrentPosition():(t.initialOpportunitiesListView=null,t.loadingUtility.hideLoader(),t.hideIonRefresher.emit(!0))});return function(n){return e.apply(this,arguments)}}()):yield t.getCurrentPosition()})()}fillListViewWithOpportunitiesNearBy(t){var e=this;return(0,o.A)(function*(){if(e.currentLongitude&&e.currentLatitude){e.initialOpportunitiesListView=null;let n={zipCode:t.Zip};e.opportunitiesSubscriptions$.sink=e.apiService.opportunitiesGet(n).subscribe(function(){var r=(0,o.A)(function*(u){e.loadingUtility.hideLoader(),e.initialOpportunitiesListView=u,p.p.remove({key:e.OPPORTUNITIES_KEY}),p.p.set({key:e.OPPORTUNITIES_KEY,value:JSON.stringify(e.initialOpportunitiesListView)}),yield e.buildOpportunitiesRequestedByDriver(!0)});return function(u){return r.apply(this,arguments)}}())}})()}fillListViewWithOpportunitiesMatchingZipcode(t){var e=this;return(0,o.A)(function*(){let n={zipCode:t};e.opportunitiesSubscriptions$.sink=e.apiService.opportunitiesGet(n).subscribe(function(){var r=(0,o.A)(function*(u){e.foun
1dOpportunitiesListView=u,e.loadingUtility.hideLoader(),null!==e.foundOpportunitiesListView&&void 0!==e.foundOpportunitiesListView&&e.foundOpportunitiesListView.length>0&&(e.initialOpportunitiesListView=e.foundOpportunitiesListView,yield e.buildOpportunitiesRequestedByDriver(!0))});return function(u){return r.apply(this,arguments)}}())})()}fillListViewWithOpportunitiesMatchingLocation(t){var e=this;return(0,o.A)(function*(){yield e.loadingUtility.showLoader("Loading Career Opportunities...");let n={cityCode:t.code,stateCode:t.state,zipCode:null};n?.cityCode&&"undefined"!=n?.cityCode&&n?.stateCode&&"undefined"!=n?.stateCode?e.opportunitiesSubscriptions$.sink=e.apiService.opportunitiesGet(n).subscribe({next:r=>{e.foundOpportunitiesListView=r,e.loadingUtility.hideLoader(),e.foundOpportunitiesListView&&e.foundOpportunitiesListView.length>0&&(e.initialOpportunitiesListView=e.foundOpportunitiesListView,e.buildOpportunitiesRequestedByDriver(!0))},error:r=>{e.loadingUtility.hideLoader()}}):e.loadingUtility.hideLoader()})()}isNumber(t){return!Number.isNaN(Number.parseFloat(t))&&!Number.isNaN(t-0)}searchInputChanged(t){if(this.initialOpportunitiesListView=null,this.selectedCity=null,""===t.split(" ").join(""))return this.suggestedCities=[],void this.loadOpportunitiesNearByFromStorage();this.ionAutoInput(t.trim())}search(t){this.searchText=t,this.ionAutoInput(t)}turncateString(t,e){return this.citiesAutoCompleteService.turncateString(t,e)}buildMileageByDriverType(t){let e="";for(const n of t)if(0!==n.averageLowMiles){const r=n.averageLowMiles+" "+n.driverTypeDescription+", ";e=e.concat(r)}return e=e.substring(0,e.length-2),e}buildOpportunitiesRequestedByDriver(t){var e=this;return(0,o.A)(function*(){t&&(e.loadingUtility.hideLoader(),e.loadingUtility.showLoader("Checking Wait List.."));let n={driverId:e.driverId};e.subscriptions$.sink=e.apiService.driveropportunitiesGet(n).subscribe({next:r=>{t&&e.loadingUtility.hideLoader(),e.opportunitiesRequestedByDriver=r},error:r=>{e.loadingUtility.hideLoader()}})})()}isOpportunityRequestedByDriver(t){if(this.opportunitiesRequestedByDriver)return void 0!==this.opportunitiesRequestedByDriver.find(n=>n.accountCode===t.accountCode)}ngOnDestroy(){this.opportunitiesSubscriptions$.unsubscribe(),this.subscriptions$.unsubscribe()}static#t=z=()=>(this.ctorParameters=()=>[{type:k.L},{type:b.Ix},{type:A.N},{type:I},{type:b.nX},{type:T.OD},{type:K.o},{type:V.b},{type:C.By},{type:Y.u},{type:_.il},{type:y.u},{type:j.c}],this.propDecorators={searchbar:[{type:s.Uct,args:["searchbar"]}],loadCareerListingApi:[{type:s.pde}],hideIonRefresher:[{type:s.k7i}]},this)},z());var G;R=(0,l.Cg)([(0,s.uAl)({selector:"app-job-opportunities-listing",template:'<div class="gray-panel">\n <div *ngIf="divisonInfo && divisonInfo?.divisionName">\n <ion-row class="ion-padding-horizontal ion-padding-top">\n <ion-col size="6">\n <ion-label class="edge-label"> Assigned Account </ion-label>\n </ion-col>\n <ion-col size="6">\n <ion-text class="edge-value"> {{ divisonInfo?.divisionName }} </ion-text>\n </ion-col>\n </ion-row>\n </div>\n <ion-searchbar \n #searchbar debounce="500" \n [(ngModel)]="searchText" \n (ngModelChange)="searchInputChanged($event)" \n placeholder="Search by City or ZIP code"\n >\n </ion-searchbar>\n \n <div *ngIf="suggestedCities.length">\n <ion-item class=\'auto-complete-result-item\' *ngFor="let item of suggestedCities" (click)="searchForCity(item)" (keypress)="searchForCity(item)">\n {{ item.description }}\n </ion-item>\n </div>\n\n <div class="no-data-message" *ngIf="!isDataAvailable()">Search by your city or zip to get started.</div>\n <ion-list class="list" *ngIf="isDataAvailable()">\n <ion-item detail="true" *ngFor="let opportunityItem of initialOpportunitiesListView; let i = index"\n (click)="showJobOpportunity(opportunityItem)" (keypress)="showJobOpportunity(opportunityItem)" class="pointer">\n <ion-label>\n <div class="opportunity-name"> {{turncateString(opportunityItem.name, 33)}}</div>\n <ion-item-sliding>\n <p class="ion-text-wrap opportunity-description">\n {{turncateString(opportunityItem.description, 200)}}\n </p>\n </ion-item-sliding>\n </ion-label>\n <div slot="end" style="margin-left: 0px;">
1\n <span *ngIf="opportunityItem.isHotSheet === true">\n <img src="assets/Images/quickTime.svg" class="wait-list-icon" size="medium" alt="Quick time icon">\n </span>\n <span *ngIf="isOpportunityRequestedByDriver(opportunityItem)"> \n <ion-icon name="hourglass-outline" class="requested" size="medium"></ion-icon>\n </span>\n </div>\n </ion-item>\n\n </ion-list>\n</div>',imports:[a.bT,m.bv,h.YN,a.Sq],styles:[Z()]}),(0,l.Sn)("design:paramtypes",[k.L,b.Ix,A.N,I,b.nX,T.OD,K.o,V.b,C.By,Y.u,_.il,y.u,j.c])],R);let x=(class{constructor(t,e,n){this.authService=t,this.platform=e,this.analytics=n,this.OPPORTUNITIES_PAGE_SELECTED_TAB_KEY="opportunities-page-selected-tab",this.defaultSelectedIndex=0,this.tab="",this.opportunitiesSubPages=[{title:"Search",icon:""},{title:"Requests",icon:""}],this.showIconInformationModal=!1,this.loadCareerListingApi=!1,this.loadCareerRequestsApi=!1}loadCareerOppurtuntiesData(t){this.analytics.trackEvent("User","refreshed_career_opportunities_screen","Refreshed Career Opportunities Screen"),this.ionRefresherEvent=t,"Search"===this.tab?this.loadCareerListingApi=!0:(this.loadCareerRequestsApi=!0,this.ionRefresherEvent.target.complete())}hideIonRefresher(t){"Search"===this.tab&&this.loadCareerListingApi&&!0===t?(this.loadCareerListingApi=!1,this.ionRefresherEvent.target.complete()):"Requests"===this.tab&&this.loadCareerRequestsApi&&!0===t?(this.loadCareerRequestsApi=!1,this.ionRefresherEvent.target.complete()):(this.loadCareerListingApi=!1,this.loadCareerRequestsApi=!1)}ionViewDidEnter(){var t=this;return(0,o.A)(function*(){if(t.analytics.trackEvent("User","entered_career_opportunities_screen","Entered Career Opportunities Screen"),t.defaultSelectedIndex=yield t.getSelectedTabIndexFromStorage(),yield t.saveSelectedTabIndexToStorage(),t.selectTab(t.defaultSelectedIndex),1==t.defaultSelectedIndex){const e=yield t.authService.getUserIdentitityKey();t.requestsListing&&t.requestsListing.retrieveOpportunitiesRequestedByDriver(e)}t.scrollingHeader.selectedIndex=t.defaultSelectedIndex,t.scrollingHeader.updateTab()})()}ionViewDidLeave(){}onSubpageChange(t){!0===this.showIconInformationModal&&this.closeIconInformationModal(),this.analytics.trackEvent("User","clicked_"+t.toLowerCase()+"_tab_on_career_opportunities_screen","Clicked "+t+" Tab On Career Opportunities Screen"),this.tab=t}getSelectedTabIndexFromStorage(){var t=this;return(0,o.A)(function*(){let e=0;const n=yield p.p.get({key:t.OPPORTUNITIES_PAGE_SELECTED_TAB_KEY});return n?.value&&n.value.length>0&&(e=Number.parseInt(n.value)),e})()}saveSelectedTabIndexToStorage(){var t=this;return(0,o.A)(function*(){yield p.p.remove({key:t.OPPORTUNITIES_PAGE_SELECTED_TAB_KEY}),yield p.p.set({key:t.OPPORTUNITIES_PAGE_SELECTED_TAB_KEY,value:t.defaultSelectedIndex.toString()})})()}selectTab(t){t>=0&&null!==this.opportunitiesSubPages&&void 0!==this.opportunitiesSubPages&&this.opportunitiesSubPages.length>=t&&(this.defaultSelectedIndex=t,this.tab=this.opportunitiesSubPages[this.defaultSelectedIndex].title)}informationIconClickHandler(){var t=this;return(0,o.A)(function*(){t.analytics.trackEvent("User","clicked_info_on_career_opportunities","Clicked Info On Career Opportunities"),t.showIconInformationModal=!0})()}closeIconInformationModal(){var t=this;return(0,o.A)(function*(){t.showIconInformationModal=!1})()}static#t=G=()=>(this.ctorParameters=()=>[{type:y.u},{type:T.OD},{type:M.c}],this.propDecorators={scrollingHeader:[{type:s.Uct,args:["scrollingHeaderComponent"]}],requestsListing:[{type:s.Uct,args:["jobRequestsListingComponent"]}]},this)},G());x=(0,l.Cg)([(0,s.uAl)({selector:"app-opportunities",template:'<ion-toolbar class="ion-safe-area-top" mode="ios">\n <ion-buttons slot="start">\n <ion-back-button class="back-btn" defaultHref="/" text=""></ion-back-button>\n </ion-buttons>\n <ion-title class="edge-value ion-text-center">\n <div class="ion-text-wrap">\n Career Opportunities\n </div>\n </ion-title> \n <ion-icon name="information-circle-outline" slot="end" (click)="informationIconCl
1ickHandler()" class="information-icon pointer" (keypress)="informationIconClickHandler()"></ion-icon>\n</ion-toolbar>\n\n<scrolling-header #scrollingHeaderComponent\n (selectedTab)="onSubpageChange($event)"\n [tabIndex]="defaultSelectedIndex"\n [subPages]="opportunitiesSubPages"\n [selectedIndex]="defaultSelectedIndex"\n></scrolling-header>\n\n\n<ion-content>\n <ion-refresher *ngIf="(platform.is(\'cordova\') || platform.is(\'capacitor\')) && !platform.is(\'mobileweb\')" slot="fixed" (ionRefresh)="loadCareerOppurtuntiesData($event)">\n <ion-refresher-content></ion-refresher-content>\n </ion-refresher>\n <app-icon-information-modal *ngIf="showIconInformationModal === true" (tappedCloseButton)="closeIconInformationModal()"></app-icon-information-modal>\n\n <div [ngSwitch]="tab">\n <app-job-opportunities-listing [loadCareerListingApi]="loadCareerListingApi" (hideIonRefresher)="hideIonRefresher($event)" *ngSwitchCase="\'Search\'"></app-job-opportunities-listing>\n <app-job-requests-listing [loadCareerRequestsApi]="loadCareerRequestsApi" #jobRequestsListingComponent *ngSwitchCase="\'Requests\'"></app-job-requests-listing>\n </div>\n</ion-content>\n',imports:[m.bv,J.I,a.bT,W.k,a.ux,a.e1,R,L],styles:[E()]}),(0,l.Sn)("design:paramtypes",[y.u,T.OD,M.c])],x);var nt=i(80756);const ot=[{path:"",component:x,canActivate:[O.B$],resolve:{accepted:nt.I}},{path:"job-opportunity-details",loadChildren:()=>i.e(3433).then(i.bind(i,53433)).then(v=>v.JobOpportunityDetailsPageModule)},{path:"icon-information-modal",loadChildren:()=>Promise.resolve().then(i.bind(i,16054)).then(v=>v.IconInformationModalPageModule)}];let D=class{};D=(0,l.Cg)([(0,s.UQu)({imports:[g.iI.forChild(ot)],exports:[g.iI]})],D);var st=i(44661),rt=i(16054);let U=class{};U=(0,l.Cg)([(0,s.UQu)({imports:[a.MD,h.YN,m.bv,D,st.u,rt.IconInformationModalPageModule,x,R,L],exports:[R,L],providers:[I]})],U)},61955(d,c,i){"use strict";i.d(c,{b:()=>h});var l=i(31635),s=i(23214),a=i(21413);
1let h=class{constructor(){this.opportunityChangedSubject=new a.B}publishEvent(){this.opportunityChangedSubject.next()}getObservable(){return this.opportunityChangedSubject}};h=(0,l.Cg)([(0,s._qm)({providedIn:"root"})],h)},2057(d,c,i){var l=i(8564),a=i(98557)(l);a.push([d.id,".background {\n position: fixed; /* Sit on top of the page content */\n width: 100%; /* Full width (cover the whole page) */\n height: 100%; /* Full height (cover the whole page) */\n max-width: 800px;\n margin: 0 auto;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: rgba(0, 0, 0, 0.5); /* Black background with opacity */\n z-index: 20; /* Specify a stack order in case you're using a different order for other elements */\n}\n\n.title-label {\n font-size: 14px;\n font-weight: normal;\n font-stretch: normal;\n font-style: normal;\n line-height: 1;\n letter-spacing: normal;\n text-align: left;\n color: rgba(0, 0, 0, 0.6);\n}\n\n.title-row {\n text-align: center;\n --border-radius: 4px;\n}\n\n.subtitle-row {\n font-weight: 400;\n text-align: left;\n padding: 0px 0px 32px 0px;\n width: 100%;\n}\n\n.modal {\n position: absolute; /* Sit on top of the page content */\n margin: 0 auto;\n padding: 0px;\n left: 3%;\n right: 3%;\n top: 30%;\n width: 90%; /* Full width (cover the whole page) */\n border-radius: 4px;\n background-color: white;\n z-index: 20; /* Specify a stack order in case you're using a different order for other elements */\n}\n\nion-button {\n display: flex;\n height: 38px !important;\n color: #ffffff !important;\n --background: #3369b4 !important;\n --border-radius: 4px !important;\n width: 90% !important;\n margin-left: auto !important;\n margin-right: auto !important;\n margin-top: 16px !important;\n margin-bottom: 16px !important;\n}\n\n.danger {\n color: red;\n}\n\n.wait-list-icon {\n height: 15px;\n margin-left: 3px;\n}\n\n.requested {\n color: blue;\n}",""]),d.exports=a.toString()},33823(d,c,i){var l=i(8564),a=i(98557)(l);a.push([d.id,".gray-panel {\n width: 100% !important;\n background-color: #f2f2f2 !important;\n height: auto !important;\n}\n\n.search-icon {\n margin-left: 15px !important;\n margin-top: 12px !important;\n height: 24px !important;\n width: 24px !important;\n}\n\n.search-inputs-panel {\n width: 100% !important;\n height: 100% !important;\n}\n\n.search-text-box {\n background-color: #ffffff !important;\n width: 88% !important;\n margin-left: 45px !important;\n margin-top: -35px !important;\n}\n\n.search-text-box-panel {\n width: 95% !important;\n height: 50px !important;\n background-color: #ffffff !important;\n border: solid 1px #d5d5d5;\n margin-left: auto !important;\n margin-right: auto !important;
1\n margin-top: 1px !important;\n}\n\n.list {\n margin-top: 5px !important;\n}\n\n.auto-complete-results-box {\n z-index: 12;\n position: absolute;\n height: 160px;\n width: 90%;\n left: 5%;\n overflow: scroll;\n box-shadow: var(--shadow);\n}\n\n.auto-complete-result-item {\n width: 100% !important;\n margin: 0 !important;\n}\n\n.close-button {\n position: absolute;\n padding-top: 16px;\n right: 40px;\n z-index: 14;\n}\n\nion-searchbar {\n z-index: 15;\n}\n\n.miles-by-driver-type {\n color: gray;\n font-size: 12px;\n}\n\n.opportunity-name {\n font-weight: 600;\n}\n\n.opportunity-description {\n text-overflow: ellipsis;\n font-weight: 500;\n}\n\n.wait-list-icon {\n height: 15px;\n margin-left: 5px;\n}\n\n.average-stops {\n color: gray;\n font-size: 12px;\n margin-top: 7px;\n display: inline-block;\n}\n\n.danger {\n color: red;\n}\n\n.requested {\n color: blue;\n}",""]),d.exports=a.toString()},71603(d,c,i){var l=i(8564),a=i(98557)(l);a.push([d.id,".gray-panel {\n width: 100% !important;\n background-color: #f2f2f2 !important;\n height: auto !important;\n}\n\n.search-icon {\n margin-left: 15px !important;\n margin-top: 12px !important;\n height: 24px !important;\n width: 24px !important;\n}\n\n.search-inputs-panel {\n width: 100% !important;\n height: 100% !important;\n}\n\n.search-text-box {\n background-color: #ffffff !important;\n width: 88% !important;\n margin-left: 45px !important;\n margin-top: -35px !important;\n}\n\n.search-text-box-panel {\n width: 95% !important;\n height: 50px !important;\n background-color: #ffffff !important;\n border: solid 1px #d5d5d5;\n margin-left: auto !important;\n margin-right: auto !important;
1\n margin-top: 1px !important;\n}\n\n.list {\n margin-top: 15px !important;\n}\n\n.miles-by-driver-type {\n color: gray;\n font-size: 12px;\n}\n\n.opportunity-name {\n font-weight: 600;\n}\n\n.opportunity-description {\n text-overflow: ellipsis;\n}\n\n.wait-list-icon {\n height: 15px;\n margin-left: 5px;\n}\n\n.average-stops {\n color: gray;\n font-size: 12px;\n margin-top: 7px;\n display: inline-block;\n}\n\n.danger {\n color: red;\n}\n\n.requested {\n color: blue;\n}",""]),d.exports=a.toString()},32646(d,c,i){var l=i(8564),a=i(98557)(l);a.push([d.id,".information-icon {\n font-size: 24px;\n padding: 8px;\n color: green;\n}",""]),d.exports=a.toString()}}]);
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.