PageSourceSearch

https://www.castingbell.com/assets/FindJobs-FwXarpBs.js

js castingbell.com collected 2026-10-08 20:53:14 UTC 24,298 bytes, 1 lines download raw bytes

1import{r as n,j as s,P as l,A as pe,a8 as tt,$ as B,D as st,l as at,m as nt,n as lt,o as ct,G as it,u as rt,i as ut,b as ot,q as gt,H as mt,d as k,v as pt,s as dt,X as ft}from"./index-DOEDGpFv.js";import{F as T,D as ee,H as Re,N as jt}from"./Constants-WjqFOtUi.js";import{C as xt,a as ht}from"./CheckboxContainer-DhXRkZn1.js";import{F as Ee}from"./FormControlLabel-Cv1jetH4.js";import{P as At}from"./PillsDropdown-Cc7vs6KQ.js";import{a as me}from"./audition.service-9shYmHng.js";import{f as ve,F as St}from"./FindNoJobPage-COTDAuNu.js";import{C as yt}from"./CustomSlider-DCr1sfo4.js";import{C as _t}from"./CustomDropdown-KMCu6Cw8.js";import{a as Nt,J as Ct}from"./JobPostingCard-C443wv0L.js";import{L as Ot}from"./LoaderPage-V8pn7OCQ.js";import{A as Pt,W as vt,R as Lt}from"./WithDrawJobPost-DXQHgEIT.js";import{D as kt}from"./DashBroadHeader-Db3vYkBl.js";import{T as Tt}from"./TablePagination-rbCf-VGH.js";import"./KeyboardArrowDown-dDDnrjL_.js";import"./Checkbox-DKFnH0fc.js";import"./close_icon-CFZZ4lWI.js";/* empty css               */import"./Autocomplete-BiTc0fK0.js";import"./noTalent-DJxnUYyh.js";/* empty css                */import"./Save-bfga-Jet.js";import"./Cancel-rtwU0jAA.js";/* empty css                        */import"./WarningTwoTone-i502AY6r.js";import"./RadioGroup-BVZKrqaO.js";import"./Radio-BcikqwZL.js";import"./KeyboardArrowRight-K5Vapl4X.js";import"./LastPage-CTKFULy8.js";function de({JobDataList:t,selectedDropdownValues:i,updateDropdownFieldCount:h,fieldCountIsloading:j,HandleApplBtn:c,selectedDropdown:e}){var p;const[o,r]=n.useState(i??{}),[S,y]=n.useState(!1),[A,O]=n.useState(!1),R=g=>{let C=[];return g!=null&&g.find(u=>u.gender===0)?C.push({...g==null?void 0:g.find(u=>u.gender===0),talent:"Female"}):C.push({gender:0,talent:"Female",count:0}),g!=null&&g.find(u=>u.gender===1)?C.push({...g==null?void 0:g.find(u=>u.gender===1),talent:"Male"}):C.push({gender:1,talent:"Male",count:0}),g!=null&&g.find(u=>u.gender===2)?C.push({...g==null?void 0:g.find(u=>u.gender===2),talent:"Neutral"}):C.push({gender:2,talent:"Neutral",count:0}),C},d=()=>{r([]),h(g=>({...g,genders:[]}))},_=()=>(O(!0),c({...e,genders:o}).then(g=>(O(!1),g)));return n.useEffect(()=>{r(i||{})},[i]),n.useEffect(()=>{var g;(g=Object.keys(o))!=null&&g.length&&h&&!j&&JSON.stringify(i)!==JSON.stringify(o)&&(y(!0),h(C=>({...C,genders:o}))),o&&y(T(o))},[o]),s.jsx(ee,{buttonText:"Gender",headerText:"Gender",isSelected:S,handleClear:d,handleApply:_,applyBtnLoading:A,children:s.jsx("div",{className:"PopupSection ",children:s.jsx("div",{className:"grid grid-cols-1 gap-5",children:s.jsxs("div",{className:"gen",children:[s.jsx("p",{className:"subHeading",children:"Jobs for"}),s.jsx("div",{className:"",children:(p=R(t))==null?void 0:p.map((g,C)=>s.jsx(Ee,{name:g.talent,control:s.jsx(xt,{checked:o!=null&&o.gender&&o!=null&&o.gender[g==null?void 0:g.talent]?o==null?void 0:o.gender[g==null?void 0:g.talent]:!1,onChange:u=>{u.persist(),Re(u.target.name,u.target.checked,r,o,"gender")}}),label:`${g.talent} (${g.count})`},C))})]})})})})}de.propTypes={JobDataList:l.arrayOf(l.shape({gender:l.number.isRequired,count:l.number.isRequired})).isRequired,selectedDropdownValues:l.object,updateDropdownFieldCount:l.func.isRequired,fieldCountIsloading:l.bool.isRequired,HandleApplBtn:l.func.isRequired,selectedDropdown:l.object.isRequired};de.defaultProps={selectedDropdownValues:null};function fe({JobDataList:t={location:null},selectedDropdownValues:i,updateDropdownFieldCount:h,fieldCountIsloading:j,HandleApplBtn:c,selectedDropdown:e}){const{dependencyData:o}=n.useContext(pe),[r,S]=n.useState([]),[y,A]=n.useState(i??{}),[O,R]=n.useState(!1),[d,_]=n.useState(!1),p=()=>{A([]),h(u=>({...u,location:[]}))},g=()=>(_(!0),c({...e,location:y}).then(u=>(_(!1),u))),C=(u,f,H,he,b,te)=>{let z=u.filter(x=>{var K,V;if((V=(K=x[f])==null?void 0:K.toLowerCase())!=null&&V.startsWith(b.toLowerCase()))return x}),G=0;z&&z.length>0?H(z.slice(0,10+G)):H(u.slice(0,10+G)),b||H(u.slice(0,10+G))};return n.useEffect(()=>{A(i||{})},[i]),n.useEffect(()=>{me.getCityAllData().then(u=>{S(u==null?void 0:u.slice(0,10))})},[]),n.useEffect(()=>{var u;(u=Object.keys(y))!=null&&u.length&&h&&!j&&JSON.stringify(i)!==JSON.stringify(y)&&(R(!0),h(f=>({...f,location:y}))),y&&R(T(y))},[y]),console.log("onChangeDropdownValue"),s.jsx(ee,{buttonText:"Location",headerText:"Location",isSelected:O,handleClear:p,handleApply:g,applyBtnLoading:d,children:s.jsx("div",{className:"PopupSection grid grid-cols-1 gap-5",children:s.jsxs("div",{children:[s.jsx("p",{className:"subHeading",children:"Location of jobs"}),s.jsx(At,{placeholder:"Search location",name:"Cites",dropdownName:"city_",data:r,countListData:t==null?void 0:t.location,values:y==null?void 0:y.nativeCity,suggestData:r,handleChange:u=>{u!=null&&u.length&&A(f=>({...f,nativeCity:u}))},onType:u=>C(o==null?void 0:o.city,"city_name",S,"Cites",u)})]})})})}fe.propTypes={JobDataList:l.shape({location:l.any}),selectedDropdownValues:l.oneOfType([l.object,l.array]),updateDropdownFieldCount:l.func,fieldCountIsloading:l.bool,HandleApplBtn:l.func.isRequired,selectedDropdown:l.object};fe.defaultProps={JobDataList:{location:null},selectedDropdownValues:null,updateDropdownFieldCount:null,fieldCountIsloading:!1,selectedDropdown:{}};function Ie({JobDataList:t={screenAge:null},updateDropdownFieldCount:i,fieldCountIsloading:h,selectedDropdownValues:j,HandleApplBtn:c,selectedDropdown:e}){const[o,r]=n.useState(1),[S,y]=n.useState(100),[A,O]=n.useState(j??{}),[R,d]=n.useState(!1),[_,p]=n.useState(!1),g=()=>{O([]),i(u=>({...u,screenAgeData:[]}))},C=()=>(p(!0),c({...e,screenAgeData:A}).then(u=>(p(!1),u)));return n.useEffect(()=>{var u,f;j?(O(j),r(((u=j==null?void 0:j.screenAge)==null?void 0:u.minAge)??1),y(((f=j==null?void 0:j.screenAge)==null?void 0:f.maxAge)??100)):O({})},[j]),n.useEffect(()=>{var u;(u=Object.keys(A))!=null&&u.length&&i&&!h&&JSON.stringify(j)!==JSON.stringify(A)&&(d(!0),i(f=>({...f,screenAgeData:A}))),A&&d(T(A))},[A]),s.jsx(ee,{buttonText:"Screen age",headerText:"Screen age",isSelected:R,handleClear:g,handleApply:C,applyBtnLoading:_,children:s.jsx("div",{className:"PopupSection",children:s.jsx("div",{className:"screenRange",children:s.jsx("div",{className:"grid grid-cols-1 gap-5",children:s.jsxs("div",{className:"w-full",children:[s.jsx("p",{className:"subHeading",children:"Screen age requirement (years)"}),s.jsx(yt,{countListData:t==null?void 0:t.screenAge,checked:(A==null?void 0:A.screenAge)&&Object.keys(A==null?void 0:A.screenAge),valueLabelDisplay:"on",marks:tt,min:1,max:100,onChange:(u,f)=>{r(f[0]),y(f[1])},onChangeCommitted:(u,f)=>{O(H=>({...H,screenAge:{minAge:f[0],maxAge:f[1]}}))},value:[o,S],defaultValue:[1,100]})]})})})})})}
1Ie.propTypes={JobDataList:l.shape({screenAge:l.any}),updateDropdownFieldCount:l.func.isRequired,fieldCountIsloading:l.bool,selectedDropdownValues:l.object,HandleApplBtn:l.func.isRequired,selectedDropdown:l.object};function be({JobDataList:t,selectedDropdownValues:i,updateDropdownFieldCount:h,fieldCountIsloading:j,HandleApplBtn:c,selectedDropdown:e}){const{dependencyData:o}=n.useContext(pe),[r,S]=n.useState(i??{}),[y,A]=n.useState(!1),[O,R]=n.useState(!1),d=()=>{S([]),h(p=>({...p,project_Data:[]}))},_=()=>(R(!0),c({...e,project_Data:r}).then(p=>(R(!1),p)));return n.useEffect(()=>{S(i||{})},[i]),n.useEffect(()=>{var p;(p=Object.keys(r))!=null&&p.length&&h&&!j&&JSON.stringify(i)!==JSON.stringify(r)&&(A(!0),h(g=>({...g,project_Data:r}))),r&&A(T(r))},[r]),s.jsx(ee,{buttonText:"Type of Project",headerText:"Project type",isSelected:y,handleClear:d,handleApply:_,applyBtnLoading:O,children:s.jsxs("div",{className:"PopupSection",children:[s.jsx("p",{className:"subHeading",children:"Project type"}),s.jsx(ht,{ListData:o==null?void 0:o.project,FieldName:"projectname",countListData:t==null?void 0:t.map(p=>({...p,id:p==null?void 0:p.project_id})),checked:(r==null?void 0:r.projectType)&&Object.keys(r==null?void 0:r.projectType),onChange:p=>{p.persist(),Re(p.target.value,p.target.checked,S,r,"projectType",p.target.name)}
1})]})})}be.propTypes={JobDataList:l.arrayOf(l.shape({project_id:l.oneOfType([l.string,l.number])})),selectedDropdownValues:l.object,updateDropdownFieldCount:l.func.isRequired,fieldCountIsloading:l.bool,HandleApplBtn:l.func.isRequired,selectedDropdown:l.object};const je=({filterFindJobDropdown:t,FilterFindJobsData:i,clearCountAll:h})=>{var j;return s.jsxs("section",{className:`flex flex-wrap  gap-2 ${T(t==null?void 0:t.location)||T(t==null?void 0:t.genders)||T(t==null?void 0:t.screenAgeData)||T(t==null?void 0:t.project_Data)?"mt-2":""}`,children:[(t==null?void 0:t.location)&&Object.keys(t==null?void 0:t.location).map(c=>{var o;let e=JSON.parse(JSON.stringify(t));if(c=="nativeCity")return(o=t==null?void 0:t.location[c])==null?void 0:o.map((r,S)=>s.jsxs("div",{className:"filter_chip cursor-pointer flex items-center gap-1 pl-3 pr-2 py-1",onClick:()=>{var y;if(e!=null&&e.location[c]){let A=(y=e==null?void 0:e.location[c])==null?void 0:y.filter(O=>O.id!=r.id);i({...e,location:{...e==null?void 0:e.location,nativeCity:A}})}},children:[s.jsxs("p",{children:[" ",r==null?void 0:r.city_name]}),s.jsx(B,{sx:{fontSize:"1.1rem"}})]},S))}),(t==null?void 0:t.genders)&&Object.keys(t==null?void 0:t.genders).map(c=>{let e=JSON.parse(JSON.stringify(t));if(c=="gender")return Object.keys(t==null?void 0:t.genders[c]).map(o=>s.jsxs("div",{className:"filter_chip cursor-pointer flex items-center gap-1 pl-3 pr-2 py-1",onClick:()=>{e!=null&&e.genders[c][o]&&(e==null||delete e.genders[c][o],i(e))},children:[s.jsx("p",{children:o}),s.jsx(B,{sx:{fontSize:"1.1rem"}})]},o))}),(t==null?void 0:t.screenAgeData)&&Object.keys(t==null?void 0:t.screenAgeData).map(c=>{var o,r;let e=JSON.parse(JSON.stringify(t));return c=="screenAge"?s.jsxs("div",{className:"filter_chip cursor-pointer flex items-center gap-1 pl-3 pr-2 py-1",onClick:()=>{e!=null&&e.screenAgeData[c]&&(e==null||delete e.screenAgeData[c],i(e))},children:[s.jsxs("p",{children:[(o=e==null?void 0:e.screenAgeData[c])==null?void 0:o.minAge,"y -"," ",(r=e==null?void 0:e.screenAgeData[c])==null?void 0:r.maxAge,"y"]}),s.jsx(B,{sx:{fontSize:"1.1rem"}})]},c):s.jsxs("div",{className:"filter_chip cursor-pointer flex items-center gap-1 pl-3 pr-2 py-1",onClick:()=>{e!=null&&e.screenAgeData[c]&&(e==null||delete e.screenAgeData[c],i(e))},children:[s.jsx("p",{children:c}),s.jsx(B,{sx:{fontSize:"1.1rem"}})]},c)}),(t==null?void 0:t.project_Data)&&((j=Object.keys(t==null?void 0:t.project_Data))==null?void 0:j.map(c=>{var o,r;let e=JSON.parse(JSON.stringify(t));return c=="talentNudity"?s.jsxs("div",{className:"filter_chip cursor-pointer flex items-center gap-1 pl-3 pr-2 py-1",onClick:()=>{e!=null&&e.project_Data[c]&&(e==null||delete e.project_Data[c],i(e))},children:[s.jsxs("p",{children:["Nude scenes -",(r=(o=jt)==null?void 0:o.find(S=>S.id==(e==null?void 0:e.project_Data[c])))==null?void 0:r.value]}),s.jsx(B,{sx:{fontSize:"1.1rem"}})]},c):Object.keys(t==null?void 0:t.project_Data[c]).map(S=>s.jsxs("div",{className:"filter_chip cursor-pointer flex items-center gap-1 pl-3 pr-2 py-1",onClick:()=>{e!=null&&e.project_Data[c][S]&&(e==null||delete e.project_Data[c][S],i(e))},children:[s.jsx("p",{children:`${e==null?void 0:e.project_Data[c][S]}`}),s.jsx(B,{sx:{fontSize:"1.1rem"}})]},`${c}-${S}`))})),(t==null?void 0:t.deadLineData)&&Object.keys(t==null?void 0:t.deadLineData).map(c=>{let e=JSON.parse(JSON.stringify(t));return c=="deadline"?s.jsx("div",{className:"filter_chip cursor-pointer flex items-center gap-1 pl-3 pr-2 py-1",onClick:()=>{e!=null&&e.deadLineData[c]&&(e==null||delete e.deadLineData[c],i(e))},children:s.jsx(B,{sx:{fontSize:"1.1rem"}})},c):s.jsxs("div",{className:"filter_chip cursor-pointer flex items-center gap-1 pl-3 pr-2 py-1",onClick:()=>{e!=null&&e.deadLineData[c]&&(e==null||delete e.deadLineData[c],i(e))},children:[s.jsx("p",{children:c}),s.jsx(B,{sx:{fontSize:"1.1rem"}})]},c)}),(T(t==null?void 0:t.location)||T(t==null?void 0:t.genders)||T(t==null?void 0:t.screenAgeData)||T(t==null?void 0:t.project_Data))&&s.jsx("p",{className:"chipSetclearAll cursor-pointer",onClick:()=>{i({}),h()},children:"Clear all"})]})};
1je.propTypes={filterFindJobDropdown:l.shape({location:l.shape({nativeCity:l.arrayOf(l.shape({id:l.oneOfType([l.string,l.number]),city_name:l.string}))}),genders:l.shape({gender:l.object}),screenAgeData:l.shape({screenAge:l.shape({minAge:l.oneOfType([l.string,l.number]),maxAge:l.oneOfType([l.string,l.number])})}),project_Data:l.shape({talentNudity:l.oneOfType([l.string,l.number])}),deadLineData:l.shape({deadline:l.any})}),FilterFindJobsData:l.func.isRequired,clearCountAll:l.func.isRequired};je.defaultProps={filterFindJobDropdown:{}};const Rt=[{id:1,value:"Deadline (Farthest to Nearest)"},{id:2,value:"Deadline (Nearest to Farthest)"},{id:3,value:"Posted on (Latest to Oldest)"},{id:4,value:"Posted on (Oldest to Latest)"}];function xe({selectedDropdownValues:t,HandleApplBtn:i,selectedDropdown:h,updateDropdownFieldCount:j,fieldCountIsloading:c}){const[e,o]=n.useState(t??3);return n.useEffect(()=>{o(t||3)},[t]),n.useEffect(()=>{e&&j&&!c&&JSON.stringify(t)!==JSON.stringify(e)&&i({...h,deadLineData:e})},[e]),s.jsxs("div",{className:"flex justify-center items-center textdipslay break-normal",children:[s.jsx("p",{className:"subHeading ",children:"Sort:"}),s.jsx("div",{className:"PopupSection widthincress",style:{},children:s.jsx(_t,{name:"character_type",data:Rt,autoComplete:!0,dropdownName:"value",handleChange:r=>{o(r)},values:e})})]})}xe.propTypes={selectedDropdownValues:l.number,HandleApplBtn:l.func.isRequired,selectedDropdown:l.object,updateDropdownFieldCount:l.bool,fieldCountIsloading:l.bool};xe.defaultProps={selectedDropdownValues:3,selectedDropdown:{},updateDropdownFieldCount:!1,fieldCountIsloading:!1};function qe({isOpen:t,setIsOpen:i,HandleSubmit:h}){return s.jsxs(st,{open:t,fullWidth:!0,maxWidth:"sm",children:[s.jsx(at,{id:"first_alert__title",className:"first_alert__title",children:"Pending Profile Submission"}),s.jsxs(nt,{className:"mb-6 flex justify-between mr-6 mt-3",children:[s.jsx(lt,{text:"Cancel",style:{marginRight:20},onClick:()=>i(!1)}),s.jsx(ct,{text:"Submit Profile",onClick:h})]})]})}qe.propTypes={isOpen:l.bool.isRequired,setIsOpen:l.func.isRequired,HandleSubmit:l.func.isRequired};const oe={FEMALE:0,MALE:1,NEUTRAL:2},Et={[oe.FEMALE]:"Female",[oe.MALE]:"Male",[oe.NEUTRAL]:"Neutral"},Le=3,It=3,bt=1,qt=10,Bt=[10,20,25,30,40],ge=100,Ht=t=>Et[t]||"sample",ke=t=>t?[t.Female?"0":"",t.Male?"1":"",t.Neutral?"2":""].filter(Boolean).join(","):"",Mt=t=>{const i=ft(t),h=Number(i),j=h-Le;return{maxAge:h+Le,minAge:j>It?j:bt}},$t=t=>t>=ge?`${Math.floor(t/ge)*ge}+`:t,Ut=(t,i)=>{if(t===0)return"";const h=$t(i),j=i>1?"s":"";return`Found ${h} job${j}`},Wt=t=>({genders:{gender:{[Ht(t)]:!0}}}),Te=t=>{let i={};if((t==null?void 0:t.gender)>=0&&(i={...i,...Wt(t.gender)}),t!=null&&t.date_of_birth){const h=Mt(t.date_of_birth);i={...i,screenAgeData:{screenAge:h}}}return i},zt=()=>{const{setGlobalValue:t}=n.useContext(it),{dependencyData:i,GetSignUpDependency:h,setIsSignInPopup:j,setSignInTabs:c,user:e,isLoaded:o}=n.useContext(pe),{state:r}=rt(),{searchParam:S}=ut(),y=ot(),A=n.useCallback(()=>{t("Casting Bell Jobs")},[t]);n.useEffect(()=>{A()},[A]),n.useEffect(()=>{o&&!i&&h()},[i,o,h]);const[O,R]=n.useState({gender_count:null,project_count:null}),[d,_]=n.useState({location:null,genders:null,project_Data:null,genderData:null,screenAgeData:null,jobprojectAttribute:null,deadLineData:null}),[p,g]=n.useState({}),[C,u]=n.useState(!1),[f]=n.useState(!1),[H,he]=n.useState(!0),[b,te]=n.useState([]),[z,G]=n.useState(0),[x,K]=n.useState(!1),[V,se]=n.useState(!1),[Be,Ae]=n.useState(!1),[Se,ae]=n.useState(null),[He,ye]=n.useState(!1),[Me,$e]=n.useState(""),[Ue,We]=n.useState(!1),[M,ze]=n.useState(null),[Ge,Xe]=n.useState(!1),[Qe,_e]=n.useState(!1),[v,Ye]=n.useState(qt),[E,ne]=n.useState(0),Ne=n.useCallback((a,m,N)=>{switch(a){case"Apply":se(!0),ae(N);break;case"Withdraw":$e(m),ye(!0);break;case"Reapply":We(!0),se(!0),ae(m);break}},[]),Ce=n.useCallback(a=>{var m;e!=null&&e.user_id?Ne(Nt(a.appliedStatus),(m=a.applyData)==null?void 0:m.id,a.id):(c("Talent"),j(!0))},[e,Ne,c,j]),X=n.useCallback(a=>{var Y;u(!0);const{screenAgeData:m,location:N,genders:I,project_Data:Q,activeJob:W}=a,{gender:J}=I||{gender:""},le=ke(J),{screenAge:F}=m||{screenAge:{}},{minAge:ce,maxAge:ie}=F||{},{nativeCity:D}=N||{},{projectType:w,talentNudity:re}=Q||{},ue=W||!1;ve.GetDropdownFindJobsValues(le,ce,ie,w&&Object.keys(w).join(","),(Y=D==null?void 0:D.map(Z=>Z.id))==null?void 0:Y.join(","),ue,I,re).then(Z=>{R(Z)}).finally(()=>{u(!1)})},[]),P=n.useCallback(async(a,m,N,I,Q)=>{var Pe;ne(a),g(I);const{location:W,genders:J,screenAgeData:le,project_Data:F,deadLineData:ce}=I,{gender:ie}=J||{gender:""},D=ke(ie),{screenAge:w}=le||{},{minAge:re,maxAge:ue}=w||{},{nativeCity:Y}=W||{},{projectType:Z}=F||{};
1return await ve.FilterFindJobsData({page:a,limit:m,recruiterViewed:N,gender:D,minAge:re,maxAge:ue,nativeCity:(Pe=Y==null?void 0:Y.map(L=>L.id))==null?void 0:Pe.join(","),projectType:Z&&Object.keys(Z).join(","),genders:J,project_Data:F,location:W,sort_id:ce,user_id:(e==null?void 0:e.user_id)??void 0,activeJob:Q}).then(L=>(L!=null&&L.data?(G(L==null?void 0:L.totalItems),te((L==null?void 0:L.data)&&(L==null?void 0:L.data))):(G(0),te([])),L)).finally(()=>{he(!1)})},[e==null?void 0:e.user_id]),q=n.useCallback(a=>P(0,v,f,a,x),[P,v,f,x]),Ze=n.useCallback((a,m)=>{ne(m),Xe(!0),P(m,v,f,p,x)},[P,v,f,p,x]),De=n.useCallback(a=>{const m=parseInt(a.target.value,10);Ye(m),ne(0),P(0,m,f,p,x)},[P,f,p,x]),$=S?`${S}`.split("-")[0]:"",U=S?`${S}`.split("-")[3]:"";n.useEffect(()=>{(x===!0||x===!1)&&(P(0,v,f,p,x),X({...d,activeJob:x}))},[x,P,v,f,p,X,d]),n.useEffect(()=>{if($!=null&&$.length&&(U!=null&&U.length)){let a=me.getCityAllData().then(N=>{var I;return((I=N.city_name)==null?void 0:I.toLocaleLowerCase())===(U==null?void 0:U.toLocaleLowerCase())});const m=$==null?void 0:$.toLocaleLowerCase();if(m.includes("male")&&(a!=null&&a.id)){const N={location:{nativeCity:[a]},genders:{gender:{Male:!0}}};_(N),P(E,v,f,N,x);return}if(m.includes("female")&&(a!=null&&a.id)){const N={location:{nativeCity:[a]},genders:{gender:{Female:!0}}};_(N),q(N);return}if(m.includes("neutral")&&(a!=null&&a.id)){const N={location:{nativeCity:[a]},genders:{gender:{Neutral:!0}}};_(N),q(N);return}}else if(r!=null&&r.filterValue){const a=Te(r.filterValue);_(m=>({...m,...a})),g(a)}else P(E,v,f,p,x)},[i,$,U,E,v,f,x,r==null?void 0:r.filterValue,P,q,p]),n.useEffect(()=>{d&&X({...d,activeJob:x})},[d,x,X]),n.useEffect(()=>{Object.keys(p).length!==0&&P(E,v,f,p,x)},[p,E,v,f,x,P]),n.useEffect(()=>{if(r!=null&&r.filterValue){const a=Te(r.filterValue);_(m=>({...m,...a})),g(a)}},[r==null?void 0:r.filterValue]),n.useEffect(()=>{d.genders&&X({...d,activeJob:x})},[d.genders,d,x,X]);const Ke=n.useCallback(async a=>{try{if(!a)return console.warn("No data provided to handleJobData"),{success:!1,error:"No data provided"};if(!a.id)return console.error("Job ID is required"),{success:!1,error:"Job ID is required"};const m=await me.updateApplyJobDetails(a.id,a);return m?(await P(E,v,f,p,x),{success:!0,data:m}):(console.error("Failed to update job details:",(m==null?void 0:m.error)||"Unknown error"),{success:!1,error:(m==null?void 0:m.error)||"Failed to update job details"})}catch(m){return console.error("Error in handleJobData:",m),{success:!1,error:m.message||"An unexpected error occurred"}}},[P,E,v,f,p,x]),Ve=n.useCallback(()=>{var a;(a=e==null?void 0:e.talenter)!=null&&a.is_profile_creation_completed&&(e==null?void 0:e.profile_status)!==1?y(`/talent/${e==null?void 0:e.userUniqueId}`):y("/app/dashboard")},[e,y]),Je=n.useCallback(a=>{e?(Ae(!0),ae(a.id)):(c("Talent"),j(!0))},[e,c,j]),Fe=n.useCallback(a=>{var m,N;e&&!((m=e==null?void 0:e.talenter)!=null&&m.is_profile_creation_completed)&&((N=e==null?void 0:e.talenter)==null?void 0:N.last_activity_page)!==6?_e(!0):(ze(a),Ce(a))},[e,Ce]),we=n.useCallback(a=>{const m=a.jobUniqueId??(a==null?void 0:a.id);window.open(`${gt.client_url}/jobs/${m}`,"_blank","noopener,noreferrer"),window.scrollTo(0,0)},[]),Oe=n.useCallback(()=>{P(E,v,f,p,x)},[P,E,v,f,p,x]),et=Ut(b.length,z);return H?s.jsx(Ot,{}):s.jsxs(s.Fragment,{children:[s.jsx(mt,{htmlAttributes:!0,children:s.jsx("title",{children:"Find Jobs - Casting Bell Jobs  | Casting Bell "})}),s.jsx(qe,{isOpen:Qe,setIsOpen:_e,HandleSubmit:Ve}),s.jsxs("div",{style:{background:"#f4f4f4"},className:"topfindmyjobsection newreducepadding",children:[s.jsx("section",{className:"top_profile_section ",style:{background:"#E5E5E5"},children:s.jsx("div",{className:"container mx-auto px-6",children:s.jsxs(k.Row,{children:[s.jsx(k.Col,{lg:6,xs:12,sm:6,className:"header_left mobilemenuhidden",children:s.jsx("div",{className:"top_title",children:s.jsx("h2",{children:"Casting Bell Jobs"})})}),s.jsx(k.Col,{lg:6,xs:12,sm:6,children:(e==null?void 0:e.user_type)===pt&&s.jsx(kt,{})})]})})}),s.jsx("section",{className:"middle_section container mx-auto ",children:s.jsxs("div",{className:"px-5",children:[s.jsx("div",{className:"mt-7 create_card px-6 pt-6 pb-4 h-full NewChangesadded",children:s.jsx("div",{className:"w-full",children:s.jsxs("div",{className:"w-full flex flex-col",children:[s.jsxs(k.Row,{className:"gap-3",style:{marginLeft:0,marginRight:0},children:[s.jsx(k.Col,{lg:2.7,md:5.7,style:{paddingLeft:0,paddingRight:0},children:s.jsx(fe,{JobDataList:O.locationData,updateDropdownFieldCount:_,fieldCountIsloading:C,selectedDropdownValues:d==null?void 0:d.location,selectedDropdown:d,HandleApplBtn:q})}),s.jsx(k.Col,{lg:2.7,md:5.7,style:{paddingLeft:0,paddingRight:0},children:s.jsx(de,{JobDataList:O.gender_count,updateDropdownFieldCount:_,fieldCountIsloading:C,selectedDropdownValues:d==null?void 0:d.genders,selectedDropdown:d,HandleApplBtn:q})}),s.jsx(k.Col,{lg:3,md:5.7,style:{paddingLeft:0,paddingRight:0},children:s.jsx(Ie,{JobDataList:O.screenAgeData,updateDropdownFieldCount:_,fieldCountIsloading:C,selectedDropdownValues:d==null?void 0:d.screenAgeData,selectedDropdown:d,HandleApplBtn:q})}),s.jsx(k.Col,{lg:3,md:5.7,style:{paddingLeft:0,paddingRight:0},children:s.jsx(be,{JobDataList:O.project_count,updateDropdownFieldCount:_,fieldCountIsloading:C,selectedDropdownValues:d==null?void 0:d.project_Data,selectedDropdown:d,HandleApplBtn:q})})]}),s.jsx(k.Row,{className:"mt-2",children:s.jsx(k.Col,{children:s.jsx(je,{filterFindJobDropdown:p,FilterFindJobsData:a=>{P(E,v,f,a,x),_(a)},clearCountAll:()=>{_(a=>({...a,screenAgeData:[]}))}})})}),s.jsxs(k.Row,{children:[s.jsx(k.Col,{xxl:6.5,lg:5,md:12,sm:12,children:s.jsx("p",{className:"talent_found mt-3",children:et})}),s.jsx(k.Col,{xxl:5.5,lg:7,md:12,sm:12,children:s.jsxs("div",{className:"flex items-end justify-end flex-wrap show_onlyActive countrolthebuttons",children:[s.jsx(Ee,{c
1ontrol:s.jsx(dt,{sx:{m:1},checked:x,onChange:a=>{a.persist(),K(a.target.checked)},defaultValue:x,value:x}),label:"Show only Active Openings",className:"pl-2"}),s.jsx(xe,{JobDataList:O.deadLineData,selectedDropdown:d,updateDropdownFieldCount:_,selectedDropdownValues:d==null?void 0:d.deadLineData,HandleApplBtn:q})]})})]})]})})}),b.length>0?s.jsx("div",{className:"flex flex-col gap-5 mt-5",children:b==null?void 0:b.map(a=>{var I,Q,W;const m=a!=null&&a.totalApplicants?a.totalApplicants.length:0,N=!((I=a==null?void 0:a.applyData)!=null&&I.isTryToApply)&&((Q=a==null?void 0:a.applyData)==null?void 0:Q.jobApplyStatus);return s.jsx(Ct,{data:a,isViewJobsList:!0,HandleReport:()=>Je(a),jobStatus:N,HandleApply:()=>Fe(a),is_profile_creation_completed:(W=e==null?void 0:e.talenter)==null?void 0:W.is_profile_creation_completed,HandleDetails:()=>we(a),isPagination:Ge,handleJobData:Ke,isFindJob:!0,TotalApplicantsCount:m},a.id)})}):s.jsx(St,{}),b.length>0?s.jsx(Tt,{rowsPerPageOptions:Bt,component:"div",count:z,rowsPerPage:v,page:E,onPageChange:Ze,onRowsPerPageChange:De,slotProps:{select:{"aria-label":"rows per page",native:!0}},labelRowsPerPage:"Show:"}):null]})}),s.jsx(Pt,{id:Se,applyJob:V,setApplyJob:se,handleRefreshData:Oe,isReapplyPopup:Ue,projectDetails:{recruiterProject_id:M==null?void 0:M.recruiterProject_id,recruiterCharacter_id:M==null?void 0:M.recruiterCharacter_id},currectJobDetails:M}),s.jsx(vt,{id:Me,setWithDraw:ye,withDraw:He,handleRefreshData:Oe}),s.jsx(Lt,{id:Se,report:Be,setReport:Ae})]})]})};zt.propTypes={};export{zt 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.