PageSourceSearch

https://www.elevolt.co.ke/_next/static/chunks/5261-9b2cff2f6ce49550.js

js elevolt.co.ke collected 2026-10-04 21:45:42 UTC 22,293 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:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="6059a6f9-7968-4c70-a7b8-c4fd27788383",e._sentryDebugIdIdentifier="sentry-dbid-6059a6f9-7968-4c70-a7b8-c4fd27788383")}()}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5261,4518],{79337:function(e,t,n){"use strict";var s=n(52322),r=n(55351),a=n(45847),i=n.n(a),o=n(13980),l=n.n(o);let c=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:l=!0,children:c}=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"}}),!!l&&(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"})})]}),c]})};c.propTypes={title:l().string,description:l().string,canonical:l().string,page:l().string,thirdParty:l().bool,children:l().node},t.Z=c},10988:function(e,t,n){"use strict";var s=n(52322),r=n(13980),a=n.n(r),i=n(12524),o=n.n(i);let l={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"},c={sm:"text-xs px-1.5 py-0.5",md:"text-xs px-2 py-1"},d=e=>{let{label:t,color:n="gray",size:r="sm",className:a}=e,i=l[n]||l.gray,d=c[r];return(0,s.jsx)("span",{className:o()("inline-flex items-center rounded font-medium",i,d,a),children:t})};d.propTypes={label:a().string.isRequired,color:a().oneOf(["blue","green","red","yellow","gray","orange","purple"]),size:a().oneOf(["sm","md"]),className:a().string},t.Z=d},16049:function(e,t,n){"use strict";var s=n(52322),r=n(2369),a=n(92942),i=n(13980),o=n.n(i),l=n(2784),c=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)(c.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)(l.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)(c.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){"use strict";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 l=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]})};l.propTypes={heading:a().string,className:a().node,children:a().node,footer:a().node},t.ZP=l},17047:function(e,t,n){"use strict";var s=n(52322),r=n(2784),a=n(94217);n(56486);var i=n(47023),o=n(59578),l=n(42369),c=n(76467);let d=e=>{let{onClose:t,handler:n,preOnCloseFn:a,title:d,message:u,details:m,confirmButtonText:p,cancelButtonText:f,initialIsLoading:g,suppressRecording:h}=e,[y,x]=(0,r.useState)(!1),b=g||y,v=(0,r.useCallback)(async()=>{x(!0);try{await n(),a(),t()}catch(e){x(!1),(0,o.N2)(e,"ConfirmDialogContent")}},[n,a,t]),j=(0,r.useCallback)(()=>{y||(a(),t())},[y,a,t]);return(0,s.jsxs)("div",{className:"confirm-dialog flex flex-col bg-white py-3 px-3 sm:py-4 sm:px-4 roun
1ded shadow-sm relative".concat(h?" ".concat("fs-exclude"):""),"data-hj-suppress":h||void 0,"data-hs-do-not-collect":h?"true":void 0,children:[!!b&&(0,s.jsx)(l.J,{fixed:!1,size:"sm"}),(0,s.jsx)("div",{className:"w-full border-gray-200",children:(0,s.jsx)(c.Z,{className:"leading-none",variant:"heading5",children:d})}),(0,s.jsx)("hr",{className:"-mx-3 sm:-mx-4 my-2 sm:my-3"}),(0,s.jsxs)("div",{className:"w-full py-2",children:[(0,s.jsx)(c.Z,{variant:"body",children:u}),!!m&&(0,s.jsx)(c.Z,{className:"mt-2 break-all",color:"text-gray-600",variant:"caption",children:m})]}),(0,s.jsx)("hr",{className:"-mx-3 sm:-mx-4 my-2 sm:my-3"}),(0,s.jsxs)("div",{className:"w-full flex flex-col-reverse sm:flex-row sm:justify-between gap-2 border-gray-200",children:[(0,s.jsx)(i.Z,{className:"w-full sm:w-auto",design:"secondary",disabled:y,onClick:j,children:f}),(0,s.jsx)(i.Z,{className:"w-full sm:w-auto",design:"primary",disabled:y,isLoading:y,onClick:v,children:p})]})]})};t.Z=e=>{let{handler:t,preOnCloseFn:n=()=>{},title:r="Are you sure?",message:i="It may not be possible to undo this action. Are you sure you want to proceed?",details:o="",confirmButtonText:l="Yes, Proceed.",cancelButtonText:c="No, Let me check.",canExit:u=!0,isLoading:m=!1,suppressRecording:p=!1}=e;(0,a._1)({closeOnEscape:u,closeOnClickOutside:u,customUI:e=>{let{onClose:a}=e;return(0,s.jsx)(d,{cancelButtonText:c,confirmButtonText:l,details:o,handler:t,initialIsLoading:m,message:i,onClose:a,preOnCloseFn:n,suppressRecording:p,title:r})}})}},1973:function(e,t,n){"use strict";var s=n(52322),r=n(2369),a=n(92942),i=n(13980),o=n.n(i);n(2784);var l=n(42369);let c=e=>{let{items:t,message:n,description:i,icon:o,showIcon:l,action:c}=e;return(0,s.jsxs)("div",{className:"w-full h-full flex justify-center items-center flex-col p-8",children:[!!l&&(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}),!!c&&(0,s.jsx)("div",{className:"mt-4",children:c})]})};c.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:u,icon:m,showIcon:p,isError:f}=e;return(0,s.jsxs)("div",{className:"w-full bg-transparent text-center flex flex-col items-center ".concat(t),children:[!n&&!f&&(0,s.jsx)(c,{action:i,description:u,icon:m,items:o,message:d,showIcon:p}),!n&&!!f&&(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","...")}),!!u&&(0,s.jsx)("p",{className:"text-red-400 text-center text-sm mt-1",children:u}),!!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)(l.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 u=e=>{let{items:t,message:n,description:r,icon:a,action:i,className:o,showIcon:l=!0,design:c,isLoading:u=!1,isError:m=!1}=e;return"wrapped"===c?(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:m,isLoading:u,items:t,message:n,showIcon:l})}):(0,s.jsx)(d,{action:i,className:o,description:r,icon:a,isError:m,isLoading:u,items:t,message:n,showIcon:l})};u.propTypes={items:o().string,message:o().string,description:o().string,icon:o().object,action:o().node,className:o().string,showIcon:o().bool,design:o().oneOf(["wrapped","default"]),isLoading:o().bool,isError:o().bool},t.Z=u},71186:function(e,t,n){"use strict";n.d(t,{L2:function(){return l},P5:function(){return r},Ry:function(){return i},UQ:function(){return o},p2:function(){return a}});let s={HIRING_MANAGER:"hiring_manager",RECRUITER:"recruiter",INTERVIEWER:"interviewer",VIEWER:"viewer"},r={[s.HIRING_MANAGER]:{label:"Hiring Manager",color:"blue",description:"Full control of this job post, its pipeline, and team assignments.",rank:4},[s.RECRUITER]:{label:"Recruiter",color:"orange",description:"Manages applications and schedules interviews. Cannot edit or delete the post.",rank:3},[s.INTERVIEWER]:{label:"Interviewer",color:"green",description:"Reviews assigned candidates, runs their interviews, and submits scorecards.",rank:2}
1,[s.VIEWER]:{label:"Viewer",color:"gray",description:"Read-only access to this post and its pipeline.",rank:1}},a=Object.values(s).sort((e,t)=>r[t].rank-r[e].rank).map(e=>({value:e,label:r[e].label,description:r[e].description})),i=e=>{var t;return null!==(t=r[e])&&void 0!==t?t:null},o=(e,t)=>{var n;return!!(null==e?void 0:null===(n=e.my_permissions)||void 0===n?void 0:n[t])},l=e=>o(e,"manage_assignments")},83186:function(e,t,n){"use strict";n.d(t,{Gf:function(){return g},IV:function(){return p},Xk:function(){return f}});var s=n(59820),r=n(14010),a=n(87686),i=n(60418),o=n(62202),l=n(82036),c=n(84475);let d=e=>["jobPostAssignments",{jid:e}],u=e=>["jobPost",{id:e,realm:"hr"}],m=(e,t)=>{var n,s,r,a;return(null==e?void 0:null===(s=e.response)||void 0===s?void 0:null===(n=s.data)||void 0===n?void 0:n.message)||(null==e?void 0:null===(a=e.response)||void 0===a?void 0:null===(r=a.data)||void 0===r?void 0:r.error)||t},p=e=>{let{jid:t,enabled:n=!0}=e;return(0,s.a)({queryKey:d(t),enabled:!!(n&&t),queryFn:async()=>{var e,n;let s=await i.Z.get("".concat(l.JW,"jobposts/").concat(t,"/assignments"),{headers:{...(0,c.g0)({realm:"hr"})}});return null!==(n=null==s?void 0:null===(e=s.data)||void 0===e?void 0:e.data)&&void 0!==n?n:[]}})},f=()=>{let e=(0,r.NL)();return(0,a.D)({mutationFn:async e=>{var t;let{jid:n,user_uid:s,role:r}=e,a=await i.Z.post("".concat(l.JW,"jobposts/").concat(n,"/assignments"),{user_uid:s,role:r},{headers:{...(0,c.g0)({realm:"hr"})}});return null==a?void 0:null===(t=a.data)||void 0===t?void 0:t.data},onSuccess:(t,n)=>{o.default.success("Role assigned successfully."),e.invalidateQueries({queryKey:d(n.jid)}),e.invalidateQueries({queryKey:u(n.jid)})},onError:e=>{o.default.error(m(e,"Failed to assign role."))}})},g=()=>{let e=(0,r.NL)();return(0,a.D)({mutationFn:async e=>{let{jid:t,uid:n,role:s}=e,r=await i.Z.delete("".concat(l.JW,"jobposts/").concat(t,"/assignments/").concat(n),{headers:{...(0,c.g0)({realm:"hr"})},...s&&{data:{role:s}}});return null==r?void 0:r.data},onSuccess:(t,n)=>{o.default.success("Role removed successfully."),e.invalidateQueries({queryKey:d(n.jid)}),e.invalidateQueries({queryKey:u(n.jid)})},onError:e=>{o.default.error(m(e,"Failed to remove role."))}})}},79453:function(e,t,n){"use strict";var s=n(52322),r=n(13980),a=n.n(r),i=n(47023),o=n(1973);let l=e=>{let{tenantName:t,post:n,isLoading:r,isError:a,canAccess:l,deniedMessage:c,deniedDescription:d,children:u}=e;return r?(0,s.jsx)("div",{className:"w-full my-8",children:(0,s.jsx)(o.Z,{design:"wrapped",isLoading:!0,message:"Loading job post"})}):a?(0,s.jsx)("div",{className:"w-full my-8",children:(0,s.jsx)(o.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==n?void 0:n.jid)?l(n)?u:(0,s.jsx)("div",{className:"w-full my-8",children:(0,s.jsx)(o.Z,{action:(0,s.jsx)(i.Z,{design:"primary",href:"/hr/".concat(t,"/hiring/").concat(n.jid),children:"Back to job post"}),description:d,design:"wrapped",message:c})}):(0,s.jsx)("div",{className:"w-full my-8",children:(0,s.jsx)(o.Z,{action:(0,s.jsx)(i.Z,{design:"secondary",href:"/hr/".concat(t,"/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"})})};l.propTypes={tenantName:a().string,post:a().shape({jid:a().string,status:a().string}),isLoading:a().bool.isRequired,isError:a().bool.isRequired,canAccess:a().func.isRequired,deniedMessage:a().string.isRequired,deniedDescription:a().string.isRequired,children:a().node},t.Z=l},49286:function(e,t,n){"use strict";var s=n(52322),r=n(13980),a=n.n(r),i=n(10988),o=n(71186);let l=e=>{let{role:t,size:n="sm",className:r}=e,a=(0,o.Ry)(t);return a?(0,s.jsx)(i.Z,{className:r,color:a.color,label:a.label,size:n}):null};l.propTypes={role:a().string,size:a().oneOf(["sm","md"]),className:a().string},t.Z=l},23825:function(e,t,n){"use strict";var s=n(52322),r=n(13980),a=n.n(r),i=n(2784),o=n(42369);let l=e=>{let{isFetching:t=!1,delayMs:n=200,size:r="sm",message:a,className:l="",children:c}=e,[d,u]=(0,i.useState)(!1);return(0,i.useEffect)(()=>
1{if(!t){u(!1);return}let e=setTimeout(()=>u(!0),n);return()=>clearTimeout(e)},[t,n]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{"aria-busy":!!t,className:"relative ".concat(l),children:[!!d&&(0,s.jsx)(o.J,{className:"pointer-events-none",fixed:!1,size:r,zIndexClass:"z-10"}),c]}),!!d&&(0,s.jsx)("span",{className:"sr-only",role:"status",children:a||"Updating"})]})};l.propTypes={isFetching:a().bool,delayMs:a().number,size:a().string,message:a().string,className:a().string,children:a().node.isRequired},t.Z=l},75588:function(e,t,n){"use strict";var s=n(52322),r=n(13980),a=n.n(r);n(2784);var i=n(16049),o=n(76467);let l=e=>{let{tenantName:t,breadcrumbs:n,title:r,description:a,actions:l,titleProps:c,fullWidth:d=!0}=e;return(0,s.jsxs)("div",{className:d?"w-full":"container mx-auto px-4 md:px-8 lg:px-12",children:[(0,s.jsx)("div",{children:(0,s.jsx)(i.Z,{home:"/hr/".concat(t,"/"),links:n})}),(0,s.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4 py-4",children:[(0,s.jsxs)("div",{...c,children:[(0,s.jsx)(o.Z,{variant:"heading1",children:r}),!!a&&(0,s.jsx)(o.Z,{className:"mt-1",variant:"bodySmall",children:a})]}),!!l&&(0,s.jsx)("div",{className:"flex items-center gap-3",children:l})]})]})};l.propTypes={tenantName:a().string.isRequired,breadcrumbs:a().arrayOf(a().shape({href:a().string.isRequired,name:a().string.isRequired,nodeType:a().string})).isRequired,title:a().node.isRequired,description:a().string,actions:a().node,titleProps:a().object,fullWidth:a().bool},t.Z=l},56486:function(){},94217:function(e,t,n){"use strict";var s,r,a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var s=t[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}return function(t,n,s){return n&&e(t.prototype,n),s&&e(t,s),t}}();t._1=function(e){var t;document.body.classList.add("react-confirm-alert-body-element"),function(){if(!document.getElementById("react-confirm-alert-firm-svg")){var e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"feGaussianBlur");t.setAttribute("stdDeviation","0.3");var n=document.createElementNS(e,"filter");n.setAttribute("id","gaussian-blur"),n.appendChild(t);var s=document.createElementNS(e,"svg");s.setAttribute("id","react-confirm-alert-firm-svg"),s.setAttribute("class","react-confirm-alert-svg"),s.appendChild(n),document.body.appendChild(s)}}(),t=document.getElementById(e.targetId||g),e.targetId&&!t&&console.error("React Confirm Alert:","Can not get element id (#"+e.targetId+")"),t||(document.body.children[0].classList.add("react-confirm-alert-blur"),(t=document.createElement("div")).id=g,document.body.appendChild(t)),(f=(0,d.createRoot)(t)).render(l.default.createElement(p,e))};var o=n(2784),l=u(o),c=u(n(13980)),d=n(17029);function u(e){return e&&e.__esModule?e:{default:e}}function m(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}var p=(r=s=function(e){function t(){(function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")})(this,t);for(var e,n,s,r=arguments.length,a=Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=s=m(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),s.handleClickButton=function(e){e.onClick&&e.onClick(),s.close()},s.handleClickOverlay=function(e){var t=s.props,n=t.closeOnClickOutside,r=t.onClickOutside,a=e.target===s.overlay;n&&a&&(r(),s.close()),e.stopPropagation()},s.close=function(){var e,t,n,r=s.props.afterClose;document.body.classList.remove("react-confirm-alert-body-element"),e=s.props,(t=document.getElementById(e.targetId||g))&&f.unmount(t),(n=document.getElementById("react-confirm-alert-firm-svg"))&&n.parentNode.removeChild(n),document.body.children[0].classList.remove("react-confirm-alert-blur"),r()},s.keyboard=function(e){var t=s.props,n=t.closeOnEscape,r=t.onKeypressEscape,a=t.onkeyPress,i=t.keyCodeForClose,o=e.keyCode,l=27===o;i.includes(o)&&s.close(),n&&l&&(r(e),s.close()),a&&a()},s.componentDidMount=function(){document.addEventListener("keydown",s.keyboard,!1)},s.componentWillUnmount=function(){document.removeEventListener("keydown",s.keyboard,!1),s.props.willUnmount()},s.renderCustomUI=function(){var e=s.props,t=e.title,n=e.message,r=e.buttons;return(0,e.customUI)({title:t,message:n,buttons:r,onClose:s.close})},m(s,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.title,s=t.message,r=t.buttons,i=t.childrenElement,o=t.customUI,c=t.overlayClassName;return l.default.createElement("div",{className:"react-confirm-alert-overlay "+c,ref:function(t){return e.overlay=t},onClick:this.handleClickOverlay},l.default.createElement("div",{className:"react-confirm-alert"},o?this.renderCustomUI():l.default.createElement("div",{className:"react-confirm-alert-body"},n&&l.default.createElement("h1",null,n),s,i(),l.default.createElement("div",{className:"react-confirm-alert-button-group"},r.map(function(t,n){return l.default.createElement("button",a({key:n,className:t.className},t,{onClick:function(n){return e.handleClickButton(t)}}),t.label)})))))}}]),t}(o.Component),s.propTypes={title:c.default.string,message:c.default.string,buttons:c.default.array.isRequired,childrenElement:c.default.func,customUI:c.default.func,closeOnClickOutside:c.default.bool,closeOnEscape:c.default.bool,keyCodeForClose:c.default.arrayOf(c.default.number),willUnmount:c.default.func,afterClose:c.default.func,onClickOutside:c.default.func,onKeypressEscape:c.default.func,onkeyPress:c.default.func,overlayClassName:c.default.string},s.defaultProps={buttons:[{label:"Cancel",onClick:function(){return null},className:null},{label:"Confirm",onClick:function(){return null},className:null}],childrenElement:function(){return null},closeOnClickOutside:!0,closeOnEscape:!0,keyCodeForClose:[],willUnmount:function(){return null},afterClose:function(){return null},onClickOutside:function(){return null},onKeypressEscape:function(){return null}},r),f=null,g="react-confirm-alert"}}]);

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.