PageSourceSearch

https://theright.fit/8879.01b18307d70c7b02.js

js theright.fit collected 2026-09-24 11:54:32 UTC 65,274 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunktrf_frontend=self.webpackChunktrf_frontend||[]).push([[8879],{96297(e,t,a){function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}a.d(t,{A:()=>s})},94656(e,t,a){a.d(t,{A:()=>i});a(96540);var s=a(3433),n=a(74848);const i=({myJobDetail:e,classes:t})=>{const a=(0,s.Zp)(),i=!e.private&&(0,n.jsx)("button",{type:"button",title:"Go To Search",className:null!=t?t:"btn btn-trf-outline-black btn-rounded mr-2",onClick:()=>{(()=>{let t="Any",s="Any",n="Any",i="Any",l="Any",r="Any",o="Any";t=e.profession.name,e.tags&&e.tags.length>0&&(s=e.tags.map(e=>e.name).join(", "));n=e.attributes.filter(e=>"gender"===e.name&&"Any"!==e.value).map(e=>e.value).join(", ");const[c,d]=e.age.split("-").map(Number),m=e.platform_requirements.map(e=>e.platform).join(", "),p=e.platform_requirements.reduce((e,t)=>t.minimum_followers<e?t.minimum_followers:e,1/0);e.open_to_applicants&&(o=e.open_to_applicants.includes("Global")?"Any":e.open_to_applicants.includes("Singapore")?"Singapore":e.open_to_applicants.includes("New Zealand")?"New Zealand":e.open_to_applicants.includes("United States")?"United States":"Australia"),i=e.attributes.filter(e=>"ethnicity"===e.name&&"Any"!==e.value).map(e=>e.value).join(", "),l=e.attributes.filter(e=>"hair_color"===e.name&&"Any"!==e.value).map(e=>e.value).join(", ");const u=e.attributes.filter(e=>"height"===e.name&&null!==e.value).map(e=>null!==e.value?parseInt(e.value):null).filter(e=>null!==e).sort((e,t)=>null!==e&&null!==t?e-t:0),h=u.length>0?u[0]:"Any",_=u.length>0?u[u.length-1]:"Any";r=e.attributes.filter(e=>"build"===e.name&&"Any"!==e.value).map(e=>e.value).join(", "),a(`/search/talent/?professions=${t}&subcategory=${s}&country=${o}&gender=${n}&minimum_age=${c}&maximum_age=${d}&plateform=${m}&minimum_follwowers=${p}&counry=${o}&ethnicity=${i}&hair_color=${l}&minimum_height=${h}&maximum_height=${_}&build=${r}`)})()},children:"Go To Search"});return(0,n.jsx)(n.Fragment,{children:i})}},21606(e,t,a){a.d(t,{A:()=>s});const s=()=>null},69831(e,t,a){a.r(t),a.d(t,{default:()=>M});var s=a(3433),n=a(86984),i=a(40364),l=a(96540),r=a(55868),o=a(71468),c=a(74848);const d=()=>{const{page:e}=(0,s.g)(),t=(0,s.Zp)(),a=(0,o.d4)(e=>e.JobStepsDetailsReducer.stepsCompleted),n=a=>{t((0,r.sM)(e,a))};return(0,c.jsx)("div",{className:"cast-talent-form",children:(0,c.jsx)("div",{className:"cast-talent-form__wrapp",children:(0,c.jsxs)("ul",{className:"cast-talent-steps",children:[(0,c.jsxs)("li",{className:`${(0,r.QX)(["details",e])?"active-page":""}\n           ${(0,r.cr)(["details",a],e)?"active-step":""}`,children:[(0,c.jsxs)("div",{className:"cast-talent-steps__wrapp",onClick:()=>(0,r.cr)(["details",a],e)?n("details"):"",children:[(0,c.jsx)("span",{className:"cast-talent-steps__circle",children:"1"}),(0,c.jsx)("span",{className:"cast-talent-steps__name",children:"Job details"})]}),(0,c.jsx)("div",{className:"cast-talent-steps__divider"})]}),(0,c.jsxs)("li",{className:`${(0,r.QX)(["who",e])?"active-page":""}\n           ${(0,r.cr)(["who",a],e)?"active-step":""}`,children:[(0,c.jsxs)("div",{className:"cast-talent-steps__wrapp",onClick:()=>(0,r.cr)(["who",a],e)?n("who"):"",children:[(0,c.jsx)("span",{className:"cast-talent-steps__circle",children:"2"}),(0,c.jsx)("span",{className:"cast-talent-steps__name",children:"Who"})]}),(0,c.jsx)("div",{className:"cast-talent-steps__divider"})]}),(0,c.jsxs)("li",{className:`${(0,r.QX)(["budget",e])?"active-page":""}\n            ${(0,r.cr)(["budget",a],e)?"active-step":""}`,children:[(0,c.jsxs)("div",{className:"cast-talent-steps__wrapp",onClick:()=>(0,r.cr)(["budget",a],e)?n("budget"):"",children:[(0,c.jsx)("span",{className:"cast-talent-steps__circle",children:"3"}),(0,c.jsx)("span",{className:"cast-talent-steps__name",children:"Budget"})]}),(0,c.jsx)("div",{className:"cast-talent-steps__divider"})]}),(0,c.jsx)("li",{className:`${(0,r.QX)(["preview",e])?"active-page":""}\n            ${(0,r.cr)(["preview",a],e)?"active-step":""}`,children:(0,c.jsxs)("div",{className:"cast-talent-steps__wrapp",onClick:()=>(0,r.cr)(["preview",a],e)?n("preview"):"",children:[(0,c.jsx)("span",{className:"cast-talent-steps__circle",children:"4"}),(0,c.jsx)("span",{className:"cast-talent-steps__name",children:"Preview & Submit"})]})})]})})})},m=({positionApproved:e,loading:t,saveAndExit:a})=>{const{page:n}=(0,s.g)(),l=new Set(["details","preview","submitted"]),r=i.c.CDN_PATH;return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("header",{className:"cast-talent-header",children:[(0,c.jsx)("a",{href:"/",className:"cast-talent-header__logo",children:(0,c.jsx)("img",{src:`${r}/svg/logo-black.svg`,alt:"The Right Fit"})}),(0,c.jsxs)("div",{className:"cast-talent-header__box",children:[(0,c.jsx)("h1",{children:"Find Content Creator"}),e&&(0,c.jsx)("button",{className:"cast-talent-header__save "+(l.has(n)?"active":""),type:"button",onClick:a,children:"SAVE AND EXIT"})]})]}),(0,c.jsx)(d,{})]})};var p=a(2543),u=a(8773),h=a(59186),_=a(64864),v=a(71929),x=a(94829),b=a(85383),j=a(49785),g=a(57546),f=a(25814),y=a(49376),N=a(12476),w=a(63545);const A=["gender","children","marital_status","sexuality","trans_gender","diet","pets","covid_vaccination"],$=()=>{var e,t,a,n;const{handleSubmit:d,register:$,setValue:k,trigger:C,watch:S,getValues:O,setError:E,formState:{errors:T}}=(0,j.mN)(),F=(0,o.d4)(e=>e.userDetail.data),[D,P]=(0,l.useState)(!1),[q,J]=(0,l.useState)(),[M,Z]=(0,l.useState)(!1),{id:R}=(0,s.g)(),L=(0,s.Zp)(),U=i.c.CDN_PATH,[I,z]=(0,l.useState)({positionApproved:!1,loading:!1}),B=(0,o.d4)(e=>e.postJobAttributesList.data),G=(0,o.d4)(e=>e.postJobTagsList.data),[W,H]=(0,l.useState)({minimum_age:null,maximum_age:null,ideal_candidate:"",tags:[],attributes:{gender:[],marital_status:[],pets:[],sexuality:[],trans_gender:[],children:[],diet:[],covid_vaccination:[]}
1,step:void 0,profession_id:"",id:""}),{fetchData:V}=(0,v.A)(),Q=(0,o.wA)(),Y=async e=>{const{name:t,value:a}=e.target;H(e=>Object.assign({},e,{[t]:a})),k(t,a),await C(e.target.name)};(0,l.useEffect)(()=>{(0,N.eG)();(async()=>{Z(!0);try{const e=await V((0,x.z$)(R));H(t=>Object.assign({},t,{minimum_age:e.data.data.minimum_age,maximum_age:e.data.data.maximum_age,ideal_candidate:e.data.data.ideal_candidate,tags:e.data.data.tags.map(e=>e.id)})),Object.keys(e.data.data).forEach(t=>{if("tags"===t){e.data.data.tags.map(e=>e.id.toString()).forEach((e,t)=>{k(`tags[${t}]`,e)})}else if("attributes"===t){const t=e.data.data.attributes;A.forEach(e=>{const a=t.filter(t=>t.name===e);if(a.length>0){const t=a.map(e=>e.id.toString());k(`attributes.${e}`,t)}})}else k(t,e.data.data[t],{shouldDirty:!0})});const{data:t}=e.data;if(t){const e=await V((0,x.cf)(R));z(Object.assign({},I,{loading:M,positionApproved:null!==e.data.data.approved_at})),Q((0,y.Zv)({stepsCompleted:e.data.data[0]})),Z(!1)}}catch(e){console.error(e),Z(!1)}})()},[]);const{mutate:X}=(0,g.U)(x.u9,{onSuccess:async e=>{(0,w.s)("client","position.job-who.set",F,R),Z(!1),L((0,r.sM)("/who","/budget"))},catch(e){console.error(e)}},R),{mutate:K,isPending:ee}=(0,g.U)(e=>(0,x.df)(R,e),{onSuccess:()=>{L("/projects")}}),te=e=>{const t=Object.values(B).find(t=>t.name===e);if(t&&t.values){const a=S(`attributes.${e}`)||[];if(Array.isArray(a)&&a.length>0){return t.values.filter(e=>a.includes(null==e?void 0:e.value))}if(null!==a){return t.values.filter(e=>a===(null==e?void 0:e.value))}}return[]},ae=(e,t=null,a=!1)=>{const s=Object.values(B).find(t=>t.name===e);if(s&&s.values){var n;t=null!==t?t:s.displayName;const i=Object.keys({}).indexOf(e),l=a?{required:`This ${s.displayName} is required`}:{};return(0,c.jsxs)("div",{children:[(0,c.jsx)("label",{children:t}),(0,c.jsx)(u.Ay,Object.assign({},$(`attributes.${e}`,l),{className:"trf-react-select-container trf-react-select-show-clear-container trf-react-select-rounded",classNamePrefix:"trf-react-select",options:s.values,onChange:(t,a)=>se(t,e),isMulti:!0,placeholder:`Filter By ${s.displayName}`,value:te(e),isOptionDisabled:t=>((e,t)=>{const a=Object.values(B).find(t=>t.name===e),s=["Any","Rather not say"],n=a.values.filter(e=>s.includes(e.label)).map(e=>e.value)||[],i=S(`attributes.${e}`)||[];if(Array.isArray(i)&&i.length>0){const e=n[0];if(i.includes(e)&&t.value!==e)return!0}else{const e=n[0];if(i===e&&t.value!==e)return!0}return!1})(e,t),isClearable:!1})),T.attributes&&T.attributes[e]&&(0,c.jsx)("div",{className:"error-message",children:null==(n=T.attributes[e])?void 0:n.message})]},`${e}-${i}`)}return null},se=(e,t)=>{E(`attributes.${t}`,{});const a=e.some(e=>"Any"===e.label),s=e.some(e=>"Rather not say"===e.label);if(a){const a=e.filter(e=>"Any"===e.label).map(e=>e.value);k(`attributes.${t}`,a)}else if(s){const a=e.filter(e=>"Rather not say"===e.label).map(e=>e.value);k(`attributes.${t}`,a)}else k(`attributes.${t}`,(0,p.map)(e,"value"))},ne=(e,t,a,s)=>{k(`attributes.${a}`,e?[e.value]:[])};return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(m,Object.assign({},I,{saveAndExit:()=>{K(Object.assign({},O(),{step:2}))}})),(0,c.jsx)("div",{className:"cast-talent-content cast-talent-who",children:(0,c.jsx)("div",{className:"cast-talent-form-content",children:(0,c.jsxs)("form",{onSubmit:d(e=>{Z(!0),X(Object.assign({},e,{step:2}))}),className:"trf-job-post-form",children:[(0,c.jsx)(b.A,{loading:M||ee,children:(0,c.jsxs)("div",{className:"cast-talent-form-content__container",children:[(0,c.jsx)(h.A,{level:2,children:"Add more details",classNames:"step_heading"}),(0,c.jsxs)("div",{className:"cast-talent-form-content__box box_desctiption",children:[(0,c.jsx)("label",{children:"Describe the type of Content Creators you want to work with"}),(0,c.jsx)("textarea",Object.assign({value:W.ideal_candidate,onFocus:()=>{return e="ideal_candidate",void J(t=>{const a=Object.assign({},t);return delete a[e],a});var e}},$("ideal_candidate",{required:"Description is required.",pattern:{value:r.UB,message:"Please avoid entering personal information."}}),{placeholder:"E.g. Foodie content-creators with high Australian audience, who is vegan",onChange:Y})),T.ideal_candidate&&(0,c.jsx)("div",{className:"error-message ",children:null==(e=T.ideal_candidate)?void 0:e.message}),q&&(0,c.jsx)(f.A,{errorField:"ideal_candidate",errors:q})]}),(0,c.jsxs)("div",{className:"mt-4",children:[(0,c.jsx)("h2",{children:"What category of creator is best suited?"}),(0,c.jsx)("p",{"_ngcontent-sqd-c5":"",className:"description",children:"Select the categories of creators that are most applicable to your campaign"}),(0,c.jsx)("div",{className:"cast-talent-form-content__box category_selection mb-0",children:(()=>{const e=[];return Object.values(G).forEach(t=>{e.push((0,c.jsx)("div",{className:"cast-talent-form-content__checkbox-wrapp mr-0",children:(0,c.jsxs)("label",{htmlFor:"tags-item-"+t.id,children:[(0,c.jsx)("input",Object.assign({},$("tags",{required:"Areas of expertise is required."}),{type:"checkbox",id:"tags-item-"+t.id,value:t.id,checked:S("tags")&&S("tags").includes(t.id)})),(0,c.jsx)("span",{children:(0,c.jsx)("img",{src:`${U}/images/cast-talent-form/check-1.svg`,alt:t.name})}),t.name]})},t.id))}),(0,c.jsx)(c.Fragment,{children:e})})()}),T.tags&&(0,c.jsx)("div",{className:"error-message",children:null==(t=T.tags)?void 0:t.message})]}),(0,c.jsx)("h2",{className:"mt-4",children:"Add more details"}),(0,c.jsxs)("div",{className:"cast-talent-form-content__box cast-talent-form-content__box_row",children:[(0,c.jsxs)("div",{className:"cast-talent-form-content__items-container",children:[(0,c.jsx)("label",{children:"Age range"}),(0,c.jsxs)("div",{className:"cast-talent-form-content__items",children:[(0,c.jsxs)("div",{children:[(0,c.jsx)(_.p,Object.assign({id:"minimum_age"},$("minimum_age",{required:"Min Age is required.",min:{value:16,message:"Minimum age should be at least 16 years old."}}),{value:W.minimum_age,onChange:Y,type:"number"})),T.minimum_age&&(0,c.jsx)("div",{className:"error-message ",children:null==(a=T.minimum_age)?void 0:a.message}),q&&(0,c.jsx)(f.A,{errorField:"minimum_age",errors:q})]}),(0,c.jsx)("div",{children:(0,c.jsx)("span",{children:"To"})}),(0,c.jsxs)("div",{children:[(0,c.jsx)(_.p,Object.assign({id:"maximum_age"},$("maximum_age",{required:"Max Age is required.",max:{value:100,message:"Maximum age should be less than or equal to 100."},validate:e=>{const t=parseInt(O("minimum_age"),10);if(null===e)return!0;const a="number"==typeof e?e:parseFloat(e);return!(!isNaN(t)&&!isNaN(a)&&Number.isInteger(a))||(a>=t||"Maximum age should be greater than or equal to the minimum age.")}}),{onChange:Y,type:"number"})),T.maximum_age&&(0,c.jsx)("div",{className:"error-message ",children:null==(n=T.maximum_age)?void 0:n.message}),q&&(0,c.jsx)(f.A,{errorField:"maximum_age",errors:q})]})]})]}),(0,c.jsx)("div",{className:"cast-talent-form-content__items-container cast-talent-form-content__box_select",children:ae("gender",null,!0)})]}),(0,c.jsxs)("div",{className:"cast-talent-form-content__box-selects",children:[D&&(0,c.jsxs)("div",{children:[(0,c.jsxs)("div",{className:" cast-talent-form-content__box cast-talent-form-content__box_row ",children:[(0,c.jsx)("div",{className:" cast-talent-form-content__items-container cast-talent-form-content__box_select ",children:ae("children")}),(0,c.jsx)("div",{className:" cast-talent-form-content__items-container cast-talent-form-content__box_select ",children:ae("marital_status")})]}),(0,c.jsxs)("div",{className:" cast-talent-form-content__box cast-talent-form-content__box_row ",children:[(0,c.jsx)("div",{className:" cast-talent-form-content__items-container cast-talent-form-content__box_select ",children:ae("sexuality")}),(0,c.jsx)("div",{className:" cast-talent-form-content__items-container cast-talent-form-content__box_select ",children:ae("trans_gender")})]}),(0,c.jsxs)("div",{className:" cast-talent-form-content__box cast-talent-form-content__box_row ",children:[(0,c.jsx)("div",{className:" cast-talent-form-content__items-container cast-talent-form-content__box_select ",children:ae("diet")}),(0,c.jsx)("div",{className:" cast-talent-form-content__items-container cast-talent-form-content__box_select ",children:ae("pets")})]}),(0,c.jsx)("div",{className:" cast-talent-form-content__box cast-talent-form-content__box_width cast-talent-form-content__box_row ",children:(0,c.jsx)("div",{className:" cast-talent-form-content__items-container cast-talent-form-content__box_select ",children:((e,t=null)=>{const a=Object.values(B).find(t=>t.name===e);if(a&&a.values){var s;
1t=null!==t?t:a.displayName;const n=Object.keys({}).indexOf(e);return(0,c.jsxs)("div",{children:[(0,c.jsx)("label",{children:t}),(0,c.jsx)(u.Ay,Object.assign({},$(`attributes.${e}`),{className:"trf-react-select-container trf-react-select-single-container trf-react-select-rounded",classNamePrefix:"trf-react-select",options:a.values,onChange:(t,a)=>ne(t,a,e,n),isMulti:!1,placeholder:`Filter By ${a.displayName}`,isClearable:!0,value:te(e)})),T.attributes&&T.attributes[e]&&(0,c.jsx)("div",{className:"error-message",children:null==(s=T.attributes[e])?void 0:s.message})]},`${e}-${n}`)}})("covid_vaccination")})})]}),(0,c.jsxs)("button",{className:"cast-talent-form-content__btn-toggle",type:"button",onClick:()=>P(!D),children:[D?"Hide attributes":"Advanced attributes"," "]})]})]})}),(0,c.jsxs)("div",{className:"cast-talent-form-content__box-btn",children:[(0,c.jsx)("button",{className:"cast-talent-form-content__back",type:"button",onClick:()=>L((0,r.sM)("/who","/details")),children:"back"}),(0,c.jsx)("button",{className:"cast-talent-form-content__save",type:"submit",disabled:M||ee,children:"save & continue"})]})]})})})]})};var k=a(59118),C=a(21606);const S=[{label:"Global",value:"1"},{label:"Australia wide",value:"2"},{label:"Singapore",value:"3"},{label:"New South Wales",value:"4"},{label:"South Australia",value:"5"},{label:"Victoria",value:"6"},{label:"Western Australia",value:"7"},{label:"Queensland",value:"8"},{label:"Australian Capital Territory",value:"9"},{label:"Tasmania",value:"10"},{label:"Northern Territory",value:"11"},{label:"New Zealand",value:"12"},{label:"United States",value:"13"}],O=()=>{var e,t,a,n,d;const{handleSubmit:m,register:A,setValue:$,trigger:O,setError:E,formState:{errors:T}}=(0,j.mN)({mode:"onChange"}),F=i.c.CDN_PATH,D=(0,o.d4)(e=>e.userDetail.data),P=(0,l.useRef)(null),[q,J]=(0,l.useState)([]),[M,Z]=(0,l.useState)([]),[R,L]=(0,l.useState)(),[U,I]=(0,l.useState)({id:"",profession_id:"",is_real_person:0,title:"",brief:"",open_to_applicants:[],is_image_needed:!1,image_requirement:"",payment_type:"",payment_term:"",files:[]}),[z,B]=(0,l.useState)(!1),[G,W]=(0,l.useState)(U.is_image_needed),{fetchData:H}=(0,v.A)(),V=(0,s.Zp)(),{id:Q}=(0,s.g)();let Y="";const X=(0,o.d4)(e=>e.postJobSelection.professionid),K=(0,o.d4)(e=>e.postJobSelection.isrealperson),ee=e=>new Promise((t,a)=>{const s=new FileReader;s.onload=e=>{var a;t(null==(a=e.target)?void 0:a.result)},s.onerror=t=>{console.error(`FileReader failed on file ${e.name}.`),a(null)},e||(console.error("No file to read."),a(null)),s.readAsDataURL(e)}),te=async e=>{const{name:t,value:a,type:s}=e.target;"file"===s&&(e=>{if(e.target.files){const t=0,a=e.target.files[t];if(a.size<=1073741824){a.inQueue=!0,ee(a).then(e=>{a.view=e,J(e=>[...e,a])}).catch(e=>{console.error(`FileReader failed on file ${a.name}.`)});const e=q.length-1;le({index:e,file:a})}}})(e),I(e=>Object.assign({},e,{[t]:a})),$(t,a),await O(e.target.name)}
1,ae=(0,o.wA)(),se=async e=>{L(t=>{const a=Object.assign({},t);return delete a[e],a})};(0,l.useEffect)(()=>{(0,N.eG)();(async()=>{B(!0);try{const e=await H((0,x.uB)(Q)),{data:t}=e.data;if(I(Object.assign({},e.data.data)),Z(e.data.data.files),W(0!==e.data.data.image_needed&&null!==e.data.data.image_needed),Object.keys(e.data.data).forEach(t=>{$(t,e.data.data[t],{shouldDirty:!0})}),ae((0,y._W)({jobSelected:t.profession,isrealperson:t.is_real_person,professionid:t.profession_id,pageActive:[]})),t){const e=await H((0,x.cf)(Q));ae((0,y.Zv)({stepsCompleted:e.data.data[0]})),B(!1)}}catch(e){console.error(e),B(!1)}})()},[]);const{mutate:ne,isPending:ie}=(0,g.U)(x.X6,{onSuccess:async e=>{(0,w.s)("client","position.job-details.set",D,Q),V((0,r.sM)("/details","/who")),B(!1)},onError(e){console.error(e),L(e)}},Q),{mutate:le}=(0,g.U)(x.Kj,{onSuccess:async e=>{(0,w.s)("client","position.job_details.attachment.set",D,Q),J([]),Z(e.data.data)},catch(e){console.error(e)}},Q),{mutate:re}=(0,g.U)(x.eA,{onSuccess:()=>{const e=[...M],t=e.findIndex(e=>e.id===Y);-1!==t&&(e.splice(t,1),Z(e))}});return(0,c.jsxs)("div",{className:"cast-talent-content cast-talent-details",children:[(0,c.jsx)("div",{className:"cast-talent-form-content",children:(0,c.jsx)("div",{className:"preloader-wrapper",children:(0,c.jsxs)("form",{onSubmit:m(e=>{var t;const a={payment_type:"credit_card",payment_term:null,profession_id:X,id:Q,is_real_person:K,open_to_applicants:null!=(t=U.open_to_applicants)?t:[],is_image_needed:!1===G?0:1,image_requirement:G?e.image_requirement:"",files:null!=M?M:[]};ne(Object.assign({},e,a))}),className:"trf-job-post-form",children:[(0,c.jsxs)(b.A,{loading:z||ie,children:[(0,c.jsxs)("div",{className:"cast-talent-form-content__block-about",children:[(0,c.jsx)(h.A,{level:2,children:"Tell us about the job"}),(0,c.jsx)("p",{className:"description",children:"Describe what the job entails. The more details, the better applicants you'll receive!"}),(0,c.jsxs)("div",{className:"cast-talent-form-content__box box_title",children:[(0,c.jsx)("label",{children:"What's the headline of your job?"}),(0,c.jsx)(_.p,Object.assign({},A("title",{required:"Please enter a headline for your job",pattern:{value:r.UB,message:"Please avoid entering personal information."}}),{name:"title",value:U.title,id:"title",onFocus:()=>se("title"),onChange:te,placeholder:"E.g. Mummy influencer with kids under 5 for Instagram promotion",className:""})),T.title&&(0,c.jsx)("div",{className:"error-message ",children:null==(e=T.title)?void 0:e.message}),R&&(0,c.jsx)(f.A,{errorField:"title",errors:R})]}),(0,c.jsxs)("div",{className:"cast-talent-form-content__box box_desctiption",children:[(0,c.jsx)("label",{children:"Describe the brand and the job the creator is to make content for."}),(0,c.jsx)("textarea",Object.assign({value:U.brief,placeholder:"Creators do not post content, they make content for your brand. If you want content posted, please post a job for an influencer"},A("brief",{required:"Please enter a description about the job",pattern:{value:r.UB,message:"Please avoid entering personal information."}}),{onFocus:()=>se("brief"),onChange:te})),T.brief&&(0,c.jsx)("div",{className:"error-message ",children:null==(t=T.brief)?void 0:t.message}),R&&(0,c.jsx)(f.A,{errorField:"brief",errors:R})]}),(0,c.jsxs)("div",{className:"cast-talent-form-content__img-add",children:[(0,c.jsx)(h.A,{level:3,children:"Add a photo or reference media to help you get the right applicants!"}),(0,c.jsxs)("div",{className:"cast-talent-form-content__img-box",children:[q.length>0&&q.map((e,t)=>(0,c.jsxs)("div",{className:"cast-talent-form-content__img-add-box",children:[(0,r.wu)(e)&&(0,c.jsx)("img",{src:e.view?String(e.view):"",alt:"img"}),!(0,r.wu)(e)&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("div",{className:"file-block",children:[e.name.substring(0,10),"..."]}),(0,c.jsxs)("div",{className:"file-title",children:[e.name.substring(0,10),"..."]})]})]})),M.length>0&&M.map((e,t)=>(0,c.jsxs)("div",{className:"cast-talent-form-content__img-add-box",children:[(0,c.jsx)("button",{type:"button",onClick:()=>(e=>{Y=e.id,re({id:Q,file:e})})(e),children:"x"}),(0,r.wu)(e)&&(0,c.jsx)("img",{src:e.url?String(e.url):"",alt:"img"}),!(0,r.wu)(e)&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("div",{className:"file-block",children:[e.name.substring(0,10),"..."]}),(0,c.jsxs)("div",{className:"file-title",children:[e.name.substring(0,10),"..."]})]})]})),M.length<5&&(0,c.jsx)("div",{className:"cast-talent-form-content__label-wrapp",children:(0,c.jsx)("label",{onClick:()=>{P.current&&P.current.click()},children:(0,c.jsx)("i",{className:"fa fa-paperclip"})})}),(0,c.jsx)("input",Object.assign({id:"photoUser"},A("files",{required:!1}),{type:"file",ref:P,accept:".xlsx, .xls, image/x-png,image/jpeg, .doc, .docx, .txt, .pdf, .csv",onChange:te}))]})]}),(0,c.jsx)("p",{className:"max-file-size-msg",children:"Max file size 1GB, for each item, jobs with photos, mood boards or scripts tend to get higher applications"})]}),(0,c.jsxs)("div",{className:"cast-talent-form-content__block-where",children:[(0,c.jsx)(h.A,{level:2,children:"Where would you like to receive applications from?"}),(0,c.jsx)("p",{children:"Choose from what parts of the world candidates can apply from to the job posting"}),(0,c.jsxs)("div",{className:"cast-talent-form-content__box cast-talent-form-content__box_select",children:[(0,c.jsx)("label",{children:"Location(s)"}),(0,c.jsx)(u.Ay,Object.assign({},A("open_to_applicants",{required:"Please select location"}),{options:S,className:"trf-react-select-container trf-react-select-single-container trf-react-select-rounded",classNamePrefix:"trf-react-select",isMulti:!0,placeholder:"Select location",menuPlacement:"auto",value:(()=>{var e;const t=null!=(e=U.open_to_applicants)?e:[];return(0,p.filter)(S,e=>(0,p.includes)(t,e.label))})(),isOptionDisabled:e=>U.open_to_applicants.includes("Global")&&"Global"!==e.label,onChange:e=>{(e=>{E("open_to_applicants",{}),e.some(e=>
1"Global"===e.label)?(I(e=>Object.assign({},e,{open_to_applicants:["Global"]})),$("open_to_applicants",["Global"])):(I(t=>Object.assign({},t,{open_to_applicants:(0,p.map)(e,"label")})),$("open_to_applicants",(0,p.map)(e,"label")))})(e)}})),(0,c.jsx)("p",{children:"You can select multiple locations if needed"}),(null==(a=T.open_to_applicants)?void 0:a.message)&&(0,c.jsx)("div",{className:"error-message",children:null==(n=T.open_to_applicants)?void 0:n.message})]})]}),(0,c.jsxs)("div",{className:"cast-talent-form-content__block-additional",children:[(0,c.jsx)(h.A,{level:2,children:"Should applicants attach additional media?"}),(0,c.jsx)("p",{children:"All talent have a range of photos available on their profile, as well as links to view their instagram images."}),(0,c.jsx)("label",{children:"Should talent provide additional materials on application ?"}),(0,c.jsxs)("div",{className:"cast-talent-form-content__box cast-talent-form-content__box_row",children:[(0,c.jsx)("div",{className:"cast-talent-form-content__checkbox-wrapp",children:(0,c.jsxs)("label",{children:[(0,c.jsx)("input",{type:"radio",onChange:()=>W(!1),value:"0",checked:!G,id:"checkNo",name:"portfolioOption"}),(0,c.jsx)("span",{children:(0,c.jsx)("img",{src:`${F}/images/cast-talent-form/check-1.svg`,alt:"User"})}),"No, their portfolio on theright.fit is enough for now"]})}),(0,c.jsx)("div",{className:"cast-talent-form-content__checkbox-wrapp",children:(0,c.jsxs)("label",{children:[(0,c.jsx)("input",{type:"radio",onChange:()=>W(!0),value:"1",checked:G,id:"checkYes",name:"portfolioOption"}),(0,c.jsx)("span",{children:(0,c.jsx)("img",{src:`${F}/images/cast-talent-form/check-1.svg`,alt:"User"})}),"Yes"]})})]}),G&&(0,c.jsxs)("div",{className:"cast-talent-form-content__box",children:[(0,c.jsx)("label",{children:"Describe the specific photo or video casting you need from each applicant"}),(0,c.jsx)("textarea",Object.assign({placeholder:"E.g. Please upload a photo of you with your dog, clearly showing the dogs current size"},A("image_requirement",{required:"Please fill this field.",pattern:{value:r.UB,message:"Please avoid entering personal information."}}))),T.image_requirement&&(0,c.jsx)("div",{className:"error-message ",children:null==(d=T.image_requirement)?void 0:d.message}),R&&(0,c.jsx)(f.A,{errorField:"hours_per_day",errors:R})]})]})]}),(0,c.jsx)("div",{className:"cast-talent-form-content__box-btn d-flex justify-content-end",children:(0,c.jsx)("button",{className:"cast-talent-form-content__save",type:"submit",disabled:z||ie,children:"save & continue"})})]})})}),(0,c.jsxs)("div",{className:"cast-talent-content__wrapper",children:[(0,c.jsx)(k.A,{}),(0,c.jsx)(C.A,{})]})]})};var E=a(28454),T=a(68089);const F=()=>{const e=i.c.CDN_PATH;return(0,c.jsx)("div",{className:"cast-talent-content__wrapper",children:(0,c.jsxs)("div",{className:"cast-talent-tips",children:[(0,c.jsxs)("div",{className:"cast-talent-tips__title",children:[(0,c.jsx)("h3",{children:"Tips"}),(0,c.jsx)("div",{className:"cast-talent-tips__img-wrapp",children:(0,c.jsx)("img",{src:e+"/images/cast-talent-form/lamp.svg",alt:"lamp"})})]}),(0,c.jsxs)("div",{className:"cast-talent-tips__text",children:[(0,c.jsx)("img",{src:e+"/images/cast-talent-form/round.svg",alt:"round"}),(0,c.jsx)("span",{children:"Influencers are paid \u2018per post\u2019 and \u2018per story\u2019, and they can quote you specifically for the deliverables you need."})]}),(0,c.jsxs)("div",{className:"cast-talent-tips__text",children:[(0,c.jsx)("img",{src:e+"/images/cast-talent-form/round.svg",alt:"round"}),(0,c.jsx)("span",{children:"Unsure of costs? Post your job and let the influencers pitch to you with their offering and rates. You can negotiate directly in the live chat here."})]}),(0,c.jsxs)("div",{className:"cast-talent-tips__text",children:[(0,c.jsx)("img",{src:e+"/images/cast-talent-form/round.svg",alt:"round"}),(0,c.jsx)("span",{children:"theright.fit charges a 20% fee on bookings, only when the job is successfully completed. Our safe escrow payment means you only pay when the job is complete."})]})]})})},D=[{value:"0",label:"Payable on Receipt"},{value:"7",label:"7 Days"},{value:"14",label:"14 Days"},{value:"30",label:"30 Days"}],P=[{name:"nano",value:"1",label:"Nano creator",budget:"$95 - $300"}
1,{name:"Micro",value:"2",label:"Micro creator",budget:"$300 - $600"},{name:"Mid-tier",value:"3",label:"Mid-tier",budget:"$600 - $800"},{name:"select-all",value:"6",label:"I am open to any influencer",followers:"",budget:""}],q=()=>{var e,t,a,n,d;const p=i.c.CDN_PATH,_=(0,o.d4)(e=>e.userDetail.data),{handleSubmit:g,register:A,watch:$,setValue:k,formState:{errors:C},setError:S,control:O,getValues:q}=(0,j.mN)({mode:"onChange"}),{fetchData:J}=(0,v.A)(),[M,Z]=(0,l.useState)(!1),R=(0,s.Zp)(),{id:L}=(0,s.g)(),U=(0,o.wA)(),[I,z]=(0,l.useState)({positionApproved:!1,loading:!1}),[B,G]=(0,l.useState)();(0,l.useEffect)(()=>{(0,N.eG)();(async()=>{const e=await J((0,x.cf)(L));U((0,y.Zv)({stepsCompleted:e.data.data[0]}))})(),(async()=>{Z(!0);try{const e=await(0,x.NO)(L);if((e=>{if(Object.keys(e).forEach(t=>{k("rate_type_ids"===t?"rate_type_ids":"additional_info"===t?"additional_info":t,e[t])}),e.deliverables.length>0)e.deliverables.forEach((e,t)=>{k(`deliverables.${t}.deliverable`,e.deliverable),k(`deliverables.${t}.quantity`,e.quantity)});else{const e=0;k(`deliverables.${e}.deliverable`,""),k(`deliverables.${e}.quantity`,"")}})(e.data),e){const e=await J((0,x.cf)(L));z(Object.assign({},I,{loading:M,positionApproved:null!==e.data.data.approved_at})),U((0,y.Zv)({stepsCompleted:e.data.data[0]})),Z(!1)}}catch(e){console.error("Error fetching data:",e)}finally{Z(!1)}})()},[]);const{mutate:W,isPending:H}=(0,E.n)({mutationFn:e=>(0,T.N)(L,e),onSuccess:()=>{const e=window.location.pathname.replace("/budget","/preview");R(e)},onError(e){console.error(e),G(e)}}),{mutate:V,isPending:Q}=(0,E.n)({mutationFn:e=>(0,x.df)(L,e),onSuccess:()=>{(0,w.s)("client","position.job-budget.set",_,L),R("/projects")}}),Y=(0,l.useRef)(null),{fields:X,append:K,remove:ee}=(0,j.jz)({control:O,name:"deliverables"}),te=async e=>{G(t=>{const a=Object.assign({},t);return delete a[e],a})},ae=$();return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(m,Object.assign({},I,{saveAndExit:()=>{V(Object.assign({},q(),{step:4}))}})),(0,c.jsxs)("div",{className:"cast-talent-content cast-influencers-budget",children:[(0,c.jsx)("div",{className:"cast-talent-form-content",children:(0,c.jsx)("div",{className:"preloader-wrapper",children:(0,c.jsxs)("form",{onSubmit:g(e=>{0===Object.keys(C).length&&W(e)}),className:"trf-job-post-form",children:[(0,c.jsx)(b.A,{loading:M||H||Q,children:(0,c.jsx)("div",{className:"cast-talent-form-content__container",children:(0,c.jsxs)("div",{className:"cast-talent-form-content__block-about",children:[(0,c.jsx)(h.A,{level:2,children:"I\u2019d like to receive quotes from:"}),(0,c.jsx)("p",{className:"description mt-4",children:"Select the type of creator you would like to receive quotes from. You can select as many options as best suits your budget and job."}),C.rate_type_ids&&!Y.current&&(0,c.jsx)("div",{ref:e=>{C.rate_type_ids&&!Y.current&&(Y.current=e)}}),(0,c.jsxs)("ul",{className:"cast-talent-form-content__budget-list",children:[(0,c.jsxs)("li",{children:[(0,c.jsx)("h4",{children:"Content Creator Type"}),(0,c.jsx)("h4",{children:"Ballpark rate per photo/video"})]}),(()=>{const e=[];for(let t=0;t<P.length;t++)e.push((0,c.jsxs)("li",{children:[(0,c.jsx)("div",{className:"cast-talent-form-content__checkbox-wrapp "+("6"===P[t].value?"width-100":""),children:(0,c.jsxs)("label",{htmlFor:`${P[t].name}`,children:[(0,c.jsx)("input",Object.assign({type:"checkbox",id:P[t].name,value:P[t].value},A("rate_type_ids",{required:"Please choose atleast one option"}),{onChange:e=>{const t=q("rate_type_ids"),a=e.target.value,s=e.target.checked;if("6"===a)k("rate_type_ids",s?[a]:[]);else{const e=t.filter(e=>"6"!==e);if(s)e.push(a);else{const t=e.indexOf(a);-1!==t&&e.splice(t,1)}k("rate_type_ids",e)}},disabled:"6"!==P[t].value&&ae&&ae.rate_type_ids&&ae.rate_type_ids.includes("6")})),(0,c.jsx)("span",{className:"6"!=P[t].value&&ae&&ae.rate_type_ids&&null!=ae&&ae.rate_type_ids.includes("6")?"disabled":"",children:(0,c.jsx)("img",{src:`${p}/images/cast-talent-form/check-1.svg`,alt:"User"})}),P[t].label]})}),"6"!=P[t].value&&(0,c.jsx)("p",{children:P[t].budget})]},t));return(0,c.jsx)(c.Fragment,{children:e})})()]}),C.rate_type_ids&&(0,c.jsx)("div",{className:"error-message mb-4",children:null==(e=C.rate_type_ids)?void 0:e.message}),(0,c.jsx)(h.A,{level:2,children:"Specify the type and amount of content you want created?"}),(0,c.jsx)("ul",{className:" cast-talent-form-content__box cast-talent-form-content__box_social ",children:X.map((e,t)=>{var a,s,n,i,l,r;return(0,c.jsxs)("li",{children:[C.deliverables&&C.deliverables[t]&&(null==(a=C.deliverables[t])?void 0:a.deliverable)&&!Y.current&&(0,c.jsx)("div",{ref:e=>{var a;C.deliverables&&C.deliverables[t]&&null!=(a=C.deliverables[t])&&a.deliverable&&!Y.current&&(Y.current=e)}}),(0,c.jsxs)("div",{className:" cast-talent-form-content__items-container cast-talent-form-content__box_select ",children:[(0,c.jsx)("label",{children:"Content Type"}),(0,c.jsx)("input",Object.assign({type:"text",placeholder:"E.g. 10x static images for social media",onFocus:()=>te(`deliverables.${t}.deliverable`)},A(`deliverables.${t}.deliverable`,{required:"Content Type is required"}))),B&&(0,c.jsx)(f.A,{errorField:`deliverables.${t}.deliverable`,errors:B}),C.deliverables&&C.deliverables[t]&&(null==(s=C.deliverables[t])?void 0:s.deliverable)&&(0,c.jsx)("div",{className:"error-message",children:null==(n=C.deliverables[t])||null==(n=n.deliverable)?void 0:n.message})]}),(0,c.jsxs)("div",{className:"cast-talent-form-content__items-container",children:[C.deliverables&&C.deliverables[t]&&(null==(i=C.deliverables[t])?void 0:i.quantity)&&!Y.current&&(0,c.jsx)("div",{ref:e=>{var a;C.deliverables&&C.deliverables[t]&&null!=(a=C.deliverables[t])&&a.quantity&&!Y.current&&(Y.current=e)}}),(0,c.jsxs)("div",{className:" cast-talent-form-content__items d-flex justify-content-end align-items-center ",children:[(0,c.jsxs)("div",{children:[(0,c.jsx)("label",{children:"Quantity"}),(0,c.jsx)("input",Object.assign({type:"text"},A(`deliverables.${t}.quantity`,{required:"Quantity is required",pattern:{value:/^[0-9]*$/,message:"Please enter a positive number"},min:{value:1,message:"Quantity must be at least 1."}}))),C.deliverables&&C.deliverables[t]&&(null==(l=C.deliverables[t])?void 0:l.quantity)&&(0,c.jsx)("div",{className:"error-message",children:null==(r=C.deliverables[t])||null==(r=r.quantity)?void 0:r.message})]}),t>
10&&(0,c.jsx)("i",{className:"fa fa-trash",onClick:()=>ee(t)})]})]})]},e.id)})}),X.length<=9&&(0,c.jsx)("button",{className:"cast-talent-form-content__add-btn",type:"button",onClick:()=>K({deliverable:"",quantity:""}),children:"+ Add More"}),(0,c.jsxs)("div",{className:"cast-talent-form-content__box box_desctiption",children:[(0,c.jsx)("label",{children:"Mentions & Hash Tags"}),(0,c.jsx)("textarea",Object.assign({onFocus:()=>te("hash_tags")},A("hash_tags",{pattern:{value:r.UB,message:"Please avoid entering personal information."}}),{name:"hash_tags",placeholder:" Any additional info to help the influencers quotes correctly?"})),B&&(0,c.jsx)(f.A,{errorField:"hash_tags",errors:B}),C.hash_tags&&(0,c.jsx)("div",{className:"error-message mt-2",children:null==(t=C.hash_tags)?void 0:t.message})]}),(0,c.jsxs)("div",{className:"cast-talent-form-content__box box_desctiption",children:[(0,c.jsx)("label",{children:"Additional Info"}),(0,c.jsx)("textarea",Object.assign({onFocus:()=>te("additional_info")},A("additional_info",{pattern:{value:r.UB,message:"Please avoid entering personal information."}}),{name:"additional_info",placeholder:"List the brand instagram handle and campaign hashtags"})),B&&(0,c.jsx)(f.A,{errorField:"additional_info",errors:B}),(0,c.jsx)("span",{className:"placehoder",children:"This will only be displayed to the talent you book on the job"}),C.additional_info&&(0,c.jsx)("div",{className:"error-message mt-2",children:null==(a=C.additional_info)?void 0:a.message})]}),_.is_invoice_allowed&&(0,c.jsxs)("div",{children:[C.payment_type&&!Y.current&&(0,c.jsx)("div",{ref:e=>{C.payment_type&&!Y.current&&(Y.current=e)}}),(0,c.jsxs)("div",{className:"cast-talent-form-content__payment",children:[(0,c.jsx)("h3",{children:"Payment Type"}),(0,c.jsxs)("div",{className:"cast-talent-form-content__checkbox mb-0",children:[(0,c.jsxs)("label",{htmlFor:"payment-credit-card",children:[(0,c.jsx)("input",Object.assign({},A("payment_type",{required:"Payment Type is required"}),{name:"payment_type",type:"radio",id:"payment-credit-card",value:"credit_card"})),(0,c.jsx)("span",{children:(0,c.jsx)("i",{className:"fas fa-circle"})}),"Credit card"]}),(0,c.jsxs)("label",{htmlFor:"payment-invoice",children:[(0,c.jsx)("input",Object.assign({},A("payment_type",{required:"Payment Type is required"}),{name:"payment_type",type:"radio",id:"payment-invoice",value:"invoice"})),(0,c.jsx)("span",{children:(0,c.jsx)("i",{className:"fas fa-circle"})})," ","Invoice"]})]}),C.payment_type&&(0,c.jsx)("div",{className:"error-message mt-2",children:null==(n=C.payment_type)?void 0:n.message})]}),ae&&"invoice"===ae.payment_type&&(0,c.jsxs)(c.Fragment,{children:[C.payment_term&&!Y.current&&(0,c.jsx)("div",{ref:e=>{C.payment_term&&!Y.current&&(Y.current=e)}}),(0,c.jsxs)("div",{className:"cast-talent-form-content__payment",children:[(0,c.jsxs)("div",{className:"cast-talent-form-content__items-container cast-talent-form-content__box_select",children:[(0,c.jsx)("label",{children:"Payment Term"}),(0,c.jsxs)("div",{className:"form-group",children:[(0,c.jsx)(u.Ay,Object.assign({},A("payment_term",{required:"Payment Term is required"}),{className:"trf-react-select-container trf-react-select-single-container trf-react-select-rounded",classNamePrefix:"trf-react-select",options:D,isMulti:!1,onChange:(e,t)=>
1{S("payment_term",{});const a=null!=e&&e.value?e.value:"";k("payment_term",a)},value:D.find(e=>{var t;return e.value===(null==(t=ae.payment_term)?void 0:t.toString())})})),(0,c.jsx)("p",{className:"mb-0",children:"Let talent know the payment terms for this job, e.g. 30 days"}),C.payment_term&&(0,c.jsx)("div",{className:"error-message mt-2",children:null==(d=C.payment_term)?void 0:d.message})]})]}),(0,c.jsx)("p",{className:"error-message error"})]})]})]})]})})}),(0,c.jsxs)("div",{className:"cast-talent-form-content__box-btn",children:[(0,c.jsx)("button",{className:"cast-talent-form-content__back",onClick:()=>R((0,r.sM)("/budget","/who")),type:"button",children:"back"}),(0,c.jsx)("button",{className:"cast-talent-form-content__save",type:"submit",onClick:()=>{setTimeout(()=>{Y.current&&Y.current.scrollIntoView({behavior:"smooth",block:"start"})},100),Y.current=null},children:"save & continue"})]})]})})}),(0,c.jsx)("div",{className:"cast-talent-content__wrapper",children:(0,c.jsx)(F,{})})]})]})},J=()=>{const e=(0,o.d4)(e=>e.userDetail.data),[t,a]=(0,l.useState)(!1),[n,i]=(0,l.useState)(),[d,m]=(0,l.useState)(),u=(0,o.wA)(),h=(0,s.Zp)(),{id:_}=(0,s.g)(),{fetchData:j}=(0,v.A)();(0,l.useEffect)(()=>{(async()=>{a(!0);try{const t=await(0,x.YT)(_);(0,w.s)("client","position.job-preview.shown",e,_);const a=t.data;i(a)}catch(t){console.error("Error fetching data:",t)}finally{a(!1)}})(),(async()=>{const e=await j((0,x.cf)(_));u((0,y.Zv)({stepsCompleted:e.data.data[0]}))})()},[]);const{mutate:g,isPending:f}=(0,E.n)({mutationFn:()=>(0,x.Dc)(_),onError:e=>{m(e),console.log(d)},onSuccess:()=>{(0,w.s)("client","position.submitted-for-approval",e,_,null==n?void 0:n.raw_budget);const t=window.location.pathname.replace("/preview","/submitted");h(t)}}),N=()=>{g()},A=()=>{const e=window.location.pathname.replace("/preview","/details");h(e)},$=n&&n.attributes.reduce((e,t)=>(e[t.display_name]||(e[t.display_name]=[]),e[t.display_name].push(t.value),e),{}),k=()=>{h("/projects")};return(0,c.jsx)("div",{className:"cast-talent-content talent-preview-form",children:(0,c.jsx)("div",{className:"cast-talent-form-content",children:(0,c.jsxs)("div",{className:"preloader-wrapper",children:[n&&(0,c.jsxs)("div",{className:"cast-talent-form-content__box-btn top",children:[(0,c.jsx)("button",{className:"cast-talent-form-content__back",onClick:A,type:"button",children:"Edit Job"}),n&&!n.submitted_at||n&&!(0,p.isEmpty)(n.declined_at)&&(0,c.jsx)("button",{className:"cast-talent-form-content__save",type:"submit",disabled:t||f,onClick:N,children:"Submit for approval"}),n&&n.submitted_at&&(0,p.isEmpty)(n.declined_at)&&(0,c.jsx)("button",{className:"cast-talent-form-content__save",type:"submit",onClick:k,children:"Done"})]}),(0,c.jsx)(b.A,{loading:t||f,children:n&&(0,c.jsxs)("div",{className:"cast-talent-form-content__container",children:[(0,c.jsx)("h2",{children:"Preview"}),(0,c.jsx)("p",{children:"You can still go back and fine tune anything you\u2019ve missed. Once you\u2019re happy with everything, hit the \u2018Submit\u2019 button!"}),(0,c.jsx)("h3",{children:null==n?void 0:n.title}),(0,c.jsxs)("div",{className:"cast-talent-form-content__details",children:[(0,c.jsx)("label",{children:"Job Details"}),(()=>{const e=n&&n.brief?n.brief.split("\n"):null;return e?(0,c.jsx)("div",{children:e.map((e,t)=>(0,c.jsxs)(l.Fragment,{children:[e,(0,c.jsx)("br",{})]},t))}):null})(),(0,c.jsx)("label",{children:"Ideal Candidate"}),(0,c.jsx)("p",{children:null==n?void 0:n.ideal_candidate}),n.image_requirement&&(0,c.jsxs)("div",{children:[(0,c.jsx)("label",{children:"Additional Materials"}),(0,c.jsx)("p",{children:n.image_requirement})]}),(0,c.jsxs)("div",{className:"mb-4",children:[(0,c.jsx)("div",{className:"row",children:(0,c.jsx)("div",{className:"col-6",children:(0,c.jsx)("label",{children:"Age"})})}),(0,c.jsx)("div",{className:"row",children:(0,c.jsx)("div",{className:"col-6",children:(0,c.jsx)("span",{children:n.age})})})]}),(0,c.jsxs)("div",{className:"mb-4",children:[(0,c.jsxs)("div",{className:"row",children:[(0,c.jsx)("div",{className:"col-6",children:(0,c.jsx)("label",{children:"Budget"})}),(0,c.jsx)("div",{className:"col-6",children:(0,c.jsx)("label",{children:"Location"})})]}),(0,c.jsxs)("div",{className:"row",children:[(0,c.jsx)("div",{className:"col-6",children:(0,c.jsx)("span",{children:n.rate_types_for_display&&n.rate_types_for_display.length>0&&n.rate_types_for_display.map(e=>null!==e.displayText?`${e.name}: ${e.displayText}`:e.name).join(", ")})}),(0,c.jsx)("div",{className:"col-6",children:(0,c.jsx)("span",{children:n.open_to_applicants&&n.open_to_applicants.join(", ")})})]})]}),(0,c.jsxs)("div",{className:"mb-4",children:[(0,c.jsx)("div",{className:"row",children:(0,c.jsx)("div",{className:"col-6",children:(0,c.jsx)("label",{children:"Deliverables"})})}),(0,c.jsx)("div",{className:"row",children:(0,c.jsx)("div",{className:"col-6",children:n.deliverables.map((e,t)=>(0,c.jsx)("p",{className:"no-margin m-0",children:(0,c.jsxs)("span",{children:[e.deliverable," - ",(0,r.X9)(e.quantity)]})},t))})})]}),(null==n?void 0:n.hash_tags)&&(0,c.jsxs)("div",{children:[(0,c.jsx)("label",{children:"Mentions & Hash Tags"}),(0,c.jsx)("p",{children:null==n?void 0:n.hash_tags})]}),(null==n?void 0:n.additional_info)&&(0,c.jsxs)("div",{children:[(0,c.jsx)("label",{children:"Additional Info"}),(0,c.jsx)("p",{children:null==n?void 0:n.additional_info})]}),"invoice"===(null==n?void 0:n.payment_type)&&(0,c.jsxs)("div",{className:"mb-4",children:[(0,c.jsx)("div",{className:"row",children:(0,c.jsx)("div",{className:"col-6",children:(0,c.jsx)("label",{children:"Payment Type"})})}),(0,c.jsx)("div",{className:"row",children:(0,c.jsx)("div",{className:"col-6",children:(0,c.jsx)("span",{children:0===(null==n?void 0:n.payment_term)?(0,c.jsx)("span",{children:"Invoiced - Payable on Receipt"}):(0,c.jsxs)("span",{children:["Invoiced - Payment in ",null==n?void 0:n.payment_term," days"]})})})})]}),n.attributes.length>0&&(0,c.jsxs)("div",{className:"mb-4",children:[(0,c.jsx)("div",{className:"row",children:(0,c.jsx)("div",{className:"col-12",children:(0,c.jsx)("label",{children:"Attributes"})})}),Object.entries($).map(([e,t])=>(0,c.jsxs)("div",{className:"row",children:[(0,c.jsxs)("div",{className:"col-6",children:[(0,c.jsx)("span",{children:e})," "]}),(0,c.jsxs)("div",{className:"col-6",children:[(0,c.jsx)("span",{children:t.join(", ")})," "]})]},e))]}),n.usage.usage.length>0&&(0,c.jsx)("label",{children:"Usage Type"}),(0,c.jsx)("ul",{className:"cast-talent-form-content__tags",children:n.usage.usage.map(e=>(0,c.jsx)("li",{children:e},e))}),(0,c.jsxs)("div",{className:"cast-talent-form-content__answers",children:[n.usage.usage_timeframe&&(0,c.jsxs)("div",{className:"cast-talent-form-content__answers-box",children:[(0,c.jsx)("label",{children:"How long will the content be used for?"}),(0,c.jsx)("p",{children:n.usage.usage_timeframe})]}),n.usage.usage_location&&(0,c.jsxs)("div",{className:"cast-talent-form-content__answers-box cast-talent-form-content__answers-box_right",children:[(0,c.jsx)("label",{children:"Which countries will content be used in?"}),(0,c.jsx)("p",{children:n.usage.usage_location})]})]}),(0,c.jsx)("div",{className:"cast-talent-form-content__img-box row",children:n.files.map(e=>(0,c.jsxs)("div",{className:"file-container",children:[(0,c.jsxs)("a",{href:e.url,target:"_blank",rel:"noreferrer",children:[(0,r.wu)(e)&&(0,c.jsx)("img",{src:e.url,alt:""}),!(0,r.wu)(e)&&(0,c.jsxs)("div",{className:"file-block",children:[e.name.substring(0,10),"..."]})]}),(0,c.jsx)("div",{className:"file-title",children:e.name})]},e.url))}),n.image_requirement&&(0,c.jsxs)("div",{children:[(0,c.jsx)("label",{children:"Describe the specific photo or video casting you need from each applicant"}),(0,c.jsx)("p",{children:n.image_requirement})]})]})]})}),n&&(0,c.jsxs)("div",{className:"cast-talent-form-content__box-btn",children:[(0,c.jsx)("button",{className:"cast-talent-form-content__back",onClick:A,type:"button",children:"Edit Job"}),n&&!n.submitted_at&&(0,c.jsx)("button",{className:"cast-talent-form-content__save",type:"submit",disabled:t||f,onClick:N,children:"Submit for approval"}),n&&n.submitted_at&&(0,c.jsx)("button",{className:"cast-talent-form-content__save",type:"submit",onClick:k,children:"Done"})]})]})})})},M=()=>{const e={positionApproved:!0,loading:!1},{page:t}=(0,s.g)();return(0,c.jsxs)("div",{className:"cast-talent-form_container",children:["details"===t&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(m,Object.assign({},e)),(0,c.jsx)(O,{})]}),"who"===t&&(0,c.jsx)($,{}),"budget"===t&&(0,c.jsx)(q,{}),"preview"===t&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(m,Object.assign({},e)),(0,c.jsx)(J,{})]}),"submitted"===t&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(m,Object.assign({},e)),(0,c.jsx)(n.A,{})]})]})}},86984(e,t,a){a.d(t,{A:()=>y});var s=a(96540),n=a(3433),i=a(71468),l=a(2543),r=a(40364),o=a(4589),
1c=a(35241),d=a(74848);const m=({talents:e,position_id:t})=>{const a=(0,s.useRef)(null),n={position_id:t,details:"",invite_from:"talent-recommendations"},i=()=>{a.current&&a.current.slickNext()},l=()=>{a.current&&a.current.slickPrev()},r=({onClick:e})=>(0,d.jsx)("div",{className:"prev-arrow slick-arrow ",onClick:l,children:(0,d.jsx)("svg",{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,d.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M31.469 10.6434C32.2182 11.4551 32.1676 12.7204 31.356 13.4696L19.9481 24L31.356 34.5304C32.1676 35.2796 32.2182 36.5449 31.469 37.3566C30.7198 38.1682 29.4545 38.2188 28.6429 37.4696L14.0508 24L28.6429 10.5304C29.4545 9.7812 30.7198 9.83181 31.469 10.6434Z",fill:"#222222"})})}),m=({onClick:e})=>(0,d.jsx)("div",{className:"next-arrow slick-arrow ",onClick:i,children:(0,d.jsx)("svg",{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,d.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.5304 10.6434C16.2796 9.83181 17.5449 9.7812 18.3566 10.5304L32.9486 24L18.3566 37.4696C17.5449 38.2188 16.2796 38.1682 15.5304 37.3566C14.7812 36.5449 14.8318 35.2796 15.6434 34.5304L27.0514 24L15.6435 13.4696C14.8318 12.7204 14.7812 11.4551 15.5304 10.6434Z",fill:"#222222"})})}),p={mobileFirst:!0,slidesToShow:3,slidesToScroll:1,infinite:!1,dots:!0,adaptiveHeight:!0,arrows:!0,accessibility:!0,centerMode:!0,variableWidth:!1,initialSlide:1,appendDots:e=>(0,d.jsxs)("div",{className:"cast-talent-slider__control",children:[(0,d.jsx)(r,{}),(0,d.jsx)(m,{}),(0,d.jsx)("ul",{className:"dots",children:e})]}),responsive:[{breakpoint:576,settings:{centerMode:!0,centerPadding:"70px",slidesToShow:3,slidesToScroll:1,initialSlide:1}},{breakpoint:320,settings:{slidesToShow:1,slidesToScroll:1,initialSlide:1}}]};return(0,d.jsxs)("div",{className:"cast-talent-slider",children:[(0,d.jsxs)("h2",{className:"cast-talent-slider__heading my-4 text-center",children:["Top ",e.length," talent that match your parameters"]}),(0,d.jsx)(o.A,Object.assign({ref:a},p,{children:e.map((e,t)=>(0,d.jsx)("div",{className:"cast-talent-slider__list-wrapper",children:(0,d.jsx)(c.A,{talent:e,inviteData:n,isJobRecommendation:!0})},t))}))]})};var p=a(71929),u=a(34174),h=a(85383);const _=({id:e,classPrefix:t,description:a})=>{const i=t||"trf-dashboard",l=a||"Collaborate together on new projects",[r,o]=(0,s.use
1State)([]),c=(0,n.Zp)(),{isLoading:m,fetchData:_}=(0,p.A)();(0,s.useEffect)(()=>{(async()=>{const e=await _((0,u.e6)());e&&e.data&&o(e.data.data)})()},[]);const v=()=>{c("/manage-team")};return(0,d.jsxs)("div",{className:`trf-actions__item ${i}__item`,children:[(0,d.jsxs)("div",{className:`trf-actions__head ${i}__head`,children:[(0,d.jsx)("h3",{onClick:v,className:"trf-actions__title",children:"Invite your team"}),(0,d.jsx)("span",{className:`trf-dashboard__badge trf-dashboard__badge--blue ${i}__badge  `,children:r&&r.length>0?r.length+" member":"unlimited members"})]}),(0,d.jsx)(h.A,{loading:m,children:(0,d.jsxs)("div",{className:`trf-actions__body ${i}__body`,children:[(0,d.jsx)("p",{className:`trf-actions__desc ${i}__desc`,children:l}),(0,d.jsxs)("div",{className:`trf-actions__person ${i}__person`,children:[r.length>0&&r.map(e=>(0,d.jsx)("div",{className:`trf-actions__person-item trf-actions__person-item--team ${i}__person-item ${i}__person-item--team`,children:(0,d.jsx)("div",{className:"trf-actions__person-img ${getclassPrefix}__person-img",children:e.initials})})),(0,d.jsx)("button",{onClick:v,className:`trf-actions__person-add ${i}__person-add`,children:(0,d.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,d.jsx)("path",{d:"M9 1C9 0.447715 8.55228 0 8 0C7.44771 0 7 0.447715 7 1V6.99991L1 6.99991C0.447715 6.99991 0 7.44762 0 7.99991C0 8.55219 0.447715 8.99991 1 8.99991L7 8.99991V15C7 15.5523 7.44771 16 8 16C8.55228 16 9 15.5523 9 15V8.99991L15 8.99991C15.5523 8.99991 16 8.55219 16 7.99991C16 7.44762 15.5523 6.99991 15 6.99991L9 6.99991V1Z",fill:"#0C0C0C"})})})]}),(0,d.jsx)("div",{className:`trf-actions__bot ${i}__bot`,children:(0,d.jsxs)("button",{onClick:v,className:`trf-dashboard__main-cta trf-dashboard__main-cta--filled trf-dashboard__main-cta--chevron-r ${i}__main-cta ${i}__main-cta--filled ${i}__main-cta--chevron-r`,children:["manage team",(0,d.jsx)("svg",{width:"7",height:"12",viewBox:"0 0 7 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,d.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.528596 0.195262C0.788945 -0.0650874 1.21106 -0.0650874 1.4714 0.195262L6.80474 5.5286C7.06509 5.78895 7.06509 6.21106 6.80474 6.4714L1.4714 11.8047C1.21106 12.0651 0.788945 12.0651 0.528596 11.8047C0.268246 11.5444 0.268246 11.1223 0.528596 10.8619L5.39052 6L0.528596 1.13807C0.268246 0.877722 0.268246 0.455612 0.528596 0.195262Z",fill:"white"})})]})})]})})]})};var v=a(94829),x=a(49376),b=a(12476),j=a(10431),g=a(94656);const f=[{img:"/images/cast-talent-form/1-logo.svg",text:"Your job will be approved shortly once our team reviews it."},{img:"/images/cast-talent-form/2-logo.svg",text:"Talent matching your job brief will get notified. With over 15,000 talent, we're sure we've got what you need!"},{img:"/images/cast-talent-form/3-logo.svg",text:"Once you have applicants, view your options, shortlist, chat and book the talent you want"},{img:"/images/cast-talent-form/4-logo.svg",text:"Only pay when the job is done! Funds are held in escrow 72 hours before the job starts"}],y=()=>{const[e,t]=(0,s.useState)(!0),a=(0,s.useRef)(null),o=r.c.CDN_PATH,[c,u]=(0,s.useState)(),h=(0,n.Zp)(),y=(0,i.d4)(e=>e.userDetail.data),{id:N}=(0,n.g)(),{fetchData:w}=(0,p.A)(),A=(0,i.wA)(),[$,k]=(0,s.useState)();(0,s.useEffect)(()=>{(async()=>{t(!0);try{const e=await(0,j.f7)(N);k(e.data),t(!1)}catch(e){t(!1),console.error("Error fetching data:",e)}})()},[]),(0,s.useEffect)(()=>{(0,b.eG)();(async()=>{const e=await w((0,v.cf)(N));A((0,x.Zv)({stepsCompleted:e.data.data[0]}))})(),(async()=>{try{const e=await(0,v.h3)(N);u(e.talentList)}catch(e){console.error("Error fetching data:",e)}})()},[]);return(0,d.jsx)("div",{className:"cast-talent-content talent-submitted-form",ref:a,children:(0,d.jsxs)("div",{className:"cast-talent-form-content",children:[(0,d.jsxs)("div",{className:"job-submitted",children:[(0,d.jsx)("h2",{children:"Job submitted! What happens next?"}),(0,d.jsx)("ul",{children:f.map(e=>(0,d.jsxs)("li",{children:[(0,d.jsx)("div",{className:"job-submitted__img-wrap",children:(0,d.jsx)("img",{src:o+e.img})}),(0,d.jsx)("span",{children:e.text})]},e.img))})]}),c&&c.length>0&&(0,d.jsx)(m,{talents:c,position_id:N}),!(0,l.isEmpty)(y)&&(0,d.jsx)(_,{id:y.id,classPrefix:"trf-job-team-invite",description:"Collaborate with other team members to help you find the right candidate, allowing them to review applicants, communicate and shortlist talent."}),(0,d.jsxs)("div",{className:"cast-talent-form-content__box-btn",children:[!e&&$&&(0,d.jsx)(g.A,{myJobDetail:$,classes:"cast-talent-form-content__back"}),(0,d.jsx)("button",{className:"cast-talent-form-content__save",type:"submit",onClick:()=>{h("/projects")},children:"go to my jobs"})]})]})})}},59118(e,t,a){a.d(t,{A:()=>i});var s=a(40364),n=a(74848);const i=()=>{const e=s.c.CDN_PATH;return(0,n.jsxs)("div",{className:"cast-talent-tips",children:[(0,n.jsxs)("div",{className:"cast-talent-tips__title",children:[(0,n.jsx)("h3",{children:"Tips"}),(0,n.jsx)("div",{className:"cast-talent-tips__img-wrapp",children:(0,n.jsx)("img",{src:`${e}/images/cast-talent-form/lamp.svg`,alt:"lamp"})})]}),(0,n.jsx)("h4",{children:"What works?"}),(0,n.jsxs)("ul",{children:[(0,n.jsxs)("li",{children:[(0,n.jsx)("i",{className:"fa fa-check"}),(0,n.jsx)("span",{children:"Clear wording, your headline will be the job title, the very first thing a talent sees!"})]}),(0,n.jsxs)("li",{children:[(0,n.jsx)("i",{className:"fa fa-check"}),(0,n.jsx)("span",{children:"Being specific about what talent will do in your job"})]})]}),(0,n.jsx)("h4",{children:"What doesn't work?"}),(0,n.jsx)("ul",{children:(0,n.jsxs)("li",{children:[(0,n.jsx)("i",{className:"fas fa-times"}),(0,n.jsx)("span",{children:"Generic wording leaves talent unsure what they\u2019re applying for"})]})}),(0,n.jsx)("h4",{children:"Example"}),(0,n.jsx)("span",{children:"\u201cMummy influencer with kids under 5 for Instagram promotion\u201d"})]})}},35241(e,t,a){a.d(t,{A:()=>
1o});var s=a(96540),n=a(40364),i=a(10431),l=a(95352),r=a(74848);const o=({talent:e,inviteData:t,isJobRecommendation:a})=>{var o;const[c,d]=(0,s.useState)(!1),[m,p]=(0,s.useState)(!1),u=n.c.CDN_PATH;return(0,r.jsx)("div",{className:"talent-recommendation__talent "+(a?"talent-recommendation__isJobRecommendation":""),children:(0,r.jsxs)("div",{className:"talent-recommendation__talent__inner w-100",children:[(0,r.jsxs)("div",{className:"talent-recommendation__talent__image d-flex justify-content-center align-items-start",children:[(0,r.jsx)("a",{href:`/talent/${null==e?void 0:e.slug}`,target:"_blank",children:(0,r.jsx)("img",{src:null==e||null==(o=e.avatar_image)?void 0:o.replace("-local",""),alt:null==e?void 0:e.display_name,title:null==e?void 0:e.display_name})}),(0,r.jsx)(l.A,{talent_id:e.id})]}),(0,r.jsxs)("div",{className:"talent-recommendation__talent__details__space",children:[(0,r.jsx)("div",{className:"talent-recommendation__talent__name",children:(0,r.jsx)("a",{href:`/talent/${null==e?void 0:e.slug}`,target:"_blank",children:null!=e&&e.display_name?null==e?void 0:e.display_name:"Talent"})}),null!=e&&e.avg_rating||null!=e&&e.no_of_job_booked?(0,r.jsxs)("div",{className:"talent-recommendation__talent__rating",children:[(0,r.jsx)("img",{src:`${u}/images/icons/talent-profile/star.svg`,width:"16",height:"16",className:"talent-recommendation__talent__icon"}),(0,r.jsxs)("span",{children:[e.avg_rating.toFixed(1)," (",null==e?void 0:e.no_of_job_booked," jobs completed)"]})]}):null,(0,r.jsxs)("div",{className:"talent-recommendation__talent__location",children:[(0,r.jsx)("img",{src:`${u}/images/icons/talent-profile/location.svg`,width:"16",height:"16",className:"talent-recommendation__talent__icon"}),e.state&&e.country?(0,r.jsx)("span",{children:e.state+", "+e.country}):(0,r.jsx)("span",{children:"None Selected"})]}),e&&e.professions&&e.professions.length?(0,r.jsxs)("div",{className:"talent-recommendation__talent__profession",children:[(0,r.jsx)("img",{src:`${u}/images/icons/talent-profile/profile.svg`,width:"16",height:"16",className:"talent-recommendation__talent__icon"}),(0,r.jsx)("span",{children:e.professions.join(", ")})]}):null,null!=e&&e.total_followers?(0,r.jsxs)("div",{className:"talent-recommendation__talent__followers",children:[(0,r.jsx)("img",{src:`${u}/images/icons/talent-profile/instagram.svg`,width:"16",height:"16",className:"talent-recommendation__talent__icon"}),(0,r.jsxs)("span",{children:[null==e?void 0:e.total_followers," Followers"]})]}):null]}),!e.is_applied&&(0,r.jsxs)("div",{className:"talent-recommendation__talent__cta d-flex justify-content-center align-items-center "+(null!=e&&e.is_invited||m?"invited":""),onClick:()=>{if(!e.is_invited&&!m){d(!0);(async()=>{try{await(0,i.Ug)(e.id,t),p(!0)}catch(a){console.error("Error fetching data:",a)}finally{d(!1)}})()}},children:[(0,r.jsx)("span",{className:"tick mr-1 d-inline-block",children:c?(0,r.jsx)("i",{className:"fa fa-spinner fa-pulse"}):(0,r.jsx)("img",{src:`${u}/images/icons/icon-tick1.png`,alt:"tick"})}),(0,r.jsx)("span",{className:"text ml-1 d-inline-block font-weight-bold mr-0",children:"Invite"}),null!=e&&e.is_invited||m?(0,r.jsx)("span",{className:"text d-inline-block font-weight-bold m-0",children:"d"}):null]})]})})}},95352(e,t,a){a.d(t,{A:()=>c});var s=a(71468),n=a(61409),i=a(96093),l=a(49376),r=a(13838),o=a(74848);const c=({talent_id:e,onToggle:t,variant:a,btnClass:c})=>{const d=(0,s.d4)(e=>e.userDetail.data),m=(0,s.wA)(),p=()=>!(!d.favourites||!d.favourites.includes(e)),u=()=>{try{const t=p();(0,i.Mb)(e);let a=[...d.favourites];t?a=a.filter(t=>t!==e):a.push(e),m((0,l.yS)({data:Object.assign({},d,{favourites:a})})),localStorage.removeItem("authMe"),n.oR.success(t?"Removed from favourites":"Added to favourites")}catch(t){console.error(t)}};return"button"===a?(0,o.jsx)(r.$n,{className:c,onClick:u,children:(p()?"Remove from":"Add to")+" Favourites"}):(0,o.jsx)("div",{className:"add-favourite",children:(0,o.jsx)("span",{className:"add-favourite__icon d-block "+(p()?"active":""),onClick:u,title:(p()?"Remove from":"Add to")+" Favourites"})})}},80888(e,t,a){a.d(t,{A:()=>l});var s=a(40644),n=(a(96540),a(74848));const i=["level","children"],l=e=>{let{level:t,children:a}=e,l=(0,s.A)(e,i);const r=`h${t}`;return(0,n.jsx)(r,Object.assign({},l,{children:a}))}},59186(e,t,a){a.d(t,{A:()=>s.A});var s=a(80888)},64864(e,t,a){a.d(t,{p:()=>c});var s=a(40644),n=a(96540),i=a(32485),l=a.n(i),r=a(74848);const o=["id","name","label","type","size","className","placeholder"],c=(0,n.forwardRef)((e,t)=>{let{id:a,name:n,label:i,type:c="text",size:d="medium",className:m="",placeholder:p}=e,u=(0,s.A)(e,o);return(0,r.jsx)("input",Object.assign({id:a,ref:t,name:n,type:c,"aria-label":i,placeholder:p,autoComplete:"off",className:l()(m)},u))})},25814(e,t,a){a.d(t,{A:()=>n});a(96540);var s=a(74848);const n=({errorField:e,errors:t})=>{const a=t[e];return a&&a&&Array.isArray(a)?(0,s.jsx)("div",{className:"error-message mt-2",children:a.map((e,t)=>(0,s.jsx)("p",{className:"m-0",children:e},t))}):null}},10431(e,t,a){a.d(t,{Ao:()=>c,Do:()=>D,E9:()=>v,GS:()=>k,Kb:()=>F,NT:()=>h,OH:()=>A,On:()=>d,P0:()=>w,PJ:()=>m,Px:()=>j,SF:()=>E,TE:()=>x,Ug:()=>f,ZK:()=>b,Zu:()=>T,f7:()=>l,fJ:()=>i,fn:()=>u,gj:()=>_,hR:()=>g,kN:()=>p,kY:()=>N,mh:()=>o,oD:()=>r,qP:()=>O,tk:()=>y,uo:()=>C,x4:()=>S,xo:()=>$});var s=a(55029),n=a(55278);const i=(e,t,a,n=5)=>(0,s.Jt)("/position/list?page="+a+"&filter="+e+"&keyword="+t+"&limit="+n),l=e=>(0,s.Jt)(`/position/${e}/job-detail`),r=(e,t)=>
1e?(0,s.Jt)(`/position-details/user/${e}/${t}`):(0,s.Jt)(`/job/${t}`),o=(e,t,a)=>(0,s.bE)(`/position/${e}/cancel-job`,{reason:t,feedback:a}),c=e=>(0,s.bE)(`/position/${e}/close-job`,{}),d=e=>(0,s.bE)(`/position/${e}/unlock-applications`,{}),m=e=>(0,s.bE)(`/position/${e}/lock-applications`,{}),p=e=>(0,s.bE)(`/position/${e}/notify-pending-applicants`,{}),u=e=>{const t=(new Date).getTime();return(0,s.yJ)(`/positions/${e}/purchase-order/?${t}`,{},{responseType:"blob"})},h=(e,t)=>(0,s.Wv)(`/positions/${e}/attachments/${t}`),_=(e,t,a,n,i=12)=>(0,s.Jt)(`position/${e}/application?page=`+n+"&type="+t+"&keyword="+a+"&limit="+i),v=(e,t,a,n,i=12)=>(0,s.Jt)(`position/${e}/invitations?page=`+n+"&type="+t+"&keyword="+a+"&limit="+i),x=(e,t)=>(0,s.Jt)(`position/${e}/application-count?type=count&keyword=`+t),b=(e,t)=>(0,s.bE)(`/position/${e}/application/${t}/shortlist`,{}),j=(e,t)=>(0,s.bE)(`/position/${e}/application/${t}/decline`,{}),g=(e,t,a,n=12)=>(0,s.bE)(`position/${e}/application/export?type=`+t+"&keyword="+a+"&limit="+n,{},{responseType:"blob"}),f=(e,t)=>(0,s.bE)(`/talent/${e}/invite`,t),y=e=>(0,s.bE)("/position/"+e+"/repost",{}),N=e=>(0,s.bE)("/position/search",e),w=e=>(0,s.bE)("/campaign/search",e),A=()=>(0,s.Jt)("positions/available"),$=()=>(0,s.Jt)("campaign-invitation/list-campaign"),k=(e,t)=>(0,s.bE)(`/positions/${e}/bulk-invite`,t),C=(e,t)=>(0,s.bE)(`/campaign-invitation/campaign/${e}/bulk-invite`,t),S=(e,t,a)=>(0,s.Jt)(`/position/${e}/applicant-images?type=${t}&includeAll=${a}`),O=(e,t)=>(0,s.bE)("/talent/"+e+"/payment",t),E=(e,t)=>n.A.post("/campaign/"+e+"/favourite",t),T=(e,t)=>
1n.A.post("/campaign/"+e+"/unfavourite",t),F=(e,t)=>n.A.post("/campaign/"+e+"/hide",t),D=e=>{const t=new FormData;return Object.keys(e).forEach(a=>{t.append(a,e[a])}),n.A.post("/pitches/send",t,{headers:{"Content-Type":"multipart/form-data"}})}},68089(e,t,a){a.d(t,{N:()=>n});var s=a(55029);const n=(e,t)=>(0,s.yJ)(`/positions/${e}/influencer/budget\n  `,t)},94829(e,t,a){a.d(t,{Dc:()=>d,Dt:()=>p,EA:()=>j,Fi:()=>u,Kj:()=>x,NO:()=>r,NT:()=>o,Pz:()=>f,X6:()=>v,YT:()=>c,cf:()=>_,dE:()=>y,df:()=>A,e0:()=>N,eA:()=>b,h3:()=>m,ku:()=>l,u9:()=>w,uB:()=>h,z$:()=>g,zC:()=>i});var s=a(55029),n=a(58755);const i=e=>(0,s.Jt)(`/positions/${e}/usage`),l=(e,t)=>(0,s.yJ)(`/positions/${e}/usage`,Object.assign({},t,{usage_skipped:0})),r=e=>(0,s.Jt)(`/positions/${e}/budget`),o=(e,t)=>(0,s.yJ)(`/positions/${e}/budget`,t),c=e=>(0,s.Jt)(`/positions/${e}/preview`),d=e=>(0,s.bE)(`/positions/${e}/submit-for-approval`,{}),m=e=>(0,s.Jt)(`/positions/${e}/talent-recommendations`),p=e=>(0,n.T3)("/positions",e),u=e=>e?`/profession?profession_name=${e}`:"/profession",h=e=>`/positions/details/${e}`,_=e=>`/positions/${e}/steps`,v=(e,t)=>(0,n.cL)(`/positions/details/${t}`,e),x=(e,t)=>{const a=new FormData;return a.append("images[]",e.file,e.file.name),(0,n.T3)(`/positions/${t}/attachments`,a)},b=e=>(0,n.Wv)(`/positions/${e.id}/attachments/${e.file.id}`),j=e=>`/positions/${e}/who`,g=e=>`/positions/${e}/content-creator/who`,f=e=>`/positions/${e}/influencer/who`,y=(e,t)=>(0,n.cL)(`/positions/${t}/who`,e),N=(e,t)=>(0,n.cL)(`/positions/${t}/influencer/who`,e),w=(e,t)=>(0,n.cL)(`/positions/${t}/content-creator/who`,e),A=(e,t)=>(0,s.yJ)(`/positions/${e}/save-as-draft`,t)},96093(e,t,a){a.d(t,{$P:()=>l,Fq:()=>r,Mb:()=>i,NO:()=>n,eI:()=>c,s6:()=>o});var s=a(55029);const n=(e,t,a=12)=>(0,s.Jt)("user/favourites?page="+t+"&keyword="+e+"&limit="+a),i=e=>(0,s.bE)("/user/toggle-favourite",{profile_id:e}),l=(e,t)=>(0,s.jT)("/search",{filters:e,page:t}),r=()=>(0,s.Jt)("facets"),o=e=>(0,s.Jt)("/country/state/list?country_name="+e),c=e=>(0,s.Jt)("/creator/"+e)},12476(e,t,a){a.d(t,{Yq:()=>i,eG:()=>n,x3:()=>s});const s=e=>!(!e||!e.id),n=()=>{window.scrollTo({top:0,behavior:"smooth"})},i=e=>{if(!e)return;return new Date(e).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"})}},55868(e,t,a){a.d(t,{QX:()=>r,UB:()=>s,VI:()=>p,X9:()=>m,aU:()=>i,cr:()=>o,sM:()=>l,t$:()=>n,vQ:()=>d,wu:()=>c});const s=/^(?!.*\b(?:[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}\b|[A-Za-z0-9+-]{1,}\.[A-Za-z]{1,}\b|instagram\.com\/[A-Za-z0-9_]+\b|skype:[A-Za-z0-9.?&=+-]+\b|[A-Za-z0-9.-]+\.[A-Za-z]{2,}\/[A-Za-z0-9_-]+\b|\+?[0-9\s-]{6,}\b))[\s\S]+$/,n=[{value:"0",label:"Payable on Receipt"},{value:"7",label:"7 Days"},{value:"14",label:"14 Days"},{value:"30",label:"30 Days"}],i=(e,t,a=!1)=>{let s=0,n=.2;switch(n=a&&(a.isPostAnalyzerEnabled||a.isFreeAccessEnabled||a.isAdminDiscount)?.15:.2,e){case"trf":s=t*n;break;case"gst":s=t*(n/10);break;case"total":s=t+t*n+t*(n/10)}return s.toFixed(2)},l=(e,t)=>
1window.location.pathname.replace(e,t),r=e=>e[0]===e[1],o=(e,t)=>!r([e[0],t])&&-1!==e[1].indexOf(e[0]),c=e=>{const t=e&&e.mime?e.mime:e&&e.type?e.type:null;return!(!t||!t.includes("image"))},d=e=>{const t=e.profession;return"model"===t||"actor"===t||"presenter"===t?"/cast-talent/"+e.id+"/details":"influencer"===t?"/work-with-influencer/"+e.id+"/details":"content-creator"===t?"/work-with-content-creator/"+e.id+"/details":"/creative-production/"+e.id+"/details"},m=e=>(e=Number(e))>=1e3?e>=1e6?(e/1e6).toFixed(0)+"M":(e/1e3).toFixed(0)+"K":e,p=(e,t)=>e.attributes.filter(e=>e.name===t).map(e=>e.value)}}]);

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.