1import{E as xe,q as ns,c as Le,j as e,d as P,o as z,P as u,r as d,A as hs,f as je,a0 as Ne,X as Ao,y as _o,Z as Bo,Y as _s,B as Io,b as Co,D as Je,l as Ve,Q as gs,m as We,n as is,F as po,aa as Eo,af as Mo,ab as Ho,ac as qo,ag as Fo,ah as js,G as zo,u as Jo,ae as xs,H as Vo,aG as Me,aH as He,I as Wo}from"./index-DOEDGpFv.js";/* empty css */import{W as Uo}from"./WorkTwoTone-BPRhA1qS.js";import{P as Go}from"./ProjectImgPlaceholder-DzGzBaip.js";import{F as Yo,a as Zo,C as Ko,L as Qo,D as mo,M as Xo,S as Do,W as er}from"./TalentMenuCard-BCGmzFKz.js";import{S as sr}from"./SaveTwoTone-BeeFrSUG.js";import{F as or}from"./FavoriteTwoTone-BjeDQwGa.js";import{f as ze}from"./findTalent.service-Bf6fInlV.js";import{S as rr}from"./ShortlistPopup-D6y9jE_I.js";import{S as nr}from"./ShortlistRemove-H9VQX7Mg.js";import{R as jo}from"./RadioGroup-BVZKrqaO.js";import{F as ir}from"./FormControlLabel-Cv1jetH4.js";import{R as tr}from"./Radio-BcikqwZL.js";import{C as dr}from"./ContentCopyTwoTone-DG5g0Th1.js";import{E as cr,P as xo}from"./PeopleAltTwoTone-UGP_l4Uo.js";import{S as lr}from"./ShareProjectPopup-CiedVp-f.js";import{M as ur,O as ar}from"./OfferConfrimationPopup-C11EHuiU.js";import{a as fo}from"./audition.service-9shYmHng.js";import{R as pr}from"./RecruiterDashBroadHeader-JVQDnjTz.js";import{L as mr}from"./LoaderPage-V8pn7OCQ.js";import{R as ys}from"./Recruiter404-CeW50bqo.js";import{J as jr}from"./JobPostingCard-C443wv0L.js";import{M as xr}from"./MoreVertTwoTone-BIQYDIFG.js";import{U as fr}from"./UnlockTalentProfile-CyrbtDAL.js";import{C as hr}from"./CustomDropdown-KMCu6Cw8.js";import{L as qe,A as ho,C as fs}from"./ArrowRight-Bl6iG-fk.js";import{A as go}from"./ArrowDropDown-BNWd2-nS.js";import{L as Fe}from"./ListItemText-Dml_I78M.js";import{T as gr}from"./TablePagination-rbCf-VGH.js";import"./CheckCircleTwoTone-Dq0qIYnk.js";import"./LockOpenTwoTone-BCtDkiWw.js";import"./LockTwoTone-CKCu7COH.js";import"./Done-CZg-3UNm.js";import"./PillsDropdown-Cc7vs6KQ.js";import"./close_icon-CFZZ4lWI.js";/* empty css */import"./Autocomplete-BiTc0fK0.js";import"./CheckboxContainer-DhXRkZn1.js";import"./Checkbox-DKFnH0fc.js";import"./recruiter_404-BprXiUuV.js";/* empty css */import"./Save-bfga-Jet.js";import"./Cancel-rtwU0jAA.js";/* empty css */import"./AdapterDayjs-Cm4_GCgE.js";import"./WarningTwoTone-i502AY6r.js";import"./Grid-DdjSVELe.js";import"./styled-Om9RrDqq.js";import"./useThemeProps-BeptFCZJ.js";import"./DateCalendar-BvCUxFPP.js";import"./useThemeProps-AF4bYKqg.js";import"./listItemButtonClasses-COmYTSa9.js";import"./KeyboardArrowRight-K5Vapl4X.js";import"./LastPage-CTKFULy8.js";const fe=ns.api.url,yr=o=>xe.get(`${fe}/v1/recruiter-project/openauditions/${o}`).then(p=>p.data),_r=o=>xe.get(`${fe}/v1/recruiter-project/close-auditions-details/${o}`).then(p=>p.data),Cr=({recruiter_id:o,project_id:p,character_id:i,limit:N=5,page:t=0,isDecline:v,sort:O})=>xe.get(`${fe}/v1/recruiter-project/selectprojectsbyid?limit=${N}&page=${t+1}&recruiter_id=${o}&project_id=${p??""}&character_id=${i??""}&isDecline=${v==!0?!0:""}&sort=${O??""}`).then(A=>A.data),br=({recruiter_id:o,project_id:p,character_id:i,limit:N=5,page:t=0})=>xe.get(`${fe}/v1/recruiter-project/recruiter-close-audition?limit=${N}&page=${t+1}&recruiter_id=${o}&project_id=${p??""}&character_id=${i??""}`).then(v=>v.data),wr=({recruiter_id:o,project_id:p,character_id:i})=>xe.get(`${fe}/v1/recruiter-project/applicant-decline-count/${o}/${p}/${i}`).then(N=>N.data),Nr=(o,p)=>xe.patch(`${fe}/v1/auditions/${o}`,p).then(i=>i.data),vr=o=>xe.post(`${fe}/v1/logs`,o).then(p=>p.data),kr=()=>xe.get(`${fe}/v1/report-reason/reportProjectList`).then(o=>o.data),Pr=o=>xe.get(`${fe}/v1/auditions/audition-character/${o}`).then(p=>p.data),$r=o=>xe.post(`${fe}/v1/job-abuse-report`,o).then(p=>p.data),re={getMyProjectDetail:yr,getAuditionDetails:Cr,getfilterOptionCount:wr,updateAudition:Nr,createLogs:vr,getCloseAuditionDetails:br,getCloseProjectDetail:_r,reportProjectList:kr,projectAbuseReport:$r,getMenuOpenOrClose:Pr},Sr=Le([e.jsx("circle",{cx:"9",cy:"8.5",r:"1.5",opacity:".3"},"0"),e.jsx("path",{d:"M4.34 17h9.32c-.84-.58-2.87-1.25-4.66-1.25s-3.82.67-4.66 1.25",opacity:".3"},"1"),e.jsx("path",{d:"M9 12c1.93 0 3.5-1.57 3.5-3.5S10.93 5 9 5 5.5 6.57 5.5 8.5 7.07 12 9 12m0-5c.83 0 1.5.67 1.5 1.5S9.83 10 9 10s-1.5-.67-1.5-1.5S8.17 7 9 7m0 6.75c-2.34 0-7 1.17-7 3.5V19h14v-1.75c0-2.33-4.66-3.5-7-3.5M4.34 17c.84-.58 2.87-1.25 4.66-1.25s3.82.67 4.66 1.25zm11.7-3.19c1.16.84 1.96 1.96 1.96 3.44V19h4v-1.75c0-2.02-3.5-3.17-5.96-3.44M15 12c1.93 0 3.5-1.57 3.5-3.5S16.93 5 15 5c-.54 0-1.04.13-1.5.35.63.89 1 1.98 1 3.15s-.37 2.26-1 3.15c.46.22.96.35 1.5.35"},"2")]),yo=Le(e.jsx("circle",{cx:"12",cy:"12",r:"8"})),Or=Le([e.jsx("path",{d:"M4 6.47V18h16v-8H5.76z",opacity:".3"},"0"),e.jsx("path",{d:"m18 4 2 4h-3l-2-4h-2l2 4h-3l-2-4H8l2 4H7L5 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4zm2 14H4V6.47L5.76 10H20z"},"1")]),Tr=Le([e.jsx("circle",{cx:"12",cy:"8",r:"2",opacity:".3"},"0"),e.jsx("path",{d:"M12 15c-2.7 0-5.8 1.29-6 2.01V18h12v-1c-.2-.71-3.3-2-6-2",opacity:".3"},"1"),e.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m0-6c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m0 7c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4m6 5H6v-.99c.2-.72 3.3-2.01 6-2.01s5.8 1.29 6 2z"},"2")]),Lr=Le(e.jsx("path",{d:"M10 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m0-6c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2M4 18c.22-.72 3.31-2 6-2 0-.7.13-1.37.35-1.99C7.62 13.91 2 15.27 2 18v2h9.54c-.52-.58-.93-1.25-1.19-2zm15.43.02c.36-.59.57-1.28.57-2.02 0-2.21-1.79-4-4-4s-4 1.79-4 4 1.79 4 4 4c.74 0 1.43-.22 2.02-.57L20.59 22 22 20.59c-1.5-1.5-.79-.8-2.57-2.57M16 18c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"})),Rr=Le([e.jsx("path",{d:"M12 20c4.41 0 8-3.59 8-8s-3.59-8-8-8-8 3.59-8 8 3.59 8 8 8M10 7.5l6 4.5-6 4.5z",opacity:".3"},"0"),e.jsx("path",{d:"M12 22c5.52 0 10-4.48 10-10S17.52 2 12 2 2 6.48 2 12s4.48 10 10 10m0-18c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8m-2 3.5v9l6-4.5z"},"1")]),Ar=Le(e.jsx("path",{d:"M3 10h11v2H3zm0-4h11v2H3zm0 8h7v2H3zm17.59-2.07-4.25 4.24-2.12-2.12-1.41 1.41L16.34 19 22 13.34z"})),Br=Le([e.jsx("path",{d:"M3 12v2h8.77l-1.11 5.34L15 15V5H6z",opacity:".3"},"0"),e.jsx("path",{d:"M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v2c0 1.1.9 2 2 2h6.31l
1-.95 4.57-.03.32c0 .41.17.79.44 1.06L9.83 23l6.58-6.59c.37-.36.59-.86.59-1.41V5c0-1.1-.9-2-2-2m0 12-4.34 4.34L11.77 14H3v-2l3-7h9zm4-12h4v12h-4z"},"1")]),Cs=({ProjectTitle:o,ProjectImg:p,ProjectType:i,ProjectContent:N,CharactersCount:t,AuditionsCount:v,TotalApplicateCount:O,handleShowApplicants:A,isShowApplicants:q,ProjectId:X})=>e.jsx("div",{className:"w-full bg-white p-6 rounded-xl newSub1",children:e.jsxs(P.Row,{className:"gap-4 sm:gap-0",children:[e.jsx(P.Col,{lg:2,xs:12,sm:4,className:"h-40",children:p?e.jsx("img",{style:{borderRadius:10},src:p,alt:"-talent",className:"h-full w-full object-cover"}):e.jsx(Go,{isSmall:!0,letter:o==null?void 0:o.slice(0,1)})}),e.jsx(P.Col,{lg:7.5,xs:12,sm:6,children:e.jsxs(P.Row,{children:[e.jsxs(P.Col,{xs:12,children:[e.jsx("p",{className:"project_name cursor-pointer",onClick:()=>{window.open(`/app/my-projects#${X}`,"_blank","noopener,noreferrer")},children:o}),e.jsx("p",{className:"type_project_name",children:i})]}),e.jsx(P.Col,{xs:12,children:e.jsx("p",{className:"project_content mt-2",children:N})}),e.jsxs(P.Col,{xs:12,className:"flex justify-between my-5 flex-wrap",children:[e.jsxs("div",{className:"flex gap-4 items-center",children:[e.jsx("div",{className:"",children:e.jsx(Tr,{sx:{color:"#9B26B6"}})}),e.jsxs("div",{className:"project_catg",children:[e.jsx("p",{className:"title",children:e.jsx("strong",{children:"Characters"})}),e.jsx("p",{className:"count_value",children:t>0?t:0})]})]}),e.jsxs("div",{className:"flex gap-4 items-center",children:[e.jsx("div",{className:"",children:e.jsx(Uo,{sx:{color:"#9B26B6"}})}),e.jsxs("div",{className:"project_catg",children:[e.jsx("p",{className:"title",children:e.jsx("strong",{children:"Job Postings"})}),e.jsx("p",{className:"count_value",children:v>0?v:0})]})]}),e.jsxs("div",{className:"flex gap-4 items-center",children:[e.jsx("div",{className:"",children:e.jsx(Sr,{sx:{color:"#9B26B6"}})}),e.jsxs("div",{className:"project_catg",children:[e.jsx("p",{className:"title",children:e.jsx("strong",{children:"Total applicants"})}),e.jsx("p",{className:"count_value",children:O})]})]}),e.jsx("div",{})]})]})}),e.jsx(P.Col,{lg:2.5,xs:12,sm:2,className:"flex flex-col gap-2",children:O>0?e.jsx(z,{text:q?"Hide applicants":"Show applicants",onClick:A,style:{padding:2},white:q}):null})]})});Cs.propTypes={ProjectTitle:u.string.isRequired,ProjectImg:u.string,ProjectType:u.string.isRequired,ProjectContent:u.string.isRequired,CharactersCount:u.number.isRequired,AuditionsCount:u.number.isRequired,TotalApplicateCount:u.number.isRequired,handleShowApplicants:u.func.isRequired,isS
1howApplicants:u.bool.isRequired,ProjectId:u.oneOfType([u.string,u.number]).isRequired};const bs=({talentDetails:o,HandleShareProject:p,HandleMakeOffer:i,RefreshAuditionData:N,DeclineOnClick:t,isUnlockTalentListPage:v=!1,projectDetails:O=null,isProjectClosed:A,closeAuditionData:q,isUnlockData:X})=>{var Q,ke,ts,Pe,ds,Ae,ne,Ue,cs,ls,$e,Ge,Ye,us,Be,Ze,y,Se,S,le,Y,pe,as,Ke,be,Qe,L,Ie,we,Xe,Ee,ps,De,es,ss,os,M,rs;const{user:B,isProfileFreezed:r}=d.useContext(hs),[W,x]=d.useState(!1),[K,f]=d.useState((o==null?void 0:o.shortlist_notes)??""),[Re,U]=d.useState(!1),[_,he]=d.useState(null),[k,b]=d.useState(!1),[$,h]=d.useState({isOpen:!1,data:null}),[ge,ve]=je.useState(0),[ae,de]=d.useState(!1),ce=((Q=o==null?void 0:o.note_for_recruiter)==null?void 0:Q.trim())||"",C=ce.length>50,ye=ae?ce:ce.substring(0,50),E=async l=>{var T,ue,D,F;if((T=o==null?void 0:o.shortlistData)!=null&&T.id){let ee={shortlist_notes:l,isFavourite:!0};return await ze.HandleShortListNoteChanges((ue=o==null?void 0:o.shortlistData)==null?void 0:ue.id,ee).then(async ie=>{if(ie)return N(),ie}).finally(()=>U(!1))}if(B!=null&&B.user_id&&(_!=null&&_.user_id)&&((D=o==null?void 0:o.recruiterCharacter)!=null&&D.id)){let ee={charcter_id:(F=o==null?void 0:o.recruiterCharacter)==null?void 0:F.id,talent_id:_==null?void 0:_.user_id,user_id:_==null?void 0:_.user_id,isFavourite:!0,recruiter_id:B==null?void 0:B.user_id,shortlist_notes:l??""};return await ze.AddShortlistbyCharacter(ee).then(async ie=>{if(ie)return N(),ie}).finally(()=>U(!1))}},_e=()=>{var l,T,ue,D,F;if((l=o==null?void 0:o.shortlistData)!=null&&l.id){b(!0);let ee={shortlist_notes:K};ze.HandleShortListNoteChanges((T=o==null?void 0:o.shortlistData)==null?void 0:T.id,ee).then(ie=>{x(Oe=>!Oe)}).finally(()=>{b(!1)})}else{let ee={charcter_id:(ue=o==null?void 0:o.recruiterCharacter)==null?void 0:ue.id,talent_id:(_==null?void 0:_.user_id)||((D=o==null?void 0:o.user)==null?void 0:D.user_id),user_id:(_==null?void 0:_.user_id)||((F=o==null?void 0:o.user)==null?void 0:F.user_id
1),recruiter_id:B==null?void 0:B.user_id,shortlist_notes:K};return ze.AddShortlistbyCharacter(ee).then(ie=>{x(Oe=>!Oe)}).finally(()=>{b(!1)})}},G=async l=>await ze.HandleRemoveShortlistedTalent(l).then(async T=>(N(),T)).finally(()=>{h({data:null,isOpen:!1})});d.useEffect(()=>{var l,T;(l=o==null?void 0:o.shortlistData)!=null&&l.shortlist_notes&&f((T=o==null?void 0:o.shortlistData)==null?void 0:T.shortlist_notes)},[o==null?void 0:o.shortlistData]);const Ce=l=>{const T=F=>F.toLocaleString();return(F=>F!=null&&F!=0&&F!=="")(l)?`â¹${T(l)}`:"NA"};return e.jsxs("div",{id:"TalentCard",className:"w-full bg-white p-6 mobile-pad removepadding15 rounded-xl",children:[e.jsxs(P.Row,{className:"gap-4 sm:gap-0",children:[e.jsx(P.Col,{lg:2,xs:12,sm:4,children:e.jsx("img",{className:"cursor-pointer",src:((ts=(ke=o==null?void 0:o.user)==null?void 0:ke.gallaryData)==null?void 0:ts.file_url)??"",alt:`${(Pe=o==null?void 0:o.user)==null?void 0:Pe.first_name}-talent`,style:{borderRadius:10},onClick:()=>{var l;window.open(`/talent/${(l=o==null?void 0:o.user)==null?void 0:l.userUniqueId}`,"_blank")}})}),e.jsx(P.Col,{lg:7.3,xs:12,sm:6,children:e.jsxs(P.Row,{className:"flex flex-col gap-5",children:[e.jsxs(P.Col,{xs:12,className:"flex justify-between",children:[e.jsxs("p",{className:"talent_name mb-2",children:[e.jsx("span",{onClick:()=>{var l;window.open(`/talent/${(l=o==null?void 0:o.user)==null?void 0:l.userUniqueId}`,"_blank")},className:"cursor-pointer",children:`${(ds=o==null?void 0:o.user)==null?void 0:ds.first_name} ${((Ae=o==null?void 0:o.unLockData)==null?void 0:Ae.isRecruiterUnlocked)==!0?(ne=o==null?void 0:o.user)==null?void 0:ne.last_name:""} `})," ",e.jsx("span",{style:{color:"#44454D"},children:((cs=(Ue=o==null?void 0:o.recruiterCharacter)==null?void 0:Ue.character_name)==null?void 0:cs.length)>=2?`[${(ls=o==null?void 0:o.recruiterCharacter)==null?void 0:ls.character_name}]`:""})]}),e.jsxs("div",{className:"declinebxouter",children:[q===!0?e.jsx(Ne,{title:o!=null&&o.isDecline?"Decline, click to remove":"Click here to Decline",children:e.jsx(Br,{sx:{color:(o==null?void 0:o.isDecline)===!0?"#9B26B6":"#979797"},onClick:r?"":l=>{A||(!(o!=null&&o.isDecline)||o!=null&&o.isDecline)&&t(l)},className:"cursor-pointer"})}):"",q===!0?e.jsx(Ne,{title:o!=null&&o.shortlistData?"Shortlisted, click to remove":"Click here to shortlist the talent",children:e.jsx(or,{sx:{color:($e=o==null?void 0:o.shortlistData)!=null&&$e.isFavourite?"#9B26B6":"#979797"},onClick:r?"":()=>{var l,T,ue,D,F,ee,ie,Oe;if(o!=null&&o.shortlistData){h({isOpen:!0,data:o});return}he({file_url:(T=(l=o==null?void 0:o.user)==null?void 0:l.gallaryData)==null?void 0:T.file_url,name:(ue=o==null?void 0:o.user)==null?void 0:ue.first_name,user_id:(D=o==null?void 0:o.user)==null?void 0:D.user_id,date_of_birth:(F=o==null?void 0:o.user)==null?void 0:F.date_of_birth,shortlist_notes:((ee=o==null?void 0:o.shortlistData)==null?void 0:ee.shortlist_notes)??"",talent_type:(Oe=(ie=o==null?void 0:o.user)==null?void 0:ie.talenter)==null?void 0:Oe.talent_type}),U(!0)},className:"cursor-pointer"})}):""]})]}),e.jsxs(P.Col,{xs:12,className:"flex justify-between",children:[e.jsxs("div",{className:"flex gap-4 items-center",children:[e.jsx("div",{className:"genderincon",children:e.jsx("img",{src:((Ye=(Ge=o==null?void 0:o.user)==null?void 0:Ge.talenter)==null?void 0:Ye.gender)==1?Yo:Zo,alt:""})}),e.jsxs("div",{className:"talent_catg",children:[e.jsx("p",{className:"title",children:e.jsx("strong",{children:"Gender"})}),e.jsx("p",{className:"catg_value",children:((Be=(us=o==null?void 0:o.user)==null?void 0:us.talenter)==null?void 0:Be.gender)==0?"Female":((y=(Ze=o==null?void 0:o.user)==null?void 0:Ze.talenter)==null?void 0:y.gender)===1?"Male":"Neutral"})]})]}),e.jsxs("div",{className:"flex gap-4 items-center",children:[e.jsx("div",{className:"",children:e.jsx(Ko,{sx:{color:"#9B26B6"}})}),e.jsxs("div",{className:"talent_catg",children:[e.jsx("p",{className:"title",children:e.jsx("strong",{children:"Age"})}),e.jsx("p",{className:"catg_value",children:Ao(new Date((Se=o==null?void 0:o.user)==null?void 0:Se.date_of_birth))})]})]}),e.jsxs("div",{className:"flex gap-4 items-center",children:[e.jsx("div",{className:"",children:e.jsx(Qo,{sx:{color:"#9B26B6"}})}),e.jsxs("div",{className:"talent_catg",children:[e.jsx("p",{className:"title",children:e.jsx("strong",{children:"Location"})}),e.jsx("p",{className:"catg_value",children:(Y=(le=(S=o==null?void 0:o.user)==null?void 0:S.talenter)==null?void 0:le.currentCity)==null?void 0:Y.city_name})]})]}),e.jsx("div",{})]}),e.jsx(P.Col,{xs:12,children:!v&&e.jsxs("div",{className:"flex gap-4 items-center",children:[e.jsx("div",{className:"",children:e.jsx(Or,{sx:{color:"#9B26B6"}})}),e.jsxs("div",{className:"talent_catg",children:[e.jsx("p",{className:"title",children:e.jsx("strong",{children:"Postings"})}),e.jsx("div",{className:"flex gap-3 flex-wrap",children:(as=(pe=o==null?void 0:o.shareProject)==null?void 0:pe.projectAudition)==null?void 0:as.map(l=>e.jsxs("p",{className:"talent_audition_link flex gap-1 cursor-pointer",onClick:()=>{window.open(`${l==null?void 0:l.url}`,"_blank")},children:[l==null?void 0:l.file_name,e.jsx(Rr,{sx:{color:"#979797",fontSize:15}})]}))})]})]})}),e.jsx(P.Col,{xs:12,children:e.jsxs("div",{className:"flex gap-4 items-center",children:[e.jsx("div",{className:"",children:e.jsx(mo,{sx:{color:"#9B26B6"}})}),e.jsxs("div",{className:"talent_catg w-full",children:[e.jsx("p",{className:"title",children:e.jsx("strong",{children:"Hire Me because..."})}),e.jsx("p",{style:{whiteSpace:"pre-line"},children:ce?e.jsxs(e.Fragment,{children:[ye,C&&e.jsxs(e.Fragment,{children:[!ae&&"...",e.jsx("span",{children:"Â Â "}),e.jsx("label",{onClick:()=>de(!ae),className:"showmore",style:{cursor:"pointer"},children:e.jsx("u",{children:ae?"Show less":"Show more"})})]})]}):"None"})]})]})}),e.jsx(P.Col,{xs:12,children:e.jsxs("div",{className:"flex gap-4 items-center",children:[e.jsx("div",{className:"",children:e.jsx(mo,{sx:{color:"#9B26B6"}})}),e.jsxs("div",{className:" talent_catg w-full",children:[e.jsx("p",{className:"title",children:e.jsx("strong",{children:"Internal note"})}),e.jsx(_o,{sx:{width:"100%"}
1,variant:"standard",id:"internal_note",name:"internal_note",placeholder:"Mention why are you shortlisting this talent. It helps recall later.",value:K,slotProps:{htmlInput:{autoComplete:"new-password",maxLength:150},endAdornment:k?e.jsx(Bo,{size:"20px",sx:{color:"#9B26B6"}}):W?q===!0?e.jsx(_s,{onClick:_e,children:e.jsx(sr,{sx:{color:"#9B26B6"}})}):null:q===!0?e.jsx(_s,{onClick:r?void 0:()=>x(l=>!l),sx:{p:0},children:e.jsx(Xo,{sx:{color:"#E5E5E5"}})}):null},multiline:!0,onChange:l=>f(l.target.value),disabled:!W||k,onInput:l=>ve(l.target.value.length)}),e.jsxs("p",{className:"text-right text-xs mt-2",children:[K.length?K.length:ge," / 150"]})]})]})})]})}),q===!0?e.jsx(e.Fragment,{children:e.jsxs(P.Col,{lg:2.7,xs:12,sm:2,className:"flex flex-col gap-2 ",children:[A||(Ke=o==null?void 0:o.shareProject)!=null&&Ke.id?(o==null?void 0:o.isDecline)===!0?e.jsx(Ne,{title:"Remove from Decline list first",placement:"top",children:e.jsx("div",{style:{width:"100%"},children:e.jsx(z,{text:(be=o==null?void 0:o.shareProject)!=null&&be.id?"Share more":"Share Project",style:{width:"100%"},disableBtn:!0})})}):e.jsx(Ne,{title:A?"Project closed":o!=null&&o.shareProject?e.jsx(Do,{data:o==null?void 0:o.shareProject,talent_name:(Qe=o==null?void 0:o.user)==null?void 0:Qe.first_name}):"",placement:"top",children:e.jsx("div",{style:{width:"100%"},children:e.jsx(z,{text:(L=o==null?void 0:o.shareProject)!=null&&L.id?"Share more":"Share Project",white:!0,style:{padding:2,width:"100%"},onClick:r?"":p,disableBtn:A||r,disabled:A||r})})}):(o==null?void 0:o.isDecline)===!0?e.jsx(Ne,{title:"Remove from Decline list first",placement:"top",children:e.jsx("div",{style:{width:"100%"},children:e.jsx(z,{text:(Ie=o==null?void 0:o.shareProject)!=null&&Ie.id?"Share more":"Share Project",style:{width:"100%"},disableBtn:!0})})}):e.jsx(z,{text:(we=o==null?void 0:o.shareProject)!=null&&we.id?"Share more":"Share Project",white:!0,style:{padding:2,width:"100%"},onClick:r?"":p,disableBtn:r}),A?e.jsx(Ne,{title:"Project closed",placement:"top",children:e.jsx("div",{style:{width:"100%"},children:e.jsx(z,{text:"Make an offer",style:{width:"100%"},disableBtn:!0})})}):(o==null?void 0:o.isDecline)===!0?e.jsx(Ne,{title:(Xe=o==null?void 0:o.offerData)!=null&&Xe.declineOffer||(Ee=o==null?void 0:o.offerData)!=null&&Ee.acceptOffer?null:"Remove from Decline list first",placement:"top",children:e.jsx("div",{style:{width:"100%"},children:e.jsx(z,{text:o!=null&&o.offerData?(ps=o==null?void 0:o.offerData)!=null&&ps.declineOffer?"Declined":(De=o==null?void 0:o.offerData)!=null&&De.acceptOffer?"Accepted":"Offered":"Make an offer",style:{width:"100%"},disableBtn:!0})})}):e.jsx(z,{text:o!=null&&o.offerData?(es=o==null?void 0:o.offerData)!=null&&es.declineOffer?"Declined":(ss=o==null?void 0:o.offerData)!=null&&ss.acceptOffer?"Accepted":"Offered":"Make an offer",white:!0,style:{padding:2},disabled:o==null?void 0:o.offerData,outlinegray:o==null?void 0:o.offerData,onClick:r?"":i,disableBtn:r}),e.jsxs("div",{className:"left_pro_info_App",style:{width:"100%"},children:[e.jsxs(Io,{sx:{display:"flex",alignItems:"center",gap:1},children:[e.jsx(er,{sx:{color:"#9B26B6",fontSize:22}}),e.jsx("strong",{children:"Min. expected pay (Rs/day)"})]}),e.jsx("p",{className:"PAddingAdd",children:Ce(o==null?void 0:o.minimum_expected_pay)})]})]})}):""]}),e.jsx(rr,{userDetails:_,open:Re,HandleSave:E,setClose:U,oldNote:_==null?void 0:_.shortlist_notes}),e.jsx(nr,{setClose:()=>h({isOpen:!1,data:null}),open:$.isOpen,data:{first_name:(M=(os=$==null?void 0:$.data)==null?void 0:os.user)==null?void 0:M.first_name},character:(rs=$.data)==null?void 0:rs.recruiterCharacter,project:O,HandleDelete:()=>{var l,T;return G((T=(l=$.data)==null?void 0:l.shortlistData)==null?void 0:T.id)}})]})};bs.propTypes={talentDetails:u.object.isRequired,HandleShareProject:u.func.isRequired,HandleMakeOffer:u.func.isRequired,RefreshAuditionData:u.func.isRequired,DeclineOnClick:u.func.isRequired,isUnlockTalentListPage:u.bool,projectDetails:u.object,isProjectClosed:u.bool.isRequired,closeAuditionData:u.bool.isRequired,isUnlockData:u.bool.isRequired};function ws({openDialog:o,onClose:p,userData:i,refreshCloseProject:N}){const t=Co(),{user:v}
1=d.useContext(hs),[O,A]=d.useState(!1),[q,X]=d.useState(!1),[B,r]=d.useState(!1),[W,x]=je.useState(0),[K,f]=je.useState(0),[Re,U]=je.useState(!1),[_,he]=d.useState(""),[k,b]=je.useState([]),[$,h]=d.useState(null),[ge,ve]=je.useState(!1);d.useEffect(()=>{r(!1),A(o),re.reportProjectList().then(E=>{b(E),h(E[0].id)})},[o]);function ae(){var _e,G,Ce;X(!0),x(1);const E={user_id:`${v==null?void 0:v.user_id}`,message:`<p> ${v==null?void 0:v.first_name} (Recruiter ${v==null?void 0:v.user_id}) banned the <a class="talent_name" href="${ns.admin_url}/app/edit-audition/${i==null?void 0:i.id}"> Job Posting ${i==null?void 0:i.id}</a> of 2 <a class="talent_name" href="${ns.admin_url}/app/recruiters-Edit/${(_e=i==null?void 0:i.recruiterData)==null?void 0:_e.user_id}"> ${(G=i==null?void 0:i.recruiterData)==null?void 0:G.first_name} (Recruiter ${(Ce=i==null?void 0:i.recruiterData)==null?void 0:Ce.user_id})</a> </p>`};re.updateAudition(i==null?void 0:i.id,{isBanned:B===!1||!1}).then(Q=>{Q&&(p(!1),r(!0),U(!0),re.createLogs(E),A(!1),N(!0))}).finally(()=>{X(!1)})}function de(){X(!0),f(1);let E={reason_id:$,others:_,audition_id:i?i==null?void 0:i.id:0,closed_by:v==null?void 0:v.user_id,closed_time:new Date};re.projectAbuseReport(E).then(_e=>{ve(!0),C()}).finally(()=>{X(!1)})}const ce=()=>{A(!1),r(!1),p(!1)},C=()=>{U(!1),he("")},ye=()=>{ve(!1)};return e.jsxs("div",{children:[e.jsxs(Je,{className:"NewPopupClassClose BanAudClassClose_outer",open:O,fullWidth:!0,maxWidth:"sm",children:[e.jsx(Ve,{id:"first_alert__title",className:"first_alert__title",style:{paddingBottom:"0"},children:"Close Job Posting"}),e.jsx(gs,{children:e.jsx("div",{children:e.jsx("p",{id:"firrt-dialog-description",className:"popup__description",style:{textAlign:"center",fontSize:"18px",color:"#44454D",lineHeight:"27px",padding:"0 35px"},children:"Talents will no longer be able to Apply to this posting anymore. You will still be able to Find Talents for this character from the Casting Bell database. Close posting?"})})}),e.jsx(We,{children:e.jsxs("div",{className:"pb-6 px-6 flex justify-end gap-3 w-full",children:[" ",e.jsx(is,{text:"Cancel",onClick:ce}),e.jsx(z,{text:"Yes, close posting",onClick:ae,isLoading:q})]})})]}),e.jsx("div",{children:W===1&&e.jsxs(Je,{open:Re,fullWidth:!0,maxWidth:"md",children:[e.jsx(Ve,{id:"first_alert__title",className:"first_alert__title",children:"Job Posting Closed"}),e.jsx(gs,{children:e.jsxs("div",{children:[e.jsx("p",{id:"firrt-dialog-description",style:{textAlign:"center"},className:"mb-6",children:"The Job Posting is closed."}),e.jsx("p",{id:"firrt-dialog-description",className:"ml-8",children:"Please indicate the reason to close this Job Posting:"}),e.jsx("div",{className:" pl-8",children:e.jsxs(po,{className:"radio_cus",children:[e.jsx(jo,{"aria-labelledby":"demo-radio-buttons-group-label",name:"radio-buttons-group",children:k.map((E,_e)=>e.jsx(ir,{value:E.id,checked:$==E.id,onChange:G=>{h(G.target.value)},control:e.jsx(tr,{}),label:E==null?void 0:E.reason}))}),e.jsxs("div",{className:"border_bottom",children:[e.jsx("h5",{className:"label_text",style:{marginTop:13},children:"Provide details (Optional)"}),e.jsx(_o,{id:"standard-basic",variant:"standard",name:"closedProjectreason",style:{width:"100%"},inputProps:{autocomplete:"new-password",form:{autocomplete:"off"}},className:"reason_text",placeholder:"Please add an optional note",onCh
2ange:E=>{he(E.target.value)},value:_,required:!0,multiline:!0})]})]})})]})}),e.jsx(We,{children:e.jsxs("div",{className:"pb-9 px-12 flex justify-between w-full",children:[e.jsx(is,{text:"Cancel",onClick:C,style:{marginRight:20}}),e.jsx(z,{text:"Submit",onClick:de,isLoading:q})]})})]})}),K===1&&e.jsxs(Je,{className:"NewPopupClassClose",open:ge,fullWidth:!0,maxWidth:"sm",children:[e.jsx(Ve,{id:"first_alert__title",className:"first_alert__title",children:"Job Posting Closed"}),e.jsx(gs,{children:e.jsxs("div",{children:[e.jsxs("p",{id:"firrt-dialog-description",style:{textAlign:"center"},children:["Thank you for submitting your feedback."," "]}),e.jsx("div",{className:" pl-8",children:e.jsx(po,{className:"radio_cus",children:e.jsx(jo,{"aria-labelledby":"demo-radio-buttons-group-label",name:"radio-buttons-group"})})})]})}),e.jsx(We,{children:e.jsxs("div",{className:"pb-9 px-12 flex justify-between w-full",children:[e.jsx(z,{text:"Go to My Projects",onClick:()=>{t("/app/my-projects",{state:{isCreated:!0}})},style:{marginRight:20}}),e.jsx(z,{text:"Close",onClick:ye})]})})]})]})}ws.propTypes={openDialog:u.bool.isRequired,onClose:u.func.isRequired,userData:u.shape({id:u.oneOfType([u.string,u.number]),recruiterData:u.shape({user_id:u.oneOfType([u.string,u.number]),first_name:u.string})}),refreshCloseProject:u.func.isRequired};ws.defaultProps={userData:null};const Ns=({open:o,onClose:p,HandleDecline:i,isLoading:N,isDeclineData:t})=>t===!1?e.jsxs(Je,{open:o,fullWidth:!0,maxWidth:"sm",id:"ShareProjectPopup",onClose:p,children:[e.jsxs(Ve,{align:"center",children:[e.jsx("h2",{className:" shareProject_title mt-7",children:"Decline application"}),e.jsx("p",{className:"shareProject_subtitle mt-3 mb-5",children:"Would you like to decline the application?"})]}),e.jsxs(We,{style:{justifyContent:"space-between"},className:"mb-5 mx-5",children:[e.jsx(is,{text:"Cancel",onClick:p}),e.jsx(z,{text:"Decline",onClick:i,isLoading:N})]})]}):e.jsxs(Je,{open:o,fullWidth:!0,maxWidth:"sm",id:"ShareProjectPopup",onClose:p,children:[e.jsxs(Ve,{align:"center",children:[e.jsx("h2",{className:" shareProject_title mt-7",children:"Un Decline application"}),e.jsx("p",{className:"shareProject_subtitle mt-3 mb-5",children:"Would you like to un decline the application?"})]}),e.jsxs(We,{style:{justifyContent:"space-between"},className:"mb-5 mx-5",children:[e.jsx(is,{text:"Cancel",onClick:p}),e.jsx(z,{text:"Un Decline",onClick:i,isLoading:N})]})]});Ns.propTypes={open:u.bool.isRequired,onClose:u.func.isRequired,HandleDecline:u.func.isRequired,isLoading:u.bool.isRequired,isDeclineData:u.bool.isRequired};Ns.defaultProps={open:!1,isLoading:!1,isDeclineData:!1};const vs=({children:o,HandleUnlock:p,isLoading:i,user:N})=>{const t=(N==null?void 0:N.profile_status)===1;return e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"blurArea flex justify-center items-center rounded-xl"}),e.jsxs("div",{children:[e.jsx("div",{className:"btnSty group relative",title:t?void 0:"Talent has not passed Verification and Quality Check yet.",children:e.jsx(z,{text:"Click to view",onClick:p,isLoading:i,noHover:!0,disabled:!t,gray:!t})}),o]})]})};vs.propTypes={children:u.node,HandleUnlock:u.func.isRequired,isLoading:u.bool.isRequired,user:u.shape({profile_status:u.oneOfType([u.string,u.number])})};vs.defaultProps={children:null,user:null,isLoading:!1};const Mn=()=>{var Ps,$s,Ss,Os,Ts,Ls,Rs,As,Bs,Is,Es,Ms,Hs,qs,Fs,zs,Js,Vs,Ws,Us,Gs,Ys,Zs,Ks,Qs,Xs,Ds,eo,so,oo,ro,no,io,to,co,lo,uo;const{setGlobalValue:o}=d.useContext(zo),p=()=>{o("My Job Postings")};d.useEffect(()=>{p()});const{user:i}=d.useContext(hs),N=Co(),{state:t,pathname:v,hash:O}=Jo(),[A,q]=d.useState(null),[X,B]=d.useState(null),[r,W]=d.useState(),[x,K]=d.useState({"my-job-postings":!0}),[f,Re]=d.useState({"my-close-auditions":!1}),[U,_]=d.useState(null),[he,k]=d.useState(!0),[b,$]=d.useState(null),[h,ge]=d.useState(null),[ve,ae]=d.useState(null),[de,ce]=d.useState(null),[C,ye]=d.useState({isOpen:!1,isLoading:!1}),[E,_e]=d.useState(!1),[G,Ce]=d.useState({isOpen:!1,data:null}),[Q,ke]=d.useState({isOpen:!1,isLoading:!1,data:null}),[ts,Pe]=d.useState(!1),[ds,Ae]=d.useState(!1),[ne,Ue]=d.useState(null),[cs,ls]=d.use
2State(""),[$e,Ge]=d.useState(!1),[Ye,us]=d.useState(!1),[Be,Ze]=d.useState(0),[y,Se]=d.useState(5),[S,le]=d.useState(0),[Y,pe]=d.useState({isOpen:!1,data:null,isShareProject:!1}),[as,Ke]=d.useState(!1),[be,Qe]=d.useState({isLoading:!1,index:null}),[L,Ie]=d.useState(0),[we,Xe]=d.useState(null),[Ee,ps]=d.useState(null),[De,es]=d.useState(!1),[ss,os]=d.useState(!1),[M,rs]=d.useState(!1),[l,T]=d.useState(!1),[ue,D]=d.useState(!1),[F,ee]=d.useState(null),ie=[{id:1,value:"Newest Applicants"},{id:2,value:"Oldest Applicants"},{id:3,value:"Youngest Applicants"},{id:4,value:"Eldest Applicants"},{id:5,value:"Last Updated"},{id:6,value:"A-Z"},{id:7,value:"Z-A"},{id:8,value:"Offer Made"}];d.useEffect(()=>{es(!1),De&&R(S,y,b,h,L)},[De]),d.useEffect(()=>{os(!1),ss&&te(S,y,b,h)},[ss]);const Oe=(s,c)=>{Pe(!0),le(c),M&&R(c,y,b,h,L),l&&te(c,y,ve,de)},bo=s=>{Pe(!0),Se(parseInt(s.target.value,10)),le(0),M&&R(0,parseInt(s.target.value,10),b,h,L),l&&te(0,parseInt(s.target.value,10),ve,de)},se=(s,c)=>{K(n=>{var j,m,a,w,J,H,V,oe,I,Te;return s.includes("my-job-postings")&&(Object.keys(n).map(g=>{(g.includes("subHeading-")||g.includes("heading-"))&&delete n[g]}),$(null),ge(null)),s.includes("heading")&&((m=(j=Object.keys(n))==null?void 0:j.find(g=>g.includes("heading-")))!=null&&m.length)?(delete n[(a=Object.keys(n))==null?void 0:a.find(g=>g.includes("heading-"))],Object.keys(n).map(g=>{g.includes("subHeading-")&&delete n[g]}),$(Number((w=`${s}`)==null?void 0:w.replace("heading-",""))),ge(null),{...n,[s]:!x[s]}):s.includes("subHeading")&&((H=(J=Object.keys(n))==null?void 0:J.find(g=>g.includes("subHeading-")))!=null&&H.length)?(delete n[(V=Object.keys(n))==null?void 0:V.find(g=>g.includes("subHeading-"))],ge(Number((oe=`${s}`)==null?void 0:oe.replace("subHeading-",""))),{...n,[s]:!x[s]}):(s.includes("heading")&&$(Number((I=`${s}`)==null?void 0:I.replace("heading-",""))),s.includes("subHeading")&&ge(Number((Te=`${s}`)==null?void 0:Te.replace("subHeading-",""))),s.includes("superHeading"),{...n,[s]:c?!0:!x[s]})})},Z=(s,c)=>{Re(n=>{var j,m,a,w,J,H,V,oe,I,Te;return s.includes("my-close-auditions")&&(Object.keys(n).map(g=>{(g.includes("subHeading-")||g.includes("heading-"))&&delete n[g]}),ae(null),ce(null)),s.includes("heading")&&((m=(j=Object.keys(n))==null?void 0:j.find(g=>g.includes("heading-")))!=null&&m.length)?(delete n[(a=Object.keys(n))==null?void 0:a.find(g=>g.includes("heading-"))],Object.keys(n).map(g=>{g.includes("subHeading-")&&delete n[g]}),ae(Number((w=`${s}`)==null?void 0:w.replace("heading-",""))),ce(null),{...n,[s]:!f[s]}):s.includes("subHeading")&&((H=(J=Object.keys(n))==null?void 0:J.find(g=>g.includes("subHeading-")))!=null&&H.length)?(delete n[(V=Object.keys(n))==null?void 0:V.find(g=>g.includes("subHeading-"))],ce(Number((oe=`${s}`)==null?void 0:oe.replace("subHeading-",""))),{...n,[s]:!f[s]}):(s.includes("heading")&&ae(Number((I=`${s}`)==null?void 0:I.replace("heading-",""))),s.includes("subHeading")&&ce(Number((Te=`${s}`)==null?void 0:Te.replace("subHeading-",""))),s.includes("superHeading"),{...n,[s]:c?!0:!f[s]})})},R=async(s,c,n,j,m)=>(le(s),await re.getAuditionDetails({recruiter_id:i==null?void 0:i.user_id,project_id:n,character_id:j,limit:c,page:s,isDecline:m===1?!0:"",sort:Ee>=1?Ee:""}).then(async a=>{var w;if(Ge(!0),rs(!0),T(!1),n&&j?(await Ue(a==null?void 0:a.auditionDetails),await W(a==null?void 0:a.auditionDetails),Po(i==null?void 0:i.user_id,n,j)):Xe(null),a!=null&&a.projectDetails&&(a!=null&&a.data)){let J=(w=a==null?void 0:a.data)==null?void 0:w.map(H=>{var I,Te,g,ao;ls(H.isDecline);const{recruiterCharacter_id:V,user_id:oe}=H;if(V&&oe){const To=((I=H.offerData)==null?void 0:I.find(me=>me.recruiterCharacter_id===V&&me.user_id===oe))||null,ms=((Te=H.shareProject)==null?void 0:Te.find(me=>me.recruiterCharacter_id===V&&me.user_id===oe))||null,Lo={...ms,projectUpload:(g=ms==null?void 0:ms.projectUpload)==null?void 0:g.filter(me=>me.recruiterCharacter_id===V)},Ro=((ao=H.shortlistData)==null?void 0:ao.find(me=>me.charcter_id===V&&me.user_id===oe))||null;return{...H,offerData:To,shareProject:Lo,shortlistData:Ro}}else return H});await W({...a,data:J})}else await W(a);return Ze(a.totalItems?a.totalItems:0),await a}).finally(a=>(Pe(!1),k(!1),a))),te=async(s,c,n,j)=>
2(le(s),await re.getCloseAuditionDetails({recruiter_id:i==null?void 0:i.user_id,project_id:n,character_id:j,limit:c,page:s}).then(async m=>{var a;if(Ge(!1),rs(!1),T(!0),m!=null&&m.projectDetails&&(m!=null&&m.data)){let w=(a=m==null?void 0:m.data)==null?void 0:a.map(J=>{const{recruiterCharacter_id:H,user_id:V}=J;return J});await W({...m,data:w})}else await W(m);return Ze(m.totalItems?m.totalItems:0),await m}).finally(m=>(Pe(!1),k(!1),m))),wo=async(s,c,n,j)=>{ye(w=>({...w,isLoading:!0}));let m=s==null?void 0:s.map(w=>({user_id:w==null?void 0:w.id,recruiter_id:c,recruiterProject_id:n,recruiterCharacter_id:j}));return await await ze.HandleMakeAnOffer(m).then(w=>{R(S,y,b,h,L)}).finally(()=>{_e(!0),ye(w=>({...w,isLoading:!1,isOpen:!1}))})},No=s=>{ke(c=>({...c,isLoading:!0})),fo.declineApplication(s.id,s.isDecline).then(c=>(R(S,y,b,h,L).then(n=>(ke({isOpen:!1,isLoading:!1,data:null}),n)),c))};function vo(){let s=O.includes("#project_id")?O.match(/\d+/g)[0]:null,c=O.includes("#character_id")?O.match(/\d+/g)[1]:null;N(v,{replace:!0,state:{id:s,character_id:c}})}const ko=async s=>await fo.MyApplicationApplyAudition(s,{jobApplyStatus:1}).then(async c=>$e===!0?(await R(S,y,b,h,L),c):(te(S,y,ve,de),c)).finally(()=>Qe({isLoading:!1,index:null})),Po=(s,c,n)=>{re.getfilterOptionCount({recruiter_id:s,project_id:c,character_id:n}).then(j=>{Xe(j)})};d.useEffect(()=>{O&&vo()},[O]),d.useEffect(()=>{if(!O&&(i==null?void 0:i.user_type)==xs&&(i!=null&&i.user_id)&&(t!=null&&t.id)&&Ye===!1){re.getMyProjectDetail(i==null?void 0:i.user_id).then(s=>{var n;q(s==null?void 0:s.openaudition);const c=(n=s==null?void 0:s.openaudition)==null?void 0:n.filter(j=>{var m;return(m=j==null?void 0:j.recruiter)==null?void 0:m.some(a=>a.id===parseInt(t==null?void 0:t.character_id))});ee(c.length),c.length||t!=null&&t.id?(D(!0),R(S,y,t==null?void 0:t.id,(t==null?void 0:t.character_id)||h,L===1?1:0).then(j=>{j?t!=null&&t.character_id||h?(Z("my-close-auditions",!1),se("my-job-postings",!0),se(`heading-${t.id}`),se(`subHeading-${(t==null?void 0:t.character_id)||h}`)):se(`heading-${t.id}`):se("")}).finally(()=>{k(!1)})):se("")});return}!O&&(i==null?void 0:i.user_type)==xs&&(i!=null&&i.user_id)&&re.getMyProjectDetail(i==null?void 0:i.user_id).then(s=>{q(s==null?void 0:s.openaudition),Ye?R(S,y,b,h,L===1?1:0).finally(()=>{k(!1)}):R(S,y,b,h,L===1?1:0).finally(()=>{k(!1)})})},[i,t,L,Ee]),d.useEffect(()=>{if(!O&&(i==null?void 0:i.user_type)==xs&&(i!=null&&i.user_id)&&(t!=null&&t.id)){re.getCloseProjectDetail(i==null?void 0:i.user_id).then(s=>{var n;const c=(n=s==null?void 0:s.closeaudition)==null?void 0:n.filter(j=>{var m;return(m=j==null?void 0:j.recruiter)==null?void 0:m.some(a=>a.id===parseInt(t==null?void 0:t.character_id))});B(s==null?void 0:s.closeaudition),ee(c.length),c.length?(D(!0),te(S,y,t==null?void 0:t.id,(t==null?void 0:t.character_id)||de).then(j=>{j&&(t!=null&&t.character_id||de?(se("my-job-postings",!1),Z("my-close-auditions",!0),Z(`heading-${t.id}`),Z(`subHeading-${(t==null?void 0:t.character_id)||de}`)):Z(`heading-${t.id}`))}).finally(()=>{k(!1)})):Z("")});return}!O&&(i==null?void 0:i.user_type)==xs&&(i!=null&&i.user_id)&&re.getCloseProjectDetail(i==null?void 0:i.user_id).then(s=>{B(s==null?void 0:s.closeaudition)})},[i,t]),d.useEffect(()=>{D(!1),ks(i.user_id)},[t,ue,F]);const ks=s=>{re.getMyProjectDetail(s).then(c=>{q(c==null?void 0:c.openaudition)}).finally(()=>{k(!1)})},$o=s=>{re.getCloseProjectDetail(s).then(async c=>{await B(c==null?void 0:c.closeaudition),Z("my-close-auditions",!0),Z(`heading-${b}`,!0),Z(`subHeading-${h}`,!0),te(S,y,b,h)}).finally(()=>{Pe(!1),k(!1)})},So=async(s,c)=>{$(s),ge(c),R(S,y,s,c,L),await Ae((ne==null?void 0:ne.id)||!1)},Oo=s=>{navigator.clipboard.writeText(`${ns.client_url}/jobs/${s}`).then(function(){_(s),setTimeout(()=>_(null),9e3)})};return he?e.jsx(mr,{}):e.jsxs("div",{children:[e.jsx(Vo,{htmlAttributes:!0,children:e.jsx("title",{children:"My Job Postings | Casting Bell"})}),e.jsx("section",{className:"top_profile_section ",style:{background:"#E5E5E5"},children:e.jsx("div",{className:"container mx-auto px-6",children:e.jsxs(P.Row,{children:[e.jsx(P.Col,{lg:6,xs:12,sm:6,className:"header_left mobilemenuhidden",children:e.jsx("div",{className:"top_title",children:e.jsx("h2",{children:"My Job Postings"})})}),e.jsx(P.Col,{lg:6,xs:12,sm:6,children:e.jsx(pr,{})})]})})}),e.jsx("section",{className:"pt-3 sm:pt-5 md:pt-7 Jobpostcommon",style:{background:"#f4f4f4",minHeight:"700px"},children:e.jsx("div",{className:"container mx-auto",children:e.jsx("div",{className:"px-6 commonpadding15",children:e.jsx("div",{className:"w-full",children:e.jsxs(P.Row,{style:{marginLeft:0,marginRight:0},children:[e.jsx(P.Col,{lg:3,md:12,sm:12,xs:12,style:{padding:0},children:e.jsxs("div",{className:"NewSidebar_cms_sidebar",children:[e.jsxs(Me,{className:"newSub",sx:{width:"100%",maxWidth:360,bgcolor:"#f4f4f4",paddingTop:0},component:"nav","aria-labelledby":"nested-list-subheader",children:[e.jsxs(qe,{onClick:()=>{se("my-job-postings"),R(0,y)},name:"my-job-postings",sx:{bgcolor:x["my-job-postings"]&&!Object.keys(x).find(s=>s.includes("heading"))?"#E5E5E5":"#f4f4f4"},children:[e.jsx(He,{children:x["my-job-postings"]?e.jsx(go,{sx:{color:"#9B26B6"}}):e.jsx(ho,{sx:{color:"#9B26B6"}})}),e.jsx(Fe,{primary:e.jsx("p",{className:x["my-job-postings"]&&!Object.keys(x).find(s=>s.includes("heading"))?"active_menu":"",children:"Open Job Postings"}),className:"list_heading"})]}),e.jsx(fs,{in:x["my-job-postings"],timeout:"auto",unmountOnExit:!0,children:A==null?void 0:A.map(s=>{var c;return e.jsxs(Me,{component:"div",disablePadding:!0,children:[e.jsxs(qe,{sx:{bgcolor:M&&x[`heading-${s.id}`]&&!Object.keys(x).find(n=>n.includes("subHeading"))?"#E5E5E5":"#f4f4f4"},onClick:()=>{se(`heading-${s.id}`),R(0,y,s==null?void 0:s.id,"",0)},children:[e.jsx(He,{}),e.jsx(Fe,{className:"list_subHeading",primary:e.jsx("p",{className:`list_character flex justify-between ${M&&x[`heading-${s.id}`]&&Object.keys(x).find(n=>n.includes(`heading-${s.id}`))&&!Object.keys(x).find(n=>n.includes("subHeading"))?"active_menu":""}`,children:s.project_title})})]}),(s==null?void 0:s.recruiter)&&e.jsx(fs,{in:x[`heading-${s.id}`],timeout:"auto",unmountOnExit:!0,children:(c=s==null?void 0:s.recruiter)==null?void 0:c.map(n=>{var j,m,a,w;return e.jsx(Me,{component:"div",disablePadding:!0,children:e.jsxs(qe,{sx:{bgcolor:M&&x[`subHeading-${n.id}`]?"#E5E5E5":"#f4f4f4"},onClick:()=>{se(`subHeading-${n.id}`),n.id!==h&&(R(0,y,s==null?void 0:s.id,n==null?void 0:n.id,0),Ie(0))},children:[e.jsx(He,{}),e.jsx(Fe,{primary:e.jsx(e.Fragment,{children:e.jsxs("p",{className:`list_character flex justify-between ${M&&x[`subHeading-${n.id}`]&&Object.keys(x).find(J=>J.includes(`subHeading-${n.id}`))?"active_menu":""}`,children:[e.jsxs("span",{children:[e.jsx(yo,{sx:{...n.id===h&&M?{color:"#9B26B6"}:{color:"inherit"},fontSize:10,marginRight:1}})," ",n==null?void 0:n.character_name," ",((j=n==null?void 0:n.JobApplicantCount)==null?void 0:j.length)>0&&e.jsxs("span",{children:["(",n.JobApplicantCount.length,e.jsx(xo,{fontSize:"inherit",sx:{ml:.5}}),")"]})]}),e.jsx("span",{className:"flex",children:e.jsx(Ir,{character_id:n.id,characterDetails:n,project_id:s.id,job_id:(m=r==null?void 0:r.auditionDetail
2s)==null?void 0:m.id,hideEdit:((a=n==null?void 0:n.auditionData)==null?void 0:a.isSubmitted)===!0&&((w=n==null?void 0:n.auditionData)==null?void 0:w.is_open_audition_posted)===!1,AuditionCloseMenu:So,selectedCharacterId:h,selectedProjectId:b,jobPostingOpenListIcon:M,CopyLink:Oo,auditionDetails:r,copiedId:U})})]})})})]})})})})]})})})]},1),e.jsxs(Me,{className:"btoSub",sx:{width:"100%",maxWidth:360,bgcolor:"#f4f4f4",paddingTop:0},component:"nav","aria-labelledby":"nested-list-subheader",children:[e.jsxs(qe,{onClick:()=>{Z("my-close-auditions"),te(0,y)},name:"my-close-auditions",sx:{bgcolor:f["my-close-auditions"]&&!Object.keys(f).find(s=>s.includes("heading"))?"#E5E5E5":"#f4f4f4"},children:[e.jsx(He,{children:f["my-close-auditions"]?e.jsx(go,{sx:{color:"#9B26B6"}}):e.jsx(ho,{sx:{color:"#9B26B6"}})}),e.jsx(Fe,{primary:e.jsx("p",{className:l&&f["my-close-auditions"]&&!Object.keys(f).find(s=>s.includes("heading"))?"active_menu":"",children:"Closed Job Postings"}),className:"list_heading"})]}),e.jsx(fs,{in:f["my-close-auditions"],timeout:"auto",unmountOnExit:!0,children:X==null?void 0:X.map(s=>{var c;return e.jsxs(Me,{component:"div",disablePadding:!0,children:[e.jsxs(qe,{sx:{bgcolor:l&&f[`heading-${s.id}`]&&!Object.keys(f).find(n=>n.includes("subHeading"))?"#E5E5E5":"#f4f4f4"},onClick:()=>{Z(`heading-${s.id}`),te(0,y,s==null?void 0:s.id)},children:[e.jsx(He,{}),e.jsx(Fe,{className:"list_subHeading",primary:e.jsx("p",{className:`list_character flex justify-between ${l&&f[`heading-${s.id}`]&&Object.keys(f).find(n=>n.includes(`heading-${s.id}`))&&!Object.keys(f).find(n=>n.includes("subHeading"))?"active_menu":""}`,children:s.project_title})})]}),(s==null?void 0:s.recruiter)&&e.jsx(fs,{in:f[`heading-${s.id}`],timeout:"auto",unmountOnExit:!0,children:(c=s==null?void 0:s.recruiter)==null?void 0:c.map(n=>{var j;return e.jsx(Me,{component:"div",disablePadding:!0,children:e.jsxs(qe,{sx:{bgcolor:l&&f[`subHeading-${n.id}`]?"#E5E5E5":"#f4f4f4"},onClick:()=>{Z(`subHeading-${n.id}`),te(S,y,s==null?void 0:s.id,n==null?void 0:n.id)},children:[e.jsx(He,{}),e.jsx(Fe,{primary:e.jsx(e.Fragment,{children:e.jsx("p",{className:`list_character flex justify-between ${l&&f[`subHeading-${n.id}`]&&Object.keys(f).find(m=>m.includes(`subHeading-${n.id}`))?"active_menu":""}`,children:e.jsxs("span",{children:[e.jsx(yo,{sx:{...n.id===de&&l?{color:"#9B26B6"}:{color:"inherit"},fontSize:10,marginRight:1}})," ",n==null?void 0:n.character_name," ",((j=n==null?void 0:n.JobApplicantCount)==null?void 0:j.length)>0&&e.jsxs("span",{children:["(",n.JobApplicantCount.length,e.jsx(xo,{fontSize:"inherit",sx:{ml:.5}}),")"]})]})})})})]})})})})]})})})]},1)]})}),e.jsx(P.Col,{lg:9,md:12,sm:12,xs:12,className:"paddingleft15",children:(Ps=r==null?void 0:r.data)!=null&&Ps.length||($s=r==null?void 0:r.projectDetails)!=null&&$s.id?e.jsx(e.Fragment,{children:ts?e.jsx(Wo,{marginTop:"mt-0"}):(Ss=r==null?void 0:r.data)!=null&&Ss.length||(Os=r==null?void 0:r.projectDetails)!=null&&Os.id?e.jsxs(e.Fragment,{children:[((Ts=r==null?void 0:r.auditionDetails)==null?void 0:Ts.id)&&e.jsxs("div",{children:[$e===!0?e.jsxs("div",{className:"filterArea flex-wrap",children:[e.jsxs("div",{className:"flex gap-10 flex-wrap",children:[e.jsx("div",{className:`filterOption ${L===0?"active":""}`,onClick:()=>{Ie(0)},children:e.jsxs("p",{children:["All Applicants (",(we==null?void 0:we.applicantCount)??0,")"]})}),e.jsx("div",{className:`filterOption ${L===1?"active":""}`,onClick:()=>{us(!0),Ie(1)},children:e.jsxs("p",{children:["Declined (",(we==null?void 0:we.declineCount)??0,")"]})})]}),e.jsxs("div",{className:"flex gap-4 filterOption",children:[e.jsx("p",{children:"Sort:"}),e.jsx("div",{style:{},className:"value newwidth",children:e.jsx(hr,{data:ie,autoComplete:!0,dropdownName:"value",handleChange:s=>{ps(s)}})})]})]}):"",e.jsx(jr,{TotalApplicateCount:r==null?void 0:r.applicantCount,isUser:!1,isSpin:!1,isMyOpenAudition:!0,data:r==null?void 0:r.auditionDetails,isApply:!1,isDetailed:!1,HandleDetails:()=>{var s;window.open(`${ns.client_url}/jobs/${(s=r==null?void 0:r.auditionDetails)==null?void 0:s.jobUniqueId}`,"_blank","noopener noreferrer"),window.scrollTo(0,0)},is_profile_creation_completed:!1,HandleReport:()=>{},HandleApply:()=>{},HandleAuditionClose:()=>
2{Ae(!0),es(!0),Ue(r==null?void 0:r.auditionDetails)},closeAuditionData:$e})]}),!((Ls=r==null?void 0:r.auditionDetails)!=null&&Ls.id)&&(r==null?void 0:r.projectDetails)&&e.jsx("div",{className:"mb-3",children:e.jsx(Cs,{ProjectImg:(Rs=r==null?void 0:r.projectDetails)==null?void 0:Rs.image_upload,ProjectTitle:(As=r==null?void 0:r.projectDetails)==null?void 0:As.project_title,ProjectId:(Bs=r==null?void 0:r.projectDetails)==null?void 0:Bs.id,ProjectType:(Es=(Is=r==null?void 0:r.projectDetails)==null?void 0:Is.projectData)==null?void 0:Es.projectname,ProjectContent:(Ms=r==null?void 0:r.projectDetails)==null?void 0:Ms.project_description,CharactersCount:(qs=(Hs=r==null?void 0:r.projectDetails)==null?void 0:Hs.characterCount)==null?void 0:qs.length,AuditionsCount:(zs=(Fs=r==null?void 0:r.projectDetails)==null?void 0:Fs.auditionCount)==null?void 0:zs.length,TotalApplicateCount:r==null?void 0:r.applicantCount,handleShowApplicants:()=>{if(M&&x[`heading-${r==null?void 0:r.projectDetails.id}`]){se("my-job-postings",!0),R(0,y);return}else if(l&&f[`heading-${r==null?void 0:r.projectDetails.id}`]){Z("my-close-auditions",!0),te(S,y);return}},isShowApplicants:M&&x[`heading-${(Js=r==null?void 0:r.projectDetails)==null?void 0:Js.id}`]?!0:!!(l&&f[`heading-${(Vs=r==null?void 0:r.projectDetails)==null?void 0:Vs.id}`])},(Ws=r==null?void 0:r.projectDetails)==null?void 0:Ws.id)}),e.jsx("div",{className:"flex flex-col gap-4",children:(Us=r==null?void 0:r.data)==null?void 0:Us.map((s,c)=>{var n,j,m,a,w,J,H,V,oe;return s!=null&&s.user?(s==null?void 0:s.jobApplyStatus)==0?e.jsx(vs,{HandleUnlock:()=>{Qe(I=>({isLoading:!0,index:c})),ko(s.id)},isLoading:(be==null?void 0:be.isLoading)===!0&&(be==null?void 0:be.index)==c,user:s==null?void 0:s.user,children:e.jsx(bs,{talentDetails:s,projectDetails:r==null?void 0:r.projectDetails,isProjectClosed:((n=r==null?void 0:r.projectDetails)==null?void 0:n.project_status)===2,HandleShareProject:()=>{if(s.unLockData){Ce(I=>({isOpen:!0,data:s}));return}pe({isOpen:!0,data:s.user,isShareProject:!0})},HandleMakeOffer:()=>{if(s.unLockData){ye(I=>({...I,isOpen:!0,data:s}));return}pe({isOpen:!0,data:s.user,isShareProject:!1})},DeclineOnClick:()=>{let I={id:s==null?void 0:s.id,isDecline:(s==null?void 0:s.isDecline)===!1?!0:((s==null?void 0:s.isDecline)===!0,!1)};ke({isOpen:!0,data:I,isLoading:!1})},RefreshAuditionData:()=>R(S,y,b,h,L),closeAuditionData:$e,isUnlockData:(j=s==null?void 0:s.unLockData)==null?void 0:j.isRecruiterUnlocked},c)}):e.jsx(bs,{isProjectClosed:((m=r==null?void 0:r.projectDetails)==null?void 0:m.project_status)===2,talentDetails:s,projectDetails:r==null?void 0:r.projectDetails,HandleShareProject:()=>{if(s.unLockData){Ce(I=>({isOpen:!0,data:s}));return}pe({isOpen:!0,data:s.user,isShareProject:!0})},HandleMakeOffer:()=>{if(s.unLockData){ye(I=>({...I,isOpen:!0,data:s}));return}pe({isOpen:!0,data:s.user,isShareProject:!1})},DeclineOnClick:()=>{let I={id:s==null?void 0:s.id,isDecline:(s==null?void 0:s.isDecline)===!1?!0:((s==null?void 0:s.isDecline)===!0,!1)};ke({isOpen:!0,data:I,isLoading:!1})},RefreshAuditionData:()=>R(S,y,b,h,L),closeAuditionData:$e,isUnlockData:(a=s==null?void 0:s.unLockData)==null?void 0:a.isRecruiterUnlocked},c):e.jsx(Cs,{ProjectImg:s==null?void 0:s.image_upload,ProjectTitle:s==null?void 0:s.project_title,ProjectId:s==null?void 0:s.id,ProjectType:(w=s==null?void 0:s.projectData)==null?void 0:w.projectname,ProjectContent:s==null?void 0:s.project_description,CharactersCount:(J=s==null?void 0:s.characterCount)==null?void 0:J.length,AuditionsCount:(H=s==null?void 0:s.auditionCount)==null?void 0:H.length,TotalApplicateCount:((V=s==null?void 0:s.jobApplyCount)==null?void 0:V.length)>0?(oe=s==null?void 0:s.jobApplyCount)==null?void 0:oe.length:0,handleShowApplicants:()=>
2{if(M&&x[`heading-${s.id}`]){se("my-job-postings"),R(0,5),le(0),Se(5);return}else if(l&&f[`heading-${s.id}`]){Z("my-close-auditions"),te(0,5),le(0),Se(5);return}else M?(se(`heading-${s.id}`),R(0,5,s==null?void 0:s.id,"",0),le(0),Se(5)):(Z(`heading-${s.id}`),te(0,5,s==null?void 0:s.id,""),le(0),Se(5))},isShowApplicants:M&&x[`heading-${s==null?void 0:s.id}`]?!0:!!(l&&f[`heading-${s==null?void 0:s.id}`])},c)})}),r!=null&&r.data?e.jsx(gr,{id:"tablePagination_ui",rowsPerPageOptions:[5,10,20],component:"div",count:Be,rowsPerPage:y,page:S,onPageChange:Oe,onRowsPerPageChange:bo,slotProps:{select:{"aria-label":"rows per page",native:!0}},labelRowsPerPage:"Show:"}):null]}):M&&Be<=0(e.jsx(ys,{TextContent:"View talents who have applied to your Job Postings. You can create a Job Posting for any character from your character library."}))}):M?e.jsx(ys,{TextContent:"View talents who have applied to your Job Postings. You can create a Job Posting for any character from your character library."}):l&&Be<=0?e.jsx(ys,{disableImage:!0,TextContent:"Your Closed and Expired Job Postings will be moved here."}):null})]})})})})}),((Gs=r==null?void 0:r.projectDetails)==null?void 0:Gs.id)&&((Zs=(Ys=G.data)==null?void 0:Ys.applyAudition)==null?void 0:Zs.recruiterCharacter_id)&&G.isOpen&&e.jsx(lr,{open:G.isOpen,onClose:()=>Ce(s=>({...s,isOpen:!1})),selectedProject:((Ks=r==null?void 0:r.projectDetails)==null?void 0:Ks.id)??null,selectedTalentData:[{talentData:{...(Qs=G.data)==null?void 0:Qs.user}}],setOpen:s=>{Ce(c=>({...c,isOpen:s})),R(S,y,b,h,L)},SelectedCharacter:((Xs=G.data)==null?void 0:Xs.recruiterCharacter_id)||h,ShareMore:(Ds=G==null?void 0:G.data)==null?void 0:Ds.shareProject}),e.jsx(ur,{open:C==null?void 0:C.isOpen,HandleMakeAnOffer:()=>{var s,c,n,j;wo([{id:(c=(s=C==null?void 0:C.data)==null?void 0:s.user)==null?void 0:c.user_id}],i==null?void 0:i.user_id,b,((j=(n=C==null?void 0:C.data)==null?void 0:n.applyAudition)==null?void 0:j.recruiterCharacter_id)||h)},onClose:()=>ye(s=>({...s,isLoading:!1,isOpen:!1})),isLoading:C==null?void 0:C.isLoading,talentName:(so=(eo=C==null?void 0:C.data)==null?void 0:eo.user)==null?void 0:so.first_name,character_name:(no=(ro=(oo=C==null?void 0:C.data)==null?void 0:oo.applyAudition)==null?void 0:ro.recruiterCharacter)==null?void 0:no.character_name,project_name:(io=r==null?void 0:r.projectDetails)==null?void 0:io.project_title}),e.jsx(ar,{talentName:(co=(to=C==null?void 0:C.data)==null?void 0:to.user)==null?void 0:co.first_name,onClose:()=>_e(!1),open:E}),e.jsx(Ns,{HandleDecline:()=>No(Q==null?void 0:Q.data),open:Q==null?void 0:Q.isOpen,onClose:()=>ke(s=>({...s,isOpen:!1})),isLoading:Q==null?void 0:Q.isLoading,isDeclineData:cs}),e.jsxs(Je,{open:Y==null?void 0:Y.isOpen,fullWidth:!0,maxWidth:"sm",id:"LoadAndSavePopup",onClose:()=>pe({isOpen:!1,data:null}),children:[e.jsxs(Ve,{align:"center",children:[e.jsx("h2",{className:"title mt-4",children:"Unlock profile"}),e.jsxs("p",{className:"instruction mt-3",children:["Please unlock the talent to"," ",Y!=null&&Y.isShareProject?"Share project":"Make an offer"]})]}),e.jsxs(We,{className:"gap-3",style:{padding:"15px 2.3rem 25px"},children:[e.jsx(is,{text:"Cancel",onClick:()=>{pe({isOpen:!1,data:null})}}),(i==null?void 0:i.profile_status)!==1?e.jsx(Ne,{title:"Pending Profile Approval",placement:"top",style:{width:"fit-content"},children:e.jsx("div",{children:e.jsx(z,{text:"Proceed with unlock",disableBtn:!0,disabled:!0})})}):e.jsx(z,{text:"Proceed with unlock",onClick:()=>{Ke(!0),pe(s=>({...s,isOpen:!1}))}})]})]}),e.jsx(fr,{isUnlockTalent:as,setIsUnlockTalent:Ke,talentData:{...Y==null?void 0:Y.data,user_id:(uo=(lo=Y==null?void 0:Y.data)==null?void 0:lo.talenter)==null?void 0:uo.user_id},recruiterProfile:i,setPageLoading:k,HandleTalentData:()=>{R(S,y,b,h,L)}}),(ne!==null||ne!==void 0)&&(ne!=null&&ne.id)?e.jsx(ws,{openDialog:ds,userData:ne,onClose:Ae,refreshCloseProject:s=>{os(!0),Ae(!1),ks(i.user_id),$o(i.user_id)}}):""]})},Ir=({project_id:o,character_id:p,job_id:i,hideEdit:N=!1,characterDetails:t,AuditionCloseMenu:v,selectedCharacterId:O,selectedProjectId:A,jobPostingOpenListIcon:q,CopyLink:X,auditionDetail
2s:B,copiedId:r})=>{const{isProfileFreezed:W}=d.useContext(hs),[x,K]=je.useState(!1),f=je.useRef(null),Re=()=>{K(k=>!k)},U=k=>{f.current&&f.current.contains(k.target)||K(!1)};function _(k){k.key==="Tab"?(k.preventDefault(),K(!1)):k.key==="Escape"&&K(!1)}const he=je.useRef(x);return je.useEffect(()=>{he.current===!0&&x===!1&&f.current.focus(),he.current=x},[x]),e.jsxs("div",{children:[e.jsx(_s,{sx:{...O===p&&q?{color:"#9B26B6"}:{color:""},padding:0},ref:f,id:"composition-button","aria-controls":x?"composition-menu":void 0,"aria-expanded":x?"true":void 0,"aria-haspopup":"true",onClick:Re,children:e.jsx(xr,{sx:{fontSize:25}})}),e.jsx(Eo,{open:x,anchorEl:f.current,role:void 0,placement:"bottom-start",transition:!0,style:{zIndex:10},children:({TransitionProps:k,placement:b})=>e.jsx(Mo,{...k,style:{transformOrigin:b==="bottom-start"?"left top":"left bottom"},children:e.jsx(Ho,{children:e.jsx(qo,{onClickAway:U,children:e.jsxs(Fo,{autoFocusItem:x,id:"composition-menu","aria-labelledby":"composition-button",onKeyDown:_,children:[e.jsxs(js,{onClick:$=>{if(U($),p){window.open(`/find-talents?character_id=${p}&gender=${t==null?void 0:t.gender}&min_age=${t==null?void 0:t.min_age}&max_age=${t==null?void 0:t.max_age}&min_height=${t==null?void 0:t.min_height}&height_size_type=${t==null?void 0:t.height_size_type}`,"_blank");return}},className:"gap-3",children:[e.jsx(Lr,{sx:{color:"#9B26B6"}}),"Find Talents"]}),e.jsxs(js,{onClick:$=>{if(U($),p){window.open(`/app/short-list#c${p}`,"_blank");return}},className:"gap-3",children:[e.jsx(Ar,{sx:{color:"#9B26B6"}}),"View Shortlist"," "]}),!N&&e.jsxs(js,{onClick:W?"":$=>{window.open(`/app/audition#job${i}`,"_blank"),U($)},className:"gap-3",children:[e.jsx(cr,{sx:{color:W?"#9f9f9f":"#9B26B6"}})," ","Edit Job Posting"]}),e.jsx(Ne,{title:(r==null?void 0:r.length)>2?"Copied":"Copy link",placement:"top",children:e.jsxs(js,{onClick:W?"":$=>{var h;U($),X((h=B==null?void 0:B.auditionDetails)==null?void 0:h.jobUniqueId)},className:"gap-3",children:[e.jsx(dr,{sx:{color:W?"#9f9f9f":"#9B26B6"}}),"Job Posting Link"]})})]})})})})})]})};export{Ir as NavigationMenu,Mn as default};
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.