1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="84deaf66-0842-4fc3-8999-b49b96ca4b85",e._sentryDebugIdIdentifier="sentry-dbid-84deaf66-0842-4fc3-8999-b49b96ca4b85")}()}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1345],{1345:function(e,t,n){n.d(t,{j:function(){return v}});var s=n(52322),r=n(2784),a=n(45007),i=n(13980),o=n.n(i),c=n(36160),l=n.n(c),d=n(25237),m=n.n(d),h=n(16049),u=n(65232),p=n(1973),x=n(77590),g=n(76467),f=n(2884),j=n(84475),b=n(79337);let y=m()(()=>n.e(8871).then(n.bind(n,8871)),{loadableGenerated:{webpack:()=>[8871]},ssr:!1}),w=e=>{let{user:t,tenantName:n,documentId:i,mode:o}=e,[c,d]=(0,r.useState)({}),[m,j]=(0,r.useState)(!0),[w,v]=(0,r.useState)(!1),N=(0,a.I0)(),T="sign"===o?"Sign Document":"View Document",k=(0,r.useMemo)(()=>[{href:"/hr/".concat(n,"/documents/").concat(o),name:T,nodeType:"Link"}],[n,o,T]);return(0,r.useEffect)(()=>
1{l()(t)||(j(!0),N((0,f.Me)(i)).then(e=>{(null==e?void 0:e.data)?d(e.data):v(!0)}).catch(()=>{v(!0)}).finally(()=>{j(!1)}))},[t]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(b.Z,{title:"".concat((0,x.kC)((0,x.parseUnderScore)(n))," - ").concat(T)}),(0,s.jsxs)("div",{className:"container mx-auto px-6 md:px-8 lg:px-12 mb-8",children:[(0,s.jsx)("div",{className:"w-full flex justify-start",children:(0,s.jsx)(h.Z,{home:"/hr/".concat(n,"/"),links:k})}),(0,s.jsxs)(u.ZP,{className:"mt-4",children:[(0,s.jsx)(u.Ol,{children:(0,s.jsx)(g.Z,{variant:"sectionHeader",children:T})}),(0,s.jsxs)(u.eW,{children:[!!(m||w)&&(0,s.jsx)(p.Z,{description:w?"The document could not be loaded. Please try again.":void 0,design:"wrapped",isError:!!w,isLoading:!!m,message:w?"Failed to load document":"Loading document..."}),!!(!m&&!w&&!l()(c.attachments))&&(0,s.jsx)(y,{document:c,documentId:i,file:c.attachments[0],mode:o,tenantName:n})]})]})]})]})};w.getInitialProps=async e=>{let t=e.query.tenant,n=e.query.document;return t&&n||!e.res?{tenantName:t,documentId:n}:{notFound:!0}},w.propTypes={user:o().object,tenantName:o().string,documentId:o().string,mode:o().oneOf(["view","sign"]).isRequired};let v=e=>{let t=t=>(0,s.jsx)(w,{...t,mode:e});return t.getInitialProps=w.getInitialProps,t.propTypes={user:o().object,tenantName:o().string,documentId:o().string},(0,j.withAuthSync)(t)}},79337:function(e,t,n){var s=n(52322),r=n(55351),a=n(45847),i=n.n(a),o=n(13980),c=n.n(o);let l=e=>{let{title:t="The leading job board for the modern workforce.",description:n="The #1 job board for the modern workforce.",canonical:a="https://www.elevolt.co.ke/",page:o="",thirdParty:c=!0,children:l}=e;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(r.PB,{canonical:a+o,description:"".concat(n," | Elevolt"),facebook:{appId:"346824926505117"},openGraph:{type:"website",url:a+o,title:"".concat(t," | Elevolt"),description:"".concat(n," | Elevolt"),images:[{url:"https://www.elevolt.co.ke/elevolt-og.png",width:1600,height:800,alt:"Elevolt"}],site_name:"Elevolt"},title:"".concat(t," | Elevolt"),twitter:{handle:"@ElevoltK",site:"@ElevoltK",cardType:"summary_large_image"}}),!!c&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i(),{id:"hs-script-loader",src:"//js-eu1.hs-scripts.com/25842252.js",strategy:"lazyOnload"}),(0,s.jsx)(i(),{dangerouslySetInnerHTML:{__html:"(function(h,o,t,j,a,r){\n h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};\n h._hjSettings={hjid:2328489,hjsv:6};\n a=o.getElementsByTagName('head')[0];\n r=o.createElement('script');r.async=1;\n r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;\n a.appendChild(r);\n })(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');"},id:"hotjar",strategy:"lazyOnload"}),(0,s.jsx)(i(),{dangerouslySetInnerHTML:{__html:"!function(f,b,e,v,n,t,s)\n {if(f.fbq)return;n=f.fbq=function(){n.callMethod?\n n.callMethod.apply(n,arguments):n.queue.push(arguments)};\n if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';\n n.queue=[];t=b.createElement(e);t.async=!0;\n t.src=v;s=b.getElementsByTagName(e)[0];\n s.parentNode.insertBefore(t,s)}(window, document,'script',\n 'https://connect.facebook.net/en_US/fbevents.js');\n fbq('init', '583365066890254');\n fbq('track', 'PageView');"},id:"meta",strategy:"lazyOnload"}),(0,s.jsx)("noscript",{children:(0,s.jsx)("img",{height:"1",src:"https://www.facebook.com/tr?id=583365066890254&ev=PageView&noscript=1",style:{display:"none"},width:"1"})})]}),l]})};l.propTypes={title:c().string,description:c().string,canonical:c().string,page:c().string,thirdParty:c().bool,children:c().node},t.Z=l},16049:function(e,t,n){var s=n(52322),r=n(2369),a=n(92942),i=n(13980),o=n.n(i),c=n(2784),l=n(47023);let d=e=>{let{home:t,links:n}=e,i=e=>"undefined"===e?"unknown":e;return(0,s.jsx)("nav",{"aria-label":"Breadcrumb",children:(0,s.jsxs)("ul",{className:"flex w-full flex-row items-center breadcrumbs overflow-x-auto py-2 md:py-4",children:[(0,s.jsx)("li",{className:"flex items-center",children:(0,s.jsx)(l.Z,{asDefaultATag:!0,className:"!px-0 !py-0",design:"plain",href:t,children:(0,s.jsx)(a.FontAwesomeIcon,{className:"text-lg text-gray-400 hover:text-blue-dark",icon:r.J9Y,size:"sm"})})}),n.map((e,t)=>
1{let o=t+1===n.length,d="Link"===e.nodeType||"a"===e.nodeType;return(0,s.jsxs)(c.Fragment,{children:[(0,s.jsx)("li",{"aria-hidden":"true",className:"text-sm flex items-center",children:(0,s.jsx)(a.FontAwesomeIcon,{className:"text-xs text-gray-400 px-2",icon:r._tD,size:"xs"})}),(0,s.jsxs)("li",{className:"font-medium text-sm flex items-center",children:[!!d&&(0,s.jsx)("a",{"aria-current":o?"page":void 0,className:"text-sm whitespace-nowrap ".concat(o?"text-blue-dark":""),href:e.href,children:i(e.name)}),"Button"===e.nodeType&&(0,s.jsx)(l.Z,{asDefaultATag:!0,className:"text-blue-dark",design:"plain",href:e.href,children:i(e.name)}),!!(!d&&"Button"!==e.nodeType)&&(0,s.jsx)("span",{className:"text-sm whitespace-nowrap",children:i(e.name)})]})]},"".concat(e.href,"-").concat(t))})]})})};d.propTypes={home:o().string.isRequired,links:o().arrayOf(o().shape({nodeType:o().oneOf(["Link","a","Button"]).isRequired,href:o().string.isRequired,name:o().string.isRequired}))},d.defaultProps={links:[]},t.Z=d},65232:function(e,t,n){n.d(t,{Ol:function(){return i},eW:function(){return o}});var s=n(52322),r=n(13980),a=n.n(r);n(2784);let i=e=>{let{heading:t,padding:n={}}=e,{x:r=4,y:a=3}=n;return(0,s.jsxs)("div",{className:"card-header",children:[(0,s.jsxs)("div",{className:"px-".concat(r," py-").concat(a),children:[!!t&&(0,s.jsx)("h3",{className:"text-xl font-semibold",children:t}),e.children]}),(0,s.jsx)("hr",{className:"border-gray-200"})]})};i.propTypes={heading:a().string,children:a().node,padding:a().object};let o=e=>{let{padding:t=4}=e;return(0,s.jsx)("div",{className:"p-".concat(t," w-full relative"),children:e.children})};o.propTypes={padding:a().number,children:a().node};let c=e=>{let{heading:t,footer:n,className:r="",...a}=e;return(0,s.jsxs)("div",{className:"w-full bg-white rounded ".concat(r),...a,children:[t?(0,s.jsx)(i,{heading:t}):null,e.children,n]})};c.propTypes={heading:a().string,className:a().node,children:a().node,footer:a().node},t.ZP=c},1973:function(e,t,n){var s=n(52322),r=n(2369),a=n(92942),i=n(13980),o=n.n(i);n(2784);var c=n(42369);let l=e=>{let{items:t,message:n,description:i,icon:o,showIcon:c,action:l}=e;return(0,s.jsxs)("div",{className:"w-full h-full flex justify-center items-center flex-col p-8",children:[!!c&&(0,s.jsx)(a.FontAwesomeIcon,{className:"text-gray-400 mb-2 text-3xl",icon:o||r.wK3,size:"xl"}),!!t&&(0,s.jsxs)("p",{className:"text-gray-500 text-center font-medium",children:["We couldn't load any ",t,"."]}),!!n&&(0,s.jsx)("p",{className:"text-gray-500 text-center font-medium",children:n}),!!i&&(0,s.jsx)("p",{className:"text-gray-400 text-center text-sm mt-1",children:i}),!!l&&(0,s.jsx)("div",{className:"mt-4",children:l})]})};l.propTypes={showIcon:o().bool,items:o().string,message:o().string,description:o().string,icon:o().object,action:o().node};let d=e=>{let{className:t,isLoading:n,action:i,items:o,message:d,description:m,icon:h,showIcon:u,isError:p}=e;return(0,s.jsxs)("div",{className:"w-full bg-transparent text-center flex flex-col items-center ".concat(t),children:[!n&&!p&&(0,s.jsx)(l,{action:i,description:m,icon:h,items:o,message:d,showIcon:u}),!n&&!!p&&(0,s.jsxs)("div",{className:"w-full flex flex-col justify-center items-center text-red-500",children:[(0,s.jsx)(a.FontAwesomeIcon,{className:"mb-2",icon:r.eHv,size:"xl"}),(0,s.jsx)("p",{className:"text-center font-medium",children:d||"An error occurred loading ".concat(null!=o?o:"data","...")}),!!m&&(0,s.jsx)("p",{className:"text-red-400 text-center text-sm mt-1",children:m}),!!i&&(0,s.jsx)("div",{className:"mt-4",children:i})]}),!!n&&(0,s.jsx)("div",{className:"w-full flex justify-center items-center",children:(0,s.jsx)(c.Z,{size:"sm"})})]})};d.propTypes={items:o().string,message:o().string,description:o().string,icon:o().object,action:o().node,className:o().string,showIcon:o().bool,isLoading:o().bool,isError:o().bool};let m=e=>{let{items:t,message:n,description:r,icon:a,action:i,className:o,showIcon:c=!0,design:l,isLoading:m=!1,isError:h=!1}=e;return"wrapped"===l?(0,s.jsx)("div",{className:"w-full bg-blue-50 p-4 rounded border border-dashed",children:(0,s.jsx)(d,{action:i,className:o,description:r,icon:a,isError:h,isLoading:m,items:t,message:n,showIcon:c})}):(0,s.jsx)(d,{action:i,className:o,description:r,icon:a,isError:h,isLoading:m,items:t,message:n,showIcon:c})};m.propTypes={items:o().string,message:o().string,description:o().string,icon:o().object,action:o().node,className:o().string,
1showIcon:o().bool,design:o().oneOf(["wrapped","default"]),isLoading:o().bool,isError:o().bool},t.Z=m}}]);
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.