PageSourceSearch

https://www.castingbell.com/assets/singleAuditionPage-DxTy3Q01.js

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

1import{j as r,D as Ae,l as Ce,m as Te,n as Re,o as ke,P as n,r as s,A as je,b as _e,C as he,f as Ie,q as ve,I as Oe,s as Je,i as Le,t as $e,G as Ee,H as Ne,d as ue,v as Be}from"./index-DOEDGpFv.js";/* empty css                        */import{a as k}from"./audition.service-9shYmHng.js";import{A as Pe,R as Se,W as xe}from"./WithDrawJobPost-DXQHgEIT.js";import{J as we,a as be}from"./JobPostingCard-C443wv0L.js";import{F as Ue}from"./FormControlLabel-Cv1jetH4.js";import{T as We}from"./TablePagination-rbCf-VGH.js";import{L as He}from"./LoaderPage-V8pn7OCQ.js";import{R as qe}from"./RecruiterDetailsCard-qneQXizF.js";import Me from"./Error-DZ1MRG1b.js";import{D as Ge}from"./DashBroadHeader-Db3vYkBl.js";import{R as Ye}from"./RecruiterDashBroadHeader-JVQDnjTz.js";import"./WarningTwoTone-i502AY6r.js";import"./RadioGroup-BVZKrqaO.js";import"./Radio-BcikqwZL.js";/* empty css                */import"./Save-bfga-Jet.js";import"./Cancel-rtwU0jAA.js";import"./KeyboardArrowRight-K5Vapl4X.js";import"./LastPage-CTKFULy8.js";import"./icon_location-DvutW7dn.js";import"./CheckCircleTwoTone-Dq0qIYnk.js";import"./ArrowBack-Bk3NTM5B.js";function ge({isOpen:c,setIsOpen:o,HandleSubmit:p}){return r.jsxs(Ae,{open:c,fullWidth:!0,maxWidth:"sm",children:[r.jsx(Ce,{id:"first_alert__title",className:"first_alert__title",children:"Pending Profile Submission"}),r.jsxs(Te,{className:"mb-6 flex justify-between mr-6 mt-3",children:[r.jsx(Re,{text:"Cancel",style:{marginRight:20},onClick:()=>o(!1)}),r.jsx(ke,{text:"Submit Profile",onClick:p})]})]})}ge.propTypes={isOpen:n.bool.isRequired,setIsOpen:n.func.isRequired,HandleSubmit:n.func.isRequired};const me={APPLY:0,WITHDRAW:1,REAPPLY:2},Fe={[me.APPLY]:"Apply",[me.WITHDRAW]:"Withdraw",[me.REAPPLY]:"Reapply"},Ve=10;function ye({gender:c,minAge:o,maxAge:p,id:f,userId:m,isFindJobs:b,isDetailedPage:I}){const{setIsSignInPopup:v,user:l}=s.useContext(je),e=_e(),[j,S]=s.useState(0),[y,H]=s.useState(Ve),[O,q]=s.useState(0),[d,M]=s.useState([]),[G,x]=s.useState(!1),[Y,F]=s.useState(!1),[V,J]=s.useState(null),[X,z]=s.useState(!1),[ae,ie]=s.useState(""),[K,T]=s.useState(!1),[Q,ce]=s.useState(!1),[pe,de]=s.useState(0),[fe,Z]=s.useState(!0),[_,D]=s.useState(null),[ee,L]=s.useState(!1),$=s.useCallback(()=>{var t,a;return l&&!((t=l==null?void 0:l.talenter)!=null&&t.is_profile_creation_completed)&&((a=l==null?void 0:l.talenter)==null?void 0:a.last_activity_page)!==6},[l]),E=s.useCallback(t=>Fe[t]||"",[]),N=s.useCallback(async t=>{const a={job_id:t,user_id:l==null?void 0:l.user_id};await k.myApplicationTriedToApplyJob(a)},[l==null?void 0:l.user_id]),g=s.useCallback(async(t,a,h,w,P,A,C)=>{try{let u;return b?u=await k.getAllAudition((l==null?void 0:l.user_id)??"",t+1,a,C):u=await k.getSimilarAudition(t+1,a,h,w,P,A,m),M(u.data),q(u.totalItems),T(!1),Z(!1),u}catch(u){throw console.error("Error fetching audition data:",u),T(!1),Z(!1),u}},[b,l==null?void 0:l.user_id,m]),B=s.useCallback((t,a,h)=>{const P={Apply:()=>{x(!0),J(h)},Withdraw:()=>{ie(a),z(!0)},Reapply:()=>{ce(!0),x(!0),J(a)}}[t];P&&P(),T(!1)},[]),U=s.useCallback(t=>{var a;m?B(E(t.appliedStatus),(a=t.applyData)==null?void 0:a.id,t.id):v(!0)},[m,B,E,v]),te=s.useCallback(async(t,a)=>{T(!0),S(a);try{await g(a,y,c,o,p,f,m),he("otherOpenings")}catch(h){console.error("Error changing page:",h)}},[g,y,c,o,p,f,m]),oe=s.useCallback(async t=>{const a=parseInt(t.target.value,10);H(a),S(0);try{await g(0,a,c,o,p,f,m),he("otherOpenings")}catch(h){console.error("Error changing rows per page:",h)}},[g,c,o,p,f,m]),W=s.useCallback(()=>g(j,y,c,o,p,f),[g,j,y,c,o,p,f]),se=s.useCallback(async t=>{try{await g(j,y,c,o,p,f,t.target.checked)}catch(a){console.error("Error toggling active openings:",a)}},[g,j,y,c,o,p,f]),R=Ie.memo(({res:t,index:a})=>{var A,C,u;const h=s.useCallback(()=>{window.open(`${ve.client_url}/jobs/${t==null?void 0:t.jobUniqueId}`,"_blank","noopener,noreferrer"),window.scrollTo(0,0)},[t==null?void 0:t.jobUniqueId]),w=s.useCallback(()=>{l?(F(!0),J(t.id)):v(!0)},[l,t.id]),P=s.useCallback(async()=>{de(a),$()?(await N(t.id),L(!0)):(D(t),U(t))},[a,t,$,N,U]);return r.jsx(we,{isUser:m,isSpin:pe===a?K:!1,data:t,HandleDetails:h,jobStatus:!((A=t==null?void 0:t.applyData)!=null&&A.isTryToApply)&&((C=t==null?void 0:t.applyData)==null?void 0:C.jobApplyStatus),HandleReport:w,HandleApply:P,is_profile_creation_completed:(u=l==null?void 0:l.talenter)==null?void 0:u.is_profile_creation_completed,isDetailedPage:I})});R.propTypes={res:n.shape({id:n.oneOfType([n.string,n.number]),jobUniqueId:n.string,appliedStatus:n.number,applyData:n.shape({id:n.oneOfType([n.string,n.number]),isTryToApply:n.bool,jobApplyStatus:n.oneOfType([n.string,n.number])}),recruiterProject_id:n.oneOfType([n.string,n.number]),recruiterCharacter_id:n.oneOfType([n.string,n.number])}).isRequired,index:n.number.isRequired},R.displayName="SimilarAuditionContainer";const re=s.useCallback(()=>{var t;(t=l==null?void 0:l.talenter)!=null&&t.is_profile_creation_completed&&(l==null?void 0:l.profile_status)!==1?e(`/talent/${l==null?void 0:l.userUniqueId}`):e("/app/dashboard")},[l]);s.useEffect(()=>{f?f&&!G&&!X&&g(j,y,c,o,p,f):b&&g(j,y,c,o,p,f)},[c,o,p,m]);const ne=s.useMemo(()=>!b&&(d==null?void 0:d.length)>0,[b,d==null?void 0:d.length]),le=s.useMemo(()=>(d==null?void 0:d.length)>0,[d==null?void 0:d.length]),i=s.useMemo(()=>({recruiterProject_id:_==null?void 0:_.recruiterProject_id,recruiterCharacter_id:_==null?void 0:_.recruiterCharacter_id}),[_]);return fe?r.jsx(Oe,{}):r.jsxs("div",{className:"job_list_common",id:"otherOpenings",children:[r.jsx("div",{className:"flex justify-end items-center flex-wrap",children:b&&r.jsx("div",{className:"customLabel ml-3 mb-4",children:r.jsx(Ue,{control:r.jsx(Je,{color:"secondary",onChange:se,slotProps:{input:{"aria-label":"controlled"}}}),label:"Show only Active Openings"})})}),r.jsx(ge,{isOpen:ee,setIsOpen:L,HandleSubmit:re}),r.jsx(Pe,{id:V,applyJob:G,setApplyJob:x,handleRefreshData:W,isReapplyPopup:Q,projectDetails:i,currectJobDetails:i}
1),r.jsx(Se,{id:V,report:Y,setReport:F}),r.jsx(xe,{id:ae,setWithDraw:z,withDraw:X,handleRefreshData:W}),ne&&r.jsxs("h3",{className:"common_title",children:["Other Casting Bell openings",r.jsx("br",{}),r.jsx("span",{className:"border_bottom_admin"})]}),d.map((t,a)=>r.jsx(R,{res:t,index:a},t.id||a)),le&&r.jsxs("div",{className:"flex justify-between items-center flex-wrap",children:[r.jsx("div",{className:"customLabel ml-3"}),r.jsx(We,{rowsPerPageOptions:[5,10,15,20],component:"div",count:O,page:j,onPageChange:te,rowsPerPage:y,onRowsPerPageChange:oe,style:{color:"#44454D"},labelRowsPerPage:"Show:"})]})]})}ye.propTypes={gender:n.oneOfType([n.string,n.number]),minAge:n.oneOfType([n.string,n.number]),maxAge:n.oneOfType([n.string,n.number]),id:n.oneOfType([n.string,n.number]),userId:n.oneOfType([n.string,n.number]),isFindJobs:n.bool,isDetailedPage:n.bool};ye.defaultProps={gender:null,minAge:null,maxAge:null,id:null,userId:null,isFindJobs:!1,isDetailedPage:!1};function ht(){var D,ee,L,$,E,N,g,B,U,te,oe,W,se,R,re,ne,le;const{id:c}=Le(),{user:o,setIsSignInPopup:p,setIsJobapply:f,setSignInTabs:m}=s.useContext(je),[b,I]=s.useState(!1),[v,l]=s.useState(!1),[e,j]=s.useState(""),[S,y]=s.useState(!1),[H,O]=s.useState(null),{openSnackbar:q}=s.useContext($e),[d,M]=s.useState(!0),[G,x]=s.useState(!1),Y=_e(),{setGlobalValue:F}=s.useContext(Ee),V=()=>{var i;F(`${((i=e==null?void 0:e.ProjectData)==null?void 0:i.projectname)??""} Opening on Casting Bell`)};s.useEffect(()=>{V()},[e]);const[J,X]=s.useState([{content:`Searching for Acting or Modeling jobs? Showcase your talent and apply to hundreds of casting calls and auditions for ${(D=e==null?void 0:e.ProjectData)==null?void 0:D.projectname} on Casting Bell. Join for free and get cast today!`},{content:`Apply to hundreds of acting and modeling jobs in ${(ee=e==null?void 0:e.LocationData)==null?void 0:ee.city_name}. Get auditions and roles for ${(L=e==null?void 0:e.ProjectData)==null?void 0:L.projectname}. Join for free and get cast today!`},{content:`Upcoming audition for ${($=e==null?void 0:e.ProjectData)==null?void 0:$.projectname} in ${(E=e==null?void 0:e.LocationData)==null?void 0:E.city_name}. Join Casting Bell and connect with a verified recruiter to kickstart your career. Sign-up and apply now.`},{content:`Find new acting and modeling opportunities on Casting Bell everyday. Apply for ${(N=e==null?void 0:e.ProjectData)==null?void 0:N.projectname} in ${(g=e==null?void 0:e.LocationData)==null?void 0:g.city_name}. Get the break you deserve.`}]);s.useEffect(()=>{var i,t,a,h,w,P,A,C,u;(i=e==null?void 0:e.ProjectData)!=null&&i.projectname&&((t=e==null?void 0:e.LocationData)!=null&&t.city_name)&&X([{content:`Searching for Acting or Modeling jobs? Showcase your talent and apply to hundreds of casting calls and auditions for ${(a=e==null?void 0:e.ProjectData)==null?void 0:a.projectname} on Casting Bell. Join for free and get cast today!`},{content:`Apply to hundreds of acting and modeling jobs in ${(h=e==null?void 0:e.LocationData)==null?void 0:h.city_name}. Get auditions and roles for ${(w=e==null?void 0:e.ProjectData)==null?void 0:w.projectname}. Join for free and get cast today!`},{content:`Upcoming audition for ${(P=e==null?void 0:e.ProjectData)==null?void 0:P.projectname} in ${(A=e==null?void 0:e.LocationData)==null?void 0:A.city_name}. Join Casting Bell and connect with a verified recruiter to kickstart your career. Sign-up and apply now.`},{content:`Find new acting and modeling opportunities on Casting Bell everyday. Apply for ${(C=e==null?void 0:e.ProjectData)==null?void 0:C.projectname} in ${(u=e==null?void 0:e.LocationData)==null?void 0:u.city_name}. Get the break you deserve.`}])},[e]);const[z,ae]=s.useState(!1),[ie,K]=s.useState(!1),[T,Q]=s.useState(!1);s.useEffect(()=>{f(!0),!b&&!S&&k.getAuditionDataById(c,o!=null&&o.user_id?o==null?void 0:o.user_id:null).then(i=>{Object.keys(i).length&&(i!=null&&i.id)?j(i):Q(!0)}).finally(()=>{M(!1),x(!1)})},[b,S,c,o]);const ce=(i,t)=>{switch(i){case"Apply":O(null),I(!0);break;case"Withdraw":O(t),y(!0),x(!1);break;case"Re-Apply":O(t),I(!0),ae(!0);break}},pe=()=>{if(o.isBanned===!0)q("Your Account has been Banned","error");else if(o.isLocked===!0)q("Your Account has been Locked","error");else return!0},de=()=>{var i;o?pe()===!0&&ce(be(e.appliedStatus)==="Reapply"?"Re-Apply":be(e.appliedStatus),(i=e.applyData)==null?void 0:i.id):(m("Talent"),p(!0))};window.dataLayer.push({event:"pageview"});function fe(i){const t=Math.floor(Math.random()*i.length);return i[t]}const Z=async i=>{try{if(!i)return console.warn("No data provided to handleJobData"),{success:!1,error:"No data provided"};if(!i.id)return console.error("Job ID is required"),{success:!1,error:"Job ID is required"};const t=await k.updateApplyJobDetails(i.id,i);return t?(!b&&!S&&k.getAuditionDataById(c,o!=null&&o.user_id?o==null?void 0:o.user_id:null).then(a=>{Object.keys(a).length&&(a!=null&&a.id)?j(a):Q(!0)}).finally(()=>{M(!1),x(!1)}),{success:!0,data:t}):(console.error("Failed to update job details:",(t==null?void 0:t.error)||"Unknown error"),{success:!1,error:(t==null?void 0:t.error)||"Failed to update job details"})}catch(t){return console.error("Error in handleJobData:",t),{success:!1,error:t.message||"An unexpected error occurred"}}},_=()=>{const i=(e==null?void 0:e.jobUniqueId)??(e==null?void 0:e.id)??c;window.open(`${window.location.origin}/jobs/${i}`,"_blank","noopener,noreferrer"),window.scrollTo(0,0)};return T?r.jsx(Me,{}):d?r.jsx(He,{}):r.jsxs(r.Fragment,{children:[r.jsxs(Ne,{htmlAttributes:!0,children:[r.jsx("title",{children:e!=null&&e.createdAt?`${(B=e==null?void 0:e.ProjectData)==null?void 0:B.projectname} | Acting & Modeling Jobs in ${(U=e==null?void 0:e.LocationData)==null?void 0:U.city_name} | Casting Bell`:"Casting Bell"}),r.jsx("meta",{name:"description",content:(te=fe(J))==null?void 0:te.content})]}),r.jsx(ge,{isOpen:ie,setIsOpen:K,HandleSubmit:()=>{var i;(i=o==null?void 0:o.talenter)!=null&&i.is_profile_creation_completed&&(o==null?void 0:o.profile_status)!==1?Y(`/talent/${o==null?void 0:o.userUniqueId}`):Y("/app/dashboard")}}
1),r.jsx(Pe,{id:H||(e==null?void 0:e.id),applyJob:b,setApplyJob:I,isTriedtoApply:!1,isReapplyPopup:z,projectDetails:{recruiterProject_id:e==null?void 0:e.recruiterProject_id,recruiterCharacter_id:e==null?void 0:e.recruiterCharacter_id},currectJobDetails:e}),r.jsx(Se,{id:e==null?void 0:e.id,report:v,setReport:l}),r.jsx(xe,{id:H,setWithDraw:y,withDraw:S}),r.jsx("section",{className:"top_profile_section",style:{backgroundColor:"#e4e4e4"},children:r.jsx("div",{className:"container mx-auto px-6",children:r.jsxs(ue.Row,{children:[r.jsx(ue.Col,{lg:6,xs:12,sm:12,className:"header_left mobilemenuhidden",children:r.jsx("div",{className:"top_title",children:r.jsxs("h1",{children:[((oe=e==null?void 0:e.ProjectData)==null?void 0:oe.projectname)??""," Opening on Casting Bell"]})})}),r.jsx(ue.Col,{lg:6,xs:12,sm:12,children:(o==null?void 0:o.user_type)===Be?r.jsx(Ge,{}):r.jsx(Ye,{})})]})})}),r.jsx("section",{className:"top_profile_section_bot_list",children:r.jsx("div",{className:"container mx-auto px-6",children:r.jsxs("div",{className:"talenter_profile_middle",children:[(e==null?void 0:e.createdAt)&&r.jsx(we,{isUser:(W=o==null?void 0:o.talenter)==null?void 0:W.is_profile_creation_completed,isSpin:G,data:e,is_profile_creation_completed:(se=o==null?void 0:o.talenter)==null?void 0:se.is_profile_creation_completed,jobStatus:!((R=e==null?void 0:e.applyData)!=null&&R.isTryToApply)&&((re=e==null?void 0:e.applyData)==null?void 0:re.jobApplyStatus),HandleReport:()=>{o?l(!0):(m("Talent"),p(!0))},HandleApply:()=>{var i,t;o&&!((i=o==null?void 0:o.talenter)!=null&&i.is_profile_creation_completed)&&((t=o==null?void 0:o.talenter)==null?void 0:t.last_activity_page)!==6?K(!0):de()},isDetailedPage:!0,HandleDetails:_,handleJobData:Z,TotalApplicantsCount:((le=(ne=e==null?void 0:e.totalApplicants)==null?void 0:ne.filter(i=>i.user!==null))==null?void 0:le.length)??0}),e!=null&&e.recruiterData?r.jsx(qe,{recruiterData:e==null?void 0:e.recruiterData,isDetailedPage:!0}):null,(e==null?void 0:e.id)&&r.jsx(ye,{gender:e==null?void 0:e.gender,minAge:e==null?void 0:e.min_age,maxAge:e==null?void 0:e.max_age,id:e==null?void 0:e.id,userId:o==null?void 0:o.user_id})]})})})]})}export{ht 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.