PageSourceSearch

https://theright.fit/5304.9a980247c26f28f6.js

js theright.fit collected 2026-09-24 11:53:45 UTC 14,937 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunktrf_frontend=self.webpackChunktrf_frontend||[]).push([[5304],{96297(e,a,s){function t(e,a){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,a){return e.__proto__=a,e},t(e,a)}s.d(a,{A:()=>t})},4076(e,a,s){s.d(a,{A:()=>l});s(96540);var t=s(74848);const l=({title:e,subtitle:a,jobTitle:s,backUrl:l,children:r,classes:n})=>(0,t.jsx)("div",{className:`trf-header ${n||""}`,children:(0,t.jsx)("div",{className:"trf-header__inner",children:(0,t.jsxs)("div",{className:"trf-header__body align-items-start align-items-sm-center flex-column flex-sm-row",children:[(0,t.jsxs)("div",{className:"trf-header__content",children:[(0,t.jsx)("h2",{className:"trf-header__title",children:e}),(a||s)&&(0,t.jsxs)("span",{className:"trf-header__subtitle",children:[a,s&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("br",{}),s]})]})]}),(0,t.jsx)("div",{className:"trf-header__actions mt-3 mt-sm-0",children:r})]})})})},55668(e,a,s){s.d(a,{k:()=>t.A});var t=s(4076)},64864(e,a,s){s.d(a,{p:()=>o});var t=s(40644),l=s(96540),r=s(32485),n=s.n(r),i=s(74848);const c=["id","name","label","type","size","className","placeholder"],o=(0,l.forwardRef)((e,a)=>{let{id:s,name:l,label:r,type:o="text",size:d="medium",className:m="",placeholder:u}=e,h=(0,t.A)(e,c);return(0,i.jsx)("input",Object.assign({id:s,ref:a,name:l,type:o,"aria-label":r,placeholder:u,autoComplete:"off",className:n()(m)},h))})},10355(e,a,s){s.d(a,{A:()=>i});var t=s(40644),l=(s(96540),s(3433)),r=s(74848);const n=["url","target","children"],i=e=>{let{url:a,target:s="",children:i}=e,c=(0,t.A)(e,n);return(0,r.jsx)(l.N_,Object.assign({to:a,target:s},c,{children:i}))}},25814(e,a,s){s.d(a,{A:()=>l});s(96540);var t=s(74848);const l=({errorField:e,errors:a})=>{const s=a[e];return s&&s&&Array.isArray(s)?(0,t.jsx)("div",{className:"error-message mt-2",children:s.map((e,a)=>(0,t.jsx)("p",{className:"m-0",children:e},a))}):null}},63187(e,a,s){s.d(a,{F6:()=>o,FI:()=>i,Jt:()=>r,T3:()=>d,Wv:()=>u,bE:()=>n,nI:()=>m,rZ:()=>l,yJ:()=>c});var t=s(55278);const l=(e,a={})=>new Promise((s,l)=>{t.A.get(e,a).then(e=>{s(e.data)}).catch(e=>{s({data:null,error:e})})}),r=(e,a={})=>new Promise((s,l)=>{t.A.get(e,a).then(e=>{s(e.data)}).catch(e=>{s({data:null,error:e})})}),n=async(e,a,s={})=>await t.A.post(e,Object.assign({},a),s),i=async(e,a,s={})=>await t.A.patch(e,Object.assign({},a),s),c=async(e,a,s={})=>await t.A.put(e,Object.assign({},a),s),o=async(e,a,s={})=>await t.A.patch(e,Object.assign({},a),s),d=async(e,a)=>await t.A.post(e,a,{headers:{"Content-Type":"multipart/form-data"}}),m=async(e,a)=>await t.A.post(e,a,{headers:{"Content-Type":"multipart/form-data"}}),u=async e=>await t.A.delete(e)},97977(e,a,s){s.d(a,{$1:()=>m,LI:()=>o,RW:()=>r,Ss:()=>l,UP:()=>c,XI:()=>u,f3:()=>i,jH:()=>h,tC:()=>n,vF:()=>d});var t=s(63187);const l=e=>(0,t.bE)("web/talent-account-settings/personal-info",e),r=e=>(0,t.bE)("web/talent-account-settings/profile-info",e),n=e=>(0,t.bE)("web/talent-account-settings/tax-details",e),i=e=>(0,t.bE)("web/talent-account-settings/reset-password",e),c=()=>(0,t.Wv)("web/auth/deactivate"),o=()=>(0,t.Wv)("web/auth/delete"),d=()=>(0,t.Jt)("user/setting/notification"),m=e=>(0,t.bE)("user/setting/notification",e),u=(e,a)=>(0,t.bE)("web/talent-account-settings/verify-new-email-update",{otp:e,email:a}),h=e=>(0,t.Jt)("/user/invoices?page="+e)},55868(e,a,s){s.d(a,{QX:()=>i,UB:()=>t,VI:()=>u,X9:()=>m,aU:()=>r,cr:()=>c,sM:()=>n,t$:()=>l,vQ:()=>d,wu:()=>o});const t=/^(?!.*\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]+$/,l=[{value:"0",label:"Payable on Receipt"},{value:"7",label:"7 Days"},{value:"14",label:"14 Days"},{value:"30",label:"30 Days"}],r=(e,a,s=!1)=>{let t=0,l=.2;switch(l=s&&(s.isPostAnalyzerEnabled||s.isFreeAccessEnabled||s.isAdminDiscount)?.15:.2,e){case"trf":t=a*l;break;case"gst":t=a*(l/10);break;case"total":t=a+a*l+a*(l/10)}return t.toFixed(2)},n=(e,a)=>window.location.pathname.replace(e,a),i=e=>e[0]===e[1],c=(e,a)=>!i([e[0],a])&&-1!==e[1].indexOf(e[0]),o=e=>{const a=e&&e.mime?e.mime:e&&e.type?e.type:null;return!(!a||!a.includes("image"))},d=e=>{const a=e.profession;return"model"===a||"actor"===a||"presenter"===a?"/cast-talent/"+e.id+"/details":"influencer"===a?"/work-with-influencer/"+e.id+"/details":"content-creator"===a?"/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,u=(e,a)=>e.attributes.filter(e=>e.name===a).map(e=>e.value)},65315(e,a,s){s.d(a,{A:()=>i});s(96540);var t=s(3433),l=s(32485),r=s.n(l),n=s(74848);
1const i=({title:e,subtitle:a,backLink:s,className:l})=>{const i=(0,t.Zp)();return(0,n.jsxs)("div",{className:r()("column-content__header",l),children:[(0,n.jsx)("div",{className:"column-content__back",onClick:()=>{s&&i(s)},children:(0,n.jsx)("i",{className:"fa fa-angle-left","aria-hidden":"true"})}),(0,n.jsx)("h3",{className:"column-content__title",children:e}),(0,n.jsx)("span",{className:"column-content__subtitle",children:a})]})}},33888(e,a,s){s.r(a),s.d(a,{default:()=>w});var t=s(96540),l=s(55668),r=s(27043),n=s(64864),i=s(49785),c=s(28454),o=s(97977),d=s(71468),m=s(2543),u=s(10355),h=s(71929),f=s(25814),v=s(61409),b=s(49376),p=s(8773),j=s(55868),g=s(13838),x=s(94580),N=s(4288),_=s(65315),y=s(74848);const w=()=>{var e;const{register:a,handleSubmit:s,setValue:w,getValues:A,watch:O,trigger:k,formState:{errors:C}}=(0,i.mN)({mode:"onChange"}),E=(0,d.d4)(e=>e.userDetail.data),[F,P]=(0,t.useState)(),[S,q]=(0,t.useState)([]),z=(0,d.d4)(e=>e.countryList.data),{fetchData:R}=(0,h.A)(),[Z,I]=(0,t.useState)({hasError:!1,fieldError:!1}),T=(0,t.useRef)(null),D=["first_name","last_name","display_name","state_id","country_code","country_id","bio","headline","avatar_image"],M=(0,d.wA)(),L=O("country_id");O("avatar_image"),(0,t.useEffect)(()=>
1{E&&Object.keys(E).forEach(e=>{D.includes(e)&&w(e,E[e])})},[]);const V=(0,c.n)({mutationFn:e=>(0,o.RW)(e),onError:e=>{P(e)},onSuccess:(e,a,s,t)=>{var l;P([]),localStorage.removeItem("authMe"),M((0,b.yS)({data:Object.assign({},e.data[0],{flags:Object.assign({},null==(l=e.data[0])?void 0:l.flags,{has_details:!0})})})),v.oR.success("Personal info updated!")}}),B=(0,c.n)({mutationFn:async e=>{if(e.avatar instanceof File){const a=await(0,x.AP)((null==E?void 0:E.id)||"",{avator_image:e.avatar});return w("avatar_image",e.avatar),await new Promise(e=>setTimeout(e,1)),a}return Promise.resolve({avatar_image:A("avatar_image")})},onSuccess:async e=>{w("avatar_image",e.avatar_image),localStorage.removeItem("authMe"),M((0,b.yS)({data:Object.assign({},E,{avatar_image:e.avatar_image})})),v.oR.success("Profile image updated!")},onError:e=>{v.oR.error(e._message)}}),H=B.isPending,{mutate:U,isPending:W}=V;V.error&&!Z.hasError&&I(Object.assign({},Z,{hasError:!0,fieldError:!0}));const $=async()=>{if(L)try{q([]);const e=await R("country/state/list?country_name="+(e=>{var a;const s=Object.values(z).find(a=>a.id==e);return null!=(a=null==s?void 0:s.name)?a:null})(L));e&&e.data&&q(e.data.data)}catch(e){console.error(e)}};(0,t.useEffect)(()=>{$()},[]),(0,t.useEffect)(()=>{$()},[L]);const J=e=>{if("country_id"===e){const a=Object.values(z).find(a=>a.id==A(e));return{value:null==a?void 0:a.id,label:null==a?void 0:a.name}}if("state_id"===e){const a=Object.values(S).find(a=>a.id==A(e));return{value:null==a?void 0:a.id,label:null==a?void 0:a.name}}},X=e=>{var a;return(0,y.jsxs)(y.Fragment,{children:[C[e]&&(0,y.jsx)("div",{className:"error-message",children:null==(a=C[e])?void 0:a.message}),F&&(0,y.jsx)(f.A,{errorField:e,errors:F})]})},Q=e=>!!C[e];return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(l.k,{classes:"bg-transparent",title:"Settings",subtitle:""}),E&&(0,y.jsx)("form",{onSubmit:s(e=>{0===Object.keys(C).length&&U(e)}),className:"trf-job-post-form",children:(0,y.jsx)(r.A,{loading:W||(0,m.isEmpty)(E),children:(0,y.jsx)("div",{className:"main-column",children:(0,y.jsx)("div",{className:"main-column__inner mt-0",children:(0,y.jsx)("div",{className:"column-content",children:(0,y.jsxs)("div",{className:"column-content__inner",children:[(0,y.jsx)(_.A,{title:"Profile Info",subtitle:"View and edit your profile information",backLink:"/talent/account/profile-settings"}),(0,y.jsxs)("div",{className:"column-content__body",children:[(0,y.jsx)("div",{className:"row",children:(0,y.jsx)("div",{className:"col-12",children:(0,y.jsxs)("div",{className:"form-group form-group-upload",children:[(0,y.jsx)(g.Zu,{ref:T,file:A("avatar_image"),label:"Profile Picture",required:!0,cropper:!0,isLoading:H,allowedTypes:"images",className:"profile-info-photo",maxSize:10485760,onChangeFile:(e,a)=>w("avatar_image",(null==a?void 0:a.at(0))||(null==E?void 0:E.avatar_image)),onSaveCropImage:(e,a)=>B.mutate({avatar:a})}),(0,y.jsx)(g.$n,{theme:"outline-black",size:"small",label:"Change Avatar",leftNode:(0,y.jsx)(N.h,{width:16,height:16}),onClick:null==T||null==(e=T.current)?void 0:e.onClickFile})]})})}),(0,y.jsxs)("div",{className:"row",children:[(0,y.jsx)("div",{className:"col-12 col-sm-6",children:(0,y.jsxs)("div",{className:"form-group "+(Q("first_name")?"has-danger":""),children:[(0,y.jsxs)("label",{className:"control-label",children:["First Name",(0,y.jsx)("span",{className:"trf-control-label-required",children:" *"})]}),(0,y.jsx)(n.p,Object.assign({type:"text",id:"first_name",placeholder:"First Name",className:"form-control"},a("first_name",{required:"The first name field is required."}))),X("first_name")]})}),(0,y.jsx)("div",{className:"col-12 col-sm-6",children:(0,y.jsxs)("div",{className:"form-group "+(Q("last_name")?"has-danger":""),children:[(0,y.jsx)("label",{className:"control-label",children:"Last Name"}),(0,y.jsx)("span",{className:"trf-control-label-required",children:" *"}),(0,y.jsx)(n.p,Object.assign({type:"text",className:"form-control",placeholder:"Last Name",id:"last_name"},a("last_name",{required:"The last name field is required."}))),X("last_name")]})})]}),(0,y.jsx)("div",{className:"row",children:(0,y.jsx)("div",{className:"col-12 col-sm-12",children:(0,y.jsxs)("div",{className:"form-group "+(Q("display_name")?"has-danger":""),children:[(0,y.jsx)("label",{className:"control-label",children:"Display Name"}),(0,y.jsx)(n.p,Object.assign({type:"text",id:"display_name",placeholder:"Display Name",className:"form-control"},a("display_name",{}))),(0,y.jsx)("small",{className:"form-text text-muted",children:"Leave this field blank if you want to use your first and last name"}),X("display_name")]})})}),(0,y.jsxs)("div",{className:"row",children:[(0,y.jsx)("div",{className:"col-12 col-sm-6",children:(0,y.jsxs)("div",{className:"form-group "+(Q("country_id")?"has-danger":""),children:[(0,y.jsx)("label",{className:"control-label",htmlFor:"inputCountry",children:"Country"}),(0,y.jsx)("span",{className:"trf-control-label-required",children:" *"}),(0,y.jsx)(p.Ay,Object.assign({},a("country_id",{required:"Country is required."}),{className:"trf-react-select-container trf-react-select-single-container trf-react-select-rounded",classNamePrefix:"trf-react-select",options:Object.values(z).map(e=>({value:e.id,label:e.name})),isMulti:!1,onChange:(e,a)=>{w("country_id",null==e?void 0:e.value),w("state_id","")},value:J("country_id"),placeholder:"Country"})),(0,y.jsx)("small",{className:"form-text text-muted",children:"The country you primarily work in"}),X("country_id")]})}),(0,y.jsx)("div",{className:"col-12 col-sm-6",children:(0,y.jsxs)("div",{className:"form-group "+(Q("state_id")?"has-danger":""),children:[(0,y.jsx)("label",{className:"control-label",htmlFor:"name",children:"State / Region"}),(0,y.jsx)("span",{className:"trf-control-label-required",children:" *"}),(0,y.jsx)(p.Ay,Object.assign({},a("state_id",{required:"State / Region is required."}),{className:"trf-react-select-container trf-react-select-single-container trf-react-select-rounded",classNamePrefix:"trf-react-select",options:S.map(e=>({value:e.id,label:e.name})),isMulti:!1,onChange:(e,a)=>{w("state_id",null==e?void 0:e.value),k("state_id")},placeholder:"State / Region ",value:J("state_id")})),(0,y.jsx)("small",{className:"form-text text-muted",children:"The state or region you primarily work in"}),X("state_id")]})})]}),(0,y.jsxs)("div",{className:"row",children:[(0,y.jsx)("div",{className:"col-12 col-sm-12",children:(0,y.jsxs)("div",{className:"form-group "+(Q("headline")?"has-danger":""),children:[(0,y.jsx)("label",{className:"control-label",children:"Headline"}),(0,y.jsx)(n.p,Object.assign({type:"text",id:"headline",placeholder:"Headline",className:"form-control"},a("headline"))),X("headline")]})}),(0,y.jsx)("div",{className:"col-12 col-sm-12",children:(0,y.jsxs)("div",{className:"form-group "+(Q("bio")?"has-danger":""),children:[(0,y.jsx)("label",{className:"control-label",htmlFor:"bio",children:"Bio"}),(0,y.jsx)("span",{className:"trf-control-label-required",children:" *"}),(0,y.jsx)("textarea",Object.assign({placeholder:"Bio",className:"form-control"},a("bio",{required:"Please enter bio",pattern:{value:j.UB,message:"Please avoid entering personal information."}}))),X("bio")]})})]}),(0,y.jsx)("div",{className:"row",children:(0,y.jsx)("div",{className:"col-12",children:(0,y.jsx)("div",{className:"form-group",children:(0,y.jsxs)("small",{children:[(0,y.jsx)("span",{className:"trf-control-label-required",children:"* "}),"Indicates required field"]})})})})]}),(0,y.jsx)("div",{className:"column-content__footer",children:(0,y.jsxs)("div",{className:"form-group row",children:[(0,y.jsx)("div",{className:"col-6",children:(0,y.jsx)(u.A,{url:"/talent/account",className:"btn btn-trf-outline-black btn-rounded text-uppercase",children:"Back"})}),(0,y.jsx)("div",{className:"col-6 text-right",children:(0,y.jsx)("button",{type:"submit",className:"btn btn-rounded btn-trf-yellow text-uppercase",disabled:!1,children:"Save Details"})})]})})]})})})})})})]})}},4288(e,a,s){s.d(a,{h:()=>c});var t,l,r,n=s(96540);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var s=arguments[a];for(var t in s)({}).hasOwnProperty.call(s,t)&&(e[t]=s[t])}return e},i.apply(null,arguments)}var c=function(e){return n.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),t||(t=n.createElement("path",{fill:"#0C0C0C",d:"M10 2a1 1 0 0 0 0 2h5.28l.771 2.316A1 1 0 0 0 17 7h3a1 1 0 0 1 1 1v11a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1v-8a1 1 0 1 0-2 0v8a3 3 0 0 0 3 3h16a3 3 0 0 0 3-3V8a3 3 0 0 0-3-3h-2.28l-.771-2.316A1 1 0 0 0 16 2z"})),l||(l=n.createElement("path",{fill:"#0C0C0C",d:"M8 7a1 1 0 1 0 0-2H6V3a1 1 0 1 0-2 0v2H2a1 1 0 1 0 0 2h2v2a1 1 0 1 0 2 0V7z"})),r||(r=n.createElement("path",{fill:"#0C0C0C",fillRule:"evenodd",d:"M17 13a5 5 0 1 1-10 0 5 5 0 0 1 10 0m-2 0a3 3 0 1 1-6 0 3 3 0 0 1 6 0",clipRule:"evenodd"})))};s.p}}]);

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.