1!function(){try{("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).__faroGitHash_myeroad="5ce3e63ee526711d9fdee9e150f093852f3a7cc4"}catch(e){}}(),function(){try{("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).__faroBundleId_myeroad="10.1.5092-apac"}catch(e){}}();try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},d=(new e.Error).stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="8f022528-5fbd-4e8a-b8de-c5f6d530f677",e._sentryDebugIdIdentifier="sentry-dbid-8f022528-5fbd-4e8a-b8de-c5f6d530f677")}catch(e){}("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"10.1.5092-apac"},(self.webpackChunk_eroad_myeroad=self.webpackChunk_eroad_myeroad||[]).push([[3528],{1928:(e,d,o)=>{o.d(d,{A:()=>w});var t=o(83381),r=o(18198),s=o(90645),l=o(40421),c=o(27396),u=o(10237),n=o(68675);const a={scheduledReports:c.eT,scheduleReportsDrawerView:!1,submittingScheduleForm:!1,submittingScheduleFormFailed:!1},i=(0,s.HY)({scheduledReports:(0,l.v)([u.o.fetchScheduledReports.request.reduce(c.Uh),u.o.fetchScheduledReports.success.reduce(c.Mf),u.o.fetchScheduledReports.failure.reduce(c.tU),u.o.scheduleFormSubmission.success.reduce(()=>c.eT)],a.scheduledReports),scheduleReportsDrawerView:(0,l.v)([u.o.scheduleReportsDrawerOpened.reduce(()=>n.Vi.LIST),u.o.scheduleReportsDrawerViewChanged.fold(e=>e),u.o.scheduleReportsDrawerClosed.reduce(()=>null),u.o.scheduleFormSubmission.success.reduce(()=>n.Vi.LIST)],a.scheduleReportsDrawerView),submittingScheduleForm:(0,l.v)([u.o.scheduleFormSubmissionStarted.reduce(()=>!0),u.o.scheduleFormSubmission.request.reduce(()=>!0),u.o.scheduleFormSubmission.success.reduce(()=>!1),u.o.scheduleFormSubmission.failure.reduce(()=>!1)],a.submittingScheduleForm),submittingScheduleFormFailed:(0,l.v)([u.o.scheduleFormSubmission.request.reduce(()=>!1),u.o.scheduleFormSubmission.success.reduce(()=>!1),u.o.scheduleFormSubmission.failure.reduce(()=>!0)],a.submittingScheduleFormFailed)});var h=o(24392),p=o(35060),f=o(86893),m=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable;const S=(0,f.a)({baseURL:"https://api-my.eroad.co.nz/scheduled-reports"})({fetchScheduledReports:e=>({url:`/schedules?reportId=${e}`}),upsertScheduledReport:e=>{var d=e,{scheduleId:o}=d;return{url:"/schedules"+(o?`/${o}`:""),method:o?"PUT":"POST",data:((e,d)=>{var o={};for(var t in e)y.call(e,t)&&d.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&m)for(var t of m(e))d.indexOf(t)<0&&b.call(e,t)&&(o[t]=e[t]);return o}
1)(d,["scheduleId"])}},deleteScheduledReport:({id:e})=>({url:`/schedules/${e}`,method:"DELETE"})});var R=o(15592);const w=(0,t.G)({key:r.$n.REPORTS,reducer:i,saga:function*(){yield(0,h.Q7)([(0,h.p8)(u.o.fetchScheduledReports.type,(0,p.X)(u.o.fetchScheduledReports,S.fetchScheduledReports)),(0,h.p8)(u.o.scheduleFormSubmission.type,(0,p.X)(u.o.scheduleFormSubmission,S.upsertScheduledReport,{*onSuccess(e,{payload:{reportId:d}}){yield(0,h.yJ)(u.o.fetchScheduledReports(d))}})),(0,h.p8)(u.o.deleteScheduleReport.type,(0,p.X)(u.o.deleteScheduleReport,S.deleteScheduledReport,{*onSuccess(e,{payload:{reportId:d}}){yield(0,h.yJ)(u.o.fetchScheduledReports(d))}}))])},translations:R.A})},10237:(e,d,o)=>{o.d(d,{o:()=>t});const t=(0,o(40421).E)("REPORTS",e=>({fetchScheduledReports:e.asyncAction(),fetchScheduledReportDetail:e.asyncAction(),scheduleFormSubmission:e.asyncAction(),deleteScheduleReport:e.asyncAction(),scheduleFormSubmissionStarted:e.action(),scheduleReportsDrawerOpened:e.action(),scheduleReportsDrawerViewChanged:e.action(),scheduleReportsDrawerClosed:e.action(),scheduleReportEditDrawerClosed:e.action()}))},45771:(e,d,o)=>{o.r(d),o.d(d,{default:()=>h});var t=o(43420),r=o(62397),s=o(37506),l=o(41026),c=o(30526),u=o(33750),n=o(1928),a=o(14041);const i=()=>a.createElement(l.p,{to:"/Portal/admin/myprofile#tab-scheduled"},a.createElement(r.$,null,a.createElement(t.s,{id:"reports.header.action.depotScheduledReports"}))),h=(0,n.A)(()=>a.createElement(s.YW,null,a.createElement(s.zY,null,a.createElement(s.sT,{title:a.createElement(t.s,{id:"reports.header.title"}),actions:a.createElement(i,null)})),a.createElement(s.TK,null,a.createElement(c.N,{category:u.xD.FLEET}),a.createElement(c.N,{category:u.xD.DRIVER}),a.createElement(c.N,{category:u.xD.TAX}),a.createElement(c.N,{category:u.xD.FUEL}),a.createElement(c.N,{category:u.xD.INTEGRATIONS}))))}}]); 2//# sourceMappingURL=reports.myeroad.1f5ea9a16f949132e9d8.js.map
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.