PageSourceSearch

https://www.elevolt.co.ke/_next/static/chunks/pages/hr/[tenant]/onboarding-b6bc36ff7cf5db56.js

js elevolt.co.ke collected 2026-10-04 21:47:48 UTC 12,238 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]="8a7580dd-871e-49d2-9e58-f7f65bcf5438",e._sentryDebugIdIdentifier="sentry-dbid-8a7580dd-871e-49d2-9e58-f7f65bcf5438")}()}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9723],{50702:function(e,n,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/hr/[tenant]/onboarding",function(){return s(53594)}])},79337:function(e,n,s){"use strict";var t=s(52322),r=s(55351),a=s(45847),i=s.n(a),l=s(13980),c=s.n(l);let d=e=>{let{title:n="The leading job board for the modern workforce.",description:s="The #1 job board for the modern workforce.",canonical:a="https://www.elevolt.co.ke/",page:l="",thirdParty:c=!0,children:d}=e;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.PB,{canonical:a+l,description:"".concat(s," | Elevolt"),facebook:{appId:"346824926505117"},openGraph:{type:"website",url:a+l,title:"".concat(n," | Elevolt"),description:"".concat(s," | Elevolt"),images:[{url:"https://www.elevolt.co.ke/elevolt-og.png",width:1600,height:800,alt:"Elevolt"}],site_name:"Elevolt"},title:"".concat(n," | Elevolt"),twitter:{handle:"@ElevoltK",site:"@ElevoltK",cardType:"summary_large_image"}}),!!c&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i(),{id:"hs-script-loader",src:"//js-eu1.hs-scripts.com/25842252.js",strategy:"lazyOnload"}),(0,t.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,t.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,t.jsx)("noscript",{children:(0,t.jsx)("img",{height:"1",src:"https://www.facebook.com/tr?id=583365066890254&ev=PageView&noscript=1",style:{display:"none"},width:"1"})})]}),d]})};d.propTypes={title:c().string,description:c().string,canonical:c().string,page:c().string,thirdParty:c().bool,children:c().node},n.Z=d},53594:function(e,n,s){"use strict";s.r(n);var t=s(52322),r=s(99603),a=s(2784),i=s(13980),l=s.n(i),c=s(5632),d=s(36160),o=s.n(d),m=s(45007),h=s(59417),u=s(47023),x=s(65232),f=s(76467),j=s(84475),p=s(43493),g=s(77590),b=s(75588),y=s(2884),v=s(7239),w=s(79417),N=s(79337),k=s(12842);let _=e=>{let{user:n,tenantName:s,foruser:i}=e,[l,d]=(0,a.useState)(null),[j,_]=(0,a.useState)([]),[E,T]=(0,a.useState)(!1),Z=(0,c.useRouter)(),I=(0,m.I0)();(0,a.useEffect)(()=>{!o()(n)&&l&&I((0,y.FN)(n.tenant,i)).then(e=>{e&&d(e.data)})},[n]),(0,a.useEffect)(()=>{o()(n)||(0,p.userIsAdmin)(n)?I((0,y.DR)()).then(e=>{e&&_(e.data)}):Z.push("/hr/".concat(s))},[n]);let q=[{href:"/hr/".concat(s,"/onboarding"),name:"Onboarding",nodeType:"Link"}];return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(N.Z,{title:"".concat((0,g.kC)((0,g.parseUnderScore)(s))," - Onboarding")}),(0,t.jsxs)("main",{className:"container flex flex-col gap-4 mx-auto px-4 md:px-8 lg:px-12 pb-6",children:[(0,t.jsx)(b.Z,{breadcrumbs:q,description:"Get a new hire started: invite them, create their job profile and assign a workflow",tenantName:s,title:"Onboarding"}),!!l&&(0,t.jsx)(v.m,{user:l}),(0,t.jsx)(x.ZP,{children:(0,t.jsx)(x.eW,{children:(0,t.jsxs)("div",{className:"flex justify-between items-center",children:[(0,t.jsxs)("div",{className:"flex justify-start items-center",children:[(0,t.jsx)("div",{className:"mr-3 text-gray-400",children:(0,t.jsx)(r.G,{icon:h.x58,size:"2x"})}),(0,t.jsxs)("div",{children:[(0,t.jsx)(f.Z,{variant:"body",weight:"font-medium",children:"Bring your team together."}),(0,t.jsx)(f.Z,{variant:"body",children:"Invite your team members to join you here and streamline your workday and HR processes."})]})]}),(0,t.jsx)("div",{className:"flex-shrink-0",children:(0,t.jsx)(w.q,{})})]})})}),!!(l&&o()(l.profiles))&&(0,t.jsx)(x.ZP,{children:(0,t.jsx)(x.eW,{children:(0,t.jsxs)("div",{className:"flex justify-between items-center",children:[(0,t.jsxs)("div",{className:"flex justify-start items-center",children:[(0,t.jsx)("div",{className:"mr-3 text-gray-400",children:(0,t.jsx)(r.G,{icon:h.x58,size:"2x"})}),(0,t.jsxs)("div",{className:"mr-2",children:[(0,t.jsxs)(f.Z,{variant:"body",weight:"font-medium",children:["Create a job profile for ",null==l?void 0:l.name]}),(0,t.jsx)(f.Z,{variant:"body",children:"A job profile defines the key elements of a given role/position, including the educational requirements, duties and pay rates."})]})]}),(0,t.jsx)("div",{className:"flex-shrink-0",children:(0,t.jsx)(u.Z,{design:"secondary",onClick:()=>{Z.push({pathname:"/hr/".concat(s,"/profiles/new"),query:{user:l.uid}})},children:"Create"})})]})})}),(0,t.jsx)(x.ZP,{children:(0,t.jsx)(x.eW,{children:(0,t.jsxs)("div",{className:"flex justify-between items-center",children:[(0,t.jsxs)("div",{className:"flex justify-start items-center",children:[(0,t.jsx)("div",{className:"mr-3 text-gray-400",children:(0,t.jsx)(r.G,{icon:h.x58,size:"2x"})}),(0,t.jsxs)("div",{children:[(0,t.jsx)(f.Z,{variant:"body",weight:"font-medium",children:"Workflows & tasks."}),(0,t.jsx)(f.Z,{variant:"body",children:"Create & assign a workflow for the user to complete."})]})]}),(0,t.jsx)("div",{className:"flex-shrink-0",children:(0,t.jsx)(u.Z,{design:"secondary",onClick:()=>T(!0),children:"Assign"})})]})})})]}),(0,t.jsx)(k.u,{onClose:()=>T(!1),showmodal:E,subjectUser:l,tenantName:s,users:[{...l}],workflows:j})]})};_.getInitialProps=async e=>{let n=e.query.tenant,s=e.query.user;return!n&&e.res?{notFound:!0}:{tenantName:n,foruser:s}},_.propTypes={token:l().string,user:l().object,tenantName:l().string,foruser:l().string},n.default=(0,j.withAuthSync)(_)},57989:function(e,n,s){"use strict";s.d(n,{W:function(){return c}});var t=s(52322),r=s(2369),a=s(92942),i=s(13980),l=s.n(i);s(2784);let c=e=>
1{let{title:n,description:s,button:i=null,flow:l="y",...c}=e;return(0,t.jsxs)("div",{...c,className:"w-full bg-red-100 border border-red-300 p-3 rounded flex flex-col md:flex-row md:justify-between items-center relative",children:[(0,t.jsxs)("div",{className:"flex justify-start flex-col",children:[(0,t.jsx)("span",{className:"absolute -top-2 -left-1",children:(0,t.jsx)(a.FontAwesomeIcon,{className:"text-red-600 text-lg",icon:r.RLE,size:"1x"})}),!!n&&(0,t.jsx)("h6",{className:"text-center md:text-left font-semibold text-gray-800 md:leading-none mb-2",children:n}),(0,t.jsx)("p",{className:"text-center md:text-left font-normal leading-tight text-gray-800",children:s}),!!("y"===l&&i)&&(0,t.jsx)("div",{className:"mt-3",children:i})]}),!!("x"===l&&i)&&(0,t.jsx)("div",{className:"mt-3 md:ml-2 md:mt-auto",children:i})]})};c.propTypes={title:l().string,description:l().string,button:l().element,flow:l().string},n.Z=c},65232:function(e,n,s){"use strict";s.d(n,{Ol:function(){return i},eW:function(){return l}});var t=s(52322),r=s(13980),a=s.n(r);s(2784);let i=e=>{let{heading:n,padding:s={}}=e,{x:r=4,y:a=3}=s;return(0,t.jsxs)("div",{className:"card-header",children:[(0,t.jsxs)("div",{className:"px-".concat(r," py-").concat(a),children:[!!n&&(0,t.jsx)("h3",{className:"text-xl font-semibold",children:n}),e.children]}),(0,t.jsx)("hr",{className:"border-gray-200"})]})};i.propTypes={heading:a().string,children:a().node,padding:a().object};let l=e=>{let{padding:n=4}=e;return(0,t.jsx)("div",{className:"p-".concat(n," w-full relative"),children:e.children})};l.propTypes={padding:a().number,children:a().node};let c=e=>{let{heading:n,footer:s,className:r="",...a}=e;return(0,t.jsxs)("div",{className:"w-full bg-white rounded ".concat(r),...a,children:[n?(0,t.jsx)(i,{heading:n}):null,e.children,s]})};c.propTypes={heading:a().string,className:a().node,children:a().node,footer:a().node},n.ZP=c},7239:function(e,n,s){"use strict";s.d(n,{m:function(){return x}});var t=s(52322);s(2784);var r=s(13980),a=s.n(r),i=s(92942),l=s(2369),c=s(36160),d=s.n(c),o=s(43493),m=s(47023),h=s(57989);let{userIsAdmin:u}=o,x=e=>{let{user:n,tenantName:s}=e;return(0,t.jsx)(t.Fragment,{children:n?(0,t.jsx)("div",{className:"w-full bg-white rounded p-2 md:p-4 flex flex-col shadow-sm",children:(0,t.jsxs)("div",{className:"w-full flex flex-row justify-start items-center",children:[(0,t.jsx)("div",{className:"flex justify-center items-center text-center flex-grow-0 mx-auto avatar avatar-lg bg-no-repeat bg-center ".concat(n.avatar?"bg-white":"bg-gray-200"),style:{backgroundImage:"url(".concat(n.avatar,")")},children:!n.avatar&&n.name?(0,t.jsx)("p",{children:n.name.substr(0,1)}):null}),(0,t.jsxs)("div",{className:"flex-grow ml-4",children:[(0,t.jsx)("p",{className:"leading-none text-sm",children:"Welcome back,"}),(0,t.jsx)("p",{className:"leading-none text-base my-1 font-semibold",children:n.name}),(0,t.jsxs)("p",{className:"leading-none text-sm font-medium",children:[!d()(n.profiles)&&(0,t.jsx)("span",{className:"leading-none text-sm font-medium mr-3",children:n.profiles[0].title}),u(n)&&(0,t.jsx)("span",{className:"px-2 py-[2px] rounded-xl bg-blue-100 text-blue leading-none text-[10px] font-medium",children:"ADMIN"})]})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(m.Z,{className:"hidden md:inline-flex",design:"secondary",href:"/hr/".concat(s,"/profile"),children:"View Profile"}),(0,t.jsx)(m.Z,{className:"inline-flex md:hidden px-1",design:"plain",href:"/hr/".concat(s,"/profile"),children:(0,t.jsx)(i.FontAwesomeIcon,{className:"text-sm",icon:l.eFW})})]})]})}):null})},f=e=>{let{user:n}=e;if(!n)return;let s=(null==n?void 0:n.status)==="inactive"||(null==n?void 0:n.status)==="suspended",r=(null==n?void 0:n.status)==="inactive"?"This user account is currently inactive":"This user account is currently suspended";return(0,t.jsxs)(t.Fragment,{children:[!!s&&(0,t.jsx)("div",{className:"w-full mb-4",children:(0,t.jsx)(h.Z,{description:r})}),(0,t.jsx)("div",{className:"w-full bg-white px-4 py-4 rounded mb-4",children:(0,t.jsxs)("div",{className:"w-full flex justify-start items-center",children:[(0,t.jsx)("div",{className:"flex justify-center items-center text-center avatar bg-no-repeat bg-center bg-blue-50",style:{backgroundImage:"url(".concat(n.avatar,")")},children:!n.avatar&&n.name?(0,t.jsx)("p",{className:"font-semibold",children:n.name.substr(0,1)}):null}),(0,t.jsxs)("div",{className:"border-r border-gray-300 pr-4 ml-4",children:[(0,t.jsx)("h3",{className:"text-sm text-gray-500 font-semibold",children:"Name"}),(0,t.jsx)("p",{className:"text-sm text-gray-700 font-medium leading-none",children:n.name})]}),(0,t.jsxs)("div",{className:"border-r border-gray-300 pr-4 pl-4",children:[(0,t.jsxs)("h3",{className:"text-sm text-gray-500 font-semibold",children:[(0,t.jsx)(i.FontAwesomeIcon,{className:"hover:text-blue-dark mr-1",icon:l.mSY,size:"sm"}),"Email"]}),(0,t.jsx)("p",{className:"text-sm text-gray-700 font-medium leading-none",children:n.email?n.email:"unknown"})]}),(0,t.jsxs)("div",{className:"pr-4 pl-4",children:[(0,t.jsxs)("h3",{className:"text-sm text-gray-500 font-semibold",children:[(0,t.jsx)(i.FontAwesomeIcon,{className:"hover:text-blue-dark mr-1",icon:l.j1w,size:"sm"}),"Phone"]}),(0,t.jsx)("p",{className:"text-sm text-gray-700 font-medium leading-none",children:n.phone?n.phone:"unknown"})]})]})})]})};f.propTypes={user:a().shape({avatar:a().any,email:a().any,name:a().shape({substr:a().func}),phone:a().any})},n.Z=f}},function(e){e.O(0,[4976,5351,9603,9436,9400,2884,4309,2888,9774,179],function(){return e(e.s=50702)}),_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.