1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},r=(new e.Error).stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="1943bc1a-21dd-4aea-93d8-f3e7a0d49ae0",e._sentryDebugIdIdentifier="sentry-dbid-1943bc1a-21dd-4aea-93d8-f3e7a0d49ae0")}()}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4806],{87236:function(e,r,n){n.d(r,{Ac:function(){return v},I3:function(){return w},Um:function(){return g},XF:function(){return K},YP:function(){return b},cj:function(){return S},db:function(){return p},hr:function(){return y},l4:function(){return f},lZ:function(){return q},n8:function(){return h},wz:function(){return m}});var a=n(59820),t=n(78298),i=n(14010),s=n(87686),o=n(60418),l=n(47477),u=n(82036),d=n(84475);let c=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return"".concat(u.JW,"tenant/").concat((0,l.d_)(),"/").concat(e)},p=function(){let{page:e=1,limit:r=10,status:n,year:i,frequency:s,enabled:u=!0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,a.a)({queryKey:["payroll-periods",{page:e,limit:r,status:n,year:i,frequency:s}],placeholderData:t.Wk,enabled:u&&(0,l.Xu)(),queryFn:async()=>{let a=new URLSearchParams;return a.append("page",e),a.append("limit",r),n&&a.append("status",n),i&&a.append("year",i),s&&a.append("frequency",s),(await o.Z.get(c("payroll/periods?".concat(a.toString())),{headers:(0,d.g0)({realm:"hr"})})).data}})},y=e=>{let{periodId:r,enabled:n=!0}=e;return(0,a.a)({queryKey:["payroll-period",r],enabled:!!r&&n&&(0,l.Xu)(),queryFn:async()=>(await o.Z.get(c("payroll/periods/".concat(r)),{headers:(0,d.g0)({realm:"hr"})})).data})},h=function(){let{enabled:e=!0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,a.a)({queryKey:["payroll-frequencies"],enabled:e&&(0,l.Xu)(),queryFn:async()=>{var e;return(null===(e=(await o.Z.get(c("payroll/frequencies"),{headers:(0,d.g0)({realm:"hr"})})).data)||void 0===e?void 0:e.data)||[]}})},f=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=(0,i.NL)();return(0,s.D)({mutationFn:async e=>(await o.Z.post(c("payroll/periods"),e,{headers:(0,d.g0)({realm:"hr"})})).data,onSuccess:(n,a)=>{r.invalidateQueries({queryKey:["payroll-periods"]}),e.onSuccess&&e.onSuccess(n,a)},...e})},g=function(){let{periodId:e,...r}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=(0,i.NL)();return(0,s.D)({mutationFn:async r=>(await o.Z.put(c("payroll/periods/".concat(e)),r,{headers:(0,d.g0)({realm:"hr"})})).data,onSuccess:(a,t)=>{n.setQueryData(["payroll-period",e],a.data),n.invalidateQueries({queryKey:["payroll-periods"]}),r.onSuccess&&r.onSuccess(a,t)},...r})},v=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=(0,i.NL)();return(0,s.D)({mutationFn:async e=>{let{periodId:r}=e;return(await o.Z.delete(c("payroll/periods/".concat(r)),{headers:(0,d.g0)({realm:"hr"})})).data},onSuccess:(n,a)=>{r.removeQueries({queryKey:["payroll-period",a.periodId]}),r.invalidateQueries({queryKey:["payroll-periods"]}),e.onSuccess&&e.onSuccess(n,a)},...e})},m=function(){let{periodId:e,...r}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=(0,i.NL)();return(0,s.D)({mutationFn:async()=>(await o.Z.post(c("payroll/periods/".concat(e,"/generate")),{},{headers:(0,d.g0)({realm:"hr"})})).data,onSuccess:(a,t)=>{n.invalidateQueries({queryKey:["payroll-period",e]}),n.invalidateQueries({queryKey:["payroll-periods"]}),n.invalidateQueries({queryKey:["payslips",e]}),r.onSuccess&&r.onSuccess(a,t)},...r})},q=function(){let{periodId:e,...r}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=(0,i.NL)();return(0,s.D)({mutationFn:async()=>(await o.Z.post(c("payroll/periods/".concat(e,"/approve")),{},{headers:(0,d.g0)({realm:"hr"})})).data,onSuccess:(a,t)=>{n.invalidateQueries({queryKey:["payroll-period",e]}),n.invalidateQueries({queryKey:["payroll-periods"]}),n.invalidateQueries({queryKey:["payslips",e]}),r.onSuccess&&r.onSuccess(a,t)},...r})},S=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=(0,i.NL)();return(0,s.D)({mutationFn:async e=>{let{periodId:r}=e;return(await o.Z.post(c("payroll/periods/".concat(r,"/submit-for-review")),{},{headers:(0,d.g0)({realm:"hr"})})).data},onSuccess:(n,a)=>{r.invalidateQueries({queryKey:["payroll-period",a.periodId]}),r.invalidateQueries({queryKey:["payroll-periods"]}),r.invalidateQueries({queryKey:["payslips",a.periodId]}),e.onSuccess&&e.onSuccess(n,a)},...e})},b=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=(0,i.NL)();return(0,s.D)({mutationFn:async e=>{let{periodId:r}=e;return(await o.Z.post(c("payroll/periods/".concat(r,"/process")),{},{headers:(0,d.g0)({realm:"hr"})})).data},onSuccess:(n,a)=>{r.invalidateQueries({queryKey:["payroll-period",a.periodId]}),r.invalidateQueries({queryKey:["payroll-periods"]}),r.invalidateQueries({queryKey:["payslips",a.periodId]}),e.onSuccess&&e.onSuccess(n,a)},...e})},w=function(){let{periodId:e,...r}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,s.D)({mutationFn:async function(){let{format:r="xlsx"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(await o.Z.get(c("payroll/periods/".concat(e,"/export?format=").concat(r)),{headers:(0,d.g0)({realm:"hr"}),responseType:"blob"})).data},...r})},K=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=(0,i.NL)();return(0,s.D)({mutationFn:async e=>{let{year:r,frequency:n="monthly"}=e;return(await o.Z.post(c("payroll/frequencies/generate-periods"),{year:r,frequency:n},{headers:(0,d.g0)({realm:"hr"})})).data},onSuccess:(n,a)=>{r.invalidateQueries({queryKey:["payroll-periods"]}),e.onSuccess&&e.onSuccess(n,a)},...e})}},75588:function(e,r,n){var a=n(52322),t=n(13980),i=n.n(t);n(2784);var s=n(16049),o=n(76467);let l=e=>{let{tenantName:r,breadcrumbs:n,title:t,description:i,actions:l,titleProps:u,fullWidth:d=!0}=e;return(0,a.jsxs)("div",{className:d?"w-full":"container mx-auto px-4 md:px-8 lg:px-12",children:[(0,a.jsx)("div",{children:(0,a.jsx)(s.Z,{home:"/hr/".concat(r,"/"),links:n})}),(0,a.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4 py-4",children:[(0,a.jsxs)("div",{...u,children:[(0,a.jsx)(o.Z,{variant:"heading1",children:t}),!!i&&(0,a.jsx)(o.Z,{className:"mt-1",variant:"bodySmall",children:i})]}),!!l&&(0,a.jsx)("div",{className:"flex items-center gap-3",children:l})]})]})};l.propTypes={tenantName:i().string.isRequired,breadcrumbs:i().arrayOf(i().shape({href:i().string.isRequired,name:i().string.isRequired,nodeType:i().string})).isRequired,title:i().node.isRequired,description:i().string,actions:i().node,titleProps:i().object,fullWidth:i().bool},r.Z=l}}]);
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.