PageSourceSearch

https://www.craftlyst.com/_next/static/chunks/app/(public)/talents/page-16f45541af5fbc22.js

js craftlyst.com collected 2026-10-09 00:13:14 UTC 67,004 bytes, 233 lines download raw bytes

1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},s=(new e.Error).stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="c7f23c90-4e79-423e-94e4-095ccab31c37",e._sentryDebugIdIdentifier="sentry-dbid-c7f23c90-4e79-423e-94e4-095ccab31c37")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4787,5071,7195,9701],{1442:(e,s,a)=>{"use strict";a.d(s,{A:()=>l});var t=a(95553);class r{static{this.registerTalent=async e=>{try{return await t.A.post("/auth/register/talent",e)}catch(e){return e}}}static{this.registerPartner=async(e,s)=>{try{return await t.A.post("/auth/register/partner",{...e,account:s})}catch(e){return e}}}static{this.validateEmailAndPassword=e=>null!=e&&""!==e.emailAddress&&""!==e.password}static{this.login=async e=>{try{return await t.A.post("/auth/login",e)}catch(e){return e}}}static{this.logout=async()=>{try{return await t.A.get("/auth/logout")}catch(e){return e}}}static{this.verifyAccount=async(e,s)=>{try{return await t.A.get(`/auth/account-verification?email=${e}&code=${s}`)}catch(e){return e}}}static{this.changePassword=async e=>{try{return await t.A.post("/auth/change-password",e)}catch(e){return e}}}static{this.resetPassword=async e=>{try{return await t.A.post("/auth/reset-password",{emailAddress:e})}catch(e){return e}}}}let l=r},2767:(e,s,a)=>{"use strict";a.d(s,{A:()=>r});var t=a(95155);a(12115);let r=()=>(0,t.jsxs)("div",{className:"loader-container",children:[(0,t.jsx)("div",{className:"loader"}),(0,t.jsx)("img",{className:"logo",src:"/img/black-logo-text.svg"})]})},7921:(e,s,a)=>{"use strict";a.d(s,{A:()=>j});var t=a(95155),r=a(73321),l=a(12115),i=a(28464),n=a(60160),c=a.n(n),o=a(8550),d=a(28603),m=a(12076),h=a(73947),u=a(54285),g=a(92330),p=a(23043),x=a(70285),A=a(67843);let j=e=>{let[s,a]=(0,l.useState)(),[n,j]=(0,l.useState)(),[N,f]=(0,l.useState)(),[v,b]=(0,l.useState)(!1),[y,S]=(0,l.useState)(!1),[k,w]=(0,l.useState)(),[C,I]=(0,l.useState)(),[T,E]=(0,l.useState)(),[_,O]=(0,l.useState)(!1),R=(0,r.useRouter)(),L=e=>{let t={...s};t[e.target.name]=e.target.value,a(t),E(t.password===t.confirmPassword),I(t.password.length>7)},D=async()=>{O(!0),f({show:!1,type:void 0,message:""});let t=await i.A.registerPartner(n,s);if(t.isAxiosError){O(!1),f({show:!0,type:"error",message:t.response?.data});return}O(!1),a({emailAddress:"",password:"",confirmPassword:""}),j({companyName:"",account:void 0}),e.onSuccess(!0)};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(d.A,{show:N&&N.show,type:N&&N.type,message:N&&N.message}),(0,t.jsxs)("div",{className:"",children:[(0,t.jsx)("p",{className:"text-center",children:"Discover exceptional talent, fill your creative roles, and promote your events with ease."}),(0,t.jsxs)(m.A,{className:"form-group",children:[(0,t.jsx)("span",{className:"input-addon-button",children:n&&n.companyName&&(0,t.jsx)("div",{className:`show ${c().showClear}`,onClick:()=>{let e={...n};e.companyName="",j(e)},children:(0,t.jsx)("i",{className:"fa fa-times"})})}),(0,t.jsx)(h.A,{children:"Company Name"}),(0,t.jsx)(u.A,{type:"text",name:"companyName",className:"normal",placeholder:"CraftLyst",value:n&&n.companyName,onChange:e=>j({...n,companyName:e.target.value}
1),valid:n&&""!==n.companyName,invalid:n&&""===n.companyName}),n&&""===n.companyName&&(0,t.jsx)(g.A,{color:"danger",children:"Company name is required"})]}),(0,t.jsxs)(m.A,{className:"form-group",children:[(0,t.jsx)("span",{className:"input-addon-button",children:s&&s.emailAddress&&(0,t.jsx)("div",{className:`show ${c().showClear}`,onClick:()=>{let e={...s};e.emailAddress="",a(e),w(void 0)},children:(0,t.jsx)("i",{className:"fa fa-times"})})}),(0,t.jsx)(h.A,{children:"Email"}),(0,t.jsx)(u.A,{type:"email",name:"emailAddress",placeholder:"[email protected]",value:s&&s.emailAddress,onChange:e=>{a({...s,emailAddress:e.target.value}),w((0,o.DT)(e.target.value))},valid:k,invalid:void 0!==k&&!k}),void 0!==k&&!k&&(0,t.jsx)(g.A,{color:"danger",children:"Please enter a valid email address"})]}),(0,t.jsxs)(m.A,{className:"form-group",children:[(0,t.jsx)("span",{className:"input-addon-button",children:(0,t.jsx)("div",{className:`show ${c().showPassword}`,onClick:()=>b(!v),children:v?(0,t.jsxs)(t.Fragment,{children:["\xa0",(0,t.jsx)("i",{className:"fa fa-eye"})]}):(0,t.jsxs)(t.Fragment,{children:["\xa0",(0,t.jsx)("i",{className:"fa fa-eye-slash"})]})})}),(0,t.jsx)(p.A,{placement:"right",target:"passwordHintPartner",delay:0,children:(0,t.jsx)("div",{className:"text-left",children:(0,t.jsx)(A.A,{password:s?.password,setIsPasswordValid:I})})}),(0,t.jsxs)(h.A,{id:"passwordHintPartner",children:["Password ",(0,t.jsx)("i",{className:"fa fa-info-circle ml-2"})]}),(0,t.jsx)(u.A,{type:v?"text":"password",name:"password",className:`form-control ${C?"is-valid":"is-invalid"}`,placeholder:"••••••••",value:s&&s.password,onChange:e=>L(e)})]}),(0,t.jsxs)(m.A,{className:"form-group mb-4",children:[(0,t.jsx)("span",{className:"input-addon-button",children:(0,t.jsx)("div",{className:`show ${c().showPassword}`,onClick:()=>S(!y),children:y?(0,t.jsxs)(t.Fragment,{children:["\xa0",(0,t.jsx)("i",{className:"fa fa-eye"})]}):(0,t.jsxs)(t.Fragment,{children:["\xa0",(0,t.jsx)("i",{className:"fa fa-eye-slash"})]})})}),(0,t.jsx)(h.A,{children:"Confirm Password"}),(0,t.jsx)(u.A,{type:y?"text":"password",name:"confirmPassword",className:`form-control ${void 0!==T&&(T?"is-valid":"is-invalid")}`,placeholder:"••••••••",value:s&&s.confirmPassword,onChange:e=>L(e)}),void 0!==T&&!T&&(0,t.jsx)(g.A,{color:"danger",children:"Passwords do not match"})]}),!_&&(0,t.jsx)(x.A,{color:"primary",disabled:!k||!C||!T,onClick:D,size:"lg",className:"btn-round",block:!0,children:"Sign Up"}),_&&(0,t.jsx)(x.A,{color:"primary",disabled:!0,size:"lg",className:"btn-round",block:!0,children:(0,t.jsx)("i",{className:"fa fa-spinner fa-spin"})}),(0,t.jsxs)("p",{className:"small my-3",children:["By clicking Sign Up, you agree to CraftLyst's"," ",(0,t.jsx)("a",{href:"/terms-of-use",children:"Terms of Use"})," and\xa0",(0,t.jsx)("a",{href:"/privacy-policy",children:"Privacy Policy"})]}),(0,t.jsx)("hr",{}),(0,t.jsx)("p",{className:"text-center mb-3",children:"Already on CraftLyst?"}),(0,t.jsx)(x.A,{onClick:()=>R.push("/signin"),color:"dark",size:"lg",className:"btn-round",block:!0,children:"Sign In"})]})]})}},8550:(e,s,a)=>{"use strict";let t;a.d(s,{Bz:()=>x,DK:()=>_,DT:()=>d,H4:()=>N,HA:()=>k,HE:()=>w,JF:()=>g,Jy:()=>T,Mb:()=>E,Oj:()=>m,R_:()=>b,Sl:()=>o,bJ:()=>h,kJ:()=>C,ll:()=>A,mz:()=>p,n4:()=>y,oc:()=>f,r0:()=>u,sO:()=>j,vv:()=>S,zX:()=>v});var r,l=a(27903),i=a(10692),n=a(37042),c=a.n(n);Promise.all([a.e(7966),a.e(5512)]).then(a.t.bind(a,75512,23)).then(e=>{t=e.default});var o=((r={})[r.VALIDATION_LENGTH=0]="VALIDATION_LENGTH",r[r.VALIDATION_CASE_UPPER=1]="VALIDATION_CASE_UPPER",r[r.VALIDATION_CASE_LOWER=2]="VALIDATION_CASE_LOWER",r[r.VALIDATION_NUMBER=3]="VALIDATION_NUMBER",r);let d=e=>!!e.match(/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-]+$/),m=(e,s)=>{switch(s){case 0:return e.length>=8;case 1:return!!e.match(/^(?=.*[A-Z]).*$/);case 2:return!!e.match(/^(?=.*[a-z]).*$/);case 3:return!!e.match(/^(?=.*\d).*$/);default:return!1}},h=e=>!!e&&("image/jpeg"===e.type||"image.jpg"===e.type||"image/png"===e.type||"image/gif"===e.type||"image/webp"===e.type),u=e=>c().fire({showCancelButton:!0,showLoaderOnConfirm:!0,focusConfirm:!1,customClass:{confirmButton:"btn btn-primary btn-round mx-4",cancelButton:"btn btn-dark btn-round mx-4"},confirmButtonColor:"#E93423",...e}),g={cloud_name:"craft-ng",api_key:"587629423258683",allowed_formats:{image:"jpg,png,gif,jpeg,webp,avif",documents:"doc,docx,xls,xlsx,pdf",video:"mp4,ogg,webm,flv,mp3"},tags:"craftlyst",folder:"craftlyst"},p=(e="image")=>`https://res.cloudinary.com/${g.cloud_name}/${e}/upload/`,x=(e,s,a=266,t=263)=>`https://res.cloudinary.com/${g.cloud_name}/image/upload/c_fill,h_${a},w_${t}/v${e}/${s}.jpg`,A=(e,s)=>e?e.length>=s?`${e.substring(0,s+1)}...`:e:"",j=e=>`https://img.youtube.com/vi/${e}/hqdefault.jpg`,N=(e,s,a=!0)=>
1{if(t)if(e)switch(e?.response?.status){case 400:t.error("Request could not be processed","Fields required");break;case 404:t.error("Requested entity does not exist","Entity not found");break;case 500:t.error("An error has occurred while processing your request","Internal Server Error");break;default:t.error("An error occurred")}else t.error(a?"An error occurred":s)},f=e=>{t&&(e?t.success(e):t.success("Success"))},v=e=>e?`${e.charAt(0).toUpperCase()}${e.substring(1).toLowerCase()}`:"",b=()=>"https://www.craftlyst.com",y=e=>e?(-1===e.indexOf("+")&&(e=`+${e}`),(0,i.L)(e).formatInternational()):"",S=(e,s="₦")=>e?`${s}${new Intl.NumberFormat("en-US",{style:"decimal",maximumFractionDigits:2}).format(e/100)}`:"",k=(e,s=999)=>e?e&&e.length>s?`${e.substring(0,s)}...`:e||"":"",w=()=>{let e=Math.floor(19*Math.random()+1);return`/img/job-bgs/audition-image-${e}.jpg`},C=e=>{let s=Math.floor(Math.random()*(e===l.I.EVENT?21:19)+1);return e===l.I.EVENT?`/img/events/event-image-${s}.webp`:e===l.I.TRAINING?`/img/trainings/training-image-${s}.webp`:""},I=(e,s)=>{let a=0;for(let s=0;s<e.length;s+=1)a=31*a+e.charCodeAt(s)|0;return Math.abs(a)%s+1},T=(e,s)=>{if(e)return e;let a=s?I(s,19):1;return`/img/job-bgs/audition-image-${a}.jpg`},E=(e,s,a)=>{if(s)return s;let t=e===l.I.EVENT?21:19,r=a?I(a,t):1;return e===l.I.EVENT?`/img/events/event-image-${r}.webp`:e===l.I.TRAINING?`/img/trainings/training-image-${r}.webp`:""},_=e=>{let s=new URL(location.href).searchParams;return s.set("page",String(e)),s.toString()}},9862:(e,s,a)=>{"use strict";a.d(s,{A:()=>i});var t=a(95155),r=a(12115),l=a(96074);a(13911);let i=e=>{let s=(0,r.useId)(),a=(0,r.useId)(),[i,n]=(0,r.useState)(e.range||[e.min??0,e.max??100]);return(0,r.useEffect)(()=>{e.range&&n(e.range)},[e.range]),(0,t.jsx)("div",{id:s,className:"collapse show","aria-labelledby":a,children:(0,t.jsx)(l.A,{range:!0,value:i,min:e.min??0,max:e.max??100,onChange:s=>{let a=Array.isArray(s)?s:[s];n(a),e.onChange(a)},styles:{track:{backgroundColor:"#E93423"},rail:{backgroundColor:"#9A9A9A"},handle:{borderColor:"#E93423",backgroundColor:"#E93423",opacity:1}}})})}},11187:(e,s,a)=>{"use strict";a.d(s,{h:()=>r,i:()=>l});var t=a(41463);function r(){let e=(t.env.API_SERVER_BASE_URL||"https://api.craftlyst.com/api").trim().replace(/\/+$/,"");return e.endsWith("/api")?e:`${e}/api`}function l(){let e=(t.env.GRAPHQL_BASE_URL||"https://api.craftlyst.com/craftlyst/api").trim().replace(/\/+$/,"");return e.endsWith("/craftlyst/api")?e:e.endsWith("/graphql")?e.replace(/\/graphql$/,"/craftlyst/api"):`${e}/craftlyst/api`}},12895:(e,s,a)=>{"use strict";a.d(s,{A:()=>c});var t=a(89129);class r{constructor(e,s,a,t,r){this.to=e,this.subject=s,this.body=a,this.cc=t,this.bcc=r}share(){let e=`mailto:${this.to}?subject=${this.subject}&body=${this.body}`;this.cc&&(e+=`&cc=${this.cc}`),this.bcc&&(e+=`&bcc=${this.bcc}`),window.open(e,"_top")}}class l{constructor(e,s,a=0x22709d22314ec,t="popup"){this.appId=a,this.display=t,this.shareUri=e,this.redirectUri=s}share(){let e=`https://www.facebook.com/dialog/share?app_id=${this.appId}&display=${this.display}&href=${this.shareUri}&redirect_uri=${this.redirectUri}`;window.open(e,"_blank")}}class i{constructor(e){this.shareUri=e}share(){let e=`https://twitter.com/intent/tweet?url=${this.shareUri}`;window.open(e,"_blank")}}class n{static createSocialShare(e,s){switch(e){case t.A.EMAIL:return new r(s.to,s.subject,s.body,s.cc,s.bcc);case t.A.FACEBOOK:return new l(s.shareUri,s.redirectUri,s.appId,s.display);case t.A.TWITTER:return new i(s.shareUri);default:throw Error(`Share type ${e} not implemented`)}}}let c=n},21135:(e,s,a)=>{"use strict";a.d(s,{A:()=>l});var t=a(95553);class r{static{this.fetchTalents=async(e=1,s,a,r,l,i,n,c,o,d,m,h,u,g,p,x,A,j,N,f,v)=>{let b=new URLSearchParams;b.set("page",e.toString()),void 0!==n&&b.set("min_age",n.toString()),void 0!==c&&b.set("max_age",c.toString()),void 0!==o&&b.set("min_height",o.toString()),void 0!==d&&b.set("max_height",d.toString()),void 0!==s&&b.set("per_page",s.toString()),a&&b.set("sort_order",a),r?.length&&b.set("names",r.join(",")),l?.length&&b.set("skills",l.join(",")),i?.length&&b.set("genders",i.join(",")),m?.length&&b.set("countries",m.join(",")),h?.length&&b.set("languages",h.join(",")),u?.length&&b.set("profiles_with",u.join(",")),g?.length&&b.set("builds",g.join(",")),p?.length&&b.set("skin_colors",p.join(",")),x?.length&&b.set("ethnicities",x.join(",")),void 0!==A&&b.set("visual_body_arts",String(A)),void 0!==j&&b.set("dreadlocks",String(j)),N&&b.set("availability",N.toISOString()),void 0!==f&&b.set("cv",String(f)),v&&b.set("filter_type",v);let y=b.toString();try{return{response:await t.A.get(`/talents?${y}`),params:y}}catch(e){return e}}}static{this.getTalent=async e=>{try{return await t.A.get(`/talents/${encodeURIComponent(e)}`)}catch(e){return e}}}static{this.bookmarkTalent=async e=>{try{return await t.A.post(`/talents/${encodeURIComponent(e.id)}/bookmark`)}catch(e){return e}}}static{this.unbookmarkTalent=async e=>{try{return await t.A.post(`/talents/${encodeURIComponent(e.id)}/bookmark/remove`)}catch(e){return e}}}static{this.clearBookmarks=async()=>{try{return await t.A.post("/talents/bookmark/remove/all")}catch(e){return e}}}static{this.requestConnection=async e=>{try{return await t.A.post("/connection/request",e)}catch(e){return e}}}static{this.searchTalentsByName=async e=>{try{return await t.A.get(`/talents/search/${encodeURIComponent(e)}`)}catch(e){return e}}}}let l=r},25071:(e,s,a)=>{"use strict";a.r(s),a.d(s,{default:()=>r});var t=a(95155);a(12115);let r=function(e){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("label",{children:[e.label," ",e.required&&(0,t.jsx)("em",{children:"⁕"})]}),(0,t.jsx)("select",{className:"form-control",value:e.value,disabled:e.disabled,...e,children:e.children})]})}},27146:(e,s,a)=>{"use strict";a.d(s,{A:()=>n});var t=a(95155);a(12115);var r=a(62320),l=a(19491),i=a(91367);let n=e=>(0,t.jsx)("nav",{"aria-label":"Page navigation",children:e.totalPages>0&&(0,t.jsxs)(i.A,{className:"pagination justify-content-center",listClassName:"justify-content-center",children:[(0,t.jsx)(r.A,{className:`${e.number+1===1&&"disabled"}`,children:(0,t.jsx)(l.A,{"aria-label":"Previous",onClick:s=>{s.preventDefault(),e.navigation(1)}
1,tabIndex:-1,children:(0,t.jsx)("i",{"aria-hidden":"true",className:"fa fa-angle-double-left"})})}),(0,t.jsx)(r.A,{className:`${e.number+1===1&&"disabled"}`,children:(0,t.jsx)(l.A,{"aria-label":"Previous",onClick:s=>{s.preventDefault(),e.navigation(e.number)},tabIndex:-1,children:(0,t.jsx)("i",{"aria-hidden":"true",className:"fa fa-angle-left"})})}),(()=>{let s=new Map,a=[],i=[],n=0;for(let t=0;t<e.pageNumbers.length;t++)s.set(e.pageNumbers[t],n),i.push(e.pageNumbers[t]),(5===i.length||t===e.pageNumbers.length-1)&&(a.push(i),i=[],n++);return(0,t.jsxs)(t.Fragment,{children:[s.get(e.number+1)>0&&(0,t.jsx)(r.A,{className:"page-item",children:(0,t.jsx)(l.A,{children:"..."})}),a[s.get(e.number+1)]?.map(s=>(0,t.jsx)(r.A,{className:`page-item ${s===e.number+1&&"active"}`,children:(0,t.jsx)(l.A,{onClick:a=>{a.preventDefault(),e.navigation(s)},children:s})},s)),s.get(e.number+1)<a.length-1&&(0,t.jsx)(r.A,{className:"page-item",children:(0,t.jsx)(l.A,{children:"..."})})]})})(),(0,t.jsx)(r.A,{className:`${e.number+1===e.totalPages&&"disabled"}`,children:(0,t.jsx)(l.A,{"aria-label":"Next",onClick:s=>{s.preventDefault(),e.navigation(e.number+2)},children:(0,t.jsx)("i",{"aria-hidden":"true",className:"fa fa-angle-right"})})}),(0,t.jsx)(r.A,{className:`${e.number+1===e.totalPages&&"disabled"}`,children:(0,t.jsx)(l.A,{"aria-label":"Next",onClick:s=>{s.preventDefault(),e.navigation(e.totalPages)},children:(0,t.jsx)("i",{"aria-hidden":"true",className:"fa fa-angle-double-right"})})})]})})},27903:(e,s,a)=>{"use strict";a.d(s,{B:()=>i,I:()=>l});var t,r,l=((t={}).EVENT="EVENT",t.TRAINING="TRAINING",t),i=((r={}).LATEST="LATEST",r.EXPIRING_SOON="EXPIRING_SOON",r)},28068:(e,s,a)=>{"use strict";a.d(s,{A:()=>A});var t=a(95155),r=a(12115),l=a(20987),i=a(43597),n=a(78629),c=a(46437),o=a(43935),d=a(71714),m=a(70285),h=a(12076),u=a(25071),g=a(35312);let p=(0,g.J1)`
2  query inviteToApply($audition: AuditionInput, $talents: [TalentInput]) {
3    inviteToApply(audition: $audition, talents: $talents) {
4      success
5    }
6  }
7`;var x=a(8550);let A=({closeModal:e,selectedTalents:s,selectTalent:a})=>{let[g,A]=(0,r.useState)(!1),[j,N]=(0,r.useState)({}),f=(0,l.I)(n.DE),[v,{error:b,data:y,loading:S}]=(0,i._)(p,{fetchPolicy:"network-only"});(0,r.useEffect)(()=>{b&&(0,x.H4)(void 0,`Invitation not sent. - ${b.message}`),y?.inviteToApply?.success&&((0,x.oc)("Invitations sent"),e())},[b,y]);let k=(e="#")=>{let s=new URL(window.location.href),a="localhost"===s.hostname?"http://localhost:3000":s.origin;return a+`/opportunities/${e}`},w=async()=>{if(j){let e={role:j.role,reference:j.reference,title:j.title,url:k(j.reference)},a=s.map(e=>({name:`${e.firstName} ${e.lastName}`,email:e.account.emailAddress}));await v({variables:{audition:e,talents:a}})}};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(c.A,{form:"true",children:[(0,t.jsx)(o.A,{md:12,children:(0,t.jsxs)("div",{className:"selected-talents",children:[(0,t.jsxs)("div",{className:" pb-2",children:["Selected talents",(0,t.jsx)(d.A,{color:"dark",className:"ml-2",children:s.length})]}),(0,t.jsx)("div",{className:"selected-talents-block",children:s.map(e=>(0,t.jsxs)("div",{className:"selected-talents-labels",children:[(0,t.jsxs)("span",{className:"label-name",children:[e.firstName," ",e.lastName]}),(0,t.jsx)(m.A,{color:"primary",onClick:()=>{s.length>1&&a?a(!1,e):(0,x.H4)(void 0,"You must invite at least one talent to apply for an audition")},children:(0,t.jsx)("i",{className:"now-ui-icons ui-1_simple-remove"})})]},e.id))})]})}),(0,t.jsx)(o.A,{md:12,children:(0,t.jsx)(h.A,{className:"form-group",children:(0,t.jsxs)(u.default,{name:"activeAuditions",label:"Select Audition or Job",onChange:e=>{let s;""!==e.target.value&&(s=JSON.parse(e.target.value),A(!0),N(s))},children:[(0,t.jsx)("option",{value:"",children:"-- Select One --"}),f?.data?.listAllActiveAuditions?.map(e=>(0,t.jsxs)("option",{value:JSON.stringify(e),children:[e.role,": ",e.title]},e.id))]})})}),(0,t.jsx)(o.A,{md:12,children:(0,t.jsx)(h.A,{children:g&&(0,t.jsx)("div",{className:"blockquote invitation-input",style:{fontSize:12},dangerouslySetInnerHTML:{__html:((e="[role]",a="[reference]",t="[title]")=>{let r=k(a),l=s.length>1?"[Talent name]":`${s[0]?.firstName} ${s[0]?.lastName}`;return`
8      <p>Dear <b>${l}</b></p>
9      <p>
10        You have been invited to apply for 
11        <a href=${r} class="font-weight-bold" target="_blank">${e}: ${t}</a> 
12        with reference number ${a} on CraftLyst.
13      </p>
14      <p class="mb-0">
15        Click <a href=${r} class="font-weight-bold" target="_blank">here</a> 
16        to view the project 
17        role or copy and paste the following link in your browser: ${r}.
18      </p>
19    `})(j.role,j.reference,j.title)}})})})]}),(0,t.jsxs)("div",{className:"d-flex justify-content-between mt-2",children:[(0,t.jsx)(m.A,{color:"default",className:"btn-round",onClick:e,children:"Cancel"}),(0,t.jsx)(m.A,{color:"primary",className:"btn-round",disabled:S,onClick:w,children:S?(0,t.jsx)("i",{className:"fa fa-spinner fa-spin"}):(0,t.jsxs)("span",{children:["Invite to apply ",(0,t.jsx)("i",{className:"fa fa-envelope ml-2"})]})})]})]})}},28464:(e,s,a)=>{"use strict";a.d(s,{A:()=>t.A});var t=a(1442)},28505:(e,s,a)=>{"use strict";a.d(s,{A:()=>i});var t=a(95155),r=a(12115),l=a(92313);let i=e=>{let[s,a]=(0,r.useState)(null),i=(0,l.V)(e=>e.talent),n=s?.isBookmarked;(0,r.useEffect)(()=>{null!==i&&void 0===e.talent&&a(e=>({...e,...i})),null===i&&void 0!==e.talent&&a(s=>({...s,...e.talent}))},[i,e.talent]);let c=async t=>{if(t.preventDefault(),s){let r={...s};r.isBookmarked=!r.isBookmarked,a(e=>({...e,...r})),e.toggleBookmarkTalent(t,s)}};return(0,t.jsx)("div",{className:"bookmark-badge",children:(0,t.jsx)("a",{href:"#",onClick:e=>c(e),children:(0,t.jsx)("i",{className:`${n?"fa fa-bookmark white-bookmark":"far fa-bookmark"}`})})})}},28603:(e,s,a)=>{"use strict";a.d(s,{A:()=>n});var t=a(95155);a(12115);var r=a(43791),l=a(46437),i=a(43935);let n=e=>{if(e.show)switch(e.type){case"success":return(0,t.jsx)(r.A,{color:"success",children:(0,t.jsx)("div",{className:"container",children:(0,t.jsxs)(l.A,{children:[(0,t.jsx)(i.A,{lg:1,children:(0,t.jsx)("div",{className:"alert-icon",children:(0,t.jsx)("i",{className:"now-ui-icons ui-2_like"})})}),(0,t.jsx)(i.A,{lg:11,children:e.message})]})})});case"error":return(0,t.jsx)(r.A,{color:"danger",children:(0,t.jsx)("div",{className:"container",children:(0,t.jsxs)(l.A,{children:[(0,t.jsx)(i.A,{lg:1,children:(0,t.jsx)("div",{className:"alert-icon",children:(0,t.jsx)("i",{className:"now-ui-icons travel_info"})})}),(0,t.jsx)(i.A,{lg:11,children:e.message})]})})})}return(0,t.jsx)(t.Fragment,{})}},40538:(e,s,a)=>{"use strict";a.d(s,{AC:()=>g,B:()=>f,D3:()=>N,Ez:()=>p,G9:()=>r,Gy:()=>d,Jz:()=>l,KI:()=>m,Kh:()=>h,OQ:()=>x,TY:()=>o,W1:()=>u,Xs:()=>n,eR:()=>t,en:()=>c,hQ:()=>i,l9:()=>j,lN:()=>v,w3:()=>A});let t="CRAFTLYST_USER_DATA",r="CRAFTLYST_ACCESS_TOKEN",l="CRAFTLYST_REFRESH_TOKEN",i="CRAFTLYST_AUDITION",n="CRAFTLYST_CARD_BACKGROUND_IMAGE",c="VIDEO_AND_AUDIO",o="MONOLOGUE",d="Cast",m="Crew",h="Others",u="Actor",g="mainSkill",p="ROLE_TALENT",x="ROLE_PARTNER",A=2e3,j=0,N=100,f=3e3,v=5},46115:(e,s,a)=>{"use strict";a.d(s,{A:()=>i,z:()=>l});var t,r,l=((t={}).idle="idle",t.loading="loading",t.success="success",t.error="error",t),i=((r={}).full="full",r.grid="grid",r)},55034:(e,s,a)=>{"use strict";a.d(s,{A:()=>d});var t=a(95155),r=a(84230),l=a(40538),i=a(12115),n=a(21135),c=a(8550),o=a(70285);let d=({closeModal:e,selectedTalent:s,setConnectionRequests:a})=>{let[d,m]=(0,i.useState)(`Hi ${s.firstName}. Please add me to your network.`),[h,u]=(0,i.useState)(!1),{user:g}=(0,r.As)(),p=async()=>{try{if(""===d)return void(0,c.H4)(void 0,"Connection message is required.");u(!0);let t={message:d,email:s?.account?.emailAddress||s?.emailAddress,talentId:s?.id};await n.A.requestConnection(t),u(!1),a&&a(e=>[...e,s.id]),(0,c.oc)(`Connection request has been sent to ${s?.firstName}`),e()}catch{(0,c.H4)(void 0,"Connection request was not sent.")}};function x(){return(0,t.jsxs)(o.A,{color:"primary",className:"btn-round",disabled:h,onClick:p,children:["Connect",(0,t.jsx)("i",{className:"fa fa-user-plus ml-2"}),h&&(0,t.jsx)("span",{className:"ml-2",children:(0,t.jsx)("i",{className:"fa fa-spinner-third fa-spin"})})]})}return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"text-left",children:(0,t.jsxs)("h3",{children:["Connect with"," ",(0,t.jsx)("span",{className:"text-primary font-weight-bold",children:s.firstName})," "]})}),(0,t.jsxs)("div",{className:"form-group my-4 text-left",children:[(0,t.jsxs)("div",{className:"d-flex justify-content-between mb-2",children:[(0,t.jsx)("span",{children:"Enter optional note"}),(0,t.jsxs)("span",{className:"text-black-50",children:[d.length,"/300"]})]}),(0,t.jsx)("textarea",{maxLength:300,name:"address",cols:10,rows:4,className:"form-control",value:d,onChange:e=>m(e.target.value)})]}),(0,t.jsxs)("div",{className:"d-flex justify-content-between",children:[(0,t.jsx)(o.A,{className:"btn-round",onClick:e,children:"Cancel"}),(0,t.jsxs)("div",{children:[g?.userRole===l.Ez&&x(),g?.userRole===l.OQ&&x()]})]})]})}},59445:(e,s,a)=>{"use strict";a.d(s,{T:()=>r});var t,r=((t={})[t.CONNECTION=0]="CONNECTION",t[t.INVITATION=1]="INVITATION",t[t.PROFILE_IMAGE=2]="PROFILE_IMAGE",t)},60160:e=>{e.exports={showPassword:"SignUp_showPassword__JgqZM",showClear:"SignUp_showClear__engim"}},61358:(e,s,a)=>{"use strict";a.d(s,{Av:()=>g,BT:()=>u,E:()=>p,FS:()=>c,J0:()=>x,Ui:()=>d,W4:()=>n,WZ:()=>r,Yj:()=>h,Yo:()=>l,ZG:()=>
19A,_X:()=>i,nL:()=>m,xj:()=>o});var t=a(35312);let r=(0,t.J1)`
20  query getAdvertListingDurations {
21    getAdvertListingDurations {
22      id
23      duration
24      amount
25    }
26  }
27`,l=(0,t.J1)`
28  query getAuditionRoleSkills {
29    getAuditionRoleSkills {
30      id
31      category
32      roleSkill
33    }
34  }
35`,i=(0,t.J1)`
36  query getPartnerServices {
37    getPartnerServices {
38      id
39      service
40    }
41  }
42`,n=(0,t.J1)`
43  query getBuilds {
44    getBuilds {
45      id
46      build
47      description
48    }
49  }
50`,c=(0,t.J1)`
51  query listCountries {
52    listCountries {
53      id
54      country
55    }
56  }
57`,o=(0,t.J1)`
58  query listStates($countryId: ID) {
59    listStates(countryId: $countryId) {
60      id
61      state
62    }
63  }
64`,d=(0,t.J1)`
65  query getEthnicities {
66    getEthnicities {
67      id
68      ethnicity
69    }
70  }
71`,m=(0,t.J1)`
72  query getGenders {
73    getGenders {
74      id
75      gender
76    }
77  }
78`,h=(0,t.J1)`
79  query getLanguages {
80    getLanguages {
81      id
82      language
83    }
84  }
85`,u=(0,t.J1)`
86  query getProductionCategories {
87    getProductionCategories {
88      id
89      category
90    }
91  }
92`,g=(0,t.J1)`
93  query getProjectTypes {
94    getProjectTypes {
95      id
96      projectType
97    }
98  }
99`,p=(0,t.J1)`
100  query getRoleCategories {
101    getRoleCategories {
102      id
103      category
104    }
105  }
106`,x=(0,t.J1)`
107  query getRoleLevels {
108    getRoleLevels {
109      id
110      level
111    }
112  }
113`,A=(0,t.J1)`
114  query getSkinColors {
115    getSkinColors {
116      id
117      color
118      description
119    }
120  }
121`},66319:(e,s,a)=>{"use strict";a.d(s,{Y:()=>r});let t=null;async function r(){return t||(t=(async()=>{try{return(await fetch("/api/auth/refresh",{method:"POST",credentials:"include"})).ok}catch{return!1}finally{t=null}})())}},67843:(e,s,a)=>{"use strict";a.d(s,{A:()=>n});var t=a(95155),r=a(12115),l=a(8550),i=a(92330);let n=({password:e,setIsPasswordValid:s})=>{let[a,n]=(0,r.useState)(!1),[c,o]=(0,r.useState)(!1),[d,m]=(0,r.useState)(!1),[h,u]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{e?(n((0,l.Oj)(e,l.Sl.VALIDATION_LENGTH)),o((0,l.Oj)(e,l.Sl.VALIDATION_CASE_UPPER)),m((0,l.Oj)(e,l.Sl.VALIDATION_CASE_LOWER)),u((0,l.Oj
121)(e,l.Sl.VALIDATION_NUMBER))):(u(!1),m(!1),n(!1),o(!1))},[e]),(0,r.useEffect)(()=>{s(a&&c&&d&&h)},[a,c,d,h,s]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"small mb-0 font-weight-bold",children:"Password requirements are:"}),(0,t.jsx)(i.A,{color:`${a?"success":"danger"}`,className:"small",children:"Password must have at least 8 characters"}),(0,t.jsx)(i.A,{color:`${c?"success":"danger"}`,className:"small",children:"Password must have at least 1 uppercase character"}),(0,t.jsx)(i.A,{color:`${d?"success":"danger"}`,className:"small",children:"Password must have at least 1 lowercase character"}),(0,t.jsx)(i.A,{color:`${h?"success":"danger"}`,className:"small",children:"Password must have at least 1 number"})]})}},78629:(e,s,a)=>{"use strict";a.d(s,{DE:()=>n,Zj:()=>i,bz:()=>l,p$:()=>c,zZ:()=>r});var t=a(35312);let r=(0,t.J1)`
122  query getActiveAuditions($params: AuditionRequestParams) {
123    getActiveAuditions(params: $params) {
124      auditions {
125        id
126        title
127        advertPostDate
128        reference
129        status
130        role
131        advertExpiryDate
132        numberOfApplicants
133      }
134      totalPages
135      pageNumber
136      pageNumbers
137      totalAuditions
138    }
139  }
140`,l=(0,t.J1)`
141  query getArchivedAuditions($page: Int = 1) {
142    getArchivedAuditions(page: $page) {
143      auditions {
144        id
145        title
146        advertPostDate
147        reference
148        role
149        advertExpiryDate
150      }
151      totalPages
152      pageNumber
153      pageNumbers
154      totalAuditions
155    }
156  }
157`,i=(0,t.J1)`
158  query getAudition($id: ID) {
159    audition(id: $id) {
160      id
161      title
162      reference
163      minAge
164      maxAge
165      description
166      delta
167      deltaText
168      guildUnionStatus
169      gender
170      auditionStartDate
171      auditionEndDate
172      advertPostDate
173      advertExpiryDate
174      numberOfShortlistingStages
175      advertDuration
176      isPaid
177      isExpired
178      createdAt
179      advertListingDuration {
180        id
181        duration
182        amount
183      }
184      auditionCountry {
185        id
186        country
187      }
188      auditionRoleSkill {
189        id
190        roleSkill
191      }
192      auditionState {
193        id
194        state
195      }
196      ethnicity {
197        id
198        ethnicity
199      }
200      roleCategory {
201        id
202        category
203      }
204      roleLevel {
205        id
206        level
207      }
208      languages {
209        id
210        language
211      }
212      productionCategories {
213        id
214        category
215      }
216    }
217  }
218`,n=(0,t.J1)`
219  query listAllActiveAuditions {
220    listAllActiveAuditions {
221      id
222      role
223      reference
224      title
225    }
226  }
227`,c=(0,t.J1)`
228  query getNumberOfAuditionPosted {
229    getNumberOfAuditionPosted {
230      totalAuditions
231    }
232  }
233`},78950:(e,s,a)=>{"use strict";a.d(s,{A:()=>r,h:()=>t});let t=async(e,s)=>{let a=await new Promise((s,a)=>{let t=new Image;t.addEventListener("load",()=>s(t)),t.addEventListener("error",e=>a(e)),t.setAttribute("crossOrigin","anonymous"),t.src=e}),t=document.createElement("canvas"),r=t.getContext("2d");return r?(t.height=s.height,t.width=s.width,r.drawImage(a,s.x,s.y,s.width,s.height,0,0,s.width,s.height),new Promise(e=>{t.toBlob(s=>{e(URL.createObjectURL(s))},"image/jpeg")})):null},r=e=>null!==e.height&&Number(e.height)>=0&&null!==e.width&&Number(e.width)>=0&&null!==e.x&&Number(e.x)>=0&&null!==e.y&&Number(e.y)>=0},79969:(e,s,a)=>{"use strict";a.d(s,{Ay:()=>l});var t=a(6621);class r{static{this.FORMAT_TYPE_A="D"}static{this.FORMAT_TYPE_B="DD"}static{this.FORMAT_TYPE_C="MMMM yyyy"}static{this.FORMAT_TYPE_D="dd/yyyy"}static{this.FORMAT_TYPE_E="MM/yyyy"}static{this.FORMAT_TYPE_F="MMMM dd, yyyy"}static{this.FORMAT_TYPE_G="yyyy-MMMM-dd"}static timeFromNow(e){return null==e?null:t.c9.fromISO(e).toRelative()}static parseDate(e,s){return e?e instanceof Date?t.c9.fromJSDate(e).toFormat(s):t.c9.fromISO(e).toFormat(s):""}static isAfter(e,s){return e>s}static addDays(e,s){return e instanceof Date?t.c9.fromJSDate(e).plus({days:s}):t.c9.fromISO(e).plus({days:s})}static getFormattedDateString(e){return e?r.parseDate(r.convertStringToDate(e),r.FORMAT_TYPE_A):""}static convertStringToDate(e){if(e instanceof Date)return e;e.includes("T")&&(e=r.parseDate(e,r.FORMAT_TYPE_A));let[s,a,t]=e.split("/");return new Date(`${t}-${a}-${s}`)}static isDateBeforeToday(e){if(!e)return!1;let s=r.convertStringToDate(e),a=new Date;return a.getDate()===s.getDate()&&a.getMonth()===s.getMonth()&&a.getFullYear()===s.getFullYear()||s.getTime()<new Date().getTime()}static isDateToday(e){if(!e)return!1;let s=r.convertStringToDate(e),a=new Date;return a.getDate()===s.getDate()&&a.getMonth()===s.getMonth()&&a.getFullYear()===s.getFullYear()}static duration(e,s,a="days"){let r=e instanceof Date?t.c9.fromJSDate(e):t.c9.fromISO(e);return(s instanceof Date?t.c9.fromJSDate(s):t.c9.fromISO(s)).diff(r,a).toObject()}}let l=r},84230:(e,s,a)=>{"use strict";a.d(s,{OJ:()=>t.OJ,JQ:()=>t.JQ,Jx:()=>t.Jx,As:()=>t.As});var t=a(92308);a(67843),a(7921),a(85811),a(28464)},85811:(e,s,a)=>{"use strict";a.d(s,{A:()=>f});var t=a(95155),r=a(98500),l=a.n(r),i=a(73321),n=a(12115),c=a(28464),o=a(60160),d=a.n(o),m=a(8550),h=a(28603),u=a(12076),g=a(
23373947),p=a(54285),x=a(92330),A=a(23043),j=a(70285),N=a(67843);let f=e=>{let[s,a]=(0,n.useState)(),[r,o]=(0,n.useState)(),[f,v]=(0,n.useState)(!1),[b,y]=(0,n.useState)(!1),[S,k]=(0,n.useState)(),[w,C]=(0,n.useState)(),[I,T]=(0,n.useState)(),[E,_]=(0,n.useState)(!1),O=(0,i.useRouter)(),R=e=>{let t={...s};t[e.target.name]=e.target.value,a(t),T(t.password===t.confirmPassword),C(t.password.length>7)},L=async()=>{_(!0),o({show:!1,type:void 0,message:""});let t=await c.A.registerTalent(s);if(t.isAxiosError){_(!1),o({show:!0,type:"error",message:t.response?.data});return}_(!1),a({emailAddress:"",password:"",confirmPassword:""}),e.onSuccess(!0)};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(h.A,{show:r&&r.show,type:r&&r.type,message:r&&r.message}),(0,t.jsxs)("div",{className:"",children:[(0,t.jsx)("p",{className:"text-center",children:"Showcase your artistry, land dream roles, and connect with industry leaders."}),(0,t.jsxs)(u.A,{className:"form-group",children:[(0,t.jsx)("span",{className:"input-addon-button",children:s&&s.emailAddress&&(0,t.jsx)("div",{className:`show ${d().showClear}`,onClick:()=>{let e={...s};e.emailAddress="",a(e),k(void 0)},children:(0,t.jsx)("i",{className:"fa fa-times"})})}),(0,t.jsx)(g.A,{children:"Email"}),(0,t.jsx)(p.A,{type:"email",name:"email",placeholder:"[email protected]",value:s&&s.emailAddress,onChange:e=>{let t;(t={...s}).emailAddress=e.target.value,a(t),k((0,m.DT)(e.target.value))},valid:S,invalid:void 0!==S&&!S}),void 0!==S&&!S&&(0,t.jsx)(x.A,{color:"danger",children:"Please enter a valid email address"})]}),(0,t.jsxs)(u.A,{className:"form-group",children:[(0,t.jsx)("span",{className:"input-addon-button",children:(0,t.jsx)("div",{className:`show ${d().showPassword}`,onClick:()=>v(!f),children:f?(0,t.jsxs)(t.Fragment,{children:["\xa0",(0,t.jsx)("i",{className:"fa fa-eye"})]}):(0,t.jsxs)(t.Fragment,{children:["\xa0",(0,t.jsx)("i",{className:"fa fa-eye-slash"})]})})}),(0,t.jsx)(A.A,{placement:"right",target:"passwordHint",delay:0,children:(0,t.jsx)("div",{className:"text-left",children:(0,t.jsx)(N.A,{password:s?.password,setIsPasswordValid:C})})}),(0,t.jsxs)(g.A,{id:"passwordHint",children:["Password ",(0,t.jsx)("i",{className:"fa fa-info-circle ml-2"})]}),(0,t.jsx)(p.A,{type:f?"text":"password",name:"password",className:`form-control ${w?"is-valid":"is-invalid"}`,placeholder:"••••••••",value:s&&s.password,onChange:e=>R(e)})]}),(0,t.jsxs)(u.A,{className:"form-group mb-5",children:[(0,t.jsx)("span",{className:"input-addon-button",children:(0,t.jsx)("div",{className:`show ${d().showPassword}`,onClick:()=>y(!b),children:b?(0,t.jsxs)(t.Fragment,{children:["\xa0",(0,t.jsx)("i",{className:"fa fa-eye"})]}):(0,t.jsxs)(t.Fragment,{children:["\xa0",(0,t.jsx)("i",{className:"fa fa-eye-slash"})]})})}),(0,t.jsx)(g.A,{children:"Confirm Password"}),(0,t.jsx)(p.A,{type:b?"text":"password",name:"confirmPassword",className:`form-control ${void 0!==I&&(I?"is-valid":"is-invalid")}`,placeholder:"••••••••",value:s&&s.confirmPassword,onChange:e=>R(e)}),void 0!==I&&!I&&(0,t.jsx)(x.A,{color:"danger",children:"Passwords do not match"})]}),!E&&(0,t.jsx)(j.A,{color:"primary",disabled:!S||!w||!I,onClick:L,size:"lg",className:"btn-round",block:!0,children:"Sign Up"}),E&&(0,t.jsx)(j.A,{color:"primary",disabled:!0,size:"lg",className:"btn-round",block:!0,children:(0,t.jsx)("i",{className:"fa fa-spinner fa-spin"})}),(0,t.jsxs)("p",{className:"small my-3",children:["By clicking Sign Up, you agree to CraftLyst's"," ",(0,t.jsx)(l(),{href:"/terms-of-use",children:"Terms of Use"})," and\xa0",(0,t.jsx)(l(),{href:"/privacy-policy",children:"Privacy Policy"})]}),(0,t.jsx)("hr",{}),(0,t.jsx)("p",{className:"text-center mb-3",children:"Already on CraftLyst?"}),(0,t.jsx)(j.A,{onClick:()=>O.push("/signin"),color:"dark",size:"lg",className:"btn-round",block:!0,children:"Sign In"})]})]})}},88181:(e,s,a)=>{"use strict";a.d(s,{default:()=>z});var t,r,l,i=a(95155),n=a(12115),c=a(73321),o=a(71714),d=a(70285),m=a(46437),h=a(43935),u=a(2767),g=a(27146),p=a(78950),x=a(84230),A=a(8550),j=a(28505),N=a(54921);let f=e=>
233{let[s,a]=(0,n.useState)("/img/placeholder-avatar.png"),{user:t}=(0,x.As)();(0,n.useEffect)(()=>{e.talent&&r()},[e.talent]);let r=async()=>{let s;if(e.talent?.account?.photoPublicId&&e.talent?.account?.photoVersion){s=`${(0,A.mz)()}/v${e.talent.account.photoVersion}/${e.talent.account.photoPublicId}.jpg`;let a={height:e.talent.account.croppedPhotoHeight,width:e.talent.account.croppedPhotoWidth,x:e.talent.account.croppedPhotoX,y:e.talent.account.croppedPhotoY};(0,p.A)(a)&&(s=await (0,p.h)(s,a))}s&&a(s)};return(0,i.jsxs)(i.Fragment,{children:[t?.partner&&(0,i.jsx)("div",{className:"talent-check-block",children:(0,i.jsx)("div",{className:"custom-check",children:(0,i.jsx)(N.A,{children:(0,i.jsxs)("label",{className:"container d-inline",htmlFor:`talent_${e.talent.id}`,children:[(0,i.jsx)("span",{className:"custom-label",children:"Select for invitation"}),(0,i.jsx)("input",{type:"checkbox",className:"",id:`talent_${e.talent.id}`,checked:e.selectedTalents.findIndex(s=>s.id===e.talent.id)>-1,onChange:s=>e.selectTalent(s.target.checked,e.talent)}),(0,i.jsx)("span",{className:"custom-checkmark"})]})})})}),(0,i.jsxs)("div",{className:"talent-card",children:[t&&t?.talent?.id!==e.talent.id&&(0,i.jsx)("div",{className:"talent-bookmark-block",children:(0,i.jsx)(j.A,{talent:e.talent,toggleBookmarkTalent:e.toggleBookmarkTalent})}),(0,i.jsx)("div",{className:"talent-card-img",style:{backgroundImage:`url(${s})`},"aria-label":"Profile image"}),(0,i.jsx)("a",{href:`/talents/view/${e.talent.account.username||e.talent.id}`,className:"talent-card-img-overlay"}),(0,i.jsxs)("div",{className:"talent-details",children:[(0,i.jsx)("p",{className:"talent-name",children:e.talent.firstName&&e.talent.lastName&&`${e.talent?.firstName} ${e.talent?.lastName}`}),(0,i.jsxs)("div",{className:"role-badges-block",children:[e.talent?.professionalAttribute?.mainSkill&&(0,i.jsx)(o.A,{color:"white",className:"text-dark",children:e.talent.professionalAttribute.mainSkill.roleSkill}),e.talent?.professionalAttribute?.otherSkills?.map(e=>(0,i.jsxs)(o.A,{color:"white",className:"text-dark",children:["\xa0",e.roleSkill]},e.id))]})]})]}),t&&(0,i.jsxs)("div",{className:"talent-connect-block",children:[e.talent&&!e.connections?.includes(e.talent.id)&&!e.connectionRequests?.includes(e.talent.id)&&t.talent?.id!==e.talent.id&&(0,i.jsx)("div",{className:"button-container",children:(0,i.jsxs)(d.A,{color:"primary",className:"btn-round",onClick:()=>e.connect(e.talent),children:["Connect",(0,i.jsx)("i",{className:"fa fa-user-plus ml-1"})]})}),e.talent&&e.connections?.includes(e.talent.id)&&!e.connectionRequests?.includes(e.talent.id)&&t.talent?.id!==e.talent.id&&(0,i.jsx)("div",{className:"button-container",children:(0,i.jsxs)(d.A,{color:"primary",className:"btn-round",children:["Message",(0,i.jsx)("i",{className:"fa fa-envelope ml-1"})]})}),e.talent&&!e.connections?.includes(e.talent.id)&&e.connectionRequests?.includes(e.talent.id)&&t.talent?.id!==e.talent.id&&(0,i.jsx)("div",{className:"button-container",children:(0,i.jsxs)(d.A,{color:"primary",className:"btn-round",disabled:!0,children:["Requested",(0,i.jsx)("i",{className:"fa fa-lock ml-1"})]})}),t.partner&&(0,i.jsx)("div",{className:"button-container",children:(0,i.jsxs)(d.A,{color:"dark",className:"btn-round",onClick:()=>e.inviteTalent(e.talent),children:["Invite",(0,i.jsx)("i",{className:"fa fa-envelope ml-1"})]})})]})]})};var v=a(93742),b=a(21135),y=((t={}).ALL="ALL",t.CAST="CAST",t.CREW_AND_OTHERS="CREW_AND_OTHERS",t),S=((r={})[r.AGE=0]="AGE",r[r.AVAILABILITY=1]="AVAILABILITY",r[r.BODY_ARTS=2]="BODY_ARTS",r[r.BUILDS=3]="BUILDS",r[r.COUNTRY=4]="COUNTRY",r[r.CV=5]="CV",r[r.DREADLOCKS=6]="DREADLOCKS",r[r.ETHNICITIES=7]="ETHNICITIES",r[r.GENDERS=8]="GENDERS",r[r.GUILDS=9]="GUILDS",r[r.HEIGHT=10]="HEIGHT",r[r.LANGUAGES=11]="LANGUAGES",r[r.NAME=12]="NAME",r[r.PROFILES_WITH=13]="PROFILES_WITH",r[r.SKILLS=14]="SKILLS",r[r.SKIN_COLORS=15]="SKIN_COLORS",r),k=a(78478),w=a(92462),C=a(18409),I=a(42720),T=a(9862),E=a(20987),_=a(61358);let O=({filterType:e,toggleModal:s,handleFilterTypeChange:a,displaySelectedFilters:t,filterChangeHandler:r,applyFilter:l,clearFilter:c})=>
233{let[o,u]=(0,n.useState)(0),[g,p]=(0,n.useState)(100),{searchResults:x,searchTalents:j,resetTalents:f}=(()=>{let[e,s]=(0,n.useState)([]),a=(0,n.useMemo)(()=>(0,I.debounce)(async e=>{try{let a=(await b.A.searchTalentsByName(e)).data.map(e=>({label:`${e.firstName} ${e.lastName}`,value:`${e.firstName} ${e.lastName}`,firstName:e.firstName,lastName:e.lastName}));s(a)}catch(s){(0,A.H4)(s,`Problem occurred search talents similar to ${e}`)}},1e3),[]);return{searchResults:e,searchTalents:e=>{a(e)},resetTalents:()=>s([])}})(),v=(0,E.I)(_.FS),O=(0,E.I)(_.nL),R=(0,E.I)(_.Yj),L=(0,E.I)(_.Yo),D=e=>{e.length>=3&&j(e)},$=e=>({...e,colors:{...e.colors,primary:"#E93423"}}),P=e=>{let s=e.map(e=>e.value);r(S.NAME,s)},F=e=>{let s=e.map(e=>e.value);r(S.SKILLS,s)},M=e=>{let s=e.map(e=>e.value);r(S.LANGUAGES,s)},U=e=>{let s=e.map(e=>e.value);r(S.COUNTRY,s)};return(0,i.jsx)("div",{className:"filter-container",children:(0,i.jsx)(w.A,{children:(0,i.jsx)(C.A,{children:(0,i.jsxs)("div",{className:"talent-filter-card",children:[(0,i.jsxs)(m.A,{className:"mb-4 align-items-center",children:[(0,i.jsx)(h.A,{lg:6,className:"mb-lg-0 mb-sm-3 mb-2",children:(0,i.jsx)("div",{className:"custom-radio",children:(0,i.jsxs)(N.A,{children:[(0,i.jsxs)("label",{className:"container",children:[(0,i.jsx)("span",{className:"custom-label",children:"All"}),(0,i.jsx)("input",{type:"radio",name:"radio",checked:e===y.ALL,onChange:()=>a(y.ALL)}),(0,i.jsx)("span",{className:"custom-radio"})]}),(0,i.jsxs)("label",{className:"container",children:[(0,i.jsx)("span",{className:"custom-label",children:"Cast"}),(0,i.jsx)("input",{type:"radio",name:"radio",checked:e===y.CAST,onChange:()=>a(y.CAST)}),(0,i.jsx)("span",{className:"custom-radio"})]}),(0,i.jsxs)("label",{className:"container",children:[(0,i.jsx)("span",{className:"custom-label",children:"Crew & Others"}),(0,i.jsx)("input",{type:"radio",name:"radio",checked:e===y.CREW_AND_OTHERS,onChange:()=>a(y.CREW_AND_OTHERS)}),(0,i.jsx)("span",{className:"custom-radio"})]})]})})}),(0,i.jsx)(h.A,{lg:6,children:(0,i.jsxs)(m.A,{className:"justify-content-lg-end",children:[e!==y.ALL&&(0,i.jsx)(h.A,{lg:4,md:4,className:"mb-md-0 mb-sm-3 mb-2",children:(0,i.jsxs)(d.A,{color:"primary",onClick:s,className:"btn-link m-0",block:!0,children:["More Filter",(0,i.jsx)("i",{className:"fa fa-filter ml-2"})]})}),(0,i.jsx)(h.A,{lg:4,md:4,className:"mb-md-0 mb-sm-3 mb-2",children:(0,i.jsx)(d.A,{onClick:()=>{f(),c()},color:"default",className:"btn-round m-0",block:!0,children:"Cancel Filter"})}),(0,i.jsx)(h.A,{lg:4,md:4,children:(0,i.jsx)(d.A,{onClick:()=>l(),color:"primary",className:"btn-round m-0",block:!0,children:"Apply Filter"})})]})})]}),(0,i.jsxs)(m.A,{children:[(e===y.ALL||e===y.CREW_AND_OTHERS)&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(h.A,{lg:"6",children:(0,i.jsx)("div",{className:"form-group",children:(0,i.jsx)(k.Ay,{placeholder:"Search Talent by Name",isMulti:!0,options:x,theme:$,onInputChange:D,onChange:P,loadingMessage:()=>"Loading..."})})}),(0,i.jsx)(h.A,{lg:"6",children:(0,i.jsx)("div",{className:"form-group",children:(0,i.jsx)(k.Ay,{placeholder:"Skills",isMulti:!0,options:L.data?.getAuditionRoleSkills.map(e=>({label:e.roleSkill,value:e.roleSkill})),onChange:F,theme:$})})}),(0,i.jsx)(h.A,{lg:"6",children:(0,i.jsx)("div",{className:"form-group",children:(0,i.jsx)(k.Ay,{placeholder:"Spoken Languages",isMulti:!0,options:R.data?.getLanguages.map(e=>({label:e.language,value:e.language})),onChange:M,theme:$})})}),(0,i.jsx)(h.A,{lg:"6",children:(0,i.jsx)("div",{className:"form-group",children:(0,i.jsx)(k.Ay,{placeholder:"Country",isMulti:!0,options:v.data?.listCountries?.map(e=>({label:e.country,value:e.country})),onChange:U,theme:$})})})]}),e===y.CAST&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(h.A,{lg:"4",children:(0,i.jsx)("div",{className:"form-group",children:(0,i.jsx)(k.Ay,{placeholder:"Search talent name",isMulti:!0,options:x,theme:$,onInputChange:D,onChange:P,loadingMessage:()=>"Loading..."})})}),(0,i.jsx)(h.A,{lg:"4",children:(0,i.jsx)("div",{className:"form-group",children:(0,i.jsx)(k.Ay,{placeholder:"Skills",isMulti:!0,options:L.data?.getAuditionRoleSkills.map(e=>({label:e.roleSkill,value:e.roleSkill})),onChange:F,theme:$})})}),(0,i.jsx)(h.A,{lg:"4",children:(0,i.jsx)("div",{className:"form-group",children:(0,i.jsx)(k.Ay,{placeholder:"Gender",isMulti:!0,options:O.data?.getGenders.map(e=>({label:e.gender,value:e.gender})),onChange:e=>{let s=e.map(e=>e.value);r(S.GENDERS,s)},theme:$})})}),(0,i.jsx)(h.A,{lg:"4",children:(0,i.jsx)("div",{className:"form-group",children:(0,i.jsx)(k.Ay,{placeholder:"Spoken Languages",isMulti:!0,options:R.data?.getLanguages.map(e=>({label:e.language,value:e.language})),onChange:M,theme:$})})}),(0,i.jsx)(h.A,{lg:"4",children:(0,i.jsx)("div",{className:"form-group",children:(0,i.jsx)(k.Ay,{placeholder:"Country",isMulti:!0,options:v.data?.listCountries.map(e=>({label:e.country,value:e.country})),onChange:U,theme:$})})}),(0,i.jsx)(h.A,{lg:"4",children:(0,i.jsxs)("div",{className:"form-group",children:[(0,i.jsxs)("div",{className:"d-flex justify-content-between",children:[(0,i.jsx)("label",{className:"pb-0 mb-0",children:(0,i.jsx)("span",{className:"font-weight-normal",children:"Age Range"})}),(0,i.jsxs)("label",{className:"pb-0 mb-0",children:[(0,i.jsxs)("strong",{className:"text-primary",children:[o||0," - ",g||100]})," ",(0,i.jsx)("span",{children:"yrs"})]})]}),(0,i.jsx)(T.A,{onChange:e=>{u(e[0]),p(e[1]),r(S.AGE,{minAge:e[0],maxAge:e[1]})}})]})})]})]}),t()]})})})})};var R=a(37206),L=a(2885),D=a(35641),$=a(26696),P=a(10095),F=((l={}).PROFILE_PICTURE="PROFILE PICTURE",l.HEADSHOT="HEADSHOT",l.VIDEO="VIDEO",l.MONOLOGUE="MONOLOGUE",l);let M=(0,R.default)(()=>Promise.all([a.e(5106),a.e(5579),a.e(2545),a.e(9534),a.e(4271)]).then(a.bind(a,31569)),{loadableGenerated:{webpack:()=>[31569]},ssr:!1}),U=({modal:e,toggleModal:s,filterType:a,displaySelectedFilters:t,filterChangeHandler:r,applyFilter:l,clearFilter:c})=>
233{let[o,u]=(0,n.useState)(0),[g,p]=(0,n.useState)(4),x=(0,E.I)(_.W4),A=(0,E.I)(_.Ui),j=(0,E.I)(_.nL),N=(0,E.I)(_.ZG),f=e=>({...e,colors:{...e.colors,primary:"#E93423"}}),v=e=>{let s=e.map(e=>e.value);r(S.PROFILES_WITH,s)},b=e=>{r(S.AVAILABILITY,e.target.value)};return(0,i.jsxs)(L.A,{className:"filter-modal",isOpen:e,toggle:s,centered:!0,size:"xl",children:[(0,i.jsx)(D.A,{className:"border-0",toggle:s,children:(0,i.jsx)("span",{className:"modal-title",children:"More filters"})}),(0,i.jsxs)($.A,{className:"talent-filter-card",children:[t("pt-0 pb-3"),(0,i.jsxs)(m.A,{children:[a===y.CAST&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(h.A,{lg:"4",children:(0,i.jsx)("div",{className:"form-group",children:(0,i.jsx)(k.Ay,{placeholder:"Show Profiles with (Assets)",isMulti:!0,options:[{label:"Headshot / Photo",value:F.HEADSHOT},{label:"Monologue",value:F.MONOLOGUE},{label:"Profile Picture",value:F.PROFILE_PICTURE},{label:"Video / Video Reel",value:F.VIDEO}],theme:f,onChange:e=>v(e)})})}),(0,i.jsx)(h.A,{lg:"4",children:(0,i.jsx)("div",{className:"form-group",children:(0,i.jsx)(k.Ay,{placeholder:"Select Body Type / Build",isMulti:!0,options:x.data?.getBuilds.map(e=>({label:e.build,value:e.build})),theme:f,onChange:e=>{let s;return s=e.map(e=>e.value),void r(S.BUILDS,s)}})})}),(0,i.jsx)(h.A,{lg:"4",children:(0,i.jsxs)("div",{className:"form-group",style:{height:40,position:"relative",top:-8},children:[(0,i.jsxs)("div",{className:"d-flex justify-content-between",children:[(0,i.jsx)("label",{className:"pb-0 mb-0",children:"Height"}),(0,i.jsxs)("strong",{className:"text-primary",children:[o||0,"m - ",g||4,"m"]})]}),(0,i.jsx)(T.A,{range:[0,4],min:0,max:4,onChange:e=>{u(e[0]),p(e[1]),r(S.HEIGHT,{minHeight:e[0],maxHeight:e[1]})}})]})}),(0,i.jsx)(h.A,{lg:"4",children:(0,i.jsx)("div",{className:"form-group",children:(0,i.jsx)(k.Ay,{placeholder:"Select Ethnicity",isMulti:!0,options:A.data?.getEthnicities.map(e=>({label:e.ethnicity,value:e.ethnicity})),theme:f,onChange:e=>{let s;return s=e.map(e=>e.value),void r(S.ETHNICITIES,s)}})})}),(0,i.jsx)(h.A,{lg:"4",children:(0,i.jsx)("div",{className:"form-group",children:(0,i.jsx)(k.Ay,{placeholder:"Select Skin Colour",isMulti:!0,options:N.data?.getSkinColors.map(e=>({label:e.color,value:e.color})),theme:f,onChange:e=>{let s;return s=e.map(e=>e.value),void r(S.SKIN_COLORS,s)}})})}),(0,i.jsx)(h.A,{lg:"2",md:6,sm:6,xs:6,children:(0,i.jsxs)("div",{className:"form-group",style:{to
233p:-2},children:[(0,i.jsx)("p",{className:"font-weight-semi mb-1 mr-3 text-nowrap small",children:"Visible Body Arts"}),(0,i.jsxs)("label",{className:"switch mb-0",children:[(0,i.jsx)("input",{type:"checkbox",onChange:e=>{r(S.BODY_ARTS,e.target.checked)}}),(0,i.jsx)("span",{className:"slider round"})]})]})}),(0,i.jsx)(h.A,{lg:"2",md:6,sm:6,xs:6,children:(0,i.jsxs)("div",{className:"form-group",style:{top:-2},children:[(0,i.jsx)("p",{className:"font-weight-semi mb-1 mr-3 small",children:"Dreadlocks"}),(0,i.jsxs)("label",{className:"switch mb-0",children:[(0,i.jsx)("input",{type:"checkbox",onChange:e=>{r(S.DREADLOCKS,e.target.checked)}}),(0,i.jsx)("span",{className:"slider round"})]})]})}),(0,i.jsx)(h.A,{lg:"4",children:(0,i.jsx)("div",{className:"form-group",children:(0,i.jsx)(M,{name:"Select availability",placeholder:"Availability date",className:"form-control datepicker calendar",options:{format:"dd/mm/yyyy"},onChange:b})})})]}),a===y.CREW_AND_OTHERS&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(h.A,{lg:"4",children:(0,i.jsx)("div",{className:"form-group",children:(0,i.jsx)(k.Ay,{placeholder:"Gender",isMulti:!0,options:j.data?.getGenders.map(e=>({label:e.gender,value:e.gender})),theme:f,onChange:e=>{let s=e.map(e=>e.value);r(S.GENDERS,s)}})})}),(0,i.jsx)(h.A,{lg:"4",children:(0,i.jsx)("div",{className:"form-group",children:(0,i.jsx)(k.Ay,{placeholder:"Select Assets",isMulti:!0,options:[{label:"Headshot / Photo",value:F.HEADSHOT},{label:"Monologue",value:F.MONOLOGUE},{label:"Profile Picture",value:F.PROFILE_PICTURE},{label:"Video / Video Reel",value:F.VIDEO}],theme:f,onChange:v})})}),(0,i.jsx)(h.A,{lg:"4",children:(0,i.jsx)("div",{className:"form-group",children:(0,i.jsx)(M,{name:"availability",className:"form-control datepicker calendar",options:{format:"dd/mm/yyyy"},placeholder:"Availability date",onChange:b})})})]})]})]}),(0,i.jsxs)(P.A,{className:"border-0",children:[(0,i.jsxs)("div",{className:"d-flex align-items-center",children:[(0,i.jsxs)("p",{className:"font-weight-semi mb-0 mr-3",children:[(0,i.jsx)("i",{className:"fa fa-file-alt mr-2"}),"CV available?"]}),(0,i.jsxs)("label",{className:"switch mb-0",children:[(0,i.jsx)("input",{type:"checkbox",onChange:e=>{r(S.CV,e.target.checked)}}),(0,i.jsx)("span",{className:"slider round"})]})]}),(0,i.jsxs)("div",{className:"d-flex align-items-center",children:[(0,i.jsx)(d.A,{color:"default",className:"mr-3 btn-round",onClick:c,children:"Clear Filter"})," ",(0,i.jsx)(d.A,{color:"primary",className:"btn-round",onClick:()=>l(),children:"Apply Filter"})]})]})]})};a(13911);let H=({handleApplyFilter:e})=>{let[s,a]=(0,n.useState)(y.ALL),[t,r]=(0,n.useState)([]),[l,d]=(0,n.useState)([]),[u,g]=(0,n.useState)([]),[p,x]=(0,n.useState)([]),[A,j]=(0,n.useState)([]),[N,f]=(0,n.useState)([]),[v,b]=(0,n.useState)([]),[k,w]=(0,n.useState)([]),[C,I]=(0,n.useState)([]),[T,E]=(0,n.useState)(),[_,R]=(0,n.useState)(),[L,D]=(0,n.useState)(),[$,P]=(0,n.useState)(),[F,M]=(0,n.useState)(),[H,G]=(0,n.useState)(),[B,q]=(0,n.useState)(),[V,Y]=(0,n.useState)(),[J,z]=(0,n.useState)(!1),[K,W]=(0,n.useState)(!1),[Z,Q]=(0,n.useState)(!1),X=(0,c.useSearchParams)();(0,n.useEffect)(()=>{if(X&&Array.from(X.keys()).length>0){let e=X.get("filter_type")?String(X.get("filter_type")):void 0;e&&a(e)}},[X]);let ee=()=>z(!J),es=(e,s)=>{switch(e){case S.AGE:M(s.minAge),G(s.maxAge),W(!0);break;case S.HEIGHT:q(s.minHeight),Y(s.maxHeight),Q(!0);break;case S.NAME:r(s);break;case S.COUNTRY:x(s);break;case S.GENDERS:g(s);break;case S.LANGUAGES:j(s);break;case S.SKILLS:d(s);break;case S.PROFILES_WITH:f(s);break;case S.BUILDS:b(s);break;case S.SKIN_COLORS:w(s);break;case S.ETHNICITIES:I(s);break;case S.AVAILABILITY:D(s);break;case S.BODY_ARTS:E(s);break;case S.DREADLOCKS:R(s);break;case S.CV:P(s)}},ea=e=>{switch(e){case S.AGE:M(void 0),G(void 0),W(!1);break;case S.HEIGHT:q(void 0),Y(void 0),Q(!1);break;case S.NAME:r([]);break;case S.COUNTRY:x([]);break;case S.GENDERS:g([]);break;case S.LANGUAGES:j([]);break;case S.SKILLS:d([]);break;case S.PROFILES_WITH:f([]);break;case S.BUILDS:b([]);break;case S.SKIN_COLORS:w([]);break;case S.ETHNICITIES:I([]);break;case S.AVAILABILITY:D(void 0);break;case S.BODY_ARTS:E(!1);break;case S.DREADLOCKS:R(!1);break;case S.CV:P(!1)}},et=a=>{e(t.length>0?t.map(e=>e):void 0,A.length>0?A.map(e=>e):void 0,u.length>0?u.map(e=>e):void 0,l.length>0?l.map(e=>e):void 0,N.length>0?N.map(e=>e):void 0,p.length>0?p.map(e=>e):void 0,v.length>0?v.map(e=>e):void 0,k.length>0?k.map(e=>e):void 0,C.length>0?C.map(e=>e):void 0,L,F,H,B,V,T,_,$,a||s),z(!1)},er=()=>{window.location.href="/talents?page=1&per_page=36&sort_order=recently_updated&"},el=e=>(0,i.jsx)(m.A,{className:`selected-filters ${e}`,children:(0,i.jsxs)(h.A,{lg:12,children:[t.length>0&&(0,i.jsxs)(o.A,{color:"dark",children:[t.map((e,s)=>s===t.length-1?`${e}`:`${e}, `),(0,i.jsx)("i",{className:"fas fa-times-circle ml-2",onClick:()=>ea(S.NAME)})]}),p.length>0&&(0,i.jsxs)(o.A,{color:"dark",children:[p.map((e,s)=>s===p.length-1?`${e}`:`${e}, `),(0,i.jsx)("i",{className:"fas fa-times-circle ml-2",onClick:()=>ea(S.COUNTRY)}
233)]}),A.length>0&&(0,i.jsxs)(o.A,{color:"dark",children:[A.map((e,s)=>s===A.length-1?`${e}`:`${e}, `),(0,i.jsx)("i",{className:"fas fa-times-circle ml-2",onClick:()=>ea(S.LANGUAGES)})]}),l.length>0&&(0,i.jsxs)(o.A,{color:"dark",children:[l.map((e,s)=>s===l.length-1?`${e}`:`${e}, `),(0,i.jsx)("i",{className:"fas fa-times-circle ml-2",onClick:()=>ea(S.SKILLS)})]}),u.length>0&&(0,i.jsxs)(o.A,{color:"dark",children:[u.map((e,s)=>s===u.length-1?`${e}`:`${e}, `),(0,i.jsx)("i",{className:"fas fa-times-circle ml-2",onClick:()=>ea(S.GENDERS)})]}),N.length>0&&(0,i.jsxs)(o.A,{color:"dark",children:[N.map((e,s)=>s===N.length-1?`${e}`:`${e}, `),(0,i.jsx)("i",{className:"fas fa-times-circle ml-2",onClick:()=>ea(S.PROFILES_WITH)})]}),v.length>0&&(0,i.jsxs)(o.A,{color:"dark",children:[v.map((e,s)=>s===v.length-1?`${e}`:`${e}, `),(0,i.jsx)("i",{className:"fas fa-times-circle ml-2",onClick:()=>ea(S.BUILDS)})]}),k.length>0&&(0,i.jsxs)(o.A,{color:"dark",children:[k.map((e,s)=>s===k.length-1?`${e}`:`${e}, `),(0,i.jsx)("i",{className:"fas fa-times-circle ml-2",onClick:()=>ea(S.SKIN_COLORS)})]}),C.length>0&&(0,i.jsxs)(o.A,{color:"dark",children:[C.map((e,s)=>s===C.length-1?`${e}`:`${e}, `),(0,i.jsx)("i",{className:"fas fa-times-circle ml-2",onClick:()=>ea(S.ETHNICITIES)})]}),L&&(0,i.jsxs)(o.A,{color:"dark",children:[`Available from ${L}`,(0,i.jsx)("i",{className:"fas fa-times-circle ml-2",onClick:()=>ea(S.AVAILABILITY)})]}),K&&(0,i.jsxs)(o.A,{color:"dark",children:[`Age from ${F} - ${H}`,(0,i.jsx)("i",{className:"fas fa-times-circle ml-2",onClick:()=>ea(S.AGE)})]}),Z&&(0,i.jsxs)(o.A,{color:"dark",children:[`Height from ${B} - ${V}`,(0,i.jsx)("i",{className:"fas fa-times-circle ml-2",onClick:()=>ea(S.HEIGHT)})]}),T&&(0,i.jsxs)(o.A,{color:"dark",children:["Has Visual Body Arts",(0,i.jsx)("i",{className:"fas fa-times-circle ml-2",onClick:()=>ea(S.BODY_ARTS)})]}),_&&(0,i.jsxs)(o.A,{color:"dark",children:["Has Dreadlocks",(0,i.jsx)("i",{className:"fas fa-times-circle ml-2",onClick:()=>ea(S.DREADLOCKS)})]}),$&&(0,i.jsxs)(o.A,{color:"dark",children:["Has CV",(0,i.jsx)("i",{className:"fas fa-times-circle ml-2",onClick:()=>ea(S.CV)})]})]})});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(O,{filterType:s,toggleModal:ee,handleFilterTypeChange:e=>{a(e),et(e)},displaySelectedFilters:el,filterChangeHandler:es,applyFilter:et,clearFilter:er}),(0,i.jsx)(U,{modal:J,toggleModal:ee,filterType:s,displaySelectedFilters:el,filterChangeHandler:es,applyFilter:et,clearFilter:er})]})};var G=a(59445),B=a(28068),q=a(55034),V=a(79969),Y=a(12895);let J="recently_updated",z=()=>{let[e,s]=(0,n.useState)([]),[a,t]=(0,n.useState)([]),[r,l]=(0,n.useState)(),[p,j]=(0,n.useState)([]),[N,y]=(0,n.useState)([]),[S,k]=(0,n.useState)(0),[w,C]=(0,n.useState)([]),[I,T]=(0,n.use
233State)(0),[E,_]=(0,n.useState)(0),[O,R]=(0,n.useState)(J),[L,D]=(0,n.useState)(36),[$,P]=(0,n.useState)(!1),[F,M]=(0,n.useState)(!0),[U,z]=(0,n.useState)(!1),[K,W]=(0,n.useState)(G.T.CONNECTION),Z=(0,c.useRouter)(),Q=(0,c.useSearchParams)(),{user:X}=(0,x.As)();(0,n.useEffect)(()=>{if(F){let e=Q.get("names")?String(Q.get("names")).split(","):void 0,s=Q.get("languages")?String(Q.get("languages")).split(","):void 0,a=Q.get("genders")?String(Q.get("genders")).split(","):void 0,t=Q.get("skills")?String(Q.get("skills")).split(","):void 0,r=Q.get("profiles")?String(Q.get("profiles")).split(","):void 0,l=Q.get("countries")?String(Q.get("countries")).split(","):void 0,i=Q.get("builds")?String(Q.get("builds")).split(","):void 0,n=Q.get("skin_colors")?String(Q.get("skin_colors")).split(","):void 0,c=Q.get("ethnicities")?String(Q.get("ethnicities")).split(","):void 0,o=Q.get("availability")?V.Ay.convertStringToDate(V.Ay.parseDate(String(Q.get("availability")),V.Ay.FORMAT_TYPE_A)):void 0,d=Q.get("min_age")?Number(Q.get("min_age")):void 0,m=Q.get("max_age")?Number(Q.get("max_age")):void 0,h=Q.get("min_height")?Number(Q.get("min_height")):void 0,u=Q.get("max_height")?Number(Q.get("max_height")):void 0,g=Q.get("visual_body_arts")?!!Q.get("visual_body_arts"):void 0,p=Q.get("dreadlocks")?!!Q.get("dreadlocks"):void 0,x=Q.get("cv")?!!Q.get("cv"):void 0;Q.get("sort_order")?R(String(Q.get("sort_order"))):R(J),Q.get("per_page")?D(Number.parseInt(String(Q.get("per_page")))):D(36),ee(e,s,a,t,r,l,i,n,c,o,d,m,h,u,g,p,x,Q.get("filter_type")?String(Q.get("filter_type")):void 0)}},[Q]);let ee=async(e,a,t,r,l,i,n,c,o,d,m,h,u,g,p,x,N,f,v=1)=>{P(!0);let S=await b.A.fetchTalents(v,L,O,e,r,t,m,h,u,g,i,a,l,n,c,o,p,x,d,N,f);if(S.isAxiosError){P(!1),(0,A.H4)(S);return}let w=S.response.data;s(w.talents),j(w.user?.connections),y(w.user?.connectionRequests),k(w.number),C(w.pageNumbers),T(w.totalPages),_(w.totalElements),P(!1),M(!1),Z.replace(`/talents?${S.params}`)},es=async(e,s,a,t,r,l,i,n,c,o,d,m,h,u,g,p,x,A)=>{await ee(e,s,a,t,r,l,i,n,c,o,d,m,h,u,g,p,x,A)},ea=async e=>{D(e),M(!0);let s=new URL(window.location.href).searchParams;s.set("per_page",e.toString()),Z.replace(`/talents?${s}`)},et=async e=>{R(e),M(!0);let s=new URL(window.location.href).searchParams;s.set("sort_order",e),Z.replace(`/talents?${s}`)},er=async e=>{let s,a,t,r,l,i,n,c,o,d,m,h,u,g,p,x,j,N,f=new URLSearchParams((0,A.DK)(e));k(Number(f.get("page"))),f.has("names")&&(s=f.get("names")?.split(",")),f.has("countries")&&(a=f.get("countries")?.split(",")),f.has("languages")&&(t=f.get("languages")?.split(",")),f.has("skills")&&(r=f.get("skills")?.split(",")),f.has("genders")&&(l=f.get("genders")?.split(",")),f.has("profiles_with")&&(i=f.get("profiles_with")?.split(",")),f.has("builds")&&(n=f.get("builds")?.split(",")),f.has("skin_colors")&&(c=f.get("skin_colors")?.split(",")),f.has("ethnicities")&&(o=f.get("ethnicities")?.split(",")),f.has("availability")&&(d=V.Ay.convertStringToDate(V.Ay.parseDate(String(f.get("availability")),V.Ay.FORMAT_TYPE_A))),f.has("min_age")&&(m=Number(f.get("min_age"))),f.has("max_age")&&(h=Number(f.get("max_age"))),f.has("min_height")&&(u=Number(f.get("min_height"))),f.has("max_height")&&(g=Number(f.get("max_height"))),f.has("visual_body_arts")&&(p=!!f.get("visual_body_arts")),f.has("dreadlocks")&&(x=!!f.get("dreadlocks")),f.has("cv")&&(j=!!f.get("cv")),f.has("filter_type")&&(N=f.get("filter_type")),await ee(s,t,l,r,i,a,n,c,o,d,m,h,u,g,p,x,j,N,Number(f.get("page")))},el=()=>z(!U),ei=(e,s)=>{let r=[...a];e?r.push(s):r=a.filter(e=>
233e.id!==s.id),t(r)},en=e=>{t([e]),W(G.T.INVITATION),el()},ec=(e,s)=>{Y.A.createSocialShare(e,s).share()},eo=async(a,t)=>{a.preventDefault();try{t.isBookmarked=!t.isBookmarked;let a=[...e];a[e.findIndex(e=>e.id===t.id)]=t,s(a),t.isBookmarked?await b.A.bookmarkTalent(t):await b.A.unbookmarkTalent(t)}catch(t){let a=[...e];a.forEach(e=>e.isBookmarked=!1),s(a),(0,A.H4)(t,"Talent could not be bookmarked")}},ed=async e=>{e.preventDefault();try{await b.A.clearBookmarks(),window.location.reload()}catch(e){(0,A.H4)(e,"Bookmarks could not be cleared.")}},em=async e=>{l(e),el(),W(G.T.CONNECTION)};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"main",children:(0,i.jsxs)("div",{className:"container",children:[(0,i.jsxs)("h2",{className:"title text-center",children:["Find ",(0,i.jsx)("span",{children:"Talents"})]}),(0,i.jsx)(H,{handleApplyFilter:es}),(0,i.jsx)("div",{className:"",children:(0,i.jsxs)("div",{children:[$?(0,i.jsx)(u.A,{}):(0,i.jsxs)("div",{className:"page-listing",children:[(0,i.jsxs)("div",{className:"page-listing-filter",children:[(0,i.jsxs)("div",{className:"action-block",children:[(0,i.jsxs)("div",{className:"listing-count",children:[(0,i.jsxs)("h4",{children:[(0,i.jsx)("i",{className:"now-ui-icons users_circle-08 mr-1"})," ","Talents"]}),(0,i.jsx)(o.A,{color:"primary",children:E})]}),X&&(0,i.jsx)(i.Fragment,{children:e?.length>0&&(0,i.jsxs)("div",{className:"action-buttons",children:[X.partner&&(0,i.jsxs)(i.Fragment,{children:[0===a.length?(0,i.jsxs)(d.A,{className:"btn-round mb-md-0 mb-sm-3 mb-2",color:"primary",onClick:()=>t(e),children:["Select All",(0,i.jsx)("i",{className:"fa fa-check-square ml-2"})]}):(0,i.jsxs)(d.A,{className:"btn-round mb-md-0 mb-sm-3 mb-2",color:"primary",onClick:()=>t([]),children:["Deselect All",(0,i.jsx)("i",{className:"fa fa-minus-square ml-2"})]}),(0,i.jsxs)(d.A,{className:"btn-round mb-md-0 mb-sm-3 mb-2",color:"dark",disabled:0===a.length,onClick:()=>{a.length>0&&(W(G.T.INVITATION),el())},children:["Invite to Apply",(0,i.jsx)("i",{className:"fa fa-envelope ml-2"})]})]}),e?.length>0&&(0,i.jsxs)(d.A,{className:"btn-round mb-md-0 mb-sm-3 mb-2",color:"primary",onClick:ed,outline:!0,children:["Clear Bookmarks",(0,i.jsx)("i",{className:"far fa-bookmark ml-2"})]})]})})]}),(0,i.jsxs)("div",{className:"filter-block",children:[(0,i.jsxs)("div",{className:"d-flex align-items-center justify-content-md-end mb-2",children:[(0,i.jsxs)("div",{className:"form-group mb-0",children:[(0,i.jsxs)("label",{className:"mb-0 text-nowrap",children:["Show \xa0"," "]}),(0,i.jsxs)("select",{className:"form-control auto",value:L,onChange:async e=>{await ea(Number.parseInt(e.target.value))},children:[(0,i.jsx)("option",{value:36,children:"36"}),(0,i.jsx)("option",{value:48,children:"48"}),(0,i.jsx)("option",{value:60,children:"60"}),(0,i.jsx)("option",{value:72,children:"72"})]})]}),(0,i.jsx)("label",{className:"mb-0",children:"\xa0 per page "})]}),(0,i.jsx)("div",{children:(0,i.jsx)("form",{className:"d-flex",children:(0,i.jsxs)("div",{className:"form-group mb-0",children:[(0,i.jsxs)("label",{className:"mb-0 text-nowrap",children:["Sort by: \xa0"," "]}),(0,i.jsxs)("select",{className:"form-control",id:"exampleFormControlSelect1",style:{paddingLeft:72},value:O,onChange:e=>et(e.target.value),children:[(0,i.jsx)("option",{value:"fn_a-z",children:"First Name: A-Z"}),(0,i.jsx)("option",{value:"fn_z-a",children:"First Name: Z-A"}),(0,i.jsx)("option",{value:"sn_a-z",children:"Surname: A-Z"}),(0,i.jsx)("option",{value:"sn_z-a",children:"Surname: Z-A"}),(0,i.jsx)("option",{value:"recently_updated",children:"Recently Updated"})]})]})})})]})]}),(0,i.jsx)(m.A,{className:"mb-5 talents-card-listing",children:e?.length>0?e.map(e=>(0,i.jsx)(h.A,{xl:3,lg:4,md:6,className:"mb-4",children:(0,i.jsx)(f,{talent:e,connections:p,connectionRequests:N,handleShare:ec,toggleBookmarkTalent:eo,selectedTalents:a,selectTalent:ei,connect:em,inviteTalent:en})},e.id)):(0,i.jsxs)(h.A,{lg:12,className:"file-not-found my-5",children:[(0,i.jsx)("img",{src:"/img/file-not-found.png",className:"img-fluid",alt:""}),(0,i.jsx)("h3",{className:"",children:"No results matching your query"})]})})]}),!$&&(0,i.jsx)(g.A,{number:S,totalPages:I,pageNumbers:w,navigation:er})]})})]})}),(0,i.jsxs)(v.A,{isOpen:U,toggle:el,centered:!0,size:"md",title:K===G.T.CONNECTION?"Request Connection":"Invite to Apply",children:[K===G.T.INVITATION&&(0,i.jsx)(B.A,{selectedTalents:a,closeModal:()=>{t([]),el()},selectTalent:ei}),K===G.T.CONNECTION&&(0,i.jsx)(q.A,{closeModal:el,selectedTalent:r,setConnectionRequests:y})]})]})}},89129:(e,s,a)=>{"use strict";a.d(s,{A:()=>l});var t,r=((t=r||{})[t.EMAIL=0]="EMAIL",t[t.FACEBOOK=1]="FACEBOOK",t[t.TWITTER=2]="TWITTER",t);let l=r},89138:(e,s,a)=>{Promise.resolve().then(a.bind(a,88181))},92308:(e,s,a)=>{"use strict";a.d(s,{OJ:()=>d,JQ:()=>m,Jx:()=>h,As:()=>u});var t=a(95155),r=a(12115),l=a(40538),i=a(82849);let n=(e,s)=>{i.A.remove(e,s)};var c=a(1442);let o=(0,r.createContext)({}),d=({children:e})=>{let[s,a]=(0,r.useState)(),[i,n]=(0,r.useState)(!0);return(0,r.useEffect)(()=>{try{let e=window.localStorage.getItem(l.eR);e&&"undefined"!==e&&a(JSON.parse(e))}catch{}n(!1)},[]),(0,t.jsx)(o.Provider,{value:{isAuthenticated:!!s,user:s,updateUser:e=>{window.localStorage.setItem(l.eR,JSON.stringify(e)),a(e)},loading:i,logout:()=>m()},children:e})},m=async()=>{try{await fetch("/api/auth/logout",{method:"POST"}).catch(()=>null),await c.A.logout().catch(()=>null)}catch{}h(),window.location.href="/signin"},h=()=>{n(l.G9),n(l.Jz),window.localStorage.removeItem(l.G9),window.localStorage.removeItem(l.Jz),window.localStorage.removeItem(l.eR),window.localStorage.removeItem(l.hQ)},u=()=>(0,r.useContext)(o)},92313:(e,s,a)=>{"use strict";a.d(s,{V:()=>c});var t=a(1934),r=a(46115),l=a(21135),i=a(95553);class n{static{this.saveOnboarding=async e=>{try{return await i.A.post("/talent/profile/onboarding",e)}catch(e){return e}}}}let c=(0,t.v)((e,s)=>({talent:null,status:r.z.idle,error:null,isSubmitted:!1,isDeleted:!1,resetState:()=>e({isSubmitted:!1,isDeleted:!1,status:r.z.idle,error:null}),setTalent:s=>e({talent:s}),fetchTalent:async s=>{e({status:r.z.loading,error:null});try{let a=await l.A.getTalent(s);if(a?.isAxiosError)throw Error(a.message);let t=a?.data||a,i=t?.talent??t;return i&&(void 0!==t.connections&&void 0===i.connections&&(i.connections=t.connections),void 0!==t.connectionRequests&&void 0===i.connectionRequests&&(i.connectionRequests=t.connectionRequests)),e({talent:i,status:r.z.success}),i}catch(s){return e({status:r.z.error,error:s?.message||"Failed to fetch talent"}),null}},saveOnboarding:async a=>{e({status:r.z.loading,error:null});try{let t=await n.saveOnboarding(a);if(t?.isAxiosError)throw Error(t.message);let l=t?.data||t,i=s().talent;return e({status:r.z.success,talent:{...i,...l.talent},isSubmitted:!0}),l}catch(s){throw e({status:r.z.error,error:s?.message||"Failed to save onboarding"}),s}}}))},93742:(e,s,a)=>{"use strict";a.d(s,{A:()=>n});var t=a(95155);a(12115);var r=a(2885),l=a(35641),i=a(26696);let n=({title:e,isOpen:s,toggle:a,backdrop:n=!0,size:c="xl",centered:o=!0,children:d})=>(0,t.jsxs)(r.A,{isOpen:s,backdrop:n,toggle:a,size:c,centered:o,children:[(0,t.jsx)(l.A,{toggle:a,children:e}),(0,t.jsx)(i.A,{children:d})]})},95553:(e,s,a)=>{"use strict";a.d(s,{A:()=>n,g:()=>i});var t=a(94716),r=a(66319);let l=(0,a(11187).h)(),i=t.A.create({baseURL:l,withCredentials:!0,headers:{"Content-Type":"application/json"}});i.interceptors.request.use(e=>e,e=>Promise.reject(e)),i.interceptors.response.use(e=>e,async e=>{let s=e.config;if(!s)return Promise.reject(e);
233if(e.response?.status===401&&!s._retry){if(s._retry=!0,await (0,r.Y)())return i(s);window.location.href="/signin"}return Promise.reject(e)});let n=i}},e=>{e.O(0,[6981,6414,3708,8320,953,4935,8500,9136,6634,4716,6206,7110,2431,7710,4478,6086,1820,5344,5932,4027,7294,6633,2486,9336,9793,8441,9637,7358],()=>e(e.s=89138)),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.