PageSourceSearch

https://www.elevolt.co.ke/_next/static/chunks/pages/hr/[tenant]/performance/team/[rsid]-132c6b01107d257d.js

js elevolt.co.ke collected 2026-10-04 21:48:13 UTC 26,824 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]="ab776ad5-f8ad-47ea-a346-847b44c4ad56",e._sentryDebugIdIdentifier="sentry-dbid-ab776ad5-f8ad-47ea-a346-847b44c4ad56")}()}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4308],{90104:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/hr/[tenant]/performance/team/[rsid]",function(){return n(45753)}])},59366:function(e,t,n){"use strict";var r=n(52322),a=n(13980),s=n.n(a),o=n(90938);let i=e=>{let{participant:t}=e;return(0,r.jsx)(o.Co,{label:t.status_label,lifecycle:"participant",status:t.status})};i.propTypes={participant:s().shape({status:s().string,status_label:s().string}).isRequired},t.Z=i},45753:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return ee}});var r=n(52322),a=n(13980),s=n.n(a),o=n(2784),i=n(62202),l=n(47023),c=n(65232),d=n(17047),u=n(1973),p=n(77590),m=n(30900),h=n(82292),f=n(23627),g=n(75588),v=n(79413),y=n(76467),b=n(84475),x=n(79337),w=n(56713),j=n(62811),C=n(59366);let R=new Set(["pending","in_progress"]),k="peer",N=e=>(null==e?void 0:e.relationship)===k,E="fs-exclude",_=(e,t)=>Object.prototype.hasOwnProperty.call(null!=e?e:{},t),O=e=>_(e,"approved_at"),S=e=>O(e)&&!!e.approved_at,A=e=>N(e)&&O(e)&&null===e.approved_at&&R.has(null==e?void 0:e.status),Z=(e,t)=>{var n;if(null==e?void 0:null===(n=e.reviewer)||void 0===n?void 0:n.name)return e.reviewer_is_deleted?"".concat(e.reviewer.name," (no longer in the workspace)"):e.reviewer.name;let r=(null==e?void 0:e.relationship_label)||"Reviewer";return"".concat(r," ").concat(t+1)},P=e=>_(e,"approved_at")?e.approved_at?"Approved":"Not approved yet":"Not shown",q=e=>{let{participant:t,index:n,canApprove:a,canReject:s,canRemove:o,busyRpid:i,onApprove:c,onReject:d,onRemove:u}=e;if(!N(t))return null;let p=Z(t,n),m=i===t.rpid,h=R.has(t.status);return(0,r.jsxs)("div",{className:"flex flex-wrap items-center justify-end gap-2 ".concat(E),"data-hj-suppress":!0,"data-hs-do-not-collect":"true",children:[!!(a&&h&&!S(t))&&(0,r.jsxs)(l.Z,{isLoading:m,onClick:()=>c(t),size:"sm",type:"button",children:["Approve",(0,r.jsxs)(y.Z,{as:"span",className:"sr-only",variant:"caption",children:[" ",p]})]}),!!(s&&h)&&(0,r.jsxs)(l.Z,{design:"secondary",onClick:()=>d(t,p),size:"sm",type:"button",children:["Reject",(0,r.jsxs)(y.Z,{as:"span",className:"sr-only",variant:"caption",children:[" ",p]})]}),!!(o&&"submitted"!==t.status)&&(0,r.jsxs)(l.Z,{design:"secondary",onClick:()=>u(t,p),size:"sm",type:"button",children:["Remove",(0,r.jsxs)(y.Z,{as:"span",className:"sr-only",variant:"caption",children:[" ",p]})]})]})};q.propTypes={participant:s().object.isRequired,index:s().number.isRequired,canApprove:s().bool.isRequired,canReject:s().bool.isRequired,canRemove:s().bool.isRequired,busyRpid:s().string,onApprove:s().func.isRequired,onReject:s().func.isRequired,onRemove:s().func.isRequired};let I=e=>{let{participant:t,index:n,showApproval:a,showActions:s,...o}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("td",{className:"px-4 py-3 ".concat(E),"data-hj-suppress":!0,"data-hs-do-not-collect":"true",children:(0,r.jsx)(y.Z,{as:"span",variant:"labelValue",children:Z(t,n)})}),(0,r.jsx)("td",{className:"px-4 py-3",children:(0,r.jsx)(y.Z,{as:"span",color:"text-gray-600",variant:"caption",children:t.relationship_label})}),(0,r.jsx)("td",{className:"px-4 py-3",children:(0,r.jsx)(C.Z,{participant:t})}),!!a&&(0,r.jsx)("td",{className:"px-4 py-3",children:(0,r.jsx)(y.Z,{as:"span",color:"text-gray-600",variant:"caption",children:P(t)})}),!!s&&(0,r.jsx)("td",{className:"px-4 py-3 text-right",children:(0,r.jsx)(q,{index:n,participant:t,...o})})]})};I.propTypes={participant:s().object.isRequired,index:s().number.isRequired,showApproval:s().bool.isRequired,showActions:s().bool.isRequired};var T=n(16936),L=n(32128);let D=e=>"string"==typeof(null==e?void 0:e.rpid)&&e.rpid.length>0,B=e=>{let{participant:t,index:n,isSelected:a,selectable:s,selectName:o,showActions:i,onToggleSelect:l,...c}=e,d=Z(t,n),u=s&&D(t);return(0,r.jsxs)("div",{className:"border border-gray-200 rounded-lg p-3 flex flex-col gap-3 ".concat(E),"data-hj-suppress":!0,"data-hs-do-not-collect":"true",children:[(0,r.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,r.jsxs)("div",{className:"flex items-start gap-2",children:[!!s&&(0,r.jsx)(L.J,{checked:!!a,disabled:!u,label:"Select ".concat(d),labelClasses:"sr-only",name:"".concat(o,"-card-").concat(n),onChange:()=>l(t)}),(0,r.jsx)(y.Z,{variant:"labelValue",weight:"font-semibold",children:d})]}),(0,r.jsx)(C.Z,{participant:t})]}),(0,r.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,r.jsx)(y.Z,{as:"span",color:"text-gray-600",variant:"caption",children:t.relationship_label}),!!O(t)&&(0,r.jsxs)(y.Z,{as:"span",color:"text-gray-600",variant:"caption",children:["\xb7 ",P(t)]})]}),!!i&&(0,r.jsx)(q,{index:n,participant:t,...c})]})};B.propTypes={participant:s().object.isRequired,index:s().number.isRequired,isSelected:s().bool,selectable:s().bool,selectName:s().string.isRequired,showActions:s().bool.isRequired,onToggleSelect:s().func.isRequired};let U=[{key:"nominee",header:"Nominee"},{key:"relationship",header:"Relationship"},{key:"status",header:"Status"}],M={key:"approval",header:"Approval"},W={align:"right",key:"actions",header:"Actions"},F="nominee-selection",K=e=>{let{participants:t,isLoading:n,isError:a,isFetching:s,errorMessage:i,errorDescription:l,emptyMessage:c,emptyDescription:d,pagination:u,onPageChange:p,selectable:m=!1,selectedKeys:h,onSelectionChange:f,bulkBar:g,canApprove:v,canReject:y,canRemove:b,busyRpid:x,onApprove:w,onReject:j,onRemove:C}=e,R=(0,o.useMemo)(()=>new Map(t.map((e,t)=>[e,t])),[t]),k={busyRpid:x,canApprove:v,canReject:y,canRemove:b,onApprove:w,onReject:j,onRemove:C},N=v||y||b,E=t.some(O),_=[...U,...E?[M]:[],...N?[W]:[]],S=e=>{let t=null==e?void 0:e.rpid;if("string"!=typeof t||0===t.length)return;let n=new Set(h),r=n.has(t);r?n.delete(t):n.add(t),f(n,{addedKeys:r?[]:[t],removedKeys:r?[t]:[]})};return(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[!!(g&&t.length>0&&!n&&!a)&&g,(0,r.jsx)(T.Z,{columns:_,emptyDescription:d,emptyMessage:c,errorDescription:l||"Refresh the page, and let an admin know if it keeps happening.",errorMessage:i||"We could not load these nominees",isError:!!a,isFetching:!!s,isLoading:!!n,onPageChange:p,onSelectionChange:f,pagination:u,renderMobileCard:(e,t)=>{let{index:n,isSelected:a}=t;return(0,r.jsx)(B,{index:n,isSelected:a,onToggleSelect:S,participant:e,selectName:F,selectable:m,showActions:N,...k})},renderRow:(e,t)=>{let{index:n}=t;return(0,r.jsx)(I,{index:n,participant:e,showActions:N,showApproval:E,...k})},rowKey:e=>e.rpid,rowSelectLabel:e=>{var t;return"Select ".concat(Z(e,null!==(t=R.get(e))&&void 0!==t?t:0))},rows:t,selectAllLabel:"Select every nominee on this page",selectAllName:F,selectable:m,selectedKeys:h,suppressSelectionRecording:!0})]})};K.propTypes={participants:s().arrayOf(s().object).isRequired,isLoading:s().bool.isRequired,isError:s().bool.isRequired,isFetching:s().bool,errorMessage:s().string,errorDescription:s().string,emptyMessage:s().string.isRequired,empty
1Description:s().string.isRequired,pagination:s().object,onPageChange:s().func.isRequired,selectable:s().bool,selectedKeys:s().instanceOf(Set),onSelectionChange:s().func,bulkBar:s().node,canApprove:s().bool.isRequired,canReject:s().bool.isRequired,canRemove:s().bool.isRequired,busyRpid:s().string,onApprove:s().func.isRequired,onReject:s().func.isRequired,onRemove:s().func.isRequired};var V=n(62372),z=n(97203);let Y=e=>{let{nomineeLabel:t,onConfirm:n,onClose:a,isRejecting:s,reasonError:i,submitError:c}=e,[d,u]=(0,o.useState)(""),[p,m]=(0,o.useState)(!1),h=d.trim(),f=(0,o.useCallback)(()=>{m(!0),0!==h.length&&n(h)},[n,h]),g=p&&0===h.length?"Say why you are rejecting this reviewer.":void 0;return(0,r.jsx)(z.B,{maxWidth:"560px",onClose:a,show:!0,title:"Reject reviewer",children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsxs)(y.Z,{className:E,"data-hj-suppress":!0,"data-hs-do-not-collect":"true",variant:"body",children:["Rejecting ",t," takes them off this review. They will not be asked to answer, and this cannot be undone."]}),(0,r.jsx)(V.K,{error:g||i,label:"Why",maxLength:2e3,name:"reject_reason",onChange:e=>u(e.target.value),placeholder:"Recorded in the activity log so the reason is not lost.",rows:3,value:d}),!!c&&(0,r.jsx)(y.Z,{color:"text-red",role:"alert",variant:"caption",children:c}),(0,r.jsxs)("div",{className:"flex flex-wrap justify-end gap-3",children:[(0,r.jsx)(l.Z,{design:"secondary",onClick:a,type:"button",children:"Keep them"}),(0,r.jsx)(l.Z,{className:"bg-red hover:bg-red-roselight",disabled:s,isLoading:s,onClick:f,type:"button",children:"Reject reviewer"})]})]})})};Y.propTypes={nomineeLabel:s().string.isRequired,onConfirm:s().func.isRequired,onClose:s().func.isRequired,isRejecting:s().bool.isRequired,reasonError:s().string,submitError:s().string};var G=n(46295),H=n(39121);let J=/^[A-Za-z0-9_-]{1,64}$/,X=new Map([[h.l5.SUBSCRIPTION_REQUIRED,{message:"Reviews are not on your plan",description:"Ask an admin to add the Performance module to your subscription."}],[h.l5.FEATURE_DISABLED,{message:"Reviews are not available yet",description:"Elevolt switches this on, not your settings. Contact support if you need it."}],[h.l5.FORBIDDEN,{message:"You do not have access to this person’s reviewers",description:"Check you are signed in to the right workspace, then ask an admin to confirm your access."}]]),Q=async(e,t,n)=>{let r=[];for(let a=0;a<e.length;a+=n){let s=e.slice(a,a+n),o=await Promise.allSettled(s.map(t));r.push(...o)}return r},$=e=>{var t,n,a,s,b,C;let{tenantName:R,rsid:E}=e,_="string"==typeof E&&J.test(E)?E:void 0,{track:S}=(0,f.Ke)({app:"portal"}),[Z,P]=(0,o.useState)(1),[q,I]=(0,o.useState)(()=>new Set),[T,L]=(0,o.useState)(null),[D,B]=(0,o.useState)(null),[U,M]=(0,o.useState)(!1),W=(0,h.uJ)({rsid:_}),F=W.data,V=null==F?void 0:null===(t=F.review_cycle)||void 0===t?void 0:t.rcid,z=(0,h.VE)({rcid:V,enabled:!!V}),$=null===(n=z.data)||void 0===n?void 0:n.data,ee=(0,h.i)({rsid:_,relationship:k,page:Z,perPage:100}),{rows:et,meta:en,permissions:er}=ee,ea=(0,G.vL)(ee),es=ea===G.DI.WITHHELD,eo=ea===G.DI.LOADING,ei=ea===G.DI.UNAVAILABLE,el=(0,w.a)(F,$),ec=el===w.SC.OPEN,ed=(0,w.UM)(F,$),eu=!!V&&z.isPending&&!z.cycleError,ep=eu&&el===w.SC.UNKNOWN,em=!!(null==er?void 0:er.approve_review_participant)&&ec,eh=!!(null==er?void 0:er.reject_review_participant)&&ec,ef=!!(null==er?void 0:er.remove_review_participant)&&ec,eg=ec&&!em&&!eh&&!ef&&!eo&&!ei&&et.length>0,ev=null;eg&&er&&"object"==typeof er?ev="You can see who has been nominated for this person, but this round is no longer taking changes to its reviewers, so nobody here can be approved, rejected or removed. This is the round’s stage, not your access.":eg&&(ev="You can see who has been nominated for this person, but we could not tell whether any of them can be approved, rejected or removed, so those controls are hidden. Refresh the page, and let an admin know if it stays this way.");let ey=(0,h.dR)(),eb=(0,h.pi)(),ex=(0,h.C)(),{isComplete:ew,liveCount:ej}=(0,o.useMemo)(()=>(0,H.ZP)({rows:et,meta:en}),[en,et]),eC=!!z.cycleError||!!z.isUnreadable||!V;(0,o.useEffect)(()=>{I(new Set)},[Z,_]),(0,o.useEffect)(()=>{let e=null==en?void 0:en.last_page;Number.isInteger(e)&&!(e<1)&&P(t=>Math.min(t,e))},[null==en?void 0:en.last_page]);let eR=(0,o.useCallback)(e=>{I(e)},[]),ek=(0,o.useCallback)(e=>{I(t=>{if(!t.has(e))return t;let n=new Set(t);return n.delete(e),n})},[]),eN=(0,o.useCallback)(async e=>{B(e.rpid);try{await ey.mutateAsync({rpid:e.rpid,rsid:_,rcid:V}),A(e)&&S(m.dW.PERF_NOMINEES_APPROVED,{approved_count:1,failed_count:0,scope:"row",surface:m.S9.PERFORMANCE_REVIEWS}),i.default.success("Reviewer approved")}catch(e){}finally{B(null)}},[ey,V,_,S]),eE=(0,o.useCallback)((e,t)=>{(0,d.Z)({handler:async()=>{await ex.mutateAsync({rpid:e.rpid,rsid:_,rcid:V}),ek(e.rpid),i.default.success("Reviewer removed")},title:"Remove this reviewer",message:"".concat(t," will be taken off this review and will not be asked to answer. This cannot be undone."),confirmButtonText:"Remove them",cancelButtonText:"Keep them",suppressRecording:!0})},[ek,V,ex,_]),e_=(0,o.useCallback)((e,t)=>{eb.reset(),L({participant:e,label:t})},[eb]),eO=(0,o.useCallback)(async e=>{try{await eb.mutateAsync({rpid:T.participant.rpid,reason:e,rsid:_,rcid:V}),ek(T.participant.rpid),L(null),i.default.success("Reviewer rejected")}catch(e){}},[ek,V,eb,T,_]),eS=(0,o.useCallback)(async()=>{let e=et.filter(e=>q.has(e.rpid)&&A(e));if(0===e.length){i.default.error("Nothing to approve in that selection.");return}M(!0);try{let t=await Q(e,e=>ey.mutateAsync({rpid:e.rpid,rsid:_,rcid:V}
1),4),n=e.filter((e,n)=>"rejected"===t[n].status),r=t.length-n.length;if(I(new Set(n.map(e=>e.rpid))),r>0&&S(m.dW.PERF_NOMINEES_APPROVED,{approved_count:r,failed_count:n.length,scope:"bulk",surface:m.S9.PERFORMANCE_REVIEWS}),0===n.length){i.default.success(1===r?"1 reviewer approved.":"".concat(r," reviewers approved."));return}i.default.error("".concat(r," approved, ").concat(n.length," failed. The ones that failed are still selected."))}finally{M(!1)}},[ey,V,et,_,q,S]),eA=(0,o.useMemo)(()=>{let e=[{href:"/hr/".concat(R,"/performance"),name:"Performance",nodeType:"Link"},{href:"/hr/".concat(R,"/performance/team"),name:"My team",nodeType:"Link"}];if(_){var t;e.push({href:"/hr/".concat(R,"/performance/team/").concat(_),name:(null==F?void 0:null===(t=F.user)||void 0===t?void 0:t.name)||"Nominees",nodeType:"Link"})}return e},[_,F,R]),eZ=!W.isMissingContext&&W.isPending,eP=null;_?W.isMissingContext?eP={message:"We could not tell which workspace you are in",description:"Check you are signed in to the right workspace, then try again."}:W.cycleError?eP=X.get(W.cycleError.reason)||{message:"We could not load this review",description:W.cycleError.message}:W.isUnreadable&&(eP={message:"We could not read this review",description:"Your workspace answered, but not with anything we could show. Refresh the page, and let an admin know if it stays this way."}):eP={message:"We could not find this review",description:"The link you followed does not point at a review we can open. Go back to your team and pick the person again."};let eq=!!eP,eI=eb.error?(0,h.I6)(eb.error):null,eT=null==eI?void 0:null===(a=eI.fieldErrors)||void 0===a?void 0:a.reason,eL=eT?void 0:null==eI?void 0:eI.message,eD=et.filter(e=>q.has(e.rpid)&&A(e)).length,eB=et.filter(N),eU=eB.length>0&&!eB.some(O),eM=em&&eB.some(A),eW=null;return eM?eW=(0,r.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-3 rounded-lg border border-gray-200 p-3",children:[(0,r.jsx)(y.Z,{color:"text-gray-600",variant:"caption",children:0===q.size?"Select reviewers to approve several at once.":"".concat(q.size," selected, ").concat(eD," still to approve.")}),(0,r.jsx)(l.Z,{disabled:0===eD||U,isLoading:U,onClick:eS,size:"sm",type:"button",children:"Approve selected"})]}):em&&eU&&(eW=(0,r.jsx)("div",{className:"rounded-lg border border-gray-200 p-3",children:(0,r.jsx)(y.Z,{color:"text-gray-600",variant:"caption",children:"We cannot tell which of these reviewers have already been approved, so they cannot be approved several at once. Approve them one at a time. Approving somebody twice changes nothing."})})),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(x.Z,{thirdParty:!1,title:"".concat((0,p.kC)((0,p.parseUnderScore)(R))," - Approve nominees")}),(0,r.jsxs)("main",{className:"container flex flex-col gap-4 mx-auto px-4 md:px-8 lg:px-12 pb-6",children:[(0,r.jsx)("div",{className:"fs-exclude","data-hj-suppress":!0,"data-hs-do-not-collect":"true",children:(0,r.jsx)(g.Z,{breadcrumbs:eA,description:(0,w.ki)(el),tenantName:R,title:(null==F?void 0:null===(s=F.user)||void 0===s?void 0:s.name)?"".concat(F.user.name,"'s reviewers"):"Nominated reviewers"})}),!!(eZ||eq)&&(0,r.jsx)(c.ZP,{children:(0,r.jsx)(c.eW,{children:(0,r.jsx)(u.Z,{description:null==eP?void 0:eP.description,design:"wrapped",isError:eq,isLoading:!!eZ&&!eq,message:null==eP?void 0:eP.message})})}),!!(!eZ&&!eq&&es)&&(0,r.jsx)(c.ZP,{children:(0,r.jsxs)(c.eW,{children:[(0,r.jsx)(u.Z,{description:"Your own reviewers stay anonymous, and the people who nominated them are not shown to you. Your review appears in your reviews inbox when it opens.",design:"wrapped",message:"You cannot approve your own reviewers"}),(0,r.jsx)("div",{className:"flex justify-center pt-4",children:(0,r.jsx)(l.Z,{design:"secondary",href:"/hr/".concat(R,"/performance/team"),children:"Back to my team"})})]})}),!!(!eZ&&!eq&&!es)&&(0,r.jsxs)(r.Fragment,{children:[!!(ed&&!ep)&&(0,r.jsx)(v.Z,{message:ed.message,variant:ed.variant}),!!ev&&(0,r.jsx)(v.Z,{message:ev,variant:"info"}),(0,r.jsx)(c.ZP,{children:(0,r.jsx)(c.eW,{children:(0,r.jsx)(j.Z,{areBoundsPending:eu,areBoundsUnavailable:eC,errorReason:null===(b=ee.cycleError)||void 0===b?void 0:b.reason,isComplete:ew,isError:ei,isLoading:eo,liveCount:ej,maxPeers:null==$?void 0:$.max_peers,minPeers:null==$?void 0:$.min_peers,nominationWindow:el})})}),(0,r.jsx)(c.ZP,{children:(0,r.jsx)(c.eW,{padding:0,children:(0,r.jsx)(K,{bulkBar:eW,busyRpid:D,canApprove:em,canReject:eh,canRemove:ef,emptyDescription:(0,w.jw)(el),emptyMessage:"No reviewers nominated",errorDescription:null===(C=ee.cycleError)||void 0===C?void 0:C.message,isError:ei,isFetching:ee.isFetching,isLoading:eo,onApprove:eN,onPageChange:P,onReject:e_,onRemove:eE,onSelectionChange:eR,pagination:en,participants:et,selectable:eM,selectedKeys:q})})})]})]}),!!(T&&!es)&&(0,r.jsx)(Y,{isRejecting:eb.isPending,nomineeLabel:T.label,onClose:()=>L(null),onConfirm:eO,reasonError:eT,submitError:eL})]})};$.getInitialProps=async e=>{let{tenant:t,rsid:n}=e.query;return{tenantName:encodeURIComponent(t),rsid:n}}
1,$.propTypes={tenantName:s().string.isRequired,rsid:s().oneOfType([s().string,s().arrayOf(s().string)])};var ee=(0,b.withAuthSync)($)},17047:function(e,t,n){"use strict";var r=n(52322),a=n(2784),s=n(94217);n(56486);var o=n(47023),i=n(59578),l=n(42369),c=n(76467);let d=e=>{let{onClose:t,handler:n,preOnCloseFn:s,title:d,message:u,details:p,confirmButtonText:m,cancelButtonText:h,initialIsLoading:f,suppressRecording:g}=e,[v,y]=(0,a.useState)(!1),b=f||v,x=(0,a.useCallback)(async()=>{y(!0);try{await n(),s(),t()}catch(e){y(!1),(0,i.N2)(e,"ConfirmDialogContent")}},[n,s,t]),w=(0,a.useCallback)(()=>{v||(s(),t())},[v,s,t]);return(0,r.jsxs)("div",{className:"confirm-dialog flex flex-col bg-white py-3 px-3 sm:py-4 sm:px-4 rounded shadow-sm relative".concat(g?" ".concat("fs-exclude"):""),"data-hj-suppress":g||void 0,"data-hs-do-not-collect":g?"true":void 0,children:[!!b&&(0,r.jsx)(l.J,{fixed:!1,size:"sm"}),(0,r.jsx)("div",{className:"w-full border-gray-200",children:(0,r.jsx)(c.Z,{className:"leading-none",variant:"heading5",children:d})}),(0,r.jsx)("hr",{className:"-mx-3 sm:-mx-4 my-2 sm:my-3"}),(0,r.jsxs)("div",{className:"w-full py-2",children:[(0,r.jsx)(c.Z,{variant:"body",children:u}),!!p&&(0,r.jsx)(c.Z,{className:"mt-2 break-all",color:"text-gray-600",variant:"caption",children:p})]}),(0,r.jsx)("hr",{className:"-mx-3 sm:-mx-4 my-2 sm:my-3"}),(0,r.jsxs)("div",{className:"w-full flex flex-col-reverse sm:flex-row sm:justify-between gap-2 border-gray-200",children:[(0,r.jsx)(o.Z,{className:"w-full sm:w-auto",design:"secondary",disabled:v,onClick:w,children:h}),(0,r.jsx)(o.Z,{className:"w-full sm:w-auto",design:"primary",disabled:v,isLoading:v,onClick:x,children:m})]})]})};t.Z=e=>{let{handler:t,preOnCloseFn:n=()=>{},title:a="Are you sure?",message:o="It may not be possible to undo this action. Are you sure you want to proceed?",details:i="",confirmButtonText:l="Yes, Proceed.",cancelButtonText:c="No, Let me check.",canExit:u=!0,isLoading:p=!1,suppressRecording:m=!1}=e;(0,s._1)({closeOnEscape:u,closeOnClickOutside:u,customUI:e=>{let{onClose:s}=e;return(0,r.jsx)(d,{cancelButtonText:c,confirmButtonText:l,details:i,handler:t,initialIsLoading:p,message:o,onClose:s,preOnCloseFn:n,suppressRecording:m,title:a})}})}},62372:function(e,t,n){"use strict";n.d(t,{K:function(){return l}});var r=n(52322);n(2784);var a=n(13980),s=n.n(a),o=n(12524),i=n.n(o);let l=e=>{let{label:t,placeholder:n,name:a,error:s,rows:o,onChange:l,value:c,defaultValue:d,className:u,onKeyUp:p,onKeyDownHandler:m,onBlur:h,disabled:f,required:g=!1}=e,v=i()("block","text-sm","font-medium","tracking-wide","mb-1",{"text-gray-700":!s,"text-red-400":s}),y=i()("appearance-none","w-full","px-3","py-2","text-gray-700","bg-white","border","rounded-lg","leading-tight","transition-colors","duration-200","focus:outline-none","focus:ring-2","focus:ring-blue-500","focus:border-transparent","disabled:bg-gray-100","disabled:text-gray-500","disabled:cursor-not-allowed",{"border-gray-300":!s,"border-red-400":s,"focus:ring-red-500":s},u);return(0,r.jsxs)(r.Fragment,{children:[!!t&&(0,r.jsxs)("label",{className:v,htmlFor:a,children:[t,!!g&&(0,r.jsx)("span",{className:"text-red-400 text-xs ml-1",children:"*"})]}),(0,r.jsx)("textarea",{className:y,defaultValue:d,disabled:f,id:a,name:a,onBlur:h,onChange:l,onKeyDown:m,onKeyUp:p,placeholder:n,required:g,rows:o,value:c}),!!s&&(0,r.jsx)("span",{className:"text-red-400 text-xs mt-1 block",children:s})]})};l.propTypes={label:s().string,value:s().string,placeholder:s().string,name:s().string.isRequired,rows:s().number,error:s().string,onChange:s().func.isRequired,defaultValue:s().string,className:s().string,onKeyUp:s().func,onKeyDownHandler:s().func,onBlur:s().func,disabled:s().bool,required:s().bool}},56486:function(){},94217:function(e,t,n){"use strict";var r,a,s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),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 r=document.createElementNS(e,"svg");r.setAttribute("id","react-confirm-alert-firm-svg"),r.setAttribute("class","react-confirm-alert-svg"),r.appendChild(n),document.body.appendChild(r)}}(),t=document.getElementById(e.targetId||f),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=f,document.body.appendChild(t)),(h=(0,d.createRoot)(t)).render(l.default.createElement(m,e))};var i=n(2784),l=u(i),c=u(n(13980)),d=n(17029);
1function u(e){return e&&e.__esModule?e:{default:e}}function p(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 m=(a=r=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,r,a=arguments.length,s=Array(a),o=0;o<a;o++)s[o]=arguments[o];return n=r=p(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(s))),r.handleClickButton=function(e){e.onClick&&e.onClick(),r.close()},r.handleClickOverlay=function(e){var t=r.props,n=t.closeOnClickOutside,a=t.onClickOutside,s=e.target===r.overlay;n&&s&&(a(),r.close()),e.stopPropagation()},r.close=function(){var e,t,n,a=r.props.afterClose;document.body.classList.remove("react-confirm-alert-body-element"),e=r.props,(t=document.getElementById(e.targetId||f))&&h.unmount(t),(n=document.getElementById("react-confirm-alert-firm-svg"))&&n.parentNode.removeChild(n),document.body.children[0].classList.remove("react-confirm-alert-blur"),a()},r.keyboard=function(e){var t=r.props,n=t.closeOnEscape,a=t.onKeypressEscape,s=t.onkeyPress,o=t.keyCodeForClose,i=e.keyCode,l=27===i;o.includes(i)&&r.close(),n&&l&&(a(e),r.close()),s&&s()},r.componentDidMount=function(){document.addEventListener("keydown",r.keyboard,!1)},r.componentWillUnmount=function(){document.removeEventListener("keydown",r.keyboard,!1),r.props.willUnmount()},r.renderCustomUI=function(){var e=r.props,t=e.title,n=e.message,a=e.buttons;return(0,e.customUI)({title:t,message:n,buttons:a,onClose:r.close})},p(r,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),o(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.title,r=t.message,a=t.buttons,o=t.childrenElement,i=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"},i?this.renderCustomUI():l.default.createElement("div",{className:"react-confirm-alert-body"},n&&l.default.createElement("h1",null,n),r,o(),l.default.createElement("div",{className:"react-confirm-alert-button-group"},a.map(function(t,n){return l.default.createElement("button",s({key:n,className:t.className},t,{onClick:function(n){return e.handleClickButton(t)}}),t.label)})))))}}]),t}(i.Component),r.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},r.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}},a),h=null,f="react-confirm-alert"}},function(e){e.O(0,[5351,9277,2292,248,8939,9120,2888,9774,179],function(){return e(e.s=90104)}),_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.