PageSourceSearch

https://static.jobscore.com/prod/app/static/js/3548.56d8d906.chunk.js

js jobscore.com collected 2026-09-24 09:01:09 UTC 24,016 bytes, 2 lines download raw bytes

1"use strict";(globalThis.webpackChunkreact_js=globalThis.webpackChunkreact_js||[]).push([[3548],{10589(e,t,a){a.d(t,{A:()=>y});var l=a(96569),n=a(73723),r=a.n(n),i=a(31580),o=a(26856),d=a(75075),s=a(50521),c=Object.defineProperty,m=Object.defineProperties,u=Object.getOwnPropertyDescriptors,p=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable,b=(e,t,a)=>t in e?c(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a;const A=(0,l.forwardRef)(((e,t)=>{var a=e,{statusPrefix:n,statusPostfix:r,status:c,fullWidth:A,size:y,statusExtraData:v}=a,g=((e,t)=>{var a={};for(var l in e)E.call(e,l)&&t.indexOf(l)<0&&(a[l]=e[l]);if(null!=e&&p)for(var l of p(e))t.indexOf(l)<0&&f.call(e,l)&&(a[l]=e[l]);return a})(a,["statusPrefix","statusPostfix","status","fullWidth","size","statusExtraData"]);const{formatMessage:h}=(0,d.A)(),O={completed:{text:h({id:s.cS8}),color:"success"},tentative:{text:h({id:s.Tt1}),color:"warning"},declined:{text:h({id:s.n6s}),color:"error"},overdue:{text:h({id:s.$mo}),color:"error"},invited:{text:h({id:s.MJG}),color:"warning"},accepted:{text:h({id:s.W_D}),color:"success"},reconfirmed:{text:h({id:s.lcl}),color:"success"},assigned:{text:h({id:s.D94}),color:"success"},scheduled:{text:h({id:s.OsM},v),color:"neutral"},linkScheduled:{text:h({id:s.cS8}),color:"success"},processed:{text:h({id:s.jEQ}),color:"neutral"},dropped:{text:h({id:s.b$U}),color:"error"},delivered:{text:h({id:s.VB7}),color:"success"},deferred:{text:h({id:s.Yaf}),color:"neutral"},bounce:{text:h({id:s.lyh}),color:"error"},open:{text:h({id:s.JoL}),color:"success"},click:{text:h({id:s.z0B}),color:"success"},spamreport:{text:h({id:s.SvP}),color:"error"},unsubscribe:{text:h({id:s.oye}),color:"error"},unsynced:{text:h({id:s.Fe0}),color:"error"},expired:{text:h({id:s.cuz}),color:"error"},sent:{text:h({id:s.pVj}),color:"warning"},canceled:{text:h({id:s.WFE}),color:"error"},failed:{text:h({id:s.PHH}),color:"error"},pending:{text:h({id:s.Oag}),color:"warning"},suspended:{text:h({id:s.ASX}),color:"warning"},disputed:{text:h({id:s.f1q}),color:"warning"},partially_completed:{text:h({id:s.YYI}),color:"success"},none:{text:h({id:s.xTy}),color:"disabled"}}[c],_=l.createElement(i.A,{alignItems:"center"},O?l.createElement(l.Fragment,null,`${n}${O.text}`,r):l.createElement(l.Fragment,null,`${n}${c}`,r));return l.createElement(o.A,(x=((e,t)=>{for(var a in t||(t={}))E.call(t,a)&&b(e,a,t[a]);if(p)for(var a of p(t))f.call(t,a)&&b(e,a,t[a]);return e})({label:_,color:O?O.color:"neutral",size:y,uppercase:!0,fullWidth:A},g),m(x,u({ref:t}))));var x}));A.propTypes={statusPrefix:r().string,statusPostfix:r().node,status:r().string.isRequired,fullWidth:r().bool,size:r().string,statusExtraData:r().shape({date:r().string})},A.defaultProps={statusPrefix:"",statusPostfix:null,fullWidth:!0,size:"medium",statusExtraData:{date:""}};const y=A},698(e,t,a){a.d(t,{A:()=>C});var l=a(96569),n=a(73723),r=a.n(n),i=a(76054),o=a(75075),d=a(77686),s=a(15464),c=a(14447),m=a(13594),u=a(97636),p=a(37252),E=a(50521),f=a(70226),b=Object.defineProperty,A=Object.defineProperties,y=Object.getOwnPropertyDescriptors,v=Object.getOwnPropertySymbols,g=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable,O=(e,t,a)=>t in e?b(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,_=(e,t)=>{for(var a in t||(t={}))g.call(t,a)&&O(e,a,t[a]);if(v)for(var a of v(t))h.call(t,a)&&O(e,a,t[a]);return e};const x=(0,i.Z)({stringify:e=>`${e.full_name}${e.email}`}),P=({onClose:e,name:t,filterOptions:a})=>{const{insertData:n}=(0,u.A)(),r=(0,s.A)(t),i=(0,c.A)(),o=(0,l.useCallback)((l=>{const o=l.data.data,d=o.map((e=>(n(e),e.id)));a(o).length>0&&i(t,[].concat(r.current).concat(d)),e()}),[n,i,a]);return l.createElement(f.A,{onClose:e,onSubmitSuccess:o})};P.propTypes={onClose:r().func.isRequired,name:r().string.isRequired,filterOptions:r().func.isRequired};const k=e=>{var t=e,{name:a,label:n,placeholder:r,cmpProps:i,disableAdd:s,filterOptions:c,enableBulkAddRemove:f}=t,b=((e,t)=>{var a={};for(var l in e)g.call(e,l)&&t.indexOf(l)<0&&(a[l]=e[l]);if(null!=e&&v)for(var l of v(e))t.indexOf(l)<0&&h.call(e,l)&&(a[l]=e[l]);return a})(t,["name","label","placeholder","cmpProps","disableAdd","filterOptions","enableBulkAddRemove"]);const{connData:O,connLoading:k}=(0,u.A)(),{formatMessage:C}=(0,o.A)(),[w,I]=(0,l.useState)(!1),{userHasAdmin:S}=(0,p.A)(),T=S()&&!s,D=(0,m.A)("Select"),R=(0,l.useMemo)((()=>c(O||[])),[O,c]),j=(0,l.useCallback)((()=>{I(!0)}),[]),B=(0,l.useCallback)((()=>{I(!1)}),[]),M=(0,l.useMemo)((()=>{const e=_({hasAvatar:!0,virtualizationCfg:{itemHeight:D.subcomponents.SelectOption.variants.withAvatar.structure.height.value},avatarProps:e=>({src:e.avatar_urls}),loading:k,getOptionLabel:e=>e.full_name,getOptionValue:e=>e.id,options:R,filterOptions:x,placeholder:r},i);return T&&(e.addRowText=C({id:E.AgK}),e.onAddRow=j),e}),[k,R,x,r,i,T,j,C]);return l.createElement(l.Fragment,null,l.createElement(d.A,(W=_({name:a,label:n,addableRow:T},b),A(W,y({enableBulkAddRemove:f,cmpProps:M})))),w?l.createElement(P,{filterOptions:c,onClose:B,name:a}):null);var W};
1k.propTypes={name:r().string.isRequired,label:r().string,disableAdd:r().bool,enableBulkAddRemove:r().bool,placeholder:r().string,cmpProps:r().shape({}),filterOptions:r().func},k.defaultProps={cmpProps:{},label:null,disableAdd:!1,enableBulkAddRemove:!0,placeholder:null,filterOptions:e=>e};const C=k},94559(e,t,a){a.d(t,{A:()=>f});var l=a(96569),n=a(73723),r=a.n(n),i=a(80731),o=a(93354),d=a(30509),s=a(75075),c=a(32994),m=a(80706),u=a(93258),p=a(50521);const E=({attachment:e,noWrap:t,showIcon:a})=>{const n=(0,c.A)(),{alias:r}=n.tokens,{formatMessage:E}=(0,s.A)(),{infected:f}=e,b=(0,l.useRef)(),A=(0,m.A)({ref:b}),y=l.createElement(i.A,{href:f?null:e.url,"data-test-id":"link",showIcon:!1},l.createElement(o.Ay,{"data-test-id":"link-text",ref:b,truncate:!0,noWrap:t,color:f?r.skin.textLink.textColor.disabled:null,title:A?e.name:null},a?l.createElement(u.A,null):null,` ${e.name}`));return f?l.createElement(d.A,{title:E({id:p.oSO}),root:y},l.createElement(o.Ay,null,E({id:p.i0F},{infected:f}))):y};E.propTypes={attachment:r().shape({url:r().string,name:r().string,infected:r().string}).isRequired,noWrap:r().bool,showIcon:r().bool},E.defaultProps={noWrap:!0,showIcon:!0};const f=E},63548(e,t,a){a.d(t,{A:()=>Ie});var l=a(96569),n=a(73723),r=a.n(n),i=a(75075),o=a(7947),d=a(91760),s=a(97767),c=a(31580),m=a(7047),u=a(12312),p=a(60729),E=a(50920),f=a(263),b=a(79220),A=a(50521),y=a(44856),v=a(32994),g=a(82392),h=a(93354),O=a(13748),_=a(32261),x=a(70890),P=a(61379),k=a(92103),C=a(10589),w=a(94559),I=a(98345),S=a(29561),T=a(47500),D=a(70715),R=a(57937),j=a(18718),B=a(61449),M=Object.defineProperty,W=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,F=Object.prototype.propertyIsEnumerable,q=(e,t,a)=>t in e?M(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a;const L=({connLoading:e,email:t,doDeleteEmail:a,doCancelEmail:n})=>{const{formatMessage:r}=(0,i.A)(),d=(0,o.O6)(t,"candidate_email.id"),s=(0,o.O6)(t,"candidate_email.scheduled_sent"),c=(0,o.O6)(t,"candidate_email.scheduled_to_be_sent_at"),u=(0,o.O6)(t,"candidate_email.candidate_workflow.id"),p=c&&!s,E=(0,l.useCallback)(((t,a)=>l.createElement(m.A,((e,t)=>{for(var a in t||(t={}))z.call(t,a)&&q(e,a,t[a]);if(W)for(var a of W(t))F.call(t,a)&&q(e,a,t[a]);return e})({type:"outlined",colorScheme:"normal","data-test-id":"email-action-menu",iconOnly:!0,"aria-label":r({id:A.VVv}),loading:e,selected:a},t),l.createElement(k.A,null))),[]),f=(0,l.useCallback)((()=>{p?n({candidateWorkflowId:u,emailId:d}):a(d)}),[a,n,d,p,u]);return l.createElement(R.A,{placement:"bottom-end",root:E},l.createElement(j.A,null,l.createElement(B.A,{primary:r(p?{id:A.AnH}:{id:A.CV5}),"data-test-id":"remove-email",onClick:f})))};L.propTypes={connLoading:r().bool,email:r().shape({}),doDeleteEmail:r().func,doCancelEmail:r().func},L.defaultProps={connLoading:!1,email:{},doDeleteEmail:u.A,doCancelEmail:u.A};const $=L;var U=a(85249);const G={indented:!0,noPaddingBottom:!0},H=({email:e,disableBottomDivider:t,doDeleteEmail:a,doCancelEmail:n,displayThread:r})=>{const{formatMessage:d}=(0,i.A)(),s=(0,v.A)(),[u,p]=(0,l.useState)(!1),{getTimeZone:E}=(0,D.A)(),R=(0,l.useRef)(),j=(0,l.useRef)(),B=(0,l.useRef)(null),[M,W]=(0,l.useState)("0px"),[z,F]=(0,l.useState)("0px"),q=(0,l.useCallback)((()=>{var e,t;(null==(t=null==(e=R.current)?void 0:e.contentWindow)?void 0:t.document)&&(R.current.contentWindow.document.body.style.color=s.tokens.alias.skin.textCommon.textColor.default,R.current.contentWindow.document.body.style.fontFamily=s.tokens.global.typography.fontFamily.base)}),[R,s]);(0,l.useEffect)((()=>{q()}),[q]),(0,l.useEffect)((()=>()=>clearInterval(B.current)),[]);const L=(0,l.useCallback)((()=>{var e,t,a;const l=null==(a=null==(t=null==(e=null==R?void 0:R.current)?void 0:e.contentWindow)?void 0:t.document)?void 0:a.documentElement;l&&(W(`${l.getBoundingClientRect().height}px`),Array.from(l.querySelectorAll("a[href]")).forEach((e=>{e.attributes.target||e.setAttribute("target","_blank")})))}),[R,W]),H=(0,l.useCallback)((()=>{L(),q(),clearInterval(B.current),B.current=setInterval((()=>{window.requestIdleCallback(L)}),250)}),[R,q,L]),V=(0,l.useCallback)((()=>{var e;F(`${null==(e=j.current.contentWindow)?void 0:e.document.documentElement.getBoundingClientRect().height}px`)}),[j]),Z=(0,l.useCallback)((()=>{p((e=>!e))}),[]),N=(0,o.O6)(e,"candidate_email_permissions.can_view"),J=(0,o.O6)(e,"presenter.show_footer"),Y=(0,o.O6)(e,"presenter.sender_full_name"),K=(0,o.O6)(e,"presenter.body_html.original"),X=(0,o.O6)(e,"presenter.body_html.hidden"),Q=(0,o.O6)(e,"candidate_email.document_attachments"),ee=(0,o.O6)(e,"candidate_email.created_by.avatar_urls"),te=(0,o.O6)(e,"candidate_email.subject"),ae=(0,o.O6)(e,"presenter.participants_to"),le=(0,o.O6)(e,"presenter.participants_cc"),ne=(0,o.O6)(e,"presenter.participants_bcc"),re=(0,o.O6)(e,"presenter.email_participants_followers")||[],ie=(0,o.O6)(e,"presenter.show_status"),oe=(0,o.O6)(e,"presenter.status"),de=(0,o.O6)(e,"candidate_email.sent_on"),se=(0,o.O6)(e,"candidate_email.scheduled_to_be_sent_at"),ce=(0,o.O6)(e,"candidate_email.created_by.id"),me=(0,o.O6)(e,"candidate_email.is_received"),ue=(0,o.O6)(e,"candidate_email.created_by.full_name"),pe=(0,o.O6)(e,"candidate_email.candidate_workflow"),Ee=(0,o.O6)(pe,"type"),fe=(0,o.O6)(pe,"task_group_id"),be=(0,l.useMemo)((()=>(0,U.t)(pe)),[pe]),Ae=re.map((e=>{const t=(0,o.O6)(e,"ats_user.full_name"),a=(0,o.O6)(e,"ats_user.avatar_urls");return{node:l.createElement(g.Ay,{src:a}),label:t}}));let ye=null;N&&(ye=l.createElement(l.Fragment,null,l.createElement("iframe",{"data-test-id":"body-iframe",title:te,srcDoc:K,frameBorder:"0",scrolling:"no",ref:R,height:M,width:"100%",onLoad:H,sandbox:"allow-same-origin allow-popups allow-popups-to-escape-sandbox"}),X?l.createElement(c.A,null,l.createElement(m.A,{size:"small",type:"outlined",colorScheme:"normal","data-test-id":"show-hidden-body",iconOnly:!0,"aria-label":d({id:A.elF}),selected:u,onClick:Z},l.createElement(k.A,null))):null,X&&u?l.createElement("iframe",{"data-test-id":"body-hidden-iframe",title:te,srcDoc:X,frameBorder:"0",scrolling:"no",ref:j,height:z,width:"100%",onLoad:V}):null));const ve=l.createElement(l.Fragment,null,N&&le?l.createElement(h.Ay,{ml:2},d({id:A.ctE},{email:le})):null,N&&ne?l.createElement(h.Ay,{ml:2},d({id:A.eJn},{email:ne})):null,ye,(null==Q?void 0:Q.length)>0?l.createElement(T.A,{top:!0,size:"small"},Q.map((e=>l.createElement(w.A,{key:e.id,attachment:e,"data-test-id":"attachment"})))):null,J?l.createElement(T.A,{top:!0,bottom:!0,size:"small"},l.createElement(c.A,{justifyContent:"flex-end"},l.createElement(h.Ay,{variant:"caption1",color:s.tokens.alias.skin.textSubdued.textColor.default},l.createElement(O.A,{id:A.HAW,values:{userName:ue,userLink:e=>l.createElement(f.A,{to:(0,y.ROUTE_VIEW_USER)({userId:ce})},e)}}
1)))):null),ge=(0,l.useMemo)((()=>l.createElement(c.A,{justifyContent:"space-between"},l.createElement(c.A,null,l.createElement(g.Ay,{size:"large",src:ee}),l.createElement(T.A,{right:!0,size:"small"}),l.createElement(c.A,{flexDirection:"column"},l.createElement(c.A,{flexDirection:"row"},l.createElement(h.Ay,{color:s.tokens.alias.skin.textSubdued.textColor.default},l.createElement(O.A,{id:me?A.LfB:A.NWn,values:{userName:J?Y:ue,date:(0,_.Yq)(de,_.NC,{timeZone:E()}),userLink:e=>J?e:l.createElement(f.A,{variant:"body1",to:(0,y.ROUTE_VIEW_USER)({userId:ce})},e)}})),ie&&oe?l.createElement(l.Fragment,null,l.createElement(T.A,{left:!0,size:"small"}),l.createElement(C.A,{fullWidth:!1,status:oe,size:"small",statusExtraData:oe===S.vu&&se?{date:(0,_.Yq)(se,_.NC,{timeZone:E()})}:null})):null),N?l.createElement(h.Ay,null,d({id:A.Zz5},{email:ae})):null,Ee&&l.createElement(T.A,{mt:2},l.createElement(I.A,{status:be,taskGroupId:fe,type:Ee,showStatusPrefix:!0})))))),[ee,s,me,J,Y,ue,de,E,J,ce,ie,oe,d,ae,Ee,be,fe]),he=(0,l.useMemo)((()=>({actionsProps:{alignItems:"center"},customInfo:ge,forceCustomInfo:!0,actions:r?[]:[l.createElement(c.A,null,l.createElement(x.A,{items:Ae})),l.createElement($,{email:e,doDeleteEmail:a,doCancelEmail:n})],noPaddingTop:!0,noPaddingBottom:!0})),[ge,r,Ae,e,a]);return l.createElement(b.A,{headerProps:he,variant:P.Ek,colorScheme:P.B9,disableBottomDivider:t,cardBodyProps:G,startExpanded:!0},(()=>ve))};H.propTypes={email:r().shape({}),disableBottomDivider:r().bool,doDeleteEmail:r().func.isRequired,doCancelEmail:r().func,displayThread:r().bool},H.defaultProps={email:{},disableBottomDivider:!1,displayThread:!1,doCancelEmail:u.A};const V=H;var Z=a(19915),N=a(4183),J=a(83441),Y=a(47246),K=a(477),X=a(50193),Q=a(87961),ee=a(46229),te=a(73626),ae=a(15381),le=a(53393);const ne=e=>le.RZ((()=>le.Ik().shape({mark_private:le.lc().required().label(e({id:A.zdo})),email_participants:le.YO().required()})));var re=a(71664),ie=a(79205),oe=a(85458),de=a(21768),se=a(82922),ce=a(698);const me=(0,l.memo)((()=>{const{formatMessage:e}=(0,i.A)(),t=(0,ie.A)("mark_private"),a=(0,ie.A)("meta.undeletable_participants"),n=(0,l.useMemo)((()=>({isUndeletable:e=>a.includes(e.id)}
1)),[a]),r=(0,l.useMemo)((()=>({label:l.createElement(E.A,null)})),[]);return l.createElement(oe.Ay,{container:!0},l.createElement(oe.Ay,{row:!0},l.createElement(de.A,null,l.createElement(se.A,{label:e({id:A.zdo}),name:"mark_private",cmpProps:r}))),t?l.createElement(oe.Ay,{row:!0},l.createElement(de.A,null,l.createElement(ce.A,{name:"email_participants",enableBulkAddRemove:!1,helperText:e({id:A.s7R}),cmpProps:n}))):null)})),ue=({emailId:e,onClose:t,onSubmitSuccess:a})=>{const{connData:n,connLoading:r,connErrorEl:d,doFetch:s}=(0,K.A)(),{formatMessage:c}=(0,i.A)(),m=(0,l.useMemo)((()=>ne(c)),[c]);(0,l.useEffect)((()=>{const t=s((0,re.BBW)({emailId:e}));return()=>null==t?void 0:t.cancel()}),[e]);const u=(0,o.O6)(n,"participants"),p=(0,o.O6)(n,"private_access"),E=(0,l.useCallback)(((t,a,l)=>{const n=t.email_participants.filter((e=>!u.includes(e)));X.A.request((0,re.FEM)({emailId:e}),{method:"put",data:{id:e,email_participants:{private_access:n},mark_private:t.mark_private}},a,l)})),f=(0,l.useMemo)((()=>l.createElement(O.A,{id:A.dZl,values:{subject:(0,o.O6)(n,"subject")}})),[n]);return d?l.createElement(Q.A,{"data-test-id":"edit-email-privacy-error-dialog",onClose:t,title:f,open:!0},d):r?l.createElement(ee.A,null):E&&!n?null:l.createElement(te.A,{"data-test-id":"form-dialog",title:f,validationSchema:m,initialValues:{mark_private:(0,o.O6)(n,"private"),email_participants:u.concat(p),meta:{undeletable_participants:u}},actionButtonTitle:c({id:A.he8}),saveFn:E,onClose:t,onSubmitSuccess:a,autoSaveData:(0,ae.A)()},(()=>l.createElement(me,null)))};ue.propTypes={emailId:r().string.isRequired,onClose:r().func.isRequired,onSubmitSuccess:r().func.isRequired};const pe=ue;var Ee=Object.defineProperty,fe=Object.getOwnPropertySymbols,be=Object.prototype.hasOwnProperty,Ae=Object.prototype.propertyIsEnumerable,ye=(e,t,a)=>t in e?Ee(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,ve=(e,t)=>{for(var a in t||(t={}))be.call(t,a)&&ye(e,a,t[a]);if(fe)for(var a of fe(t))Ae.call(t,a)&&ye(e,a,t[a]);return e};const ge=({connLoading:e,emailId:t,handleEditEmailPrivacy:a,candidateId:n,trailProps:r,candidateEmailId:d,canEditPrivacy:s,allowReplyToAll:c})=>{const{formatMessage:u}=(0,i.A)(),[p,E]=(0,l.useState)(!1),b=(0,l.useCallback)((()=>{E(!1)}),[]),v=(0,l.useCallback)((({data:e})=>{const t=(0,o.O6)(e,"id"),l=(0,o.O6)(e,"private"),n=(0,o.O6)(e,"email_participants");a(t,l,n),b()}),[a,b]),g=(0,l.useCallback)(((t,a)=>l.createElement(m.A,ve({type:"outlined",colorScheme:"normal","data-test-id":"email-privacy-menu",iconOnly:!0,"aria-label":u({id:A.DzV}),loading:e,selected:a},t),l.createElement(k.A,null))),[]);return l.createElement(l.Fragment,null,p?l.createElement(pe,{"data-test-id":"edit-privacy-dialog",emailId:t,onClose:b,onSubmitSuccess:v}):null,l.createElement(R.A,{placement:"bottom-end",root:g},l.createElement(j.A,null,l.createElement(B.A,{primary:u({id:A.HCA}),"data-test-id":"reply-to",icon:l.createElement(N.A,ve({},Y.A)),component:f.A,to:(0,y.ROUTE_MESSAGES_ADD_FEEDBACK)(ve({section:"email",candidateCardId:n,candidateEmailId:d},r))}),c?l.createElement(B.A,{primary:u({id:A.qtX}),"data-test-id":"reply-to-all",icon:l.createElement(J.A,ve({},Y.A)),component:f.A,to:(0,y.ROUTE_MESSAGES_ADD_FEEDBACK)(ve({section:"email",candidateCardId:n,candidateEmailId:d,replyToAll:!0},r))}):null,l.createElement(B.A,{primary:u({id:A.zg3}),"data-test-id":"forward",icon:l.createElement(Z.A,ve({},Y.A)),component:f.A,to:(0,y.ROUTE_ADD_NOTE)(ve({candidateCardId:n,candidateEmailId:d},r))}),s?l.createElement(B.A,{primary:u({id:A.qJ8}),"data-test-id":"edit-privacy",onClick:()=>{E(!0)}}):null)))};ge.propTypes={connLoading:r().bool,emailId:r().string,handleEditEmailPrivacy:r().func,candidateId:r().string,trailProps:r().shape({}),candidateEmailId:r().string,canEditPrivacy:r().bool,allowReplyToAll:r().bool},ge.defaultProps={connLoading:!1,emailId:null,handleEditEmailPrivacy:null,candidateId:null,trailProps:null,candidateEmailId:null,allowReplyToAll:!1,canEditPrivacy:!1};const he=ge;var Oe=Object.defineProperty,_e=Object.getOwnPropertySymbols,xe=Object.prototype.hasOwnProperty,Pe=Object.prototype.propertyIsEnumerable,ke=(e,t,a)=>t in e?Oe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a;const Ce={unmountOnExit:!1},we=e=>{var t=e,{emailThread:a,appendedButton:n,doDeleteEmail:r,doCancelEmail:u,handleEditEmailPrivacy:v,candidateId:g,trailProps:h,displayThread:O,expanded:_}=t,x=((e,t)=>{var a={};for(var l in e)xe.call(e,l)&&t.indexOf(l)<0&&(a[l]=e[l]);if(null!=e&&_e)for(var l of _e(e))t.indexOf(l)<0&&Pe.call(e,l)&&(a[l]=e[l]);return a})(t,["emailThread","appendedButton","doDeleteEmail","doCancelEmail","handleEditEmailPrivacy","candidateId","trailProps","displayThread","expanded"]);const{formatMessage:P}=(0,i.A)(),[k,C]=(0,l.useState)(!1),[w,I]=(0,l.useState)(!0),S=(0,l.useCallback)((()=>{C((e=>!e))}),[]),T=(0,l.useCallback)((()=>{I((e=>!e))}),[]);(0,l.useEffect)((()=>{I(_)}),[_]);const D=(0,o.O6)(a[0],"candidate_email.subject"),R=(0,o.O6)(a[0],"candidate_email_permissions.can_edit_privacy"),j=(0,o.O6)(a[0],"candidate_email_permissions.can_view"),B=(0,o.O6)(a[0],"candidate_email.id"),M=(0,o.O6)(a[0],"candidate_email.private"),W=(0,o.O6)(a[0],"candidate_email.email_participants")||[],z=W.length-1,F=a.length-1,q=a.length,L=l.createElement(l.Fragment,null,W.filter((e=>e.ats_user)).map(((e,t)=>{const a=(0,o.O6)(e,"ats_user.id"),n=(0,o.O6)(e,"ats_user.full_name");return l.createElement(l.Fragment,{key:a},l.createElement(f.A,{"data-test-id":"private-participant",variant:"body1",to:(0,y.ROUTE_VIEW_USER)({userId:a})},n),t===z?" ":", ")}))),$=(0,l.useMemo)((()=>({title:l.createElement(l.Fragment,null,l.createElement(p.A,{mr:2}),P({id:A.kE9},{title:D}
1)),subHeaderContent:M?l.createElement(l.Fragment,null,l.createElement(E.A,null)," ",P({id:A.btT},{users:L})):null,actions:O?[]:[l.createElement(he,{emailId:B,handleEditEmailPrivacy:v,candidateId:g,trailProps:h,candidateEmailId:(0,o.O6)(a[0],"candidate_email.id"),canEditPrivacy:R,allowReplyToAll:1!==W.length})],disableMaxHeight:!0})),[D,M,L,B,v,g,h,O,a,R]);return l.createElement(b.A,((e,t)=>{for(var a in t||(t={}))xe.call(t,a)&&ke(e,a,t[a]);if(_e)for(var a of _e(t))Pe.call(t,a)&&ke(e,a,t[a]);return e})({headerProps:$,expanded:w,onToggle:T,hasHeaderBottomDivider:w,appendedButton:n,contentProps:Ce},x),(()=>l.createElement(d.A,{container:!0,spacing:0},q>1?a.map(((e,t)=>t<3||k?l.createElement(d.A,{item:!0,xs:12,key:e.candidate_email.id},l.createElement(V,{"data-test-id":"candidate-email",email:e,disableBottomDivider:t===F||!k&&2===t,doDeleteEmail:r,doCancelEmail:u,displayThread:O})):null)):l.createElement(d.A,{item:!0,xs:12},l.createElement(V,{"data-test-id":"candidate-email",email:a[0],doDeleteEmail:r,doCancelEmail:u,displayThread:O,disableBottomDivider:!0})),q>3&&l.createElement(s.A,null,l.createElement(c.A,{justifyContent:"center"},l.createElement(m.A,{type:"text",size:"small",onClick:S,"data-test-id":"show-all-emails",disabled:!j},P({id:k?A.I8T:A.G$g},{emailCount:q})))))))};we.propTypes={emailThread:r().arrayOf(r().shape({})),appendedButton:r().node,doDeleteEmail:r().func,doCancelEmail:r().func,handleEditEmailPrivacy:r().func,candidateId:r().string,trailProps:r().shape({}),displayThread:r().bool,expanded:r().bool},we.defaultProps={emailThread:[],appendedButton:null,doDeleteEmail:u.A,doCancelEmail:u.A,handleEditEmailPrivacy:null,candidateId:null,trailProps:null,displayThread:!1,expanded:!0};const Ie=we},98345(e,t,a){a.d(t,{A:()=>x});var l=a(96569),n=a(73723),r=a.n(n),i=a(75075),o=a(32994),d=a(31165),s=a(73616),c=a(9349),m=a(8927),u=a(10589),p=a(263),E=a(29561);const f={id:8,name:"partially_completed",friendly_name:"Completed"},b=[{id:1,name:"pending",friendly_name:"Pending"},{id:2,name:"completed",friendly_name:"Completed"},{id:3,name:"failed",friendly_name:"Failed"},{id:4,name:"canceled",friendly_name:"Canceled"},{id:5,name:"expired",friendly_name:"Expired"},{id:6,name:"suspended",friendly_name:"Suspended"},{id:7,name:"disputed",friendly_name:"Disputed"},f];var A=a(555),y=a(53349),v=a(50521),g=a(44856);const h={[A.WZ.id]:v.bdA,[A.JF.id]:v.Lau,[A.av.id]:v.$O5},O=(0,l.memo)((()=>{const{formatMessage:e}=(0,i.A)(),t=(0,o.A)(),{skin:a}=t.tokens.alias;return l.createElement(d.A,{title:e({id:v.ggC}),placement:"right"},l.createElement(m.A,{color:a.warning.baseColor.default,ml:2}))})),_=({status:e,assessmentStatusId:t,taskGroupId:a,showStatusPrefix:n,type:r,apiErrorMessage:o})=>{const{formatMessage:m}=(0,i.A)(),_=r===A.WZ.id&&e===E.Tr,x=(0,y.hn)(r,[A.nG.id,A.hz.id])&&e===E.PO,P=(0,y.uz)(b,t),k=_?l.createElement(c.A,{ml:2}):null,C=l.createElement(u.A,{clickable:_,fullWidth:!1,statusPrefix:n?`${m({id:h[r]})} `:"",status:(null==P?void 0:P.name)||e,statusPostfix:k});return _?l.createElement(d.A,{title:m({id:v.sLq})},l.createElement(p.A,{to:(0,g.ROUTE_TASK_SHOW)({taskGroupId:a})},C)):x?l.createElement(s.A,{root:C,size:"medium",placement:"right","data-test-id":"api-error-message-popover"},o):r===A.hz.id&&t===f.id?l.createElement(l.Fragment,null,C,l.createElement(O,null)):C};_.propTypes={status:r().string,assessmentStatusId:r().number,taskGroupId:r().string,showStatusPrefix:r().bool,type:r().oneOf([A.WZ.id,A.JF.id,A.av.id,A.nG.id,A.hz.id]).isRequired,apiErrorMessage:r().string},_.defaultProps={status:null,assessmentStatusId:null,taskGroupId:null,showStatusPrefix:!1,apiErrorMessage:null};const x=(0,l.memo)(_)},29561(e,t,a){a.d(t,{$z:()=>o,N6:()=>i,Of:()=>n,PO:()=>d,Ro:()=>l,Tr:()=>r,vu:()=>s});const l="click",n="sent",r="completed",i="expired",o="canceled",d="failed",s="scheduled"},85249(e,t,a){a.d(t,{t:()=>n});var l=a(29561);const n=e=>(null==e?void 0:e.completed)?l.Tr:(null==e?void 0:e.revoked)?l.$z:(null==e?void 0:e.expired)?l.N6:(null==e?void 0:e.clicked)?l.Ro:(null==e?void 0:e.failed)?l.PO:l.Of},47246(e,t,a){a.d(t,{A:()=>l});const l={variant:"h200"}}}]);
2//# sourceMappingURL=https://sourcemaps.jobscore.com/app/42313/static/js/3548.56d8d906.chunk.js.map

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.