PageSourceSearch

https://www.elevolt.co.ke/_next/static/chunks/6035-504b76d1e87e18ef.js

js elevolt.co.ke collected 2026-10-04 21:45:59 UTC 26,614 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]="4e6bc835-64ab-4f66-b655-98a383809c13",e._sentryDebugIdIdentifier="sentry-dbid-4e6bc835-64ab-4f66-b655-98a383809c13")}()}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6035],{71320:function(e,n,t){var a=t(52322),s=t(13980),r=t.n(s);t(2784);var l=t(10988),i=t(4542),o=t(76467),d=t(237),c=t(74618);let u=e=>(null==e?void 0:e.answer_url)?e.answer_url:(0,c.xX)(null==e?void 0:e.answer)?e.answer:null,p=e=>{let{answer:n}=e,t=(0,d.s6)(null==n?void 0:n.type),s=null==n?void 0:n.answer,r=(0,a.jsx)(o.Z,{color:"text-gray-400",variant:"body",children:"No answer"});if(t===d.j$.YES_NO)return s===d.gT||s===d.NO?(0,a.jsx)(l.Z,{color:s===d.gT?"green":"gray",label:s===d.gT?"Yes":"No",size:"md"}):r;if(t===d.j$.LINK)return s?(0,a.jsx)(i.Z,{className:"text-base text-blue hover:text-blue-dark break-all",label:"Applicant-provided link",url:s,warningKind:"link",children:s}):r;if(t===d.j$.FILE){let e=u(n);return e?(0,a.jsx)(i.Z,{as:"button",className:"inline-flex items-center gap-2 text-base text-blue hover:text-blue-dark font-medium",label:"Applicant-uploaded file",url:e,warningKind:"file",children:"View File"}):(0,a.jsx)(o.Z,{color:"text-gray-400",variant:"body",children:"File unavailable"})}return s?(0,a.jsx)(o.Z,{className:"whitespace-pre-line break-words",variant:"body",children:s}):r};p.propTypes={answer:r().shape({title:r().string,type:r().string,answer:r().string,answer_url:r().string})},n.Z=p},10988:function(e,n,t){var a=t(52322),s=t(13980),r=t.n(s),l=t(12524),i=t.n(l);let o={blue:"bg-blue-100 text-blue-700",green:"bg-green-100 text-green-700",red:"bg-red-100 text-red-700",yellow:"bg-yellow-100 text-yellow-700",gray:"bg-gray-100 text-gray-700",orange:"bg-orange-100 text-orange-700",purple:"bg-purple-100 text-purple-700"},d={sm:"text-xs px-1.5 py-0.5",md:"text-xs px-2 py-1"},c=e=>{let{label:n,color:t="gray",size:s="sm",className:r}=e,l=o[t]||o.gray,c=d[s];return(0,a.jsx)("span",{className:i()("inline-flex items-center rounded font-medium",l,c,r),children:n})};c.propTypes={label:r().string.isRequired,color:r().oneOf(["blue","green","red","yellow","gray","orange","purple"]),size:r().oneOf(["sm","md"]),className:r().string},n.Z=c},98473:function(e,n,t){t.d(n,{Z:function(){return K}});var a=t(52322),s=t(2369),r=t(92942),l=t(60418),i=t(29785),o=t(36160),d=t.n(o),c=t(13980),u=t.n(c),p=t(39474),m=t.n(p),h=t(2784),g=t(47023),f=t(71896),v=t(17047),x=t(1973),b=t(77590),y=t(47477),w=t(2230),j=t(20270),N=t(73067),T=t(31948),C=t(76467),E=t(82036),k=t(23825),Z=t(15147),I=t(93803),A=t(60315),_=t(61532),R=t(72627);let S={SAME_GROUP:5,SESSION_BREAK:30},L=e=>{let n=new Date(e);return(0,Z.Z)(n)?"Today":(0,I.Z)(n)?"Yesterday":(0,A.default)(n,"EEEE, MMMM d")},O=(e,n,t)=>{var a,s,r,l;let i=new Date(e.created_at),o=n?new Date(n.created_at):null,d=t?new Date(t.created_at):null,c=!n||o&&!(0,_.default)(i,o)||o&&(0,R.Z)(i,o)>=S.SESSION_BREAK,u=!n||c||(null===(a=n.user)||void 0===a?void 0:a.uid)!==(null===(s=e.user)||void 0===s?void 0:s.uid)||o&&(0,R.Z)(i,o)>=S.SAME_GROUP,p=!t||(null===(r=t.user)||void 0===r?void 0:r.uid)!==(null===(l=e.user)||void 0===l?void 0:l.uid)||d&&(0,R.Z)(d,i)>=S.SAME_GROUP||d&&!(0,_.default)(i,d);return{showDateDivider:c,dividerDate:c?L(i):null,isFirstInGroup:u,isLastInGroup:p,showAvatar:u,showName:u,showTimestamp:u}},P=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e&&0!==e.length?e.map((n,t)=>{let a=t>0?e[t-1]:null,s=t<e.length-1?e[t+1]:null;return{...n,displayProps:O(n,a,s)}}):[]};window.Pusher=m();let D=e=>{"undefined"!=typeof Notification&&Notification.requestPermission().then(n=>{if("granted"===n){var t;let n=(0,b.wC)((null==e?void 0:e.message)||"",50);new Notification("Elevolt: New chat message",{body:"".concat(null==e?void 0:null===(t=e.user)||void 0===t?void 0:t.name," says: ").concat(n),icon:"https://www.elevolt.co.ke/icons/icon-120x120.png"})}})},F=()=>{var e;return"undefined"==typeof document?null:(null===(e=document.cookie.split("; ").find(e=>e.startsWith("elv_tenant=")))||void 0===e?void 0:e.split("=")[1])||null},z=()=>{if(window.Echo)return window.Echo;let e=F(),n=new i.ZP({broadcaster:"pusher",key:"7d26d4a62a96c62fdfeb",cluster:"eu",forceTLS:!0,authEndpoint:"".concat(E.JW,"broadcasting/auth"),authorizer:(n,t)=>({authorize:(a,s)=>{l.Z.post(t.authEndpoint,{socket_id:a,channel_name:n.name},{withCredentials:!0,headers:{Accept:"application/json","Content-Type":"application/json",...e&&{"X-Company":e}}}).then(e=>s(null,e.data)).catch(e=>s(e,null))}})});return window.Echo=n,n},M=e=>{let{date:n}=e;return(0,a.jsxs)("div",{className:"w-full flex items-center justify-center my-4",children:[(0,a.jsx)("div",{className:"flex-grow border-t border-gray-200"}),(0,a.jsx)(C.Z,{className:"px-4",color:"text-gray-400",variant:"caption",children:n}),(0,a.jsx)("div",{className:"flex-grow border-t border-gray-200"})]})};M.propTypes={date:u().string.isRequired};let q=(0,h.forwardRef)(function(e,n){let{message:t,authUser:s}=e,r=t.user.uid===(null==s?void 0:s.uid),l=t.displayProps||{showAvatar:!0,showName:!0,showTimestamp:!0,isFirstInGroup:!0,isLastInGroup:!0,showDateDivider:!1},i=(0,h.useMemo)(()=>t.user.name===(null==s?void 0:s.name)?"You":t.user.name,[t.user.name,null==s?void 0:s.name]),o=r?s:t.user,d=l.isLastInGroup?"mb-3":"mb-0.5",c=l.isFirstInGroup?"pt-2":"pt-0";return(0,a.jsxs)(a.Fragment,{children:[!!l.showDateDivider&&(0,a.jsx)(M,{date:l.dividerDate}),(0,a.jsxs)("div",{className:"w-full flex px-2 ".concat(c," ").concat(d," rounded-md rounded-tl-none ").concat(r?"justify-end":"justify-start"),children:[(0,a.jsxs)("div",{className:"w-auto max-w-[90%] flex gap-x-2 ".concat(r?"ml-auto":"mr-auto"),children:[!r&&(0,a.jsx)("div",{className:"mr-2 flex-shrink-0 w-8",children:!!l.showAvatar&&(0,a.jsx)(f.Z,{rounded:!0,size:"sm",user:o})}),(0,a.jsxs)("div",{className:"w-full flex flex-col",children:[!!(l.showName&&l.showTimestamp)&&(0,a.jsxs)(C.Z,{className:"mt-1 mb-0.5",color:"text-gray-400",variant:"caption",children:[(0,a.jsx)("span",{className:"text-gray-500 font-medium",children:i}),(0,a.jsx)("span",{className:"mx-1",children:"\xb7"}),(0,y.p6)(t.created_at,"p")]}),(0,a.jsx)("div",{className:"p-2 rounded-lg ".concat(l.isFirstInGroup?"rounded-tl-none":""," ").concat(r?"mr-0 ml-auto":"ml-0 mr-
1auto"," ").concat(r?"bg-blue-50 text-gray-700":"bg-white text-gray-700 border border-gray-100"),children:(0,a.jsx)(N.Z,{className:"text-sm whitespace-pre-wrap",content:t.message,size:"sm"})})]}),!!r&&(0,a.jsx)("div",{className:"ml-2 flex-shrink-0 w-8",children:!!l.showAvatar&&(0,a.jsx)(f.Z,{rounded:!0,size:"sm",user:s})})]}),(0,a.jsx)("hr",{className:"border-transparent",ref:n})]})]})});q.propTypes={message:u().shape({mid:u().oneOfType([u().string,u().number]),message:u().string,created_at:u().string,user:u().shape({uid:u().oneOfType([u().string,u().number]),name:u().string,avatar:u().string}),displayProps:u().shape({showDateDivider:u().bool,dividerDate:u().string,isFirstInGroup:u().bool,isLastInGroup:u().bool,showAvatar:u().bool,showName:u().bool,showTimestamp:u().bool})}).isRequired,authUser:u().shape({uid:u().oneOfType([u().string,u().number]),name:u().string,avatar:u().string})};let W=e=>{let{user:n}=e,t=(0,h.useRef)(null);return(0,h.useEffect)(()=>{var e;null===(e=t.current)||void 0===e||e.scrollIntoView({behavior:"smooth"})},[]),(0,a.jsx)("div",{className:"w-full flex p-2 mb-2 rounded-lg rounded-tl-none justify-start",ref:t,children:(0,a.jsxs)("div",{className:"w-auto flex items-center",children:[(0,a.jsx)("div",{className:"mr-2 flex-shrink-0",children:(0,a.jsx)(f.Z,{rounded:!0,size:"sm",user:n})}),(0,a.jsx)("div",{className:"px-4 py-1 rounded-md rounded-tl-none ml-0 mr-auto bg-white",children:(0,a.jsx)(r.FontAwesomeIcon,{className:"text-gray-200",icon:s.cNd,size:"1x"})})]})})};W.propTypes={user:u().shape({name:u().string,avatar:u().string}).isRequired};let G=()=>(0,a.jsxs)("div",{className:"text-center mt-6",children:[(0,a.jsx)(C.Z,{color:"text-gray-500",variant:"bodySmall",children:"This is the beginning of your conversation."}),(0,a.jsxs)(C.Z,{color:"text-gray-500",variant:"bodySmall",children:["Say ",(0,a.jsx)("span",{className:"italic text-xs",children:'"Hi"'})]})]}),U=e=>{let{otherUser:n,canClose:t,onClose:l,isClosing:i}=e;return(0,a.jsxs)("div",{className:"w-full flex flex-row justify-between items-center",children:[(0,a.jsxs)(C.Z,{as:"h3",variant:"sectionHeader",children:[(0,a.jsx)(r.FontAwesomeIcon,{className:"mr-2",icon:s.r$M,size:"1x"}),!!(null==n?void 0:n.name)&&"Chat with ".concat(n.name),!(null==n?void 0:n.name)&&"Chat"]}),!!t&&(0,a.jsx)("div",{className:"flex flex-grow-0",children:(0,a.jsx)(g.Z,{beforeIcon:(0,a.jsx)(r.FontAwesomeIcon,{className:"mr-2 text-sm",icon:s.byT,size:"1x"}),design:"secondary",disabled:i,isLoading:i,onClick:l,children:"Close Chat"})})]})};U.propTypes={otherUser:u().shape({name:u().string}),canClose:u().bool,onClose:u().func.isRequired,isClosing:u().bool};let B=e=>
1{let{onSend:n,onTyping:t,onBlur:l,isSending:i}=e,[o,c]=(0,h.useState)(""),u=(0,h.useMemo)(()=>!d()(o)&&!(0,y.j9)(o),[o]),p=(0,h.useCallback)(e=>{var t;if(null==e||null===(t=e.preventDefault)||void 0===t||t.call(e),!u||i)return;let a=(0,y.$N)(o);(0,y.j9)(a)||(n(a),c(""),null==l||l())},[o,u,i,n,l]),m=(0,h.useCallback)(e=>{var n;let a=(null==e?void 0:null===(n=e.target)||void 0===n?void 0:n.value)||"";if("function"==typeof(null==a?void 0:a.replaceAll)){if((0,y.j9)(a)){c("");return}c(a),null==t||t()}},[t]),f=(0,h.useCallback)(e=>{(e.ctrlKey||e.metaKey)&&(13===e.keyCode||10===e.keyCode)&&u&&p(e)},[u,p]);return(0,a.jsxs)("form",{action:"#",className:"w-full flex flex-col rounded-b p-2 relative",onKeyDown:f,onSubmit:p,children:[(0,a.jsx)(T.ZP,{maxHeight:120,minHeight:60,name:"message",onBlur:l,onChange:m,placeholder:"Type a message...",toolbar:"minimal",value:o}),(0,a.jsx)("div",{className:"absolute right-4 bottom-4 z-50",children:(0,a.jsx)(g.Z,{beforeIcon:(0,a.jsx)(r.FontAwesomeIcon,{className:"text-lg",icon:s.XCy,size:"1x"}),className:"px-2 !py-2 text-lg ".concat(u?"text-blue":"text-gray-700"),design:"plain",disabled:!u||i,tabIndex:0,toolTip:"Send message (Ctrl+Enter)",type:"submit"})})]})};B.propTypes={onSend:u().func.isRequired,onTyping:u().func,onBlur:u().func,isSending:u().bool};let H=e=>{let{chatId:n,authUser:t,onNewMessage:a,onTyping:s}=e,r=(0,h.useRef)(null);return(0,h.useEffect)(()=>{var e,l;if(!n)return;let i=z();if(i)return r.current=i.join("chat.".concat(n)),null===(e=r.current)||void 0===e||e.listen("MessageCreated",e=>{var n,s;null==a||a(e.message),(null===(s=e.message)||void 0===s?void 0:null===(n=s.user)||void 0===n?void 0:n.uid)!==(null==t?void 0:t.uid)&&D(e.message)}),null===(l=i.private("chat.".concat(n)))||void 0===l||l.listenForWhisper("typing",e=>{null==s||s(e)}),()=>{null==i||i.leaveChannel("chat.".concat(n))}},[n,null==t?void 0:t.uid,a,s]),{sendTypingWhisper:(0,h.useCallback)(e=>{var a;n&&window.Echo&&(null===(a=window.Echo.private("chat.".concat(n)))||void 0===a||a.whisper("typing",{user:{name:null==t?void 0:t.name,avatar:null==t?void 0:t.avatar},typing:e}))},[n,null==t?void 0:t.name,null==t?void 0:t.avatar])}},J=e=>{var n;let{chatId:t,handleCloseChatTabs:s}=e,[r,l]=(0,h.useState)([]),[i,o]=(0,h.useState)(null),c=(0,h.useRef)(null),u=(0,h.useRef)(null),{data:p}=(0,j.Pi)({enabled:!!t}),{data:m,isLoading:g,isFetching:f,error:b}=(0,w.CH)(t,!!t),y=(0,w.$3)(),N=(0,w.Ej)(),T=(0,h.useMemo)(()=>{let e=(null==m?void 0:m.messages)||[],n=new Set(e.map(e=>e.mid));return P([...e,...r.filter(e=>!n.has(e.mid))])},[null==m?void 0:m.messages,r]),C=(0,h.useMemo)(()=>((null==m?void 0:m.users)||[]).find(e=>e.uid!==(null==p?void 0:p.uid))||null,[null==m?void 0:m.users,null==p?void 0:p.uid]),E=(null==p?void 0:p.type)==="company",Z=(0,h.useCallback)(()=>{var e;null===(e=u.current)||void 0===e||e.scrollTo({top:u.current.scrollHeight+u.current.clientHeight,left:0,behavior:"smooth"})},[]),I=(0,h.useCallback)(e=>{e&&e.user.uid!==(null==p?void 0:p.uid)&&l(n=>n.some(n=>n.mid===e.mid)?n:[...n,e])},[null==p?void 0:p.uid]),A=(0,h.useCallback)(e=>{var n;(null==e?void 0:null===(n=e.user)||void 0===n?void 0:n.name)!==(null==p?void 0:p.name)&&o(e)},[null==p?void 0:p.name]),{sendTypingWhisper:_}=H({chatId:t,authUser:p,onNewMessage:I,onTyping:A});(0,h.useEffect)(()=>{Z()},[T.length,Z]);let R=(0,h.useCallback)(e=>{y.mutate({message:e,chat_id:t},{onSuccess:e=>{(null==e?void 0:e.data)&&l(n=>[...n,e.data])}})},[t,y]),S=(0,h.useCallback)(()=>{_(!0)},[_]),L=(0,h.useCallback)(()=>{_(!1)},[_]),O=(0,h.useCallback)(()=>{(0,v.Z)({handler:async()=>{var e;await N.mutateAsync(t),null===(e=window.Echo)||void 0===e||e.leaveChannel("chat.".concat(t)),null==s||s()},title:"Close Chat",message:"Closing this chat will terminate your conversation here and you will not be able to contact the applicant via chat.",confirmButtonText:"Yes, close chat",cancelButtonText:"No, keep it open"})},[t,N,s]);if(!t)return null;let D=(null==i?void 0:i.typing)&&(null===(n=i.user)||void 0===n?void 0:n.name)!==(null==p?void 0:p.name),F=!d()(T);return(0,a.jsxs)("div",{className:"w-full chat-room",children:[(0,a.jsx)(U,{canClose:E,isClosing:N.isPending,onClose:O,otherUser:C}),(0,a.jsxs)("div",{className:"flex flex-col bg-gray-50/50 p-0 mt-3 rounded border",children:[!!g&&(0,a.jsx)("div",{className:"p-8",children:(0,a.jsx)(x.Z,{design:"wrapped",isLoading:!0,message:"Loading conversation..."})}),!!(b&&!g)&&(0,a.jsx)("div",{className:"p-8",children:(0,a.jsx)(x.Z,{description:"Please try refreshing the page.",design:"wrapped",isError:!0,message:"Failed to load conversation"})}),!!(!g&&!b)&&(0,a.jsxs)(a.Fragment,{children:[!F&&(0,a.jsx)(G,{}),(0,a.jsx)(k.Z,{isFetching:f,message:"Refreshing conversation",children:(0,a.jsxs)("div",{className:"w-full p-2 flex flex-col items-start h-full overflow-y-auto",ref:u,style:{height:F?500:300},children:[!!F&&T.map(e=>(0,a.jsx)(q,{authUser:p,message:e,ref:c},"".concat(e.mid,"-msg"))),!!D&&(0,a.jsx)(W,{user:i.user})]})}),(0,a.jsx)("div",{className:"w-full flex flex-col mt-0 mb-0",children:(0,a.jsx)("div",{className:"w-full flex flex-col",children:(0,a.jsx)(B,{isSending:y.isPending,onBlur:L,onSend:R,onTyping:S})})})]})]})]})};J.propTypes={chatId:u().number.isRequired,handleCloseChatTabs:u().func};var K=J},71186:function(e,n,t){t.d(n,{L2:function(){return o},P5:function(){return s},Ry:function(){return l},UQ:function(){return i},p2:function(){return r}});let a={HIRING_MANAGER:"hiring_manager",RECRUITER:"recruiter",INTERVIEWER:"interviewer",VIEWER:"viewer"},s={[a.HIRING_MANAGER]:{label:"Hiring Manager",color:"blue",description:"Full control of this job post, its pipeline, and team assignments.",rank:4},[a.RECRUITER]:{label:"Recruiter",color:"orange",description:"Manages applications and schedules interviews. Cannot edit or delete the post.",rank:3},[a.INTERVIEWER]:{label:"Interviewer",color:"green",description:"Reviews assigned candidates, runs their interviews, and submits scorecards.",rank:2}
1,[a.VIEWER]:{label:"Viewer",color:"gray",description:"Read-only access to this post and its pipeline.",rank:1}},r=Object.values(a).sort((e,n)=>s[n].rank-s[e].rank).map(e=>({value:e,label:s[e].label,description:s[e].description})),l=e=>{var n;return null!==(n=s[e])&&void 0!==n?n:null},i=(e,n)=>{var t;return!!(null==e?void 0:null===(t=e.my_permissions)||void 0===t?void 0:t[n])},o=e=>i(e,"manage_assignments")},2230:function(e,n,t){t.d(n,{$3:function(){return c},CH:function(){return i},Ej:function(){return d},l$:function(){return o}});var a=t(59820),s=t(87686),r=t(60418),l=t(82036);let i=function(e){let n=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return(0,a.a)({queryKey:["chat",e],queryFn:async()=>(await r.Z.get("".concat(l.JW,"booth/").concat(e),{headers:{Accept:"application/json","Content-Type":"application/json"},withCredentials:!0})).data,enabled:!!e&&n})},o=()=>(0,s.D)({mutationFn:async e=>(await r.Z.post("".concat(l.JW,"booth/init"),{crm_id:e},{headers:{Accept:"application/json","Content-Type":"application/json"},withCredentials:!0})).data}),d=()=>(0,s.D)({mutationFn:async e=>(await r.Z.delete("".concat(l.JW,"booth/").concat(e),{headers:{Accept:"application/json","Content-Type":"application/json"},withCredentials:!0})).data}),c=()=>(0,s.D)({mutationFn:async e=>(await r.Z.post("".concat(l.JW,"booth/send/"),e,{headers:{Accept:"application/json","Content-Type":"application/json"},withCredentials:!0})).data})},73067:function(e,n,t){var a=t(52322),s=t(12524),r=t.n(s),l=t(19450),i=t(73199),o=t(13980),d=t.n(o),c=t(2784),u=t(12307);l.Z.isSupported&&(l.Z.removeHooks("afterSanitizeAttributes"),l.Z.addHook("afterSanitizeAttributes",e=>{"A"===e.tagName&&"function"==typeof e.hasAttribute&&e.hasAttribute("target")&&"_self"!==e.getAttribute("target")&&e.setAttribute("rel","noopener noreferrer nofollow")}));let p=e=>{let{content:n="",className:t=null,as:s="div",size:o="sm",...d}=e,u=(0,c.useMemo)(()=>{if(!n)return null;let e=l.Z.sanitize(n,{ALLOWED_TAGS:["p","br","strong","em","u","s","ul","ol","li","a"],ALLOWED_ATTR:["href","target","rel"]});return(0,i.ZP)(e)},[n]);if(!n)return null;let p=r()("html-content","prose prose-".concat(o," prose-gray max-w-none"),t);return(0,a.jsx)(s,{className:p,...d,children:u})};p.propTypes={content:d().string,className:d().string,as:d().elementType},n.Z=e=>(0,a.jsx)(u.Z,{children:(0,a.jsx)(p,{...e})})},79453:function(e,n,t){var a=t(52322),s=t(13980),r=t.n(s),l=t(47023),i=t(1973);let o=e=>{let{tenantName:n,post:t,isLoading:s,isError:r,canAccess:o,deniedMessage:d,deniedDescription:c,children:u}=e;return s?(0,a.jsx)("div",{className:"w-full my-8",children:(0,a.jsx)(i.Z,{design:"wrapped",isLoading:!0,message:"Loading job post"})}):r?(0,a.jsx)("div",{className:"w-full my-8",children:(0,a.jsx)(i.Z,{description:"Something went wrong on our end. Please refresh the page to try again.",design:"wrapped",isError:!0,message:"Couldn't load this job post"})}):(null==t?void 0:t.jid)?o(t)?u:(0,a.jsx)("div",{className:"w-full my-8",children:(0,a.jsx)(i.Z,{action:(0,a.jsx)(l.Z,{design:"primary",href:"/hr/".concat(n,"/hiring/").concat(t.jid),children:"Back to job post"}),description:c,design:"wrapped",message:d})}):(0,a.jsx)("div",{className:"w-full my-8",children:(0,a.jsx)(i.Z,{action:(0,a.jsx)(l.Z,{design:"secondary",href:"/hr/".concat(n,"/hiring/"),children:"Back to hiring"}),description:"We couldn't find this job post. It may have been removed, or the link may be incorrect.",design:"wrapped",message:"Job post not found"})})};o.propTypes={tenantName:r().string,post:r().shape({jid:r().string,status:r().string}),isLoading:r().bool.isRequired,isError:r().bool.isRequired,canAccess:r().func.isRequired,deniedMessage:r().string.isRequired,deniedDescription:r().string.isRequired,children:r().node},n.Z=o},23825:function(e,n,t){var a=t(52322),s=t(13980),r=t.n(s),l=t(2784),i=t(42369);let o=e=>{let{isFetching:n=!1,delayMs:t=200,size:s="sm",message:r,className:o="",children:d}=e,[c,u]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{if(!n){u(!1);return}let e=setTimeout(()=>u(!0),t);return()=>clearTimeout(e)},[n,t]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{"aria-busy":!!n,className:"relative ".concat(o),children:[!!c&&(0,a.jsx)(i.J,{className:"pointer-events-none",fixed:!1,size:s,zIndexClass:"z-10"}),d]}),!!c&&(0,a.jsx)("span",{className:"sr-only",role:"status",children:r||"Updating"})]})};o.propTypes={isFetching:r().bool,delayMs:r().number,size:r().str
1ing,message:r().string,className:r().string,children:r().node.isRequired},n.Z=o},52199:function(e,n,t){t.d(n,{Rl:function(){return h},createNote:function(){return f},deleteNote:function(){return v},getNotes:function(){return g},li:function(){return m}});var a=t(88393),s=t(60418);t(5632),t(62202);var r=t(82036),l=t(47477),i=t(58161),o=t(62848),d=t(64825);function c(e){return{type:i.zZ,errors:e}}function u(e){return{type:i.E5,errors:e}}let p=(e,n)=>{let t={method:"post",headers:{Accept:"application/json","Content-Type":"application/json"},withCredentials:!0};n(o.hr());let r=(0,l.d_)();return t.headers={...t.headers,"X-Company":r},(0,s.Z)({...t,...e}).then(e=>(n(o.cs()),e.data)?e.data:(n(d.ey(e.data)),e)).catch(t=>{n(o.XA(t.response&&(t.response.data.error||t.response.data.errors||t.response.data.message))),(0,a.I_)(t,"APPLICATION_AXIOS_CALL",{url:null==e?void 0:e.url,method:null==e?void 0:e.method})})};function m(e,n){let t={method:"post",url:"".concat(r.JW,"applications/").concat(e),headers:{Accept:"application/json","Content-Type":"application/json"},data:n};return n=>(t.headers={...t.headers},n({type:i.AC}),n(o.hr()),(0,s.Z)(t).then(e=>{if(n(o.cs()),e.data){var t;return n((t=e.data.data,{type:i.gP,application:t})),e.data}n(u("Updating applications failed!"))}).catch(t=>{n(o.cs()),n(u(t.response&&(t.response.data.error||t.response.data.errors||t.response.data.message))),(0,a.I_)(t,"UPDATE_APPLICATION",{applicationId:e,tenantId:(0,l.d_)()})}))}function h(e,n){let t=new URLSearchParams(n),a={method:"get",url:"".concat(r.JW,"jobposts/").concat(e,"/applications?").concat(t.toString()),headers:{Accept:"application/json","Content-Type":"application/json"}};return e=>(a.headers={...a.headers},e({type:i._1}),e(o.hr()),(0,s.Z)(a).then(n=>{if(e(o.cs()),n.data){var t;return e((t=n.data,{type:i.cU,applications:t})),n.data}e(c("Loading applications failed!"))}).catch(n=>{e(o.cs()),e(c(n.response&&(n.response.data.error||n.response.data.error||n.response.data.errors||n.response.data.message)))}))}function g(e){let n={method:"get"};return t=>(n.url="".concat(r.JW,"applications/").concat(e,"/notes"),p(n,t))}function f(e,n){let t={data:n};return n=>(t.url="".concat(r.JW,"applications/").concat(e,"/notes"),p(t,n))}function v(e){let n={method:"delete"};return t=>(n.url="".concat(r.JW,"notes/").concat(e),p(n,t))}},31948:function(e,n,t){var a=t(52322);t(2784);var s=t(25237),r=t.n(s),l=t(13980),i=t.n(l);let o=r()(()=>Promise.all([t.e(4004),t.e(6615),t.e(9450),t.e(8149),t.e(7413)]).then(t.bind(t,27413)),{loadableGenerated:{webpack:()=>[27413]},ssr:!1,loading:()=>(0,a.jsx)("div",{className:"rich-text-editor-loading",children:(0,a.jsx)("div",{className:"animate-pulse bg-gray-200 rounded h-24"})})}),d=e=>(0,a.jsx)(o,{...e});d.propTypes={name:i().string.isRequired,value:i().string,onChange:i().func.isRequired,label:i().string,placeholder:i().string,error:i().string,disabled:i().bool,required:i().bool,toolbar:i().oneOfType([i().oneOf(["minimal","standard","full"]),i().array]),minHeight:i().number,maxHeight:i().number,ariaLabel:i().string,className:i().string},n.ZP=d},4542:function(e,n,t){t.d(n,{Z:function(){return v}});var a=t(52322),s=t(13980),r=t.n(s),l=t(2784),i=t(76467),o=t(62202),d=t(17047),c=t(74618);let u={link:{title:"Open external link?",message:"This link was provided by the applicant. Elevolt hasn't verified where it leads, so open it only if you trust the source.",confirmButtonText:"Open link"},file:{title:"Open uploaded file?",message:"This file was uploaded by the applicant. Elevolt hasn't scanned its contents, so open it only if you trust the source.",confirmButtonText:"Open file"}},p={pdf:"PDF",png:"PNG image",jpg:"JPEG image",jpeg:"JPEG image"},m=e=>{var n;let t;try{t=new URL(e)}catch(e){return null}let a=t.pathname.split(".").pop().toLowerCase();return{host:t.host,display:"".concat(t.origin).concat(t.pathname),fileType:null!==(n=p[a])&&void 0!==n?n:"file"}},h=(e,n)=>"file"===e?{title:"Open uploaded file?",message:"This ".concat(n.fileType," was uploaded by the applicant and is hosted on ").concat(n.host,". Elevolt hasn't scanned its contents, so open it only if you trust the source."),details:n.display,confirmButtonText:"Open file"}:{title:"Open external link?",message:"This link goes to ".concat(n.host,". The applicant provided it, and Elevolt hasn't verified where it leads, so open it only if you trust the source."),details:n.display,confirmButtonText:"Open link"},g=e=>{var n;let{url:t,label:a,warningKind:s="link"}=e,r=(0,c.Ld)(t);if(!r){o.default.error(a?"".concat(a," is unavailable or could not be opened safely."):"This item is unavailable or could not be opened safely.");return}let l=u[s]?s:"link",i=m(r),p=i?h(l,i):u[l];(0,d.Z)({handler:()=>{window.open(r,"_blank","noopener,noreferrer")},title:p.title,message:p.message,details:null!==(n=p.details)&&void 0!==n?n:"",confirmButtonText:p.confirmButtonText,cancelButtonText:"Cancel"})},f=e=>{let{url:n,children:t,label:s,warningKind:r="link",as:o="a",className:d}=e,u=(0,c.Ld)(n),p=null!=t?t:n,m=(0,l.useCallback)(()=>{g({url:n,label:s,warningKind:r})},[n,s,r]),h=(0,l.useCallback)(e=>{e.preventDefault(),m()},[m]),f=(0,l.useCallback)(e=>{1===e.button&&(e.preventDefault(),m())},[m]);return u?"button"===o?(0,a.jsxs)("div",{className:"flex flex-col justify-start items-start gap-2",children:[s?(0,a.jsx)(i.Z,{className:"text-gray-400",variant:"labelSmall",children:s}):null,(0,a.jsx)("button",{"aria-label":s,className:d,onClick:m,type:"button",children:p})]}):(0,a.jsxs)("div",{className:"flex flex-col justify-start items-start gap-2",children:[s?(0,a.jsx)(i.Z,{className:"text-gray-400",variant:"labelSmall",children:s}
1):null,(0,a.jsx)("a",{"aria-label":s,className:d,href:u,onAuxClick:f,onClick:h,rel:"noopener noreferrer",target:"_blank",children:p})]}):(0,a.jsx)(i.Z,{className:d,variant:"body",children:p||"Unavailable"})};f.propTypes={url:r().string,children:r().node,label:r().string,warningKind:r().oneOf(["link","file"]),as:r().oneOf(["a","button"]),className:r().string};var v=f},237:function(e,n,t){t.d(n,{E6:function(){return r},Ek:function(){return i},H3:function(){return s},N7:function(){return c},NO:function(){return d},gT:function(){return o},j$:function(){return a},lb:function(){return u},s6:function(){return p}});let a={TEXT:"text",YES_NO:"yes_no",FILE:"file",LINK:"link"},s=[a.TEXT,a.YES_NO,a.FILE,a.LINK],r=a.TEXT,l={[a.TEXT]:"Text answer",[a.YES_NO]:"Yes / No",[a.FILE]:"File upload",[a.LINK]:"Link"},i=s.map(e=>({value:e,label:l[e]})),o="yes",d="no",c="question_legacy_",u=e=>(null!=e?e:[]).map((e,n)=>(null==e?void 0:e.name)?e:{...e,name:"".concat(c).concat(n)}),p=e=>"string"!=typeof e?r:s.includes(e)?e:r},51634:function(e,n,t){var a=t(52322),s=t(13980),r=t.n(s);let l=(0,t(2784).memo)(function(e){let{children:n,padding:t=0,className:s=""}=e;return(0,a.jsx)("div",{className:"w-full ".concat(t?"p-".concat(t):""," ").concat(s).trim(),children:n})});l.displayName="TabPanel",l.propTypes={children:r().node,padding:r().oneOfType([r().number,r().string]),className:r().string},n.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.