1"use strict";(self.webpackChunkcore_app=self.webpackChunkcore_app||[]).push([["default-apps_connect-app_service_services_services_service_ts-shared_modules_common_src_lib_p-668435"],{15136(S,s){Object.defineProperty(s,"__esModule",{value:!0}),s.InspectionPapwerworkDownloadRequestDto=void 0,s.InspectionPapwerworkDownloadRequestDto=class i{constructor(){this.fileName=""}}},62351(S,s,i){Object.defineProperty(s,"__esModule",{value:!0}),s.ServicesService=void 0;const f=i(31635),u=(i(2490),i(15136)),o=i(43481),r=(i(87453),i(53323),f.__importStar(i(49849))),p=f.__importStar(i(53323)),h=f.__importStar(i(2490)),l=f.__importStar(i(87453));s.ServicesService=(()=>{class C{constructor(e,n,a){this.integrationClient=e,this.cookieService=n,this.cfsPublicApi=a}searchRequest(e){return this.integrationClient.request("/serviceRequest/search/",e)}getCsvDownloadUrl(e){return this.integrationClient.generateGetUrl("/serviceRequest/csv/search",e,"text/csv")}getDynSessConf(){return this.cookieService.check("dynSessConf")?this.cookieService.get("dynSessConf"):""}getInspectionPaperworkUrl(e,n){const a=new u.InspectionPapwerworkDownloadRequestDto;return a.attachedDocumentId=e,a.fileName=n,this.integrationClient.request("/serviceRequest/downloadInspectionPaperwork",a)}searchContacts(e,n){return this.cfsPublicApi.authenticatedGraphql("query SearchContacts($accountIds: [Float!]!, $queryParams: ContactSearchQueryParams) {\n searchContacts(accountIds: $accountIds, queryParams: $queryParams) {\n contacts {\n id: contactId\n phoneNumber\n firstName\n lastName\n email\n jobTitle\n phoneNumbers {\n phoneNumber\n textEnabled\n }\n }\n }\n}",{accountIds:n,queryParams:{query:e}}).pipe((0,o.map)(a=>a.searchContacts.contacts))}getSrNotificationSubscribers(e){return this.integrationClient.request("/serviceRequest/notman/getSrSubscribers",e)}addNotificationSubscribersFromGroup(e){return this.integrationClient.request("/serviceRequest/notman/addSubscribersFromGroup",e)}countOpenSRs(){return this.integrationClient.request("/serviceRequest/openSRCount",{})}static{this.\u0275fac=function(n){return new(n||C)(r.\u0275\u0275inject(p.IntegrationClientService),r.\u0275\u0275inject(h.CookieService),r.\u0275\u0275inject(l.CfsPublicApiService))}}static{this.\u0275prov=r.\u0275\u0275defineInjectable({token:C,factory:C.\u0275fac,providedIn:"root"})}}return C})()},1629(S,s,i){Object.defineProperty(s,"__esModule",{value:!0}),s.PhoneNumberPipe=void 0;const m=i(31635).__importStar(i(49849));s.PhoneNumberPipe=(()=>{class o{transform(c){if(null!=c){let r,p,h,l=c.replace(/[^0-9]/g,"");switch(l.length){case 10:r=1,p=l.slice(0,3),h=l.slice(3);break;case 11:r=l[0],p=l.slice(1,4),h=l.slice(4);break;case 12:r=l.slice(0,3),p=l.slice(3,5),h=l.slice(5);break;default:return c}return 1==r&&(r=""),h=`${h.slice(0,3)}-${h.slice(3)}`,`${r} (${p}) ${h}`.trim()}return""}static{this.\u0275fac=function(r){return new(r||o)}}static{this.\u0275pipe=m.\u0275\u0275definePipe({name:"phoneNumber",type:o,pure:!0,standalone:!1})}}return o})()},8606(S,s,i){Object.defineProperty(s,"__esModule",{value:!0}),s.TruncatePipe=void 0;const m=i(31635).__importStar(i(49849));s.TruncatePipe=(()=>{class o{transform(c,r){return c?(r||(r=28),c.length>r?c.substring(0,r)+"...":c):""}static{this.\u0275fac=function(r){return new(r||o)}}static{this.\u0275pipe=m.\u0275\u0275definePipe({name:"truncate",type:o,pure:!0,standalone:!1})}}return o})()},27575(S,s,i){Object.defineProperty(s,"__esModule",{value:!0}),s.NotmanService=void 0;const f=i(31635),m=i(59091),u=i(8347),o=i(43481),I=i(43410),p=(i(97377),i(53323),f.__importStar(i(49849))),h=f.__importStar(i(53323)),l=f.__importStar(i(97377));s.NotmanService=(()=>{class d{constructor(t,e){this.integrationClient=t,this.statefulService=e,this.notifTypeBundleSubject=new m.ReplaySubject(1),this.statefulService.profile.isValidatedB2BUser&&!this.statefulService.hasPrivilege("B2B_Disallow_Order_Supply")&&this.requestNotifTypeBundle()}get notifTypeBundleObservable(){return this.notifTypeBundleSubject.asObservable()}get getNotifTypeBundle(){return this.notifTypeBundle}explodedCombinedNotificationRequest(t){return this.integrationClient.request("/notman/explodedCombined/search",t)}findHighestPriorityNotifications(t){return this.integrationClient.request("/notman/findHighestPriorityNotifications",t)}typeAllexplodedNotificationRequest(t){return this.integrationClient.request("/notman/notifTypeAllExploded/search",t)}getNotificationTypeGroups(){return this.integrationClient.request("/notman/getAllGroupTypeDefs",{})}getNotificationTypes(){return this.integrationClient.request("/notman/getAllTypeDefs",{})}getNotificationSubTypes(){return this.integrationClient.request("/notman/getAllSubtypeDefs",{})}getNotification(t){return this.integrationClient.request("/notman/getNotification",t)}createOrUpdateNotification(t){return this.integrationClient.request("/notman/notification/createOrUpdate",t)}createOrUpdateNotificationBatch(t){return this.integrationClient.request("/notman/notification/createOrUpdate",t)}createOrUpdateNotificationSubtype(t){return this.integrationClient.request("/notman/notificationSubtype/createOrUpdate",t)}deleteNotification(t){return this.integrationClient.request("/notman/delete",{id:t})}deleteNotificationBatch(t){return this.integrationClient.request("/notman/delete/batch",{notifIds:t})}checkTelematicsNotificationSetting(t){return this.integrationClient.request("/notman/notification/checkNotificationSetting",t).pipe((0,o.map)(e=>[t.notifTypeId,e]))}checkNotificationSetting(t){return this.integrationClient.request("/notman/notification/checkNotificationSetting",t)}turnOffAllByTypeOrContactId(t){return this.integrationClient.request("/notman/notification/turnOffAllByTypeOrContactId",t)}searchNotmanOpenSRs(t){return this.integrationClient.request("/serviceRequest/notman/searchOpenSRs",t)}csvSearchNotmanOpenSRs(t){return this.integrationClient.generateGetUrl("/serviceRequest/notman/csvSearchNotmanOpenSRs",t,"text/csv")}onForAllSRResults(t){return this.integrationClient.request("/serviceRequest/notman/turnOnForAllResults",t)}setAllTypeNotifications(t){return this.integrationClient.request("/serviceRequest/notman/setAllOn",t)}searchAllTypeNotifications(t){return this.integrationClient.request("/serviceRequest/notman/searchAllType",t)}notificationSearch(t){return this.integrationClient.request("/notman/notification/search",t)}notificationSubtypeSearch(t){return this.integrationClient.request("/notman/notificationSubtype/search",t)}getUnitFilterLists(t){return this.integrationClient.request("/fleet/notman/filterLists",t)}searchNotmanUnitSummaries(t){let e=t.requestData.content.multiValueFilterOptions.filter(n=>"LOCATION"===n.fieldName)[0];if(e){let n=this.separateUnitRequestLocationFilters(t,e);return this.integrationClient.request("/fleet/notman/searchUnits",n)}return this.integrationClient.request("/fleet/notman/searchUnits",t)}searchTelematicsNotmanUnitSummaries(t){let e=t.requestData.content.multiValueFilterOptions.filter(n=>"LOCATION"===n.fieldName)[0];if(e){let n=this.separateUnitRequestLocationFilters(t,e);return this.integrationClient.request("/fleet/notman/searchUnits",n).pipe((0,o.map)(a=>(a.notifTypeId=t.notifTypeId[0],a)))}return this.integrationClient.request("/fleet/notman/searchUnits",t).pipe((0,o.map)(n=>(n.notifTypeId=t.notifTypeId[0],n)))}csvSearchNotmanUnitSummaries(t){let e=t.requestData.content.multiValueFilterOptions.filter(n=>"LOCATION"===n.fieldName)[0];if(e){let n=this.separateUnitRequestLocationFilters(t,e);return this.integrationClient.generateGetUrl("fleet/notman/csvSearchUnits",n,"text/csv")}return this.integrationClient.generateGetUrl("fleet/notman/csvSearchUnits",t,"text/csv")}separateUnitRequestLocationFilters(t,e){let n=[...new Set(e.values.map(y=>y.substring(0,y.indexOf(","))))],a=new I.MultiValueFilterOption;a.fieldName="CITY",a.values=n;let g=[...new Set(e.values.map(y=>y.substring(y.indexOf(",")+1,y.length)))],N=new I.MultiValueFilterOption;N.fieldName="STATE",N.values=g;let b=JSON.parse(JSON.stringify(t));return b.requestData.content.multiValueFilterOptions.splice(t.requestData.content.multiValueFilterOptions.findIndex(y=>"LOCATION"===y.fieldName),1),b.requestData.content.multiValueFilterOptions.push(a),b.requestData.content.multiValueFilterOptions.push(N),b}searchUnitAllType(t){return this.integrationClient.request("/fleet/notman/searchAllType",t)}searchTelematicsUnitAllType(t){return this.integrationClient.request("/fleet/notman/searchAllType",t).pipe((0,o.map)(e=>(e.notifTypeId=t.notifTypeId[0],e)))}getUnitCountByContract(t){return this.integrationClient.request("/fleet/unitCountByContract",t)}onForAllUnitResults(t){let e=t.requestData.content.multiValueFilterOptions.filter(n=>"LOCATION"===n.fieldName)[0];if(e){let n=this.separateUnitRequestLocationFilters(t,e);return this.integrationClient.request("/fleet/notman/turnOnForAllResults",n)}return this.integrationClient.request("/fleet/notman/turnOnForAllResults",t)}setAllUnitsOn(t){return this.integrationClient.request("/fleet/notman/setAllOn",t)}notificationExplodedContentToNotificationDto(t){let e=new u.NotificationDto;return null!=t&&(e.notifId=t.notifId,e.notifType=t.notifTypeDef,e.notifTypeGroupDef=t.notifTypeGroupDef,e.notifCreator=t.notifCreator,e.notifSubjectType=t.origNotifSubjectType,e.notifSubjectIdentifier=t.origNotifSubjectIdentifier,e.notifRecipientType=t.origRecipientType,e.notifRecipientIdentifier=t.origRecipientIdentifier,e.status=t.status,e.emailEnabled=t.emailEnabled,e.smsEnabled=t.smsEnabled),null!=t?e:null}notificationDtoToNotificationExplodedContent(t){let e=new u.NotificationExplodedContent;return null!=t&&(e.notifId=t.notifId,e.notifTypeDef=t.notifType,e.notifTypeGroupDef=t.notifTypeGroupDef,e.notifCreator=t.notifCreator,e.origNotifSubjectType=t.notifSubjectType,e.origNotifSubjectIdentifier=t.notifSubjectIdentifier,e.origRecipientType=t.notifRecipientType,e.origRecipientIdentifier=t.notifRecipientIdentifier,e.status=t.status,e.emailEnabled=t.emailEnabled,e.smsEnabled=t.smsEnabled),e}notificationSubtypeDtoToNotificationExplodedContent(t){let e=new u.NotificationExplodedContent;return null!=t&&(e.notifId=t.parentNotifId,e.subtypeNotifCreator=t.notifCreator,e.subtypeStatus=t.status,e.notifSubtypeDef=t.notifSubtypeDef,e.subtypeNotifId=t.subtypeNotifId),e}notificationExplodedContentToNotificationSubtypeDto(t){let e=new u.NotificationSubtypeDto;return null!=t&&(e.subtypeNotifId=t.subtypeNotifId,e.parentNotifId=t.notifId,e.notifSubtypeDef=t.notifSubtypeDef,e.notifCreator=t.subtypeNotifCreator,e.status=t.subtypeStatus),null!=t?e:null}notificationExplodedContentToNotifTypeGroupSubtypeDto(t){let e=new u.NotifTypeGroupSubtypeDto;return null!=t&&(e.grpSubtypeNotifId=t.grpSubtypeNotifId,e.parentNotifId=t.notifId,e.notifTypeGrpSubtypeDef=t.notifTypeGrpSubtypeDef,e.notifCreator=t.subtypeNotifCreator,e.status=t.subtypeStatus),null!=t?e:null}notificationExplodedTypeAllContentToNotificationDto(t){let e=new u.NotificationDto;return null!=t&&(e.notifId=t.notifId,e.notifType=t.notifTypeDef,e.notifCreator=this.statefulService.profile.email,e.notifSubjectType=t.origNotifSubjectType,e.notifSubjectIdentifier=t.notifSubjectIdentifier,e.notifRecipientType="INDIVIDUAL",e.notifRecipientIdentifier=t.recipientContactId,e.status=t.status,e.emailEnabled=t.emailEnabled,e.smsEnabled=t.smsEnabled),null!=t?e:null}notificationExplodedTypeAllContentToNotificationSubtypeDto(t){let e=new u.NotificationSubtypeDto;return null!=t&&(e.subtypeNotifId=t.subtypeNotifId,e.parentNotifId=t.notifId,e.notifSubtypeDef=t.notifSubtypeDef,e.notifCreator=t.subtypeNotifCreator,e.status=t.subtypeStatus),null!=t?e:null}requestNotifTypeBundle(){(0,m.forkJoin)([this.getNotificationTypeGroups(),this.getNotificationTypes(),this.getNotificationSubTypes()]).subscribe(t=>{this.notifTypeBundle=new u.NotifTypeBundle([...t[0]],[...t[1]],[...t[2]]),this.notifTypeBundleSubject.next(new u.NotifTypeBundle([...t[0]],[...t[1]],[...t[2]]))})}getNotificationSubscribers(t){return this.integrationClient.request("/notman/getNotificationSubscribers",t)}hasSMSContact(){return this.statefulService.profile.isInternalAssociate?(0,m.of)(!1):this.getCustContact(this.statefulService.profile.contactId.toString()).pipe((0,o.map)(t=>{try{return"MOBILE"===t.partyContact.phoneLines.filter(a=>"Y"===a.primaryFlag)[0].lineType}catch{return!1}}
1))}getCustContact(t){return this.integrationClient.request("/cns/getCustContact",{contactId:t})}getUserPhoneNumber(){return this.statefulService.profile.isInternalAssociate?(0,m.of)(null):this.statefulService.profile.isValidatedB2BUser?this.getCustContact(this.statefulService.profile.contactId.toString()).pipe((0,o.map)(t=>{try{let n=t.partyContact.phoneLines.filter(g=>"Y"===g.primaryFlag)[0];return{phoneNumber:(n.phoneNumber.areaCode+n.phoneNumber.phoneNumber).replace(/\D/g,""),isMobile:"MOBILE"==n.lineType}}catch{return{phoneNumber:"",isMobile:!1}}})):this.findPersonByPartyId(this.statefulService.profile.partyId).pipe((0,o.map)(t=>{try{let n=t.phoneLines.filter(g=>"Y"===g.primaryFlag)[0];return{phoneNumber:(n.phoneNumber.areaCode+n.phoneNumber.phoneNumber).replace(/\D/g,""),isMobile:"MOBILE"==n.lineType}}catch{return{phoneNumber:"",isMobile:!1}}}))}findPersonByPartyId(t){return this.integrationClient.request("/person/search/person/partyId/"+t)}getNotifSettingsStructure(t){return this.integrationClient.request("/notman/getNotifSettingsStructure",t)}getAllNotifTypeGroupDefsWithFeatureKeys(){return this.integrationClient.request("/notman/getAllGroupTypeDefsWithFeatureKeys",{})}getUnitDetailNotifTypeDefs(t){return this.integrationClient.request("/notman/getUnitDetailNotifTypeDefs",t)}getValidAllOnInstanceCount(t){return this.integrationClient.request("/fleet/notman/getValidAllOnInstanceCount",t)}static{this.\u0275fac=function(e){return new(e||d)(p.\u0275\u0275inject(h.IntegrationClientService),p.\u0275\u0275inject(l.StatefulService))}}static{this.\u0275prov=p.\u0275\u0275defineInjectable({token:d,factory:d.\u0275fac,providedIn:"root"})}}return d})()}}]);
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.