PageSourceSearch

https://www.elevolt.co.ke/_next/static/chunks/pages/hr/[tenant]/di…/view/[user]/documents-e59dd9cda0468b00.js

js elevolt.co.ke collected 2026-10-04 21:47:08 UTC 2,669 bytes, 1 lines download raw bytes

1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="b0573fed-2f54-4507-92a6-d72b4a74035f",e._sentryDebugIdIdentifier="sentry-dbid-b0573fed-2f54-4507-92a6-d72b4a74035f")}()}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7776],{78937:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/hr/[tenant]/directory/view/[user]/documents",function(){return t(96342)}])},96342:function(e,n,t){"use strict";t.r(n);var s=t(52322),r=t(2784),l=t(13980),a=t.n(l),i=t(5632),c=t(77590),o=t(43493),u=t(90269),d=t(42369),f=t(75588),m=t(7239),h=t(55015),x=t(84475),p=t(79337),g=t(88554);let b=e=>{let{user:n,tenantName:t,foruser:l}=e,a=(0,i.useRouter)(),{data:x,isLoading:b}=(0,u.RX)({user:l}),y=(e,n)=>(0,o.userIsAdmin)(n)||(0,o.userCan)(n,"manage-users")||n.uid===e;(0,r.useEffect)(()=>{b||y(x,n)||a.push("/hr/".concat(t,"/"))},[n,b,x]);let w=[{href:"/hr/".concat(t,"/directory"),name:"Directory",nodeType:"Link"},{href:"/hr/".concat(t,"/directory/view/").concat(null==x?void 0:x.uid,"/"),name:(null==x?void 0:x.name)||"Team Member",nodeType:"Link"},{href:"/hr/".concat(t,"/directory/view/").concat(null==x?void 0:x.uid,"/documents"),name:"Documents",nodeType:"Link"}];return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(p.Z,{title:"".concat((0,c.kC)((0,c.parseUnderScore)(t))," - Documents")}),!!b&&(0,s.jsx)(d.J,{fixed:!1}),(0,s.jsxs)("main",{className:"container flex flex-col gap-4 mx-auto px-4 md:px-8 lg:px-12 pb-6",children:[(0,s.jsx)(f.Z,{breadcrumbs:w,description:"Contracts, certificates and other files held on this person's record",tenantName:t,title:"Documents"}),!!x&&(0,s.jsx)(m.Z,{user:x}),(0,s.jsxs)("div",{className:"flex flex-col lg:flex-row",children:[(0,s.jsx)("div",{className:"w-full lg:w-9/12 lg:pr-6 flex flex-col",children:!!((0,o.userCan)(n,"manage-users")||n.uid===(null==x?void 0:x.uid))&&(0,s.jsx)("div",{className:"w-full flex flex-col mb-4",children:(0,s.jsx)(g.b,{authUser:n,tenantName:t,user:x})})}),(0,s.jsx)("div",{className:"w-full lg:w-3/12 lg:pl-6 mt-6 lg:mt-0 flex flex-col",children:(0,s.jsx)(h.Z,{activePage:"documents",subjectUser:x,tenantName:t})})]})]})]})};b.getInitialProps=async e=>{let n=e.query.tenant,t=e.query.user;return!n&&e.res?{notFound:!0}:{tenantName:n,foruser:t}},b.propTypes={token:a().string,user:a().object,tenantName:a().string,foruser:a().string},n.default=(0,x.withAuthSync)(b)}},function(e){e.O(0,[5351,6383,1985,974,5730,8881,2230,2888,9774,179],function(){return e(e.s=78937)}),_N_E=e.O()}]);

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.