PageSourceSearch

https://www.elevolt.co.ke/_next/static/chunks/7120-44077ac0beb00a22.js

js elevolt.co.ke collected 2026-10-04 21:46:12 UTC 5,250 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]="e547b1f6-7092-439f-8626-77e9946172c5",e._sentryDebugIdIdentifier="sentry-dbid-e547b1f6-7092-439f-8626-77e9946172c5")}()}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7120],{82184:function(e,t,r){r.d(t,{J:function(){return n}});class n extends Error{constructor(e,{alreadyToasted:t=!1,reason:r="download_failed"}={}){super(e),this.name="HiringExportGuardError",this.alreadyToasted=t,this.reason=r}}},117:function(e,t,r){r.d(t,{C_:function(){return y},LZ:function(){return j},MS:function(){return k},Nw:function(){return C},XC:function(){return w},eD:function(){return x},gh:function(){return m},hu:function(){return v}});var n=r(59820),a=r(78298),o=r(87686),s=r(60418),i=r(62202),d=r(47477),l=r(59578),u=r(82036),c=r(84475),g=r(82184);let p=["elevolt.co.ke","wira.s3.eu-central-1.amazonaws.com"],f=e=>{if(!e||"string"!=typeof e)return!1;try{let{protocol:t,hostname:r}=new URL(e);if("https:"!==t)return!1;return p.some(e=>r===e||r.endsWith(".".concat(e)))}catch(e){return!1}},h=/^\d{4}-\d{2}-\d{2}$/,y=(e,t)=>h.test(e)&&h.test(t),w="This export is missing its date range and cannot be regenerated. Create a new export from Hiring Reports.",m="Your export is ready, but its download link was blocked for security. Please try again or contact support.",b=e=>{let t=(0,d.d_)();return"".concat(u.JW,"tenant/").concat(t,"/reports/hiring/").concat(e)},_=function(){let{period:e,startDate:t,endDate:r,jobPostId:n,department:a}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=new URLSearchParams;return e&&o.append("period",e),t&&o.append("start_date",t),r&&o.append("end_date",r),n&&o.append("job_post_id",n),a&&o.append("department",a),o},v=function(){let{enabled:e=!0,period:t,startDate:r,endDate:o,jobPostId:i,department:l}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,n.a)({enabled:e&&(0,d.Xu)(),queryKey:["hiringOverview",t,r,o,i,l],placeholderData:a.Wk,staleTime:3e5,queryFn:async()=>{let e=_({period:t,startDate:r,endDate:o,jobPostId:i,department:l});return(await s.Z.get("".concat(b("overview"),"?").concat(e.toString()),{withCredentials:!0,headers:{...(0,c.g0)({realm:"hr"})}})).data}})},x=function(){let{enabled:e=!0,period:t,startDate:r,endDate:o,jobPostId:i,department:l}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,n.a)({enabled:e&&(0,d.Xu)(),queryKey:["hiringTrends",t,r,o,i,l],placeholderData:a.Wk,staleTime:3e5,queryFn:async()=>{let e=_({period:t,startDate:r,endDate:o,jobPostId:i,department:l});return(await s.Z.get("".concat(b("trends"),"?").concat(e.toString()),{withCredentials:!0,headers:{...(0,c.g0)({realm:"hr"})}})).data}})},k=function(){let{enabled:e=!0,period:t,startDate:r,endDate:o,department:i,status:l}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,n.a)({enabled:e&&(0,d.Xu)(),queryKey:["hiringJobPosts",t,r,o,i,l],placeholderData:a.Wk,staleTime:3e5,queryFn:async()=>{let e=_({period:t,startDate:r,endDate:o,department:i});return l&&e.append("status",l),(await s.Z.get("".concat(b("job-posts"),"?").concat(e.toString()),{withCredentials:!0,headers:{...(0,c.g0)({realm:"hr"})}})).data}})},T=e=>{try{return new URL(e).origin}catch(e){return"unparseable"}},j=e=>f(e)?(window.open(e,"_blank","noopener,noreferrer"),!0):(l.RY("Hiring export download URL rejected by allowlist",{level:"warning",tags:{type:"hiring_export",reason:"download_url_rejected"},extra:{export:{rejectedOrigin:T(e)}}}),i.toast.error(m),!1),C=()=>(0,o.D)({mutationFn:async e=>{let{format:t,period:r,startDate:n,endDate:a,jobPostId:o,department:i}=e;if(!y(n,a))throw new g.J(w,{reason:"missing_date_range"});return(await s.Z.post(b("export"),{type:"hiring",format:t,period:r,start_date:n,end_date:a,job_post_id:o,department:i},{withCredentials:!0,headers:{...(0,c.g0)({realm:"hr"})}})).data},onSuccess:e=>{if(e.download_url){j(e.download_url)&&i.toast.success("Export generated successfully!");return}i.toast.error((null==e?void 0:e.message)||"Something went wrong generating your export. Please try again.")},onError:e=>{var t,r;if(e instanceof g.J){e.alreadyToasted||i.toast.error(e.message);return}i.toast.error((null==e?void 0:null===(r=e.response)||void 0===r?void 0:null===(t=r.data)||void 0===t?void 0:t.message)||"Failed to export report")}})},23825:function(e,t,r){var n=r(52322),a=r(13980),o=r.n(a),s=r(2784),i=r(42369);let d=e=>{let{isFetching:t=!1,delayMs:r=200,size:a="sm",message:o,className:d="",children:l}
1=e,[u,c]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{if(!t){c(!1);return}let e=setTimeout(()=>c(!0),r);return()=>clearTimeout(e)},[t,r]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{"aria-busy":!!t,className:"relative ".concat(d),children:[!!u&&(0,n.jsx)(i.J,{className:"pointer-events-none",fixed:!1,size:a,zIndexClass:"z-10"}),l]}),!!u&&(0,n.jsx)("span",{className:"sr-only",role:"status",children:o||"Updating"})]})};d.propTypes={isFetching:o().bool,delayMs:o().number,size:o().string,message:o().string,className:o().string,children:o().node.isRequired},t.Z=d}}]);

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.