PageSourceSearch

https://www.elevolt.co.ke/_next/static/chunks/7721-9e593ea9bacd4fd1.js

js elevolt.co.ke collected 2026-10-04 21:46:29 UTC 8,558 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:{},l=(new e.Error).stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="698e51e2-05f5-464e-abcf-15099a06de1c",e._sentryDebugIdIdentifier="sentry-dbid-698e51e2-05f5-464e-abcf-15099a06de1c")}()}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7721],{30591:function(e,l,a){a.d(l,{i:function(){return p}});var n=a(52322),r=a(13980),t=a.n(r),s=a(2784),o=a(47023),i=a(65232),d=a(63798),u=a(76467),c=a(18183);let b=[{value:"pending",label:"Not started"},{value:"in_progress",label:"Started but not submitted"}],g=[{value:"self",label:"Self"},{value:"manager",label:"Manager"},{value:"peer",label:"Peer"},{value:"upward",label:"Upward"}],p=e=>{let l=Number.isInteger(null==e?void 0:e.reminded)?e.reminded:0,a=Number.isInteger(null==e?void 0:e.skipped_cooldown)?e.skipped_cooldown:0,n=Number.isInteger(null==e?void 0:e.failed)?e.failed:0,r=[1===l?"Reminded 1 reviewer":"Reminded ".concat(l," reviewers")];return a>0&&r.push("".concat(a," skipped, reminded too recently")),n>0&&r.push("".concat(n," could not be emailed")),"".concat(r.join(". "),".")},m=e=>{let{onSend:l,isSending:a,summary:r,departments:t}=e,[m,f]=(0,s.useState)({status:void 0,relationship:void 0,departmentId:void 0}),h=(0,s.useCallback)(e=>f(l=>({...l,...e})),[]),v=(0,s.useCallback)(()=>l(m),[m,l]);return(0,n.jsxs)(i.ZP,{children:[(0,n.jsx)(i.Ol,{children:(0,n.jsx)(u.Z,{variant:"sectionHeader",children:"Send reminders"})}),(0,n.jsx)(i.eW,{children:(0,n.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,n.jsx)(u.Z,{color:"text-gray-600",variant:"bodySmall",children:"Emails everyone who has not submitted yet. Reviewers reminded in the last day are skipped automatically. Reminders go to a group, never to a person you pick from the list. These three boxes choose WHO gets the email — the filters under the table below only change what you are looking at."}),(0,n.jsxs)("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-3",children:[(0,n.jsx)("div",{children:(0,n.jsx)(d.P,{defaultOption:"Anyone outstanding",label:"Remind who has this progress",name:"remind_status",onChange:e=>h({status:e.target.value||void 0}),options:b,selected:m.status||""})}),(0,n.jsx)("div",{children:(0,n.jsx)(d.P,{defaultOption:"Any relationship",label:"Remind this relationship",name:"remind_relationship",onChange:e=>h({relationship:e.target.value||void 0}),options:g,selected:m.relationship||""})}),(0,n.jsx)("div",{children:(0,n.jsx)(c.Z,{departments:t,label:"Remind this department",name:"remind_department_id",onChange:e=>h({departmentId:e||void 0}),value:m.departmentId||null})})]}),!!r&&(0,n.jsx)(u.Z,{color:"text-gray-600",variant:"caption",children:p(r)}),(0,n.jsx)("div",{className:"flex items-center gap-3",children:(0,n.jsx)(o.Z,{disabled:a,isLoading:a,onClick:v,type:"button",children:"Send reminders"})})]})})]})};m.propTypes={onSend:t().func.isRequired,isSending:t().bool.isRequired,summary:t().object,departments:t().arrayOf(t().object)},l.Z=m},90938:function(e,l,a){a.d(l,{ZP:function(){return g}});var n=a(52322),r=a(13980),t=a.n(r),s=a(12524),o=a.n(s),i=a(10988);Object.freeze(["gray","purple","blue","yellow","orange","green"]);let d=new Map([["cycle",Object.freeze([{status:"draft",label:"Draft",rank:0,color:"gray"},{status:"nominating",label:"Nominating",rank:1,color:"purple"},{status:"collecting",label:"Collecting",rank:2,color:"blue"},{status:"calibrating",label:"Calibrating",rank:3,color:"yellow"},{status:"moderating",label:"Moderating",rank:3,color:"yellow"},{status:"closed",label:"Closed",rank:4,color:"orange"},{status:"released",label:"Released",rank:5,color:"green"},{status:"cancelled",label:"Cancelled",rank:null,color:"red"}])],["subject",Object.freeze([{status:"pending",label:"Pending",rank:0,color:"gray"},{status:"nominating",label:"Nominating",rank:1,color:"purple"},{status:"collecting",label:"Collecting",rank:2,color:"blue"},{status:"calibrating",label:"Calibrating",rank:3,color:"yellow"},{status:"moderating",label:"Moderating",rank:3,color:"yellow"},{status:"closed",label:"Closed",rank:4,color:"green"},{status:"released",label:"Released",rank:4,color:"green"},{status:"needs_manager",label:"Needs Manager",rank:null,color:"orange"},{status:"needs_attention",label:"Needs Attention",rank:null,color:"orange"},{status:"cancelled",label:"Cancelled",rank:null,color:"red"}])],["participant",Object.freeze([{status:"pending",label:"Pending",rank:0,color:"gray"},{status:"in_progress",label:"In Progress",rank:1,color:"blue"},{status:"submitted",label:"Submitted",rank:2,color:"green"},{status:"declined",label:"Declined",rank:null,color:"red"},{status:"expired",label:"Expired",rank:null,color:"red"},{status:"cancelled",label:"Cancelled",rank:null,color:"red"}])],["calibration",Object.freeze([{status:"scheduled",label:"Scheduled",rank:0,color:"gray"},{status:"in_progress",label:"In Progress",rank:1,color:"blue"},{status:"completed",label:"Completed",rank:2,color:"green"},{status:"cancelled",label:"Cancelled",rank:null,color:"red"}])],["appeal",Object.freeze([{status:"open",label:"Open",rank:0,color:"blue"},{status:"under_review",label:"Under Review",rank:1,color:"yellow"},{status:"upheld",label:"Upheld",rank:2,color:"green"},{status:"rejected",label:"Rejected",rank:null,color:"red"},{status:"withdrawn",label:"Withdrawn",rank:null,color:"gray"}])]]),u=new Map([...d].map(e=>{let[l,a]=e;return[l,new Map(a.map(e=>[e.status,e]))]})),c=(e,l)=>{var a;return null===(a=u.get(e))||void 0===a?void 0:a.get(l)},b=(e,l)=>{var a,n;return null!==(n=null===(a=c(e,l))||void 0===a?void 0:a.rank)&&void 0!==n?n:null},g=(e,l,a)=>{let n=b(e,l),r=b(e,a);return null===n||null===r?Number(null===n)-Number(null===r):n-r},p=e=>{let l=e.replace(/[_-]+/g," ").trim();return l.charAt(0).toUpperCase()+l.slice(1)},m=(e,l)=>{let{label:a,status:n,fallback:r}=l,t="string"==typeof n?p(n):"";return("string"==typeof a?a:"")||(null==e?void 0:e.label)||t||r},f=(e,l)=>e?"".concat(e,": ").concat(l):l,h=e=>{let{lifecycle:l,status:a,label:r,subject:t,fallback:s="Status unknown",size:d="sm",className:u}=e,b=c(l,a),g=m(b,{label:r,status:a,fallback:s});return(0,n.jsx)(i.Z,{className:o()("max-w-full min-w-0 break-words",u),color:(null==b?void 0:b.color)||"gray",label:f(t,g),size:d})};h.propTypes={lifecycle:t().oneOf([...d.keys()]).isRequired,status:t().str
1ing,label:t().string,subject:t().string,fallback:t().string,size:t().oneOf(["sm","md"]),className:t().string},l.Co=h},61416:function(e,l,a){a.d(l,{h:function(){return u}});var n=a(52322),r=a(12524),t=a.n(r),s=a(13980),o=a.n(s),i=a(76467);let d={sm:"h-1.5",md:"h-2.5",lg:"h-3.5"},u=e=>{if(null==e)return null;if("number"==typeof e)return Number.isFinite(e)?Math.min(Math.max(e,0),100):null;if("string"!=typeof e||""===e.trim())return null;let l=Number(e);return Number.isFinite(l)?Math.min(Math.max(l,0),100):null},c=e=>String(e<100?Math.floor(10*e)/10:100),b=e=>{let{value:l,label:a,showLabel:r=!0,unmeasuredText:s="Not measured yet",size:o="md",className:b=""}=e,g=u(l),p=null!==g,m=d[o]||d.md,f=p?"".concat(c(g),"%"):s,h=p?{"aria-valuenow":g,"aria-valuetext":"".concat(c(g),"% complete")}:{"aria-valuetext":s};return(0,n.jsxs)("div",{className:t()("flex flex-col gap-1 w-full",b),children:[(0,n.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[!!r&&(0,n.jsx)(i.Z,{as:"span",color:"text-gray-600",variant:"caption",children:a}),(0,n.jsx)(i.Z,{as:"span",color:p?"text-gray-900":"text-gray-500",variant:"caption",weight:p?"font-medium":"font-normal",children:f})]}),(0,n.jsx)("div",{"aria-label":a,"aria-valuemax":100,"aria-valuemin":0,className:t()("w-full rounded-full",m,p?"bg-gray-200":"border border-dashed border-gray-300 bg-transparent"),role:"progressbar",...h,children:!!p&&(0,n.jsx)("div",{className:t()("bg-blue rounded-full transition-all duration-300",m),style:{width:"".concat(g,"%")}})})]})};b.propTypes={value:o().oneOfType([o().number,o().string]),label:o().string.isRequired,showLabel:o().bool,unmeasuredText:o().string,size:o().oneOf(["sm","md","lg"]),className:o().string},l.Z=b},51634:function(e,l,a){var n=a(52322),r=a(13980),t=a.n(r);let s=(0,a(2784).memo)(function(e){let{children:l,padding:a=0,className:r=""}=e;return(0,n.jsx)("div",{className:"w-full ".concat(a?"p-".concat(a):""," ").concat(r).trim(),children:l})});s.displayName="TabPanel",s.propTypes={children:t().node,padding:t().oneOfType([t().number,t().string]),className:t().string},l.Z=s}}]);

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.